diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/ApiEntitiesRecord.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/ApiEntitiesRecord.mustache index d0b6c4cb269e..2644d7dd1aff 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/ApiEntitiesRecord.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/ApiEntitiesRecord.mustache @@ -1,14 +1,14 @@ -import {Map, Record, RecordOf} from 'immutable'; +import { Map, Record, RecordOf } from 'immutable'; -import { {{#models}} {{#model}} {{#isEntity}} +import { {{classname}}RecordEntity, +} from "./models/{{classname}}{{importFileExtension}}" {{/isEntity}} {{/model}} {{/models}} -} from "./models/index{{importFileExtension}}" export const ApiEntitiesRecordProps = { recType: "ApiEntitiesRecord" as "ApiEntitiesRecord", diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/ApiEntitiesReducer.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/ApiEntitiesReducer.mustache index 781fc5129f05..50b76da708b7 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/ApiEntitiesReducer.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/ApiEntitiesReducer.mustache @@ -1,6 +1,6 @@ -import {ApiEntitiesRecord} from "./ApiEntitiesRecord{{importFileExtension}}"; -import {ReducerBuilder} from "redux-ts-simple"; -import {normalizedEntities} from "./runtimeSagasAndRecords{{importFileExtension}}"; +import { ApiEntitiesRecord } from "./ApiEntitiesRecord{{importFileExtension}}"; +import { ReducerBuilder } from "redux-ts-simple"; +import { normalizedEntities } from "./runtimeSagasAndRecords{{importFileExtension}}"; export const ApiEntitiesReducer = new ReducerBuilder(ApiEntitiesRecord()) .on(normalizedEntities, (state, action): ApiEntitiesRecord => { diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/allSagas.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/allSagas.mustache index b756ab47c2c7..911a8fe9ed37 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/allSagas.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/allSagas.mustache @@ -1,12 +1,12 @@ -import {all, fork} from "redux-saga/effects"; +import { all, fork } from "redux-saga/effects"; -import { {{#apiInfo}} {{#apis}} +import { {{#lambda.camelcase}}{{classFilename}}{{/lambda.camelcase}}AllSagas, +} from "./{{classFilename}}{{importFileExtension}}"; {{/apis}} {{/apiInfo}} -} from "./index{{importFileExtension}}"; export function *allApiSagas() { yield all([ 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 5c99230c73f0..0227293a13bb 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/apis.mustache @@ -2,23 +2,23 @@ /* eslint-disable */ {{>licenseInfo}} - import * as runtime from '../runtime{{importFileExtension}}'; -{{#imports.0}} +{{#withoutRuntimeChecks}} import type { - {{#imports}} - {{className}}, - {{/imports}} +{{#imports}} + {{className}}, +{{/imports}} } from '../models/index{{importFileExtension}}'; +{{/withoutRuntimeChecks}} {{^withoutRuntimeChecks}} +{{#imports}} import { - {{#imports}} + type {{className}}, {{className}}FromJSON, {{className}}ToJSON, - {{/imports}} -} from '../models/index{{importFileExtension}}'; +} from '../models/{{className}}{{importFileExtension}}'; +{{/imports}} {{/withoutRuntimeChecks}} -{{/imports.0}} {{#operations}} {{#operation}} diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/recordGeneric.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/recordGeneric.mustache index 819a29e44ee8..188b2addea88 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/recordGeneric.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/recordGeneric.mustache @@ -1,8 +1,8 @@ -import {ApiRecordUtils, knownRecordFactories{{#returnPassthrough}}, appFromJS, NormalizedRecordEntities{{/returnPassthrough}}} from "../runtimeSagasAndRecords{{importFileExtension}}"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors{{importFileExtension}}" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories{{#returnPassthrough}}, appFromJS, NormalizedRecordEntities{{/returnPassthrough}} } from "../runtimeSagasAndRecords{{importFileExtension}}"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors{{importFileExtension}}" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { {{classname}}, 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..d29baae425a7 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache @@ -2,7 +2,6 @@ /* eslint-disable */ {{>licenseInfo}} - export const BASE_PATH = "{{{basePath}}}".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/runtimeSagasAndRecords.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/runtimeSagasAndRecords.mustache index 5c6c927648f6..7e83c056b130 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/runtimeSagasAndRecords.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/runtimeSagasAndRecords.mustache @@ -1,9 +1,9 @@ /* tslint:disable */ /* eslint-disable */ -import {fromJS as originalFromJS, isIndexed, List, Map as ImmMap, RecordOf} from 'immutable'; -import {normalize, NormalizedSchema, schema, Schema} from "normalizr"; -import {ActionDefinition, createAction} from "redux-ts-simple"; +import { fromJS as originalFromJS, isIndexed, List, Map as ImmMap, RecordOf } from 'immutable'; +import { normalize, NormalizedSchema, schema, Schema } from "normalizr"; +import { ActionDefinition, createAction } from "redux-ts-simple"; export const knownRecordFactories = new Map(); export const knownIndexedSetByKey: (string | number)[] = []; diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/sagaApiManager.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/sagaApiManager.mustache index d8979fd9eda3..456f00512c0f 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/sagaApiManager.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/sagaApiManager.mustache @@ -1,15 +1,15 @@ import { Configuration, ConfigurationParameters, -} from "../index{{importFileExtension}}"; +} from "../runtime{{importFileExtension}}"; -import { {{#apiInfo}} {{#apis}} +import { {{classFilename}}, +} from "./{{classFilename}}{{importFileExtension}}"; {{/apis}} {{/apiInfo}} -} from "./index{{importFileExtension}}"; export class Api { {{#apiInfo}} 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..1d63188c74c8 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/sagas.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/sagas.mustache @@ -2,25 +2,26 @@ /* eslint-disable */ {{>licenseInfo}} +import { Api } from './index{{importFileExtension}}'; +import { List } from 'immutable'; +import { all, fork, put, takeLatest } from "redux-saga/effects"; +import { apiCall, createSagaAction as originalCreateSagaAction, BaseEntitySupportPayloadApiAction, BasePayloadApiAction, NormalizedRecordEntities, normalizedEntities } from "../runtimeSagasAndRecords{{importFileExtension}}"; +import { Action } from "redux-ts-simple"; -import {Api} from './index{{importFileExtension}}'; -import {List} from 'immutable'; -import {all, fork, put, takeLatest} from "redux-saga/effects"; -import {apiCall, createSagaAction as originalCreateSagaAction, BaseEntitySupportPayloadApiAction, BasePayloadApiAction, NormalizedRecordEntities, normalizedEntities} from "../runtimeSagasAndRecords{{importFileExtension}}"; -import {Action} from "redux-ts-simple"; - -{{#imports.0}} +{{#imports}} import { - {{#imports}} {{className}}, +} from '../models/{{className}}{{importFileExtension}}'; +import { {{className}}Record, {{#lambda.camelcase}}{{classname}}{{/lambda.camelcase}}RecordUtils, - {{/imports}} - {{#passthroughImports}} +} from '../models/{{className}}Record{{importFileExtension}}'; +{{/imports}} +{{#passthroughImports}} +import { {{.}}, - {{/passthroughImports}} -} from '../models/index{{importFileExtension}}'; -{{/imports.0}} +} from '../models/{{.}}{{importFileExtension}}'; +{{/passthroughImports}} {{#hasEnums}} {{#operations}} {{#operation}} diff --git a/samples/client/others/typescript-fetch/infinite-recursion-issue/apis/TestApi.ts b/samples/client/others/typescript-fetch/infinite-recursion-issue/apis/TestApi.ts index ba47bcab5145..72cc787266be 100644 --- a/samples/client/others/typescript-fetch/infinite-recursion-issue/apis/TestApi.ts +++ b/samples/client/others/typescript-fetch/infinite-recursion-issue/apis/TestApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - TestBaseDto, -} from '../models/index'; import { + type TestBaseDto, TestBaseDtoFromJSON, TestBaseDtoToJSON, -} from '../models/index'; +} from '../models/TestBaseDto'; /** * 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..424ca7cadae6 100644 --- a/samples/client/others/typescript-fetch/infinite-recursion-issue/runtime.ts +++ b/samples/client/others/typescript-fetch/infinite-recursion-issue/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://localhost:8080".replace(/\/+$/, ""); export interface ConfigurationParameters { 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..a39eb5e51591 100644 --- a/samples/client/others/typescript-fetch/self-import-issue/runtime.ts +++ b/samples/client/others/typescript-fetch/self-import-issue/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://localhost".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/apis/DefaultApi.ts index ae2d4c75887f..fe6d3a50e528 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/apis/DefaultApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Club, -} from '../models/index'; import { + type Club, ClubFromJSON, ClubToJSON, -} from '../models/index'; +} from '../models/Club'; export interface ListRequest { personId: string; 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..92307fa05429 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-nullable/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-nullable/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://api.example.xyz/v1".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/apis/DefaultApi.ts index ae2d4c75887f..fe6d3a50e528 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/apis/DefaultApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Club, -} from '../models/index'; import { + type Club, ClubFromJSON, ClubToJSON, -} from '../models/index'; +} from '../models/Club'; export interface ListRequest { personId: string; 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..92307fa05429 100644 --- a/samples/client/petstore/typescript-fetch/builds/allOf-readonly/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/allOf-readonly/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://api.example.xyz/v1".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/AnotherFakeApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/AnotherFakeApi.ts index f5ba5857f5c5..0a7815a78af9 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/AnotherFakeApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/AnotherFakeApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Client, -} from '../models/index'; import { + type Client, ClientFromJSON, ClientToJSON, -} from '../models/index'; +} from '../models/Client'; export interface 123testSpecialTagsRequest { client: Client; diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/DefaultApi.ts index ce1e24dc07f2..bd7085753bfb 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/DefaultApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - FooGetDefaultResponse, -} from '../models/index'; import { + type FooGetDefaultResponse, FooGetDefaultResponseFromJSON, FooGetDefaultResponseToJSON, -} from '../models/index'; +} from '../models/FooGetDefaultResponse'; /** * 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 0eef4125671b..75fccf48d5b0 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 @@ -12,45 +12,62 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - ChildWithNullable, - Client, - EnumClass, - FakeBigDecimalMap200Response, - FileSchemaTestClass, - HealthCheckResult, - OuterComposite, - OuterObjectWithEnumProperty, - Pet, - TestInlineFreeformAdditionalPropertiesRequest, - User, -} from '../models/index'; import { + type ChildWithNullable, ChildWithNullableFromJSON, ChildWithNullableToJSON, +} from '../models/ChildWithNullable'; +import { + type Client, ClientFromJSON, ClientToJSON, +} from '../models/Client'; +import { + type EnumClass, EnumClassFromJSON, EnumClassToJSON, +} from '../models/EnumClass'; +import { + type FakeBigDecimalMap200Response, FakeBigDecimalMap200ResponseFromJSON, FakeBigDecimalMap200ResponseToJSON, +} from '../models/FakeBigDecimalMap200Response'; +import { + type FileSchemaTestClass, FileSchemaTestClassFromJSON, FileSchemaTestClassToJSON, +} from '../models/FileSchemaTestClass'; +import { + type HealthCheckResult, HealthCheckResultFromJSON, HealthCheckResultToJSON, +} from '../models/HealthCheckResult'; +import { + type OuterComposite, OuterCompositeFromJSON, OuterCompositeToJSON, +} from '../models/OuterComposite'; +import { + type OuterObjectWithEnumProperty, OuterObjectWithEnumPropertyFromJSON, OuterObjectWithEnumPropertyToJSON, +} from '../models/OuterObjectWithEnumProperty'; +import { + type Pet, PetFromJSON, PetToJSON, +} from '../models/Pet'; +import { + type TestInlineFreeformAdditionalPropertiesRequest, TestInlineFreeformAdditionalPropertiesRequestFromJSON, TestInlineFreeformAdditionalPropertiesRequestToJSON, +} from '../models/TestInlineFreeformAdditionalPropertiesRequest'; +import { + type User, UserFromJSON, UserToJSON, -} from '../models/index'; +} from '../models/User'; export interface FakeHttpSignatureTestRequest { pet: Pet; diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeClassnameTags123Api.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeClassnameTags123Api.ts index cdefdb8e7951..0236073acb8a 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeClassnameTags123Api.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeClassnameTags123Api.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Client, -} from '../models/index'; import { + type Client, ClientFromJSON, ClientToJSON, -} from '../models/index'; +} from '../models/Client'; export interface TestClassnameRequest { client: Client; 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..fc79d795f1c3 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 @@ -12,18 +12,17 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - ModelApiResponse, - Pet, -} from '../models/index'; import { + type ModelApiResponse, ModelApiResponseFromJSON, ModelApiResponseToJSON, +} from '../models/ModelApiResponse'; +import { + type Pet, PetFromJSON, PetToJSON, -} from '../models/index'; +} from '../models/Pet'; export interface AddPetRequest { pet: Pet; diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/StoreApi.ts index 3ba8c2cab723..f03d6c2fae65 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/StoreApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Order, -} from '../models/index'; import { + type Order, OrderFromJSON, OrderToJSON, -} from '../models/index'; +} from '../models/Order'; export interface DeleteOrderRequest { orderId: string; diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/UserApi.ts index 83a5374e23a5..0db0d891a5f2 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/UserApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - User, -} from '../models/index'; import { + type User, UserFromJSON, UserToJSON, -} from '../models/index'; +} from '../models/User'; export interface CreateUserRequest { user: User; 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..2738678aa8e3 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 @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io:80/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { 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..9e59db7ee9f8 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts @@ -12,18 +12,17 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - ModelApiResponse, - Pet, -} from '../models/index'; import { + type ModelApiResponse, ModelApiResponseFromJSON, ModelApiResponseToJSON, +} from '../models/ModelApiResponse'; +import { + type Pet, PetFromJSON, PetToJSON, -} from '../models/index'; +} from '../models/Pet'; export interface AddPetRequest { body: Pet; diff --git a/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts index 0bcfdbf84600..b5f61e3713aa 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/apis/StoreApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Order, -} from '../models/index'; import { + type Order, OrderFromJSON, OrderToJSON, -} from '../models/index'; +} from '../models/Order'; export interface DeleteOrderRequest { orderId: string; diff --git a/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts index 43799227666d..697a7a6cb9d8 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/apis/UserApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - User, -} from '../models/index'; import { + type User, UserFromJSON, UserToJSON, -} from '../models/index'; +} from '../models/User'; export interface CreateUserRequest { body: User; diff --git a/samples/client/petstore/typescript-fetch/builds/default/runtime.ts b/samples/client/petstore/typescript-fetch/builds/default/runtime.ts index 3f125c3b0601..cacafc93eef3 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { 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..adf876bc336e 100644 --- a/samples/client/petstore/typescript-fetch/builds/enum/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/enum/apis/DefaultApi.ts @@ -12,24 +12,27 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - EnumPatternObject, - FakeEnumRequestGetInline200Response, - NumberEnum, - StringEnum, -} from '../models/index'; import { + type EnumPatternObject, EnumPatternObjectFromJSON, EnumPatternObjectToJSON, +} from '../models/EnumPatternObject'; +import { + type FakeEnumRequestGetInline200Response, FakeEnumRequestGetInline200ResponseFromJSON, FakeEnumRequestGetInline200ResponseToJSON, +} from '../models/FakeEnumRequestGetInline200Response'; +import { + type NumberEnum, NumberEnumFromJSON, NumberEnumToJSON, +} from '../models/NumberEnum'; +import { + type StringEnum, StringEnumFromJSON, StringEnumToJSON, -} from '../models/index'; +} from '../models/StringEnum'; export interface FakeEnumRequestGetInlineRequest { stringEnum?: FakeEnumRequestGetInlineStringEnumEnum; diff --git a/samples/client/petstore/typescript-fetch/builds/enum/runtime.ts b/samples/client/petstore/typescript-fetch/builds/enum/runtime.ts index 8095de29bc32..748dbfca7a3c 100644 --- a/samples/client/petstore/typescript-fetch/builds/enum/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/enum/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://localhost:3000".replace(/\/+$/, ""); export interface ConfigurationParameters { 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..9e59db7ee9f8 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 @@ -12,18 +12,17 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - ModelApiResponse, - Pet, -} from '../models/index'; import { + type ModelApiResponse, ModelApiResponseFromJSON, ModelApiResponseToJSON, +} from '../models/ModelApiResponse'; +import { + type Pet, PetFromJSON, PetToJSON, -} from '../models/index'; +} from '../models/Pet'; export interface AddPetRequest { body: Pet; diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts index 0bcfdbf84600..b5f61e3713aa 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/StoreApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Order, -} from '../models/index'; import { + type Order, OrderFromJSON, OrderToJSON, -} from '../models/index'; +} from '../models/Order'; export interface DeleteOrderRequest { orderId: string; diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts index 43799227666d..697a7a6cb9d8 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/apis/UserApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - User, -} from '../models/index'; import { + type User, UserFromJSON, UserToJSON, -} from '../models/index'; +} from '../models/User'; export interface CreateUserRequest { body: User; 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..cacafc93eef3 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 @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { 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..2e30a96eeb41 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 @@ -12,18 +12,17 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - ModelApiResponse, - Pet, -} from '../models/index'; import { + type ModelApiResponse, ModelApiResponseFromJSON, ModelApiResponseToJSON, +} from '../models/ModelApiResponse'; +import { + type Pet, PetFromJSON, PetToJSON, -} from '../models/index'; +} from '../models/Pet'; export interface AddPetRequest { body: Pet; diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/StoreApi.ts index b3a1f18a31ce..3b0b8881be25 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/StoreApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Order, -} from '../models/index'; import { + type Order, OrderFromJSON, OrderToJSON, -} from '../models/index'; +} from '../models/Order'; export interface DeleteOrderRequest { orderId: string; diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/UserApi.ts index eb9fbebf507e..d1a26626f96e 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/apis/UserApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - User, -} from '../models/index'; import { + type User, UserFromJSON, UserToJSON, -} from '../models/index'; +} from '../models/User'; export interface CreateUserRequest { body: User; 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..cacafc93eef3 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/oneOf/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/oneOf/apis/DefaultApi.ts index 4d855b758fb7..85ae1088a364 100644 --- a/samples/client/petstore/typescript-fetch/builds/oneOf/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/oneOf/apis/DefaultApi.ts @@ -12,21 +12,22 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - TestArrayResponse, - TestDiscriminatorResponse, - TestResponse, -} from '../models/index'; import { + type TestArrayResponse, TestArrayResponseFromJSON, TestArrayResponseToJSON, +} from '../models/TestArrayResponse'; +import { + type TestDiscriminatorResponse, TestDiscriminatorResponseFromJSON, TestDiscriminatorResponseToJSON, +} from '../models/TestDiscriminatorResponse'; +import { + type TestResponse, TestResponseFromJSON, TestResponseToJSON, -} from '../models/index'; +} from '../models/TestResponse'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/oneOf/runtime.ts b/samples/client/petstore/typescript-fetch/builds/oneOf/runtime.ts index c807c6354f8d..b1cf05047a1c 100644 --- a/samples/client/petstore/typescript-fetch/builds/oneOf/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/oneOf/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://localhost:3000".replace(/\/+$/, ""); export interface ConfigurationParameters { 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..7fddfc1e4859 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 @@ -12,18 +12,17 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - ModelApiResponse, - Pet, -} from '../models/index'; import { + type ModelApiResponse, ModelApiResponseFromJSON, ModelApiResponseToJSON, +} from '../models/ModelApiResponse'; +import { + type Pet, PetFromJSON, PetToJSON, -} from '../models/index'; +} from '../models/Pet'; export interface PetApiAddPetRequest { body: Pet; diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts index c0a916bebe98..122c2edfb2e3 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/StoreApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Order, -} from '../models/index'; import { + type Order, OrderFromJSON, OrderToJSON, -} from '../models/index'; +} from '../models/Order'; export interface StoreApiDeleteOrderRequest { orderId: string; diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts index 6b8bd7d113b5..24e991a2637a 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/apis/UserApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - User, -} from '../models/index'; import { + type User, UserFromJSON, UserToJSON, -} from '../models/index'; +} from '../models/User'; export interface UserApiCreateUserRequest { body: User; 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..cacafc93eef3 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 @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/ApiEntitiesRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/ApiEntitiesRecord.ts index ca7044f65375..568ca14a1d10 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/ApiEntitiesRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/ApiEntitiesRecord.ts @@ -1,12 +1,20 @@ -import {Map, Record, RecordOf} from 'immutable'; +import { Map, Record, RecordOf } from 'immutable'; import { CategoryRecordEntity, +} from "./models/Category" +import { OrderRecordEntity, +} from "./models/Order" +import { PetRecordEntity, +} from "./models/Pet" +import { TagRecordEntity, +} from "./models/Tag" +import { UserRecordEntity, -} from "./models/index" +} from "./models/User" export const ApiEntitiesRecordProps = { recType: "ApiEntitiesRecord" as "ApiEntitiesRecord", diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/ApiEntitiesReducer.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/ApiEntitiesReducer.ts index 539e8624a02a..cb6326b35781 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/ApiEntitiesReducer.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/ApiEntitiesReducer.ts @@ -1,6 +1,6 @@ -import {ApiEntitiesRecord} from "./ApiEntitiesRecord"; -import {ReducerBuilder} from "redux-ts-simple"; -import {normalizedEntities} from "./runtimeSagasAndRecords"; +import { ApiEntitiesRecord } from "./ApiEntitiesRecord"; +import { ReducerBuilder } from "redux-ts-simple"; +import { normalizedEntities } from "./runtimeSagasAndRecords"; export const ApiEntitiesReducer = new ReducerBuilder(ApiEntitiesRecord()) .on(normalizedEntities, (state, action): ApiEntitiesRecord => { diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApi.ts index eaee9f44b95e..3a0763322812 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApi.ts @@ -12,18 +12,17 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - GetBehaviorPermissionsResponse, - GetBehaviorTypeResponse, -} from '../models/index'; import { + type GetBehaviorPermissionsResponse, GetBehaviorPermissionsResponseFromJSON, GetBehaviorPermissionsResponseToJSON, +} from '../models/GetBehaviorPermissionsResponse'; +import { + type GetBehaviorTypeResponse, GetBehaviorTypeResponseFromJSON, GetBehaviorTypeResponseToJSON, -} from '../models/index'; +} from '../models/GetBehaviorTypeResponse'; export interface GetBehaviorPermissionsRequest { behaviorId: number; diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApiSagas.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApiSagas.ts index 14b123ff5450..a695115b9a83 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApiSagas.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/BehaviorApiSagas.ts @@ -12,22 +12,29 @@ * Do not edit the class manually. */ - -import {Api} from './index'; -import {List} from 'immutable'; -import {all, fork, put, takeLatest} from "redux-saga/effects"; -import {apiCall, createSagaAction as originalCreateSagaAction, BaseEntitySupportPayloadApiAction, BasePayloadApiAction, NormalizedRecordEntities, normalizedEntities} from "../runtimeSagasAndRecords"; -import {Action} from "redux-ts-simple"; +import { Api } from './index'; +import { List } from 'immutable'; +import { all, fork, put, takeLatest } from "redux-saga/effects"; +import { apiCall, createSagaAction as originalCreateSagaAction, BaseEntitySupportPayloadApiAction, BasePayloadApiAction, NormalizedRecordEntities, normalizedEntities } from "../runtimeSagasAndRecords"; +import { Action } from "redux-ts-simple"; import { GetBehaviorPermissionsResponse, +} from '../models/GetBehaviorPermissionsResponse'; +import { GetBehaviorPermissionsResponseRecord, getBehaviorPermissionsResponseRecordUtils, +} from '../models/GetBehaviorPermissionsResponseRecord'; +import { GetBehaviorTypeResponse, +} from '../models/GetBehaviorTypeResponse'; +import { GetBehaviorTypeResponseRecord, getBehaviorTypeResponseRecordUtils, +} from '../models/GetBehaviorTypeResponseRecord'; +import { BehaviorType, -} from '../models/index'; +} from '../models/BehaviorType'; const createSagaAction = (type: string) => originalCreateSagaAction(type, {namespace: "api_behaviorApi"}); 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..c76fc074bcd4 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 @@ -12,30 +12,37 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Category, - FindPetsByStatusResponse, - FindPetsByUserResponse, - ModelApiResponse, - Pet, - PetRegionsResponse, -} from '../models/index'; import { + type Category, CategoryFromJSON, CategoryToJSON, +} from '../models/Category'; +import { + type FindPetsByStatusResponse, FindPetsByStatusResponseFromJSON, FindPetsByStatusResponseToJSON, +} from '../models/FindPetsByStatusResponse'; +import { + type FindPetsByUserResponse, FindPetsByUserResponseFromJSON, FindPetsByUserResponseToJSON, +} from '../models/FindPetsByUserResponse'; +import { + type ModelApiResponse, ModelApiResponseFromJSON, ModelApiResponseToJSON, +} from '../models/ModelApiResponse'; +import { + type Pet, PetFromJSON, PetToJSON, +} from '../models/Pet'; +import { + type PetRegionsResponse, PetRegionsResponseFromJSON, PetRegionsResponseToJSON, -} from '../models/index'; +} from '../models/PetRegionsResponse'; export interface AddPetRequest { dummyCat: Category; 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..ebc4890d7057 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 @@ -12,34 +12,57 @@ * Do not edit the class manually. */ - -import {Api} from './index'; -import {List} from 'immutable'; -import {all, fork, put, takeLatest} from "redux-saga/effects"; -import {apiCall, createSagaAction as originalCreateSagaAction, BaseEntitySupportPayloadApiAction, BasePayloadApiAction, NormalizedRecordEntities, normalizedEntities} from "../runtimeSagasAndRecords"; -import {Action} from "redux-ts-simple"; +import { Api } from './index'; +import { List } from 'immutable'; +import { all, fork, put, takeLatest } from "redux-saga/effects"; +import { apiCall, createSagaAction as originalCreateSagaAction, BaseEntitySupportPayloadApiAction, BasePayloadApiAction, NormalizedRecordEntities, normalizedEntities } from "../runtimeSagasAndRecords"; +import { Action } from "redux-ts-simple"; import { Category, +} from '../models/Category'; +import { CategoryRecord, categoryRecordUtils, +} from '../models/CategoryRecord'; +import { FindPetsByStatusResponse, +} from '../models/FindPetsByStatusResponse'; +import { FindPetsByStatusResponseRecord, findPetsByStatusResponseRecordUtils, +} from '../models/FindPetsByStatusResponseRecord'; +import { FindPetsByUserResponse, +} from '../models/FindPetsByUserResponse'; +import { FindPetsByUserResponseRecord, findPetsByUserResponseRecordUtils, +} from '../models/FindPetsByUserResponseRecord'; +import { ModelApiResponse, +} from '../models/ModelApiResponse'; +import { ModelApiResponseRecord, modelApiResponseRecordUtils, +} from '../models/ModelApiResponseRecord'; +import { Pet, +} from '../models/Pet'; +import { PetRecord, petRecordUtils, +} from '../models/PetRecord'; +import { PetRegionsResponse, +} from '../models/PetRegionsResponse'; +import { PetRegionsResponseRecord, petRegionsResponseRecordUtils, +} from '../models/PetRegionsResponseRecord'; +import { UserRecord, -} from '../models/index'; +} from '../models/UserRecord'; import { FindPetsByStatusStatusEnum, 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..8da10455c2f0 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 @@ -12,18 +12,17 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - GetMatchingPartsResponse, - GetPetPartTypeResponse, -} from '../models/index'; import { + type GetMatchingPartsResponse, GetMatchingPartsResponseFromJSON, GetMatchingPartsResponseToJSON, +} from '../models/GetMatchingPartsResponse'; +import { + type GetPetPartTypeResponse, GetPetPartTypeResponseFromJSON, GetPetPartTypeResponseToJSON, -} from '../models/index'; +} from '../models/GetPetPartTypeResponse'; export interface GetFakePetPartTypeRequest { fakePetPartId: number; 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..65cf7bfd7b21 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 @@ -12,23 +12,32 @@ * Do not edit the class manually. */ - -import {Api} from './index'; -import {List} from 'immutable'; -import {all, fork, put, takeLatest} from "redux-saga/effects"; -import {apiCall, createSagaAction as originalCreateSagaAction, BaseEntitySupportPayloadApiAction, BasePayloadApiAction, NormalizedRecordEntities, normalizedEntities} from "../runtimeSagasAndRecords"; -import {Action} from "redux-ts-simple"; +import { Api } from './index'; +import { List } from 'immutable'; +import { all, fork, put, takeLatest } from "redux-saga/effects"; +import { apiCall, createSagaAction as originalCreateSagaAction, BaseEntitySupportPayloadApiAction, BasePayloadApiAction, NormalizedRecordEntities, normalizedEntities } from "../runtimeSagasAndRecords"; +import { Action } from "redux-ts-simple"; import { GetMatchingPartsResponse, +} from '../models/GetMatchingPartsResponse'; +import { GetMatchingPartsResponseRecord, getMatchingPartsResponseRecordUtils, +} from '../models/GetMatchingPartsResponseRecord'; +import { GetPetPartTypeResponse, +} from '../models/GetPetPartTypeResponse'; +import { GetPetPartTypeResponseRecord, getPetPartTypeResponseRecordUtils, +} from '../models/GetPetPartTypeResponseRecord'; +import { MatchingPartsRecord, +} from '../models/MatchingPartsRecord'; +import { PetPartType, -} from '../models/index'; +} from '../models/PetPartType'; const createSagaAction = (type: string) => originalCreateSagaAction(type, {namespace: "api_petPartApi"}); diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/SagaApiManager.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/SagaApiManager.ts index 9a4203b48805..0b290058cc05 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/SagaApiManager.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/SagaApiManager.ts @@ -1,15 +1,23 @@ import { Configuration, ConfigurationParameters, -} from "../index"; +} from "../runtime"; import { BehaviorApi, +} from "./BehaviorApi"; +import { PetApi, +} from "./PetApi"; +import { PetPartApi, +} from "./PetPartApi"; +import { StoreApi, +} from "./StoreApi"; +import { UserApi, -} from "./index"; +} from "./UserApi"; export class Api { public static behaviorApi: BehaviorApi; diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApi.ts index b3a1f18a31ce..3b0b8881be25 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Order, -} from '../models/index'; import { + type Order, OrderFromJSON, OrderToJSON, -} from '../models/index'; +} from '../models/Order'; export interface DeleteOrderRequest { orderId: string; diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApiSagas.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApiSagas.ts index ba4a4e32e8fa..919fa9a9e14d 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApiSagas.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/StoreApiSagas.ts @@ -12,18 +12,19 @@ * Do not edit the class manually. */ - -import {Api} from './index'; -import {List} from 'immutable'; -import {all, fork, put, takeLatest} from "redux-saga/effects"; -import {apiCall, createSagaAction as originalCreateSagaAction, BaseEntitySupportPayloadApiAction, BasePayloadApiAction, NormalizedRecordEntities, normalizedEntities} from "../runtimeSagasAndRecords"; -import {Action} from "redux-ts-simple"; +import { Api } from './index'; +import { List } from 'immutable'; +import { all, fork, put, takeLatest } from "redux-saga/effects"; +import { apiCall, createSagaAction as originalCreateSagaAction, BaseEntitySupportPayloadApiAction, BasePayloadApiAction, NormalizedRecordEntities, normalizedEntities } from "../runtimeSagasAndRecords"; +import { Action } from "redux-ts-simple"; import { Order, +} from '../models/Order'; +import { OrderRecord, orderRecordUtils, -} from '../models/index'; +} from '../models/OrderRecord'; const createSagaAction = (type: string) => originalCreateSagaAction(type, {namespace: "api_storeApi"}); diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApi.ts index 3c7d7dd91a53..406253c7471e 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApi.ts @@ -12,18 +12,17 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - DefaultMetaOnlyResponse, - User, -} from '../models/index'; import { + type DefaultMetaOnlyResponse, DefaultMetaOnlyResponseFromJSON, DefaultMetaOnlyResponseToJSON, +} from '../models/DefaultMetaOnlyResponse'; +import { + type User, UserFromJSON, UserToJSON, -} from '../models/index'; +} from '../models/User'; export interface CreateUserRequest { body: User; diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApiSagas.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApiSagas.ts index ccb9c7614c92..63865345d2ce 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApiSagas.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/UserApiSagas.ts @@ -12,21 +12,26 @@ * Do not edit the class manually. */ - -import {Api} from './index'; -import {List} from 'immutable'; -import {all, fork, put, takeLatest} from "redux-saga/effects"; -import {apiCall, createSagaAction as originalCreateSagaAction, BaseEntitySupportPayloadApiAction, BasePayloadApiAction, NormalizedRecordEntities, normalizedEntities} from "../runtimeSagasAndRecords"; -import {Action} from "redux-ts-simple"; +import { Api } from './index'; +import { List } from 'immutable'; +import { all, fork, put, takeLatest } from "redux-saga/effects"; +import { apiCall, createSagaAction as originalCreateSagaAction, BaseEntitySupportPayloadApiAction, BasePayloadApiAction, NormalizedRecordEntities, normalizedEntities } from "../runtimeSagasAndRecords"; +import { Action } from "redux-ts-simple"; import { DefaultMetaOnlyResponse, +} from '../models/DefaultMetaOnlyResponse'; +import { DefaultMetaOnlyResponseRecord, defaultMetaOnlyResponseRecordUtils, +} from '../models/DefaultMetaOnlyResponseRecord'; +import { User, +} from '../models/User'; +import { UserRecord, userRecordUtils, -} from '../models/index'; +} from '../models/UserRecord'; const createSagaAction = (type: string) => originalCreateSagaAction(type, {namespace: "api_userApi"}); diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/allSagas.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/allSagas.ts index c85bc8597775..a493fe53c49b 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/allSagas.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/apis/allSagas.ts @@ -1,12 +1,20 @@ -import {all, fork} from "redux-saga/effects"; +import { all, fork } from "redux-saga/effects"; import { behaviorApiAllSagas, +} from "./BehaviorApi"; +import { petApiAllSagas, +} from "./PetApi"; +import { petPartApiAllSagas, +} from "./PetPartApi"; +import { storeApiAllSagas, +} from "./StoreApi"; +import { userApiAllSagas, -} from "./index"; +} from "./UserApi"; export function *allApiSagas() { yield all([ diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/CategoryRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/CategoryRecord.ts index 2bb757b734aa..505928672c04 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/CategoryRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/CategoryRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { Category, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponseRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponseRecord.ts index 73ce3a84c712..b996cadf58b7 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponseRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponseRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { DefaultMetaOnlyResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponseRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponseRecord.ts index f22a5c3f59cb..1f47a25744ed 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponseRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponseRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { FindPetsByStatusResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponseRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponseRecord.ts index 0af0862472d9..746e9f463c54 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponseRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponseRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { FindPetsByUserResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorPermissionsResponseRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorPermissionsResponseRecord.ts index 1769f9ba5b39..7e9310b4b771 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorPermissionsResponseRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorPermissionsResponseRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { GetBehaviorPermissionsResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorTypeResponseRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorTypeResponseRecord.ts index 55990ad5dcb0..90f27e6faa27 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorTypeResponseRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorTypeResponseRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { GetBehaviorTypeResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetMatchingPartsResponseRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetMatchingPartsResponseRecord.ts index 23663535b8cc..33d2675687a8 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetMatchingPartsResponseRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetMatchingPartsResponseRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { GetMatchingPartsResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetPetPartTypeResponseRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetPetPartTypeResponseRecord.ts index 57d64200571a..6aed99f3e02d 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetPetPartTypeResponseRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetPetPartTypeResponseRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { GetPetPartTypeResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ItemIdRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ItemIdRecord.ts index 6980c92e9b8d..b1da1ab7d62d 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ItemIdRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ItemIdRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { ItemId, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingPartsRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingPartsRecord.ts index 4170d2f84e9e..fc1574d67ee7 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingPartsRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingPartsRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { MatchingParts, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelApiResponseRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelApiResponseRecord.ts index 6a2465755760..4bc9e6abb82a 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelApiResponseRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelApiResponseRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { ModelApiResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelErrorRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelErrorRecord.ts index 1abeef522e2a..d31ebfd41432 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelErrorRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelErrorRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { ModelError, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/OrderRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/OrderRecord.ts index a0ddf05e1ed8..1da5f82cdbf1 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/OrderRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/OrderRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { Order, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PartRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PartRecord.ts index 539b8094c7a7..83db1595e006 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PartRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PartRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { Part, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRecord.ts index 9c114b14d0f4..49efcafe2d0a 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { Pet, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponseRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponseRecord.ts index df2bcc6d3cb2..79faa98e4dd2 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponseRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponseRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories, appFromJS, NormalizedRecordEntities } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { PetRegionsResponse, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ResponseMetaRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ResponseMetaRecord.ts index 79a092e4988e..75d0c16b4dc7 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ResponseMetaRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ResponseMetaRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { ResponseMeta, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/TagRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/TagRecord.ts index 64f36c334a24..ad272fec7b89 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/TagRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/TagRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { Tag, diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/UserRecord.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/UserRecord.ts index 399720f55ea7..1b55979efd05 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/UserRecord.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/UserRecord.ts @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -import {ApiRecordUtils, knownRecordFactories} from "../runtimeSagasAndRecords"; -import {getApiEntitiesState} from "../ApiEntitiesSelectors" -import {List, Record, RecordOf, Map} from 'immutable'; -import {Schema, schema, NormalizedSchema} from "normalizr"; -import {select, call} from "redux-saga/effects"; +import { ApiRecordUtils, knownRecordFactories } from "../runtimeSagasAndRecords"; +import { getApiEntitiesState } from "../ApiEntitiesSelectors" +import { List, Record, RecordOf, Map } from 'immutable'; +import { Schema, schema, NormalizedSchema } from "normalizr"; +import { select, call } from "redux-saga/effects"; import { User, 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..cacafc93eef3 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 @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/runtimeSagasAndRecords.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/runtimeSagasAndRecords.ts index 5c6c927648f6..7e83c056b130 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/runtimeSagasAndRecords.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/runtimeSagasAndRecords.ts @@ -1,9 +1,9 @@ /* tslint:disable */ /* eslint-disable */ -import {fromJS as originalFromJS, isIndexed, List, Map as ImmMap, RecordOf} from 'immutable'; -import {normalize, NormalizedSchema, schema, Schema} from "normalizr"; -import {ActionDefinition, createAction} from "redux-ts-simple"; +import { fromJS as originalFromJS, isIndexed, List, Map as ImmMap, RecordOf } from 'immutable'; +import { normalize, NormalizedSchema, schema, Schema } from "normalizr"; +import { ActionDefinition, createAction } from "redux-ts-simple"; export const knownRecordFactories = new Map(); export const knownIndexedSetByKey: (string | number)[] = []; diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/AnotherFakeApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/AnotherFakeApi.ts index f5ba5857f5c5..0a7815a78af9 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/AnotherFakeApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/AnotherFakeApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Client, -} from '../models/index'; import { + type Client, ClientFromJSON, ClientToJSON, -} from '../models/index'; +} from '../models/Client'; export interface 123testSpecialTagsRequest { client: Client; diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/DefaultApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/DefaultApi.ts index ce1e24dc07f2..bd7085753bfb 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/DefaultApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/DefaultApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - FooGetDefaultResponse, -} from '../models/index'; import { + type FooGetDefaultResponse, FooGetDefaultResponseFromJSON, FooGetDefaultResponseToJSON, -} from '../models/index'; +} from '../models/FooGetDefaultResponse'; /** * 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 21ad0984b848..6a01e7f5797d 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 @@ -12,39 +12,52 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Client, - EnumClass, - FakeBigDecimalMap200Response, - FileSchemaTestClass, - HealthCheckResult, - OuterComposite, - OuterObjectWithEnumProperty, - Pet, - User, -} from '../models/index'; import { + type Client, ClientFromJSON, ClientToJSON, +} from '../models/Client'; +import { + type EnumClass, EnumClassFromJSON, EnumClassToJSON, +} from '../models/EnumClass'; +import { + type FakeBigDecimalMap200Response, FakeBigDecimalMap200ResponseFromJSON, FakeBigDecimalMap200ResponseToJSON, +} from '../models/FakeBigDecimalMap200Response'; +import { + type FileSchemaTestClass, FileSchemaTestClassFromJSON, FileSchemaTestClassToJSON, +} from '../models/FileSchemaTestClass'; +import { + type HealthCheckResult, HealthCheckResultFromJSON, HealthCheckResultToJSON, +} from '../models/HealthCheckResult'; +import { + type OuterComposite, OuterCompositeFromJSON, OuterCompositeToJSON, +} from '../models/OuterComposite'; +import { + type OuterObjectWithEnumProperty, OuterObjectWithEnumPropertyFromJSON, OuterObjectWithEnumPropertyToJSON, +} from '../models/OuterObjectWithEnumProperty'; +import { + type Pet, PetFromJSON, PetToJSON, +} from '../models/Pet'; +import { + type User, UserFromJSON, UserToJSON, -} from '../models/index'; +} from '../models/User'; export interface FakeHttpSignatureTestRequest { pet: Pet; diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeClassnameTags123Api.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeClassnameTags123Api.ts index cdefdb8e7951..0236073acb8a 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeClassnameTags123Api.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeClassnameTags123Api.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Client, -} from '../models/index'; import { + type Client, ClientFromJSON, ClientToJSON, -} from '../models/index'; +} from '../models/Client'; export interface TestClassnameRequest { client: Client; 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..fc79d795f1c3 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 @@ -12,18 +12,17 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - ModelApiResponse, - Pet, -} from '../models/index'; import { + type ModelApiResponse, ModelApiResponseFromJSON, ModelApiResponseToJSON, +} from '../models/ModelApiResponse'; +import { + type Pet, PetFromJSON, PetToJSON, -} from '../models/index'; +} from '../models/Pet'; export interface AddPetRequest { pet: Pet; diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/StoreApi.ts index 3ba8c2cab723..f03d6c2fae65 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/StoreApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Order, -} from '../models/index'; import { + type Order, OrderFromJSON, OrderToJSON, -} from '../models/index'; +} from '../models/Order'; export interface DeleteOrderRequest { orderId: string; diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/UserApi.ts index 83a5374e23a5..0db0d891a5f2 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/UserApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - User, -} from '../models/index'; import { + type User, UserFromJSON, UserToJSON, -} from '../models/index'; +} from '../models/User'; export interface CreateUserRequest { user: User; 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..2738678aa8e3 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io:80/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { 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..ef5110443bdd 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 @@ -12,18 +12,17 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - ModelApiResponse, - Pet, -} from '../models/index'; import { + type ModelApiResponse, ModelApiResponseFromJSON, ModelApiResponseToJSON, +} from '../models/ModelApiResponse'; +import { + type Pet, PetFromJSON, PetToJSON, -} from '../models/index'; +} from '../models/Pet'; export interface AddPetRequest { pet: Pet; diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts index 7f1528fdb2cb..a1051e3031f9 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/StoreApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Order, -} from '../models/index'; import { + type Order, OrderFromJSON, OrderToJSON, -} from '../models/index'; +} from '../models/Order'; export interface DeleteOrderRequest { orderId: string; diff --git a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts index 756c61cbee4a..cda8aa33bcce 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/apis/UserApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - User, -} from '../models/index'; import { + type User, UserFromJSON, UserToJSON, -} from '../models/index'; +} from '../models/User'; export interface CreateUserRequest { user: User; 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..cacafc93eef3 100644 --- a/samples/client/petstore/typescript-fetch/builds/validation-attributes/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/validation-attributes/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { 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..20f8cb51e32f 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 @@ -12,18 +12,17 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - ModelApiResponse, - Pet, -} from '../models/index'; import { + type ModelApiResponse, ModelApiResponseFromJSON, ModelApiResponseToJSON, +} from '../models/ModelApiResponse'; +import { + type Pet, PetFromJSON, PetToJSON, -} from '../models/index'; +} from '../models/Pet'; export interface AddPetRequest { body: Pet; diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts index 770ac98198bc..57ab75e99b74 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/StoreApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Order, -} from '../models/index'; import { + type Order, OrderFromJSON, OrderToJSON, -} from '../models/index'; +} from '../models/Order'; export interface DeleteOrderRequest { orderId: string; diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts index 83ee5cedbbfb..15b5491d2311 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/UserApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - User, -} from '../models/index'; import { + type User, UserFromJSON, UserToJSON, -} from '../models/index'; +} from '../models/User'; export interface CreateUserRequest { body: User; 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..cacafc93eef3 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/runtime.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/runtime.ts @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { 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..9e59db7ee9f8 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 @@ -12,18 +12,17 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - ModelApiResponse, - Pet, -} from '../models/index'; import { + type ModelApiResponse, ModelApiResponseFromJSON, ModelApiResponseToJSON, +} from '../models/ModelApiResponse'; +import { + type Pet, PetFromJSON, PetToJSON, -} from '../models/index'; +} from '../models/Pet'; export interface AddPetRequest { body: Pet; diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts index 0bcfdbf84600..b5f61e3713aa 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/StoreApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - Order, -} from '../models/index'; import { + type Order, OrderFromJSON, OrderToJSON, -} from '../models/index'; +} from '../models/Order'; export interface DeleteOrderRequest { orderId: string; diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts index 43799227666d..697a7a6cb9d8 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/apis/UserApi.ts @@ -12,15 +12,12 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - User, -} from '../models/index'; import { + type User, UserFromJSON, UserToJSON, -} from '../models/index'; +} from '../models/User'; export interface CreateUserRequest { body: User; 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..cacafc93eef3 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 @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters { 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..b19dd3b8df53 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 @@ -12,24 +12,27 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; -import type { - EnumPatternObject, - FakeEnumRequestGetInline200Response, - NumberEnum, - StringEnum, -} from '../models/index'; import { + type EnumPatternObject, EnumPatternObjectFromJSON, EnumPatternObjectToJSON, +} from '../models/EnumPatternObject'; +import { + type FakeEnumRequestGetInline200Response, FakeEnumRequestGetInline200ResponseFromJSON, FakeEnumRequestGetInline200ResponseToJSON, +} from '../models/FakeEnumRequestGetInline200Response'; +import { + type NumberEnum, NumberEnumFromJSON, NumberEnumToJSON, +} from '../models/NumberEnum'; +import { + type StringEnum, StringEnumFromJSON, StringEnumToJSON, -} from '../models/index'; +} from '../models/StringEnum'; export interface FakeEnumRequestGetInlineRequest { stringEnum?: FakeEnumRequestGetInlineStringEnumEnum; 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..748dbfca7a3c 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 @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://localhost:3000".replace(/\/+$/, ""); export interface ConfigurationParameters { 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..992989c262da 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 @@ -12,11 +12,10 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { - ModelApiResponse, - Pet, + ModelApiResponse, + Pet, } from '../models/index'; export interface AddPetRequest { diff --git a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/StoreApi.ts b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/StoreApi.ts index e650674e0cdf..ef64f6610729 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/StoreApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/StoreApi.ts @@ -12,10 +12,9 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { - Order, + Order, } from '../models/index'; export interface DeleteOrderRequest { diff --git a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/UserApi.ts b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/UserApi.ts index 90c8a3d4362f..c10bfa000c53 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/UserApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/src/apis/UserApi.ts @@ -12,10 +12,9 @@ * Do not edit the class manually. */ - import * as runtime from '../runtime'; import type { - User, + User, } from '../models/index'; export interface CreateUserRequest { 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..67e30baa5ff8 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 @@ -12,7 +12,6 @@ * Do not edit the class manually. */ - export const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ""); export interface ConfigurationParameters {