ch-api-client-typescript2 4.7.8 → 4.8.1
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 +323 -28
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +218 -33
- package/package.json +1 -1
- package/src/api.ts +413 -41
package/lib/api.js
CHANGED
|
@@ -7960,14 +7960,14 @@ var DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
7960
7960
|
*
|
|
7961
7961
|
* @summary Get all DoctorLanguages.
|
|
7962
7962
|
* @param {string} doctorId
|
|
7963
|
-
* @param {string} [
|
|
7963
|
+
* @param {string} [languageCode]
|
|
7964
7964
|
* @param {number} [page]
|
|
7965
7965
|
* @param {number} [limit]
|
|
7966
7966
|
* @param {Date} [lastRetrieved]
|
|
7967
7967
|
* @param {*} [options] Override http request option.
|
|
7968
7968
|
* @throws {RequiredError}
|
|
7969
7969
|
*/
|
|
7970
|
-
apiV2DoctorsDoctorIdLanguagesGet: function (doctorId,
|
|
7970
|
+
apiV2DoctorsDoctorIdLanguagesGet: function (doctorId, languageCode, page, limit, lastRetrieved, options) {
|
|
7971
7971
|
if (options === void 0) { options = {}; }
|
|
7972
7972
|
return __awaiter(_this, void 0, void 0, function () {
|
|
7973
7973
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -7983,8 +7983,8 @@ var DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
7983
7983
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
7984
7984
|
localVarHeaderParameter = {};
|
|
7985
7985
|
localVarQueryParameter = {};
|
|
7986
|
-
if (
|
|
7987
|
-
localVarQueryParameter['
|
|
7986
|
+
if (languageCode !== undefined) {
|
|
7987
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
7988
7988
|
}
|
|
7989
7989
|
if (page !== undefined) {
|
|
7990
7990
|
localVarQueryParameter['page'] = page;
|
|
@@ -8011,22 +8011,22 @@ var DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
8011
8011
|
*
|
|
8012
8012
|
* @summary Get DoctorLanguage.
|
|
8013
8013
|
* @param {string} doctorId
|
|
8014
|
-
* @param {string}
|
|
8014
|
+
* @param {string} languageCode
|
|
8015
8015
|
* @param {*} [options] Override http request option.
|
|
8016
8016
|
* @throws {RequiredError}
|
|
8017
8017
|
*/
|
|
8018
|
-
|
|
8018
|
+
apiV2DoctorsDoctorIdLanguagesLanguageCodeGet: function (doctorId, languageCode, options) {
|
|
8019
8019
|
if (options === void 0) { options = {}; }
|
|
8020
8020
|
return __awaiter(_this, void 0, void 0, function () {
|
|
8021
8021
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8022
8022
|
return __generator(this, function (_a) {
|
|
8023
8023
|
// verify required parameter 'doctorId' is not null or undefined
|
|
8024
|
-
(0, common_1.assertParamExists)('
|
|
8025
|
-
// verify required parameter '
|
|
8026
|
-
(0, common_1.assertParamExists)('
|
|
8027
|
-
localVarPath = "/api/v2/doctors/{doctorId}/languages/{
|
|
8024
|
+
(0, common_1.assertParamExists)('apiV2DoctorsDoctorIdLanguagesLanguageCodeGet', 'doctorId', doctorId);
|
|
8025
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
8026
|
+
(0, common_1.assertParamExists)('apiV2DoctorsDoctorIdLanguagesLanguageCodeGet', 'languageCode', languageCode);
|
|
8027
|
+
localVarPath = "/api/v2/doctors/{doctorId}/languages/{languageCode}"
|
|
8028
8028
|
.replace("{".concat("doctorId", "}"), encodeURIComponent(String(doctorId)))
|
|
8029
|
-
.replace("{".concat("
|
|
8029
|
+
.replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)));
|
|
8030
8030
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8031
8031
|
if (configuration) {
|
|
8032
8032
|
baseOptions = configuration.baseOptions;
|
|
@@ -8660,19 +8660,19 @@ var DoctorsApiFp = function (configuration) {
|
|
|
8660
8660
|
*
|
|
8661
8661
|
* @summary Get all DoctorLanguages.
|
|
8662
8662
|
* @param {string} doctorId
|
|
8663
|
-
* @param {string} [
|
|
8663
|
+
* @param {string} [languageCode]
|
|
8664
8664
|
* @param {number} [page]
|
|
8665
8665
|
* @param {number} [limit]
|
|
8666
8666
|
* @param {Date} [lastRetrieved]
|
|
8667
8667
|
* @param {*} [options] Override http request option.
|
|
8668
8668
|
* @throws {RequiredError}
|
|
8669
8669
|
*/
|
|
8670
|
-
apiV2DoctorsDoctorIdLanguagesGet: function (doctorId,
|
|
8670
|
+
apiV2DoctorsDoctorIdLanguagesGet: function (doctorId, languageCode, page, limit, lastRetrieved, options) {
|
|
8671
8671
|
return __awaiter(this, void 0, void 0, function () {
|
|
8672
8672
|
var localVarAxiosArgs;
|
|
8673
8673
|
return __generator(this, function (_a) {
|
|
8674
8674
|
switch (_a.label) {
|
|
8675
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DoctorsDoctorIdLanguagesGet(doctorId,
|
|
8675
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DoctorsDoctorIdLanguagesGet(doctorId, languageCode, page, limit, lastRetrieved, options)];
|
|
8676
8676
|
case 1:
|
|
8677
8677
|
localVarAxiosArgs = _a.sent();
|
|
8678
8678
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -8684,16 +8684,16 @@ var DoctorsApiFp = function (configuration) {
|
|
|
8684
8684
|
*
|
|
8685
8685
|
* @summary Get DoctorLanguage.
|
|
8686
8686
|
* @param {string} doctorId
|
|
8687
|
-
* @param {string}
|
|
8687
|
+
* @param {string} languageCode
|
|
8688
8688
|
* @param {*} [options] Override http request option.
|
|
8689
8689
|
* @throws {RequiredError}
|
|
8690
8690
|
*/
|
|
8691
|
-
|
|
8691
|
+
apiV2DoctorsDoctorIdLanguagesLanguageCodeGet: function (doctorId, languageCode, options) {
|
|
8692
8692
|
return __awaiter(this, void 0, void 0, function () {
|
|
8693
8693
|
var localVarAxiosArgs;
|
|
8694
8694
|
return __generator(this, function (_a) {
|
|
8695
8695
|
switch (_a.label) {
|
|
8696
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8696
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId, languageCode, options)];
|
|
8697
8697
|
case 1:
|
|
8698
8698
|
localVarAxiosArgs = _a.sent();
|
|
8699
8699
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -8995,26 +8995,26 @@ var DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
8995
8995
|
*
|
|
8996
8996
|
* @summary Get all DoctorLanguages.
|
|
8997
8997
|
* @param {string} doctorId
|
|
8998
|
-
* @param {string} [
|
|
8998
|
+
* @param {string} [languageCode]
|
|
8999
8999
|
* @param {number} [page]
|
|
9000
9000
|
* @param {number} [limit]
|
|
9001
9001
|
* @param {Date} [lastRetrieved]
|
|
9002
9002
|
* @param {*} [options] Override http request option.
|
|
9003
9003
|
* @throws {RequiredError}
|
|
9004
9004
|
*/
|
|
9005
|
-
apiV2DoctorsDoctorIdLanguagesGet: function (doctorId,
|
|
9006
|
-
return localVarFp.apiV2DoctorsDoctorIdLanguagesGet(doctorId,
|
|
9005
|
+
apiV2DoctorsDoctorIdLanguagesGet: function (doctorId, languageCode, page, limit, lastRetrieved, options) {
|
|
9006
|
+
return localVarFp.apiV2DoctorsDoctorIdLanguagesGet(doctorId, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
9007
9007
|
},
|
|
9008
9008
|
/**
|
|
9009
9009
|
*
|
|
9010
9010
|
* @summary Get DoctorLanguage.
|
|
9011
9011
|
* @param {string} doctorId
|
|
9012
|
-
* @param {string}
|
|
9012
|
+
* @param {string} languageCode
|
|
9013
9013
|
* @param {*} [options] Override http request option.
|
|
9014
9014
|
* @throws {RequiredError}
|
|
9015
9015
|
*/
|
|
9016
|
-
|
|
9017
|
-
return localVarFp.
|
|
9016
|
+
apiV2DoctorsDoctorIdLanguagesLanguageCodeGet: function (doctorId, languageCode, options) {
|
|
9017
|
+
return localVarFp.apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
9018
9018
|
},
|
|
9019
9019
|
/**
|
|
9020
9020
|
*
|
|
@@ -9244,7 +9244,7 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
9244
9244
|
*
|
|
9245
9245
|
* @summary Get all DoctorLanguages.
|
|
9246
9246
|
* @param {string} doctorId
|
|
9247
|
-
* @param {string} [
|
|
9247
|
+
* @param {string} [languageCode]
|
|
9248
9248
|
* @param {number} [page]
|
|
9249
9249
|
* @param {number} [limit]
|
|
9250
9250
|
* @param {Date} [lastRetrieved]
|
|
@@ -9252,22 +9252,22 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
9252
9252
|
* @throws {RequiredError}
|
|
9253
9253
|
* @memberof DoctorsApi
|
|
9254
9254
|
*/
|
|
9255
|
-
DoctorsApi.prototype.apiV2DoctorsDoctorIdLanguagesGet = function (doctorId,
|
|
9255
|
+
DoctorsApi.prototype.apiV2DoctorsDoctorIdLanguagesGet = function (doctorId, languageCode, page, limit, lastRetrieved, options) {
|
|
9256
9256
|
var _this = this;
|
|
9257
|
-
return (0, exports.DoctorsApiFp)(this.configuration).apiV2DoctorsDoctorIdLanguagesGet(doctorId,
|
|
9257
|
+
return (0, exports.DoctorsApiFp)(this.configuration).apiV2DoctorsDoctorIdLanguagesGet(doctorId, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9258
9258
|
};
|
|
9259
9259
|
/**
|
|
9260
9260
|
*
|
|
9261
9261
|
* @summary Get DoctorLanguage.
|
|
9262
9262
|
* @param {string} doctorId
|
|
9263
|
-
* @param {string}
|
|
9263
|
+
* @param {string} languageCode
|
|
9264
9264
|
* @param {*} [options] Override http request option.
|
|
9265
9265
|
* @throws {RequiredError}
|
|
9266
9266
|
* @memberof DoctorsApi
|
|
9267
9267
|
*/
|
|
9268
|
-
DoctorsApi.prototype.
|
|
9268
|
+
DoctorsApi.prototype.apiV2DoctorsDoctorIdLanguagesLanguageCodeGet = function (doctorId, languageCode, options) {
|
|
9269
9269
|
var _this = this;
|
|
9270
|
-
return (0, exports.DoctorsApiFp)(this.configuration).
|
|
9270
|
+
return (0, exports.DoctorsApiFp)(this.configuration).apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9271
9271
|
};
|
|
9272
9272
|
/**
|
|
9273
9273
|
*
|
|
@@ -16160,6 +16160,7 @@ var PatientsApiAxiosParamCreator = function (configuration) {
|
|
|
16160
16160
|
* @summary Delete Patient.
|
|
16161
16161
|
* @param {string} patientId
|
|
16162
16162
|
* @param {*} [options] Override http request option.
|
|
16163
|
+
* @deprecated
|
|
16163
16164
|
* @throws {RequiredError}
|
|
16164
16165
|
*/
|
|
16165
16166
|
apiV2PatientsPatientIdDelete: function (patientId, options) {
|
|
@@ -16203,6 +16204,7 @@ var PatientsApiAxiosParamCreator = function (configuration) {
|
|
|
16203
16204
|
* @summary Get Patient.
|
|
16204
16205
|
* @param {string} patientId
|
|
16205
16206
|
* @param {*} [options] Override http request option.
|
|
16207
|
+
* @deprecated
|
|
16206
16208
|
* @throws {RequiredError}
|
|
16207
16209
|
*/
|
|
16208
16210
|
apiV2PatientsPatientIdGet: function (patientId, options) {
|
|
@@ -16247,6 +16249,7 @@ var PatientsApiAxiosParamCreator = function (configuration) {
|
|
|
16247
16249
|
* @param {string} patientId
|
|
16248
16250
|
* @param {UpdatePatientCommand} [updatePatientCommand]
|
|
16249
16251
|
* @param {*} [options] Override http request option.
|
|
16252
|
+
* @deprecated
|
|
16250
16253
|
* @throws {RequiredError}
|
|
16251
16254
|
*/
|
|
16252
16255
|
apiV2PatientsPatientIdPut: function (patientId, updatePatientCommand, options) {
|
|
@@ -16292,6 +16295,7 @@ var PatientsApiAxiosParamCreator = function (configuration) {
|
|
|
16292
16295
|
* @summary Create a Patient.
|
|
16293
16296
|
* @param {CreatePatientCommand} [createPatientCommand]
|
|
16294
16297
|
* @param {*} [options] Override http request option.
|
|
16298
|
+
* @deprecated
|
|
16295
16299
|
* @throws {RequiredError}
|
|
16296
16300
|
*/
|
|
16297
16301
|
apiV2PatientsPost: function (createPatientCommand, options) {
|
|
@@ -16384,6 +16388,7 @@ var PatientsApiFp = function (configuration) {
|
|
|
16384
16388
|
* @summary Delete Patient.
|
|
16385
16389
|
* @param {string} patientId
|
|
16386
16390
|
* @param {*} [options] Override http request option.
|
|
16391
|
+
* @deprecated
|
|
16387
16392
|
* @throws {RequiredError}
|
|
16388
16393
|
*/
|
|
16389
16394
|
apiV2PatientsPatientIdDelete: function (patientId, options) {
|
|
@@ -16404,6 +16409,7 @@ var PatientsApiFp = function (configuration) {
|
|
|
16404
16409
|
* @summary Get Patient.
|
|
16405
16410
|
* @param {string} patientId
|
|
16406
16411
|
* @param {*} [options] Override http request option.
|
|
16412
|
+
* @deprecated
|
|
16407
16413
|
* @throws {RequiredError}
|
|
16408
16414
|
*/
|
|
16409
16415
|
apiV2PatientsPatientIdGet: function (patientId, options) {
|
|
@@ -16425,6 +16431,7 @@ var PatientsApiFp = function (configuration) {
|
|
|
16425
16431
|
* @param {string} patientId
|
|
16426
16432
|
* @param {UpdatePatientCommand} [updatePatientCommand]
|
|
16427
16433
|
* @param {*} [options] Override http request option.
|
|
16434
|
+
* @deprecated
|
|
16428
16435
|
* @throws {RequiredError}
|
|
16429
16436
|
*/
|
|
16430
16437
|
apiV2PatientsPatientIdPut: function (patientId, updatePatientCommand, options) {
|
|
@@ -16445,6 +16452,7 @@ var PatientsApiFp = function (configuration) {
|
|
|
16445
16452
|
* @summary Create a Patient.
|
|
16446
16453
|
* @param {CreatePatientCommand} [createPatientCommand]
|
|
16447
16454
|
* @param {*} [options] Override http request option.
|
|
16455
|
+
* @deprecated
|
|
16448
16456
|
* @throws {RequiredError}
|
|
16449
16457
|
*/
|
|
16450
16458
|
apiV2PatientsPost: function (createPatientCommand, options) {
|
|
@@ -16495,6 +16503,7 @@ var PatientsApiFactory = function (configuration, basePath, axios) {
|
|
|
16495
16503
|
* @summary Delete Patient.
|
|
16496
16504
|
* @param {string} patientId
|
|
16497
16505
|
* @param {*} [options] Override http request option.
|
|
16506
|
+
* @deprecated
|
|
16498
16507
|
* @throws {RequiredError}
|
|
16499
16508
|
*/
|
|
16500
16509
|
apiV2PatientsPatientIdDelete: function (patientId, options) {
|
|
@@ -16505,6 +16514,7 @@ var PatientsApiFactory = function (configuration, basePath, axios) {
|
|
|
16505
16514
|
* @summary Get Patient.
|
|
16506
16515
|
* @param {string} patientId
|
|
16507
16516
|
* @param {*} [options] Override http request option.
|
|
16517
|
+
* @deprecated
|
|
16508
16518
|
* @throws {RequiredError}
|
|
16509
16519
|
*/
|
|
16510
16520
|
apiV2PatientsPatientIdGet: function (patientId, options) {
|
|
@@ -16516,6 +16526,7 @@ var PatientsApiFactory = function (configuration, basePath, axios) {
|
|
|
16516
16526
|
* @param {string} patientId
|
|
16517
16527
|
* @param {UpdatePatientCommand} [updatePatientCommand]
|
|
16518
16528
|
* @param {*} [options] Override http request option.
|
|
16529
|
+
* @deprecated
|
|
16519
16530
|
* @throws {RequiredError}
|
|
16520
16531
|
*/
|
|
16521
16532
|
apiV2PatientsPatientIdPut: function (patientId, updatePatientCommand, options) {
|
|
@@ -16526,6 +16537,7 @@ var PatientsApiFactory = function (configuration, basePath, axios) {
|
|
|
16526
16537
|
* @summary Create a Patient.
|
|
16527
16538
|
* @param {CreatePatientCommand} [createPatientCommand]
|
|
16528
16539
|
* @param {*} [options] Override http request option.
|
|
16540
|
+
* @deprecated
|
|
16529
16541
|
* @throws {RequiredError}
|
|
16530
16542
|
*/
|
|
16531
16543
|
apiV2PatientsPost: function (createPatientCommand, options) {
|
|
@@ -16574,6 +16586,7 @@ var PatientsApi = /** @class */ (function (_super) {
|
|
|
16574
16586
|
* @summary Delete Patient.
|
|
16575
16587
|
* @param {string} patientId
|
|
16576
16588
|
* @param {*} [options] Override http request option.
|
|
16589
|
+
* @deprecated
|
|
16577
16590
|
* @throws {RequiredError}
|
|
16578
16591
|
* @memberof PatientsApi
|
|
16579
16592
|
*/
|
|
@@ -16586,6 +16599,7 @@ var PatientsApi = /** @class */ (function (_super) {
|
|
|
16586
16599
|
* @summary Get Patient.
|
|
16587
16600
|
* @param {string} patientId
|
|
16588
16601
|
* @param {*} [options] Override http request option.
|
|
16602
|
+
* @deprecated
|
|
16589
16603
|
* @throws {RequiredError}
|
|
16590
16604
|
* @memberof PatientsApi
|
|
16591
16605
|
*/
|
|
@@ -16599,6 +16613,7 @@ var PatientsApi = /** @class */ (function (_super) {
|
|
|
16599
16613
|
* @param {string} patientId
|
|
16600
16614
|
* @param {UpdatePatientCommand} [updatePatientCommand]
|
|
16601
16615
|
* @param {*} [options] Override http request option.
|
|
16616
|
+
* @deprecated
|
|
16602
16617
|
* @throws {RequiredError}
|
|
16603
16618
|
* @memberof PatientsApi
|
|
16604
16619
|
*/
|
|
@@ -16611,6 +16626,7 @@ var PatientsApi = /** @class */ (function (_super) {
|
|
|
16611
16626
|
* @summary Create a Patient.
|
|
16612
16627
|
* @param {CreatePatientCommand} [createPatientCommand]
|
|
16613
16628
|
* @param {*} [options] Override http request option.
|
|
16629
|
+
* @deprecated
|
|
16614
16630
|
* @throws {RequiredError}
|
|
16615
16631
|
* @memberof PatientsApi
|
|
16616
16632
|
*/
|
|
@@ -17076,7 +17092,7 @@ var ProfilesApiAxiosParamCreator = function (configuration) {
|
|
|
17076
17092
|
},
|
|
17077
17093
|
/**
|
|
17078
17094
|
*
|
|
17079
|
-
* @summary
|
|
17095
|
+
* @summary Confirm email.
|
|
17080
17096
|
* @param {ConfirmEmailCommand} [confirmEmailCommand]
|
|
17081
17097
|
* @param {*} [options] Override http request option.
|
|
17082
17098
|
* @throws {RequiredError}
|
|
@@ -17155,6 +17171,91 @@ var ProfilesApiAxiosParamCreator = function (configuration) {
|
|
|
17155
17171
|
});
|
|
17156
17172
|
});
|
|
17157
17173
|
},
|
|
17174
|
+
/**
|
|
17175
|
+
*
|
|
17176
|
+
* @summary Create a Profile.
|
|
17177
|
+
* @param {CreateProfileCommand} [createProfileCommand]
|
|
17178
|
+
* @param {*} [options] Override http request option.
|
|
17179
|
+
* @throws {RequiredError}
|
|
17180
|
+
*/
|
|
17181
|
+
apiV2ProfilesPost: function (createProfileCommand, options) {
|
|
17182
|
+
if (options === void 0) { options = {}; }
|
|
17183
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
17184
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17185
|
+
return __generator(this, function (_a) {
|
|
17186
|
+
switch (_a.label) {
|
|
17187
|
+
case 0:
|
|
17188
|
+
localVarPath = "/api/v2/profiles";
|
|
17189
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17190
|
+
if (configuration) {
|
|
17191
|
+
baseOptions = configuration.baseOptions;
|
|
17192
|
+
}
|
|
17193
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
17194
|
+
localVarHeaderParameter = {};
|
|
17195
|
+
localVarQueryParameter = {};
|
|
17196
|
+
// authentication oauth2 required
|
|
17197
|
+
// oauth required
|
|
17198
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
17199
|
+
case 1:
|
|
17200
|
+
// authentication oauth2 required
|
|
17201
|
+
// oauth required
|
|
17202
|
+
_a.sent();
|
|
17203
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17204
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17205
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17206
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17207
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createProfileCommand, localVarRequestOptions, configuration);
|
|
17208
|
+
return [2 /*return*/, {
|
|
17209
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17210
|
+
options: localVarRequestOptions,
|
|
17211
|
+
}];
|
|
17212
|
+
}
|
|
17213
|
+
});
|
|
17214
|
+
});
|
|
17215
|
+
},
|
|
17216
|
+
/**
|
|
17217
|
+
*
|
|
17218
|
+
* @summary Delete Profile.
|
|
17219
|
+
* @param {string} profileId
|
|
17220
|
+
* @param {*} [options] Override http request option.
|
|
17221
|
+
* @throws {RequiredError}
|
|
17222
|
+
*/
|
|
17223
|
+
apiV2ProfilesProfileIdDelete: function (profileId, options) {
|
|
17224
|
+
if (options === void 0) { options = {}; }
|
|
17225
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
17226
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17227
|
+
return __generator(this, function (_a) {
|
|
17228
|
+
switch (_a.label) {
|
|
17229
|
+
case 0:
|
|
17230
|
+
// verify required parameter 'profileId' is not null or undefined
|
|
17231
|
+
(0, common_1.assertParamExists)('apiV2ProfilesProfileIdDelete', 'profileId', profileId);
|
|
17232
|
+
localVarPath = "/api/v2/profiles/{profileId}"
|
|
17233
|
+
.replace("{".concat("profileId", "}"), encodeURIComponent(String(profileId)));
|
|
17234
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17235
|
+
if (configuration) {
|
|
17236
|
+
baseOptions = configuration.baseOptions;
|
|
17237
|
+
}
|
|
17238
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
17239
|
+
localVarHeaderParameter = {};
|
|
17240
|
+
localVarQueryParameter = {};
|
|
17241
|
+
// authentication oauth2 required
|
|
17242
|
+
// oauth required
|
|
17243
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
17244
|
+
case 1:
|
|
17245
|
+
// authentication oauth2 required
|
|
17246
|
+
// oauth required
|
|
17247
|
+
_a.sent();
|
|
17248
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17249
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17250
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17251
|
+
return [2 /*return*/, {
|
|
17252
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17253
|
+
options: localVarRequestOptions,
|
|
17254
|
+
}];
|
|
17255
|
+
}
|
|
17256
|
+
});
|
|
17257
|
+
});
|
|
17258
|
+
},
|
|
17158
17259
|
/**
|
|
17159
17260
|
*
|
|
17160
17261
|
* @summary Update Profile.
|
|
@@ -17229,7 +17330,7 @@ var ProfilesApiFp = function (configuration) {
|
|
|
17229
17330
|
},
|
|
17230
17331
|
/**
|
|
17231
17332
|
*
|
|
17232
|
-
* @summary
|
|
17333
|
+
* @summary Confirm email.
|
|
17233
17334
|
* @param {ConfirmEmailCommand} [confirmEmailCommand]
|
|
17234
17335
|
* @param {*} [options] Override http request option.
|
|
17235
17336
|
* @throws {RequiredError}
|
|
@@ -17266,6 +17367,46 @@ var ProfilesApiFp = function (configuration) {
|
|
|
17266
17367
|
});
|
|
17267
17368
|
});
|
|
17268
17369
|
},
|
|
17370
|
+
/**
|
|
17371
|
+
*
|
|
17372
|
+
* @summary Create a Profile.
|
|
17373
|
+
* @param {CreateProfileCommand} [createProfileCommand]
|
|
17374
|
+
* @param {*} [options] Override http request option.
|
|
17375
|
+
* @throws {RequiredError}
|
|
17376
|
+
*/
|
|
17377
|
+
apiV2ProfilesPost: function (createProfileCommand, options) {
|
|
17378
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17379
|
+
var localVarAxiosArgs;
|
|
17380
|
+
return __generator(this, function (_a) {
|
|
17381
|
+
switch (_a.label) {
|
|
17382
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ProfilesPost(createProfileCommand, options)];
|
|
17383
|
+
case 1:
|
|
17384
|
+
localVarAxiosArgs = _a.sent();
|
|
17385
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
17386
|
+
}
|
|
17387
|
+
});
|
|
17388
|
+
});
|
|
17389
|
+
},
|
|
17390
|
+
/**
|
|
17391
|
+
*
|
|
17392
|
+
* @summary Delete Profile.
|
|
17393
|
+
* @param {string} profileId
|
|
17394
|
+
* @param {*} [options] Override http request option.
|
|
17395
|
+
* @throws {RequiredError}
|
|
17396
|
+
*/
|
|
17397
|
+
apiV2ProfilesProfileIdDelete: function (profileId, options) {
|
|
17398
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17399
|
+
var localVarAxiosArgs;
|
|
17400
|
+
return __generator(this, function (_a) {
|
|
17401
|
+
switch (_a.label) {
|
|
17402
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ProfilesProfileIdDelete(profileId, options)];
|
|
17403
|
+
case 1:
|
|
17404
|
+
localVarAxiosArgs = _a.sent();
|
|
17405
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
17406
|
+
}
|
|
17407
|
+
});
|
|
17408
|
+
});
|
|
17409
|
+
},
|
|
17269
17410
|
/**
|
|
17270
17411
|
*
|
|
17271
17412
|
* @summary Update Profile.
|
|
@@ -17308,7 +17449,7 @@ var ProfilesApiFactory = function (configuration, basePath, axios) {
|
|
|
17308
17449
|
},
|
|
17309
17450
|
/**
|
|
17310
17451
|
*
|
|
17311
|
-
* @summary
|
|
17452
|
+
* @summary Confirm email.
|
|
17312
17453
|
* @param {ConfirmEmailCommand} [confirmEmailCommand]
|
|
17313
17454
|
* @param {*} [options] Override http request option.
|
|
17314
17455
|
* @throws {RequiredError}
|
|
@@ -17325,6 +17466,26 @@ var ProfilesApiFactory = function (configuration, basePath, axios) {
|
|
|
17325
17466
|
apiV2ProfilesGet: function (options) {
|
|
17326
17467
|
return localVarFp.apiV2ProfilesGet(options).then(function (request) { return request(axios, basePath); });
|
|
17327
17468
|
},
|
|
17469
|
+
/**
|
|
17470
|
+
*
|
|
17471
|
+
* @summary Create a Profile.
|
|
17472
|
+
* @param {CreateProfileCommand} [createProfileCommand]
|
|
17473
|
+
* @param {*} [options] Override http request option.
|
|
17474
|
+
* @throws {RequiredError}
|
|
17475
|
+
*/
|
|
17476
|
+
apiV2ProfilesPost: function (createProfileCommand, options) {
|
|
17477
|
+
return localVarFp.apiV2ProfilesPost(createProfileCommand, options).then(function (request) { return request(axios, basePath); });
|
|
17478
|
+
},
|
|
17479
|
+
/**
|
|
17480
|
+
*
|
|
17481
|
+
* @summary Delete Profile.
|
|
17482
|
+
* @param {string} profileId
|
|
17483
|
+
* @param {*} [options] Override http request option.
|
|
17484
|
+
* @throws {RequiredError}
|
|
17485
|
+
*/
|
|
17486
|
+
apiV2ProfilesProfileIdDelete: function (profileId, options) {
|
|
17487
|
+
return localVarFp.apiV2ProfilesProfileIdDelete(profileId, options).then(function (request) { return request(axios, basePath); });
|
|
17488
|
+
},
|
|
17328
17489
|
/**
|
|
17329
17490
|
*
|
|
17330
17491
|
* @summary Update Profile.
|
|
@@ -17363,7 +17524,7 @@ var ProfilesApi = /** @class */ (function (_super) {
|
|
|
17363
17524
|
};
|
|
17364
17525
|
/**
|
|
17365
17526
|
*
|
|
17366
|
-
* @summary
|
|
17527
|
+
* @summary Confirm email.
|
|
17367
17528
|
* @param {ConfirmEmailCommand} [confirmEmailCommand]
|
|
17368
17529
|
* @param {*} [options] Override http request option.
|
|
17369
17530
|
* @throws {RequiredError}
|
|
@@ -17384,6 +17545,30 @@ var ProfilesApi = /** @class */ (function (_super) {
|
|
|
17384
17545
|
var _this = this;
|
|
17385
17546
|
return (0, exports.ProfilesApiFp)(this.configuration).apiV2ProfilesGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17386
17547
|
};
|
|
17548
|
+
/**
|
|
17549
|
+
*
|
|
17550
|
+
* @summary Create a Profile.
|
|
17551
|
+
* @param {CreateProfileCommand} [createProfileCommand]
|
|
17552
|
+
* @param {*} [options] Override http request option.
|
|
17553
|
+
* @throws {RequiredError}
|
|
17554
|
+
* @memberof ProfilesApi
|
|
17555
|
+
*/
|
|
17556
|
+
ProfilesApi.prototype.apiV2ProfilesPost = function (createProfileCommand, options) {
|
|
17557
|
+
var _this = this;
|
|
17558
|
+
return (0, exports.ProfilesApiFp)(this.configuration).apiV2ProfilesPost(createProfileCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17559
|
+
};
|
|
17560
|
+
/**
|
|
17561
|
+
*
|
|
17562
|
+
* @summary Delete Profile.
|
|
17563
|
+
* @param {string} profileId
|
|
17564
|
+
* @param {*} [options] Override http request option.
|
|
17565
|
+
* @throws {RequiredError}
|
|
17566
|
+
* @memberof ProfilesApi
|
|
17567
|
+
*/
|
|
17568
|
+
ProfilesApi.prototype.apiV2ProfilesProfileIdDelete = function (profileId, options) {
|
|
17569
|
+
var _this = this;
|
|
17570
|
+
return (0, exports.ProfilesApiFp)(this.configuration).apiV2ProfilesProfileIdDelete(profileId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17571
|
+
};
|
|
17387
17572
|
/**
|
|
17388
17573
|
*
|
|
17389
17574
|
* @summary Update Profile.
|