@legalplace/models-v3-types 3.4.41 → 3.4.42

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 (3) hide show
  1. package/index.ts +14 -2
  2. package/package.json +1 -1
  3. package/schema.json +42 -2
package/index.ts CHANGED
@@ -513,8 +513,8 @@ export interface PrefillingV3 {
513
513
  * FDF
514
514
  */
515
515
  export interface FDFFormV3 {
516
- inputs: FDFInputsV3
517
- boxes: FDFBoxesV3
516
+ inputs: FDFInputsV3[]
517
+ boxes: FDFBoxesV3[]
518
518
  }
519
519
 
520
520
  /**
@@ -523,6 +523,12 @@ export interface FDFFormV3 {
523
523
  export interface FDFInputsV3 {
524
524
  name: string
525
525
  page: number
526
+ rect: {
527
+ x: number
528
+ y: number
529
+ width: number
530
+ height: number
531
+ },
526
532
  variables: {
527
533
  id: number,
528
534
  conditions?: ConditionV3
@@ -535,6 +541,12 @@ export interface FDFInputsV3 {
535
541
  export interface FDFBoxesV3 {
536
542
  name: string
537
543
  page: number
544
+ rect: {
545
+ x: number
546
+ y: number
547
+ width: number
548
+ height: number
549
+ },
538
550
  options: {
539
551
  id: number,
540
552
  conditions?: ConditionV3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/models-v3-types",
3
- "version": "3.4.41",
3
+ "version": "3.4.42",
4
4
  "main": "",
5
5
  "types": "index",
6
6
  "author": "Moncef Hammou <moncef@legalplace.fr>",
package/schema.json CHANGED
@@ -1433,6 +1433,23 @@
1433
1433
  },
1434
1434
  "page": {
1435
1435
  "type": "number"
1436
+ },
1437
+ "rect": {
1438
+ "properties": {
1439
+ "height": {
1440
+ "type": "number"
1441
+ },
1442
+ "width": {
1443
+ "type": "number"
1444
+ },
1445
+ "x": {
1446
+ "type": "number"
1447
+ },
1448
+ "y": {
1449
+ "type": "number"
1450
+ }
1451
+ },
1452
+ "type": "object"
1436
1453
  }
1437
1454
  },
1438
1455
  "type": "object"
@@ -1441,10 +1458,16 @@
1441
1458
  "description": "FDF",
1442
1459
  "properties": {
1443
1460
  "boxes": {
1444
- "$ref": "#/definitions/FDFBoxesV3"
1461
+ "items": {
1462
+ "$ref": "#/definitions/FDFBoxesV3"
1463
+ },
1464
+ "type": "array"
1445
1465
  },
1446
1466
  "inputs": {
1447
- "$ref": "#/definitions/FDFInputsV3"
1467
+ "items": {
1468
+ "$ref": "#/definitions/FDFInputsV3"
1469
+ },
1470
+ "type": "array"
1448
1471
  }
1449
1472
  },
1450
1473
  "type": "object"
@@ -1458,6 +1481,23 @@
1458
1481
  "page": {
1459
1482
  "type": "number"
1460
1483
  },
1484
+ "rect": {
1485
+ "properties": {
1486
+ "height": {
1487
+ "type": "number"
1488
+ },
1489
+ "width": {
1490
+ "type": "number"
1491
+ },
1492
+ "x": {
1493
+ "type": "number"
1494
+ },
1495
+ "y": {
1496
+ "type": "number"
1497
+ }
1498
+ },
1499
+ "type": "object"
1500
+ },
1461
1501
  "variables": {
1462
1502
  "items": {
1463
1503
  "properties": {