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