ch-api-client-typescript2 4.7.7 → 4.7.9
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 +340 -28
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +317 -33
- package/package.json +1 -1
- package/src/api.ts +474 -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
|
*
|
|
@@ -10635,6 +10635,53 @@ exports.FaqsApi = FaqsApi;
|
|
|
10635
10635
|
var GroupChannelsApiAxiosParamCreator = function (configuration) {
|
|
10636
10636
|
var _this = this;
|
|
10637
10637
|
return {
|
|
10638
|
+
/**
|
|
10639
|
+
*
|
|
10640
|
+
* @summary Invite hospital manager into GroupChannel
|
|
10641
|
+
* @param {string} channelUrl
|
|
10642
|
+
* @param {string} hospitalId
|
|
10643
|
+
* @param {*} [options] Override http request option.
|
|
10644
|
+
* @throws {RequiredError}
|
|
10645
|
+
*/
|
|
10646
|
+
apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost: function (channelUrl, hospitalId, options) {
|
|
10647
|
+
if (options === void 0) { options = {}; }
|
|
10648
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
10649
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10650
|
+
return __generator(this, function (_a) {
|
|
10651
|
+
switch (_a.label) {
|
|
10652
|
+
case 0:
|
|
10653
|
+
// verify required parameter 'channelUrl' is not null or undefined
|
|
10654
|
+
(0, common_1.assertParamExists)('apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost', 'channelUrl', channelUrl);
|
|
10655
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
10656
|
+
(0, common_1.assertParamExists)('apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost', 'hospitalId', hospitalId);
|
|
10657
|
+
localVarPath = "/api/v2/groupchannels/{channelUrl}/invite/{hospitalId}/manager"
|
|
10658
|
+
.replace("{".concat("channelUrl", "}"), encodeURIComponent(String(channelUrl)))
|
|
10659
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
10660
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10661
|
+
if (configuration) {
|
|
10662
|
+
baseOptions = configuration.baseOptions;
|
|
10663
|
+
}
|
|
10664
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
10665
|
+
localVarHeaderParameter = {};
|
|
10666
|
+
localVarQueryParameter = {};
|
|
10667
|
+
// authentication oauth2 required
|
|
10668
|
+
// oauth required
|
|
10669
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
10670
|
+
case 1:
|
|
10671
|
+
// authentication oauth2 required
|
|
10672
|
+
// oauth required
|
|
10673
|
+
_a.sent();
|
|
10674
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10675
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10676
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10677
|
+
return [2 /*return*/, {
|
|
10678
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10679
|
+
options: localVarRequestOptions,
|
|
10680
|
+
}];
|
|
10681
|
+
}
|
|
10682
|
+
});
|
|
10683
|
+
});
|
|
10684
|
+
},
|
|
10638
10685
|
/**
|
|
10639
10686
|
*
|
|
10640
10687
|
* @param {string} channelUrl
|
|
@@ -10836,6 +10883,27 @@ exports.GroupChannelsApiAxiosParamCreator = GroupChannelsApiAxiosParamCreator;
|
|
|
10836
10883
|
var GroupChannelsApiFp = function (configuration) {
|
|
10837
10884
|
var localVarAxiosParamCreator = (0, exports.GroupChannelsApiAxiosParamCreator)(configuration);
|
|
10838
10885
|
return {
|
|
10886
|
+
/**
|
|
10887
|
+
*
|
|
10888
|
+
* @summary Invite hospital manager into GroupChannel
|
|
10889
|
+
* @param {string} channelUrl
|
|
10890
|
+
* @param {string} hospitalId
|
|
10891
|
+
* @param {*} [options] Override http request option.
|
|
10892
|
+
* @throws {RequiredError}
|
|
10893
|
+
*/
|
|
10894
|
+
apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost: function (channelUrl, hospitalId, options) {
|
|
10895
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10896
|
+
var localVarAxiosArgs;
|
|
10897
|
+
return __generator(this, function (_a) {
|
|
10898
|
+
switch (_a.label) {
|
|
10899
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost(channelUrl, hospitalId, options)];
|
|
10900
|
+
case 1:
|
|
10901
|
+
localVarAxiosArgs = _a.sent();
|
|
10902
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
10903
|
+
}
|
|
10904
|
+
});
|
|
10905
|
+
});
|
|
10906
|
+
},
|
|
10839
10907
|
/**
|
|
10840
10908
|
*
|
|
10841
10909
|
* @param {string} channelUrl
|
|
@@ -10928,6 +10996,17 @@ exports.GroupChannelsApiFp = GroupChannelsApiFp;
|
|
|
10928
10996
|
var GroupChannelsApiFactory = function (configuration, basePath, axios) {
|
|
10929
10997
|
var localVarFp = (0, exports.GroupChannelsApiFp)(configuration);
|
|
10930
10998
|
return {
|
|
10999
|
+
/**
|
|
11000
|
+
*
|
|
11001
|
+
* @summary Invite hospital manager into GroupChannel
|
|
11002
|
+
* @param {string} channelUrl
|
|
11003
|
+
* @param {string} hospitalId
|
|
11004
|
+
* @param {*} [options] Override http request option.
|
|
11005
|
+
* @throws {RequiredError}
|
|
11006
|
+
*/
|
|
11007
|
+
apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost: function (channelUrl, hospitalId, options) {
|
|
11008
|
+
return localVarFp.apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost(channelUrl, hospitalId, options).then(function (request) { return request(axios, basePath); });
|
|
11009
|
+
},
|
|
10931
11010
|
/**
|
|
10932
11011
|
*
|
|
10933
11012
|
* @param {string} channelUrl
|
|
@@ -10984,6 +11063,19 @@ var GroupChannelsApi = /** @class */ (function (_super) {
|
|
|
10984
11063
|
function GroupChannelsApi() {
|
|
10985
11064
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
10986
11065
|
}
|
|
11066
|
+
/**
|
|
11067
|
+
*
|
|
11068
|
+
* @summary Invite hospital manager into GroupChannel
|
|
11069
|
+
* @param {string} channelUrl
|
|
11070
|
+
* @param {string} hospitalId
|
|
11071
|
+
* @param {*} [options] Override http request option.
|
|
11072
|
+
* @throws {RequiredError}
|
|
11073
|
+
* @memberof GroupChannelsApi
|
|
11074
|
+
*/
|
|
11075
|
+
GroupChannelsApi.prototype.apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost = function (channelUrl, hospitalId, options) {
|
|
11076
|
+
var _this = this;
|
|
11077
|
+
return (0, exports.GroupChannelsApiFp)(this.configuration).apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost(channelUrl, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11078
|
+
};
|
|
10987
11079
|
/**
|
|
10988
11080
|
*
|
|
10989
11081
|
* @param {string} channelUrl
|
|
@@ -16068,6 +16160,7 @@ var PatientsApiAxiosParamCreator = function (configuration) {
|
|
|
16068
16160
|
* @summary Delete Patient.
|
|
16069
16161
|
* @param {string} patientId
|
|
16070
16162
|
* @param {*} [options] Override http request option.
|
|
16163
|
+
* @deprecated
|
|
16071
16164
|
* @throws {RequiredError}
|
|
16072
16165
|
*/
|
|
16073
16166
|
apiV2PatientsPatientIdDelete: function (patientId, options) {
|
|
@@ -16111,6 +16204,7 @@ var PatientsApiAxiosParamCreator = function (configuration) {
|
|
|
16111
16204
|
* @summary Get Patient.
|
|
16112
16205
|
* @param {string} patientId
|
|
16113
16206
|
* @param {*} [options] Override http request option.
|
|
16207
|
+
* @deprecated
|
|
16114
16208
|
* @throws {RequiredError}
|
|
16115
16209
|
*/
|
|
16116
16210
|
apiV2PatientsPatientIdGet: function (patientId, options) {
|
|
@@ -16155,6 +16249,7 @@ var PatientsApiAxiosParamCreator = function (configuration) {
|
|
|
16155
16249
|
* @param {string} patientId
|
|
16156
16250
|
* @param {UpdatePatientCommand} [updatePatientCommand]
|
|
16157
16251
|
* @param {*} [options] Override http request option.
|
|
16252
|
+
* @deprecated
|
|
16158
16253
|
* @throws {RequiredError}
|
|
16159
16254
|
*/
|
|
16160
16255
|
apiV2PatientsPatientIdPut: function (patientId, updatePatientCommand, options) {
|
|
@@ -16200,6 +16295,7 @@ var PatientsApiAxiosParamCreator = function (configuration) {
|
|
|
16200
16295
|
* @summary Create a Patient.
|
|
16201
16296
|
* @param {CreatePatientCommand} [createPatientCommand]
|
|
16202
16297
|
* @param {*} [options] Override http request option.
|
|
16298
|
+
* @deprecated
|
|
16203
16299
|
* @throws {RequiredError}
|
|
16204
16300
|
*/
|
|
16205
16301
|
apiV2PatientsPost: function (createPatientCommand, options) {
|
|
@@ -16292,6 +16388,7 @@ var PatientsApiFp = function (configuration) {
|
|
|
16292
16388
|
* @summary Delete Patient.
|
|
16293
16389
|
* @param {string} patientId
|
|
16294
16390
|
* @param {*} [options] Override http request option.
|
|
16391
|
+
* @deprecated
|
|
16295
16392
|
* @throws {RequiredError}
|
|
16296
16393
|
*/
|
|
16297
16394
|
apiV2PatientsPatientIdDelete: function (patientId, options) {
|
|
@@ -16312,6 +16409,7 @@ var PatientsApiFp = function (configuration) {
|
|
|
16312
16409
|
* @summary Get Patient.
|
|
16313
16410
|
* @param {string} patientId
|
|
16314
16411
|
* @param {*} [options] Override http request option.
|
|
16412
|
+
* @deprecated
|
|
16315
16413
|
* @throws {RequiredError}
|
|
16316
16414
|
*/
|
|
16317
16415
|
apiV2PatientsPatientIdGet: function (patientId, options) {
|
|
@@ -16333,6 +16431,7 @@ var PatientsApiFp = function (configuration) {
|
|
|
16333
16431
|
* @param {string} patientId
|
|
16334
16432
|
* @param {UpdatePatientCommand} [updatePatientCommand]
|
|
16335
16433
|
* @param {*} [options] Override http request option.
|
|
16434
|
+
* @deprecated
|
|
16336
16435
|
* @throws {RequiredError}
|
|
16337
16436
|
*/
|
|
16338
16437
|
apiV2PatientsPatientIdPut: function (patientId, updatePatientCommand, options) {
|
|
@@ -16353,6 +16452,7 @@ var PatientsApiFp = function (configuration) {
|
|
|
16353
16452
|
* @summary Create a Patient.
|
|
16354
16453
|
* @param {CreatePatientCommand} [createPatientCommand]
|
|
16355
16454
|
* @param {*} [options] Override http request option.
|
|
16455
|
+
* @deprecated
|
|
16356
16456
|
* @throws {RequiredError}
|
|
16357
16457
|
*/
|
|
16358
16458
|
apiV2PatientsPost: function (createPatientCommand, options) {
|
|
@@ -16403,6 +16503,7 @@ var PatientsApiFactory = function (configuration, basePath, axios) {
|
|
|
16403
16503
|
* @summary Delete Patient.
|
|
16404
16504
|
* @param {string} patientId
|
|
16405
16505
|
* @param {*} [options] Override http request option.
|
|
16506
|
+
* @deprecated
|
|
16406
16507
|
* @throws {RequiredError}
|
|
16407
16508
|
*/
|
|
16408
16509
|
apiV2PatientsPatientIdDelete: function (patientId, options) {
|
|
@@ -16413,6 +16514,7 @@ var PatientsApiFactory = function (configuration, basePath, axios) {
|
|
|
16413
16514
|
* @summary Get Patient.
|
|
16414
16515
|
* @param {string} patientId
|
|
16415
16516
|
* @param {*} [options] Override http request option.
|
|
16517
|
+
* @deprecated
|
|
16416
16518
|
* @throws {RequiredError}
|
|
16417
16519
|
*/
|
|
16418
16520
|
apiV2PatientsPatientIdGet: function (patientId, options) {
|
|
@@ -16424,6 +16526,7 @@ var PatientsApiFactory = function (configuration, basePath, axios) {
|
|
|
16424
16526
|
* @param {string} patientId
|
|
16425
16527
|
* @param {UpdatePatientCommand} [updatePatientCommand]
|
|
16426
16528
|
* @param {*} [options] Override http request option.
|
|
16529
|
+
* @deprecated
|
|
16427
16530
|
* @throws {RequiredError}
|
|
16428
16531
|
*/
|
|
16429
16532
|
apiV2PatientsPatientIdPut: function (patientId, updatePatientCommand, options) {
|
|
@@ -16434,6 +16537,7 @@ var PatientsApiFactory = function (configuration, basePath, axios) {
|
|
|
16434
16537
|
* @summary Create a Patient.
|
|
16435
16538
|
* @param {CreatePatientCommand} [createPatientCommand]
|
|
16436
16539
|
* @param {*} [options] Override http request option.
|
|
16540
|
+
* @deprecated
|
|
16437
16541
|
* @throws {RequiredError}
|
|
16438
16542
|
*/
|
|
16439
16543
|
apiV2PatientsPost: function (createPatientCommand, options) {
|
|
@@ -16482,6 +16586,7 @@ var PatientsApi = /** @class */ (function (_super) {
|
|
|
16482
16586
|
* @summary Delete Patient.
|
|
16483
16587
|
* @param {string} patientId
|
|
16484
16588
|
* @param {*} [options] Override http request option.
|
|
16589
|
+
* @deprecated
|
|
16485
16590
|
* @throws {RequiredError}
|
|
16486
16591
|
* @memberof PatientsApi
|
|
16487
16592
|
*/
|
|
@@ -16494,6 +16599,7 @@ var PatientsApi = /** @class */ (function (_super) {
|
|
|
16494
16599
|
* @summary Get Patient.
|
|
16495
16600
|
* @param {string} patientId
|
|
16496
16601
|
* @param {*} [options] Override http request option.
|
|
16602
|
+
* @deprecated
|
|
16497
16603
|
* @throws {RequiredError}
|
|
16498
16604
|
* @memberof PatientsApi
|
|
16499
16605
|
*/
|
|
@@ -16507,6 +16613,7 @@ var PatientsApi = /** @class */ (function (_super) {
|
|
|
16507
16613
|
* @param {string} patientId
|
|
16508
16614
|
* @param {UpdatePatientCommand} [updatePatientCommand]
|
|
16509
16615
|
* @param {*} [options] Override http request option.
|
|
16616
|
+
* @deprecated
|
|
16510
16617
|
* @throws {RequiredError}
|
|
16511
16618
|
* @memberof PatientsApi
|
|
16512
16619
|
*/
|
|
@@ -16519,6 +16626,7 @@ var PatientsApi = /** @class */ (function (_super) {
|
|
|
16519
16626
|
* @summary Create a Patient.
|
|
16520
16627
|
* @param {CreatePatientCommand} [createPatientCommand]
|
|
16521
16628
|
* @param {*} [options] Override http request option.
|
|
16629
|
+
* @deprecated
|
|
16522
16630
|
* @throws {RequiredError}
|
|
16523
16631
|
* @memberof PatientsApi
|
|
16524
16632
|
*/
|
|
@@ -16984,7 +17092,7 @@ var ProfilesApiAxiosParamCreator = function (configuration) {
|
|
|
16984
17092
|
},
|
|
16985
17093
|
/**
|
|
16986
17094
|
*
|
|
16987
|
-
* @summary
|
|
17095
|
+
* @summary Confirm email.
|
|
16988
17096
|
* @param {ConfirmEmailCommand} [confirmEmailCommand]
|
|
16989
17097
|
* @param {*} [options] Override http request option.
|
|
16990
17098
|
* @throws {RequiredError}
|
|
@@ -17063,6 +17171,95 @@ var ProfilesApiAxiosParamCreator = function (configuration) {
|
|
|
17063
17171
|
});
|
|
17064
17172
|
});
|
|
17065
17173
|
},
|
|
17174
|
+
/**
|
|
17175
|
+
*
|
|
17176
|
+
* @summary Delete Profile.
|
|
17177
|
+
* @param {string} profileId
|
|
17178
|
+
* @param {string} patientId
|
|
17179
|
+
* @param {*} [options] Override http request option.
|
|
17180
|
+
* @throws {RequiredError}
|
|
17181
|
+
*/
|
|
17182
|
+
apiV2ProfilesPatientIdDelete: function (profileId, patientId, options) {
|
|
17183
|
+
if (options === void 0) { options = {}; }
|
|
17184
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
17185
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17186
|
+
return __generator(this, function (_a) {
|
|
17187
|
+
switch (_a.label) {
|
|
17188
|
+
case 0:
|
|
17189
|
+
// verify required parameter 'profileId' is not null or undefined
|
|
17190
|
+
(0, common_1.assertParamExists)('apiV2ProfilesPatientIdDelete', 'profileId', profileId);
|
|
17191
|
+
// verify required parameter 'patientId' is not null or undefined
|
|
17192
|
+
(0, common_1.assertParamExists)('apiV2ProfilesPatientIdDelete', 'patientId', patientId);
|
|
17193
|
+
localVarPath = "/api/v2/profiles/{patientId}"
|
|
17194
|
+
.replace("{".concat("profileId", "}"), encodeURIComponent(String(profileId)))
|
|
17195
|
+
.replace("{".concat("patientId", "}"), encodeURIComponent(String(patientId)));
|
|
17196
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17197
|
+
if (configuration) {
|
|
17198
|
+
baseOptions = configuration.baseOptions;
|
|
17199
|
+
}
|
|
17200
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
17201
|
+
localVarHeaderParameter = {};
|
|
17202
|
+
localVarQueryParameter = {};
|
|
17203
|
+
// authentication oauth2 required
|
|
17204
|
+
// oauth required
|
|
17205
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
17206
|
+
case 1:
|
|
17207
|
+
// authentication oauth2 required
|
|
17208
|
+
// oauth required
|
|
17209
|
+
_a.sent();
|
|
17210
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17211
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17212
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17213
|
+
return [2 /*return*/, {
|
|
17214
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17215
|
+
options: localVarRequestOptions,
|
|
17216
|
+
}];
|
|
17217
|
+
}
|
|
17218
|
+
});
|
|
17219
|
+
});
|
|
17220
|
+
},
|
|
17221
|
+
/**
|
|
17222
|
+
*
|
|
17223
|
+
* @summary Create a Profile.
|
|
17224
|
+
* @param {CreateProfileCommand} [createProfileCommand]
|
|
17225
|
+
* @param {*} [options] Override http request option.
|
|
17226
|
+
* @throws {RequiredError}
|
|
17227
|
+
*/
|
|
17228
|
+
apiV2ProfilesPost: function (createProfileCommand, options) {
|
|
17229
|
+
if (options === void 0) { options = {}; }
|
|
17230
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
17231
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17232
|
+
return __generator(this, function (_a) {
|
|
17233
|
+
switch (_a.label) {
|
|
17234
|
+
case 0:
|
|
17235
|
+
localVarPath = "/api/v2/profiles";
|
|
17236
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17237
|
+
if (configuration) {
|
|
17238
|
+
baseOptions = configuration.baseOptions;
|
|
17239
|
+
}
|
|
17240
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
17241
|
+
localVarHeaderParameter = {};
|
|
17242
|
+
localVarQueryParameter = {};
|
|
17243
|
+
// authentication oauth2 required
|
|
17244
|
+
// oauth required
|
|
17245
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
17246
|
+
case 1:
|
|
17247
|
+
// authentication oauth2 required
|
|
17248
|
+
// oauth required
|
|
17249
|
+
_a.sent();
|
|
17250
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17251
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17252
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17253
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17254
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createProfileCommand, localVarRequestOptions, configuration);
|
|
17255
|
+
return [2 /*return*/, {
|
|
17256
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17257
|
+
options: localVarRequestOptions,
|
|
17258
|
+
}];
|
|
17259
|
+
}
|
|
17260
|
+
});
|
|
17261
|
+
});
|
|
17262
|
+
},
|
|
17066
17263
|
/**
|
|
17067
17264
|
*
|
|
17068
17265
|
* @summary Update Profile.
|
|
@@ -17137,7 +17334,7 @@ var ProfilesApiFp = function (configuration) {
|
|
|
17137
17334
|
},
|
|
17138
17335
|
/**
|
|
17139
17336
|
*
|
|
17140
|
-
* @summary
|
|
17337
|
+
* @summary Confirm email.
|
|
17141
17338
|
* @param {ConfirmEmailCommand} [confirmEmailCommand]
|
|
17142
17339
|
* @param {*} [options] Override http request option.
|
|
17143
17340
|
* @throws {RequiredError}
|
|
@@ -17174,6 +17371,47 @@ var ProfilesApiFp = function (configuration) {
|
|
|
17174
17371
|
});
|
|
17175
17372
|
});
|
|
17176
17373
|
},
|
|
17374
|
+
/**
|
|
17375
|
+
*
|
|
17376
|
+
* @summary Delete Profile.
|
|
17377
|
+
* @param {string} profileId
|
|
17378
|
+
* @param {string} patientId
|
|
17379
|
+
* @param {*} [options] Override http request option.
|
|
17380
|
+
* @throws {RequiredError}
|
|
17381
|
+
*/
|
|
17382
|
+
apiV2ProfilesPatientIdDelete: function (profileId, patientId, options) {
|
|
17383
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17384
|
+
var localVarAxiosArgs;
|
|
17385
|
+
return __generator(this, function (_a) {
|
|
17386
|
+
switch (_a.label) {
|
|
17387
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ProfilesPatientIdDelete(profileId, patientId, options)];
|
|
17388
|
+
case 1:
|
|
17389
|
+
localVarAxiosArgs = _a.sent();
|
|
17390
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
17391
|
+
}
|
|
17392
|
+
});
|
|
17393
|
+
});
|
|
17394
|
+
},
|
|
17395
|
+
/**
|
|
17396
|
+
*
|
|
17397
|
+
* @summary Create a Profile.
|
|
17398
|
+
* @param {CreateProfileCommand} [createProfileCommand]
|
|
17399
|
+
* @param {*} [options] Override http request option.
|
|
17400
|
+
* @throws {RequiredError}
|
|
17401
|
+
*/
|
|
17402
|
+
apiV2ProfilesPost: function (createProfileCommand, options) {
|
|
17403
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17404
|
+
var localVarAxiosArgs;
|
|
17405
|
+
return __generator(this, function (_a) {
|
|
17406
|
+
switch (_a.label) {
|
|
17407
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ProfilesPost(createProfileCommand, options)];
|
|
17408
|
+
case 1:
|
|
17409
|
+
localVarAxiosArgs = _a.sent();
|
|
17410
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
17411
|
+
}
|
|
17412
|
+
});
|
|
17413
|
+
});
|
|
17414
|
+
},
|
|
17177
17415
|
/**
|
|
17178
17416
|
*
|
|
17179
17417
|
* @summary Update Profile.
|
|
@@ -17216,7 +17454,7 @@ var ProfilesApiFactory = function (configuration, basePath, axios) {
|
|
|
17216
17454
|
},
|
|
17217
17455
|
/**
|
|
17218
17456
|
*
|
|
17219
|
-
* @summary
|
|
17457
|
+
* @summary Confirm email.
|
|
17220
17458
|
* @param {ConfirmEmailCommand} [confirmEmailCommand]
|
|
17221
17459
|
* @param {*} [options] Override http request option.
|
|
17222
17460
|
* @throws {RequiredError}
|
|
@@ -17233,6 +17471,27 @@ var ProfilesApiFactory = function (configuration, basePath, axios) {
|
|
|
17233
17471
|
apiV2ProfilesGet: function (options) {
|
|
17234
17472
|
return localVarFp.apiV2ProfilesGet(options).then(function (request) { return request(axios, basePath); });
|
|
17235
17473
|
},
|
|
17474
|
+
/**
|
|
17475
|
+
*
|
|
17476
|
+
* @summary Delete Profile.
|
|
17477
|
+
* @param {string} profileId
|
|
17478
|
+
* @param {string} patientId
|
|
17479
|
+
* @param {*} [options] Override http request option.
|
|
17480
|
+
* @throws {RequiredError}
|
|
17481
|
+
*/
|
|
17482
|
+
apiV2ProfilesPatientIdDelete: function (profileId, patientId, options) {
|
|
17483
|
+
return localVarFp.apiV2ProfilesPatientIdDelete(profileId, patientId, options).then(function (request) { return request(axios, basePath); });
|
|
17484
|
+
},
|
|
17485
|
+
/**
|
|
17486
|
+
*
|
|
17487
|
+
* @summary Create a Profile.
|
|
17488
|
+
* @param {CreateProfileCommand} [createProfileCommand]
|
|
17489
|
+
* @param {*} [options] Override http request option.
|
|
17490
|
+
* @throws {RequiredError}
|
|
17491
|
+
*/
|
|
17492
|
+
apiV2ProfilesPost: function (createProfileCommand, options) {
|
|
17493
|
+
return localVarFp.apiV2ProfilesPost(createProfileCommand, options).then(function (request) { return request(axios, basePath); });
|
|
17494
|
+
},
|
|
17236
17495
|
/**
|
|
17237
17496
|
*
|
|
17238
17497
|
* @summary Update Profile.
|
|
@@ -17271,7 +17530,7 @@ var ProfilesApi = /** @class */ (function (_super) {
|
|
|
17271
17530
|
};
|
|
17272
17531
|
/**
|
|
17273
17532
|
*
|
|
17274
|
-
* @summary
|
|
17533
|
+
* @summary Confirm email.
|
|
17275
17534
|
* @param {ConfirmEmailCommand} [confirmEmailCommand]
|
|
17276
17535
|
* @param {*} [options] Override http request option.
|
|
17277
17536
|
* @throws {RequiredError}
|
|
@@ -17292,6 +17551,31 @@ var ProfilesApi = /** @class */ (function (_super) {
|
|
|
17292
17551
|
var _this = this;
|
|
17293
17552
|
return (0, exports.ProfilesApiFp)(this.configuration).apiV2ProfilesGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17294
17553
|
};
|
|
17554
|
+
/**
|
|
17555
|
+
*
|
|
17556
|
+
* @summary Delete Profile.
|
|
17557
|
+
* @param {string} profileId
|
|
17558
|
+
* @param {string} patientId
|
|
17559
|
+
* @param {*} [options] Override http request option.
|
|
17560
|
+
* @throws {RequiredError}
|
|
17561
|
+
* @memberof ProfilesApi
|
|
17562
|
+
*/
|
|
17563
|
+
ProfilesApi.prototype.apiV2ProfilesPatientIdDelete = function (profileId, patientId, options) {
|
|
17564
|
+
var _this = this;
|
|
17565
|
+
return (0, exports.ProfilesApiFp)(this.configuration).apiV2ProfilesPatientIdDelete(profileId, patientId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17566
|
+
};
|
|
17567
|
+
/**
|
|
17568
|
+
*
|
|
17569
|
+
* @summary Create a Profile.
|
|
17570
|
+
* @param {CreateProfileCommand} [createProfileCommand]
|
|
17571
|
+
* @param {*} [options] Override http request option.
|
|
17572
|
+
* @throws {RequiredError}
|
|
17573
|
+
* @memberof ProfilesApi
|
|
17574
|
+
*/
|
|
17575
|
+
ProfilesApi.prototype.apiV2ProfilesPost = function (createProfileCommand, options) {
|
|
17576
|
+
var _this = this;
|
|
17577
|
+
return (0, exports.ProfilesApiFp)(this.configuration).apiV2ProfilesPost(createProfileCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17578
|
+
};
|
|
17295
17579
|
/**
|
|
17296
17580
|
*
|
|
17297
17581
|
* @summary Update Profile.
|