@tmlmobilidade/lib
Version:
45 lines (44 loc) • 1.19 kB
TypeScript
import { type Environment } from './environment.js';
/**
* This file contains the list of URLs
* for each application for each environment.
*/
export declare const APP_BASE_URLS: Readonly<{
alerts: {
development: string;
production: string;
staging: string;
};
auth: {
development: string;
production: string;
staging: string;
};
controller: {
development: string;
production: string;
staging: string;
};
equipments: {
development: string;
production: string;
staging: string;
};
plans: {
development: string;
production: string;
staging: string;
};
stops: {
development: string;
production: string;
staging: string;
};
}>;
/**
* Get the URL for a given app and environment.
* @param app The app ID
* @param environment The environment to get the URL for. If not provided, it will use the ENVIRONMENT environment variable.
* @returns The base URL for the given app and environment
*/
export declare function getAppBaseUrl(app: keyof typeof APP_BASE_URLS, environment?: Environment): string;