ch-api-client-typescript2 4.7.8 → 4.8.1

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
@@ -3316,6 +3316,91 @@ export interface CreatePatientCommand {
3316
3316
  */
3317
3317
  'hospitalId'?: string;
3318
3318
  }
3319
+ /**
3320
+ *
3321
+ * @export
3322
+ * @interface CreateProfileCommand
3323
+ */
3324
+ export interface CreateProfileCommand {
3325
+ /**
3326
+ *
3327
+ * @type {string}
3328
+ * @memberof CreateProfileCommand
3329
+ */
3330
+ 'email'?: string | null;
3331
+ /**
3332
+ *
3333
+ * @type {string}
3334
+ * @memberof CreateProfileCommand
3335
+ */
3336
+ 'firstName'?: string | null;
3337
+ /**
3338
+ *
3339
+ * @type {string}
3340
+ * @memberof CreateProfileCommand
3341
+ */
3342
+ 'lastName'?: string | null;
3343
+ /**
3344
+ *
3345
+ * @type {string}
3346
+ * @memberof CreateProfileCommand
3347
+ */
3348
+ 'phoneCountryCode'?: string | null;
3349
+ /**
3350
+ *
3351
+ * @type {string}
3352
+ * @memberof CreateProfileCommand
3353
+ */
3354
+ 'phone'?: string | null;
3355
+ /**
3356
+ *
3357
+ * @type {string}
3358
+ * @memberof CreateProfileCommand
3359
+ */
3360
+ 'photo'?: string | null;
3361
+ /**
3362
+ *
3363
+ * @type {string}
3364
+ * @memberof CreateProfileCommand
3365
+ */
3366
+ 'photoThumbnail'?: string | null;
3367
+ /**
3368
+ *
3369
+ * @type {Gender}
3370
+ * @memberof CreateProfileCommand
3371
+ */
3372
+ 'gender'?: Gender;
3373
+ /**
3374
+ *
3375
+ * @type {Date}
3376
+ * @memberof CreateProfileCommand
3377
+ */
3378
+ 'dateOfBirth'?: Date | null;
3379
+ /**
3380
+ *
3381
+ * @type {string}
3382
+ * @memberof CreateProfileCommand
3383
+ */
3384
+ 'timeZone'?: string | null;
3385
+ /**
3386
+ *
3387
+ * @type {Array<UserLanguageModel>}
3388
+ * @memberof CreateProfileCommand
3389
+ */
3390
+ 'languages'?: Array<UserLanguageModel> | null;
3391
+ /**
3392
+ *
3393
+ * @type {Array<UserLocationModel>}
3394
+ * @memberof CreateProfileCommand
3395
+ */
3396
+ 'locations'?: Array<UserLocationModel> | null;
3397
+ /**
3398
+ *
3399
+ * @type {string}
3400
+ * @memberof CreateProfileCommand
3401
+ */
3402
+ 'hospitalId'?: string;
3403
+ }
3319
3404
  /**
3320
3405
  *
3321
3406
  * @export
@@ -4745,19 +4830,37 @@ export interface DoctorLanguageItemModel {
4745
4830
  * @type {string}
4746
4831
  * @memberof DoctorLanguageItemModel
4747
4832
  */
4748
- 'id'?: string;
4833
+ 'code'?: string | null;
4749
4834
  /**
4750
4835
  *
4751
4836
  * @type {string}
4752
4837
  * @memberof DoctorLanguageItemModel
4753
4838
  */
4754
- 'language'?: string | null;
4839
+ 'name'?: string | null;
4840
+ /**
4841
+ *
4842
+ * @type {number}
4843
+ * @memberof DoctorLanguageItemModel
4844
+ */
4845
+ 'order'?: number;
4846
+ /**
4847
+ *
4848
+ * @type {boolean}
4849
+ * @memberof DoctorLanguageItemModel
4850
+ */
4851
+ 'isPrimary'?: boolean | null;
4755
4852
  /**
4756
4853
  *
4757
4854
  * @type {string}
4758
4855
  * @memberof DoctorLanguageItemModel
4759
4856
  */
4760
- 'userId'?: string;
4857
+ 'localizedName'?: string | null;
4858
+ /**
4859
+ *
4860
+ * @type {boolean}
4861
+ * @memberof DoctorLanguageItemModel
4862
+ */
4863
+ 'published'?: boolean;
4761
4864
  }
4762
4865
  /**
4763
4866
  *
@@ -4770,19 +4873,37 @@ export interface DoctorLanguageModel {
4770
4873
  * @type {string}
4771
4874
  * @memberof DoctorLanguageModel
4772
4875
  */
4773
- 'id'?: string;
4876
+ 'code'?: string | null;
4774
4877
  /**
4775
4878
  *
4776
4879
  * @type {string}
4777
4880
  * @memberof DoctorLanguageModel
4778
4881
  */
4779
- 'language'?: string | null;
4882
+ 'name'?: string | null;
4883
+ /**
4884
+ *
4885
+ * @type {number}
4886
+ * @memberof DoctorLanguageModel
4887
+ */
4888
+ 'order'?: number;
4889
+ /**
4890
+ *
4891
+ * @type {boolean}
4892
+ * @memberof DoctorLanguageModel
4893
+ */
4894
+ 'isPrimary'?: boolean | null;
4780
4895
  /**
4781
4896
  *
4782
4897
  * @type {string}
4783
4898
  * @memberof DoctorLanguageModel
4784
4899
  */
4785
- 'userId'?: string;
4900
+ 'localizedName'?: string | null;
4901
+ /**
4902
+ *
4903
+ * @type {boolean}
4904
+ * @memberof DoctorLanguageModel
4905
+ */
4906
+ 'published'?: boolean;
4786
4907
  }
4787
4908
  /**
4788
4909
  *
@@ -4869,6 +4990,12 @@ export interface DoctorModel {
4869
4990
  * @memberof DoctorModel
4870
4991
  */
4871
4992
  'auditableEntity'?: AuditableEntity;
4993
+ /**
4994
+ *
4995
+ * @type {string}
4996
+ * @memberof DoctorModel
4997
+ */
4998
+ 'phoneCountryCode'?: string | null;
4872
4999
  /**
4873
5000
  *
4874
5001
  * @type {string}
@@ -8234,6 +8361,12 @@ export interface PatientModel {
8234
8361
  * @memberof PatientModel
8235
8362
  */
8236
8363
  'auditableEntity'?: AuditableEntity;
8364
+ /**
8365
+ *
8366
+ * @type {string}
8367
+ * @memberof PatientModel
8368
+ */
8369
+ 'phoneCountryCode'?: string | null;
8237
8370
  /**
8238
8371
  *
8239
8372
  * @type {string}
@@ -8526,6 +8659,45 @@ export const Platform = {
8526
8659
  export type Platform = typeof Platform[keyof typeof Platform];
8527
8660
 
8528
8661
 
8662
+ /**
8663
+ *
8664
+ * @export
8665
+ * @interface ProblemDetails
8666
+ */
8667
+ export interface ProblemDetails {
8668
+ [key: string]: any;
8669
+
8670
+ /**
8671
+ *
8672
+ * @type {string}
8673
+ * @memberof ProblemDetails
8674
+ */
8675
+ 'type'?: string | null;
8676
+ /**
8677
+ *
8678
+ * @type {string}
8679
+ * @memberof ProblemDetails
8680
+ */
8681
+ 'title'?: string | null;
8682
+ /**
8683
+ *
8684
+ * @type {number}
8685
+ * @memberof ProblemDetails
8686
+ */
8687
+ 'status'?: number | null;
8688
+ /**
8689
+ *
8690
+ * @type {string}
8691
+ * @memberof ProblemDetails
8692
+ */
8693
+ 'detail'?: string | null;
8694
+ /**
8695
+ *
8696
+ * @type {string}
8697
+ * @memberof ProblemDetails
8698
+ */
8699
+ 'instance'?: string | null;
8700
+ }
8529
8701
  /**
8530
8702
  *
8531
8703
  * @export
@@ -10449,6 +10621,12 @@ export interface UpdateProfileCommand {
10449
10621
  * @memberof UpdateProfileCommand
10450
10622
  */
10451
10623
  'lastName'?: string | null;
10624
+ /**
10625
+ *
10626
+ * @type {string}
10627
+ * @memberof UpdateProfileCommand
10628
+ */
10629
+ 'phoneCountryCode'?: string | null;
10452
10630
  /**
10453
10631
  *
10454
10632
  * @type {string}
@@ -10479,6 +10657,12 @@ export interface UpdateProfileCommand {
10479
10657
  * @memberof UpdateProfileCommand
10480
10658
  */
10481
10659
  'dateOfBirth'?: Date | null;
10660
+ /**
10661
+ *
10662
+ * @type {string}
10663
+ * @memberof UpdateProfileCommand
10664
+ */
10665
+ 'timeZone'?: string | null;
10482
10666
  /**
10483
10667
  *
10484
10668
  * @type {Array<UserLanguageModel>}
@@ -10558,13 +10742,37 @@ export interface UserLanguageModel {
10558
10742
  * @type {string}
10559
10743
  * @memberof UserLanguageModel
10560
10744
  */
10561
- 'id'?: string;
10745
+ 'code'?: string | null;
10562
10746
  /**
10563
10747
  *
10564
10748
  * @type {string}
10565
10749
  * @memberof UserLanguageModel
10566
10750
  */
10567
- 'language'?: string | null;
10751
+ 'name'?: string | null;
10752
+ /**
10753
+ *
10754
+ * @type {number}
10755
+ * @memberof UserLanguageModel
10756
+ */
10757
+ 'order'?: number;
10758
+ /**
10759
+ *
10760
+ * @type {boolean}
10761
+ * @memberof UserLanguageModel
10762
+ */
10763
+ 'isPrimary'?: boolean | null;
10764
+ /**
10765
+ *
10766
+ * @type {string}
10767
+ * @memberof UserLanguageModel
10768
+ */
10769
+ 'localizedName'?: string | null;
10770
+ /**
10771
+ *
10772
+ * @type {boolean}
10773
+ * @memberof UserLanguageModel
10774
+ */
10775
+ 'published'?: boolean;
10568
10776
  }
10569
10777
  /**
10570
10778
  *
@@ -10707,6 +10915,12 @@ export interface UserModel {
10707
10915
  * @memberof UserModel
10708
10916
  */
10709
10917
  'auditableEntity'?: AuditableEntity;
10918
+ /**
10919
+ *
10920
+ * @type {string}
10921
+ * @memberof UserModel
10922
+ */
10923
+ 'phoneCountryCode'?: string | null;
10710
10924
  /**
10711
10925
  *
10712
10926
  * @type {string}
@@ -18013,14 +18227,14 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
18013
18227
  *
18014
18228
  * @summary Get all DoctorLanguages.
18015
18229
  * @param {string} doctorId
18016
- * @param {string} [language]
18230
+ * @param {string} [languageCode]
18017
18231
  * @param {number} [page]
18018
18232
  * @param {number} [limit]
18019
18233
  * @param {Date} [lastRetrieved]
18020
18234
  * @param {*} [options] Override http request option.
18021
18235
  * @throws {RequiredError}
18022
18236
  */
18023
- apiV2DoctorsDoctorIdLanguagesGet: async (doctorId: string, language?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18237
+ apiV2DoctorsDoctorIdLanguagesGet: async (doctorId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18024
18238
  // verify required parameter 'doctorId' is not null or undefined
18025
18239
  assertParamExists('apiV2DoctorsDoctorIdLanguagesGet', 'doctorId', doctorId)
18026
18240
  const localVarPath = `/api/v2/doctors/{doctorId}/languages`
@@ -18036,8 +18250,8 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
18036
18250
  const localVarHeaderParameter = {} as any;
18037
18251
  const localVarQueryParameter = {} as any;
18038
18252
 
18039
- if (language !== undefined) {
18040
- localVarQueryParameter['Language'] = language;
18253
+ if (languageCode !== undefined) {
18254
+ localVarQueryParameter['LanguageCode'] = languageCode;
18041
18255
  }
18042
18256
 
18043
18257
  if (page !== undefined) {
@@ -18069,18 +18283,18 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
18069
18283
  *
18070
18284
  * @summary Get DoctorLanguage.
18071
18285
  * @param {string} doctorId
18072
- * @param {string} languageId
18286
+ * @param {string} languageCode
18073
18287
  * @param {*} [options] Override http request option.
18074
18288
  * @throws {RequiredError}
18075
18289
  */
18076
- apiV2DoctorsDoctorIdLanguagesLanguageIdGet: async (doctorId: string, languageId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18290
+ apiV2DoctorsDoctorIdLanguagesLanguageCodeGet: async (doctorId: string, languageCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18077
18291
  // verify required parameter 'doctorId' is not null or undefined
18078
- assertParamExists('apiV2DoctorsDoctorIdLanguagesLanguageIdGet', 'doctorId', doctorId)
18079
- // verify required parameter 'languageId' is not null or undefined
18080
- assertParamExists('apiV2DoctorsDoctorIdLanguagesLanguageIdGet', 'languageId', languageId)
18081
- const localVarPath = `/api/v2/doctors/{doctorId}/languages/{languageId}`
18292
+ assertParamExists('apiV2DoctorsDoctorIdLanguagesLanguageCodeGet', 'doctorId', doctorId)
18293
+ // verify required parameter 'languageCode' is not null or undefined
18294
+ assertParamExists('apiV2DoctorsDoctorIdLanguagesLanguageCodeGet', 'languageCode', languageCode)
18295
+ const localVarPath = `/api/v2/doctors/{doctorId}/languages/{languageCode}`
18082
18296
  .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
18083
- .replace(`{${"languageId"}}`, encodeURIComponent(String(languageId)));
18297
+ .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)));
18084
18298
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18085
18299
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18086
18300
  let baseOptions;
@@ -18731,27 +18945,27 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
18731
18945
  *
18732
18946
  * @summary Get all DoctorLanguages.
18733
18947
  * @param {string} doctorId
18734
- * @param {string} [language]
18948
+ * @param {string} [languageCode]
18735
18949
  * @param {number} [page]
18736
18950
  * @param {number} [limit]
18737
18951
  * @param {Date} [lastRetrieved]
18738
18952
  * @param {*} [options] Override http request option.
18739
18953
  * @throws {RequiredError}
18740
18954
  */
18741
- async apiV2DoctorsDoctorIdLanguagesGet(doctorId: string, language?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorLanguagesModel>> {
18742
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctorsDoctorIdLanguagesGet(doctorId, language, page, limit, lastRetrieved, options);
18955
+ async apiV2DoctorsDoctorIdLanguagesGet(doctorId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorLanguagesModel>> {
18956
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctorsDoctorIdLanguagesGet(doctorId, languageCode, page, limit, lastRetrieved, options);
18743
18957
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18744
18958
  },
18745
18959
  /**
18746
18960
  *
18747
18961
  * @summary Get DoctorLanguage.
18748
18962
  * @param {string} doctorId
18749
- * @param {string} languageId
18963
+ * @param {string} languageCode
18750
18964
  * @param {*} [options] Override http request option.
18751
18965
  * @throws {RequiredError}
18752
18966
  */
18753
- async apiV2DoctorsDoctorIdLanguagesLanguageIdGet(doctorId: string, languageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorLanguageModel>> {
18754
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctorsDoctorIdLanguagesLanguageIdGet(doctorId, languageId, options);
18967
+ async apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId: string, languageCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorLanguageModel>> {
18968
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId, languageCode, options);
18755
18969
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18756
18970
  },
18757
18971
  /**
@@ -18976,26 +19190,26 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
18976
19190
  *
18977
19191
  * @summary Get all DoctorLanguages.
18978
19192
  * @param {string} doctorId
18979
- * @param {string} [language]
19193
+ * @param {string} [languageCode]
18980
19194
  * @param {number} [page]
18981
19195
  * @param {number} [limit]
18982
19196
  * @param {Date} [lastRetrieved]
18983
19197
  * @param {*} [options] Override http request option.
18984
19198
  * @throws {RequiredError}
18985
19199
  */
18986
- apiV2DoctorsDoctorIdLanguagesGet(doctorId: string, language?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorLanguagesModel> {
18987
- return localVarFp.apiV2DoctorsDoctorIdLanguagesGet(doctorId, language, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
19200
+ apiV2DoctorsDoctorIdLanguagesGet(doctorId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorLanguagesModel> {
19201
+ return localVarFp.apiV2DoctorsDoctorIdLanguagesGet(doctorId, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
18988
19202
  },
18989
19203
  /**
18990
19204
  *
18991
19205
  * @summary Get DoctorLanguage.
18992
19206
  * @param {string} doctorId
18993
- * @param {string} languageId
19207
+ * @param {string} languageCode
18994
19208
  * @param {*} [options] Override http request option.
18995
19209
  * @throws {RequiredError}
18996
19210
  */
18997
- apiV2DoctorsDoctorIdLanguagesLanguageIdGet(doctorId: string, languageId: string, options?: any): AxiosPromise<DoctorLanguageModel> {
18998
- return localVarFp.apiV2DoctorsDoctorIdLanguagesLanguageIdGet(doctorId, languageId, options).then((request) => request(axios, basePath));
19211
+ apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId: string, languageCode: string, options?: any): AxiosPromise<DoctorLanguageModel> {
19212
+ return localVarFp.apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId, languageCode, options).then((request) => request(axios, basePath));
18999
19213
  },
19000
19214
  /**
19001
19215
  *
@@ -19221,7 +19435,7 @@ export class DoctorsApi extends BaseAPI {
19221
19435
  *
19222
19436
  * @summary Get all DoctorLanguages.
19223
19437
  * @param {string} doctorId
19224
- * @param {string} [language]
19438
+ * @param {string} [languageCode]
19225
19439
  * @param {number} [page]
19226
19440
  * @param {number} [limit]
19227
19441
  * @param {Date} [lastRetrieved]
@@ -19229,21 +19443,21 @@ export class DoctorsApi extends BaseAPI {
19229
19443
  * @throws {RequiredError}
19230
19444
  * @memberof DoctorsApi
19231
19445
  */
19232
- public apiV2DoctorsDoctorIdLanguagesGet(doctorId: string, language?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
19233
- return DoctorsApiFp(this.configuration).apiV2DoctorsDoctorIdLanguagesGet(doctorId, language, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
19446
+ public apiV2DoctorsDoctorIdLanguagesGet(doctorId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
19447
+ return DoctorsApiFp(this.configuration).apiV2DoctorsDoctorIdLanguagesGet(doctorId, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
19234
19448
  }
19235
19449
 
19236
19450
  /**
19237
19451
  *
19238
19452
  * @summary Get DoctorLanguage.
19239
19453
  * @param {string} doctorId
19240
- * @param {string} languageId
19454
+ * @param {string} languageCode
19241
19455
  * @param {*} [options] Override http request option.
19242
19456
  * @throws {RequiredError}
19243
19457
  * @memberof DoctorsApi
19244
19458
  */
19245
- public apiV2DoctorsDoctorIdLanguagesLanguageIdGet(doctorId: string, languageId: string, options?: AxiosRequestConfig) {
19246
- return DoctorsApiFp(this.configuration).apiV2DoctorsDoctorIdLanguagesLanguageIdGet(doctorId, languageId, options).then((request) => request(this.axios, this.basePath));
19459
+ public apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId: string, languageCode: string, options?: AxiosRequestConfig) {
19460
+ return DoctorsApiFp(this.configuration).apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId, languageCode, options).then((request) => request(this.axios, this.basePath));
19247
19461
  }
19248
19462
 
19249
19463
  /**
@@ -25744,6 +25958,7 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
25744
25958
  * @summary Delete Patient.
25745
25959
  * @param {string} patientId
25746
25960
  * @param {*} [options] Override http request option.
25961
+ * @deprecated
25747
25962
  * @throws {RequiredError}
25748
25963
  */
25749
25964
  apiV2PatientsPatientIdDelete: async (patientId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -25782,6 +25997,7 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
25782
25997
  * @summary Get Patient.
25783
25998
  * @param {string} patientId
25784
25999
  * @param {*} [options] Override http request option.
26000
+ * @deprecated
25785
26001
  * @throws {RequiredError}
25786
26002
  */
25787
26003
  apiV2PatientsPatientIdGet: async (patientId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -25821,6 +26037,7 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
25821
26037
  * @param {string} patientId
25822
26038
  * @param {UpdatePatientCommand} [updatePatientCommand]
25823
26039
  * @param {*} [options] Override http request option.
26040
+ * @deprecated
25824
26041
  * @throws {RequiredError}
25825
26042
  */
25826
26043
  apiV2PatientsPatientIdPut: async (patientId: string, updatePatientCommand?: UpdatePatientCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -25862,6 +26079,7 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
25862
26079
  * @summary Create a Patient.
25863
26080
  * @param {CreatePatientCommand} [createPatientCommand]
25864
26081
  * @param {*} [options] Override http request option.
26082
+ * @deprecated
25865
26083
  * @throws {RequiredError}
25866
26084
  */
25867
26085
  apiV2PatientsPost: async (createPatientCommand?: CreatePatientCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -25932,6 +26150,7 @@ export const PatientsApiFp = function(configuration?: Configuration) {
25932
26150
  * @summary Delete Patient.
25933
26151
  * @param {string} patientId
25934
26152
  * @param {*} [options] Override http request option.
26153
+ * @deprecated
25935
26154
  * @throws {RequiredError}
25936
26155
  */
25937
26156
  async apiV2PatientsPatientIdDelete(patientId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
@@ -25943,6 +26162,7 @@ export const PatientsApiFp = function(configuration?: Configuration) {
25943
26162
  * @summary Get Patient.
25944
26163
  * @param {string} patientId
25945
26164
  * @param {*} [options] Override http request option.
26165
+ * @deprecated
25946
26166
  * @throws {RequiredError}
25947
26167
  */
25948
26168
  async apiV2PatientsPatientIdGet(patientId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatientModel>> {
@@ -25955,6 +26175,7 @@ export const PatientsApiFp = function(configuration?: Configuration) {
25955
26175
  * @param {string} patientId
25956
26176
  * @param {UpdatePatientCommand} [updatePatientCommand]
25957
26177
  * @param {*} [options] Override http request option.
26178
+ * @deprecated
25958
26179
  * @throws {RequiredError}
25959
26180
  */
25960
26181
  async apiV2PatientsPatientIdPut(patientId: string, updatePatientCommand?: UpdatePatientCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatientModel>> {
@@ -25966,6 +26187,7 @@ export const PatientsApiFp = function(configuration?: Configuration) {
25966
26187
  * @summary Create a Patient.
25967
26188
  * @param {CreatePatientCommand} [createPatientCommand]
25968
26189
  * @param {*} [options] Override http request option.
26190
+ * @deprecated
25969
26191
  * @throws {RequiredError}
25970
26192
  */
25971
26193
  async apiV2PatientsPost(createPatientCommand?: CreatePatientCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatientModel>> {
@@ -26007,6 +26229,7 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
26007
26229
  * @summary Delete Patient.
26008
26230
  * @param {string} patientId
26009
26231
  * @param {*} [options] Override http request option.
26232
+ * @deprecated
26010
26233
  * @throws {RequiredError}
26011
26234
  */
26012
26235
  apiV2PatientsPatientIdDelete(patientId: string, options?: any): AxiosPromise<boolean> {
@@ -26017,6 +26240,7 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
26017
26240
  * @summary Get Patient.
26018
26241
  * @param {string} patientId
26019
26242
  * @param {*} [options] Override http request option.
26243
+ * @deprecated
26020
26244
  * @throws {RequiredError}
26021
26245
  */
26022
26246
  apiV2PatientsPatientIdGet(patientId: string, options?: any): AxiosPromise<PatientModel> {
@@ -26028,6 +26252,7 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
26028
26252
  * @param {string} patientId
26029
26253
  * @param {UpdatePatientCommand} [updatePatientCommand]
26030
26254
  * @param {*} [options] Override http request option.
26255
+ * @deprecated
26031
26256
  * @throws {RequiredError}
26032
26257
  */
26033
26258
  apiV2PatientsPatientIdPut(patientId: string, updatePatientCommand?: UpdatePatientCommand, options?: any): AxiosPromise<PatientModel> {
@@ -26038,6 +26263,7 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
26038
26263
  * @summary Create a Patient.
26039
26264
  * @param {CreatePatientCommand} [createPatientCommand]
26040
26265
  * @param {*} [options] Override http request option.
26266
+ * @deprecated
26041
26267
  * @throws {RequiredError}
26042
26268
  */
26043
26269
  apiV2PatientsPost(createPatientCommand?: CreatePatientCommand, options?: any): AxiosPromise<PatientModel> {
@@ -26082,6 +26308,7 @@ export class PatientsApi extends BaseAPI {
26082
26308
  * @summary Delete Patient.
26083
26309
  * @param {string} patientId
26084
26310
  * @param {*} [options] Override http request option.
26311
+ * @deprecated
26085
26312
  * @throws {RequiredError}
26086
26313
  * @memberof PatientsApi
26087
26314
  */
@@ -26094,6 +26321,7 @@ export class PatientsApi extends BaseAPI {
26094
26321
  * @summary Get Patient.
26095
26322
  * @param {string} patientId
26096
26323
  * @param {*} [options] Override http request option.
26324
+ * @deprecated
26097
26325
  * @throws {RequiredError}
26098
26326
  * @memberof PatientsApi
26099
26327
  */
@@ -26107,6 +26335,7 @@ export class PatientsApi extends BaseAPI {
26107
26335
  * @param {string} patientId
26108
26336
  * @param {UpdatePatientCommand} [updatePatientCommand]
26109
26337
  * @param {*} [options] Override http request option.
26338
+ * @deprecated
26110
26339
  * @throws {RequiredError}
26111
26340
  * @memberof PatientsApi
26112
26341
  */
@@ -26119,6 +26348,7 @@ export class PatientsApi extends BaseAPI {
26119
26348
  * @summary Create a Patient.
26120
26349
  * @param {CreatePatientCommand} [createPatientCommand]
26121
26350
  * @param {*} [options] Override http request option.
26351
+ * @deprecated
26122
26352
  * @throws {RequiredError}
26123
26353
  * @memberof PatientsApi
26124
26354
  */
@@ -26548,7 +26778,7 @@ export const ProfilesApiAxiosParamCreator = function (configuration?: Configurat
26548
26778
  },
26549
26779
  /**
26550
26780
  *
26551
- * @summary Configm email.
26781
+ * @summary Confirm email.
26552
26782
  * @param {ConfirmEmailCommand} [confirmEmailCommand]
26553
26783
  * @param {*} [options] Override http request option.
26554
26784
  * @throws {RequiredError}
@@ -26609,6 +26839,82 @@ export const ProfilesApiAxiosParamCreator = function (configuration?: Configurat
26609
26839
 
26610
26840
 
26611
26841
 
26842
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26843
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26844
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26845
+
26846
+ return {
26847
+ url: toPathString(localVarUrlObj),
26848
+ options: localVarRequestOptions,
26849
+ };
26850
+ },
26851
+ /**
26852
+ *
26853
+ * @summary Create a Profile.
26854
+ * @param {CreateProfileCommand} [createProfileCommand]
26855
+ * @param {*} [options] Override http request option.
26856
+ * @throws {RequiredError}
26857
+ */
26858
+ apiV2ProfilesPost: async (createProfileCommand?: CreateProfileCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
26859
+ const localVarPath = `/api/v2/profiles`;
26860
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26861
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26862
+ let baseOptions;
26863
+ if (configuration) {
26864
+ baseOptions = configuration.baseOptions;
26865
+ }
26866
+
26867
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
26868
+ const localVarHeaderParameter = {} as any;
26869
+ const localVarQueryParameter = {} as any;
26870
+
26871
+ // authentication oauth2 required
26872
+ // oauth required
26873
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
26874
+
26875
+
26876
+
26877
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26878
+
26879
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26880
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26881
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26882
+ localVarRequestOptions.data = serializeDataIfNeeded(createProfileCommand, localVarRequestOptions, configuration)
26883
+
26884
+ return {
26885
+ url: toPathString(localVarUrlObj),
26886
+ options: localVarRequestOptions,
26887
+ };
26888
+ },
26889
+ /**
26890
+ *
26891
+ * @summary Delete Profile.
26892
+ * @param {string} profileId
26893
+ * @param {*} [options] Override http request option.
26894
+ * @throws {RequiredError}
26895
+ */
26896
+ apiV2ProfilesProfileIdDelete: async (profileId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
26897
+ // verify required parameter 'profileId' is not null or undefined
26898
+ assertParamExists('apiV2ProfilesProfileIdDelete', 'profileId', profileId)
26899
+ const localVarPath = `/api/v2/profiles/{profileId}`
26900
+ .replace(`{${"profileId"}}`, encodeURIComponent(String(profileId)));
26901
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26902
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26903
+ let baseOptions;
26904
+ if (configuration) {
26905
+ baseOptions = configuration.baseOptions;
26906
+ }
26907
+
26908
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
26909
+ const localVarHeaderParameter = {} as any;
26910
+ const localVarQueryParameter = {} as any;
26911
+
26912
+ // authentication oauth2 required
26913
+ // oauth required
26914
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
26915
+
26916
+
26917
+
26612
26918
  setSearchParams(localVarUrlObj, localVarQueryParameter);
26613
26919
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26614
26920
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -26679,7 +26985,7 @@ export const ProfilesApiFp = function(configuration?: Configuration) {
26679
26985
  },
26680
26986
  /**
26681
26987
  *
26682
- * @summary Configm email.
26988
+ * @summary Confirm email.
26683
26989
  * @param {ConfirmEmailCommand} [confirmEmailCommand]
26684
26990
  * @param {*} [options] Override http request option.
26685
26991
  * @throws {RequiredError}
@@ -26698,6 +27004,28 @@ export const ProfilesApiFp = function(configuration?: Configuration) {
26698
27004
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ProfilesGet(options);
26699
27005
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
26700
27006
  },
27007
+ /**
27008
+ *
27009
+ * @summary Create a Profile.
27010
+ * @param {CreateProfileCommand} [createProfileCommand]
27011
+ * @param {*} [options] Override http request option.
27012
+ * @throws {RequiredError}
27013
+ */
27014
+ async apiV2ProfilesPost(createProfileCommand?: CreateProfileCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserModel>> {
27015
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ProfilesPost(createProfileCommand, options);
27016
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
27017
+ },
27018
+ /**
27019
+ *
27020
+ * @summary Delete Profile.
27021
+ * @param {string} profileId
27022
+ * @param {*} [options] Override http request option.
27023
+ * @throws {RequiredError}
27024
+ */
27025
+ async apiV2ProfilesProfileIdDelete(profileId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
27026
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ProfilesProfileIdDelete(profileId, options);
27027
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
27028
+ },
26701
27029
  /**
26702
27030
  *
26703
27031
  * @summary Update Profile.
@@ -26731,7 +27059,7 @@ export const ProfilesApiFactory = function (configuration?: Configuration, baseP
26731
27059
  },
26732
27060
  /**
26733
27061
  *
26734
- * @summary Configm email.
27062
+ * @summary Confirm email.
26735
27063
  * @param {ConfirmEmailCommand} [confirmEmailCommand]
26736
27064
  * @param {*} [options] Override http request option.
26737
27065
  * @throws {RequiredError}
@@ -26748,6 +27076,26 @@ export const ProfilesApiFactory = function (configuration?: Configuration, baseP
26748
27076
  apiV2ProfilesGet(options?: any): AxiosPromise<UserModel> {
26749
27077
  return localVarFp.apiV2ProfilesGet(options).then((request) => request(axios, basePath));
26750
27078
  },
27079
+ /**
27080
+ *
27081
+ * @summary Create a Profile.
27082
+ * @param {CreateProfileCommand} [createProfileCommand]
27083
+ * @param {*} [options] Override http request option.
27084
+ * @throws {RequiredError}
27085
+ */
27086
+ apiV2ProfilesPost(createProfileCommand?: CreateProfileCommand, options?: any): AxiosPromise<UserModel> {
27087
+ return localVarFp.apiV2ProfilesPost(createProfileCommand, options).then((request) => request(axios, basePath));
27088
+ },
27089
+ /**
27090
+ *
27091
+ * @summary Delete Profile.
27092
+ * @param {string} profileId
27093
+ * @param {*} [options] Override http request option.
27094
+ * @throws {RequiredError}
27095
+ */
27096
+ apiV2ProfilesProfileIdDelete(profileId: string, options?: any): AxiosPromise<boolean> {
27097
+ return localVarFp.apiV2ProfilesProfileIdDelete(profileId, options).then((request) => request(axios, basePath));
27098
+ },
26751
27099
  /**
26752
27100
  *
26753
27101
  * @summary Update Profile.
@@ -26782,7 +27130,7 @@ export class ProfilesApi extends BaseAPI {
26782
27130
 
26783
27131
  /**
26784
27132
  *
26785
- * @summary Configm email.
27133
+ * @summary Confirm email.
26786
27134
  * @param {ConfirmEmailCommand} [confirmEmailCommand]
26787
27135
  * @param {*} [options] Override http request option.
26788
27136
  * @throws {RequiredError}
@@ -26803,6 +27151,30 @@ export class ProfilesApi extends BaseAPI {
26803
27151
  return ProfilesApiFp(this.configuration).apiV2ProfilesGet(options).then((request) => request(this.axios, this.basePath));
26804
27152
  }
26805
27153
 
27154
+ /**
27155
+ *
27156
+ * @summary Create a Profile.
27157
+ * @param {CreateProfileCommand} [createProfileCommand]
27158
+ * @param {*} [options] Override http request option.
27159
+ * @throws {RequiredError}
27160
+ * @memberof ProfilesApi
27161
+ */
27162
+ public apiV2ProfilesPost(createProfileCommand?: CreateProfileCommand, options?: AxiosRequestConfig) {
27163
+ return ProfilesApiFp(this.configuration).apiV2ProfilesPost(createProfileCommand, options).then((request) => request(this.axios, this.basePath));
27164
+ }
27165
+
27166
+ /**
27167
+ *
27168
+ * @summary Delete Profile.
27169
+ * @param {string} profileId
27170
+ * @param {*} [options] Override http request option.
27171
+ * @throws {RequiredError}
27172
+ * @memberof ProfilesApi
27173
+ */
27174
+ public apiV2ProfilesProfileIdDelete(profileId: string, options?: AxiosRequestConfig) {
27175
+ return ProfilesApiFp(this.configuration).apiV2ProfilesProfileIdDelete(profileId, options).then((request) => request(this.axios, this.basePath));
27176
+ }
27177
+
26806
27178
  /**
26807
27179
  *
26808
27180
  * @summary Update Profile.