@legalplace/models-v3-types 3.4.41 → 3.4.43

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 +21 -5
  2. package/package.json +1 -1
  3. package/schema.json +65 -19
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,9 +523,20 @@ 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
- conditions?: ConditionV3
534
+ date?: 'DD' | 'MM' | 'AAAA',
535
+ hour?: 'HH' | 'MM',
536
+ fragment?: {
537
+ from: number
538
+ to: number
539
+ }
529
540
  }[]
530
541
  }
531
542
 
@@ -535,8 +546,13 @@ export interface FDFInputsV3 {
535
546
  export interface FDFBoxesV3 {
536
547
  name: string
537
548
  page: number
549
+ rect: {
550
+ x: number
551
+ y: number
552
+ width: number
553
+ height: number
554
+ },
538
555
  options: {
539
- id: number,
540
- conditions?: ConditionV3
556
+ id: number
541
557
  }[]
542
558
  }
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.43",
4
4
  "main": "",
5
5
  "types": "index",
6
6
  "author": "Moncef Hammou <moncef@legalplace.fr>",
package/schema.json CHANGED
@@ -1413,16 +1413,6 @@
1413
1413
  "options": {
1414
1414
  "items": {
1415
1415
  "properties": {
1416
- "conditions": {
1417
- "allOf": [
1418
- {
1419
- "$ref": "#/definitions/CONDITION_OPERATOR"
1420
- },
1421
- {
1422
- "$ref": "#/definitions/CONDITION"
1423
- }
1424
- ]
1425
- },
1426
1416
  "id": {
1427
1417
  "type": "number"
1428
1418
  }
@@ -1433,6 +1423,23 @@
1433
1423
  },
1434
1424
  "page": {
1435
1425
  "type": "number"
1426
+ },
1427
+ "rect": {
1428
+ "properties": {
1429
+ "height": {
1430
+ "type": "number"
1431
+ },
1432
+ "width": {
1433
+ "type": "number"
1434
+ },
1435
+ "x": {
1436
+ "type": "number"
1437
+ },
1438
+ "y": {
1439
+ "type": "number"
1440
+ }
1441
+ },
1442
+ "type": "object"
1436
1443
  }
1437
1444
  },
1438
1445
  "type": "object"
@@ -1441,10 +1448,16 @@
1441
1448
  "description": "FDF",
1442
1449
  "properties": {
1443
1450
  "boxes": {
1444
- "$ref": "#/definitions/FDFBoxesV3"
1451
+ "items": {
1452
+ "$ref": "#/definitions/FDFBoxesV3"
1453
+ },
1454
+ "type": "array"
1445
1455
  },
1446
1456
  "inputs": {
1447
- "$ref": "#/definitions/FDFInputsV3"
1457
+ "items": {
1458
+ "$ref": "#/definitions/FDFInputsV3"
1459
+ },
1460
+ "type": "array"
1448
1461
  }
1449
1462
  },
1450
1463
  "type": "object"
@@ -1458,18 +1471,51 @@
1458
1471
  "page": {
1459
1472
  "type": "number"
1460
1473
  },
1474
+ "rect": {
1475
+ "properties": {
1476
+ "height": {
1477
+ "type": "number"
1478
+ },
1479
+ "width": {
1480
+ "type": "number"
1481
+ },
1482
+ "x": {
1483
+ "type": "number"
1484
+ },
1485
+ "y": {
1486
+ "type": "number"
1487
+ }
1488
+ },
1489
+ "type": "object"
1490
+ },
1461
1491
  "variables": {
1462
1492
  "items": {
1463
1493
  "properties": {
1464
- "conditions": {
1465
- "allOf": [
1466
- {
1467
- "$ref": "#/definitions/CONDITION_OPERATOR"
1494
+ "date": {
1495
+ "enum": [
1496
+ "AAAA",
1497
+ "DD",
1498
+ "MM"
1499
+ ],
1500
+ "type": "string"
1501
+ },
1502
+ "fragment": {
1503
+ "properties": {
1504
+ "from": {
1505
+ "type": "number"
1468
1506
  },
1469
- {
1470
- "$ref": "#/definitions/CONDITION"
1507
+ "to": {
1508
+ "type": "number"
1471
1509
  }
1472
- ]
1510
+ },
1511
+ "type": "object"
1512
+ },
1513
+ "hour": {
1514
+ "enum": [
1515
+ "HH",
1516
+ "MM"
1517
+ ],
1518
+ "type": "string"
1473
1519
  },
1474
1520
  "id": {
1475
1521
  "type": "number"