ch-admin-api-client-typescript 2.1.3 → 2.1.7

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
@@ -76,7 +76,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
76
76
  return (mod && mod.__esModule) ? mod : { "default": mod };
77
77
  };
78
78
  Object.defineProperty(exports, "__esModule", { value: true });
79
- exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
79
+ exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
80
80
  var axios_1 = __importDefault(require("axios"));
81
81
  // Some imports not used depending on template conditions
82
82
  // @ts-ignore
@@ -193,6 +193,33 @@ var MediaType;
193
193
  MediaType["Youtube"] = "Youtube";
194
194
  MediaType["Document"] = "Document";
195
195
  })(MediaType = exports.MediaType || (exports.MediaType = {}));
196
+ /**
197
+ *
198
+ * @export
199
+ * @enum {string}
200
+ */
201
+ var NotificationCode;
202
+ (function (NotificationCode) {
203
+ NotificationCode["WelcomeEmail"] = "WelcomeEmail";
204
+ NotificationCode["DirectMessageSent"] = "DirectMessageSent";
205
+ NotificationCode["BookingNew"] = "BookingNew";
206
+ NotificationCode["BookingUpdated"] = "BookingUpdated";
207
+ NotificationCode["BookingRejected"] = "BookingRejected";
208
+ NotificationCode["BookingApproved"] = "BookingApproved";
209
+ NotificationCode["BookingPaid"] = "BookingPaid";
210
+ NotificationCode["BookingCanceled"] = "BookingCanceled";
211
+ NotificationCode["BookingRefundRequested"] = "BookingRefundRequested";
212
+ NotificationCode["BookingRefunded"] = "BookingRefunded";
213
+ NotificationCode["ConsultationNew"] = "ConsultationNew";
214
+ NotificationCode["ConsultationUpdated"] = "ConsultationUpdated";
215
+ NotificationCode["ConsultationRejected"] = "ConsultationRejected";
216
+ NotificationCode["ConsultationApproved"] = "ConsultationApproved";
217
+ NotificationCode["ConsultationPaid"] = "ConsultationPaid";
218
+ NotificationCode["ConsultationCanceled"] = "ConsultationCanceled";
219
+ NotificationCode["ConsultationRefundRequested"] = "ConsultationRefundRequested";
220
+ NotificationCode["ConsultationRefunded"] = "ConsultationRefunded";
221
+ NotificationCode["ConsultationReady"] = "ConsultationReady";
222
+ })(NotificationCode = exports.NotificationCode || (exports.NotificationCode = {}));
196
223
  /**
197
224
  *
198
225
  * @export
@@ -1014,7 +1041,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1014
1041
  *
1015
1042
  * @summary GetAll ArticleContributors.
1016
1043
  * @param {string} articleId
1017
- * @param {string} [articleId2]
1018
1044
  * @param {string} [articleName]
1019
1045
  * @param {string} [contributorId]
1020
1046
  * @param {string} [contributorName]
@@ -1028,7 +1054,7 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1028
1054
  * @param {*} [options] Override http request option.
1029
1055
  * @throws {RequiredError}
1030
1056
  */
1031
- apiV1ArticlesArticleIdContributorsGet: function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
1057
+ apiV1ArticlesArticleIdContributorsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
1032
1058
  if (options === void 0) { options = {}; }
1033
1059
  return __awaiter(_this, void 0, void 0, function () {
1034
1060
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1053,9 +1079,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1053
1079
  // authentication oauth2 required
1054
1080
  // oauth required
1055
1081
  _a.sent();
1056
- if (articleId2 !== undefined) {
1057
- localVarQueryParameter['ArticleId'] = articleId2;
1058
- }
1059
1082
  if (articleName !== undefined) {
1060
1083
  localVarQueryParameter['ArticleName'] = articleName;
1061
1084
  }
@@ -1787,7 +1810,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1787
1810
  *
1788
1811
  * @summary GetAll ArticleContributors.
1789
1812
  * @param {string} articleId
1790
- * @param {string} [articleId2]
1791
1813
  * @param {string} [articleName]
1792
1814
  * @param {string} [contributorId]
1793
1815
  * @param {string} [contributorName]
@@ -1801,7 +1823,7 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1801
1823
  * @param {*} [options] Override http request option.
1802
1824
  * @throws {RequiredError}
1803
1825
  */
1804
- apiV1ArticlesArticleIdTagsGet: function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
1826
+ apiV1ArticlesArticleIdTagsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
1805
1827
  if (options === void 0) { options = {}; }
1806
1828
  return __awaiter(_this, void 0, void 0, function () {
1807
1829
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1826,9 +1848,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1826
1848
  // authentication oauth2 required
1827
1849
  // oauth required
1828
1850
  _a.sent();
1829
- if (articleId2 !== undefined) {
1830
- localVarQueryParameter['ArticleId'] = articleId2;
1831
- }
1832
1851
  if (articleName !== undefined) {
1833
1852
  localVarQueryParameter['ArticleName'] = articleName;
1834
1853
  }
@@ -2298,7 +2317,6 @@ exports.ArticlesApiFp = function (configuration) {
2298
2317
  *
2299
2318
  * @summary GetAll ArticleContributors.
2300
2319
  * @param {string} articleId
2301
- * @param {string} [articleId2]
2302
2320
  * @param {string} [articleName]
2303
2321
  * @param {string} [contributorId]
2304
2322
  * @param {string} [contributorName]
@@ -2312,12 +2330,12 @@ exports.ArticlesApiFp = function (configuration) {
2312
2330
  * @param {*} [options] Override http request option.
2313
2331
  * @throws {RequiredError}
2314
2332
  */
2315
- apiV1ArticlesArticleIdContributorsGet: function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
2333
+ apiV1ArticlesArticleIdContributorsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
2316
2334
  return __awaiter(this, void 0, void 0, function () {
2317
2335
  var localVarAxiosArgs;
2318
2336
  return __generator(this, function (_a) {
2319
2337
  switch (_a.label) {
2320
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdContributorsGet(articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options)];
2338
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options)];
2321
2339
  case 1:
2322
2340
  localVarAxiosArgs = _a.sent();
2323
2341
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2630,7 +2648,6 @@ exports.ArticlesApiFp = function (configuration) {
2630
2648
  *
2631
2649
  * @summary GetAll ArticleContributors.
2632
2650
  * @param {string} articleId
2633
- * @param {string} [articleId2]
2634
2651
  * @param {string} [articleName]
2635
2652
  * @param {string} [contributorId]
2636
2653
  * @param {string} [contributorName]
@@ -2644,12 +2661,12 @@ exports.ArticlesApiFp = function (configuration) {
2644
2661
  * @param {*} [options] Override http request option.
2645
2662
  * @throws {RequiredError}
2646
2663
  */
2647
- apiV1ArticlesArticleIdTagsGet: function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
2664
+ apiV1ArticlesArticleIdTagsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
2648
2665
  return __awaiter(this, void 0, void 0, function () {
2649
2666
  var localVarAxiosArgs;
2650
2667
  return __generator(this, function (_a) {
2651
2668
  switch (_a.label) {
2652
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options)];
2669
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options)];
2653
2670
  case 1:
2654
2671
  localVarAxiosArgs = _a.sent();
2655
2672
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2846,7 +2863,6 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
2846
2863
  *
2847
2864
  * @summary GetAll ArticleContributors.
2848
2865
  * @param {string} articleId
2849
- * @param {string} [articleId2]
2850
2866
  * @param {string} [articleName]
2851
2867
  * @param {string} [contributorId]
2852
2868
  * @param {string} [contributorName]
@@ -2860,8 +2876,8 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
2860
2876
  * @param {*} [options] Override http request option.
2861
2877
  * @throws {RequiredError}
2862
2878
  */
2863
- apiV1ArticlesArticleIdContributorsGet: function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
2864
- return localVarFp.apiV1ArticlesArticleIdContributorsGet(articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
2879
+ apiV1ArticlesArticleIdContributorsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
2880
+ return localVarFp.apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
2865
2881
  },
2866
2882
  /**
2867
2883
  *
@@ -3028,7 +3044,6 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
3028
3044
  *
3029
3045
  * @summary GetAll ArticleContributors.
3030
3046
  * @param {string} articleId
3031
- * @param {string} [articleId2]
3032
3047
  * @param {string} [articleName]
3033
3048
  * @param {string} [contributorId]
3034
3049
  * @param {string} [contributorName]
@@ -3042,8 +3057,8 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
3042
3057
  * @param {*} [options] Override http request option.
3043
3058
  * @throws {RequiredError}
3044
3059
  */
3045
- apiV1ArticlesArticleIdTagsGet: function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
3046
- return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
3060
+ apiV1ArticlesArticleIdTagsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
3061
+ return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
3047
3062
  },
3048
3063
  /**
3049
3064
  *
@@ -3184,7 +3199,6 @@ var ArticlesApi = /** @class */ (function (_super) {
3184
3199
  *
3185
3200
  * @summary GetAll ArticleContributors.
3186
3201
  * @param {string} articleId
3187
- * @param {string} [articleId2]
3188
3202
  * @param {string} [articleName]
3189
3203
  * @param {string} [contributorId]
3190
3204
  * @param {string} [contributorName]
@@ -3199,9 +3213,9 @@ var ArticlesApi = /** @class */ (function (_super) {
3199
3213
  * @throws {RequiredError}
3200
3214
  * @memberof ArticlesApi
3201
3215
  */
3202
- ArticlesApi.prototype.apiV1ArticlesArticleIdContributorsGet = function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
3216
+ ArticlesApi.prototype.apiV1ArticlesArticleIdContributorsGet = function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
3203
3217
  var _this = this;
3204
- return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdContributorsGet(articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
3218
+ return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
3205
3219
  };
3206
3220
  /**
3207
3221
  *
@@ -3396,7 +3410,6 @@ var ArticlesApi = /** @class */ (function (_super) {
3396
3410
  *
3397
3411
  * @summary GetAll ArticleContributors.
3398
3412
  * @param {string} articleId
3399
- * @param {string} [articleId2]
3400
3413
  * @param {string} [articleName]
3401
3414
  * @param {string} [contributorId]
3402
3415
  * @param {string} [contributorName]
@@ -3411,9 +3424,9 @@ var ArticlesApi = /** @class */ (function (_super) {
3411
3424
  * @throws {RequiredError}
3412
3425
  * @memberof ArticlesApi
3413
3426
  */
3414
- ArticlesApi.prototype.apiV1ArticlesArticleIdTagsGet = function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
3427
+ ArticlesApi.prototype.apiV1ArticlesArticleIdTagsGet = function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
3415
3428
  var _this = this;
3416
- return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
3429
+ return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
3417
3430
  };
3418
3431
  /**
3419
3432
  *
@@ -4126,6 +4139,281 @@ var BookingsApi = /** @class */ (function (_super) {
4126
4139
  return BookingsApi;
4127
4140
  }(base_1.BaseAPI));
4128
4141
  exports.BookingsApi = BookingsApi;
4142
+ /**
4143
+ * CommunicationsApi - axios parameter creator
4144
+ * @export
4145
+ */
4146
+ exports.CommunicationsApiAxiosParamCreator = function (configuration) {
4147
+ var _this = this;
4148
+ return {
4149
+ /**
4150
+ *
4151
+ * @summary Delete CommunicationUser.
4152
+ * @param {*} [options] Override http request option.
4153
+ * @throws {RequiredError}
4154
+ */
4155
+ apiV1CommunicationsDelete: function (options) {
4156
+ if (options === void 0) { options = {}; }
4157
+ return __awaiter(_this, void 0, void 0, function () {
4158
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4159
+ return __generator(this, function (_a) {
4160
+ switch (_a.label) {
4161
+ case 0:
4162
+ localVarPath = "/api/v1/communications";
4163
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4164
+ if (configuration) {
4165
+ baseOptions = configuration.baseOptions;
4166
+ }
4167
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
4168
+ localVarHeaderParameter = {};
4169
+ localVarQueryParameter = {};
4170
+ // authentication oauth2 required
4171
+ // oauth required
4172
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
4173
+ case 1:
4174
+ // authentication oauth2 required
4175
+ // oauth required
4176
+ _a.sent();
4177
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4178
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4179
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4180
+ return [2 /*return*/, {
4181
+ url: common_1.toPathString(localVarUrlObj),
4182
+ options: localVarRequestOptions,
4183
+ }];
4184
+ }
4185
+ });
4186
+ });
4187
+ },
4188
+ /**
4189
+ *
4190
+ * @summary Get CommunicationUser.
4191
+ * @param {*} [options] Override http request option.
4192
+ * @throws {RequiredError}
4193
+ */
4194
+ apiV1CommunicationsGet: function (options) {
4195
+ if (options === void 0) { options = {}; }
4196
+ return __awaiter(_this, void 0, void 0, function () {
4197
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4198
+ return __generator(this, function (_a) {
4199
+ switch (_a.label) {
4200
+ case 0:
4201
+ localVarPath = "/api/v1/communications";
4202
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4203
+ if (configuration) {
4204
+ baseOptions = configuration.baseOptions;
4205
+ }
4206
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
4207
+ localVarHeaderParameter = {};
4208
+ localVarQueryParameter = {};
4209
+ // authentication oauth2 required
4210
+ // oauth required
4211
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
4212
+ case 1:
4213
+ // authentication oauth2 required
4214
+ // oauth required
4215
+ _a.sent();
4216
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4217
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4218
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4219
+ return [2 /*return*/, {
4220
+ url: common_1.toPathString(localVarUrlObj),
4221
+ options: localVarRequestOptions,
4222
+ }];
4223
+ }
4224
+ });
4225
+ });
4226
+ },
4227
+ /**
4228
+ *
4229
+ * @summary Revoke CommunicationUser.
4230
+ * @param {*} [options] Override http request option.
4231
+ * @throws {RequiredError}
4232
+ */
4233
+ apiV1CommunicationsPut: function (options) {
4234
+ if (options === void 0) { options = {}; }
4235
+ return __awaiter(_this, void 0, void 0, function () {
4236
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4237
+ return __generator(this, function (_a) {
4238
+ switch (_a.label) {
4239
+ case 0:
4240
+ localVarPath = "/api/v1/communications";
4241
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4242
+ if (configuration) {
4243
+ baseOptions = configuration.baseOptions;
4244
+ }
4245
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
4246
+ localVarHeaderParameter = {};
4247
+ localVarQueryParameter = {};
4248
+ // authentication oauth2 required
4249
+ // oauth required
4250
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
4251
+ case 1:
4252
+ // authentication oauth2 required
4253
+ // oauth required
4254
+ _a.sent();
4255
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4256
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4257
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4258
+ return [2 /*return*/, {
4259
+ url: common_1.toPathString(localVarUrlObj),
4260
+ options: localVarRequestOptions,
4261
+ }];
4262
+ }
4263
+ });
4264
+ });
4265
+ },
4266
+ };
4267
+ };
4268
+ /**
4269
+ * CommunicationsApi - functional programming interface
4270
+ * @export
4271
+ */
4272
+ exports.CommunicationsApiFp = function (configuration) {
4273
+ var localVarAxiosParamCreator = exports.CommunicationsApiAxiosParamCreator(configuration);
4274
+ return {
4275
+ /**
4276
+ *
4277
+ * @summary Delete CommunicationUser.
4278
+ * @param {*} [options] Override http request option.
4279
+ * @throws {RequiredError}
4280
+ */
4281
+ apiV1CommunicationsDelete: function (options) {
4282
+ return __awaiter(this, void 0, void 0, function () {
4283
+ var localVarAxiosArgs;
4284
+ return __generator(this, function (_a) {
4285
+ switch (_a.label) {
4286
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CommunicationsDelete(options)];
4287
+ case 1:
4288
+ localVarAxiosArgs = _a.sent();
4289
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4290
+ }
4291
+ });
4292
+ });
4293
+ },
4294
+ /**
4295
+ *
4296
+ * @summary Get CommunicationUser.
4297
+ * @param {*} [options] Override http request option.
4298
+ * @throws {RequiredError}
4299
+ */
4300
+ apiV1CommunicationsGet: function (options) {
4301
+ return __awaiter(this, void 0, void 0, function () {
4302
+ var localVarAxiosArgs;
4303
+ return __generator(this, function (_a) {
4304
+ switch (_a.label) {
4305
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CommunicationsGet(options)];
4306
+ case 1:
4307
+ localVarAxiosArgs = _a.sent();
4308
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4309
+ }
4310
+ });
4311
+ });
4312
+ },
4313
+ /**
4314
+ *
4315
+ * @summary Revoke CommunicationUser.
4316
+ * @param {*} [options] Override http request option.
4317
+ * @throws {RequiredError}
4318
+ */
4319
+ apiV1CommunicationsPut: function (options) {
4320
+ return __awaiter(this, void 0, void 0, function () {
4321
+ var localVarAxiosArgs;
4322
+ return __generator(this, function (_a) {
4323
+ switch (_a.label) {
4324
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CommunicationsPut(options)];
4325
+ case 1:
4326
+ localVarAxiosArgs = _a.sent();
4327
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4328
+ }
4329
+ });
4330
+ });
4331
+ },
4332
+ };
4333
+ };
4334
+ /**
4335
+ * CommunicationsApi - factory interface
4336
+ * @export
4337
+ */
4338
+ exports.CommunicationsApiFactory = function (configuration, basePath, axios) {
4339
+ var localVarFp = exports.CommunicationsApiFp(configuration);
4340
+ return {
4341
+ /**
4342
+ *
4343
+ * @summary Delete CommunicationUser.
4344
+ * @param {*} [options] Override http request option.
4345
+ * @throws {RequiredError}
4346
+ */
4347
+ apiV1CommunicationsDelete: function (options) {
4348
+ return localVarFp.apiV1CommunicationsDelete(options).then(function (request) { return request(axios, basePath); });
4349
+ },
4350
+ /**
4351
+ *
4352
+ * @summary Get CommunicationUser.
4353
+ * @param {*} [options] Override http request option.
4354
+ * @throws {RequiredError}
4355
+ */
4356
+ apiV1CommunicationsGet: function (options) {
4357
+ return localVarFp.apiV1CommunicationsGet(options).then(function (request) { return request(axios, basePath); });
4358
+ },
4359
+ /**
4360
+ *
4361
+ * @summary Revoke CommunicationUser.
4362
+ * @param {*} [options] Override http request option.
4363
+ * @throws {RequiredError}
4364
+ */
4365
+ apiV1CommunicationsPut: function (options) {
4366
+ return localVarFp.apiV1CommunicationsPut(options).then(function (request) { return request(axios, basePath); });
4367
+ },
4368
+ };
4369
+ };
4370
+ /**
4371
+ * CommunicationsApi - object-oriented interface
4372
+ * @export
4373
+ * @class CommunicationsApi
4374
+ * @extends {BaseAPI}
4375
+ */
4376
+ var CommunicationsApi = /** @class */ (function (_super) {
4377
+ __extends(CommunicationsApi, _super);
4378
+ function CommunicationsApi() {
4379
+ return _super !== null && _super.apply(this, arguments) || this;
4380
+ }
4381
+ /**
4382
+ *
4383
+ * @summary Delete CommunicationUser.
4384
+ * @param {*} [options] Override http request option.
4385
+ * @throws {RequiredError}
4386
+ * @memberof CommunicationsApi
4387
+ */
4388
+ CommunicationsApi.prototype.apiV1CommunicationsDelete = function (options) {
4389
+ var _this = this;
4390
+ return exports.CommunicationsApiFp(this.configuration).apiV1CommunicationsDelete(options).then(function (request) { return request(_this.axios, _this.basePath); });
4391
+ };
4392
+ /**
4393
+ *
4394
+ * @summary Get CommunicationUser.
4395
+ * @param {*} [options] Override http request option.
4396
+ * @throws {RequiredError}
4397
+ * @memberof CommunicationsApi
4398
+ */
4399
+ CommunicationsApi.prototype.apiV1CommunicationsGet = function (options) {
4400
+ var _this = this;
4401
+ return exports.CommunicationsApiFp(this.configuration).apiV1CommunicationsGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
4402
+ };
4403
+ /**
4404
+ *
4405
+ * @summary Revoke CommunicationUser.
4406
+ * @param {*} [options] Override http request option.
4407
+ * @throws {RequiredError}
4408
+ * @memberof CommunicationsApi
4409
+ */
4410
+ CommunicationsApi.prototype.apiV1CommunicationsPut = function (options) {
4411
+ var _this = this;
4412
+ return exports.CommunicationsApiFp(this.configuration).apiV1CommunicationsPut(options).then(function (request) { return request(_this.axios, _this.basePath); });
4413
+ };
4414
+ return CommunicationsApi;
4415
+ }(base_1.BaseAPI));
4416
+ exports.CommunicationsApi = CommunicationsApi;
4129
4417
  /**
4130
4418
  * ConsultationsApi - axios parameter creator
4131
4419
  * @export
@@ -4999,13 +5287,14 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
4999
5287
  },
5000
5288
  /**
5001
5289
  *
5002
- * @summary Get ContributorHandle.
5290
+ * @summary Update ContributorHandle.
5003
5291
  * @param {string} contributorId
5004
- * @param {CreateContributorSnsHandleCommand} [createContributorSnsHandleCommand]
5292
+ * @param {string} handleId
5293
+ * @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
5005
5294
  * @param {*} [options] Override http request option.
5006
5295
  * @throws {RequiredError}
5007
5296
  */
5008
- apiV1ContributorsContributorIdHandlesPost: function (contributorId, createContributorSnsHandleCommand, options) {
5297
+ apiV1ContributorsContributorIdHandlesHandleIdPut: function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
5009
5298
  if (options === void 0) { options = {}; }
5010
5299
  return __awaiter(_this, void 0, void 0, function () {
5011
5300
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -5013,14 +5302,17 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
5013
5302
  switch (_a.label) {
5014
5303
  case 0:
5015
5304
  // verify required parameter 'contributorId' is not null or undefined
5016
- common_1.assertParamExists('apiV1ContributorsContributorIdHandlesPost', 'contributorId', contributorId);
5017
- localVarPath = "/api/v1/contributors/{contributorId}/handles"
5018
- .replace("{" + "contributorId" + "}", encodeURIComponent(String(contributorId)));
5305
+ common_1.assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdPut', 'contributorId', contributorId);
5306
+ // verify required parameter 'handleId' is not null or undefined
5307
+ common_1.assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdPut', 'handleId', handleId);
5308
+ localVarPath = "/api/v1/contributors/{contributorId}/handles/{handleId}"
5309
+ .replace("{" + "contributorId" + "}", encodeURIComponent(String(contributorId)))
5310
+ .replace("{" + "handleId" + "}", encodeURIComponent(String(handleId)));
5019
5311
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5020
5312
  if (configuration) {
5021
5313
  baseOptions = configuration.baseOptions;
5022
5314
  }
5023
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
5315
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
5024
5316
  localVarHeaderParameter = {};
5025
5317
  localVarQueryParameter = {};
5026
5318
  // authentication oauth2 required
@@ -5034,7 +5326,7 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
5034
5326
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5035
5327
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5036
5328
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5037
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(createContributorSnsHandleCommand, localVarRequestOptions, configuration);
5329
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateContributorSnsHandleCommand, localVarRequestOptions, configuration);
5038
5330
  return [2 /*return*/, {
5039
5331
  url: common_1.toPathString(localVarUrlObj),
5040
5332
  options: localVarRequestOptions,
@@ -5045,13 +5337,13 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
5045
5337
  },
5046
5338
  /**
5047
5339
  *
5048
- * @summary Update Contributor.
5340
+ * @summary Get ContributorHandle.
5049
5341
  * @param {string} contributorId
5050
- * @param {UpdateContributorCommand} [updateContributorCommand]
5342
+ * @param {CreateContributorSnsHandleCommand} [createContributorSnsHandleCommand]
5051
5343
  * @param {*} [options] Override http request option.
5052
5344
  * @throws {RequiredError}
5053
5345
  */
5054
- apiV1ContributorsContributorIdPut: function (contributorId, updateContributorCommand, options) {
5346
+ apiV1ContributorsContributorIdHandlesPost: function (contributorId, createContributorSnsHandleCommand, options) {
5055
5347
  if (options === void 0) { options = {}; }
5056
5348
  return __awaiter(_this, void 0, void 0, function () {
5057
5349
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -5059,14 +5351,14 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
5059
5351
  switch (_a.label) {
5060
5352
  case 0:
5061
5353
  // verify required parameter 'contributorId' is not null or undefined
5062
- common_1.assertParamExists('apiV1ContributorsContributorIdPut', 'contributorId', contributorId);
5063
- localVarPath = "/api/v1/contributors/{contributorId}"
5354
+ common_1.assertParamExists('apiV1ContributorsContributorIdHandlesPost', 'contributorId', contributorId);
5355
+ localVarPath = "/api/v1/contributors/{contributorId}/handles"
5064
5356
  .replace("{" + "contributorId" + "}", encodeURIComponent(String(contributorId)));
5065
5357
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5066
5358
  if (configuration) {
5067
5359
  baseOptions = configuration.baseOptions;
5068
5360
  }
5069
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
5361
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
5070
5362
  localVarHeaderParameter = {};
5071
5363
  localVarQueryParameter = {};
5072
5364
  // authentication oauth2 required
@@ -5080,7 +5372,53 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
5080
5372
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5081
5373
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5082
5374
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5083
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateContributorCommand, localVarRequestOptions, configuration);
5375
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createContributorSnsHandleCommand, localVarRequestOptions, configuration);
5376
+ return [2 /*return*/, {
5377
+ url: common_1.toPathString(localVarUrlObj),
5378
+ options: localVarRequestOptions,
5379
+ }];
5380
+ }
5381
+ });
5382
+ });
5383
+ },
5384
+ /**
5385
+ *
5386
+ * @summary Update Contributor.
5387
+ * @param {string} contributorId
5388
+ * @param {UpdateContributorCommand} [updateContributorCommand]
5389
+ * @param {*} [options] Override http request option.
5390
+ * @throws {RequiredError}
5391
+ */
5392
+ apiV1ContributorsContributorIdPut: function (contributorId, updateContributorCommand, options) {
5393
+ if (options === void 0) { options = {}; }
5394
+ return __awaiter(_this, void 0, void 0, function () {
5395
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
5396
+ return __generator(this, function (_a) {
5397
+ switch (_a.label) {
5398
+ case 0:
5399
+ // verify required parameter 'contributorId' is not null or undefined
5400
+ common_1.assertParamExists('apiV1ContributorsContributorIdPut', 'contributorId', contributorId);
5401
+ localVarPath = "/api/v1/contributors/{contributorId}"
5402
+ .replace("{" + "contributorId" + "}", encodeURIComponent(String(contributorId)));
5403
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5404
+ if (configuration) {
5405
+ baseOptions = configuration.baseOptions;
5406
+ }
5407
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
5408
+ localVarHeaderParameter = {};
5409
+ localVarQueryParameter = {};
5410
+ // authentication oauth2 required
5411
+ // oauth required
5412
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
5413
+ case 1:
5414
+ // authentication oauth2 required
5415
+ // oauth required
5416
+ _a.sent();
5417
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5418
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5419
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5420
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5421
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateContributorCommand, localVarRequestOptions, configuration);
5084
5422
  return [2 /*return*/, {
5085
5423
  url: common_1.toPathString(localVarUrlObj),
5086
5424
  options: localVarRequestOptions,
@@ -5386,6 +5724,28 @@ exports.ContributorsApiFp = function (configuration) {
5386
5724
  });
5387
5725
  });
5388
5726
  },
5727
+ /**
5728
+ *
5729
+ * @summary Update ContributorHandle.
5730
+ * @param {string} contributorId
5731
+ * @param {string} handleId
5732
+ * @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
5733
+ * @param {*} [options] Override http request option.
5734
+ * @throws {RequiredError}
5735
+ */
5736
+ apiV1ContributorsContributorIdHandlesHandleIdPut: function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
5737
+ return __awaiter(this, void 0, void 0, function () {
5738
+ var localVarAxiosArgs;
5739
+ return __generator(this, function (_a) {
5740
+ switch (_a.label) {
5741
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options)];
5742
+ case 1:
5743
+ localVarAxiosArgs = _a.sent();
5744
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
5745
+ }
5746
+ });
5747
+ });
5748
+ },
5389
5749
  /**
5390
5750
  *
5391
5751
  * @summary Get ContributorHandle.
@@ -5569,6 +5929,18 @@ exports.ContributorsApiFactory = function (configuration, basePath, axios) {
5569
5929
  apiV1ContributorsContributorIdHandlesHandleIdGet: function (contributorId, handleId, options) {
5570
5930
  return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options).then(function (request) { return request(axios, basePath); });
5571
5931
  },
5932
+ /**
5933
+ *
5934
+ * @summary Update ContributorHandle.
5935
+ * @param {string} contributorId
5936
+ * @param {string} handleId
5937
+ * @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
5938
+ * @param {*} [options] Override http request option.
5939
+ * @throws {RequiredError}
5940
+ */
5941
+ apiV1ContributorsContributorIdHandlesHandleIdPut: function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
5942
+ return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options).then(function (request) { return request(axios, basePath); });
5943
+ },
5572
5944
  /**
5573
5945
  *
5574
5946
  * @summary Get ContributorHandle.
@@ -5716,6 +6088,20 @@ var ContributorsApi = /** @class */ (function (_super) {
5716
6088
  var _this = this;
5717
6089
  return exports.ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
5718
6090
  };
6091
+ /**
6092
+ *
6093
+ * @summary Update ContributorHandle.
6094
+ * @param {string} contributorId
6095
+ * @param {string} handleId
6096
+ * @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
6097
+ * @param {*} [options] Override http request option.
6098
+ * @throws {RequiredError}
6099
+ * @memberof ContributorsApi
6100
+ */
6101
+ ContributorsApi.prototype.apiV1ContributorsContributorIdHandlesHandleIdPut = function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
6102
+ var _this = this;
6103
+ return exports.ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
6104
+ };
5719
6105
  /**
5720
6106
  *
5721
6107
  * @summary Get ContributorHandle.
@@ -9865,7 +10251,6 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9865
10251
  *
9866
10252
  * @summary Get All DoctorSpecialties.
9867
10253
  * @param {string} doctorId
9868
- * @param {string} [doctorId2]
9869
10254
  * @param {string} [doctorName]
9870
10255
  * @param {string} [specialtyId]
9871
10256
  * @param {string} [specialtyName]
@@ -9875,7 +10260,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9875
10260
  * @param {*} [options] Override http request option.
9876
10261
  * @throws {RequiredError}
9877
10262
  */
9878
- apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
10263
+ apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
9879
10264
  if (options === void 0) { options = {}; }
9880
10265
  return __awaiter(_this, void 0, void 0, function () {
9881
10266
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9900,9 +10285,6 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9900
10285
  // authentication oauth2 required
9901
10286
  // oauth required
9902
10287
  _a.sent();
9903
- if (doctorId2 !== undefined) {
9904
- localVarQueryParameter['DoctorId'] = doctorId2;
9905
- }
9906
10288
  if (doctorName !== undefined) {
9907
10289
  localVarQueryParameter['DoctorName'] = doctorName;
9908
10290
  }
@@ -9934,6 +10316,52 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9934
10316
  });
9935
10317
  });
9936
10318
  },
10319
+ /**
10320
+ *
10321
+ * @summary Link a doctor to a specialty.
10322
+ * @param {string} doctorId
10323
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
10324
+ * @param {*} [options] Override http request option.
10325
+ * @throws {RequiredError}
10326
+ */
10327
+ apiV1DoctorsDoctorIdSpecialtiesPost: function (doctorId, createDoctorSpecialtyCommand, options) {
10328
+ if (options === void 0) { options = {}; }
10329
+ return __awaiter(_this, void 0, void 0, function () {
10330
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10331
+ return __generator(this, function (_a) {
10332
+ switch (_a.label) {
10333
+ case 0:
10334
+ // verify required parameter 'doctorId' is not null or undefined
10335
+ common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesPost', 'doctorId', doctorId);
10336
+ localVarPath = "/api/v1/doctors/{doctorId}/specialties"
10337
+ .replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)));
10338
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10339
+ if (configuration) {
10340
+ baseOptions = configuration.baseOptions;
10341
+ }
10342
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10343
+ localVarHeaderParameter = {};
10344
+ localVarQueryParameter = {};
10345
+ // authentication oauth2 required
10346
+ // oauth required
10347
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
10348
+ case 1:
10349
+ // authentication oauth2 required
10350
+ // oauth required
10351
+ _a.sent();
10352
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10353
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10354
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10355
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10356
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createDoctorSpecialtyCommand, localVarRequestOptions, configuration);
10357
+ return [2 /*return*/, {
10358
+ url: common_1.toPathString(localVarUrlObj),
10359
+ options: localVarRequestOptions,
10360
+ }];
10361
+ }
10362
+ });
10363
+ });
10364
+ },
9937
10365
  /**
9938
10366
  *
9939
10367
  * @summary Remove link between the doctor and the specialty.
@@ -10030,13 +10458,14 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10030
10458
  },
10031
10459
  /**
10032
10460
  *
10033
- * @summary Link a doctor to a specialty.
10461
+ * @summary Update DoctorSpecialty.
10034
10462
  * @param {string} doctorId
10035
10463
  * @param {string} specialtyId
10464
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
10036
10465
  * @param {*} [options] Override http request option.
10037
10466
  * @throws {RequiredError}
10038
10467
  */
10039
- apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost: function (doctorId, specialtyId, options) {
10468
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
10040
10469
  if (options === void 0) { options = {}; }
10041
10470
  return __awaiter(_this, void 0, void 0, function () {
10042
10471
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -10044,9 +10473,9 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10044
10473
  switch (_a.label) {
10045
10474
  case 0:
10046
10475
  // verify required parameter 'doctorId' is not null or undefined
10047
- common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost', 'doctorId', doctorId);
10476
+ common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut', 'doctorId', doctorId);
10048
10477
  // verify required parameter 'specialtyId' is not null or undefined
10049
- common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost', 'specialtyId', specialtyId);
10478
+ common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId);
10050
10479
  localVarPath = "/api/v1/doctors/{doctorId}/specialties/{specialtyId}"
10051
10480
  .replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)))
10052
10481
  .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
@@ -10054,7 +10483,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10054
10483
  if (configuration) {
10055
10484
  baseOptions = configuration.baseOptions;
10056
10485
  }
10057
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10486
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
10058
10487
  localVarHeaderParameter = {};
10059
10488
  localVarQueryParameter = {};
10060
10489
  // authentication oauth2 required
@@ -10064,9 +10493,11 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10064
10493
  // authentication oauth2 required
10065
10494
  // oauth required
10066
10495
  _a.sent();
10496
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10067
10497
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10068
10498
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10069
10499
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10500
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateDoctorSpecialtyCommand, localVarRequestOptions, configuration);
10070
10501
  return [2 /*return*/, {
10071
10502
  url: common_1.toPathString(localVarUrlObj),
10072
10503
  options: localVarRequestOptions,
@@ -10077,7 +10508,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10077
10508
  },
10078
10509
  /**
10079
10510
  *
10080
- * @summary Get all Doctor.
10511
+ * @summary Get all Doctors.
10081
10512
  * @param {string} [countryId]
10082
10513
  * @param {string} [hospitalId]
10083
10514
  * @param {MarketingType} [marketingType]
@@ -10851,7 +11282,6 @@ exports.DoctorsApiFp = function (configuration) {
10851
11282
  *
10852
11283
  * @summary Get All DoctorSpecialties.
10853
11284
  * @param {string} doctorId
10854
- * @param {string} [doctorId2]
10855
11285
  * @param {string} [doctorName]
10856
11286
  * @param {string} [specialtyId]
10857
11287
  * @param {string} [specialtyName]
@@ -10861,12 +11291,33 @@ exports.DoctorsApiFp = function (configuration) {
10861
11291
  * @param {*} [options] Override http request option.
10862
11292
  * @throws {RequiredError}
10863
11293
  */
10864
- apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
11294
+ apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
11295
+ return __awaiter(this, void 0, void 0, function () {
11296
+ var localVarAxiosArgs;
11297
+ return __generator(this, function (_a) {
11298
+ switch (_a.label) {
11299
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options)];
11300
+ case 1:
11301
+ localVarAxiosArgs = _a.sent();
11302
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
11303
+ }
11304
+ });
11305
+ });
11306
+ },
11307
+ /**
11308
+ *
11309
+ * @summary Link a doctor to a specialty.
11310
+ * @param {string} doctorId
11311
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
11312
+ * @param {*} [options] Override http request option.
11313
+ * @throws {RequiredError}
11314
+ */
11315
+ apiV1DoctorsDoctorIdSpecialtiesPost: function (doctorId, createDoctorSpecialtyCommand, options) {
10865
11316
  return __awaiter(this, void 0, void 0, function () {
10866
11317
  var localVarAxiosArgs;
10867
11318
  return __generator(this, function (_a) {
10868
11319
  switch (_a.label) {
10869
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options)];
11320
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options)];
10870
11321
  case 1:
10871
11322
  localVarAxiosArgs = _a.sent();
10872
11323
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -10918,18 +11369,19 @@ exports.DoctorsApiFp = function (configuration) {
10918
11369
  },
10919
11370
  /**
10920
11371
  *
10921
- * @summary Link a doctor to a specialty.
11372
+ * @summary Update DoctorSpecialty.
10922
11373
  * @param {string} doctorId
10923
11374
  * @param {string} specialtyId
11375
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
10924
11376
  * @param {*} [options] Override http request option.
10925
11377
  * @throws {RequiredError}
10926
11378
  */
10927
- apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost: function (doctorId, specialtyId, options) {
11379
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
10928
11380
  return __awaiter(this, void 0, void 0, function () {
10929
11381
  var localVarAxiosArgs;
10930
11382
  return __generator(this, function (_a) {
10931
11383
  switch (_a.label) {
10932
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost(doctorId, specialtyId, options)];
11384
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options)];
10933
11385
  case 1:
10934
11386
  localVarAxiosArgs = _a.sent();
10935
11387
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -10939,7 +11391,7 @@ exports.DoctorsApiFp = function (configuration) {
10939
11391
  },
10940
11392
  /**
10941
11393
  *
10942
- * @summary Get all Doctor.
11394
+ * @summary Get all Doctors.
10943
11395
  * @param {string} [countryId]
10944
11396
  * @param {string} [hospitalId]
10945
11397
  * @param {MarketingType} [marketingType]
@@ -11332,7 +11784,6 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
11332
11784
  *
11333
11785
  * @summary Get All DoctorSpecialties.
11334
11786
  * @param {string} doctorId
11335
- * @param {string} [doctorId2]
11336
11787
  * @param {string} [doctorName]
11337
11788
  * @param {string} [specialtyId]
11338
11789
  * @param {string} [specialtyName]
@@ -11342,8 +11793,19 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
11342
11793
  * @param {*} [options] Override http request option.
11343
11794
  * @throws {RequiredError}
11344
11795
  */
11345
- apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
11346
- return localVarFp.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
11796
+ apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
11797
+ return localVarFp.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
11798
+ },
11799
+ /**
11800
+ *
11801
+ * @summary Link a doctor to a specialty.
11802
+ * @param {string} doctorId
11803
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
11804
+ * @param {*} [options] Override http request option.
11805
+ * @throws {RequiredError}
11806
+ */
11807
+ apiV1DoctorsDoctorIdSpecialtiesPost: function (doctorId, createDoctorSpecialtyCommand, options) {
11808
+ return localVarFp.apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
11347
11809
  },
11348
11810
  /**
11349
11811
  *
@@ -11369,18 +11831,19 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
11369
11831
  },
11370
11832
  /**
11371
11833
  *
11372
- * @summary Link a doctor to a specialty.
11834
+ * @summary Update DoctorSpecialty.
11373
11835
  * @param {string} doctorId
11374
11836
  * @param {string} specialtyId
11837
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
11375
11838
  * @param {*} [options] Override http request option.
11376
11839
  * @throws {RequiredError}
11377
11840
  */
11378
- apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost: function (doctorId, specialtyId, options) {
11379
- return localVarFp.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost(doctorId, specialtyId, options).then(function (request) { return request(axios, basePath); });
11841
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
11842
+ return localVarFp.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
11380
11843
  },
11381
11844
  /**
11382
11845
  *
11383
- * @summary Get all Doctor.
11846
+ * @summary Get all Doctors.
11384
11847
  * @param {string} [countryId]
11385
11848
  * @param {string} [hospitalId]
11386
11849
  * @param {MarketingType} [marketingType]
@@ -11797,7 +12260,6 @@ var DoctorsApi = /** @class */ (function (_super) {
11797
12260
  *
11798
12261
  * @summary Get All DoctorSpecialties.
11799
12262
  * @param {string} doctorId
11800
- * @param {string} [doctorId2]
11801
12263
  * @param {string} [doctorName]
11802
12264
  * @param {string} [specialtyId]
11803
12265
  * @param {string} [specialtyName]
@@ -11808,9 +12270,22 @@ var DoctorsApi = /** @class */ (function (_super) {
11808
12270
  * @throws {RequiredError}
11809
12271
  * @memberof DoctorsApi
11810
12272
  */
11811
- DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesGet = function (doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
12273
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesGet = function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
12274
+ var _this = this;
12275
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
12276
+ };
12277
+ /**
12278
+ *
12279
+ * @summary Link a doctor to a specialty.
12280
+ * @param {string} doctorId
12281
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
12282
+ * @param {*} [options] Override http request option.
12283
+ * @throws {RequiredError}
12284
+ * @memberof DoctorsApi
12285
+ */
12286
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesPost = function (doctorId, createDoctorSpecialtyCommand, options) {
11812
12287
  var _this = this;
11813
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
12288
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
11814
12289
  };
11815
12290
  /**
11816
12291
  *
@@ -11840,20 +12315,21 @@ var DoctorsApi = /** @class */ (function (_super) {
11840
12315
  };
11841
12316
  /**
11842
12317
  *
11843
- * @summary Link a doctor to a specialty.
12318
+ * @summary Update DoctorSpecialty.
11844
12319
  * @param {string} doctorId
11845
12320
  * @param {string} specialtyId
12321
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
11846
12322
  * @param {*} [options] Override http request option.
11847
12323
  * @throws {RequiredError}
11848
12324
  * @memberof DoctorsApi
11849
12325
  */
11850
- DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost = function (doctorId, specialtyId, options) {
12326
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut = function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
11851
12327
  var _this = this;
11852
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost(doctorId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12328
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
11853
12329
  };
11854
12330
  /**
11855
12331
  *
11856
- * @summary Get all Doctor.
12332
+ * @summary Get all Doctors.
11857
12333
  * @param {string} [countryId]
11858
12334
  * @param {string} [hospitalId]
11859
12335
  * @param {MarketingType} [marketingType]
@@ -12119,9 +12595,8 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
12119
12595
  },
12120
12596
  /**
12121
12597
  *
12122
- * @summary Get all HospitalAccreditation.
12123
- * @param {string} hospitalId2
12124
- * @param {string} [hospitalId]
12598
+ * @summary Get all HospitalAccreditations.
12599
+ * @param {string} hospitalId
12125
12600
  * @param {string} [hospitalName]
12126
12601
  * @param {string} [accreditationId]
12127
12602
  * @param {string} [accreditationName]
@@ -12131,17 +12606,17 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
12131
12606
  * @param {*} [options] Override http request option.
12132
12607
  * @throws {RequiredError}
12133
12608
  */
12134
- apiV1HospitalsHospitalIdAccreditationsGet: function (hospitalId2, hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
12609
+ apiV1HospitalsHospitalIdAccreditationsGet: function (hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
12135
12610
  if (options === void 0) { options = {}; }
12136
12611
  return __awaiter(_this, void 0, void 0, function () {
12137
12612
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12138
12613
  return __generator(this, function (_a) {
12139
12614
  switch (_a.label) {
12140
12615
  case 0:
12141
- // verify required parameter 'hospitalId2' is not null or undefined
12142
- common_1.assertParamExists('apiV1HospitalsHospitalIdAccreditationsGet', 'hospitalId2', hospitalId2);
12616
+ // verify required parameter 'hospitalId' is not null or undefined
12617
+ common_1.assertParamExists('apiV1HospitalsHospitalIdAccreditationsGet', 'hospitalId', hospitalId);
12143
12618
  localVarPath = "/api/v1/hospitals/{hospitalId}/accreditations"
12144
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId2)));
12619
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
12145
12620
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12146
12621
  if (configuration) {
12147
12622
  baseOptions = configuration.baseOptions;
@@ -12156,9 +12631,6 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
12156
12631
  // authentication oauth2 required
12157
12632
  // oauth required
12158
12633
  _a.sent();
12159
- if (hospitalId !== undefined) {
12160
- localVarQueryParameter['HospitalId'] = hospitalId;
12161
- }
12162
12634
  if (hospitalName !== undefined) {
12163
12635
  localVarQueryParameter['HospitalName'] = hospitalName;
12164
12636
  }
@@ -13386,38 +13858,32 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13386
13858
  },
13387
13859
  /**
13388
13860
  *
13389
- * @summary Get all HospitalServices.
13390
- * @param {string} hospitalId2
13391
- * @param {string} [id]
13392
- * @param {string} [name]
13393
- * @param {string} [description]
13394
- * @param {string} [hospitalId]
13861
+ * @summary Get all HospitalSpecialties.
13862
+ * @param {string} hospitalId
13395
13863
  * @param {string} [hospitalName]
13396
13864
  * @param {string} [hospitalSlug]
13397
13865
  * @param {string} [specialtyId]
13866
+ * @param {string} [specialtyName]
13398
13867
  * @param {string} [specialtyTypeId]
13399
- * @param {string} [specialtyTypeName]
13400
13868
  * @param {MarketingType} [marketingType]
13401
- * @param {Procedure} [procedure]
13402
13869
  * @param {Date} [created]
13403
- * @param {string} [languageCode]
13404
13870
  * @param {number} [page]
13405
13871
  * @param {number} [limit]
13406
13872
  * @param {Date} [lastRetrieved]
13407
13873
  * @param {*} [options] Override http request option.
13408
13874
  * @throws {RequiredError}
13409
13875
  */
13410
- apiV1HospitalsHospitalIdServicesGet: function (hospitalId2, id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
13876
+ apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
13411
13877
  if (options === void 0) { options = {}; }
13412
13878
  return __awaiter(_this, void 0, void 0, function () {
13413
13879
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13414
13880
  return __generator(this, function (_a) {
13415
13881
  switch (_a.label) {
13416
13882
  case 0:
13417
- // verify required parameter 'hospitalId2' is not null or undefined
13418
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesGet', 'hospitalId2', hospitalId2);
13419
- localVarPath = "/api/v1/hospitals/{hospitalId}/services"
13420
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId2)));
13883
+ // verify required parameter 'hospitalId' is not null or undefined
13884
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesGet', 'hospitalId', hospitalId);
13885
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties"
13886
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
13421
13887
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13422
13888
  if (configuration) {
13423
13889
  baseOptions = configuration.baseOptions;
@@ -13432,18 +13898,6 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13432
13898
  // authentication oauth2 required
13433
13899
  // oauth required
13434
13900
  _a.sent();
13435
- if (id !== undefined) {
13436
- localVarQueryParameter['Id'] = id;
13437
- }
13438
- if (name !== undefined) {
13439
- localVarQueryParameter['Name'] = name;
13440
- }
13441
- if (description !== undefined) {
13442
- localVarQueryParameter['Description'] = description;
13443
- }
13444
- if (hospitalId !== undefined) {
13445
- localVarQueryParameter['HospitalId'] = hospitalId;
13446
- }
13447
13901
  if (hospitalName !== undefined) {
13448
13902
  localVarQueryParameter['HospitalName'] = hospitalName;
13449
13903
  }
@@ -13453,26 +13907,20 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13453
13907
  if (specialtyId !== undefined) {
13454
13908
  localVarQueryParameter['SpecialtyId'] = specialtyId;
13455
13909
  }
13910
+ if (specialtyName !== undefined) {
13911
+ localVarQueryParameter['SpecialtyName'] = specialtyName;
13912
+ }
13456
13913
  if (specialtyTypeId !== undefined) {
13457
13914
  localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
13458
13915
  }
13459
- if (specialtyTypeName !== undefined) {
13460
- localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
13461
- }
13462
13916
  if (marketingType !== undefined) {
13463
13917
  localVarQueryParameter['MarketingType'] = marketingType;
13464
13918
  }
13465
- if (procedure !== undefined) {
13466
- localVarQueryParameter['Procedure'] = procedure;
13467
- }
13468
13919
  if (created !== undefined) {
13469
13920
  localVarQueryParameter['Created'] = (created instanceof Date) ?
13470
13921
  created.toISOString() :
13471
13922
  created;
13472
13923
  }
13473
- if (languageCode !== undefined) {
13474
- localVarQueryParameter['LanguageCode'] = languageCode;
13475
- }
13476
13924
  if (page !== undefined) {
13477
13925
  localVarQueryParameter['page'] = page;
13478
13926
  }
@@ -13497,13 +13945,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13497
13945
  },
13498
13946
  /**
13499
13947
  *
13500
- * @summary Create HospitalService.
13948
+ * @summary Create HospitalSpecialty.
13501
13949
  * @param {string} hospitalId
13502
- * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
13950
+ * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
13503
13951
  * @param {*} [options] Override http request option.
13504
13952
  * @throws {RequiredError}
13505
13953
  */
13506
- apiV1HospitalsHospitalIdServicesPost: function (hospitalId, createHospitalServiceCommand, options) {
13954
+ apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
13507
13955
  if (options === void 0) { options = {}; }
13508
13956
  return __awaiter(_this, void 0, void 0, function () {
13509
13957
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13511,8 +13959,8 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13511
13959
  switch (_a.label) {
13512
13960
  case 0:
13513
13961
  // verify required parameter 'hospitalId' is not null or undefined
13514
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesPost', 'hospitalId', hospitalId);
13515
- localVarPath = "/api/v1/hospitals/{hospitalId}/services"
13962
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesPost', 'hospitalId', hospitalId);
13963
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties"
13516
13964
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
13517
13965
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13518
13966
  if (configuration) {
@@ -13532,7 +13980,7 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13532
13980
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13533
13981
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13534
13982
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13535
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalServiceCommand, localVarRequestOptions, configuration);
13983
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalSpecialtyCommand, localVarRequestOptions, configuration);
13536
13984
  return [2 /*return*/, {
13537
13985
  url: common_1.toPathString(localVarUrlObj),
13538
13986
  options: localVarRequestOptions,
@@ -13543,13 +13991,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13543
13991
  },
13544
13992
  /**
13545
13993
  *
13546
- * @summary Delete HospitalService
13994
+ * @summary Delete HospitalSpecialty.
13547
13995
  * @param {string} hospitalId
13548
- * @param {string} serviceId
13996
+ * @param {string} specialtyId
13549
13997
  * @param {*} [options] Override http request option.
13550
13998
  * @throws {RequiredError}
13551
13999
  */
13552
- apiV1HospitalsHospitalIdServicesServiceIdDelete: function (hospitalId, serviceId, options) {
14000
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
13553
14001
  if (options === void 0) { options = {}; }
13554
14002
  return __awaiter(_this, void 0, void 0, function () {
13555
14003
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13557,12 +14005,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13557
14005
  switch (_a.label) {
13558
14006
  case 0:
13559
14007
  // verify required parameter 'hospitalId' is not null or undefined
13560
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesServiceIdDelete', 'hospitalId', hospitalId);
13561
- // verify required parameter 'serviceId' is not null or undefined
13562
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesServiceIdDelete', 'serviceId', serviceId);
13563
- localVarPath = "/api/v1/hospitals/{hospitalId}/services/{serviceId}"
14008
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'hospitalId', hospitalId);
14009
+ // verify required parameter 'specialtyId' is not null or undefined
14010
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId);
14011
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
13564
14012
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
13565
- .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
14013
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
13566
14014
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13567
14015
  if (configuration) {
13568
14016
  baseOptions = configuration.baseOptions;
@@ -13590,14 +14038,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13590
14038
  },
13591
14039
  /**
13592
14040
  *
13593
- * @summary Get HospitalService.
14041
+ * @summary Get HospitalSpecialty.
13594
14042
  * @param {string} hospitalId
13595
- * @param {string} serviceId
13596
- * @param {string} [languageCode]
14043
+ * @param {string} specialtyId
13597
14044
  * @param {*} [options] Override http request option.
13598
14045
  * @throws {RequiredError}
13599
14046
  */
13600
- apiV1HospitalsHospitalIdServicesServiceIdGet: function (hospitalId, serviceId, languageCode, options) {
14047
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, options) {
13601
14048
  if (options === void 0) { options = {}; }
13602
14049
  return __awaiter(_this, void 0, void 0, function () {
13603
14050
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13605,12 +14052,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13605
14052
  switch (_a.label) {
13606
14053
  case 0:
13607
14054
  // verify required parameter 'hospitalId' is not null or undefined
13608
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesServiceIdGet', 'hospitalId', hospitalId);
13609
- // verify required parameter 'serviceId' is not null or undefined
13610
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesServiceIdGet', 'serviceId', serviceId);
13611
- localVarPath = "/api/v1/hospitals/{hospitalId}/services/{serviceId}"
14055
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'hospitalId', hospitalId);
14056
+ // verify required parameter 'specialtyId' is not null or undefined
14057
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'specialtyId', specialtyId);
14058
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
13612
14059
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
13613
- .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
14060
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
13614
14061
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13615
14062
  if (configuration) {
13616
14063
  baseOptions = configuration.baseOptions;
@@ -13625,9 +14072,6 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13625
14072
  // authentication oauth2 required
13626
14073
  // oauth required
13627
14074
  _a.sent();
13628
- if (languageCode !== undefined) {
13629
- localVarQueryParameter['languageCode'] = languageCode;
13630
- }
13631
14075
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13632
14076
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13633
14077
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -13641,14 +14085,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13641
14085
  },
13642
14086
  /**
13643
14087
  *
13644
- * @summary Update HospitalService.
14088
+ * @summary Update HospitalSpecialty.
13645
14089
  * @param {string} hospitalId
13646
- * @param {string} serviceId
13647
- * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
14090
+ * @param {string} specialtyId
14091
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
13648
14092
  * @param {*} [options] Override http request option.
13649
14093
  * @throws {RequiredError}
13650
14094
  */
13651
- apiV1HospitalsHospitalIdServicesServiceIdPut: function (hospitalId, serviceId, updateHospitalServiceCommand, options) {
14095
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
13652
14096
  if (options === void 0) { options = {}; }
13653
14097
  return __awaiter(_this, void 0, void 0, function () {
13654
14098
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13656,12 +14100,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13656
14100
  switch (_a.label) {
13657
14101
  case 0:
13658
14102
  // verify required parameter 'hospitalId' is not null or undefined
13659
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesServiceIdPut', 'hospitalId', hospitalId);
13660
- // verify required parameter 'serviceId' is not null or undefined
13661
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesServiceIdPut', 'serviceId', serviceId);
13662
- localVarPath = "/api/v1/hospitals/{hospitalId}/services/{serviceId}"
14103
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'hospitalId', hospitalId);
14104
+ // verify required parameter 'specialtyId' is not null or undefined
14105
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId);
14106
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
13663
14107
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
13664
- .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
14108
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
13665
14109
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13666
14110
  if (configuration) {
13667
14111
  baseOptions = configuration.baseOptions;
@@ -13680,7 +14124,7 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13680
14124
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13681
14125
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13682
14126
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13683
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalServiceCommand, localVarRequestOptions, configuration);
14127
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration);
13684
14128
  return [2 /*return*/, {
13685
14129
  url: common_1.toPathString(localVarUrlObj),
13686
14130
  options: localVarRequestOptions,
@@ -13691,22 +14135,29 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13691
14135
  },
13692
14136
  /**
13693
14137
  *
13694
- * @summary Get all HospitalSpecialties.
14138
+ * @summary Get all HospitalServices.
13695
14139
  * @param {string} hospitalId
14140
+ * @param {string} specialtyId
13696
14141
  * @param {string} [hospitalName]
13697
14142
  * @param {string} [hospitalSlug]
13698
- * @param {string} [specialtyId]
14143
+ * @param {string} [id]
14144
+ * @param {string} [name]
14145
+ * @param {string} [description]
13699
14146
  * @param {string} [specialtyName]
13700
14147
  * @param {string} [specialtyTypeId]
14148
+ * @param {string} [specialtyTypeName]
14149
+ * @param {string} [serviceCategoryId]
13701
14150
  * @param {MarketingType} [marketingType]
14151
+ * @param {Procedure} [procedure]
13702
14152
  * @param {Date} [created]
14153
+ * @param {string} [languageCode]
13703
14154
  * @param {number} [page]
13704
14155
  * @param {number} [limit]
13705
14156
  * @param {Date} [lastRetrieved]
13706
14157
  * @param {*} [options] Override http request option.
13707
14158
  * @throws {RequiredError}
13708
14159
  */
13709
- apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
14160
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet: function (hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
13710
14161
  if (options === void 0) { options = {}; }
13711
14162
  return __awaiter(_this, void 0, void 0, function () {
13712
14163
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13714,9 +14165,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13714
14165
  switch (_a.label) {
13715
14166
  case 0:
13716
14167
  // verify required parameter 'hospitalId' is not null or undefined
13717
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesGet', 'hospitalId', hospitalId);
13718
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties"
13719
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
14168
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'hospitalId', hospitalId);
14169
+ // verify required parameter 'specialtyId' is not null or undefined
14170
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'specialtyId', specialtyId);
14171
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services"
14172
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14173
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
13720
14174
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13721
14175
  if (configuration) {
13722
14176
  baseOptions = configuration.baseOptions;
@@ -13737,8 +14191,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13737
14191
  if (hospitalSlug !== undefined) {
13738
14192
  localVarQueryParameter['HospitalSlug'] = hospitalSlug;
13739
14193
  }
13740
- if (specialtyId !== undefined) {
13741
- localVarQueryParameter['SpecialtyId'] = specialtyId;
14194
+ if (id !== undefined) {
14195
+ localVarQueryParameter['Id'] = id;
14196
+ }
14197
+ if (name !== undefined) {
14198
+ localVarQueryParameter['Name'] = name;
14199
+ }
14200
+ if (description !== undefined) {
14201
+ localVarQueryParameter['Description'] = description;
13742
14202
  }
13743
14203
  if (specialtyName !== undefined) {
13744
14204
  localVarQueryParameter['SpecialtyName'] = specialtyName;
@@ -13746,14 +14206,26 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13746
14206
  if (specialtyTypeId !== undefined) {
13747
14207
  localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
13748
14208
  }
14209
+ if (specialtyTypeName !== undefined) {
14210
+ localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
14211
+ }
14212
+ if (serviceCategoryId !== undefined) {
14213
+ localVarQueryParameter['ServiceCategoryId'] = serviceCategoryId;
14214
+ }
13749
14215
  if (marketingType !== undefined) {
13750
14216
  localVarQueryParameter['MarketingType'] = marketingType;
13751
14217
  }
14218
+ if (procedure !== undefined) {
14219
+ localVarQueryParameter['Procedure'] = procedure;
14220
+ }
13752
14221
  if (created !== undefined) {
13753
14222
  localVarQueryParameter['Created'] = (created instanceof Date) ?
13754
14223
  created.toISOString() :
13755
14224
  created;
13756
14225
  }
14226
+ if (languageCode !== undefined) {
14227
+ localVarQueryParameter['LanguageCode'] = languageCode;
14228
+ }
13757
14229
  if (page !== undefined) {
13758
14230
  localVarQueryParameter['page'] = page;
13759
14231
  }
@@ -13778,13 +14250,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13778
14250
  },
13779
14251
  /**
13780
14252
  *
13781
- * @summary Create HospitalSpecialty.
14253
+ * @summary Create HospitalService.
13782
14254
  * @param {string} hospitalId
13783
- * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
14255
+ * @param {string} specialtyId
14256
+ * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
13784
14257
  * @param {*} [options] Override http request option.
13785
14258
  * @throws {RequiredError}
13786
14259
  */
13787
- apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
14260
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost: function (hospitalId, specialtyId, createHospitalServiceCommand, options) {
13788
14261
  if (options === void 0) { options = {}; }
13789
14262
  return __awaiter(_this, void 0, void 0, function () {
13790
14263
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13792,9 +14265,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13792
14265
  switch (_a.label) {
13793
14266
  case 0:
13794
14267
  // verify required parameter 'hospitalId' is not null or undefined
13795
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesPost', 'hospitalId', hospitalId);
13796
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties"
13797
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
14268
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost', 'hospitalId', hospitalId);
14269
+ // verify required parameter 'specialtyId' is not null or undefined
14270
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost', 'specialtyId', specialtyId);
14271
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services"
14272
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14273
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
13798
14274
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13799
14275
  if (configuration) {
13800
14276
  baseOptions = configuration.baseOptions;
@@ -13813,7 +14289,7 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13813
14289
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13814
14290
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13815
14291
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13816
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalSpecialtyCommand, localVarRequestOptions, configuration);
14292
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalServiceCommand, localVarRequestOptions, configuration);
13817
14293
  return [2 /*return*/, {
13818
14294
  url: common_1.toPathString(localVarUrlObj),
13819
14295
  options: localVarRequestOptions,
@@ -13824,13 +14300,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13824
14300
  },
13825
14301
  /**
13826
14302
  *
13827
- * @summary Delete HospitalSpecialty.
14303
+ * @summary Delete HospitalService
13828
14304
  * @param {string} hospitalId
13829
14305
  * @param {string} specialtyId
14306
+ * @param {string} serviceId
13830
14307
  * @param {*} [options] Override http request option.
13831
14308
  * @throws {RequiredError}
13832
14309
  */
13833
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
14310
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete: function (hospitalId, specialtyId, serviceId, options) {
13834
14311
  if (options === void 0) { options = {}; }
13835
14312
  return __awaiter(_this, void 0, void 0, function () {
13836
14313
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13838,12 +14315,15 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13838
14315
  switch (_a.label) {
13839
14316
  case 0:
13840
14317
  // verify required parameter 'hospitalId' is not null or undefined
13841
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'hospitalId', hospitalId);
14318
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'hospitalId', hospitalId);
13842
14319
  // verify required parameter 'specialtyId' is not null or undefined
13843
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId);
13844
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
14320
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'specialtyId', specialtyId);
14321
+ // verify required parameter 'serviceId' is not null or undefined
14322
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'serviceId', serviceId);
14323
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}"
13845
14324
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
13846
- .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
14325
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14326
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
13847
14327
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13848
14328
  if (configuration) {
13849
14329
  baseOptions = configuration.baseOptions;
@@ -13871,13 +14351,15 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13871
14351
  },
13872
14352
  /**
13873
14353
  *
13874
- * @summary Get HospitalSpecialty.
14354
+ * @summary Get HospitalService.
13875
14355
  * @param {string} hospitalId
13876
14356
  * @param {string} specialtyId
14357
+ * @param {string} serviceId
14358
+ * @param {string} [languageCode]
13877
14359
  * @param {*} [options] Override http request option.
13878
14360
  * @throws {RequiredError}
13879
14361
  */
13880
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, options) {
14362
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet: function (hospitalId, specialtyId, serviceId, languageCode, options) {
13881
14363
  if (options === void 0) { options = {}; }
13882
14364
  return __awaiter(_this, void 0, void 0, function () {
13883
14365
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13885,12 +14367,15 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13885
14367
  switch (_a.label) {
13886
14368
  case 0:
13887
14369
  // verify required parameter 'hospitalId' is not null or undefined
13888
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'hospitalId', hospitalId);
14370
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet', 'hospitalId', hospitalId);
13889
14371
  // verify required parameter 'specialtyId' is not null or undefined
13890
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'specialtyId', specialtyId);
13891
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
14372
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet', 'specialtyId', specialtyId);
14373
+ // verify required parameter 'serviceId' is not null or undefined
14374
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet', 'serviceId', serviceId);
14375
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}"
13892
14376
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
13893
- .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
14377
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14378
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
13894
14379
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13895
14380
  if (configuration) {
13896
14381
  baseOptions = configuration.baseOptions;
@@ -13905,6 +14390,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13905
14390
  // authentication oauth2 required
13906
14391
  // oauth required
13907
14392
  _a.sent();
14393
+ if (languageCode !== undefined) {
14394
+ localVarQueryParameter['languageCode'] = languageCode;
14395
+ }
13908
14396
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13909
14397
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13910
14398
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -13918,24 +14406,40 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13918
14406
  },
13919
14407
  /**
13920
14408
  *
13921
- * @summary Create Hospital.
13922
- * @param {CreateHospitalCommand} [createHospitalCommand]
14409
+ * @summary Get all HospitalServiceMedias.
14410
+ * @param {string} hospitalId
14411
+ * @param {string} specialtyId
14412
+ * @param {string} serviceId
14413
+ * @param {string} [id]
14414
+ * @param {MediaType} [mediaType]
14415
+ * @param {number} [page]
14416
+ * @param {number} [limit]
14417
+ * @param {Date} [lastRetrieved]
13923
14418
  * @param {*} [options] Override http request option.
13924
14419
  * @throws {RequiredError}
13925
14420
  */
13926
- apiV1HospitalsPost: function (createHospitalCommand, options) {
14421
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet: function (hospitalId, specialtyId, serviceId, id, mediaType, page, limit, lastRetrieved, options) {
13927
14422
  if (options === void 0) { options = {}; }
13928
14423
  return __awaiter(_this, void 0, void 0, function () {
13929
14424
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13930
14425
  return __generator(this, function (_a) {
13931
14426
  switch (_a.label) {
13932
14427
  case 0:
13933
- localVarPath = "/api/v1/hospitals";
14428
+ // verify required parameter 'hospitalId' is not null or undefined
14429
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet', 'hospitalId', hospitalId);
14430
+ // verify required parameter 'specialtyId' is not null or undefined
14431
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet', 'specialtyId', specialtyId);
14432
+ // verify required parameter 'serviceId' is not null or undefined
14433
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet', 'serviceId', serviceId);
14434
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}/medias"
14435
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14436
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14437
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
13934
14438
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13935
14439
  if (configuration) {
13936
14440
  baseOptions = configuration.baseOptions;
13937
14441
  }
13938
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
14442
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13939
14443
  localVarHeaderParameter = {};
13940
14444
  localVarQueryParameter = {};
13941
14445
  // authentication oauth2 required
@@ -13945,11 +14449,26 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13945
14449
  // authentication oauth2 required
13946
14450
  // oauth required
13947
14451
  _a.sent();
13948
- localVarHeaderParameter['Content-Type'] = 'application/json';
14452
+ if (id !== undefined) {
14453
+ localVarQueryParameter['Id'] = id;
14454
+ }
14455
+ if (mediaType !== undefined) {
14456
+ localVarQueryParameter['MediaType'] = mediaType;
14457
+ }
14458
+ if (page !== undefined) {
14459
+ localVarQueryParameter['page'] = page;
14460
+ }
14461
+ if (limit !== undefined) {
14462
+ localVarQueryParameter['limit'] = limit;
14463
+ }
14464
+ if (lastRetrieved !== undefined) {
14465
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
14466
+ lastRetrieved.toISOString() :
14467
+ lastRetrieved;
14468
+ }
13949
14469
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13950
14470
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13951
14471
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13952
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalCommand, localVarRequestOptions, configuration);
13953
14472
  return [2 /*return*/, {
13954
14473
  url: common_1.toPathString(localVarUrlObj),
13955
14474
  options: localVarRequestOptions,
@@ -13960,28 +14479,39 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13960
14479
  },
13961
14480
  /**
13962
14481
  *
13963
- * @summary Get Hospital by slug.
13964
- * @param {string} slug
13965
- * @param {string} [languageCode]
14482
+ * @summary Delete HospitalServiceMedia
14483
+ * @param {string} hospitalId
14484
+ * @param {string} specialtyId
14485
+ * @param {string} serviceId
14486
+ * @param {string} mediaId
13966
14487
  * @param {*} [options] Override http request option.
13967
14488
  * @throws {RequiredError}
13968
14489
  */
13969
- apiV1HospitalsSlugGet: function (slug, languageCode, options) {
14490
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete: function (hospitalId, specialtyId, serviceId, mediaId, options) {
13970
14491
  if (options === void 0) { options = {}; }
13971
14492
  return __awaiter(_this, void 0, void 0, function () {
13972
14493
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13973
14494
  return __generator(this, function (_a) {
13974
14495
  switch (_a.label) {
13975
14496
  case 0:
13976
- // verify required parameter 'slug' is not null or undefined
13977
- common_1.assertParamExists('apiV1HospitalsSlugGet', 'slug', slug);
13978
- localVarPath = "/api/v1/hospitals/{slug}"
13979
- .replace("{" + "slug" + "}", encodeURIComponent(String(slug)));
14497
+ // verify required parameter 'hospitalId' is not null or undefined
14498
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete', 'hospitalId', hospitalId);
14499
+ // verify required parameter 'specialtyId' is not null or undefined
14500
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete', 'specialtyId', specialtyId);
14501
+ // verify required parameter 'serviceId' is not null or undefined
14502
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete', 'serviceId', serviceId);
14503
+ // verify required parameter 'mediaId' is not null or undefined
14504
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete', 'mediaId', mediaId);
14505
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}/medias/{mediaId}"
14506
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14507
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14508
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)))
14509
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
13980
14510
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13981
14511
  if (configuration) {
13982
14512
  baseOptions = configuration.baseOptions;
13983
14513
  }
13984
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14514
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
13985
14515
  localVarHeaderParameter = {};
13986
14516
  localVarQueryParameter = {};
13987
14517
  // authentication oauth2 required
@@ -13991,9 +14521,6 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13991
14521
  // authentication oauth2 required
13992
14522
  // oauth required
13993
14523
  _a.sent();
13994
- if (languageCode !== undefined) {
13995
- localVarQueryParameter['languageCode'] = languageCode;
13996
- }
13997
14524
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13998
14525
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13999
14526
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -14005,195 +14532,353 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
14005
14532
  });
14006
14533
  });
14007
14534
  },
14008
- };
14009
- };
14010
- /**
14011
- * HospitalsApi - functional programming interface
14012
- * @export
14013
- */
14014
- exports.HospitalsApiFp = function (configuration) {
14015
- var localVarAxiosParamCreator = exports.HospitalsApiAxiosParamCreator(configuration);
14016
- return {
14017
- /**
14018
- *
14019
- * @summary Get all Hospitals.
14020
- * @param {string} [hospitalId]
14021
- * @param {string} [name]
14022
- * @param {string} [description]
14023
- * @param {string} [countryId]
14024
- * @param {Date} [created]
14025
- * @param {MarketingType} [marketingType]
14026
- * @param {string} [specialtyTypeId]
14027
- * @param {string} [specialtyId]
14028
- * @param {string} [serviceId]
14029
- * @param {string} [exceptHospitalId]
14030
- * @param {boolean} [showHidden]
14031
- * @param {string} [languageCode]
14032
- * @param {Array<string>} [ids]
14033
- * @param {number} [page]
14034
- * @param {number} [limit]
14035
- * @param {Date} [lastRetrieved]
14036
- * @param {*} [options] Override http request option.
14037
- * @throws {RequiredError}
14038
- */
14039
- apiV1HospitalsGet: function (hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options) {
14040
- return __awaiter(this, void 0, void 0, function () {
14041
- var localVarAxiosArgs;
14042
- return __generator(this, function (_a) {
14043
- switch (_a.label) {
14044
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options)];
14045
- case 1:
14046
- localVarAxiosArgs = _a.sent();
14047
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14048
- }
14049
- });
14050
- });
14051
- },
14052
14535
  /**
14053
14536
  *
14054
- * @summary Delete HospitalAccreditation.
14537
+ * @summary Get HospitalServiceMedia.
14055
14538
  * @param {string} hospitalId
14056
- * @param {string} accreditationId
14539
+ * @param {string} specialtyId
14540
+ * @param {string} serviceId
14541
+ * @param {string} mediaId
14057
14542
  * @param {*} [options] Override http request option.
14058
14543
  * @throws {RequiredError}
14059
14544
  */
14060
- apiV1HospitalsHospitalIdAccreditationsAccreditationIdDelete: function (hospitalId, accreditationId, options) {
14061
- return __awaiter(this, void 0, void 0, function () {
14062
- var localVarAxiosArgs;
14545
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet: function (hospitalId, specialtyId, serviceId, mediaId, options) {
14546
+ if (options === void 0) { options = {}; }
14547
+ return __awaiter(_this, void 0, void 0, function () {
14548
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14063
14549
  return __generator(this, function (_a) {
14064
14550
  switch (_a.label) {
14065
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsAccreditationIdDelete(hospitalId, accreditationId, options)];
14551
+ case 0:
14552
+ // verify required parameter 'hospitalId' is not null or undefined
14553
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet', 'hospitalId', hospitalId);
14554
+ // verify required parameter 'specialtyId' is not null or undefined
14555
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet', 'specialtyId', specialtyId);
14556
+ // verify required parameter 'serviceId' is not null or undefined
14557
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet', 'serviceId', serviceId);
14558
+ // verify required parameter 'mediaId' is not null or undefined
14559
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet', 'mediaId', mediaId);
14560
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}/medias/{mediaId}"
14561
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14562
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14563
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)))
14564
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
14565
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14566
+ if (configuration) {
14567
+ baseOptions = configuration.baseOptions;
14568
+ }
14569
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14570
+ localVarHeaderParameter = {};
14571
+ localVarQueryParameter = {};
14572
+ // authentication oauth2 required
14573
+ // oauth required
14574
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14066
14575
  case 1:
14067
- localVarAxiosArgs = _a.sent();
14068
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14576
+ // authentication oauth2 required
14577
+ // oauth required
14578
+ _a.sent();
14579
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14580
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14581
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14582
+ return [2 /*return*/, {
14583
+ url: common_1.toPathString(localVarUrlObj),
14584
+ options: localVarRequestOptions,
14585
+ }];
14069
14586
  }
14070
14587
  });
14071
14588
  });
14072
14589
  },
14073
14590
  /**
14074
14591
  *
14075
- * @summary Get HospitalAccreditation.
14592
+ * @summary Update HospitalServiceMedia.
14076
14593
  * @param {string} hospitalId
14077
- * @param {string} accreditationId
14594
+ * @param {string} specialtyId
14595
+ * @param {string} serviceId
14596
+ * @param {string} mediaId
14597
+ * @param {UpdateMediaCommand} [updateMediaCommand]
14078
14598
  * @param {*} [options] Override http request option.
14079
14599
  * @throws {RequiredError}
14080
14600
  */
14081
- apiV1HospitalsHospitalIdAccreditationsAccreditationIdGet: function (hospitalId, accreditationId, options) {
14082
- return __awaiter(this, void 0, void 0, function () {
14083
- var localVarAxiosArgs;
14601
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut: function (hospitalId, specialtyId, serviceId, mediaId, updateMediaCommand, options) {
14602
+ if (options === void 0) { options = {}; }
14603
+ return __awaiter(_this, void 0, void 0, function () {
14604
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14084
14605
  return __generator(this, function (_a) {
14085
14606
  switch (_a.label) {
14086
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsAccreditationIdGet(hospitalId, accreditationId, options)];
14087
- case 1:
14088
- localVarAxiosArgs = _a.sent();
14089
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14090
- }
14091
- });
14607
+ case 0:
14608
+ // verify required parameter 'hospitalId' is not null or undefined
14609
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut', 'hospitalId', hospitalId);
14610
+ // verify required parameter 'specialtyId' is not null or undefined
14611
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut', 'specialtyId', specialtyId);
14612
+ // verify required parameter 'serviceId' is not null or undefined
14613
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut', 'serviceId', serviceId);
14614
+ // verify required parameter 'mediaId' is not null or undefined
14615
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut', 'mediaId', mediaId);
14616
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}/medias/{mediaId}"
14617
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14618
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14619
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)))
14620
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
14621
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14622
+ if (configuration) {
14623
+ baseOptions = configuration.baseOptions;
14624
+ }
14625
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
14626
+ localVarHeaderParameter = {};
14627
+ localVarQueryParameter = {};
14628
+ // authentication oauth2 required
14629
+ // oauth required
14630
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14631
+ case 1:
14632
+ // authentication oauth2 required
14633
+ // oauth required
14634
+ _a.sent();
14635
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14636
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14637
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14638
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14639
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration);
14640
+ return [2 /*return*/, {
14641
+ url: common_1.toPathString(localVarUrlObj),
14642
+ options: localVarRequestOptions,
14643
+ }];
14644
+ }
14645
+ });
14092
14646
  });
14093
14647
  },
14094
14648
  /**
14095
14649
  *
14096
- * @summary Get all HospitalAccreditation.
14097
- * @param {string} hospitalId2
14098
- * @param {string} [hospitalId]
14099
- * @param {string} [hospitalName]
14100
- * @param {string} [accreditationId]
14101
- * @param {string} [accreditationName]
14102
- * @param {number} [page]
14103
- * @param {number} [limit]
14104
- * @param {Date} [lastRetrieved]
14650
+ * @summary Create HospitalServiceMedia.
14651
+ * @param {string} hospitalId
14652
+ * @param {string} specialtyId
14653
+ * @param {string} serviceId
14654
+ * @param {CreateMediaCommand} [createMediaCommand]
14105
14655
  * @param {*} [options] Override http request option.
14106
14656
  * @throws {RequiredError}
14107
14657
  */
14108
- apiV1HospitalsHospitalIdAccreditationsGet: function (hospitalId2, hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
14109
- return __awaiter(this, void 0, void 0, function () {
14110
- var localVarAxiosArgs;
14658
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost: function (hospitalId, specialtyId, serviceId, createMediaCommand, options) {
14659
+ if (options === void 0) { options = {}; }
14660
+ return __awaiter(_this, void 0, void 0, function () {
14661
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14111
14662
  return __generator(this, function (_a) {
14112
14663
  switch (_a.label) {
14113
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsGet(hospitalId2, hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options)];
14664
+ case 0:
14665
+ // verify required parameter 'hospitalId' is not null or undefined
14666
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost', 'hospitalId', hospitalId);
14667
+ // verify required parameter 'specialtyId' is not null or undefined
14668
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost', 'specialtyId', specialtyId);
14669
+ // verify required parameter 'serviceId' is not null or undefined
14670
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost', 'serviceId', serviceId);
14671
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}/medias"
14672
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14673
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14674
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
14675
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14676
+ if (configuration) {
14677
+ baseOptions = configuration.baseOptions;
14678
+ }
14679
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
14680
+ localVarHeaderParameter = {};
14681
+ localVarQueryParameter = {};
14682
+ // authentication oauth2 required
14683
+ // oauth required
14684
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14114
14685
  case 1:
14115
- localVarAxiosArgs = _a.sent();
14116
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14686
+ // authentication oauth2 required
14687
+ // oauth required
14688
+ _a.sent();
14689
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14690
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14691
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14692
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14693
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration);
14694
+ return [2 /*return*/, {
14695
+ url: common_1.toPathString(localVarUrlObj),
14696
+ options: localVarRequestOptions,
14697
+ }];
14117
14698
  }
14118
14699
  });
14119
14700
  });
14120
14701
  },
14121
14702
  /**
14122
14703
  *
14123
- * @summary Create HospitalAccreditation.
14704
+ * @summary Update HospitalService.
14124
14705
  * @param {string} hospitalId
14125
- * @param {CreateHospitalAccreditationCommand} [createHospitalAccreditationCommand]
14706
+ * @param {string} specialtyId
14707
+ * @param {string} serviceId
14708
+ * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
14126
14709
  * @param {*} [options] Override http request option.
14127
14710
  * @throws {RequiredError}
14128
14711
  */
14129
- apiV1HospitalsHospitalIdAccreditationsPost: function (hospitalId, createHospitalAccreditationCommand, options) {
14130
- return __awaiter(this, void 0, void 0, function () {
14131
- var localVarAxiosArgs;
14712
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut: function (hospitalId, specialtyId, serviceId, updateHospitalServiceCommand, options) {
14713
+ if (options === void 0) { options = {}; }
14714
+ return __awaiter(_this, void 0, void 0, function () {
14715
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14132
14716
  return __generator(this, function (_a) {
14133
14717
  switch (_a.label) {
14134
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsPost(hospitalId, createHospitalAccreditationCommand, options)];
14718
+ case 0:
14719
+ // verify required parameter 'hospitalId' is not null or undefined
14720
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut', 'hospitalId', hospitalId);
14721
+ // verify required parameter 'specialtyId' is not null or undefined
14722
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut', 'specialtyId', specialtyId);
14723
+ // verify required parameter 'serviceId' is not null or undefined
14724
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut', 'serviceId', serviceId);
14725
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}"
14726
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14727
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14728
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
14729
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14730
+ if (configuration) {
14731
+ baseOptions = configuration.baseOptions;
14732
+ }
14733
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
14734
+ localVarHeaderParameter = {};
14735
+ localVarQueryParameter = {};
14736
+ // authentication oauth2 required
14737
+ // oauth required
14738
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14135
14739
  case 1:
14136
- localVarAxiosArgs = _a.sent();
14137
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14740
+ // authentication oauth2 required
14741
+ // oauth required
14742
+ _a.sent();
14743
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14744
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14745
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14746
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14747
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalServiceCommand, localVarRequestOptions, configuration);
14748
+ return [2 /*return*/, {
14749
+ url: common_1.toPathString(localVarUrlObj),
14750
+ options: localVarRequestOptions,
14751
+ }];
14138
14752
  }
14139
14753
  });
14140
14754
  });
14141
14755
  },
14142
14756
  /**
14143
14757
  *
14144
- * @summary Delete Hospital.
14145
- * @param {string} hospitalId
14758
+ * @summary Create Hospital.
14759
+ * @param {CreateHospitalCommand} [createHospitalCommand]
14146
14760
  * @param {*} [options] Override http request option.
14147
14761
  * @throws {RequiredError}
14148
14762
  */
14149
- apiV1HospitalsHospitalIdDelete: function (hospitalId, options) {
14150
- return __awaiter(this, void 0, void 0, function () {
14151
- var localVarAxiosArgs;
14763
+ apiV1HospitalsPost: function (createHospitalCommand, options) {
14764
+ if (options === void 0) { options = {}; }
14765
+ return __awaiter(_this, void 0, void 0, function () {
14766
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14152
14767
  return __generator(this, function (_a) {
14153
14768
  switch (_a.label) {
14154
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdDelete(hospitalId, options)];
14769
+ case 0:
14770
+ localVarPath = "/api/v1/hospitals";
14771
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14772
+ if (configuration) {
14773
+ baseOptions = configuration.baseOptions;
14774
+ }
14775
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
14776
+ localVarHeaderParameter = {};
14777
+ localVarQueryParameter = {};
14778
+ // authentication oauth2 required
14779
+ // oauth required
14780
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14155
14781
  case 1:
14156
- localVarAxiosArgs = _a.sent();
14157
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14782
+ // authentication oauth2 required
14783
+ // oauth required
14784
+ _a.sent();
14785
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14786
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14787
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14788
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14789
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalCommand, localVarRequestOptions, configuration);
14790
+ return [2 /*return*/, {
14791
+ url: common_1.toPathString(localVarUrlObj),
14792
+ options: localVarRequestOptions,
14793
+ }];
14158
14794
  }
14159
14795
  });
14160
14796
  });
14161
14797
  },
14162
14798
  /**
14163
14799
  *
14164
- * @summary Delete HospitalEquipment
14165
- * @param {string} hospitalId
14166
- * @param {string} equipmentId
14800
+ * @summary Get Hospital by slug.
14801
+ * @param {string} slug
14802
+ * @param {string} [languageCode]
14167
14803
  * @param {*} [options] Override http request option.
14168
14804
  * @throws {RequiredError}
14169
14805
  */
14170
- apiV1HospitalsHospitalIdEquipmentsEquipmentIdDelete: function (hospitalId, equipmentId, options) {
14171
- return __awaiter(this, void 0, void 0, function () {
14172
- var localVarAxiosArgs;
14806
+ apiV1HospitalsSlugGet: function (slug, languageCode, options) {
14807
+ if (options === void 0) { options = {}; }
14808
+ return __awaiter(_this, void 0, void 0, function () {
14809
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14173
14810
  return __generator(this, function (_a) {
14174
14811
  switch (_a.label) {
14175
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdEquipmentsEquipmentIdDelete(hospitalId, equipmentId, options)];
14812
+ case 0:
14813
+ // verify required parameter 'slug' is not null or undefined
14814
+ common_1.assertParamExists('apiV1HospitalsSlugGet', 'slug', slug);
14815
+ localVarPath = "/api/v1/hospitals/{slug}"
14816
+ .replace("{" + "slug" + "}", encodeURIComponent(String(slug)));
14817
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14818
+ if (configuration) {
14819
+ baseOptions = configuration.baseOptions;
14820
+ }
14821
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14822
+ localVarHeaderParameter = {};
14823
+ localVarQueryParameter = {};
14824
+ // authentication oauth2 required
14825
+ // oauth required
14826
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14176
14827
  case 1:
14177
- localVarAxiosArgs = _a.sent();
14178
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14828
+ // authentication oauth2 required
14829
+ // oauth required
14830
+ _a.sent();
14831
+ if (languageCode !== undefined) {
14832
+ localVarQueryParameter['languageCode'] = languageCode;
14833
+ }
14834
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14835
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14836
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14837
+ return [2 /*return*/, {
14838
+ url: common_1.toPathString(localVarUrlObj),
14839
+ options: localVarRequestOptions,
14840
+ }];
14179
14841
  }
14180
14842
  });
14181
14843
  });
14182
14844
  },
14845
+ };
14846
+ };
14847
+ /**
14848
+ * HospitalsApi - functional programming interface
14849
+ * @export
14850
+ */
14851
+ exports.HospitalsApiFp = function (configuration) {
14852
+ var localVarAxiosParamCreator = exports.HospitalsApiAxiosParamCreator(configuration);
14853
+ return {
14183
14854
  /**
14184
14855
  *
14185
- * @summary Get HospitalEquipment.
14186
- * @param {string} hospitalId
14187
- * @param {string} equipmentId
14856
+ * @summary Get all Hospitals.
14857
+ * @param {string} [hospitalId]
14858
+ * @param {string} [name]
14859
+ * @param {string} [description]
14860
+ * @param {string} [countryId]
14861
+ * @param {Date} [created]
14862
+ * @param {MarketingType} [marketingType]
14863
+ * @param {string} [specialtyTypeId]
14864
+ * @param {string} [specialtyId]
14865
+ * @param {string} [serviceId]
14866
+ * @param {string} [exceptHospitalId]
14867
+ * @param {boolean} [showHidden]
14868
+ * @param {string} [languageCode]
14869
+ * @param {Array<string>} [ids]
14870
+ * @param {number} [page]
14871
+ * @param {number} [limit]
14872
+ * @param {Date} [lastRetrieved]
14188
14873
  * @param {*} [options] Override http request option.
14189
14874
  * @throws {RequiredError}
14190
14875
  */
14191
- apiV1HospitalsHospitalIdEquipmentsEquipmentIdGet: function (hospitalId, equipmentId, options) {
14876
+ apiV1HospitalsGet: function (hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options) {
14192
14877
  return __awaiter(this, void 0, void 0, function () {
14193
14878
  var localVarAxiosArgs;
14194
14879
  return __generator(this, function (_a) {
14195
14880
  switch (_a.label) {
14196
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdEquipmentsEquipmentIdGet(hospitalId, equipmentId, options)];
14881
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options)];
14197
14882
  case 1:
14198
14883
  localVarAxiosArgs = _a.sent();
14199
14884
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14203,23 +14888,18 @@ exports.HospitalsApiFp = function (configuration) {
14203
14888
  },
14204
14889
  /**
14205
14890
  *
14206
- * @summary Get all EquipmentMedia.
14891
+ * @summary Delete HospitalAccreditation.
14207
14892
  * @param {string} hospitalId
14208
- * @param {string} equipmentId
14209
- * @param {string} [id]
14210
- * @param {MediaType} [mediaType]
14211
- * @param {number} [page]
14212
- * @param {number} [limit]
14213
- * @param {Date} [lastRetrieved]
14893
+ * @param {string} accreditationId
14214
14894
  * @param {*} [options] Override http request option.
14215
14895
  * @throws {RequiredError}
14216
14896
  */
14217
- apiV1HospitalsHospitalIdEquipmentsEquipmentIdMediasGet: function (hospitalId, equipmentId, id, mediaType, page, limit, lastRetrieved, options) {
14897
+ apiV1HospitalsHospitalIdAccreditationsAccreditationIdDelete: function (hospitalId, accreditationId, options) {
14218
14898
  return __awaiter(this, void 0, void 0, function () {
14219
14899
  var localVarAxiosArgs;
14220
14900
  return __generator(this, function (_a) {
14221
14901
  switch (_a.label) {
14222
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdEquipmentsEquipmentIdMediasGet(hospitalId, equipmentId, id, mediaType, page, limit, lastRetrieved, options)];
14902
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsAccreditationIdDelete(hospitalId, accreditationId, options)];
14223
14903
  case 1:
14224
14904
  localVarAxiosArgs = _a.sent();
14225
14905
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14229,10 +14909,166 @@ exports.HospitalsApiFp = function (configuration) {
14229
14909
  },
14230
14910
  /**
14231
14911
  *
14232
- * @summary Delete EquipmentMedia
14912
+ * @summary Get HospitalAccreditation.
14233
14913
  * @param {string} hospitalId
14234
- * @param {string} equipmentId
14235
- * @param {string} mediaId
14914
+ * @param {string} accreditationId
14915
+ * @param {*} [options] Override http request option.
14916
+ * @throws {RequiredError}
14917
+ */
14918
+ apiV1HospitalsHospitalIdAccreditationsAccreditationIdGet: function (hospitalId, accreditationId, options) {
14919
+ return __awaiter(this, void 0, void 0, function () {
14920
+ var localVarAxiosArgs;
14921
+ return __generator(this, function (_a) {
14922
+ switch (_a.label) {
14923
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsAccreditationIdGet(hospitalId, accreditationId, options)];
14924
+ case 1:
14925
+ localVarAxiosArgs = _a.sent();
14926
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14927
+ }
14928
+ });
14929
+ });
14930
+ },
14931
+ /**
14932
+ *
14933
+ * @summary Get all HospitalAccreditations.
14934
+ * @param {string} hospitalId
14935
+ * @param {string} [hospitalName]
14936
+ * @param {string} [accreditationId]
14937
+ * @param {string} [accreditationName]
14938
+ * @param {number} [page]
14939
+ * @param {number} [limit]
14940
+ * @param {Date} [lastRetrieved]
14941
+ * @param {*} [options] Override http request option.
14942
+ * @throws {RequiredError}
14943
+ */
14944
+ apiV1HospitalsHospitalIdAccreditationsGet: function (hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
14945
+ return __awaiter(this, void 0, void 0, function () {
14946
+ var localVarAxiosArgs;
14947
+ return __generator(this, function (_a) {
14948
+ switch (_a.label) {
14949
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options)];
14950
+ case 1:
14951
+ localVarAxiosArgs = _a.sent();
14952
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14953
+ }
14954
+ });
14955
+ });
14956
+ },
14957
+ /**
14958
+ *
14959
+ * @summary Create HospitalAccreditation.
14960
+ * @param {string} hospitalId
14961
+ * @param {CreateHospitalAccreditationCommand} [createHospitalAccreditationCommand]
14962
+ * @param {*} [options] Override http request option.
14963
+ * @throws {RequiredError}
14964
+ */
14965
+ apiV1HospitalsHospitalIdAccreditationsPost: function (hospitalId, createHospitalAccreditationCommand, options) {
14966
+ return __awaiter(this, void 0, void 0, function () {
14967
+ var localVarAxiosArgs;
14968
+ return __generator(this, function (_a) {
14969
+ switch (_a.label) {
14970
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsPost(hospitalId, createHospitalAccreditationCommand, options)];
14971
+ case 1:
14972
+ localVarAxiosArgs = _a.sent();
14973
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14974
+ }
14975
+ });
14976
+ });
14977
+ },
14978
+ /**
14979
+ *
14980
+ * @summary Delete Hospital.
14981
+ * @param {string} hospitalId
14982
+ * @param {*} [options] Override http request option.
14983
+ * @throws {RequiredError}
14984
+ */
14985
+ apiV1HospitalsHospitalIdDelete: function (hospitalId, options) {
14986
+ return __awaiter(this, void 0, void 0, function () {
14987
+ var localVarAxiosArgs;
14988
+ return __generator(this, function (_a) {
14989
+ switch (_a.label) {
14990
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdDelete(hospitalId, options)];
14991
+ case 1:
14992
+ localVarAxiosArgs = _a.sent();
14993
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14994
+ }
14995
+ });
14996
+ });
14997
+ },
14998
+ /**
14999
+ *
15000
+ * @summary Delete HospitalEquipment
15001
+ * @param {string} hospitalId
15002
+ * @param {string} equipmentId
15003
+ * @param {*} [options] Override http request option.
15004
+ * @throws {RequiredError}
15005
+ */
15006
+ apiV1HospitalsHospitalIdEquipmentsEquipmentIdDelete: function (hospitalId, equipmentId, options) {
15007
+ return __awaiter(this, void 0, void 0, function () {
15008
+ var localVarAxiosArgs;
15009
+ return __generator(this, function (_a) {
15010
+ switch (_a.label) {
15011
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdEquipmentsEquipmentIdDelete(hospitalId, equipmentId, options)];
15012
+ case 1:
15013
+ localVarAxiosArgs = _a.sent();
15014
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15015
+ }
15016
+ });
15017
+ });
15018
+ },
15019
+ /**
15020
+ *
15021
+ * @summary Get HospitalEquipment.
15022
+ * @param {string} hospitalId
15023
+ * @param {string} equipmentId
15024
+ * @param {*} [options] Override http request option.
15025
+ * @throws {RequiredError}
15026
+ */
15027
+ apiV1HospitalsHospitalIdEquipmentsEquipmentIdGet: function (hospitalId, equipmentId, options) {
15028
+ return __awaiter(this, void 0, void 0, function () {
15029
+ var localVarAxiosArgs;
15030
+ return __generator(this, function (_a) {
15031
+ switch (_a.label) {
15032
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdEquipmentsEquipmentIdGet(hospitalId, equipmentId, options)];
15033
+ case 1:
15034
+ localVarAxiosArgs = _a.sent();
15035
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15036
+ }
15037
+ });
15038
+ });
15039
+ },
15040
+ /**
15041
+ *
15042
+ * @summary Get all EquipmentMedia.
15043
+ * @param {string} hospitalId
15044
+ * @param {string} equipmentId
15045
+ * @param {string} [id]
15046
+ * @param {MediaType} [mediaType]
15047
+ * @param {number} [page]
15048
+ * @param {number} [limit]
15049
+ * @param {Date} [lastRetrieved]
15050
+ * @param {*} [options] Override http request option.
15051
+ * @throws {RequiredError}
15052
+ */
15053
+ apiV1HospitalsHospitalIdEquipmentsEquipmentIdMediasGet: function (hospitalId, equipmentId, id, mediaType, page, limit, lastRetrieved, options) {
15054
+ return __awaiter(this, void 0, void 0, function () {
15055
+ var localVarAxiosArgs;
15056
+ return __generator(this, function (_a) {
15057
+ switch (_a.label) {
15058
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdEquipmentsEquipmentIdMediasGet(hospitalId, equipmentId, id, mediaType, page, limit, lastRetrieved, options)];
15059
+ case 1:
15060
+ localVarAxiosArgs = _a.sent();
15061
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15062
+ }
15063
+ });
15064
+ });
15065
+ },
15066
+ /**
15067
+ *
15068
+ * @summary Delete EquipmentMedia
15069
+ * @param {string} hospitalId
15070
+ * @param {string} equipmentId
15071
+ * @param {string} mediaId
14236
15072
  * @param {*} [options] Override http request option.
14237
15073
  * @throws {RequiredError}
14238
15074
  */
@@ -14631,33 +15467,27 @@ exports.HospitalsApiFp = function (configuration) {
14631
15467
  },
14632
15468
  /**
14633
15469
  *
14634
- * @summary Get all HospitalServices.
14635
- * @param {string} hospitalId2
14636
- * @param {string} [id]
14637
- * @param {string} [name]
14638
- * @param {string} [description]
14639
- * @param {string} [hospitalId]
15470
+ * @summary Get all HospitalSpecialties.
15471
+ * @param {string} hospitalId
14640
15472
  * @param {string} [hospitalName]
14641
15473
  * @param {string} [hospitalSlug]
14642
15474
  * @param {string} [specialtyId]
15475
+ * @param {string} [specialtyName]
14643
15476
  * @param {string} [specialtyTypeId]
14644
- * @param {string} [specialtyTypeName]
14645
15477
  * @param {MarketingType} [marketingType]
14646
- * @param {Procedure} [procedure]
14647
15478
  * @param {Date} [created]
14648
- * @param {string} [languageCode]
14649
15479
  * @param {number} [page]
14650
15480
  * @param {number} [limit]
14651
15481
  * @param {Date} [lastRetrieved]
14652
15482
  * @param {*} [options] Override http request option.
14653
15483
  * @throws {RequiredError}
14654
15484
  */
14655
- apiV1HospitalsHospitalIdServicesGet: function (hospitalId2, id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
15485
+ apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
14656
15486
  return __awaiter(this, void 0, void 0, function () {
14657
15487
  var localVarAxiosArgs;
14658
15488
  return __generator(this, function (_a) {
14659
15489
  switch (_a.label) {
14660
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesGet(hospitalId2, id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options)];
15490
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options)];
14661
15491
  case 1:
14662
15492
  localVarAxiosArgs = _a.sent();
14663
15493
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14667,18 +15497,18 @@ exports.HospitalsApiFp = function (configuration) {
14667
15497
  },
14668
15498
  /**
14669
15499
  *
14670
- * @summary Create HospitalService.
15500
+ * @summary Create HospitalSpecialty.
14671
15501
  * @param {string} hospitalId
14672
- * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
15502
+ * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
14673
15503
  * @param {*} [options] Override http request option.
14674
15504
  * @throws {RequiredError}
14675
15505
  */
14676
- apiV1HospitalsHospitalIdServicesPost: function (hospitalId, createHospitalServiceCommand, options) {
15506
+ apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
14677
15507
  return __awaiter(this, void 0, void 0, function () {
14678
15508
  var localVarAxiosArgs;
14679
15509
  return __generator(this, function (_a) {
14680
15510
  switch (_a.label) {
14681
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesPost(hospitalId, createHospitalServiceCommand, options)];
15511
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options)];
14682
15512
  case 1:
14683
15513
  localVarAxiosArgs = _a.sent();
14684
15514
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14688,18 +15518,18 @@ exports.HospitalsApiFp = function (configuration) {
14688
15518
  },
14689
15519
  /**
14690
15520
  *
14691
- * @summary Delete HospitalService
15521
+ * @summary Delete HospitalSpecialty.
14692
15522
  * @param {string} hospitalId
14693
- * @param {string} serviceId
15523
+ * @param {string} specialtyId
14694
15524
  * @param {*} [options] Override http request option.
14695
15525
  * @throws {RequiredError}
14696
15526
  */
14697
- apiV1HospitalsHospitalIdServicesServiceIdDelete: function (hospitalId, serviceId, options) {
15527
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
14698
15528
  return __awaiter(this, void 0, void 0, function () {
14699
15529
  var localVarAxiosArgs;
14700
15530
  return __generator(this, function (_a) {
14701
15531
  switch (_a.label) {
14702
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesServiceIdDelete(hospitalId, serviceId, options)];
15532
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options)];
14703
15533
  case 1:
14704
15534
  localVarAxiosArgs = _a.sent();
14705
15535
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14709,19 +15539,18 @@ exports.HospitalsApiFp = function (configuration) {
14709
15539
  },
14710
15540
  /**
14711
15541
  *
14712
- * @summary Get HospitalService.
15542
+ * @summary Get HospitalSpecialty.
14713
15543
  * @param {string} hospitalId
14714
- * @param {string} serviceId
14715
- * @param {string} [languageCode]
15544
+ * @param {string} specialtyId
14716
15545
  * @param {*} [options] Override http request option.
14717
15546
  * @throws {RequiredError}
14718
15547
  */
14719
- apiV1HospitalsHospitalIdServicesServiceIdGet: function (hospitalId, serviceId, languageCode, options) {
15548
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, options) {
14720
15549
  return __awaiter(this, void 0, void 0, function () {
14721
15550
  var localVarAxiosArgs;
14722
15551
  return __generator(this, function (_a) {
14723
15552
  switch (_a.label) {
14724
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesServiceIdGet(hospitalId, serviceId, languageCode, options)];
15553
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options)];
14725
15554
  case 1:
14726
15555
  localVarAxiosArgs = _a.sent();
14727
15556
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14731,19 +15560,19 @@ exports.HospitalsApiFp = function (configuration) {
14731
15560
  },
14732
15561
  /**
14733
15562
  *
14734
- * @summary Update HospitalService.
15563
+ * @summary Update HospitalSpecialty.
14735
15564
  * @param {string} hospitalId
14736
- * @param {string} serviceId
14737
- * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
15565
+ * @param {string} specialtyId
15566
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
14738
15567
  * @param {*} [options] Override http request option.
14739
15568
  * @throws {RequiredError}
14740
15569
  */
14741
- apiV1HospitalsHospitalIdServicesServiceIdPut: function (hospitalId, serviceId, updateHospitalServiceCommand, options) {
15570
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
14742
15571
  return __awaiter(this, void 0, void 0, function () {
14743
15572
  var localVarAxiosArgs;
14744
15573
  return __generator(this, function (_a) {
14745
15574
  switch (_a.label) {
14746
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesServiceIdPut(hospitalId, serviceId, updateHospitalServiceCommand, options)];
15575
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options)];
14747
15576
  case 1:
14748
15577
  localVarAxiosArgs = _a.sent();
14749
15578
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14753,27 +15582,34 @@ exports.HospitalsApiFp = function (configuration) {
14753
15582
  },
14754
15583
  /**
14755
15584
  *
14756
- * @summary Get all HospitalSpecialties.
15585
+ * @summary Get all HospitalServices.
14757
15586
  * @param {string} hospitalId
15587
+ * @param {string} specialtyId
14758
15588
  * @param {string} [hospitalName]
14759
15589
  * @param {string} [hospitalSlug]
14760
- * @param {string} [specialtyId]
15590
+ * @param {string} [id]
15591
+ * @param {string} [name]
15592
+ * @param {string} [description]
14761
15593
  * @param {string} [specialtyName]
14762
15594
  * @param {string} [specialtyTypeId]
15595
+ * @param {string} [specialtyTypeName]
15596
+ * @param {string} [serviceCategoryId]
14763
15597
  * @param {MarketingType} [marketingType]
15598
+ * @param {Procedure} [procedure]
14764
15599
  * @param {Date} [created]
15600
+ * @param {string} [languageCode]
14765
15601
  * @param {number} [page]
14766
15602
  * @param {number} [limit]
14767
15603
  * @param {Date} [lastRetrieved]
14768
15604
  * @param {*} [options] Override http request option.
14769
15605
  * @throws {RequiredError}
14770
15606
  */
14771
- apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
15607
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet: function (hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
14772
15608
  return __awaiter(this, void 0, void 0, function () {
14773
15609
  var localVarAxiosArgs;
14774
15610
  return __generator(this, function (_a) {
14775
15611
  switch (_a.label) {
14776
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options)];
15612
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet(hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options)];
14777
15613
  case 1:
14778
15614
  localVarAxiosArgs = _a.sent();
14779
15615
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14783,18 +15619,19 @@ exports.HospitalsApiFp = function (configuration) {
14783
15619
  },
14784
15620
  /**
14785
15621
  *
14786
- * @summary Create HospitalSpecialty.
15622
+ * @summary Create HospitalService.
14787
15623
  * @param {string} hospitalId
14788
- * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
15624
+ * @param {string} specialtyId
15625
+ * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
14789
15626
  * @param {*} [options] Override http request option.
14790
15627
  * @throws {RequiredError}
14791
15628
  */
14792
- apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
15629
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost: function (hospitalId, specialtyId, createHospitalServiceCommand, options) {
14793
15630
  return __awaiter(this, void 0, void 0, function () {
14794
15631
  var localVarAxiosArgs;
14795
15632
  return __generator(this, function (_a) {
14796
15633
  switch (_a.label) {
14797
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options)];
15634
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost(hospitalId, specialtyId, createHospitalServiceCommand, options)];
14798
15635
  case 1:
14799
15636
  localVarAxiosArgs = _a.sent();
14800
15637
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14804,18 +15641,19 @@ exports.HospitalsApiFp = function (configuration) {
14804
15641
  },
14805
15642
  /**
14806
15643
  *
14807
- * @summary Delete HospitalSpecialty.
15644
+ * @summary Delete HospitalService
14808
15645
  * @param {string} hospitalId
14809
15646
  * @param {string} specialtyId
15647
+ * @param {string} serviceId
14810
15648
  * @param {*} [options] Override http request option.
14811
15649
  * @throws {RequiredError}
14812
15650
  */
14813
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
15651
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete: function (hospitalId, specialtyId, serviceId, options) {
14814
15652
  return __awaiter(this, void 0, void 0, function () {
14815
15653
  var localVarAxiosArgs;
14816
15654
  return __generator(this, function (_a) {
14817
15655
  switch (_a.label) {
14818
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options)];
15656
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete(hospitalId, specialtyId, serviceId, options)];
14819
15657
  case 1:
14820
15658
  localVarAxiosArgs = _a.sent();
14821
15659
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14825,18 +15663,20 @@ exports.HospitalsApiFp = function (configuration) {
14825
15663
  },
14826
15664
  /**
14827
15665
  *
14828
- * @summary Get HospitalSpecialty.
15666
+ * @summary Get HospitalService.
14829
15667
  * @param {string} hospitalId
14830
15668
  * @param {string} specialtyId
15669
+ * @param {string} serviceId
15670
+ * @param {string} [languageCode]
14831
15671
  * @param {*} [options] Override http request option.
14832
15672
  * @throws {RequiredError}
14833
15673
  */
14834
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, options) {
15674
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet: function (hospitalId, specialtyId, serviceId, languageCode, options) {
14835
15675
  return __awaiter(this, void 0, void 0, function () {
14836
15676
  var localVarAxiosArgs;
14837
15677
  return __generator(this, function (_a) {
14838
15678
  switch (_a.label) {
14839
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options)];
15679
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet(hospitalId, specialtyId, serviceId, languageCode, options)];
14840
15680
  case 1:
14841
15681
  localVarAxiosArgs = _a.sent();
14842
15682
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14846,17 +15686,24 @@ exports.HospitalsApiFp = function (configuration) {
14846
15686
  },
14847
15687
  /**
14848
15688
  *
14849
- * @summary Create Hospital.
14850
- * @param {CreateHospitalCommand} [createHospitalCommand]
15689
+ * @summary Get all HospitalServiceMedias.
15690
+ * @param {string} hospitalId
15691
+ * @param {string} specialtyId
15692
+ * @param {string} serviceId
15693
+ * @param {string} [id]
15694
+ * @param {MediaType} [mediaType]
15695
+ * @param {number} [page]
15696
+ * @param {number} [limit]
15697
+ * @param {Date} [lastRetrieved]
14851
15698
  * @param {*} [options] Override http request option.
14852
15699
  * @throws {RequiredError}
14853
15700
  */
14854
- apiV1HospitalsPost: function (createHospitalCommand, options) {
15701
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet: function (hospitalId, specialtyId, serviceId, id, mediaType, page, limit, lastRetrieved, options) {
14855
15702
  return __awaiter(this, void 0, void 0, function () {
14856
15703
  var localVarAxiosArgs;
14857
15704
  return __generator(this, function (_a) {
14858
15705
  switch (_a.label) {
14859
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsPost(createHospitalCommand, options)];
15706
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet(hospitalId, specialtyId, serviceId, id, mediaType, page, limit, lastRetrieved, options)];
14860
15707
  case 1:
14861
15708
  localVarAxiosArgs = _a.sent();
14862
15709
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14866,18 +15713,20 @@ exports.HospitalsApiFp = function (configuration) {
14866
15713
  },
14867
15714
  /**
14868
15715
  *
14869
- * @summary Get Hospital by slug.
14870
- * @param {string} slug
14871
- * @param {string} [languageCode]
15716
+ * @summary Delete HospitalServiceMedia
15717
+ * @param {string} hospitalId
15718
+ * @param {string} specialtyId
15719
+ * @param {string} serviceId
15720
+ * @param {string} mediaId
14872
15721
  * @param {*} [options] Override http request option.
14873
15722
  * @throws {RequiredError}
14874
15723
  */
14875
- apiV1HospitalsSlugGet: function (slug, languageCode, options) {
15724
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete: function (hospitalId, specialtyId, serviceId, mediaId, options) {
14876
15725
  return __awaiter(this, void 0, void 0, function () {
14877
15726
  var localVarAxiosArgs;
14878
15727
  return __generator(this, function (_a) {
14879
15728
  switch (_a.label) {
14880
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsSlugGet(slug, languageCode, options)];
15729
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete(hospitalId, specialtyId, serviceId, mediaId, options)];
14881
15730
  case 1:
14882
15731
  localVarAxiosArgs = _a.sent();
14883
15732
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14885,22 +15734,156 @@ exports.HospitalsApiFp = function (configuration) {
14885
15734
  });
14886
15735
  });
14887
15736
  },
14888
- };
14889
- };
14890
- /**
14891
- * HospitalsApi - factory interface
14892
- * @export
14893
- */
14894
- exports.HospitalsApiFactory = function (configuration, basePath, axios) {
14895
- var localVarFp = exports.HospitalsApiFp(configuration);
14896
- return {
14897
15737
  /**
14898
15738
  *
14899
- * @summary Get all Hospitals.
14900
- * @param {string} [hospitalId]
14901
- * @param {string} [name]
14902
- * @param {string} [description]
14903
- * @param {string} [countryId]
15739
+ * @summary Get HospitalServiceMedia.
15740
+ * @param {string} hospitalId
15741
+ * @param {string} specialtyId
15742
+ * @param {string} serviceId
15743
+ * @param {string} mediaId
15744
+ * @param {*} [options] Override http request option.
15745
+ * @throws {RequiredError}
15746
+ */
15747
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet: function (hospitalId, specialtyId, serviceId, mediaId, options) {
15748
+ return __awaiter(this, void 0, void 0, function () {
15749
+ var localVarAxiosArgs;
15750
+ return __generator(this, function (_a) {
15751
+ switch (_a.label) {
15752
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options)];
15753
+ case 1:
15754
+ localVarAxiosArgs = _a.sent();
15755
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15756
+ }
15757
+ });
15758
+ });
15759
+ },
15760
+ /**
15761
+ *
15762
+ * @summary Update HospitalServiceMedia.
15763
+ * @param {string} hospitalId
15764
+ * @param {string} specialtyId
15765
+ * @param {string} serviceId
15766
+ * @param {string} mediaId
15767
+ * @param {UpdateMediaCommand} [updateMediaCommand]
15768
+ * @param {*} [options] Override http request option.
15769
+ * @throws {RequiredError}
15770
+ */
15771
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut: function (hospitalId, specialtyId, serviceId, mediaId, updateMediaCommand, options) {
15772
+ return __awaiter(this, void 0, void 0, function () {
15773
+ var localVarAxiosArgs;
15774
+ return __generator(this, function (_a) {
15775
+ switch (_a.label) {
15776
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut(hospitalId, specialtyId, serviceId, mediaId, updateMediaCommand, options)];
15777
+ case 1:
15778
+ localVarAxiosArgs = _a.sent();
15779
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15780
+ }
15781
+ });
15782
+ });
15783
+ },
15784
+ /**
15785
+ *
15786
+ * @summary Create HospitalServiceMedia.
15787
+ * @param {string} hospitalId
15788
+ * @param {string} specialtyId
15789
+ * @param {string} serviceId
15790
+ * @param {CreateMediaCommand} [createMediaCommand]
15791
+ * @param {*} [options] Override http request option.
15792
+ * @throws {RequiredError}
15793
+ */
15794
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost: function (hospitalId, specialtyId, serviceId, createMediaCommand, options) {
15795
+ return __awaiter(this, void 0, void 0, function () {
15796
+ var localVarAxiosArgs;
15797
+ return __generator(this, function (_a) {
15798
+ switch (_a.label) {
15799
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost(hospitalId, specialtyId, serviceId, createMediaCommand, options)];
15800
+ case 1:
15801
+ localVarAxiosArgs = _a.sent();
15802
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15803
+ }
15804
+ });
15805
+ });
15806
+ },
15807
+ /**
15808
+ *
15809
+ * @summary Update HospitalService.
15810
+ * @param {string} hospitalId
15811
+ * @param {string} specialtyId
15812
+ * @param {string} serviceId
15813
+ * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
15814
+ * @param {*} [options] Override http request option.
15815
+ * @throws {RequiredError}
15816
+ */
15817
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut: function (hospitalId, specialtyId, serviceId, updateHospitalServiceCommand, options) {
15818
+ return __awaiter(this, void 0, void 0, function () {
15819
+ var localVarAxiosArgs;
15820
+ return __generator(this, function (_a) {
15821
+ switch (_a.label) {
15822
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut(hospitalId, specialtyId, serviceId, updateHospitalServiceCommand, options)];
15823
+ case 1:
15824
+ localVarAxiosArgs = _a.sent();
15825
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15826
+ }
15827
+ });
15828
+ });
15829
+ },
15830
+ /**
15831
+ *
15832
+ * @summary Create Hospital.
15833
+ * @param {CreateHospitalCommand} [createHospitalCommand]
15834
+ * @param {*} [options] Override http request option.
15835
+ * @throws {RequiredError}
15836
+ */
15837
+ apiV1HospitalsPost: function (createHospitalCommand, options) {
15838
+ return __awaiter(this, void 0, void 0, function () {
15839
+ var localVarAxiosArgs;
15840
+ return __generator(this, function (_a) {
15841
+ switch (_a.label) {
15842
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsPost(createHospitalCommand, options)];
15843
+ case 1:
15844
+ localVarAxiosArgs = _a.sent();
15845
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15846
+ }
15847
+ });
15848
+ });
15849
+ },
15850
+ /**
15851
+ *
15852
+ * @summary Get Hospital by slug.
15853
+ * @param {string} slug
15854
+ * @param {string} [languageCode]
15855
+ * @param {*} [options] Override http request option.
15856
+ * @throws {RequiredError}
15857
+ */
15858
+ apiV1HospitalsSlugGet: function (slug, languageCode, options) {
15859
+ return __awaiter(this, void 0, void 0, function () {
15860
+ var localVarAxiosArgs;
15861
+ return __generator(this, function (_a) {
15862
+ switch (_a.label) {
15863
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsSlugGet(slug, languageCode, options)];
15864
+ case 1:
15865
+ localVarAxiosArgs = _a.sent();
15866
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15867
+ }
15868
+ });
15869
+ });
15870
+ },
15871
+ };
15872
+ };
15873
+ /**
15874
+ * HospitalsApi - factory interface
15875
+ * @export
15876
+ */
15877
+ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
15878
+ var localVarFp = exports.HospitalsApiFp(configuration);
15879
+ return {
15880
+ /**
15881
+ *
15882
+ * @summary Get all Hospitals.
15883
+ * @param {string} [hospitalId]
15884
+ * @param {string} [name]
15885
+ * @param {string} [description]
15886
+ * @param {string} [countryId]
14904
15887
  * @param {Date} [created]
14905
15888
  * @param {MarketingType} [marketingType]
14906
15889
  * @param {string} [specialtyTypeId]
@@ -14943,9 +15926,8 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
14943
15926
  },
14944
15927
  /**
14945
15928
  *
14946
- * @summary Get all HospitalAccreditation.
14947
- * @param {string} hospitalId2
14948
- * @param {string} [hospitalId]
15929
+ * @summary Get all HospitalAccreditations.
15930
+ * @param {string} hospitalId
14949
15931
  * @param {string} [hospitalName]
14950
15932
  * @param {string} [accreditationId]
14951
15933
  * @param {string} [accreditationName]
@@ -14955,8 +15937,8 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
14955
15937
  * @param {*} [options] Override http request option.
14956
15938
  * @throws {RequiredError}
14957
15939
  */
14958
- apiV1HospitalsHospitalIdAccreditationsGet: function (hospitalId2, hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
14959
- return localVarFp.apiV1HospitalsHospitalIdAccreditationsGet(hospitalId2, hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
15940
+ apiV1HospitalsHospitalIdAccreditationsGet: function (hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
15941
+ return localVarFp.apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
14960
15942
  },
14961
15943
  /**
14962
15944
  *
@@ -15241,180 +16223,267 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
15241
16223
  },
15242
16224
  /**
15243
16225
  *
15244
- * @summary Get all HospitalServices.
15245
- * @param {string} hospitalId2
15246
- * @param {string} [id]
15247
- * @param {string} [name]
15248
- * @param {string} [description]
15249
- * @param {string} [hospitalId]
16226
+ * @summary Get all HospitalSpecialties.
16227
+ * @param {string} hospitalId
15250
16228
  * @param {string} [hospitalName]
15251
16229
  * @param {string} [hospitalSlug]
15252
16230
  * @param {string} [specialtyId]
16231
+ * @param {string} [specialtyName]
15253
16232
  * @param {string} [specialtyTypeId]
15254
- * @param {string} [specialtyTypeName]
15255
16233
  * @param {MarketingType} [marketingType]
15256
- * @param {Procedure} [procedure]
15257
16234
  * @param {Date} [created]
15258
- * @param {string} [languageCode]
15259
16235
  * @param {number} [page]
15260
16236
  * @param {number} [limit]
15261
16237
  * @param {Date} [lastRetrieved]
15262
16238
  * @param {*} [options] Override http request option.
15263
16239
  * @throws {RequiredError}
15264
16240
  */
15265
- apiV1HospitalsHospitalIdServicesGet: function (hospitalId2, id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
15266
- return localVarFp.apiV1HospitalsHospitalIdServicesGet(hospitalId2, id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
16241
+ apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
16242
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
15267
16243
  },
15268
16244
  /**
15269
16245
  *
15270
- * @summary Create HospitalService.
16246
+ * @summary Create HospitalSpecialty.
15271
16247
  * @param {string} hospitalId
15272
- * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
16248
+ * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
15273
16249
  * @param {*} [options] Override http request option.
15274
16250
  * @throws {RequiredError}
15275
16251
  */
15276
- apiV1HospitalsHospitalIdServicesPost: function (hospitalId, createHospitalServiceCommand, options) {
15277
- return localVarFp.apiV1HospitalsHospitalIdServicesPost(hospitalId, createHospitalServiceCommand, options).then(function (request) { return request(axios, basePath); });
16252
+ apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
16253
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
15278
16254
  },
15279
16255
  /**
15280
16256
  *
15281
- * @summary Delete HospitalService
16257
+ * @summary Delete HospitalSpecialty.
15282
16258
  * @param {string} hospitalId
15283
- * @param {string} serviceId
16259
+ * @param {string} specialtyId
15284
16260
  * @param {*} [options] Override http request option.
15285
16261
  * @throws {RequiredError}
15286
16262
  */
15287
- apiV1HospitalsHospitalIdServicesServiceIdDelete: function (hospitalId, serviceId, options) {
15288
- return localVarFp.apiV1HospitalsHospitalIdServicesServiceIdDelete(hospitalId, serviceId, options).then(function (request) { return request(axios, basePath); });
16263
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
16264
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options).then(function (request) { return request(axios, basePath); });
15289
16265
  },
15290
16266
  /**
15291
16267
  *
15292
- * @summary Get HospitalService.
16268
+ * @summary Get HospitalSpecialty.
15293
16269
  * @param {string} hospitalId
15294
- * @param {string} serviceId
15295
- * @param {string} [languageCode]
16270
+ * @param {string} specialtyId
15296
16271
  * @param {*} [options] Override http request option.
15297
16272
  * @throws {RequiredError}
15298
16273
  */
15299
- apiV1HospitalsHospitalIdServicesServiceIdGet: function (hospitalId, serviceId, languageCode, options) {
15300
- return localVarFp.apiV1HospitalsHospitalIdServicesServiceIdGet(hospitalId, serviceId, languageCode, options).then(function (request) { return request(axios, basePath); });
16274
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, options) {
16275
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then(function (request) { return request(axios, basePath); });
15301
16276
  },
15302
16277
  /**
15303
16278
  *
15304
- * @summary Update HospitalService.
16279
+ * @summary Update HospitalSpecialty.
15305
16280
  * @param {string} hospitalId
15306
- * @param {string} serviceId
15307
- * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
16281
+ * @param {string} specialtyId
16282
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
15308
16283
  * @param {*} [options] Override http request option.
15309
16284
  * @throws {RequiredError}
15310
16285
  */
15311
- apiV1HospitalsHospitalIdServicesServiceIdPut: function (hospitalId, serviceId, updateHospitalServiceCommand, options) {
15312
- return localVarFp.apiV1HospitalsHospitalIdServicesServiceIdPut(hospitalId, serviceId, updateHospitalServiceCommand, options).then(function (request) { return request(axios, basePath); });
16286
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
16287
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
15313
16288
  },
15314
16289
  /**
15315
16290
  *
15316
- * @summary Get all HospitalSpecialties.
16291
+ * @summary Get all HospitalServices.
15317
16292
  * @param {string} hospitalId
16293
+ * @param {string} specialtyId
15318
16294
  * @param {string} [hospitalName]
15319
16295
  * @param {string} [hospitalSlug]
15320
- * @param {string} [specialtyId]
16296
+ * @param {string} [id]
16297
+ * @param {string} [name]
16298
+ * @param {string} [description]
15321
16299
  * @param {string} [specialtyName]
15322
16300
  * @param {string} [specialtyTypeId]
16301
+ * @param {string} [specialtyTypeName]
16302
+ * @param {string} [serviceCategoryId]
15323
16303
  * @param {MarketingType} [marketingType]
16304
+ * @param {Procedure} [procedure]
15324
16305
  * @param {Date} [created]
16306
+ * @param {string} [languageCode]
15325
16307
  * @param {number} [page]
15326
16308
  * @param {number} [limit]
15327
16309
  * @param {Date} [lastRetrieved]
15328
16310
  * @param {*} [options] Override http request option.
15329
16311
  * @throws {RequiredError}
15330
16312
  */
15331
- apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
15332
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
16313
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet: function (hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
16314
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet(hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
15333
16315
  },
15334
16316
  /**
15335
16317
  *
15336
- * @summary Create HospitalSpecialty.
16318
+ * @summary Create HospitalService.
15337
16319
  * @param {string} hospitalId
15338
- * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
16320
+ * @param {string} specialtyId
16321
+ * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
15339
16322
  * @param {*} [options] Override http request option.
15340
16323
  * @throws {RequiredError}
15341
16324
  */
15342
- apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
15343
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
16325
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost: function (hospitalId, specialtyId, createHospitalServiceCommand, options) {
16326
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost(hospitalId, specialtyId, createHospitalServiceCommand, options).then(function (request) { return request(axios, basePath); });
15344
16327
  },
15345
16328
  /**
15346
16329
  *
15347
- * @summary Delete HospitalSpecialty.
16330
+ * @summary Delete HospitalService
15348
16331
  * @param {string} hospitalId
15349
16332
  * @param {string} specialtyId
16333
+ * @param {string} serviceId
15350
16334
  * @param {*} [options] Override http request option.
15351
16335
  * @throws {RequiredError}
15352
16336
  */
15353
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
15354
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options).then(function (request) { return request(axios, basePath); });
16337
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete: function (hospitalId, specialtyId, serviceId, options) {
16338
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete(hospitalId, specialtyId, serviceId, options).then(function (request) { return request(axios, basePath); });
15355
16339
  },
15356
16340
  /**
15357
16341
  *
15358
- * @summary Get HospitalSpecialty.
16342
+ * @summary Get HospitalService.
15359
16343
  * @param {string} hospitalId
15360
16344
  * @param {string} specialtyId
16345
+ * @param {string} serviceId
16346
+ * @param {string} [languageCode]
15361
16347
  * @param {*} [options] Override http request option.
15362
16348
  * @throws {RequiredError}
15363
16349
  */
15364
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, options) {
15365
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then(function (request) { return request(axios, basePath); });
16350
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet: function (hospitalId, specialtyId, serviceId, languageCode, options) {
16351
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet(hospitalId, specialtyId, serviceId, languageCode, options).then(function (request) { return request(axios, basePath); });
15366
16352
  },
15367
16353
  /**
15368
16354
  *
15369
- * @summary Create Hospital.
15370
- * @param {CreateHospitalCommand} [createHospitalCommand]
16355
+ * @summary Get all HospitalServiceMedias.
16356
+ * @param {string} hospitalId
16357
+ * @param {string} specialtyId
16358
+ * @param {string} serviceId
16359
+ * @param {string} [id]
16360
+ * @param {MediaType} [mediaType]
16361
+ * @param {number} [page]
16362
+ * @param {number} [limit]
16363
+ * @param {Date} [lastRetrieved]
15371
16364
  * @param {*} [options] Override http request option.
15372
16365
  * @throws {RequiredError}
15373
16366
  */
15374
- apiV1HospitalsPost: function (createHospitalCommand, options) {
15375
- return localVarFp.apiV1HospitalsPost(createHospitalCommand, options).then(function (request) { return request(axios, basePath); });
16367
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet: function (hospitalId, specialtyId, serviceId, id, mediaType, page, limit, lastRetrieved, options) {
16368
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet(hospitalId, specialtyId, serviceId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
15376
16369
  },
15377
16370
  /**
15378
16371
  *
15379
- * @summary Get Hospital by slug.
15380
- * @param {string} slug
15381
- * @param {string} [languageCode]
16372
+ * @summary Delete HospitalServiceMedia
16373
+ * @param {string} hospitalId
16374
+ * @param {string} specialtyId
16375
+ * @param {string} serviceId
16376
+ * @param {string} mediaId
15382
16377
  * @param {*} [options] Override http request option.
15383
16378
  * @throws {RequiredError}
15384
16379
  */
15385
- apiV1HospitalsSlugGet: function (slug, languageCode, options) {
15386
- return localVarFp.apiV1HospitalsSlugGet(slug, languageCode, options).then(function (request) { return request(axios, basePath); });
16380
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete: function (hospitalId, specialtyId, serviceId, mediaId, options) {
16381
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete(hospitalId, specialtyId, serviceId, mediaId, options).then(function (request) { return request(axios, basePath); });
15387
16382
  },
15388
- };
15389
- };
15390
- /**
15391
- * HospitalsApi - object-oriented interface
15392
- * @export
15393
- * @class HospitalsApi
15394
- * @extends {BaseAPI}
15395
- */
15396
- var HospitalsApi = /** @class */ (function (_super) {
15397
- __extends(HospitalsApi, _super);
15398
- function HospitalsApi() {
15399
- return _super !== null && _super.apply(this, arguments) || this;
15400
- }
15401
- /**
15402
- *
15403
- * @summary Get all Hospitals.
15404
- * @param {string} [hospitalId]
15405
- * @param {string} [name]
15406
- * @param {string} [description]
15407
- * @param {string} [countryId]
15408
- * @param {Date} [created]
15409
- * @param {MarketingType} [marketingType]
15410
- * @param {string} [specialtyTypeId]
15411
- * @param {string} [specialtyId]
15412
- * @param {string} [serviceId]
15413
- * @param {string} [exceptHospitalId]
15414
- * @param {boolean} [showHidden]
15415
- * @param {string} [languageCode]
15416
- * @param {Array<string>} [ids]
15417
- * @param {number} [page]
16383
+ /**
16384
+ *
16385
+ * @summary Get HospitalServiceMedia.
16386
+ * @param {string} hospitalId
16387
+ * @param {string} specialtyId
16388
+ * @param {string} serviceId
16389
+ * @param {string} mediaId
16390
+ * @param {*} [options] Override http request option.
16391
+ * @throws {RequiredError}
16392
+ */
16393
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet: function (hospitalId, specialtyId, serviceId, mediaId, options) {
16394
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then(function (request) { return request(axios, basePath); });
16395
+ },
16396
+ /**
16397
+ *
16398
+ * @summary Update HospitalServiceMedia.
16399
+ * @param {string} hospitalId
16400
+ * @param {string} specialtyId
16401
+ * @param {string} serviceId
16402
+ * @param {string} mediaId
16403
+ * @param {UpdateMediaCommand} [updateMediaCommand]
16404
+ * @param {*} [options] Override http request option.
16405
+ * @throws {RequiredError}
16406
+ */
16407
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut: function (hospitalId, specialtyId, serviceId, mediaId, updateMediaCommand, options) {
16408
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut(hospitalId, specialtyId, serviceId, mediaId, updateMediaCommand, options).then(function (request) { return request(axios, basePath); });
16409
+ },
16410
+ /**
16411
+ *
16412
+ * @summary Create HospitalServiceMedia.
16413
+ * @param {string} hospitalId
16414
+ * @param {string} specialtyId
16415
+ * @param {string} serviceId
16416
+ * @param {CreateMediaCommand} [createMediaCommand]
16417
+ * @param {*} [options] Override http request option.
16418
+ * @throws {RequiredError}
16419
+ */
16420
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost: function (hospitalId, specialtyId, serviceId, createMediaCommand, options) {
16421
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost(hospitalId, specialtyId, serviceId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
16422
+ },
16423
+ /**
16424
+ *
16425
+ * @summary Update HospitalService.
16426
+ * @param {string} hospitalId
16427
+ * @param {string} specialtyId
16428
+ * @param {string} serviceId
16429
+ * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
16430
+ * @param {*} [options] Override http request option.
16431
+ * @throws {RequiredError}
16432
+ */
16433
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut: function (hospitalId, specialtyId, serviceId, updateHospitalServiceCommand, options) {
16434
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut(hospitalId, specialtyId, serviceId, updateHospitalServiceCommand, options).then(function (request) { return request(axios, basePath); });
16435
+ },
16436
+ /**
16437
+ *
16438
+ * @summary Create Hospital.
16439
+ * @param {CreateHospitalCommand} [createHospitalCommand]
16440
+ * @param {*} [options] Override http request option.
16441
+ * @throws {RequiredError}
16442
+ */
16443
+ apiV1HospitalsPost: function (createHospitalCommand, options) {
16444
+ return localVarFp.apiV1HospitalsPost(createHospitalCommand, options).then(function (request) { return request(axios, basePath); });
16445
+ },
16446
+ /**
16447
+ *
16448
+ * @summary Get Hospital by slug.
16449
+ * @param {string} slug
16450
+ * @param {string} [languageCode]
16451
+ * @param {*} [options] Override http request option.
16452
+ * @throws {RequiredError}
16453
+ */
16454
+ apiV1HospitalsSlugGet: function (slug, languageCode, options) {
16455
+ return localVarFp.apiV1HospitalsSlugGet(slug, languageCode, options).then(function (request) { return request(axios, basePath); });
16456
+ },
16457
+ };
16458
+ };
16459
+ /**
16460
+ * HospitalsApi - object-oriented interface
16461
+ * @export
16462
+ * @class HospitalsApi
16463
+ * @extends {BaseAPI}
16464
+ */
16465
+ var HospitalsApi = /** @class */ (function (_super) {
16466
+ __extends(HospitalsApi, _super);
16467
+ function HospitalsApi() {
16468
+ return _super !== null && _super.apply(this, arguments) || this;
16469
+ }
16470
+ /**
16471
+ *
16472
+ * @summary Get all Hospitals.
16473
+ * @param {string} [hospitalId]
16474
+ * @param {string} [name]
16475
+ * @param {string} [description]
16476
+ * @param {string} [countryId]
16477
+ * @param {Date} [created]
16478
+ * @param {MarketingType} [marketingType]
16479
+ * @param {string} [specialtyTypeId]
16480
+ * @param {string} [specialtyId]
16481
+ * @param {string} [serviceId]
16482
+ * @param {string} [exceptHospitalId]
16483
+ * @param {boolean} [showHidden]
16484
+ * @param {string} [languageCode]
16485
+ * @param {Array<string>} [ids]
16486
+ * @param {number} [page]
15418
16487
  * @param {number} [limit]
15419
16488
  * @param {Date} [lastRetrieved]
15420
16489
  * @param {*} [options] Override http request option.
@@ -15453,9 +16522,8 @@ var HospitalsApi = /** @class */ (function (_super) {
15453
16522
  };
15454
16523
  /**
15455
16524
  *
15456
- * @summary Get all HospitalAccreditation.
15457
- * @param {string} hospitalId2
15458
- * @param {string} [hospitalId]
16525
+ * @summary Get all HospitalAccreditations.
16526
+ * @param {string} hospitalId
15459
16527
  * @param {string} [hospitalName]
15460
16528
  * @param {string} [accreditationId]
15461
16529
  * @param {string} [accreditationName]
@@ -15466,9 +16534,9 @@ var HospitalsApi = /** @class */ (function (_super) {
15466
16534
  * @throws {RequiredError}
15467
16535
  * @memberof HospitalsApi
15468
16536
  */
15469
- HospitalsApi.prototype.apiV1HospitalsHospitalIdAccreditationsGet = function (hospitalId2, hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
16537
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdAccreditationsGet = function (hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
15470
16538
  var _this = this;
15471
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdAccreditationsGet(hospitalId2, hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
16539
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
15472
16540
  };
15473
16541
  /**
15474
16542
  *
@@ -15797,19 +16865,95 @@ var HospitalsApi = /** @class */ (function (_super) {
15797
16865
  var _this = this;
15798
16866
  return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdPut(hospitalId, updateHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15799
16867
  };
16868
+ /**
16869
+ *
16870
+ * @summary Get all HospitalSpecialties.
16871
+ * @param {string} hospitalId
16872
+ * @param {string} [hospitalName]
16873
+ * @param {string} [hospitalSlug]
16874
+ * @param {string} [specialtyId]
16875
+ * @param {string} [specialtyName]
16876
+ * @param {string} [specialtyTypeId]
16877
+ * @param {MarketingType} [marketingType]
16878
+ * @param {Date} [created]
16879
+ * @param {number} [page]
16880
+ * @param {number} [limit]
16881
+ * @param {Date} [lastRetrieved]
16882
+ * @param {*} [options] Override http request option.
16883
+ * @throws {RequiredError}
16884
+ * @memberof HospitalsApi
16885
+ */
16886
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesGet = function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
16887
+ var _this = this;
16888
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
16889
+ };
16890
+ /**
16891
+ *
16892
+ * @summary Create HospitalSpecialty.
16893
+ * @param {string} hospitalId
16894
+ * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
16895
+ * @param {*} [options] Override http request option.
16896
+ * @throws {RequiredError}
16897
+ * @memberof HospitalsApi
16898
+ */
16899
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesPost = function (hospitalId, createHospitalSpecialtyCommand, options) {
16900
+ var _this = this;
16901
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16902
+ };
16903
+ /**
16904
+ *
16905
+ * @summary Delete HospitalSpecialty.
16906
+ * @param {string} hospitalId
16907
+ * @param {string} specialtyId
16908
+ * @param {*} [options] Override http request option.
16909
+ * @throws {RequiredError}
16910
+ * @memberof HospitalsApi
16911
+ */
16912
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete = function (hospitalId, specialtyId, options) {
16913
+ var _this = this;
16914
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
16915
+ };
16916
+ /**
16917
+ *
16918
+ * @summary Get HospitalSpecialty.
16919
+ * @param {string} hospitalId
16920
+ * @param {string} specialtyId
16921
+ * @param {*} [options] Override http request option.
16922
+ * @throws {RequiredError}
16923
+ * @memberof HospitalsApi
16924
+ */
16925
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet = function (hospitalId, specialtyId, options) {
16926
+ var _this = this;
16927
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
16928
+ };
16929
+ /**
16930
+ *
16931
+ * @summary Update HospitalSpecialty.
16932
+ * @param {string} hospitalId
16933
+ * @param {string} specialtyId
16934
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
16935
+ * @param {*} [options] Override http request option.
16936
+ * @throws {RequiredError}
16937
+ * @memberof HospitalsApi
16938
+ */
16939
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut = function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
16940
+ var _this = this;
16941
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16942
+ };
15800
16943
  /**
15801
16944
  *
15802
16945
  * @summary Get all HospitalServices.
15803
- * @param {string} hospitalId2
16946
+ * @param {string} hospitalId
16947
+ * @param {string} specialtyId
16948
+ * @param {string} [hospitalName]
16949
+ * @param {string} [hospitalSlug]
15804
16950
  * @param {string} [id]
15805
16951
  * @param {string} [name]
15806
16952
  * @param {string} [description]
15807
- * @param {string} [hospitalId]
15808
- * @param {string} [hospitalName]
15809
- * @param {string} [hospitalSlug]
15810
- * @param {string} [specialtyId]
16953
+ * @param {string} [specialtyName]
15811
16954
  * @param {string} [specialtyTypeId]
15812
16955
  * @param {string} [specialtyTypeName]
16956
+ * @param {string} [serviceCategoryId]
15813
16957
  * @param {MarketingType} [marketingType]
15814
16958
  * @param {Procedure} [procedure]
15815
16959
  * @param {Date} [created]
@@ -15821,124 +16965,147 @@ var HospitalsApi = /** @class */ (function (_super) {
15821
16965
  * @throws {RequiredError}
15822
16966
  * @memberof HospitalsApi
15823
16967
  */
15824
- HospitalsApi.prototype.apiV1HospitalsHospitalIdServicesGet = function (hospitalId2, id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
16968
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet = function (hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
15825
16969
  var _this = this;
15826
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdServicesGet(hospitalId2, id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
16970
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet(hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
15827
16971
  };
15828
16972
  /**
15829
16973
  *
15830
16974
  * @summary Create HospitalService.
15831
16975
  * @param {string} hospitalId
16976
+ * @param {string} specialtyId
15832
16977
  * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
15833
16978
  * @param {*} [options] Override http request option.
15834
16979
  * @throws {RequiredError}
15835
16980
  * @memberof HospitalsApi
15836
16981
  */
15837
- HospitalsApi.prototype.apiV1HospitalsHospitalIdServicesPost = function (hospitalId, createHospitalServiceCommand, options) {
16982
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost = function (hospitalId, specialtyId, createHospitalServiceCommand, options) {
15838
16983
  var _this = this;
15839
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdServicesPost(hospitalId, createHospitalServiceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16984
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost(hospitalId, specialtyId, createHospitalServiceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15840
16985
  };
15841
16986
  /**
15842
16987
  *
15843
16988
  * @summary Delete HospitalService
15844
16989
  * @param {string} hospitalId
16990
+ * @param {string} specialtyId
15845
16991
  * @param {string} serviceId
15846
16992
  * @param {*} [options] Override http request option.
15847
16993
  * @throws {RequiredError}
15848
16994
  * @memberof HospitalsApi
15849
16995
  */
15850
- HospitalsApi.prototype.apiV1HospitalsHospitalIdServicesServiceIdDelete = function (hospitalId, serviceId, options) {
16996
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete = function (hospitalId, specialtyId, serviceId, options) {
15851
16997
  var _this = this;
15852
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdServicesServiceIdDelete(hospitalId, serviceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
16998
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete(hospitalId, specialtyId, serviceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15853
16999
  };
15854
17000
  /**
15855
17001
  *
15856
17002
  * @summary Get HospitalService.
15857
17003
  * @param {string} hospitalId
17004
+ * @param {string} specialtyId
15858
17005
  * @param {string} serviceId
15859
17006
  * @param {string} [languageCode]
15860
17007
  * @param {*} [options] Override http request option.
15861
17008
  * @throws {RequiredError}
15862
17009
  * @memberof HospitalsApi
15863
17010
  */
15864
- HospitalsApi.prototype.apiV1HospitalsHospitalIdServicesServiceIdGet = function (hospitalId, serviceId, languageCode, options) {
17011
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet = function (hospitalId, specialtyId, serviceId, languageCode, options) {
15865
17012
  var _this = this;
15866
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdServicesServiceIdGet(hospitalId, serviceId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
17013
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet(hospitalId, specialtyId, serviceId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
15867
17014
  };
15868
17015
  /**
15869
17016
  *
15870
- * @summary Update HospitalService.
17017
+ * @summary Get all HospitalServiceMedias.
15871
17018
  * @param {string} hospitalId
17019
+ * @param {string} specialtyId
15872
17020
  * @param {string} serviceId
15873
- * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
17021
+ * @param {string} [id]
17022
+ * @param {MediaType} [mediaType]
17023
+ * @param {number} [page]
17024
+ * @param {number} [limit]
17025
+ * @param {Date} [lastRetrieved]
15874
17026
  * @param {*} [options] Override http request option.
15875
17027
  * @throws {RequiredError}
15876
17028
  * @memberof HospitalsApi
15877
17029
  */
15878
- HospitalsApi.prototype.apiV1HospitalsHospitalIdServicesServiceIdPut = function (hospitalId, serviceId, updateHospitalServiceCommand, options) {
17030
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet = function (hospitalId, specialtyId, serviceId, id, mediaType, page, limit, lastRetrieved, options) {
15879
17031
  var _this = this;
15880
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdServicesServiceIdPut(hospitalId, serviceId, updateHospitalServiceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
17032
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet(hospitalId, specialtyId, serviceId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
15881
17033
  };
15882
17034
  /**
15883
17035
  *
15884
- * @summary Get all HospitalSpecialties.
17036
+ * @summary Delete HospitalServiceMedia
15885
17037
  * @param {string} hospitalId
15886
- * @param {string} [hospitalName]
15887
- * @param {string} [hospitalSlug]
15888
- * @param {string} [specialtyId]
15889
- * @param {string} [specialtyName]
15890
- * @param {string} [specialtyTypeId]
15891
- * @param {MarketingType} [marketingType]
15892
- * @param {Date} [created]
15893
- * @param {number} [page]
15894
- * @param {number} [limit]
15895
- * @param {Date} [lastRetrieved]
17038
+ * @param {string} specialtyId
17039
+ * @param {string} serviceId
17040
+ * @param {string} mediaId
15896
17041
  * @param {*} [options] Override http request option.
15897
17042
  * @throws {RequiredError}
15898
17043
  * @memberof HospitalsApi
15899
17044
  */
15900
- HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesGet = function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
17045
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete = function (hospitalId, specialtyId, serviceId, mediaId, options) {
15901
17046
  var _this = this;
15902
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
17047
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete(hospitalId, specialtyId, serviceId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15903
17048
  };
15904
17049
  /**
15905
17050
  *
15906
- * @summary Create HospitalSpecialty.
17051
+ * @summary Get HospitalServiceMedia.
15907
17052
  * @param {string} hospitalId
15908
- * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
17053
+ * @param {string} specialtyId
17054
+ * @param {string} serviceId
17055
+ * @param {string} mediaId
15909
17056
  * @param {*} [options] Override http request option.
15910
17057
  * @throws {RequiredError}
15911
17058
  * @memberof HospitalsApi
15912
17059
  */
15913
- HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesPost = function (hospitalId, createHospitalSpecialtyCommand, options) {
17060
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet = function (hospitalId, specialtyId, serviceId, mediaId, options) {
15914
17061
  var _this = this;
15915
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
17062
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15916
17063
  };
15917
17064
  /**
15918
17065
  *
15919
- * @summary Delete HospitalSpecialty.
17066
+ * @summary Update HospitalServiceMedia.
15920
17067
  * @param {string} hospitalId
15921
17068
  * @param {string} specialtyId
17069
+ * @param {string} serviceId
17070
+ * @param {string} mediaId
17071
+ * @param {UpdateMediaCommand} [updateMediaCommand]
15922
17072
  * @param {*} [options] Override http request option.
15923
17073
  * @throws {RequiredError}
15924
17074
  * @memberof HospitalsApi
15925
17075
  */
15926
- HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete = function (hospitalId, specialtyId, options) {
17076
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut = function (hospitalId, specialtyId, serviceId, mediaId, updateMediaCommand, options) {
15927
17077
  var _this = this;
15928
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
17078
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut(hospitalId, specialtyId, serviceId, mediaId, updateMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15929
17079
  };
15930
17080
  /**
15931
17081
  *
15932
- * @summary Get HospitalSpecialty.
17082
+ * @summary Create HospitalServiceMedia.
15933
17083
  * @param {string} hospitalId
15934
17084
  * @param {string} specialtyId
17085
+ * @param {string} serviceId
17086
+ * @param {CreateMediaCommand} [createMediaCommand]
15935
17087
  * @param {*} [options] Override http request option.
15936
17088
  * @throws {RequiredError}
15937
17089
  * @memberof HospitalsApi
15938
17090
  */
15939
- HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet = function (hospitalId, specialtyId, options) {
17091
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost = function (hospitalId, specialtyId, serviceId, createMediaCommand, options) {
15940
17092
  var _this = this;
15941
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
17093
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost(hospitalId, specialtyId, serviceId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
17094
+ };
17095
+ /**
17096
+ *
17097
+ * @summary Update HospitalService.
17098
+ * @param {string} hospitalId
17099
+ * @param {string} specialtyId
17100
+ * @param {string} serviceId
17101
+ * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
17102
+ * @param {*} [options] Override http request option.
17103
+ * @throws {RequiredError}
17104
+ * @memberof HospitalsApi
17105
+ */
17106
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut = function (hospitalId, specialtyId, serviceId, updateHospitalServiceCommand, options) {
17107
+ var _this = this;
17108
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut(hospitalId, specialtyId, serviceId, updateHospitalServiceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15942
17109
  };
15943
17110
  /**
15944
17111
  *
@@ -15969,25 +17136,482 @@ var HospitalsApi = /** @class */ (function (_super) {
15969
17136
  }(base_1.BaseAPI));
15970
17137
  exports.HospitalsApi = HospitalsApi;
15971
17138
  /**
15972
- * ImagesApi - axios parameter creator
17139
+ * ImagesApi - axios parameter creator
17140
+ * @export
17141
+ */
17142
+ exports.ImagesApiAxiosParamCreator = function (configuration) {
17143
+ var _this = this;
17144
+ return {
17145
+ /**
17146
+ *
17147
+ * @param {*} [options] Override http request option.
17148
+ * @throws {RequiredError}
17149
+ */
17150
+ apiV1ImagesPost: function (options) {
17151
+ if (options === void 0) { options = {}; }
17152
+ return __awaiter(_this, void 0, void 0, function () {
17153
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
17154
+ return __generator(this, function (_a) {
17155
+ switch (_a.label) {
17156
+ case 0:
17157
+ localVarPath = "/api/v1/images";
17158
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17159
+ if (configuration) {
17160
+ baseOptions = configuration.baseOptions;
17161
+ }
17162
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
17163
+ localVarHeaderParameter = {};
17164
+ localVarQueryParameter = {};
17165
+ // authentication oauth2 required
17166
+ // oauth required
17167
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
17168
+ case 1:
17169
+ // authentication oauth2 required
17170
+ // oauth required
17171
+ _a.sent();
17172
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
17173
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17174
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17175
+ return [2 /*return*/, {
17176
+ url: common_1.toPathString(localVarUrlObj),
17177
+ options: localVarRequestOptions,
17178
+ }];
17179
+ }
17180
+ });
17181
+ });
17182
+ },
17183
+ };
17184
+ };
17185
+ /**
17186
+ * ImagesApi - functional programming interface
17187
+ * @export
17188
+ */
17189
+ exports.ImagesApiFp = function (configuration) {
17190
+ var localVarAxiosParamCreator = exports.ImagesApiAxiosParamCreator(configuration);
17191
+ return {
17192
+ /**
17193
+ *
17194
+ * @param {*} [options] Override http request option.
17195
+ * @throws {RequiredError}
17196
+ */
17197
+ apiV1ImagesPost: function (options) {
17198
+ return __awaiter(this, void 0, void 0, function () {
17199
+ var localVarAxiosArgs;
17200
+ return __generator(this, function (_a) {
17201
+ switch (_a.label) {
17202
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ImagesPost(options)];
17203
+ case 1:
17204
+ localVarAxiosArgs = _a.sent();
17205
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
17206
+ }
17207
+ });
17208
+ });
17209
+ },
17210
+ };
17211
+ };
17212
+ /**
17213
+ * ImagesApi - factory interface
17214
+ * @export
17215
+ */
17216
+ exports.ImagesApiFactory = function (configuration, basePath, axios) {
17217
+ var localVarFp = exports.ImagesApiFp(configuration);
17218
+ return {
17219
+ /**
17220
+ *
17221
+ * @param {*} [options] Override http request option.
17222
+ * @throws {RequiredError}
17223
+ */
17224
+ apiV1ImagesPost: function (options) {
17225
+ return localVarFp.apiV1ImagesPost(options).then(function (request) { return request(axios, basePath); });
17226
+ },
17227
+ };
17228
+ };
17229
+ /**
17230
+ * ImagesApi - object-oriented interface
17231
+ * @export
17232
+ * @class ImagesApi
17233
+ * @extends {BaseAPI}
17234
+ */
17235
+ var ImagesApi = /** @class */ (function (_super) {
17236
+ __extends(ImagesApi, _super);
17237
+ function ImagesApi() {
17238
+ return _super !== null && _super.apply(this, arguments) || this;
17239
+ }
17240
+ /**
17241
+ *
17242
+ * @param {*} [options] Override http request option.
17243
+ * @throws {RequiredError}
17244
+ * @memberof ImagesApi
17245
+ */
17246
+ ImagesApi.prototype.apiV1ImagesPost = function (options) {
17247
+ var _this = this;
17248
+ return exports.ImagesApiFp(this.configuration).apiV1ImagesPost(options).then(function (request) { return request(_this.axios, _this.basePath); });
17249
+ };
17250
+ return ImagesApi;
17251
+ }(base_1.BaseAPI));
17252
+ exports.ImagesApi = ImagesApi;
17253
+ /**
17254
+ * LanguagesApi - axios parameter creator
17255
+ * @export
17256
+ */
17257
+ exports.LanguagesApiAxiosParamCreator = function (configuration) {
17258
+ var _this = this;
17259
+ return {
17260
+ /**
17261
+ *
17262
+ * @summary Get Language by code.
17263
+ * @param {string} code
17264
+ * @param {*} [options] Override http request option.
17265
+ * @throws {RequiredError}
17266
+ */
17267
+ apiV1LanguagesCodeGet: function (code, options) {
17268
+ if (options === void 0) { options = {}; }
17269
+ return __awaiter(_this, void 0, void 0, function () {
17270
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
17271
+ return __generator(this, function (_a) {
17272
+ switch (_a.label) {
17273
+ case 0:
17274
+ // verify required parameter 'code' is not null or undefined
17275
+ common_1.assertParamExists('apiV1LanguagesCodeGet', 'code', code);
17276
+ localVarPath = "/api/v1/languages/{code}"
17277
+ .replace("{" + "code" + "}", encodeURIComponent(String(code)));
17278
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17279
+ if (configuration) {
17280
+ baseOptions = configuration.baseOptions;
17281
+ }
17282
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
17283
+ localVarHeaderParameter = {};
17284
+ localVarQueryParameter = {};
17285
+ // authentication oauth2 required
17286
+ // oauth required
17287
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
17288
+ case 1:
17289
+ // authentication oauth2 required
17290
+ // oauth required
17291
+ _a.sent();
17292
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
17293
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17294
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17295
+ return [2 /*return*/, {
17296
+ url: common_1.toPathString(localVarUrlObj),
17297
+ options: localVarRequestOptions,
17298
+ }];
17299
+ }
17300
+ });
17301
+ });
17302
+ },
17303
+ /**
17304
+ *
17305
+ * @summary Get all Languages.
17306
+ * @param {string} [id]
17307
+ * @param {string} [name]
17308
+ * @param {string} [code]
17309
+ * @param {string} [description]
17310
+ * @param {number} [page]
17311
+ * @param {number} [limit]
17312
+ * @param {Date} [lastRetrieved]
17313
+ * @param {*} [options] Override http request option.
17314
+ * @throws {RequiredError}
17315
+ */
17316
+ apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
17317
+ if (options === void 0) { options = {}; }
17318
+ return __awaiter(_this, void 0, void 0, function () {
17319
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
17320
+ return __generator(this, function (_a) {
17321
+ switch (_a.label) {
17322
+ case 0:
17323
+ localVarPath = "/api/v1/languages";
17324
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17325
+ if (configuration) {
17326
+ baseOptions = configuration.baseOptions;
17327
+ }
17328
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
17329
+ localVarHeaderParameter = {};
17330
+ localVarQueryParameter = {};
17331
+ // authentication oauth2 required
17332
+ // oauth required
17333
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
17334
+ case 1:
17335
+ // authentication oauth2 required
17336
+ // oauth required
17337
+ _a.sent();
17338
+ if (id !== undefined) {
17339
+ localVarQueryParameter['Id'] = id;
17340
+ }
17341
+ if (name !== undefined) {
17342
+ localVarQueryParameter['Name'] = name;
17343
+ }
17344
+ if (code !== undefined) {
17345
+ localVarQueryParameter['Code'] = code;
17346
+ }
17347
+ if (description !== undefined) {
17348
+ localVarQueryParameter['Description'] = description;
17349
+ }
17350
+ if (page !== undefined) {
17351
+ localVarQueryParameter['page'] = page;
17352
+ }
17353
+ if (limit !== undefined) {
17354
+ localVarQueryParameter['limit'] = limit;
17355
+ }
17356
+ if (lastRetrieved !== undefined) {
17357
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
17358
+ lastRetrieved.toISOString() :
17359
+ lastRetrieved;
17360
+ }
17361
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
17362
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17363
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17364
+ return [2 /*return*/, {
17365
+ url: common_1.toPathString(localVarUrlObj),
17366
+ options: localVarRequestOptions,
17367
+ }];
17368
+ }
17369
+ });
17370
+ });
17371
+ },
17372
+ /**
17373
+ *
17374
+ * @summary Get Language.
17375
+ * @param {string} id
17376
+ * @param {*} [options] Override http request option.
17377
+ * @throws {RequiredError}
17378
+ */
17379
+ apiV1LanguagesIdGet: function (id, options) {
17380
+ if (options === void 0) { options = {}; }
17381
+ return __awaiter(_this, void 0, void 0, function () {
17382
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
17383
+ return __generator(this, function (_a) {
17384
+ switch (_a.label) {
17385
+ case 0:
17386
+ // verify required parameter 'id' is not null or undefined
17387
+ common_1.assertParamExists('apiV1LanguagesIdGet', 'id', id);
17388
+ localVarPath = "/api/v1/languages/{id}"
17389
+ .replace("{" + "id" + "}", encodeURIComponent(String(id)));
17390
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17391
+ if (configuration) {
17392
+ baseOptions = configuration.baseOptions;
17393
+ }
17394
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
17395
+ localVarHeaderParameter = {};
17396
+ localVarQueryParameter = {};
17397
+ // authentication oauth2 required
17398
+ // oauth required
17399
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
17400
+ case 1:
17401
+ // authentication oauth2 required
17402
+ // oauth required
17403
+ _a.sent();
17404
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
17405
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17406
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17407
+ return [2 /*return*/, {
17408
+ url: common_1.toPathString(localVarUrlObj),
17409
+ options: localVarRequestOptions,
17410
+ }];
17411
+ }
17412
+ });
17413
+ });
17414
+ },
17415
+ };
17416
+ };
17417
+ /**
17418
+ * LanguagesApi - functional programming interface
17419
+ * @export
17420
+ */
17421
+ exports.LanguagesApiFp = function (configuration) {
17422
+ var localVarAxiosParamCreator = exports.LanguagesApiAxiosParamCreator(configuration);
17423
+ return {
17424
+ /**
17425
+ *
17426
+ * @summary Get Language by code.
17427
+ * @param {string} code
17428
+ * @param {*} [options] Override http request option.
17429
+ * @throws {RequiredError}
17430
+ */
17431
+ apiV1LanguagesCodeGet: function (code, options) {
17432
+ return __awaiter(this, void 0, void 0, function () {
17433
+ var localVarAxiosArgs;
17434
+ return __generator(this, function (_a) {
17435
+ switch (_a.label) {
17436
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesCodeGet(code, options)];
17437
+ case 1:
17438
+ localVarAxiosArgs = _a.sent();
17439
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
17440
+ }
17441
+ });
17442
+ });
17443
+ },
17444
+ /**
17445
+ *
17446
+ * @summary Get all Languages.
17447
+ * @param {string} [id]
17448
+ * @param {string} [name]
17449
+ * @param {string} [code]
17450
+ * @param {string} [description]
17451
+ * @param {number} [page]
17452
+ * @param {number} [limit]
17453
+ * @param {Date} [lastRetrieved]
17454
+ * @param {*} [options] Override http request option.
17455
+ * @throws {RequiredError}
17456
+ */
17457
+ apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
17458
+ return __awaiter(this, void 0, void 0, function () {
17459
+ var localVarAxiosArgs;
17460
+ return __generator(this, function (_a) {
17461
+ switch (_a.label) {
17462
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options)];
17463
+ case 1:
17464
+ localVarAxiosArgs = _a.sent();
17465
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
17466
+ }
17467
+ });
17468
+ });
17469
+ },
17470
+ /**
17471
+ *
17472
+ * @summary Get Language.
17473
+ * @param {string} id
17474
+ * @param {*} [options] Override http request option.
17475
+ * @throws {RequiredError}
17476
+ */
17477
+ apiV1LanguagesIdGet: function (id, options) {
17478
+ return __awaiter(this, void 0, void 0, function () {
17479
+ var localVarAxiosArgs;
17480
+ return __generator(this, function (_a) {
17481
+ switch (_a.label) {
17482
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesIdGet(id, options)];
17483
+ case 1:
17484
+ localVarAxiosArgs = _a.sent();
17485
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
17486
+ }
17487
+ });
17488
+ });
17489
+ },
17490
+ };
17491
+ };
17492
+ /**
17493
+ * LanguagesApi - factory interface
17494
+ * @export
17495
+ */
17496
+ exports.LanguagesApiFactory = function (configuration, basePath, axios) {
17497
+ var localVarFp = exports.LanguagesApiFp(configuration);
17498
+ return {
17499
+ /**
17500
+ *
17501
+ * @summary Get Language by code.
17502
+ * @param {string} code
17503
+ * @param {*} [options] Override http request option.
17504
+ * @throws {RequiredError}
17505
+ */
17506
+ apiV1LanguagesCodeGet: function (code, options) {
17507
+ return localVarFp.apiV1LanguagesCodeGet(code, options).then(function (request) { return request(axios, basePath); });
17508
+ },
17509
+ /**
17510
+ *
17511
+ * @summary Get all Languages.
17512
+ * @param {string} [id]
17513
+ * @param {string} [name]
17514
+ * @param {string} [code]
17515
+ * @param {string} [description]
17516
+ * @param {number} [page]
17517
+ * @param {number} [limit]
17518
+ * @param {Date} [lastRetrieved]
17519
+ * @param {*} [options] Override http request option.
17520
+ * @throws {RequiredError}
17521
+ */
17522
+ apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
17523
+ return localVarFp.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
17524
+ },
17525
+ /**
17526
+ *
17527
+ * @summary Get Language.
17528
+ * @param {string} id
17529
+ * @param {*} [options] Override http request option.
17530
+ * @throws {RequiredError}
17531
+ */
17532
+ apiV1LanguagesIdGet: function (id, options) {
17533
+ return localVarFp.apiV1LanguagesIdGet(id, options).then(function (request) { return request(axios, basePath); });
17534
+ },
17535
+ };
17536
+ };
17537
+ /**
17538
+ * LanguagesApi - object-oriented interface
17539
+ * @export
17540
+ * @class LanguagesApi
17541
+ * @extends {BaseAPI}
17542
+ */
17543
+ var LanguagesApi = /** @class */ (function (_super) {
17544
+ __extends(LanguagesApi, _super);
17545
+ function LanguagesApi() {
17546
+ return _super !== null && _super.apply(this, arguments) || this;
17547
+ }
17548
+ /**
17549
+ *
17550
+ * @summary Get Language by code.
17551
+ * @param {string} code
17552
+ * @param {*} [options] Override http request option.
17553
+ * @throws {RequiredError}
17554
+ * @memberof LanguagesApi
17555
+ */
17556
+ LanguagesApi.prototype.apiV1LanguagesCodeGet = function (code, options) {
17557
+ var _this = this;
17558
+ return exports.LanguagesApiFp(this.configuration).apiV1LanguagesCodeGet(code, options).then(function (request) { return request(_this.axios, _this.basePath); });
17559
+ };
17560
+ /**
17561
+ *
17562
+ * @summary Get all Languages.
17563
+ * @param {string} [id]
17564
+ * @param {string} [name]
17565
+ * @param {string} [code]
17566
+ * @param {string} [description]
17567
+ * @param {number} [page]
17568
+ * @param {number} [limit]
17569
+ * @param {Date} [lastRetrieved]
17570
+ * @param {*} [options] Override http request option.
17571
+ * @throws {RequiredError}
17572
+ * @memberof LanguagesApi
17573
+ */
17574
+ LanguagesApi.prototype.apiV1LanguagesGet = function (id, name, code, description, page, limit, lastRetrieved, options) {
17575
+ var _this = this;
17576
+ return exports.LanguagesApiFp(this.configuration).apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
17577
+ };
17578
+ /**
17579
+ *
17580
+ * @summary Get Language.
17581
+ * @param {string} id
17582
+ * @param {*} [options] Override http request option.
17583
+ * @throws {RequiredError}
17584
+ * @memberof LanguagesApi
17585
+ */
17586
+ LanguagesApi.prototype.apiV1LanguagesIdGet = function (id, options) {
17587
+ var _this = this;
17588
+ return exports.LanguagesApiFp(this.configuration).apiV1LanguagesIdGet(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
17589
+ };
17590
+ return LanguagesApi;
17591
+ }(base_1.BaseAPI));
17592
+ exports.LanguagesApi = LanguagesApi;
17593
+ /**
17594
+ * NotificationsApi - axios parameter creator
15973
17595
  * @export
15974
17596
  */
15975
- exports.ImagesApiAxiosParamCreator = function (configuration) {
17597
+ exports.NotificationsApiAxiosParamCreator = function (configuration) {
15976
17598
  var _this = this;
15977
17599
  return {
15978
17600
  /**
15979
17601
  *
17602
+ * @summary Check notification.
17603
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
15980
17604
  * @param {*} [options] Override http request option.
15981
17605
  * @throws {RequiredError}
15982
17606
  */
15983
- apiV1ImagesPost: function (options) {
17607
+ apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
15984
17608
  if (options === void 0) { options = {}; }
15985
17609
  return __awaiter(_this, void 0, void 0, function () {
15986
17610
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15987
17611
  return __generator(this, function (_a) {
15988
17612
  switch (_a.label) {
15989
17613
  case 0:
15990
- localVarPath = "/api/v1/images";
17614
+ localVarPath = "/api/v1/notifications/check";
15991
17615
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15992
17616
  if (configuration) {
15993
17617
  baseOptions = configuration.baseOptions;
@@ -16002,6 +17626,69 @@ exports.ImagesApiAxiosParamCreator = function (configuration) {
16002
17626
  // authentication oauth2 required
16003
17627
  // oauth required
16004
17628
  _a.sent();
17629
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17630
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
17631
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17632
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17633
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration);
17634
+ return [2 /*return*/, {
17635
+ url: common_1.toPathString(localVarUrlObj),
17636
+ options: localVarRequestOptions,
17637
+ }];
17638
+ }
17639
+ });
17640
+ });
17641
+ },
17642
+ /**
17643
+ *
17644
+ * @summary Get all notifications.
17645
+ * @param {NotificationCode} [notificationCode]
17646
+ * @param {boolean} [unreadCountOnly]
17647
+ * @param {number} [page]
17648
+ * @param {number} [limit]
17649
+ * @param {Date} [lastRetrieved]
17650
+ * @param {*} [options] Override http request option.
17651
+ * @throws {RequiredError}
17652
+ */
17653
+ apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
17654
+ if (options === void 0) { options = {}; }
17655
+ return __awaiter(_this, void 0, void 0, function () {
17656
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
17657
+ return __generator(this, function (_a) {
17658
+ switch (_a.label) {
17659
+ case 0:
17660
+ localVarPath = "/api/v1/notifications";
17661
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17662
+ if (configuration) {
17663
+ baseOptions = configuration.baseOptions;
17664
+ }
17665
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
17666
+ localVarHeaderParameter = {};
17667
+ localVarQueryParameter = {};
17668
+ // authentication oauth2 required
17669
+ // oauth required
17670
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
17671
+ case 1:
17672
+ // authentication oauth2 required
17673
+ // oauth required
17674
+ _a.sent();
17675
+ if (notificationCode !== undefined) {
17676
+ localVarQueryParameter['NotificationCode'] = notificationCode;
17677
+ }
17678
+ if (unreadCountOnly !== undefined) {
17679
+ localVarQueryParameter['UnreadCountOnly'] = unreadCountOnly;
17680
+ }
17681
+ if (page !== undefined) {
17682
+ localVarQueryParameter['page'] = page;
17683
+ }
17684
+ if (limit !== undefined) {
17685
+ localVarQueryParameter['limit'] = limit;
17686
+ }
17687
+ if (lastRetrieved !== undefined) {
17688
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
17689
+ lastRetrieved.toISOString() :
17690
+ lastRetrieved;
17691
+ }
16005
17692
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
16006
17693
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16007
17694
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -16016,23 +17703,49 @@ exports.ImagesApiAxiosParamCreator = function (configuration) {
16016
17703
  };
16017
17704
  };
16018
17705
  /**
16019
- * ImagesApi - functional programming interface
17706
+ * NotificationsApi - functional programming interface
16020
17707
  * @export
16021
17708
  */
16022
- exports.ImagesApiFp = function (configuration) {
16023
- var localVarAxiosParamCreator = exports.ImagesApiAxiosParamCreator(configuration);
17709
+ exports.NotificationsApiFp = function (configuration) {
17710
+ var localVarAxiosParamCreator = exports.NotificationsApiAxiosParamCreator(configuration);
16024
17711
  return {
16025
17712
  /**
16026
17713
  *
17714
+ * @summary Check notification.
17715
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
16027
17716
  * @param {*} [options] Override http request option.
16028
17717
  * @throws {RequiredError}
16029
17718
  */
16030
- apiV1ImagesPost: function (options) {
17719
+ apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
16031
17720
  return __awaiter(this, void 0, void 0, function () {
16032
17721
  var localVarAxiosArgs;
16033
17722
  return __generator(this, function (_a) {
16034
17723
  switch (_a.label) {
16035
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ImagesPost(options)];
17724
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options)];
17725
+ case 1:
17726
+ localVarAxiosArgs = _a.sent();
17727
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
17728
+ }
17729
+ });
17730
+ });
17731
+ },
17732
+ /**
17733
+ *
17734
+ * @summary Get all notifications.
17735
+ * @param {NotificationCode} [notificationCode]
17736
+ * @param {boolean} [unreadCountOnly]
17737
+ * @param {number} [page]
17738
+ * @param {number} [limit]
17739
+ * @param {Date} [lastRetrieved]
17740
+ * @param {*} [options] Override http request option.
17741
+ * @throws {RequiredError}
17742
+ */
17743
+ apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
17744
+ return __awaiter(this, void 0, void 0, function () {
17745
+ var localVarAxiosArgs;
17746
+ return __generator(this, function (_a) {
17747
+ switch (_a.label) {
17748
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options)];
16036
17749
  case 1:
16037
17750
  localVarAxiosArgs = _a.sent();
16038
17751
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -16043,46 +17756,80 @@ exports.ImagesApiFp = function (configuration) {
16043
17756
  };
16044
17757
  };
16045
17758
  /**
16046
- * ImagesApi - factory interface
17759
+ * NotificationsApi - factory interface
16047
17760
  * @export
16048
17761
  */
16049
- exports.ImagesApiFactory = function (configuration, basePath, axios) {
16050
- var localVarFp = exports.ImagesApiFp(configuration);
17762
+ exports.NotificationsApiFactory = function (configuration, basePath, axios) {
17763
+ var localVarFp = exports.NotificationsApiFp(configuration);
16051
17764
  return {
16052
17765
  /**
16053
17766
  *
17767
+ * @summary Check notification.
17768
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
16054
17769
  * @param {*} [options] Override http request option.
16055
17770
  * @throws {RequiredError}
16056
17771
  */
16057
- apiV1ImagesPost: function (options) {
16058
- return localVarFp.apiV1ImagesPost(options).then(function (request) { return request(axios, basePath); });
17772
+ apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
17773
+ return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(axios, basePath); });
17774
+ },
17775
+ /**
17776
+ *
17777
+ * @summary Get all notifications.
17778
+ * @param {NotificationCode} [notificationCode]
17779
+ * @param {boolean} [unreadCountOnly]
17780
+ * @param {number} [page]
17781
+ * @param {number} [limit]
17782
+ * @param {Date} [lastRetrieved]
17783
+ * @param {*} [options] Override http request option.
17784
+ * @throws {RequiredError}
17785
+ */
17786
+ apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
17787
+ return localVarFp.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
16059
17788
  },
16060
17789
  };
16061
17790
  };
16062
17791
  /**
16063
- * ImagesApi - object-oriented interface
17792
+ * NotificationsApi - object-oriented interface
16064
17793
  * @export
16065
- * @class ImagesApi
17794
+ * @class NotificationsApi
16066
17795
  * @extends {BaseAPI}
16067
17796
  */
16068
- var ImagesApi = /** @class */ (function (_super) {
16069
- __extends(ImagesApi, _super);
16070
- function ImagesApi() {
17797
+ var NotificationsApi = /** @class */ (function (_super) {
17798
+ __extends(NotificationsApi, _super);
17799
+ function NotificationsApi() {
16071
17800
  return _super !== null && _super.apply(this, arguments) || this;
16072
17801
  }
16073
17802
  /**
16074
17803
  *
17804
+ * @summary Check notification.
17805
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
16075
17806
  * @param {*} [options] Override http request option.
16076
17807
  * @throws {RequiredError}
16077
- * @memberof ImagesApi
17808
+ * @memberof NotificationsApi
16078
17809
  */
16079
- ImagesApi.prototype.apiV1ImagesPost = function (options) {
17810
+ NotificationsApi.prototype.apiV1NotificationsCheckPost = function (checkNotificationsCommand, options) {
16080
17811
  var _this = this;
16081
- return exports.ImagesApiFp(this.configuration).apiV1ImagesPost(options).then(function (request) { return request(_this.axios, _this.basePath); });
17812
+ return exports.NotificationsApiFp(this.configuration).apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16082
17813
  };
16083
- return ImagesApi;
17814
+ /**
17815
+ *
17816
+ * @summary Get all notifications.
17817
+ * @param {NotificationCode} [notificationCode]
17818
+ * @param {boolean} [unreadCountOnly]
17819
+ * @param {number} [page]
17820
+ * @param {number} [limit]
17821
+ * @param {Date} [lastRetrieved]
17822
+ * @param {*} [options] Override http request option.
17823
+ * @throws {RequiredError}
17824
+ * @memberof NotificationsApi
17825
+ */
17826
+ NotificationsApi.prototype.apiV1NotificationsGet = function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
17827
+ var _this = this;
17828
+ return exports.NotificationsApiFp(this.configuration).apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
17829
+ };
17830
+ return NotificationsApi;
16084
17831
  }(base_1.BaseAPI));
16085
- exports.ImagesApi = ImagesApi;
17832
+ exports.NotificationsApi = NotificationsApi;
16086
17833
  /**
16087
17834
  * ServicesApi - axios parameter creator
16088
17835
  * @export
@@ -16091,17 +17838,19 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
16091
17838
  var _this = this;
16092
17839
  return {
16093
17840
  /**
16094
- * Sample request: GET /api/v1/hospitals/services
16095
- * @summary Get all services.
16096
- * @param {string} [id]
16097
- * @param {string} [name]
16098
- * @param {string} [description]
17841
+ *
17842
+ * @summary Get all HospitalServices.
16099
17843
  * @param {string} [hospitalId]
16100
17844
  * @param {string} [hospitalName]
16101
17845
  * @param {string} [hospitalSlug]
17846
+ * @param {string} [id]
17847
+ * @param {string} [name]
17848
+ * @param {string} [description]
16102
17849
  * @param {string} [specialtyId]
17850
+ * @param {string} [specialtyName]
16103
17851
  * @param {string} [specialtyTypeId]
16104
17852
  * @param {string} [specialtyTypeName]
17853
+ * @param {string} [serviceCategoryId]
16105
17854
  * @param {MarketingType} [marketingType]
16106
17855
  * @param {Procedure} [procedure]
16107
17856
  * @param {Date} [created]
@@ -16112,7 +17861,7 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
16112
17861
  * @param {*} [options] Override http request option.
16113
17862
  * @throws {RequiredError}
16114
17863
  */
16115
- apiV1ServicesGet: function (id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
17864
+ apiV1ServicesGet: function (hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
16116
17865
  if (options === void 0) { options = {}; }
16117
17866
  return __awaiter(_this, void 0, void 0, function () {
16118
17867
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -16134,15 +17883,6 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
16134
17883
  // authentication oauth2 required
16135
17884
  // oauth required
16136
17885
  _a.sent();
16137
- if (id !== undefined) {
16138
- localVarQueryParameter['Id'] = id;
16139
- }
16140
- if (name !== undefined) {
16141
- localVarQueryParameter['Name'] = name;
16142
- }
16143
- if (description !== undefined) {
16144
- localVarQueryParameter['Description'] = description;
16145
- }
16146
17886
  if (hospitalId !== undefined) {
16147
17887
  localVarQueryParameter['HospitalId'] = hospitalId;
16148
17888
  }
@@ -16152,15 +17892,30 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
16152
17892
  if (hospitalSlug !== undefined) {
16153
17893
  localVarQueryParameter['HospitalSlug'] = hospitalSlug;
16154
17894
  }
17895
+ if (id !== undefined) {
17896
+ localVarQueryParameter['Id'] = id;
17897
+ }
17898
+ if (name !== undefined) {
17899
+ localVarQueryParameter['Name'] = name;
17900
+ }
17901
+ if (description !== undefined) {
17902
+ localVarQueryParameter['Description'] = description;
17903
+ }
16155
17904
  if (specialtyId !== undefined) {
16156
17905
  localVarQueryParameter['SpecialtyId'] = specialtyId;
16157
17906
  }
17907
+ if (specialtyName !== undefined) {
17908
+ localVarQueryParameter['SpecialtyName'] = specialtyName;
17909
+ }
16158
17910
  if (specialtyTypeId !== undefined) {
16159
17911
  localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
16160
17912
  }
16161
17913
  if (specialtyTypeName !== undefined) {
16162
17914
  localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
16163
17915
  }
17916
+ if (serviceCategoryId !== undefined) {
17917
+ localVarQueryParameter['ServiceCategoryId'] = serviceCategoryId;
17918
+ }
16164
17919
  if (marketingType !== undefined) {
16165
17920
  localVarQueryParameter['MarketingType'] = marketingType;
16166
17921
  }
@@ -16199,7 +17954,54 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
16199
17954
  },
16200
17955
  /**
16201
17956
  *
16202
- * @summary Get service by slug.
17957
+ * @summary Get HospitalService.
17958
+ * @param {string} serviceId
17959
+ * @param {string} [languageCode]
17960
+ * @param {*} [options] Override http request option.
17961
+ * @throws {RequiredError}
17962
+ */
17963
+ apiV1ServicesServiceIdGet: function (serviceId, languageCode, options) {
17964
+ if (options === void 0) { options = {}; }
17965
+ return __awaiter(_this, void 0, void 0, function () {
17966
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
17967
+ return __generator(this, function (_a) {
17968
+ switch (_a.label) {
17969
+ case 0:
17970
+ // verify required parameter 'serviceId' is not null or undefined
17971
+ common_1.assertParamExists('apiV1ServicesServiceIdGet', 'serviceId', serviceId);
17972
+ localVarPath = "/api/v1/services/{serviceId}"
17973
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
17974
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17975
+ if (configuration) {
17976
+ baseOptions = configuration.baseOptions;
17977
+ }
17978
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
17979
+ localVarHeaderParameter = {};
17980
+ localVarQueryParameter = {};
17981
+ // authentication oauth2 required
17982
+ // oauth required
17983
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
17984
+ case 1:
17985
+ // authentication oauth2 required
17986
+ // oauth required
17987
+ _a.sent();
17988
+ if (languageCode !== undefined) {
17989
+ localVarQueryParameter['languageCode'] = languageCode;
17990
+ }
17991
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
17992
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17993
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17994
+ return [2 /*return*/, {
17995
+ url: common_1.toPathString(localVarUrlObj),
17996
+ options: localVarRequestOptions,
17997
+ }];
17998
+ }
17999
+ });
18000
+ });
18001
+ },
18002
+ /**
18003
+ *
18004
+ * @summary Get HospitalService by slug.
16203
18005
  * @param {string} slug
16204
18006
  * @param {string} [languageCode]
16205
18007
  * @param {*} [options] Override http request option.
@@ -16254,17 +18056,19 @@ exports.ServicesApiFp = function (configuration) {
16254
18056
  var localVarAxiosParamCreator = exports.ServicesApiAxiosParamCreator(configuration);
16255
18057
  return {
16256
18058
  /**
16257
- * Sample request: GET /api/v1/hospitals/services
16258
- * @summary Get all services.
16259
- * @param {string} [id]
16260
- * @param {string} [name]
16261
- * @param {string} [description]
18059
+ *
18060
+ * @summary Get all HospitalServices.
16262
18061
  * @param {string} [hospitalId]
16263
18062
  * @param {string} [hospitalName]
16264
18063
  * @param {string} [hospitalSlug]
18064
+ * @param {string} [id]
18065
+ * @param {string} [name]
18066
+ * @param {string} [description]
16265
18067
  * @param {string} [specialtyId]
18068
+ * @param {string} [specialtyName]
16266
18069
  * @param {string} [specialtyTypeId]
16267
18070
  * @param {string} [specialtyTypeName]
18071
+ * @param {string} [serviceCategoryId]
16268
18072
  * @param {MarketingType} [marketingType]
16269
18073
  * @param {Procedure} [procedure]
16270
18074
  * @param {Date} [created]
@@ -16275,12 +18079,33 @@ exports.ServicesApiFp = function (configuration) {
16275
18079
  * @param {*} [options] Override http request option.
16276
18080
  * @throws {RequiredError}
16277
18081
  */
16278
- apiV1ServicesGet: function (id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
18082
+ apiV1ServicesGet: function (hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
18083
+ return __awaiter(this, void 0, void 0, function () {
18084
+ var localVarAxiosArgs;
18085
+ return __generator(this, function (_a) {
18086
+ switch (_a.label) {
18087
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicesGet(hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options)];
18088
+ case 1:
18089
+ localVarAxiosArgs = _a.sent();
18090
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18091
+ }
18092
+ });
18093
+ });
18094
+ },
18095
+ /**
18096
+ *
18097
+ * @summary Get HospitalService.
18098
+ * @param {string} serviceId
18099
+ * @param {string} [languageCode]
18100
+ * @param {*} [options] Override http request option.
18101
+ * @throws {RequiredError}
18102
+ */
18103
+ apiV1ServicesServiceIdGet: function (serviceId, languageCode, options) {
16279
18104
  return __awaiter(this, void 0, void 0, function () {
16280
18105
  var localVarAxiosArgs;
16281
18106
  return __generator(this, function (_a) {
16282
18107
  switch (_a.label) {
16283
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicesGet(id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options)];
18108
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicesServiceIdGet(serviceId, languageCode, options)];
16284
18109
  case 1:
16285
18110
  localVarAxiosArgs = _a.sent();
16286
18111
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -16290,7 +18115,7 @@ exports.ServicesApiFp = function (configuration) {
16290
18115
  },
16291
18116
  /**
16292
18117
  *
16293
- * @summary Get service by slug.
18118
+ * @summary Get HospitalService by slug.
16294
18119
  * @param {string} slug
16295
18120
  * @param {string} [languageCode]
16296
18121
  * @param {*} [options] Override http request option.
@@ -16319,17 +18144,19 @@ exports.ServicesApiFactory = function (configuration, basePath, axios) {
16319
18144
  var localVarFp = exports.ServicesApiFp(configuration);
16320
18145
  return {
16321
18146
  /**
16322
- * Sample request: GET /api/v1/hospitals/services
16323
- * @summary Get all services.
16324
- * @param {string} [id]
16325
- * @param {string} [name]
16326
- * @param {string} [description]
18147
+ *
18148
+ * @summary Get all HospitalServices.
16327
18149
  * @param {string} [hospitalId]
16328
18150
  * @param {string} [hospitalName]
16329
18151
  * @param {string} [hospitalSlug]
18152
+ * @param {string} [id]
18153
+ * @param {string} [name]
18154
+ * @param {string} [description]
16330
18155
  * @param {string} [specialtyId]
18156
+ * @param {string} [specialtyName]
16331
18157
  * @param {string} [specialtyTypeId]
16332
18158
  * @param {string} [specialtyTypeName]
18159
+ * @param {string} [serviceCategoryId]
16333
18160
  * @param {MarketingType} [marketingType]
16334
18161
  * @param {Procedure} [procedure]
16335
18162
  * @param {Date} [created]
@@ -16340,12 +18167,23 @@ exports.ServicesApiFactory = function (configuration, basePath, axios) {
16340
18167
  * @param {*} [options] Override http request option.
16341
18168
  * @throws {RequiredError}
16342
18169
  */
16343
- apiV1ServicesGet: function (id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
16344
- return localVarFp.apiV1ServicesGet(id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
18170
+ apiV1ServicesGet: function (hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
18171
+ return localVarFp.apiV1ServicesGet(hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
18172
+ },
18173
+ /**
18174
+ *
18175
+ * @summary Get HospitalService.
18176
+ * @param {string} serviceId
18177
+ * @param {string} [languageCode]
18178
+ * @param {*} [options] Override http request option.
18179
+ * @throws {RequiredError}
18180
+ */
18181
+ apiV1ServicesServiceIdGet: function (serviceId, languageCode, options) {
18182
+ return localVarFp.apiV1ServicesServiceIdGet(serviceId, languageCode, options).then(function (request) { return request(axios, basePath); });
16345
18183
  },
16346
18184
  /**
16347
18185
  *
16348
- * @summary Get service by slug.
18186
+ * @summary Get HospitalService by slug.
16349
18187
  * @param {string} slug
16350
18188
  * @param {string} [languageCode]
16351
18189
  * @param {*} [options] Override http request option.
@@ -16368,17 +18206,19 @@ var ServicesApi = /** @class */ (function (_super) {
16368
18206
  return _super !== null && _super.apply(this, arguments) || this;
16369
18207
  }
16370
18208
  /**
16371
- * Sample request: GET /api/v1/hospitals/services
16372
- * @summary Get all services.
16373
- * @param {string} [id]
16374
- * @param {string} [name]
16375
- * @param {string} [description]
18209
+ *
18210
+ * @summary Get all HospitalServices.
16376
18211
  * @param {string} [hospitalId]
16377
18212
  * @param {string} [hospitalName]
16378
18213
  * @param {string} [hospitalSlug]
18214
+ * @param {string} [id]
18215
+ * @param {string} [name]
18216
+ * @param {string} [description]
16379
18217
  * @param {string} [specialtyId]
18218
+ * @param {string} [specialtyName]
16380
18219
  * @param {string} [specialtyTypeId]
16381
18220
  * @param {string} [specialtyTypeName]
18221
+ * @param {string} [serviceCategoryId]
16382
18222
  * @param {MarketingType} [marketingType]
16383
18223
  * @param {Procedure} [procedure]
16384
18224
  * @param {Date} [created]
@@ -16390,13 +18230,26 @@ var ServicesApi = /** @class */ (function (_super) {
16390
18230
  * @throws {RequiredError}
16391
18231
  * @memberof ServicesApi
16392
18232
  */
16393
- ServicesApi.prototype.apiV1ServicesGet = function (id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
18233
+ ServicesApi.prototype.apiV1ServicesGet = function (hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
18234
+ var _this = this;
18235
+ return exports.ServicesApiFp(this.configuration).apiV1ServicesGet(hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
18236
+ };
18237
+ /**
18238
+ *
18239
+ * @summary Get HospitalService.
18240
+ * @param {string} serviceId
18241
+ * @param {string} [languageCode]
18242
+ * @param {*} [options] Override http request option.
18243
+ * @throws {RequiredError}
18244
+ * @memberof ServicesApi
18245
+ */
18246
+ ServicesApi.prototype.apiV1ServicesServiceIdGet = function (serviceId, languageCode, options) {
16394
18247
  var _this = this;
16395
- return exports.ServicesApiFp(this.configuration).apiV1ServicesGet(id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
18248
+ return exports.ServicesApiFp(this.configuration).apiV1ServicesServiceIdGet(serviceId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
16396
18249
  };
16397
18250
  /**
16398
18251
  *
16399
- * @summary Get service by slug.
18252
+ * @summary Get HospitalService by slug.
16400
18253
  * @param {string} slug
16401
18254
  * @param {string} [languageCode]
16402
18255
  * @param {*} [options] Override http request option.