ch-admin-api-client-typescript 5.5.3 → 5.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/consultations-api.d.ts +12 -3
- package/lib/api/consultations-api.d.ts.map +1 -1
- package/lib/api/consultations-api.js +12 -6
- package/lib/api/dev-supports-api.d.ts +134 -0
- package/lib/api/dev-supports-api.d.ts.map +1 -0
- package/lib/api/dev-supports-api.js +250 -0
- package/lib/api/hospitals-api.d.ts +139 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +198 -0
- package/lib/api/specialties-api.d.ts +56 -0
- package/lib/api/specialties-api.d.ts.map +1 -1
- package/lib/api/specialties-api.js +90 -0
- package/lib/api/specialty-types-api.d.ts +56 -0
- package/lib/api/specialty-types-api.d.ts.map +1 -1
- package/lib/api/specialty-types-api.js +90 -0
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/index.d.ts +7 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +7 -0
- package/lib/models/translate-doctor-affiliation-command.d.ts +6 -0
- package/lib/models/translate-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/translate-hospital-command.d.ts +6 -0
- package/lib/models/translate-hospital-command.d.ts.map +1 -1
- package/lib/models/translate-hospital-service-command.d.ts +44 -0
- package/lib/models/translate-hospital-service-command.d.ts.map +1 -0
- package/lib/models/translate-hospital-service-command.js +15 -0
- package/lib/models/translate-hospital-specialty-command.d.ts +44 -0
- package/lib/models/translate-hospital-specialty-command.d.ts.map +1 -0
- package/lib/models/translate-hospital-specialty-command.js +15 -0
- package/lib/models/translate-specialty-command.d.ts +44 -0
- package/lib/models/translate-specialty-command.d.ts.map +1 -0
- package/lib/models/translate-specialty-command.js +15 -0
- package/lib/models/translate-specialty-type-command.d.ts +44 -0
- package/lib/models/translate-specialty-type-command.d.ts.map +1 -0
- package/lib/models/translate-specialty-type-command.js +15 -0
- package/lib/models/translation-contents-model.d.ts +50 -0
- package/lib/models/translation-contents-model.d.ts.map +1 -0
- package/lib/models/translation-contents-model.js +15 -0
- package/lib/models/translation-contents-target-model.d.ts +37 -0
- package/lib/models/translation-contents-target-model.d.ts.map +1 -0
- package/lib/models/translation-contents-target-model.js +15 -0
- package/lib/models/translation-target-entities.d.ts +24 -0
- package/lib/models/translation-target-entities.d.ts.map +1 -0
- package/lib/models/translation-target-entities.js +27 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +8 -0
- package/src/api/consultations-api.ts +20 -6
- package/src/api/dev-supports-api.ts +222 -0
- package/src/api/hospitals-api.ts +239 -0
- package/src/api/specialties-api.ts +100 -0
- package/src/api/specialty-types-api.ts +100 -0
- package/src/api.ts +1 -0
- package/src/models/index.ts +7 -0
- package/src/models/translate-doctor-affiliation-command.ts +6 -0
- package/src/models/translate-hospital-command.ts +6 -0
- package/src/models/translate-hospital-service-command.ts +51 -0
- package/src/models/translate-hospital-specialty-command.ts +51 -0
- package/src/models/translate-specialty-command.ts +51 -0
- package/src/models/translate-specialty-type-command.ts +51 -0
- package/src/models/translation-contents-model.ts +57 -0
- package/src/models/translation-contents-target-model.ts +42 -0
- package/src/models/translation-target-entities.ts +33 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
6
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
3
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TranslationContentsTargetModel
|
|
16
|
+
*/
|
|
17
|
+
export interface TranslationContentsTargetModel {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TranslationContentsTargetModel
|
|
22
|
+
*/
|
|
23
|
+
'id'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof TranslationContentsTargetModel
|
|
28
|
+
*/
|
|
29
|
+
'needToTranslate'?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof TranslationContentsTargetModel
|
|
34
|
+
*/
|
|
35
|
+
'needToTranslateCount'?: number;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=translation-contents-target-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation-contents-target-model.d.ts","sourceRoot":"","sources":["../../src/models/translation-contents-target-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
6
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
3
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare const TranslationTargetEntities: {
|
|
18
|
+
readonly SpecialtyType: "SpecialtyType";
|
|
19
|
+
readonly Specialty: "Specialty";
|
|
20
|
+
readonly HospitalSpecialty: "HospitalSpecialty";
|
|
21
|
+
readonly HospitalService: "HospitalService";
|
|
22
|
+
};
|
|
23
|
+
export type TranslationTargetEntities = typeof TranslationTargetEntities[keyof typeof TranslationTargetEntities];
|
|
24
|
+
//# sourceMappingURL=translation-target-entities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation-target-entities.d.ts","sourceRoot":"","sources":["../../src/models/translation-target-entities.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,yBAAyB;;;;;CAK5B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
6
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TranslationTargetEntities = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
exports.TranslationTargetEntities = {
|
|
23
|
+
SpecialtyType: 'SpecialtyType',
|
|
24
|
+
Specialty: 'Specialty',
|
|
25
|
+
HospitalSpecialty: 'HospitalSpecialty',
|
|
26
|
+
HospitalService: 'HospitalService'
|
|
27
|
+
};
|
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ api/contributors-api.ts
|
|
|
18
18
|
api/countries-api.ts
|
|
19
19
|
api/dash-board-api.ts
|
|
20
20
|
api/deals-api.ts
|
|
21
|
+
api/dev-supports-api.ts
|
|
21
22
|
api/doctor-affiliations-api.ts
|
|
22
23
|
api/doctors-api.ts
|
|
23
24
|
api/email-marketings-api.ts
|
|
@@ -481,6 +482,13 @@ models/translate-all-options.ts
|
|
|
481
482
|
models/translate-command.ts
|
|
482
483
|
models/translate-doctor-affiliation-command.ts
|
|
483
484
|
models/translate-hospital-command.ts
|
|
485
|
+
models/translate-hospital-service-command.ts
|
|
486
|
+
models/translate-hospital-specialty-command.ts
|
|
487
|
+
models/translate-specialty-command.ts
|
|
488
|
+
models/translate-specialty-type-command.ts
|
|
489
|
+
models/translation-contents-model.ts
|
|
490
|
+
models/translation-contents-target-model.ts
|
|
491
|
+
models/translation-target-entities.ts
|
|
484
492
|
models/update-about-us-page-command.ts
|
|
485
493
|
models/update-account-command.ts
|
|
486
494
|
models/update-accreditation-command.ts
|
|
@@ -164,11 +164,12 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
164
164
|
*
|
|
165
165
|
* @summary Get consultation.
|
|
166
166
|
* @param {string} consultationId
|
|
167
|
+
* @param {boolean} [isExternal]
|
|
167
168
|
* @param {string} [languageCode]
|
|
168
169
|
* @param {*} [options] Override http request option.
|
|
169
170
|
* @throws {RequiredError}
|
|
170
171
|
*/
|
|
171
|
-
apiV1ConsultationsConsultationIdGet: async (consultationId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
172
|
+
apiV1ConsultationsConsultationIdGet: async (consultationId: string, isExternal?: boolean, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
172
173
|
// verify required parameter 'consultationId' is not null or undefined
|
|
173
174
|
assertParamExists('apiV1ConsultationsConsultationIdGet', 'consultationId', consultationId)
|
|
174
175
|
const localVarPath = `/api/v1/consultations/{consultationId}`
|
|
@@ -188,6 +189,10 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
188
189
|
// oauth required
|
|
189
190
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
190
191
|
|
|
192
|
+
if (isExternal !== undefined) {
|
|
193
|
+
localVarQueryParameter['isExternal'] = isExternal;
|
|
194
|
+
}
|
|
195
|
+
|
|
191
196
|
if (languageCode !== undefined) {
|
|
192
197
|
localVarQueryParameter['languageCode'] = languageCode;
|
|
193
198
|
}
|
|
@@ -472,12 +477,13 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
|
|
|
472
477
|
*
|
|
473
478
|
* @summary Get consultation.
|
|
474
479
|
* @param {string} consultationId
|
|
480
|
+
* @param {boolean} [isExternal]
|
|
475
481
|
* @param {string} [languageCode]
|
|
476
482
|
* @param {*} [options] Override http request option.
|
|
477
483
|
* @throws {RequiredError}
|
|
478
484
|
*/
|
|
479
|
-
async apiV1ConsultationsConsultationIdGet(consultationId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConsultationModel>> {
|
|
480
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ConsultationsConsultationIdGet(consultationId, languageCode, options);
|
|
485
|
+
async apiV1ConsultationsConsultationIdGet(consultationId: string, isExternal?: boolean, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConsultationModel>> {
|
|
486
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ConsultationsConsultationIdGet(consultationId, isExternal, languageCode, options);
|
|
481
487
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
482
488
|
},
|
|
483
489
|
/**
|
|
@@ -579,12 +585,13 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
|
|
|
579
585
|
*
|
|
580
586
|
* @summary Get consultation.
|
|
581
587
|
* @param {string} consultationId
|
|
588
|
+
* @param {boolean} [isExternal]
|
|
582
589
|
* @param {string} [languageCode]
|
|
583
590
|
* @param {*} [options] Override http request option.
|
|
584
591
|
* @throws {RequiredError}
|
|
585
592
|
*/
|
|
586
|
-
apiV1ConsultationsConsultationIdGet(consultationId: string, languageCode?: string, options?: any): AxiosPromise<ConsultationModel> {
|
|
587
|
-
return localVarFp.apiV1ConsultationsConsultationIdGet(consultationId, languageCode, options).then((request) => request(axios, basePath));
|
|
593
|
+
apiV1ConsultationsConsultationIdGet(consultationId: string, isExternal?: boolean, languageCode?: string, options?: any): AxiosPromise<ConsultationModel> {
|
|
594
|
+
return localVarFp.apiV1ConsultationsConsultationIdGet(consultationId, isExternal, languageCode, options).then((request) => request(axios, basePath));
|
|
588
595
|
},
|
|
589
596
|
/**
|
|
590
597
|
*
|
|
@@ -702,6 +709,13 @@ export interface ConsultationsApiApiV1ConsultationsConsultationIdGetRequest {
|
|
|
702
709
|
*/
|
|
703
710
|
readonly consultationId: string
|
|
704
711
|
|
|
712
|
+
/**
|
|
713
|
+
*
|
|
714
|
+
* @type {boolean}
|
|
715
|
+
* @memberof ConsultationsApiApiV1ConsultationsConsultationIdGet
|
|
716
|
+
*/
|
|
717
|
+
readonly isExternal?: boolean
|
|
718
|
+
|
|
705
719
|
/**
|
|
706
720
|
*
|
|
707
721
|
* @type {string}
|
|
@@ -951,7 +965,7 @@ export class ConsultationsApi extends BaseAPI {
|
|
|
951
965
|
* @memberof ConsultationsApi
|
|
952
966
|
*/
|
|
953
967
|
public apiV1ConsultationsConsultationIdGet(requestParameters: ConsultationsApiApiV1ConsultationsConsultationIdGetRequest, options?: AxiosRequestConfig) {
|
|
954
|
-
return ConsultationsApiFp(this.configuration).apiV1ConsultationsConsultationIdGet(requestParameters.consultationId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
968
|
+
return ConsultationsApiFp(this.configuration).apiV1ConsultationsConsultationIdGet(requestParameters.consultationId, requestParameters.isExternal, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
955
969
|
}
|
|
956
970
|
|
|
957
971
|
/**
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
5
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1
|
|
8
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { TranslationContentsModel } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { TranslationTargetEntities } from '../models';
|
|
27
|
+
/**
|
|
28
|
+
* DevSupportsApi - axios parameter creator
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const DevSupportsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @summary Find missing translated content, translate all found contents
|
|
36
|
+
* @param {TranslationTargetEntities} targetEntity
|
|
37
|
+
* @param {string} basisLanguageCode
|
|
38
|
+
* @param {Array<string>} [translateToFields]
|
|
39
|
+
* @param {string} [id]
|
|
40
|
+
* @param {boolean} [includesAllEntries]
|
|
41
|
+
* @param {boolean} [isDryRun]
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
apiV1DevsupportsTranslatePost: async (targetEntity: TranslationTargetEntities, basisLanguageCode: string, translateToFields?: Array<string>, id?: string, includesAllEntries?: boolean, isDryRun?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
// verify required parameter 'targetEntity' is not null or undefined
|
|
47
|
+
assertParamExists('apiV1DevsupportsTranslatePost', 'targetEntity', targetEntity)
|
|
48
|
+
// verify required parameter 'basisLanguageCode' is not null or undefined
|
|
49
|
+
assertParamExists('apiV1DevsupportsTranslatePost', 'basisLanguageCode', basisLanguageCode)
|
|
50
|
+
const localVarPath = `/api/v1/devsupports/translate`;
|
|
51
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
53
|
+
let baseOptions;
|
|
54
|
+
if (configuration) {
|
|
55
|
+
baseOptions = configuration.baseOptions;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
59
|
+
const localVarHeaderParameter = {} as any;
|
|
60
|
+
const localVarQueryParameter = {} as any;
|
|
61
|
+
|
|
62
|
+
// authentication oauth2 required
|
|
63
|
+
// oauth required
|
|
64
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
65
|
+
|
|
66
|
+
if (targetEntity !== undefined) {
|
|
67
|
+
localVarQueryParameter['targetEntity'] = targetEntity;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (basisLanguageCode !== undefined) {
|
|
71
|
+
localVarQueryParameter['basisLanguageCode'] = basisLanguageCode;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (translateToFields) {
|
|
75
|
+
localVarQueryParameter['translateToFields'] = translateToFields;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (id !== undefined) {
|
|
79
|
+
localVarQueryParameter['id'] = id;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (includesAllEntries !== undefined) {
|
|
83
|
+
localVarQueryParameter['includesAllEntries'] = includesAllEntries;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (isDryRun !== undefined) {
|
|
87
|
+
localVarQueryParameter['isDryRun'] = isDryRun;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
93
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
url: toPathString(localVarUrlObj),
|
|
98
|
+
options: localVarRequestOptions,
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* DevSupportsApi - functional programming interface
|
|
106
|
+
* @export
|
|
107
|
+
*/
|
|
108
|
+
export const DevSupportsApiFp = function(configuration?: Configuration) {
|
|
109
|
+
const localVarAxiosParamCreator = DevSupportsApiAxiosParamCreator(configuration)
|
|
110
|
+
return {
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @summary Find missing translated content, translate all found contents
|
|
114
|
+
* @param {TranslationTargetEntities} targetEntity
|
|
115
|
+
* @param {string} basisLanguageCode
|
|
116
|
+
* @param {Array<string>} [translateToFields]
|
|
117
|
+
* @param {string} [id]
|
|
118
|
+
* @param {boolean} [includesAllEntries]
|
|
119
|
+
* @param {boolean} [isDryRun]
|
|
120
|
+
* @param {*} [options] Override http request option.
|
|
121
|
+
* @throws {RequiredError}
|
|
122
|
+
*/
|
|
123
|
+
async apiV1DevsupportsTranslatePost(targetEntity: TranslationTargetEntities, basisLanguageCode: string, translateToFields?: Array<string>, id?: string, includesAllEntries?: boolean, isDryRun?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TranslationContentsModel>> {
|
|
124
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DevsupportsTranslatePost(targetEntity, basisLanguageCode, translateToFields, id, includesAllEntries, isDryRun, options);
|
|
125
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
126
|
+
},
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* DevSupportsApi - factory interface
|
|
132
|
+
* @export
|
|
133
|
+
*/
|
|
134
|
+
export const DevSupportsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
135
|
+
const localVarFp = DevSupportsApiFp(configuration)
|
|
136
|
+
return {
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @summary Find missing translated content, translate all found contents
|
|
140
|
+
* @param {TranslationTargetEntities} targetEntity
|
|
141
|
+
* @param {string} basisLanguageCode
|
|
142
|
+
* @param {Array<string>} [translateToFields]
|
|
143
|
+
* @param {string} [id]
|
|
144
|
+
* @param {boolean} [includesAllEntries]
|
|
145
|
+
* @param {boolean} [isDryRun]
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
apiV1DevsupportsTranslatePost(targetEntity: TranslationTargetEntities, basisLanguageCode: string, translateToFields?: Array<string>, id?: string, includesAllEntries?: boolean, isDryRun?: boolean, options?: any): AxiosPromise<TranslationContentsModel> {
|
|
150
|
+
return localVarFp.apiV1DevsupportsTranslatePost(targetEntity, basisLanguageCode, translateToFields, id, includesAllEntries, isDryRun, options).then((request) => request(axios, basePath));
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Request parameters for apiV1DevsupportsTranslatePost operation in DevSupportsApi.
|
|
157
|
+
* @export
|
|
158
|
+
* @interface DevSupportsApiApiV1DevsupportsTranslatePostRequest
|
|
159
|
+
*/
|
|
160
|
+
export interface DevSupportsApiApiV1DevsupportsTranslatePostRequest {
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @type {TranslationTargetEntities}
|
|
164
|
+
* @memberof DevSupportsApiApiV1DevsupportsTranslatePost
|
|
165
|
+
*/
|
|
166
|
+
readonly targetEntity: TranslationTargetEntities
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof DevSupportsApiApiV1DevsupportsTranslatePost
|
|
172
|
+
*/
|
|
173
|
+
readonly basisLanguageCode: string
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @type {Array<string>}
|
|
178
|
+
* @memberof DevSupportsApiApiV1DevsupportsTranslatePost
|
|
179
|
+
*/
|
|
180
|
+
readonly translateToFields?: Array<string>
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @type {string}
|
|
185
|
+
* @memberof DevSupportsApiApiV1DevsupportsTranslatePost
|
|
186
|
+
*/
|
|
187
|
+
readonly id?: string
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @type {boolean}
|
|
192
|
+
* @memberof DevSupportsApiApiV1DevsupportsTranslatePost
|
|
193
|
+
*/
|
|
194
|
+
readonly includesAllEntries?: boolean
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @type {boolean}
|
|
199
|
+
* @memberof DevSupportsApiApiV1DevsupportsTranslatePost
|
|
200
|
+
*/
|
|
201
|
+
readonly isDryRun?: boolean
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* DevSupportsApi - object-oriented interface
|
|
206
|
+
* @export
|
|
207
|
+
* @class DevSupportsApi
|
|
208
|
+
* @extends {BaseAPI}
|
|
209
|
+
*/
|
|
210
|
+
export class DevSupportsApi extends BaseAPI {
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @summary Find missing translated content, translate all found contents
|
|
214
|
+
* @param {DevSupportsApiApiV1DevsupportsTranslatePostRequest} requestParameters Request parameters.
|
|
215
|
+
* @param {*} [options] Override http request option.
|
|
216
|
+
* @throws {RequiredError}
|
|
217
|
+
* @memberof DevSupportsApi
|
|
218
|
+
*/
|
|
219
|
+
public apiV1DevsupportsTranslatePost(requestParameters: DevSupportsApiApiV1DevsupportsTranslatePostRequest, options?: AxiosRequestConfig) {
|
|
220
|
+
return DevSupportsApiFp(this.configuration).apiV1DevsupportsTranslatePost(requestParameters.targetEntity, requestParameters.basisLanguageCode, requestParameters.translateToFields, requestParameters.id, requestParameters.includesAllEntries, requestParameters.isDryRun, options).then((request) => request(this.axios, this.basePath));
|
|
221
|
+
}
|
|
222
|
+
}
|