@k-msg/provider
Version:
Complete provider system with adapters and implementations for K-Message platform
17 lines (16 loc) • 1 kB
TypeScript
import { type DeliveryStatus, type MessageBinaryInput, type MessageButton, type MessageVariables, type SendOptions } from "@k-msg/core";
import type { SolapiKakaoButton, SolapiMessageType } from "./solapi.internal.types";
export declare function mapSolapiStatusCode(statusCode?: string): DeliveryStatus;
export declare function parseDate(value: unknown): Date | undefined;
export declare function normalizePhoneNumber(phone: string): string;
export declare function stringifyVariables(variables: MessageVariables | undefined): Record<string, string>;
export declare function toKakaoButtons(buttons: MessageButton[] | undefined): SolapiKakaoButton[] | undefined;
export declare function resolveImageRef(options: {
imageUrl?: string;
media?: {
image?: MessageBinaryInput;
};
providerId: string;
}): string | undefined;
export declare function extractFileId(upload: unknown): string | undefined;
export declare function toSolapiMessageType(options: SendOptions): SolapiMessageType;