@propxchain/core-client 0.2.1-canary.20 → 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/dist/canisters/document_storage/document_storage.did.d.ts.map +1 -1
- package/dist/canisters/document_storage/document_storage.did.js +90 -21
- package/dist/canisters/document_storage/document_storage.did.js.map +1 -1
- package/dist/canisters/document_verification/document_verification.did.d.ts.map +1 -1
- package/dist/canisters/document_verification/document_verification.did.js +132 -0
- package/dist/canisters/document_verification/document_verification.did.js.map +1 -1
- package/dist/canisters/email_service/email_service.did.d.ts.map +1 -1
- package/dist/canisters/email_service/email_service.did.js +40 -0
- package/dist/canisters/email_service/email_service.did.js.map +1 -1
- package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts.map +1 -1
- package/dist/canisters/land_registry_integration/land_registry_integration.did.js +186 -12
- package/dist/canisters/land_registry_integration/land_registry_integration.did.js.map +1 -1
- package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +1 -1
- package/dist/canisters/ledger_manager/ledger_manager.did.js +55 -2
- package/dist/canisters/ledger_manager/ledger_manager.did.js.map +1 -1
- package/dist/canisters/user_management/user_management.did.d.ts.map +1 -1
- package/dist/canisters/user_management/user_management.did.js +103 -20
- package/dist/canisters/user_management/user_management.did.js.map +1 -1
- package/package.json +1 -1
- package/src/canisters/document_storage/document_storage.did +82 -12
- package/src/canisters/document_storage/document_storage.did.d.ts +89 -12
- package/src/canisters/document_storage/document_storage.did.js +128 -19
- package/src/canisters/document_verification/document_verification.did +150 -0
- package/src/canisters/document_verification/document_verification.did.d.ts +128 -4
- package/src/canisters/document_verification/document_verification.did.js +160 -0
- package/src/canisters/email_service/email_service.did +49 -0
- package/src/canisters/email_service/email_service.did.d.ts +52 -5
- package/src/canisters/email_service/email_service.did.js +68 -0
- package/src/canisters/land_registry_integration/land_registry_integration.did +239 -13
- package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +188 -14
- package/src/canisters/land_registry_integration/land_registry_integration.did.js +213 -11
- package/src/canisters/ledger_manager/ledger_manager.did +77 -6
- package/src/canisters/ledger_manager/ledger_manager.did.d.ts +68 -5
- package/src/canisters/ledger_manager/ledger_manager.did.js +71 -2
- package/src/canisters/property_registry/property_registry.did.d.ts +3 -3
- package/src/canisters/transaction_manager/transaction_manager.did +27 -0
- package/src/canisters/transaction_manager/transaction_manager.did.d.ts +29 -0
- package/src/canisters/user_management/user_management.did +127 -25
- package/src/canisters/user_management/user_management.did.d.ts +100 -24
- package/src/canisters/user_management/user_management.did.js +135 -20
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
type TransformArgs =
|
|
2
|
+
record {
|
|
3
|
+
context: blob;
|
|
4
|
+
response: HttpResponse;
|
|
5
|
+
};
|
|
1
6
|
type TransactionStatus =
|
|
2
7
|
variant {
|
|
3
8
|
confirmed;
|
|
@@ -6,31 +11,100 @@ type TransactionStatus =
|
|
|
6
11
|
requires_manual_review;
|
|
7
12
|
sent_to_lr;
|
|
8
13
|
};
|
|
9
|
-
type
|
|
14
|
+
type Result_9 =
|
|
10
15
|
variant {
|
|
11
16
|
err: text;
|
|
12
17
|
ok: LandRegistryAPIResponse;
|
|
13
18
|
};
|
|
14
|
-
type
|
|
19
|
+
type Result_8 =
|
|
15
20
|
variant {
|
|
16
21
|
err: text;
|
|
17
22
|
ok: nat32;
|
|
18
23
|
};
|
|
19
|
-
type
|
|
24
|
+
type Result_7 =
|
|
25
|
+
variant {
|
|
26
|
+
err: text;
|
|
27
|
+
ok: vec LRNotification;
|
|
28
|
+
};
|
|
29
|
+
type Result_6 =
|
|
20
30
|
variant {
|
|
21
31
|
err: text;
|
|
22
32
|
ok: OwnershipTransferPayload;
|
|
23
33
|
};
|
|
24
|
-
type
|
|
34
|
+
type Result_5 =
|
|
35
|
+
variant {
|
|
36
|
+
err: text;
|
|
37
|
+
ok: nat;
|
|
38
|
+
};
|
|
39
|
+
type Result_4 =
|
|
40
|
+
variant {
|
|
41
|
+
err: text;
|
|
42
|
+
ok: OfficialSearchResponse;
|
|
43
|
+
};
|
|
44
|
+
type Result_3 =
|
|
45
|
+
variant {
|
|
46
|
+
err: text;
|
|
47
|
+
ok;
|
|
48
|
+
};
|
|
49
|
+
type Result_2 =
|
|
25
50
|
variant {
|
|
26
51
|
err: text;
|
|
27
52
|
ok: text;
|
|
28
53
|
};
|
|
54
|
+
type Result_12 =
|
|
55
|
+
variant {
|
|
56
|
+
err: text;
|
|
57
|
+
ok: ApplicationEnquiryResponse;
|
|
58
|
+
};
|
|
59
|
+
type Result_11 =
|
|
60
|
+
variant {
|
|
61
|
+
err: text;
|
|
62
|
+
ok: ECDResponse;
|
|
63
|
+
};
|
|
64
|
+
type Result_10 =
|
|
65
|
+
variant {
|
|
66
|
+
err: text;
|
|
67
|
+
ok: ProprietorNamesResponse;
|
|
68
|
+
};
|
|
69
|
+
type Result_1 =
|
|
70
|
+
variant {
|
|
71
|
+
err: text;
|
|
72
|
+
ok: AP1SubmissionResponse;
|
|
73
|
+
};
|
|
29
74
|
type Result =
|
|
30
75
|
variant {
|
|
31
76
|
err: text;
|
|
32
77
|
ok: bool;
|
|
33
78
|
};
|
|
79
|
+
type RateLimitInfo =
|
|
80
|
+
record {
|
|
81
|
+
callsThisHour: nat;
|
|
82
|
+
callsToday: nat;
|
|
83
|
+
dayResetAt: int;
|
|
84
|
+
endpoint: text;
|
|
85
|
+
hourResetAt: int;
|
|
86
|
+
lastCallAt: int;
|
|
87
|
+
};
|
|
88
|
+
type ProprietorNamesResponse =
|
|
89
|
+
record {
|
|
90
|
+
httpStatus: nat;
|
|
91
|
+
proprietors: vec ProprietorData;
|
|
92
|
+
titleNumber: text;
|
|
93
|
+
titleStatus: text;
|
|
94
|
+
titleStatusCode: text;
|
|
95
|
+
};
|
|
96
|
+
type ProprietorData =
|
|
97
|
+
record {
|
|
98
|
+
companyLocation: opt text;
|
|
99
|
+
decoration: opt text;
|
|
100
|
+
forenames: opt text;
|
|
101
|
+
organisationType: opt text;
|
|
102
|
+
proprietorName: text;
|
|
103
|
+
proprietorType: text;
|
|
104
|
+
sequence: nat;
|
|
105
|
+
surname: opt text;
|
|
106
|
+
title: opt text;
|
|
107
|
+
};
|
|
34
108
|
type Period =
|
|
35
109
|
variant {
|
|
36
110
|
day;
|
|
@@ -56,6 +130,20 @@ type OwnershipTransferPayload =
|
|
|
56
130
|
transactionDate: int;
|
|
57
131
|
transferID: text;
|
|
58
132
|
};
|
|
133
|
+
type OfficialSearchResponse =
|
|
134
|
+
record {
|
|
135
|
+
advisoryEntries: vec text;
|
|
136
|
+
certificatePdfHash: opt text;
|
|
137
|
+
certificateTimestamp: text;
|
|
138
|
+
documentStorageId: opt nat;
|
|
139
|
+
httpStatus: nat;
|
|
140
|
+
officialCopyTimestamp: opt text;
|
|
141
|
+
priorityExpiry: text;
|
|
142
|
+
registerChangedSinceSearchFromDate: bool;
|
|
143
|
+
registeredProprietorNames: vec text;
|
|
144
|
+
resultContainsAdvisoryEntries: bool;
|
|
145
|
+
searchRef: text;
|
|
146
|
+
};
|
|
59
147
|
type NewOwnerInfo =
|
|
60
148
|
record {
|
|
61
149
|
address: text;
|
|
@@ -109,11 +197,62 @@ type LRStatus =
|
|
|
109
197
|
received;
|
|
110
198
|
registered;
|
|
111
199
|
};
|
|
200
|
+
type LRNotification =
|
|
201
|
+
record {
|
|
202
|
+
applicationReference: opt text;
|
|
203
|
+
message: text;
|
|
204
|
+
metadata: vec record {
|
|
205
|
+
text;
|
|
206
|
+
text;
|
|
207
|
+
};
|
|
208
|
+
notificationType: text;
|
|
209
|
+
receivedAt: int;
|
|
210
|
+
titleNumber: opt text;
|
|
211
|
+
};
|
|
212
|
+
type HttpResponse =
|
|
213
|
+
record {
|
|
214
|
+
body: blob;
|
|
215
|
+
headers: vec HttpHeader;
|
|
216
|
+
status: nat;
|
|
217
|
+
};
|
|
218
|
+
type HttpHeader =
|
|
219
|
+
record {
|
|
220
|
+
name: text;
|
|
221
|
+
value: text;
|
|
222
|
+
};
|
|
112
223
|
type Environment =
|
|
113
224
|
variant {
|
|
114
225
|
production;
|
|
115
226
|
sandbox;
|
|
116
227
|
};
|
|
228
|
+
type ECDResponse =
|
|
229
|
+
record {
|
|
230
|
+
applicationReference: text;
|
|
231
|
+
confidence: opt text;
|
|
232
|
+
estimatedCompletionDate: text;
|
|
233
|
+
httpStatus: nat;
|
|
234
|
+
};
|
|
235
|
+
type CredentialStatus =
|
|
236
|
+
record {
|
|
237
|
+
daysSinceRotation: opt nat;
|
|
238
|
+
environment: opt Environment;
|
|
239
|
+
isConfigured: bool;
|
|
240
|
+
isExpired: bool;
|
|
241
|
+
lastRotated: opt int;
|
|
242
|
+
};
|
|
243
|
+
type CostSummary =
|
|
244
|
+
record {
|
|
245
|
+
byEndpoint: vec record {
|
|
246
|
+
text;
|
|
247
|
+
nat;
|
|
248
|
+
};
|
|
249
|
+
byTransaction: vec record {
|
|
250
|
+
text;
|
|
251
|
+
nat;
|
|
252
|
+
};
|
|
253
|
+
entryCount: nat;
|
|
254
|
+
totalPence: nat;
|
|
255
|
+
};
|
|
117
256
|
type ConveyancerInfo =
|
|
118
257
|
record {
|
|
119
258
|
contactEmail: text;
|
|
@@ -125,12 +264,84 @@ type AuthenticationType =
|
|
|
125
264
|
api_key;
|
|
126
265
|
oauth2;
|
|
127
266
|
};
|
|
267
|
+
type AuditEntry =
|
|
268
|
+
record {
|
|
269
|
+
action: text;
|
|
270
|
+
actorType: ActorType;
|
|
271
|
+
caller: principal;
|
|
272
|
+
delegatedBy: opt principal;
|
|
273
|
+
details: text;
|
|
274
|
+
success: bool;
|
|
275
|
+
timestamp: int;
|
|
276
|
+
};
|
|
277
|
+
type ApplicationEnquiryResponse =
|
|
278
|
+
record {
|
|
279
|
+
applicationDate: text;
|
|
280
|
+
applicationReference: text;
|
|
281
|
+
completedDate: opt text;
|
|
282
|
+
httpStatus: nat;
|
|
283
|
+
lastUpdated: text;
|
|
284
|
+
notes: vec text;
|
|
285
|
+
status: text;
|
|
286
|
+
};
|
|
287
|
+
type ActorType =
|
|
288
|
+
variant {
|
|
289
|
+
agent;
|
|
290
|
+
systemActor;
|
|
291
|
+
user;
|
|
292
|
+
};
|
|
293
|
+
type AP1SubmissionResponse =
|
|
294
|
+
record {
|
|
295
|
+
applicationReference: text;
|
|
296
|
+
confirmationNumber: text;
|
|
297
|
+
estimatedCompletionDate: opt text;
|
|
298
|
+
httpStatus: nat;
|
|
299
|
+
message: text;
|
|
300
|
+
scaleFePence: nat;
|
|
301
|
+
};
|
|
302
|
+
type AP1SubmissionRequest =
|
|
303
|
+
record {
|
|
304
|
+
applicationType: text;
|
|
305
|
+
blockchainProofHash: text;
|
|
306
|
+
conveyancerAddress: text;
|
|
307
|
+
conveyancerName: text;
|
|
308
|
+
conveyancerReference: text;
|
|
309
|
+
conveyancerSRANumber: text;
|
|
310
|
+
officialSearchRef: text;
|
|
311
|
+
propertyAddress: text;
|
|
312
|
+
propertyPostcode: text;
|
|
313
|
+
titleNumber: text;
|
|
314
|
+
transferAmount: nat;
|
|
315
|
+
transferDate: text;
|
|
316
|
+
transfereeAddress: text;
|
|
317
|
+
transfereeNames: vec text;
|
|
318
|
+
transfereeType: text;
|
|
319
|
+
transferorAddress: text;
|
|
320
|
+
transferorNames: vec text;
|
|
321
|
+
};
|
|
128
322
|
service : {
|
|
129
323
|
check_land_registry_status: (transactionID: text) ->
|
|
130
324
|
(opt LandRegistryTransactionRecord) query;
|
|
131
|
-
configure_land_registry_api: (
|
|
132
|
-
(
|
|
325
|
+
configure_land_registry_api: (_creds: LandRegistryAPICredentials) ->
|
|
326
|
+
(Result_2);
|
|
327
|
+
getApplicationStatus: (applicationReference: text) -> (Result_12);
|
|
328
|
+
getAuditLog: () -> (vec AuditEntry) query;
|
|
329
|
+
getCredentialStatus: () -> (CredentialStatus) query;
|
|
133
330
|
getCycles: () -> (nat) query;
|
|
331
|
+
getDailySpend: () -> (nat) query;
|
|
332
|
+
getEstimatedCompletionDate: (applicationReference: text) -> (Result_11);
|
|
333
|
+
getNotificationPollingStatus: () ->
|
|
334
|
+
(record {
|
|
335
|
+
enabled: bool;
|
|
336
|
+
intervalSeconds: nat;
|
|
337
|
+
lastPollAt: int;
|
|
338
|
+
}) query;
|
|
339
|
+
getRateLimitStatus: () -> (vec record {
|
|
340
|
+
text;
|
|
341
|
+
RateLimitInfo;
|
|
342
|
+
}) query;
|
|
343
|
+
getRegisteredProprietorNames: (titleNumber: text) -> (Result_10);
|
|
344
|
+
getTotalCosts: (fromDate: int, toDate: int) -> (CostSummary) query;
|
|
134
345
|
get_all_pending_land_registry_submissions: (companyAccountID: text) ->
|
|
135
346
|
(vec LandRegistryTransactionRecord) query;
|
|
136
347
|
get_all_transactions: () ->
|
|
@@ -147,9 +358,10 @@ service : {
|
|
|
147
358
|
environment: Environment;
|
|
148
359
|
lastValidated: int;
|
|
149
360
|
}) query;
|
|
150
|
-
get_lr_response: (confirmationID: text) -> (
|
|
361
|
+
get_lr_response: (confirmationID: text) -> (Result_9) query;
|
|
151
362
|
log_land_registry_error: (transactionID: text, errorDetails: text) ->
|
|
152
|
-
(
|
|
363
|
+
(Result_8);
|
|
364
|
+
pollNotifications: () -> (Result_7);
|
|
153
365
|
prepare_ownership_transfer_payload: (transactionID: text,
|
|
154
366
|
blockchainTransactionID: text, propertyAddress: text, postcode: text,
|
|
155
367
|
titleNumber: text, previousOwner: text, newOwnerDetails: NewOwnerInfo,
|
|
@@ -157,13 +369,27 @@ service : {
|
|
|
157
369
|
buyerSolicitorSignature: text, sellerSolicitorSignature: text,
|
|
158
370
|
blockchainProofHash: text, blockchainCompletionProof: text,
|
|
159
371
|
contractExchangeTimestamp: int, blockchainCompletionTimestamp: int) ->
|
|
160
|
-
(
|
|
372
|
+
(Result_6);
|
|
161
373
|
receive_land_registry_callback: (callbackData: LandRegistryAPIResponse) ->
|
|
162
|
-
(
|
|
374
|
+
(Result_2);
|
|
375
|
+
recordAuditEntry: (actorType: ActorType, delegatedBy: opt principal,
|
|
376
|
+
action: text, details: text, success: bool) -> (Result_5);
|
|
377
|
+
requestOfficialSearch: (titleNumber: text, searchFromDate: text,
|
|
378
|
+
proprietorNames: vec text, transactionId: text) -> (Result_4);
|
|
163
379
|
retry_failed_land_registry_transmission: (transactionID: text) ->
|
|
164
|
-
(
|
|
165
|
-
|
|
166
|
-
|
|
380
|
+
(Result_2);
|
|
381
|
+
rotateCredentials: (_newPassword: text) -> (Result_3);
|
|
382
|
+
send_to_land_registry: (transactionID: text) -> (Result_2);
|
|
383
|
+
setCredentials: (username: text, _password: text, _apiEndpoint: text,
|
|
384
|
+
_environment: Environment) -> (Result_3);
|
|
385
|
+
setDailySpendLimit: (limitPence: nat) -> (Result_3);
|
|
386
|
+
setNotificationPolling: (enabled: bool, intervalSeconds: opt nat) ->
|
|
387
|
+
(Result_3);
|
|
388
|
+
setUserManagementCanisterId: (canisterId: text) -> (Result_3);
|
|
389
|
+
simulate_land_registry_processing: (confirmationNumber: text) -> (Result_2);
|
|
390
|
+
submitApplicationToChangeRegister: (request: AP1SubmissionRequest,
|
|
391
|
+
transactionId: text) -> (Result_1);
|
|
392
|
+
transform: (args: TransformArgs) -> (HttpResponse) query;
|
|
167
393
|
validate_land_registry_connection: () -> (Result);
|
|
168
394
|
verify_land_registry_receipt: (transactionID: text) -> (Result);
|
|
169
395
|
}
|
|
@@ -1,7 +1,55 @@
|
|
|
1
|
-
import type { Principal } from '@
|
|
2
|
-
import type { ActorMethod } from '@
|
|
3
|
-
import type { IDL } from '@
|
|
1
|
+
import type { Principal } from '@dfinity/principal';
|
|
2
|
+
import type { ActorMethod } from '@dfinity/agent';
|
|
3
|
+
import type { IDL } from '@dfinity/candid';
|
|
4
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
|
+
}
|
|
5
53
|
export type AuthenticationType = { 'api_key' : null } |
|
|
6
54
|
{ 'oauth2' : null };
|
|
7
55
|
export interface ConveyancerInfo {
|
|
@@ -9,8 +57,41 @@ export interface ConveyancerInfo {
|
|
|
9
57
|
'contactEmail' : string,
|
|
10
58
|
'licenseNumber' : string,
|
|
11
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
|
+
}
|
|
12
79
|
export type Environment = { 'sandbox' : null } |
|
|
13
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
|
+
}
|
|
14
95
|
export type LRStatus = { 'processing' : null } |
|
|
15
96
|
{ 'received' : null } |
|
|
16
97
|
{ 'failed' : null } |
|
|
@@ -56,6 +137,19 @@ export interface NewOwnerInfo {
|
|
|
56
137
|
'address' : string,
|
|
57
138
|
'contactEmail' : string,
|
|
58
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
|
+
}
|
|
59
153
|
export interface OwnershipTransferPayload {
|
|
60
154
|
'transactionDate' : bigint,
|
|
61
155
|
'postcode' : string,
|
|
@@ -77,21 +171,67 @@ export type Period = { 'day' : null } |
|
|
|
77
171
|
{ 'month' : null } |
|
|
78
172
|
{ 'week' : null } |
|
|
79
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
|
+
}
|
|
80
200
|
export type Result = { 'ok' : boolean } |
|
|
81
201
|
{ 'err' : string };
|
|
82
|
-
export type Result_1 = { 'ok' :
|
|
202
|
+
export type Result_1 = { 'ok' : AP1SubmissionResponse } |
|
|
203
|
+
{ 'err' : string };
|
|
204
|
+
export type Result_10 = { 'ok' : ProprietorNamesResponse } |
|
|
83
205
|
{ 'err' : string };
|
|
84
|
-
export type
|
|
206
|
+
export type Result_11 = { 'ok' : ECDResponse } |
|
|
85
207
|
{ 'err' : string };
|
|
86
|
-
export type
|
|
208
|
+
export type Result_12 = { 'ok' : ApplicationEnquiryResponse } |
|
|
87
209
|
{ 'err' : string };
|
|
88
|
-
export type
|
|
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 } |
|
|
89
225
|
{ 'err' : string };
|
|
90
226
|
export type TransactionStatus = { 'sent_to_lr' : null } |
|
|
91
227
|
{ 'requires_manual_review' : null } |
|
|
92
228
|
{ 'pending_api_call' : null } |
|
|
93
229
|
{ 'confirmed' : null } |
|
|
94
230
|
{ 'failed' : null };
|
|
231
|
+
export interface TransformArgs {
|
|
232
|
+
'context' : Uint8Array | number[],
|
|
233
|
+
'response' : HttpResponse,
|
|
234
|
+
}
|
|
95
235
|
export interface _SERVICE {
|
|
96
236
|
'check_land_registry_status' : ActorMethod<
|
|
97
237
|
[string],
|
|
@@ -99,9 +239,21 @@ export interface _SERVICE {
|
|
|
99
239
|
>,
|
|
100
240
|
'configure_land_registry_api' : ActorMethod<
|
|
101
241
|
[LandRegistryAPICredentials],
|
|
102
|
-
|
|
242
|
+
Result_2
|
|
103
243
|
>,
|
|
244
|
+
'getApplicationStatus' : ActorMethod<[string], Result_12>,
|
|
245
|
+
'getAuditLog' : ActorMethod<[], Array<AuditEntry>>,
|
|
246
|
+
'getCredentialStatus' : ActorMethod<[], CredentialStatus>,
|
|
104
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>,
|
|
105
257
|
'get_all_pending_land_registry_submissions' : ActorMethod<
|
|
106
258
|
[string],
|
|
107
259
|
Array<LandRegistryTransactionRecord>
|
|
@@ -121,8 +273,9 @@ export interface _SERVICE {
|
|
|
121
273
|
}
|
|
122
274
|
]
|
|
123
275
|
>,
|
|
124
|
-
'get_lr_response' : ActorMethod<[string],
|
|
125
|
-
'log_land_registry_error' : ActorMethod<[string, string],
|
|
276
|
+
'get_lr_response' : ActorMethod<[string], Result_9>,
|
|
277
|
+
'log_land_registry_error' : ActorMethod<[string, string], Result_8>,
|
|
278
|
+
'pollNotifications' : ActorMethod<[], Result_7>,
|
|
126
279
|
'prepare_ownership_transfer_payload' : ActorMethod<
|
|
127
280
|
[
|
|
128
281
|
string,
|
|
@@ -141,15 +294,36 @@ export interface _SERVICE {
|
|
|
141
294
|
bigint,
|
|
142
295
|
bigint,
|
|
143
296
|
],
|
|
144
|
-
|
|
297
|
+
Result_6
|
|
145
298
|
>,
|
|
146
299
|
'receive_land_registry_callback' : ActorMethod<
|
|
147
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],
|
|
148
324
|
Result_1
|
|
149
325
|
>,
|
|
150
|
-
'
|
|
151
|
-
'send_to_land_registry' : ActorMethod<[string], Result_1>,
|
|
152
|
-
'simulate_land_registry_processing' : ActorMethod<[string], Result_1>,
|
|
326
|
+
'transform' : ActorMethod<[TransformArgs], HttpResponse>,
|
|
153
327
|
'validate_land_registry_connection' : ActorMethod<[], Result>,
|
|
154
328
|
'verify_land_registry_receipt' : ActorMethod<[string], Result>,
|
|
155
329
|
}
|