@k-msg/provider
Version:
Complete provider system with adapters and implementations for K-Message platform
12 lines (11 loc) • 848 B
TypeScript
import { type DeliveryStatus, KMsgErrorCode } from "@k-msg/core";
import type { NormalizedIwinvConfig } from "./iwinv.internal.types";
export declare function normalizePhoneNumber(value: string): string;
export declare function resolveSmsBaseUrl(): string;
export declare function buildSmsSecretHeader(config: NormalizedIwinvConfig): string;
export declare function canSendSmsV2(config: NormalizedIwinvConfig): boolean;
export declare function normalizeCode(value: unknown): string;
export declare function mapSmsResponseMessage(code: string, fallback: string): string;
export declare function mapSmsErrorCode(code: string, responseOk: boolean): KMsgErrorCode;
export declare function buildLmsTitle(text: string, subject?: string): string;
export declare function mapSmsV2HistoryStatus(statusCode?: string, statusMessage?: string): DeliveryStatus;