ch-api-client-typescript2 5.36.52 → 5.36.56

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.
@@ -35,6 +35,12 @@ import { DoctorAffiliationModel } from '../models';
35
35
  // @ts-ignore
36
36
  import { FooterNavigationItemModel } from '../models';
37
37
  // @ts-ignore
38
+ import { FormResultStatus } from '../models';
39
+ // @ts-ignore
40
+ import { FormResultsModel } from '../models';
41
+ // @ts-ignore
42
+ import { FormTemplateType } from '../models';
43
+ // @ts-ignore
38
44
  import { GetAppointmentTimetablesResponseModel } from '../models';
39
45
  // @ts-ignore
40
46
  import { HeaderNavigationItemModel } from '../models';
@@ -1269,6 +1275,86 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
1269
1275
 
1270
1276
 
1271
1277
 
1278
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1279
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1280
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1281
+
1282
+ return {
1283
+ url: toPathString(localVarUrlObj),
1284
+ options: localVarRequestOptions,
1285
+ };
1286
+ },
1287
+ /**
1288
+ *
1289
+ * @summary Get formResults by hospitalId
1290
+ * @param {string} hospitalId
1291
+ * @param {string} [languageCode]
1292
+ * @param {Date} [startDate]
1293
+ * @param {Date} [endDate]
1294
+ * @param {FormTemplateType} [formTemplateType]
1295
+ * @param {FormResultStatus} [status]
1296
+ * @param {number} [page]
1297
+ * @param {number} [limit]
1298
+ * @param {Date} [lastRetrieved]
1299
+ * @param {*} [options] Override http request option.
1300
+ * @throws {RequiredError}
1301
+ */
1302
+ apiV2HospitalsHospitalIdFormresultsGet: async (hospitalId: string, languageCode?: string, startDate?: Date, endDate?: Date, formTemplateType?: FormTemplateType, status?: FormResultStatus, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1303
+ // verify required parameter 'hospitalId' is not null or undefined
1304
+ assertParamExists('apiV2HospitalsHospitalIdFormresultsGet', 'hospitalId', hospitalId)
1305
+ const localVarPath = `/api/v2/hospitals/{hospitalId}/formresults`
1306
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
1307
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1308
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1309
+ let baseOptions;
1310
+ if (configuration) {
1311
+ baseOptions = configuration.baseOptions;
1312
+ }
1313
+
1314
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1315
+ const localVarHeaderParameter = {} as any;
1316
+ const localVarQueryParameter = {} as any;
1317
+
1318
+ if (languageCode !== undefined) {
1319
+ localVarQueryParameter['LanguageCode'] = languageCode;
1320
+ }
1321
+
1322
+ if (startDate !== undefined) {
1323
+ localVarQueryParameter['StartDate'] = (startDate as any instanceof Date) ?
1324
+ (startDate as any).toISOString() :
1325
+ startDate;
1326
+ }
1327
+
1328
+ if (endDate !== undefined) {
1329
+ localVarQueryParameter['EndDate'] = (endDate as any instanceof Date) ?
1330
+ (endDate as any).toISOString() :
1331
+ endDate;
1332
+ }
1333
+
1334
+ if (formTemplateType !== undefined) {
1335
+ localVarQueryParameter['FormTemplateType'] = formTemplateType;
1336
+ }
1337
+
1338
+ if (status !== undefined) {
1339
+ localVarQueryParameter['Status'] = status;
1340
+ }
1341
+
1342
+ if (page !== undefined) {
1343
+ localVarQueryParameter['page'] = page;
1344
+ }
1345
+
1346
+ if (limit !== undefined) {
1347
+ localVarQueryParameter['limit'] = limit;
1348
+ }
1349
+
1350
+ if (lastRetrieved !== undefined) {
1351
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
1352
+ (lastRetrieved as any).toISOString() :
1353
+ lastRetrieved;
1354
+ }
1355
+
1356
+
1357
+
1272
1358
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1273
1359
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1274
1360
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3902,6 +3988,25 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
3902
3988
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId, languageCode, options);
3903
3989
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3904
3990
  },
3991
+ /**
3992
+ *
3993
+ * @summary Get formResults by hospitalId
3994
+ * @param {string} hospitalId
3995
+ * @param {string} [languageCode]
3996
+ * @param {Date} [startDate]
3997
+ * @param {Date} [endDate]
3998
+ * @param {FormTemplateType} [formTemplateType]
3999
+ * @param {FormResultStatus} [status]
4000
+ * @param {number} [page]
4001
+ * @param {number} [limit]
4002
+ * @param {Date} [lastRetrieved]
4003
+ * @param {*} [options] Override http request option.
4004
+ * @throws {RequiredError}
4005
+ */
4006
+ async apiV2HospitalsHospitalIdFormresultsGet(hospitalId: string, languageCode?: string, startDate?: Date, endDate?: Date, formTemplateType?: FormTemplateType, status?: FormResultStatus, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FormResultsModel>> {
4007
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdFormresultsGet(hospitalId, languageCode, startDate, endDate, formTemplateType, status, page, limit, lastRetrieved, options);
4008
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4009
+ },
3905
4010
  /**
3906
4011
  *
3907
4012
  * @summary Get hospital by id
@@ -4821,6 +4926,24 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
4821
4926
  apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId: string, languageCode: string, options?: any): AxiosPromise<Array<FooterNavigationItemModel>> {
4822
4927
  return localVarFp.apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId, languageCode, options).then((request) => request(axios, basePath));
4823
4928
  },
4929
+ /**
4930
+ *
4931
+ * @summary Get formResults by hospitalId
4932
+ * @param {string} hospitalId
4933
+ * @param {string} [languageCode]
4934
+ * @param {Date} [startDate]
4935
+ * @param {Date} [endDate]
4936
+ * @param {FormTemplateType} [formTemplateType]
4937
+ * @param {FormResultStatus} [status]
4938
+ * @param {number} [page]
4939
+ * @param {number} [limit]
4940
+ * @param {Date} [lastRetrieved]
4941
+ * @param {*} [options] Override http request option.
4942
+ * @throws {RequiredError}
4943
+ */
4944
+ apiV2HospitalsHospitalIdFormresultsGet(hospitalId: string, languageCode?: string, startDate?: Date, endDate?: Date, formTemplateType?: FormTemplateType, status?: FormResultStatus, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<FormResultsModel> {
4945
+ return localVarFp.apiV2HospitalsHospitalIdFormresultsGet(hospitalId, languageCode, startDate, endDate, formTemplateType, status, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
4946
+ },
4824
4947
  /**
4825
4948
  *
4826
4949
  * @summary Get hospital by id
@@ -6321,6 +6444,76 @@ export interface HospitalsApiApiV2HospitalsHospitalIdFooternavigationsLanguageCo
6321
6444
  readonly languageCode: string
6322
6445
  }
6323
6446
 
6447
+ /**
6448
+ * Request parameters for apiV2HospitalsHospitalIdFormresultsGet operation in HospitalsApi.
6449
+ * @export
6450
+ * @interface HospitalsApiApiV2HospitalsHospitalIdFormresultsGetRequest
6451
+ */
6452
+ export interface HospitalsApiApiV2HospitalsHospitalIdFormresultsGetRequest {
6453
+ /**
6454
+ *
6455
+ * @type {string}
6456
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdFormresultsGet
6457
+ */
6458
+ readonly hospitalId: string
6459
+
6460
+ /**
6461
+ *
6462
+ * @type {string}
6463
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdFormresultsGet
6464
+ */
6465
+ readonly languageCode?: string
6466
+
6467
+ /**
6468
+ *
6469
+ * @type {Date}
6470
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdFormresultsGet
6471
+ */
6472
+ readonly startDate?: Date
6473
+
6474
+ /**
6475
+ *
6476
+ * @type {Date}
6477
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdFormresultsGet
6478
+ */
6479
+ readonly endDate?: Date
6480
+
6481
+ /**
6482
+ *
6483
+ * @type {FormTemplateType}
6484
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdFormresultsGet
6485
+ */
6486
+ readonly formTemplateType?: FormTemplateType
6487
+
6488
+ /**
6489
+ *
6490
+ * @type {FormResultStatus}
6491
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdFormresultsGet
6492
+ */
6493
+ readonly status?: FormResultStatus
6494
+
6495
+ /**
6496
+ *
6497
+ * @type {number}
6498
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdFormresultsGet
6499
+ */
6500
+ readonly page?: number
6501
+
6502
+ /**
6503
+ *
6504
+ * @type {number}
6505
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdFormresultsGet
6506
+ */
6507
+ readonly limit?: number
6508
+
6509
+ /**
6510
+ *
6511
+ * @type {Date}
6512
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdFormresultsGet
6513
+ */
6514
+ readonly lastRetrieved?: Date
6515
+ }
6516
+
6324
6517
  /**
6325
6518
  * Request parameters for apiV2HospitalsHospitalIdGet operation in HospitalsApi.
6326
6519
  * @export
@@ -8443,6 +8636,18 @@ export class HospitalsApi extends BaseAPI {
8443
8636
  return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(requestParameters.hospitalId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
8444
8637
  }
8445
8638
 
8639
+ /**
8640
+ *
8641
+ * @summary Get formResults by hospitalId
8642
+ * @param {HospitalsApiApiV2HospitalsHospitalIdFormresultsGetRequest} requestParameters Request parameters.
8643
+ * @param {*} [options] Override http request option.
8644
+ * @throws {RequiredError}
8645
+ * @memberof HospitalsApi
8646
+ */
8647
+ public apiV2HospitalsHospitalIdFormresultsGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdFormresultsGetRequest, options?: AxiosRequestConfig) {
8648
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdFormresultsGet(requestParameters.hospitalId, requestParameters.languageCode, requestParameters.startDate, requestParameters.endDate, requestParameters.formTemplateType, requestParameters.status, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
8649
+ }
8650
+
8446
8651
  /**
8447
8652
  *
8448
8653
  * @summary Get hospital by id
@@ -56,5 +56,23 @@ export interface FeatureDetailDocumentModel {
56
56
  * @memberof FeatureDetailDocumentModel
57
57
  */
58
58
  'SurveyFormTranslatedLanguages'?: Array<string> | null;
59
+ /**
60
+ *
61
+ * @type {boolean}
62
+ * @memberof FeatureDetailDocumentModel
63
+ */
64
+ 'IsEnabledReview'?: boolean;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof FeatureDetailDocumentModel
69
+ */
70
+ 'ReviewFormTemplateId'?: string | null;
71
+ /**
72
+ *
73
+ * @type {Array<string>}
74
+ * @memberof FeatureDetailDocumentModel
75
+ */
76
+ 'ReviewFormTemplateTranslatedLanguages'?: Array<string> | null;
59
77
  }
60
78
 
@@ -53,6 +53,12 @@ export interface FormResultFieldModel {
53
53
  * @memberof FormResultFieldModel
54
54
  */
55
55
  'isRequired'?: boolean;
56
+ /**
57
+ *
58
+ * @type {boolean}
59
+ * @memberof FormResultFieldModel
60
+ */
61
+ 'isPublic'?: boolean;
56
62
  /**
57
63
  *
58
64
  * @type {string}
@@ -13,6 +13,9 @@
13
13
  */
14
14
 
15
15
 
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import { FormResultFieldModel } from './form-result-field-model';
16
19
  // May contain unused imports in some cases
17
20
  // @ts-ignore
18
21
  import { FormResultStatus } from './form-result-status';
@@ -92,5 +95,17 @@ export interface FormResultItemModel {
92
95
  * @memberof FormResultItemModel
93
96
  */
94
97
  'createdDate'?: Date;
98
+ /**
99
+ *
100
+ * @type {Array<FormResultFieldModel>}
101
+ * @memberof FormResultItemModel
102
+ */
103
+ 'formResultFields'?: Array<FormResultFieldModel> | null;
104
+ /**
105
+ *
106
+ * @type {number}
107
+ * @memberof FormResultItemModel
108
+ */
109
+ 'rating'?: number;
95
110
  }
96
111
 
@@ -13,6 +13,9 @@
13
13
  */
14
14
 
15
15
 
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import { FormResultFieldModel } from './form-result-field-model';
16
19
  // May contain unused imports in some cases
17
20
  // @ts-ignore
18
21
  import { FormResultSectionModel } from './form-result-section-model';
@@ -95,6 +98,18 @@ export interface FormResultModel {
95
98
  * @memberof FormResultModel
96
99
  */
97
100
  'createdDate'?: Date;
101
+ /**
102
+ *
103
+ * @type {Array<FormResultFieldModel>}
104
+ * @memberof FormResultModel
105
+ */
106
+ 'formResultFields'?: Array<FormResultFieldModel> | null;
107
+ /**
108
+ *
109
+ * @type {number}
110
+ * @memberof FormResultModel
111
+ */
112
+ 'rating'?: number;
98
113
  /**
99
114
  *
100
115
  * @type {Array<FormResultSectionModel>}