17 lines
413 B
TypeScript
17 lines
413 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",
|
|
upcomingStays = "booking/v1/Stays/future",
|
|
previousStays = "booking/v1/Stays/past",
|
|
invalidateSessions = "profile/v1/Profile/invalidateSessions",
|
|
}
|
|
}
|
|
|
|
export type Endpoint = endpoints.v0 | endpoints.v1
|