@pdtf/schemas 3.6.0-dev.25 → 3.6.0-dev.27
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.
- package/package.json +1 -1
- package/src/schemas/v3/combined.json +9 -12
- package/src/schemas/v3/overlays/baspi4.json +1 -1
- package/src/schemas/v3/overlays/baspi5.json +1 -1
- package/src/schemas/v3/overlays/piq.json +1 -1
- package/src/schemas/v3/overlays/ta6ed6.json +1 -1
- package/src/schemas/v3/overlays/ta6ed6v2.json +1 -1
- package/src/schemas/v3/pdtf-transaction.json +9 -27
- package/src/schemas/v3/skeleton.json +3 -3
- package/src/schemas/v4/Gift.json +4 -4
- package/src/schemas/v4/Offer.json +2 -2
- package/src/schemas/v4/Organisation.json +2 -2
- package/src/schemas/v4/Person.json +2 -2
- package/src/schemas/v4/Property.json +4 -10
- package/src/schemas/v4/Representation.json +3 -3
- package/src/schemas/v4/SellerCapacity.json +2 -2
- package/src/schemas/v4/Title.json +6 -18
- package/src/schemas/v4/Transaction.json +2 -2
- package/src/schemas/v4/TransactionRole.json +3 -3
- package/src/schemas/v4/mapping.json +5 -5
- package/src/utils/generateV4Schemas.js +7 -7
- package/src/utils/v4.js +3 -3
package/package.json
CHANGED
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
"Prospective Buyer",
|
|
278
278
|
"Buyer",
|
|
279
279
|
"Buyer's Conveyancer",
|
|
280
|
-
"
|
|
280
|
+
"Giftor",
|
|
281
281
|
"Estate Agent",
|
|
282
282
|
"Buyer's Agent",
|
|
283
283
|
"Surveyor",
|
|
@@ -663,7 +663,7 @@
|
|
|
663
663
|
{
|
|
664
664
|
"properties": {
|
|
665
665
|
"role": {
|
|
666
|
-
"enum": ["
|
|
666
|
+
"enum": ["Giftor"]
|
|
667
667
|
},
|
|
668
668
|
"offerId": {
|
|
669
669
|
"title": "Reference to an offer in the offers object",
|
|
@@ -672,7 +672,7 @@
|
|
|
672
672
|
},
|
|
673
673
|
"giftDetails": {
|
|
674
674
|
"title": "Details of the gift being made towards the purchase",
|
|
675
|
-
"description": "The terms on which a
|
|
675
|
+
"description": "The terms on which a giftor is contributing funds. These are the questions a conveyancer must resolve before reporting to a lender: whether the money is truly a gift rather than a loan, and whether the donor acquires any interest in or occupation of the property.",
|
|
676
676
|
"type": "object",
|
|
677
677
|
"properties": {
|
|
678
678
|
"amount": {
|
|
@@ -8420,10 +8420,8 @@
|
|
|
8420
8420
|
"ta7Ref": "5.2.1",
|
|
8421
8421
|
"ta7ed5Ref": "5.1.1",
|
|
8422
8422
|
"title": "Year",
|
|
8423
|
-
"
|
|
8424
|
-
|
|
8425
|
-
{ "const": "Not known" }
|
|
8426
|
-
]
|
|
8423
|
+
"type": "string",
|
|
8424
|
+
"pattern": "^(\\d{2}|\\d{4}|Not known)$"
|
|
8427
8425
|
},
|
|
8428
8426
|
"from": {
|
|
8429
8427
|
"title": "To",
|
|
@@ -8449,10 +8447,8 @@
|
|
|
8449
8447
|
"ta7Ref": "5.3.1",
|
|
8450
8448
|
"ta7ed5Ref": "5.2.1",
|
|
8451
8449
|
"title": "Year",
|
|
8452
|
-
"
|
|
8453
|
-
|
|
8454
|
-
{ "const": "Not known" }
|
|
8455
|
-
]
|
|
8450
|
+
"type": "string",
|
|
8451
|
+
"pattern": "^(\\d{2}|\\d{4}|Not known)$"
|
|
8456
8452
|
},
|
|
8457
8453
|
"from": {
|
|
8458
8454
|
"title": "To",
|
|
@@ -25815,7 +25811,8 @@
|
|
|
25815
25811
|
"lastServicedYear": {
|
|
25816
25812
|
"ta6ed6v2Ref": "11.4g",
|
|
25817
25813
|
"title": "In what year was the boiler and heating system last serviced or maintained?",
|
|
25818
|
-
"
|
|
25814
|
+
"type": "string",
|
|
25815
|
+
"pattern": "^(\\d{2}|\\d{4}|Not known)$"
|
|
25819
25816
|
},
|
|
25820
25817
|
"lastServicedReport": {
|
|
25821
25818
|
"ta6ed6v2Ref": "11.4g",
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
"Prospective Buyer",
|
|
266
266
|
"Buyer",
|
|
267
267
|
"Buyer's Conveyancer",
|
|
268
|
-
"
|
|
268
|
+
"Giftor",
|
|
269
269
|
"Estate Agent",
|
|
270
270
|
"Buyer's Agent",
|
|
271
271
|
"Surveyor",
|
|
@@ -614,7 +614,7 @@
|
|
|
614
614
|
"properties": {
|
|
615
615
|
"role": {
|
|
616
616
|
"enum": [
|
|
617
|
-
"
|
|
617
|
+
"Giftor"
|
|
618
618
|
]
|
|
619
619
|
},
|
|
620
620
|
"offerId": {
|
|
@@ -624,7 +624,7 @@
|
|
|
624
624
|
},
|
|
625
625
|
"giftDetails": {
|
|
626
626
|
"title": "Details of the gift being made towards the purchase",
|
|
627
|
-
"description": "The terms on which a
|
|
627
|
+
"description": "The terms on which a giftor is contributing funds. These are the questions a conveyancer must resolve before reporting to a lender: whether the money is truly a gift rather than a loan, and whether the donor acquires any interest in or occupation of the property.",
|
|
628
628
|
"type": "object",
|
|
629
629
|
"properties": {
|
|
630
630
|
"amount": {
|
|
@@ -6818,14 +6818,8 @@
|
|
|
6818
6818
|
"properties": {
|
|
6819
6819
|
"year": {
|
|
6820
6820
|
"title": "Year",
|
|
6821
|
-
"
|
|
6822
|
-
|
|
6823
|
-
"type": "integer"
|
|
6824
|
-
},
|
|
6825
|
-
{
|
|
6826
|
-
"const": "Not known"
|
|
6827
|
-
}
|
|
6828
|
-
]
|
|
6821
|
+
"type": "string",
|
|
6822
|
+
"pattern": "^(\\d{2}|\\d{4}|Not known)$"
|
|
6829
6823
|
},
|
|
6830
6824
|
"from": {
|
|
6831
6825
|
"title": "To",
|
|
@@ -6845,14 +6839,8 @@
|
|
|
6845
6839
|
"properties": {
|
|
6846
6840
|
"year": {
|
|
6847
6841
|
"title": "Year",
|
|
6848
|
-
"
|
|
6849
|
-
|
|
6850
|
-
"type": "integer"
|
|
6851
|
-
},
|
|
6852
|
-
{
|
|
6853
|
-
"const": "Not known"
|
|
6854
|
-
}
|
|
6855
|
-
]
|
|
6842
|
+
"type": "string",
|
|
6843
|
+
"pattern": "^(\\d{2}|\\d{4}|Not known)$"
|
|
6856
6844
|
},
|
|
6857
6845
|
"from": {
|
|
6858
6846
|
"title": "To",
|
|
@@ -20808,14 +20796,8 @@
|
|
|
20808
20796
|
},
|
|
20809
20797
|
"lastServicedYear": {
|
|
20810
20798
|
"title": "In what year was the boiler and heating system last serviced or maintained?",
|
|
20811
|
-
"
|
|
20812
|
-
|
|
20813
|
-
"type": "integer"
|
|
20814
|
-
},
|
|
20815
|
-
{
|
|
20816
|
-
"const": "Not known"
|
|
20817
|
-
}
|
|
20818
|
-
]
|
|
20799
|
+
"type": "string",
|
|
20800
|
+
"pattern": "^(\\d{2}|\\d{4}|Not known)$"
|
|
20819
20801
|
},
|
|
20820
20802
|
"lastServicedReport": {
|
|
20821
20803
|
"title": "Supply a copy of the service report",
|
|
@@ -1072,12 +1072,12 @@
|
|
|
1072
1072
|
},
|
|
1073
1073
|
"lastDecoratedPeriod": {
|
|
1074
1074
|
"externally": {
|
|
1075
|
-
"year":
|
|
1075
|
+
"year": "string",
|
|
1076
1076
|
"from": "string",
|
|
1077
1077
|
"to": "string"
|
|
1078
1078
|
},
|
|
1079
1079
|
"internally": {
|
|
1080
|
-
"year":
|
|
1080
|
+
"year": "string",
|
|
1081
1081
|
"from": "string",
|
|
1082
1082
|
"to": "string"
|
|
1083
1083
|
}
|
|
@@ -2716,7 +2716,7 @@
|
|
|
2716
2716
|
"complianceCertificates": "string",
|
|
2717
2717
|
"inspectionReport": "string",
|
|
2718
2718
|
"inGoodWorkingOrder": "string",
|
|
2719
|
-
"lastServicedYear":
|
|
2719
|
+
"lastServicedYear": "string",
|
|
2720
2720
|
"lastServicedReport": "string",
|
|
2721
2721
|
"otherHeatingFeatures": [
|
|
2722
2722
|
"string"
|
package/src/schemas/v4/Gift.json
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
"$id": "https://trust.propdata.org.uk/schemas/v4/entities/gift.json",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"title": "Gift Entity",
|
|
6
|
-
"description": "A gift of funds towards a purchase, made by a
|
|
6
|
+
"description": "A gift of funds towards a purchase, made by a giftor. Implies the Giftor role.",
|
|
7
7
|
"x-pdtf-source": {
|
|
8
8
|
"packageName": "@pdtf/schemas",
|
|
9
|
-
"packageVersion": "3.6.0-dev.
|
|
9
|
+
"packageVersion": "3.6.0-dev.27",
|
|
10
10
|
"v3SchemaId": "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json",
|
|
11
11
|
"combinedPath": "src/schemas/v3/combined.json",
|
|
12
|
-
"combinedSha256": "
|
|
12
|
+
"combinedSha256": "6858ee25ed5d9c9535cc1ca3e6e57e2749c695306def5d72c9c61a33896ee047"
|
|
13
13
|
},
|
|
14
14
|
"properties": {
|
|
15
15
|
"id": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"giftDetails": {
|
|
34
34
|
"title": "Details of the gift being made towards the purchase",
|
|
35
|
-
"description": "The terms on which a
|
|
35
|
+
"description": "The terms on which a giftor is contributing funds. These are the questions a conveyancer must resolve before reporting to a lender: whether the money is truly a gift rather than a loan, and whether the donor acquires any interest in or occupation of the property.",
|
|
36
36
|
"type": "object",
|
|
37
37
|
"properties": {
|
|
38
38
|
"amount": {
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"description": "An offer made by a prospective buyer in a property transaction.",
|
|
7
7
|
"x-pdtf-source": {
|
|
8
8
|
"packageName": "@pdtf/schemas",
|
|
9
|
-
"packageVersion": "3.6.0-dev.
|
|
9
|
+
"packageVersion": "3.6.0-dev.27",
|
|
10
10
|
"v3SchemaId": "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json",
|
|
11
11
|
"combinedPath": "src/schemas/v3/combined.json",
|
|
12
|
-
"combinedSha256": "
|
|
12
|
+
"combinedSha256": "6858ee25ed5d9c9535cc1ca3e6e57e2749c695306def5d72c9c61a33896ee047"
|
|
13
13
|
},
|
|
14
14
|
"properties": {
|
|
15
15
|
"id": {
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"description": "A legal entity (company, firm, partnership) participating in a property transaction.",
|
|
7
7
|
"x-pdtf-source": {
|
|
8
8
|
"packageName": "@pdtf/schemas",
|
|
9
|
-
"packageVersion": "3.6.0-dev.
|
|
9
|
+
"packageVersion": "3.6.0-dev.27",
|
|
10
10
|
"v3SchemaId": "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json",
|
|
11
11
|
"combinedPath": "src/schemas/v3/combined.json",
|
|
12
|
-
"combinedSha256": "
|
|
12
|
+
"combinedSha256": "6858ee25ed5d9c9535cc1ca3e6e57e2749c695306def5d72c9c61a33896ee047"
|
|
13
13
|
},
|
|
14
14
|
"properties": {
|
|
15
15
|
"id": {
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"description": "A natural person participating in a property transaction — name, contact details, address, verification status.",
|
|
7
7
|
"x-pdtf-source": {
|
|
8
8
|
"packageName": "@pdtf/schemas",
|
|
9
|
-
"packageVersion": "3.6.0-dev.
|
|
9
|
+
"packageVersion": "3.6.0-dev.27",
|
|
10
10
|
"v3SchemaId": "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json",
|
|
11
11
|
"combinedPath": "src/schemas/v3/combined.json",
|
|
12
|
-
"combinedSha256": "
|
|
12
|
+
"combinedSha256": "6858ee25ed5d9c9535cc1ca3e6e57e2749c695306def5d72c9c61a33896ee047"
|
|
13
13
|
},
|
|
14
14
|
"properties": {
|
|
15
15
|
"name": {
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"description": "Physical and environmental facts about a property — address, construction, fixtures, services, searches, documents. Excludes ownership, titles, and participants.",
|
|
7
7
|
"x-pdtf-source": {
|
|
8
8
|
"packageName": "@pdtf/schemas",
|
|
9
|
-
"packageVersion": "3.6.0-dev.
|
|
9
|
+
"packageVersion": "3.6.0-dev.27",
|
|
10
10
|
"v3SchemaId": "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json",
|
|
11
11
|
"combinedPath": "src/schemas/v3/combined.json",
|
|
12
|
-
"combinedSha256": "
|
|
12
|
+
"combinedSha256": "6858ee25ed5d9c9535cc1ca3e6e57e2749c695306def5d72c9c61a33896ee047"
|
|
13
13
|
},
|
|
14
14
|
"properties": {
|
|
15
15
|
"address": {
|
|
@@ -14578,14 +14578,8 @@
|
|
|
14578
14578
|
},
|
|
14579
14579
|
"lastServicedYear": {
|
|
14580
14580
|
"title": "In what year was the boiler and heating system last serviced or maintained?",
|
|
14581
|
-
"
|
|
14582
|
-
|
|
14583
|
-
"type": "integer"
|
|
14584
|
-
},
|
|
14585
|
-
{
|
|
14586
|
-
"const": "Not known"
|
|
14587
|
-
}
|
|
14588
|
-
]
|
|
14581
|
+
"type": "string",
|
|
14582
|
+
"pattern": "^(\\d{2}|\\d{4}|Not known)$"
|
|
14589
14583
|
},
|
|
14590
14584
|
"lastServicedReport": {
|
|
14591
14585
|
"title": "Supply a copy of the service report",
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"description": "A professional representation relationship — one party instructed by another, e.g. a conveyancer acting for a seller. One entity per (representative, represented party) pair: a conveyancer instructed jointly by two sellers yields two, and sellers who instruct separate conveyancers yield one each.",
|
|
7
7
|
"x-pdtf-source": {
|
|
8
8
|
"packageName": "@pdtf/schemas",
|
|
9
|
-
"packageVersion": "3.6.0-dev.
|
|
9
|
+
"packageVersion": "3.6.0-dev.27",
|
|
10
10
|
"v3SchemaId": "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json",
|
|
11
11
|
"combinedPath": "src/schemas/v3/combined.json",
|
|
12
|
-
"combinedSha256": "
|
|
12
|
+
"combinedSha256": "6858ee25ed5d9c9535cc1ca3e6e57e2749c695306def5d72c9c61a33896ee047"
|
|
13
13
|
},
|
|
14
14
|
"properties": {
|
|
15
15
|
"id": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"Prospective Buyer",
|
|
40
40
|
"Buyer",
|
|
41
41
|
"Buyer's Conveyancer",
|
|
42
|
-
"
|
|
42
|
+
"Giftor",
|
|
43
43
|
"Estate Agent",
|
|
44
44
|
"Buyer's Agent",
|
|
45
45
|
"Surveyor",
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"description": "The legal capacity in which a seller is selling a given title. Derived from the V3 participants 'Seller' branch (sellersCapacity, dateBecameOwnerOrAuthority).",
|
|
7
7
|
"x-pdtf-source": {
|
|
8
8
|
"packageName": "@pdtf/schemas",
|
|
9
|
-
"packageVersion": "3.6.0-dev.
|
|
9
|
+
"packageVersion": "3.6.0-dev.27",
|
|
10
10
|
"v3SchemaId": "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json",
|
|
11
11
|
"combinedPath": "src/schemas/v3/combined.json",
|
|
12
|
-
"combinedSha256": "
|
|
12
|
+
"combinedSha256": "6858ee25ed5d9c9535cc1ca3e6e57e2749c695306def5d72c9c61a33896ee047"
|
|
13
13
|
},
|
|
14
14
|
"properties": {
|
|
15
15
|
"id": {
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"description": "HM Land Registry title — register extract, tenure type, and legal interest details for a single title number.",
|
|
7
7
|
"x-pdtf-source": {
|
|
8
8
|
"packageName": "@pdtf/schemas",
|
|
9
|
-
"packageVersion": "3.6.0-dev.
|
|
9
|
+
"packageVersion": "3.6.0-dev.27",
|
|
10
10
|
"v3SchemaId": "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json",
|
|
11
11
|
"combinedPath": "src/schemas/v3/combined.json",
|
|
12
|
-
"combinedSha256": "
|
|
12
|
+
"combinedSha256": "6858ee25ed5d9c9535cc1ca3e6e57e2749c695306def5d72c9c61a33896ee047"
|
|
13
13
|
},
|
|
14
14
|
"properties": {
|
|
15
15
|
"titleNumber": {
|
|
@@ -12564,14 +12564,8 @@
|
|
|
12564
12564
|
"properties": {
|
|
12565
12565
|
"year": {
|
|
12566
12566
|
"title": "Year",
|
|
12567
|
-
"
|
|
12568
|
-
|
|
12569
|
-
"type": "integer"
|
|
12570
|
-
},
|
|
12571
|
-
{
|
|
12572
|
-
"const": "Not known"
|
|
12573
|
-
}
|
|
12574
|
-
]
|
|
12567
|
+
"type": "string",
|
|
12568
|
+
"pattern": "^(\\d{2}|\\d{4}|Not known)$"
|
|
12575
12569
|
},
|
|
12576
12570
|
"from": {
|
|
12577
12571
|
"title": "To",
|
|
@@ -12593,14 +12587,8 @@
|
|
|
12593
12587
|
"properties": {
|
|
12594
12588
|
"year": {
|
|
12595
12589
|
"title": "Year",
|
|
12596
|
-
"
|
|
12597
|
-
|
|
12598
|
-
"type": "integer"
|
|
12599
|
-
},
|
|
12600
|
-
{
|
|
12601
|
-
"const": "Not known"
|
|
12602
|
-
}
|
|
12603
|
-
]
|
|
12590
|
+
"type": "string",
|
|
12591
|
+
"pattern": "^(\\d{2}|\\d{4}|Not known)$"
|
|
12604
12592
|
},
|
|
12605
12593
|
"from": {
|
|
12606
12594
|
"title": "To",
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"description": "Transaction-level metadata — status, milestones, chain, contracts, offers, enquiries, and sale context.",
|
|
7
7
|
"x-pdtf-source": {
|
|
8
8
|
"packageName": "@pdtf/schemas",
|
|
9
|
-
"packageVersion": "3.6.0-dev.
|
|
9
|
+
"packageVersion": "3.6.0-dev.27",
|
|
10
10
|
"v3SchemaId": "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json",
|
|
11
11
|
"combinedPath": "src/schemas/v3/combined.json",
|
|
12
|
-
"combinedSha256": "
|
|
12
|
+
"combinedSha256": "6858ee25ed5d9c9535cc1ca3e6e57e2749c695306def5d72c9c61a33896ee047"
|
|
13
13
|
},
|
|
14
14
|
"properties": {
|
|
15
15
|
"transactionId": {
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"description": "A party's role in a transaction, where no more specific relationship credential applies. Asserts participation in a role, not a relationship to another named party.",
|
|
7
7
|
"x-pdtf-source": {
|
|
8
8
|
"packageName": "@pdtf/schemas",
|
|
9
|
-
"packageVersion": "3.6.0-dev.
|
|
9
|
+
"packageVersion": "3.6.0-dev.27",
|
|
10
10
|
"v3SchemaId": "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json",
|
|
11
11
|
"combinedPath": "src/schemas/v3/combined.json",
|
|
12
|
-
"combinedSha256": "
|
|
12
|
+
"combinedSha256": "6858ee25ed5d9c9535cc1ca3e6e57e2749c695306def5d72c9c61a33896ee047"
|
|
13
13
|
},
|
|
14
14
|
"properties": {
|
|
15
15
|
"id": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"Prospective Buyer",
|
|
34
34
|
"Buyer",
|
|
35
35
|
"Buyer's Conveyancer",
|
|
36
|
-
"
|
|
36
|
+
"Giftor",
|
|
37
37
|
"Estate Agent",
|
|
38
38
|
"Buyer's Agent",
|
|
39
39
|
"Surveyor",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"generator": "src/utils/generateV4Schemas.js",
|
|
6
6
|
"source": {
|
|
7
7
|
"packageName": "@pdtf/schemas",
|
|
8
|
-
"packageVersion": "3.6.0-dev.
|
|
8
|
+
"packageVersion": "3.6.0-dev.27",
|
|
9
9
|
"v3SchemaId": "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json",
|
|
10
10
|
"combinedPath": "src/schemas/v3/combined.json",
|
|
11
|
-
"combinedSha256": "
|
|
11
|
+
"combinedSha256": "6858ee25ed5d9c9535cc1ca3e6e57e2749c695306def5d72c9c61a33896ee047"
|
|
12
12
|
},
|
|
13
13
|
"entities": {
|
|
14
14
|
"Property": {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"roleImpliedByCredential": {
|
|
79
79
|
"SellerCapacity": "Seller",
|
|
80
80
|
"Offer": "Buyer",
|
|
81
|
-
"Gift": "
|
|
81
|
+
"Gift": "Giftor"
|
|
82
82
|
},
|
|
83
83
|
"strippedKeySuffixes": [
|
|
84
84
|
"Ref",
|
|
@@ -844,7 +844,7 @@
|
|
|
844
844
|
"notes": "V3 does not tie a seller's capacity to a particular title, so the optional `title` reference is left unset. A transaction selling more than one title therefore yields a capacity scoped to the transaction, not to a title."
|
|
845
845
|
},
|
|
846
846
|
"TransactionRole": {
|
|
847
|
-
"description": "A party's role where no more specific relationship credential applies — Lender, Landlord, Tenant,
|
|
847
|
+
"description": "A party's role where no more specific relationship credential applies — Lender, Landlord, Tenant, Giftor, Platform Support — or where the specific relationship is not yet established. Emitted so that every participant carrying a role has exactly one credential embodying it.",
|
|
848
848
|
"source": {
|
|
849
849
|
"entity": "Transaction",
|
|
850
850
|
"pointer": "/participants/{index}"
|
|
@@ -1067,7 +1067,7 @@
|
|
|
1067
1067
|
"cardinality": "many",
|
|
1068
1068
|
"matchOn": "/donor"
|
|
1069
1069
|
},
|
|
1070
|
-
"impliesRole": "
|
|
1070
|
+
"impliesRole": "Giftor"
|
|
1071
1071
|
},
|
|
1072
1072
|
{
|
|
1073
1073
|
"id": "credential.representation",
|
|
@@ -197,7 +197,7 @@ const CREDENTIAL_ENTITIES = [
|
|
|
197
197
|
/**
|
|
198
198
|
* Role is not stored on the participant. For three credential types it is
|
|
199
199
|
* implied 1:1 by the type itself — V3 puts sellersCapacity only on the Seller
|
|
200
|
-
* branch, giftDetails only on
|
|
200
|
+
* branch, giftDetails only on Giftor, and offerId on Buyer (and Giftor,
|
|
201
201
|
* whose offer link lives on the Gift credential instead, keeping this 1:1).
|
|
202
202
|
* Representation and TransactionRole each span several roles, so they carry
|
|
203
203
|
* role as their own discriminator: "what kind of representation is this" is a
|
|
@@ -206,7 +206,7 @@ const CREDENTIAL_ENTITIES = [
|
|
|
206
206
|
const ROLE_IMPLIED_BY_CREDENTIAL = {
|
|
207
207
|
SellerCapacity: "Seller",
|
|
208
208
|
Offer: "Buyer",
|
|
209
|
-
Gift: "
|
|
209
|
+
Gift: "Giftor",
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
// ---------------------------------------------------------------------------
|
|
@@ -708,7 +708,7 @@ const generateTransactionRole = () => {
|
|
|
708
708
|
// The catch-all relationship credential. Representation, SellerCapacity and
|
|
709
709
|
// Offer each carry a specific relationship; this one asserts only that a
|
|
710
710
|
// party takes a given role in a transaction, which is all V3 records for a
|
|
711
|
-
// Lender, Landlord, Tenant,
|
|
711
|
+
// Lender, Landlord, Tenant, Giftor or Platform Support. It is also what
|
|
712
712
|
// covers a party whose specific relationship is not yet established — a
|
|
713
713
|
// conveyancer instructed but with no actingFor recorded, say — so that every
|
|
714
714
|
// participant carrying a role has exactly one credential embodying it.
|
|
@@ -742,7 +742,7 @@ const generateGift = () => {
|
|
|
742
742
|
// is truly a gift rather than a loan, and whether the donor acquires an
|
|
743
743
|
// interest in or occupation of the property, are what a conveyancer must
|
|
744
744
|
// resolve before reporting to a lender. Separately revocable, and the role
|
|
745
|
-
// "
|
|
745
|
+
// "Giftor" is implied by the credential's existence.
|
|
746
746
|
const giftBranch =
|
|
747
747
|
(combined.properties.participants.items.oneOf || []).find(
|
|
748
748
|
(b) => b.properties?.giftDetails
|
|
@@ -751,7 +751,7 @@ const generateGift = () => {
|
|
|
751
751
|
return makeSchema(
|
|
752
752
|
"gift",
|
|
753
753
|
"Gift Entity",
|
|
754
|
-
"A gift of funds towards a purchase, made by a
|
|
754
|
+
"A gift of funds towards a purchase, made by a giftor. Implies the Giftor role.",
|
|
755
755
|
{
|
|
756
756
|
id: urnRef("Gift URN", "Uniform Resource Name identifier for the gift"),
|
|
757
757
|
donor: didRef(
|
|
@@ -1077,7 +1077,7 @@ const buildRules = () => [
|
|
|
1077
1077
|
entityPointer: "",
|
|
1078
1078
|
keys: { mode: "include", values: ["giftDetails", "offerId"] },
|
|
1079
1079
|
instance: { cardinality: "many", matchOn: "/donor" },
|
|
1080
|
-
impliesRole: "
|
|
1080
|
+
impliesRole: "Giftor",
|
|
1081
1081
|
},
|
|
1082
1082
|
{
|
|
1083
1083
|
id: "credential.representation",
|
|
@@ -1300,7 +1300,7 @@ const mapping = {
|
|
|
1300
1300
|
},
|
|
1301
1301
|
TransactionRole: {
|
|
1302
1302
|
description:
|
|
1303
|
-
"A party's role where no more specific relationship credential applies — Lender, Landlord, Tenant,
|
|
1303
|
+
"A party's role where no more specific relationship credential applies — Lender, Landlord, Tenant, Giftor, Platform Support — or where the specific relationship is not yet established. Emitted so that every participant carrying a role has exactly one credential embodying it.",
|
|
1304
1304
|
source: { entity: "Transaction", pointer: "/participants/{index}" },
|
|
1305
1305
|
emitWhen:
|
|
1306
1306
|
"/role is present and no other credential names this participant as its role-bearer",
|
package/src/utils/v4.js
CHANGED
|
@@ -322,7 +322,7 @@ const decompose = (v3, { idFactory } = {}) => {
|
|
|
322
322
|
const ROLE_IMPLIED_BY_CREDENTIAL = {
|
|
323
323
|
SellerCapacity: "Seller",
|
|
324
324
|
Offer: "Buyer",
|
|
325
|
-
Gift: "
|
|
325
|
+
Gift: "Giftor",
|
|
326
326
|
};
|
|
327
327
|
|
|
328
328
|
/**
|
|
@@ -615,7 +615,7 @@ const projectRelationships = (
|
|
|
615
615
|
|
|
616
616
|
// Likewise a buyer's role is embodied by their offer. An offer that no
|
|
617
617
|
// participant references stays transaction data: Offer requires a buyer.
|
|
618
|
-
if (entry.giftDetails !== undefined || entry.role === "
|
|
618
|
+
if (entry.giftDetails !== undefined || entry.role === "Giftor") {
|
|
619
619
|
Gift.push({
|
|
620
620
|
id: ids.gift(entry.participant),
|
|
621
621
|
donor: entry.participant,
|
|
@@ -637,7 +637,7 @@ const projectRelationships = (
|
|
|
637
637
|
|
|
638
638
|
// Anyone left carrying a role that no specific credential embodies gets the
|
|
639
639
|
// catch-all, so every participant with a role has exactly one credential
|
|
640
|
-
// asserting it. That covers Lender, Landlord, Tenant,
|
|
640
|
+
// asserting it. That covers Lender, Landlord, Tenant, Giftor and Platform
|
|
641
641
|
// Support, which V3 records as a role and nothing more, and also a party
|
|
642
642
|
// whose specific relationship is not yet established.
|
|
643
643
|
const hasSpecificCredential = new Set([
|