@elusion-sdk/briq
Version:
A modern TypeScript SDK for Briq SMS API integration
63 lines • 1.97 kB
TypeScript
export declare const API_CONFIG: {
readonly API_KEY: string;
readonly BASE_URL: string;
readonly VERSION: string;
readonly DEFAULT_TIMEOUT: number;
readonly DEFAULT_RETRIES: 3;
readonly USER_AGENT: "Briq-SDK-TS";
};
export declare const ENDPOINTS: {
readonly MESSAGES: {
readonly SEND_INSTANT: "message/send-instant";
readonly SEND_CAMPAIGN: "message/send-campaign";
readonly LOGS: "message/logs";
readonly HISTORY: "message/history";
};
readonly WORKSPACES: {
readonly CREATE: "workspace/create/";
readonly GET_ALL: "workspace/all/";
readonly GET_BY_ID: (id: string) => string;
readonly UPDATE: (id: string) => string;
};
readonly CAMPAIGNS: {
readonly CREATE: "campaign/create/";
readonly GET_ALL: "campaign/all/";
readonly GET_BY_ID: (id: string) => string;
readonly UPDATE: (id: string) => string;
};
};
export declare const HTTP_STATUS: {
readonly OK: 200;
readonly CREATED: 201;
readonly NO_CONTENT: 204;
readonly BAD_REQUEST: 400;
readonly UNAUTHORIZED: 401;
readonly FORBIDDEN: 403;
readonly NOT_FOUND: 404;
readonly METHOD_NOT_ALLOWED: 405;
readonly CONFLICT: 409;
readonly UNPROCESSABLE_ENTITY: 422;
readonly TOO_MANY_REQUESTS: 429;
readonly INTERNAL_SERVER_ERROR: 500;
readonly BAD_GATEWAY: 502;
readonly SERVICE_UNAVAILABLE: 503;
readonly GATEWAY_TIMEOUT: 504;
};
export declare const VALIDATION_PATTERNS: {
readonly PHONE_NUMBER: RegExp;
readonly EMAIL: RegExp;
readonly UUID: RegExp;
readonly API_KEY: RegExp;
};
export declare const PAGINATION_DEFAULTS: {
readonly PAGE: 1;
readonly LIMIT: 20;
readonly MAX_LIMIT: 100;
};
export declare const RETRY_CONFIG: {
readonly MAX_RETRIES: 3;
readonly INITIAL_DELAY: 1000;
readonly MAX_DELAY: 10000;
readonly BACKOFF_FACTOR: 2;
};
//# sourceMappingURL=constants.d.ts.map