ch-admin-api-client-typescript 5.34.0 → 5.35.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.
Files changed (117) hide show
  1. package/lib/api/form-results-api.d.ts +366 -0
  2. package/lib/api/form-results-api.d.ts.map +1 -0
  3. package/lib/api/form-results-api.js +567 -0
  4. package/lib/api/form-templates-api.d.ts +431 -0
  5. package/lib/api/form-templates-api.d.ts.map +1 -0
  6. package/lib/api/form-templates-api.js +715 -0
  7. package/lib/api/message-webhooks-api.d.ts +55 -9
  8. package/lib/api/message-webhooks-api.d.ts.map +1 -1
  9. package/lib/api/message-webhooks-api.js +95 -10
  10. package/lib/api.d.ts +2 -0
  11. package/lib/api.d.ts.map +1 -1
  12. package/lib/api.js +2 -0
  13. package/lib/models/form-field-input-model.d.ts +92 -0
  14. package/lib/models/form-field-input-model.d.ts.map +1 -0
  15. package/lib/models/form-field-model.d.ts +98 -0
  16. package/lib/models/form-field-model.d.ts.map +1 -0
  17. package/lib/models/form-field-model.js +15 -0
  18. package/lib/models/form-field-option-input-model.d.ts +49 -0
  19. package/lib/models/form-field-option-input-model.d.ts.map +1 -0
  20. package/lib/models/form-field-option-input-model.js +15 -0
  21. package/lib/models/form-field-option-model.d.ts +55 -0
  22. package/lib/models/form-field-option-model.d.ts.map +1 -0
  23. package/lib/models/form-field-option-model.js +15 -0
  24. package/lib/models/form-result-field-model.d.ts +86 -0
  25. package/lib/models/form-result-field-model.d.ts.map +1 -0
  26. package/lib/models/form-result-field-model.js +15 -0
  27. package/lib/models/form-result-item-model.d.ts +87 -0
  28. package/lib/models/form-result-item-model.d.ts.map +1 -0
  29. package/lib/models/form-result-item-model.js +15 -0
  30. package/lib/models/form-result-model.d.ts +94 -0
  31. package/lib/models/form-result-model.d.ts.map +1 -0
  32. package/lib/models/form-result-model.js +15 -0
  33. package/lib/models/form-result-section-model.d.ts +62 -0
  34. package/lib/models/form-result-section-model.d.ts.map +1 -0
  35. package/lib/models/form-result-section-model.js +15 -0
  36. package/lib/models/form-result-status.d.ts +23 -0
  37. package/lib/models/form-result-status.d.ts.map +1 -0
  38. package/lib/models/form-result-status.js +26 -0
  39. package/lib/models/form-result-value-model.d.ts +43 -0
  40. package/lib/models/form-result-value-model.d.ts.map +1 -0
  41. package/lib/models/form-result-value-model.js +15 -0
  42. package/lib/models/form-results-model.d.ts +33 -0
  43. package/lib/models/form-results-model.d.ts.map +1 -0
  44. package/lib/models/form-results-model.js +15 -0
  45. package/lib/models/form-section-input-model.d.ts +56 -0
  46. package/lib/models/form-section-input-model.d.ts.map +1 -0
  47. package/lib/models/form-section-input-model.js +15 -0
  48. package/lib/models/form-section-model.d.ts +62 -0
  49. package/lib/models/form-section-model.d.ts.map +1 -0
  50. package/lib/models/form-section-model.js +15 -0
  51. package/lib/models/form-template-item-model.d.ts +89 -0
  52. package/lib/models/form-template-item-model.d.ts.map +1 -0
  53. package/lib/models/form-template-item-model.js +15 -0
  54. package/lib/models/form-template-model.d.ts +114 -0
  55. package/lib/models/form-template-model.d.ts.map +1 -0
  56. package/lib/models/form-template-model.js +15 -0
  57. package/lib/models/form-template-platform.d.ts +22 -0
  58. package/lib/models/form-template-platform.d.ts.map +1 -0
  59. package/lib/models/{toggle-message-webhook-command.d.ts → form-template-platform.js} +10 -10
  60. package/lib/models/form-template-status.d.ts +22 -0
  61. package/lib/models/form-template-status.d.ts.map +1 -0
  62. package/lib/models/form-template-status.js +25 -0
  63. package/lib/models/form-template-type.d.ts +23 -0
  64. package/lib/models/form-template-type.d.ts.map +1 -0
  65. package/lib/models/form-template-type.js +26 -0
  66. package/lib/models/form-templates-model.d.ts +33 -0
  67. package/lib/models/form-templates-model.d.ts.map +1 -0
  68. package/lib/models/form-templates-model.js +15 -0
  69. package/lib/models/index.d.ts +22 -1
  70. package/lib/models/index.d.ts.map +1 -1
  71. package/lib/models/index.js +22 -1
  72. package/lib/models/message-webhook-model.d.ts +18 -0
  73. package/lib/models/message-webhook-model.d.ts.map +1 -1
  74. package/lib/models/register-message-webhook-command.d.ts +18 -0
  75. package/lib/models/register-message-webhook-command.d.ts.map +1 -1
  76. package/lib/models/save-form-template-command.d.ts +89 -0
  77. package/lib/models/save-form-template-command.d.ts.map +1 -0
  78. package/lib/models/save-form-template-command.js +15 -0
  79. package/lib/models/update-form-result-command.d.ts +32 -0
  80. package/lib/models/update-form-result-command.d.ts.map +1 -0
  81. package/lib/models/update-form-result-command.js +15 -0
  82. package/lib/models/update-message-webhook-command.d.ts +43 -0
  83. package/lib/models/update-message-webhook-command.d.ts.map +1 -0
  84. package/lib/models/update-message-webhook-command.js +15 -0
  85. package/package.json +1 -1
  86. package/src/.openapi-generator/FILES +24 -1
  87. package/src/api/form-results-api.ts +628 -0
  88. package/src/api/form-templates-api.ts +752 -0
  89. package/src/api/message-webhooks-api.ts +98 -13
  90. package/src/api.ts +2 -0
  91. package/src/models/form-field-input-model.ts +99 -0
  92. package/src/models/form-field-model.ts +105 -0
  93. package/src/models/form-field-option-input-model.ts +54 -0
  94. package/src/models/form-field-option-model.ts +60 -0
  95. package/src/models/form-result-field-model.ts +93 -0
  96. package/src/models/form-result-item-model.ts +96 -0
  97. package/src/models/form-result-model.ts +105 -0
  98. package/src/models/form-result-section-model.ts +69 -0
  99. package/src/models/form-result-status.ts +32 -0
  100. package/src/models/form-result-value-model.ts +48 -0
  101. package/src/models/form-results-model.ts +42 -0
  102. package/src/models/form-section-input-model.ts +63 -0
  103. package/src/models/form-section-model.ts +69 -0
  104. package/src/models/form-template-item-model.ts +102 -0
  105. package/src/models/form-template-model.ts +129 -0
  106. package/src/models/form-template-platform.ts +31 -0
  107. package/src/models/{toggle-message-webhook-command.ts → form-template-status.ts} +10 -9
  108. package/src/models/form-template-type.ts +32 -0
  109. package/src/models/form-templates-model.ts +42 -0
  110. package/src/models/index.ts +22 -1
  111. package/src/models/message-webhook-model.ts +18 -0
  112. package/src/models/register-message-webhook-command.ts +18 -0
  113. package/src/models/save-form-template-command.ts +102 -0
  114. package/src/models/update-form-result-command.ts +39 -0
  115. package/src/models/update-message-webhook-command.ts +48 -0
  116. package/lib/models/toggle-message-webhook-command.d.ts.map +0 -1
  117. /package/lib/models/{toggle-message-webhook-command.js → form-field-input-model.js} +0 -0
@@ -0,0 +1,628 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CloudHospital Admin Api
5
+ * CloudHospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 1
8
+ * Contact: developer@icloudhospital.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { FormResultModel } from '../models';
25
+ // @ts-ignore
26
+ import { FormResultStatus } from '../models';
27
+ // @ts-ignore
28
+ import { FormResultsModel } from '../models';
29
+ // @ts-ignore
30
+ import { FormTemplatePlatform } from '../models';
31
+ // @ts-ignore
32
+ import { FormTemplateType } from '../models';
33
+ // @ts-ignore
34
+ import { ProblemDetails } from '../models';
35
+ // @ts-ignore
36
+ import { UpdateFormResultCommand } from '../models';
37
+ /**
38
+ * FormResultsApi - axios parameter creator
39
+ * @export
40
+ */
41
+ export const FormResultsApiAxiosParamCreator = function (configuration?: Configuration) {
42
+ return {
43
+ /**
44
+ *
45
+ * @summary Delete formResult
46
+ * @param {string} formResultId
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ apiV1FormresultsFormResultIdDelete: async (formResultId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
51
+ // verify required parameter 'formResultId' is not null or undefined
52
+ assertParamExists('apiV1FormresultsFormResultIdDelete', 'formResultId', formResultId)
53
+ const localVarPath = `/api/v1/formresults/{formResultId}`
54
+ .replace(`{${"formResultId"}}`, encodeURIComponent(String(formResultId)));
55
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
56
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57
+ let baseOptions;
58
+ if (configuration) {
59
+ baseOptions = configuration.baseOptions;
60
+ }
61
+
62
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
63
+ const localVarHeaderParameter = {} as any;
64
+ const localVarQueryParameter = {} as any;
65
+
66
+ // authentication oauth2 required
67
+ // oauth required
68
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
69
+
70
+
71
+
72
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
73
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
74
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
75
+
76
+ return {
77
+ url: toPathString(localVarUrlObj),
78
+ options: localVarRequestOptions,
79
+ };
80
+ },
81
+ /**
82
+ *
83
+ * @summary Get formResult
84
+ * @param {string} formResultId
85
+ * @param {string} [languageCode]
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ apiV1FormresultsFormResultIdGet: async (formResultId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
90
+ // verify required parameter 'formResultId' is not null or undefined
91
+ assertParamExists('apiV1FormresultsFormResultIdGet', 'formResultId', formResultId)
92
+ const localVarPath = `/api/v1/formresults/{formResultId}`
93
+ .replace(`{${"formResultId"}}`, encodeURIComponent(String(formResultId)));
94
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
95
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
96
+ let baseOptions;
97
+ if (configuration) {
98
+ baseOptions = configuration.baseOptions;
99
+ }
100
+
101
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
102
+ const localVarHeaderParameter = {} as any;
103
+ const localVarQueryParameter = {} as any;
104
+
105
+ // authentication oauth2 required
106
+ // oauth required
107
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
108
+
109
+ if (languageCode !== undefined) {
110
+ localVarQueryParameter['languageCode'] = languageCode;
111
+ }
112
+
113
+
114
+
115
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
116
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
117
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
118
+
119
+ return {
120
+ url: toPathString(localVarUrlObj),
121
+ options: localVarRequestOptions,
122
+ };
123
+ },
124
+ /**
125
+ *
126
+ * @summary Update formResult
127
+ * @param {string} formResultId
128
+ * @param {UpdateFormResultCommand} [updateFormResultCommand]
129
+ * @param {*} [options] Override http request option.
130
+ * @throws {RequiredError}
131
+ */
132
+ apiV1FormresultsFormResultIdPut: async (formResultId: string, updateFormResultCommand?: UpdateFormResultCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
133
+ // verify required parameter 'formResultId' is not null or undefined
134
+ assertParamExists('apiV1FormresultsFormResultIdPut', 'formResultId', formResultId)
135
+ const localVarPath = `/api/v1/formresults/{formResultId}`
136
+ .replace(`{${"formResultId"}}`, encodeURIComponent(String(formResultId)));
137
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
138
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
139
+ let baseOptions;
140
+ if (configuration) {
141
+ baseOptions = configuration.baseOptions;
142
+ }
143
+
144
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
145
+ const localVarHeaderParameter = {} as any;
146
+ const localVarQueryParameter = {} as any;
147
+
148
+ // authentication oauth2 required
149
+ // oauth required
150
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
151
+
152
+
153
+
154
+ localVarHeaderParameter['Content-Type'] = 'application/json';
155
+
156
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
157
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
158
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
159
+ localVarRequestOptions.data = serializeDataIfNeeded(updateFormResultCommand, localVarRequestOptions, configuration)
160
+
161
+ return {
162
+ url: toPathString(localVarUrlObj),
163
+ options: localVarRequestOptions,
164
+ };
165
+ },
166
+ /**
167
+ *
168
+ * @summary Get formResults
169
+ * @param {string} [languageCode]
170
+ * @param {Date} [startDate]
171
+ * @param {Date} [endDate]
172
+ * @param {string} [hospitalId]
173
+ * @param {boolean} [noHospitalOnly]
174
+ * @param {FormTemplatePlatform} [platform]
175
+ * @param {FormTemplateType} [formTemplateType]
176
+ * @param {FormResultStatus} [status]
177
+ * @param {string} [userId]
178
+ * @param {boolean} [noUserOnly]
179
+ * @param {string} [userName]
180
+ * @param {number} [page]
181
+ * @param {number} [limit]
182
+ * @param {Date} [lastRetrieved]
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ */
186
+ apiV1FormresultsGet: async (languageCode?: string, startDate?: Date, endDate?: Date, hospitalId?: string, noHospitalOnly?: boolean, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormResultStatus, userId?: string, noUserOnly?: boolean, userName?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
187
+ const localVarPath = `/api/v1/formresults`;
188
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
189
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
190
+ let baseOptions;
191
+ if (configuration) {
192
+ baseOptions = configuration.baseOptions;
193
+ }
194
+
195
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
196
+ const localVarHeaderParameter = {} as any;
197
+ const localVarQueryParameter = {} as any;
198
+
199
+ // authentication oauth2 required
200
+ // oauth required
201
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
202
+
203
+ if (languageCode !== undefined) {
204
+ localVarQueryParameter['LanguageCode'] = languageCode;
205
+ }
206
+
207
+ if (startDate !== undefined) {
208
+ localVarQueryParameter['StartDate'] = (startDate as any instanceof Date) ?
209
+ (startDate as any).toISOString() :
210
+ startDate;
211
+ }
212
+
213
+ if (endDate !== undefined) {
214
+ localVarQueryParameter['EndDate'] = (endDate as any instanceof Date) ?
215
+ (endDate as any).toISOString() :
216
+ endDate;
217
+ }
218
+
219
+ if (hospitalId !== undefined) {
220
+ localVarQueryParameter['HospitalId'] = hospitalId;
221
+ }
222
+
223
+ if (noHospitalOnly !== undefined) {
224
+ localVarQueryParameter['NoHospitalOnly'] = noHospitalOnly;
225
+ }
226
+
227
+ if (platform !== undefined) {
228
+ localVarQueryParameter['Platform'] = platform;
229
+ }
230
+
231
+ if (formTemplateType !== undefined) {
232
+ localVarQueryParameter['FormTemplateType'] = formTemplateType;
233
+ }
234
+
235
+ if (status !== undefined) {
236
+ localVarQueryParameter['Status'] = status;
237
+ }
238
+
239
+ if (userId !== undefined) {
240
+ localVarQueryParameter['UserId'] = userId;
241
+ }
242
+
243
+ if (noUserOnly !== undefined) {
244
+ localVarQueryParameter['NoUserOnly'] = noUserOnly;
245
+ }
246
+
247
+ if (userName !== undefined) {
248
+ localVarQueryParameter['UserName'] = userName;
249
+ }
250
+
251
+ if (page !== undefined) {
252
+ localVarQueryParameter['page'] = page;
253
+ }
254
+
255
+ if (limit !== undefined) {
256
+ localVarQueryParameter['limit'] = limit;
257
+ }
258
+
259
+ if (lastRetrieved !== undefined) {
260
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
261
+ (lastRetrieved as any).toISOString() :
262
+ lastRetrieved;
263
+ }
264
+
265
+
266
+
267
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
268
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
269
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
270
+
271
+ return {
272
+ url: toPathString(localVarUrlObj),
273
+ options: localVarRequestOptions,
274
+ };
275
+ },
276
+ }
277
+ };
278
+
279
+ /**
280
+ * FormResultsApi - functional programming interface
281
+ * @export
282
+ */
283
+ export const FormResultsApiFp = function(configuration?: Configuration) {
284
+ const localVarAxiosParamCreator = FormResultsApiAxiosParamCreator(configuration)
285
+ return {
286
+ /**
287
+ *
288
+ * @summary Delete formResult
289
+ * @param {string} formResultId
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ */
293
+ async apiV1FormresultsFormResultIdDelete(formResultId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FormResultModel>> {
294
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FormresultsFormResultIdDelete(formResultId, options);
295
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
296
+ },
297
+ /**
298
+ *
299
+ * @summary Get formResult
300
+ * @param {string} formResultId
301
+ * @param {string} [languageCode]
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ async apiV1FormresultsFormResultIdGet(formResultId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FormResultModel>> {
306
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FormresultsFormResultIdGet(formResultId, languageCode, options);
307
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
308
+ },
309
+ /**
310
+ *
311
+ * @summary Update formResult
312
+ * @param {string} formResultId
313
+ * @param {UpdateFormResultCommand} [updateFormResultCommand]
314
+ * @param {*} [options] Override http request option.
315
+ * @throws {RequiredError}
316
+ */
317
+ async apiV1FormresultsFormResultIdPut(formResultId: string, updateFormResultCommand?: UpdateFormResultCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FormResultModel>> {
318
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FormresultsFormResultIdPut(formResultId, updateFormResultCommand, options);
319
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
320
+ },
321
+ /**
322
+ *
323
+ * @summary Get formResults
324
+ * @param {string} [languageCode]
325
+ * @param {Date} [startDate]
326
+ * @param {Date} [endDate]
327
+ * @param {string} [hospitalId]
328
+ * @param {boolean} [noHospitalOnly]
329
+ * @param {FormTemplatePlatform} [platform]
330
+ * @param {FormTemplateType} [formTemplateType]
331
+ * @param {FormResultStatus} [status]
332
+ * @param {string} [userId]
333
+ * @param {boolean} [noUserOnly]
334
+ * @param {string} [userName]
335
+ * @param {number} [page]
336
+ * @param {number} [limit]
337
+ * @param {Date} [lastRetrieved]
338
+ * @param {*} [options] Override http request option.
339
+ * @throws {RequiredError}
340
+ */
341
+ async apiV1FormresultsGet(languageCode?: string, startDate?: Date, endDate?: Date, hospitalId?: string, noHospitalOnly?: boolean, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormResultStatus, userId?: string, noUserOnly?: boolean, userName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FormResultsModel>> {
342
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FormresultsGet(languageCode, startDate, endDate, hospitalId, noHospitalOnly, platform, formTemplateType, status, userId, noUserOnly, userName, page, limit, lastRetrieved, options);
343
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
344
+ },
345
+ }
346
+ };
347
+
348
+ /**
349
+ * FormResultsApi - factory interface
350
+ * @export
351
+ */
352
+ export const FormResultsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
353
+ const localVarFp = FormResultsApiFp(configuration)
354
+ return {
355
+ /**
356
+ *
357
+ * @summary Delete formResult
358
+ * @param {string} formResultId
359
+ * @param {*} [options] Override http request option.
360
+ * @throws {RequiredError}
361
+ */
362
+ apiV1FormresultsFormResultIdDelete(formResultId: string, options?: any): AxiosPromise<FormResultModel> {
363
+ return localVarFp.apiV1FormresultsFormResultIdDelete(formResultId, options).then((request) => request(axios, basePath));
364
+ },
365
+ /**
366
+ *
367
+ * @summary Get formResult
368
+ * @param {string} formResultId
369
+ * @param {string} [languageCode]
370
+ * @param {*} [options] Override http request option.
371
+ * @throws {RequiredError}
372
+ */
373
+ apiV1FormresultsFormResultIdGet(formResultId: string, languageCode?: string, options?: any): AxiosPromise<FormResultModel> {
374
+ return localVarFp.apiV1FormresultsFormResultIdGet(formResultId, languageCode, options).then((request) => request(axios, basePath));
375
+ },
376
+ /**
377
+ *
378
+ * @summary Update formResult
379
+ * @param {string} formResultId
380
+ * @param {UpdateFormResultCommand} [updateFormResultCommand]
381
+ * @param {*} [options] Override http request option.
382
+ * @throws {RequiredError}
383
+ */
384
+ apiV1FormresultsFormResultIdPut(formResultId: string, updateFormResultCommand?: UpdateFormResultCommand, options?: any): AxiosPromise<FormResultModel> {
385
+ return localVarFp.apiV1FormresultsFormResultIdPut(formResultId, updateFormResultCommand, options).then((request) => request(axios, basePath));
386
+ },
387
+ /**
388
+ *
389
+ * @summary Get formResults
390
+ * @param {string} [languageCode]
391
+ * @param {Date} [startDate]
392
+ * @param {Date} [endDate]
393
+ * @param {string} [hospitalId]
394
+ * @param {boolean} [noHospitalOnly]
395
+ * @param {FormTemplatePlatform} [platform]
396
+ * @param {FormTemplateType} [formTemplateType]
397
+ * @param {FormResultStatus} [status]
398
+ * @param {string} [userId]
399
+ * @param {boolean} [noUserOnly]
400
+ * @param {string} [userName]
401
+ * @param {number} [page]
402
+ * @param {number} [limit]
403
+ * @param {Date} [lastRetrieved]
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ */
407
+ apiV1FormresultsGet(languageCode?: string, startDate?: Date, endDate?: Date, hospitalId?: string, noHospitalOnly?: boolean, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormResultStatus, userId?: string, noUserOnly?: boolean, userName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<FormResultsModel> {
408
+ return localVarFp.apiV1FormresultsGet(languageCode, startDate, endDate, hospitalId, noHospitalOnly, platform, formTemplateType, status, userId, noUserOnly, userName, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
409
+ },
410
+ };
411
+ };
412
+
413
+ /**
414
+ * Request parameters for apiV1FormresultsFormResultIdDelete operation in FormResultsApi.
415
+ * @export
416
+ * @interface FormResultsApiApiV1FormresultsFormResultIdDeleteRequest
417
+ */
418
+ export interface FormResultsApiApiV1FormresultsFormResultIdDeleteRequest {
419
+ /**
420
+ *
421
+ * @type {string}
422
+ * @memberof FormResultsApiApiV1FormresultsFormResultIdDelete
423
+ */
424
+ readonly formResultId: string
425
+ }
426
+
427
+ /**
428
+ * Request parameters for apiV1FormresultsFormResultIdGet operation in FormResultsApi.
429
+ * @export
430
+ * @interface FormResultsApiApiV1FormresultsFormResultIdGetRequest
431
+ */
432
+ export interface FormResultsApiApiV1FormresultsFormResultIdGetRequest {
433
+ /**
434
+ *
435
+ * @type {string}
436
+ * @memberof FormResultsApiApiV1FormresultsFormResultIdGet
437
+ */
438
+ readonly formResultId: string
439
+
440
+ /**
441
+ *
442
+ * @type {string}
443
+ * @memberof FormResultsApiApiV1FormresultsFormResultIdGet
444
+ */
445
+ readonly languageCode?: string
446
+ }
447
+
448
+ /**
449
+ * Request parameters for apiV1FormresultsFormResultIdPut operation in FormResultsApi.
450
+ * @export
451
+ * @interface FormResultsApiApiV1FormresultsFormResultIdPutRequest
452
+ */
453
+ export interface FormResultsApiApiV1FormresultsFormResultIdPutRequest {
454
+ /**
455
+ *
456
+ * @type {string}
457
+ * @memberof FormResultsApiApiV1FormresultsFormResultIdPut
458
+ */
459
+ readonly formResultId: string
460
+
461
+ /**
462
+ *
463
+ * @type {UpdateFormResultCommand}
464
+ * @memberof FormResultsApiApiV1FormresultsFormResultIdPut
465
+ */
466
+ readonly updateFormResultCommand?: UpdateFormResultCommand
467
+ }
468
+
469
+ /**
470
+ * Request parameters for apiV1FormresultsGet operation in FormResultsApi.
471
+ * @export
472
+ * @interface FormResultsApiApiV1FormresultsGetRequest
473
+ */
474
+ export interface FormResultsApiApiV1FormresultsGetRequest {
475
+ /**
476
+ *
477
+ * @type {string}
478
+ * @memberof FormResultsApiApiV1FormresultsGet
479
+ */
480
+ readonly languageCode?: string
481
+
482
+ /**
483
+ *
484
+ * @type {Date}
485
+ * @memberof FormResultsApiApiV1FormresultsGet
486
+ */
487
+ readonly startDate?: Date
488
+
489
+ /**
490
+ *
491
+ * @type {Date}
492
+ * @memberof FormResultsApiApiV1FormresultsGet
493
+ */
494
+ readonly endDate?: Date
495
+
496
+ /**
497
+ *
498
+ * @type {string}
499
+ * @memberof FormResultsApiApiV1FormresultsGet
500
+ */
501
+ readonly hospitalId?: string
502
+
503
+ /**
504
+ *
505
+ * @type {boolean}
506
+ * @memberof FormResultsApiApiV1FormresultsGet
507
+ */
508
+ readonly noHospitalOnly?: boolean
509
+
510
+ /**
511
+ *
512
+ * @type {FormTemplatePlatform}
513
+ * @memberof FormResultsApiApiV1FormresultsGet
514
+ */
515
+ readonly platform?: FormTemplatePlatform
516
+
517
+ /**
518
+ *
519
+ * @type {FormTemplateType}
520
+ * @memberof FormResultsApiApiV1FormresultsGet
521
+ */
522
+ readonly formTemplateType?: FormTemplateType
523
+
524
+ /**
525
+ *
526
+ * @type {FormResultStatus}
527
+ * @memberof FormResultsApiApiV1FormresultsGet
528
+ */
529
+ readonly status?: FormResultStatus
530
+
531
+ /**
532
+ *
533
+ * @type {string}
534
+ * @memberof FormResultsApiApiV1FormresultsGet
535
+ */
536
+ readonly userId?: string
537
+
538
+ /**
539
+ *
540
+ * @type {boolean}
541
+ * @memberof FormResultsApiApiV1FormresultsGet
542
+ */
543
+ readonly noUserOnly?: boolean
544
+
545
+ /**
546
+ *
547
+ * @type {string}
548
+ * @memberof FormResultsApiApiV1FormresultsGet
549
+ */
550
+ readonly userName?: string
551
+
552
+ /**
553
+ *
554
+ * @type {number}
555
+ * @memberof FormResultsApiApiV1FormresultsGet
556
+ */
557
+ readonly page?: number
558
+
559
+ /**
560
+ *
561
+ * @type {number}
562
+ * @memberof FormResultsApiApiV1FormresultsGet
563
+ */
564
+ readonly limit?: number
565
+
566
+ /**
567
+ *
568
+ * @type {Date}
569
+ * @memberof FormResultsApiApiV1FormresultsGet
570
+ */
571
+ readonly lastRetrieved?: Date
572
+ }
573
+
574
+ /**
575
+ * FormResultsApi - object-oriented interface
576
+ * @export
577
+ * @class FormResultsApi
578
+ * @extends {BaseAPI}
579
+ */
580
+ export class FormResultsApi extends BaseAPI {
581
+ /**
582
+ *
583
+ * @summary Delete formResult
584
+ * @param {FormResultsApiApiV1FormresultsFormResultIdDeleteRequest} requestParameters Request parameters.
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ * @memberof FormResultsApi
588
+ */
589
+ public apiV1FormresultsFormResultIdDelete(requestParameters: FormResultsApiApiV1FormresultsFormResultIdDeleteRequest, options?: AxiosRequestConfig) {
590
+ return FormResultsApiFp(this.configuration).apiV1FormresultsFormResultIdDelete(requestParameters.formResultId, options).then((request) => request(this.axios, this.basePath));
591
+ }
592
+
593
+ /**
594
+ *
595
+ * @summary Get formResult
596
+ * @param {FormResultsApiApiV1FormresultsFormResultIdGetRequest} requestParameters Request parameters.
597
+ * @param {*} [options] Override http request option.
598
+ * @throws {RequiredError}
599
+ * @memberof FormResultsApi
600
+ */
601
+ public apiV1FormresultsFormResultIdGet(requestParameters: FormResultsApiApiV1FormresultsFormResultIdGetRequest, options?: AxiosRequestConfig) {
602
+ return FormResultsApiFp(this.configuration).apiV1FormresultsFormResultIdGet(requestParameters.formResultId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
603
+ }
604
+
605
+ /**
606
+ *
607
+ * @summary Update formResult
608
+ * @param {FormResultsApiApiV1FormresultsFormResultIdPutRequest} requestParameters Request parameters.
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ * @memberof FormResultsApi
612
+ */
613
+ public apiV1FormresultsFormResultIdPut(requestParameters: FormResultsApiApiV1FormresultsFormResultIdPutRequest, options?: AxiosRequestConfig) {
614
+ return FormResultsApiFp(this.configuration).apiV1FormresultsFormResultIdPut(requestParameters.formResultId, requestParameters.updateFormResultCommand, options).then((request) => request(this.axios, this.basePath));
615
+ }
616
+
617
+ /**
618
+ *
619
+ * @summary Get formResults
620
+ * @param {FormResultsApiApiV1FormresultsGetRequest} requestParameters Request parameters.
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ * @memberof FormResultsApi
624
+ */
625
+ public apiV1FormresultsGet(requestParameters: FormResultsApiApiV1FormresultsGetRequest = {}, options?: AxiosRequestConfig) {
626
+ return FormResultsApiFp(this.configuration).apiV1FormresultsGet(requestParameters.languageCode, requestParameters.startDate, requestParameters.endDate, requestParameters.hospitalId, requestParameters.noHospitalOnly, requestParameters.platform, requestParameters.formTemplateType, requestParameters.status, requestParameters.userId, requestParameters.noUserOnly, requestParameters.userName, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
627
+ }
628
+ }