@propxchain/core-client 0.3.0-canary.35 → 0.3.0-canary.36

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 (33) hide show
  1. package/dist/canisters/document_storage/document_storage.did.d.ts +159 -7
  2. package/dist/canisters/document_storage/document_storage.did.js +227 -148
  3. package/dist/canisters/document_verification/document_verification.did.d.ts +248 -7
  4. package/dist/canisters/document_verification/document_verification.did.js +322 -231
  5. package/dist/canisters/email_service/email_service.did.d.ts +92 -7
  6. package/dist/canisters/email_service/email_service.did.js +128 -73
  7. package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts +227 -7
  8. package/dist/canisters/land_registry_integration/land_registry_integration.did.js +380 -315
  9. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts +214 -7
  10. package/dist/canisters/ledger_manager/ledger_manager.did.js +265 -198
  11. package/dist/canisters/property_registry/property_registry.did.d.ts +73 -7
  12. package/dist/canisters/property_registry/property_registry.did.js +76 -57
  13. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts +912 -7
  14. package/dist/canisters/transaction_manager/transaction_manager.did.js +1004 -869
  15. package/dist/canisters/user_management/user_management.did.d.ts +267 -7
  16. package/dist/canisters/user_management/user_management.did.js +349 -254
  17. package/package.json +2 -2
  18. package/dist/canisters/document_storage/document_storage.did.d.ts.map +0 -1
  19. package/dist/canisters/document_storage/document_storage.did.js.map +0 -1
  20. package/dist/canisters/document_verification/document_verification.did.d.ts.map +0 -1
  21. package/dist/canisters/document_verification/document_verification.did.js.map +0 -1
  22. package/dist/canisters/email_service/email_service.did.d.ts.map +0 -1
  23. package/dist/canisters/email_service/email_service.did.js.map +0 -1
  24. package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts.map +0 -1
  25. package/dist/canisters/land_registry_integration/land_registry_integration.did.js.map +0 -1
  26. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +0 -1
  27. package/dist/canisters/ledger_manager/ledger_manager.did.js.map +0 -1
  28. package/dist/canisters/property_registry/property_registry.did.d.ts.map +0 -1
  29. package/dist/canisters/property_registry/property_registry.did.js.map +0 -1
  30. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts.map +0 -1
  31. package/dist/canisters/transaction_manager/transaction_manager.did.js.map +0 -1
  32. package/dist/canisters/user_management/user_management.did.d.ts.map +0 -1
  33. package/dist/canisters/user_management/user_management.did.js.map +0 -1
@@ -1,7 +1,912 @@
1
- export function idlFactory({ IDL }: {
2
- IDL: any;
3
- }): any;
4
- export function init({ IDL }: {
5
- IDL: any;
6
- }): never[];
7
- //# sourceMappingURL=transaction_manager.did.d.ts.map
1
+ import type { Principal } from '@icp-sdk/core/principal';
2
+ import type { ActorMethod } from '@icp-sdk/core/agent';
3
+ import type { IDL } from '@icp-sdk/core/candid';
4
+
5
+ export type AMLStatus = { 'verified' : null } |
6
+ { 'pending' : null } |
7
+ { 'rejected' : null } |
8
+ { 'not_started' : null };
9
+ export interface AlterationTypes {
10
+ 'conservatory' : boolean,
11
+ 'otherDetails' : [] | [string],
12
+ 'other' : boolean,
13
+ 'changeOfUse' : boolean,
14
+ 'structuralRoofWorks' : boolean,
15
+ 'windowsPost2002' : boolean,
16
+ 'internalWallsRemoved' : boolean,
17
+ 'loftConversion' : boolean,
18
+ 'garageConversion' : boolean,
19
+ 'extension' : boolean,
20
+ }
21
+ export interface Anomaly {
22
+ 'ref' : string,
23
+ 'explanation' : string,
24
+ 'detectedAt' : bigint,
25
+ 'sources' : Array<string>,
26
+ 'severity' : Severity,
27
+ }
28
+ export interface ApplicationStatusUpdate {
29
+ 'lastUpdated' : string,
30
+ 'applicationReference' : string,
31
+ 'estimatedCompletionDate' : [] | [string],
32
+ 'statusChanged' : boolean,
33
+ 'currentStatus' : LandRegistryStatus,
34
+ 'previousStatus' : LandRegistryStatus,
35
+ }
36
+ export interface Arrangement {
37
+ 'description' : string,
38
+ 'document' : TA6Document,
39
+ 'contributionAmount' : [] | [bigint],
40
+ }
41
+ export interface BotConnection {
42
+ 'principal' : Principal,
43
+ 'name' : string,
44
+ 'addedAt' : bigint,
45
+ 'addedBy' : Principal,
46
+ }
47
+ export interface BoundaryFeature {
48
+ 'ownership' : BoundaryOwnership,
49
+ 'position' : string,
50
+ }
51
+ export type BoundaryOwnership = { 'NotKnown' : null } |
52
+ { 'Shared' : null } |
53
+ { 'OwnedBySeller' : null } |
54
+ { 'OwnedByNeighbour' : null };
55
+ export interface CompanySeller {
56
+ 'countryOfIncorporation' : string,
57
+ 'director' : string,
58
+ 'companyNumber' : string,
59
+ 'companyName' : string,
60
+ }
61
+ export interface CompletionCommitments {
62
+ 'removeSellersItems' : TA6Answer,
63
+ 'vacantPossession' : TA6Answer,
64
+ 'leaveServiceInfo' : TA6Answer,
65
+ }
66
+ export type DischargeType = { 'GroundWater' : null } |
67
+ { 'SurfaceWater' : null };
68
+ export interface HeatingSystem {
69
+ 'certificate' : TA6Document,
70
+ 'otherDetails' : [] | [string],
71
+ 'installDate' : [] | [string],
72
+ 'heatingType' : HeatingType,
73
+ 'lastServiceDate' : [] | [string],
74
+ }
75
+ export type HeatingType = { 'Lpg' : null } |
76
+ { 'Oil' : null } |
77
+ { 'SolarThermal' : null } |
78
+ { 'SolidFuel' : null } |
79
+ { 'DistrictHeating' : null } |
80
+ { 'Electric' : null } |
81
+ { 'HeatPumpAir' : null } |
82
+ { 'Other' : null } |
83
+ { 'GasCentral' : null } |
84
+ { 'HeatPumpGround' : null };
85
+ export interface HmlrFetchRecord {
86
+ 'fetchedAt' : bigint,
87
+ 'fetchedBy' : Principal,
88
+ 'titleNumber' : string,
89
+ 'responseHash' : string,
90
+ }
91
+ export type Jurisdiction = { 'Wales' : null } |
92
+ { 'England' : null };
93
+ export interface LandRegistryIntegration {
94
+ 'status' : LandRegistryStatus,
95
+ 'lastPolledAt' : [] | [bigint],
96
+ 'advisoryEntries' : Array<string>,
97
+ 'officialSearchCost' : bigint,
98
+ 'officialSearchRequestedAt' : [] | [bigint],
99
+ 'registerChangedSinceSearch' : [] | [boolean],
100
+ 'officialSearchCompletedAt' : [] | [bigint],
101
+ 'registrationNotes' : Array<string>,
102
+ 'lastUpdated' : bigint,
103
+ 'estimatedLRCompletionTime' : [] | [bigint],
104
+ 'applicationReference' : [] | [string],
105
+ 'officialSearchPriorityExpiry' : [] | [bigint],
106
+ 'officialSearchCertificateRef' : [] | [string],
107
+ 'preValidationErrors' : Array<string>,
108
+ 'applicationFee' : bigint,
109
+ 'caseworkerAssigned' : [] | [boolean],
110
+ 'lrPayloadID' : [] | [string],
111
+ 'requisitions' : Array<Requisition>,
112
+ 'submissionResponseCode' : [] | [bigint],
113
+ 'submittedToLRAt' : [] | [bigint],
114
+ 'pollCount' : bigint,
115
+ 'estimatedCompletionDate' : [] | [string],
116
+ 'registeredAt' : [] | [bigint],
117
+ 'newTitleNumber' : [] | [string],
118
+ 'totalLRCosts' : bigint,
119
+ 'landRegistryConfirmationNumber' : [] | [string],
120
+ }
121
+ export type LandRegistryStatus = { 'cancelled' : null } |
122
+ { 'submitted' : null } |
123
+ { 'completed_with_notes' : null } |
124
+ { 'under_examination' : null } |
125
+ { 'requisition_raised' : null } |
126
+ { 'pending_official_search' : null } |
127
+ { 'not_initiated' : null } |
128
+ { 'pending_submission' : null } |
129
+ { 'pre_validation_failed' : null } |
130
+ { 'queued_manual_processing' : null } |
131
+ { 'application_received' : null } |
132
+ { 'official_search_completed' : null } |
133
+ { 'requisition_responded' : null } |
134
+ { 'rejected' : null } |
135
+ { 'official_search_expired' : null } |
136
+ { 'failed' : null } |
137
+ { 'registered' : null };
138
+ export interface MeteredConnection {
139
+ 'provider' : [] | [string],
140
+ 'supplyNumber' : [] | [string],
141
+ 'meterLocation' : [] | [string],
142
+ 'connected' : TA6Answer,
143
+ }
144
+ export interface NextStepOption {
145
+ 'action' : string,
146
+ 'displayLabel' : string,
147
+ 'estimatedDelayIfSkipped' : [] | [bigint],
148
+ 'whyThis' : string,
149
+ }
150
+ export interface NextStepRecommendation {
151
+ 'why' : string,
152
+ 'urgency' : Urgency,
153
+ 'blocker' : string,
154
+ 'blockerLabel' : string,
155
+ 'options' : Array<NextStepOption>,
156
+ 'partial' : boolean,
157
+ }
158
+ export interface Notification {
159
+ 'id' : bigint,
160
+ 'documentHash' : string,
161
+ 'createdAt' : Time,
162
+ 'read' : boolean,
163
+ 'recipient' : Principal,
164
+ 'message' : string,
165
+ 'docType' : string,
166
+ 'uploadedBy' : Principal,
167
+ 'transactionId' : string,
168
+ }
169
+ export interface Occupier {
170
+ 'age' : [] | [bigint],
171
+ 'fullName' : string,
172
+ 'tenancyAgreement' : TA6Document,
173
+ }
174
+ export interface OfficialSearchResult {
175
+ 'officialCopyTimestamp' : [] | [string],
176
+ 'advisoryEntries' : Array<string>,
177
+ 'certificateTimestamp' : string,
178
+ 'registerChanged' : boolean,
179
+ 'priorityExpiry' : string,
180
+ 'certificateRef' : string,
181
+ }
182
+ export type ParkingType = { 'OnRoad' : null } |
183
+ { 'None' : null } |
184
+ { 'Permit' : null } |
185
+ { 'Garage' : null } |
186
+ { 'Other' : null } |
187
+ { 'Allocated' : null } |
188
+ { 'Driveway' : null };
189
+ export interface PartyProgress {
190
+ 'completedParties' : bigint,
191
+ 'overallProgress' : bigint,
192
+ 'allAMLComplete' : boolean,
193
+ 'totalParties' : bigint,
194
+ 'parties' : Array<TransactionParty>,
195
+ }
196
+ export type Phase = { 'buyerSetup' : null } |
197
+ { 'preContract' : null } |
198
+ { 'completed' : null } |
199
+ { 'sellerPrep' : null } |
200
+ { 'preCompletion' : null } |
201
+ { 'searches' : null };
202
+ export interface PhaseMilestones {
203
+ 'contractDraftedAt' : [] | [bigint],
204
+ 'searchesOrderedAt' : [] | [bigint],
205
+ }
206
+ export type RegulatoryBody = { 'clc' : null } |
207
+ { 'sra' : null };
208
+ export interface Requisition {
209
+ 'requisitionId' : string,
210
+ 'description' : string,
211
+ 'isResolved' : boolean,
212
+ 'category' : string,
213
+ 'raisedAt' : bigint,
214
+ 'responseText' : [] | [string],
215
+ 'respondedAt' : [] | [bigint],
216
+ 'resolvedAt' : [] | [bigint],
217
+ }
218
+ export type Result = { 'ok' : string } |
219
+ { 'err' : string };
220
+ export type Result_1 = { 'ok' : null } |
221
+ { 'err' : string };
222
+ export type Result_10 = { 'ok' : Array<BotConnection> } |
223
+ { 'err' : string };
224
+ export type Result_11 = { 'ok' : [] | [TA7LeaseholdInformation] } |
225
+ { 'err' : string };
226
+ export type Result_12 = { 'ok' : [] | [TA6PropertyInformation] } |
227
+ { 'err' : string };
228
+ export type Result_13 = { 'ok' : [] | [TA10FittingsAndContents] } |
229
+ { 'err' : string };
230
+ export type Result_14 = {
231
+ 'ok' : {
232
+ 'sellerSolicitor' : [] | [SolicitorRecord],
233
+ 'buyerSolicitor' : [] | [SolicitorRecord],
234
+ }
235
+ } |
236
+ { 'err' : string };
237
+ export type Result_15 = { 'ok' : PhaseMilestones } |
238
+ { 'err' : string };
239
+ export type Result_16 = { 'ok' : TransactionPartyProgress } |
240
+ { 'err' : string };
241
+ export type Result_17 = { 'ok' : NextStepRecommendation } |
242
+ { 'err' : string };
243
+ export type Result_18 = { 'ok' : [] | [HmlrFetchRecord] } |
244
+ { 'err' : string };
245
+ export type Result_19 = { 'ok' : Phase } |
246
+ { 'err' : string };
247
+ export type Result_2 = { 'ok' : TransactionParty } |
248
+ { 'err' : string };
249
+ export type Result_20 = { 'ok' : Array<Anomaly> } |
250
+ { 'err' : string };
251
+ export type Result_21 = { 'ok' : [string, string] } |
252
+ { 'err' : string };
253
+ export type Result_22 = {
254
+ 'ok' : { 'registrations' : bigint, 'transactions' : bigint }
255
+ } |
256
+ { 'err' : string };
257
+ export type Result_3 = { 'ok' : bigint } |
258
+ { 'err' : string };
259
+ export type Result_4 = { 'ok' : OfficialSearchResult } |
260
+ { 'err' : string };
261
+ export type Result_5 = { 'ok' : ApplicationStatusUpdate } |
262
+ { 'err' : string };
263
+ export type Result_6 = { 'ok' : Transaction } |
264
+ { 'err' : string };
265
+ export type Result_7 = {
266
+ 'ok' : {
267
+ 'sellers' : Array<TransactionParty>,
268
+ 'buyers' : Array<TransactionParty>,
269
+ }
270
+ } |
271
+ { 'err' : string };
272
+ export type Result_8 = { 'ok' : Array<Notification> } |
273
+ { 'err' : string };
274
+ export type Result_9 = { 'ok' : Array<Transaction> } |
275
+ { 'err' : string };
276
+ export interface Right {
277
+ 'overProperty' : [] | [string],
278
+ 'description' : string,
279
+ }
280
+ export interface Section10Parking {
281
+ 'q10_3InstallConsent' : TA6Document,
282
+ 'q10_1Details' : [] | [string],
283
+ 'q10_1Arrangements' : Array<ParkingType>,
284
+ 'q10_2PermitRequired' : TA6Response,
285
+ 'q10_3EvChargingPoint' : TA6Response,
286
+ }
287
+ export interface Section11Services {
288
+ 'q11_2Document' : TA6Document,
289
+ 'q11_5bSurfaceWaterMains' : TA6Answer,
290
+ 'q11_4HeatingSystems' : Array<HeatingSystem>,
291
+ 'q11_3Date' : [] | [string],
292
+ 'q11_3Eicr' : TA6Answer,
293
+ 'q11_6SewerageSource' : [] | [SewerageSource],
294
+ 'q11_1ElectricalWorks' : TA6Response,
295
+ 'q11_5aFoulWaterMains' : TA6Answer,
296
+ 'q11_2ElectricalCertificates' : TA6Answer,
297
+ 'q11_3Report' : TA6Document,
298
+ 'q11_7SewerageSystem' : [] | [SewerageSystem],
299
+ }
300
+ export interface Section12Connections {
301
+ 'sharedHeatPumps' : ServicedPlantConnection,
302
+ 'mainsWater' : WaterConnection,
303
+ 'mainsGas' : MeteredConnection,
304
+ 'smallSewageTreatmentPlant' : ServicedPlantConnection,
305
+ 'mainsSewerage' : ServiceConnection,
306
+ 'telephone' : ServiceConnection,
307
+ 'broadband' : ServiceConnection,
308
+ 'otherServices' : [] | [string],
309
+ 'mainsElectricity' : MeteredConnection,
310
+ }
311
+ export interface Section13Transaction {
312
+ 'q13_5VacantPossession' : TA6Answer,
313
+ 'q13_4OtherOccupiers17Plus' : TA6Response,
314
+ 'q13_4bTenantsOrLodgers' : TA6Answer,
315
+ 'q13_1DependentPurchase' : TA6Response,
316
+ 'q13_7Occupiers' : Array<Occupier>,
317
+ 'q13_6OccupiersAgreedSignVacate' : TA6Answer,
318
+ 'q13_3SellerLivesAtProperty' : TA6Answer,
319
+ 'q13_2MovingDateRequirements' : TA6Response,
320
+ }
321
+ export interface Section14Completion {
322
+ 'q14_2Commitments' : CompletionCommitments,
323
+ 'q14_1ProceedsClearCharges' : TA6Response,
324
+ }
325
+ export interface Section15AdditionalInfo {
326
+ 'additionalNotes' : [] | [string],
327
+ 'q15_1ConsentsAttached' : Array<TA6Document>,
328
+ 'consentsNotAvailableList' : [] | [string],
329
+ 'consentsToFollowList' : [] | [string],
330
+ 'consentsAttachedList' : [] | [string],
331
+ }
332
+ export interface Section1PropertyAndSeller {
333
+ 'postcode' : string,
334
+ 'uprn' : [] | [string],
335
+ 'solicitor' : SolicitorContact,
336
+ 'propertyAddress' : string,
337
+ 'sellers' : Array<SellerParty>,
338
+ 'sellerCompany' : [] | [CompanySeller],
339
+ }
340
+ export interface Section2Boundaries {
341
+ 'q2_3MovedOrAltered' : TA6Response,
342
+ 'q2_2IrregularDescription' : [] | [string],
343
+ 'q2_1Features' : Array<BoundaryFeature>,
344
+ }
345
+ export interface Section3Disputes {
346
+ 'q3_2PotentialDisputes' : TA6Response,
347
+ 'q3_1ExistingDisputes' : TA6Response,
348
+ }
349
+ export interface Section4Notices {
350
+ 'q4_2NearbyDevelopment' : TA6Response,
351
+ 'q4_1NoticesReceived' : TA6Response,
352
+ 'q4_3NearbyUseChange' : TA6Response,
353
+ }
354
+ export interface Section5Alterations {
355
+ 'q5_6Solar' : [] | [SolarPower],
356
+ 'q5_3NonResidentialUse' : TA6Response,
357
+ 'q5_8ConservationArea' : TA6Response,
358
+ 'q5_9TreePreservationOrder' : TA6Response,
359
+ 'q5_2Documents' : Array<TA6Document>,
360
+ 'q5_4Breaches' : TA6Response,
361
+ 'q5_5UnresolvedIssues' : TA6Response,
362
+ 'q5_1Alterations' : AlterationTypes,
363
+ 'q5_7ListedBuilding' : TA6Response,
364
+ }
365
+ export interface Section6Guarantees {
366
+ 'q6_1CentralHeating' : WarrantyItem,
367
+ 'q6_3Breaches' : TA6Response,
368
+ 'q6_1DampProofing' : WarrantyItem,
369
+ 'q6_1Roofing' : WarrantyItem,
370
+ 'q6_1NewHomeWarranty' : WarrantyItem,
371
+ 'q6_1ElectricalWork' : WarrantyItem,
372
+ 'q6_1WindowsDoors' : WarrantyItem,
373
+ 'q6_1Underpinning' : WarrantyItem,
374
+ 'q6_1TimberTreatment' : WarrantyItem,
375
+ 'q6_1OtherDetails' : [] | [string],
376
+ 'q6_2Claims' : TA6Response,
377
+ 'q6_1Other' : WarrantyItem,
378
+ }
379
+ export interface Section7Insurance {
380
+ 'q7_2DifficultOrSpecialConditions' : TA6Response,
381
+ 'q7_1DoYouInsure' : TA6Answer,
382
+ 'q7_1WhoInsuresIfNot' : [] | [string],
383
+ 'q7_3Claims' : TA6Response,
384
+ }
385
+ export interface Section8Environmental {
386
+ 'q8_5GreenDeal' : TA6Response,
387
+ 'q8_6JapaneseKnotweed' : TA6Response,
388
+ 'q8_5CurrentBill' : TA6Document,
389
+ 'q8_3bBelowActionLevel' : TA6Answer,
390
+ 'q8_4RadonRemedialMeasures' : TA6Response,
391
+ 'q8_7SurveyDocument' : TA6Document,
392
+ 'q8_3aReport' : TA6Document,
393
+ 'q8_3RadonTest' : TA6Response,
394
+ 'q8_7KnotweedSurvey' : TA6Answer,
395
+ 'q8_1Flooded' : TA6Response,
396
+ 'q8_2FloodDefences' : TA6Response,
397
+ }
398
+ export interface Section9Rights {
399
+ 'q9_4Rights' : Array<Right>,
400
+ 'q9_9Arrangement' : [] | [Arrangement],
401
+ 'q9_1RightsExercised' : TA6Response,
402
+ 'q9_4OthersRights' : TA6Response,
403
+ 'q9_2Amount' : [] | [bigint],
404
+ 'q9_8LeadingToOthers' : TA6Response,
405
+ 'q9_7CrossingOtherProperty' : TA6Response,
406
+ 'q9_5ContributionsReceived' : TA6Response,
407
+ 'q9_1Rights' : Array<Right>,
408
+ 'q9_3Disagreements' : TA6Response,
409
+ 'q9_5Amount' : [] | [bigint],
410
+ 'q9_2Contributions' : TA6Response,
411
+ 'q9_6Disagreements' : TA6Response,
412
+ }
413
+ export interface SellerParty {
414
+ 'role' : SellerRole,
415
+ 'fullName' : string,
416
+ 'ownershipOrAuthorityDate' : [] | [string],
417
+ }
418
+ export type SellerRole = { 'Administrator' : null } |
419
+ { 'Executor' : null } |
420
+ { 'Seller' : null } |
421
+ { 'Trustee' : null } |
422
+ { 'Attorney' : null };
423
+ export interface ServiceConnection {
424
+ 'provider' : [] | [string],
425
+ 'connected' : TA6Answer,
426
+ }
427
+ export interface ServicedPlantConnection {
428
+ 'provider' : [] | [string],
429
+ 'serviceProvider' : [] | [string],
430
+ 'connected' : TA6Answer,
431
+ 'makeModel' : [] | [string],
432
+ }
433
+ export type Severity = { 'Info' : null } |
434
+ { 'Warning' : null } |
435
+ { 'Conflict' : null };
436
+ export type SewerageSource = { 'SewageTreatmentPlant' : null } |
437
+ { 'Mains' : null } |
438
+ { 'SepticTank' : null } |
439
+ { 'Other' : null } |
440
+ { 'Cesspool' : null };
441
+ export interface SewerageSystem {
442
+ 'otherDetails' : [] | [string],
443
+ 'source' : SewerageSource,
444
+ 'infiltrationSystem' : TA6Answer,
445
+ 'lastServiceDate' : [] | [string],
446
+ 'regulationCompliant' : TA6Answer,
447
+ 'location' : [] | [string],
448
+ 'dischargeType' : [] | [DischargeType],
449
+ }
450
+ export interface SolarPower {
451
+ 'supplyAgreement' : TA6Document,
452
+ 'ownedOutright' : [] | [boolean],
453
+ 'mcsCertificate' : TA6Document,
454
+ 'installDate' : [] | [string],
455
+ 'electricityBill' : TA6Document,
456
+ 'fitOrSegAgreement' : TA6Document,
457
+ }
458
+ export interface SolicitorContact {
459
+ 'postcode' : string,
460
+ 'contactName' : string,
461
+ 'firmName' : string,
462
+ 'email' : [] | [string],
463
+ 'address' : string,
464
+ 'phone' : [] | [string],
465
+ }
466
+ export interface SolicitorRecord {
467
+ 'consentRecordedAt' : Time,
468
+ 'tasks' : Array<SolicitorTask>,
469
+ 'regNumber' : string,
470
+ 'principal' : Principal,
471
+ 'verified' : boolean,
472
+ 'name' : string,
473
+ 'joinedAt' : Time,
474
+ 'firmName' : string,
475
+ 'piiCertUploaded' : boolean,
476
+ 'email' : string,
477
+ 'actingFor' : { 'both' : null } |
478
+ { 'seller' : null } |
479
+ { 'buyer' : null },
480
+ 'removalRequested' : boolean,
481
+ 'regulatoryBody' : RegulatoryBody,
482
+ }
483
+ export interface SolicitorTask {
484
+ 'status' : SolicitorTaskStatus,
485
+ 'completedAt' : [] | [Time],
486
+ 'startedAt' : [] | [Time],
487
+ 'taskType' : SolicitorTaskType,
488
+ 'evidenceDocId' : [] | [string],
489
+ 'priceGBP' : bigint,
490
+ }
491
+ export type SolicitorTaskStatus = { 'pending' : null } |
492
+ { 'in_progress' : null } |
493
+ { 'completed' : null } |
494
+ { 'confirmed_by_client' : null };
495
+ export type SolicitorTaskType = { 'identity_certification' : null } |
496
+ { 'ap1_submission' : null } |
497
+ { 'tr1_preparation' : null };
498
+ export interface TA10FittingItem {
499
+ 'item' : string,
500
+ 'included' : boolean,
501
+ 'notes' : [] | [string],
502
+ }
503
+ export interface TA10FittingsAndContents {
504
+ 'completedAt' : [] | [bigint],
505
+ 'completedBy' : Principal,
506
+ 'additionalItems' : string,
507
+ 'outdoorItems' : Array<TA10FittingItem>,
508
+ 'lastModifiedAt' : bigint,
509
+ 'lastModifiedBy' : Principal,
510
+ 'rooms' : Array<TA10Room>,
511
+ }
512
+ export interface TA10Room {
513
+ 'fittings' : Array<TA10FittingItem>,
514
+ 'roomName' : string,
515
+ }
516
+ export type TA6Answer = { 'No' : null } |
517
+ { 'Yes' : null } |
518
+ { 'NotApplicable' : null } |
519
+ { 'NotKnown' : null } |
520
+ { 'NotAnswered' : null };
521
+ export type TA6Document = { 'NotApplicable' : null } |
522
+ { 'NotAvailable' : null } |
523
+ { 'NotAnswered' : null } |
524
+ { 'Attached' : bigint } |
525
+ { 'ToFollow' : null };
526
+ export interface TA6PropertyInformation {
527
+ 'completedAt' : [] | [bigint],
528
+ 'completedBy' : Principal,
529
+ 'formVersion' : string,
530
+ 'jurisdiction' : Jurisdiction,
531
+ 'section10' : Section10Parking,
532
+ 'section11' : Section11Services,
533
+ 'section12' : Section12Connections,
534
+ 'section13' : Section13Transaction,
535
+ 'section14' : Section14Completion,
536
+ 'section15' : Section15AdditionalInfo,
537
+ 'lastModifiedAt' : bigint,
538
+ 'lastModifiedBy' : Principal,
539
+ 'section1' : Section1PropertyAndSeller,
540
+ 'section2' : Section2Boundaries,
541
+ 'section3' : Section3Disputes,
542
+ 'section4' : Section4Notices,
543
+ 'section5' : Section5Alterations,
544
+ 'section6' : Section6Guarantees,
545
+ 'section7' : Section7Insurance,
546
+ 'section8' : Section8Environmental,
547
+ 'section9' : Section9Rights,
548
+ }
549
+ export interface TA6Response { 'answer' : TA6Answer, 'details' : [] | [string] }
550
+ export interface TA7LeaseholdInformation {
551
+ 'completedAt' : [] | [bigint],
552
+ 'completedBy' : Principal,
553
+ 'restrictions' : string,
554
+ 'serviceChargePaymentFrequency' : string,
555
+ 'freeholder' : string,
556
+ 'groundRentPaymentFrequency' : string,
557
+ 'serviceChargeAmount' : bigint,
558
+ 'sublettingAllowed' : boolean,
559
+ 'groundRentAmount' : bigint,
560
+ 'leaseExpiryDate' : string,
561
+ 'lastModifiedAt' : bigint,
562
+ 'lastModifiedBy' : Principal,
563
+ 'leaseTermYears' : bigint,
564
+ 'petsAllowed' : boolean,
565
+ 'managingAgent' : [] | [string],
566
+ 'leaseStartDate' : string,
567
+ 'alterationsAllowed' : boolean,
568
+ }
569
+ export type Time = bigint;
570
+ export interface Transaction {
571
+ 'id' : string,
572
+ 'status' : TransactionStatus,
573
+ 'buyerFundsHash' : [] | [string],
574
+ 'userRole' : string,
575
+ 'oldStatus' : string,
576
+ 'postcode' : string,
577
+ 'exchangedAt' : [] | [bigint],
578
+ 'propertyCategory' : string,
579
+ 'transactionType' : string,
580
+ 'completionDate' : string,
581
+ 'completionStatementHash' : [] | [string],
582
+ 'landRegistryRegisteredAt' : [] | [bigint],
583
+ 'sellerSolicitorSignature' : [] | [string],
584
+ 'propertyType' : string,
585
+ 'completionInitiatedAt' : [] | [bigint],
586
+ 'buyerSolicitorSignature' : [] | [string],
587
+ 'titleNumber' : string,
588
+ 'mode' : string,
589
+ 'createdAt' : bigint,
590
+ 'createdBy' : Principal,
591
+ 'blockchainCompletionProof' : [] | [string],
592
+ 'blockchainCompletedAt' : [] | [bigint],
593
+ 'accessList' : Array<Principal>,
594
+ 'solicitor' : [] | [Principal],
595
+ 'sellerSolicitor' : [] | [SolicitorRecord],
596
+ 'chainedTransactions' : Array<string>,
597
+ 'previousOwner' : string,
598
+ 'propertyId' : string,
599
+ 'propertyAddress' : string,
600
+ 'deposit' : bigint,
601
+ 'seller' : Principal,
602
+ 'contractExchangeTimestamp' : [] | [bigint],
603
+ 'sellers' : [] | [Array<TransactionParty>],
604
+ 'mortgageAmount' : bigint,
605
+ 'inviteCode' : string,
606
+ 'chainPosition' : [] | [bigint],
607
+ 'buyer' : Principal,
608
+ 'landRegistryIntegration' : LandRegistryIntegration,
609
+ 'amount' : bigint,
610
+ 'buyers' : [] | [Array<TransactionParty>],
611
+ 'linkToTransaction' : [] | [string],
612
+ 'buyerSolicitor' : [] | [SolicitorRecord],
613
+ 'blockchainCompletionTimestamp' : [] | [bigint],
614
+ }
615
+ export interface TransactionParty {
616
+ 'amlComplete' : boolean,
617
+ 'amlStatus' : AMLStatus,
618
+ 'principal' : Principal,
619
+ 'epcUploaded' : boolean,
620
+ 'proofOfIdentityUploaded' : boolean,
621
+ 'mortgageAgreementUploaded' : boolean,
622
+ 'name' : string,
623
+ 'joinedAt' : Time,
624
+ 'role' : TransactionPartyRole,
625
+ 'email' : string,
626
+ 'isPrimary' : boolean,
627
+ 'proofOfAddressUploaded' : boolean,
628
+ 'proofOfFundsUploaded' : boolean,
629
+ 'titleDeedsUploaded' : boolean,
630
+ 'ta6FormUploaded' : boolean,
631
+ 'ta10FormUploaded' : boolean,
632
+ }
633
+ export interface TransactionPartyProgress {
634
+ 'readyToExchange' : boolean,
635
+ 'sellers' : PartyProgress,
636
+ 'buyers' : PartyProgress,
637
+ }
638
+ export type TransactionPartyRole = { 'secondary_seller' : null } |
639
+ { 'primary_buyer' : null } |
640
+ { 'secondary_buyer' : null } |
641
+ { 'primary_seller' : null };
642
+ export type TransactionStatus = { 'completion_initiated' : null } |
643
+ { 'active' : null } |
644
+ { 'blockchain_completed' : null } |
645
+ { 'exchanged' : null } |
646
+ { 'land_registry_registered' : null };
647
+ export interface TransactionTimeline {
648
+ 'exchangedAt' : [] | [bigint],
649
+ 'landRegistryRegisteredAt' : [] | [bigint],
650
+ 'completionInitiatedAt' : [] | [bigint],
651
+ 'createdAt' : bigint,
652
+ 'blockchainCompletedAt' : [] | [bigint],
653
+ 'totalTimeToCompletion' : bigint,
654
+ 'totalTimeIncludingLR' : bigint,
655
+ }
656
+ export type Urgency = { 'blocking' : null } |
657
+ { 'soon' : null } |
658
+ { 'later' : null };
659
+ export interface WarrantyItem {
660
+ 'present' : TA6Answer,
661
+ 'document' : TA6Document,
662
+ }
663
+ export interface WaterConnection {
664
+ 'provider' : [] | [string],
665
+ 'stopcockLocation' : [] | [string],
666
+ 'meterLocation' : [] | [string],
667
+ 'connected' : TA6Answer,
668
+ }
669
+ export interface _SERVICE {
670
+ 'acknowledgeTA6Wording' : ActorMethod<[string], Result_1>,
671
+ 'addParty' : ActorMethod<[string, string, string, string, boolean], Result_2>,
672
+ 'adminForceDeleteTransaction' : ActorMethod<[string], Result>,
673
+ 'assignBuyer' : ActorMethod<[string, Principal], Result>,
674
+ 'assignSolicitor' : ActorMethod<[string, Principal], Result>,
675
+ 'assignSolicitorRecord' : ActorMethod<[string, SolicitorRecord], Result_1>,
676
+ 'backfillTransactionMembers' : ActorMethod<[], Result_22>,
677
+ 'bootstrapDocumentStorageCanister' : ActorMethod<[Principal], Result>,
678
+ 'canAccessTransaction' : ActorMethod<[string], boolean>,
679
+ 'connectBot' : ActorMethod<[string, Principal, string], Result_1>,
680
+ 'consumeLandRegistryNotification' : ActorMethod<
681
+ [string, [] | [string], [] | [string], string, Array<[string, string]>],
682
+ Result_1
683
+ >,
684
+ 'createTransaction' : ActorMethod<
685
+ [
686
+ string,
687
+ string,
688
+ string,
689
+ string,
690
+ Principal,
691
+ string,
692
+ bigint,
693
+ string,
694
+ string,
695
+ string,
696
+ string,
697
+ string,
698
+ bigint,
699
+ bigint,
700
+ string,
701
+ ],
702
+ string
703
+ >,
704
+ 'createTransactionWithInvite' : ActorMethod<
705
+ [
706
+ string,
707
+ string,
708
+ string,
709
+ string,
710
+ Principal,
711
+ string,
712
+ bigint,
713
+ string,
714
+ string,
715
+ string,
716
+ string,
717
+ string,
718
+ bigint,
719
+ bigint,
720
+ string,
721
+ ],
722
+ Result_21
723
+ >,
724
+ 'deleteTransaction' : ActorMethod<[string], Result>,
725
+ 'disconnectBot' : ActorMethod<[string, Principal], Result_1>,
726
+ 'doesTransactionExist' : ActorMethod<[string], boolean>,
727
+ 'getAllInviteCodes' : ActorMethod<[], Array<[string, string]>>,
728
+ 'getAllTransactions' : ActorMethod<[], Array<Transaction>>,
729
+ 'getAnomalies' : ActorMethod<[string], Result_20>,
730
+ 'getCurrentPhase' : ActorMethod<[string], Result_19>,
731
+ 'getCycles' : ActorMethod<[], bigint>,
732
+ 'getDocumentStorageCanister' : ActorMethod<[], [] | [Principal]>,
733
+ 'getExpiringSearches' : ActorMethod<[bigint], Array<Transaction>>,
734
+ 'getFlowState' : ActorMethod<[string], [] | [string]>,
735
+ 'getHmlrFetch' : ActorMethod<[string], Result_18>,
736
+ 'getInviteCode' : ActorMethod<[string], Result>,
737
+ 'getLandRegistryCanister' : ActorMethod<[], string>,
738
+ 'getLandRegistryDetail' : ActorMethod<
739
+ [string],
740
+ [] | [LandRegistryIntegration]
741
+ >,
742
+ 'getLedgerManagerCanister' : ActorMethod<[], string>,
743
+ 'getListingData' : ActorMethod<[string], [] | [string]>,
744
+ 'getMyNotifications' : ActorMethod<[], Array<Notification>>,
745
+ 'getMyTransactions' : ActorMethod<[], Array<Transaction>>,
746
+ 'getNextStep' : ActorMethod<[string], Result_17>,
747
+ 'getOutstandingRequisitions' : ActorMethod<[], Array<[string, Requisition]>>,
748
+ 'getPartyProgress' : ActorMethod<[string], Result_16>,
749
+ 'getPendingLRApplications' : ActorMethod<[], Array<Transaction>>,
750
+ 'getPhaseMilestones' : ActorMethod<[string], Result_15>,
751
+ 'getPropertyRegistryCanister' : ActorMethod<[], string>,
752
+ 'getSolicitorStatus' : ActorMethod<[string], Result_14>,
753
+ 'getTA10' : ActorMethod<[string], Result_13>,
754
+ 'getTA6' : ActorMethod<[string], Result_12>,
755
+ 'getTA7' : ActorMethod<[string], Result_11>,
756
+ 'getTransaction' : ActorMethod<[string], [] | [Transaction]>,
757
+ 'getTransactionBots' : ActorMethod<[string], Result_10>,
758
+ 'getTransactionByInviteCode' : ActorMethod<[string], [] | [Transaction]>,
759
+ 'getTransactionChain' : ActorMethod<[string], Result_9>,
760
+ 'getTransactionNotifications' : ActorMethod<[string], Result_8>,
761
+ 'getTransactionParties' : ActorMethod<[string], Result_7>,
762
+ 'getTransactionsByStatus' : ActorMethod<
763
+ [TransactionStatus],
764
+ Array<Transaction>
765
+ >,
766
+ 'getTransactionsForPrincipal' : ActorMethod<[Principal], Array<Transaction>>,
767
+ 'getTransactionsNeedingSearch' : ActorMethod<[], Array<Transaction>>,
768
+ 'getUnreadNotificationCount' : ActorMethod<[], bigint>,
769
+ 'getUnreadNotificationCountForPrincipal' : ActorMethod<[Principal], bigint>,
770
+ 'getUserManagementCanister' : ActorMethod<[], string>,
771
+ 'get_transaction_timeline' : ActorMethod<
772
+ [string],
773
+ [] | [TransactionTimeline]
774
+ >,
775
+ 'hasAcknowledgedTA6Wording' : ActorMethod<[string], boolean>,
776
+ 'initiate_blockchain_completion' : ActorMethod<
777
+ [string, string, string],
778
+ Result
779
+ >,
780
+ 'joinAsBotByInviteCode' : ActorMethod<[string, string], Result_6>,
781
+ 'joinTransactionByInviteCode' : ActorMethod<[string], Result_6>,
782
+ 'joinTransactionByInviteCodeAsBuyer' : ActorMethod<[string], Result_6>,
783
+ /**
784
+ * / Caller-initiated removal from a transaction they joined but didn't
785
+ * / create. Counterpart to `removeParty` (which is seller/admin-driven and
786
+ * / gated against primary parties) — this is the "I want out" path for a
787
+ * / joined buyer or any other access-list member.
788
+ * / Gates:
789
+ * / - Anonymous callers rejected outright.
790
+ * / - Seller / createdBy cannot leave their own transaction (they
791
+ * / dispose via deleteTransaction).
792
+ * / - Caller must currently have access to the transaction.
793
+ * / - Locked after contract exchange (same posture as assignBuyer):
794
+ * / once the deal is signed nobody walks away by toggling a button.
795
+ * / Effects:
796
+ * / - Caller is removed from `accessList`.
797
+ * / - If the caller is the assigned buyer (`txn.buyer == msg.caller`),
798
+ * / the buyer slot is reset to the seller placeholder, matching the
799
+ * / sentinel state that `assignBuyer` checks for. The transaction
800
+ * / re-enters the "Awaiting buyer" state and the invite code is
801
+ * / reusable by a new joiner.
802
+ * / - Audit event `buyer_left` (or `party_left` for non-buyer leavers)
803
+ * / is logged via the existing ledger pattern.
804
+ * / Concurrency: uses the same acquireTxLock/finally releaseTxLock
805
+ * / posture as assignBuyer so a leave can't race against an in-flight
806
+ * / stage write.
807
+ */
808
+ 'leaveTransaction' : ActorMethod<[string], Result>,
809
+ 'linkTransactionToChain' : ActorMethod<[string, string], Result_1>,
810
+ 'markAllNotificationsRead' : ActorMethod<[], bigint>,
811
+ 'markContractDrafted' : ActorMethod<[string], Result_1>,
812
+ 'markNotificationRead' : ActorMethod<[bigint], Result_1>,
813
+ 'markSearchesOrdered' : ActorMethod<[string], Result_1>,
814
+ /**
815
+ * / Heal developer-plot transactions whose `seller` doesn't match the
816
+ * / org's current developer principal. Two cases this addresses:
817
+ * / 1. Pre-migration txs (seller = buyer placeholder) created before the
818
+ * / developer-on-chain work landed.
819
+ * / 2. Stale-pin txs where the org's pinned principal changed after the
820
+ * / tx was created (e.g. admin password reset → new ICP key, or org
821
+ * / ownership transferred to a different admin).
822
+ * / Idempotent over the target: re-running with the same developerPrincipal
823
+ * / returns an error (already at target), so admin-driven backfill scripts
824
+ * / don't silently re-touch state. Always rejects:
825
+ * / - non-development mode txs
826
+ * / - developerPrincipal == buyer (would break Principal.equal checks)
827
+ * / - anonymous principal
828
+ */
829
+ 'migrateDevPlotSeller' : ActorMethod<[string, Principal], Result>,
830
+ 'onDocumentRegistered' : ActorMethod<
831
+ [string, string, string, Principal],
832
+ undefined
833
+ >,
834
+ 'on_blockchain_completion_success' : ActorMethod<[string], Result>,
835
+ 'pollAllPendingApplications' : ActorMethod<[], Result_3>,
836
+ 'pollApplicationStatus' : ActorMethod<[string], Result_5>,
837
+ /**
838
+ * / Closes #31 (TOCTOU): per-transaction lock blocks concurrent solicitors
839
+ * / from racing to record exchange while canModifyTransaction await is in flight.
840
+ */
841
+ 'recordContractExchange' : ActorMethod<[string, string, string], Result>,
842
+ 'recordConveyancerSelected' : ActorMethod<
843
+ [string, string, string, bigint],
844
+ Result_1
845
+ >,
846
+ 'recordFormUpload' : ActorMethod<[string, string, string, string], Result_1>,
847
+ 'recordHmlrFetched' : ActorMethod<[string, string, string], Result_1>,
848
+ /**
849
+ * / Record a single party's signature on-chain.
850
+ * / The canister identifies the caller as buyer or seller from the transaction principals.
851
+ * / When both parties have signed, the status auto-advances to #exchanged.
852
+ * / Closes #31 (TOCTOU): per-transaction lock blocks concurrent mutation
853
+ * / (buyer + seller racing to sign) while canModifyTransaction await is in flight.
854
+ */
855
+ 'recordPartySignature' : ActorMethod<[string, string, string], Result>,
856
+ 'recordQuoteReceived' : ActorMethod<
857
+ [string, string, string, bigint],
858
+ Result_1
859
+ >,
860
+ 'recordDocShared' : ActorMethod<[string, string, string], Result_1>,
861
+ 'recordDocShareRevoked' : ActorMethod<[string, string, string], Result_1>,
862
+ 'recordQuoteRequested' : ActorMethod<[string, string], Result_1>,
863
+ /**
864
+ * / Closes #31 (TOCTOU): per-transaction lock blocks concurrent mutation
865
+ * / while the isAdmin await is in flight.
866
+ */
867
+ 'recordRequisition' : ActorMethod<[string, Requisition], Result_1>,
868
+ 'removeParty' : ActorMethod<[string, Principal], Result_1>,
869
+ 'removeSolicitor' : ActorMethod<
870
+ [string, { 'seller' : null } | { 'buyer' : null }],
871
+ Result_1
872
+ >,
873
+ 'requestOfficialSearch' : ActorMethod<[string], Result_4>,
874
+ /**
875
+ * / Closes #31 (TOCTOU): per-transaction lock blocks concurrent mutation
876
+ * / while canModifyTransaction await is in flight.
877
+ */
878
+ 'respondToRequisition' : ActorMethod<
879
+ [string, string, string, Array<string>],
880
+ Result_1
881
+ >,
882
+ 'revokeBuyer' : ActorMethod<[string, Principal], Result>,
883
+ 'runCrossReference' : ActorMethod<[string], Result_3>,
884
+ 'setDocumentStorageCanister' : ActorMethod<[Principal], Result>,
885
+ 'setFlowState' : ActorMethod<[string, string], Result>,
886
+ 'setLandRegistryCanister' : ActorMethod<[string], Result>,
887
+ 'setLedgerManagerCanister' : ActorMethod<[string], Result>,
888
+ 'setListingData' : ActorMethod<[string, string], Result>,
889
+ 'setPropertyRegistryCanister' : ActorMethod<[string], Result>,
890
+ 'setUserManagementCanister' : ActorMethod<[string], Result>,
891
+ 'trigger_land_registry_submission' : ActorMethod<[string], Result>,
892
+ 'updatePartyAMLDoc' : ActorMethod<[string, Principal, string], Result_2>,
893
+ 'updateSolicitorTaskStatus' : ActorMethod<
894
+ [string, SolicitorTaskType, SolicitorTaskStatus, [] | [string]],
895
+ Result_1
896
+ >,
897
+ 'updateSolicitorVerification' : ActorMethod<
898
+ [string, { 'seller' : null } | { 'buyer' : null }, boolean],
899
+ Result_1
900
+ >,
901
+ 'updateTA10' : ActorMethod<[string, TA10FittingsAndContents], Result_1>,
902
+ 'updateTA6' : ActorMethod<[string, TA6PropertyInformation], Result_1>,
903
+ 'updateTA7' : ActorMethod<[string, TA7LeaseholdInformation], Result_1>,
904
+ 'updateTitleNumber' : ActorMethod<[string, string], Result>,
905
+ 'updateTransactionStatus' : ActorMethod<[bigint, string], boolean>,
906
+ 'update_land_registry_status' : ActorMethod<
907
+ [string, LandRegistryStatus, [] | [string], [] | [bigint]],
908
+ Result
909
+ >,
910
+ }
911
+ export declare const idlFactory: IDL.InterfaceFactory;
912
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];