@legalplace/models-v3-types 3.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/schema.json ADDED
@@ -0,0 +1,1324 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "definitions": {
4
+ "CONDITION": {
5
+ "properties": {
6
+ "!=": {
7
+ "additionalItems": {
8
+ "anyOf": [
9
+ {
10
+ "properties": {
11
+ "var": {
12
+ "type": "string"
13
+ }
14
+ },
15
+ "type": "object"
16
+ },
17
+ {
18
+ "type": [
19
+ "string",
20
+ "number",
21
+ "boolean"
22
+ ]
23
+ }
24
+ ]
25
+ },
26
+ "items": [
27
+ {
28
+ "properties": {
29
+ "var": {
30
+ "type": "string"
31
+ }
32
+ },
33
+ "type": "object"
34
+ },
35
+ {
36
+ "type": [
37
+ "string",
38
+ "number",
39
+ "boolean"
40
+ ]
41
+ }
42
+ ],
43
+ "minItems": 1,
44
+ "type": "array"
45
+ },
46
+ "<": {
47
+ "additionalItems": {
48
+ "anyOf": [
49
+ {
50
+ "properties": {
51
+ "var": {
52
+ "type": "string"
53
+ }
54
+ },
55
+ "type": "object"
56
+ },
57
+ {
58
+ "type": [
59
+ "string",
60
+ "number",
61
+ "boolean"
62
+ ]
63
+ }
64
+ ]
65
+ },
66
+ "items": [
67
+ {
68
+ "properties": {
69
+ "var": {
70
+ "type": "string"
71
+ }
72
+ },
73
+ "type": "object"
74
+ },
75
+ {
76
+ "type": [
77
+ "string",
78
+ "number",
79
+ "boolean"
80
+ ]
81
+ }
82
+ ],
83
+ "minItems": 1,
84
+ "type": "array"
85
+ },
86
+ "<=": {
87
+ "additionalItems": {
88
+ "anyOf": [
89
+ {
90
+ "properties": {
91
+ "var": {
92
+ "type": "string"
93
+ }
94
+ },
95
+ "type": "object"
96
+ },
97
+ {
98
+ "type": [
99
+ "string",
100
+ "number",
101
+ "boolean"
102
+ ]
103
+ }
104
+ ]
105
+ },
106
+ "items": [
107
+ {
108
+ "properties": {
109
+ "var": {
110
+ "type": "string"
111
+ }
112
+ },
113
+ "type": "object"
114
+ },
115
+ {
116
+ "type": [
117
+ "string",
118
+ "number",
119
+ "boolean"
120
+ ]
121
+ }
122
+ ],
123
+ "minItems": 1,
124
+ "type": "array"
125
+ },
126
+ "<>": {
127
+ "additionalItems": {
128
+ "anyOf": [
129
+ {
130
+ "properties": {
131
+ "var": {
132
+ "type": "string"
133
+ }
134
+ },
135
+ "type": "object"
136
+ },
137
+ {
138
+ "type": [
139
+ "string",
140
+ "number",
141
+ "boolean"
142
+ ]
143
+ }
144
+ ]
145
+ },
146
+ "items": [
147
+ {
148
+ "properties": {
149
+ "var": {
150
+ "type": "string"
151
+ }
152
+ },
153
+ "type": "object"
154
+ },
155
+ {
156
+ "type": [
157
+ "string",
158
+ "number",
159
+ "boolean"
160
+ ]
161
+ }
162
+ ],
163
+ "minItems": 1,
164
+ "type": "array"
165
+ },
166
+ "=": {
167
+ "additionalItems": {
168
+ "anyOf": [
169
+ {
170
+ "properties": {
171
+ "var": {
172
+ "type": "string"
173
+ }
174
+ },
175
+ "type": "object"
176
+ },
177
+ {
178
+ "type": [
179
+ "string",
180
+ "number",
181
+ "boolean"
182
+ ]
183
+ }
184
+ ]
185
+ },
186
+ "items": [
187
+ {
188
+ "properties": {
189
+ "var": {
190
+ "type": "string"
191
+ }
192
+ },
193
+ "type": "object"
194
+ },
195
+ {
196
+ "type": [
197
+ "string",
198
+ "number",
199
+ "boolean"
200
+ ]
201
+ }
202
+ ],
203
+ "minItems": 1,
204
+ "type": "array"
205
+ },
206
+ "==": {
207
+ "additionalItems": {
208
+ "anyOf": [
209
+ {
210
+ "properties": {
211
+ "var": {
212
+ "type": "string"
213
+ }
214
+ },
215
+ "type": "object"
216
+ },
217
+ {
218
+ "type": [
219
+ "string",
220
+ "number",
221
+ "boolean"
222
+ ]
223
+ }
224
+ ]
225
+ },
226
+ "items": [
227
+ {
228
+ "properties": {
229
+ "var": {
230
+ "type": "string"
231
+ }
232
+ },
233
+ "type": "object"
234
+ },
235
+ {
236
+ "type": [
237
+ "string",
238
+ "number",
239
+ "boolean"
240
+ ]
241
+ }
242
+ ],
243
+ "minItems": 1,
244
+ "type": "array"
245
+ },
246
+ ">": {
247
+ "additionalItems": {
248
+ "anyOf": [
249
+ {
250
+ "properties": {
251
+ "var": {
252
+ "type": "string"
253
+ }
254
+ },
255
+ "type": "object"
256
+ },
257
+ {
258
+ "type": [
259
+ "string",
260
+ "number",
261
+ "boolean"
262
+ ]
263
+ }
264
+ ]
265
+ },
266
+ "items": [
267
+ {
268
+ "properties": {
269
+ "var": {
270
+ "type": "string"
271
+ }
272
+ },
273
+ "type": "object"
274
+ },
275
+ {
276
+ "type": [
277
+ "string",
278
+ "number",
279
+ "boolean"
280
+ ]
281
+ }
282
+ ],
283
+ "minItems": 1,
284
+ "type": "array"
285
+ },
286
+ ">=": {
287
+ "additionalItems": {
288
+ "anyOf": [
289
+ {
290
+ "properties": {
291
+ "var": {
292
+ "type": "string"
293
+ }
294
+ },
295
+ "type": "object"
296
+ },
297
+ {
298
+ "type": [
299
+ "string",
300
+ "number",
301
+ "boolean"
302
+ ]
303
+ }
304
+ ]
305
+ },
306
+ "items": [
307
+ {
308
+ "properties": {
309
+ "var": {
310
+ "type": "string"
311
+ }
312
+ },
313
+ "type": "object"
314
+ },
315
+ {
316
+ "type": [
317
+ "string",
318
+ "number",
319
+ "boolean"
320
+ ]
321
+ }
322
+ ],
323
+ "minItems": 1,
324
+ "type": "array"
325
+ },
326
+ "at-least-one": {
327
+ "additionalItems": {
328
+ "anyOf": [
329
+ {
330
+ "properties": {
331
+ "var": {
332
+ "type": "string"
333
+ }
334
+ },
335
+ "type": "object"
336
+ },
337
+ {
338
+ "type": [
339
+ "string",
340
+ "number",
341
+ "boolean"
342
+ ]
343
+ }
344
+ ]
345
+ },
346
+ "items": [
347
+ {
348
+ "properties": {
349
+ "var": {
350
+ "type": "string"
351
+ }
352
+ },
353
+ "type": "object"
354
+ },
355
+ {
356
+ "type": [
357
+ "string",
358
+ "number",
359
+ "boolean"
360
+ ]
361
+ }
362
+ ],
363
+ "minItems": 1,
364
+ "type": "array"
365
+ },
366
+ "contains": {
367
+ "additionalItems": {
368
+ "anyOf": [
369
+ {
370
+ "properties": {
371
+ "var": {
372
+ "type": "string"
373
+ }
374
+ },
375
+ "type": "object"
376
+ },
377
+ {
378
+ "type": [
379
+ "string",
380
+ "number",
381
+ "boolean"
382
+ ]
383
+ }
384
+ ]
385
+ },
386
+ "items": [
387
+ {
388
+ "properties": {
389
+ "var": {
390
+ "type": "string"
391
+ }
392
+ },
393
+ "type": "object"
394
+ },
395
+ {
396
+ "type": [
397
+ "string",
398
+ "number",
399
+ "boolean"
400
+ ]
401
+ }
402
+ ],
403
+ "minItems": 1,
404
+ "type": "array"
405
+ },
406
+ "does-not-contain": {
407
+ "additionalItems": {
408
+ "anyOf": [
409
+ {
410
+ "properties": {
411
+ "var": {
412
+ "type": "string"
413
+ }
414
+ },
415
+ "type": "object"
416
+ },
417
+ {
418
+ "type": [
419
+ "string",
420
+ "number",
421
+ "boolean"
422
+ ]
423
+ }
424
+ ]
425
+ },
426
+ "items": [
427
+ {
428
+ "properties": {
429
+ "var": {
430
+ "type": "string"
431
+ }
432
+ },
433
+ "type": "object"
434
+ },
435
+ {
436
+ "type": [
437
+ "string",
438
+ "number",
439
+ "boolean"
440
+ ]
441
+ }
442
+ ],
443
+ "minItems": 1,
444
+ "type": "array"
445
+ },
446
+ "has-many": {
447
+ "additionalItems": {
448
+ "anyOf": [
449
+ {
450
+ "properties": {
451
+ "var": {
452
+ "type": "string"
453
+ }
454
+ },
455
+ "type": "object"
456
+ },
457
+ {
458
+ "type": [
459
+ "string",
460
+ "number",
461
+ "boolean"
462
+ ]
463
+ }
464
+ ]
465
+ },
466
+ "items": [
467
+ {
468
+ "properties": {
469
+ "var": {
470
+ "type": "string"
471
+ }
472
+ },
473
+ "type": "object"
474
+ },
475
+ {
476
+ "type": [
477
+ "string",
478
+ "number",
479
+ "boolean"
480
+ ]
481
+ }
482
+ ],
483
+ "minItems": 1,
484
+ "type": "array"
485
+ },
486
+ "has-one": {
487
+ "additionalItems": {
488
+ "anyOf": [
489
+ {
490
+ "properties": {
491
+ "var": {
492
+ "type": "string"
493
+ }
494
+ },
495
+ "type": "object"
496
+ },
497
+ {
498
+ "type": [
499
+ "string",
500
+ "number",
501
+ "boolean"
502
+ ]
503
+ }
504
+ ]
505
+ },
506
+ "items": [
507
+ {
508
+ "properties": {
509
+ "var": {
510
+ "type": "string"
511
+ }
512
+ },
513
+ "type": "object"
514
+ },
515
+ {
516
+ "type": [
517
+ "string",
518
+ "number",
519
+ "boolean"
520
+ ]
521
+ }
522
+ ],
523
+ "minItems": 1,
524
+ "type": "array"
525
+ },
526
+ "not-selected": {
527
+ "additionalItems": {
528
+ "anyOf": [
529
+ {
530
+ "properties": {
531
+ "var": {
532
+ "type": "string"
533
+ }
534
+ },
535
+ "type": "object"
536
+ },
537
+ {
538
+ "type": [
539
+ "string",
540
+ "number",
541
+ "boolean"
542
+ ]
543
+ }
544
+ ]
545
+ },
546
+ "items": [
547
+ {
548
+ "properties": {
549
+ "var": {
550
+ "type": "string"
551
+ }
552
+ },
553
+ "type": "object"
554
+ },
555
+ {
556
+ "type": [
557
+ "string",
558
+ "number",
559
+ "boolean"
560
+ ]
561
+ }
562
+ ],
563
+ "minItems": 1,
564
+ "type": "array"
565
+ },
566
+ "selected": {
567
+ "additionalItems": {
568
+ "anyOf": [
569
+ {
570
+ "properties": {
571
+ "var": {
572
+ "type": "string"
573
+ }
574
+ },
575
+ "type": "object"
576
+ },
577
+ {
578
+ "type": [
579
+ "string",
580
+ "number",
581
+ "boolean"
582
+ ]
583
+ }
584
+ ]
585
+ },
586
+ "items": [
587
+ {
588
+ "properties": {
589
+ "var": {
590
+ "type": "string"
591
+ }
592
+ },
593
+ "type": "object"
594
+ },
595
+ {
596
+ "type": [
597
+ "string",
598
+ "number",
599
+ "boolean"
600
+ ]
601
+ }
602
+ ],
603
+ "minItems": 1,
604
+ "type": "array"
605
+ }
606
+ },
607
+ "type": "object"
608
+ },
609
+ "CONDITION_OPERATOR": {
610
+ "properties": {
611
+ "and": {
612
+ "items": {
613
+ "allOf": [
614
+ {
615
+ "$ref": "#/definitions/CONDITION_OPERATOR"
616
+ },
617
+ {
618
+ "$ref": "#/definitions/CONDITION"
619
+ }
620
+ ]
621
+ },
622
+ "type": "array"
623
+ },
624
+ "or": {
625
+ "items": {
626
+ "allOf": [
627
+ {
628
+ "$ref": "#/definitions/CONDITION_OPERATOR"
629
+ },
630
+ {
631
+ "$ref": "#/definitions/CONDITION"
632
+ }
633
+ ]
634
+ },
635
+ "type": "array"
636
+ }
637
+ },
638
+ "type": "object"
639
+ },
640
+ "ExtractV3": {
641
+ "description": "Extract V3",
642
+ "properties": {
643
+ "destination": {
644
+ "properties": {
645
+ "mixpanel": {
646
+ "properties": {
647
+ "name": {
648
+ "type": "string"
649
+ }
650
+ },
651
+ "type": "object"
652
+ },
653
+ "sendinblue": {
654
+ "properties": {
655
+ "name": {
656
+ "type": "string"
657
+ }
658
+ },
659
+ "type": "object"
660
+ },
661
+ "slack": {
662
+ "properties": {
663
+ "channel": {
664
+ "type": "string"
665
+ },
666
+ "name": {
667
+ "type": "string"
668
+ }
669
+ },
670
+ "type": "object"
671
+ }
672
+ },
673
+ "type": "object"
674
+ },
675
+ "id": {
676
+ "type": "number"
677
+ },
678
+ "type": {
679
+ "enum": [
680
+ "option",
681
+ "variable"
682
+ ],
683
+ "type": "string"
684
+ }
685
+ },
686
+ "type": "object"
687
+ },
688
+ "OptionV3": {
689
+ "properties": {
690
+ "meta": {
691
+ "properties": {
692
+ "box": {
693
+ "description": "BOX PARAMS",
694
+ "properties": {
695
+ "aggregatable": {
696
+ "description": "Box aggregatable",
697
+ "type": "boolean"
698
+ },
699
+ "collapsable": {
700
+ "description": "Box collapsable",
701
+ "type": "boolean"
702
+ },
703
+ "content": {
704
+ "description": "The html content of the brut-text option",
705
+ "type": "string"
706
+ },
707
+ "title": {
708
+ "description": "Box title",
709
+ "type": "string"
710
+ },
711
+ "type": {
712
+ "description": "Box type",
713
+ "enum": [
714
+ "error",
715
+ "info",
716
+ "light",
717
+ "warning"
718
+ ],
719
+ "type": "string"
720
+ }
721
+ },
722
+ "type": "object"
723
+ },
724
+ "conditions": {
725
+ "allOf": [
726
+ {
727
+ "$ref": "#/definitions/CONDITION_OPERATOR"
728
+ },
729
+ {
730
+ "$ref": "#/definitions/CONDITION"
731
+ }
732
+ ],
733
+ "description": "Raw conditions array"
734
+ },
735
+ "defaultRadio": {
736
+ "description": "In case of a radio/checkbox/static options, this holds the default child id that should be selected in case the user advances to the next section without selecting any of the child",
737
+ "type": "number"
738
+ },
739
+ "fallbackLabel": {
740
+ "description": "Fallback Label",
741
+ "type": "string"
742
+ },
743
+ "grantLevel": {
744
+ "description": "Option's grantLevel",
745
+ "enum": [
746
+ "ADMIN",
747
+ "GUEST",
748
+ "MANAGER",
749
+ "USER"
750
+ ],
751
+ "type": "string"
752
+ },
753
+ "helper": {
754
+ "description": "The html content of the helper block",
755
+ "type": "string"
756
+ },
757
+ "id": {
758
+ "description": "Option's id",
759
+ "type": "number"
760
+ },
761
+ "label": {
762
+ "description": "Option's label",
763
+ "type": "string"
764
+ },
765
+ "mandatory": {
766
+ "description": "Set to true to make the option mandatory",
767
+ "type": "boolean"
768
+ },
769
+ "multiple": {
770
+ "description": "MULTIPLE PARAMS",
771
+ "properties": {
772
+ "cta": {
773
+ "description": "The label of the multiple's incrementing cta",
774
+ "type": "string"
775
+ },
776
+ "enabled": {
777
+ "description": "Enabled/Disable Multiple (on root options only)",
778
+ "type": "boolean"
779
+ },
780
+ "incrementationStart": {
781
+ "description": "The start of the multiples incrementation counter",
782
+ "type": "number"
783
+ },
784
+ "label": {
785
+ "description": "The text that preceeds the reccurency number of the multiple",
786
+ "type": "string"
787
+ }
788
+ },
789
+ "type": "object"
790
+ },
791
+ "output": {
792
+ "description": "The raw option's output",
793
+ "type": "string"
794
+ },
795
+ "repeatOption": {
796
+ "description": "In case of a `repeated` option, this defines the multiple's id that the loop should be linked to",
797
+ "type": "number"
798
+ },
799
+ "step": {
800
+ "anyOf": [
801
+ {
802
+ "items": {
803
+ "type": "number"
804
+ },
805
+ "type": "array"
806
+ },
807
+ {
808
+ "enum": [
809
+ "*"
810
+ ],
811
+ "type": "string"
812
+ }
813
+ ],
814
+ "description": "Option steps"
815
+ },
816
+ "style": {
817
+ "description": "Option style",
818
+ "enum": [
819
+ "",
820
+ "full",
821
+ "half"
822
+ ],
823
+ "type": "string"
824
+ },
825
+ "tags": {
826
+ "description": "Tags",
827
+ "items": {
828
+ "type": "string"
829
+ },
830
+ "type": "array"
831
+ },
832
+ "termsheet": {
833
+ "description": "TERMSHEET PARAMS",
834
+ "properties": {
835
+ "hide": {
836
+ "description": "Hide option from termsheet",
837
+ "type": "boolean"
838
+ },
839
+ "label": {
840
+ "description": "Option's termsheetLabel",
841
+ "type": "string"
842
+ }
843
+ },
844
+ "type": "object"
845
+ },
846
+ "type": {
847
+ "description": "Option's type\n - `static`: A static question\n - `radio`: A radio input\n - `checkbox`: A checkbox input\n - `hidden`: An option that only displays an output\n - `brut-text`: An option without output that displays HTML in the wizard\n - `repeated`: A loop linked to a multiple (can only have `hidden` options as children)",
848
+ "enum": [
849
+ "box",
850
+ "checkbox",
851
+ "hidden",
852
+ "radio",
853
+ "repeated",
854
+ "separator",
855
+ "static"
856
+ ],
857
+ "type": "string"
858
+ },
859
+ "validator": {
860
+ "description": "Validator PARAMS",
861
+ "properties": {
862
+ "conditions": {
863
+ "allOf": [
864
+ {
865
+ "$ref": "#/definitions/CONDITION_OPERATOR"
866
+ },
867
+ {
868
+ "$ref": "#/definitions/CONDITION"
869
+ }
870
+ ],
871
+ "description": "Validator condition"
872
+ },
873
+ "message": {
874
+ "description": "Unvalid message",
875
+ "type": "string"
876
+ }
877
+ },
878
+ "type": "object"
879
+ },
880
+ "warning": {
881
+ "description": "The html content of the warning block",
882
+ "type": "string"
883
+ }
884
+ },
885
+ "type": "object"
886
+ },
887
+ "options": {
888
+ "description": "Child options",
889
+ "items": {
890
+ "type": "number"
891
+ },
892
+ "type": "array"
893
+ },
894
+ "variables": {
895
+ "description": "Child variables",
896
+ "items": {
897
+ "type": "number"
898
+ },
899
+ "type": "array"
900
+ }
901
+ },
902
+ "type": "object"
903
+ },
904
+ "PrefillingV3": {
905
+ "description": "A Prefilling, is a conditionned text placeholder/example used to fill a textarea according to different conditions",
906
+ "properties": {
907
+ "conditions": {
908
+ "allOf": [
909
+ {
910
+ "$ref": "#/definitions/CONDITION_OPERATOR"
911
+ },
912
+ {
913
+ "$ref": "#/definitions/CONDITION"
914
+ }
915
+ ],
916
+ "description": "Compiled conditions object"
917
+ },
918
+ "value": {
919
+ "description": "Text used to fill the textarea if the condition is realized",
920
+ "type": "string"
921
+ }
922
+ },
923
+ "type": "object"
924
+ },
925
+ "SectionV3": {
926
+ "description": "Section V3",
927
+ "properties": {
928
+ "conditions": {
929
+ "allOf": [
930
+ {
931
+ "$ref": "#/definitions/CONDITION_OPERATOR"
932
+ },
933
+ {
934
+ "$ref": "#/definitions/CONDITION"
935
+ }
936
+ ],
937
+ "description": "Section's conditions"
938
+ },
939
+ "grantLevel": {
940
+ "description": "Section's grant type",
941
+ "enum": [
942
+ "ADMIN",
943
+ "GUEST",
944
+ "MANAGER",
945
+ "USER"
946
+ ],
947
+ "type": "string"
948
+ },
949
+ "id": {
950
+ "description": "Section's id",
951
+ "type": "number"
952
+ },
953
+ "label": {
954
+ "description": "Section's title",
955
+ "type": "string"
956
+ },
957
+ "options": {
958
+ "description": "Section's options",
959
+ "items": {
960
+ "type": "number"
961
+ },
962
+ "type": "array"
963
+ },
964
+ "step": {
965
+ "anyOf": [
966
+ {
967
+ "items": {
968
+ "type": "number"
969
+ },
970
+ "type": "array"
971
+ },
972
+ {
973
+ "enum": [
974
+ "*"
975
+ ],
976
+ "type": "string"
977
+ }
978
+ ],
979
+ "description": "Step two only"
980
+ },
981
+ "tags": {
982
+ "description": "Tags",
983
+ "items": {
984
+ "type": "string"
985
+ },
986
+ "type": "array"
987
+ }
988
+ },
989
+ "type": "object"
990
+ },
991
+ "VariableV3": {
992
+ "description": "Variable definition object\n\nThis interface was referenced by `undefined`'s JSON-Schema definition\nvia the `patternProperty` \".*\".",
993
+ "properties": {
994
+ "autocomplete": {
995
+ "description": "The input's autocomplete attribute",
996
+ "type": "string"
997
+ },
998
+ "conditions": {
999
+ "allOf": [
1000
+ {
1001
+ "$ref": "#/definitions/CONDITION_OPERATOR"
1002
+ },
1003
+ {
1004
+ "$ref": "#/definitions/CONDITION"
1005
+ }
1006
+ ],
1007
+ "description": "Variable conditions"
1008
+ },
1009
+ "eval": {
1010
+ "description": "Evaluation params",
1011
+ "properties": {
1012
+ "decimals": {
1013
+ "description": "The number of decimals for the result of an evaluation (eval type)",
1014
+ "type": "number"
1015
+ },
1016
+ "formula": {
1017
+ "description": "The evaluation formula (eval type), Example:\n ```\n[var:1]*[var:2]/[var:3]```",
1018
+ "type": "string"
1019
+ },
1020
+ "round": {
1021
+ "description": "Round evalulation result (eval type).",
1022
+ "enum": [
1023
+ "ceil",
1024
+ "floor",
1025
+ "round"
1026
+ ],
1027
+ "type": "string"
1028
+ }
1029
+ },
1030
+ "type": "object"
1031
+ },
1032
+ "grantLevel": {
1033
+ "description": "Variable's grantLevel",
1034
+ "enum": [
1035
+ "ADMIN",
1036
+ "GUEST",
1037
+ "MANAGER",
1038
+ "USER"
1039
+ ],
1040
+ "type": "string"
1041
+ },
1042
+ "helper": {
1043
+ "description": "The html content of the helper block",
1044
+ "type": "string"
1045
+ },
1046
+ "hidden": {
1047
+ "description": "Hidden variable",
1048
+ "type": "boolean"
1049
+ },
1050
+ "id": {
1051
+ "description": "Variable's id (must be unique)",
1052
+ "type": "number"
1053
+ },
1054
+ "label": {
1055
+ "description": "Variable's label",
1056
+ "type": "string"
1057
+ },
1058
+ "mandatory": {
1059
+ "description": "True if the variable is mandatory",
1060
+ "type": "boolean"
1061
+ },
1062
+ "mask": {
1063
+ "description": "Mask",
1064
+ "properties": {
1065
+ "formula": {
1066
+ "description": "The advanced mask's formula (ex: 20 ???-???-???) (?: Char & Number, !: Number Only, @: Char Only)",
1067
+ "type": "string"
1068
+ },
1069
+ "placeholder": {
1070
+ "description": "Mask's placeholder",
1071
+ "type": "string"
1072
+ }
1073
+ },
1074
+ "type": "object"
1075
+ },
1076
+ "placeholder": {
1077
+ "description": "Input's placeholder",
1078
+ "type": "string"
1079
+ },
1080
+ "placeholderLength": {
1081
+ "description": "Variable's place holder length",
1082
+ "type": "number"
1083
+ },
1084
+ "prefillings": {
1085
+ "description": "Preffiling's object",
1086
+ "items": {
1087
+ "$ref": "#/definitions/PrefillingV3"
1088
+ },
1089
+ "type": "array"
1090
+ },
1091
+ "selectValues": {
1092
+ "description": "The list of options for the select (list type) variable",
1093
+ "items": {
1094
+ "type": "string"
1095
+ },
1096
+ "type": "array"
1097
+ },
1098
+ "step": {
1099
+ "anyOf": [
1100
+ {
1101
+ "items": {
1102
+ "type": "number"
1103
+ },
1104
+ "type": "array"
1105
+ },
1106
+ {
1107
+ "enum": [
1108
+ "*"
1109
+ ],
1110
+ "type": "string"
1111
+ }
1112
+ ],
1113
+ "description": "Set to true if the variable should be displayed in the second step only"
1114
+ },
1115
+ "style": {
1116
+ "description": "Defines input size",
1117
+ "enum": [
1118
+ "full",
1119
+ "half"
1120
+ ],
1121
+ "type": "string"
1122
+ },
1123
+ "suffix": {
1124
+ "description": "Variable's suffix",
1125
+ "type": "string"
1126
+ },
1127
+ "tags": {
1128
+ "description": "Tags",
1129
+ "items": {
1130
+ "type": "string"
1131
+ },
1132
+ "type": "array"
1133
+ },
1134
+ "termsheet": {
1135
+ "description": "Termsheet",
1136
+ "properties": {
1137
+ "hide": {
1138
+ "description": "Hide variable from termsheet",
1139
+ "type": "boolean"
1140
+ },
1141
+ "label": {
1142
+ "description": "Variable's termsheet label",
1143
+ "type": "string"
1144
+ }
1145
+ },
1146
+ "type": "object"
1147
+ },
1148
+ "textarea": {
1149
+ "description": "Textarea styling",
1150
+ "properties": {
1151
+ "lineNumbers": {
1152
+ "description": "The textarea's high (lines number) (Only if textarea_size is set to `p`)",
1153
+ "type": "number"
1154
+ },
1155
+ "size": {
1156
+ "description": "Textarea's size (textarea type)\n - l: Large (240px)\n - m: Medium (120px)\n - s: Small (60px)\n - p: Custom size in number of lines",
1157
+ "enum": [
1158
+ "l",
1159
+ "m",
1160
+ "p",
1161
+ "s"
1162
+ ],
1163
+ "type": "string"
1164
+ }
1165
+ },
1166
+ "type": "object"
1167
+ },
1168
+ "type": {
1169
+ "description": "Variable's type",
1170
+ "enum": [
1171
+ "date",
1172
+ "email",
1173
+ "eval",
1174
+ "hour",
1175
+ "list",
1176
+ "mask",
1177
+ "number",
1178
+ "text",
1179
+ "textarea"
1180
+ ],
1181
+ "type": "string"
1182
+ },
1183
+ "validator": {
1184
+ "description": "Validator",
1185
+ "properties": {
1186
+ "conditions": {
1187
+ "allOf": [
1188
+ {
1189
+ "$ref": "#/definitions/CONDITION_OPERATOR"
1190
+ },
1191
+ {
1192
+ "$ref": "#/definitions/CONDITION"
1193
+ }
1194
+ ],
1195
+ "description": "Validator condition"
1196
+ },
1197
+ "message": {
1198
+ "description": "Unvalid error message",
1199
+ "type": "string"
1200
+ }
1201
+ },
1202
+ "type": "object"
1203
+ },
1204
+ "warning": {
1205
+ "description": "The html content of the warning block",
1206
+ "type": "string"
1207
+ }
1208
+ },
1209
+ "type": "object"
1210
+ }
1211
+ },
1212
+ "description": "Model",
1213
+ "properties": {
1214
+ "customization": {
1215
+ "properties": {
1216
+ "clientType": {
1217
+ "properties": {
1218
+ "conditions": {
1219
+ "allOf": [
1220
+ {
1221
+ "$ref": "#/definitions/CONDITION_OPERATOR"
1222
+ },
1223
+ {
1224
+ "$ref": "#/definitions/CONDITION"
1225
+ }
1226
+ ]
1227
+ },
1228
+ "type": {
1229
+ "enum": [
1230
+ "conditionnal",
1231
+ "ind",
1232
+ "pro"
1233
+ ],
1234
+ "type": "string"
1235
+ }
1236
+ },
1237
+ "type": "object"
1238
+ },
1239
+ "disableAutoDefaut": {
1240
+ "type": "boolean"
1241
+ },
1242
+ "extracts": {
1243
+ "items": {
1244
+ "$ref": "#/definitions/ExtractV3"
1245
+ },
1246
+ "type": "array"
1247
+ }
1248
+ },
1249
+ "type": "object"
1250
+ },
1251
+ "documents": {
1252
+ "additionalProperties": {
1253
+ "properties": {
1254
+ "name": {
1255
+ "description": "Document's name",
1256
+ "type": "string"
1257
+ },
1258
+ "params": {
1259
+ "description": "Document's params",
1260
+ "properties": {
1261
+ "conditions": {
1262
+ "allOf": [
1263
+ {
1264
+ "$ref": "#/definitions/CONDITION_OPERATOR"
1265
+ },
1266
+ {
1267
+ "$ref": "#/definitions/CONDITION"
1268
+ }
1269
+ ]
1270
+ },
1271
+ "formats": {
1272
+ "properties": {
1273
+ "docx": {
1274
+ "type": "boolean"
1275
+ },
1276
+ "pdf": {
1277
+ "type": "boolean"
1278
+ }
1279
+ },
1280
+ "type": "object"
1281
+ },
1282
+ "grantLevel": {
1283
+ "enum": [
1284
+ "ADMIN",
1285
+ "GUEST",
1286
+ "MANAGER",
1287
+ "USER"
1288
+ ],
1289
+ "type": "string"
1290
+ },
1291
+ "private": {
1292
+ "type": "boolean"
1293
+ }
1294
+ },
1295
+ "type": "object"
1296
+ },
1297
+ "sections": {
1298
+ "description": "Document's sections list",
1299
+ "items": {
1300
+ "$ref": "#/definitions/SectionV3"
1301
+ },
1302
+ "type": "array"
1303
+ }
1304
+ },
1305
+ "type": "object"
1306
+ },
1307
+ "type": "object"
1308
+ },
1309
+ "options": {
1310
+ "additionalProperties": {
1311
+ "$ref": "#/definitions/OptionV3"
1312
+ },
1313
+ "type": "object"
1314
+ },
1315
+ "variables": {
1316
+ "additionalProperties": {
1317
+ "$ref": "#/definitions/VariableV3"
1318
+ },
1319
+ "type": "object"
1320
+ }
1321
+ },
1322
+ "type": "object"
1323
+ }
1324
+