ch-admin-api-client-typescript 2.4.4 → 2.4.9

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.
Files changed (5) hide show
  1. package/lib/api.d.ts +1044 -4988
  2. package/lib/api.d.ts.map +1 -1
  3. package/lib/api.js +635 -248
  4. package/package.json +1 -1
  5. package/src/api.ts +1057 -4799
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.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.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.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.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.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.UserLocationType = exports.SnsType = 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.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
@@ -220,40 +209,6 @@ var NotificationCode;
220
209
  NotificationCode["ConsultationRefunded"] = "ConsultationRefunded";
221
210
  NotificationCode["ConsultationReady"] = "ConsultationReady";
222
211
  })(NotificationCode = exports.NotificationCode || (exports.NotificationCode = {}));
223
- /**
224
- *
225
- * @export
226
- * @enum {string}
227
- */
228
- var PaymentMethod;
229
- (function (PaymentMethod) {
230
- PaymentMethod["Stripe"] = "Stripe";
231
- PaymentMethod["Paypal"] = "Paypal";
232
- PaymentMethod["BankTransfer"] = "BankTransfer";
233
- })(PaymentMethod = exports.PaymentMethod || (exports.PaymentMethod = {}));
234
- /**
235
- *
236
- * @export
237
- * @enum {string}
238
- */
239
- var PaymentStatus;
240
- (function (PaymentStatus) {
241
- PaymentStatus["Unpaid"] = "Unpaid";
242
- PaymentStatus["Paid"] = "Paid";
243
- PaymentStatus["RefundRequested"] = "RefundRequested";
244
- PaymentStatus["Refunded"] = "Refunded";
245
- })(PaymentStatus = exports.PaymentStatus || (exports.PaymentStatus = {}));
246
- /**
247
- *
248
- * @export
249
- * @enum {string}
250
- */
251
- var Platform;
252
- (function (Platform) {
253
- Platform["Web"] = "Web";
254
- Platform["IOs"] = "iOS";
255
- Platform["Android"] = "Android";
256
- })(Platform = exports.Platform || (exports.Platform = {}));
257
212
  /**
258
213
  *
259
214
  * @export
@@ -264,31 +219,6 @@ var Procedure;
264
219
  Procedure["Treatment"] = "Treatment";
265
220
  Procedure["Diagnostic"] = "Diagnostic";
266
221
  })(Procedure = exports.Procedure || (exports.Procedure = {}));
267
- /**
268
- *
269
- * @export
270
- * @enum {string}
271
- */
272
- var QuestionStatus;
273
- (function (QuestionStatus) {
274
- QuestionStatus["New"] = "New";
275
- QuestionStatus["Answered"] = "Answered";
276
- QuestionStatus["Replied"] = "Replied";
277
- QuestionStatus["Archived"] = "Archived";
278
- })(QuestionStatus = exports.QuestionStatus || (exports.QuestionStatus = {}));
279
- /**
280
- *
281
- * @export
282
- * @enum {string}
283
- */
284
- var QuestionType;
285
- (function (QuestionType) {
286
- QuestionType["General"] = "General";
287
- QuestionType["Health"] = "Health";
288
- QuestionType["Treatment"] = "Treatment";
289
- QuestionType["Travel"] = "Travel";
290
- QuestionType["Consult"] = "Consult";
291
- })(QuestionType = exports.QuestionType || (exports.QuestionType = {}));
292
222
  /**
293
223
  *
294
224
  * @export
@@ -312,17 +242,6 @@ var RefundPolicy;
312
242
  RefundPolicy["Refundable"] = "Refundable";
313
243
  RefundPolicy["PartialRefundable"] = "PartialRefundable";
314
244
  })(RefundPolicy = exports.RefundPolicy || (exports.RefundPolicy = {}));
315
- /**
316
- *
317
- * @export
318
- * @enum {string}
319
- */
320
- var RefundStatus;
321
- (function (RefundStatus) {
322
- RefundStatus["Pending"] = "Pending";
323
- RefundStatus["Succeeded"] = "Succeeded";
324
- RefundStatus["Failed"] = "Failed";
325
- })(RefundStatus = exports.RefundStatus || (exports.RefundStatus = {}));
326
245
  /**
327
246
  *
328
247
  * @export
@@ -335,18 +254,6 @@ var RejectReason;
335
254
  RejectReason["ScheduleNotAvailable"] = "ScheduleNotAvailable";
336
255
  RejectReason["OtherReason"] = "OtherReason";
337
256
  })(RejectReason = exports.RejectReason || (exports.RejectReason = {}));
338
- /**
339
- *
340
- * @export
341
- * @enum {string}
342
- */
343
- var ReviewCategory;
344
- (function (ReviewCategory) {
345
- ReviewCategory["Services"] = "Services";
346
- ReviewCategory["Hospitality"] = "Hospitality";
347
- ReviewCategory["Transfer"] = "Transfer";
348
- ReviewCategory["Etc"] = "Etc";
349
- })(ReviewCategory = exports.ReviewCategory || (exports.ReviewCategory = {}));
350
257
  /**
351
258
  *
352
259
  * @export
@@ -368,16 +275,6 @@ var UserLocationType;
368
275
  UserLocationType["LivesIn"] = "LivesIn";
369
276
  UserLocationType["BirthPlace"] = "BirthPlace";
370
277
  })(UserLocationType = exports.UserLocationType || (exports.UserLocationType = {}));
371
- /**
372
- *
373
- * @export
374
- * @enum {string}
375
- */
376
- var VendorType;
377
- (function (VendorType) {
378
- VendorType["Stripe"] = "Stripe";
379
- VendorType["WeChat"] = "WeChat";
380
- })(VendorType = exports.VendorType || (exports.VendorType = {}));
381
278
  /**
382
279
  * AccreditationsApi - axios parameter creator
383
280
  * @export
@@ -8110,6 +8007,49 @@ exports.CountriesApiAxiosParamCreator = function (configuration) {
8110
8007
  });
8111
8008
  });
8112
8009
  },
8010
+ /**
8011
+ *
8012
+ * @summary Reactivate country.
8013
+ * @param {string} countryId
8014
+ * @param {*} [options] Override http request option.
8015
+ * @throws {RequiredError}
8016
+ */
8017
+ apiV1CountriesCountryIdRevokePut: function (countryId, options) {
8018
+ if (options === void 0) { options = {}; }
8019
+ return __awaiter(_this, void 0, void 0, function () {
8020
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8021
+ return __generator(this, function (_a) {
8022
+ switch (_a.label) {
8023
+ case 0:
8024
+ // verify required parameter 'countryId' is not null or undefined
8025
+ common_1.assertParamExists('apiV1CountriesCountryIdRevokePut', 'countryId', countryId);
8026
+ localVarPath = "/api/v1/countries/{countryId}/revoke"
8027
+ .replace("{" + "countryId" + "}", encodeURIComponent(String(countryId)));
8028
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8029
+ if (configuration) {
8030
+ baseOptions = configuration.baseOptions;
8031
+ }
8032
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
8033
+ localVarHeaderParameter = {};
8034
+ localVarQueryParameter = {};
8035
+ // authentication oauth2 required
8036
+ // oauth required
8037
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
8038
+ case 1:
8039
+ // authentication oauth2 required
8040
+ // oauth required
8041
+ _a.sent();
8042
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
8043
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8044
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8045
+ return [2 /*return*/, {
8046
+ url: common_1.toPathString(localVarUrlObj),
8047
+ options: localVarRequestOptions,
8048
+ }];
8049
+ }
8050
+ });
8051
+ });
8052
+ },
8113
8053
  /**
8114
8054
  *
8115
8055
  * @summary Get all countries.
@@ -8118,13 +8058,14 @@ exports.CountriesApiAxiosParamCreator = function (configuration) {
8118
8058
  * @param {string} [description]
8119
8059
  * @param {Date} [createdDate]
8120
8060
  * @param {string} [languageCode]
8061
+ * @param {boolean} [showHidden]
8121
8062
  * @param {number} [page]
8122
8063
  * @param {number} [limit]
8123
8064
  * @param {Date} [lastRetrieved]
8124
8065
  * @param {*} [options] Override http request option.
8125
8066
  * @throws {RequiredError}
8126
8067
  */
8127
- apiV1CountriesGet: function (id, name, description, createdDate, languageCode, page, limit, lastRetrieved, options) {
8068
+ apiV1CountriesGet: function (id, name, description, createdDate, languageCode, showHidden, page, limit, lastRetrieved, options) {
8128
8069
  if (options === void 0) { options = {}; }
8129
8070
  return __awaiter(_this, void 0, void 0, function () {
8130
8071
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8163,6 +8104,9 @@ exports.CountriesApiAxiosParamCreator = function (configuration) {
8163
8104
  if (languageCode !== undefined) {
8164
8105
  localVarQueryParameter['LanguageCode'] = languageCode;
8165
8106
  }
8107
+ if (showHidden !== undefined) {
8108
+ localVarQueryParameter['ShowHidden'] = showHidden;
8109
+ }
8166
8110
  if (page !== undefined) {
8167
8111
  localVarQueryParameter['page'] = page;
8168
8112
  }
@@ -8455,6 +8399,26 @@ exports.CountriesApiFp = function (configuration) {
8455
8399
  });
8456
8400
  });
8457
8401
  },
8402
+ /**
8403
+ *
8404
+ * @summary Reactivate country.
8405
+ * @param {string} countryId
8406
+ * @param {*} [options] Override http request option.
8407
+ * @throws {RequiredError}
8408
+ */
8409
+ apiV1CountriesCountryIdRevokePut: function (countryId, options) {
8410
+ return __awaiter(this, void 0, void 0, function () {
8411
+ var localVarAxiosArgs;
8412
+ return __generator(this, function (_a) {
8413
+ switch (_a.label) {
8414
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdRevokePut(countryId, options)];
8415
+ case 1:
8416
+ localVarAxiosArgs = _a.sent();
8417
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
8418
+ }
8419
+ });
8420
+ });
8421
+ },
8458
8422
  /**
8459
8423
  *
8460
8424
  * @summary Get all countries.
@@ -8463,18 +8427,19 @@ exports.CountriesApiFp = function (configuration) {
8463
8427
  * @param {string} [description]
8464
8428
  * @param {Date} [createdDate]
8465
8429
  * @param {string} [languageCode]
8430
+ * @param {boolean} [showHidden]
8466
8431
  * @param {number} [page]
8467
8432
  * @param {number} [limit]
8468
8433
  * @param {Date} [lastRetrieved]
8469
8434
  * @param {*} [options] Override http request option.
8470
8435
  * @throws {RequiredError}
8471
8436
  */
8472
- apiV1CountriesGet: function (id, name, description, createdDate, languageCode, page, limit, lastRetrieved, options) {
8437
+ apiV1CountriesGet: function (id, name, description, createdDate, languageCode, showHidden, page, limit, lastRetrieved, options) {
8473
8438
  return __awaiter(this, void 0, void 0, function () {
8474
8439
  var localVarAxiosArgs;
8475
8440
  return __generator(this, function (_a) {
8476
8441
  switch (_a.label) {
8477
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesGet(id, name, description, createdDate, languageCode, page, limit, lastRetrieved, options)];
8442
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesGet(id, name, description, createdDate, languageCode, showHidden, page, limit, lastRetrieved, options)];
8478
8443
  case 1:
8479
8444
  localVarAxiosArgs = _a.sent();
8480
8445
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -8624,6 +8589,16 @@ exports.CountriesApiFactory = function (configuration, basePath, axios) {
8624
8589
  apiV1CountriesCountryIdPut: function (countryId, updateCountryCommand, options) {
8625
8590
  return localVarFp.apiV1CountriesCountryIdPut(countryId, updateCountryCommand, options).then(function (request) { return request(axios, basePath); });
8626
8591
  },
8592
+ /**
8593
+ *
8594
+ * @summary Reactivate country.
8595
+ * @param {string} countryId
8596
+ * @param {*} [options] Override http request option.
8597
+ * @throws {RequiredError}
8598
+ */
8599
+ apiV1CountriesCountryIdRevokePut: function (countryId, options) {
8600
+ return localVarFp.apiV1CountriesCountryIdRevokePut(countryId, options).then(function (request) { return request(axios, basePath); });
8601
+ },
8627
8602
  /**
8628
8603
  *
8629
8604
  * @summary Get all countries.
@@ -8632,14 +8607,15 @@ exports.CountriesApiFactory = function (configuration, basePath, axios) {
8632
8607
  * @param {string} [description]
8633
8608
  * @param {Date} [createdDate]
8634
8609
  * @param {string} [languageCode]
8610
+ * @param {boolean} [showHidden]
8635
8611
  * @param {number} [page]
8636
8612
  * @param {number} [limit]
8637
8613
  * @param {Date} [lastRetrieved]
8638
8614
  * @param {*} [options] Override http request option.
8639
8615
  * @throws {RequiredError}
8640
8616
  */
8641
- apiV1CountriesGet: function (id, name, description, createdDate, languageCode, page, limit, lastRetrieved, options) {
8642
- return localVarFp.apiV1CountriesGet(id, name, description, createdDate, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
8617
+ apiV1CountriesGet: function (id, name, description, createdDate, languageCode, showHidden, page, limit, lastRetrieved, options) {
8618
+ return localVarFp.apiV1CountriesGet(id, name, description, createdDate, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
8643
8619
  },
8644
8620
  /**
8645
8621
  *
@@ -8783,6 +8759,18 @@ var CountriesApi = /** @class */ (function (_super) {
8783
8759
  var _this = this;
8784
8760
  return exports.CountriesApiFp(this.configuration).apiV1CountriesCountryIdPut(countryId, updateCountryCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
8785
8761
  };
8762
+ /**
8763
+ *
8764
+ * @summary Reactivate country.
8765
+ * @param {string} countryId
8766
+ * @param {*} [options] Override http request option.
8767
+ * @throws {RequiredError}
8768
+ * @memberof CountriesApi
8769
+ */
8770
+ CountriesApi.prototype.apiV1CountriesCountryIdRevokePut = function (countryId, options) {
8771
+ var _this = this;
8772
+ return exports.CountriesApiFp(this.configuration).apiV1CountriesCountryIdRevokePut(countryId, options).then(function (request) { return request(_this.axios, _this.basePath); });
8773
+ };
8786
8774
  /**
8787
8775
  *
8788
8776
  * @summary Get all countries.
@@ -8791,6 +8779,7 @@ var CountriesApi = /** @class */ (function (_super) {
8791
8779
  * @param {string} [description]
8792
8780
  * @param {Date} [createdDate]
8793
8781
  * @param {string} [languageCode]
8782
+ * @param {boolean} [showHidden]
8794
8783
  * @param {number} [page]
8795
8784
  * @param {number} [limit]
8796
8785
  * @param {Date} [lastRetrieved]
@@ -8798,9 +8787,9 @@ var CountriesApi = /** @class */ (function (_super) {
8798
8787
  * @throws {RequiredError}
8799
8788
  * @memberof CountriesApi
8800
8789
  */
8801
- CountriesApi.prototype.apiV1CountriesGet = function (id, name, description, createdDate, languageCode, page, limit, lastRetrieved, options) {
8790
+ CountriesApi.prototype.apiV1CountriesGet = function (id, name, description, createdDate, languageCode, showHidden, page, limit, lastRetrieved, options) {
8802
8791
  var _this = this;
8803
- return exports.CountriesApiFp(this.configuration).apiV1CountriesGet(id, name, description, createdDate, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
8792
+ return exports.CountriesApiFp(this.configuration).apiV1CountriesGet(id, name, description, createdDate, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
8804
8793
  };
8805
8794
  /**
8806
8795
  *
@@ -10492,13 +10481,16 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10492
10481
  return {
10493
10482
  /**
10494
10483
  *
10495
- * @summary Delete DoctorAffiliation.
10484
+ * @summary Get all doctor affiliations.
10496
10485
  * @param {string} doctorId
10497
- * @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
10486
+ * @param {string} [hospitalName]
10487
+ * @param {number} [page]
10488
+ * @param {number} [limit]
10489
+ * @param {Date} [lastRetrieved]
10498
10490
  * @param {*} [options] Override http request option.
10499
10491
  * @throws {RequiredError}
10500
10492
  */
10501
- apiV1DoctorsDoctorIdAffiliationsDelete: function (doctorId, deleteDoctorAffiliationCommand, options) {
10493
+ apiV1DoctorsDoctorIdAffiliationsGet: function (doctorId, hospitalName, page, limit, lastRetrieved, options) {
10502
10494
  if (options === void 0) { options = {}; }
10503
10495
  return __awaiter(_this, void 0, void 0, function () {
10504
10496
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -10506,13 +10498,74 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10506
10498
  switch (_a.label) {
10507
10499
  case 0:
10508
10500
  // verify required parameter 'doctorId' is not null or undefined
10509
- common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsDelete', 'doctorId', doctorId);
10501
+ common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsGet', 'doctorId', doctorId);
10510
10502
  localVarPath = "/api/v1/doctors/{doctorId}/affiliations"
10511
10503
  .replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)));
10512
10504
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10513
10505
  if (configuration) {
10514
10506
  baseOptions = configuration.baseOptions;
10515
10507
  }
10508
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10509
+ localVarHeaderParameter = {};
10510
+ localVarQueryParameter = {};
10511
+ // authentication oauth2 required
10512
+ // oauth required
10513
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
10514
+ case 1:
10515
+ // authentication oauth2 required
10516
+ // oauth required
10517
+ _a.sent();
10518
+ if (hospitalName !== undefined) {
10519
+ localVarQueryParameter['HospitalName'] = hospitalName;
10520
+ }
10521
+ if (page !== undefined) {
10522
+ localVarQueryParameter['page'] = page;
10523
+ }
10524
+ if (limit !== undefined) {
10525
+ localVarQueryParameter['limit'] = limit;
10526
+ }
10527
+ if (lastRetrieved !== undefined) {
10528
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
10529
+ lastRetrieved.toISOString() :
10530
+ lastRetrieved;
10531
+ }
10532
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10533
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10534
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10535
+ return [2 /*return*/, {
10536
+ url: common_1.toPathString(localVarUrlObj),
10537
+ options: localVarRequestOptions,
10538
+ }];
10539
+ }
10540
+ });
10541
+ });
10542
+ },
10543
+ /**
10544
+ *
10545
+ * @summary Delete doctor affiliation.
10546
+ * @param {string} doctorId
10547
+ * @param {string} hospitalId
10548
+ * @param {*} [options] Override http request option.
10549
+ * @throws {RequiredError}
10550
+ */
10551
+ apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete: function (doctorId, hospitalId, options) {
10552
+ if (options === void 0) { options = {}; }
10553
+ return __awaiter(_this, void 0, void 0, function () {
10554
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10555
+ return __generator(this, function (_a) {
10556
+ switch (_a.label) {
10557
+ case 0:
10558
+ // verify required parameter 'doctorId' is not null or undefined
10559
+ common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete', 'doctorId', doctorId);
10560
+ // verify required parameter 'hospitalId' is not null or undefined
10561
+ common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete', 'hospitalId', hospitalId);
10562
+ localVarPath = "/api/v1/doctors/{doctorId}/affiliations/{hospitalId}"
10563
+ .replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)))
10564
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
10565
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10566
+ if (configuration) {
10567
+ baseOptions = configuration.baseOptions;
10568
+ }
10516
10569
  localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
10517
10570
  localVarHeaderParameter = {};
10518
10571
  localVarQueryParameter = {};
@@ -10523,11 +10576,9 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10523
10576
  // authentication oauth2 required
10524
10577
  // oauth required
10525
10578
  _a.sent();
10526
- localVarHeaderParameter['Content-Type'] = 'application/json';
10527
10579
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10528
10580
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10529
10581
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10530
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(deleteDoctorAffiliationCommand, localVarRequestOptions, configuration);
10531
10582
  return [2 /*return*/, {
10532
10583
  url: common_1.toPathString(localVarUrlObj),
10533
10584
  options: localVarRequestOptions,
@@ -10538,7 +10589,53 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10538
10589
  },
10539
10590
  /**
10540
10591
  *
10541
- * @summary Create DoctorAffiliation.
10592
+ * @summary Get doctor affiliation.
10593
+ * @param {string} doctorId
10594
+ * @param {string} hospitalId
10595
+ * @param {*} [options] Override http request option.
10596
+ * @throws {RequiredError}
10597
+ */
10598
+ apiV1DoctorsDoctorIdAffiliationsHospitalIdGet: function (doctorId, hospitalId, options) {
10599
+ if (options === void 0) { options = {}; }
10600
+ return __awaiter(_this, void 0, void 0, function () {
10601
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10602
+ return __generator(this, function (_a) {
10603
+ switch (_a.label) {
10604
+ case 0:
10605
+ // verify required parameter 'doctorId' is not null or undefined
10606
+ common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsHospitalIdGet', 'doctorId', doctorId);
10607
+ // verify required parameter 'hospitalId' is not null or undefined
10608
+ common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsHospitalIdGet', 'hospitalId', hospitalId);
10609
+ localVarPath = "/api/v1/doctors/{doctorId}/affiliations/{hospitalId}"
10610
+ .replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)))
10611
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
10612
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10613
+ if (configuration) {
10614
+ baseOptions = configuration.baseOptions;
10615
+ }
10616
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10617
+ localVarHeaderParameter = {};
10618
+ localVarQueryParameter = {};
10619
+ // authentication oauth2 required
10620
+ // oauth required
10621
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
10622
+ case 1:
10623
+ // authentication oauth2 required
10624
+ // oauth required
10625
+ _a.sent();
10626
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10627
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10628
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10629
+ return [2 /*return*/, {
10630
+ url: common_1.toPathString(localVarUrlObj),
10631
+ options: localVarRequestOptions,
10632
+ }];
10633
+ }
10634
+ });
10635
+ });
10636
+ },
10637
+ /**
10638
+ *
10542
10639
  * @param {string} doctorId
10543
10640
  * @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
10544
10641
  * @param {*} [options] Override http request option.
@@ -11169,11 +11266,10 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
11169
11266
  *
11170
11267
  * @summary Get Doctor.
11171
11268
  * @param {string} doctorId
11172
- * @param {string} [languageCode]
11173
11269
  * @param {*} [options] Override http request option.
11174
11270
  * @throws {RequiredError}
11175
11271
  */
11176
- apiV1DoctorsDoctorIdGet: function (doctorId, languageCode, options) {
11272
+ apiV1DoctorsDoctorIdGet: function (doctorId, options) {
11177
11273
  if (options === void 0) { options = {}; }
11178
11274
  return __awaiter(_this, void 0, void 0, function () {
11179
11275
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -11198,9 +11294,6 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
11198
11294
  // authentication oauth2 required
11199
11295
  // oauth required
11200
11296
  _a.sent();
11201
- if (languageCode !== undefined) {
11202
- localVarQueryParameter['languageCode'] = languageCode;
11203
- }
11204
11297
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
11205
11298
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11206
11299
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12034,16 +12127,8 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
12034
12127
  /**
12035
12128
  *
12036
12129
  * @summary Get all Doctors.
12037
- * @param {string} [countryId]
12038
12130
  * @param {string} [hospitalId]
12039
- * @param {MarketingType} [marketingType]
12040
- * @param {string} [specialtyId]
12041
- * @param {string} [specialtyTypeId]
12042
- * @param {boolean} [consultationEnabled]
12043
- * @param {string} [exceptDoctorId]
12044
- * @param {Array<string>} [exceptDoctorIds]
12045
12131
  * @param {string} [languageCode]
12046
- * @param {Array<string>} [ids]
12047
12132
  * @param {string} [id]
12048
12133
  * @param {string} [fullname]
12049
12134
  * @param {string} [email]
@@ -12057,7 +12142,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
12057
12142
  * @param {*} [options] Override http request option.
12058
12143
  * @throws {RequiredError}
12059
12144
  */
12060
- apiV1DoctorsGet: function (countryId, hospitalId, marketingType, specialtyId, specialtyTypeId, consultationEnabled, exceptDoctorId, exceptDoctorIds, languageCode, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
12145
+ apiV1DoctorsGet: function (hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
12061
12146
  if (options === void 0) { options = {}; }
12062
12147
  return __awaiter(_this, void 0, void 0, function () {
12063
12148
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -12079,36 +12164,12 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
12079
12164
  // authentication oauth2 required
12080
12165
  // oauth required
12081
12166
  _a.sent();
12082
- if (countryId !== undefined) {
12083
- localVarQueryParameter['CountryId'] = countryId;
12084
- }
12085
12167
  if (hospitalId !== undefined) {
12086
12168
  localVarQueryParameter['HospitalId'] = hospitalId;
12087
12169
  }
12088
- if (marketingType !== undefined) {
12089
- localVarQueryParameter['MarketingType'] = marketingType;
12090
- }
12091
- if (specialtyId !== undefined) {
12092
- localVarQueryParameter['SpecialtyId'] = specialtyId;
12093
- }
12094
- if (specialtyTypeId !== undefined) {
12095
- localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
12096
- }
12097
- if (consultationEnabled !== undefined) {
12098
- localVarQueryParameter['ConsultationEnabled'] = consultationEnabled;
12099
- }
12100
- if (exceptDoctorId !== undefined) {
12101
- localVarQueryParameter['ExceptDoctorId'] = exceptDoctorId;
12102
- }
12103
- if (exceptDoctorIds) {
12104
- localVarQueryParameter['ExceptDoctorIds'] = exceptDoctorIds;
12105
- }
12106
12170
  if (languageCode !== undefined) {
12107
12171
  localVarQueryParameter['LanguageCode'] = languageCode;
12108
12172
  }
12109
- if (ids) {
12110
- localVarQueryParameter['Ids'] = ids;
12111
- }
12112
12173
  if (id !== undefined) {
12113
12174
  localVarQueryParameter['Id'] = id;
12114
12175
  }
@@ -12158,7 +12219,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
12158
12219
  },
12159
12220
  /**
12160
12221
  *
12161
- * @summary Create Doctor.
12222
+ * @summary Create a Doctor.
12162
12223
  * @param {CreateDoctorCommand} [createDoctorCommand]
12163
12224
  * @param {*} [options] Override http request option.
12164
12225
  * @throws {RequiredError}
@@ -12256,18 +12317,63 @@ exports.DoctorsApiFp = function (configuration) {
12256
12317
  return {
12257
12318
  /**
12258
12319
  *
12259
- * @summary Delete DoctorAffiliation.
12320
+ * @summary Get all doctor affiliations.
12321
+ * @param {string} doctorId
12322
+ * @param {string} [hospitalName]
12323
+ * @param {number} [page]
12324
+ * @param {number} [limit]
12325
+ * @param {Date} [lastRetrieved]
12326
+ * @param {*} [options] Override http request option.
12327
+ * @throws {RequiredError}
12328
+ */
12329
+ apiV1DoctorsDoctorIdAffiliationsGet: function (doctorId, hospitalName, page, limit, lastRetrieved, options) {
12330
+ return __awaiter(this, void 0, void 0, function () {
12331
+ var localVarAxiosArgs;
12332
+ return __generator(this, function (_a) {
12333
+ switch (_a.label) {
12334
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsGet(doctorId, hospitalName, page, limit, lastRetrieved, options)];
12335
+ case 1:
12336
+ localVarAxiosArgs = _a.sent();
12337
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12338
+ }
12339
+ });
12340
+ });
12341
+ },
12342
+ /**
12343
+ *
12344
+ * @summary Delete doctor affiliation.
12260
12345
  * @param {string} doctorId
12261
- * @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
12346
+ * @param {string} hospitalId
12262
12347
  * @param {*} [options] Override http request option.
12263
12348
  * @throws {RequiredError}
12264
12349
  */
12265
- apiV1DoctorsDoctorIdAffiliationsDelete: function (doctorId, deleteDoctorAffiliationCommand, options) {
12350
+ apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete: function (doctorId, hospitalId, options) {
12266
12351
  return __awaiter(this, void 0, void 0, function () {
12267
12352
  var localVarAxiosArgs;
12268
12353
  return __generator(this, function (_a) {
12269
12354
  switch (_a.label) {
12270
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options)];
12355
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete(doctorId, hospitalId, options)];
12356
+ case 1:
12357
+ localVarAxiosArgs = _a.sent();
12358
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12359
+ }
12360
+ });
12361
+ });
12362
+ },
12363
+ /**
12364
+ *
12365
+ * @summary Get doctor affiliation.
12366
+ * @param {string} doctorId
12367
+ * @param {string} hospitalId
12368
+ * @param {*} [options] Override http request option.
12369
+ * @throws {RequiredError}
12370
+ */
12371
+ apiV1DoctorsDoctorIdAffiliationsHospitalIdGet: function (doctorId, hospitalId, options) {
12372
+ return __awaiter(this, void 0, void 0, function () {
12373
+ var localVarAxiosArgs;
12374
+ return __generator(this, function (_a) {
12375
+ switch (_a.label) {
12376
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsHospitalIdGet(doctorId, hospitalId, options)];
12271
12377
  case 1:
12272
12378
  localVarAxiosArgs = _a.sent();
12273
12379
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12277,7 +12383,6 @@ exports.DoctorsApiFp = function (configuration) {
12277
12383
  },
12278
12384
  /**
12279
12385
  *
12280
- * @summary Create DoctorAffiliation.
12281
12386
  * @param {string} doctorId
12282
12387
  * @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
12283
12388
  * @param {*} [options] Override http request option.
@@ -12546,16 +12651,15 @@ exports.DoctorsApiFp = function (configuration) {
12546
12651
  *
12547
12652
  * @summary Get Doctor.
12548
12653
  * @param {string} doctorId
12549
- * @param {string} [languageCode]
12550
12654
  * @param {*} [options] Override http request option.
12551
12655
  * @throws {RequiredError}
12552
12656
  */
12553
- apiV1DoctorsDoctorIdGet: function (doctorId, languageCode, options) {
12657
+ apiV1DoctorsDoctorIdGet: function (doctorId, options) {
12554
12658
  return __awaiter(this, void 0, void 0, function () {
12555
12659
  var localVarAxiosArgs;
12556
12660
  return __generator(this, function (_a) {
12557
12661
  switch (_a.label) {
12558
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdGet(doctorId, languageCode, options)];
12662
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdGet(doctorId, options)];
12559
12663
  case 1:
12560
12664
  localVarAxiosArgs = _a.sent();
12561
12665
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12919,16 +13023,8 @@ exports.DoctorsApiFp = function (configuration) {
12919
13023
  /**
12920
13024
  *
12921
13025
  * @summary Get all Doctors.
12922
- * @param {string} [countryId]
12923
13026
  * @param {string} [hospitalId]
12924
- * @param {MarketingType} [marketingType]
12925
- * @param {string} [specialtyId]
12926
- * @param {string} [specialtyTypeId]
12927
- * @param {boolean} [consultationEnabled]
12928
- * @param {string} [exceptDoctorId]
12929
- * @param {Array<string>} [exceptDoctorIds]
12930
13027
  * @param {string} [languageCode]
12931
- * @param {Array<string>} [ids]
12932
13028
  * @param {string} [id]
12933
13029
  * @param {string} [fullname]
12934
13030
  * @param {string} [email]
@@ -12942,12 +13038,12 @@ exports.DoctorsApiFp = function (configuration) {
12942
13038
  * @param {*} [options] Override http request option.
12943
13039
  * @throws {RequiredError}
12944
13040
  */
12945
- apiV1DoctorsGet: function (countryId, hospitalId, marketingType, specialtyId, specialtyTypeId, consultationEnabled, exceptDoctorId, exceptDoctorIds, languageCode, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
13041
+ apiV1DoctorsGet: function (hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
12946
13042
  return __awaiter(this, void 0, void 0, function () {
12947
13043
  var localVarAxiosArgs;
12948
13044
  return __generator(this, function (_a) {
12949
13045
  switch (_a.label) {
12950
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsGet(countryId, hospitalId, marketingType, specialtyId, specialtyTypeId, consultationEnabled, exceptDoctorId, exceptDoctorIds, languageCode, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
13046
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsGet(hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
12951
13047
  case 1:
12952
13048
  localVarAxiosArgs = _a.sent();
12953
13049
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12957,7 +13053,7 @@ exports.DoctorsApiFp = function (configuration) {
12957
13053
  },
12958
13054
  /**
12959
13055
  *
12960
- * @summary Create Doctor.
13056
+ * @summary Create a Doctor.
12961
13057
  * @param {CreateDoctorCommand} [createDoctorCommand]
12962
13058
  * @param {*} [options] Override http request option.
12963
13059
  * @throws {RequiredError}
@@ -13007,18 +13103,42 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
13007
13103
  return {
13008
13104
  /**
13009
13105
  *
13010
- * @summary Delete DoctorAffiliation.
13106
+ * @summary Get all doctor affiliations.
13107
+ * @param {string} doctorId
13108
+ * @param {string} [hospitalName]
13109
+ * @param {number} [page]
13110
+ * @param {number} [limit]
13111
+ * @param {Date} [lastRetrieved]
13112
+ * @param {*} [options] Override http request option.
13113
+ * @throws {RequiredError}
13114
+ */
13115
+ apiV1DoctorsDoctorIdAffiliationsGet: function (doctorId, hospitalName, page, limit, lastRetrieved, options) {
13116
+ return localVarFp.apiV1DoctorsDoctorIdAffiliationsGet(doctorId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
13117
+ },
13118
+ /**
13119
+ *
13120
+ * @summary Delete doctor affiliation.
13011
13121
  * @param {string} doctorId
13012
- * @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
13122
+ * @param {string} hospitalId
13013
13123
  * @param {*} [options] Override http request option.
13014
13124
  * @throws {RequiredError}
13015
13125
  */
13016
- apiV1DoctorsDoctorIdAffiliationsDelete: function (doctorId, deleteDoctorAffiliationCommand, options) {
13017
- return localVarFp.apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options).then(function (request) { return request(axios, basePath); });
13126
+ apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete: function (doctorId, hospitalId, options) {
13127
+ return localVarFp.apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete(doctorId, hospitalId, options).then(function (request) { return request(axios, basePath); });
13128
+ },
13129
+ /**
13130
+ *
13131
+ * @summary Get doctor affiliation.
13132
+ * @param {string} doctorId
13133
+ * @param {string} hospitalId
13134
+ * @param {*} [options] Override http request option.
13135
+ * @throws {RequiredError}
13136
+ */
13137
+ apiV1DoctorsDoctorIdAffiliationsHospitalIdGet: function (doctorId, hospitalId, options) {
13138
+ return localVarFp.apiV1DoctorsDoctorIdAffiliationsHospitalIdGet(doctorId, hospitalId, options).then(function (request) { return request(axios, basePath); });
13018
13139
  },
13019
13140
  /**
13020
13141
  *
13021
- * @summary Create DoctorAffiliation.
13022
13142
  * @param {string} doctorId
13023
13143
  * @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
13024
13144
  * @param {*} [options] Override http request option.
@@ -13167,12 +13287,11 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
13167
13287
  *
13168
13288
  * @summary Get Doctor.
13169
13289
  * @param {string} doctorId
13170
- * @param {string} [languageCode]
13171
13290
  * @param {*} [options] Override http request option.
13172
13291
  * @throws {RequiredError}
13173
13292
  */
13174
- apiV1DoctorsDoctorIdGet: function (doctorId, languageCode, options) {
13175
- return localVarFp.apiV1DoctorsDoctorIdGet(doctorId, languageCode, options).then(function (request) { return request(axios, basePath); });
13293
+ apiV1DoctorsDoctorIdGet: function (doctorId, options) {
13294
+ return localVarFp.apiV1DoctorsDoctorIdGet(doctorId, options).then(function (request) { return request(axios, basePath); });
13176
13295
  },
13177
13296
  /**
13178
13297
  *
@@ -13370,16 +13489,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
13370
13489
  /**
13371
13490
  *
13372
13491
  * @summary Get all Doctors.
13373
- * @param {string} [countryId]
13374
13492
  * @param {string} [hospitalId]
13375
- * @param {MarketingType} [marketingType]
13376
- * @param {string} [specialtyId]
13377
- * @param {string} [specialtyTypeId]
13378
- * @param {boolean} [consultationEnabled]
13379
- * @param {string} [exceptDoctorId]
13380
- * @param {Array<string>} [exceptDoctorIds]
13381
13493
  * @param {string} [languageCode]
13382
- * @param {Array<string>} [ids]
13383
13494
  * @param {string} [id]
13384
13495
  * @param {string} [fullname]
13385
13496
  * @param {string} [email]
@@ -13393,12 +13504,12 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
13393
13504
  * @param {*} [options] Override http request option.
13394
13505
  * @throws {RequiredError}
13395
13506
  */
13396
- apiV1DoctorsGet: function (countryId, hospitalId, marketingType, specialtyId, specialtyTypeId, consultationEnabled, exceptDoctorId, exceptDoctorIds, languageCode, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
13397
- return localVarFp.apiV1DoctorsGet(countryId, hospitalId, marketingType, specialtyId, specialtyTypeId, consultationEnabled, exceptDoctorId, exceptDoctorIds, languageCode, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
13507
+ apiV1DoctorsGet: function (hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
13508
+ return localVarFp.apiV1DoctorsGet(hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
13398
13509
  },
13399
13510
  /**
13400
13511
  *
13401
- * @summary Create Doctor.
13512
+ * @summary Create a Doctor.
13402
13513
  * @param {CreateDoctorCommand} [createDoctorCommand]
13403
13514
  * @param {*} [options] Override http request option.
13404
13515
  * @throws {RequiredError}
@@ -13418,34 +13529,62 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
13418
13529
  return localVarFp.apiV1DoctorsSlugGet(slug, languageCode, options).then(function (request) { return request(axios, basePath); });
13419
13530
  },
13420
13531
  };
13421
- };
13422
- /**
13423
- * DoctorsApi - object-oriented interface
13424
- * @export
13425
- * @class DoctorsApi
13426
- * @extends {BaseAPI}
13427
- */
13428
- var DoctorsApi = /** @class */ (function (_super) {
13429
- __extends(DoctorsApi, _super);
13430
- function DoctorsApi() {
13431
- return _super !== null && _super.apply(this, arguments) || this;
13432
- }
13532
+ };
13533
+ /**
13534
+ * DoctorsApi - object-oriented interface
13535
+ * @export
13536
+ * @class DoctorsApi
13537
+ * @extends {BaseAPI}
13538
+ */
13539
+ var DoctorsApi = /** @class */ (function (_super) {
13540
+ __extends(DoctorsApi, _super);
13541
+ function DoctorsApi() {
13542
+ return _super !== null && _super.apply(this, arguments) || this;
13543
+ }
13544
+ /**
13545
+ *
13546
+ * @summary Get all doctor affiliations.
13547
+ * @param {string} doctorId
13548
+ * @param {string} [hospitalName]
13549
+ * @param {number} [page]
13550
+ * @param {number} [limit]
13551
+ * @param {Date} [lastRetrieved]
13552
+ * @param {*} [options] Override http request option.
13553
+ * @throws {RequiredError}
13554
+ * @memberof DoctorsApi
13555
+ */
13556
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsGet = function (doctorId, hospitalName, page, limit, lastRetrieved, options) {
13557
+ var _this = this;
13558
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsGet(doctorId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
13559
+ };
13560
+ /**
13561
+ *
13562
+ * @summary Delete doctor affiliation.
13563
+ * @param {string} doctorId
13564
+ * @param {string} hospitalId
13565
+ * @param {*} [options] Override http request option.
13566
+ * @throws {RequiredError}
13567
+ * @memberof DoctorsApi
13568
+ */
13569
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete = function (doctorId, hospitalId, options) {
13570
+ var _this = this;
13571
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete(doctorId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13572
+ };
13433
13573
  /**
13434
13574
  *
13435
- * @summary Delete DoctorAffiliation.
13575
+ * @summary Get doctor affiliation.
13436
13576
  * @param {string} doctorId
13437
- * @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
13577
+ * @param {string} hospitalId
13438
13578
  * @param {*} [options] Override http request option.
13439
13579
  * @throws {RequiredError}
13440
13580
  * @memberof DoctorsApi
13441
13581
  */
13442
- DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsDelete = function (doctorId, deleteDoctorAffiliationCommand, options) {
13582
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsHospitalIdGet = function (doctorId, hospitalId, options) {
13443
13583
  var _this = this;
13444
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
13584
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsHospitalIdGet(doctorId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13445
13585
  };
13446
13586
  /**
13447
13587
  *
13448
- * @summary Create DoctorAffiliation.
13449
13588
  * @param {string} doctorId
13450
13589
  * @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
13451
13590
  * @param {*} [options] Override http request option.
@@ -13618,14 +13757,13 @@ var DoctorsApi = /** @class */ (function (_super) {
13618
13757
  *
13619
13758
  * @summary Get Doctor.
13620
13759
  * @param {string} doctorId
13621
- * @param {string} [languageCode]
13622
13760
  * @param {*} [options] Override http request option.
13623
13761
  * @throws {RequiredError}
13624
13762
  * @memberof DoctorsApi
13625
13763
  */
13626
- DoctorsApi.prototype.apiV1DoctorsDoctorIdGet = function (doctorId, languageCode, options) {
13764
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdGet = function (doctorId, options) {
13627
13765
  var _this = this;
13628
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdGet(doctorId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
13766
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdGet(doctorId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13629
13767
  };
13630
13768
  /**
13631
13769
  *
@@ -13855,16 +13993,8 @@ var DoctorsApi = /** @class */ (function (_super) {
13855
13993
  /**
13856
13994
  *
13857
13995
  * @summary Get all Doctors.
13858
- * @param {string} [countryId]
13859
13996
  * @param {string} [hospitalId]
13860
- * @param {MarketingType} [marketingType]
13861
- * @param {string} [specialtyId]
13862
- * @param {string} [specialtyTypeId]
13863
- * @param {boolean} [consultationEnabled]
13864
- * @param {string} [exceptDoctorId]
13865
- * @param {Array<string>} [exceptDoctorIds]
13866
13997
  * @param {string} [languageCode]
13867
- * @param {Array<string>} [ids]
13868
13998
  * @param {string} [id]
13869
13999
  * @param {string} [fullname]
13870
14000
  * @param {string} [email]
@@ -13879,13 +14009,13 @@ var DoctorsApi = /** @class */ (function (_super) {
13879
14009
  * @throws {RequiredError}
13880
14010
  * @memberof DoctorsApi
13881
14011
  */
13882
- DoctorsApi.prototype.apiV1DoctorsGet = function (countryId, hospitalId, marketingType, specialtyId, specialtyTypeId, consultationEnabled, exceptDoctorId, exceptDoctorIds, languageCode, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
14012
+ DoctorsApi.prototype.apiV1DoctorsGet = function (hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
13883
14013
  var _this = this;
13884
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsGet(countryId, hospitalId, marketingType, specialtyId, specialtyTypeId, consultationEnabled, exceptDoctorId, exceptDoctorIds, languageCode, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
14014
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsGet(hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
13885
14015
  };
13886
14016
  /**
13887
14017
  *
13888
- * @summary Create Doctor.
14018
+ * @summary Create a Doctor.
13889
14019
  * @param {CreateDoctorCommand} [createDoctorCommand]
13890
14020
  * @param {*} [options] Override http request option.
13891
14021
  * @throws {RequiredError}
@@ -19467,6 +19597,145 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
19467
19597
  });
19468
19598
  });
19469
19599
  },
19600
+ /**
19601
+ *
19602
+ * @summary Delete manager affiliation.
19603
+ * @param {string} managerId
19604
+ * @param {string} hospitalId
19605
+ * @param {*} [options] Override http request option.
19606
+ * @throws {RequiredError}
19607
+ */
19608
+ apiV1ManagersManagerIdAffiliationsHospitalIdDelete: function (managerId, hospitalId, options) {
19609
+ if (options === void 0) { options = {}; }
19610
+ return __awaiter(_this, void 0, void 0, function () {
19611
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19612
+ return __generator(this, function (_a) {
19613
+ switch (_a.label) {
19614
+ case 0:
19615
+ // verify required parameter 'managerId' is not null or undefined
19616
+ common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsHospitalIdDelete', 'managerId', managerId);
19617
+ // verify required parameter 'hospitalId' is not null or undefined
19618
+ common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsHospitalIdDelete', 'hospitalId', hospitalId);
19619
+ localVarPath = "/api/v1/managers/{managerId}/affiliations/{hospitalId}"
19620
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)))
19621
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
19622
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19623
+ if (configuration) {
19624
+ baseOptions = configuration.baseOptions;
19625
+ }
19626
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
19627
+ localVarHeaderParameter = {};
19628
+ localVarQueryParameter = {};
19629
+ // authentication oauth2 required
19630
+ // oauth required
19631
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19632
+ case 1:
19633
+ // authentication oauth2 required
19634
+ // oauth required
19635
+ _a.sent();
19636
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19637
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19638
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19639
+ return [2 /*return*/, {
19640
+ url: common_1.toPathString(localVarUrlObj),
19641
+ options: localVarRequestOptions,
19642
+ }];
19643
+ }
19644
+ });
19645
+ });
19646
+ },
19647
+ /**
19648
+ *
19649
+ * @summary Get manager affiliation.
19650
+ * @param {string} managerId
19651
+ * @param {string} hospitalId
19652
+ * @param {*} [options] Override http request option.
19653
+ * @throws {RequiredError}
19654
+ */
19655
+ apiV1ManagersManagerIdAffiliationsHospitalIdGet: function (managerId, hospitalId, options) {
19656
+ if (options === void 0) { options = {}; }
19657
+ return __awaiter(_this, void 0, void 0, function () {
19658
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19659
+ return __generator(this, function (_a) {
19660
+ switch (_a.label) {
19661
+ case 0:
19662
+ // verify required parameter 'managerId' is not null or undefined
19663
+ common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsHospitalIdGet', 'managerId', managerId);
19664
+ // verify required parameter 'hospitalId' is not null or undefined
19665
+ common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsHospitalIdGet', 'hospitalId', hospitalId);
19666
+ localVarPath = "/api/v1/managers/{managerId}/affiliations/{hospitalId}"
19667
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)))
19668
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
19669
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19670
+ if (configuration) {
19671
+ baseOptions = configuration.baseOptions;
19672
+ }
19673
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19674
+ localVarHeaderParameter = {};
19675
+ localVarQueryParameter = {};
19676
+ // authentication oauth2 required
19677
+ // oauth required
19678
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19679
+ case 1:
19680
+ // authentication oauth2 required
19681
+ // oauth required
19682
+ _a.sent();
19683
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19684
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19685
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19686
+ return [2 /*return*/, {
19687
+ url: common_1.toPathString(localVarUrlObj),
19688
+ options: localVarRequestOptions,
19689
+ }];
19690
+ }
19691
+ });
19692
+ });
19693
+ },
19694
+ /**
19695
+ *
19696
+ * @param {string} managerId
19697
+ * @param {CreateManagerAffiliationCommand} [createManagerAffiliationCommand]
19698
+ * @param {*} [options] Override http request option.
19699
+ * @throws {RequiredError}
19700
+ */
19701
+ apiV1ManagersManagerIdAffiliationsPost: function (managerId, createManagerAffiliationCommand, options) {
19702
+ if (options === void 0) { options = {}; }
19703
+ return __awaiter(_this, void 0, void 0, function () {
19704
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19705
+ return __generator(this, function (_a) {
19706
+ switch (_a.label) {
19707
+ case 0:
19708
+ // verify required parameter 'managerId' is not null or undefined
19709
+ common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsPost', 'managerId', managerId);
19710
+ localVarPath = "/api/v1/managers/{managerId}/affiliations"
19711
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
19712
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19713
+ if (configuration) {
19714
+ baseOptions = configuration.baseOptions;
19715
+ }
19716
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
19717
+ localVarHeaderParameter = {};
19718
+ localVarQueryParameter = {};
19719
+ // authentication oauth2 required
19720
+ // oauth required
19721
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19722
+ case 1:
19723
+ // authentication oauth2 required
19724
+ // oauth required
19725
+ _a.sent();
19726
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19727
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19728
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19729
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19730
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createManagerAffiliationCommand, localVarRequestOptions, configuration);
19731
+ return [2 /*return*/, {
19732
+ url: common_1.toPathString(localVarUrlObj),
19733
+ options: localVarRequestOptions,
19734
+ }];
19735
+ }
19736
+ });
19737
+ });
19738
+ },
19470
19739
  /**
19471
19740
  *
19472
19741
  * @summary Delete Manager.
@@ -19704,6 +19973,68 @@ exports.ManagersApiFp = function (configuration) {
19704
19973
  });
19705
19974
  });
19706
19975
  },
19976
+ /**
19977
+ *
19978
+ * @summary Delete manager affiliation.
19979
+ * @param {string} managerId
19980
+ * @param {string} hospitalId
19981
+ * @param {*} [options] Override http request option.
19982
+ * @throws {RequiredError}
19983
+ */
19984
+ apiV1ManagersManagerIdAffiliationsHospitalIdDelete: function (managerId, hospitalId, options) {
19985
+ return __awaiter(this, void 0, void 0, function () {
19986
+ var localVarAxiosArgs;
19987
+ return __generator(this, function (_a) {
19988
+ switch (_a.label) {
19989
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdAffiliationsHospitalIdDelete(managerId, hospitalId, options)];
19990
+ case 1:
19991
+ localVarAxiosArgs = _a.sent();
19992
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19993
+ }
19994
+ });
19995
+ });
19996
+ },
19997
+ /**
19998
+ *
19999
+ * @summary Get manager affiliation.
20000
+ * @param {string} managerId
20001
+ * @param {string} hospitalId
20002
+ * @param {*} [options] Override http request option.
20003
+ * @throws {RequiredError}
20004
+ */
20005
+ apiV1ManagersManagerIdAffiliationsHospitalIdGet: function (managerId, hospitalId, options) {
20006
+ return __awaiter(this, void 0, void 0, function () {
20007
+ var localVarAxiosArgs;
20008
+ return __generator(this, function (_a) {
20009
+ switch (_a.label) {
20010
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdAffiliationsHospitalIdGet(managerId, hospitalId, options)];
20011
+ case 1:
20012
+ localVarAxiosArgs = _a.sent();
20013
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
20014
+ }
20015
+ });
20016
+ });
20017
+ },
20018
+ /**
20019
+ *
20020
+ * @param {string} managerId
20021
+ * @param {CreateManagerAffiliationCommand} [createManagerAffiliationCommand]
20022
+ * @param {*} [options] Override http request option.
20023
+ * @throws {RequiredError}
20024
+ */
20025
+ apiV1ManagersManagerIdAffiliationsPost: function (managerId, createManagerAffiliationCommand, options) {
20026
+ return __awaiter(this, void 0, void 0, function () {
20027
+ var localVarAxiosArgs;
20028
+ return __generator(this, function (_a) {
20029
+ switch (_a.label) {
20030
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdAffiliationsPost(managerId, createManagerAffiliationCommand, options)];
20031
+ case 1:
20032
+ localVarAxiosArgs = _a.sent();
20033
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
20034
+ }
20035
+ });
20036
+ });
20037
+ },
19707
20038
  /**
19708
20039
  *
19709
20040
  * @summary Delete Manager.
@@ -19828,6 +20159,38 @@ exports.ManagersApiFactory = function (configuration, basePath, axios) {
19828
20159
  apiV1ManagersManagerIdAffiliationsGet: function (managerId, hospitalName, page, limit, lastRetrieved, options) {
19829
20160
  return localVarFp.apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
19830
20161
  },
20162
+ /**
20163
+ *
20164
+ * @summary Delete manager affiliation.
20165
+ * @param {string} managerId
20166
+ * @param {string} hospitalId
20167
+ * @param {*} [options] Override http request option.
20168
+ * @throws {RequiredError}
20169
+ */
20170
+ apiV1ManagersManagerIdAffiliationsHospitalIdDelete: function (managerId, hospitalId, options) {
20171
+ return localVarFp.apiV1ManagersManagerIdAffiliationsHospitalIdDelete(managerId, hospitalId, options).then(function (request) { return request(axios, basePath); });
20172
+ },
20173
+ /**
20174
+ *
20175
+ * @summary Get manager affiliation.
20176
+ * @param {string} managerId
20177
+ * @param {string} hospitalId
20178
+ * @param {*} [options] Override http request option.
20179
+ * @throws {RequiredError}
20180
+ */
20181
+ apiV1ManagersManagerIdAffiliationsHospitalIdGet: function (managerId, hospitalId, options) {
20182
+ return localVarFp.apiV1ManagersManagerIdAffiliationsHospitalIdGet(managerId, hospitalId, options).then(function (request) { return request(axios, basePath); });
20183
+ },
20184
+ /**
20185
+ *
20186
+ * @param {string} managerId
20187
+ * @param {CreateManagerAffiliationCommand} [createManagerAffiliationCommand]
20188
+ * @param {*} [options] Override http request option.
20189
+ * @throws {RequiredError}
20190
+ */
20191
+ apiV1ManagersManagerIdAffiliationsPost: function (managerId, createManagerAffiliationCommand, options) {
20192
+ return localVarFp.apiV1ManagersManagerIdAffiliationsPost(managerId, createManagerAffiliationCommand, options).then(function (request) { return request(axios, basePath); });
20193
+ },
19831
20194
  /**
19832
20195
  *
19833
20196
  * @summary Delete Manager.
@@ -19920,6 +20283,44 @@ var ManagersApi = /** @class */ (function (_super) {
19920
20283
  var _this = this;
19921
20284
  return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
19922
20285
  };
20286
+ /**
20287
+ *
20288
+ * @summary Delete manager affiliation.
20289
+ * @param {string} managerId
20290
+ * @param {string} hospitalId
20291
+ * @param {*} [options] Override http request option.
20292
+ * @throws {RequiredError}
20293
+ * @memberof ManagersApi
20294
+ */
20295
+ ManagersApi.prototype.apiV1ManagersManagerIdAffiliationsHospitalIdDelete = function (managerId, hospitalId, options) {
20296
+ var _this = this;
20297
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsHospitalIdDelete(managerId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
20298
+ };
20299
+ /**
20300
+ *
20301
+ * @summary Get manager affiliation.
20302
+ * @param {string} managerId
20303
+ * @param {string} hospitalId
20304
+ * @param {*} [options] Override http request option.
20305
+ * @throws {RequiredError}
20306
+ * @memberof ManagersApi
20307
+ */
20308
+ ManagersApi.prototype.apiV1ManagersManagerIdAffiliationsHospitalIdGet = function (managerId, hospitalId, options) {
20309
+ var _this = this;
20310
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsHospitalIdGet(managerId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
20311
+ };
20312
+ /**
20313
+ *
20314
+ * @param {string} managerId
20315
+ * @param {CreateManagerAffiliationCommand} [createManagerAffiliationCommand]
20316
+ * @param {*} [options] Override http request option.
20317
+ * @throws {RequiredError}
20318
+ * @memberof ManagersApi
20319
+ */
20320
+ ManagersApi.prototype.apiV1ManagersManagerIdAffiliationsPost = function (managerId, createManagerAffiliationCommand, options) {
20321
+ var _this = this;
20322
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsPost(managerId, createManagerAffiliationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
20323
+ };
19923
20324
  /**
19924
20325
  *
19925
20326
  * @summary Delete Manager.
@@ -26367,23 +26768,15 @@ exports.WeatherForecastApiAxiosParamCreator = function (configuration) {
26367
26768
  return {
26368
26769
  /**
26369
26770
  *
26370
- * @param {string} ownerId
26371
- * @param {string} mediaId
26372
26771
  * @param {*} [options] Override http request option.
26373
26772
  * @throws {RequiredError}
26374
26773
  */
26375
- apiV1WeatherforecastOwnerIdMediasMediaIdGet: function (ownerId, mediaId, options) {
26774
+ apiV1WeatherforecastGet: function (options) {
26376
26775
  if (options === void 0) { options = {}; }
26377
26776
  return __awaiter(_this, void 0, void 0, function () {
26378
26777
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26379
26778
  return __generator(this, function (_a) {
26380
- // verify required parameter 'ownerId' is not null or undefined
26381
- common_1.assertParamExists('apiV1WeatherforecastOwnerIdMediasMediaIdGet', 'ownerId', ownerId);
26382
- // verify required parameter 'mediaId' is not null or undefined
26383
- common_1.assertParamExists('apiV1WeatherforecastOwnerIdMediasMediaIdGet', 'mediaId', mediaId);
26384
- localVarPath = "/api/v1/weatherforecast/{ownerId}/medias/{mediaId}"
26385
- .replace("{" + "ownerId" + "}", encodeURIComponent(String(ownerId)))
26386
- .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
26779
+ localVarPath = "/api/v1/weatherforecast";
26387
26780
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26388
26781
  if (configuration) {
26389
26782
  baseOptions = configuration.baseOptions;
@@ -26412,17 +26805,15 @@ exports.WeatherForecastApiFp = function (configuration) {
26412
26805
  return {
26413
26806
  /**
26414
26807
  *
26415
- * @param {string} ownerId
26416
- * @param {string} mediaId
26417
26808
  * @param {*} [options] Override http request option.
26418
26809
  * @throws {RequiredError}
26419
26810
  */
26420
- apiV1WeatherforecastOwnerIdMediasMediaIdGet: function (ownerId, mediaId, options) {
26811
+ apiV1WeatherforecastGet: function (options) {
26421
26812
  return __awaiter(this, void 0, void 0, function () {
26422
26813
  var localVarAxiosArgs;
26423
26814
  return __generator(this, function (_a) {
26424
26815
  switch (_a.label) {
26425
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1WeatherforecastOwnerIdMediasMediaIdGet(ownerId, mediaId, options)];
26816
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1WeatherforecastGet(options)];
26426
26817
  case 1:
26427
26818
  localVarAxiosArgs = _a.sent();
26428
26819
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -26441,13 +26832,11 @@ exports.WeatherForecastApiFactory = function (configuration, basePath, axios) {
26441
26832
  return {
26442
26833
  /**
26443
26834
  *
26444
- * @param {string} ownerId
26445
- * @param {string} mediaId
26446
26835
  * @param {*} [options] Override http request option.
26447
26836
  * @throws {RequiredError}
26448
26837
  */
26449
- apiV1WeatherforecastOwnerIdMediasMediaIdGet: function (ownerId, mediaId, options) {
26450
- return localVarFp.apiV1WeatherforecastOwnerIdMediasMediaIdGet(ownerId, mediaId, options).then(function (request) { return request(axios, basePath); });
26838
+ apiV1WeatherforecastGet: function (options) {
26839
+ return localVarFp.apiV1WeatherforecastGet(options).then(function (request) { return request(axios, basePath); });
26451
26840
  },
26452
26841
  };
26453
26842
  };
@@ -26464,15 +26853,13 @@ var WeatherForecastApi = /** @class */ (function (_super) {
26464
26853
  }
26465
26854
  /**
26466
26855
  *
26467
- * @param {string} ownerId
26468
- * @param {string} mediaId
26469
26856
  * @param {*} [options] Override http request option.
26470
26857
  * @throws {RequiredError}
26471
26858
  * @memberof WeatherForecastApi
26472
26859
  */
26473
- WeatherForecastApi.prototype.apiV1WeatherforecastOwnerIdMediasMediaIdGet = function (ownerId, mediaId, options) {
26860
+ WeatherForecastApi.prototype.apiV1WeatherforecastGet = function (options) {
26474
26861
  var _this = this;
26475
- return exports.WeatherForecastApiFp(this.configuration).apiV1WeatherforecastOwnerIdMediasMediaIdGet(ownerId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
26862
+ return exports.WeatherForecastApiFp(this.configuration).apiV1WeatherforecastGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
26476
26863
  };
26477
26864
  return WeatherForecastApi;
26478
26865
  }(base_1.BaseAPI));