@hey-api/openapi-ts 0.77.0 → 0.78.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -14
- package/dist/chunk-4AJU36PO.js +39 -0
- package/dist/chunk-4AJU36PO.js.map +1 -0
- package/dist/clients/core/bodySerializer.ts +9 -5
- package/dist/index.cjs +63 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +171 -171
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +11 -11
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +10 -3
- package/dist/internal.d.ts +10 -3
- package/dist/internal.js +1 -1
- package/dist/{types.d-CBVwu8Hi.d.cts → types.d-DtZlpeRE.d.cts} +721 -302
- package/dist/{types.d-CBVwu8Hi.d.ts → types.d-DtZlpeRE.d.ts} +721 -302
- package/package.json +1 -1
- package/dist/chunk-EH476QS3.js +0 -39
- package/dist/chunk-EH476QS3.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { P as PluginHandler, a as Plugin, S as StringCase, U as UserConfig, C as Client, I as IR } from './types.d-
|
|
2
|
-
export {
|
|
1
|
+
import { P as PluginHandler, a as Plugin, S as StringCase, U as UserConfig, C as Client, I as IR } from './types.d-DtZlpeRE.cjs';
|
|
2
|
+
export { h as Client, D as DefinePlugin, L as LegacyIR, O as OpenApi, b as OpenApiMetaObject, c as OpenApiOperationObject, d as OpenApiParameterObject, e as OpenApiRequestBodyObject, f as OpenApiResponseObject, g as OpenApiSchemaObject } from './types.d-DtZlpeRE.cjs';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'typescript';
|
|
5
5
|
|
|
6
6
|
declare const defaultPaginationKeywords: readonly ["after", "before", "cursor", "offset", "page", "start"];
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Default plugins used to generate artifacts if plugins aren't specified.
|
|
10
|
+
*/
|
|
11
|
+
declare const defaultPlugins: readonly ["@hey-api/typescript", "@hey-api/sdk"];
|
|
12
|
+
|
|
8
13
|
declare const clientDefaultConfig: {
|
|
9
14
|
readonly baseUrl: true;
|
|
10
15
|
readonly bundle: true;
|
|
@@ -48,4 +53,4 @@ declare const createClient: (userConfig?: Configs) => Promise<ReadonlyArray<Clie
|
|
|
48
53
|
*/
|
|
49
54
|
declare const defineConfig: (config: Configs) => Promise<UserConfig>;
|
|
50
55
|
|
|
51
|
-
export { IR, Plugin, UserConfig, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, defaultPaginationKeywords, defineConfig, definePluginConfig, utils };
|
|
56
|
+
export { IR, Plugin, UserConfig, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, defaultPaginationKeywords, defaultPlugins, defineConfig, definePluginConfig, utils };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { P as PluginHandler, a as Plugin, S as StringCase, U as UserConfig, C as Client, I as IR } from './types.d-
|
|
2
|
-
export {
|
|
1
|
+
import { P as PluginHandler, a as Plugin, S as StringCase, U as UserConfig, C as Client, I as IR } from './types.d-DtZlpeRE.js';
|
|
2
|
+
export { h as Client, D as DefinePlugin, L as LegacyIR, O as OpenApi, b as OpenApiMetaObject, c as OpenApiOperationObject, d as OpenApiParameterObject, e as OpenApiRequestBodyObject, f as OpenApiResponseObject, g as OpenApiSchemaObject } from './types.d-DtZlpeRE.js';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'typescript';
|
|
5
5
|
|
|
6
6
|
declare const defaultPaginationKeywords: readonly ["after", "before", "cursor", "offset", "page", "start"];
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Default plugins used to generate artifacts if plugins aren't specified.
|
|
10
|
+
*/
|
|
11
|
+
declare const defaultPlugins: readonly ["@hey-api/typescript", "@hey-api/sdk"];
|
|
12
|
+
|
|
8
13
|
declare const clientDefaultConfig: {
|
|
9
14
|
readonly baseUrl: true;
|
|
10
15
|
readonly bundle: true;
|
|
@@ -48,4 +53,4 @@ declare const createClient: (userConfig?: Configs) => Promise<ReadonlyArray<Clie
|
|
|
48
53
|
*/
|
|
49
54
|
declare const defineConfig: (config: Configs) => Promise<UserConfig>;
|
|
50
55
|
|
|
51
|
-
export { IR, Plugin, UserConfig, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, defaultPaginationKeywords, defineConfig, definePluginConfig, utils };
|
|
56
|
+
export { IR, Plugin, UserConfig, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, defaultPaginationKeywords, defaultPlugins, defineConfig, definePluginConfig, utils };
|