ch-admin-api-client-typescript 5.36.14 → 5.36.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/form-templates-api.d.ts +132 -3
- package/lib/api/form-templates-api.d.ts.map +1 -1
- package/lib/api/form-templates-api.js +199 -6
- package/lib/api/survey-forms-api.d.ts +178 -3
- package/lib/api/survey-forms-api.d.ts.map +1 -1
- package/lib/api/survey-forms-api.js +284 -6
- package/lib/models/create-survey-form-command.d.ts +6 -0
- package/lib/models/create-survey-form-command.d.ts.map +1 -1
- package/lib/models/form-template-affiliation-model.d.ts +37 -0
- package/lib/models/form-template-affiliation-model.d.ts.map +1 -0
- package/lib/models/form-template-affiliation-model.js +15 -0
- package/lib/models/form-template-item-model.d.ts +19 -0
- package/lib/models/form-template-item-model.d.ts.map +1 -1
- package/lib/models/form-template-model.d.ts +19 -0
- package/lib/models/form-template-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +4 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +4 -0
- package/lib/models/save-form-template-command.d.ts +12 -0
- package/lib/models/save-form-template-command.d.ts.map +1 -1
- package/lib/models/set-hospital-into-form-template-command.d.ts +25 -0
- package/lib/models/set-hospital-into-form-template-command.d.ts.map +1 -0
- package/lib/models/set-hospital-into-form-template-command.js +15 -0
- package/lib/models/set-hospital-into-survey-form-command.d.ts +25 -0
- package/lib/models/set-hospital-into-survey-form-command.d.ts.map +1 -0
- package/lib/models/set-hospital-into-survey-form-command.js +15 -0
- package/lib/models/survey-form-affiliation-model.d.ts +31 -0
- package/lib/models/survey-form-affiliation-model.d.ts.map +1 -0
- package/lib/models/survey-form-affiliation-model.js +15 -0
- package/lib/models/survey-form-item-model.d.ts +13 -0
- package/lib/models/survey-form-item-model.d.ts.map +1 -1
- package/lib/models/survey-form-model.d.ts +13 -0
- package/lib/models/survey-form-model.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +4 -0
- package/src/api/form-templates-api.ts +231 -6
- package/src/api/survey-forms-api.ts +316 -6
- package/src/models/create-survey-form-command.ts +6 -0
- package/src/models/form-template-affiliation-model.ts +42 -0
- package/src/models/form-template-item-model.ts +21 -0
- package/src/models/form-template-model.ts +21 -0
- package/src/models/index.ts +4 -0
- package/src/models/save-form-template-command.ts +12 -0
- package/src/models/set-hospital-into-form-template-command.ts +30 -0
- package/src/models/set-hospital-into-survey-form-command.ts +30 -0
- package/src/models/survey-form-affiliation-model.ts +36 -0
- package/src/models/survey-form-item-model.ts +15 -0
- 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';
|
|
@@ -210,10 +212,11 @@ export const SurveyFormsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
210
212
|
* @summary Get survey form by Id
|
|
211
213
|
* @param {string} surveyFormId
|
|
212
214
|
* @param {string} [languageCode]
|
|
215
|
+
* @param {string} [hospitalId]
|
|
213
216
|
* @param {*} [options] Override http request option.
|
|
214
217
|
* @throws {RequiredError}
|
|
215
218
|
*/
|
|
216
|
-
apiV1SurveyformsSurveyFormIdGet: async (surveyFormId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
219
|
+
apiV1SurveyformsSurveyFormIdGet: async (surveyFormId: string, languageCode?: string, hospitalId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
217
220
|
// verify required parameter 'surveyFormId' is not null or undefined
|
|
218
221
|
assertParamExists('apiV1SurveyformsSurveyFormIdGet', 'surveyFormId', surveyFormId)
|
|
219
222
|
const localVarPath = `/api/v1/surveyforms/{surveyFormId}`
|
|
@@ -237,6 +240,52 @@ export const SurveyFormsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
237
240
|
localVarQueryParameter['languageCode'] = languageCode;
|
|
238
241
|
}
|
|
239
242
|
|
|
243
|
+
if (hospitalId !== undefined) {
|
|
244
|
+
localVarQueryParameter['hospitalId'] = hospitalId;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
250
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
251
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
252
|
+
|
|
253
|
+
return {
|
|
254
|
+
url: toPathString(localVarUrlObj),
|
|
255
|
+
options: localVarRequestOptions,
|
|
256
|
+
};
|
|
257
|
+
},
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @summary Remove hospital from surveyFormAffiliations
|
|
261
|
+
* @param {string} surveyFormId
|
|
262
|
+
* @param {string} hospitalId
|
|
263
|
+
* @param {*} [options] Override http request option.
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
*/
|
|
266
|
+
apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete: async (surveyFormId: string, hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
267
|
+
// verify required parameter 'surveyFormId' is not null or undefined
|
|
268
|
+
assertParamExists('apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete', 'surveyFormId', surveyFormId)
|
|
269
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
270
|
+
assertParamExists('apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete', 'hospitalId', hospitalId)
|
|
271
|
+
const localVarPath = `/api/v1/surveyforms/{surveyFormId}/hospitals/{hospitalId}`
|
|
272
|
+
.replace(`{${"surveyFormId"}}`, encodeURIComponent(String(surveyFormId)))
|
|
273
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
274
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
275
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
276
|
+
let baseOptions;
|
|
277
|
+
if (configuration) {
|
|
278
|
+
baseOptions = configuration.baseOptions;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
282
|
+
const localVarHeaderParameter = {} as any;
|
|
283
|
+
const localVarQueryParameter = {} as any;
|
|
284
|
+
|
|
285
|
+
// authentication oauth2 required
|
|
286
|
+
// oauth required
|
|
287
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
|
|
288
|
+
|
|
240
289
|
|
|
241
290
|
|
|
242
291
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -248,6 +297,52 @@ export const SurveyFormsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
248
297
|
options: localVarRequestOptions,
|
|
249
298
|
};
|
|
250
299
|
},
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @summary Add hospital into surveyFormAffiliation.
|
|
303
|
+
* @param {string} surveyFormId
|
|
304
|
+
* @param {string} hospitalId
|
|
305
|
+
* @param {SetHospitalIntoSurveyFormCommand} [setHospitalIntoSurveyFormCommand]
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
*/
|
|
309
|
+
apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost: async (surveyFormId: string, hospitalId: string, setHospitalIntoSurveyFormCommand?: SetHospitalIntoSurveyFormCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
310
|
+
// verify required parameter 'surveyFormId' is not null or undefined
|
|
311
|
+
assertParamExists('apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost', 'surveyFormId', surveyFormId)
|
|
312
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
313
|
+
assertParamExists('apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost', 'hospitalId', hospitalId)
|
|
314
|
+
const localVarPath = `/api/v1/surveyforms/{surveyFormId}/hospitals/{hospitalId}`
|
|
315
|
+
.replace(`{${"surveyFormId"}}`, encodeURIComponent(String(surveyFormId)))
|
|
316
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
317
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
318
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
319
|
+
let baseOptions;
|
|
320
|
+
if (configuration) {
|
|
321
|
+
baseOptions = configuration.baseOptions;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
325
|
+
const localVarHeaderParameter = {} as any;
|
|
326
|
+
const localVarQueryParameter = {} as any;
|
|
327
|
+
|
|
328
|
+
// authentication oauth2 required
|
|
329
|
+
// oauth required
|
|
330
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
335
|
+
|
|
336
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
337
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
338
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
339
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setHospitalIntoSurveyFormCommand, localVarRequestOptions, configuration)
|
|
340
|
+
|
|
341
|
+
return {
|
|
342
|
+
url: toPathString(localVarUrlObj),
|
|
343
|
+
options: localVarRequestOptions,
|
|
344
|
+
};
|
|
345
|
+
},
|
|
251
346
|
/**
|
|
252
347
|
*
|
|
253
348
|
* @summary Update survey form
|
|
@@ -285,6 +380,44 @@ export const SurveyFormsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
285
380
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
286
381
|
localVarRequestOptions.data = serializeDataIfNeeded(updateSurveyFormCommand, localVarRequestOptions, configuration)
|
|
287
382
|
|
|
383
|
+
return {
|
|
384
|
+
url: toPathString(localVarUrlObj),
|
|
385
|
+
options: localVarRequestOptions,
|
|
386
|
+
};
|
|
387
|
+
},
|
|
388
|
+
/**
|
|
389
|
+
*
|
|
390
|
+
* @summary Reactivate surveyForm
|
|
391
|
+
* @param {string} surveyFormId
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
*/
|
|
395
|
+
apiV1SurveyformsSurveyFormIdReactivatePut: async (surveyFormId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
396
|
+
// verify required parameter 'surveyFormId' is not null or undefined
|
|
397
|
+
assertParamExists('apiV1SurveyformsSurveyFormIdReactivatePut', 'surveyFormId', surveyFormId)
|
|
398
|
+
const localVarPath = `/api/v1/surveyforms/{surveyFormId}/reactivate`
|
|
399
|
+
.replace(`{${"surveyFormId"}}`, encodeURIComponent(String(surveyFormId)));
|
|
400
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
401
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
402
|
+
let baseOptions;
|
|
403
|
+
if (configuration) {
|
|
404
|
+
baseOptions = configuration.baseOptions;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
408
|
+
const localVarHeaderParameter = {} as any;
|
|
409
|
+
const localVarQueryParameter = {} as any;
|
|
410
|
+
|
|
411
|
+
// authentication oauth2 required
|
|
412
|
+
// oauth required
|
|
413
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
418
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
419
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
420
|
+
|
|
288
421
|
return {
|
|
289
422
|
url: toPathString(localVarUrlObj),
|
|
290
423
|
options: localVarRequestOptions,
|
|
@@ -348,11 +481,37 @@ export const SurveyFormsApiFp = function(configuration?: Configuration) {
|
|
|
348
481
|
* @summary Get survey form by Id
|
|
349
482
|
* @param {string} surveyFormId
|
|
350
483
|
* @param {string} [languageCode]
|
|
484
|
+
* @param {string} [hospitalId]
|
|
351
485
|
* @param {*} [options] Override http request option.
|
|
352
486
|
* @throws {RequiredError}
|
|
353
487
|
*/
|
|
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);
|
|
488
|
+
async apiV1SurveyformsSurveyFormIdGet(surveyFormId: string, languageCode?: string, hospitalId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SurveyFormModel>> {
|
|
489
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdGet(surveyFormId, languageCode, hospitalId, options);
|
|
490
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
491
|
+
},
|
|
492
|
+
/**
|
|
493
|
+
*
|
|
494
|
+
* @summary Remove hospital from surveyFormAffiliations
|
|
495
|
+
* @param {string} surveyFormId
|
|
496
|
+
* @param {string} hospitalId
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
*/
|
|
500
|
+
async apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete(surveyFormId: string, hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
501
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete(surveyFormId, hospitalId, options);
|
|
502
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
503
|
+
},
|
|
504
|
+
/**
|
|
505
|
+
*
|
|
506
|
+
* @summary Add hospital into surveyFormAffiliation.
|
|
507
|
+
* @param {string} surveyFormId
|
|
508
|
+
* @param {string} hospitalId
|
|
509
|
+
* @param {SetHospitalIntoSurveyFormCommand} [setHospitalIntoSurveyFormCommand]
|
|
510
|
+
* @param {*} [options] Override http request option.
|
|
511
|
+
* @throws {RequiredError}
|
|
512
|
+
*/
|
|
513
|
+
async apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost(surveyFormId: string, hospitalId: string, setHospitalIntoSurveyFormCommand?: SetHospitalIntoSurveyFormCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
514
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost(surveyFormId, hospitalId, setHospitalIntoSurveyFormCommand, options);
|
|
356
515
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
357
516
|
},
|
|
358
517
|
/**
|
|
@@ -367,6 +526,17 @@ export const SurveyFormsApiFp = function(configuration?: Configuration) {
|
|
|
367
526
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdPut(surveyFormId, updateSurveyFormCommand, options);
|
|
368
527
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
369
528
|
},
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
* @summary Reactivate surveyForm
|
|
532
|
+
* @param {string} surveyFormId
|
|
533
|
+
* @param {*} [options] Override http request option.
|
|
534
|
+
* @throws {RequiredError}
|
|
535
|
+
*/
|
|
536
|
+
async apiV1SurveyformsSurveyFormIdReactivatePut(surveyFormId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
537
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdReactivatePut(surveyFormId, options);
|
|
538
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
539
|
+
},
|
|
370
540
|
}
|
|
371
541
|
};
|
|
372
542
|
|
|
@@ -422,11 +592,35 @@ export const SurveyFormsApiFactory = function (configuration?: Configuration, ba
|
|
|
422
592
|
* @summary Get survey form by Id
|
|
423
593
|
* @param {string} surveyFormId
|
|
424
594
|
* @param {string} [languageCode]
|
|
595
|
+
* @param {string} [hospitalId]
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
*/
|
|
599
|
+
apiV1SurveyformsSurveyFormIdGet(surveyFormId: string, languageCode?: string, hospitalId?: string, options?: any): AxiosPromise<SurveyFormModel> {
|
|
600
|
+
return localVarFp.apiV1SurveyformsSurveyFormIdGet(surveyFormId, languageCode, hospitalId, options).then((request) => request(axios, basePath));
|
|
601
|
+
},
|
|
602
|
+
/**
|
|
603
|
+
*
|
|
604
|
+
* @summary Remove hospital from surveyFormAffiliations
|
|
605
|
+
* @param {string} surveyFormId
|
|
606
|
+
* @param {string} hospitalId
|
|
425
607
|
* @param {*} [options] Override http request option.
|
|
426
608
|
* @throws {RequiredError}
|
|
427
609
|
*/
|
|
428
|
-
|
|
429
|
-
return localVarFp.
|
|
610
|
+
apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete(surveyFormId: string, hospitalId: string, options?: any): AxiosPromise<boolean> {
|
|
611
|
+
return localVarFp.apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete(surveyFormId, hospitalId, options).then((request) => request(axios, basePath));
|
|
612
|
+
},
|
|
613
|
+
/**
|
|
614
|
+
*
|
|
615
|
+
* @summary Add hospital into surveyFormAffiliation.
|
|
616
|
+
* @param {string} surveyFormId
|
|
617
|
+
* @param {string} hospitalId
|
|
618
|
+
* @param {SetHospitalIntoSurveyFormCommand} [setHospitalIntoSurveyFormCommand]
|
|
619
|
+
* @param {*} [options] Override http request option.
|
|
620
|
+
* @throws {RequiredError}
|
|
621
|
+
*/
|
|
622
|
+
apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost(surveyFormId: string, hospitalId: string, setHospitalIntoSurveyFormCommand?: SetHospitalIntoSurveyFormCommand, options?: any): AxiosPromise<boolean> {
|
|
623
|
+
return localVarFp.apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost(surveyFormId, hospitalId, setHospitalIntoSurveyFormCommand, options).then((request) => request(axios, basePath));
|
|
430
624
|
},
|
|
431
625
|
/**
|
|
432
626
|
*
|
|
@@ -439,6 +633,16 @@ export const SurveyFormsApiFactory = function (configuration?: Configuration, ba
|
|
|
439
633
|
apiV1SurveyformsSurveyFormIdPut(surveyFormId: string, updateSurveyFormCommand?: UpdateSurveyFormCommand, options?: any): AxiosPromise<SurveyFormModel> {
|
|
440
634
|
return localVarFp.apiV1SurveyformsSurveyFormIdPut(surveyFormId, updateSurveyFormCommand, options).then((request) => request(axios, basePath));
|
|
441
635
|
},
|
|
636
|
+
/**
|
|
637
|
+
*
|
|
638
|
+
* @summary Reactivate surveyForm
|
|
639
|
+
* @param {string} surveyFormId
|
|
640
|
+
* @param {*} [options] Override http request option.
|
|
641
|
+
* @throws {RequiredError}
|
|
642
|
+
*/
|
|
643
|
+
apiV1SurveyformsSurveyFormIdReactivatePut(surveyFormId: string, options?: any): AxiosPromise<boolean> {
|
|
644
|
+
return localVarFp.apiV1SurveyformsSurveyFormIdReactivatePut(surveyFormId, options).then((request) => request(axios, basePath));
|
|
645
|
+
},
|
|
442
646
|
};
|
|
443
647
|
};
|
|
444
648
|
|
|
@@ -573,6 +777,62 @@ export interface SurveyFormsApiApiV1SurveyformsSurveyFormIdGetRequest {
|
|
|
573
777
|
* @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdGet
|
|
574
778
|
*/
|
|
575
779
|
readonly languageCode?: string
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
*
|
|
783
|
+
* @type {string}
|
|
784
|
+
* @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdGet
|
|
785
|
+
*/
|
|
786
|
+
readonly hospitalId?: string
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Request parameters for apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete operation in SurveyFormsApi.
|
|
791
|
+
* @export
|
|
792
|
+
* @interface SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdDeleteRequest
|
|
793
|
+
*/
|
|
794
|
+
export interface SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdDeleteRequest {
|
|
795
|
+
/**
|
|
796
|
+
*
|
|
797
|
+
* @type {string}
|
|
798
|
+
* @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete
|
|
799
|
+
*/
|
|
800
|
+
readonly surveyFormId: string
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @type {string}
|
|
805
|
+
* @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete
|
|
806
|
+
*/
|
|
807
|
+
readonly hospitalId: string
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Request parameters for apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost operation in SurveyFormsApi.
|
|
812
|
+
* @export
|
|
813
|
+
* @interface SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdPostRequest
|
|
814
|
+
*/
|
|
815
|
+
export interface SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdPostRequest {
|
|
816
|
+
/**
|
|
817
|
+
*
|
|
818
|
+
* @type {string}
|
|
819
|
+
* @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost
|
|
820
|
+
*/
|
|
821
|
+
readonly surveyFormId: string
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
*
|
|
825
|
+
* @type {string}
|
|
826
|
+
* @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost
|
|
827
|
+
*/
|
|
828
|
+
readonly hospitalId: string
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
*
|
|
832
|
+
* @type {SetHospitalIntoSurveyFormCommand}
|
|
833
|
+
* @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost
|
|
834
|
+
*/
|
|
835
|
+
readonly setHospitalIntoSurveyFormCommand?: SetHospitalIntoSurveyFormCommand
|
|
576
836
|
}
|
|
577
837
|
|
|
578
838
|
/**
|
|
@@ -596,6 +856,20 @@ export interface SurveyFormsApiApiV1SurveyformsSurveyFormIdPutRequest {
|
|
|
596
856
|
readonly updateSurveyFormCommand?: UpdateSurveyFormCommand
|
|
597
857
|
}
|
|
598
858
|
|
|
859
|
+
/**
|
|
860
|
+
* Request parameters for apiV1SurveyformsSurveyFormIdReactivatePut operation in SurveyFormsApi.
|
|
861
|
+
* @export
|
|
862
|
+
* @interface SurveyFormsApiApiV1SurveyformsSurveyFormIdReactivatePutRequest
|
|
863
|
+
*/
|
|
864
|
+
export interface SurveyFormsApiApiV1SurveyformsSurveyFormIdReactivatePutRequest {
|
|
865
|
+
/**
|
|
866
|
+
*
|
|
867
|
+
* @type {string}
|
|
868
|
+
* @memberof SurveyFormsApiApiV1SurveyformsSurveyFormIdReactivatePut
|
|
869
|
+
*/
|
|
870
|
+
readonly surveyFormId: string
|
|
871
|
+
}
|
|
872
|
+
|
|
599
873
|
/**
|
|
600
874
|
* SurveyFormsApi - object-oriented interface
|
|
601
875
|
* @export
|
|
@@ -648,7 +922,31 @@ export class SurveyFormsApi extends BaseAPI {
|
|
|
648
922
|
* @memberof SurveyFormsApi
|
|
649
923
|
*/
|
|
650
924
|
public apiV1SurveyformsSurveyFormIdGet(requestParameters: SurveyFormsApiApiV1SurveyformsSurveyFormIdGetRequest, options?: AxiosRequestConfig) {
|
|
651
|
-
return SurveyFormsApiFp(this.configuration).apiV1SurveyformsSurveyFormIdGet(requestParameters.surveyFormId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
925
|
+
return SurveyFormsApiFp(this.configuration).apiV1SurveyformsSurveyFormIdGet(requestParameters.surveyFormId, requestParameters.languageCode, requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
*
|
|
930
|
+
* @summary Remove hospital from surveyFormAffiliations
|
|
931
|
+
* @param {SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdDeleteRequest} requestParameters Request parameters.
|
|
932
|
+
* @param {*} [options] Override http request option.
|
|
933
|
+
* @throws {RequiredError}
|
|
934
|
+
* @memberof SurveyFormsApi
|
|
935
|
+
*/
|
|
936
|
+
public apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete(requestParameters: SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdDeleteRequest, options?: AxiosRequestConfig) {
|
|
937
|
+
return SurveyFormsApiFp(this.configuration).apiV1SurveyformsSurveyFormIdHospitalsHospitalIdDelete(requestParameters.surveyFormId, requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
*
|
|
942
|
+
* @summary Add hospital into surveyFormAffiliation.
|
|
943
|
+
* @param {SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdPostRequest} requestParameters Request parameters.
|
|
944
|
+
* @param {*} [options] Override http request option.
|
|
945
|
+
* @throws {RequiredError}
|
|
946
|
+
* @memberof SurveyFormsApi
|
|
947
|
+
*/
|
|
948
|
+
public apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost(requestParameters: SurveyFormsApiApiV1SurveyformsSurveyFormIdHospitalsHospitalIdPostRequest, options?: AxiosRequestConfig) {
|
|
949
|
+
return SurveyFormsApiFp(this.configuration).apiV1SurveyformsSurveyFormIdHospitalsHospitalIdPost(requestParameters.surveyFormId, requestParameters.hospitalId, requestParameters.setHospitalIntoSurveyFormCommand, options).then((request) => request(this.axios, this.basePath));
|
|
652
950
|
}
|
|
653
951
|
|
|
654
952
|
/**
|
|
@@ -662,4 +960,16 @@ export class SurveyFormsApi extends BaseAPI {
|
|
|
662
960
|
public apiV1SurveyformsSurveyFormIdPut(requestParameters: SurveyFormsApiApiV1SurveyformsSurveyFormIdPutRequest, options?: AxiosRequestConfig) {
|
|
663
961
|
return SurveyFormsApiFp(this.configuration).apiV1SurveyformsSurveyFormIdPut(requestParameters.surveyFormId, requestParameters.updateSurveyFormCommand, options).then((request) => request(this.axios, this.basePath));
|
|
664
962
|
}
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
*
|
|
966
|
+
* @summary Reactivate surveyForm
|
|
967
|
+
* @param {SurveyFormsApiApiV1SurveyformsSurveyFormIdReactivatePutRequest} requestParameters Request parameters.
|
|
968
|
+
* @param {*} [options] Override http request option.
|
|
969
|
+
* @throws {RequiredError}
|
|
970
|
+
* @memberof SurveyFormsApi
|
|
971
|
+
*/
|
|
972
|
+
public apiV1SurveyformsSurveyFormIdReactivatePut(requestParameters: SurveyFormsApiApiV1SurveyformsSurveyFormIdReactivatePutRequest, options?: AxiosRequestConfig) {
|
|
973
|
+
return SurveyFormsApiFp(this.configuration).apiV1SurveyformsSurveyFormIdReactivatePut(requestParameters.surveyFormId, options).then((request) => request(this.axios, this.basePath));
|
|
974
|
+
}
|
|
665
975
|
}
|
|
@@ -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
|
|
@@ -56,6 +59,12 @@ export interface FormTemplateItemModel {
|
|
|
56
59
|
* @memberof FormTemplateItemModel
|
|
57
60
|
*/
|
|
58
61
|
'hospitalId'?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof FormTemplateItemModel
|
|
66
|
+
*/
|
|
67
|
+
'urlAfterDone'?: string | null;
|
|
59
68
|
/**
|
|
60
69
|
*
|
|
61
70
|
* @type {string}
|
|
@@ -68,6 +77,18 @@ export interface FormTemplateItemModel {
|
|
|
68
77
|
* @memberof FormTemplateItemModel
|
|
69
78
|
*/
|
|
70
79
|
'platform'?: FormTemplatePlatform;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
* @memberof FormTemplateItemModel
|
|
84
|
+
*/
|
|
85
|
+
'isShared'?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {Array<FormTemplateAffiliationModel>}
|
|
89
|
+
* @memberof FormTemplateItemModel
|
|
90
|
+
*/
|
|
91
|
+
'formTemplateAffiliations'?: Array<FormTemplateAffiliationModel> | 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
|
|
@@ -59,6 +62,12 @@ export interface FormTemplateModel {
|
|
|
59
62
|
* @memberof FormTemplateModel
|
|
60
63
|
*/
|
|
61
64
|
'hospitalId'?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof FormTemplateModel
|
|
69
|
+
*/
|
|
70
|
+
'urlAfterDone'?: string | null;
|
|
62
71
|
/**
|
|
63
72
|
*
|
|
64
73
|
* @type {string}
|
|
@@ -71,6 +80,18 @@ export interface FormTemplateModel {
|
|
|
71
80
|
* @memberof FormTemplateModel
|
|
72
81
|
*/
|
|
73
82
|
'platform'?: FormTemplatePlatform;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {boolean}
|
|
86
|
+
* @memberof FormTemplateModel
|
|
87
|
+
*/
|
|
88
|
+
'isShared'?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Array<FormTemplateAffiliationModel>}
|
|
92
|
+
* @memberof FormTemplateModel
|
|
93
|
+
*/
|
|
94
|
+
'formTemplateAffiliations'?: Array<FormTemplateAffiliationModel> | null;
|
|
74
95
|
/**
|
|
75
96
|
*
|
|
76
97
|
* @type {string}
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|
|
@@ -59,6 +59,12 @@ export interface SaveFormTemplateCommand {
|
|
|
59
59
|
* @memberof SaveFormTemplateCommand
|
|
60
60
|
*/
|
|
61
61
|
'name'?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof SaveFormTemplateCommand
|
|
66
|
+
*/
|
|
67
|
+
'urlAfterDone'?: string | null;
|
|
62
68
|
/**
|
|
63
69
|
*
|
|
64
70
|
* @type {boolean}
|
|
@@ -83,6 +89,12 @@ export interface SaveFormTemplateCommand {
|
|
|
83
89
|
* @memberof SaveFormTemplateCommand
|
|
84
90
|
*/
|
|
85
91
|
'content'?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {boolean}
|
|
95
|
+
* @memberof SaveFormTemplateCommand
|
|
96
|
+
*/
|
|
97
|
+
'isShared'?: boolean | null;
|
|
86
98
|
/**
|
|
87
99
|
*
|
|
88
100
|
* @type {Array<FormSectionInputModel>}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 SetHospitalIntoFormTemplateCommand
|
|
21
|
+
*/
|
|
22
|
+
export interface SetHospitalIntoFormTemplateCommand {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof SetHospitalIntoFormTemplateCommand
|
|
27
|
+
*/
|
|
28
|
+
'urlAfterDone'?: string | null;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
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 SetHospitalIntoSurveyFormCommand
|
|
21
|
+
*/
|
|
22
|
+
export interface SetHospitalIntoSurveyFormCommand {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof SetHospitalIntoSurveyFormCommand
|
|
27
|
+
*/
|
|
28
|
+
'urlAfterDone'?: string | null;
|
|
29
|
+
}
|
|
30
|
+
|