ch-admin-api-client-typescript 3.5.8 → 4.0.2

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.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.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = 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.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.EmailMarketingsApi = exports.EmailMarketingsApiFactory = exports.EmailMarketingsApiFp = exports.EmailMarketingsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DoctorAffiliationsApi = exports.DoctorAffiliationsApiFactory = exports.DoctorAffiliationsApiFp = exports.DoctorAffiliationsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.DashBoardApi = exports.DashBoardApiFactory = exports.DashBoardApiFp = exports.DashBoardApiAxiosParamCreator = 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.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = 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.AboutUsApi = exports.AboutUsApiFactory = exports.AboutUsApiFp = exports.AboutUsApiAxiosParamCreator = exports.UserLocationType = exports.SortingOrder = exports.SnsType = exports.ReviewType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.Duration = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
79
+ 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.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = 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.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.EmailMarketingsApi = exports.EmailMarketingsApiFactory = exports.EmailMarketingsApiFp = exports.EmailMarketingsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DoctorAffiliationsApi = exports.DoctorAffiliationsApiFactory = exports.DoctorAffiliationsApiFp = exports.DoctorAffiliationsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.DashBoardApi = exports.DashBoardApiFactory = exports.DashBoardApiFp = exports.DashBoardApiAxiosParamCreator = 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.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = 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.AboutUsApi = exports.AboutUsApiFactory = exports.AboutUsApiFp = exports.AboutUsApiAxiosParamCreator = exports.UserLocationType = exports.SortingOrder = exports.SnsType = exports.SearchIndexType = exports.ReviewType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.Duration = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = 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
@@ -281,6 +281,26 @@ var ReviewType;
281
281
  ReviewType["SurgeryReview"] = "SurgeryReview";
282
282
  ReviewType["RealStory"] = "RealStory";
283
283
  })(ReviewType = exports.ReviewType || (exports.ReviewType = {}));
284
+ /**
285
+ *
286
+ * @export
287
+ * @enum {string}
288
+ */
289
+ var SearchIndexType;
290
+ (function (SearchIndexType) {
291
+ SearchIndexType["Hospitals"] = "hospitals";
292
+ SearchIndexType["Specialtytypes"] = "specialtytypes";
293
+ SearchIndexType["Specialties"] = "specialties";
294
+ SearchIndexType["Hospitalspecialies"] = "hospitalspecialies";
295
+ SearchIndexType["Doctors"] = "doctors";
296
+ SearchIndexType["Deals"] = "deals";
297
+ SearchIndexType["Articles"] = "articles";
298
+ SearchIndexType["Contributors"] = "contributors";
299
+ SearchIndexType["Countries"] = "countries";
300
+ SearchIndexType["Faqcategories"] = "faqcategories";
301
+ SearchIndexType["Faqs"] = "faqs";
302
+ SearchIndexType["Services"] = "services";
303
+ })(SearchIndexType = exports.SearchIndexType || (exports.SearchIndexType = {}));
284
304
  /**
285
305
  *
286
306
  * @export
@@ -17030,53 +17050,6 @@ exports.EmailMarketingsApi = EmailMarketingsApi;
17030
17050
  exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
17031
17051
  var _this = this;
17032
17052
  return {
17033
- /**
17034
- *
17035
- * @summary Get BreadCrumbs.
17036
- * @param {string} faqId
17037
- * @param {string} [languageCode]
17038
- * @param {*} [options] Override http request option.
17039
- * @throws {RequiredError}
17040
- */
17041
- apiV1FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
17042
- if (options === void 0) { options = {}; }
17043
- return __awaiter(_this, void 0, void 0, function () {
17044
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
17045
- return __generator(this, function (_a) {
17046
- switch (_a.label) {
17047
- case 0:
17048
- // verify required parameter 'faqId' is not null or undefined
17049
- common_1.assertParamExists('apiV1FaqcategoriesBreadcrumbsFaqIdGet', 'faqId', faqId);
17050
- localVarPath = "/api/v1/faqcategories/breadcrumbs/{faqId}"
17051
- .replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
17052
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17053
- if (configuration) {
17054
- baseOptions = configuration.baseOptions;
17055
- }
17056
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
17057
- localVarHeaderParameter = {};
17058
- localVarQueryParameter = {};
17059
- // authentication oauth2 required
17060
- // oauth required
17061
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
17062
- case 1:
17063
- // authentication oauth2 required
17064
- // oauth required
17065
- _a.sent();
17066
- if (languageCode !== undefined) {
17067
- localVarQueryParameter['languageCode'] = languageCode;
17068
- }
17069
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
17070
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17071
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17072
- return [2 /*return*/, {
17073
- url: common_1.toPathString(localVarUrlObj),
17074
- options: localVarRequestOptions,
17075
- }];
17076
- }
17077
- });
17078
- });
17079
- },
17080
17053
  /**
17081
17054
  *
17082
17055
  * @summary Delete FaqCategory.
@@ -17404,27 +17377,6 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
17404
17377
  exports.FaqCategoriesApiFp = function (configuration) {
17405
17378
  var localVarAxiosParamCreator = exports.FaqCategoriesApiAxiosParamCreator(configuration);
17406
17379
  return {
17407
- /**
17408
- *
17409
- * @summary Get BreadCrumbs.
17410
- * @param {string} faqId
17411
- * @param {string} [languageCode]
17412
- * @param {*} [options] Override http request option.
17413
- * @throws {RequiredError}
17414
- */
17415
- apiV1FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
17416
- return __awaiter(this, void 0, void 0, function () {
17417
- var localVarAxiosArgs;
17418
- return __generator(this, function (_a) {
17419
- switch (_a.label) {
17420
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options)];
17421
- case 1:
17422
- localVarAxiosArgs = _a.sent();
17423
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
17424
- }
17425
- });
17426
- });
17427
- },
17428
17380
  /**
17429
17381
  *
17430
17382
  * @summary Delete FaqCategory.
@@ -17569,17 +17521,6 @@ exports.FaqCategoriesApiFp = function (configuration) {
17569
17521
  exports.FaqCategoriesApiFactory = function (configuration, basePath, axios) {
17570
17522
  var localVarFp = exports.FaqCategoriesApiFp(configuration);
17571
17523
  return {
17572
- /**
17573
- *
17574
- * @summary Get BreadCrumbs.
17575
- * @param {string} faqId
17576
- * @param {string} [languageCode]
17577
- * @param {*} [options] Override http request option.
17578
- * @throws {RequiredError}
17579
- */
17580
- apiV1FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
17581
- return localVarFp.apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(axios, basePath); });
17582
- },
17583
17524
  /**
17584
17525
  *
17585
17526
  * @summary Delete FaqCategory.
@@ -17668,19 +17609,6 @@ var FaqCategoriesApi = /** @class */ (function (_super) {
17668
17609
  function FaqCategoriesApi() {
17669
17610
  return _super !== null && _super.apply(this, arguments) || this;
17670
17611
  }
17671
- /**
17672
- *
17673
- * @summary Get BreadCrumbs.
17674
- * @param {string} faqId
17675
- * @param {string} [languageCode]
17676
- * @param {*} [options] Override http request option.
17677
- * @throws {RequiredError}
17678
- * @memberof FaqCategoriesApi
17679
- */
17680
- FaqCategoriesApi.prototype.apiV1FaqcategoriesBreadcrumbsFaqIdGet = function (faqId, languageCode, options) {
17681
- var _this = this;
17682
- return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
17683
- };
17684
17612
  /**
17685
17613
  *
17686
17614
  * @summary Delete FaqCategory.
@@ -21400,6 +21328,104 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21400
21328
  });
21401
21329
  });
21402
21330
  },
21331
+ /**
21332
+ *
21333
+ * @summary Delete HospitalSpecialty.
21334
+ * @param {string} hospitalId
21335
+ * @param {string} hospitalSpecialtyId
21336
+ * @param {*} [options] Override http request option.
21337
+ * @throws {RequiredError}
21338
+ */
21339
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete: function (hospitalId, hospitalSpecialtyId, options) {
21340
+ if (options === void 0) { options = {}; }
21341
+ return __awaiter(_this, void 0, void 0, function () {
21342
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
21343
+ return __generator(this, function (_a) {
21344
+ switch (_a.label) {
21345
+ case 0:
21346
+ // verify required parameter 'hospitalId' is not null or undefined
21347
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete', 'hospitalId', hospitalId);
21348
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
21349
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete', 'hospitalSpecialtyId', hospitalSpecialtyId);
21350
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}"
21351
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
21352
+ .replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
21353
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21354
+ if (configuration) {
21355
+ baseOptions = configuration.baseOptions;
21356
+ }
21357
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
21358
+ localVarHeaderParameter = {};
21359
+ localVarQueryParameter = {};
21360
+ // authentication oauth2 required
21361
+ // oauth required
21362
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
21363
+ case 1:
21364
+ // authentication oauth2 required
21365
+ // oauth required
21366
+ _a.sent();
21367
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
21368
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21369
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21370
+ return [2 /*return*/, {
21371
+ url: common_1.toPathString(localVarUrlObj),
21372
+ options: localVarRequestOptions,
21373
+ }];
21374
+ }
21375
+ });
21376
+ });
21377
+ },
21378
+ /**
21379
+ *
21380
+ * @summary Get HospitalSpecialty.
21381
+ * @param {string} hospitalId
21382
+ * @param {string} hospitalSpecialtyId
21383
+ * @param {string} [languageCode]
21384
+ * @param {*} [options] Override http request option.
21385
+ * @throws {RequiredError}
21386
+ */
21387
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet: function (hospitalId, hospitalSpecialtyId, languageCode, options) {
21388
+ if (options === void 0) { options = {}; }
21389
+ return __awaiter(_this, void 0, void 0, function () {
21390
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
21391
+ return __generator(this, function (_a) {
21392
+ switch (_a.label) {
21393
+ case 0:
21394
+ // verify required parameter 'hospitalId' is not null or undefined
21395
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet', 'hospitalId', hospitalId);
21396
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
21397
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId);
21398
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}"
21399
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
21400
+ .replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
21401
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21402
+ if (configuration) {
21403
+ baseOptions = configuration.baseOptions;
21404
+ }
21405
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
21406
+ localVarHeaderParameter = {};
21407
+ localVarQueryParameter = {};
21408
+ // authentication oauth2 required
21409
+ // oauth required
21410
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
21411
+ case 1:
21412
+ // authentication oauth2 required
21413
+ // oauth required
21414
+ _a.sent();
21415
+ if (languageCode !== undefined) {
21416
+ localVarQueryParameter['languageCode'] = languageCode;
21417
+ }
21418
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
21419
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21420
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21421
+ return [2 /*return*/, {
21422
+ url: common_1.toPathString(localVarUrlObj),
21423
+ options: localVarRequestOptions,
21424
+ }];
21425
+ }
21426
+ });
21427
+ });
21428
+ },
21403
21429
  /**
21404
21430
  *
21405
21431
  * @summary Get all HospitalServiceMedias.
@@ -21675,6 +21701,56 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21675
21701
  });
21676
21702
  });
21677
21703
  },
21704
+ /**
21705
+ *
21706
+ * @summary Update HospitalSpecialty.
21707
+ * @param {string} hospitalId
21708
+ * @param {string} hospitalSpecialtyId
21709
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
21710
+ * @param {*} [options] Override http request option.
21711
+ * @throws {RequiredError}
21712
+ */
21713
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut: function (hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options) {
21714
+ if (options === void 0) { options = {}; }
21715
+ return __awaiter(_this, void 0, void 0, function () {
21716
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
21717
+ return __generator(this, function (_a) {
21718
+ switch (_a.label) {
21719
+ case 0:
21720
+ // verify required parameter 'hospitalId' is not null or undefined
21721
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut', 'hospitalId', hospitalId);
21722
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
21723
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut', 'hospitalSpecialtyId', hospitalSpecialtyId);
21724
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}"
21725
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
21726
+ .replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
21727
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21728
+ if (configuration) {
21729
+ baseOptions = configuration.baseOptions;
21730
+ }
21731
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
21732
+ localVarHeaderParameter = {};
21733
+ localVarQueryParameter = {};
21734
+ // authentication oauth2 required
21735
+ // oauth required
21736
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
21737
+ case 1:
21738
+ // authentication oauth2 required
21739
+ // oauth required
21740
+ _a.sent();
21741
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21742
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
21743
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21744
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21745
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration);
21746
+ return [2 /*return*/, {
21747
+ url: common_1.toPathString(localVarUrlObj),
21748
+ options: localVarRequestOptions,
21749
+ }];
21750
+ }
21751
+ });
21752
+ });
21753
+ },
21678
21754
  /**
21679
21755
  *
21680
21756
  * @summary Create HospitalSpecialty.
@@ -21879,13 +21955,25 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21879
21955
  },
21880
21956
  /**
21881
21957
  *
21882
- * @summary Delete HospitalSpecialty.
21958
+ * @summary Get all HospitalServices.
21883
21959
  * @param {string} hospitalId
21884
21960
  * @param {string} specialtyId
21961
+ * @param {string} [id]
21962
+ * @param {string} [name]
21963
+ * @param {string} [slug]
21964
+ * @param {string} [serviceCategoryId]
21965
+ * @param {MarketingType} [marketingType]
21966
+ * @param {Procedure} [procedure]
21967
+ * @param {Date} [created]
21968
+ * @param {boolean} [showHidden]
21969
+ * @param {string} [languageCode]
21970
+ * @param {number} [page]
21971
+ * @param {number} [limit]
21972
+ * @param {Date} [lastRetrieved]
21885
21973
  * @param {*} [options] Override http request option.
21886
21974
  * @throws {RequiredError}
21887
21975
  */
21888
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
21976
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet: function (hospitalId, specialtyId, id, name, slug, serviceCategoryId, marketingType, procedure, created, showHidden, languageCode, page, limit, lastRetrieved, options) {
21889
21977
  if (options === void 0) { options = {}; }
21890
21978
  return __awaiter(_this, void 0, void 0, function () {
21891
21979
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -21893,177 +21981,17 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21893
21981
  switch (_a.label) {
21894
21982
  case 0:
21895
21983
  // verify required parameter 'hospitalId' is not null or undefined
21896
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'hospitalId', hospitalId);
21984
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'hospitalId', hospitalId);
21897
21985
  // verify required parameter 'specialtyId' is not null or undefined
21898
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId);
21899
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
21986
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'specialtyId', specialtyId);
21987
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services"
21900
21988
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
21901
21989
  .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
21902
21990
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21903
21991
  if (configuration) {
21904
21992
  baseOptions = configuration.baseOptions;
21905
21993
  }
21906
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
21907
- localVarHeaderParameter = {};
21908
- localVarQueryParameter = {};
21909
- // authentication oauth2 required
21910
- // oauth required
21911
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
21912
- case 1:
21913
- // authentication oauth2 required
21914
- // oauth required
21915
- _a.sent();
21916
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
21917
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21918
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21919
- return [2 /*return*/, {
21920
- url: common_1.toPathString(localVarUrlObj),
21921
- options: localVarRequestOptions,
21922
- }];
21923
- }
21924
- });
21925
- });
21926
- },
21927
- /**
21928
- *
21929
- * @summary Get HospitalSpecialty.
21930
- * @param {string} hospitalId
21931
- * @param {string} specialtyId
21932
- * @param {string} [languageCode]
21933
- * @param {*} [options] Override http request option.
21934
- * @throws {RequiredError}
21935
- */
21936
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, languageCode, options) {
21937
- if (options === void 0) { options = {}; }
21938
- return __awaiter(_this, void 0, void 0, function () {
21939
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
21940
- return __generator(this, function (_a) {
21941
- switch (_a.label) {
21942
- case 0:
21943
- // verify required parameter 'hospitalId' is not null or undefined
21944
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'hospitalId', hospitalId);
21945
- // verify required parameter 'specialtyId' is not null or undefined
21946
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'specialtyId', specialtyId);
21947
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
21948
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
21949
- .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
21950
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21951
- if (configuration) {
21952
- baseOptions = configuration.baseOptions;
21953
- }
21954
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
21955
- localVarHeaderParameter = {};
21956
- localVarQueryParameter = {};
21957
- // authentication oauth2 required
21958
- // oauth required
21959
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
21960
- case 1:
21961
- // authentication oauth2 required
21962
- // oauth required
21963
- _a.sent();
21964
- if (languageCode !== undefined) {
21965
- localVarQueryParameter['languageCode'] = languageCode;
21966
- }
21967
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
21968
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21969
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21970
- return [2 /*return*/, {
21971
- url: common_1.toPathString(localVarUrlObj),
21972
- options: localVarRequestOptions,
21973
- }];
21974
- }
21975
- });
21976
- });
21977
- },
21978
- /**
21979
- *
21980
- * @summary Update HospitalSpecialty.
21981
- * @param {string} hospitalId
21982
- * @param {string} specialtyId
21983
- * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
21984
- * @param {*} [options] Override http request option.
21985
- * @throws {RequiredError}
21986
- */
21987
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
21988
- if (options === void 0) { options = {}; }
21989
- return __awaiter(_this, void 0, void 0, function () {
21990
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
21991
- return __generator(this, function (_a) {
21992
- switch (_a.label) {
21993
- case 0:
21994
- // verify required parameter 'hospitalId' is not null or undefined
21995
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'hospitalId', hospitalId);
21996
- // verify required parameter 'specialtyId' is not null or undefined
21997
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId);
21998
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
21999
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
22000
- .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
22001
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
22002
- if (configuration) {
22003
- baseOptions = configuration.baseOptions;
22004
- }
22005
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
22006
- localVarHeaderParameter = {};
22007
- localVarQueryParameter = {};
22008
- // authentication oauth2 required
22009
- // oauth required
22010
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
22011
- case 1:
22012
- // authentication oauth2 required
22013
- // oauth required
22014
- _a.sent();
22015
- localVarHeaderParameter['Content-Type'] = 'application/json';
22016
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
22017
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22018
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22019
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration);
22020
- return [2 /*return*/, {
22021
- url: common_1.toPathString(localVarUrlObj),
22022
- options: localVarRequestOptions,
22023
- }];
22024
- }
22025
- });
22026
- });
22027
- },
22028
- /**
22029
- *
22030
- * @summary Get all HospitalServices.
22031
- * @param {string} hospitalId
22032
- * @param {string} specialtyId
22033
- * @param {string} [id]
22034
- * @param {string} [name]
22035
- * @param {string} [slug]
22036
- * @param {string} [serviceCategoryId]
22037
- * @param {MarketingType} [marketingType]
22038
- * @param {Procedure} [procedure]
22039
- * @param {Date} [created]
22040
- * @param {boolean} [showHidden]
22041
- * @param {string} [languageCode]
22042
- * @param {number} [page]
22043
- * @param {number} [limit]
22044
- * @param {Date} [lastRetrieved]
22045
- * @param {*} [options] Override http request option.
22046
- * @throws {RequiredError}
22047
- */
22048
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet: function (hospitalId, specialtyId, id, name, slug, serviceCategoryId, marketingType, procedure, created, showHidden, languageCode, page, limit, lastRetrieved, options) {
22049
- if (options === void 0) { options = {}; }
22050
- return __awaiter(_this, void 0, void 0, function () {
22051
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
22052
- return __generator(this, function (_a) {
22053
- switch (_a.label) {
22054
- case 0:
22055
- // verify required parameter 'hospitalId' is not null or undefined
22056
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'hospitalId', hospitalId);
22057
- // verify required parameter 'specialtyId' is not null or undefined
22058
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'specialtyId', specialtyId);
22059
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services"
22060
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
22061
- .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
22062
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
22063
- if (configuration) {
22064
- baseOptions = configuration.baseOptions;
22065
- }
22066
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
21994
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
22067
21995
  localVarHeaderParameter = {};
22068
21996
  localVarQueryParameter = {};
22069
21997
  // authentication oauth2 required
@@ -24017,23 +23945,18 @@ exports.HospitalsApiFp = function (configuration) {
24017
23945
  },
24018
23946
  /**
24019
23947
  *
24020
- * @summary Get all HospitalServiceMedias.
23948
+ * @summary Delete HospitalSpecialty.
24021
23949
  * @param {string} hospitalId
24022
23950
  * @param {string} hospitalSpecialtyId
24023
- * @param {string} [id]
24024
- * @param {MediaType} [mediaType]
24025
- * @param {number} [page]
24026
- * @param {number} [limit]
24027
- * @param {Date} [lastRetrieved]
24028
23951
  * @param {*} [options] Override http request option.
24029
23952
  * @throws {RequiredError}
24030
23953
  */
24031
- apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
23954
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete: function (hospitalId, hospitalSpecialtyId, options) {
24032
23955
  return __awaiter(this, void 0, void 0, function () {
24033
23956
  var localVarAxiosArgs;
24034
23957
  return __generator(this, function (_a) {
24035
23958
  switch (_a.label) {
24036
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options)];
23959
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId, hospitalSpecialtyId, options)];
24037
23960
  case 1:
24038
23961
  localVarAxiosArgs = _a.sent();
24039
23962
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -24043,19 +23966,19 @@ exports.HospitalsApiFp = function (configuration) {
24043
23966
  },
24044
23967
  /**
24045
23968
  *
24046
- * @summary Delete HospitalServiceMedia
23969
+ * @summary Get HospitalSpecialty.
24047
23970
  * @param {string} hospitalId
24048
23971
  * @param {string} hospitalSpecialtyId
24049
- * @param {string} mediaId
23972
+ * @param {string} [languageCode]
24050
23973
  * @param {*} [options] Override http request option.
24051
23974
  * @throws {RequiredError}
24052
23975
  */
24053
- apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
23976
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet: function (hospitalId, hospitalSpecialtyId, languageCode, options) {
24054
23977
  return __awaiter(this, void 0, void 0, function () {
24055
23978
  var localVarAxiosArgs;
24056
23979
  return __generator(this, function (_a) {
24057
23980
  switch (_a.label) {
24058
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options)];
23981
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId, hospitalSpecialtyId, languageCode, options)];
24059
23982
  case 1:
24060
23983
  localVarAxiosArgs = _a.sent();
24061
23984
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -24065,19 +23988,23 @@ exports.HospitalsApiFp = function (configuration) {
24065
23988
  },
24066
23989
  /**
24067
23990
  *
24068
- * @summary Get HospitalServiceMedia.
23991
+ * @summary Get all HospitalServiceMedias.
24069
23992
  * @param {string} hospitalId
24070
23993
  * @param {string} hospitalSpecialtyId
24071
- * @param {string} mediaId
23994
+ * @param {string} [id]
23995
+ * @param {MediaType} [mediaType]
23996
+ * @param {number} [page]
23997
+ * @param {number} [limit]
23998
+ * @param {Date} [lastRetrieved]
24072
23999
  * @param {*} [options] Override http request option.
24073
24000
  * @throws {RequiredError}
24074
24001
  */
24075
- apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
24002
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
24076
24003
  return __awaiter(this, void 0, void 0, function () {
24077
24004
  var localVarAxiosArgs;
24078
24005
  return __generator(this, function (_a) {
24079
24006
  switch (_a.label) {
24080
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options)];
24007
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options)];
24081
24008
  case 1:
24082
24009
  localVarAxiosArgs = _a.sent();
24083
24010
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -24087,20 +24014,19 @@ exports.HospitalsApiFp = function (configuration) {
24087
24014
  },
24088
24015
  /**
24089
24016
  *
24090
- * @summary Update HospitalServiceMedia.
24017
+ * @summary Delete HospitalServiceMedia
24091
24018
  * @param {string} hospitalId
24092
24019
  * @param {string} hospitalSpecialtyId
24093
24020
  * @param {string} mediaId
24094
- * @param {UpdateMediaCommand} [updateMediaCommand]
24095
24021
  * @param {*} [options] Override http request option.
24096
24022
  * @throws {RequiredError}
24097
24023
  */
24098
- apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut: function (hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options) {
24024
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
24099
24025
  return __awaiter(this, void 0, void 0, function () {
24100
24026
  var localVarAxiosArgs;
24101
24027
  return __generator(this, function (_a) {
24102
24028
  switch (_a.label) {
24103
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options)];
24029
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete(hospitalId, hospitalSpecialtyId, mediaId, options)];
24104
24030
  case 1:
24105
24031
  localVarAxiosArgs = _a.sent();
24106
24032
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -24110,19 +24036,19 @@ exports.HospitalsApiFp = function (configuration) {
24110
24036
  },
24111
24037
  /**
24112
24038
  *
24113
- * @summary Create HospitalServiceMedia.
24039
+ * @summary Get HospitalServiceMedia.
24114
24040
  * @param {string} hospitalId
24115
24041
  * @param {string} hospitalSpecialtyId
24116
- * @param {CreateMediaCommand} [createMediaCommand]
24042
+ * @param {string} mediaId
24117
24043
  * @param {*} [options] Override http request option.
24118
24044
  * @throws {RequiredError}
24119
24045
  */
24120
- apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: function (hospitalId, hospitalSpecialtyId, createMediaCommand, options) {
24046
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
24121
24047
  return __awaiter(this, void 0, void 0, function () {
24122
24048
  var localVarAxiosArgs;
24123
24049
  return __generator(this, function (_a) {
24124
24050
  switch (_a.label) {
24125
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options)];
24051
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options)];
24126
24052
  case 1:
24127
24053
  localVarAxiosArgs = _a.sent();
24128
24054
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -24132,18 +24058,20 @@ exports.HospitalsApiFp = function (configuration) {
24132
24058
  },
24133
24059
  /**
24134
24060
  *
24135
- * @summary Create HospitalSpecialty.
24061
+ * @summary Update HospitalServiceMedia.
24136
24062
  * @param {string} hospitalId
24137
- * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
24063
+ * @param {string} hospitalSpecialtyId
24064
+ * @param {string} mediaId
24065
+ * @param {UpdateMediaCommand} [updateMediaCommand]
24138
24066
  * @param {*} [options] Override http request option.
24139
24067
  * @throws {RequiredError}
24140
24068
  */
24141
- apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
24069
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut: function (hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options) {
24142
24070
  return __awaiter(this, void 0, void 0, function () {
24143
24071
  var localVarAxiosArgs;
24144
24072
  return __generator(this, function (_a) {
24145
24073
  switch (_a.label) {
24146
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options)];
24074
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut(hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options)];
24147
24075
  case 1:
24148
24076
  localVarAxiosArgs = _a.sent();
24149
24077
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -24153,30 +24081,19 @@ exports.HospitalsApiFp = function (configuration) {
24153
24081
  },
24154
24082
  /**
24155
24083
  *
24156
- * @summary Get all HospitalSpecialties.
24084
+ * @summary Create HospitalServiceMedia.
24157
24085
  * @param {string} hospitalId
24158
- * @param {string} [specialtyId]
24159
- * @param {string} [specialtyName]
24160
- * @param {string} [specialtyTypeId]
24161
- * @param {string} [specialtyTypeName]
24162
- * @param {string} [hospitalSpecialtyId]
24163
- * @param {string} [name]
24164
- * @param {string} [slug]
24165
- * @param {MarketingType} [marketingType]
24166
- * @param {string} [languageCode]
24167
- * @param {boolean} [showHidden]
24168
- * @param {number} [page]
24169
- * @param {number} [limit]
24170
- * @param {Date} [lastRetrieved]
24086
+ * @param {string} hospitalSpecialtyId
24087
+ * @param {CreateMediaCommand} [createMediaCommand]
24171
24088
  * @param {*} [options] Override http request option.
24172
24089
  * @throws {RequiredError}
24173
24090
  */
24174
- apiV1HospitalsHospitalIdSpecialtiesSimpleGet: function (hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, languageCode, showHidden, page, limit, lastRetrieved, options) {
24091
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: function (hospitalId, hospitalSpecialtyId, createMediaCommand, options) {
24175
24092
  return __awaiter(this, void 0, void 0, function () {
24176
24093
  var localVarAxiosArgs;
24177
24094
  return __generator(this, function (_a) {
24178
24095
  switch (_a.label) {
24179
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, languageCode, showHidden, page, limit, lastRetrieved, options)];
24096
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options)];
24180
24097
  case 1:
24181
24098
  localVarAxiosArgs = _a.sent();
24182
24099
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -24186,21 +24103,19 @@ exports.HospitalsApiFp = function (configuration) {
24186
24103
  },
24187
24104
  /**
24188
24105
  *
24189
- * @summary Get HospitalSpecialty by slug.
24106
+ * @summary Update HospitalSpecialty.
24190
24107
  * @param {string} hospitalId
24191
- * @param {string} slug
24192
- * @param {string} [languageCode]
24193
- * @param {boolean} [returnDefaultValue]
24194
- * @param {boolean} [includeServices]
24108
+ * @param {string} hospitalSpecialtyId
24109
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
24195
24110
  * @param {*} [options] Override http request option.
24196
24111
  * @throws {RequiredError}
24197
24112
  */
24198
- apiV1HospitalsHospitalIdSpecialtiesSlugGet: function (hospitalId, slug, languageCode, returnDefaultValue, includeServices, options) {
24113
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut: function (hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options) {
24199
24114
  return __awaiter(this, void 0, void 0, function () {
24200
24115
  var localVarAxiosArgs;
24201
24116
  return __generator(this, function (_a) {
24202
24117
  switch (_a.label) {
24203
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSlugGet(hospitalId, slug, languageCode, returnDefaultValue, includeServices, options)];
24118
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options)];
24204
24119
  case 1:
24205
24120
  localVarAxiosArgs = _a.sent();
24206
24121
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -24210,18 +24125,18 @@ exports.HospitalsApiFp = function (configuration) {
24210
24125
  },
24211
24126
  /**
24212
24127
  *
24213
- * @summary Delete HospitalSpecialty.
24128
+ * @summary Create HospitalSpecialty.
24214
24129
  * @param {string} hospitalId
24215
- * @param {string} specialtyId
24130
+ * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
24216
24131
  * @param {*} [options] Override http request option.
24217
24132
  * @throws {RequiredError}
24218
24133
  */
24219
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
24134
+ apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
24220
24135
  return __awaiter(this, void 0, void 0, function () {
24221
24136
  var localVarAxiosArgs;
24222
24137
  return __generator(this, function (_a) {
24223
24138
  switch (_a.label) {
24224
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options)];
24139
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options)];
24225
24140
  case 1:
24226
24141
  localVarAxiosArgs = _a.sent();
24227
24142
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -24231,19 +24146,30 @@ exports.HospitalsApiFp = function (configuration) {
24231
24146
  },
24232
24147
  /**
24233
24148
  *
24234
- * @summary Get HospitalSpecialty.
24149
+ * @summary Get all HospitalSpecialties.
24235
24150
  * @param {string} hospitalId
24236
- * @param {string} specialtyId
24151
+ * @param {string} [specialtyId]
24152
+ * @param {string} [specialtyName]
24153
+ * @param {string} [specialtyTypeId]
24154
+ * @param {string} [specialtyTypeName]
24155
+ * @param {string} [hospitalSpecialtyId]
24156
+ * @param {string} [name]
24157
+ * @param {string} [slug]
24158
+ * @param {MarketingType} [marketingType]
24237
24159
  * @param {string} [languageCode]
24160
+ * @param {boolean} [showHidden]
24161
+ * @param {number} [page]
24162
+ * @param {number} [limit]
24163
+ * @param {Date} [lastRetrieved]
24238
24164
  * @param {*} [options] Override http request option.
24239
24165
  * @throws {RequiredError}
24240
24166
  */
24241
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, languageCode, options) {
24167
+ apiV1HospitalsHospitalIdSpecialtiesSimpleGet: function (hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, languageCode, showHidden, page, limit, lastRetrieved, options) {
24242
24168
  return __awaiter(this, void 0, void 0, function () {
24243
24169
  var localVarAxiosArgs;
24244
24170
  return __generator(this, function (_a) {
24245
24171
  switch (_a.label) {
24246
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, options)];
24172
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, languageCode, showHidden, page, limit, lastRetrieved, options)];
24247
24173
  case 1:
24248
24174
  localVarAxiosArgs = _a.sent();
24249
24175
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -24253,19 +24179,21 @@ exports.HospitalsApiFp = function (configuration) {
24253
24179
  },
24254
24180
  /**
24255
24181
  *
24256
- * @summary Update HospitalSpecialty.
24182
+ * @summary Get HospitalSpecialty by slug.
24257
24183
  * @param {string} hospitalId
24258
- * @param {string} specialtyId
24259
- * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
24184
+ * @param {string} slug
24185
+ * @param {string} [languageCode]
24186
+ * @param {boolean} [returnDefaultValue]
24187
+ * @param {boolean} [includeServices]
24260
24188
  * @param {*} [options] Override http request option.
24261
24189
  * @throws {RequiredError}
24262
24190
  */
24263
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
24191
+ apiV1HospitalsHospitalIdSpecialtiesSlugGet: function (hospitalId, slug, languageCode, returnDefaultValue, includeServices, options) {
24264
24192
  return __awaiter(this, void 0, void 0, function () {
24265
24193
  var localVarAxiosArgs;
24266
24194
  return __generator(this, function (_a) {
24267
24195
  switch (_a.label) {
24268
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options)];
24196
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSlugGet(hospitalId, slug, languageCode, returnDefaultValue, includeServices, options)];
24269
24197
  case 1:
24270
24198
  localVarAxiosArgs = _a.sent();
24271
24199
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -25220,11 +25148,34 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
25220
25148
  },
25221
25149
  /**
25222
25150
  *
25223
- * @summary Get all HospitalServiceMedias.
25151
+ * @summary Delete HospitalSpecialty.
25224
25152
  * @param {string} hospitalId
25225
25153
  * @param {string} hospitalSpecialtyId
25226
- * @param {string} [id]
25227
- * @param {MediaType} [mediaType]
25154
+ * @param {*} [options] Override http request option.
25155
+ * @throws {RequiredError}
25156
+ */
25157
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete: function (hospitalId, hospitalSpecialtyId, options) {
25158
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId, hospitalSpecialtyId, options).then(function (request) { return request(axios, basePath); });
25159
+ },
25160
+ /**
25161
+ *
25162
+ * @summary Get HospitalSpecialty.
25163
+ * @param {string} hospitalId
25164
+ * @param {string} hospitalSpecialtyId
25165
+ * @param {string} [languageCode]
25166
+ * @param {*} [options] Override http request option.
25167
+ * @throws {RequiredError}
25168
+ */
25169
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet: function (hospitalId, hospitalSpecialtyId, languageCode, options) {
25170
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId, hospitalSpecialtyId, languageCode, options).then(function (request) { return request(axios, basePath); });
25171
+ },
25172
+ /**
25173
+ *
25174
+ * @summary Get all HospitalServiceMedias.
25175
+ * @param {string} hospitalId
25176
+ * @param {string} hospitalSpecialtyId
25177
+ * @param {string} [id]
25178
+ * @param {MediaType} [mediaType]
25228
25179
  * @param {number} [page]
25229
25180
  * @param {number} [limit]
25230
25181
  * @param {Date} [lastRetrieved]
@@ -25283,6 +25234,18 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
25283
25234
  apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: function (hospitalId, hospitalSpecialtyId, createMediaCommand, options) {
25284
25235
  return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
25285
25236
  },
25237
+ /**
25238
+ *
25239
+ * @summary Update HospitalSpecialty.
25240
+ * @param {string} hospitalId
25241
+ * @param {string} hospitalSpecialtyId
25242
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
25243
+ * @param {*} [options] Override http request option.
25244
+ * @throws {RequiredError}
25245
+ */
25246
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut: function (hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options) {
25247
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
25248
+ },
25286
25249
  /**
25287
25250
  *
25288
25251
  * @summary Create HospitalSpecialty.
@@ -25331,41 +25294,6 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
25331
25294
  apiV1HospitalsHospitalIdSpecialtiesSlugGet: function (hospitalId, slug, languageCode, returnDefaultValue, includeServices, options) {
25332
25295
  return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSlugGet(hospitalId, slug, languageCode, returnDefaultValue, includeServices, options).then(function (request) { return request(axios, basePath); });
25333
25296
  },
25334
- /**
25335
- *
25336
- * @summary Delete HospitalSpecialty.
25337
- * @param {string} hospitalId
25338
- * @param {string} specialtyId
25339
- * @param {*} [options] Override http request option.
25340
- * @throws {RequiredError}
25341
- */
25342
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
25343
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options).then(function (request) { return request(axios, basePath); });
25344
- },
25345
- /**
25346
- *
25347
- * @summary Get HospitalSpecialty.
25348
- * @param {string} hospitalId
25349
- * @param {string} specialtyId
25350
- * @param {string} [languageCode]
25351
- * @param {*} [options] Override http request option.
25352
- * @throws {RequiredError}
25353
- */
25354
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, languageCode, options) {
25355
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, options).then(function (request) { return request(axios, basePath); });
25356
- },
25357
- /**
25358
- *
25359
- * @summary Update HospitalSpecialty.
25360
- * @param {string} hospitalId
25361
- * @param {string} specialtyId
25362
- * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
25363
- * @param {*} [options] Override http request option.
25364
- * @throws {RequiredError}
25365
- */
25366
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
25367
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
25368
- },
25369
25297
  /**
25370
25298
  *
25371
25299
  * @summary Get all HospitalServices.
@@ -26201,6 +26129,33 @@ var HospitalsApi = /** @class */ (function (_super) {
26201
26129
  var _this = this;
26202
26130
  return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
26203
26131
  };
26132
+ /**
26133
+ *
26134
+ * @summary Delete HospitalSpecialty.
26135
+ * @param {string} hospitalId
26136
+ * @param {string} hospitalSpecialtyId
26137
+ * @param {*} [options] Override http request option.
26138
+ * @throws {RequiredError}
26139
+ * @memberof HospitalsApi
26140
+ */
26141
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete = function (hospitalId, hospitalSpecialtyId, options) {
26142
+ var _this = this;
26143
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId, hospitalSpecialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
26144
+ };
26145
+ /**
26146
+ *
26147
+ * @summary Get HospitalSpecialty.
26148
+ * @param {string} hospitalId
26149
+ * @param {string} hospitalSpecialtyId
26150
+ * @param {string} [languageCode]
26151
+ * @param {*} [options] Override http request option.
26152
+ * @throws {RequiredError}
26153
+ * @memberof HospitalsApi
26154
+ */
26155
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet = function (hospitalId, hospitalSpecialtyId, languageCode, options) {
26156
+ var _this = this;
26157
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId, hospitalSpecialtyId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
26158
+ };
26204
26159
  /**
26205
26160
  *
26206
26161
  * @summary Get all HospitalServiceMedias.
@@ -26276,6 +26231,20 @@ var HospitalsApi = /** @class */ (function (_super) {
26276
26231
  var _this = this;
26277
26232
  return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
26278
26233
  };
26234
+ /**
26235
+ *
26236
+ * @summary Update HospitalSpecialty.
26237
+ * @param {string} hospitalId
26238
+ * @param {string} hospitalSpecialtyId
26239
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
26240
+ * @param {*} [options] Override http request option.
26241
+ * @throws {RequiredError}
26242
+ * @memberof HospitalsApi
26243
+ */
26244
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut = function (hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options) {
26245
+ var _this = this;
26246
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
26247
+ };
26279
26248
  /**
26280
26249
  *
26281
26250
  * @summary Create HospitalSpecialty.
@@ -26330,47 +26299,6 @@ var HospitalsApi = /** @class */ (function (_super) {
26330
26299
  var _this = this;
26331
26300
  return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSlugGet(hospitalId, slug, languageCode, returnDefaultValue, includeServices, options).then(function (request) { return request(_this.axios, _this.basePath); });
26332
26301
  };
26333
- /**
26334
- *
26335
- * @summary Delete HospitalSpecialty.
26336
- * @param {string} hospitalId
26337
- * @param {string} specialtyId
26338
- * @param {*} [options] Override http request option.
26339
- * @throws {RequiredError}
26340
- * @memberof HospitalsApi
26341
- */
26342
- HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete = function (hospitalId, specialtyId, options) {
26343
- var _this = this;
26344
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
26345
- };
26346
- /**
26347
- *
26348
- * @summary Get HospitalSpecialty.
26349
- * @param {string} hospitalId
26350
- * @param {string} specialtyId
26351
- * @param {string} [languageCode]
26352
- * @param {*} [options] Override http request option.
26353
- * @throws {RequiredError}
26354
- * @memberof HospitalsApi
26355
- */
26356
- HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet = function (hospitalId, specialtyId, languageCode, options) {
26357
- var _this = this;
26358
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
26359
- };
26360
- /**
26361
- *
26362
- * @summary Update HospitalSpecialty.
26363
- * @param {string} hospitalId
26364
- * @param {string} specialtyId
26365
- * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
26366
- * @param {*} [options] Override http request option.
26367
- * @throws {RequiredError}
26368
- * @memberof HospitalsApi
26369
- */
26370
- HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut = function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
26371
- var _this = this;
26372
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
26373
- };
26374
26302
  /**
26375
26303
  *
26376
26304
  * @summary Get all HospitalServices.
@@ -30953,187 +30881,20 @@ exports.SearchApiAxiosParamCreator = function (configuration) {
30953
30881
  return {
30954
30882
  /**
30955
30883
  *
30956
- * @summary Update or Re-create deals Azure Search Services Index
30957
- * @param {UpdateDealsSearchIndexCommand} [updateDealsSearchIndexCommand]
30958
- * @param {*} [options] Override http request option.
30959
- * @throws {RequiredError}
30960
- */
30961
- apiV1SearchDealsPost: function (updateDealsSearchIndexCommand, options) {
30962
- if (options === void 0) { options = {}; }
30963
- return __awaiter(_this, void 0, void 0, function () {
30964
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
30965
- return __generator(this, function (_a) {
30966
- switch (_a.label) {
30967
- case 0:
30968
- localVarPath = "/api/v1/search/deals";
30969
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
30970
- if (configuration) {
30971
- baseOptions = configuration.baseOptions;
30972
- }
30973
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
30974
- localVarHeaderParameter = {};
30975
- localVarQueryParameter = {};
30976
- // authentication oauth2 required
30977
- // oauth required
30978
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
30979
- case 1:
30980
- // authentication oauth2 required
30981
- // oauth required
30982
- _a.sent();
30983
- localVarHeaderParameter['Content-Type'] = 'application/json';
30984
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
30985
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30986
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
30987
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateDealsSearchIndexCommand, localVarRequestOptions, configuration);
30988
- return [2 /*return*/, {
30989
- url: common_1.toPathString(localVarUrlObj),
30990
- options: localVarRequestOptions,
30991
- }];
30992
- }
30993
- });
30994
- });
30995
- },
30996
- /**
30997
- *
30998
- * @summary Update or Re-create doctors Azure Search Services Index
30999
- * @param {UpdateDoctorsSearchIndexCommand} [updateDoctorsSearchIndexCommand]
31000
- * @param {*} [options] Override http request option.
31001
- * @throws {RequiredError}
31002
- */
31003
- apiV1SearchDoctorsPost: function (updateDoctorsSearchIndexCommand, options) {
31004
- if (options === void 0) { options = {}; }
31005
- return __awaiter(_this, void 0, void 0, function () {
31006
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
31007
- return __generator(this, function (_a) {
31008
- switch (_a.label) {
31009
- case 0:
31010
- localVarPath = "/api/v1/search/doctors";
31011
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
31012
- if (configuration) {
31013
- baseOptions = configuration.baseOptions;
31014
- }
31015
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
31016
- localVarHeaderParameter = {};
31017
- localVarQueryParameter = {};
31018
- // authentication oauth2 required
31019
- // oauth required
31020
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
31021
- case 1:
31022
- // authentication oauth2 required
31023
- // oauth required
31024
- _a.sent();
31025
- localVarHeaderParameter['Content-Type'] = 'application/json';
31026
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
31027
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31028
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31029
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateDoctorsSearchIndexCommand, localVarRequestOptions, configuration);
31030
- return [2 /*return*/, {
31031
- url: common_1.toPathString(localVarUrlObj),
31032
- options: localVarRequestOptions,
31033
- }];
31034
- }
31035
- });
31036
- });
31037
- },
31038
- /**
31039
- *
31040
- * @summary Update or Re-create hospitals Azure Search Services Index
31041
- * @param {UpdateHospitalsSearchIndexCommand} [updateHospitalsSearchIndexCommand]
31042
- * @param {*} [options] Override http request option.
31043
- * @throws {RequiredError}
31044
- */
31045
- apiV1SearchHospitalsPost: function (updateHospitalsSearchIndexCommand, options) {
31046
- if (options === void 0) { options = {}; }
31047
- return __awaiter(_this, void 0, void 0, function () {
31048
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
31049
- return __generator(this, function (_a) {
31050
- switch (_a.label) {
31051
- case 0:
31052
- localVarPath = "/api/v1/search/hospitals";
31053
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
31054
- if (configuration) {
31055
- baseOptions = configuration.baseOptions;
31056
- }
31057
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
31058
- localVarHeaderParameter = {};
31059
- localVarQueryParameter = {};
31060
- // authentication oauth2 required
31061
- // oauth required
31062
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
31063
- case 1:
31064
- // authentication oauth2 required
31065
- // oauth required
31066
- _a.sent();
31067
- localVarHeaderParameter['Content-Type'] = 'application/json';
31068
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
31069
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31070
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31071
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalsSearchIndexCommand, localVarRequestOptions, configuration);
31072
- return [2 /*return*/, {
31073
- url: common_1.toPathString(localVarUrlObj),
31074
- options: localVarRequestOptions,
31075
- }];
31076
- }
31077
- });
31078
- });
31079
- },
31080
- /**
31081
- *
31082
- * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
31083
- * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
31084
- * @param {*} [options] Override http request option.
31085
- * @throws {RequiredError}
31086
- */
31087
- apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
31088
- if (options === void 0) { options = {}; }
31089
- return __awaiter(_this, void 0, void 0, function () {
31090
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
31091
- return __generator(this, function (_a) {
31092
- switch (_a.label) {
31093
- case 0:
31094
- localVarPath = "/api/v1/search/hospitalspecialties";
31095
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
31096
- if (configuration) {
31097
- baseOptions = configuration.baseOptions;
31098
- }
31099
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
31100
- localVarHeaderParameter = {};
31101
- localVarQueryParameter = {};
31102
- // authentication oauth2 required
31103
- // oauth required
31104
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
31105
- case 1:
31106
- // authentication oauth2 required
31107
- // oauth required
31108
- _a.sent();
31109
- localVarHeaderParameter['Content-Type'] = 'application/json';
31110
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
31111
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31112
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31113
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtiesSearchIndexCommand, localVarRequestOptions, configuration);
31114
- return [2 /*return*/, {
31115
- url: common_1.toPathString(localVarUrlObj),
31116
- options: localVarRequestOptions,
31117
- }];
31118
- }
31119
- });
31120
- });
31121
- },
31122
- /**
31123
- *
31124
- * @summary Update or Re-create specialties Azure Search Services Index
31125
- * @param {UpdateSpecialtiesSearchIndexCommand} [updateSpecialtiesSearchIndexCommand]
30884
+ * @summary RecreateIndex
30885
+ * @param {SearchIndexType} [searchIndexType]
30886
+ * @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
31126
30887
  * @param {*} [options] Override http request option.
31127
30888
  * @throws {RequiredError}
31128
30889
  */
31129
- apiV1SearchSpecialtiesPost: function (updateSpecialtiesSearchIndexCommand, options) {
30890
+ apiV1SearchRecreatePost: function (searchIndexType, updateSearchIndexCommand, options) {
31130
30891
  if (options === void 0) { options = {}; }
31131
30892
  return __awaiter(_this, void 0, void 0, function () {
31132
30893
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
31133
30894
  return __generator(this, function (_a) {
31134
30895
  switch (_a.label) {
31135
30896
  case 0:
31136
- localVarPath = "/api/v1/search/specialties";
30897
+ localVarPath = "/api/v1/search/recreate";
31137
30898
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
31138
30899
  if (configuration) {
31139
30900
  baseOptions = configuration.baseOptions;
@@ -31148,53 +30909,14 @@ exports.SearchApiAxiosParamCreator = function (configuration) {
31148
30909
  // authentication oauth2 required
31149
30910
  // oauth required
31150
30911
  _a.sent();
31151
- localVarHeaderParameter['Content-Type'] = 'application/json';
31152
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
31153
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31154
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31155
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateSpecialtiesSearchIndexCommand, localVarRequestOptions, configuration);
31156
- return [2 /*return*/, {
31157
- url: common_1.toPathString(localVarUrlObj),
31158
- options: localVarRequestOptions,
31159
- }];
31160
- }
31161
- });
31162
- });
31163
- },
31164
- /**
31165
- *
31166
- * @summary Update or Re-create specialtyTypes Azure Search Services Index
31167
- * @param {UpdateSpecialtyTypesSearchIndexCommand} [updateSpecialtyTypesSearchIndexCommand]
31168
- * @param {*} [options] Override http request option.
31169
- * @throws {RequiredError}
31170
- */
31171
- apiV1SearchSpecialtytypesPost: function (updateSpecialtyTypesSearchIndexCommand, options) {
31172
- if (options === void 0) { options = {}; }
31173
- return __awaiter(_this, void 0, void 0, function () {
31174
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
31175
- return __generator(this, function (_a) {
31176
- switch (_a.label) {
31177
- case 0:
31178
- localVarPath = "/api/v1/search/specialtytypes";
31179
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
31180
- if (configuration) {
31181
- baseOptions = configuration.baseOptions;
30912
+ if (searchIndexType !== undefined) {
30913
+ localVarQueryParameter['searchIndexType'] = searchIndexType;
31182
30914
  }
31183
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
31184
- localVarHeaderParameter = {};
31185
- localVarQueryParameter = {};
31186
- // authentication oauth2 required
31187
- // oauth required
31188
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
31189
- case 1:
31190
- // authentication oauth2 required
31191
- // oauth required
31192
- _a.sent();
31193
30915
  localVarHeaderParameter['Content-Type'] = 'application/json';
31194
30916
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
31195
30917
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31196
30918
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31197
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateSpecialtyTypesSearchIndexCommand, localVarRequestOptions, configuration);
30919
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateSearchIndexCommand, localVarRequestOptions, configuration);
31198
30920
  return [2 /*return*/, {
31199
30921
  url: common_1.toPathString(localVarUrlObj),
31200
30922
  options: localVarRequestOptions,
@@ -31214,117 +30936,18 @@ exports.SearchApiFp = function (configuration) {
31214
30936
  return {
31215
30937
  /**
31216
30938
  *
31217
- * @summary Update or Re-create deals Azure Search Services Index
31218
- * @param {UpdateDealsSearchIndexCommand} [updateDealsSearchIndexCommand]
31219
- * @param {*} [options] Override http request option.
31220
- * @throws {RequiredError}
31221
- */
31222
- apiV1SearchDealsPost: function (updateDealsSearchIndexCommand, options) {
31223
- return __awaiter(this, void 0, void 0, function () {
31224
- var localVarAxiosArgs;
31225
- return __generator(this, function (_a) {
31226
- switch (_a.label) {
31227
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchDealsPost(updateDealsSearchIndexCommand, options)];
31228
- case 1:
31229
- localVarAxiosArgs = _a.sent();
31230
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
31231
- }
31232
- });
31233
- });
31234
- },
31235
- /**
31236
- *
31237
- * @summary Update or Re-create doctors Azure Search Services Index
31238
- * @param {UpdateDoctorsSearchIndexCommand} [updateDoctorsSearchIndexCommand]
31239
- * @param {*} [options] Override http request option.
31240
- * @throws {RequiredError}
31241
- */
31242
- apiV1SearchDoctorsPost: function (updateDoctorsSearchIndexCommand, options) {
31243
- return __awaiter(this, void 0, void 0, function () {
31244
- var localVarAxiosArgs;
31245
- return __generator(this, function (_a) {
31246
- switch (_a.label) {
31247
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchDoctorsPost(updateDoctorsSearchIndexCommand, options)];
31248
- case 1:
31249
- localVarAxiosArgs = _a.sent();
31250
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
31251
- }
31252
- });
31253
- });
31254
- },
31255
- /**
31256
- *
31257
- * @summary Update or Re-create hospitals Azure Search Services Index
31258
- * @param {UpdateHospitalsSearchIndexCommand} [updateHospitalsSearchIndexCommand]
31259
- * @param {*} [options] Override http request option.
31260
- * @throws {RequiredError}
31261
- */
31262
- apiV1SearchHospitalsPost: function (updateHospitalsSearchIndexCommand, options) {
31263
- return __awaiter(this, void 0, void 0, function () {
31264
- var localVarAxiosArgs;
31265
- return __generator(this, function (_a) {
31266
- switch (_a.label) {
31267
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options)];
31268
- case 1:
31269
- localVarAxiosArgs = _a.sent();
31270
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
31271
- }
31272
- });
31273
- });
31274
- },
31275
- /**
31276
- *
31277
- * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
31278
- * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
31279
- * @param {*} [options] Override http request option.
31280
- * @throws {RequiredError}
31281
- */
31282
- apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
31283
- return __awaiter(this, void 0, void 0, function () {
31284
- var localVarAxiosArgs;
31285
- return __generator(this, function (_a) {
31286
- switch (_a.label) {
31287
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options)];
31288
- case 1:
31289
- localVarAxiosArgs = _a.sent();
31290
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
31291
- }
31292
- });
31293
- });
31294
- },
31295
- /**
31296
- *
31297
- * @summary Update or Re-create specialties Azure Search Services Index
31298
- * @param {UpdateSpecialtiesSearchIndexCommand} [updateSpecialtiesSearchIndexCommand]
30939
+ * @summary RecreateIndex
30940
+ * @param {SearchIndexType} [searchIndexType]
30941
+ * @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
31299
30942
  * @param {*} [options] Override http request option.
31300
30943
  * @throws {RequiredError}
31301
30944
  */
31302
- apiV1SearchSpecialtiesPost: function (updateSpecialtiesSearchIndexCommand, options) {
30945
+ apiV1SearchRecreatePost: function (searchIndexType, updateSearchIndexCommand, options) {
31303
30946
  return __awaiter(this, void 0, void 0, function () {
31304
30947
  var localVarAxiosArgs;
31305
30948
  return __generator(this, function (_a) {
31306
30949
  switch (_a.label) {
31307
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchSpecialtiesPost(updateSpecialtiesSearchIndexCommand, options)];
31308
- case 1:
31309
- localVarAxiosArgs = _a.sent();
31310
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
31311
- }
31312
- });
31313
- });
31314
- },
31315
- /**
31316
- *
31317
- * @summary Update or Re-create specialtyTypes Azure Search Services Index
31318
- * @param {UpdateSpecialtyTypesSearchIndexCommand} [updateSpecialtyTypesSearchIndexCommand]
31319
- * @param {*} [options] Override http request option.
31320
- * @throws {RequiredError}
31321
- */
31322
- apiV1SearchSpecialtytypesPost: function (updateSpecialtyTypesSearchIndexCommand, options) {
31323
- return __awaiter(this, void 0, void 0, function () {
31324
- var localVarAxiosArgs;
31325
- return __generator(this, function (_a) {
31326
- switch (_a.label) {
31327
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchSpecialtytypesPost(updateSpecialtyTypesSearchIndexCommand, options)];
30950
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchRecreatePost(searchIndexType, updateSearchIndexCommand, options)];
31328
30951
  case 1:
31329
30952
  localVarAxiosArgs = _a.sent();
31330
30953
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -31343,63 +30966,14 @@ exports.SearchApiFactory = function (configuration, basePath, axios) {
31343
30966
  return {
31344
30967
  /**
31345
30968
  *
31346
- * @summary Update or Re-create deals Azure Search Services Index
31347
- * @param {UpdateDealsSearchIndexCommand} [updateDealsSearchIndexCommand]
31348
- * @param {*} [options] Override http request option.
31349
- * @throws {RequiredError}
31350
- */
31351
- apiV1SearchDealsPost: function (updateDealsSearchIndexCommand, options) {
31352
- return localVarFp.apiV1SearchDealsPost(updateDealsSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
31353
- },
31354
- /**
31355
- *
31356
- * @summary Update or Re-create doctors Azure Search Services Index
31357
- * @param {UpdateDoctorsSearchIndexCommand} [updateDoctorsSearchIndexCommand]
31358
- * @param {*} [options] Override http request option.
31359
- * @throws {RequiredError}
31360
- */
31361
- apiV1SearchDoctorsPost: function (updateDoctorsSearchIndexCommand, options) {
31362
- return localVarFp.apiV1SearchDoctorsPost(updateDoctorsSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
31363
- },
31364
- /**
31365
- *
31366
- * @summary Update or Re-create hospitals Azure Search Services Index
31367
- * @param {UpdateHospitalsSearchIndexCommand} [updateHospitalsSearchIndexCommand]
30969
+ * @summary RecreateIndex
30970
+ * @param {SearchIndexType} [searchIndexType]
30971
+ * @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
31368
30972
  * @param {*} [options] Override http request option.
31369
30973
  * @throws {RequiredError}
31370
30974
  */
31371
- apiV1SearchHospitalsPost: function (updateHospitalsSearchIndexCommand, options) {
31372
- return localVarFp.apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
31373
- },
31374
- /**
31375
- *
31376
- * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
31377
- * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
31378
- * @param {*} [options] Override http request option.
31379
- * @throws {RequiredError}
31380
- */
31381
- apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
31382
- return localVarFp.apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
31383
- },
31384
- /**
31385
- *
31386
- * @summary Update or Re-create specialties Azure Search Services Index
31387
- * @param {UpdateSpecialtiesSearchIndexCommand} [updateSpecialtiesSearchIndexCommand]
31388
- * @param {*} [options] Override http request option.
31389
- * @throws {RequiredError}
31390
- */
31391
- apiV1SearchSpecialtiesPost: function (updateSpecialtiesSearchIndexCommand, options) {
31392
- return localVarFp.apiV1SearchSpecialtiesPost(updateSpecialtiesSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
31393
- },
31394
- /**
31395
- *
31396
- * @summary Update or Re-create specialtyTypes Azure Search Services Index
31397
- * @param {UpdateSpecialtyTypesSearchIndexCommand} [updateSpecialtyTypesSearchIndexCommand]
31398
- * @param {*} [options] Override http request option.
31399
- * @throws {RequiredError}
31400
- */
31401
- apiV1SearchSpecialtytypesPost: function (updateSpecialtyTypesSearchIndexCommand, options) {
31402
- return localVarFp.apiV1SearchSpecialtytypesPost(updateSpecialtyTypesSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
30975
+ apiV1SearchRecreatePost: function (searchIndexType, updateSearchIndexCommand, options) {
30976
+ return localVarFp.apiV1SearchRecreatePost(searchIndexType, updateSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
31403
30977
  },
31404
30978
  };
31405
30979
  };
@@ -31416,75 +30990,16 @@ var SearchApi = /** @class */ (function (_super) {
31416
30990
  }
31417
30991
  /**
31418
30992
  *
31419
- * @summary Update or Re-create deals Azure Search Services Index
31420
- * @param {UpdateDealsSearchIndexCommand} [updateDealsSearchIndexCommand]
31421
- * @param {*} [options] Override http request option.
31422
- * @throws {RequiredError}
31423
- * @memberof SearchApi
31424
- */
31425
- SearchApi.prototype.apiV1SearchDealsPost = function (updateDealsSearchIndexCommand, options) {
31426
- var _this = this;
31427
- return exports.SearchApiFp(this.configuration).apiV1SearchDealsPost(updateDealsSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31428
- };
31429
- /**
31430
- *
31431
- * @summary Update or Re-create doctors Azure Search Services Index
31432
- * @param {UpdateDoctorsSearchIndexCommand} [updateDoctorsSearchIndexCommand]
31433
- * @param {*} [options] Override http request option.
31434
- * @throws {RequiredError}
31435
- * @memberof SearchApi
31436
- */
31437
- SearchApi.prototype.apiV1SearchDoctorsPost = function (updateDoctorsSearchIndexCommand, options) {
31438
- var _this = this;
31439
- return exports.SearchApiFp(this.configuration).apiV1SearchDoctorsPost(updateDoctorsSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31440
- };
31441
- /**
31442
- *
31443
- * @summary Update or Re-create hospitals Azure Search Services Index
31444
- * @param {UpdateHospitalsSearchIndexCommand} [updateHospitalsSearchIndexCommand]
31445
- * @param {*} [options] Override http request option.
31446
- * @throws {RequiredError}
31447
- * @memberof SearchApi
31448
- */
31449
- SearchApi.prototype.apiV1SearchHospitalsPost = function (updateHospitalsSearchIndexCommand, options) {
31450
- var _this = this;
31451
- return exports.SearchApiFp(this.configuration).apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31452
- };
31453
- /**
31454
- *
31455
- * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
31456
- * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
31457
- * @param {*} [options] Override http request option.
31458
- * @throws {RequiredError}
31459
- * @memberof SearchApi
31460
- */
31461
- SearchApi.prototype.apiV1SearchHospitalspecialtiesPost = function (updateHospitalSpecialtiesSearchIndexCommand, options) {
31462
- var _this = this;
31463
- return exports.SearchApiFp(this.configuration).apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31464
- };
31465
- /**
31466
- *
31467
- * @summary Update or Re-create specialties Azure Search Services Index
31468
- * @param {UpdateSpecialtiesSearchIndexCommand} [updateSpecialtiesSearchIndexCommand]
31469
- * @param {*} [options] Override http request option.
31470
- * @throws {RequiredError}
31471
- * @memberof SearchApi
31472
- */
31473
- SearchApi.prototype.apiV1SearchSpecialtiesPost = function (updateSpecialtiesSearchIndexCommand, options) {
31474
- var _this = this;
31475
- return exports.SearchApiFp(this.configuration).apiV1SearchSpecialtiesPost(updateSpecialtiesSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31476
- };
31477
- /**
31478
- *
31479
- * @summary Update or Re-create specialtyTypes Azure Search Services Index
31480
- * @param {UpdateSpecialtyTypesSearchIndexCommand} [updateSpecialtyTypesSearchIndexCommand]
30993
+ * @summary RecreateIndex
30994
+ * @param {SearchIndexType} [searchIndexType]
30995
+ * @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
31481
30996
  * @param {*} [options] Override http request option.
31482
30997
  * @throws {RequiredError}
31483
30998
  * @memberof SearchApi
31484
30999
  */
31485
- SearchApi.prototype.apiV1SearchSpecialtytypesPost = function (updateSpecialtyTypesSearchIndexCommand, options) {
31000
+ SearchApi.prototype.apiV1SearchRecreatePost = function (searchIndexType, updateSearchIndexCommand, options) {
31486
31001
  var _this = this;
31487
- return exports.SearchApiFp(this.configuration).apiV1SearchSpecialtytypesPost(updateSpecialtyTypesSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31002
+ return exports.SearchApiFp(this.configuration).apiV1SearchRecreatePost(searchIndexType, updateSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31488
31003
  };
31489
31004
  return SearchApi;
31490
31005
  }(base_1.BaseAPI));