@pdtf/schemas 3.5.1-8 → 3.6.0-1
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/.claude/settings.local.json +6 -1
- package/package.json +1 -1
- package/src/schemas/v3/combined.json +124 -8
- package/src/schemas/v3/compactSkeleton.txt +17 -1
- package/src/schemas/v3/overlays/ta7.json +9 -1
- package/src/schemas/v3/pdtf-transaction.json +130 -8
- package/src/schemas/v3/skeleton.json +34 -2
- package/src/tests/v3/enquiries.test.js +1096 -0
- package/src/utils/extractOverlay.js +37 -13
|
@@ -30,7 +30,12 @@
|
|
|
30
30
|
"Bash(while read file)",
|
|
31
31
|
"Bash(for:*)",
|
|
32
32
|
"Bash(do echo \"=== $file ===\")",
|
|
33
|
-
"Bash(do echo \"$file:\")"
|
|
33
|
+
"Bash(do echo \"$file:\")",
|
|
34
|
+
"Bash(npm run proposal:pdf:*)",
|
|
35
|
+
"Bash(base64:*)",
|
|
36
|
+
"Bash(gh issue view:*)",
|
|
37
|
+
"Read(//Users/ed/.claude/**)",
|
|
38
|
+
"Bash(npm init:*)"
|
|
34
39
|
],
|
|
35
40
|
"deny": []
|
|
36
41
|
}
|
package/package.json
CHANGED
|
@@ -4246,14 +4246,22 @@
|
|
|
4246
4246
|
"properties": {
|
|
4247
4247
|
"typeOfLeasehold": {
|
|
4248
4248
|
"ta7Ref": "1.1",
|
|
4249
|
-
"title": "
|
|
4250
|
-
"
|
|
4251
|
-
"
|
|
4252
|
-
"
|
|
4253
|
-
"
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4249
|
+
"title": "Type of leasehold property",
|
|
4250
|
+
"type": "object",
|
|
4251
|
+
"ta7Required": ["leaseholdType"],
|
|
4252
|
+
"properties": {
|
|
4253
|
+
"leaseholdType": {
|
|
4254
|
+
"ta7Ref": "1.1.1",
|
|
4255
|
+
"title": "What type of leasehold property does the seller own?",
|
|
4256
|
+
"description": "'Flat'includes maisonette and apartment.",
|
|
4257
|
+
"type": "string",
|
|
4258
|
+
"enum": [
|
|
4259
|
+
"Flat",
|
|
4260
|
+
"Shared ownership",
|
|
4261
|
+
"Long leasehold house"
|
|
4262
|
+
]
|
|
4263
|
+
}
|
|
4264
|
+
}
|
|
4257
4265
|
},
|
|
4258
4266
|
"sharedOwnership": {
|
|
4259
4267
|
"baspi4Ref": "A1.3.1",
|
|
@@ -41844,6 +41852,114 @@
|
|
|
41844
41852
|
"required": ["amount", "currency", "status"]
|
|
41845
41853
|
}
|
|
41846
41854
|
}
|
|
41855
|
+
},
|
|
41856
|
+
"enquiries": {
|
|
41857
|
+
"title": "Property transaction enquiries between conveyancers",
|
|
41858
|
+
"type": "object",
|
|
41859
|
+
"propertyNames": {
|
|
41860
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:+-]*$"
|
|
41861
|
+
},
|
|
41862
|
+
"patternProperties": {
|
|
41863
|
+
".*": {
|
|
41864
|
+
"type": "object",
|
|
41865
|
+
"properties": {
|
|
41866
|
+
"subject": {
|
|
41867
|
+
"description": "The subject or topic of the enquiry",
|
|
41868
|
+
"type": "string"
|
|
41869
|
+
},
|
|
41870
|
+
"status": {
|
|
41871
|
+
"type": "string",
|
|
41872
|
+
"enum": [
|
|
41873
|
+
"pending",
|
|
41874
|
+
"open",
|
|
41875
|
+
"resolved",
|
|
41876
|
+
"resolvedWithCondition",
|
|
41877
|
+
"withdrawn"
|
|
41878
|
+
]
|
|
41879
|
+
},
|
|
41880
|
+
"messages": {
|
|
41881
|
+
"description": "Messages exchanged regarding this enquiry",
|
|
41882
|
+
"type": "object",
|
|
41883
|
+
"propertyNames": {
|
|
41884
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:+-]*$"
|
|
41885
|
+
},
|
|
41886
|
+
"patternProperties": {
|
|
41887
|
+
".*": {
|
|
41888
|
+
"type": "object",
|
|
41889
|
+
"properties": {
|
|
41890
|
+
"datetime": {
|
|
41891
|
+
"type": "string",
|
|
41892
|
+
"format": "date-time"
|
|
41893
|
+
},
|
|
41894
|
+
"originatorRole": {
|
|
41895
|
+
"type": "string",
|
|
41896
|
+
"enum": [
|
|
41897
|
+
"Seller",
|
|
41898
|
+
"Seller's Conveyancer",
|
|
41899
|
+
"Buyer",
|
|
41900
|
+
"Buyer's Conveyancer",
|
|
41901
|
+
"Estate Agent",
|
|
41902
|
+
"Buyer's Agent",
|
|
41903
|
+
"Surveyor",
|
|
41904
|
+
"Mortgage Broker",
|
|
41905
|
+
"Lender"
|
|
41906
|
+
]
|
|
41907
|
+
},
|
|
41908
|
+
"destinationRole": {
|
|
41909
|
+
"type": "string",
|
|
41910
|
+
"enum": [
|
|
41911
|
+
"Seller",
|
|
41912
|
+
"Seller's Conveyancer",
|
|
41913
|
+
"Buyer",
|
|
41914
|
+
"Buyer's Conveyancer",
|
|
41915
|
+
"Estate Agent",
|
|
41916
|
+
"Buyer's Agent",
|
|
41917
|
+
"Surveyor",
|
|
41918
|
+
"Mortgage Broker",
|
|
41919
|
+
"Lender"
|
|
41920
|
+
]
|
|
41921
|
+
},
|
|
41922
|
+
"messageText": {
|
|
41923
|
+
"type": "string"
|
|
41924
|
+
}
|
|
41925
|
+
},
|
|
41926
|
+
"required": [
|
|
41927
|
+
"datetime",
|
|
41928
|
+
"originatorRole",
|
|
41929
|
+
"destinationRole",
|
|
41930
|
+
"messageText"
|
|
41931
|
+
]
|
|
41932
|
+
}
|
|
41933
|
+
}
|
|
41934
|
+
}
|
|
41935
|
+
},
|
|
41936
|
+
"required": ["subject", "status", "messages"],
|
|
41937
|
+
"discriminator": {
|
|
41938
|
+
"propertyName": "status"
|
|
41939
|
+
},
|
|
41940
|
+
"oneOf": [
|
|
41941
|
+
{
|
|
41942
|
+
"properties": {
|
|
41943
|
+
"status": {
|
|
41944
|
+
"const": "resolvedWithCondition"
|
|
41945
|
+
},
|
|
41946
|
+
"resolutionCondition": {
|
|
41947
|
+
"description": "Condition that must be met for the enquiry to be fully resolved",
|
|
41948
|
+
"type": "string"
|
|
41949
|
+
}
|
|
41950
|
+
},
|
|
41951
|
+
"required": ["resolutionCondition"]
|
|
41952
|
+
},
|
|
41953
|
+
{
|
|
41954
|
+
"properties": {
|
|
41955
|
+
"status": {
|
|
41956
|
+
"enum": ["pending", "open", "resolved", "withdrawn"]
|
|
41957
|
+
}
|
|
41958
|
+
}
|
|
41959
|
+
}
|
|
41960
|
+
]
|
|
41961
|
+
}
|
|
41962
|
+
}
|
|
41847
41963
|
}
|
|
41848
41964
|
}
|
|
41849
41965
|
}
|
|
@@ -424,6 +424,7 @@
|
|
|
424
424
|
capacity
|
|
425
425
|
leaseholdInformation
|
|
426
426
|
typeOfLeasehold
|
|
427
|
+
leaseholdType
|
|
427
428
|
sharedOwnership
|
|
428
429
|
isSharedOwnership
|
|
429
430
|
sharedOwnershipPercentage
|
|
@@ -4076,4 +4077,19 @@
|
|
|
4076
4077
|
started
|
|
4077
4078
|
expected
|
|
4078
4079
|
completed
|
|
4079
|
-
offers
|
|
4080
|
+
offers{*}
|
|
4081
|
+
amount
|
|
4082
|
+
currency
|
|
4083
|
+
status
|
|
4084
|
+
inclusions[]
|
|
4085
|
+
exclusions[]
|
|
4086
|
+
conditions[]
|
|
4087
|
+
enquiries{*}
|
|
4088
|
+
subject
|
|
4089
|
+
status
|
|
4090
|
+
messages{*}
|
|
4091
|
+
datetime
|
|
4092
|
+
originatorRole
|
|
4093
|
+
destinationRole
|
|
4094
|
+
messageText
|
|
4095
|
+
resolutionCondition
|
|
@@ -86,7 +86,15 @@
|
|
|
86
86
|
],
|
|
87
87
|
"properties": {
|
|
88
88
|
"typeOfLeasehold": {
|
|
89
|
-
"ta7Ref": "1.1"
|
|
89
|
+
"ta7Ref": "1.1",
|
|
90
|
+
"required": [
|
|
91
|
+
"leaseholdType"
|
|
92
|
+
],
|
|
93
|
+
"properties": {
|
|
94
|
+
"leaseholdType": {
|
|
95
|
+
"ta7Ref": "1.1.1"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
90
98
|
},
|
|
91
99
|
"sharedOwnership": {
|
|
92
100
|
"required": [
|
|
@@ -3517,14 +3517,20 @@
|
|
|
3517
3517
|
"type": "object",
|
|
3518
3518
|
"properties": {
|
|
3519
3519
|
"typeOfLeasehold": {
|
|
3520
|
-
"title": "
|
|
3521
|
-
"
|
|
3522
|
-
"
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3520
|
+
"title": "Type of leasehold property",
|
|
3521
|
+
"type": "object",
|
|
3522
|
+
"properties": {
|
|
3523
|
+
"leaseholdType": {
|
|
3524
|
+
"title": "What type of leasehold property does the seller own?",
|
|
3525
|
+
"description": "'Flat'includes maisonette and apartment.",
|
|
3526
|
+
"type": "string",
|
|
3527
|
+
"enum": [
|
|
3528
|
+
"Flat",
|
|
3529
|
+
"Shared ownership",
|
|
3530
|
+
"Long leasehold house"
|
|
3531
|
+
]
|
|
3532
|
+
}
|
|
3533
|
+
}
|
|
3528
3534
|
},
|
|
3529
3535
|
"sharedOwnership": {
|
|
3530
3536
|
"type": "object",
|
|
@@ -37388,6 +37394,122 @@
|
|
|
37388
37394
|
]
|
|
37389
37395
|
}
|
|
37390
37396
|
}
|
|
37397
|
+
},
|
|
37398
|
+
"enquiries": {
|
|
37399
|
+
"title": "Property transaction enquiries between conveyancers",
|
|
37400
|
+
"type": "object",
|
|
37401
|
+
"propertyNames": {
|
|
37402
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:+-]*$"
|
|
37403
|
+
},
|
|
37404
|
+
"patternProperties": {
|
|
37405
|
+
".*": {
|
|
37406
|
+
"type": "object",
|
|
37407
|
+
"properties": {
|
|
37408
|
+
"subject": {
|
|
37409
|
+
"description": "The subject or topic of the enquiry",
|
|
37410
|
+
"type": "string"
|
|
37411
|
+
},
|
|
37412
|
+
"status": {
|
|
37413
|
+
"type": "string",
|
|
37414
|
+
"enum": [
|
|
37415
|
+
"pending",
|
|
37416
|
+
"open",
|
|
37417
|
+
"resolved",
|
|
37418
|
+
"resolvedWithCondition",
|
|
37419
|
+
"withdrawn"
|
|
37420
|
+
]
|
|
37421
|
+
},
|
|
37422
|
+
"messages": {
|
|
37423
|
+
"description": "Messages exchanged regarding this enquiry",
|
|
37424
|
+
"type": "object",
|
|
37425
|
+
"propertyNames": {
|
|
37426
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:+-]*$"
|
|
37427
|
+
},
|
|
37428
|
+
"patternProperties": {
|
|
37429
|
+
".*": {
|
|
37430
|
+
"type": "object",
|
|
37431
|
+
"properties": {
|
|
37432
|
+
"datetime": {
|
|
37433
|
+
"type": "string",
|
|
37434
|
+
"format": "date-time"
|
|
37435
|
+
},
|
|
37436
|
+
"originatorRole": {
|
|
37437
|
+
"type": "string",
|
|
37438
|
+
"enum": [
|
|
37439
|
+
"Seller",
|
|
37440
|
+
"Seller's Conveyancer",
|
|
37441
|
+
"Buyer",
|
|
37442
|
+
"Buyer's Conveyancer",
|
|
37443
|
+
"Estate Agent",
|
|
37444
|
+
"Buyer's Agent",
|
|
37445
|
+
"Surveyor",
|
|
37446
|
+
"Mortgage Broker",
|
|
37447
|
+
"Lender"
|
|
37448
|
+
]
|
|
37449
|
+
},
|
|
37450
|
+
"destinationRole": {
|
|
37451
|
+
"type": "string",
|
|
37452
|
+
"enum": [
|
|
37453
|
+
"Seller",
|
|
37454
|
+
"Seller's Conveyancer",
|
|
37455
|
+
"Buyer",
|
|
37456
|
+
"Buyer's Conveyancer",
|
|
37457
|
+
"Estate Agent",
|
|
37458
|
+
"Buyer's Agent",
|
|
37459
|
+
"Surveyor",
|
|
37460
|
+
"Mortgage Broker",
|
|
37461
|
+
"Lender"
|
|
37462
|
+
]
|
|
37463
|
+
},
|
|
37464
|
+
"messageText": {
|
|
37465
|
+
"type": "string"
|
|
37466
|
+
}
|
|
37467
|
+
},
|
|
37468
|
+
"required": [
|
|
37469
|
+
"datetime",
|
|
37470
|
+
"originatorRole",
|
|
37471
|
+
"destinationRole",
|
|
37472
|
+
"messageText"
|
|
37473
|
+
]
|
|
37474
|
+
}
|
|
37475
|
+
}
|
|
37476
|
+
}
|
|
37477
|
+
},
|
|
37478
|
+
"required": [
|
|
37479
|
+
"subject",
|
|
37480
|
+
"status",
|
|
37481
|
+
"messages"
|
|
37482
|
+
],
|
|
37483
|
+
"oneOf": [
|
|
37484
|
+
{
|
|
37485
|
+
"properties": {
|
|
37486
|
+
"status": {
|
|
37487
|
+
"const": "resolvedWithCondition"
|
|
37488
|
+
},
|
|
37489
|
+
"resolutionCondition": {
|
|
37490
|
+
"description": "Condition that must be met for the enquiry to be fully resolved",
|
|
37491
|
+
"type": "string"
|
|
37492
|
+
}
|
|
37493
|
+
},
|
|
37494
|
+
"required": [
|
|
37495
|
+
"resolutionCondition"
|
|
37496
|
+
]
|
|
37497
|
+
},
|
|
37498
|
+
{
|
|
37499
|
+
"properties": {
|
|
37500
|
+
"status": {
|
|
37501
|
+
"enum": [
|
|
37502
|
+
"pending",
|
|
37503
|
+
"open",
|
|
37504
|
+
"resolved",
|
|
37505
|
+
"withdrawn"
|
|
37506
|
+
]
|
|
37507
|
+
}
|
|
37508
|
+
}
|
|
37509
|
+
}
|
|
37510
|
+
]
|
|
37511
|
+
}
|
|
37512
|
+
}
|
|
37391
37513
|
}
|
|
37392
37514
|
}
|
|
37393
37515
|
}
|
|
@@ -538,7 +538,9 @@
|
|
|
538
538
|
}
|
|
539
539
|
},
|
|
540
540
|
"leaseholdInformation": {
|
|
541
|
-
"typeOfLeasehold":
|
|
541
|
+
"typeOfLeasehold": {
|
|
542
|
+
"leaseholdType": "string"
|
|
543
|
+
},
|
|
542
544
|
"sharedOwnership": {
|
|
543
545
|
"isSharedOwnership": "variant",
|
|
544
546
|
"sharedOwnershipPercentage": "number",
|
|
@@ -5184,5 +5186,35 @@
|
|
|
5184
5186
|
"completed": "string"
|
|
5185
5187
|
}
|
|
5186
5188
|
},
|
|
5187
|
-
"offers": {
|
|
5189
|
+
"offers": {
|
|
5190
|
+
"*": {
|
|
5191
|
+
"amount": "number",
|
|
5192
|
+
"currency": "string",
|
|
5193
|
+
"status": "string",
|
|
5194
|
+
"inclusions": [
|
|
5195
|
+
"string"
|
|
5196
|
+
],
|
|
5197
|
+
"exclusions": [
|
|
5198
|
+
"string"
|
|
5199
|
+
],
|
|
5200
|
+
"conditions": [
|
|
5201
|
+
"string"
|
|
5202
|
+
]
|
|
5203
|
+
}
|
|
5204
|
+
},
|
|
5205
|
+
"enquiries": {
|
|
5206
|
+
"*": {
|
|
5207
|
+
"subject": "string",
|
|
5208
|
+
"status": "variant",
|
|
5209
|
+
"messages": {
|
|
5210
|
+
"*": {
|
|
5211
|
+
"datetime": "string",
|
|
5212
|
+
"originatorRole": "string",
|
|
5213
|
+
"destinationRole": "string",
|
|
5214
|
+
"messageText": "string"
|
|
5215
|
+
}
|
|
5216
|
+
},
|
|
5217
|
+
"resolutionCondition": "string"
|
|
5218
|
+
}
|
|
5219
|
+
}
|
|
5188
5220
|
}
|