@legalplace/models-v3-types 3.4.2 → 3.4.4

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.
Files changed (4) hide show
  1. package/index.ts +52 -0
  2. package/package.json +8 -2
  3. package/schema.json +883 -73
  4. package/yarn.lock +276 -0
package/index.ts CHANGED
@@ -29,6 +29,14 @@ export interface ModelV3<ConstumizationMeta = CustomizationMetaDefault> {
29
29
  * Document's sections list
30
30
  */
31
31
  sections: SectionV3[];
32
+ /**
33
+ * Document's PDF link
34
+ */
35
+ pdf?: {
36
+ id: string
37
+ form: FDFFormV3
38
+ thumbnails: string[]
39
+ }
32
40
  /**
33
41
  * Document's params
34
42
  */
@@ -320,6 +328,10 @@ export interface VariableV3 {
320
328
  * Variable's label
321
329
  */
322
330
  label: string;
331
+ /**
332
+ * Variable's Fallback Label
333
+ */
334
+ fallbackLabel?: string;
323
335
  /**
324
336
  * Variable's type
325
337
  */
@@ -414,6 +426,13 @@ export interface VariableV3 {
414
426
  round?: 'ceil' | 'floor' | 'round';
415
427
  };
416
428
 
429
+ /**
430
+ * Number input
431
+ */
432
+ number?: {
433
+ intOnly?: boolean
434
+ }
435
+
417
436
  /**
418
437
  * Textarea styling
419
438
  */
@@ -474,6 +493,7 @@ export interface VariableV3 {
474
493
  hide?: boolean;
475
494
  };
476
495
  }
496
+
477
497
  /**
478
498
  * A Prefilling, is a conditionned text placeholder/example used to fill a textarea according to different conditions
479
499
  */
@@ -487,3 +507,35 @@ export interface PrefillingV3 {
487
507
  */
488
508
  conditions?: ConditionV3;
489
509
  }
510
+
511
+ /**
512
+ * FDF
513
+ */
514
+ export interface FDFFormV3 {
515
+ inputs: FDFInputsV3
516
+ boxes: FDFBoxesV3
517
+ }
518
+
519
+ /**
520
+ * FDF Inputs
521
+ */
522
+ export interface FDFInputsV3 {
523
+ name: string
524
+ page: number
525
+ variables: {
526
+ id: number,
527
+ conditions?: ConditionV3
528
+ }[]
529
+ }
530
+
531
+ /**
532
+ * FDF Boxes
533
+ */
534
+ export interface FDFBoxesV3 {
535
+ name: string
536
+ page: number
537
+ options: {
538
+ id: number,
539
+ conditions?: ConditionV3
540
+ }[]
541
+ }
package/package.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "name": "@legalplace/models-v3-types",
3
- "version": "3.4.2",
3
+ "version": "3.4.4",
4
4
  "main": "",
5
5
  "types": "index",
6
6
  "author": "Moncef Hammou <moncef@legalplace.fr>",
7
- "license": "MIT"
7
+ "license": "MIT",
8
+ "scripts": {
9
+ "write-schema": "typescript-json-schema tsconfig.json ModelV3 -o schema.json"
10
+ },
11
+ "devDependencies": {
12
+ "typescript-json-schema": "^0.43.0"
13
+ }
8
14
  }