diff --git a/docs/generators/typescript-axios.md b/docs/generators/typescript-axios.md
index 269c2b09587e..35b6e13726f9 100644
--- a/docs/generators/typescript-axios.md
+++ b/docs/generators/typescript-axios.md
@@ -20,7 +20,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
| ------ | ----------- | ------ | ------- |
|allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false|
|apiPackage|package for generated api classes| |null|
-|axiosVersion|Use this property to override the axios version in package.json| |^1.6.1|
+|axiosVersion|Use this property to override the axios version in package.json| |^1.12.2|
|disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|
**false** The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications. **true** Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default. |true|
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
|enumNameSuffix|Suffix that will be appended to all enum names.| |Enum|
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java
index 4551698f9fce..f54151da191a 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAxiosClientCodegen.java
@@ -51,7 +51,7 @@ public class TypeScriptAxiosClientCodegen extends AbstractTypeScriptClientCodege
public static final String IMPORT_FILE_EXTENSION_SWITCH_DESC = "File extension to use with relative imports. Set it to '.js' or '.mjs' when using [ESM](https://nodejs.org/api/esm.html).";
public static final String USE_SQUARE_BRACKETS_IN_ARRAY_NAMES = "useSquareBracketsInArrayNames";
public static final String AXIOS_VERSION = "axiosVersion";
- public static final String DEFAULT_AXIOS_VERSION = "^1.6.1";
+ public static final String DEFAULT_AXIOS_VERSION = "^1.12.2";
public static final String WITH_AWSV4_SIGNATURE = "withAWSV4Signature";
@Getter @Setter
diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache b/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache
index 449038234d7b..9b93ca1ec4f4 100644
--- a/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache
@@ -367,7 +367,7 @@ export interface {{classname}}{{operationIdCamelCase}}Request {
* {{description}}
*/
{{/description}}
- readonly {{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}
+ readonly {{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}{{^required}} | undefined{{/required}}
{{^-last}}
{{/-last}}
diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/configuration.mustache b/modules/openapi-generator/src/main/resources/typescript-axios/configuration.mustache
index 577907a1574b..ede17f330c60 100644
--- a/modules/openapi-generator/src/main/resources/typescript-axios/configuration.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-axios/configuration.mustache
@@ -1,4 +1,5 @@
/* tslint:disable */
+/* eslint-disable */
{{>licenseInfo}}
interface AWSv4Configuration {
@@ -14,15 +15,15 @@ interface AWSv4Configuration {
}
export interface ConfigurationParameters {
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
- username?: string;
- password?: string;
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
- awsv4?: AWSv4Configuration;
- basePath?: string;
- serverIndex?: number;
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
+ username?: string | undefined;
+ password?: string | undefined;
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
+ awsv4?: AWSv4Configuration | undefined;
+ basePath?: string | undefined;
+ serverIndex?: number | undefined;
baseOptions?: any;
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
}
export class Configuration {
@@ -30,21 +31,21 @@ export class Configuration {
* parameter for apiKey security
* @param name security name
*/
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
/**
* parameter for basic security
*/
- username?: string;
+ username?: string | undefined;
/**
* parameter for basic security
*/
- password?: string;
+ password?: string | undefined;
/**
* parameter for oauth2 security
* @param name security name
* @param scopes oauth2 scope
*/
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
/**
* parameter for aws4 signature security
* @param {Object} AWS4Signature - AWS4 Signature security
@@ -55,19 +56,19 @@ export class Configuration {
* @param {string} credentials.sessionToken - aws session token
* @memberof Configuration
*/
- awsv4?: AWSv4Configuration;
+ awsv4?: AWSv4Configuration | undefined;
/**
* override base path
*/
- basePath?: string;
+ basePath?: string | undefined;
/**
* override server index
*/
- serverIndex?: number;
+ serverIndex?: number | undefined;
/**
* base options for axios calls
*/
- baseOptions?: any;
+ baseOptions?: any | undefined;
/**
* The FormData constructor that will be used to create multipart form data
* requests. You can inject this here so that execution environments that
@@ -75,7 +76,7 @@ export class Configuration {
*
* @type {new () => FormData}
*/
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/modelGeneric.mustache b/modules/openapi-generator/src/main/resources/typescript-axios/modelGeneric.mustache
index 16d43b58d66b..948e29920bbc 100644
--- a/modules/openapi-generator/src/main/resources/typescript-axios/modelGeneric.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-axios/modelGeneric.mustache
@@ -24,7 +24,7 @@ export interface {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{
*/
{{/deprecated}}
{{/description}}
- '{{baseName}}'{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{#isNullable}} | null{{/isNullable}};
+ '{{baseName}}'{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{#isNullable}} | null{{/isNullable}}{{^required}} | undefined{{/required}};
{{/vars}}
}{{#hasEnums}}
diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/package.mustache b/modules/openapi-generator/src/main/resources/typescript-axios/package.mustache
index 34ed22e3785d..fe129bc6d8d2 100644
--- a/modules/openapi-generator/src/main/resources/typescript-axios/package.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-axios/package.mustache
@@ -32,7 +32,7 @@
{{/withAWSV4Signature}}
},
"devDependencies": {
- "@types/node": "12.11.5 - 12.20.42",
+ "@types/node": "12.11.5 - 14.14.31",
"typescript": "^4.0 || ^5.0"
}{{#npmRepository}},{{/npmRepository}}
{{#npmRepository}}
diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/tsconfig.mustache b/modules/openapi-generator/src/main/resources/typescript-axios/tsconfig.mustache
index d0ebbd47a6b6..f23e2d05fecb 100644
--- a/modules/openapi-generator/src/main/resources/typescript-axios/tsconfig.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-axios/tsconfig.mustache
@@ -3,6 +3,8 @@
"declaration": true,
"target": "{{#supportsES6}}ES6{{/supportsES6}}{{^supportsES6}}ES5{{/supportsES6}}",
"module": "commonjs",
+ "strictNullChecks": true,
+ "exactOptionalPropertyTypes": true,
"noImplicitAny": true,
"outDir": "dist",
"rootDir": ".",
diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache
index ab7411c8bb14..0f4bf34b3c04 100644
--- a/modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache
@@ -25,7 +25,7 @@ import {
{{#allParams.0}}
export interface {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request {
{{#allParams}}
- {{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{#hasReadOnly}}Omit<{{{dataType}}}, {{#readOnlyVars}}'{{baseName}}'{{^-last}}|{{/-last}}{{/readOnlyVars}}>{{/hasReadOnly}}{{^hasReadOnly}}{{{dataType}}}{{/hasReadOnly}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}};
+ {{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{#hasReadOnly}}Omit<{{{dataType}}}, {{#readOnlyVars}}'{{baseName}}'{{^-last}}|{{/-last}}{{/readOnlyVars}}>{{/hasReadOnly}}{{^hasReadOnly}}{{{dataType}}}{{/hasReadOnly}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}{{^required}} | undefined{{/required}};
{{/allParams}}
}
diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/modelGenericInterfaces.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/modelGenericInterfaces.mustache
index 68e5747598a9..dc50c5ff9f3f 100644
--- a/modules/openapi-generator/src/main/resources/typescript-fetch/modelGenericInterfaces.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-fetch/modelGenericInterfaces.mustache
@@ -16,7 +16,7 @@ export interface {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{
* @deprecated
{{/deprecated}}
*/
- {{#isReadOnly}}readonly {{/isReadOnly}}{{name}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}{{^isEnum}}{{{datatype}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}};
+ {{#isReadOnly}}readonly {{/isReadOnly}}{{name}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}{{^isEnum}}{{{datatype}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}{{^required}} | undefined{{/required}};
{{/vars}}
}{{#hasEnums}}
diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache
index 8cfe7948e922..d524c249d0fd 100644
--- a/modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache
@@ -6,16 +6,16 @@
export const BASE_PATH = "{{{basePath}}}".replace(/\/+$/, "");
export interface ConfigurationParameters {
- basePath?: string; // override base path
- fetchApi?: FetchAPI; // override for fetch implementation
- middleware?: Middleware[]; // middleware to apply before/after fetch requests
- queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings
- username?: string; // parameter for basic security
- password?: string; // parameter for basic security
- apiKey?: string | Promise | ((name: string) => string | Promise); // parameter for apiKey security
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security
- headers?: HTTPHeaders; //header params we want to use on every request
- credentials?: RequestCredentials; //value for the credentials param we want to use on each request
+ basePath?: string | undefined; // override base path
+ fetchApi?: FetchAPI | undefined; // override for fetch implementation
+ middleware?: Middleware[] | undefined; // middleware to apply before/after fetch requests
+ queryParamsStringify?: ((params: HTTPQuery) => string) | undefined; // stringify function for query strings
+ username?: string | undefined; // parameter for basic security
+ password?: string | undefined; // parameter for basic security
+ apiKey?: string | Promise | ((name: string) => string | Promise) | undefined; // parameter for apiKey security
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise) | undefined; // parameter for oauth2 security
+ headers?: HTTPHeaders | undefined; //header params we want to use on every request
+ credentials?: RequestCredentials | undefined; //value for the credentials param we want to use on each request
}
export class Configuration {
@@ -151,7 +151,6 @@ export class BaseAPI {
method: context.method,
headers,
body: context.body,
- credentials: this.configuration.credentials,
};
const overriddenInit: RequestInit = {
@@ -162,6 +161,10 @@ export class BaseAPI {
}))
};
+ if (!overriddenInit.credentials && this.configuration.credentials) {
+ overriddenInit.credentials = this.configuration.credentials;
+ }
+
let body: any;
if (isFormData(overriddenInit.body)
|| (overriddenInit.body instanceof URLSearchParams)
@@ -282,7 +285,12 @@ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
export type HTTPHeaders = { [key: string]: string };
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery };
export type HTTPBody = Json | FormData | URLSearchParams;
-export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
+export type HTTPRequestInit = {
+ headers?: HTTPHeaders | undefined;
+ method: HTTPMethod;
+ credentials?: RequestCredentials | undefined;
+ body?: HTTPBody | undefined;
+};
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise
@@ -373,13 +381,13 @@ export interface ErrorContext {
url: string;
init: RequestInit;
error: unknown;
- response?: Response;
+ response?: Response | undefined;
}
export interface Middleware {
- pre?(context: RequestContext): Promise;
- post?(context: ResponseContext): Promise;
- onError?(context: ErrorContext): Promise;
+ pre?: ((context: RequestContext) => Promise) | undefined;
+ post?: ((context: ResponseContext) => Promise) | undefined;
+ onError?: ((context: ErrorContext) => Promise) | undefined;
}
export interface ApiResponse {
diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/sagas.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/sagas.mustache
index 2ea9cf32d73a..78c12fd37804 100644
--- a/modules/openapi-generator/src/main/resources/typescript-fetch/sagas.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-fetch/sagas.mustache
@@ -67,7 +67,7 @@ export interface Payload{{#lambda.titlecase}}{{#lambda.camelcase}}{{nickname}}{{
{{#allParams.0}}
export interface Payload{{#lambda.titlecase}}{{#lambda.camelcase}}{{nickname}}{{/lambda.camelcase}}{{/lambda.titlecase}}Request {
{{#allParams}}
- {{paramName}}{{^required}}?{{/required}}: {{{dataTypeAlternate}}};
+ {{paramName}}{{^required}}?{{/required}}: {{{dataTypeAlternate}}}{{^required}} | undefined{{/required}};
{{/allParams}}
}
{{/allParams.0}}
diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/tsconfig.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/tsconfig.mustache
index a8778b096590..111a039fdcdb 100644
--- a/modules/openapi-generator/src/main/resources/typescript-fetch/tsconfig.mustache
+++ b/modules/openapi-generator/src/main/resources/typescript-fetch/tsconfig.mustache
@@ -6,6 +6,8 @@
"strict": true,
{{/sagasAndRecords}}
"module": "commonjs",
+ "strictNullChecks": true,
+ "exactOptionalPropertyTypes": true,
"moduleResolution": "node",
"outDir": "dist",
{{^supportsES6}}
diff --git a/samples/client/echo_api/typescript-axios/build/api.ts b/samples/client/echo_api/typescript-axios/build/api.ts
index f7ce15862e3f..1bf4d3f64188 100644
--- a/samples/client/echo_api/typescript-axios/build/api.ts
+++ b/samples/client/echo_api/typescript-axios/build/api.ts
@@ -24,26 +24,26 @@ import type { RequestArgs } from './base';
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
export interface Bird {
- 'size'?: string;
- 'color'?: string;
+ 'size'?: string | undefined;
+ 'color'?: string | undefined;
}
export interface Category {
- 'id'?: number;
- 'name'?: string;
+ 'id'?: number | undefined;
+ 'name'?: string | undefined;
}
export interface DataQuery extends Query {
/**
* test suffix
*/
- 'suffix'?: string;
+ 'suffix'?: string | undefined;
/**
* Some text containing white spaces
*/
- 'text'?: string;
+ 'text'?: string | undefined;
/**
* A date
*/
- 'date'?: string;
+ 'date'?: string | undefined;
}
@@ -51,14 +51,14 @@ export interface DataQuery extends Query {
* to test the default value of properties
*/
export interface DefaultValue {
- 'array_string_enum_ref_default'?: Array;
- 'array_string_enum_default'?: Array;
- 'array_string_default'?: Array;
- 'array_integer_default'?: Array;
- 'array_string'?: Array;
- 'array_string_nullable'?: Array | null;
- 'array_string_extension_nullable'?: Array | null;
- 'string_nullable'?: string | null;
+ 'array_string_enum_ref_default'?: Array | undefined;
+ 'array_string_enum_default'?: Array | undefined;
+ 'array_string_default'?: Array | undefined;
+ 'array_integer_default'?: Array | undefined;
+ 'array_string'?: Array | undefined;
+ 'array_string_nullable'?: Array | null | undefined;
+ 'array_string_extension_nullable'?: Array | null | undefined;
+ 'string_nullable'?: string | null | undefined;
}
export const DefaultValueArrayStringEnumDefaultEnum = {
@@ -70,20 +70,20 @@ export const DefaultValueArrayStringEnumDefaultEnum = {
export type DefaultValueArrayStringEnumDefaultEnum = typeof DefaultValueArrayStringEnumDefaultEnum[keyof typeof DefaultValueArrayStringEnumDefaultEnum];
export interface NumberPropertiesOnly {
- 'number'?: number;
- 'float'?: number;
- 'double'?: number;
+ 'number'?: number | undefined;
+ 'float'?: number | undefined;
+ 'double'?: number | undefined;
}
export interface Pet {
- 'id'?: number;
+ 'id'?: number | undefined;
'name': string;
- 'category'?: Category;
+ 'category'?: Category | undefined;
'photoUrls': Array;
- 'tags'?: Array;
+ 'tags'?: Array | undefined;
/**
* pet status in the store
*/
- 'status'?: PetStatusEnum;
+ 'status'?: PetStatusEnum | undefined;
}
export const PetStatusEnum = {
@@ -98,8 +98,8 @@ export interface Query {
/**
* Query
*/
- 'id'?: number;
- 'outcomes'?: Array;
+ 'id'?: number | undefined;
+ 'outcomes'?: Array | undefined;
}
export const QueryOutcomesEnum = {
@@ -121,20 +121,20 @@ export type StringEnumRef = typeof StringEnumRef[keyof typeof StringEnumRef];
export interface Tag {
- 'id'?: number;
- 'name'?: string;
+ 'id'?: number | undefined;
+ 'name'?: string | undefined;
}
export interface TestFormObjectMultipartRequestMarker {
- 'name'?: string;
+ 'name'?: string | undefined;
}
export interface TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter {
- 'size'?: string;
- 'color'?: string;
- 'id'?: number;
- 'name'?: string;
+ 'size'?: string | undefined;
+ 'color'?: string | undefined;
+ 'id'?: number | undefined;
+ 'name'?: string | undefined;
}
export interface TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
- 'values'?: Array;
+ 'values'?: Array | undefined;
}
/**
diff --git a/samples/client/echo_api/typescript-axios/build/configuration.ts b/samples/client/echo_api/typescript-axios/build/configuration.ts
index ff980524201c..eeb5b4ebddc1 100644
--- a/samples/client/echo_api/typescript-axios/build/configuration.ts
+++ b/samples/client/echo_api/typescript-axios/build/configuration.ts
@@ -1,4 +1,5 @@
/* tslint:disable */
+/* eslint-disable */
/**
* Echo Server API
* Echo Server API
@@ -24,15 +25,15 @@ interface AWSv4Configuration {
}
export interface ConfigurationParameters {
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
- username?: string;
- password?: string;
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
- awsv4?: AWSv4Configuration;
- basePath?: string;
- serverIndex?: number;
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
+ username?: string | undefined;
+ password?: string | undefined;
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
+ awsv4?: AWSv4Configuration | undefined;
+ basePath?: string | undefined;
+ serverIndex?: number | undefined;
baseOptions?: any;
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
}
export class Configuration {
@@ -40,21 +41,21 @@ export class Configuration {
* parameter for apiKey security
* @param name security name
*/
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
/**
* parameter for basic security
*/
- username?: string;
+ username?: string | undefined;
/**
* parameter for basic security
*/
- password?: string;
+ password?: string | undefined;
/**
* parameter for oauth2 security
* @param name security name
* @param scopes oauth2 scope
*/
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
/**
* parameter for aws4 signature security
* @param {Object} AWS4Signature - AWS4 Signature security
@@ -65,19 +66,19 @@ export class Configuration {
* @param {string} credentials.sessionToken - aws session token
* @memberof Configuration
*/
- awsv4?: AWSv4Configuration;
+ awsv4?: AWSv4Configuration | undefined;
/**
* override base path
*/
- basePath?: string;
+ basePath?: string | undefined;
/**
* override server index
*/
- serverIndex?: number;
+ serverIndex?: number | undefined;
/**
* base options for axios calls
*/
- baseOptions?: any;
+ baseOptions?: any | undefined;
/**
* The FormData constructor that will be used to create multipart form data
* requests. You can inject this here so that execution environments that
@@ -85,7 +86,7 @@ export class Configuration {
*
* @type {new () => FormData}
*/
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
diff --git a/samples/client/echo_api/typescript-axios/build/package-lock.json b/samples/client/echo_api/typescript-axios/build/package-lock.json
index 8e93429ce0ee..b4bc6f906471 100644
--- a/samples/client/echo_api/typescript-axios/build/package-lock.json
+++ b/samples/client/echo_api/typescript-axios/build/package-lock.json
@@ -9,17 +9,17 @@
"version": "1.0.0",
"license": "Unlicense",
"dependencies": {
- "axios": "^1.6.1"
+ "axios": "^1.12.2"
},
"devDependencies": {
- "@types/node": "12.11.5 - 12.20.42",
+ "@types/node": "12.11.5 - 14.14.31",
"typescript": "^4.0 || ^5.0"
}
},
"node_modules/@types/node": {
- "version": "12.20.42",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.42.tgz",
- "integrity": "sha512-aI3/oo5DzyiI5R/xAhxxRzfZlWlsbbqdgxfTPkqu/Zt+23GXiJvMCyPJT4+xKSXOnLqoL8jJYMLTwvK2M3a5hw==",
+ "version": "14.14.31",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.31.tgz",
+ "integrity": "sha512-vFHy/ezP5qI0rFgJ7aQnjDXwAMrG0KqqIH7tQG5PPv3BWBayOPIQNBjVc/P6hhdZfMx51REc6tfDNXHUio893g==",
"dev": true,
"license": "MIT"
},
@@ -30,16 +30,29 @@
"license": "MIT"
},
"node_modules/axios": {
- "version": "1.7.7",
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz",
- "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==",
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.12.2.tgz",
+ "integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==",
"license": "MIT",
"dependencies": {
"follow-redirects": "^1.15.6",
- "form-data": "^4.0.0",
+ "form-data": "^4.0.4",
"proxy-from-env": "^1.1.0"
}
},
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/combined-stream": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
@@ -61,10 +74,69 @@
"node": ">=0.4.0"
}
},
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-set-tostringtag": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.6",
+ "has-tostringtag": "^1.0.2",
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/follow-redirects": {
- "version": "1.15.9",
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz",
- "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",
+ "version": "1.15.11",
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz",
+ "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",
"funding": [
{
"type": "individual",
@@ -82,19 +154,127 @@
}
},
"node_modules/form-data": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz",
- "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==",
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
+ "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
"license": "MIT",
"dependencies": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.8",
+ "es-set-tostringtag": "^2.1.0",
+ "hasown": "^2.0.2",
"mime-types": "^2.1.12"
},
"engines": {
"node": ">= 6"
}
},
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "function-bind": "^1.1.2",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-tostringtag": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
+ "license": "MIT",
+ "dependencies": {
+ "has-symbols": "^1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/mime-db": {
"version": "1.52.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
@@ -123,9 +303,9 @@
"license": "MIT"
},
"node_modules/typescript": {
- "version": "5.6.3",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz",
- "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==",
+ "version": "5.9.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
"dev": true,
"license": "Apache-2.0",
"bin": {
diff --git a/samples/client/echo_api/typescript-axios/build/package.json b/samples/client/echo_api/typescript-axios/build/package.json
index e5d6921f72aa..bbce78b18440 100644
--- a/samples/client/echo_api/typescript-axios/build/package.json
+++ b/samples/client/echo_api/typescript-axios/build/package.json
@@ -22,10 +22,10 @@
"prepare": "npm run build"
},
"dependencies": {
- "axios": "^1.6.1"
+ "axios": "^1.12.2"
},
"devDependencies": {
- "@types/node": "12.11.5 - 12.20.42",
+ "@types/node": "12.11.5 - 14.14.31",
"typescript": "^4.0 || ^5.0"
}
}
diff --git a/samples/client/echo_api/typescript-axios/build/tsconfig.json b/samples/client/echo_api/typescript-axios/build/tsconfig.json
index d953a374d812..e974128f8ca5 100644
--- a/samples/client/echo_api/typescript-axios/build/tsconfig.json
+++ b/samples/client/echo_api/typescript-axios/build/tsconfig.json
@@ -3,6 +3,8 @@
"declaration": true,
"target": "ES5",
"module": "commonjs",
+ "strictNullChecks": true,
+ "exactOptionalPropertyTypes": true,
"noImplicitAny": true,
"outDir": "dist",
"rootDir": ".",
diff --git a/samples/client/echo_api/typescript-axios/test/package-lock.json b/samples/client/echo_api/typescript-axios/test/package-lock.json
index ffc620f4c24d..1e0fcdd23d55 100644
--- a/samples/client/echo_api/typescript-axios/test/package-lock.json
+++ b/samples/client/echo_api/typescript-axios/test/package-lock.json
@@ -25,17 +25,18 @@
"version": "1.0.0",
"license": "Unlicense",
"dependencies": {
- "axios": "^0.27.2"
+ "axios": "^1.12.2"
},
"devDependencies": {
- "@types/node": "^12.11.5",
- "typescript": "^4.0"
+ "@types/node": "12.11.5 - 14.14.31",
+ "typescript": "^4.0 || ^5.0"
}
},
"node_modules/@cspotcode/source-map-support": {
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
"integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
+ "license": "MIT",
"dependencies": {
"@jridgewell/trace-mapping": "0.3.9"
},
@@ -44,22 +45,25 @@
}
},
"node_modules/@jridgewell/resolve-uri": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz",
- "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==",
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "license": "MIT",
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/@jridgewell/sourcemap-codec": {
- "version": "1.4.15",
- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
- "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg=="
+ "version": "1.5.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "license": "MIT"
},
"node_modules/@jridgewell/trace-mapping": {
"version": "0.3.9",
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
"integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
+ "license": "MIT",
"dependencies": {
"@jridgewell/resolve-uri": "^3.0.3",
"@jridgewell/sourcemap-codec": "^1.4.10"
@@ -70,52 +74,94 @@
"link": true
},
"node_modules/@tsconfig/node10": {
- "version": "1.0.9",
- "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz",
- "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA=="
+ "version": "1.0.11",
+ "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz",
+ "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==",
+ "license": "MIT"
},
"node_modules/@tsconfig/node12": {
"version": "1.0.11",
"resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz",
- "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag=="
+ "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==",
+ "license": "MIT"
},
"node_modules/@tsconfig/node14": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz",
- "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow=="
+ "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==",
+ "license": "MIT"
},
"node_modules/@tsconfig/node16": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz",
- "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA=="
+ "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",
+ "license": "MIT"
},
"node_modules/@types/chai": {
- "version": "4.3.9",
- "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.9.tgz",
- "integrity": "sha512-69TtiDzu0bcmKQv3yg1Zx409/Kd7r0b5F1PfpYJfSHzLGtB53547V4u+9iqKYsTu/O2ai6KTb0TInNpvuQ3qmg=="
+ "version": "4.3.20",
+ "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.20.tgz",
+ "integrity": "sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==",
+ "license": "MIT"
},
"node_modules/@types/mocha": {
- "version": "10.0.3",
- "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.3.tgz",
- "integrity": "sha512-RsOPImTriV/OE4A9qKjMtk2MnXiuLLbcO3nCXK+kvq4nr0iMfFgpjaX3MPLb6f7+EL1FGSelYvuJMV6REH+ZPQ=="
+ "version": "10.0.10",
+ "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.10.tgz",
+ "integrity": "sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==",
+ "license": "MIT"
},
"node_modules/@types/node": {
- "version": "16.18.59",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.59.tgz",
- "integrity": "sha512-PJ1w2cNeKUEdey4LiPra0ZuxZFOGvetswE8qHRriV/sUkL5Al4tTmPV9D2+Y/TPIxTHHgxTfRjZVKWhPw/ORhQ=="
+ "version": "16.18.126",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.126.tgz",
+ "integrity": "sha512-OTcgaiwfGFBKacvfwuHzzn1KLxH/er8mluiy8/uM3sGXHaRe73RrSIj01jow9t4kJEW633Ov+cOexXeiApTyAw==",
+ "license": "MIT"
+ },
+ "node_modules/acorn": {
+ "version": "8.15.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
+ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-walk": {
+ "version": "8.3.4",
+ "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz",
+ "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==",
+ "license": "MIT",
+ "dependencies": {
+ "acorn": "^8.11.0"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
},
"node_modules/ansi-colors": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz",
- "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==",
+ "version": "4.1.3",
+ "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz",
+ "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==",
+ "license": "MIT",
"engines": {
"node": ">=6"
}
},
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "license": "MIT",
"dependencies": {
"color-convert": "^2.0.1"
},
@@ -130,6 +176,7 @@
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
"integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
+ "license": "ISC",
"dependencies": {
"normalize-path": "^3.0.0",
"picomatch": "^2.0.4"
@@ -141,17 +188,20 @@
"node_modules/arg": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
- "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA=="
+ "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
+ "license": "MIT"
},
"node_modules/argparse": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
- "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "license": "Python-2.0"
},
"node_modules/assertion-error": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz",
"integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==",
+ "license": "MIT",
"engines": {
"node": "*"
}
@@ -159,31 +209,37 @@
"node_modules/balanced-match": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "license": "MIT"
},
"node_modules/binary-extensions": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
- "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
+ "license": "MIT",
"engines": {
"node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/brace-expansion": {
- "version": "1.1.11",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
+ "license": "MIT",
"dependencies": {
- "balanced-match": "^1.0.0",
- "concat-map": "0.0.1"
+ "balanced-match": "^1.0.0"
}
},
"node_modules/braces": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
- "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
+ "license": "MIT",
"dependencies": {
- "fill-range": "^7.0.1"
+ "fill-range": "^7.1.1"
},
"engines": {
"node": ">=8"
@@ -192,12 +248,14 @@
"node_modules/browser-stdout": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz",
- "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw=="
+ "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==",
+ "license": "ISC"
},
"node_modules/camelcase": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",
"integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",
+ "license": "MIT",
"engines": {
"node": ">=10"
},
@@ -206,9 +264,10 @@
}
},
"node_modules/chai": {
- "version": "4.3.10",
- "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.10.tgz",
- "integrity": "sha512-0UXG04VuVbruMUYbJ6JctvH0YnC/4q3/AkT18q4NaITo91CUm0liMS9VqzT9vZhVQ/1eqPanMWjBM+Juhfb/9g==",
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz",
+ "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==",
+ "license": "MIT",
"dependencies": {
"assertion-error": "^1.1.0",
"check-error": "^1.0.3",
@@ -216,7 +275,7 @@
"get-func-name": "^2.0.2",
"loupe": "^2.3.6",
"pathval": "^1.1.1",
- "type-detect": "^4.0.8"
+ "type-detect": "^4.1.0"
},
"engines": {
"node": ">=4"
@@ -226,6 +285,7 @@
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "license": "MIT",
"dependencies": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
@@ -241,6 +301,7 @@
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "license": "MIT",
"dependencies": {
"has-flag": "^4.0.0"
},
@@ -252,6 +313,7 @@
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz",
"integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==",
+ "license": "MIT",
"dependencies": {
"get-func-name": "^2.0.2"
},
@@ -260,15 +322,10 @@
}
},
"node_modules/chokidar": {
- "version": "3.5.3",
- "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
- "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
- "funding": [
- {
- "type": "individual",
- "url": "https://paulmillr.com/funding/"
- }
- ],
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
+ "license": "MIT",
"dependencies": {
"anymatch": "~3.1.2",
"braces": "~3.0.2",
@@ -281,6 +338,9 @@
"engines": {
"node": ">= 8.10.0"
},
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ },
"optionalDependencies": {
"fsevents": "~2.3.2"
}
@@ -289,56 +349,18 @@
"version": "7.0.4",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
"integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
+ "license": "ISC",
"dependencies": {
"string-width": "^4.2.0",
"strip-ansi": "^6.0.0",
"wrap-ansi": "^7.0.0"
}
},
- "node_modules/cliui/node_modules/ansi-regex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/cliui/node_modules/is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/cliui/node_modules/string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dependencies": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/cliui/node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "dependencies": {
- "ansi-regex": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "license": "MIT",
"dependencies": {
"color-name": "~1.1.4"
},
@@ -349,24 +371,22 @@
"node_modules/color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
- },
- "node_modules/concat-map": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "license": "MIT"
},
"node_modules/create-require": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
- "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ=="
+ "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
+ "license": "MIT"
},
"node_modules/debug": {
- "version": "4.3.4",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
- "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "license": "MIT",
"dependencies": {
- "ms": "2.1.2"
+ "ms": "^2.1.3"
},
"engines": {
"node": ">=6.0"
@@ -377,15 +397,11 @@
}
}
},
- "node_modules/debug/node_modules/ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
- },
"node_modules/decamelize": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz",
"integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==",
+ "license": "MIT",
"engines": {
"node": ">=10"
},
@@ -394,9 +410,10 @@
}
},
"node_modules/deep-eql": {
- "version": "4.1.3",
- "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz",
- "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==",
+ "version": "4.1.4",
+ "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz",
+ "integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==",
+ "license": "MIT",
"dependencies": {
"type-detect": "^4.0.0"
},
@@ -405,9 +422,10 @@
}
},
"node_modules/diff": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz",
- "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==",
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz",
+ "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==",
+ "license": "BSD-3-Clause",
"engines": {
"node": ">=0.3.1"
}
@@ -415,12 +433,14 @@
"node_modules/emoji-regex": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "license": "MIT"
},
"node_modules/escalade": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
- "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "license": "MIT",
"engines": {
"node": ">=6"
}
@@ -429,6 +449,7 @@
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
"integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "license": "MIT",
"engines": {
"node": ">=10"
},
@@ -437,9 +458,10 @@
}
},
"node_modules/fill-range": {
- "version": "7.0.1",
- "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
- "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
+ "license": "MIT",
"dependencies": {
"to-regex-range": "^5.0.1"
},
@@ -451,6 +473,7 @@
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
"integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "license": "MIT",
"dependencies": {
"locate-path": "^6.0.0",
"path-exists": "^4.0.0"
@@ -466,6 +489,7 @@
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz",
"integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==",
+ "license": "BSD-3-Clause",
"bin": {
"flat": "cli.js"
}
@@ -473,13 +497,15 @@
"node_modules/fs.realpath": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
+ "license": "ISC"
},
"node_modules/fsevents": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
"hasInstallScript": true,
+ "license": "MIT",
"optional": true,
"os": [
"darwin"
@@ -492,6 +518,7 @@
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "license": "ISC",
"engines": {
"node": "6.* || 8.* || >= 10.*"
}
@@ -500,14 +527,36 @@
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz",
"integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==",
+ "license": "MIT",
"engines": {
"node": "*"
}
},
+ "node_modules/glob": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz",
+ "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==",
+ "deprecated": "Glob versions prior to v9 are no longer supported",
+ "license": "ISC",
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^5.0.1",
+ "once": "^1.3.0"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
"node_modules/glob-parent": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "license": "ISC",
"dependencies": {
"is-glob": "^4.0.1"
},
@@ -519,6 +568,7 @@
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "license": "MIT",
"engines": {
"node": ">=8"
}
@@ -527,6 +577,7 @@
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
"integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
+ "license": "MIT",
"bin": {
"he": "bin/he"
}
@@ -535,6 +586,8 @@
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
"integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
+ "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",
+ "license": "ISC",
"dependencies": {
"once": "^1.3.0",
"wrappy": "1"
@@ -543,12 +596,14 @@
"node_modules/inherits": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "license": "ISC"
},
"node_modules/is-binary-path": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "license": "MIT",
"dependencies": {
"binary-extensions": "^2.0.0"
},
@@ -560,14 +615,25 @@
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
+ "node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/is-glob": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "license": "MIT",
"dependencies": {
"is-extglob": "^2.1.1"
},
@@ -579,6 +645,7 @@
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "license": "MIT",
"engines": {
"node": ">=0.12.0"
}
@@ -587,6 +654,7 @@
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz",
"integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==",
+ "license": "MIT",
"engines": {
"node": ">=8"
}
@@ -595,6 +663,7 @@
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
"integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
+ "license": "MIT",
"engines": {
"node": ">=10"
},
@@ -606,6 +675,7 @@
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "license": "MIT",
"dependencies": {
"argparse": "^2.0.1"
},
@@ -617,6 +687,7 @@
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
"integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "license": "MIT",
"dependencies": {
"p-locate": "^5.0.0"
},
@@ -631,6 +702,7 @@
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
"integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
+ "license": "MIT",
"dependencies": {
"chalk": "^4.1.0",
"is-unicode-supported": "^0.1.0"
@@ -646,6 +718,7 @@
"version": "2.3.7",
"resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz",
"integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==",
+ "license": "MIT",
"dependencies": {
"get-func-name": "^2.0.1"
}
@@ -653,116 +726,67 @@
"node_modules/make-error": {
"version": "1.3.6",
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
- "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw=="
+ "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
+ "license": "ISC"
},
- "node_modules/mocha": {
- "version": "10.2.0",
- "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz",
- "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==",
- "dependencies": {
- "ansi-colors": "4.1.1",
- "browser-stdout": "1.3.1",
- "chokidar": "3.5.3",
- "debug": "4.3.4",
- "diff": "5.0.0",
- "escape-string-regexp": "4.0.0",
- "find-up": "5.0.0",
- "glob": "7.2.0",
- "he": "1.2.0",
- "js-yaml": "4.1.0",
- "log-symbols": "4.1.0",
- "minimatch": "5.0.1",
- "ms": "2.1.3",
- "nanoid": "3.3.3",
- "serialize-javascript": "6.0.0",
- "strip-json-comments": "3.1.1",
- "supports-color": "8.1.1",
- "workerpool": "6.2.1",
- "yargs": "16.2.0",
- "yargs-parser": "20.2.4",
- "yargs-unparser": "2.0.0"
- },
- "bin": {
- "_mocha": "bin/_mocha",
- "mocha": "bin/mocha.js"
- },
- "engines": {
- "node": ">= 14.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/mochajs"
- }
- },
- "node_modules/mocha/node_modules/glob": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz",
- "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==",
+ "node_modules/minimatch": {
+ "version": "5.1.6",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz",
+ "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
+ "license": "ISC",
"dependencies": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
+ "brace-expansion": "^2.0.1"
},
"engines": {
- "node": "*"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
+ "node": ">=10"
}
},
- "node_modules/mocha/node_modules/glob/node_modules/minimatch": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "node_modules/mocha": {
+ "version": "10.8.2",
+ "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.8.2.tgz",
+ "integrity": "sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==",
+ "license": "MIT",
"dependencies": {
- "brace-expansion": "^1.1.7"
+ "ansi-colors": "^4.1.3",
+ "browser-stdout": "^1.3.1",
+ "chokidar": "^3.5.3",
+ "debug": "^4.3.5",
+ "diff": "^5.2.0",
+ "escape-string-regexp": "^4.0.0",
+ "find-up": "^5.0.0",
+ "glob": "^8.1.0",
+ "he": "^1.2.0",
+ "js-yaml": "^4.1.0",
+ "log-symbols": "^4.1.0",
+ "minimatch": "^5.1.6",
+ "ms": "^2.1.3",
+ "serialize-javascript": "^6.0.2",
+ "strip-json-comments": "^3.1.1",
+ "supports-color": "^8.1.1",
+ "workerpool": "^6.5.1",
+ "yargs": "^16.2.0",
+ "yargs-parser": "^20.2.9",
+ "yargs-unparser": "^2.0.0"
},
- "engines": {
- "node": "*"
- }
- },
- "node_modules/mocha/node_modules/minimatch": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz",
- "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==",
- "dependencies": {
- "brace-expansion": "^2.0.1"
+ "bin": {
+ "_mocha": "bin/_mocha",
+ "mocha": "bin/mocha.js"
},
"engines": {
- "node": ">=10"
- }
- },
- "node_modules/mocha/node_modules/minimatch/node_modules/brace-expansion": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
- "dependencies": {
- "balanced-match": "^1.0.0"
+ "node": ">= 14.0.0"
}
},
"node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
- },
- "node_modules/nanoid": {
- "version": "3.3.3",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz",
- "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==",
- "bin": {
- "nanoid": "bin/nanoid.cjs"
- },
- "engines": {
- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
- }
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
},
"node_modules/normalize-path": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
+ "license": "MIT",
"engines": {
"node": ">=0.10.0"
}
@@ -771,6 +795,7 @@
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+ "license": "ISC",
"dependencies": {
"wrappy": "1"
}
@@ -779,6 +804,7 @@
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
"integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "license": "MIT",
"dependencies": {
"yocto-queue": "^0.1.0"
},
@@ -793,6 +819,7 @@
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
"integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "license": "MIT",
"dependencies": {
"p-limit": "^3.0.2"
},
@@ -807,22 +834,16 @@
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
"integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "license": "MIT",
"engines": {
"node": ">=8"
}
},
- "node_modules/path-is-absolute": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/pathval": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz",
"integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==",
+ "license": "MIT",
"engines": {
"node": "*"
}
@@ -831,6 +852,7 @@
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
+ "license": "MIT",
"engines": {
"node": ">=8.6"
},
@@ -842,6 +864,7 @@
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
"integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
+ "license": "MIT",
"dependencies": {
"safe-buffer": "^5.1.0"
}
@@ -850,6 +873,7 @@
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
+ "license": "MIT",
"dependencies": {
"picomatch": "^2.2.1"
},
@@ -861,6 +885,7 @@
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
"integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "license": "MIT",
"engines": {
"node": ">=0.10.0"
}
@@ -882,20 +907,49 @@
"type": "consulting",
"url": "https://feross.org/support"
}
- ]
+ ],
+ "license": "MIT"
},
"node_modules/serialize-javascript": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz",
- "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==",
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz",
+ "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==",
+ "license": "BSD-3-Clause",
"dependencies": {
"randombytes": "^2.1.0"
}
},
+ "node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/strip-json-comments": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
+ "license": "MIT",
"engines": {
"node": ">=8"
},
@@ -907,6 +961,7 @@
"version": "8.1.1",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
"integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
+ "license": "MIT",
"dependencies": {
"has-flag": "^4.0.0"
},
@@ -921,6 +976,7 @@
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "license": "MIT",
"dependencies": {
"is-number": "^7.0.0"
},
@@ -929,9 +985,10 @@
}
},
"node_modules/ts-node": {
- "version": "10.9.1",
- "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz",
- "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==",
+ "version": "10.9.2",
+ "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz",
+ "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==",
+ "license": "MIT",
"dependencies": {
"@cspotcode/source-map-support": "^0.8.0",
"@tsconfig/node10": "^1.0.7",
@@ -970,45 +1027,29 @@
}
}
},
- "node_modules/ts-node/node_modules/acorn": {
- "version": "8.11.2",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz",
- "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==",
- "bin": {
- "acorn": "bin/acorn"
- },
- "engines": {
- "node": ">=0.4.0"
- }
- },
- "node_modules/ts-node/node_modules/acorn-walk": {
- "version": "8.3.0",
- "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.0.tgz",
- "integrity": "sha512-FS7hV565M5l1R08MXqo8odwMTB02C2UqzB17RVgu9EyuYFBqJZ3/ZY97sQD5FewVu1UyDFc1yztUDrAwT0EypA==",
- "engines": {
- "node": ">=0.4.0"
- }
- },
"node_modules/ts-node/node_modules/diff": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
"integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
+ "license": "BSD-3-Clause",
"engines": {
"node": ">=0.3.1"
}
},
"node_modules/type-detect": {
- "version": "4.0.8",
- "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
- "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz",
+ "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==",
+ "license": "MIT",
"engines": {
"node": ">=4"
}
},
"node_modules/typescript": {
- "version": "5.2.2",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
- "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
+ "version": "5.9.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
+ "license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
@@ -1020,17 +1061,20 @@
"node_modules/v8-compile-cache-lib": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",
- "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg=="
+ "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",
+ "license": "MIT"
},
"node_modules/workerpool": {
- "version": "6.2.1",
- "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz",
- "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw=="
+ "version": "6.5.1",
+ "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz",
+ "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==",
+ "license": "Apache-2.0"
},
"node_modules/wrap-ansi": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "license": "MIT",
"dependencies": {
"ansi-styles": "^4.0.0",
"string-width": "^4.1.0",
@@ -1043,55 +1087,17 @@
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
}
},
- "node_modules/wrap-ansi/node_modules/ansi-regex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/wrap-ansi/node_modules/string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dependencies": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/wrap-ansi/node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "dependencies": {
- "ansi-regex": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+ "license": "ISC"
},
"node_modules/y18n": {
"version": "5.0.8",
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
"integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "license": "ISC",
"engines": {
"node": ">=10"
}
@@ -1100,6 +1106,7 @@
"version": "16.2.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
"integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
+ "license": "MIT",
"dependencies": {
"cliui": "^7.0.2",
"escalade": "^3.1.1",
@@ -1114,9 +1121,10 @@
}
},
"node_modules/yargs-parser": {
- "version": "20.2.4",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz",
- "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==",
+ "version": "20.2.9",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",
+ "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
+ "license": "ISC",
"engines": {
"node": ">=10"
}
@@ -1125,6 +1133,7 @@
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz",
"integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==",
+ "license": "MIT",
"dependencies": {
"camelcase": "^6.0.0",
"decamelize": "^4.0.0",
@@ -1135,50 +1144,11 @@
"node": ">=10"
}
},
- "node_modules/yargs/node_modules/ansi-regex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/yargs/node_modules/is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/yargs/node_modules/string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dependencies": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/yargs/node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "dependencies": {
- "ansi-regex": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/yn": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
"integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
+ "license": "MIT",
"engines": {
"node": ">=6"
}
@@ -1187,6 +1157,7 @@
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "license": "MIT",
"engines": {
"node": ">=10"
},
diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/configuration.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/configuration.ts
index 172a02242a9b..47315be2e2cd 100644
--- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/configuration.ts
+++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/configuration.ts
@@ -1,4 +1,5 @@
/* tslint:disable */
+/* eslint-disable */
/**
* Example
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -24,15 +25,15 @@ interface AWSv4Configuration {
}
export interface ConfigurationParameters {
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
- username?: string;
- password?: string;
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
- awsv4?: AWSv4Configuration;
- basePath?: string;
- serverIndex?: number;
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
+ username?: string | undefined;
+ password?: string | undefined;
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
+ awsv4?: AWSv4Configuration | undefined;
+ basePath?: string | undefined;
+ serverIndex?: number | undefined;
baseOptions?: any;
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
}
export class Configuration {
@@ -40,21 +41,21 @@ export class Configuration {
* parameter for apiKey security
* @param name security name
*/
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
/**
* parameter for basic security
*/
- username?: string;
+ username?: string | undefined;
/**
* parameter for basic security
*/
- password?: string;
+ password?: string | undefined;
/**
* parameter for oauth2 security
* @param name security name
* @param scopes oauth2 scope
*/
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
/**
* parameter for aws4 signature security
* @param {Object} AWS4Signature - AWS4 Signature security
@@ -65,19 +66,19 @@ export class Configuration {
* @param {string} credentials.sessionToken - aws session token
* @memberof Configuration
*/
- awsv4?: AWSv4Configuration;
+ awsv4?: AWSv4Configuration | undefined;
/**
* override base path
*/
- basePath?: string;
+ basePath?: string | undefined;
/**
* override server index
*/
- serverIndex?: number;
+ serverIndex?: number | undefined;
/**
* base options for axios calls
*/
- baseOptions?: any;
+ baseOptions?: any | undefined;
/**
* The FormData constructor that will be used to create multipart form data
* requests. You can inject this here so that execution environments that
@@ -85,7 +86,7 @@ export class Configuration {
*
* @type {new () => FormData}
*/
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-flat-stock-pick-order-base-dto.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-flat-stock-pick-order-base-dto.ts
index 2708c0e0ff33..81b57963ca3c 100644
--- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-flat-stock-pick-order-base-dto.ts
+++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-flat-stock-pick-order-base-dto.ts
@@ -16,12 +16,12 @@
export interface AbstractFlatStockPickOrderBaseDto {
'id': number;
- 'created'?: string;
- 'lastModified'?: string;
+ 'created'?: string | undefined;
+ 'lastModified'?: string | undefined;
'warehouseId': number;
'quantity': number;
- 'stockLocation'?: string;
- 'barcode'?: string;
+ 'stockLocation'?: string | undefined;
+ 'barcode'?: string | undefined;
'pickedQuantity': number;
'type': string;
}
diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-user-dto.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-user-dto.ts
index f2d77ccc198c..6caeea4717bb 100644
--- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-user-dto.ts
+++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/abstract-user-dto.ts
@@ -18,8 +18,8 @@
import type { BranchDto } from './branch-dto';
export interface AbstractUserDto {
- 'username'?: string;
- 'branch'?: BranchDto;
- 'type'?: string;
+ 'username'?: string | undefined;
+ 'branch'?: BranchDto | undefined;
+ 'type'?: string | undefined;
}
diff --git a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/branch-dto.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/branch-dto.ts
index 232891519f41..18fac5925a6a 100644
--- a/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/branch-dto.ts
+++ b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/model/branch-dto.ts
@@ -15,6 +15,6 @@
export interface BranchDto {
- 'name'?: string;
+ 'name'?: string | undefined;
}
diff --git a/samples/client/others/typescript-fetch/infinite-recursion-issue/models/ExtendDto.ts b/samples/client/others/typescript-fetch/infinite-recursion-issue/models/ExtendDto.ts
index d9087a0312e4..c8719d67547b 100644
--- a/samples/client/others/typescript-fetch/infinite-recursion-issue/models/ExtendDto.ts
+++ b/samples/client/others/typescript-fetch/infinite-recursion-issue/models/ExtendDto.ts
@@ -39,7 +39,7 @@ export interface ExtendDto extends TestBaseDto {
* @type {Array}
* @memberof ExtendDto
*/
- someItems?: Array;
+ someItems?: Array | undefined;
}
diff --git a/samples/client/others/typescript-fetch/infinite-recursion-issue/models/TestBaseDto.ts b/samples/client/others/typescript-fetch/infinite-recursion-issue/models/TestBaseDto.ts
index c887a59dd2e4..fdc058e5b4c7 100644
--- a/samples/client/others/typescript-fetch/infinite-recursion-issue/models/TestBaseDto.ts
+++ b/samples/client/others/typescript-fetch/infinite-recursion-issue/models/TestBaseDto.ts
@@ -33,13 +33,13 @@ export interface TestBaseDto {
* @type {string}
* @memberof TestBaseDto
*/
- something?: string;
+ something?: string | undefined;
/**
*
* @type {TestObjectType}
* @memberof TestBaseDto
*/
- testObjectType?: TestObjectType;
+ testObjectType?: TestObjectType | undefined;
}
diff --git a/samples/client/others/typescript-fetch/infinite-recursion-issue/runtime.ts b/samples/client/others/typescript-fetch/infinite-recursion-issue/runtime.ts
index 492083e7c372..93f8fbd1de34 100644
--- a/samples/client/others/typescript-fetch/infinite-recursion-issue/runtime.ts
+++ b/samples/client/others/typescript-fetch/infinite-recursion-issue/runtime.ts
@@ -16,16 +16,16 @@
export const BASE_PATH = "http://localhost:8080".replace(/\/+$/, "");
export interface ConfigurationParameters {
- basePath?: string; // override base path
- fetchApi?: FetchAPI; // override for fetch implementation
- middleware?: Middleware[]; // middleware to apply before/after fetch requests
- queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings
- username?: string; // parameter for basic security
- password?: string; // parameter for basic security
- apiKey?: string | Promise | ((name: string) => string | Promise); // parameter for apiKey security
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security
- headers?: HTTPHeaders; //header params we want to use on every request
- credentials?: RequestCredentials; //value for the credentials param we want to use on each request
+ basePath?: string | undefined; // override base path
+ fetchApi?: FetchAPI | undefined; // override for fetch implementation
+ middleware?: Middleware[] | undefined; // middleware to apply before/after fetch requests
+ queryParamsStringify?: ((params: HTTPQuery) => string) | undefined; // stringify function for query strings
+ username?: string | undefined; // parameter for basic security
+ password?: string | undefined; // parameter for basic security
+ apiKey?: string | Promise | ((name: string) => string | Promise) | undefined; // parameter for apiKey security
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise) | undefined; // parameter for oauth2 security
+ headers?: HTTPHeaders | undefined; //header params we want to use on every request
+ credentials?: RequestCredentials | undefined; //value for the credentials param we want to use on each request
}
export class Configuration {
@@ -161,7 +161,6 @@ export class BaseAPI {
method: context.method,
headers,
body: context.body,
- credentials: this.configuration.credentials,
};
const overriddenInit: RequestInit = {
@@ -172,6 +171,10 @@ export class BaseAPI {
}))
};
+ if (!overriddenInit.credentials && this.configuration.credentials) {
+ overriddenInit.credentials = this.configuration.credentials;
+ }
+
let body: any;
if (isFormData(overriddenInit.body)
|| (overriddenInit.body instanceof URLSearchParams)
@@ -292,7 +295,12 @@ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
export type HTTPHeaders = { [key: string]: string };
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery };
export type HTTPBody = Json | FormData | URLSearchParams;
-export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
+export type HTTPRequestInit = {
+ headers?: HTTPHeaders | undefined;
+ method: HTTPMethod;
+ credentials?: RequestCredentials | undefined;
+ body?: HTTPBody | undefined;
+};
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise
@@ -381,13 +389,13 @@ export interface ErrorContext {
url: string;
init: RequestInit;
error: unknown;
- response?: Response;
+ response?: Response | undefined;
}
export interface Middleware {
- pre?(context: RequestContext): Promise;
- post?(context: ResponseContext): Promise;
- onError?(context: ErrorContext): Promise;
+ pre?: ((context: RequestContext) => Promise) | undefined;
+ post?: ((context: ResponseContext) => Promise) | undefined;
+ onError?: ((context: ErrorContext) => Promise) | undefined;
}
export interface ApiResponse {
diff --git a/samples/client/others/typescript-fetch/self-import-issue/models/AbstractUserDto.ts b/samples/client/others/typescript-fetch/self-import-issue/models/AbstractUserDto.ts
index 436a1392ab77..f49b388bbd83 100644
--- a/samples/client/others/typescript-fetch/self-import-issue/models/AbstractUserDto.ts
+++ b/samples/client/others/typescript-fetch/self-import-issue/models/AbstractUserDto.ts
@@ -34,19 +34,19 @@ export interface AbstractUserDto {
* @type {string}
* @memberof AbstractUserDto
*/
- username?: string;
+ username?: string | undefined;
/**
*
* @type {BranchDto}
* @memberof AbstractUserDto
*/
- branch?: BranchDto;
+ branch?: BranchDto | undefined;
/**
*
* @type {string}
* @memberof AbstractUserDto
*/
- type?: string;
+ type?: string | undefined;
}
/**
diff --git a/samples/client/others/typescript-fetch/self-import-issue/models/BranchDto.ts b/samples/client/others/typescript-fetch/self-import-issue/models/BranchDto.ts
index 2eeefff17c66..366aeecee293 100644
--- a/samples/client/others/typescript-fetch/self-import-issue/models/BranchDto.ts
+++ b/samples/client/others/typescript-fetch/self-import-issue/models/BranchDto.ts
@@ -24,7 +24,7 @@ export interface BranchDto {
* @type {string}
* @memberof BranchDto
*/
- name?: string;
+ name?: string | undefined;
}
/**
diff --git a/samples/client/others/typescript-fetch/self-import-issue/runtime.ts b/samples/client/others/typescript-fetch/self-import-issue/runtime.ts
index c3175f3bac29..81b359a30324 100644
--- a/samples/client/others/typescript-fetch/self-import-issue/runtime.ts
+++ b/samples/client/others/typescript-fetch/self-import-issue/runtime.ts
@@ -16,16 +16,16 @@
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
export interface ConfigurationParameters {
- basePath?: string; // override base path
- fetchApi?: FetchAPI; // override for fetch implementation
- middleware?: Middleware[]; // middleware to apply before/after fetch requests
- queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings
- username?: string; // parameter for basic security
- password?: string; // parameter for basic security
- apiKey?: string | Promise | ((name: string) => string | Promise); // parameter for apiKey security
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security
- headers?: HTTPHeaders; //header params we want to use on every request
- credentials?: RequestCredentials; //value for the credentials param we want to use on each request
+ basePath?: string | undefined; // override base path
+ fetchApi?: FetchAPI | undefined; // override for fetch implementation
+ middleware?: Middleware[] | undefined; // middleware to apply before/after fetch requests
+ queryParamsStringify?: ((params: HTTPQuery) => string) | undefined; // stringify function for query strings
+ username?: string | undefined; // parameter for basic security
+ password?: string | undefined; // parameter for basic security
+ apiKey?: string | Promise | ((name: string) => string | Promise) | undefined; // parameter for apiKey security
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise) | undefined; // parameter for oauth2 security
+ headers?: HTTPHeaders | undefined; //header params we want to use on every request
+ credentials?: RequestCredentials | undefined; //value for the credentials param we want to use on each request
}
export class Configuration {
@@ -161,7 +161,6 @@ export class BaseAPI {
method: context.method,
headers,
body: context.body,
- credentials: this.configuration.credentials,
};
const overriddenInit: RequestInit = {
@@ -172,6 +171,10 @@ export class BaseAPI {
}))
};
+ if (!overriddenInit.credentials && this.configuration.credentials) {
+ overriddenInit.credentials = this.configuration.credentials;
+ }
+
let body: any;
if (isFormData(overriddenInit.body)
|| (overriddenInit.body instanceof URLSearchParams)
@@ -292,7 +295,12 @@ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
export type HTTPHeaders = { [key: string]: string };
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery };
export type HTTPBody = Json | FormData | URLSearchParams;
-export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
+export type HTTPRequestInit = {
+ headers?: HTTPHeaders | undefined;
+ method: HTTPMethod;
+ credentials?: RequestCredentials | undefined;
+ body?: HTTPBody | undefined;
+};
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise
@@ -381,13 +389,13 @@ export interface ErrorContext {
url: string;
init: RequestInit;
error: unknown;
- response?: Response;
+ response?: Response | undefined;
}
export interface Middleware {
- pre?(context: RequestContext): Promise;
- post?(context: ResponseContext): Promise;
- onError?(context: ErrorContext): Promise;
+ pre?: ((context: RequestContext) => Promise) | undefined;
+ post?: ((context: ResponseContext) => Promise) | undefined;
+ onError?: ((context: ErrorContext) => Promise) | undefined;
}
export interface ApiResponse {
diff --git a/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts b/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts
index a31c699ac3e8..c3d31c2463e8 100644
--- a/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts
+++ b/samples/client/petstore/typescript-axios/builds/composed-schemas/api.ts
@@ -24,15 +24,15 @@ import type { RequestArgs } from './base';
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
export interface Cat {
- 'hunts'?: boolean;
- 'age'?: number;
+ 'hunts'?: boolean | undefined;
+ 'age'?: number | undefined;
}
/**
* Dog information
*/
export interface Dog {
- 'bark'?: boolean;
- 'breed'?: DogBreedEnum;
+ 'bark'?: boolean | undefined;
+ 'breed'?: DogBreedEnum | undefined;
}
export const DogBreedEnum = {
@@ -45,15 +45,15 @@ export const DogBreedEnum = {
export type DogBreedEnum = typeof DogBreedEnum[keyof typeof DogBreedEnum];
export interface FilePostRequest {
- 'file'?: any;
+ 'file'?: any | undefined;
}
export interface PetByAge {
'age': number;
- 'nickname'?: string;
+ 'nickname'?: string | undefined;
}
export interface PetByType {
'pet_type': PetByTypePetTypeEnum;
- 'hunts'?: boolean;
+ 'hunts'?: boolean | undefined;
}
export const PetByTypePetTypeEnum = {
@@ -65,9 +65,9 @@ export type PetByTypePetTypeEnum = typeof PetByTypePetTypeEnum[keyof typeof PetB
export interface PetsFilteredPatchRequest {
'age': number;
- 'nickname'?: string;
+ 'nickname'?: string | undefined;
'pet_type': PetsFilteredPatchRequestPetTypeEnum;
- 'hunts'?: boolean;
+ 'hunts'?: boolean | undefined;
}
export const PetsFilteredPatchRequestPetTypeEnum = {
diff --git a/samples/client/petstore/typescript-axios/builds/composed-schemas/configuration.ts b/samples/client/petstore/typescript-axios/builds/composed-schemas/configuration.ts
index 92e41548b684..fad90186e057 100644
--- a/samples/client/petstore/typescript-axios/builds/composed-schemas/configuration.ts
+++ b/samples/client/petstore/typescript-axios/builds/composed-schemas/configuration.ts
@@ -1,4 +1,5 @@
/* tslint:disable */
+/* eslint-disable */
/**
* Example
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -24,15 +25,15 @@ interface AWSv4Configuration {
}
export interface ConfigurationParameters {
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
- username?: string;
- password?: string;
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
- awsv4?: AWSv4Configuration;
- basePath?: string;
- serverIndex?: number;
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
+ username?: string | undefined;
+ password?: string | undefined;
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
+ awsv4?: AWSv4Configuration | undefined;
+ basePath?: string | undefined;
+ serverIndex?: number | undefined;
baseOptions?: any;
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
}
export class Configuration {
@@ -40,21 +41,21 @@ export class Configuration {
* parameter for apiKey security
* @param name security name
*/
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
/**
* parameter for basic security
*/
- username?: string;
+ username?: string | undefined;
/**
* parameter for basic security
*/
- password?: string;
+ password?: string | undefined;
/**
* parameter for oauth2 security
* @param name security name
* @param scopes oauth2 scope
*/
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
/**
* parameter for aws4 signature security
* @param {Object} AWS4Signature - AWS4 Signature security
@@ -65,19 +66,19 @@ export class Configuration {
* @param {string} credentials.sessionToken - aws session token
* @memberof Configuration
*/
- awsv4?: AWSv4Configuration;
+ awsv4?: AWSv4Configuration | undefined;
/**
* override base path
*/
- basePath?: string;
+ basePath?: string | undefined;
/**
* override server index
*/
- serverIndex?: number;
+ serverIndex?: number | undefined;
/**
* base options for axios calls
*/
- baseOptions?: any;
+ baseOptions?: any | undefined;
/**
* The FormData constructor that will be used to create multipart form data
* requests. You can inject this here so that execution environments that
@@ -85,7 +86,7 @@ export class Configuration {
*
* @type {new () => FormData}
*/
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
diff --git a/samples/client/petstore/typescript-axios/builds/default/api.ts b/samples/client/petstore/typescript-axios/builds/default/api.ts
index fde2a4d20783..a3a47d450fb3 100644
--- a/samples/client/petstore/typescript-axios/builds/default/api.ts
+++ b/samples/client/petstore/typescript-axios/builds/default/api.ts
@@ -27,30 +27,30 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerM
* Describes the result of uploading an image resource
*/
export interface ApiResponse {
- 'code'?: number;
- 'type'?: string;
- 'message'?: string;
+ 'code'?: number | undefined;
+ 'type'?: string | undefined;
+ 'message'?: string | undefined;
}
/**
* A category for a pet
*/
export interface Category {
- 'id'?: number;
- 'name'?: string;
+ 'id'?: number | undefined;
+ 'name'?: string | undefined;
}
/**
* An order for a pets from the pet store
*/
export interface Order {
- 'id'?: number;
- 'petId'?: number;
- 'quantity'?: number;
- 'shipDate'?: string;
+ 'id'?: number | undefined;
+ 'petId'?: number | undefined;
+ 'quantity'?: number | undefined;
+ 'shipDate'?: string | undefined;
/**
* Order Status
*/
- 'status'?: OrderStatusEnum;
- 'complete'?: boolean;
+ 'status'?: OrderStatusEnum | undefined;
+ 'complete'?: boolean | undefined;
}
export const OrderStatusEnum = {
@@ -65,15 +65,15 @@ export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnu
* A pet for sale in the pet store
*/
export interface Pet {
- 'id'?: number;
- 'category'?: Category;
+ 'id'?: number | undefined;
+ 'category'?: Category | undefined;
'name': string;
'photoUrls': Array;
- 'tags'?: Array;
+ 'tags'?: Array | undefined;
/**
* pet status in the store
*/
- 'status'?: PetStatusEnum;
+ 'status'?: PetStatusEnum | undefined;
}
export const PetStatusEnum = {
@@ -88,24 +88,24 @@ export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum];
* A tag for a pet
*/
export interface Tag {
- 'id'?: number;
- 'name'?: string;
+ 'id'?: number | undefined;
+ 'name'?: string | undefined;
}
/**
* A User who is purchasing from the pet store
*/
export interface User {
- 'id'?: number;
- 'username'?: string;
- 'firstName'?: string;
- 'lastName'?: string;
- 'email'?: string;
- 'password'?: string;
- 'phone'?: string;
+ 'id'?: number | undefined;
+ 'username'?: string | undefined;
+ 'firstName'?: string | undefined;
+ 'lastName'?: string | undefined;
+ 'email'?: string | undefined;
+ 'password'?: string | undefined;
+ 'phone'?: string | undefined;
/**
* User Status
*/
- 'userStatus'?: number;
+ 'userStatus'?: number | undefined;
}
/**
diff --git a/samples/client/petstore/typescript-axios/builds/default/configuration.ts b/samples/client/petstore/typescript-axios/builds/default/configuration.ts
index 77510956ab86..bd64ab798270 100644
--- a/samples/client/petstore/typescript-axios/builds/default/configuration.ts
+++ b/samples/client/petstore/typescript-axios/builds/default/configuration.ts
@@ -1,4 +1,5 @@
/* tslint:disable */
+/* eslint-disable */
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
@@ -24,15 +25,15 @@ interface AWSv4Configuration {
}
export interface ConfigurationParameters {
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
- username?: string;
- password?: string;
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
- awsv4?: AWSv4Configuration;
- basePath?: string;
- serverIndex?: number;
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
+ username?: string | undefined;
+ password?: string | undefined;
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
+ awsv4?: AWSv4Configuration | undefined;
+ basePath?: string | undefined;
+ serverIndex?: number | undefined;
baseOptions?: any;
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
}
export class Configuration {
@@ -40,21 +41,21 @@ export class Configuration {
* parameter for apiKey security
* @param name security name
*/
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
/**
* parameter for basic security
*/
- username?: string;
+ username?: string | undefined;
/**
* parameter for basic security
*/
- password?: string;
+ password?: string | undefined;
/**
* parameter for oauth2 security
* @param name security name
* @param scopes oauth2 scope
*/
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
/**
* parameter for aws4 signature security
* @param {Object} AWS4Signature - AWS4 Signature security
@@ -65,19 +66,19 @@ export class Configuration {
* @param {string} credentials.sessionToken - aws session token
* @memberof Configuration
*/
- awsv4?: AWSv4Configuration;
+ awsv4?: AWSv4Configuration | undefined;
/**
* override base path
*/
- basePath?: string;
+ basePath?: string | undefined;
/**
* override server index
*/
- serverIndex?: number;
+ serverIndex?: number | undefined;
/**
* base options for axios calls
*/
- baseOptions?: any;
+ baseOptions?: any | undefined;
/**
* The FormData constructor that will be used to create multipart form data
* requests. You can inject this here so that execution environments that
@@ -85,7 +86,7 @@ export class Configuration {
*
* @type {new () => FormData}
*/
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/api.ts b/samples/client/petstore/typescript-axios/builds/es6-target/api.ts
index fde2a4d20783..a3a47d450fb3 100644
--- a/samples/client/petstore/typescript-axios/builds/es6-target/api.ts
+++ b/samples/client/petstore/typescript-axios/builds/es6-target/api.ts
@@ -27,30 +27,30 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerM
* Describes the result of uploading an image resource
*/
export interface ApiResponse {
- 'code'?: number;
- 'type'?: string;
- 'message'?: string;
+ 'code'?: number | undefined;
+ 'type'?: string | undefined;
+ 'message'?: string | undefined;
}
/**
* A category for a pet
*/
export interface Category {
- 'id'?: number;
- 'name'?: string;
+ 'id'?: number | undefined;
+ 'name'?: string | undefined;
}
/**
* An order for a pets from the pet store
*/
export interface Order {
- 'id'?: number;
- 'petId'?: number;
- 'quantity'?: number;
- 'shipDate'?: string;
+ 'id'?: number | undefined;
+ 'petId'?: number | undefined;
+ 'quantity'?: number | undefined;
+ 'shipDate'?: string | undefined;
/**
* Order Status
*/
- 'status'?: OrderStatusEnum;
- 'complete'?: boolean;
+ 'status'?: OrderStatusEnum | undefined;
+ 'complete'?: boolean | undefined;
}
export const OrderStatusEnum = {
@@ -65,15 +65,15 @@ export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnu
* A pet for sale in the pet store
*/
export interface Pet {
- 'id'?: number;
- 'category'?: Category;
+ 'id'?: number | undefined;
+ 'category'?: Category | undefined;
'name': string;
'photoUrls': Array;
- 'tags'?: Array;
+ 'tags'?: Array | undefined;
/**
* pet status in the store
*/
- 'status'?: PetStatusEnum;
+ 'status'?: PetStatusEnum | undefined;
}
export const PetStatusEnum = {
@@ -88,24 +88,24 @@ export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum];
* A tag for a pet
*/
export interface Tag {
- 'id'?: number;
- 'name'?: string;
+ 'id'?: number | undefined;
+ 'name'?: string | undefined;
}
/**
* A User who is purchasing from the pet store
*/
export interface User {
- 'id'?: number;
- 'username'?: string;
- 'firstName'?: string;
- 'lastName'?: string;
- 'email'?: string;
- 'password'?: string;
- 'phone'?: string;
+ 'id'?: number | undefined;
+ 'username'?: string | undefined;
+ 'firstName'?: string | undefined;
+ 'lastName'?: string | undefined;
+ 'email'?: string | undefined;
+ 'password'?: string | undefined;
+ 'phone'?: string | undefined;
/**
* User Status
*/
- 'userStatus'?: number;
+ 'userStatus'?: number | undefined;
}
/**
diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/configuration.ts b/samples/client/petstore/typescript-axios/builds/es6-target/configuration.ts
index 77510956ab86..bd64ab798270 100644
--- a/samples/client/petstore/typescript-axios/builds/es6-target/configuration.ts
+++ b/samples/client/petstore/typescript-axios/builds/es6-target/configuration.ts
@@ -1,4 +1,5 @@
/* tslint:disable */
+/* eslint-disable */
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
@@ -24,15 +25,15 @@ interface AWSv4Configuration {
}
export interface ConfigurationParameters {
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
- username?: string;
- password?: string;
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
- awsv4?: AWSv4Configuration;
- basePath?: string;
- serverIndex?: number;
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
+ username?: string | undefined;
+ password?: string | undefined;
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
+ awsv4?: AWSv4Configuration | undefined;
+ basePath?: string | undefined;
+ serverIndex?: number | undefined;
baseOptions?: any;
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
}
export class Configuration {
@@ -40,21 +41,21 @@ export class Configuration {
* parameter for apiKey security
* @param name security name
*/
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
/**
* parameter for basic security
*/
- username?: string;
+ username?: string | undefined;
/**
* parameter for basic security
*/
- password?: string;
+ password?: string | undefined;
/**
* parameter for oauth2 security
* @param name security name
* @param scopes oauth2 scope
*/
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
/**
* parameter for aws4 signature security
* @param {Object} AWS4Signature - AWS4 Signature security
@@ -65,19 +66,19 @@ export class Configuration {
* @param {string} credentials.sessionToken - aws session token
* @memberof Configuration
*/
- awsv4?: AWSv4Configuration;
+ awsv4?: AWSv4Configuration | undefined;
/**
* override base path
*/
- basePath?: string;
+ basePath?: string | undefined;
/**
* override server index
*/
- serverIndex?: number;
+ serverIndex?: number | undefined;
/**
* base options for axios calls
*/
- baseOptions?: any;
+ baseOptions?: any | undefined;
/**
* The FormData constructor that will be used to create multipart form data
* requests. You can inject this here so that execution environments that
@@ -85,7 +86,7 @@ export class Configuration {
*
* @type {new () => FormData}
*/
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/package.json b/samples/client/petstore/typescript-axios/builds/es6-target/package.json
index 2c6217f2d80a..dd938d41e114 100644
--- a/samples/client/petstore/typescript-axios/builds/es6-target/package.json
+++ b/samples/client/petstore/typescript-axios/builds/es6-target/package.json
@@ -24,10 +24,10 @@
"prepare": "npm run build"
},
"dependencies": {
- "axios": "^1.6.1"
+ "axios": "^1.12.2"
},
"devDependencies": {
- "@types/node": "12.11.5 - 12.20.42",
+ "@types/node": "12.11.5 - 14.14.31",
"typescript": "^4.0 || ^5.0"
},
"publishConfig": {
diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/tsconfig.json b/samples/client/petstore/typescript-axios/builds/es6-target/tsconfig.json
index 30dc264ec731..94c953cc36e1 100644
--- a/samples/client/petstore/typescript-axios/builds/es6-target/tsconfig.json
+++ b/samples/client/petstore/typescript-axios/builds/es6-target/tsconfig.json
@@ -3,6 +3,8 @@
"declaration": true,
"target": "ES6",
"module": "commonjs",
+ "strictNullChecks": true,
+ "exactOptionalPropertyTypes": true,
"noImplicitAny": true,
"outDir": "dist",
"rootDir": ".",
diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts b/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts
index b7775a68042f..9f37737158d8 100644
--- a/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts
+++ b/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts
@@ -24,77 +24,77 @@ import type { RequestArgs } from './base';
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
export interface AdditionalPropertiesClass {
- 'map_property'?: { [key: string]: string; };
- 'map_of_map_property'?: { [key: string]: { [key: string]: string; }; };
- 'anytype_1'?: any;
- 'map_with_undeclared_properties_anytype_1'?: object;
- 'map_with_undeclared_properties_anytype_2'?: object;
- 'map_with_undeclared_properties_anytype_3'?: { [key: string]: any; };
+ 'map_property'?: { [key: string]: string; } | undefined;
+ 'map_of_map_property'?: { [key: string]: { [key: string]: string; }; } | undefined;
+ 'anytype_1'?: any | undefined;
+ 'map_with_undeclared_properties_anytype_1'?: object | undefined;
+ 'map_with_undeclared_properties_anytype_2'?: object | undefined;
+ 'map_with_undeclared_properties_anytype_3'?: { [key: string]: any; } | undefined;
/**
* an object with no declared properties and no undeclared properties, hence it\'s an empty map.
*/
- 'empty_map'?: object;
- 'map_with_undeclared_properties_string'?: { [key: string]: string; };
+ 'empty_map'?: object | undefined;
+ 'map_with_undeclared_properties_string'?: { [key: string]: string; } | undefined;
}
export interface Animal {
'className': string;
- 'color'?: string;
+ 'color'?: string | undefined;
}
export interface ApiResponse {
- 'code'?: number;
- 'type'?: string;
- 'message'?: string;
+ 'code'?: number | undefined;
+ 'type'?: string | undefined;
+ 'message'?: string | undefined;
}
export interface Apple {
- 'cultivar'?: string;
- 'origin'?: string;
+ 'cultivar'?: string | undefined;
+ 'origin'?: string | undefined;
}
export interface AppleReq {
'cultivar': string;
- 'mealy'?: boolean;
+ 'mealy'?: boolean | undefined;
}
export interface ArrayOfArrayOfNumberOnly {
- 'ArrayArrayNumber'?: Array>;
+ 'ArrayArrayNumber'?: Array> | undefined;
}
export interface ArrayOfNumberOnly {
- 'ArrayNumber'?: Array;
+ 'ArrayNumber'?: Array | undefined;
}
export interface ArrayTest {
- 'array_of_string'?: Array;
- 'array_array_of_integer'?: Array>;
- 'array_array_of_model'?: Array>;
+ 'array_of_string'?: Array | undefined;
+ 'array_array_of_integer'?: Array> | undefined;
+ 'array_array_of_model'?: Array> | undefined;
}
export interface Banana {
- 'lengthCm'?: number;
+ 'lengthCm'?: number | undefined;
}
export interface BananaReq {
'lengthCm': number;
- 'sweet'?: boolean;
+ 'sweet'?: boolean | undefined;
}
export interface BasquePig {
'className': string;
}
export interface Capitalization {
- 'smallCamel'?: string;
- 'CapitalCamel'?: string;
- 'small_Snake'?: string;
- 'Capital_Snake'?: string;
- 'SCA_ETH_Flow_Points'?: string;
+ 'smallCamel'?: string | undefined;
+ 'CapitalCamel'?: string | undefined;
+ 'small_Snake'?: string | undefined;
+ 'Capital_Snake'?: string | undefined;
+ 'SCA_ETH_Flow_Points'?: string | undefined;
/**
* Name of the pet
*/
- 'ATT_NAME'?: string;
+ 'ATT_NAME'?: string | undefined;
}
export interface Cat extends Animal {
- 'declawed'?: boolean;
+ 'declawed'?: boolean | undefined;
}
export interface Category {
- 'id'?: number;
+ 'id'?: number | undefined;
'name': string;
}
export interface ChildCat extends ParentPet {
- 'name'?: string;
- 'pet_type'?: ChildCatPetTypeEnum;
+ 'name'?: string | undefined;
+ 'pet_type'?: ChildCatPetTypeEnum | undefined;
}
export const ChildCatPetTypeEnum = {
@@ -107,10 +107,10 @@ export type ChildCatPetTypeEnum = typeof ChildCatPetTypeEnum[keyof typeof ChildC
* Model for testing model with \"_class\" property
*/
export interface ClassModel {
- '_class'?: string;
+ '_class'?: string | undefined;
}
export interface Client {
- 'client'?: string;
+ 'client'?: string | undefined;
}
export interface ComplexQuadrilateral {
'shapeType': string;
@@ -120,22 +120,22 @@ export interface DanishPig {
'className': string;
}
export interface DeprecatedObject {
- 'name'?: string;
+ 'name'?: string | undefined;
}
export interface Dog extends Animal {
- 'breed'?: string;
+ 'breed'?: string | undefined;
}
export interface Drawing {
[key: string]: Fruit | any;
- 'mainShape'?: Shape;
- 'shapeOrNull'?: ShapeOrNull | null;
- 'nullableShape'?: NullableShape | null;
- 'shapes'?: Array;
+ 'mainShape'?: Shape | undefined;
+ 'shapeOrNull'?: ShapeOrNull | null | undefined;
+ 'nullableShape'?: NullableShape | null | undefined;
+ 'shapes'?: Array | undefined;
}
export interface EnumArrays {
- 'just_symbol'?: EnumArraysJustSymbolEnum;
- 'array_enum'?: Array;
+ 'just_symbol'?: EnumArraysJustSymbolEnum | undefined;
+ 'array_enum'?: Array | undefined;
}
export const EnumArraysJustSymbolEnum = {
@@ -162,15 +162,15 @@ export type EnumClass = typeof EnumClass[keyof typeof EnumClass];
export interface EnumTest {
- 'enum_string'?: EnumTestEnumStringEnum;
+ 'enum_string'?: EnumTestEnumStringEnum | undefined;
'enum_string_required': EnumTestEnumStringRequiredEnum;
- 'enum_integer'?: EnumTestEnumIntegerEnum;
- 'enum_integer_only'?: EnumTestEnumIntegerOnlyEnum;
- 'enum_number'?: EnumTestEnumNumberEnum;
- 'outerEnum'?: OuterEnum | null;
- 'outerEnumInteger'?: OuterEnumInteger;
- 'outerEnumDefaultValue'?: OuterEnumDefaultValue;
- 'outerEnumIntegerDefaultValue'?: OuterEnumIntegerDefaultValue;
+ 'enum_integer'?: EnumTestEnumIntegerEnum | undefined;
+ 'enum_integer_only'?: EnumTestEnumIntegerOnlyEnum | undefined;
+ 'enum_number'?: EnumTestEnumNumberEnum | undefined;
+ 'outerEnum'?: OuterEnum | null | undefined;
+ 'outerEnumInteger'?: OuterEnumInteger | undefined;
+ 'outerEnumDefaultValue'?: OuterEnumDefaultValue | undefined;
+ 'outerEnumIntegerDefaultValue'?: OuterEnumIntegerDefaultValue | undefined;
}
export const EnumTestEnumStringEnum = {
@@ -211,38 +211,38 @@ export interface EquilateralTriangle {
'triangleType': string;
}
export interface FileSchemaTestClass {
- 'file'?: any;
- 'files'?: Array;
+ 'file'?: any | undefined;
+ 'files'?: Array | undefined;
}
export interface Foo {
- 'bar'?: string;
+ 'bar'?: string | undefined;
}
export interface FooGetDefaultResponse {
- 'string'?: Foo;
+ 'string'?: Foo | undefined;
}
export interface FormatTest {
- 'integer'?: number;
- 'int32'?: number;
- 'int64'?: number;
+ 'integer'?: number | undefined;
+ 'int32'?: number | undefined;
+ 'int64'?: number | undefined;
'number': number;
- 'float'?: number;
- 'double'?: number;
- 'decimal'?: string;
- 'string'?: string;
+ 'float'?: number | undefined;
+ 'double'?: number | undefined;
+ 'decimal'?: string | undefined;
+ 'string'?: string | undefined;
'byte': string;
- 'binary'?: File;
+ 'binary'?: File | undefined;
'date': string;
- 'dateTime'?: string;
- 'uuid'?: string;
+ 'dateTime'?: string | undefined;
+ 'uuid'?: string | undefined;
'password': string;
/**
* A string that is a 10 digit number. Can have leading zeros.
*/
- 'pattern_with_digits'?: string;
+ 'pattern_with_digits'?: string | undefined;
/**
* A string starting with \'image_\' (case insensitive) and one to three digits following i.e. Image_01.
*/
- 'pattern_with_digits_and_delimiter'?: string;
+ 'pattern_with_digits_and_delimiter'?: string | undefined;
}
/**
* @type Fruit
@@ -255,30 +255,30 @@ export type Fruit = Apple | Banana;
export type FruitReq = AppleReq | BananaReq;
export interface GmFruit {
- 'color'?: string;
- 'cultivar'?: string;
- 'origin'?: string;
- 'lengthCm'?: number;
+ 'color'?: string | undefined;
+ 'cultivar'?: string | undefined;
+ 'origin'?: string | undefined;
+ 'lengthCm'?: number | undefined;
}
export interface GrandparentAnimal {
'pet_type': string;
}
export interface HasOnlyReadOnly {
- 'bar'?: string;
- 'foo'?: string;
+ 'bar'?: string | undefined;
+ 'foo'?: string | undefined;
}
/**
* Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
*/
export interface HealthCheckResult {
- 'NullableMessage'?: string | null;
+ 'NullableMessage'?: string | null | undefined;
}
export interface IsoscelesTriangle {
'shapeType': string;
'triangleType': string;
}
export interface List {
- '123-list'?: string;
+ '123-list'?: string | undefined;
}
/**
* @type Mammal
@@ -286,10 +286,10 @@ export interface List {
export type Mammal = Pig | Whale | Zebra;
export interface MammalAnyof {
- 'hasBaleen'?: boolean;
- 'hasTeeth'?: boolean;
+ 'hasBaleen'?: boolean | undefined;
+ 'hasTeeth'?: boolean | undefined;
'className': string;
- 'type'?: MammalAnyofTypeEnum;
+ 'type'?: MammalAnyofTypeEnum | undefined;
}
export const MammalAnyofTypeEnum = {
@@ -301,10 +301,10 @@ export const MammalAnyofTypeEnum = {
export type MammalAnyofTypeEnum = typeof MammalAnyofTypeEnum[keyof typeof MammalAnyofTypeEnum];
export interface MapTest {
- 'map_map_of_string'?: { [key: string]: { [key: string]: string; }; };
- 'map_of_enum_string'?: { [key: string]: string; };
- 'direct_map'?: { [key: string]: boolean; };
- 'indirect_map'?: { [key: string]: boolean; };
+ 'map_map_of_string'?: { [key: string]: { [key: string]: string; }; } | undefined;
+ 'map_of_enum_string'?: { [key: string]: string; } | undefined;
+ 'direct_map'?: { [key: string]: boolean; } | undefined;
+ 'indirect_map'?: { [key: string]: boolean; } | undefined;
}
export const MapTestMapOfEnumStringEnum = {
@@ -315,16 +315,16 @@ export const MapTestMapOfEnumStringEnum = {
export type MapTestMapOfEnumStringEnum = typeof MapTestMapOfEnumStringEnum[keyof typeof MapTestMapOfEnumStringEnum];
export interface MixedPropertiesAndAdditionalPropertiesClass {
- 'uuid'?: string;
- 'dateTime'?: string;
- 'map'?: { [key: string]: Animal; };
+ 'uuid'?: string | undefined;
+ 'dateTime'?: string | undefined;
+ 'map'?: { [key: string]: Animal; } | undefined;
}
/**
* Model for testing model name starting with number
*/
export interface Model200Response {
- 'name'?: number;
- 'class'?: string;
+ 'name'?: number | undefined;
+ 'class'?: string | undefined;
}
/**
* Must be named `File` for test.
@@ -333,32 +333,32 @@ export interface ModelFile {
/**
* Test capitalization
*/
- 'sourceURI'?: string;
+ 'sourceURI'?: string | undefined;
}
/**
* Model for testing model name same as property name
*/
export interface Name {
'name': number;
- 'snake_case'?: number;
- 'property'?: string;
- '123Number'?: number;
+ 'snake_case'?: number | undefined;
+ 'property'?: string | undefined;
+ '123Number'?: number | undefined;
}
export interface NullableClass {
[key: string]: object | any;
- 'integer_prop'?: number | null;
- 'number_prop'?: number | null;
- 'boolean_prop'?: boolean | null;
- 'string_prop'?: string | null;
- 'date_prop'?: string | null;
- 'datetime_prop'?: string | null;
- 'array_nullable_prop'?: Array | null;
- 'array_and_items_nullable_prop'?: Array | null;
- 'array_items_nullable'?: Array;
- 'object_nullable_prop'?: { [key: string]: object; } | null;
- 'object_and_items_nullable_prop'?: { [key: string]: object | null; } | null;
- 'object_items_nullable'?: { [key: string]: object | null; };
+ 'integer_prop'?: number | null | undefined;
+ 'number_prop'?: number | null | undefined;
+ 'boolean_prop'?: boolean | null | undefined;
+ 'string_prop'?: string | null | undefined;
+ 'date_prop'?: string | null | undefined;
+ 'datetime_prop'?: string | null | undefined;
+ 'array_nullable_prop'?: Array | null | undefined;
+ 'array_and_items_nullable_prop'?: Array | null | undefined;
+ 'array_items_nullable'?: Array | undefined;
+ 'object_nullable_prop'?: { [key: string]: object; } | null | undefined;
+ 'object_and_items_nullable_prop'?: { [key: string]: object | null; } | null | undefined;
+ 'object_items_nullable'?: { [key: string]: object | null; } | undefined;
}
/**
* @type NullableShape
@@ -367,33 +367,33 @@ export interface NullableClass {
export type NullableShape = Quadrilateral | Triangle;
export interface NumberOnly {
- 'JustNumber'?: number;
+ 'JustNumber'?: number | undefined;
}
export interface ObjectWithDeprecatedFields {
- 'uuid'?: string;
+ 'uuid'?: string | undefined;
/**
* @deprecated
*/
- 'id'?: number;
+ 'id'?: number | undefined;
/**
* @deprecated
*/
- 'deprecatedRef'?: DeprecatedObject;
+ 'deprecatedRef'?: DeprecatedObject | undefined;
/**
* @deprecated
*/
- 'bars'?: Array;
+ 'bars'?: Array | undefined;
}
export interface Order {
- 'id'?: number;
- 'petId'?: number;
- 'quantity'?: number;
- 'shipDate'?: string;
+ 'id'?: number | undefined;
+ 'petId'?: number | undefined;
+ 'quantity'?: number | undefined;
+ 'shipDate'?: string | undefined;
/**
* Order Status
*/
- 'status'?: OrderStatusEnum;
- 'complete'?: boolean;
+ 'status'?: OrderStatusEnum | undefined;
+ 'complete'?: boolean | undefined;
}
export const OrderStatusEnum = {
@@ -405,9 +405,9 @@ export const OrderStatusEnum = {
export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];
export interface OuterComposite {
- 'my_number'?: number;
- 'my_string'?: string;
- 'my_boolean'?: boolean;
+ 'my_number'?: number | undefined;
+ 'my_string'?: string | undefined;
+ 'my_boolean'?: boolean | undefined;
}
export const OuterEnum = {
@@ -452,15 +452,15 @@ export type OuterEnumIntegerDefaultValue = typeof OuterEnumIntegerDefaultValue[k
export interface ParentPet extends GrandparentAnimal {
}
export interface Pet {
- 'id'?: number;
- 'category'?: Category;
+ 'id'?: number | undefined;
+ 'category'?: Category | undefined;
'name': string;
'photoUrls': Array;
- 'tags'?: Array;
+ 'tags'?: Array | undefined;
/**
* pet status in the store
*/
- 'status'?: PetStatusEnum;
+ 'status'?: PetStatusEnum | undefined;
}
export const PetStatusEnum = {
@@ -485,14 +485,14 @@ export interface QuadrilateralInterface {
'quadrilateralType': string;
}
export interface ReadOnlyFirst {
- 'bar'?: string;
- 'baz'?: string;
+ 'bar'?: string | undefined;
+ 'baz'?: string | undefined;
}
/**
* Model for testing reserved words
*/
export interface Return {
- 'return'?: number;
+ 'return'?: number | undefined;
}
export interface ScaleneTriangle {
'shapeType': string;
@@ -517,17 +517,17 @@ export interface SimpleQuadrilateral {
'quadrilateralType': string;
}
export interface SpecialModelName {
- '$special[property.name]'?: number;
- '_special_model.name_'?: string;
+ '$special[property.name]'?: number | undefined;
+ '_special_model.name_'?: string | undefined;
}
export interface Tag {
- 'id'?: number;
- 'name'?: string;
+ 'id'?: number | undefined;
+ 'name'?: string | undefined;
}
export interface TestInlineFreeformAdditionalPropertiesRequest {
[key: string]: any;
- 'someProperty'?: string;
+ 'someProperty'?: string | undefined;
}
/**
* @type Triangle
@@ -538,43 +538,43 @@ export interface TriangleInterface {
'triangleType': string;
}
export interface User {
- 'id'?: number;
- 'username'?: string;
- 'firstName'?: string;
- 'lastName'?: string;
- 'email'?: string;
- 'password'?: string;
- 'phone'?: string;
+ 'id'?: number | undefined;
+ 'username'?: string | undefined;
+ 'firstName'?: string | undefined;
+ 'lastName'?: string | undefined;
+ 'email'?: string | undefined;
+ 'password'?: string | undefined;
+ 'phone'?: string | undefined;
/**
* User Status
*/
- 'userStatus'?: number;
+ 'userStatus'?: number | undefined;
/**
* test code generation for objects Value must be a map of strings to values. It cannot be the \'null\' value.
*/
- 'objectWithNoDeclaredProps'?: object;
+ 'objectWithNoDeclaredProps'?: object | undefined;
/**
* test code generation for nullable objects. Value must be a map of strings to values or the \'null\' value.
*/
- 'objectWithNoDeclaredPropsNullable'?: object | null;
+ 'objectWithNoDeclaredPropsNullable'?: object | null | undefined;
/**
* test code generation for any type Here the \'type\' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389
*/
- 'anyTypeProp'?: any;
+ 'anyTypeProp'?: any | undefined;
/**
* test code generation for any type Here the \'type\' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The \'nullable\' attribute does not change the allowed values.
*/
- 'anyTypePropNullable'?: any | null;
+ 'anyTypePropNullable'?: any | null | undefined;
}
export interface Whale {
- 'hasBaleen'?: boolean;
- 'hasTeeth'?: boolean;
+ 'hasBaleen'?: boolean | undefined;
+ 'hasTeeth'?: boolean | undefined;
'className': string;
}
export interface Zebra {
[key: string]: any;
- 'type'?: ZebraTypeEnum;
+ 'type'?: ZebraTypeEnum | undefined;
'className': string;
}
diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/configuration.ts b/samples/client/petstore/typescript-axios/builds/test-petstore/configuration.ts
index fd140b74505c..b7abbf0eb89b 100644
--- a/samples/client/petstore/typescript-axios/builds/test-petstore/configuration.ts
+++ b/samples/client/petstore/typescript-axios/builds/test-petstore/configuration.ts
@@ -1,4 +1,5 @@
/* tslint:disable */
+/* eslint-disable */
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
@@ -24,15 +25,15 @@ interface AWSv4Configuration {
}
export interface ConfigurationParameters {
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
- username?: string;
- password?: string;
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
- awsv4?: AWSv4Configuration;
- basePath?: string;
- serverIndex?: number;
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
+ username?: string | undefined;
+ password?: string | undefined;
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
+ awsv4?: AWSv4Configuration | undefined;
+ basePath?: string | undefined;
+ serverIndex?: number | undefined;
baseOptions?: any;
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
}
export class Configuration {
@@ -40,21 +41,21 @@ export class Configuration {
* parameter for apiKey security
* @param name security name
*/
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
/**
* parameter for basic security
*/
- username?: string;
+ username?: string | undefined;
/**
* parameter for basic security
*/
- password?: string;
+ password?: string | undefined;
/**
* parameter for oauth2 security
* @param name security name
* @param scopes oauth2 scope
*/
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
/**
* parameter for aws4 signature security
* @param {Object} AWS4Signature - AWS4 Signature security
@@ -65,19 +66,19 @@ export class Configuration {
* @param {string} credentials.sessionToken - aws session token
* @memberof Configuration
*/
- awsv4?: AWSv4Configuration;
+ awsv4?: AWSv4Configuration | undefined;
/**
* override base path
*/
- basePath?: string;
+ basePath?: string | undefined;
/**
* override server index
*/
- serverIndex?: number;
+ serverIndex?: number | undefined;
/**
* base options for axios calls
*/
- baseOptions?: any;
+ baseOptions?: any | undefined;
/**
* The FormData constructor that will be used to create multipart form data
* requests. You can inject this here so that execution environments that
@@ -85,7 +86,7 @@ export class Configuration {
*
* @type {new () => FormData}
*/
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts b/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts
index e327bd51a1df..be0cd6174b35 100644
--- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts
+++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts
@@ -27,16 +27,16 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerM
* Describes the result of uploading an image resource
*/
export interface ApiResponse {
- 'code'?: number;
- 'type'?: string;
- 'message'?: string;
+ 'code'?: number | undefined;
+ 'type'?: string | undefined;
+ 'message'?: string | undefined;
}
/**
* A category for a pet
*/
export interface Category {
- 'id'?: number;
- 'name'?: string;
+ 'id'?: number | undefined;
+ 'name'?: string | undefined;
}
export const MediaType = {
@@ -51,15 +51,15 @@ export type MediaType = typeof MediaType[keyof typeof MediaType];
* An order for a pets from the pet store
*/
export interface Order {
- 'id'?: number;
- 'petId'?: number;
- 'quantity'?: number;
- 'shipDate'?: string;
+ 'id'?: number | undefined;
+ 'petId'?: number | undefined;
+ 'quantity'?: number | undefined;
+ 'shipDate'?: string | undefined;
/**
* Order Status
*/
- 'status'?: OrderStatusEnum;
- 'complete'?: boolean;
+ 'status'?: OrderStatusEnum | undefined;
+ 'complete'?: boolean | undefined;
}
export const OrderStatusEnum = {
@@ -74,15 +74,15 @@ export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnu
* A pet for sale in the pet store
*/
export interface Pet {
- 'id'?: number;
- 'category'?: Category;
+ 'id'?: number | undefined;
+ 'category'?: Category | undefined;
'name': string;
'photoUrls': Array;
- 'tags'?: Array;
+ 'tags'?: Array | undefined;
/**
* pet status in the store
*/
- 'status'?: PetStatusEnum;
+ 'status'?: PetStatusEnum | undefined;
}
export const PetStatusEnum = {
@@ -97,24 +97,24 @@ export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum];
* A tag for a pet
*/
export interface Tag {
- 'id'?: number;
- 'name'?: string;
+ 'id'?: number | undefined;
+ 'name'?: string | undefined;
}
/**
* A User who is purchasing from the pet store
*/
export interface User {
- 'id'?: number;
- 'username'?: string;
- 'firstName'?: string;
- 'lastName'?: string;
- 'email'?: string;
- 'password'?: string;
- 'phone'?: string;
+ 'id'?: number | undefined;
+ 'username'?: string | undefined;
+ 'firstName'?: string | undefined;
+ 'lastName'?: string | undefined;
+ 'email'?: string | undefined;
+ 'password'?: string | undefined;
+ 'phone'?: string | undefined;
/**
* User Status
*/
- 'userStatus'?: number;
+ 'userStatus'?: number | undefined;
}
/**
diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-complex-headers/configuration.ts
index 77510956ab86..bd64ab798270 100644
--- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/configuration.ts
+++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/configuration.ts
@@ -1,4 +1,5 @@
/* tslint:disable */
+/* eslint-disable */
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
@@ -24,15 +25,15 @@ interface AWSv4Configuration {
}
export interface ConfigurationParameters {
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
- username?: string;
- password?: string;
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
- awsv4?: AWSv4Configuration;
- basePath?: string;
- serverIndex?: number;
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
+ username?: string | undefined;
+ password?: string | undefined;
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
+ awsv4?: AWSv4Configuration | undefined;
+ basePath?: string | undefined;
+ serverIndex?: number | undefined;
baseOptions?: any;
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
}
export class Configuration {
@@ -40,21 +41,21 @@ export class Configuration {
* parameter for apiKey security
* @param name security name
*/
- apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise);
+ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise) | undefined;
/**
* parameter for basic security
*/
- username?: string;
+ username?: string | undefined;
/**
* parameter for basic security
*/
- password?: string;
+ password?: string | undefined;
/**
* parameter for oauth2 security
* @param name security name
* @param scopes oauth2 scope
*/
- accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise);
+ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise) | undefined;
/**
* parameter for aws4 signature security
* @param {Object} AWS4Signature - AWS4 Signature security
@@ -65,19 +66,19 @@ export class Configuration {
* @param {string} credentials.sessionToken - aws session token
* @memberof Configuration
*/
- awsv4?: AWSv4Configuration;
+ awsv4?: AWSv4Configuration | undefined;
/**
* override base path
*/
- basePath?: string;
+ basePath?: string | undefined;
/**
* override server index
*/
- serverIndex?: number;
+ serverIndex?: number | undefined;
/**
* base options for axios calls
*/
- baseOptions?: any;
+ baseOptions?: any | undefined;
/**
* The FormData constructor that will be used to create multipart form data
* requests. You can inject this here so that execution environments that
@@ -85,7 +86,7 @@ export class Configuration {
*
* @type {new () => FormData}
*/
- formDataCtor?: new () => any;
+ formDataCtor?: (new () => any) | undefined;
constructor(param: ConfigurationParameters = {}) {
this.apiKey = param.apiKey;
diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/package-lock.json b/samples/client/petstore/typescript-axios/builds/with-complex-headers/package-lock.json
index b64668a5c51d..31dcb564035b 100644
--- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/package-lock.json
+++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/package-lock.json
@@ -1,33 +1,63 @@
{
- "name": "with-complex-headers",
+ "name": "@openapitools/typescript-axios-petstore",
+ "version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
+ "": {
+ "name": "@openapitools/typescript-axios-petstore",
+ "version": "1.0.0",
+ "license": "Unlicense",
+ "dependencies": {
+ "axios": "^1.12.2"
+ },
+ "devDependencies": {
+ "@types/node": "12.11.5 - 14.14.31",
+ "typescript": "^4.0 || ^5.0"
+ }
+ },
"node_modules/@types/node": {
- "version": "12.20.42",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.42.tgz",
- "integrity": "sha512-aI3/oo5DzyiI5R/xAhxxRzfZlWlsbbqdgxfTPkqu/Zt+23GXiJvMCyPJT4+xKSXOnLqoL8jJYMLTwvK2M3a5hw==",
- "dev": true
+ "version": "14.14.31",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.31.tgz",
+ "integrity": "sha512-vFHy/ezP5qI0rFgJ7aQnjDXwAMrG0KqqIH7tQG5PPv3BWBayOPIQNBjVc/P6hhdZfMx51REc6tfDNXHUio893g==",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
- "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
+ "license": "MIT"
},
"node_modules/axios": {
- "version": "1.7.7",
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz",
- "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==",
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.12.2.tgz",
+ "integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==",
+ "license": "MIT",
"dependencies": {
"follow-redirects": "^1.15.6",
- "form-data": "^4.0.0",
+ "form-data": "^4.0.4",
"proxy-from-env": "^1.1.0"
}
},
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/combined-stream": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
+ "license": "MIT",
"dependencies": {
"delayed-stream": "~1.0.0"
},
@@ -39,20 +69,81 @@
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
+ "license": "MIT",
"engines": {
"node": ">=0.4.0"
}
},
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-set-tostringtag": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.6",
+ "has-tostringtag": "^1.0.2",
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/follow-redirects": {
- "version": "1.15.9",
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz",
- "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",
+ "version": "1.15.11",
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz",
+ "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",
"funding": [
{
"type": "individual",
"url": "https://github.com/sponsors/RubenVerborgh"
}
],
+ "license": "MIT",
"engines": {
"node": ">=4.0"
},
@@ -63,22 +154,132 @@
}
},
"node_modules/form-data": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz",
- "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==",
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
+ "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
+ "license": "MIT",
"dependencies": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.8",
+ "es-set-tostringtag": "^2.1.0",
+ "hasown": "^2.0.2",
"mime-types": "^2.1.12"
},
"engines": {
"node": ">= 6"
}
},
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "function-bind": "^1.1.2",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-tostringtag": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
+ "license": "MIT",
+ "dependencies": {
+ "has-symbols": "^1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/mime-db": {
"version": "1.52.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+ "license": "MIT",
"engines": {
"node": ">= 0.6"
}
@@ -87,6 +288,7 @@
"version": "2.1.35",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+ "license": "MIT",
"dependencies": {
"mime-db": "1.52.0"
},
@@ -97,13 +299,15 @@
"node_modules/proxy-from-env": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
- "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
+ "license": "MIT"
},
"node_modules/typescript": {
- "version": "5.6.3",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz",
- "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==",
+ "version": "5.9.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
"dev": true,
+ "license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/package.json b/samples/client/petstore/typescript-axios/builds/with-complex-headers/package.json
index aa938d8bf659..f5366b31b0c3 100644
--- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/package.json
+++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/package.json
@@ -22,10 +22,10 @@
"prepare": "npm run build"
},
"dependencies": {
- "axios": "^1.6.1"
+ "axios": "^1.12.2"
},
"devDependencies": {
- "@types/node": "12.11.5 - 12.20.42",
+ "@types/node": "12.11.5 - 14.14.31",
"typescript": "^4.0 || ^5.0"
},
"publishConfig": {
diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/tsconfig.json b/samples/client/petstore/typescript-axios/builds/with-complex-headers/tsconfig.json
index d953a374d812..e974128f8ca5 100644
--- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/tsconfig.json
+++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/tsconfig.json
@@ -3,6 +3,8 @@
"declaration": true,
"target": "ES5",
"module": "commonjs",
+ "strictNullChecks": true,
+ "exactOptionalPropertyTypes": true,
"noImplicitAny": true,
"outDir": "dist",
"rootDir": ".",
diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts
index 91dd39a88ddf..a1028a44bc4e 100644
--- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts
+++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts
@@ -24,78 +24,78 @@ import type { RequestArgs } from './base';
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
export interface AdditionalPropertiesClass {
- 'map_property'?: { [key: string]: string; };
- 'map_of_map_property'?: { [key: string]: { [key: string]: string; }; };
+ 'map_property'?: { [key: string]: string; } | undefined;
+ 'map_of_map_property'?: { [key: string]: { [key: string]: string; }; } | undefined;
}
export interface Animal {
'className': string;
- 'color'?: string;
+ 'color'?: string | undefined;
}
export interface ApiResponse {
- 'code'?: number;
- 'type'?: string;
- 'message'?: string;
+ 'code'?: number | undefined;
+ 'type'?: string | undefined;
+ 'message'?: string | undefined;
}
export interface Apple {
- 'cultivar'?: string;
+ 'cultivar'?: string | undefined;
}
export interface AppleReq {
'cultivar': string;
- 'mealy'?: boolean;
+ 'mealy'?: boolean | undefined;
}
export interface ArrayOfArrayOfNumberOnly {
- 'ArrayArrayNumber'?: Array>;
+ 'ArrayArrayNumber'?: Array> | undefined;
}
export interface ArrayOfNumberOnly {
- 'ArrayNumber'?: Array;
+ 'ArrayNumber'?: Array | undefined;
}
export interface ArrayTest {
- 'array_of_string'?: Array;
- 'array_array_of_integer'?: Array>;
- 'array_array_of_model'?: Array>;
+ 'array_of_string'?: Array | undefined;
+ 'array_array_of_integer'?: Array> | undefined;
+ 'array_array_of_model'?: Array> | undefined;
}
export interface Banana {
[key: string]: any;
- 'lengthCm'?: number;
+ 'lengthCm'?: number | undefined;
}
export interface BananaReq {
'lengthCm': number;
- 'sweet'?: boolean;
+ 'sweet'?: boolean | undefined;
}
export interface Capitalization {
- 'smallCamel'?: string;
- 'CapitalCamel'?: string;
- 'small_Snake'?: string;
- 'Capital_Snake'?: string;
- 'SCA_ETH_Flow_Points'?: string;
+ 'smallCamel'?: string | undefined;
+ 'CapitalCamel'?: string | undefined;
+ 'small_Snake'?: string | undefined;
+ 'Capital_Snake'?: string | undefined;
+ 'SCA_ETH_Flow_Points'?: string | undefined;
/**
* Name of the pet
*/
- 'ATT_NAME'?: string;
+ 'ATT_NAME'?: string | undefined;
}
export interface Cat extends Animal {
- 'declawed'?: boolean;
+ 'declawed'?: boolean | undefined;
}
export interface Category {
- 'id'?: number;
+ 'id'?: number | undefined;
'name': string;
}
/**
* Model for testing model with \"_class\" property
*/
export interface ClassModel {
- '_class'?: string;
+ '_class'?: string | undefined;
}
export interface Client {
- 'client'?: string;
+ 'client'?: string | undefined;
}
export interface Dog extends Animal {
- 'breed'?: string;
+ 'breed'?: string | undefined;
}
export interface EnumArrays {
- 'just_symbol'?: EnumArraysJustSymbolEnum;
- 'array_enum'?: Array;
+ 'just_symbol'?: EnumArraysJustSymbolEnum | undefined;
+ 'array_enum'?: Array