From 763c77ea06a1ac80ccadfdda837361b58bbe41a6 Mon Sep 17 00:00:00 2001 From: Adam Clark Date: Wed, 15 Oct 2025 11:12:28 -0700 Subject: [PATCH 01/10] fix: Produce typescript-axios and typescript-fetch code that compiles with the "exactOptionalPropertyTypes" option. --- .../typescript-axios/apiInner.mustache | 2 +- .../typescript-axios/configuration.mustache | 32 +- .../typescript-axios/modelGeneric.mustache | 2 +- .../resources/typescript-fetch/apis.mustache | 2 +- .../modelGenericInterfaces.mustache | 2 +- .../resources/typescript-fetch/sagas.mustache | 2 +- .../echo_api/typescript-axios/build/api.ts | 64 ++-- .../typescript-axios/build/configuration.ts | 32 +- .../configuration.ts | 32 +- ...abstract-flat-stock-pick-order-base-dto.ts | 8 +- .../model/abstract-user-dto.ts | 6 +- .../model/branch-dto.ts | 2 +- .../models/ExtendDto.ts | 2 +- .../models/TestBaseDto.ts | 13 +- .../models/AbstractUserDto.ts | 6 +- .../self-import-issue/models/BranchDto.ts | 2 +- .../builds/composed-schemas/api.ts | 18 +- .../builds/composed-schemas/configuration.ts | 32 +- .../typescript-axios/builds/default/api.ts | 50 +-- .../builds/default/configuration.ts | 32 +- .../typescript-axios/builds/es6-target/api.ts | 50 +-- .../builds/es6-target/configuration.ts | 32 +- .../builds/test-petstore/api.ts | 286 +++++++++--------- .../builds/test-petstore/configuration.ts | 32 +- .../builds/with-complex-headers/api.ts | 50 +-- .../with-complex-headers/configuration.ts | 32 +- .../with-complex-headers/package-lock.json | 15 +- .../api.ts | 250 +++++++-------- .../configuration.ts | 32 +- .../api.ts | 60 ++-- .../configuration.ts | 32 +- .../builds/with-interfaces/api.ts | 50 +-- .../builds/with-interfaces/configuration.ts | 32 +- .../builds/with-node-imports/api.ts | 50 +-- .../builds/with-node-imports/configuration.ts | 32 +- .../configuration.ts | 32 +- .../model/some/levels/deep/api-response.ts | 6 +- .../model/some/levels/deep/category.ts | 4 +- .../model/some/levels/deep/order.ts | 12 +- .../model/some/levels/deep/pet.ts | 8 +- .../model/some/levels/deep/tag.ts | 4 +- .../model/some/levels/deep/user.ts | 16 +- .../builds/with-npm-version/api.ts | 50 +-- .../builds/with-npm-version/configuration.ts | 32 +- .../builds/with-npm-version/package-lock.json | 4 +- .../with-single-request-parameters/api.ts | 62 ++-- .../configuration.ts | 32 +- .../builds/with-string-enums/api.ts | 50 +-- .../builds/with-string-enums/configuration.ts | 32 +- .../tests/default/package-lock.json | 8 +- .../tests/default/test/PetApi.ts | 10 +- .../with-complex-headers/package-lock.json | 13 +- .../builds/allOf-nullable/models/Club.ts | 2 +- .../builds/allOf-nullable/models/Owner.ts | 2 +- .../builds/allOf-readonly/models/Club.ts | 2 +- .../builds/allOf-readonly/models/Owner.ts | 2 +- .../builds/default-v3.0/apis/FakeApi.ts | 58 ++-- .../builds/default-v3.0/apis/PetApi.ts | 12 +- .../models/AdditionalPropertiesClass.ts | 4 +- .../default-v3.0/models/AllOfWithSingleRef.ts | 4 +- .../builds/default-v3.0/models/Animal.ts | 2 +- .../models/ArrayOfArrayOfNumberOnly.ts | 2 +- .../default-v3.0/models/ArrayOfNumberOnly.ts | 2 +- .../builds/default-v3.0/models/ArrayTest.ts | 6 +- .../default-v3.0/models/Capitalization.ts | 12 +- .../builds/default-v3.0/models/Cat.ts | 2 +- .../builds/default-v3.0/models/Category.ts | 2 +- .../default-v3.0/models/ChildWithNullable.ts | 2 +- .../builds/default-v3.0/models/ClassModel.ts | 2 +- .../builds/default-v3.0/models/Client.ts | 2 +- .../default-v3.0/models/DeprecatedObject.ts | 2 +- .../builds/default-v3.0/models/Dog.ts | 2 +- .../builds/default-v3.0/models/EnumArrays.ts | 4 +- .../builds/default-v3.0/models/EnumTest.ts | 14 +- .../models/FakeBigDecimalMap200Response.ts | 4 +- .../models/FileSchemaTestClass.ts | 4 +- .../builds/default-v3.0/models/Foo.ts | 2 +- .../models/FooGetDefaultResponse.ts | 2 +- .../builds/default-v3.0/models/FormatTest.ts | 24 +- .../default-v3.0/models/HasOnlyReadOnly.ts | 4 +- .../default-v3.0/models/HealthCheckResult.ts | 2 +- .../builds/default-v3.0/models/List.ts | 2 +- .../builds/default-v3.0/models/MapTest.ts | 8 +- ...dPropertiesAndAdditionalPropertiesClass.ts | 6 +- .../default-v3.0/models/Model200Response.ts | 4 +- .../default-v3.0/models/ModelApiResponse.ts | 6 +- .../builds/default-v3.0/models/ModelFile.ts | 2 +- .../builds/default-v3.0/models/Name.ts | 6 +- .../default-v3.0/models/NullableClass.ts | 24 +- .../builds/default-v3.0/models/NumberOnly.ts | 2 +- .../models/ObjectWithDeprecatedFields.ts | 8 +- .../builds/default-v3.0/models/Order.ts | 12 +- .../default-v3.0/models/OuterComposite.ts | 6 +- .../default-v3.0/models/ParentWithNullable.ts | 4 +- .../builds/default-v3.0/models/Pet.ts | 8 +- .../default-v3.0/models/ReadOnlyFirst.ts | 4 +- .../builds/default-v3.0/models/Return.ts | 2 +- .../default-v3.0/models/SpecialModelName.ts | 2 +- .../builds/default-v3.0/models/Tag.ts | 4 +- ...lineFreeformAdditionalPropertiesRequest.ts | 2 +- .../builds/default-v3.0/models/User.ts | 16 +- .../builds/default/apis/PetApi.ts | 10 +- .../builds/default/models/Category.ts | 4 +- .../builds/default/models/ModelApiResponse.ts | 6 +- .../builds/default/models/Order.ts | 12 +- .../builds/default/models/Pet.ts | 8 +- .../builds/default/models/Tag.ts | 4 +- .../builds/default/models/User.ts | 16 +- .../builds/enum/apis/DefaultApi.ts | 20 +- .../builds/enum/models/EnumPatternObject.ts | 8 +- .../FakeEnumRequestGetInline200Response.ts | 8 +- .../builds/es6-target/src/apis/PetApi.ts | 10 +- .../builds/es6-target/src/models/Category.ts | 4 +- .../es6-target/src/models/ModelApiResponse.ts | 6 +- .../builds/es6-target/src/models/Order.ts | 12 +- .../builds/es6-target/src/models/Pet.ts | 8 +- .../builds/es6-target/src/models/Tag.ts | 4 +- .../builds/es6-target/src/models/User.ts | 16 +- .../builds/multiple-parameters/apis/PetApi.ts | 10 +- .../multiple-parameters/models/Category.ts | 4 +- .../models/ModelApiResponse.ts | 6 +- .../multiple-parameters/models/Order.ts | 12 +- .../builds/multiple-parameters/models/Pet.ts | 8 +- .../builds/multiple-parameters/models/Tag.ts | 4 +- .../builds/multiple-parameters/models/User.ts | 16 +- .../src/apis/PetApi.ts | 10 +- .../src/models/Category.ts | 4 +- .../src/models/ModelApiResponse.ts | 6 +- .../src/models/Order.ts | 12 +- .../src/models/Pet.ts | 8 +- .../src/models/Tag.ts | 4 +- .../src/models/User.ts | 16 +- .../sagas-and-records/src/apis/PetApi.ts | 10 +- .../sagas-and-records/src/apis/PetApiSagas.ts | 10 +- .../sagas-and-records/src/apis/PetPartApi.ts | 4 +- .../src/apis/PetPartApiSagas.ts | 4 +- .../sagas-and-records/src/models/Category.ts | 4 +- .../src/models/FindPetsByStatusResponse.ts | 2 +- .../src/models/FindPetsByUserResponse.ts | 2 +- .../models/GetBehaviorPermissionsResponse.ts | 2 +- .../src/models/GetBehaviorTypeResponse.ts | 2 +- .../src/models/GetMatchingPartsResponse.ts | 2 +- .../src/models/GetPetPartTypeResponse.ts | 2 +- .../src/models/ModelApiResponse.ts | 6 +- .../src/models/ModelError.ts | 6 +- .../sagas-and-records/src/models/Order.ts | 12 +- .../sagas-and-records/src/models/Pet.ts | 14 +- .../src/models/PetRegionsResponse.ts | 2 +- .../src/models/ResponseMeta.ts | 10 +- .../sagas-and-records/src/models/Tag.ts | 4 +- .../sagas-and-records/src/models/User.ts | 16 +- .../snakecase-discriminator/apis/FakeApi.ts | 58 ++-- .../snakecase-discriminator/apis/PetApi.ts | 12 +- .../models/AdditionalPropertiesClass.ts | 4 +- .../models/AllOfWithSingleRef.ts | 4 +- .../snakecase-discriminator/models/Animal.ts | 2 +- .../models/ArrayOfArrayOfNumberOnly.ts | 2 +- .../models/ArrayOfNumberOnly.ts | 2 +- .../models/ArrayTest.ts | 6 +- .../models/Capitalization.ts | 12 +- .../snakecase-discriminator/models/Cat.ts | 2 +- .../models/Category.ts | 2 +- .../models/ClassModel.ts | 2 +- .../snakecase-discriminator/models/Client.ts | 2 +- .../models/DeprecatedObject.ts | 2 +- .../snakecase-discriminator/models/Dog.ts | 2 +- .../models/EnumArrays.ts | 4 +- .../models/EnumTest.ts | 14 +- .../models/FakeBigDecimalMap200Response.ts | 4 +- .../models/FileSchemaTestClass.ts | 4 +- .../snakecase-discriminator/models/Foo.ts | 2 +- .../models/FooGetDefaultResponse.ts | 2 +- .../models/FormatTest.ts | 24 +- .../models/HasOnlyReadOnly.ts | 4 +- .../models/HealthCheckResult.ts | 2 +- .../snakecase-discriminator/models/List.ts | 2 +- .../snakecase-discriminator/models/MapTest.ts | 8 +- ...dPropertiesAndAdditionalPropertiesClass.ts | 6 +- .../models/Model200Response.ts | 4 +- .../models/ModelApiResponse.ts | 6 +- .../models/ModelFile.ts | 2 +- .../snakecase-discriminator/models/Name.ts | 6 +- .../models/NullableClass.ts | 24 +- .../models/NumberOnly.ts | 2 +- .../models/ObjectWithDeprecatedFields.ts | 8 +- .../snakecase-discriminator/models/Order.ts | 12 +- .../models/OuterComposite.ts | 6 +- .../snakecase-discriminator/models/Pet.ts | 8 +- .../models/ReadOnlyFirst.ts | 4 +- .../snakecase-discriminator/models/Return.ts | 2 +- .../models/SpecialModelName.ts | 2 +- .../snakecase-discriminator/models/Tag.ts | 4 +- .../snakecase-discriminator/models/User.ts | 16 +- .../validation-attributes/apis/PetApi.ts | 10 +- .../validation-attributes/models/Category.ts | 4 +- .../models/ModelApiResponse.ts | 6 +- .../validation-attributes/models/Order.ts | 12 +- .../validation-attributes/models/Pet.ts | 8 +- .../validation-attributes/models/Tag.ts | 4 +- .../validation-attributes/models/User.ts | 16 +- .../builds/with-interfaces/apis/PetApi.ts | 10 +- .../builds/with-interfaces/models/Category.ts | 4 +- .../models/ModelApiResponse.ts | 6 +- .../builds/with-interfaces/models/Order.ts | 12 +- .../builds/with-interfaces/models/Pet.ts | 8 +- .../builds/with-interfaces/models/Tag.ts | 4 +- .../builds/with-interfaces/models/User.ts | 16 +- .../with-npm-version/src/apis/PetApi.ts | 10 +- .../with-npm-version/src/models/Category.ts | 4 +- .../src/models/ModelApiResponse.ts | 6 +- .../with-npm-version/src/models/Order.ts | 12 +- .../builds/with-npm-version/src/models/Pet.ts | 8 +- .../builds/with-npm-version/src/models/Tag.ts | 4 +- .../with-npm-version/src/models/User.ts | 16 +- .../with-string-enums/apis/DefaultApi.ts | 20 +- .../models/EnumPatternObject.ts | 8 +- .../FakeEnumRequestGetInline200Response.ts | 8 +- .../without-runtime-checks/src/apis/PetApi.ts | 10 +- .../src/models/index.ts | 50 +-- .../tests/default/test/PetApi.ts | 10 +- 220 files changed, 1531 insertions(+), 1504 deletions(-) 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 046261bc973f..e6db438cace2 100644 --- a/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache @@ -363,7 +363,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 6dd78e7a1778..e5fbe1bd18bb 100644 --- a/modules/openapi-generator/src/main/resources/typescript-axios/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-axios/configuration.mustache @@ -4,14 +4,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -19,33 +19,33 @@ 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; /** * 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 @@ -53,7 +53,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-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/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/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 34e7d2f62f17..f15e5790aba9 100644 --- a/samples/client/echo_api/typescript-axios/build/configuration.ts +++ b/samples/client/echo_api/typescript-axios/build/configuration.ts @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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/configuration.ts b/samples/client/others/typescript-axios/with-separate-models-and-api-inheritance/configuration.ts index a63c023257b3..8fa813fa3d23 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 @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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..9f41ab9b6572 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 @@ -21,6 +21,7 @@ import { TestObjectTypeToJSONTyped, } from './TestObjectType'; +import { type TestBaseDto, TestBaseDtoFromJSONTyped, TestBaseDtoToJSON, TestBaseDtoToJSONTyped } from './TestBaseDto'; import { type ExtendDto, ExtendDtoFromJSONTyped, ExtendDtoToJSON, ExtendDtoToJSONTyped } from './ExtendDto'; /** * @@ -33,13 +34,13 @@ export interface TestBaseDto { * @type {string} * @memberof TestBaseDto */ - something?: string; + something?: string | undefined; /** * * @type {TestObjectType} * @memberof TestBaseDto */ - testObjectType?: TestObjectType; + testObjectType?: TestObjectType | undefined; } @@ -60,12 +61,12 @@ export function TestBaseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean return json; } if (!ignoreDiscriminator) { + if (json['testObjectType'] === 'TEST1') { + return TestBaseDtoFromJSONTyped(json, ignoreDiscriminator); + } if (json['testObjectType'] === 'TEST2') { return ExtendDtoFromJSONTyped(json, ignoreDiscriminator); } - if (json['testObjectType'] === 'TEST1') { - return TestBaseDtoFromJSONTyped(json, true); - } } return { @@ -86,6 +87,8 @@ export function TestBaseDtoToJSONTyped(value?: TestBaseDto | null, ignoreDiscrim if (!ignoreDiscriminator) { switch (value['testObjectType']) { + case 'TEST1': + return TestBaseDtoToJSONTyped(value as TestBaseDto, ignoreDiscriminator); case 'TEST2': return ExtendDtoToJSONTyped(value as ExtendDto, ignoreDiscriminator); default: 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/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 9b343fd954ee..2c4574d08e05 100644 --- a/samples/client/petstore/typescript-axios/builds/composed-schemas/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/composed-schemas/configuration.ts @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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 c50ec4bf5d5b..b754a2b4ebae 100644 --- a/samples/client/petstore/typescript-axios/builds/default/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/default/configuration.ts @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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 c50ec4bf5d5b..b754a2b4ebae 100644 --- a/samples/client/petstore/typescript-axios/builds/es6-target/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/es6-target/configuration.ts @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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/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 db98c9fdf6fe..b73b59ab9e44 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/configuration.ts @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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 c50ec4bf5d5b..b754a2b4ebae 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 @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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..349da389c513 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,8 +1,21 @@ { - "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.6.1" + }, + "devDependencies": { + "@types/node": "12.11.5 - 12.20.42", + "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", 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 | undefined; } export const EnumArraysJustSymbolEnum = { @@ -122,14 +122,14 @@ 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_number'?: EnumTestEnumNumberEnum; - 'outerEnum'?: OuterEnum | null; - 'outerEnumInteger'?: OuterEnumInteger; - 'outerEnumDefaultValue'?: OuterEnumDefaultValue; - 'outerEnumIntegerDefaultValue'?: OuterEnumIntegerDefaultValue; + 'enum_integer'?: EnumTestEnumIntegerEnum | undefined; + 'enum_number'?: EnumTestEnumNumberEnum | undefined; + 'outerEnum'?: OuterEnum | null | undefined; + 'outerEnumInteger'?: OuterEnumInteger | undefined; + 'outerEnumDefaultValue'?: OuterEnumDefaultValue | undefined; + 'outerEnumIntegerDefaultValue'?: OuterEnumIntegerDefaultValue | undefined; } export const EnumTestEnumStringEnum = { @@ -160,37 +160,37 @@ export const EnumTestEnumNumberEnum = { export type EnumTestEnumNumberEnum = typeof EnumTestEnumNumberEnum[keyof typeof EnumTestEnumNumberEnum]; 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; - 'string'?: string; + 'float'?: number | undefined; + 'double'?: number | 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 @@ -203,22 +203,22 @@ export type Fruit = Apple | Banana; export type FruitReq = AppleReq | BananaReq; export interface GmFruit { - 'color'?: string; - 'cultivar'?: string; - 'lengthCm'?: number; + 'color'?: string | undefined; + 'cultivar'?: string | undefined; + 'lengthCm'?: number | undefined; } 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 List { - '123-list'?: string; + '123-list'?: string | undefined; } /** * @type Mammal @@ -226,10 +226,10 @@ export interface List { export type Mammal = { className: 'whale' } & Whale | { className: 'zebra' } & Zebra; 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 = { @@ -240,16 +240,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. @@ -258,46 +258,46 @@ 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; } export interface NumberOnly { - 'JustNumber'?: number; + 'JustNumber'?: number | 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 = { @@ -309,9 +309,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 = { @@ -354,16 +354,16 @@ export type OuterEnumIntegerDefaultValue = typeof OuterEnumIntegerDefaultValue[k 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 * @deprecated */ - 'status'?: PetStatusEnum; + 'status'?: PetStatusEnum | undefined; } export const PetStatusEnum = { @@ -375,72 +375,72 @@ export const PetStatusEnum = { export type PetStatusEnum = typeof PetStatusEnum[keyof typeof PetStatusEnum]; export interface ReadOnlyFirst { - 'bar'?: string; - 'baz'?: string; + 'bar'?: string | undefined; + 'baz'?: string | undefined; } export interface ReadOnlyWithDefault { - 'prop1'?: string; - 'prop2'?: string; - 'prop3'?: string; - 'boolProp1'?: boolean; - 'boolProp2'?: boolean; - 'intProp1'?: number; - 'intProp2'?: number; + 'prop1'?: string | undefined; + 'prop2'?: string | undefined; + 'prop3'?: string | undefined; + 'boolProp1'?: boolean | undefined; + 'boolProp2'?: boolean | undefined; + 'intProp1'?: number | undefined; + 'intProp2'?: number | undefined; } /** * Model for testing reserved words */ export interface Return { - 'return'?: number; + 'return'?: number | undefined; } export interface SpecialModelName { - '$special[property.name]'?: number; + '$special[property.name]'?: number | 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; } 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. */ - 'arbitraryObject'?: object; + 'arbitraryObject'?: object | undefined; /** * test code generation for nullable objects. Value must be a map of strings to values or the \'null\' value. */ - 'arbitraryNullableObject'?: object | null; + 'arbitraryNullableObject'?: object | null | undefined; /** * test code generation for any type Value can be any type - string, number, boolean, array or object. */ - 'arbitraryTypeValue'?: any; + 'arbitraryTypeValue'?: any | undefined; /** * test code generation for any type Value can be any type - string, number, boolean, array, object or the \'null\' value. */ - 'arbitraryNullableTypeValue'?: any | null; + 'arbitraryNullableTypeValue'?: any | null | undefined; } export interface Whale { - 'hasBaleen'?: boolean; - 'hasTeeth'?: boolean; + 'hasBaleen'?: boolean | undefined; + 'hasTeeth'?: boolean | undefined; 'className': string; } export interface Zebra { - 'type'?: ZebraTypeEnum; + 'type'?: ZebraTypeEnum | undefined; 'className': string; } diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts index db98c9fdf6fe..b73b59ab9e44 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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-interfaces-and-with-single-request-param/api.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/api.ts index 40892b8dc94d..ae2e01000cbe 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/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; } /** @@ -769,7 +769,7 @@ export interface PetApiDeletePetRequest { */ readonly petId: number - readonly apiKey?: string + readonly apiKey?: string | undefined } /** @@ -824,12 +824,12 @@ export interface PetApiUpdatePetWithFormRequest { /** * Updated name of the pet */ - readonly name?: string + readonly name?: string | undefined /** * Updated status of the pet */ - readonly status?: string + readonly status?: string | undefined } /** @@ -844,12 +844,12 @@ export interface PetApiUploadFileRequest { /** * Additional data to pass to server */ - readonly additionalMetadata?: string + readonly additionalMetadata?: string | undefined /** * file to upload */ - readonly file?: File + readonly file?: File | undefined } /** diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts index c50ec4bf5d5b..b754a2b4ebae 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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-interfaces/api.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces/api.ts index 0fee30e01974..1d51cae05bd2 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/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/with-interfaces/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces/configuration.ts index c50ec4bf5d5b..b754a2b4ebae 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/configuration.ts @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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-node-imports/api.ts b/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts index 3b0ab1b4dced..93d34e1c6545 100644 --- a/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-node-imports/api.ts @@ -31,30 +31,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 = { @@ -69,15 +69,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 = { @@ -92,24 +92,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-node-imports/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts index c50ec4bf5d5b..b754a2b4ebae 100644 --- a/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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-npm-version-and-separate-models-and-api/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/configuration.ts index c50ec4bf5d5b..b754a2b4ebae 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/configuration.ts @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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-npm-version-and-separate-models-and-api/model/some/levels/deep/api-response.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/api-response.ts index 8a7ede2299e8..2400d3755e8b 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/api-response.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/api-response.ts @@ -18,8 +18,8 @@ * 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; } diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/category.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/category.ts index a9e49cab89aa..cb04266ae141 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/category.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/category.ts @@ -18,7 +18,7 @@ * A category for a pet */ export interface Category { - 'id'?: number; - 'name'?: string; + 'id'?: number | undefined; + 'name'?: string | undefined; } diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/order.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/order.ts index 4ffbce0f9e16..b57bc1799491 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/order.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/order.ts @@ -18,15 +18,15 @@ * 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 = { diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/pet.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/pet.ts index ee25eb132d0c..485970986915 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/pet.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/pet.ts @@ -24,15 +24,15 @@ import type { Tag } from './tag'; * 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 = { diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/tag.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/tag.ts index 607244456831..7a7cd39e6279 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/tag.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/tag.ts @@ -18,7 +18,7 @@ * A tag for a pet */ export interface Tag { - 'id'?: number; - 'name'?: string; + 'id'?: number | undefined; + 'name'?: string | undefined; } diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/user.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/user.ts index f729fd3b019b..feb3bd2dfd47 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/user.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/model/some/levels/deep/user.ts @@ -18,16 +18,16 @@ * 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-npm-version/api.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version/api.ts index fde2a4d20783..a3a47d450fb3 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/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/with-npm-version/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version/configuration.ts index c50ec4bf5d5b..b754a2b4ebae 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/configuration.ts @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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-npm-version/package-lock.json b/samples/client/petstore/typescript-axios/builds/with-npm-version/package-lock.json index 1afa264fc3ca..68e58c4757a1 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/package-lock.json +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/package-lock.json @@ -12,8 +12,8 @@ "axios": "^1.6.1" }, "devDependencies": { - "@types/node": "^12.11.5", - "typescript": "^4.0" + "@types/node": "12.11.5 - 12.20.42", + "typescript": "^4.0 || ^5.0" } }, "node_modules/@types/node": { diff --git a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/api.ts b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/api.ts index a4d2f4562a7a..948493b0e148 100644 --- a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/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; } /** @@ -690,7 +690,7 @@ export interface PetApiDeletePetRequest { */ readonly petId: number - readonly apiKey?: string + readonly apiKey?: string | undefined } /** @@ -745,12 +745,12 @@ export interface PetApiUpdatePetWithFormRequest { /** * Updated name of the pet */ - readonly name?: string + readonly name?: string | undefined /** * Updated status of the pet */ - readonly status?: string + readonly status?: string | undefined } /** @@ -765,12 +765,12 @@ export interface PetApiUploadFileRequest { /** * Additional data to pass to server */ - readonly additionalMetadata?: string + readonly additionalMetadata?: string | undefined /** * file to upload */ - readonly file?: File + readonly file?: File | undefined } /** @@ -1153,7 +1153,7 @@ export interface StoreApiPlaceOrderRequest { /** * order placed for purchasing the pet */ - readonly body?: Order + readonly body?: Order | undefined } /** diff --git a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts index c50ec4bf5d5b..b754a2b4ebae 100644 --- a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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-string-enums/api.ts b/samples/client/petstore/typescript-axios/builds/with-string-enums/api.ts index 04accd98841b..b1becd46d188 100644 --- a/samples/client/petstore/typescript-axios/builds/with-string-enums/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-string-enums/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 enum OrderStatusEnum { @@ -63,15 +63,15 @@ export enum OrderStatusEnum { * 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 enum PetStatusEnum { @@ -84,24 +84,24 @@ export enum 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-string-enums/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-string-enums/configuration.ts index c50ec4bf5d5b..b754a2b4ebae 100644 --- a/samples/client/petstore/typescript-axios/builds/with-string-enums/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-string-enums/configuration.ts @@ -14,14 +14,14 @@ 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); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + 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; + basePath?: string | undefined; + serverIndex?: number | undefined; + baseOptions?: any | undefined; + formDataCtor?: (new () => any) | undefined; } export class Configuration { @@ -29,33 +29,33 @@ 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; /** * 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 @@ -63,7 +63,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/tests/default/package-lock.json b/samples/client/petstore/typescript-axios/tests/default/package-lock.json index eb463a6465d4..2aa46f980bad 100644 --- a/samples/client/petstore/typescript-axios/tests/default/package-lock.json +++ b/samples/client/petstore/typescript-axios/tests/default/package-lock.json @@ -32,8 +32,8 @@ "axios": "^1.6.1" }, "devDependencies": { - "@types/node": "^12.11.5", - "typescript": "^4.0" + "@types/node": "12.11.5 - 12.20.42", + "typescript": "^4.0 || ^5.0" } }, "../../builds/with-npm-version/node_modules/@types/node": { @@ -2859,9 +2859,9 @@ "@openapitools/typescript-axios-petstore": { "version": "file:../../builds/with-npm-version", "requires": { - "@types/node": "^12.11.5", + "@types/node": "12.11.5 - 12.20.42", "axios": "^1.6.1", - "typescript": "^4.0" + "typescript": "^4.0 || ^5.0" }, "dependencies": { "@types/node": { diff --git a/samples/client/petstore/typescript-axios/tests/default/test/PetApi.ts b/samples/client/petstore/typescript-axios/tests/default/test/PetApi.ts index dabb4d9a4f4f..b412c46c484e 100644 --- a/samples/client/petstore/typescript-axios/tests/default/test/PetApi.ts +++ b/samples/client/petstore/typescript-axios/tests/default/test/PetApi.ts @@ -18,7 +18,7 @@ describe("PetApi", () => { it("should get Pet by ID", () => { return api - .getPetById(fixture.id, requestOptions) + .getPetById(fixture.id!, requestOptions) .then((result: AxiosResponse) => { return expect(result.data).to.deep.equal(fixture); }); @@ -26,13 +26,13 @@ describe("PetApi", () => { it("should update Pet by ID", () => { return api - .getPetById(fixture.id, requestOptions) + .getPetById(fixture.id!, requestOptions) .then((response: AxiosResponse) => { const result = response.data; result.name = "newname"; return api.updatePet(result, requestOptions).then(() => { return api - .getPetById(fixture.id, requestOptions) + .getPetById(fixture.id!, requestOptions) .then((response: AxiosResponse) => { return expect(response.data.name).to.deep.equal("newname"); }); @@ -41,11 +41,11 @@ describe("PetApi", () => { }); it("should delete Pet", () => { - return api.deletePet(fixture.id, requestOptions); + return api.deletePet(fixture.id!, requestOptions); }); it("should not contain deleted Pet", () => { - return api.getPetById(fixture.id, requestOptions).then( + return api.getPetById(fixture.id!, requestOptions).then( (result: AxiosResponse) => { return expect(result.data).to.not.exist; }, diff --git a/samples/client/petstore/typescript-axios/tests/with-complex-headers/package-lock.json b/samples/client/petstore/typescript-axios/tests/with-complex-headers/package-lock.json index d3169825fc0b..140d5f4e3fbf 100644 --- a/samples/client/petstore/typescript-axios/tests/with-complex-headers/package-lock.json +++ b/samples/client/petstore/typescript-axios/tests/with-complex-headers/package-lock.json @@ -24,7 +24,18 @@ "typescript": "^4.1.2" } }, - "../../builds/with-complex-headers": {}, + "../../builds/with-complex-headers": { + "name": "@openapitools/typescript-axios-petstore", + "version": "1.0.0", + "license": "Unlicense", + "dependencies": { + "axios": "^1.6.1" + }, + "devDependencies": { + "@types/node": "12.11.5 - 12.20.42", + "typescript": "^4.0 || ^5.0" + } + }, "node_modules/@openapitools/typescript-axios-petstore": { "resolved": "../../builds/with-complex-headers", "link": true diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Club.ts b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Club.ts index 840229f07010..d56956940c6f 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Club.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Club.ts @@ -32,7 +32,7 @@ export interface Club { * @type {Owner} * @memberof Club */ - owner?: Owner | null; + owner?: Owner | null | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Owner.ts b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Owner.ts index a0dcefdc827e..f6ee18d6a781 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Owner.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/models/Owner.ts @@ -24,7 +24,7 @@ export interface Owner { * @type {string} * @memberof Owner */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Club.ts b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Club.ts index b6659c9de23b..65350241534e 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Club.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Club.ts @@ -32,7 +32,7 @@ export interface Club { * @type {Owner} * @memberof Club */ - readonly owner?: Owner; + readonly owner?: Owner | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Owner.ts b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Owner.ts index a0dcefdc827e..f6ee18d6a781 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Owner.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/models/Owner.ts @@ -24,7 +24,7 @@ export interface Owner { * @type {string} * @memberof Owner */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts index 72800d8405f2..042077355aae 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts @@ -54,24 +54,24 @@ import { export interface FakeHttpSignatureTestRequest { pet: Pet; - query1?: string; - header1?: string; + query1?: string | undefined; + header1?: string | undefined; } export interface FakeOuterBooleanSerializeRequest { - body?: boolean; + body?: boolean | undefined; } export interface FakeOuterCompositeSerializeRequest { - outerComposite?: OuterComposite; + outerComposite?: OuterComposite | undefined; } export interface FakeOuterNumberSerializeRequest { - body?: number; + body?: number | undefined; } export interface FakeOuterStringSerializeRequest { - body?: string; + body?: string | undefined; } export interface FakePropertyEnumIntegerSerializeRequest { @@ -104,37 +104,37 @@ export interface TestEndpointParametersRequest { _double: number; patternWithoutDelimiter: string; _byte: string; - integer?: number; - int32?: number; - int64?: number; - _float?: number; - string?: string; - binary?: Blob; - date?: Date; - dateTime?: Date; - password?: string; - callback?: string; + integer?: number | undefined; + int32?: number | undefined; + int64?: number | undefined; + _float?: number | undefined; + string?: string | undefined; + binary?: Blob | undefined; + date?: Date | undefined; + dateTime?: Date | undefined; + password?: string | undefined; + callback?: string | undefined; } export interface TestEnumParametersRequest { - enumHeaderStringArray?: Array; - enumHeaderString?: TestEnumParametersEnumHeaderStringEnum; - enumQueryStringArray?: Array; - enumQueryString?: TestEnumParametersEnumQueryStringEnum; - enumQueryInteger?: TestEnumParametersEnumQueryIntegerEnum; - enumQueryDouble?: TestEnumParametersEnumQueryDoubleEnum; - enumQueryModelArray?: Array; - enumFormStringArray?: Array; - enumFormString?: TestEnumParametersEnumFormStringEnum; + enumHeaderStringArray?: Array | undefined; + enumHeaderString?: TestEnumParametersEnumHeaderStringEnum | undefined; + enumQueryStringArray?: Array | undefined; + enumQueryString?: TestEnumParametersEnumQueryStringEnum | undefined; + enumQueryInteger?: TestEnumParametersEnumQueryIntegerEnum | undefined; + enumQueryDouble?: TestEnumParametersEnumQueryDoubleEnum | undefined; + enumQueryModelArray?: Array | undefined; + enumFormStringArray?: Array | undefined; + enumFormString?: TestEnumParametersEnumFormStringEnum | undefined; } export interface TestGroupParametersRequest { requiredStringGroup: number; requiredBooleanGroup: boolean; requiredInt64Group: number; - stringGroup?: number; - booleanGroup?: boolean; - int64Group?: number; + stringGroup?: number | undefined; + booleanGroup?: boolean | undefined; + int64Group?: number | undefined; } export interface TestInlineAdditionalPropertiesRequest { @@ -161,7 +161,7 @@ export interface TestQueryParameterCollectionFormatRequest { url: Array; context: Array; allowEmpty: string; - language?: { [key: string]: string; }; + language?: { [key: string]: string; } | undefined; } export interface TestStringMapReferenceRequest { diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/PetApi.ts index 2a9812520139..c21193921988 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/PetApi.ts @@ -31,7 +31,7 @@ export interface AddPetRequest { export interface DeletePetRequest { petId: number; - apiKey?: string; + apiKey?: string | undefined; } export interface FindPetsByStatusRequest { @@ -52,20 +52,20 @@ export interface UpdatePetRequest { export interface UpdatePetWithFormRequest { petId: number; - name?: string; - status?: string; + name?: string | undefined; + status?: string | undefined; } export interface UploadFileRequest { petId: number; - additionalMetadata?: string; - file?: Blob; + additionalMetadata?: string | undefined; + file?: Blob | undefined; } export interface UploadFileWithRequiredFileRequest { petId: number; requiredFile: Blob; - additionalMetadata?: string; + additionalMetadata?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AdditionalPropertiesClass.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AdditionalPropertiesClass.ts index d470576ef7d3..1a3c8941bb84 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AdditionalPropertiesClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AdditionalPropertiesClass.ts @@ -24,13 +24,13 @@ export interface AdditionalPropertiesClass { * @type {{ [key: string]: string; }} * @memberof AdditionalPropertiesClass */ - mapProperty?: { [key: string]: string; }; + mapProperty?: { [key: string]: string; } | undefined; /** * * @type {{ [key: string]: { [key: string]: string; }; }} * @memberof AdditionalPropertiesClass */ - mapOfMapProperty?: { [key: string]: { [key: string]: string; }; }; + mapOfMapProperty?: { [key: string]: { [key: string]: string; }; } | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AllOfWithSingleRef.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AllOfWithSingleRef.ts index cbd15b990c6c..273bbc50d156 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AllOfWithSingleRef.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/AllOfWithSingleRef.ts @@ -32,13 +32,13 @@ export interface AllOfWithSingleRef { * @type {string} * @memberof AllOfWithSingleRef */ - username?: string; + username?: string | undefined; /** * * @type {SingleRefType} * @memberof AllOfWithSingleRef */ - singleRefType?: SingleRefType; + singleRefType?: SingleRefType | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Animal.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Animal.ts index 93f905537d4a..a9bbc8995b63 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Animal.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Animal.ts @@ -32,7 +32,7 @@ export interface Animal { * @type {string} * @memberof Animal */ - color?: string; + color?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfArrayOfNumberOnly.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfArrayOfNumberOnly.ts index 3792b9134b4a..d57490818e70 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfArrayOfNumberOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfArrayOfNumberOnly.ts @@ -24,7 +24,7 @@ export interface ArrayOfArrayOfNumberOnly { * @type {Array>} * @memberof ArrayOfArrayOfNumberOnly */ - arrayArrayNumber?: Array>; + arrayArrayNumber?: Array> | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfNumberOnly.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfNumberOnly.ts index 40fbb3c6326d..bc682f876290 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfNumberOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayOfNumberOnly.ts @@ -24,7 +24,7 @@ export interface ArrayOfNumberOnly { * @type {Array} * @memberof ArrayOfNumberOnly */ - arrayNumber?: Array; + arrayNumber?: Array | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayTest.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayTest.ts index 9f3c53288826..ea55b3259354 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayTest.ts @@ -32,19 +32,19 @@ export interface ArrayTest { * @type {Array} * @memberof ArrayTest */ - arrayOfString?: Array; + arrayOfString?: Array | undefined; /** * * @type {Array>} * @memberof ArrayTest */ - arrayArrayOfInteger?: Array>; + arrayArrayOfInteger?: Array> | undefined; /** * * @type {Array>} * @memberof ArrayTest */ - arrayArrayOfModel?: Array>; + arrayArrayOfModel?: Array> | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Capitalization.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Capitalization.ts index 9c6a2be5afb6..edeb4c96b993 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Capitalization.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Capitalization.ts @@ -24,38 +24,38 @@ export interface Capitalization { * @type {string} * @memberof Capitalization */ - smallCamel?: string; + smallCamel?: string | undefined; /** * * @type {string} * @memberof Capitalization */ - capitalCamel?: string; + capitalCamel?: string | undefined; /** * * @type {string} * @memberof Capitalization */ - smallSnake?: string; + smallSnake?: string | undefined; /** * * @type {string} * @memberof Capitalization */ - capitalSnake?: string; + capitalSnake?: string | undefined; /** * * @type {string} * @memberof Capitalization */ - sCAETHFlowPoints?: string; + sCAETHFlowPoints?: string | undefined; /** * Name of the pet * * @type {string} * @memberof Capitalization */ - aTTNAME?: string; + aTTNAME?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Cat.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Cat.ts index ba0e19539237..76980352f103 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Cat.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Cat.ts @@ -32,7 +32,7 @@ export interface Cat extends Animal { * @type {boolean} * @memberof Cat */ - declawed?: boolean; + declawed?: boolean | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Category.ts index e4047d919b2b..e744e2a40bf1 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Category.ts @@ -24,7 +24,7 @@ export interface Category { * @type {number} * @memberof Category */ - id?: number; + id?: number | undefined; /** * * @type {string} diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ChildWithNullable.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ChildWithNullable.ts index 87e1106a1dd8..a0e61b30b1cf 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ChildWithNullable.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ChildWithNullable.ts @@ -32,7 +32,7 @@ export interface ChildWithNullable extends ParentWithNullable { * @type {string} * @memberof ChildWithNullable */ - otherProperty?: string; + otherProperty?: string | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ClassModel.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ClassModel.ts index cba5bbc353cf..90dedccad895 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ClassModel.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ClassModel.ts @@ -24,7 +24,7 @@ export interface ClassModel { * @type {string} * @memberof ClassModel */ - _class?: string; + _class?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Client.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Client.ts index b9509a4421f9..981a40666a0c 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Client.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Client.ts @@ -24,7 +24,7 @@ export interface Client { * @type {string} * @memberof Client */ - client?: string; + client?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/DeprecatedObject.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/DeprecatedObject.ts index 2b22f28ddfe7..2e77a83a7db8 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/DeprecatedObject.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/DeprecatedObject.ts @@ -24,7 +24,7 @@ export interface DeprecatedObject { * @type {string} * @memberof DeprecatedObject */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Dog.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Dog.ts index 6662a88d3bee..56d484fceb1c 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Dog.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Dog.ts @@ -32,7 +32,7 @@ export interface Dog extends Animal { * @type {string} * @memberof Dog */ - breed?: string; + breed?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumArrays.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumArrays.ts index b30860b8e8bb..757142df5d25 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumArrays.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumArrays.ts @@ -24,13 +24,13 @@ export interface EnumArrays { * @type {string} * @memberof EnumArrays */ - justSymbol?: EnumArraysJustSymbolEnum; + justSymbol?: EnumArraysJustSymbolEnum | undefined; /** * * @type {Array} * @memberof EnumArrays */ - arrayEnum?: Array; + arrayEnum?: Array | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts index 0097912a9561..8a56ff8fd330 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts @@ -53,7 +53,7 @@ export interface EnumTest { * @type {string} * @memberof EnumTest */ - enumString?: EnumTestEnumStringEnum; + enumString?: EnumTestEnumStringEnum | undefined; /** * * @type {string} @@ -65,37 +65,37 @@ export interface EnumTest { * @type {number} * @memberof EnumTest */ - enumInteger?: EnumTestEnumIntegerEnum; + enumInteger?: EnumTestEnumIntegerEnum | undefined; /** * * @type {number} * @memberof EnumTest */ - enumNumber?: EnumTestEnumNumberEnum; + enumNumber?: EnumTestEnumNumberEnum | undefined; /** * * @type {OuterEnum} * @memberof EnumTest */ - outerEnum?: OuterEnum | null; + outerEnum?: OuterEnum | null | undefined; /** * * @type {OuterEnumInteger} * @memberof EnumTest */ - outerEnumInteger?: OuterEnumInteger; + outerEnumInteger?: OuterEnumInteger | undefined; /** * * @type {OuterEnumDefaultValue} * @memberof EnumTest */ - outerEnumDefaultValue?: OuterEnumDefaultValue; + outerEnumDefaultValue?: OuterEnumDefaultValue | undefined; /** * * @type {OuterEnumIntegerDefaultValue} * @memberof EnumTest */ - outerEnumIntegerDefaultValue?: OuterEnumIntegerDefaultValue; + outerEnumIntegerDefaultValue?: OuterEnumIntegerDefaultValue | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FakeBigDecimalMap200Response.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FakeBigDecimalMap200Response.ts index 54458419a514..74603e2ee230 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FakeBigDecimalMap200Response.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FakeBigDecimalMap200Response.ts @@ -24,13 +24,13 @@ export interface FakeBigDecimalMap200Response { * @type {number} * @memberof FakeBigDecimalMap200Response */ - someId?: number; + someId?: number | undefined; /** * * @type {{ [key: string]: number; }} * @memberof FakeBigDecimalMap200Response */ - someMap?: { [key: string]: number; }; + someMap?: { [key: string]: number; } | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FileSchemaTestClass.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FileSchemaTestClass.ts index 87a77f497fbc..391bfe73ddd4 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FileSchemaTestClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FileSchemaTestClass.ts @@ -24,13 +24,13 @@ export interface FileSchemaTestClass { * @type {any} * @memberof FileSchemaTestClass */ - file?: any; + file?: any | undefined; /** * * @type {Array} * @memberof FileSchemaTestClass */ - files?: Array; + files?: Array | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Foo.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Foo.ts index ca208c88e2f8..4c9df53e23db 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Foo.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Foo.ts @@ -24,7 +24,7 @@ export interface Foo { * @type {string} * @memberof Foo */ - bar?: string; + bar?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FooGetDefaultResponse.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FooGetDefaultResponse.ts index 1199e6b3793a..99df47a29dfe 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FooGetDefaultResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FooGetDefaultResponse.ts @@ -32,7 +32,7 @@ export interface FooGetDefaultResponse { * @type {Foo} * @memberof FooGetDefaultResponse */ - string?: Foo; + string?: Foo | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FormatTest.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FormatTest.ts index f695e974f39d..3714f9ce301e 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FormatTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FormatTest.ts @@ -24,19 +24,19 @@ export interface FormatTest { * @type {number} * @memberof FormatTest */ - integer?: number; + integer?: number | undefined; /** * * @type {number} * @memberof FormatTest */ - int32?: number; + int32?: number | undefined; /** * * @type {number} * @memberof FormatTest */ - int64?: number; + int64?: number | undefined; /** * * @type {number} @@ -48,25 +48,25 @@ export interface FormatTest { * @type {number} * @memberof FormatTest */ - _float?: number; + _float?: number | undefined; /** * * @type {number} * @memberof FormatTest */ - _double?: number; + _double?: number | undefined; /** * * @type {string} * @memberof FormatTest */ - decimal?: string; + decimal?: string | undefined; /** * * @type {string} * @memberof FormatTest */ - string?: string; + string?: string | undefined; /** * * @type {string} @@ -78,7 +78,7 @@ export interface FormatTest { * @type {Blob} * @memberof FormatTest */ - binary?: Blob; + binary?: Blob | undefined; /** * * @type {Date} @@ -90,13 +90,13 @@ export interface FormatTest { * @type {Date} * @memberof FormatTest */ - dateTime?: Date; + dateTime?: Date | undefined; /** * * @type {string} * @memberof FormatTest */ - uuid?: string; + uuid?: string | undefined; /** * * @type {string} @@ -108,13 +108,13 @@ export interface FormatTest { * @type {string} * @memberof FormatTest */ - patternWithDigits?: string; + patternWithDigits?: string | undefined; /** * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @type {string} * @memberof FormatTest */ - patternWithDigitsAndDelimiter?: string; + patternWithDigitsAndDelimiter?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HasOnlyReadOnly.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HasOnlyReadOnly.ts index 59019adf1993..f5fc1467d880 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HasOnlyReadOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HasOnlyReadOnly.ts @@ -24,13 +24,13 @@ export interface HasOnlyReadOnly { * @type {string} * @memberof HasOnlyReadOnly */ - readonly bar?: string; + readonly bar?: string | undefined; /** * * @type {string} * @memberof HasOnlyReadOnly */ - readonly foo?: string; + readonly foo?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HealthCheckResult.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HealthCheckResult.ts index e8683a11f338..542630641d78 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HealthCheckResult.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/HealthCheckResult.ts @@ -24,7 +24,7 @@ export interface HealthCheckResult { * @type {string} * @memberof HealthCheckResult */ - nullableMessage?: string | null; + nullableMessage?: string | null | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/List.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/List.ts index 21dd83e2c200..5c31c8618d9d 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/List.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/List.ts @@ -24,7 +24,7 @@ export interface List { * @type {string} * @memberof List */ - _123list?: string; + _123list?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MapTest.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MapTest.ts index 753c30a6cf93..326478c95ae2 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MapTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MapTest.ts @@ -24,25 +24,25 @@ export interface MapTest { * @type {{ [key: string]: { [key: string]: string; }; }} * @memberof MapTest */ - mapMapOfString?: { [key: string]: { [key: string]: string; }; }; + mapMapOfString?: { [key: string]: { [key: string]: string; }; } | undefined; /** * * @type {{ [key: string]: string; }} * @memberof MapTest */ - mapOfEnumString?: { [key: string]: string; }; + mapOfEnumString?: { [key: string]: string; } | undefined; /** * * @type {{ [key: string]: boolean; }} * @memberof MapTest */ - directMap?: { [key: string]: boolean; }; + directMap?: { [key: string]: boolean; } | undefined; /** * * @type {{ [key: string]: boolean; }} * @memberof MapTest */ - indirectMap?: { [key: string]: boolean; }; + indirectMap?: { [key: string]: boolean; } | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MixedPropertiesAndAdditionalPropertiesClass.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MixedPropertiesAndAdditionalPropertiesClass.ts index 9263d67cc6f5..f1d9081381b0 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MixedPropertiesAndAdditionalPropertiesClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MixedPropertiesAndAdditionalPropertiesClass.ts @@ -32,19 +32,19 @@ export interface MixedPropertiesAndAdditionalPropertiesClass { * @type {string} * @memberof MixedPropertiesAndAdditionalPropertiesClass */ - uuid?: string; + uuid?: string | undefined; /** * * @type {Date} * @memberof MixedPropertiesAndAdditionalPropertiesClass */ - dateTime?: Date; + dateTime?: Date | undefined; /** * * @type {{ [key: string]: Animal; }} * @memberof MixedPropertiesAndAdditionalPropertiesClass */ - map?: { [key: string]: Animal; }; + map?: { [key: string]: Animal; } | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Model200Response.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Model200Response.ts index b0a30640133e..650d6275081d 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Model200Response.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Model200Response.ts @@ -24,13 +24,13 @@ export interface Model200Response { * @type {number} * @memberof Model200Response */ - name?: number; + name?: number | undefined; /** * * @type {string} * @memberof Model200Response */ - _class?: string; + _class?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelApiResponse.ts index 355b5f76e428..4da8c03e8359 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelApiResponse.ts @@ -24,19 +24,19 @@ export interface ModelApiResponse { * @type {number} * @memberof ModelApiResponse */ - code?: number; + code?: number | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - type?: string; + type?: string | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - message?: string; + message?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelFile.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelFile.ts index 4b63fcfe25f2..48ed00d687dd 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelFile.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ModelFile.ts @@ -24,7 +24,7 @@ export interface ModelFile { * @type {string} * @memberof ModelFile */ - sourceURI?: string; + sourceURI?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Name.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Name.ts index b999bdccb1d0..95a99ec5f0cc 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Name.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Name.ts @@ -30,19 +30,19 @@ export interface Name { * @type {number} * @memberof Name */ - readonly snakeCase?: number; + readonly snakeCase?: number | undefined; /** * * @type {string} * @memberof Name */ - property?: string; + property?: string | undefined; /** * * @type {number} * @memberof Name */ - readonly _123number?: number; + readonly _123number?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NullableClass.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NullableClass.ts index 11b2fb30dae8..4780f221c549 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NullableClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NullableClass.ts @@ -25,73 +25,73 @@ export interface NullableClass { * @type {number} * @memberof NullableClass */ - integerProp?: number | null; + integerProp?: number | null | undefined; /** * * @type {number} * @memberof NullableClass */ - numberProp?: number | null; + numberProp?: number | null | undefined; /** * * @type {boolean} * @memberof NullableClass */ - booleanProp?: boolean | null; + booleanProp?: boolean | null | undefined; /** * * @type {string} * @memberof NullableClass */ - stringProp?: string | null; + stringProp?: string | null | undefined; /** * * @type {Date} * @memberof NullableClass */ - dateProp?: Date | null; + dateProp?: Date | null | undefined; /** * * @type {Date} * @memberof NullableClass */ - datetimeProp?: Date | null; + datetimeProp?: Date | null | undefined; /** * * @type {Array} * @memberof NullableClass */ - arrayNullableProp?: Array | null; + arrayNullableProp?: Array | null | undefined; /** * * @type {Array} * @memberof NullableClass */ - arrayAndItemsNullableProp?: Array | null; + arrayAndItemsNullableProp?: Array | null | undefined; /** * * @type {Array} * @memberof NullableClass */ - arrayItemsNullable?: Array; + arrayItemsNullable?: Array | undefined; /** * * @type {{ [key: string]: object; }} * @memberof NullableClass */ - objectNullableProp?: { [key: string]: object; } | null; + objectNullableProp?: { [key: string]: object; } | null | undefined; /** * * @type {{ [key: string]: object | null; }} * @memberof NullableClass */ - objectAndItemsNullableProp?: { [key: string]: object | null; } | null; + objectAndItemsNullableProp?: { [key: string]: object | null; } | null | undefined; /** * * @type {{ [key: string]: object | null; }} * @memberof NullableClass */ - objectItemsNullable?: { [key: string]: object | null; }; + objectItemsNullable?: { [key: string]: object | null; } | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NumberOnly.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NumberOnly.ts index 01ffc388797b..83c3a0c8a067 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NumberOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/NumberOnly.ts @@ -24,7 +24,7 @@ export interface NumberOnly { * @type {number} * @memberof NumberOnly */ - justNumber?: number; + justNumber?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ObjectWithDeprecatedFields.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ObjectWithDeprecatedFields.ts index 8dd72d9dfde3..60a44bcb4a2d 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ObjectWithDeprecatedFields.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ObjectWithDeprecatedFields.ts @@ -32,28 +32,28 @@ export interface ObjectWithDeprecatedFields { * @type {string} * @memberof ObjectWithDeprecatedFields */ - uuid?: string; + uuid?: string | undefined; /** * * @type {number} * @memberof ObjectWithDeprecatedFields * @deprecated */ - id?: number; + id?: number | undefined; /** * * @type {DeprecatedObject} * @memberof ObjectWithDeprecatedFields * @deprecated */ - deprecatedRef?: DeprecatedObject; + deprecatedRef?: DeprecatedObject | undefined; /** * * @type {Array} * @memberof ObjectWithDeprecatedFields * @deprecated */ - bars?: Array; + bars?: Array | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Order.ts index 9444d5346722..eebfa1b6ea02 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Order.ts @@ -24,37 +24,37 @@ export interface Order { * @type {number} * @memberof Order */ - id?: number; + id?: number | undefined; /** * * @type {number} * @memberof Order */ - petId?: number; + petId?: number | undefined; /** * * @type {number} * @memberof Order */ - quantity?: number; + quantity?: number | undefined; /** * * @type {Date} * @memberof Order */ - shipDate?: Date; + shipDate?: Date | undefined; /** * Order Status * @type {string} * @memberof Order */ - status?: OrderStatusEnum; + status?: OrderStatusEnum | undefined; /** * * @type {boolean} * @memberof Order */ - complete?: boolean; + complete?: boolean | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterComposite.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterComposite.ts index ffb9d35f81ae..20baf56ba39f 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterComposite.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterComposite.ts @@ -24,19 +24,19 @@ export interface OuterComposite { * @type {number} * @memberof OuterComposite */ - myNumber?: number; + myNumber?: number | undefined; /** * * @type {string} * @memberof OuterComposite */ - myString?: string; + myString?: string | undefined; /** * * @type {boolean} * @memberof OuterComposite */ - myBoolean?: boolean; + myBoolean?: boolean | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ParentWithNullable.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ParentWithNullable.ts index fc3b7e90825e..0d126a3671e8 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ParentWithNullable.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ParentWithNullable.ts @@ -25,13 +25,13 @@ export interface ParentWithNullable { * @type {string} * @memberof ParentWithNullable */ - type?: ParentWithNullableTypeEnum; + type?: ParentWithNullableTypeEnum | undefined; /** * * @type {string} * @memberof ParentWithNullable */ - nullableProperty?: string | null; + nullableProperty?: string | null | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Pet.ts index d45f8d2b64bc..01d04e3e9721 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Pet.ts @@ -39,13 +39,13 @@ export interface Pet { * @type {number} * @memberof Pet */ - id?: number; + id?: number | undefined; /** * * @type {Category} * @memberof Pet */ - category?: Category; + category?: Category | undefined; /** * * @type {string} @@ -63,13 +63,13 @@ export interface Pet { * @type {Array} * @memberof Pet */ - tags?: Array; + tags?: Array | undefined; /** * pet status in the store * @type {string} * @memberof Pet */ - status?: PetStatusEnum; + status?: PetStatusEnum | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ReadOnlyFirst.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ReadOnlyFirst.ts index 38dbd2fbf41a..bb510b69924d 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ReadOnlyFirst.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ReadOnlyFirst.ts @@ -24,13 +24,13 @@ export interface ReadOnlyFirst { * @type {string} * @memberof ReadOnlyFirst */ - readonly bar?: string; + readonly bar?: string | undefined; /** * * @type {string} * @memberof ReadOnlyFirst */ - baz?: string; + baz?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Return.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Return.ts index 557bb0d67195..9a308473c7fd 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Return.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Return.ts @@ -24,7 +24,7 @@ export interface Return { * @type {number} * @memberof Return */ - _return?: number; + _return?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/SpecialModelName.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/SpecialModelName.ts index 5ad3c16ca096..b6889ffdef1e 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/SpecialModelName.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/SpecialModelName.ts @@ -24,7 +24,7 @@ export interface SpecialModelName { * @type {number} * @memberof SpecialModelName */ - $specialPropertyName?: number; + $specialPropertyName?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Tag.ts index c8711cf09f01..3e35c06f32bd 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Tag.ts @@ -24,13 +24,13 @@ export interface Tag { * @type {number} * @memberof Tag */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Tag */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/TestInlineFreeformAdditionalPropertiesRequest.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/TestInlineFreeformAdditionalPropertiesRequest.ts index 025e2205b096..84420231fa62 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/TestInlineFreeformAdditionalPropertiesRequest.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/TestInlineFreeformAdditionalPropertiesRequest.ts @@ -25,7 +25,7 @@ export interface TestInlineFreeformAdditionalPropertiesRequest { * @type {string} * @memberof TestInlineFreeformAdditionalPropertiesRequest */ - someProperty?: string; + someProperty?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/User.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/User.ts index 854f2dae12f5..c8ee52260af0 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/User.ts @@ -24,49 +24,49 @@ export interface User { * @type {number} * @memberof User */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof User */ - username?: string; + username?: string | undefined; /** * * @type {string} * @memberof User */ - firstName?: string; + firstName?: string | undefined; /** * * @type {string} * @memberof User */ - lastName?: string; + lastName?: string | undefined; /** * * @type {string} * @memberof User */ - email?: string; + email?: string | undefined; /** * * @type {string} * @memberof User */ - password?: string; + password?: string | undefined; /** * * @type {string} * @memberof User */ - phone?: string; + phone?: string | undefined; /** * User Status * @type {number} * @memberof User */ - userStatus?: number; + userStatus?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts index 586438f033c4..8d6ac94ae85d 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts @@ -31,7 +31,7 @@ export interface AddPetRequest { export interface DeletePetRequest { petId: number; - apiKey?: string; + apiKey?: string | undefined; } export interface FindPetsByStatusRequest { @@ -52,14 +52,14 @@ export interface UpdatePetRequest { export interface UpdatePetWithFormRequest { petId: number; - name?: string; - status?: string; + name?: string | undefined; + status?: string | undefined; } export interface UploadFileRequest { petId: number; - additionalMetadata?: string; - file?: Blob; + additionalMetadata?: string | undefined; + file?: Blob | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/default/models/Category.ts index 5e56849000d5..c1f351770cb5 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/models/Category.ts @@ -24,13 +24,13 @@ export interface Category { * @type {number} * @memberof Category */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Category */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/default/models/ModelApiResponse.ts index 756cdf624098..94a7d5d597cf 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/models/ModelApiResponse.ts @@ -24,19 +24,19 @@ export interface ModelApiResponse { * @type {number} * @memberof ModelApiResponse */ - code?: number; + code?: number | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - type?: string; + type?: string | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - message?: string; + message?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/default/models/Order.ts index 42f520745eb0..9cc5493922ae 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/models/Order.ts @@ -24,37 +24,37 @@ export interface Order { * @type {number} * @memberof Order */ - id?: number; + id?: number | undefined; /** * * @type {number} * @memberof Order */ - petId?: number; + petId?: number | undefined; /** * * @type {number} * @memberof Order */ - quantity?: number; + quantity?: number | undefined; /** * * @type {Date} * @memberof Order */ - shipDate?: Date; + shipDate?: Date | undefined; /** * Order Status * @type {string} * @memberof Order */ - status?: OrderStatusEnum; + status?: OrderStatusEnum | undefined; /** * * @type {boolean} * @memberof Order */ - complete?: boolean; + complete?: boolean | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/default/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/default/models/Pet.ts index 981d00a85076..df99c7c0f168 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/models/Pet.ts @@ -39,13 +39,13 @@ export interface Pet { * @type {number} * @memberof Pet */ - id?: number; + id?: number | undefined; /** * * @type {Category} * @memberof Pet */ - category?: Category; + category?: Category | undefined; /** * * @type {string} @@ -63,13 +63,13 @@ export interface Pet { * @type {Array} * @memberof Pet */ - tags?: Array; + tags?: Array | undefined; /** * pet status in the store * @type {string} * @memberof Pet */ - status?: PetStatusEnum; + status?: PetStatusEnum | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/default/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/default/models/Tag.ts index f2c835eb0462..15e77d0fd973 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/models/Tag.ts @@ -24,13 +24,13 @@ export interface Tag { * @type {number} * @memberof Tag */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Tag */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default/models/User.ts b/samples/client/petstore/typescript-fetch/builds/default/models/User.ts index 4d57bd098a66..a729c69af6eb 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/models/User.ts @@ -24,49 +24,49 @@ export interface User { * @type {number} * @memberof User */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof User */ - username?: string; + username?: string | undefined; /** * * @type {string} * @memberof User */ - firstName?: string; + firstName?: string | undefined; /** * * @type {string} * @memberof User */ - lastName?: string; + lastName?: string | undefined; /** * * @type {string} * @memberof User */ - email?: string; + email?: string | undefined; /** * * @type {string} * @memberof User */ - password?: string; + password?: string | undefined; /** * * @type {string} * @memberof User */ - phone?: string; + phone?: string | undefined; /** * User Status * @type {number} * @memberof User */ - userStatus?: number; + userStatus?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/enum/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/enum/apis/DefaultApi.ts index d6ef42525e47..00040919287e 100644 --- a/samples/client/petstore/typescript-fetch/builds/enum/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/enum/apis/DefaultApi.ts @@ -32,25 +32,25 @@ import { } from '../models/index'; export interface FakeEnumRequestGetInlineRequest { - stringEnum?: FakeEnumRequestGetInlineStringEnumEnum; - nullableStringEnum?: FakeEnumRequestGetInlineNullableStringEnumEnum; - numberEnum?: FakeEnumRequestGetInlineNumberEnumEnum; - nullableNumberEnum?: FakeEnumRequestGetInlineNullableNumberEnumEnum; + stringEnum?: FakeEnumRequestGetInlineStringEnumEnum | undefined; + nullableStringEnum?: FakeEnumRequestGetInlineNullableStringEnumEnum | undefined; + numberEnum?: FakeEnumRequestGetInlineNumberEnumEnum | undefined; + nullableNumberEnum?: FakeEnumRequestGetInlineNullableNumberEnumEnum | undefined; } export interface FakeEnumRequestGetRefRequest { - stringEnum?: StringEnum; - nullableStringEnum?: StringEnum | null; - numberEnum?: NumberEnum; - nullableNumberEnum?: NumberEnum | null; + stringEnum?: StringEnum | undefined; + nullableStringEnum?: StringEnum | null | undefined; + numberEnum?: NumberEnum | undefined; + nullableNumberEnum?: NumberEnum | null | undefined; } export interface FakeEnumRequestPostInlineRequest { - fakeEnumRequestGetInline200Response?: FakeEnumRequestGetInline200Response; + fakeEnumRequestGetInline200Response?: FakeEnumRequestGetInline200Response | undefined; } export interface FakeEnumRequestPostRefRequest { - enumPatternObject?: EnumPatternObject; + enumPatternObject?: EnumPatternObject | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/enum/models/EnumPatternObject.ts b/samples/client/petstore/typescript-fetch/builds/enum/models/EnumPatternObject.ts index 70b017dc859d..ec7945e1de4f 100644 --- a/samples/client/petstore/typescript-fetch/builds/enum/models/EnumPatternObject.ts +++ b/samples/client/petstore/typescript-fetch/builds/enum/models/EnumPatternObject.ts @@ -39,25 +39,25 @@ export interface EnumPatternObject { * @type {StringEnum} * @memberof EnumPatternObject */ - stringEnum?: StringEnum; + stringEnum?: StringEnum | undefined; /** * * @type {StringEnum} * @memberof EnumPatternObject */ - nullableStringEnum?: StringEnum | null; + nullableStringEnum?: StringEnum | null | undefined; /** * * @type {NumberEnum} * @memberof EnumPatternObject */ - numberEnum?: NumberEnum; + numberEnum?: NumberEnum | undefined; /** * * @type {NumberEnum} * @memberof EnumPatternObject */ - nullableNumberEnum?: NumberEnum | null; + nullableNumberEnum?: NumberEnum | null | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/enum/models/FakeEnumRequestGetInline200Response.ts b/samples/client/petstore/typescript-fetch/builds/enum/models/FakeEnumRequestGetInline200Response.ts index 23aca822ea66..6f7d460f8f74 100644 --- a/samples/client/petstore/typescript-fetch/builds/enum/models/FakeEnumRequestGetInline200Response.ts +++ b/samples/client/petstore/typescript-fetch/builds/enum/models/FakeEnumRequestGetInline200Response.ts @@ -24,25 +24,25 @@ export interface FakeEnumRequestGetInline200Response { * @type {string} * @memberof FakeEnumRequestGetInline200Response */ - stringEnum?: FakeEnumRequestGetInline200ResponseStringEnumEnum; + stringEnum?: FakeEnumRequestGetInline200ResponseStringEnumEnum | undefined; /** * * @type {string} * @memberof FakeEnumRequestGetInline200Response */ - nullableStringEnum?: FakeEnumRequestGetInline200ResponseNullableStringEnumEnum; + nullableStringEnum?: FakeEnumRequestGetInline200ResponseNullableStringEnumEnum | undefined; /** * * @type {number} * @memberof FakeEnumRequestGetInline200Response */ - numberEnum?: FakeEnumRequestGetInline200ResponseNumberEnumEnum; + numberEnum?: FakeEnumRequestGetInline200ResponseNumberEnumEnum | undefined; /** * * @type {number} * @memberof FakeEnumRequestGetInline200Response */ - nullableNumberEnum?: FakeEnumRequestGetInline200ResponseNullableNumberEnumEnum; + nullableNumberEnum?: FakeEnumRequestGetInline200ResponseNullableNumberEnumEnum | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts index 586438f033c4..8d6ac94ae85d 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/PetApi.ts @@ -31,7 +31,7 @@ export interface AddPetRequest { export interface DeletePetRequest { petId: number; - apiKey?: string; + apiKey?: string | undefined; } export interface FindPetsByStatusRequest { @@ -52,14 +52,14 @@ export interface UpdatePetRequest { export interface UpdatePetWithFormRequest { petId: number; - name?: string; - status?: string; + name?: string | undefined; + status?: string | undefined; } export interface UploadFileRequest { petId: number; - additionalMetadata?: string; - file?: Blob; + additionalMetadata?: string | undefined; + file?: Blob | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Category.ts index 5e56849000d5..c1f351770cb5 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Category.ts @@ -24,13 +24,13 @@ export interface Category { * @type {number} * @memberof Category */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Category */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/ModelApiResponse.ts index 756cdf624098..94a7d5d597cf 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/ModelApiResponse.ts @@ -24,19 +24,19 @@ export interface ModelApiResponse { * @type {number} * @memberof ModelApiResponse */ - code?: number; + code?: number | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - type?: string; + type?: string | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - message?: string; + message?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Order.ts index 42f520745eb0..9cc5493922ae 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Order.ts @@ -24,37 +24,37 @@ export interface Order { * @type {number} * @memberof Order */ - id?: number; + id?: number | undefined; /** * * @type {number} * @memberof Order */ - petId?: number; + petId?: number | undefined; /** * * @type {number} * @memberof Order */ - quantity?: number; + quantity?: number | undefined; /** * * @type {Date} * @memberof Order */ - shipDate?: Date; + shipDate?: Date | undefined; /** * Order Status * @type {string} * @memberof Order */ - status?: OrderStatusEnum; + status?: OrderStatusEnum | undefined; /** * * @type {boolean} * @memberof Order */ - complete?: boolean; + complete?: boolean | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts index 981d00a85076..df99c7c0f168 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts @@ -39,13 +39,13 @@ export interface Pet { * @type {number} * @memberof Pet */ - id?: number; + id?: number | undefined; /** * * @type {Category} * @memberof Pet */ - category?: Category; + category?: Category | undefined; /** * * @type {string} @@ -63,13 +63,13 @@ export interface Pet { * @type {Array} * @memberof Pet */ - tags?: Array; + tags?: Array | undefined; /** * pet status in the store * @type {string} * @memberof Pet */ - status?: PetStatusEnum; + status?: PetStatusEnum | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Tag.ts index f2c835eb0462..15e77d0fd973 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Tag.ts @@ -24,13 +24,13 @@ export interface Tag { * @type {number} * @memberof Tag */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Tag */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/User.ts index 4d57bd098a66..a729c69af6eb 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/User.ts @@ -24,49 +24,49 @@ export interface User { * @type {number} * @memberof User */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof User */ - username?: string; + username?: string | undefined; /** * * @type {string} * @memberof User */ - firstName?: string; + firstName?: string | undefined; /** * * @type {string} * @memberof User */ - lastName?: string; + lastName?: string | undefined; /** * * @type {string} * @memberof User */ - email?: string; + email?: string | undefined; /** * * @type {string} * @memberof User */ - password?: string; + password?: string | undefined; /** * * @type {string} * @memberof User */ - phone?: string; + phone?: string | undefined; /** * User Status * @type {number} * @memberof User */ - userStatus?: number; + userStatus?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/PetApi.ts index 1c67884763ce..153a6a19afc8 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/PetApi.ts @@ -31,7 +31,7 @@ export interface AddPetRequest { export interface DeletePetRequest { petId: number; - apiKey?: string; + apiKey?: string | undefined; } export interface FindPetsByStatusRequest { @@ -52,14 +52,14 @@ export interface UpdatePetRequest { export interface UpdatePetWithFormRequest { petId: number; - name?: string; - status?: string; + name?: string | undefined; + status?: string | undefined; } export interface UploadFileRequest { petId: number; - additionalMetadata?: string; - file?: Blob; + additionalMetadata?: string | undefined; + file?: Blob | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Category.ts index 5e56849000d5..c1f351770cb5 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Category.ts @@ -24,13 +24,13 @@ export interface Category { * @type {number} * @memberof Category */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Category */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/ModelApiResponse.ts index 756cdf624098..94a7d5d597cf 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/ModelApiResponse.ts @@ -24,19 +24,19 @@ export interface ModelApiResponse { * @type {number} * @memberof ModelApiResponse */ - code?: number; + code?: number | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - type?: string; + type?: string | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - message?: string; + message?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Order.ts index 42f520745eb0..9cc5493922ae 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Order.ts @@ -24,37 +24,37 @@ export interface Order { * @type {number} * @memberof Order */ - id?: number; + id?: number | undefined; /** * * @type {number} * @memberof Order */ - petId?: number; + petId?: number | undefined; /** * * @type {number} * @memberof Order */ - quantity?: number; + quantity?: number | undefined; /** * * @type {Date} * @memberof Order */ - shipDate?: Date; + shipDate?: Date | undefined; /** * Order Status * @type {string} * @memberof Order */ - status?: OrderStatusEnum; + status?: OrderStatusEnum | undefined; /** * * @type {boolean} * @memberof Order */ - complete?: boolean; + complete?: boolean | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Pet.ts index 981d00a85076..df99c7c0f168 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Pet.ts @@ -39,13 +39,13 @@ export interface Pet { * @type {number} * @memberof Pet */ - id?: number; + id?: number | undefined; /** * * @type {Category} * @memberof Pet */ - category?: Category; + category?: Category | undefined; /** * * @type {string} @@ -63,13 +63,13 @@ export interface Pet { * @type {Array} * @memberof Pet */ - tags?: Array; + tags?: Array | undefined; /** * pet status in the store * @type {string} * @memberof Pet */ - status?: PetStatusEnum; + status?: PetStatusEnum | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Tag.ts index f2c835eb0462..15e77d0fd973 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Tag.ts @@ -24,13 +24,13 @@ export interface Tag { * @type {number} * @memberof Tag */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Tag */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/User.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/User.ts index 4d57bd098a66..a729c69af6eb 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/User.ts @@ -24,49 +24,49 @@ export interface User { * @type {number} * @memberof User */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof User */ - username?: string; + username?: string | undefined; /** * * @type {string} * @memberof User */ - firstName?: string; + firstName?: string | undefined; /** * * @type {string} * @memberof User */ - lastName?: string; + lastName?: string | undefined; /** * * @type {string} * @memberof User */ - email?: string; + email?: string | undefined; /** * * @type {string} * @memberof User */ - password?: string; + password?: string | undefined; /** * * @type {string} * @memberof User */ - phone?: string; + phone?: string | undefined; /** * User Status * @type {number} * @memberof User */ - userStatus?: number; + userStatus?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts index 4503fa90ce10..0eca49152f60 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/PetApi.ts @@ -31,7 +31,7 @@ export interface PetApiAddPetRequest { export interface PetApiDeletePetRequest { petId: number; - apiKey?: string; + apiKey?: string | undefined; } export interface PetApiFindPetsByStatusRequest { @@ -52,14 +52,14 @@ export interface PetApiUpdatePetRequest { export interface PetApiUpdatePetWithFormRequest { petId: number; - name?: string; - status?: string; + name?: string | undefined; + status?: string | undefined; } export interface PetApiUploadFileRequest { petId: number; - additionalMetadata?: string; - file?: Blob; + additionalMetadata?: string | undefined; + file?: Blob | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Category.ts index 5e56849000d5..c1f351770cb5 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Category.ts @@ -24,13 +24,13 @@ export interface Category { * @type {number} * @memberof Category */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Category */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/ModelApiResponse.ts index 756cdf624098..94a7d5d597cf 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/ModelApiResponse.ts @@ -24,19 +24,19 @@ export interface ModelApiResponse { * @type {number} * @memberof ModelApiResponse */ - code?: number; + code?: number | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - type?: string; + type?: string | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - message?: string; + message?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Order.ts index 42f520745eb0..9cc5493922ae 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Order.ts @@ -24,37 +24,37 @@ export interface Order { * @type {number} * @memberof Order */ - id?: number; + id?: number | undefined; /** * * @type {number} * @memberof Order */ - petId?: number; + petId?: number | undefined; /** * * @type {number} * @memberof Order */ - quantity?: number; + quantity?: number | undefined; /** * * @type {Date} * @memberof Order */ - shipDate?: Date; + shipDate?: Date | undefined; /** * Order Status * @type {string} * @memberof Order */ - status?: OrderStatusEnum; + status?: OrderStatusEnum | undefined; /** * * @type {boolean} * @memberof Order */ - complete?: boolean; + complete?: boolean | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts index 981d00a85076..df99c7c0f168 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts @@ -39,13 +39,13 @@ export interface Pet { * @type {number} * @memberof Pet */ - id?: number; + id?: number | undefined; /** * * @type {Category} * @memberof Pet */ - category?: Category; + category?: Category | undefined; /** * * @type {string} @@ -63,13 +63,13 @@ export interface Pet { * @type {Array} * @memberof Pet */ - tags?: Array; + tags?: Array | undefined; /** * pet status in the store * @type {string} * @memberof Pet */ - status?: PetStatusEnum; + status?: PetStatusEnum | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Tag.ts index f2c835eb0462..15e77d0fd973 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Tag.ts @@ -24,13 +24,13 @@ export interface Tag { * @type {number} * @memberof Tag */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Tag */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/User.ts index 4d57bd098a66..a729c69af6eb 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/User.ts @@ -24,49 +24,49 @@ export interface User { * @type {number} * @memberof User */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof User */ - username?: string; + username?: string | undefined; /** * * @type {string} * @memberof User */ - firstName?: string; + firstName?: string | undefined; /** * * @type {string} * @memberof User */ - lastName?: string; + lastName?: string | undefined; /** * * @type {string} * @memberof User */ - email?: string; + email?: string | undefined; /** * * @type {string} * @memberof User */ - password?: string; + password?: string | undefined; /** * * @type {string} * @memberof User */ - phone?: string; + phone?: string | undefined; /** * User Status * @type {number} * @memberof User */ - userStatus?: number; + userStatus?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApi.ts index fff5fd90fedc..d9ccdcf18ef6 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApi.ts @@ -43,7 +43,7 @@ export interface AddPetRequest { export interface DeletePetRequest { petId: number; - apiKey?: string; + apiKey?: string | undefined; } export interface FindPetsByIdsRequest { @@ -81,14 +81,14 @@ export interface UpdatePetRegionsRequest { export interface UpdatePetWithFormRequest { petId: number; - name?: string; - status?: string; + name?: string | undefined; + status?: string | undefined; } export interface UploadFileRequest { petId: number; - additionalMetadata?: string; - file?: Blob; + additionalMetadata?: string | undefined; + file?: Blob | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApiSagas.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApiSagas.ts index 491cbceceeb2..3b05857fee23 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApiSagas.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetApiSagas.ts @@ -116,7 +116,7 @@ export interface PayloadDeletePet extends PayloadDeletePetRequest, BasePayloadAp export interface PayloadDeletePetRequest { petId: string; - apiKey?: string; + apiKey?: string | undefined; } export const deletePetRequest = createSagaAction("deletePetRequest"); @@ -559,8 +559,8 @@ export interface PayloadUpdatePetWithForm extends PayloadUpdatePetWithFormReques export interface PayloadUpdatePetWithFormRequest { petId: string; - name?: string; - status?: string; + name?: string | undefined; + status?: string | undefined; } export const updatePetWithFormRequest = createSagaAction("updatePetWithFormRequest"); @@ -607,8 +607,8 @@ export interface PayloadUploadFile extends PayloadUploadFileRequest, BaseEntityS export interface PayloadUploadFileRequest { petId: string; - additionalMetadata?: string; - file?: Blob; + additionalMetadata?: string | undefined; + file?: Blob | undefined; } export const uploadFileRequest = createSagaAction("uploadFileRequest"); diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApi.ts index 4cb50b198310..7acc4130dc8c 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApi.ts @@ -34,8 +34,8 @@ export interface GetMatchingPartsRequest { _long: boolean; smooth: boolean; _short: boolean; - name?: string; - connectedPart?: string; + name?: string | undefined; + connectedPart?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApiSagas.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApiSagas.ts index cc5e7c765403..77dc49004af8 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApiSagas.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/PetPartApiSagas.ts @@ -96,8 +96,8 @@ export interface PayloadGetMatchingPartsRequest { _long: boolean; smooth: boolean; _short: boolean; - name?: string; - connectedPart?: string; + name?: string | undefined; + connectedPart?: string | undefined; } export const getMatchingPartsRequest = createSagaAction("getMatchingPartsRequest"); diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Category.ts index 5e56849000d5..c1f351770cb5 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Category.ts @@ -24,13 +24,13 @@ export interface Category { * @type {number} * @memberof Category */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Category */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponse.ts index 1fcc22f40073..50f96f47d1f6 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponse.ts @@ -45,7 +45,7 @@ export interface FindPetsByStatusResponse { * @type {Array} * @memberof FindPetsByStatusResponse */ - data?: Array; + data?: Array | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponse.ts index 5519b6ab9e45..4caada7e0493 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponse.ts @@ -45,7 +45,7 @@ export interface FindPetsByUserResponse { * @type {Array} * @memberof FindPetsByUserResponse */ - data?: Array; + data?: Array | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorPermissionsResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorPermissionsResponse.ts index c8c229330602..7cfff6ad475b 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorPermissionsResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorPermissionsResponse.ts @@ -38,7 +38,7 @@ export interface GetBehaviorPermissionsResponse { * @type {{ [key: string]: boolean; }} * @memberof GetBehaviorPermissionsResponse */ - data?: { [key: string]: boolean; }; + data?: { [key: string]: boolean; } | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorTypeResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorTypeResponse.ts index 5c90defb5d56..2c8b52b00e35 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorTypeResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorTypeResponse.ts @@ -45,7 +45,7 @@ export interface GetBehaviorTypeResponse { * @type {BehaviorType} * @memberof GetBehaviorTypeResponse */ - data?: BehaviorType; + data?: BehaviorType | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetMatchingPartsResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetMatchingPartsResponse.ts index 356c421fe83c..48190a70317c 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetMatchingPartsResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetMatchingPartsResponse.ts @@ -45,7 +45,7 @@ export interface GetMatchingPartsResponse { * @type {MatchingParts} * @memberof GetMatchingPartsResponse */ - data?: MatchingParts; + data?: MatchingParts | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetPetPartTypeResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetPetPartTypeResponse.ts index 09b562b02433..ec4b738c7948 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetPetPartTypeResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetPetPartTypeResponse.ts @@ -45,7 +45,7 @@ export interface GetPetPartTypeResponse { * @type {PetPartType} * @memberof GetPetPartTypeResponse */ - data?: PetPartType; + data?: PetPartType | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelApiResponse.ts index 756cdf624098..94a7d5d597cf 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelApiResponse.ts @@ -24,19 +24,19 @@ export interface ModelApiResponse { * @type {number} * @memberof ModelApiResponse */ - code?: number; + code?: number | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - type?: string; + type?: string | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - message?: string; + message?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelError.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelError.ts index 1d06be7f975e..309a1e317c5b 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelError.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelError.ts @@ -38,19 +38,19 @@ export interface ModelError { * @type {ItemId} * @memberof ModelError */ - itemInfo?: ItemId; + itemInfo?: ItemId | undefined; /** * Simple explanation of the error * @type {string} * @memberof ModelError */ - details?: string; + details?: string | undefined; /** * Message of the exception that will help developer to debug this problem if needed * @type {string} * @memberof ModelError */ - exception?: string; + exception?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Order.ts index 42f520745eb0..9cc5493922ae 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Order.ts @@ -24,37 +24,37 @@ export interface Order { * @type {number} * @memberof Order */ - id?: number; + id?: number | undefined; /** * * @type {number} * @memberof Order */ - petId?: number; + petId?: number | undefined; /** * * @type {number} * @memberof Order */ - quantity?: number; + quantity?: number | undefined; /** * * @type {Date} * @memberof Order */ - shipDate?: Date; + shipDate?: Date | undefined; /** * Order Status * @type {string} * @memberof Order */ - status?: OrderStatusEnum; + status?: OrderStatusEnum | undefined; /** * * @type {boolean} * @memberof Order */ - complete?: boolean; + complete?: boolean | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Pet.ts index bdc19f7dd1df..fbba806ebd66 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Pet.ts @@ -59,7 +59,7 @@ export interface Pet { * @type {number} * @memberof Pet */ - friendId?: number; + friendId?: number | undefined; /** * * @type {Array} @@ -101,7 +101,7 @@ export interface Pet { * @type {Category} * @memberof Pet */ - optionalCategory?: Category; + optionalCategory?: Category | undefined; /** * * @type {string} @@ -113,13 +113,13 @@ export interface Pet { * @type {Array} * @memberof Pet */ - _entries?: Array; + _entries?: Array | undefined; /** * * @type {string} * @memberof Pet */ - surname?: string; + surname?: string | undefined; /** * * @type {Array} @@ -137,7 +137,7 @@ export interface Pet { * @type {DeploymentRequestStatus} * @memberof Pet */ - depStatus?: DeploymentRequestStatus; + depStatus?: DeploymentRequestStatus | undefined; /** * * @type {DeploymentRequestStatus} @@ -161,7 +161,7 @@ export interface Pet { * @type {Array} * @memberof Pet */ - optionalTags?: Array; + optionalTags?: Array | undefined; /** * pet status in the store * @type {string} @@ -173,7 +173,7 @@ export interface Pet { * @type {Array>} * @memberof Pet */ - regions?: Array>; + regions?: Array> | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponse.ts index f221a6178768..c4478e8d818e 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponse.ts @@ -38,7 +38,7 @@ export interface PetRegionsResponse { * @type {Array>} * @memberof PetRegionsResponse */ - data?: Array>; + data?: Array> | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ResponseMeta.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ResponseMeta.ts index 97b93cb70d1e..2c0d3efc8a49 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ResponseMeta.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ResponseMeta.ts @@ -38,31 +38,31 @@ export interface ResponseMeta { * @type {string} * @memberof ResponseMeta */ - detail?: string; + detail?: string | undefined; /** * Message of the exception that will help developer to debug this problem if needed * @type {string} * @memberof ResponseMeta */ - exception?: string; + exception?: string | undefined; /** * Type of error * @type {string} * @memberof ResponseMeta */ - type?: string; + type?: string | undefined; /** * * @type {ErrorCode} * @memberof ResponseMeta */ - errorCode?: ErrorCode; + errorCode?: ErrorCode | undefined; /** * An array of all the specific error encountered during the request * @type {Array} * @memberof ResponseMeta */ - errors?: Array; + errors?: Array | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Tag.ts index f2c835eb0462..15e77d0fd973 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Tag.ts @@ -24,13 +24,13 @@ export interface Tag { * @type {number} * @memberof Tag */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Tag */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/User.ts index 262d40196d4a..56498a11bd7e 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/User.ts @@ -30,49 +30,49 @@ export interface User { * @type {string} * @memberof User */ - username?: string; + username?: string | undefined; /** * * @type {string} * @memberof User */ - firstName?: string; + firstName?: string | undefined; /** * * @type {string} * @memberof User */ - lastName?: string; + lastName?: string | undefined; /** * * @type {string} * @memberof User */ - email?: string; + email?: string | undefined; /** * * @type {string} * @memberof User */ - password?: string; + password?: string | undefined; /** * * @type {string} * @memberof User */ - phone?: string; + phone?: string | undefined; /** * User Status * @type {number} * @memberof User */ - userStatus?: number; + userStatus?: number | undefined; /** * * @type {User} * @memberof User */ - subUser?: User; + subUser?: User | undefined; /** * * @type {User} diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeApi.ts index 4c6c8605a6d7..fd09389604aa 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeApi.ts @@ -48,24 +48,24 @@ import { export interface FakeHttpSignatureTestRequest { pet: Pet; - query1?: string; - header1?: string; + query1?: string | undefined; + header1?: string | undefined; } export interface FakeOuterBooleanSerializeRequest { - body?: boolean; + body?: boolean | undefined; } export interface FakeOuterCompositeSerializeRequest { - outerComposite?: OuterComposite; + outerComposite?: OuterComposite | undefined; } export interface FakeOuterNumberSerializeRequest { - body?: number; + body?: number | undefined; } export interface FakeOuterStringSerializeRequest { - body?: string; + body?: string | undefined; } export interface FakePropertyEnumIntegerSerializeRequest { @@ -94,37 +94,37 @@ export interface TestEndpointParametersRequest { _double: number; patternWithoutDelimiter: string; _byte: string; - integer?: number; - int32?: number; - int64?: number; - _float?: number; - string?: string; - binary?: Blob; - date?: Date; - dateTime?: Date; - password?: string; - callback?: string; + integer?: number | undefined; + int32?: number | undefined; + int64?: number | undefined; + _float?: number | undefined; + string?: string | undefined; + binary?: Blob | undefined; + date?: Date | undefined; + dateTime?: Date | undefined; + password?: string | undefined; + callback?: string | undefined; } export interface TestEnumParametersRequest { - enumHeaderStringArray?: Array; - enumHeaderString?: TestEnumParametersEnumHeaderStringEnum; - enumQueryStringArray?: Array; - enumQueryString?: TestEnumParametersEnumQueryStringEnum; - enumQueryInteger?: TestEnumParametersEnumQueryIntegerEnum; - enumQueryDouble?: TestEnumParametersEnumQueryDoubleEnum; - enumQueryModelArray?: Array; - enumFormStringArray?: Array; - enumFormString?: TestEnumParametersEnumFormStringEnum; + enumHeaderStringArray?: Array | undefined; + enumHeaderString?: TestEnumParametersEnumHeaderStringEnum | undefined; + enumQueryStringArray?: Array | undefined; + enumQueryString?: TestEnumParametersEnumQueryStringEnum | undefined; + enumQueryInteger?: TestEnumParametersEnumQueryIntegerEnum | undefined; + enumQueryDouble?: TestEnumParametersEnumQueryDoubleEnum | undefined; + enumQueryModelArray?: Array | undefined; + enumFormStringArray?: Array | undefined; + enumFormString?: TestEnumParametersEnumFormStringEnum | undefined; } export interface TestGroupParametersRequest { requiredStringGroup: number; requiredBooleanGroup: boolean; requiredInt64Group: number; - stringGroup?: number; - booleanGroup?: boolean; - int64Group?: number; + stringGroup?: number | undefined; + booleanGroup?: boolean | undefined; + int64Group?: number | undefined; } export interface TestInlineAdditionalPropertiesRequest { @@ -143,7 +143,7 @@ export interface TestQueryParameterCollectionFormatRequest { url: Array; context: Array; allowEmpty: string; - language?: { [key: string]: string; }; + language?: { [key: string]: string; } | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/PetApi.ts index 2a9812520139..c21193921988 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/PetApi.ts @@ -31,7 +31,7 @@ export interface AddPetRequest { export interface DeletePetRequest { petId: number; - apiKey?: string; + apiKey?: string | undefined; } export interface FindPetsByStatusRequest { @@ -52,20 +52,20 @@ export interface UpdatePetRequest { export interface UpdatePetWithFormRequest { petId: number; - name?: string; - status?: string; + name?: string | undefined; + status?: string | undefined; } export interface UploadFileRequest { petId: number; - additionalMetadata?: string; - file?: Blob; + additionalMetadata?: string | undefined; + file?: Blob | undefined; } export interface UploadFileWithRequiredFileRequest { petId: number; requiredFile: Blob; - additionalMetadata?: string; + additionalMetadata?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AdditionalPropertiesClass.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AdditionalPropertiesClass.ts index d470576ef7d3..1a3c8941bb84 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AdditionalPropertiesClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AdditionalPropertiesClass.ts @@ -24,13 +24,13 @@ export interface AdditionalPropertiesClass { * @type {{ [key: string]: string; }} * @memberof AdditionalPropertiesClass */ - mapProperty?: { [key: string]: string; }; + mapProperty?: { [key: string]: string; } | undefined; /** * * @type {{ [key: string]: { [key: string]: string; }; }} * @memberof AdditionalPropertiesClass */ - mapOfMapProperty?: { [key: string]: { [key: string]: string; }; }; + mapOfMapProperty?: { [key: string]: { [key: string]: string; }; } | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AllOfWithSingleRef.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AllOfWithSingleRef.ts index cbd15b990c6c..273bbc50d156 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AllOfWithSingleRef.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/AllOfWithSingleRef.ts @@ -32,13 +32,13 @@ export interface AllOfWithSingleRef { * @type {string} * @memberof AllOfWithSingleRef */ - username?: string; + username?: string | undefined; /** * * @type {SingleRefType} * @memberof AllOfWithSingleRef */ - singleRefType?: SingleRefType; + singleRefType?: SingleRefType | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Animal.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Animal.ts index 6d1cb238fc7a..902c768ac398 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Animal.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Animal.ts @@ -32,7 +32,7 @@ export interface Animal { * @type {string} * @memberof Animal */ - color?: string; + color?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfArrayOfNumberOnly.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfArrayOfNumberOnly.ts index 3792b9134b4a..d57490818e70 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfArrayOfNumberOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfArrayOfNumberOnly.ts @@ -24,7 +24,7 @@ export interface ArrayOfArrayOfNumberOnly { * @type {Array>} * @memberof ArrayOfArrayOfNumberOnly */ - arrayArrayNumber?: Array>; + arrayArrayNumber?: Array> | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfNumberOnly.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfNumberOnly.ts index 40fbb3c6326d..bc682f876290 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfNumberOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayOfNumberOnly.ts @@ -24,7 +24,7 @@ export interface ArrayOfNumberOnly { * @type {Array} * @memberof ArrayOfNumberOnly */ - arrayNumber?: Array; + arrayNumber?: Array | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayTest.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayTest.ts index 9f3c53288826..ea55b3259354 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ArrayTest.ts @@ -32,19 +32,19 @@ export interface ArrayTest { * @type {Array} * @memberof ArrayTest */ - arrayOfString?: Array; + arrayOfString?: Array | undefined; /** * * @type {Array>} * @memberof ArrayTest */ - arrayArrayOfInteger?: Array>; + arrayArrayOfInteger?: Array> | undefined; /** * * @type {Array>} * @memberof ArrayTest */ - arrayArrayOfModel?: Array>; + arrayArrayOfModel?: Array> | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Capitalization.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Capitalization.ts index 9c6a2be5afb6..edeb4c96b993 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Capitalization.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Capitalization.ts @@ -24,38 +24,38 @@ export interface Capitalization { * @type {string} * @memberof Capitalization */ - smallCamel?: string; + smallCamel?: string | undefined; /** * * @type {string} * @memberof Capitalization */ - capitalCamel?: string; + capitalCamel?: string | undefined; /** * * @type {string} * @memberof Capitalization */ - smallSnake?: string; + smallSnake?: string | undefined; /** * * @type {string} * @memberof Capitalization */ - capitalSnake?: string; + capitalSnake?: string | undefined; /** * * @type {string} * @memberof Capitalization */ - sCAETHFlowPoints?: string; + sCAETHFlowPoints?: string | undefined; /** * Name of the pet * * @type {string} * @memberof Capitalization */ - aTTNAME?: string; + aTTNAME?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Cat.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Cat.ts index ba0e19539237..76980352f103 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Cat.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Cat.ts @@ -32,7 +32,7 @@ export interface Cat extends Animal { * @type {boolean} * @memberof Cat */ - declawed?: boolean; + declawed?: boolean | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Category.ts index e4047d919b2b..e744e2a40bf1 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Category.ts @@ -24,7 +24,7 @@ export interface Category { * @type {number} * @memberof Category */ - id?: number; + id?: number | undefined; /** * * @type {string} diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ClassModel.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ClassModel.ts index cba5bbc353cf..90dedccad895 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ClassModel.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ClassModel.ts @@ -24,7 +24,7 @@ export interface ClassModel { * @type {string} * @memberof ClassModel */ - _class?: string; + _class?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Client.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Client.ts index b9509a4421f9..981a40666a0c 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Client.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Client.ts @@ -24,7 +24,7 @@ export interface Client { * @type {string} * @memberof Client */ - client?: string; + client?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/DeprecatedObject.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/DeprecatedObject.ts index 2b22f28ddfe7..2e77a83a7db8 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/DeprecatedObject.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/DeprecatedObject.ts @@ -24,7 +24,7 @@ export interface DeprecatedObject { * @type {string} * @memberof DeprecatedObject */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Dog.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Dog.ts index 6662a88d3bee..56d484fceb1c 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Dog.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Dog.ts @@ -32,7 +32,7 @@ export interface Dog extends Animal { * @type {string} * @memberof Dog */ - breed?: string; + breed?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumArrays.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumArrays.ts index b30860b8e8bb..757142df5d25 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumArrays.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumArrays.ts @@ -24,13 +24,13 @@ export interface EnumArrays { * @type {string} * @memberof EnumArrays */ - justSymbol?: EnumArraysJustSymbolEnum; + justSymbol?: EnumArraysJustSymbolEnum | undefined; /** * * @type {Array} * @memberof EnumArrays */ - arrayEnum?: Array; + arrayEnum?: Array | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumTest.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumTest.ts index 0097912a9561..8a56ff8fd330 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumTest.ts @@ -53,7 +53,7 @@ export interface EnumTest { * @type {string} * @memberof EnumTest */ - enumString?: EnumTestEnumStringEnum; + enumString?: EnumTestEnumStringEnum | undefined; /** * * @type {string} @@ -65,37 +65,37 @@ export interface EnumTest { * @type {number} * @memberof EnumTest */ - enumInteger?: EnumTestEnumIntegerEnum; + enumInteger?: EnumTestEnumIntegerEnum | undefined; /** * * @type {number} * @memberof EnumTest */ - enumNumber?: EnumTestEnumNumberEnum; + enumNumber?: EnumTestEnumNumberEnum | undefined; /** * * @type {OuterEnum} * @memberof EnumTest */ - outerEnum?: OuterEnum | null; + outerEnum?: OuterEnum | null | undefined; /** * * @type {OuterEnumInteger} * @memberof EnumTest */ - outerEnumInteger?: OuterEnumInteger; + outerEnumInteger?: OuterEnumInteger | undefined; /** * * @type {OuterEnumDefaultValue} * @memberof EnumTest */ - outerEnumDefaultValue?: OuterEnumDefaultValue; + outerEnumDefaultValue?: OuterEnumDefaultValue | undefined; /** * * @type {OuterEnumIntegerDefaultValue} * @memberof EnumTest */ - outerEnumIntegerDefaultValue?: OuterEnumIntegerDefaultValue; + outerEnumIntegerDefaultValue?: OuterEnumIntegerDefaultValue | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FakeBigDecimalMap200Response.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FakeBigDecimalMap200Response.ts index 54458419a514..74603e2ee230 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FakeBigDecimalMap200Response.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FakeBigDecimalMap200Response.ts @@ -24,13 +24,13 @@ export interface FakeBigDecimalMap200Response { * @type {number} * @memberof FakeBigDecimalMap200Response */ - someId?: number; + someId?: number | undefined; /** * * @type {{ [key: string]: number; }} * @memberof FakeBigDecimalMap200Response */ - someMap?: { [key: string]: number; }; + someMap?: { [key: string]: number; } | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FileSchemaTestClass.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FileSchemaTestClass.ts index 87a77f497fbc..391bfe73ddd4 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FileSchemaTestClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FileSchemaTestClass.ts @@ -24,13 +24,13 @@ export interface FileSchemaTestClass { * @type {any} * @memberof FileSchemaTestClass */ - file?: any; + file?: any | undefined; /** * * @type {Array} * @memberof FileSchemaTestClass */ - files?: Array; + files?: Array | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Foo.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Foo.ts index ca208c88e2f8..4c9df53e23db 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Foo.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Foo.ts @@ -24,7 +24,7 @@ export interface Foo { * @type {string} * @memberof Foo */ - bar?: string; + bar?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FooGetDefaultResponse.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FooGetDefaultResponse.ts index 1199e6b3793a..99df47a29dfe 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FooGetDefaultResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FooGetDefaultResponse.ts @@ -32,7 +32,7 @@ export interface FooGetDefaultResponse { * @type {Foo} * @memberof FooGetDefaultResponse */ - string?: Foo; + string?: Foo | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FormatTest.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FormatTest.ts index f695e974f39d..3714f9ce301e 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FormatTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/FormatTest.ts @@ -24,19 +24,19 @@ export interface FormatTest { * @type {number} * @memberof FormatTest */ - integer?: number; + integer?: number | undefined; /** * * @type {number} * @memberof FormatTest */ - int32?: number; + int32?: number | undefined; /** * * @type {number} * @memberof FormatTest */ - int64?: number; + int64?: number | undefined; /** * * @type {number} @@ -48,25 +48,25 @@ export interface FormatTest { * @type {number} * @memberof FormatTest */ - _float?: number; + _float?: number | undefined; /** * * @type {number} * @memberof FormatTest */ - _double?: number; + _double?: number | undefined; /** * * @type {string} * @memberof FormatTest */ - decimal?: string; + decimal?: string | undefined; /** * * @type {string} * @memberof FormatTest */ - string?: string; + string?: string | undefined; /** * * @type {string} @@ -78,7 +78,7 @@ export interface FormatTest { * @type {Blob} * @memberof FormatTest */ - binary?: Blob; + binary?: Blob | undefined; /** * * @type {Date} @@ -90,13 +90,13 @@ export interface FormatTest { * @type {Date} * @memberof FormatTest */ - dateTime?: Date; + dateTime?: Date | undefined; /** * * @type {string} * @memberof FormatTest */ - uuid?: string; + uuid?: string | undefined; /** * * @type {string} @@ -108,13 +108,13 @@ export interface FormatTest { * @type {string} * @memberof FormatTest */ - patternWithDigits?: string; + patternWithDigits?: string | undefined; /** * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @type {string} * @memberof FormatTest */ - patternWithDigitsAndDelimiter?: string; + patternWithDigitsAndDelimiter?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HasOnlyReadOnly.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HasOnlyReadOnly.ts index 59019adf1993..f5fc1467d880 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HasOnlyReadOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HasOnlyReadOnly.ts @@ -24,13 +24,13 @@ export interface HasOnlyReadOnly { * @type {string} * @memberof HasOnlyReadOnly */ - readonly bar?: string; + readonly bar?: string | undefined; /** * * @type {string} * @memberof HasOnlyReadOnly */ - readonly foo?: string; + readonly foo?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HealthCheckResult.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HealthCheckResult.ts index e8683a11f338..542630641d78 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HealthCheckResult.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/HealthCheckResult.ts @@ -24,7 +24,7 @@ export interface HealthCheckResult { * @type {string} * @memberof HealthCheckResult */ - nullableMessage?: string | null; + nullableMessage?: string | null | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/List.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/List.ts index 21dd83e2c200..5c31c8618d9d 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/List.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/List.ts @@ -24,7 +24,7 @@ export interface List { * @type {string} * @memberof List */ - _123list?: string; + _123list?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MapTest.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MapTest.ts index 753c30a6cf93..326478c95ae2 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MapTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MapTest.ts @@ -24,25 +24,25 @@ export interface MapTest { * @type {{ [key: string]: { [key: string]: string; }; }} * @memberof MapTest */ - mapMapOfString?: { [key: string]: { [key: string]: string; }; }; + mapMapOfString?: { [key: string]: { [key: string]: string; }; } | undefined; /** * * @type {{ [key: string]: string; }} * @memberof MapTest */ - mapOfEnumString?: { [key: string]: string; }; + mapOfEnumString?: { [key: string]: string; } | undefined; /** * * @type {{ [key: string]: boolean; }} * @memberof MapTest */ - directMap?: { [key: string]: boolean; }; + directMap?: { [key: string]: boolean; } | undefined; /** * * @type {{ [key: string]: boolean; }} * @memberof MapTest */ - indirectMap?: { [key: string]: boolean; }; + indirectMap?: { [key: string]: boolean; } | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MixedPropertiesAndAdditionalPropertiesClass.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MixedPropertiesAndAdditionalPropertiesClass.ts index 9263d67cc6f5..f1d9081381b0 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MixedPropertiesAndAdditionalPropertiesClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/MixedPropertiesAndAdditionalPropertiesClass.ts @@ -32,19 +32,19 @@ export interface MixedPropertiesAndAdditionalPropertiesClass { * @type {string} * @memberof MixedPropertiesAndAdditionalPropertiesClass */ - uuid?: string; + uuid?: string | undefined; /** * * @type {Date} * @memberof MixedPropertiesAndAdditionalPropertiesClass */ - dateTime?: Date; + dateTime?: Date | undefined; /** * * @type {{ [key: string]: Animal; }} * @memberof MixedPropertiesAndAdditionalPropertiesClass */ - map?: { [key: string]: Animal; }; + map?: { [key: string]: Animal; } | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Model200Response.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Model200Response.ts index b0a30640133e..650d6275081d 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Model200Response.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Model200Response.ts @@ -24,13 +24,13 @@ export interface Model200Response { * @type {number} * @memberof Model200Response */ - name?: number; + name?: number | undefined; /** * * @type {string} * @memberof Model200Response */ - _class?: string; + _class?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelApiResponse.ts index 355b5f76e428..4da8c03e8359 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelApiResponse.ts @@ -24,19 +24,19 @@ export interface ModelApiResponse { * @type {number} * @memberof ModelApiResponse */ - code?: number; + code?: number | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - type?: string; + type?: string | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - message?: string; + message?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelFile.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelFile.ts index 4b63fcfe25f2..48ed00d687dd 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelFile.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ModelFile.ts @@ -24,7 +24,7 @@ export interface ModelFile { * @type {string} * @memberof ModelFile */ - sourceURI?: string; + sourceURI?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Name.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Name.ts index b999bdccb1d0..95a99ec5f0cc 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Name.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Name.ts @@ -30,19 +30,19 @@ export interface Name { * @type {number} * @memberof Name */ - readonly snakeCase?: number; + readonly snakeCase?: number | undefined; /** * * @type {string} * @memberof Name */ - property?: string; + property?: string | undefined; /** * * @type {number} * @memberof Name */ - readonly _123number?: number; + readonly _123number?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NullableClass.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NullableClass.ts index 11b2fb30dae8..4780f221c549 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NullableClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NullableClass.ts @@ -25,73 +25,73 @@ export interface NullableClass { * @type {number} * @memberof NullableClass */ - integerProp?: number | null; + integerProp?: number | null | undefined; /** * * @type {number} * @memberof NullableClass */ - numberProp?: number | null; + numberProp?: number | null | undefined; /** * * @type {boolean} * @memberof NullableClass */ - booleanProp?: boolean | null; + booleanProp?: boolean | null | undefined; /** * * @type {string} * @memberof NullableClass */ - stringProp?: string | null; + stringProp?: string | null | undefined; /** * * @type {Date} * @memberof NullableClass */ - dateProp?: Date | null; + dateProp?: Date | null | undefined; /** * * @type {Date} * @memberof NullableClass */ - datetimeProp?: Date | null; + datetimeProp?: Date | null | undefined; /** * * @type {Array} * @memberof NullableClass */ - arrayNullableProp?: Array | null; + arrayNullableProp?: Array | null | undefined; /** * * @type {Array} * @memberof NullableClass */ - arrayAndItemsNullableProp?: Array | null; + arrayAndItemsNullableProp?: Array | null | undefined; /** * * @type {Array} * @memberof NullableClass */ - arrayItemsNullable?: Array; + arrayItemsNullable?: Array | undefined; /** * * @type {{ [key: string]: object; }} * @memberof NullableClass */ - objectNullableProp?: { [key: string]: object; } | null; + objectNullableProp?: { [key: string]: object; } | null | undefined; /** * * @type {{ [key: string]: object | null; }} * @memberof NullableClass */ - objectAndItemsNullableProp?: { [key: string]: object | null; } | null; + objectAndItemsNullableProp?: { [key: string]: object | null; } | null | undefined; /** * * @type {{ [key: string]: object | null; }} * @memberof NullableClass */ - objectItemsNullable?: { [key: string]: object | null; }; + objectItemsNullable?: { [key: string]: object | null; } | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NumberOnly.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NumberOnly.ts index 01ffc388797b..83c3a0c8a067 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NumberOnly.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/NumberOnly.ts @@ -24,7 +24,7 @@ export interface NumberOnly { * @type {number} * @memberof NumberOnly */ - justNumber?: number; + justNumber?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ObjectWithDeprecatedFields.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ObjectWithDeprecatedFields.ts index 8dd72d9dfde3..60a44bcb4a2d 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ObjectWithDeprecatedFields.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ObjectWithDeprecatedFields.ts @@ -32,28 +32,28 @@ export interface ObjectWithDeprecatedFields { * @type {string} * @memberof ObjectWithDeprecatedFields */ - uuid?: string; + uuid?: string | undefined; /** * * @type {number} * @memberof ObjectWithDeprecatedFields * @deprecated */ - id?: number; + id?: number | undefined; /** * * @type {DeprecatedObject} * @memberof ObjectWithDeprecatedFields * @deprecated */ - deprecatedRef?: DeprecatedObject; + deprecatedRef?: DeprecatedObject | undefined; /** * * @type {Array} * @memberof ObjectWithDeprecatedFields * @deprecated */ - bars?: Array; + bars?: Array | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Order.ts index 9444d5346722..eebfa1b6ea02 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Order.ts @@ -24,37 +24,37 @@ export interface Order { * @type {number} * @memberof Order */ - id?: number; + id?: number | undefined; /** * * @type {number} * @memberof Order */ - petId?: number; + petId?: number | undefined; /** * * @type {number} * @memberof Order */ - quantity?: number; + quantity?: number | undefined; /** * * @type {Date} * @memberof Order */ - shipDate?: Date; + shipDate?: Date | undefined; /** * Order Status * @type {string} * @memberof Order */ - status?: OrderStatusEnum; + status?: OrderStatusEnum | undefined; /** * * @type {boolean} * @memberof Order */ - complete?: boolean; + complete?: boolean | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterComposite.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterComposite.ts index ffb9d35f81ae..20baf56ba39f 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterComposite.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/OuterComposite.ts @@ -24,19 +24,19 @@ export interface OuterComposite { * @type {number} * @memberof OuterComposite */ - myNumber?: number; + myNumber?: number | undefined; /** * * @type {string} * @memberof OuterComposite */ - myString?: string; + myString?: string | undefined; /** * * @type {boolean} * @memberof OuterComposite */ - myBoolean?: boolean; + myBoolean?: boolean | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Pet.ts index d45f8d2b64bc..01d04e3e9721 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Pet.ts @@ -39,13 +39,13 @@ export interface Pet { * @type {number} * @memberof Pet */ - id?: number; + id?: number | undefined; /** * * @type {Category} * @memberof Pet */ - category?: Category; + category?: Category | undefined; /** * * @type {string} @@ -63,13 +63,13 @@ export interface Pet { * @type {Array} * @memberof Pet */ - tags?: Array; + tags?: Array | undefined; /** * pet status in the store * @type {string} * @memberof Pet */ - status?: PetStatusEnum; + status?: PetStatusEnum | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ReadOnlyFirst.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ReadOnlyFirst.ts index 38dbd2fbf41a..bb510b69924d 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ReadOnlyFirst.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/ReadOnlyFirst.ts @@ -24,13 +24,13 @@ export interface ReadOnlyFirst { * @type {string} * @memberof ReadOnlyFirst */ - readonly bar?: string; + readonly bar?: string | undefined; /** * * @type {string} * @memberof ReadOnlyFirst */ - baz?: string; + baz?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Return.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Return.ts index 557bb0d67195..9a308473c7fd 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Return.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Return.ts @@ -24,7 +24,7 @@ export interface Return { * @type {number} * @memberof Return */ - _return?: number; + _return?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/SpecialModelName.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/SpecialModelName.ts index 5ad3c16ca096..b6889ffdef1e 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/SpecialModelName.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/SpecialModelName.ts @@ -24,7 +24,7 @@ export interface SpecialModelName { * @type {number} * @memberof SpecialModelName */ - $specialPropertyName?: number; + $specialPropertyName?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Tag.ts index c8711cf09f01..3e35c06f32bd 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/Tag.ts @@ -24,13 +24,13 @@ export interface Tag { * @type {number} * @memberof Tag */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Tag */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/User.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/User.ts index 854f2dae12f5..c8ee52260af0 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/User.ts @@ -24,49 +24,49 @@ export interface User { * @type {number} * @memberof User */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof User */ - username?: string; + username?: string | undefined; /** * * @type {string} * @memberof User */ - firstName?: string; + firstName?: string | undefined; /** * * @type {string} * @memberof User */ - lastName?: string; + lastName?: string | undefined; /** * * @type {string} * @memberof User */ - email?: string; + email?: string | undefined; /** * * @type {string} * @memberof User */ - password?: string; + password?: string | undefined; /** * * @type {string} * @memberof User */ - phone?: string; + phone?: string | undefined; /** * User Status * @type {number} * @memberof User */ - userStatus?: number; + userStatus?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts index b66ef90918b5..b627e4e01cc3 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/PetApi.ts @@ -31,7 +31,7 @@ export interface AddPetRequest { export interface DeletePetRequest { petId: number; - apiKey?: string; + apiKey?: string | undefined; } export interface FindPetsByStatusRequest { @@ -52,14 +52,14 @@ export interface UpdatePetRequest { export interface UpdatePetWithFormRequest { petId: number; - name?: string; - status?: string; + name?: string | undefined; + status?: string | undefined; } export interface UploadFileRequest { petId: number; - additionalMetadata?: string; - file?: Blob; + additionalMetadata?: string | undefined; + file?: Blob | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Category.ts index 32df5bbb27c5..d3b207e097dd 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Category.ts @@ -24,13 +24,13 @@ export interface Category { * @type {number} * @memberof Category */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Category */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/ModelApiResponse.ts index 7059aa7225ef..ea9273d546e8 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/ModelApiResponse.ts @@ -24,19 +24,19 @@ export interface ModelApiResponse { * @type {number} * @memberof ModelApiResponse */ - code?: number; + code?: number | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - type?: string; + type?: string | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - message?: string; + message?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Order.ts index 097b74d85c79..314a1721efdd 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Order.ts @@ -25,37 +25,37 @@ export interface Order { * @type {number} * @memberof Order */ - id?: number; + id?: number | undefined; /** * * @type {number} * @memberof Order */ - petId?: number; + petId?: number | undefined; /** * * @type {number} * @memberof Order */ - quantity?: number; + quantity?: number | undefined; /** * * @type {Date} * @memberof Order */ - shipDate?: Date; + shipDate?: Date | undefined; /** * Order Status * @type {string} * @memberof Order */ - status?: OrderStatusEnum; + status?: OrderStatusEnum | undefined; /** * * @type {boolean} * @memberof Order */ - complete?: boolean; + complete?: boolean | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Pet.ts index 0af0ffab39d1..286d3a89aa2c 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Pet.ts @@ -39,13 +39,13 @@ export interface Pet { * @type {number} * @memberof Pet */ - id?: number; + id?: number | undefined; /** * * @type {Category} * @memberof Pet */ - category?: Category; + category?: Category | undefined; /** * * @type {string} @@ -63,14 +63,14 @@ export interface Pet { * @type {Array} * @memberof Pet */ - tags?: Array; + tags?: Array | undefined; /** * pet status in the store * @type {string} * @memberof Pet * @deprecated */ - status?: PetStatusEnum; + status?: PetStatusEnum | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Tag.ts index a942cc99f5d5..5741fd563957 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/Tag.ts @@ -24,13 +24,13 @@ export interface Tag { * @type {number} * @memberof Tag */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Tag */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/User.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/User.ts index 39a70be42fae..5f90833a8185 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/models/User.ts @@ -24,49 +24,49 @@ export interface User { * @type {number} * @memberof User */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof User */ - username?: string; + username?: string | undefined; /** * * @type {string} * @memberof User */ - firstName?: string; + firstName?: string | undefined; /** * * @type {string} * @memberof User */ - lastName?: string; + lastName?: string | undefined; /** * * @type {string} * @memberof User */ - email?: string; + email?: string | undefined; /** * * @type {string} * @memberof User */ - password?: string; + password?: string | undefined; /** * * @type {string} * @memberof User */ - phone?: string; + phone?: string | undefined; /** * User Status * @type {number} * @memberof User */ - userStatus?: number; + userStatus?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts index 316ff58281ed..d1cbe11bcc64 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts @@ -31,7 +31,7 @@ export interface AddPetRequest { export interface DeletePetRequest { petId: number; - apiKey?: string; + apiKey?: string | undefined; } export interface FindPetsByStatusRequest { @@ -52,14 +52,14 @@ export interface UpdatePetRequest { export interface UpdatePetWithFormRequest { petId: number; - name?: string; - status?: string; + name?: string | undefined; + status?: string | undefined; } export interface UploadFileRequest { petId: number; - additionalMetadata?: string; - file?: Blob; + additionalMetadata?: string | undefined; + file?: Blob | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Category.ts index 5e56849000d5..c1f351770cb5 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Category.ts @@ -24,13 +24,13 @@ export interface Category { * @type {number} * @memberof Category */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Category */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/ModelApiResponse.ts index 756cdf624098..94a7d5d597cf 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/ModelApiResponse.ts @@ -24,19 +24,19 @@ export interface ModelApiResponse { * @type {number} * @memberof ModelApiResponse */ - code?: number; + code?: number | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - type?: string; + type?: string | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - message?: string; + message?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Order.ts index 42f520745eb0..9cc5493922ae 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Order.ts @@ -24,37 +24,37 @@ export interface Order { * @type {number} * @memberof Order */ - id?: number; + id?: number | undefined; /** * * @type {number} * @memberof Order */ - petId?: number; + petId?: number | undefined; /** * * @type {number} * @memberof Order */ - quantity?: number; + quantity?: number | undefined; /** * * @type {Date} * @memberof Order */ - shipDate?: Date; + shipDate?: Date | undefined; /** * Order Status * @type {string} * @memberof Order */ - status?: OrderStatusEnum; + status?: OrderStatusEnum | undefined; /** * * @type {boolean} * @memberof Order */ - complete?: boolean; + complete?: boolean | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Pet.ts index 981d00a85076..df99c7c0f168 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Pet.ts @@ -39,13 +39,13 @@ export interface Pet { * @type {number} * @memberof Pet */ - id?: number; + id?: number | undefined; /** * * @type {Category} * @memberof Pet */ - category?: Category; + category?: Category | undefined; /** * * @type {string} @@ -63,13 +63,13 @@ export interface Pet { * @type {Array} * @memberof Pet */ - tags?: Array; + tags?: Array | undefined; /** * pet status in the store * @type {string} * @memberof Pet */ - status?: PetStatusEnum; + status?: PetStatusEnum | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Tag.ts index f2c835eb0462..15e77d0fd973 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Tag.ts @@ -24,13 +24,13 @@ export interface Tag { * @type {number} * @memberof Tag */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Tag */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/User.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/User.ts index 4d57bd098a66..a729c69af6eb 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/User.ts @@ -24,49 +24,49 @@ export interface User { * @type {number} * @memberof User */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof User */ - username?: string; + username?: string | undefined; /** * * @type {string} * @memberof User */ - firstName?: string; + firstName?: string | undefined; /** * * @type {string} * @memberof User */ - lastName?: string; + lastName?: string | undefined; /** * * @type {string} * @memberof User */ - email?: string; + email?: string | undefined; /** * * @type {string} * @memberof User */ - password?: string; + password?: string | undefined; /** * * @type {string} * @memberof User */ - phone?: string; + phone?: string | undefined; /** * User Status * @type {number} * @memberof User */ - userStatus?: number; + userStatus?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts index 586438f033c4..8d6ac94ae85d 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/PetApi.ts @@ -31,7 +31,7 @@ export interface AddPetRequest { export interface DeletePetRequest { petId: number; - apiKey?: string; + apiKey?: string | undefined; } export interface FindPetsByStatusRequest { @@ -52,14 +52,14 @@ export interface UpdatePetRequest { export interface UpdatePetWithFormRequest { petId: number; - name?: string; - status?: string; + name?: string | undefined; + status?: string | undefined; } export interface UploadFileRequest { petId: number; - additionalMetadata?: string; - file?: Blob; + additionalMetadata?: string | undefined; + file?: Blob | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Category.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Category.ts index 5e56849000d5..c1f351770cb5 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Category.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Category.ts @@ -24,13 +24,13 @@ export interface Category { * @type {number} * @memberof Category */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Category */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/ModelApiResponse.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/ModelApiResponse.ts index 756cdf624098..94a7d5d597cf 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/ModelApiResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/ModelApiResponse.ts @@ -24,19 +24,19 @@ export interface ModelApiResponse { * @type {number} * @memberof ModelApiResponse */ - code?: number; + code?: number | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - type?: string; + type?: string | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - message?: string; + message?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Order.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Order.ts index 42f520745eb0..9cc5493922ae 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Order.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Order.ts @@ -24,37 +24,37 @@ export interface Order { * @type {number} * @memberof Order */ - id?: number; + id?: number | undefined; /** * * @type {number} * @memberof Order */ - petId?: number; + petId?: number | undefined; /** * * @type {number} * @memberof Order */ - quantity?: number; + quantity?: number | undefined; /** * * @type {Date} * @memberof Order */ - shipDate?: Date; + shipDate?: Date | undefined; /** * Order Status * @type {string} * @memberof Order */ - status?: OrderStatusEnum; + status?: OrderStatusEnum | undefined; /** * * @type {boolean} * @memberof Order */ - complete?: boolean; + complete?: boolean | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts index 981d00a85076..df99c7c0f168 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts @@ -39,13 +39,13 @@ export interface Pet { * @type {number} * @memberof Pet */ - id?: number; + id?: number | undefined; /** * * @type {Category} * @memberof Pet */ - category?: Category; + category?: Category | undefined; /** * * @type {string} @@ -63,13 +63,13 @@ export interface Pet { * @type {Array} * @memberof Pet */ - tags?: Array; + tags?: Array | undefined; /** * pet status in the store * @type {string} * @memberof Pet */ - status?: PetStatusEnum; + status?: PetStatusEnum | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Tag.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Tag.ts index f2c835eb0462..15e77d0fd973 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Tag.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Tag.ts @@ -24,13 +24,13 @@ export interface Tag { * @type {number} * @memberof Tag */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Tag */ - name?: string; + name?: string | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/User.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/User.ts index 4d57bd098a66..a729c69af6eb 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/User.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/User.ts @@ -24,49 +24,49 @@ export interface User { * @type {number} * @memberof User */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof User */ - username?: string; + username?: string | undefined; /** * * @type {string} * @memberof User */ - firstName?: string; + firstName?: string | undefined; /** * * @type {string} * @memberof User */ - lastName?: string; + lastName?: string | undefined; /** * * @type {string} * @memberof User */ - email?: string; + email?: string | undefined; /** * * @type {string} * @memberof User */ - password?: string; + password?: string | undefined; /** * * @type {string} * @memberof User */ - phone?: string; + phone?: string | undefined; /** * User Status * @type {number} * @memberof User */ - userStatus?: number; + userStatus?: number | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/with-string-enums/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/with-string-enums/apis/DefaultApi.ts index 730f0a062006..c1f167d9e0a4 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-string-enums/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-string-enums/apis/DefaultApi.ts @@ -32,25 +32,25 @@ import { } from '../models/index'; export interface FakeEnumRequestGetInlineRequest { - stringEnum?: FakeEnumRequestGetInlineStringEnumEnum; - nullableStringEnum?: FakeEnumRequestGetInlineNullableStringEnumEnum; - numberEnum?: FakeEnumRequestGetInlineNumberEnumEnum; - nullableNumberEnum?: FakeEnumRequestGetInlineNullableNumberEnumEnum; + stringEnum?: FakeEnumRequestGetInlineStringEnumEnum | undefined; + nullableStringEnum?: FakeEnumRequestGetInlineNullableStringEnumEnum | undefined; + numberEnum?: FakeEnumRequestGetInlineNumberEnumEnum | undefined; + nullableNumberEnum?: FakeEnumRequestGetInlineNullableNumberEnumEnum | undefined; } export interface FakeEnumRequestGetRefRequest { - stringEnum?: StringEnum; - nullableStringEnum?: StringEnum | null; - numberEnum?: NumberEnum; - nullableNumberEnum?: NumberEnum | null; + stringEnum?: StringEnum | undefined; + nullableStringEnum?: StringEnum | null | undefined; + numberEnum?: NumberEnum | undefined; + nullableNumberEnum?: NumberEnum | null | undefined; } export interface FakeEnumRequestPostInlineRequest { - fakeEnumRequestGetInline200Response?: FakeEnumRequestGetInline200Response; + fakeEnumRequestGetInline200Response?: FakeEnumRequestGetInline200Response | undefined; } export interface FakeEnumRequestPostRefRequest { - enumPatternObject?: EnumPatternObject; + enumPatternObject?: EnumPatternObject | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/EnumPatternObject.ts b/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/EnumPatternObject.ts index 70b017dc859d..ec7945e1de4f 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/EnumPatternObject.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/EnumPatternObject.ts @@ -39,25 +39,25 @@ export interface EnumPatternObject { * @type {StringEnum} * @memberof EnumPatternObject */ - stringEnum?: StringEnum; + stringEnum?: StringEnum | undefined; /** * * @type {StringEnum} * @memberof EnumPatternObject */ - nullableStringEnum?: StringEnum | null; + nullableStringEnum?: StringEnum | null | undefined; /** * * @type {NumberEnum} * @memberof EnumPatternObject */ - numberEnum?: NumberEnum; + numberEnum?: NumberEnum | undefined; /** * * @type {NumberEnum} * @memberof EnumPatternObject */ - nullableNumberEnum?: NumberEnum | null; + nullableNumberEnum?: NumberEnum | null | undefined; } diff --git a/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/FakeEnumRequestGetInline200Response.ts b/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/FakeEnumRequestGetInline200Response.ts index aef815c9e004..71f1055b6d54 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/FakeEnumRequestGetInline200Response.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-string-enums/models/FakeEnumRequestGetInline200Response.ts @@ -24,25 +24,25 @@ export interface FakeEnumRequestGetInline200Response { * @type {string} * @memberof FakeEnumRequestGetInline200Response */ - stringEnum?: FakeEnumRequestGetInline200ResponseStringEnumEnum; + stringEnum?: FakeEnumRequestGetInline200ResponseStringEnumEnum | undefined; /** * * @type {string} * @memberof FakeEnumRequestGetInline200Response */ - nullableStringEnum?: FakeEnumRequestGetInline200ResponseNullableStringEnumEnum; + nullableStringEnum?: FakeEnumRequestGetInline200ResponseNullableStringEnumEnum | undefined; /** * * @type {number} * @memberof FakeEnumRequestGetInline200Response */ - numberEnum?: FakeEnumRequestGetInline200ResponseNumberEnumEnum; + numberEnum?: FakeEnumRequestGetInline200ResponseNumberEnumEnum | undefined; /** * * @type {number} * @memberof FakeEnumRequestGetInline200Response */ - nullableNumberEnum?: FakeEnumRequestGetInline200ResponseNullableNumberEnumEnum; + nullableNumberEnum?: FakeEnumRequestGetInline200ResponseNullableNumberEnumEnum | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/PetApi.ts b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/PetApi.ts index accc88ffc8a7..89e882f55e87 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/PetApi.ts @@ -25,7 +25,7 @@ export interface AddPetRequest { export interface DeletePetRequest { petId: number; - apiKey?: string; + apiKey?: string | undefined; } export interface FindPetsByStatusRequest { @@ -46,14 +46,14 @@ export interface UpdatePetRequest { export interface UpdatePetWithFormRequest { petId: number; - name?: string; - status?: string; + name?: string | undefined; + status?: string | undefined; } export interface UploadFileRequest { petId: number; - additionalMetadata?: string; - file?: Blob; + additionalMetadata?: string | undefined; + file?: Blob | undefined; } /** diff --git a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/models/index.ts b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/models/index.ts index ab1529f795f4..1299dac453ba 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/models/index.ts +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/models/index.ts @@ -11,13 +11,13 @@ export interface Category { * @type {number} * @memberof Category */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Category */ - name?: string; + name?: string | undefined; } /** * Describes the result of uploading an image resource @@ -30,19 +30,19 @@ export interface ModelApiResponse { * @type {number} * @memberof ModelApiResponse */ - code?: number; + code?: number | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - type?: string; + type?: string | undefined; /** * * @type {string} * @memberof ModelApiResponse */ - message?: string; + message?: string | undefined; } /** * An order for a pets from the pet store @@ -55,37 +55,37 @@ export interface Order { * @type {number} * @memberof Order */ - id?: number; + id?: number | undefined; /** * * @type {number} * @memberof Order */ - petId?: number; + petId?: number | undefined; /** * * @type {number} * @memberof Order */ - quantity?: number; + quantity?: number | undefined; /** * * @type {string} * @memberof Order */ - shipDate?: string; + shipDate?: string | undefined; /** * Order Status * @type {string} * @memberof Order */ - status?: OrderStatusEnum; + status?: OrderStatusEnum | undefined; /** * * @type {boolean} * @memberof Order */ - complete?: boolean; + complete?: boolean | undefined; } @@ -110,13 +110,13 @@ export interface Pet { * @type {number} * @memberof Pet */ - id?: number; + id?: number | undefined; /** * * @type {Category} * @memberof Pet */ - category?: Category; + category?: Category | undefined; /** * * @type {string} @@ -134,13 +134,13 @@ export interface Pet { * @type {Array} * @memberof Pet */ - tags?: Array; + tags?: Array | undefined; /** * pet status in the store * @type {string} * @memberof Pet */ - status?: PetStatusEnum; + status?: PetStatusEnum | undefined; } @@ -165,13 +165,13 @@ export interface Tag { * @type {number} * @memberof Tag */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof Tag */ - name?: string; + name?: string | undefined; } /** * A User who is purchasing from the pet store @@ -184,47 +184,47 @@ export interface User { * @type {number} * @memberof User */ - id?: number; + id?: number | undefined; /** * * @type {string} * @memberof User */ - username?: string; + username?: string | undefined; /** * * @type {string} * @memberof User */ - firstName?: string; + firstName?: string | undefined; /** * * @type {string} * @memberof User */ - lastName?: string; + lastName?: string | undefined; /** * * @type {string} * @memberof User */ - email?: string; + email?: string | undefined; /** * * @type {string} * @memberof User */ - password?: string; + password?: string | undefined; /** * * @type {string} * @memberof User */ - phone?: string; + phone?: string | undefined; /** * User Status * @type {number} * @memberof User */ - userStatus?: number; + userStatus?: number | undefined; } diff --git a/samples/client/petstore/typescript-fetch/tests/default/test/PetApi.ts b/samples/client/petstore/typescript-fetch/tests/default/test/PetApi.ts index c452573699d5..e96ee802a7cd 100644 --- a/samples/client/petstore/typescript-fetch/tests/default/test/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/tests/default/test/PetApi.ts @@ -21,16 +21,16 @@ describe('PetApi', () => { }); it('should get Pet by ID', () => { - return api.getPetById({ petId: fixture.id }).then((result: Pet) => { + return api.getPetById({ petId: fixture.id! }).then((result: Pet) => { return expect(result).to.deep.equal(fixture); }); }); it('should update Pet by ID', () => { - return api.getPetById({ petId: fixture.id }).then((result: Pet) => { + return api.getPetById({ petId: fixture.id! }).then((result: Pet) => { result.name = 'newname'; return api.updatePet({ body: result }).then(() => { - return api.getPetById({ petId: fixture.id }).then((result: Pet) => { + return api.getPetById({ petId: fixture.id! }).then((result: Pet) => { return expect(result.name).to.deep.equal('newname'); }); }); @@ -38,11 +38,11 @@ describe('PetApi', () => { }); it('should delete Pet', () => { - return api.deletePet({ petId: fixture.id }); + return api.deletePet({ petId: fixture.id! }); }); it('should not contain deleted Pet', () => { - return api.getPetById({ petId: fixture.id }).then((result: Pet) => { + return api.getPetById({ petId: fixture.id! }).then((result: Pet) => { return expect(result).to.not.exist; }, (err: any) => { return expect(err).to.exist; From 8c49447e5632db1d0a3824afde80338aaaa7ad8e Mon Sep 17 00:00:00 2001 From: Adam Clark Date: Fri, 17 Oct 2025 15:07:43 -0700 Subject: [PATCH 02/10] fix: Update axios version, regenerate samples --- .../TypeScriptAxiosClientCodegen.java | 2 +- .../typescript-axios/package.mustache | 2 +- .../typescript-axios/tsconfig.mustache | 2 + .../typescript-fetch/tsconfig.mustache | 2 + .../typescript-axios/build/package.json | 4 +- .../typescript-axios/build/tsconfig.json | 2 + .../models/TestBaseDto.ts | 9 +- .../builds/es6-target/package.json | 4 +- .../builds/es6-target/tsconfig.json | 2 + .../with-complex-headers/package-lock.json | 233 +++- .../builds/with-complex-headers/package.json | 4 +- .../builds/with-complex-headers/tsconfig.json | 2 + .../package.json | 4 +- .../tsconfig.json | 2 + .../builds/with-npm-version/package-lock.json | 2 +- .../builds/with-npm-version/package.json | 4 +- .../builds/with-npm-version/tsconfig.json | 2 + .../tests/default/package-lock.json | 4 +- .../with-complex-headers/package-lock.json | 1034 +++++++++++++++-- .../builds/es6-target/tsconfig.json | 2 + .../prefix-parameter-interfaces/tsconfig.json | 2 + .../builds/sagas-and-records/tsconfig.json | 2 + .../builds/with-npm-version/tsconfig.json | 2 + .../without-runtime-checks/tsconfig.json | 2 + 24 files changed, 1187 insertions(+), 143 deletions(-) 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 53580ea51627..cf306fdff23d 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"; @Getter @Setter protected String npmRepository = null; 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 f05b33ed1eed..4136d4405b60 100644 --- a/modules/openapi-generator/src/main/resources/typescript-axios/package.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-axios/package.mustache @@ -29,7 +29,7 @@ "axios": "{{axiosVersion}}" }, "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/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/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/others/typescript-fetch/infinite-recursion-issue/models/TestBaseDto.ts b/samples/client/others/typescript-fetch/infinite-recursion-issue/models/TestBaseDto.ts index 9f41ab9b6572..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 @@ -21,7 +21,6 @@ import { TestObjectTypeToJSONTyped, } from './TestObjectType'; -import { type TestBaseDto, TestBaseDtoFromJSONTyped, TestBaseDtoToJSON, TestBaseDtoToJSONTyped } from './TestBaseDto'; import { type ExtendDto, ExtendDtoFromJSONTyped, ExtendDtoToJSON, ExtendDtoToJSONTyped } from './ExtendDto'; /** * @@ -61,12 +60,12 @@ export function TestBaseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean return json; } if (!ignoreDiscriminator) { - if (json['testObjectType'] === 'TEST1') { - return TestBaseDtoFromJSONTyped(json, ignoreDiscriminator); - } if (json['testObjectType'] === 'TEST2') { return ExtendDtoFromJSONTyped(json, ignoreDiscriminator); } + if (json['testObjectType'] === 'TEST1') { + return TestBaseDtoFromJSONTyped(json, true); + } } return { @@ -87,8 +86,6 @@ export function TestBaseDtoToJSONTyped(value?: TestBaseDto | null, ignoreDiscrim if (!ignoreDiscriminator) { switch (value['testObjectType']) { - case 'TEST1': - return TestBaseDtoToJSONTyped(value as TestBaseDto, ignoreDiscriminator); case 'TEST2': return ExtendDtoToJSONTyped(value as ExtendDto, ignoreDiscriminator); default: 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/with-complex-headers/package-lock.json b/samples/client/petstore/typescript-axios/builds/with-complex-headers/package-lock.json index 349da389c513..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 @@ -9,38 +9,55 @@ "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==", - "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" }, @@ -52,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" }, @@ -76,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" } @@ -100,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" }, @@ -110,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-npm-version-and-separate-models-and-api/package.json b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/package.json index aa938d8bf659..f5366b31b0c3 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/package.json +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/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-npm-version-and-separate-models-and-api/tsconfig.json b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/tsconfig.json index d953a374d812..e974128f8ca5 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/tsconfig.json +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/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-npm-version/package-lock.json b/samples/client/petstore/typescript-axios/builds/with-npm-version/package-lock.json index 68e58c4757a1..40c15631107e 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/package-lock.json +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/package-lock.json @@ -12,7 +12,7 @@ "axios": "^1.6.1" }, "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/petstore/typescript-axios/builds/with-npm-version/package.json b/samples/client/petstore/typescript-axios/builds/with-npm-version/package.json index aa938d8bf659..f5366b31b0c3 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/package.json +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/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-npm-version/tsconfig.json b/samples/client/petstore/typescript-axios/builds/with-npm-version/tsconfig.json index d953a374d812..e974128f8ca5 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/tsconfig.json +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/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/tests/default/package-lock.json b/samples/client/petstore/typescript-axios/tests/default/package-lock.json index 2aa46f980bad..6083ea354d6e 100644 --- a/samples/client/petstore/typescript-axios/tests/default/package-lock.json +++ b/samples/client/petstore/typescript-axios/tests/default/package-lock.json @@ -32,7 +32,7 @@ "axios": "^1.6.1" }, "devDependencies": { - "@types/node": "12.11.5 - 12.20.42", + "@types/node": "12.11.5 - 14.14.31", "typescript": "^4.0 || ^5.0" } }, @@ -2859,7 +2859,7 @@ "@openapitools/typescript-axios-petstore": { "version": "file:../../builds/with-npm-version", "requires": { - "@types/node": "12.11.5 - 12.20.42", + "@types/node": "12.11.5 - 14.14.31", "axios": "^1.6.1", "typescript": "^4.0 || ^5.0" }, diff --git a/samples/client/petstore/typescript-axios/tests/with-complex-headers/package-lock.json b/samples/client/petstore/typescript-axios/tests/with-complex-headers/package-lock.json index 140d5f4e3fbf..444e43def26e 100644 --- a/samples/client/petstore/typescript-axios/tests/with-complex-headers/package-lock.json +++ b/samples/client/petstore/typescript-axios/tests/with-complex-headers/package-lock.json @@ -29,10 +29,10 @@ "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" } }, @@ -42,26 +42,36 @@ }, "node_modules/@types/chai": { "version": "4.3.20", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.20.tgz", + "integrity": "sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==", "dev": true, "license": "MIT" }, "node_modules/@types/mocha": { "version": "8.2.3", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-8.2.3.tgz", + "integrity": "sha512-ekGvFhFgrc2zYQoX4JeZPmVzZxw6Dtllga7iGHzfbYIYkAMUx/sAFP2GdFpLff+vdHXu5fl7WX9AT+TtqYcsyw==", "dev": true, "license": "MIT" }, "node_modules/@types/node": { "version": "14.18.63", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz", + "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==", "dev": true, "license": "MIT" }, "node_modules/@ungap/promise-all-settled": { "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", + "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", "dev": true, "license": "ISC" }, "node_modules/acorn": { "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "dev": true, "license": "MIT", "bin": { @@ -73,6 +83,8 @@ }, "node_modules/acorn-node": { "version": "1.8.2", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", + "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -83,6 +95,8 @@ }, "node_modules/acorn-walk": { "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", "dev": true, "license": "MIT", "engines": { @@ -91,6 +105,8 @@ }, "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==", "dev": true, "license": "MIT", "engines": { @@ -99,6 +115,8 @@ }, "node_modules/ansi-regex": { "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", "dev": true, "license": "MIT", "engines": { @@ -107,6 +125,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==", "dev": true, "license": "MIT", "dependencies": { @@ -121,6 +141,8 @@ }, "node_modules/anymatch": { "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, "license": "ISC", "dependencies": { @@ -133,16 +155,22 @@ }, "node_modules/arg": { "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", "dev": true, "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==", "dev": true, "license": "Python-2.0" }, "node_modules/asn1.js": { "version": "4.10.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", + "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", "dev": true, "license": "MIT", "dependencies": { @@ -152,12 +180,16 @@ } }, "node_modules/asn1.js/node_modules/bn.js": { - "version": "4.12.0", + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", "dev": true, "license": "MIT" }, "node_modules/assert": { "version": "1.5.1", + "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.1.tgz", + "integrity": "sha512-zzw1uCAgLbsKwBfFc8CX78DDg+xZeBksSO3vwVIDDN5i94eOrPsSSyiVhmsSABFDM/OcpE2aagCat9dnWQLG1A==", "dev": true, "license": "MIT", "dependencies": { @@ -167,11 +199,15 @@ }, "node_modules/assert/node_modules/inherits": { "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", "dev": true, "license": "ISC" }, "node_modules/assert/node_modules/util": { "version": "0.10.4", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", + "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", "dev": true, "license": "MIT", "dependencies": { @@ -180,6 +216,8 @@ }, "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==", "dev": true, "license": "MIT", "engines": { @@ -188,11 +226,15 @@ }, "node_modules/asynckit": { "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", "dev": true, "license": "MIT" }, "node_modules/available-typed-arrays": { "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", "dev": true, "license": "MIT", "dependencies": { @@ -206,22 +248,28 @@ } }, "node_modules/axios": { - "version": "1.7.7", + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.12.2.tgz", + "integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==", "dev": true, "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/balanced-match": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true, "license": "MIT" }, "node_modules/base64-js": { "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", "dev": true, "funding": [ { @@ -241,6 +289,8 @@ }, "node_modules/binary-extensions": { "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", "dev": true, "license": "MIT", "engines": { @@ -251,12 +301,16 @@ } }, "node_modules/bn.js": { - "version": "5.2.1", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.2.tgz", + "integrity": "sha512-v2YAxEmKaBLahNwE1mjp4WON6huMNeuDvagFZW+ASCuA/ku0bXR9hSMw0XpiqMoA3+rmnyck/tPRSFQkoC9Cuw==", "dev": true, "license": "MIT" }, "node_modules/brace-expansion": { - "version": "1.1.11", + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", "dev": true, "license": "MIT", "dependencies": { @@ -266,6 +320,8 @@ }, "node_modules/braces": { "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "license": "MIT", "dependencies": { @@ -277,11 +333,15 @@ }, "node_modules/brorand": { "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==", "dev": true, "license": "MIT" }, "node_modules/browser-pack": { "version": "6.1.0", + "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.1.0.tgz", + "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", "dev": true, "license": "MIT", "dependencies": { @@ -298,6 +358,8 @@ }, "node_modules/browser-resolve": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-2.0.0.tgz", + "integrity": "sha512-7sWsQlYL2rGLy2IWm8WL8DCTJvYLc/qlOnsakDac87SOoCd16WLsaAMdCiAqsTNHIe+SXfaqyxyo6THoWqs8WQ==", "dev": true, "license": "MIT", "dependencies": { @@ -306,11 +368,15 @@ }, "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==", "dev": true, "license": "ISC" }, "node_modules/browserify": { "version": "17.0.1", + "resolved": "https://registry.npmjs.org/browserify/-/browserify-17.0.1.tgz", + "integrity": "sha512-pxhT00W3ylMhCHwG5yfqtZjNnFuX5h2IJdaBfSo4ChaaBsIp9VLrEMQ1bHV+Xr1uLPXuNDDM1GlJkjli0qkRsw==", "dev": true, "license": "MIT", "dependencies": { @@ -372,6 +438,8 @@ }, "node_modules/browserify-aes": { "version": "1.2.0", + "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", + "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", "dev": true, "license": "MIT", "dependencies": { @@ -385,6 +453,8 @@ }, "node_modules/browserify-cipher": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", + "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", "dev": true, "license": "MIT", "dependencies": { @@ -395,6 +465,8 @@ }, "node_modules/browserify-des": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", + "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", "dev": true, "license": "MIT", "dependencies": { @@ -406,6 +478,8 @@ }, "node_modules/browserify-rsa": { "version": "4.1.1", + "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.1.tgz", + "integrity": "sha512-YBjSAiTqM04ZVei6sXighu679a3SqWORA3qZTEqZImnlkDIFtKc6pNutpjyZ8RJTjQtuYfeetkxM11GwoYXMIQ==", "dev": true, "license": "MIT", "dependencies": { @@ -418,27 +492,30 @@ } }, "node_modules/browserify-sign": { - "version": "4.2.3", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.5.tgz", + "integrity": "sha512-C2AUdAJg6rlM2W5QMp2Q4KGQMVBwR1lIimTsUnutJ8bMpW5B52pGpR2gEnNBNwijumDo5FojQ0L9JrXA8m4YEw==", "dev": true, "license": "ISC", "dependencies": { - "bn.js": "^5.2.1", - "browserify-rsa": "^4.1.0", + "bn.js": "^5.2.2", + "browserify-rsa": "^4.1.1", "create-hash": "^1.2.0", "create-hmac": "^1.1.7", - "elliptic": "^6.5.5", - "hash-base": "~3.0", + "elliptic": "^6.6.1", "inherits": "^2.0.4", - "parse-asn1": "^5.1.7", + "parse-asn1": "^5.1.9", "readable-stream": "^2.3.8", "safe-buffer": "^5.2.1" }, "engines": { - "node": ">= 0.12" + "node": ">= 0.10" } }, "node_modules/browserify-zlib": { "version": "0.2.0", + "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", + "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", "dev": true, "license": "MIT", "dependencies": { @@ -447,6 +524,8 @@ }, "node_modules/buffer": { "version": "5.2.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", + "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", "dev": true, "license": "MIT", "dependencies": { @@ -456,34 +535,74 @@ }, "node_modules/buffer-from": { "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true, "license": "MIT" }, "node_modules/buffer-xor": { "version": "1.0.3", + "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", + "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", "dev": true, "license": "MIT" }, "node_modules/builtin-status-codes": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", + "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==", "dev": true, "license": "MIT" }, "node_modules/cached-path-relative": { "version": "1.1.0", + "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.1.0.tgz", + "integrity": "sha512-WF0LihfemtesFcJgO7xfOoOcnWzY/QHR4qeDqV44jPU3HTI54+LnfXK3SA27AVVGCdZFgjjFFaqUA9Jx7dMJZA==", "dev": true, "license": "MIT" }, "node_modules/call-bind": { - "version": "1.0.7", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", "dev": true, "license": "MIT", "dependencies": { + "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" }, "engines": { "node": ">= 0.4" @@ -494,6 +613,8 @@ }, "node_modules/camelcase": { "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, "license": "MIT", "engines": { @@ -505,6 +626,8 @@ }, "node_modules/chai": { "version": "4.5.0", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz", + "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==", "dev": true, "license": "MIT", "dependencies": { @@ -522,6 +645,8 @@ }, "node_modules/chalk": { "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "license": "MIT", "dependencies": { @@ -537,6 +662,8 @@ }, "node_modules/chalk/node_modules/supports-color": { "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "license": "MIT", "dependencies": { @@ -548,6 +675,8 @@ }, "node_modules/check-error": { "version": "1.0.3", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", + "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", "dev": true, "license": "MIT", "dependencies": { @@ -559,6 +688,8 @@ }, "node_modules/chokidar": { "version": "3.5.1", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", + "integrity": "sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==", "dev": true, "license": "MIT", "dependencies": { @@ -578,16 +709,24 @@ } }, "node_modules/cipher-base": { - "version": "1.0.4", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.7.tgz", + "integrity": "sha512-Mz9QMT5fJe7bKI7MH31UilT5cEK5EHHRCccw/YRFsRY47AuNgaV6HY3rscp0/I4Q+tTW/5zoqpSeRRI54TkDWA==", "dev": true, "license": "MIT", "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" + "inherits": "^2.0.4", + "safe-buffer": "^5.2.1", + "to-buffer": "^1.2.2" + }, + "engines": { + "node": ">= 0.10" } }, "node_modules/cliui": { "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, "license": "ISC", "dependencies": { @@ -598,6 +737,8 @@ }, "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==", "dev": true, "license": "MIT", "engines": { @@ -606,6 +747,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==", "dev": true, "license": "MIT", "engines": { @@ -614,6 +757,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==", "dev": true, "license": "MIT", "dependencies": { @@ -627,6 +772,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==", "dev": true, "license": "MIT", "dependencies": { @@ -638,6 +785,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==", "dev": true, "license": "MIT", "dependencies": { @@ -649,11 +798,15 @@ }, "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==", "dev": true, "license": "MIT" }, "node_modules/combine-source-map": { "version": "0.8.0", + "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", + "integrity": "sha512-UlxQ9Vw0b/Bt/KYwCFqdEwsQ1eL8d1gibiFb7lxQJFdvTgc2hIZi6ugsg+kyhzhPV+QEpUiEIwInIAIrgoEkrg==", "dev": true, "license": "MIT", "dependencies": { @@ -665,6 +818,8 @@ }, "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==", "dev": true, "license": "MIT", "dependencies": { @@ -676,11 +831,15 @@ }, "node_modules/concat-map": { "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "dev": true, "license": "MIT" }, "node_modules/concat-stream": { "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", "dev": true, "engines": [ "node >= 0.8" @@ -695,25 +854,35 @@ }, "node_modules/console-browserify": { "version": "1.2.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", + "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", "dev": true }, "node_modules/constants-browserify": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", + "integrity": "sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==", "dev": true, "license": "MIT" }, "node_modules/convert-source-map": { "version": "1.1.3", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", + "integrity": "sha512-Y8L5rp6jo+g9VEPgvqNfEopjTR4OTYct8lXlS8iVQdmnjDvbdbzYe9rjtFCB9egC86JoNCU61WRY+ScjkZpnIg==", "dev": true, "license": "MIT" }, "node_modules/core-util-is": { "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", "dev": true, "license": "MIT" }, "node_modules/create-ecdh": { "version": "4.0.4", + "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", + "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", "dev": true, "license": "MIT", "dependencies": { @@ -722,12 +891,16 @@ } }, "node_modules/create-ecdh/node_modules/bn.js": { - "version": "4.12.0", + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", "dev": true, "license": "MIT" }, "node_modules/create-hash": { "version": "1.2.0", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", + "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", "dev": true, "license": "MIT", "dependencies": { @@ -740,6 +913,8 @@ }, "node_modules/create-hmac": { "version": "1.1.7", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", + "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", "dev": true, "license": "MIT", "dependencies": { @@ -753,11 +928,15 @@ }, "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==", "dev": true, "license": "MIT" }, "node_modules/crypto-browserify": { "version": "3.12.1", + "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.1.tgz", + "integrity": "sha512-r4ESw/IlusD17lgQi1O20Fa3qNnsckR126TdUuBgAu7GBYSIPvdNyONd3Zrxh0xCwA4+6w/TDArBPsMvhur+KQ==", "dev": true, "license": "MIT", "dependencies": { @@ -783,11 +962,15 @@ }, "node_modules/dash-ast": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dash-ast/-/dash-ast-1.0.0.tgz", + "integrity": "sha512-Vy4dx7gquTeMcQR/hDkYLGUnwVil6vk4FOOct+djUnHOUWt+zJPJAaRIXaAFkPXtJjvlY7o3rfRu0/3hpnwoUA==", "dev": true, "license": "Apache-2.0" }, "node_modules/debug": { "version": "4.3.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", + "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", "dev": true, "license": "MIT", "dependencies": { @@ -804,11 +987,15 @@ }, "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==", "dev": true, "license": "MIT" }, "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==", "dev": true, "license": "MIT", "engines": { @@ -820,6 +1007,8 @@ }, "node_modules/deep-eql": { "version": "4.1.4", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz", + "integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==", "dev": true, "license": "MIT", "dependencies": { @@ -831,6 +1020,8 @@ }, "node_modules/define-data-property": { "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", "dev": true, "license": "MIT", "dependencies": { @@ -847,6 +1038,8 @@ }, "node_modules/define-properties": { "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", "dev": true, "license": "MIT", "dependencies": { @@ -863,6 +1056,8 @@ }, "node_modules/defined": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.1.tgz", + "integrity": "sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==", "dev": true, "license": "MIT", "funding": { @@ -871,6 +1066,8 @@ }, "node_modules/delayed-stream": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", "dev": true, "license": "MIT", "engines": { @@ -879,6 +1076,8 @@ }, "node_modules/deps-sort": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.1.tgz", + "integrity": "sha512-1orqXQr5po+3KI6kQb9A4jnXT1PBwggGl2d7Sq2xsnOeI9GPcE/tGcF9UiSZtZBM7MukY4cAh7MemS6tZYipfw==", "dev": true, "license": "MIT", "dependencies": { @@ -893,6 +1092,8 @@ }, "node_modules/des.js": { "version": "1.1.0", + "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.1.0.tgz", + "integrity": "sha512-r17GxjhUCjSRy8aiJpr8/UadFIzMzJGexI3Nmz4ADi9LYSFx4gTBp80+NaX/YsXWWLhpZ7v/v/ubEc/bCNfKwg==", "dev": true, "license": "MIT", "dependencies": { @@ -902,6 +1103,8 @@ }, "node_modules/detective": { "version": "5.2.1", + "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz", + "integrity": "sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==", "dev": true, "license": "MIT", "dependencies": { @@ -918,6 +1121,8 @@ }, "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==", "dev": true, "license": "BSD-3-Clause", "engines": { @@ -926,6 +1131,8 @@ }, "node_modules/diffie-hellman": { "version": "5.0.3", + "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", + "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", "dev": true, "license": "MIT", "dependencies": { @@ -935,12 +1142,16 @@ } }, "node_modules/diffie-hellman/node_modules/bn.js": { - "version": "4.12.0", + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", "dev": true, "license": "MIT" }, "node_modules/domain-browser": { "version": "1.2.0", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", + "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", "dev": true, "license": "MIT", "engines": { @@ -948,8 +1159,25 @@ "npm": ">=1.2" } }, + "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==", + "dev": true, + "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/duplexer2": { "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", "dev": true, "license": "BSD-3-Clause", "dependencies": { @@ -957,7 +1185,9 @@ } }, "node_modules/elliptic": { - "version": "6.6.0", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", + "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", "dev": true, "license": "MIT", "dependencies": { @@ -971,36 +1201,72 @@ } }, "node_modules/elliptic/node_modules/bn.js": { - "version": "4.12.0", + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", "dev": true, "license": "MIT" }, "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==", "dev": true, "license": "MIT" }, "node_modules/es-define-property": { - "version": "1.0.0", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "dev": true, "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, "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==", "dev": true, "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==", + "dev": true, + "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==", + "dev": true, + "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/escalade": { "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, "license": "MIT", "engines": { @@ -1009,6 +1275,8 @@ }, "node_modules/escape-string-regexp": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, "license": "MIT", "engines": { @@ -1020,6 +1288,8 @@ }, "node_modules/events": { "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", "dev": true, "license": "MIT", "engines": { @@ -1028,6 +1298,8 @@ }, "node_modules/evp_bytestokey": { "version": "1.0.3", + "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", + "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", "dev": true, "license": "MIT", "dependencies": { @@ -1037,11 +1309,15 @@ }, "node_modules/fast-safe-stringify": { "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", "dev": true, "license": "MIT" }, "node_modules/fill-range": { "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "license": "MIT", "dependencies": { @@ -1053,6 +1329,8 @@ }, "node_modules/find-up": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, "license": "MIT", "dependencies": { @@ -1068,6 +1346,8 @@ }, "node_modules/flat": { "version": "5.0.2", + "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", + "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", "dev": true, "license": "BSD-3-Clause", "bin": { @@ -1075,7 +1355,9 @@ } }, "node_modules/follow-redirects": { - "version": "1.15.9", + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", + "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", "dev": true, "funding": [ { @@ -1094,20 +1376,32 @@ } }, "node_modules/for-each": { - "version": "0.3.3", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", "dev": true, "license": "MIT", "dependencies": { - "is-callable": "^1.1.3" + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/form-data": { - "version": "4.0.1", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", + "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", "dev": true, "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": { @@ -1116,12 +1410,17 @@ }, "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==", "dev": true, "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==", "dev": true, + "hasInstallScript": true, "license": "MIT", "optional": true, "os": [ @@ -1133,19 +1432,35 @@ }, "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==", "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/generator-function": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", + "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/get-assigned-identifiers": { "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", + "integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==", "dev": true, "license": "Apache-2.0" }, "node_modules/get-caller-file": { "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true, "license": "ISC", "engines": { @@ -1154,6 +1469,8 @@ }, "node_modules/get-func-name": { "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", "dev": true, "license": "MIT", "engines": { @@ -1161,15 +1478,22 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.4", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "dev": true, "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", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" + "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" @@ -1178,8 +1502,25 @@ "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==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/glob": { "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, "license": "ISC", "dependencies": { @@ -1199,6 +1540,8 @@ }, "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==", "dev": true, "license": "ISC", "dependencies": { @@ -1209,11 +1552,13 @@ } }, "node_modules/gopd": { - "version": "1.0.1", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "dev": true, "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.1.3" + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -1221,6 +1566,8 @@ }, "node_modules/growl": { "version": "1.10.5", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", + "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", "dev": true, "license": "MIT", "engines": { @@ -1229,6 +1576,8 @@ }, "node_modules/has-flag": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "license": "MIT", "engines": { @@ -1237,6 +1586,8 @@ }, "node_modules/has-property-descriptors": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", "dev": true, "license": "MIT", "dependencies": { @@ -1246,19 +1597,10 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-proto": { - "version": "1.0.3", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/has-symbols": { - "version": "1.0.3", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "dev": true, "license": "MIT", "engines": { @@ -1270,6 +1612,8 @@ }, "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==", "dev": true, "license": "MIT", "dependencies": { @@ -1283,19 +1627,23 @@ } }, "node_modules/hash-base": { - "version": "3.0.4", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.5.tgz", + "integrity": "sha512-vXm0l45VbcHEVlTCzs8M+s0VeYsB2lnlAaThoLKGXr3bE/VWDOelNUnycUPEhKEaXARL2TEFjBOyUiM6+55KBg==", "dev": true, "license": "MIT", "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" + "inherits": "^2.0.4", + "safe-buffer": "^5.2.1" }, "engines": { - "node": ">=4" + "node": ">= 0.10" } }, "node_modules/hash.js": { "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", "dev": true, "license": "MIT", "dependencies": { @@ -1305,6 +1653,8 @@ }, "node_modules/hasown": { "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dev": true, "license": "MIT", "dependencies": { @@ -1316,6 +1666,8 @@ }, "node_modules/he": { "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "dev": true, "license": "MIT", "bin": { @@ -1324,6 +1676,8 @@ }, "node_modules/hmac-drbg": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", "dev": true, "license": "MIT", "dependencies": { @@ -1334,6 +1688,8 @@ }, "node_modules/htmlescape": { "version": "1.1.1", + "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", + "integrity": "sha512-eVcrzgbR4tim7c7soKQKtxa/kQM4TzjnlU83rcZ9bHU6t31ehfV7SktN6McWgwPWg+JYMA/O3qpGxBvFq1z2Jg==", "dev": true, "license": "MIT", "engines": { @@ -1342,11 +1698,15 @@ }, "node_modules/https-browserify": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", + "integrity": "sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg==", "dev": true, "license": "MIT" }, "node_modules/ieee754": { "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", "dev": true, "funding": [ { @@ -1366,6 +1726,9 @@ }, "node_modules/inflight": { "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.", "dev": true, "license": "ISC", "dependencies": { @@ -1375,11 +1738,15 @@ }, "node_modules/inherits": { "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true, "license": "ISC" }, "node_modules/inline-source-map": { "version": "0.6.3", + "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.3.tgz", + "integrity": "sha512-1aVsPEsJWMJq/pdMU61CDlm1URcW702MTB4w9/zUjMus6H/Py8o7g68Pr9D4I6QluWGt/KdmswuRhaA05xVR1w==", "dev": true, "license": "MIT", "dependencies": { @@ -1388,6 +1755,8 @@ }, "node_modules/insert-module-globals": { "version": "7.2.1", + "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.2.1.tgz", + "integrity": "sha512-ufS5Qq9RZN+Bu899eA9QCAYThY+gGW7oRkmb0vC93Vlyu/CFGcH0OYPEjVkDXA5FEbTt1+VWzdoOD3Ny9N+8tg==", "dev": true, "license": "MIT", "dependencies": { @@ -1407,12 +1776,14 @@ } }, "node_modules/is-arguments": { - "version": "1.1.1", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", + "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", "dev": true, "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -1423,6 +1794,8 @@ }, "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==", "dev": true, "license": "MIT", "dependencies": { @@ -1434,11 +1807,15 @@ }, "node_modules/is-buffer": { "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true, "license": "MIT" }, "node_modules/is-callable": { "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", "dev": true, "license": "MIT", "engines": { @@ -1449,7 +1826,9 @@ } }, "node_modules/is-core-module": { - "version": "2.15.1", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", "dev": true, "license": "MIT", "dependencies": { @@ -1464,6 +1843,8 @@ }, "node_modules/is-extglob": { "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, "license": "MIT", "engines": { @@ -1472,6 +1853,8 @@ }, "node_modules/is-fullwidth-code-point": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", "dev": true, "license": "MIT", "engines": { @@ -1479,11 +1862,17 @@ } }, "node_modules/is-generator-function": { - "version": "1.0.10", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", + "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", "dev": true, "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.4", + "generator-function": "^2.0.0", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -1494,6 +1883,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==", "dev": true, "license": "MIT", "dependencies": { @@ -1505,6 +1896,8 @@ }, "node_modules/is-number": { "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, "license": "MIT", "engines": { @@ -1513,18 +1906,41 @@ }, "node_modules/is-plain-obj": { "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==", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-typed-array": { - "version": "1.1.13", + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", "dev": true, "license": "MIT", "dependencies": { - "which-typed-array": "^1.1.14" + "which-typed-array": "^1.1.16" }, "engines": { "node": ">= 0.4" @@ -1535,16 +1951,22 @@ }, "node_modules/isarray": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", "dev": true, "license": "MIT" }, "node_modules/isexe": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true, "license": "ISC" }, "node_modules/js-yaml": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.0.0.tgz", + "integrity": "sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q==", "dev": true, "license": "MIT", "dependencies": { @@ -1556,6 +1978,8 @@ }, "node_modules/jsonparse": { "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", "dev": true, "engines": [ "node >= 0.2.0" @@ -1564,6 +1988,8 @@ }, "node_modules/JSONStream": { "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", "dev": true, "license": "(MIT OR Apache-2.0)", "dependencies": { @@ -1579,6 +2005,8 @@ }, "node_modules/labeled-stream-splicer": { "version": "2.0.2", + "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.2.tgz", + "integrity": "sha512-Ca4LSXFFZUjPScRaqOcFxneA0VpKZr4MMYCljyQr4LIewTLb3Y0IUTIsnBBsVubIeEfxeSZpSjSsRM8APEQaAw==", "dev": true, "license": "MIT", "dependencies": { @@ -1588,6 +2016,8 @@ }, "node_modules/locate-path": { "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, "license": "MIT", "dependencies": { @@ -1602,11 +2032,15 @@ }, "node_modules/lodash.memoize": { "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-3.0.4.tgz", + "integrity": "sha512-eDn9kqrAmVUC1wmZvlQ6Uhde44n+tXpqPrN8olQJbttgh0oKclk+SF54P47VEGE9CEiMeRwAP8BaM7UHvBkz2A==", "dev": true, "license": "MIT" }, "node_modules/log-symbols": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz", + "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==", "dev": true, "license": "MIT", "dependencies": { @@ -1618,6 +2052,8 @@ }, "node_modules/loupe": { "version": "2.3.7", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", + "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", "dev": true, "license": "MIT", "dependencies": { @@ -1626,11 +2062,25 @@ }, "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==", "dev": true, "license": "ISC" }, + "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==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/md5.js": { "version": "1.3.5", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", + "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", "dev": true, "license": "MIT", "dependencies": { @@ -1641,6 +2091,8 @@ }, "node_modules/miller-rabin": { "version": "4.0.1", + "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", + "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", "dev": true, "license": "MIT", "dependencies": { @@ -1652,12 +2104,16 @@ } }, "node_modules/miller-rabin/node_modules/bn.js": { - "version": "4.12.0", + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", "dev": true, "license": "MIT" }, "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==", "dev": true, "license": "MIT", "engines": { @@ -1666,6 +2122,8 @@ }, "node_modules/mime-types": { "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, "license": "MIT", "dependencies": { @@ -1677,16 +2135,22 @@ }, "node_modules/minimalistic-assert": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", "dev": true, "license": "ISC" }, "node_modules/minimalistic-crypto-utils": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==", "dev": true, "license": "MIT" }, "node_modules/minimatch": { "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, "license": "ISC", "dependencies": { @@ -1698,6 +2162,8 @@ }, "node_modules/minimist": { "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "dev": true, "license": "MIT", "funding": { @@ -1706,11 +2172,15 @@ }, "node_modules/mkdirp-classic": { "version": "0.5.3", + "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", "dev": true, "license": "MIT" }, "node_modules/mocha": { "version": "8.4.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-8.4.0.tgz", + "integrity": "sha512-hJaO0mwDXmZS4ghXsvPVriOhsxQ7ofcpQdm8dE+jISUOKopitvnXFQmpRR7jd2K6VBG6E26gU3IAbXXGIbu4sQ==", "dev": true, "license": "MIT", "dependencies": { @@ -1754,6 +2224,9 @@ }, "node_modules/mocha/node_modules/glob": { "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, "license": "ISC", "dependencies": { @@ -1773,6 +2246,8 @@ }, "node_modules/mocha/node_modules/minimatch": { "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "license": "ISC", "dependencies": { @@ -1784,6 +2259,8 @@ }, "node_modules/module-deps": { "version": "6.2.3", + "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-6.2.3.tgz", + "integrity": "sha512-fg7OZaQBcL4/L+AK5f4iVqf9OMbCclXfy/znXRxTVhJSeW5AIlS9AwheYwDaXM3lVW7OBeaeUEY3gbaC6cLlSA==", "dev": true, "license": "MIT", "dependencies": { @@ -1812,11 +2289,15 @@ }, "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==", "dev": true, "license": "MIT" }, "node_modules/nanoid": { "version": "3.1.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.20.tgz", + "integrity": "sha512-a1cQNyczgKbLX9jwbS/+d7W8fX/RfgYR7lVWwWOGIPNgK2m0MWvrGF6/m4kk6U3QcFMnZf3RIhL0v2Jgh/0Uxw==", "dev": true, "license": "MIT", "bin": { @@ -1828,6 +2309,8 @@ }, "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==", "dev": true, "license": "MIT", "engines": { @@ -1835,7 +2318,9 @@ } }, "node_modules/object-inspect": { - "version": "1.13.2", + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", "dev": true, "license": "MIT", "engines": { @@ -1847,6 +2332,8 @@ }, "node_modules/object-keys": { "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", "dev": true, "license": "MIT", "engines": { @@ -1854,13 +2341,17 @@ } }, "node_modules/object.assign": { - "version": "4.1.5", + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", "dev": true, "license": "MIT", "dependencies": { - "call-bind": "^1.0.5", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", "object-keys": "^1.1.1" }, "engines": { @@ -1872,6 +2363,8 @@ }, "node_modules/once": { "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, "license": "ISC", "dependencies": { @@ -1880,11 +2373,15 @@ }, "node_modules/os-browserify": { "version": "0.3.0", + "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", + "integrity": "sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A==", "dev": true, "license": "MIT" }, "node_modules/p-limit": { "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "license": "MIT", "dependencies": { @@ -1899,6 +2396,8 @@ }, "node_modules/p-locate": { "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==", "dev": true, "license": "MIT", "dependencies": { @@ -1913,11 +2412,15 @@ }, "node_modules/pako": { "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", "dev": true, "license": "(MIT AND Zlib)" }, "node_modules/parents": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz", + "integrity": "sha512-mXKF3xkoUt5td2DoxpLmtOmZvko9VfFpwRwkKDHSNvgmpLAeBo18YDhcPbBzJq+QLCHMbGOfzia2cX4U+0v9Mg==", "dev": true, "license": "MIT", "dependencies": { @@ -1925,15 +2428,16 @@ } }, "node_modules/parse-asn1": { - "version": "5.1.7", + "version": "5.1.9", + "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.9.tgz", + "integrity": "sha512-fIYNuZ/HastSb80baGOuPRo1O9cf4baWw5WsAp7dBuUzeTD/BoaG8sVTdlPFksBE2lF21dN+A1AnrpIjSWqHHg==", "dev": true, "license": "ISC", "dependencies": { "asn1.js": "^4.10.1", "browserify-aes": "^1.2.0", "evp_bytestokey": "^1.0.3", - "hash-base": "~3.0", - "pbkdf2": "^3.1.2", + "pbkdf2": "^3.1.5", "safe-buffer": "^5.2.1" }, "engines": { @@ -1942,11 +2446,15 @@ }, "node_modules/path-browserify": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", "dev": true, "license": "MIT" }, "node_modules/path-exists": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, "license": "MIT", "engines": { @@ -1955,6 +2463,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==", "dev": true, "license": "MIT", "engines": { @@ -1963,11 +2473,15 @@ }, "node_modules/path-parse": { "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true, "license": "MIT" }, "node_modules/path-platform": { "version": "0.11.15", + "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", + "integrity": "sha512-Y30dB6rab1A/nfEKsZxmr01nUotHX0c/ZiIAsCTatEe1CmS5Pm5He7fZ195bPT7RdquoaL8lLxFCMQi/bS7IJg==", "dev": true, "license": "MIT", "engines": { @@ -1976,6 +2490,8 @@ }, "node_modules/pathval": { "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", + "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", "dev": true, "license": "MIT", "engines": { @@ -1983,22 +2499,27 @@ } }, "node_modules/pbkdf2": { - "version": "3.1.2", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.5.tgz", + "integrity": "sha512-Q3CG/cYvCO1ye4QKkuH7EXxs3VC/rI1/trd+qX2+PolbaKG0H+bgcZzrTt96mMyRtejk+JMCiLUn3y29W8qmFQ==", "dev": true, "license": "MIT", "dependencies": { - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4", - "ripemd160": "^2.0.1", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "ripemd160": "^2.0.3", + "safe-buffer": "^5.2.1", + "sha.js": "^2.4.12", + "to-buffer": "^1.2.1" }, "engines": { - "node": ">=0.12" + "node": ">= 0.10" } }, "node_modules/picomatch": { "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, "license": "MIT", "engines": { @@ -2009,7 +2530,9 @@ } }, "node_modules/possible-typed-array-names": { - "version": "1.0.0", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", "dev": true, "license": "MIT", "engines": { @@ -2018,6 +2541,8 @@ }, "node_modules/process": { "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", "dev": true, "license": "MIT", "engines": { @@ -2026,16 +2551,22 @@ }, "node_modules/process-nextick-args": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true, "license": "MIT" }, "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==", "dev": true, "license": "MIT" }, "node_modules/public-encrypt": { "version": "4.0.3", + "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", + "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", "dev": true, "license": "MIT", "dependencies": { @@ -2048,21 +2579,27 @@ } }, "node_modules/public-encrypt/node_modules/bn.js": { - "version": "4.12.0", + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", "dev": true, "license": "MIT" }, "node_modules/punycode": { "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", "dev": true, "license": "MIT" }, "node_modules/qs": { - "version": "6.13.0", + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", "dev": true, "license": "BSD-3-Clause", "dependencies": { - "side-channel": "^1.0.6" + "side-channel": "^1.1.0" }, "engines": { "node": ">=0.6" @@ -2073,6 +2610,8 @@ }, "node_modules/querystring-es3": { "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", + "integrity": "sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==", "dev": true, "engines": { "node": ">=0.4.x" @@ -2080,6 +2619,8 @@ }, "node_modules/randombytes": { "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, "license": "MIT", "dependencies": { @@ -2088,6 +2629,8 @@ }, "node_modules/randomfill": { "version": "1.0.4", + "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", + "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", "dev": true, "license": "MIT", "dependencies": { @@ -2097,6 +2640,8 @@ }, "node_modules/read-only-stream": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", + "integrity": "sha512-3ALe0bjBVZtkdWKIcThYpQCLbBMd/+Tbh2CDSrAIDO3UsZ4Xs+tnyjv2MjCOMMgBG+AsUOeuP1cgtY1INISc8w==", "dev": true, "license": "MIT", "dependencies": { @@ -2105,6 +2650,8 @@ }, "node_modules/readable-stream": { "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", "dev": true, "license": "MIT", "dependencies": { @@ -2119,11 +2666,15 @@ }, "node_modules/readable-stream/node_modules/safe-buffer": { "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true, "license": "MIT" }, "node_modules/readable-stream/node_modules/string_decoder": { "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "license": "MIT", "dependencies": { @@ -2132,6 +2683,8 @@ }, "node_modules/readdirp": { "version": "3.5.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", + "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", "dev": true, "license": "MIT", "dependencies": { @@ -2143,6 +2696,8 @@ }, "node_modules/require-directory": { "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==", "dev": true, "license": "MIT", "engines": { @@ -2150,32 +2705,60 @@ } }, "node_modules/resolve": { - "version": "1.22.8", + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", "dev": true, "license": "MIT", "dependencies": { - "is-core-module": "^2.13.0", + "is-core-module": "^2.16.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/ripemd160": { - "version": "2.0.2", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.3.tgz", + "integrity": "sha512-5Di9UC0+8h1L6ZD2d7awM7E/T4uA1fJRlx6zk/NvdCCVEoAnFqvHmCuNeIKoCeIixBX/q8uM+6ycDvF8woqosA==", "dev": true, "license": "MIT", "dependencies": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" + "hash-base": "^3.1.2", + "inherits": "^2.0.4" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/ripemd160/node_modules/hash-base": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.2.tgz", + "integrity": "sha512-Bb33KbowVTIj5s7Ked1OsqHUeCpz//tPwR+E2zJgJKo9Z5XolZ9b6bdUgjmYlwnWhoOQKoTd1TYToZGn5mAYOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "inherits": "^2.0.4", + "readable-stream": "^2.3.8", + "safe-buffer": "^5.2.1", + "to-buffer": "^1.2.1" + }, + "engines": { + "node": ">= 0.8" } }, "node_modules/safe-buffer": { "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", "dev": true, "funding": [ { @@ -2193,8 +2776,28 @@ ], "license": "MIT" }, + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/serialize-javascript": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-5.0.1.tgz", + "integrity": "sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA==", "dev": true, "license": "BSD-3-Clause", "dependencies": { @@ -2203,6 +2806,8 @@ }, "node_modules/set-function-length": { "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", "dev": true, "license": "MIT", "dependencies": { @@ -2218,42 +2823,120 @@ } }, "node_modules/sha.js": { - "version": "2.4.11", + "version": "2.4.12", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.12.tgz", + "integrity": "sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w==", "dev": true, "license": "(MIT AND BSD-3-Clause)", "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" + "inherits": "^2.0.4", + "safe-buffer": "^5.2.1", + "to-buffer": "^1.2.0" }, "bin": { "sha.js": "bin.js" + }, + "engines": { + "node": ">= 0.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/shasum-object": { - "version": "1.0.0", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/shasum-object/-/shasum-object-1.0.1.tgz", + "integrity": "sha512-SsC+1tW7XKQ/94D4k1JhLmjDFpVGET/Nf54jVDtbavbALf8Zhp0Td9zTlxScjMW6nbEIrpADtPWfLk9iCXzHDQ==", "dev": true, "license": "Apache-2.0", "dependencies": { "fast-safe-stringify": "^2.0.7" + }, + "bin": { + "shasum-object": "bin.js" } }, "node_modules/shell-quote": { - "version": "1.8.1", + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.3.tgz", + "integrity": "sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==", "dev": true, "license": "MIT", + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/side-channel": { - "version": "1.0.6", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", "dev": true, "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4", - "object-inspect": "^1.13.1" + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -2264,6 +2947,8 @@ }, "node_modules/simple-concat": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", + "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", "dev": true, "funding": [ { @@ -2283,6 +2968,8 @@ }, "node_modules/source-map": { "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", "dev": true, "license": "BSD-3-Clause", "engines": { @@ -2291,6 +2978,8 @@ }, "node_modules/source-map-support": { "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, "license": "MIT", "dependencies": { @@ -2300,6 +2989,8 @@ }, "node_modules/source-map-support/node_modules/source-map": { "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, "license": "BSD-3-Clause", "engines": { @@ -2308,6 +2999,8 @@ }, "node_modules/stream-browserify": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz", + "integrity": "sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==", "dev": true, "license": "MIT", "dependencies": { @@ -2317,6 +3010,8 @@ }, "node_modules/stream-browserify/node_modules/readable-stream": { "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, "license": "MIT", "dependencies": { @@ -2330,6 +3025,8 @@ }, "node_modules/stream-combiner2": { "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", + "integrity": "sha512-3PnJbYgS56AeWgtKF5jtJRT6uFJe56Z0Hc5Ngg/6sI6rIt8iiMBTa9cvdyFfpMQjaVHr8dusbNeFGIIonxOvKw==", "dev": true, "license": "MIT", "dependencies": { @@ -2339,6 +3036,8 @@ }, "node_modules/stream-http": { "version": "3.2.0", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-3.2.0.tgz", + "integrity": "sha512-Oq1bLqisTyK3TSCXpPbT4sdeYNdmyZJv1LxpEm2vu1ZhK89kSE5YXwZc3cWk0MagGaKriBh9mCFbVGtO+vY29A==", "dev": true, "license": "MIT", "dependencies": { @@ -2350,6 +3049,8 @@ }, "node_modules/stream-http/node_modules/readable-stream": { "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, "license": "MIT", "dependencies": { @@ -2363,6 +3064,8 @@ }, "node_modules/stream-splicer": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.1.tgz", + "integrity": "sha512-Xizh4/NPuYSyAXyT7g8IvdJ9HJpxIGL9PjyhtywCZvvP0OPIdqyrr4dMikeuvY8xahpdKEBlBTySe583totajg==", "dev": true, "license": "MIT", "dependencies": { @@ -2372,6 +3075,8 @@ }, "node_modules/string_decoder": { "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", "dev": true, "license": "MIT", "dependencies": { @@ -2380,6 +3085,8 @@ }, "node_modules/string-width": { "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "license": "MIT", "dependencies": { @@ -2392,6 +3099,8 @@ }, "node_modules/strip-ansi": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", "dev": true, "license": "MIT", "dependencies": { @@ -2403,6 +3112,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==", "dev": true, "license": "MIT", "engines": { @@ -2414,6 +3125,8 @@ }, "node_modules/subarg": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", + "integrity": "sha512-RIrIdRY0X1xojthNcVtgT9sjpOGagEUKpZdgBUi054OEPFo282yg+zE+t1Rj3+RqKq2xStL7uUHhY+AjbC4BXg==", "dev": true, "license": "MIT", "dependencies": { @@ -2422,6 +3135,8 @@ }, "node_modules/supports-color": { "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "license": "MIT", "dependencies": { @@ -2436,6 +3151,8 @@ }, "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, "license": "MIT", "engines": { @@ -2447,6 +3164,8 @@ }, "node_modules/syntax-error": { "version": "1.4.0", + "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", + "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", "dev": true, "license": "MIT", "dependencies": { @@ -2455,11 +3174,15 @@ }, "node_modules/through": { "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", "dev": true, "license": "MIT" }, "node_modules/through2": { "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, "license": "MIT", "dependencies": { @@ -2469,6 +3192,8 @@ }, "node_modules/timers-browserify": { "version": "1.4.2", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", + "integrity": "sha512-PIxwAupJZiYU4JmVZYwXp9FKsHMXb5h0ZEFyuXTAn8WLHOlcij+FEcbrvDsom1o5dr1YggEtFbECvGCW2sT53Q==", "dev": true, "dependencies": { "process": "~0.11.0" @@ -2477,8 +3202,32 @@ "node": ">=0.6.0" } }, + "node_modules/to-buffer": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.2.tgz", + "integrity": "sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "isarray": "^2.0.5", + "safe-buffer": "^5.2.1", + "typed-array-buffer": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/to-buffer/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true, + "license": "MIT" + }, "node_modules/to-regex-range": { "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==", "dev": true, "license": "MIT", "dependencies": { @@ -2490,6 +3239,8 @@ }, "node_modules/ts-node": { "version": "9.1.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-9.1.1.tgz", + "integrity": "sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg==", "dev": true, "license": "MIT", "dependencies": { @@ -2515,6 +3266,8 @@ }, "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==", "dev": true, "license": "BSD-3-Clause", "engines": { @@ -2523,24 +3276,47 @@ }, "node_modules/tty-browserify": { "version": "0.0.1", + "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", + "integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==", "dev": true, "license": "MIT" }, "node_modules/type-detect": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz", + "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==", "dev": true, "license": "MIT", "engines": { "node": ">=4" } }, + "node_modules/typed-array-buffer": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/typedarray": { "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", "dev": true, "license": "MIT" }, "node_modules/typescript": { "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true, "license": "Apache-2.0", "bin": { @@ -2553,6 +3329,8 @@ }, "node_modules/umd": { "version": "3.0.3", + "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", + "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", "dev": true, "license": "MIT", "bin": { @@ -2561,6 +3339,8 @@ }, "node_modules/undeclared-identifiers": { "version": "1.1.3", + "resolved": "https://registry.npmjs.org/undeclared-identifiers/-/undeclared-identifiers-1.1.3.tgz", + "integrity": "sha512-pJOW4nxjlmfwKApE4zvxLScM/njmwj/DiUBv7EabwE4O8kRUy+HIwxQtZLBPll/jx1LJyBcqNfB3/cpv9EZwOw==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -2576,6 +3356,8 @@ }, "node_modules/url": { "version": "0.11.4", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.4.tgz", + "integrity": "sha512-oCwdVC7mTuWiPyjLUz/COz5TLk6wgp0RCsN+wHZ2Ekneac9w8uuV0njcbbie2ME+Vs+d6duwmYuR3HgQXs1fOg==", "dev": true, "license": "MIT", "dependencies": { @@ -2588,6 +3370,8 @@ }, "node_modules/util": { "version": "0.12.5", + "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", "dev": true, "license": "MIT", "dependencies": { @@ -2600,16 +3384,22 @@ }, "node_modules/util-deprecate": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true, "license": "MIT" }, "node_modules/vm-browserify": { "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", + "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", "dev": true, "license": "MIT" }, "node_modules/which": { "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, "license": "ISC", "dependencies": { @@ -2623,14 +3413,18 @@ } }, "node_modules/which-typed-array": { - "version": "1.1.15", + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", + "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", "dev": true, "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", "has-tostringtag": "^1.0.2" }, "engines": { @@ -2642,6 +3436,8 @@ }, "node_modules/wide-align": { "version": "1.1.3", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", "dev": true, "license": "ISC", "dependencies": { @@ -2650,11 +3446,15 @@ }, "node_modules/workerpool": { "version": "6.1.0", + "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.1.0.tgz", + "integrity": "sha512-toV7q9rWNYha963Pl/qyeZ6wG+3nnsyvolaNUS8+R5Wtw6qJPTxIlOP1ZSvcGhEJw+l3HMMmtiNo9Gl61G4GVg==", "dev": true, "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==", "dev": true, "license": "MIT", "dependencies": { @@ -2671,6 +3471,8 @@ }, "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==", "dev": true, "license": "MIT", "engines": { @@ -2679,6 +3481,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==", "dev": true, "license": "MIT", "engines": { @@ -2687,6 +3491,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==", "dev": true, "license": "MIT", "dependencies": { @@ -2700,6 +3506,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==", "dev": true, "license": "MIT", "dependencies": { @@ -2711,11 +3519,15 @@ }, "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==", "dev": true, "license": "ISC" }, "node_modules/xtend": { "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true, "license": "MIT", "engines": { @@ -2724,6 +3536,8 @@ }, "node_modules/y18n": { "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, "license": "ISC", "engines": { @@ -2732,6 +3546,8 @@ }, "node_modules/yargs": { "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, "license": "MIT", "dependencies": { @@ -2749,6 +3565,8 @@ }, "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==", "dev": true, "license": "ISC", "engines": { @@ -2757,6 +3575,8 @@ }, "node_modules/yargs-unparser": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", + "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", "dev": true, "license": "MIT", "dependencies": { @@ -2771,6 +3591,8 @@ }, "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==", "dev": true, "license": "MIT", "engines": { @@ -2779,6 +3601,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==", "dev": true, "license": "MIT", "engines": { @@ -2787,6 +3611,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==", "dev": true, "license": "MIT", "dependencies": { @@ -2800,6 +3626,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==", "dev": true, "license": "MIT", "dependencies": { @@ -2811,6 +3639,8 @@ }, "node_modules/yn": { "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", "dev": true, "license": "MIT", "engines": { @@ -2819,6 +3649,8 @@ }, "node_modules/yocto-queue": { "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, "license": "MIT", "engines": { diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/tsconfig.json b/samples/client/petstore/typescript-fetch/builds/es6-target/tsconfig.json index 250280d9ab0e..9af8d4afc5e3 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/tsconfig.json +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/tsconfig.json @@ -3,6 +3,8 @@ "declaration": true, "target": "es6", "module": "commonjs", + "strictNullChecks": true, + "exactOptionalPropertyTypes": true, "moduleResolution": "node", "outDir": "dist", "typeRoots": [ diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/tsconfig.json b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/tsconfig.json index 4567ec19899a..5551ca1fc89f 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/tsconfig.json +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/tsconfig.json @@ -3,6 +3,8 @@ "declaration": true, "target": "es5", "module": "commonjs", + "strictNullChecks": true, + "exactOptionalPropertyTypes": true, "moduleResolution": "node", "outDir": "dist", "lib": [ diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/tsconfig.json b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/tsconfig.json index 5047f4d59a36..6d17984931e5 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/tsconfig.json +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/tsconfig.json @@ -4,6 +4,8 @@ "target": "es6", "strict": true, "module": "commonjs", + "strictNullChecks": true, + "exactOptionalPropertyTypes": true, "moduleResolution": "node", "outDir": "dist", "typeRoots": [ diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/tsconfig.json b/samples/client/petstore/typescript-fetch/builds/with-npm-version/tsconfig.json index 4567ec19899a..5551ca1fc89f 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/tsconfig.json +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/tsconfig.json @@ -3,6 +3,8 @@ "declaration": true, "target": "es5", "module": "commonjs", + "strictNullChecks": true, + "exactOptionalPropertyTypes": true, "moduleResolution": "node", "outDir": "dist", "lib": [ diff --git a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/tsconfig.json b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/tsconfig.json index 4567ec19899a..5551ca1fc89f 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/tsconfig.json +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/tsconfig.json @@ -3,6 +3,8 @@ "declaration": true, "target": "es5", "module": "commonjs", + "strictNullChecks": true, + "exactOptionalPropertyTypes": true, "moduleResolution": "node", "outDir": "dist", "lib": [ From 8d4e076237362575ea02fb7d7d710a33b5bc87cb Mon Sep 17 00:00:00 2001 From: Adam Clark Date: Fri, 17 Oct 2025 16:08:58 -0700 Subject: [PATCH 03/10] fix: update typescript-fetch runtime template --- .../typescript-fetch/runtime.mustache | 40 +++++++++++-------- .../infinite-recursion-issue/runtime.ts | 40 +++++++++++-------- .../self-import-issue/runtime.ts | 40 +++++++++++-------- .../builds/allOf-nullable/runtime.ts | 40 +++++++++++-------- .../builds/allOf-readonly/runtime.ts | 40 +++++++++++-------- .../builds/default-v3.0/runtime.ts | 40 +++++++++++-------- .../builds/default/runtime.ts | 40 +++++++++++-------- .../typescript-fetch/builds/enum/runtime.ts | 40 +++++++++++-------- .../builds/es6-target/src/runtime.ts | 40 +++++++++++-------- .../builds/multiple-parameters/runtime.ts | 40 +++++++++++-------- .../typescript-fetch/builds/oneOf/runtime.ts | 40 +++++++++++-------- .../src/runtime.ts | 40 +++++++++++-------- .../builds/sagas-and-records/src/runtime.ts | 40 +++++++++++-------- .../builds/snakecase-discriminator/runtime.ts | 40 +++++++++++-------- .../builds/validation-attributes/runtime.ts | 40 +++++++++++-------- .../builds/with-interfaces/runtime.ts | 40 +++++++++++-------- .../builds/with-npm-version/src/runtime.ts | 40 +++++++++++-------- .../builds/with-string-enums/runtime.ts | 40 +++++++++++-------- .../without-runtime-checks/src/runtime.ts | 40 +++++++++++-------- 19 files changed, 456 insertions(+), 304 deletions(-) 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/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/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-fetch/builds/allOf-nullable/runtime.ts b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/runtime.ts index c9b10a3dc885..dac7d028306f 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://api.example.xyz/v1".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-fetch/builds/allOf-readonly/runtime.ts b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/runtime.ts index c9b10a3dc885..dac7d028306f 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://api.example.xyz/v1".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-fetch/builds/default-v3.0/runtime.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/runtime.ts index 6d3d965df11d..5d1bc57234da 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://petstore.swagger.io:80/v2".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-fetch/builds/default/runtime.ts b/samples/client/petstore/typescript-fetch/builds/default/runtime.ts index 3f125c3b0601..66336fdf7af0 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://petstore.swagger.io/v2".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-fetch/builds/enum/runtime.ts b/samples/client/petstore/typescript-fetch/builds/enum/runtime.ts index 8095de29bc32..4ad1fcae7653 100644 --- a/samples/client/petstore/typescript-fetch/builds/enum/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/enum/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://localhost:3000".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-fetch/builds/es6-target/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/runtime.ts index 3f125c3b0601..66336fdf7af0 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://petstore.swagger.io/v2".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-fetch/builds/multiple-parameters/runtime.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/runtime.ts index 3f125c3b0601..66336fdf7af0 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://petstore.swagger.io/v2".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-fetch/builds/oneOf/runtime.ts b/samples/client/petstore/typescript-fetch/builds/oneOf/runtime.ts index c807c6354f8d..a2ed7dbeee75 100644 --- a/samples/client/petstore/typescript-fetch/builds/oneOf/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/oneOf/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://localhost:3000".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-fetch/builds/prefix-parameter-interfaces/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/runtime.ts index 3f125c3b0601..66336fdf7af0 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://petstore.swagger.io/v2".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-fetch/builds/sagas-and-records/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/runtime.ts index 3f125c3b0601..66336fdf7af0 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://petstore.swagger.io/v2".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-fetch/builds/snakecase-discriminator/runtime.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/runtime.ts index 6d3d965df11d..5d1bc57234da 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://petstore.swagger.io:80/v2".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-fetch/builds/validation-attributes/runtime.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/runtime.ts index 3f125c3b0601..66336fdf7af0 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://petstore.swagger.io/v2".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-fetch/builds/with-interfaces/runtime.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/runtime.ts index 3f125c3b0601..66336fdf7af0 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://petstore.swagger.io/v2".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-fetch/builds/with-npm-version/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/runtime.ts index 3f125c3b0601..66336fdf7af0 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://petstore.swagger.io/v2".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-fetch/builds/with-string-enums/runtime.ts b/samples/client/petstore/typescript-fetch/builds/with-string-enums/runtime.ts index 8095de29bc32..4ad1fcae7653 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-string-enums/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-string-enums/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://localhost:3000".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-fetch/builds/without-runtime-checks/src/runtime.ts b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/runtime.ts index 1d27e4d7e3ba..64dbc185574b 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/runtime.ts @@ -16,16 +16,16 @@ export const BASE_PATH = "http://petstore.swagger.io/v2".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 @@ -374,13 +382,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 { From 79213cae0377a8c0d515720fb1bd34d642ec9a13 Mon Sep 17 00:00:00 2001 From: Adam Clark Date: Sat, 18 Oct 2025 15:24:49 -0700 Subject: [PATCH 04/10] fix: updated sample package-lock.json --- .../builds/with-npm-version/package-lock.json | 312 ++++++++++++------ 1 file changed, 214 insertions(+), 98 deletions(-) diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/package-lock.json b/samples/client/petstore/typescript-axios/builds/with-npm-version/package-lock.json index 40c15631107e..31dcb564035b 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/package-lock.json +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/package-lock.json @@ -1,7 +1,7 @@ { "name": "@openapitools/typescript-axios-petstore", "version": "1.0.0", - "lockfileVersion": 2, + "lockfileVersion": 3, "requires": true, "packages": { "": { @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "Unlicense", "dependencies": { - "axios": "^1.6.1" + "axios": "^1.12.2" }, "devDependencies": { "@types/node": "12.11.5 - 14.14.31", @@ -17,30 +17,47 @@ } }, "node_modules/@types/node": { - "version": "12.20.23", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.23.tgz", - "integrity": "sha512-FW0q7NI8UnjbKrJK8NGr6QXY69ATw9IFe6ItIo5yozPwA9DU/xkhiPddctUVyrmFXvyFYerYgQak/qu200UBDw==", - "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.6.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.1.tgz", - "integrity": "sha512-vfBmhDpKafglh0EldBEbVuoe7DyAavGSLWhuSm5ZSEKQnHhBf0xAAwybbNH1IkrJNGnS/VG4I5yxig1pCEXE4g==", + "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.0", - "form-data": "^4.0.0", + "follow-redirects": "^1.15.6", + "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" }, @@ -52,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.3", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", - "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", + "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" }, @@ -76,22 +154,132 @@ } }, "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "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" } @@ -100,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" }, @@ -110,95 +299,22 @@ "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": "4.6.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz", - "integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==", + "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" }, "engines": { - "node": ">=4.2.0" - } - } - }, - "dependencies": { - "@types/node": { - "version": "12.20.23", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.23.tgz", - "integrity": "sha512-FW0q7NI8UnjbKrJK8NGr6QXY69ATw9IFe6ItIo5yozPwA9DU/xkhiPddctUVyrmFXvyFYerYgQak/qu200UBDw==", - "dev": true - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "axios": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.1.tgz", - "integrity": "sha512-vfBmhDpKafglh0EldBEbVuoe7DyAavGSLWhuSm5ZSEKQnHhBf0xAAwybbNH1IkrJNGnS/VG4I5yxig1pCEXE4g==", - "requires": { - "follow-redirects": "^1.15.0", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" + "node": ">=14.17" } - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" - }, - "follow-redirects": { - "version": "1.15.3", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", - "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==" - }, - "form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - }, - "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==" - }, - "typescript": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz", - "integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==", - "dev": true } } } From 939c0f2fe33feba0823232890678f18ccb4a8f08 Mon Sep 17 00:00:00 2001 From: Adam Clark Date: Sat, 18 Oct 2025 15:46:58 -0700 Subject: [PATCH 05/10] fix: updated docs --- docs/generators/typescript-axios.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/generators/typescript-axios.md b/docs/generators/typescript-axios.md index 66df7b84a90d..71a8343cbc9a 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| From 817a254cd22786290e72c368280c4272831e0bf0 Mon Sep 17 00:00:00 2001 From: Adam Clark Date: Mon, 20 Oct 2025 10:05:25 -0700 Subject: [PATCH 06/10] fix: missing merge conflict resolution --- .../typescript-axios/builds/with-node-imports/configuration.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts index 8c9e6b329a05..79c787cfd564 100644 --- a/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts @@ -28,6 +28,7 @@ export interface ConfigurationParameters { 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 | undefined; From 76ba3e0c6f16a2f9facb6f3938711ad5dda61ef3 Mon Sep 17 00:00:00 2001 From: Adam Clark Date: Mon, 20 Oct 2025 15:02:47 -0700 Subject: [PATCH 07/10] fix: remove superfluous `any | undefined`, add a missing fix for `awsv4` --- .../main/resources/typescript-axios/configuration.mustache | 4 ++-- .../client/echo_api/typescript-axios/build/configuration.ts | 4 ++-- .../with-separate-models-and-api-inheritance/configuration.ts | 4 ++-- .../typescript-axios/builds/composed-schemas/configuration.ts | 4 ++-- .../petstore/typescript-axios/builds/default/configuration.ts | 4 ++-- .../typescript-axios/builds/es6-target/configuration.ts | 4 ++-- .../typescript-axios/builds/test-petstore/configuration.ts | 4 ++-- .../builds/with-complex-headers/configuration.ts | 4 ++-- .../configuration.ts | 4 ++-- .../configuration.ts | 4 ++-- .../typescript-axios/builds/with-interfaces/configuration.ts | 4 ++-- .../builds/with-node-imports/configuration.ts | 4 ++-- .../configuration.ts | 4 ++-- .../typescript-axios/builds/with-npm-version/configuration.ts | 4 ++-- .../builds/with-single-request-parameters/configuration.ts | 4 ++-- .../builds/with-string-enums/configuration.ts | 4 ++-- 16 files changed, 32 insertions(+), 32 deletions(-) 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 48423666f1b4..a73f7d870430 100644 --- a/modules/openapi-generator/src/main/resources/typescript-axios/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-axios/configuration.mustache @@ -21,7 +21,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -55,7 +55,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ diff --git a/samples/client/echo_api/typescript-axios/build/configuration.ts b/samples/client/echo_api/typescript-axios/build/configuration.ts index 4943680e3f91..170ffa4f9460 100644 --- a/samples/client/echo_api/typescript-axios/build/configuration.ts +++ b/samples/client/echo_api/typescript-axios/build/configuration.ts @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ 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 c08185b1262c..26716e0591cb 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 @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ 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 0ad7fba60168..d15067018f76 100644 --- a/samples/client/petstore/typescript-axios/builds/composed-schemas/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/composed-schemas/configuration.ts @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ diff --git a/samples/client/petstore/typescript-axios/builds/default/configuration.ts b/samples/client/petstore/typescript-axios/builds/default/configuration.ts index 79c787cfd564..9d4f1e3d3907 100644 --- a/samples/client/petstore/typescript-axios/builds/default/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/default/configuration.ts @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ 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 79c787cfd564..9d4f1e3d3907 100644 --- a/samples/client/petstore/typescript-axios/builds/es6-target/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/es6-target/configuration.ts @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ 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 931b9c7ff3df..fe022dfee270 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/configuration.ts @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ 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 79c787cfd564..9d4f1e3d3907 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 @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts index 931b9c7ff3df..fe022dfee270 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts index 79c787cfd564..9d4f1e3d3907 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces/configuration.ts index 79c787cfd564..9d4f1e3d3907 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/configuration.ts @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ diff --git a/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts index 79c787cfd564..9d4f1e3d3907 100644 --- a/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/configuration.ts index 79c787cfd564..9d4f1e3d3907 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/configuration.ts @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version/configuration.ts index 79c787cfd564..9d4f1e3d3907 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/configuration.ts @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ diff --git a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts index 79c787cfd564..9d4f1e3d3907 100644 --- a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ diff --git a/samples/client/petstore/typescript-axios/builds/with-string-enums/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-string-enums/configuration.ts index 79c787cfd564..9d4f1e3d3907 100644 --- a/samples/client/petstore/typescript-axios/builds/with-string-enums/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-string-enums/configuration.ts @@ -31,7 +31,7 @@ export interface ConfigurationParameters { awsv4?: AWSv4Configuration | undefined; basePath?: string | undefined; serverIndex?: number | undefined; - baseOptions?: any | undefined; + baseOptions?: any; formDataCtor?: (new () => any) | undefined; } @@ -65,7 +65,7 @@ export class Configuration { * @param {string} credentials.sessionToken - aws session token * @memberof Configuration */ - awsv4?: AWSv4Configuration; + awsv4?: AWSv4Configuration | undefined; /** * override base path */ From cdde08e950434d2c5628ded48b4b79b1a3d5e631 Mon Sep 17 00:00:00 2001 From: Adam Clark Date: Mon, 20 Oct 2025 15:03:14 -0700 Subject: [PATCH 08/10] fix: restore eslint-disable annotation --- .../src/main/resources/typescript-axios/configuration.mustache | 1 + 1 file changed, 1 insertion(+) 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 a73f7d870430..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 { From 1f4aa3bc4110691b98e760f028739721831dd269 Mon Sep 17 00:00:00 2001 From: Adam Clark Date: Mon, 20 Oct 2025 16:14:36 -0700 Subject: [PATCH 09/10] chore: regenerate samples --- samples/client/echo_api/typescript-axios/build/configuration.ts | 1 + .../with-separate-models-and-api-inheritance/configuration.ts | 1 + .../typescript-axios/builds/composed-schemas/configuration.ts | 1 + .../petstore/typescript-axios/builds/default/configuration.ts | 1 + .../petstore/typescript-axios/builds/es6-target/configuration.ts | 1 + .../typescript-axios/builds/test-petstore/configuration.ts | 1 + .../builds/with-complex-headers/configuration.ts | 1 + .../configuration.ts | 1 + .../configuration.ts | 1 + .../typescript-axios/builds/with-interfaces/configuration.ts | 1 + .../typescript-axios/builds/with-node-imports/configuration.ts | 1 + .../configuration.ts | 1 + .../typescript-axios/builds/with-npm-version/configuration.ts | 1 + .../builds/with-single-request-parameters/configuration.ts | 1 + .../typescript-axios/builds/with-string-enums/configuration.ts | 1 + 15 files changed, 15 insertions(+) diff --git a/samples/client/echo_api/typescript-axios/build/configuration.ts b/samples/client/echo_api/typescript-axios/build/configuration.ts index 170ffa4f9460..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 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 26716e0591cb..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) 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 d15067018f76..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) diff --git a/samples/client/petstore/typescript-axios/builds/default/configuration.ts b/samples/client/petstore/typescript-axios/builds/default/configuration.ts index 9d4f1e3d3907..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. 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 9d4f1e3d3907..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. 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 fe022dfee270..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: \" \\ 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 9d4f1e3d3907..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. diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts index fe022dfee270..b7abbf0eb89b 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/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: \" \\ diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts index 9d4f1e3d3907..bd64ab798270 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces-and-with-single-request-param/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. diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-interfaces/configuration.ts index 9d4f1e3d3907..bd64ab798270 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/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. diff --git a/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts index 9d4f1e3d3907..bd64ab798270 100644 --- a/samples/client/petstore/typescript-axios/builds/with-node-imports/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-node-imports/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. diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/configuration.ts index 9d4f1e3d3907..bd64ab798270 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/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. diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-npm-version/configuration.ts index 9d4f1e3d3907..bd64ab798270 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/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. diff --git a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts index 9d4f1e3d3907..bd64ab798270 100644 --- a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/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. diff --git a/samples/client/petstore/typescript-axios/builds/with-string-enums/configuration.ts b/samples/client/petstore/typescript-axios/builds/with-string-enums/configuration.ts index 9d4f1e3d3907..bd64ab798270 100644 --- a/samples/client/petstore/typescript-axios/builds/with-string-enums/configuration.ts +++ b/samples/client/petstore/typescript-axios/builds/with-string-enums/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. From 61cbf951f1430bc26674093b51417c175b0f377f Mon Sep 17 00:00:00 2001 From: Adam Clark Date: Tue, 21 Oct 2025 10:44:13 -0700 Subject: [PATCH 10/10] fix: update sample package-lock.json files --- .../typescript-axios/build/package-lock.json | 216 +++++- .../typescript-axios/test/package-lock.json | 661 +++++++++--------- 2 files changed, 514 insertions(+), 363 deletions(-) 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/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" },