@hey-api/openapi-ts 0.85.1 → 0.85.2
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/bin/index.cjs +3 -2
- package/dist/chunk-F2CVRHGI.js +47 -0
- package/dist/chunk-F2CVRHGI.js.map +1 -0
- package/dist/index.cjs +21 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -31
- package/dist/index.d.ts +41 -31
- package/dist/index.js +44 -54
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +14 -14
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/{types.d-DIu3K5QP.d.cts → types.d-CGoxqmT9.d.cts} +11 -0
- package/dist/{types.d-DIu3K5QP.d.ts → types.d-CGoxqmT9.d.ts} +11 -0
- package/package.json +3 -3
- package/dist/chunk-SA4IKOSG.js +0 -47
- package/dist/chunk-SA4IKOSG.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Comments,
|
|
2
|
-
export { k as Client, D as DefinePlugin, E as ExpressionTransformer, l as LegacyIR, O as OpenApi, e as OpenApiMetaObject, f as OpenApiOperationObject, g as OpenApiParameterObject, h as OpenApiRequestBodyObject, i as OpenApiResponseObject, j as OpenApiSchemaObject, T as TypeTransformer } from './types.d-
|
|
1
|
+
import { C as Comments, I as ImportExportItemObject, t as tsNodeToString, P as PluginHandler, a as Plugin, S as StringCase, L as LazyOrAsync, M as MaybeArray, U as UserConfig, b as Logger, c as Client$7, d as IR } from './types.d-CGoxqmT9.cjs';
|
|
2
|
+
export { k as Client, D as DefinePlugin, E as ExpressionTransformer, l as LegacyIR, O as OpenApi, e as OpenApiMetaObject, f as OpenApiOperationObject, g as OpenApiParameterObject, h as OpenApiRequestBodyObject, i as OpenApiResponseObject, j as OpenApiSchemaObject, T as TypeTransformer } from './types.d-CGoxqmT9.cjs';
|
|
3
3
|
import { HttpHeaders, HttpClient, HttpRequest, HttpResponse, HttpErrorResponse } from '@angular/common/http';
|
|
4
4
|
import { Injector } from '@angular/core';
|
|
5
5
|
import { CreateAxiosDefaults, AxiosStatic, AxiosInstance, AxiosRequestHeaders, AxiosResponse, AxiosError } from 'axios';
|
|
@@ -29,6 +29,16 @@ declare module '@hey-api/codegen-core' {
|
|
|
29
29
|
* Name of the plugin that registered this symbol.
|
|
30
30
|
*/
|
|
31
31
|
pluginName?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Type of resource this symbol represents.
|
|
34
|
+
*/
|
|
35
|
+
resourceType?:
|
|
36
|
+
| 'operation'
|
|
37
|
+
| 'parameter'
|
|
38
|
+
| 'requestBody'
|
|
39
|
+
| 'schema'
|
|
40
|
+
| 'server'
|
|
41
|
+
| 'webhook';
|
|
32
42
|
}
|
|
33
43
|
}
|
|
34
44
|
|
|
@@ -903,35 +913,6 @@ interface TDataShape {
|
|
|
903
913
|
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
904
914
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & Omit<TData, 'url'>;
|
|
905
915
|
|
|
906
|
-
declare const defaultPaginationKeywords: readonly ["after", "before", "cursor", "offset", "page", "start"];
|
|
907
|
-
|
|
908
|
-
/**
|
|
909
|
-
* Default plugins used to generate artifacts if plugins aren't specified.
|
|
910
|
-
*/
|
|
911
|
-
declare const defaultPlugins: readonly ["@hey-api/typescript", "@hey-api/sdk"];
|
|
912
|
-
|
|
913
|
-
declare const clientDefaultConfig: {
|
|
914
|
-
readonly baseUrl: true;
|
|
915
|
-
readonly bundle: true;
|
|
916
|
-
readonly exportFromIndex: false;
|
|
917
|
-
};
|
|
918
|
-
declare const clientDefaultMeta: {
|
|
919
|
-
readonly dependencies: readonly ["@hey-api/typescript"];
|
|
920
|
-
readonly tags: readonly ["client"];
|
|
921
|
-
};
|
|
922
|
-
|
|
923
|
-
declare const clientPluginHandler: ({ plugin, }: Parameters<PluginHandler>[0]) => void;
|
|
924
|
-
|
|
925
|
-
declare const definePluginConfig: <T extends Plugin.Types>(defaultConfig: Plugin.Config<T>) => (userConfig?: Omit<Plugin.UserConfig<T["config"]>, "name">) => Omit<Plugin.Config<T>, "name"> & {
|
|
926
|
-
/**
|
|
927
|
-
* Cast name to `any` so it doesn't throw type error in `plugins` array.
|
|
928
|
-
* We could allow any `string` as plugin `name` in the object syntax, but
|
|
929
|
-
* that TypeScript trick would cause all string methods to appear as
|
|
930
|
-
* suggested auto completions, which is undesirable.
|
|
931
|
-
*/
|
|
932
|
-
name: any;
|
|
933
|
-
};
|
|
934
|
-
|
|
935
916
|
type ImportExportItem = ImportExportItemObject | string;
|
|
936
917
|
|
|
937
918
|
type Property = {
|
|
@@ -1554,6 +1535,35 @@ declare const compiler: {
|
|
|
1554
1535
|
}) => typescript.Expression | undefined;
|
|
1555
1536
|
};
|
|
1556
1537
|
|
|
1538
|
+
declare const defaultPaginationKeywords: readonly ["after", "before", "cursor", "offset", "page", "start"];
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* Default plugins used to generate artifacts if plugins aren't specified.
|
|
1542
|
+
*/
|
|
1543
|
+
declare const defaultPlugins: readonly ["@hey-api/typescript", "@hey-api/sdk"];
|
|
1544
|
+
|
|
1545
|
+
declare const clientDefaultConfig: {
|
|
1546
|
+
readonly baseUrl: true;
|
|
1547
|
+
readonly bundle: true;
|
|
1548
|
+
readonly exportFromIndex: false;
|
|
1549
|
+
};
|
|
1550
|
+
declare const clientDefaultMeta: {
|
|
1551
|
+
readonly dependencies: readonly ["@hey-api/typescript"];
|
|
1552
|
+
readonly tags: readonly ["client"];
|
|
1553
|
+
};
|
|
1554
|
+
|
|
1555
|
+
declare const clientPluginHandler: ({ plugin, }: Parameters<PluginHandler>[0]) => void;
|
|
1556
|
+
|
|
1557
|
+
declare const definePluginConfig: <T extends Plugin.Types>(defaultConfig: Plugin.Config<T>) => (userConfig?: Omit<Plugin.UserConfig<T["config"]>, "name">) => Omit<Plugin.Config<T>, "name"> & {
|
|
1558
|
+
/**
|
|
1559
|
+
* Cast name to `any` so it doesn't throw type error in `plugins` array.
|
|
1560
|
+
* We could allow any `string` as plugin `name` in the object syntax, but
|
|
1561
|
+
* that TypeScript trick would cause all string methods to appear as
|
|
1562
|
+
* suggested auto completions, which is undesirable.
|
|
1563
|
+
*/
|
|
1564
|
+
name: any;
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1557
1567
|
declare const utils: {
|
|
1558
1568
|
stringCase: ({ case: _case, stripLeadingSeparators, value, }: {
|
|
1559
1569
|
readonly case: StringCase | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Comments,
|
|
2
|
-
export { k as Client, D as DefinePlugin, E as ExpressionTransformer, l as LegacyIR, O as OpenApi, e as OpenApiMetaObject, f as OpenApiOperationObject, g as OpenApiParameterObject, h as OpenApiRequestBodyObject, i as OpenApiResponseObject, j as OpenApiSchemaObject, T as TypeTransformer } from './types.d-
|
|
1
|
+
import { C as Comments, I as ImportExportItemObject, t as tsNodeToString, P as PluginHandler, a as Plugin, S as StringCase, L as LazyOrAsync, M as MaybeArray, U as UserConfig, b as Logger, c as Client$7, d as IR } from './types.d-CGoxqmT9.js';
|
|
2
|
+
export { k as Client, D as DefinePlugin, E as ExpressionTransformer, l as LegacyIR, O as OpenApi, e as OpenApiMetaObject, f as OpenApiOperationObject, g as OpenApiParameterObject, h as OpenApiRequestBodyObject, i as OpenApiResponseObject, j as OpenApiSchemaObject, T as TypeTransformer } from './types.d-CGoxqmT9.js';
|
|
3
3
|
import { HttpHeaders, HttpClient, HttpRequest, HttpResponse, HttpErrorResponse } from '@angular/common/http';
|
|
4
4
|
import { Injector } from '@angular/core';
|
|
5
5
|
import { CreateAxiosDefaults, AxiosStatic, AxiosInstance, AxiosRequestHeaders, AxiosResponse, AxiosError } from 'axios';
|
|
@@ -29,6 +29,16 @@ declare module '@hey-api/codegen-core' {
|
|
|
29
29
|
* Name of the plugin that registered this symbol.
|
|
30
30
|
*/
|
|
31
31
|
pluginName?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Type of resource this symbol represents.
|
|
34
|
+
*/
|
|
35
|
+
resourceType?:
|
|
36
|
+
| 'operation'
|
|
37
|
+
| 'parameter'
|
|
38
|
+
| 'requestBody'
|
|
39
|
+
| 'schema'
|
|
40
|
+
| 'server'
|
|
41
|
+
| 'webhook';
|
|
32
42
|
}
|
|
33
43
|
}
|
|
34
44
|
|
|
@@ -903,35 +913,6 @@ interface TDataShape {
|
|
|
903
913
|
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
904
914
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & Omit<TData, 'url'>;
|
|
905
915
|
|
|
906
|
-
declare const defaultPaginationKeywords: readonly ["after", "before", "cursor", "offset", "page", "start"];
|
|
907
|
-
|
|
908
|
-
/**
|
|
909
|
-
* Default plugins used to generate artifacts if plugins aren't specified.
|
|
910
|
-
*/
|
|
911
|
-
declare const defaultPlugins: readonly ["@hey-api/typescript", "@hey-api/sdk"];
|
|
912
|
-
|
|
913
|
-
declare const clientDefaultConfig: {
|
|
914
|
-
readonly baseUrl: true;
|
|
915
|
-
readonly bundle: true;
|
|
916
|
-
readonly exportFromIndex: false;
|
|
917
|
-
};
|
|
918
|
-
declare const clientDefaultMeta: {
|
|
919
|
-
readonly dependencies: readonly ["@hey-api/typescript"];
|
|
920
|
-
readonly tags: readonly ["client"];
|
|
921
|
-
};
|
|
922
|
-
|
|
923
|
-
declare const clientPluginHandler: ({ plugin, }: Parameters<PluginHandler>[0]) => void;
|
|
924
|
-
|
|
925
|
-
declare const definePluginConfig: <T extends Plugin.Types>(defaultConfig: Plugin.Config<T>) => (userConfig?: Omit<Plugin.UserConfig<T["config"]>, "name">) => Omit<Plugin.Config<T>, "name"> & {
|
|
926
|
-
/**
|
|
927
|
-
* Cast name to `any` so it doesn't throw type error in `plugins` array.
|
|
928
|
-
* We could allow any `string` as plugin `name` in the object syntax, but
|
|
929
|
-
* that TypeScript trick would cause all string methods to appear as
|
|
930
|
-
* suggested auto completions, which is undesirable.
|
|
931
|
-
*/
|
|
932
|
-
name: any;
|
|
933
|
-
};
|
|
934
|
-
|
|
935
916
|
type ImportExportItem = ImportExportItemObject | string;
|
|
936
917
|
|
|
937
918
|
type Property = {
|
|
@@ -1554,6 +1535,35 @@ declare const compiler: {
|
|
|
1554
1535
|
}) => typescript.Expression | undefined;
|
|
1555
1536
|
};
|
|
1556
1537
|
|
|
1538
|
+
declare const defaultPaginationKeywords: readonly ["after", "before", "cursor", "offset", "page", "start"];
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* Default plugins used to generate artifacts if plugins aren't specified.
|
|
1542
|
+
*/
|
|
1543
|
+
declare const defaultPlugins: readonly ["@hey-api/typescript", "@hey-api/sdk"];
|
|
1544
|
+
|
|
1545
|
+
declare const clientDefaultConfig: {
|
|
1546
|
+
readonly baseUrl: true;
|
|
1547
|
+
readonly bundle: true;
|
|
1548
|
+
readonly exportFromIndex: false;
|
|
1549
|
+
};
|
|
1550
|
+
declare const clientDefaultMeta: {
|
|
1551
|
+
readonly dependencies: readonly ["@hey-api/typescript"];
|
|
1552
|
+
readonly tags: readonly ["client"];
|
|
1553
|
+
};
|
|
1554
|
+
|
|
1555
|
+
declare const clientPluginHandler: ({ plugin, }: Parameters<PluginHandler>[0]) => void;
|
|
1556
|
+
|
|
1557
|
+
declare const definePluginConfig: <T extends Plugin.Types>(defaultConfig: Plugin.Config<T>) => (userConfig?: Omit<Plugin.UserConfig<T["config"]>, "name">) => Omit<Plugin.Config<T>, "name"> & {
|
|
1558
|
+
/**
|
|
1559
|
+
* Cast name to `any` so it doesn't throw type error in `plugins` array.
|
|
1560
|
+
* We could allow any `string` as plugin `name` in the object syntax, but
|
|
1561
|
+
* that TypeScript trick would cause all string methods to appear as
|
|
1562
|
+
* suggested auto completions, which is undesirable.
|
|
1563
|
+
*/
|
|
1564
|
+
name: any;
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1557
1567
|
declare const utils: {
|
|
1558
1568
|
stringCase: ({ case: _case, stripLeadingSeparators, value, }: {
|
|
1559
1569
|
readonly case: StringCase | undefined;
|