@propxchain/core-client 0.3.0 → 0.5.0-canary.42

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 (61) hide show
  1. package/dist/canisters/document_storage/document_storage.did.d.ts +169 -7
  2. package/dist/canisters/document_storage/document_storage.did.js +237 -148
  3. package/dist/canisters/document_verification/document_verification.did.d.ts +248 -7
  4. package/dist/canisters/document_verification/document_verification.did.js +322 -231
  5. package/dist/canisters/email_service/email_service.did.d.ts +92 -7
  6. package/dist/canisters/email_service/email_service.did.js +128 -73
  7. package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts +227 -7
  8. package/dist/canisters/land_registry_integration/land_registry_integration.did.js +264 -315
  9. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts +215 -7
  10. package/dist/canisters/ledger_manager/ledger_manager.did.js +262 -198
  11. package/dist/canisters/property_registry/property_registry.did.d.ts +77 -7
  12. package/dist/canisters/property_registry/property_registry.did.js +84 -57
  13. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts +960 -7
  14. package/dist/canisters/transaction_manager/transaction_manager.did.js +1081 -867
  15. package/dist/canisters/user_management/user_management.did.d.ts +314 -7
  16. package/dist/canisters/user_management/user_management.did.js +420 -254
  17. package/dist/jurisdiction.d.ts +50 -0
  18. package/dist/jurisdiction.d.ts.map +1 -0
  19. package/dist/jurisdiction.js +109 -0
  20. package/dist/jurisdiction.js.map +1 -0
  21. package/dist/mock.js +1 -1
  22. package/package.json +6 -2
  23. package/src/canisters/document_storage/document_storage.did +32 -21
  24. package/src/canisters/document_storage/document_storage.did.d.ts +34 -24
  25. package/src/canisters/document_storage/document_storage.did.js +31 -21
  26. package/src/canisters/document_verification/document_verification.did +6 -6
  27. package/src/canisters/document_verification/document_verification.did.d.ts +12 -12
  28. package/src/canisters/document_verification/document_verification.did.js +28 -28
  29. package/src/canisters/email_service/email_service.did.d.ts +3 -3
  30. package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +3 -3
  31. package/src/canisters/land_registry_integration/land_registry_integration.did.js +23 -139
  32. package/src/canisters/ledger_manager/ledger_manager.did +2 -1
  33. package/src/canisters/ledger_manager/ledger_manager.did.d.ts +4 -3
  34. package/src/canisters/ledger_manager/ledger_manager.did.js +2 -5
  35. package/src/canisters/property_registry/property_registry.did +7 -3
  36. package/src/canisters/property_registry/property_registry.did.d.ts +10 -6
  37. package/src/canisters/property_registry/property_registry.did.js +12 -4
  38. package/src/canisters/transaction_manager/transaction_manager.did +104 -44
  39. package/src/canisters/transaction_manager/transaction_manager.did.d.ts +93 -43
  40. package/src/canisters/transaction_manager/transaction_manager.did.js +117 -38
  41. package/src/canisters/user_management/user_management.did +62 -19
  42. package/src/canisters/user_management/user_management.did.d.ts +68 -21
  43. package/src/canisters/user_management/user_management.did.js +90 -19
  44. package/src/jurisdiction.ts +117 -0
  45. package/src/mock.ts +1 -1
  46. package/dist/canisters/document_storage/document_storage.did.d.ts.map +0 -1
  47. package/dist/canisters/document_storage/document_storage.did.js.map +0 -1
  48. package/dist/canisters/document_verification/document_verification.did.d.ts.map +0 -1
  49. package/dist/canisters/document_verification/document_verification.did.js.map +0 -1
  50. package/dist/canisters/email_service/email_service.did.d.ts.map +0 -1
  51. package/dist/canisters/email_service/email_service.did.js.map +0 -1
  52. package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts.map +0 -1
  53. package/dist/canisters/land_registry_integration/land_registry_integration.did.js.map +0 -1
  54. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +0 -1
  55. package/dist/canisters/ledger_manager/ledger_manager.did.js.map +0 -1
  56. package/dist/canisters/property_registry/property_registry.did.d.ts.map +0 -1
  57. package/dist/canisters/property_registry/property_registry.did.js.map +0 -1
  58. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts.map +0 -1
  59. package/dist/canisters/transaction_manager/transaction_manager.did.js.map +0 -1
  60. package/dist/canisters/user_management/user_management.did.d.ts.map +0 -1
  61. package/dist/canisters/user_management/user_management.did.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import type { Principal } from '@dfinity/principal';
2
- import type { ActorMethod } from '@dfinity/agent';
3
- import type { IDL } from '@dfinity/candid';
1
+ import type { Principal } from '@icp-sdk/core/principal';
2
+ import type { ActorMethod } from '@icp-sdk/core/agent';
3
+ import type { IDL } from '@icp-sdk/core/candid';
4
4
 
5
5
  export type ActorType = { 'agent' : null } |
6
6
  { 'systemActor' : null } |
@@ -161,15 +161,6 @@ export interface _SERVICE {
161
161
  { 'ok' : null } |
162
162
  { 'err' : string }
163
163
  >,
164
- 'getAuditLogs' : ActorMethod<[], Array<AuditLog>>,
165
- 'getConfiguration' : ActorMethod<
166
- [],
167
- {
168
- 'userManagement' : [] | [Principal],
169
- 'documentStorage' : [] | [Principal],
170
- }
171
- >,
172
- 'getCycles' : ActorMethod<[], bigint>,
173
164
  'fetchDocument' : ActorMethod<[bigint], [] | [DocumentMetadata]>,
174
165
  'fetchDocumentVerifications' : ActorMethod<
175
166
  [bigint],
@@ -182,6 +173,15 @@ export interface _SERVICE {
182
173
  [bigint],
183
174
  Array<DocumentVerification>
184
175
  >,
176
+ 'getAuditLogs' : ActorMethod<[], Array<AuditLog>>,
177
+ 'getConfiguration' : ActorMethod<
178
+ [],
179
+ {
180
+ 'userManagement' : [] | [Principal],
181
+ 'documentStorage' : [] | [Principal],
182
+ }
183
+ >,
184
+ 'getCycles' : ActorMethod<[], bigint>,
185
185
  'getDocument' : ActorMethod<[bigint], [] | [DocumentMetadata]>,
186
186
  'getDocumentVerifications' : ActorMethod<
187
187
  [bigint],
@@ -1,21 +1,5 @@
1
1
  export const idlFactory = ({ IDL }) => {
2
- const ActorType = IDL.Variant({
3
- 'agent' : IDL.Null,
4
- 'systemActor' : IDL.Null,
5
- 'user' : IDL.Null,
6
- });
7
2
  const Time = IDL.Int;
8
- const AuditLog = IDL.Record({
9
- 'id' : IDL.Nat,
10
- 'action' : IDL.Text,
11
- 'actorType' : ActorType,
12
- 'delegatedBy' : IDL.Opt(IDL.Principal),
13
- 'performedBy' : IDL.Principal,
14
- 'timestamp' : Time,
15
- 'details' : IDL.Text,
16
- 'success' : IDL.Bool,
17
- 'documentId' : IDL.Nat,
18
- });
19
3
  const DocumentMetadata = IDL.Record({
20
4
  'id' : IDL.Nat,
21
5
  'documentHash' : IDL.Text,
@@ -79,6 +63,22 @@ export const idlFactory = ({ IDL }) => {
79
63
  'verifiedBy' : IDL.Principal,
80
64
  'verificationMethod' : VerificationMethod,
81
65
  });
66
+ const ActorType = IDL.Variant({
67
+ 'agent' : IDL.Null,
68
+ 'systemActor' : IDL.Null,
69
+ 'user' : IDL.Null,
70
+ });
71
+ const AuditLog = IDL.Record({
72
+ 'id' : IDL.Nat,
73
+ 'action' : IDL.Text,
74
+ 'actorType' : ActorType,
75
+ 'delegatedBy' : IDL.Opt(IDL.Principal),
76
+ 'performedBy' : IDL.Principal,
77
+ 'timestamp' : Time,
78
+ 'details' : IDL.Text,
79
+ 'success' : IDL.Bool,
80
+ 'documentId' : IDL.Nat,
81
+ });
82
82
  const LRDocumentType = IDL.Variant({
83
83
  'LandChargesSearchK16' : IDL.Null,
84
84
  'OfficialSearchCertificate' : IDL.Null,
@@ -172,18 +172,6 @@ export const idlFactory = ({ IDL }) => {
172
172
  [IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text })],
173
173
  [],
174
174
  ),
175
- 'getAuditLogs' : IDL.Func([], [IDL.Vec(AuditLog)], ['query']),
176
- 'getConfiguration' : IDL.Func(
177
- [],
178
- [
179
- IDL.Record({
180
- 'userManagement' : IDL.Opt(IDL.Principal),
181
- 'documentStorage' : IDL.Opt(IDL.Principal),
182
- }),
183
- ],
184
- ['query'],
185
- ),
186
- 'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
187
175
  'fetchDocument' : IDL.Func([IDL.Nat], [IDL.Opt(DocumentMetadata)], []),
188
176
  'fetchDocumentVerifications' : IDL.Func(
189
177
  [IDL.Nat],
@@ -210,6 +198,18 @@ export const idlFactory = ({ IDL }) => {
210
198
  [IDL.Vec(DocumentVerification)],
211
199
  [],
212
200
  ),
201
+ 'getAuditLogs' : IDL.Func([], [IDL.Vec(AuditLog)], ['query']),
202
+ 'getConfiguration' : IDL.Func(
203
+ [],
204
+ [
205
+ IDL.Record({
206
+ 'userManagement' : IDL.Opt(IDL.Principal),
207
+ 'documentStorage' : IDL.Opt(IDL.Principal),
208
+ }),
209
+ ],
210
+ ['query'],
211
+ ),
212
+ 'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
213
213
  'getDocument' : IDL.Func([IDL.Nat], [IDL.Opt(DocumentMetadata)], ['query']),
214
214
  'getDocumentVerifications' : IDL.Func(
215
215
  [IDL.Nat],
@@ -1,6 +1,6 @@
1
- import type { Principal } from '@dfinity/principal';
2
- import type { ActorMethod } from '@dfinity/agent';
3
- import type { IDL } from '@dfinity/candid';
1
+ import type { Principal } from '@icp-sdk/core/principal';
2
+ import type { ActorMethod } from '@icp-sdk/core/agent';
3
+ import type { IDL } from '@icp-sdk/core/candid';
4
4
 
5
5
  export type ContactType = { 'lr_budget_alert' : null } |
6
6
  { 'lr_application_submitted' : null } |
@@ -1,6 +1,6 @@
1
- import type { Principal } from '@dfinity/principal';
2
- import type { ActorMethod } from '@dfinity/agent';
3
- import type { IDL } from '@dfinity/candid';
1
+ import type { Principal } from '@icp-sdk/core/principal';
2
+ import type { ActorMethod } from '@icp-sdk/core/agent';
3
+ import type { IDL } from '@icp-sdk/core/candid';
4
4
 
5
5
  export type ActorType = { 'agent' : null } |
6
6
  { 'systemActor' : null } |
@@ -61,35 +61,6 @@ export const idlFactory = ({ IDL }) => {
61
61
  'apiResponse' : IDL.Opt(LandRegistryAPIResponse),
62
62
  'transactionID' : IDL.Text,
63
63
  });
64
- const AuthenticationType = IDL.Variant({
65
- 'api_key' : IDL.Null,
66
- 'oauth2' : IDL.Null,
67
- });
68
- const Environment = IDL.Variant({
69
- 'sandbox' : IDL.Null,
70
- 'production' : IDL.Null,
71
- });
72
- const LandRegistryAPICredentials = IDL.Record({
73
- 'authenticationType' : AuthenticationType,
74
- 'lastValidated' : IDL.Int,
75
- 'apiEndpoint' : IDL.Text,
76
- 'apiKey' : IDL.Text,
77
- 'environment' : Environment,
78
- });
79
- const Result_2 = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
80
- const ApplicationEnquiryResponse = IDL.Record({
81
- 'completedDate' : IDL.Opt(IDL.Text),
82
- 'status' : IDL.Text,
83
- 'httpStatus' : IDL.Nat,
84
- 'lastUpdated' : IDL.Text,
85
- 'applicationReference' : IDL.Text,
86
- 'notes' : IDL.Vec(IDL.Text),
87
- 'applicationDate' : IDL.Text,
88
- });
89
- const Result_12 = IDL.Variant({
90
- 'ok' : ApplicationEnquiryResponse,
91
- 'err' : IDL.Text,
92
- });
93
64
  const ActorType = IDL.Variant({
94
65
  'agent' : IDL.Null,
95
66
  'systemActor' : IDL.Null,
@@ -104,6 +75,10 @@ export const idlFactory = ({ IDL }) => {
104
75
  'caller' : IDL.Principal,
105
76
  'success' : IDL.Bool,
106
77
  });
78
+ const Environment = IDL.Variant({
79
+ 'sandbox' : IDL.Null,
80
+ 'production' : IDL.Null,
81
+ });
107
82
  const CredentialStatus = IDL.Record({
108
83
  'isExpired' : IDL.Bool,
109
84
  'isConfigured' : IDL.Bool,
@@ -111,13 +86,6 @@ export const idlFactory = ({ IDL }) => {
111
86
  'environment' : IDL.Opt(Environment),
112
87
  'daysSinceRotation' : IDL.Opt(IDL.Nat),
113
88
  });
114
- const ECDResponse = IDL.Record({
115
- 'httpStatus' : IDL.Nat,
116
- 'applicationReference' : IDL.Text,
117
- 'estimatedCompletionDate' : IDL.Text,
118
- 'confidence' : IDL.Opt(IDL.Text),
119
- });
120
- const Result_11 = IDL.Variant({ 'ok' : ECDResponse, 'err' : IDL.Text });
121
89
  const RateLimitInfo = IDL.Record({
122
90
  'callsThisHour' : IDL.Nat,
123
91
  'endpoint' : IDL.Text,
@@ -126,28 +94,6 @@ export const idlFactory = ({ IDL }) => {
126
94
  'callsToday' : IDL.Nat,
127
95
  'hourResetAt' : IDL.Int,
128
96
  });
129
- const ProprietorData = IDL.Record({
130
- 'title' : IDL.Opt(IDL.Text),
131
- 'decoration' : IDL.Opt(IDL.Text),
132
- 'forenames' : IDL.Opt(IDL.Text),
133
- 'surname' : IDL.Opt(IDL.Text),
134
- 'companyLocation' : IDL.Opt(IDL.Text),
135
- 'organisationType' : IDL.Opt(IDL.Text),
136
- 'proprietorName' : IDL.Text,
137
- 'sequence' : IDL.Nat,
138
- 'proprietorType' : IDL.Text,
139
- });
140
- const ProprietorNamesResponse = IDL.Record({
141
- 'httpStatus' : IDL.Nat,
142
- 'titleStatusCode' : IDL.Text,
143
- 'titleNumber' : IDL.Text,
144
- 'proprietors' : IDL.Vec(ProprietorData),
145
- 'titleStatus' : IDL.Text,
146
- });
147
- const Result_10 = IDL.Variant({
148
- 'ok' : ProprietorNamesResponse,
149
- 'err' : IDL.Text,
150
- });
151
97
  const CostSummary = IDL.Record({
152
98
  'entryCount' : IDL.Nat,
153
99
  'byEndpoint' : IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat)),
@@ -167,28 +113,17 @@ export const idlFactory = ({ IDL }) => {
167
113
  'successful' : IDL.Nat32,
168
114
  'failed' : IDL.Nat32,
169
115
  });
170
- const Result_9 = IDL.Variant({
171
- 'ok' : LandRegistryAPIResponse,
172
- 'err' : IDL.Text,
173
- });
174
- const Result_8 = IDL.Variant({ 'ok' : IDL.Nat32, 'err' : IDL.Text });
175
- const LRNotification = IDL.Record({
176
- 'titleNumber' : IDL.Opt(IDL.Text),
177
- 'metadata' : IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
178
- 'notificationType' : IDL.Text,
179
- 'applicationReference' : IDL.Opt(IDL.Text),
180
- 'receivedAt' : IDL.Int,
181
- 'message' : IDL.Text,
182
- });
183
116
  const Result_7 = IDL.Variant({
184
- 'ok' : IDL.Vec(LRNotification),
117
+ 'ok' : LandRegistryAPIResponse,
185
118
  'err' : IDL.Text,
186
119
  });
187
- const Result_6 = IDL.Variant({
120
+ const Result_6 = IDL.Variant({ 'ok' : IDL.Nat32, 'err' : IDL.Text });
121
+ const Result_5 = IDL.Variant({
188
122
  'ok' : OwnershipTransferPayload,
189
123
  'err' : IDL.Text,
190
124
  });
191
- const Result_5 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
125
+ const Result_1 = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
126
+ const Result_4 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
192
127
  const OfficialSearchResponse = IDL.Record({
193
128
  'httpStatus' : IDL.Nat,
194
129
  'officialCopyTimestamp' : IDL.Opt(IDL.Text),
@@ -202,42 +137,11 @@ export const idlFactory = ({ IDL }) => {
202
137
  'priorityExpiry' : IDL.Text,
203
138
  'searchRef' : IDL.Text,
204
139
  });
205
- const Result_4 = IDL.Variant({
140
+ const Result_3 = IDL.Variant({
206
141
  'ok' : OfficialSearchResponse,
207
142
  'err' : IDL.Text,
208
143
  });
209
- const Result_3 = IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text });
210
- const AP1SubmissionRequest = IDL.Record({
211
- 'transfereeNames' : IDL.Vec(IDL.Text),
212
- 'transferAmount' : IDL.Nat,
213
- 'transferDate' : IDL.Text,
214
- 'titleNumber' : IDL.Text,
215
- 'transfereeAddress' : IDL.Text,
216
- 'propertyAddress' : IDL.Text,
217
- 'transferorAddress' : IDL.Text,
218
- 'blockchainProofHash' : IDL.Text,
219
- 'propertyPostcode' : IDL.Text,
220
- 'conveyancerReference' : IDL.Text,
221
- 'conveyancerAddress' : IDL.Text,
222
- 'conveyancerSRANumber' : IDL.Text,
223
- 'officialSearchRef' : IDL.Text,
224
- 'transfereeType' : IDL.Text,
225
- 'conveyancerName' : IDL.Text,
226
- 'transferorNames' : IDL.Vec(IDL.Text),
227
- 'applicationType' : IDL.Text,
228
- });
229
- const AP1SubmissionResponse = IDL.Record({
230
- 'httpStatus' : IDL.Nat,
231
- 'applicationReference' : IDL.Text,
232
- 'message' : IDL.Text,
233
- 'confirmationNumber' : IDL.Text,
234
- 'estimatedCompletionDate' : IDL.Opt(IDL.Text),
235
- 'scaleFePence' : IDL.Nat,
236
- });
237
- const Result_1 = IDL.Variant({
238
- 'ok' : AP1SubmissionResponse,
239
- 'err' : IDL.Text,
240
- });
144
+ const Result_2 = IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text });
241
145
  const HttpHeader = IDL.Record({ 'value' : IDL.Text, 'name' : IDL.Text });
242
146
  const HttpResponse = IDL.Record({
243
147
  'status' : IDL.Nat,
@@ -255,17 +159,10 @@ export const idlFactory = ({ IDL }) => {
255
159
  [IDL.Opt(LandRegistryTransactionRecord)],
256
160
  ['query'],
257
161
  ),
258
- 'configure_land_registry_api' : IDL.Func(
259
- [LandRegistryAPICredentials],
260
- [Result_2],
261
- [],
262
- ),
263
- 'getApplicationStatus' : IDL.Func([IDL.Text], [Result_12], []),
264
162
  'getAuditLog' : IDL.Func([], [IDL.Vec(AuditEntry)], ['query']),
265
163
  'getCredentialStatus' : IDL.Func([], [CredentialStatus], ['query']),
266
164
  'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
267
165
  'getDailySpend' : IDL.Func([], [IDL.Nat], ['query']),
268
- 'getEstimatedCompletionDate' : IDL.Func([IDL.Text], [Result_11], []),
269
166
  'getNotificationPollingStatus' : IDL.Func(
270
167
  [],
271
168
  [
@@ -282,7 +179,6 @@ export const idlFactory = ({ IDL }) => {
282
179
  [IDL.Vec(IDL.Tuple(IDL.Text, RateLimitInfo))],
283
180
  ['query'],
284
181
  ),
285
- 'getRegisteredProprietorNames' : IDL.Func([IDL.Text], [Result_10], []),
286
182
  'getTotalCosts' : IDL.Func([IDL.Int, IDL.Int], [CostSummary], ['query']),
287
183
  'get_all_pending_land_registry_submissions' : IDL.Func(
288
184
  [IDL.Text],
@@ -312,9 +208,8 @@ export const idlFactory = ({ IDL }) => {
312
208
  ],
313
209
  ['query'],
314
210
  ),
315
- 'get_lr_response' : IDL.Func([IDL.Text], [Result_9], ['query']),
316
- 'log_land_registry_error' : IDL.Func([IDL.Text, IDL.Text], [Result_8], []),
317
- 'pollNotifications' : IDL.Func([], [Result_7], []),
211
+ 'get_lr_response' : IDL.Func([IDL.Text], [Result_7], ['query']),
212
+ 'log_land_registry_error' : IDL.Func([IDL.Text, IDL.Text], [Result_6], []),
318
213
  'prepare_ownership_transfer_payload' : IDL.Func(
319
214
  [
320
215
  IDL.Text,
@@ -333,49 +228,38 @@ export const idlFactory = ({ IDL }) => {
333
228
  IDL.Int,
334
229
  IDL.Int,
335
230
  ],
336
- [Result_6],
231
+ [Result_5],
337
232
  [],
338
233
  ),
339
234
  'receive_land_registry_callback' : IDL.Func(
340
235
  [LandRegistryAPIResponse],
341
- [Result_2],
236
+ [Result_1],
342
237
  [],
343
238
  ),
344
239
  'recordAuditEntry' : IDL.Func(
345
240
  [ActorType, IDL.Opt(IDL.Principal), IDL.Text, IDL.Text, IDL.Bool],
346
- [Result_5],
241
+ [Result_4],
347
242
  [],
348
243
  ),
349
244
  'requestOfficialSearch' : IDL.Func(
350
245
  [IDL.Text, IDL.Text, IDL.Vec(IDL.Text), IDL.Text],
351
- [Result_4],
246
+ [Result_3],
352
247
  [],
353
248
  ),
354
249
  'retry_failed_land_registry_transmission' : IDL.Func(
355
250
  [IDL.Text],
356
- [Result_2],
357
- [],
358
- ),
359
- 'rotateCredentials' : IDL.Func([IDL.Text], [Result_3], []),
360
- 'send_to_land_registry' : IDL.Func([IDL.Text], [Result_2], []),
361
- 'setCredentials' : IDL.Func(
362
- [IDL.Text, IDL.Text, IDL.Text, Environment],
363
- [Result_3],
251
+ [Result_1],
364
252
  [],
365
253
  ),
366
- 'setDailySpendLimit' : IDL.Func([IDL.Nat], [Result_3], []),
254
+ 'send_to_land_registry' : IDL.Func([IDL.Text], [Result_1], []),
255
+ 'setDailySpendLimit' : IDL.Func([IDL.Nat], [Result_2], []),
367
256
  'setNotificationPolling' : IDL.Func(
368
257
  [IDL.Bool, IDL.Opt(IDL.Nat)],
369
- [Result_3],
370
- [],
371
- ),
372
- 'setUserManagementCanisterId' : IDL.Func([IDL.Text], [Result_3], []),
373
- 'simulate_land_registry_processing' : IDL.Func([IDL.Text], [Result_2], []),
374
- 'submitApplicationToChangeRegister' : IDL.Func(
375
- [AP1SubmissionRequest, IDL.Text],
376
- [Result_1],
258
+ [Result_2],
377
259
  [],
378
260
  ),
261
+ 'setUserManagementCanisterId' : IDL.Func([IDL.Text], [Result_2], []),
262
+ 'simulate_land_registry_processing' : IDL.Func([IDL.Text], [Result_1], []),
379
263
  'transform' : IDL.Func([TransformArgs], [HttpResponse], ['query']),
380
264
  'validate_land_registry_connection' : IDL.Func([], [Result], []),
381
265
  'verify_land_registry_receipt' : IDL.Func([IDL.Text], [Result], []),
@@ -201,7 +201,7 @@ service : {
201
201
  (vec CompanyTeamMember) query;
202
202
  getCycles: () -> (nat) query;
203
203
  getDailyLRSpend: () -> (nat) query;
204
- getEventsByTransaction: (transactionId: text) -> (vec AuditEvent) query;
204
+ getEventsByTransaction: (transactionId: text) -> (vec AuditEvent);
205
205
  getFailedAuditEvents: () -> (vec AuditEvent) query;
206
206
  getGlobalBlockchainStats: () -> (BlockchainEfficiencyMetrics) query;
207
207
  getLRCostReport: (fromDate: int, toDate: int) -> (LRCostReport) query;
@@ -226,6 +226,7 @@ service : {
226
226
  setDailyBudget: (limitPence: nat) -> (Result_1);
227
227
  setDocumentStorageCanister: (canisterId: principal) -> ();
228
228
  setDocumentVerificationCanister: (canisterId: principal) -> ();
229
+ setMessageManagerCanister: (canisterId: principal) -> ();
229
230
  setMonthlyBudget: (limitPence: nat) -> (Result_1);
230
231
  setPropertyRegistryCanister: (canisterId: principal) -> ();
231
232
  setTransactionManagerCanister: (canisterId: principal) -> ();
@@ -1,6 +1,6 @@
1
- import type { Principal } from '@dfinity/principal';
2
- import type { ActorMethod } from '@dfinity/agent';
3
- import type { IDL } from '@dfinity/candid';
1
+ import type { Principal } from '@icp-sdk/core/principal';
2
+ import type { ActorMethod } from '@icp-sdk/core/agent';
3
+ import type { IDL } from '@icp-sdk/core/candid';
4
4
 
5
5
  export type AccountType = { 'company' : null } |
6
6
  { 'individual' : null };
@@ -196,6 +196,7 @@ export interface _SERVICE {
196
196
  'setDailyBudget' : ActorMethod<[bigint], Result_1>,
197
197
  'setDocumentStorageCanister' : ActorMethod<[Principal], undefined>,
198
198
  'setDocumentVerificationCanister' : ActorMethod<[Principal], undefined>,
199
+ 'setMessageManagerCanister' : ActorMethod<[Principal], undefined>,
199
200
  'setMonthlyBudget' : ActorMethod<[bigint], Result_1>,
200
201
  'setPropertyRegistryCanister' : ActorMethod<[Principal], undefined>,
201
202
  'setTransactionManagerCanister' : ActorMethod<[Principal], undefined>,
@@ -195,11 +195,7 @@ export const idlFactory = ({ IDL }) => {
195
195
  ),
196
196
  'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
197
197
  'getDailyLRSpend' : IDL.Func([], [IDL.Nat], ['query']),
198
- 'getEventsByTransaction' : IDL.Func(
199
- [IDL.Text],
200
- [IDL.Vec(AuditEvent)],
201
- ['query'],
202
- ),
198
+ 'getEventsByTransaction' : IDL.Func([IDL.Text], [IDL.Vec(AuditEvent)], []),
203
199
  'getFailedAuditEvents' : IDL.Func([], [IDL.Vec(AuditEvent)], ['query']),
204
200
  'getGlobalBlockchainStats' : IDL.Func(
205
201
  [],
@@ -244,6 +240,7 @@ export const idlFactory = ({ IDL }) => {
244
240
  'setDailyBudget' : IDL.Func([IDL.Nat], [Result_1], []),
245
241
  'setDocumentStorageCanister' : IDL.Func([IDL.Principal], [], []),
246
242
  'setDocumentVerificationCanister' : IDL.Func([IDL.Principal], [], []),
243
+ 'setMessageManagerCanister' : IDL.Func([IDL.Principal], [], []),
247
244
  'setMonthlyBudget' : IDL.Func([IDL.Nat], [Result_1], []),
248
245
  'setPropertyRegistryCanister' : IDL.Func([IDL.Principal], [], []),
249
246
  'setTransactionManagerCanister' : IDL.Func([IDL.Principal], [], []),
@@ -30,13 +30,14 @@ type Property =
30
30
  record {
31
31
  address: text;
32
32
  anonymousPropertyId: text;
33
+ attestedAt: opt int;
34
+ attestedBy: opt principal;
33
35
  chainPosition: opt nat;
34
36
  createdAt: Time;
35
37
  description: text;
36
38
  documentsComplete: bool;
37
39
  financingComplete: bool;
38
40
  id: nat;
39
- isVerified: bool;
40
41
  linkedProperties: vec text;
41
42
  owner: principal;
42
43
  price: nat;
@@ -58,17 +59,21 @@ type ChainPropertyView =
58
59
  status: PropertyStatus;
59
60
  };
60
61
  service : {
62
+ addBulkReader: (reader: principal) -> (bool);
63
+ attestProperty: (id: nat) -> (bool);
61
64
  buildPropertyChain: (rootPropertyId: text) -> (Result_3);
62
65
  canViewFullPropertyDetails: (propertyId: text, requesterId: principal) ->
63
66
  (bool) query;
64
67
  generateAnonymousPropertyId: (propertyId: text) -> (Result_2);
65
68
  getAllProperties: () -> (vec Property) query;
66
69
  getCycles: () -> (nat) query;
67
- getProperty: (id: nat) -> (opt Property) query;
70
+ getPropertiesForOwner: (owner: principal) -> (vec Property) query;
71
+ getProperty: (id: nat) -> (opt Property);
68
72
  getPropertyForChainView: (propertyId: text, requesterId: principal) ->
69
73
  (Result_1) query;
70
74
  registerProperty: (address: text, price: nat, size: nat, propertyType:
71
75
  text, description: text) -> (nat);
76
+ removeBulkReader: (reader: principal) -> (bool);
72
77
  setPropertyUprn: (propertyId: nat, uprn: opt text) -> (Result);
73
78
  transferOwnership: (propertyId: nat, newOwner: principal) -> (bool);
74
79
  updatePropertyProgress: (propertyId: nat, documentsComplete: bool,
@@ -76,5 +81,4 @@ service : {
76
81
  updatePropertyStatus: (propertyId: nat, status: PropertyStatus) -> (Result);
77
82
  updatePropertyTransaction: (propertyId: nat, transactionId: opt text,
78
83
  chainPosition: opt nat, linkedProperties: vec text) -> (Result);
79
- verifyProperty: (id: nat) -> (bool);
80
84
  }
@@ -1,6 +1,6 @@
1
- import type { Principal } from '@dfinity/principal';
2
- import type { ActorMethod } from '@dfinity/agent';
3
- import type { IDL } from '@dfinity/candid';
1
+ import type { Principal } from '@icp-sdk/core/principal';
2
+ import type { ActorMethod } from '@icp-sdk/core/agent';
3
+ import type { IDL } from '@icp-sdk/core/candid';
4
4
 
5
5
  export interface ChainPropertyView {
6
6
  'status' : PropertyStatus,
@@ -19,17 +19,18 @@ export interface Property {
19
19
  'owner' : Principal,
20
20
  'createdAt' : Time,
21
21
  'size' : bigint,
22
+ 'uprn' : [] | [string],
22
23
  'documentsComplete' : boolean,
23
24
  'description' : string,
24
- 'isVerified' : boolean,
25
25
  'linkedProperties' : Array<string>,
26
26
  'address' : string,
27
27
  'chainPosition' : [] | [bigint],
28
28
  'financingComplete' : boolean,
29
29
  'price' : bigint,
30
+ 'attestedAt' : [] | [bigint],
31
+ 'attestedBy' : [] | [Principal],
30
32
  'searchesComplete' : boolean,
31
33
  'transactionId' : [] | [string],
32
- 'uprn' : [] | [string],
33
34
  }
34
35
  export type PropertyStatus = { 'Listed' : null } |
35
36
  { 'InTransaction' : null } |
@@ -45,17 +46,21 @@ export type Result_3 = { 'ok' : Array<string> } |
45
46
  { 'err' : string };
46
47
  export type Time = bigint;
47
48
  export interface _SERVICE {
49
+ 'addBulkReader' : ActorMethod<[Principal], boolean>,
50
+ 'attestProperty' : ActorMethod<[bigint], boolean>,
48
51
  'buildPropertyChain' : ActorMethod<[string], Result_3>,
49
52
  'canViewFullPropertyDetails' : ActorMethod<[string, Principal], boolean>,
50
53
  'generateAnonymousPropertyId' : ActorMethod<[string], Result_2>,
51
54
  'getAllProperties' : ActorMethod<[], Array<Property>>,
52
55
  'getCycles' : ActorMethod<[], bigint>,
56
+ 'getPropertiesForOwner' : ActorMethod<[Principal], Array<Property>>,
53
57
  'getProperty' : ActorMethod<[bigint], [] | [Property]>,
54
58
  'getPropertyForChainView' : ActorMethod<[string, Principal], Result_1>,
55
59
  'registerProperty' : ActorMethod<
56
60
  [string, bigint, bigint, string, string],
57
61
  bigint
58
62
  >,
63
+ 'removeBulkReader' : ActorMethod<[Principal], boolean>,
59
64
  'setPropertyUprn' : ActorMethod<[bigint, [] | [string]], Result>,
60
65
  'transferOwnership' : ActorMethod<[bigint, Principal], boolean>,
61
66
  'updatePropertyProgress' : ActorMethod<
@@ -67,7 +72,6 @@ export interface _SERVICE {
67
72
  [bigint, [] | [string], [] | [bigint], Array<string>],
68
73
  Result
69
74
  >,
70
- 'verifyProperty' : ActorMethod<[bigint], boolean>,
71
75
  }
72
76
  export declare const idlFactory: IDL.InterfaceFactory;
73
77
  export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
@@ -16,17 +16,18 @@ export const idlFactory = ({ IDL }) => {
16
16
  'owner' : IDL.Principal,
17
17
  'createdAt' : Time,
18
18
  'size' : IDL.Nat,
19
+ 'uprn' : IDL.Opt(IDL.Text),
19
20
  'documentsComplete' : IDL.Bool,
20
21
  'description' : IDL.Text,
21
- 'isVerified' : IDL.Bool,
22
22
  'linkedProperties' : IDL.Vec(IDL.Text),
23
23
  'address' : IDL.Text,
24
24
  'chainPosition' : IDL.Opt(IDL.Nat),
25
25
  'financingComplete' : IDL.Bool,
26
26
  'price' : IDL.Nat,
27
+ 'attestedAt' : IDL.Opt(IDL.Int),
28
+ 'attestedBy' : IDL.Opt(IDL.Principal),
27
29
  'searchesComplete' : IDL.Bool,
28
30
  'transactionId' : IDL.Opt(IDL.Text),
29
- 'uprn' : IDL.Opt(IDL.Text),
30
31
  });
31
32
  const ChainPropertyView = IDL.Record({
32
33
  'status' : PropertyStatus,
@@ -40,6 +41,8 @@ export const idlFactory = ({ IDL }) => {
40
41
  const Result_1 = IDL.Variant({ 'ok' : ChainPropertyView, 'err' : IDL.Text });
41
42
  const Result = IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text });
42
43
  return IDL.Service({
44
+ 'addBulkReader' : IDL.Func([IDL.Principal], [IDL.Bool], []),
45
+ 'attestProperty' : IDL.Func([IDL.Nat], [IDL.Bool], []),
43
46
  'buildPropertyChain' : IDL.Func([IDL.Text], [Result_3], []),
44
47
  'canViewFullPropertyDetails' : IDL.Func(
45
48
  [IDL.Text, IDL.Principal],
@@ -49,7 +52,12 @@ export const idlFactory = ({ IDL }) => {
49
52
  'generateAnonymousPropertyId' : IDL.Func([IDL.Text], [Result_2], []),
50
53
  'getAllProperties' : IDL.Func([], [IDL.Vec(Property)], ['query']),
51
54
  'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
52
- 'getProperty' : IDL.Func([IDL.Nat], [IDL.Opt(Property)], ['query']),
55
+ 'getPropertiesForOwner' : IDL.Func(
56
+ [IDL.Principal],
57
+ [IDL.Vec(Property)],
58
+ ['query'],
59
+ ),
60
+ 'getProperty' : IDL.Func([IDL.Nat], [IDL.Opt(Property)], []),
53
61
  'getPropertyForChainView' : IDL.Func(
54
62
  [IDL.Text, IDL.Principal],
55
63
  [Result_1],
@@ -60,6 +68,7 @@ export const idlFactory = ({ IDL }) => {
60
68
  [IDL.Nat],
61
69
  [],
62
70
  ),
71
+ 'removeBulkReader' : IDL.Func([IDL.Principal], [IDL.Bool], []),
63
72
  'setPropertyUprn' : IDL.Func([IDL.Nat, IDL.Opt(IDL.Text)], [Result], []),
64
73
  'transferOwnership' : IDL.Func([IDL.Nat, IDL.Principal], [IDL.Bool], []),
65
74
  'updatePropertyProgress' : IDL.Func(
@@ -73,7 +82,6 @@ export const idlFactory = ({ IDL }) => {
73
82
  [Result],
74
83
  [],
75
84
  ),
76
- 'verifyProperty' : IDL.Func([IDL.Nat], [IDL.Bool], []),
77
85
  });
78
86
  };
79
87
  export const init = ({ IDL }) => { return []; };