ch-admin-api-client-typescript 2.2.8 → 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/src/api.ts CHANGED
@@ -1652,6 +1652,19 @@ export interface BookingsModel {
1652
1652
  */
1653
1653
  'metaData'?: PagedListMetaData;
1654
1654
  }
1655
+ /**
1656
+ *
1657
+ * @export
1658
+ * @interface ChangeEmailCommand
1659
+ */
1660
+ export interface ChangeEmailCommand {
1661
+ /**
1662
+ *
1663
+ * @type {string}
1664
+ * @memberof ChangeEmailCommand
1665
+ */
1666
+ 'email'?: string | null;
1667
+ }
1655
1668
  /**
1656
1669
  *
1657
1670
  * @export
@@ -1825,6 +1838,19 @@ export interface CommunicationUserTokenModel {
1825
1838
  */
1826
1839
  'gateway'?: string | null;
1827
1840
  }
1841
+ /**
1842
+ *
1843
+ * @export
1844
+ * @interface ConfirmEmailCommand
1845
+ */
1846
+ export interface ConfirmEmailCommand {
1847
+ /**
1848
+ *
1849
+ * @type {string}
1850
+ * @memberof ConfirmEmailCommand
1851
+ */
1852
+ 'code'?: string | null;
1853
+ }
1828
1854
  /**
1829
1855
  *
1830
1856
  * @export
@@ -4085,6 +4111,91 @@ export interface CreateHospitalSpecialtyCommand {
4085
4111
  */
4086
4112
  'order'?: number;
4087
4113
  }
4114
+ /**
4115
+ *
4116
+ * @export
4117
+ * @interface CreateManagerCommand
4118
+ */
4119
+ export interface CreateManagerCommand {
4120
+ /**
4121
+ *
4122
+ * @type {string}
4123
+ * @memberof CreateManagerCommand
4124
+ */
4125
+ 'firstName'?: string | null;
4126
+ /**
4127
+ *
4128
+ * @type {string}
4129
+ * @memberof CreateManagerCommand
4130
+ */
4131
+ 'lastName'?: string | null;
4132
+ /**
4133
+ *
4134
+ * @type {string}
4135
+ * @memberof CreateManagerCommand
4136
+ */
4137
+ 'phone'?: string | null;
4138
+ /**
4139
+ *
4140
+ * @type {string}
4141
+ * @memberof CreateManagerCommand
4142
+ */
4143
+ 'photo'?: string | null;
4144
+ /**
4145
+ *
4146
+ * @type {string}
4147
+ * @memberof CreateManagerCommand
4148
+ */
4149
+ 'photoThumbnail'?: string | null;
4150
+ /**
4151
+ *
4152
+ * @type {Gender}
4153
+ * @memberof CreateManagerCommand
4154
+ */
4155
+ 'gender'?: Gender;
4156
+ /**
4157
+ *
4158
+ * @type {Date}
4159
+ * @memberof CreateManagerCommand
4160
+ */
4161
+ 'dateOfBirth'?: Date | null;
4162
+ /**
4163
+ *
4164
+ * @type {Array<MediaModel>}
4165
+ * @memberof CreateManagerCommand
4166
+ */
4167
+ 'medias'?: Array<MediaModel> | null;
4168
+ /**
4169
+ *
4170
+ * @type {Array<UserLanguageModel>}
4171
+ * @memberof CreateManagerCommand
4172
+ */
4173
+ 'languages'?: Array<UserLanguageModel> | null;
4174
+ /**
4175
+ *
4176
+ * @type {Array<UserLocationModel>}
4177
+ * @memberof CreateManagerCommand
4178
+ */
4179
+ 'locations'?: Array<UserLocationModel> | null;
4180
+ /**
4181
+ *
4182
+ * @type {string}
4183
+ * @memberof CreateManagerCommand
4184
+ */
4185
+ 'userName'?: string | null;
4186
+ /**
4187
+ *
4188
+ * @type {string}
4189
+ * @memberof CreateManagerCommand
4190
+ */
4191
+ 'email'?: string | null;
4192
+ /**
4193
+ *
4194
+ * @type {string}
4195
+ * @memberof CreateManagerCommand
4196
+ */
4197
+ 'hospitalId'?: string;
4198
+ }
4088
4199
  /**
4089
4200
  *
4090
4201
  * @export
@@ -8744,6 +8855,207 @@ export interface ManagerAffiliation {
8744
8855
  */
8745
8856
  'hospital'?: Hospital;
8746
8857
  }
8858
+ /**
8859
+ *
8860
+ * @export
8861
+ * @interface ManagerAffiliationModel
8862
+ */
8863
+ export interface ManagerAffiliationModel {
8864
+ /**
8865
+ *
8866
+ * @type {string}
8867
+ * @memberof ManagerAffiliationModel
8868
+ */
8869
+ 'hospitalId'?: string;
8870
+ /**
8871
+ *
8872
+ * @type {string}
8873
+ * @memberof ManagerAffiliationModel
8874
+ */
8875
+ 'hospitalName'?: string | null;
8876
+ /**
8877
+ *
8878
+ * @type {string}
8879
+ * @memberof ManagerAffiliationModel
8880
+ */
8881
+ 'hospitalSlug'?: string | null;
8882
+ /**
8883
+ *
8884
+ * @type {string}
8885
+ * @memberof ManagerAffiliationModel
8886
+ */
8887
+ 'countryId'?: string;
8888
+ /**
8889
+ *
8890
+ * @type {string}
8891
+ * @memberof ManagerAffiliationModel
8892
+ */
8893
+ 'countryName'?: string | null;
8894
+ /**
8895
+ *
8896
+ * @type {string}
8897
+ * @memberof ManagerAffiliationModel
8898
+ */
8899
+ 'stateName'?: string | null;
8900
+ /**
8901
+ *
8902
+ * @type {string}
8903
+ * @memberof ManagerAffiliationModel
8904
+ */
8905
+ 'cityName'?: string | null;
8906
+ /**
8907
+ *
8908
+ * @type {string}
8909
+ * @memberof ManagerAffiliationModel
8910
+ */
8911
+ 'managerId'?: string;
8912
+ /**
8913
+ *
8914
+ * @type {string}
8915
+ * @memberof ManagerAffiliationModel
8916
+ */
8917
+ 'managerName'?: string | null;
8918
+ }
8919
+ /**
8920
+ *
8921
+ * @export
8922
+ * @interface ManagerModel
8923
+ */
8924
+ export interface ManagerModel {
8925
+ /**
8926
+ *
8927
+ * @type {string}
8928
+ * @memberof ManagerModel
8929
+ */
8930
+ 'id'?: string;
8931
+ /**
8932
+ *
8933
+ * @type {string}
8934
+ * @memberof ManagerModel
8935
+ */
8936
+ 'userName'?: string | null;
8937
+ /**
8938
+ *
8939
+ * @type {string}
8940
+ * @memberof ManagerModel
8941
+ */
8942
+ 'firstName'?: string | null;
8943
+ /**
8944
+ *
8945
+ * @type {string}
8946
+ * @memberof ManagerModel
8947
+ */
8948
+ 'lastName'?: string | null;
8949
+ /**
8950
+ *
8951
+ * @type {string}
8952
+ * @memberof ManagerModel
8953
+ */
8954
+ 'fullname'?: string | null;
8955
+ /**
8956
+ *
8957
+ * @type {string}
8958
+ * @memberof ManagerModel
8959
+ */
8960
+ 'phone'?: string | null;
8961
+ /**
8962
+ *
8963
+ * @type {string}
8964
+ * @memberof ManagerModel
8965
+ */
8966
+ 'email'?: string | null;
8967
+ /**
8968
+ *
8969
+ * @type {string}
8970
+ * @memberof ManagerModel
8971
+ */
8972
+ 'photo'?: string | null;
8973
+ /**
8974
+ *
8975
+ * @type {string}
8976
+ * @memberof ManagerModel
8977
+ */
8978
+ 'photoThumbnail'?: string | null;
8979
+ /**
8980
+ *
8981
+ * @type {Gender}
8982
+ * @memberof ManagerModel
8983
+ */
8984
+ 'gender'?: Gender;
8985
+ /**
8986
+ *
8987
+ * @type {Date}
8988
+ * @memberof ManagerModel
8989
+ */
8990
+ 'dateOfBirth'?: Date | null;
8991
+ /**
8992
+ *
8993
+ * @type {string}
8994
+ * @memberof ManagerModel
8995
+ */
8996
+ 'timeZone'?: string | null;
8997
+ /**
8998
+ *
8999
+ * @type {string}
9000
+ * @memberof ManagerModel
9001
+ */
9002
+ 'communicationUserId'?: string | null;
9003
+ /**
9004
+ *
9005
+ * @type {AuditableEntity}
9006
+ * @memberof ManagerModel
9007
+ */
9008
+ 'auditableEntity'?: AuditableEntity;
9009
+ /**
9010
+ *
9011
+ * @type {string}
9012
+ * @memberof ManagerModel
9013
+ */
9014
+ 'userType'?: string | null;
9015
+ /**
9016
+ *
9017
+ * @type {Array<UserLanguageModel>}
9018
+ * @memberof ManagerModel
9019
+ */
9020
+ 'languages'?: Array<UserLanguageModel> | null;
9021
+ /**
9022
+ *
9023
+ * @type {Array<UserLocationModel>}
9024
+ * @memberof ManagerModel
9025
+ */
9026
+ 'locations'?: Array<UserLocationModel> | null;
9027
+ /**
9028
+ *
9029
+ * @type {string}
9030
+ * @memberof ManagerModel
9031
+ */
9032
+ 'hospitalId'?: string;
9033
+ /**
9034
+ *
9035
+ * @type {Array<ManagerAffiliationModel>}
9036
+ * @memberof ManagerModel
9037
+ */
9038
+ 'affiliations'?: Array<ManagerAffiliationModel> | null;
9039
+ }
9040
+ /**
9041
+ *
9042
+ * @export
9043
+ * @interface ManagersModel
9044
+ */
9045
+ export interface ManagersModel {
9046
+ /**
9047
+ *
9048
+ * @type {Array<UserItemModel>}
9049
+ * @memberof ManagersModel
9050
+ */
9051
+ 'items'?: Array<UserItemModel> | null;
9052
+ /**
9053
+ *
9054
+ * @type {PagedListMetaData}
9055
+ * @memberof ManagersModel
9056
+ */
9057
+ 'metaData'?: PagedListMetaData;
9058
+ }
8747
9059
  /**
8748
9060
  *
8749
9061
  * @export
@@ -11908,15 +12220,76 @@ export interface UpdateHospitalSpecialtyCommand {
11908
12220
  /**
11909
12221
  *
11910
12222
  * @export
11911
- * @interface UpdateMediaCommand
12223
+ * @interface UpdateManagerCommand
11912
12224
  */
11913
- export interface UpdateMediaCommand {
12225
+ export interface UpdateManagerCommand {
11914
12226
  /**
11915
12227
  *
11916
- * @type {MediaType}
11917
- * @memberof UpdateMediaCommand
12228
+ * @type {string}
12229
+ * @memberof UpdateManagerCommand
11918
12230
  */
11919
- 'mediaType'?: MediaType;
12231
+ 'firstName'?: string | null;
12232
+ /**
12233
+ *
12234
+ * @type {string}
12235
+ * @memberof UpdateManagerCommand
12236
+ */
12237
+ 'lastName'?: string | null;
12238
+ /**
12239
+ *
12240
+ * @type {string}
12241
+ * @memberof UpdateManagerCommand
12242
+ */
12243
+ 'phone'?: string | null;
12244
+ /**
12245
+ *
12246
+ * @type {string}
12247
+ * @memberof UpdateManagerCommand
12248
+ */
12249
+ 'photo'?: string | null;
12250
+ /**
12251
+ *
12252
+ * @type {string}
12253
+ * @memberof UpdateManagerCommand
12254
+ */
12255
+ 'photoThumbnail'?: string | null;
12256
+ /**
12257
+ *
12258
+ * @type {Gender}
12259
+ * @memberof UpdateManagerCommand
12260
+ */
12261
+ 'gender'?: Gender;
12262
+ /**
12263
+ *
12264
+ * @type {Date}
12265
+ * @memberof UpdateManagerCommand
12266
+ */
12267
+ 'dateOfBirth'?: Date | null;
12268
+ /**
12269
+ *
12270
+ * @type {Array<UserLanguageModel>}
12271
+ * @memberof UpdateManagerCommand
12272
+ */
12273
+ 'languages'?: Array<UserLanguageModel> | null;
12274
+ /**
12275
+ *
12276
+ * @type {Array<UserLocationModel>}
12277
+ * @memberof UpdateManagerCommand
12278
+ */
12279
+ 'locations'?: Array<UserLocationModel> | null;
12280
+ }
12281
+ /**
12282
+ *
12283
+ * @export
12284
+ * @interface UpdateMediaCommand
12285
+ */
12286
+ export interface UpdateMediaCommand {
12287
+ /**
12288
+ *
12289
+ * @type {MediaType}
12290
+ * @memberof UpdateMediaCommand
12291
+ */
12292
+ 'mediaType'?: MediaType;
11920
12293
  /**
11921
12294
  *
11922
12295
  * @type {string}
@@ -12258,6 +12631,97 @@ export interface User {
12258
12631
  */
12259
12632
  'auditableEntity'?: AuditableEntity;
12260
12633
  }
12634
+ /**
12635
+ *
12636
+ * @export
12637
+ * @interface UserItemModel
12638
+ */
12639
+ export interface UserItemModel {
12640
+ /**
12641
+ *
12642
+ * @type {string}
12643
+ * @memberof UserItemModel
12644
+ */
12645
+ 'id'?: string;
12646
+ /**
12647
+ *
12648
+ * @type {string}
12649
+ * @memberof UserItemModel
12650
+ */
12651
+ 'userName'?: string | null;
12652
+ /**
12653
+ *
12654
+ * @type {string}
12655
+ * @memberof UserItemModel
12656
+ */
12657
+ 'firstName'?: string | null;
12658
+ /**
12659
+ *
12660
+ * @type {string}
12661
+ * @memberof UserItemModel
12662
+ */
12663
+ 'lastName'?: string | null;
12664
+ /**
12665
+ *
12666
+ * @type {string}
12667
+ * @memberof UserItemModel
12668
+ */
12669
+ 'fullname'?: string | null;
12670
+ /**
12671
+ *
12672
+ * @type {string}
12673
+ * @memberof UserItemModel
12674
+ */
12675
+ 'phone'?: string | null;
12676
+ /**
12677
+ *
12678
+ * @type {string}
12679
+ * @memberof UserItemModel
12680
+ */
12681
+ 'email'?: string | null;
12682
+ /**
12683
+ *
12684
+ * @type {string}
12685
+ * @memberof UserItemModel
12686
+ */
12687
+ 'photo'?: string | null;
12688
+ /**
12689
+ *
12690
+ * @type {string}
12691
+ * @memberof UserItemModel
12692
+ */
12693
+ 'photoThumbnail'?: string | null;
12694
+ /**
12695
+ *
12696
+ * @type {Gender}
12697
+ * @memberof UserItemModel
12698
+ */
12699
+ 'gender'?: Gender;
12700
+ /**
12701
+ *
12702
+ * @type {Date}
12703
+ * @memberof UserItemModel
12704
+ */
12705
+ 'dateOfBirth'?: Date | null;
12706
+ /**
12707
+ *
12708
+ * @type {string}
12709
+ * @memberof UserItemModel
12710
+ */
12711
+ 'timeZone'?: string | null;
12712
+ /**
12713
+ *
12714
+ * @type {string}
12715
+ * @memberof UserItemModel
12716
+ */
12717
+ 'communicationUserId'?: string | null;
12718
+ /**
12719
+ *
12720
+ * @type {AuditableEntity}
12721
+ * @memberof UserItemModel
12722
+ */
12723
+ 'auditableEntity'?: AuditableEntity;
12724
+ }
12261
12725
  /**
12262
12726
  *
12263
12727
  * @export
@@ -12429,6 +12893,115 @@ export enum UserLocationType {
12429
12893
  BirthPlace = 'BirthPlace'
12430
12894
  }
12431
12895
 
12896
+ /**
12897
+ *
12898
+ * @export
12899
+ * @interface UserModel
12900
+ */
12901
+ export interface UserModel {
12902
+ /**
12903
+ *
12904
+ * @type {string}
12905
+ * @memberof UserModel
12906
+ */
12907
+ 'id'?: string;
12908
+ /**
12909
+ *
12910
+ * @type {string}
12911
+ * @memberof UserModel
12912
+ */
12913
+ 'userName'?: string | null;
12914
+ /**
12915
+ *
12916
+ * @type {string}
12917
+ * @memberof UserModel
12918
+ */
12919
+ 'firstName'?: string | null;
12920
+ /**
12921
+ *
12922
+ * @type {string}
12923
+ * @memberof UserModel
12924
+ */
12925
+ 'lastName'?: string | null;
12926
+ /**
12927
+ *
12928
+ * @type {string}
12929
+ * @memberof UserModel
12930
+ */
12931
+ 'fullname'?: string | null;
12932
+ /**
12933
+ *
12934
+ * @type {string}
12935
+ * @memberof UserModel
12936
+ */
12937
+ 'phone'?: string | null;
12938
+ /**
12939
+ *
12940
+ * @type {string}
12941
+ * @memberof UserModel
12942
+ */
12943
+ 'email'?: string | null;
12944
+ /**
12945
+ *
12946
+ * @type {string}
12947
+ * @memberof UserModel
12948
+ */
12949
+ 'photo'?: string | null;
12950
+ /**
12951
+ *
12952
+ * @type {string}
12953
+ * @memberof UserModel
12954
+ */
12955
+ 'photoThumbnail'?: string | null;
12956
+ /**
12957
+ *
12958
+ * @type {Gender}
12959
+ * @memberof UserModel
12960
+ */
12961
+ 'gender'?: Gender;
12962
+ /**
12963
+ *
12964
+ * @type {Date}
12965
+ * @memberof UserModel
12966
+ */
12967
+ 'dateOfBirth'?: Date | null;
12968
+ /**
12969
+ *
12970
+ * @type {string}
12971
+ * @memberof UserModel
12972
+ */
12973
+ 'timeZone'?: string | null;
12974
+ /**
12975
+ *
12976
+ * @type {string}
12977
+ * @memberof UserModel
12978
+ */
12979
+ 'communicationUserId'?: string | null;
12980
+ /**
12981
+ *
12982
+ * @type {AuditableEntity}
12983
+ * @memberof UserModel
12984
+ */
12985
+ 'auditableEntity'?: AuditableEntity;
12986
+ /**
12987
+ *
12988
+ * @type {string}
12989
+ * @memberof UserModel
12990
+ */
12991
+ 'userType'?: string | null;
12992
+ /**
12993
+ *
12994
+ * @type {Array<UserLanguageModel>}
12995
+ * @memberof UserModel
12996
+ */
12997
+ 'languages'?: Array<UserLanguageModel> | null;
12998
+ /**
12999
+ *
13000
+ * @type {Array<UserLocationModel>}
13001
+ * @memberof UserModel
13002
+ */
13003
+ 'locations'?: Array<UserLocationModel> | null;
13004
+ }
12432
13005
  /**
12433
13006
  *
12434
13007
  * @export
@@ -28196,20 +28769,29 @@ export class LanguagesApi extends BaseAPI {
28196
28769
 
28197
28770
 
28198
28771
  /**
28199
- * NotificationsApi - axios parameter creator
28772
+ * ManagersApi - axios parameter creator
28200
28773
  * @export
28201
28774
  */
28202
- export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
28775
+ export const ManagersApiAxiosParamCreator = function (configuration?: Configuration) {
28203
28776
  return {
28204
28777
  /**
28205
28778
  *
28206
- * @summary Check notification.
28207
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
28779
+ * @summary Get all Managers.
28780
+ * @param {string} [hospitalId]
28781
+ * @param {string} [id]
28782
+ * @param {string} [fullname]
28783
+ * @param {string} [email]
28784
+ * @param {Gender} [gender]
28785
+ * @param {Date} [dateOfBirth]
28786
+ * @param {Date} [created]
28787
+ * @param {number} [page]
28788
+ * @param {number} [limit]
28789
+ * @param {Date} [lastRetrieved]
28208
28790
  * @param {*} [options] Override http request option.
28209
28791
  * @throws {RequiredError}
28210
28792
  */
28211
- apiV1NotificationsCheckPost: async (checkNotificationsCommand?: CheckNotificationsCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28212
- const localVarPath = `/api/v1/notifications/check`;
28793
+ apiV1ManagersGet: async (hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28794
+ const localVarPath = `/api/v1/managers`;
28213
28795
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28214
28796
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28215
28797
  let baseOptions;
@@ -28217,7 +28799,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
28217
28799
  baseOptions = configuration.baseOptions;
28218
28800
  }
28219
28801
 
28220
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28802
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28221
28803
  const localVarHeaderParameter = {} as any;
28222
28804
  const localVarQueryParameter = {} as any;
28223
28805
 
@@ -28225,19 +28807,489 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
28225
28807
  // oauth required
28226
28808
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
28227
28809
 
28810
+ if (hospitalId !== undefined) {
28811
+ localVarQueryParameter['HospitalId'] = hospitalId;
28812
+ }
28228
28813
 
28229
-
28230
- localVarHeaderParameter['Content-Type'] = 'application/json';
28814
+ if (id !== undefined) {
28815
+ localVarQueryParameter['Id'] = id;
28816
+ }
28231
28817
 
28232
- setSearchParams(localVarUrlObj, localVarQueryParameter);
28233
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28234
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28235
- localVarRequestOptions.data = serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration)
28818
+ if (fullname !== undefined) {
28819
+ localVarQueryParameter['Fullname'] = fullname;
28820
+ }
28236
28821
 
28237
- return {
28238
- url: toPathString(localVarUrlObj),
28239
- options: localVarRequestOptions,
28240
- };
28822
+ if (email !== undefined) {
28823
+ localVarQueryParameter['Email'] = email;
28824
+ }
28825
+
28826
+ if (gender !== undefined) {
28827
+ localVarQueryParameter['Gender'] = gender;
28828
+ }
28829
+
28830
+ if (dateOfBirth !== undefined) {
28831
+ localVarQueryParameter['DateOfBirth'] = (dateOfBirth as any instanceof Date) ?
28832
+ (dateOfBirth as any).toISOString() :
28833
+ dateOfBirth;
28834
+ }
28835
+
28836
+ if (created !== undefined) {
28837
+ localVarQueryParameter['Created'] = (created as any instanceof Date) ?
28838
+ (created as any).toISOString() :
28839
+ created;
28840
+ }
28841
+
28842
+ if (page !== undefined) {
28843
+ localVarQueryParameter['page'] = page;
28844
+ }
28845
+
28846
+ if (limit !== undefined) {
28847
+ localVarQueryParameter['limit'] = limit;
28848
+ }
28849
+
28850
+ if (lastRetrieved !== undefined) {
28851
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
28852
+ (lastRetrieved as any).toISOString() :
28853
+ lastRetrieved;
28854
+ }
28855
+
28856
+
28857
+
28858
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28859
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28860
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28861
+
28862
+ return {
28863
+ url: toPathString(localVarUrlObj),
28864
+ options: localVarRequestOptions,
28865
+ };
28866
+ },
28867
+ /**
28868
+ *
28869
+ * @summary Delete Manager.
28870
+ * @param {string} managerId
28871
+ * @param {*} [options] Override http request option.
28872
+ * @throws {RequiredError}
28873
+ */
28874
+ apiV1ManagersManagerIdDelete: async (managerId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28875
+ // verify required parameter 'managerId' is not null or undefined
28876
+ assertParamExists('apiV1ManagersManagerIdDelete', 'managerId', managerId)
28877
+ const localVarPath = `/api/v1/managers/{managerId}`
28878
+ .replace(`{${"managerId"}}`, encodeURIComponent(String(managerId)));
28879
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28880
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28881
+ let baseOptions;
28882
+ if (configuration) {
28883
+ baseOptions = configuration.baseOptions;
28884
+ }
28885
+
28886
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
28887
+ const localVarHeaderParameter = {} as any;
28888
+ const localVarQueryParameter = {} as any;
28889
+
28890
+ // authentication oauth2 required
28891
+ // oauth required
28892
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
28893
+
28894
+
28895
+
28896
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28897
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28898
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28899
+
28900
+ return {
28901
+ url: toPathString(localVarUrlObj),
28902
+ options: localVarRequestOptions,
28903
+ };
28904
+ },
28905
+ /**
28906
+ *
28907
+ * @summary Get Manager.
28908
+ * @param {string} managerId
28909
+ * @param {*} [options] Override http request option.
28910
+ * @throws {RequiredError}
28911
+ */
28912
+ apiV1ManagersManagerIdGet: async (managerId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28913
+ // verify required parameter 'managerId' is not null or undefined
28914
+ assertParamExists('apiV1ManagersManagerIdGet', 'managerId', managerId)
28915
+ const localVarPath = `/api/v1/managers/{managerId}`
28916
+ .replace(`{${"managerId"}}`, encodeURIComponent(String(managerId)));
28917
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28918
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28919
+ let baseOptions;
28920
+ if (configuration) {
28921
+ baseOptions = configuration.baseOptions;
28922
+ }
28923
+
28924
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28925
+ const localVarHeaderParameter = {} as any;
28926
+ const localVarQueryParameter = {} as any;
28927
+
28928
+ // authentication oauth2 required
28929
+ // oauth required
28930
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
28931
+
28932
+
28933
+
28934
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28935
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28936
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28937
+
28938
+ return {
28939
+ url: toPathString(localVarUrlObj),
28940
+ options: localVarRequestOptions,
28941
+ };
28942
+ },
28943
+ /**
28944
+ *
28945
+ * @summary Update Manager.
28946
+ * @param {string} managerId
28947
+ * @param {UpdateManagerCommand} [updateManagerCommand]
28948
+ * @param {*} [options] Override http request option.
28949
+ * @throws {RequiredError}
28950
+ */
28951
+ apiV1ManagersManagerIdPut: async (managerId: string, updateManagerCommand?: UpdateManagerCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28952
+ // verify required parameter 'managerId' is not null or undefined
28953
+ assertParamExists('apiV1ManagersManagerIdPut', 'managerId', managerId)
28954
+ const localVarPath = `/api/v1/managers/{managerId}`
28955
+ .replace(`{${"managerId"}}`, encodeURIComponent(String(managerId)));
28956
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28957
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28958
+ let baseOptions;
28959
+ if (configuration) {
28960
+ baseOptions = configuration.baseOptions;
28961
+ }
28962
+
28963
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
28964
+ const localVarHeaderParameter = {} as any;
28965
+ const localVarQueryParameter = {} as any;
28966
+
28967
+ // authentication oauth2 required
28968
+ // oauth required
28969
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
28970
+
28971
+
28972
+
28973
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28974
+
28975
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28976
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28977
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28978
+ localVarRequestOptions.data = serializeDataIfNeeded(updateManagerCommand, localVarRequestOptions, configuration)
28979
+
28980
+ return {
28981
+ url: toPathString(localVarUrlObj),
28982
+ options: localVarRequestOptions,
28983
+ };
28984
+ },
28985
+ /**
28986
+ *
28987
+ * @summary Create a Manager.
28988
+ * @param {CreateManagerCommand} [createManagerCommand]
28989
+ * @param {*} [options] Override http request option.
28990
+ * @throws {RequiredError}
28991
+ */
28992
+ apiV1ManagersPost: async (createManagerCommand?: CreateManagerCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28993
+ const localVarPath = `/api/v1/managers`;
28994
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28995
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28996
+ let baseOptions;
28997
+ if (configuration) {
28998
+ baseOptions = configuration.baseOptions;
28999
+ }
29000
+
29001
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29002
+ const localVarHeaderParameter = {} as any;
29003
+ const localVarQueryParameter = {} as any;
29004
+
29005
+ // authentication oauth2 required
29006
+ // oauth required
29007
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29008
+
29009
+
29010
+
29011
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29012
+
29013
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29014
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29015
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29016
+ localVarRequestOptions.data = serializeDataIfNeeded(createManagerCommand, localVarRequestOptions, configuration)
29017
+
29018
+ return {
29019
+ url: toPathString(localVarUrlObj),
29020
+ options: localVarRequestOptions,
29021
+ };
29022
+ },
29023
+ }
29024
+ };
29025
+
29026
+ /**
29027
+ * ManagersApi - functional programming interface
29028
+ * @export
29029
+ */
29030
+ export const ManagersApiFp = function(configuration?: Configuration) {
29031
+ const localVarAxiosParamCreator = ManagersApiAxiosParamCreator(configuration)
29032
+ return {
29033
+ /**
29034
+ *
29035
+ * @summary Get all Managers.
29036
+ * @param {string} [hospitalId]
29037
+ * @param {string} [id]
29038
+ * @param {string} [fullname]
29039
+ * @param {string} [email]
29040
+ * @param {Gender} [gender]
29041
+ * @param {Date} [dateOfBirth]
29042
+ * @param {Date} [created]
29043
+ * @param {number} [page]
29044
+ * @param {number} [limit]
29045
+ * @param {Date} [lastRetrieved]
29046
+ * @param {*} [options] Override http request option.
29047
+ * @throws {RequiredError}
29048
+ */
29049
+ async apiV1ManagersGet(hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagersModel>> {
29050
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options);
29051
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29052
+ },
29053
+ /**
29054
+ *
29055
+ * @summary Delete Manager.
29056
+ * @param {string} managerId
29057
+ * @param {*} [options] Override http request option.
29058
+ * @throws {RequiredError}
29059
+ */
29060
+ async apiV1ManagersManagerIdDelete(managerId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
29061
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersManagerIdDelete(managerId, options);
29062
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29063
+ },
29064
+ /**
29065
+ *
29066
+ * @summary Get Manager.
29067
+ * @param {string} managerId
29068
+ * @param {*} [options] Override http request option.
29069
+ * @throws {RequiredError}
29070
+ */
29071
+ async apiV1ManagersManagerIdGet(managerId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagerModel>> {
29072
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersManagerIdGet(managerId, options);
29073
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29074
+ },
29075
+ /**
29076
+ *
29077
+ * @summary Update Manager.
29078
+ * @param {string} managerId
29079
+ * @param {UpdateManagerCommand} [updateManagerCommand]
29080
+ * @param {*} [options] Override http request option.
29081
+ * @throws {RequiredError}
29082
+ */
29083
+ async apiV1ManagersManagerIdPut(managerId: string, updateManagerCommand?: UpdateManagerCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
29084
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options);
29085
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29086
+ },
29087
+ /**
29088
+ *
29089
+ * @summary Create a Manager.
29090
+ * @param {CreateManagerCommand} [createManagerCommand]
29091
+ * @param {*} [options] Override http request option.
29092
+ * @throws {RequiredError}
29093
+ */
29094
+ async apiV1ManagersPost(createManagerCommand?: CreateManagerCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagerModel>> {
29095
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersPost(createManagerCommand, options);
29096
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29097
+ },
29098
+ }
29099
+ };
29100
+
29101
+ /**
29102
+ * ManagersApi - factory interface
29103
+ * @export
29104
+ */
29105
+ export const ManagersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
29106
+ const localVarFp = ManagersApiFp(configuration)
29107
+ return {
29108
+ /**
29109
+ *
29110
+ * @summary Get all Managers.
29111
+ * @param {string} [hospitalId]
29112
+ * @param {string} [id]
29113
+ * @param {string} [fullname]
29114
+ * @param {string} [email]
29115
+ * @param {Gender} [gender]
29116
+ * @param {Date} [dateOfBirth]
29117
+ * @param {Date} [created]
29118
+ * @param {number} [page]
29119
+ * @param {number} [limit]
29120
+ * @param {Date} [lastRetrieved]
29121
+ * @param {*} [options] Override http request option.
29122
+ * @throws {RequiredError}
29123
+ */
29124
+ apiV1ManagersGet(hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ManagersModel> {
29125
+ return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
29126
+ },
29127
+ /**
29128
+ *
29129
+ * @summary Delete Manager.
29130
+ * @param {string} managerId
29131
+ * @param {*} [options] Override http request option.
29132
+ * @throws {RequiredError}
29133
+ */
29134
+ apiV1ManagersManagerIdDelete(managerId: string, options?: any): AxiosPromise<boolean> {
29135
+ return localVarFp.apiV1ManagersManagerIdDelete(managerId, options).then((request) => request(axios, basePath));
29136
+ },
29137
+ /**
29138
+ *
29139
+ * @summary Get Manager.
29140
+ * @param {string} managerId
29141
+ * @param {*} [options] Override http request option.
29142
+ * @throws {RequiredError}
29143
+ */
29144
+ apiV1ManagersManagerIdGet(managerId: string, options?: any): AxiosPromise<ManagerModel> {
29145
+ return localVarFp.apiV1ManagersManagerIdGet(managerId, options).then((request) => request(axios, basePath));
29146
+ },
29147
+ /**
29148
+ *
29149
+ * @summary Update Manager.
29150
+ * @param {string} managerId
29151
+ * @param {UpdateManagerCommand} [updateManagerCommand]
29152
+ * @param {*} [options] Override http request option.
29153
+ * @throws {RequiredError}
29154
+ */
29155
+ apiV1ManagersManagerIdPut(managerId: string, updateManagerCommand?: UpdateManagerCommand, options?: any): AxiosPromise<boolean> {
29156
+ return localVarFp.apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options).then((request) => request(axios, basePath));
29157
+ },
29158
+ /**
29159
+ *
29160
+ * @summary Create a Manager.
29161
+ * @param {CreateManagerCommand} [createManagerCommand]
29162
+ * @param {*} [options] Override http request option.
29163
+ * @throws {RequiredError}
29164
+ */
29165
+ apiV1ManagersPost(createManagerCommand?: CreateManagerCommand, options?: any): AxiosPromise<ManagerModel> {
29166
+ return localVarFp.apiV1ManagersPost(createManagerCommand, options).then((request) => request(axios, basePath));
29167
+ },
29168
+ };
29169
+ };
29170
+
29171
+ /**
29172
+ * ManagersApi - object-oriented interface
29173
+ * @export
29174
+ * @class ManagersApi
29175
+ * @extends {BaseAPI}
29176
+ */
29177
+ export class ManagersApi extends BaseAPI {
29178
+ /**
29179
+ *
29180
+ * @summary Get all Managers.
29181
+ * @param {string} [hospitalId]
29182
+ * @param {string} [id]
29183
+ * @param {string} [fullname]
29184
+ * @param {string} [email]
29185
+ * @param {Gender} [gender]
29186
+ * @param {Date} [dateOfBirth]
29187
+ * @param {Date} [created]
29188
+ * @param {number} [page]
29189
+ * @param {number} [limit]
29190
+ * @param {Date} [lastRetrieved]
29191
+ * @param {*} [options] Override http request option.
29192
+ * @throws {RequiredError}
29193
+ * @memberof ManagersApi
29194
+ */
29195
+ public apiV1ManagersGet(hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
29196
+ return ManagersApiFp(this.configuration).apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
29197
+ }
29198
+
29199
+ /**
29200
+ *
29201
+ * @summary Delete Manager.
29202
+ * @param {string} managerId
29203
+ * @param {*} [options] Override http request option.
29204
+ * @throws {RequiredError}
29205
+ * @memberof ManagersApi
29206
+ */
29207
+ public apiV1ManagersManagerIdDelete(managerId: string, options?: AxiosRequestConfig) {
29208
+ return ManagersApiFp(this.configuration).apiV1ManagersManagerIdDelete(managerId, options).then((request) => request(this.axios, this.basePath));
29209
+ }
29210
+
29211
+ /**
29212
+ *
29213
+ * @summary Get Manager.
29214
+ * @param {string} managerId
29215
+ * @param {*} [options] Override http request option.
29216
+ * @throws {RequiredError}
29217
+ * @memberof ManagersApi
29218
+ */
29219
+ public apiV1ManagersManagerIdGet(managerId: string, options?: AxiosRequestConfig) {
29220
+ return ManagersApiFp(this.configuration).apiV1ManagersManagerIdGet(managerId, options).then((request) => request(this.axios, this.basePath));
29221
+ }
29222
+
29223
+ /**
29224
+ *
29225
+ * @summary Update Manager.
29226
+ * @param {string} managerId
29227
+ * @param {UpdateManagerCommand} [updateManagerCommand]
29228
+ * @param {*} [options] Override http request option.
29229
+ * @throws {RequiredError}
29230
+ * @memberof ManagersApi
29231
+ */
29232
+ public apiV1ManagersManagerIdPut(managerId: string, updateManagerCommand?: UpdateManagerCommand, options?: AxiosRequestConfig) {
29233
+ return ManagersApiFp(this.configuration).apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options).then((request) => request(this.axios, this.basePath));
29234
+ }
29235
+
29236
+ /**
29237
+ *
29238
+ * @summary Create a Manager.
29239
+ * @param {CreateManagerCommand} [createManagerCommand]
29240
+ * @param {*} [options] Override http request option.
29241
+ * @throws {RequiredError}
29242
+ * @memberof ManagersApi
29243
+ */
29244
+ public apiV1ManagersPost(createManagerCommand?: CreateManagerCommand, options?: AxiosRequestConfig) {
29245
+ return ManagersApiFp(this.configuration).apiV1ManagersPost(createManagerCommand, options).then((request) => request(this.axios, this.basePath));
29246
+ }
29247
+ }
29248
+
29249
+
29250
+ /**
29251
+ * NotificationsApi - axios parameter creator
29252
+ * @export
29253
+ */
29254
+ export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
29255
+ return {
29256
+ /**
29257
+ *
29258
+ * @summary Check notification.
29259
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
29260
+ * @param {*} [options] Override http request option.
29261
+ * @throws {RequiredError}
29262
+ */
29263
+ apiV1NotificationsCheckPost: async (checkNotificationsCommand?: CheckNotificationsCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29264
+ const localVarPath = `/api/v1/notifications/check`;
29265
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29266
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29267
+ let baseOptions;
29268
+ if (configuration) {
29269
+ baseOptions = configuration.baseOptions;
29270
+ }
29271
+
29272
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29273
+ const localVarHeaderParameter = {} as any;
29274
+ const localVarQueryParameter = {} as any;
29275
+
29276
+ // authentication oauth2 required
29277
+ // oauth required
29278
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29279
+
29280
+
29281
+
29282
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29283
+
29284
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29285
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29286
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29287
+ localVarRequestOptions.data = serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration)
29288
+
29289
+ return {
29290
+ url: toPathString(localVarUrlObj),
29291
+ options: localVarRequestOptions,
29292
+ };
28241
29293
  },
28242
29294
  /**
28243
29295
  *
@@ -28410,6 +29462,250 @@ export class NotificationsApi extends BaseAPI {
28410
29462
  }
28411
29463
 
28412
29464
 
29465
+ /**
29466
+ * ProfilesApi - axios parameter creator
29467
+ * @export
29468
+ */
29469
+ export const ProfilesApiAxiosParamCreator = function (configuration?: Configuration) {
29470
+ return {
29471
+ /**
29472
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
29473
+ * @summary Change user\'s email on both Identity and Api.
29474
+ * @param {ChangeEmailCommand} [changeEmailCommand]
29475
+ * @param {*} [options] Override http request option.
29476
+ * @throws {RequiredError}
29477
+ */
29478
+ apiV1ProfilesChangeemailPost: async (changeEmailCommand?: ChangeEmailCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29479
+ const localVarPath = `/api/v1/profiles/changeemail`;
29480
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29481
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29482
+ let baseOptions;
29483
+ if (configuration) {
29484
+ baseOptions = configuration.baseOptions;
29485
+ }
29486
+
29487
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29488
+ const localVarHeaderParameter = {} as any;
29489
+ const localVarQueryParameter = {} as any;
29490
+
29491
+ // authentication oauth2 required
29492
+ // oauth required
29493
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29494
+
29495
+
29496
+
29497
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29498
+
29499
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29500
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29501
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29502
+ localVarRequestOptions.data = serializeDataIfNeeded(changeEmailCommand, localVarRequestOptions, configuration)
29503
+
29504
+ return {
29505
+ url: toPathString(localVarUrlObj),
29506
+ options: localVarRequestOptions,
29507
+ };
29508
+ },
29509
+ /**
29510
+ *
29511
+ * @summary Configm email.
29512
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
29513
+ * @param {*} [options] Override http request option.
29514
+ * @throws {RequiredError}
29515
+ */
29516
+ apiV1ProfilesConfirmemailPost: async (confirmEmailCommand?: ConfirmEmailCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29517
+ const localVarPath = `/api/v1/profiles/confirmemail`;
29518
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29519
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29520
+ let baseOptions;
29521
+ if (configuration) {
29522
+ baseOptions = configuration.baseOptions;
29523
+ }
29524
+
29525
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29526
+ const localVarHeaderParameter = {} as any;
29527
+ const localVarQueryParameter = {} as any;
29528
+
29529
+ // authentication oauth2 required
29530
+ // oauth required
29531
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29532
+
29533
+
29534
+
29535
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29536
+
29537
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29538
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29539
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29540
+ localVarRequestOptions.data = serializeDataIfNeeded(confirmEmailCommand, localVarRequestOptions, configuration)
29541
+
29542
+ return {
29543
+ url: toPathString(localVarUrlObj),
29544
+ options: localVarRequestOptions,
29545
+ };
29546
+ },
29547
+ /**
29548
+ *
29549
+ * @summary Get Profile.
29550
+ * @param {*} [options] Override http request option.
29551
+ * @throws {RequiredError}
29552
+ */
29553
+ apiV1ProfilesGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29554
+ const localVarPath = `/api/v1/profiles`;
29555
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29556
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29557
+ let baseOptions;
29558
+ if (configuration) {
29559
+ baseOptions = configuration.baseOptions;
29560
+ }
29561
+
29562
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29563
+ const localVarHeaderParameter = {} as any;
29564
+ const localVarQueryParameter = {} as any;
29565
+
29566
+ // authentication oauth2 required
29567
+ // oauth required
29568
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29569
+
29570
+
29571
+
29572
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29573
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29574
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29575
+
29576
+ return {
29577
+ url: toPathString(localVarUrlObj),
29578
+ options: localVarRequestOptions,
29579
+ };
29580
+ },
29581
+ }
29582
+ };
29583
+
29584
+ /**
29585
+ * ProfilesApi - functional programming interface
29586
+ * @export
29587
+ */
29588
+ export const ProfilesApiFp = function(configuration?: Configuration) {
29589
+ const localVarAxiosParamCreator = ProfilesApiAxiosParamCreator(configuration)
29590
+ return {
29591
+ /**
29592
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
29593
+ * @summary Change user\'s email on both Identity and Api.
29594
+ * @param {ChangeEmailCommand} [changeEmailCommand]
29595
+ * @param {*} [options] Override http request option.
29596
+ * @throws {RequiredError}
29597
+ */
29598
+ async apiV1ProfilesChangeemailPost(changeEmailCommand?: ChangeEmailCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
29599
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ProfilesChangeemailPost(changeEmailCommand, options);
29600
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29601
+ },
29602
+ /**
29603
+ *
29604
+ * @summary Configm email.
29605
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
29606
+ * @param {*} [options] Override http request option.
29607
+ * @throws {RequiredError}
29608
+ */
29609
+ async apiV1ProfilesConfirmemailPost(confirmEmailCommand?: ConfirmEmailCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
29610
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ProfilesConfirmemailPost(confirmEmailCommand, options);
29611
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29612
+ },
29613
+ /**
29614
+ *
29615
+ * @summary Get Profile.
29616
+ * @param {*} [options] Override http request option.
29617
+ * @throws {RequiredError}
29618
+ */
29619
+ async apiV1ProfilesGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserModel>> {
29620
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ProfilesGet(options);
29621
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29622
+ },
29623
+ }
29624
+ };
29625
+
29626
+ /**
29627
+ * ProfilesApi - factory interface
29628
+ * @export
29629
+ */
29630
+ export const ProfilesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
29631
+ const localVarFp = ProfilesApiFp(configuration)
29632
+ return {
29633
+ /**
29634
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
29635
+ * @summary Change user\'s email on both Identity and Api.
29636
+ * @param {ChangeEmailCommand} [changeEmailCommand]
29637
+ * @param {*} [options] Override http request option.
29638
+ * @throws {RequiredError}
29639
+ */
29640
+ apiV1ProfilesChangeemailPost(changeEmailCommand?: ChangeEmailCommand, options?: any): AxiosPromise<boolean> {
29641
+ return localVarFp.apiV1ProfilesChangeemailPost(changeEmailCommand, options).then((request) => request(axios, basePath));
29642
+ },
29643
+ /**
29644
+ *
29645
+ * @summary Configm email.
29646
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
29647
+ * @param {*} [options] Override http request option.
29648
+ * @throws {RequiredError}
29649
+ */
29650
+ apiV1ProfilesConfirmemailPost(confirmEmailCommand?: ConfirmEmailCommand, options?: any): AxiosPromise<boolean> {
29651
+ return localVarFp.apiV1ProfilesConfirmemailPost(confirmEmailCommand, options).then((request) => request(axios, basePath));
29652
+ },
29653
+ /**
29654
+ *
29655
+ * @summary Get Profile.
29656
+ * @param {*} [options] Override http request option.
29657
+ * @throws {RequiredError}
29658
+ */
29659
+ apiV1ProfilesGet(options?: any): AxiosPromise<UserModel> {
29660
+ return localVarFp.apiV1ProfilesGet(options).then((request) => request(axios, basePath));
29661
+ },
29662
+ };
29663
+ };
29664
+
29665
+ /**
29666
+ * ProfilesApi - object-oriented interface
29667
+ * @export
29668
+ * @class ProfilesApi
29669
+ * @extends {BaseAPI}
29670
+ */
29671
+ export class ProfilesApi extends BaseAPI {
29672
+ /**
29673
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
29674
+ * @summary Change user\'s email on both Identity and Api.
29675
+ * @param {ChangeEmailCommand} [changeEmailCommand]
29676
+ * @param {*} [options] Override http request option.
29677
+ * @throws {RequiredError}
29678
+ * @memberof ProfilesApi
29679
+ */
29680
+ public apiV1ProfilesChangeemailPost(changeEmailCommand?: ChangeEmailCommand, options?: AxiosRequestConfig) {
29681
+ return ProfilesApiFp(this.configuration).apiV1ProfilesChangeemailPost(changeEmailCommand, options).then((request) => request(this.axios, this.basePath));
29682
+ }
29683
+
29684
+ /**
29685
+ *
29686
+ * @summary Configm email.
29687
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
29688
+ * @param {*} [options] Override http request option.
29689
+ * @throws {RequiredError}
29690
+ * @memberof ProfilesApi
29691
+ */
29692
+ public apiV1ProfilesConfirmemailPost(confirmEmailCommand?: ConfirmEmailCommand, options?: AxiosRequestConfig) {
29693
+ return ProfilesApiFp(this.configuration).apiV1ProfilesConfirmemailPost(confirmEmailCommand, options).then((request) => request(this.axios, this.basePath));
29694
+ }
29695
+
29696
+ /**
29697
+ *
29698
+ * @summary Get Profile.
29699
+ * @param {*} [options] Override http request option.
29700
+ * @throws {RequiredError}
29701
+ * @memberof ProfilesApi
29702
+ */
29703
+ public apiV1ProfilesGet(options?: AxiosRequestConfig) {
29704
+ return ProfilesApiFp(this.configuration).apiV1ProfilesGet(options).then((request) => request(this.axios, this.basePath));
29705
+ }
29706
+ }
29707
+
29708
+
28413
29709
  /**
28414
29710
  * ServicesApi - axios parameter creator
28415
29711
  * @export