@propxchain/core-client 0.2.1-canary.19 → 0.2.1-canary.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/canisters/document_storage/document_storage.did.d.ts.map +1 -1
  2. package/dist/canisters/document_storage/document_storage.did.js +90 -21
  3. package/dist/canisters/document_storage/document_storage.did.js.map +1 -1
  4. package/dist/canisters/document_verification/document_verification.did.d.ts.map +1 -1
  5. package/dist/canisters/document_verification/document_verification.did.js +132 -0
  6. package/dist/canisters/document_verification/document_verification.did.js.map +1 -1
  7. package/dist/canisters/email_service/email_service.did.d.ts.map +1 -1
  8. package/dist/canisters/email_service/email_service.did.js +40 -0
  9. package/dist/canisters/email_service/email_service.did.js.map +1 -1
  10. package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts.map +1 -1
  11. package/dist/canisters/land_registry_integration/land_registry_integration.did.js +186 -12
  12. package/dist/canisters/land_registry_integration/land_registry_integration.did.js.map +1 -1
  13. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +1 -1
  14. package/dist/canisters/ledger_manager/ledger_manager.did.js +55 -2
  15. package/dist/canisters/ledger_manager/ledger_manager.did.js.map +1 -1
  16. package/dist/canisters/user_management/user_management.did.d.ts.map +1 -1
  17. package/dist/canisters/user_management/user_management.did.js +103 -22
  18. package/dist/canisters/user_management/user_management.did.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/canisters/document_storage/document_storage.did +159 -89
  21. package/src/canisters/document_storage/document_storage.did.d.ts +159 -82
  22. package/src/canisters/document_storage/document_storage.did.js +230 -121
  23. package/src/canisters/document_verification/document_verification.did +248 -98
  24. package/src/canisters/document_verification/document_verification.did.d.ts +236 -112
  25. package/src/canisters/document_verification/document_verification.did.js +299 -139
  26. package/src/canisters/email_service/email_service.did +86 -37
  27. package/src/canisters/email_service/email_service.did.d.ts +92 -45
  28. package/src/canisters/email_service/email_service.did.js +131 -63
  29. package/src/canisters/land_registry_integration/land_registry_integration.did +395 -169
  30. package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +331 -157
  31. package/src/canisters/land_registry_integration/land_registry_integration.did.js +384 -182
  32. package/src/canisters/ledger_manager/ledger_manager.did +232 -161
  33. package/src/canisters/ledger_manager/ledger_manager.did.d.ts +205 -142
  34. package/src/canisters/ledger_manager/ledger_manager.did.js +256 -187
  35. package/src/canisters/property_registry/property_registry.did.d.ts +71 -71
  36. package/src/canisters/transaction_manager/transaction_manager.did +27 -0
  37. package/src/canisters/transaction_manager/transaction_manager.did.d.ts +29 -0
  38. package/src/canisters/user_management/user_management.did +297 -197
  39. package/src/canisters/user_management/user_management.did.d.ts +267 -193
  40. package/src/canisters/user_management/user_management.did.js +352 -243
@@ -1,169 +1,395 @@
1
- type TransactionStatus =
2
- variant {
3
- confirmed;
4
- failed;
5
- pending_api_call;
6
- requires_manual_review;
7
- sent_to_lr;
8
- };
9
- type Result_4 =
10
- variant {
11
- err: text;
12
- ok: LandRegistryAPIResponse;
13
- };
14
- type Result_3 =
15
- variant {
16
- err: text;
17
- ok: nat32;
18
- };
19
- type Result_2 =
20
- variant {
21
- err: text;
22
- ok: OwnershipTransferPayload;
23
- };
24
- type Result_1 =
25
- variant {
26
- err: text;
27
- ok: text;
28
- };
29
- type Result =
30
- variant {
31
- err: text;
32
- ok: bool;
33
- };
34
- type Period =
35
- variant {
36
- day;
37
- month;
38
- week;
39
- year;
40
- };
41
- type OwnershipTransferPayload =
42
- record {
43
- blockchainCompletionProof: text;
44
- blockchainCompletionTimestamp: int;
45
- blockchainProofHash: text;
46
- buyerSolicitorSignature: text;
47
- contractExchangeTimestamp: int;
48
- conveyancerDetails: ConveyancerInfo;
49
- newOwnerDetails: NewOwnerInfo;
50
- postcode: text;
51
- previousOwner: text;
52
- propertyAddress: text;
53
- sellerSolicitorSignature: text;
54
- titleNumber: text;
55
- transactionAmount: nat64;
56
- transactionDate: int;
57
- transferID: text;
58
- };
59
- type NewOwnerInfo =
60
- record {
61
- address: text;
62
- contactEmail: text;
63
- name: text;
64
- };
65
- type LandRegistryTransactionRecord =
66
- record {
67
- apiResponse: opt LandRegistryAPIResponse;
68
- blockchainTransactionID: text;
69
- createdAt: int;
70
- landRegistryPayload: OwnershipTransferPayload;
71
- lastUpdated: int;
72
- maxRetries: nat32;
73
- nextRetryTime: opt int;
74
- retryCount: nat32;
75
- status: TransactionStatus;
76
- transactionID: text;
77
- };
78
- type LandRegistryStats =
79
- record {
80
- avgTimeToRegistration: nat32;
81
- failed: nat32;
82
- pending: nat32;
83
- successful: nat32;
84
- totalSubmissions: nat32;
85
- };
86
- type LandRegistryAPIResponse =
87
- record {
88
- errorMessage: opt text;
89
- estimatedCompletionTime: int;
90
- landRegistryConfirmationNumber: text;
91
- processedTimestamp: opt int;
92
- receivedTimestamp: int;
93
- registeredTimestamp: opt int;
94
- responseID: text;
95
- status: LRStatus;
96
- };
97
- type LandRegistryAPICredentials =
98
- record {
99
- apiEndpoint: text;
100
- apiKey: text;
101
- authenticationType: AuthenticationType;
102
- environment: Environment;
103
- lastValidated: int;
104
- };
105
- type LRStatus =
106
- variant {
107
- failed;
108
- processing;
109
- received;
110
- registered;
111
- };
112
- type Environment =
113
- variant {
114
- production;
115
- sandbox;
116
- };
117
- type ConveyancerInfo =
118
- record {
119
- contactEmail: text;
120
- licenseNumber: text;
121
- name: text;
122
- };
123
- type AuthenticationType =
124
- variant {
125
- api_key;
126
- oauth2;
127
- };
128
- service : {
129
- check_land_registry_status: (transactionID: text) ->
130
- (opt LandRegistryTransactionRecord) query;
131
- configure_land_registry_api: (credentials: LandRegistryAPICredentials) ->
132
- (Result_1);
133
- getCycles: () -> (nat) query;
134
- get_all_pending_land_registry_submissions: (companyAccountID: text) ->
135
- (vec LandRegistryTransactionRecord) query;
136
- get_all_transactions: () ->
137
- (vec record {
138
- text;
139
- LandRegistryTransactionRecord;
140
- }) query;
141
- get_land_registry_stats: (companyAccountID: text, period: Period) ->
142
- (LandRegistryStats) query;
143
- get_land_registry_status: () ->
144
- (opt
145
- record {
146
- apiEndpoint: text;
147
- environment: Environment;
148
- lastValidated: int;
149
- }) query;
150
- get_lr_response: (confirmationID: text) -> (Result_4) query;
151
- log_land_registry_error: (transactionID: text, errorDetails: text) ->
152
- (Result_3);
153
- prepare_ownership_transfer_payload: (transactionID: text,
154
- blockchainTransactionID: text, propertyAddress: text, postcode: text,
155
- titleNumber: text, previousOwner: text, newOwnerDetails: NewOwnerInfo,
156
- conveyancerDetails: ConveyancerInfo, transactionAmount: nat64,
157
- buyerSolicitorSignature: text, sellerSolicitorSignature: text,
158
- blockchainProofHash: text, blockchainCompletionProof: text,
159
- contractExchangeTimestamp: int, blockchainCompletionTimestamp: int) ->
160
- (Result_2);
161
- receive_land_registry_callback: (callbackData: LandRegistryAPIResponse) ->
162
- (Result_1);
163
- retry_failed_land_registry_transmission: (transactionID: text) ->
164
- (Result_1);
165
- send_to_land_registry: (transactionID: text) -> (Result_1);
166
- simulate_land_registry_processing: (confirmationNumber: text) -> (Result_1);
167
- validate_land_registry_connection: () -> (Result);
168
- verify_land_registry_receipt: (transactionID: text) -> (Result);
169
- }
1
+ type TransformArgs =
2
+ record {
3
+ context: blob;
4
+ response: HttpResponse;
5
+ };
6
+ type TransactionStatus =
7
+ variant {
8
+ confirmed;
9
+ failed;
10
+ pending_api_call;
11
+ requires_manual_review;
12
+ sent_to_lr;
13
+ };
14
+ type Result_9 =
15
+ variant {
16
+ err: text;
17
+ ok: LandRegistryAPIResponse;
18
+ };
19
+ type Result_8 =
20
+ variant {
21
+ err: text;
22
+ ok: nat32;
23
+ };
24
+ type Result_7 =
25
+ variant {
26
+ err: text;
27
+ ok: vec LRNotification;
28
+ };
29
+ type Result_6 =
30
+ variant {
31
+ err: text;
32
+ ok: OwnershipTransferPayload;
33
+ };
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 =
50
+ variant {
51
+ err: text;
52
+ ok: text;
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
+ };
74
+ type Result =
75
+ variant {
76
+ err: text;
77
+ ok: bool;
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
+ };
108
+ type Period =
109
+ variant {
110
+ day;
111
+ month;
112
+ week;
113
+ year;
114
+ };
115
+ type OwnershipTransferPayload =
116
+ record {
117
+ blockchainCompletionProof: text;
118
+ blockchainCompletionTimestamp: int;
119
+ blockchainProofHash: text;
120
+ buyerSolicitorSignature: text;
121
+ contractExchangeTimestamp: int;
122
+ conveyancerDetails: ConveyancerInfo;
123
+ newOwnerDetails: NewOwnerInfo;
124
+ postcode: text;
125
+ previousOwner: text;
126
+ propertyAddress: text;
127
+ sellerSolicitorSignature: text;
128
+ titleNumber: text;
129
+ transactionAmount: nat64;
130
+ transactionDate: int;
131
+ transferID: text;
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
+ };
147
+ type NewOwnerInfo =
148
+ record {
149
+ address: text;
150
+ contactEmail: text;
151
+ name: text;
152
+ };
153
+ type LandRegistryTransactionRecord =
154
+ record {
155
+ apiResponse: opt LandRegistryAPIResponse;
156
+ blockchainTransactionID: text;
157
+ createdAt: int;
158
+ landRegistryPayload: OwnershipTransferPayload;
159
+ lastUpdated: int;
160
+ maxRetries: nat32;
161
+ nextRetryTime: opt int;
162
+ retryCount: nat32;
163
+ status: TransactionStatus;
164
+ transactionID: text;
165
+ };
166
+ type LandRegistryStats =
167
+ record {
168
+ avgTimeToRegistration: nat32;
169
+ failed: nat32;
170
+ pending: nat32;
171
+ successful: nat32;
172
+ totalSubmissions: nat32;
173
+ };
174
+ type LandRegistryAPIResponse =
175
+ record {
176
+ errorMessage: opt text;
177
+ estimatedCompletionTime: int;
178
+ landRegistryConfirmationNumber: text;
179
+ processedTimestamp: opt int;
180
+ receivedTimestamp: int;
181
+ registeredTimestamp: opt int;
182
+ responseID: text;
183
+ status: LRStatus;
184
+ };
185
+ type LandRegistryAPICredentials =
186
+ record {
187
+ apiEndpoint: text;
188
+ apiKey: text;
189
+ authenticationType: AuthenticationType;
190
+ environment: Environment;
191
+ lastValidated: int;
192
+ };
193
+ type LRStatus =
194
+ variant {
195
+ failed;
196
+ processing;
197
+ received;
198
+ registered;
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
+ };
223
+ type Environment =
224
+ variant {
225
+ production;
226
+ sandbox;
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
+ };
256
+ type ConveyancerInfo =
257
+ record {
258
+ contactEmail: text;
259
+ licenseNumber: text;
260
+ name: text;
261
+ };
262
+ type AuthenticationType =
263
+ variant {
264
+ api_key;
265
+ oauth2;
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
+ };
322
+ service : {
323
+ check_land_registry_status: (transactionID: text) ->
324
+ (opt LandRegistryTransactionRecord) query;
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;
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;
345
+ get_all_pending_land_registry_submissions: (companyAccountID: text) ->
346
+ (vec LandRegistryTransactionRecord) query;
347
+ get_all_transactions: () ->
348
+ (vec record {
349
+ text;
350
+ LandRegistryTransactionRecord;
351
+ }) query;
352
+ get_land_registry_stats: (companyAccountID: text, period: Period) ->
353
+ (LandRegistryStats) query;
354
+ get_land_registry_status: () ->
355
+ (opt
356
+ record {
357
+ apiEndpoint: text;
358
+ environment: Environment;
359
+ lastValidated: int;
360
+ }) query;
361
+ get_lr_response: (confirmationID: text) -> (Result_9) query;
362
+ log_land_registry_error: (transactionID: text, errorDetails: text) ->
363
+ (Result_8);
364
+ pollNotifications: () -> (Result_7);
365
+ prepare_ownership_transfer_payload: (transactionID: text,
366
+ blockchainTransactionID: text, propertyAddress: text, postcode: text,
367
+ titleNumber: text, previousOwner: text, newOwnerDetails: NewOwnerInfo,
368
+ conveyancerDetails: ConveyancerInfo, transactionAmount: nat64,
369
+ buyerSolicitorSignature: text, sellerSolicitorSignature: text,
370
+ blockchainProofHash: text, blockchainCompletionProof: text,
371
+ contractExchangeTimestamp: int, blockchainCompletionTimestamp: int) ->
372
+ (Result_6);
373
+ receive_land_registry_callback: (callbackData: LandRegistryAPIResponse) ->
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);
379
+ retry_failed_land_registry_transmission: (transactionID: text) ->
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;
393
+ validate_land_registry_connection: () -> (Result);
394
+ verify_land_registry_receipt: (transactionID: text) -> (Result);
395
+ }