Skip to content

build(deps-dev): bump @types/node from 22.15.30 to 24.0.10 #6

build(deps-dev): bump @types/node from 22.15.30 to 24.0.10

build(deps-dev): bump @types/node from 22.15.30 to 24.0.10 #6

Triggered via pull request July 4, 2025 09:36
Status Failure
Total duration 24s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
build
Process completed with exit code 1.
test/common.spec.ts > openAPI.generateService > 生成枚举翻译, 生成 type 翻译: test/common.spec.ts#L214
Error: Snapshot `openAPI.generateService > 生成枚举翻译, 生成 type 翻译 1` mismatched - Expected + Received @@ -1316,1851 +1316,10 @@ ]; } /* eslint-disable */ // @ts-ignore import * as API from './types'; - - export function displayAddAppkeyReq(field: keyof API.AddAppkeyReq) { - return { - appid: 'appid', - appkey: 'appkey', - appsecret: 'appsecret', - encodingAESKey: 'encodingAESKey', - token: 'token', - type: 'wjl,dingding,feishu,wxa,wx', - }[field]; - } - - export function displayApiToken(field: keyof API.ApiToken) { - return { - apiTokenID: 'apiTokenID', - appID: 'appID', - createdAt: 'createdAt', - token: 'token', - updatedAt: 'updatedAt', - }[field]; - } - - export function displayApiTokenDataList(field: keyof API.ApiTokenDataList) { - return { - data: 'data', - total: 'total', - }[field]; - } - - export function displayApp(field: keyof API.App) { - return { - appID: 'appID', - appImage: 'appImage', - appStatus: 'appStatus', - appType: '应用类型', - createdAt: 'createdAt', - description: 'description', - groupID: 'groupID', - guidance: '开场提问引导', - name: 'name', - operator: 'operator', - priority: '应用优先级', - prologue: 'prologue', - recommendSwitch: 'recommendSwitch', - templateStatus: '是否模版', - updatedAt: 'updatedAt', - workspaceID: 'workspaceID', - }[field]; - } - - export function displayAppDataset(field: keyof API.AppDataset) { - return { - description: '描述', - llmDesc: 'llm描述', - name: '知识库名', - }[field]; - } - - export function displayAppDatasetConfig(field: keyof API.AppDatasetConfig) { - return { - appDatasetConfigID: 'appDatasetConfigID', - appID: 'appID', - createdAt: 'createdAt', - minScore: 'minScore', - searchSource: 'searchSource', - timeoutSecond: 'timeoutSecond', - topK: 'topK', - updatedAt: 'updatedAt', - }[field]; - } - - export function displayAppDatasetConfigs(field: keyof API.AppDatasetConfigs) { - return { - minScore: '最低分数', - searchSource: '知识库源,默认 warehouse', - timeoutSecond: '知识库查询超时时间', - topK: '知识库条数', - }[field]; - } - - export function displayAppDatasets(field: keyof API.AppDatasets) { - return { - appCount: 'appCount', - author: 'author', - datasetID: 'datasetID', - datasetName: 'datasetName', - docCount: 'docCount', - state: 'state', - }[field]; - } - - export function displayAppDetail(field: keyof API.AppDetail) { - return { - AnswerTokensCount: '消耗输出token', - appDatasetConfig: 'appDatasetConfig', - appDatasets: '数据集Id列表', - appGroupID: 'appGroupID', - appID: 'appID', - appImage: '应用头像', - appName: '应用名', - appPrePrompt: 'PrePrompt', - appPromptPrefix: 'appPromptPrefix', - appProvider: '模型', - appProviderID: - 'AppDatasetSource database2.AppDatasetSourceInfo `json:"appDatasetSource"`', - appProviderName: '模型名', - appRecommendedContext: '推荐内容', - appStatus: 'appStatus', - appToken: '应用token列表', - configs: 'configs', - conversationCount: '会话总数', - createAt: 'createAt', - description: '应用描述', - guidance: '开场提问引导', - h5RandomPath: 'H5随机分享路径', - historyLimit: 'historyLimit', - messagesCount: '消息总数', - pcRandomPath: 'PC随机分享路径', - prologue: '开场白', - queryTokensCount: '消耗输入token', - switchRecommendedQuestion: 'switchRecommendedQuestion', - templateStatus: 'templateStatus', - totalTokens: '消耗总token', - workspaceID: 'workspaceID', - }[field]; - } - - export function displayAppMessagesCount(field: keyof API.AppMessagesCount) { - return { - total: 'total', - }[field]; - } - - export function displayAppModelConfigPromptPrefix( - field: keyof API.AppModelConfigPromptPrefix - ) { - return { - background: 'background', - role: 'role', - switchRecommendedQuestion: 'switchRecommendedQuestion', - }[field]; - } - - export function displayAppModelConfigs(field: keyof API.AppModelConfigs) { - return { - configs:
test/common.spec.ts > openAPI.generateService > 测试处理 allof 结构, 生成复杂 type 翻译: test/common.spec.ts#L186
Error: Snapshot `openAPI.generateService > 测试处理 allof 结构, 生成复杂 type 翻译 1` mismatched - Expected + Received @@ -1,46 +1,8 @@ /* eslint-disable */ // @ts-ignore - import * as API from './types'; - - export function displayBatch(field: keyof API.Batch) { - return ( - displayResponse(field as keyof API.Response) || - displayBatchAllOf(field as keyof API.BatchAllOf) - ); - } - - export function displayBatchAllOf(field: keyof API.BatchAllOf) { - return { - data: 'data', - }[field]; - } - - export function displayBatchList(field: keyof API.BatchList) { - return ( - displayResponse(field as keyof API.Response) || - { - data: 'data', - }[field] - ); - } - - export function displaybatchUsingGetParams( - field: keyof API.batchUsingGetParams - ) { - return { - errorMessage: 'log to filter by errorMessage', - }[field]; - } - - export function displayResponse(field: keyof API.Response) { - return { - errorCode: '业务约定的错误码', - errorMessage: '业务上的错误信息', - success: '业务上的请求是否成功', - }[field]; - } + import * as API from './types'; /* eslint-disable */ // @ts-ignore export * from './types'; export * from './displayTypeLabel'; ❯ test/common.spec.ts:186:5