import * as S from 'ufc-schema'; /** * 消息推送管理 * 获取所有联系方式、渠道 */ export declare function getNotificationChannels(): Promise; /** * 消息推送管理 * 获取所有渠道对应的模板 * @param channelType */ export declare function getNotificationChannelTemplates(channelType: string): Promise; /** * 消息推送管理 * 获取指定渠道与模板的信息 * @param channelType * @param templateCode */ export declare function getNotificationChannelTemplate(channelType: string, templateCode: string): Promise; /** * 消息推送管理 * 获取消息模板组 */ export declare function getNotificationTemplateGroups(): Promise; /** * 消息推送管理 * 获取指定消息模板组 * @param groupCode */ export declare function getNotificationTemplateGroupByCode(groupCode: string): Promise; /** * 消息推送管理 * 获取指定消息模板组 * @param groupId */ export declare function getNotificationTemplateGroupById(groupId: S.Id): Promise; /** * 消息推送管理 * 创建、更新模板 * @param channelType * @param params * - code: 模板唯一code,可选,存在时为更新,否则为创建 * - content:内容 * - name:名称 * - detail:详细配置 */ export declare function createOrUpdateNotificationTemplate(channelType: string, template: Partial): Promise; /** * 消息推送管理 * 创建、更新模板组 * @param params * - id 唯一主键,可选,存在时为更新,否则为创建 * - code * - name * - templates 模板 * - vars 模板对应的参数 */ export declare function createOrUpdateNotificationTemplateGroup(params: Partial): Promise; /** * 消息推送管理 * 获取第三方渠道下的模板 * @param channelType * @param templateIds 对于 SMS channel,传递该参数用于批量拉取阿里云中对应 ID 的所有模板;将导致 SMS 的所有模板被更新成它指定的这些 */ export declare function reFetchNotificationTemplates(channelType: string, templateIds?: string[]): Promise; /** * 消息推送管理 * 获取第三方渠道下的指定的模板 * @param channelType * @param templateCode */ export declare function reFetchNotificationTemplate(channelType: string, templateCode: string): Promise; /** * 消息推送管理 * 移除一个模板 * @param channelType * @param templateCode */ export declare function removeNotificationChannelTemplate(channelType: string, templateCode: string): Promise; /** * 消息推送管理 * 移除一个模板组 * @param groupId */ export declare function removeNotificationTemplateGroup(groupId: S.Id): Promise;