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

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #1699 from hey-api/fix/sdk-meta-field

fix: allow passing arbitrary values to SDK functions via meta field

authored by

Lubos and committed by
GitHub
19f67498 5cd3d9ed

+612 -103
+5
.changeset/four-rings-sniff.md
··· 1 + --- 2 + '@hey-api/openapi-ts': patch 3 + --- 4 + 5 + fix: allow passing arbitrary values to SDK functions via `meta` field
+2 -100
packages/openapi-ts/src/plugins/@hey-api/sdk/plugin.ts
··· 3 3 import { compiler } from '../../../compiler'; 4 4 import type { ObjectValue } from '../../../compiler/types'; 5 5 import { clientApi, clientModulePath } from '../../../generate/client'; 6 - import type { FileImportResult, TypeScriptFile } from '../../../generate/files'; 6 + import type { TypeScriptFile } from '../../../generate/files'; 7 7 import { 8 8 hasOperationDataRequired, 9 9 statusCodeToGroup, ··· 26 26 importIdentifierResponse, 27 27 } from '../typescript/ref'; 28 28 import { serviceFunctionIdentifier } from './plugin-legacy'; 29 + import { createTypeOptions } from './typeOptions'; 29 30 import type { Config } from './types'; 30 31 31 32 // copy-pasted from @hey-api/client-core ··· 671 672 }); 672 673 file.add(node); 673 674 }); 674 - }; 675 - 676 - const createTypeOptions = ({ 677 - clientOptions, 678 - context, 679 - plugin, 680 - }: { 681 - clientOptions: FileImportResult; 682 - context: IR.Context; 683 - plugin: Plugin.Instance<Config>; 684 - }) => { 685 - const file = context.file({ id: sdkId })!; 686 - const client = getClientPlugin(context.config); 687 - const isNuxtClient = client.name === '@hey-api/client-nuxt'; 688 - 689 - const clientModule = clientModulePath({ 690 - config: context.config, 691 - sourceOutput: file.nameWithoutExtension(), 692 - }); 693 - const tDataShape = file.import({ 694 - asType: true, 695 - module: clientModule, 696 - name: 'TDataShape', 697 - }); 698 - const clientType = file.import({ 699 - asType: true, 700 - module: clientModule, 701 - name: 'Client', 702 - }); 703 - 704 - const typeOptions = compiler.typeAliasDeclaration({ 705 - exportType: true, 706 - name: 'Options', 707 - type: compiler.typeIntersectionNode({ 708 - types: [ 709 - compiler.typeReferenceNode({ 710 - typeArguments: isNuxtClient 711 - ? [ 712 - compiler.typeReferenceNode({ typeName: 'TComposable' }), 713 - compiler.typeReferenceNode({ typeName: 'TData' }), 714 - ] 715 - : [ 716 - compiler.typeReferenceNode({ typeName: 'TData' }), 717 - compiler.typeReferenceNode({ typeName: 'ThrowOnError' }), 718 - ], 719 - typeName: clientOptions.name, 720 - }), 721 - compiler.typeInterfaceNode({ 722 - properties: [ 723 - { 724 - comment: [ 725 - 'You can provide a client instance returned by `createClient()` instead of', 726 - 'individual options. This might be also useful if you want to implement a', 727 - 'custom client.', 728 - ], 729 - isRequired: !plugin.client, 730 - name: 'client', 731 - type: compiler.typeReferenceNode({ typeName: clientType.name }), 732 - }, 733 - ], 734 - useLegacyResolution: false, 735 - }), 736 - ], 737 - }), 738 - typeParameters: isNuxtClient 739 - ? [ 740 - compiler.typeParameterDeclaration({ 741 - constraint: compiler.typeReferenceNode({ typeName: 'Composable' }), 742 - name: 'TComposable', 743 - }), 744 - compiler.typeParameterDeclaration({ 745 - constraint: compiler.typeReferenceNode({ 746 - typeName: tDataShape.name, 747 - }), 748 - defaultType: compiler.typeReferenceNode({ 749 - typeName: tDataShape.name, 750 - }), 751 - name: 'TData', 752 - }), 753 - ] 754 - : [ 755 - compiler.typeParameterDeclaration({ 756 - constraint: compiler.typeReferenceNode({ 757 - typeName: tDataShape.name, 758 - }), 759 - defaultType: compiler.typeReferenceNode({ 760 - typeName: tDataShape.name, 761 - }), 762 - name: 'TData', 763 - }), 764 - compiler.typeParameterDeclaration({ 765 - constraint: compiler.keywordTypeNode({ keyword: 'boolean' }), 766 - defaultType: compiler.keywordTypeNode({ keyword: 'boolean' }), 767 - name: 'ThrowOnError', 768 - }), 769 - ], 770 - }); 771 - 772 - file.add(typeOptions); 773 675 }; 774 676 775 677 export const handler: Plugin.Handler<Config> = ({ context, plugin }) => {
+122
packages/openapi-ts/src/plugins/@hey-api/sdk/typeOptions.ts
··· 1 + import { compiler } from '../../../compiler'; 2 + import { clientModulePath } from '../../../generate/client'; 3 + import type { FileImportResult } from '../../../generate/files'; 4 + import type { IR } from '../../../ir/types'; 5 + import type { Plugin } from '../../types'; 6 + import { getClientPlugin } from '../client-core/utils'; 7 + import { sdkId } from './plugin'; 8 + import type { Config } from './types'; 9 + 10 + export const createTypeOptions = ({ 11 + clientOptions, 12 + context, 13 + plugin, 14 + }: { 15 + clientOptions: FileImportResult; 16 + context: IR.Context; 17 + plugin: Plugin.Instance<Config>; 18 + }) => { 19 + const file = context.file({ id: sdkId })!; 20 + const client = getClientPlugin(context.config); 21 + const isNuxtClient = client.name === '@hey-api/client-nuxt'; 22 + 23 + const clientModule = clientModulePath({ 24 + config: context.config, 25 + sourceOutput: file.nameWithoutExtension(), 26 + }); 27 + const tDataShape = file.import({ 28 + asType: true, 29 + module: clientModule, 30 + name: 'TDataShape', 31 + }); 32 + const clientType = file.import({ 33 + asType: true, 34 + module: clientModule, 35 + name: 'Client', 36 + }); 37 + 38 + const typeOptions = compiler.typeAliasDeclaration({ 39 + exportType: true, 40 + name: 'Options', 41 + type: compiler.typeIntersectionNode({ 42 + types: [ 43 + compiler.typeReferenceNode({ 44 + typeArguments: isNuxtClient 45 + ? [ 46 + compiler.typeReferenceNode({ typeName: 'TComposable' }), 47 + compiler.typeReferenceNode({ typeName: 'TData' }), 48 + ] 49 + : [ 50 + compiler.typeReferenceNode({ typeName: 'TData' }), 51 + compiler.typeReferenceNode({ typeName: 'ThrowOnError' }), 52 + ], 53 + typeName: clientOptions.name, 54 + }), 55 + compiler.typeInterfaceNode({ 56 + properties: [ 57 + { 58 + comment: [ 59 + 'You can provide a client instance returned by `createClient()` instead of', 60 + 'individual options. This might be also useful if you want to implement a', 61 + 'custom client.', 62 + ], 63 + isRequired: !plugin.client, 64 + name: 'client', 65 + type: compiler.typeReferenceNode({ typeName: clientType.name }), 66 + }, 67 + { 68 + comment: [ 69 + 'You can pass arbitrary values through the `meta` object. This can be', 70 + "used to access values that aren't defined as part of the SDK function.", 71 + ], 72 + isRequired: false, 73 + name: 'meta', 74 + type: compiler.typeReferenceNode({ 75 + typeArguments: [ 76 + compiler.keywordTypeNode({ keyword: 'string' }), 77 + compiler.keywordTypeNode({ keyword: 'unknown' }), 78 + ], 79 + typeName: 'Record', 80 + }), 81 + }, 82 + ], 83 + useLegacyResolution: false, 84 + }), 85 + ], 86 + }), 87 + typeParameters: isNuxtClient 88 + ? [ 89 + compiler.typeParameterDeclaration({ 90 + constraint: compiler.typeReferenceNode({ typeName: 'Composable' }), 91 + name: 'TComposable', 92 + }), 93 + compiler.typeParameterDeclaration({ 94 + constraint: compiler.typeReferenceNode({ 95 + typeName: tDataShape.name, 96 + }), 97 + defaultType: compiler.typeReferenceNode({ 98 + typeName: tDataShape.name, 99 + }), 100 + name: 'TData', 101 + }), 102 + ] 103 + : [ 104 + compiler.typeParameterDeclaration({ 105 + constraint: compiler.typeReferenceNode({ 106 + typeName: tDataShape.name, 107 + }), 108 + defaultType: compiler.typeReferenceNode({ 109 + typeName: tDataShape.name, 110 + }), 111 + name: 'TData', 112 + }), 113 + compiler.typeParameterDeclaration({ 114 + constraint: compiler.keywordTypeNode({ keyword: 'boolean' }), 115 + defaultType: compiler.keywordTypeNode({ keyword: 'boolean' }), 116 + name: 'ThrowOnError', 117 + }), 118 + ], 119 + }); 120 + 121 + file.add(typeOptions); 122 + };
+5
packages/openapi-ts/test/__snapshots__/2.0.x/body-response-text-plain/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const postFoo = <ThrowOnError extends boolean = false>(options: Options<PostFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/form-data/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const postV1Foo = <ThrowOnError extends boolean = false>(options: Options<PostV1FooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/default/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const serviceWithEmptyTag = <ThrowOnError extends boolean = false>(options?: Options<ServiceWithEmptyTagData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/throwOnError/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const serviceWithEmptyTag = <ThrowOnError extends boolean = true>(options?: Options<ServiceWithEmptyTagData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@hey-api/transformers/type-format/sdk.gen.ts
··· 13 13 * custom client. 14 14 */ 15 15 client?: Client; 16 + /** 17 + * You can pass arbitrary values through the `meta` object. This can be 18 + * used to access values that aren't defined as part of the SDK function. 19 + */ 20 + meta?: Record<string, unknown>; 16 21 }; 17 22 18 23 export const postFoo = <ThrowOnError extends boolean = false>(options?: Options<PostFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const serviceWithEmptyTag = <ThrowOnError extends boolean = false>(options?: Options<ServiceWithEmptyTagData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const serviceWithEmptyTag = <ThrowOnError extends boolean = false>(options?: Options<ServiceWithEmptyTagData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const serviceWithEmptyTag = <ThrowOnError extends boolean = false>(options?: Options<ServiceWithEmptyTagData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const serviceWithEmptyTag = <ThrowOnError extends boolean = false>(options?: Options<ServiceWithEmptyTagData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const serviceWithEmptyTag = <ThrowOnError extends boolean = false>(options?: Options<ServiceWithEmptyTagData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const serviceWithEmptyTag = <ThrowOnError extends boolean = false>(options?: Options<ServiceWithEmptyTagData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const serviceWithEmptyTag = <ThrowOnError extends boolean = false>(options?: Options<ServiceWithEmptyTagData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const serviceWithEmptyTag = <ThrowOnError extends boolean = false>(options?: Options<ServiceWithEmptyTagData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const serviceWithEmptyTag = <ThrowOnError extends boolean = false>(options?: Options<ServiceWithEmptyTagData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const serviceWithEmptyTag = <ThrowOnError extends boolean = false>(options?: Options<ServiceWithEmptyTagData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/schema-unknown/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 /**
+5
packages/openapi-ts/test/__snapshots__/2.0.x/security-api-key/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const getFoo = <ThrowOnError extends boolean = false>(options?: Options<GetFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/security-basic/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const getFoo = <ThrowOnError extends boolean = false>(options?: Options<GetFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/security-false/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const getFoo = <ThrowOnError extends boolean = false>(options?: Options<GetFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/2.0.x/security-oauth2/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const getFoo = <ThrowOnError extends boolean = false>(options?: Options<GetFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/body-response-text-plain/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const postFoo = <ThrowOnError extends boolean = false>(options: Options<PostFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/internal-name-conflict/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const create = <ThrowOnError extends boolean = false>(options?: Options<CreateData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/parameter-explode-false-axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const postFoo = <ThrowOnError extends boolean = false>(options?: Options<PostFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/parameter-explode-false/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const postFoo = <ThrowOnError extends boolean = false>(options?: Options<PostFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/throwOnError/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = true>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@hey-api/transformers/type-format/sdk.gen.ts
··· 13 13 * custom client. 14 14 */ 15 15 client?: Client; 16 + /** 17 + * You can pass arbitrary values through the `meta` object. This can be 18 + * used to access values that aren't defined as part of the SDK function. 19 + */ 20 + meta?: Record<string, unknown>; 16 21 }; 17 22 18 23 export const postFoo = <ThrowOnError extends boolean = false>(options?: Options<PostFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/security-api-key/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const getFoo = <ThrowOnError extends boolean = false>(options?: Options<GetFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/security-false/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const getFoo = <ThrowOnError extends boolean = false>(options?: Options<GetFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/security-http-bearer/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const getFoo = <ThrowOnError extends boolean = false>(options?: Options<GetFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/security-oauth2/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const getFoo = <ThrowOnError extends boolean = false>(options?: Options<GetFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.0.x/security-open-id-connect/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const getFoo = <ThrowOnError extends boolean = false>(options?: Options<GetFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/body-response-text-plain/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const postFoo = <ThrowOnError extends boolean = false>(options: Options<PostFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/bundle/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/default/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-optional/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-required/sdk.gen.ts
··· 10 10 * custom client. 11 11 */ 12 12 client: Client; 13 + /** 14 + * You can pass arbitrary values through the `meta` object. This can be 15 + * used to access values that aren't defined as part of the SDK function. 16 + */ 17 + meta?: Record<string, unknown>; 13 18 }; 14 19 15 20 export const export_ = <ThrowOnError extends boolean = false>(options: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/bundle/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/default/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-optional/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-required/sdk.gen.ts
··· 10 10 * custom client. 11 11 */ 12 12 client: Client; 13 + /** 14 + * You can pass arbitrary values through the `meta` object. This can be 15 + * used to access values that aren't defined as part of the SDK function. 16 + */ 17 + meta?: Record<string, unknown>; 13 18 }; 14 19 15 20 export const export_ = <ThrowOnError extends boolean = false>(options: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-next/bundle/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-next/default/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-optional/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-required/sdk.gen.ts
··· 10 10 * custom client. 11 11 */ 12 12 client: Client; 13 + /** 14 + * You can pass arbitrary values through the `meta` object. This can be 15 + * used to access values that aren't defined as part of the SDK function. 16 + */ 17 + meta?: Record<string, unknown>; 13 18 }; 14 19 15 20 export const export_ = <ThrowOnError extends boolean = false>(options: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/bundle/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <TComposable extends Composable>(options: Options<TComposable, ExportData>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/default/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <TComposable extends Composable>(options: Options<TComposable, ExportData>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-optional/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <TComposable extends Composable>(options: Options<TComposable, ExportData>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-required/sdk.gen.ts
··· 10 10 * custom client. 11 11 */ 12 12 client: Client; 13 + /** 14 + * You can pass arbitrary values through the `meta` object. This can be 15 + * used to access values that aren't defined as part of the SDK function. 16 + */ 17 + meta?: Record<string, unknown>; 13 18 }; 14 19 15 20 export const export_ = <TComposable extends Composable>(options: Options<TComposable, ExportData>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/internal-name-conflict/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const create = <ThrowOnError extends boolean = false>(options?: Options<CreateData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/pagination-ref-any-of/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const postFoo = <ThrowOnError extends boolean = false>(options: Options<PostFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/parameter-explode-false-axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const postFoo = <ThrowOnError extends boolean = false>(options?: Options<PostFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/parameter-explode-false/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const postFoo = <ThrowOnError extends boolean = false>(options?: Options<PostFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/default/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/throwOnError/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = true>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@hey-api/transformers/type-format/sdk.gen.ts
··· 13 13 * custom client. 14 14 */ 15 15 client?: Client; 16 + /** 17 + * You can pass arbitrary values through the `meta` object. This can be 18 + * used to access values that aren't defined as part of the SDK function. 19 + */ 20 + meta?: Record<string, unknown>; 16 21 }; 17 22 18 23 export const postFoo = <ThrowOnError extends boolean = false>(options?: Options<PostFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/asClass/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export class DefaultService {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const export_ = <ThrowOnError extends boolean = false>(options?: Options<ExportData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/security-api-key/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const getFoo = <ThrowOnError extends boolean = false>(options?: Options<GetFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/security-false/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const getFoo = <ThrowOnError extends boolean = false>(options?: Options<GetFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/security-http-bearer/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const getFoo = <ThrowOnError extends boolean = false>(options?: Options<GetFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/security-oauth2/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const getFoo = <ThrowOnError extends boolean = false>(options?: Options<GetFooData, ThrowOnError>) => {
+5
packages/openapi-ts/test/__snapshots__/3.1.x/security-open-id-connect/sdk.gen.ts
··· 11 11 * custom client. 12 12 */ 13 13 client?: Client; 14 + /** 15 + * You can pass arbitrary values through the `meta` object. This can be 16 + * used to access values that aren't defined as part of the SDK function. 17 + */ 18 + meta?: Record<string, unknown>; 14 19 }; 15 20 16 21 export const getFoo = <ThrowOnError extends boolean = false>(options?: Options<GetFooData, ThrowOnError>) => {
+3 -3
packages/openapi-ts/test/openapi-ts.config.ts
··· 77 77 }, 78 78 // @ts-ignore 79 79 { 80 - // name: '@tanstack/react-query', 80 + name: '@tanstack/react-query', 81 81 }, 82 82 // @ts-ignore 83 83 { 84 - exportFromIndex: true, 85 - name: 'zod', 84 + // exportFromIndex: true, 85 + // name: 'zod', 86 86 }, 87 87 ], 88 88 // useOptions: false,