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

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
@@ -19406,6 +19406,67 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
19406
19406
  });
19407
19407
  });
19408
19408
  },
19409
+ /**
19410
+ *
19411
+ * @summary Get all manager affiliations.
19412
+ * @param {string} managerId
19413
+ * @param {string} [hospitalName]
19414
+ * @param {number} [page]
19415
+ * @param {number} [limit]
19416
+ * @param {Date} [lastRetrieved]
19417
+ * @param {*} [options] Override http request option.
19418
+ * @throws {RequiredError}
19419
+ */
19420
+ apiV1ManagersManagerIdAffiliationsGet: function (managerId, hospitalName, page, limit, lastRetrieved, options) {
19421
+ if (options === void 0) { options = {}; }
19422
+ return __awaiter(_this, void 0, void 0, function () {
19423
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19424
+ return __generator(this, function (_a) {
19425
+ switch (_a.label) {
19426
+ case 0:
19427
+ // verify required parameter 'managerId' is not null or undefined
19428
+ common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsGet', 'managerId', managerId);
19429
+ localVarPath = "/api/v1/managers/{managerId}/affiliations"
19430
+ .replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
19431
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19432
+ if (configuration) {
19433
+ baseOptions = configuration.baseOptions;
19434
+ }
19435
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19436
+ localVarHeaderParameter = {};
19437
+ localVarQueryParameter = {};
19438
+ // authentication oauth2 required
19439
+ // oauth required
19440
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
19441
+ case 1:
19442
+ // authentication oauth2 required
19443
+ // oauth required
19444
+ _a.sent();
19445
+ if (hospitalName !== undefined) {
19446
+ localVarQueryParameter['HospitalName'] = hospitalName;
19447
+ }
19448
+ if (page !== undefined) {
19449
+ localVarQueryParameter['page'] = page;
19450
+ }
19451
+ if (limit !== undefined) {
19452
+ localVarQueryParameter['limit'] = limit;
19453
+ }
19454
+ if (lastRetrieved !== undefined) {
19455
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
19456
+ lastRetrieved.toISOString() :
19457
+ lastRetrieved;
19458
+ }
19459
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
19460
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19461
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19462
+ return [2 /*return*/, {
19463
+ url: common_1.toPathString(localVarUrlObj),
19464
+ options: localVarRequestOptions,
19465
+ }];
19466
+ }
19467
+ });
19468
+ });
19469
+ },
19409
19470
  /**
19410
19471
  *
19411
19472
  * @summary Delete Manager.
@@ -19619,6 +19680,30 @@ exports.ManagersApiFp = function (configuration) {
19619
19680
  });
19620
19681
  });
19621
19682
  },
19683
+ /**
19684
+ *
19685
+ * @summary Get all manager affiliations.
19686
+ * @param {string} managerId
19687
+ * @param {string} [hospitalName]
19688
+ * @param {number} [page]
19689
+ * @param {number} [limit]
19690
+ * @param {Date} [lastRetrieved]
19691
+ * @param {*} [options] Override http request option.
19692
+ * @throws {RequiredError}
19693
+ */
19694
+ apiV1ManagersManagerIdAffiliationsGet: function (managerId, hospitalName, page, limit, lastRetrieved, options) {
19695
+ return __awaiter(this, void 0, void 0, function () {
19696
+ var localVarAxiosArgs;
19697
+ return __generator(this, function (_a) {
19698
+ switch (_a.label) {
19699
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options)];
19700
+ case 1:
19701
+ localVarAxiosArgs = _a.sent();
19702
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
19703
+ }
19704
+ });
19705
+ });
19706
+ },
19622
19707
  /**
19623
19708
  *
19624
19709
  * @summary Delete Manager.
@@ -19729,6 +19814,20 @@ exports.ManagersApiFactory = function (configuration, basePath, axios) {
19729
19814
  apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
19730
19815
  return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
19731
19816
  },
19817
+ /**
19818
+ *
19819
+ * @summary Get all manager affiliations.
19820
+ * @param {string} managerId
19821
+ * @param {string} [hospitalName]
19822
+ * @param {number} [page]
19823
+ * @param {number} [limit]
19824
+ * @param {Date} [lastRetrieved]
19825
+ * @param {*} [options] Override http request option.
19826
+ * @throws {RequiredError}
19827
+ */
19828
+ apiV1ManagersManagerIdAffiliationsGet: function (managerId, hospitalName, page, limit, lastRetrieved, options) {
19829
+ return localVarFp.apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
19830
+ },
19732
19831
  /**
19733
19832
  *
19734
19833
  * @summary Delete Manager.
@@ -19805,6 +19904,22 @@ var ManagersApi = /** @class */ (function (_super) {
19805
19904
  var _this = this;
19806
19905
  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
19906
  };
19907
+ /**
19908
+ *
19909
+ * @summary Get all manager affiliations.
19910
+ * @param {string} managerId
19911
+ * @param {string} [hospitalName]
19912
+ * @param {number} [page]
19913
+ * @param {number} [limit]
19914
+ * @param {Date} [lastRetrieved]
19915
+ * @param {*} [options] Override http request option.
19916
+ * @throws {RequiredError}
19917
+ * @memberof ManagersApi
19918
+ */
19919
+ ManagersApi.prototype.apiV1ManagersManagerIdAffiliationsGet = function (managerId, hospitalName, page, limit, lastRetrieved, options) {
19920
+ var _this = this;
19921
+ return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
19922
+ };
19808
19923
  /**
19809
19924
  *
19810
19925
  * @summary Delete Manager.
@@ -22231,6 +22346,48 @@ exports.ProfilesApiAxiosParamCreator = function (configuration) {
22231
22346
  });
22232
22347
  });
22233
22348
  },
22349
+ /**
22350
+ *
22351
+ * @summary Update Profile.
22352
+ * @param {UpdateProfileCommand} [updateProfileCommand]
22353
+ * @param {*} [options] Override http request option.
22354
+ * @throws {RequiredError}
22355
+ */
22356
+ apiV1ProfilesPut: function (updateProfileCommand, options) {
22357
+ if (options === void 0) { options = {}; }
22358
+ return __awaiter(_this, void 0, void 0, function () {
22359
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
22360
+ return __generator(this, function (_a) {
22361
+ switch (_a.label) {
22362
+ case 0:
22363
+ localVarPath = "/api/v1/profiles";
22364
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
22365
+ if (configuration) {
22366
+ baseOptions = configuration.baseOptions;
22367
+ }
22368
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
22369
+ localVarHeaderParameter = {};
22370
+ localVarQueryParameter = {};
22371
+ // authentication oauth2 required
22372
+ // oauth required
22373
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
22374
+ case 1:
22375
+ // authentication oauth2 required
22376
+ // oauth required
22377
+ _a.sent();
22378
+ localVarHeaderParameter['Content-Type'] = 'application/json';
22379
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
22380
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22381
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
22382
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateProfileCommand, localVarRequestOptions, configuration);
22383
+ return [2 /*return*/, {
22384
+ url: common_1.toPathString(localVarUrlObj),
22385
+ options: localVarRequestOptions,
22386
+ }];
22387
+ }
22388
+ });
22389
+ });
22390
+ },
22234
22391
  };
22235
22392
  };
22236
22393
  /**
@@ -22299,6 +22456,26 @@ exports.ProfilesApiFp = function (configuration) {
22299
22456
  });
22300
22457
  });
22301
22458
  },
22459
+ /**
22460
+ *
22461
+ * @summary Update Profile.
22462
+ * @param {UpdateProfileCommand} [updateProfileCommand]
22463
+ * @param {*} [options] Override http request option.
22464
+ * @throws {RequiredError}
22465
+ */
22466
+ apiV1ProfilesPut: function (updateProfileCommand, options) {
22467
+ return __awaiter(this, void 0, void 0, function () {
22468
+ var localVarAxiosArgs;
22469
+ return __generator(this, function (_a) {
22470
+ switch (_a.label) {
22471
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ProfilesPut(updateProfileCommand, options)];
22472
+ case 1:
22473
+ localVarAxiosArgs = _a.sent();
22474
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
22475
+ }
22476
+ });
22477
+ });
22478
+ },
22302
22479
  };
22303
22480
  };
22304
22481
  /**
@@ -22337,6 +22514,16 @@ exports.ProfilesApiFactory = function (configuration, basePath, axios) {
22337
22514
  apiV1ProfilesGet: function (options) {
22338
22515
  return localVarFp.apiV1ProfilesGet(options).then(function (request) { return request(axios, basePath); });
22339
22516
  },
22517
+ /**
22518
+ *
22519
+ * @summary Update Profile.
22520
+ * @param {UpdateProfileCommand} [updateProfileCommand]
22521
+ * @param {*} [options] Override http request option.
22522
+ * @throws {RequiredError}
22523
+ */
22524
+ apiV1ProfilesPut: function (updateProfileCommand, options) {
22525
+ return localVarFp.apiV1ProfilesPut(updateProfileCommand, options).then(function (request) { return request(axios, basePath); });
22526
+ },
22340
22527
  };
22341
22528
  };
22342
22529
  /**
@@ -22385,6 +22572,18 @@ var ProfilesApi = /** @class */ (function (_super) {
22385
22572
  var _this = this;
22386
22573
  return exports.ProfilesApiFp(this.configuration).apiV1ProfilesGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
22387
22574
  };
22575
+ /**
22576
+ *
22577
+ * @summary Update Profile.
22578
+ * @param {UpdateProfileCommand} [updateProfileCommand]
22579
+ * @param {*} [options] Override http request option.
22580
+ * @throws {RequiredError}
22581
+ * @memberof ProfilesApi
22582
+ */
22583
+ ProfilesApi.prototype.apiV1ProfilesPut = function (updateProfileCommand, options) {
22584
+ var _this = this;
22585
+ return exports.ProfilesApiFp(this.configuration).apiV1ProfilesPut(updateProfileCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
22586
+ };
22388
22587
  return ProfilesApi;
22389
22588
  }(base_1.BaseAPI));
22390
22589
  exports.ProfilesApi = ProfilesApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/api.ts CHANGED
@@ -9622,6 +9622,50 @@ export interface ManagerAffiliation {
9622
9622
  */
9623
9623
  'hospital'?: Hospital;
9624
9624
  }
9625
+ /**
9626
+ *
9627
+ * @export
9628
+ * @interface ManagerAffiliationItemModel
9629
+ */
9630
+ export interface ManagerAffiliationItemModel {
9631
+ /**
9632
+ *
9633
+ * @type {string}
9634
+ * @memberof ManagerAffiliationItemModel
9635
+ */
9636
+ 'hospitalId'?: string;
9637
+ /**
9638
+ *
9639
+ * @type {string}
9640
+ * @memberof ManagerAffiliationItemModel
9641
+ */
9642
+ 'hospitalName'?: string | null;
9643
+ /**
9644
+ *
9645
+ * @type {string}
9646
+ * @memberof ManagerAffiliationItemModel
9647
+ */
9648
+ 'hospitalSlug'?: string | null;
9649
+ }
9650
+ /**
9651
+ *
9652
+ * @export
9653
+ * @interface ManagerAffiliationsModel
9654
+ */
9655
+ export interface ManagerAffiliationsModel {
9656
+ /**
9657
+ *
9658
+ * @type {Array<ManagerAffiliationItemModel>}
9659
+ * @memberof ManagerAffiliationsModel
9660
+ */
9661
+ 'items'?: Array<ManagerAffiliationItemModel> | null;
9662
+ /**
9663
+ *
9664
+ * @type {PagedListMetaData}
9665
+ * @memberof ManagerAffiliationsModel
9666
+ */
9667
+ 'metaData'?: PagedListMetaData;
9668
+ }
9625
9669
  /**
9626
9670
  *
9627
9671
  * @export
@@ -13948,6 +13992,67 @@ export interface UpdatePlanHospitalCommand {
13948
13992
  */
13949
13993
  'order'?: number;
13950
13994
  }
13995
+ /**
13996
+ *
13997
+ * @export
13998
+ * @interface UpdateProfileCommand
13999
+ */
14000
+ export interface UpdateProfileCommand {
14001
+ /**
14002
+ *
14003
+ * @type {string}
14004
+ * @memberof UpdateProfileCommand
14005
+ */
14006
+ 'firstName'?: string | null;
14007
+ /**
14008
+ *
14009
+ * @type {string}
14010
+ * @memberof UpdateProfileCommand
14011
+ */
14012
+ 'lastName'?: string | null;
14013
+ /**
14014
+ *
14015
+ * @type {string}
14016
+ * @memberof UpdateProfileCommand
14017
+ */
14018
+ 'phone'?: string | null;
14019
+ /**
14020
+ *
14021
+ * @type {string}
14022
+ * @memberof UpdateProfileCommand
14023
+ */
14024
+ 'photo'?: string | null;
14025
+ /**
14026
+ *
14027
+ * @type {string}
14028
+ * @memberof UpdateProfileCommand
14029
+ */
14030
+ 'photoThumbnail'?: string | null;
14031
+ /**
14032
+ *
14033
+ * @type {Gender}
14034
+ * @memberof UpdateProfileCommand
14035
+ */
14036
+ 'gender'?: Gender;
14037
+ /**
14038
+ *
14039
+ * @type {Date}
14040
+ * @memberof UpdateProfileCommand
14041
+ */
14042
+ 'dateOfBirth'?: Date | null;
14043
+ /**
14044
+ *
14045
+ * @type {Array<UserLanguageModel>}
14046
+ * @memberof UpdateProfileCommand
14047
+ */
14048
+ 'languages'?: Array<UserLanguageModel> | null;
14049
+ /**
14050
+ *
14051
+ * @type {Array<UserLocationModel>}
14052
+ * @memberof UpdateProfileCommand
14053
+ */
14054
+ 'locations'?: Array<UserLocationModel> | null;
14055
+ }
13951
14056
  /**
13952
14057
  *
13953
14058
  * @export
@@ -31483,6 +31588,66 @@ export const ManagersApiAxiosParamCreator = function (configuration?: Configurat
31483
31588
 
31484
31589
 
31485
31590
 
31591
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31592
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31593
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31594
+
31595
+ return {
31596
+ url: toPathString(localVarUrlObj),
31597
+ options: localVarRequestOptions,
31598
+ };
31599
+ },
31600
+ /**
31601
+ *
31602
+ * @summary Get all manager affiliations.
31603
+ * @param {string} managerId
31604
+ * @param {string} [hospitalName]
31605
+ * @param {number} [page]
31606
+ * @param {number} [limit]
31607
+ * @param {Date} [lastRetrieved]
31608
+ * @param {*} [options] Override http request option.
31609
+ * @throws {RequiredError}
31610
+ */
31611
+ apiV1ManagersManagerIdAffiliationsGet: async (managerId: string, hospitalName?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
31612
+ // verify required parameter 'managerId' is not null or undefined
31613
+ assertParamExists('apiV1ManagersManagerIdAffiliationsGet', 'managerId', managerId)
31614
+ const localVarPath = `/api/v1/managers/{managerId}/affiliations`
31615
+ .replace(`{${"managerId"}}`, encodeURIComponent(String(managerId)));
31616
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31617
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31618
+ let baseOptions;
31619
+ if (configuration) {
31620
+ baseOptions = configuration.baseOptions;
31621
+ }
31622
+
31623
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
31624
+ const localVarHeaderParameter = {} as any;
31625
+ const localVarQueryParameter = {} as any;
31626
+
31627
+ // authentication oauth2 required
31628
+ // oauth required
31629
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
31630
+
31631
+ if (hospitalName !== undefined) {
31632
+ localVarQueryParameter['HospitalName'] = hospitalName;
31633
+ }
31634
+
31635
+ if (page !== undefined) {
31636
+ localVarQueryParameter['page'] = page;
31637
+ }
31638
+
31639
+ if (limit !== undefined) {
31640
+ localVarQueryParameter['limit'] = limit;
31641
+ }
31642
+
31643
+ if (lastRetrieved !== undefined) {
31644
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
31645
+ (lastRetrieved as any).toISOString() :
31646
+ lastRetrieved;
31647
+ }
31648
+
31649
+
31650
+
31486
31651
  setSearchParams(localVarUrlObj, localVarQueryParameter);
31487
31652
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31488
31653
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -31679,6 +31844,21 @@ export const ManagersApiFp = function(configuration?: Configuration) {
31679
31844
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options);
31680
31845
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
31681
31846
  },
31847
+ /**
31848
+ *
31849
+ * @summary Get all manager affiliations.
31850
+ * @param {string} managerId
31851
+ * @param {string} [hospitalName]
31852
+ * @param {number} [page]
31853
+ * @param {number} [limit]
31854
+ * @param {Date} [lastRetrieved]
31855
+ * @param {*} [options] Override http request option.
31856
+ * @throws {RequiredError}
31857
+ */
31858
+ async apiV1ManagersManagerIdAffiliationsGet(managerId: string, hospitalName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagerAffiliationsModel>> {
31859
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options);
31860
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
31861
+ },
31682
31862
  /**
31683
31863
  *
31684
31864
  * @summary Delete Manager.
@@ -31754,6 +31934,20 @@ export const ManagersApiFactory = function (configuration?: Configuration, baseP
31754
31934
  apiV1ManagersGet(hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ManagersModel> {
31755
31935
  return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
31756
31936
  },
31937
+ /**
31938
+ *
31939
+ * @summary Get all manager affiliations.
31940
+ * @param {string} managerId
31941
+ * @param {string} [hospitalName]
31942
+ * @param {number} [page]
31943
+ * @param {number} [limit]
31944
+ * @param {Date} [lastRetrieved]
31945
+ * @param {*} [options] Override http request option.
31946
+ * @throws {RequiredError}
31947
+ */
31948
+ apiV1ManagersManagerIdAffiliationsGet(managerId: string, hospitalName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ManagerAffiliationsModel> {
31949
+ return localVarFp.apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
31950
+ },
31757
31951
  /**
31758
31952
  *
31759
31953
  * @summary Delete Manager.
@@ -31827,6 +32021,22 @@ export class ManagersApi extends BaseAPI {
31827
32021
  return ManagersApiFp(this.configuration).apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
31828
32022
  }
31829
32023
 
32024
+ /**
32025
+ *
32026
+ * @summary Get all manager affiliations.
32027
+ * @param {string} managerId
32028
+ * @param {string} [hospitalName]
32029
+ * @param {number} [page]
32030
+ * @param {number} [limit]
32031
+ * @param {Date} [lastRetrieved]
32032
+ * @param {*} [options] Override http request option.
32033
+ * @throws {RequiredError}
32034
+ * @memberof ManagersApi
32035
+ */
32036
+ public apiV1ManagersManagerIdAffiliationsGet(managerId: string, hospitalName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
32037
+ return ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
32038
+ }
32039
+
31830
32040
  /**
31831
32041
  *
31832
32042
  * @summary Delete Manager.
@@ -33972,6 +34182,44 @@ export const ProfilesApiAxiosParamCreator = function (configuration?: Configurat
33972
34182
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33973
34183
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33974
34184
 
34185
+ return {
34186
+ url: toPathString(localVarUrlObj),
34187
+ options: localVarRequestOptions,
34188
+ };
34189
+ },
34190
+ /**
34191
+ *
34192
+ * @summary Update Profile.
34193
+ * @param {UpdateProfileCommand} [updateProfileCommand]
34194
+ * @param {*} [options] Override http request option.
34195
+ * @throws {RequiredError}
34196
+ */
34197
+ apiV1ProfilesPut: async (updateProfileCommand?: UpdateProfileCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34198
+ const localVarPath = `/api/v1/profiles`;
34199
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34200
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34201
+ let baseOptions;
34202
+ if (configuration) {
34203
+ baseOptions = configuration.baseOptions;
34204
+ }
34205
+
34206
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
34207
+ const localVarHeaderParameter = {} as any;
34208
+ const localVarQueryParameter = {} as any;
34209
+
34210
+ // authentication oauth2 required
34211
+ // oauth required
34212
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
34213
+
34214
+
34215
+
34216
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34217
+
34218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34220
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34221
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProfileCommand, localVarRequestOptions, configuration)
34222
+
33975
34223
  return {
33976
34224
  url: toPathString(localVarUrlObj),
33977
34225
  options: localVarRequestOptions,
@@ -34019,6 +34267,17 @@ export const ProfilesApiFp = function(configuration?: Configuration) {
34019
34267
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ProfilesGet(options);
34020
34268
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34021
34269
  },
34270
+ /**
34271
+ *
34272
+ * @summary Update Profile.
34273
+ * @param {UpdateProfileCommand} [updateProfileCommand]
34274
+ * @param {*} [options] Override http request option.
34275
+ * @throws {RequiredError}
34276
+ */
34277
+ async apiV1ProfilesPut(updateProfileCommand?: UpdateProfileCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserModel>> {
34278
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ProfilesPut(updateProfileCommand, options);
34279
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34280
+ },
34022
34281
  }
34023
34282
  };
34024
34283
 
@@ -34058,6 +34317,16 @@ export const ProfilesApiFactory = function (configuration?: Configuration, baseP
34058
34317
  apiV1ProfilesGet(options?: any): AxiosPromise<UserModel> {
34059
34318
  return localVarFp.apiV1ProfilesGet(options).then((request) => request(axios, basePath));
34060
34319
  },
34320
+ /**
34321
+ *
34322
+ * @summary Update Profile.
34323
+ * @param {UpdateProfileCommand} [updateProfileCommand]
34324
+ * @param {*} [options] Override http request option.
34325
+ * @throws {RequiredError}
34326
+ */
34327
+ apiV1ProfilesPut(updateProfileCommand?: UpdateProfileCommand, options?: any): AxiosPromise<UserModel> {
34328
+ return localVarFp.apiV1ProfilesPut(updateProfileCommand, options).then((request) => request(axios, basePath));
34329
+ },
34061
34330
  };
34062
34331
  };
34063
34332
 
@@ -34102,6 +34371,18 @@ export class ProfilesApi extends BaseAPI {
34102
34371
  public apiV1ProfilesGet(options?: AxiosRequestConfig) {
34103
34372
  return ProfilesApiFp(this.configuration).apiV1ProfilesGet(options).then((request) => request(this.axios, this.basePath));
34104
34373
  }
34374
+
34375
+ /**
34376
+ *
34377
+ * @summary Update Profile.
34378
+ * @param {UpdateProfileCommand} [updateProfileCommand]
34379
+ * @param {*} [options] Override http request option.
34380
+ * @throws {RequiredError}
34381
+ * @memberof ProfilesApi
34382
+ */
34383
+ public apiV1ProfilesPut(updateProfileCommand?: UpdateProfileCommand, options?: AxiosRequestConfig) {
34384
+ return ProfilesApiFp(this.configuration).apiV1ProfilesPut(updateProfileCommand, options).then((request) => request(this.axios, this.basePath));
34385
+ }
34105
34386
  }
34106
34387
 
34107
34388