72 lines
1.8 KiB
TypeScript
72 lines
1.8 KiB
TypeScript
export default class Routes {
|
|
|
|
public static Root(): string {
|
|
return "/";
|
|
}
|
|
|
|
public static Accounts(): string {
|
|
return this.Root() + this._account + "/";
|
|
}
|
|
|
|
public static Account(repoId: number): string {
|
|
return this.Accounts() + repoId + "/";
|
|
}
|
|
|
|
public static Admin(): string {
|
|
return this.Root() + "Admin/";
|
|
}
|
|
|
|
public static Reporting(): string {
|
|
return this.Root() + "Reporting/";
|
|
}
|
|
|
|
public static FloorCalculation(repoId: number, auctionAssignmentId: number): string {
|
|
return this.Account(repoId) + this._floorCalculation + "/" + auctionAssignmentId + "/";
|
|
}
|
|
|
|
public static FloorPricing(): string {
|
|
return this.Root() + "FloorPricing/";
|
|
}
|
|
|
|
public static AdminAuctionHouses(): string {
|
|
return this.Root() + "AuctionHouses/";
|
|
}
|
|
|
|
public static AdminAccountLookup(): string {
|
|
return this.Root() + "AccountLookup"
|
|
}
|
|
|
|
public static RepoIdKey(): string {
|
|
return "repoId";
|
|
}
|
|
|
|
public static Account_Decl(): string {
|
|
return this.Accounts() + this._RepoIdKey_Decl() + "/";
|
|
}
|
|
|
|
|
|
public static AuctionAssignmentIdKey(): string {
|
|
return "auctionAssignmentId";
|
|
}
|
|
|
|
public static FloorCalculation_Decl(): string {
|
|
return this.Account_Decl() + this._floorCalculation + "/" + this._AuctionAssignmentIdKey_Decl() + "/";
|
|
}
|
|
|
|
public static AdminRepoCompanies(): string {
|
|
return this.Root() + "RepoCompanies/";
|
|
}
|
|
|
|
private static _RepoIdKey_Decl(): string {
|
|
return ":" + this.RepoIdKey();
|
|
}
|
|
|
|
private static _AuctionAssignmentIdKey_Decl(): string {
|
|
return ":" + this.AuctionAssignmentIdKey();
|
|
}
|
|
|
|
|
|
private static _account = "Account";
|
|
private static _floorCalculation = "FloorCalculation";
|
|
}
|