@pdtf/schemas 3.5.1-9 → 3.6.0-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.
- package/.claude/settings.local.json +6 -1
- package/package.json +1 -1
- package/src/schemas/v3/combined.json +142 -0
- package/src/schemas/v3/compactSkeleton.txt +24 -1
- package/src/schemas/v3/pdtf-transaction.json +150 -0
- package/src/schemas/v3/skeleton.json +43 -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
|
@@ -26101,6 +26101,40 @@
|
|
|
26101
26101
|
"title": "",
|
|
26102
26102
|
"type": "string",
|
|
26103
26103
|
"enum": ["Attached", "To follow"]
|
|
26104
|
+
},
|
|
26105
|
+
"fensaCertificates": {
|
|
26106
|
+
"type": "object",
|
|
26107
|
+
"properties": {
|
|
26108
|
+
"certificates": {
|
|
26109
|
+
"type": "array",
|
|
26110
|
+
"items": {
|
|
26111
|
+
"type": "object",
|
|
26112
|
+
"properties": {
|
|
26113
|
+
"certificateId": {
|
|
26114
|
+
"type": "string",
|
|
26115
|
+
"minLength": 1
|
|
26116
|
+
},
|
|
26117
|
+
"numberOfWindows": {
|
|
26118
|
+
"type": "integer",
|
|
26119
|
+
"minimum": 0
|
|
26120
|
+
},
|
|
26121
|
+
"numberOfDoors": {
|
|
26122
|
+
"type": "integer",
|
|
26123
|
+
"minimum": 0
|
|
26124
|
+
},
|
|
26125
|
+
"certificateIssued": {
|
|
26126
|
+
"type": "string",
|
|
26127
|
+
"format": "date"
|
|
26128
|
+
},
|
|
26129
|
+
"workCompleted": {
|
|
26130
|
+
"type": "string",
|
|
26131
|
+
"format": "date"
|
|
26132
|
+
}
|
|
26133
|
+
}
|
|
26134
|
+
},
|
|
26135
|
+
"minItems": 0
|
|
26136
|
+
}
|
|
26137
|
+
}
|
|
26104
26138
|
}
|
|
26105
26139
|
},
|
|
26106
26140
|
"baspi4Required": ["attachments"],
|
|
@@ -41852,6 +41886,114 @@
|
|
|
41852
41886
|
"required": ["amount", "currency", "status"]
|
|
41853
41887
|
}
|
|
41854
41888
|
}
|
|
41889
|
+
},
|
|
41890
|
+
"enquiries": {
|
|
41891
|
+
"title": "Property transaction enquiries between conveyancers",
|
|
41892
|
+
"type": "object",
|
|
41893
|
+
"propertyNames": {
|
|
41894
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:+-]*$"
|
|
41895
|
+
},
|
|
41896
|
+
"patternProperties": {
|
|
41897
|
+
".*": {
|
|
41898
|
+
"type": "object",
|
|
41899
|
+
"properties": {
|
|
41900
|
+
"subject": {
|
|
41901
|
+
"description": "The subject or topic of the enquiry",
|
|
41902
|
+
"type": "string"
|
|
41903
|
+
},
|
|
41904
|
+
"status": {
|
|
41905
|
+
"type": "string",
|
|
41906
|
+
"enum": [
|
|
41907
|
+
"pending",
|
|
41908
|
+
"open",
|
|
41909
|
+
"resolved",
|
|
41910
|
+
"resolvedWithCondition",
|
|
41911
|
+
"withdrawn"
|
|
41912
|
+
]
|
|
41913
|
+
},
|
|
41914
|
+
"messages": {
|
|
41915
|
+
"description": "Messages exchanged regarding this enquiry",
|
|
41916
|
+
"type": "object",
|
|
41917
|
+
"propertyNames": {
|
|
41918
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:+-]*$"
|
|
41919
|
+
},
|
|
41920
|
+
"patternProperties": {
|
|
41921
|
+
".*": {
|
|
41922
|
+
"type": "object",
|
|
41923
|
+
"properties": {
|
|
41924
|
+
"datetime": {
|
|
41925
|
+
"type": "string",
|
|
41926
|
+
"format": "date-time"
|
|
41927
|
+
},
|
|
41928
|
+
"originatorRole": {
|
|
41929
|
+
"type": "string",
|
|
41930
|
+
"enum": [
|
|
41931
|
+
"Seller",
|
|
41932
|
+
"Seller's Conveyancer",
|
|
41933
|
+
"Buyer",
|
|
41934
|
+
"Buyer's Conveyancer",
|
|
41935
|
+
"Estate Agent",
|
|
41936
|
+
"Buyer's Agent",
|
|
41937
|
+
"Surveyor",
|
|
41938
|
+
"Mortgage Broker",
|
|
41939
|
+
"Lender"
|
|
41940
|
+
]
|
|
41941
|
+
},
|
|
41942
|
+
"destinationRole": {
|
|
41943
|
+
"type": "string",
|
|
41944
|
+
"enum": [
|
|
41945
|
+
"Seller",
|
|
41946
|
+
"Seller's Conveyancer",
|
|
41947
|
+
"Buyer",
|
|
41948
|
+
"Buyer's Conveyancer",
|
|
41949
|
+
"Estate Agent",
|
|
41950
|
+
"Buyer's Agent",
|
|
41951
|
+
"Surveyor",
|
|
41952
|
+
"Mortgage Broker",
|
|
41953
|
+
"Lender"
|
|
41954
|
+
]
|
|
41955
|
+
},
|
|
41956
|
+
"messageText": {
|
|
41957
|
+
"type": "string"
|
|
41958
|
+
}
|
|
41959
|
+
},
|
|
41960
|
+
"required": [
|
|
41961
|
+
"datetime",
|
|
41962
|
+
"originatorRole",
|
|
41963
|
+
"destinationRole",
|
|
41964
|
+
"messageText"
|
|
41965
|
+
]
|
|
41966
|
+
}
|
|
41967
|
+
}
|
|
41968
|
+
}
|
|
41969
|
+
},
|
|
41970
|
+
"required": ["subject", "status", "messages"],
|
|
41971
|
+
"discriminator": {
|
|
41972
|
+
"propertyName": "status"
|
|
41973
|
+
},
|
|
41974
|
+
"oneOf": [
|
|
41975
|
+
{
|
|
41976
|
+
"properties": {
|
|
41977
|
+
"status": {
|
|
41978
|
+
"const": "resolvedWithCondition"
|
|
41979
|
+
},
|
|
41980
|
+
"resolutionCondition": {
|
|
41981
|
+
"description": "Condition that must be met for the enquiry to be fully resolved",
|
|
41982
|
+
"type": "string"
|
|
41983
|
+
}
|
|
41984
|
+
},
|
|
41985
|
+
"required": ["resolutionCondition"]
|
|
41986
|
+
},
|
|
41987
|
+
{
|
|
41988
|
+
"properties": {
|
|
41989
|
+
"status": {
|
|
41990
|
+
"enum": ["pending", "open", "resolved", "withdrawn"]
|
|
41991
|
+
}
|
|
41992
|
+
}
|
|
41993
|
+
}
|
|
41994
|
+
]
|
|
41995
|
+
}
|
|
41996
|
+
}
|
|
41855
41997
|
}
|
|
41856
41998
|
}
|
|
41857
41999
|
}
|
|
@@ -2240,6 +2240,14 @@
|
|
|
2240
2240
|
doubleGlazing
|
|
2241
2241
|
yesNo
|
|
2242
2242
|
attachments
|
|
2243
|
+
fensaCertificates
|
|
2244
|
+
certificates[
|
|
2245
|
+
certificateId
|
|
2246
|
+
numberOfWindows
|
|
2247
|
+
numberOfDoors
|
|
2248
|
+
certificateIssued
|
|
2249
|
+
workCompleted
|
|
2250
|
+
]
|
|
2243
2251
|
electricalRepairOrInstallation
|
|
2244
2252
|
yesNo
|
|
2245
2253
|
attachments
|
|
@@ -4077,4 +4085,19 @@
|
|
|
4077
4085
|
started
|
|
4078
4086
|
expected
|
|
4079
4087
|
completed
|
|
4080
|
-
offers
|
|
4088
|
+
offers{*}
|
|
4089
|
+
amount
|
|
4090
|
+
currency
|
|
4091
|
+
status
|
|
4092
|
+
inclusions[]
|
|
4093
|
+
exclusions[]
|
|
4094
|
+
conditions[]
|
|
4095
|
+
enquiries{*}
|
|
4096
|
+
subject
|
|
4097
|
+
status
|
|
4098
|
+
messages{*}
|
|
4099
|
+
datetime
|
|
4100
|
+
originatorRole
|
|
4101
|
+
destinationRole
|
|
4102
|
+
messageText
|
|
4103
|
+
resolutionCondition
|
|
@@ -21341,6 +21341,40 @@
|
|
|
21341
21341
|
"Attached",
|
|
21342
21342
|
"To follow"
|
|
21343
21343
|
]
|
|
21344
|
+
},
|
|
21345
|
+
"fensaCertificates": {
|
|
21346
|
+
"type": "object",
|
|
21347
|
+
"properties": {
|
|
21348
|
+
"certificates": {
|
|
21349
|
+
"type": "array",
|
|
21350
|
+
"items": {
|
|
21351
|
+
"type": "object",
|
|
21352
|
+
"properties": {
|
|
21353
|
+
"certificateId": {
|
|
21354
|
+
"type": "string",
|
|
21355
|
+
"minLength": 1
|
|
21356
|
+
},
|
|
21357
|
+
"numberOfWindows": {
|
|
21358
|
+
"type": "integer",
|
|
21359
|
+
"minimum": 0
|
|
21360
|
+
},
|
|
21361
|
+
"numberOfDoors": {
|
|
21362
|
+
"type": "integer",
|
|
21363
|
+
"minimum": 0
|
|
21364
|
+
},
|
|
21365
|
+
"certificateIssued": {
|
|
21366
|
+
"type": "string",
|
|
21367
|
+
"format": "date"
|
|
21368
|
+
},
|
|
21369
|
+
"workCompleted": {
|
|
21370
|
+
"type": "string",
|
|
21371
|
+
"format": "date"
|
|
21372
|
+
}
|
|
21373
|
+
}
|
|
21374
|
+
},
|
|
21375
|
+
"minItems": 0
|
|
21376
|
+
}
|
|
21377
|
+
}
|
|
21344
21378
|
}
|
|
21345
21379
|
}
|
|
21346
21380
|
}
|
|
@@ -37394,6 +37428,122 @@
|
|
|
37394
37428
|
]
|
|
37395
37429
|
}
|
|
37396
37430
|
}
|
|
37431
|
+
},
|
|
37432
|
+
"enquiries": {
|
|
37433
|
+
"title": "Property transaction enquiries between conveyancers",
|
|
37434
|
+
"type": "object",
|
|
37435
|
+
"propertyNames": {
|
|
37436
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:+-]*$"
|
|
37437
|
+
},
|
|
37438
|
+
"patternProperties": {
|
|
37439
|
+
".*": {
|
|
37440
|
+
"type": "object",
|
|
37441
|
+
"properties": {
|
|
37442
|
+
"subject": {
|
|
37443
|
+
"description": "The subject or topic of the enquiry",
|
|
37444
|
+
"type": "string"
|
|
37445
|
+
},
|
|
37446
|
+
"status": {
|
|
37447
|
+
"type": "string",
|
|
37448
|
+
"enum": [
|
|
37449
|
+
"pending",
|
|
37450
|
+
"open",
|
|
37451
|
+
"resolved",
|
|
37452
|
+
"resolvedWithCondition",
|
|
37453
|
+
"withdrawn"
|
|
37454
|
+
]
|
|
37455
|
+
},
|
|
37456
|
+
"messages": {
|
|
37457
|
+
"description": "Messages exchanged regarding this enquiry",
|
|
37458
|
+
"type": "object",
|
|
37459
|
+
"propertyNames": {
|
|
37460
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:+-]*$"
|
|
37461
|
+
},
|
|
37462
|
+
"patternProperties": {
|
|
37463
|
+
".*": {
|
|
37464
|
+
"type": "object",
|
|
37465
|
+
"properties": {
|
|
37466
|
+
"datetime": {
|
|
37467
|
+
"type": "string",
|
|
37468
|
+
"format": "date-time"
|
|
37469
|
+
},
|
|
37470
|
+
"originatorRole": {
|
|
37471
|
+
"type": "string",
|
|
37472
|
+
"enum": [
|
|
37473
|
+
"Seller",
|
|
37474
|
+
"Seller's Conveyancer",
|
|
37475
|
+
"Buyer",
|
|
37476
|
+
"Buyer's Conveyancer",
|
|
37477
|
+
"Estate Agent",
|
|
37478
|
+
"Buyer's Agent",
|
|
37479
|
+
"Surveyor",
|
|
37480
|
+
"Mortgage Broker",
|
|
37481
|
+
"Lender"
|
|
37482
|
+
]
|
|
37483
|
+
},
|
|
37484
|
+
"destinationRole": {
|
|
37485
|
+
"type": "string",
|
|
37486
|
+
"enum": [
|
|
37487
|
+
"Seller",
|
|
37488
|
+
"Seller's Conveyancer",
|
|
37489
|
+
"Buyer",
|
|
37490
|
+
"Buyer's Conveyancer",
|
|
37491
|
+
"Estate Agent",
|
|
37492
|
+
"Buyer's Agent",
|
|
37493
|
+
"Surveyor",
|
|
37494
|
+
"Mortgage Broker",
|
|
37495
|
+
"Lender"
|
|
37496
|
+
]
|
|
37497
|
+
},
|
|
37498
|
+
"messageText": {
|
|
37499
|
+
"type": "string"
|
|
37500
|
+
}
|
|
37501
|
+
},
|
|
37502
|
+
"required": [
|
|
37503
|
+
"datetime",
|
|
37504
|
+
"originatorRole",
|
|
37505
|
+
"destinationRole",
|
|
37506
|
+
"messageText"
|
|
37507
|
+
]
|
|
37508
|
+
}
|
|
37509
|
+
}
|
|
37510
|
+
}
|
|
37511
|
+
},
|
|
37512
|
+
"required": [
|
|
37513
|
+
"subject",
|
|
37514
|
+
"status",
|
|
37515
|
+
"messages"
|
|
37516
|
+
],
|
|
37517
|
+
"oneOf": [
|
|
37518
|
+
{
|
|
37519
|
+
"properties": {
|
|
37520
|
+
"status": {
|
|
37521
|
+
"const": "resolvedWithCondition"
|
|
37522
|
+
},
|
|
37523
|
+
"resolutionCondition": {
|
|
37524
|
+
"description": "Condition that must be met for the enquiry to be fully resolved",
|
|
37525
|
+
"type": "string"
|
|
37526
|
+
}
|
|
37527
|
+
},
|
|
37528
|
+
"required": [
|
|
37529
|
+
"resolutionCondition"
|
|
37530
|
+
]
|
|
37531
|
+
},
|
|
37532
|
+
{
|
|
37533
|
+
"properties": {
|
|
37534
|
+
"status": {
|
|
37535
|
+
"enum": [
|
|
37536
|
+
"pending",
|
|
37537
|
+
"open",
|
|
37538
|
+
"resolved",
|
|
37539
|
+
"withdrawn"
|
|
37540
|
+
]
|
|
37541
|
+
}
|
|
37542
|
+
}
|
|
37543
|
+
}
|
|
37544
|
+
]
|
|
37545
|
+
}
|
|
37546
|
+
}
|
|
37397
37547
|
}
|
|
37398
37548
|
}
|
|
37399
37549
|
}
|
|
@@ -2851,7 +2851,18 @@
|
|
|
2851
2851
|
},
|
|
2852
2852
|
"doubleGlazing": {
|
|
2853
2853
|
"yesNo": "variant",
|
|
2854
|
-
"attachments": "string"
|
|
2854
|
+
"attachments": "string",
|
|
2855
|
+
"fensaCertificates": {
|
|
2856
|
+
"certificates": [
|
|
2857
|
+
{
|
|
2858
|
+
"certificateId": "string",
|
|
2859
|
+
"numberOfWindows": "integer",
|
|
2860
|
+
"numberOfDoors": "integer",
|
|
2861
|
+
"certificateIssued": "string",
|
|
2862
|
+
"workCompleted": "string"
|
|
2863
|
+
}
|
|
2864
|
+
]
|
|
2865
|
+
}
|
|
2855
2866
|
},
|
|
2856
2867
|
"electricalRepairOrInstallation": {
|
|
2857
2868
|
"yesNo": "variant",
|
|
@@ -5186,5 +5197,35 @@
|
|
|
5186
5197
|
"completed": "string"
|
|
5187
5198
|
}
|
|
5188
5199
|
},
|
|
5189
|
-
"offers": {
|
|
5200
|
+
"offers": {
|
|
5201
|
+
"*": {
|
|
5202
|
+
"amount": "number",
|
|
5203
|
+
"currency": "string",
|
|
5204
|
+
"status": "string",
|
|
5205
|
+
"inclusions": [
|
|
5206
|
+
"string"
|
|
5207
|
+
],
|
|
5208
|
+
"exclusions": [
|
|
5209
|
+
"string"
|
|
5210
|
+
],
|
|
5211
|
+
"conditions": [
|
|
5212
|
+
"string"
|
|
5213
|
+
]
|
|
5214
|
+
}
|
|
5215
|
+
},
|
|
5216
|
+
"enquiries": {
|
|
5217
|
+
"*": {
|
|
5218
|
+
"subject": "string",
|
|
5219
|
+
"status": "variant",
|
|
5220
|
+
"messages": {
|
|
5221
|
+
"*": {
|
|
5222
|
+
"datetime": "string",
|
|
5223
|
+
"originatorRole": "string",
|
|
5224
|
+
"destinationRole": "string",
|
|
5225
|
+
"messageText": "string"
|
|
5226
|
+
}
|
|
5227
|
+
},
|
|
5228
|
+
"resolutionCondition": "string"
|
|
5229
|
+
}
|
|
5230
|
+
}
|
|
5190
5231
|
}
|