fork of hey-api/openapi-ts because I need some additional things

test: revert snapshot changes

Lubos 75612b2d cdbe3754

Changed files
+40 -45
docs
data
packages
+5 -5
docs/data/people.ts
··· 3 3 name: string; 4 4 }; 5 5 6 + export const dmitriyBrolnickij: Person = { 7 + github: 'https://github.com/brolnickij', 8 + name: 'Dmitriy Brolnickij', 9 + }; 10 + 6 11 export const jacobCohen: Person = { 7 12 github: 'https://github.com/jacobinu', 8 13 name: 'Jacob Cohen', ··· 22 27 github: 'https://github.com/SebastiaanWouters', 23 28 name: 'Sebastiaan Wouters', 24 29 }; 25 - 26 - export const dmitriyBrolnickij: Person = { 27 - github: 'https://github.com/brolnickij', 28 - name: 'Dmitriy Brolnickij', 29 - };
+2 -2
packages/openapi-ts-tests/main/test/__snapshots__/test/generated/v3_no_index/client.gen.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 - import { type ClientOptions, type Config, createClient, createConfig } from './client/index.js'; 4 - import type { ClientOptions as ClientOptions2 } from './types.gen.js'; 3 + import { type ClientOptions, type Config, createClient, createConfig } from './client'; 4 + import type { ClientOptions as ClientOptions2 } from './types.gen'; 5 5 6 6 /** 7 7 * The `createClientConfig()` function will be called on client initialization
+5 -5
packages/openapi-ts-tests/main/test/__snapshots__/test/generated/v3_no_index/client/client.gen.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 - import { createSseClient } from '../core/serverSentEvents.gen.js'; 4 - import type { HttpMethod } from '../core/types.gen.js'; 5 - import { getValidRequestBody } from '../core/utils.gen.js'; 3 + import { createSseClient } from '../core/serverSentEvents.gen'; 4 + import type { HttpMethod } from '../core/types.gen'; 5 + import { getValidRequestBody } from '../core/utils.gen'; 6 6 import type { 7 7 Client, 8 8 Config, 9 9 RequestOptions, 10 10 ResolvedRequestOptions, 11 - } from './types.gen.js'; 11 + } from './types.gen'; 12 12 import { 13 13 buildUrl, 14 14 createConfig, ··· 17 17 mergeConfigs, 18 18 mergeHeaders, 19 19 setAuthParams, 20 - } from './utils.gen.js'; 20 + } from './utils.gen'; 21 21 22 22 type ReqInit = Omit<RequestInit, 'body' | 'headers'> & { 23 23 body?: any;
+7 -7
packages/openapi-ts-tests/main/test/__snapshots__/test/generated/v3_no_index/client/index.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 - export type { Auth } from '../core/auth.gen.js'; 4 - export type { QuerySerializerOptions } from '../core/bodySerializer.gen.js'; 3 + export type { Auth } from '../core/auth.gen'; 4 + export type { QuerySerializerOptions } from '../core/bodySerializer.gen'; 5 5 export { 6 6 formDataBodySerializer, 7 7 jsonBodySerializer, 8 8 urlSearchParamsBodySerializer, 9 - } from '../core/bodySerializer.gen.js'; 10 - export { buildClientParams } from '../core/params.gen.js'; 11 - export { createClient } from './client.gen.js'; 9 + } from '../core/bodySerializer.gen'; 10 + export { buildClientParams } from '../core/params.gen'; 11 + export { createClient } from './client.gen'; 12 12 export type { 13 13 Client, 14 14 ClientOptions, ··· 21 21 ResolvedRequestOptions, 22 22 ResponseStyle, 23 23 TDataShape, 24 - } from './types.gen.js'; 25 - export { createConfig, mergeHeaders } from './utils.gen.js'; 24 + } from './types.gen'; 25 + export { createConfig, mergeHeaders } from './utils.gen';
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/test/generated/v3_no_index/client/types.gen.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 - import type { Auth } from '../core/auth.gen.js'; 3 + import type { Auth } from '../core/auth.gen'; 4 4 import type { 5 5 ServerSentEventsOptions, 6 6 ServerSentEventsResult, 7 - } from '../core/serverSentEvents.gen.js'; 7 + } from '../core/serverSentEvents.gen'; 8 8 import type { 9 9 Client as CoreClient, 10 10 Config as CoreConfig, 11 - } from '../core/types.gen.js'; 12 - import type { Middleware } from './utils.gen.js'; 11 + } from '../core/types.gen'; 12 + import type { Middleware } from './utils.gen'; 13 13 14 14 export type ResponseStyle = 'data' | 'fields'; 15 15
+6 -6
packages/openapi-ts-tests/main/test/__snapshots__/test/generated/v3_no_index/client/utils.gen.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 - import { getAuthToken } from '../core/auth.gen.js'; 4 - import type { QuerySerializerOptions } from '../core/bodySerializer.gen.js'; 5 - import { jsonBodySerializer } from '../core/bodySerializer.gen.js'; 3 + import { getAuthToken } from '../core/auth.gen'; 4 + import type { QuerySerializerOptions } from '../core/bodySerializer.gen'; 5 + import { jsonBodySerializer } from '../core/bodySerializer.gen'; 6 6 import { 7 7 serializeArrayParam, 8 8 serializeObjectParam, 9 9 serializePrimitiveParam, 10 - } from '../core/pathSerializer.gen.js'; 11 - import { getUrl } from '../core/utils.gen.js'; 12 - import type { Client, ClientOptions, Config, RequestOptions } from './types.gen.js'; 10 + } from '../core/pathSerializer.gen'; 11 + import { getUrl } from '../core/utils.gen'; 12 + import type { Client, ClientOptions, Config, RequestOptions } from './types.gen'; 13 13 14 14 export const createQuerySerializer = <T = unknown>({ 15 15 allowReserved,
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/test/generated/v3_no_index/core/bodySerializer.gen.ts.snap
··· 4 4 ArrayStyle, 5 5 ObjectStyle, 6 6 SerializerOptions, 7 - } from './pathSerializer.gen.js'; 7 + } from './pathSerializer.gen'; 8 8 9 9 export type QuerySerializer = (query: Record<string, unknown>) => string; 10 10
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/test/generated/v3_no_index/core/serverSentEvents.gen.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 - import type { Config } from './types.gen.js'; 3 + import type { Config } from './types.gen'; 4 4 5 5 export type ServerSentEventsOptions<TData = unknown> = Omit< 6 6 RequestInit,
+2 -2
packages/openapi-ts-tests/main/test/__snapshots__/test/generated/v3_no_index/core/types.gen.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 - import type { Auth, AuthToken } from './auth.gen.js'; 3 + import type { Auth, AuthToken } from './auth.gen'; 4 4 import type { 5 5 BodySerializer, 6 6 QuerySerializer, 7 7 QuerySerializerOptions, 8 - } from './bodySerializer.gen.js'; 8 + } from './bodySerializer.gen'; 9 9 10 10 export type HttpMethod = 11 11 | 'connect'
+2 -2
packages/openapi-ts-tests/main/test/__snapshots__/test/generated/v3_no_index/core/utils.gen.ts.snap
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 - import type { BodySerializer, QuerySerializer } from './bodySerializer.gen.js'; 3 + import type { BodySerializer, QuerySerializer } from './bodySerializer.gen'; 4 4 import { 5 5 type ArraySeparatorStyle, 6 6 serializeArrayParam, 7 7 serializeObjectParam, 8 8 serializePrimitiveParam, 9 - } from './pathSerializer.gen.js'; 9 + } from './pathSerializer.gen'; 10 10 11 11 export interface PathSerializer { 12 12 path: Record<string, unknown>;
-5
packages/openapi-ts-tests/main/test/index.test.ts
··· 245 245 output: { 246 246 indexFile: false, 247 247 path: '', 248 - tsConfigPath: path.resolve( 249 - __dirname, 250 - 'tsconfig', 251 - 'tsconfig.nodenext.json', 252 - ), 253 248 }, 254 249 parser: { 255 250 transforms: {
-1
packages/openapi-ts-tests/main/test/tsconfig/tsconfig.nodenext.json
··· 1 1 { 2 2 "extends": "../../../tsconfig.base.json", 3 3 "compilerOptions": { 4 - "module": "NodeNext", 5 4 "declaration": false, 6 5 "moduleResolution": "nodenext", 7 6 "resolveJsonModule": true,
+4 -4
packages/openapi-ts/src/plugins/@pinia/colada/api.ts
··· 6 6 | '_JSONValue' 7 7 | 'AxiosError' 8 8 | 'createQueryKey' 9 - | 'serializeQueryKeyValue' 10 9 | 'defineQueryOptions' 11 - | 'queryOptionsFn' 12 10 | 'QueryKey' 11 + | 'queryOptionsFn' 12 + | 'serializeQueryKeyValue' 13 13 | 'UseMutationOptions' 14 14 | 'UseQueryOptions'; 15 15 ··· 20 20 * - `_JSONValue`: never 21 21 * - `AxiosError`: never 22 22 * - `createQueryKey`: never 23 - * - `serializeQueryKeyValue`: never 24 23 * - `defineQueryOptions`: never 25 - * - `queryOptionsFn`: `operation.id` string 26 24 * - `QueryKey`: never 25 + * - `queryOptionsFn`: `operation.id` string 26 + * - `serializeQueryKeyValue`: never 27 27 * - `UseMutationOptions`: never 28 28 * - `UseQueryOptions`: never 29 29 * @returns Selector array
+1
packages/openapi-ts/src/plugins/@pinia/colada/utils.ts
··· 1 1 import { getClientPlugin } from '../../@hey-api/client-core/utils'; 2 2 import type { PiniaColadaPlugin } from './types'; 3 + 3 4 export const getPublicTypeData = ({ 4 5 plugin, 5 6 typeData,