ch-admin-api-client-typescript 3.1.3 → 3.2.0
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 +464 -13
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +907 -175
- package/package.json +1 -1
- package/src/api.ts +965 -165
package/lib/api.js
CHANGED
|
@@ -293,6 +293,7 @@ var SnsType;
|
|
|
293
293
|
SnsType["Instagram"] = "Instagram";
|
|
294
294
|
SnsType["LinkedIn"] = "LinkedIn";
|
|
295
295
|
SnsType["Youtube"] = "Youtube";
|
|
296
|
+
SnsType["KakaoTalk"] = "KakaoTalk";
|
|
296
297
|
})(SnsType = exports.SnsType || (exports.SnsType = {}));
|
|
297
298
|
/**
|
|
298
299
|
*
|
|
@@ -17611,10 +17612,11 @@ exports.FaqsApiAxiosParamCreator = function (configuration) {
|
|
|
17611
17612
|
*
|
|
17612
17613
|
* @summary Delete faq.
|
|
17613
17614
|
* @param {string} faqId
|
|
17615
|
+
* @param {boolean} [forceDelete]
|
|
17614
17616
|
* @param {*} [options] Override http request option.
|
|
17615
17617
|
* @throws {RequiredError}
|
|
17616
17618
|
*/
|
|
17617
|
-
apiV1FaqsFaqIdDelete: function (faqId, options) {
|
|
17619
|
+
apiV1FaqsFaqIdDelete: function (faqId, forceDelete, options) {
|
|
17618
17620
|
if (options === void 0) { options = {}; }
|
|
17619
17621
|
return __awaiter(_this, void 0, void 0, function () {
|
|
17620
17622
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -17639,6 +17641,9 @@ exports.FaqsApiAxiosParamCreator = function (configuration) {
|
|
|
17639
17641
|
// authentication oauth2 required
|
|
17640
17642
|
// oauth required
|
|
17641
17643
|
_a.sent();
|
|
17644
|
+
if (forceDelete !== undefined) {
|
|
17645
|
+
localVarQueryParameter['forceDelete'] = forceDelete;
|
|
17646
|
+
}
|
|
17642
17647
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17643
17648
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17644
17649
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -18193,15 +18198,16 @@ exports.FaqsApiFp = function (configuration) {
|
|
|
18193
18198
|
*
|
|
18194
18199
|
* @summary Delete faq.
|
|
18195
18200
|
* @param {string} faqId
|
|
18201
|
+
* @param {boolean} [forceDelete]
|
|
18196
18202
|
* @param {*} [options] Override http request option.
|
|
18197
18203
|
* @throws {RequiredError}
|
|
18198
18204
|
*/
|
|
18199
|
-
apiV1FaqsFaqIdDelete: function (faqId, options) {
|
|
18205
|
+
apiV1FaqsFaqIdDelete: function (faqId, forceDelete, options) {
|
|
18200
18206
|
return __awaiter(this, void 0, void 0, function () {
|
|
18201
18207
|
var localVarAxiosArgs;
|
|
18202
18208
|
return __generator(this, function (_a) {
|
|
18203
18209
|
switch (_a.label) {
|
|
18204
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdDelete(faqId, options)];
|
|
18210
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdDelete(faqId, forceDelete, options)];
|
|
18205
18211
|
case 1:
|
|
18206
18212
|
localVarAxiosArgs = _a.sent();
|
|
18207
18213
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -18447,11 +18453,12 @@ exports.FaqsApiFactory = function (configuration, basePath, axios) {
|
|
|
18447
18453
|
*
|
|
18448
18454
|
* @summary Delete faq.
|
|
18449
18455
|
* @param {string} faqId
|
|
18456
|
+
* @param {boolean} [forceDelete]
|
|
18450
18457
|
* @param {*} [options] Override http request option.
|
|
18451
18458
|
* @throws {RequiredError}
|
|
18452
18459
|
*/
|
|
18453
|
-
apiV1FaqsFaqIdDelete: function (faqId, options) {
|
|
18454
|
-
return localVarFp.apiV1FaqsFaqIdDelete(faqId, options).then(function (request) { return request(axios, basePath); });
|
|
18460
|
+
apiV1FaqsFaqIdDelete: function (faqId, forceDelete, options) {
|
|
18461
|
+
return localVarFp.apiV1FaqsFaqIdDelete(faqId, forceDelete, options).then(function (request) { return request(axios, basePath); });
|
|
18455
18462
|
},
|
|
18456
18463
|
/**
|
|
18457
18464
|
*
|
|
@@ -18595,13 +18602,14 @@ var FaqsApi = /** @class */ (function (_super) {
|
|
|
18595
18602
|
*
|
|
18596
18603
|
* @summary Delete faq.
|
|
18597
18604
|
* @param {string} faqId
|
|
18605
|
+
* @param {boolean} [forceDelete]
|
|
18598
18606
|
* @param {*} [options] Override http request option.
|
|
18599
18607
|
* @throws {RequiredError}
|
|
18600
18608
|
* @memberof FaqsApi
|
|
18601
18609
|
*/
|
|
18602
|
-
FaqsApi.prototype.apiV1FaqsFaqIdDelete = function (faqId, options) {
|
|
18610
|
+
FaqsApi.prototype.apiV1FaqsFaqIdDelete = function (faqId, forceDelete, options) {
|
|
18603
18611
|
var _this = this;
|
|
18604
|
-
return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdDelete(faqId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18612
|
+
return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdDelete(faqId, forceDelete, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18605
18613
|
};
|
|
18606
18614
|
/**
|
|
18607
18615
|
*
|
|
@@ -20647,13 +20655,18 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20647
20655
|
},
|
|
20648
20656
|
/**
|
|
20649
20657
|
*
|
|
20650
|
-
* @summary
|
|
20658
|
+
* @summary Get all HospitalServiceMedias.
|
|
20651
20659
|
* @param {string} hospitalId
|
|
20652
|
-
* @param {
|
|
20660
|
+
* @param {string} hospitalSpecialtyId
|
|
20661
|
+
* @param {string} [id]
|
|
20662
|
+
* @param {MediaType} [mediaType]
|
|
20663
|
+
* @param {number} [page]
|
|
20664
|
+
* @param {number} [limit]
|
|
20665
|
+
* @param {Date} [lastRetrieved]
|
|
20653
20666
|
* @param {*} [options] Override http request option.
|
|
20654
20667
|
* @throws {RequiredError}
|
|
20655
20668
|
*/
|
|
20656
|
-
|
|
20669
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
20657
20670
|
if (options === void 0) { options = {}; }
|
|
20658
20671
|
return __awaiter(_this, void 0, void 0, function () {
|
|
20659
20672
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -20661,14 +20674,17 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20661
20674
|
switch (_a.label) {
|
|
20662
20675
|
case 0:
|
|
20663
20676
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
20664
|
-
common_1.assertParamExists('
|
|
20665
|
-
|
|
20666
|
-
|
|
20677
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalId', hospitalId);
|
|
20678
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
20679
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
20680
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias"
|
|
20681
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
20682
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
20667
20683
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20668
20684
|
if (configuration) {
|
|
20669
20685
|
baseOptions = configuration.baseOptions;
|
|
20670
20686
|
}
|
|
20671
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
20687
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
20672
20688
|
localVarHeaderParameter = {};
|
|
20673
20689
|
localVarQueryParameter = {};
|
|
20674
20690
|
// authentication oauth2 required
|
|
@@ -20678,11 +20694,26 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20678
20694
|
// authentication oauth2 required
|
|
20679
20695
|
// oauth required
|
|
20680
20696
|
_a.sent();
|
|
20681
|
-
|
|
20697
|
+
if (id !== undefined) {
|
|
20698
|
+
localVarQueryParameter['Id'] = id;
|
|
20699
|
+
}
|
|
20700
|
+
if (mediaType !== undefined) {
|
|
20701
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
20702
|
+
}
|
|
20703
|
+
if (page !== undefined) {
|
|
20704
|
+
localVarQueryParameter['page'] = page;
|
|
20705
|
+
}
|
|
20706
|
+
if (limit !== undefined) {
|
|
20707
|
+
localVarQueryParameter['limit'] = limit;
|
|
20708
|
+
}
|
|
20709
|
+
if (lastRetrieved !== undefined) {
|
|
20710
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
20711
|
+
lastRetrieved.toISOString() :
|
|
20712
|
+
lastRetrieved;
|
|
20713
|
+
}
|
|
20682
20714
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20683
20715
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20684
20716
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20685
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalSpecialtyCommand, localVarRequestOptions, configuration);
|
|
20686
20717
|
return [2 /*return*/, {
|
|
20687
20718
|
url: common_1.toPathString(localVarUrlObj),
|
|
20688
20719
|
options: localVarRequestOptions,
|
|
@@ -20693,27 +20724,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20693
20724
|
},
|
|
20694
20725
|
/**
|
|
20695
20726
|
*
|
|
20696
|
-
* @summary
|
|
20727
|
+
* @summary Delete HospitalServiceMedia
|
|
20697
20728
|
* @param {string} hospitalId
|
|
20698
|
-
* @param {string}
|
|
20699
|
-
* @param {string}
|
|
20700
|
-
* @param {string} [specialtyId]
|
|
20701
|
-
* @param {string} [specialtyName]
|
|
20702
|
-
* @param {string} [specialtyTypeId]
|
|
20703
|
-
* @param {string} [hospitalSpecialtySlug]
|
|
20704
|
-
* @param {string} [title]
|
|
20705
|
-
* @param {MarketingType} [marketingType]
|
|
20706
|
-
* @param {string} [languageCode]
|
|
20707
|
-
* @param {boolean} [showHidden]
|
|
20708
|
-
* @param {boolean} [returnDefaultValue]
|
|
20709
|
-
* @param {boolean} [includeServices]
|
|
20710
|
-
* @param {number} [page]
|
|
20711
|
-
* @param {number} [limit]
|
|
20712
|
-
* @param {Date} [lastRetrieved]
|
|
20729
|
+
* @param {string} hospitalSpecialtyId
|
|
20730
|
+
* @param {string} mediaId
|
|
20713
20731
|
* @param {*} [options] Override http request option.
|
|
20714
20732
|
* @throws {RequiredError}
|
|
20715
20733
|
*/
|
|
20716
|
-
|
|
20734
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
|
|
20717
20735
|
if (options === void 0) { options = {}; }
|
|
20718
20736
|
return __awaiter(_this, void 0, void 0, function () {
|
|
20719
20737
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -20721,14 +20739,20 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20721
20739
|
switch (_a.label) {
|
|
20722
20740
|
case 0:
|
|
20723
20741
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
20724
|
-
common_1.assertParamExists('
|
|
20725
|
-
|
|
20726
|
-
|
|
20742
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'hospitalId', hospitalId);
|
|
20743
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
20744
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
20745
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
20746
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'mediaId', mediaId);
|
|
20747
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}"
|
|
20748
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
20749
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)))
|
|
20750
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
20727
20751
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20728
20752
|
if (configuration) {
|
|
20729
20753
|
baseOptions = configuration.baseOptions;
|
|
20730
20754
|
}
|
|
20731
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
20755
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
20732
20756
|
localVarHeaderParameter = {};
|
|
20733
20757
|
localVarQueryParameter = {};
|
|
20734
20758
|
// authentication oauth2 required
|
|
@@ -20738,53 +20762,6 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20738
20762
|
// authentication oauth2 required
|
|
20739
20763
|
// oauth required
|
|
20740
20764
|
_a.sent();
|
|
20741
|
-
if (hospitalName !== undefined) {
|
|
20742
|
-
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
20743
|
-
}
|
|
20744
|
-
if (hospitalSlug !== undefined) {
|
|
20745
|
-
localVarQueryParameter['HospitalSlug'] = hospitalSlug;
|
|
20746
|
-
}
|
|
20747
|
-
if (specialtyId !== undefined) {
|
|
20748
|
-
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
20749
|
-
}
|
|
20750
|
-
if (specialtyName !== undefined) {
|
|
20751
|
-
localVarQueryParameter['SpecialtyName'] = specialtyName;
|
|
20752
|
-
}
|
|
20753
|
-
if (specialtyTypeId !== undefined) {
|
|
20754
|
-
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
20755
|
-
}
|
|
20756
|
-
if (hospitalSpecialtySlug !== undefined) {
|
|
20757
|
-
localVarQueryParameter['HospitalSpecialtySlug'] = hospitalSpecialtySlug;
|
|
20758
|
-
}
|
|
20759
|
-
if (title !== undefined) {
|
|
20760
|
-
localVarQueryParameter['Title'] = title;
|
|
20761
|
-
}
|
|
20762
|
-
if (marketingType !== undefined) {
|
|
20763
|
-
localVarQueryParameter['MarketingType'] = marketingType;
|
|
20764
|
-
}
|
|
20765
|
-
if (languageCode !== undefined) {
|
|
20766
|
-
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
20767
|
-
}
|
|
20768
|
-
if (showHidden !== undefined) {
|
|
20769
|
-
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
20770
|
-
}
|
|
20771
|
-
if (returnDefaultValue !== undefined) {
|
|
20772
|
-
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
20773
|
-
}
|
|
20774
|
-
if (includeServices !== undefined) {
|
|
20775
|
-
localVarQueryParameter['IncludeServices'] = includeServices;
|
|
20776
|
-
}
|
|
20777
|
-
if (page !== undefined) {
|
|
20778
|
-
localVarQueryParameter['page'] = page;
|
|
20779
|
-
}
|
|
20780
|
-
if (limit !== undefined) {
|
|
20781
|
-
localVarQueryParameter['limit'] = limit;
|
|
20782
|
-
}
|
|
20783
|
-
if (lastRetrieved !== undefined) {
|
|
20784
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
20785
|
-
lastRetrieved.toISOString() :
|
|
20786
|
-
lastRetrieved;
|
|
20787
|
-
}
|
|
20788
20765
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20789
20766
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20790
20767
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -20798,13 +20775,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20798
20775
|
},
|
|
20799
20776
|
/**
|
|
20800
20777
|
*
|
|
20801
|
-
* @summary
|
|
20778
|
+
* @summary Get HospitalServiceMedia.
|
|
20802
20779
|
* @param {string} hospitalId
|
|
20803
|
-
* @param {string}
|
|
20780
|
+
* @param {string} hospitalSpecialtyId
|
|
20781
|
+
* @param {string} mediaId
|
|
20804
20782
|
* @param {*} [options] Override http request option.
|
|
20805
20783
|
* @throws {RequiredError}
|
|
20806
20784
|
*/
|
|
20807
|
-
|
|
20785
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
|
|
20808
20786
|
if (options === void 0) { options = {}; }
|
|
20809
20787
|
return __awaiter(_this, void 0, void 0, function () {
|
|
20810
20788
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -20812,17 +20790,20 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20812
20790
|
switch (_a.label) {
|
|
20813
20791
|
case 0:
|
|
20814
20792
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
20815
|
-
common_1.assertParamExists('
|
|
20816
|
-
// verify required parameter '
|
|
20817
|
-
common_1.assertParamExists('
|
|
20818
|
-
|
|
20793
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalId', hospitalId);
|
|
20794
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
20795
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
20796
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
20797
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'mediaId', mediaId);
|
|
20798
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}"
|
|
20819
20799
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
20820
|
-
.replace("{" + "
|
|
20800
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)))
|
|
20801
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
20821
20802
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20822
20803
|
if (configuration) {
|
|
20823
20804
|
baseOptions = configuration.baseOptions;
|
|
20824
20805
|
}
|
|
20825
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
20806
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
20826
20807
|
localVarHeaderParameter = {};
|
|
20827
20808
|
localVarQueryParameter = {};
|
|
20828
20809
|
// authentication oauth2 required
|
|
@@ -20845,16 +20826,15 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20845
20826
|
},
|
|
20846
20827
|
/**
|
|
20847
20828
|
*
|
|
20848
|
-
* @summary
|
|
20829
|
+
* @summary Update HospitalServiceMedia.
|
|
20849
20830
|
* @param {string} hospitalId
|
|
20850
|
-
* @param {string}
|
|
20851
|
-
* @param {string}
|
|
20852
|
-
* @param {
|
|
20853
|
-
* @param {boolean} [includeServices]
|
|
20831
|
+
* @param {string} hospitalSpecialtyId
|
|
20832
|
+
* @param {string} mediaId
|
|
20833
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
20854
20834
|
* @param {*} [options] Override http request option.
|
|
20855
20835
|
* @throws {RequiredError}
|
|
20856
20836
|
*/
|
|
20857
|
-
|
|
20837
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut: function (hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options) {
|
|
20858
20838
|
if (options === void 0) { options = {}; }
|
|
20859
20839
|
return __awaiter(_this, void 0, void 0, function () {
|
|
20860
20840
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -20862,17 +20842,20 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20862
20842
|
switch (_a.label) {
|
|
20863
20843
|
case 0:
|
|
20864
20844
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
20865
|
-
common_1.assertParamExists('
|
|
20866
|
-
// verify required parameter '
|
|
20867
|
-
common_1.assertParamExists('
|
|
20868
|
-
|
|
20845
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'hospitalId', hospitalId);
|
|
20846
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
20847
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
20848
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
20849
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'mediaId', mediaId);
|
|
20850
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}"
|
|
20869
20851
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
20870
|
-
.replace("{" + "
|
|
20852
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)))
|
|
20853
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
20871
20854
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20872
20855
|
if (configuration) {
|
|
20873
20856
|
baseOptions = configuration.baseOptions;
|
|
20874
20857
|
}
|
|
20875
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
20858
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
20876
20859
|
localVarHeaderParameter = {};
|
|
20877
20860
|
localVarQueryParameter = {};
|
|
20878
20861
|
// authentication oauth2 required
|
|
@@ -20882,18 +20865,11 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20882
20865
|
// authentication oauth2 required
|
|
20883
20866
|
// oauth required
|
|
20884
20867
|
_a.sent();
|
|
20885
|
-
|
|
20886
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
20887
|
-
}
|
|
20888
|
-
if (returnDefaultValue !== undefined) {
|
|
20889
|
-
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
20890
|
-
}
|
|
20891
|
-
if (includeServices !== undefined) {
|
|
20892
|
-
localVarQueryParameter['includeServices'] = includeServices;
|
|
20893
|
-
}
|
|
20868
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20894
20869
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20895
20870
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20896
20871
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20872
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration);
|
|
20897
20873
|
return [2 /*return*/, {
|
|
20898
20874
|
url: common_1.toPathString(localVarUrlObj),
|
|
20899
20875
|
options: localVarRequestOptions,
|
|
@@ -20904,14 +20880,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20904
20880
|
},
|
|
20905
20881
|
/**
|
|
20906
20882
|
*
|
|
20907
|
-
* @summary
|
|
20883
|
+
* @summary Create HospitalServiceMedia.
|
|
20908
20884
|
* @param {string} hospitalId
|
|
20909
|
-
* @param {string}
|
|
20910
|
-
* @param {
|
|
20885
|
+
* @param {string} hospitalSpecialtyId
|
|
20886
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
20911
20887
|
* @param {*} [options] Override http request option.
|
|
20912
20888
|
* @throws {RequiredError}
|
|
20913
20889
|
*/
|
|
20914
|
-
|
|
20890
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: function (hospitalId, hospitalSpecialtyId, createMediaCommand, options) {
|
|
20915
20891
|
if (options === void 0) { options = {}; }
|
|
20916
20892
|
return __awaiter(_this, void 0, void 0, function () {
|
|
20917
20893
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -20919,17 +20895,17 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20919
20895
|
switch (_a.label) {
|
|
20920
20896
|
case 0:
|
|
20921
20897
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
20922
|
-
common_1.assertParamExists('
|
|
20923
|
-
// verify required parameter '
|
|
20924
|
-
common_1.assertParamExists('
|
|
20925
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{
|
|
20898
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost', 'hospitalId', hospitalId);
|
|
20899
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
20900
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
20901
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias"
|
|
20926
20902
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
20927
|
-
.replace("{" + "
|
|
20903
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
20928
20904
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20929
20905
|
if (configuration) {
|
|
20930
20906
|
baseOptions = configuration.baseOptions;
|
|
20931
20907
|
}
|
|
20932
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
20908
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
20933
20909
|
localVarHeaderParameter = {};
|
|
20934
20910
|
localVarQueryParameter = {};
|
|
20935
20911
|
// authentication oauth2 required
|
|
@@ -20943,7 +20919,7 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20943
20919
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20944
20920
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20945
20921
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20946
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
20922
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration);
|
|
20947
20923
|
return [2 /*return*/, {
|
|
20948
20924
|
url: common_1.toPathString(localVarUrlObj),
|
|
20949
20925
|
options: localVarRequestOptions,
|
|
@@ -20954,30 +20930,73 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20954
20930
|
},
|
|
20955
20931
|
/**
|
|
20956
20932
|
*
|
|
20957
|
-
* @summary
|
|
20933
|
+
* @summary Create HospitalSpecialty.
|
|
20934
|
+
* @param {string} hospitalId
|
|
20935
|
+
* @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
|
|
20936
|
+
* @param {*} [options] Override http request option.
|
|
20937
|
+
* @throws {RequiredError}
|
|
20938
|
+
*/
|
|
20939
|
+
apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
|
|
20940
|
+
if (options === void 0) { options = {}; }
|
|
20941
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
20942
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
20943
|
+
return __generator(this, function (_a) {
|
|
20944
|
+
switch (_a.label) {
|
|
20945
|
+
case 0:
|
|
20946
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
20947
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesPost', 'hospitalId', hospitalId);
|
|
20948
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties"
|
|
20949
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
20950
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20951
|
+
if (configuration) {
|
|
20952
|
+
baseOptions = configuration.baseOptions;
|
|
20953
|
+
}
|
|
20954
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
20955
|
+
localVarHeaderParameter = {};
|
|
20956
|
+
localVarQueryParameter = {};
|
|
20957
|
+
// authentication oauth2 required
|
|
20958
|
+
// oauth required
|
|
20959
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
20960
|
+
case 1:
|
|
20961
|
+
// authentication oauth2 required
|
|
20962
|
+
// oauth required
|
|
20963
|
+
_a.sent();
|
|
20964
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20965
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20966
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20967
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20968
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalSpecialtyCommand, localVarRequestOptions, configuration);
|
|
20969
|
+
return [2 /*return*/, {
|
|
20970
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
20971
|
+
options: localVarRequestOptions,
|
|
20972
|
+
}];
|
|
20973
|
+
}
|
|
20974
|
+
});
|
|
20975
|
+
});
|
|
20976
|
+
},
|
|
20977
|
+
/**
|
|
20978
|
+
*
|
|
20979
|
+
* @summary Get all HospitalSpecialties.
|
|
20958
20980
|
* @param {string} hospitalId
|
|
20959
|
-
* @param {string} specialtyId
|
|
20960
20981
|
* @param {string} [hospitalName]
|
|
20961
20982
|
* @param {string} [hospitalSlug]
|
|
20962
|
-
* @param {string} [
|
|
20963
|
-
* @param {string} [name]
|
|
20964
|
-
* @param {string} [description]
|
|
20983
|
+
* @param {string} [specialtyId]
|
|
20965
20984
|
* @param {string} [specialtyName]
|
|
20966
20985
|
* @param {string} [specialtyTypeId]
|
|
20967
|
-
* @param {string} [
|
|
20968
|
-
* @param {string} [
|
|
20986
|
+
* @param {string} [hospitalSpecialtySlug]
|
|
20987
|
+
* @param {string} [title]
|
|
20969
20988
|
* @param {MarketingType} [marketingType]
|
|
20970
|
-
* @param {Procedure} [procedure]
|
|
20971
|
-
* @param {Date} [created]
|
|
20972
20989
|
* @param {string} [languageCode]
|
|
20990
|
+
* @param {boolean} [showHidden]
|
|
20973
20991
|
* @param {boolean} [returnDefaultValue]
|
|
20992
|
+
* @param {boolean} [includeServices]
|
|
20974
20993
|
* @param {number} [page]
|
|
20975
20994
|
* @param {number} [limit]
|
|
20976
20995
|
* @param {Date} [lastRetrieved]
|
|
20977
20996
|
* @param {*} [options] Override http request option.
|
|
20978
20997
|
* @throws {RequiredError}
|
|
20979
20998
|
*/
|
|
20980
|
-
|
|
20999
|
+
apiV1HospitalsHospitalIdSpecialtiesSimpleGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
|
|
20981
21000
|
if (options === void 0) { options = {}; }
|
|
20982
21001
|
return __awaiter(_this, void 0, void 0, function () {
|
|
20983
21002
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -20985,12 +21004,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20985
21004
|
switch (_a.label) {
|
|
20986
21005
|
case 0:
|
|
20987
21006
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
20988
|
-
common_1.assertParamExists('
|
|
20989
|
-
|
|
20990
|
-
|
|
20991
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services"
|
|
20992
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
20993
|
-
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
21007
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSimpleGet', 'hospitalId', hospitalId);
|
|
21008
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/simple"
|
|
21009
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
20994
21010
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20995
21011
|
if (configuration) {
|
|
20996
21012
|
baseOptions = configuration.baseOptions;
|
|
@@ -21011,14 +21027,8 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21011
21027
|
if (hospitalSlug !== undefined) {
|
|
21012
21028
|
localVarQueryParameter['HospitalSlug'] = hospitalSlug;
|
|
21013
21029
|
}
|
|
21014
|
-
if (
|
|
21015
|
-
localVarQueryParameter['
|
|
21016
|
-
}
|
|
21017
|
-
if (name !== undefined) {
|
|
21018
|
-
localVarQueryParameter['Name'] = name;
|
|
21019
|
-
}
|
|
21020
|
-
if (description !== undefined) {
|
|
21021
|
-
localVarQueryParameter['Description'] = description;
|
|
21030
|
+
if (specialtyId !== undefined) {
|
|
21031
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
21022
21032
|
}
|
|
21023
21033
|
if (specialtyName !== undefined) {
|
|
21024
21034
|
localVarQueryParameter['SpecialtyName'] = specialtyName;
|
|
@@ -21026,23 +21036,296 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21026
21036
|
if (specialtyTypeId !== undefined) {
|
|
21027
21037
|
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
21028
21038
|
}
|
|
21029
|
-
if (
|
|
21030
|
-
localVarQueryParameter['
|
|
21039
|
+
if (hospitalSpecialtySlug !== undefined) {
|
|
21040
|
+
localVarQueryParameter['HospitalSpecialtySlug'] = hospitalSpecialtySlug;
|
|
21031
21041
|
}
|
|
21032
|
-
if (
|
|
21033
|
-
localVarQueryParameter['
|
|
21042
|
+
if (title !== undefined) {
|
|
21043
|
+
localVarQueryParameter['Title'] = title;
|
|
21034
21044
|
}
|
|
21035
21045
|
if (marketingType !== undefined) {
|
|
21036
21046
|
localVarQueryParameter['MarketingType'] = marketingType;
|
|
21037
21047
|
}
|
|
21038
|
-
if (
|
|
21039
|
-
localVarQueryParameter['
|
|
21040
|
-
}
|
|
21041
|
-
if (
|
|
21042
|
-
localVarQueryParameter['
|
|
21043
|
-
|
|
21044
|
-
|
|
21045
|
-
|
|
21048
|
+
if (languageCode !== undefined) {
|
|
21049
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
21050
|
+
}
|
|
21051
|
+
if (showHidden !== undefined) {
|
|
21052
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
21053
|
+
}
|
|
21054
|
+
if (returnDefaultValue !== undefined) {
|
|
21055
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
21056
|
+
}
|
|
21057
|
+
if (includeServices !== undefined) {
|
|
21058
|
+
localVarQueryParameter['IncludeServices'] = includeServices;
|
|
21059
|
+
}
|
|
21060
|
+
if (page !== undefined) {
|
|
21061
|
+
localVarQueryParameter['page'] = page;
|
|
21062
|
+
}
|
|
21063
|
+
if (limit !== undefined) {
|
|
21064
|
+
localVarQueryParameter['limit'] = limit;
|
|
21065
|
+
}
|
|
21066
|
+
if (lastRetrieved !== undefined) {
|
|
21067
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
21068
|
+
lastRetrieved.toISOString() :
|
|
21069
|
+
lastRetrieved;
|
|
21070
|
+
}
|
|
21071
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21072
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21073
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21074
|
+
return [2 /*return*/, {
|
|
21075
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
21076
|
+
options: localVarRequestOptions,
|
|
21077
|
+
}];
|
|
21078
|
+
}
|
|
21079
|
+
});
|
|
21080
|
+
});
|
|
21081
|
+
},
|
|
21082
|
+
/**
|
|
21083
|
+
*
|
|
21084
|
+
* @summary Delete HospitalSpecialty.
|
|
21085
|
+
* @param {string} hospitalId
|
|
21086
|
+
* @param {string} specialtyId
|
|
21087
|
+
* @param {*} [options] Override http request option.
|
|
21088
|
+
* @throws {RequiredError}
|
|
21089
|
+
*/
|
|
21090
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
|
|
21091
|
+
if (options === void 0) { options = {}; }
|
|
21092
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
21093
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
21094
|
+
return __generator(this, function (_a) {
|
|
21095
|
+
switch (_a.label) {
|
|
21096
|
+
case 0:
|
|
21097
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
21098
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'hospitalId', hospitalId);
|
|
21099
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
21100
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId);
|
|
21101
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
|
|
21102
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
21103
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
21104
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21105
|
+
if (configuration) {
|
|
21106
|
+
baseOptions = configuration.baseOptions;
|
|
21107
|
+
}
|
|
21108
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
21109
|
+
localVarHeaderParameter = {};
|
|
21110
|
+
localVarQueryParameter = {};
|
|
21111
|
+
// authentication oauth2 required
|
|
21112
|
+
// oauth required
|
|
21113
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
21114
|
+
case 1:
|
|
21115
|
+
// authentication oauth2 required
|
|
21116
|
+
// oauth required
|
|
21117
|
+
_a.sent();
|
|
21118
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21119
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21120
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21121
|
+
return [2 /*return*/, {
|
|
21122
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
21123
|
+
options: localVarRequestOptions,
|
|
21124
|
+
}];
|
|
21125
|
+
}
|
|
21126
|
+
});
|
|
21127
|
+
});
|
|
21128
|
+
},
|
|
21129
|
+
/**
|
|
21130
|
+
*
|
|
21131
|
+
* @summary Get HospitalSpecialty.
|
|
21132
|
+
* @param {string} hospitalId
|
|
21133
|
+
* @param {string} specialtyId
|
|
21134
|
+
* @param {string} [languageCode]
|
|
21135
|
+
* @param {boolean} [returnDefaultValue]
|
|
21136
|
+
* @param {boolean} [includeServices]
|
|
21137
|
+
* @param {*} [options] Override http request option.
|
|
21138
|
+
* @throws {RequiredError}
|
|
21139
|
+
*/
|
|
21140
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, languageCode, returnDefaultValue, includeServices, options) {
|
|
21141
|
+
if (options === void 0) { options = {}; }
|
|
21142
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
21143
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
21144
|
+
return __generator(this, function (_a) {
|
|
21145
|
+
switch (_a.label) {
|
|
21146
|
+
case 0:
|
|
21147
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
21148
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'hospitalId', hospitalId);
|
|
21149
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
21150
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'specialtyId', specialtyId);
|
|
21151
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
|
|
21152
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
21153
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
21154
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21155
|
+
if (configuration) {
|
|
21156
|
+
baseOptions = configuration.baseOptions;
|
|
21157
|
+
}
|
|
21158
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
21159
|
+
localVarHeaderParameter = {};
|
|
21160
|
+
localVarQueryParameter = {};
|
|
21161
|
+
// authentication oauth2 required
|
|
21162
|
+
// oauth required
|
|
21163
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
21164
|
+
case 1:
|
|
21165
|
+
// authentication oauth2 required
|
|
21166
|
+
// oauth required
|
|
21167
|
+
_a.sent();
|
|
21168
|
+
if (languageCode !== undefined) {
|
|
21169
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
21170
|
+
}
|
|
21171
|
+
if (returnDefaultValue !== undefined) {
|
|
21172
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
21173
|
+
}
|
|
21174
|
+
if (includeServices !== undefined) {
|
|
21175
|
+
localVarQueryParameter['includeServices'] = includeServices;
|
|
21176
|
+
}
|
|
21177
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21178
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21179
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21180
|
+
return [2 /*return*/, {
|
|
21181
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
21182
|
+
options: localVarRequestOptions,
|
|
21183
|
+
}];
|
|
21184
|
+
}
|
|
21185
|
+
});
|
|
21186
|
+
});
|
|
21187
|
+
},
|
|
21188
|
+
/**
|
|
21189
|
+
*
|
|
21190
|
+
* @summary Update HospitalSpecialty.
|
|
21191
|
+
* @param {string} hospitalId
|
|
21192
|
+
* @param {string} specialtyId
|
|
21193
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
21194
|
+
* @param {*} [options] Override http request option.
|
|
21195
|
+
* @throws {RequiredError}
|
|
21196
|
+
*/
|
|
21197
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
|
|
21198
|
+
if (options === void 0) { options = {}; }
|
|
21199
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
21200
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
21201
|
+
return __generator(this, function (_a) {
|
|
21202
|
+
switch (_a.label) {
|
|
21203
|
+
case 0:
|
|
21204
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
21205
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'hospitalId', hospitalId);
|
|
21206
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
21207
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId);
|
|
21208
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
|
|
21209
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
21210
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
21211
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21212
|
+
if (configuration) {
|
|
21213
|
+
baseOptions = configuration.baseOptions;
|
|
21214
|
+
}
|
|
21215
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
21216
|
+
localVarHeaderParameter = {};
|
|
21217
|
+
localVarQueryParameter = {};
|
|
21218
|
+
// authentication oauth2 required
|
|
21219
|
+
// oauth required
|
|
21220
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
21221
|
+
case 1:
|
|
21222
|
+
// authentication oauth2 required
|
|
21223
|
+
// oauth required
|
|
21224
|
+
_a.sent();
|
|
21225
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
21226
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21227
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21228
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21229
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration);
|
|
21230
|
+
return [2 /*return*/, {
|
|
21231
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
21232
|
+
options: localVarRequestOptions,
|
|
21233
|
+
}];
|
|
21234
|
+
}
|
|
21235
|
+
});
|
|
21236
|
+
});
|
|
21237
|
+
},
|
|
21238
|
+
/**
|
|
21239
|
+
*
|
|
21240
|
+
* @summary Get all HospitalServices.
|
|
21241
|
+
* @param {string} hospitalId
|
|
21242
|
+
* @param {string} specialtyId
|
|
21243
|
+
* @param {string} [hospitalName]
|
|
21244
|
+
* @param {string} [hospitalSlug]
|
|
21245
|
+
* @param {string} [id]
|
|
21246
|
+
* @param {string} [name]
|
|
21247
|
+
* @param {string} [description]
|
|
21248
|
+
* @param {string} [specialtyName]
|
|
21249
|
+
* @param {string} [specialtyTypeId]
|
|
21250
|
+
* @param {string} [specialtyTypeName]
|
|
21251
|
+
* @param {string} [serviceCategoryId]
|
|
21252
|
+
* @param {MarketingType} [marketingType]
|
|
21253
|
+
* @param {Procedure} [procedure]
|
|
21254
|
+
* @param {Date} [created]
|
|
21255
|
+
* @param {string} [languageCode]
|
|
21256
|
+
* @param {boolean} [returnDefaultValue]
|
|
21257
|
+
* @param {number} [page]
|
|
21258
|
+
* @param {number} [limit]
|
|
21259
|
+
* @param {Date} [lastRetrieved]
|
|
21260
|
+
* @param {*} [options] Override http request option.
|
|
21261
|
+
* @throws {RequiredError}
|
|
21262
|
+
*/
|
|
21263
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet: function (hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
21264
|
+
if (options === void 0) { options = {}; }
|
|
21265
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
21266
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
21267
|
+
return __generator(this, function (_a) {
|
|
21268
|
+
switch (_a.label) {
|
|
21269
|
+
case 0:
|
|
21270
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
21271
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'hospitalId', hospitalId);
|
|
21272
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
21273
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'specialtyId', specialtyId);
|
|
21274
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services"
|
|
21275
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
21276
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
21277
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21278
|
+
if (configuration) {
|
|
21279
|
+
baseOptions = configuration.baseOptions;
|
|
21280
|
+
}
|
|
21281
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
21282
|
+
localVarHeaderParameter = {};
|
|
21283
|
+
localVarQueryParameter = {};
|
|
21284
|
+
// authentication oauth2 required
|
|
21285
|
+
// oauth required
|
|
21286
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
21287
|
+
case 1:
|
|
21288
|
+
// authentication oauth2 required
|
|
21289
|
+
// oauth required
|
|
21290
|
+
_a.sent();
|
|
21291
|
+
if (hospitalName !== undefined) {
|
|
21292
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
21293
|
+
}
|
|
21294
|
+
if (hospitalSlug !== undefined) {
|
|
21295
|
+
localVarQueryParameter['HospitalSlug'] = hospitalSlug;
|
|
21296
|
+
}
|
|
21297
|
+
if (id !== undefined) {
|
|
21298
|
+
localVarQueryParameter['Id'] = id;
|
|
21299
|
+
}
|
|
21300
|
+
if (name !== undefined) {
|
|
21301
|
+
localVarQueryParameter['Name'] = name;
|
|
21302
|
+
}
|
|
21303
|
+
if (description !== undefined) {
|
|
21304
|
+
localVarQueryParameter['Description'] = description;
|
|
21305
|
+
}
|
|
21306
|
+
if (specialtyName !== undefined) {
|
|
21307
|
+
localVarQueryParameter['SpecialtyName'] = specialtyName;
|
|
21308
|
+
}
|
|
21309
|
+
if (specialtyTypeId !== undefined) {
|
|
21310
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
21311
|
+
}
|
|
21312
|
+
if (specialtyTypeName !== undefined) {
|
|
21313
|
+
localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
|
|
21314
|
+
}
|
|
21315
|
+
if (serviceCategoryId !== undefined) {
|
|
21316
|
+
localVarQueryParameter['ServiceCategoryId'] = serviceCategoryId;
|
|
21317
|
+
}
|
|
21318
|
+
if (marketingType !== undefined) {
|
|
21319
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
21320
|
+
}
|
|
21321
|
+
if (procedure !== undefined) {
|
|
21322
|
+
localVarQueryParameter['Procedure'] = procedure;
|
|
21323
|
+
}
|
|
21324
|
+
if (created !== undefined) {
|
|
21325
|
+
localVarQueryParameter['Created'] = (created instanceof Date) ?
|
|
21326
|
+
created.toISOString() :
|
|
21327
|
+
created;
|
|
21328
|
+
}
|
|
21046
21329
|
if (languageCode !== undefined) {
|
|
21047
21330
|
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
21048
21331
|
}
|
|
@@ -22845,6 +23128,121 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
22845
23128
|
});
|
|
22846
23129
|
});
|
|
22847
23130
|
},
|
|
23131
|
+
/**
|
|
23132
|
+
*
|
|
23133
|
+
* @summary Get all HospitalServiceMedias.
|
|
23134
|
+
* @param {string} hospitalId
|
|
23135
|
+
* @param {string} hospitalSpecialtyId
|
|
23136
|
+
* @param {string} [id]
|
|
23137
|
+
* @param {MediaType} [mediaType]
|
|
23138
|
+
* @param {number} [page]
|
|
23139
|
+
* @param {number} [limit]
|
|
23140
|
+
* @param {Date} [lastRetrieved]
|
|
23141
|
+
* @param {*} [options] Override http request option.
|
|
23142
|
+
* @throws {RequiredError}
|
|
23143
|
+
*/
|
|
23144
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
23145
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
23146
|
+
var localVarAxiosArgs;
|
|
23147
|
+
return __generator(this, function (_a) {
|
|
23148
|
+
switch (_a.label) {
|
|
23149
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options)];
|
|
23150
|
+
case 1:
|
|
23151
|
+
localVarAxiosArgs = _a.sent();
|
|
23152
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
23153
|
+
}
|
|
23154
|
+
});
|
|
23155
|
+
});
|
|
23156
|
+
},
|
|
23157
|
+
/**
|
|
23158
|
+
*
|
|
23159
|
+
* @summary Delete HospitalServiceMedia
|
|
23160
|
+
* @param {string} hospitalId
|
|
23161
|
+
* @param {string} hospitalSpecialtyId
|
|
23162
|
+
* @param {string} mediaId
|
|
23163
|
+
* @param {*} [options] Override http request option.
|
|
23164
|
+
* @throws {RequiredError}
|
|
23165
|
+
*/
|
|
23166
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
|
|
23167
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
23168
|
+
var localVarAxiosArgs;
|
|
23169
|
+
return __generator(this, function (_a) {
|
|
23170
|
+
switch (_a.label) {
|
|
23171
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options)];
|
|
23172
|
+
case 1:
|
|
23173
|
+
localVarAxiosArgs = _a.sent();
|
|
23174
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
23175
|
+
}
|
|
23176
|
+
});
|
|
23177
|
+
});
|
|
23178
|
+
},
|
|
23179
|
+
/**
|
|
23180
|
+
*
|
|
23181
|
+
* @summary Get HospitalServiceMedia.
|
|
23182
|
+
* @param {string} hospitalId
|
|
23183
|
+
* @param {string} hospitalSpecialtyId
|
|
23184
|
+
* @param {string} mediaId
|
|
23185
|
+
* @param {*} [options] Override http request option.
|
|
23186
|
+
* @throws {RequiredError}
|
|
23187
|
+
*/
|
|
23188
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
|
|
23189
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
23190
|
+
var localVarAxiosArgs;
|
|
23191
|
+
return __generator(this, function (_a) {
|
|
23192
|
+
switch (_a.label) {
|
|
23193
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options)];
|
|
23194
|
+
case 1:
|
|
23195
|
+
localVarAxiosArgs = _a.sent();
|
|
23196
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
23197
|
+
}
|
|
23198
|
+
});
|
|
23199
|
+
});
|
|
23200
|
+
},
|
|
23201
|
+
/**
|
|
23202
|
+
*
|
|
23203
|
+
* @summary Update HospitalServiceMedia.
|
|
23204
|
+
* @param {string} hospitalId
|
|
23205
|
+
* @param {string} hospitalSpecialtyId
|
|
23206
|
+
* @param {string} mediaId
|
|
23207
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
23208
|
+
* @param {*} [options] Override http request option.
|
|
23209
|
+
* @throws {RequiredError}
|
|
23210
|
+
*/
|
|
23211
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut: function (hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options) {
|
|
23212
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
23213
|
+
var localVarAxiosArgs;
|
|
23214
|
+
return __generator(this, function (_a) {
|
|
23215
|
+
switch (_a.label) {
|
|
23216
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options)];
|
|
23217
|
+
case 1:
|
|
23218
|
+
localVarAxiosArgs = _a.sent();
|
|
23219
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
23220
|
+
}
|
|
23221
|
+
});
|
|
23222
|
+
});
|
|
23223
|
+
},
|
|
23224
|
+
/**
|
|
23225
|
+
*
|
|
23226
|
+
* @summary Create HospitalServiceMedia.
|
|
23227
|
+
* @param {string} hospitalId
|
|
23228
|
+
* @param {string} hospitalSpecialtyId
|
|
23229
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
23230
|
+
* @param {*} [options] Override http request option.
|
|
23231
|
+
* @throws {RequiredError}
|
|
23232
|
+
*/
|
|
23233
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: function (hospitalId, hospitalSpecialtyId, createMediaCommand, options) {
|
|
23234
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
23235
|
+
var localVarAxiosArgs;
|
|
23236
|
+
return __generator(this, function (_a) {
|
|
23237
|
+
switch (_a.label) {
|
|
23238
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options)];
|
|
23239
|
+
case 1:
|
|
23240
|
+
localVarAxiosArgs = _a.sent();
|
|
23241
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
23242
|
+
}
|
|
23243
|
+
});
|
|
23244
|
+
});
|
|
23245
|
+
},
|
|
22848
23246
|
/**
|
|
22849
23247
|
*
|
|
22850
23248
|
* @summary Create HospitalSpecialty.
|
|
@@ -23858,6 +24256,71 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
23858
24256
|
apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
|
|
23859
24257
|
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
23860
24258
|
},
|
|
24259
|
+
/**
|
|
24260
|
+
*
|
|
24261
|
+
* @summary Get all HospitalServiceMedias.
|
|
24262
|
+
* @param {string} hospitalId
|
|
24263
|
+
* @param {string} hospitalSpecialtyId
|
|
24264
|
+
* @param {string} [id]
|
|
24265
|
+
* @param {MediaType} [mediaType]
|
|
24266
|
+
* @param {number} [page]
|
|
24267
|
+
* @param {number} [limit]
|
|
24268
|
+
* @param {Date} [lastRetrieved]
|
|
24269
|
+
* @param {*} [options] Override http request option.
|
|
24270
|
+
* @throws {RequiredError}
|
|
24271
|
+
*/
|
|
24272
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
24273
|
+
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
24274
|
+
},
|
|
24275
|
+
/**
|
|
24276
|
+
*
|
|
24277
|
+
* @summary Delete HospitalServiceMedia
|
|
24278
|
+
* @param {string} hospitalId
|
|
24279
|
+
* @param {string} hospitalSpecialtyId
|
|
24280
|
+
* @param {string} mediaId
|
|
24281
|
+
* @param {*} [options] Override http request option.
|
|
24282
|
+
* @throws {RequiredError}
|
|
24283
|
+
*/
|
|
24284
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
|
|
24285
|
+
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
24286
|
+
},
|
|
24287
|
+
/**
|
|
24288
|
+
*
|
|
24289
|
+
* @summary Get HospitalServiceMedia.
|
|
24290
|
+
* @param {string} hospitalId
|
|
24291
|
+
* @param {string} hospitalSpecialtyId
|
|
24292
|
+
* @param {string} mediaId
|
|
24293
|
+
* @param {*} [options] Override http request option.
|
|
24294
|
+
* @throws {RequiredError}
|
|
24295
|
+
*/
|
|
24296
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
|
|
24297
|
+
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
24298
|
+
},
|
|
24299
|
+
/**
|
|
24300
|
+
*
|
|
24301
|
+
* @summary Update HospitalServiceMedia.
|
|
24302
|
+
* @param {string} hospitalId
|
|
24303
|
+
* @param {string} hospitalSpecialtyId
|
|
24304
|
+
* @param {string} mediaId
|
|
24305
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
24306
|
+
* @param {*} [options] Override http request option.
|
|
24307
|
+
* @throws {RequiredError}
|
|
24308
|
+
*/
|
|
24309
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut: function (hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options) {
|
|
24310
|
+
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
24311
|
+
},
|
|
24312
|
+
/**
|
|
24313
|
+
*
|
|
24314
|
+
* @summary Create HospitalServiceMedia.
|
|
24315
|
+
* @param {string} hospitalId
|
|
24316
|
+
* @param {string} hospitalSpecialtyId
|
|
24317
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
24318
|
+
* @param {*} [options] Override http request option.
|
|
24319
|
+
* @throws {RequiredError}
|
|
24320
|
+
*/
|
|
24321
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: function (hospitalId, hospitalSpecialtyId, createMediaCommand, options) {
|
|
24322
|
+
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
24323
|
+
},
|
|
23861
24324
|
/**
|
|
23862
24325
|
*
|
|
23863
24326
|
* @summary Create HospitalSpecialty.
|
|
@@ -24713,6 +25176,81 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
24713
25176
|
var _this = this;
|
|
24714
25177
|
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
24715
25178
|
};
|
|
25179
|
+
/**
|
|
25180
|
+
*
|
|
25181
|
+
* @summary Get all HospitalServiceMedias.
|
|
25182
|
+
* @param {string} hospitalId
|
|
25183
|
+
* @param {string} hospitalSpecialtyId
|
|
25184
|
+
* @param {string} [id]
|
|
25185
|
+
* @param {MediaType} [mediaType]
|
|
25186
|
+
* @param {number} [page]
|
|
25187
|
+
* @param {number} [limit]
|
|
25188
|
+
* @param {Date} [lastRetrieved]
|
|
25189
|
+
* @param {*} [options] Override http request option.
|
|
25190
|
+
* @throws {RequiredError}
|
|
25191
|
+
* @memberof HospitalsApi
|
|
25192
|
+
*/
|
|
25193
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet = function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
25194
|
+
var _this = this;
|
|
25195
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
25196
|
+
};
|
|
25197
|
+
/**
|
|
25198
|
+
*
|
|
25199
|
+
* @summary Delete HospitalServiceMedia
|
|
25200
|
+
* @param {string} hospitalId
|
|
25201
|
+
* @param {string} hospitalSpecialtyId
|
|
25202
|
+
* @param {string} mediaId
|
|
25203
|
+
* @param {*} [options] Override http request option.
|
|
25204
|
+
* @throws {RequiredError}
|
|
25205
|
+
* @memberof HospitalsApi
|
|
25206
|
+
*/
|
|
25207
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete = function (hospitalId, hospitalSpecialtyId, mediaId, options) {
|
|
25208
|
+
var _this = this;
|
|
25209
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
25210
|
+
};
|
|
25211
|
+
/**
|
|
25212
|
+
*
|
|
25213
|
+
* @summary Get HospitalServiceMedia.
|
|
25214
|
+
* @param {string} hospitalId
|
|
25215
|
+
* @param {string} hospitalSpecialtyId
|
|
25216
|
+
* @param {string} mediaId
|
|
25217
|
+
* @param {*} [options] Override http request option.
|
|
25218
|
+
* @throws {RequiredError}
|
|
25219
|
+
* @memberof HospitalsApi
|
|
25220
|
+
*/
|
|
25221
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet = function (hospitalId, hospitalSpecialtyId, mediaId, options) {
|
|
25222
|
+
var _this = this;
|
|
25223
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
25224
|
+
};
|
|
25225
|
+
/**
|
|
25226
|
+
*
|
|
25227
|
+
* @summary Update HospitalServiceMedia.
|
|
25228
|
+
* @param {string} hospitalId
|
|
25229
|
+
* @param {string} hospitalSpecialtyId
|
|
25230
|
+
* @param {string} mediaId
|
|
25231
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
25232
|
+
* @param {*} [options] Override http request option.
|
|
25233
|
+
* @throws {RequiredError}
|
|
25234
|
+
* @memberof HospitalsApi
|
|
25235
|
+
*/
|
|
25236
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut = function (hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options) {
|
|
25237
|
+
var _this = this;
|
|
25238
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
25239
|
+
};
|
|
25240
|
+
/**
|
|
25241
|
+
*
|
|
25242
|
+
* @summary Create HospitalServiceMedia.
|
|
25243
|
+
* @param {string} hospitalId
|
|
25244
|
+
* @param {string} hospitalSpecialtyId
|
|
25245
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
25246
|
+
* @param {*} [options] Override http request option.
|
|
25247
|
+
* @throws {RequiredError}
|
|
25248
|
+
* @memberof HospitalsApi
|
|
25249
|
+
*/
|
|
25250
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost = function (hospitalId, hospitalSpecialtyId, createMediaCommand, options) {
|
|
25251
|
+
var _this = this;
|
|
25252
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
25253
|
+
};
|
|
24716
25254
|
/**
|
|
24717
25255
|
*
|
|
24718
25256
|
* @summary Create HospitalSpecialty.
|
|
@@ -30687,13 +31225,15 @@ exports.ServiceReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
30687
31225
|
* @param {boolean} [recommended]
|
|
30688
31226
|
* @param {number} [rate]
|
|
30689
31227
|
* @param {ReviewType} [reviewType]
|
|
31228
|
+
* @param {string} [languageCode]
|
|
31229
|
+
* @param {boolean} [returnDefaultValue]
|
|
30690
31230
|
* @param {number} [page]
|
|
30691
31231
|
* @param {number} [limit]
|
|
30692
31232
|
* @param {Date} [lastRetrieved]
|
|
30693
31233
|
* @param {*} [options] Override http request option.
|
|
30694
31234
|
* @throws {RequiredError}
|
|
30695
31235
|
*/
|
|
30696
|
-
apiV1ServicereviewsGet: function (serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, page, limit, lastRetrieved, options) {
|
|
31236
|
+
apiV1ServicereviewsGet: function (serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
30697
31237
|
if (options === void 0) { options = {}; }
|
|
30698
31238
|
return __awaiter(_this, void 0, void 0, function () {
|
|
30699
31239
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -30739,6 +31279,12 @@ exports.ServiceReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
30739
31279
|
if (reviewType !== undefined) {
|
|
30740
31280
|
localVarQueryParameter['ReviewType'] = reviewType;
|
|
30741
31281
|
}
|
|
31282
|
+
if (languageCode !== undefined) {
|
|
31283
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
31284
|
+
}
|
|
31285
|
+
if (returnDefaultValue !== undefined) {
|
|
31286
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
31287
|
+
}
|
|
30742
31288
|
if (page !== undefined) {
|
|
30743
31289
|
localVarQueryParameter['page'] = page;
|
|
30744
31290
|
}
|
|
@@ -30849,10 +31395,12 @@ exports.ServiceReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
30849
31395
|
/**
|
|
30850
31396
|
*
|
|
30851
31397
|
* @param {string} serviceReviewId
|
|
31398
|
+
* @param {string} [languageCode]
|
|
31399
|
+
* @param {boolean} [returnDefaultValue]
|
|
30852
31400
|
* @param {*} [options] Override http request option.
|
|
30853
31401
|
* @throws {RequiredError}
|
|
30854
31402
|
*/
|
|
30855
|
-
apiV1ServicereviewsServiceReviewIdGet: function (serviceReviewId, options) {
|
|
31403
|
+
apiV1ServicereviewsServiceReviewIdGet: function (serviceReviewId, languageCode, returnDefaultValue, options) {
|
|
30856
31404
|
if (options === void 0) { options = {}; }
|
|
30857
31405
|
return __awaiter(_this, void 0, void 0, function () {
|
|
30858
31406
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -30877,6 +31425,12 @@ exports.ServiceReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
30877
31425
|
// authentication oauth2 required
|
|
30878
31426
|
// oauth required
|
|
30879
31427
|
_a.sent();
|
|
31428
|
+
if (languageCode !== undefined) {
|
|
31429
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
31430
|
+
}
|
|
31431
|
+
if (returnDefaultValue !== undefined) {
|
|
31432
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
31433
|
+
}
|
|
30880
31434
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30881
31435
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30882
31436
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -31209,18 +31763,20 @@ exports.ServiceReviewsApiFp = function (configuration) {
|
|
|
31209
31763
|
* @param {boolean} [recommended]
|
|
31210
31764
|
* @param {number} [rate]
|
|
31211
31765
|
* @param {ReviewType} [reviewType]
|
|
31766
|
+
* @param {string} [languageCode]
|
|
31767
|
+
* @param {boolean} [returnDefaultValue]
|
|
31212
31768
|
* @param {number} [page]
|
|
31213
31769
|
* @param {number} [limit]
|
|
31214
31770
|
* @param {Date} [lastRetrieved]
|
|
31215
31771
|
* @param {*} [options] Override http request option.
|
|
31216
31772
|
* @throws {RequiredError}
|
|
31217
31773
|
*/
|
|
31218
|
-
apiV1ServicereviewsGet: function (serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, page, limit, lastRetrieved, options) {
|
|
31774
|
+
apiV1ServicereviewsGet: function (serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
31219
31775
|
return __awaiter(this, void 0, void 0, function () {
|
|
31220
31776
|
var localVarAxiosArgs;
|
|
31221
31777
|
return __generator(this, function (_a) {
|
|
31222
31778
|
switch (_a.label) {
|
|
31223
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, page, limit, lastRetrieved, options)];
|
|
31779
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, returnDefaultValue, page, limit, lastRetrieved, options)];
|
|
31224
31780
|
case 1:
|
|
31225
31781
|
localVarAxiosArgs = _a.sent();
|
|
31226
31782
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -31271,15 +31827,17 @@ exports.ServiceReviewsApiFp = function (configuration) {
|
|
|
31271
31827
|
/**
|
|
31272
31828
|
*
|
|
31273
31829
|
* @param {string} serviceReviewId
|
|
31830
|
+
* @param {string} [languageCode]
|
|
31831
|
+
* @param {boolean} [returnDefaultValue]
|
|
31274
31832
|
* @param {*} [options] Override http request option.
|
|
31275
31833
|
* @throws {RequiredError}
|
|
31276
31834
|
*/
|
|
31277
|
-
apiV1ServicereviewsServiceReviewIdGet: function (serviceReviewId, options) {
|
|
31835
|
+
apiV1ServicereviewsServiceReviewIdGet: function (serviceReviewId, languageCode, returnDefaultValue, options) {
|
|
31278
31836
|
return __awaiter(this, void 0, void 0, function () {
|
|
31279
31837
|
var localVarAxiosArgs;
|
|
31280
31838
|
return __generator(this, function (_a) {
|
|
31281
31839
|
switch (_a.label) {
|
|
31282
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, options)];
|
|
31840
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, languageCode, returnDefaultValue, options)];
|
|
31283
31841
|
case 1:
|
|
31284
31842
|
localVarAxiosArgs = _a.sent();
|
|
31285
31843
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -31438,14 +31996,16 @@ exports.ServiceReviewsApiFactory = function (configuration, basePath, axios) {
|
|
|
31438
31996
|
* @param {boolean} [recommended]
|
|
31439
31997
|
* @param {number} [rate]
|
|
31440
31998
|
* @param {ReviewType} [reviewType]
|
|
31999
|
+
* @param {string} [languageCode]
|
|
32000
|
+
* @param {boolean} [returnDefaultValue]
|
|
31441
32001
|
* @param {number} [page]
|
|
31442
32002
|
* @param {number} [limit]
|
|
31443
32003
|
* @param {Date} [lastRetrieved]
|
|
31444
32004
|
* @param {*} [options] Override http request option.
|
|
31445
32005
|
* @throws {RequiredError}
|
|
31446
32006
|
*/
|
|
31447
|
-
apiV1ServicereviewsGet: function (serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, page, limit, lastRetrieved, options) {
|
|
31448
|
-
return localVarFp.apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
32007
|
+
apiV1ServicereviewsGet: function (serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
32008
|
+
return localVarFp.apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
31449
32009
|
},
|
|
31450
32010
|
/**
|
|
31451
32011
|
*
|
|
@@ -31470,11 +32030,13 @@ exports.ServiceReviewsApiFactory = function (configuration, basePath, axios) {
|
|
|
31470
32030
|
/**
|
|
31471
32031
|
*
|
|
31472
32032
|
* @param {string} serviceReviewId
|
|
32033
|
+
* @param {string} [languageCode]
|
|
32034
|
+
* @param {boolean} [returnDefaultValue]
|
|
31473
32035
|
* @param {*} [options] Override http request option.
|
|
31474
32036
|
* @throws {RequiredError}
|
|
31475
32037
|
*/
|
|
31476
|
-
apiV1ServicereviewsServiceReviewIdGet: function (serviceReviewId, options) {
|
|
31477
|
-
return localVarFp.apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, options).then(function (request) { return request(axios, basePath); });
|
|
32038
|
+
apiV1ServicereviewsServiceReviewIdGet: function (serviceReviewId, languageCode, returnDefaultValue, options) {
|
|
32039
|
+
return localVarFp.apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
|
|
31478
32040
|
},
|
|
31479
32041
|
/**
|
|
31480
32042
|
*
|
|
@@ -31571,6 +32133,8 @@ var ServiceReviewsApi = /** @class */ (function (_super) {
|
|
|
31571
32133
|
* @param {boolean} [recommended]
|
|
31572
32134
|
* @param {number} [rate]
|
|
31573
32135
|
* @param {ReviewType} [reviewType]
|
|
32136
|
+
* @param {string} [languageCode]
|
|
32137
|
+
* @param {boolean} [returnDefaultValue]
|
|
31574
32138
|
* @param {number} [page]
|
|
31575
32139
|
* @param {number} [limit]
|
|
31576
32140
|
* @param {Date} [lastRetrieved]
|
|
@@ -31578,9 +32142,9 @@ var ServiceReviewsApi = /** @class */ (function (_super) {
|
|
|
31578
32142
|
* @throws {RequiredError}
|
|
31579
32143
|
* @memberof ServiceReviewsApi
|
|
31580
32144
|
*/
|
|
31581
|
-
ServiceReviewsApi.prototype.apiV1ServicereviewsGet = function (serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, page, limit, lastRetrieved, options) {
|
|
32145
|
+
ServiceReviewsApi.prototype.apiV1ServicereviewsGet = function (serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
31582
32146
|
var _this = this;
|
|
31583
|
-
return exports.ServiceReviewsApiFp(this.configuration).apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
32147
|
+
return exports.ServiceReviewsApiFp(this.configuration).apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
31584
32148
|
};
|
|
31585
32149
|
/**
|
|
31586
32150
|
*
|
|
@@ -31609,13 +32173,15 @@ var ServiceReviewsApi = /** @class */ (function (_super) {
|
|
|
31609
32173
|
/**
|
|
31610
32174
|
*
|
|
31611
32175
|
* @param {string} serviceReviewId
|
|
32176
|
+
* @param {string} [languageCode]
|
|
32177
|
+
* @param {boolean} [returnDefaultValue]
|
|
31612
32178
|
* @param {*} [options] Override http request option.
|
|
31613
32179
|
* @throws {RequiredError}
|
|
31614
32180
|
* @memberof ServiceReviewsApi
|
|
31615
32181
|
*/
|
|
31616
|
-
ServiceReviewsApi.prototype.apiV1ServicereviewsServiceReviewIdGet = function (serviceReviewId, options) {
|
|
32182
|
+
ServiceReviewsApi.prototype.apiV1ServicereviewsServiceReviewIdGet = function (serviceReviewId, languageCode, returnDefaultValue, options) {
|
|
31617
32183
|
var _this = this;
|
|
31618
|
-
return exports.ServiceReviewsApiFp(this.configuration).apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
32184
|
+
return exports.ServiceReviewsApiFp(this.configuration).apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, languageCode, returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
31619
32185
|
};
|
|
31620
32186
|
/**
|
|
31621
32187
|
*
|
|
@@ -32786,6 +33352,97 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
32786
33352
|
});
|
|
32787
33353
|
});
|
|
32788
33354
|
},
|
|
33355
|
+
/**
|
|
33356
|
+
*
|
|
33357
|
+
* @summary Get all Specialties Simple.
|
|
33358
|
+
* @param {string} [id]
|
|
33359
|
+
* @param {string} [name]
|
|
33360
|
+
* @param {string} [description]
|
|
33361
|
+
* @param {string} [specialtyTypeId]
|
|
33362
|
+
* @param {string} [hospitalId]
|
|
33363
|
+
* @param {Date} [created]
|
|
33364
|
+
* @param {string} [languageCode]
|
|
33365
|
+
* @param {Array<string>} [ids]
|
|
33366
|
+
* @param {boolean} [returnDefaultValue]
|
|
33367
|
+
* @param {number} [page]
|
|
33368
|
+
* @param {number} [limit]
|
|
33369
|
+
* @param {Date} [lastRetrieved]
|
|
33370
|
+
* @param {*} [options] Override http request option.
|
|
33371
|
+
* @throws {RequiredError}
|
|
33372
|
+
*/
|
|
33373
|
+
apiV1SpecialtiesSimpleGet: function (id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
33374
|
+
if (options === void 0) { options = {}; }
|
|
33375
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
33376
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
33377
|
+
return __generator(this, function (_a) {
|
|
33378
|
+
switch (_a.label) {
|
|
33379
|
+
case 0:
|
|
33380
|
+
localVarPath = "/api/v1/specialties/simple";
|
|
33381
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33382
|
+
if (configuration) {
|
|
33383
|
+
baseOptions = configuration.baseOptions;
|
|
33384
|
+
}
|
|
33385
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
33386
|
+
localVarHeaderParameter = {};
|
|
33387
|
+
localVarQueryParameter = {};
|
|
33388
|
+
// authentication oauth2 required
|
|
33389
|
+
// oauth required
|
|
33390
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
33391
|
+
case 1:
|
|
33392
|
+
// authentication oauth2 required
|
|
33393
|
+
// oauth required
|
|
33394
|
+
_a.sent();
|
|
33395
|
+
if (id !== undefined) {
|
|
33396
|
+
localVarQueryParameter['Id'] = id;
|
|
33397
|
+
}
|
|
33398
|
+
if (name !== undefined) {
|
|
33399
|
+
localVarQueryParameter['Name'] = name;
|
|
33400
|
+
}
|
|
33401
|
+
if (description !== undefined) {
|
|
33402
|
+
localVarQueryParameter['Description'] = description;
|
|
33403
|
+
}
|
|
33404
|
+
if (specialtyTypeId !== undefined) {
|
|
33405
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
33406
|
+
}
|
|
33407
|
+
if (hospitalId !== undefined) {
|
|
33408
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
33409
|
+
}
|
|
33410
|
+
if (created !== undefined) {
|
|
33411
|
+
localVarQueryParameter['Created'] = (created instanceof Date) ?
|
|
33412
|
+
created.toISOString() :
|
|
33413
|
+
created;
|
|
33414
|
+
}
|
|
33415
|
+
if (languageCode !== undefined) {
|
|
33416
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
33417
|
+
}
|
|
33418
|
+
if (ids) {
|
|
33419
|
+
localVarQueryParameter['Ids'] = ids;
|
|
33420
|
+
}
|
|
33421
|
+
if (returnDefaultValue !== undefined) {
|
|
33422
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
33423
|
+
}
|
|
33424
|
+
if (page !== undefined) {
|
|
33425
|
+
localVarQueryParameter['page'] = page;
|
|
33426
|
+
}
|
|
33427
|
+
if (limit !== undefined) {
|
|
33428
|
+
localVarQueryParameter['limit'] = limit;
|
|
33429
|
+
}
|
|
33430
|
+
if (lastRetrieved !== undefined) {
|
|
33431
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
33432
|
+
lastRetrieved.toISOString() :
|
|
33433
|
+
lastRetrieved;
|
|
33434
|
+
}
|
|
33435
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33436
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33437
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
33438
|
+
return [2 /*return*/, {
|
|
33439
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
33440
|
+
options: localVarRequestOptions,
|
|
33441
|
+
}];
|
|
33442
|
+
}
|
|
33443
|
+
});
|
|
33444
|
+
});
|
|
33445
|
+
},
|
|
32789
33446
|
/**
|
|
32790
33447
|
*
|
|
32791
33448
|
* @param {string} slug
|
|
@@ -33291,6 +33948,37 @@ exports.SpecialtiesApiFp = function (configuration) {
|
|
|
33291
33948
|
});
|
|
33292
33949
|
});
|
|
33293
33950
|
},
|
|
33951
|
+
/**
|
|
33952
|
+
*
|
|
33953
|
+
* @summary Get all Specialties Simple.
|
|
33954
|
+
* @param {string} [id]
|
|
33955
|
+
* @param {string} [name]
|
|
33956
|
+
* @param {string} [description]
|
|
33957
|
+
* @param {string} [specialtyTypeId]
|
|
33958
|
+
* @param {string} [hospitalId]
|
|
33959
|
+
* @param {Date} [created]
|
|
33960
|
+
* @param {string} [languageCode]
|
|
33961
|
+
* @param {Array<string>} [ids]
|
|
33962
|
+
* @param {boolean} [returnDefaultValue]
|
|
33963
|
+
* @param {number} [page]
|
|
33964
|
+
* @param {number} [limit]
|
|
33965
|
+
* @param {Date} [lastRetrieved]
|
|
33966
|
+
* @param {*} [options] Override http request option.
|
|
33967
|
+
* @throws {RequiredError}
|
|
33968
|
+
*/
|
|
33969
|
+
apiV1SpecialtiesSimpleGet: function (id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
33970
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
33971
|
+
var localVarAxiosArgs;
|
|
33972
|
+
return __generator(this, function (_a) {
|
|
33973
|
+
switch (_a.label) {
|
|
33974
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options)];
|
|
33975
|
+
case 1:
|
|
33976
|
+
localVarAxiosArgs = _a.sent();
|
|
33977
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
33978
|
+
}
|
|
33979
|
+
});
|
|
33980
|
+
});
|
|
33981
|
+
},
|
|
33294
33982
|
/**
|
|
33295
33983
|
*
|
|
33296
33984
|
* @param {string} slug
|
|
@@ -33525,6 +34213,27 @@ exports.SpecialtiesApiFactory = function (configuration, basePath, axios) {
|
|
|
33525
34213
|
apiV1SpecialtiesPost: function (createSpecialtyCommand, options) {
|
|
33526
34214
|
return localVarFp.apiV1SpecialtiesPost(createSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
|
|
33527
34215
|
},
|
|
34216
|
+
/**
|
|
34217
|
+
*
|
|
34218
|
+
* @summary Get all Specialties Simple.
|
|
34219
|
+
* @param {string} [id]
|
|
34220
|
+
* @param {string} [name]
|
|
34221
|
+
* @param {string} [description]
|
|
34222
|
+
* @param {string} [specialtyTypeId]
|
|
34223
|
+
* @param {string} [hospitalId]
|
|
34224
|
+
* @param {Date} [created]
|
|
34225
|
+
* @param {string} [languageCode]
|
|
34226
|
+
* @param {Array<string>} [ids]
|
|
34227
|
+
* @param {boolean} [returnDefaultValue]
|
|
34228
|
+
* @param {number} [page]
|
|
34229
|
+
* @param {number} [limit]
|
|
34230
|
+
* @param {Date} [lastRetrieved]
|
|
34231
|
+
* @param {*} [options] Override http request option.
|
|
34232
|
+
* @throws {RequiredError}
|
|
34233
|
+
*/
|
|
34234
|
+
apiV1SpecialtiesSimpleGet: function (id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
34235
|
+
return localVarFp.apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
34236
|
+
},
|
|
33528
34237
|
/**
|
|
33529
34238
|
*
|
|
33530
34239
|
* @param {string} slug
|
|
@@ -33677,6 +34386,29 @@ var SpecialtiesApi = /** @class */ (function (_super) {
|
|
|
33677
34386
|
var _this = this;
|
|
33678
34387
|
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesPost(createSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
33679
34388
|
};
|
|
34389
|
+
/**
|
|
34390
|
+
*
|
|
34391
|
+
* @summary Get all Specialties Simple.
|
|
34392
|
+
* @param {string} [id]
|
|
34393
|
+
* @param {string} [name]
|
|
34394
|
+
* @param {string} [description]
|
|
34395
|
+
* @param {string} [specialtyTypeId]
|
|
34396
|
+
* @param {string} [hospitalId]
|
|
34397
|
+
* @param {Date} [created]
|
|
34398
|
+
* @param {string} [languageCode]
|
|
34399
|
+
* @param {Array<string>} [ids]
|
|
34400
|
+
* @param {boolean} [returnDefaultValue]
|
|
34401
|
+
* @param {number} [page]
|
|
34402
|
+
* @param {number} [limit]
|
|
34403
|
+
* @param {Date} [lastRetrieved]
|
|
34404
|
+
* @param {*} [options] Override http request option.
|
|
34405
|
+
* @throws {RequiredError}
|
|
34406
|
+
* @memberof SpecialtiesApi
|
|
34407
|
+
*/
|
|
34408
|
+
SpecialtiesApi.prototype.apiV1SpecialtiesSimpleGet = function (id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
34409
|
+
var _this = this;
|
|
34410
|
+
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
34411
|
+
};
|
|
33680
34412
|
/**
|
|
33681
34413
|
*
|
|
33682
34414
|
* @param {string} slug
|