@k-msg/provider
Version:
Complete provider system with adapters and implementations for K-Message platform
23 lines (22 loc) • 926 B
TypeScript
import { KMsgError, type Result, type SendOptions, type SendResult } from "@k-msg/core";
import type { SolapiSdkClient, SolapiSendOneMessage } from "./solapi.internal.types";
import type { SolapiConfig } from "./types/solapi";
export declare function collectSolapiSendWarnings(options: SendOptions, providerId: string): SendResult["warnings"];
export declare function adaptSolapiSendResult(params: {
options: SendOptions;
response: unknown;
providerId: string;
warnings?: SendResult["warnings"];
}): SendResult;
export declare function buildSolapiSendOneMessage(params: {
options: SendOptions;
providerId: string;
config: SolapiConfig;
client: SolapiSdkClient;
}): Promise<SolapiSendOneMessage>;
export declare function sendWithSolapi(params: {
providerId: string;
client: SolapiSdkClient;
config: SolapiConfig;
options: SendOptions;
}): Promise<Result<SendResult, KMsgError>>;