ch-admin-api-client-typescript 4.3.6 → 4.3.8
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 +998 -14
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1132 -378
- package/package.json +1 -1
- package/src/api.ts +1415 -90
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.AppVersionApi = exports.AppVersionApiFactory = exports.AppVersionApiFp = exports.AppVersionApiAxiosParamCreator = 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.Platform = 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.GroupChannelsApi = exports.GroupChannelsApiFactory = exports.GroupChannelsApiFp = exports.GroupChannelsApiAxiosParamCreator = 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.AppVersionApi = exports.AppVersionApiFactory = exports.AppVersionApiFp = exports.AppVersionApiAxiosParamCreator = 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.Platform = 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
|
|
@@ -20447,6 +20447,138 @@ var FaqsApi = /** @class */ (function (_super) {
|
|
|
20447
20447
|
return FaqsApi;
|
|
20448
20448
|
}(base_1.BaseAPI));
|
|
20449
20449
|
exports.FaqsApi = FaqsApi;
|
|
20450
|
+
/**
|
|
20451
|
+
* GroupChannelsApi - axios parameter creator
|
|
20452
|
+
* @export
|
|
20453
|
+
*/
|
|
20454
|
+
exports.GroupChannelsApiAxiosParamCreator = function (configuration) {
|
|
20455
|
+
var _this = this;
|
|
20456
|
+
return {
|
|
20457
|
+
/**
|
|
20458
|
+
*
|
|
20459
|
+
* @summary invite user to group channel
|
|
20460
|
+
* @param {string} channelUrl
|
|
20461
|
+
* @param {InviteSendBirdGroupChannelCommand} [inviteSendBirdGroupChannelCommand]
|
|
20462
|
+
* @param {*} [options] Override http request option.
|
|
20463
|
+
* @throws {RequiredError}
|
|
20464
|
+
*/
|
|
20465
|
+
apiV1GroupchannelsChannelUrlInvitePost: function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
|
|
20466
|
+
if (options === void 0) { options = {}; }
|
|
20467
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
20468
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
20469
|
+
return __generator(this, function (_a) {
|
|
20470
|
+
switch (_a.label) {
|
|
20471
|
+
case 0:
|
|
20472
|
+
// verify required parameter 'channelUrl' is not null or undefined
|
|
20473
|
+
common_1.assertParamExists('apiV1GroupchannelsChannelUrlInvitePost', 'channelUrl', channelUrl);
|
|
20474
|
+
localVarPath = "/api/v1/groupchannels/{channelUrl}/invite"
|
|
20475
|
+
.replace("{" + "channelUrl" + "}", encodeURIComponent(String(channelUrl)));
|
|
20476
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20477
|
+
if (configuration) {
|
|
20478
|
+
baseOptions = configuration.baseOptions;
|
|
20479
|
+
}
|
|
20480
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
20481
|
+
localVarHeaderParameter = {};
|
|
20482
|
+
localVarQueryParameter = {};
|
|
20483
|
+
// authentication oauth2 required
|
|
20484
|
+
// oauth required
|
|
20485
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
20486
|
+
case 1:
|
|
20487
|
+
// authentication oauth2 required
|
|
20488
|
+
// oauth required
|
|
20489
|
+
_a.sent();
|
|
20490
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20491
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20492
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20493
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20494
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(inviteSendBirdGroupChannelCommand, localVarRequestOptions, configuration);
|
|
20495
|
+
return [2 /*return*/, {
|
|
20496
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
20497
|
+
options: localVarRequestOptions,
|
|
20498
|
+
}];
|
|
20499
|
+
}
|
|
20500
|
+
});
|
|
20501
|
+
});
|
|
20502
|
+
},
|
|
20503
|
+
};
|
|
20504
|
+
};
|
|
20505
|
+
/**
|
|
20506
|
+
* GroupChannelsApi - functional programming interface
|
|
20507
|
+
* @export
|
|
20508
|
+
*/
|
|
20509
|
+
exports.GroupChannelsApiFp = function (configuration) {
|
|
20510
|
+
var localVarAxiosParamCreator = exports.GroupChannelsApiAxiosParamCreator(configuration);
|
|
20511
|
+
return {
|
|
20512
|
+
/**
|
|
20513
|
+
*
|
|
20514
|
+
* @summary invite user to group channel
|
|
20515
|
+
* @param {string} channelUrl
|
|
20516
|
+
* @param {InviteSendBirdGroupChannelCommand} [inviteSendBirdGroupChannelCommand]
|
|
20517
|
+
* @param {*} [options] Override http request option.
|
|
20518
|
+
* @throws {RequiredError}
|
|
20519
|
+
*/
|
|
20520
|
+
apiV1GroupchannelsChannelUrlInvitePost: function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
|
|
20521
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
20522
|
+
var localVarAxiosArgs;
|
|
20523
|
+
return __generator(this, function (_a) {
|
|
20524
|
+
switch (_a.label) {
|
|
20525
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options)];
|
|
20526
|
+
case 1:
|
|
20527
|
+
localVarAxiosArgs = _a.sent();
|
|
20528
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
20529
|
+
}
|
|
20530
|
+
});
|
|
20531
|
+
});
|
|
20532
|
+
},
|
|
20533
|
+
};
|
|
20534
|
+
};
|
|
20535
|
+
/**
|
|
20536
|
+
* GroupChannelsApi - factory interface
|
|
20537
|
+
* @export
|
|
20538
|
+
*/
|
|
20539
|
+
exports.GroupChannelsApiFactory = function (configuration, basePath, axios) {
|
|
20540
|
+
var localVarFp = exports.GroupChannelsApiFp(configuration);
|
|
20541
|
+
return {
|
|
20542
|
+
/**
|
|
20543
|
+
*
|
|
20544
|
+
* @summary invite user to group channel
|
|
20545
|
+
* @param {string} channelUrl
|
|
20546
|
+
* @param {InviteSendBirdGroupChannelCommand} [inviteSendBirdGroupChannelCommand]
|
|
20547
|
+
* @param {*} [options] Override http request option.
|
|
20548
|
+
* @throws {RequiredError}
|
|
20549
|
+
*/
|
|
20550
|
+
apiV1GroupchannelsChannelUrlInvitePost: function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
|
|
20551
|
+
return localVarFp.apiV1GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then(function (request) { return request(axios, basePath); });
|
|
20552
|
+
},
|
|
20553
|
+
};
|
|
20554
|
+
};
|
|
20555
|
+
/**
|
|
20556
|
+
* GroupChannelsApi - object-oriented interface
|
|
20557
|
+
* @export
|
|
20558
|
+
* @class GroupChannelsApi
|
|
20559
|
+
* @extends {BaseAPI}
|
|
20560
|
+
*/
|
|
20561
|
+
var GroupChannelsApi = /** @class */ (function (_super) {
|
|
20562
|
+
__extends(GroupChannelsApi, _super);
|
|
20563
|
+
function GroupChannelsApi() {
|
|
20564
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
20565
|
+
}
|
|
20566
|
+
/**
|
|
20567
|
+
*
|
|
20568
|
+
* @summary invite user to group channel
|
|
20569
|
+
* @param {string} channelUrl
|
|
20570
|
+
* @param {InviteSendBirdGroupChannelCommand} [inviteSendBirdGroupChannelCommand]
|
|
20571
|
+
* @param {*} [options] Override http request option.
|
|
20572
|
+
* @throws {RequiredError}
|
|
20573
|
+
* @memberof GroupChannelsApi
|
|
20574
|
+
*/
|
|
20575
|
+
GroupChannelsApi.prototype.apiV1GroupchannelsChannelUrlInvitePost = function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
|
|
20576
|
+
var _this = this;
|
|
20577
|
+
return exports.GroupChannelsApiFp(this.configuration).apiV1GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
20578
|
+
};
|
|
20579
|
+
return GroupChannelsApi;
|
|
20580
|
+
}(base_1.BaseAPI));
|
|
20581
|
+
exports.GroupChannelsApi = GroupChannelsApi;
|
|
20450
20582
|
/**
|
|
20451
20583
|
* HospitalsApi - axios parameter creator
|
|
20452
20584
|
* @export
|
|
@@ -21929,16 +22061,19 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21929
22061
|
},
|
|
21930
22062
|
/**
|
|
21931
22063
|
*
|
|
21932
|
-
* @summary Get all
|
|
22064
|
+
* @summary Get all GetAllLandings.
|
|
21933
22065
|
* @param {string} hospitalId
|
|
21934
22066
|
* @param {string} [name]
|
|
22067
|
+
* @param {string} [slug]
|
|
22068
|
+
* @param {string} [languageCode]
|
|
22069
|
+
* @param {boolean} [showHidden]
|
|
21935
22070
|
* @param {number} [page]
|
|
21936
22071
|
* @param {number} [limit]
|
|
21937
22072
|
* @param {Date} [lastRetrieved]
|
|
21938
22073
|
* @param {*} [options] Override http request option.
|
|
21939
22074
|
* @throws {RequiredError}
|
|
21940
22075
|
*/
|
|
21941
|
-
|
|
22076
|
+
apiV1HospitalsHospitalIdLandingsGet: function (hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
21942
22077
|
if (options === void 0) { options = {}; }
|
|
21943
22078
|
return __awaiter(_this, void 0, void 0, function () {
|
|
21944
22079
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -21946,8 +22081,8 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21946
22081
|
switch (_a.label) {
|
|
21947
22082
|
case 0:
|
|
21948
22083
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
21949
|
-
common_1.assertParamExists('
|
|
21950
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/
|
|
22084
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLandingsGet', 'hospitalId', hospitalId);
|
|
22085
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/landings"
|
|
21951
22086
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
21952
22087
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21953
22088
|
if (configuration) {
|
|
@@ -21966,163 +22101,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21966
22101
|
if (name !== undefined) {
|
|
21967
22102
|
localVarQueryParameter['Name'] = name;
|
|
21968
22103
|
}
|
|
21969
|
-
if (
|
|
21970
|
-
localVarQueryParameter['
|
|
21971
|
-
}
|
|
21972
|
-
if (limit !== undefined) {
|
|
21973
|
-
localVarQueryParameter['limit'] = limit;
|
|
21974
|
-
}
|
|
21975
|
-
if (lastRetrieved !== undefined) {
|
|
21976
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
21977
|
-
lastRetrieved.toISOString() :
|
|
21978
|
-
lastRetrieved;
|
|
21979
|
-
}
|
|
21980
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21981
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21982
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21983
|
-
return [2 /*return*/, {
|
|
21984
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
21985
|
-
options: localVarRequestOptions,
|
|
21986
|
-
}];
|
|
21987
|
-
}
|
|
21988
|
-
});
|
|
21989
|
-
});
|
|
21990
|
-
},
|
|
21991
|
-
/**
|
|
21992
|
-
*
|
|
21993
|
-
* @summary Delete GetAllLanguage.
|
|
21994
|
-
* @param {string} hospitalId
|
|
21995
|
-
* @param {string} languageCode
|
|
21996
|
-
* @param {*} [options] Override http request option.
|
|
21997
|
-
* @throws {RequiredError}
|
|
21998
|
-
*/
|
|
21999
|
-
apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete: function (hospitalId, languageCode, options) {
|
|
22000
|
-
if (options === void 0) { options = {}; }
|
|
22001
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
22002
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
22003
|
-
return __generator(this, function (_a) {
|
|
22004
|
-
switch (_a.label) {
|
|
22005
|
-
case 0:
|
|
22006
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
22007
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete', 'hospitalId', hospitalId);
|
|
22008
|
-
// verify required parameter 'languageCode' is not null or undefined
|
|
22009
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete', 'languageCode', languageCode);
|
|
22010
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/languages/{languageCode}"
|
|
22011
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22012
|
-
.replace("{" + "languageCode" + "}", encodeURIComponent(String(languageCode)));
|
|
22013
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22014
|
-
if (configuration) {
|
|
22015
|
-
baseOptions = configuration.baseOptions;
|
|
22016
|
-
}
|
|
22017
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
22018
|
-
localVarHeaderParameter = {};
|
|
22019
|
-
localVarQueryParameter = {};
|
|
22020
|
-
// authentication oauth2 required
|
|
22021
|
-
// oauth required
|
|
22022
|
-
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
22023
|
-
case 1:
|
|
22024
|
-
// authentication oauth2 required
|
|
22025
|
-
// oauth required
|
|
22026
|
-
_a.sent();
|
|
22027
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22028
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22029
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22030
|
-
return [2 /*return*/, {
|
|
22031
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
22032
|
-
options: localVarRequestOptions,
|
|
22033
|
-
}];
|
|
22034
|
-
}
|
|
22035
|
-
});
|
|
22036
|
-
});
|
|
22037
|
-
},
|
|
22038
|
-
/**
|
|
22039
|
-
*
|
|
22040
|
-
* @summary Create HospitalLanguages.
|
|
22041
|
-
* @param {string} hospitalId
|
|
22042
|
-
* @param {CreateHospitalLanguageCommand} [createHospitalLanguageCommand]
|
|
22043
|
-
* @param {*} [options] Override http request option.
|
|
22044
|
-
* @throws {RequiredError}
|
|
22045
|
-
*/
|
|
22046
|
-
apiV1HospitalsHospitalIdLanguagesPost: function (hospitalId, createHospitalLanguageCommand, options) {
|
|
22047
|
-
if (options === void 0) { options = {}; }
|
|
22048
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
22049
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
22050
|
-
return __generator(this, function (_a) {
|
|
22051
|
-
switch (_a.label) {
|
|
22052
|
-
case 0:
|
|
22053
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
22054
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesPost', 'hospitalId', hospitalId);
|
|
22055
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/languages"
|
|
22056
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
22057
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22058
|
-
if (configuration) {
|
|
22059
|
-
baseOptions = configuration.baseOptions;
|
|
22060
|
-
}
|
|
22061
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
22062
|
-
localVarHeaderParameter = {};
|
|
22063
|
-
localVarQueryParameter = {};
|
|
22064
|
-
// authentication oauth2 required
|
|
22065
|
-
// oauth required
|
|
22066
|
-
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
22067
|
-
case 1:
|
|
22068
|
-
// authentication oauth2 required
|
|
22069
|
-
// oauth required
|
|
22070
|
-
_a.sent();
|
|
22071
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22072
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22073
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22074
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22075
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalLanguageCommand, localVarRequestOptions, configuration);
|
|
22076
|
-
return [2 /*return*/, {
|
|
22077
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
22078
|
-
options: localVarRequestOptions,
|
|
22079
|
-
}];
|
|
22080
|
-
}
|
|
22081
|
-
});
|
|
22082
|
-
});
|
|
22083
|
-
},
|
|
22084
|
-
/**
|
|
22085
|
-
*
|
|
22086
|
-
* @summary Get all HospitalMedias.
|
|
22087
|
-
* @param {string} hospitalId
|
|
22088
|
-
* @param {string} [id]
|
|
22089
|
-
* @param {MediaType} [mediaType]
|
|
22090
|
-
* @param {number} [page]
|
|
22091
|
-
* @param {number} [limit]
|
|
22092
|
-
* @param {Date} [lastRetrieved]
|
|
22093
|
-
* @param {*} [options] Override http request option.
|
|
22094
|
-
* @throws {RequiredError}
|
|
22095
|
-
*/
|
|
22096
|
-
apiV1HospitalsHospitalIdMediasGet: function (hospitalId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
22097
|
-
if (options === void 0) { options = {}; }
|
|
22098
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
22099
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
22100
|
-
return __generator(this, function (_a) {
|
|
22101
|
-
switch (_a.label) {
|
|
22102
|
-
case 0:
|
|
22103
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
22104
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdMediasGet', 'hospitalId', hospitalId);
|
|
22105
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/medias"
|
|
22106
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
22107
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22108
|
-
if (configuration) {
|
|
22109
|
-
baseOptions = configuration.baseOptions;
|
|
22104
|
+
if (slug !== undefined) {
|
|
22105
|
+
localVarQueryParameter['Slug'] = slug;
|
|
22110
22106
|
}
|
|
22111
|
-
|
|
22112
|
-
|
|
22113
|
-
localVarQueryParameter = {};
|
|
22114
|
-
// authentication oauth2 required
|
|
22115
|
-
// oauth required
|
|
22116
|
-
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
22117
|
-
case 1:
|
|
22118
|
-
// authentication oauth2 required
|
|
22119
|
-
// oauth required
|
|
22120
|
-
_a.sent();
|
|
22121
|
-
if (id !== undefined) {
|
|
22122
|
-
localVarQueryParameter['Id'] = id;
|
|
22107
|
+
if (languageCode !== undefined) {
|
|
22108
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
22123
22109
|
}
|
|
22124
|
-
if (
|
|
22125
|
-
localVarQueryParameter['
|
|
22110
|
+
if (showHidden !== undefined) {
|
|
22111
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
22126
22112
|
}
|
|
22127
22113
|
if (page !== undefined) {
|
|
22128
22114
|
localVarQueryParameter['page'] = page;
|
|
@@ -22148,13 +22134,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22148
22134
|
},
|
|
22149
22135
|
/**
|
|
22150
22136
|
*
|
|
22151
|
-
* @summary Delete
|
|
22137
|
+
* @summary Delete Landing.
|
|
22152
22138
|
* @param {string} hospitalId
|
|
22153
|
-
* @param {string}
|
|
22139
|
+
* @param {string} landingId
|
|
22154
22140
|
* @param {*} [options] Override http request option.
|
|
22155
22141
|
* @throws {RequiredError}
|
|
22156
22142
|
*/
|
|
22157
|
-
|
|
22143
|
+
apiV1HospitalsHospitalIdLandingsLandingIdDelete: function (hospitalId, landingId, options) {
|
|
22158
22144
|
if (options === void 0) { options = {}; }
|
|
22159
22145
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22160
22146
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22162,12 +22148,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22162
22148
|
switch (_a.label) {
|
|
22163
22149
|
case 0:
|
|
22164
22150
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22165
|
-
common_1.assertParamExists('
|
|
22166
|
-
// verify required parameter '
|
|
22167
|
-
common_1.assertParamExists('
|
|
22168
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/
|
|
22151
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLandingsLandingIdDelete', 'hospitalId', hospitalId);
|
|
22152
|
+
// verify required parameter 'landingId' is not null or undefined
|
|
22153
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLandingsLandingIdDelete', 'landingId', landingId);
|
|
22154
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/landings/{landingId}"
|
|
22169
22155
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22170
|
-
.replace("{" + "
|
|
22156
|
+
.replace("{" + "landingId" + "}", encodeURIComponent(String(landingId)));
|
|
22171
22157
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22172
22158
|
if (configuration) {
|
|
22173
22159
|
baseOptions = configuration.baseOptions;
|
|
@@ -22195,13 +22181,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22195
22181
|
},
|
|
22196
22182
|
/**
|
|
22197
22183
|
*
|
|
22198
|
-
* @summary Get
|
|
22184
|
+
* @summary Get Landing
|
|
22199
22185
|
* @param {string} hospitalId
|
|
22200
|
-
* @param {string}
|
|
22186
|
+
* @param {string} landingId
|
|
22187
|
+
* @param {string} [languageCode]
|
|
22201
22188
|
* @param {*} [options] Override http request option.
|
|
22202
22189
|
* @throws {RequiredError}
|
|
22203
22190
|
*/
|
|
22204
|
-
|
|
22191
|
+
apiV1HospitalsHospitalIdLandingsLandingIdGet: function (hospitalId, landingId, languageCode, options) {
|
|
22205
22192
|
if (options === void 0) { options = {}; }
|
|
22206
22193
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22207
22194
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22209,12 +22196,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22209
22196
|
switch (_a.label) {
|
|
22210
22197
|
case 0:
|
|
22211
22198
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22212
|
-
common_1.assertParamExists('
|
|
22213
|
-
// verify required parameter '
|
|
22214
|
-
common_1.assertParamExists('
|
|
22215
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/
|
|
22199
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLandingsLandingIdGet', 'hospitalId', hospitalId);
|
|
22200
|
+
// verify required parameter 'landingId' is not null or undefined
|
|
22201
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLandingsLandingIdGet', 'landingId', landingId);
|
|
22202
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/landings/{landingId}"
|
|
22216
22203
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22217
|
-
.replace("{" + "
|
|
22204
|
+
.replace("{" + "landingId" + "}", encodeURIComponent(String(landingId)));
|
|
22218
22205
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22219
22206
|
if (configuration) {
|
|
22220
22207
|
baseOptions = configuration.baseOptions;
|
|
@@ -22229,6 +22216,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22229
22216
|
// authentication oauth2 required
|
|
22230
22217
|
// oauth required
|
|
22231
22218
|
_a.sent();
|
|
22219
|
+
if (languageCode !== undefined) {
|
|
22220
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
22221
|
+
}
|
|
22232
22222
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22233
22223
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22234
22224
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -22242,14 +22232,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22242
22232
|
},
|
|
22243
22233
|
/**
|
|
22244
22234
|
*
|
|
22245
|
-
* @summary Update
|
|
22235
|
+
* @summary Update Landing
|
|
22246
22236
|
* @param {string} hospitalId
|
|
22247
|
-
* @param {string}
|
|
22248
|
-
* @param {
|
|
22237
|
+
* @param {string} landingId
|
|
22238
|
+
* @param {UpdateLandingCommand} [updateLandingCommand]
|
|
22249
22239
|
* @param {*} [options] Override http request option.
|
|
22250
22240
|
* @throws {RequiredError}
|
|
22251
22241
|
*/
|
|
22252
|
-
|
|
22242
|
+
apiV1HospitalsHospitalIdLandingsLandingIdPut: function (hospitalId, landingId, updateLandingCommand, options) {
|
|
22253
22243
|
if (options === void 0) { options = {}; }
|
|
22254
22244
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22255
22245
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22257,12 +22247,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22257
22247
|
switch (_a.label) {
|
|
22258
22248
|
case 0:
|
|
22259
22249
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22260
|
-
common_1.assertParamExists('
|
|
22261
|
-
// verify required parameter '
|
|
22262
|
-
common_1.assertParamExists('
|
|
22263
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/
|
|
22250
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLandingsLandingIdPut', 'hospitalId', hospitalId);
|
|
22251
|
+
// verify required parameter 'landingId' is not null or undefined
|
|
22252
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLandingsLandingIdPut', 'landingId', landingId);
|
|
22253
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/landings/{landingId}"
|
|
22264
22254
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22265
|
-
.replace("{" + "
|
|
22255
|
+
.replace("{" + "landingId" + "}", encodeURIComponent(String(landingId)));
|
|
22266
22256
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22267
22257
|
if (configuration) {
|
|
22268
22258
|
baseOptions = configuration.baseOptions;
|
|
@@ -22281,53 +22271,7 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22281
22271
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22282
22272
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22283
22273
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22284
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
22285
|
-
return [2 /*return*/, {
|
|
22286
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
22287
|
-
options: localVarRequestOptions,
|
|
22288
|
-
}];
|
|
22289
|
-
}
|
|
22290
|
-
});
|
|
22291
|
-
});
|
|
22292
|
-
},
|
|
22293
|
-
/**
|
|
22294
|
-
*
|
|
22295
|
-
* @summary Create HospitalMedia.
|
|
22296
|
-
* @param {string} hospitalId
|
|
22297
|
-
* @param {CreateMediaCommand} [createMediaCommand]
|
|
22298
|
-
* @param {*} [options] Override http request option.
|
|
22299
|
-
* @throws {RequiredError}
|
|
22300
|
-
*/
|
|
22301
|
-
apiV1HospitalsHospitalIdMediasPost: function (hospitalId, createMediaCommand, options) {
|
|
22302
|
-
if (options === void 0) { options = {}; }
|
|
22303
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
22304
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
22305
|
-
return __generator(this, function (_a) {
|
|
22306
|
-
switch (_a.label) {
|
|
22307
|
-
case 0:
|
|
22308
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
22309
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdMediasPost', 'hospitalId', hospitalId);
|
|
22310
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/medias"
|
|
22311
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
22312
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22313
|
-
if (configuration) {
|
|
22314
|
-
baseOptions = configuration.baseOptions;
|
|
22315
|
-
}
|
|
22316
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
22317
|
-
localVarHeaderParameter = {};
|
|
22318
|
-
localVarQueryParameter = {};
|
|
22319
|
-
// authentication oauth2 required
|
|
22320
|
-
// oauth required
|
|
22321
|
-
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
22322
|
-
case 1:
|
|
22323
|
-
// authentication oauth2 required
|
|
22324
|
-
// oauth required
|
|
22325
|
-
_a.sent();
|
|
22326
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22327
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22328
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22329
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22330
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration);
|
|
22274
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateLandingCommand, localVarRequestOptions, configuration);
|
|
22331
22275
|
return [2 /*return*/, {
|
|
22332
22276
|
url: common_1.toPathString(localVarUrlObj),
|
|
22333
22277
|
options: localVarRequestOptions,
|
|
@@ -22338,13 +22282,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22338
22282
|
},
|
|
22339
22283
|
/**
|
|
22340
22284
|
*
|
|
22341
|
-
* @summary
|
|
22285
|
+
* @summary Reactivate Landing
|
|
22342
22286
|
* @param {string} hospitalId
|
|
22343
|
-
* @param {
|
|
22287
|
+
* @param {string} landingId
|
|
22344
22288
|
* @param {*} [options] Override http request option.
|
|
22345
22289
|
* @throws {RequiredError}
|
|
22346
22290
|
*/
|
|
22347
|
-
|
|
22291
|
+
apiV1HospitalsHospitalIdLandingsLandingIdReactivePut: function (hospitalId, landingId, options) {
|
|
22348
22292
|
if (options === void 0) { options = {}; }
|
|
22349
22293
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22350
22294
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22352,9 +22296,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22352
22296
|
switch (_a.label) {
|
|
22353
22297
|
case 0:
|
|
22354
22298
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22355
|
-
common_1.assertParamExists('
|
|
22356
|
-
|
|
22357
|
-
|
|
22299
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLandingsLandingIdReactivePut', 'hospitalId', hospitalId);
|
|
22300
|
+
// verify required parameter 'landingId' is not null or undefined
|
|
22301
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLandingsLandingIdReactivePut', 'landingId', landingId);
|
|
22302
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/landings/{landingId}/reactive"
|
|
22303
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22304
|
+
.replace("{" + "landingId" + "}", encodeURIComponent(String(landingId)));
|
|
22358
22305
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22359
22306
|
if (configuration) {
|
|
22360
22307
|
baseOptions = configuration.baseOptions;
|
|
@@ -22369,11 +22316,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22369
22316
|
// authentication oauth2 required
|
|
22370
22317
|
// oauth required
|
|
22371
22318
|
_a.sent();
|
|
22372
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22373
22319
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22374
22320
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22375
22321
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22376
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalCommand, localVarRequestOptions, configuration);
|
|
22377
22322
|
return [2 /*return*/, {
|
|
22378
22323
|
url: common_1.toPathString(localVarUrlObj),
|
|
22379
22324
|
options: localVarRequestOptions,
|
|
@@ -22384,12 +22329,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22384
22329
|
},
|
|
22385
22330
|
/**
|
|
22386
22331
|
*
|
|
22387
|
-
* @summary
|
|
22332
|
+
* @summary Create HospitalLandings.
|
|
22388
22333
|
* @param {string} hospitalId
|
|
22334
|
+
* @param {CreateLandingCommand} [createLandingCommand]
|
|
22389
22335
|
* @param {*} [options] Override http request option.
|
|
22390
22336
|
* @throws {RequiredError}
|
|
22391
22337
|
*/
|
|
22392
|
-
|
|
22338
|
+
apiV1HospitalsHospitalIdLandingsPost: function (hospitalId, createLandingCommand, options) {
|
|
22393
22339
|
if (options === void 0) { options = {}; }
|
|
22394
22340
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22395
22341
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22397,14 +22343,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22397
22343
|
switch (_a.label) {
|
|
22398
22344
|
case 0:
|
|
22399
22345
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22400
|
-
common_1.assertParamExists('
|
|
22401
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/
|
|
22346
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLandingsPost', 'hospitalId', hospitalId);
|
|
22347
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/landings"
|
|
22402
22348
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
22403
22349
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22404
22350
|
if (configuration) {
|
|
22405
22351
|
baseOptions = configuration.baseOptions;
|
|
22406
22352
|
}
|
|
22407
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
22353
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
22408
22354
|
localVarHeaderParameter = {};
|
|
22409
22355
|
localVarQueryParameter = {};
|
|
22410
22356
|
// authentication oauth2 required
|
|
@@ -22414,9 +22360,11 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22414
22360
|
// authentication oauth2 required
|
|
22415
22361
|
// oauth required
|
|
22416
22362
|
_a.sent();
|
|
22363
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22417
22364
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22418
22365
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22419
22366
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22367
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createLandingCommand, localVarRequestOptions, configuration);
|
|
22420
22368
|
return [2 /*return*/, {
|
|
22421
22369
|
url: common_1.toPathString(localVarUrlObj),
|
|
22422
22370
|
options: localVarRequestOptions,
|
|
@@ -22427,25 +22375,16 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22427
22375
|
},
|
|
22428
22376
|
/**
|
|
22429
22377
|
*
|
|
22430
|
-
* @summary Get all
|
|
22378
|
+
* @summary Get all GetAllLanguages.
|
|
22431
22379
|
* @param {string} hospitalId
|
|
22432
|
-
* @param {string} [specialtyId]
|
|
22433
|
-
* @param {string} [specialtyName]
|
|
22434
|
-
* @param {string} [specialtyTypeId]
|
|
22435
|
-
* @param {string} [specialtyTypeName]
|
|
22436
|
-
* @param {string} [hospitalSpecialtyId]
|
|
22437
22380
|
* @param {string} [name]
|
|
22438
|
-
* @param {string} [slug]
|
|
22439
|
-
* @param {MarketingType} [marketingType]
|
|
22440
|
-
* @param {string} [languageCode]
|
|
22441
|
-
* @param {boolean} [showHidden]
|
|
22442
22381
|
* @param {number} [page]
|
|
22443
22382
|
* @param {number} [limit]
|
|
22444
22383
|
* @param {Date} [lastRetrieved]
|
|
22445
22384
|
* @param {*} [options] Override http request option.
|
|
22446
22385
|
* @throws {RequiredError}
|
|
22447
22386
|
*/
|
|
22448
|
-
|
|
22387
|
+
apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, page, limit, lastRetrieved, options) {
|
|
22449
22388
|
if (options === void 0) { options = {}; }
|
|
22450
22389
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22451
22390
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22453,8 +22392,8 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22453
22392
|
switch (_a.label) {
|
|
22454
22393
|
case 0:
|
|
22455
22394
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22456
|
-
common_1.assertParamExists('
|
|
22457
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/
|
|
22395
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesGet', 'hospitalId', hospitalId);
|
|
22396
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/languages"
|
|
22458
22397
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
22459
22398
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22460
22399
|
if (configuration) {
|
|
@@ -22470,36 +22409,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22470
22409
|
// authentication oauth2 required
|
|
22471
22410
|
// oauth required
|
|
22472
22411
|
_a.sent();
|
|
22473
|
-
if (specialtyId !== undefined) {
|
|
22474
|
-
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
22475
|
-
}
|
|
22476
|
-
if (specialtyName !== undefined) {
|
|
22477
|
-
localVarQueryParameter['SpecialtyName'] = specialtyName;
|
|
22478
|
-
}
|
|
22479
|
-
if (specialtyTypeId !== undefined) {
|
|
22480
|
-
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
22481
|
-
}
|
|
22482
|
-
if (specialtyTypeName !== undefined) {
|
|
22483
|
-
localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
|
|
22484
|
-
}
|
|
22485
|
-
if (hospitalSpecialtyId !== undefined) {
|
|
22486
|
-
localVarQueryParameter['HospitalSpecialtyId'] = hospitalSpecialtyId;
|
|
22487
|
-
}
|
|
22488
22412
|
if (name !== undefined) {
|
|
22489
22413
|
localVarQueryParameter['Name'] = name;
|
|
22490
22414
|
}
|
|
22491
|
-
if (slug !== undefined) {
|
|
22492
|
-
localVarQueryParameter['Slug'] = slug;
|
|
22493
|
-
}
|
|
22494
|
-
if (marketingType !== undefined) {
|
|
22495
|
-
localVarQueryParameter['MarketingType'] = marketingType;
|
|
22496
|
-
}
|
|
22497
|
-
if (languageCode !== undefined) {
|
|
22498
|
-
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
22499
|
-
}
|
|
22500
|
-
if (showHidden !== undefined) {
|
|
22501
|
-
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
22502
|
-
}
|
|
22503
22415
|
if (page !== undefined) {
|
|
22504
22416
|
localVarQueryParameter['page'] = page;
|
|
22505
22417
|
}
|
|
@@ -22524,13 +22436,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22524
22436
|
},
|
|
22525
22437
|
/**
|
|
22526
22438
|
*
|
|
22527
|
-
* @summary Delete
|
|
22439
|
+
* @summary Delete GetAllLanguage.
|
|
22528
22440
|
* @param {string} hospitalId
|
|
22529
|
-
* @param {string}
|
|
22441
|
+
* @param {string} languageCode
|
|
22530
22442
|
* @param {*} [options] Override http request option.
|
|
22531
22443
|
* @throws {RequiredError}
|
|
22532
22444
|
*/
|
|
22533
|
-
|
|
22445
|
+
apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete: function (hospitalId, languageCode, options) {
|
|
22534
22446
|
if (options === void 0) { options = {}; }
|
|
22535
22447
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22536
22448
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22538,12 +22450,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22538
22450
|
switch (_a.label) {
|
|
22539
22451
|
case 0:
|
|
22540
22452
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22541
|
-
common_1.assertParamExists('
|
|
22542
|
-
// verify required parameter '
|
|
22543
|
-
common_1.assertParamExists('
|
|
22544
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/
|
|
22453
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete', 'hospitalId', hospitalId);
|
|
22454
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
22455
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete', 'languageCode', languageCode);
|
|
22456
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/languages/{languageCode}"
|
|
22545
22457
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22546
|
-
.replace("{" + "
|
|
22458
|
+
.replace("{" + "languageCode" + "}", encodeURIComponent(String(languageCode)));
|
|
22547
22459
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22548
22460
|
if (configuration) {
|
|
22549
22461
|
baseOptions = configuration.baseOptions;
|
|
@@ -22571,14 +22483,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22571
22483
|
},
|
|
22572
22484
|
/**
|
|
22573
22485
|
*
|
|
22574
|
-
* @summary
|
|
22486
|
+
* @summary Create HospitalLanguages.
|
|
22575
22487
|
* @param {string} hospitalId
|
|
22576
|
-
* @param {
|
|
22577
|
-
* @param {string} [languageCode]
|
|
22488
|
+
* @param {CreateHospitalLanguageCommand} [createHospitalLanguageCommand]
|
|
22578
22489
|
* @param {*} [options] Override http request option.
|
|
22579
22490
|
* @throws {RequiredError}
|
|
22580
22491
|
*/
|
|
22581
|
-
|
|
22492
|
+
apiV1HospitalsHospitalIdLanguagesPost: function (hospitalId, createHospitalLanguageCommand, options) {
|
|
22582
22493
|
if (options === void 0) { options = {}; }
|
|
22583
22494
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22584
22495
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22586,17 +22497,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22586
22497
|
switch (_a.label) {
|
|
22587
22498
|
case 0:
|
|
22588
22499
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22589
|
-
common_1.assertParamExists('
|
|
22590
|
-
|
|
22591
|
-
|
|
22592
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}"
|
|
22593
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22594
|
-
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
22500
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesPost', 'hospitalId', hospitalId);
|
|
22501
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/languages"
|
|
22502
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
22595
22503
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22596
22504
|
if (configuration) {
|
|
22597
22505
|
baseOptions = configuration.baseOptions;
|
|
22598
22506
|
}
|
|
22599
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
22507
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
22600
22508
|
localVarHeaderParameter = {};
|
|
22601
22509
|
localVarQueryParameter = {};
|
|
22602
22510
|
// authentication oauth2 required
|
|
@@ -22606,12 +22514,11 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22606
22514
|
// authentication oauth2 required
|
|
22607
22515
|
// oauth required
|
|
22608
22516
|
_a.sent();
|
|
22609
|
-
|
|
22610
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
22611
|
-
}
|
|
22517
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22612
22518
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22613
22519
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22614
22520
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22521
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalLanguageCommand, localVarRequestOptions, configuration);
|
|
22615
22522
|
return [2 /*return*/, {
|
|
22616
22523
|
url: common_1.toPathString(localVarUrlObj),
|
|
22617
22524
|
options: localVarRequestOptions,
|
|
@@ -22622,9 +22529,8 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22622
22529
|
},
|
|
22623
22530
|
/**
|
|
22624
22531
|
*
|
|
22625
|
-
* @summary Get all
|
|
22532
|
+
* @summary Get all HospitalMedias.
|
|
22626
22533
|
* @param {string} hospitalId
|
|
22627
|
-
* @param {string} hospitalSpecialtyId
|
|
22628
22534
|
* @param {string} [id]
|
|
22629
22535
|
* @param {MediaType} [mediaType]
|
|
22630
22536
|
* @param {number} [page]
|
|
@@ -22633,7 +22539,7 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22633
22539
|
* @param {*} [options] Override http request option.
|
|
22634
22540
|
* @throws {RequiredError}
|
|
22635
22541
|
*/
|
|
22636
|
-
|
|
22542
|
+
apiV1HospitalsHospitalIdMediasGet: function (hospitalId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
22637
22543
|
if (options === void 0) { options = {}; }
|
|
22638
22544
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22639
22545
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22641,12 +22547,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22641
22547
|
switch (_a.label) {
|
|
22642
22548
|
case 0:
|
|
22643
22549
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22644
|
-
common_1.assertParamExists('
|
|
22645
|
-
|
|
22646
|
-
|
|
22647
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias"
|
|
22648
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22649
|
-
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
22550
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdMediasGet', 'hospitalId', hospitalId);
|
|
22551
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/medias"
|
|
22552
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
22650
22553
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22651
22554
|
if (configuration) {
|
|
22652
22555
|
baseOptions = configuration.baseOptions;
|
|
@@ -22691,14 +22594,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22691
22594
|
},
|
|
22692
22595
|
/**
|
|
22693
22596
|
*
|
|
22694
|
-
* @summary Delete
|
|
22597
|
+
* @summary Delete HospitalMedia
|
|
22695
22598
|
* @param {string} hospitalId
|
|
22696
|
-
* @param {string} hospitalSpecialtyId
|
|
22697
22599
|
* @param {string} mediaId
|
|
22698
22600
|
* @param {*} [options] Override http request option.
|
|
22699
22601
|
* @throws {RequiredError}
|
|
22700
22602
|
*/
|
|
22701
|
-
|
|
22603
|
+
apiV1HospitalsHospitalIdMediasMediaIdDelete: function (hospitalId, mediaId, options) {
|
|
22702
22604
|
if (options === void 0) { options = {}; }
|
|
22703
22605
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22704
22606
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22706,14 +22608,11 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22706
22608
|
switch (_a.label) {
|
|
22707
22609
|
case 0:
|
|
22708
22610
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22709
|
-
common_1.assertParamExists('
|
|
22710
|
-
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
22711
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
22611
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdMediasMediaIdDelete', 'hospitalId', hospitalId);
|
|
22712
22612
|
// verify required parameter 'mediaId' is not null or undefined
|
|
22713
|
-
common_1.assertParamExists('
|
|
22714
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/
|
|
22613
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdMediasMediaIdDelete', 'mediaId', mediaId);
|
|
22614
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/medias/{mediaId}"
|
|
22715
22615
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22716
|
-
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)))
|
|
22717
22616
|
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
22718
22617
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22719
22618
|
if (configuration) {
|
|
@@ -22742,14 +22641,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22742
22641
|
},
|
|
22743
22642
|
/**
|
|
22744
22643
|
*
|
|
22745
|
-
* @summary Get
|
|
22644
|
+
* @summary Get HospitalMedia.
|
|
22746
22645
|
* @param {string} hospitalId
|
|
22747
|
-
* @param {string} hospitalSpecialtyId
|
|
22748
22646
|
* @param {string} mediaId
|
|
22749
22647
|
* @param {*} [options] Override http request option.
|
|
22750
22648
|
* @throws {RequiredError}
|
|
22751
22649
|
*/
|
|
22752
|
-
|
|
22650
|
+
apiV1HospitalsHospitalIdMediasMediaIdGet: function (hospitalId, mediaId, options) {
|
|
22753
22651
|
if (options === void 0) { options = {}; }
|
|
22754
22652
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22755
22653
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22757,14 +22655,11 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22757
22655
|
switch (_a.label) {
|
|
22758
22656
|
case 0:
|
|
22759
22657
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22760
|
-
common_1.assertParamExists('
|
|
22761
|
-
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
22762
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
22658
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdMediasMediaIdGet', 'hospitalId', hospitalId);
|
|
22763
22659
|
// verify required parameter 'mediaId' is not null or undefined
|
|
22764
|
-
common_1.assertParamExists('
|
|
22765
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/
|
|
22660
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdMediasMediaIdGet', 'mediaId', mediaId);
|
|
22661
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/medias/{mediaId}"
|
|
22766
22662
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22767
|
-
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)))
|
|
22768
22663
|
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
22769
22664
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22770
22665
|
if (configuration) {
|
|
@@ -22793,15 +22688,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22793
22688
|
},
|
|
22794
22689
|
/**
|
|
22795
22690
|
*
|
|
22796
|
-
* @summary Update
|
|
22691
|
+
* @summary Update HospitalMedia.
|
|
22797
22692
|
* @param {string} hospitalId
|
|
22798
|
-
* @param {string} hospitalSpecialtyId
|
|
22799
22693
|
* @param {string} mediaId
|
|
22800
22694
|
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
22801
22695
|
* @param {*} [options] Override http request option.
|
|
22802
22696
|
* @throws {RequiredError}
|
|
22803
22697
|
*/
|
|
22804
|
-
|
|
22698
|
+
apiV1HospitalsHospitalIdMediasMediaIdPut: function (hospitalId, mediaId, updateMediaCommand, options) {
|
|
22805
22699
|
if (options === void 0) { options = {}; }
|
|
22806
22700
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22807
22701
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22809,14 +22703,11 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22809
22703
|
switch (_a.label) {
|
|
22810
22704
|
case 0:
|
|
22811
22705
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22812
|
-
common_1.assertParamExists('
|
|
22813
|
-
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
22814
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
22706
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdMediasMediaIdPut', 'hospitalId', hospitalId);
|
|
22815
22707
|
// verify required parameter 'mediaId' is not null or undefined
|
|
22816
|
-
common_1.assertParamExists('
|
|
22817
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/
|
|
22708
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdMediasMediaIdPut', 'mediaId', mediaId);
|
|
22709
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/medias/{mediaId}"
|
|
22818
22710
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22819
|
-
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)))
|
|
22820
22711
|
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
22821
22712
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22822
22713
|
if (configuration) {
|
|
@@ -22847,14 +22738,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22847
22738
|
},
|
|
22848
22739
|
/**
|
|
22849
22740
|
*
|
|
22850
|
-
* @summary Create
|
|
22741
|
+
* @summary Create HospitalMedia.
|
|
22851
22742
|
* @param {string} hospitalId
|
|
22852
|
-
* @param {string} hospitalSpecialtyId
|
|
22853
22743
|
* @param {CreateMediaCommand} [createMediaCommand]
|
|
22854
22744
|
* @param {*} [options] Override http request option.
|
|
22855
22745
|
* @throws {RequiredError}
|
|
22856
22746
|
*/
|
|
22857
|
-
|
|
22747
|
+
apiV1HospitalsHospitalIdMediasPost: function (hospitalId, createMediaCommand, options) {
|
|
22858
22748
|
if (options === void 0) { options = {}; }
|
|
22859
22749
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22860
22750
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22862,12 +22752,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22862
22752
|
switch (_a.label) {
|
|
22863
22753
|
case 0:
|
|
22864
22754
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22865
|
-
common_1.assertParamExists('
|
|
22866
|
-
|
|
22867
|
-
|
|
22868
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias"
|
|
22869
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22870
|
-
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
22755
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdMediasPost', 'hospitalId', hospitalId);
|
|
22756
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/medias"
|
|
22757
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
22871
22758
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22872
22759
|
if (configuration) {
|
|
22873
22760
|
baseOptions = configuration.baseOptions;
|
|
@@ -22897,14 +22784,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22897
22784
|
},
|
|
22898
22785
|
/**
|
|
22899
22786
|
*
|
|
22900
|
-
* @summary Update
|
|
22787
|
+
* @summary Update Hospital.
|
|
22901
22788
|
* @param {string} hospitalId
|
|
22902
|
-
* @param {
|
|
22903
|
-
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
22789
|
+
* @param {UpdateHospitalCommand} [updateHospitalCommand]
|
|
22904
22790
|
* @param {*} [options] Override http request option.
|
|
22905
22791
|
* @throws {RequiredError}
|
|
22906
22792
|
*/
|
|
22907
|
-
|
|
22793
|
+
apiV1HospitalsHospitalIdPut: function (hospitalId, updateHospitalCommand, options) {
|
|
22908
22794
|
if (options === void 0) { options = {}; }
|
|
22909
22795
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22910
22796
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22912,12 +22798,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22912
22798
|
switch (_a.label) {
|
|
22913
22799
|
case 0:
|
|
22914
22800
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22915
|
-
common_1.assertParamExists('
|
|
22916
|
-
|
|
22917
|
-
|
|
22918
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}"
|
|
22919
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22920
|
-
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
22801
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdPut', 'hospitalId', hospitalId);
|
|
22802
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}"
|
|
22803
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
22921
22804
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22922
22805
|
if (configuration) {
|
|
22923
22806
|
baseOptions = configuration.baseOptions;
|
|
@@ -22936,7 +22819,7 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22936
22819
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22937
22820
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22938
22821
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22939
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
22822
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalCommand, localVarRequestOptions, configuration);
|
|
22940
22823
|
return [2 /*return*/, {
|
|
22941
22824
|
url: common_1.toPathString(localVarUrlObj),
|
|
22942
22825
|
options: localVarRequestOptions,
|
|
@@ -22947,13 +22830,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22947
22830
|
},
|
|
22948
22831
|
/**
|
|
22949
22832
|
*
|
|
22950
|
-
* @summary
|
|
22833
|
+
* @summary Delete HospitalSpecialty.
|
|
22951
22834
|
* @param {string} hospitalId
|
|
22952
|
-
* @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
|
|
22953
22835
|
* @param {*} [options] Override http request option.
|
|
22954
22836
|
* @throws {RequiredError}
|
|
22955
22837
|
*/
|
|
22956
|
-
|
|
22838
|
+
apiV1HospitalsHospitalIdReactivePut: function (hospitalId, options) {
|
|
22957
22839
|
if (options === void 0) { options = {}; }
|
|
22958
22840
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22959
22841
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22961,14 +22843,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22961
22843
|
switch (_a.label) {
|
|
22962
22844
|
case 0:
|
|
22963
22845
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
22964
|
-
common_1.assertParamExists('
|
|
22965
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/
|
|
22846
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdReactivePut', 'hospitalId', hospitalId);
|
|
22847
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/reactive"
|
|
22966
22848
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
22967
22849
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22968
22850
|
if (configuration) {
|
|
22969
22851
|
baseOptions = configuration.baseOptions;
|
|
22970
22852
|
}
|
|
22971
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
22853
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
22972
22854
|
localVarHeaderParameter = {};
|
|
22973
22855
|
localVarQueryParameter = {};
|
|
22974
22856
|
// authentication oauth2 required
|
|
@@ -22978,11 +22860,575 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22978
22860
|
// authentication oauth2 required
|
|
22979
22861
|
// oauth required
|
|
22980
22862
|
_a.sent();
|
|
22981
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22982
22863
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22983
22864
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22984
22865
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22985
|
-
|
|
22866
|
+
return [2 /*return*/, {
|
|
22867
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
22868
|
+
options: localVarRequestOptions,
|
|
22869
|
+
}];
|
|
22870
|
+
}
|
|
22871
|
+
});
|
|
22872
|
+
});
|
|
22873
|
+
},
|
|
22874
|
+
/**
|
|
22875
|
+
*
|
|
22876
|
+
* @summary Get all HospitalSpecialties.
|
|
22877
|
+
* @param {string} hospitalId
|
|
22878
|
+
* @param {string} [specialtyId]
|
|
22879
|
+
* @param {string} [specialtyName]
|
|
22880
|
+
* @param {string} [specialtyTypeId]
|
|
22881
|
+
* @param {string} [specialtyTypeName]
|
|
22882
|
+
* @param {string} [hospitalSpecialtyId]
|
|
22883
|
+
* @param {string} [name]
|
|
22884
|
+
* @param {string} [slug]
|
|
22885
|
+
* @param {MarketingType} [marketingType]
|
|
22886
|
+
* @param {string} [languageCode]
|
|
22887
|
+
* @param {boolean} [showHidden]
|
|
22888
|
+
* @param {number} [page]
|
|
22889
|
+
* @param {number} [limit]
|
|
22890
|
+
* @param {Date} [lastRetrieved]
|
|
22891
|
+
* @param {*} [options] Override http request option.
|
|
22892
|
+
* @throws {RequiredError}
|
|
22893
|
+
*/
|
|
22894
|
+
apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
22895
|
+
if (options === void 0) { options = {}; }
|
|
22896
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
22897
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
22898
|
+
return __generator(this, function (_a) {
|
|
22899
|
+
switch (_a.label) {
|
|
22900
|
+
case 0:
|
|
22901
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
22902
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesGet', 'hospitalId', hospitalId);
|
|
22903
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties"
|
|
22904
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
22905
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22906
|
+
if (configuration) {
|
|
22907
|
+
baseOptions = configuration.baseOptions;
|
|
22908
|
+
}
|
|
22909
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
22910
|
+
localVarHeaderParameter = {};
|
|
22911
|
+
localVarQueryParameter = {};
|
|
22912
|
+
// authentication oauth2 required
|
|
22913
|
+
// oauth required
|
|
22914
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
22915
|
+
case 1:
|
|
22916
|
+
// authentication oauth2 required
|
|
22917
|
+
// oauth required
|
|
22918
|
+
_a.sent();
|
|
22919
|
+
if (specialtyId !== undefined) {
|
|
22920
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
22921
|
+
}
|
|
22922
|
+
if (specialtyName !== undefined) {
|
|
22923
|
+
localVarQueryParameter['SpecialtyName'] = specialtyName;
|
|
22924
|
+
}
|
|
22925
|
+
if (specialtyTypeId !== undefined) {
|
|
22926
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
22927
|
+
}
|
|
22928
|
+
if (specialtyTypeName !== undefined) {
|
|
22929
|
+
localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
|
|
22930
|
+
}
|
|
22931
|
+
if (hospitalSpecialtyId !== undefined) {
|
|
22932
|
+
localVarQueryParameter['HospitalSpecialtyId'] = hospitalSpecialtyId;
|
|
22933
|
+
}
|
|
22934
|
+
if (name !== undefined) {
|
|
22935
|
+
localVarQueryParameter['Name'] = name;
|
|
22936
|
+
}
|
|
22937
|
+
if (slug !== undefined) {
|
|
22938
|
+
localVarQueryParameter['Slug'] = slug;
|
|
22939
|
+
}
|
|
22940
|
+
if (marketingType !== undefined) {
|
|
22941
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
22942
|
+
}
|
|
22943
|
+
if (languageCode !== undefined) {
|
|
22944
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
22945
|
+
}
|
|
22946
|
+
if (showHidden !== undefined) {
|
|
22947
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
22948
|
+
}
|
|
22949
|
+
if (page !== undefined) {
|
|
22950
|
+
localVarQueryParameter['page'] = page;
|
|
22951
|
+
}
|
|
22952
|
+
if (limit !== undefined) {
|
|
22953
|
+
localVarQueryParameter['limit'] = limit;
|
|
22954
|
+
}
|
|
22955
|
+
if (lastRetrieved !== undefined) {
|
|
22956
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
22957
|
+
lastRetrieved.toISOString() :
|
|
22958
|
+
lastRetrieved;
|
|
22959
|
+
}
|
|
22960
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22961
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22962
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22963
|
+
return [2 /*return*/, {
|
|
22964
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
22965
|
+
options: localVarRequestOptions,
|
|
22966
|
+
}];
|
|
22967
|
+
}
|
|
22968
|
+
});
|
|
22969
|
+
});
|
|
22970
|
+
},
|
|
22971
|
+
/**
|
|
22972
|
+
*
|
|
22973
|
+
* @summary Delete HospitalSpecialty.
|
|
22974
|
+
* @param {string} hospitalId
|
|
22975
|
+
* @param {string} hospitalSpecialtyId
|
|
22976
|
+
* @param {*} [options] Override http request option.
|
|
22977
|
+
* @throws {RequiredError}
|
|
22978
|
+
*/
|
|
22979
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete: function (hospitalId, hospitalSpecialtyId, options) {
|
|
22980
|
+
if (options === void 0) { options = {}; }
|
|
22981
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
22982
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
22983
|
+
return __generator(this, function (_a) {
|
|
22984
|
+
switch (_a.label) {
|
|
22985
|
+
case 0:
|
|
22986
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
22987
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete', 'hospitalId', hospitalId);
|
|
22988
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
22989
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdDelete', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
22990
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}"
|
|
22991
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
22992
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
22993
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22994
|
+
if (configuration) {
|
|
22995
|
+
baseOptions = configuration.baseOptions;
|
|
22996
|
+
}
|
|
22997
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
22998
|
+
localVarHeaderParameter = {};
|
|
22999
|
+
localVarQueryParameter = {};
|
|
23000
|
+
// authentication oauth2 required
|
|
23001
|
+
// oauth required
|
|
23002
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
23003
|
+
case 1:
|
|
23004
|
+
// authentication oauth2 required
|
|
23005
|
+
// oauth required
|
|
23006
|
+
_a.sent();
|
|
23007
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23008
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23009
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23010
|
+
return [2 /*return*/, {
|
|
23011
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
23012
|
+
options: localVarRequestOptions,
|
|
23013
|
+
}];
|
|
23014
|
+
}
|
|
23015
|
+
});
|
|
23016
|
+
});
|
|
23017
|
+
},
|
|
23018
|
+
/**
|
|
23019
|
+
*
|
|
23020
|
+
* @summary Get HospitalSpecialty.
|
|
23021
|
+
* @param {string} hospitalId
|
|
23022
|
+
* @param {string} hospitalSpecialtyId
|
|
23023
|
+
* @param {string} [languageCode]
|
|
23024
|
+
* @param {*} [options] Override http request option.
|
|
23025
|
+
* @throws {RequiredError}
|
|
23026
|
+
*/
|
|
23027
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet: function (hospitalId, hospitalSpecialtyId, languageCode, options) {
|
|
23028
|
+
if (options === void 0) { options = {}; }
|
|
23029
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
23030
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
23031
|
+
return __generator(this, function (_a) {
|
|
23032
|
+
switch (_a.label) {
|
|
23033
|
+
case 0:
|
|
23034
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
23035
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet', 'hospitalId', hospitalId);
|
|
23036
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
23037
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
23038
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}"
|
|
23039
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
23040
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
23041
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23042
|
+
if (configuration) {
|
|
23043
|
+
baseOptions = configuration.baseOptions;
|
|
23044
|
+
}
|
|
23045
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
23046
|
+
localVarHeaderParameter = {};
|
|
23047
|
+
localVarQueryParameter = {};
|
|
23048
|
+
// authentication oauth2 required
|
|
23049
|
+
// oauth required
|
|
23050
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
23051
|
+
case 1:
|
|
23052
|
+
// authentication oauth2 required
|
|
23053
|
+
// oauth required
|
|
23054
|
+
_a.sent();
|
|
23055
|
+
if (languageCode !== undefined) {
|
|
23056
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
23057
|
+
}
|
|
23058
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23059
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23060
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23061
|
+
return [2 /*return*/, {
|
|
23062
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
23063
|
+
options: localVarRequestOptions,
|
|
23064
|
+
}];
|
|
23065
|
+
}
|
|
23066
|
+
});
|
|
23067
|
+
});
|
|
23068
|
+
},
|
|
23069
|
+
/**
|
|
23070
|
+
*
|
|
23071
|
+
* @summary Get all HospitalServiceMedias.
|
|
23072
|
+
* @param {string} hospitalId
|
|
23073
|
+
* @param {string} hospitalSpecialtyId
|
|
23074
|
+
* @param {string} [id]
|
|
23075
|
+
* @param {MediaType} [mediaType]
|
|
23076
|
+
* @param {number} [page]
|
|
23077
|
+
* @param {number} [limit]
|
|
23078
|
+
* @param {Date} [lastRetrieved]
|
|
23079
|
+
* @param {*} [options] Override http request option.
|
|
23080
|
+
* @throws {RequiredError}
|
|
23081
|
+
*/
|
|
23082
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
23083
|
+
if (options === void 0) { options = {}; }
|
|
23084
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
23085
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
23086
|
+
return __generator(this, function (_a) {
|
|
23087
|
+
switch (_a.label) {
|
|
23088
|
+
case 0:
|
|
23089
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
23090
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalId', hospitalId);
|
|
23091
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
23092
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
23093
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias"
|
|
23094
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
23095
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
23096
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23097
|
+
if (configuration) {
|
|
23098
|
+
baseOptions = configuration.baseOptions;
|
|
23099
|
+
}
|
|
23100
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
23101
|
+
localVarHeaderParameter = {};
|
|
23102
|
+
localVarQueryParameter = {};
|
|
23103
|
+
// authentication oauth2 required
|
|
23104
|
+
// oauth required
|
|
23105
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
23106
|
+
case 1:
|
|
23107
|
+
// authentication oauth2 required
|
|
23108
|
+
// oauth required
|
|
23109
|
+
_a.sent();
|
|
23110
|
+
if (id !== undefined) {
|
|
23111
|
+
localVarQueryParameter['Id'] = id;
|
|
23112
|
+
}
|
|
23113
|
+
if (mediaType !== undefined) {
|
|
23114
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
23115
|
+
}
|
|
23116
|
+
if (page !== undefined) {
|
|
23117
|
+
localVarQueryParameter['page'] = page;
|
|
23118
|
+
}
|
|
23119
|
+
if (limit !== undefined) {
|
|
23120
|
+
localVarQueryParameter['limit'] = limit;
|
|
23121
|
+
}
|
|
23122
|
+
if (lastRetrieved !== undefined) {
|
|
23123
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
23124
|
+
lastRetrieved.toISOString() :
|
|
23125
|
+
lastRetrieved;
|
|
23126
|
+
}
|
|
23127
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23128
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23129
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23130
|
+
return [2 /*return*/, {
|
|
23131
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
23132
|
+
options: localVarRequestOptions,
|
|
23133
|
+
}];
|
|
23134
|
+
}
|
|
23135
|
+
});
|
|
23136
|
+
});
|
|
23137
|
+
},
|
|
23138
|
+
/**
|
|
23139
|
+
*
|
|
23140
|
+
* @summary Delete HospitalServiceMedia
|
|
23141
|
+
* @param {string} hospitalId
|
|
23142
|
+
* @param {string} hospitalSpecialtyId
|
|
23143
|
+
* @param {string} mediaId
|
|
23144
|
+
* @param {*} [options] Override http request option.
|
|
23145
|
+
* @throws {RequiredError}
|
|
23146
|
+
*/
|
|
23147
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
|
|
23148
|
+
if (options === void 0) { options = {}; }
|
|
23149
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
23150
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
23151
|
+
return __generator(this, function (_a) {
|
|
23152
|
+
switch (_a.label) {
|
|
23153
|
+
case 0:
|
|
23154
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
23155
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'hospitalId', hospitalId);
|
|
23156
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
23157
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
23158
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
23159
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdDelete', 'mediaId', mediaId);
|
|
23160
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}"
|
|
23161
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
23162
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)))
|
|
23163
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
23164
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23165
|
+
if (configuration) {
|
|
23166
|
+
baseOptions = configuration.baseOptions;
|
|
23167
|
+
}
|
|
23168
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
23169
|
+
localVarHeaderParameter = {};
|
|
23170
|
+
localVarQueryParameter = {};
|
|
23171
|
+
// authentication oauth2 required
|
|
23172
|
+
// oauth required
|
|
23173
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
23174
|
+
case 1:
|
|
23175
|
+
// authentication oauth2 required
|
|
23176
|
+
// oauth required
|
|
23177
|
+
_a.sent();
|
|
23178
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23179
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23180
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23181
|
+
return [2 /*return*/, {
|
|
23182
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
23183
|
+
options: localVarRequestOptions,
|
|
23184
|
+
}];
|
|
23185
|
+
}
|
|
23186
|
+
});
|
|
23187
|
+
});
|
|
23188
|
+
},
|
|
23189
|
+
/**
|
|
23190
|
+
*
|
|
23191
|
+
* @summary Get HospitalServiceMedia.
|
|
23192
|
+
* @param {string} hospitalId
|
|
23193
|
+
* @param {string} hospitalSpecialtyId
|
|
23194
|
+
* @param {string} mediaId
|
|
23195
|
+
* @param {*} [options] Override http request option.
|
|
23196
|
+
* @throws {RequiredError}
|
|
23197
|
+
*/
|
|
23198
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
|
|
23199
|
+
if (options === void 0) { options = {}; }
|
|
23200
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
23201
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
23202
|
+
return __generator(this, function (_a) {
|
|
23203
|
+
switch (_a.label) {
|
|
23204
|
+
case 0:
|
|
23205
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
23206
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalId', hospitalId);
|
|
23207
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
23208
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
23209
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
23210
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'mediaId', mediaId);
|
|
23211
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}"
|
|
23212
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
23213
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)))
|
|
23214
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
23215
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23216
|
+
if (configuration) {
|
|
23217
|
+
baseOptions = configuration.baseOptions;
|
|
23218
|
+
}
|
|
23219
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
23220
|
+
localVarHeaderParameter = {};
|
|
23221
|
+
localVarQueryParameter = {};
|
|
23222
|
+
// authentication oauth2 required
|
|
23223
|
+
// oauth required
|
|
23224
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
23225
|
+
case 1:
|
|
23226
|
+
// authentication oauth2 required
|
|
23227
|
+
// oauth required
|
|
23228
|
+
_a.sent();
|
|
23229
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23230
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23231
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23232
|
+
return [2 /*return*/, {
|
|
23233
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
23234
|
+
options: localVarRequestOptions,
|
|
23235
|
+
}];
|
|
23236
|
+
}
|
|
23237
|
+
});
|
|
23238
|
+
});
|
|
23239
|
+
},
|
|
23240
|
+
/**
|
|
23241
|
+
*
|
|
23242
|
+
* @summary Update HospitalServiceMedia.
|
|
23243
|
+
* @param {string} hospitalId
|
|
23244
|
+
* @param {string} hospitalSpecialtyId
|
|
23245
|
+
* @param {string} mediaId
|
|
23246
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
23247
|
+
* @param {*} [options] Override http request option.
|
|
23248
|
+
* @throws {RequiredError}
|
|
23249
|
+
*/
|
|
23250
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut: function (hospitalId, hospitalSpecialtyId, mediaId, updateMediaCommand, options) {
|
|
23251
|
+
if (options === void 0) { options = {}; }
|
|
23252
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
23253
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
23254
|
+
return __generator(this, function (_a) {
|
|
23255
|
+
switch (_a.label) {
|
|
23256
|
+
case 0:
|
|
23257
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
23258
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'hospitalId', hospitalId);
|
|
23259
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
23260
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
23261
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
23262
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdPut', 'mediaId', mediaId);
|
|
23263
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}"
|
|
23264
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
23265
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)))
|
|
23266
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
23267
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23268
|
+
if (configuration) {
|
|
23269
|
+
baseOptions = configuration.baseOptions;
|
|
23270
|
+
}
|
|
23271
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
23272
|
+
localVarHeaderParameter = {};
|
|
23273
|
+
localVarQueryParameter = {};
|
|
23274
|
+
// authentication oauth2 required
|
|
23275
|
+
// oauth required
|
|
23276
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
23277
|
+
case 1:
|
|
23278
|
+
// authentication oauth2 required
|
|
23279
|
+
// oauth required
|
|
23280
|
+
_a.sent();
|
|
23281
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
23282
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23283
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23284
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23285
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration);
|
|
23286
|
+
return [2 /*return*/, {
|
|
23287
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
23288
|
+
options: localVarRequestOptions,
|
|
23289
|
+
}];
|
|
23290
|
+
}
|
|
23291
|
+
});
|
|
23292
|
+
});
|
|
23293
|
+
},
|
|
23294
|
+
/**
|
|
23295
|
+
*
|
|
23296
|
+
* @summary Create HospitalServiceMedia.
|
|
23297
|
+
* @param {string} hospitalId
|
|
23298
|
+
* @param {string} hospitalSpecialtyId
|
|
23299
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
23300
|
+
* @param {*} [options] Override http request option.
|
|
23301
|
+
* @throws {RequiredError}
|
|
23302
|
+
*/
|
|
23303
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost: function (hospitalId, hospitalSpecialtyId, createMediaCommand, options) {
|
|
23304
|
+
if (options === void 0) { options = {}; }
|
|
23305
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
23306
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
23307
|
+
return __generator(this, function (_a) {
|
|
23308
|
+
switch (_a.label) {
|
|
23309
|
+
case 0:
|
|
23310
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
23311
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost', 'hospitalId', hospitalId);
|
|
23312
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
23313
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasPost', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
23314
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias"
|
|
23315
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
23316
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
23317
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23318
|
+
if (configuration) {
|
|
23319
|
+
baseOptions = configuration.baseOptions;
|
|
23320
|
+
}
|
|
23321
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
23322
|
+
localVarHeaderParameter = {};
|
|
23323
|
+
localVarQueryParameter = {};
|
|
23324
|
+
// authentication oauth2 required
|
|
23325
|
+
// oauth required
|
|
23326
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
23327
|
+
case 1:
|
|
23328
|
+
// authentication oauth2 required
|
|
23329
|
+
// oauth required
|
|
23330
|
+
_a.sent();
|
|
23331
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
23332
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23333
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23334
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23335
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration);
|
|
23336
|
+
return [2 /*return*/, {
|
|
23337
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
23338
|
+
options: localVarRequestOptions,
|
|
23339
|
+
}];
|
|
23340
|
+
}
|
|
23341
|
+
});
|
|
23342
|
+
});
|
|
23343
|
+
},
|
|
23344
|
+
/**
|
|
23345
|
+
*
|
|
23346
|
+
* @summary Update HospitalSpecialty.
|
|
23347
|
+
* @param {string} hospitalId
|
|
23348
|
+
* @param {string} hospitalSpecialtyId
|
|
23349
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
23350
|
+
* @param {*} [options] Override http request option.
|
|
23351
|
+
* @throws {RequiredError}
|
|
23352
|
+
*/
|
|
23353
|
+
apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut: function (hospitalId, hospitalSpecialtyId, updateHospitalSpecialtyCommand, options) {
|
|
23354
|
+
if (options === void 0) { options = {}; }
|
|
23355
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
23356
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
23357
|
+
return __generator(this, function (_a) {
|
|
23358
|
+
switch (_a.label) {
|
|
23359
|
+
case 0:
|
|
23360
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
23361
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut', 'hospitalId', hospitalId);
|
|
23362
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
23363
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdPut', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
23364
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}"
|
|
23365
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
23366
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
23367
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23368
|
+
if (configuration) {
|
|
23369
|
+
baseOptions = configuration.baseOptions;
|
|
23370
|
+
}
|
|
23371
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
23372
|
+
localVarHeaderParameter = {};
|
|
23373
|
+
localVarQueryParameter = {};
|
|
23374
|
+
// authentication oauth2 required
|
|
23375
|
+
// oauth required
|
|
23376
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
23377
|
+
case 1:
|
|
23378
|
+
// authentication oauth2 required
|
|
23379
|
+
// oauth required
|
|
23380
|
+
_a.sent();
|
|
23381
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
23382
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23383
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23384
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23385
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration);
|
|
23386
|
+
return [2 /*return*/, {
|
|
23387
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
23388
|
+
options: localVarRequestOptions,
|
|
23389
|
+
}];
|
|
23390
|
+
}
|
|
23391
|
+
});
|
|
23392
|
+
});
|
|
23393
|
+
},
|
|
23394
|
+
/**
|
|
23395
|
+
*
|
|
23396
|
+
* @summary Create HospitalSpecialty.
|
|
23397
|
+
* @param {string} hospitalId
|
|
23398
|
+
* @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
|
|
23399
|
+
* @param {*} [options] Override http request option.
|
|
23400
|
+
* @throws {RequiredError}
|
|
23401
|
+
*/
|
|
23402
|
+
apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
|
|
23403
|
+
if (options === void 0) { options = {}; }
|
|
23404
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
23405
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
23406
|
+
return __generator(this, function (_a) {
|
|
23407
|
+
switch (_a.label) {
|
|
23408
|
+
case 0:
|
|
23409
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
23410
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesPost', 'hospitalId', hospitalId);
|
|
23411
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties"
|
|
23412
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
23413
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23414
|
+
if (configuration) {
|
|
23415
|
+
baseOptions = configuration.baseOptions;
|
|
23416
|
+
}
|
|
23417
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
23418
|
+
localVarHeaderParameter = {};
|
|
23419
|
+
localVarQueryParameter = {};
|
|
23420
|
+
// authentication oauth2 required
|
|
23421
|
+
// oauth required
|
|
23422
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
23423
|
+
case 1:
|
|
23424
|
+
// authentication oauth2 required
|
|
23425
|
+
// oauth required
|
|
23426
|
+
_a.sent();
|
|
23427
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
23428
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23429
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23430
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23431
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalSpecialtyCommand, localVarRequestOptions, configuration);
|
|
22986
23432
|
return [2 /*return*/, {
|
|
22987
23433
|
url: common_1.toPathString(localVarUrlObj),
|
|
22988
23434
|
options: localVarRequestOptions,
|
|
@@ -24938,6 +25384,140 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
24938
25384
|
});
|
|
24939
25385
|
});
|
|
24940
25386
|
},
|
|
25387
|
+
/**
|
|
25388
|
+
*
|
|
25389
|
+
* @summary Get all GetAllLandings.
|
|
25390
|
+
* @param {string} hospitalId
|
|
25391
|
+
* @param {string} [name]
|
|
25392
|
+
* @param {string} [slug]
|
|
25393
|
+
* @param {string} [languageCode]
|
|
25394
|
+
* @param {boolean} [showHidden]
|
|
25395
|
+
* @param {number} [page]
|
|
25396
|
+
* @param {number} [limit]
|
|
25397
|
+
* @param {Date} [lastRetrieved]
|
|
25398
|
+
* @param {*} [options] Override http request option.
|
|
25399
|
+
* @throws {RequiredError}
|
|
25400
|
+
*/
|
|
25401
|
+
apiV1HospitalsHospitalIdLandingsGet: function (hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
25402
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
25403
|
+
var localVarAxiosArgs;
|
|
25404
|
+
return __generator(this, function (_a) {
|
|
25405
|
+
switch (_a.label) {
|
|
25406
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLandingsGet(hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options)];
|
|
25407
|
+
case 1:
|
|
25408
|
+
localVarAxiosArgs = _a.sent();
|
|
25409
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
25410
|
+
}
|
|
25411
|
+
});
|
|
25412
|
+
});
|
|
25413
|
+
},
|
|
25414
|
+
/**
|
|
25415
|
+
*
|
|
25416
|
+
* @summary Delete Landing.
|
|
25417
|
+
* @param {string} hospitalId
|
|
25418
|
+
* @param {string} landingId
|
|
25419
|
+
* @param {*} [options] Override http request option.
|
|
25420
|
+
* @throws {RequiredError}
|
|
25421
|
+
*/
|
|
25422
|
+
apiV1HospitalsHospitalIdLandingsLandingIdDelete: function (hospitalId, landingId, options) {
|
|
25423
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
25424
|
+
var localVarAxiosArgs;
|
|
25425
|
+
return __generator(this, function (_a) {
|
|
25426
|
+
switch (_a.label) {
|
|
25427
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLandingsLandingIdDelete(hospitalId, landingId, options)];
|
|
25428
|
+
case 1:
|
|
25429
|
+
localVarAxiosArgs = _a.sent();
|
|
25430
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
25431
|
+
}
|
|
25432
|
+
});
|
|
25433
|
+
});
|
|
25434
|
+
},
|
|
25435
|
+
/**
|
|
25436
|
+
*
|
|
25437
|
+
* @summary Get Landing
|
|
25438
|
+
* @param {string} hospitalId
|
|
25439
|
+
* @param {string} landingId
|
|
25440
|
+
* @param {string} [languageCode]
|
|
25441
|
+
* @param {*} [options] Override http request option.
|
|
25442
|
+
* @throws {RequiredError}
|
|
25443
|
+
*/
|
|
25444
|
+
apiV1HospitalsHospitalIdLandingsLandingIdGet: function (hospitalId, landingId, languageCode, options) {
|
|
25445
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
25446
|
+
var localVarAxiosArgs;
|
|
25447
|
+
return __generator(this, function (_a) {
|
|
25448
|
+
switch (_a.label) {
|
|
25449
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLandingsLandingIdGet(hospitalId, landingId, languageCode, options)];
|
|
25450
|
+
case 1:
|
|
25451
|
+
localVarAxiosArgs = _a.sent();
|
|
25452
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
25453
|
+
}
|
|
25454
|
+
});
|
|
25455
|
+
});
|
|
25456
|
+
},
|
|
25457
|
+
/**
|
|
25458
|
+
*
|
|
25459
|
+
* @summary Update Landing
|
|
25460
|
+
* @param {string} hospitalId
|
|
25461
|
+
* @param {string} landingId
|
|
25462
|
+
* @param {UpdateLandingCommand} [updateLandingCommand]
|
|
25463
|
+
* @param {*} [options] Override http request option.
|
|
25464
|
+
* @throws {RequiredError}
|
|
25465
|
+
*/
|
|
25466
|
+
apiV1HospitalsHospitalIdLandingsLandingIdPut: function (hospitalId, landingId, updateLandingCommand, options) {
|
|
25467
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
25468
|
+
var localVarAxiosArgs;
|
|
25469
|
+
return __generator(this, function (_a) {
|
|
25470
|
+
switch (_a.label) {
|
|
25471
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLandingsLandingIdPut(hospitalId, landingId, updateLandingCommand, options)];
|
|
25472
|
+
case 1:
|
|
25473
|
+
localVarAxiosArgs = _a.sent();
|
|
25474
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
25475
|
+
}
|
|
25476
|
+
});
|
|
25477
|
+
});
|
|
25478
|
+
},
|
|
25479
|
+
/**
|
|
25480
|
+
*
|
|
25481
|
+
* @summary Reactivate Landing
|
|
25482
|
+
* @param {string} hospitalId
|
|
25483
|
+
* @param {string} landingId
|
|
25484
|
+
* @param {*} [options] Override http request option.
|
|
25485
|
+
* @throws {RequiredError}
|
|
25486
|
+
*/
|
|
25487
|
+
apiV1HospitalsHospitalIdLandingsLandingIdReactivePut: function (hospitalId, landingId, options) {
|
|
25488
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
25489
|
+
var localVarAxiosArgs;
|
|
25490
|
+
return __generator(this, function (_a) {
|
|
25491
|
+
switch (_a.label) {
|
|
25492
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLandingsLandingIdReactivePut(hospitalId, landingId, options)];
|
|
25493
|
+
case 1:
|
|
25494
|
+
localVarAxiosArgs = _a.sent();
|
|
25495
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
25496
|
+
}
|
|
25497
|
+
});
|
|
25498
|
+
});
|
|
25499
|
+
},
|
|
25500
|
+
/**
|
|
25501
|
+
*
|
|
25502
|
+
* @summary Create HospitalLandings.
|
|
25503
|
+
* @param {string} hospitalId
|
|
25504
|
+
* @param {CreateLandingCommand} [createLandingCommand]
|
|
25505
|
+
* @param {*} [options] Override http request option.
|
|
25506
|
+
* @throws {RequiredError}
|
|
25507
|
+
*/
|
|
25508
|
+
apiV1HospitalsHospitalIdLandingsPost: function (hospitalId, createLandingCommand, options) {
|
|
25509
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
25510
|
+
var localVarAxiosArgs;
|
|
25511
|
+
return __generator(this, function (_a) {
|
|
25512
|
+
switch (_a.label) {
|
|
25513
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLandingsPost(hospitalId, createLandingCommand, options)];
|
|
25514
|
+
case 1:
|
|
25515
|
+
localVarAxiosArgs = _a.sent();
|
|
25516
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
25517
|
+
}
|
|
25518
|
+
});
|
|
25519
|
+
});
|
|
25520
|
+
},
|
|
24941
25521
|
/**
|
|
24942
25522
|
*
|
|
24943
25523
|
* @summary Get all GetAllLanguages.
|
|
@@ -26273,6 +26853,80 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
26273
26853
|
apiV1HospitalsHospitalIdHandlesPost: function (hospitalId, createHospitalSnsHandleCommand, options) {
|
|
26274
26854
|
return localVarFp.apiV1HospitalsHospitalIdHandlesPost(hospitalId, createHospitalSnsHandleCommand, options).then(function (request) { return request(axios, basePath); });
|
|
26275
26855
|
},
|
|
26856
|
+
/**
|
|
26857
|
+
*
|
|
26858
|
+
* @summary Get all GetAllLandings.
|
|
26859
|
+
* @param {string} hospitalId
|
|
26860
|
+
* @param {string} [name]
|
|
26861
|
+
* @param {string} [slug]
|
|
26862
|
+
* @param {string} [languageCode]
|
|
26863
|
+
* @param {boolean} [showHidden]
|
|
26864
|
+
* @param {number} [page]
|
|
26865
|
+
* @param {number} [limit]
|
|
26866
|
+
* @param {Date} [lastRetrieved]
|
|
26867
|
+
* @param {*} [options] Override http request option.
|
|
26868
|
+
* @throws {RequiredError}
|
|
26869
|
+
*/
|
|
26870
|
+
apiV1HospitalsHospitalIdLandingsGet: function (hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
26871
|
+
return localVarFp.apiV1HospitalsHospitalIdLandingsGet(hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
26872
|
+
},
|
|
26873
|
+
/**
|
|
26874
|
+
*
|
|
26875
|
+
* @summary Delete Landing.
|
|
26876
|
+
* @param {string} hospitalId
|
|
26877
|
+
* @param {string} landingId
|
|
26878
|
+
* @param {*} [options] Override http request option.
|
|
26879
|
+
* @throws {RequiredError}
|
|
26880
|
+
*/
|
|
26881
|
+
apiV1HospitalsHospitalIdLandingsLandingIdDelete: function (hospitalId, landingId, options) {
|
|
26882
|
+
return localVarFp.apiV1HospitalsHospitalIdLandingsLandingIdDelete(hospitalId, landingId, options).then(function (request) { return request(axios, basePath); });
|
|
26883
|
+
},
|
|
26884
|
+
/**
|
|
26885
|
+
*
|
|
26886
|
+
* @summary Get Landing
|
|
26887
|
+
* @param {string} hospitalId
|
|
26888
|
+
* @param {string} landingId
|
|
26889
|
+
* @param {string} [languageCode]
|
|
26890
|
+
* @param {*} [options] Override http request option.
|
|
26891
|
+
* @throws {RequiredError}
|
|
26892
|
+
*/
|
|
26893
|
+
apiV1HospitalsHospitalIdLandingsLandingIdGet: function (hospitalId, landingId, languageCode, options) {
|
|
26894
|
+
return localVarFp.apiV1HospitalsHospitalIdLandingsLandingIdGet(hospitalId, landingId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
26895
|
+
},
|
|
26896
|
+
/**
|
|
26897
|
+
*
|
|
26898
|
+
* @summary Update Landing
|
|
26899
|
+
* @param {string} hospitalId
|
|
26900
|
+
* @param {string} landingId
|
|
26901
|
+
* @param {UpdateLandingCommand} [updateLandingCommand]
|
|
26902
|
+
* @param {*} [options] Override http request option.
|
|
26903
|
+
* @throws {RequiredError}
|
|
26904
|
+
*/
|
|
26905
|
+
apiV1HospitalsHospitalIdLandingsLandingIdPut: function (hospitalId, landingId, updateLandingCommand, options) {
|
|
26906
|
+
return localVarFp.apiV1HospitalsHospitalIdLandingsLandingIdPut(hospitalId, landingId, updateLandingCommand, options).then(function (request) { return request(axios, basePath); });
|
|
26907
|
+
},
|
|
26908
|
+
/**
|
|
26909
|
+
*
|
|
26910
|
+
* @summary Reactivate Landing
|
|
26911
|
+
* @param {string} hospitalId
|
|
26912
|
+
* @param {string} landingId
|
|
26913
|
+
* @param {*} [options] Override http request option.
|
|
26914
|
+
* @throws {RequiredError}
|
|
26915
|
+
*/
|
|
26916
|
+
apiV1HospitalsHospitalIdLandingsLandingIdReactivePut: function (hospitalId, landingId, options) {
|
|
26917
|
+
return localVarFp.apiV1HospitalsHospitalIdLandingsLandingIdReactivePut(hospitalId, landingId, options).then(function (request) { return request(axios, basePath); });
|
|
26918
|
+
},
|
|
26919
|
+
/**
|
|
26920
|
+
*
|
|
26921
|
+
* @summary Create HospitalLandings.
|
|
26922
|
+
* @param {string} hospitalId
|
|
26923
|
+
* @param {CreateLandingCommand} [createLandingCommand]
|
|
26924
|
+
* @param {*} [options] Override http request option.
|
|
26925
|
+
* @throws {RequiredError}
|
|
26926
|
+
*/
|
|
26927
|
+
apiV1HospitalsHospitalIdLandingsPost: function (hospitalId, createLandingCommand, options) {
|
|
26928
|
+
return localVarFp.apiV1HospitalsHospitalIdLandingsPost(hospitalId, createLandingCommand, options).then(function (request) { return request(axios, basePath); });
|
|
26929
|
+
},
|
|
26276
26930
|
/**
|
|
26277
26931
|
*
|
|
26278
26932
|
* @summary Get all GetAllLanguages.
|
|
@@ -27246,6 +27900,92 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
27246
27900
|
var _this = this;
|
|
27247
27901
|
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdHandlesPost(hospitalId, createHospitalSnsHandleCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
27248
27902
|
};
|
|
27903
|
+
/**
|
|
27904
|
+
*
|
|
27905
|
+
* @summary Get all GetAllLandings.
|
|
27906
|
+
* @param {string} hospitalId
|
|
27907
|
+
* @param {string} [name]
|
|
27908
|
+
* @param {string} [slug]
|
|
27909
|
+
* @param {string} [languageCode]
|
|
27910
|
+
* @param {boolean} [showHidden]
|
|
27911
|
+
* @param {number} [page]
|
|
27912
|
+
* @param {number} [limit]
|
|
27913
|
+
* @param {Date} [lastRetrieved]
|
|
27914
|
+
* @param {*} [options] Override http request option.
|
|
27915
|
+
* @throws {RequiredError}
|
|
27916
|
+
* @memberof HospitalsApi
|
|
27917
|
+
*/
|
|
27918
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdLandingsGet = function (hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
27919
|
+
var _this = this;
|
|
27920
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLandingsGet(hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
27921
|
+
};
|
|
27922
|
+
/**
|
|
27923
|
+
*
|
|
27924
|
+
* @summary Delete Landing.
|
|
27925
|
+
* @param {string} hospitalId
|
|
27926
|
+
* @param {string} landingId
|
|
27927
|
+
* @param {*} [options] Override http request option.
|
|
27928
|
+
* @throws {RequiredError}
|
|
27929
|
+
* @memberof HospitalsApi
|
|
27930
|
+
*/
|
|
27931
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdLandingsLandingIdDelete = function (hospitalId, landingId, options) {
|
|
27932
|
+
var _this = this;
|
|
27933
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLandingsLandingIdDelete(hospitalId, landingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
27934
|
+
};
|
|
27935
|
+
/**
|
|
27936
|
+
*
|
|
27937
|
+
* @summary Get Landing
|
|
27938
|
+
* @param {string} hospitalId
|
|
27939
|
+
* @param {string} landingId
|
|
27940
|
+
* @param {string} [languageCode]
|
|
27941
|
+
* @param {*} [options] Override http request option.
|
|
27942
|
+
* @throws {RequiredError}
|
|
27943
|
+
* @memberof HospitalsApi
|
|
27944
|
+
*/
|
|
27945
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdLandingsLandingIdGet = function (hospitalId, landingId, languageCode, options) {
|
|
27946
|
+
var _this = this;
|
|
27947
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLandingsLandingIdGet(hospitalId, landingId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
27948
|
+
};
|
|
27949
|
+
/**
|
|
27950
|
+
*
|
|
27951
|
+
* @summary Update Landing
|
|
27952
|
+
* @param {string} hospitalId
|
|
27953
|
+
* @param {string} landingId
|
|
27954
|
+
* @param {UpdateLandingCommand} [updateLandingCommand]
|
|
27955
|
+
* @param {*} [options] Override http request option.
|
|
27956
|
+
* @throws {RequiredError}
|
|
27957
|
+
* @memberof HospitalsApi
|
|
27958
|
+
*/
|
|
27959
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdLandingsLandingIdPut = function (hospitalId, landingId, updateLandingCommand, options) {
|
|
27960
|
+
var _this = this;
|
|
27961
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLandingsLandingIdPut(hospitalId, landingId, updateLandingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
27962
|
+
};
|
|
27963
|
+
/**
|
|
27964
|
+
*
|
|
27965
|
+
* @summary Reactivate Landing
|
|
27966
|
+
* @param {string} hospitalId
|
|
27967
|
+
* @param {string} landingId
|
|
27968
|
+
* @param {*} [options] Override http request option.
|
|
27969
|
+
* @throws {RequiredError}
|
|
27970
|
+
* @memberof HospitalsApi
|
|
27971
|
+
*/
|
|
27972
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdLandingsLandingIdReactivePut = function (hospitalId, landingId, options) {
|
|
27973
|
+
var _this = this;
|
|
27974
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLandingsLandingIdReactivePut(hospitalId, landingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
27975
|
+
};
|
|
27976
|
+
/**
|
|
27977
|
+
*
|
|
27978
|
+
* @summary Create HospitalLandings.
|
|
27979
|
+
* @param {string} hospitalId
|
|
27980
|
+
* @param {CreateLandingCommand} [createLandingCommand]
|
|
27981
|
+
* @param {*} [options] Override http request option.
|
|
27982
|
+
* @throws {RequiredError}
|
|
27983
|
+
* @memberof HospitalsApi
|
|
27984
|
+
*/
|
|
27985
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdLandingsPost = function (hospitalId, createLandingCommand, options) {
|
|
27986
|
+
var _this = this;
|
|
27987
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLandingsPost(hospitalId, createLandingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
27988
|
+
};
|
|
27249
27989
|
/**
|
|
27250
27990
|
*
|
|
27251
27991
|
* @summary Get all GetAllLanguages.
|
|
@@ -32218,6 +32958,8 @@ exports.ServiceReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
32218
32958
|
* @param {string} [id]
|
|
32219
32959
|
* @param {string} [serviceId]
|
|
32220
32960
|
* @param {string} [serviceName]
|
|
32961
|
+
* @param {string} [hospitalId]
|
|
32962
|
+
* @param {string} [hospitalName]
|
|
32221
32963
|
* @param {string} [patientId]
|
|
32222
32964
|
* @param {string} [patientName]
|
|
32223
32965
|
* @param {Gender} [gender]
|
|
@@ -32232,7 +32974,7 @@ exports.ServiceReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
32232
32974
|
* @param {*} [options] Override http request option.
|
|
32233
32975
|
* @throws {RequiredError}
|
|
32234
32976
|
*/
|
|
32235
|
-
apiV1ServicereviewsGet: function (id, serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
32977
|
+
apiV1ServicereviewsGet: function (id, serviceId, serviceName, hospitalId, hospitalName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
32236
32978
|
if (options === void 0) { options = {}; }
|
|
32237
32979
|
return __awaiter(_this, void 0, void 0, function () {
|
|
32238
32980
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -32263,6 +33005,12 @@ exports.ServiceReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
32263
33005
|
if (serviceName !== undefined) {
|
|
32264
33006
|
localVarQueryParameter['ServiceName'] = serviceName;
|
|
32265
33007
|
}
|
|
33008
|
+
if (hospitalId !== undefined) {
|
|
33009
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
33010
|
+
}
|
|
33011
|
+
if (hospitalName !== undefined) {
|
|
33012
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
33013
|
+
}
|
|
32266
33014
|
if (patientId !== undefined) {
|
|
32267
33015
|
localVarQueryParameter['PatientId'] = patientId;
|
|
32268
33016
|
}
|
|
@@ -32756,6 +33504,8 @@ exports.ServiceReviewsApiFp = function (configuration) {
|
|
|
32756
33504
|
* @param {string} [id]
|
|
32757
33505
|
* @param {string} [serviceId]
|
|
32758
33506
|
* @param {string} [serviceName]
|
|
33507
|
+
* @param {string} [hospitalId]
|
|
33508
|
+
* @param {string} [hospitalName]
|
|
32759
33509
|
* @param {string} [patientId]
|
|
32760
33510
|
* @param {string} [patientName]
|
|
32761
33511
|
* @param {Gender} [gender]
|
|
@@ -32770,12 +33520,12 @@ exports.ServiceReviewsApiFp = function (configuration) {
|
|
|
32770
33520
|
* @param {*} [options] Override http request option.
|
|
32771
33521
|
* @throws {RequiredError}
|
|
32772
33522
|
*/
|
|
32773
|
-
apiV1ServicereviewsGet: function (id, serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
33523
|
+
apiV1ServicereviewsGet: function (id, serviceId, serviceName, hospitalId, hospitalName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
32774
33524
|
return __awaiter(this, void 0, void 0, function () {
|
|
32775
33525
|
var localVarAxiosArgs;
|
|
32776
33526
|
return __generator(this, function (_a) {
|
|
32777
33527
|
switch (_a.label) {
|
|
32778
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewsGet(id, serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options)];
|
|
33528
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewsGet(id, serviceId, serviceName, hospitalId, hospitalName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options)];
|
|
32779
33529
|
case 1:
|
|
32780
33530
|
localVarAxiosArgs = _a.sent();
|
|
32781
33531
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -32989,6 +33739,8 @@ exports.ServiceReviewsApiFactory = function (configuration, basePath, axios) {
|
|
|
32989
33739
|
* @param {string} [id]
|
|
32990
33740
|
* @param {string} [serviceId]
|
|
32991
33741
|
* @param {string} [serviceName]
|
|
33742
|
+
* @param {string} [hospitalId]
|
|
33743
|
+
* @param {string} [hospitalName]
|
|
32992
33744
|
* @param {string} [patientId]
|
|
32993
33745
|
* @param {string} [patientName]
|
|
32994
33746
|
* @param {Gender} [gender]
|
|
@@ -33003,8 +33755,8 @@ exports.ServiceReviewsApiFactory = function (configuration, basePath, axios) {
|
|
|
33003
33755
|
* @param {*} [options] Override http request option.
|
|
33004
33756
|
* @throws {RequiredError}
|
|
33005
33757
|
*/
|
|
33006
|
-
apiV1ServicereviewsGet: function (id, serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
33007
|
-
return localVarFp.apiV1ServicereviewsGet(id, serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
33758
|
+
apiV1ServicereviewsGet: function (id, serviceId, serviceName, hospitalId, hospitalName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
33759
|
+
return localVarFp.apiV1ServicereviewsGet(id, serviceId, serviceName, hospitalId, hospitalName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
33008
33760
|
},
|
|
33009
33761
|
/**
|
|
33010
33762
|
*
|
|
@@ -33126,6 +33878,8 @@ var ServiceReviewsApi = /** @class */ (function (_super) {
|
|
|
33126
33878
|
* @param {string} [id]
|
|
33127
33879
|
* @param {string} [serviceId]
|
|
33128
33880
|
* @param {string} [serviceName]
|
|
33881
|
+
* @param {string} [hospitalId]
|
|
33882
|
+
* @param {string} [hospitalName]
|
|
33129
33883
|
* @param {string} [patientId]
|
|
33130
33884
|
* @param {string} [patientName]
|
|
33131
33885
|
* @param {Gender} [gender]
|
|
@@ -33141,9 +33895,9 @@ var ServiceReviewsApi = /** @class */ (function (_super) {
|
|
|
33141
33895
|
* @throws {RequiredError}
|
|
33142
33896
|
* @memberof ServiceReviewsApi
|
|
33143
33897
|
*/
|
|
33144
|
-
ServiceReviewsApi.prototype.apiV1ServicereviewsGet = function (id, serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
33898
|
+
ServiceReviewsApi.prototype.apiV1ServicereviewsGet = function (id, serviceId, serviceName, hospitalId, hospitalName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
33145
33899
|
var _this = this;
|
|
33146
|
-
return exports.ServiceReviewsApiFp(this.configuration).apiV1ServicereviewsGet(id, serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
33900
|
+
return exports.ServiceReviewsApiFp(this.configuration).apiV1ServicereviewsGet(id, serviceId, serviceName, hospitalId, hospitalName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
33147
33901
|
};
|
|
33148
33902
|
/**
|
|
33149
33903
|
*
|