18 lines
461 B
TypeScript
18 lines
461 B
TypeScript
/**
|
|
* Nested enum requires namespace
|
|
*/
|
|
export namespace endpoints {
|
|
export const enum v0 {
|
|
profile = "profile/v0/Profile",
|
|
}
|
|
export const enum v1 {
|
|
profile = "profile/v1/Profile",
|
|
creditCards = `${profile}/creditCards`,
|
|
friendTransactions = "profile/v1/Transaction/friendTransactions",
|
|
upcomingStays = "booking/v1/Stays/future",
|
|
previousStays = "booking/v1/Stays/past",
|
|
}
|
|
}
|
|
|
|
export type Endpoint = endpoints.v0 | endpoints.v1
|