@contentstack/utils
Version:
Contentstack utilities for Javascript
17 lines (16 loc) • 509 B
TypeScript
export interface ContentstackEndpoints {
[key: string]: string | ContentstackEndpoints;
}
export interface RegionData {
id: string;
name: string;
cloudProvider: string;
location: string;
alias: string[];
isDefault: boolean;
endpoints: ContentstackEndpoints;
}
export interface RegionsResponse {
regions: RegionData[];
}
export declare function getContentstackEndpoint(region?: string, service?: string, omitHttps?: boolean): string | ContentstackEndpoints;