diff --git a/apps/cli/src/index.ts b/apps/cli/src/index.ts index 43679e2..3309461 100644 --- a/apps/cli/src/index.ts +++ b/apps/cli/src/index.ts @@ -11,6 +11,7 @@ type ProgramProps = { fileName: string | undefined; cookies: boolean; generateForAngular: boolean; + prefixesToRemove?: string[]; help: never; }; @@ -29,13 +30,24 @@ program ) .option("-f, --file-name ", "Output file name (defaults to Api.ts)") .option("--cookies", "Generate API with cookies auth") + .option( + "-ptr, --prefixes-to-remove ", + "Prefixes to remove from the generated code", + ) .helpOption("-h, --help", "Show help"); program.parse(process.argv); const options = program.opts(); -const { source, target, generateForAngular, fileName, cookies } = options; +const { + source, + target, + generateForAngular, + fileName, + cookies, + prefixesToRemove, +} = options; if (!source) { console.error("Error: Source -s is required."); @@ -60,7 +72,7 @@ process.emitWarning = (warning, ...args) => { originalEmitWarning.call(process, warning, ...(args as any)); }; -generateApiContent(source, generateForAngular, cookies) +generateApiContent(source, generateForAngular, cookies, prefixesToRemove ?? []) .then(content => { if (content === null) { console.error("Failed to generate api content"); diff --git a/apps/cli/src/lib/generators/AngularServiceGenerator.ts b/apps/cli/src/lib/generators/AngularServiceGenerator.ts index a9d48e2..c09a179 100644 --- a/apps/cli/src/lib/generators/AngularServiceGenerator.ts +++ b/apps/cli/src/lib/generators/AngularServiceGenerator.ts @@ -206,8 +206,11 @@ const getContractResult = ( return Nothing; }; -export const generateAngularServices = (swagger: SwaggerSchema) => { - const endpoints = getEndpointsDescriptions(swagger).map( +export const generateAngularServices = ( + swagger: SwaggerSchema, + prefixesToRemove: string[], +) => { + const endpoints = getEndpointsDescriptions(swagger, prefixesToRemove).map( endpointDescription => { const { formattedParam: formattedRequestContractType, diff --git a/apps/cli/src/lib/generators/ApiDescriptionGenerator.ts b/apps/cli/src/lib/generators/ApiDescriptionGenerator.ts index 224f375..2815a97 100644 --- a/apps/cli/src/lib/generators/ApiDescriptionGenerator.ts +++ b/apps/cli/src/lib/generators/ApiDescriptionGenerator.ts @@ -28,7 +28,19 @@ export type EndpointDescription = { isFileResponse: boolean; }; -export const getEndpointsDescriptions = (swagger: SwaggerSchema) => { +const removePrefixes = (prop: string, prefixesToRemove: string[]): string => { + for (const prefix of prefixesToRemove) { + if (prop.startsWith(prefix)) { + return prop.substring(prefix.length); + } + } + return prop; +}; + +export const getEndpointsDescriptions = ( + swagger: SwaggerSchema, + prefixesToRemove: string[], +) => { const endpoints: EndpointDescription[][] = Object.keys(swagger.paths).map( e => { const pathObject = swagger.paths[e]!; @@ -44,7 +56,7 @@ export const getEndpointsDescriptions = (swagger: SwaggerSchema) => { const methods = []; const generate = (methodType: MethodType, operation: Operation) => { const formattedName = snakeToCamel( - `${methodType.toLowerCase()}_${prop}`, + `${methodType.toLowerCase()}_${removePrefixes(prop, prefixesToRemove)}`, ); const name = `${formattedName.replace(version, "")}${ version === "V1" ? "" : version diff --git a/apps/cli/src/lib/generators/ServiceGenerator.ts b/apps/cli/src/lib/generators/ServiceGenerator.ts index 072c042..a20ab23 100644 --- a/apps/cli/src/lib/generators/ServiceGenerator.ts +++ b/apps/cli/src/lib/generators/ServiceGenerator.ts @@ -486,8 +486,11 @@ const bodyBasedMethod = ( ); }; -export const generateServices = (swagger: SwaggerSchema) => { - const endpoints = getEndpointsDescriptions(swagger); +export const generateServices = ( + swagger: SwaggerSchema, + prefixesToRemove: string[], +) => { + const endpoints = getEndpointsDescriptions(swagger, prefixesToRemove); const view = endpoints .map(endpointDescription => { const { diff --git a/apps/cli/src/lib/generators/index.ts b/apps/cli/src/lib/generators/index.ts index d46d7f0..16a7de4 100644 --- a/apps/cli/src/lib/generators/index.ts +++ b/apps/cli/src/lib/generators/index.ts @@ -12,6 +12,7 @@ import { render } from "../renderers/Renderer"; const generateContent = ( schema: any, isCookiesAuthEnabled: boolean = false, + prefixesToRemove: string[] = [], ) => { const swaggerSchema = schema as SwaggerSchema; const contracts = generateContracts(swaggerSchema); @@ -19,7 +20,7 @@ const generateContent = ( const view = { infrastructure: getInfrastructureTemplate(isCookiesAuthEnabled), contracts, - services: generateServices(swaggerSchema), + services: generateServices(swaggerSchema, prefixesToRemove), }; const content = render( "{{{ infrastructure }}}\n{{{ contracts }}}\n{{{ services }}}", @@ -28,14 +29,14 @@ const generateContent = ( return content; }; -const generateAngularContent = (schema: any) => { +const generateAngularContent = (schema: any, prefixesToRemove: string[]) => { const swaggerSchema = schema as SwaggerSchema; const contracts = generateContracts(swaggerSchema); const view = { contracts, infrastructure: getAngularInfrastructureTemplate(), - services: generateAngularServices(swaggerSchema), + services: generateAngularServices(swaggerSchema, prefixesToRemove), }; const content = render( "{{{ infrastructure }}}\n{{{ contracts }}}\n\n{{{ services }}}\n", @@ -48,6 +49,7 @@ export const generate = async ( api: any, generateForAngular: boolean = false, isCookiesAuthEnabled: boolean = false, + prefixesToRemove: string[] = [], ) => { const logStep = () => console.log("⚡2/3 - Generating code"); @@ -63,12 +65,12 @@ export const generate = async ( logStep(); return generateForAngular - ? generateAngularContent(response.data) - : generateContent(response.data, isCookiesAuthEnabled); + ? generateAngularContent(response.data, prefixesToRemove) + : generateContent(response.data, isCookiesAuthEnabled, prefixesToRemove); } logStep(); return generateForAngular - ? generateAngularContent(api) - : generateContent(api, isCookiesAuthEnabled); + ? generateAngularContent(api, prefixesToRemove) + : generateContent(api, isCookiesAuthEnabled, prefixesToRemove); }; diff --git a/apps/cli/src/lib/index.ts b/apps/cli/src/lib/index.ts index ffec063..569f24b 100644 --- a/apps/cli/src/lib/index.ts +++ b/apps/cli/src/lib/index.ts @@ -14,6 +14,7 @@ export async function generateApiContent( source: string, generateForAngular: boolean, cookies: boolean, + prefixesToRemove: string[], ): Promise { console.log(`🤖1/3 - Getting OpenAPI definition from ${source}`); @@ -24,5 +25,10 @@ export async function generateApiContent( return null; } - return await generate(openAPI, generateForAngular == true, cookies == true); + return await generate( + openAPI, + generateForAngular == true, + cookies == true, + prefixesToRemove, + ); } diff --git a/apps/cli/src/tests/__snapshots__/generate_allof_anonymous_schema.ts b/apps/cli/src/tests/__snapshots__/generate_allof_anonymous_schema.ts index b54278e..000938e 100644 --- a/apps/cli/src/tests/__snapshots__/generate_allof_anonymous_schema.ts +++ b/apps/cli/src/tests/__snapshots__/generate_allof_anonymous_schema.ts @@ -435,14 +435,14 @@ export type Cow = { discriminator: string; }; -export type GetApiTestFetchResponse = +export type GetTestFetchResponse = | FetchResponse<{status: string; data?: Dog | Cat | Cow | null;}, 200> | ErrorResponse; -export const getApiTestPath = () => `/api/test`; +export const getTestPath = () => `/api/test`; -export const getApiTest = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiTestPath()}`, headers, {}) as Promise; +export const getTest = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getTestPath()}`, headers, {}) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_allof_anonymous_schema_angular.ts b/apps/cli/src/tests/__snapshots__/generate_allof_anonymous_schema_angular.ts index 5a17000..df7b233 100644 --- a/apps/cli/src/tests/__snapshots__/generate_allof_anonymous_schema_angular.ts +++ b/apps/cli/src/tests/__snapshots__/generate_allof_anonymous_schema_angular.ts @@ -332,7 +332,7 @@ export class ApiService { this.baseUrl = baseUrl ?? ""; } - getApiTest(): Observable> { return apiGet>(this.httpClient, `${this.baseUrl}/api/test`); diff --git a/apps/cli/src/tests/__snapshots__/generate_allof_anonymous_schema_cookies.ts b/apps/cli/src/tests/__snapshots__/generate_allof_anonymous_schema_cookies.ts index ab69fa4..7d61769 100644 --- a/apps/cli/src/tests/__snapshots__/generate_allof_anonymous_schema_cookies.ts +++ b/apps/cli/src/tests/__snapshots__/generate_allof_anonymous_schema_cookies.ts @@ -441,14 +441,14 @@ export type Cow = { discriminator: string; }; -export type GetApiTestFetchResponse = +export type GetTestFetchResponse = | FetchResponse<{status: string; data?: Dog | Cat | Cow | null;}, 200> | ErrorResponse; -export const getApiTestPath = () => `/api/test`; +export const getTestPath = () => `/api/test`; -export const getApiTest = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiTestPath()}`, headers, {}) as Promise; +export const getTest = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getTestPath()}`, headers, {}) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_anonymous_object.ts b/apps/cli/src/tests/__snapshots__/generate_anonymous_object.ts index 45cb66e..c4e3e04 100644 --- a/apps/cli/src/tests/__snapshots__/generate_anonymous_object.ts +++ b/apps/cli/src/tests/__snapshots__/generate_anonymous_object.ts @@ -421,14 +421,14 @@ export type ElectronicTradeBigRiskItemResponseDTO = { validationNumber?: number | null; }; -export type GetApiTestFetchResponse = +export type GetTestFetchResponse = | FetchResponse<{status: string; data: ElectronicTradeBigRiskItemResponseDTO;}, 200> | ErrorResponse; -export const getApiTestPath = () => `/api/test`; +export const getTestPath = () => `/api/test`; -export const getApiTest = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiTestPath()}`, headers, {}) as Promise; +export const getTest = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getTestPath()}`, headers, {}) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_anonymous_object_angular.ts b/apps/cli/src/tests/__snapshots__/generate_anonymous_object_angular.ts index 6c42f03..fd04c72 100644 --- a/apps/cli/src/tests/__snapshots__/generate_anonymous_object_angular.ts +++ b/apps/cli/src/tests/__snapshots__/generate_anonymous_object_angular.ts @@ -318,7 +318,7 @@ export class ApiService { this.baseUrl = baseUrl ?? ""; } - getApiTest(): Observable> { return apiGet>(this.httpClient, `${this.baseUrl}/api/test`); diff --git a/apps/cli/src/tests/__snapshots__/generate_anonymous_object_cookies.ts b/apps/cli/src/tests/__snapshots__/generate_anonymous_object_cookies.ts index e66bd11..f1f70ff 100644 --- a/apps/cli/src/tests/__snapshots__/generate_anonymous_object_cookies.ts +++ b/apps/cli/src/tests/__snapshots__/generate_anonymous_object_cookies.ts @@ -427,14 +427,14 @@ export type ElectronicTradeBigRiskItemResponseDTO = { validationNumber?: number | null; }; -export type GetApiTestFetchResponse = +export type GetTestFetchResponse = | FetchResponse<{status: string; data: ElectronicTradeBigRiskItemResponseDTO;}, 200> | ErrorResponse; -export const getApiTestPath = () => `/api/test`; +export const getTestPath = () => `/api/test`; -export const getApiTest = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiTestPath()}`, headers, {}) as Promise; +export const getTest = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getTestPath()}`, headers, {}) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_auth_login.ts b/apps/cli/src/tests/__snapshots__/generate_auth_login.ts index 16dac93..a61cc25 100644 --- a/apps/cli/src/tests/__snapshots__/generate_auth_login.ts +++ b/apps/cli/src/tests/__snapshots__/generate_auth_login.ts @@ -449,16 +449,16 @@ export type ProblemDetails = { instance?: string | null; }; -export type PostApiAuthLoginFetchResponse = +export type PostAuthLoginFetchResponse = | FetchResponse | FetchResponse | ErrorResponse; -export const postApiAuthLoginPath = () => `/api/Auth/login`; +export const postAuthLoginPath = () => `/api/Auth/login`; -export const postApiAuthLogin = (requestContract: AuthRequest, headers = new Headers()): - Promise => { +export const postAuthLogin = (requestContract: AuthRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiAuthLoginPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthLoginPath()}`, requestData, headers) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_auth_login_angular.ts b/apps/cli/src/tests/__snapshots__/generate_auth_login_angular.ts index dff7ecc..3da6e5a 100644 --- a/apps/cli/src/tests/__snapshots__/generate_auth_login_angular.ts +++ b/apps/cli/src/tests/__snapshots__/generate_auth_login_angular.ts @@ -346,7 +346,7 @@ export class ApiService { this.baseUrl = baseUrl ?? ""; } - postApiAuthLogin(requestContract: AuthRequest): Observable | ResponseResult> { + postAuthLogin(requestContract: AuthRequest): Observable | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult>(this.httpClient, `${this.baseUrl}/api/Auth/login`, requestData); diff --git a/apps/cli/src/tests/__snapshots__/generate_auth_login_cookies.ts b/apps/cli/src/tests/__snapshots__/generate_auth_login_cookies.ts index 8309ec2..47cc751 100644 --- a/apps/cli/src/tests/__snapshots__/generate_auth_login_cookies.ts +++ b/apps/cli/src/tests/__snapshots__/generate_auth_login_cookies.ts @@ -455,16 +455,16 @@ export type ProblemDetails = { instance?: string | null; }; -export type PostApiAuthLoginFetchResponse = +export type PostAuthLoginFetchResponse = | FetchResponse | FetchResponse | ErrorResponse; -export const postApiAuthLoginPath = () => `/api/Auth/login`; +export const postAuthLoginPath = () => `/api/Auth/login`; -export const postApiAuthLogin = (requestContract: AuthRequest, headers = new Headers()): - Promise => { +export const postAuthLogin = (requestContract: AuthRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiAuthLoginPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthLoginPath()}`, requestData, headers) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_bracket_params.ts b/apps/cli/src/tests/__snapshots__/generate_bracket_params.ts index e647beb..25a4ace 100644 --- a/apps/cli/src/tests/__snapshots__/generate_bracket_params.ts +++ b/apps/cli/src/tests/__snapshots__/generate_bracket_params.ts @@ -440,22 +440,22 @@ export type ProductItemDTO = { hidden?: boolean | null; }; -export type GetApiProducersFetchResponse = +export type GetProducersFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiProducersPath = () => `/api/producers`; +export const getProducersPath = () => `/api/producers`; -export const getApiProducers = (filterTerm?: string, filterHidden?: number, filterRegion?: string, filterCategory?: string, headers = new Headers()): - Promise => { +export const getProducers = (filterTerm?: string, filterHidden?: number, filterRegion?: string, filterCategory?: string, headers = new Headers()): + Promise => { const queryParams = { "filter[term]": filterTerm, "filter[hidden]": filterHidden, "filter[region]": filterRegion, "filter[category]": filterCategory } - return apiGet(`${getApiUrl()}${getApiProducersPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getProducersPath()}`, headers, queryParams) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_bracket_params_angular.ts b/apps/cli/src/tests/__snapshots__/generate_bracket_params_angular.ts index a477b02..7b80f7a 100644 --- a/apps/cli/src/tests/__snapshots__/generate_bracket_params_angular.ts +++ b/apps/cli/src/tests/__snapshots__/generate_bracket_params_angular.ts @@ -337,7 +337,7 @@ export class ApiService { this.baseUrl = baseUrl ?? ""; } - getApiProducers(filterTerm?: string, filterHidden?: number, filterRegion?: string, filterCategory?: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + getProducers(filterTerm?: string, filterHidden?: number, filterRegion?: string, filterCategory?: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const queryParams = { "filter[term]": filterTerm, "filter[hidden]": filterHidden, diff --git a/apps/cli/src/tests/__snapshots__/generate_bracket_params_cookies.ts b/apps/cli/src/tests/__snapshots__/generate_bracket_params_cookies.ts index 448d2ff..4e3af7d 100644 --- a/apps/cli/src/tests/__snapshots__/generate_bracket_params_cookies.ts +++ b/apps/cli/src/tests/__snapshots__/generate_bracket_params_cookies.ts @@ -446,22 +446,22 @@ export type ProductItemDTO = { hidden?: boolean | null; }; -export type GetApiProducersFetchResponse = +export type GetProducersFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiProducersPath = () => `/api/producers`; +export const getProducersPath = () => `/api/producers`; -export const getApiProducers = (filterTerm?: string, filterHidden?: number, filterRegion?: string, filterCategory?: string, headers = new Headers()): - Promise => { +export const getProducers = (filterTerm?: string, filterHidden?: number, filterRegion?: string, filterCategory?: string, headers = new Headers()): + Promise => { const queryParams = { "filter[term]": filterTerm, "filter[hidden]": filterHidden, "filter[region]": filterRegion, "filter[category]": filterCategory } - return apiGet(`${getApiUrl()}${getApiProducersPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getProducersPath()}`, headers, queryParams) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_common_prefix_v3.ts b/apps/cli/src/tests/__snapshots__/generate_common_prefix_api_v1.ts similarity index 94% rename from apps/cli/src/tests/__snapshots__/generate_common_prefix_v3.ts rename to apps/cli/src/tests/__snapshots__/generate_common_prefix_api_v1.ts index e54ee50..7c06186 100644 --- a/apps/cli/src/tests/__snapshots__/generate_common_prefix_v3.ts +++ b/apps/cli/src/tests/__snapshots__/generate_common_prefix_api_v1.ts @@ -506,32 +506,32 @@ export type CodeListItemDto = { name: string; }; -export type GetApiUsersFetchResponse = +export type GetUsersFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiUsersPath = () => `/api/v1/users`; +export const getUsersPath = () => `/api/v1/users`; -export const getApiUsers = (offset?: number, limit?: number, headers = new Headers()): - Promise => { +export const getUsers = (offset?: number, limit?: number, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit } - return apiGet(`${getApiUrl()}${getApiUsersPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getUsersPath()}`, headers, queryParams) as Promise; } -export type GetApiUsersUserIDFetchResponse = +export type GetUsersUserIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiUsersUserIDPath = (userID: number) => `/api/v1/users/${userID}`; +export const getUsersUserIDPath = (userID: number) => `/api/v1/users/${userID}`; -export const getApiUsersUserID = (userID: number, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiUsersUserIDPath(userID)}`, headers, {}) as Promise; +export const getUsersUserID = (userID: number, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getUsersUserIDPath(userID)}`, headers, {}) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_common_prefix_v3_angular.ts b/apps/cli/src/tests/__snapshots__/generate_common_prefix_api_v1_angular.ts similarity index 96% rename from apps/cli/src/tests/__snapshots__/generate_common_prefix_v3_angular.ts rename to apps/cli/src/tests/__snapshots__/generate_common_prefix_api_v1_angular.ts index 6b8ebe0..aa5db06 100644 --- a/apps/cli/src/tests/__snapshots__/generate_common_prefix_v3_angular.ts +++ b/apps/cli/src/tests/__snapshots__/generate_common_prefix_api_v1_angular.ts @@ -403,7 +403,7 @@ export class ApiService { this.baseUrl = baseUrl ?? ""; } - getApiUsers(offset?: number, limit?: number): Observable | ResponseResult | ResponseResult> { + getUsers(offset?: number, limit?: number): Observable | ResponseResult | ResponseResult> { const queryParams = { "offset": offset, "limit": limit @@ -411,7 +411,7 @@ export class ApiService { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/users`, queryParams); } - getApiUsersUserID(userID: number): Observable | ResponseResult | ResponseResult> { + getUsersUserID(userID: number): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/users/${userID}`); } } diff --git a/apps/cli/src/tests/__snapshots__/generate_common_prefix_v3_cookies.ts b/apps/cli/src/tests/__snapshots__/generate_common_prefix_api_v1_cookies.ts similarity index 94% rename from apps/cli/src/tests/__snapshots__/generate_common_prefix_v3_cookies.ts rename to apps/cli/src/tests/__snapshots__/generate_common_prefix_api_v1_cookies.ts index 90f657b..2d36ea0 100644 --- a/apps/cli/src/tests/__snapshots__/generate_common_prefix_v3_cookies.ts +++ b/apps/cli/src/tests/__snapshots__/generate_common_prefix_api_v1_cookies.ts @@ -512,32 +512,32 @@ export type CodeListItemDto = { name: string; }; -export type GetApiUsersFetchResponse = +export type GetUsersFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiUsersPath = () => `/api/v1/users`; +export const getUsersPath = () => `/api/v1/users`; -export const getApiUsers = (offset?: number, limit?: number, headers = new Headers()): - Promise => { +export const getUsers = (offset?: number, limit?: number, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit } - return apiGet(`${getApiUrl()}${getApiUsersPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getUsersPath()}`, headers, queryParams) as Promise; } -export type GetApiUsersUserIDFetchResponse = +export type GetUsersUserIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiUsersUserIDPath = (userID: number) => `/api/v1/users/${userID}`; +export const getUsersUserIDPath = (userID: number) => `/api/v1/users/${userID}`; -export const getApiUsersUserID = (userID: number, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiUsersUserIDPath(userID)}`, headers, {}) as Promise; +export const getUsersUserID = (userID: number, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getUsersUserIDPath(userID)}`, headers, {}) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_multipart_formdata.ts b/apps/cli/src/tests/__snapshots__/generate_multipart_formdata.ts index 4629b1a..b8a2737 100644 --- a/apps/cli/src/tests/__snapshots__/generate_multipart_formdata.ts +++ b/apps/cli/src/tests/__snapshots__/generate_multipart_formdata.ts @@ -467,18 +467,18 @@ export type ElectronicTradeFormalityRequestDTO = { file?: File | null; }; -export type PostApiElectronicTradeTradesElectronicTradeIdFormalityFetchResponse = +export type PostElectronicTradeTradesElectronicTradeIdFormalityFetchResponse = | FetchResponse | ErrorResponse; -export const postApiElectronicTradeTradesElectronicTradeIdFormalityPath = (electronicTradeId: number, fields?: string) => `/api/electronic-trade/trades/${electronicTradeId}/formality`; +export const postElectronicTradeTradesElectronicTradeIdFormalityPath = (electronicTradeId: number, fields?: string) => `/api/electronic-trade/trades/${electronicTradeId}/formality`; -export const postApiElectronicTradeTradesElectronicTradeIdFormality = (requestContract: ElectronicTradeFormalityRequestDTO, electronicTradeId: number, fields?: string, headers = new Headers()): - Promise => { +export const postElectronicTradeTradesElectronicTradeIdFormality = (requestContract: ElectronicTradeFormalityRequestDTO, electronicTradeId: number, fields?: string, headers = new Headers()): + Promise => { const queryParams = { "fields": fields }; const requestData = getApiRequestData(requestContract, true); - return apiPost(`${getApiUrl()}${postApiElectronicTradeTradesElectronicTradeIdFormalityPath(electronicTradeId)}`, requestData, headers, queryParams) as Promise; + return apiPost(`${getApiUrl()}${postElectronicTradeTradesElectronicTradeIdFormalityPath(electronicTradeId)}`, requestData, headers, queryParams) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_angular.ts b/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_angular.ts index f9343bf..29703c3 100644 --- a/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_angular.ts +++ b/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_angular.ts @@ -364,7 +364,7 @@ export class ApiService { this.baseUrl = baseUrl ?? ""; } - postApiElectronicTradeTradesElectronicTradeIdFormality(requestContract: ElectronicTradeFormalityRequestDTO, electronicTradeId: number, fields?: string): Observable> { + postElectronicTradeTradesElectronicTradeIdFormality(requestContract: ElectronicTradeFormalityRequestDTO, electronicTradeId: number, fields?: string): Observable> { const queryParams = { "fields": fields }; diff --git a/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_cookies.ts b/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_cookies.ts index b4d943f..35f4409 100644 --- a/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_cookies.ts +++ b/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_cookies.ts @@ -473,18 +473,18 @@ export type ElectronicTradeFormalityRequestDTO = { file?: File | null; }; -export type PostApiElectronicTradeTradesElectronicTradeIdFormalityFetchResponse = +export type PostElectronicTradeTradesElectronicTradeIdFormalityFetchResponse = | FetchResponse | ErrorResponse; -export const postApiElectronicTradeTradesElectronicTradeIdFormalityPath = (electronicTradeId: number, fields?: string) => `/api/electronic-trade/trades/${electronicTradeId}/formality`; +export const postElectronicTradeTradesElectronicTradeIdFormalityPath = (electronicTradeId: number, fields?: string) => `/api/electronic-trade/trades/${electronicTradeId}/formality`; -export const postApiElectronicTradeTradesElectronicTradeIdFormality = (requestContract: ElectronicTradeFormalityRequestDTO, electronicTradeId: number, fields?: string, headers = new Headers()): - Promise => { +export const postElectronicTradeTradesElectronicTradeIdFormality = (requestContract: ElectronicTradeFormalityRequestDTO, electronicTradeId: number, fields?: string, headers = new Headers()): + Promise => { const queryParams = { "fields": fields }; const requestData = getApiRequestData(requestContract, true); - return apiPost(`${getApiUrl()}${postApiElectronicTradeTradesElectronicTradeIdFormalityPath(electronicTradeId)}`, requestData, headers, queryParams) as Promise; + return apiPost(`${getApiUrl()}${postElectronicTradeTradesElectronicTradeIdFormalityPath(electronicTradeId)}`, requestData, headers, queryParams) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_multiplefiles.ts b/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_multiplefiles.ts index 73c906e..04e22b6 100644 --- a/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_multiplefiles.ts +++ b/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_multiplefiles.ts @@ -467,18 +467,18 @@ export type ElectronicTradeFormalityRequestDTO = { "files[]": File[]; }; -export type PostApiElectronicTradeTradesElectronicTradeIdFormalityFetchResponse = +export type PostElectronicTradeTradesElectronicTradeIdFormalityFetchResponse = | FetchResponse | ErrorResponse; -export const postApiElectronicTradeTradesElectronicTradeIdFormalityPath = (electronicTradeId: number, fields?: string) => `/api/electronic-trade/trades/${electronicTradeId}/formality`; +export const postElectronicTradeTradesElectronicTradeIdFormalityPath = (electronicTradeId: number, fields?: string) => `/api/electronic-trade/trades/${electronicTradeId}/formality`; -export const postApiElectronicTradeTradesElectronicTradeIdFormality = (requestContract: ElectronicTradeFormalityRequestDTO, electronicTradeId: number, fields?: string, headers = new Headers()): - Promise => { +export const postElectronicTradeTradesElectronicTradeIdFormality = (requestContract: ElectronicTradeFormalityRequestDTO, electronicTradeId: number, fields?: string, headers = new Headers()): + Promise => { const queryParams = { "fields": fields }; const requestData = getApiRequestData(requestContract, true); - return apiPost(`${getApiUrl()}${postApiElectronicTradeTradesElectronicTradeIdFormalityPath(electronicTradeId)}`, requestData, headers, queryParams) as Promise; + return apiPost(`${getApiUrl()}${postElectronicTradeTradesElectronicTradeIdFormalityPath(electronicTradeId)}`, requestData, headers, queryParams) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_multiplefiles_angular.ts b/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_multiplefiles_angular.ts index afcc9f5..5b910d7 100644 --- a/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_multiplefiles_angular.ts +++ b/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_multiplefiles_angular.ts @@ -364,7 +364,7 @@ export class ApiService { this.baseUrl = baseUrl ?? ""; } - postApiElectronicTradeTradesElectronicTradeIdFormality(requestContract: ElectronicTradeFormalityRequestDTO, electronicTradeId: number, fields?: string): Observable> { + postElectronicTradeTradesElectronicTradeIdFormality(requestContract: ElectronicTradeFormalityRequestDTO, electronicTradeId: number, fields?: string): Observable> { const queryParams = { "fields": fields }; diff --git a/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_multiplefiles_cookies.ts b/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_multiplefiles_cookies.ts index 8592ffc..9c6f6c4 100644 --- a/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_multiplefiles_cookies.ts +++ b/apps/cli/src/tests/__snapshots__/generate_multipart_formdata_multiplefiles_cookies.ts @@ -473,18 +473,18 @@ export type ElectronicTradeFormalityRequestDTO = { "files[]": File[]; }; -export type PostApiElectronicTradeTradesElectronicTradeIdFormalityFetchResponse = +export type PostElectronicTradeTradesElectronicTradeIdFormalityFetchResponse = | FetchResponse | ErrorResponse; -export const postApiElectronicTradeTradesElectronicTradeIdFormalityPath = (electronicTradeId: number, fields?: string) => `/api/electronic-trade/trades/${electronicTradeId}/formality`; +export const postElectronicTradeTradesElectronicTradeIdFormalityPath = (electronicTradeId: number, fields?: string) => `/api/electronic-trade/trades/${electronicTradeId}/formality`; -export const postApiElectronicTradeTradesElectronicTradeIdFormality = (requestContract: ElectronicTradeFormalityRequestDTO, electronicTradeId: number, fields?: string, headers = new Headers()): - Promise => { +export const postElectronicTradeTradesElectronicTradeIdFormality = (requestContract: ElectronicTradeFormalityRequestDTO, electronicTradeId: number, fields?: string, headers = new Headers()): + Promise => { const queryParams = { "fields": fields }; const requestData = getApiRequestData(requestContract, true); - return apiPost(`${getApiUrl()}${postApiElectronicTradeTradesElectronicTradeIdFormalityPath(electronicTradeId)}`, requestData, headers, queryParams) as Promise; + return apiPost(`${getApiUrl()}${postElectronicTradeTradesElectronicTradeIdFormalityPath(electronicTradeId)}`, requestData, headers, queryParams) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_nswag.ts b/apps/cli/src/tests/__snapshots__/generate_nswag.ts index 368305e..cd07073 100644 --- a/apps/cli/src/tests/__snapshots__/generate_nswag.ts +++ b/apps/cli/src/tests/__snapshots__/generate_nswag.ts @@ -2049,111 +2049,111 @@ export type SetPasswordCommand = { password: string; }; -export type GetApiWorkflowsStepsFetchResponse = +export type GetWorkflowsStepsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiWorkflowsStepsPath = () => `/api/v1/workflows/steps`; +export const getWorkflowsStepsPath = () => `/api/v1/workflows/steps`; -export const getApiWorkflowsSteps = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiWorkflowsStepsPath()}`, headers, {}) as Promise; +export const getWorkflowsSteps = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getWorkflowsStepsPath()}`, headers, {}) as Promise; } -export type GetApiUserCompanyFetchResponse = +export type GetUserCompanyFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiUserCompanyPath = () => `/api/v1/user/company`; +export const getUserCompanyPath = () => `/api/v1/user/company`; -export const getApiUserCompany = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiUserCompanyPath()}`, headers, {}) as Promise; +export const getUserCompany = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getUserCompanyPath()}`, headers, {}) as Promise; } -export type PutApiUserCompanyFetchResponse = +export type PutUserCompanyFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiUserCompanyPath = () => `/api/v1/user/company`; +export const putUserCompanyPath = () => `/api/v1/user/company`; -export const putApiUserCompany = (requestContract: UserCompanySetRequest, headers = new Headers()): - Promise => { +export const putUserCompany = (requestContract: UserCompanySetRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiUserCompanyPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putUserCompanyPath()}`, requestData, headers) as Promise; } -export type GetApiServicesPackagesFetchResponse = +export type GetServicesPackagesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiServicesPackagesPath = () => `/api/v1/services/packages`; +export const getServicesPackagesPath = () => `/api/v1/services/packages`; -export const getApiServicesPackages = (offset?: number, limit?: number, headers = new Headers()): - Promise => { +export const getServicesPackages = (offset?: number, limit?: number, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit } - return apiGet(`${getApiUrl()}${getApiServicesPackagesPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getServicesPackagesPath()}`, headers, queryParams) as Promise; } -export type GetApiServicesPackagesAvailableServicesFetchResponse = +export type GetServicesPackagesAvailableServicesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiServicesPackagesAvailableServicesPath = () => `/api/v1/services/packages/available-services`; +export const getServicesPackagesAvailableServicesPath = () => `/api/v1/services/packages/available-services`; -export const getApiServicesPackagesAvailableServices = (offset?: number, limit?: number, headers = new Headers()): - Promise => { +export const getServicesPackagesAvailableServices = (offset?: number, limit?: number, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit } - return apiGet(`${getApiUrl()}${getApiServicesPackagesAvailableServicesPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getServicesPackagesAvailableServicesPath()}`, headers, queryParams) as Promise; } -export type PostApiServicesPackageFetchResponse = +export type PostServicesPackageFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiServicesPackagePath = () => `/api/v1/services/package`; +export const postServicesPackagePath = () => `/api/v1/services/package`; -export const postApiServicesPackage = (requestContract: SaveServicePackageRequest, headers = new Headers()): - Promise => { +export const postServicesPackage = (requestContract: SaveServicePackageRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiServicesPackagePath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postServicesPackagePath()}`, requestData, headers) as Promise; } -export type GetApiServicesServicePublicIDPackageFetchResponse = +export type GetServicesServicePublicIDPackageFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiServicesServicePublicIDPackagePath = (servicePublicID: string) => `/api/v1/services/${servicePublicID}/package`; +export const getServicesServicePublicIDPackagePath = (servicePublicID: string) => `/api/v1/services/${servicePublicID}/package`; -export const getApiServicesServicePublicIDPackage = (servicePublicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiServicesServicePublicIDPackagePath(servicePublicID)}`, headers, {}) as Promise; +export const getServicesServicePublicIDPackage = (servicePublicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getServicesServicePublicIDPackagePath(servicePublicID)}`, headers, {}) as Promise; } -export type DeleteApiServicesServicePublicIDPackageFetchResponse = +export type DeleteServicesServicePublicIDPackageFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2161,14 +2161,14 @@ export type DeleteApiServicesServicePublicIDPackageFetchResponse = | FetchResponse | ErrorResponse; -export const deleteApiServicesServicePublicIDPackagePath = (servicePublicID: string) => `/api/v1/services/${servicePublicID}/package`; +export const deleteServicesServicePublicIDPackagePath = (servicePublicID: string) => `/api/v1/services/${servicePublicID}/package`; -export const deleteApiServicesServicePublicIDPackage = (servicePublicID: string, headers = new Headers()): - Promise => { - return apiDelete(`${getApiUrl()}${deleteApiServicesServicePublicIDPackagePath(servicePublicID)}`, headers, {}) as Promise; +export const deleteServicesServicePublicIDPackage = (servicePublicID: string, headers = new Headers()): + Promise => { + return apiDelete(`${getApiUrl()}${deleteServicesServicePublicIDPackagePath(servicePublicID)}`, headers, {}) as Promise; } -export type PutApiServicesServicePublicIDPackageFetchResponse = +export type PutServicesServicePublicIDPackageFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2176,57 +2176,57 @@ export type PutApiServicesServicePublicIDPackageFetchResponse = | FetchResponse | ErrorResponse; -export const putApiServicesServicePublicIDPackagePath = (servicePublicID: string) => `/api/v1/services/${servicePublicID}/package`; +export const putServicesServicePublicIDPackagePath = (servicePublicID: string) => `/api/v1/services/${servicePublicID}/package`; -export const putApiServicesServicePublicIDPackage = (requestContract: SaveServicePackageRequest, servicePublicID: string, headers = new Headers()): - Promise => { +export const putServicesServicePublicIDPackage = (requestContract: SaveServicePackageRequest, servicePublicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiServicesServicePublicIDPackagePath(servicePublicID)}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putServicesServicePublicIDPackagePath(servicePublicID)}`, requestData, headers) as Promise; } -export type GetApiPartiesPublicIDFetchResponse = +export type GetPartiesPublicIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiPartiesPublicIDPath = (publicID: string) => `/api/v1/parties/${publicID}`; +export const getPartiesPublicIDPath = (publicID: string) => `/api/v1/parties/${publicID}`; -export const getApiPartiesPublicID = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiPartiesPublicIDPath(publicID)}`, headers, {}) as Promise; +export const getPartiesPublicID = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getPartiesPublicIDPath(publicID)}`, headers, {}) as Promise; } -export type GetApiPartiesSearchAresFetchResponse = +export type GetPartiesSearchAresFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiPartiesSearchAresPath = () => `/api/v1/parties/search/ares`; +export const getPartiesSearchAresPath = () => `/api/v1/parties/search/ares`; -export const getApiPartiesSearchAres = (query?: string, partyType?: PartyType | undefined | null, headers = new Headers()): - Promise => { +export const getPartiesSearchAres = (query?: string, partyType?: PartyType | undefined | null, headers = new Headers()): + Promise => { const queryParams = { "query": query, "partyType": partyType } - return apiGet(`${getApiUrl()}${getApiPartiesSearchAresPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getPartiesSearchAresPath()}`, headers, queryParams) as Promise; } -export type GetApiOrdersFetchResponse = +export type GetOrdersFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPath = () => `/api/v1/orders`; +export const getOrdersPath = () => `/api/v1/orders`; -export const getApiOrders = (offset?: number, limit?: number, workflowStatuses?: string[], query?: string | undefined | null, startDate?: string | undefined | null, endDate?: string | undefined | null, isSearchInStructure?: boolean, onlyAfterInvoiceDueDate?: boolean, includeClientReminderAvailable?: boolean, headers = new Headers()): - Promise => { +export const getOrders = (offset?: number, limit?: number, workflowStatuses?: string[], query?: string | undefined | null, startDate?: string | undefined | null, endDate?: string | undefined | null, isSearchInStructure?: boolean, onlyAfterInvoiceDueDate?: boolean, includeClientReminderAvailable?: boolean, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit, @@ -2238,412 +2238,412 @@ export const getApiOrders = (offset?: number, limit?: number, workflowStatuses?: "onlyAfterInvoiceDueDate": onlyAfterInvoiceDueDate, "includeClientReminderAvailable": includeClientReminderAvailable } - return apiGet(`${getApiUrl()}${getApiOrdersPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getOrdersPath()}`, headers, queryParams) as Promise; } -export type GetApiOrdersPublicIDFetchResponse = +export type GetOrdersPublicIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPublicIDPath = (publicID: string) => `/api/v1/orders/${publicID}`; +export const getOrdersPublicIDPath = (publicID: string) => `/api/v1/orders/${publicID}`; -export const getApiOrdersPublicID = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersPublicIDPath(publicID)}`, headers, {}) as Promise; +export const getOrdersPublicID = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersPublicIDPath(publicID)}`, headers, {}) as Promise; } -export type DeleteApiOrdersPublicIDFetchResponse = +export type DeleteOrdersPublicIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const deleteApiOrdersPublicIDPath = (publicID: string) => `/api/v1/orders/${publicID}`; +export const deleteOrdersPublicIDPath = (publicID: string) => `/api/v1/orders/${publicID}`; -export const deleteApiOrdersPublicID = (publicID: string, headers = new Headers()): - Promise => { - return apiDelete(`${getApiUrl()}${deleteApiOrdersPublicIDPath(publicID)}`, headers, {}) as Promise; +export const deleteOrdersPublicID = (publicID: string, headers = new Headers()): + Promise => { + return apiDelete(`${getApiUrl()}${deleteOrdersPublicIDPath(publicID)}`, headers, {}) as Promise; } -export type PutApiOrdersPublicIDPeriodicityFetchResponse = +export type PutOrdersPublicIDPeriodicityFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiOrdersPublicIDPeriodicityPath = (publicID: string) => `/api/v1/orders/${publicID}/periodicity`; +export const putOrdersPublicIDPeriodicityPath = (publicID: string) => `/api/v1/orders/${publicID}/periodicity`; -export const putApiOrdersPublicIDPeriodicity = (requestContract: SetPeriodicityRequest, publicID: string, headers = new Headers()): - Promise => { +export const putOrdersPublicIDPeriodicity = (requestContract: SetPeriodicityRequest, publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiOrdersPublicIDPeriodicityPath(publicID)}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putOrdersPublicIDPeriodicityPath(publicID)}`, requestData, headers) as Promise; } -export type GetApiOrdersPublicIDServicesFetchResponse = +export type GetOrdersPublicIDServicesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPublicIDServicesPath = (publicID: string) => `/api/v1/orders/${publicID}/services`; +export const getOrdersPublicIDServicesPath = (publicID: string) => `/api/v1/orders/${publicID}/services`; -export const getApiOrdersPublicIDServices = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersPublicIDServicesPath(publicID)}`, headers, {}) as Promise; +export const getOrdersPublicIDServices = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersPublicIDServicesPath(publicID)}`, headers, {}) as Promise; } -export type DeleteApiOrdersServicesServiceIDFetchResponse = +export type DeleteOrdersServicesServiceIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const deleteApiOrdersServicesServiceIDPath = (serviceID: number) => `/api/v1/orders/services/${serviceID}`; +export const deleteOrdersServicesServiceIDPath = (serviceID: number) => `/api/v1/orders/services/${serviceID}`; -export const deleteApiOrdersServicesServiceID = (serviceID: number, headers = new Headers()): - Promise => { - return apiDelete(`${getApiUrl()}${deleteApiOrdersServicesServiceIDPath(serviceID)}`, headers, {}) as Promise; +export const deleteOrdersServicesServiceID = (serviceID: number, headers = new Headers()): + Promise => { + return apiDelete(`${getApiUrl()}${deleteOrdersServicesServiceIDPath(serviceID)}`, headers, {}) as Promise; } -export type GetApiOrdersPeriodicUpcomingFetchResponse = +export type GetOrdersPeriodicUpcomingFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPeriodicUpcomingPath = () => `/api/v1/orders/periodic/upcoming`; +export const getOrdersPeriodicUpcomingPath = () => `/api/v1/orders/periodic/upcoming`; -export const getApiOrdersPeriodicUpcoming = (offset?: number, limit?: number, nexOrderDate?: string, headers = new Headers()): - Promise => { +export const getOrdersPeriodicUpcoming = (offset?: number, limit?: number, nexOrderDate?: string, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit, "nexOrderDate": nexOrderDate } - return apiGet(`${getApiUrl()}${getApiOrdersPeriodicUpcomingPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getOrdersPeriodicUpcomingPath()}`, headers, queryParams) as Promise; } -export type GetApiOrdersRevocationExampleFileFetchResponse = +export type GetOrdersRevocationExampleFileFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersRevocationExampleFilePath = () => `/api/v1/orders/revocation/example/file`; +export const getOrdersRevocationExampleFilePath = () => `/api/v1/orders/revocation/example/file`; -export const getApiOrdersRevocationExampleFile = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersRevocationExampleFilePath()}`, headers, {}) as Promise; +export const getOrdersRevocationExampleFile = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersRevocationExampleFilePath()}`, headers, {}) as Promise; } -export type GetApiOrdersPublicIDPaymentCalendarItemsFetchResponse = +export type GetOrdersPublicIDPaymentCalendarItemsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPublicIDPaymentCalendarItemsPath = (publicID: string) => `/api/v1/orders/${publicID}/payment-calendar-items`; +export const getOrdersPublicIDPaymentCalendarItemsPath = (publicID: string) => `/api/v1/orders/${publicID}/payment-calendar-items`; -export const getApiOrdersPublicIDPaymentCalendarItems = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersPublicIDPaymentCalendarItemsPath(publicID)}`, headers, {}) as Promise; +export const getOrdersPublicIDPaymentCalendarItems = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersPublicIDPaymentCalendarItemsPath(publicID)}`, headers, {}) as Promise; } -export type GetApiOrdersCountFetchResponse = +export type GetOrdersCountFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersCountPath = () => `/api/v1/orders/count`; +export const getOrdersCountPath = () => `/api/v1/orders/count`; -export const getApiOrdersCount = (onlyActive?: boolean, headers = new Headers()): - Promise => { +export const getOrdersCount = (onlyActive?: boolean, headers = new Headers()): + Promise => { const queryParams = { "onlyActive": onlyActive } - return apiGet(`${getApiUrl()}${getApiOrdersCountPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getOrdersCountPath()}`, headers, queryParams) as Promise; } -export type PostApiOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientFetchResponse = +export type PostOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientPath = (orderPublicID: string) => `/api/v1/orders/${orderPublicID}/client-invoice-recurring-payment-create-invoice-and-set-as-paid-by-client`; +export const postOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientPath = (orderPublicID: string) => `/api/v1/orders/${orderPublicID}/client-invoice-recurring-payment-create-invoice-and-set-as-paid-by-client`; -export const postApiOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClient = (requestContract: ClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientRequest, orderPublicID: string, headers = new Headers()): - Promise => { +export const postOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClient = (requestContract: ClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientRequest, orderPublicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientPath(orderPublicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientPath(orderPublicID)}`, requestData, headers) as Promise; } -export type GetApiOrdersPublicIDClientZonePaymentCalendarItemsFetchResponse = +export type GetOrdersPublicIDClientZonePaymentCalendarItemsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPublicIDClientZonePaymentCalendarItemsPath = (publicID: string) => `/api/v1/orders/${publicID}/client-zone/payment-calendar-items`; +export const getOrdersPublicIDClientZonePaymentCalendarItemsPath = (publicID: string) => `/api/v1/orders/${publicID}/client-zone/payment-calendar-items`; -export const getApiOrdersPublicIDClientZonePaymentCalendarItems = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersPublicIDClientZonePaymentCalendarItemsPath(publicID)}`, headers, {}) as Promise; +export const getOrdersPublicIDClientZonePaymentCalendarItems = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersPublicIDClientZonePaymentCalendarItemsPath(publicID)}`, headers, {}) as Promise; } -export type GetApiOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfoFetchResponse = +export type GetOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfoFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfoPath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/order-service/${orderServiceID}/eucs-order/info`; +export const getOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfoPath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/order-service/${orderServiceID}/eucs-order/info`; -export const getApiOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfo = (publicID: string, orderServiceID: number, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfoPath(publicID, orderServiceID)}`, headers, {}) as Promise; +export const getOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfo = (publicID: string, orderServiceID: number, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfoPath(publicID, orderServiceID)}`, headers, {}) as Promise; } -export type PostApiOrdersPublicIDOrderServiceOrderServiceIDProductCancelFetchResponse = +export type PostOrdersPublicIDOrderServiceOrderServiceIDProductCancelFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDOrderServiceOrderServiceIDProductCancelPath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/order-service/${orderServiceID}/product/cancel`; +export const postOrdersPublicIDOrderServiceOrderServiceIDProductCancelPath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/order-service/${orderServiceID}/product/cancel`; -export const postApiOrdersPublicIDOrderServiceOrderServiceIDProductCancel = (requestContract: CancelProductInInstitutionCommandRequest, publicID: string, orderServiceID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDOrderServiceOrderServiceIDProductCancel = (requestContract: CancelProductInInstitutionCommandRequest, publicID: string, orderServiceID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDOrderServiceOrderServiceIDProductCancelPath(publicID, orderServiceID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDOrderServiceOrderServiceIDProductCancelPath(publicID, orderServiceID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDOrderServiceOrderServiceIDProductCreateFetchResponse = +export type PostOrdersPublicIDOrderServiceOrderServiceIDProductCreateFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDOrderServiceOrderServiceIDProductCreatePath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/order-service/${orderServiceID}/product/create`; +export const postOrdersPublicIDOrderServiceOrderServiceIDProductCreatePath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/order-service/${orderServiceID}/product/create`; -export const postApiOrdersPublicIDOrderServiceOrderServiceIDProductCreate = (requestContract: CreateProductInInstitutionRequest, publicID: string, orderServiceID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDOrderServiceOrderServiceIDProductCreate = (requestContract: CreateProductInInstitutionRequest, publicID: string, orderServiceID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDOrderServiceOrderServiceIDProductCreatePath(publicID, orderServiceID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDOrderServiceOrderServiceIDProductCreatePath(publicID, orderServiceID)}`, requestData, headers) as Promise; } -export type GetApiOrdersPublicIDWorkflowStepsFetchResponse = +export type GetOrdersPublicIDWorkflowStepsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPublicIDWorkflowStepsPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/steps`; +export const getOrdersPublicIDWorkflowStepsPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/steps`; -export const getApiOrdersPublicIDWorkflowSteps = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersPublicIDWorkflowStepsPath(publicID)}`, headers, {}) as Promise; +export const getOrdersPublicIDWorkflowSteps = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersPublicIDWorkflowStepsPath(publicID)}`, headers, {}) as Promise; } -export type PostApiOrdersWorkflowDraftFetchResponse = +export type PostOrdersWorkflowDraftFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersWorkflowDraftPath = () => `/api/v1/orders/workflow/draft`; +export const postOrdersWorkflowDraftPath = () => `/api/v1/orders/workflow/draft`; -export const postApiOrdersWorkflowDraft = (requestContract: SaveDraftRequest, headers = new Headers()): - Promise => { +export const postOrdersWorkflowDraft = (requestContract: SaveDraftRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersWorkflowDraftPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersWorkflowDraftPath()}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowDraftCompleteFetchResponse = +export type PostOrdersPublicIDWorkflowDraftCompleteFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowDraftCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/draft/complete`; +export const postOrdersPublicIDWorkflowDraftCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/draft/complete`; -export const postApiOrdersPublicIDWorkflowDraftComplete = (publicID: string, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowDraftComplete = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowDraftCompletePath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowDraftCompletePath(publicID)}`, requestData, headers) as Promise; } -export type GetApiOrdersWorkflowClientReviewTokenSummaryFetchResponse = +export type GetOrdersWorkflowClientReviewTokenSummaryFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersWorkflowClientReviewTokenSummaryPath = (token: string) => `/api/v1/orders/workflow/client-review/${token}/summary`; +export const getOrdersWorkflowClientReviewTokenSummaryPath = (token: string) => `/api/v1/orders/workflow/client-review/${token}/summary`; -export const getApiOrdersWorkflowClientReviewTokenSummary = (token: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersWorkflowClientReviewTokenSummaryPath(token)}`, headers, {}) as Promise; +export const getOrdersWorkflowClientReviewTokenSummary = (token: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersWorkflowClientReviewTokenSummaryPath(token)}`, headers, {}) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientReviewReminderFetchResponse = +export type PostOrdersPublicIDWorkflowClientReviewReminderFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientReviewReminderPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/client-review/reminder`; +export const postOrdersPublicIDWorkflowClientReviewReminderPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/client-review/reminder`; -export const postApiOrdersPublicIDWorkflowClientReviewReminder = (publicID: string, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientReviewReminder = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientReviewReminderPath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientReviewReminderPath(publicID)}`, requestData, headers) as Promise; } -export type PostApiOrdersWorkflowClientApprovalTokenRejectFetchResponse = +export type PostOrdersWorkflowClientApprovalTokenRejectFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersWorkflowClientApprovalTokenRejectPath = (token: string) => `/api/v1/orders/workflow/client-approval/${token}/reject`; +export const postOrdersWorkflowClientApprovalTokenRejectPath = (token: string) => `/api/v1/orders/workflow/client-approval/${token}/reject`; -export const postApiOrdersWorkflowClientApprovalTokenReject = (requestContract: ClientApprovalRejectRequest, token: string, headers = new Headers()): - Promise => { +export const postOrdersWorkflowClientApprovalTokenReject = (requestContract: ClientApprovalRejectRequest, token: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersWorkflowClientApprovalTokenRejectPath(token)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersWorkflowClientApprovalTokenRejectPath(token)}`, requestData, headers) as Promise; } -export type PutApiOrdersWorkflowClientApprovalTokenInProgressFetchResponse = +export type PutOrdersWorkflowClientApprovalTokenInProgressFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiOrdersWorkflowClientApprovalTokenInProgressPath = (token: string) => `/api/v1/orders/workflow/client-approval/${token}/in-progress`; +export const putOrdersWorkflowClientApprovalTokenInProgressPath = (token: string) => `/api/v1/orders/workflow/client-approval/${token}/in-progress`; -export const putApiOrdersWorkflowClientApprovalTokenInProgress = (token: string, headers = new Headers()): - Promise => { +export const putOrdersWorkflowClientApprovalTokenInProgress = (token: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPut(`${getApiUrl()}${putApiOrdersWorkflowClientApprovalTokenInProgressPath(token)}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putOrdersWorkflowClientApprovalTokenInProgressPath(token)}`, requestData, headers) as Promise; } -export type PostApiOrdersWorkflowClientApprovalTokenCompleteFetchResponse = +export type PostOrdersWorkflowClientApprovalTokenCompleteFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersWorkflowClientApprovalTokenCompletePath = (token: string) => `/api/v1/orders/workflow/client-approval/${token}/complete`; +export const postOrdersWorkflowClientApprovalTokenCompletePath = (token: string) => `/api/v1/orders/workflow/client-approval/${token}/complete`; -export const postApiOrdersWorkflowClientApprovalTokenComplete = (requestContract: ClientApprovalCompleteRequest, token: string, headers = new Headers()): - Promise => { +export const postOrdersWorkflowClientApprovalTokenComplete = (requestContract: ClientApprovalCompleteRequest, token: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersWorkflowClientApprovalTokenCompletePath(token)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersWorkflowClientApprovalTokenCompletePath(token)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowProcessingServicesOrderServiceIDCompleteFetchResponse = +export type PostOrdersPublicIDWorkflowProcessingServicesOrderServiceIDCompleteFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowProcessingServicesOrderServiceIDCompletePath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/workflow/processing-services/${orderServiceID}/complete`; +export const postOrdersPublicIDWorkflowProcessingServicesOrderServiceIDCompletePath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/workflow/processing-services/${orderServiceID}/complete`; -export const postApiOrdersPublicIDWorkflowProcessingServicesOrderServiceIDComplete = (publicID: string, orderServiceID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowProcessingServicesOrderServiceIDComplete = (publicID: string, orderServiceID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowProcessingServicesOrderServiceIDCompletePath(publicID, orderServiceID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowProcessingServicesOrderServiceIDCompletePath(publicID, orderServiceID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowInvoiceIssuanceCompleteFetchResponse = +export type PostOrdersPublicIDWorkflowInvoiceIssuanceCompleteFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowInvoiceIssuanceCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/invoice-issuance/complete`; +export const postOrdersPublicIDWorkflowInvoiceIssuanceCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/invoice-issuance/complete`; -export const postApiOrdersPublicIDWorkflowInvoiceIssuanceComplete = (publicID: string, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowInvoiceIssuanceComplete = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowInvoiceIssuanceCompletePath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowInvoiceIssuanceCompletePath(publicID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowInvoicePaymentCompleteFetchResponse = +export type PostOrdersPublicIDWorkflowInvoicePaymentCompleteFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowInvoicePaymentCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/invoice-payment/complete`; +export const postOrdersPublicIDWorkflowInvoicePaymentCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/invoice-payment/complete`; -export const postApiOrdersPublicIDWorkflowInvoicePaymentComplete = (publicID: string, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowInvoicePaymentComplete = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowInvoicePaymentCompletePath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowInvoicePaymentCompletePath(publicID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowInvoicePaymentReminderFetchResponse = +export type PostOrdersPublicIDWorkflowInvoicePaymentReminderFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowInvoicePaymentReminderPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/invoice-payment/reminder`; +export const postOrdersPublicIDWorkflowInvoicePaymentReminderPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/invoice-payment/reminder`; -export const postApiOrdersPublicIDWorkflowInvoicePaymentReminder = (publicID: string, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowInvoicePaymentReminder = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowInvoicePaymentReminderPath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowInvoicePaymentReminderPath(publicID)}`, requestData, headers) as Promise; } -export type GetApiOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPaymentFetchResponse = +export type GetOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPaymentFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPaymentPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/enterprise-invoice-issuance-and-payment`; +export const getOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPaymentPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/enterprise-invoice-issuance-and-payment`; -export const getApiOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPayment = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPaymentPath(publicID)}`, headers, {}) as Promise; +export const getOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPayment = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPaymentPath(publicID)}`, headers, {}) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancelFetchResponse = +export type PostOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancelFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2651,16 +2651,16 @@ export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCal | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancelPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/cancel`; +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancelPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/cancel`; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancel = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancel = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancelPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancelPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminderFetchResponse = +export type PostOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminderFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2668,16 +2668,16 @@ export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCal | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminderPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/reminder`; +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminderPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/reminder`; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminder = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminder = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminderPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminderPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminderFetchResponse = +export type PostOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminderFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2685,16 +2685,16 @@ export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCal | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminderPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/prepaid/reminder`; +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminderPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/prepaid/reminder`; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminder = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminder = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminderPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminderPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoiceFetchResponse = +export type PostOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoiceFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2702,16 +2702,16 @@ export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCal | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoicePath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/send-invoice`; +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoicePath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/send-invoice`; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoice = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoice = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoicePath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoicePath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPayFetchResponse = +export type PostOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPayFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2719,16 +2719,16 @@ export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCal | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPayPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/pay`; +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPayPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/pay`; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPay = (requestContract: ClientInvoiceRecurringPaymentClientPaidRequest, publicID: string, paymentCalendarItemID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPay = (requestContract: ClientInvoiceRecurringPaymentClientPaidRequest, publicID: string, paymentCalendarItemID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPayPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPayPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPayFetchResponse = +export type PostOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPayFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2736,48 +2736,48 @@ export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCal | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPayPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/prepaid/send-invoice-and-pay`; +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPayPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/prepaid/send-invoice-and-pay`; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPay = (requestContract: ClientPrepaidInvoiceRecurringPaymentSendInvoiceAndSetPaidRequest, publicID: string, paymentCalendarItemID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPay = (requestContract: ClientPrepaidInvoiceRecurringPaymentSendInvoiceAndSetPaidRequest, publicID: string, paymentCalendarItemID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPayPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPayPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmailFetchResponse = +export type PostOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmailFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmailPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/client-assignment/send-assignment-email`; +export const postOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmailPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/client-assignment/send-assignment-email`; -export const postApiOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmail = (publicID: string, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmail = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmailPath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmailPath(publicID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientPrepaidPaymentApprovalCompleteFetchResponse = +export type PostOrdersPublicIDWorkflowClientPrepaidPaymentApprovalCompleteFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientPrepaidPaymentApprovalCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/client-prepaid-payment-approval/complete`; +export const postOrdersPublicIDWorkflowClientPrepaidPaymentApprovalCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/client-prepaid-payment-approval/complete`; -export const postApiOrdersPublicIDWorkflowClientPrepaidPaymentApprovalComplete = (requestContract: ClientPrepaidPaymentApprovalStepCompleteCommandRequest, publicID: string, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientPrepaidPaymentApprovalComplete = (requestContract: ClientPrepaidPaymentApprovalStepCompleteCommandRequest, publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientPrepaidPaymentApprovalCompletePath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientPrepaidPaymentApprovalCompletePath(publicID)}`, requestData, headers) as Promise; } -export type PostApiOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgressFetchResponse = +export type PostOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgressFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2785,246 +2785,246 @@ export type PostApiOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgressFetc | FetchResponse | ErrorResponse; -export const postApiOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgressPath = (token: string) => `/api/v1/orders/workflow/client-prepaid-payment-approval/${token}/in-progress`; +export const postOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgressPath = (token: string) => `/api/v1/orders/workflow/client-prepaid-payment-approval/${token}/in-progress`; -export const postApiOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgress = (requestContract: ClientPrepaidPaymentApprovalStepInProgressRequest, token: string, headers = new Headers()): - Promise => { +export const postOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgress = (requestContract: ClientPrepaidPaymentApprovalStepInProgressRequest, token: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgressPath(token)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgressPath(token)}`, requestData, headers) as Promise; } -export type PostApiOrdersWorkflowClientPrepaidPaymentApprovalTokenRejectFetchResponse = +export type PostOrdersWorkflowClientPrepaidPaymentApprovalTokenRejectFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersWorkflowClientPrepaidPaymentApprovalTokenRejectPath = (token: string) => `/api/v1/orders/workflow/client-prepaid-payment-approval/${token}/reject`; +export const postOrdersWorkflowClientPrepaidPaymentApprovalTokenRejectPath = (token: string) => `/api/v1/orders/workflow/client-prepaid-payment-approval/${token}/reject`; -export const postApiOrdersWorkflowClientPrepaidPaymentApprovalTokenReject = (requestContract: ClientPrepaidPaymentApprovalStepRejectRequest, token: string, headers = new Headers()): - Promise => { +export const postOrdersWorkflowClientPrepaidPaymentApprovalTokenReject = (requestContract: ClientPrepaidPaymentApprovalStepRejectRequest, token: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersWorkflowClientPrepaidPaymentApprovalTokenRejectPath(token)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersWorkflowClientPrepaidPaymentApprovalTokenRejectPath(token)}`, requestData, headers) as Promise; } -export type PutApiNotificationsUserSettingsFetchResponse = +export type PutNotificationsUserSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiNotificationsUserSettingsPath = () => `/api/v1/notifications/user-settings`; +export const putNotificationsUserSettingsPath = () => `/api/v1/notifications/user-settings`; -export const putApiNotificationsUserSettings = (requestContract: UserNotificationUpdateRequest, headers = new Headers()): - Promise => { +export const putNotificationsUserSettings = (requestContract: UserNotificationUpdateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiNotificationsUserSettingsPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putNotificationsUserSettingsPath()}`, requestData, headers) as Promise; } -export type GetApiInvoicesUserInvoicesFetchResponse = +export type GetInvoicesUserInvoicesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiInvoicesUserInvoicesPath = () => `/api/v1/invoices/user-invoices`; +export const getInvoicesUserInvoicesPath = () => `/api/v1/invoices/user-invoices`; -export const getApiInvoicesUserInvoices = (offset?: number, limit?: number, headers = new Headers()): - Promise => { +export const getInvoicesUserInvoices = (offset?: number, limit?: number, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit } - return apiGet(`${getApiUrl()}${getApiInvoicesUserInvoicesPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getInvoicesUserInvoicesPath()}`, headers, queryParams) as Promise; } -export type GetApiInvoicesPublicIDFetchResponse = +export type GetInvoicesPublicIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiInvoicesPublicIDPath = (publicID: string) => `/api/v1/invoices/${publicID}`; +export const getInvoicesPublicIDPath = (publicID: string) => `/api/v1/invoices/${publicID}`; -export const getApiInvoicesPublicID = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiInvoicesPublicIDPath(publicID)}`, headers, {}) as Promise; +export const getInvoicesPublicID = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getInvoicesPublicIDPath(publicID)}`, headers, {}) as Promise; } -export type GetApiInvoicesPublicIDISDOCFetchResponse = +export type GetInvoicesPublicIDISDOCFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiInvoicesPublicIDISDOCPath = (publicID: string) => `/api/v1/invoices/${publicID}/ISDOC`; +export const getInvoicesPublicIDISDOCPath = (publicID: string) => `/api/v1/invoices/${publicID}/ISDOC`; -export const getApiInvoicesPublicIDISDOC = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiInvoicesPublicIDISDOCPath(publicID)}`, headers, {}) as Promise; +export const getInvoicesPublicIDISDOC = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getInvoicesPublicIDISDOCPath(publicID)}`, headers, {}) as Promise; } -export type GetApiInvoicesPublicIDISDOCPdfFetchResponse = +export type GetInvoicesPublicIDISDOCPdfFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiInvoicesPublicIDISDOCPdfPath = (publicID: string) => `/api/v1/invoices/${publicID}/ISDOCPdf`; +export const getInvoicesPublicIDISDOCPdfPath = (publicID: string) => `/api/v1/invoices/${publicID}/ISDOCPdf`; -export const getApiInvoicesPublicIDISDOCPdf = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiInvoicesPublicIDISDOCPdfPath(publicID)}`, headers, {}) as Promise; +export const getInvoicesPublicIDISDOCPdf = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getInvoicesPublicIDISDOCPdfPath(publicID)}`, headers, {}) as Promise; } -export type GetApiInvoicesInvoiceForSupplierCompanyByUserISDOCPdfFetchResponse = +export type GetInvoicesInvoiceForSupplierCompanyByUserISDOCPdfFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiInvoicesInvoiceForSupplierCompanyByUserISDOCPdfPath = () => `/api/v1/invoices/invoice-for-supplier-company-by-user/ISDOCPdf`; +export const getInvoicesInvoiceForSupplierCompanyByUserISDOCPdfPath = () => `/api/v1/invoices/invoice-for-supplier-company-by-user/ISDOCPdf`; -export const getApiInvoicesInvoiceForSupplierCompanyByUserISDOCPdf = (InvoicePublicIDs?: string[], headers = new Headers()): - Promise => { +export const getInvoicesInvoiceForSupplierCompanyByUserISDOCPdf = (InvoicePublicIDs?: string[], headers = new Headers()): + Promise => { const queryParams = { "InvoicePublicIDs": InvoicePublicIDs } - return apiGet(`${getApiUrl()}${getApiInvoicesInvoiceForSupplierCompanyByUserISDOCPdfPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getInvoicesInvoiceForSupplierCompanyByUserISDOCPdfPath()}`, headers, queryParams) as Promise; } -export type PostApiInvoicesInvoiceForClientByOrderPublicIDCancelFetchResponse = +export type PostInvoicesInvoiceForClientByOrderPublicIDCancelFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiInvoicesInvoiceForClientByOrderPublicIDCancelPath = (publicID: string) => `/api/v1/invoices/invoice-for-client-by-order/${publicID}/cancel`; +export const postInvoicesInvoiceForClientByOrderPublicIDCancelPath = (publicID: string) => `/api/v1/invoices/invoice-for-client-by-order/${publicID}/cancel`; -export const postApiInvoicesInvoiceForClientByOrderPublicIDCancel = (publicID: string, headers = new Headers()): - Promise => { +export const postInvoicesInvoiceForClientByOrderPublicIDCancel = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiInvoicesInvoiceForClientByOrderPublicIDCancelPath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postInvoicesInvoiceForClientByOrderPublicIDCancelPath(publicID)}`, requestData, headers) as Promise; } -export type PostApiEnterprisesFetchResponse = +export type PostEnterprisesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiEnterprisesPath = () => `/api/v1/enterprises`; +export const postEnterprisesPath = () => `/api/v1/enterprises`; -export const postApiEnterprises = (requestContract: CreateEnterpriseRequest, headers = new Headers()): - Promise => { +export const postEnterprises = (requestContract: CreateEnterpriseRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiEnterprisesPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postEnterprisesPath()}`, requestData, headers) as Promise; } -export type PostApiEnterprisesChangeModeFetchResponse = +export type PostEnterprisesChangeModeFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiEnterprisesChangeModePath = () => `/api/v1/enterprises/change-mode`; +export const postEnterprisesChangeModePath = () => `/api/v1/enterprises/change-mode`; -export const postApiEnterprisesChangeMode = (requestContract: EnterpriseModeChangeRequest, headers = new Headers()): - Promise => { +export const postEnterprisesChangeMode = (requestContract: EnterpriseModeChangeRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiEnterprisesChangeModePath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postEnterprisesChangeModePath()}`, requestData, headers) as Promise; } -export type PutApiEnterprisesDesignSettingsFetchResponse = +export type PutEnterprisesDesignSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiEnterprisesDesignSettingsPath = () => `/api/v1/enterprises/design-settings`; +export const putEnterprisesDesignSettingsPath = () => `/api/v1/enterprises/design-settings`; -export const putApiEnterprisesDesignSettings = (requestContract: EnterpriseDesignSettingsUpdateRequest, headers = new Headers()): - Promise => { +export const putEnterprisesDesignSettings = (requestContract: EnterpriseDesignSettingsUpdateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiEnterprisesDesignSettingsPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putEnterprisesDesignSettingsPath()}`, requestData, headers) as Promise; } -export type PutApiEnterprisesCommunicationSettingsFetchResponse = +export type PutEnterprisesCommunicationSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiEnterprisesCommunicationSettingsPath = () => `/api/v1/enterprises/communication-settings`; +export const putEnterprisesCommunicationSettingsPath = () => `/api/v1/enterprises/communication-settings`; -export const putApiEnterprisesCommunicationSettings = (requestContract: EnterpriseCommunicationSettingsUpdateRequest, headers = new Headers()): - Promise => { +export const putEnterprisesCommunicationSettings = (requestContract: EnterpriseCommunicationSettingsUpdateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiEnterprisesCommunicationSettingsPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putEnterprisesCommunicationSettingsPath()}`, requestData, headers) as Promise; } -export type GetApiEnterprisesBasicSettingsFetchResponse = +export type GetEnterprisesBasicSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesBasicSettingsPath = () => `/api/v1/enterprises/basic-settings`; +export const getEnterprisesBasicSettingsPath = () => `/api/v1/enterprises/basic-settings`; -export const getApiEnterprisesBasicSettings = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesBasicSettingsPath()}`, headers, {}) as Promise; +export const getEnterprisesBasicSettings = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesBasicSettingsPath()}`, headers, {}) as Promise; } -export type GetApiEnterprisesExternalIDBasicSettingsFetchResponse = +export type GetEnterprisesExternalIDBasicSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesExternalIDBasicSettingsPath = (externalID: string) => `/api/v1/enterprises/${externalID}/basic-settings`; +export const getEnterprisesExternalIDBasicSettingsPath = (externalID: string) => `/api/v1/enterprises/${externalID}/basic-settings`; -export const getApiEnterprisesExternalIDBasicSettings = (externalID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesExternalIDBasicSettingsPath(externalID)}`, headers, {}) as Promise; +export const getEnterprisesExternalIDBasicSettings = (externalID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesExternalIDBasicSettingsPath(externalID)}`, headers, {}) as Promise; } -export type GetApiEnterprisesCommissionSettingsFetchResponse = +export type GetEnterprisesCommissionSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesCommissionSettingsPath = () => `/api/v1/enterprises/commission-settings`; +export const getEnterprisesCommissionSettingsPath = () => `/api/v1/enterprises/commission-settings`; -export const getApiEnterprisesCommissionSettings = (offset?: number, limit?: number, headers = new Headers()): - Promise => { +export const getEnterprisesCommissionSettings = (offset?: number, limit?: number, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit } - return apiGet(`${getApiUrl()}${getApiEnterprisesCommissionSettingsPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getEnterprisesCommissionSettingsPath()}`, headers, queryParams) as Promise; } -export type PostApiEnterprisesCommissionSettingsFetchResponse = +export type PostEnterprisesCommissionSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3032,188 +3032,188 @@ export type PostApiEnterprisesCommissionSettingsFetchResponse = | FetchResponse | ErrorResponse; -export const postApiEnterprisesCommissionSettingsPath = () => `/api/v1/enterprises/commission-settings`; +export const postEnterprisesCommissionSettingsPath = () => `/api/v1/enterprises/commission-settings`; -export const postApiEnterprisesCommissionSettings = (requestContract: CreateEnterpriseCommissionSettingsRequest, headers = new Headers()): - Promise => { +export const postEnterprisesCommissionSettings = (requestContract: CreateEnterpriseCommissionSettingsRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiEnterprisesCommissionSettingsPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postEnterprisesCommissionSettingsPath()}`, requestData, headers) as Promise; } -export type GetApiEnterprisesServiceSettingsFetchResponse = +export type GetEnterprisesServiceSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesServiceSettingsPath = () => `/api/v1/enterprises/service-settings`; +export const getEnterprisesServiceSettingsPath = () => `/api/v1/enterprises/service-settings`; -export const getApiEnterprisesServiceSettings = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesServiceSettingsPath()}`, headers, {}) as Promise; +export const getEnterprisesServiceSettings = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesServiceSettingsPath()}`, headers, {}) as Promise; } -export type PutApiEnterprisesServiceSettingsFetchResponse = +export type PutEnterprisesServiceSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiEnterprisesServiceSettingsPath = () => `/api/v1/enterprises/service-settings`; +export const putEnterprisesServiceSettingsPath = () => `/api/v1/enterprises/service-settings`; -export const putApiEnterprisesServiceSettings = (requestContract: EnterpriseServiceSettingsUpdateRequest, headers = new Headers()): - Promise => { +export const putEnterprisesServiceSettings = (requestContract: EnterpriseServiceSettingsUpdateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiEnterprisesServiceSettingsPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putEnterprisesServiceSettingsPath()}`, requestData, headers) as Promise; } -export type GetApiEnterprisesServicesFetchResponse = +export type GetEnterprisesServicesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesServicesPath = () => `/api/v1/enterprises/services`; +export const getEnterprisesServicesPath = () => `/api/v1/enterprises/services`; -export const getApiEnterprisesServices = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesServicesPath()}`, headers, {}) as Promise; +export const getEnterprisesServices = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesServicesPath()}`, headers, {}) as Promise; } -export type PutApiEnterprisesServicesFetchResponse = +export type PutEnterprisesServicesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiEnterprisesServicesPath = () => `/api/v1/enterprises/services`; +export const putEnterprisesServicesPath = () => `/api/v1/enterprises/services`; -export const putApiEnterprisesServices = (requestContract: EnterpriseServicesUpdateRequest, headers = new Headers()): - Promise => { +export const putEnterprisesServices = (requestContract: EnterpriseServicesUpdateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiEnterprisesServicesPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putEnterprisesServicesPath()}`, requestData, headers) as Promise; } -export type GetApiEnterprisesLogoFetchResponse = +export type GetEnterprisesLogoFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesLogoPath = () => `/api/v1/enterprises/logo`; +export const getEnterprisesLogoPath = () => `/api/v1/enterprises/logo`; -export const getApiEnterprisesLogo = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesLogoPath()}`, headers, {}) as Promise; +export const getEnterprisesLogo = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesLogoPath()}`, headers, {}) as Promise; } -export type GetApiEnterprisesPublicIDLogoJsonFetchResponse = +export type GetEnterprisesPublicIDLogoJsonFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesPublicIDLogoJsonPath = (publicID: string) => `/api/v1/enterprises/${publicID}/logo/json`; +export const getEnterprisesPublicIDLogoJsonPath = (publicID: string) => `/api/v1/enterprises/${publicID}/logo/json`; -export const getApiEnterprisesPublicIDLogoJson = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesPublicIDLogoJsonPath(publicID)}`, headers, {}) as Promise; +export const getEnterprisesPublicIDLogoJson = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesPublicIDLogoJsonPath(publicID)}`, headers, {}) as Promise; } -export type GetApiEnterprisesPublicIDLogoFileFetchResponse = +export type GetEnterprisesPublicIDLogoFileFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesPublicIDLogoFilePath = (publicID: string) => `/api/v1/enterprises/${publicID}/logo/file`; +export const getEnterprisesPublicIDLogoFilePath = (publicID: string) => `/api/v1/enterprises/${publicID}/logo/file`; -export const getApiEnterprisesPublicIDLogoFile = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesPublicIDLogoFilePath(publicID)}`, headers, {}) as Promise; +export const getEnterprisesPublicIDLogoFile = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesPublicIDLogoFilePath(publicID)}`, headers, {}) as Promise; } -export type GetApiEnterprisesPublicIDLogoTenantFileFetchResponse = +export type GetEnterprisesPublicIDLogoTenantFileFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesPublicIDLogoTenantFilePath = (publicID: string) => `/api/v1/enterprises/${publicID}/logo/tenant/file`; +export const getEnterprisesPublicIDLogoTenantFilePath = (publicID: string) => `/api/v1/enterprises/${publicID}/logo/tenant/file`; -export const getApiEnterprisesPublicIDLogoTenantFile = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesPublicIDLogoTenantFilePath(publicID)}`, headers, {}) as Promise; +export const getEnterprisesPublicIDLogoTenantFile = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesPublicIDLogoTenantFilePath(publicID)}`, headers, {}) as Promise; } -export type GetApiEnterprisesPublicIDDesignSettingsFetchResponse = +export type GetEnterprisesPublicIDDesignSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesPublicIDDesignSettingsPath = (publicID: string) => `/api/v1/enterprises/${publicID}/design-settings`; +export const getEnterprisesPublicIDDesignSettingsPath = (publicID: string) => `/api/v1/enterprises/${publicID}/design-settings`; -export const getApiEnterprisesPublicIDDesignSettings = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesPublicIDDesignSettingsPath(publicID)}`, headers, {}) as Promise; +export const getEnterprisesPublicIDDesignSettings = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesPublicIDDesignSettingsPath(publicID)}`, headers, {}) as Promise; } -export type GetApiEnterprisesPackageServiceSettingsFetchResponse = +export type GetEnterprisesPackageServiceSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesPackageServiceSettingsPath = () => `/api/v1/enterprises/package-service-settings`; +export const getEnterprisesPackageServiceSettingsPath = () => `/api/v1/enterprises/package-service-settings`; -export const getApiEnterprisesPackageServiceSettings = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesPackageServiceSettingsPath()}`, headers, {}) as Promise; +export const getEnterprisesPackageServiceSettings = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesPackageServiceSettingsPath()}`, headers, {}) as Promise; } -export type PutApiEnterprisesPackageServiceSettingsFetchResponse = +export type PutEnterprisesPackageServiceSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiEnterprisesPackageServiceSettingsPath = () => `/api/v1/enterprises/package-service-settings`; +export const putEnterprisesPackageServiceSettingsPath = () => `/api/v1/enterprises/package-service-settings`; -export const putApiEnterprisesPackageServiceSettings = (requestContract: EnterprisePackageServiceSettingsUpdateRequest, headers = new Headers()): - Promise => { +export const putEnterprisesPackageServiceSettings = (requestContract: EnterprisePackageServiceSettingsUpdateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiEnterprisesPackageServiceSettingsPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putEnterprisesPackageServiceSettingsPath()}`, requestData, headers) as Promise; } -export type GetApiCutoffsFetchResponse = +export type GetCutoffsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCutoffsPath = () => `/api/v1/cutoffs`; +export const getCutoffsPath = () => `/api/v1/cutoffs`; -export const getApiCutoffs = (offset?: number, limit?: number, headers = new Headers()): - Promise => { +export const getCutoffs = (offset?: number, limit?: number, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit } - return apiGet(`${getApiUrl()}${getApiCutoffsPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getCutoffsPath()}`, headers, queryParams) as Promise; } -export type PostApiCutoffsFetchResponse = +export type PostCutoffsFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3222,16 +3222,16 @@ export type PostApiCutoffsFetchResponse = | FetchResponse | ErrorResponse; -export const postApiCutoffsPath = () => `/api/v1/cutoffs`; +export const postCutoffsPath = () => `/api/v1/cutoffs`; -export const postApiCutoffs = (requestContract: CutoffCreateRequest, headers = new Headers()): - Promise => { +export const postCutoffs = (requestContract: CutoffCreateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiCutoffsPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postCutoffsPath()}`, requestData, headers) as Promise; } -export type GetApiCutoffsPublicIDFetchResponse = +export type GetCutoffsPublicIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3239,54 +3239,54 @@ export type GetApiCutoffsPublicIDFetchResponse = | FetchResponse | ErrorResponse; -export const getApiCutoffsPublicIDPath = (publicID: string) => `/api/v1/cutoffs/${publicID}`; +export const getCutoffsPublicIDPath = (publicID: string) => `/api/v1/cutoffs/${publicID}`; -export const getApiCutoffsPublicID = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCutoffsPublicIDPath(publicID)}`, headers, {}) as Promise; +export const getCutoffsPublicID = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCutoffsPublicIDPath(publicID)}`, headers, {}) as Promise; } -export type GetApiCutoffsCompanyIDDateFromForNextCutoffFetchResponse = +export type GetCutoffsCompanyIDDateFromForNextCutoffFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCutoffsCompanyIDDateFromForNextCutoffPath = (companyID: number) => `/api/v1/cutoffs/${companyID}/date-from-for-next-cutoff`; +export const getCutoffsCompanyIDDateFromForNextCutoffPath = (companyID: number) => `/api/v1/cutoffs/${companyID}/date-from-for-next-cutoff`; -export const getApiCutoffsCompanyIDDateFromForNextCutoff = (companyID: number, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCutoffsCompanyIDDateFromForNextCutoffPath(companyID)}`, headers, {}) as Promise; +export const getCutoffsCompanyIDDateFromForNextCutoff = (companyID: number, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCutoffsCompanyIDDateFromForNextCutoffPath(companyID)}`, headers, {}) as Promise; } -export type GetApiCutoffsExpectedUserCommissionFetchResponse = +export type GetCutoffsExpectedUserCommissionFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCutoffsExpectedUserCommissionPath = () => `/api/v1/cutoffs/expected-user-commission`; +export const getCutoffsExpectedUserCommissionPath = () => `/api/v1/cutoffs/expected-user-commission`; -export const getApiCutoffsExpectedUserCommission = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCutoffsExpectedUserCommissionPath()}`, headers, {}) as Promise; +export const getCutoffsExpectedUserCommission = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCutoffsExpectedUserCommissionPath()}`, headers, {}) as Promise; } -export type GetApiCutoffsPaidUserCommissionFetchResponse = +export type GetCutoffsPaidUserCommissionFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCutoffsPaidUserCommissionPath = () => `/api/v1/cutoffs/paid-user-commission`; +export const getCutoffsPaidUserCommissionPath = () => `/api/v1/cutoffs/paid-user-commission`; -export const getApiCutoffsPaidUserCommission = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCutoffsPaidUserCommissionPath()}`, headers, {}) as Promise; +export const getCutoffsPaidUserCommission = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCutoffsPaidUserCommissionPath()}`, headers, {}) as Promise; } -export type GetApiCutoffsPublicIDISDOCPdfsFetchResponse = +export type GetCutoffsPublicIDISDOCPdfsFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3294,14 +3294,14 @@ export type GetApiCutoffsPublicIDISDOCPdfsFetchResponse = | FetchResponse | ErrorResponse; -export const getApiCutoffsPublicIDISDOCPdfsPath = (publicID: string) => `/api/v1/cutoffs/${publicID}/ISDOCPdfs`; +export const getCutoffsPublicIDISDOCPdfsPath = (publicID: string) => `/api/v1/cutoffs/${publicID}/ISDOCPdfs`; -export const getApiCutoffsPublicIDISDOCPdfs = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCutoffsPublicIDISDOCPdfsPath(publicID)}`, headers, {}) as Promise; +export const getCutoffsPublicIDISDOCPdfs = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCutoffsPublicIDISDOCPdfsPath(publicID)}`, headers, {}) as Promise; } -export type PostApiCutoffsPublicIDSendPaymentsFetchResponse = +export type PostCutoffsPublicIDSendPaymentsFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3310,16 +3310,16 @@ export type PostApiCutoffsPublicIDSendPaymentsFetchResponse = | FetchResponse | ErrorResponse; -export const postApiCutoffsPublicIDSendPaymentsPath = (publicID: string) => `/api/v1/cutoffs/${publicID}/send-payments`; +export const postCutoffsPublicIDSendPaymentsPath = (publicID: string) => `/api/v1/cutoffs/${publicID}/send-payments`; -export const postApiCutoffsPublicIDSendPayments = (publicID: string, headers = new Headers()): - Promise => { +export const postCutoffsPublicIDSendPayments = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiCutoffsPublicIDSendPaymentsPath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postCutoffsPublicIDSendPaymentsPath(publicID)}`, requestData, headers) as Promise; } -export type GetApiCutoffsPublicIDDetailPdfFetchResponse = +export type GetCutoffsPublicIDDetailPdfFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3327,27 +3327,27 @@ export type GetApiCutoffsPublicIDDetailPdfFetchResponse = | FetchResponse | ErrorResponse; -export const getApiCutoffsPublicIDDetailPdfPath = (publicID: string) => `/api/v1/cutoffs/${publicID}/detail-pdf`; +export const getCutoffsPublicIDDetailPdfPath = (publicID: string) => `/api/v1/cutoffs/${publicID}/detail-pdf`; -export const getApiCutoffsPublicIDDetailPdf = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCutoffsPublicIDDetailPdfPath(publicID)}`, headers, {}) as Promise; +export const getCutoffsPublicIDDetailPdf = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCutoffsPublicIDDetailPdfPath(publicID)}`, headers, {}) as Promise; } -export type GetApiCutoffsUserSupplierCompaniesFetchResponse = +export type GetCutoffsUserSupplierCompaniesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCutoffsUserSupplierCompaniesPath = () => `/api/v1/cutoffs/user-supplier-companies`; +export const getCutoffsUserSupplierCompaniesPath = () => `/api/v1/cutoffs/user-supplier-companies`; -export const getApiCutoffsUserSupplierCompanies = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCutoffsUserSupplierCompaniesPath()}`, headers, {}) as Promise; +export const getCutoffsUserSupplierCompanies = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCutoffsUserSupplierCompaniesPath()}`, headers, {}) as Promise; } -export type GetApiCompaniesPublicIDFetchResponse = +export type GetCompaniesPublicIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3355,104 +3355,104 @@ export type GetApiCompaniesPublicIDFetchResponse = | FetchResponse | ErrorResponse; -export const getApiCompaniesPublicIDPath = (publicID: string) => `/api/v1/companies/${publicID}`; +export const getCompaniesPublicIDPath = (publicID: string) => `/api/v1/companies/${publicID}`; -export const getApiCompaniesPublicID = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCompaniesPublicIDPath(publicID)}`, headers, {}) as Promise; +export const getCompaniesPublicID = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCompaniesPublicIDPath(publicID)}`, headers, {}) as Promise; } -export type PostApiCompaniesFetchResponse = +export type PostCompaniesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiCompaniesPath = () => `/api/v1/companies`; +export const postCompaniesPath = () => `/api/v1/companies`; -export const postApiCompanies = (requestContract: CompanyCreateRequest, headers = new Headers()): - Promise => { +export const postCompanies = (requestContract: CompanyCreateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiCompaniesPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postCompaniesPath()}`, requestData, headers) as Promise; } -export type PutApiCompaniesFetchResponse = +export type PutCompaniesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiCompaniesPath = () => `/api/v1/companies`; +export const putCompaniesPath = () => `/api/v1/companies`; -export const putApiCompanies = (requestContract: CompanyUpdateRequest, headers = new Headers()): - Promise => { +export const putCompanies = (requestContract: CompanyUpdateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiCompaniesPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putCompaniesPath()}`, requestData, headers) as Promise; } -export type GetApiCompaniesUserSupplierCompaniesFetchResponse = +export type GetCompaniesUserSupplierCompaniesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCompaniesUserSupplierCompaniesPath = () => `/api/v1/companies/user-supplier-companies`; +export const getCompaniesUserSupplierCompaniesPath = () => `/api/v1/companies/user-supplier-companies`; -export const getApiCompaniesUserSupplierCompanies = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCompaniesUserSupplierCompaniesPath()}`, headers, {}) as Promise; +export const getCompaniesUserSupplierCompanies = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCompaniesUserSupplierCompaniesPath()}`, headers, {}) as Promise; } -export type PostApiCompaniesUserSupplierCompanyFetchResponse = +export type PostCompaniesUserSupplierCompanyFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiCompaniesUserSupplierCompanyPath = () => `/api/v1/companies/user-supplier-company`; +export const postCompaniesUserSupplierCompanyPath = () => `/api/v1/companies/user-supplier-company`; -export const postApiCompaniesUserSupplierCompany = (requestContract: UserSupplierCompanySetRequest, headers = new Headers()): - Promise => { +export const postCompaniesUserSupplierCompany = (requestContract: UserSupplierCompanySetRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiCompaniesUserSupplierCompanyPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postCompaniesUserSupplierCompanyPath()}`, requestData, headers) as Promise; } -export type GetApiCompaniesPublicIDDesignSettingsFetchResponse = +export type GetCompaniesPublicIDDesignSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCompaniesPublicIDDesignSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/design-settings`; +export const getCompaniesPublicIDDesignSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/design-settings`; -export const getApiCompaniesPublicIDDesignSettings = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCompaniesPublicIDDesignSettingsPath(publicID)}`, headers, {}) as Promise; +export const getCompaniesPublicIDDesignSettings = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCompaniesPublicIDDesignSettingsPath(publicID)}`, headers, {}) as Promise; } -export type PutApiCompaniesPublicIDDesignSettingsFetchResponse = +export type PutCompaniesPublicIDDesignSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiCompaniesPublicIDDesignSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/design-settings`; +export const putCompaniesPublicIDDesignSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/design-settings`; -export const putApiCompaniesPublicIDDesignSettings = (requestContract: SaveCompanyDesignSettingsRequest, publicID: string, headers = new Headers()): - Promise => { +export const putCompaniesPublicIDDesignSettings = (requestContract: SaveCompanyDesignSettingsRequest, publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiCompaniesPublicIDDesignSettingsPath(publicID)}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putCompaniesPublicIDDesignSettingsPath(publicID)}`, requestData, headers) as Promise; } -export type GetApiCompaniesPublicIDFioSettingsFetchResponse = +export type GetCompaniesPublicIDFioSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3460,118 +3460,118 @@ export type GetApiCompaniesPublicIDFioSettingsFetchResponse = | FetchResponse | ErrorResponse; -export const getApiCompaniesPublicIDFioSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/fio-settings`; +export const getCompaniesPublicIDFioSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/fio-settings`; -export const getApiCompaniesPublicIDFioSettings = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCompaniesPublicIDFioSettingsPath(publicID)}`, headers, {}) as Promise; +export const getCompaniesPublicIDFioSettings = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCompaniesPublicIDFioSettingsPath(publicID)}`, headers, {}) as Promise; } -export type PutApiCompaniesPublicIDFioSettingsFetchResponse = +export type PutCompaniesPublicIDFioSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiCompaniesPublicIDFioSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/fio-settings`; +export const putCompaniesPublicIDFioSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/fio-settings`; -export const putApiCompaniesPublicIDFioSettings = (requestContract: SaveFioSettingsRequest, publicID: string, headers = new Headers()): - Promise => { +export const putCompaniesPublicIDFioSettings = (requestContract: SaveFioSettingsRequest, publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiCompaniesPublicIDFioSettingsPath(publicID)}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putCompaniesPublicIDFioSettingsPath(publicID)}`, requestData, headers) as Promise; } -export type GetApiCompaniesPublicIDLogoFileFetchResponse = +export type GetCompaniesPublicIDLogoFileFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCompaniesPublicIDLogoFilePath = (publicID: string) => `/api/v1/companies/${publicID}/logo/file`; +export const getCompaniesPublicIDLogoFilePath = (publicID: string) => `/api/v1/companies/${publicID}/logo/file`; -export const getApiCompaniesPublicIDLogoFile = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCompaniesPublicIDLogoFilePath(publicID)}`, headers, {}) as Promise; +export const getCompaniesPublicIDLogoFile = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCompaniesPublicIDLogoFilePath(publicID)}`, headers, {}) as Promise; } -export type GetApiCodeListsFetchResponse = +export type GetCodeListsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCodeListsPath = () => `/api/v1/code-lists`; +export const getCodeListsPath = () => `/api/v1/code-lists`; -export const getApiCodeLists = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCodeListsPath()}`, headers, {}) as Promise; +export const getCodeLists = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCodeListsPath()}`, headers, {}) as Promise; } -export type GetApiClientsCountFetchResponse = +export type GetClientsCountFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiClientsCountPath = () => `/api/v1/clients/count`; +export const getClientsCountPath = () => `/api/v1/clients/count`; -export const getApiClientsCount = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiClientsCountPath()}`, headers, {}) as Promise; +export const getClientsCount = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getClientsCountPath()}`, headers, {}) as Promise; } -export type GetApiClientsSearchFetchResponse = +export type GetClientsSearchFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiClientsSearchPath = () => `/api/v1/clients/search`; +export const getClientsSearchPath = () => `/api/v1/clients/search`; -export const getApiClientsSearch = (query?: string, headers = new Headers()): - Promise => { +export const getClientsSearch = (query?: string, headers = new Headers()): + Promise => { const queryParams = { "query": query } - return apiGet(`${getApiUrl()}${getApiClientsSearchPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getClientsSearchPath()}`, headers, queryParams) as Promise; } -export type GetApiClientsSearchPersonalNumberFetchResponse = +export type GetClientsSearchPersonalNumberFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiClientsSearchPersonalNumberPath = () => `/api/v1/clients/search/personal-number`; +export const getClientsSearchPersonalNumberPath = () => `/api/v1/clients/search/personal-number`; -export const getApiClientsSearchPersonalNumber = (query?: string, headers = new Headers()): - Promise => { +export const getClientsSearchPersonalNumber = (query?: string, headers = new Headers()): + Promise => { const queryParams = { "query": query } - return apiGet(`${getApiUrl()}${getApiClientsSearchPersonalNumberPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getClientsSearchPersonalNumberPath()}`, headers, queryParams) as Promise; } -export type PostApiCacheRefreshFetchResponse = +export type PostCacheRefreshFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiCacheRefreshPath = () => `/api/v1/cache/refresh`; +export const postCacheRefreshPath = () => `/api/v1/cache/refresh`; -export const postApiCacheRefresh = (body: string, headers = new Headers()): - Promise => { +export const postCacheRefresh = (body: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(body, false); - return apiPost(`${getApiUrl()}${postApiCacheRefreshPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postCacheRefreshPath()}`, requestData, headers) as Promise; } -export type PostApiAuthSignUpFetchResponse = +export type PostAuthSignUpFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3579,128 +3579,128 @@ export type PostApiAuthSignUpFetchResponse = | FetchResponse | ErrorResponse; -export const postApiAuthSignUpPath = () => `/api/v1/auth/sign-up`; +export const postAuthSignUpPath = () => `/api/v1/auth/sign-up`; -export const postApiAuthSignUp = (requestContract: SignUpCommand, headers = new Headers()): - Promise => { +export const postAuthSignUp = (requestContract: SignUpCommand, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiAuthSignUpPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthSignUpPath()}`, requestData, headers) as Promise; } -export type PostApiAuthSignInFetchResponse = +export type PostAuthSignInFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiAuthSignInPath = () => `/api/v1/auth/sign-in`; +export const postAuthSignInPath = () => `/api/v1/auth/sign-in`; -export const postApiAuthSignIn = (requestContract: SignInCommand, headers = new Headers()): - Promise => { +export const postAuthSignIn = (requestContract: SignInCommand, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiAuthSignInPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthSignInPath()}`, requestData, headers) as Promise; } -export type PostApiAuthTokenFetchResponse = +export type PostAuthTokenFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiAuthTokenPath = () => `/api/v1/auth/token`; +export const postAuthTokenPath = () => `/api/v1/auth/token`; -export const postApiAuthToken = (headers = new Headers()): - Promise => { +export const postAuthToken = (headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, true); - return apiPost(`${getApiUrl()}${postApiAuthTokenPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthTokenPath()}`, requestData, headers) as Promise; } -export type PostApiAuthEmailVerificationFetchResponse = +export type PostAuthEmailVerificationFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiAuthEmailVerificationPath = () => `/api/v1/auth/email-verification`; +export const postAuthEmailVerificationPath = () => `/api/v1/auth/email-verification`; -export const postApiAuthEmailVerification = (requestContract: EmailVerificationCommand, headers = new Headers()): - Promise => { +export const postAuthEmailVerification = (requestContract: EmailVerificationCommand, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiAuthEmailVerificationPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthEmailVerificationPath()}`, requestData, headers) as Promise; } -export type PostApiAuthEmailVerificationSendFetchResponse = +export type PostAuthEmailVerificationSendFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiAuthEmailVerificationSendPath = () => `/api/v1/auth/email-verification/send`; +export const postAuthEmailVerificationSendPath = () => `/api/v1/auth/email-verification/send`; -export const postApiAuthEmailVerificationSend = (requestContract: ResendVerificationEmailCommand, headers = new Headers()): - Promise => { +export const postAuthEmailVerificationSend = (requestContract: ResendVerificationEmailCommand, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiAuthEmailVerificationSendPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthEmailVerificationSendPath()}`, requestData, headers) as Promise; } -export type PostApiAuthSsoFetchResponse = +export type PostAuthSsoFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiAuthSsoPath = () => `/api/v1/auth/sso`; +export const postAuthSsoPath = () => `/api/v1/auth/sso`; -export const postApiAuthSso = (requestContract: SsoSignInRequest, headers = new Headers()): - Promise => { +export const postAuthSso = (requestContract: SsoSignInRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiAuthSsoPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthSsoPath()}`, requestData, headers) as Promise; } -export type GetApiAuthSsoTokenFetchResponse = +export type GetAuthSsoTokenFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiAuthSsoTokenPath = () => `/api/v1/auth/sso-token`; +export const getAuthSsoTokenPath = () => `/api/v1/auth/sso-token`; -export const getApiAuthSsoToken = (IdentityProvider?: IdentityProvider, headers = new Headers()): - Promise => { +export const getAuthSsoToken = (IdentityProvider?: IdentityProvider, headers = new Headers()): + Promise => { const queryParams = { "IdentityProvider": IdentityProvider } - return apiGet(`${getApiUrl()}${getApiAuthSsoTokenPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getAuthSsoTokenPath()}`, headers, queryParams) as Promise; } -export type PostApiAuthPasswordResetFetchResponse = +export type PostAuthPasswordResetFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiAuthPasswordResetPath = () => `/api/v1/auth/password-reset`; +export const postAuthPasswordResetPath = () => `/api/v1/auth/password-reset`; -export const postApiAuthPasswordReset = (requestContract: ResetPasswordCommand, headers = new Headers()): - Promise => { +export const postAuthPasswordReset = (requestContract: ResetPasswordCommand, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiAuthPasswordResetPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthPasswordResetPath()}`, requestData, headers) as Promise; } -export type PutApiAuthPasswordFetchResponse = +export type PutAuthPasswordFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3708,11 +3708,11 @@ export type PutApiAuthPasswordFetchResponse = | FetchResponse | ErrorResponse; -export const putApiAuthPasswordPath = () => `/api/v1/auth/password`; +export const putAuthPasswordPath = () => `/api/v1/auth/password`; -export const putApiAuthPassword = (requestContract: SetPasswordCommand, headers = new Headers()): - Promise => { +export const putAuthPassword = (requestContract: SetPasswordCommand, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiAuthPasswordPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putAuthPasswordPath()}`, requestData, headers) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_nswag_angular.ts b/apps/cli/src/tests/__snapshots__/generate_nswag_angular.ts index cae8746..ab0fe0c 100644 --- a/apps/cli/src/tests/__snapshots__/generate_nswag_angular.ts +++ b/apps/cli/src/tests/__snapshots__/generate_nswag_angular.ts @@ -1946,21 +1946,21 @@ export class ApiService { this.baseUrl = baseUrl ?? ""; } - getApiWorkflowsSteps(): Observable | ResponseResult | ResponseResult> { + getWorkflowsSteps(): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/workflows/steps`); } - getApiUserCompany(): Observable | ResponseResult | ResponseResult> { + getUserCompany(): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/user/company`); } - putApiUserCompany(requestContract: UserCompanySetRequest): Observable | ResponseResult | ResponseResult> { + putUserCompany(requestContract: UserCompanySetRequest): Observable | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPut | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/user/company`, requestData); } - getApiServicesPackages(offset?: number, limit?: number): Observable | ResponseResult | ResponseResult> { + getServicesPackages(offset?: number, limit?: number): Observable | ResponseResult | ResponseResult> { const queryParams = { "offset": offset, "limit": limit @@ -1968,7 +1968,7 @@ export class ApiService { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/services/packages`, queryParams); } - getApiServicesPackagesAvailableServices(offset?: number, limit?: number): Observable | ResponseResult | ResponseResult> { + getServicesPackagesAvailableServices(offset?: number, limit?: number): Observable | ResponseResult | ResponseResult> { const queryParams = { "offset": offset, "limit": limit @@ -1976,31 +1976,31 @@ export class ApiService { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/services/packages/available-services`, queryParams); } - postApiServicesPackage(requestContract: SaveServicePackageRequest): Observable | ResponseResult | ResponseResult> { + postServicesPackage(requestContract: SaveServicePackageRequest): Observable | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/services/package`, requestData); } - getApiServicesServicePublicIDPackage(servicePublicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + getServicesServicePublicIDPackage(servicePublicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/services/${servicePublicID}/package`); } - deleteApiServicesServicePublicIDPackage(servicePublicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + deleteServicesServicePublicIDPackage(servicePublicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { return apiDelete | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/services/${servicePublicID}/package`); } - putApiServicesServicePublicIDPackage(requestContract: SaveServicePackageRequest, servicePublicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + putServicesServicePublicIDPackage(requestContract: SaveServicePackageRequest, servicePublicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPut | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/services/${servicePublicID}/package`, requestData); } - getApiPartiesPublicID(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + getPartiesPublicID(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/parties/${publicID}`); } - getApiPartiesSearchAres(query?: string, partyType?: PartyType | undefined | null): Observable | ResponseResult | ResponseResult | ResponseResult> { + getPartiesSearchAres(query?: string, partyType?: PartyType | undefined | null): Observable | ResponseResult | ResponseResult | ResponseResult> { const queryParams = { "query": query, "partyType": partyType @@ -2008,7 +2008,7 @@ export class ApiService { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/parties/search/ares`, queryParams); } - getApiOrders(offset?: number, limit?: number, workflowStatuses?: string[], query?: string | undefined | null, startDate?: string | undefined | null, endDate?: string | undefined | null, isSearchInStructure?: boolean, onlyAfterInvoiceDueDate?: boolean, includeClientReminderAvailable?: boolean): Observable | ResponseResult | ResponseResult> { + getOrders(offset?: number, limit?: number, workflowStatuses?: string[], query?: string | undefined | null, startDate?: string | undefined | null, endDate?: string | undefined | null, isSearchInStructure?: boolean, onlyAfterInvoiceDueDate?: boolean, includeClientReminderAvailable?: boolean): Observable | ResponseResult | ResponseResult> { const queryParams = { "offset": offset, "limit": limit, @@ -2023,29 +2023,29 @@ export class ApiService { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders`, queryParams); } - getApiOrdersPublicID(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + getOrdersPublicID(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}`); } - deleteApiOrdersPublicID(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + deleteOrdersPublicID(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiDelete | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}`); } - putApiOrdersPublicIDPeriodicity(requestContract: SetPeriodicityRequest, publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + putOrdersPublicIDPeriodicity(requestContract: SetPeriodicityRequest, publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPut | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/periodicity`, requestData); } - getApiOrdersPublicIDServices(publicID: string): Observable | ResponseResult | ResponseResult> { + getOrdersPublicIDServices(publicID: string): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/services`); } - deleteApiOrdersServicesServiceID(serviceID: number): Observable | ResponseResult | ResponseResult | ResponseResult> { + deleteOrdersServicesServiceID(serviceID: number): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiDelete | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/services/${serviceID}`); } - getApiOrdersPeriodicUpcoming(offset?: number, limit?: number, nexOrderDate?: string): Observable | ResponseResult | ResponseResult> { + getOrdersPeriodicUpcoming(offset?: number, limit?: number, nexOrderDate?: string): Observable | ResponseResult | ResponseResult> { const queryParams = { "offset": offset, "limit": limit, @@ -2054,186 +2054,186 @@ export class ApiService { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/periodic/upcoming`, queryParams); } - getApiOrdersRevocationExampleFile(): Observable | ResponseResult | ResponseResult | ResponseResult> { + getOrdersRevocationExampleFile(): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/revocation/example/file`); } - getApiOrdersPublicIDPaymentCalendarItems(publicID: string): Observable | ResponseResult | ResponseResult> { + getOrdersPublicIDPaymentCalendarItems(publicID: string): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/payment-calendar-items`); } - getApiOrdersCount(onlyActive?: boolean): Observable | ResponseResult | ResponseResult> { + getOrdersCount(onlyActive?: boolean): Observable | ResponseResult | ResponseResult> { const queryParams = { "onlyActive": onlyActive }; return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/count`, queryParams); } - postApiOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClient(requestContract: ClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientRequest, orderPublicID: string): Observable | ResponseResult | ResponseResult> { + postOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClient(requestContract: ClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientRequest, orderPublicID: string): Observable | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${orderPublicID}/client-invoice-recurring-payment-create-invoice-and-set-as-paid-by-client`, requestData); } - getApiOrdersPublicIDClientZonePaymentCalendarItems(publicID: string): Observable | ResponseResult | ResponseResult> { + getOrdersPublicIDClientZonePaymentCalendarItems(publicID: string): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/client-zone/payment-calendar-items`); } - getApiOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfo(publicID: string, orderServiceID: number): Observable | ResponseResult | ResponseResult | ResponseResult> { + getOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfo(publicID: string, orderServiceID: number): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/order-service/${orderServiceID}/eucs-order/info`); } - postApiOrdersPublicIDOrderServiceOrderServiceIDProductCancel(requestContract: CancelProductInInstitutionCommandRequest, publicID: string, orderServiceID: number): Observable | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDOrderServiceOrderServiceIDProductCancel(requestContract: CancelProductInInstitutionCommandRequest, publicID: string, orderServiceID: number): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/order-service/${orderServiceID}/product/cancel`, requestData); } - postApiOrdersPublicIDOrderServiceOrderServiceIDProductCreate(requestContract: CreateProductInInstitutionRequest, publicID: string, orderServiceID: number): Observable | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDOrderServiceOrderServiceIDProductCreate(requestContract: CreateProductInInstitutionRequest, publicID: string, orderServiceID: number): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/order-service/${orderServiceID}/product/create`, requestData); } - getApiOrdersPublicIDWorkflowSteps(publicID: string): Observable | ResponseResult | ResponseResult> { + getOrdersPublicIDWorkflowSteps(publicID: string): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/steps`); } - postApiOrdersWorkflowDraft(requestContract: SaveDraftRequest): Observable | ResponseResult | ResponseResult> { + postOrdersWorkflowDraft(requestContract: SaveDraftRequest): Observable | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/workflow/draft`, requestData); } - postApiOrdersPublicIDWorkflowDraftComplete(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDWorkflowDraftComplete(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/draft/complete`, requestData); } - getApiOrdersWorkflowClientReviewTokenSummary(token: string): Observable | ResponseResult | ResponseResult> { + getOrdersWorkflowClientReviewTokenSummary(token: string): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/workflow/client-review/${token}/summary`); } - postApiOrdersPublicIDWorkflowClientReviewReminder(publicID: string): Observable | ResponseResult | ResponseResult> { + postOrdersPublicIDWorkflowClientReviewReminder(publicID: string): Observable | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, false); return apiPost | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/client-review/reminder`, requestData); } - postApiOrdersWorkflowClientApprovalTokenReject(requestContract: ClientApprovalRejectRequest, token: string): Observable | ResponseResult | ResponseResult> { + postOrdersWorkflowClientApprovalTokenReject(requestContract: ClientApprovalRejectRequest, token: string): Observable | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/workflow/client-approval/${token}/reject`, requestData); } - putApiOrdersWorkflowClientApprovalTokenInProgress(token: string): Observable | ResponseResult | ResponseResult> { + putOrdersWorkflowClientApprovalTokenInProgress(token: string): Observable | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, false); return apiPut | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/workflow/client-approval/${token}/in-progress`, requestData); } - postApiOrdersWorkflowClientApprovalTokenComplete(requestContract: ClientApprovalCompleteRequest, token: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + postOrdersWorkflowClientApprovalTokenComplete(requestContract: ClientApprovalCompleteRequest, token: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/workflow/client-approval/${token}/complete`, requestData); } - postApiOrdersPublicIDWorkflowProcessingServicesOrderServiceIDComplete(publicID: string, orderServiceID: number): Observable | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDWorkflowProcessingServicesOrderServiceIDComplete(publicID: string, orderServiceID: number): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/processing-services/${orderServiceID}/complete`, requestData); } - postApiOrdersPublicIDWorkflowInvoiceIssuanceComplete(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDWorkflowInvoiceIssuanceComplete(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/invoice-issuance/complete`, requestData); } - postApiOrdersPublicIDWorkflowInvoicePaymentComplete(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDWorkflowInvoicePaymentComplete(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/invoice-payment/complete`, requestData); } - postApiOrdersPublicIDWorkflowInvoicePaymentReminder(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDWorkflowInvoicePaymentReminder(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/invoice-payment/reminder`, requestData); } - getApiOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPayment(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + getOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPayment(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/enterprise-invoice-issuance-and-payment`); } - postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancel(publicID: string, paymentCalendarItemID: number): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancel(publicID: string, paymentCalendarItemID: number): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, false); return apiPost | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/cancel`, requestData); } - postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminder(publicID: string, paymentCalendarItemID: number): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminder(publicID: string, paymentCalendarItemID: number): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, false); return apiPost | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/reminder`, requestData); } - postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminder(publicID: string, paymentCalendarItemID: number): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminder(publicID: string, paymentCalendarItemID: number): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, false); return apiPost | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/prepaid/reminder`, requestData); } - postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoice(publicID: string, paymentCalendarItemID: number): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoice(publicID: string, paymentCalendarItemID: number): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, false); return apiPost | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/send-invoice`, requestData); } - postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPay(requestContract: ClientInvoiceRecurringPaymentClientPaidRequest, publicID: string, paymentCalendarItemID: number): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPay(requestContract: ClientInvoiceRecurringPaymentClientPaidRequest, publicID: string, paymentCalendarItemID: number): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/pay`, requestData); } - postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPay(requestContract: ClientPrepaidInvoiceRecurringPaymentSendInvoiceAndSetPaidRequest, publicID: string, paymentCalendarItemID: number): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPay(requestContract: ClientPrepaidInvoiceRecurringPaymentSendInvoiceAndSetPaidRequest, publicID: string, paymentCalendarItemID: number): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/prepaid/send-invoice-and-pay`, requestData); } - postApiOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmail(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmail(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/client-assignment/send-assignment-email`, requestData); } - postApiOrdersPublicIDWorkflowClientPrepaidPaymentApprovalComplete(requestContract: ClientPrepaidPaymentApprovalStepCompleteCommandRequest, publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + postOrdersPublicIDWorkflowClientPrepaidPaymentApprovalComplete(requestContract: ClientPrepaidPaymentApprovalStepCompleteCommandRequest, publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/${publicID}/workflow/client-prepaid-payment-approval/complete`, requestData); } - postApiOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgress(requestContract: ClientPrepaidPaymentApprovalStepInProgressRequest, token: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + postOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgress(requestContract: ClientPrepaidPaymentApprovalStepInProgressRequest, token: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/workflow/client-prepaid-payment-approval/${token}/in-progress`, requestData); } - postApiOrdersWorkflowClientPrepaidPaymentApprovalTokenReject(requestContract: ClientPrepaidPaymentApprovalStepRejectRequest, token: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + postOrdersWorkflowClientPrepaidPaymentApprovalTokenReject(requestContract: ClientPrepaidPaymentApprovalStepRejectRequest, token: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/orders/workflow/client-prepaid-payment-approval/${token}/reject`, requestData); } - putApiNotificationsUserSettings(requestContract: UserNotificationUpdateRequest): Observable | ResponseResult | ResponseResult> { + putNotificationsUserSettings(requestContract: UserNotificationUpdateRequest): Observable | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPut | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/notifications/user-settings`, requestData); } - getApiInvoicesUserInvoices(offset?: number, limit?: number): Observable | ResponseResult | ResponseResult> { + getInvoicesUserInvoices(offset?: number, limit?: number): Observable | ResponseResult | ResponseResult> { const queryParams = { "offset": offset, "limit": limit @@ -2241,64 +2241,64 @@ export class ApiService { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/invoices/user-invoices`, queryParams); } - getApiInvoicesPublicID(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + getInvoicesPublicID(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/invoices/${publicID}`); } - getApiInvoicesPublicIDISDOC(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + getInvoicesPublicIDISDOC(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/invoices/${publicID}/ISDOC`); } - getApiInvoicesPublicIDISDOCPdf(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + getInvoicesPublicIDISDOCPdf(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/invoices/${publicID}/ISDOCPdf`); } - getApiInvoicesInvoiceForSupplierCompanyByUserISDOCPdf(InvoicePublicIDs?: string[]): Observable | ResponseResult | ResponseResult | ResponseResult> { + getInvoicesInvoiceForSupplierCompanyByUserISDOCPdf(InvoicePublicIDs?: string[]): Observable | ResponseResult | ResponseResult | ResponseResult> { const queryParams = { "InvoicePublicIDs": InvoicePublicIDs }; return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/invoices/invoice-for-supplier-company-by-user/ISDOCPdf`, queryParams); } - postApiInvoicesInvoiceForClientByOrderPublicIDCancel(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + postInvoicesInvoiceForClientByOrderPublicIDCancel(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/invoices/invoice-for-client-by-order/${publicID}/cancel`, requestData); } - postApiEnterprises(requestContract: CreateEnterpriseRequest): Observable | ResponseResult | ResponseResult> { + postEnterprises(requestContract: CreateEnterpriseRequest): Observable | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises`, requestData); } - postApiEnterprisesChangeMode(requestContract: EnterpriseModeChangeRequest): Observable | ResponseResult | ResponseResult | ResponseResult> { + postEnterprisesChangeMode(requestContract: EnterpriseModeChangeRequest): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/change-mode`, requestData); } - putApiEnterprisesDesignSettings(requestContract: EnterpriseDesignSettingsUpdateRequest): Observable | ResponseResult | ResponseResult | ResponseResult> { + putEnterprisesDesignSettings(requestContract: EnterpriseDesignSettingsUpdateRequest): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPut | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/design-settings`, requestData); } - putApiEnterprisesCommunicationSettings(requestContract: EnterpriseCommunicationSettingsUpdateRequest): Observable | ResponseResult | ResponseResult> { + putEnterprisesCommunicationSettings(requestContract: EnterpriseCommunicationSettingsUpdateRequest): Observable | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPut | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/communication-settings`, requestData); } - getApiEnterprisesBasicSettings(): Observable | ResponseResult | ResponseResult> { + getEnterprisesBasicSettings(): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/basic-settings`); } - getApiEnterprisesExternalIDBasicSettings(externalID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + getEnterprisesExternalIDBasicSettings(externalID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/${externalID}/basic-settings`); } - getApiEnterprisesCommissionSettings(offset?: number, limit?: number): Observable | ResponseResult | ResponseResult | ResponseResult> { + getEnterprisesCommissionSettings(offset?: number, limit?: number): Observable | ResponseResult | ResponseResult | ResponseResult> { const queryParams = { "offset": offset, "limit": limit @@ -2306,63 +2306,63 @@ export class ApiService { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/commission-settings`, queryParams); } - postApiEnterprisesCommissionSettings(requestContract: CreateEnterpriseCommissionSettingsRequest): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + postEnterprisesCommissionSettings(requestContract: CreateEnterpriseCommissionSettingsRequest): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/commission-settings`, requestData); } - getApiEnterprisesServiceSettings(): Observable | ResponseResult | ResponseResult> { + getEnterprisesServiceSettings(): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/service-settings`); } - putApiEnterprisesServiceSettings(requestContract: EnterpriseServiceSettingsUpdateRequest): Observable | ResponseResult | ResponseResult | ResponseResult> { + putEnterprisesServiceSettings(requestContract: EnterpriseServiceSettingsUpdateRequest): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPut | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/service-settings`, requestData); } - getApiEnterprisesServices(): Observable | ResponseResult | ResponseResult> { + getEnterprisesServices(): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/services`); } - putApiEnterprisesServices(requestContract: EnterpriseServicesUpdateRequest): Observable | ResponseResult | ResponseResult | ResponseResult> { + putEnterprisesServices(requestContract: EnterpriseServicesUpdateRequest): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPut | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/services`, requestData); } - getApiEnterprisesLogo(): Observable | ResponseResult | ResponseResult> { + getEnterprisesLogo(): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/logo`); } - getApiEnterprisesPublicIDLogoJson(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + getEnterprisesPublicIDLogoJson(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/${publicID}/logo/json`); } - getApiEnterprisesPublicIDLogoFile(publicID: string): Observable | ResponseResult | ResponseResult> { + getEnterprisesPublicIDLogoFile(publicID: string): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/${publicID}/logo/file`); } - getApiEnterprisesPublicIDLogoTenantFile(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + getEnterprisesPublicIDLogoTenantFile(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/${publicID}/logo/tenant/file`); } - getApiEnterprisesPublicIDDesignSettings(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + getEnterprisesPublicIDDesignSettings(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/${publicID}/design-settings`); } - getApiEnterprisesPackageServiceSettings(): Observable | ResponseResult | ResponseResult> { + getEnterprisesPackageServiceSettings(): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/package-service-settings`); } - putApiEnterprisesPackageServiceSettings(requestContract: EnterprisePackageServiceSettingsUpdateRequest): Observable | ResponseResult | ResponseResult> { + putEnterprisesPackageServiceSettings(requestContract: EnterprisePackageServiceSettingsUpdateRequest): Observable | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPut | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/enterprises/package-service-settings`, requestData); } - getApiCutoffs(offset?: number, limit?: number): Observable | ResponseResult | ResponseResult | ResponseResult> { + getCutoffs(offset?: number, limit?: number): Observable | ResponseResult | ResponseResult | ResponseResult> { const queryParams = { "offset": offset, "limit": limit @@ -2370,174 +2370,174 @@ export class ApiService { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/cutoffs`, queryParams); } - postApiCutoffs(requestContract: CutoffCreateRequest): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + postCutoffs(requestContract: CutoffCreateRequest): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/cutoffs`, requestData); } - getApiCutoffsPublicID(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + getCutoffsPublicID(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/cutoffs/${publicID}`); } - getApiCutoffsCompanyIDDateFromForNextCutoff(companyID: number): Observable | ResponseResult | ResponseResult | ResponseResult> { + getCutoffsCompanyIDDateFromForNextCutoff(companyID: number): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/cutoffs/${companyID}/date-from-for-next-cutoff`); } - getApiCutoffsExpectedUserCommission(): Observable | ResponseResult | ResponseResult> { + getCutoffsExpectedUserCommission(): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/cutoffs/expected-user-commission`); } - getApiCutoffsPaidUserCommission(): Observable | ResponseResult | ResponseResult> { + getCutoffsPaidUserCommission(): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/cutoffs/paid-user-commission`); } - getApiCutoffsPublicIDISDOCPdfs(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + getCutoffsPublicIDISDOCPdfs(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/cutoffs/${publicID}/ISDOCPdfs`); } - postApiCutoffsPublicIDSendPayments(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + postCutoffsPublicIDSendPayments(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, false); return apiPost | ResponseResult | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/cutoffs/${publicID}/send-payments`, requestData); } - getApiCutoffsPublicIDDetailPdf(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + getCutoffsPublicIDDetailPdf(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/cutoffs/${publicID}/detail-pdf`); } - getApiCutoffsUserSupplierCompanies(): Observable | ResponseResult | ResponseResult> { + getCutoffsUserSupplierCompanies(): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/cutoffs/user-supplier-companies`); } - getApiCompaniesPublicID(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + getCompaniesPublicID(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/companies/${publicID}`); } - postApiCompanies(requestContract: CompanyCreateRequest): Observable | ResponseResult | ResponseResult> { + postCompanies(requestContract: CompanyCreateRequest): Observable | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/companies`, requestData); } - putApiCompanies(requestContract: CompanyUpdateRequest): Observable | ResponseResult | ResponseResult | ResponseResult> { + putCompanies(requestContract: CompanyUpdateRequest): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPut | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/companies`, requestData); } - getApiCompaniesUserSupplierCompanies(): Observable | ResponseResult | ResponseResult> { + getCompaniesUserSupplierCompanies(): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/companies/user-supplier-companies`); } - postApiCompaniesUserSupplierCompany(requestContract: UserSupplierCompanySetRequest): Observable | ResponseResult | ResponseResult | ResponseResult> { + postCompaniesUserSupplierCompany(requestContract: UserSupplierCompanySetRequest): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/companies/user-supplier-company`, requestData); } - getApiCompaniesPublicIDDesignSettings(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + getCompaniesPublicIDDesignSettings(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/companies/${publicID}/design-settings`); } - putApiCompaniesPublicIDDesignSettings(requestContract: SaveCompanyDesignSettingsRequest, publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + putCompaniesPublicIDDesignSettings(requestContract: SaveCompanyDesignSettingsRequest, publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPut | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/companies/${publicID}/design-settings`, requestData); } - getApiCompaniesPublicIDFioSettings(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + getCompaniesPublicIDFioSettings(publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/companies/${publicID}/fio-settings`); } - putApiCompaniesPublicIDFioSettings(requestContract: SaveFioSettingsRequest, publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + putCompaniesPublicIDFioSettings(requestContract: SaveFioSettingsRequest, publicID: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPut | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/companies/${publicID}/fio-settings`, requestData); } - getApiCompaniesPublicIDLogoFile(publicID: string): Observable | ResponseResult | ResponseResult> { + getCompaniesPublicIDLogoFile(publicID: string): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/companies/${publicID}/logo/file`); } - getApiCodeLists(): Observable | ResponseResult | ResponseResult> { + getCodeLists(): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/code-lists`); } - getApiClientsCount(): Observable | ResponseResult | ResponseResult> { + getClientsCount(): Observable | ResponseResult | ResponseResult> { return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/clients/count`); } - getApiClientsSearch(query?: string): Observable | ResponseResult | ResponseResult> { + getClientsSearch(query?: string): Observable | ResponseResult | ResponseResult> { const queryParams = { "query": query }; return apiGet | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/clients/search`, queryParams); } - getApiClientsSearchPersonalNumber(query?: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + getClientsSearchPersonalNumber(query?: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const queryParams = { "query": query }; return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/clients/search/personal-number`, queryParams); } - postApiCacheRefresh(body: string): Observable | ResponseResult | ResponseResult | ResponseResult> { + postCacheRefresh(body: string): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(body, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/cache/refresh`, requestData); } - postApiAuthSignUp(requestContract: SignUpCommand): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + postAuthSignUp(requestContract: SignUpCommand): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/auth/sign-up`, requestData); } - postApiAuthSignIn(requestContract: SignInCommand): Observable | ResponseResult | ResponseResult | ResponseResult> { + postAuthSignIn(requestContract: SignInCommand): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/auth/sign-in`, requestData); } - postApiAuthToken(): Observable | ResponseResult | ResponseResult | ResponseResult> { + postAuthToken(): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(undefined, true); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/auth/token`, requestData); } - postApiAuthEmailVerification(requestContract: EmailVerificationCommand): Observable | ResponseResult | ResponseResult | ResponseResult> { + postAuthEmailVerification(requestContract: EmailVerificationCommand): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/auth/email-verification`, requestData); } - postApiAuthEmailVerificationSend(requestContract: ResendVerificationEmailCommand): Observable | ResponseResult | ResponseResult> { + postAuthEmailVerificationSend(requestContract: ResendVerificationEmailCommand): Observable | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/auth/email-verification/send`, requestData); } - postApiAuthSso(requestContract: SsoSignInRequest): Observable | ResponseResult | ResponseResult | ResponseResult> { + postAuthSso(requestContract: SsoSignInRequest): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/auth/sso`, requestData); } - getApiAuthSsoToken(IdentityProvider?: IdentityProvider): Observable | ResponseResult | ResponseResult | ResponseResult> { + getAuthSsoToken(IdentityProvider?: IdentityProvider): Observable | ResponseResult | ResponseResult | ResponseResult> { const queryParams = { "IdentityProvider": IdentityProvider }; return apiGet | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/auth/sso-token`, queryParams); } - postApiAuthPasswordReset(requestContract: ResetPasswordCommand): Observable | ResponseResult | ResponseResult | ResponseResult> { + postAuthPasswordReset(requestContract: ResetPasswordCommand): Observable | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/auth/password-reset`, requestData); } - putApiAuthPassword(requestContract: SetPasswordCommand): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { + putAuthPassword(requestContract: SetPasswordCommand): Observable | ResponseResult | ResponseResult | ResponseResult | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPut | ResponseResult | ResponseResult | ResponseResult | ResponseResult>(this.httpClient, `${this.baseUrl}/api/v1/auth/password`, requestData); diff --git a/apps/cli/src/tests/__snapshots__/generate_nswag_cookies.ts b/apps/cli/src/tests/__snapshots__/generate_nswag_cookies.ts index 3754f34..4060f94 100644 --- a/apps/cli/src/tests/__snapshots__/generate_nswag_cookies.ts +++ b/apps/cli/src/tests/__snapshots__/generate_nswag_cookies.ts @@ -2055,111 +2055,111 @@ export type SetPasswordCommand = { password: string; }; -export type GetApiWorkflowsStepsFetchResponse = +export type GetWorkflowsStepsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiWorkflowsStepsPath = () => `/api/v1/workflows/steps`; +export const getWorkflowsStepsPath = () => `/api/v1/workflows/steps`; -export const getApiWorkflowsSteps = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiWorkflowsStepsPath()}`, headers, {}) as Promise; +export const getWorkflowsSteps = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getWorkflowsStepsPath()}`, headers, {}) as Promise; } -export type GetApiUserCompanyFetchResponse = +export type GetUserCompanyFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiUserCompanyPath = () => `/api/v1/user/company`; +export const getUserCompanyPath = () => `/api/v1/user/company`; -export const getApiUserCompany = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiUserCompanyPath()}`, headers, {}) as Promise; +export const getUserCompany = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getUserCompanyPath()}`, headers, {}) as Promise; } -export type PutApiUserCompanyFetchResponse = +export type PutUserCompanyFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiUserCompanyPath = () => `/api/v1/user/company`; +export const putUserCompanyPath = () => `/api/v1/user/company`; -export const putApiUserCompany = (requestContract: UserCompanySetRequest, headers = new Headers()): - Promise => { +export const putUserCompany = (requestContract: UserCompanySetRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiUserCompanyPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putUserCompanyPath()}`, requestData, headers) as Promise; } -export type GetApiServicesPackagesFetchResponse = +export type GetServicesPackagesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiServicesPackagesPath = () => `/api/v1/services/packages`; +export const getServicesPackagesPath = () => `/api/v1/services/packages`; -export const getApiServicesPackages = (offset?: number, limit?: number, headers = new Headers()): - Promise => { +export const getServicesPackages = (offset?: number, limit?: number, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit } - return apiGet(`${getApiUrl()}${getApiServicesPackagesPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getServicesPackagesPath()}`, headers, queryParams) as Promise; } -export type GetApiServicesPackagesAvailableServicesFetchResponse = +export type GetServicesPackagesAvailableServicesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiServicesPackagesAvailableServicesPath = () => `/api/v1/services/packages/available-services`; +export const getServicesPackagesAvailableServicesPath = () => `/api/v1/services/packages/available-services`; -export const getApiServicesPackagesAvailableServices = (offset?: number, limit?: number, headers = new Headers()): - Promise => { +export const getServicesPackagesAvailableServices = (offset?: number, limit?: number, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit } - return apiGet(`${getApiUrl()}${getApiServicesPackagesAvailableServicesPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getServicesPackagesAvailableServicesPath()}`, headers, queryParams) as Promise; } -export type PostApiServicesPackageFetchResponse = +export type PostServicesPackageFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiServicesPackagePath = () => `/api/v1/services/package`; +export const postServicesPackagePath = () => `/api/v1/services/package`; -export const postApiServicesPackage = (requestContract: SaveServicePackageRequest, headers = new Headers()): - Promise => { +export const postServicesPackage = (requestContract: SaveServicePackageRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiServicesPackagePath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postServicesPackagePath()}`, requestData, headers) as Promise; } -export type GetApiServicesServicePublicIDPackageFetchResponse = +export type GetServicesServicePublicIDPackageFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiServicesServicePublicIDPackagePath = (servicePublicID: string) => `/api/v1/services/${servicePublicID}/package`; +export const getServicesServicePublicIDPackagePath = (servicePublicID: string) => `/api/v1/services/${servicePublicID}/package`; -export const getApiServicesServicePublicIDPackage = (servicePublicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiServicesServicePublicIDPackagePath(servicePublicID)}`, headers, {}) as Promise; +export const getServicesServicePublicIDPackage = (servicePublicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getServicesServicePublicIDPackagePath(servicePublicID)}`, headers, {}) as Promise; } -export type DeleteApiServicesServicePublicIDPackageFetchResponse = +export type DeleteServicesServicePublicIDPackageFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2167,14 +2167,14 @@ export type DeleteApiServicesServicePublicIDPackageFetchResponse = | FetchResponse | ErrorResponse; -export const deleteApiServicesServicePublicIDPackagePath = (servicePublicID: string) => `/api/v1/services/${servicePublicID}/package`; +export const deleteServicesServicePublicIDPackagePath = (servicePublicID: string) => `/api/v1/services/${servicePublicID}/package`; -export const deleteApiServicesServicePublicIDPackage = (servicePublicID: string, headers = new Headers()): - Promise => { - return apiDelete(`${getApiUrl()}${deleteApiServicesServicePublicIDPackagePath(servicePublicID)}`, headers, {}) as Promise; +export const deleteServicesServicePublicIDPackage = (servicePublicID: string, headers = new Headers()): + Promise => { + return apiDelete(`${getApiUrl()}${deleteServicesServicePublicIDPackagePath(servicePublicID)}`, headers, {}) as Promise; } -export type PutApiServicesServicePublicIDPackageFetchResponse = +export type PutServicesServicePublicIDPackageFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2182,57 +2182,57 @@ export type PutApiServicesServicePublicIDPackageFetchResponse = | FetchResponse | ErrorResponse; -export const putApiServicesServicePublicIDPackagePath = (servicePublicID: string) => `/api/v1/services/${servicePublicID}/package`; +export const putServicesServicePublicIDPackagePath = (servicePublicID: string) => `/api/v1/services/${servicePublicID}/package`; -export const putApiServicesServicePublicIDPackage = (requestContract: SaveServicePackageRequest, servicePublicID: string, headers = new Headers()): - Promise => { +export const putServicesServicePublicIDPackage = (requestContract: SaveServicePackageRequest, servicePublicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiServicesServicePublicIDPackagePath(servicePublicID)}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putServicesServicePublicIDPackagePath(servicePublicID)}`, requestData, headers) as Promise; } -export type GetApiPartiesPublicIDFetchResponse = +export type GetPartiesPublicIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiPartiesPublicIDPath = (publicID: string) => `/api/v1/parties/${publicID}`; +export const getPartiesPublicIDPath = (publicID: string) => `/api/v1/parties/${publicID}`; -export const getApiPartiesPublicID = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiPartiesPublicIDPath(publicID)}`, headers, {}) as Promise; +export const getPartiesPublicID = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getPartiesPublicIDPath(publicID)}`, headers, {}) as Promise; } -export type GetApiPartiesSearchAresFetchResponse = +export type GetPartiesSearchAresFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiPartiesSearchAresPath = () => `/api/v1/parties/search/ares`; +export const getPartiesSearchAresPath = () => `/api/v1/parties/search/ares`; -export const getApiPartiesSearchAres = (query?: string, partyType?: PartyType | undefined | null, headers = new Headers()): - Promise => { +export const getPartiesSearchAres = (query?: string, partyType?: PartyType | undefined | null, headers = new Headers()): + Promise => { const queryParams = { "query": query, "partyType": partyType } - return apiGet(`${getApiUrl()}${getApiPartiesSearchAresPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getPartiesSearchAresPath()}`, headers, queryParams) as Promise; } -export type GetApiOrdersFetchResponse = +export type GetOrdersFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPath = () => `/api/v1/orders`; +export const getOrdersPath = () => `/api/v1/orders`; -export const getApiOrders = (offset?: number, limit?: number, workflowStatuses?: string[], query?: string | undefined | null, startDate?: string | undefined | null, endDate?: string | undefined | null, isSearchInStructure?: boolean, onlyAfterInvoiceDueDate?: boolean, includeClientReminderAvailable?: boolean, headers = new Headers()): - Promise => { +export const getOrders = (offset?: number, limit?: number, workflowStatuses?: string[], query?: string | undefined | null, startDate?: string | undefined | null, endDate?: string | undefined | null, isSearchInStructure?: boolean, onlyAfterInvoiceDueDate?: boolean, includeClientReminderAvailable?: boolean, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit, @@ -2244,412 +2244,412 @@ export const getApiOrders = (offset?: number, limit?: number, workflowStatuses?: "onlyAfterInvoiceDueDate": onlyAfterInvoiceDueDate, "includeClientReminderAvailable": includeClientReminderAvailable } - return apiGet(`${getApiUrl()}${getApiOrdersPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getOrdersPath()}`, headers, queryParams) as Promise; } -export type GetApiOrdersPublicIDFetchResponse = +export type GetOrdersPublicIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPublicIDPath = (publicID: string) => `/api/v1/orders/${publicID}`; +export const getOrdersPublicIDPath = (publicID: string) => `/api/v1/orders/${publicID}`; -export const getApiOrdersPublicID = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersPublicIDPath(publicID)}`, headers, {}) as Promise; +export const getOrdersPublicID = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersPublicIDPath(publicID)}`, headers, {}) as Promise; } -export type DeleteApiOrdersPublicIDFetchResponse = +export type DeleteOrdersPublicIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const deleteApiOrdersPublicIDPath = (publicID: string) => `/api/v1/orders/${publicID}`; +export const deleteOrdersPublicIDPath = (publicID: string) => `/api/v1/orders/${publicID}`; -export const deleteApiOrdersPublicID = (publicID: string, headers = new Headers()): - Promise => { - return apiDelete(`${getApiUrl()}${deleteApiOrdersPublicIDPath(publicID)}`, headers, {}) as Promise; +export const deleteOrdersPublicID = (publicID: string, headers = new Headers()): + Promise => { + return apiDelete(`${getApiUrl()}${deleteOrdersPublicIDPath(publicID)}`, headers, {}) as Promise; } -export type PutApiOrdersPublicIDPeriodicityFetchResponse = +export type PutOrdersPublicIDPeriodicityFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiOrdersPublicIDPeriodicityPath = (publicID: string) => `/api/v1/orders/${publicID}/periodicity`; +export const putOrdersPublicIDPeriodicityPath = (publicID: string) => `/api/v1/orders/${publicID}/periodicity`; -export const putApiOrdersPublicIDPeriodicity = (requestContract: SetPeriodicityRequest, publicID: string, headers = new Headers()): - Promise => { +export const putOrdersPublicIDPeriodicity = (requestContract: SetPeriodicityRequest, publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiOrdersPublicIDPeriodicityPath(publicID)}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putOrdersPublicIDPeriodicityPath(publicID)}`, requestData, headers) as Promise; } -export type GetApiOrdersPublicIDServicesFetchResponse = +export type GetOrdersPublicIDServicesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPublicIDServicesPath = (publicID: string) => `/api/v1/orders/${publicID}/services`; +export const getOrdersPublicIDServicesPath = (publicID: string) => `/api/v1/orders/${publicID}/services`; -export const getApiOrdersPublicIDServices = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersPublicIDServicesPath(publicID)}`, headers, {}) as Promise; +export const getOrdersPublicIDServices = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersPublicIDServicesPath(publicID)}`, headers, {}) as Promise; } -export type DeleteApiOrdersServicesServiceIDFetchResponse = +export type DeleteOrdersServicesServiceIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const deleteApiOrdersServicesServiceIDPath = (serviceID: number) => `/api/v1/orders/services/${serviceID}`; +export const deleteOrdersServicesServiceIDPath = (serviceID: number) => `/api/v1/orders/services/${serviceID}`; -export const deleteApiOrdersServicesServiceID = (serviceID: number, headers = new Headers()): - Promise => { - return apiDelete(`${getApiUrl()}${deleteApiOrdersServicesServiceIDPath(serviceID)}`, headers, {}) as Promise; +export const deleteOrdersServicesServiceID = (serviceID: number, headers = new Headers()): + Promise => { + return apiDelete(`${getApiUrl()}${deleteOrdersServicesServiceIDPath(serviceID)}`, headers, {}) as Promise; } -export type GetApiOrdersPeriodicUpcomingFetchResponse = +export type GetOrdersPeriodicUpcomingFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPeriodicUpcomingPath = () => `/api/v1/orders/periodic/upcoming`; +export const getOrdersPeriodicUpcomingPath = () => `/api/v1/orders/periodic/upcoming`; -export const getApiOrdersPeriodicUpcoming = (offset?: number, limit?: number, nexOrderDate?: string, headers = new Headers()): - Promise => { +export const getOrdersPeriodicUpcoming = (offset?: number, limit?: number, nexOrderDate?: string, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit, "nexOrderDate": nexOrderDate } - return apiGet(`${getApiUrl()}${getApiOrdersPeriodicUpcomingPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getOrdersPeriodicUpcomingPath()}`, headers, queryParams) as Promise; } -export type GetApiOrdersRevocationExampleFileFetchResponse = +export type GetOrdersRevocationExampleFileFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersRevocationExampleFilePath = () => `/api/v1/orders/revocation/example/file`; +export const getOrdersRevocationExampleFilePath = () => `/api/v1/orders/revocation/example/file`; -export const getApiOrdersRevocationExampleFile = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersRevocationExampleFilePath()}`, headers, {}) as Promise; +export const getOrdersRevocationExampleFile = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersRevocationExampleFilePath()}`, headers, {}) as Promise; } -export type GetApiOrdersPublicIDPaymentCalendarItemsFetchResponse = +export type GetOrdersPublicIDPaymentCalendarItemsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPublicIDPaymentCalendarItemsPath = (publicID: string) => `/api/v1/orders/${publicID}/payment-calendar-items`; +export const getOrdersPublicIDPaymentCalendarItemsPath = (publicID: string) => `/api/v1/orders/${publicID}/payment-calendar-items`; -export const getApiOrdersPublicIDPaymentCalendarItems = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersPublicIDPaymentCalendarItemsPath(publicID)}`, headers, {}) as Promise; +export const getOrdersPublicIDPaymentCalendarItems = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersPublicIDPaymentCalendarItemsPath(publicID)}`, headers, {}) as Promise; } -export type GetApiOrdersCountFetchResponse = +export type GetOrdersCountFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersCountPath = () => `/api/v1/orders/count`; +export const getOrdersCountPath = () => `/api/v1/orders/count`; -export const getApiOrdersCount = (onlyActive?: boolean, headers = new Headers()): - Promise => { +export const getOrdersCount = (onlyActive?: boolean, headers = new Headers()): + Promise => { const queryParams = { "onlyActive": onlyActive } - return apiGet(`${getApiUrl()}${getApiOrdersCountPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getOrdersCountPath()}`, headers, queryParams) as Promise; } -export type PostApiOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientFetchResponse = +export type PostOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientPath = (orderPublicID: string) => `/api/v1/orders/${orderPublicID}/client-invoice-recurring-payment-create-invoice-and-set-as-paid-by-client`; +export const postOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientPath = (orderPublicID: string) => `/api/v1/orders/${orderPublicID}/client-invoice-recurring-payment-create-invoice-and-set-as-paid-by-client`; -export const postApiOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClient = (requestContract: ClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientRequest, orderPublicID: string, headers = new Headers()): - Promise => { +export const postOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClient = (requestContract: ClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientRequest, orderPublicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientPath(orderPublicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersOrderPublicIDClientInvoiceRecurringPaymentCreateInvoiceAndSetAsPaidByClientPath(orderPublicID)}`, requestData, headers) as Promise; } -export type GetApiOrdersPublicIDClientZonePaymentCalendarItemsFetchResponse = +export type GetOrdersPublicIDClientZonePaymentCalendarItemsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPublicIDClientZonePaymentCalendarItemsPath = (publicID: string) => `/api/v1/orders/${publicID}/client-zone/payment-calendar-items`; +export const getOrdersPublicIDClientZonePaymentCalendarItemsPath = (publicID: string) => `/api/v1/orders/${publicID}/client-zone/payment-calendar-items`; -export const getApiOrdersPublicIDClientZonePaymentCalendarItems = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersPublicIDClientZonePaymentCalendarItemsPath(publicID)}`, headers, {}) as Promise; +export const getOrdersPublicIDClientZonePaymentCalendarItems = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersPublicIDClientZonePaymentCalendarItemsPath(publicID)}`, headers, {}) as Promise; } -export type GetApiOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfoFetchResponse = +export type GetOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfoFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfoPath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/order-service/${orderServiceID}/eucs-order/info`; +export const getOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfoPath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/order-service/${orderServiceID}/eucs-order/info`; -export const getApiOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfo = (publicID: string, orderServiceID: number, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfoPath(publicID, orderServiceID)}`, headers, {}) as Promise; +export const getOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfo = (publicID: string, orderServiceID: number, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersPublicIDOrderServiceOrderServiceIDEucsOrderInfoPath(publicID, orderServiceID)}`, headers, {}) as Promise; } -export type PostApiOrdersPublicIDOrderServiceOrderServiceIDProductCancelFetchResponse = +export type PostOrdersPublicIDOrderServiceOrderServiceIDProductCancelFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDOrderServiceOrderServiceIDProductCancelPath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/order-service/${orderServiceID}/product/cancel`; +export const postOrdersPublicIDOrderServiceOrderServiceIDProductCancelPath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/order-service/${orderServiceID}/product/cancel`; -export const postApiOrdersPublicIDOrderServiceOrderServiceIDProductCancel = (requestContract: CancelProductInInstitutionCommandRequest, publicID: string, orderServiceID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDOrderServiceOrderServiceIDProductCancel = (requestContract: CancelProductInInstitutionCommandRequest, publicID: string, orderServiceID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDOrderServiceOrderServiceIDProductCancelPath(publicID, orderServiceID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDOrderServiceOrderServiceIDProductCancelPath(publicID, orderServiceID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDOrderServiceOrderServiceIDProductCreateFetchResponse = +export type PostOrdersPublicIDOrderServiceOrderServiceIDProductCreateFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDOrderServiceOrderServiceIDProductCreatePath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/order-service/${orderServiceID}/product/create`; +export const postOrdersPublicIDOrderServiceOrderServiceIDProductCreatePath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/order-service/${orderServiceID}/product/create`; -export const postApiOrdersPublicIDOrderServiceOrderServiceIDProductCreate = (requestContract: CreateProductInInstitutionRequest, publicID: string, orderServiceID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDOrderServiceOrderServiceIDProductCreate = (requestContract: CreateProductInInstitutionRequest, publicID: string, orderServiceID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDOrderServiceOrderServiceIDProductCreatePath(publicID, orderServiceID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDOrderServiceOrderServiceIDProductCreatePath(publicID, orderServiceID)}`, requestData, headers) as Promise; } -export type GetApiOrdersPublicIDWorkflowStepsFetchResponse = +export type GetOrdersPublicIDWorkflowStepsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPublicIDWorkflowStepsPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/steps`; +export const getOrdersPublicIDWorkflowStepsPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/steps`; -export const getApiOrdersPublicIDWorkflowSteps = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersPublicIDWorkflowStepsPath(publicID)}`, headers, {}) as Promise; +export const getOrdersPublicIDWorkflowSteps = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersPublicIDWorkflowStepsPath(publicID)}`, headers, {}) as Promise; } -export type PostApiOrdersWorkflowDraftFetchResponse = +export type PostOrdersWorkflowDraftFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersWorkflowDraftPath = () => `/api/v1/orders/workflow/draft`; +export const postOrdersWorkflowDraftPath = () => `/api/v1/orders/workflow/draft`; -export const postApiOrdersWorkflowDraft = (requestContract: SaveDraftRequest, headers = new Headers()): - Promise => { +export const postOrdersWorkflowDraft = (requestContract: SaveDraftRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersWorkflowDraftPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersWorkflowDraftPath()}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowDraftCompleteFetchResponse = +export type PostOrdersPublicIDWorkflowDraftCompleteFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowDraftCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/draft/complete`; +export const postOrdersPublicIDWorkflowDraftCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/draft/complete`; -export const postApiOrdersPublicIDWorkflowDraftComplete = (publicID: string, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowDraftComplete = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowDraftCompletePath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowDraftCompletePath(publicID)}`, requestData, headers) as Promise; } -export type GetApiOrdersWorkflowClientReviewTokenSummaryFetchResponse = +export type GetOrdersWorkflowClientReviewTokenSummaryFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersWorkflowClientReviewTokenSummaryPath = (token: string) => `/api/v1/orders/workflow/client-review/${token}/summary`; +export const getOrdersWorkflowClientReviewTokenSummaryPath = (token: string) => `/api/v1/orders/workflow/client-review/${token}/summary`; -export const getApiOrdersWorkflowClientReviewTokenSummary = (token: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersWorkflowClientReviewTokenSummaryPath(token)}`, headers, {}) as Promise; +export const getOrdersWorkflowClientReviewTokenSummary = (token: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersWorkflowClientReviewTokenSummaryPath(token)}`, headers, {}) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientReviewReminderFetchResponse = +export type PostOrdersPublicIDWorkflowClientReviewReminderFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientReviewReminderPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/client-review/reminder`; +export const postOrdersPublicIDWorkflowClientReviewReminderPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/client-review/reminder`; -export const postApiOrdersPublicIDWorkflowClientReviewReminder = (publicID: string, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientReviewReminder = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientReviewReminderPath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientReviewReminderPath(publicID)}`, requestData, headers) as Promise; } -export type PostApiOrdersWorkflowClientApprovalTokenRejectFetchResponse = +export type PostOrdersWorkflowClientApprovalTokenRejectFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersWorkflowClientApprovalTokenRejectPath = (token: string) => `/api/v1/orders/workflow/client-approval/${token}/reject`; +export const postOrdersWorkflowClientApprovalTokenRejectPath = (token: string) => `/api/v1/orders/workflow/client-approval/${token}/reject`; -export const postApiOrdersWorkflowClientApprovalTokenReject = (requestContract: ClientApprovalRejectRequest, token: string, headers = new Headers()): - Promise => { +export const postOrdersWorkflowClientApprovalTokenReject = (requestContract: ClientApprovalRejectRequest, token: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersWorkflowClientApprovalTokenRejectPath(token)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersWorkflowClientApprovalTokenRejectPath(token)}`, requestData, headers) as Promise; } -export type PutApiOrdersWorkflowClientApprovalTokenInProgressFetchResponse = +export type PutOrdersWorkflowClientApprovalTokenInProgressFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiOrdersWorkflowClientApprovalTokenInProgressPath = (token: string) => `/api/v1/orders/workflow/client-approval/${token}/in-progress`; +export const putOrdersWorkflowClientApprovalTokenInProgressPath = (token: string) => `/api/v1/orders/workflow/client-approval/${token}/in-progress`; -export const putApiOrdersWorkflowClientApprovalTokenInProgress = (token: string, headers = new Headers()): - Promise => { +export const putOrdersWorkflowClientApprovalTokenInProgress = (token: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPut(`${getApiUrl()}${putApiOrdersWorkflowClientApprovalTokenInProgressPath(token)}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putOrdersWorkflowClientApprovalTokenInProgressPath(token)}`, requestData, headers) as Promise; } -export type PostApiOrdersWorkflowClientApprovalTokenCompleteFetchResponse = +export type PostOrdersWorkflowClientApprovalTokenCompleteFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersWorkflowClientApprovalTokenCompletePath = (token: string) => `/api/v1/orders/workflow/client-approval/${token}/complete`; +export const postOrdersWorkflowClientApprovalTokenCompletePath = (token: string) => `/api/v1/orders/workflow/client-approval/${token}/complete`; -export const postApiOrdersWorkflowClientApprovalTokenComplete = (requestContract: ClientApprovalCompleteRequest, token: string, headers = new Headers()): - Promise => { +export const postOrdersWorkflowClientApprovalTokenComplete = (requestContract: ClientApprovalCompleteRequest, token: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersWorkflowClientApprovalTokenCompletePath(token)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersWorkflowClientApprovalTokenCompletePath(token)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowProcessingServicesOrderServiceIDCompleteFetchResponse = +export type PostOrdersPublicIDWorkflowProcessingServicesOrderServiceIDCompleteFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowProcessingServicesOrderServiceIDCompletePath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/workflow/processing-services/${orderServiceID}/complete`; +export const postOrdersPublicIDWorkflowProcessingServicesOrderServiceIDCompletePath = (publicID: string, orderServiceID: number) => `/api/v1/orders/${publicID}/workflow/processing-services/${orderServiceID}/complete`; -export const postApiOrdersPublicIDWorkflowProcessingServicesOrderServiceIDComplete = (publicID: string, orderServiceID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowProcessingServicesOrderServiceIDComplete = (publicID: string, orderServiceID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowProcessingServicesOrderServiceIDCompletePath(publicID, orderServiceID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowProcessingServicesOrderServiceIDCompletePath(publicID, orderServiceID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowInvoiceIssuanceCompleteFetchResponse = +export type PostOrdersPublicIDWorkflowInvoiceIssuanceCompleteFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowInvoiceIssuanceCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/invoice-issuance/complete`; +export const postOrdersPublicIDWorkflowInvoiceIssuanceCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/invoice-issuance/complete`; -export const postApiOrdersPublicIDWorkflowInvoiceIssuanceComplete = (publicID: string, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowInvoiceIssuanceComplete = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowInvoiceIssuanceCompletePath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowInvoiceIssuanceCompletePath(publicID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowInvoicePaymentCompleteFetchResponse = +export type PostOrdersPublicIDWorkflowInvoicePaymentCompleteFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowInvoicePaymentCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/invoice-payment/complete`; +export const postOrdersPublicIDWorkflowInvoicePaymentCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/invoice-payment/complete`; -export const postApiOrdersPublicIDWorkflowInvoicePaymentComplete = (publicID: string, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowInvoicePaymentComplete = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowInvoicePaymentCompletePath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowInvoicePaymentCompletePath(publicID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowInvoicePaymentReminderFetchResponse = +export type PostOrdersPublicIDWorkflowInvoicePaymentReminderFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowInvoicePaymentReminderPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/invoice-payment/reminder`; +export const postOrdersPublicIDWorkflowInvoicePaymentReminderPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/invoice-payment/reminder`; -export const postApiOrdersPublicIDWorkflowInvoicePaymentReminder = (publicID: string, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowInvoicePaymentReminder = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowInvoicePaymentReminderPath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowInvoicePaymentReminderPath(publicID)}`, requestData, headers) as Promise; } -export type GetApiOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPaymentFetchResponse = +export type GetOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPaymentFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPaymentPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/enterprise-invoice-issuance-and-payment`; +export const getOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPaymentPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/enterprise-invoice-issuance-and-payment`; -export const getApiOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPayment = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPaymentPath(publicID)}`, headers, {}) as Promise; +export const getOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPayment = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getOrdersPublicIDWorkflowEnterpriseInvoiceIssuanceAndPaymentPath(publicID)}`, headers, {}) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancelFetchResponse = +export type PostOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancelFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2657,16 +2657,16 @@ export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCal | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancelPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/cancel`; +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancelPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/cancel`; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancel = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancel = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancelPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDCancelPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminderFetchResponse = +export type PostOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminderFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2674,16 +2674,16 @@ export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCal | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminderPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/reminder`; +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminderPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/reminder`; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminder = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminder = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminderPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDReminderPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminderFetchResponse = +export type PostOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminderFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2691,16 +2691,16 @@ export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCal | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminderPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/prepaid/reminder`; +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminderPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/prepaid/reminder`; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminder = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminder = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminderPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidReminderPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoiceFetchResponse = +export type PostOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoiceFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2708,16 +2708,16 @@ export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCal | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoicePath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/send-invoice`; +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoicePath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/send-invoice`; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoice = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoice = (publicID: string, paymentCalendarItemID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoicePath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDSendInvoicePath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPayFetchResponse = +export type PostOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPayFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2725,16 +2725,16 @@ export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCal | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPayPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/pay`; +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPayPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/pay`; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPay = (requestContract: ClientInvoiceRecurringPaymentClientPaidRequest, publicID: string, paymentCalendarItemID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPay = (requestContract: ClientInvoiceRecurringPaymentClientPaidRequest, publicID: string, paymentCalendarItemID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPayPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPayPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPayFetchResponse = +export type PostOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPayFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2742,48 +2742,48 @@ export type PostApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCal | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPayPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/prepaid/send-invoice-and-pay`; +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPayPath = (publicID: string, paymentCalendarItemID: number) => `/api/v1/orders/${publicID}/workflow/client-invoice-recurring-payment/${paymentCalendarItemID}/prepaid/send-invoice-and-pay`; -export const postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPay = (requestContract: ClientPrepaidInvoiceRecurringPaymentSendInvoiceAndSetPaidRequest, publicID: string, paymentCalendarItemID: number, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPay = (requestContract: ClientPrepaidInvoiceRecurringPaymentSendInvoiceAndSetPaidRequest, publicID: string, paymentCalendarItemID: number, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPayPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientInvoiceRecurringPaymentPaymentCalendarItemIDPrepaidSendInvoiceAndPayPath(publicID, paymentCalendarItemID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmailFetchResponse = +export type PostOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmailFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmailPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/client-assignment/send-assignment-email`; +export const postOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmailPath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/client-assignment/send-assignment-email`; -export const postApiOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmail = (publicID: string, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmail = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmailPath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientAssignmentSendAssignmentEmailPath(publicID)}`, requestData, headers) as Promise; } -export type PostApiOrdersPublicIDWorkflowClientPrepaidPaymentApprovalCompleteFetchResponse = +export type PostOrdersPublicIDWorkflowClientPrepaidPaymentApprovalCompleteFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersPublicIDWorkflowClientPrepaidPaymentApprovalCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/client-prepaid-payment-approval/complete`; +export const postOrdersPublicIDWorkflowClientPrepaidPaymentApprovalCompletePath = (publicID: string) => `/api/v1/orders/${publicID}/workflow/client-prepaid-payment-approval/complete`; -export const postApiOrdersPublicIDWorkflowClientPrepaidPaymentApprovalComplete = (requestContract: ClientPrepaidPaymentApprovalStepCompleteCommandRequest, publicID: string, headers = new Headers()): - Promise => { +export const postOrdersPublicIDWorkflowClientPrepaidPaymentApprovalComplete = (requestContract: ClientPrepaidPaymentApprovalStepCompleteCommandRequest, publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersPublicIDWorkflowClientPrepaidPaymentApprovalCompletePath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersPublicIDWorkflowClientPrepaidPaymentApprovalCompletePath(publicID)}`, requestData, headers) as Promise; } -export type PostApiOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgressFetchResponse = +export type PostOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgressFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -2791,246 +2791,246 @@ export type PostApiOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgressFetc | FetchResponse | ErrorResponse; -export const postApiOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgressPath = (token: string) => `/api/v1/orders/workflow/client-prepaid-payment-approval/${token}/in-progress`; +export const postOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgressPath = (token: string) => `/api/v1/orders/workflow/client-prepaid-payment-approval/${token}/in-progress`; -export const postApiOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgress = (requestContract: ClientPrepaidPaymentApprovalStepInProgressRequest, token: string, headers = new Headers()): - Promise => { +export const postOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgress = (requestContract: ClientPrepaidPaymentApprovalStepInProgressRequest, token: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgressPath(token)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersWorkflowClientPrepaidPaymentApprovalTokenInProgressPath(token)}`, requestData, headers) as Promise; } -export type PostApiOrdersWorkflowClientPrepaidPaymentApprovalTokenRejectFetchResponse = +export type PostOrdersWorkflowClientPrepaidPaymentApprovalTokenRejectFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiOrdersWorkflowClientPrepaidPaymentApprovalTokenRejectPath = (token: string) => `/api/v1/orders/workflow/client-prepaid-payment-approval/${token}/reject`; +export const postOrdersWorkflowClientPrepaidPaymentApprovalTokenRejectPath = (token: string) => `/api/v1/orders/workflow/client-prepaid-payment-approval/${token}/reject`; -export const postApiOrdersWorkflowClientPrepaidPaymentApprovalTokenReject = (requestContract: ClientPrepaidPaymentApprovalStepRejectRequest, token: string, headers = new Headers()): - Promise => { +export const postOrdersWorkflowClientPrepaidPaymentApprovalTokenReject = (requestContract: ClientPrepaidPaymentApprovalStepRejectRequest, token: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiOrdersWorkflowClientPrepaidPaymentApprovalTokenRejectPath(token)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postOrdersWorkflowClientPrepaidPaymentApprovalTokenRejectPath(token)}`, requestData, headers) as Promise; } -export type PutApiNotificationsUserSettingsFetchResponse = +export type PutNotificationsUserSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiNotificationsUserSettingsPath = () => `/api/v1/notifications/user-settings`; +export const putNotificationsUserSettingsPath = () => `/api/v1/notifications/user-settings`; -export const putApiNotificationsUserSettings = (requestContract: UserNotificationUpdateRequest, headers = new Headers()): - Promise => { +export const putNotificationsUserSettings = (requestContract: UserNotificationUpdateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiNotificationsUserSettingsPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putNotificationsUserSettingsPath()}`, requestData, headers) as Promise; } -export type GetApiInvoicesUserInvoicesFetchResponse = +export type GetInvoicesUserInvoicesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiInvoicesUserInvoicesPath = () => `/api/v1/invoices/user-invoices`; +export const getInvoicesUserInvoicesPath = () => `/api/v1/invoices/user-invoices`; -export const getApiInvoicesUserInvoices = (offset?: number, limit?: number, headers = new Headers()): - Promise => { +export const getInvoicesUserInvoices = (offset?: number, limit?: number, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit } - return apiGet(`${getApiUrl()}${getApiInvoicesUserInvoicesPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getInvoicesUserInvoicesPath()}`, headers, queryParams) as Promise; } -export type GetApiInvoicesPublicIDFetchResponse = +export type GetInvoicesPublicIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiInvoicesPublicIDPath = (publicID: string) => `/api/v1/invoices/${publicID}`; +export const getInvoicesPublicIDPath = (publicID: string) => `/api/v1/invoices/${publicID}`; -export const getApiInvoicesPublicID = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiInvoicesPublicIDPath(publicID)}`, headers, {}) as Promise; +export const getInvoicesPublicID = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getInvoicesPublicIDPath(publicID)}`, headers, {}) as Promise; } -export type GetApiInvoicesPublicIDISDOCFetchResponse = +export type GetInvoicesPublicIDISDOCFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiInvoicesPublicIDISDOCPath = (publicID: string) => `/api/v1/invoices/${publicID}/ISDOC`; +export const getInvoicesPublicIDISDOCPath = (publicID: string) => `/api/v1/invoices/${publicID}/ISDOC`; -export const getApiInvoicesPublicIDISDOC = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiInvoicesPublicIDISDOCPath(publicID)}`, headers, {}) as Promise; +export const getInvoicesPublicIDISDOC = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getInvoicesPublicIDISDOCPath(publicID)}`, headers, {}) as Promise; } -export type GetApiInvoicesPublicIDISDOCPdfFetchResponse = +export type GetInvoicesPublicIDISDOCPdfFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiInvoicesPublicIDISDOCPdfPath = (publicID: string) => `/api/v1/invoices/${publicID}/ISDOCPdf`; +export const getInvoicesPublicIDISDOCPdfPath = (publicID: string) => `/api/v1/invoices/${publicID}/ISDOCPdf`; -export const getApiInvoicesPublicIDISDOCPdf = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiInvoicesPublicIDISDOCPdfPath(publicID)}`, headers, {}) as Promise; +export const getInvoicesPublicIDISDOCPdf = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getInvoicesPublicIDISDOCPdfPath(publicID)}`, headers, {}) as Promise; } -export type GetApiInvoicesInvoiceForSupplierCompanyByUserISDOCPdfFetchResponse = +export type GetInvoicesInvoiceForSupplierCompanyByUserISDOCPdfFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiInvoicesInvoiceForSupplierCompanyByUserISDOCPdfPath = () => `/api/v1/invoices/invoice-for-supplier-company-by-user/ISDOCPdf`; +export const getInvoicesInvoiceForSupplierCompanyByUserISDOCPdfPath = () => `/api/v1/invoices/invoice-for-supplier-company-by-user/ISDOCPdf`; -export const getApiInvoicesInvoiceForSupplierCompanyByUserISDOCPdf = (InvoicePublicIDs?: string[], headers = new Headers()): - Promise => { +export const getInvoicesInvoiceForSupplierCompanyByUserISDOCPdf = (InvoicePublicIDs?: string[], headers = new Headers()): + Promise => { const queryParams = { "InvoicePublicIDs": InvoicePublicIDs } - return apiGet(`${getApiUrl()}${getApiInvoicesInvoiceForSupplierCompanyByUserISDOCPdfPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getInvoicesInvoiceForSupplierCompanyByUserISDOCPdfPath()}`, headers, queryParams) as Promise; } -export type PostApiInvoicesInvoiceForClientByOrderPublicIDCancelFetchResponse = +export type PostInvoicesInvoiceForClientByOrderPublicIDCancelFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiInvoicesInvoiceForClientByOrderPublicIDCancelPath = (publicID: string) => `/api/v1/invoices/invoice-for-client-by-order/${publicID}/cancel`; +export const postInvoicesInvoiceForClientByOrderPublicIDCancelPath = (publicID: string) => `/api/v1/invoices/invoice-for-client-by-order/${publicID}/cancel`; -export const postApiInvoicesInvoiceForClientByOrderPublicIDCancel = (publicID: string, headers = new Headers()): - Promise => { +export const postInvoicesInvoiceForClientByOrderPublicIDCancel = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiInvoicesInvoiceForClientByOrderPublicIDCancelPath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postInvoicesInvoiceForClientByOrderPublicIDCancelPath(publicID)}`, requestData, headers) as Promise; } -export type PostApiEnterprisesFetchResponse = +export type PostEnterprisesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiEnterprisesPath = () => `/api/v1/enterprises`; +export const postEnterprisesPath = () => `/api/v1/enterprises`; -export const postApiEnterprises = (requestContract: CreateEnterpriseRequest, headers = new Headers()): - Promise => { +export const postEnterprises = (requestContract: CreateEnterpriseRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiEnterprisesPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postEnterprisesPath()}`, requestData, headers) as Promise; } -export type PostApiEnterprisesChangeModeFetchResponse = +export type PostEnterprisesChangeModeFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiEnterprisesChangeModePath = () => `/api/v1/enterprises/change-mode`; +export const postEnterprisesChangeModePath = () => `/api/v1/enterprises/change-mode`; -export const postApiEnterprisesChangeMode = (requestContract: EnterpriseModeChangeRequest, headers = new Headers()): - Promise => { +export const postEnterprisesChangeMode = (requestContract: EnterpriseModeChangeRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiEnterprisesChangeModePath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postEnterprisesChangeModePath()}`, requestData, headers) as Promise; } -export type PutApiEnterprisesDesignSettingsFetchResponse = +export type PutEnterprisesDesignSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiEnterprisesDesignSettingsPath = () => `/api/v1/enterprises/design-settings`; +export const putEnterprisesDesignSettingsPath = () => `/api/v1/enterprises/design-settings`; -export const putApiEnterprisesDesignSettings = (requestContract: EnterpriseDesignSettingsUpdateRequest, headers = new Headers()): - Promise => { +export const putEnterprisesDesignSettings = (requestContract: EnterpriseDesignSettingsUpdateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiEnterprisesDesignSettingsPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putEnterprisesDesignSettingsPath()}`, requestData, headers) as Promise; } -export type PutApiEnterprisesCommunicationSettingsFetchResponse = +export type PutEnterprisesCommunicationSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiEnterprisesCommunicationSettingsPath = () => `/api/v1/enterprises/communication-settings`; +export const putEnterprisesCommunicationSettingsPath = () => `/api/v1/enterprises/communication-settings`; -export const putApiEnterprisesCommunicationSettings = (requestContract: EnterpriseCommunicationSettingsUpdateRequest, headers = new Headers()): - Promise => { +export const putEnterprisesCommunicationSettings = (requestContract: EnterpriseCommunicationSettingsUpdateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiEnterprisesCommunicationSettingsPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putEnterprisesCommunicationSettingsPath()}`, requestData, headers) as Promise; } -export type GetApiEnterprisesBasicSettingsFetchResponse = +export type GetEnterprisesBasicSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesBasicSettingsPath = () => `/api/v1/enterprises/basic-settings`; +export const getEnterprisesBasicSettingsPath = () => `/api/v1/enterprises/basic-settings`; -export const getApiEnterprisesBasicSettings = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesBasicSettingsPath()}`, headers, {}) as Promise; +export const getEnterprisesBasicSettings = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesBasicSettingsPath()}`, headers, {}) as Promise; } -export type GetApiEnterprisesExternalIDBasicSettingsFetchResponse = +export type GetEnterprisesExternalIDBasicSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesExternalIDBasicSettingsPath = (externalID: string) => `/api/v1/enterprises/${externalID}/basic-settings`; +export const getEnterprisesExternalIDBasicSettingsPath = (externalID: string) => `/api/v1/enterprises/${externalID}/basic-settings`; -export const getApiEnterprisesExternalIDBasicSettings = (externalID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesExternalIDBasicSettingsPath(externalID)}`, headers, {}) as Promise; +export const getEnterprisesExternalIDBasicSettings = (externalID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesExternalIDBasicSettingsPath(externalID)}`, headers, {}) as Promise; } -export type GetApiEnterprisesCommissionSettingsFetchResponse = +export type GetEnterprisesCommissionSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesCommissionSettingsPath = () => `/api/v1/enterprises/commission-settings`; +export const getEnterprisesCommissionSettingsPath = () => `/api/v1/enterprises/commission-settings`; -export const getApiEnterprisesCommissionSettings = (offset?: number, limit?: number, headers = new Headers()): - Promise => { +export const getEnterprisesCommissionSettings = (offset?: number, limit?: number, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit } - return apiGet(`${getApiUrl()}${getApiEnterprisesCommissionSettingsPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getEnterprisesCommissionSettingsPath()}`, headers, queryParams) as Promise; } -export type PostApiEnterprisesCommissionSettingsFetchResponse = +export type PostEnterprisesCommissionSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3038,188 +3038,188 @@ export type PostApiEnterprisesCommissionSettingsFetchResponse = | FetchResponse | ErrorResponse; -export const postApiEnterprisesCommissionSettingsPath = () => `/api/v1/enterprises/commission-settings`; +export const postEnterprisesCommissionSettingsPath = () => `/api/v1/enterprises/commission-settings`; -export const postApiEnterprisesCommissionSettings = (requestContract: CreateEnterpriseCommissionSettingsRequest, headers = new Headers()): - Promise => { +export const postEnterprisesCommissionSettings = (requestContract: CreateEnterpriseCommissionSettingsRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiEnterprisesCommissionSettingsPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postEnterprisesCommissionSettingsPath()}`, requestData, headers) as Promise; } -export type GetApiEnterprisesServiceSettingsFetchResponse = +export type GetEnterprisesServiceSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesServiceSettingsPath = () => `/api/v1/enterprises/service-settings`; +export const getEnterprisesServiceSettingsPath = () => `/api/v1/enterprises/service-settings`; -export const getApiEnterprisesServiceSettings = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesServiceSettingsPath()}`, headers, {}) as Promise; +export const getEnterprisesServiceSettings = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesServiceSettingsPath()}`, headers, {}) as Promise; } -export type PutApiEnterprisesServiceSettingsFetchResponse = +export type PutEnterprisesServiceSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiEnterprisesServiceSettingsPath = () => `/api/v1/enterprises/service-settings`; +export const putEnterprisesServiceSettingsPath = () => `/api/v1/enterprises/service-settings`; -export const putApiEnterprisesServiceSettings = (requestContract: EnterpriseServiceSettingsUpdateRequest, headers = new Headers()): - Promise => { +export const putEnterprisesServiceSettings = (requestContract: EnterpriseServiceSettingsUpdateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiEnterprisesServiceSettingsPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putEnterprisesServiceSettingsPath()}`, requestData, headers) as Promise; } -export type GetApiEnterprisesServicesFetchResponse = +export type GetEnterprisesServicesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesServicesPath = () => `/api/v1/enterprises/services`; +export const getEnterprisesServicesPath = () => `/api/v1/enterprises/services`; -export const getApiEnterprisesServices = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesServicesPath()}`, headers, {}) as Promise; +export const getEnterprisesServices = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesServicesPath()}`, headers, {}) as Promise; } -export type PutApiEnterprisesServicesFetchResponse = +export type PutEnterprisesServicesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiEnterprisesServicesPath = () => `/api/v1/enterprises/services`; +export const putEnterprisesServicesPath = () => `/api/v1/enterprises/services`; -export const putApiEnterprisesServices = (requestContract: EnterpriseServicesUpdateRequest, headers = new Headers()): - Promise => { +export const putEnterprisesServices = (requestContract: EnterpriseServicesUpdateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiEnterprisesServicesPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putEnterprisesServicesPath()}`, requestData, headers) as Promise; } -export type GetApiEnterprisesLogoFetchResponse = +export type GetEnterprisesLogoFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesLogoPath = () => `/api/v1/enterprises/logo`; +export const getEnterprisesLogoPath = () => `/api/v1/enterprises/logo`; -export const getApiEnterprisesLogo = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesLogoPath()}`, headers, {}) as Promise; +export const getEnterprisesLogo = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesLogoPath()}`, headers, {}) as Promise; } -export type GetApiEnterprisesPublicIDLogoJsonFetchResponse = +export type GetEnterprisesPublicIDLogoJsonFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesPublicIDLogoJsonPath = (publicID: string) => `/api/v1/enterprises/${publicID}/logo/json`; +export const getEnterprisesPublicIDLogoJsonPath = (publicID: string) => `/api/v1/enterprises/${publicID}/logo/json`; -export const getApiEnterprisesPublicIDLogoJson = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesPublicIDLogoJsonPath(publicID)}`, headers, {}) as Promise; +export const getEnterprisesPublicIDLogoJson = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesPublicIDLogoJsonPath(publicID)}`, headers, {}) as Promise; } -export type GetApiEnterprisesPublicIDLogoFileFetchResponse = +export type GetEnterprisesPublicIDLogoFileFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesPublicIDLogoFilePath = (publicID: string) => `/api/v1/enterprises/${publicID}/logo/file`; +export const getEnterprisesPublicIDLogoFilePath = (publicID: string) => `/api/v1/enterprises/${publicID}/logo/file`; -export const getApiEnterprisesPublicIDLogoFile = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesPublicIDLogoFilePath(publicID)}`, headers, {}) as Promise; +export const getEnterprisesPublicIDLogoFile = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesPublicIDLogoFilePath(publicID)}`, headers, {}) as Promise; } -export type GetApiEnterprisesPublicIDLogoTenantFileFetchResponse = +export type GetEnterprisesPublicIDLogoTenantFileFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesPublicIDLogoTenantFilePath = (publicID: string) => `/api/v1/enterprises/${publicID}/logo/tenant/file`; +export const getEnterprisesPublicIDLogoTenantFilePath = (publicID: string) => `/api/v1/enterprises/${publicID}/logo/tenant/file`; -export const getApiEnterprisesPublicIDLogoTenantFile = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesPublicIDLogoTenantFilePath(publicID)}`, headers, {}) as Promise; +export const getEnterprisesPublicIDLogoTenantFile = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesPublicIDLogoTenantFilePath(publicID)}`, headers, {}) as Promise; } -export type GetApiEnterprisesPublicIDDesignSettingsFetchResponse = +export type GetEnterprisesPublicIDDesignSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesPublicIDDesignSettingsPath = (publicID: string) => `/api/v1/enterprises/${publicID}/design-settings`; +export const getEnterprisesPublicIDDesignSettingsPath = (publicID: string) => `/api/v1/enterprises/${publicID}/design-settings`; -export const getApiEnterprisesPublicIDDesignSettings = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesPublicIDDesignSettingsPath(publicID)}`, headers, {}) as Promise; +export const getEnterprisesPublicIDDesignSettings = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesPublicIDDesignSettingsPath(publicID)}`, headers, {}) as Promise; } -export type GetApiEnterprisesPackageServiceSettingsFetchResponse = +export type GetEnterprisesPackageServiceSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiEnterprisesPackageServiceSettingsPath = () => `/api/v1/enterprises/package-service-settings`; +export const getEnterprisesPackageServiceSettingsPath = () => `/api/v1/enterprises/package-service-settings`; -export const getApiEnterprisesPackageServiceSettings = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiEnterprisesPackageServiceSettingsPath()}`, headers, {}) as Promise; +export const getEnterprisesPackageServiceSettings = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getEnterprisesPackageServiceSettingsPath()}`, headers, {}) as Promise; } -export type PutApiEnterprisesPackageServiceSettingsFetchResponse = +export type PutEnterprisesPackageServiceSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiEnterprisesPackageServiceSettingsPath = () => `/api/v1/enterprises/package-service-settings`; +export const putEnterprisesPackageServiceSettingsPath = () => `/api/v1/enterprises/package-service-settings`; -export const putApiEnterprisesPackageServiceSettings = (requestContract: EnterprisePackageServiceSettingsUpdateRequest, headers = new Headers()): - Promise => { +export const putEnterprisesPackageServiceSettings = (requestContract: EnterprisePackageServiceSettingsUpdateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiEnterprisesPackageServiceSettingsPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putEnterprisesPackageServiceSettingsPath()}`, requestData, headers) as Promise; } -export type GetApiCutoffsFetchResponse = +export type GetCutoffsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCutoffsPath = () => `/api/v1/cutoffs`; +export const getCutoffsPath = () => `/api/v1/cutoffs`; -export const getApiCutoffs = (offset?: number, limit?: number, headers = new Headers()): - Promise => { +export const getCutoffs = (offset?: number, limit?: number, headers = new Headers()): + Promise => { const queryParams = { "offset": offset, "limit": limit } - return apiGet(`${getApiUrl()}${getApiCutoffsPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getCutoffsPath()}`, headers, queryParams) as Promise; } -export type PostApiCutoffsFetchResponse = +export type PostCutoffsFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3228,16 +3228,16 @@ export type PostApiCutoffsFetchResponse = | FetchResponse | ErrorResponse; -export const postApiCutoffsPath = () => `/api/v1/cutoffs`; +export const postCutoffsPath = () => `/api/v1/cutoffs`; -export const postApiCutoffs = (requestContract: CutoffCreateRequest, headers = new Headers()): - Promise => { +export const postCutoffs = (requestContract: CutoffCreateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiCutoffsPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postCutoffsPath()}`, requestData, headers) as Promise; } -export type GetApiCutoffsPublicIDFetchResponse = +export type GetCutoffsPublicIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3245,54 +3245,54 @@ export type GetApiCutoffsPublicIDFetchResponse = | FetchResponse | ErrorResponse; -export const getApiCutoffsPublicIDPath = (publicID: string) => `/api/v1/cutoffs/${publicID}`; +export const getCutoffsPublicIDPath = (publicID: string) => `/api/v1/cutoffs/${publicID}`; -export const getApiCutoffsPublicID = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCutoffsPublicIDPath(publicID)}`, headers, {}) as Promise; +export const getCutoffsPublicID = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCutoffsPublicIDPath(publicID)}`, headers, {}) as Promise; } -export type GetApiCutoffsCompanyIDDateFromForNextCutoffFetchResponse = +export type GetCutoffsCompanyIDDateFromForNextCutoffFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCutoffsCompanyIDDateFromForNextCutoffPath = (companyID: number) => `/api/v1/cutoffs/${companyID}/date-from-for-next-cutoff`; +export const getCutoffsCompanyIDDateFromForNextCutoffPath = (companyID: number) => `/api/v1/cutoffs/${companyID}/date-from-for-next-cutoff`; -export const getApiCutoffsCompanyIDDateFromForNextCutoff = (companyID: number, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCutoffsCompanyIDDateFromForNextCutoffPath(companyID)}`, headers, {}) as Promise; +export const getCutoffsCompanyIDDateFromForNextCutoff = (companyID: number, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCutoffsCompanyIDDateFromForNextCutoffPath(companyID)}`, headers, {}) as Promise; } -export type GetApiCutoffsExpectedUserCommissionFetchResponse = +export type GetCutoffsExpectedUserCommissionFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCutoffsExpectedUserCommissionPath = () => `/api/v1/cutoffs/expected-user-commission`; +export const getCutoffsExpectedUserCommissionPath = () => `/api/v1/cutoffs/expected-user-commission`; -export const getApiCutoffsExpectedUserCommission = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCutoffsExpectedUserCommissionPath()}`, headers, {}) as Promise; +export const getCutoffsExpectedUserCommission = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCutoffsExpectedUserCommissionPath()}`, headers, {}) as Promise; } -export type GetApiCutoffsPaidUserCommissionFetchResponse = +export type GetCutoffsPaidUserCommissionFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCutoffsPaidUserCommissionPath = () => `/api/v1/cutoffs/paid-user-commission`; +export const getCutoffsPaidUserCommissionPath = () => `/api/v1/cutoffs/paid-user-commission`; -export const getApiCutoffsPaidUserCommission = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCutoffsPaidUserCommissionPath()}`, headers, {}) as Promise; +export const getCutoffsPaidUserCommission = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCutoffsPaidUserCommissionPath()}`, headers, {}) as Promise; } -export type GetApiCutoffsPublicIDISDOCPdfsFetchResponse = +export type GetCutoffsPublicIDISDOCPdfsFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3300,14 +3300,14 @@ export type GetApiCutoffsPublicIDISDOCPdfsFetchResponse = | FetchResponse | ErrorResponse; -export const getApiCutoffsPublicIDISDOCPdfsPath = (publicID: string) => `/api/v1/cutoffs/${publicID}/ISDOCPdfs`; +export const getCutoffsPublicIDISDOCPdfsPath = (publicID: string) => `/api/v1/cutoffs/${publicID}/ISDOCPdfs`; -export const getApiCutoffsPublicIDISDOCPdfs = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCutoffsPublicIDISDOCPdfsPath(publicID)}`, headers, {}) as Promise; +export const getCutoffsPublicIDISDOCPdfs = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCutoffsPublicIDISDOCPdfsPath(publicID)}`, headers, {}) as Promise; } -export type PostApiCutoffsPublicIDSendPaymentsFetchResponse = +export type PostCutoffsPublicIDSendPaymentsFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3316,16 +3316,16 @@ export type PostApiCutoffsPublicIDSendPaymentsFetchResponse = | FetchResponse | ErrorResponse; -export const postApiCutoffsPublicIDSendPaymentsPath = (publicID: string) => `/api/v1/cutoffs/${publicID}/send-payments`; +export const postCutoffsPublicIDSendPaymentsPath = (publicID: string) => `/api/v1/cutoffs/${publicID}/send-payments`; -export const postApiCutoffsPublicIDSendPayments = (publicID: string, headers = new Headers()): - Promise => { +export const postCutoffsPublicIDSendPayments = (publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPost(`${getApiUrl()}${postApiCutoffsPublicIDSendPaymentsPath(publicID)}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postCutoffsPublicIDSendPaymentsPath(publicID)}`, requestData, headers) as Promise; } -export type GetApiCutoffsPublicIDDetailPdfFetchResponse = +export type GetCutoffsPublicIDDetailPdfFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3333,27 +3333,27 @@ export type GetApiCutoffsPublicIDDetailPdfFetchResponse = | FetchResponse | ErrorResponse; -export const getApiCutoffsPublicIDDetailPdfPath = (publicID: string) => `/api/v1/cutoffs/${publicID}/detail-pdf`; +export const getCutoffsPublicIDDetailPdfPath = (publicID: string) => `/api/v1/cutoffs/${publicID}/detail-pdf`; -export const getApiCutoffsPublicIDDetailPdf = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCutoffsPublicIDDetailPdfPath(publicID)}`, headers, {}) as Promise; +export const getCutoffsPublicIDDetailPdf = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCutoffsPublicIDDetailPdfPath(publicID)}`, headers, {}) as Promise; } -export type GetApiCutoffsUserSupplierCompaniesFetchResponse = +export type GetCutoffsUserSupplierCompaniesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCutoffsUserSupplierCompaniesPath = () => `/api/v1/cutoffs/user-supplier-companies`; +export const getCutoffsUserSupplierCompaniesPath = () => `/api/v1/cutoffs/user-supplier-companies`; -export const getApiCutoffsUserSupplierCompanies = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCutoffsUserSupplierCompaniesPath()}`, headers, {}) as Promise; +export const getCutoffsUserSupplierCompanies = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCutoffsUserSupplierCompaniesPath()}`, headers, {}) as Promise; } -export type GetApiCompaniesPublicIDFetchResponse = +export type GetCompaniesPublicIDFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3361,104 +3361,104 @@ export type GetApiCompaniesPublicIDFetchResponse = | FetchResponse | ErrorResponse; -export const getApiCompaniesPublicIDPath = (publicID: string) => `/api/v1/companies/${publicID}`; +export const getCompaniesPublicIDPath = (publicID: string) => `/api/v1/companies/${publicID}`; -export const getApiCompaniesPublicID = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCompaniesPublicIDPath(publicID)}`, headers, {}) as Promise; +export const getCompaniesPublicID = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCompaniesPublicIDPath(publicID)}`, headers, {}) as Promise; } -export type PostApiCompaniesFetchResponse = +export type PostCompaniesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiCompaniesPath = () => `/api/v1/companies`; +export const postCompaniesPath = () => `/api/v1/companies`; -export const postApiCompanies = (requestContract: CompanyCreateRequest, headers = new Headers()): - Promise => { +export const postCompanies = (requestContract: CompanyCreateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiCompaniesPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postCompaniesPath()}`, requestData, headers) as Promise; } -export type PutApiCompaniesFetchResponse = +export type PutCompaniesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiCompaniesPath = () => `/api/v1/companies`; +export const putCompaniesPath = () => `/api/v1/companies`; -export const putApiCompanies = (requestContract: CompanyUpdateRequest, headers = new Headers()): - Promise => { +export const putCompanies = (requestContract: CompanyUpdateRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiCompaniesPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putCompaniesPath()}`, requestData, headers) as Promise; } -export type GetApiCompaniesUserSupplierCompaniesFetchResponse = +export type GetCompaniesUserSupplierCompaniesFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCompaniesUserSupplierCompaniesPath = () => `/api/v1/companies/user-supplier-companies`; +export const getCompaniesUserSupplierCompaniesPath = () => `/api/v1/companies/user-supplier-companies`; -export const getApiCompaniesUserSupplierCompanies = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCompaniesUserSupplierCompaniesPath()}`, headers, {}) as Promise; +export const getCompaniesUserSupplierCompanies = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCompaniesUserSupplierCompaniesPath()}`, headers, {}) as Promise; } -export type PostApiCompaniesUserSupplierCompanyFetchResponse = +export type PostCompaniesUserSupplierCompanyFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiCompaniesUserSupplierCompanyPath = () => `/api/v1/companies/user-supplier-company`; +export const postCompaniesUserSupplierCompanyPath = () => `/api/v1/companies/user-supplier-company`; -export const postApiCompaniesUserSupplierCompany = (requestContract: UserSupplierCompanySetRequest, headers = new Headers()): - Promise => { +export const postCompaniesUserSupplierCompany = (requestContract: UserSupplierCompanySetRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiCompaniesUserSupplierCompanyPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postCompaniesUserSupplierCompanyPath()}`, requestData, headers) as Promise; } -export type GetApiCompaniesPublicIDDesignSettingsFetchResponse = +export type GetCompaniesPublicIDDesignSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCompaniesPublicIDDesignSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/design-settings`; +export const getCompaniesPublicIDDesignSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/design-settings`; -export const getApiCompaniesPublicIDDesignSettings = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCompaniesPublicIDDesignSettingsPath(publicID)}`, headers, {}) as Promise; +export const getCompaniesPublicIDDesignSettings = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCompaniesPublicIDDesignSettingsPath(publicID)}`, headers, {}) as Promise; } -export type PutApiCompaniesPublicIDDesignSettingsFetchResponse = +export type PutCompaniesPublicIDDesignSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiCompaniesPublicIDDesignSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/design-settings`; +export const putCompaniesPublicIDDesignSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/design-settings`; -export const putApiCompaniesPublicIDDesignSettings = (requestContract: SaveCompanyDesignSettingsRequest, publicID: string, headers = new Headers()): - Promise => { +export const putCompaniesPublicIDDesignSettings = (requestContract: SaveCompanyDesignSettingsRequest, publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiCompaniesPublicIDDesignSettingsPath(publicID)}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putCompaniesPublicIDDesignSettingsPath(publicID)}`, requestData, headers) as Promise; } -export type GetApiCompaniesPublicIDFioSettingsFetchResponse = +export type GetCompaniesPublicIDFioSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3466,118 +3466,118 @@ export type GetApiCompaniesPublicIDFioSettingsFetchResponse = | FetchResponse | ErrorResponse; -export const getApiCompaniesPublicIDFioSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/fio-settings`; +export const getCompaniesPublicIDFioSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/fio-settings`; -export const getApiCompaniesPublicIDFioSettings = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCompaniesPublicIDFioSettingsPath(publicID)}`, headers, {}) as Promise; +export const getCompaniesPublicIDFioSettings = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCompaniesPublicIDFioSettingsPath(publicID)}`, headers, {}) as Promise; } -export type PutApiCompaniesPublicIDFioSettingsFetchResponse = +export type PutCompaniesPublicIDFioSettingsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const putApiCompaniesPublicIDFioSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/fio-settings`; +export const putCompaniesPublicIDFioSettingsPath = (publicID: string) => `/api/v1/companies/${publicID}/fio-settings`; -export const putApiCompaniesPublicIDFioSettings = (requestContract: SaveFioSettingsRequest, publicID: string, headers = new Headers()): - Promise => { +export const putCompaniesPublicIDFioSettings = (requestContract: SaveFioSettingsRequest, publicID: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiCompaniesPublicIDFioSettingsPath(publicID)}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putCompaniesPublicIDFioSettingsPath(publicID)}`, requestData, headers) as Promise; } -export type GetApiCompaniesPublicIDLogoFileFetchResponse = +export type GetCompaniesPublicIDLogoFileFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCompaniesPublicIDLogoFilePath = (publicID: string) => `/api/v1/companies/${publicID}/logo/file`; +export const getCompaniesPublicIDLogoFilePath = (publicID: string) => `/api/v1/companies/${publicID}/logo/file`; -export const getApiCompaniesPublicIDLogoFile = (publicID: string, headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCompaniesPublicIDLogoFilePath(publicID)}`, headers, {}) as Promise; +export const getCompaniesPublicIDLogoFile = (publicID: string, headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCompaniesPublicIDLogoFilePath(publicID)}`, headers, {}) as Promise; } -export type GetApiCodeListsFetchResponse = +export type GetCodeListsFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiCodeListsPath = () => `/api/v1/code-lists`; +export const getCodeListsPath = () => `/api/v1/code-lists`; -export const getApiCodeLists = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiCodeListsPath()}`, headers, {}) as Promise; +export const getCodeLists = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getCodeListsPath()}`, headers, {}) as Promise; } -export type GetApiClientsCountFetchResponse = +export type GetClientsCountFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiClientsCountPath = () => `/api/v1/clients/count`; +export const getClientsCountPath = () => `/api/v1/clients/count`; -export const getApiClientsCount = (headers = new Headers()): - Promise => { - return apiGet(`${getApiUrl()}${getApiClientsCountPath()}`, headers, {}) as Promise; +export const getClientsCount = (headers = new Headers()): + Promise => { + return apiGet(`${getApiUrl()}${getClientsCountPath()}`, headers, {}) as Promise; } -export type GetApiClientsSearchFetchResponse = +export type GetClientsSearchFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiClientsSearchPath = () => `/api/v1/clients/search`; +export const getClientsSearchPath = () => `/api/v1/clients/search`; -export const getApiClientsSearch = (query?: string, headers = new Headers()): - Promise => { +export const getClientsSearch = (query?: string, headers = new Headers()): + Promise => { const queryParams = { "query": query } - return apiGet(`${getApiUrl()}${getApiClientsSearchPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getClientsSearchPath()}`, headers, queryParams) as Promise; } -export type GetApiClientsSearchPersonalNumberFetchResponse = +export type GetClientsSearchPersonalNumberFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiClientsSearchPersonalNumberPath = () => `/api/v1/clients/search/personal-number`; +export const getClientsSearchPersonalNumberPath = () => `/api/v1/clients/search/personal-number`; -export const getApiClientsSearchPersonalNumber = (query?: string, headers = new Headers()): - Promise => { +export const getClientsSearchPersonalNumber = (query?: string, headers = new Headers()): + Promise => { const queryParams = { "query": query } - return apiGet(`${getApiUrl()}${getApiClientsSearchPersonalNumberPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getClientsSearchPersonalNumberPath()}`, headers, queryParams) as Promise; } -export type PostApiCacheRefreshFetchResponse = +export type PostCacheRefreshFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiCacheRefreshPath = () => `/api/v1/cache/refresh`; +export const postCacheRefreshPath = () => `/api/v1/cache/refresh`; -export const postApiCacheRefresh = (body: string, headers = new Headers()): - Promise => { +export const postCacheRefresh = (body: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(body, false); - return apiPost(`${getApiUrl()}${postApiCacheRefreshPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postCacheRefreshPath()}`, requestData, headers) as Promise; } -export type PostApiAuthSignUpFetchResponse = +export type PostAuthSignUpFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3585,128 +3585,128 @@ export type PostApiAuthSignUpFetchResponse = | FetchResponse | ErrorResponse; -export const postApiAuthSignUpPath = () => `/api/v1/auth/sign-up`; +export const postAuthSignUpPath = () => `/api/v1/auth/sign-up`; -export const postApiAuthSignUp = (requestContract: SignUpCommand, headers = new Headers()): - Promise => { +export const postAuthSignUp = (requestContract: SignUpCommand, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiAuthSignUpPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthSignUpPath()}`, requestData, headers) as Promise; } -export type PostApiAuthSignInFetchResponse = +export type PostAuthSignInFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiAuthSignInPath = () => `/api/v1/auth/sign-in`; +export const postAuthSignInPath = () => `/api/v1/auth/sign-in`; -export const postApiAuthSignIn = (requestContract: SignInCommand, headers = new Headers()): - Promise => { +export const postAuthSignIn = (requestContract: SignInCommand, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiAuthSignInPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthSignInPath()}`, requestData, headers) as Promise; } -export type PostApiAuthTokenFetchResponse = +export type PostAuthTokenFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiAuthTokenPath = () => `/api/v1/auth/token`; +export const postAuthTokenPath = () => `/api/v1/auth/token`; -export const postApiAuthToken = (headers = new Headers()): - Promise => { +export const postAuthToken = (headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, true); - return apiPost(`${getApiUrl()}${postApiAuthTokenPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthTokenPath()}`, requestData, headers) as Promise; } -export type PostApiAuthEmailVerificationFetchResponse = +export type PostAuthEmailVerificationFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiAuthEmailVerificationPath = () => `/api/v1/auth/email-verification`; +export const postAuthEmailVerificationPath = () => `/api/v1/auth/email-verification`; -export const postApiAuthEmailVerification = (requestContract: EmailVerificationCommand, headers = new Headers()): - Promise => { +export const postAuthEmailVerification = (requestContract: EmailVerificationCommand, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiAuthEmailVerificationPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthEmailVerificationPath()}`, requestData, headers) as Promise; } -export type PostApiAuthEmailVerificationSendFetchResponse = +export type PostAuthEmailVerificationSendFetchResponse = | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiAuthEmailVerificationSendPath = () => `/api/v1/auth/email-verification/send`; +export const postAuthEmailVerificationSendPath = () => `/api/v1/auth/email-verification/send`; -export const postApiAuthEmailVerificationSend = (requestContract: ResendVerificationEmailCommand, headers = new Headers()): - Promise => { +export const postAuthEmailVerificationSend = (requestContract: ResendVerificationEmailCommand, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiAuthEmailVerificationSendPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthEmailVerificationSendPath()}`, requestData, headers) as Promise; } -export type PostApiAuthSsoFetchResponse = +export type PostAuthSsoFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiAuthSsoPath = () => `/api/v1/auth/sso`; +export const postAuthSsoPath = () => `/api/v1/auth/sso`; -export const postApiAuthSso = (requestContract: SsoSignInRequest, headers = new Headers()): - Promise => { +export const postAuthSso = (requestContract: SsoSignInRequest, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiAuthSsoPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthSsoPath()}`, requestData, headers) as Promise; } -export type GetApiAuthSsoTokenFetchResponse = +export type GetAuthSsoTokenFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const getApiAuthSsoTokenPath = () => `/api/v1/auth/sso-token`; +export const getAuthSsoTokenPath = () => `/api/v1/auth/sso-token`; -export const getApiAuthSsoToken = (IdentityProvider?: IdentityProvider, headers = new Headers()): - Promise => { +export const getAuthSsoToken = (IdentityProvider?: IdentityProvider, headers = new Headers()): + Promise => { const queryParams = { "IdentityProvider": IdentityProvider } - return apiGet(`${getApiUrl()}${getApiAuthSsoTokenPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getAuthSsoTokenPath()}`, headers, queryParams) as Promise; } -export type PostApiAuthPasswordResetFetchResponse = +export type PostAuthPasswordResetFetchResponse = | FetchResponse | FetchResponse | FetchResponse | FetchResponse | ErrorResponse; -export const postApiAuthPasswordResetPath = () => `/api/v1/auth/password-reset`; +export const postAuthPasswordResetPath = () => `/api/v1/auth/password-reset`; -export const postApiAuthPasswordReset = (requestContract: ResetPasswordCommand, headers = new Headers()): - Promise => { +export const postAuthPasswordReset = (requestContract: ResetPasswordCommand, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiAuthPasswordResetPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postAuthPasswordResetPath()}`, requestData, headers) as Promise; } -export type PutApiAuthPasswordFetchResponse = +export type PutAuthPasswordFetchResponse = | FetchResponse | FetchResponse | FetchResponse @@ -3714,11 +3714,11 @@ export type PutApiAuthPasswordFetchResponse = | FetchResponse | ErrorResponse; -export const putApiAuthPasswordPath = () => `/api/v1/auth/password`; +export const putAuthPasswordPath = () => `/api/v1/auth/password`; -export const putApiAuthPassword = (requestContract: SetPasswordCommand, headers = new Headers()): - Promise => { +export const putAuthPassword = (requestContract: SetPasswordCommand, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiAuthPasswordPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putAuthPasswordPath()}`, requestData, headers) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_one_of.ts b/apps/cli/src/tests/__snapshots__/generate_one_of.ts index 7a87766..2e6f31b 100644 --- a/apps/cli/src/tests/__snapshots__/generate_one_of.ts +++ b/apps/cli/src/tests/__snapshots__/generate_one_of.ts @@ -541,30 +541,30 @@ export type Idcard = { issue_date: string; }; -export type GetApiBankIDVerifyBankIdFetchResponse = +export type GetBankIDVerifyBankIdFetchResponse = | FetchResponse | ErrorResponse; -export const getApiBankIDVerifyBankIdPath = () => `/api/BankID/verify-bank-id`; +export const getBankIDVerifyBankIdPath = () => `/api/BankID/verify-bank-id`; -export const getApiBankIDVerifyBankId = (token?: string | undefined | null, headers = new Headers()): - Promise => { +export const getBankIDVerifyBankId = (token?: string | undefined | null, headers = new Headers()): + Promise => { const queryParams = { "token": token } - return apiGet(`${getApiUrl()}${getApiBankIDVerifyBankIdPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getBankIDVerifyBankIdPath()}`, headers, queryParams) as Promise; } -export type GetApiProductListFetchResponse = +export type GetProductListFetchResponse = | FetchResponse | ErrorResponse; -export const getApiProductListPath = () => `/api/product/list`; +export const getProductListPath = () => `/api/product/list`; -export const getApiProductList = (contractTypeCode?: ContractTypeCode | undefined | null, headers = new Headers()): - Promise => { +export const getProductList = (contractTypeCode?: ContractTypeCode | undefined | null, headers = new Headers()): + Promise => { const queryParams = { "contractTypeCode": contractTypeCode } - return apiGet(`${getApiUrl()}${getApiProductListPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getProductListPath()}`, headers, queryParams) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_one_of_angular.ts b/apps/cli/src/tests/__snapshots__/generate_one_of_angular.ts index 6675d4a..0095213 100644 --- a/apps/cli/src/tests/__snapshots__/generate_one_of_angular.ts +++ b/apps/cli/src/tests/__snapshots__/generate_one_of_angular.ts @@ -438,14 +438,14 @@ export class ApiService { this.baseUrl = baseUrl ?? ""; } - getApiBankIDVerifyBankId(token?: string | undefined | null): Observable> { + getBankIDVerifyBankId(token?: string | undefined | null): Observable> { const queryParams = { "token": token }; return apiGet>(this.httpClient, `${this.baseUrl}/api/BankID/verify-bank-id`, queryParams); } - getApiProductList(contractTypeCode?: ContractTypeCode | undefined | null): Observable> { + getProductList(contractTypeCode?: ContractTypeCode | undefined | null): Observable> { const queryParams = { "contractTypeCode": contractTypeCode }; diff --git a/apps/cli/src/tests/__snapshots__/generate_one_of_cookies.ts b/apps/cli/src/tests/__snapshots__/generate_one_of_cookies.ts index f44c112..f406083 100644 --- a/apps/cli/src/tests/__snapshots__/generate_one_of_cookies.ts +++ b/apps/cli/src/tests/__snapshots__/generate_one_of_cookies.ts @@ -547,30 +547,30 @@ export type Idcard = { issue_date: string; }; -export type GetApiBankIDVerifyBankIdFetchResponse = +export type GetBankIDVerifyBankIdFetchResponse = | FetchResponse | ErrorResponse; -export const getApiBankIDVerifyBankIdPath = () => `/api/BankID/verify-bank-id`; +export const getBankIDVerifyBankIdPath = () => `/api/BankID/verify-bank-id`; -export const getApiBankIDVerifyBankId = (token?: string | undefined | null, headers = new Headers()): - Promise => { +export const getBankIDVerifyBankId = (token?: string | undefined | null, headers = new Headers()): + Promise => { const queryParams = { "token": token } - return apiGet(`${getApiUrl()}${getApiBankIDVerifyBankIdPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getBankIDVerifyBankIdPath()}`, headers, queryParams) as Promise; } -export type GetApiProductListFetchResponse = +export type GetProductListFetchResponse = | FetchResponse | ErrorResponse; -export const getApiProductListPath = () => `/api/product/list`; +export const getProductListPath = () => `/api/product/list`; -export const getApiProductList = (contractTypeCode?: ContractTypeCode | undefined | null, headers = new Headers()): - Promise => { +export const getProductList = (contractTypeCode?: ContractTypeCode | undefined | null, headers = new Headers()): + Promise => { const queryParams = { "contractTypeCode": contractTypeCode } - return apiGet(`${getApiUrl()}${getApiProductListPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getProductListPath()}`, headers, queryParams) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_post_put_bodies.ts b/apps/cli/src/tests/__snapshots__/generate_post_put_bodies.ts index 7f24356..23f5c52 100644 --- a/apps/cli/src/tests/__snapshots__/generate_post_put_bodies.ts +++ b/apps/cli/src/tests/__snapshots__/generate_post_put_bodies.ts @@ -459,28 +459,28 @@ export type ApiCallError = { }[]; }; -export type PostApiSignatureSmsFetchResponse = +export type PostSignatureSmsFetchResponse = | FetchResponse | ErrorResponse; -export const postApiSignatureSmsPath = () => `/api/signature/sms`; +export const postSignatureSmsPath = () => `/api/signature/sms`; -export const postApiSignatureSms = (requestContract: CreateNewSignatureCommand, headers = new Headers()): - Promise => { +export const postSignatureSms = (requestContract: CreateNewSignatureCommand, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiSignatureSmsPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postSignatureSmsPath()}`, requestData, headers) as Promise; } -export type PutApiSignatureSmsFetchResponse = +export type PutSignatureSmsFetchResponse = | FetchResponse | ErrorResponse; -export const putApiSignatureSmsPath = () => `/api/signature/sms`; +export const putSignatureSmsPath = () => `/api/signature/sms`; -export const putApiSignatureSms = (requestContract: SmsSignDto, headers = new Headers()): - Promise => { +export const putSignatureSms = (requestContract: SmsSignDto, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiSignatureSmsPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putSignatureSmsPath()}`, requestData, headers) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_post_put_bodies_angular.ts b/apps/cli/src/tests/__snapshots__/generate_post_put_bodies_angular.ts index e328756..b99ce26 100644 --- a/apps/cli/src/tests/__snapshots__/generate_post_put_bodies_angular.ts +++ b/apps/cli/src/tests/__snapshots__/generate_post_put_bodies_angular.ts @@ -356,13 +356,13 @@ export class ApiService { this.baseUrl = baseUrl ?? ""; } - postApiSignatureSms(requestContract: CreateNewSignatureCommand): Observable> { + postSignatureSms(requestContract: CreateNewSignatureCommand): Observable> { const requestData = getApiRequestData(requestContract, false); return apiPost>(this.httpClient, `${this.baseUrl}/api/signature/sms`, requestData); } - putApiSignatureSms(requestContract: SmsSignDto): Observable> { + putSignatureSms(requestContract: SmsSignDto): Observable> { const requestData = getApiRequestData(requestContract, false); return apiPut>(this.httpClient, `${this.baseUrl}/api/signature/sms`, requestData); diff --git a/apps/cli/src/tests/__snapshots__/generate_post_put_bodies_cookies.ts b/apps/cli/src/tests/__snapshots__/generate_post_put_bodies_cookies.ts index ab9f5a6..5584d80 100644 --- a/apps/cli/src/tests/__snapshots__/generate_post_put_bodies_cookies.ts +++ b/apps/cli/src/tests/__snapshots__/generate_post_put_bodies_cookies.ts @@ -465,28 +465,28 @@ export type ApiCallError = { }[]; }; -export type PostApiSignatureSmsFetchResponse = +export type PostSignatureSmsFetchResponse = | FetchResponse | ErrorResponse; -export const postApiSignatureSmsPath = () => `/api/signature/sms`; +export const postSignatureSmsPath = () => `/api/signature/sms`; -export const postApiSignatureSms = (requestContract: CreateNewSignatureCommand, headers = new Headers()): - Promise => { +export const postSignatureSms = (requestContract: CreateNewSignatureCommand, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiSignatureSmsPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postSignatureSmsPath()}`, requestData, headers) as Promise; } -export type PutApiSignatureSmsFetchResponse = +export type PutSignatureSmsFetchResponse = | FetchResponse | ErrorResponse; -export const putApiSignatureSmsPath = () => `/api/signature/sms`; +export const putSignatureSmsPath = () => `/api/signature/sms`; -export const putApiSignatureSms = (requestContract: SmsSignDto, headers = new Headers()): - Promise => { +export const putSignatureSms = (requestContract: SmsSignDto, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPut(`${getApiUrl()}${putApiSignatureSmsPath()}`, requestData, headers) as Promise; + return apiPut(`${getApiUrl()}${putSignatureSmsPath()}`, requestData, headers) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_swagger_2_0.ts b/apps/cli/src/tests/__snapshots__/generate_swagger_2_0.ts index 9c4c1aa..291026c 100644 --- a/apps/cli/src/tests/__snapshots__/generate_swagger_2_0.ts +++ b/apps/cli/src/tests/__snapshots__/generate_swagger_2_0.ts @@ -462,57 +462,57 @@ export enum Status { InvalidOperation = "InvalidOperation" }; -export type GetApiAgendaSearchFetchResponse = +export type GetAgendaSearchFetchResponse = | FetchResponse | ErrorResponse; -export const getApiAgendaSearchPath = () => `/api/Agenda/Search`; +export const getAgendaSearchPath = () => `/api/Agenda/Search`; -export const getApiAgendaSearch = (do_num: string, dO_Id?: number, headers = new Headers()): - Promise => { +export const getAgendaSearch = (do_num: string, dO_Id?: number, headers = new Headers()): + Promise => { const queryParams = { "do_num": do_num, "dO_Id": dO_Id } - return apiGet(`${getApiUrl()}${getApiAgendaSearchPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getAgendaSearchPath()}`, headers, queryParams) as Promise; } -export type PostApiApiUsersIsUserValidFetchResponse = +export type PostApiUsersIsUserValidFetchResponse = | FetchResponse | FetchResponse | ErrorResponse; -export const postApiApiUsersIsUserValidPath = () => `/api/ApiUsers/IsUserValid`; +export const postApiUsersIsUserValidPath = () => `/api/ApiUsers/IsUserValid`; -export const postApiApiUsersIsUserValid = (requestContract: LoginDataDataContract, headers = new Headers()): - Promise => { +export const postApiUsersIsUserValid = (requestContract: LoginDataDataContract, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiApiUsersIsUserValidPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postApiUsersIsUserValidPath()}`, requestData, headers) as Promise; } -export type PostApiContractEditContractSignaturesFetchResponse = +export type PostContractEditContractSignaturesFetchResponse = | FetchResponse | ErrorResponse; -export const postApiContractEditContractSignaturesPath = () => `/api/Contract/EditContractSignatures`; +export const postContractEditContractSignaturesPath = () => `/api/Contract/EditContractSignatures`; -export const postApiContractEditContractSignatures = (requestContract: IPA_PlexDbContext_ContractSignature[], headers = new Headers()): - Promise => { +export const postContractEditContractSignatures = (requestContract: IPA_PlexDbContext_ContractSignature[], headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiContractEditContractSignaturesPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postContractEditContractSignaturesPath()}`, requestData, headers) as Promise; } -export type PatchApiCaseUpdateCaseTypeCaseNoCaseTypeFetchResponse = +export type PatchCaseUpdateCaseTypeCaseNoCaseTypeFetchResponse = | FetchResponse | ErrorResponse; -export const patchApiCaseUpdateCaseTypeCaseNoCaseTypePath = (caseNo: string, caseType: string) => `/api/Case/UpdateCaseType/${caseNo}/${caseType}`; +export const patchCaseUpdateCaseTypeCaseNoCaseTypePath = (caseNo: string, caseType: string) => `/api/Case/UpdateCaseType/${caseNo}/${caseType}`; -export const patchApiCaseUpdateCaseTypeCaseNoCaseType = (caseNo: string, caseType: string, headers = new Headers()): - Promise => { +export const patchCaseUpdateCaseTypeCaseNoCaseType = (caseNo: string, caseType: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPatch(`${getApiUrl()}${patchApiCaseUpdateCaseTypeCaseNoCaseTypePath(caseNo, caseType)}`, requestData, headers) as Promise; + return apiPatch(`${getApiUrl()}${patchCaseUpdateCaseTypeCaseNoCaseTypePath(caseNo, caseType)}`, requestData, headers) as Promise; } diff --git a/apps/cli/src/tests/__snapshots__/generate_swagger_2_0_angular.ts b/apps/cli/src/tests/__snapshots__/generate_swagger_2_0_angular.ts index 3443694..d0f3ede 100644 --- a/apps/cli/src/tests/__snapshots__/generate_swagger_2_0_angular.ts +++ b/apps/cli/src/tests/__snapshots__/generate_swagger_2_0_angular.ts @@ -359,7 +359,7 @@ export class ApiService { this.baseUrl = baseUrl ?? ""; } - getApiAgendaSearch(do_num: string, dO_Id?: number): Observable> { + getAgendaSearch(do_num: string, dO_Id?: number): Observable> { const queryParams = { "do_num": do_num, "dO_Id": dO_Id @@ -367,19 +367,19 @@ export class ApiService { return apiGet>(this.httpClient, `${this.baseUrl}/api/Agenda/Search`, queryParams); } - postApiApiUsersIsUserValid(requestContract: LoginDataDataContract): Observable | ResponseResult> { + postApiUsersIsUserValid(requestContract: LoginDataDataContract): Observable | ResponseResult> { const requestData = getApiRequestData(requestContract, false); return apiPost | ResponseResult>(this.httpClient, `${this.baseUrl}/api/ApiUsers/IsUserValid`, requestData); } - postApiContractEditContractSignatures(requestContract: IPA_PlexDbContext_ContractSignature[]): Observable> { + postContractEditContractSignatures(requestContract: IPA_PlexDbContext_ContractSignature[]): Observable> { const requestData = getApiRequestData(requestContract, false); return apiPost>(this.httpClient, `${this.baseUrl}/api/Contract/EditContractSignatures`, requestData); } - patchApiCaseUpdateCaseTypeCaseNoCaseType(caseNo: string, caseType: string): Observable> { + patchCaseUpdateCaseTypeCaseNoCaseType(caseNo: string, caseType: string): Observable> { const requestData = getApiRequestData(undefined, false); return apiPatch>(this.httpClient, `${this.baseUrl}/api/Case/UpdateCaseType/${caseNo}/${caseType}`, requestData); diff --git a/apps/cli/src/tests/__snapshots__/generate_swagger_2_0_cookies.ts b/apps/cli/src/tests/__snapshots__/generate_swagger_2_0_cookies.ts index 70eefdb..b770358 100644 --- a/apps/cli/src/tests/__snapshots__/generate_swagger_2_0_cookies.ts +++ b/apps/cli/src/tests/__snapshots__/generate_swagger_2_0_cookies.ts @@ -468,57 +468,57 @@ export enum Status { InvalidOperation = "InvalidOperation" }; -export type GetApiAgendaSearchFetchResponse = +export type GetAgendaSearchFetchResponse = | FetchResponse | ErrorResponse; -export const getApiAgendaSearchPath = () => `/api/Agenda/Search`; +export const getAgendaSearchPath = () => `/api/Agenda/Search`; -export const getApiAgendaSearch = (do_num: string, dO_Id?: number, headers = new Headers()): - Promise => { +export const getAgendaSearch = (do_num: string, dO_Id?: number, headers = new Headers()): + Promise => { const queryParams = { "do_num": do_num, "dO_Id": dO_Id } - return apiGet(`${getApiUrl()}${getApiAgendaSearchPath()}`, headers, queryParams) as Promise; + return apiGet(`${getApiUrl()}${getAgendaSearchPath()}`, headers, queryParams) as Promise; } -export type PostApiApiUsersIsUserValidFetchResponse = +export type PostApiUsersIsUserValidFetchResponse = | FetchResponse | FetchResponse | ErrorResponse; -export const postApiApiUsersIsUserValidPath = () => `/api/ApiUsers/IsUserValid`; +export const postApiUsersIsUserValidPath = () => `/api/ApiUsers/IsUserValid`; -export const postApiApiUsersIsUserValid = (requestContract: LoginDataDataContract, headers = new Headers()): - Promise => { +export const postApiUsersIsUserValid = (requestContract: LoginDataDataContract, headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiApiUsersIsUserValidPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postApiUsersIsUserValidPath()}`, requestData, headers) as Promise; } -export type PostApiContractEditContractSignaturesFetchResponse = +export type PostContractEditContractSignaturesFetchResponse = | FetchResponse | ErrorResponse; -export const postApiContractEditContractSignaturesPath = () => `/api/Contract/EditContractSignatures`; +export const postContractEditContractSignaturesPath = () => `/api/Contract/EditContractSignatures`; -export const postApiContractEditContractSignatures = (requestContract: IPA_PlexDbContext_ContractSignature[], headers = new Headers()): - Promise => { +export const postContractEditContractSignatures = (requestContract: IPA_PlexDbContext_ContractSignature[], headers = new Headers()): + Promise => { const requestData = getApiRequestData(requestContract, false); - return apiPost(`${getApiUrl()}${postApiContractEditContractSignaturesPath()}`, requestData, headers) as Promise; + return apiPost(`${getApiUrl()}${postContractEditContractSignaturesPath()}`, requestData, headers) as Promise; } -export type PatchApiCaseUpdateCaseTypeCaseNoCaseTypeFetchResponse = +export type PatchCaseUpdateCaseTypeCaseNoCaseTypeFetchResponse = | FetchResponse | ErrorResponse; -export const patchApiCaseUpdateCaseTypeCaseNoCaseTypePath = (caseNo: string, caseType: string) => `/api/Case/UpdateCaseType/${caseNo}/${caseType}`; +export const patchCaseUpdateCaseTypeCaseNoCaseTypePath = (caseNo: string, caseType: string) => `/api/Case/UpdateCaseType/${caseNo}/${caseType}`; -export const patchApiCaseUpdateCaseTypeCaseNoCaseType = (caseNo: string, caseType: string, headers = new Headers()): - Promise => { +export const patchCaseUpdateCaseTypeCaseNoCaseType = (caseNo: string, caseType: string, headers = new Headers()): + Promise => { const requestData = getApiRequestData(undefined, false); - return apiPatch(`${getApiUrl()}${patchApiCaseUpdateCaseTypeCaseNoCaseTypePath(caseNo, caseType)}`, requestData, headers) as Promise; + return apiPatch(`${getApiUrl()}${patchCaseUpdateCaseTypeCaseNoCaseTypePath(caseNo, caseType)}`, requestData, headers) as Promise; } diff --git a/apps/cli/src/tests/fixtures/common_prefix_v3.json b/apps/cli/src/tests/fixtures/common_prefix_api_v1.json similarity index 100% rename from apps/cli/src/tests/fixtures/common_prefix_v3.json rename to apps/cli/src/tests/fixtures/common_prefix_api_v1.json diff --git a/apps/cli/src/tests/generate.test.ts b/apps/cli/src/tests/generate.test.ts index 840cb4c..63a3b65 100644 --- a/apps/cli/src/tests/generate.test.ts +++ b/apps/cli/src/tests/generate.test.ts @@ -14,10 +14,10 @@ const cases = [ "swagger_2_0", "multipart_formdata", "multipart_formdata_multiplefiles", + "common_prefix_api_v1", "common_prefix_countryCode", "common_prefix_v1", "common_prefix_v2", - "common_prefix_v3", "all_of_reference", ]; @@ -33,19 +33,19 @@ for (const name of cases) { describe(name, () => { test("Generate", async () => { const api = await SwaggerParser.parse(fixturePath(name)); - const content = await generate(api); + const content = await generate(api, false, false, ["api_", "v1_"]); expect(content).toMatchFileSnapshot(snapshotPath(name)); }); test("Generate with cookies", async () => { const api = await SwaggerParser.parse(fixturePath(name)); - const content = await generate(api, false, true); + const content = await generate(api, false, true, ["api_", "v1_"]); expect(content).toMatchFileSnapshot(snapshotPath(`${name}_cookies`)); }); test("Generate angular", async () => { const api = await SwaggerParser.parse(fixturePath(name)); - const content = await generate(api, true, true); + const content = await generate(api, true, true, ["api_", "v1_"]); expect(content).toMatchFileSnapshot(snapshotPath(`${name}_angular`)); }); }); diff --git a/apps/docs/docs/configuration/cli-configuration.md b/apps/docs/docs/configuration/cli-configuration.md index 3e651b8..c42a1ec 100644 --- a/apps/docs/docs/configuration/cli-configuration.md +++ b/apps/docs/docs/configuration/cli-configuration.md @@ -58,6 +58,18 @@ Default value is `Api.ts`. npx rest2ts --source https://petstore.swagger.io/v2/swagger.json --target ./generated --generate-for-angular --file-name MyApi.ts ``` +### --prefixes-to-remove / -ptr + +When API contains same prefix over and over again, you can use this option to remove it. + +For example, if you have `/api/v1/` prefix in your API, you can remove it with this option. + +#### Example + +```bash +npx rest2ts --source https://petstore.swagger.io/v2/swagger.json --target ./generated --prefixes-to-remove api_,v1_ +``` + ### --cookies Generates API with cookies auth.