@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,319 +1,268 @@
1
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([IDL.Text], [IDL.Opt(LandRegistryTransactionRecord)], ['query']),
254
- 'configure_land_registry_api': IDL.Func([LandRegistryAPICredentials], [Result_2], []),
255
- 'getApplicationStatus': IDL.Func([IDL.Text], [Result_12], []),
256
- 'getAuditLog': IDL.Func([], [IDL.Vec(AuditEntry)], ['query']),
257
- 'getCredentialStatus': IDL.Func([], [CredentialStatus], ['query']),
258
- 'getCycles': IDL.Func([], [IDL.Nat], ['query']),
259
- 'getDailySpend': IDL.Func([], [IDL.Nat], ['query']),
260
- 'getEstimatedCompletionDate': IDL.Func([IDL.Text], [Result_11], []),
261
- 'getNotificationPollingStatus': IDL.Func([], [
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 ActorType = IDL.Variant({
65
+ 'agent' : IDL.Null,
66
+ 'systemActor' : IDL.Null,
67
+ 'user' : IDL.Null,
68
+ });
69
+ const AuditEntry = IDL.Record({
70
+ 'action' : IDL.Text,
71
+ 'actorType' : ActorType,
72
+ 'delegatedBy' : IDL.Opt(IDL.Principal),
73
+ 'timestamp' : IDL.Int,
74
+ 'details' : IDL.Text,
75
+ 'caller' : IDL.Principal,
76
+ 'success' : IDL.Bool,
77
+ });
78
+ const Environment = IDL.Variant({
79
+ 'sandbox' : IDL.Null,
80
+ 'production' : IDL.Null,
81
+ });
82
+ const CredentialStatus = IDL.Record({
83
+ 'isExpired' : IDL.Bool,
84
+ 'isConfigured' : IDL.Bool,
85
+ 'lastRotated' : IDL.Opt(IDL.Int),
86
+ 'environment' : IDL.Opt(Environment),
87
+ 'daysSinceRotation' : IDL.Opt(IDL.Nat),
88
+ });
89
+ const RateLimitInfo = IDL.Record({
90
+ 'callsThisHour' : IDL.Nat,
91
+ 'endpoint' : IDL.Text,
92
+ 'dayResetAt' : IDL.Int,
93
+ 'lastCallAt' : IDL.Int,
94
+ 'callsToday' : IDL.Nat,
95
+ 'hourResetAt' : IDL.Int,
96
+ });
97
+ const CostSummary = IDL.Record({
98
+ 'entryCount' : IDL.Nat,
99
+ 'byEndpoint' : IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat)),
100
+ 'totalPence' : IDL.Nat,
101
+ 'byTransaction' : IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat)),
102
+ });
103
+ const Period = IDL.Variant({
104
+ 'day' : IDL.Null,
105
+ 'month' : IDL.Null,
106
+ 'week' : IDL.Null,
107
+ 'year' : IDL.Null,
108
+ });
109
+ const LandRegistryStats = IDL.Record({
110
+ 'pending' : IDL.Nat32,
111
+ 'totalSubmissions' : IDL.Nat32,
112
+ 'avgTimeToRegistration' : IDL.Nat32,
113
+ 'successful' : IDL.Nat32,
114
+ 'failed' : IDL.Nat32,
115
+ });
116
+ const Result_7 = IDL.Variant({
117
+ 'ok' : LandRegistryAPIResponse,
118
+ 'err' : IDL.Text,
119
+ });
120
+ const Result_6 = IDL.Variant({ 'ok' : IDL.Nat32, 'err' : IDL.Text });
121
+ const Result_5 = IDL.Variant({
122
+ 'ok' : OwnershipTransferPayload,
123
+ 'err' : IDL.Text,
124
+ });
125
+ const Result_1 = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
126
+ const Result_4 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
127
+ const OfficialSearchResponse = IDL.Record({
128
+ 'httpStatus' : IDL.Nat,
129
+ 'officialCopyTimestamp' : IDL.Opt(IDL.Text),
130
+ 'advisoryEntries' : IDL.Vec(IDL.Text),
131
+ 'documentStorageId' : IDL.Opt(IDL.Nat),
132
+ 'certificatePdfHash' : IDL.Opt(IDL.Text),
133
+ 'registeredProprietorNames' : IDL.Vec(IDL.Text),
134
+ 'certificateTimestamp' : IDL.Text,
135
+ 'resultContainsAdvisoryEntries' : IDL.Bool,
136
+ 'registerChangedSinceSearchFromDate' : IDL.Bool,
137
+ 'priorityExpiry' : IDL.Text,
138
+ 'searchRef' : IDL.Text,
139
+ });
140
+ const Result_3 = IDL.Variant({
141
+ 'ok' : OfficialSearchResponse,
142
+ 'err' : IDL.Text,
143
+ });
144
+ const Result_2 = IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text });
145
+ const HttpHeader = IDL.Record({ 'value' : IDL.Text, 'name' : IDL.Text });
146
+ const HttpResponse = IDL.Record({
147
+ 'status' : IDL.Nat,
148
+ 'body' : IDL.Vec(IDL.Nat8),
149
+ 'headers' : IDL.Vec(HttpHeader),
150
+ });
151
+ const TransformArgs = IDL.Record({
152
+ 'context' : IDL.Vec(IDL.Nat8),
153
+ 'response' : HttpResponse,
154
+ });
155
+ const Result = IDL.Variant({ 'ok' : IDL.Bool, 'err' : IDL.Text });
156
+ return IDL.Service({
157
+ 'check_land_registry_status' : IDL.Func(
158
+ [IDL.Text],
159
+ [IDL.Opt(LandRegistryTransactionRecord)],
160
+ ['query'],
161
+ ),
162
+ 'getAuditLog' : IDL.Func([], [IDL.Vec(AuditEntry)], ['query']),
163
+ 'getCredentialStatus' : IDL.Func([], [CredentialStatus], ['query']),
164
+ 'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
165
+ 'getDailySpend' : IDL.Func([], [IDL.Nat], ['query']),
166
+ 'getNotificationPollingStatus' : IDL.Func(
167
+ [],
168
+ [
169
+ IDL.Record({
170
+ 'enabled' : IDL.Bool,
171
+ 'intervalSeconds' : IDL.Nat,
172
+ 'lastPollAt' : IDL.Int,
173
+ }),
174
+ ],
175
+ ['query'],
176
+ ),
177
+ 'getRateLimitStatus' : IDL.Func(
178
+ [],
179
+ [IDL.Vec(IDL.Tuple(IDL.Text, RateLimitInfo))],
180
+ ['query'],
181
+ ),
182
+ 'getTotalCosts' : IDL.Func([IDL.Int, IDL.Int], [CostSummary], ['query']),
183
+ 'get_all_pending_land_registry_submissions' : IDL.Func(
184
+ [IDL.Text],
185
+ [IDL.Vec(LandRegistryTransactionRecord)],
186
+ ['query'],
187
+ ),
188
+ 'get_all_transactions' : IDL.Func(
189
+ [],
190
+ [IDL.Vec(IDL.Tuple(IDL.Text, LandRegistryTransactionRecord))],
191
+ ['query'],
192
+ ),
193
+ 'get_land_registry_stats' : IDL.Func(
194
+ [IDL.Text, Period],
195
+ [LandRegistryStats],
196
+ ['query'],
197
+ ),
198
+ 'get_land_registry_status' : IDL.Func(
199
+ [],
200
+ [
201
+ IDL.Opt(
262
202
  IDL.Record({
263
- 'enabled': IDL.Bool,
264
- 'intervalSeconds': IDL.Nat,
265
- 'lastPollAt': IDL.Int,
266
- }),
267
- ], ['query']),
268
- 'getRateLimitStatus': IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, RateLimitInfo))], ['query']),
269
- 'getRegisteredProprietorNames': IDL.Func([IDL.Text], [Result_10], []),
270
- 'getTotalCosts': IDL.Func([IDL.Int, IDL.Int], [CostSummary], ['query']),
271
- 'get_all_pending_land_registry_submissions': IDL.Func([IDL.Text], [IDL.Vec(LandRegistryTransactionRecord)], ['query']),
272
- 'get_all_transactions': IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, LandRegistryTransactionRecord))], ['query']),
273
- 'get_land_registry_stats': IDL.Func([IDL.Text, Period], [LandRegistryStats], ['query']),
274
- 'get_land_registry_status': IDL.Func([], [
275
- IDL.Opt(IDL.Record({
276
- 'lastValidated': IDL.Int,
277
- 'apiEndpoint': IDL.Text,
278
- 'environment': Environment,
279
- })),
280
- ], ['query']),
281
- 'get_lr_response': IDL.Func([IDL.Text], [Result_9], ['query']),
282
- 'log_land_registry_error': IDL.Func([IDL.Text, IDL.Text], [Result_8], []),
283
- 'pollNotifications': IDL.Func([], [Result_7], []),
284
- 'prepare_ownership_transfer_payload': IDL.Func([
285
- IDL.Text,
286
- IDL.Text,
287
- IDL.Text,
288
- IDL.Text,
289
- IDL.Text,
290
- IDL.Text,
291
- NewOwnerInfo,
292
- ConveyancerInfo,
293
- IDL.Nat64,
294
- IDL.Text,
295
- IDL.Text,
296
- IDL.Text,
297
- IDL.Text,
298
- IDL.Int,
299
- IDL.Int,
300
- ], [Result_6], []),
301
- 'receive_land_registry_callback': IDL.Func([LandRegistryAPIResponse], [Result_2], []),
302
- 'recordAuditEntry': IDL.Func([ActorType, IDL.Opt(IDL.Principal), IDL.Text, IDL.Text, IDL.Bool], [Result_5], []),
303
- 'requestOfficialSearch': IDL.Func([IDL.Text, IDL.Text, IDL.Vec(IDL.Text), IDL.Text], [Result_4], []),
304
- 'retry_failed_land_registry_transmission': IDL.Func([IDL.Text], [Result_2], []),
305
- 'rotateCredentials': IDL.Func([IDL.Text], [Result_3], []),
306
- 'send_to_land_registry': IDL.Func([IDL.Text], [Result_2], []),
307
- 'setCredentials': IDL.Func([IDL.Text, IDL.Text, IDL.Text, Environment], [Result_3], []),
308
- 'setDailySpendLimit': IDL.Func([IDL.Nat], [Result_3], []),
309
- 'setNotificationPolling': IDL.Func([IDL.Bool, IDL.Opt(IDL.Nat)], [Result_3], []),
310
- 'setUserManagementCanisterId': IDL.Func([IDL.Text], [Result_3], []),
311
- 'simulate_land_registry_processing': IDL.Func([IDL.Text], [Result_2], []),
312
- 'submitApplicationToChangeRegister': IDL.Func([AP1SubmissionRequest, IDL.Text], [Result_1], []),
313
- 'transform': IDL.Func([TransformArgs], [HttpResponse], ['query']),
314
- 'validate_land_registry_connection': IDL.Func([], [Result], []),
315
- 'verify_land_registry_receipt': IDL.Func([IDL.Text], [Result], []),
316
- });
203
+ 'lastValidated' : IDL.Int,
204
+ 'apiEndpoint' : IDL.Text,
205
+ 'environment' : Environment,
206
+ })
207
+ ),
208
+ ],
209
+ ['query'],
210
+ ),
211
+ 'get_lr_response' : IDL.Func([IDL.Text], [Result_7], ['query']),
212
+ 'log_land_registry_error' : IDL.Func([IDL.Text, IDL.Text], [Result_6], []),
213
+ 'prepare_ownership_transfer_payload' : IDL.Func(
214
+ [
215
+ IDL.Text,
216
+ IDL.Text,
217
+ IDL.Text,
218
+ IDL.Text,
219
+ IDL.Text,
220
+ IDL.Text,
221
+ NewOwnerInfo,
222
+ ConveyancerInfo,
223
+ IDL.Nat64,
224
+ IDL.Text,
225
+ IDL.Text,
226
+ IDL.Text,
227
+ IDL.Text,
228
+ IDL.Int,
229
+ IDL.Int,
230
+ ],
231
+ [Result_5],
232
+ [],
233
+ ),
234
+ 'receive_land_registry_callback' : IDL.Func(
235
+ [LandRegistryAPIResponse],
236
+ [Result_1],
237
+ [],
238
+ ),
239
+ 'recordAuditEntry' : IDL.Func(
240
+ [ActorType, IDL.Opt(IDL.Principal), IDL.Text, IDL.Text, IDL.Bool],
241
+ [Result_4],
242
+ [],
243
+ ),
244
+ 'requestOfficialSearch' : IDL.Func(
245
+ [IDL.Text, IDL.Text, IDL.Vec(IDL.Text), IDL.Text],
246
+ [Result_3],
247
+ [],
248
+ ),
249
+ 'retry_failed_land_registry_transmission' : IDL.Func(
250
+ [IDL.Text],
251
+ [Result_1],
252
+ [],
253
+ ),
254
+ 'send_to_land_registry' : IDL.Func([IDL.Text], [Result_1], []),
255
+ 'setDailySpendLimit' : IDL.Func([IDL.Nat], [Result_2], []),
256
+ 'setNotificationPolling' : IDL.Func(
257
+ [IDL.Bool, IDL.Opt(IDL.Nat)],
258
+ [Result_2],
259
+ [],
260
+ ),
261
+ 'setUserManagementCanisterId' : IDL.Func([IDL.Text], [Result_2], []),
262
+ 'simulate_land_registry_processing' : IDL.Func([IDL.Text], [Result_1], []),
263
+ 'transform' : IDL.Func([TransformArgs], [HttpResponse], ['query']),
264
+ 'validate_land_registry_connection' : IDL.Func([], [Result], []),
265
+ 'verify_land_registry_receipt' : IDL.Func([IDL.Text], [Result], []),
266
+ });
317
267
  };
318
268
  export const init = ({ IDL }) => { return []; };
319
- //# sourceMappingURL=land_registry_integration.did.js.map