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/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
@@ -7929,7 +8040,7 @@ export interface HospitalServiceItemModel {
7929
8040
  * @type {string}
7930
8041
  * @memberof HospitalServiceItemModel
7931
8042
  */
7932
- 'serviceCategoryId'?: string;
8043
+ 'serviceCategoryId'?: string | null;
7933
8044
  /**
7934
8045
  *
7935
8046
  * @type {string}
@@ -8062,7 +8173,7 @@ export interface HospitalServiceModel {
8062
8173
  * @type {string}
8063
8174
  * @memberof HospitalServiceModel
8064
8175
  */
8065
- 'serviceCategoryId'?: string;
8176
+ 'serviceCategoryId'?: string | null;
8066
8177
  /**
8067
8178
  *
8068
8179
  * @type {string}
@@ -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,13 +12220,74 @@ 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
12230
+ */
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
11918
12291
  */
11919
12292
  'mediaType'?: MediaType;
11920
12293
  /**
@@ -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
@@ -20767,9 +21340,8 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
20767
21340
  *
20768
21341
  * @summary Delete DoctorCertificate.
20769
21342
  * @param {string} doctorId
20770
- * @param {string} [doctorId2]
20771
- * @param {string} [id]
20772
21343
  * @param {string} [doctorName]
21344
+ * @param {string} [certificateId]
20773
21345
  * @param {string} [certificate]
20774
21346
  * @param {Date} [activeFrom]
20775
21347
  * @param {Date} [activeTo]
@@ -20779,7 +21351,7 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
20779
21351
  * @param {*} [options] Override http request option.
20780
21352
  * @throws {RequiredError}
20781
21353
  */
20782
- apiV1DoctorsDoctorIdCertificatesGet: async (doctorId: string, doctorId2?: string, id?: string, doctorName?: string, certificate?: string, activeFrom?: Date, activeTo?: Date, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
21354
+ apiV1DoctorsDoctorIdCertificatesGet: async (doctorId: string, doctorName?: string, certificateId?: string, certificate?: string, activeFrom?: Date, activeTo?: Date, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
20783
21355
  // verify required parameter 'doctorId' is not null or undefined
20784
21356
  assertParamExists('apiV1DoctorsDoctorIdCertificatesGet', 'doctorId', doctorId)
20785
21357
  const localVarPath = `/api/v1/doctors/{doctorId}/certificates`
@@ -20799,18 +21371,14 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
20799
21371
  // oauth required
20800
21372
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
20801
21373
 
20802
- if (doctorId2 !== undefined) {
20803
- localVarQueryParameter['DoctorId'] = doctorId2;
20804
- }
20805
-
20806
- if (id !== undefined) {
20807
- localVarQueryParameter['Id'] = id;
20808
- }
20809
-
20810
21374
  if (doctorName !== undefined) {
20811
21375
  localVarQueryParameter['DoctorName'] = doctorName;
20812
21376
  }
20813
21377
 
21378
+ if (certificateId !== undefined) {
21379
+ localVarQueryParameter['CertificateId'] = certificateId;
21380
+ }
21381
+
20814
21382
  if (certificate !== undefined) {
20815
21383
  localVarQueryParameter['Certificate'] = certificate;
20816
21384
  }
@@ -21066,8 +21634,8 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
21066
21634
  *
21067
21635
  * @summary Get all DoctorEducations.
21068
21636
  * @param {string} doctorId
21069
- * @param {string} [doctorId2]
21070
21637
  * @param {string} [doctorName]
21638
+ * @param {string} [educationId]
21071
21639
  * @param {string} [institution]
21072
21640
  * @param {string} [qualification]
21073
21641
  * @param {Date} [graduationDate]
@@ -21077,7 +21645,7 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
21077
21645
  * @param {*} [options] Override http request option.
21078
21646
  * @throws {RequiredError}
21079
21647
  */
21080
- apiV1DoctorsDoctorIdEducationsGet: async (doctorId: string, doctorId2?: string, doctorName?: string, institution?: string, qualification?: string, graduationDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
21648
+ apiV1DoctorsDoctorIdEducationsGet: async (doctorId: string, doctorName?: string, educationId?: string, institution?: string, qualification?: string, graduationDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
21081
21649
  // verify required parameter 'doctorId' is not null or undefined
21082
21650
  assertParamExists('apiV1DoctorsDoctorIdEducationsGet', 'doctorId', doctorId)
21083
21651
  const localVarPath = `/api/v1/doctors/{doctorId}/educations`
@@ -21097,14 +21665,14 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
21097
21665
  // oauth required
21098
21666
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
21099
21667
 
21100
- if (doctorId2 !== undefined) {
21101
- localVarQueryParameter['DoctorId'] = doctorId2;
21102
- }
21103
-
21104
21668
  if (doctorName !== undefined) {
21105
21669
  localVarQueryParameter['DoctorName'] = doctorName;
21106
21670
  }
21107
21671
 
21672
+ if (educationId !== undefined) {
21673
+ localVarQueryParameter['EducationId'] = educationId;
21674
+ }
21675
+
21108
21676
  if (institution !== undefined) {
21109
21677
  localVarQueryParameter['Institution'] = institution;
21110
21678
  }
@@ -21470,9 +22038,8 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
21470
22038
  *
21471
22039
  * @summary Get All DoctorPortfolios
21472
22040
  * @param {string} doctorId
21473
- * @param {string} [id]
21474
- * @param {string} [doctorId2]
21475
22041
  * @param {string} [doctorName]
22042
+ * @param {string} [portfolioId]
21476
22043
  * @param {string} [name]
21477
22044
  * @param {number} [page]
21478
22045
  * @param {number} [limit]
@@ -21480,7 +22047,7 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
21480
22047
  * @param {*} [options] Override http request option.
21481
22048
  * @throws {RequiredError}
21482
22049
  */
21483
- apiV1DoctorsDoctorIdPortfoliosGet: async (doctorId: string, id?: string, doctorId2?: string, doctorName?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22050
+ apiV1DoctorsDoctorIdPortfoliosGet: async (doctorId: string, doctorName?: string, portfolioId?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
21484
22051
  // verify required parameter 'doctorId' is not null or undefined
21485
22052
  assertParamExists('apiV1DoctorsDoctorIdPortfoliosGet', 'doctorId', doctorId)
21486
22053
  const localVarPath = `/api/v1/doctors/{doctorId}/portfolios`
@@ -21500,18 +22067,14 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
21500
22067
  // oauth required
21501
22068
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
21502
22069
 
21503
- if (id !== undefined) {
21504
- localVarQueryParameter['Id'] = id;
21505
- }
21506
-
21507
- if (doctorId2 !== undefined) {
21508
- localVarQueryParameter['DoctorId'] = doctorId2;
21509
- }
21510
-
21511
22070
  if (doctorName !== undefined) {
21512
22071
  localVarQueryParameter['DoctorName'] = doctorName;
21513
22072
  }
21514
22073
 
22074
+ if (portfolioId !== undefined) {
22075
+ localVarQueryParameter['PortfolioId'] = portfolioId;
22076
+ }
22077
+
21515
22078
  if (name !== undefined) {
21516
22079
  localVarQueryParameter['Name'] = name;
21517
22080
  }
@@ -22288,9 +22851,8 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
22288
22851
  *
22289
22852
  * @summary Delete DoctorCertificate.
22290
22853
  * @param {string} doctorId
22291
- * @param {string} [doctorId2]
22292
- * @param {string} [id]
22293
22854
  * @param {string} [doctorName]
22855
+ * @param {string} [certificateId]
22294
22856
  * @param {string} [certificate]
22295
22857
  * @param {Date} [activeFrom]
22296
22858
  * @param {Date} [activeTo]
@@ -22300,8 +22862,8 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
22300
22862
  * @param {*} [options] Override http request option.
22301
22863
  * @throws {RequiredError}
22302
22864
  */
22303
- async apiV1DoctorsDoctorIdCertificatesGet(doctorId: string, doctorId2?: string, id?: string, doctorName?: string, certificate?: string, activeFrom?: Date, activeTo?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorCertificatesModel>> {
22304
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorId2, id, doctorName, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options);
22865
+ async apiV1DoctorsDoctorIdCertificatesGet(doctorId: string, doctorName?: string, certificateId?: string, certificate?: string, activeFrom?: Date, activeTo?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorCertificatesModel>> {
22866
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options);
22305
22867
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
22306
22868
  },
22307
22869
  /**
@@ -22368,8 +22930,8 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
22368
22930
  *
22369
22931
  * @summary Get all DoctorEducations.
22370
22932
  * @param {string} doctorId
22371
- * @param {string} [doctorId2]
22372
22933
  * @param {string} [doctorName]
22934
+ * @param {string} [educationId]
22373
22935
  * @param {string} [institution]
22374
22936
  * @param {string} [qualification]
22375
22937
  * @param {Date} [graduationDate]
@@ -22379,8 +22941,8 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
22379
22941
  * @param {*} [options] Override http request option.
22380
22942
  * @throws {RequiredError}
22381
22943
  */
22382
- async apiV1DoctorsDoctorIdEducationsGet(doctorId: string, doctorId2?: string, doctorName?: string, institution?: string, qualification?: string, graduationDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorEducationsModel>> {
22383
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorId2, doctorName, institution, qualification, graduationDate, page, limit, lastRetrieved, options);
22944
+ async apiV1DoctorsDoctorIdEducationsGet(doctorId: string, doctorName?: string, educationId?: string, institution?: string, qualification?: string, graduationDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorEducationsModel>> {
22945
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options);
22384
22946
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
22385
22947
  },
22386
22948
  /**
@@ -22476,9 +23038,8 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
22476
23038
  *
22477
23039
  * @summary Get All DoctorPortfolios
22478
23040
  * @param {string} doctorId
22479
- * @param {string} [id]
22480
- * @param {string} [doctorId2]
22481
23041
  * @param {string} [doctorName]
23042
+ * @param {string} [portfolioId]
22482
23043
  * @param {string} [name]
22483
23044
  * @param {number} [page]
22484
23045
  * @param {number} [limit]
@@ -22486,8 +23047,8 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
22486
23047
  * @param {*} [options] Override http request option.
22487
23048
  * @throws {RequiredError}
22488
23049
  */
22489
- async apiV1DoctorsDoctorIdPortfoliosGet(doctorId: string, id?: string, doctorId2?: string, doctorName?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorPortfoliosModel>> {
22490
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdPortfoliosGet(doctorId, id, doctorId2, doctorName, name, page, limit, lastRetrieved, options);
23050
+ async apiV1DoctorsDoctorIdPortfoliosGet(doctorId: string, doctorName?: string, portfolioId?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorPortfoliosModel>> {
23051
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdPortfoliosGet(doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options);
22491
23052
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
22492
23053
  },
22493
23054
  /**
@@ -22739,9 +23300,8 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
22739
23300
  *
22740
23301
  * @summary Delete DoctorCertificate.
22741
23302
  * @param {string} doctorId
22742
- * @param {string} [doctorId2]
22743
- * @param {string} [id]
22744
23303
  * @param {string} [doctorName]
23304
+ * @param {string} [certificateId]
22745
23305
  * @param {string} [certificate]
22746
23306
  * @param {Date} [activeFrom]
22747
23307
  * @param {Date} [activeTo]
@@ -22751,8 +23311,8 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
22751
23311
  * @param {*} [options] Override http request option.
22752
23312
  * @throws {RequiredError}
22753
23313
  */
22754
- apiV1DoctorsDoctorIdCertificatesGet(doctorId: string, doctorId2?: string, id?: string, doctorName?: string, certificate?: string, activeFrom?: Date, activeTo?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorCertificatesModel> {
22755
- return localVarFp.apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorId2, id, doctorName, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
23314
+ apiV1DoctorsDoctorIdCertificatesGet(doctorId: string, doctorName?: string, certificateId?: string, certificate?: string, activeFrom?: Date, activeTo?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorCertificatesModel> {
23315
+ return localVarFp.apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
22756
23316
  },
22757
23317
  /**
22758
23318
  *
@@ -22813,8 +23373,8 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
22813
23373
  *
22814
23374
  * @summary Get all DoctorEducations.
22815
23375
  * @param {string} doctorId
22816
- * @param {string} [doctorId2]
22817
23376
  * @param {string} [doctorName]
23377
+ * @param {string} [educationId]
22818
23378
  * @param {string} [institution]
22819
23379
  * @param {string} [qualification]
22820
23380
  * @param {Date} [graduationDate]
@@ -22824,8 +23384,8 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
22824
23384
  * @param {*} [options] Override http request option.
22825
23385
  * @throws {RequiredError}
22826
23386
  */
22827
- apiV1DoctorsDoctorIdEducationsGet(doctorId: string, doctorId2?: string, doctorName?: string, institution?: string, qualification?: string, graduationDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorEducationsModel> {
22828
- return localVarFp.apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorId2, doctorName, institution, qualification, graduationDate, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
23387
+ apiV1DoctorsDoctorIdEducationsGet(doctorId: string, doctorName?: string, educationId?: string, institution?: string, qualification?: string, graduationDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorEducationsModel> {
23388
+ return localVarFp.apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
22829
23389
  },
22830
23390
  /**
22831
23391
  *
@@ -22913,9 +23473,8 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
22913
23473
  *
22914
23474
  * @summary Get All DoctorPortfolios
22915
23475
  * @param {string} doctorId
22916
- * @param {string} [id]
22917
- * @param {string} [doctorId2]
22918
23476
  * @param {string} [doctorName]
23477
+ * @param {string} [portfolioId]
22919
23478
  * @param {string} [name]
22920
23479
  * @param {number} [page]
22921
23480
  * @param {number} [limit]
@@ -22923,8 +23482,8 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
22923
23482
  * @param {*} [options] Override http request option.
22924
23483
  * @throws {RequiredError}
22925
23484
  */
22926
- apiV1DoctorsDoctorIdPortfoliosGet(doctorId: string, id?: string, doctorId2?: string, doctorName?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorPortfoliosModel> {
22927
- return localVarFp.apiV1DoctorsDoctorIdPortfoliosGet(doctorId, id, doctorId2, doctorName, name, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
23485
+ apiV1DoctorsDoctorIdPortfoliosGet(doctorId: string, doctorName?: string, portfolioId?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorPortfoliosModel> {
23486
+ return localVarFp.apiV1DoctorsDoctorIdPortfoliosGet(doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
22928
23487
  },
22929
23488
  /**
22930
23489
  *
@@ -23172,9 +23731,8 @@ export class DoctorsApi extends BaseAPI {
23172
23731
  *
23173
23732
  * @summary Delete DoctorCertificate.
23174
23733
  * @param {string} doctorId
23175
- * @param {string} [doctorId2]
23176
- * @param {string} [id]
23177
23734
  * @param {string} [doctorName]
23735
+ * @param {string} [certificateId]
23178
23736
  * @param {string} [certificate]
23179
23737
  * @param {Date} [activeFrom]
23180
23738
  * @param {Date} [activeTo]
@@ -23185,8 +23743,8 @@ export class DoctorsApi extends BaseAPI {
23185
23743
  * @throws {RequiredError}
23186
23744
  * @memberof DoctorsApi
23187
23745
  */
23188
- public apiV1DoctorsDoctorIdCertificatesGet(doctorId: string, doctorId2?: string, id?: string, doctorName?: string, certificate?: string, activeFrom?: Date, activeTo?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
23189
- return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorId2, id, doctorName, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
23746
+ public apiV1DoctorsDoctorIdCertificatesGet(doctorId: string, doctorName?: string, certificateId?: string, certificate?: string, activeFrom?: Date, activeTo?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
23747
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
23190
23748
  }
23191
23749
 
23192
23750
  /**
@@ -23258,8 +23816,8 @@ export class DoctorsApi extends BaseAPI {
23258
23816
  *
23259
23817
  * @summary Get all DoctorEducations.
23260
23818
  * @param {string} doctorId
23261
- * @param {string} [doctorId2]
23262
23819
  * @param {string} [doctorName]
23820
+ * @param {string} [educationId]
23263
23821
  * @param {string} [institution]
23264
23822
  * @param {string} [qualification]
23265
23823
  * @param {Date} [graduationDate]
@@ -23270,8 +23828,8 @@ export class DoctorsApi extends BaseAPI {
23270
23828
  * @throws {RequiredError}
23271
23829
  * @memberof DoctorsApi
23272
23830
  */
23273
- public apiV1DoctorsDoctorIdEducationsGet(doctorId: string, doctorId2?: string, doctorName?: string, institution?: string, qualification?: string, graduationDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
23274
- return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorId2, doctorName, institution, qualification, graduationDate, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
23831
+ public apiV1DoctorsDoctorIdEducationsGet(doctorId: string, doctorName?: string, educationId?: string, institution?: string, qualification?: string, graduationDate?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
23832
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
23275
23833
  }
23276
23834
 
23277
23835
  /**
@@ -23374,9 +23932,8 @@ export class DoctorsApi extends BaseAPI {
23374
23932
  *
23375
23933
  * @summary Get All DoctorPortfolios
23376
23934
  * @param {string} doctorId
23377
- * @param {string} [id]
23378
- * @param {string} [doctorId2]
23379
23935
  * @param {string} [doctorName]
23936
+ * @param {string} [portfolioId]
23380
23937
  * @param {string} [name]
23381
23938
  * @param {number} [page]
23382
23939
  * @param {number} [limit]
@@ -23385,8 +23942,8 @@ export class DoctorsApi extends BaseAPI {
23385
23942
  * @throws {RequiredError}
23386
23943
  * @memberof DoctorsApi
23387
23944
  */
23388
- public apiV1DoctorsDoctorIdPortfoliosGet(doctorId: string, id?: string, doctorId2?: string, doctorName?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
23389
- return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdPortfoliosGet(doctorId, id, doctorId2, doctorName, name, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
23945
+ public apiV1DoctorsDoctorIdPortfoliosGet(doctorId: string, doctorName?: string, portfolioId?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
23946
+ return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdPortfoliosGet(doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
23390
23947
  }
23391
23948
 
23392
23949
  /**
@@ -28212,20 +28769,499 @@ export class LanguagesApi extends BaseAPI {
28212
28769
 
28213
28770
 
28214
28771
  /**
28215
- * NotificationsApi - axios parameter creator
28772
+ * ManagersApi - axios parameter creator
28216
28773
  * @export
28217
28774
  */
28218
- export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
28775
+ export const ManagersApiAxiosParamCreator = function (configuration?: Configuration) {
28219
28776
  return {
28220
28777
  /**
28221
28778
  *
28222
- * @summary Check notification.
28223
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
28224
- * @param {*} [options] Override http request option.
28225
- * @throws {RequiredError}
28226
- */
28227
- apiV1NotificationsCheckPost: async (checkNotificationsCommand?: CheckNotificationsCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28228
- const localVarPath = `/api/v1/notifications/check`;
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]
28790
+ * @param {*} [options] Override http request option.
28791
+ * @throws {RequiredError}
28792
+ */
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`;
28795
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28796
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28797
+ let baseOptions;
28798
+ if (configuration) {
28799
+ baseOptions = configuration.baseOptions;
28800
+ }
28801
+
28802
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28803
+ const localVarHeaderParameter = {} as any;
28804
+ const localVarQueryParameter = {} as any;
28805
+
28806
+ // authentication oauth2 required
28807
+ // oauth required
28808
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
28809
+
28810
+ if (hospitalId !== undefined) {
28811
+ localVarQueryParameter['HospitalId'] = hospitalId;
28812
+ }
28813
+
28814
+ if (id !== undefined) {
28815
+ localVarQueryParameter['Id'] = id;
28816
+ }
28817
+
28818
+ if (fullname !== undefined) {
28819
+ localVarQueryParameter['Fullname'] = fullname;
28820
+ }
28821
+
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`;
28229
29265
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28230
29266
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28231
29267
  let baseOptions;
@@ -28426,6 +29462,250 @@ export class NotificationsApi extends BaseAPI {
28426
29462
  }
28427
29463
 
28428
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
+
28429
29709
  /**
28430
29710
  * ServicesApi - axios parameter creator
28431
29711
  * @export