Skip to content

build(deps-dev): bump @tanstack/react-query from 5.83.0 to 5.85.0 #42

build(deps-dev): bump @tanstack/react-query from 5.83.0 to 5.85.0

build(deps-dev): bump @tanstack/react-query from 5.83.0 to 5.85.0 #42

Triggered via pull request August 12, 2025 21:28
Status Failure
Total duration 28s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors
build
Process completed with exit code 1.
test/common.spec.ts > openAPI.generateService > 测试将中文 tag 名称翻译成英文 tag 名称: test/common.spec.ts#L294
Error: Snapshot `openAPI.generateService > 测试将中文 tag 名称翻译成英文 tag 名称 1` mismatched - Expected + Received @@ -1,75 +1,76 @@ /* eslint-disable */ // @ts-ignore - import * as API from './types'; - - export function displayStatusEnum(field: API.StatusEnum) { - return { placed: 'placed', approved: 'approved', delivered: 'delivered' }[ - field - ]; - } - + import { request } from 'axios'; + + import * as API from './types'; + + /** Returns pet inventories by status Returns a map of status codes to quantities GET /store/inventory */ - export function displayStatusEnum2(field: API.StatusEnum2) { - return { available: 'available', pending: 'pending', sold: 'sold' }[field]; - } - /* eslint-disable */ - // @ts-ignore - import { request } from 'axios'; - - import * as API from './types'; - - /** Update an existing pet Update an existing pet by Id PUT /pet */ + export async function storeInventoryUsingGet({ + options, + }: { + options?: { [key: string]: unknown }; + }) { + return request<Record<string, number>>('/store/inventory', { + method: 'GET', + ...(options || {}), + }); + } + + /** Place an order for a pet Place a new order in the store POST /store/order */ - export async function petUsingPut({ + export async function storeOrderUsingPost({ body, options, }: { - body: API.Pet; + body: API.Order; options?: { [key: string]: unknown }; }) { - return request<API.Pet>('/pet', { + return request<API.Order>('/store/order', { - method: 'PUT', + method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, ...(options || {}), }); } - /* eslint-disable */ - // @ts-ignore - import { request } from 'axios'; - - import * as API from './types'; - - /** Update an existing pet Update an existing pet by Id PUT /pet */ + + /** Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions. GET /store/order/${param0} */ - export async function petUsingPut({ + export async function storeOrderOrderIdUsingGet({ - body, + params, options, }: { - body: API.Pet; - options?: { [key: string]: unknown }; - }) { - return request<API.Pet>('/pet', { + // 叠加生成的Param类型 (非body参数openapi默认没有生成对象) + params: API.StoreOrderOrderIdUsingGetParams; + options?: { [key: string]: unknown }; + }) { + const { orderId: param0, ...queryParams } = params; + + return request<API.Order>(`/store/order/${param0}`, { - method: 'PUT', + method: 'GET', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); - } - /* eslint-disable */ - // @ts-ignore - export * from './types'; - export * from './displayEnumLabel'; - - export * from './pets'; - export * from './hello'; - export * from './world'; - export * from './happy'; - export * from './warehouse'; - export * from './user'; + params: { ...queryParams }, + ...(options || {}), + }); + } + + /** Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors DELETE /store/order/${param0} */ + export async function storeOrderOrderIdUsingDelete({ + params, + options, + }: { + // 叠加生成的Param类型 (非body参数openapi默认没有生成对象) + params: API.StoreOrderOrderIdUsingDeleteParams; + options?: { [key: string]: unknown }; + }) { + const { orderId: param0, ...queryParams } = params; + + return request<unknown>(`/store/order/${param0}`, { + method: 'DELETE', + params: { ...queryParams }, + ...(options || {}), + }); + } /* eslint-disable */ // @ts-ignore import { request } from 'axios'; import * as API from './types'; @@ -228,11 +229,104 @@ }, ...(options || {}), }); } /* eslint-disable */ - // @ts-ignore + // @ts-ignore + import * as API from './types'; + + export function displayStatusEnum(field: API.StatusEnum) { + return { placed: 'placed', approved: 'approved', delivered: 'delivered' }[ + field + ]; + } + + export function displa