ch-admin-api-client-typescript 5.36.17 → 5.36.31

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 (48) hide show
  1. package/lib/api/form-templates-api.d.ts +144 -6
  2. package/lib/api/form-templates-api.d.ts.map +1 -1
  3. package/lib/api/form-templates-api.js +211 -12
  4. package/lib/api/survey-forms-api.d.ts +190 -6
  5. package/lib/api/survey-forms-api.d.ts.map +1 -1
  6. package/lib/api/survey-forms-api.js +296 -12
  7. package/lib/models/create-survey-form-command.d.ts +6 -0
  8. package/lib/models/create-survey-form-command.d.ts.map +1 -1
  9. package/lib/models/form-template-affiliation-model.d.ts +37 -0
  10. package/lib/models/form-template-affiliation-model.d.ts.map +1 -0
  11. package/lib/models/form-template-affiliation-model.js +15 -0
  12. package/lib/models/form-template-item-model.d.ts +20 -1
  13. package/lib/models/form-template-item-model.d.ts.map +1 -1
  14. package/lib/models/form-template-model.d.ts +20 -1
  15. package/lib/models/form-template-model.d.ts.map +1 -1
  16. package/lib/models/index.d.ts +4 -0
  17. package/lib/models/index.d.ts.map +1 -1
  18. package/lib/models/index.js +4 -0
  19. package/lib/models/save-form-template-command.d.ts +14 -2
  20. package/lib/models/save-form-template-command.d.ts.map +1 -1
  21. package/lib/models/set-hospital-into-form-template-command.d.ts +25 -0
  22. package/lib/models/set-hospital-into-form-template-command.d.ts.map +1 -0
  23. package/lib/models/set-hospital-into-form-template-command.js +15 -0
  24. package/lib/models/set-hospital-into-survey-form-command.d.ts +25 -0
  25. package/lib/models/set-hospital-into-survey-form-command.d.ts.map +1 -0
  26. package/lib/models/set-hospital-into-survey-form-command.js +15 -0
  27. package/lib/models/survey-form-affiliation-model.d.ts +31 -0
  28. package/lib/models/survey-form-affiliation-model.d.ts.map +1 -0
  29. package/lib/models/survey-form-affiliation-model.js +15 -0
  30. package/lib/models/survey-form-item-model.d.ts +13 -0
  31. package/lib/models/survey-form-item-model.d.ts.map +1 -1
  32. package/lib/models/survey-form-model.d.ts +13 -0
  33. package/lib/models/survey-form-model.d.ts.map +1 -1
  34. package/package.json +1 -1
  35. package/src/.openapi-generator/FILES +4 -0
  36. package/src/api/form-templates-api.ts +251 -12
  37. package/src/api/survey-forms-api.ts +336 -12
  38. package/src/models/create-survey-form-command.ts +6 -0
  39. package/src/models/form-template-affiliation-model.ts +42 -0
  40. package/src/models/form-template-item-model.ts +22 -1
  41. package/src/models/form-template-model.ts +22 -1
  42. package/src/models/index.ts +4 -0
  43. package/src/models/save-form-template-command.ts +14 -2
  44. package/src/models/set-hospital-into-form-template-command.ts +30 -0
  45. package/src/models/set-hospital-into-survey-form-command.ts +30 -0
  46. package/src/models/survey-form-affiliation-model.ts +36 -0
  47. package/src/models/survey-form-item-model.ts +15 -0
  48. package/src/models/survey-form-model.ts +15 -0
@@ -25,6 +25,8 @@ import { CreateSurveyFormCommand } from '../models';
25
25
  // @ts-ignore
26
26
  import { ProblemDetails } from '../models';
27
27
  // @ts-ignore
28
+ import { SetHospitalIntoSurveyFormCommand } from '../models';
29
+ // @ts-ignore
28
30
  import { SurveyFormModel } from '../models';
29
31
  // @ts-ignore
30
32
  import { SurveyFormStatus } from '../models';
@@ -46,6 +48,7 @@ export const SurveyFormsApiAxiosParamCreator = function (configuration?: Configu
46
48
  * @param {string} [name]
47
49
  * @param {string} [languageCode]
48
50
  * @param {boolean} [showHidden]
51
+ * @param {boolean} [isShared]
49
52
  * @param {SurveyFormStatus} [status]
50
53
  * @param {number} [page]
51
54
  * @param {number} [limit]
@@ -53,7 +56,7 @@ export const SurveyFormsApiAxiosParamCreator = function (configuration?: Configu
53
56
  * @param {*} [options] Override http request option.
54
57
  * @throws {RequiredError}
55
58
  */
56
- apiV1SurveyformsGet: async (id?: string, hospitalId?: string, name?: string, languageCode?: string, showHidden?: boolean, status?: SurveyFormStatus, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
59
+ apiV1SurveyformsGet: async (id?: string, hospitalId?: string, name?: string, languageCode?: string, showHidden?: boolean, isShared?: boolean, status?: SurveyFormStatus, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
57
60
  const localVarPath = `/api/v1/surveyforms`;
58
61
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
59
62
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -90,6 +93,10 @@ export const SurveyFormsApiAxiosParamCreator = function (configuration?: Configu
90
93
  localVarQueryParameter['ShowHidden'] = showHidden;
91
94
  }
92
95
 
96
+ if (isShared !== undefined) {
97
+ localVarQueryParameter['IsShared'] = isShared;
98
+ }
99
+
93
100
  if (status !== undefined) {
94
101
  localVarQueryParameter['Status'] = status;
95
102
  }
@@ -210,10 +217,11 @@ export const SurveyFormsApiAxiosParamCreator = function (configuration?: Configu
210
217
  * @summary Get survey form by Id
211
218
  * @param {string} surveyFormId
212
219
  * @param {string} [languageCode]
220
+ * @param {string} [hospitalId]
213
221
  * @param {*} [options] Override http request option.
214
222
  * @throws {RequiredError}
215
223
  */
216
- apiV1SurveyformsSurveyFormIdGet: async (surveyFormId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
224
+ apiV1SurveyformsSurveyFormIdGet: async (surveyFormId: string, languageCode?: string, hospitalId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
217
225
  // verify required parameter 'surveyFormId' is not null or undefined
218
226
  assertParamExists('apiV1SurveyformsSurveyFormIdGet', 'surveyFormId', surveyFormId)
219
227
  const localVarPath = `/api/v1/surveyforms/{surveyFormId}`
@@ -237,6 +245,52 @@ export const SurveyFormsApiAxiosParamCreator = function (configuration?: Configu
237
245
  localVarQueryParameter['languageCode'] = languageCode;
238
246
  }
239
247
 
248
+ if (hospitalId !== undefined) {
249
+ localVarQueryParameter['hospitalId'] = hospitalId;
250
+ }
251
+
252
+
253
+
254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
256
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
257
+
258
+ return {
259
+ url: toPathString(localVarUrlObj),
260
+ options: localVarRequestOptions,
261
+ };
262
+ },
263
+ /**
264
+ *
265
+ * @summary Remove hospital from surveyFormAffiliations
266
+ * @param {string} surveyFormId
267
+ * @param {string} hospitalId
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete: async (surveyFormId: string, hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
272
+ // verify required parameter 'surveyFormId' is not null or undefined
273
+ assertParamExists('apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete', 'surveyFormId', surveyFormId)
274
+ // verify required parameter 'hospitalId' is not null or undefined
275
+ assertParamExists('apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete', 'hospitalId', hospitalId)
276
+ const localVarPath = `/api/v1/surveyforms/{surveyFormId}/hospitals/{hospitalId}`
277
+ .replace(`{${"surveyFormId"}}`, encodeURIComponent(String(surveyFormId)))
278
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
279
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
280
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
281
+ let baseOptions;
282
+ if (configuration) {
283
+ baseOptions = configuration.baseOptions;
284
+ }
285
+
286
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
287
+ const localVarHeaderParameter = {} as any;
288
+ const localVarQueryParameter = {} as any;
289
+
290
+ // authentication oauth2 required
291
+ // oauth required
292
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
293
+
240
294
 
241
295
 
242
296
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -248,6 +302,52 @@ export const SurveyFormsApiAxiosParamCreator = function (configuration?: Configu
248
302
  options: localVarRequestOptions,
249
303
  };
250
304
  },
305
+ /**
306
+ *
307
+ * @summary Add hospital into surveyFormAffiliation.
308
+ * @param {string} surveyFormId
309
+ * @param {string} hospitalId
310
+ * @param {SetHospitalIntoSurveyFormCommand} [setHospitalIntoSurveyFormCommand]
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ */
314
+ apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost: async (surveyFormId: string, hospitalId: string, setHospitalIntoSurveyFormCommand?: SetHospitalIntoSurveyFormCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
315
+ // verify required parameter 'surveyFormId' is not null or undefined
316
+ assertParamExists('apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost', 'surveyFormId', surveyFormId)
317
+ // verify required parameter 'hospitalId' is not null or undefined
318
+ assertParamExists('apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost', 'hospitalId', hospitalId)
319
+ const localVarPath = `/api/v1/surveyforms/{surveyFormId}/hospitals/{hospitalId}`
320
+ .replace(`{${"surveyFormId"}}`, encodeURIComponent(String(surveyFormId)))
321
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
322
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
323
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
324
+ let baseOptions;
325
+ if (configuration) {
326
+ baseOptions = configuration.baseOptions;
327
+ }
328
+
329
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
330
+ const localVarHeaderParameter = {} as any;
331
+ const localVarQueryParameter = {} as any;
332
+
333
+ // authentication oauth2 required
334
+ // oauth required
335
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
336
+
337
+
338
+
339
+ localVarHeaderParameter['Content-Type'] = 'application/json';
340
+
341
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
342
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
343
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
344
+ localVarRequestOptions.data = serializeDataIfNeeded(setHospitalIntoSurveyFormCommand, localVarRequestOptions, configuration)
345
+
346
+ return {
347
+ url: toPathString(localVarUrlObj),
348
+ options: localVarRequestOptions,
349
+ };
350
+ },
251
351
  /**
252
352
  *
253
353
  * @summary Update survey form
@@ -285,6 +385,44 @@ export const SurveyFormsApiAxiosParamCreator = function (configuration?: Configu
285
385
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
286
386
  localVarRequestOptions.data = serializeDataIfNeeded(updateSurveyFormCommand, localVarRequestOptions, configuration)
287
387
 
388
+ return {
389
+ url: toPathString(localVarUrlObj),
390
+ options: localVarRequestOptions,
391
+ };
392
+ },
393
+ /**
394
+ *
395
+ * @summary Reactivate surveyForm
396
+ * @param {string} surveyFormId
397
+ * @param {*} [options] Override http request option.
398
+ * @throws {RequiredError}
399
+ */
400
+ apiV1SurveyformsSurveyFormIdReactivatePut: async (surveyFormId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
401
+ // verify required parameter 'surveyFormId' is not null or undefined
402
+ assertParamExists('apiV1SurveyformsSurveyFormIdReactivatePut', 'surveyFormId', surveyFormId)
403
+ const localVarPath = `/api/v1/surveyforms/{surveyFormId}/reactivate`
404
+ .replace(`{${"surveyFormId"}}`, encodeURIComponent(String(surveyFormId)));
405
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
406
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
407
+ let baseOptions;
408
+ if (configuration) {
409
+ baseOptions = configuration.baseOptions;
410
+ }
411
+
412
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
413
+ const localVarHeaderParameter = {} as any;
414
+ const localVarQueryParameter = {} as any;
415
+
416
+ // authentication oauth2 required
417
+ // oauth required
418
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
419
+
420
+
421
+
422
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
423
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
424
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
425
+
288
426
  return {
289
427
  url: toPathString(localVarUrlObj),
290
428
  options: localVarRequestOptions,
@@ -308,6 +446,7 @@ export const SurveyFormsApiFp = function(configuration?: Configuration) {
308
446
  * @param {string} [name]
309
447
  * @param {string} [languageCode]
310
448
  * @param {boolean} [showHidden]
449
+ * @param {boolean} [isShared]
311
450
  * @param {SurveyFormStatus} [status]
312
451
  * @param {number} [page]
313
452
  * @param {number} [limit]
@@ -315,8 +454,8 @@ export const SurveyFormsApiFp = function(configuration?: Configuration) {
315
454
  * @param {*} [options] Override http request option.
316
455
  * @throws {RequiredError}
317
456
  */
318
- async apiV1SurveyformsGet(id?: string, hospitalId?: string, name?: string, languageCode?: string, showHidden?: boolean, status?: SurveyFormStatus, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SurveyFormsModel>> {
319
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SurveyformsGet(id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options);
457
+ async apiV1SurveyformsGet(id?: string, hospitalId?: string, name?: string, languageCode?: string, showHidden?: boolean, isShared?: boolean, status?: SurveyFormStatus, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SurveyFormsModel>> {
458
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SurveyformsGet(id, hospitalId, name, languageCode, showHidden, isShared, status, page, limit, lastRetrieved, options);
320
459
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
321
460
  },
322
461
  /**
@@ -348,11 +487,37 @@ export const SurveyFormsApiFp = function(configuration?: Configuration) {
348
487
  * @summary Get survey form by Id
349
488
  * @param {string} surveyFormId
350
489
  * @param {string} [languageCode]
490
+ * @param {string} [hospitalId]
491
+ * @param {*} [options] Override http request option.
492
+ * @throws {RequiredError}
493
+ */
494
+ async apiV1SurveyformsSurveyFormIdGet(surveyFormId: string, languageCode?: string, hospitalId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SurveyFormModel>> {
495
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdGet(surveyFormId, languageCode, hospitalId, options);
496
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
497
+ },
498
+ /**
499
+ *
500
+ * @summary Remove hospital from surveyFormAffiliations
501
+ * @param {string} surveyFormId
502
+ * @param {string} hospitalId
351
503
  * @param {*} [options] Override http request option.
352
504
  * @throws {RequiredError}
353
505
  */
354
- async apiV1SurveyformsSurveyFormIdGet(surveyFormId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SurveyFormModel>> {
355
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdGet(surveyFormId, languageCode, options);
506
+ async apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete(surveyFormId: string, hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
507
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete(surveyFormId, hospitalId, options);
508
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
509
+ },
510
+ /**
511
+ *
512
+ * @summary Add hospital into surveyFormAffiliation.
513
+ * @param {string} surveyFormId
514
+ * @param {string} hospitalId
515
+ * @param {SetHospitalIntoSurveyFormCommand} [setHospitalIntoSurveyFormCommand]
516
+ * @param {*} [options] Override http request option.
517
+ * @throws {RequiredError}
518
+ */
519
+ async apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost(surveyFormId: string, hospitalId: string, setHospitalIntoSurveyFormCommand?: SetHospitalIntoSurveyFormCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
520
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost(surveyFormId, hospitalId, setHospitalIntoSurveyFormCommand, options);
356
521
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
357
522
  },
358
523
  /**
@@ -367,6 +532,17 @@ export const SurveyFormsApiFp = function(configuration?: Configuration) {
367
532
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdPut(surveyFormId, updateSurveyFormCommand, options);
368
533
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
369
534
  },
535
+ /**
536
+ *
537
+ * @summary Reactivate surveyForm
538
+ * @param {string} surveyFormId
539
+ * @param {*} [options] Override http request option.
540
+ * @throws {RequiredError}
541
+ */
542
+ async apiV1SurveyformsSurveyFormIdReactivatePut(surveyFormId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
543
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdReactivatePut(surveyFormId, options);
544
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
545
+ },
370
546
  }
371
547
  };
372
548
 
@@ -385,6 +561,7 @@ export const SurveyFormsApiFactory = function (configuration?: Configuration, ba
385
561
  * @param {string} [name]
386
562
  * @param {string} [languageCode]
387
563
  * @param {boolean} [showHidden]
564
+ * @param {boolean} [isShared]
388
565
  * @param {SurveyFormStatus} [status]
389
566
  * @param {number} [page]
390
567
  * @param {number} [limit]
@@ -392,8 +569,8 @@ export const SurveyFormsApiFactory = function (configuration?: Configuration, ba
392
569
  * @param {*} [options] Override http request option.
393
570
  * @throws {RequiredError}
394
571
  */
395
- apiV1SurveyformsGet(id?: string, hospitalId?: string, name?: string, languageCode?: string, showHidden?: boolean, status?: SurveyFormStatus, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<SurveyFormsModel> {
396
- return localVarFp.apiV1SurveyformsGet(id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
572
+ apiV1SurveyformsGet(id?: string, hospitalId?: string, name?: string, languageCode?: string, showHidden?: boolean, isShared?: boolean, status?: SurveyFormStatus, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<SurveyFormsModel> {
573
+ return localVarFp.apiV1SurveyformsGet(id, hospitalId, name, languageCode, showHidden, isShared, status, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
397
574
  },
398
575
  /**
399
576
  *
@@ -422,11 +599,35 @@ export const SurveyFormsApiFactory = function (configuration?: Configuration, ba
422
599
  * @summary Get survey form by Id
423
600
  * @param {string} surveyFormId
424
601
  * @param {string} [languageCode]
602
+ * @param {string} [hospitalId]
603
+ * @param {*} [options] Override http request option.
604
+ * @throws {RequiredError}
605
+ */
606
+ apiV1SurveyformsSurveyFormIdGet(surveyFormId: string, languageCode?: string, hospitalId?: string, options?: any): AxiosPromise<SurveyFormModel> {
607
+ return localVarFp.apiV1SurveyformsSurveyFormIdGet(surveyFormId, languageCode, hospitalId, options).then((request) => request(axios, basePath));
608
+ },
609
+ /**
610
+ *
611
+ * @summary Remove hospital from surveyFormAffiliations
612
+ * @param {string} surveyFormId
613
+ * @param {string} hospitalId
614
+ * @param {*} [options] Override http request option.
615
+ * @throws {RequiredError}
616
+ */
617
+ apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete(surveyFormId: string, hospitalId: string, options?: any): AxiosPromise<boolean> {
618
+ return localVarFp.apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete(surveyFormId, hospitalId, options).then((request) => request(axios, basePath));
619
+ },
620
+ /**
621
+ *
622
+ * @summary Add hospital into surveyFormAffiliation.
623
+ * @param {string} surveyFormId
624
+ * @param {string} hospitalId
625
+ * @param {SetHospitalIntoSurveyFormCommand} [setHospitalIntoSurveyFormCommand]
425
626
  * @param {*} [options] Override http request option.
426
627
  * @throws {RequiredError}
427
628
  */
428
- apiV1SurveyformsSurveyFormIdGet(surveyFormId: string, languageCode?: string, options?: any): AxiosPromise<SurveyFormModel> {
429
- return localVarFp.apiV1SurveyformsSurveyFormIdGet(surveyFormId, languageCode, options).then((request) => request(axios, basePath));
629
+ apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost(surveyFormId: string, hospitalId: string, setHospitalIntoSurveyFormCommand?: SetHospitalIntoSurveyFormCommand, options?: any): AxiosPromise<boolean> {
630
+ return localVarFp.apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost(surveyFormId, hospitalId, setHospitalIntoSurveyFormCommand, options).then((request) => request(axios, basePath));
430
631
  },
431
632
  /**
432
633
  *
@@ -439,6 +640,16 @@ export const SurveyFormsApiFactory = function (configuration?: Configuration, ba
439
640
  apiV1SurveyformsSurveyFormIdPut(surveyFormId: string, updateSurveyFormCommand?: UpdateSurveyFormCommand, options?: any): AxiosPromise<SurveyFormModel> {
440
641
  return localVarFp.apiV1SurveyformsSurveyFormIdPut(surveyFormId, updateSurveyFormCommand, options).then((request) => request(axios, basePath));
441
642
  },
643
+ /**
644
+ *
645
+ * @summary Reactivate surveyForm
646
+ * @param {string} surveyFormId
647
+ * @param {*} [options] Override http request option.
648
+ * @throws {RequiredError}
649
+ */
650
+ apiV1SurveyformsSurveyFormIdReactivatePut(surveyFormId: string, options?: any): AxiosPromise<boolean> {
651
+ return localVarFp.apiV1SurveyformsSurveyFormIdReactivatePut(surveyFormId, options).then((request) => request(axios, basePath));
652
+ },
442
653
  };
443
654
  };
444
655
 
@@ -483,6 +694,13 @@ export interface SurveyFormsApiApiV1SurveyformsGetRequest {
483
694
  */
484
695
  readonly showHidden?: boolean
485
696
 
697
+ /**
698
+ *
699
+ * @type {boolean}
700
+ * @memberof SurveyFormsApiApiV1SurveyformsGet
701
+ */
702
+ readonly isShared?: boolean
703
+
486
704
  /**
487
705
  *
488
706
  * @type {SurveyFormStatus}
@@ -573,6 +791,62 @@ export interface SurveyFormsApiApiV1SurveyformsSurveyFormIdGetRequest {
573
791
  * @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdGet
574
792
  */
575
793
  readonly languageCode?: string
794
+
795
+ /**
796
+ *
797
+ * @type {string}
798
+ * @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdGet
799
+ */
800
+ readonly hospitalId?: string
801
+ }
802
+
803
+ /**
804
+ * Request parameters for apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete operation in SurveyFormsApi.
805
+ * @export
806
+ * @interface SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdDeleteRequest
807
+ */
808
+ export interface SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdDeleteRequest {
809
+ /**
810
+ *
811
+ * @type {string}
812
+ * @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete
813
+ */
814
+ readonly surveyFormId: string
815
+
816
+ /**
817
+ *
818
+ * @type {string}
819
+ * @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete
820
+ */
821
+ readonly hospitalId: string
822
+ }
823
+
824
+ /**
825
+ * Request parameters for apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost operation in SurveyFormsApi.
826
+ * @export
827
+ * @interface SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdPostRequest
828
+ */
829
+ export interface SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdPostRequest {
830
+ /**
831
+ *
832
+ * @type {string}
833
+ * @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost
834
+ */
835
+ readonly surveyFormId: string
836
+
837
+ /**
838
+ *
839
+ * @type {string}
840
+ * @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost
841
+ */
842
+ readonly hospitalId: string
843
+
844
+ /**
845
+ *
846
+ * @type {SetHospitalIntoSurveyFormCommand}
847
+ * @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost
848
+ */
849
+ readonly setHospitalIntoSurveyFormCommand?: SetHospitalIntoSurveyFormCommand
576
850
  }
577
851
 
578
852
  /**
@@ -596,6 +870,20 @@ export interface SurveyFormsApiApiV1SurveyformsSurveyFormIdPutRequest {
596
870
  readonly updateSurveyFormCommand?: UpdateSurveyFormCommand
597
871
  }
598
872
 
873
+ /**
874
+ * Request parameters for apiV1SurveyformsSurveyFormIdReactivatePut operation in SurveyFormsApi.
875
+ * @export
876
+ * @interface SurveyFormsApiApiV1SurveyformsSurveyFormIdReactivatePutRequest
877
+ */
878
+ export interface SurveyFormsApiApiV1SurveyformsSurveyFormIdReactivatePutRequest {
879
+ /**
880
+ *
881
+ * @type {string}
882
+ * @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdReactivatePut
883
+ */
884
+ readonly surveyFormId: string
885
+ }
886
+
599
887
  /**
600
888
  * SurveyFormsApi - object-oriented interface
601
889
  * @export
@@ -612,7 +900,7 @@ export class SurveyFormsApi extends BaseAPI {
612
900
  * @memberof SurveyFormsApi
613
901
  */
614
902
  public apiV1SurveyformsGet(requestParameters: SurveyFormsApiApiV1SurveyformsGetRequest = {}, options?: AxiosRequestConfig) {
615
- return SurveyFormsApiFp(this.configuration).apiV1SurveyformsGet(requestParameters.id, requestParameters.hospitalId, requestParameters.name, requestParameters.languageCode, requestParameters.showHidden, requestParameters.status, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
903
+ return SurveyFormsApiFp(this.configuration).apiV1SurveyformsGet(requestParameters.id, requestParameters.hospitalId, requestParameters.name, requestParameters.languageCode, requestParameters.showHidden, requestParameters.isShared, requestParameters.status, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
616
904
  }
617
905
 
618
906
  /**
@@ -648,7 +936,31 @@ export class SurveyFormsApi extends BaseAPI {
648
936
  * @memberof SurveyFormsApi
649
937
  */
650
938
  public apiV1SurveyformsSurveyFormIdGet(requestParameters: SurveyFormsApiApiV1SurveyformsSurveyFormIdGetRequest, options?: AxiosRequestConfig) {
651
- return SurveyFormsApiFp(this.configuration).apiV1SurveyformsSurveyFormIdGet(requestParameters.surveyFormId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
939
+ return SurveyFormsApiFp(this.configuration).apiV1SurveyformsSurveyFormIdGet(requestParameters.surveyFormId, requestParameters.languageCode, requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
940
+ }
941
+
942
+ /**
943
+ *
944
+ * @summary Remove hospital from surveyFormAffiliations
945
+ * @param {SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdDeleteRequest} requestParameters Request parameters.
946
+ * @param {*} [options] Override http request option.
947
+ * @throws {RequiredError}
948
+ * @memberof SurveyFormsApi
949
+ */
950
+ public apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete(requestParameters: SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdDeleteRequest, options?: AxiosRequestConfig) {
951
+ return SurveyFormsApiFp(this.configuration).apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete(requestParameters.surveyFormId, requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
952
+ }
953
+
954
+ /**
955
+ *
956
+ * @summary Add hospital into surveyFormAffiliation.
957
+ * @param {SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdPostRequest} requestParameters Request parameters.
958
+ * @param {*} [options] Override http request option.
959
+ * @throws {RequiredError}
960
+ * @memberof SurveyFormsApi
961
+ */
962
+ public apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost(requestParameters: SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdPostRequest, options?: AxiosRequestConfig) {
963
+ return SurveyFormsApiFp(this.configuration).apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost(requestParameters.surveyFormId, requestParameters.hospitalId, requestParameters.setHospitalIntoSurveyFormCommand, options).then((request) => request(this.axios, this.basePath));
652
964
  }
653
965
 
654
966
  /**
@@ -662,4 +974,16 @@ export class SurveyFormsApi extends BaseAPI {
662
974
  public apiV1SurveyformsSurveyFormIdPut(requestParameters: SurveyFormsApiApiV1SurveyformsSurveyFormIdPutRequest, options?: AxiosRequestConfig) {
663
975
  return SurveyFormsApiFp(this.configuration).apiV1SurveyformsSurveyFormIdPut(requestParameters.surveyFormId, requestParameters.updateSurveyFormCommand, options).then((request) => request(this.axios, this.basePath));
664
976
  }
977
+
978
+ /**
979
+ *
980
+ * @summary Reactivate surveyForm
981
+ * @param {SurveyFormsApiApiV1SurveyformsSurveyFormIdReactivatePutRequest} requestParameters Request parameters.
982
+ * @param {*} [options] Override http request option.
983
+ * @throws {RequiredError}
984
+ * @memberof SurveyFormsApi
985
+ */
986
+ public apiV1SurveyformsSurveyFormIdReactivatePut(requestParameters: SurveyFormsApiApiV1SurveyformsSurveyFormIdReactivatePutRequest, options?: AxiosRequestConfig) {
987
+ return SurveyFormsApiFp(this.configuration).apiV1SurveyformsSurveyFormIdReactivatePut(requestParameters.surveyFormId, options).then((request) => request(this.axios, this.basePath));
988
+ }
665
989
  }
@@ -50,6 +50,12 @@ export interface CreateSurveyFormCommand {
50
50
  * @memberof CreateSurveyFormCommand
51
51
  */
52
52
  'urlAfterDone'?: string | null;
53
+ /**
54
+ *
55
+ * @type {boolean}
56
+ * @memberof CreateSurveyFormCommand
57
+ */
58
+ 'isShared'?: boolean | null;
53
59
  /**
54
60
  *
55
61
  * @type {string}
@@ -0,0 +1,42 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface FormTemplateAffiliationModel
21
+ */
22
+ export interface FormTemplateAffiliationModel {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof FormTemplateAffiliationModel
27
+ */
28
+ 'hospitalId'?: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof FormTemplateAffiliationModel
33
+ */
34
+ 'hospitalName'?: string | null;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof FormTemplateAffiliationModel
39
+ */
40
+ 'urlAfterDone'?: string | null;
41
+ }
42
+
@@ -18,6 +18,9 @@
18
18
  import { AuditableEntityModel } from './auditable-entity-model';
19
19
  // May contain unused imports in some cases
20
20
  // @ts-ignore
21
+ import { FormTemplateAffiliationModel } from './form-template-affiliation-model';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
21
24
  import { FormTemplatePlatform } from './form-template-platform';
22
25
  // May contain unused imports in some cases
23
26
  // @ts-ignore
@@ -55,7 +58,7 @@ export interface FormTemplateItemModel {
55
58
  * @type {string}
56
59
  * @memberof FormTemplateItemModel
57
60
  */
58
- 'hospitalId'?: string | null;
61
+ 'urlAfterDone'?: string | null;
59
62
  /**
60
63
  *
61
64
  * @type {string}
@@ -68,6 +71,24 @@ export interface FormTemplateItemModel {
68
71
  * @memberof FormTemplateItemModel
69
72
  */
70
73
  'platform'?: FormTemplatePlatform;
74
+ /**
75
+ *
76
+ * @type {boolean}
77
+ * @memberof FormTemplateItemModel
78
+ */
79
+ 'isShared'?: boolean;
80
+ /**
81
+ *
82
+ * @type {Array<FormTemplateAffiliationModel>}
83
+ * @memberof FormTemplateItemModel
84
+ */
85
+ 'formTemplateAffiliations'?: Array<FormTemplateAffiliationModel> | null;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof FormTemplateItemModel
90
+ */
91
+ 'hospitalId'?: string | null;
71
92
  /**
72
93
  *
73
94
  * @type {string}
@@ -21,6 +21,9 @@ import { AuditableEntityModel } from './auditable-entity-model';
21
21
  import { FormSectionModel } from './form-section-model';
22
22
  // May contain unused imports in some cases
23
23
  // @ts-ignore
24
+ import { FormTemplateAffiliationModel } from './form-template-affiliation-model';
25
+ // May contain unused imports in some cases
26
+ // @ts-ignore
24
27
  import { FormTemplatePlatform } from './form-template-platform';
25
28
  // May contain unused imports in some cases
26
29
  // @ts-ignore
@@ -58,7 +61,7 @@ export interface FormTemplateModel {
58
61
  * @type {string}
59
62
  * @memberof FormTemplateModel
60
63
  */
61
- 'hospitalId'?: string | null;
64
+ 'urlAfterDone'?: string | null;
62
65
  /**
63
66
  *
64
67
  * @type {string}
@@ -71,6 +74,24 @@ export interface FormTemplateModel {
71
74
  * @memberof FormTemplateModel
72
75
  */
73
76
  'platform'?: FormTemplatePlatform;
77
+ /**
78
+ *
79
+ * @type {boolean}
80
+ * @memberof FormTemplateModel
81
+ */
82
+ 'isShared'?: boolean;
83
+ /**
84
+ *
85
+ * @type {Array<FormTemplateAffiliationModel>}
86
+ * @memberof FormTemplateModel
87
+ */
88
+ 'formTemplateAffiliations'?: Array<FormTemplateAffiliationModel> | null;
89
+ /**
90
+ *
91
+ * @type {string}
92
+ * @memberof FormTemplateModel
93
+ */
94
+ 'hospitalId'?: string | null;
74
95
  /**
75
96
  *
76
97
  * @type {string}
@@ -237,6 +237,7 @@ export * from './form-result-value-model';
237
237
  export * from './form-results-model';
238
238
  export * from './form-section-input-model';
239
239
  export * from './form-section-model';
240
+ export * from './form-template-affiliation-model';
240
241
  export * from './form-template-item-model';
241
242
  export * from './form-template-model';
242
243
  export * from './form-template-platform';
@@ -433,6 +434,8 @@ export * from './service-review-item-model';
433
434
  export * from './service-review-model';
434
435
  export * from './service-reviews-model';
435
436
  export * from './session-token';
437
+ export * from './set-hospital-into-form-template-command';
438
+ export * from './set-hospital-into-survey-form-command';
436
439
  export * from './sns-handle-model';
437
440
  export * from './sns-type';
438
441
  export * from './sort-footer-navigations-command';
@@ -453,6 +456,7 @@ export * from './specialty-types-model';
453
456
  export * from './specialty-types-simple-model';
454
457
  export * from './string-filter-types';
455
458
  export * from './subscription-model';
459
+ export * from './survey-form-affiliation-model';
456
460
  export * from './survey-form-duration-statistics-model';
457
461
  export * from './survey-form-element-input-model';
458
462
  export * from './survey-form-element-model';