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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/api.js CHANGED
@@ -76,7 +76,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
76
76
  return (mod && mod.__esModule) ? mod : { "default": mod };
77
77
  };
78
78
  Object.defineProperty(exports, "__esModule", { value: true });
79
- exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
79
+ exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
80
80
  var axios_1 = __importDefault(require("axios"));
81
81
  // Some imports not used depending on template conditions
82
82
  // @ts-ignore
@@ -9696,9 +9696,8 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9696
9696
  *
9697
9697
  * @summary Delete DoctorCertificate.
9698
9698
  * @param {string} doctorId
9699
- * @param {string} [doctorId2]
9700
- * @param {string} [id]
9701
9699
  * @param {string} [doctorName]
9700
+ * @param {string} [certificateId]
9702
9701
  * @param {string} [certificate]
9703
9702
  * @param {Date} [activeFrom]
9704
9703
  * @param {Date} [activeTo]
@@ -9708,7 +9707,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9708
9707
  * @param {*} [options] Override http request option.
9709
9708
  * @throws {RequiredError}
9710
9709
  */
9711
- apiV1DoctorsDoctorIdCertificatesGet: function (doctorId, doctorId2, id, doctorName, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options) {
9710
+ apiV1DoctorsDoctorIdCertificatesGet: function (doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options) {
9712
9711
  if (options === void 0) { options = {}; }
9713
9712
  return __awaiter(_this, void 0, void 0, function () {
9714
9713
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9733,15 +9732,12 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9733
9732
  // authentication oauth2 required
9734
9733
  // oauth required
9735
9734
  _a.sent();
9736
- if (doctorId2 !== undefined) {
9737
- localVarQueryParameter['DoctorId'] = doctorId2;
9738
- }
9739
- if (id !== undefined) {
9740
- localVarQueryParameter['Id'] = id;
9741
- }
9742
9735
  if (doctorName !== undefined) {
9743
9736
  localVarQueryParameter['DoctorName'] = doctorName;
9744
9737
  }
9738
+ if (certificateId !== undefined) {
9739
+ localVarQueryParameter['CertificateId'] = certificateId;
9740
+ }
9745
9741
  if (certificate !== undefined) {
9746
9742
  localVarQueryParameter['Certificate'] = certificate;
9747
9743
  }
@@ -10014,8 +10010,8 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10014
10010
  *
10015
10011
  * @summary Get all DoctorEducations.
10016
10012
  * @param {string} doctorId
10017
- * @param {string} [doctorId2]
10018
10013
  * @param {string} [doctorName]
10014
+ * @param {string} [educationId]
10019
10015
  * @param {string} [institution]
10020
10016
  * @param {string} [qualification]
10021
10017
  * @param {Date} [graduationDate]
@@ -10025,7 +10021,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10025
10021
  * @param {*} [options] Override http request option.
10026
10022
  * @throws {RequiredError}
10027
10023
  */
10028
- apiV1DoctorsDoctorIdEducationsGet: function (doctorId, doctorId2, doctorName, institution, qualification, graduationDate, page, limit, lastRetrieved, options) {
10024
+ apiV1DoctorsDoctorIdEducationsGet: function (doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options) {
10029
10025
  if (options === void 0) { options = {}; }
10030
10026
  return __awaiter(_this, void 0, void 0, function () {
10031
10027
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -10050,12 +10046,12 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10050
10046
  // authentication oauth2 required
10051
10047
  // oauth required
10052
10048
  _a.sent();
10053
- if (doctorId2 !== undefined) {
10054
- localVarQueryParameter['DoctorId'] = doctorId2;
10055
- }
10056
10049
  if (doctorName !== undefined) {
10057
10050
  localVarQueryParameter['DoctorName'] = doctorName;
10058
10051
  }
10052
+ if (educationId !== undefined) {
10053
+ localVarQueryParameter['EducationId'] = educationId;
10054
+ }
10059
10055
  if (institution !== undefined) {
10060
10056
  localVarQueryParameter['Institution'] = institution;
10061
10057
  }
@@ -10441,9 +10437,8 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10441
10437
  *
10442
10438
  * @summary Get All DoctorPortfolios
10443
10439
  * @param {string} doctorId
10444
- * @param {string} [id]
10445
- * @param {string} [doctorId2]
10446
10440
  * @param {string} [doctorName]
10441
+ * @param {string} [portfolioId]
10447
10442
  * @param {string} [name]
10448
10443
  * @param {number} [page]
10449
10444
  * @param {number} [limit]
@@ -10451,7 +10446,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10451
10446
  * @param {*} [options] Override http request option.
10452
10447
  * @throws {RequiredError}
10453
10448
  */
10454
- apiV1DoctorsDoctorIdPortfoliosGet: function (doctorId, id, doctorId2, doctorName, name, page, limit, lastRetrieved, options) {
10449
+ apiV1DoctorsDoctorIdPortfoliosGet: function (doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options) {
10455
10450
  if (options === void 0) { options = {}; }
10456
10451
  return __awaiter(_this, void 0, void 0, function () {
10457
10452
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -10476,15 +10471,12 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10476
10471
  // authentication oauth2 required
10477
10472
  // oauth required
10478
10473
  _a.sent();
10479
- if (id !== undefined) {
10480
- localVarQueryParameter['Id'] = id;
10481
- }
10482
- if (doctorId2 !== undefined) {
10483
- localVarQueryParameter['DoctorId'] = doctorId2;
10484
- }
10485
10474
  if (doctorName !== undefined) {
10486
10475
  localVarQueryParameter['DoctorName'] = doctorName;
10487
10476
  }
10477
+ if (portfolioId !== undefined) {
10478
+ localVarQueryParameter['PortfolioId'] = portfolioId;
10479
+ }
10488
10480
  if (name !== undefined) {
10489
10481
  localVarQueryParameter['Name'] = name;
10490
10482
  }
@@ -11334,9 +11326,8 @@ exports.DoctorsApiFp = function (configuration) {
11334
11326
  *
11335
11327
  * @summary Delete DoctorCertificate.
11336
11328
  * @param {string} doctorId
11337
- * @param {string} [doctorId2]
11338
- * @param {string} [id]
11339
11329
  * @param {string} [doctorName]
11330
+ * @param {string} [certificateId]
11340
11331
  * @param {string} [certificate]
11341
11332
  * @param {Date} [activeFrom]
11342
11333
  * @param {Date} [activeTo]
@@ -11346,12 +11337,12 @@ exports.DoctorsApiFp = function (configuration) {
11346
11337
  * @param {*} [options] Override http request option.
11347
11338
  * @throws {RequiredError}
11348
11339
  */
11349
- apiV1DoctorsDoctorIdCertificatesGet: function (doctorId, doctorId2, id, doctorName, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options) {
11340
+ apiV1DoctorsDoctorIdCertificatesGet: function (doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options) {
11350
11341
  return __awaiter(this, void 0, void 0, function () {
11351
11342
  var localVarAxiosArgs;
11352
11343
  return __generator(this, function (_a) {
11353
11344
  switch (_a.label) {
11354
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorId2, id, doctorName, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options)];
11345
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options)];
11355
11346
  case 1:
11356
11347
  localVarAxiosArgs = _a.sent();
11357
11348
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -11468,8 +11459,8 @@ exports.DoctorsApiFp = function (configuration) {
11468
11459
  *
11469
11460
  * @summary Get all DoctorEducations.
11470
11461
  * @param {string} doctorId
11471
- * @param {string} [doctorId2]
11472
11462
  * @param {string} [doctorName]
11463
+ * @param {string} [educationId]
11473
11464
  * @param {string} [institution]
11474
11465
  * @param {string} [qualification]
11475
11466
  * @param {Date} [graduationDate]
@@ -11479,12 +11470,12 @@ exports.DoctorsApiFp = function (configuration) {
11479
11470
  * @param {*} [options] Override http request option.
11480
11471
  * @throws {RequiredError}
11481
11472
  */
11482
- apiV1DoctorsDoctorIdEducationsGet: function (doctorId, doctorId2, doctorName, institution, qualification, graduationDate, page, limit, lastRetrieved, options) {
11473
+ apiV1DoctorsDoctorIdEducationsGet: function (doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options) {
11483
11474
  return __awaiter(this, void 0, void 0, function () {
11484
11475
  var localVarAxiosArgs;
11485
11476
  return __generator(this, function (_a) {
11486
11477
  switch (_a.label) {
11487
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorId2, doctorName, institution, qualification, graduationDate, page, limit, lastRetrieved, options)];
11478
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options)];
11488
11479
  case 1:
11489
11480
  localVarAxiosArgs = _a.sent();
11490
11481
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -11648,9 +11639,8 @@ exports.DoctorsApiFp = function (configuration) {
11648
11639
  *
11649
11640
  * @summary Get All DoctorPortfolios
11650
11641
  * @param {string} doctorId
11651
- * @param {string} [id]
11652
- * @param {string} [doctorId2]
11653
11642
  * @param {string} [doctorName]
11643
+ * @param {string} [portfolioId]
11654
11644
  * @param {string} [name]
11655
11645
  * @param {number} [page]
11656
11646
  * @param {number} [limit]
@@ -11658,12 +11648,12 @@ exports.DoctorsApiFp = function (configuration) {
11658
11648
  * @param {*} [options] Override http request option.
11659
11649
  * @throws {RequiredError}
11660
11650
  */
11661
- apiV1DoctorsDoctorIdPortfoliosGet: function (doctorId, id, doctorId2, doctorName, name, page, limit, lastRetrieved, options) {
11651
+ apiV1DoctorsDoctorIdPortfoliosGet: function (doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options) {
11662
11652
  return __awaiter(this, void 0, void 0, function () {
11663
11653
  var localVarAxiosArgs;
11664
11654
  return __generator(this, function (_a) {
11665
11655
  switch (_a.label) {
11666
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdPortfoliosGet(doctorId, id, doctorId2, doctorName, name, page, limit, lastRetrieved, options)];
11656
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdPortfoliosGet(doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options)];
11667
11657
  case 1:
11668
11658
  localVarAxiosArgs = _a.sent();
11669
11659
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12036,9 +12026,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
12036
12026
  *
12037
12027
  * @summary Delete DoctorCertificate.
12038
12028
  * @param {string} doctorId
12039
- * @param {string} [doctorId2]
12040
- * @param {string} [id]
12041
12029
  * @param {string} [doctorName]
12030
+ * @param {string} [certificateId]
12042
12031
  * @param {string} [certificate]
12043
12032
  * @param {Date} [activeFrom]
12044
12033
  * @param {Date} [activeTo]
@@ -12048,8 +12037,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
12048
12037
  * @param {*} [options] Override http request option.
12049
12038
  * @throws {RequiredError}
12050
12039
  */
12051
- apiV1DoctorsDoctorIdCertificatesGet: function (doctorId, doctorId2, id, doctorName, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options) {
12052
- return localVarFp.apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorId2, id, doctorName, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
12040
+ apiV1DoctorsDoctorIdCertificatesGet: function (doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options) {
12041
+ return localVarFp.apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
12053
12042
  },
12054
12043
  /**
12055
12044
  *
@@ -12110,8 +12099,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
12110
12099
  *
12111
12100
  * @summary Get all DoctorEducations.
12112
12101
  * @param {string} doctorId
12113
- * @param {string} [doctorId2]
12114
12102
  * @param {string} [doctorName]
12103
+ * @param {string} [educationId]
12115
12104
  * @param {string} [institution]
12116
12105
  * @param {string} [qualification]
12117
12106
  * @param {Date} [graduationDate]
@@ -12121,8 +12110,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
12121
12110
  * @param {*} [options] Override http request option.
12122
12111
  * @throws {RequiredError}
12123
12112
  */
12124
- apiV1DoctorsDoctorIdEducationsGet: function (doctorId, doctorId2, doctorName, institution, qualification, graduationDate, page, limit, lastRetrieved, options) {
12125
- return localVarFp.apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorId2, doctorName, institution, qualification, graduationDate, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
12113
+ apiV1DoctorsDoctorIdEducationsGet: function (doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options) {
12114
+ return localVarFp.apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
12126
12115
  },
12127
12116
  /**
12128
12117
  *
@@ -12210,9 +12199,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
12210
12199
  *
12211
12200
  * @summary Get All DoctorPortfolios
12212
12201
  * @param {string} doctorId
12213
- * @param {string} [id]
12214
- * @param {string} [doctorId2]
12215
12202
  * @param {string} [doctorName]
12203
+ * @param {string} [portfolioId]
12216
12204
  * @param {string} [name]
12217
12205
  * @param {number} [page]
12218
12206
  * @param {number} [limit]
@@ -12220,8 +12208,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
12220
12208
  * @param {*} [options] Override http request option.
12221
12209
  * @throws {RequiredError}
12222
12210
  */
12223
- apiV1DoctorsDoctorIdPortfoliosGet: function (doctorId, id, doctorId2, doctorName, name, page, limit, lastRetrieved, options) {
12224
- return localVarFp.apiV1DoctorsDoctorIdPortfoliosGet(doctorId, id, doctorId2, doctorName, name, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
12211
+ apiV1DoctorsDoctorIdPortfoliosGet: function (doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options) {
12212
+ return localVarFp.apiV1DoctorsDoctorIdPortfoliosGet(doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
12225
12213
  },
12226
12214
  /**
12227
12215
  *
@@ -12472,9 +12460,8 @@ var DoctorsApi = /** @class */ (function (_super) {
12472
12460
  *
12473
12461
  * @summary Delete DoctorCertificate.
12474
12462
  * @param {string} doctorId
12475
- * @param {string} [doctorId2]
12476
- * @param {string} [id]
12477
12463
  * @param {string} [doctorName]
12464
+ * @param {string} [certificateId]
12478
12465
  * @param {string} [certificate]
12479
12466
  * @param {Date} [activeFrom]
12480
12467
  * @param {Date} [activeTo]
@@ -12485,9 +12472,9 @@ var DoctorsApi = /** @class */ (function (_super) {
12485
12472
  * @throws {RequiredError}
12486
12473
  * @memberof DoctorsApi
12487
12474
  */
12488
- DoctorsApi.prototype.apiV1DoctorsDoctorIdCertificatesGet = function (doctorId, doctorId2, id, doctorName, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options) {
12475
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdCertificatesGet = function (doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options) {
12489
12476
  var _this = this;
12490
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorId2, id, doctorName, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
12477
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
12491
12478
  };
12492
12479
  /**
12493
12480
  *
@@ -12558,8 +12545,8 @@ var DoctorsApi = /** @class */ (function (_super) {
12558
12545
  *
12559
12546
  * @summary Get all DoctorEducations.
12560
12547
  * @param {string} doctorId
12561
- * @param {string} [doctorId2]
12562
12548
  * @param {string} [doctorName]
12549
+ * @param {string} [educationId]
12563
12550
  * @param {string} [institution]
12564
12551
  * @param {string} [qualification]
12565
12552
  * @param {Date} [graduationDate]
@@ -12570,9 +12557,9 @@ var DoctorsApi = /** @class */ (function (_super) {
12570
12557
  * @throws {RequiredError}
12571
12558
  * @memberof DoctorsApi
12572
12559
  */
12573
- DoctorsApi.prototype.apiV1DoctorsDoctorIdEducationsGet = function (doctorId, doctorId2, doctorName, institution, qualification, graduationDate, page, limit, lastRetrieved, options) {
12560
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdEducationsGet = function (doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options) {
12574
12561
  var _this = this;
12575
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorId2, doctorName, institution, qualification, graduationDate, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
12562
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
12576
12563
  };
12577
12564
  /**
12578
12565
  *
@@ -12674,9 +12661,8 @@ var DoctorsApi = /** @class */ (function (_super) {
12674
12661
  *
12675
12662
  * @summary Get All DoctorPortfolios
12676
12663
  * @param {string} doctorId
12677
- * @param {string} [id]
12678
- * @param {string} [doctorId2]
12679
12664
  * @param {string} [doctorName]
12665
+ * @param {string} [portfolioId]
12680
12666
  * @param {string} [name]
12681
12667
  * @param {number} [page]
12682
12668
  * @param {number} [limit]
@@ -12685,9 +12671,9 @@ var DoctorsApi = /** @class */ (function (_super) {
12685
12671
  * @throws {RequiredError}
12686
12672
  * @memberof DoctorsApi
12687
12673
  */
12688
- DoctorsApi.prototype.apiV1DoctorsDoctorIdPortfoliosGet = function (doctorId, id, doctorId2, doctorName, name, page, limit, lastRetrieved, options) {
12674
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdPortfoliosGet = function (doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options) {
12689
12675
  var _this = this;
12690
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdPortfoliosGet(doctorId, id, doctorId2, doctorName, name, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
12676
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdPortfoliosGet(doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
12691
12677
  };
12692
12678
  /**
12693
12679
  *
@@ -18090,32 +18076,41 @@ var LanguagesApi = /** @class */ (function (_super) {
18090
18076
  }(base_1.BaseAPI));
18091
18077
  exports.LanguagesApi = LanguagesApi;
18092
18078
  /**
18093
- * NotificationsApi - axios parameter creator
18079
+ * ManagersApi - axios parameter creator
18094
18080
  * @export
18095
18081
  */
18096
- exports.NotificationsApiAxiosParamCreator = function (configuration) {
18082
+ exports.ManagersApiAxiosParamCreator = function (configuration) {
18097
18083
  var _this = this;
18098
18084
  return {
18099
18085
  /**
18100
18086
  *
18101
- * @summary Check notification.
18102
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18087
+ * @summary Get all Managers.
18088
+ * @param {string} [hospitalId]
18089
+ * @param {string} [id]
18090
+ * @param {string} [fullname]
18091
+ * @param {string} [email]
18092
+ * @param {Gender} [gender]
18093
+ * @param {Date} [dateOfBirth]
18094
+ * @param {Date} [created]
18095
+ * @param {number} [page]
18096
+ * @param {number} [limit]
18097
+ * @param {Date} [lastRetrieved]
18103
18098
  * @param {*} [options] Override http request option.
18104
18099
  * @throws {RequiredError}
18105
18100
  */
18106
- apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18101
+ apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options) {
18107
18102
  if (options === void 0) { options = {}; }
18108
18103
  return __awaiter(_this, void 0, void 0, function () {
18109
18104
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18110
18105
  return __generator(this, function (_a) {
18111
18106
  switch (_a.label) {
18112
18107
  case 0:
18113
- localVarPath = "/api/v1/notifications/check";
18108
+ localVarPath = "/api/v1/managers";
18114
18109
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18115
18110
  if (configuration) {
18116
18111
  baseOptions = configuration.baseOptions;
18117
18112
  }
18118
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
18113
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18119
18114
  localVarHeaderParameter = {};
18120
18115
  localVarQueryParameter = {};
18121
18116
  // authentication oauth2 required
@@ -18125,11 +18120,45 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18125
18120
  // authentication oauth2 required
18126
18121
  // oauth required
18127
18122
  _a.sent();
18128
- localVarHeaderParameter['Content-Type'] = 'application/json';
18123
+ if (hospitalId !== undefined) {
18124
+ localVarQueryParameter['HospitalId'] = hospitalId;
18125
+ }
18126
+ if (id !== undefined) {
18127
+ localVarQueryParameter['Id'] = id;
18128
+ }
18129
+ if (fullname !== undefined) {
18130
+ localVarQueryParameter['Fullname'] = fullname;
18131
+ }
18132
+ if (email !== undefined) {
18133
+ localVarQueryParameter['Email'] = email;
18134
+ }
18135
+ if (gender !== undefined) {
18136
+ localVarQueryParameter['Gender'] = gender;
18137
+ }
18138
+ if (dateOfBirth !== undefined) {
18139
+ localVarQueryParameter['DateOfBirth'] = (dateOfBirth instanceof Date) ?
18140
+ dateOfBirth.toISOString() :
18141
+ dateOfBirth;
18142
+ }
18143
+ if (created !== undefined) {
18144
+ localVarQueryParameter['Created'] = (created instanceof Date) ?
18145
+ created.toISOString() :
18146
+ created;
18147
+ }
18148
+ if (page !== undefined) {
18149
+ localVarQueryParameter['page'] = page;
18150
+ }
18151
+ if (limit !== undefined) {
18152
+ localVarQueryParameter['limit'] = limit;
18153
+ }
18154
+ if (lastRetrieved !== undefined) {
18155
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
18156
+ lastRetrieved.toISOString() :
18157
+ lastRetrieved;
18158
+ }
18129
18159
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18130
18160
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18131
18161
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18132
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration);
18133
18162
  return [2 /*return*/, {
18134
18163
  url: common_1.toPathString(localVarUrlObj),
18135
18164
  options: localVarRequestOptions,
@@ -18140,28 +18169,27 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18140
18169
  },
18141
18170
  /**
18142
18171
  *
18143
- * @summary Get all notifications.
18144
- * @param {NotificationCode} [notificationCode]
18145
- * @param {boolean} [unreadCountOnly]
18146
- * @param {number} [page]
18147
- * @param {number} [limit]
18148
- * @param {Date} [lastRetrieved]
18172
+ * @summary Delete Manager.
18173
+ * @param {string} managerId
18149
18174
  * @param {*} [options] Override http request option.
18150
18175
  * @throws {RequiredError}
18151
18176
  */
18152
- apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18177
+ apiV1ManagersManagerIdDelete: function (managerId, options) {
18153
18178
  if (options === void 0) { options = {}; }
18154
18179
  return __awaiter(_this, void 0, void 0, function () {
18155
18180
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18156
18181
  return __generator(this, function (_a) {
18157
18182
  switch (_a.label) {
18158
18183
  case 0:
18159
- localVarPath = "/api/v1/notifications";
18184
+ // verify required parameter 'managerId' is not null or undefined
18185
+ common_1.assertParamExists('apiV1ManagersManagerIdDelete', 'managerId', managerId);
18186
+ localVarPath = "/api/v1/managers/{managerId}"
18187
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
18160
18188
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18161
18189
  if (configuration) {
18162
18190
  baseOptions = configuration.baseOptions;
18163
18191
  }
18164
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18192
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
18165
18193
  localVarHeaderParameter = {};
18166
18194
  localVarQueryParameter = {};
18167
18195
  // authentication oauth2 required
@@ -18171,26 +18199,140 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18171
18199
  // authentication oauth2 required
18172
18200
  // oauth required
18173
18201
  _a.sent();
18174
- if (notificationCode !== undefined) {
18175
- localVarQueryParameter['NotificationCode'] = notificationCode;
18176
- }
18177
- if (unreadCountOnly !== undefined) {
18178
- localVarQueryParameter['UnreadCountOnly'] = unreadCountOnly;
18179
- }
18180
- if (page !== undefined) {
18181
- localVarQueryParameter['page'] = page;
18202
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18203
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18204
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18205
+ return [2 /*return*/, {
18206
+ url: common_1.toPathString(localVarUrlObj),
18207
+ options: localVarRequestOptions,
18208
+ }];
18209
+ }
18210
+ });
18211
+ });
18212
+ },
18213
+ /**
18214
+ *
18215
+ * @summary Get Manager.
18216
+ * @param {string} managerId
18217
+ * @param {*} [options] Override http request option.
18218
+ * @throws {RequiredError}
18219
+ */
18220
+ apiV1ManagersManagerIdGet: function (managerId, options) {
18221
+ if (options === void 0) { options = {}; }
18222
+ return __awaiter(_this, void 0, void 0, function () {
18223
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18224
+ return __generator(this, function (_a) {
18225
+ switch (_a.label) {
18226
+ case 0:
18227
+ // verify required parameter 'managerId' is not null or undefined
18228
+ common_1.assertParamExists('apiV1ManagersManagerIdGet', 'managerId', managerId);
18229
+ localVarPath = "/api/v1/managers/{managerId}"
18230
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
18231
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18232
+ if (configuration) {
18233
+ baseOptions = configuration.baseOptions;
18182
18234
  }
18183
- if (limit !== undefined) {
18184
- localVarQueryParameter['limit'] = limit;
18235
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18236
+ localVarHeaderParameter = {};
18237
+ localVarQueryParameter = {};
18238
+ // authentication oauth2 required
18239
+ // oauth required
18240
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18241
+ case 1:
18242
+ // authentication oauth2 required
18243
+ // oauth required
18244
+ _a.sent();
18245
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18246
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18247
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18248
+ return [2 /*return*/, {
18249
+ url: common_1.toPathString(localVarUrlObj),
18250
+ options: localVarRequestOptions,
18251
+ }];
18252
+ }
18253
+ });
18254
+ });
18255
+ },
18256
+ /**
18257
+ *
18258
+ * @summary Update Manager.
18259
+ * @param {string} managerId
18260
+ * @param {UpdateManagerCommand} [updateManagerCommand]
18261
+ * @param {*} [options] Override http request option.
18262
+ * @throws {RequiredError}
18263
+ */
18264
+ apiV1ManagersManagerIdPut: function (managerId, updateManagerCommand, options) {
18265
+ if (options === void 0) { options = {}; }
18266
+ return __awaiter(_this, void 0, void 0, function () {
18267
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18268
+ return __generator(this, function (_a) {
18269
+ switch (_a.label) {
18270
+ case 0:
18271
+ // verify required parameter 'managerId' is not null or undefined
18272
+ common_1.assertParamExists('apiV1ManagersManagerIdPut', 'managerId', managerId);
18273
+ localVarPath = "/api/v1/managers/{managerId}"
18274
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
18275
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18276
+ if (configuration) {
18277
+ baseOptions = configuration.baseOptions;
18185
18278
  }
18186
- if (lastRetrieved !== undefined) {
18187
- localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
18188
- lastRetrieved.toISOString() :
18189
- lastRetrieved;
18279
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
18280
+ localVarHeaderParameter = {};
18281
+ localVarQueryParameter = {};
18282
+ // authentication oauth2 required
18283
+ // oauth required
18284
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18285
+ case 1:
18286
+ // authentication oauth2 required
18287
+ // oauth required
18288
+ _a.sent();
18289
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18290
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18291
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18292
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18293
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateManagerCommand, localVarRequestOptions, configuration);
18294
+ return [2 /*return*/, {
18295
+ url: common_1.toPathString(localVarUrlObj),
18296
+ options: localVarRequestOptions,
18297
+ }];
18298
+ }
18299
+ });
18300
+ });
18301
+ },
18302
+ /**
18303
+ *
18304
+ * @summary Create a Manager.
18305
+ * @param {CreateManagerCommand} [createManagerCommand]
18306
+ * @param {*} [options] Override http request option.
18307
+ * @throws {RequiredError}
18308
+ */
18309
+ apiV1ManagersPost: function (createManagerCommand, options) {
18310
+ if (options === void 0) { options = {}; }
18311
+ return __awaiter(_this, void 0, void 0, function () {
18312
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18313
+ return __generator(this, function (_a) {
18314
+ switch (_a.label) {
18315
+ case 0:
18316
+ localVarPath = "/api/v1/managers";
18317
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18318
+ if (configuration) {
18319
+ baseOptions = configuration.baseOptions;
18190
18320
  }
18321
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
18322
+ localVarHeaderParameter = {};
18323
+ localVarQueryParameter = {};
18324
+ // authentication oauth2 required
18325
+ // oauth required
18326
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18327
+ case 1:
18328
+ // authentication oauth2 required
18329
+ // oauth required
18330
+ _a.sent();
18331
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18191
18332
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18192
18333
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18193
18334
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18335
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createManagerCommand, localVarRequestOptions, configuration);
18194
18336
  return [2 /*return*/, {
18195
18337
  url: common_1.toPathString(localVarUrlObj),
18196
18338
  options: localVarRequestOptions,
@@ -18202,25 +18344,34 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18202
18344
  };
18203
18345
  };
18204
18346
  /**
18205
- * NotificationsApi - functional programming interface
18347
+ * ManagersApi - functional programming interface
18206
18348
  * @export
18207
18349
  */
18208
- exports.NotificationsApiFp = function (configuration) {
18209
- var localVarAxiosParamCreator = exports.NotificationsApiAxiosParamCreator(configuration);
18350
+ exports.ManagersApiFp = function (configuration) {
18351
+ var localVarAxiosParamCreator = exports.ManagersApiAxiosParamCreator(configuration);
18210
18352
  return {
18211
18353
  /**
18212
18354
  *
18213
- * @summary Check notification.
18214
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18355
+ * @summary Get all Managers.
18356
+ * @param {string} [hospitalId]
18357
+ * @param {string} [id]
18358
+ * @param {string} [fullname]
18359
+ * @param {string} [email]
18360
+ * @param {Gender} [gender]
18361
+ * @param {Date} [dateOfBirth]
18362
+ * @param {Date} [created]
18363
+ * @param {number} [page]
18364
+ * @param {number} [limit]
18365
+ * @param {Date} [lastRetrieved]
18215
18366
  * @param {*} [options] Override http request option.
18216
18367
  * @throws {RequiredError}
18217
18368
  */
18218
- apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18369
+ apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options) {
18219
18370
  return __awaiter(this, void 0, void 0, function () {
18220
18371
  var localVarAxiosArgs;
18221
18372
  return __generator(this, function (_a) {
18222
18373
  switch (_a.label) {
18223
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options)];
18374
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options)];
18224
18375
  case 1:
18225
18376
  localVarAxiosArgs = _a.sent();
18226
18377
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -18230,21 +18381,17 @@ exports.NotificationsApiFp = function (configuration) {
18230
18381
  },
18231
18382
  /**
18232
18383
  *
18233
- * @summary Get all notifications.
18234
- * @param {NotificationCode} [notificationCode]
18235
- * @param {boolean} [unreadCountOnly]
18236
- * @param {number} [page]
18237
- * @param {number} [limit]
18238
- * @param {Date} [lastRetrieved]
18384
+ * @summary Delete Manager.
18385
+ * @param {string} managerId
18239
18386
  * @param {*} [options] Override http request option.
18240
18387
  * @throws {RequiredError}
18241
18388
  */
18242
- apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18389
+ apiV1ManagersManagerIdDelete: function (managerId, options) {
18243
18390
  return __awaiter(this, void 0, void 0, function () {
18244
18391
  var localVarAxiosArgs;
18245
18392
  return __generator(this, function (_a) {
18246
18393
  switch (_a.label) {
18247
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options)];
18394
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdDelete(managerId, options)];
18248
18395
  case 1:
18249
18396
  localVarAxiosArgs = _a.sent();
18250
18397
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -18252,28 +18399,407 @@ exports.NotificationsApiFp = function (configuration) {
18252
18399
  });
18253
18400
  });
18254
18401
  },
18255
- };
18256
- };
18257
- /**
18258
- * NotificationsApi - factory interface
18259
- * @export
18260
- */
18261
- exports.NotificationsApiFactory = function (configuration, basePath, axios) {
18262
- var localVarFp = exports.NotificationsApiFp(configuration);
18263
- return {
18264
18402
  /**
18265
18403
  *
18266
- * @summary Check notification.
18267
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18404
+ * @summary Get Manager.
18405
+ * @param {string} managerId
18268
18406
  * @param {*} [options] Override http request option.
18269
18407
  * @throws {RequiredError}
18270
18408
  */
18271
- apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18272
- return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(axios, basePath); });
18409
+ apiV1ManagersManagerIdGet: function (managerId, options) {
18410
+ return __awaiter(this, void 0, void 0, function () {
18411
+ var localVarAxiosArgs;
18412
+ return __generator(this, function (_a) {
18413
+ switch (_a.label) {
18414
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdGet(managerId, options)];
18415
+ case 1:
18416
+ localVarAxiosArgs = _a.sent();
18417
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18418
+ }
18419
+ });
18420
+ });
18273
18421
  },
18274
18422
  /**
18275
18423
  *
18276
- * @summary Get all notifications.
18424
+ * @summary Update Manager.
18425
+ * @param {string} managerId
18426
+ * @param {UpdateManagerCommand} [updateManagerCommand]
18427
+ * @param {*} [options] Override http request option.
18428
+ * @throws {RequiredError}
18429
+ */
18430
+ apiV1ManagersManagerIdPut: function (managerId, updateManagerCommand, options) {
18431
+ return __awaiter(this, void 0, void 0, function () {
18432
+ var localVarAxiosArgs;
18433
+ return __generator(this, function (_a) {
18434
+ switch (_a.label) {
18435
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options)];
18436
+ case 1:
18437
+ localVarAxiosArgs = _a.sent();
18438
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18439
+ }
18440
+ });
18441
+ });
18442
+ },
18443
+ /**
18444
+ *
18445
+ * @summary Create a Manager.
18446
+ * @param {CreateManagerCommand} [createManagerCommand]
18447
+ * @param {*} [options] Override http request option.
18448
+ * @throws {RequiredError}
18449
+ */
18450
+ apiV1ManagersPost: function (createManagerCommand, options) {
18451
+ return __awaiter(this, void 0, void 0, function () {
18452
+ var localVarAxiosArgs;
18453
+ return __generator(this, function (_a) {
18454
+ switch (_a.label) {
18455
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersPost(createManagerCommand, options)];
18456
+ case 1:
18457
+ localVarAxiosArgs = _a.sent();
18458
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18459
+ }
18460
+ });
18461
+ });
18462
+ },
18463
+ };
18464
+ };
18465
+ /**
18466
+ * ManagersApi - factory interface
18467
+ * @export
18468
+ */
18469
+ exports.ManagersApiFactory = function (configuration, basePath, axios) {
18470
+ var localVarFp = exports.ManagersApiFp(configuration);
18471
+ return {
18472
+ /**
18473
+ *
18474
+ * @summary Get all Managers.
18475
+ * @param {string} [hospitalId]
18476
+ * @param {string} [id]
18477
+ * @param {string} [fullname]
18478
+ * @param {string} [email]
18479
+ * @param {Gender} [gender]
18480
+ * @param {Date} [dateOfBirth]
18481
+ * @param {Date} [created]
18482
+ * @param {number} [page]
18483
+ * @param {number} [limit]
18484
+ * @param {Date} [lastRetrieved]
18485
+ * @param {*} [options] Override http request option.
18486
+ * @throws {RequiredError}
18487
+ */
18488
+ apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options) {
18489
+ return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
18490
+ },
18491
+ /**
18492
+ *
18493
+ * @summary Delete Manager.
18494
+ * @param {string} managerId
18495
+ * @param {*} [options] Override http request option.
18496
+ * @throws {RequiredError}
18497
+ */
18498
+ apiV1ManagersManagerIdDelete: function (managerId, options) {
18499
+ return localVarFp.apiV1ManagersManagerIdDelete(managerId, options).then(function (request) { return request(axios, basePath); });
18500
+ },
18501
+ /**
18502
+ *
18503
+ * @summary Get Manager.
18504
+ * @param {string} managerId
18505
+ * @param {*} [options] Override http request option.
18506
+ * @throws {RequiredError}
18507
+ */
18508
+ apiV1ManagersManagerIdGet: function (managerId, options) {
18509
+ return localVarFp.apiV1ManagersManagerIdGet(managerId, options).then(function (request) { return request(axios, basePath); });
18510
+ },
18511
+ /**
18512
+ *
18513
+ * @summary Update Manager.
18514
+ * @param {string} managerId
18515
+ * @param {UpdateManagerCommand} [updateManagerCommand]
18516
+ * @param {*} [options] Override http request option.
18517
+ * @throws {RequiredError}
18518
+ */
18519
+ apiV1ManagersManagerIdPut: function (managerId, updateManagerCommand, options) {
18520
+ return localVarFp.apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options).then(function (request) { return request(axios, basePath); });
18521
+ },
18522
+ /**
18523
+ *
18524
+ * @summary Create a Manager.
18525
+ * @param {CreateManagerCommand} [createManagerCommand]
18526
+ * @param {*} [options] Override http request option.
18527
+ * @throws {RequiredError}
18528
+ */
18529
+ apiV1ManagersPost: function (createManagerCommand, options) {
18530
+ return localVarFp.apiV1ManagersPost(createManagerCommand, options).then(function (request) { return request(axios, basePath); });
18531
+ },
18532
+ };
18533
+ };
18534
+ /**
18535
+ * ManagersApi - object-oriented interface
18536
+ * @export
18537
+ * @class ManagersApi
18538
+ * @extends {BaseAPI}
18539
+ */
18540
+ var ManagersApi = /** @class */ (function (_super) {
18541
+ __extends(ManagersApi, _super);
18542
+ function ManagersApi() {
18543
+ return _super !== null && _super.apply(this, arguments) || this;
18544
+ }
18545
+ /**
18546
+ *
18547
+ * @summary Get all Managers.
18548
+ * @param {string} [hospitalId]
18549
+ * @param {string} [id]
18550
+ * @param {string} [fullname]
18551
+ * @param {string} [email]
18552
+ * @param {Gender} [gender]
18553
+ * @param {Date} [dateOfBirth]
18554
+ * @param {Date} [created]
18555
+ * @param {number} [page]
18556
+ * @param {number} [limit]
18557
+ * @param {Date} [lastRetrieved]
18558
+ * @param {*} [options] Override http request option.
18559
+ * @throws {RequiredError}
18560
+ * @memberof ManagersApi
18561
+ */
18562
+ ManagersApi.prototype.apiV1ManagersGet = function (hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options) {
18563
+ var _this = this;
18564
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
18565
+ };
18566
+ /**
18567
+ *
18568
+ * @summary Delete Manager.
18569
+ * @param {string} managerId
18570
+ * @param {*} [options] Override http request option.
18571
+ * @throws {RequiredError}
18572
+ * @memberof ManagersApi
18573
+ */
18574
+ ManagersApi.prototype.apiV1ManagersManagerIdDelete = function (managerId, options) {
18575
+ var _this = this;
18576
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdDelete(managerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
18577
+ };
18578
+ /**
18579
+ *
18580
+ * @summary Get Manager.
18581
+ * @param {string} managerId
18582
+ * @param {*} [options] Override http request option.
18583
+ * @throws {RequiredError}
18584
+ * @memberof ManagersApi
18585
+ */
18586
+ ManagersApi.prototype.apiV1ManagersManagerIdGet = function (managerId, options) {
18587
+ var _this = this;
18588
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdGet(managerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
18589
+ };
18590
+ /**
18591
+ *
18592
+ * @summary Update Manager.
18593
+ * @param {string} managerId
18594
+ * @param {UpdateManagerCommand} [updateManagerCommand]
18595
+ * @param {*} [options] Override http request option.
18596
+ * @throws {RequiredError}
18597
+ * @memberof ManagersApi
18598
+ */
18599
+ ManagersApi.prototype.apiV1ManagersManagerIdPut = function (managerId, updateManagerCommand, options) {
18600
+ var _this = this;
18601
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
18602
+ };
18603
+ /**
18604
+ *
18605
+ * @summary Create a Manager.
18606
+ * @param {CreateManagerCommand} [createManagerCommand]
18607
+ * @param {*} [options] Override http request option.
18608
+ * @throws {RequiredError}
18609
+ * @memberof ManagersApi
18610
+ */
18611
+ ManagersApi.prototype.apiV1ManagersPost = function (createManagerCommand, options) {
18612
+ var _this = this;
18613
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersPost(createManagerCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
18614
+ };
18615
+ return ManagersApi;
18616
+ }(base_1.BaseAPI));
18617
+ exports.ManagersApi = ManagersApi;
18618
+ /**
18619
+ * NotificationsApi - axios parameter creator
18620
+ * @export
18621
+ */
18622
+ exports.NotificationsApiAxiosParamCreator = function (configuration) {
18623
+ var _this = this;
18624
+ return {
18625
+ /**
18626
+ *
18627
+ * @summary Check notification.
18628
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18629
+ * @param {*} [options] Override http request option.
18630
+ * @throws {RequiredError}
18631
+ */
18632
+ apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18633
+ if (options === void 0) { options = {}; }
18634
+ return __awaiter(_this, void 0, void 0, function () {
18635
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18636
+ return __generator(this, function (_a) {
18637
+ switch (_a.label) {
18638
+ case 0:
18639
+ localVarPath = "/api/v1/notifications/check";
18640
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18641
+ if (configuration) {
18642
+ baseOptions = configuration.baseOptions;
18643
+ }
18644
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
18645
+ localVarHeaderParameter = {};
18646
+ localVarQueryParameter = {};
18647
+ // authentication oauth2 required
18648
+ // oauth required
18649
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18650
+ case 1:
18651
+ // authentication oauth2 required
18652
+ // oauth required
18653
+ _a.sent();
18654
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18655
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18656
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18657
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18658
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration);
18659
+ return [2 /*return*/, {
18660
+ url: common_1.toPathString(localVarUrlObj),
18661
+ options: localVarRequestOptions,
18662
+ }];
18663
+ }
18664
+ });
18665
+ });
18666
+ },
18667
+ /**
18668
+ *
18669
+ * @summary Get all notifications.
18670
+ * @param {NotificationCode} [notificationCode]
18671
+ * @param {boolean} [unreadCountOnly]
18672
+ * @param {number} [page]
18673
+ * @param {number} [limit]
18674
+ * @param {Date} [lastRetrieved]
18675
+ * @param {*} [options] Override http request option.
18676
+ * @throws {RequiredError}
18677
+ */
18678
+ apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18679
+ if (options === void 0) { options = {}; }
18680
+ return __awaiter(_this, void 0, void 0, function () {
18681
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18682
+ return __generator(this, function (_a) {
18683
+ switch (_a.label) {
18684
+ case 0:
18685
+ localVarPath = "/api/v1/notifications";
18686
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18687
+ if (configuration) {
18688
+ baseOptions = configuration.baseOptions;
18689
+ }
18690
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18691
+ localVarHeaderParameter = {};
18692
+ localVarQueryParameter = {};
18693
+ // authentication oauth2 required
18694
+ // oauth required
18695
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18696
+ case 1:
18697
+ // authentication oauth2 required
18698
+ // oauth required
18699
+ _a.sent();
18700
+ if (notificationCode !== undefined) {
18701
+ localVarQueryParameter['NotificationCode'] = notificationCode;
18702
+ }
18703
+ if (unreadCountOnly !== undefined) {
18704
+ localVarQueryParameter['UnreadCountOnly'] = unreadCountOnly;
18705
+ }
18706
+ if (page !== undefined) {
18707
+ localVarQueryParameter['page'] = page;
18708
+ }
18709
+ if (limit !== undefined) {
18710
+ localVarQueryParameter['limit'] = limit;
18711
+ }
18712
+ if (lastRetrieved !== undefined) {
18713
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
18714
+ lastRetrieved.toISOString() :
18715
+ lastRetrieved;
18716
+ }
18717
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18718
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18719
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18720
+ return [2 /*return*/, {
18721
+ url: common_1.toPathString(localVarUrlObj),
18722
+ options: localVarRequestOptions,
18723
+ }];
18724
+ }
18725
+ });
18726
+ });
18727
+ },
18728
+ };
18729
+ };
18730
+ /**
18731
+ * NotificationsApi - functional programming interface
18732
+ * @export
18733
+ */
18734
+ exports.NotificationsApiFp = function (configuration) {
18735
+ var localVarAxiosParamCreator = exports.NotificationsApiAxiosParamCreator(configuration);
18736
+ return {
18737
+ /**
18738
+ *
18739
+ * @summary Check notification.
18740
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18741
+ * @param {*} [options] Override http request option.
18742
+ * @throws {RequiredError}
18743
+ */
18744
+ apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18745
+ return __awaiter(this, void 0, void 0, function () {
18746
+ var localVarAxiosArgs;
18747
+ return __generator(this, function (_a) {
18748
+ switch (_a.label) {
18749
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options)];
18750
+ case 1:
18751
+ localVarAxiosArgs = _a.sent();
18752
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18753
+ }
18754
+ });
18755
+ });
18756
+ },
18757
+ /**
18758
+ *
18759
+ * @summary Get all notifications.
18760
+ * @param {NotificationCode} [notificationCode]
18761
+ * @param {boolean} [unreadCountOnly]
18762
+ * @param {number} [page]
18763
+ * @param {number} [limit]
18764
+ * @param {Date} [lastRetrieved]
18765
+ * @param {*} [options] Override http request option.
18766
+ * @throws {RequiredError}
18767
+ */
18768
+ apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
18769
+ return __awaiter(this, void 0, void 0, function () {
18770
+ var localVarAxiosArgs;
18771
+ return __generator(this, function (_a) {
18772
+ switch (_a.label) {
18773
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options)];
18774
+ case 1:
18775
+ localVarAxiosArgs = _a.sent();
18776
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18777
+ }
18778
+ });
18779
+ });
18780
+ },
18781
+ };
18782
+ };
18783
+ /**
18784
+ * NotificationsApi - factory interface
18785
+ * @export
18786
+ */
18787
+ exports.NotificationsApiFactory = function (configuration, basePath, axios) {
18788
+ var localVarFp = exports.NotificationsApiFp(configuration);
18789
+ return {
18790
+ /**
18791
+ *
18792
+ * @summary Check notification.
18793
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
18794
+ * @param {*} [options] Override http request option.
18795
+ * @throws {RequiredError}
18796
+ */
18797
+ apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
18798
+ return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(axios, basePath); });
18799
+ },
18800
+ /**
18801
+ *
18802
+ * @summary Get all notifications.
18277
18803
  * @param {NotificationCode} [notificationCode]
18278
18804
  * @param {boolean} [unreadCountOnly]
18279
18805
  * @param {number} [page]
@@ -18329,6 +18855,293 @@ var NotificationsApi = /** @class */ (function (_super) {
18329
18855
  return NotificationsApi;
18330
18856
  }(base_1.BaseAPI));
18331
18857
  exports.NotificationsApi = NotificationsApi;
18858
+ /**
18859
+ * ProfilesApi - axios parameter creator
18860
+ * @export
18861
+ */
18862
+ exports.ProfilesApiAxiosParamCreator = function (configuration) {
18863
+ var _this = this;
18864
+ return {
18865
+ /**
18866
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
18867
+ * @summary Change user\'s email on both Identity and Api.
18868
+ * @param {ChangeEmailCommand} [changeEmailCommand]
18869
+ * @param {*} [options] Override http request option.
18870
+ * @throws {RequiredError}
18871
+ */
18872
+ apiV1ProfilesChangeemailPost: function (changeEmailCommand, options) {
18873
+ if (options === void 0) { options = {}; }
18874
+ return __awaiter(_this, void 0, void 0, function () {
18875
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18876
+ return __generator(this, function (_a) {
18877
+ switch (_a.label) {
18878
+ case 0:
18879
+ localVarPath = "/api/v1/profiles/changeemail";
18880
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18881
+ if (configuration) {
18882
+ baseOptions = configuration.baseOptions;
18883
+ }
18884
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
18885
+ localVarHeaderParameter = {};
18886
+ localVarQueryParameter = {};
18887
+ // authentication oauth2 required
18888
+ // oauth required
18889
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18890
+ case 1:
18891
+ // authentication oauth2 required
18892
+ // oauth required
18893
+ _a.sent();
18894
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18895
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18896
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18897
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18898
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(changeEmailCommand, localVarRequestOptions, configuration);
18899
+ return [2 /*return*/, {
18900
+ url: common_1.toPathString(localVarUrlObj),
18901
+ options: localVarRequestOptions,
18902
+ }];
18903
+ }
18904
+ });
18905
+ });
18906
+ },
18907
+ /**
18908
+ *
18909
+ * @summary Configm email.
18910
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
18911
+ * @param {*} [options] Override http request option.
18912
+ * @throws {RequiredError}
18913
+ */
18914
+ apiV1ProfilesConfirmemailPost: function (confirmEmailCommand, options) {
18915
+ if (options === void 0) { options = {}; }
18916
+ return __awaiter(_this, void 0, void 0, function () {
18917
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18918
+ return __generator(this, function (_a) {
18919
+ switch (_a.label) {
18920
+ case 0:
18921
+ localVarPath = "/api/v1/profiles/confirmemail";
18922
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18923
+ if (configuration) {
18924
+ baseOptions = configuration.baseOptions;
18925
+ }
18926
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
18927
+ localVarHeaderParameter = {};
18928
+ localVarQueryParameter = {};
18929
+ // authentication oauth2 required
18930
+ // oauth required
18931
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18932
+ case 1:
18933
+ // authentication oauth2 required
18934
+ // oauth required
18935
+ _a.sent();
18936
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18937
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18938
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18939
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18940
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(confirmEmailCommand, localVarRequestOptions, configuration);
18941
+ return [2 /*return*/, {
18942
+ url: common_1.toPathString(localVarUrlObj),
18943
+ options: localVarRequestOptions,
18944
+ }];
18945
+ }
18946
+ });
18947
+ });
18948
+ },
18949
+ /**
18950
+ *
18951
+ * @summary Get Profile.
18952
+ * @param {*} [options] Override http request option.
18953
+ * @throws {RequiredError}
18954
+ */
18955
+ apiV1ProfilesGet: function (options) {
18956
+ if (options === void 0) { options = {}; }
18957
+ return __awaiter(_this, void 0, void 0, function () {
18958
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
18959
+ return __generator(this, function (_a) {
18960
+ switch (_a.label) {
18961
+ case 0:
18962
+ localVarPath = "/api/v1/profiles";
18963
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18964
+ if (configuration) {
18965
+ baseOptions = configuration.baseOptions;
18966
+ }
18967
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
18968
+ localVarHeaderParameter = {};
18969
+ localVarQueryParameter = {};
18970
+ // authentication oauth2 required
18971
+ // oauth required
18972
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
18973
+ case 1:
18974
+ // authentication oauth2 required
18975
+ // oauth required
18976
+ _a.sent();
18977
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
18978
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18979
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18980
+ return [2 /*return*/, {
18981
+ url: common_1.toPathString(localVarUrlObj),
18982
+ options: localVarRequestOptions,
18983
+ }];
18984
+ }
18985
+ });
18986
+ });
18987
+ },
18988
+ };
18989
+ };
18990
+ /**
18991
+ * ProfilesApi - functional programming interface
18992
+ * @export
18993
+ */
18994
+ exports.ProfilesApiFp = function (configuration) {
18995
+ var localVarAxiosParamCreator = exports.ProfilesApiAxiosParamCreator(configuration);
18996
+ return {
18997
+ /**
18998
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
18999
+ * @summary Change user\'s email on both Identity and Api.
19000
+ * @param {ChangeEmailCommand} [changeEmailCommand]
19001
+ * @param {*} [options] Override http request option.
19002
+ * @throws {RequiredError}
19003
+ */
19004
+ apiV1ProfilesChangeemailPost: function (changeEmailCommand, options) {
19005
+ return __awaiter(this, void 0, void 0, function () {
19006
+ var localVarAxiosArgs;
19007
+ return __generator(this, function (_a) {
19008
+ switch (_a.label) {
19009
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ProfilesChangeemailPost(changeEmailCommand, options)];
19010
+ case 1:
19011
+ localVarAxiosArgs = _a.sent();
19012
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19013
+ }
19014
+ });
19015
+ });
19016
+ },
19017
+ /**
19018
+ *
19019
+ * @summary Configm email.
19020
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
19021
+ * @param {*} [options] Override http request option.
19022
+ * @throws {RequiredError}
19023
+ */
19024
+ apiV1ProfilesConfirmemailPost: function (confirmEmailCommand, options) {
19025
+ return __awaiter(this, void 0, void 0, function () {
19026
+ var localVarAxiosArgs;
19027
+ return __generator(this, function (_a) {
19028
+ switch (_a.label) {
19029
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ProfilesConfirmemailPost(confirmEmailCommand, options)];
19030
+ case 1:
19031
+ localVarAxiosArgs = _a.sent();
19032
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19033
+ }
19034
+ });
19035
+ });
19036
+ },
19037
+ /**
19038
+ *
19039
+ * @summary Get Profile.
19040
+ * @param {*} [options] Override http request option.
19041
+ * @throws {RequiredError}
19042
+ */
19043
+ apiV1ProfilesGet: function (options) {
19044
+ return __awaiter(this, void 0, void 0, function () {
19045
+ var localVarAxiosArgs;
19046
+ return __generator(this, function (_a) {
19047
+ switch (_a.label) {
19048
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ProfilesGet(options)];
19049
+ case 1:
19050
+ localVarAxiosArgs = _a.sent();
19051
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19052
+ }
19053
+ });
19054
+ });
19055
+ },
19056
+ };
19057
+ };
19058
+ /**
19059
+ * ProfilesApi - factory interface
19060
+ * @export
19061
+ */
19062
+ exports.ProfilesApiFactory = function (configuration, basePath, axios) {
19063
+ var localVarFp = exports.ProfilesApiFp(configuration);
19064
+ return {
19065
+ /**
19066
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
19067
+ * @summary Change user\'s email on both Identity and Api.
19068
+ * @param {ChangeEmailCommand} [changeEmailCommand]
19069
+ * @param {*} [options] Override http request option.
19070
+ * @throws {RequiredError}
19071
+ */
19072
+ apiV1ProfilesChangeemailPost: function (changeEmailCommand, options) {
19073
+ return localVarFp.apiV1ProfilesChangeemailPost(changeEmailCommand, options).then(function (request) { return request(axios, basePath); });
19074
+ },
19075
+ /**
19076
+ *
19077
+ * @summary Configm email.
19078
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
19079
+ * @param {*} [options] Override http request option.
19080
+ * @throws {RequiredError}
19081
+ */
19082
+ apiV1ProfilesConfirmemailPost: function (confirmEmailCommand, options) {
19083
+ return localVarFp.apiV1ProfilesConfirmemailPost(confirmEmailCommand, options).then(function (request) { return request(axios, basePath); });
19084
+ },
19085
+ /**
19086
+ *
19087
+ * @summary Get Profile.
19088
+ * @param {*} [options] Override http request option.
19089
+ * @throws {RequiredError}
19090
+ */
19091
+ apiV1ProfilesGet: function (options) {
19092
+ return localVarFp.apiV1ProfilesGet(options).then(function (request) { return request(axios, basePath); });
19093
+ },
19094
+ };
19095
+ };
19096
+ /**
19097
+ * ProfilesApi - object-oriented interface
19098
+ * @export
19099
+ * @class ProfilesApi
19100
+ * @extends {BaseAPI}
19101
+ */
19102
+ var ProfilesApi = /** @class */ (function (_super) {
19103
+ __extends(ProfilesApi, _super);
19104
+ function ProfilesApi() {
19105
+ return _super !== null && _super.apply(this, arguments) || this;
19106
+ }
19107
+ /**
19108
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
19109
+ * @summary Change user\'s email on both Identity and Api.
19110
+ * @param {ChangeEmailCommand} [changeEmailCommand]
19111
+ * @param {*} [options] Override http request option.
19112
+ * @throws {RequiredError}
19113
+ * @memberof ProfilesApi
19114
+ */
19115
+ ProfilesApi.prototype.apiV1ProfilesChangeemailPost = function (changeEmailCommand, options) {
19116
+ var _this = this;
19117
+ return exports.ProfilesApiFp(this.configuration).apiV1ProfilesChangeemailPost(changeEmailCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
19118
+ };
19119
+ /**
19120
+ *
19121
+ * @summary Configm email.
19122
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
19123
+ * @param {*} [options] Override http request option.
19124
+ * @throws {RequiredError}
19125
+ * @memberof ProfilesApi
19126
+ */
19127
+ ProfilesApi.prototype.apiV1ProfilesConfirmemailPost = function (confirmEmailCommand, options) {
19128
+ var _this = this;
19129
+ return exports.ProfilesApiFp(this.configuration).apiV1ProfilesConfirmemailPost(confirmEmailCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
19130
+ };
19131
+ /**
19132
+ *
19133
+ * @summary Get Profile.
19134
+ * @param {*} [options] Override http request option.
19135
+ * @throws {RequiredError}
19136
+ * @memberof ProfilesApi
19137
+ */
19138
+ ProfilesApi.prototype.apiV1ProfilesGet = function (options) {
19139
+ var _this = this;
19140
+ return exports.ProfilesApiFp(this.configuration).apiV1ProfilesGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
19141
+ };
19142
+ return ProfilesApi;
19143
+ }(base_1.BaseAPI));
19144
+ exports.ProfilesApi = ProfilesApi;
18332
19145
  /**
18333
19146
  * ServicesApi - axios parameter creator
18334
19147
  * @export