@pdtf/schemas 3.6.0-dev.20 → 3.6.0-dev.21

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.
@@ -0,0 +1,67 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://trust.propdata.org.uk/schemas/v4/entities/representation.json",
4
+ "type": "object",
5
+ "title": "Representation Entity",
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
+ "x-pdtf-source": {
8
+ "packageName": "@pdtf/schemas",
9
+ "packageVersion": "3.6.0-dev.21",
10
+ "v3SchemaId": "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json",
11
+ "combinedPath": "src/schemas/v3/combined.json",
12
+ "combinedSha256": "1c6c5812f73a36d3674d5fb7b5eb1f6ce524d09c4195e281e078b9e41ea94f6d"
13
+ },
14
+ "properties": {
15
+ "id": {
16
+ "title": "Representation URN",
17
+ "description": "Uniform Resource Name identifier for the representation",
18
+ "type": "string",
19
+ "pattern": "^urn:[a-z0-9][a-z0-9-]{0,31}:[a-zA-Z0-9._~:/?#\\[\\]@!$&'()*+,;=-]+$"
20
+ },
21
+ "representative": {
22
+ "title": "Representative Reference",
23
+ "description": "DID referencing the Person or Organisation who is instructed",
24
+ "type": "string",
25
+ "pattern": "^did:[a-z0-9]+:(?:(?:[a-zA-Z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[a-zA-Z0-9._-]|%[0-9A-Fa-f]{2})+$"
26
+ },
27
+ "representedParty": {
28
+ "title": "Represented Party Reference",
29
+ "description": "DID referencing the Person or Organisation who instructed them",
30
+ "type": "string",
31
+ "pattern": "^did:[a-z0-9]+:(?:(?:[a-zA-Z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[a-zA-Z0-9._-]|%[0-9A-Fa-f]{2})+$"
32
+ },
33
+ "role": {
34
+ "title": "Role",
35
+ "type": "string",
36
+ "enum": [
37
+ "Seller",
38
+ "Seller's Conveyancer",
39
+ "Prospective Buyer",
40
+ "Buyer",
41
+ "Buyer's Conveyancer",
42
+ "Gift Donor",
43
+ "Estate Agent",
44
+ "Buyer's Agent",
45
+ "Surveyor",
46
+ "Mortgage Broker",
47
+ "Lender",
48
+ "Landlord",
49
+ "Tenant",
50
+ "Platform Support"
51
+ ],
52
+ "description": "The kind of representation this is — a property of the representation, not a duplicated participant attribute. The representative's firm is on the transaction roster."
53
+ },
54
+ "transaction": {
55
+ "title": "Transaction Reference",
56
+ "description": "DID referencing the Transaction entity",
57
+ "type": "string",
58
+ "pattern": "^did:[a-z0-9]+:(?:(?:[a-zA-Z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[a-zA-Z0-9._-]|%[0-9A-Fa-f]{2})+$"
59
+ }
60
+ },
61
+ "required": [
62
+ "representative",
63
+ "representedParty",
64
+ "role",
65
+ "transaction"
66
+ ]
67
+ }
@@ -0,0 +1,193 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://trust.propdata.org.uk/schemas/v4/entities/sellerCapacity.json",
4
+ "type": "object",
5
+ "title": "Seller Capacity Entity",
6
+ "description": "The legal capacity in which a seller is selling a given title. Derived from the V3 participants 'Seller' branch (sellersCapacity, dateBecameOwnerOrAuthority).",
7
+ "x-pdtf-source": {
8
+ "packageName": "@pdtf/schemas",
9
+ "packageVersion": "3.6.0-dev.21",
10
+ "v3SchemaId": "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json",
11
+ "combinedPath": "src/schemas/v3/combined.json",
12
+ "combinedSha256": "1c6c5812f73a36d3674d5fb7b5eb1f6ce524d09c4195e281e078b9e41ea94f6d"
13
+ },
14
+ "properties": {
15
+ "id": {
16
+ "title": "Seller Capacity URN",
17
+ "description": "Uniform Resource Name identifier for the seller capacity",
18
+ "type": "string",
19
+ "pattern": "^urn:[a-z0-9][a-z0-9-]{0,31}:[a-zA-Z0-9._~:/?#\\[\\]@!$&'()*+,;=-]+$"
20
+ },
21
+ "seller": {
22
+ "title": "Seller Reference",
23
+ "description": "DID referencing the Person or Organisation acting as seller",
24
+ "type": "string",
25
+ "pattern": "^did:[a-z0-9]+:(?:(?:[a-zA-Z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[a-zA-Z0-9._-]|%[0-9A-Fa-f]{2})+$"
26
+ },
27
+ "title": {
28
+ "title": "Title Reference",
29
+ "description": "URN referencing the Title entity being sold",
30
+ "type": "string",
31
+ "pattern": "^urn:[a-z0-9][a-z0-9-]{0,31}:[a-zA-Z0-9._~:/?#\\[\\]@!$&'()*+,;=-]+$"
32
+ },
33
+ "sellersCapacity": {
34
+ "title": "Capacity in which the Seller sells",
35
+ "ta6ed6Title": "What is your role in the sale?",
36
+ "ta6ed6v2Title": "What is your role in the sale?",
37
+ "type": "object",
38
+ "properties": {
39
+ "capacity": {
40
+ "type": "string",
41
+ "title": "",
42
+ "enum": [
43
+ "Legal Owner",
44
+ "Personal Representative for a Deceased Owner",
45
+ "Under Power of Attorney",
46
+ "Mortgagee in Possession",
47
+ "Company Director",
48
+ "Company Secretary",
49
+ "Trustee",
50
+ "Assistant",
51
+ "Other"
52
+ ],
53
+ "ta6ed6Enum": [
54
+ "Legal Owner",
55
+ "Company Director",
56
+ "Personal Representative for a Deceased Owner",
57
+ "Under Power of Attorney",
58
+ "Trustee"
59
+ ],
60
+ "ta6ed6v2Enum": [
61
+ "Legal Owner",
62
+ "Company Director",
63
+ "Personal Representative for a Deceased Owner",
64
+ "Under Power of Attorney",
65
+ "Trustee"
66
+ ],
67
+ "ta6ed6EnumNames": {
68
+ "Legal Owner": "Seller (Private individual)",
69
+ "Company Director": "Seller (Company)",
70
+ "Personal Representative for a Deceased Owner": "Executor(s)/Administrator(s)",
71
+ "Under Power of Attorney": "Attorney(s)",
72
+ "Trustee": "Trustee(s)"
73
+ },
74
+ "ta6ed6v2EnumNames": {
75
+ "Legal Owner": "Seller (Private individual)",
76
+ "Company Director": "Seller (Company)",
77
+ "Personal Representative for a Deceased Owner": "Executor(s)/Administrator(s)",
78
+ "Under Power of Attorney": "Attorney(s)",
79
+ "Trustee": "Trustee(s)"
80
+ }
81
+ }
82
+ },
83
+ "discriminator": {
84
+ "propertyName": "capacity"
85
+ },
86
+ "oneOf": [
87
+ {
88
+ "properties": {
89
+ "capacity": {
90
+ "enum": [
91
+ "Legal Owner",
92
+ "Mortgagee in Possession"
93
+ ]
94
+ },
95
+ "sellersCapacityDetails": {
96
+ "title": "Please provide details if applicable",
97
+ "description": "(for example if the sellers names do not match the legal owners on the title deed due to change of name on marriage)",
98
+ "type": "string"
99
+ },
100
+ "attachments": {
101
+ "title": "Attachments",
102
+ "type": "string",
103
+ "enum": [
104
+ "Attached",
105
+ "To follow"
106
+ ]
107
+ }
108
+ }
109
+ },
110
+ {
111
+ "properties": {
112
+ "capacity": {
113
+ "enum": [
114
+ "Personal Representative for a Deceased Owner",
115
+ "Under Power of Attorney",
116
+ "Trustee",
117
+ "Assistant",
118
+ "Other"
119
+ ]
120
+ },
121
+ "sellersCapacityDetails": {
122
+ "title": "Please provide details and provide any probate, grant of representation or power of attorney ",
123
+ "type": "string"
124
+ },
125
+ "attachments": {
126
+ "title": "Attachments",
127
+ "type": "string",
128
+ "enum": [
129
+ "Attached",
130
+ "To follow"
131
+ ]
132
+ }
133
+ }
134
+ },
135
+ {
136
+ "properties": {
137
+ "capacity": {
138
+ "enum": [
139
+ "Company Director",
140
+ "Company Secretary"
141
+ ]
142
+ },
143
+ "sellersCapacityDetails": {
144
+ "title": "Please provide details and provide any probate, grant of representation or power of attorney ",
145
+ "type": "string"
146
+ },
147
+ "attachments": {
148
+ "title": "Attachments",
149
+ "type": "string",
150
+ "enum": [
151
+ "Attached",
152
+ "To follow"
153
+ ]
154
+ },
155
+ "companyName": {
156
+ "title": "Company name",
157
+ "type": "string"
158
+ },
159
+ "companyNumber": {
160
+ "title": "Company number",
161
+ "type": "string"
162
+ },
163
+ "directorOrAuthorisedPerson": {
164
+ "title": "Director/authorised person",
165
+ "type": "string"
166
+ },
167
+ "countryOfIncorporation": {
168
+ "title": "Country of incorporation",
169
+ "type": "string"
170
+ }
171
+ }
172
+ }
173
+ ]
174
+ },
175
+ "dateBecameOwnerOrAuthority": {
176
+ "title": "Date the seller became owner or was authorised to sell",
177
+ "ta6ed6Title": "When did you become the owner of, or get authority to sell, the property? (DD/MM/YYYY)",
178
+ "ta6ed6v2Title": "When did you become the owner of, or get authority to sell, the property? (DD/MM/YYYY)",
179
+ "type": "string",
180
+ "format": "date"
181
+ },
182
+ "transaction": {
183
+ "title": "Transaction Reference",
184
+ "description": "DID referencing the Transaction entity",
185
+ "type": "string",
186
+ "pattern": "^did:[a-z0-9]+:(?:(?:[a-zA-Z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[a-zA-Z0-9._-]|%[0-9A-Fa-f]{2})+$"
187
+ }
188
+ },
189
+ "required": [
190
+ "seller",
191
+ "transaction"
192
+ ]
193
+ }