c2-clinical 1.0.222 → 1.0.224
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.
|
@@ -31,7 +31,7 @@ export interface IFoodEquivalentItem {
|
|
|
31
31
|
measurementUnit: FoodMeasurementUnitEnum;
|
|
32
32
|
quantity: number;
|
|
33
33
|
}
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const FoodEquivalentItemSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
35
35
|
_id: false;
|
|
36
36
|
}, {
|
|
37
37
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FoodEquivalentSchema = exports.
|
|
3
|
+
exports.FoodEquivalentSchema = exports.FoodEquivalentItemSchema = exports.REFERENCE_TABLE = exports.MEASUREMENT_UNIT = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const enum_1 = require("../enum");
|
|
6
6
|
var MEASUREMENT_UNIT;
|
|
@@ -23,7 +23,7 @@ var REFERENCE_TABLE;
|
|
|
23
23
|
REFERENCE_TABLE["MANUFACTURER"] = "MANUFACTURER";
|
|
24
24
|
REFERENCE_TABLE["SKYDIET"] = "SKYDIET";
|
|
25
25
|
})(REFERENCE_TABLE || (exports.REFERENCE_TABLE = REFERENCE_TABLE = {}));
|
|
26
|
-
exports.
|
|
26
|
+
exports.FoodEquivalentItemSchema = new mongoose_1.Schema({
|
|
27
27
|
sequence: { type: Number, required: true },
|
|
28
28
|
food: { type: mongoose_1.Types.ObjectId, ref: "food", required: true },
|
|
29
29
|
name: { type: String, required: true },
|
|
@@ -36,7 +36,7 @@ exports.FoodEquivalentSchema = new mongoose_1.Schema({
|
|
|
36
36
|
code: { type: String, required: true },
|
|
37
37
|
name: { type: String, required: true },
|
|
38
38
|
items: {
|
|
39
|
-
type: [exports.
|
|
39
|
+
type: [exports.FoodEquivalentItemSchema]
|
|
40
40
|
}
|
|
41
41
|
}, {
|
|
42
42
|
timestamps: {
|
|
@@ -21,6 +21,8 @@ export interface IGroupConfig {
|
|
|
21
21
|
collapsible: boolean;
|
|
22
22
|
backgroundColor: string;
|
|
23
23
|
readOnly: boolean;
|
|
24
|
+
headersUnits: IFormUnit[];
|
|
25
|
+
footersUnits: IFormUnit[];
|
|
24
26
|
}
|
|
25
27
|
export interface ITip {
|
|
26
28
|
type: TypeTipEnum;
|
|
@@ -251,6 +253,71 @@ export declare const ValidationSchema: Schema<any, import("mongoose").Model<any,
|
|
|
251
253
|
} & {
|
|
252
254
|
__v: number;
|
|
253
255
|
}>;
|
|
256
|
+
export interface IButtonConfig {
|
|
257
|
+
typeButtonAction: TypeButtonAction;
|
|
258
|
+
externalFlowCode: string;
|
|
259
|
+
}
|
|
260
|
+
export interface IFormUnitBasic {
|
|
261
|
+
code: string;
|
|
262
|
+
description: string;
|
|
263
|
+
column: number;
|
|
264
|
+
type: TypeFormUnitEnum;
|
|
265
|
+
typeAnswer: TypeAnswerEnum;
|
|
266
|
+
variantView: VariantViewEnum;
|
|
267
|
+
formulaToAnswer: string;
|
|
268
|
+
formulaToEnable: string;
|
|
269
|
+
formulaToShow: string;
|
|
270
|
+
buttonConfig: IButtonConfig;
|
|
271
|
+
}
|
|
272
|
+
export declare const FormUnitBasicSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
273
|
+
_id: false;
|
|
274
|
+
}, {
|
|
275
|
+
type: string;
|
|
276
|
+
formulaToEnable: string;
|
|
277
|
+
code: string;
|
|
278
|
+
column: number;
|
|
279
|
+
formulaToShow: string;
|
|
280
|
+
description?: string | null | undefined;
|
|
281
|
+
typeAnswer?: string | null | undefined;
|
|
282
|
+
variantView?: string | null | undefined;
|
|
283
|
+
formulaToAnswer?: string | null | undefined;
|
|
284
|
+
buttonConfig?: {
|
|
285
|
+
typeButtonAction?: string | null | undefined;
|
|
286
|
+
externalFlowCode?: string | null | undefined;
|
|
287
|
+
} | null | undefined;
|
|
288
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
289
|
+
type: string;
|
|
290
|
+
formulaToEnable: string;
|
|
291
|
+
code: string;
|
|
292
|
+
column: number;
|
|
293
|
+
formulaToShow: string;
|
|
294
|
+
description?: string | null | undefined;
|
|
295
|
+
typeAnswer?: string | null | undefined;
|
|
296
|
+
variantView?: string | null | undefined;
|
|
297
|
+
formulaToAnswer?: string | null | undefined;
|
|
298
|
+
buttonConfig?: {
|
|
299
|
+
typeButtonAction?: string | null | undefined;
|
|
300
|
+
externalFlowCode?: string | null | undefined;
|
|
301
|
+
} | null | undefined;
|
|
302
|
+
}>, {}> & import("mongoose").FlatRecord<{
|
|
303
|
+
type: string;
|
|
304
|
+
formulaToEnable: string;
|
|
305
|
+
code: string;
|
|
306
|
+
column: number;
|
|
307
|
+
formulaToShow: string;
|
|
308
|
+
description?: string | null | undefined;
|
|
309
|
+
typeAnswer?: string | null | undefined;
|
|
310
|
+
variantView?: string | null | undefined;
|
|
311
|
+
formulaToAnswer?: string | null | undefined;
|
|
312
|
+
buttonConfig?: {
|
|
313
|
+
typeButtonAction?: string | null | undefined;
|
|
314
|
+
externalFlowCode?: string | null | undefined;
|
|
315
|
+
} | null | undefined;
|
|
316
|
+
}> & {
|
|
317
|
+
_id: Types.ObjectId;
|
|
318
|
+
} & {
|
|
319
|
+
__v: number;
|
|
320
|
+
}>;
|
|
254
321
|
export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
255
322
|
timestamps: {
|
|
256
323
|
createdAt: string;
|
|
@@ -264,6 +331,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
264
331
|
formulaToEnable: string;
|
|
265
332
|
code: string;
|
|
266
333
|
active: boolean;
|
|
334
|
+
formulaToShow: string;
|
|
267
335
|
form: Types.ObjectId;
|
|
268
336
|
height: "large" | "medium" | "small";
|
|
269
337
|
isDefault: boolean;
|
|
@@ -298,7 +366,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
298
366
|
image?: string | null | undefined;
|
|
299
367
|
color?: string | null | undefined;
|
|
300
368
|
}>;
|
|
301
|
-
formulaToShow: string;
|
|
302
369
|
validations: Types.DocumentArray<{
|
|
303
370
|
typeOutput: string;
|
|
304
371
|
type?: string | null | undefined;
|
|
@@ -351,20 +418,20 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
351
418
|
description?: string | null | undefined;
|
|
352
419
|
minValue?: number | null | undefined;
|
|
353
420
|
maxValue?: number | null | undefined;
|
|
421
|
+
column?: number | null | undefined;
|
|
422
|
+
typeAnswer?: string | null | undefined;
|
|
423
|
+
variantView?: string | null | undefined;
|
|
424
|
+
formulaToAnswer?: string | null | undefined;
|
|
425
|
+
typeButtonAction?: string | null | undefined;
|
|
426
|
+
externalFlowCode?: string | null | undefined;
|
|
354
427
|
reference?: Types.ObjectId | null | undefined;
|
|
355
428
|
formulaToDescription?: string | null | undefined;
|
|
356
429
|
example?: string | null | undefined;
|
|
357
430
|
parent?: Types.ObjectId | null | undefined;
|
|
358
431
|
line?: number | null | undefined;
|
|
359
|
-
column?: number | null | undefined;
|
|
360
|
-
typeAnswer?: string | null | undefined;
|
|
361
432
|
defaultAnswer?: any;
|
|
362
433
|
width?: number | null | undefined;
|
|
363
|
-
variantView?: string | null | undefined;
|
|
364
|
-
typeButtonAction?: string | null | undefined;
|
|
365
|
-
externalFlowCode?: string | null | undefined;
|
|
366
434
|
measurementUnit?: string | null | undefined;
|
|
367
|
-
formulaToAnswer?: string | null | undefined;
|
|
368
435
|
formulaToReferenceValue?: string | null | undefined;
|
|
369
436
|
formulaToClassificationLabel?: string | null | undefined;
|
|
370
437
|
formulaToClassificationColor?: string | null | undefined;
|
|
@@ -380,6 +447,92 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
380
447
|
groupConfig?: {
|
|
381
448
|
readOnly: boolean;
|
|
382
449
|
collapsible: boolean;
|
|
450
|
+
headersUnits: Types.DocumentArray<{
|
|
451
|
+
type: string;
|
|
452
|
+
formulaToEnable: string;
|
|
453
|
+
code: string;
|
|
454
|
+
column: number;
|
|
455
|
+
formulaToShow: string;
|
|
456
|
+
description?: string | null | undefined;
|
|
457
|
+
typeAnswer?: string | null | undefined;
|
|
458
|
+
variantView?: string | null | undefined;
|
|
459
|
+
formulaToAnswer?: string | null | undefined;
|
|
460
|
+
buttonConfig?: {
|
|
461
|
+
typeButtonAction?: string | null | undefined;
|
|
462
|
+
externalFlowCode?: string | null | undefined;
|
|
463
|
+
} | null | undefined;
|
|
464
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
465
|
+
type: string;
|
|
466
|
+
formulaToEnable: string;
|
|
467
|
+
code: string;
|
|
468
|
+
column: number;
|
|
469
|
+
formulaToShow: string;
|
|
470
|
+
description?: string | null | undefined;
|
|
471
|
+
typeAnswer?: string | null | undefined;
|
|
472
|
+
variantView?: string | null | undefined;
|
|
473
|
+
formulaToAnswer?: string | null | undefined;
|
|
474
|
+
buttonConfig?: {
|
|
475
|
+
typeButtonAction?: string | null | undefined;
|
|
476
|
+
externalFlowCode?: string | null | undefined;
|
|
477
|
+
} | null | undefined;
|
|
478
|
+
}> & {
|
|
479
|
+
type: string;
|
|
480
|
+
formulaToEnable: string;
|
|
481
|
+
code: string;
|
|
482
|
+
column: number;
|
|
483
|
+
formulaToShow: string;
|
|
484
|
+
description?: string | null | undefined;
|
|
485
|
+
typeAnswer?: string | null | undefined;
|
|
486
|
+
variantView?: string | null | undefined;
|
|
487
|
+
formulaToAnswer?: string | null | undefined;
|
|
488
|
+
buttonConfig?: {
|
|
489
|
+
typeButtonAction?: string | null | undefined;
|
|
490
|
+
externalFlowCode?: string | null | undefined;
|
|
491
|
+
} | null | undefined;
|
|
492
|
+
}>;
|
|
493
|
+
footersUnits: Types.DocumentArray<{
|
|
494
|
+
type: string;
|
|
495
|
+
formulaToEnable: string;
|
|
496
|
+
code: string;
|
|
497
|
+
column: number;
|
|
498
|
+
formulaToShow: string;
|
|
499
|
+
description?: string | null | undefined;
|
|
500
|
+
typeAnswer?: string | null | undefined;
|
|
501
|
+
variantView?: string | null | undefined;
|
|
502
|
+
formulaToAnswer?: string | null | undefined;
|
|
503
|
+
buttonConfig?: {
|
|
504
|
+
typeButtonAction?: string | null | undefined;
|
|
505
|
+
externalFlowCode?: string | null | undefined;
|
|
506
|
+
} | null | undefined;
|
|
507
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
508
|
+
type: string;
|
|
509
|
+
formulaToEnable: string;
|
|
510
|
+
code: string;
|
|
511
|
+
column: number;
|
|
512
|
+
formulaToShow: string;
|
|
513
|
+
description?: string | null | undefined;
|
|
514
|
+
typeAnswer?: string | null | undefined;
|
|
515
|
+
variantView?: string | null | undefined;
|
|
516
|
+
formulaToAnswer?: string | null | undefined;
|
|
517
|
+
buttonConfig?: {
|
|
518
|
+
typeButtonAction?: string | null | undefined;
|
|
519
|
+
externalFlowCode?: string | null | undefined;
|
|
520
|
+
} | null | undefined;
|
|
521
|
+
}> & {
|
|
522
|
+
type: string;
|
|
523
|
+
formulaToEnable: string;
|
|
524
|
+
code: string;
|
|
525
|
+
column: number;
|
|
526
|
+
formulaToShow: string;
|
|
527
|
+
description?: string | null | undefined;
|
|
528
|
+
typeAnswer?: string | null | undefined;
|
|
529
|
+
variantView?: string | null | undefined;
|
|
530
|
+
formulaToAnswer?: string | null | undefined;
|
|
531
|
+
buttonConfig?: {
|
|
532
|
+
typeButtonAction?: string | null | undefined;
|
|
533
|
+
externalFlowCode?: string | null | undefined;
|
|
534
|
+
} | null | undefined;
|
|
535
|
+
}>;
|
|
383
536
|
tips?: {
|
|
384
537
|
description: string;
|
|
385
538
|
show: boolean;
|
|
@@ -422,6 +575,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
422
575
|
formulaToEnable: string;
|
|
423
576
|
code: string;
|
|
424
577
|
active: boolean;
|
|
578
|
+
formulaToShow: string;
|
|
425
579
|
form: Types.ObjectId;
|
|
426
580
|
height: "large" | "medium" | "small";
|
|
427
581
|
isDefault: boolean;
|
|
@@ -456,7 +610,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
456
610
|
image?: string | null | undefined;
|
|
457
611
|
color?: string | null | undefined;
|
|
458
612
|
}>;
|
|
459
|
-
formulaToShow: string;
|
|
460
613
|
validations: Types.DocumentArray<{
|
|
461
614
|
typeOutput: string;
|
|
462
615
|
type?: string | null | undefined;
|
|
@@ -509,20 +662,20 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
509
662
|
description?: string | null | undefined;
|
|
510
663
|
minValue?: number | null | undefined;
|
|
511
664
|
maxValue?: number | null | undefined;
|
|
665
|
+
column?: number | null | undefined;
|
|
666
|
+
typeAnswer?: string | null | undefined;
|
|
667
|
+
variantView?: string | null | undefined;
|
|
668
|
+
formulaToAnswer?: string | null | undefined;
|
|
669
|
+
typeButtonAction?: string | null | undefined;
|
|
670
|
+
externalFlowCode?: string | null | undefined;
|
|
512
671
|
reference?: Types.ObjectId | null | undefined;
|
|
513
672
|
formulaToDescription?: string | null | undefined;
|
|
514
673
|
example?: string | null | undefined;
|
|
515
674
|
parent?: Types.ObjectId | null | undefined;
|
|
516
675
|
line?: number | null | undefined;
|
|
517
|
-
column?: number | null | undefined;
|
|
518
|
-
typeAnswer?: string | null | undefined;
|
|
519
676
|
defaultAnswer?: any;
|
|
520
677
|
width?: number | null | undefined;
|
|
521
|
-
variantView?: string | null | undefined;
|
|
522
|
-
typeButtonAction?: string | null | undefined;
|
|
523
|
-
externalFlowCode?: string | null | undefined;
|
|
524
678
|
measurementUnit?: string | null | undefined;
|
|
525
|
-
formulaToAnswer?: string | null | undefined;
|
|
526
679
|
formulaToReferenceValue?: string | null | undefined;
|
|
527
680
|
formulaToClassificationLabel?: string | null | undefined;
|
|
528
681
|
formulaToClassificationColor?: string | null | undefined;
|
|
@@ -538,6 +691,92 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
538
691
|
groupConfig?: {
|
|
539
692
|
readOnly: boolean;
|
|
540
693
|
collapsible: boolean;
|
|
694
|
+
headersUnits: Types.DocumentArray<{
|
|
695
|
+
type: string;
|
|
696
|
+
formulaToEnable: string;
|
|
697
|
+
code: string;
|
|
698
|
+
column: number;
|
|
699
|
+
formulaToShow: string;
|
|
700
|
+
description?: string | null | undefined;
|
|
701
|
+
typeAnswer?: string | null | undefined;
|
|
702
|
+
variantView?: string | null | undefined;
|
|
703
|
+
formulaToAnswer?: string | null | undefined;
|
|
704
|
+
buttonConfig?: {
|
|
705
|
+
typeButtonAction?: string | null | undefined;
|
|
706
|
+
externalFlowCode?: string | null | undefined;
|
|
707
|
+
} | null | undefined;
|
|
708
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
709
|
+
type: string;
|
|
710
|
+
formulaToEnable: string;
|
|
711
|
+
code: string;
|
|
712
|
+
column: number;
|
|
713
|
+
formulaToShow: string;
|
|
714
|
+
description?: string | null | undefined;
|
|
715
|
+
typeAnswer?: string | null | undefined;
|
|
716
|
+
variantView?: string | null | undefined;
|
|
717
|
+
formulaToAnswer?: string | null | undefined;
|
|
718
|
+
buttonConfig?: {
|
|
719
|
+
typeButtonAction?: string | null | undefined;
|
|
720
|
+
externalFlowCode?: string | null | undefined;
|
|
721
|
+
} | null | undefined;
|
|
722
|
+
}> & {
|
|
723
|
+
type: string;
|
|
724
|
+
formulaToEnable: string;
|
|
725
|
+
code: string;
|
|
726
|
+
column: number;
|
|
727
|
+
formulaToShow: string;
|
|
728
|
+
description?: string | null | undefined;
|
|
729
|
+
typeAnswer?: string | null | undefined;
|
|
730
|
+
variantView?: string | null | undefined;
|
|
731
|
+
formulaToAnswer?: string | null | undefined;
|
|
732
|
+
buttonConfig?: {
|
|
733
|
+
typeButtonAction?: string | null | undefined;
|
|
734
|
+
externalFlowCode?: string | null | undefined;
|
|
735
|
+
} | null | undefined;
|
|
736
|
+
}>;
|
|
737
|
+
footersUnits: Types.DocumentArray<{
|
|
738
|
+
type: string;
|
|
739
|
+
formulaToEnable: string;
|
|
740
|
+
code: string;
|
|
741
|
+
column: number;
|
|
742
|
+
formulaToShow: string;
|
|
743
|
+
description?: string | null | undefined;
|
|
744
|
+
typeAnswer?: string | null | undefined;
|
|
745
|
+
variantView?: string | null | undefined;
|
|
746
|
+
formulaToAnswer?: string | null | undefined;
|
|
747
|
+
buttonConfig?: {
|
|
748
|
+
typeButtonAction?: string | null | undefined;
|
|
749
|
+
externalFlowCode?: string | null | undefined;
|
|
750
|
+
} | null | undefined;
|
|
751
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
752
|
+
type: string;
|
|
753
|
+
formulaToEnable: string;
|
|
754
|
+
code: string;
|
|
755
|
+
column: number;
|
|
756
|
+
formulaToShow: string;
|
|
757
|
+
description?: string | null | undefined;
|
|
758
|
+
typeAnswer?: string | null | undefined;
|
|
759
|
+
variantView?: string | null | undefined;
|
|
760
|
+
formulaToAnswer?: string | null | undefined;
|
|
761
|
+
buttonConfig?: {
|
|
762
|
+
typeButtonAction?: string | null | undefined;
|
|
763
|
+
externalFlowCode?: string | null | undefined;
|
|
764
|
+
} | null | undefined;
|
|
765
|
+
}> & {
|
|
766
|
+
type: string;
|
|
767
|
+
formulaToEnable: string;
|
|
768
|
+
code: string;
|
|
769
|
+
column: number;
|
|
770
|
+
formulaToShow: string;
|
|
771
|
+
description?: string | null | undefined;
|
|
772
|
+
typeAnswer?: string | null | undefined;
|
|
773
|
+
variantView?: string | null | undefined;
|
|
774
|
+
formulaToAnswer?: string | null | undefined;
|
|
775
|
+
buttonConfig?: {
|
|
776
|
+
typeButtonAction?: string | null | undefined;
|
|
777
|
+
externalFlowCode?: string | null | undefined;
|
|
778
|
+
} | null | undefined;
|
|
779
|
+
}>;
|
|
541
780
|
tips?: {
|
|
542
781
|
description: string;
|
|
543
782
|
show: boolean;
|
|
@@ -580,6 +819,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
580
819
|
formulaToEnable: string;
|
|
581
820
|
code: string;
|
|
582
821
|
active: boolean;
|
|
822
|
+
formulaToShow: string;
|
|
583
823
|
form: Types.ObjectId;
|
|
584
824
|
height: "large" | "medium" | "small";
|
|
585
825
|
isDefault: boolean;
|
|
@@ -614,7 +854,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
614
854
|
image?: string | null | undefined;
|
|
615
855
|
color?: string | null | undefined;
|
|
616
856
|
}>;
|
|
617
|
-
formulaToShow: string;
|
|
618
857
|
validations: Types.DocumentArray<{
|
|
619
858
|
typeOutput: string;
|
|
620
859
|
type?: string | null | undefined;
|
|
@@ -667,20 +906,20 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
667
906
|
description?: string | null | undefined;
|
|
668
907
|
minValue?: number | null | undefined;
|
|
669
908
|
maxValue?: number | null | undefined;
|
|
909
|
+
column?: number | null | undefined;
|
|
910
|
+
typeAnswer?: string | null | undefined;
|
|
911
|
+
variantView?: string | null | undefined;
|
|
912
|
+
formulaToAnswer?: string | null | undefined;
|
|
913
|
+
typeButtonAction?: string | null | undefined;
|
|
914
|
+
externalFlowCode?: string | null | undefined;
|
|
670
915
|
reference?: Types.ObjectId | null | undefined;
|
|
671
916
|
formulaToDescription?: string | null | undefined;
|
|
672
917
|
example?: string | null | undefined;
|
|
673
918
|
parent?: Types.ObjectId | null | undefined;
|
|
674
919
|
line?: number | null | undefined;
|
|
675
|
-
column?: number | null | undefined;
|
|
676
|
-
typeAnswer?: string | null | undefined;
|
|
677
920
|
defaultAnswer?: any;
|
|
678
921
|
width?: number | null | undefined;
|
|
679
|
-
variantView?: string | null | undefined;
|
|
680
|
-
typeButtonAction?: string | null | undefined;
|
|
681
|
-
externalFlowCode?: string | null | undefined;
|
|
682
922
|
measurementUnit?: string | null | undefined;
|
|
683
|
-
formulaToAnswer?: string | null | undefined;
|
|
684
923
|
formulaToReferenceValue?: string | null | undefined;
|
|
685
924
|
formulaToClassificationLabel?: string | null | undefined;
|
|
686
925
|
formulaToClassificationColor?: string | null | undefined;
|
|
@@ -696,6 +935,92 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
696
935
|
groupConfig?: {
|
|
697
936
|
readOnly: boolean;
|
|
698
937
|
collapsible: boolean;
|
|
938
|
+
headersUnits: Types.DocumentArray<{
|
|
939
|
+
type: string;
|
|
940
|
+
formulaToEnable: string;
|
|
941
|
+
code: string;
|
|
942
|
+
column: number;
|
|
943
|
+
formulaToShow: string;
|
|
944
|
+
description?: string | null | undefined;
|
|
945
|
+
typeAnswer?: string | null | undefined;
|
|
946
|
+
variantView?: string | null | undefined;
|
|
947
|
+
formulaToAnswer?: string | null | undefined;
|
|
948
|
+
buttonConfig?: {
|
|
949
|
+
typeButtonAction?: string | null | undefined;
|
|
950
|
+
externalFlowCode?: string | null | undefined;
|
|
951
|
+
} | null | undefined;
|
|
952
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
953
|
+
type: string;
|
|
954
|
+
formulaToEnable: string;
|
|
955
|
+
code: string;
|
|
956
|
+
column: number;
|
|
957
|
+
formulaToShow: string;
|
|
958
|
+
description?: string | null | undefined;
|
|
959
|
+
typeAnswer?: string | null | undefined;
|
|
960
|
+
variantView?: string | null | undefined;
|
|
961
|
+
formulaToAnswer?: string | null | undefined;
|
|
962
|
+
buttonConfig?: {
|
|
963
|
+
typeButtonAction?: string | null | undefined;
|
|
964
|
+
externalFlowCode?: string | null | undefined;
|
|
965
|
+
} | null | undefined;
|
|
966
|
+
}> & {
|
|
967
|
+
type: string;
|
|
968
|
+
formulaToEnable: string;
|
|
969
|
+
code: string;
|
|
970
|
+
column: number;
|
|
971
|
+
formulaToShow: string;
|
|
972
|
+
description?: string | null | undefined;
|
|
973
|
+
typeAnswer?: string | null | undefined;
|
|
974
|
+
variantView?: string | null | undefined;
|
|
975
|
+
formulaToAnswer?: string | null | undefined;
|
|
976
|
+
buttonConfig?: {
|
|
977
|
+
typeButtonAction?: string | null | undefined;
|
|
978
|
+
externalFlowCode?: string | null | undefined;
|
|
979
|
+
} | null | undefined;
|
|
980
|
+
}>;
|
|
981
|
+
footersUnits: Types.DocumentArray<{
|
|
982
|
+
type: string;
|
|
983
|
+
formulaToEnable: string;
|
|
984
|
+
code: string;
|
|
985
|
+
column: number;
|
|
986
|
+
formulaToShow: string;
|
|
987
|
+
description?: string | null | undefined;
|
|
988
|
+
typeAnswer?: string | null | undefined;
|
|
989
|
+
variantView?: string | null | undefined;
|
|
990
|
+
formulaToAnswer?: string | null | undefined;
|
|
991
|
+
buttonConfig?: {
|
|
992
|
+
typeButtonAction?: string | null | undefined;
|
|
993
|
+
externalFlowCode?: string | null | undefined;
|
|
994
|
+
} | null | undefined;
|
|
995
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
996
|
+
type: string;
|
|
997
|
+
formulaToEnable: string;
|
|
998
|
+
code: string;
|
|
999
|
+
column: number;
|
|
1000
|
+
formulaToShow: string;
|
|
1001
|
+
description?: string | null | undefined;
|
|
1002
|
+
typeAnswer?: string | null | undefined;
|
|
1003
|
+
variantView?: string | null | undefined;
|
|
1004
|
+
formulaToAnswer?: string | null | undefined;
|
|
1005
|
+
buttonConfig?: {
|
|
1006
|
+
typeButtonAction?: string | null | undefined;
|
|
1007
|
+
externalFlowCode?: string | null | undefined;
|
|
1008
|
+
} | null | undefined;
|
|
1009
|
+
}> & {
|
|
1010
|
+
type: string;
|
|
1011
|
+
formulaToEnable: string;
|
|
1012
|
+
code: string;
|
|
1013
|
+
column: number;
|
|
1014
|
+
formulaToShow: string;
|
|
1015
|
+
description?: string | null | undefined;
|
|
1016
|
+
typeAnswer?: string | null | undefined;
|
|
1017
|
+
variantView?: string | null | undefined;
|
|
1018
|
+
formulaToAnswer?: string | null | undefined;
|
|
1019
|
+
buttonConfig?: {
|
|
1020
|
+
typeButtonAction?: string | null | undefined;
|
|
1021
|
+
externalFlowCode?: string | null | undefined;
|
|
1022
|
+
} | null | undefined;
|
|
1023
|
+
}>;
|
|
699
1024
|
tips?: {
|
|
700
1025
|
description: string;
|
|
701
1026
|
show: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormUnitSchema = exports.ValidationSchema = exports.QuestionOptionSchema = exports.RequestGraphicDataSchema = void 0;
|
|
3
|
+
exports.FormUnitSchema = exports.FormUnitBasicSchema = exports.ValidationSchema = exports.QuestionOptionSchema = exports.RequestGraphicDataSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const enum_1 = require("../enum");
|
|
6
6
|
exports.RequestGraphicDataSchema = new mongoose_1.Schema({
|
|
@@ -34,6 +34,24 @@ exports.ValidationSchema = new mongoose_1.Schema({
|
|
|
34
34
|
minValue: { type: Number },
|
|
35
35
|
maxValue: { type: Number }
|
|
36
36
|
}, { _id: false });
|
|
37
|
+
exports.FormUnitBasicSchema = new mongoose_1.Schema({
|
|
38
|
+
code: { type: String, required: true },
|
|
39
|
+
description: { type: String },
|
|
40
|
+
column: { type: Number, required: true },
|
|
41
|
+
type: { type: String, enum: enum_1.TypeFormUnitEnum, required: true },
|
|
42
|
+
typeAnswer: { type: String, enum: enum_1.TypeAnswerEnum },
|
|
43
|
+
variantView: { type: String, enum: enum_1.VariantViewEnum },
|
|
44
|
+
formulaToAnswer: { type: String },
|
|
45
|
+
formulaToEnable: { type: String, default: "true" },
|
|
46
|
+
formulaToShow: { type: String, default: "true" },
|
|
47
|
+
buttonConfig: {
|
|
48
|
+
type: {
|
|
49
|
+
typeButtonAction: { type: String, enum: enum_1.TypeButtonAction },
|
|
50
|
+
externalFlowCode: { type: String }
|
|
51
|
+
},
|
|
52
|
+
_id: false
|
|
53
|
+
}
|
|
54
|
+
}, { _id: false });
|
|
37
55
|
exports.FormUnitSchema = new mongoose_1.Schema({
|
|
38
56
|
//account só é usado quando for montado por uma conta, quando for modelo disponível a todos ele deve estar sem preenchimento
|
|
39
57
|
account: { type: mongoose_1.Schema.Types.ObjectId, ref: "account" },
|
|
@@ -84,7 +102,6 @@ exports.FormUnitSchema = new mongoose_1.Schema({
|
|
|
84
102
|
labelFreeText: { type: String },
|
|
85
103
|
//DADOS PARA GRAFICOS
|
|
86
104
|
graphicData: { type: mongoose_1.Schema.Types.Mixed },
|
|
87
|
-
// requestGraphicData: { type: [RequestGraphicDataSchema] },
|
|
88
105
|
//DADOS PARA MODAL
|
|
89
106
|
modalConfig: {
|
|
90
107
|
type: {
|
|
@@ -106,7 +123,9 @@ exports.FormUnitSchema = new mongoose_1.Schema({
|
|
|
106
123
|
},
|
|
107
124
|
collapsible: { type: Boolean, default: false },
|
|
108
125
|
backgroundColor: { type: String },
|
|
109
|
-
readOnly: { type: Boolean, default: false }
|
|
126
|
+
readOnly: { type: Boolean, default: false },
|
|
127
|
+
headersUnits: { type: [exports.FormUnitBasicSchema] },
|
|
128
|
+
footersUnits: { type: [exports.FormUnitBasicSchema] }
|
|
110
129
|
},
|
|
111
130
|
_id: false
|
|
112
131
|
},
|