ch-api-client-typescript2 2.8.0 → 2.8.1

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.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.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = 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.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.UserLocationType = exports.SnsType = exports.ReviewType = exports.ReviewCategory = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = exports.AutocompleteMode = exports.ArticleStatus = void 0;
79
+ 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.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = 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.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.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.AutocompleteMode = 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
@@ -120,6 +120,17 @@ var BookingStatus;
120
120
  BookingStatus["RefundRequested"] = "RefundRequested";
121
121
  BookingStatus["Refunded"] = "Refunded";
122
122
  })(BookingStatus = exports.BookingStatus || (exports.BookingStatus = {}));
123
+ /**
124
+ *
125
+ * @export
126
+ * @enum {string}
127
+ */
128
+ var ChargeStatus;
129
+ (function (ChargeStatus) {
130
+ ChargeStatus["Pending"] = "Pending";
131
+ ChargeStatus["Succeeded"] = "Succeeded";
132
+ ChargeStatus["Failed"] = "Failed";
133
+ })(ChargeStatus = exports.ChargeStatus || (exports.ChargeStatus = {}));
123
134
  /**
124
135
  *
125
136
  * @export
@@ -223,6 +234,40 @@ var NotificationCode;
223
234
  NotificationCode["ConsultationRefunded"] = "ConsultationRefunded";
224
235
  NotificationCode["ConsultationReady"] = "ConsultationReady";
225
236
  })(NotificationCode = exports.NotificationCode || (exports.NotificationCode = {}));
237
+ /**
238
+ *
239
+ * @export
240
+ * @enum {string}
241
+ */
242
+ var PaymentMethod;
243
+ (function (PaymentMethod) {
244
+ PaymentMethod["Stripe"] = "Stripe";
245
+ PaymentMethod["Paypal"] = "Paypal";
246
+ PaymentMethod["BankTransfer"] = "BankTransfer";
247
+ })(PaymentMethod = exports.PaymentMethod || (exports.PaymentMethod = {}));
248
+ /**
249
+ *
250
+ * @export
251
+ * @enum {string}
252
+ */
253
+ var PaymentStatus;
254
+ (function (PaymentStatus) {
255
+ PaymentStatus["Unpaid"] = "Unpaid";
256
+ PaymentStatus["Paid"] = "Paid";
257
+ PaymentStatus["RefundRequested"] = "RefundRequested";
258
+ PaymentStatus["Refunded"] = "Refunded";
259
+ })(PaymentStatus = exports.PaymentStatus || (exports.PaymentStatus = {}));
260
+ /**
261
+ *
262
+ * @export
263
+ * @enum {string}
264
+ */
265
+ var Platform;
266
+ (function (Platform) {
267
+ Platform["Web"] = "Web";
268
+ Platform["IOs"] = "iOS";
269
+ Platform["Android"] = "Android";
270
+ })(Platform = exports.Platform || (exports.Platform = {}));
226
271
  /**
227
272
  *
228
273
  * @export
@@ -233,6 +278,31 @@ var Procedure;
233
278
  Procedure["Treatment"] = "Treatment";
234
279
  Procedure["Diagnostic"] = "Diagnostic";
235
280
  })(Procedure = exports.Procedure || (exports.Procedure = {}));
281
+ /**
282
+ *
283
+ * @export
284
+ * @enum {string}
285
+ */
286
+ var QuestionStatus;
287
+ (function (QuestionStatus) {
288
+ QuestionStatus["New"] = "New";
289
+ QuestionStatus["Answered"] = "Answered";
290
+ QuestionStatus["Replied"] = "Replied";
291
+ QuestionStatus["Archived"] = "Archived";
292
+ })(QuestionStatus = exports.QuestionStatus || (exports.QuestionStatus = {}));
293
+ /**
294
+ *
295
+ * @export
296
+ * @enum {string}
297
+ */
298
+ var QuestionType;
299
+ (function (QuestionType) {
300
+ QuestionType["General"] = "General";
301
+ QuestionType["Health"] = "Health";
302
+ QuestionType["Treatment"] = "Treatment";
303
+ QuestionType["Travel"] = "Travel";
304
+ QuestionType["Consult"] = "Consult";
305
+ })(QuestionType = exports.QuestionType || (exports.QuestionType = {}));
236
306
  /**
237
307
  *
238
308
  * @export
@@ -256,6 +326,17 @@ var RefundPolicy;
256
326
  RefundPolicy["Refundable"] = "Refundable";
257
327
  RefundPolicy["PartialRefundable"] = "PartialRefundable";
258
328
  })(RefundPolicy = exports.RefundPolicy || (exports.RefundPolicy = {}));
329
+ /**
330
+ *
331
+ * @export
332
+ * @enum {string}
333
+ */
334
+ var RefundStatus;
335
+ (function (RefundStatus) {
336
+ RefundStatus["Pending"] = "Pending";
337
+ RefundStatus["Succeeded"] = "Succeeded";
338
+ RefundStatus["Failed"] = "Failed";
339
+ })(RefundStatus = exports.RefundStatus || (exports.RefundStatus = {}));
259
340
  /**
260
341
  *
261
342
  * @export
@@ -312,6 +393,16 @@ var UserLocationType;
312
393
  UserLocationType["LivesIn"] = "LivesIn";
313
394
  UserLocationType["BirthPlace"] = "BirthPlace";
314
395
  })(UserLocationType = exports.UserLocationType || (exports.UserLocationType = {}));
396
+ /**
397
+ *
398
+ * @export
399
+ * @enum {string}
400
+ */
401
+ var VendorType;
402
+ (function (VendorType) {
403
+ VendorType["Stripe"] = "Stripe";
404
+ VendorType["WeChat"] = "WeChat";
405
+ })(VendorType = exports.VendorType || (exports.VendorType = {}));
315
406
  /**
316
407
  * AccreditationsApi - axios parameter creator
317
408
  * @export
@@ -9759,13 +9850,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
9759
9850
  * @param {string} [languageCode]
9760
9851
  * @param {boolean} [showHidden]
9761
9852
  * @param {boolean} [returnDefaultValue]
9853
+ * @param {boolean} [includeServices]
9762
9854
  * @param {number} [page]
9763
9855
  * @param {number} [limit]
9764
9856
  * @param {Date} [lastRetrieved]
9765
9857
  * @param {*} [options] Override http request option.
9766
9858
  * @throws {RequiredError}
9767
9859
  */
9768
- apiV2HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
9860
+ apiV2HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
9769
9861
  if (options === void 0) { options = {}; }
9770
9862
  return __awaiter(_this, void 0, void 0, function () {
9771
9863
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9811,6 +9903,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
9811
9903
  if (returnDefaultValue !== undefined) {
9812
9904
  localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
9813
9905
  }
9906
+ if (includeServices !== undefined) {
9907
+ localVarQueryParameter['IncludeServices'] = includeServices;
9908
+ }
9814
9909
  if (page !== undefined) {
9815
9910
  localVarQueryParameter['page'] = page;
9816
9911
  }
@@ -9839,10 +9934,11 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
9839
9934
  * @param {string} specialtyId
9840
9935
  * @param {string} [languageCode]
9841
9936
  * @param {boolean} [returnDefaultValue]
9937
+ * @param {boolean} [includeServices]
9842
9938
  * @param {*} [options] Override http request option.
9843
9939
  * @throws {RequiredError}
9844
9940
  */
9845
- apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, languageCode, returnDefaultValue, options) {
9941
+ apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, languageCode, returnDefaultValue, includeServices, options) {
9846
9942
  if (options === void 0) { options = {}; }
9847
9943
  return __awaiter(_this, void 0, void 0, function () {
9848
9944
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9867,6 +9963,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
9867
9963
  if (returnDefaultValue !== undefined) {
9868
9964
  localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
9869
9965
  }
9966
+ if (includeServices !== undefined) {
9967
+ localVarQueryParameter['includeServices'] = includeServices;
9968
+ }
9870
9969
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
9871
9970
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9872
9971
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -10143,6 +10242,55 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
10143
10242
  });
10144
10243
  });
10145
10244
  },
10245
+ /**
10246
+ *
10247
+ * @summary Get HospitalSpecialty by Specialty slug
10248
+ * @param {string} hospitalId
10249
+ * @param {string} specialtySlug
10250
+ * @param {string} [languageCode]
10251
+ * @param {boolean} [returnDefaultValue]
10252
+ * @param {boolean} [includeServices]
10253
+ * @param {*} [options] Override http request option.
10254
+ * @throws {RequiredError}
10255
+ */
10256
+ apiV2HospitalsHospitalIdSpecialtiesSpecialtySlugGet: function (hospitalId, specialtySlug, languageCode, returnDefaultValue, includeServices, options) {
10257
+ if (options === void 0) { options = {}; }
10258
+ return __awaiter(_this, void 0, void 0, function () {
10259
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10260
+ return __generator(this, function (_a) {
10261
+ // verify required parameter 'hospitalId' is not null or undefined
10262
+ common_1.assertParamExists('apiV2HospitalsHospitalIdSpecialtiesSpecialtySlugGet', 'hospitalId', hospitalId);
10263
+ // verify required parameter 'specialtySlug' is not null or undefined
10264
+ common_1.assertParamExists('apiV2HospitalsHospitalIdSpecialtiesSpecialtySlugGet', 'specialtySlug', specialtySlug);
10265
+ localVarPath = "/api/v2/hospitals/{hospitalId}/specialties/{specialtySlug}"
10266
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
10267
+ .replace("{" + "specialtySlug" + "}", encodeURIComponent(String(specialtySlug)));
10268
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10269
+ if (configuration) {
10270
+ baseOptions = configuration.baseOptions;
10271
+ }
10272
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10273
+ localVarHeaderParameter = {};
10274
+ localVarQueryParameter = {};
10275
+ if (languageCode !== undefined) {
10276
+ localVarQueryParameter['languageCode'] = languageCode;
10277
+ }
10278
+ if (returnDefaultValue !== undefined) {
10279
+ localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
10280
+ }
10281
+ if (includeServices !== undefined) {
10282
+ localVarQueryParameter['includeServices'] = includeServices;
10283
+ }
10284
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10285
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10286
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10287
+ return [2 /*return*/, {
10288
+ url: common_1.toPathString(localVarUrlObj),
10289
+ options: localVarRequestOptions,
10290
+ }];
10291
+ });
10292
+ });
10293
+ },
10146
10294
  /**
10147
10295
  *
10148
10296
  * @summary Get all Hospitals.
@@ -10597,18 +10745,19 @@ exports.HospitalsApiFp = function (configuration) {
10597
10745
  * @param {string} [languageCode]
10598
10746
  * @param {boolean} [showHidden]
10599
10747
  * @param {boolean} [returnDefaultValue]
10748
+ * @param {boolean} [includeServices]
10600
10749
  * @param {number} [page]
10601
10750
  * @param {number} [limit]
10602
10751
  * @param {Date} [lastRetrieved]
10603
10752
  * @param {*} [options] Override http request option.
10604
10753
  * @throws {RequiredError}
10605
10754
  */
10606
- apiV2HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
10755
+ apiV2HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
10607
10756
  return __awaiter(this, void 0, void 0, function () {
10608
10757
  var localVarAxiosArgs;
10609
10758
  return __generator(this, function (_a) {
10610
10759
  switch (_a.label) {
10611
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options)];
10760
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options)];
10612
10761
  case 1:
10613
10762
  localVarAxiosArgs = _a.sent();
10614
10763
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -10623,15 +10772,16 @@ exports.HospitalsApiFp = function (configuration) {
10623
10772
  * @param {string} specialtyId
10624
10773
  * @param {string} [languageCode]
10625
10774
  * @param {boolean} [returnDefaultValue]
10775
+ * @param {boolean} [includeServices]
10626
10776
  * @param {*} [options] Override http request option.
10627
10777
  * @throws {RequiredError}
10628
10778
  */
10629
- apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, languageCode, returnDefaultValue, options) {
10779
+ apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, languageCode, returnDefaultValue, includeServices, options) {
10630
10780
  return __awaiter(this, void 0, void 0, function () {
10631
10781
  var localVarAxiosArgs;
10632
10782
  return __generator(this, function (_a) {
10633
10783
  switch (_a.label) {
10634
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, returnDefaultValue, options)];
10784
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, returnDefaultValue, includeServices, options)];
10635
10785
  case 1:
10636
10786
  localVarAxiosArgs = _a.sent();
10637
10787
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -10751,6 +10901,30 @@ exports.HospitalsApiFp = function (configuration) {
10751
10901
  });
10752
10902
  });
10753
10903
  },
10904
+ /**
10905
+ *
10906
+ * @summary Get HospitalSpecialty by Specialty slug
10907
+ * @param {string} hospitalId
10908
+ * @param {string} specialtySlug
10909
+ * @param {string} [languageCode]
10910
+ * @param {boolean} [returnDefaultValue]
10911
+ * @param {boolean} [includeServices]
10912
+ * @param {*} [options] Override http request option.
10913
+ * @throws {RequiredError}
10914
+ */
10915
+ apiV2HospitalsHospitalIdSpecialtiesSpecialtySlugGet: function (hospitalId, specialtySlug, languageCode, returnDefaultValue, includeServices, options) {
10916
+ return __awaiter(this, void 0, void 0, function () {
10917
+ var localVarAxiosArgs;
10918
+ return __generator(this, function (_a) {
10919
+ switch (_a.label) {
10920
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesSpecialtySlugGet(hospitalId, specialtySlug, languageCode, returnDefaultValue, includeServices, options)];
10921
+ case 1:
10922
+ localVarAxiosArgs = _a.sent();
10923
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
10924
+ }
10925
+ });
10926
+ });
10927
+ },
10754
10928
  /**
10755
10929
  *
10756
10930
  * @summary Get all Hospitals.
@@ -11004,14 +11178,15 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
11004
11178
  * @param {string} [languageCode]
11005
11179
  * @param {boolean} [showHidden]
11006
11180
  * @param {boolean} [returnDefaultValue]
11181
+ * @param {boolean} [includeServices]
11007
11182
  * @param {number} [page]
11008
11183
  * @param {number} [limit]
11009
11184
  * @param {Date} [lastRetrieved]
11010
11185
  * @param {*} [options] Override http request option.
11011
11186
  * @throws {RequiredError}
11012
11187
  */
11013
- apiV2HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
11014
- return localVarFp.apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
11188
+ apiV2HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
11189
+ return localVarFp.apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
11015
11190
  },
11016
11191
  /**
11017
11192
  *
@@ -11020,11 +11195,12 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
11020
11195
  * @param {string} specialtyId
11021
11196
  * @param {string} [languageCode]
11022
11197
  * @param {boolean} [returnDefaultValue]
11198
+ * @param {boolean} [includeServices]
11023
11199
  * @param {*} [options] Override http request option.
11024
11200
  * @throws {RequiredError}
11025
11201
  */
11026
- apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, languageCode, returnDefaultValue, options) {
11027
- return localVarFp.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
11202
+ apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, languageCode, returnDefaultValue, includeServices, options) {
11203
+ return localVarFp.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, returnDefaultValue, includeServices, options).then(function (request) { return request(axios, basePath); });
11028
11204
  },
11029
11205
  /**
11030
11206
  *
@@ -11098,6 +11274,20 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
11098
11274
  apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet: function (hospitalId, specialtyId, serviceId, mediaId, options) {
11099
11275
  return localVarFp.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then(function (request) { return request(axios, basePath); });
11100
11276
  },
11277
+ /**
11278
+ *
11279
+ * @summary Get HospitalSpecialty by Specialty slug
11280
+ * @param {string} hospitalId
11281
+ * @param {string} specialtySlug
11282
+ * @param {string} [languageCode]
11283
+ * @param {boolean} [returnDefaultValue]
11284
+ * @param {boolean} [includeServices]
11285
+ * @param {*} [options] Override http request option.
11286
+ * @throws {RequiredError}
11287
+ */
11288
+ apiV2HospitalsHospitalIdSpecialtiesSpecialtySlugGet: function (hospitalId, specialtySlug, languageCode, returnDefaultValue, includeServices, options) {
11289
+ return localVarFp.apiV2HospitalsHospitalIdSpecialtiesSpecialtySlugGet(hospitalId, specialtySlug, languageCode, returnDefaultValue, includeServices, options).then(function (request) { return request(axios, basePath); });
11290
+ },
11101
11291
  /**
11102
11292
  *
11103
11293
  * @summary Get all Hospitals.
@@ -11359,6 +11549,7 @@ var HospitalsApi = /** @class */ (function (_super) {
11359
11549
  * @param {string} [languageCode]
11360
11550
  * @param {boolean} [showHidden]
11361
11551
  * @param {boolean} [returnDefaultValue]
11552
+ * @param {boolean} [includeServices]
11362
11553
  * @param {number} [page]
11363
11554
  * @param {number} [limit]
11364
11555
  * @param {Date} [lastRetrieved]
@@ -11366,9 +11557,9 @@ var HospitalsApi = /** @class */ (function (_super) {
11366
11557
  * @throws {RequiredError}
11367
11558
  * @memberof HospitalsApi
11368
11559
  */
11369
- HospitalsApi.prototype.apiV2HospitalsHospitalIdSpecialtiesGet = function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
11560
+ HospitalsApi.prototype.apiV2HospitalsHospitalIdSpecialtiesGet = function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
11370
11561
  var _this = this;
11371
- return exports.HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
11562
+ return exports.HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesGet(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); });
11372
11563
  };
11373
11564
  /**
11374
11565
  *
@@ -11377,13 +11568,14 @@ var HospitalsApi = /** @class */ (function (_super) {
11377
11568
  * @param {string} specialtyId
11378
11569
  * @param {string} [languageCode]
11379
11570
  * @param {boolean} [returnDefaultValue]
11571
+ * @param {boolean} [includeServices]
11380
11572
  * @param {*} [options] Override http request option.
11381
11573
  * @throws {RequiredError}
11382
11574
  * @memberof HospitalsApi
11383
11575
  */
11384
- HospitalsApi.prototype.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdGet = function (hospitalId, specialtyId, languageCode, returnDefaultValue, options) {
11576
+ HospitalsApi.prototype.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdGet = function (hospitalId, specialtyId, languageCode, returnDefaultValue, includeServices, options) {
11385
11577
  var _this = this;
11386
- return exports.HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
11578
+ return exports.HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, languageCode, returnDefaultValue, includeServices, options).then(function (request) { return request(_this.axios, _this.basePath); });
11387
11579
  };
11388
11580
  /**
11389
11581
  *
@@ -11465,6 +11657,22 @@ var HospitalsApi = /** @class */ (function (_super) {
11465
11657
  var _this = this;
11466
11658
  return exports.HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11467
11659
  };
11660
+ /**
11661
+ *
11662
+ * @summary Get HospitalSpecialty by Specialty slug
11663
+ * @param {string} hospitalId
11664
+ * @param {string} specialtySlug
11665
+ * @param {string} [languageCode]
11666
+ * @param {boolean} [returnDefaultValue]
11667
+ * @param {boolean} [includeServices]
11668
+ * @param {*} [options] Override http request option.
11669
+ * @throws {RequiredError}
11670
+ * @memberof HospitalsApi
11671
+ */
11672
+ HospitalsApi.prototype.apiV2HospitalsHospitalIdSpecialtiesSpecialtySlugGet = function (hospitalId, specialtySlug, languageCode, returnDefaultValue, includeServices, options) {
11673
+ var _this = this;
11674
+ return exports.HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesSpecialtySlugGet(hospitalId, specialtySlug, languageCode, returnDefaultValue, includeServices, options).then(function (request) { return request(_this.axios, _this.basePath); });
11675
+ };
11468
11676
  /**
11469
11677
  *
11470
11678
  * @summary Get all Hospitals.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-api-client-typescript2",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital",
5
5
  "main": "index.js",
6
6
  "scripts": {