ch-admin-api-client-typescript 4.0.0 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +209 -374
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +442 -835
- package/package.json +1 -1
- package/src/api.ts +348 -697
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
|
|
@@ -21308,6 +21328,104 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21308
21328
|
});
|
|
21309
21329
|
});
|
|
21310
21330
|
},
|
|
21331
|
+
/**
|
|
21332
|
+
*
|
|
21333
|
+
* @summary Delete HospitalSpecialty.
|
|
21334
|
+
* @param {string} hospitalId
|
|
21335
|
+
* @param {string} hospitalSpecialtyId
|
|
21336
|
+
* @param {*} [options] Override http request option.
|
|
21337
|
+
* @throws {RequiredError}
|
|
21338
|
+
*/
|
|
21339
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete: function (hospitalId, hospitalSpecialtyId, options) {
|
|
21340
|
+
if (options === void 0) { options = {}; }
|
|
21341
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
21342
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
21343
|
+
return __generator(this, function (_a) {
|
|
21344
|
+
switch (_a.label) {
|
|
21345
|
+
case 0:
|
|
21346
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
21347
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete', 'hospitalId', hospitalId);
|
|
21348
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
21349
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
21350
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}"
|
|
21351
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
21352
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
21353
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21354
|
+
if (configuration) {
|
|
21355
|
+
baseOptions = configuration.baseOptions;
|
|
21356
|
+
}
|
|
21357
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
21358
|
+
localVarHeaderParameter = {};
|
|
21359
|
+
localVarQueryParameter = {};
|
|
21360
|
+
// authentication oauth2 required
|
|
21361
|
+
// oauth required
|
|
21362
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
21363
|
+
case 1:
|
|
21364
|
+
// authentication oauth2 required
|
|
21365
|
+
// oauth required
|
|
21366
|
+
_a.sent();
|
|
21367
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21368
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21369
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21370
|
+
return [2 /*return*/, {
|
|
21371
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
21372
|
+
options: localVarRequestOptions,
|
|
21373
|
+
}];
|
|
21374
|
+
}
|
|
21375
|
+
});
|
|
21376
|
+
});
|
|
21377
|
+
},
|
|
21378
|
+
/**
|
|
21379
|
+
*
|
|
21380
|
+
* @summary Get HospitalSpecialty.
|
|
21381
|
+
* @param {string} hospitalId
|
|
21382
|
+
* @param {string} hospitalSpecialtyId
|
|
21383
|
+
* @param {string} [languageCode]
|
|
21384
|
+
* @param {*} [options] Override http request option.
|
|
21385
|
+
* @throws {RequiredError}
|
|
21386
|
+
*/
|
|
21387
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet: function (hospitalId, hospitalSpecialtyId, languageCode, options) {
|
|
21388
|
+
if (options === void 0) { options = {}; }
|
|
21389
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
21390
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
21391
|
+
return __generator(this, function (_a) {
|
|
21392
|
+
switch (_a.label) {
|
|
21393
|
+
case 0:
|
|
21394
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
21395
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet', 'hospitalId', hospitalId);
|
|
21396
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
21397
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
21398
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}"
|
|
21399
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
21400
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
21401
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21402
|
+
if (configuration) {
|
|
21403
|
+
baseOptions = configuration.baseOptions;
|
|
21404
|
+
}
|
|
21405
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
21406
|
+
localVarHeaderParameter = {};
|
|
21407
|
+
localVarQueryParameter = {};
|
|
21408
|
+
// authentication oauth2 required
|
|
21409
|
+
// oauth required
|
|
21410
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
21411
|
+
case 1:
|
|
21412
|
+
// authentication oauth2 required
|
|
21413
|
+
// oauth required
|
|
21414
|
+
_a.sent();
|
|
21415
|
+
if (languageCode !== undefined) {
|
|
21416
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
21417
|
+
}
|
|
21418
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21419
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21420
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21421
|
+
return [2 /*return*/, {
|
|
21422
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
21423
|
+
options: localVarRequestOptions,
|
|
21424
|
+
}];
|
|
21425
|
+
}
|
|
21426
|
+
});
|
|
21427
|
+
});
|
|
21428
|
+
},
|
|
21311
21429
|
/**
|
|
21312
21430
|
*
|
|
21313
21431
|
* @summary Get all HospitalServiceMedias.
|
|
@@ -21583,6 +21701,56 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21583
21701
|
});
|
|
21584
21702
|
});
|
|
21585
21703
|
},
|
|
21704
|
+
/**
|
|
21705
|
+
*
|
|
21706
|
+
* @summary Update HospitalSpecialty.
|
|
21707
|
+
* @param {string} hospitalId
|
|
21708
|
+
* @param {string} hospitalSpecialtyId
|
|
21709
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
21710
|
+
* @param {*} [options] Override http request option.
|
|
21711
|
+
* @throws {RequiredError}
|
|
21712
|
+
*/
|
|
21713
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut: function (hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options) {
|
|
21714
|
+
if (options === void 0) { options = {}; }
|
|
21715
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
21716
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
21717
|
+
return __generator(this, function (_a) {
|
|
21718
|
+
switch (_a.label) {
|
|
21719
|
+
case 0:
|
|
21720
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
21721
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut', 'hospitalId', hospitalId);
|
|
21722
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
21723
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
21724
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}"
|
|
21725
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
21726
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
21727
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21728
|
+
if (configuration) {
|
|
21729
|
+
baseOptions = configuration.baseOptions;
|
|
21730
|
+
}
|
|
21731
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
21732
|
+
localVarHeaderParameter = {};
|
|
21733
|
+
localVarQueryParameter = {};
|
|
21734
|
+
// authentication oauth2 required
|
|
21735
|
+
// oauth required
|
|
21736
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
21737
|
+
case 1:
|
|
21738
|
+
// authentication oauth2 required
|
|
21739
|
+
// oauth required
|
|
21740
|
+
_a.sent();
|
|
21741
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
21742
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21743
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21744
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21745
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration);
|
|
21746
|
+
return [2 /*return*/, {
|
|
21747
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
21748
|
+
options: localVarRequestOptions,
|
|
21749
|
+
}];
|
|
21750
|
+
}
|
|
21751
|
+
});
|
|
21752
|
+
});
|
|
21753
|
+
},
|
|
21586
21754
|
/**
|
|
21587
21755
|
*
|
|
21588
21756
|
* @summary Create HospitalSpecialty.
|
|
@@ -21787,13 +21955,25 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21787
21955
|
},
|
|
21788
21956
|
/**
|
|
21789
21957
|
*
|
|
21790
|
-
* @summary
|
|
21958
|
+
* @summary Get all HospitalServices.
|
|
21791
21959
|
* @param {string} hospitalId
|
|
21792
21960
|
* @param {string} specialtyId
|
|
21961
|
+
* @param {string} [id]
|
|
21962
|
+
* @param {string} [name]
|
|
21963
|
+
* @param {string} [slug]
|
|
21964
|
+
* @param {string} [serviceCategoryId]
|
|
21965
|
+
* @param {MarketingType} [marketingType]
|
|
21966
|
+
* @param {Procedure} [procedure]
|
|
21967
|
+
* @param {Date} [created]
|
|
21968
|
+
* @param {boolean} [showHidden]
|
|
21969
|
+
* @param {string} [languageCode]
|
|
21970
|
+
* @param {number} [page]
|
|
21971
|
+
* @param {number} [limit]
|
|
21972
|
+
* @param {Date} [lastRetrieved]
|
|
21793
21973
|
* @param {*} [options] Override http request option.
|
|
21794
21974
|
* @throws {RequiredError}
|
|
21795
21975
|
*/
|
|
21796
|
-
|
|
21976
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet: function (hospitalId, specialtyId, id, name, slug, serviceCategoryId, marketingType, procedure, created, showHidden, languageCode, page, limit, lastRetrieved, options) {
|
|
21797
21977
|
if (options === void 0) { options = {}; }
|
|
21798
21978
|
return __awaiter(_this, void 0, void 0, function () {
|
|
21799
21979
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -21801,17 +21981,17 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21801
21981
|
switch (_a.label) {
|
|
21802
21982
|
case 0:
|
|
21803
21983
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
21804
|
-
common_1.assertParamExists('
|
|
21984
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'hospitalId', hospitalId);
|
|
21805
21985
|
// verify required parameter 'specialtyId' is not null or undefined
|
|
21806
|
-
common_1.assertParamExists('
|
|
21807
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
|
|
21986
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'specialtyId', specialtyId);
|
|
21987
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services"
|
|
21808
21988
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
21809
21989
|
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
21810
21990
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21811
21991
|
if (configuration) {
|
|
21812
21992
|
baseOptions = configuration.baseOptions;
|
|
21813
21993
|
}
|
|
21814
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
21994
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
21815
21995
|
localVarHeaderParameter = {};
|
|
21816
21996
|
localVarQueryParameter = {};
|
|
21817
21997
|
// authentication oauth2 required
|
|
@@ -21821,6 +22001,46 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21821
22001
|
// authentication oauth2 required
|
|
21822
22002
|
// oauth required
|
|
21823
22003
|
_a.sent();
|
|
22004
|
+
if (id !== undefined) {
|
|
22005
|
+
localVarQueryParameter['Id'] = id;
|
|
22006
|
+
}
|
|
22007
|
+
if (name !== undefined) {
|
|
22008
|
+
localVarQueryParameter['Name'] = name;
|
|
22009
|
+
}
|
|
22010
|
+
if (slug !== undefined) {
|
|
22011
|
+
localVarQueryParameter['Slug'] = slug;
|
|
22012
|
+
}
|
|
22013
|
+
if (serviceCategoryId !== undefined) {
|
|
22014
|
+
localVarQueryParameter['ServiceCategoryId'] = serviceCategoryId;
|
|
22015
|
+
}
|
|
22016
|
+
if (marketingType !== undefined) {
|
|
22017
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
22018
|
+
}
|
|
22019
|
+
if (procedure !== undefined) {
|
|
22020
|
+
localVarQueryParameter['Procedure'] = procedure;
|
|
22021
|
+
}
|
|
22022
|
+
if (created !== undefined) {
|
|
22023
|
+
localVarQueryParameter['Created'] = (created instanceof Date) ?
|
|
22024
|
+
created.toISOString() :
|
|
22025
|
+
created;
|
|
22026
|
+
}
|
|
22027
|
+
if (showHidden !== undefined) {
|
|
22028
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
22029
|
+
}
|
|
22030
|
+
if (languageCode !== undefined) {
|
|
22031
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
22032
|
+
}
|
|
22033
|
+
if (page !== undefined) {
|
|
22034
|
+
localVarQueryParameter['page'] = page;
|
|
22035
|
+
}
|
|
22036
|
+
if (limit !== undefined) {
|
|
22037
|
+
localVarQueryParameter['limit'] = limit;
|
|
22038
|
+
}
|
|
22039
|
+
if (lastRetrieved !== undefined) {
|
|
22040
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
22041
|
+
lastRetrieved.toISOString() :
|
|
22042
|
+
lastRetrieved;
|
|
22043
|
+
}
|
|
21824
22044
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21825
22045
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21826
22046
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -21834,14 +22054,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21834
22054
|
},
|
|
21835
22055
|
/**
|
|
21836
22056
|
*
|
|
21837
|
-
* @summary
|
|
22057
|
+
* @summary Create HospitalService.
|
|
21838
22058
|
* @param {string} hospitalId
|
|
21839
22059
|
* @param {string} specialtyId
|
|
21840
|
-
* @param {
|
|
22060
|
+
* @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
|
|
21841
22061
|
* @param {*} [options] Override http request option.
|
|
21842
22062
|
* @throws {RequiredError}
|
|
21843
22063
|
*/
|
|
21844
|
-
|
|
22064
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost: function (hospitalId, specialtyId, createHospitalServiceCommand, options) {
|
|
21845
22065
|
if (options === void 0) { options = {}; }
|
|
21846
22066
|
return __awaiter(_this, void 0, void 0, function () {
|
|
21847
22067
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -21849,17 +22069,17 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21849
22069
|
switch (_a.label) {
|
|
21850
22070
|
case 0:
|
|
21851
22071
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
21852
|
-
common_1.assertParamExists('
|
|
22072
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost', 'hospitalId', hospitalId);
|
|
21853
22073
|
// verify required parameter 'specialtyId' is not null or undefined
|
|
21854
|
-
common_1.assertParamExists('
|
|
21855
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
|
|
22074
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost', 'specialtyId', specialtyId);
|
|
22075
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services"
|
|
21856
22076
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
21857
22077
|
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
21858
22078
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21859
22079
|
if (configuration) {
|
|
21860
22080
|
baseOptions = configuration.baseOptions;
|
|
21861
22081
|
}
|
|
21862
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
22082
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
21863
22083
|
localVarHeaderParameter = {};
|
|
21864
22084
|
localVarQueryParameter = {};
|
|
21865
22085
|
// authentication oauth2 required
|
|
@@ -21869,12 +22089,11 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21869
22089
|
// authentication oauth2 required
|
|
21870
22090
|
// oauth required
|
|
21871
22091
|
_a.sent();
|
|
21872
|
-
|
|
21873
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
21874
|
-
}
|
|
22092
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
21875
22093
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21876
22094
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21877
22095
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22096
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalServiceCommand, localVarRequestOptions, configuration);
|
|
21878
22097
|
return [2 /*return*/, {
|
|
21879
22098
|
url: common_1.toPathString(localVarUrlObj),
|
|
21880
22099
|
options: localVarRequestOptions,
|
|
@@ -21885,14 +22104,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21885
22104
|
},
|
|
21886
22105
|
/**
|
|
21887
22106
|
*
|
|
21888
|
-
* @summary Update HospitalSpecialty.
|
|
21889
22107
|
* @param {string} hospitalId
|
|
21890
22108
|
* @param {string} specialtyId
|
|
21891
|
-
* @param {
|
|
22109
|
+
* @param {string} serviceId
|
|
21892
22110
|
* @param {*} [options] Override http request option.
|
|
21893
22111
|
* @throws {RequiredError}
|
|
21894
22112
|
*/
|
|
21895
|
-
|
|
22113
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete: function (hospitalId, specialtyId, serviceId, options) {
|
|
21896
22114
|
if (options === void 0) { options = {}; }
|
|
21897
22115
|
return __awaiter(_this, void 0, void 0, function () {
|
|
21898
22116
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -21900,17 +22118,20 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21900
22118
|
switch (_a.label) {
|
|
21901
22119
|
case 0:
|
|
21902
22120
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
21903
|
-
common_1.assertParamExists('
|
|
22121
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'hospitalId', hospitalId);
|
|
21904
22122
|
// verify required parameter 'specialtyId' is not null or undefined
|
|
21905
|
-
common_1.assertParamExists('
|
|
21906
|
-
|
|
22123
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'specialtyId', specialtyId);
|
|
22124
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
22125
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'serviceId', serviceId);
|
|
22126
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}"
|
|
21907
22127
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
21908
|
-
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
|
|
22128
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
|
|
22129
|
+
.replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
|
|
21909
22130
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21910
22131
|
if (configuration) {
|
|
21911
22132
|
baseOptions = configuration.baseOptions;
|
|
21912
22133
|
}
|
|
21913
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
22134
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
21914
22135
|
localVarHeaderParameter = {};
|
|
21915
22136
|
localVarQueryParameter = {};
|
|
21916
22137
|
// authentication oauth2 required
|
|
@@ -21920,11 +22141,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21920
22141
|
// authentication oauth2 required
|
|
21921
22142
|
// oauth required
|
|
21922
22143
|
_a.sent();
|
|
21923
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
21924
22144
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21925
22145
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21926
22146
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21927
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration);
|
|
21928
22147
|
return [2 /*return*/, {
|
|
21929
22148
|
url: common_1.toPathString(localVarUrlObj),
|
|
21930
22149
|
options: localVarRequestOptions,
|
|
@@ -21935,25 +22154,15 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21935
22154
|
},
|
|
21936
22155
|
/**
|
|
21937
22156
|
*
|
|
21938
|
-
* @summary Get all HospitalServices.
|
|
21939
22157
|
* @param {string} hospitalId
|
|
21940
22158
|
* @param {string} specialtyId
|
|
21941
|
-
* @param {string}
|
|
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]
|
|
22159
|
+
* @param {string} serviceId
|
|
21949
22160
|
* @param {string} [languageCode]
|
|
21950
|
-
* @param {
|
|
21951
|
-
* @param {number} [limit]
|
|
21952
|
-
* @param {Date} [lastRetrieved]
|
|
22161
|
+
* @param {boolean} [returnDefaultValue]
|
|
21953
22162
|
* @param {*} [options] Override http request option.
|
|
21954
22163
|
* @throws {RequiredError}
|
|
21955
22164
|
*/
|
|
21956
|
-
|
|
22165
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet: function (hospitalId, specialtyId, serviceId, languageCode, returnDefaultValue, options) {
|
|
21957
22166
|
if (options === void 0) { options = {}; }
|
|
21958
22167
|
return __awaiter(_this, void 0, void 0, function () {
|
|
21959
22168
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -21961,201 +22170,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21961
22170
|
switch (_a.label) {
|
|
21962
22171
|
case 0:
|
|
21963
22172
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
21964
|
-
common_1.assertParamExists('
|
|
22173
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet', 'hospitalId', hospitalId);
|
|
21965
22174
|
// verify required parameter 'specialtyId' is not null or undefined
|
|
21966
|
-
common_1.assertParamExists('
|
|
21967
|
-
|
|
21968
|
-
|
|
21969
|
-
|
|
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
|
|
22140
|
-
* @param {string} [languageCode]
|
|
22141
|
-
* @param {boolean} [returnDefaultValue]
|
|
22142
|
-
* @param {*} [options] Override http request option.
|
|
22143
|
-
* @throws {RequiredError}
|
|
22144
|
-
*/
|
|
22145
|
-
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet: function (hospitalId, specialtyId, serviceId, languageCode, returnDefaultValue, options) {
|
|
22146
|
-
if (options === void 0) { options = {}; }
|
|
22147
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
22148
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
22149
|
-
return __generator(this, function (_a) {
|
|
22150
|
-
switch (_a.label) {
|
|
22151
|
-
case 0:
|
|
22152
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
22153
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet', 'hospitalId', hospitalId);
|
|
22154
|
-
// verify required parameter 'specialtyId' is not null or undefined
|
|
22155
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet', 'specialtyId', specialtyId);
|
|
22156
|
-
// verify required parameter 'serviceId' is not null or undefined
|
|
22157
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet', 'serviceId', serviceId);
|
|
22158
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}"
|
|
22175
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet', 'specialtyId', specialtyId);
|
|
22176
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
22177
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet', 'serviceId', serviceId);
|
|
22178
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}"
|
|
22159
22179
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22160
22180
|
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
|
|
22161
22181
|
.replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
|
|
@@ -23923,6 +23943,49 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
23923
23943
|
});
|
|
23924
23944
|
});
|
|
23925
23945
|
},
|
|
23946
|
+
/**
|
|
23947
|
+
*
|
|
23948
|
+
* @summary Delete HospitalSpecialty.
|
|
23949
|
+
* @param {string} hospitalId
|
|
23950
|
+
* @param {string} hospitalSpecialtyId
|
|
23951
|
+
* @param {*} [options] Override http request option.
|
|
23952
|
+
* @throws {RequiredError}
|
|
23953
|
+
*/
|
|
23954
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete: function (hospitalId, hospitalSpecialtyId, options) {
|
|
23955
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
23956
|
+
var localVarAxiosArgs;
|
|
23957
|
+
return __generator(this, function (_a) {
|
|
23958
|
+
switch (_a.label) {
|
|
23959
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId, hospitalSpecialtyId, options)];
|
|
23960
|
+
case 1:
|
|
23961
|
+
localVarAxiosArgs = _a.sent();
|
|
23962
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
23963
|
+
}
|
|
23964
|
+
});
|
|
23965
|
+
});
|
|
23966
|
+
},
|
|
23967
|
+
/**
|
|
23968
|
+
*
|
|
23969
|
+
* @summary Get HospitalSpecialty.
|
|
23970
|
+
* @param {string} hospitalId
|
|
23971
|
+
* @param {string} hospitalSpecialtyId
|
|
23972
|
+
* @param {string} [languageCode]
|
|
23973
|
+
* @param {*} [options] Override http request option.
|
|
23974
|
+
* @throws {RequiredError}
|
|
23975
|
+
*/
|
|
23976
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet: function (hospitalId, hospitalSpecialtyId, languageCode, options) {
|
|
23977
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
23978
|
+
var localVarAxiosArgs;
|
|
23979
|
+
return __generator(this, function (_a) {
|
|
23980
|
+
switch (_a.label) {
|
|
23981
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId, hospitalSpecialtyId, languageCode, options)];
|
|
23982
|
+
case 1:
|
|
23983
|
+
localVarAxiosArgs = _a.sent();
|
|
23984
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
23985
|
+
}
|
|
23986
|
+
});
|
|
23987
|
+
});
|
|
23988
|
+
},
|
|
23926
23989
|
/**
|
|
23927
23990
|
*
|
|
23928
23991
|
* @summary Get all HospitalServiceMedias.
|
|
@@ -24038,6 +24101,28 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
24038
24101
|
});
|
|
24039
24102
|
});
|
|
24040
24103
|
},
|
|
24104
|
+
/**
|
|
24105
|
+
*
|
|
24106
|
+
* @summary Update HospitalSpecialty.
|
|
24107
|
+
* @param {string} hospitalId
|
|
24108
|
+
* @param {string} hospitalSpecialtyId
|
|
24109
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
24110
|
+
* @param {*} [options] Override http request option.
|
|
24111
|
+
* @throws {RequiredError}
|
|
24112
|
+
*/
|
|
24113
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut: function (hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options) {
|
|
24114
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
24115
|
+
var localVarAxiosArgs;
|
|
24116
|
+
return __generator(this, function (_a) {
|
|
24117
|
+
switch (_a.label) {
|
|
24118
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options)];
|
|
24119
|
+
case 1:
|
|
24120
|
+
localVarAxiosArgs = _a.sent();
|
|
24121
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
24122
|
+
}
|
|
24123
|
+
});
|
|
24124
|
+
});
|
|
24125
|
+
},
|
|
24041
24126
|
/**
|
|
24042
24127
|
*
|
|
24043
24128
|
* @summary Create HospitalSpecialty.
|
|
@@ -24118,72 +24203,7 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
24118
24203
|
},
|
|
24119
24204
|
/**
|
|
24120
24205
|
*
|
|
24121
|
-
* @summary
|
|
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.
|
|
24206
|
+
* @summary Get all HospitalServices.
|
|
24187
24207
|
* @param {string} hospitalId
|
|
24188
24208
|
* @param {string} specialtyId
|
|
24189
24209
|
* @param {string} [id]
|
|
@@ -25126,6 +25146,29 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
25126
25146
|
apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
25127
25147
|
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
25148
|
},
|
|
25149
|
+
/**
|
|
25150
|
+
*
|
|
25151
|
+
* @summary Delete HospitalSpecialty.
|
|
25152
|
+
* @param {string} hospitalId
|
|
25153
|
+
* @param {string} hospitalSpecialtyId
|
|
25154
|
+
* @param {*} [options] Override http request option.
|
|
25155
|
+
* @throws {RequiredError}
|
|
25156
|
+
*/
|
|
25157
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete: function (hospitalId, hospitalSpecialtyId, options) {
|
|
25158
|
+
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId, hospitalSpecialtyId, options).then(function (request) { return request(axios, basePath); });
|
|
25159
|
+
},
|
|
25160
|
+
/**
|
|
25161
|
+
*
|
|
25162
|
+
* @summary Get HospitalSpecialty.
|
|
25163
|
+
* @param {string} hospitalId
|
|
25164
|
+
* @param {string} hospitalSpecialtyId
|
|
25165
|
+
* @param {string} [languageCode]
|
|
25166
|
+
* @param {*} [options] Override http request option.
|
|
25167
|
+
* @throws {RequiredError}
|
|
25168
|
+
*/
|
|
25169
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet: function (hospitalId, hospitalSpecialtyId, languageCode, options) {
|
|
25170
|
+
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId, hospitalSpecialtyId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
25171
|
+
},
|
|
25129
25172
|
/**
|
|
25130
25173
|
*
|
|
25131
25174
|
* @summary Get all HospitalServiceMedias.
|
|
@@ -25191,6 +25234,18 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
25191
25234
|
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: function (hospitalId, hospitalSpecialtyId, createMediaCommand, options) {
|
|
25192
25235
|
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
25193
25236
|
},
|
|
25237
|
+
/**
|
|
25238
|
+
*
|
|
25239
|
+
* @summary Update HospitalSpecialty.
|
|
25240
|
+
* @param {string} hospitalId
|
|
25241
|
+
* @param {string} hospitalSpecialtyId
|
|
25242
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
25243
|
+
* @param {*} [options] Override http request option.
|
|
25244
|
+
* @throws {RequiredError}
|
|
25245
|
+
*/
|
|
25246
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut: function (hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options) {
|
|
25247
|
+
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
|
|
25248
|
+
},
|
|
25194
25249
|
/**
|
|
25195
25250
|
*
|
|
25196
25251
|
* @summary Create HospitalSpecialty.
|
|
@@ -25239,41 +25294,6 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
25239
25294
|
apiV1HospitalsHospitalIdSpecialtiesSlugGet: function (hospitalId, slug, languageCode, returnDefaultValue, includeServices, options) {
|
|
25240
25295
|
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSlugGet(hospitalId, slug, languageCode, returnDefaultValue, includeServices, options).then(function (request) { return request(axios, basePath); });
|
|
25241
25296
|
},
|
|
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
25297
|
/**
|
|
25278
25298
|
*
|
|
25279
25299
|
* @summary Get all HospitalServices.
|
|
@@ -26109,6 +26129,33 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
26109
26129
|
var _this = this;
|
|
26110
26130
|
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26111
26131
|
};
|
|
26132
|
+
/**
|
|
26133
|
+
*
|
|
26134
|
+
* @summary Delete HospitalSpecialty.
|
|
26135
|
+
* @param {string} hospitalId
|
|
26136
|
+
* @param {string} hospitalSpecialtyId
|
|
26137
|
+
* @param {*} [options] Override http request option.
|
|
26138
|
+
* @throws {RequiredError}
|
|
26139
|
+
* @memberof HospitalsApi
|
|
26140
|
+
*/
|
|
26141
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete = function (hospitalId, hospitalSpecialtyId, options) {
|
|
26142
|
+
var _this = this;
|
|
26143
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete(hospitalId, hospitalSpecialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26144
|
+
};
|
|
26145
|
+
/**
|
|
26146
|
+
*
|
|
26147
|
+
* @summary Get HospitalSpecialty.
|
|
26148
|
+
* @param {string} hospitalId
|
|
26149
|
+
* @param {string} hospitalSpecialtyId
|
|
26150
|
+
* @param {string} [languageCode]
|
|
26151
|
+
* @param {*} [options] Override http request option.
|
|
26152
|
+
* @throws {RequiredError}
|
|
26153
|
+
* @memberof HospitalsApi
|
|
26154
|
+
*/
|
|
26155
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet = function (hospitalId, hospitalSpecialtyId, languageCode, options) {
|
|
26156
|
+
var _this = this;
|
|
26157
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet(hospitalId, hospitalSpecialtyId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26158
|
+
};
|
|
26112
26159
|
/**
|
|
26113
26160
|
*
|
|
26114
26161
|
* @summary Get all HospitalServiceMedias.
|
|
@@ -26184,6 +26231,20 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
26184
26231
|
var _this = this;
|
|
26185
26232
|
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost(hospitalId, hospitalSpecialtyId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26186
26233
|
};
|
|
26234
|
+
/**
|
|
26235
|
+
*
|
|
26236
|
+
* @summary Update HospitalSpecialty.
|
|
26237
|
+
* @param {string} hospitalId
|
|
26238
|
+
* @param {string} hospitalSpecialtyId
|
|
26239
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
26240
|
+
* @param {*} [options] Override http request option.
|
|
26241
|
+
* @throws {RequiredError}
|
|
26242
|
+
* @memberof HospitalsApi
|
|
26243
|
+
*/
|
|
26244
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut = function (hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options) {
|
|
26245
|
+
var _this = this;
|
|
26246
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut(hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26247
|
+
};
|
|
26187
26248
|
/**
|
|
26188
26249
|
*
|
|
26189
26250
|
* @summary Create HospitalSpecialty.
|
|
@@ -26238,47 +26299,6 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
26238
26299
|
var _this = this;
|
|
26239
26300
|
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSlugGet(hospitalId, slug, languageCode, returnDefaultValue, includeServices, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26240
26301
|
};
|
|
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
26302
|
/**
|
|
26283
26303
|
*
|
|
26284
26304
|
* @summary Get all HospitalServices.
|
|
@@ -30861,19 +30881,20 @@ exports.SearchApiAxiosParamCreator = function (configuration) {
|
|
|
30861
30881
|
return {
|
|
30862
30882
|
/**
|
|
30863
30883
|
*
|
|
30864
|
-
* @summary
|
|
30865
|
-
* @param {
|
|
30884
|
+
* @summary RecreateIndex
|
|
30885
|
+
* @param {SearchIndexType} [searchIndexType]
|
|
30886
|
+
* @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
|
|
30866
30887
|
* @param {*} [options] Override http request option.
|
|
30867
30888
|
* @throws {RequiredError}
|
|
30868
30889
|
*/
|
|
30869
|
-
|
|
30890
|
+
apiV1SearchRecreatePost: function (searchIndexType, updateSearchIndexCommand, options) {
|
|
30870
30891
|
if (options === void 0) { options = {}; }
|
|
30871
30892
|
return __awaiter(_this, void 0, void 0, function () {
|
|
30872
30893
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
30873
30894
|
return __generator(this, function (_a) {
|
|
30874
30895
|
switch (_a.label) {
|
|
30875
30896
|
case 0:
|
|
30876
|
-
localVarPath = "/api/v1/search/
|
|
30897
|
+
localVarPath = "/api/v1/search/recreate";
|
|
30877
30898
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
30878
30899
|
if (configuration) {
|
|
30879
30900
|
baseOptions = configuration.baseOptions;
|
|
@@ -30888,11 +30909,14 @@ exports.SearchApiAxiosParamCreator = function (configuration) {
|
|
|
30888
30909
|
// authentication oauth2 required
|
|
30889
30910
|
// oauth required
|
|
30890
30911
|
_a.sent();
|
|
30912
|
+
if (searchIndexType !== undefined) {
|
|
30913
|
+
localVarQueryParameter['searchIndexType'] = searchIndexType;
|
|
30914
|
+
}
|
|
30891
30915
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30892
30916
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30893
30917
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30894
30918
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30895
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
30919
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateSearchIndexCommand, localVarRequestOptions, configuration);
|
|
30896
30920
|
return [2 /*return*/, {
|
|
30897
30921
|
url: common_1.toPathString(localVarUrlObj),
|
|
30898
30922
|
options: localVarRequestOptions,
|
|
@@ -30901,413 +30925,55 @@ exports.SearchApiAxiosParamCreator = function (configuration) {
|
|
|
30901
30925
|
});
|
|
30902
30926
|
});
|
|
30903
30927
|
},
|
|
30928
|
+
};
|
|
30929
|
+
};
|
|
30930
|
+
/**
|
|
30931
|
+
* SearchApi - functional programming interface
|
|
30932
|
+
* @export
|
|
30933
|
+
*/
|
|
30934
|
+
exports.SearchApiFp = function (configuration) {
|
|
30935
|
+
var localVarAxiosParamCreator = exports.SearchApiAxiosParamCreator(configuration);
|
|
30936
|
+
return {
|
|
30904
30937
|
/**
|
|
30905
30938
|
*
|
|
30906
|
-
* @summary
|
|
30907
|
-
* @param {
|
|
30939
|
+
* @summary RecreateIndex
|
|
30940
|
+
* @param {SearchIndexType} [searchIndexType]
|
|
30941
|
+
* @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
|
|
30908
30942
|
* @param {*} [options] Override http request option.
|
|
30909
30943
|
* @throws {RequiredError}
|
|
30910
30944
|
*/
|
|
30911
|
-
|
|
30912
|
-
|
|
30913
|
-
|
|
30914
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
30945
|
+
apiV1SearchRecreatePost: function (searchIndexType, updateSearchIndexCommand, options) {
|
|
30946
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
30947
|
+
var localVarAxiosArgs;
|
|
30915
30948
|
return __generator(this, function (_a) {
|
|
30916
30949
|
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)];
|
|
30950
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchRecreatePost(searchIndexType, updateSearchIndexCommand, options)];
|
|
30929
30951
|
case 1:
|
|
30930
|
-
|
|
30931
|
-
|
|
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
|
-
}];
|
|
30952
|
+
localVarAxiosArgs = _a.sent();
|
|
30953
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
30942
30954
|
}
|
|
30943
30955
|
});
|
|
30944
30956
|
});
|
|
30945
30957
|
},
|
|
30958
|
+
};
|
|
30959
|
+
};
|
|
30960
|
+
/**
|
|
30961
|
+
* SearchApi - factory interface
|
|
30962
|
+
* @export
|
|
30963
|
+
*/
|
|
30964
|
+
exports.SearchApiFactory = function (configuration, basePath, axios) {
|
|
30965
|
+
var localVarFp = exports.SearchApiFp(configuration);
|
|
30966
|
+
return {
|
|
30946
30967
|
/**
|
|
30947
30968
|
*
|
|
30948
|
-
* @summary
|
|
30949
|
-
* @param {
|
|
30969
|
+
* @summary RecreateIndex
|
|
30970
|
+
* @param {SearchIndexType} [searchIndexType]
|
|
30971
|
+
* @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
|
|
30950
30972
|
* @param {*} [options] Override http request option.
|
|
30951
30973
|
* @throws {RequiredError}
|
|
30952
30974
|
*/
|
|
30953
|
-
|
|
30954
|
-
|
|
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); });
|
|
30975
|
+
apiV1SearchRecreatePost: function (searchIndexType, updateSearchIndexCommand, options) {
|
|
30976
|
+
return localVarFp.apiV1SearchRecreatePost(searchIndexType, updateSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
|
|
31311
30977
|
},
|
|
31312
30978
|
};
|
|
31313
30979
|
};
|
|
@@ -31324,75 +30990,16 @@ var SearchApi = /** @class */ (function (_super) {
|
|
|
31324
30990
|
}
|
|
31325
30991
|
/**
|
|
31326
30992
|
*
|
|
31327
|
-
* @summary
|
|
31328
|
-
* @param {
|
|
31329
|
-
* @param {
|
|
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]
|
|
30993
|
+
* @summary RecreateIndex
|
|
30994
|
+
* @param {SearchIndexType} [searchIndexType]
|
|
30995
|
+
* @param {UpdateSearchIndexCommand} [updateSearchIndexCommand]
|
|
31389
30996
|
* @param {*} [options] Override http request option.
|
|
31390
30997
|
* @throws {RequiredError}
|
|
31391
30998
|
* @memberof SearchApi
|
|
31392
30999
|
*/
|
|
31393
|
-
SearchApi.prototype.
|
|
31000
|
+
SearchApi.prototype.apiV1SearchRecreatePost = function (searchIndexType, updateSearchIndexCommand, options) {
|
|
31394
31001
|
var _this = this;
|
|
31395
|
-
return exports.SearchApiFp(this.configuration).
|
|
31002
|
+
return exports.SearchApiFp(this.configuration).apiV1SearchRecreatePost(searchIndexType, updateSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
31396
31003
|
};
|
|
31397
31004
|
return SearchApi;
|
|
31398
31005
|
}(base_1.BaseAPI));
|