@hey-api/openapi-ts 0.64.12 → 0.64.14
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/dist/index.cjs +52 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +52 -52
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -7176,6 +7176,18 @@ interface Input {
|
|
|
7176
7176
|
* Organization created in Hey API platform.
|
|
7177
7177
|
*/
|
|
7178
7178
|
organization?: string;
|
|
7179
|
+
/**
|
|
7180
|
+
* Pagination configuration
|
|
7181
|
+
*/
|
|
7182
|
+
pagination?: {
|
|
7183
|
+
/**
|
|
7184
|
+
* Array of keywords to be considered as pagination field names.
|
|
7185
|
+
* These will be used to detect pagination fields in schemas and parameters.
|
|
7186
|
+
*
|
|
7187
|
+
* @default ['after', 'before', 'cursor', 'offset', 'page', 'start']
|
|
7188
|
+
*/
|
|
7189
|
+
keywords?: ReadonlyArray<string>;
|
|
7190
|
+
};
|
|
7179
7191
|
/**
|
|
7180
7192
|
* Path to the OpenAPI specification. This can be either local or remote path.
|
|
7181
7193
|
* Both JSON and YAML file formats are supported. You can also pass the parsed
|
|
@@ -7199,6 +7211,7 @@ interface Input {
|
|
|
7199
7211
|
* the first match will be returned.
|
|
7200
7212
|
*/
|
|
7201
7213
|
tags?: ReadonlyArray<string>;
|
|
7214
|
+
|
|
7202
7215
|
/**
|
|
7203
7216
|
* **Requires `path` to start with `https://get.heyapi.dev` or be undefined**
|
|
7204
7217
|
*
|
|
@@ -7874,15 +7887,16 @@ declare const utils: {
|
|
|
7874
7887
|
}) => string;
|
|
7875
7888
|
};
|
|
7876
7889
|
|
|
7890
|
+
type Configs = UserConfig | (() => UserConfig) | (() => Promise<UserConfig>);
|
|
7877
7891
|
/**
|
|
7878
7892
|
* Generate a client from the provided configuration.
|
|
7879
7893
|
*
|
|
7880
7894
|
* @param userConfig User provided {@link UserConfig} configuration.
|
|
7881
7895
|
*/
|
|
7882
|
-
declare const createClient: (userConfig
|
|
7896
|
+
declare const createClient: (userConfig?: Configs) => Promise<ReadonlyArray<Client$1 | IR.Context>>;
|
|
7883
7897
|
/**
|
|
7884
7898
|
* Type helper for openapi-ts.config.ts, returns {@link UserConfig} object
|
|
7885
7899
|
*/
|
|
7886
|
-
declare const defineConfig: (config:
|
|
7900
|
+
declare const defineConfig: (config: Configs) => Promise<UserConfig>;
|
|
7887
7901
|
|
|
7888
7902
|
export { IR, LegacyIR, OpenApi, Plugin, type UserConfig, createClient, defaultPlugins, defineConfig, utils };
|
package/dist/index.d.ts
CHANGED
|
@@ -7176,6 +7176,18 @@ interface Input {
|
|
|
7176
7176
|
* Organization created in Hey API platform.
|
|
7177
7177
|
*/
|
|
7178
7178
|
organization?: string;
|
|
7179
|
+
/**
|
|
7180
|
+
* Pagination configuration
|
|
7181
|
+
*/
|
|
7182
|
+
pagination?: {
|
|
7183
|
+
/**
|
|
7184
|
+
* Array of keywords to be considered as pagination field names.
|
|
7185
|
+
* These will be used to detect pagination fields in schemas and parameters.
|
|
7186
|
+
*
|
|
7187
|
+
* @default ['after', 'before', 'cursor', 'offset', 'page', 'start']
|
|
7188
|
+
*/
|
|
7189
|
+
keywords?: ReadonlyArray<string>;
|
|
7190
|
+
};
|
|
7179
7191
|
/**
|
|
7180
7192
|
* Path to the OpenAPI specification. This can be either local or remote path.
|
|
7181
7193
|
* Both JSON and YAML file formats are supported. You can also pass the parsed
|
|
@@ -7199,6 +7211,7 @@ interface Input {
|
|
|
7199
7211
|
* the first match will be returned.
|
|
7200
7212
|
*/
|
|
7201
7213
|
tags?: ReadonlyArray<string>;
|
|
7214
|
+
|
|
7202
7215
|
/**
|
|
7203
7216
|
* **Requires `path` to start with `https://get.heyapi.dev` or be undefined**
|
|
7204
7217
|
*
|
|
@@ -7874,15 +7887,16 @@ declare const utils: {
|
|
|
7874
7887
|
}) => string;
|
|
7875
7888
|
};
|
|
7876
7889
|
|
|
7890
|
+
type Configs = UserConfig | (() => UserConfig) | (() => Promise<UserConfig>);
|
|
7877
7891
|
/**
|
|
7878
7892
|
* Generate a client from the provided configuration.
|
|
7879
7893
|
*
|
|
7880
7894
|
* @param userConfig User provided {@link UserConfig} configuration.
|
|
7881
7895
|
*/
|
|
7882
|
-
declare const createClient: (userConfig
|
|
7896
|
+
declare const createClient: (userConfig?: Configs) => Promise<ReadonlyArray<Client$1 | IR.Context>>;
|
|
7883
7897
|
/**
|
|
7884
7898
|
* Type helper for openapi-ts.config.ts, returns {@link UserConfig} object
|
|
7885
7899
|
*/
|
|
7886
|
-
declare const defineConfig: (config:
|
|
7900
|
+
declare const defineConfig: (config: Configs) => Promise<UserConfig>;
|
|
7887
7901
|
|
|
7888
7902
|
export { IR, LegacyIR, OpenApi, Plugin, type UserConfig, createClient, defaultPlugins, defineConfig, utils };
|