ch-api-client-typescript2 4.7.9 → 4.8.2
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/lib/api.d.ts +482 -34
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +325 -50
- package/package.json +1 -1
- package/src/api.ts +606 -53
package/src/api.ts
CHANGED
|
@@ -3340,6 +3340,12 @@ export interface CreateProfileCommand {
|
|
|
3340
3340
|
* @memberof CreateProfileCommand
|
|
3341
3341
|
*/
|
|
3342
3342
|
'lastName'?: string | null;
|
|
3343
|
+
/**
|
|
3344
|
+
*
|
|
3345
|
+
* @type {string}
|
|
3346
|
+
* @memberof CreateProfileCommand
|
|
3347
|
+
*/
|
|
3348
|
+
'phoneCountryCode'?: string | null;
|
|
3343
3349
|
/**
|
|
3344
3350
|
*
|
|
3345
3351
|
* @type {string}
|
|
@@ -3394,12 +3400,6 @@ export interface CreateProfileCommand {
|
|
|
3394
3400
|
* @memberof CreateProfileCommand
|
|
3395
3401
|
*/
|
|
3396
3402
|
'hospitalId'?: string;
|
|
3397
|
-
/**
|
|
3398
|
-
*
|
|
3399
|
-
* @type {number}
|
|
3400
|
-
* @memberof CreateProfileCommand
|
|
3401
|
-
*/
|
|
3402
|
-
'userType'?: number;
|
|
3403
3403
|
}
|
|
3404
3404
|
/**
|
|
3405
3405
|
*
|
|
@@ -3456,6 +3456,37 @@ export interface CreateServiceReviewCommand {
|
|
|
3456
3456
|
*/
|
|
3457
3457
|
'reviewType'?: ReviewType;
|
|
3458
3458
|
}
|
|
3459
|
+
/**
|
|
3460
|
+
*
|
|
3461
|
+
* @export
|
|
3462
|
+
* @interface CreateSurveyResultCommand
|
|
3463
|
+
*/
|
|
3464
|
+
export interface CreateSurveyResultCommand {
|
|
3465
|
+
/**
|
|
3466
|
+
*
|
|
3467
|
+
* @type {string}
|
|
3468
|
+
* @memberof CreateSurveyResultCommand
|
|
3469
|
+
*/
|
|
3470
|
+
'surveyFormId'?: string;
|
|
3471
|
+
/**
|
|
3472
|
+
*
|
|
3473
|
+
* @type {string}
|
|
3474
|
+
* @memberof CreateSurveyResultCommand
|
|
3475
|
+
*/
|
|
3476
|
+
'hospitalId'?: string;
|
|
3477
|
+
/**
|
|
3478
|
+
*
|
|
3479
|
+
* @type {string}
|
|
3480
|
+
* @memberof CreateSurveyResultCommand
|
|
3481
|
+
*/
|
|
3482
|
+
'languageCode'?: string | null;
|
|
3483
|
+
/**
|
|
3484
|
+
*
|
|
3485
|
+
* @type {Array<SurveyResultElementInputModel>}
|
|
3486
|
+
* @memberof CreateSurveyResultCommand
|
|
3487
|
+
*/
|
|
3488
|
+
'elements'?: Array<SurveyResultElementInputModel> | null;
|
|
3489
|
+
}
|
|
3459
3490
|
/**
|
|
3460
3491
|
*
|
|
3461
3492
|
* @export
|
|
@@ -4990,6 +5021,12 @@ export interface DoctorModel {
|
|
|
4990
5021
|
* @memberof DoctorModel
|
|
4991
5022
|
*/
|
|
4992
5023
|
'auditableEntity'?: AuditableEntity;
|
|
5024
|
+
/**
|
|
5025
|
+
*
|
|
5026
|
+
* @type {string}
|
|
5027
|
+
* @memberof DoctorModel
|
|
5028
|
+
*/
|
|
5029
|
+
'phoneCountryCode'?: string | null;
|
|
4993
5030
|
/**
|
|
4994
5031
|
*
|
|
4995
5032
|
* @type {string}
|
|
@@ -8355,6 +8392,12 @@ export interface PatientModel {
|
|
|
8355
8392
|
* @memberof PatientModel
|
|
8356
8393
|
*/
|
|
8357
8394
|
'auditableEntity'?: AuditableEntity;
|
|
8395
|
+
/**
|
|
8396
|
+
*
|
|
8397
|
+
* @type {string}
|
|
8398
|
+
* @memberof PatientModel
|
|
8399
|
+
*/
|
|
8400
|
+
'phoneCountryCode'?: string | null;
|
|
8358
8401
|
/**
|
|
8359
8402
|
*
|
|
8360
8403
|
* @type {string}
|
|
@@ -10125,6 +10168,289 @@ export interface SubscriptionModel {
|
|
|
10125
10168
|
*/
|
|
10126
10169
|
'status'?: string | null;
|
|
10127
10170
|
}
|
|
10171
|
+
/**
|
|
10172
|
+
*
|
|
10173
|
+
* @export
|
|
10174
|
+
* @interface SurveyFormElementModel
|
|
10175
|
+
*/
|
|
10176
|
+
export interface SurveyFormElementModel {
|
|
10177
|
+
/**
|
|
10178
|
+
*
|
|
10179
|
+
* @type {string}
|
|
10180
|
+
* @memberof SurveyFormElementModel
|
|
10181
|
+
*/
|
|
10182
|
+
'id'?: string;
|
|
10183
|
+
/**
|
|
10184
|
+
*
|
|
10185
|
+
* @type {SurveyFormElementTypes}
|
|
10186
|
+
* @memberof SurveyFormElementModel
|
|
10187
|
+
*/
|
|
10188
|
+
'elementType'?: SurveyFormElementTypes;
|
|
10189
|
+
/**
|
|
10190
|
+
*
|
|
10191
|
+
* @type {string}
|
|
10192
|
+
* @memberof SurveyFormElementModel
|
|
10193
|
+
*/
|
|
10194
|
+
'formInputName'?: string | null;
|
|
10195
|
+
/**
|
|
10196
|
+
*
|
|
10197
|
+
* @type {boolean}
|
|
10198
|
+
* @memberof SurveyFormElementModel
|
|
10199
|
+
*/
|
|
10200
|
+
'isRequired'?: boolean;
|
|
10201
|
+
/**
|
|
10202
|
+
*
|
|
10203
|
+
* @type {boolean}
|
|
10204
|
+
* @memberof SurveyFormElementModel
|
|
10205
|
+
*/
|
|
10206
|
+
'isHidden'?: boolean;
|
|
10207
|
+
/**
|
|
10208
|
+
*
|
|
10209
|
+
* @type {number}
|
|
10210
|
+
* @memberof SurveyFormElementModel
|
|
10211
|
+
*/
|
|
10212
|
+
'order'?: number;
|
|
10213
|
+
/**
|
|
10214
|
+
*
|
|
10215
|
+
* @type {string}
|
|
10216
|
+
* @memberof SurveyFormElementModel
|
|
10217
|
+
*/
|
|
10218
|
+
'languageCode'?: string | null;
|
|
10219
|
+
/**
|
|
10220
|
+
*
|
|
10221
|
+
* @type {string}
|
|
10222
|
+
* @memberof SurveyFormElementModel
|
|
10223
|
+
*/
|
|
10224
|
+
'name'?: string | null;
|
|
10225
|
+
/**
|
|
10226
|
+
*
|
|
10227
|
+
* @type {string}
|
|
10228
|
+
* @memberof SurveyFormElementModel
|
|
10229
|
+
*/
|
|
10230
|
+
'placeholder'?: string | null;
|
|
10231
|
+
/**
|
|
10232
|
+
*
|
|
10233
|
+
* @type {Array<SurveyFormElementOptionModel>}
|
|
10234
|
+
* @memberof SurveyFormElementModel
|
|
10235
|
+
*/
|
|
10236
|
+
'options'?: Array<SurveyFormElementOptionModel> | null;
|
|
10237
|
+
}
|
|
10238
|
+
/**
|
|
10239
|
+
*
|
|
10240
|
+
* @export
|
|
10241
|
+
* @interface SurveyFormElementOptionModel
|
|
10242
|
+
*/
|
|
10243
|
+
export interface SurveyFormElementOptionModel {
|
|
10244
|
+
/**
|
|
10245
|
+
*
|
|
10246
|
+
* @type {string}
|
|
10247
|
+
* @memberof SurveyFormElementOptionModel
|
|
10248
|
+
*/
|
|
10249
|
+
'id'?: string;
|
|
10250
|
+
/**
|
|
10251
|
+
*
|
|
10252
|
+
* @type {string}
|
|
10253
|
+
* @memberof SurveyFormElementOptionModel
|
|
10254
|
+
*/
|
|
10255
|
+
'surveyFormElementId'?: string;
|
|
10256
|
+
/**
|
|
10257
|
+
*
|
|
10258
|
+
* @type {string}
|
|
10259
|
+
* @memberof SurveyFormElementOptionModel
|
|
10260
|
+
*/
|
|
10261
|
+
'value'?: string | null;
|
|
10262
|
+
/**
|
|
10263
|
+
*
|
|
10264
|
+
* @type {boolean}
|
|
10265
|
+
* @memberof SurveyFormElementOptionModel
|
|
10266
|
+
*/
|
|
10267
|
+
'needAdditionalValue'?: boolean;
|
|
10268
|
+
/**
|
|
10269
|
+
*
|
|
10270
|
+
* @type {number}
|
|
10271
|
+
* @memberof SurveyFormElementOptionModel
|
|
10272
|
+
*/
|
|
10273
|
+
'order'?: number;
|
|
10274
|
+
/**
|
|
10275
|
+
*
|
|
10276
|
+
* @type {string}
|
|
10277
|
+
* @memberof SurveyFormElementOptionModel
|
|
10278
|
+
*/
|
|
10279
|
+
'languageCode'?: string | null;
|
|
10280
|
+
/**
|
|
10281
|
+
*
|
|
10282
|
+
* @type {string}
|
|
10283
|
+
* @memberof SurveyFormElementOptionModel
|
|
10284
|
+
*/
|
|
10285
|
+
'name'?: string | null;
|
|
10286
|
+
}
|
|
10287
|
+
/**
|
|
10288
|
+
*
|
|
10289
|
+
* @export
|
|
10290
|
+
* @enum {string}
|
|
10291
|
+
*/
|
|
10292
|
+
|
|
10293
|
+
export const SurveyFormElementTypes = {
|
|
10294
|
+
SingleLineText: 'SingleLineText',
|
|
10295
|
+
MultiLineText: 'MultiLineText',
|
|
10296
|
+
Email: 'Email',
|
|
10297
|
+
DateTime: 'DateTime',
|
|
10298
|
+
Date: 'Date',
|
|
10299
|
+
Time: 'Time',
|
|
10300
|
+
NumberInteger: 'NumberInteger',
|
|
10301
|
+
NumberFloat: 'NumberFloat',
|
|
10302
|
+
Select: 'Select',
|
|
10303
|
+
Checkbox: 'Checkbox',
|
|
10304
|
+
Radio: 'Radio',
|
|
10305
|
+
File: 'File'
|
|
10306
|
+
} as const;
|
|
10307
|
+
|
|
10308
|
+
export type SurveyFormElementTypes = typeof SurveyFormElementTypes[keyof typeof SurveyFormElementTypes];
|
|
10309
|
+
|
|
10310
|
+
|
|
10311
|
+
/**
|
|
10312
|
+
*
|
|
10313
|
+
* @export
|
|
10314
|
+
* @interface SurveyFormModel
|
|
10315
|
+
*/
|
|
10316
|
+
export interface SurveyFormModel {
|
|
10317
|
+
/**
|
|
10318
|
+
*
|
|
10319
|
+
* @type {string}
|
|
10320
|
+
* @memberof SurveyFormModel
|
|
10321
|
+
*/
|
|
10322
|
+
'id'?: string;
|
|
10323
|
+
/**
|
|
10324
|
+
*
|
|
10325
|
+
* @type {string}
|
|
10326
|
+
* @memberof SurveyFormModel
|
|
10327
|
+
*/
|
|
10328
|
+
'hospitalId'?: string;
|
|
10329
|
+
/**
|
|
10330
|
+
*
|
|
10331
|
+
* @type {string}
|
|
10332
|
+
* @memberof SurveyFormModel
|
|
10333
|
+
*/
|
|
10334
|
+
'hospitalName'?: string | null;
|
|
10335
|
+
/**
|
|
10336
|
+
*
|
|
10337
|
+
* @type {string}
|
|
10338
|
+
* @memberof SurveyFormModel
|
|
10339
|
+
*/
|
|
10340
|
+
'hospitalWebsiteUrl'?: string | null;
|
|
10341
|
+
/**
|
|
10342
|
+
*
|
|
10343
|
+
* @type {string}
|
|
10344
|
+
* @memberof SurveyFormModel
|
|
10345
|
+
*/
|
|
10346
|
+
'hospitalLogo'?: string | null;
|
|
10347
|
+
/**
|
|
10348
|
+
*
|
|
10349
|
+
* @type {SurveyFormStatus}
|
|
10350
|
+
* @memberof SurveyFormModel
|
|
10351
|
+
*/
|
|
10352
|
+
'status'?: SurveyFormStatus;
|
|
10353
|
+
/**
|
|
10354
|
+
*
|
|
10355
|
+
* @type {string}
|
|
10356
|
+
* @memberof SurveyFormModel
|
|
10357
|
+
*/
|
|
10358
|
+
'languageCode'?: string | null;
|
|
10359
|
+
/**
|
|
10360
|
+
*
|
|
10361
|
+
* @type {string}
|
|
10362
|
+
* @memberof SurveyFormModel
|
|
10363
|
+
*/
|
|
10364
|
+
'name'?: string | null;
|
|
10365
|
+
/**
|
|
10366
|
+
*
|
|
10367
|
+
* @type {string}
|
|
10368
|
+
* @memberof SurveyFormModel
|
|
10369
|
+
*/
|
|
10370
|
+
'description'?: string | null;
|
|
10371
|
+
/**
|
|
10372
|
+
*
|
|
10373
|
+
* @type {string}
|
|
10374
|
+
* @memberof SurveyFormModel
|
|
10375
|
+
*/
|
|
10376
|
+
'overview'?: string | null;
|
|
10377
|
+
/**
|
|
10378
|
+
*
|
|
10379
|
+
* @type {string}
|
|
10380
|
+
* @memberof SurveyFormModel
|
|
10381
|
+
*/
|
|
10382
|
+
'content'?: string | null;
|
|
10383
|
+
/**
|
|
10384
|
+
*
|
|
10385
|
+
* @type {Array<SurveyFormElementModel>}
|
|
10386
|
+
* @memberof SurveyFormModel
|
|
10387
|
+
*/
|
|
10388
|
+
'elements'?: Array<SurveyFormElementModel> | null;
|
|
10389
|
+
}
|
|
10390
|
+
/**
|
|
10391
|
+
*
|
|
10392
|
+
* @export
|
|
10393
|
+
* @enum {string}
|
|
10394
|
+
*/
|
|
10395
|
+
|
|
10396
|
+
export const SurveyFormStatus = {
|
|
10397
|
+
Draft: 'Draft',
|
|
10398
|
+
Active: 'Active'
|
|
10399
|
+
} as const;
|
|
10400
|
+
|
|
10401
|
+
export type SurveyFormStatus = typeof SurveyFormStatus[keyof typeof SurveyFormStatus];
|
|
10402
|
+
|
|
10403
|
+
|
|
10404
|
+
/**
|
|
10405
|
+
*
|
|
10406
|
+
* @export
|
|
10407
|
+
* @interface SurveyResultElementInputModel
|
|
10408
|
+
*/
|
|
10409
|
+
export interface SurveyResultElementInputModel {
|
|
10410
|
+
/**
|
|
10411
|
+
*
|
|
10412
|
+
* @type {string}
|
|
10413
|
+
* @memberof SurveyResultElementInputModel
|
|
10414
|
+
*/
|
|
10415
|
+
'label'?: string | null;
|
|
10416
|
+
/**
|
|
10417
|
+
*
|
|
10418
|
+
* @type {number}
|
|
10419
|
+
* @memberof SurveyResultElementInputModel
|
|
10420
|
+
*/
|
|
10421
|
+
'order'?: number;
|
|
10422
|
+
/**
|
|
10423
|
+
*
|
|
10424
|
+
* @type {Array<SurveyResultElementValueInputModel>}
|
|
10425
|
+
* @memberof SurveyResultElementInputModel
|
|
10426
|
+
*/
|
|
10427
|
+
'values'?: Array<SurveyResultElementValueInputModel> | null;
|
|
10428
|
+
}
|
|
10429
|
+
/**
|
|
10430
|
+
*
|
|
10431
|
+
* @export
|
|
10432
|
+
* @interface SurveyResultElementValueInputModel
|
|
10433
|
+
*/
|
|
10434
|
+
export interface SurveyResultElementValueInputModel {
|
|
10435
|
+
/**
|
|
10436
|
+
*
|
|
10437
|
+
* @type {string}
|
|
10438
|
+
* @memberof SurveyResultElementValueInputModel
|
|
10439
|
+
*/
|
|
10440
|
+
'value'?: string | null;
|
|
10441
|
+
/**
|
|
10442
|
+
*
|
|
10443
|
+
* @type {string}
|
|
10444
|
+
* @memberof SurveyResultElementValueInputModel
|
|
10445
|
+
*/
|
|
10446
|
+
'additionalValue'?: string | null;
|
|
10447
|
+
/**
|
|
10448
|
+
*
|
|
10449
|
+
* @type {number}
|
|
10450
|
+
* @memberof SurveyResultElementValueInputModel
|
|
10451
|
+
*/
|
|
10452
|
+
'order'?: number;
|
|
10453
|
+
}
|
|
10128
10454
|
/**
|
|
10129
10455
|
*
|
|
10130
10456
|
* @export
|
|
@@ -10609,6 +10935,12 @@ export interface UpdateProfileCommand {
|
|
|
10609
10935
|
* @memberof UpdateProfileCommand
|
|
10610
10936
|
*/
|
|
10611
10937
|
'lastName'?: string | null;
|
|
10938
|
+
/**
|
|
10939
|
+
*
|
|
10940
|
+
* @type {string}
|
|
10941
|
+
* @memberof UpdateProfileCommand
|
|
10942
|
+
*/
|
|
10943
|
+
'phoneCountryCode'?: string | null;
|
|
10612
10944
|
/**
|
|
10613
10945
|
*
|
|
10614
10946
|
* @type {string}
|
|
@@ -10897,6 +11229,12 @@ export interface UserModel {
|
|
|
10897
11229
|
* @memberof UserModel
|
|
10898
11230
|
*/
|
|
10899
11231
|
'auditableEntity'?: AuditableEntity;
|
|
11232
|
+
/**
|
|
11233
|
+
*
|
|
11234
|
+
* @type {string}
|
|
11235
|
+
* @memberof UserModel
|
|
11236
|
+
*/
|
|
11237
|
+
'phoneCountryCode'?: string | null;
|
|
10900
11238
|
/**
|
|
10901
11239
|
*
|
|
10902
11240
|
* @type {string}
|
|
@@ -26826,20 +27164,13 @@ export const ProfilesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26826
27164
|
},
|
|
26827
27165
|
/**
|
|
26828
27166
|
*
|
|
26829
|
-
* @summary
|
|
26830
|
-
* @param {
|
|
26831
|
-
* @param {string} patientId
|
|
27167
|
+
* @summary Create a Profile.
|
|
27168
|
+
* @param {CreateProfileCommand} [createProfileCommand]
|
|
26832
27169
|
* @param {*} [options] Override http request option.
|
|
26833
27170
|
* @throws {RequiredError}
|
|
26834
27171
|
*/
|
|
26835
|
-
|
|
26836
|
-
|
|
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)));
|
|
27172
|
+
apiV2ProfilesPost: async (createProfileCommand?: CreateProfileCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27173
|
+
const localVarPath = `/api/v2/profiles`;
|
|
26843
27174
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26844
27175
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26845
27176
|
let baseOptions;
|
|
@@ -26847,7 +27178,7 @@ export const ProfilesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26847
27178
|
baseOptions = configuration.baseOptions;
|
|
26848
27179
|
}
|
|
26849
27180
|
|
|
26850
|
-
const localVarRequestOptions = { method: '
|
|
27181
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
26851
27182
|
const localVarHeaderParameter = {} as any;
|
|
26852
27183
|
const localVarQueryParameter = {} as any;
|
|
26853
27184
|
|
|
@@ -26857,9 +27188,12 @@ export const ProfilesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26857
27188
|
|
|
26858
27189
|
|
|
26859
27190
|
|
|
27191
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27192
|
+
|
|
26860
27193
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26861
27194
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26862
27195
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27196
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createProfileCommand, localVarRequestOptions, configuration)
|
|
26863
27197
|
|
|
26864
27198
|
return {
|
|
26865
27199
|
url: toPathString(localVarUrlObj),
|
|
@@ -26868,13 +27202,16 @@ export const ProfilesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26868
27202
|
},
|
|
26869
27203
|
/**
|
|
26870
27204
|
*
|
|
26871
|
-
* @summary
|
|
26872
|
-
* @param {
|
|
27205
|
+
* @summary Delete Profile.
|
|
27206
|
+
* @param {string} profileId
|
|
26873
27207
|
* @param {*} [options] Override http request option.
|
|
26874
27208
|
* @throws {RequiredError}
|
|
26875
27209
|
*/
|
|
26876
|
-
|
|
26877
|
-
|
|
27210
|
+
apiV2ProfilesProfileIdDelete: async (profileId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27211
|
+
// verify required parameter 'profileId' is not null or undefined
|
|
27212
|
+
assertParamExists('apiV2ProfilesProfileIdDelete', 'profileId', profileId)
|
|
27213
|
+
const localVarPath = `/api/v2/profiles/{profileId}`
|
|
27214
|
+
.replace(`{${"profileId"}}`, encodeURIComponent(String(profileId)));
|
|
26878
27215
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26879
27216
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26880
27217
|
let baseOptions;
|
|
@@ -26882,7 +27219,7 @@ export const ProfilesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26882
27219
|
baseOptions = configuration.baseOptions;
|
|
26883
27220
|
}
|
|
26884
27221
|
|
|
26885
|
-
const localVarRequestOptions = { method: '
|
|
27222
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
26886
27223
|
const localVarHeaderParameter = {} as any;
|
|
26887
27224
|
const localVarQueryParameter = {} as any;
|
|
26888
27225
|
|
|
@@ -26892,12 +27229,9 @@ export const ProfilesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26892
27229
|
|
|
26893
27230
|
|
|
26894
27231
|
|
|
26895
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26896
|
-
|
|
26897
27232
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26898
27233
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26899
27234
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26900
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createProfileCommand, localVarRequestOptions, configuration)
|
|
26901
27235
|
|
|
26902
27236
|
return {
|
|
26903
27237
|
url: toPathString(localVarUrlObj),
|
|
@@ -26986,25 +27320,24 @@ export const ProfilesApiFp = function(configuration?: Configuration) {
|
|
|
26986
27320
|
},
|
|
26987
27321
|
/**
|
|
26988
27322
|
*
|
|
26989
|
-
* @summary
|
|
26990
|
-
* @param {
|
|
26991
|
-
* @param {string} patientId
|
|
27323
|
+
* @summary Create a Profile.
|
|
27324
|
+
* @param {CreateProfileCommand} [createProfileCommand]
|
|
26992
27325
|
* @param {*} [options] Override http request option.
|
|
26993
27326
|
* @throws {RequiredError}
|
|
26994
27327
|
*/
|
|
26995
|
-
async
|
|
26996
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
27328
|
+
async apiV2ProfilesPost(createProfileCommand?: CreateProfileCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserModel>> {
|
|
27329
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ProfilesPost(createProfileCommand, options);
|
|
26997
27330
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26998
27331
|
},
|
|
26999
27332
|
/**
|
|
27000
27333
|
*
|
|
27001
|
-
* @summary
|
|
27002
|
-
* @param {
|
|
27334
|
+
* @summary Delete Profile.
|
|
27335
|
+
* @param {string} profileId
|
|
27003
27336
|
* @param {*} [options] Override http request option.
|
|
27004
27337
|
* @throws {RequiredError}
|
|
27005
27338
|
*/
|
|
27006
|
-
async
|
|
27007
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
27339
|
+
async apiV2ProfilesProfileIdDelete(profileId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
27340
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ProfilesProfileIdDelete(profileId, options);
|
|
27008
27341
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
27009
27342
|
},
|
|
27010
27343
|
/**
|
|
@@ -27059,24 +27392,23 @@ export const ProfilesApiFactory = function (configuration?: Configuration, baseP
|
|
|
27059
27392
|
},
|
|
27060
27393
|
/**
|
|
27061
27394
|
*
|
|
27062
|
-
* @summary
|
|
27063
|
-
* @param {
|
|
27064
|
-
* @param {string} patientId
|
|
27395
|
+
* @summary Create a Profile.
|
|
27396
|
+
* @param {CreateProfileCommand} [createProfileCommand]
|
|
27065
27397
|
* @param {*} [options] Override http request option.
|
|
27066
27398
|
* @throws {RequiredError}
|
|
27067
27399
|
*/
|
|
27068
|
-
|
|
27069
|
-
return localVarFp.
|
|
27400
|
+
apiV2ProfilesPost(createProfileCommand?: CreateProfileCommand, options?: any): AxiosPromise<UserModel> {
|
|
27401
|
+
return localVarFp.apiV2ProfilesPost(createProfileCommand, options).then((request) => request(axios, basePath));
|
|
27070
27402
|
},
|
|
27071
27403
|
/**
|
|
27072
27404
|
*
|
|
27073
|
-
* @summary
|
|
27074
|
-
* @param {
|
|
27405
|
+
* @summary Delete Profile.
|
|
27406
|
+
* @param {string} profileId
|
|
27075
27407
|
* @param {*} [options] Override http request option.
|
|
27076
27408
|
* @throws {RequiredError}
|
|
27077
27409
|
*/
|
|
27078
|
-
|
|
27079
|
-
return localVarFp.
|
|
27410
|
+
apiV2ProfilesProfileIdDelete(profileId: string, options?: any): AxiosPromise<boolean> {
|
|
27411
|
+
return localVarFp.apiV2ProfilesProfileIdDelete(profileId, options).then((request) => request(axios, basePath));
|
|
27080
27412
|
},
|
|
27081
27413
|
/**
|
|
27082
27414
|
*
|
|
@@ -27135,27 +27467,26 @@ export class ProfilesApi extends BaseAPI {
|
|
|
27135
27467
|
|
|
27136
27468
|
/**
|
|
27137
27469
|
*
|
|
27138
|
-
* @summary
|
|
27139
|
-
* @param {
|
|
27140
|
-
* @param {string} patientId
|
|
27470
|
+
* @summary Create a Profile.
|
|
27471
|
+
* @param {CreateProfileCommand} [createProfileCommand]
|
|
27141
27472
|
* @param {*} [options] Override http request option.
|
|
27142
27473
|
* @throws {RequiredError}
|
|
27143
27474
|
* @memberof ProfilesApi
|
|
27144
27475
|
*/
|
|
27145
|
-
public
|
|
27146
|
-
return ProfilesApiFp(this.configuration).
|
|
27476
|
+
public apiV2ProfilesPost(createProfileCommand?: CreateProfileCommand, options?: AxiosRequestConfig) {
|
|
27477
|
+
return ProfilesApiFp(this.configuration).apiV2ProfilesPost(createProfileCommand, options).then((request) => request(this.axios, this.basePath));
|
|
27147
27478
|
}
|
|
27148
27479
|
|
|
27149
27480
|
/**
|
|
27150
27481
|
*
|
|
27151
|
-
* @summary
|
|
27152
|
-
* @param {
|
|
27482
|
+
* @summary Delete Profile.
|
|
27483
|
+
* @param {string} profileId
|
|
27153
27484
|
* @param {*} [options] Override http request option.
|
|
27154
27485
|
* @throws {RequiredError}
|
|
27155
27486
|
* @memberof ProfilesApi
|
|
27156
27487
|
*/
|
|
27157
|
-
public
|
|
27158
|
-
return ProfilesApiFp(this.configuration).
|
|
27488
|
+
public apiV2ProfilesProfileIdDelete(profileId: string, options?: AxiosRequestConfig) {
|
|
27489
|
+
return ProfilesApiFp(this.configuration).apiV2ProfilesProfileIdDelete(profileId, options).then((request) => request(this.axios, this.basePath));
|
|
27159
27490
|
}
|
|
27160
27491
|
|
|
27161
27492
|
/**
|
|
@@ -30208,6 +30539,228 @@ export class SpecialtyTypesApi extends BaseAPI {
|
|
|
30208
30539
|
}
|
|
30209
30540
|
|
|
30210
30541
|
|
|
30542
|
+
/**
|
|
30543
|
+
* SurveyFormsApi - axios parameter creator
|
|
30544
|
+
* @export
|
|
30545
|
+
*/
|
|
30546
|
+
export const SurveyFormsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30547
|
+
return {
|
|
30548
|
+
/**
|
|
30549
|
+
*
|
|
30550
|
+
* @summary Get survey form by id
|
|
30551
|
+
* @param {string} surveyFormId
|
|
30552
|
+
* @param {string} [languageCode]
|
|
30553
|
+
* @param {*} [options] Override http request option.
|
|
30554
|
+
* @throws {RequiredError}
|
|
30555
|
+
*/
|
|
30556
|
+
apiV2SurveyformsSurveyFormIdGet: async (surveyFormId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30557
|
+
// verify required parameter 'surveyFormId' is not null or undefined
|
|
30558
|
+
assertParamExists('apiV2SurveyformsSurveyFormIdGet', 'surveyFormId', surveyFormId)
|
|
30559
|
+
const localVarPath = `/api/v2/surveyforms/{surveyFormId}`
|
|
30560
|
+
.replace(`{${"surveyFormId"}}`, encodeURIComponent(String(surveyFormId)));
|
|
30561
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30562
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30563
|
+
let baseOptions;
|
|
30564
|
+
if (configuration) {
|
|
30565
|
+
baseOptions = configuration.baseOptions;
|
|
30566
|
+
}
|
|
30567
|
+
|
|
30568
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
30569
|
+
const localVarHeaderParameter = {} as any;
|
|
30570
|
+
const localVarQueryParameter = {} as any;
|
|
30571
|
+
|
|
30572
|
+
if (languageCode !== undefined) {
|
|
30573
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
30574
|
+
}
|
|
30575
|
+
|
|
30576
|
+
|
|
30577
|
+
|
|
30578
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30579
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30580
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30581
|
+
|
|
30582
|
+
return {
|
|
30583
|
+
url: toPathString(localVarUrlObj),
|
|
30584
|
+
options: localVarRequestOptions,
|
|
30585
|
+
};
|
|
30586
|
+
},
|
|
30587
|
+
}
|
|
30588
|
+
};
|
|
30589
|
+
|
|
30590
|
+
/**
|
|
30591
|
+
* SurveyFormsApi - functional programming interface
|
|
30592
|
+
* @export
|
|
30593
|
+
*/
|
|
30594
|
+
export const SurveyFormsApiFp = function(configuration?: Configuration) {
|
|
30595
|
+
const localVarAxiosParamCreator = SurveyFormsApiAxiosParamCreator(configuration)
|
|
30596
|
+
return {
|
|
30597
|
+
/**
|
|
30598
|
+
*
|
|
30599
|
+
* @summary Get survey form by id
|
|
30600
|
+
* @param {string} surveyFormId
|
|
30601
|
+
* @param {string} [languageCode]
|
|
30602
|
+
* @param {*} [options] Override http request option.
|
|
30603
|
+
* @throws {RequiredError}
|
|
30604
|
+
*/
|
|
30605
|
+
async apiV2SurveyformsSurveyFormIdGet(surveyFormId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SurveyFormModel>> {
|
|
30606
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2SurveyformsSurveyFormIdGet(surveyFormId, languageCode, options);
|
|
30607
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30608
|
+
},
|
|
30609
|
+
}
|
|
30610
|
+
};
|
|
30611
|
+
|
|
30612
|
+
/**
|
|
30613
|
+
* SurveyFormsApi - factory interface
|
|
30614
|
+
* @export
|
|
30615
|
+
*/
|
|
30616
|
+
export const SurveyFormsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
30617
|
+
const localVarFp = SurveyFormsApiFp(configuration)
|
|
30618
|
+
return {
|
|
30619
|
+
/**
|
|
30620
|
+
*
|
|
30621
|
+
* @summary Get survey form by id
|
|
30622
|
+
* @param {string} surveyFormId
|
|
30623
|
+
* @param {string} [languageCode]
|
|
30624
|
+
* @param {*} [options] Override http request option.
|
|
30625
|
+
* @throws {RequiredError}
|
|
30626
|
+
*/
|
|
30627
|
+
apiV2SurveyformsSurveyFormIdGet(surveyFormId: string, languageCode?: string, options?: any): AxiosPromise<SurveyFormModel> {
|
|
30628
|
+
return localVarFp.apiV2SurveyformsSurveyFormIdGet(surveyFormId, languageCode, options).then((request) => request(axios, basePath));
|
|
30629
|
+
},
|
|
30630
|
+
};
|
|
30631
|
+
};
|
|
30632
|
+
|
|
30633
|
+
/**
|
|
30634
|
+
* SurveyFormsApi - object-oriented interface
|
|
30635
|
+
* @export
|
|
30636
|
+
* @class SurveyFormsApi
|
|
30637
|
+
* @extends {BaseAPI}
|
|
30638
|
+
*/
|
|
30639
|
+
export class SurveyFormsApi extends BaseAPI {
|
|
30640
|
+
/**
|
|
30641
|
+
*
|
|
30642
|
+
* @summary Get survey form by id
|
|
30643
|
+
* @param {string} surveyFormId
|
|
30644
|
+
* @param {string} [languageCode]
|
|
30645
|
+
* @param {*} [options] Override http request option.
|
|
30646
|
+
* @throws {RequiredError}
|
|
30647
|
+
* @memberof SurveyFormsApi
|
|
30648
|
+
*/
|
|
30649
|
+
public apiV2SurveyformsSurveyFormIdGet(surveyFormId: string, languageCode?: string, options?: AxiosRequestConfig) {
|
|
30650
|
+
return SurveyFormsApiFp(this.configuration).apiV2SurveyformsSurveyFormIdGet(surveyFormId, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
30651
|
+
}
|
|
30652
|
+
}
|
|
30653
|
+
|
|
30654
|
+
|
|
30655
|
+
/**
|
|
30656
|
+
* SurveyResultsApi - axios parameter creator
|
|
30657
|
+
* @export
|
|
30658
|
+
*/
|
|
30659
|
+
export const SurveyResultsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30660
|
+
return {
|
|
30661
|
+
/**
|
|
30662
|
+
*
|
|
30663
|
+
* @summary Create survey result
|
|
30664
|
+
* @param {CreateSurveyResultCommand} [createSurveyResultCommand]
|
|
30665
|
+
* @param {*} [options] Override http request option.
|
|
30666
|
+
* @throws {RequiredError}
|
|
30667
|
+
*/
|
|
30668
|
+
apiV2SurveyresultsPost: async (createSurveyResultCommand?: CreateSurveyResultCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30669
|
+
const localVarPath = `/api/v2/surveyresults`;
|
|
30670
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30671
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30672
|
+
let baseOptions;
|
|
30673
|
+
if (configuration) {
|
|
30674
|
+
baseOptions = configuration.baseOptions;
|
|
30675
|
+
}
|
|
30676
|
+
|
|
30677
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
30678
|
+
const localVarHeaderParameter = {} as any;
|
|
30679
|
+
const localVarQueryParameter = {} as any;
|
|
30680
|
+
|
|
30681
|
+
// authentication oauth2 required
|
|
30682
|
+
// oauth required
|
|
30683
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
30684
|
+
|
|
30685
|
+
|
|
30686
|
+
|
|
30687
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30688
|
+
|
|
30689
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30690
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30691
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30692
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSurveyResultCommand, localVarRequestOptions, configuration)
|
|
30693
|
+
|
|
30694
|
+
return {
|
|
30695
|
+
url: toPathString(localVarUrlObj),
|
|
30696
|
+
options: localVarRequestOptions,
|
|
30697
|
+
};
|
|
30698
|
+
},
|
|
30699
|
+
}
|
|
30700
|
+
};
|
|
30701
|
+
|
|
30702
|
+
/**
|
|
30703
|
+
* SurveyResultsApi - functional programming interface
|
|
30704
|
+
* @export
|
|
30705
|
+
*/
|
|
30706
|
+
export const SurveyResultsApiFp = function(configuration?: Configuration) {
|
|
30707
|
+
const localVarAxiosParamCreator = SurveyResultsApiAxiosParamCreator(configuration)
|
|
30708
|
+
return {
|
|
30709
|
+
/**
|
|
30710
|
+
*
|
|
30711
|
+
* @summary Create survey result
|
|
30712
|
+
* @param {CreateSurveyResultCommand} [createSurveyResultCommand]
|
|
30713
|
+
* @param {*} [options] Override http request option.
|
|
30714
|
+
* @throws {RequiredError}
|
|
30715
|
+
*/
|
|
30716
|
+
async apiV2SurveyresultsPost(createSurveyResultCommand?: CreateSurveyResultCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
30717
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2SurveyresultsPost(createSurveyResultCommand, options);
|
|
30718
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30719
|
+
},
|
|
30720
|
+
}
|
|
30721
|
+
};
|
|
30722
|
+
|
|
30723
|
+
/**
|
|
30724
|
+
* SurveyResultsApi - factory interface
|
|
30725
|
+
* @export
|
|
30726
|
+
*/
|
|
30727
|
+
export const SurveyResultsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
30728
|
+
const localVarFp = SurveyResultsApiFp(configuration)
|
|
30729
|
+
return {
|
|
30730
|
+
/**
|
|
30731
|
+
*
|
|
30732
|
+
* @summary Create survey result
|
|
30733
|
+
* @param {CreateSurveyResultCommand} [createSurveyResultCommand]
|
|
30734
|
+
* @param {*} [options] Override http request option.
|
|
30735
|
+
* @throws {RequiredError}
|
|
30736
|
+
*/
|
|
30737
|
+
apiV2SurveyresultsPost(createSurveyResultCommand?: CreateSurveyResultCommand, options?: any): AxiosPromise<boolean> {
|
|
30738
|
+
return localVarFp.apiV2SurveyresultsPost(createSurveyResultCommand, options).then((request) => request(axios, basePath));
|
|
30739
|
+
},
|
|
30740
|
+
};
|
|
30741
|
+
};
|
|
30742
|
+
|
|
30743
|
+
/**
|
|
30744
|
+
* SurveyResultsApi - object-oriented interface
|
|
30745
|
+
* @export
|
|
30746
|
+
* @class SurveyResultsApi
|
|
30747
|
+
* @extends {BaseAPI}
|
|
30748
|
+
*/
|
|
30749
|
+
export class SurveyResultsApi extends BaseAPI {
|
|
30750
|
+
/**
|
|
30751
|
+
*
|
|
30752
|
+
* @summary Create survey result
|
|
30753
|
+
* @param {CreateSurveyResultCommand} [createSurveyResultCommand]
|
|
30754
|
+
* @param {*} [options] Override http request option.
|
|
30755
|
+
* @throws {RequiredError}
|
|
30756
|
+
* @memberof SurveyResultsApi
|
|
30757
|
+
*/
|
|
30758
|
+
public apiV2SurveyresultsPost(createSurveyResultCommand?: CreateSurveyResultCommand, options?: AxiosRequestConfig) {
|
|
30759
|
+
return SurveyResultsApiFp(this.configuration).apiV2SurveyresultsPost(createSurveyResultCommand, options).then((request) => request(this.axios, this.basePath));
|
|
30760
|
+
}
|
|
30761
|
+
}
|
|
30762
|
+
|
|
30763
|
+
|
|
30211
30764
|
/**
|
|
30212
30765
|
* TagsApi - axios parameter creator
|
|
30213
30766
|
* @export
|