ch-api-client-typescript2 4.8.1 → 4.8.3

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
@@ -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
@@ -10137,6 +10168,289 @@ export interface SubscriptionModel {
10137
10168
  */
10138
10169
  'status'?: string | null;
10139
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
+ }
10140
10454
  /**
10141
10455
  *
10142
10456
  * @export
@@ -30225,6 +30539,228 @@ export class SpecialtyTypesApi extends BaseAPI {
30225
30539
  }
30226
30540
 
30227
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
+
30228
30764
  /**
30229
30765
  * TagsApi - axios parameter creator
30230
30766
  * @export