@resconet/qp-bridge 0.0.1-alpha.9 → 1.0.0
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/README.md +638 -6
- package/index.js +1 -1
- package/index.mjs +1496 -1196
- package/lib/qp-bridge-types.d.ts +360 -0
- package/lib/qp-bridge.d.ts +244 -8
- package/package.json +1 -1
package/lib/qp-bridge-types.d.ts
CHANGED
|
@@ -67,20 +67,26 @@ export declare const questionSchema: z.ZodObject<{
|
|
|
67
67
|
disabled: z.ZodBoolean;
|
|
68
68
|
required: z.ZodBoolean;
|
|
69
69
|
hidden: z.ZodBoolean;
|
|
70
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
71
|
+
answer: z.ZodOptional<z.ZodUnknown>;
|
|
70
72
|
}, "strip", z.ZodTypeAny, {
|
|
71
73
|
label: string;
|
|
72
74
|
description: string;
|
|
73
75
|
disabled: boolean;
|
|
74
76
|
required: boolean;
|
|
75
77
|
hidden: boolean;
|
|
78
|
+
answer?: unknown;
|
|
76
79
|
semanticColor?: string | undefined;
|
|
80
|
+
errorMessage?: string | undefined;
|
|
77
81
|
}, {
|
|
78
82
|
label: string;
|
|
79
83
|
description: string;
|
|
80
84
|
disabled: boolean;
|
|
81
85
|
required: boolean;
|
|
82
86
|
hidden: boolean;
|
|
87
|
+
answer?: unknown;
|
|
83
88
|
semanticColor?: string | undefined;
|
|
89
|
+
errorMessage?: string | undefined;
|
|
84
90
|
}>;
|
|
85
91
|
export declare const questionOptionalScheme: z.ZodObject<{
|
|
86
92
|
semanticColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -89,21 +95,44 @@ export declare const questionOptionalScheme: z.ZodObject<{
|
|
|
89
95
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
90
96
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
91
97
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
errorMessage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
99
|
+
answer: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
|
|
92
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
answer?: unknown;
|
|
93
102
|
semanticColor?: string | undefined;
|
|
94
103
|
label?: string | undefined;
|
|
95
104
|
description?: string | undefined;
|
|
96
105
|
disabled?: boolean | undefined;
|
|
97
106
|
required?: boolean | undefined;
|
|
98
107
|
hidden?: boolean | undefined;
|
|
108
|
+
errorMessage?: string | undefined;
|
|
99
109
|
}, {
|
|
110
|
+
answer?: unknown;
|
|
100
111
|
semanticColor?: string | undefined;
|
|
101
112
|
label?: string | undefined;
|
|
102
113
|
description?: string | undefined;
|
|
103
114
|
disabled?: boolean | undefined;
|
|
104
115
|
required?: boolean | undefined;
|
|
105
116
|
hidden?: boolean | undefined;
|
|
117
|
+
errorMessage?: string | undefined;
|
|
118
|
+
}>;
|
|
119
|
+
export declare const mediaItemSchema: z.ZodObject<{
|
|
120
|
+
id: z.ZodString;
|
|
121
|
+
name: z.ZodString;
|
|
122
|
+
mimeType: z.ZodString;
|
|
123
|
+
blobUrl: z.ZodString;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
id: string;
|
|
126
|
+
name: string;
|
|
127
|
+
mimeType: string;
|
|
128
|
+
blobUrl: string;
|
|
129
|
+
}, {
|
|
130
|
+
id: string;
|
|
131
|
+
name: string;
|
|
132
|
+
mimeType: string;
|
|
133
|
+
blobUrl: string;
|
|
106
134
|
}>;
|
|
135
|
+
export declare const entitySchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
107
136
|
export declare const groupSchema: z.ZodObject<{
|
|
108
137
|
label: z.ZodString;
|
|
109
138
|
hidden: z.ZodBoolean;
|
|
@@ -160,20 +189,26 @@ export declare const getQuestionSuccessResponseMessageSchema: z.ZodObject<z.obje
|
|
|
160
189
|
disabled: z.ZodBoolean;
|
|
161
190
|
required: z.ZodBoolean;
|
|
162
191
|
hidden: z.ZodBoolean;
|
|
192
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
193
|
+
answer: z.ZodOptional<z.ZodUnknown>;
|
|
163
194
|
}, "strip", z.ZodTypeAny, {
|
|
164
195
|
label: string;
|
|
165
196
|
description: string;
|
|
166
197
|
disabled: boolean;
|
|
167
198
|
required: boolean;
|
|
168
199
|
hidden: boolean;
|
|
200
|
+
answer?: unknown;
|
|
169
201
|
semanticColor?: string | undefined;
|
|
202
|
+
errorMessage?: string | undefined;
|
|
170
203
|
}, {
|
|
171
204
|
label: string;
|
|
172
205
|
description: string;
|
|
173
206
|
disabled: boolean;
|
|
174
207
|
required: boolean;
|
|
175
208
|
hidden: boolean;
|
|
209
|
+
answer?: unknown;
|
|
176
210
|
semanticColor?: string | undefined;
|
|
211
|
+
errorMessage?: string | undefined;
|
|
177
212
|
}>;
|
|
178
213
|
}>, "strip", z.ZodTypeAny, {
|
|
179
214
|
type: "qp-bridge";
|
|
@@ -184,7 +219,9 @@ export declare const getQuestionSuccessResponseMessageSchema: z.ZodObject<z.obje
|
|
|
184
219
|
disabled: boolean;
|
|
185
220
|
required: boolean;
|
|
186
221
|
hidden: boolean;
|
|
222
|
+
answer?: unknown;
|
|
187
223
|
semanticColor?: string | undefined;
|
|
224
|
+
errorMessage?: string | undefined;
|
|
188
225
|
};
|
|
189
226
|
id?: string | undefined;
|
|
190
227
|
}, {
|
|
@@ -196,7 +233,9 @@ export declare const getQuestionSuccessResponseMessageSchema: z.ZodObject<z.obje
|
|
|
196
233
|
disabled: boolean;
|
|
197
234
|
required: boolean;
|
|
198
235
|
hidden: boolean;
|
|
236
|
+
answer?: unknown;
|
|
199
237
|
semanticColor?: string | undefined;
|
|
238
|
+
errorMessage?: string | undefined;
|
|
200
239
|
};
|
|
201
240
|
id?: string | undefined;
|
|
202
241
|
}>;
|
|
@@ -213,32 +252,40 @@ export declare const setQuestionRequestMessageSchema: z.ZodObject<z.objectUtil.e
|
|
|
213
252
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
214
253
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
215
254
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
255
|
+
errorMessage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
256
|
+
answer: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
|
|
216
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
answer?: unknown;
|
|
217
259
|
semanticColor?: string | undefined;
|
|
218
260
|
label?: string | undefined;
|
|
219
261
|
description?: string | undefined;
|
|
220
262
|
disabled?: boolean | undefined;
|
|
221
263
|
required?: boolean | undefined;
|
|
222
264
|
hidden?: boolean | undefined;
|
|
265
|
+
errorMessage?: string | undefined;
|
|
223
266
|
}, {
|
|
267
|
+
answer?: unknown;
|
|
224
268
|
semanticColor?: string | undefined;
|
|
225
269
|
label?: string | undefined;
|
|
226
270
|
description?: string | undefined;
|
|
227
271
|
disabled?: boolean | undefined;
|
|
228
272
|
required?: boolean | undefined;
|
|
229
273
|
hidden?: boolean | undefined;
|
|
274
|
+
errorMessage?: string | undefined;
|
|
230
275
|
}>;
|
|
231
276
|
}>, "strip", z.ZodTypeAny, {
|
|
232
277
|
type: "qp-bridge";
|
|
233
278
|
question: string;
|
|
234
279
|
action: "setQuestion";
|
|
235
280
|
questionData: {
|
|
281
|
+
answer?: unknown;
|
|
236
282
|
semanticColor?: string | undefined;
|
|
237
283
|
label?: string | undefined;
|
|
238
284
|
description?: string | undefined;
|
|
239
285
|
disabled?: boolean | undefined;
|
|
240
286
|
required?: boolean | undefined;
|
|
241
287
|
hidden?: boolean | undefined;
|
|
288
|
+
errorMessage?: string | undefined;
|
|
242
289
|
};
|
|
243
290
|
id?: string | undefined;
|
|
244
291
|
}, {
|
|
@@ -246,12 +293,14 @@ export declare const setQuestionRequestMessageSchema: z.ZodObject<z.objectUtil.e
|
|
|
246
293
|
question: string;
|
|
247
294
|
action: "setQuestion";
|
|
248
295
|
questionData: {
|
|
296
|
+
answer?: unknown;
|
|
249
297
|
semanticColor?: string | undefined;
|
|
250
298
|
label?: string | undefined;
|
|
251
299
|
description?: string | undefined;
|
|
252
300
|
disabled?: boolean | undefined;
|
|
253
301
|
required?: boolean | undefined;
|
|
254
302
|
hidden?: boolean | undefined;
|
|
303
|
+
errorMessage?: string | undefined;
|
|
255
304
|
};
|
|
256
305
|
id?: string | undefined;
|
|
257
306
|
}>;
|
|
@@ -310,6 +359,78 @@ export declare const getGroupSuccessResponseMessageSchema: z.ZodObject<z.objectU
|
|
|
310
359
|
};
|
|
311
360
|
id?: string | undefined;
|
|
312
361
|
}>;
|
|
362
|
+
export declare const canSaveSuccessResponseMessageSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
363
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
364
|
+
id: z.ZodOptional<z.ZodString>;
|
|
365
|
+
}, {
|
|
366
|
+
status: z.ZodLiteral<"success">;
|
|
367
|
+
}>, {
|
|
368
|
+
canSave: z.ZodBoolean;
|
|
369
|
+
}>, "strip", z.ZodTypeAny, {
|
|
370
|
+
type: "qp-bridge";
|
|
371
|
+
status: "success";
|
|
372
|
+
canSave: boolean;
|
|
373
|
+
id?: string | undefined;
|
|
374
|
+
}, {
|
|
375
|
+
type: "qp-bridge";
|
|
376
|
+
status: "success";
|
|
377
|
+
canSave: boolean;
|
|
378
|
+
id?: string | undefined;
|
|
379
|
+
}>;
|
|
380
|
+
export declare const canSaveRequestMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
381
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
382
|
+
id: z.ZodOptional<z.ZodString>;
|
|
383
|
+
}, {
|
|
384
|
+
action: z.ZodLiteral<"canSave">;
|
|
385
|
+
}>, "strip", z.ZodTypeAny, {
|
|
386
|
+
type: "qp-bridge";
|
|
387
|
+
action: "canSave";
|
|
388
|
+
id?: string | undefined;
|
|
389
|
+
}, {
|
|
390
|
+
type: "qp-bridge";
|
|
391
|
+
action: "canSave";
|
|
392
|
+
id?: string | undefined;
|
|
393
|
+
}>;
|
|
394
|
+
export declare const setGroupRequestMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
395
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
396
|
+
id: z.ZodOptional<z.ZodString>;
|
|
397
|
+
}, {
|
|
398
|
+
action: z.ZodLiteral<"setGroup">;
|
|
399
|
+
group: z.ZodString;
|
|
400
|
+
groupData: z.ZodObject<{
|
|
401
|
+
label: z.ZodOptional<z.ZodString>;
|
|
402
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
403
|
+
collapsed: z.ZodOptional<z.ZodBoolean>;
|
|
404
|
+
}, "strip", z.ZodTypeAny, {
|
|
405
|
+
label?: string | undefined;
|
|
406
|
+
hidden?: boolean | undefined;
|
|
407
|
+
collapsed?: boolean | undefined;
|
|
408
|
+
}, {
|
|
409
|
+
label?: string | undefined;
|
|
410
|
+
hidden?: boolean | undefined;
|
|
411
|
+
collapsed?: boolean | undefined;
|
|
412
|
+
}>;
|
|
413
|
+
}>, "strip", z.ZodTypeAny, {
|
|
414
|
+
type: "qp-bridge";
|
|
415
|
+
action: "setGroup";
|
|
416
|
+
group: string;
|
|
417
|
+
groupData: {
|
|
418
|
+
label?: string | undefined;
|
|
419
|
+
hidden?: boolean | undefined;
|
|
420
|
+
collapsed?: boolean | undefined;
|
|
421
|
+
};
|
|
422
|
+
id?: string | undefined;
|
|
423
|
+
}, {
|
|
424
|
+
type: "qp-bridge";
|
|
425
|
+
action: "setGroup";
|
|
426
|
+
group: string;
|
|
427
|
+
groupData: {
|
|
428
|
+
label?: string | undefined;
|
|
429
|
+
hidden?: boolean | undefined;
|
|
430
|
+
collapsed?: boolean | undefined;
|
|
431
|
+
};
|
|
432
|
+
id?: string | undefined;
|
|
433
|
+
}>;
|
|
313
434
|
export declare const setAnswerRequestMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
314
435
|
type: z.ZodLiteral<"qp-bridge">;
|
|
315
436
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -330,6 +451,209 @@ export declare const setAnswerRequestMessageSchema: z.ZodObject<z.objectUtil.ext
|
|
|
330
451
|
id?: string | undefined;
|
|
331
452
|
answer?: unknown;
|
|
332
453
|
}>;
|
|
454
|
+
export declare const busyIndicatorStartRequestMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
455
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
456
|
+
id: z.ZodOptional<z.ZodString>;
|
|
457
|
+
}, {
|
|
458
|
+
action: z.ZodLiteral<"busyIndicatorStart">;
|
|
459
|
+
}>, "strip", z.ZodTypeAny, {
|
|
460
|
+
type: "qp-bridge";
|
|
461
|
+
action: "busyIndicatorStart";
|
|
462
|
+
id?: string | undefined;
|
|
463
|
+
}, {
|
|
464
|
+
type: "qp-bridge";
|
|
465
|
+
action: "busyIndicatorStart";
|
|
466
|
+
id?: string | undefined;
|
|
467
|
+
}>;
|
|
468
|
+
export declare const busyIndicatorEndRequestMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
469
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
470
|
+
id: z.ZodOptional<z.ZodString>;
|
|
471
|
+
}, {
|
|
472
|
+
action: z.ZodLiteral<"busyIndicatorEnd">;
|
|
473
|
+
}>, "strip", z.ZodTypeAny, {
|
|
474
|
+
type: "qp-bridge";
|
|
475
|
+
action: "busyIndicatorEnd";
|
|
476
|
+
id?: string | undefined;
|
|
477
|
+
}, {
|
|
478
|
+
type: "qp-bridge";
|
|
479
|
+
action: "busyIndicatorEnd";
|
|
480
|
+
id?: string | undefined;
|
|
481
|
+
}>;
|
|
482
|
+
export declare const saveQuestionnaireRequestMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
483
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
484
|
+
id: z.ZodOptional<z.ZodString>;
|
|
485
|
+
}, {
|
|
486
|
+
action: z.ZodLiteral<"saveQuestionnaire">;
|
|
487
|
+
}>, "strip", z.ZodTypeAny, {
|
|
488
|
+
type: "qp-bridge";
|
|
489
|
+
action: "saveQuestionnaire";
|
|
490
|
+
id?: string | undefined;
|
|
491
|
+
}, {
|
|
492
|
+
type: "qp-bridge";
|
|
493
|
+
action: "saveQuestionnaire";
|
|
494
|
+
id?: string | undefined;
|
|
495
|
+
}>;
|
|
496
|
+
export declare const completeAndCloseQuestionnaireRequestMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
497
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
498
|
+
id: z.ZodOptional<z.ZodString>;
|
|
499
|
+
}, {
|
|
500
|
+
action: z.ZodLiteral<"completeAndCloseQuestionnaire">;
|
|
501
|
+
}>, "strip", z.ZodTypeAny, {
|
|
502
|
+
type: "qp-bridge";
|
|
503
|
+
action: "completeAndCloseQuestionnaire";
|
|
504
|
+
id?: string | undefined;
|
|
505
|
+
}, {
|
|
506
|
+
type: "qp-bridge";
|
|
507
|
+
action: "completeAndCloseQuestionnaire";
|
|
508
|
+
id?: string | undefined;
|
|
509
|
+
}>;
|
|
510
|
+
export declare const executeCustomCommandRequestMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
511
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
512
|
+
id: z.ZodOptional<z.ZodString>;
|
|
513
|
+
}, {
|
|
514
|
+
action: z.ZodLiteral<"executeCustomCommand">;
|
|
515
|
+
commandName: z.ZodString;
|
|
516
|
+
}>, "strip", z.ZodTypeAny, {
|
|
517
|
+
type: "qp-bridge";
|
|
518
|
+
action: "executeCustomCommand";
|
|
519
|
+
commandName: string;
|
|
520
|
+
id?: string | undefined;
|
|
521
|
+
}, {
|
|
522
|
+
type: "qp-bridge";
|
|
523
|
+
action: "executeCustomCommand";
|
|
524
|
+
commandName: string;
|
|
525
|
+
id?: string | undefined;
|
|
526
|
+
}>;
|
|
527
|
+
export declare const fetchEntitiesRequestMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
528
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
529
|
+
id: z.ZodOptional<z.ZodString>;
|
|
530
|
+
}, {
|
|
531
|
+
action: z.ZodLiteral<"fetchEntities">;
|
|
532
|
+
fetchXml: z.ZodString;
|
|
533
|
+
}>, "strip", z.ZodTypeAny, {
|
|
534
|
+
type: "qp-bridge";
|
|
535
|
+
action: "fetchEntities";
|
|
536
|
+
fetchXml: string;
|
|
537
|
+
id?: string | undefined;
|
|
538
|
+
}, {
|
|
539
|
+
type: "qp-bridge";
|
|
540
|
+
action: "fetchEntities";
|
|
541
|
+
fetchXml: string;
|
|
542
|
+
id?: string | undefined;
|
|
543
|
+
}>;
|
|
544
|
+
export declare const fetchEntitiesSuccessResponseMessageSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
545
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
546
|
+
id: z.ZodOptional<z.ZodString>;
|
|
547
|
+
}, {
|
|
548
|
+
status: z.ZodLiteral<"success">;
|
|
549
|
+
}>, {
|
|
550
|
+
entities: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
|
|
551
|
+
}>, "strip", z.ZodTypeAny, {
|
|
552
|
+
type: "qp-bridge";
|
|
553
|
+
status: "success";
|
|
554
|
+
entities: Record<string, unknown>[];
|
|
555
|
+
id?: string | undefined;
|
|
556
|
+
}, {
|
|
557
|
+
type: "qp-bridge";
|
|
558
|
+
status: "success";
|
|
559
|
+
entities: Record<string, unknown>[];
|
|
560
|
+
id?: string | undefined;
|
|
561
|
+
}>;
|
|
562
|
+
export declare const getEntityByIdRequestMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
563
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
564
|
+
id: z.ZodOptional<z.ZodString>;
|
|
565
|
+
}, {
|
|
566
|
+
action: z.ZodLiteral<"getEntityById">;
|
|
567
|
+
entityName: z.ZodString;
|
|
568
|
+
entityId: z.ZodString;
|
|
569
|
+
}>, "strip", z.ZodTypeAny, {
|
|
570
|
+
type: "qp-bridge";
|
|
571
|
+
action: "getEntityById";
|
|
572
|
+
entityName: string;
|
|
573
|
+
entityId: string;
|
|
574
|
+
id?: string | undefined;
|
|
575
|
+
}, {
|
|
576
|
+
type: "qp-bridge";
|
|
577
|
+
action: "getEntityById";
|
|
578
|
+
entityName: string;
|
|
579
|
+
entityId: string;
|
|
580
|
+
id?: string | undefined;
|
|
581
|
+
}>;
|
|
582
|
+
export declare const getEntityByIdSuccessResponseMessageSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
583
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
584
|
+
id: z.ZodOptional<z.ZodString>;
|
|
585
|
+
}, {
|
|
586
|
+
status: z.ZodLiteral<"success">;
|
|
587
|
+
}>, {
|
|
588
|
+
entity: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
589
|
+
}>, "strip", z.ZodTypeAny, {
|
|
590
|
+
type: "qp-bridge";
|
|
591
|
+
status: "success";
|
|
592
|
+
entity: Record<string, unknown>;
|
|
593
|
+
id?: string | undefined;
|
|
594
|
+
}, {
|
|
595
|
+
type: "qp-bridge";
|
|
596
|
+
status: "success";
|
|
597
|
+
entity: Record<string, unknown>;
|
|
598
|
+
id?: string | undefined;
|
|
599
|
+
}>;
|
|
600
|
+
export declare const repeatGroupRequestMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
601
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
602
|
+
id: z.ZodOptional<z.ZodString>;
|
|
603
|
+
}, {
|
|
604
|
+
action: z.ZodLiteral<"repeatGroup">;
|
|
605
|
+
parentGroupName: z.ZodString;
|
|
606
|
+
groupIndex: z.ZodNumber;
|
|
607
|
+
}>, "strip", z.ZodTypeAny, {
|
|
608
|
+
type: "qp-bridge";
|
|
609
|
+
action: "repeatGroup";
|
|
610
|
+
parentGroupName: string;
|
|
611
|
+
groupIndex: number;
|
|
612
|
+
id?: string | undefined;
|
|
613
|
+
}, {
|
|
614
|
+
type: "qp-bridge";
|
|
615
|
+
action: "repeatGroup";
|
|
616
|
+
parentGroupName: string;
|
|
617
|
+
groupIndex: number;
|
|
618
|
+
id?: string | undefined;
|
|
619
|
+
}>;
|
|
620
|
+
export declare const addNewGroupRequestMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
621
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
622
|
+
id: z.ZodOptional<z.ZodString>;
|
|
623
|
+
}, {
|
|
624
|
+
action: z.ZodLiteral<"addNewGroup">;
|
|
625
|
+
groupName: z.ZodString;
|
|
626
|
+
}>, "strip", z.ZodTypeAny, {
|
|
627
|
+
type: "qp-bridge";
|
|
628
|
+
action: "addNewGroup";
|
|
629
|
+
groupName: string;
|
|
630
|
+
id?: string | undefined;
|
|
631
|
+
}, {
|
|
632
|
+
type: "qp-bridge";
|
|
633
|
+
action: "addNewGroup";
|
|
634
|
+
groupName: string;
|
|
635
|
+
id?: string | undefined;
|
|
636
|
+
}>;
|
|
637
|
+
export declare const deleteGroupRequestMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
638
|
+
type: z.ZodLiteral<"qp-bridge">;
|
|
639
|
+
id: z.ZodOptional<z.ZodString>;
|
|
640
|
+
}, {
|
|
641
|
+
action: z.ZodLiteral<"deleteGroup">;
|
|
642
|
+
parentGroupName: z.ZodString;
|
|
643
|
+
groupIndex: z.ZodNumber;
|
|
644
|
+
}>, "strip", z.ZodTypeAny, {
|
|
645
|
+
type: "qp-bridge";
|
|
646
|
+
action: "deleteGroup";
|
|
647
|
+
parentGroupName: string;
|
|
648
|
+
groupIndex: number;
|
|
649
|
+
id?: string | undefined;
|
|
650
|
+
}, {
|
|
651
|
+
type: "qp-bridge";
|
|
652
|
+
action: "deleteGroup";
|
|
653
|
+
parentGroupName: string;
|
|
654
|
+
groupIndex: number;
|
|
655
|
+
id?: string | undefined;
|
|
656
|
+
}>;
|
|
333
657
|
export type QpBridgeMessage = z.infer<typeof qpBridgeMessageSchema>;
|
|
334
658
|
export type ResponseSuccessMessage = z.infer<typeof responseSuccessMessageSchema>;
|
|
335
659
|
export type ResponseErrorMessage = z.infer<typeof responseErrorMessageSchema>;
|
|
@@ -337,13 +661,32 @@ export type Question = z.infer<typeof questionSchema>;
|
|
|
337
661
|
export type QuestionOptional = z.infer<typeof questionOptionalScheme>;
|
|
338
662
|
export type Group = z.infer<typeof groupSchema>;
|
|
339
663
|
export type GroupOptional = z.infer<typeof groupOptionalScheme>;
|
|
664
|
+
export type MediaItem = z.infer<typeof mediaItemSchema>;
|
|
665
|
+
export type Entity = z.infer<typeof entitySchema>;
|
|
340
666
|
export type OnAnswerChangeMessage = z.infer<typeof onAnswerChangeMessageSchema>;
|
|
341
667
|
export type GetQuestionSuccessResponseMessage = z.infer<typeof getQuestionSuccessResponseMessageSchema>;
|
|
342
668
|
export type GetGroupSuccessResponseMessage = z.infer<typeof getGroupSuccessResponseMessageSchema>;
|
|
669
|
+
export type CanSaveSuccessResponseMessage = z.infer<typeof canSaveSuccessResponseMessageSchema>;
|
|
670
|
+
export type FetchEntitiesSuccessResponseMessage = z.infer<typeof fetchEntitiesSuccessResponseMessageSchema>;
|
|
671
|
+
export type GetEntityByIdSuccessResponseMessage = z.infer<typeof getEntityByIdSuccessResponseMessageSchema>;
|
|
343
672
|
export type SetAnswerRequestMessage = z.infer<typeof setAnswerRequestMessageSchema>;
|
|
344
673
|
export type GetQuestionRequestMessage = z.infer<typeof getQuestionRequestMessageSchema>;
|
|
345
674
|
export type GetGroupRequestMessage = z.infer<typeof getGroupRequestMessageSchema>;
|
|
346
675
|
export type SetQuestionRequestMessage = z.infer<typeof setQuestionRequestMessageSchema>;
|
|
676
|
+
export type SetGroupRequestMessage = z.infer<typeof setGroupRequestMessageSchema>;
|
|
677
|
+
export type BusyIndicatorStartRequestMessage = z.infer<typeof busyIndicatorStartRequestMessageSchema>;
|
|
678
|
+
export type BusyIndicatorEndRequestMessage = z.infer<typeof busyIndicatorEndRequestMessageSchema>;
|
|
679
|
+
export type SaveQuestionnaireRequestMessage = z.infer<typeof saveQuestionnaireRequestMessageSchema>;
|
|
680
|
+
export type CompleteAndCloseQuestionnaireRequestMessage = z.infer<typeof completeAndCloseQuestionnaireRequestMessageSchema>;
|
|
681
|
+
export type ExecuteCustomCommandRequestMessage = z.infer<typeof executeCustomCommandRequestMessageSchema>;
|
|
682
|
+
export type CanSaveRequestMessage = z.infer<typeof canSaveRequestMessageSchema>;
|
|
683
|
+
export type FetchEntitiesRequestMessage = z.infer<typeof fetchEntitiesRequestMessageSchema>;
|
|
684
|
+
export type GetEntityByIdRequestMessage = z.infer<typeof getEntityByIdRequestMessageSchema>;
|
|
685
|
+
export type RepeatGroupRequestMessage = z.infer<typeof repeatGroupRequestMessageSchema>;
|
|
686
|
+
export type AddNewGroupRequestMessage = z.infer<typeof addNewGroupRequestMessageSchema>;
|
|
687
|
+
export type DeleteGroupRequestMessage = z.infer<typeof deleteGroupRequestMessageSchema>;
|
|
688
|
+
export type WithBusyIndicatorRequestMessage = BusyIndicatorStartRequestMessage | BusyIndicatorEndRequestMessage;
|
|
689
|
+
export declare function isMediaItem(data: unknown): data is MediaItem;
|
|
347
690
|
export declare function isOnAnswerChangeMessage(data: unknown): data is OnAnswerChangeMessage;
|
|
348
691
|
export declare function isQpBridgeMessage(data: unknown): data is QpBridgeMessage;
|
|
349
692
|
export declare function isSuccessMessage(data: unknown): data is ResponseSuccessMessage;
|
|
@@ -352,5 +695,22 @@ export declare function isGetQuestionRequestMessage(data: unknown): data is GetQ
|
|
|
352
695
|
export declare function isGetQuestionSuccessResponseMessage(data: unknown): data is GetQuestionSuccessResponseMessage;
|
|
353
696
|
export declare function isSetAnswerRequestMessage(data: unknown): data is SetAnswerRequestMessage;
|
|
354
697
|
export declare function isSetQuestionRequestMessage(data: unknown): data is SetQuestionRequestMessage;
|
|
698
|
+
export declare function isSetGroupRequestMessage(data: unknown): data is SetGroupRequestMessage;
|
|
355
699
|
export declare function isGetGroupRequestMessage(data: unknown): data is GetGroupRequestMessage;
|
|
356
700
|
export declare function isGetGroupSuccessResponseMessage(data: unknown): data is GetGroupSuccessResponseMessage;
|
|
701
|
+
export declare function isCanSaveSuccessResponseMessage(data: unknown): data is CanSaveSuccessResponseMessage;
|
|
702
|
+
export declare function isCanSaveRequestMessage(data: unknown): data is CanSaveRequestMessage;
|
|
703
|
+
export declare function isBusyIndicatorStartRequestMessage(data: unknown): data is BusyIndicatorStartRequestMessage;
|
|
704
|
+
export declare function isBusyIndicatorEndRequestMessage(data: unknown): data is BusyIndicatorEndRequestMessage;
|
|
705
|
+
export declare function isSaveQuestionnaireRequestMessage(data: unknown): data is SaveQuestionnaireRequestMessage;
|
|
706
|
+
export declare function isCompleteAndCloseQuestionnaireRequestMessage(data: unknown): data is CompleteAndCloseQuestionnaireRequestMessage;
|
|
707
|
+
export declare function isExecuteCustomCommandRequestMessage(data: unknown): data is ExecuteCustomCommandRequestMessage;
|
|
708
|
+
export declare function isWithBusyIndicatorRequestMessage(data: unknown): data is WithBusyIndicatorRequestMessage;
|
|
709
|
+
export declare function isNotRelevantMessage(data: unknown, id: string): boolean;
|
|
710
|
+
export declare function isFetchEntitiesRequestMessage(data: unknown): data is FetchEntitiesRequestMessage;
|
|
711
|
+
export declare function isFetchEntitiesSuccessResponseMessage(data: unknown): data is FetchEntitiesSuccessResponseMessage;
|
|
712
|
+
export declare function isGetEntityByIdRequestMessage(data: unknown): data is GetEntityByIdRequestMessage;
|
|
713
|
+
export declare function isGetEntityByIdSuccessResponseMessage(data: unknown): data is GetEntityByIdSuccessResponseMessage;
|
|
714
|
+
export declare function isRepeatGroupRequestMessage(data: unknown): data is RepeatGroupRequestMessage;
|
|
715
|
+
export declare function isAddNewGroupRequestMessage(data: unknown): data is AddNewGroupRequestMessage;
|
|
716
|
+
export declare function isDeleteGroupRequestMessage(data: unknown): data is DeleteGroupRequestMessage;
|