ch-admin-api-client-typescript 2.8.3 → 2.8.6

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.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.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.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewType = 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.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.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.DashBoardApi = exports.DashBoardApiFactory = exports.DashBoardApiFp = exports.DashBoardApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.UserLocationType = exports.SnsType = exports.ReviewType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.Duration = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
80
80
  var axios_1 = __importDefault(require("axios"));
81
81
  // Some imports not used depending on template conditions
82
82
  // @ts-ignore
@@ -109,17 +109,6 @@ var BookingStatus;
109
109
  BookingStatus["RefundRequested"] = "RefundRequested";
110
110
  BookingStatus["Refunded"] = "Refunded";
111
111
  })(BookingStatus = exports.BookingStatus || (exports.BookingStatus = {}));
112
- /**
113
- *
114
- * @export
115
- * @enum {string}
116
- */
117
- var ChargeStatus;
118
- (function (ChargeStatus) {
119
- ChargeStatus["Pending"] = "Pending";
120
- ChargeStatus["Succeeded"] = "Succeeded";
121
- ChargeStatus["Failed"] = "Failed";
122
- })(ChargeStatus = exports.ChargeStatus || (exports.ChargeStatus = {}));
123
112
  /**
124
113
  *
125
114
  * @export
@@ -157,6 +146,19 @@ var ContributionType;
157
146
  ContributionType["WrittenBy"] = "WrittenBy";
158
147
  ContributionType["InterviewWith"] = "InterviewWith";
159
148
  })(ContributionType = exports.ContributionType || (exports.ContributionType = {}));
149
+ /**
150
+ *
151
+ * @export
152
+ * @enum {string}
153
+ */
154
+ var Duration;
155
+ (function (Duration) {
156
+ Duration["CurrentMonth"] = "Current_Month";
157
+ Duration["Last3Month"] = "Last_3_Month";
158
+ Duration["Last6Month"] = "Last_6_Month";
159
+ Duration["Last9Month"] = "Last_9_Month";
160
+ Duration["Last12Month"] = "Last_12_Month";
161
+ })(Duration = exports.Duration || (exports.Duration = {}));
160
162
  /**
161
163
  *
162
164
  * @export
@@ -223,40 +225,6 @@ var NotificationCode;
223
225
  NotificationCode["ConsultationRefunded"] = "ConsultationRefunded";
224
226
  NotificationCode["ConsultationReady"] = "ConsultationReady";
225
227
  })(NotificationCode = exports.NotificationCode || (exports.NotificationCode = {}));
226
- /**
227
- *
228
- * @export
229
- * @enum {string}
230
- */
231
- var PaymentMethod;
232
- (function (PaymentMethod) {
233
- PaymentMethod["Stripe"] = "Stripe";
234
- PaymentMethod["Paypal"] = "Paypal";
235
- PaymentMethod["BankTransfer"] = "BankTransfer";
236
- })(PaymentMethod = exports.PaymentMethod || (exports.PaymentMethod = {}));
237
- /**
238
- *
239
- * @export
240
- * @enum {string}
241
- */
242
- var PaymentStatus;
243
- (function (PaymentStatus) {
244
- PaymentStatus["Unpaid"] = "Unpaid";
245
- PaymentStatus["Paid"] = "Paid";
246
- PaymentStatus["RefundRequested"] = "RefundRequested";
247
- PaymentStatus["Refunded"] = "Refunded";
248
- })(PaymentStatus = exports.PaymentStatus || (exports.PaymentStatus = {}));
249
- /**
250
- *
251
- * @export
252
- * @enum {string}
253
- */
254
- var Platform;
255
- (function (Platform) {
256
- Platform["Web"] = "Web";
257
- Platform["IOs"] = "iOS";
258
- Platform["Android"] = "Android";
259
- })(Platform = exports.Platform || (exports.Platform = {}));
260
228
  /**
261
229
  *
262
230
  * @export
@@ -267,31 +235,6 @@ var Procedure;
267
235
  Procedure["Treatment"] = "Treatment";
268
236
  Procedure["Diagnostic"] = "Diagnostic";
269
237
  })(Procedure = exports.Procedure || (exports.Procedure = {}));
270
- /**
271
- *
272
- * @export
273
- * @enum {string}
274
- */
275
- var QuestionStatus;
276
- (function (QuestionStatus) {
277
- QuestionStatus["New"] = "New";
278
- QuestionStatus["Answered"] = "Answered";
279
- QuestionStatus["Replied"] = "Replied";
280
- QuestionStatus["Archived"] = "Archived";
281
- })(QuestionStatus = exports.QuestionStatus || (exports.QuestionStatus = {}));
282
- /**
283
- *
284
- * @export
285
- * @enum {string}
286
- */
287
- var QuestionType;
288
- (function (QuestionType) {
289
- QuestionType["General"] = "General";
290
- QuestionType["Health"] = "Health";
291
- QuestionType["Treatment"] = "Treatment";
292
- QuestionType["Travel"] = "Travel";
293
- QuestionType["Consult"] = "Consult";
294
- })(QuestionType = exports.QuestionType || (exports.QuestionType = {}));
295
238
  /**
296
239
  *
297
240
  * @export
@@ -315,17 +258,6 @@ var RefundPolicy;
315
258
  RefundPolicy["Refundable"] = "Refundable";
316
259
  RefundPolicy["PartialRefundable"] = "PartialRefundable";
317
260
  })(RefundPolicy = exports.RefundPolicy || (exports.RefundPolicy = {}));
318
- /**
319
- *
320
- * @export
321
- * @enum {string}
322
- */
323
- var RefundStatus;
324
- (function (RefundStatus) {
325
- RefundStatus["Pending"] = "Pending";
326
- RefundStatus["Succeeded"] = "Succeeded";
327
- RefundStatus["Failed"] = "Failed";
328
- })(RefundStatus = exports.RefundStatus || (exports.RefundStatus = {}));
329
261
  /**
330
262
  *
331
263
  * @export
@@ -338,18 +270,6 @@ var RejectReason;
338
270
  RejectReason["ScheduleNotAvailable"] = "ScheduleNotAvailable";
339
271
  RejectReason["OtherReason"] = "OtherReason";
340
272
  })(RejectReason = exports.RejectReason || (exports.RejectReason = {}));
341
- /**
342
- *
343
- * @export
344
- * @enum {string}
345
- */
346
- var ReviewCategory;
347
- (function (ReviewCategory) {
348
- ReviewCategory["Services"] = "Services";
349
- ReviewCategory["Hospitality"] = "Hospitality";
350
- ReviewCategory["Transfer"] = "Transfer";
351
- ReviewCategory["Etc"] = "Etc";
352
- })(ReviewCategory = exports.ReviewCategory || (exports.ReviewCategory = {}));
353
273
  /**
354
274
  *
355
275
  * @export
@@ -382,16 +302,6 @@ var UserLocationType;
382
302
  UserLocationType["LivesIn"] = "LivesIn";
383
303
  UserLocationType["BirthPlace"] = "BirthPlace";
384
304
  })(UserLocationType = exports.UserLocationType || (exports.UserLocationType = {}));
385
- /**
386
- *
387
- * @export
388
- * @enum {string}
389
- */
390
- var VendorType;
391
- (function (VendorType) {
392
- VendorType["Stripe"] = "Stripe";
393
- VendorType["WeChat"] = "WeChat";
394
- })(VendorType = exports.VendorType || (exports.VendorType = {}));
395
305
  /**
396
306
  * AccreditationsApi - axios parameter creator
397
307
  * @export
@@ -9055,6 +8965,132 @@ var CountriesApi = /** @class */ (function (_super) {
9055
8965
  return CountriesApi;
9056
8966
  }(base_1.BaseAPI));
9057
8967
  exports.CountriesApi = CountriesApi;
8968
+ /**
8969
+ * DashBoardApi - axios parameter creator
8970
+ * @export
8971
+ */
8972
+ exports.DashBoardApiAxiosParamCreator = function (configuration) {
8973
+ var _this = this;
8974
+ return {
8975
+ /**
8976
+ *
8977
+ * @summary Create a DashBoard.
8978
+ * @param {Duration} duration
8979
+ * @param {*} [options] Override http request option.
8980
+ * @throws {RequiredError}
8981
+ */
8982
+ apiV1DashboardDurationGet: function (duration, options) {
8983
+ if (options === void 0) { options = {}; }
8984
+ return __awaiter(_this, void 0, void 0, function () {
8985
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8986
+ return __generator(this, function (_a) {
8987
+ switch (_a.label) {
8988
+ case 0:
8989
+ // verify required parameter 'duration' is not null or undefined
8990
+ common_1.assertParamExists('apiV1DashboardDurationGet', 'duration', duration);
8991
+ localVarPath = "/api/v1/dashboard/{duration}"
8992
+ .replace("{" + "duration" + "}", encodeURIComponent(String(duration)));
8993
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8994
+ if (configuration) {
8995
+ baseOptions = configuration.baseOptions;
8996
+ }
8997
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8998
+ localVarHeaderParameter = {};
8999
+ localVarQueryParameter = {};
9000
+ // authentication oauth2 required
9001
+ // oauth required
9002
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
9003
+ case 1:
9004
+ // authentication oauth2 required
9005
+ // oauth required
9006
+ _a.sent();
9007
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9008
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9009
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9010
+ return [2 /*return*/, {
9011
+ url: common_1.toPathString(localVarUrlObj),
9012
+ options: localVarRequestOptions,
9013
+ }];
9014
+ }
9015
+ });
9016
+ });
9017
+ },
9018
+ };
9019
+ };
9020
+ /**
9021
+ * DashBoardApi - functional programming interface
9022
+ * @export
9023
+ */
9024
+ exports.DashBoardApiFp = function (configuration) {
9025
+ var localVarAxiosParamCreator = exports.DashBoardApiAxiosParamCreator(configuration);
9026
+ return {
9027
+ /**
9028
+ *
9029
+ * @summary Create a DashBoard.
9030
+ * @param {Duration} duration
9031
+ * @param {*} [options] Override http request option.
9032
+ * @throws {RequiredError}
9033
+ */
9034
+ apiV1DashboardDurationGet: function (duration, options) {
9035
+ return __awaiter(this, void 0, void 0, function () {
9036
+ var localVarAxiosArgs;
9037
+ return __generator(this, function (_a) {
9038
+ switch (_a.label) {
9039
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DashboardDurationGet(duration, options)];
9040
+ case 1:
9041
+ localVarAxiosArgs = _a.sent();
9042
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9043
+ }
9044
+ });
9045
+ });
9046
+ },
9047
+ };
9048
+ };
9049
+ /**
9050
+ * DashBoardApi - factory interface
9051
+ * @export
9052
+ */
9053
+ exports.DashBoardApiFactory = function (configuration, basePath, axios) {
9054
+ var localVarFp = exports.DashBoardApiFp(configuration);
9055
+ return {
9056
+ /**
9057
+ *
9058
+ * @summary Create a DashBoard.
9059
+ * @param {Duration} duration
9060
+ * @param {*} [options] Override http request option.
9061
+ * @throws {RequiredError}
9062
+ */
9063
+ apiV1DashboardDurationGet: function (duration, options) {
9064
+ return localVarFp.apiV1DashboardDurationGet(duration, options).then(function (request) { return request(axios, basePath); });
9065
+ },
9066
+ };
9067
+ };
9068
+ /**
9069
+ * DashBoardApi - object-oriented interface
9070
+ * @export
9071
+ * @class DashBoardApi
9072
+ * @extends {BaseAPI}
9073
+ */
9074
+ var DashBoardApi = /** @class */ (function (_super) {
9075
+ __extends(DashBoardApi, _super);
9076
+ function DashBoardApi() {
9077
+ return _super !== null && _super.apply(this, arguments) || this;
9078
+ }
9079
+ /**
9080
+ *
9081
+ * @summary Create a DashBoard.
9082
+ * @param {Duration} duration
9083
+ * @param {*} [options] Override http request option.
9084
+ * @throws {RequiredError}
9085
+ * @memberof DashBoardApi
9086
+ */
9087
+ DashBoardApi.prototype.apiV1DashboardDurationGet = function (duration, options) {
9088
+ var _this = this;
9089
+ return exports.DashBoardApiFp(this.configuration).apiV1DashboardDurationGet(duration, options).then(function (request) { return request(_this.axios, _this.basePath); });
9090
+ };
9091
+ return DashBoardApi;
9092
+ }(base_1.BaseAPI));
9093
+ exports.DashBoardApi = DashBoardApi;
9058
9094
  /**
9059
9095
  * DealsApi - axios parameter creator
9060
9096
  * @export
@@ -18678,6 +18714,107 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
18678
18714
  });
18679
18715
  });
18680
18716
  },
18717
+ /**
18718
+ *
18719
+ * @summary Get all HospitalSpecialties.
18720
+ * @param {string} hospitalId
18721
+ * @param {string} [hospitalName]
18722
+ * @param {string} [hospitalSlug]
18723
+ * @param {string} [specialtyId]
18724
+ * @param {string} [specialtyName]
18725
+ * @param {string} [specialtyTypeId]
18726
+ * @param {string} [title]
18727
+ * @param {MarketingType} [marketingType]
18728
+ * @param {string} [languageCode]
18729
+ * @param {boolean} [showHidden]
18730
+ * @param {boolean} [returnDefaultValue]
18731
+ * @param {boolean} [includeServices]
18732
+ * @param {number} [page]
18733
+ * @param {number} [limit]
18734
+ * @param {Date} [lastRetrieved]
18735
+ * @param {*} [options] Override http request option.
18736
+ * @throws {RequiredError}
18737
+ */
18738
+ apiV1HospitalsHospitalIdSpecialtiesSimpleGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
18739
+ if (options === void 0) { options = {}; }
18740
+ return __awaiter(_this, void 0, void 0, function () {
18741
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18742
+ return __generator(this, function (_a) {
18743
+ switch (_a.label) {
18744
+ case 0:
18745
+ // verify required parameter 'hospitalId' is not null or undefined
18746
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSimpleGet', 'hospitalId', hospitalId);
18747
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/simple"
18748
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
18749
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18750
+ if (configuration) {
18751
+ baseOptions = configuration.baseOptions;
18752
+ }
18753
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18754
+ localVarHeaderParameter = {};
18755
+ localVarQueryParameter = {};
18756
+ // authentication oauth2 required
18757
+ // oauth required
18758
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18759
+ case 1:
18760
+ // authentication oauth2 required
18761
+ // oauth required
18762
+ _a.sent();
18763
+ if (hospitalName !== undefined) {
18764
+ localVarQueryParameter['HospitalName'] = hospitalName;
18765
+ }
18766
+ if (hospitalSlug !== undefined) {
18767
+ localVarQueryParameter['HospitalSlug'] = hospitalSlug;
18768
+ }
18769
+ if (specialtyId !== undefined) {
18770
+ localVarQueryParameter['SpecialtyId'] = specialtyId;
18771
+ }
18772
+ if (specialtyName !== undefined) {
18773
+ localVarQueryParameter['SpecialtyName'] = specialtyName;
18774
+ }
18775
+ if (specialtyTypeId !== undefined) {
18776
+ localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
18777
+ }
18778
+ if (title !== undefined) {
18779
+ localVarQueryParameter['Title'] = title;
18780
+ }
18781
+ if (marketingType !== undefined) {
18782
+ localVarQueryParameter['MarketingType'] = marketingType;
18783
+ }
18784
+ if (languageCode !== undefined) {
18785
+ localVarQueryParameter['LanguageCode'] = languageCode;
18786
+ }
18787
+ if (showHidden !== undefined) {
18788
+ localVarQueryParameter['ShowHidden'] = showHidden;
18789
+ }
18790
+ if (returnDefaultValue !== undefined) {
18791
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
18792
+ }
18793
+ if (includeServices !== undefined) {
18794
+ localVarQueryParameter['IncludeServices'] = includeServices;
18795
+ }
18796
+ if (page !== undefined) {
18797
+ localVarQueryParameter['page'] = page;
18798
+ }
18799
+ if (limit !== undefined) {
18800
+ localVarQueryParameter['limit'] = limit;
18801
+ }
18802
+ if (lastRetrieved !== undefined) {
18803
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
18804
+ lastRetrieved.toISOString() :
18805
+ lastRetrieved;
18806
+ }
18807
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18808
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18809
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18810
+ return [2 /*return*/, {
18811
+ url: common_1.toPathString(localVarUrlObj),
18812
+ options: localVarRequestOptions,
18813
+ }];
18814
+ }
18815
+ });
18816
+ });
18817
+ },
18681
18818
  /**
18682
18819
  *
18683
18820
  * @summary Delete HospitalSpecialty.
@@ -20360,6 +20497,40 @@ exports.HospitalsApiFp = function (configuration) {
20360
20497
  });
20361
20498
  });
20362
20499
  },
20500
+ /**
20501
+ *
20502
+ * @summary Get all HospitalSpecialties.
20503
+ * @param {string} hospitalId
20504
+ * @param {string} [hospitalName]
20505
+ * @param {string} [hospitalSlug]
20506
+ * @param {string} [specialtyId]
20507
+ * @param {string} [specialtyName]
20508
+ * @param {string} [specialtyTypeId]
20509
+ * @param {string} [title]
20510
+ * @param {MarketingType} [marketingType]
20511
+ * @param {string} [languageCode]
20512
+ * @param {boolean} [showHidden]
20513
+ * @param {boolean} [returnDefaultValue]
20514
+ * @param {boolean} [includeServices]
20515
+ * @param {number} [page]
20516
+ * @param {number} [limit]
20517
+ * @param {Date} [lastRetrieved]
20518
+ * @param {*} [options] Override http request option.
20519
+ * @throws {RequiredError}
20520
+ */
20521
+ apiV1HospitalsHospitalIdSpecialtiesSimpleGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
20522
+ return __awaiter(this, void 0, void 0, function () {
20523
+ var localVarAxiosArgs;
20524
+ return __generator(this, function (_a) {
20525
+ switch (_a.label) {
20526
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options)];
20527
+ case 1:
20528
+ localVarAxiosArgs = _a.sent();
20529
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
20530
+ }
20531
+ });
20532
+ });
20533
+ },
20363
20534
  /**
20364
20535
  *
20365
20536
  * @summary Delete HospitalSpecialty.
@@ -21151,6 +21322,30 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
21151
21322
  apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
21152
21323
  return localVarFp.apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
21153
21324
  },
21325
+ /**
21326
+ *
21327
+ * @summary Get all HospitalSpecialties.
21328
+ * @param {string} hospitalId
21329
+ * @param {string} [hospitalName]
21330
+ * @param {string} [hospitalSlug]
21331
+ * @param {string} [specialtyId]
21332
+ * @param {string} [specialtyName]
21333
+ * @param {string} [specialtyTypeId]
21334
+ * @param {string} [title]
21335
+ * @param {MarketingType} [marketingType]
21336
+ * @param {string} [languageCode]
21337
+ * @param {boolean} [showHidden]
21338
+ * @param {boolean} [returnDefaultValue]
21339
+ * @param {boolean} [includeServices]
21340
+ * @param {number} [page]
21341
+ * @param {number} [limit]
21342
+ * @param {Date} [lastRetrieved]
21343
+ * @param {*} [options] Override http request option.
21344
+ * @throws {RequiredError}
21345
+ */
21346
+ apiV1HospitalsHospitalIdSpecialtiesSimpleGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
21347
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
21348
+ },
21154
21349
  /**
21155
21350
  *
21156
21351
  * @summary Delete HospitalSpecialty.
@@ -21846,6 +22041,32 @@ var HospitalsApi = /** @class */ (function (_super) {
21846
22041
  var _this = this;
21847
22042
  return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
21848
22043
  };
22044
+ /**
22045
+ *
22046
+ * @summary Get all HospitalSpecialties.
22047
+ * @param {string} hospitalId
22048
+ * @param {string} [hospitalName]
22049
+ * @param {string} [hospitalSlug]
22050
+ * @param {string} [specialtyId]
22051
+ * @param {string} [specialtyName]
22052
+ * @param {string} [specialtyTypeId]
22053
+ * @param {string} [title]
22054
+ * @param {MarketingType} [marketingType]
22055
+ * @param {string} [languageCode]
22056
+ * @param {boolean} [showHidden]
22057
+ * @param {boolean} [returnDefaultValue]
22058
+ * @param {boolean} [includeServices]
22059
+ * @param {number} [page]
22060
+ * @param {number} [limit]
22061
+ * @param {Date} [lastRetrieved]
22062
+ * @param {*} [options] Override http request option.
22063
+ * @throws {RequiredError}
22064
+ * @memberof HospitalsApi
22065
+ */
22066
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSimpleGet = function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
22067
+ var _this = this;
22068
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
22069
+ };
21849
22070
  /**
21850
22071
  *
21851
22072
  * @summary Delete HospitalSpecialty.
@@ -22283,13 +22504,14 @@ exports.LanguagesApiAxiosParamCreator = function (configuration) {
22283
22504
  * @param {string} [name]
22284
22505
  * @param {string} [code]
22285
22506
  * @param {string} [description]
22507
+ * @param {boolean} [showPublished]
22286
22508
  * @param {number} [page]
22287
22509
  * @param {number} [limit]
22288
22510
  * @param {Date} [lastRetrieved]
22289
22511
  * @param {*} [options] Override http request option.
22290
22512
  * @throws {RequiredError}
22291
22513
  */
22292
- apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
22514
+ apiV1LanguagesGet: function (id, name, code, description, showPublished, page, limit, lastRetrieved, options) {
22293
22515
  if (options === void 0) { options = {}; }
22294
22516
  return __awaiter(_this, void 0, void 0, function () {
22295
22517
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -22323,6 +22545,9 @@ exports.LanguagesApiAxiosParamCreator = function (configuration) {
22323
22545
  if (description !== undefined) {
22324
22546
  localVarQueryParameter['Description'] = description;
22325
22547
  }
22548
+ if (showPublished !== undefined) {
22549
+ localVarQueryParameter['ShowPublished'] = showPublished;
22550
+ }
22326
22551
  if (page !== undefined) {
22327
22552
  localVarQueryParameter['page'] = page;
22328
22553
  }
@@ -22552,18 +22777,19 @@ exports.LanguagesApiFp = function (configuration) {
22552
22777
  * @param {string} [name]
22553
22778
  * @param {string} [code]
22554
22779
  * @param {string} [description]
22780
+ * @param {boolean} [showPublished]
22555
22781
  * @param {number} [page]
22556
22782
  * @param {number} [limit]
22557
22783
  * @param {Date} [lastRetrieved]
22558
22784
  * @param {*} [options] Override http request option.
22559
22785
  * @throws {RequiredError}
22560
22786
  */
22561
- apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
22787
+ apiV1LanguagesGet: function (id, name, code, description, showPublished, page, limit, lastRetrieved, options) {
22562
22788
  return __awaiter(this, void 0, void 0, function () {
22563
22789
  var localVarAxiosArgs;
22564
22790
  return __generator(this, function (_a) {
22565
22791
  switch (_a.label) {
22566
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options)];
22792
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesGet(id, name, code, description, showPublished, page, limit, lastRetrieved, options)];
22567
22793
  case 1:
22568
22794
  localVarAxiosArgs = _a.sent();
22569
22795
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -22675,14 +22901,15 @@ exports.LanguagesApiFactory = function (configuration, basePath, axios) {
22675
22901
  * @param {string} [name]
22676
22902
  * @param {string} [code]
22677
22903
  * @param {string} [description]
22904
+ * @param {boolean} [showPublished]
22678
22905
  * @param {number} [page]
22679
22906
  * @param {number} [limit]
22680
22907
  * @param {Date} [lastRetrieved]
22681
22908
  * @param {*} [options] Override http request option.
22682
22909
  * @throws {RequiredError}
22683
22910
  */
22684
- apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
22685
- return localVarFp.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
22911
+ apiV1LanguagesGet: function (id, name, code, description, showPublished, page, limit, lastRetrieved, options) {
22912
+ return localVarFp.apiV1LanguagesGet(id, name, code, description, showPublished, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
22686
22913
  },
22687
22914
  /**
22688
22915
  *
@@ -22754,6 +22981,7 @@ var LanguagesApi = /** @class */ (function (_super) {
22754
22981
  * @param {string} [name]
22755
22982
  * @param {string} [code]
22756
22983
  * @param {string} [description]
22984
+ * @param {boolean} [showPublished]
22757
22985
  * @param {number} [page]
22758
22986
  * @param {number} [limit]
22759
22987
  * @param {Date} [lastRetrieved]
@@ -22761,9 +22989,9 @@ var LanguagesApi = /** @class */ (function (_super) {
22761
22989
  * @throws {RequiredError}
22762
22990
  * @memberof LanguagesApi
22763
22991
  */
22764
- LanguagesApi.prototype.apiV1LanguagesGet = function (id, name, code, description, page, limit, lastRetrieved, options) {
22992
+ LanguagesApi.prototype.apiV1LanguagesGet = function (id, name, code, description, showPublished, page, limit, lastRetrieved, options) {
22765
22993
  var _this = this;
22766
- return exports.LanguagesApiFp(this.configuration).apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
22994
+ return exports.LanguagesApiFp(this.configuration).apiV1LanguagesGet(id, name, code, description, showPublished, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
22767
22995
  };
22768
22996
  /**
22769
22997
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "2.8.3",
3
+ "version": "2.8.6",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "index.js",
6
6
  "scripts": {