ch-admin-api-client-typescript 4.0.1 → 4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/api.js CHANGED
@@ -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["Departments"] = "departments";
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
@@ -10552,13 +10572,14 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
10552
10572
  *
10553
10573
  * @summary Get all DealService.
10554
10574
  * @param {string} dealId
10575
+ * @param {string} [languageCode]
10555
10576
  * @param {number} [page]
10556
10577
  * @param {number} [limit]
10557
10578
  * @param {Date} [lastRetrieved]
10558
10579
  * @param {*} [options] Override http request option.
10559
10580
  * @throws {RequiredError}
10560
10581
  */
10561
- apiV1DealsDealIdServicesGet: function (dealId, page, limit, lastRetrieved, options) {
10582
+ apiV1DealsDealIdServicesGet: function (dealId, languageCode, page, limit, lastRetrieved, options) {
10562
10583
  if (options === void 0) { options = {}; }
10563
10584
  return __awaiter(_this, void 0, void 0, function () {
10564
10585
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -10583,6 +10604,9 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
10583
10604
  // authentication oauth2 required
10584
10605
  // oauth required
10585
10606
  _a.sent();
10607
+ if (languageCode !== undefined) {
10608
+ localVarQueryParameter['LanguageCode'] = languageCode;
10609
+ }
10586
10610
  if (page !== undefined) {
10587
10611
  localVarQueryParameter['page'] = page;
10588
10612
  }
@@ -10703,10 +10727,11 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
10703
10727
  * @summary Get DealService.
10704
10728
  * @param {string} dealId
10705
10729
  * @param {string} serviceId
10730
+ * @param {string} [languageCode]
10706
10731
  * @param {*} [options] Override http request option.
10707
10732
  * @throws {RequiredError}
10708
10733
  */
10709
- apiV1DealsDealIdServicesServiceIdGet: function (dealId, serviceId, options) {
10734
+ apiV1DealsDealIdServicesServiceIdGet: function (dealId, serviceId, languageCode, options) {
10710
10735
  if (options === void 0) { options = {}; }
10711
10736
  return __awaiter(_this, void 0, void 0, function () {
10712
10737
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -10734,6 +10759,9 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
10734
10759
  // authentication oauth2 required
10735
10760
  // oauth required
10736
10761
  _a.sent();
10762
+ if (languageCode !== undefined) {
10763
+ localVarQueryParameter['languageCode'] = languageCode;
10764
+ }
10737
10765
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10738
10766
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10739
10767
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -11338,18 +11366,19 @@ exports.DealsApiFp = function (configuration) {
11338
11366
  *
11339
11367
  * @summary Get all DealService.
11340
11368
  * @param {string} dealId
11369
+ * @param {string} [languageCode]
11341
11370
  * @param {number} [page]
11342
11371
  * @param {number} [limit]
11343
11372
  * @param {Date} [lastRetrieved]
11344
11373
  * @param {*} [options] Override http request option.
11345
11374
  * @throws {RequiredError}
11346
11375
  */
11347
- apiV1DealsDealIdServicesGet: function (dealId, page, limit, lastRetrieved, options) {
11376
+ apiV1DealsDealIdServicesGet: function (dealId, languageCode, page, limit, lastRetrieved, options) {
11348
11377
  return __awaiter(this, void 0, void 0, function () {
11349
11378
  var localVarAxiosArgs;
11350
11379
  return __generator(this, function (_a) {
11351
11380
  switch (_a.label) {
11352
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdServicesGet(dealId, page, limit, lastRetrieved, options)];
11381
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdServicesGet(dealId, languageCode, page, limit, lastRetrieved, options)];
11353
11382
  case 1:
11354
11383
  localVarAxiosArgs = _a.sent();
11355
11384
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -11404,15 +11433,16 @@ exports.DealsApiFp = function (configuration) {
11404
11433
  * @summary Get DealService.
11405
11434
  * @param {string} dealId
11406
11435
  * @param {string} serviceId
11436
+ * @param {string} [languageCode]
11407
11437
  * @param {*} [options] Override http request option.
11408
11438
  * @throws {RequiredError}
11409
11439
  */
11410
- apiV1DealsDealIdServicesServiceIdGet: function (dealId, serviceId, options) {
11440
+ apiV1DealsDealIdServicesServiceIdGet: function (dealId, serviceId, languageCode, options) {
11411
11441
  return __awaiter(this, void 0, void 0, function () {
11412
11442
  var localVarAxiosArgs;
11413
11443
  return __generator(this, function (_a) {
11414
11444
  switch (_a.label) {
11415
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdServicesServiceIdGet(dealId, serviceId, options)];
11445
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdServicesServiceIdGet(dealId, serviceId, languageCode, options)];
11416
11446
  case 1:
11417
11447
  localVarAxiosArgs = _a.sent();
11418
11448
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -11678,14 +11708,15 @@ exports.DealsApiFactory = function (configuration, basePath, axios) {
11678
11708
  *
11679
11709
  * @summary Get all DealService.
11680
11710
  * @param {string} dealId
11711
+ * @param {string} [languageCode]
11681
11712
  * @param {number} [page]
11682
11713
  * @param {number} [limit]
11683
11714
  * @param {Date} [lastRetrieved]
11684
11715
  * @param {*} [options] Override http request option.
11685
11716
  * @throws {RequiredError}
11686
11717
  */
11687
- apiV1DealsDealIdServicesGet: function (dealId, page, limit, lastRetrieved, options) {
11688
- return localVarFp.apiV1DealsDealIdServicesGet(dealId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
11718
+ apiV1DealsDealIdServicesGet: function (dealId, languageCode, page, limit, lastRetrieved, options) {
11719
+ return localVarFp.apiV1DealsDealIdServicesGet(dealId, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
11689
11720
  },
11690
11721
  /**
11691
11722
  *
@@ -11714,11 +11745,12 @@ exports.DealsApiFactory = function (configuration, basePath, axios) {
11714
11745
  * @summary Get DealService.
11715
11746
  * @param {string} dealId
11716
11747
  * @param {string} serviceId
11748
+ * @param {string} [languageCode]
11717
11749
  * @param {*} [options] Override http request option.
11718
11750
  * @throws {RequiredError}
11719
11751
  */
11720
- apiV1DealsDealIdServicesServiceIdGet: function (dealId, serviceId, options) {
11721
- return localVarFp.apiV1DealsDealIdServicesServiceIdGet(dealId, serviceId, options).then(function (request) { return request(axios, basePath); });
11752
+ apiV1DealsDealIdServicesServiceIdGet: function (dealId, serviceId, languageCode, options) {
11753
+ return localVarFp.apiV1DealsDealIdServicesServiceIdGet(dealId, serviceId, languageCode, options).then(function (request) { return request(axios, basePath); });
11722
11754
  },
11723
11755
  /**
11724
11756
  *
@@ -11948,6 +11980,7 @@ var DealsApi = /** @class */ (function (_super) {
11948
11980
  *
11949
11981
  * @summary Get all DealService.
11950
11982
  * @param {string} dealId
11983
+ * @param {string} [languageCode]
11951
11984
  * @param {number} [page]
11952
11985
  * @param {number} [limit]
11953
11986
  * @param {Date} [lastRetrieved]
@@ -11955,9 +11988,9 @@ var DealsApi = /** @class */ (function (_super) {
11955
11988
  * @throws {RequiredError}
11956
11989
  * @memberof DealsApi
11957
11990
  */
11958
- DealsApi.prototype.apiV1DealsDealIdServicesGet = function (dealId, page, limit, lastRetrieved, options) {
11991
+ DealsApi.prototype.apiV1DealsDealIdServicesGet = function (dealId, languageCode, page, limit, lastRetrieved, options) {
11959
11992
  var _this = this;
11960
- return exports.DealsApiFp(this.configuration).apiV1DealsDealIdServicesGet(dealId, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
11993
+ return exports.DealsApiFp(this.configuration).apiV1DealsDealIdServicesGet(dealId, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
11961
11994
  };
11962
11995
  /**
11963
11996
  *
@@ -11990,13 +12023,14 @@ var DealsApi = /** @class */ (function (_super) {
11990
12023
  * @summary Get DealService.
11991
12024
  * @param {string} dealId
11992
12025
  * @param {string} serviceId
12026
+ * @param {string} [languageCode]
11993
12027
  * @param {*} [options] Override http request option.
11994
12028
  * @throws {RequiredError}
11995
12029
  * @memberof DealsApi
11996
12030
  */
11997
- DealsApi.prototype.apiV1DealsDealIdServicesServiceIdGet = function (dealId, serviceId, options) {
12031
+ DealsApi.prototype.apiV1DealsDealIdServicesServiceIdGet = function (dealId, serviceId, languageCode, options) {
11998
12032
  var _this = this;
11999
- return exports.DealsApiFp(this.configuration).apiV1DealsDealIdServicesServiceIdGet(dealId, serviceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12033
+ return exports.DealsApiFp(this.configuration).apiV1DealsDealIdServicesServiceIdGet(dealId, serviceId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
12000
12034
  };
12001
12035
  /**
12002
12036
  *
@@ -21308,6 +21342,104 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21308
21342
  });
21309
21343
  });
21310
21344
  },
21345
+ /**
21346
+ *
21347
+ * @summary Delete HospitalSpecialty.
21348
+ * @param {string} hospitalId
21349
+ * @param {string} hospitalSpecialtyId
21350
+ * @param {*} [options] Override http request option.
21351
+ * @throws {RequiredError}
21352
+ */
21353
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete: function (hospitalId, hospitalSpecialtyId, options) {
21354
+ if (options === void 0) { options = {}; }
21355
+ return __awaiter(_this, void 0, void 0, function () {
21356
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
21357
+ return __generator(this, function (_a) {
21358
+ switch (_a.label) {
21359
+ case 0:
21360
+ // verify required parameter 'hospitalId' is not null or undefined
21361
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete', 'hospitalId', hospitalId);
21362
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
21363
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete', 'hospitalSpecialtyId', hospitalSpecialtyId);
21364
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}"
21365
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
21366
+ .replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
21367
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21368
+ if (configuration) {
21369
+ baseOptions = configuration.baseOptions;
21370
+ }
21371
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
21372
+ localVarHeaderParameter = {};
21373
+ localVarQueryParameter = {};
21374
+ // authentication oauth2 required
21375
+ // oauth required
21376
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
21377
+ case 1:
21378
+ // authentication oauth2 required
21379
+ // oauth required
21380
+ _a.sent();
21381
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
21382
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21383
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21384
+ return [2 /*return*/, {
21385
+ url: common_1.toPathString(localVarUrlObj),
21386
+ options: localVarRequestOptions,
21387
+ }];
21388
+ }
21389
+ });
21390
+ });
21391
+ },
21392
+ /**
21393
+ *
21394
+ * @summary Get HospitalSpecialty.
21395
+ * @param {string} hospitalId
21396
+ * @param {string} hospitalSpecialtyId
21397
+ * @param {string} [languageCode]
21398
+ * @param {*} [options] Override http request option.
21399
+ * @throws {RequiredError}
21400
+ */
21401
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet: function (hospitalId, hospitalSpecialtyId, languageCode, options) {
21402
+ if (options === void 0) { options = {}; }
21403
+ return __awaiter(_this, void 0, void 0, function () {
21404
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
21405
+ return __generator(this, function (_a) {
21406
+ switch (_a.label) {
21407
+ case 0:
21408
+ // verify required parameter 'hospitalId' is not null or undefined
21409
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet', 'hospitalId', hospitalId);
21410
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
21411
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId);
21412
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}"
21413
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
21414
+ .replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
21415
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21416
+ if (configuration) {
21417
+ baseOptions = configuration.baseOptions;
21418
+ }
21419
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
21420
+ localVarHeaderParameter = {};
21421
+ localVarQueryParameter = {};
21422
+ // authentication oauth2 required
21423
+ // oauth required
21424
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
21425
+ case 1:
21426
+ // authentication oauth2 required
21427
+ // oauth required
21428
+ _a.sent();
21429
+ if (languageCode !== undefined) {
21430
+ localVarQueryParameter['languageCode'] = languageCode;
21431
+ }
21432
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
21433
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21434
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21435
+ return [2 /*return*/, {
21436
+ url: common_1.toPathString(localVarUrlObj),
21437
+ options: localVarRequestOptions,
21438
+ }];
21439
+ }
21440
+ });
21441
+ });
21442
+ },
21311
21443
  /**
21312
21444
  *
21313
21445
  * @summary Get all HospitalServiceMedias.
@@ -21583,6 +21715,56 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21583
21715
  });
21584
21716
  });
21585
21717
  },
21718
+ /**
21719
+ *
21720
+ * @summary Update HospitalSpecialty.
21721
+ * @param {string} hospitalId
21722
+ * @param {string} hospitalSpecialtyId
21723
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
21724
+ * @param {*} [options] Override http request option.
21725
+ * @throws {RequiredError}
21726
+ */
21727
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut: function (hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options) {
21728
+ if (options === void 0) { options = {}; }
21729
+ return __awaiter(_this, void 0, void 0, function () {
21730
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
21731
+ return __generator(this, function (_a) {
21732
+ switch (_a.label) {
21733
+ case 0:
21734
+ // verify required parameter 'hospitalId' is not null or undefined
21735
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut', 'hospitalId', hospitalId);
21736
+ // verify required parameter 'hospitalSpecialtyId' is not null or undefined
21737
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut', 'hospitalSpecialtyId', hospitalSpecialtyId);
21738
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}"
21739
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
21740
+ .replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
21741
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21742
+ if (configuration) {
21743
+ baseOptions = configuration.baseOptions;
21744
+ }
21745
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
21746
+ localVarHeaderParameter = {};
21747
+ localVarQueryParameter = {};
21748
+ // authentication oauth2 required
21749
+ // oauth required
21750
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
21751
+ case 1:
21752
+ // authentication oauth2 required
21753
+ // oauth required
21754
+ _a.sent();
21755
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21756
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
21757
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21758
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21759
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration);
21760
+ return [2 /*return*/, {
21761
+ url: common_1.toPathString(localVarUrlObj),
21762
+ options: localVarRequestOptions,
21763
+ }];
21764
+ }
21765
+ });
21766
+ });
21767
+ },
21586
21768
  /**
21587
21769
  *
21588
21770
  * @summary Create HospitalSpecialty.
@@ -21787,13 +21969,25 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21787
21969
  },
21788
21970
  /**
21789
21971
  *
21790
- * @summary Delete HospitalSpecialty.
21972
+ * @summary Get all HospitalServices.
21791
21973
  * @param {string} hospitalId
21792
21974
  * @param {string} specialtyId
21975
+ * @param {string} [id]
21976
+ * @param {string} [name]
21977
+ * @param {string} [slug]
21978
+ * @param {string} [serviceCategoryId]
21979
+ * @param {MarketingType} [marketingType]
21980
+ * @param {Procedure} [procedure]
21981
+ * @param {Date} [created]
21982
+ * @param {boolean} [showHidden]
21983
+ * @param {string} [languageCode]
21984
+ * @param {number} [page]
21985
+ * @param {number} [limit]
21986
+ * @param {Date} [lastRetrieved]
21793
21987
  * @param {*} [options] Override http request option.
21794
21988
  * @throws {RequiredError}
21795
21989
  */
21796
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
21990
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet: function (hospitalId, specialtyId, id, name, slug, serviceCategoryId, marketingType, procedure, created, showHidden, languageCode, page, limit, lastRetrieved, options) {
21797
21991
  if (options === void 0) { options = {}; }
21798
21992
  return __awaiter(_this, void 0, void 0, function () {
21799
21993
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -21801,17 +21995,17 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21801
21995
  switch (_a.label) {
21802
21996
  case 0:
21803
21997
  // verify required parameter 'hospitalId' is not null or undefined
21804
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'hospitalId', hospitalId);
21998
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'hospitalId', hospitalId);
21805
21999
  // verify required parameter 'specialtyId' is not null or undefined
21806
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId);
21807
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
22000
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'specialtyId', specialtyId);
22001
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services"
21808
22002
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
21809
22003
  .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
21810
22004
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21811
22005
  if (configuration) {
21812
22006
  baseOptions = configuration.baseOptions;
21813
22007
  }
21814
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
22008
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
21815
22009
  localVarHeaderParameter = {};
21816
22010
  localVarQueryParameter = {};
21817
22011
  // authentication oauth2 required
@@ -21821,6 +22015,46 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21821
22015
  // authentication oauth2 required
21822
22016
  // oauth required
21823
22017
  _a.sent();
22018
+ if (id !== undefined) {
22019
+ localVarQueryParameter['Id'] = id;
22020
+ }
22021
+ if (name !== undefined) {
22022
+ localVarQueryParameter['Name'] = name;
22023
+ }
22024
+ if (slug !== undefined) {
22025
+ localVarQueryParameter['Slug'] = slug;
22026
+ }
22027
+ if (serviceCategoryId !== undefined) {
22028
+ localVarQueryParameter['ServiceCategoryId'] = serviceCategoryId;
22029
+ }
22030
+ if (marketingType !== undefined) {
22031
+ localVarQueryParameter['MarketingType'] = marketingType;
22032
+ }
22033
+ if (procedure !== undefined) {
22034
+ localVarQueryParameter['Procedure'] = procedure;
22035
+ }
22036
+ if (created !== undefined) {
22037
+ localVarQueryParameter['Created'] = (created instanceof Date) ?
22038
+ created.toISOString() :
22039
+ created;
22040
+ }
22041
+ if (showHidden !== undefined) {
22042
+ localVarQueryParameter['ShowHidden'] = showHidden;
22043
+ }
22044
+ if (languageCode !== undefined) {
22045
+ localVarQueryParameter['LanguageCode'] = languageCode;
22046
+ }
22047
+ if (page !== undefined) {
22048
+ localVarQueryParameter['page'] = page;
22049
+ }
22050
+ if (limit !== undefined) {
22051
+ localVarQueryParameter['limit'] = limit;
22052
+ }
22053
+ if (lastRetrieved !== undefined) {
22054
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
22055
+ lastRetrieved.toISOString() :
22056
+ lastRetrieved;
22057
+ }
21824
22058
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
21825
22059
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21826
22060
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -21834,14 +22068,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21834
22068
  },
21835
22069
  /**
21836
22070
  *
21837
- * @summary Get HospitalSpecialty.
22071
+ * @summary Create HospitalService.
21838
22072
  * @param {string} hospitalId
21839
22073
  * @param {string} specialtyId
21840
- * @param {string} [languageCode]
22074
+ * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
21841
22075
  * @param {*} [options] Override http request option.
21842
22076
  * @throws {RequiredError}
21843
22077
  */
21844
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, languageCode, options) {
22078
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost: function (hospitalId, specialtyId, createHospitalServiceCommand, options) {
21845
22079
  if (options === void 0) { options = {}; }
21846
22080
  return __awaiter(_this, void 0, void 0, function () {
21847
22081
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -21849,17 +22083,17 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21849
22083
  switch (_a.label) {
21850
22084
  case 0:
21851
22085
  // verify required parameter 'hospitalId' is not null or undefined
21852
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'hospitalId', hospitalId);
22086
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost', 'hospitalId', hospitalId);
21853
22087
  // verify required parameter 'specialtyId' is not null or undefined
21854
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'specialtyId', specialtyId);
21855
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
22088
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost', 'specialtyId', specialtyId);
22089
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services"
21856
22090
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
21857
22091
  .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
21858
22092
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21859
22093
  if (configuration) {
21860
22094
  baseOptions = configuration.baseOptions;
21861
22095
  }
21862
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
22096
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
21863
22097
  localVarHeaderParameter = {};
21864
22098
  localVarQueryParameter = {};
21865
22099
  // authentication oauth2 required
@@ -21869,12 +22103,11 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21869
22103
  // authentication oauth2 required
21870
22104
  // oauth required
21871
22105
  _a.sent();
21872
- if (languageCode !== undefined) {
21873
- localVarQueryParameter['languageCode'] = languageCode;
21874
- }
22106
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21875
22107
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
21876
22108
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21877
22109
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22110
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalServiceCommand, localVarRequestOptions, configuration);
21878
22111
  return [2 /*return*/, {
21879
22112
  url: common_1.toPathString(localVarUrlObj),
21880
22113
  options: localVarRequestOptions,
@@ -21885,14 +22118,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21885
22118
  },
21886
22119
  /**
21887
22120
  *
21888
- * @summary Update HospitalSpecialty.
21889
22121
  * @param {string} hospitalId
21890
22122
  * @param {string} specialtyId
21891
- * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
22123
+ * @param {string} serviceId
21892
22124
  * @param {*} [options] Override http request option.
21893
22125
  * @throws {RequiredError}
21894
22126
  */
21895
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
22127
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete: function (hospitalId, specialtyId, serviceId, options) {
21896
22128
  if (options === void 0) { options = {}; }
21897
22129
  return __awaiter(_this, void 0, void 0, function () {
21898
22130
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -21900,17 +22132,20 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21900
22132
  switch (_a.label) {
21901
22133
  case 0:
21902
22134
  // verify required parameter 'hospitalId' is not null or undefined
21903
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'hospitalId', hospitalId);
22135
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'hospitalId', hospitalId);
21904
22136
  // verify required parameter 'specialtyId' is not null or undefined
21905
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId);
21906
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
22137
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'specialtyId', specialtyId);
22138
+ // verify required parameter 'serviceId' is not null or undefined
22139
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'serviceId', serviceId);
22140
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}"
21907
22141
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
21908
- .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
22142
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
22143
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
21909
22144
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21910
22145
  if (configuration) {
21911
22146
  baseOptions = configuration.baseOptions;
21912
22147
  }
21913
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
22148
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
21914
22149
  localVarHeaderParameter = {};
21915
22150
  localVarQueryParameter = {};
21916
22151
  // authentication oauth2 required
@@ -21920,11 +22155,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21920
22155
  // authentication oauth2 required
21921
22156
  // oauth required
21922
22157
  _a.sent();
21923
- localVarHeaderParameter['Content-Type'] = 'application/json';
21924
22158
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
21925
22159
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21926
22160
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21927
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration);
21928
22161
  return [2 /*return*/, {
21929
22162
  url: common_1.toPathString(localVarUrlObj),
21930
22163
  options: localVarRequestOptions,
@@ -21935,208 +22168,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21935
22168
  },
21936
22169
  /**
21937
22170
  *
21938
- * @summary Get all HospitalServices.
21939
22171
  * @param {string} hospitalId
21940
22172
  * @param {string} specialtyId
21941
- * @param {string} [id]
21942
- * @param {string} [name]
21943
- * @param {string} [slug]
21944
- * @param {string} [serviceCategoryId]
21945
- * @param {MarketingType} [marketingType]
21946
- * @param {Procedure} [procedure]
21947
- * @param {Date} [created]
21948
- * @param {boolean} [showHidden]
21949
- * @param {string} [languageCode]
21950
- * @param {number} [page]
21951
- * @param {number} [limit]
21952
- * @param {Date} [lastRetrieved]
21953
- * @param {*} [options] Override http request option.
21954
- * @throws {RequiredError}
21955
- */
21956
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet: function (hospitalId, specialtyId, id, name, slug, serviceCategoryId, marketingType, procedure, created, showHidden, languageCode, page, limit, lastRetrieved, options) {
21957
- if (options === void 0) { options = {}; }
21958
- return __awaiter(_this, void 0, void 0, function () {
21959
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
21960
- return __generator(this, function (_a) {
21961
- switch (_a.label) {
21962
- case 0:
21963
- // verify required parameter 'hospitalId' is not null or undefined
21964
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'hospitalId', hospitalId);
21965
- // verify required parameter 'specialtyId' is not null or undefined
21966
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'specialtyId', specialtyId);
21967
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services"
21968
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
21969
- .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
21970
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21971
- if (configuration) {
21972
- baseOptions = configuration.baseOptions;
21973
- }
21974
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
21975
- localVarHeaderParameter = {};
21976
- localVarQueryParameter = {};
21977
- // authentication oauth2 required
21978
- // oauth required
21979
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
21980
- case 1:
21981
- // authentication oauth2 required
21982
- // oauth required
21983
- _a.sent();
21984
- if (id !== undefined) {
21985
- localVarQueryParameter['Id'] = id;
21986
- }
21987
- if (name !== undefined) {
21988
- localVarQueryParameter['Name'] = name;
21989
- }
21990
- if (slug !== undefined) {
21991
- localVarQueryParameter['Slug'] = slug;
21992
- }
21993
- if (serviceCategoryId !== undefined) {
21994
- localVarQueryParameter['ServiceCategoryId'] = serviceCategoryId;
21995
- }
21996
- if (marketingType !== undefined) {
21997
- localVarQueryParameter['MarketingType'] = marketingType;
21998
- }
21999
- if (procedure !== undefined) {
22000
- localVarQueryParameter['Procedure'] = procedure;
22001
- }
22002
- if (created !== undefined) {
22003
- localVarQueryParameter['Created'] = (created instanceof Date) ?
22004
- created.toISOString() :
22005
- created;
22006
- }
22007
- if (showHidden !== undefined) {
22008
- localVarQueryParameter['ShowHidden'] = showHidden;
22009
- }
22010
- if (languageCode !== undefined) {
22011
- localVarQueryParameter['LanguageCode'] = languageCode;
22012
- }
22013
- if (page !== undefined) {
22014
- localVarQueryParameter['page'] = page;
22015
- }
22016
- if (limit !== undefined) {
22017
- localVarQueryParameter['limit'] = limit;
22018
- }
22019
- if (lastRetrieved !== undefined) {
22020
- localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
22021
- lastRetrieved.toISOString() :
22022
- lastRetrieved;
22023
- }
22024
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
22025
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22026
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22027
- return [2 /*return*/, {
22028
- url: common_1.toPathString(localVarUrlObj),
22029
- options: localVarRequestOptions,
22030
- }];
22031
- }
22032
- });
22033
- });
22034
- },
22035
- /**
22036
- *
22037
- * @summary Create HospitalService.
22038
- * @param {string} hospitalId
22039
- * @param {string} specialtyId
22040
- * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
22041
- * @param {*} [options] Override http request option.
22042
- * @throws {RequiredError}
22043
- */
22044
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost: function (hospitalId, specialtyId, createHospitalServiceCommand, options) {
22045
- if (options === void 0) { options = {}; }
22046
- return __awaiter(_this, void 0, void 0, function () {
22047
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
22048
- return __generator(this, function (_a) {
22049
- switch (_a.label) {
22050
- case 0:
22051
- // verify required parameter 'hospitalId' is not null or undefined
22052
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost', 'hospitalId', hospitalId);
22053
- // verify required parameter 'specialtyId' is not null or undefined
22054
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost', 'specialtyId', specialtyId);
22055
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services"
22056
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
22057
- .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
22058
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
22059
- if (configuration) {
22060
- baseOptions = configuration.baseOptions;
22061
- }
22062
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
22063
- localVarHeaderParameter = {};
22064
- localVarQueryParameter = {};
22065
- // authentication oauth2 required
22066
- // oauth required
22067
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
22068
- case 1:
22069
- // authentication oauth2 required
22070
- // oauth required
22071
- _a.sent();
22072
- localVarHeaderParameter['Content-Type'] = 'application/json';
22073
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
22074
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22075
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22076
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalServiceCommand, localVarRequestOptions, configuration);
22077
- return [2 /*return*/, {
22078
- url: common_1.toPathString(localVarUrlObj),
22079
- options: localVarRequestOptions,
22080
- }];
22081
- }
22082
- });
22083
- });
22084
- },
22085
- /**
22086
- *
22087
- * @param {string} hospitalId
22088
- * @param {string} specialtyId
22089
- * @param {string} serviceId
22090
- * @param {*} [options] Override http request option.
22091
- * @throws {RequiredError}
22092
- */
22093
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete: function (hospitalId, specialtyId, serviceId, options) {
22094
- if (options === void 0) { options = {}; }
22095
- return __awaiter(_this, void 0, void 0, function () {
22096
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
22097
- return __generator(this, function (_a) {
22098
- switch (_a.label) {
22099
- case 0:
22100
- // verify required parameter 'hospitalId' is not null or undefined
22101
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'hospitalId', hospitalId);
22102
- // verify required parameter 'specialtyId' is not null or undefined
22103
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'specialtyId', specialtyId);
22104
- // verify required parameter 'serviceId' is not null or undefined
22105
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'serviceId', serviceId);
22106
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}"
22107
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
22108
- .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
22109
- .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
22110
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
22111
- if (configuration) {
22112
- baseOptions = configuration.baseOptions;
22113
- }
22114
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
22115
- localVarHeaderParameter = {};
22116
- localVarQueryParameter = {};
22117
- // authentication oauth2 required
22118
- // oauth required
22119
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
22120
- case 1:
22121
- // authentication oauth2 required
22122
- // oauth required
22123
- _a.sent();
22124
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
22125
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22126
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22127
- return [2 /*return*/, {
22128
- url: common_1.toPathString(localVarUrlObj),
22129
- options: localVarRequestOptions,
22130
- }];
22131
- }
22132
- });
22133
- });
22134
- },
22135
- /**
22136
- *
22137
- * @param {string} hospitalId
22138
- * @param {string} specialtyId
22139
- * @param {string} serviceId
22173
+ * @param {string} serviceId
22140
22174
  * @param {string} [languageCode]
22141
22175
  * @param {boolean} [returnDefaultValue]
22142
22176
  * @param {*} [options] Override http request option.
@@ -23923,6 +23957,49 @@ exports.HospitalsApiFp = function (configuration) {
23923
23957
  });
23924
23958
  });
23925
23959
  },
23960
+ /**
23961
+ *
23962
+ * @summary Delete HospitalSpecialty.
23963
+ * @param {string} hospitalId
23964
+ * @param {string} hospitalSpecialtyId
23965
+ * @param {*} [options] Override http request option.
23966
+ * @throws {RequiredError}
23967
+ */
23968
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete: function (hospitalId, hospitalSpecialtyId, options) {
23969
+ return __awaiter(this, void 0, void 0, function () {
23970
+ var localVarAxiosArgs;
23971
+ return __generator(this, function (_a) {
23972
+ switch (_a.label) {
23973
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId, hospitalSpecialtyId, options)];
23974
+ case 1:
23975
+ localVarAxiosArgs = _a.sent();
23976
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
23977
+ }
23978
+ });
23979
+ });
23980
+ },
23981
+ /**
23982
+ *
23983
+ * @summary Get HospitalSpecialty.
23984
+ * @param {string} hospitalId
23985
+ * @param {string} hospitalSpecialtyId
23986
+ * @param {string} [languageCode]
23987
+ * @param {*} [options] Override http request option.
23988
+ * @throws {RequiredError}
23989
+ */
23990
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet: function (hospitalId, hospitalSpecialtyId, languageCode, options) {
23991
+ return __awaiter(this, void 0, void 0, function () {
23992
+ var localVarAxiosArgs;
23993
+ return __generator(this, function (_a) {
23994
+ switch (_a.label) {
23995
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId, hospitalSpecialtyId, languageCode, options)];
23996
+ case 1:
23997
+ localVarAxiosArgs = _a.sent();
23998
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
23999
+ }
24000
+ });
24001
+ });
24002
+ },
23926
24003
  /**
23927
24004
  *
23928
24005
  * @summary Get all HospitalServiceMedias.
@@ -24038,6 +24115,28 @@ exports.HospitalsApiFp = function (configuration) {
24038
24115
  });
24039
24116
  });
24040
24117
  },
24118
+ /**
24119
+ *
24120
+ * @summary Update HospitalSpecialty.
24121
+ * @param {string} hospitalId
24122
+ * @param {string} hospitalSpecialtyId
24123
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
24124
+ * @param {*} [options] Override http request option.
24125
+ * @throws {RequiredError}
24126
+ */
24127
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut: function (hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options) {
24128
+ return __awaiter(this, void 0, void 0, function () {
24129
+ var localVarAxiosArgs;
24130
+ return __generator(this, function (_a) {
24131
+ switch (_a.label) {
24132
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options)];
24133
+ case 1:
24134
+ localVarAxiosArgs = _a.sent();
24135
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
24136
+ }
24137
+ });
24138
+ });
24139
+ },
24041
24140
  /**
24042
24141
  *
24043
24142
  * @summary Create HospitalSpecialty.
@@ -24118,72 +24217,7 @@ exports.HospitalsApiFp = function (configuration) {
24118
24217
  },
24119
24218
  /**
24120
24219
  *
24121
- * @summary Delete HospitalSpecialty.
24122
- * @param {string} hospitalId
24123
- * @param {string} specialtyId
24124
- * @param {*} [options] Override http request option.
24125
- * @throws {RequiredError}
24126
- */
24127
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
24128
- return __awaiter(this, void 0, void 0, function () {
24129
- var localVarAxiosArgs;
24130
- return __generator(this, function (_a) {
24131
- switch (_a.label) {
24132
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options)];
24133
- case 1:
24134
- localVarAxiosArgs = _a.sent();
24135
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
24136
- }
24137
- });
24138
- });
24139
- },
24140
- /**
24141
- *
24142
- * @summary Get HospitalSpecialty.
24143
- * @param {string} hospitalId
24144
- * @param {string} specialtyId
24145
- * @param {string} [languageCode]
24146
- * @param {*} [options] Override http request option.
24147
- * @throws {RequiredError}
24148
- */
24149
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, languageCode, options) {
24150
- return __awaiter(this, void 0, void 0, function () {
24151
- var localVarAxiosArgs;
24152
- return __generator(this, function (_a) {
24153
- switch (_a.label) {
24154
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, options)];
24155
- case 1:
24156
- localVarAxiosArgs = _a.sent();
24157
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
24158
- }
24159
- });
24160
- });
24161
- },
24162
- /**
24163
- *
24164
- * @summary Update HospitalSpecialty.
24165
- * @param {string} hospitalId
24166
- * @param {string} specialtyId
24167
- * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
24168
- * @param {*} [options] Override http request option.
24169
- * @throws {RequiredError}
24170
- */
24171
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
24172
- return __awaiter(this, void 0, void 0, function () {
24173
- var localVarAxiosArgs;
24174
- return __generator(this, function (_a) {
24175
- switch (_a.label) {
24176
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options)];
24177
- case 1:
24178
- localVarAxiosArgs = _a.sent();
24179
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
24180
- }
24181
- });
24182
- });
24183
- },
24184
- /**
24185
- *
24186
- * @summary Get all HospitalServices.
24220
+ * @summary Get all HospitalServices.
24187
24221
  * @param {string} hospitalId
24188
24222
  * @param {string} specialtyId
24189
24223
  * @param {string} [id]
@@ -25126,6 +25160,29 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
25126
25160
  apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, languageCode, showHidden, page, limit, lastRetrieved, options) {
25127
25161
  return localVarFp.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
25128
25162
  },
25163
+ /**
25164
+ *
25165
+ * @summary Delete HospitalSpecialty.
25166
+ * @param {string} hospitalId
25167
+ * @param {string} hospitalSpecialtyId
25168
+ * @param {*} [options] Override http request option.
25169
+ * @throws {RequiredError}
25170
+ */
25171
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete: function (hospitalId, hospitalSpecialtyId, options) {
25172
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId, hospitalSpecialtyId, options).then(function (request) { return request(axios, basePath); });
25173
+ },
25174
+ /**
25175
+ *
25176
+ * @summary Get HospitalSpecialty.
25177
+ * @param {string} hospitalId
25178
+ * @param {string} hospitalSpecialtyId
25179
+ * @param {string} [languageCode]
25180
+ * @param {*} [options] Override http request option.
25181
+ * @throws {RequiredError}
25182
+ */
25183
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet: function (hospitalId, hospitalSpecialtyId, languageCode, options) {
25184
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId, hospitalSpecialtyId, languageCode, options).then(function (request) { return request(axios, basePath); });
25185
+ },
25129
25186
  /**
25130
25187
  *
25131
25188
  * @summary Get all HospitalServiceMedias.
@@ -25191,6 +25248,18 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
25191
25248
  apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: function (hospitalId, hospitalSpecialtyId, createMediaCommand, options) {
25192
25249
  return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
25193
25250
  },
25251
+ /**
25252
+ *
25253
+ * @summary Update HospitalSpecialty.
25254
+ * @param {string} hospitalId
25255
+ * @param {string} hospitalSpecialtyId
25256
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
25257
+ * @param {*} [options] Override http request option.
25258
+ * @throws {RequiredError}
25259
+ */
25260
+ apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut: function (hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options) {
25261
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
25262
+ },
25194
25263
  /**
25195
25264
  *
25196
25265
  * @summary Create HospitalSpecialty.
@@ -25239,41 +25308,6 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
25239
25308
  apiV1HospitalsHospitalIdSpecialtiesSlugGet: function (hospitalId, slug, languageCode, returnDefaultValue, includeServices, options) {
25240
25309
  return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSlugGet(hospitalId, slug, languageCode, returnDefaultValue, includeServices, options).then(function (request) { return request(axios, basePath); });
25241
25310
  },
25242
- /**
25243
- *
25244
- * @summary Delete HospitalSpecialty.
25245
- * @param {string} hospitalId
25246
- * @param {string} specialtyId
25247
- * @param {*} [options] Override http request option.
25248
- * @throws {RequiredError}
25249
- */
25250
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
25251
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options).then(function (request) { return request(axios, basePath); });
25252
- },
25253
- /**
25254
- *
25255
- * @summary Get HospitalSpecialty.
25256
- * @param {string} hospitalId
25257
- * @param {string} specialtyId
25258
- * @param {string} [languageCode]
25259
- * @param {*} [options] Override http request option.
25260
- * @throws {RequiredError}
25261
- */
25262
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, languageCode, options) {
25263
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, options).then(function (request) { return request(axios, basePath); });
25264
- },
25265
- /**
25266
- *
25267
- * @summary Update HospitalSpecialty.
25268
- * @param {string} hospitalId
25269
- * @param {string} specialtyId
25270
- * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
25271
- * @param {*} [options] Override http request option.
25272
- * @throws {RequiredError}
25273
- */
25274
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
25275
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
25276
- },
25277
25311
  /**
25278
25312
  *
25279
25313
  * @summary Get all HospitalServices.
@@ -26109,6 +26143,33 @@ var HospitalsApi = /** @class */ (function (_super) {
26109
26143
  var _this = this;
26110
26144
  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); });
26111
26145
  };
26146
+ /**
26147
+ *
26148
+ * @summary Delete HospitalSpecialty.
26149
+ * @param {string} hospitalId
26150
+ * @param {string} hospitalSpecialtyId
26151
+ * @param {*} [options] Override http request option.
26152
+ * @throws {RequiredError}
26153
+ * @memberof HospitalsApi
26154
+ */
26155
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete = function (hospitalId, hospitalSpecialtyId, options) {
26156
+ var _this = this;
26157
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId, hospitalSpecialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
26158
+ };
26159
+ /**
26160
+ *
26161
+ * @summary Get HospitalSpecialty.
26162
+ * @param {string} hospitalId
26163
+ * @param {string} hospitalSpecialtyId
26164
+ * @param {string} [languageCode]
26165
+ * @param {*} [options] Override http request option.
26166
+ * @throws {RequiredError}
26167
+ * @memberof HospitalsApi
26168
+ */
26169
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet = function (hospitalId, hospitalSpecialtyId, languageCode, options) {
26170
+ var _this = this;
26171
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId, hospitalSpecialtyId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
26172
+ };
26112
26173
  /**
26113
26174
  *
26114
26175
  * @summary Get all HospitalServiceMedias.
@@ -26184,6 +26245,20 @@ var HospitalsApi = /** @class */ (function (_super) {
26184
26245
  var _this = this;
26185
26246
  return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
26186
26247
  };
26248
+ /**
26249
+ *
26250
+ * @summary Update HospitalSpecialty.
26251
+ * @param {string} hospitalId
26252
+ * @param {string} hospitalSpecialtyId
26253
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
26254
+ * @param {*} [options] Override http request option.
26255
+ * @throws {RequiredError}
26256
+ * @memberof HospitalsApi
26257
+ */
26258
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut = function (hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options) {
26259
+ var _this = this;
26260
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
26261
+ };
26187
26262
  /**
26188
26263
  *
26189
26264
  * @summary Create HospitalSpecialty.
@@ -26238,47 +26313,6 @@ var HospitalsApi = /** @class */ (function (_super) {
26238
26313
  var _this = this;
26239
26314
  return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSlugGet(hospitalId, slug, languageCode, returnDefaultValue, includeServices, options).then(function (request) { return request(_this.axios, _this.basePath); });
26240
26315
  };
26241
- /**
26242
- *
26243
- * @summary Delete HospitalSpecialty.
26244
- * @param {string} hospitalId
26245
- * @param {string} specialtyId
26246
- * @param {*} [options] Override http request option.
26247
- * @throws {RequiredError}
26248
- * @memberof HospitalsApi
26249
- */
26250
- HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete = function (hospitalId, specialtyId, options) {
26251
- var _this = this;
26252
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
26253
- };
26254
- /**
26255
- *
26256
- * @summary Get HospitalSpecialty.
26257
- * @param {string} hospitalId
26258
- * @param {string} specialtyId
26259
- * @param {string} [languageCode]
26260
- * @param {*} [options] Override http request option.
26261
- * @throws {RequiredError}
26262
- * @memberof HospitalsApi
26263
- */
26264
- HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet = function (hospitalId, specialtyId, languageCode, options) {
26265
- var _this = this;
26266
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
26267
- };
26268
- /**
26269
- *
26270
- * @summary Update HospitalSpecialty.
26271
- * @param {string} hospitalId
26272
- * @param {string} specialtyId
26273
- * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
26274
- * @param {*} [options] Override http request option.
26275
- * @throws {RequiredError}
26276
- * @memberof HospitalsApi
26277
- */
26278
- HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut = function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
26279
- var _this = this;
26280
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
26281
- };
26282
26316
  /**
26283
26317
  *
26284
26318
  * @summary Get all HospitalServices.
@@ -30861,19 +30895,20 @@ exports.SearchApiAxiosParamCreator = function (configuration) {
30861
30895
  return {
30862
30896
  /**
30863
30897
  *
30864
- * @summary Update or Re-create deals Azure Search Services Index
30865
- * @param {UpdateDealsSearchIndexCommand} [updateDealsSearchIndexCommand]
30898
+ * @summary RecreateIndex
30899
+ * @param {SearchIndexType} [searchIndexType]
30900
+ * @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
30866
30901
  * @param {*} [options] Override http request option.
30867
30902
  * @throws {RequiredError}
30868
30903
  */
30869
- apiV1SearchDealsPost: function (updateDealsSearchIndexCommand, options) {
30904
+ apiV1SearchRecreatePost: function (searchIndexType, updateSearchIndexCommand, options) {
30870
30905
  if (options === void 0) { options = {}; }
30871
30906
  return __awaiter(_this, void 0, void 0, function () {
30872
30907
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
30873
30908
  return __generator(this, function (_a) {
30874
30909
  switch (_a.label) {
30875
30910
  case 0:
30876
- localVarPath = "/api/v1/search/deals";
30911
+ localVarPath = "/api/v1/search/recreate";
30877
30912
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
30878
30913
  if (configuration) {
30879
30914
  baseOptions = configuration.baseOptions;
@@ -30888,11 +30923,14 @@ exports.SearchApiAxiosParamCreator = function (configuration) {
30888
30923
  // authentication oauth2 required
30889
30924
  // oauth required
30890
30925
  _a.sent();
30926
+ if (searchIndexType !== undefined) {
30927
+ localVarQueryParameter['searchIndexType'] = searchIndexType;
30928
+ }
30891
30929
  localVarHeaderParameter['Content-Type'] = 'application/json';
30892
30930
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
30893
30931
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30894
30932
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
30895
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateDealsSearchIndexCommand, localVarRequestOptions, configuration);
30933
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateSearchIndexCommand, localVarRequestOptions, configuration);
30896
30934
  return [2 /*return*/, {
30897
30935
  url: common_1.toPathString(localVarUrlObj),
30898
30936
  options: localVarRequestOptions,
@@ -30901,413 +30939,55 @@ exports.SearchApiAxiosParamCreator = function (configuration) {
30901
30939
  });
30902
30940
  });
30903
30941
  },
30942
+ };
30943
+ };
30944
+ /**
30945
+ * SearchApi - functional programming interface
30946
+ * @export
30947
+ */
30948
+ exports.SearchApiFp = function (configuration) {
30949
+ var localVarAxiosParamCreator = exports.SearchApiAxiosParamCreator(configuration);
30950
+ return {
30904
30951
  /**
30905
30952
  *
30906
- * @summary Update or Re-create doctors Azure Search Services Index
30907
- * @param {UpdateDoctorsSearchIndexCommand} [updateDoctorsSearchIndexCommand]
30953
+ * @summary RecreateIndex
30954
+ * @param {SearchIndexType} [searchIndexType]
30955
+ * @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
30908
30956
  * @param {*} [options] Override http request option.
30909
30957
  * @throws {RequiredError}
30910
30958
  */
30911
- apiV1SearchDoctorsPost: function (updateDoctorsSearchIndexCommand, options) {
30912
- if (options === void 0) { options = {}; }
30913
- return __awaiter(_this, void 0, void 0, function () {
30914
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
30959
+ apiV1SearchRecreatePost: function (searchIndexType, updateSearchIndexCommand, options) {
30960
+ return __awaiter(this, void 0, void 0, function () {
30961
+ var localVarAxiosArgs;
30915
30962
  return __generator(this, function (_a) {
30916
30963
  switch (_a.label) {
30917
- case 0:
30918
- localVarPath = "/api/v1/search/doctors";
30919
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
30920
- if (configuration) {
30921
- baseOptions = configuration.baseOptions;
30922
- }
30923
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
30924
- localVarHeaderParameter = {};
30925
- localVarQueryParameter = {};
30926
- // authentication oauth2 required
30927
- // oauth required
30928
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
30964
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchRecreatePost(searchIndexType, updateSearchIndexCommand, options)];
30929
30965
  case 1:
30930
- // authentication oauth2 required
30931
- // oauth required
30932
- _a.sent();
30933
- localVarHeaderParameter['Content-Type'] = 'application/json';
30934
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
30935
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30936
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
30937
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateDoctorsSearchIndexCommand, localVarRequestOptions, configuration);
30938
- return [2 /*return*/, {
30939
- url: common_1.toPathString(localVarUrlObj),
30940
- options: localVarRequestOptions,
30941
- }];
30966
+ localVarAxiosArgs = _a.sent();
30967
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
30942
30968
  }
30943
30969
  });
30944
30970
  });
30945
30971
  },
30972
+ };
30973
+ };
30974
+ /**
30975
+ * SearchApi - factory interface
30976
+ * @export
30977
+ */
30978
+ exports.SearchApiFactory = function (configuration, basePath, axios) {
30979
+ var localVarFp = exports.SearchApiFp(configuration);
30980
+ return {
30946
30981
  /**
30947
30982
  *
30948
- * @summary Update or Re-create hospitals Azure Search Services Index
30949
- * @param {UpdateHospitalsSearchIndexCommand} [updateHospitalsSearchIndexCommand]
30983
+ * @summary RecreateIndex
30984
+ * @param {SearchIndexType} [searchIndexType]
30985
+ * @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
30950
30986
  * @param {*} [options] Override http request option.
30951
30987
  * @throws {RequiredError}
30952
30988
  */
30953
- apiV1SearchHospitalsPost: function (updateHospitalsSearchIndexCommand, options) {
30954
- if (options === void 0) { options = {}; }
30955
- return __awaiter(_this, void 0, void 0, function () {
30956
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
30957
- return __generator(this, function (_a) {
30958
- switch (_a.label) {
30959
- case 0:
30960
- localVarPath = "/api/v1/search/hospitals";
30961
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
30962
- if (configuration) {
30963
- baseOptions = configuration.baseOptions;
30964
- }
30965
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
30966
- localVarHeaderParameter = {};
30967
- localVarQueryParameter = {};
30968
- // authentication oauth2 required
30969
- // oauth required
30970
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
30971
- case 1:
30972
- // authentication oauth2 required
30973
- // oauth required
30974
- _a.sent();
30975
- localVarHeaderParameter['Content-Type'] = 'application/json';
30976
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
30977
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30978
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
30979
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalsSearchIndexCommand, localVarRequestOptions, configuration);
30980
- return [2 /*return*/, {
30981
- url: common_1.toPathString(localVarUrlObj),
30982
- options: localVarRequestOptions,
30983
- }];
30984
- }
30985
- });
30986
- });
30987
- },
30988
- /**
30989
- *
30990
- * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
30991
- * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
30992
- * @param {*} [options] Override http request option.
30993
- * @throws {RequiredError}
30994
- */
30995
- apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
30996
- if (options === void 0) { options = {}; }
30997
- return __awaiter(_this, void 0, void 0, function () {
30998
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
30999
- return __generator(this, function (_a) {
31000
- switch (_a.label) {
31001
- case 0:
31002
- localVarPath = "/api/v1/search/hospitalspecialties";
31003
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
31004
- if (configuration) {
31005
- baseOptions = configuration.baseOptions;
31006
- }
31007
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
31008
- localVarHeaderParameter = {};
31009
- localVarQueryParameter = {};
31010
- // authentication oauth2 required
31011
- // oauth required
31012
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
31013
- case 1:
31014
- // authentication oauth2 required
31015
- // oauth required
31016
- _a.sent();
31017
- localVarHeaderParameter['Content-Type'] = 'application/json';
31018
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
31019
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31020
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31021
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtiesSearchIndexCommand, localVarRequestOptions, configuration);
31022
- return [2 /*return*/, {
31023
- url: common_1.toPathString(localVarUrlObj),
31024
- options: localVarRequestOptions,
31025
- }];
31026
- }
31027
- });
31028
- });
31029
- },
31030
- /**
31031
- *
31032
- * @summary Update or Re-create specialties Azure Search Services Index
31033
- * @param {UpdateSpecialtiesSearchIndexCommand} [updateSpecialtiesSearchIndexCommand]
31034
- * @param {*} [options] Override http request option.
31035
- * @throws {RequiredError}
31036
- */
31037
- apiV1SearchSpecialtiesPost: function (updateSpecialtiesSearchIndexCommand, options) {
31038
- if (options === void 0) { options = {}; }
31039
- return __awaiter(_this, void 0, void 0, function () {
31040
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
31041
- return __generator(this, function (_a) {
31042
- switch (_a.label) {
31043
- case 0:
31044
- localVarPath = "/api/v1/search/specialties";
31045
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
31046
- if (configuration) {
31047
- baseOptions = configuration.baseOptions;
31048
- }
31049
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
31050
- localVarHeaderParameter = {};
31051
- localVarQueryParameter = {};
31052
- // authentication oauth2 required
31053
- // oauth required
31054
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
31055
- case 1:
31056
- // authentication oauth2 required
31057
- // oauth required
31058
- _a.sent();
31059
- localVarHeaderParameter['Content-Type'] = 'application/json';
31060
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
31061
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31062
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31063
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateSpecialtiesSearchIndexCommand, localVarRequestOptions, configuration);
31064
- return [2 /*return*/, {
31065
- url: common_1.toPathString(localVarUrlObj),
31066
- options: localVarRequestOptions,
31067
- }];
31068
- }
31069
- });
31070
- });
31071
- },
31072
- /**
31073
- *
31074
- * @summary Update or Re-create specialtyTypes Azure Search Services Index
31075
- * @param {UpdateSpecialtyTypesSearchIndexCommand} [updateSpecialtyTypesSearchIndexCommand]
31076
- * @param {*} [options] Override http request option.
31077
- * @throws {RequiredError}
31078
- */
31079
- apiV1SearchSpecialtytypesPost: function (updateSpecialtyTypesSearchIndexCommand, options) {
31080
- if (options === void 0) { options = {}; }
31081
- return __awaiter(_this, void 0, void 0, function () {
31082
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
31083
- return __generator(this, function (_a) {
31084
- switch (_a.label) {
31085
- case 0:
31086
- localVarPath = "/api/v1/search/specialtytypes";
31087
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
31088
- if (configuration) {
31089
- baseOptions = configuration.baseOptions;
31090
- }
31091
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
31092
- localVarHeaderParameter = {};
31093
- localVarQueryParameter = {};
31094
- // authentication oauth2 required
31095
- // oauth required
31096
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
31097
- case 1:
31098
- // authentication oauth2 required
31099
- // oauth required
31100
- _a.sent();
31101
- localVarHeaderParameter['Content-Type'] = 'application/json';
31102
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
31103
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31104
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31105
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateSpecialtyTypesSearchIndexCommand, localVarRequestOptions, configuration);
31106
- return [2 /*return*/, {
31107
- url: common_1.toPathString(localVarUrlObj),
31108
- options: localVarRequestOptions,
31109
- }];
31110
- }
31111
- });
31112
- });
31113
- },
31114
- };
31115
- };
31116
- /**
31117
- * SearchApi - functional programming interface
31118
- * @export
31119
- */
31120
- exports.SearchApiFp = function (configuration) {
31121
- var localVarAxiosParamCreator = exports.SearchApiAxiosParamCreator(configuration);
31122
- return {
31123
- /**
31124
- *
31125
- * @summary Update or Re-create deals Azure Search Services Index
31126
- * @param {UpdateDealsSearchIndexCommand} [updateDealsSearchIndexCommand]
31127
- * @param {*} [options] Override http request option.
31128
- * @throws {RequiredError}
31129
- */
31130
- apiV1SearchDealsPost: function (updateDealsSearchIndexCommand, options) {
31131
- return __awaiter(this, void 0, void 0, function () {
31132
- var localVarAxiosArgs;
31133
- return __generator(this, function (_a) {
31134
- switch (_a.label) {
31135
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchDealsPost(updateDealsSearchIndexCommand, options)];
31136
- case 1:
31137
- localVarAxiosArgs = _a.sent();
31138
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
31139
- }
31140
- });
31141
- });
31142
- },
31143
- /**
31144
- *
31145
- * @summary Update or Re-create doctors Azure Search Services Index
31146
- * @param {UpdateDoctorsSearchIndexCommand} [updateDoctorsSearchIndexCommand]
31147
- * @param {*} [options] Override http request option.
31148
- * @throws {RequiredError}
31149
- */
31150
- apiV1SearchDoctorsPost: function (updateDoctorsSearchIndexCommand, options) {
31151
- return __awaiter(this, void 0, void 0, function () {
31152
- var localVarAxiosArgs;
31153
- return __generator(this, function (_a) {
31154
- switch (_a.label) {
31155
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchDoctorsPost(updateDoctorsSearchIndexCommand, options)];
31156
- case 1:
31157
- localVarAxiosArgs = _a.sent();
31158
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
31159
- }
31160
- });
31161
- });
31162
- },
31163
- /**
31164
- *
31165
- * @summary Update or Re-create hospitals Azure Search Services Index
31166
- * @param {UpdateHospitalsSearchIndexCommand} [updateHospitalsSearchIndexCommand]
31167
- * @param {*} [options] Override http request option.
31168
- * @throws {RequiredError}
31169
- */
31170
- apiV1SearchHospitalsPost: function (updateHospitalsSearchIndexCommand, options) {
31171
- return __awaiter(this, void 0, void 0, function () {
31172
- var localVarAxiosArgs;
31173
- return __generator(this, function (_a) {
31174
- switch (_a.label) {
31175
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options)];
31176
- case 1:
31177
- localVarAxiosArgs = _a.sent();
31178
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
31179
- }
31180
- });
31181
- });
31182
- },
31183
- /**
31184
- *
31185
- * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
31186
- * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
31187
- * @param {*} [options] Override http request option.
31188
- * @throws {RequiredError}
31189
- */
31190
- apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
31191
- return __awaiter(this, void 0, void 0, function () {
31192
- var localVarAxiosArgs;
31193
- return __generator(this, function (_a) {
31194
- switch (_a.label) {
31195
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options)];
31196
- case 1:
31197
- localVarAxiosArgs = _a.sent();
31198
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
31199
- }
31200
- });
31201
- });
31202
- },
31203
- /**
31204
- *
31205
- * @summary Update or Re-create specialties Azure Search Services Index
31206
- * @param {UpdateSpecialtiesSearchIndexCommand} [updateSpecialtiesSearchIndexCommand]
31207
- * @param {*} [options] Override http request option.
31208
- * @throws {RequiredError}
31209
- */
31210
- apiV1SearchSpecialtiesPost: function (updateSpecialtiesSearchIndexCommand, options) {
31211
- return __awaiter(this, void 0, void 0, function () {
31212
- var localVarAxiosArgs;
31213
- return __generator(this, function (_a) {
31214
- switch (_a.label) {
31215
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchSpecialtiesPost(updateSpecialtiesSearchIndexCommand, options)];
31216
- case 1:
31217
- localVarAxiosArgs = _a.sent();
31218
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
31219
- }
31220
- });
31221
- });
31222
- },
31223
- /**
31224
- *
31225
- * @summary Update or Re-create specialtyTypes Azure Search Services Index
31226
- * @param {UpdateSpecialtyTypesSearchIndexCommand} [updateSpecialtyTypesSearchIndexCommand]
31227
- * @param {*} [options] Override http request option.
31228
- * @throws {RequiredError}
31229
- */
31230
- apiV1SearchSpecialtytypesPost: function (updateSpecialtyTypesSearchIndexCommand, options) {
31231
- return __awaiter(this, void 0, void 0, function () {
31232
- var localVarAxiosArgs;
31233
- return __generator(this, function (_a) {
31234
- switch (_a.label) {
31235
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchSpecialtytypesPost(updateSpecialtyTypesSearchIndexCommand, options)];
31236
- case 1:
31237
- localVarAxiosArgs = _a.sent();
31238
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
31239
- }
31240
- });
31241
- });
31242
- },
31243
- };
31244
- };
31245
- /**
31246
- * SearchApi - factory interface
31247
- * @export
31248
- */
31249
- exports.SearchApiFactory = function (configuration, basePath, axios) {
31250
- var localVarFp = exports.SearchApiFp(configuration);
31251
- return {
31252
- /**
31253
- *
31254
- * @summary Update or Re-create deals Azure Search Services Index
31255
- * @param {UpdateDealsSearchIndexCommand} [updateDealsSearchIndexCommand]
31256
- * @param {*} [options] Override http request option.
31257
- * @throws {RequiredError}
31258
- */
31259
- apiV1SearchDealsPost: function (updateDealsSearchIndexCommand, options) {
31260
- return localVarFp.apiV1SearchDealsPost(updateDealsSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
31261
- },
31262
- /**
31263
- *
31264
- * @summary Update or Re-create doctors Azure Search Services Index
31265
- * @param {UpdateDoctorsSearchIndexCommand} [updateDoctorsSearchIndexCommand]
31266
- * @param {*} [options] Override http request option.
31267
- * @throws {RequiredError}
31268
- */
31269
- apiV1SearchDoctorsPost: function (updateDoctorsSearchIndexCommand, options) {
31270
- return localVarFp.apiV1SearchDoctorsPost(updateDoctorsSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
31271
- },
31272
- /**
31273
- *
31274
- * @summary Update or Re-create hospitals Azure Search Services Index
31275
- * @param {UpdateHospitalsSearchIndexCommand} [updateHospitalsSearchIndexCommand]
31276
- * @param {*} [options] Override http request option.
31277
- * @throws {RequiredError}
31278
- */
31279
- apiV1SearchHospitalsPost: function (updateHospitalsSearchIndexCommand, options) {
31280
- return localVarFp.apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
31281
- },
31282
- /**
31283
- *
31284
- * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
31285
- * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
31286
- * @param {*} [options] Override http request option.
31287
- * @throws {RequiredError}
31288
- */
31289
- apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
31290
- return localVarFp.apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
31291
- },
31292
- /**
31293
- *
31294
- * @summary Update or Re-create specialties Azure Search Services Index
31295
- * @param {UpdateSpecialtiesSearchIndexCommand} [updateSpecialtiesSearchIndexCommand]
31296
- * @param {*} [options] Override http request option.
31297
- * @throws {RequiredError}
31298
- */
31299
- apiV1SearchSpecialtiesPost: function (updateSpecialtiesSearchIndexCommand, options) {
31300
- return localVarFp.apiV1SearchSpecialtiesPost(updateSpecialtiesSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
31301
- },
31302
- /**
31303
- *
31304
- * @summary Update or Re-create specialtyTypes Azure Search Services Index
31305
- * @param {UpdateSpecialtyTypesSearchIndexCommand} [updateSpecialtyTypesSearchIndexCommand]
31306
- * @param {*} [options] Override http request option.
31307
- * @throws {RequiredError}
31308
- */
31309
- apiV1SearchSpecialtytypesPost: function (updateSpecialtyTypesSearchIndexCommand, options) {
31310
- return localVarFp.apiV1SearchSpecialtytypesPost(updateSpecialtyTypesSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
30989
+ apiV1SearchRecreatePost: function (searchIndexType, updateSearchIndexCommand, options) {
30990
+ return localVarFp.apiV1SearchRecreatePost(searchIndexType, updateSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
31311
30991
  },
31312
30992
  };
31313
30993
  };
@@ -31324,75 +31004,16 @@ var SearchApi = /** @class */ (function (_super) {
31324
31004
  }
31325
31005
  /**
31326
31006
  *
31327
- * @summary Update or Re-create deals Azure Search Services Index
31328
- * @param {UpdateDealsSearchIndexCommand} [updateDealsSearchIndexCommand]
31329
- * @param {*} [options] Override http request option.
31330
- * @throws {RequiredError}
31331
- * @memberof SearchApi
31332
- */
31333
- SearchApi.prototype.apiV1SearchDealsPost = function (updateDealsSearchIndexCommand, options) {
31334
- var _this = this;
31335
- return exports.SearchApiFp(this.configuration).apiV1SearchDealsPost(updateDealsSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31336
- };
31337
- /**
31338
- *
31339
- * @summary Update or Re-create doctors Azure Search Services Index
31340
- * @param {UpdateDoctorsSearchIndexCommand} [updateDoctorsSearchIndexCommand]
31341
- * @param {*} [options] Override http request option.
31342
- * @throws {RequiredError}
31343
- * @memberof SearchApi
31344
- */
31345
- SearchApi.prototype.apiV1SearchDoctorsPost = function (updateDoctorsSearchIndexCommand, options) {
31346
- var _this = this;
31347
- return exports.SearchApiFp(this.configuration).apiV1SearchDoctorsPost(updateDoctorsSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31348
- };
31349
- /**
31350
- *
31351
- * @summary Update or Re-create hospitals Azure Search Services Index
31352
- * @param {UpdateHospitalsSearchIndexCommand} [updateHospitalsSearchIndexCommand]
31353
- * @param {*} [options] Override http request option.
31354
- * @throws {RequiredError}
31355
- * @memberof SearchApi
31356
- */
31357
- SearchApi.prototype.apiV1SearchHospitalsPost = function (updateHospitalsSearchIndexCommand, options) {
31358
- var _this = this;
31359
- return exports.SearchApiFp(this.configuration).apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31360
- };
31361
- /**
31362
- *
31363
- * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
31364
- * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
31365
- * @param {*} [options] Override http request option.
31366
- * @throws {RequiredError}
31367
- * @memberof SearchApi
31368
- */
31369
- SearchApi.prototype.apiV1SearchHospitalspecialtiesPost = function (updateHospitalSpecialtiesSearchIndexCommand, options) {
31370
- var _this = this;
31371
- return exports.SearchApiFp(this.configuration).apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31372
- };
31373
- /**
31374
- *
31375
- * @summary Update or Re-create specialties Azure Search Services Index
31376
- * @param {UpdateSpecialtiesSearchIndexCommand} [updateSpecialtiesSearchIndexCommand]
31377
- * @param {*} [options] Override http request option.
31378
- * @throws {RequiredError}
31379
- * @memberof SearchApi
31380
- */
31381
- SearchApi.prototype.apiV1SearchSpecialtiesPost = function (updateSpecialtiesSearchIndexCommand, options) {
31382
- var _this = this;
31383
- return exports.SearchApiFp(this.configuration).apiV1SearchSpecialtiesPost(updateSpecialtiesSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31384
- };
31385
- /**
31386
- *
31387
- * @summary Update or Re-create specialtyTypes Azure Search Services Index
31388
- * @param {UpdateSpecialtyTypesSearchIndexCommand} [updateSpecialtyTypesSearchIndexCommand]
31007
+ * @summary RecreateIndex
31008
+ * @param {SearchIndexType} [searchIndexType]
31009
+ * @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
31389
31010
  * @param {*} [options] Override http request option.
31390
31011
  * @throws {RequiredError}
31391
31012
  * @memberof SearchApi
31392
31013
  */
31393
- SearchApi.prototype.apiV1SearchSpecialtytypesPost = function (updateSpecialtyTypesSearchIndexCommand, options) {
31014
+ SearchApi.prototype.apiV1SearchRecreatePost = function (searchIndexType, updateSearchIndexCommand, options) {
31394
31015
  var _this = this;
31395
- return exports.SearchApiFp(this.configuration).apiV1SearchSpecialtytypesPost(updateSpecialtyTypesSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31016
+ return exports.SearchApiFp(this.configuration).apiV1SearchRecreatePost(searchIndexType, updateSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31396
31017
  };
31397
31018
  return SearchApi;
31398
31019
  }(base_1.BaseAPI));