@propxchain/core-client 0.1.0-canary.3
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/README.md +115 -0
- package/dist/canisters/document_storage/document_storage.did.d.ts +7 -0
- package/dist/canisters/document_storage/document_storage.did.d.ts.map +1 -0
- package/dist/canisters/document_storage/document_storage.did.js +82 -0
- package/dist/canisters/document_storage/document_storage.did.js.map +1 -0
- package/dist/canisters/document_storage/index.d.ts +4 -0
- package/dist/canisters/document_storage/index.d.ts.map +1 -0
- package/dist/canisters/document_storage/index.js +2 -0
- package/dist/canisters/document_storage/index.js.map +1 -0
- package/dist/canisters/ledger_manager/index.d.ts +4 -0
- package/dist/canisters/ledger_manager/index.d.ts.map +1 -0
- package/dist/canisters/ledger_manager/index.js +2 -0
- package/dist/canisters/ledger_manager/index.js.map +1 -0
- package/dist/canisters/ledger_manager/ledger_manager.did.d.ts +7 -0
- package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +1 -0
- package/dist/canisters/ledger_manager/ledger_manager.did.js +138 -0
- package/dist/canisters/ledger_manager/ledger_manager.did.js.map +1 -0
- package/dist/canisters/transaction_manager/index.d.ts +4 -0
- package/dist/canisters/transaction_manager/index.d.ts.map +1 -0
- package/dist/canisters/transaction_manager/index.js +2 -0
- package/dist/canisters/transaction_manager/index.js.map +1 -0
- package/dist/canisters/transaction_manager/transaction_manager.did.d.ts +7 -0
- package/dist/canisters/transaction_manager/transaction_manager.did.d.ts.map +1 -0
- package/dist/canisters/transaction_manager/transaction_manager.did.js +515 -0
- package/dist/canisters/transaction_manager/transaction_manager.did.js.map +1 -0
- package/dist/canisters/user_management/index.d.ts +4 -0
- package/dist/canisters/user_management/index.d.ts.map +1 -0
- package/dist/canisters/user_management/index.js +2 -0
- package/dist/canisters/user_management/index.js.map +1 -0
- package/dist/canisters/user_management/user_management.did.d.ts +7 -0
- package/dist/canisters/user_management/user_management.did.d.ts.map +1 -0
- package/dist/canisters/user_management/user_management.did.js +137 -0
- package/dist/canisters/user_management/user_management.did.js.map +1 -0
- package/dist/client.d.ts +13 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +41 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +8 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +22 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/mock.d.ts +22 -0
- package/dist/mock.d.ts.map +1 -0
- package/dist/mock.js +94 -0
- package/dist/mock.js.map +1 -0
- package/dist/retry.d.ts +11 -0
- package/dist/retry.d.ts.map +1 -0
- package/dist/retry.js +22 -0
- package/dist/retry.js.map +1 -0
- package/dist/stubs.d.ts +34 -0
- package/dist/stubs.d.ts.map +1 -0
- package/dist/stubs.js +17 -0
- package/dist/stubs.js.map +1 -0
- package/dist/types.d.ts +30 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +7 -0
- package/dist/types.js.map +1 -0
- package/package.json +58 -0
- package/src/canisters/document_storage/document_storage.did +89 -0
- package/src/canisters/document_storage/document_storage.did.d.ts +82 -0
- package/src/canisters/document_storage/document_storage.did.js +121 -0
- package/src/canisters/document_storage/index.ts +5 -0
- package/src/canisters/ledger_manager/index.ts +5 -0
- package/src/canisters/ledger_manager/ledger_manager.did +154 -0
- package/src/canisters/ledger_manager/ledger_manager.did.d.ts +139 -0
- package/src/canisters/ledger_manager/ledger_manager.did.js +181 -0
- package/src/canisters/transaction_manager/index.ts +5 -0
- package/src/canisters/transaction_manager/transaction_manager.did +599 -0
- package/src/canisters/transaction_manager/transaction_manager.did.d.ts +517 -0
- package/src/canisters/transaction_manager/transaction_manager.did.js +638 -0
- package/src/canisters/user_management/index.ts +5 -0
- package/src/canisters/user_management/user_management.did +147 -0
- package/src/canisters/user_management/user_management.did.d.ts +148 -0
- package/src/canisters/user_management/user_management.did.js +192 -0
- package/src/client.ts +77 -0
- package/src/errors.ts +31 -0
- package/src/index.ts +30 -0
- package/src/mock.ts +120 -0
- package/src/retry.ts +44 -0
- package/src/stubs.ts +60 -0
- package/src/types.ts +44 -0
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
type TransactionTimeline =
|
|
2
|
+
record {
|
|
3
|
+
blockchainCompletedAt: opt int;
|
|
4
|
+
completionInitiatedAt: opt int;
|
|
5
|
+
createdAt: int;
|
|
6
|
+
exchangedAt: opt int;
|
|
7
|
+
landRegistryRegisteredAt: opt int;
|
|
8
|
+
totalTimeIncludingLR: nat;
|
|
9
|
+
totalTimeToCompletion: nat;
|
|
10
|
+
};
|
|
11
|
+
type TransactionStatus =
|
|
12
|
+
variant {
|
|
13
|
+
active;
|
|
14
|
+
blockchain_completed;
|
|
15
|
+
completion_initiated;
|
|
16
|
+
exchanged;
|
|
17
|
+
land_registry_registered;
|
|
18
|
+
};
|
|
19
|
+
type TransactionPartyRole =
|
|
20
|
+
variant {
|
|
21
|
+
primary_buyer;
|
|
22
|
+
primary_seller;
|
|
23
|
+
secondary_buyer;
|
|
24
|
+
secondary_seller;
|
|
25
|
+
};
|
|
26
|
+
type TransactionPartyProgress =
|
|
27
|
+
record {
|
|
28
|
+
buyers: PartyProgress;
|
|
29
|
+
readyToExchange: bool;
|
|
30
|
+
sellers: PartyProgress;
|
|
31
|
+
};
|
|
32
|
+
type TransactionParty =
|
|
33
|
+
record {
|
|
34
|
+
amlComplete: bool;
|
|
35
|
+
amlStatus: AMLStatus;
|
|
36
|
+
email: text;
|
|
37
|
+
epcUploaded: bool;
|
|
38
|
+
isPrimary: bool;
|
|
39
|
+
joinedAt: Time;
|
|
40
|
+
mortgageAgreementUploaded: bool;
|
|
41
|
+
name: text;
|
|
42
|
+
"principal": principal;
|
|
43
|
+
proofOfAddressUploaded: bool;
|
|
44
|
+
proofOfFundsUploaded: bool;
|
|
45
|
+
proofOfIdentityUploaded: bool;
|
|
46
|
+
role: TransactionPartyRole;
|
|
47
|
+
ta10FormUploaded: bool;
|
|
48
|
+
ta6FormUploaded: bool;
|
|
49
|
+
titleDeedsUploaded: bool;
|
|
50
|
+
};
|
|
51
|
+
type Transaction =
|
|
52
|
+
record {
|
|
53
|
+
accessList: vec principal;
|
|
54
|
+
amount: nat64;
|
|
55
|
+
blockchainCompletedAt: opt int;
|
|
56
|
+
blockchainCompletionProof: opt text;
|
|
57
|
+
blockchainCompletionTimestamp: opt int;
|
|
58
|
+
buyer: principal;
|
|
59
|
+
buyerFundsHash: opt text;
|
|
60
|
+
buyerSolicitor: opt SolicitorRecord;
|
|
61
|
+
buyerSolicitorSignature: opt text;
|
|
62
|
+
buyers: opt vec TransactionParty;
|
|
63
|
+
chainPosition: opt nat;
|
|
64
|
+
chainedTransactions: vec text;
|
|
65
|
+
completionDate: text;
|
|
66
|
+
completionInitiatedAt: opt int;
|
|
67
|
+
completionStatementHash: opt text;
|
|
68
|
+
contractExchangeTimestamp: opt int;
|
|
69
|
+
createdAt: int;
|
|
70
|
+
createdBy: principal;
|
|
71
|
+
deposit: nat64;
|
|
72
|
+
exchangedAt: opt int;
|
|
73
|
+
id: text;
|
|
74
|
+
inviteCode: text;
|
|
75
|
+
landRegistryIntegration: LandRegistryIntegration;
|
|
76
|
+
landRegistryRegisteredAt: opt int;
|
|
77
|
+
linkToTransaction: opt text;
|
|
78
|
+
mode: text;
|
|
79
|
+
mortgageAmount: nat64;
|
|
80
|
+
oldStatus: text;
|
|
81
|
+
postcode: text;
|
|
82
|
+
previousOwner: text;
|
|
83
|
+
propertyAddress: text;
|
|
84
|
+
propertyCategory: text;
|
|
85
|
+
propertyId: text;
|
|
86
|
+
propertyType: text;
|
|
87
|
+
seller: principal;
|
|
88
|
+
sellerSolicitor: opt SolicitorRecord;
|
|
89
|
+
sellerSolicitorSignature: opt text;
|
|
90
|
+
sellers: opt vec TransactionParty;
|
|
91
|
+
solicitor: opt principal;
|
|
92
|
+
status: TransactionStatus;
|
|
93
|
+
titleNumber: text;
|
|
94
|
+
transactionType: text;
|
|
95
|
+
userRole: text;
|
|
96
|
+
};
|
|
97
|
+
type Time = int;
|
|
98
|
+
type TA7LeaseholdInformation =
|
|
99
|
+
record {
|
|
100
|
+
alterationsAllowed: bool;
|
|
101
|
+
completedAt: opt int;
|
|
102
|
+
completedBy: principal;
|
|
103
|
+
freeholder: text;
|
|
104
|
+
groundRentAmount: nat;
|
|
105
|
+
groundRentPaymentFrequency: text;
|
|
106
|
+
lastModifiedAt: int;
|
|
107
|
+
lastModifiedBy: principal;
|
|
108
|
+
leaseExpiryDate: text;
|
|
109
|
+
leaseStartDate: text;
|
|
110
|
+
leaseTermYears: nat;
|
|
111
|
+
managingAgent: opt text;
|
|
112
|
+
petsAllowed: bool;
|
|
113
|
+
restrictions: text;
|
|
114
|
+
serviceChargeAmount: nat;
|
|
115
|
+
serviceChargePaymentFrequency: text;
|
|
116
|
+
sublettingAllowed: bool;
|
|
117
|
+
};
|
|
118
|
+
type TA6PropertyInformation =
|
|
119
|
+
record {
|
|
120
|
+
alterations: opt TA6Alterations;
|
|
121
|
+
boundaries: text;
|
|
122
|
+
boundaryDisputes: opt TA6BoundaryDisputes;
|
|
123
|
+
completedAt: opt int;
|
|
124
|
+
completedBy: principal;
|
|
125
|
+
connectionAgreements: text;
|
|
126
|
+
disputes: opt TA6Disputes;
|
|
127
|
+
environmentalDetails: text;
|
|
128
|
+
environmentalIssues: vec text;
|
|
129
|
+
estateManagement: opt TA6EstateManagement;
|
|
130
|
+
guarantees: text;
|
|
131
|
+
insurance: text;
|
|
132
|
+
lastModifiedAt: int;
|
|
133
|
+
lastModifiedBy: principal;
|
|
134
|
+
notices: opt TA6Notices;
|
|
135
|
+
otherInformation: text;
|
|
136
|
+
parkingDetails: text;
|
|
137
|
+
parkingSpaces: nat;
|
|
138
|
+
rightsAndEasements: text;
|
|
139
|
+
services: text;
|
|
140
|
+
};
|
|
141
|
+
type TA6Notices =
|
|
142
|
+
record {
|
|
143
|
+
details: text;
|
|
144
|
+
noticeType: text;
|
|
145
|
+
};
|
|
146
|
+
type TA6EstateManagement =
|
|
147
|
+
record {
|
|
148
|
+
annualCharge: nat;
|
|
149
|
+
isManaged: bool;
|
|
150
|
+
managementCompany: text;
|
|
151
|
+
};
|
|
152
|
+
type TA6Disputes =
|
|
153
|
+
record {
|
|
154
|
+
details: text;
|
|
155
|
+
disputeType: text;
|
|
156
|
+
};
|
|
157
|
+
type TA6BoundaryDisputes =
|
|
158
|
+
record {
|
|
159
|
+
details: text;
|
|
160
|
+
hasDisputes: bool;
|
|
161
|
+
};
|
|
162
|
+
type TA6Alterations =
|
|
163
|
+
record {
|
|
164
|
+
details: text;
|
|
165
|
+
hasAlterations: bool;
|
|
166
|
+
requiresPermission: bool;
|
|
167
|
+
};
|
|
168
|
+
type TA10Room =
|
|
169
|
+
record {
|
|
170
|
+
fittings: vec TA10FittingItem;
|
|
171
|
+
roomName: text;
|
|
172
|
+
};
|
|
173
|
+
type TA10FittingsAndContents =
|
|
174
|
+
record {
|
|
175
|
+
additionalItems: text;
|
|
176
|
+
completedAt: opt int;
|
|
177
|
+
completedBy: principal;
|
|
178
|
+
lastModifiedAt: int;
|
|
179
|
+
lastModifiedBy: principal;
|
|
180
|
+
outdoorItems: vec TA10FittingItem;
|
|
181
|
+
rooms: vec TA10Room;
|
|
182
|
+
};
|
|
183
|
+
type TA10FittingItem =
|
|
184
|
+
record {
|
|
185
|
+
included: bool;
|
|
186
|
+
item: text;
|
|
187
|
+
notes: opt text;
|
|
188
|
+
};
|
|
189
|
+
type SolicitorTaskType =
|
|
190
|
+
variant {
|
|
191
|
+
ap1_submission;
|
|
192
|
+
identity_certification;
|
|
193
|
+
tr1_preparation;
|
|
194
|
+
};
|
|
195
|
+
type SolicitorTaskStatus =
|
|
196
|
+
variant {
|
|
197
|
+
completed;
|
|
198
|
+
confirmed_by_client;
|
|
199
|
+
in_progress;
|
|
200
|
+
pending;
|
|
201
|
+
};
|
|
202
|
+
type SolicitorTask =
|
|
203
|
+
record {
|
|
204
|
+
completedAt: opt Time;
|
|
205
|
+
evidenceDocId: opt text;
|
|
206
|
+
priceGBP: nat;
|
|
207
|
+
startedAt: opt Time;
|
|
208
|
+
status: SolicitorTaskStatus;
|
|
209
|
+
taskType: SolicitorTaskType;
|
|
210
|
+
};
|
|
211
|
+
type SolicitorRecord =
|
|
212
|
+
record {
|
|
213
|
+
actingFor: variant {
|
|
214
|
+
both;
|
|
215
|
+
buyer;
|
|
216
|
+
seller;
|
|
217
|
+
};
|
|
218
|
+
consentRecordedAt: Time;
|
|
219
|
+
email: text;
|
|
220
|
+
firmName: text;
|
|
221
|
+
joinedAt: Time;
|
|
222
|
+
name: text;
|
|
223
|
+
piiCertUploaded: bool;
|
|
224
|
+
"principal": principal;
|
|
225
|
+
regNumber: text;
|
|
226
|
+
regulatoryBody: RegulatoryBody;
|
|
227
|
+
removalRequested: bool;
|
|
228
|
+
tasks: vec SolicitorTask;
|
|
229
|
+
verified: bool;
|
|
230
|
+
};
|
|
231
|
+
type Result_9 =
|
|
232
|
+
variant {
|
|
233
|
+
err: text;
|
|
234
|
+
ok: vec Transaction;
|
|
235
|
+
};
|
|
236
|
+
type Result_8 =
|
|
237
|
+
variant {
|
|
238
|
+
err: text;
|
|
239
|
+
ok: vec Notification;
|
|
240
|
+
};
|
|
241
|
+
type Result_7 =
|
|
242
|
+
variant {
|
|
243
|
+
err: text;
|
|
244
|
+
ok: record {
|
|
245
|
+
buyers: vec TransactionParty;
|
|
246
|
+
sellers: vec TransactionParty;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
type Result_6 =
|
|
250
|
+
variant {
|
|
251
|
+
err: text;
|
|
252
|
+
ok: Transaction;
|
|
253
|
+
};
|
|
254
|
+
type Result_5 =
|
|
255
|
+
variant {
|
|
256
|
+
err: text;
|
|
257
|
+
ok: nat;
|
|
258
|
+
};
|
|
259
|
+
type Result_4 =
|
|
260
|
+
variant {
|
|
261
|
+
err: text;
|
|
262
|
+
ok: ApplicationStatusUpdate;
|
|
263
|
+
};
|
|
264
|
+
type Result_3 =
|
|
265
|
+
variant {
|
|
266
|
+
err: text;
|
|
267
|
+
ok: OfficialSearchResult;
|
|
268
|
+
};
|
|
269
|
+
type Result_2 =
|
|
270
|
+
variant {
|
|
271
|
+
err: text;
|
|
272
|
+
ok: TransactionParty;
|
|
273
|
+
};
|
|
274
|
+
type Result_18 =
|
|
275
|
+
variant {
|
|
276
|
+
err: text;
|
|
277
|
+
ok: record {
|
|
278
|
+
text;
|
|
279
|
+
text;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
type Result_17 =
|
|
283
|
+
variant {
|
|
284
|
+
err: text;
|
|
285
|
+
ok: Phase;
|
|
286
|
+
};
|
|
287
|
+
type Result_16 =
|
|
288
|
+
variant {
|
|
289
|
+
err: text;
|
|
290
|
+
ok: TransactionPartyProgress;
|
|
291
|
+
};
|
|
292
|
+
type Result_15 =
|
|
293
|
+
variant {
|
|
294
|
+
err: text;
|
|
295
|
+
ok: PhaseMilestones;
|
|
296
|
+
};
|
|
297
|
+
type Result_14 =
|
|
298
|
+
variant {
|
|
299
|
+
err: text;
|
|
300
|
+
ok:
|
|
301
|
+
record {
|
|
302
|
+
buyerSolicitor: opt SolicitorRecord;
|
|
303
|
+
sellerSolicitor: opt SolicitorRecord;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
type Result_13 =
|
|
307
|
+
variant {
|
|
308
|
+
err: text;
|
|
309
|
+
ok: opt TA10FittingsAndContents;
|
|
310
|
+
};
|
|
311
|
+
type Result_12 =
|
|
312
|
+
variant {
|
|
313
|
+
err: text;
|
|
314
|
+
ok: opt TA6PropertyInformation;
|
|
315
|
+
};
|
|
316
|
+
type Result_11 =
|
|
317
|
+
variant {
|
|
318
|
+
err: text;
|
|
319
|
+
ok: opt TA7LeaseholdInformation;
|
|
320
|
+
};
|
|
321
|
+
type Result_10 =
|
|
322
|
+
variant {
|
|
323
|
+
err: text;
|
|
324
|
+
ok: vec BotConnection;
|
|
325
|
+
};
|
|
326
|
+
type Result_1 =
|
|
327
|
+
variant {
|
|
328
|
+
err: text;
|
|
329
|
+
ok;
|
|
330
|
+
};
|
|
331
|
+
type Result =
|
|
332
|
+
variant {
|
|
333
|
+
err: text;
|
|
334
|
+
ok: text;
|
|
335
|
+
};
|
|
336
|
+
type Requisition =
|
|
337
|
+
record {
|
|
338
|
+
category: text;
|
|
339
|
+
description: text;
|
|
340
|
+
isResolved: bool;
|
|
341
|
+
raisedAt: int;
|
|
342
|
+
requisitionId: text;
|
|
343
|
+
resolvedAt: opt int;
|
|
344
|
+
respondedAt: opt int;
|
|
345
|
+
responseText: opt text;
|
|
346
|
+
};
|
|
347
|
+
type RegulatoryBody =
|
|
348
|
+
variant {
|
|
349
|
+
clc;
|
|
350
|
+
sra;
|
|
351
|
+
};
|
|
352
|
+
type PhaseMilestones =
|
|
353
|
+
record {
|
|
354
|
+
contractDraftedAt: opt int;
|
|
355
|
+
searchesOrderedAt: opt int;
|
|
356
|
+
};
|
|
357
|
+
type Phase =
|
|
358
|
+
variant {
|
|
359
|
+
buyerSetup;
|
|
360
|
+
completed;
|
|
361
|
+
preCompletion;
|
|
362
|
+
preContract;
|
|
363
|
+
searches;
|
|
364
|
+
sellerPrep;
|
|
365
|
+
};
|
|
366
|
+
type PartyProgress =
|
|
367
|
+
record {
|
|
368
|
+
allAMLComplete: bool;
|
|
369
|
+
completedParties: nat;
|
|
370
|
+
overallProgress: nat;
|
|
371
|
+
parties: vec TransactionParty;
|
|
372
|
+
totalParties: nat;
|
|
373
|
+
};
|
|
374
|
+
type OfficialSearchResult =
|
|
375
|
+
record {
|
|
376
|
+
advisoryEntries: vec text;
|
|
377
|
+
certificateRef: text;
|
|
378
|
+
certificateTimestamp: text;
|
|
379
|
+
officialCopyTimestamp: opt text;
|
|
380
|
+
priorityExpiry: text;
|
|
381
|
+
registerChanged: bool;
|
|
382
|
+
};
|
|
383
|
+
type Notification =
|
|
384
|
+
record {
|
|
385
|
+
createdAt: Time;
|
|
386
|
+
docType: text;
|
|
387
|
+
documentHash: text;
|
|
388
|
+
id: nat;
|
|
389
|
+
message: text;
|
|
390
|
+
read: bool;
|
|
391
|
+
recipient: principal;
|
|
392
|
+
transactionId: text;
|
|
393
|
+
uploadedBy: principal;
|
|
394
|
+
};
|
|
395
|
+
type LandRegistryStatus =
|
|
396
|
+
variant {
|
|
397
|
+
application_received;
|
|
398
|
+
cancelled;
|
|
399
|
+
completed_with_notes;
|
|
400
|
+
failed;
|
|
401
|
+
not_initiated;
|
|
402
|
+
official_search_completed;
|
|
403
|
+
official_search_expired;
|
|
404
|
+
pending_official_search;
|
|
405
|
+
pending_submission;
|
|
406
|
+
pre_validation_failed;
|
|
407
|
+
queued_manual_processing;
|
|
408
|
+
registered;
|
|
409
|
+
rejected;
|
|
410
|
+
requisition_raised;
|
|
411
|
+
requisition_responded;
|
|
412
|
+
submitted;
|
|
413
|
+
under_examination;
|
|
414
|
+
};
|
|
415
|
+
type LandRegistryIntegration =
|
|
416
|
+
record {
|
|
417
|
+
advisoryEntries: vec text;
|
|
418
|
+
applicationFee: nat;
|
|
419
|
+
applicationReference: opt text;
|
|
420
|
+
caseworkerAssigned: opt bool;
|
|
421
|
+
estimatedCompletionDate: opt text;
|
|
422
|
+
estimatedLRCompletionTime: opt int;
|
|
423
|
+
landRegistryConfirmationNumber: opt text;
|
|
424
|
+
lastPolledAt: opt int;
|
|
425
|
+
lastUpdated: int;
|
|
426
|
+
lrPayloadID: opt text;
|
|
427
|
+
newTitleNumber: opt text;
|
|
428
|
+
officialSearchCertificateRef: opt text;
|
|
429
|
+
officialSearchCompletedAt: opt int;
|
|
430
|
+
officialSearchCost: nat;
|
|
431
|
+
officialSearchPriorityExpiry: opt int;
|
|
432
|
+
officialSearchRequestedAt: opt int;
|
|
433
|
+
pollCount: nat;
|
|
434
|
+
preValidationErrors: vec text;
|
|
435
|
+
registerChangedSinceSearch: opt bool;
|
|
436
|
+
registeredAt: opt int;
|
|
437
|
+
registrationNotes: vec text;
|
|
438
|
+
requisitions: vec Requisition;
|
|
439
|
+
status: LandRegistryStatus;
|
|
440
|
+
submissionResponseCode: opt nat;
|
|
441
|
+
submittedToLRAt: opt int;
|
|
442
|
+
totalLRCosts: nat;
|
|
443
|
+
};
|
|
444
|
+
type BotConnection =
|
|
445
|
+
record {
|
|
446
|
+
addedAt: int;
|
|
447
|
+
addedBy: principal;
|
|
448
|
+
name: text;
|
|
449
|
+
"principal": principal;
|
|
450
|
+
};
|
|
451
|
+
type ApplicationStatusUpdate =
|
|
452
|
+
record {
|
|
453
|
+
applicationReference: text;
|
|
454
|
+
currentStatus: LandRegistryStatus;
|
|
455
|
+
estimatedCompletionDate: opt text;
|
|
456
|
+
lastUpdated: text;
|
|
457
|
+
previousStatus: LandRegistryStatus;
|
|
458
|
+
statusChanged: bool;
|
|
459
|
+
};
|
|
460
|
+
type AMLStatus =
|
|
461
|
+
variant {
|
|
462
|
+
not_started;
|
|
463
|
+
pending;
|
|
464
|
+
rejected;
|
|
465
|
+
verified;
|
|
466
|
+
};
|
|
467
|
+
service : {
|
|
468
|
+
addParty: (transactionId: text, name: text, email: text, roleText:
|
|
469
|
+
text, isPrimary: bool) -> (Result_2);
|
|
470
|
+
adminForceDeleteTransaction: (transactionId: text) -> (Result);
|
|
471
|
+
assignBuyer: (transactionId: text, buyerPrincipal: principal) -> (Result);
|
|
472
|
+
assignSolicitor: (transactionId: text, solicitorPrincipal: principal) ->
|
|
473
|
+
(Result);
|
|
474
|
+
assignSolicitorRecord: (transactionId: text, solicitorRecord:
|
|
475
|
+
SolicitorRecord) -> (Result_1);
|
|
476
|
+
bootstrapDocumentStorageCanister: (canisterId: principal) -> (Result);
|
|
477
|
+
canAccessTransaction: (transactionId: text) -> (bool) query;
|
|
478
|
+
connectBot: (transactionId: text, botPrincipal: principal, botName:
|
|
479
|
+
text) -> (Result_1);
|
|
480
|
+
consumeLandRegistryNotification: (notificationType: text,
|
|
481
|
+
applicationReference: opt text, titleNumber: opt text, message: text,
|
|
482
|
+
_metadata: vec record {
|
|
483
|
+
text;
|
|
484
|
+
text;
|
|
485
|
+
}) -> (Result_1);
|
|
486
|
+
createTransaction: (propertyId: text, propertyAddress: text, postcode:
|
|
487
|
+
text, titleNumber: text, seller: principal, previousOwner: text, amount:
|
|
488
|
+
nat64, transactionType: text, userRole: text, propertyType: text,
|
|
489
|
+
propertyCategory: text, mode: text, deposit: nat64, mortgageAmount:
|
|
490
|
+
nat64, completionDate: text) -> (text);
|
|
491
|
+
createTransactionWithInvite: (propertyId: text, propertyAddress: text,
|
|
492
|
+
postcode: text, titleNumber: text, seller: principal, previousOwner:
|
|
493
|
+
text, amount: nat64, transactionType: text, userRole: text, propertyType:
|
|
494
|
+
text, propertyCategory: text, mode: text, deposit: nat64, mortgageAmount:
|
|
495
|
+
nat64, completionDate: text) -> (Result_18);
|
|
496
|
+
deleteTransaction: (transactionId: text) -> (Result);
|
|
497
|
+
disconnectBot: (transactionId: text, botPrincipal: principal) -> (Result_1);
|
|
498
|
+
doesTransactionExist: (transactionId: text) -> (bool) query;
|
|
499
|
+
getAllInviteCodes: () -> (vec record {
|
|
500
|
+
text;
|
|
501
|
+
text;
|
|
502
|
+
}) query;
|
|
503
|
+
getAllTransactions: () -> (vec Transaction) query;
|
|
504
|
+
getCurrentPhase: (transactionId: text) -> (Result_17) query;
|
|
505
|
+
getCycles: () -> (nat) query;
|
|
506
|
+
getDocumentStorageCanister: () -> (opt principal) query;
|
|
507
|
+
getExpiringSearches: (withinDays: nat) -> (vec Transaction) query;
|
|
508
|
+
getFlowState: (transactionId: text) -> (opt text) query;
|
|
509
|
+
getInviteCode: (transactionId: text) -> (Result) query;
|
|
510
|
+
getLandRegistryDetail: (transactionID: text) ->
|
|
511
|
+
(opt LandRegistryIntegration) query;
|
|
512
|
+
getListingData: (transactionId: text) -> (opt text) query;
|
|
513
|
+
getMyNotifications: () -> (vec Notification) query;
|
|
514
|
+
getMyTransactions: () -> (vec Transaction) query;
|
|
515
|
+
getOutstandingRequisitions: () -> (vec record {
|
|
516
|
+
text;
|
|
517
|
+
Requisition;
|
|
518
|
+
}) query;
|
|
519
|
+
getPartyProgress: (transactionId: text) -> (Result_16) query;
|
|
520
|
+
getPendingLRApplications: () -> (vec Transaction) query;
|
|
521
|
+
getPhaseMilestones: (transactionId: text) -> (Result_15) query;
|
|
522
|
+
getSolicitorStatus: (transactionId: text) -> (Result_14) query;
|
|
523
|
+
getTA10: (txId: text) -> (Result_13) query;
|
|
524
|
+
getTA6: (txId: text) -> (Result_12) query;
|
|
525
|
+
getTA7: (txId: text) -> (Result_11) query;
|
|
526
|
+
getTransaction: (id: text) -> (opt Transaction) query;
|
|
527
|
+
getTransactionBots: (transactionId: text) -> (Result_10) query;
|
|
528
|
+
getTransactionByInviteCode: (inviteCode: text) -> (opt Transaction);
|
|
529
|
+
getTransactionChain: (transactionId: text) -> (Result_9) query;
|
|
530
|
+
getTransactionNotifications: (transactionId: text) -> (Result_8) query;
|
|
531
|
+
getTransactionParties: (transactionId: text) -> (Result_7) query;
|
|
532
|
+
getTransactionsByStatus: (status: TransactionStatus) ->
|
|
533
|
+
(vec Transaction) query;
|
|
534
|
+
getTransactionsForPrincipal: ("principal": principal) ->
|
|
535
|
+
(vec Transaction) query;
|
|
536
|
+
getTransactionsNeedingSearch: () -> (vec Transaction) query;
|
|
537
|
+
getUnreadNotificationCount: () -> (nat) query;
|
|
538
|
+
getUnreadNotificationCountForPrincipal: ("principal": principal) ->
|
|
539
|
+
(nat) query;
|
|
540
|
+
getUserManagementCanister: () -> (text) query;
|
|
541
|
+
get_transaction_timeline: (transactionID: text) ->
|
|
542
|
+
(opt TransactionTimeline) query;
|
|
543
|
+
initiate_blockchain_completion: (transactionID: text, buyerFundsHash:
|
|
544
|
+
text, completionStatementHash: text) -> (Result);
|
|
545
|
+
joinTransactionByInviteCode: (inviteCode: text) -> (Result_6);
|
|
546
|
+
linkTransactionToChain: (myTransactionId: text, buyingTransactionId:
|
|
547
|
+
text) -> (Result_1);
|
|
548
|
+
markAllNotificationsRead: () -> (nat);
|
|
549
|
+
markContractDrafted: (transactionId: text) -> (Result_1);
|
|
550
|
+
markNotificationRead: (notificationId: nat) -> (Result_1);
|
|
551
|
+
markSearchesOrdered: (transactionId: text) -> (Result_1);
|
|
552
|
+
onDocumentRegistered: (transactionId: text, docType: text, documentHash:
|
|
553
|
+
text, uploadedBy: principal) -> ();
|
|
554
|
+
on_blockchain_completion_success: (transactionID: text) -> (Result);
|
|
555
|
+
pollAllPendingApplications: () -> (Result_5);
|
|
556
|
+
pollApplicationStatus: (transactionID: text) -> (Result_4);
|
|
557
|
+
recordContractExchange: (transactionID: text, buyerSolicitorSignature:
|
|
558
|
+
text, sellerSolicitorSignature: text) -> (Result);
|
|
559
|
+
recordFormUpload: (txId: text, formType: text, fileHash: text, fileName:
|
|
560
|
+
text) -> (Result_1);
|
|
561
|
+
/// Record a single party's signature on-chain.
|
|
562
|
+
/// The canister identifies the caller as buyer or seller from the transaction principals.
|
|
563
|
+
/// When both parties have signed, the status auto-advances to #exchanged.
|
|
564
|
+
recordPartySignature: (transactionID: text, signatureHash: text,
|
|
565
|
+
signingRole: text) -> (Result);
|
|
566
|
+
recordRequisition: (transactionID: text, requisition: Requisition) ->
|
|
567
|
+
(Result_1);
|
|
568
|
+
removeParty: (transactionId: text, partyPrincipal: principal) -> (Result_1);
|
|
569
|
+
removeSolicitor: (transactionId: text, side: variant {
|
|
570
|
+
buyer;
|
|
571
|
+
seller;
|
|
572
|
+
}) -> (Result_1);
|
|
573
|
+
requestOfficialSearch: (transactionID: text) -> (Result_3);
|
|
574
|
+
respondToRequisition: (transactionID: text, requisitionId: text,
|
|
575
|
+
responseText: text, _supportingDocumentHashes: vec text) -> (Result_1);
|
|
576
|
+
revokeBuyer: (transactionId: text, buyerPrincipal: principal) -> (Result);
|
|
577
|
+
setDocumentStorageCanister: (canisterId: principal) -> (Result);
|
|
578
|
+
setFlowState: (transactionId: text, jsonData: text) -> (Result);
|
|
579
|
+
setListingData: (transactionId: text, jsonData: text) -> (Result);
|
|
580
|
+
setUserManagementCanister: (canisterId: text) -> (Result);
|
|
581
|
+
trigger_land_registry_submission: (transactionID: text) -> (Result);
|
|
582
|
+
updatePartyAMLDoc: (transactionId: text, partyPrincipal: principal,
|
|
583
|
+
docType: text) -> (Result_2);
|
|
584
|
+
updateSolicitorTaskStatus: (transactionId: text, taskType:
|
|
585
|
+
SolicitorTaskType, newStatus: SolicitorTaskStatus, evidenceDocId:
|
|
586
|
+
opt text) -> (Result_1);
|
|
587
|
+
updateSolicitorVerification: (transactionId: text, side:
|
|
588
|
+
variant {
|
|
589
|
+
buyer;
|
|
590
|
+
seller;
|
|
591
|
+
}, verified: bool) -> (Result_1);
|
|
592
|
+
updateTA10: (txId: text, data: TA10FittingsAndContents) -> (Result_1);
|
|
593
|
+
updateTA6: (txId: text, data: TA6PropertyInformation) -> (Result_1);
|
|
594
|
+
updateTA7: (txId: text, data: TA7LeaseholdInformation) -> (Result_1);
|
|
595
|
+
updateTransactionStatus: (transactionId: nat, newStatus: text) -> (bool);
|
|
596
|
+
update_land_registry_status: (transactionID: text, lrStatus:
|
|
597
|
+
LandRegistryStatus, confirmationNumber: opt text, estimatedCompletionTime:
|
|
598
|
+
opt int) -> (Result);
|
|
599
|
+
}
|