ch-api-client-typescript2 4.7.7 → 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
  /**
@@ -20540,6 +20730,48 @@ export class FaqsApi extends BaseAPI {
20540
20730
  */
20541
20731
  export const GroupChannelsApiAxiosParamCreator = function (configuration?: Configuration) {
20542
20732
  return {
20733
+ /**
20734
+ *
20735
+ * @summary Invite hospital manager into GroupChannel
20736
+ * @param {string} channelUrl
20737
+ * @param {string} hospitalId
20738
+ * @param {*} [options] Override http request option.
20739
+ * @throws {RequiredError}
20740
+ */
20741
+ apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost: async (channelUrl: string, hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
20742
+ // verify required parameter 'channelUrl' is not null or undefined
20743
+ assertParamExists('apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost', 'channelUrl', channelUrl)
20744
+ // verify required parameter 'hospitalId' is not null or undefined
20745
+ assertParamExists('apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost', 'hospitalId', hospitalId)
20746
+ const localVarPath = `/api/v2/groupchannels/{channelUrl}/invite/{hospitalId}/manager`
20747
+ .replace(`{${"channelUrl"}}`, encodeURIComponent(String(channelUrl)))
20748
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
20749
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20750
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20751
+ let baseOptions;
20752
+ if (configuration) {
20753
+ baseOptions = configuration.baseOptions;
20754
+ }
20755
+
20756
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20757
+ const localVarHeaderParameter = {} as any;
20758
+ const localVarQueryParameter = {} as any;
20759
+
20760
+ // authentication oauth2 required
20761
+ // oauth required
20762
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
20763
+
20764
+
20765
+
20766
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20767
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20768
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20769
+
20770
+ return {
20771
+ url: toPathString(localVarUrlObj),
20772
+ options: localVarRequestOptions,
20773
+ };
20774
+ },
20543
20775
  /**
20544
20776
  *
20545
20777
  * @param {string} channelUrl
@@ -20727,6 +20959,18 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
20727
20959
  export const GroupChannelsApiFp = function(configuration?: Configuration) {
20728
20960
  const localVarAxiosParamCreator = GroupChannelsApiAxiosParamCreator(configuration)
20729
20961
  return {
20962
+ /**
20963
+ *
20964
+ * @summary Invite hospital manager into GroupChannel
20965
+ * @param {string} channelUrl
20966
+ * @param {string} hospitalId
20967
+ * @param {*} [options] Override http request option.
20968
+ * @throws {RequiredError}
20969
+ */
20970
+ async apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost(channelUrl: string, hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
20971
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost(channelUrl, hospitalId, options);
20972
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
20973
+ },
20730
20974
  /**
20731
20975
  *
20732
20976
  * @param {string} channelUrl
@@ -20783,6 +21027,17 @@ export const GroupChannelsApiFp = function(configuration?: Configuration) {
20783
21027
  export const GroupChannelsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
20784
21028
  const localVarFp = GroupChannelsApiFp(configuration)
20785
21029
  return {
21030
+ /**
21031
+ *
21032
+ * @summary Invite hospital manager into GroupChannel
21033
+ * @param {string} channelUrl
21034
+ * @param {string} hospitalId
21035
+ * @param {*} [options] Override http request option.
21036
+ * @throws {RequiredError}
21037
+ */
21038
+ apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost(channelUrl: string, hospitalId: string, options?: any): AxiosPromise<boolean> {
21039
+ return localVarFp.apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost(channelUrl, hospitalId, options).then((request) => request(axios, basePath));
21040
+ },
20786
21041
  /**
20787
21042
  *
20788
21043
  * @param {string} channelUrl
@@ -20835,6 +21090,19 @@ export const GroupChannelsApiFactory = function (configuration?: Configuration,
20835
21090
  * @extends {BaseAPI}
20836
21091
  */
20837
21092
  export class GroupChannelsApi extends BaseAPI {
21093
+ /**
21094
+ *
21095
+ * @summary Invite hospital manager into GroupChannel
21096
+ * @param {string} channelUrl
21097
+ * @param {string} hospitalId
21098
+ * @param {*} [options] Override http request option.
21099
+ * @throws {RequiredError}
21100
+ * @memberof GroupChannelsApi
21101
+ */
21102
+ public apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost(channelUrl: string, hospitalId: string, options?: AxiosRequestConfig) {
21103
+ return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsChannelUrlInviteHospitalIdManagerPost(channelUrl, hospitalId, options).then((request) => request(this.axios, this.basePath));
21104
+ }
21105
+
20838
21106
  /**
20839
21107
  *
20840
21108
  * @param {string} channelUrl
@@ -25666,6 +25934,7 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
25666
25934
  * @summary Delete Patient.
25667
25935
  * @param {string} patientId
25668
25936
  * @param {*} [options] Override http request option.
25937
+ * @deprecated
25669
25938
  * @throws {RequiredError}
25670
25939
  */
25671
25940
  apiV2PatientsPatientIdDelete: async (patientId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -25704,6 +25973,7 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
25704
25973
  * @summary Get Patient.
25705
25974
  * @param {string} patientId
25706
25975
  * @param {*} [options] Override http request option.
25976
+ * @deprecated
25707
25977
  * @throws {RequiredError}
25708
25978
  */
25709
25979
  apiV2PatientsPatientIdGet: async (patientId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -25743,6 +26013,7 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
25743
26013
  * @param {string} patientId
25744
26014
  * @param {UpdatePatientCommand} [updatePatientCommand]
25745
26015
  * @param {*} [options] Override http request option.
26016
+ * @deprecated
25746
26017
  * @throws {RequiredError}
25747
26018
  */
25748
26019
  apiV2PatientsPatientIdPut: async (patientId: string, updatePatientCommand?: UpdatePatientCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -25784,6 +26055,7 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
25784
26055
  * @summary Create a Patient.
25785
26056
  * @param {CreatePatientCommand} [createPatientCommand]
25786
26057
  * @param {*} [options] Override http request option.
26058
+ * @deprecated
25787
26059
  * @throws {RequiredError}
25788
26060
  */
25789
26061
  apiV2PatientsPost: async (createPatientCommand?: CreatePatientCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -25854,6 +26126,7 @@ export const PatientsApiFp = function(configuration?: Configuration) {
25854
26126
  * @summary Delete Patient.
25855
26127
  * @param {string} patientId
25856
26128
  * @param {*} [options] Override http request option.
26129
+ * @deprecated
25857
26130
  * @throws {RequiredError}
25858
26131
  */
25859
26132
  async apiV2PatientsPatientIdDelete(patientId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
@@ -25865,6 +26138,7 @@ export const PatientsApiFp = function(configuration?: Configuration) {
25865
26138
  * @summary Get Patient.
25866
26139
  * @param {string} patientId
25867
26140
  * @param {*} [options] Override http request option.
26141
+ * @deprecated
25868
26142
  * @throws {RequiredError}
25869
26143
  */
25870
26144
  async apiV2PatientsPatientIdGet(patientId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatientModel>> {
@@ -25877,6 +26151,7 @@ export const PatientsApiFp = function(configuration?: Configuration) {
25877
26151
  * @param {string} patientId
25878
26152
  * @param {UpdatePatientCommand} [updatePatientCommand]
25879
26153
  * @param {*} [options] Override http request option.
26154
+ * @deprecated
25880
26155
  * @throws {RequiredError}
25881
26156
  */
25882
26157
  async apiV2PatientsPatientIdPut(patientId: string, updatePatientCommand?: UpdatePatientCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatientModel>> {
@@ -25888,6 +26163,7 @@ export const PatientsApiFp = function(configuration?: Configuration) {
25888
26163
  * @summary Create a Patient.
25889
26164
  * @param {CreatePatientCommand} [createPatientCommand]
25890
26165
  * @param {*} [options] Override http request option.
26166
+ * @deprecated
25891
26167
  * @throws {RequiredError}
25892
26168
  */
25893
26169
  async apiV2PatientsPost(createPatientCommand?: CreatePatientCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatientModel>> {
@@ -25929,6 +26205,7 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
25929
26205
  * @summary Delete Patient.
25930
26206
  * @param {string} patientId
25931
26207
  * @param {*} [options] Override http request option.
26208
+ * @deprecated
25932
26209
  * @throws {RequiredError}
25933
26210
  */
25934
26211
  apiV2PatientsPatientIdDelete(patientId: string, options?: any): AxiosPromise<boolean> {
@@ -25939,6 +26216,7 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
25939
26216
  * @summary Get Patient.
25940
26217
  * @param {string} patientId
25941
26218
  * @param {*} [options] Override http request option.
26219
+ * @deprecated
25942
26220
  * @throws {RequiredError}
25943
26221
  */
25944
26222
  apiV2PatientsPatientIdGet(patientId: string, options?: any): AxiosPromise<PatientModel> {
@@ -25950,6 +26228,7 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
25950
26228
  * @param {string} patientId
25951
26229
  * @param {UpdatePatientCommand} [updatePatientCommand]
25952
26230
  * @param {*} [options] Override http request option.
26231
+ * @deprecated
25953
26232
  * @throws {RequiredError}
25954
26233
  */
25955
26234
  apiV2PatientsPatientIdPut(patientId: string, updatePatientCommand?: UpdatePatientCommand, options?: any): AxiosPromise<PatientModel> {
@@ -25960,6 +26239,7 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
25960
26239
  * @summary Create a Patient.
25961
26240
  * @param {CreatePatientCommand} [createPatientCommand]
25962
26241
  * @param {*} [options] Override http request option.
26242
+ * @deprecated
25963
26243
  * @throws {RequiredError}
25964
26244
  */
25965
26245
  apiV2PatientsPost(createPatientCommand?: CreatePatientCommand, options?: any): AxiosPromise<PatientModel> {
@@ -26004,6 +26284,7 @@ export class PatientsApi extends BaseAPI {
26004
26284
  * @summary Delete Patient.
26005
26285
  * @param {string} patientId
26006
26286
  * @param {*} [options] Override http request option.
26287
+ * @deprecated
26007
26288
  * @throws {RequiredError}
26008
26289
  * @memberof PatientsApi
26009
26290
  */
@@ -26016,6 +26297,7 @@ export class PatientsApi extends BaseAPI {
26016
26297
  * @summary Get Patient.
26017
26298
  * @param {string} patientId
26018
26299
  * @param {*} [options] Override http request option.
26300
+ * @deprecated
26019
26301
  * @throws {RequiredError}
26020
26302
  * @memberof PatientsApi
26021
26303
  */
@@ -26029,6 +26311,7 @@ export class PatientsApi extends BaseAPI {
26029
26311
  * @param {string} patientId
26030
26312
  * @param {UpdatePatientCommand} [updatePatientCommand]
26031
26313
  * @param {*} [options] Override http request option.
26314
+ * @deprecated
26032
26315
  * @throws {RequiredError}
26033
26316
  * @memberof PatientsApi
26034
26317
  */
@@ -26041,6 +26324,7 @@ export class PatientsApi extends BaseAPI {
26041
26324
  * @summary Create a Patient.
26042
26325
  * @param {CreatePatientCommand} [createPatientCommand]
26043
26326
  * @param {*} [options] Override http request option.
26327
+ * @deprecated
26044
26328
  * @throws {RequiredError}
26045
26329
  * @memberof PatientsApi
26046
26330
  */
@@ -26470,7 +26754,7 @@ export const ProfilesApiAxiosParamCreator = function (configuration?: Configurat
26470
26754
  },
26471
26755
  /**
26472
26756
  *
26473
- * @summary Configm email.
26757
+ * @summary Confirm email.
26474
26758
  * @param {ConfirmEmailCommand} [confirmEmailCommand]
26475
26759
  * @param {*} [options] Override http request option.
26476
26760
  * @throws {RequiredError}
@@ -26540,6 +26824,86 @@ export const ProfilesApiAxiosParamCreator = function (configuration?: Configurat
26540
26824
  options: localVarRequestOptions,
26541
26825
  };
26542
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
+ },
26543
26907
  /**
26544
26908
  *
26545
26909
  * @summary Update Profile.
@@ -26601,7 +26965,7 @@ export const ProfilesApiFp = function(configuration?: Configuration) {
26601
26965
  },
26602
26966
  /**
26603
26967
  *
26604
- * @summary Configm email.
26968
+ * @summary Confirm email.
26605
26969
  * @param {ConfirmEmailCommand} [confirmEmailCommand]
26606
26970
  * @param {*} [options] Override http request option.
26607
26971
  * @throws {RequiredError}
@@ -26620,6 +26984,29 @@ export const ProfilesApiFp = function(configuration?: Configuration) {
26620
26984
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ProfilesGet(options);
26621
26985
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
26622
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
+ },
26623
27010
  /**
26624
27011
  *
26625
27012
  * @summary Update Profile.
@@ -26653,7 +27040,7 @@ export const ProfilesApiFactory = function (configuration?: Configuration, baseP
26653
27040
  },
26654
27041
  /**
26655
27042
  *
26656
- * @summary Configm email.
27043
+ * @summary Confirm email.
26657
27044
  * @param {ConfirmEmailCommand} [confirmEmailCommand]
26658
27045
  * @param {*} [options] Override http request option.
26659
27046
  * @throws {RequiredError}
@@ -26670,6 +27057,27 @@ export const ProfilesApiFactory = function (configuration?: Configuration, baseP
26670
27057
  apiV2ProfilesGet(options?: any): AxiosPromise<UserModel> {
26671
27058
  return localVarFp.apiV2ProfilesGet(options).then((request) => request(axios, basePath));
26672
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
+ },
26673
27081
  /**
26674
27082
  *
26675
27083
  * @summary Update Profile.
@@ -26704,7 +27112,7 @@ export class ProfilesApi extends BaseAPI {
26704
27112
 
26705
27113
  /**
26706
27114
  *
26707
- * @summary Configm email.
27115
+ * @summary Confirm email.
26708
27116
  * @param {ConfirmEmailCommand} [confirmEmailCommand]
26709
27117
  * @param {*} [options] Override http request option.
26710
27118
  * @throws {RequiredError}
@@ -26725,6 +27133,31 @@ export class ProfilesApi extends BaseAPI {
26725
27133
  return ProfilesApiFp(this.configuration).apiV2ProfilesGet(options).then((request) => request(this.axios, this.basePath));
26726
27134
  }
26727
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
+
26728
27161
  /**
26729
27162
  *
26730
27163
  * @summary Update Profile.