ch-admin-api-client-typescript 4.2.4 → 4.2.8
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.d.ts +132 -163
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +238 -309
- package/package.json +1 -1
- package/src/api.ts +246 -310
package/lib/api.js
CHANGED
|
@@ -14317,16 +14317,14 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
14317
14317
|
},
|
|
14318
14318
|
/**
|
|
14319
14319
|
*
|
|
14320
|
-
* @summary
|
|
14320
|
+
* @summary Delete DoctorLanguage
|
|
14321
14321
|
* @param {string} doctorId
|
|
14322
|
-
* @param {string}
|
|
14323
|
-
* @param {
|
|
14324
|
-
* @param {number} [limit]
|
|
14325
|
-
* @param {Date} [lastRetrieved]
|
|
14322
|
+
* @param {string} languageId
|
|
14323
|
+
* @param {string} code
|
|
14326
14324
|
* @param {*} [options] Override http request option.
|
|
14327
14325
|
* @throws {RequiredError}
|
|
14328
14326
|
*/
|
|
14329
|
-
|
|
14327
|
+
apiV1DoctorsDoctorIdLanguagesCodeDelete: function (doctorId, languageId, code, options) {
|
|
14330
14328
|
if (options === void 0) { options = {}; }
|
|
14331
14329
|
return __awaiter(_this, void 0, void 0, function () {
|
|
14332
14330
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -14334,14 +14332,20 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
14334
14332
|
switch (_a.label) {
|
|
14335
14333
|
case 0:
|
|
14336
14334
|
// verify required parameter 'doctorId' is not null or undefined
|
|
14337
|
-
common_1.assertParamExists('
|
|
14338
|
-
|
|
14339
|
-
|
|
14335
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdLanguagesCodeDelete', 'doctorId', doctorId);
|
|
14336
|
+
// verify required parameter 'languageId' is not null or undefined
|
|
14337
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdLanguagesCodeDelete', 'languageId', languageId);
|
|
14338
|
+
// verify required parameter 'code' is not null or undefined
|
|
14339
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdLanguagesCodeDelete', 'code', code);
|
|
14340
|
+
localVarPath = "/api/v1/doctors/{doctorId}/languages/{code}"
|
|
14341
|
+
.replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)))
|
|
14342
|
+
.replace("{" + "languageId" + "}", encodeURIComponent(String(languageId)))
|
|
14343
|
+
.replace("{" + "code" + "}", encodeURIComponent(String(code)));
|
|
14340
14344
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14341
14345
|
if (configuration) {
|
|
14342
14346
|
baseOptions = configuration.baseOptions;
|
|
14343
14347
|
}
|
|
14344
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
14348
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
14345
14349
|
localVarHeaderParameter = {};
|
|
14346
14350
|
localVarQueryParameter = {};
|
|
14347
14351
|
// authentication oauth2 required
|
|
@@ -14351,20 +14355,6 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
14351
14355
|
// authentication oauth2 required
|
|
14352
14356
|
// oauth required
|
|
14353
14357
|
_a.sent();
|
|
14354
|
-
if (language !== undefined) {
|
|
14355
|
-
localVarQueryParameter['Language'] = language;
|
|
14356
|
-
}
|
|
14357
|
-
if (page !== undefined) {
|
|
14358
|
-
localVarQueryParameter['page'] = page;
|
|
14359
|
-
}
|
|
14360
|
-
if (limit !== undefined) {
|
|
14361
|
-
localVarQueryParameter['limit'] = limit;
|
|
14362
|
-
}
|
|
14363
|
-
if (lastRetrieved !== undefined) {
|
|
14364
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
14365
|
-
lastRetrieved.toISOString() :
|
|
14366
|
-
lastRetrieved;
|
|
14367
|
-
}
|
|
14368
14358
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14369
14359
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14370
14360
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -14378,13 +14368,14 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
14378
14368
|
},
|
|
14379
14369
|
/**
|
|
14380
14370
|
*
|
|
14381
|
-
* @summary
|
|
14371
|
+
* @summary Get DoctorLanguage.
|
|
14382
14372
|
* @param {string} doctorId
|
|
14383
14373
|
* @param {string} languageId
|
|
14374
|
+
* @param {string} code
|
|
14384
14375
|
* @param {*} [options] Override http request option.
|
|
14385
14376
|
* @throws {RequiredError}
|
|
14386
14377
|
*/
|
|
14387
|
-
|
|
14378
|
+
apiV1DoctorsDoctorIdLanguagesCodeGet: function (doctorId, languageId, code, options) {
|
|
14388
14379
|
if (options === void 0) { options = {}; }
|
|
14389
14380
|
return __awaiter(_this, void 0, void 0, function () {
|
|
14390
14381
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -14392,17 +14383,20 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
14392
14383
|
switch (_a.label) {
|
|
14393
14384
|
case 0:
|
|
14394
14385
|
// verify required parameter 'doctorId' is not null or undefined
|
|
14395
|
-
common_1.assertParamExists('
|
|
14386
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdLanguagesCodeGet', 'doctorId', doctorId);
|
|
14396
14387
|
// verify required parameter 'languageId' is not null or undefined
|
|
14397
|
-
common_1.assertParamExists('
|
|
14398
|
-
|
|
14388
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdLanguagesCodeGet', 'languageId', languageId);
|
|
14389
|
+
// verify required parameter 'code' is not null or undefined
|
|
14390
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdLanguagesCodeGet', 'code', code);
|
|
14391
|
+
localVarPath = "/api/v1/doctors/{doctorId}/languages/{code}"
|
|
14399
14392
|
.replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)))
|
|
14400
|
-
.replace("{" + "languageId" + "}", encodeURIComponent(String(languageId)))
|
|
14393
|
+
.replace("{" + "languageId" + "}", encodeURIComponent(String(languageId)))
|
|
14394
|
+
.replace("{" + "code" + "}", encodeURIComponent(String(code)));
|
|
14401
14395
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14402
14396
|
if (configuration) {
|
|
14403
14397
|
baseOptions = configuration.baseOptions;
|
|
14404
14398
|
}
|
|
14405
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
14399
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14406
14400
|
localVarHeaderParameter = {};
|
|
14407
14401
|
localVarQueryParameter = {};
|
|
14408
14402
|
// authentication oauth2 required
|
|
@@ -14425,13 +14419,15 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
14425
14419
|
},
|
|
14426
14420
|
/**
|
|
14427
14421
|
*
|
|
14428
|
-
* @summary
|
|
14422
|
+
* @summary Update DoctorLanguage.
|
|
14429
14423
|
* @param {string} doctorId
|
|
14430
14424
|
* @param {string} languageId
|
|
14425
|
+
* @param {string} code
|
|
14426
|
+
* @param {UpdateDoctorLanguageCommand} [updateDoctorLanguageCommand]
|
|
14431
14427
|
* @param {*} [options] Override http request option.
|
|
14432
14428
|
* @throws {RequiredError}
|
|
14433
14429
|
*/
|
|
14434
|
-
|
|
14430
|
+
apiV1DoctorsDoctorIdLanguagesCodePut: function (doctorId, languageId, code, updateDoctorLanguageCommand, options) {
|
|
14435
14431
|
if (options === void 0) { options = {}; }
|
|
14436
14432
|
return __awaiter(_this, void 0, void 0, function () {
|
|
14437
14433
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -14439,17 +14435,20 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
14439
14435
|
switch (_a.label) {
|
|
14440
14436
|
case 0:
|
|
14441
14437
|
// verify required parameter 'doctorId' is not null or undefined
|
|
14442
|
-
common_1.assertParamExists('
|
|
14438
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdLanguagesCodePut', 'doctorId', doctorId);
|
|
14443
14439
|
// verify required parameter 'languageId' is not null or undefined
|
|
14444
|
-
common_1.assertParamExists('
|
|
14445
|
-
|
|
14440
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdLanguagesCodePut', 'languageId', languageId);
|
|
14441
|
+
// verify required parameter 'code' is not null or undefined
|
|
14442
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdLanguagesCodePut', 'code', code);
|
|
14443
|
+
localVarPath = "/api/v1/doctors/{doctorId}/languages/{code}"
|
|
14446
14444
|
.replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)))
|
|
14447
|
-
.replace("{" + "languageId" + "}", encodeURIComponent(String(languageId)))
|
|
14445
|
+
.replace("{" + "languageId" + "}", encodeURIComponent(String(languageId)))
|
|
14446
|
+
.replace("{" + "code" + "}", encodeURIComponent(String(code)));
|
|
14448
14447
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14449
14448
|
if (configuration) {
|
|
14450
14449
|
baseOptions = configuration.baseOptions;
|
|
14451
14450
|
}
|
|
14452
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
14451
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
14453
14452
|
localVarHeaderParameter = {};
|
|
14454
14453
|
localVarQueryParameter = {};
|
|
14455
14454
|
// authentication oauth2 required
|
|
@@ -14459,9 +14458,11 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
14459
14458
|
// authentication oauth2 required
|
|
14460
14459
|
// oauth required
|
|
14461
14460
|
_a.sent();
|
|
14461
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14462
14462
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14463
14463
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14464
14464
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14465
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateDoctorLanguageCommand, localVarRequestOptions, configuration);
|
|
14465
14466
|
return [2 /*return*/, {
|
|
14466
14467
|
url: common_1.toPathString(localVarUrlObj),
|
|
14467
14468
|
options: localVarRequestOptions,
|
|
@@ -14472,14 +14473,16 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
14472
14473
|
},
|
|
14473
14474
|
/**
|
|
14474
14475
|
*
|
|
14475
|
-
* @summary
|
|
14476
|
+
* @summary Get all DoctorLanguages.
|
|
14476
14477
|
* @param {string} doctorId
|
|
14477
|
-
* @param {string}
|
|
14478
|
-
* @param {
|
|
14478
|
+
* @param {string} [language]
|
|
14479
|
+
* @param {number} [page]
|
|
14480
|
+
* @param {number} [limit]
|
|
14481
|
+
* @param {Date} [lastRetrieved]
|
|
14479
14482
|
* @param {*} [options] Override http request option.
|
|
14480
14483
|
* @throws {RequiredError}
|
|
14481
14484
|
*/
|
|
14482
|
-
|
|
14485
|
+
apiV1DoctorsDoctorIdLanguagesGet: function (doctorId, language, page, limit, lastRetrieved, options) {
|
|
14483
14486
|
if (options === void 0) { options = {}; }
|
|
14484
14487
|
return __awaiter(_this, void 0, void 0, function () {
|
|
14485
14488
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -14487,17 +14490,14 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
14487
14490
|
switch (_a.label) {
|
|
14488
14491
|
case 0:
|
|
14489
14492
|
// verify required parameter 'doctorId' is not null or undefined
|
|
14490
|
-
common_1.assertParamExists('
|
|
14491
|
-
|
|
14492
|
-
|
|
14493
|
-
localVarPath = "/api/v1/doctors/{doctorId}/languages/{languageId}"
|
|
14494
|
-
.replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)))
|
|
14495
|
-
.replace("{" + "languageId" + "}", encodeURIComponent(String(languageId)));
|
|
14493
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdLanguagesGet', 'doctorId', doctorId);
|
|
14494
|
+
localVarPath = "/api/v1/doctors/{doctorId}/languages"
|
|
14495
|
+
.replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)));
|
|
14496
14496
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14497
14497
|
if (configuration) {
|
|
14498
14498
|
baseOptions = configuration.baseOptions;
|
|
14499
14499
|
}
|
|
14500
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
14500
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14501
14501
|
localVarHeaderParameter = {};
|
|
14502
14502
|
localVarQueryParameter = {};
|
|
14503
14503
|
// authentication oauth2 required
|
|
@@ -14507,11 +14507,23 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
14507
14507
|
// authentication oauth2 required
|
|
14508
14508
|
// oauth required
|
|
14509
14509
|
_a.sent();
|
|
14510
|
-
|
|
14510
|
+
if (language !== undefined) {
|
|
14511
|
+
localVarQueryParameter['Language'] = language;
|
|
14512
|
+
}
|
|
14513
|
+
if (page !== undefined) {
|
|
14514
|
+
localVarQueryParameter['page'] = page;
|
|
14515
|
+
}
|
|
14516
|
+
if (limit !== undefined) {
|
|
14517
|
+
localVarQueryParameter['limit'] = limit;
|
|
14518
|
+
}
|
|
14519
|
+
if (lastRetrieved !== undefined) {
|
|
14520
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
14521
|
+
lastRetrieved.toISOString() :
|
|
14522
|
+
lastRetrieved;
|
|
14523
|
+
}
|
|
14511
14524
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14512
14525
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14513
14526
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14514
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateDoctorLanguageCommand, localVarRequestOptions, configuration);
|
|
14515
14527
|
return [2 /*return*/, {
|
|
14516
14528
|
url: common_1.toPathString(localVarUrlObj),
|
|
14517
14529
|
options: localVarRequestOptions,
|
|
@@ -15917,21 +15929,19 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
15917
15929
|
},
|
|
15918
15930
|
/**
|
|
15919
15931
|
*
|
|
15920
|
-
* @summary
|
|
15932
|
+
* @summary Delete DoctorLanguage
|
|
15921
15933
|
* @param {string} doctorId
|
|
15922
|
-
* @param {string}
|
|
15923
|
-
* @param {
|
|
15924
|
-
* @param {number} [limit]
|
|
15925
|
-
* @param {Date} [lastRetrieved]
|
|
15934
|
+
* @param {string} languageId
|
|
15935
|
+
* @param {string} code
|
|
15926
15936
|
* @param {*} [options] Override http request option.
|
|
15927
15937
|
* @throws {RequiredError}
|
|
15928
15938
|
*/
|
|
15929
|
-
|
|
15939
|
+
apiV1DoctorsDoctorIdLanguagesCodeDelete: function (doctorId, languageId, code, options) {
|
|
15930
15940
|
return __awaiter(this, void 0, void 0, function () {
|
|
15931
15941
|
var localVarAxiosArgs;
|
|
15932
15942
|
return __generator(this, function (_a) {
|
|
15933
15943
|
switch (_a.label) {
|
|
15934
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
15944
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdLanguagesCodeDelete(doctorId, languageId, code, options)];
|
|
15935
15945
|
case 1:
|
|
15936
15946
|
localVarAxiosArgs = _a.sent();
|
|
15937
15947
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -15941,18 +15951,19 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
15941
15951
|
},
|
|
15942
15952
|
/**
|
|
15943
15953
|
*
|
|
15944
|
-
* @summary
|
|
15954
|
+
* @summary Get DoctorLanguage.
|
|
15945
15955
|
* @param {string} doctorId
|
|
15946
15956
|
* @param {string} languageId
|
|
15957
|
+
* @param {string} code
|
|
15947
15958
|
* @param {*} [options] Override http request option.
|
|
15948
15959
|
* @throws {RequiredError}
|
|
15949
15960
|
*/
|
|
15950
|
-
|
|
15961
|
+
apiV1DoctorsDoctorIdLanguagesCodeGet: function (doctorId, languageId, code, options) {
|
|
15951
15962
|
return __awaiter(this, void 0, void 0, function () {
|
|
15952
15963
|
var localVarAxiosArgs;
|
|
15953
15964
|
return __generator(this, function (_a) {
|
|
15954
15965
|
switch (_a.label) {
|
|
15955
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
15966
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdLanguagesCodeGet(doctorId, languageId, code, options)];
|
|
15956
15967
|
case 1:
|
|
15957
15968
|
localVarAxiosArgs = _a.sent();
|
|
15958
15969
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -15962,18 +15973,20 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
15962
15973
|
},
|
|
15963
15974
|
/**
|
|
15964
15975
|
*
|
|
15965
|
-
* @summary
|
|
15976
|
+
* @summary Update DoctorLanguage.
|
|
15966
15977
|
* @param {string} doctorId
|
|
15967
15978
|
* @param {string} languageId
|
|
15979
|
+
* @param {string} code
|
|
15980
|
+
* @param {UpdateDoctorLanguageCommand} [updateDoctorLanguageCommand]
|
|
15968
15981
|
* @param {*} [options] Override http request option.
|
|
15969
15982
|
* @throws {RequiredError}
|
|
15970
15983
|
*/
|
|
15971
|
-
|
|
15984
|
+
apiV1DoctorsDoctorIdLanguagesCodePut: function (doctorId, languageId, code, updateDoctorLanguageCommand, options) {
|
|
15972
15985
|
return __awaiter(this, void 0, void 0, function () {
|
|
15973
15986
|
var localVarAxiosArgs;
|
|
15974
15987
|
return __generator(this, function (_a) {
|
|
15975
15988
|
switch (_a.label) {
|
|
15976
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
15989
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdLanguagesCodePut(doctorId, languageId, code, updateDoctorLanguageCommand, options)];
|
|
15977
15990
|
case 1:
|
|
15978
15991
|
localVarAxiosArgs = _a.sent();
|
|
15979
15992
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -15983,19 +15996,21 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
15983
15996
|
},
|
|
15984
15997
|
/**
|
|
15985
15998
|
*
|
|
15986
|
-
* @summary
|
|
15999
|
+
* @summary Get all DoctorLanguages.
|
|
15987
16000
|
* @param {string} doctorId
|
|
15988
|
-
* @param {string}
|
|
15989
|
-
* @param {
|
|
16001
|
+
* @param {string} [language]
|
|
16002
|
+
* @param {number} [page]
|
|
16003
|
+
* @param {number} [limit]
|
|
16004
|
+
* @param {Date} [lastRetrieved]
|
|
15990
16005
|
* @param {*} [options] Override http request option.
|
|
15991
16006
|
* @throws {RequiredError}
|
|
15992
16007
|
*/
|
|
15993
|
-
|
|
16008
|
+
apiV1DoctorsDoctorIdLanguagesGet: function (doctorId, language, page, limit, lastRetrieved, options) {
|
|
15994
16009
|
return __awaiter(this, void 0, void 0, function () {
|
|
15995
16010
|
var localVarAxiosArgs;
|
|
15996
16011
|
return __generator(this, function (_a) {
|
|
15997
16012
|
switch (_a.label) {
|
|
15998
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
16013
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdLanguagesGet(doctorId, language, page, limit, lastRetrieved, options)];
|
|
15999
16014
|
case 1:
|
|
16000
16015
|
localVarAxiosArgs = _a.sent();
|
|
16001
16016
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -16622,51 +16637,54 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
16622
16637
|
},
|
|
16623
16638
|
/**
|
|
16624
16639
|
*
|
|
16625
|
-
* @summary
|
|
16640
|
+
* @summary Delete DoctorLanguage
|
|
16626
16641
|
* @param {string} doctorId
|
|
16627
|
-
* @param {string}
|
|
16628
|
-
* @param {
|
|
16629
|
-
* @param {number} [limit]
|
|
16630
|
-
* @param {Date} [lastRetrieved]
|
|
16642
|
+
* @param {string} languageId
|
|
16643
|
+
* @param {string} code
|
|
16631
16644
|
* @param {*} [options] Override http request option.
|
|
16632
16645
|
* @throws {RequiredError}
|
|
16633
16646
|
*/
|
|
16634
|
-
|
|
16635
|
-
return localVarFp.
|
|
16647
|
+
apiV1DoctorsDoctorIdLanguagesCodeDelete: function (doctorId, languageId, code, options) {
|
|
16648
|
+
return localVarFp.apiV1DoctorsDoctorIdLanguagesCodeDelete(doctorId, languageId, code, options).then(function (request) { return request(axios, basePath); });
|
|
16636
16649
|
},
|
|
16637
16650
|
/**
|
|
16638
16651
|
*
|
|
16639
|
-
* @summary
|
|
16652
|
+
* @summary Get DoctorLanguage.
|
|
16640
16653
|
* @param {string} doctorId
|
|
16641
16654
|
* @param {string} languageId
|
|
16655
|
+
* @param {string} code
|
|
16642
16656
|
* @param {*} [options] Override http request option.
|
|
16643
16657
|
* @throws {RequiredError}
|
|
16644
16658
|
*/
|
|
16645
|
-
|
|
16646
|
-
return localVarFp.
|
|
16659
|
+
apiV1DoctorsDoctorIdLanguagesCodeGet: function (doctorId, languageId, code, options) {
|
|
16660
|
+
return localVarFp.apiV1DoctorsDoctorIdLanguagesCodeGet(doctorId, languageId, code, options).then(function (request) { return request(axios, basePath); });
|
|
16647
16661
|
},
|
|
16648
16662
|
/**
|
|
16649
16663
|
*
|
|
16650
|
-
* @summary
|
|
16664
|
+
* @summary Update DoctorLanguage.
|
|
16651
16665
|
* @param {string} doctorId
|
|
16652
16666
|
* @param {string} languageId
|
|
16667
|
+
* @param {string} code
|
|
16668
|
+
* @param {UpdateDoctorLanguageCommand} [updateDoctorLanguageCommand]
|
|
16653
16669
|
* @param {*} [options] Override http request option.
|
|
16654
16670
|
* @throws {RequiredError}
|
|
16655
16671
|
*/
|
|
16656
|
-
|
|
16657
|
-
return localVarFp.
|
|
16672
|
+
apiV1DoctorsDoctorIdLanguagesCodePut: function (doctorId, languageId, code, updateDoctorLanguageCommand, options) {
|
|
16673
|
+
return localVarFp.apiV1DoctorsDoctorIdLanguagesCodePut(doctorId, languageId, code, updateDoctorLanguageCommand, options).then(function (request) { return request(axios, basePath); });
|
|
16658
16674
|
},
|
|
16659
16675
|
/**
|
|
16660
16676
|
*
|
|
16661
|
-
* @summary
|
|
16677
|
+
* @summary Get all DoctorLanguages.
|
|
16662
16678
|
* @param {string} doctorId
|
|
16663
|
-
* @param {string}
|
|
16664
|
-
* @param {
|
|
16679
|
+
* @param {string} [language]
|
|
16680
|
+
* @param {number} [page]
|
|
16681
|
+
* @param {number} [limit]
|
|
16682
|
+
* @param {Date} [lastRetrieved]
|
|
16665
16683
|
* @param {*} [options] Override http request option.
|
|
16666
16684
|
* @throws {RequiredError}
|
|
16667
16685
|
*/
|
|
16668
|
-
|
|
16669
|
-
return localVarFp.
|
|
16686
|
+
apiV1DoctorsDoctorIdLanguagesGet: function (doctorId, language, page, limit, lastRetrieved, options) {
|
|
16687
|
+
return localVarFp.apiV1DoctorsDoctorIdLanguagesGet(doctorId, language, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
16670
16688
|
},
|
|
16671
16689
|
/**
|
|
16672
16690
|
*
|
|
@@ -17115,59 +17133,62 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
17115
17133
|
};
|
|
17116
17134
|
/**
|
|
17117
17135
|
*
|
|
17118
|
-
* @summary
|
|
17136
|
+
* @summary Delete DoctorLanguage
|
|
17119
17137
|
* @param {string} doctorId
|
|
17120
|
-
* @param {string}
|
|
17121
|
-
* @param {
|
|
17122
|
-
* @param {number} [limit]
|
|
17123
|
-
* @param {Date} [lastRetrieved]
|
|
17138
|
+
* @param {string} languageId
|
|
17139
|
+
* @param {string} code
|
|
17124
17140
|
* @param {*} [options] Override http request option.
|
|
17125
17141
|
* @throws {RequiredError}
|
|
17126
17142
|
* @memberof DoctorsApi
|
|
17127
17143
|
*/
|
|
17128
|
-
DoctorsApi.prototype.
|
|
17144
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdLanguagesCodeDelete = function (doctorId, languageId, code, options) {
|
|
17129
17145
|
var _this = this;
|
|
17130
|
-
return exports.DoctorsApiFp(this.configuration).
|
|
17146
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdLanguagesCodeDelete(doctorId, languageId, code, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17131
17147
|
};
|
|
17132
17148
|
/**
|
|
17133
17149
|
*
|
|
17134
|
-
* @summary
|
|
17150
|
+
* @summary Get DoctorLanguage.
|
|
17135
17151
|
* @param {string} doctorId
|
|
17136
17152
|
* @param {string} languageId
|
|
17153
|
+
* @param {string} code
|
|
17137
17154
|
* @param {*} [options] Override http request option.
|
|
17138
17155
|
* @throws {RequiredError}
|
|
17139
17156
|
* @memberof DoctorsApi
|
|
17140
17157
|
*/
|
|
17141
|
-
DoctorsApi.prototype.
|
|
17158
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdLanguagesCodeGet = function (doctorId, languageId, code, options) {
|
|
17142
17159
|
var _this = this;
|
|
17143
|
-
return exports.DoctorsApiFp(this.configuration).
|
|
17160
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdLanguagesCodeGet(doctorId, languageId, code, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17144
17161
|
};
|
|
17145
17162
|
/**
|
|
17146
17163
|
*
|
|
17147
|
-
* @summary
|
|
17164
|
+
* @summary Update DoctorLanguage.
|
|
17148
17165
|
* @param {string} doctorId
|
|
17149
17166
|
* @param {string} languageId
|
|
17167
|
+
* @param {string} code
|
|
17168
|
+
* @param {UpdateDoctorLanguageCommand} [updateDoctorLanguageCommand]
|
|
17150
17169
|
* @param {*} [options] Override http request option.
|
|
17151
17170
|
* @throws {RequiredError}
|
|
17152
17171
|
* @memberof DoctorsApi
|
|
17153
17172
|
*/
|
|
17154
|
-
DoctorsApi.prototype.
|
|
17173
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdLanguagesCodePut = function (doctorId, languageId, code, updateDoctorLanguageCommand, options) {
|
|
17155
17174
|
var _this = this;
|
|
17156
|
-
return exports.DoctorsApiFp(this.configuration).
|
|
17175
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdLanguagesCodePut(doctorId, languageId, code, updateDoctorLanguageCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17157
17176
|
};
|
|
17158
17177
|
/**
|
|
17159
17178
|
*
|
|
17160
|
-
* @summary
|
|
17179
|
+
* @summary Get all DoctorLanguages.
|
|
17161
17180
|
* @param {string} doctorId
|
|
17162
|
-
* @param {string}
|
|
17163
|
-
* @param {
|
|
17181
|
+
* @param {string} [language]
|
|
17182
|
+
* @param {number} [page]
|
|
17183
|
+
* @param {number} [limit]
|
|
17184
|
+
* @param {Date} [lastRetrieved]
|
|
17164
17185
|
* @param {*} [options] Override http request option.
|
|
17165
17186
|
* @throws {RequiredError}
|
|
17166
17187
|
* @memberof DoctorsApi
|
|
17167
17188
|
*/
|
|
17168
|
-
DoctorsApi.prototype.
|
|
17189
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdLanguagesGet = function (doctorId, language, page, limit, lastRetrieved, options) {
|
|
17169
17190
|
var _this = this;
|
|
17170
|
-
return exports.DoctorsApiFp(this.configuration).
|
|
17191
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdLanguagesGet(doctorId, language, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17171
17192
|
};
|
|
17172
17193
|
/**
|
|
17173
17194
|
*
|
|
@@ -27734,12 +27755,11 @@ exports.LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
27734
27755
|
return {
|
|
27735
27756
|
/**
|
|
27736
27757
|
*
|
|
27737
|
-
* @summary Get Language by code.
|
|
27738
27758
|
* @param {string} code
|
|
27739
27759
|
* @param {*} [options] Override http request option.
|
|
27740
27760
|
* @throws {RequiredError}
|
|
27741
27761
|
*/
|
|
27742
|
-
|
|
27762
|
+
apiV1LanguagesCodeDelete: function (code, options) {
|
|
27743
27763
|
if (options === void 0) { options = {}; }
|
|
27744
27764
|
return __awaiter(_this, void 0, void 0, function () {
|
|
27745
27765
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -27747,14 +27767,14 @@ exports.LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
27747
27767
|
switch (_a.label) {
|
|
27748
27768
|
case 0:
|
|
27749
27769
|
// verify required parameter 'code' is not null or undefined
|
|
27750
|
-
common_1.assertParamExists('
|
|
27770
|
+
common_1.assertParamExists('apiV1LanguagesCodeDelete', 'code', code);
|
|
27751
27771
|
localVarPath = "/api/v1/languages/{code}"
|
|
27752
27772
|
.replace("{" + "code" + "}", encodeURIComponent(String(code)));
|
|
27753
27773
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27754
27774
|
if (configuration) {
|
|
27755
27775
|
baseOptions = configuration.baseOptions;
|
|
27756
27776
|
}
|
|
27757
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
27777
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
27758
27778
|
localVarHeaderParameter = {};
|
|
27759
27779
|
localVarQueryParameter = {};
|
|
27760
27780
|
// authentication oauth2 required
|
|
@@ -27777,26 +27797,22 @@ exports.LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
27777
27797
|
},
|
|
27778
27798
|
/**
|
|
27779
27799
|
*
|
|
27780
|
-
* @summary Get
|
|
27781
|
-
* @param {string}
|
|
27782
|
-
* @param {string} [name]
|
|
27783
|
-
* @param {string} [code]
|
|
27784
|
-
* @param {string} [description]
|
|
27785
|
-
* @param {boolean} [showPublished]
|
|
27786
|
-
* @param {number} [page]
|
|
27787
|
-
* @param {number} [limit]
|
|
27788
|
-
* @param {Date} [lastRetrieved]
|
|
27800
|
+
* @summary Get Language.
|
|
27801
|
+
* @param {string} code
|
|
27789
27802
|
* @param {*} [options] Override http request option.
|
|
27790
27803
|
* @throws {RequiredError}
|
|
27791
27804
|
*/
|
|
27792
|
-
|
|
27805
|
+
apiV1LanguagesCodeGet: function (code, options) {
|
|
27793
27806
|
if (options === void 0) { options = {}; }
|
|
27794
27807
|
return __awaiter(_this, void 0, void 0, function () {
|
|
27795
27808
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
27796
27809
|
return __generator(this, function (_a) {
|
|
27797
27810
|
switch (_a.label) {
|
|
27798
27811
|
case 0:
|
|
27799
|
-
|
|
27812
|
+
// verify required parameter 'code' is not null or undefined
|
|
27813
|
+
common_1.assertParamExists('apiV1LanguagesCodeGet', 'code', code);
|
|
27814
|
+
localVarPath = "/api/v1/languages/{code}"
|
|
27815
|
+
.replace("{" + "code" + "}", encodeURIComponent(String(code)));
|
|
27800
27816
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27801
27817
|
if (configuration) {
|
|
27802
27818
|
baseOptions = configuration.baseOptions;
|
|
@@ -27811,32 +27827,6 @@ exports.LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
27811
27827
|
// authentication oauth2 required
|
|
27812
27828
|
// oauth required
|
|
27813
27829
|
_a.sent();
|
|
27814
|
-
if (id !== undefined) {
|
|
27815
|
-
localVarQueryParameter['Id'] = id;
|
|
27816
|
-
}
|
|
27817
|
-
if (name !== undefined) {
|
|
27818
|
-
localVarQueryParameter['Name'] = name;
|
|
27819
|
-
}
|
|
27820
|
-
if (code !== undefined) {
|
|
27821
|
-
localVarQueryParameter['Code'] = code;
|
|
27822
|
-
}
|
|
27823
|
-
if (description !== undefined) {
|
|
27824
|
-
localVarQueryParameter['Description'] = description;
|
|
27825
|
-
}
|
|
27826
|
-
if (showPublished !== undefined) {
|
|
27827
|
-
localVarQueryParameter['ShowPublished'] = showPublished;
|
|
27828
|
-
}
|
|
27829
|
-
if (page !== undefined) {
|
|
27830
|
-
localVarQueryParameter['page'] = page;
|
|
27831
|
-
}
|
|
27832
|
-
if (limit !== undefined) {
|
|
27833
|
-
localVarQueryParameter['limit'] = limit;
|
|
27834
|
-
}
|
|
27835
|
-
if (lastRetrieved !== undefined) {
|
|
27836
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
27837
|
-
lastRetrieved.toISOString() :
|
|
27838
|
-
lastRetrieved;
|
|
27839
|
-
}
|
|
27840
27830
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27841
27831
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27842
27832
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -27850,26 +27840,27 @@ exports.LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
27850
27840
|
},
|
|
27851
27841
|
/**
|
|
27852
27842
|
*
|
|
27853
|
-
* @param {string}
|
|
27843
|
+
* @param {string} code
|
|
27844
|
+
* @param {UpdateLanguageCommand} [updateLanguageCommand]
|
|
27854
27845
|
* @param {*} [options] Override http request option.
|
|
27855
27846
|
* @throws {RequiredError}
|
|
27856
27847
|
*/
|
|
27857
|
-
|
|
27848
|
+
apiV1LanguagesCodePut: function (code, updateLanguageCommand, options) {
|
|
27858
27849
|
if (options === void 0) { options = {}; }
|
|
27859
27850
|
return __awaiter(_this, void 0, void 0, function () {
|
|
27860
27851
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
27861
27852
|
return __generator(this, function (_a) {
|
|
27862
27853
|
switch (_a.label) {
|
|
27863
27854
|
case 0:
|
|
27864
|
-
// verify required parameter '
|
|
27865
|
-
common_1.assertParamExists('
|
|
27866
|
-
localVarPath = "/api/v1/languages/{
|
|
27867
|
-
.replace("{" + "
|
|
27855
|
+
// verify required parameter 'code' is not null or undefined
|
|
27856
|
+
common_1.assertParamExists('apiV1LanguagesCodePut', 'code', code);
|
|
27857
|
+
localVarPath = "/api/v1/languages/{code}"
|
|
27858
|
+
.replace("{" + "code" + "}", encodeURIComponent(String(code)));
|
|
27868
27859
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27869
27860
|
if (configuration) {
|
|
27870
27861
|
baseOptions = configuration.baseOptions;
|
|
27871
27862
|
}
|
|
27872
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
27863
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
27873
27864
|
localVarHeaderParameter = {};
|
|
27874
27865
|
localVarQueryParameter = {};
|
|
27875
27866
|
// authentication oauth2 required
|
|
@@ -27879,9 +27870,11 @@ exports.LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
27879
27870
|
// authentication oauth2 required
|
|
27880
27871
|
// oauth required
|
|
27881
27872
|
_a.sent();
|
|
27873
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27882
27874
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27883
27875
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27884
27876
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
27877
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateLanguageCommand, localVarRequestOptions, configuration);
|
|
27885
27878
|
return [2 /*return*/, {
|
|
27886
27879
|
url: common_1.toPathString(localVarUrlObj),
|
|
27887
27880
|
options: localVarRequestOptions,
|
|
@@ -27892,22 +27885,25 @@ exports.LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
27892
27885
|
},
|
|
27893
27886
|
/**
|
|
27894
27887
|
*
|
|
27895
|
-
* @summary Get
|
|
27896
|
-
* @param {string}
|
|
27888
|
+
* @summary Get all Languages.
|
|
27889
|
+
* @param {string} [code]
|
|
27890
|
+
* @param {string} [name]
|
|
27891
|
+
* @param {string} [description]
|
|
27892
|
+
* @param {boolean} [showPublished]
|
|
27893
|
+
* @param {number} [page]
|
|
27894
|
+
* @param {number} [limit]
|
|
27895
|
+
* @param {Date} [lastRetrieved]
|
|
27897
27896
|
* @param {*} [options] Override http request option.
|
|
27898
27897
|
* @throws {RequiredError}
|
|
27899
27898
|
*/
|
|
27900
|
-
|
|
27899
|
+
apiV1LanguagesGet: function (code, name, description, showPublished, page, limit, lastRetrieved, options) {
|
|
27901
27900
|
if (options === void 0) { options = {}; }
|
|
27902
27901
|
return __awaiter(_this, void 0, void 0, function () {
|
|
27903
27902
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
27904
27903
|
return __generator(this, function (_a) {
|
|
27905
27904
|
switch (_a.label) {
|
|
27906
27905
|
case 0:
|
|
27907
|
-
|
|
27908
|
-
common_1.assertParamExists('apiV1LanguagesLanguageIdGet', 'languageId', languageId);
|
|
27909
|
-
localVarPath = "/api/v1/languages/{languageId}"
|
|
27910
|
-
.replace("{" + "languageId" + "}", encodeURIComponent(String(languageId)));
|
|
27906
|
+
localVarPath = "/api/v1/languages";
|
|
27911
27907
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27912
27908
|
if (configuration) {
|
|
27913
27909
|
baseOptions = configuration.baseOptions;
|
|
@@ -27922,54 +27918,32 @@ exports.LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
27922
27918
|
// authentication oauth2 required
|
|
27923
27919
|
// oauth required
|
|
27924
27920
|
_a.sent();
|
|
27925
|
-
|
|
27926
|
-
|
|
27927
|
-
|
|
27928
|
-
|
|
27929
|
-
|
|
27930
|
-
|
|
27931
|
-
|
|
27932
|
-
|
|
27933
|
-
|
|
27934
|
-
|
|
27935
|
-
|
|
27936
|
-
|
|
27937
|
-
|
|
27938
|
-
|
|
27939
|
-
|
|
27940
|
-
|
|
27941
|
-
|
|
27942
|
-
|
|
27943
|
-
|
|
27944
|
-
|
|
27945
|
-
|
|
27946
|
-
|
|
27947
|
-
return __generator(this, function (_a) {
|
|
27948
|
-
switch (_a.label) {
|
|
27949
|
-
case 0:
|
|
27950
|
-
// verify required parameter 'languageId' is not null or undefined
|
|
27951
|
-
common_1.assertParamExists('apiV1LanguagesLanguageIdPut', 'languageId', languageId);
|
|
27952
|
-
localVarPath = "/api/v1/languages/{languageId}"
|
|
27953
|
-
.replace("{" + "languageId" + "}", encodeURIComponent(String(languageId)));
|
|
27954
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27955
|
-
if (configuration) {
|
|
27956
|
-
baseOptions = configuration.baseOptions;
|
|
27921
|
+
if (code !== undefined) {
|
|
27922
|
+
localVarQueryParameter['Code'] = code;
|
|
27923
|
+
}
|
|
27924
|
+
if (name !== undefined) {
|
|
27925
|
+
localVarQueryParameter['Name'] = name;
|
|
27926
|
+
}
|
|
27927
|
+
if (description !== undefined) {
|
|
27928
|
+
localVarQueryParameter['Description'] = description;
|
|
27929
|
+
}
|
|
27930
|
+
if (showPublished !== undefined) {
|
|
27931
|
+
localVarQueryParameter['ShowPublished'] = showPublished;
|
|
27932
|
+
}
|
|
27933
|
+
if (page !== undefined) {
|
|
27934
|
+
localVarQueryParameter['page'] = page;
|
|
27935
|
+
}
|
|
27936
|
+
if (limit !== undefined) {
|
|
27937
|
+
localVarQueryParameter['limit'] = limit;
|
|
27938
|
+
}
|
|
27939
|
+
if (lastRetrieved !== undefined) {
|
|
27940
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
27941
|
+
lastRetrieved.toISOString() :
|
|
27942
|
+
lastRetrieved;
|
|
27957
27943
|
}
|
|
27958
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
27959
|
-
localVarHeaderParameter = {};
|
|
27960
|
-
localVarQueryParameter = {};
|
|
27961
|
-
// authentication oauth2 required
|
|
27962
|
-
// oauth required
|
|
27963
|
-
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
27964
|
-
case 1:
|
|
27965
|
-
// authentication oauth2 required
|
|
27966
|
-
// oauth required
|
|
27967
|
-
_a.sent();
|
|
27968
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27969
27944
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27970
27945
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27971
27946
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
27972
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateLanguageCommand, localVarRequestOptions, configuration);
|
|
27973
27947
|
return [2 /*return*/, {
|
|
27974
27948
|
url: common_1.toPathString(localVarUrlObj),
|
|
27975
27949
|
options: localVarRequestOptions,
|
|
@@ -28030,17 +28004,16 @@ exports.LanguagesApiFp = function (configuration) {
|
|
|
28030
28004
|
return {
|
|
28031
28005
|
/**
|
|
28032
28006
|
*
|
|
28033
|
-
* @summary Get Language by code.
|
|
28034
28007
|
* @param {string} code
|
|
28035
28008
|
* @param {*} [options] Override http request option.
|
|
28036
28009
|
* @throws {RequiredError}
|
|
28037
28010
|
*/
|
|
28038
|
-
|
|
28011
|
+
apiV1LanguagesCodeDelete: function (code, options) {
|
|
28039
28012
|
return __awaiter(this, void 0, void 0, function () {
|
|
28040
28013
|
var localVarAxiosArgs;
|
|
28041
28014
|
return __generator(this, function (_a) {
|
|
28042
28015
|
switch (_a.label) {
|
|
28043
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
28016
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesCodeDelete(code, options)];
|
|
28044
28017
|
case 1:
|
|
28045
28018
|
localVarAxiosArgs = _a.sent();
|
|
28046
28019
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -28050,43 +28023,17 @@ exports.LanguagesApiFp = function (configuration) {
|
|
|
28050
28023
|
},
|
|
28051
28024
|
/**
|
|
28052
28025
|
*
|
|
28053
|
-
* @summary Get
|
|
28054
|
-
* @param {string}
|
|
28055
|
-
* @param {string} [name]
|
|
28056
|
-
* @param {string} [code]
|
|
28057
|
-
* @param {string} [description]
|
|
28058
|
-
* @param {boolean} [showPublished]
|
|
28059
|
-
* @param {number} [page]
|
|
28060
|
-
* @param {number} [limit]
|
|
28061
|
-
* @param {Date} [lastRetrieved]
|
|
28062
|
-
* @param {*} [options] Override http request option.
|
|
28063
|
-
* @throws {RequiredError}
|
|
28064
|
-
*/
|
|
28065
|
-
apiV1LanguagesGet: function (id, name, code, description, showPublished, page, limit, lastRetrieved, options) {
|
|
28066
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
28067
|
-
var localVarAxiosArgs;
|
|
28068
|
-
return __generator(this, function (_a) {
|
|
28069
|
-
switch (_a.label) {
|
|
28070
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesGet(id, name, code, description, showPublished, page, limit, lastRetrieved, options)];
|
|
28071
|
-
case 1:
|
|
28072
|
-
localVarAxiosArgs = _a.sent();
|
|
28073
|
-
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
28074
|
-
}
|
|
28075
|
-
});
|
|
28076
|
-
});
|
|
28077
|
-
},
|
|
28078
|
-
/**
|
|
28079
|
-
*
|
|
28080
|
-
* @param {string} languageId
|
|
28026
|
+
* @summary Get Language.
|
|
28027
|
+
* @param {string} code
|
|
28081
28028
|
* @param {*} [options] Override http request option.
|
|
28082
28029
|
* @throws {RequiredError}
|
|
28083
28030
|
*/
|
|
28084
|
-
|
|
28031
|
+
apiV1LanguagesCodeGet: function (code, options) {
|
|
28085
28032
|
return __awaiter(this, void 0, void 0, function () {
|
|
28086
28033
|
var localVarAxiosArgs;
|
|
28087
28034
|
return __generator(this, function (_a) {
|
|
28088
28035
|
switch (_a.label) {
|
|
28089
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
28036
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesCodeGet(code, options)];
|
|
28090
28037
|
case 1:
|
|
28091
28038
|
localVarAxiosArgs = _a.sent();
|
|
28092
28039
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -28096,17 +28043,17 @@ exports.LanguagesApiFp = function (configuration) {
|
|
|
28096
28043
|
},
|
|
28097
28044
|
/**
|
|
28098
28045
|
*
|
|
28099
|
-
* @
|
|
28100
|
-
* @param {
|
|
28046
|
+
* @param {string} code
|
|
28047
|
+
* @param {UpdateLanguageCommand} [updateLanguageCommand]
|
|
28101
28048
|
* @param {*} [options] Override http request option.
|
|
28102
28049
|
* @throws {RequiredError}
|
|
28103
28050
|
*/
|
|
28104
|
-
|
|
28051
|
+
apiV1LanguagesCodePut: function (code, updateLanguageCommand, options) {
|
|
28105
28052
|
return __awaiter(this, void 0, void 0, function () {
|
|
28106
28053
|
var localVarAxiosArgs;
|
|
28107
28054
|
return __generator(this, function (_a) {
|
|
28108
28055
|
switch (_a.label) {
|
|
28109
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
28056
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesCodePut(code, updateLanguageCommand, options)];
|
|
28110
28057
|
case 1:
|
|
28111
28058
|
localVarAxiosArgs = _a.sent();
|
|
28112
28059
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -28116,17 +28063,23 @@ exports.LanguagesApiFp = function (configuration) {
|
|
|
28116
28063
|
},
|
|
28117
28064
|
/**
|
|
28118
28065
|
*
|
|
28119
|
-
* @
|
|
28120
|
-
* @param {
|
|
28066
|
+
* @summary Get all Languages.
|
|
28067
|
+
* @param {string} [code]
|
|
28068
|
+
* @param {string} [name]
|
|
28069
|
+
* @param {string} [description]
|
|
28070
|
+
* @param {boolean} [showPublished]
|
|
28071
|
+
* @param {number} [page]
|
|
28072
|
+
* @param {number} [limit]
|
|
28073
|
+
* @param {Date} [lastRetrieved]
|
|
28121
28074
|
* @param {*} [options] Override http request option.
|
|
28122
28075
|
* @throws {RequiredError}
|
|
28123
28076
|
*/
|
|
28124
|
-
|
|
28077
|
+
apiV1LanguagesGet: function (code, name, description, showPublished, page, limit, lastRetrieved, options) {
|
|
28125
28078
|
return __awaiter(this, void 0, void 0, function () {
|
|
28126
28079
|
var localVarAxiosArgs;
|
|
28127
28080
|
return __generator(this, function (_a) {
|
|
28128
28081
|
switch (_a.label) {
|
|
28129
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
28082
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesGet(code, name, description, showPublished, page, limit, lastRetrieved, options)];
|
|
28130
28083
|
case 1:
|
|
28131
28084
|
localVarAxiosArgs = _a.sent();
|
|
28132
28085
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -28164,59 +28117,48 @@ exports.LanguagesApiFactory = function (configuration, basePath, axios) {
|
|
|
28164
28117
|
return {
|
|
28165
28118
|
/**
|
|
28166
28119
|
*
|
|
28167
|
-
* @summary Get Language by code.
|
|
28168
28120
|
* @param {string} code
|
|
28169
28121
|
* @param {*} [options] Override http request option.
|
|
28170
28122
|
* @throws {RequiredError}
|
|
28171
28123
|
*/
|
|
28172
|
-
|
|
28173
|
-
return localVarFp.
|
|
28174
|
-
},
|
|
28175
|
-
/**
|
|
28176
|
-
*
|
|
28177
|
-
* @summary Get all Languages.
|
|
28178
|
-
* @param {string} [id]
|
|
28179
|
-
* @param {string} [name]
|
|
28180
|
-
* @param {string} [code]
|
|
28181
|
-
* @param {string} [description]
|
|
28182
|
-
* @param {boolean} [showPublished]
|
|
28183
|
-
* @param {number} [page]
|
|
28184
|
-
* @param {number} [limit]
|
|
28185
|
-
* @param {Date} [lastRetrieved]
|
|
28186
|
-
* @param {*} [options] Override http request option.
|
|
28187
|
-
* @throws {RequiredError}
|
|
28188
|
-
*/
|
|
28189
|
-
apiV1LanguagesGet: function (id, name, code, description, showPublished, page, limit, lastRetrieved, options) {
|
|
28190
|
-
return localVarFp.apiV1LanguagesGet(id, name, code, description, showPublished, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
28124
|
+
apiV1LanguagesCodeDelete: function (code, options) {
|
|
28125
|
+
return localVarFp.apiV1LanguagesCodeDelete(code, options).then(function (request) { return request(axios, basePath); });
|
|
28191
28126
|
},
|
|
28192
28127
|
/**
|
|
28193
28128
|
*
|
|
28194
|
-
* @
|
|
28129
|
+
* @summary Get Language.
|
|
28130
|
+
* @param {string} code
|
|
28195
28131
|
* @param {*} [options] Override http request option.
|
|
28196
28132
|
* @throws {RequiredError}
|
|
28197
28133
|
*/
|
|
28198
|
-
|
|
28199
|
-
return localVarFp.
|
|
28134
|
+
apiV1LanguagesCodeGet: function (code, options) {
|
|
28135
|
+
return localVarFp.apiV1LanguagesCodeGet(code, options).then(function (request) { return request(axios, basePath); });
|
|
28200
28136
|
},
|
|
28201
28137
|
/**
|
|
28202
28138
|
*
|
|
28203
|
-
* @
|
|
28204
|
-
* @param {
|
|
28139
|
+
* @param {string} code
|
|
28140
|
+
* @param {UpdateLanguageCommand} [updateLanguageCommand]
|
|
28205
28141
|
* @param {*} [options] Override http request option.
|
|
28206
28142
|
* @throws {RequiredError}
|
|
28207
28143
|
*/
|
|
28208
|
-
|
|
28209
|
-
return localVarFp.
|
|
28144
|
+
apiV1LanguagesCodePut: function (code, updateLanguageCommand, options) {
|
|
28145
|
+
return localVarFp.apiV1LanguagesCodePut(code, updateLanguageCommand, options).then(function (request) { return request(axios, basePath); });
|
|
28210
28146
|
},
|
|
28211
28147
|
/**
|
|
28212
28148
|
*
|
|
28213
|
-
* @
|
|
28214
|
-
* @param {
|
|
28149
|
+
* @summary Get all Languages.
|
|
28150
|
+
* @param {string} [code]
|
|
28151
|
+
* @param {string} [name]
|
|
28152
|
+
* @param {string} [description]
|
|
28153
|
+
* @param {boolean} [showPublished]
|
|
28154
|
+
* @param {number} [page]
|
|
28155
|
+
* @param {number} [limit]
|
|
28156
|
+
* @param {Date} [lastRetrieved]
|
|
28215
28157
|
* @param {*} [options] Override http request option.
|
|
28216
28158
|
* @throws {RequiredError}
|
|
28217
28159
|
*/
|
|
28218
|
-
|
|
28219
|
-
return localVarFp.
|
|
28160
|
+
apiV1LanguagesGet: function (code, name, description, showPublished, page, limit, lastRetrieved, options) {
|
|
28161
|
+
return localVarFp.apiV1LanguagesGet(code, name, description, showPublished, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
28220
28162
|
},
|
|
28221
28163
|
/**
|
|
28222
28164
|
*
|
|
@@ -28242,69 +28184,56 @@ var LanguagesApi = /** @class */ (function (_super) {
|
|
|
28242
28184
|
}
|
|
28243
28185
|
/**
|
|
28244
28186
|
*
|
|
28245
|
-
* @summary Get Language by code.
|
|
28246
28187
|
* @param {string} code
|
|
28247
28188
|
* @param {*} [options] Override http request option.
|
|
28248
28189
|
* @throws {RequiredError}
|
|
28249
28190
|
* @memberof LanguagesApi
|
|
28250
28191
|
*/
|
|
28251
|
-
LanguagesApi.prototype.
|
|
28192
|
+
LanguagesApi.prototype.apiV1LanguagesCodeDelete = function (code, options) {
|
|
28252
28193
|
var _this = this;
|
|
28253
|
-
return exports.LanguagesApiFp(this.configuration).
|
|
28194
|
+
return exports.LanguagesApiFp(this.configuration).apiV1LanguagesCodeDelete(code, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28254
28195
|
};
|
|
28255
28196
|
/**
|
|
28256
28197
|
*
|
|
28257
|
-
* @summary Get
|
|
28258
|
-
* @param {string}
|
|
28259
|
-
* @param {string} [name]
|
|
28260
|
-
* @param {string} [code]
|
|
28261
|
-
* @param {string} [description]
|
|
28262
|
-
* @param {boolean} [showPublished]
|
|
28263
|
-
* @param {number} [page]
|
|
28264
|
-
* @param {number} [limit]
|
|
28265
|
-
* @param {Date} [lastRetrieved]
|
|
28266
|
-
* @param {*} [options] Override http request option.
|
|
28267
|
-
* @throws {RequiredError}
|
|
28268
|
-
* @memberof LanguagesApi
|
|
28269
|
-
*/
|
|
28270
|
-
LanguagesApi.prototype.apiV1LanguagesGet = function (id, name, code, description, showPublished, page, limit, lastRetrieved, options) {
|
|
28271
|
-
var _this = this;
|
|
28272
|
-
return exports.LanguagesApiFp(this.configuration).apiV1LanguagesGet(id, name, code, description, showPublished, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28273
|
-
};
|
|
28274
|
-
/**
|
|
28275
|
-
*
|
|
28276
|
-
* @param {string} languageId
|
|
28198
|
+
* @summary Get Language.
|
|
28199
|
+
* @param {string} code
|
|
28277
28200
|
* @param {*} [options] Override http request option.
|
|
28278
28201
|
* @throws {RequiredError}
|
|
28279
28202
|
* @memberof LanguagesApi
|
|
28280
28203
|
*/
|
|
28281
|
-
LanguagesApi.prototype.
|
|
28204
|
+
LanguagesApi.prototype.apiV1LanguagesCodeGet = function (code, options) {
|
|
28282
28205
|
var _this = this;
|
|
28283
|
-
return exports.LanguagesApiFp(this.configuration).
|
|
28206
|
+
return exports.LanguagesApiFp(this.configuration).apiV1LanguagesCodeGet(code, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28284
28207
|
};
|
|
28285
28208
|
/**
|
|
28286
28209
|
*
|
|
28287
|
-
* @
|
|
28288
|
-
* @param {
|
|
28210
|
+
* @param {string} code
|
|
28211
|
+
* @param {UpdateLanguageCommand} [updateLanguageCommand]
|
|
28289
28212
|
* @param {*} [options] Override http request option.
|
|
28290
28213
|
* @throws {RequiredError}
|
|
28291
28214
|
* @memberof LanguagesApi
|
|
28292
28215
|
*/
|
|
28293
|
-
LanguagesApi.prototype.
|
|
28216
|
+
LanguagesApi.prototype.apiV1LanguagesCodePut = function (code, updateLanguageCommand, options) {
|
|
28294
28217
|
var _this = this;
|
|
28295
|
-
return exports.LanguagesApiFp(this.configuration).
|
|
28218
|
+
return exports.LanguagesApiFp(this.configuration).apiV1LanguagesCodePut(code, updateLanguageCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28296
28219
|
};
|
|
28297
28220
|
/**
|
|
28298
28221
|
*
|
|
28299
|
-
* @
|
|
28300
|
-
* @param {
|
|
28222
|
+
* @summary Get all Languages.
|
|
28223
|
+
* @param {string} [code]
|
|
28224
|
+
* @param {string} [name]
|
|
28225
|
+
* @param {string} [description]
|
|
28226
|
+
* @param {boolean} [showPublished]
|
|
28227
|
+
* @param {number} [page]
|
|
28228
|
+
* @param {number} [limit]
|
|
28229
|
+
* @param {Date} [lastRetrieved]
|
|
28301
28230
|
* @param {*} [options] Override http request option.
|
|
28302
28231
|
* @throws {RequiredError}
|
|
28303
28232
|
* @memberof LanguagesApi
|
|
28304
28233
|
*/
|
|
28305
|
-
LanguagesApi.prototype.
|
|
28234
|
+
LanguagesApi.prototype.apiV1LanguagesGet = function (code, name, description, showPublished, page, limit, lastRetrieved, options) {
|
|
28306
28235
|
var _this = this;
|
|
28307
|
-
return exports.LanguagesApiFp(this.configuration).
|
|
28236
|
+
return exports.LanguagesApiFp(this.configuration).apiV1LanguagesGet(code, name, description, showPublished, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28308
28237
|
};
|
|
28309
28238
|
/**
|
|
28310
28239
|
*
|