@propxchain/core-client 0.2.1-canary.21 → 0.2.1-canary.22
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/package.json +1 -1
- package/src/canisters/document_storage/document_storage.did +159 -159
- package/src/canisters/document_storage/document_storage.did.d.ts +159 -159
- package/src/canisters/document_storage/document_storage.did.js +230 -230
- package/src/canisters/document_verification/document_verification.did +248 -248
- package/src/canisters/document_verification/document_verification.did.d.ts +236 -236
- package/src/canisters/document_verification/document_verification.did.js +299 -299
- package/src/canisters/email_service/email_service.did +86 -86
- package/src/canisters/email_service/email_service.did.d.ts +92 -92
- package/src/canisters/email_service/email_service.did.js +131 -131
- package/src/canisters/land_registry_integration/land_registry_integration.did +395 -395
- package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +331 -331
- package/src/canisters/land_registry_integration/land_registry_integration.did.js +384 -384
- package/src/canisters/ledger_manager/ledger_manager.did +232 -232
- package/src/canisters/ledger_manager/ledger_manager.did.d.ts +205 -205
- package/src/canisters/ledger_manager/ledger_manager.did.js +256 -256
- package/src/canisters/property_registry/property_registry.did.d.ts +71 -71
- package/src/canisters/user_management/user_management.did +297 -297
- package/src/canisters/user_management/user_management.did.d.ts +267 -267
- package/src/canisters/user_management/user_management.did.js +352 -352
|
@@ -1,331 +1,331 @@
|
|
|
1
|
-
import type { Principal } from '@dfinity/principal';
|
|
2
|
-
import type { ActorMethod } from '@dfinity/agent';
|
|
3
|
-
import type { IDL } from '@dfinity/candid';
|
|
4
|
-
|
|
5
|
-
export interface AP1SubmissionRequest {
|
|
6
|
-
'transfereeNames' : Array<string>,
|
|
7
|
-
'transferAmount' : bigint,
|
|
8
|
-
'transferDate' : string,
|
|
9
|
-
'titleNumber' : string,
|
|
10
|
-
'transfereeAddress' : string,
|
|
11
|
-
'propertyAddress' : string,
|
|
12
|
-
'transferorAddress' : string,
|
|
13
|
-
'blockchainProofHash' : string,
|
|
14
|
-
'propertyPostcode' : string,
|
|
15
|
-
'conveyancerReference' : string,
|
|
16
|
-
'conveyancerAddress' : string,
|
|
17
|
-
'conveyancerSRANumber' : string,
|
|
18
|
-
'officialSearchRef' : string,
|
|
19
|
-
'transfereeType' : string,
|
|
20
|
-
'conveyancerName' : string,
|
|
21
|
-
'transferorNames' : Array<string>,
|
|
22
|
-
'applicationType' : string,
|
|
23
|
-
}
|
|
24
|
-
export interface AP1SubmissionResponse {
|
|
25
|
-
'httpStatus' : bigint,
|
|
26
|
-
'applicationReference' : string,
|
|
27
|
-
'message' : string,
|
|
28
|
-
'confirmationNumber' : string,
|
|
29
|
-
'estimatedCompletionDate' : [] | [string],
|
|
30
|
-
'scaleFePence' : bigint,
|
|
31
|
-
}
|
|
32
|
-
export type ActorType = { 'agent' : null } |
|
|
33
|
-
{ 'systemActor' : null } |
|
|
34
|
-
{ 'user' : null };
|
|
35
|
-
export interface ApplicationEnquiryResponse {
|
|
36
|
-
'completedDate' : [] | [string],
|
|
37
|
-
'status' : string,
|
|
38
|
-
'httpStatus' : bigint,
|
|
39
|
-
'lastUpdated' : string,
|
|
40
|
-
'applicationReference' : string,
|
|
41
|
-
'notes' : Array<string>,
|
|
42
|
-
'applicationDate' : string,
|
|
43
|
-
}
|
|
44
|
-
export interface AuditEntry {
|
|
45
|
-
'action' : string,
|
|
46
|
-
'actorType' : ActorType,
|
|
47
|
-
'delegatedBy' : [] | [Principal],
|
|
48
|
-
'timestamp' : bigint,
|
|
49
|
-
'details' : string,
|
|
50
|
-
'caller' : Principal,
|
|
51
|
-
'success' : boolean,
|
|
52
|
-
}
|
|
53
|
-
export type AuthenticationType = { 'api_key' : null } |
|
|
54
|
-
{ 'oauth2' : null };
|
|
55
|
-
export interface ConveyancerInfo {
|
|
56
|
-
'name' : string,
|
|
57
|
-
'contactEmail' : string,
|
|
58
|
-
'licenseNumber' : string,
|
|
59
|
-
}
|
|
60
|
-
export interface CostSummary {
|
|
61
|
-
'entryCount' : bigint,
|
|
62
|
-
'byEndpoint' : Array<[string, bigint]>,
|
|
63
|
-
'totalPence' : bigint,
|
|
64
|
-
'byTransaction' : Array<[string, bigint]>,
|
|
65
|
-
}
|
|
66
|
-
export interface CredentialStatus {
|
|
67
|
-
'isExpired' : boolean,
|
|
68
|
-
'isConfigured' : boolean,
|
|
69
|
-
'lastRotated' : [] | [bigint],
|
|
70
|
-
'environment' : [] | [Environment],
|
|
71
|
-
'daysSinceRotation' : [] | [bigint],
|
|
72
|
-
}
|
|
73
|
-
export interface ECDResponse {
|
|
74
|
-
'httpStatus' : bigint,
|
|
75
|
-
'applicationReference' : string,
|
|
76
|
-
'estimatedCompletionDate' : string,
|
|
77
|
-
'confidence' : [] | [string],
|
|
78
|
-
}
|
|
79
|
-
export type Environment = { 'sandbox' : null } |
|
|
80
|
-
{ 'production' : null };
|
|
81
|
-
export interface HttpHeader { 'value' : string, 'name' : string }
|
|
82
|
-
export interface HttpResponse {
|
|
83
|
-
'status' : bigint,
|
|
84
|
-
'body' : Uint8Array | number[],
|
|
85
|
-
'headers' : Array<HttpHeader>,
|
|
86
|
-
}
|
|
87
|
-
export interface LRNotification {
|
|
88
|
-
'titleNumber' : [] | [string],
|
|
89
|
-
'metadata' : Array<[string, string]>,
|
|
90
|
-
'notificationType' : string,
|
|
91
|
-
'applicationReference' : [] | [string],
|
|
92
|
-
'receivedAt' : bigint,
|
|
93
|
-
'message' : string,
|
|
94
|
-
}
|
|
95
|
-
export type LRStatus = { 'processing' : null } |
|
|
96
|
-
{ 'received' : null } |
|
|
97
|
-
{ 'failed' : null } |
|
|
98
|
-
{ 'registered' : null };
|
|
99
|
-
export interface LandRegistryAPICredentials {
|
|
100
|
-
'authenticationType' : AuthenticationType,
|
|
101
|
-
'lastValidated' : bigint,
|
|
102
|
-
'apiEndpoint' : string,
|
|
103
|
-
'apiKey' : string,
|
|
104
|
-
'environment' : Environment,
|
|
105
|
-
}
|
|
106
|
-
export interface LandRegistryAPIResponse {
|
|
107
|
-
'status' : LRStatus,
|
|
108
|
-
'registeredTimestamp' : [] | [bigint],
|
|
109
|
-
'processedTimestamp' : [] | [bigint],
|
|
110
|
-
'errorMessage' : [] | [string],
|
|
111
|
-
'receivedTimestamp' : bigint,
|
|
112
|
-
'responseID' : string,
|
|
113
|
-
'estimatedCompletionTime' : bigint,
|
|
114
|
-
'landRegistryConfirmationNumber' : string,
|
|
115
|
-
}
|
|
116
|
-
export interface LandRegistryStats {
|
|
117
|
-
'pending' : number,
|
|
118
|
-
'totalSubmissions' : number,
|
|
119
|
-
'avgTimeToRegistration' : number,
|
|
120
|
-
'successful' : number,
|
|
121
|
-
'failed' : number,
|
|
122
|
-
}
|
|
123
|
-
export interface LandRegistryTransactionRecord {
|
|
124
|
-
'status' : TransactionStatus,
|
|
125
|
-
'createdAt' : bigint,
|
|
126
|
-
'lastUpdated' : bigint,
|
|
127
|
-
'maxRetries' : number,
|
|
128
|
-
'landRegistryPayload' : OwnershipTransferPayload,
|
|
129
|
-
'retryCount' : number,
|
|
130
|
-
'nextRetryTime' : [] | [bigint],
|
|
131
|
-
'blockchainTransactionID' : string,
|
|
132
|
-
'apiResponse' : [] | [LandRegistryAPIResponse],
|
|
133
|
-
'transactionID' : string,
|
|
134
|
-
}
|
|
135
|
-
export interface NewOwnerInfo {
|
|
136
|
-
'name' : string,
|
|
137
|
-
'address' : string,
|
|
138
|
-
'contactEmail' : string,
|
|
139
|
-
}
|
|
140
|
-
export interface OfficialSearchResponse {
|
|
141
|
-
'httpStatus' : bigint,
|
|
142
|
-
'officialCopyTimestamp' : [] | [string],
|
|
143
|
-
'advisoryEntries' : Array<string>,
|
|
144
|
-
'documentStorageId' : [] | [bigint],
|
|
145
|
-
'certificatePdfHash' : [] | [string],
|
|
146
|
-
'registeredProprietorNames' : Array<string>,
|
|
147
|
-
'certificateTimestamp' : string,
|
|
148
|
-
'resultContainsAdvisoryEntries' : boolean,
|
|
149
|
-
'registerChangedSinceSearchFromDate' : boolean,
|
|
150
|
-
'priorityExpiry' : string,
|
|
151
|
-
'searchRef' : string,
|
|
152
|
-
}
|
|
153
|
-
export interface OwnershipTransferPayload {
|
|
154
|
-
'transactionDate' : bigint,
|
|
155
|
-
'postcode' : string,
|
|
156
|
-
'sellerSolicitorSignature' : string,
|
|
157
|
-
'buyerSolicitorSignature' : string,
|
|
158
|
-
'titleNumber' : string,
|
|
159
|
-
'newOwnerDetails' : NewOwnerInfo,
|
|
160
|
-
'blockchainCompletionProof' : string,
|
|
161
|
-
'previousOwner' : string,
|
|
162
|
-
'propertyAddress' : string,
|
|
163
|
-
'contractExchangeTimestamp' : bigint,
|
|
164
|
-
'blockchainProofHash' : string,
|
|
165
|
-
'transactionAmount' : bigint,
|
|
166
|
-
'transferID' : string,
|
|
167
|
-
'conveyancerDetails' : ConveyancerInfo,
|
|
168
|
-
'blockchainCompletionTimestamp' : bigint,
|
|
169
|
-
}
|
|
170
|
-
export type Period = { 'day' : null } |
|
|
171
|
-
{ 'month' : null } |
|
|
172
|
-
{ 'week' : null } |
|
|
173
|
-
{ 'year' : null };
|
|
174
|
-
export interface ProprietorData {
|
|
175
|
-
'title' : [] | [string],
|
|
176
|
-
'decoration' : [] | [string],
|
|
177
|
-
'forenames' : [] | [string],
|
|
178
|
-
'surname' : [] | [string],
|
|
179
|
-
'companyLocation' : [] | [string],
|
|
180
|
-
'organisationType' : [] | [string],
|
|
181
|
-
'proprietorName' : string,
|
|
182
|
-
'sequence' : bigint,
|
|
183
|
-
'proprietorType' : string,
|
|
184
|
-
}
|
|
185
|
-
export interface ProprietorNamesResponse {
|
|
186
|
-
'httpStatus' : bigint,
|
|
187
|
-
'titleStatusCode' : string,
|
|
188
|
-
'titleNumber' : string,
|
|
189
|
-
'proprietors' : Array<ProprietorData>,
|
|
190
|
-
'titleStatus' : string,
|
|
191
|
-
}
|
|
192
|
-
export interface RateLimitInfo {
|
|
193
|
-
'callsThisHour' : bigint,
|
|
194
|
-
'endpoint' : string,
|
|
195
|
-
'dayResetAt' : bigint,
|
|
196
|
-
'lastCallAt' : bigint,
|
|
197
|
-
'callsToday' : bigint,
|
|
198
|
-
'hourResetAt' : bigint,
|
|
199
|
-
}
|
|
200
|
-
export type Result = { 'ok' : boolean } |
|
|
201
|
-
{ 'err' : string };
|
|
202
|
-
export type Result_1 = { 'ok' : AP1SubmissionResponse } |
|
|
203
|
-
{ 'err' : string };
|
|
204
|
-
export type Result_10 = { 'ok' : ProprietorNamesResponse } |
|
|
205
|
-
{ 'err' : string };
|
|
206
|
-
export type Result_11 = { 'ok' : ECDResponse } |
|
|
207
|
-
{ 'err' : string };
|
|
208
|
-
export type Result_12 = { 'ok' : ApplicationEnquiryResponse } |
|
|
209
|
-
{ 'err' : string };
|
|
210
|
-
export type Result_2 = { 'ok' : string } |
|
|
211
|
-
{ 'err' : string };
|
|
212
|
-
export type Result_3 = { 'ok' : null } |
|
|
213
|
-
{ 'err' : string };
|
|
214
|
-
export type Result_4 = { 'ok' : OfficialSearchResponse } |
|
|
215
|
-
{ 'err' : string };
|
|
216
|
-
export type Result_5 = { 'ok' : bigint } |
|
|
217
|
-
{ 'err' : string };
|
|
218
|
-
export type Result_6 = { 'ok' : OwnershipTransferPayload } |
|
|
219
|
-
{ 'err' : string };
|
|
220
|
-
export type Result_7 = { 'ok' : Array<LRNotification> } |
|
|
221
|
-
{ 'err' : string };
|
|
222
|
-
export type Result_8 = { 'ok' : number } |
|
|
223
|
-
{ 'err' : string };
|
|
224
|
-
export type Result_9 = { 'ok' : LandRegistryAPIResponse } |
|
|
225
|
-
{ 'err' : string };
|
|
226
|
-
export type TransactionStatus = { 'sent_to_lr' : null } |
|
|
227
|
-
{ 'requires_manual_review' : null } |
|
|
228
|
-
{ 'pending_api_call' : null } |
|
|
229
|
-
{ 'confirmed' : null } |
|
|
230
|
-
{ 'failed' : null };
|
|
231
|
-
export interface TransformArgs {
|
|
232
|
-
'context' : Uint8Array | number[],
|
|
233
|
-
'response' : HttpResponse,
|
|
234
|
-
}
|
|
235
|
-
export interface _SERVICE {
|
|
236
|
-
'check_land_registry_status' : ActorMethod<
|
|
237
|
-
[string],
|
|
238
|
-
[] | [LandRegistryTransactionRecord]
|
|
239
|
-
>,
|
|
240
|
-
'configure_land_registry_api' : ActorMethod<
|
|
241
|
-
[LandRegistryAPICredentials],
|
|
242
|
-
Result_2
|
|
243
|
-
>,
|
|
244
|
-
'getApplicationStatus' : ActorMethod<[string], Result_12>,
|
|
245
|
-
'getAuditLog' : ActorMethod<[], Array<AuditEntry>>,
|
|
246
|
-
'getCredentialStatus' : ActorMethod<[], CredentialStatus>,
|
|
247
|
-
'getCycles' : ActorMethod<[], bigint>,
|
|
248
|
-
'getDailySpend' : ActorMethod<[], bigint>,
|
|
249
|
-
'getEstimatedCompletionDate' : ActorMethod<[string], Result_11>,
|
|
250
|
-
'getNotificationPollingStatus' : ActorMethod<
|
|
251
|
-
[],
|
|
252
|
-
{ 'enabled' : boolean, 'intervalSeconds' : bigint, 'lastPollAt' : bigint }
|
|
253
|
-
>,
|
|
254
|
-
'getRateLimitStatus' : ActorMethod<[], Array<[string, RateLimitInfo]>>,
|
|
255
|
-
'getRegisteredProprietorNames' : ActorMethod<[string], Result_10>,
|
|
256
|
-
'getTotalCosts' : ActorMethod<[bigint, bigint], CostSummary>,
|
|
257
|
-
'get_all_pending_land_registry_submissions' : ActorMethod<
|
|
258
|
-
[string],
|
|
259
|
-
Array<LandRegistryTransactionRecord>
|
|
260
|
-
>,
|
|
261
|
-
'get_all_transactions' : ActorMethod<
|
|
262
|
-
[],
|
|
263
|
-
Array<[string, LandRegistryTransactionRecord]>
|
|
264
|
-
>,
|
|
265
|
-
'get_land_registry_stats' : ActorMethod<[string, Period], LandRegistryStats>,
|
|
266
|
-
'get_land_registry_status' : ActorMethod<
|
|
267
|
-
[],
|
|
268
|
-
[] | [
|
|
269
|
-
{
|
|
270
|
-
'lastValidated' : bigint,
|
|
271
|
-
'apiEndpoint' : string,
|
|
272
|
-
'environment' : Environment,
|
|
273
|
-
}
|
|
274
|
-
]
|
|
275
|
-
>,
|
|
276
|
-
'get_lr_response' : ActorMethod<[string], Result_9>,
|
|
277
|
-
'log_land_registry_error' : ActorMethod<[string, string], Result_8>,
|
|
278
|
-
'pollNotifications' : ActorMethod<[], Result_7>,
|
|
279
|
-
'prepare_ownership_transfer_payload' : ActorMethod<
|
|
280
|
-
[
|
|
281
|
-
string,
|
|
282
|
-
string,
|
|
283
|
-
string,
|
|
284
|
-
string,
|
|
285
|
-
string,
|
|
286
|
-
string,
|
|
287
|
-
NewOwnerInfo,
|
|
288
|
-
ConveyancerInfo,
|
|
289
|
-
bigint,
|
|
290
|
-
string,
|
|
291
|
-
string,
|
|
292
|
-
string,
|
|
293
|
-
string,
|
|
294
|
-
bigint,
|
|
295
|
-
bigint,
|
|
296
|
-
],
|
|
297
|
-
Result_6
|
|
298
|
-
>,
|
|
299
|
-
'receive_land_registry_callback' : ActorMethod<
|
|
300
|
-
[LandRegistryAPIResponse],
|
|
301
|
-
Result_2
|
|
302
|
-
>,
|
|
303
|
-
'recordAuditEntry' : ActorMethod<
|
|
304
|
-
[ActorType, [] | [Principal], string, string, boolean],
|
|
305
|
-
Result_5
|
|
306
|
-
>,
|
|
307
|
-
'requestOfficialSearch' : ActorMethod<
|
|
308
|
-
[string, string, Array<string>, string],
|
|
309
|
-
Result_4
|
|
310
|
-
>,
|
|
311
|
-
'retry_failed_land_registry_transmission' : ActorMethod<[string], Result_2>,
|
|
312
|
-
'rotateCredentials' : ActorMethod<[string], Result_3>,
|
|
313
|
-
'send_to_land_registry' : ActorMethod<[string], Result_2>,
|
|
314
|
-
'setCredentials' : ActorMethod<
|
|
315
|
-
[string, string, string, Environment],
|
|
316
|
-
Result_3
|
|
317
|
-
>,
|
|
318
|
-
'setDailySpendLimit' : ActorMethod<[bigint], Result_3>,
|
|
319
|
-
'setNotificationPolling' : ActorMethod<[boolean, [] | [bigint]], Result_3>,
|
|
320
|
-
'setUserManagementCanisterId' : ActorMethod<[string], Result_3>,
|
|
321
|
-
'simulate_land_registry_processing' : ActorMethod<[string], Result_2>,
|
|
322
|
-
'submitApplicationToChangeRegister' : ActorMethod<
|
|
323
|
-
[AP1SubmissionRequest, string],
|
|
324
|
-
Result_1
|
|
325
|
-
>,
|
|
326
|
-
'transform' : ActorMethod<[TransformArgs], HttpResponse>,
|
|
327
|
-
'validate_land_registry_connection' : ActorMethod<[], Result>,
|
|
328
|
-
'verify_land_registry_receipt' : ActorMethod<[string], Result>,
|
|
329
|
-
}
|
|
330
|
-
export declare const idlFactory: IDL.InterfaceFactory;
|
|
331
|
-
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|
|
1
|
+
import type { Principal } from '@dfinity/principal';
|
|
2
|
+
import type { ActorMethod } from '@dfinity/agent';
|
|
3
|
+
import type { IDL } from '@dfinity/candid';
|
|
4
|
+
|
|
5
|
+
export interface AP1SubmissionRequest {
|
|
6
|
+
'transfereeNames' : Array<string>,
|
|
7
|
+
'transferAmount' : bigint,
|
|
8
|
+
'transferDate' : string,
|
|
9
|
+
'titleNumber' : string,
|
|
10
|
+
'transfereeAddress' : string,
|
|
11
|
+
'propertyAddress' : string,
|
|
12
|
+
'transferorAddress' : string,
|
|
13
|
+
'blockchainProofHash' : string,
|
|
14
|
+
'propertyPostcode' : string,
|
|
15
|
+
'conveyancerReference' : string,
|
|
16
|
+
'conveyancerAddress' : string,
|
|
17
|
+
'conveyancerSRANumber' : string,
|
|
18
|
+
'officialSearchRef' : string,
|
|
19
|
+
'transfereeType' : string,
|
|
20
|
+
'conveyancerName' : string,
|
|
21
|
+
'transferorNames' : Array<string>,
|
|
22
|
+
'applicationType' : string,
|
|
23
|
+
}
|
|
24
|
+
export interface AP1SubmissionResponse {
|
|
25
|
+
'httpStatus' : bigint,
|
|
26
|
+
'applicationReference' : string,
|
|
27
|
+
'message' : string,
|
|
28
|
+
'confirmationNumber' : string,
|
|
29
|
+
'estimatedCompletionDate' : [] | [string],
|
|
30
|
+
'scaleFePence' : bigint,
|
|
31
|
+
}
|
|
32
|
+
export type ActorType = { 'agent' : null } |
|
|
33
|
+
{ 'systemActor' : null } |
|
|
34
|
+
{ 'user' : null };
|
|
35
|
+
export interface ApplicationEnquiryResponse {
|
|
36
|
+
'completedDate' : [] | [string],
|
|
37
|
+
'status' : string,
|
|
38
|
+
'httpStatus' : bigint,
|
|
39
|
+
'lastUpdated' : string,
|
|
40
|
+
'applicationReference' : string,
|
|
41
|
+
'notes' : Array<string>,
|
|
42
|
+
'applicationDate' : string,
|
|
43
|
+
}
|
|
44
|
+
export interface AuditEntry {
|
|
45
|
+
'action' : string,
|
|
46
|
+
'actorType' : ActorType,
|
|
47
|
+
'delegatedBy' : [] | [Principal],
|
|
48
|
+
'timestamp' : bigint,
|
|
49
|
+
'details' : string,
|
|
50
|
+
'caller' : Principal,
|
|
51
|
+
'success' : boolean,
|
|
52
|
+
}
|
|
53
|
+
export type AuthenticationType = { 'api_key' : null } |
|
|
54
|
+
{ 'oauth2' : null };
|
|
55
|
+
export interface ConveyancerInfo {
|
|
56
|
+
'name' : string,
|
|
57
|
+
'contactEmail' : string,
|
|
58
|
+
'licenseNumber' : string,
|
|
59
|
+
}
|
|
60
|
+
export interface CostSummary {
|
|
61
|
+
'entryCount' : bigint,
|
|
62
|
+
'byEndpoint' : Array<[string, bigint]>,
|
|
63
|
+
'totalPence' : bigint,
|
|
64
|
+
'byTransaction' : Array<[string, bigint]>,
|
|
65
|
+
}
|
|
66
|
+
export interface CredentialStatus {
|
|
67
|
+
'isExpired' : boolean,
|
|
68
|
+
'isConfigured' : boolean,
|
|
69
|
+
'lastRotated' : [] | [bigint],
|
|
70
|
+
'environment' : [] | [Environment],
|
|
71
|
+
'daysSinceRotation' : [] | [bigint],
|
|
72
|
+
}
|
|
73
|
+
export interface ECDResponse {
|
|
74
|
+
'httpStatus' : bigint,
|
|
75
|
+
'applicationReference' : string,
|
|
76
|
+
'estimatedCompletionDate' : string,
|
|
77
|
+
'confidence' : [] | [string],
|
|
78
|
+
}
|
|
79
|
+
export type Environment = { 'sandbox' : null } |
|
|
80
|
+
{ 'production' : null };
|
|
81
|
+
export interface HttpHeader { 'value' : string, 'name' : string }
|
|
82
|
+
export interface HttpResponse {
|
|
83
|
+
'status' : bigint,
|
|
84
|
+
'body' : Uint8Array | number[],
|
|
85
|
+
'headers' : Array<HttpHeader>,
|
|
86
|
+
}
|
|
87
|
+
export interface LRNotification {
|
|
88
|
+
'titleNumber' : [] | [string],
|
|
89
|
+
'metadata' : Array<[string, string]>,
|
|
90
|
+
'notificationType' : string,
|
|
91
|
+
'applicationReference' : [] | [string],
|
|
92
|
+
'receivedAt' : bigint,
|
|
93
|
+
'message' : string,
|
|
94
|
+
}
|
|
95
|
+
export type LRStatus = { 'processing' : null } |
|
|
96
|
+
{ 'received' : null } |
|
|
97
|
+
{ 'failed' : null } |
|
|
98
|
+
{ 'registered' : null };
|
|
99
|
+
export interface LandRegistryAPICredentials {
|
|
100
|
+
'authenticationType' : AuthenticationType,
|
|
101
|
+
'lastValidated' : bigint,
|
|
102
|
+
'apiEndpoint' : string,
|
|
103
|
+
'apiKey' : string,
|
|
104
|
+
'environment' : Environment,
|
|
105
|
+
}
|
|
106
|
+
export interface LandRegistryAPIResponse {
|
|
107
|
+
'status' : LRStatus,
|
|
108
|
+
'registeredTimestamp' : [] | [bigint],
|
|
109
|
+
'processedTimestamp' : [] | [bigint],
|
|
110
|
+
'errorMessage' : [] | [string],
|
|
111
|
+
'receivedTimestamp' : bigint,
|
|
112
|
+
'responseID' : string,
|
|
113
|
+
'estimatedCompletionTime' : bigint,
|
|
114
|
+
'landRegistryConfirmationNumber' : string,
|
|
115
|
+
}
|
|
116
|
+
export interface LandRegistryStats {
|
|
117
|
+
'pending' : number,
|
|
118
|
+
'totalSubmissions' : number,
|
|
119
|
+
'avgTimeToRegistration' : number,
|
|
120
|
+
'successful' : number,
|
|
121
|
+
'failed' : number,
|
|
122
|
+
}
|
|
123
|
+
export interface LandRegistryTransactionRecord {
|
|
124
|
+
'status' : TransactionStatus,
|
|
125
|
+
'createdAt' : bigint,
|
|
126
|
+
'lastUpdated' : bigint,
|
|
127
|
+
'maxRetries' : number,
|
|
128
|
+
'landRegistryPayload' : OwnershipTransferPayload,
|
|
129
|
+
'retryCount' : number,
|
|
130
|
+
'nextRetryTime' : [] | [bigint],
|
|
131
|
+
'blockchainTransactionID' : string,
|
|
132
|
+
'apiResponse' : [] | [LandRegistryAPIResponse],
|
|
133
|
+
'transactionID' : string,
|
|
134
|
+
}
|
|
135
|
+
export interface NewOwnerInfo {
|
|
136
|
+
'name' : string,
|
|
137
|
+
'address' : string,
|
|
138
|
+
'contactEmail' : string,
|
|
139
|
+
}
|
|
140
|
+
export interface OfficialSearchResponse {
|
|
141
|
+
'httpStatus' : bigint,
|
|
142
|
+
'officialCopyTimestamp' : [] | [string],
|
|
143
|
+
'advisoryEntries' : Array<string>,
|
|
144
|
+
'documentStorageId' : [] | [bigint],
|
|
145
|
+
'certificatePdfHash' : [] | [string],
|
|
146
|
+
'registeredProprietorNames' : Array<string>,
|
|
147
|
+
'certificateTimestamp' : string,
|
|
148
|
+
'resultContainsAdvisoryEntries' : boolean,
|
|
149
|
+
'registerChangedSinceSearchFromDate' : boolean,
|
|
150
|
+
'priorityExpiry' : string,
|
|
151
|
+
'searchRef' : string,
|
|
152
|
+
}
|
|
153
|
+
export interface OwnershipTransferPayload {
|
|
154
|
+
'transactionDate' : bigint,
|
|
155
|
+
'postcode' : string,
|
|
156
|
+
'sellerSolicitorSignature' : string,
|
|
157
|
+
'buyerSolicitorSignature' : string,
|
|
158
|
+
'titleNumber' : string,
|
|
159
|
+
'newOwnerDetails' : NewOwnerInfo,
|
|
160
|
+
'blockchainCompletionProof' : string,
|
|
161
|
+
'previousOwner' : string,
|
|
162
|
+
'propertyAddress' : string,
|
|
163
|
+
'contractExchangeTimestamp' : bigint,
|
|
164
|
+
'blockchainProofHash' : string,
|
|
165
|
+
'transactionAmount' : bigint,
|
|
166
|
+
'transferID' : string,
|
|
167
|
+
'conveyancerDetails' : ConveyancerInfo,
|
|
168
|
+
'blockchainCompletionTimestamp' : bigint,
|
|
169
|
+
}
|
|
170
|
+
export type Period = { 'day' : null } |
|
|
171
|
+
{ 'month' : null } |
|
|
172
|
+
{ 'week' : null } |
|
|
173
|
+
{ 'year' : null };
|
|
174
|
+
export interface ProprietorData {
|
|
175
|
+
'title' : [] | [string],
|
|
176
|
+
'decoration' : [] | [string],
|
|
177
|
+
'forenames' : [] | [string],
|
|
178
|
+
'surname' : [] | [string],
|
|
179
|
+
'companyLocation' : [] | [string],
|
|
180
|
+
'organisationType' : [] | [string],
|
|
181
|
+
'proprietorName' : string,
|
|
182
|
+
'sequence' : bigint,
|
|
183
|
+
'proprietorType' : string,
|
|
184
|
+
}
|
|
185
|
+
export interface ProprietorNamesResponse {
|
|
186
|
+
'httpStatus' : bigint,
|
|
187
|
+
'titleStatusCode' : string,
|
|
188
|
+
'titleNumber' : string,
|
|
189
|
+
'proprietors' : Array<ProprietorData>,
|
|
190
|
+
'titleStatus' : string,
|
|
191
|
+
}
|
|
192
|
+
export interface RateLimitInfo {
|
|
193
|
+
'callsThisHour' : bigint,
|
|
194
|
+
'endpoint' : string,
|
|
195
|
+
'dayResetAt' : bigint,
|
|
196
|
+
'lastCallAt' : bigint,
|
|
197
|
+
'callsToday' : bigint,
|
|
198
|
+
'hourResetAt' : bigint,
|
|
199
|
+
}
|
|
200
|
+
export type Result = { 'ok' : boolean } |
|
|
201
|
+
{ 'err' : string };
|
|
202
|
+
export type Result_1 = { 'ok' : AP1SubmissionResponse } |
|
|
203
|
+
{ 'err' : string };
|
|
204
|
+
export type Result_10 = { 'ok' : ProprietorNamesResponse } |
|
|
205
|
+
{ 'err' : string };
|
|
206
|
+
export type Result_11 = { 'ok' : ECDResponse } |
|
|
207
|
+
{ 'err' : string };
|
|
208
|
+
export type Result_12 = { 'ok' : ApplicationEnquiryResponse } |
|
|
209
|
+
{ 'err' : string };
|
|
210
|
+
export type Result_2 = { 'ok' : string } |
|
|
211
|
+
{ 'err' : string };
|
|
212
|
+
export type Result_3 = { 'ok' : null } |
|
|
213
|
+
{ 'err' : string };
|
|
214
|
+
export type Result_4 = { 'ok' : OfficialSearchResponse } |
|
|
215
|
+
{ 'err' : string };
|
|
216
|
+
export type Result_5 = { 'ok' : bigint } |
|
|
217
|
+
{ 'err' : string };
|
|
218
|
+
export type Result_6 = { 'ok' : OwnershipTransferPayload } |
|
|
219
|
+
{ 'err' : string };
|
|
220
|
+
export type Result_7 = { 'ok' : Array<LRNotification> } |
|
|
221
|
+
{ 'err' : string };
|
|
222
|
+
export type Result_8 = { 'ok' : number } |
|
|
223
|
+
{ 'err' : string };
|
|
224
|
+
export type Result_9 = { 'ok' : LandRegistryAPIResponse } |
|
|
225
|
+
{ 'err' : string };
|
|
226
|
+
export type TransactionStatus = { 'sent_to_lr' : null } |
|
|
227
|
+
{ 'requires_manual_review' : null } |
|
|
228
|
+
{ 'pending_api_call' : null } |
|
|
229
|
+
{ 'confirmed' : null } |
|
|
230
|
+
{ 'failed' : null };
|
|
231
|
+
export interface TransformArgs {
|
|
232
|
+
'context' : Uint8Array | number[],
|
|
233
|
+
'response' : HttpResponse,
|
|
234
|
+
}
|
|
235
|
+
export interface _SERVICE {
|
|
236
|
+
'check_land_registry_status' : ActorMethod<
|
|
237
|
+
[string],
|
|
238
|
+
[] | [LandRegistryTransactionRecord]
|
|
239
|
+
>,
|
|
240
|
+
'configure_land_registry_api' : ActorMethod<
|
|
241
|
+
[LandRegistryAPICredentials],
|
|
242
|
+
Result_2
|
|
243
|
+
>,
|
|
244
|
+
'getApplicationStatus' : ActorMethod<[string], Result_12>,
|
|
245
|
+
'getAuditLog' : ActorMethod<[], Array<AuditEntry>>,
|
|
246
|
+
'getCredentialStatus' : ActorMethod<[], CredentialStatus>,
|
|
247
|
+
'getCycles' : ActorMethod<[], bigint>,
|
|
248
|
+
'getDailySpend' : ActorMethod<[], bigint>,
|
|
249
|
+
'getEstimatedCompletionDate' : ActorMethod<[string], Result_11>,
|
|
250
|
+
'getNotificationPollingStatus' : ActorMethod<
|
|
251
|
+
[],
|
|
252
|
+
{ 'enabled' : boolean, 'intervalSeconds' : bigint, 'lastPollAt' : bigint }
|
|
253
|
+
>,
|
|
254
|
+
'getRateLimitStatus' : ActorMethod<[], Array<[string, RateLimitInfo]>>,
|
|
255
|
+
'getRegisteredProprietorNames' : ActorMethod<[string], Result_10>,
|
|
256
|
+
'getTotalCosts' : ActorMethod<[bigint, bigint], CostSummary>,
|
|
257
|
+
'get_all_pending_land_registry_submissions' : ActorMethod<
|
|
258
|
+
[string],
|
|
259
|
+
Array<LandRegistryTransactionRecord>
|
|
260
|
+
>,
|
|
261
|
+
'get_all_transactions' : ActorMethod<
|
|
262
|
+
[],
|
|
263
|
+
Array<[string, LandRegistryTransactionRecord]>
|
|
264
|
+
>,
|
|
265
|
+
'get_land_registry_stats' : ActorMethod<[string, Period], LandRegistryStats>,
|
|
266
|
+
'get_land_registry_status' : ActorMethod<
|
|
267
|
+
[],
|
|
268
|
+
[] | [
|
|
269
|
+
{
|
|
270
|
+
'lastValidated' : bigint,
|
|
271
|
+
'apiEndpoint' : string,
|
|
272
|
+
'environment' : Environment,
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
>,
|
|
276
|
+
'get_lr_response' : ActorMethod<[string], Result_9>,
|
|
277
|
+
'log_land_registry_error' : ActorMethod<[string, string], Result_8>,
|
|
278
|
+
'pollNotifications' : ActorMethod<[], Result_7>,
|
|
279
|
+
'prepare_ownership_transfer_payload' : ActorMethod<
|
|
280
|
+
[
|
|
281
|
+
string,
|
|
282
|
+
string,
|
|
283
|
+
string,
|
|
284
|
+
string,
|
|
285
|
+
string,
|
|
286
|
+
string,
|
|
287
|
+
NewOwnerInfo,
|
|
288
|
+
ConveyancerInfo,
|
|
289
|
+
bigint,
|
|
290
|
+
string,
|
|
291
|
+
string,
|
|
292
|
+
string,
|
|
293
|
+
string,
|
|
294
|
+
bigint,
|
|
295
|
+
bigint,
|
|
296
|
+
],
|
|
297
|
+
Result_6
|
|
298
|
+
>,
|
|
299
|
+
'receive_land_registry_callback' : ActorMethod<
|
|
300
|
+
[LandRegistryAPIResponse],
|
|
301
|
+
Result_2
|
|
302
|
+
>,
|
|
303
|
+
'recordAuditEntry' : ActorMethod<
|
|
304
|
+
[ActorType, [] | [Principal], string, string, boolean],
|
|
305
|
+
Result_5
|
|
306
|
+
>,
|
|
307
|
+
'requestOfficialSearch' : ActorMethod<
|
|
308
|
+
[string, string, Array<string>, string],
|
|
309
|
+
Result_4
|
|
310
|
+
>,
|
|
311
|
+
'retry_failed_land_registry_transmission' : ActorMethod<[string], Result_2>,
|
|
312
|
+
'rotateCredentials' : ActorMethod<[string], Result_3>,
|
|
313
|
+
'send_to_land_registry' : ActorMethod<[string], Result_2>,
|
|
314
|
+
'setCredentials' : ActorMethod<
|
|
315
|
+
[string, string, string, Environment],
|
|
316
|
+
Result_3
|
|
317
|
+
>,
|
|
318
|
+
'setDailySpendLimit' : ActorMethod<[bigint], Result_3>,
|
|
319
|
+
'setNotificationPolling' : ActorMethod<[boolean, [] | [bigint]], Result_3>,
|
|
320
|
+
'setUserManagementCanisterId' : ActorMethod<[string], Result_3>,
|
|
321
|
+
'simulate_land_registry_processing' : ActorMethod<[string], Result_2>,
|
|
322
|
+
'submitApplicationToChangeRegister' : ActorMethod<
|
|
323
|
+
[AP1SubmissionRequest, string],
|
|
324
|
+
Result_1
|
|
325
|
+
>,
|
|
326
|
+
'transform' : ActorMethod<[TransformArgs], HttpResponse>,
|
|
327
|
+
'validate_land_registry_connection' : ActorMethod<[], Result>,
|
|
328
|
+
'verify_land_registry_receipt' : ActorMethod<[string], Result>,
|
|
329
|
+
}
|
|
330
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
331
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|