t-comm
Version:
专业、稳定、纯粹的工具库
29 lines (28 loc) • 861 B
TypeScript
import type { IRequestInfo, ISearchInfo } from './types';
/**
* 请求开源治理数据并发送
* @param options 配置信息
* @example
* ```ts
* await sendOpenSourceReport({
* date: '2024-01-01',
* chatId: 'xxx',
* webhookUrl: 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx',
* requestInfo: { ... },
* searchInfo: { ... },
* maxShowLinkNum: 12,
* whiteList: ['some-repo'],
* filterOrgPath: 'group/sub-group',
* });
* ```
*/
export declare function sendOpenSourceReport({ date, chatId, webhookUrl, requestInfo, searchInfo, maxShowLinkNum, whiteList, filterOrgPath, }: {
date: string | number | Date;
chatId: string;
webhookUrl: string;
requestInfo: IRequestInfo;
searchInfo: ISearchInfo;
maxShowLinkNum?: number;
whiteList?: Array<string>;
filterOrgPath?: string;
}): Promise<void>;