ch-admin-api-client-typescript 2.4.1 → 2.4.7

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 +2371 -6255
  2. package/lib/api.d.ts.map +1 -1
  3. package/lib/api.js +868 -374
  4. package/package.json +1 -1
  5. package/src/api.ts +1338 -4968
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 Revoke 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 Revoke 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 Revoke 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 Revoke 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}
@@ -12198,76 +12259,74 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
12198
12259
  });
12199
12260
  });
12200
12261
  },
12201
- /**
12202
- *
12203
- * @summary Get Doctor by slug.
12204
- * @param {string} slug
12205
- * @param {string} [languageCode]
12262
+ };
12263
+ };
12264
+ /**
12265
+ * DoctorsApi - functional programming interface
12266
+ * @export
12267
+ */
12268
+ exports.DoctorsApiFp = function (configuration) {
12269
+ var localVarAxiosParamCreator = exports.DoctorsApiAxiosParamCreator(configuration);
12270
+ return {
12271
+ /**
12272
+ *
12273
+ * @summary Get all doctor affiliations.
12274
+ * @param {string} doctorId
12275
+ * @param {string} [hospitalName]
12276
+ * @param {number} [page]
12277
+ * @param {number} [limit]
12278
+ * @param {Date} [lastRetrieved]
12206
12279
  * @param {*} [options] Override http request option.
12207
12280
  * @throws {RequiredError}
12208
12281
  */
12209
- apiV1DoctorsSlugGet: function (slug, languageCode, options) {
12210
- if (options === void 0) { options = {}; }
12211
- return __awaiter(_this, void 0, void 0, function () {
12212
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12282
+ apiV1DoctorsDoctorIdAffiliationsGet: function (doctorId, hospitalName, page, limit, lastRetrieved, options) {
12283
+ return __awaiter(this, void 0, void 0, function () {
12284
+ var localVarAxiosArgs;
12213
12285
  return __generator(this, function (_a) {
12214
12286
  switch (_a.label) {
12215
- case 0:
12216
- // verify required parameter 'slug' is not null or undefined
12217
- common_1.assertParamExists('apiV1DoctorsSlugGet', 'slug', slug);
12218
- localVarPath = "/api/v1/doctors/{slug}"
12219
- .replace("{" + "slug" + "}", encodeURIComponent(String(slug)));
12220
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12221
- if (configuration) {
12222
- baseOptions = configuration.baseOptions;
12223
- }
12224
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12225
- localVarHeaderParameter = {};
12226
- localVarQueryParameter = {};
12227
- // authentication oauth2 required
12228
- // oauth required
12229
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
12287
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsGet(doctorId, hospitalName, page, limit, lastRetrieved, options)];
12230
12288
  case 1:
12231
- // authentication oauth2 required
12232
- // oauth required
12233
- _a.sent();
12234
- if (languageCode !== undefined) {
12235
- localVarQueryParameter['languageCode'] = languageCode;
12236
- }
12237
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
12238
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12239
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12240
- return [2 /*return*/, {
12241
- url: common_1.toPathString(localVarUrlObj),
12242
- options: localVarRequestOptions,
12243
- }];
12289
+ localVarAxiosArgs = _a.sent();
12290
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12291
+ }
12292
+ });
12293
+ });
12294
+ },
12295
+ /**
12296
+ *
12297
+ * @summary Delete doctor affiliation.
12298
+ * @param {string} doctorId
12299
+ * @param {string} hospitalId
12300
+ * @param {*} [options] Override http request option.
12301
+ * @throws {RequiredError}
12302
+ */
12303
+ apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete: function (doctorId, hospitalId, options) {
12304
+ return __awaiter(this, void 0, void 0, function () {
12305
+ var localVarAxiosArgs;
12306
+ return __generator(this, function (_a) {
12307
+ switch (_a.label) {
12308
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete(doctorId, hospitalId, options)];
12309
+ case 1:
12310
+ localVarAxiosArgs = _a.sent();
12311
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12244
12312
  }
12245
12313
  });
12246
12314
  });
12247
12315
  },
12248
- };
12249
- };
12250
- /**
12251
- * DoctorsApi - functional programming interface
12252
- * @export
12253
- */
12254
- exports.DoctorsApiFp = function (configuration) {
12255
- var localVarAxiosParamCreator = exports.DoctorsApiAxiosParamCreator(configuration);
12256
- return {
12257
12316
  /**
12258
12317
  *
12259
- * @summary Delete DoctorAffiliation.
12318
+ * @summary Get doctor affiliation.
12260
12319
  * @param {string} doctorId
12261
- * @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
12320
+ * @param {string} hospitalId
12262
12321
  * @param {*} [options] Override http request option.
12263
12322
  * @throws {RequiredError}
12264
12323
  */
12265
- apiV1DoctorsDoctorIdAffiliationsDelete: function (doctorId, deleteDoctorAffiliationCommand, options) {
12324
+ apiV1DoctorsDoctorIdAffiliationsHospitalIdGet: function (doctorId, hospitalId, options) {
12266
12325
  return __awaiter(this, void 0, void 0, function () {
12267
12326
  var localVarAxiosArgs;
12268
12327
  return __generator(this, function (_a) {
12269
12328
  switch (_a.label) {
12270
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options)];
12329
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsHospitalIdGet(doctorId, hospitalId, options)];
12271
12330
  case 1:
12272
12331
  localVarAxiosArgs = _a.sent();
12273
12332
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12277,7 +12336,6 @@ exports.DoctorsApiFp = function (configuration) {
12277
12336
  },
12278
12337
  /**
12279
12338
  *
12280
- * @summary Create DoctorAffiliation.
12281
12339
  * @param {string} doctorId
12282
12340
  * @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
12283
12341
  * @param {*} [options] Override http request option.
@@ -12546,16 +12604,15 @@ exports.DoctorsApiFp = function (configuration) {
12546
12604
  *
12547
12605
  * @summary Get Doctor.
12548
12606
  * @param {string} doctorId
12549
- * @param {string} [languageCode]
12550
12607
  * @param {*} [options] Override http request option.
12551
12608
  * @throws {RequiredError}
12552
12609
  */
12553
- apiV1DoctorsDoctorIdGet: function (doctorId, languageCode, options) {
12610
+ apiV1DoctorsDoctorIdGet: function (doctorId, options) {
12554
12611
  return __awaiter(this, void 0, void 0, function () {
12555
12612
  var localVarAxiosArgs;
12556
12613
  return __generator(this, function (_a) {
12557
12614
  switch (_a.label) {
12558
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdGet(doctorId, languageCode, options)];
12615
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdGet(doctorId, options)];
12559
12616
  case 1:
12560
12617
  localVarAxiosArgs = _a.sent();
12561
12618
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12919,16 +12976,8 @@ exports.DoctorsApiFp = function (configuration) {
12919
12976
  /**
12920
12977
  *
12921
12978
  * @summary Get all Doctors.
12922
- * @param {string} [countryId]
12923
12979
  * @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
12980
  * @param {string} [languageCode]
12931
- * @param {Array<string>} [ids]
12932
12981
  * @param {string} [id]
12933
12982
  * @param {string} [fullname]
12934
12983
  * @param {string} [email]
@@ -12942,12 +12991,12 @@ exports.DoctorsApiFp = function (configuration) {
12942
12991
  * @param {*} [options] Override http request option.
12943
12992
  * @throws {RequiredError}
12944
12993
  */
12945
- apiV1DoctorsGet: function (countryId, hospitalId, marketingType, specialtyId, specialtyTypeId, consultationEnabled, exceptDoctorId, exceptDoctorIds, languageCode, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
12994
+ apiV1DoctorsGet: function (hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
12946
12995
  return __awaiter(this, void 0, void 0, function () {
12947
12996
  var localVarAxiosArgs;
12948
12997
  return __generator(this, function (_a) {
12949
12998
  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)];
12999
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsGet(hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
12951
13000
  case 1:
12952
13001
  localVarAxiosArgs = _a.sent();
12953
13002
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12957,7 +13006,7 @@ exports.DoctorsApiFp = function (configuration) {
12957
13006
  },
12958
13007
  /**
12959
13008
  *
12960
- * @summary Create Doctor.
13009
+ * @summary Create a Doctor.
12961
13010
  * @param {CreateDoctorCommand} [createDoctorCommand]
12962
13011
  * @param {*} [options] Override http request option.
12963
13012
  * @throws {RequiredError}
@@ -12975,27 +13024,6 @@ exports.DoctorsApiFp = function (configuration) {
12975
13024
  });
12976
13025
  });
12977
13026
  },
12978
- /**
12979
- *
12980
- * @summary Get Doctor by slug.
12981
- * @param {string} slug
12982
- * @param {string} [languageCode]
12983
- * @param {*} [options] Override http request option.
12984
- * @throws {RequiredError}
12985
- */
12986
- apiV1DoctorsSlugGet: function (slug, languageCode, options) {
12987
- return __awaiter(this, void 0, void 0, function () {
12988
- var localVarAxiosArgs;
12989
- return __generator(this, function (_a) {
12990
- switch (_a.label) {
12991
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsSlugGet(slug, languageCode, options)];
12992
- case 1:
12993
- localVarAxiosArgs = _a.sent();
12994
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12995
- }
12996
- });
12997
- });
12998
- },
12999
13027
  };
13000
13028
  };
13001
13029
  /**
@@ -13007,18 +13035,42 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
13007
13035
  return {
13008
13036
  /**
13009
13037
  *
13010
- * @summary Delete DoctorAffiliation.
13038
+ * @summary Get all doctor affiliations.
13039
+ * @param {string} doctorId
13040
+ * @param {string} [hospitalName]
13041
+ * @param {number} [page]
13042
+ * @param {number} [limit]
13043
+ * @param {Date} [lastRetrieved]
13044
+ * @param {*} [options] Override http request option.
13045
+ * @throws {RequiredError}
13046
+ */
13047
+ apiV1DoctorsDoctorIdAffiliationsGet: function (doctorId, hospitalName, page, limit, lastRetrieved, options) {
13048
+ return localVarFp.apiV1DoctorsDoctorIdAffiliationsGet(doctorId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
13049
+ },
13050
+ /**
13051
+ *
13052
+ * @summary Delete doctor affiliation.
13053
+ * @param {string} doctorId
13054
+ * @param {string} hospitalId
13055
+ * @param {*} [options] Override http request option.
13056
+ * @throws {RequiredError}
13057
+ */
13058
+ apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete: function (doctorId, hospitalId, options) {
13059
+ return localVarFp.apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete(doctorId, hospitalId, options).then(function (request) { return request(axios, basePath); });
13060
+ },
13061
+ /**
13062
+ *
13063
+ * @summary Get doctor affiliation.
13011
13064
  * @param {string} doctorId
13012
- * @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
13065
+ * @param {string} hospitalId
13013
13066
  * @param {*} [options] Override http request option.
13014
13067
  * @throws {RequiredError}
13015
13068
  */
13016
- apiV1DoctorsDoctorIdAffiliationsDelete: function (doctorId, deleteDoctorAffiliationCommand, options) {
13017
- return localVarFp.apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options).then(function (request) { return request(axios, basePath); });
13069
+ apiV1DoctorsDoctorIdAffiliationsHospitalIdGet: function (doctorId, hospitalId, options) {
13070
+ return localVarFp.apiV1DoctorsDoctorIdAffiliationsHospitalIdGet(doctorId, hospitalId, options).then(function (request) { return request(axios, basePath); });
13018
13071
  },
13019
13072
  /**
13020
13073
  *
13021
- * @summary Create DoctorAffiliation.
13022
13074
  * @param {string} doctorId
13023
13075
  * @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
13024
13076
  * @param {*} [options] Override http request option.
@@ -13167,12 +13219,11 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
13167
13219
  *
13168
13220
  * @summary Get Doctor.
13169
13221
  * @param {string} doctorId
13170
- * @param {string} [languageCode]
13171
13222
  * @param {*} [options] Override http request option.
13172
13223
  * @throws {RequiredError}
13173
13224
  */
13174
- apiV1DoctorsDoctorIdGet: function (doctorId, languageCode, options) {
13175
- return localVarFp.apiV1DoctorsDoctorIdGet(doctorId, languageCode, options).then(function (request) { return request(axios, basePath); });
13225
+ apiV1DoctorsDoctorIdGet: function (doctorId, options) {
13226
+ return localVarFp.apiV1DoctorsDoctorIdGet(doctorId, options).then(function (request) { return request(axios, basePath); });
13176
13227
  },
13177
13228
  /**
13178
13229
  *
@@ -13370,16 +13421,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
13370
13421
  /**
13371
13422
  *
13372
13423
  * @summary Get all Doctors.
13373
- * @param {string} [countryId]
13374
13424
  * @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
13425
  * @param {string} [languageCode]
13382
- * @param {Array<string>} [ids]
13383
13426
  * @param {string} [id]
13384
13427
  * @param {string} [fullname]
13385
13428
  * @param {string} [email]
@@ -13393,12 +13436,12 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
13393
13436
  * @param {*} [options] Override http request option.
13394
13437
  * @throws {RequiredError}
13395
13438
  */
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); });
13439
+ apiV1DoctorsGet: function (hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
13440
+ return localVarFp.apiV1DoctorsGet(hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
13398
13441
  },
13399
13442
  /**
13400
13443
  *
13401
- * @summary Create Doctor.
13444
+ * @summary Create a Doctor.
13402
13445
  * @param {CreateDoctorCommand} [createDoctorCommand]
13403
13446
  * @param {*} [options] Override http request option.
13404
13447
  * @throws {RequiredError}
@@ -13406,17 +13449,6 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
13406
13449
  apiV1DoctorsPost: function (createDoctorCommand, options) {
13407
13450
  return localVarFp.apiV1DoctorsPost(createDoctorCommand, options).then(function (request) { return request(axios, basePath); });
13408
13451
  },
13409
- /**
13410
- *
13411
- * @summary Get Doctor by slug.
13412
- * @param {string} slug
13413
- * @param {string} [languageCode]
13414
- * @param {*} [options] Override http request option.
13415
- * @throws {RequiredError}
13416
- */
13417
- apiV1DoctorsSlugGet: function (slug, languageCode, options) {
13418
- return localVarFp.apiV1DoctorsSlugGet(slug, languageCode, options).then(function (request) { return request(axios, basePath); });
13419
- },
13420
13452
  };
13421
13453
  };
13422
13454
  /**
@@ -13432,20 +13464,48 @@ var DoctorsApi = /** @class */ (function (_super) {
13432
13464
  }
13433
13465
  /**
13434
13466
  *
13435
- * @summary Delete DoctorAffiliation.
13467
+ * @summary Get all doctor affiliations.
13468
+ * @param {string} doctorId
13469
+ * @param {string} [hospitalName]
13470
+ * @param {number} [page]
13471
+ * @param {number} [limit]
13472
+ * @param {Date} [lastRetrieved]
13473
+ * @param {*} [options] Override http request option.
13474
+ * @throws {RequiredError}
13475
+ * @memberof DoctorsApi
13476
+ */
13477
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsGet = function (doctorId, hospitalName, page, limit, lastRetrieved, options) {
13478
+ var _this = this;
13479
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsGet(doctorId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
13480
+ };
13481
+ /**
13482
+ *
13483
+ * @summary Delete doctor affiliation.
13484
+ * @param {string} doctorId
13485
+ * @param {string} hospitalId
13486
+ * @param {*} [options] Override http request option.
13487
+ * @throws {RequiredError}
13488
+ * @memberof DoctorsApi
13489
+ */
13490
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete = function (doctorId, hospitalId, options) {
13491
+ var _this = this;
13492
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsHospitalIdDelete(doctorId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13493
+ };
13494
+ /**
13495
+ *
13496
+ * @summary Get doctor affiliation.
13436
13497
  * @param {string} doctorId
13437
- * @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
13498
+ * @param {string} hospitalId
13438
13499
  * @param {*} [options] Override http request option.
13439
13500
  * @throws {RequiredError}
13440
13501
  * @memberof DoctorsApi
13441
13502
  */
13442
- DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsDelete = function (doctorId, deleteDoctorAffiliationCommand, options) {
13503
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsHospitalIdGet = function (doctorId, hospitalId, options) {
13443
13504
  var _this = this;
13444
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
13505
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsHospitalIdGet(doctorId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13445
13506
  };
13446
13507
  /**
13447
13508
  *
13448
- * @summary Create DoctorAffiliation.
13449
13509
  * @param {string} doctorId
13450
13510
  * @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
13451
13511
  * @param {*} [options] Override http request option.
@@ -13618,14 +13678,13 @@ var DoctorsApi = /** @class */ (function (_super) {
13618
13678
  *
13619
13679
  * @summary Get Doctor.
13620
13680
  * @param {string} doctorId
13621
- * @param {string} [languageCode]
13622
13681
  * @param {*} [options] Override http request option.
13623
13682
  * @throws {RequiredError}
13624
13683
  * @memberof DoctorsApi
13625
13684
  */
13626
- DoctorsApi.prototype.apiV1DoctorsDoctorIdGet = function (doctorId, languageCode, options) {
13685
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdGet = function (doctorId, options) {
13627
13686
  var _this = this;
13628
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdGet(doctorId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
13687
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdGet(doctorId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13629
13688
  };
13630
13689
  /**
13631
13690
  *
@@ -13855,16 +13914,8 @@ var DoctorsApi = /** @class */ (function (_super) {
13855
13914
  /**
13856
13915
  *
13857
13916
  * @summary Get all Doctors.
13858
- * @param {string} [countryId]
13859
13917
  * @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
13918
  * @param {string} [languageCode]
13867
- * @param {Array<string>} [ids]
13868
13919
  * @param {string} [id]
13869
13920
  * @param {string} [fullname]
13870
13921
  * @param {string} [email]
@@ -13879,13 +13930,13 @@ var DoctorsApi = /** @class */ (function (_super) {
13879
13930
  * @throws {RequiredError}
13880
13931
  * @memberof DoctorsApi
13881
13932
  */
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) {
13933
+ DoctorsApi.prototype.apiV1DoctorsGet = function (hospitalId, languageCode, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
13883
13934
  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); });
13935
+ 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
13936
  };
13886
13937
  /**
13887
13938
  *
13888
- * @summary Create Doctor.
13939
+ * @summary Create a Doctor.
13889
13940
  * @param {CreateDoctorCommand} [createDoctorCommand]
13890
13941
  * @param {*} [options] Override http request option.
13891
13942
  * @throws {RequiredError}
@@ -13895,19 +13946,6 @@ var DoctorsApi = /** @class */ (function (_super) {
13895
13946
  var _this = this;
13896
13947
  return exports.DoctorsApiFp(this.configuration).apiV1DoctorsPost(createDoctorCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
13897
13948
  };
13898
- /**
13899
- *
13900
- * @summary Get Doctor by slug.
13901
- * @param {string} slug
13902
- * @param {string} [languageCode]
13903
- * @param {*} [options] Override http request option.
13904
- * @throws {RequiredError}
13905
- * @memberof DoctorsApi
13906
- */
13907
- DoctorsApi.prototype.apiV1DoctorsSlugGet = function (slug, languageCode, options) {
13908
- var _this = this;
13909
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsSlugGet(slug, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
13910
- };
13911
13949
  return DoctorsApi;
13912
13950
  }(base_1.BaseAPI));
13913
13951
  exports.DoctorsApi = DoctorsApi;
@@ -19408,12 +19446,16 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
19408
19446
  },
19409
19447
  /**
19410
19448
  *
19411
- * @summary Delete Manager.
19449
+ * @summary Get all manager affiliations.
19412
19450
  * @param {string} managerId
19451
+ * @param {string} [hospitalName]
19452
+ * @param {number} [page]
19453
+ * @param {number} [limit]
19454
+ * @param {Date} [lastRetrieved]
19413
19455
  * @param {*} [options] Override http request option.
19414
19456
  * @throws {RequiredError}
19415
19457
  */
19416
- apiV1ManagersManagerIdDelete: function (managerId, options) {
19458
+ apiV1ManagersManagerIdAffiliationsGet: function (managerId, hospitalName, page, limit, lastRetrieved, options) {
19417
19459
  if (options === void 0) { options = {}; }
19418
19460
  return __awaiter(_this, void 0, void 0, function () {
19419
19461
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -19421,14 +19463,14 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
19421
19463
  switch (_a.label) {
19422
19464
  case 0:
19423
19465
  // verify required parameter 'managerId' is not null or undefined
19424
- common_1.assertParamExists('apiV1ManagersManagerIdDelete', 'managerId', managerId);
19425
- localVarPath = "/api/v1/managers/{managerId}"
19466
+ common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsGet', 'managerId', managerId);
19467
+ localVarPath = "/api/v1/managers/{managerId}/affiliations"
19426
19468
  .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
19427
19469
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19428
19470
  if (configuration) {
19429
19471
  baseOptions = configuration.baseOptions;
19430
19472
  }
19431
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
19473
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19432
19474
  localVarHeaderParameter = {};
19433
19475
  localVarQueryParameter = {};
19434
19476
  // authentication oauth2 required
@@ -19438,6 +19480,20 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
19438
19480
  // authentication oauth2 required
19439
19481
  // oauth required
19440
19482
  _a.sent();
19483
+ if (hospitalName !== undefined) {
19484
+ localVarQueryParameter['HospitalName'] = hospitalName;
19485
+ }
19486
+ if (page !== undefined) {
19487
+ localVarQueryParameter['page'] = page;
19488
+ }
19489
+ if (limit !== undefined) {
19490
+ localVarQueryParameter['limit'] = limit;
19491
+ }
19492
+ if (lastRetrieved !== undefined) {
19493
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
19494
+ lastRetrieved.toISOString() :
19495
+ lastRetrieved;
19496
+ }
19441
19497
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19442
19498
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19443
19499
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -19451,12 +19507,13 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
19451
19507
  },
19452
19508
  /**
19453
19509
  *
19454
- * @summary Get Manager.
19510
+ * @summary Delete manager affiliation.
19455
19511
  * @param {string} managerId
19512
+ * @param {string} hospitalId
19456
19513
  * @param {*} [options] Override http request option.
19457
19514
  * @throws {RequiredError}
19458
19515
  */
19459
- apiV1ManagersManagerIdGet: function (managerId, options) {
19516
+ apiV1ManagersManagerIdAffiliationsHospitalIdDelete: function (managerId, hospitalId, options) {
19460
19517
  if (options === void 0) { options = {}; }
19461
19518
  return __awaiter(_this, void 0, void 0, function () {
19462
19519
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -19464,14 +19521,17 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
19464
19521
  switch (_a.label) {
19465
19522
  case 0:
19466
19523
  // verify required parameter 'managerId' is not null or undefined
19467
- common_1.assertParamExists('apiV1ManagersManagerIdGet', 'managerId', managerId);
19468
- localVarPath = "/api/v1/managers/{managerId}"
19469
- .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
19524
+ common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsHospitalIdDelete', 'managerId', managerId);
19525
+ // verify required parameter 'hospitalId' is not null or undefined
19526
+ common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsHospitalIdDelete', 'hospitalId', hospitalId);
19527
+ localVarPath = "/api/v1/managers/{managerId}/affiliations/{hospitalId}"
19528
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)))
19529
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
19470
19530
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19471
19531
  if (configuration) {
19472
19532
  baseOptions = configuration.baseOptions;
19473
19533
  }
19474
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19534
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
19475
19535
  localVarHeaderParameter = {};
19476
19536
  localVarQueryParameter = {};
19477
19537
  // authentication oauth2 required
@@ -19494,13 +19554,13 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
19494
19554
  },
19495
19555
  /**
19496
19556
  *
19497
- * @summary Update Manager.
19557
+ * @summary Get manager affiliation.
19498
19558
  * @param {string} managerId
19499
- * @param {UpdateManagerCommand} [updateManagerCommand]
19559
+ * @param {string} hospitalId
19500
19560
  * @param {*} [options] Override http request option.
19501
19561
  * @throws {RequiredError}
19502
19562
  */
19503
- apiV1ManagersManagerIdPut: function (managerId, updateManagerCommand, options) {
19563
+ apiV1ManagersManagerIdAffiliationsHospitalIdGet: function (managerId, hospitalId, options) {
19504
19564
  if (options === void 0) { options = {}; }
19505
19565
  return __awaiter(_this, void 0, void 0, function () {
19506
19566
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -19508,14 +19568,17 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
19508
19568
  switch (_a.label) {
19509
19569
  case 0:
19510
19570
  // verify required parameter 'managerId' is not null or undefined
19511
- common_1.assertParamExists('apiV1ManagersManagerIdPut', 'managerId', managerId);
19512
- localVarPath = "/api/v1/managers/{managerId}"
19513
- .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
19571
+ common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsHospitalIdGet', 'managerId', managerId);
19572
+ // verify required parameter 'hospitalId' is not null or undefined
19573
+ common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsHospitalIdGet', 'hospitalId', hospitalId);
19574
+ localVarPath = "/api/v1/managers/{managerId}/affiliations/{hospitalId}"
19575
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)))
19576
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
19514
19577
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19515
19578
  if (configuration) {
19516
19579
  baseOptions = configuration.baseOptions;
19517
19580
  }
19518
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
19581
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19519
19582
  localVarHeaderParameter = {};
19520
19583
  localVarQueryParameter = {};
19521
19584
  // authentication oauth2 required
@@ -19525,11 +19588,9 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
19525
19588
  // authentication oauth2 required
19526
19589
  // oauth required
19527
19590
  _a.sent();
19528
- localVarHeaderParameter['Content-Type'] = 'application/json';
19529
19591
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19530
19592
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19531
19593
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19532
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateManagerCommand, localVarRequestOptions, configuration);
19533
19594
  return [2 /*return*/, {
19534
19595
  url: common_1.toPathString(localVarUrlObj),
19535
19596
  options: localVarRequestOptions,
@@ -19540,19 +19601,22 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
19540
19601
  },
19541
19602
  /**
19542
19603
  *
19543
- * @summary Create a Manager.
19544
- * @param {CreateManagerCommand} [createManagerCommand]
19604
+ * @param {string} managerId
19605
+ * @param {CreateManagerAffiliationCommand} [createManagerAffiliationCommand]
19545
19606
  * @param {*} [options] Override http request option.
19546
19607
  * @throws {RequiredError}
19547
19608
  */
19548
- apiV1ManagersPost: function (createManagerCommand, options) {
19609
+ apiV1ManagersManagerIdAffiliationsPost: function (managerId, createManagerAffiliationCommand, options) {
19549
19610
  if (options === void 0) { options = {}; }
19550
19611
  return __awaiter(_this, void 0, void 0, function () {
19551
19612
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19552
19613
  return __generator(this, function (_a) {
19553
19614
  switch (_a.label) {
19554
19615
  case 0:
19555
- localVarPath = "/api/v1/managers";
19616
+ // verify required parameter 'managerId' is not null or undefined
19617
+ common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsPost', 'managerId', managerId);
19618
+ localVarPath = "/api/v1/managers/{managerId}/affiliations"
19619
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
19556
19620
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19557
19621
  if (configuration) {
19558
19622
  baseOptions = configuration.baseOptions;
@@ -19571,7 +19635,7 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
19571
19635
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19572
19636
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19573
19637
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19574
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(createManagerCommand, localVarRequestOptions, configuration);
19638
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createManagerAffiliationCommand, localVarRequestOptions, configuration);
19575
19639
  return [2 /*return*/, {
19576
19640
  url: common_1.toPathString(localVarUrlObj),
19577
19641
  options: localVarRequestOptions,
@@ -19580,33 +19644,207 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
19580
19644
  });
19581
19645
  });
19582
19646
  },
19583
- };
19584
- };
19585
- /**
19586
- * ManagersApi - functional programming interface
19587
- * @export
19588
- */
19589
- exports.ManagersApiFp = function (configuration) {
19590
- var localVarAxiosParamCreator = exports.ManagersApiAxiosParamCreator(configuration);
19591
- return {
19592
19647
  /**
19593
19648
  *
19594
- * @summary Get all Managers.
19595
- * @param {string} [hospitalId]
19596
- * @param {string} [id]
19597
- * @param {string} [fullname]
19598
- * @param {string} [email]
19599
- * @param {Gender} [gender]
19600
- * @param {Date} [dateOfBirth]
19601
- * @param {Date} [created]
19602
- * @param {boolean} [showHidden]
19603
- * @param {number} [page]
19604
- * @param {number} [limit]
19605
- * @param {Date} [lastRetrieved]
19649
+ * @summary Delete Manager.
19650
+ * @param {string} managerId
19606
19651
  * @param {*} [options] Override http request option.
19607
19652
  * @throws {RequiredError}
19608
19653
  */
19609
- apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
19654
+ apiV1ManagersManagerIdDelete: function (managerId, options) {
19655
+ if (options === void 0) { options = {}; }
19656
+ return __awaiter(_this, void 0, void 0, function () {
19657
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19658
+ return __generator(this, function (_a) {
19659
+ switch (_a.label) {
19660
+ case 0:
19661
+ // verify required parameter 'managerId' is not null or undefined
19662
+ common_1.assertParamExists('apiV1ManagersManagerIdDelete', 'managerId', managerId);
19663
+ localVarPath = "/api/v1/managers/{managerId}"
19664
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
19665
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19666
+ if (configuration) {
19667
+ baseOptions = configuration.baseOptions;
19668
+ }
19669
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
19670
+ localVarHeaderParameter = {};
19671
+ localVarQueryParameter = {};
19672
+ // authentication oauth2 required
19673
+ // oauth required
19674
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19675
+ case 1:
19676
+ // authentication oauth2 required
19677
+ // oauth required
19678
+ _a.sent();
19679
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19680
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19681
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19682
+ return [2 /*return*/, {
19683
+ url: common_1.toPathString(localVarUrlObj),
19684
+ options: localVarRequestOptions,
19685
+ }];
19686
+ }
19687
+ });
19688
+ });
19689
+ },
19690
+ /**
19691
+ *
19692
+ * @summary Get Manager.
19693
+ * @param {string} managerId
19694
+ * @param {*} [options] Override http request option.
19695
+ * @throws {RequiredError}
19696
+ */
19697
+ apiV1ManagersManagerIdGet: function (managerId, options) {
19698
+ if (options === void 0) { options = {}; }
19699
+ return __awaiter(_this, void 0, void 0, function () {
19700
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19701
+ return __generator(this, function (_a) {
19702
+ switch (_a.label) {
19703
+ case 0:
19704
+ // verify required parameter 'managerId' is not null or undefined
19705
+ common_1.assertParamExists('apiV1ManagersManagerIdGet', 'managerId', managerId);
19706
+ localVarPath = "/api/v1/managers/{managerId}"
19707
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
19708
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19709
+ if (configuration) {
19710
+ baseOptions = configuration.baseOptions;
19711
+ }
19712
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19713
+ localVarHeaderParameter = {};
19714
+ localVarQueryParameter = {};
19715
+ // authentication oauth2 required
19716
+ // oauth required
19717
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19718
+ case 1:
19719
+ // authentication oauth2 required
19720
+ // oauth required
19721
+ _a.sent();
19722
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19723
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19724
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19725
+ return [2 /*return*/, {
19726
+ url: common_1.toPathString(localVarUrlObj),
19727
+ options: localVarRequestOptions,
19728
+ }];
19729
+ }
19730
+ });
19731
+ });
19732
+ },
19733
+ /**
19734
+ *
19735
+ * @summary Update Manager.
19736
+ * @param {string} managerId
19737
+ * @param {UpdateManagerCommand} [updateManagerCommand]
19738
+ * @param {*} [options] Override http request option.
19739
+ * @throws {RequiredError}
19740
+ */
19741
+ apiV1ManagersManagerIdPut: function (managerId, updateManagerCommand, options) {
19742
+ if (options === void 0) { options = {}; }
19743
+ return __awaiter(_this, void 0, void 0, function () {
19744
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19745
+ return __generator(this, function (_a) {
19746
+ switch (_a.label) {
19747
+ case 0:
19748
+ // verify required parameter 'managerId' is not null or undefined
19749
+ common_1.assertParamExists('apiV1ManagersManagerIdPut', 'managerId', managerId);
19750
+ localVarPath = "/api/v1/managers/{managerId}"
19751
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
19752
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19753
+ if (configuration) {
19754
+ baseOptions = configuration.baseOptions;
19755
+ }
19756
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
19757
+ localVarHeaderParameter = {};
19758
+ localVarQueryParameter = {};
19759
+ // authentication oauth2 required
19760
+ // oauth required
19761
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19762
+ case 1:
19763
+ // authentication oauth2 required
19764
+ // oauth required
19765
+ _a.sent();
19766
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19767
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19768
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19769
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19770
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateManagerCommand, localVarRequestOptions, configuration);
19771
+ return [2 /*return*/, {
19772
+ url: common_1.toPathString(localVarUrlObj),
19773
+ options: localVarRequestOptions,
19774
+ }];
19775
+ }
19776
+ });
19777
+ });
19778
+ },
19779
+ /**
19780
+ *
19781
+ * @summary Create a Manager.
19782
+ * @param {CreateManagerCommand} [createManagerCommand]
19783
+ * @param {*} [options] Override http request option.
19784
+ * @throws {RequiredError}
19785
+ */
19786
+ apiV1ManagersPost: function (createManagerCommand, options) {
19787
+ if (options === void 0) { options = {}; }
19788
+ return __awaiter(_this, void 0, void 0, function () {
19789
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19790
+ return __generator(this, function (_a) {
19791
+ switch (_a.label) {
19792
+ case 0:
19793
+ localVarPath = "/api/v1/managers";
19794
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19795
+ if (configuration) {
19796
+ baseOptions = configuration.baseOptions;
19797
+ }
19798
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
19799
+ localVarHeaderParameter = {};
19800
+ localVarQueryParameter = {};
19801
+ // authentication oauth2 required
19802
+ // oauth required
19803
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19804
+ case 1:
19805
+ // authentication oauth2 required
19806
+ // oauth required
19807
+ _a.sent();
19808
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19809
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19810
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19811
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19812
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createManagerCommand, localVarRequestOptions, configuration);
19813
+ return [2 /*return*/, {
19814
+ url: common_1.toPathString(localVarUrlObj),
19815
+ options: localVarRequestOptions,
19816
+ }];
19817
+ }
19818
+ });
19819
+ });
19820
+ },
19821
+ };
19822
+ };
19823
+ /**
19824
+ * ManagersApi - functional programming interface
19825
+ * @export
19826
+ */
19827
+ exports.ManagersApiFp = function (configuration) {
19828
+ var localVarAxiosParamCreator = exports.ManagersApiAxiosParamCreator(configuration);
19829
+ return {
19830
+ /**
19831
+ *
19832
+ * @summary Get all Managers.
19833
+ * @param {string} [hospitalId]
19834
+ * @param {string} [id]
19835
+ * @param {string} [fullname]
19836
+ * @param {string} [email]
19837
+ * @param {Gender} [gender]
19838
+ * @param {Date} [dateOfBirth]
19839
+ * @param {Date} [created]
19840
+ * @param {boolean} [showHidden]
19841
+ * @param {number} [page]
19842
+ * @param {number} [limit]
19843
+ * @param {Date} [lastRetrieved]
19844
+ * @param {*} [options] Override http request option.
19845
+ * @throws {RequiredError}
19846
+ */
19847
+ apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
19610
19848
  return __awaiter(this, void 0, void 0, function () {
19611
19849
  var localVarAxiosArgs;
19612
19850
  return __generator(this, function (_a) {
@@ -19619,6 +19857,92 @@ exports.ManagersApiFp = function (configuration) {
19619
19857
  });
19620
19858
  });
19621
19859
  },
19860
+ /**
19861
+ *
19862
+ * @summary Get all manager affiliations.
19863
+ * @param {string} managerId
19864
+ * @param {string} [hospitalName]
19865
+ * @param {number} [page]
19866
+ * @param {number} [limit]
19867
+ * @param {Date} [lastRetrieved]
19868
+ * @param {*} [options] Override http request option.
19869
+ * @throws {RequiredError}
19870
+ */
19871
+ apiV1ManagersManagerIdAffiliationsGet: function (managerId, hospitalName, page, limit, lastRetrieved, options) {
19872
+ return __awaiter(this, void 0, void 0, function () {
19873
+ var localVarAxiosArgs;
19874
+ return __generator(this, function (_a) {
19875
+ switch (_a.label) {
19876
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options)];
19877
+ case 1:
19878
+ localVarAxiosArgs = _a.sent();
19879
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19880
+ }
19881
+ });
19882
+ });
19883
+ },
19884
+ /**
19885
+ *
19886
+ * @summary Delete manager affiliation.
19887
+ * @param {string} managerId
19888
+ * @param {string} hospitalId
19889
+ * @param {*} [options] Override http request option.
19890
+ * @throws {RequiredError}
19891
+ */
19892
+ apiV1ManagersManagerIdAffiliationsHospitalIdDelete: function (managerId, hospitalId, options) {
19893
+ return __awaiter(this, void 0, void 0, function () {
19894
+ var localVarAxiosArgs;
19895
+ return __generator(this, function (_a) {
19896
+ switch (_a.label) {
19897
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdAffiliationsHospitalIdDelete(managerId, hospitalId, options)];
19898
+ case 1:
19899
+ localVarAxiosArgs = _a.sent();
19900
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19901
+ }
19902
+ });
19903
+ });
19904
+ },
19905
+ /**
19906
+ *
19907
+ * @summary Get manager affiliation.
19908
+ * @param {string} managerId
19909
+ * @param {string} hospitalId
19910
+ * @param {*} [options] Override http request option.
19911
+ * @throws {RequiredError}
19912
+ */
19913
+ apiV1ManagersManagerIdAffiliationsHospitalIdGet: function (managerId, hospitalId, options) {
19914
+ return __awaiter(this, void 0, void 0, function () {
19915
+ var localVarAxiosArgs;
19916
+ return __generator(this, function (_a) {
19917
+ switch (_a.label) {
19918
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdAffiliationsHospitalIdGet(managerId, hospitalId, options)];
19919
+ case 1:
19920
+ localVarAxiosArgs = _a.sent();
19921
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19922
+ }
19923
+ });
19924
+ });
19925
+ },
19926
+ /**
19927
+ *
19928
+ * @param {string} managerId
19929
+ * @param {CreateManagerAffiliationCommand} [createManagerAffiliationCommand]
19930
+ * @param {*} [options] Override http request option.
19931
+ * @throws {RequiredError}
19932
+ */
19933
+ apiV1ManagersManagerIdAffiliationsPost: function (managerId, createManagerAffiliationCommand, options) {
19934
+ return __awaiter(this, void 0, void 0, function () {
19935
+ var localVarAxiosArgs;
19936
+ return __generator(this, function (_a) {
19937
+ switch (_a.label) {
19938
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdAffiliationsPost(managerId, createManagerAffiliationCommand, options)];
19939
+ case 1:
19940
+ localVarAxiosArgs = _a.sent();
19941
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19942
+ }
19943
+ });
19944
+ });
19945
+ },
19622
19946
  /**
19623
19947
  *
19624
19948
  * @summary Delete Manager.
@@ -19729,6 +20053,52 @@ exports.ManagersApiFactory = function (configuration, basePath, axios) {
19729
20053
  apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
19730
20054
  return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
19731
20055
  },
20056
+ /**
20057
+ *
20058
+ * @summary Get all manager affiliations.
20059
+ * @param {string} managerId
20060
+ * @param {string} [hospitalName]
20061
+ * @param {number} [page]
20062
+ * @param {number} [limit]
20063
+ * @param {Date} [lastRetrieved]
20064
+ * @param {*} [options] Override http request option.
20065
+ * @throws {RequiredError}
20066
+ */
20067
+ apiV1ManagersManagerIdAffiliationsGet: function (managerId, hospitalName, page, limit, lastRetrieved, options) {
20068
+ return localVarFp.apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
20069
+ },
20070
+ /**
20071
+ *
20072
+ * @summary Delete manager affiliation.
20073
+ * @param {string} managerId
20074
+ * @param {string} hospitalId
20075
+ * @param {*} [options] Override http request option.
20076
+ * @throws {RequiredError}
20077
+ */
20078
+ apiV1ManagersManagerIdAffiliationsHospitalIdDelete: function (managerId, hospitalId, options) {
20079
+ return localVarFp.apiV1ManagersManagerIdAffiliationsHospitalIdDelete(managerId, hospitalId, options).then(function (request) { return request(axios, basePath); });
20080
+ },
20081
+ /**
20082
+ *
20083
+ * @summary Get manager affiliation.
20084
+ * @param {string} managerId
20085
+ * @param {string} hospitalId
20086
+ * @param {*} [options] Override http request option.
20087
+ * @throws {RequiredError}
20088
+ */
20089
+ apiV1ManagersManagerIdAffiliationsHospitalIdGet: function (managerId, hospitalId, options) {
20090
+ return localVarFp.apiV1ManagersManagerIdAffiliationsHospitalIdGet(managerId, hospitalId, options).then(function (request) { return request(axios, basePath); });
20091
+ },
20092
+ /**
20093
+ *
20094
+ * @param {string} managerId
20095
+ * @param {CreateManagerAffiliationCommand} [createManagerAffiliationCommand]
20096
+ * @param {*} [options] Override http request option.
20097
+ * @throws {RequiredError}
20098
+ */
20099
+ apiV1ManagersManagerIdAffiliationsPost: function (managerId, createManagerAffiliationCommand, options) {
20100
+ return localVarFp.apiV1ManagersManagerIdAffiliationsPost(managerId, createManagerAffiliationCommand, options).then(function (request) { return request(axios, basePath); });
20101
+ },
19732
20102
  /**
19733
20103
  *
19734
20104
  * @summary Delete Manager.
@@ -19805,6 +20175,60 @@ var ManagersApi = /** @class */ (function (_super) {
19805
20175
  var _this = this;
19806
20176
  return exports.ManagersApiFp(this.configuration).apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
19807
20177
  };
20178
+ /**
20179
+ *
20180
+ * @summary Get all manager affiliations.
20181
+ * @param {string} managerId
20182
+ * @param {string} [hospitalName]
20183
+ * @param {number} [page]
20184
+ * @param {number} [limit]
20185
+ * @param {Date} [lastRetrieved]
20186
+ * @param {*} [options] Override http request option.
20187
+ * @throws {RequiredError}
20188
+ * @memberof ManagersApi
20189
+ */
20190
+ ManagersApi.prototype.apiV1ManagersManagerIdAffiliationsGet = function (managerId, hospitalName, page, limit, lastRetrieved, options) {
20191
+ var _this = this;
20192
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
20193
+ };
20194
+ /**
20195
+ *
20196
+ * @summary Delete manager affiliation.
20197
+ * @param {string} managerId
20198
+ * @param {string} hospitalId
20199
+ * @param {*} [options] Override http request option.
20200
+ * @throws {RequiredError}
20201
+ * @memberof ManagersApi
20202
+ */
20203
+ ManagersApi.prototype.apiV1ManagersManagerIdAffiliationsHospitalIdDelete = function (managerId, hospitalId, options) {
20204
+ var _this = this;
20205
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsHospitalIdDelete(managerId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
20206
+ };
20207
+ /**
20208
+ *
20209
+ * @summary Get manager affiliation.
20210
+ * @param {string} managerId
20211
+ * @param {string} hospitalId
20212
+ * @param {*} [options] Override http request option.
20213
+ * @throws {RequiredError}
20214
+ * @memberof ManagersApi
20215
+ */
20216
+ ManagersApi.prototype.apiV1ManagersManagerIdAffiliationsHospitalIdGet = function (managerId, hospitalId, options) {
20217
+ var _this = this;
20218
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsHospitalIdGet(managerId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
20219
+ };
20220
+ /**
20221
+ *
20222
+ * @param {string} managerId
20223
+ * @param {CreateManagerAffiliationCommand} [createManagerAffiliationCommand]
20224
+ * @param {*} [options] Override http request option.
20225
+ * @throws {RequiredError}
20226
+ * @memberof ManagersApi
20227
+ */
20228
+ ManagersApi.prototype.apiV1ManagersManagerIdAffiliationsPost = function (managerId, createManagerAffiliationCommand, options) {
20229
+ var _this = this;
20230
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsPost(managerId, createManagerAffiliationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
20231
+ };
19808
20232
  /**
19809
20233
  *
19810
20234
  * @summary Delete Manager.
@@ -22231,6 +22655,48 @@ exports.ProfilesApiAxiosParamCreator = function (configuration) {
22231
22655
  });
22232
22656
  });
22233
22657
  },
22658
+ /**
22659
+ *
22660
+ * @summary Update Profile.
22661
+ * @param {UpdateProfileCommand} [updateProfileCommand]
22662
+ * @param {*} [options] Override http request option.
22663
+ * @throws {RequiredError}
22664
+ */
22665
+ apiV1ProfilesPut: function (updateProfileCommand, options) {
22666
+ if (options === void 0) { options = {}; }
22667
+ return __awaiter(_this, void 0, void 0, function () {
22668
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
22669
+ return __generator(this, function (_a) {
22670
+ switch (_a.label) {
22671
+ case 0:
22672
+ localVarPath = "/api/v1/profiles";
22673
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
22674
+ if (configuration) {
22675
+ baseOptions = configuration.baseOptions;
22676
+ }
22677
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
22678
+ localVarHeaderParameter = {};
22679
+ localVarQueryParameter = {};
22680
+ // authentication oauth2 required
22681
+ // oauth required
22682
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
22683
+ case 1:
22684
+ // authentication oauth2 required
22685
+ // oauth required
22686
+ _a.sent();
22687
+ localVarHeaderParameter['Content-Type'] = 'application/json';
22688
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
22689
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22690
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22691
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateProfileCommand, localVarRequestOptions, configuration);
22692
+ return [2 /*return*/, {
22693
+ url: common_1.toPathString(localVarUrlObj),
22694
+ options: localVarRequestOptions,
22695
+ }];
22696
+ }
22697
+ });
22698
+ });
22699
+ },
22234
22700
  };
22235
22701
  };
22236
22702
  /**
@@ -22299,6 +22765,26 @@ exports.ProfilesApiFp = function (configuration) {
22299
22765
  });
22300
22766
  });
22301
22767
  },
22768
+ /**
22769
+ *
22770
+ * @summary Update Profile.
22771
+ * @param {UpdateProfileCommand} [updateProfileCommand]
22772
+ * @param {*} [options] Override http request option.
22773
+ * @throws {RequiredError}
22774
+ */
22775
+ apiV1ProfilesPut: function (updateProfileCommand, options) {
22776
+ return __awaiter(this, void 0, void 0, function () {
22777
+ var localVarAxiosArgs;
22778
+ return __generator(this, function (_a) {
22779
+ switch (_a.label) {
22780
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ProfilesPut(updateProfileCommand, options)];
22781
+ case 1:
22782
+ localVarAxiosArgs = _a.sent();
22783
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
22784
+ }
22785
+ });
22786
+ });
22787
+ },
22302
22788
  };
22303
22789
  };
22304
22790
  /**
@@ -22337,6 +22823,16 @@ exports.ProfilesApiFactory = function (configuration, basePath, axios) {
22337
22823
  apiV1ProfilesGet: function (options) {
22338
22824
  return localVarFp.apiV1ProfilesGet(options).then(function (request) { return request(axios, basePath); });
22339
22825
  },
22826
+ /**
22827
+ *
22828
+ * @summary Update Profile.
22829
+ * @param {UpdateProfileCommand} [updateProfileCommand]
22830
+ * @param {*} [options] Override http request option.
22831
+ * @throws {RequiredError}
22832
+ */
22833
+ apiV1ProfilesPut: function (updateProfileCommand, options) {
22834
+ return localVarFp.apiV1ProfilesPut(updateProfileCommand, options).then(function (request) { return request(axios, basePath); });
22835
+ },
22340
22836
  };
22341
22837
  };
22342
22838
  /**
@@ -22385,6 +22881,18 @@ var ProfilesApi = /** @class */ (function (_super) {
22385
22881
  var _this = this;
22386
22882
  return exports.ProfilesApiFp(this.configuration).apiV1ProfilesGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
22387
22883
  };
22884
+ /**
22885
+ *
22886
+ * @summary Update Profile.
22887
+ * @param {UpdateProfileCommand} [updateProfileCommand]
22888
+ * @param {*} [options] Override http request option.
22889
+ * @throws {RequiredError}
22890
+ * @memberof ProfilesApi
22891
+ */
22892
+ ProfilesApi.prototype.apiV1ProfilesPut = function (updateProfileCommand, options) {
22893
+ var _this = this;
22894
+ return exports.ProfilesApiFp(this.configuration).apiV1ProfilesPut(updateProfileCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
22895
+ };
22388
22896
  return ProfilesApi;
22389
22897
  }(base_1.BaseAPI));
22390
22898
  exports.ProfilesApi = ProfilesApi;
@@ -26168,23 +26676,15 @@ exports.WeatherForecastApiAxiosParamCreator = function (configuration) {
26168
26676
  return {
26169
26677
  /**
26170
26678
  *
26171
- * @param {string} ownerId
26172
- * @param {string} mediaId
26173
26679
  * @param {*} [options] Override http request option.
26174
26680
  * @throws {RequiredError}
26175
26681
  */
26176
- apiV1WeatherforecastOwnerIdMediasMediaIdGet: function (ownerId, mediaId, options) {
26682
+ apiV1WeatherforecastGet: function (options) {
26177
26683
  if (options === void 0) { options = {}; }
26178
26684
  return __awaiter(_this, void 0, void 0, function () {
26179
26685
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
26180
26686
  return __generator(this, function (_a) {
26181
- // verify required parameter 'ownerId' is not null or undefined
26182
- common_1.assertParamExists('apiV1WeatherforecastOwnerIdMediasMediaIdGet', 'ownerId', ownerId);
26183
- // verify required parameter 'mediaId' is not null or undefined
26184
- common_1.assertParamExists('apiV1WeatherforecastOwnerIdMediasMediaIdGet', 'mediaId', mediaId);
26185
- localVarPath = "/api/v1/weatherforecast/{ownerId}/medias/{mediaId}"
26186
- .replace("{" + "ownerId" + "}", encodeURIComponent(String(ownerId)))
26187
- .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
26687
+ localVarPath = "/api/v1/weatherforecast";
26188
26688
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26189
26689
  if (configuration) {
26190
26690
  baseOptions = configuration.baseOptions;
@@ -26213,17 +26713,15 @@ exports.WeatherForecastApiFp = function (configuration) {
26213
26713
  return {
26214
26714
  /**
26215
26715
  *
26216
- * @param {string} ownerId
26217
- * @param {string} mediaId
26218
26716
  * @param {*} [options] Override http request option.
26219
26717
  * @throws {RequiredError}
26220
26718
  */
26221
- apiV1WeatherforecastOwnerIdMediasMediaIdGet: function (ownerId, mediaId, options) {
26719
+ apiV1WeatherforecastGet: function (options) {
26222
26720
  return __awaiter(this, void 0, void 0, function () {
26223
26721
  var localVarAxiosArgs;
26224
26722
  return __generator(this, function (_a) {
26225
26723
  switch (_a.label) {
26226
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1WeatherforecastOwnerIdMediasMediaIdGet(ownerId, mediaId, options)];
26724
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1WeatherforecastGet(options)];
26227
26725
  case 1:
26228
26726
  localVarAxiosArgs = _a.sent();
26229
26727
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -26242,13 +26740,11 @@ exports.WeatherForecastApiFactory = function (configuration, basePath, axios) {
26242
26740
  return {
26243
26741
  /**
26244
26742
  *
26245
- * @param {string} ownerId
26246
- * @param {string} mediaId
26247
26743
  * @param {*} [options] Override http request option.
26248
26744
  * @throws {RequiredError}
26249
26745
  */
26250
- apiV1WeatherforecastOwnerIdMediasMediaIdGet: function (ownerId, mediaId, options) {
26251
- return localVarFp.apiV1WeatherforecastOwnerIdMediasMediaIdGet(ownerId, mediaId, options).then(function (request) { return request(axios, basePath); });
26746
+ apiV1WeatherforecastGet: function (options) {
26747
+ return localVarFp.apiV1WeatherforecastGet(options).then(function (request) { return request(axios, basePath); });
26252
26748
  },
26253
26749
  };
26254
26750
  };
@@ -26265,15 +26761,13 @@ var WeatherForecastApi = /** @class */ (function (_super) {
26265
26761
  }
26266
26762
  /**
26267
26763
  *
26268
- * @param {string} ownerId
26269
- * @param {string} mediaId
26270
26764
  * @param {*} [options] Override http request option.
26271
26765
  * @throws {RequiredError}
26272
26766
  * @memberof WeatherForecastApi
26273
26767
  */
26274
- WeatherForecastApi.prototype.apiV1WeatherforecastOwnerIdMediasMediaIdGet = function (ownerId, mediaId, options) {
26768
+ WeatherForecastApi.prototype.apiV1WeatherforecastGet = function (options) {
26275
26769
  var _this = this;
26276
- return exports.WeatherForecastApiFp(this.configuration).apiV1WeatherforecastOwnerIdMediasMediaIdGet(ownerId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
26770
+ return exports.WeatherForecastApiFp(this.configuration).apiV1WeatherforecastGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
26277
26771
  };
26278
26772
  return WeatherForecastApi;
26279
26773
  }(base_1.BaseAPI));