@pdtf/schemas 3.0.0-9 → 3.0.1-2

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 (31) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +1 -1
  3. package/src/examples/v3/exampleAddParticipantVouch.json +32 -0
  4. package/src/examples/v3/exampleDocumentedVouch.json +40 -0
  5. package/src/examples/v3/exampleElectronicRecord.json +30 -0
  6. package/src/examples/v3/exampleTransaction.json +716 -668
  7. package/src/examples/v3/exampleVouch.json +25 -0
  8. package/src/schemas/v2/combined.json +10 -2
  9. package/src/schemas/v2/overlays/baspi.json +14 -2
  10. package/src/schemas/v2/overlays/ta6.json +7 -0
  11. package/src/schemas/v2/pdtf-transaction.json +4 -6
  12. package/src/schemas/v2/skeleton.json +2 -1
  13. package/src/schemas/v3/combined.json +22993 -22893
  14. package/src/schemas/v3/overlays/baspi.json +5825 -6167
  15. package/src/schemas/v3/overlays/con29DW.json +568 -557
  16. package/src/schemas/v3/overlays/con29R.json +1 -1
  17. package/src/schemas/v3/overlays/fme1.json +1039 -1039
  18. package/src/schemas/v3/overlays/llc1.json +5 -5
  19. package/src/schemas/v3/overlays/lpe1.json +1720 -1680
  20. package/src/schemas/v3/overlays/nts.json +1436 -1245
  21. package/src/schemas/v3/overlays/oc1.json +821 -821
  22. package/src/schemas/v3/overlays/piq.json +2295 -2494
  23. package/src/schemas/v3/overlays/rds.json +2899 -3191
  24. package/src/schemas/v3/overlays/ta10.json +5280 -4282
  25. package/src/schemas/v3/overlays/ta6.json +3160 -3089
  26. package/src/schemas/v3/overlays/ta7.json +1071 -807
  27. package/src/schemas/v3/pdtf-transaction.json +19396 -18694
  28. package/src/schemas/v3/skeleton.json +2808 -2755
  29. package/src/tests/v3/transactionSchema.test.js +57 -46
  30. package/src/tests/v3/verifiedClaimsValidator.test.js +13 -13
  31. package/src/utils/extractOverlay.js +13 -6
@@ -0,0 +1,25 @@
1
+ {
2
+ "verification": {
3
+ "trust_framework": "uk_pdtf",
4
+ "time": "2022-01-25T13:05:03.108Z",
5
+ "evidence": [
6
+ {
7
+ "type": "vouch",
8
+ "attestation": {
9
+ "type": "digital_attestation",
10
+ "voucher": {
11
+ "name": "Maria Harris"
12
+ }
13
+ },
14
+ "verification_method": {
15
+ "type": "auth"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ "claims": {
21
+ "/propertyPack/delayFactors/hasDelayFactors": {
22
+ "yesNo": "No"
23
+ }
24
+ }
25
+ }
@@ -23808,9 +23808,14 @@
23808
23808
  "title": "",
23809
23809
  "type": "string",
23810
23810
  "enum": ["Attached", "To follow"]
23811
+ },
23812
+ "warrantyDate":{
23813
+ "baspiRef": "B5.1.1.4",
23814
+ "type" : "string",
23815
+ "format": "date"
23811
23816
  }
23812
23817
  },
23813
- "baspiRequired": ["details", "attachments"],
23818
+ "baspiRequired": ["details", "attachments", "warrantyDate"],
23814
23819
  "ta6Required": ["attachments"]
23815
23820
  }
23816
23821
  ]
@@ -24630,12 +24635,15 @@
24630
24635
  "ta6Ref": "14.4",
24631
24636
  "title": "Please confirm that on completion you will:",
24632
24637
  "type": "object",
24633
- "required": [
24638
+ "ta6Required": [
24634
24639
  "removeRubbish",
24635
24640
  "replaceLightFittings",
24636
24641
  "takeReasonableCare",
24637
24642
  "leaveKeys"
24638
24643
  ],
24644
+ "baspiRequired": [
24645
+ "removeRubbish"
24646
+ ],
24639
24647
  "properties": {
24640
24648
  "removeRubbish": {
24641
24649
  "baspiRef": "B7.1.1",
@@ -7242,12 +7242,20 @@
7242
7242
  "baspiRef": "B5.1.1.2"
7243
7243
  },
7244
7244
  "attachments": {
7245
- "baspiRef": "B5.1.1.3"
7245
+ "baspiRef": "B5.1.1.3",
7246
+ "enum": [
7247
+ "Attached",
7248
+ "To follow"
7249
+ ]
7250
+ },
7251
+ "warrantyDate": {
7252
+ "baspiRef": "B5.1.1.4"
7246
7253
  }
7247
7254
  },
7248
7255
  "required": [
7249
7256
  "details",
7250
- "attachments"
7257
+ "attachments",
7258
+ "warrantyDate"
7251
7259
  ]
7252
7260
  }
7253
7261
  ],
@@ -7920,6 +7928,10 @@
7920
7928
  "properties": {
7921
7929
  "sellerWillEnsure": {
7922
7930
  "baspiRef": "B7.1",
7931
+ "title": "Please confirm that on completion you will:",
7932
+ "required": [
7933
+ "removeRubbish"
7934
+ ],
7923
7935
  "properties": {
7924
7936
  "removeRubbish": {
7925
7937
  "baspiRef": "B7.1.1"
@@ -4405,6 +4405,13 @@
4405
4405
  "properties": {
4406
4406
  "sellerWillEnsure": {
4407
4407
  "ta6Ref": "14.4",
4408
+ "title": "Please confirm that on completion you will:",
4409
+ "required": [
4410
+ "removeRubbish",
4411
+ "replaceLightFittings",
4412
+ "takeReasonableCare",
4413
+ "leaveKeys"
4414
+ ],
4408
4415
  "properties": {
4409
4416
  "removeRubbish": {
4410
4417
  "ta6Ref": "14.4a"
@@ -21072,6 +21072,10 @@
21072
21072
  "Attached",
21073
21073
  "To follow"
21074
21074
  ]
21075
+ },
21076
+ "warrantyDate": {
21077
+ "type": "string",
21078
+ "format": "date"
21075
21079
  }
21076
21080
  }
21077
21081
  }
@@ -21745,12 +21749,6 @@
21745
21749
  "sellerWillEnsure": {
21746
21750
  "title": "Please confirm that on completion you will:",
21747
21751
  "type": "object",
21748
- "required": [
21749
- "removeRubbish",
21750
- "replaceLightFittings",
21751
- "takeReasonableCare",
21752
- "leaveKeys"
21753
- ],
21754
21752
  "properties": {
21755
21753
  "removeRubbish": {
21756
21754
  "title": "Remove all rubbish and items not included in the sale from the property (including its garden, loft and any sheds or outbuildings) and leave the property in a clean and tidy condition.",
@@ -2580,7 +2580,8 @@
2580
2580
  "newHomeWarranty": {
2581
2581
  "yesNo": {},
2582
2582
  "details": {},
2583
- "attachments": {}
2583
+ "attachments": {},
2584
+ "warrantyDate": {}
2584
2585
  },
2585
2586
  "roofingWork": {
2586
2587
  "yesNo": {},