ch-admin-api-client-typescript 2.2.10 → 2.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/api.js CHANGED
@@ -76,7 +76,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
76
76
  return (mod && mod.__esModule) ? mod : { "default": mod };
77
77
  };
78
78
  Object.defineProperty(exports, "__esModule", { value: true });
79
- exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = 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.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
79
+ exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = 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.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
80
80
  var axios_1 = __importDefault(require("axios"));
81
81
  // Some imports not used depending on template conditions
82
82
  // @ts-ignore
@@ -18855,6 +18855,988 @@ var NotificationsApi = /** @class */ (function (_super) {
18855
18855
  return NotificationsApi;
18856
18856
  }(base_1.BaseAPI));
18857
18857
  exports.NotificationsApi = NotificationsApi;
18858
+ /**
18859
+ * PlansApi - axios parameter creator
18860
+ * @export
18861
+ */
18862
+ exports.PlansApiAxiosParamCreator = function (configuration) {
18863
+ var _this = this;
18864
+ return {
18865
+ /**
18866
+ *
18867
+ * @summary Get all plans.
18868
+ * @param {string} [id]
18869
+ * @param {string} [name]
18870
+ * @param {number} [page]
18871
+ * @param {number} [limit]
18872
+ * @param {Date} [lastRetrieved]
18873
+ * @param {*} [options] Override http request option.
18874
+ * @throws {RequiredError}
18875
+ */
18876
+ apiV1PlansGet: function (id, name, page, limit, lastRetrieved, options) {
18877
+ if (options === void 0) { options = {}; }
18878
+ return __awaiter(_this, void 0, void 0, function () {
18879
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18880
+ return __generator(this, function (_a) {
18881
+ switch (_a.label) {
18882
+ case 0:
18883
+ localVarPath = "/api/v1/plans";
18884
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18885
+ if (configuration) {
18886
+ baseOptions = configuration.baseOptions;
18887
+ }
18888
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18889
+ localVarHeaderParameter = {};
18890
+ localVarQueryParameter = {};
18891
+ // authentication oauth2 required
18892
+ // oauth required
18893
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18894
+ case 1:
18895
+ // authentication oauth2 required
18896
+ // oauth required
18897
+ _a.sent();
18898
+ if (id !== undefined) {
18899
+ localVarQueryParameter['Id'] = id;
18900
+ }
18901
+ if (name !== undefined) {
18902
+ localVarQueryParameter['Name'] = name;
18903
+ }
18904
+ if (page !== undefined) {
18905
+ localVarQueryParameter['page'] = page;
18906
+ }
18907
+ if (limit !== undefined) {
18908
+ localVarQueryParameter['limit'] = limit;
18909
+ }
18910
+ if (lastRetrieved !== undefined) {
18911
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
18912
+ lastRetrieved.toISOString() :
18913
+ lastRetrieved;
18914
+ }
18915
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18916
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18917
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18918
+ return [2 /*return*/, {
18919
+ url: common_1.toPathString(localVarUrlObj),
18920
+ options: localVarRequestOptions,
18921
+ }];
18922
+ }
18923
+ });
18924
+ });
18925
+ },
18926
+ /**
18927
+ *
18928
+ * @summary Delete plan.
18929
+ * @param {string} planId
18930
+ * @param {*} [options] Override http request option.
18931
+ * @throws {RequiredError}
18932
+ */
18933
+ apiV1PlansPlanIdDelete: function (planId, options) {
18934
+ if (options === void 0) { options = {}; }
18935
+ return __awaiter(_this, void 0, void 0, function () {
18936
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18937
+ return __generator(this, function (_a) {
18938
+ switch (_a.label) {
18939
+ case 0:
18940
+ // verify required parameter 'planId' is not null or undefined
18941
+ common_1.assertParamExists('apiV1PlansPlanIdDelete', 'planId', planId);
18942
+ localVarPath = "/api/v1/plans/{planId}"
18943
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
18944
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18945
+ if (configuration) {
18946
+ baseOptions = configuration.baseOptions;
18947
+ }
18948
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
18949
+ localVarHeaderParameter = {};
18950
+ localVarQueryParameter = {};
18951
+ // authentication oauth2 required
18952
+ // oauth required
18953
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18954
+ case 1:
18955
+ // authentication oauth2 required
18956
+ // oauth required
18957
+ _a.sent();
18958
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18959
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18960
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18961
+ return [2 /*return*/, {
18962
+ url: common_1.toPathString(localVarUrlObj),
18963
+ options: localVarRequestOptions,
18964
+ }];
18965
+ }
18966
+ });
18967
+ });
18968
+ },
18969
+ /**
18970
+ *
18971
+ * @summary Get plan.
18972
+ * @param {string} planId
18973
+ * @param {*} [options] Override http request option.
18974
+ * @throws {RequiredError}
18975
+ */
18976
+ apiV1PlansPlanIdGet: function (planId, options) {
18977
+ if (options === void 0) { options = {}; }
18978
+ return __awaiter(_this, void 0, void 0, function () {
18979
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18980
+ return __generator(this, function (_a) {
18981
+ switch (_a.label) {
18982
+ case 0:
18983
+ // verify required parameter 'planId' is not null or undefined
18984
+ common_1.assertParamExists('apiV1PlansPlanIdGet', 'planId', planId);
18985
+ localVarPath = "/api/v1/plans/{planId}"
18986
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
18987
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18988
+ if (configuration) {
18989
+ baseOptions = configuration.baseOptions;
18990
+ }
18991
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18992
+ localVarHeaderParameter = {};
18993
+ localVarQueryParameter = {};
18994
+ // authentication oauth2 required
18995
+ // oauth required
18996
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18997
+ case 1:
18998
+ // authentication oauth2 required
18999
+ // oauth required
19000
+ _a.sent();
19001
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19002
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19003
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19004
+ return [2 /*return*/, {
19005
+ url: common_1.toPathString(localVarUrlObj),
19006
+ options: localVarRequestOptions,
19007
+ }];
19008
+ }
19009
+ });
19010
+ });
19011
+ },
19012
+ /**
19013
+ *
19014
+ * @summary Get all plan hospital.
19015
+ * @param {string} planId
19016
+ * @param {number} [page]
19017
+ * @param {number} [limit]
19018
+ * @param {Date} [lastRetrieved]
19019
+ * @param {*} [options] Override http request option.
19020
+ * @throws {RequiredError}
19021
+ */
19022
+ apiV1PlansPlanIdHospitalsGet: function (planId, page, limit, lastRetrieved, options) {
19023
+ if (options === void 0) { options = {}; }
19024
+ return __awaiter(_this, void 0, void 0, function () {
19025
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19026
+ return __generator(this, function (_a) {
19027
+ switch (_a.label) {
19028
+ case 0:
19029
+ // verify required parameter 'planId' is not null or undefined
19030
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsGet', 'planId', planId);
19031
+ localVarPath = "/api/v1/plans/{planId}/hospitals"
19032
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
19033
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19034
+ if (configuration) {
19035
+ baseOptions = configuration.baseOptions;
19036
+ }
19037
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19038
+ localVarHeaderParameter = {};
19039
+ localVarQueryParameter = {};
19040
+ // authentication oauth2 required
19041
+ // oauth required
19042
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19043
+ case 1:
19044
+ // authentication oauth2 required
19045
+ // oauth required
19046
+ _a.sent();
19047
+ if (page !== undefined) {
19048
+ localVarQueryParameter['page'] = page;
19049
+ }
19050
+ if (limit !== undefined) {
19051
+ localVarQueryParameter['limit'] = limit;
19052
+ }
19053
+ if (lastRetrieved !== undefined) {
19054
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
19055
+ lastRetrieved.toISOString() :
19056
+ lastRetrieved;
19057
+ }
19058
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19059
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19060
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19061
+ return [2 /*return*/, {
19062
+ url: common_1.toPathString(localVarUrlObj),
19063
+ options: localVarRequestOptions,
19064
+ }];
19065
+ }
19066
+ });
19067
+ });
19068
+ },
19069
+ /**
19070
+ *
19071
+ * @summary Delete plan hospital.
19072
+ * @param {string} planId
19073
+ * @param {string} hospitalId
19074
+ * @param {*} [options] Override http request option.
19075
+ * @throws {RequiredError}
19076
+ */
19077
+ apiV1PlansPlanIdHospitalsHospitalIdDelete: function (planId, hospitalId, options) {
19078
+ if (options === void 0) { options = {}; }
19079
+ return __awaiter(_this, void 0, void 0, function () {
19080
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19081
+ return __generator(this, function (_a) {
19082
+ switch (_a.label) {
19083
+ case 0:
19084
+ // verify required parameter 'planId' is not null or undefined
19085
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdDelete', 'planId', planId);
19086
+ // verify required parameter 'hospitalId' is not null or undefined
19087
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdDelete', 'hospitalId', hospitalId);
19088
+ localVarPath = "/api/v1/plans/{planId}/hospitals/{hospitalId}"
19089
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)))
19090
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
19091
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19092
+ if (configuration) {
19093
+ baseOptions = configuration.baseOptions;
19094
+ }
19095
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
19096
+ localVarHeaderParameter = {};
19097
+ localVarQueryParameter = {};
19098
+ // authentication oauth2 required
19099
+ // oauth required
19100
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19101
+ case 1:
19102
+ // authentication oauth2 required
19103
+ // oauth required
19104
+ _a.sent();
19105
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19106
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19107
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19108
+ return [2 /*return*/, {
19109
+ url: common_1.toPathString(localVarUrlObj),
19110
+ options: localVarRequestOptions,
19111
+ }];
19112
+ }
19113
+ });
19114
+ });
19115
+ },
19116
+ /**
19117
+ *
19118
+ * @summary Get plan hospital.
19119
+ * @param {string} planId
19120
+ * @param {string} hospitalId
19121
+ * @param {*} [options] Override http request option.
19122
+ * @throws {RequiredError}
19123
+ */
19124
+ apiV1PlansPlanIdHospitalsHospitalIdGet: function (planId, hospitalId, options) {
19125
+ if (options === void 0) { options = {}; }
19126
+ return __awaiter(_this, void 0, void 0, function () {
19127
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19128
+ return __generator(this, function (_a) {
19129
+ switch (_a.label) {
19130
+ case 0:
19131
+ // verify required parameter 'planId' is not null or undefined
19132
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdGet', 'planId', planId);
19133
+ // verify required parameter 'hospitalId' is not null or undefined
19134
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdGet', 'hospitalId', hospitalId);
19135
+ localVarPath = "/api/v1/plans/{planId}/hospitals/{hospitalId}"
19136
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)))
19137
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
19138
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19139
+ if (configuration) {
19140
+ baseOptions = configuration.baseOptions;
19141
+ }
19142
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19143
+ localVarHeaderParameter = {};
19144
+ localVarQueryParameter = {};
19145
+ // authentication oauth2 required
19146
+ // oauth required
19147
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19148
+ case 1:
19149
+ // authentication oauth2 required
19150
+ // oauth required
19151
+ _a.sent();
19152
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19153
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19154
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19155
+ return [2 /*return*/, {
19156
+ url: common_1.toPathString(localVarUrlObj),
19157
+ options: localVarRequestOptions,
19158
+ }];
19159
+ }
19160
+ });
19161
+ });
19162
+ },
19163
+ /**
19164
+ *
19165
+ * @summary Update plan hospital.
19166
+ * @param {string} planId
19167
+ * @param {string} hospitalId
19168
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
19169
+ * @param {*} [options] Override http request option.
19170
+ * @throws {RequiredError}
19171
+ */
19172
+ apiV1PlansPlanIdHospitalsHospitalIdPut: function (planId, hospitalId, updatePlanHospitalCommand, options) {
19173
+ if (options === void 0) { options = {}; }
19174
+ return __awaiter(_this, void 0, void 0, function () {
19175
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19176
+ return __generator(this, function (_a) {
19177
+ switch (_a.label) {
19178
+ case 0:
19179
+ // verify required parameter 'planId' is not null or undefined
19180
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdPut', 'planId', planId);
19181
+ // verify required parameter 'hospitalId' is not null or undefined
19182
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdPut', 'hospitalId', hospitalId);
19183
+ localVarPath = "/api/v1/plans/{planId}/hospitals/{hospitalId}"
19184
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)))
19185
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
19186
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19187
+ if (configuration) {
19188
+ baseOptions = configuration.baseOptions;
19189
+ }
19190
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
19191
+ localVarHeaderParameter = {};
19192
+ localVarQueryParameter = {};
19193
+ // authentication oauth2 required
19194
+ // oauth required
19195
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19196
+ case 1:
19197
+ // authentication oauth2 required
19198
+ // oauth required
19199
+ _a.sent();
19200
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19201
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19202
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19203
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19204
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updatePlanHospitalCommand, localVarRequestOptions, configuration);
19205
+ return [2 /*return*/, {
19206
+ url: common_1.toPathString(localVarUrlObj),
19207
+ options: localVarRequestOptions,
19208
+ }];
19209
+ }
19210
+ });
19211
+ });
19212
+ },
19213
+ /**
19214
+ *
19215
+ * @summary Create plan hospital.
19216
+ * @param {string} planId
19217
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
19218
+ * @param {*} [options] Override http request option.
19219
+ * @throws {RequiredError}
19220
+ */
19221
+ apiV1PlansPlanIdHospitalsPost: function (planId, createPlanHospitalCommand, options) {
19222
+ if (options === void 0) { options = {}; }
19223
+ return __awaiter(_this, void 0, void 0, function () {
19224
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19225
+ return __generator(this, function (_a) {
19226
+ switch (_a.label) {
19227
+ case 0:
19228
+ // verify required parameter 'planId' is not null or undefined
19229
+ common_1.assertParamExists('apiV1PlansPlanIdHospitalsPost', 'planId', planId);
19230
+ localVarPath = "/api/v1/plans/{planId}/hospitals"
19231
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
19232
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19233
+ if (configuration) {
19234
+ baseOptions = configuration.baseOptions;
19235
+ }
19236
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
19237
+ localVarHeaderParameter = {};
19238
+ localVarQueryParameter = {};
19239
+ // authentication oauth2 required
19240
+ // oauth required
19241
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19242
+ case 1:
19243
+ // authentication oauth2 required
19244
+ // oauth required
19245
+ _a.sent();
19246
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19247
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19248
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19249
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19250
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPlanHospitalCommand, localVarRequestOptions, configuration);
19251
+ return [2 /*return*/, {
19252
+ url: common_1.toPathString(localVarUrlObj),
19253
+ options: localVarRequestOptions,
19254
+ }];
19255
+ }
19256
+ });
19257
+ });
19258
+ },
19259
+ /**
19260
+ *
19261
+ * @summary Update plan.
19262
+ * @param {string} planId
19263
+ * @param {UpdatePlanCommand} [updatePlanCommand]
19264
+ * @param {*} [options] Override http request option.
19265
+ * @throws {RequiredError}
19266
+ */
19267
+ apiV1PlansPlanIdPut: function (planId, updatePlanCommand, options) {
19268
+ if (options === void 0) { options = {}; }
19269
+ return __awaiter(_this, void 0, void 0, function () {
19270
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19271
+ return __generator(this, function (_a) {
19272
+ switch (_a.label) {
19273
+ case 0:
19274
+ // verify required parameter 'planId' is not null or undefined
19275
+ common_1.assertParamExists('apiV1PlansPlanIdPut', 'planId', planId);
19276
+ localVarPath = "/api/v1/plans/{planId}"
19277
+ .replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
19278
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19279
+ if (configuration) {
19280
+ baseOptions = configuration.baseOptions;
19281
+ }
19282
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
19283
+ localVarHeaderParameter = {};
19284
+ localVarQueryParameter = {};
19285
+ // authentication oauth2 required
19286
+ // oauth required
19287
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19288
+ case 1:
19289
+ // authentication oauth2 required
19290
+ // oauth required
19291
+ _a.sent();
19292
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19293
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19294
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19295
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19296
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updatePlanCommand, localVarRequestOptions, configuration);
19297
+ return [2 /*return*/, {
19298
+ url: common_1.toPathString(localVarUrlObj),
19299
+ options: localVarRequestOptions,
19300
+ }];
19301
+ }
19302
+ });
19303
+ });
19304
+ },
19305
+ /**
19306
+ *
19307
+ * @summary Create a plan.
19308
+ * @param {CreatePlanCommand} [createPlanCommand]
19309
+ * @param {*} [options] Override http request option.
19310
+ * @throws {RequiredError}
19311
+ */
19312
+ apiV1PlansPost: function (createPlanCommand, options) {
19313
+ if (options === void 0) { options = {}; }
19314
+ return __awaiter(_this, void 0, void 0, function () {
19315
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19316
+ return __generator(this, function (_a) {
19317
+ switch (_a.label) {
19318
+ case 0:
19319
+ localVarPath = "/api/v1/plans";
19320
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19321
+ if (configuration) {
19322
+ baseOptions = configuration.baseOptions;
19323
+ }
19324
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
19325
+ localVarHeaderParameter = {};
19326
+ localVarQueryParameter = {};
19327
+ // authentication oauth2 required
19328
+ // oauth required
19329
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19330
+ case 1:
19331
+ // authentication oauth2 required
19332
+ // oauth required
19333
+ _a.sent();
19334
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19335
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19336
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19337
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19338
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPlanCommand, localVarRequestOptions, configuration);
19339
+ return [2 /*return*/, {
19340
+ url: common_1.toPathString(localVarUrlObj),
19341
+ options: localVarRequestOptions,
19342
+ }];
19343
+ }
19344
+ });
19345
+ });
19346
+ },
19347
+ };
19348
+ };
19349
+ /**
19350
+ * PlansApi - functional programming interface
19351
+ * @export
19352
+ */
19353
+ exports.PlansApiFp = function (configuration) {
19354
+ var localVarAxiosParamCreator = exports.PlansApiAxiosParamCreator(configuration);
19355
+ return {
19356
+ /**
19357
+ *
19358
+ * @summary Get all plans.
19359
+ * @param {string} [id]
19360
+ * @param {string} [name]
19361
+ * @param {number} [page]
19362
+ * @param {number} [limit]
19363
+ * @param {Date} [lastRetrieved]
19364
+ * @param {*} [options] Override http request option.
19365
+ * @throws {RequiredError}
19366
+ */
19367
+ apiV1PlansGet: function (id, name, page, limit, lastRetrieved, options) {
19368
+ return __awaiter(this, void 0, void 0, function () {
19369
+ var localVarAxiosArgs;
19370
+ return __generator(this, function (_a) {
19371
+ switch (_a.label) {
19372
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansGet(id, name, page, limit, lastRetrieved, options)];
19373
+ case 1:
19374
+ localVarAxiosArgs = _a.sent();
19375
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19376
+ }
19377
+ });
19378
+ });
19379
+ },
19380
+ /**
19381
+ *
19382
+ * @summary Delete plan.
19383
+ * @param {string} planId
19384
+ * @param {*} [options] Override http request option.
19385
+ * @throws {RequiredError}
19386
+ */
19387
+ apiV1PlansPlanIdDelete: function (planId, options) {
19388
+ return __awaiter(this, void 0, void 0, function () {
19389
+ var localVarAxiosArgs;
19390
+ return __generator(this, function (_a) {
19391
+ switch (_a.label) {
19392
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdDelete(planId, options)];
19393
+ case 1:
19394
+ localVarAxiosArgs = _a.sent();
19395
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19396
+ }
19397
+ });
19398
+ });
19399
+ },
19400
+ /**
19401
+ *
19402
+ * @summary Get plan.
19403
+ * @param {string} planId
19404
+ * @param {*} [options] Override http request option.
19405
+ * @throws {RequiredError}
19406
+ */
19407
+ apiV1PlansPlanIdGet: function (planId, options) {
19408
+ return __awaiter(this, void 0, void 0, function () {
19409
+ var localVarAxiosArgs;
19410
+ return __generator(this, function (_a) {
19411
+ switch (_a.label) {
19412
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdGet(planId, options)];
19413
+ case 1:
19414
+ localVarAxiosArgs = _a.sent();
19415
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19416
+ }
19417
+ });
19418
+ });
19419
+ },
19420
+ /**
19421
+ *
19422
+ * @summary Get all plan hospital.
19423
+ * @param {string} planId
19424
+ * @param {number} [page]
19425
+ * @param {number} [limit]
19426
+ * @param {Date} [lastRetrieved]
19427
+ * @param {*} [options] Override http request option.
19428
+ * @throws {RequiredError}
19429
+ */
19430
+ apiV1PlansPlanIdHospitalsGet: function (planId, page, limit, lastRetrieved, options) {
19431
+ return __awaiter(this, void 0, void 0, function () {
19432
+ var localVarAxiosArgs;
19433
+ return __generator(this, function (_a) {
19434
+ switch (_a.label) {
19435
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options)];
19436
+ case 1:
19437
+ localVarAxiosArgs = _a.sent();
19438
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19439
+ }
19440
+ });
19441
+ });
19442
+ },
19443
+ /**
19444
+ *
19445
+ * @summary Delete plan hospital.
19446
+ * @param {string} planId
19447
+ * @param {string} hospitalId
19448
+ * @param {*} [options] Override http request option.
19449
+ * @throws {RequiredError}
19450
+ */
19451
+ apiV1PlansPlanIdHospitalsHospitalIdDelete: function (planId, hospitalId, options) {
19452
+ return __awaiter(this, void 0, void 0, function () {
19453
+ var localVarAxiosArgs;
19454
+ return __generator(this, function (_a) {
19455
+ switch (_a.label) {
19456
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options)];
19457
+ case 1:
19458
+ localVarAxiosArgs = _a.sent();
19459
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19460
+ }
19461
+ });
19462
+ });
19463
+ },
19464
+ /**
19465
+ *
19466
+ * @summary Get plan hospital.
19467
+ * @param {string} planId
19468
+ * @param {string} hospitalId
19469
+ * @param {*} [options] Override http request option.
19470
+ * @throws {RequiredError}
19471
+ */
19472
+ apiV1PlansPlanIdHospitalsHospitalIdGet: function (planId, hospitalId, options) {
19473
+ return __awaiter(this, void 0, void 0, function () {
19474
+ var localVarAxiosArgs;
19475
+ return __generator(this, function (_a) {
19476
+ switch (_a.label) {
19477
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options)];
19478
+ case 1:
19479
+ localVarAxiosArgs = _a.sent();
19480
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19481
+ }
19482
+ });
19483
+ });
19484
+ },
19485
+ /**
19486
+ *
19487
+ * @summary Update plan hospital.
19488
+ * @param {string} planId
19489
+ * @param {string} hospitalId
19490
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
19491
+ * @param {*} [options] Override http request option.
19492
+ * @throws {RequiredError}
19493
+ */
19494
+ apiV1PlansPlanIdHospitalsHospitalIdPut: function (planId, hospitalId, updatePlanHospitalCommand, options) {
19495
+ return __awaiter(this, void 0, void 0, function () {
19496
+ var localVarAxiosArgs;
19497
+ return __generator(this, function (_a) {
19498
+ switch (_a.label) {
19499
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options)];
19500
+ case 1:
19501
+ localVarAxiosArgs = _a.sent();
19502
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19503
+ }
19504
+ });
19505
+ });
19506
+ },
19507
+ /**
19508
+ *
19509
+ * @summary Create plan hospital.
19510
+ * @param {string} planId
19511
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
19512
+ * @param {*} [options] Override http request option.
19513
+ * @throws {RequiredError}
19514
+ */
19515
+ apiV1PlansPlanIdHospitalsPost: function (planId, createPlanHospitalCommand, options) {
19516
+ return __awaiter(this, void 0, void 0, function () {
19517
+ var localVarAxiosArgs;
19518
+ return __generator(this, function (_a) {
19519
+ switch (_a.label) {
19520
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options)];
19521
+ case 1:
19522
+ localVarAxiosArgs = _a.sent();
19523
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19524
+ }
19525
+ });
19526
+ });
19527
+ },
19528
+ /**
19529
+ *
19530
+ * @summary Update plan.
19531
+ * @param {string} planId
19532
+ * @param {UpdatePlanCommand} [updatePlanCommand]
19533
+ * @param {*} [options] Override http request option.
19534
+ * @throws {RequiredError}
19535
+ */
19536
+ apiV1PlansPlanIdPut: function (planId, updatePlanCommand, options) {
19537
+ return __awaiter(this, void 0, void 0, function () {
19538
+ var localVarAxiosArgs;
19539
+ return __generator(this, function (_a) {
19540
+ switch (_a.label) {
19541
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdPut(planId, updatePlanCommand, options)];
19542
+ case 1:
19543
+ localVarAxiosArgs = _a.sent();
19544
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19545
+ }
19546
+ });
19547
+ });
19548
+ },
19549
+ /**
19550
+ *
19551
+ * @summary Create a plan.
19552
+ * @param {CreatePlanCommand} [createPlanCommand]
19553
+ * @param {*} [options] Override http request option.
19554
+ * @throws {RequiredError}
19555
+ */
19556
+ apiV1PlansPost: function (createPlanCommand, options) {
19557
+ return __awaiter(this, void 0, void 0, function () {
19558
+ var localVarAxiosArgs;
19559
+ return __generator(this, function (_a) {
19560
+ switch (_a.label) {
19561
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPost(createPlanCommand, options)];
19562
+ case 1:
19563
+ localVarAxiosArgs = _a.sent();
19564
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19565
+ }
19566
+ });
19567
+ });
19568
+ },
19569
+ };
19570
+ };
19571
+ /**
19572
+ * PlansApi - factory interface
19573
+ * @export
19574
+ */
19575
+ exports.PlansApiFactory = function (configuration, basePath, axios) {
19576
+ var localVarFp = exports.PlansApiFp(configuration);
19577
+ return {
19578
+ /**
19579
+ *
19580
+ * @summary Get all plans.
19581
+ * @param {string} [id]
19582
+ * @param {string} [name]
19583
+ * @param {number} [page]
19584
+ * @param {number} [limit]
19585
+ * @param {Date} [lastRetrieved]
19586
+ * @param {*} [options] Override http request option.
19587
+ * @throws {RequiredError}
19588
+ */
19589
+ apiV1PlansGet: function (id, name, page, limit, lastRetrieved, options) {
19590
+ return localVarFp.apiV1PlansGet(id, name, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
19591
+ },
19592
+ /**
19593
+ *
19594
+ * @summary Delete plan.
19595
+ * @param {string} planId
19596
+ * @param {*} [options] Override http request option.
19597
+ * @throws {RequiredError}
19598
+ */
19599
+ apiV1PlansPlanIdDelete: function (planId, options) {
19600
+ return localVarFp.apiV1PlansPlanIdDelete(planId, options).then(function (request) { return request(axios, basePath); });
19601
+ },
19602
+ /**
19603
+ *
19604
+ * @summary Get plan.
19605
+ * @param {string} planId
19606
+ * @param {*} [options] Override http request option.
19607
+ * @throws {RequiredError}
19608
+ */
19609
+ apiV1PlansPlanIdGet: function (planId, options) {
19610
+ return localVarFp.apiV1PlansPlanIdGet(planId, options).then(function (request) { return request(axios, basePath); });
19611
+ },
19612
+ /**
19613
+ *
19614
+ * @summary Get all plan hospital.
19615
+ * @param {string} planId
19616
+ * @param {number} [page]
19617
+ * @param {number} [limit]
19618
+ * @param {Date} [lastRetrieved]
19619
+ * @param {*} [options] Override http request option.
19620
+ * @throws {RequiredError}
19621
+ */
19622
+ apiV1PlansPlanIdHospitalsGet: function (planId, page, limit, lastRetrieved, options) {
19623
+ return localVarFp.apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
19624
+ },
19625
+ /**
19626
+ *
19627
+ * @summary Delete plan hospital.
19628
+ * @param {string} planId
19629
+ * @param {string} hospitalId
19630
+ * @param {*} [options] Override http request option.
19631
+ * @throws {RequiredError}
19632
+ */
19633
+ apiV1PlansPlanIdHospitalsHospitalIdDelete: function (planId, hospitalId, options) {
19634
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options).then(function (request) { return request(axios, basePath); });
19635
+ },
19636
+ /**
19637
+ *
19638
+ * @summary Get plan hospital.
19639
+ * @param {string} planId
19640
+ * @param {string} hospitalId
19641
+ * @param {*} [options] Override http request option.
19642
+ * @throws {RequiredError}
19643
+ */
19644
+ apiV1PlansPlanIdHospitalsHospitalIdGet: function (planId, hospitalId, options) {
19645
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options).then(function (request) { return request(axios, basePath); });
19646
+ },
19647
+ /**
19648
+ *
19649
+ * @summary Update plan hospital.
19650
+ * @param {string} planId
19651
+ * @param {string} hospitalId
19652
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
19653
+ * @param {*} [options] Override http request option.
19654
+ * @throws {RequiredError}
19655
+ */
19656
+ apiV1PlansPlanIdHospitalsHospitalIdPut: function (planId, hospitalId, updatePlanHospitalCommand, options) {
19657
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options).then(function (request) { return request(axios, basePath); });
19658
+ },
19659
+ /**
19660
+ *
19661
+ * @summary Create plan hospital.
19662
+ * @param {string} planId
19663
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
19664
+ * @param {*} [options] Override http request option.
19665
+ * @throws {RequiredError}
19666
+ */
19667
+ apiV1PlansPlanIdHospitalsPost: function (planId, createPlanHospitalCommand, options) {
19668
+ return localVarFp.apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options).then(function (request) { return request(axios, basePath); });
19669
+ },
19670
+ /**
19671
+ *
19672
+ * @summary Update plan.
19673
+ * @param {string} planId
19674
+ * @param {UpdatePlanCommand} [updatePlanCommand]
19675
+ * @param {*} [options] Override http request option.
19676
+ * @throws {RequiredError}
19677
+ */
19678
+ apiV1PlansPlanIdPut: function (planId, updatePlanCommand, options) {
19679
+ return localVarFp.apiV1PlansPlanIdPut(planId, updatePlanCommand, options).then(function (request) { return request(axios, basePath); });
19680
+ },
19681
+ /**
19682
+ *
19683
+ * @summary Create a plan.
19684
+ * @param {CreatePlanCommand} [createPlanCommand]
19685
+ * @param {*} [options] Override http request option.
19686
+ * @throws {RequiredError}
19687
+ */
19688
+ apiV1PlansPost: function (createPlanCommand, options) {
19689
+ return localVarFp.apiV1PlansPost(createPlanCommand, options).then(function (request) { return request(axios, basePath); });
19690
+ },
19691
+ };
19692
+ };
19693
+ /**
19694
+ * PlansApi - object-oriented interface
19695
+ * @export
19696
+ * @class PlansApi
19697
+ * @extends {BaseAPI}
19698
+ */
19699
+ var PlansApi = /** @class */ (function (_super) {
19700
+ __extends(PlansApi, _super);
19701
+ function PlansApi() {
19702
+ return _super !== null && _super.apply(this, arguments) || this;
19703
+ }
19704
+ /**
19705
+ *
19706
+ * @summary Get all plans.
19707
+ * @param {string} [id]
19708
+ * @param {string} [name]
19709
+ * @param {number} [page]
19710
+ * @param {number} [limit]
19711
+ * @param {Date} [lastRetrieved]
19712
+ * @param {*} [options] Override http request option.
19713
+ * @throws {RequiredError}
19714
+ * @memberof PlansApi
19715
+ */
19716
+ PlansApi.prototype.apiV1PlansGet = function (id, name, page, limit, lastRetrieved, options) {
19717
+ var _this = this;
19718
+ return exports.PlansApiFp(this.configuration).apiV1PlansGet(id, name, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
19719
+ };
19720
+ /**
19721
+ *
19722
+ * @summary Delete plan.
19723
+ * @param {string} planId
19724
+ * @param {*} [options] Override http request option.
19725
+ * @throws {RequiredError}
19726
+ * @memberof PlansApi
19727
+ */
19728
+ PlansApi.prototype.apiV1PlansPlanIdDelete = function (planId, options) {
19729
+ var _this = this;
19730
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdDelete(planId, options).then(function (request) { return request(_this.axios, _this.basePath); });
19731
+ };
19732
+ /**
19733
+ *
19734
+ * @summary Get plan.
19735
+ * @param {string} planId
19736
+ * @param {*} [options] Override http request option.
19737
+ * @throws {RequiredError}
19738
+ * @memberof PlansApi
19739
+ */
19740
+ PlansApi.prototype.apiV1PlansPlanIdGet = function (planId, options) {
19741
+ var _this = this;
19742
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdGet(planId, options).then(function (request) { return request(_this.axios, _this.basePath); });
19743
+ };
19744
+ /**
19745
+ *
19746
+ * @summary Get all plan hospital.
19747
+ * @param {string} planId
19748
+ * @param {number} [page]
19749
+ * @param {number} [limit]
19750
+ * @param {Date} [lastRetrieved]
19751
+ * @param {*} [options] Override http request option.
19752
+ * @throws {RequiredError}
19753
+ * @memberof PlansApi
19754
+ */
19755
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsGet = function (planId, page, limit, lastRetrieved, options) {
19756
+ var _this = this;
19757
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
19758
+ };
19759
+ /**
19760
+ *
19761
+ * @summary Delete plan hospital.
19762
+ * @param {string} planId
19763
+ * @param {string} hospitalId
19764
+ * @param {*} [options] Override http request option.
19765
+ * @throws {RequiredError}
19766
+ * @memberof PlansApi
19767
+ */
19768
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsHospitalIdDelete = function (planId, hospitalId, options) {
19769
+ var _this = this;
19770
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
19771
+ };
19772
+ /**
19773
+ *
19774
+ * @summary Get plan hospital.
19775
+ * @param {string} planId
19776
+ * @param {string} hospitalId
19777
+ * @param {*} [options] Override http request option.
19778
+ * @throws {RequiredError}
19779
+ * @memberof PlansApi
19780
+ */
19781
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsHospitalIdGet = function (planId, hospitalId, options) {
19782
+ var _this = this;
19783
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
19784
+ };
19785
+ /**
19786
+ *
19787
+ * @summary Update plan hospital.
19788
+ * @param {string} planId
19789
+ * @param {string} hospitalId
19790
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
19791
+ * @param {*} [options] Override http request option.
19792
+ * @throws {RequiredError}
19793
+ * @memberof PlansApi
19794
+ */
19795
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsHospitalIdPut = function (planId, hospitalId, updatePlanHospitalCommand, options) {
19796
+ var _this = this;
19797
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
19798
+ };
19799
+ /**
19800
+ *
19801
+ * @summary Create plan hospital.
19802
+ * @param {string} planId
19803
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
19804
+ * @param {*} [options] Override http request option.
19805
+ * @throws {RequiredError}
19806
+ * @memberof PlansApi
19807
+ */
19808
+ PlansApi.prototype.apiV1PlansPlanIdHospitalsPost = function (planId, createPlanHospitalCommand, options) {
19809
+ var _this = this;
19810
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
19811
+ };
19812
+ /**
19813
+ *
19814
+ * @summary Update plan.
19815
+ * @param {string} planId
19816
+ * @param {UpdatePlanCommand} [updatePlanCommand]
19817
+ * @param {*} [options] Override http request option.
19818
+ * @throws {RequiredError}
19819
+ * @memberof PlansApi
19820
+ */
19821
+ PlansApi.prototype.apiV1PlansPlanIdPut = function (planId, updatePlanCommand, options) {
19822
+ var _this = this;
19823
+ return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdPut(planId, updatePlanCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
19824
+ };
19825
+ /**
19826
+ *
19827
+ * @summary Create a plan.
19828
+ * @param {CreatePlanCommand} [createPlanCommand]
19829
+ * @param {*} [options] Override http request option.
19830
+ * @throws {RequiredError}
19831
+ * @memberof PlansApi
19832
+ */
19833
+ PlansApi.prototype.apiV1PlansPost = function (createPlanCommand, options) {
19834
+ var _this = this;
19835
+ return exports.PlansApiFp(this.configuration).apiV1PlansPost(createPlanCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
19836
+ };
19837
+ return PlansApi;
19838
+ }(base_1.BaseAPI));
19839
+ exports.PlansApi = PlansApi;
18858
19840
  /**
18859
19841
  * ProfilesApi - axios parameter creator
18860
19842
  * @export