UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

66 lines (65 loc) 2.05 kB
export declare function genOneFileFromRainbowGroup(list: Array<any>): any; export declare function parseRobotMap(obj?: Record<string, any>): Record<string, any>; /** * 获取流水线名称 * @param {object} config 配置信息 * @ignore * * @example * getPipelineName({ * robot: '26', * env: 'release', * branch: 'feature/team-pvp-kpl', * ciKey: 'convert_wz', * prefix: 'wxci', * }) * // wxci__convert_wz__26__release__feature/team-pvp-kpl */ export declare function getPipelineName({ robot, env, branch, ciKey, prefix, }: Record<string, any>): string; export declare function parseInstanceName(name: string): { prefix: string; projectShortName: string; robotNumber: string; env: string; branch: string; }; export declare function getPipelineParam({ branch, env, rainbowConfigKey, repo, isWxCI, devopsParams, }: Record<string, any>): { id: string; required: boolean; type: string; defaultValue: any; desc: string; readOnly: boolean; }[]; export declare function compareFromLogFile(key: string, obj: Record<string, any>): { ADDED: string[]; UPDATED: string[]; DELETED: string[]; originObj: object; newObj: object; }; export declare const getTemplateInstanceFileName: (isWxCI: boolean) => string; export declare const getRainbowMpCIFileName: (isWxCI: boolean) => string; export declare function isPipelineUpdated({ pipelineName, isWxCI, forceUpdate, devopsConfig, templateIdMap, }: Record<string, any>): Promise<{ type: string; } | { templateId: string; versionName: string; version: number; pipelineId: string; pipelineName: string; updateTime: number; hasPermission: boolean; status: string; type: string; }>; export declare function getUnusedPipelineList({ usefulList, isWxCI, templateIdMap, }: Record<string, any>): { templateId: string; versionName: string; version: number; pipelineId: string; pipelineName: string; updateTime: number; hasPermission: boolean; status: string; }[];