@legalplace/lplogic 2.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.
@@ -0,0 +1,45 @@
1
+ declare const ConditionV1Schema: {
2
+ definitions: {};
3
+ $schema: string;
4
+ type: string;
5
+ properties: {
6
+ c: {
7
+ type: string;
8
+ enum: string[];
9
+ description: string;
10
+ };
11
+ o: {
12
+ type: string[];
13
+ description: string;
14
+ };
15
+ p: {
16
+ type: string[];
17
+ description: string;
18
+ };
19
+ v: {
20
+ type: string[];
21
+ description: string;
22
+ };
23
+ value: {
24
+ type: string[];
25
+ description: string;
26
+ };
27
+ l: {
28
+ type: string[];
29
+ description: string;
30
+ };
31
+ m: {
32
+ type: string;
33
+ description: string;
34
+ };
35
+ t: {
36
+ type: string;
37
+ enum: string[];
38
+ description: string;
39
+ };
40
+ };
41
+ anyOf: {
42
+ required: string[];
43
+ }[];
44
+ };
45
+ export default ConditionV1Schema;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var ConditionV1Schema = {
4
+ definitions: {},
5
+ $schema: "http://json-schema.org/draft-07/schema#",
6
+ type: "object",
7
+ properties: {
8
+ c: {
9
+ type: "string",
10
+ enum: [
11
+ "selected",
12
+ "not-selected",
13
+ "has-one",
14
+ "at-least-one",
15
+ "has-many",
16
+ "contains",
17
+ "does-not-contain",
18
+ "=",
19
+ ">",
20
+ "<",
21
+ "!=",
22
+ ">=",
23
+ "<=",
24
+ "<>"
25
+ ],
26
+ description: "Condition"
27
+ },
28
+ o: {
29
+ type: ["string", "boolean", "integer"],
30
+ description: "Option's id, set to false if the condition is related to a variable"
31
+ },
32
+ p: {
33
+ type: ["string", "integer"],
34
+ description: "`Depreceated` Option's parent id"
35
+ },
36
+ v: {
37
+ type: ["string", "boolean", "integer"],
38
+ description: "Variable's id, set to false if the condition is related to an option"
39
+ },
40
+ value: {
41
+ type: ["string", "integer", "float"],
42
+ description: "Expected value (in case the condition is on a variable)"
43
+ },
44
+ l: {
45
+ type: ["array", "boolean"],
46
+ description: "`Depreceated` Variable's possible values list, set to false if condition is related to an option"
47
+ },
48
+ m: {
49
+ type: "boolean",
50
+ description: "`Depreaceated` True if the variable/option is a multiple"
51
+ },
52
+ t: {
53
+ type: "string",
54
+ enum: ["and", "or"],
55
+ description: "Relation's op to the previous condition"
56
+ }
57
+ },
58
+ anyOf: [
59
+ {
60
+ required: ["o", "c"]
61
+ },
62
+ {
63
+ required: ["v", "c", "value"]
64
+ }
65
+ ]
66
+ };
67
+ exports.default = ConditionV1Schema;
@@ -0,0 +1,510 @@
1
+ declare const ModelV1Schema: {
2
+ definitions: {
3
+ section: {
4
+ type: string;
5
+ required: string[];
6
+ properties: {
7
+ id: {
8
+ description: string;
9
+ type: string[];
10
+ minimum: number;
11
+ };
12
+ label: {
13
+ description: string;
14
+ type: string;
15
+ examples: string[];
16
+ };
17
+ options: {
18
+ description: string;
19
+ type: string;
20
+ items: {
21
+ $ref: string;
22
+ };
23
+ };
24
+ };
25
+ };
26
+ option: {
27
+ type: string;
28
+ properties: {
29
+ meta: {
30
+ type: string;
31
+ properties: {
32
+ id: {
33
+ type: string[];
34
+ description: string;
35
+ };
36
+ type: {
37
+ type: string;
38
+ description: string;
39
+ enum: string[];
40
+ };
41
+ multiple: {
42
+ type: string;
43
+ description: string;
44
+ };
45
+ output: {
46
+ type: string;
47
+ description: string;
48
+ };
49
+ outputRender: {
50
+ type: string;
51
+ description: string;
52
+ };
53
+ default: {
54
+ type: string[];
55
+ description: string;
56
+ };
57
+ parentMultiple: {
58
+ type: string;
59
+ description: string;
60
+ };
61
+ step_two_only: {
62
+ type: string;
63
+ description: string;
64
+ };
65
+ conditions: {
66
+ description: string;
67
+ type: string[];
68
+ items: {
69
+ $ref: string;
70
+ };
71
+ };
72
+ compiledConditions: {
73
+ description: string;
74
+ type: string[];
75
+ items: {
76
+ $ref: string;
77
+ };
78
+ };
79
+ warning: {
80
+ description: string;
81
+ type: string;
82
+ };
83
+ helper: {
84
+ description: string;
85
+ type: string;
86
+ };
87
+ multipletext: {
88
+ description: string;
89
+ type: string;
90
+ };
91
+ parent_section: {
92
+ description: string;
93
+ type: string[];
94
+ };
95
+ multipleIncrtText: {
96
+ description: string;
97
+ type: string;
98
+ };
99
+ content: {
100
+ description: string;
101
+ type: string;
102
+ };
103
+ repeatOption: {
104
+ description: string;
105
+ type: string[];
106
+ };
107
+ multipleIncrt: {
108
+ description: string;
109
+ type: string[];
110
+ };
111
+ zonetendue: {
112
+ description: string;
113
+ type: string;
114
+ };
115
+ mandatory: {
116
+ description: string;
117
+ type: string;
118
+ };
119
+ };
120
+ };
121
+ children: {
122
+ description: string;
123
+ type: string;
124
+ items: {
125
+ $ref: string;
126
+ };
127
+ };
128
+ variables: {
129
+ description: string;
130
+ type: string;
131
+ items: {
132
+ $ref: string;
133
+ };
134
+ };
135
+ };
136
+ };
137
+ variable: {
138
+ type: string;
139
+ description: string;
140
+ properties: {
141
+ id: {
142
+ description: string;
143
+ type: string[];
144
+ };
145
+ label: {
146
+ description: string;
147
+ type: string;
148
+ examples: string[];
149
+ };
150
+ type: {
151
+ description: string;
152
+ type: string;
153
+ enum: string[];
154
+ };
155
+ value: {
156
+ description: string;
157
+ type: string[];
158
+ };
159
+ parentMultiple: {
160
+ description: string;
161
+ type: string;
162
+ };
163
+ phsize: {
164
+ type: string[];
165
+ description: string;
166
+ };
167
+ warning: {
168
+ description: string;
169
+ type: string;
170
+ };
171
+ helper: {
172
+ description: string;
173
+ type: string;
174
+ };
175
+ list: {
176
+ description: string;
177
+ type: string;
178
+ };
179
+ autocomplete: {
180
+ description: string;
181
+ type: string;
182
+ };
183
+ textarea_height: {
184
+ description: string;
185
+ type: string[];
186
+ };
187
+ advancedmask: {
188
+ description: string;
189
+ type: string;
190
+ };
191
+ maskph: {
192
+ description: string;
193
+ type: string;
194
+ };
195
+ mask: {
196
+ description: string;
197
+ type: string;
198
+ };
199
+ prefillings: {
200
+ description: string;
201
+ type: string;
202
+ items: {
203
+ $ref: string;
204
+ };
205
+ };
206
+ placeholder: {
207
+ description: string;
208
+ type: string;
209
+ };
210
+ eval_decimal: {
211
+ description: string;
212
+ type: string[];
213
+ };
214
+ evaluation: {
215
+ description: string;
216
+ type: string;
217
+ };
218
+ round: {
219
+ description: string;
220
+ type: string[];
221
+ enum: (string | number)[];
222
+ };
223
+ longInput: {
224
+ description: string;
225
+ type: string;
226
+ };
227
+ textarea_size: {
228
+ description: string;
229
+ type: string;
230
+ enum: string[];
231
+ };
232
+ mandatory: {
233
+ description: string;
234
+ type: string;
235
+ };
236
+ step_two_only: {
237
+ type: string;
238
+ description: string;
239
+ };
240
+ };
241
+ };
242
+ condition: {
243
+ type: string;
244
+ properties: {
245
+ c: {
246
+ type: string;
247
+ enum: string[];
248
+ description: string;
249
+ };
250
+ o: {
251
+ type: string[];
252
+ description: string;
253
+ };
254
+ p: {
255
+ type: string[];
256
+ description: string;
257
+ };
258
+ v: {
259
+ type: string[];
260
+ description: string;
261
+ };
262
+ value: {
263
+ type: string[];
264
+ description: string;
265
+ };
266
+ l: {
267
+ type: string[];
268
+ description: string;
269
+ };
270
+ m: {
271
+ type: string;
272
+ description: string;
273
+ };
274
+ t: {
275
+ type: string;
276
+ enum: string[];
277
+ description: string;
278
+ };
279
+ };
280
+ anyOf: {
281
+ required: string[];
282
+ }[];
283
+ };
284
+ compiledCondition: {
285
+ type: string[];
286
+ description: string;
287
+ };
288
+ prefilling: {
289
+ type: string;
290
+ additionalProperties: boolean;
291
+ description: string;
292
+ properties: {
293
+ text: {
294
+ type: string;
295
+ description: string;
296
+ };
297
+ conditions: {
298
+ type: string[];
299
+ description: string;
300
+ items: {
301
+ $ref: string;
302
+ };
303
+ };
304
+ compiledConditions: {
305
+ type: string[];
306
+ description: string;
307
+ items: {
308
+ $ref: string;
309
+ };
310
+ };
311
+ };
312
+ };
313
+ varExtraction: {
314
+ type: string;
315
+ additionalProperties: boolean;
316
+ properties: {
317
+ type: {
318
+ type: string;
319
+ enum: string[];
320
+ description: string;
321
+ };
322
+ index: {
323
+ type: string[];
324
+ description: string;
325
+ };
326
+ id: {
327
+ type: string[];
328
+ description: string;
329
+ };
330
+ parent_id: {
331
+ type: string[];
332
+ description: string;
333
+ };
334
+ extractions: {
335
+ type: string;
336
+ additionalProperties: boolean;
337
+ properties: {
338
+ sendinblue: {
339
+ ext_name: {
340
+ type: string;
341
+ description: string;
342
+ };
343
+ enabled: {
344
+ type: string;
345
+ description: string;
346
+ };
347
+ name: {
348
+ type: string;
349
+ description: string;
350
+ };
351
+ };
352
+ mixpanel: {
353
+ ext_name: {
354
+ type: string;
355
+ description: string;
356
+ };
357
+ enabled: {
358
+ type: string;
359
+ description: string;
360
+ };
361
+ name: {
362
+ type: string;
363
+ description: string;
364
+ };
365
+ };
366
+ slack: {
367
+ ext_name: {
368
+ type: string;
369
+ description: string;
370
+ };
371
+ enabled: {
372
+ type: string;
373
+ description: string;
374
+ };
375
+ name: {
376
+ type: string;
377
+ description: string;
378
+ };
379
+ channel: {
380
+ type: string;
381
+ description: string;
382
+ };
383
+ };
384
+ };
385
+ };
386
+ };
387
+ };
388
+ };
389
+ $schema: string;
390
+ $id: string;
391
+ type: string;
392
+ title: string;
393
+ required: string[];
394
+ properties: {
395
+ contract_name: {
396
+ type: string;
397
+ description: string;
398
+ examples: string[];
399
+ };
400
+ sections: {
401
+ type: string;
402
+ description: string;
403
+ items: {
404
+ $ref: string;
405
+ };
406
+ };
407
+ params: {
408
+ type: string;
409
+ additionalProperties: boolean;
410
+ description: string;
411
+ properties: {
412
+ sivAttributes: {
413
+ type: string;
414
+ description: string;
415
+ };
416
+ hasSivAttributes: {
417
+ type: string;
418
+ description: string;
419
+ };
420
+ is_two_steps: {
421
+ type: string;
422
+ description: string;
423
+ };
424
+ proIdnType: {
425
+ type: string;
426
+ enum: string[];
427
+ };
428
+ disableAutoDefault: {
429
+ type: string;
430
+ description: string;
431
+ };
432
+ varsExtraction: {
433
+ type: string;
434
+ description: string;
435
+ items: {
436
+ $ref: string;
437
+ };
438
+ };
439
+ disableCompagnon: {
440
+ type: string;
441
+ description: string;
442
+ };
443
+ fullWidth: {
444
+ type: string;
445
+ description: string;
446
+ };
447
+ disableDownloadPopup: {
448
+ type: string;
449
+ description: string;
450
+ };
451
+ disableDownload: {
452
+ type: string;
453
+ description: string;
454
+ };
455
+ disablePreview: {
456
+ type: string;
457
+ description: string;
458
+ };
459
+ noAttachements: {
460
+ type: string;
461
+ description: string;
462
+ };
463
+ isTwoSteps: {
464
+ type: string;
465
+ description: string;
466
+ };
467
+ };
468
+ };
469
+ options_ids: {
470
+ type: string;
471
+ description: string;
472
+ items: {
473
+ type: string[];
474
+ };
475
+ };
476
+ variables_id: {
477
+ type: string;
478
+ description: string;
479
+ items: {
480
+ type: string;
481
+ };
482
+ };
483
+ pro: {
484
+ type: string;
485
+ additionalProperties: boolean;
486
+ description: string;
487
+ properties: {
488
+ meta: {
489
+ type: string;
490
+ additionalProperties: boolean;
491
+ properties: {
492
+ conditions: {
493
+ type: string[];
494
+ items: {
495
+ $ref: string;
496
+ };
497
+ };
498
+ compiledConditions: {
499
+ type: string[];
500
+ items: {
501
+ $ref: string;
502
+ };
503
+ };
504
+ };
505
+ };
506
+ };
507
+ };
508
+ };
509
+ };
510
+ export default ModelV1Schema;