ch-api-client-typescript2 4.7.8 → 4.7.9

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
+ 'phone'?: string | null;
3349
+ /**
3350
+ *
3351
+ * @type {string}
3352
+ * @memberof CreateProfileCommand
3353
+ */
3354
+ 'photo'?: string | null;
3355
+ /**
3356
+ *
3357
+ * @type {string}
3358
+ * @memberof CreateProfileCommand
3359
+ */
3360
+ 'photoThumbnail'?: string | null;
3361
+ /**
3362
+ *
3363
+ * @type {Gender}
3364
+ * @memberof CreateProfileCommand
3365
+ */
3366
+ 'gender'?: Gender;
3367
+ /**
3368
+ *
3369
+ * @type {Date}
3370
+ * @memberof CreateProfileCommand
3371
+ */
3372
+ 'dateOfBirth'?: Date | null;
3373
+ /**
3374
+ *
3375
+ * @type {string}
3376
+ * @memberof CreateProfileCommand
3377
+ */
3378
+ 'timeZone'?: string | null;
3379
+ /**
3380
+ *
3381
+ * @type {Array<UserLanguageModel>}
3382
+ * @memberof CreateProfileCommand
3383
+ */
3384
+ 'languages'?: Array<UserLanguageModel> | null;
3385
+ /**
3386
+ *
3387
+ * @type {Array<UserLocationModel>}
3388
+ * @memberof CreateProfileCommand
3389
+ */
3390
+ 'locations'?: Array<UserLocationModel> | null;
3391
+ /**
3392
+ *
3393
+ * @type {string}
3394
+ * @memberof CreateProfileCommand
3395
+ */
3396
+ 'hospitalId'?: string;
3397
+ /**
3398
+ *
3399
+ * @type {number}
3400
+ * @memberof CreateProfileCommand
3401
+ */
3402
+ 'userType'?: number;
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
  *
@@ -8526,6 +8647,45 @@ export const Platform = {
8526
8647
  export type Platform = typeof Platform[keyof typeof Platform];
8527
8648
 
8528
8649
 
8650
+ /**
8651
+ *
8652
+ * @export
8653
+ * @interface ProblemDetails
8654
+ */
8655
+ export interface ProblemDetails {
8656
+ [key: string]: any;
8657
+
8658
+ /**
8659
+ *
8660
+ * @type {string}
8661
+ * @memberof ProblemDetails
8662
+ */
8663
+ 'type'?: string | null;
8664
+ /**
8665
+ *
8666
+ * @type {string}
8667
+ * @memberof ProblemDetails
8668
+ */
8669
+ 'title'?: string | null;
8670
+ /**
8671
+ *
8672
+ * @type {number}
8673
+ * @memberof ProblemDetails
8674
+ */
8675
+ 'status'?: number | null;
8676
+ /**
8677
+ *
8678
+ * @type {string}
8679
+ * @memberof ProblemDetails
8680
+ */
8681
+ 'detail'?: string | null;
8682
+ /**
8683
+ *
8684
+ * @type {string}
8685
+ * @memberof ProblemDetails
8686
+ */
8687
+ 'instance'?: string | null;
8688
+ }
8529
8689
  /**
8530
8690
  *
8531
8691
  * @export
@@ -10479,6 +10639,12 @@ export interface UpdateProfileCommand {
10479
10639
  * @memberof UpdateProfileCommand
10480
10640
  */
10481
10641
  'dateOfBirth'?: Date | null;
10642
+ /**
10643
+ *
10644
+ * @type {string}
10645
+ * @memberof UpdateProfileCommand
10646
+ */
10647
+ 'timeZone'?: string | null;
10482
10648
  /**
10483
10649
  *
10484
10650
  * @type {Array<UserLanguageModel>}
@@ -10558,13 +10724,37 @@ export interface UserLanguageModel {
10558
10724
  * @type {string}
10559
10725
  * @memberof UserLanguageModel
10560
10726
  */
10561
- 'id'?: string;
10727
+ 'code'?: string | null;
10562
10728
  /**
10563
10729
  *
10564
10730
  * @type {string}
10565
10731
  * @memberof UserLanguageModel
10566
10732
  */
10567
- 'language'?: string | null;
10733
+ 'name'?: string | null;
10734
+ /**
10735
+ *
10736
+ * @type {number}
10737
+ * @memberof UserLanguageModel
10738
+ */
10739
+ 'order'?: number;
10740
+ /**
10741
+ *
10742
+ * @type {boolean}
10743
+ * @memberof UserLanguageModel
10744
+ */
10745
+ 'isPrimary'?: boolean | null;
10746
+ /**
10747
+ *
10748
+ * @type {string}
10749
+ * @memberof UserLanguageModel
10750
+ */
10751
+ 'localizedName'?: string | null;
10752
+ /**
10753
+ *
10754
+ * @type {boolean}
10755
+ * @memberof UserLanguageModel
10756
+ */
10757
+ 'published'?: boolean;
10568
10758
  }
10569
10759
  /**
10570
10760
  *
@@ -18013,14 +18203,14 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
18013
18203
  *
18014
18204
  * @summary Get all DoctorLanguages.
18015
18205
  * @param {string} doctorId
18016
- * @param {string} [language]
18206
+ * @param {string} [languageCode]
18017
18207
  * @param {number} [page]
18018
18208
  * @param {number} [limit]
18019
18209
  * @param {Date} [lastRetrieved]
18020
18210
  * @param {*} [options] Override http request option.
18021
18211
  * @throws {RequiredError}
18022
18212
  */
18023
- apiV2DoctorsDoctorIdLanguagesGet: async (doctorId: string, language?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18213
+ apiV2DoctorsDoctorIdLanguagesGet: async (doctorId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18024
18214
  // verify required parameter 'doctorId' is not null or undefined
18025
18215
  assertParamExists('apiV2DoctorsDoctorIdLanguagesGet', 'doctorId', doctorId)
18026
18216
  const localVarPath = `/api/v2/doctors/{doctorId}/languages`
@@ -18036,8 +18226,8 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
18036
18226
  const localVarHeaderParameter = {} as any;
18037
18227
  const localVarQueryParameter = {} as any;
18038
18228
 
18039
- if (language !== undefined) {
18040
- localVarQueryParameter['Language'] = language;
18229
+ if (languageCode !== undefined) {
18230
+ localVarQueryParameter['LanguageCode'] = languageCode;
18041
18231
  }
18042
18232
 
18043
18233
  if (page !== undefined) {
@@ -18069,18 +18259,18 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
18069
18259
  *
18070
18260
  * @summary Get DoctorLanguage.
18071
18261
  * @param {string} doctorId
18072
- * @param {string} languageId
18262
+ * @param {string} languageCode
18073
18263
  * @param {*} [options] Override http request option.
18074
18264
  * @throws {RequiredError}
18075
18265
  */
18076
- apiV2DoctorsDoctorIdLanguagesLanguageIdGet: async (doctorId: string, languageId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18266
+ apiV2DoctorsDoctorIdLanguagesLanguageCodeGet: async (doctorId: string, languageCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18077
18267
  // 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}`
18268
+ assertParamExists('apiV2DoctorsDoctorIdLanguagesLanguageCodeGet', 'doctorId', doctorId)
18269
+ // verify required parameter 'languageCode' is not null or undefined
18270
+ assertParamExists('apiV2DoctorsDoctorIdLanguagesLanguageCodeGet', 'languageCode', languageCode)
18271
+ const localVarPath = `/api/v2/doctors/{doctorId}/languages/{languageCode}`
18082
18272
  .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
18083
- .replace(`{${"languageId"}}`, encodeURIComponent(String(languageId)));
18273
+ .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)));
18084
18274
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18085
18275
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18086
18276
  let baseOptions;
@@ -18731,27 +18921,27 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
18731
18921
  *
18732
18922
  * @summary Get all DoctorLanguages.
18733
18923
  * @param {string} doctorId
18734
- * @param {string} [language]
18924
+ * @param {string} [languageCode]
18735
18925
  * @param {number} [page]
18736
18926
  * @param {number} [limit]
18737
18927
  * @param {Date} [lastRetrieved]
18738
18928
  * @param {*} [options] Override http request option.
18739
18929
  * @throws {RequiredError}
18740
18930
  */
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);
18931
+ async apiV2DoctorsDoctorIdLanguagesGet(doctorId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorLanguagesModel>> {
18932
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctorsDoctorIdLanguagesGet(doctorId, languageCode, page, limit, lastRetrieved, options);
18743
18933
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18744
18934
  },
18745
18935
  /**
18746
18936
  *
18747
18937
  * @summary Get DoctorLanguage.
18748
18938
  * @param {string} doctorId
18749
- * @param {string} languageId
18939
+ * @param {string} languageCode
18750
18940
  * @param {*} [options] Override http request option.
18751
18941
  * @throws {RequiredError}
18752
18942
  */
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);
18943
+ async apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId: string, languageCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorLanguageModel>> {
18944
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId, languageCode, options);
18755
18945
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18756
18946
  },
18757
18947
  /**
@@ -18976,26 +19166,26 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
18976
19166
  *
18977
19167
  * @summary Get all DoctorLanguages.
18978
19168
  * @param {string} doctorId
18979
- * @param {string} [language]
19169
+ * @param {string} [languageCode]
18980
19170
  * @param {number} [page]
18981
19171
  * @param {number} [limit]
18982
19172
  * @param {Date} [lastRetrieved]
18983
19173
  * @param {*} [options] Override http request option.
18984
19174
  * @throws {RequiredError}
18985
19175
  */
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));
19176
+ apiV2DoctorsDoctorIdLanguagesGet(doctorId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorLanguagesModel> {
19177
+ return localVarFp.apiV2DoctorsDoctorIdLanguagesGet(doctorId, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
18988
19178
  },
18989
19179
  /**
18990
19180
  *
18991
19181
  * @summary Get DoctorLanguage.
18992
19182
  * @param {string} doctorId
18993
- * @param {string} languageId
19183
+ * @param {string} languageCode
18994
19184
  * @param {*} [options] Override http request option.
18995
19185
  * @throws {RequiredError}
18996
19186
  */
18997
- apiV2DoctorsDoctorIdLanguagesLanguageIdGet(doctorId: string, languageId: string, options?: any): AxiosPromise<DoctorLanguageModel> {
18998
- return localVarFp.apiV2DoctorsDoctorIdLanguagesLanguageIdGet(doctorId, languageId, options).then((request) => request(axios, basePath));
19187
+ apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId: string, languageCode: string, options?: any): AxiosPromise<DoctorLanguageModel> {
19188
+ return localVarFp.apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId, languageCode, options).then((request) => request(axios, basePath));
18999
19189
  },
19000
19190
  /**
19001
19191
  *
@@ -19221,7 +19411,7 @@ export class DoctorsApi extends BaseAPI {
19221
19411
  *
19222
19412
  * @summary Get all DoctorLanguages.
19223
19413
  * @param {string} doctorId
19224
- * @param {string} [language]
19414
+ * @param {string} [languageCode]
19225
19415
  * @param {number} [page]
19226
19416
  * @param {number} [limit]
19227
19417
  * @param {Date} [lastRetrieved]
@@ -19229,21 +19419,21 @@ export class DoctorsApi extends BaseAPI {
19229
19419
  * @throws {RequiredError}
19230
19420
  * @memberof DoctorsApi
19231
19421
  */
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));
19422
+ public apiV2DoctorsDoctorIdLanguagesGet(doctorId: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
19423
+ return DoctorsApiFp(this.configuration).apiV2DoctorsDoctorIdLanguagesGet(doctorId, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
19234
19424
  }
19235
19425
 
19236
19426
  /**
19237
19427
  *
19238
19428
  * @summary Get DoctorLanguage.
19239
19429
  * @param {string} doctorId
19240
- * @param {string} languageId
19430
+ * @param {string} languageCode
19241
19431
  * @param {*} [options] Override http request option.
19242
19432
  * @throws {RequiredError}
19243
19433
  * @memberof DoctorsApi
19244
19434
  */
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));
19435
+ public apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId: string, languageCode: string, options?: AxiosRequestConfig) {
19436
+ return DoctorsApiFp(this.configuration).apiV2DoctorsDoctorIdLanguagesLanguageCodeGet(doctorId, languageCode, options).then((request) => request(this.axios, this.basePath));
19247
19437
  }
19248
19438
 
19249
19439
  /**
@@ -25744,6 +25934,7 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
25744
25934
  * @summary Delete Patient.
25745
25935
  * @param {string} patientId
25746
25936
  * @param {*} [options] Override http request option.
25937
+ * @deprecated
25747
25938
  * @throws {RequiredError}
25748
25939
  */
25749
25940
  apiV2PatientsPatientIdDelete: async (patientId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -25782,6 +25973,7 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
25782
25973
  * @summary Get Patient.
25783
25974
  * @param {string} patientId
25784
25975
  * @param {*} [options] Override http request option.
25976
+ * @deprecated
25785
25977
  * @throws {RequiredError}
25786
25978
  */
25787
25979
  apiV2PatientsPatientIdGet: async (patientId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -25821,6 +26013,7 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
25821
26013
  * @param {string} patientId
25822
26014
  * @param {UpdatePatientCommand} [updatePatientCommand]
25823
26015
  * @param {*} [options] Override http request option.
26016
+ * @deprecated
25824
26017
  * @throws {RequiredError}
25825
26018
  */
25826
26019
  apiV2PatientsPatientIdPut: async (patientId: string, updatePatientCommand?: UpdatePatientCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -25862,6 +26055,7 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
25862
26055
  * @summary Create a Patient.
25863
26056
  * @param {CreatePatientCommand} [createPatientCommand]
25864
26057
  * @param {*} [options] Override http request option.
26058
+ * @deprecated
25865
26059
  * @throws {RequiredError}
25866
26060
  */
25867
26061
  apiV2PatientsPost: async (createPatientCommand?: CreatePatientCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -25932,6 +26126,7 @@ export const PatientsApiFp = function(configuration?: Configuration) {
25932
26126
  * @summary Delete Patient.
25933
26127
  * @param {string} patientId
25934
26128
  * @param {*} [options] Override http request option.
26129
+ * @deprecated
25935
26130
  * @throws {RequiredError}
25936
26131
  */
25937
26132
  async apiV2PatientsPatientIdDelete(patientId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
@@ -25943,6 +26138,7 @@ export const PatientsApiFp = function(configuration?: Configuration) {
25943
26138
  * @summary Get Patient.
25944
26139
  * @param {string} patientId
25945
26140
  * @param {*} [options] Override http request option.
26141
+ * @deprecated
25946
26142
  * @throws {RequiredError}
25947
26143
  */
25948
26144
  async apiV2PatientsPatientIdGet(patientId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatientModel>> {
@@ -25955,6 +26151,7 @@ export const PatientsApiFp = function(configuration?: Configuration) {
25955
26151
  * @param {string} patientId
25956
26152
  * @param {UpdatePatientCommand} [updatePatientCommand]
25957
26153
  * @param {*} [options] Override http request option.
26154
+ * @deprecated
25958
26155
  * @throws {RequiredError}
25959
26156
  */
25960
26157
  async apiV2PatientsPatientIdPut(patientId: string, updatePatientCommand?: UpdatePatientCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatientModel>> {
@@ -25966,6 +26163,7 @@ export const PatientsApiFp = function(configuration?: Configuration) {
25966
26163
  * @summary Create a Patient.
25967
26164
  * @param {CreatePatientCommand} [createPatientCommand]
25968
26165
  * @param {*} [options] Override http request option.
26166
+ * @deprecated
25969
26167
  * @throws {RequiredError}
25970
26168
  */
25971
26169
  async apiV2PatientsPost(createPatientCommand?: CreatePatientCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatientModel>> {
@@ -26007,6 +26205,7 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
26007
26205
  * @summary Delete Patient.
26008
26206
  * @param {string} patientId
26009
26207
  * @param {*} [options] Override http request option.
26208
+ * @deprecated
26010
26209
  * @throws {RequiredError}
26011
26210
  */
26012
26211
  apiV2PatientsPatientIdDelete(patientId: string, options?: any): AxiosPromise<boolean> {
@@ -26017,6 +26216,7 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
26017
26216
  * @summary Get Patient.
26018
26217
  * @param {string} patientId
26019
26218
  * @param {*} [options] Override http request option.
26219
+ * @deprecated
26020
26220
  * @throws {RequiredError}
26021
26221
  */
26022
26222
  apiV2PatientsPatientIdGet(patientId: string, options?: any): AxiosPromise<PatientModel> {
@@ -26028,6 +26228,7 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
26028
26228
  * @param {string} patientId
26029
26229
  * @param {UpdatePatientCommand} [updatePatientCommand]
26030
26230
  * @param {*} [options] Override http request option.
26231
+ * @deprecated
26031
26232
  * @throws {RequiredError}
26032
26233
  */
26033
26234
  apiV2PatientsPatientIdPut(patientId: string, updatePatientCommand?: UpdatePatientCommand, options?: any): AxiosPromise<PatientModel> {
@@ -26038,6 +26239,7 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
26038
26239
  * @summary Create a Patient.
26039
26240
  * @param {CreatePatientCommand} [createPatientCommand]
26040
26241
  * @param {*} [options] Override http request option.
26242
+ * @deprecated
26041
26243
  * @throws {RequiredError}
26042
26244
  */
26043
26245
  apiV2PatientsPost(createPatientCommand?: CreatePatientCommand, options?: any): AxiosPromise<PatientModel> {
@@ -26082,6 +26284,7 @@ export class PatientsApi extends BaseAPI {
26082
26284
  * @summary Delete Patient.
26083
26285
  * @param {string} patientId
26084
26286
  * @param {*} [options] Override http request option.
26287
+ * @deprecated
26085
26288
  * @throws {RequiredError}
26086
26289
  * @memberof PatientsApi
26087
26290
  */
@@ -26094,6 +26297,7 @@ export class PatientsApi extends BaseAPI {
26094
26297
  * @summary Get Patient.
26095
26298
  * @param {string} patientId
26096
26299
  * @param {*} [options] Override http request option.
26300
+ * @deprecated
26097
26301
  * @throws {RequiredError}
26098
26302
  * @memberof PatientsApi
26099
26303
  */
@@ -26107,6 +26311,7 @@ export class PatientsApi extends BaseAPI {
26107
26311
  * @param {string} patientId
26108
26312
  * @param {UpdatePatientCommand} [updatePatientCommand]
26109
26313
  * @param {*} [options] Override http request option.
26314
+ * @deprecated
26110
26315
  * @throws {RequiredError}
26111
26316
  * @memberof PatientsApi
26112
26317
  */
@@ -26119,6 +26324,7 @@ export class PatientsApi extends BaseAPI {
26119
26324
  * @summary Create a Patient.
26120
26325
  * @param {CreatePatientCommand} [createPatientCommand]
26121
26326
  * @param {*} [options] Override http request option.
26327
+ * @deprecated
26122
26328
  * @throws {RequiredError}
26123
26329
  * @memberof PatientsApi
26124
26330
  */
@@ -26548,7 +26754,7 @@ export const ProfilesApiAxiosParamCreator = function (configuration?: Configurat
26548
26754
  },
26549
26755
  /**
26550
26756
  *
26551
- * @summary Configm email.
26757
+ * @summary Confirm email.
26552
26758
  * @param {ConfirmEmailCommand} [confirmEmailCommand]
26553
26759
  * @param {*} [options] Override http request option.
26554
26760
  * @throws {RequiredError}
@@ -26618,6 +26824,86 @@ export const ProfilesApiAxiosParamCreator = function (configuration?: Configurat
26618
26824
  options: localVarRequestOptions,
26619
26825
  };
26620
26826
  },
26827
+ /**
26828
+ *
26829
+ * @summary Delete Profile.
26830
+ * @param {string} profileId
26831
+ * @param {string} patientId
26832
+ * @param {*} [options] Override http request option.
26833
+ * @throws {RequiredError}
26834
+ */
26835
+ apiV2ProfilesPatientIdDelete: async (profileId: string, patientId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
26836
+ // verify required parameter 'profileId' is not null or undefined
26837
+ assertParamExists('apiV2ProfilesPatientIdDelete', 'profileId', profileId)
26838
+ // verify required parameter 'patientId' is not null or undefined
26839
+ assertParamExists('apiV2ProfilesPatientIdDelete', 'patientId', patientId)
26840
+ const localVarPath = `/api/v2/profiles/{patientId}`
26841
+ .replace(`{${"profileId"}}`, encodeURIComponent(String(profileId)))
26842
+ .replace(`{${"patientId"}}`, encodeURIComponent(String(patientId)));
26843
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26844
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26845
+ let baseOptions;
26846
+ if (configuration) {
26847
+ baseOptions = configuration.baseOptions;
26848
+ }
26849
+
26850
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
26851
+ const localVarHeaderParameter = {} as any;
26852
+ const localVarQueryParameter = {} as any;
26853
+
26854
+ // authentication oauth2 required
26855
+ // oauth required
26856
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
26857
+
26858
+
26859
+
26860
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26861
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26862
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26863
+
26864
+ return {
26865
+ url: toPathString(localVarUrlObj),
26866
+ options: localVarRequestOptions,
26867
+ };
26868
+ },
26869
+ /**
26870
+ *
26871
+ * @summary Create a Profile.
26872
+ * @param {CreateProfileCommand} [createProfileCommand]
26873
+ * @param {*} [options] Override http request option.
26874
+ * @throws {RequiredError}
26875
+ */
26876
+ apiV2ProfilesPost: async (createProfileCommand?: CreateProfileCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
26877
+ const localVarPath = `/api/v2/profiles`;
26878
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26879
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26880
+ let baseOptions;
26881
+ if (configuration) {
26882
+ baseOptions = configuration.baseOptions;
26883
+ }
26884
+
26885
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
26886
+ const localVarHeaderParameter = {} as any;
26887
+ const localVarQueryParameter = {} as any;
26888
+
26889
+ // authentication oauth2 required
26890
+ // oauth required
26891
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
26892
+
26893
+
26894
+
26895
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26896
+
26897
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26898
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26899
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26900
+ localVarRequestOptions.data = serializeDataIfNeeded(createProfileCommand, localVarRequestOptions, configuration)
26901
+
26902
+ return {
26903
+ url: toPathString(localVarUrlObj),
26904
+ options: localVarRequestOptions,
26905
+ };
26906
+ },
26621
26907
  /**
26622
26908
  *
26623
26909
  * @summary Update Profile.
@@ -26679,7 +26965,7 @@ export const ProfilesApiFp = function(configuration?: Configuration) {
26679
26965
  },
26680
26966
  /**
26681
26967
  *
26682
- * @summary Configm email.
26968
+ * @summary Confirm email.
26683
26969
  * @param {ConfirmEmailCommand} [confirmEmailCommand]
26684
26970
  * @param {*} [options] Override http request option.
26685
26971
  * @throws {RequiredError}
@@ -26698,6 +26984,29 @@ export const ProfilesApiFp = function(configuration?: Configuration) {
26698
26984
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ProfilesGet(options);
26699
26985
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
26700
26986
  },
26987
+ /**
26988
+ *
26989
+ * @summary Delete Profile.
26990
+ * @param {string} profileId
26991
+ * @param {string} patientId
26992
+ * @param {*} [options] Override http request option.
26993
+ * @throws {RequiredError}
26994
+ */
26995
+ async apiV2ProfilesPatientIdDelete(profileId: string, patientId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
26996
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ProfilesPatientIdDelete(profileId, patientId, options);
26997
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
26998
+ },
26999
+ /**
27000
+ *
27001
+ * @summary Create a Profile.
27002
+ * @param {CreateProfileCommand} [createProfileCommand]
27003
+ * @param {*} [options] Override http request option.
27004
+ * @throws {RequiredError}
27005
+ */
27006
+ async apiV2ProfilesPost(createProfileCommand?: CreateProfileCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserModel>> {
27007
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ProfilesPost(createProfileCommand, options);
27008
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
27009
+ },
26701
27010
  /**
26702
27011
  *
26703
27012
  * @summary Update Profile.
@@ -26731,7 +27040,7 @@ export const ProfilesApiFactory = function (configuration?: Configuration, baseP
26731
27040
  },
26732
27041
  /**
26733
27042
  *
26734
- * @summary Configm email.
27043
+ * @summary Confirm email.
26735
27044
  * @param {ConfirmEmailCommand} [confirmEmailCommand]
26736
27045
  * @param {*} [options] Override http request option.
26737
27046
  * @throws {RequiredError}
@@ -26748,6 +27057,27 @@ export const ProfilesApiFactory = function (configuration?: Configuration, baseP
26748
27057
  apiV2ProfilesGet(options?: any): AxiosPromise<UserModel> {
26749
27058
  return localVarFp.apiV2ProfilesGet(options).then((request) => request(axios, basePath));
26750
27059
  },
27060
+ /**
27061
+ *
27062
+ * @summary Delete Profile.
27063
+ * @param {string} profileId
27064
+ * @param {string} patientId
27065
+ * @param {*} [options] Override http request option.
27066
+ * @throws {RequiredError}
27067
+ */
27068
+ apiV2ProfilesPatientIdDelete(profileId: string, patientId: string, options?: any): AxiosPromise<boolean> {
27069
+ return localVarFp.apiV2ProfilesPatientIdDelete(profileId, patientId, options).then((request) => request(axios, basePath));
27070
+ },
27071
+ /**
27072
+ *
27073
+ * @summary Create a Profile.
27074
+ * @param {CreateProfileCommand} [createProfileCommand]
27075
+ * @param {*} [options] Override http request option.
27076
+ * @throws {RequiredError}
27077
+ */
27078
+ apiV2ProfilesPost(createProfileCommand?: CreateProfileCommand, options?: any): AxiosPromise<UserModel> {
27079
+ return localVarFp.apiV2ProfilesPost(createProfileCommand, options).then((request) => request(axios, basePath));
27080
+ },
26751
27081
  /**
26752
27082
  *
26753
27083
  * @summary Update Profile.
@@ -26782,7 +27112,7 @@ export class ProfilesApi extends BaseAPI {
26782
27112
 
26783
27113
  /**
26784
27114
  *
26785
- * @summary Configm email.
27115
+ * @summary Confirm email.
26786
27116
  * @param {ConfirmEmailCommand} [confirmEmailCommand]
26787
27117
  * @param {*} [options] Override http request option.
26788
27118
  * @throws {RequiredError}
@@ -26803,6 +27133,31 @@ export class ProfilesApi extends BaseAPI {
26803
27133
  return ProfilesApiFp(this.configuration).apiV2ProfilesGet(options).then((request) => request(this.axios, this.basePath));
26804
27134
  }
26805
27135
 
27136
+ /**
27137
+ *
27138
+ * @summary Delete Profile.
27139
+ * @param {string} profileId
27140
+ * @param {string} patientId
27141
+ * @param {*} [options] Override http request option.
27142
+ * @throws {RequiredError}
27143
+ * @memberof ProfilesApi
27144
+ */
27145
+ public apiV2ProfilesPatientIdDelete(profileId: string, patientId: string, options?: AxiosRequestConfig) {
27146
+ return ProfilesApiFp(this.configuration).apiV2ProfilesPatientIdDelete(profileId, patientId, options).then((request) => request(this.axios, this.basePath));
27147
+ }
27148
+
27149
+ /**
27150
+ *
27151
+ * @summary Create a Profile.
27152
+ * @param {CreateProfileCommand} [createProfileCommand]
27153
+ * @param {*} [options] Override http request option.
27154
+ * @throws {RequiredError}
27155
+ * @memberof ProfilesApi
27156
+ */
27157
+ public apiV2ProfilesPost(createProfileCommand?: CreateProfileCommand, options?: AxiosRequestConfig) {
27158
+ return ProfilesApiFp(this.configuration).apiV2ProfilesPost(createProfileCommand, options).then((request) => request(this.axios, this.basePath));
27159
+ }
27160
+
26806
27161
  /**
26807
27162
  *
26808
27163
  * @summary Update Profile.