@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.
@@ -1,384 +1,384 @@
1
- export const idlFactory = ({ IDL }) => {
2
- const TransactionStatus = IDL.Variant({
3
- 'sent_to_lr' : IDL.Null,
4
- 'requires_manual_review' : IDL.Null,
5
- 'pending_api_call' : IDL.Null,
6
- 'confirmed' : IDL.Null,
7
- 'failed' : IDL.Null,
8
- });
9
- const NewOwnerInfo = IDL.Record({
10
- 'name' : IDL.Text,
11
- 'address' : IDL.Text,
12
- 'contactEmail' : IDL.Text,
13
- });
14
- const ConveyancerInfo = IDL.Record({
15
- 'name' : IDL.Text,
16
- 'contactEmail' : IDL.Text,
17
- 'licenseNumber' : IDL.Text,
18
- });
19
- const OwnershipTransferPayload = IDL.Record({
20
- 'transactionDate' : IDL.Int,
21
- 'postcode' : IDL.Text,
22
- 'sellerSolicitorSignature' : IDL.Text,
23
- 'buyerSolicitorSignature' : IDL.Text,
24
- 'titleNumber' : IDL.Text,
25
- 'newOwnerDetails' : NewOwnerInfo,
26
- 'blockchainCompletionProof' : IDL.Text,
27
- 'previousOwner' : IDL.Text,
28
- 'propertyAddress' : IDL.Text,
29
- 'contractExchangeTimestamp' : IDL.Int,
30
- 'blockchainProofHash' : IDL.Text,
31
- 'transactionAmount' : IDL.Nat64,
32
- 'transferID' : IDL.Text,
33
- 'conveyancerDetails' : ConveyancerInfo,
34
- 'blockchainCompletionTimestamp' : IDL.Int,
35
- });
36
- const LRStatus = IDL.Variant({
37
- 'processing' : IDL.Null,
38
- 'received' : IDL.Null,
39
- 'failed' : IDL.Null,
40
- 'registered' : IDL.Null,
41
- });
42
- const LandRegistryAPIResponse = IDL.Record({
43
- 'status' : LRStatus,
44
- 'registeredTimestamp' : IDL.Opt(IDL.Int),
45
- 'processedTimestamp' : IDL.Opt(IDL.Int),
46
- 'errorMessage' : IDL.Opt(IDL.Text),
47
- 'receivedTimestamp' : IDL.Int,
48
- 'responseID' : IDL.Text,
49
- 'estimatedCompletionTime' : IDL.Int,
50
- 'landRegistryConfirmationNumber' : IDL.Text,
51
- });
52
- const LandRegistryTransactionRecord = IDL.Record({
53
- 'status' : TransactionStatus,
54
- 'createdAt' : IDL.Int,
55
- 'lastUpdated' : IDL.Int,
56
- 'maxRetries' : IDL.Nat32,
57
- 'landRegistryPayload' : OwnershipTransferPayload,
58
- 'retryCount' : IDL.Nat32,
59
- 'nextRetryTime' : IDL.Opt(IDL.Int),
60
- 'blockchainTransactionID' : IDL.Text,
61
- 'apiResponse' : IDL.Opt(LandRegistryAPIResponse),
62
- 'transactionID' : IDL.Text,
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
- const ActorType = IDL.Variant({
94
- 'agent' : IDL.Null,
95
- 'systemActor' : IDL.Null,
96
- 'user' : IDL.Null,
97
- });
98
- const AuditEntry = IDL.Record({
99
- 'action' : IDL.Text,
100
- 'actorType' : ActorType,
101
- 'delegatedBy' : IDL.Opt(IDL.Principal),
102
- 'timestamp' : IDL.Int,
103
- 'details' : IDL.Text,
104
- 'caller' : IDL.Principal,
105
- 'success' : IDL.Bool,
106
- });
107
- const CredentialStatus = IDL.Record({
108
- 'isExpired' : IDL.Bool,
109
- 'isConfigured' : IDL.Bool,
110
- 'lastRotated' : IDL.Opt(IDL.Int),
111
- 'environment' : IDL.Opt(Environment),
112
- 'daysSinceRotation' : IDL.Opt(IDL.Nat),
113
- });
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
- const RateLimitInfo = IDL.Record({
122
- 'callsThisHour' : IDL.Nat,
123
- 'endpoint' : IDL.Text,
124
- 'dayResetAt' : IDL.Int,
125
- 'lastCallAt' : IDL.Int,
126
- 'callsToday' : IDL.Nat,
127
- 'hourResetAt' : IDL.Int,
128
- });
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
- const CostSummary = IDL.Record({
152
- 'entryCount' : IDL.Nat,
153
- 'byEndpoint' : IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat)),
154
- 'totalPence' : IDL.Nat,
155
- 'byTransaction' : IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat)),
156
- });
157
- const Period = IDL.Variant({
158
- 'day' : IDL.Null,
159
- 'month' : IDL.Null,
160
- 'week' : IDL.Null,
161
- 'year' : IDL.Null,
162
- });
163
- const LandRegistryStats = IDL.Record({
164
- 'pending' : IDL.Nat32,
165
- 'totalSubmissions' : IDL.Nat32,
166
- 'avgTimeToRegistration' : IDL.Nat32,
167
- 'successful' : IDL.Nat32,
168
- 'failed' : IDL.Nat32,
169
- });
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
- const Result_7 = IDL.Variant({
184
- 'ok' : IDL.Vec(LRNotification),
185
- 'err' : IDL.Text,
186
- });
187
- const Result_6 = IDL.Variant({
188
- 'ok' : OwnershipTransferPayload,
189
- 'err' : IDL.Text,
190
- });
191
- const Result_5 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
192
- const OfficialSearchResponse = IDL.Record({
193
- 'httpStatus' : IDL.Nat,
194
- 'officialCopyTimestamp' : IDL.Opt(IDL.Text),
195
- 'advisoryEntries' : IDL.Vec(IDL.Text),
196
- 'documentStorageId' : IDL.Opt(IDL.Nat),
197
- 'certificatePdfHash' : IDL.Opt(IDL.Text),
198
- 'registeredProprietorNames' : IDL.Vec(IDL.Text),
199
- 'certificateTimestamp' : IDL.Text,
200
- 'resultContainsAdvisoryEntries' : IDL.Bool,
201
- 'registerChangedSinceSearchFromDate' : IDL.Bool,
202
- 'priorityExpiry' : IDL.Text,
203
- 'searchRef' : IDL.Text,
204
- });
205
- const Result_4 = IDL.Variant({
206
- 'ok' : OfficialSearchResponse,
207
- 'err' : IDL.Text,
208
- });
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
- });
241
- const HttpHeader = IDL.Record({ 'value' : IDL.Text, 'name' : IDL.Text });
242
- const HttpResponse = IDL.Record({
243
- 'status' : IDL.Nat,
244
- 'body' : IDL.Vec(IDL.Nat8),
245
- 'headers' : IDL.Vec(HttpHeader),
246
- });
247
- const TransformArgs = IDL.Record({
248
- 'context' : IDL.Vec(IDL.Nat8),
249
- 'response' : HttpResponse,
250
- });
251
- const Result = IDL.Variant({ 'ok' : IDL.Bool, 'err' : IDL.Text });
252
- return IDL.Service({
253
- 'check_land_registry_status' : IDL.Func(
254
- [IDL.Text],
255
- [IDL.Opt(LandRegistryTransactionRecord)],
256
- ['query'],
257
- ),
258
- 'configure_land_registry_api' : IDL.Func(
259
- [LandRegistryAPICredentials],
260
- [Result_2],
261
- [],
262
- ),
263
- 'getApplicationStatus' : IDL.Func([IDL.Text], [Result_12], []),
264
- 'getAuditLog' : IDL.Func([], [IDL.Vec(AuditEntry)], ['query']),
265
- 'getCredentialStatus' : IDL.Func([], [CredentialStatus], ['query']),
266
- 'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
267
- 'getDailySpend' : IDL.Func([], [IDL.Nat], ['query']),
268
- 'getEstimatedCompletionDate' : IDL.Func([IDL.Text], [Result_11], []),
269
- 'getNotificationPollingStatus' : IDL.Func(
270
- [],
271
- [
272
- IDL.Record({
273
- 'enabled' : IDL.Bool,
274
- 'intervalSeconds' : IDL.Nat,
275
- 'lastPollAt' : IDL.Int,
276
- }),
277
- ],
278
- ['query'],
279
- ),
280
- 'getRateLimitStatus' : IDL.Func(
281
- [],
282
- [IDL.Vec(IDL.Tuple(IDL.Text, RateLimitInfo))],
283
- ['query'],
284
- ),
285
- 'getRegisteredProprietorNames' : IDL.Func([IDL.Text], [Result_10], []),
286
- 'getTotalCosts' : IDL.Func([IDL.Int, IDL.Int], [CostSummary], ['query']),
287
- 'get_all_pending_land_registry_submissions' : IDL.Func(
288
- [IDL.Text],
289
- [IDL.Vec(LandRegistryTransactionRecord)],
290
- ['query'],
291
- ),
292
- 'get_all_transactions' : IDL.Func(
293
- [],
294
- [IDL.Vec(IDL.Tuple(IDL.Text, LandRegistryTransactionRecord))],
295
- ['query'],
296
- ),
297
- 'get_land_registry_stats' : IDL.Func(
298
- [IDL.Text, Period],
299
- [LandRegistryStats],
300
- ['query'],
301
- ),
302
- 'get_land_registry_status' : IDL.Func(
303
- [],
304
- [
305
- IDL.Opt(
306
- IDL.Record({
307
- 'lastValidated' : IDL.Int,
308
- 'apiEndpoint' : IDL.Text,
309
- 'environment' : Environment,
310
- })
311
- ),
312
- ],
313
- ['query'],
314
- ),
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], []),
318
- 'prepare_ownership_transfer_payload' : IDL.Func(
319
- [
320
- IDL.Text,
321
- IDL.Text,
322
- IDL.Text,
323
- IDL.Text,
324
- IDL.Text,
325
- IDL.Text,
326
- NewOwnerInfo,
327
- ConveyancerInfo,
328
- IDL.Nat64,
329
- IDL.Text,
330
- IDL.Text,
331
- IDL.Text,
332
- IDL.Text,
333
- IDL.Int,
334
- IDL.Int,
335
- ],
336
- [Result_6],
337
- [],
338
- ),
339
- 'receive_land_registry_callback' : IDL.Func(
340
- [LandRegistryAPIResponse],
341
- [Result_2],
342
- [],
343
- ),
344
- 'recordAuditEntry' : IDL.Func(
345
- [ActorType, IDL.Opt(IDL.Principal), IDL.Text, IDL.Text, IDL.Bool],
346
- [Result_5],
347
- [],
348
- ),
349
- 'requestOfficialSearch' : IDL.Func(
350
- [IDL.Text, IDL.Text, IDL.Vec(IDL.Text), IDL.Text],
351
- [Result_4],
352
- [],
353
- ),
354
- 'retry_failed_land_registry_transmission' : IDL.Func(
355
- [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],
364
- [],
365
- ),
366
- 'setDailySpendLimit' : IDL.Func([IDL.Nat], [Result_3], []),
367
- 'setNotificationPolling' : IDL.Func(
368
- [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],
377
- [],
378
- ),
379
- 'transform' : IDL.Func([TransformArgs], [HttpResponse], ['query']),
380
- 'validate_land_registry_connection' : IDL.Func([], [Result], []),
381
- 'verify_land_registry_receipt' : IDL.Func([IDL.Text], [Result], []),
382
- });
383
- };
384
- export const init = ({ IDL }) => { return []; };
1
+ export const idlFactory = ({ IDL }) => {
2
+ const TransactionStatus = IDL.Variant({
3
+ 'sent_to_lr' : IDL.Null,
4
+ 'requires_manual_review' : IDL.Null,
5
+ 'pending_api_call' : IDL.Null,
6
+ 'confirmed' : IDL.Null,
7
+ 'failed' : IDL.Null,
8
+ });
9
+ const NewOwnerInfo = IDL.Record({
10
+ 'name' : IDL.Text,
11
+ 'address' : IDL.Text,
12
+ 'contactEmail' : IDL.Text,
13
+ });
14
+ const ConveyancerInfo = IDL.Record({
15
+ 'name' : IDL.Text,
16
+ 'contactEmail' : IDL.Text,
17
+ 'licenseNumber' : IDL.Text,
18
+ });
19
+ const OwnershipTransferPayload = IDL.Record({
20
+ 'transactionDate' : IDL.Int,
21
+ 'postcode' : IDL.Text,
22
+ 'sellerSolicitorSignature' : IDL.Text,
23
+ 'buyerSolicitorSignature' : IDL.Text,
24
+ 'titleNumber' : IDL.Text,
25
+ 'newOwnerDetails' : NewOwnerInfo,
26
+ 'blockchainCompletionProof' : IDL.Text,
27
+ 'previousOwner' : IDL.Text,
28
+ 'propertyAddress' : IDL.Text,
29
+ 'contractExchangeTimestamp' : IDL.Int,
30
+ 'blockchainProofHash' : IDL.Text,
31
+ 'transactionAmount' : IDL.Nat64,
32
+ 'transferID' : IDL.Text,
33
+ 'conveyancerDetails' : ConveyancerInfo,
34
+ 'blockchainCompletionTimestamp' : IDL.Int,
35
+ });
36
+ const LRStatus = IDL.Variant({
37
+ 'processing' : IDL.Null,
38
+ 'received' : IDL.Null,
39
+ 'failed' : IDL.Null,
40
+ 'registered' : IDL.Null,
41
+ });
42
+ const LandRegistryAPIResponse = IDL.Record({
43
+ 'status' : LRStatus,
44
+ 'registeredTimestamp' : IDL.Opt(IDL.Int),
45
+ 'processedTimestamp' : IDL.Opt(IDL.Int),
46
+ 'errorMessage' : IDL.Opt(IDL.Text),
47
+ 'receivedTimestamp' : IDL.Int,
48
+ 'responseID' : IDL.Text,
49
+ 'estimatedCompletionTime' : IDL.Int,
50
+ 'landRegistryConfirmationNumber' : IDL.Text,
51
+ });
52
+ const LandRegistryTransactionRecord = IDL.Record({
53
+ 'status' : TransactionStatus,
54
+ 'createdAt' : IDL.Int,
55
+ 'lastUpdated' : IDL.Int,
56
+ 'maxRetries' : IDL.Nat32,
57
+ 'landRegistryPayload' : OwnershipTransferPayload,
58
+ 'retryCount' : IDL.Nat32,
59
+ 'nextRetryTime' : IDL.Opt(IDL.Int),
60
+ 'blockchainTransactionID' : IDL.Text,
61
+ 'apiResponse' : IDL.Opt(LandRegistryAPIResponse),
62
+ 'transactionID' : IDL.Text,
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
+ const ActorType = IDL.Variant({
94
+ 'agent' : IDL.Null,
95
+ 'systemActor' : IDL.Null,
96
+ 'user' : IDL.Null,
97
+ });
98
+ const AuditEntry = IDL.Record({
99
+ 'action' : IDL.Text,
100
+ 'actorType' : ActorType,
101
+ 'delegatedBy' : IDL.Opt(IDL.Principal),
102
+ 'timestamp' : IDL.Int,
103
+ 'details' : IDL.Text,
104
+ 'caller' : IDL.Principal,
105
+ 'success' : IDL.Bool,
106
+ });
107
+ const CredentialStatus = IDL.Record({
108
+ 'isExpired' : IDL.Bool,
109
+ 'isConfigured' : IDL.Bool,
110
+ 'lastRotated' : IDL.Opt(IDL.Int),
111
+ 'environment' : IDL.Opt(Environment),
112
+ 'daysSinceRotation' : IDL.Opt(IDL.Nat),
113
+ });
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
+ const RateLimitInfo = IDL.Record({
122
+ 'callsThisHour' : IDL.Nat,
123
+ 'endpoint' : IDL.Text,
124
+ 'dayResetAt' : IDL.Int,
125
+ 'lastCallAt' : IDL.Int,
126
+ 'callsToday' : IDL.Nat,
127
+ 'hourResetAt' : IDL.Int,
128
+ });
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
+ const CostSummary = IDL.Record({
152
+ 'entryCount' : IDL.Nat,
153
+ 'byEndpoint' : IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat)),
154
+ 'totalPence' : IDL.Nat,
155
+ 'byTransaction' : IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat)),
156
+ });
157
+ const Period = IDL.Variant({
158
+ 'day' : IDL.Null,
159
+ 'month' : IDL.Null,
160
+ 'week' : IDL.Null,
161
+ 'year' : IDL.Null,
162
+ });
163
+ const LandRegistryStats = IDL.Record({
164
+ 'pending' : IDL.Nat32,
165
+ 'totalSubmissions' : IDL.Nat32,
166
+ 'avgTimeToRegistration' : IDL.Nat32,
167
+ 'successful' : IDL.Nat32,
168
+ 'failed' : IDL.Nat32,
169
+ });
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
+ const Result_7 = IDL.Variant({
184
+ 'ok' : IDL.Vec(LRNotification),
185
+ 'err' : IDL.Text,
186
+ });
187
+ const Result_6 = IDL.Variant({
188
+ 'ok' : OwnershipTransferPayload,
189
+ 'err' : IDL.Text,
190
+ });
191
+ const Result_5 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
192
+ const OfficialSearchResponse = IDL.Record({
193
+ 'httpStatus' : IDL.Nat,
194
+ 'officialCopyTimestamp' : IDL.Opt(IDL.Text),
195
+ 'advisoryEntries' : IDL.Vec(IDL.Text),
196
+ 'documentStorageId' : IDL.Opt(IDL.Nat),
197
+ 'certificatePdfHash' : IDL.Opt(IDL.Text),
198
+ 'registeredProprietorNames' : IDL.Vec(IDL.Text),
199
+ 'certificateTimestamp' : IDL.Text,
200
+ 'resultContainsAdvisoryEntries' : IDL.Bool,
201
+ 'registerChangedSinceSearchFromDate' : IDL.Bool,
202
+ 'priorityExpiry' : IDL.Text,
203
+ 'searchRef' : IDL.Text,
204
+ });
205
+ const Result_4 = IDL.Variant({
206
+ 'ok' : OfficialSearchResponse,
207
+ 'err' : IDL.Text,
208
+ });
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
+ });
241
+ const HttpHeader = IDL.Record({ 'value' : IDL.Text, 'name' : IDL.Text });
242
+ const HttpResponse = IDL.Record({
243
+ 'status' : IDL.Nat,
244
+ 'body' : IDL.Vec(IDL.Nat8),
245
+ 'headers' : IDL.Vec(HttpHeader),
246
+ });
247
+ const TransformArgs = IDL.Record({
248
+ 'context' : IDL.Vec(IDL.Nat8),
249
+ 'response' : HttpResponse,
250
+ });
251
+ const Result = IDL.Variant({ 'ok' : IDL.Bool, 'err' : IDL.Text });
252
+ return IDL.Service({
253
+ 'check_land_registry_status' : IDL.Func(
254
+ [IDL.Text],
255
+ [IDL.Opt(LandRegistryTransactionRecord)],
256
+ ['query'],
257
+ ),
258
+ 'configure_land_registry_api' : IDL.Func(
259
+ [LandRegistryAPICredentials],
260
+ [Result_2],
261
+ [],
262
+ ),
263
+ 'getApplicationStatus' : IDL.Func([IDL.Text], [Result_12], []),
264
+ 'getAuditLog' : IDL.Func([], [IDL.Vec(AuditEntry)], ['query']),
265
+ 'getCredentialStatus' : IDL.Func([], [CredentialStatus], ['query']),
266
+ 'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
267
+ 'getDailySpend' : IDL.Func([], [IDL.Nat], ['query']),
268
+ 'getEstimatedCompletionDate' : IDL.Func([IDL.Text], [Result_11], []),
269
+ 'getNotificationPollingStatus' : IDL.Func(
270
+ [],
271
+ [
272
+ IDL.Record({
273
+ 'enabled' : IDL.Bool,
274
+ 'intervalSeconds' : IDL.Nat,
275
+ 'lastPollAt' : IDL.Int,
276
+ }),
277
+ ],
278
+ ['query'],
279
+ ),
280
+ 'getRateLimitStatus' : IDL.Func(
281
+ [],
282
+ [IDL.Vec(IDL.Tuple(IDL.Text, RateLimitInfo))],
283
+ ['query'],
284
+ ),
285
+ 'getRegisteredProprietorNames' : IDL.Func([IDL.Text], [Result_10], []),
286
+ 'getTotalCosts' : IDL.Func([IDL.Int, IDL.Int], [CostSummary], ['query']),
287
+ 'get_all_pending_land_registry_submissions' : IDL.Func(
288
+ [IDL.Text],
289
+ [IDL.Vec(LandRegistryTransactionRecord)],
290
+ ['query'],
291
+ ),
292
+ 'get_all_transactions' : IDL.Func(
293
+ [],
294
+ [IDL.Vec(IDL.Tuple(IDL.Text, LandRegistryTransactionRecord))],
295
+ ['query'],
296
+ ),
297
+ 'get_land_registry_stats' : IDL.Func(
298
+ [IDL.Text, Period],
299
+ [LandRegistryStats],
300
+ ['query'],
301
+ ),
302
+ 'get_land_registry_status' : IDL.Func(
303
+ [],
304
+ [
305
+ IDL.Opt(
306
+ IDL.Record({
307
+ 'lastValidated' : IDL.Int,
308
+ 'apiEndpoint' : IDL.Text,
309
+ 'environment' : Environment,
310
+ })
311
+ ),
312
+ ],
313
+ ['query'],
314
+ ),
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], []),
318
+ 'prepare_ownership_transfer_payload' : IDL.Func(
319
+ [
320
+ IDL.Text,
321
+ IDL.Text,
322
+ IDL.Text,
323
+ IDL.Text,
324
+ IDL.Text,
325
+ IDL.Text,
326
+ NewOwnerInfo,
327
+ ConveyancerInfo,
328
+ IDL.Nat64,
329
+ IDL.Text,
330
+ IDL.Text,
331
+ IDL.Text,
332
+ IDL.Text,
333
+ IDL.Int,
334
+ IDL.Int,
335
+ ],
336
+ [Result_6],
337
+ [],
338
+ ),
339
+ 'receive_land_registry_callback' : IDL.Func(
340
+ [LandRegistryAPIResponse],
341
+ [Result_2],
342
+ [],
343
+ ),
344
+ 'recordAuditEntry' : IDL.Func(
345
+ [ActorType, IDL.Opt(IDL.Principal), IDL.Text, IDL.Text, IDL.Bool],
346
+ [Result_5],
347
+ [],
348
+ ),
349
+ 'requestOfficialSearch' : IDL.Func(
350
+ [IDL.Text, IDL.Text, IDL.Vec(IDL.Text), IDL.Text],
351
+ [Result_4],
352
+ [],
353
+ ),
354
+ 'retry_failed_land_registry_transmission' : IDL.Func(
355
+ [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],
364
+ [],
365
+ ),
366
+ 'setDailySpendLimit' : IDL.Func([IDL.Nat], [Result_3], []),
367
+ 'setNotificationPolling' : IDL.Func(
368
+ [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],
377
+ [],
378
+ ),
379
+ 'transform' : IDL.Func([TransformArgs], [HttpResponse], ['query']),
380
+ 'validate_land_registry_connection' : IDL.Func([], [Result], []),
381
+ 'verify_land_registry_receipt' : IDL.Func([IDL.Text], [Result], []),
382
+ });
383
+ };
384
+ export const init = ({ IDL }) => { return []; };