ch-admin-api-client-typescript 3.1.3 → 3.1.4

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.js CHANGED
@@ -20645,6 +20645,281 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
20645
20645
  });
20646
20646
  });
20647
20647
  },
20648
+ /**
20649
+ *
20650
+ * @summary Get all HospitalServiceMedias.
20651
+ * @param {string} hospitalId
20652
+ * @param {string} hospitalSpecialtyId
20653
+ * @param {string} [id]
20654
+ * @param {MediaType} [mediaType]
20655
+ * @param {number} [page]
20656
+ * @param {number} [limit]
20657
+ * @param {Date} [lastRetrieved]
20658
+ * @param {*} [options] Override http request option.
20659
+ * @throws {RequiredError}
20660
+ */
20661
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
20662
+ if (options === void 0) { options = {}; }
20663
+ return __awaiter(_this, void 0, void 0, function () {
20664
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
20665
+ return __generator(this, function (_a) {
20666
+ switch (_a.label) {
20667
+ case 0:
20668
+ // verify required parameter 'hospitalId' is not null or undefined
20669
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalId', hospitalId);
20670
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
20671
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalSpecialtyId', hospitalSpecialtyId);
20672
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias"
20673
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
20674
+ .replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
20675
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20676
+ if (configuration) {
20677
+ baseOptions = configuration.baseOptions;
20678
+ }
20679
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
20680
+ localVarHeaderParameter = {};
20681
+ localVarQueryParameter = {};
20682
+ // authentication oauth2 required
20683
+ // oauth required
20684
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
20685
+ case 1:
20686
+ // authentication oauth2 required
20687
+ // oauth required
20688
+ _a.sent();
20689
+ if (id !== undefined) {
20690
+ localVarQueryParameter['Id'] = id;
20691
+ }
20692
+ if (mediaType !== undefined) {
20693
+ localVarQueryParameter['MediaType'] = mediaType;
20694
+ }
20695
+ if (page !== undefined) {
20696
+ localVarQueryParameter['page'] = page;
20697
+ }
20698
+ if (limit !== undefined) {
20699
+ localVarQueryParameter['limit'] = limit;
20700
+ }
20701
+ if (lastRetrieved !== undefined) {
20702
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
20703
+ lastRetrieved.toISOString() :
20704
+ lastRetrieved;
20705
+ }
20706
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
20707
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20708
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20709
+ return [2 /*return*/, {
20710
+ url: common_1.toPathString(localVarUrlObj),
20711
+ options: localVarRequestOptions,
20712
+ }];
20713
+ }
20714
+ });
20715
+ });
20716
+ },
20717
+ /**
20718
+ *
20719
+ * @summary Delete HospitalServiceMedia
20720
+ * @param {string} hospitalId
20721
+ * @param {string} hospitalSpecialtyId
20722
+ * @param {string} mediaId
20723
+ * @param {*} [options] Override http request option.
20724
+ * @throws {RequiredError}
20725
+ */
20726
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
20727
+ if (options === void 0) { options = {}; }
20728
+ return __awaiter(_this, void 0, void 0, function () {
20729
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
20730
+ return __generator(this, function (_a) {
20731
+ switch (_a.label) {
20732
+ case 0:
20733
+ // verify required parameter 'hospitalId' is not null or undefined
20734
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'hospitalId', hospitalId);
20735
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
20736
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'hospitalSpecialtyId', hospitalSpecialtyId);
20737
+ // verify required parameter 'mediaId' is not null or undefined
20738
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'mediaId', mediaId);
20739
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}"
20740
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
20741
+ .replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)))
20742
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
20743
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20744
+ if (configuration) {
20745
+ baseOptions = configuration.baseOptions;
20746
+ }
20747
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
20748
+ localVarHeaderParameter = {};
20749
+ localVarQueryParameter = {};
20750
+ // authentication oauth2 required
20751
+ // oauth required
20752
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
20753
+ case 1:
20754
+ // authentication oauth2 required
20755
+ // oauth required
20756
+ _a.sent();
20757
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
20758
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20759
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20760
+ return [2 /*return*/, {
20761
+ url: common_1.toPathString(localVarUrlObj),
20762
+ options: localVarRequestOptions,
20763
+ }];
20764
+ }
20765
+ });
20766
+ });
20767
+ },
20768
+ /**
20769
+ *
20770
+ * @summary Get HospitalServiceMedia.
20771
+ * @param {string} hospitalId
20772
+ * @param {string} hospitalSpecialtyId
20773
+ * @param {string} mediaId
20774
+ * @param {*} [options] Override http request option.
20775
+ * @throws {RequiredError}
20776
+ */
20777
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
20778
+ if (options === void 0) { options = {}; }
20779
+ return __awaiter(_this, void 0, void 0, function () {
20780
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
20781
+ return __generator(this, function (_a) {
20782
+ switch (_a.label) {
20783
+ case 0:
20784
+ // verify required parameter 'hospitalId' is not null or undefined
20785
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalId', hospitalId);
20786
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
20787
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId);
20788
+ // verify required parameter 'mediaId' is not null or undefined
20789
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'mediaId', mediaId);
20790
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}"
20791
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
20792
+ .replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)))
20793
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
20794
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20795
+ if (configuration) {
20796
+ baseOptions = configuration.baseOptions;
20797
+ }
20798
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
20799
+ localVarHeaderParameter = {};
20800
+ localVarQueryParameter = {};
20801
+ // authentication oauth2 required
20802
+ // oauth required
20803
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
20804
+ case 1:
20805
+ // authentication oauth2 required
20806
+ // oauth required
20807
+ _a.sent();
20808
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
20809
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20810
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20811
+ return [2 /*return*/, {
20812
+ url: common_1.toPathString(localVarUrlObj),
20813
+ options: localVarRequestOptions,
20814
+ }];
20815
+ }
20816
+ });
20817
+ });
20818
+ },
20819
+ /**
20820
+ *
20821
+ * @summary Update HospitalServiceMedia.
20822
+ * @param {string} hospitalId
20823
+ * @param {string} hospitalSpecialtyId
20824
+ * @param {string} mediaId
20825
+ * @param {UpdateMediaCommand} [updateMediaCommand]
20826
+ * @param {*} [options] Override http request option.
20827
+ * @throws {RequiredError}
20828
+ */
20829
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut: function (hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options) {
20830
+ if (options === void 0) { options = {}; }
20831
+ return __awaiter(_this, void 0, void 0, function () {
20832
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
20833
+ return __generator(this, function (_a) {
20834
+ switch (_a.label) {
20835
+ case 0:
20836
+ // verify required parameter 'hospitalId' is not null or undefined
20837
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'hospitalId', hospitalId);
20838
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
20839
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'hospitalSpecialtyId', hospitalSpecialtyId);
20840
+ // verify required parameter 'mediaId' is not null or undefined
20841
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'mediaId', mediaId);
20842
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}"
20843
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
20844
+ .replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)))
20845
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
20846
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20847
+ if (configuration) {
20848
+ baseOptions = configuration.baseOptions;
20849
+ }
20850
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
20851
+ localVarHeaderParameter = {};
20852
+ localVarQueryParameter = {};
20853
+ // authentication oauth2 required
20854
+ // oauth required
20855
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
20856
+ case 1:
20857
+ // authentication oauth2 required
20858
+ // oauth required
20859
+ _a.sent();
20860
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20861
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
20862
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20863
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20864
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration);
20865
+ return [2 /*return*/, {
20866
+ url: common_1.toPathString(localVarUrlObj),
20867
+ options: localVarRequestOptions,
20868
+ }];
20869
+ }
20870
+ });
20871
+ });
20872
+ },
20873
+ /**
20874
+ *
20875
+ * @summary Create HospitalServiceMedia.
20876
+ * @param {string} hospitalId
20877
+ * @param {string} hospitalSpecialtyId
20878
+ * @param {CreateMediaCommand} [createMediaCommand]
20879
+ * @param {*} [options] Override http request option.
20880
+ * @throws {RequiredError}
20881
+ */
20882
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: function (hospitalId, hospitalSpecialtyId, createMediaCommand, options) {
20883
+ if (options === void 0) { options = {}; }
20884
+ return __awaiter(_this, void 0, void 0, function () {
20885
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
20886
+ return __generator(this, function (_a) {
20887
+ switch (_a.label) {
20888
+ case 0:
20889
+ // verify required parameter 'hospitalId' is not null or undefined
20890
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost', 'hospitalId', hospitalId);
20891
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
20892
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost', 'hospitalSpecialtyId', hospitalSpecialtyId);
20893
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias"
20894
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
20895
+ .replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
20896
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20897
+ if (configuration) {
20898
+ baseOptions = configuration.baseOptions;
20899
+ }
20900
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
20901
+ localVarHeaderParameter = {};
20902
+ localVarQueryParameter = {};
20903
+ // authentication oauth2 required
20904
+ // oauth required
20905
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
20906
+ case 1:
20907
+ // authentication oauth2 required
20908
+ // oauth required
20909
+ _a.sent();
20910
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20911
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
20912
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20913
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20914
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration);
20915
+ return [2 /*return*/, {
20916
+ url: common_1.toPathString(localVarUrlObj),
20917
+ options: localVarRequestOptions,
20918
+ }];
20919
+ }
20920
+ });
20921
+ });
20922
+ },
20648
20923
  /**
20649
20924
  *
20650
20925
  * @summary Create HospitalSpecialty.
@@ -22845,6 +23120,121 @@ exports.HospitalsApiFp = function (configuration) {
22845
23120
  });
22846
23121
  });
22847
23122
  },
23123
+ /**
23124
+ *
23125
+ * @summary Get all HospitalServiceMedias.
23126
+ * @param {string} hospitalId
23127
+ * @param {string} hospitalSpecialtyId
23128
+ * @param {string} [id]
23129
+ * @param {MediaType} [mediaType]
23130
+ * @param {number} [page]
23131
+ * @param {number} [limit]
23132
+ * @param {Date} [lastRetrieved]
23133
+ * @param {*} [options] Override http request option.
23134
+ * @throws {RequiredError}
23135
+ */
23136
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
23137
+ return __awaiter(this, void 0, void 0, function () {
23138
+ var localVarAxiosArgs;
23139
+ return __generator(this, function (_a) {
23140
+ switch (_a.label) {
23141
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options)];
23142
+ case 1:
23143
+ localVarAxiosArgs = _a.sent();
23144
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
23145
+ }
23146
+ });
23147
+ });
23148
+ },
23149
+ /**
23150
+ *
23151
+ * @summary Delete HospitalServiceMedia
23152
+ * @param {string} hospitalId
23153
+ * @param {string} hospitalSpecialtyId
23154
+ * @param {string} mediaId
23155
+ * @param {*} [options] Override http request option.
23156
+ * @throws {RequiredError}
23157
+ */
23158
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
23159
+ return __awaiter(this, void 0, void 0, function () {
23160
+ var localVarAxiosArgs;
23161
+ return __generator(this, function (_a) {
23162
+ switch (_a.label) {
23163
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options)];
23164
+ case 1:
23165
+ localVarAxiosArgs = _a.sent();
23166
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
23167
+ }
23168
+ });
23169
+ });
23170
+ },
23171
+ /**
23172
+ *
23173
+ * @summary Get HospitalServiceMedia.
23174
+ * @param {string} hospitalId
23175
+ * @param {string} hospitalSpecialtyId
23176
+ * @param {string} mediaId
23177
+ * @param {*} [options] Override http request option.
23178
+ * @throws {RequiredError}
23179
+ */
23180
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
23181
+ return __awaiter(this, void 0, void 0, function () {
23182
+ var localVarAxiosArgs;
23183
+ return __generator(this, function (_a) {
23184
+ switch (_a.label) {
23185
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options)];
23186
+ case 1:
23187
+ localVarAxiosArgs = _a.sent();
23188
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
23189
+ }
23190
+ });
23191
+ });
23192
+ },
23193
+ /**
23194
+ *
23195
+ * @summary Update HospitalServiceMedia.
23196
+ * @param {string} hospitalId
23197
+ * @param {string} hospitalSpecialtyId
23198
+ * @param {string} mediaId
23199
+ * @param {UpdateMediaCommand} [updateMediaCommand]
23200
+ * @param {*} [options] Override http request option.
23201
+ * @throws {RequiredError}
23202
+ */
23203
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut: function (hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options) {
23204
+ return __awaiter(this, void 0, void 0, function () {
23205
+ var localVarAxiosArgs;
23206
+ return __generator(this, function (_a) {
23207
+ switch (_a.label) {
23208
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options)];
23209
+ case 1:
23210
+ localVarAxiosArgs = _a.sent();
23211
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
23212
+ }
23213
+ });
23214
+ });
23215
+ },
23216
+ /**
23217
+ *
23218
+ * @summary Create HospitalServiceMedia.
23219
+ * @param {string} hospitalId
23220
+ * @param {string} hospitalSpecialtyId
23221
+ * @param {CreateMediaCommand} [createMediaCommand]
23222
+ * @param {*} [options] Override http request option.
23223
+ * @throws {RequiredError}
23224
+ */
23225
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: function (hospitalId, hospitalSpecialtyId, createMediaCommand, options) {
23226
+ return __awaiter(this, void 0, void 0, function () {
23227
+ var localVarAxiosArgs;
23228
+ return __generator(this, function (_a) {
23229
+ switch (_a.label) {
23230
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options)];
23231
+ case 1:
23232
+ localVarAxiosArgs = _a.sent();
23233
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
23234
+ }
23235
+ });
23236
+ });
23237
+ },
22848
23238
  /**
22849
23239
  *
22850
23240
  * @summary Create HospitalSpecialty.
@@ -23858,6 +24248,71 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
23858
24248
  apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
23859
24249
  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
24250
  },
24251
+ /**
24252
+ *
24253
+ * @summary Get all HospitalServiceMedias.
24254
+ * @param {string} hospitalId
24255
+ * @param {string} hospitalSpecialtyId
24256
+ * @param {string} [id]
24257
+ * @param {MediaType} [mediaType]
24258
+ * @param {number} [page]
24259
+ * @param {number} [limit]
24260
+ * @param {Date} [lastRetrieved]
24261
+ * @param {*} [options] Override http request option.
24262
+ * @throws {RequiredError}
24263
+ */
24264
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
24265
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
24266
+ },
24267
+ /**
24268
+ *
24269
+ * @summary Delete HospitalServiceMedia
24270
+ * @param {string} hospitalId
24271
+ * @param {string} hospitalSpecialtyId
24272
+ * @param {string} mediaId
24273
+ * @param {*} [options] Override http request option.
24274
+ * @throws {RequiredError}
24275
+ */
24276
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
24277
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options).then(function (request) { return request(axios, basePath); });
24278
+ },
24279
+ /**
24280
+ *
24281
+ * @summary Get HospitalServiceMedia.
24282
+ * @param {string} hospitalId
24283
+ * @param {string} hospitalSpecialtyId
24284
+ * @param {string} mediaId
24285
+ * @param {*} [options] Override http request option.
24286
+ * @throws {RequiredError}
24287
+ */
24288
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
24289
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then(function (request) { return request(axios, basePath); });
24290
+ },
24291
+ /**
24292
+ *
24293
+ * @summary Update HospitalServiceMedia.
24294
+ * @param {string} hospitalId
24295
+ * @param {string} hospitalSpecialtyId
24296
+ * @param {string} mediaId
24297
+ * @param {UpdateMediaCommand} [updateMediaCommand]
24298
+ * @param {*} [options] Override http request option.
24299
+ * @throws {RequiredError}
24300
+ */
24301
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut: function (hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options) {
24302
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options).then(function (request) { return request(axios, basePath); });
24303
+ },
24304
+ /**
24305
+ *
24306
+ * @summary Create HospitalServiceMedia.
24307
+ * @param {string} hospitalId
24308
+ * @param {string} hospitalSpecialtyId
24309
+ * @param {CreateMediaCommand} [createMediaCommand]
24310
+ * @param {*} [options] Override http request option.
24311
+ * @throws {RequiredError}
24312
+ */
24313
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: function (hospitalId, hospitalSpecialtyId, createMediaCommand, options) {
24314
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
24315
+ },
23861
24316
  /**
23862
24317
  *
23863
24318
  * @summary Create HospitalSpecialty.
@@ -24713,6 +25168,81 @@ var HospitalsApi = /** @class */ (function (_super) {
24713
25168
  var _this = this;
24714
25169
  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
25170
  };
25171
+ /**
25172
+ *
25173
+ * @summary Get all HospitalServiceMedias.
25174
+ * @param {string} hospitalId
25175
+ * @param {string} hospitalSpecialtyId
25176
+ * @param {string} [id]
25177
+ * @param {MediaType} [mediaType]
25178
+ * @param {number} [page]
25179
+ * @param {number} [limit]
25180
+ * @param {Date} [lastRetrieved]
25181
+ * @param {*} [options] Override http request option.
25182
+ * @throws {RequiredError}
25183
+ * @memberof HospitalsApi
25184
+ */
25185
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet = function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
25186
+ var _this = this;
25187
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
25188
+ };
25189
+ /**
25190
+ *
25191
+ * @summary Delete HospitalServiceMedia
25192
+ * @param {string} hospitalId
25193
+ * @param {string} hospitalSpecialtyId
25194
+ * @param {string} mediaId
25195
+ * @param {*} [options] Override http request option.
25196
+ * @throws {RequiredError}
25197
+ * @memberof HospitalsApi
25198
+ */
25199
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete = function (hospitalId, hospitalSpecialtyId, mediaId, options) {
25200
+ var _this = this;
25201
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
25202
+ };
25203
+ /**
25204
+ *
25205
+ * @summary Get HospitalServiceMedia.
25206
+ * @param {string} hospitalId
25207
+ * @param {string} hospitalSpecialtyId
25208
+ * @param {string} mediaId
25209
+ * @param {*} [options] Override http request option.
25210
+ * @throws {RequiredError}
25211
+ * @memberof HospitalsApi
25212
+ */
25213
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet = function (hospitalId, hospitalSpecialtyId, mediaId, options) {
25214
+ var _this = this;
25215
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
25216
+ };
25217
+ /**
25218
+ *
25219
+ * @summary Update HospitalServiceMedia.
25220
+ * @param {string} hospitalId
25221
+ * @param {string} hospitalSpecialtyId
25222
+ * @param {string} mediaId
25223
+ * @param {UpdateMediaCommand} [updateMediaCommand]
25224
+ * @param {*} [options] Override http request option.
25225
+ * @throws {RequiredError}
25226
+ * @memberof HospitalsApi
25227
+ */
25228
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut = function (hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options) {
25229
+ var _this = this;
25230
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
25231
+ };
25232
+ /**
25233
+ *
25234
+ * @summary Create HospitalServiceMedia.
25235
+ * @param {string} hospitalId
25236
+ * @param {string} hospitalSpecialtyId
25237
+ * @param {CreateMediaCommand} [createMediaCommand]
25238
+ * @param {*} [options] Override http request option.
25239
+ * @throws {RequiredError}
25240
+ * @memberof HospitalsApi
25241
+ */
25242
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost = function (hospitalId, hospitalSpecialtyId, createMediaCommand, options) {
25243
+ var _this = this;
25244
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
25245
+ };
24716
25246
  /**
24717
25247
  *
24718
25248
  * @summary Create HospitalSpecialty.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "index.js",
6
6
  "scripts": {