UNPKG

apptise-core

Version:

Core library for Apptise unified notification system

49 lines 1.4 kB
import { NotificationPlugin } from '../base/plugin.js'; import type { NotificationMessage, NotificationResult, PluginConfig, PluginRegistration } from '../base/types.js'; export declare class DingTalkPlugin extends NotificationPlugin { readonly registration: PluginRegistration; private readonly serviceConfig; templates: string[]; templateTokens: { token: { name: string; type: "string"; private: boolean; required: boolean; regex: RegExp; }; secret: { name: string; type: "string"; private: boolean; regex: RegExp; }; target_phone_no: { name: string; type: "string"; mapTo: string; }; targets: { name: string; type: "list:string"; }; }; templateArgs: { to: { aliasOf: string; }; token: { aliasOf: string; }; secret: { aliasOf: string; }; }; private validatePhoneNumber; private getSignature; parseUrl(url: string): PluginConfig; send(config: PluginConfig, message: NotificationMessage): Promise<NotificationResult>; } export declare const dingTalkPlugin: DingTalkPlugin; export default dingTalkPlugin; //# sourceMappingURL=dingtalk.d.ts.map