@propxchain/core-client 0.1.0-canary.3

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 (85) hide show
  1. package/README.md +115 -0
  2. package/dist/canisters/document_storage/document_storage.did.d.ts +7 -0
  3. package/dist/canisters/document_storage/document_storage.did.d.ts.map +1 -0
  4. package/dist/canisters/document_storage/document_storage.did.js +82 -0
  5. package/dist/canisters/document_storage/document_storage.did.js.map +1 -0
  6. package/dist/canisters/document_storage/index.d.ts +4 -0
  7. package/dist/canisters/document_storage/index.d.ts.map +1 -0
  8. package/dist/canisters/document_storage/index.js +2 -0
  9. package/dist/canisters/document_storage/index.js.map +1 -0
  10. package/dist/canisters/ledger_manager/index.d.ts +4 -0
  11. package/dist/canisters/ledger_manager/index.d.ts.map +1 -0
  12. package/dist/canisters/ledger_manager/index.js +2 -0
  13. package/dist/canisters/ledger_manager/index.js.map +1 -0
  14. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts +7 -0
  15. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +1 -0
  16. package/dist/canisters/ledger_manager/ledger_manager.did.js +138 -0
  17. package/dist/canisters/ledger_manager/ledger_manager.did.js.map +1 -0
  18. package/dist/canisters/transaction_manager/index.d.ts +4 -0
  19. package/dist/canisters/transaction_manager/index.d.ts.map +1 -0
  20. package/dist/canisters/transaction_manager/index.js +2 -0
  21. package/dist/canisters/transaction_manager/index.js.map +1 -0
  22. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts +7 -0
  23. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts.map +1 -0
  24. package/dist/canisters/transaction_manager/transaction_manager.did.js +515 -0
  25. package/dist/canisters/transaction_manager/transaction_manager.did.js.map +1 -0
  26. package/dist/canisters/user_management/index.d.ts +4 -0
  27. package/dist/canisters/user_management/index.d.ts.map +1 -0
  28. package/dist/canisters/user_management/index.js +2 -0
  29. package/dist/canisters/user_management/index.js.map +1 -0
  30. package/dist/canisters/user_management/user_management.did.d.ts +7 -0
  31. package/dist/canisters/user_management/user_management.did.d.ts.map +1 -0
  32. package/dist/canisters/user_management/user_management.did.js +137 -0
  33. package/dist/canisters/user_management/user_management.did.js.map +1 -0
  34. package/dist/client.d.ts +13 -0
  35. package/dist/client.d.ts.map +1 -0
  36. package/dist/client.js +41 -0
  37. package/dist/client.js.map +1 -0
  38. package/dist/errors.d.ts +8 -0
  39. package/dist/errors.d.ts.map +1 -0
  40. package/dist/errors.js +22 -0
  41. package/dist/errors.js.map +1 -0
  42. package/dist/index.d.ts +7 -0
  43. package/dist/index.d.ts.map +1 -0
  44. package/dist/index.js +7 -0
  45. package/dist/index.js.map +1 -0
  46. package/dist/mock.d.ts +22 -0
  47. package/dist/mock.d.ts.map +1 -0
  48. package/dist/mock.js +94 -0
  49. package/dist/mock.js.map +1 -0
  50. package/dist/retry.d.ts +11 -0
  51. package/dist/retry.d.ts.map +1 -0
  52. package/dist/retry.js +22 -0
  53. package/dist/retry.js.map +1 -0
  54. package/dist/stubs.d.ts +34 -0
  55. package/dist/stubs.d.ts.map +1 -0
  56. package/dist/stubs.js +17 -0
  57. package/dist/stubs.js.map +1 -0
  58. package/dist/types.d.ts +30 -0
  59. package/dist/types.d.ts.map +1 -0
  60. package/dist/types.js +7 -0
  61. package/dist/types.js.map +1 -0
  62. package/package.json +58 -0
  63. package/src/canisters/document_storage/document_storage.did +89 -0
  64. package/src/canisters/document_storage/document_storage.did.d.ts +82 -0
  65. package/src/canisters/document_storage/document_storage.did.js +121 -0
  66. package/src/canisters/document_storage/index.ts +5 -0
  67. package/src/canisters/ledger_manager/index.ts +5 -0
  68. package/src/canisters/ledger_manager/ledger_manager.did +154 -0
  69. package/src/canisters/ledger_manager/ledger_manager.did.d.ts +139 -0
  70. package/src/canisters/ledger_manager/ledger_manager.did.js +181 -0
  71. package/src/canisters/transaction_manager/index.ts +5 -0
  72. package/src/canisters/transaction_manager/transaction_manager.did +599 -0
  73. package/src/canisters/transaction_manager/transaction_manager.did.d.ts +517 -0
  74. package/src/canisters/transaction_manager/transaction_manager.did.js +638 -0
  75. package/src/canisters/user_management/index.ts +5 -0
  76. package/src/canisters/user_management/user_management.did +147 -0
  77. package/src/canisters/user_management/user_management.did.d.ts +148 -0
  78. package/src/canisters/user_management/user_management.did.js +192 -0
  79. package/src/client.ts +77 -0
  80. package/src/errors.ts +31 -0
  81. package/src/index.ts +30 -0
  82. package/src/mock.ts +120 -0
  83. package/src/retry.ts +44 -0
  84. package/src/stubs.ts +60 -0
  85. package/src/types.ts +44 -0
@@ -0,0 +1,638 @@
1
+ export const idlFactory = ({ IDL }) => {
2
+ const AMLStatus = IDL.Variant({
3
+ 'verified' : IDL.Null,
4
+ 'pending' : IDL.Null,
5
+ 'rejected' : IDL.Null,
6
+ 'not_started' : IDL.Null,
7
+ });
8
+ const Time = IDL.Int;
9
+ const TransactionPartyRole = IDL.Variant({
10
+ 'secondary_seller' : IDL.Null,
11
+ 'primary_buyer' : IDL.Null,
12
+ 'secondary_buyer' : IDL.Null,
13
+ 'primary_seller' : IDL.Null,
14
+ });
15
+ const TransactionParty = IDL.Record({
16
+ 'amlComplete' : IDL.Bool,
17
+ 'amlStatus' : AMLStatus,
18
+ 'principal' : IDL.Principal,
19
+ 'epcUploaded' : IDL.Bool,
20
+ 'proofOfIdentityUploaded' : IDL.Bool,
21
+ 'mortgageAgreementUploaded' : IDL.Bool,
22
+ 'name' : IDL.Text,
23
+ 'joinedAt' : Time,
24
+ 'role' : TransactionPartyRole,
25
+ 'email' : IDL.Text,
26
+ 'isPrimary' : IDL.Bool,
27
+ 'proofOfAddressUploaded' : IDL.Bool,
28
+ 'proofOfFundsUploaded' : IDL.Bool,
29
+ 'titleDeedsUploaded' : IDL.Bool,
30
+ 'ta6FormUploaded' : IDL.Bool,
31
+ 'ta10FormUploaded' : IDL.Bool,
32
+ });
33
+ const Result_2 = IDL.Variant({ 'ok' : TransactionParty, 'err' : IDL.Text });
34
+ const Result = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
35
+ const SolicitorTaskStatus = IDL.Variant({
36
+ 'pending' : IDL.Null,
37
+ 'in_progress' : IDL.Null,
38
+ 'completed' : IDL.Null,
39
+ 'confirmed_by_client' : IDL.Null,
40
+ });
41
+ const SolicitorTaskType = IDL.Variant({
42
+ 'identity_certification' : IDL.Null,
43
+ 'ap1_submission' : IDL.Null,
44
+ 'tr1_preparation' : IDL.Null,
45
+ });
46
+ const SolicitorTask = IDL.Record({
47
+ 'status' : SolicitorTaskStatus,
48
+ 'completedAt' : IDL.Opt(Time),
49
+ 'startedAt' : IDL.Opt(Time),
50
+ 'taskType' : SolicitorTaskType,
51
+ 'evidenceDocId' : IDL.Opt(IDL.Text),
52
+ 'priceGBP' : IDL.Nat,
53
+ });
54
+ const RegulatoryBody = IDL.Variant({ 'clc' : IDL.Null, 'sra' : IDL.Null });
55
+ const SolicitorRecord = IDL.Record({
56
+ 'consentRecordedAt' : Time,
57
+ 'tasks' : IDL.Vec(SolicitorTask),
58
+ 'regNumber' : IDL.Text,
59
+ 'principal' : IDL.Principal,
60
+ 'verified' : IDL.Bool,
61
+ 'name' : IDL.Text,
62
+ 'joinedAt' : Time,
63
+ 'firmName' : IDL.Text,
64
+ 'piiCertUploaded' : IDL.Bool,
65
+ 'email' : IDL.Text,
66
+ 'actingFor' : IDL.Variant({
67
+ 'both' : IDL.Null,
68
+ 'seller' : IDL.Null,
69
+ 'buyer' : IDL.Null,
70
+ }),
71
+ 'removalRequested' : IDL.Bool,
72
+ 'regulatoryBody' : RegulatoryBody,
73
+ });
74
+ const Result_1 = IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text });
75
+ const Result_18 = IDL.Variant({
76
+ 'ok' : IDL.Tuple(IDL.Text, IDL.Text),
77
+ 'err' : IDL.Text,
78
+ });
79
+ const TransactionStatus = IDL.Variant({
80
+ 'completion_initiated' : IDL.Null,
81
+ 'active' : IDL.Null,
82
+ 'blockchain_completed' : IDL.Null,
83
+ 'exchanged' : IDL.Null,
84
+ 'land_registry_registered' : IDL.Null,
85
+ });
86
+ const LandRegistryStatus = IDL.Variant({
87
+ 'cancelled' : IDL.Null,
88
+ 'submitted' : IDL.Null,
89
+ 'completed_with_notes' : IDL.Null,
90
+ 'under_examination' : IDL.Null,
91
+ 'requisition_raised' : IDL.Null,
92
+ 'pending_official_search' : IDL.Null,
93
+ 'not_initiated' : IDL.Null,
94
+ 'pending_submission' : IDL.Null,
95
+ 'pre_validation_failed' : IDL.Null,
96
+ 'queued_manual_processing' : IDL.Null,
97
+ 'application_received' : IDL.Null,
98
+ 'official_search_completed' : IDL.Null,
99
+ 'requisition_responded' : IDL.Null,
100
+ 'rejected' : IDL.Null,
101
+ 'official_search_expired' : IDL.Null,
102
+ 'failed' : IDL.Null,
103
+ 'registered' : IDL.Null,
104
+ });
105
+ const Requisition = IDL.Record({
106
+ 'requisitionId' : IDL.Text,
107
+ 'description' : IDL.Text,
108
+ 'isResolved' : IDL.Bool,
109
+ 'category' : IDL.Text,
110
+ 'raisedAt' : IDL.Int,
111
+ 'responseText' : IDL.Opt(IDL.Text),
112
+ 'respondedAt' : IDL.Opt(IDL.Int),
113
+ 'resolvedAt' : IDL.Opt(IDL.Int),
114
+ });
115
+ const LandRegistryIntegration = IDL.Record({
116
+ 'status' : LandRegistryStatus,
117
+ 'lastPolledAt' : IDL.Opt(IDL.Int),
118
+ 'advisoryEntries' : IDL.Vec(IDL.Text),
119
+ 'officialSearchCost' : IDL.Nat,
120
+ 'officialSearchRequestedAt' : IDL.Opt(IDL.Int),
121
+ 'registerChangedSinceSearch' : IDL.Opt(IDL.Bool),
122
+ 'officialSearchCompletedAt' : IDL.Opt(IDL.Int),
123
+ 'registrationNotes' : IDL.Vec(IDL.Text),
124
+ 'lastUpdated' : IDL.Int,
125
+ 'estimatedLRCompletionTime' : IDL.Opt(IDL.Int),
126
+ 'applicationReference' : IDL.Opt(IDL.Text),
127
+ 'officialSearchPriorityExpiry' : IDL.Opt(IDL.Int),
128
+ 'officialSearchCertificateRef' : IDL.Opt(IDL.Text),
129
+ 'preValidationErrors' : IDL.Vec(IDL.Text),
130
+ 'applicationFee' : IDL.Nat,
131
+ 'caseworkerAssigned' : IDL.Opt(IDL.Bool),
132
+ 'lrPayloadID' : IDL.Opt(IDL.Text),
133
+ 'requisitions' : IDL.Vec(Requisition),
134
+ 'submissionResponseCode' : IDL.Opt(IDL.Nat),
135
+ 'submittedToLRAt' : IDL.Opt(IDL.Int),
136
+ 'pollCount' : IDL.Nat,
137
+ 'estimatedCompletionDate' : IDL.Opt(IDL.Text),
138
+ 'registeredAt' : IDL.Opt(IDL.Int),
139
+ 'newTitleNumber' : IDL.Opt(IDL.Text),
140
+ 'totalLRCosts' : IDL.Nat,
141
+ 'landRegistryConfirmationNumber' : IDL.Opt(IDL.Text),
142
+ });
143
+ const Transaction = IDL.Record({
144
+ 'id' : IDL.Text,
145
+ 'status' : TransactionStatus,
146
+ 'buyerFundsHash' : IDL.Opt(IDL.Text),
147
+ 'userRole' : IDL.Text,
148
+ 'oldStatus' : IDL.Text,
149
+ 'postcode' : IDL.Text,
150
+ 'exchangedAt' : IDL.Opt(IDL.Int),
151
+ 'propertyCategory' : IDL.Text,
152
+ 'transactionType' : IDL.Text,
153
+ 'completionDate' : IDL.Text,
154
+ 'completionStatementHash' : IDL.Opt(IDL.Text),
155
+ 'landRegistryRegisteredAt' : IDL.Opt(IDL.Int),
156
+ 'sellerSolicitorSignature' : IDL.Opt(IDL.Text),
157
+ 'propertyType' : IDL.Text,
158
+ 'completionInitiatedAt' : IDL.Opt(IDL.Int),
159
+ 'buyerSolicitorSignature' : IDL.Opt(IDL.Text),
160
+ 'titleNumber' : IDL.Text,
161
+ 'mode' : IDL.Text,
162
+ 'createdAt' : IDL.Int,
163
+ 'createdBy' : IDL.Principal,
164
+ 'blockchainCompletionProof' : IDL.Opt(IDL.Text),
165
+ 'blockchainCompletedAt' : IDL.Opt(IDL.Int),
166
+ 'accessList' : IDL.Vec(IDL.Principal),
167
+ 'solicitor' : IDL.Opt(IDL.Principal),
168
+ 'sellerSolicitor' : IDL.Opt(SolicitorRecord),
169
+ 'chainedTransactions' : IDL.Vec(IDL.Text),
170
+ 'previousOwner' : IDL.Text,
171
+ 'propertyId' : IDL.Text,
172
+ 'propertyAddress' : IDL.Text,
173
+ 'deposit' : IDL.Nat64,
174
+ 'seller' : IDL.Principal,
175
+ 'contractExchangeTimestamp' : IDL.Opt(IDL.Int),
176
+ 'sellers' : IDL.Opt(IDL.Vec(TransactionParty)),
177
+ 'mortgageAmount' : IDL.Nat64,
178
+ 'inviteCode' : IDL.Text,
179
+ 'chainPosition' : IDL.Opt(IDL.Nat),
180
+ 'buyer' : IDL.Principal,
181
+ 'landRegistryIntegration' : LandRegistryIntegration,
182
+ 'amount' : IDL.Nat64,
183
+ 'buyers' : IDL.Opt(IDL.Vec(TransactionParty)),
184
+ 'linkToTransaction' : IDL.Opt(IDL.Text),
185
+ 'buyerSolicitor' : IDL.Opt(SolicitorRecord),
186
+ 'blockchainCompletionTimestamp' : IDL.Opt(IDL.Int),
187
+ });
188
+ const Phase = IDL.Variant({
189
+ 'buyerSetup' : IDL.Null,
190
+ 'preContract' : IDL.Null,
191
+ 'completed' : IDL.Null,
192
+ 'sellerPrep' : IDL.Null,
193
+ 'preCompletion' : IDL.Null,
194
+ 'searches' : IDL.Null,
195
+ });
196
+ const Result_17 = IDL.Variant({ 'ok' : Phase, 'err' : IDL.Text });
197
+ const Notification = IDL.Record({
198
+ 'id' : IDL.Nat,
199
+ 'documentHash' : IDL.Text,
200
+ 'createdAt' : Time,
201
+ 'read' : IDL.Bool,
202
+ 'recipient' : IDL.Principal,
203
+ 'message' : IDL.Text,
204
+ 'docType' : IDL.Text,
205
+ 'uploadedBy' : IDL.Principal,
206
+ 'transactionId' : IDL.Text,
207
+ });
208
+ const PartyProgress = IDL.Record({
209
+ 'completedParties' : IDL.Nat,
210
+ 'overallProgress' : IDL.Nat,
211
+ 'allAMLComplete' : IDL.Bool,
212
+ 'totalParties' : IDL.Nat,
213
+ 'parties' : IDL.Vec(TransactionParty),
214
+ });
215
+ const TransactionPartyProgress = IDL.Record({
216
+ 'readyToExchange' : IDL.Bool,
217
+ 'sellers' : PartyProgress,
218
+ 'buyers' : PartyProgress,
219
+ });
220
+ const Result_16 = IDL.Variant({
221
+ 'ok' : TransactionPartyProgress,
222
+ 'err' : IDL.Text,
223
+ });
224
+ const PhaseMilestones = IDL.Record({
225
+ 'contractDraftedAt' : IDL.Opt(IDL.Int),
226
+ 'searchesOrderedAt' : IDL.Opt(IDL.Int),
227
+ });
228
+ const Result_15 = IDL.Variant({ 'ok' : PhaseMilestones, 'err' : IDL.Text });
229
+ const Result_14 = IDL.Variant({
230
+ 'ok' : IDL.Record({
231
+ 'sellerSolicitor' : IDL.Opt(SolicitorRecord),
232
+ 'buyerSolicitor' : IDL.Opt(SolicitorRecord),
233
+ }),
234
+ 'err' : IDL.Text,
235
+ });
236
+ const TA10FittingItem = IDL.Record({
237
+ 'item' : IDL.Text,
238
+ 'included' : IDL.Bool,
239
+ 'notes' : IDL.Opt(IDL.Text),
240
+ });
241
+ const TA10Room = IDL.Record({
242
+ 'fittings' : IDL.Vec(TA10FittingItem),
243
+ 'roomName' : IDL.Text,
244
+ });
245
+ const TA10FittingsAndContents = IDL.Record({
246
+ 'completedAt' : IDL.Opt(IDL.Int),
247
+ 'completedBy' : IDL.Principal,
248
+ 'additionalItems' : IDL.Text,
249
+ 'outdoorItems' : IDL.Vec(TA10FittingItem),
250
+ 'lastModifiedAt' : IDL.Int,
251
+ 'lastModifiedBy' : IDL.Principal,
252
+ 'rooms' : IDL.Vec(TA10Room),
253
+ });
254
+ const Result_13 = IDL.Variant({
255
+ 'ok' : IDL.Opt(TA10FittingsAndContents),
256
+ 'err' : IDL.Text,
257
+ });
258
+ const TA6Disputes = IDL.Record({
259
+ 'details' : IDL.Text,
260
+ 'disputeType' : IDL.Text,
261
+ });
262
+ const TA6Notices = IDL.Record({
263
+ 'noticeType' : IDL.Text,
264
+ 'details' : IDL.Text,
265
+ });
266
+ const TA6Alterations = IDL.Record({
267
+ 'hasAlterations' : IDL.Bool,
268
+ 'requiresPermission' : IDL.Bool,
269
+ 'details' : IDL.Text,
270
+ });
271
+ const TA6EstateManagement = IDL.Record({
272
+ 'isManaged' : IDL.Bool,
273
+ 'annualCharge' : IDL.Nat,
274
+ 'managementCompany' : IDL.Text,
275
+ });
276
+ const TA6BoundaryDisputes = IDL.Record({
277
+ 'details' : IDL.Text,
278
+ 'hasDisputes' : IDL.Bool,
279
+ });
280
+ const TA6PropertyInformation = IDL.Record({
281
+ 'completedAt' : IDL.Opt(IDL.Int),
282
+ 'completedBy' : IDL.Principal,
283
+ 'disputes' : IDL.Opt(TA6Disputes),
284
+ 'boundaries' : IDL.Text,
285
+ 'otherInformation' : IDL.Text,
286
+ 'notices' : IDL.Opt(TA6Notices),
287
+ 'environmentalDetails' : IDL.Text,
288
+ 'guarantees' : IDL.Text,
289
+ 'insurance' : IDL.Text,
290
+ 'alterations' : IDL.Opt(TA6Alterations),
291
+ 'estateManagement' : IDL.Opt(TA6EstateManagement),
292
+ 'environmentalIssues' : IDL.Vec(IDL.Text),
293
+ 'boundaryDisputes' : IDL.Opt(TA6BoundaryDisputes),
294
+ 'lastModifiedAt' : IDL.Int,
295
+ 'lastModifiedBy' : IDL.Principal,
296
+ 'parkingDetails' : IDL.Text,
297
+ 'connectionAgreements' : IDL.Text,
298
+ 'services' : IDL.Text,
299
+ 'rightsAndEasements' : IDL.Text,
300
+ 'parkingSpaces' : IDL.Nat,
301
+ });
302
+ const Result_12 = IDL.Variant({
303
+ 'ok' : IDL.Opt(TA6PropertyInformation),
304
+ 'err' : IDL.Text,
305
+ });
306
+ const TA7LeaseholdInformation = IDL.Record({
307
+ 'completedAt' : IDL.Opt(IDL.Int),
308
+ 'completedBy' : IDL.Principal,
309
+ 'restrictions' : IDL.Text,
310
+ 'serviceChargePaymentFrequency' : IDL.Text,
311
+ 'freeholder' : IDL.Text,
312
+ 'groundRentPaymentFrequency' : IDL.Text,
313
+ 'serviceChargeAmount' : IDL.Nat,
314
+ 'sublettingAllowed' : IDL.Bool,
315
+ 'groundRentAmount' : IDL.Nat,
316
+ 'leaseExpiryDate' : IDL.Text,
317
+ 'lastModifiedAt' : IDL.Int,
318
+ 'lastModifiedBy' : IDL.Principal,
319
+ 'leaseTermYears' : IDL.Nat,
320
+ 'petsAllowed' : IDL.Bool,
321
+ 'managingAgent' : IDL.Opt(IDL.Text),
322
+ 'leaseStartDate' : IDL.Text,
323
+ 'alterationsAllowed' : IDL.Bool,
324
+ });
325
+ const Result_11 = IDL.Variant({
326
+ 'ok' : IDL.Opt(TA7LeaseholdInformation),
327
+ 'err' : IDL.Text,
328
+ });
329
+ const BotConnection = IDL.Record({
330
+ 'principal' : IDL.Principal,
331
+ 'name' : IDL.Text,
332
+ 'addedAt' : IDL.Int,
333
+ 'addedBy' : IDL.Principal,
334
+ });
335
+ const Result_10 = IDL.Variant({
336
+ 'ok' : IDL.Vec(BotConnection),
337
+ 'err' : IDL.Text,
338
+ });
339
+ const Result_9 = IDL.Variant({
340
+ 'ok' : IDL.Vec(Transaction),
341
+ 'err' : IDL.Text,
342
+ });
343
+ const Result_8 = IDL.Variant({
344
+ 'ok' : IDL.Vec(Notification),
345
+ 'err' : IDL.Text,
346
+ });
347
+ const Result_7 = IDL.Variant({
348
+ 'ok' : IDL.Record({
349
+ 'sellers' : IDL.Vec(TransactionParty),
350
+ 'buyers' : IDL.Vec(TransactionParty),
351
+ }),
352
+ 'err' : IDL.Text,
353
+ });
354
+ const TransactionTimeline = IDL.Record({
355
+ 'exchangedAt' : IDL.Opt(IDL.Int),
356
+ 'landRegistryRegisteredAt' : IDL.Opt(IDL.Int),
357
+ 'completionInitiatedAt' : IDL.Opt(IDL.Int),
358
+ 'createdAt' : IDL.Int,
359
+ 'blockchainCompletedAt' : IDL.Opt(IDL.Int),
360
+ 'totalTimeToCompletion' : IDL.Nat,
361
+ 'totalTimeIncludingLR' : IDL.Nat,
362
+ });
363
+ const Result_6 = IDL.Variant({ 'ok' : Transaction, 'err' : IDL.Text });
364
+ const Result_5 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
365
+ const ApplicationStatusUpdate = IDL.Record({
366
+ 'lastUpdated' : IDL.Text,
367
+ 'applicationReference' : IDL.Text,
368
+ 'estimatedCompletionDate' : IDL.Opt(IDL.Text),
369
+ 'statusChanged' : IDL.Bool,
370
+ 'currentStatus' : LandRegistryStatus,
371
+ 'previousStatus' : LandRegistryStatus,
372
+ });
373
+ const Result_4 = IDL.Variant({
374
+ 'ok' : ApplicationStatusUpdate,
375
+ 'err' : IDL.Text,
376
+ });
377
+ const OfficialSearchResult = IDL.Record({
378
+ 'officialCopyTimestamp' : IDL.Opt(IDL.Text),
379
+ 'advisoryEntries' : IDL.Vec(IDL.Text),
380
+ 'certificateTimestamp' : IDL.Text,
381
+ 'registerChanged' : IDL.Bool,
382
+ 'priorityExpiry' : IDL.Text,
383
+ 'certificateRef' : IDL.Text,
384
+ });
385
+ const Result_3 = IDL.Variant({
386
+ 'ok' : OfficialSearchResult,
387
+ 'err' : IDL.Text,
388
+ });
389
+ return IDL.Service({
390
+ 'addParty' : IDL.Func(
391
+ [IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Bool],
392
+ [Result_2],
393
+ [],
394
+ ),
395
+ 'adminForceDeleteTransaction' : IDL.Func([IDL.Text], [Result], []),
396
+ 'assignBuyer' : IDL.Func([IDL.Text, IDL.Principal], [Result], []),
397
+ 'assignSolicitor' : IDL.Func([IDL.Text, IDL.Principal], [Result], []),
398
+ 'assignSolicitorRecord' : IDL.Func(
399
+ [IDL.Text, SolicitorRecord],
400
+ [Result_1],
401
+ [],
402
+ ),
403
+ 'bootstrapDocumentStorageCanister' : IDL.Func(
404
+ [IDL.Principal],
405
+ [Result],
406
+ [],
407
+ ),
408
+ 'canAccessTransaction' : IDL.Func([IDL.Text], [IDL.Bool], ['query']),
409
+ 'connectBot' : IDL.Func(
410
+ [IDL.Text, IDL.Principal, IDL.Text],
411
+ [Result_1],
412
+ [],
413
+ ),
414
+ 'consumeLandRegistryNotification' : IDL.Func(
415
+ [
416
+ IDL.Text,
417
+ IDL.Opt(IDL.Text),
418
+ IDL.Opt(IDL.Text),
419
+ IDL.Text,
420
+ IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
421
+ ],
422
+ [Result_1],
423
+ [],
424
+ ),
425
+ 'createTransaction' : IDL.Func(
426
+ [
427
+ IDL.Text,
428
+ IDL.Text,
429
+ IDL.Text,
430
+ IDL.Text,
431
+ IDL.Principal,
432
+ IDL.Text,
433
+ IDL.Nat64,
434
+ IDL.Text,
435
+ IDL.Text,
436
+ IDL.Text,
437
+ IDL.Text,
438
+ IDL.Text,
439
+ IDL.Nat64,
440
+ IDL.Nat64,
441
+ IDL.Text,
442
+ ],
443
+ [IDL.Text],
444
+ [],
445
+ ),
446
+ 'createTransactionWithInvite' : IDL.Func(
447
+ [
448
+ IDL.Text,
449
+ IDL.Text,
450
+ IDL.Text,
451
+ IDL.Text,
452
+ IDL.Principal,
453
+ IDL.Text,
454
+ IDL.Nat64,
455
+ IDL.Text,
456
+ IDL.Text,
457
+ IDL.Text,
458
+ IDL.Text,
459
+ IDL.Text,
460
+ IDL.Nat64,
461
+ IDL.Nat64,
462
+ IDL.Text,
463
+ ],
464
+ [Result_18],
465
+ [],
466
+ ),
467
+ 'deleteTransaction' : IDL.Func([IDL.Text], [Result], []),
468
+ 'disconnectBot' : IDL.Func([IDL.Text, IDL.Principal], [Result_1], []),
469
+ 'doesTransactionExist' : IDL.Func([IDL.Text], [IDL.Bool], ['query']),
470
+ 'getAllInviteCodes' : IDL.Func(
471
+ [],
472
+ [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
473
+ ['query'],
474
+ ),
475
+ 'getAllTransactions' : IDL.Func([], [IDL.Vec(Transaction)], ['query']),
476
+ 'getCurrentPhase' : IDL.Func([IDL.Text], [Result_17], ['query']),
477
+ 'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
478
+ 'getDocumentStorageCanister' : IDL.Func(
479
+ [],
480
+ [IDL.Opt(IDL.Principal)],
481
+ ['query'],
482
+ ),
483
+ 'getExpiringSearches' : IDL.Func(
484
+ [IDL.Nat],
485
+ [IDL.Vec(Transaction)],
486
+ ['query'],
487
+ ),
488
+ 'getFlowState' : IDL.Func([IDL.Text], [IDL.Opt(IDL.Text)], ['query']),
489
+ 'getInviteCode' : IDL.Func([IDL.Text], [Result], ['query']),
490
+ 'getLandRegistryDetail' : IDL.Func(
491
+ [IDL.Text],
492
+ [IDL.Opt(LandRegistryIntegration)],
493
+ ['query'],
494
+ ),
495
+ 'getListingData' : IDL.Func([IDL.Text], [IDL.Opt(IDL.Text)], ['query']),
496
+ 'getMyNotifications' : IDL.Func([], [IDL.Vec(Notification)], ['query']),
497
+ 'getMyTransactions' : IDL.Func([], [IDL.Vec(Transaction)], ['query']),
498
+ 'getOutstandingRequisitions' : IDL.Func(
499
+ [],
500
+ [IDL.Vec(IDL.Tuple(IDL.Text, Requisition))],
501
+ ['query'],
502
+ ),
503
+ 'getPartyProgress' : IDL.Func([IDL.Text], [Result_16], ['query']),
504
+ 'getPendingLRApplications' : IDL.Func(
505
+ [],
506
+ [IDL.Vec(Transaction)],
507
+ ['query'],
508
+ ),
509
+ 'getPhaseMilestones' : IDL.Func([IDL.Text], [Result_15], ['query']),
510
+ 'getSolicitorStatus' : IDL.Func([IDL.Text], [Result_14], ['query']),
511
+ 'getTA10' : IDL.Func([IDL.Text], [Result_13], ['query']),
512
+ 'getTA6' : IDL.Func([IDL.Text], [Result_12], ['query']),
513
+ 'getTA7' : IDL.Func([IDL.Text], [Result_11], ['query']),
514
+ 'getTransaction' : IDL.Func([IDL.Text], [IDL.Opt(Transaction)], ['query']),
515
+ 'getTransactionBots' : IDL.Func([IDL.Text], [Result_10], ['query']),
516
+ 'getTransactionByInviteCode' : IDL.Func(
517
+ [IDL.Text],
518
+ [IDL.Opt(Transaction)],
519
+ [],
520
+ ),
521
+ 'getTransactionChain' : IDL.Func([IDL.Text], [Result_9], ['query']),
522
+ 'getTransactionNotifications' : IDL.Func([IDL.Text], [Result_8], ['query']),
523
+ 'getTransactionParties' : IDL.Func([IDL.Text], [Result_7], ['query']),
524
+ 'getTransactionsByStatus' : IDL.Func(
525
+ [TransactionStatus],
526
+ [IDL.Vec(Transaction)],
527
+ ['query'],
528
+ ),
529
+ 'getTransactionsForPrincipal' : IDL.Func(
530
+ [IDL.Principal],
531
+ [IDL.Vec(Transaction)],
532
+ ['query'],
533
+ ),
534
+ 'getTransactionsNeedingSearch' : IDL.Func(
535
+ [],
536
+ [IDL.Vec(Transaction)],
537
+ ['query'],
538
+ ),
539
+ 'getUnreadNotificationCount' : IDL.Func([], [IDL.Nat], ['query']),
540
+ 'getUnreadNotificationCountForPrincipal' : IDL.Func(
541
+ [IDL.Principal],
542
+ [IDL.Nat],
543
+ ['query'],
544
+ ),
545
+ 'getUserManagementCanister' : IDL.Func([], [IDL.Text], ['query']),
546
+ 'get_transaction_timeline' : IDL.Func(
547
+ [IDL.Text],
548
+ [IDL.Opt(TransactionTimeline)],
549
+ ['query'],
550
+ ),
551
+ 'initiate_blockchain_completion' : IDL.Func(
552
+ [IDL.Text, IDL.Text, IDL.Text],
553
+ [Result],
554
+ [],
555
+ ),
556
+ 'joinTransactionByInviteCode' : IDL.Func([IDL.Text], [Result_6], []),
557
+ 'linkTransactionToChain' : IDL.Func([IDL.Text, IDL.Text], [Result_1], []),
558
+ 'markAllNotificationsRead' : IDL.Func([], [IDL.Nat], []),
559
+ 'markContractDrafted' : IDL.Func([IDL.Text], [Result_1], []),
560
+ 'markNotificationRead' : IDL.Func([IDL.Nat], [Result_1], []),
561
+ 'markSearchesOrdered' : IDL.Func([IDL.Text], [Result_1], []),
562
+ 'onDocumentRegistered' : IDL.Func(
563
+ [IDL.Text, IDL.Text, IDL.Text, IDL.Principal],
564
+ [],
565
+ [],
566
+ ),
567
+ 'on_blockchain_completion_success' : IDL.Func([IDL.Text], [Result], []),
568
+ 'pollAllPendingApplications' : IDL.Func([], [Result_5], []),
569
+ 'pollApplicationStatus' : IDL.Func([IDL.Text], [Result_4], []),
570
+ 'recordContractExchange' : IDL.Func(
571
+ [IDL.Text, IDL.Text, IDL.Text],
572
+ [Result],
573
+ [],
574
+ ),
575
+ 'recordFormUpload' : IDL.Func(
576
+ [IDL.Text, IDL.Text, IDL.Text, IDL.Text],
577
+ [Result_1],
578
+ [],
579
+ ),
580
+ 'recordPartySignature' : IDL.Func(
581
+ [IDL.Text, IDL.Text, IDL.Text],
582
+ [Result],
583
+ [],
584
+ ),
585
+ 'recordRequisition' : IDL.Func([IDL.Text, Requisition], [Result_1], []),
586
+ 'removeParty' : IDL.Func([IDL.Text, IDL.Principal], [Result_1], []),
587
+ 'removeSolicitor' : IDL.Func(
588
+ [IDL.Text, IDL.Variant({ 'seller' : IDL.Null, 'buyer' : IDL.Null })],
589
+ [Result_1],
590
+ [],
591
+ ),
592
+ 'requestOfficialSearch' : IDL.Func([IDL.Text], [Result_3], []),
593
+ 'respondToRequisition' : IDL.Func(
594
+ [IDL.Text, IDL.Text, IDL.Text, IDL.Vec(IDL.Text)],
595
+ [Result_1],
596
+ [],
597
+ ),
598
+ 'revokeBuyer' : IDL.Func([IDL.Text, IDL.Principal], [Result], []),
599
+ 'setDocumentStorageCanister' : IDL.Func([IDL.Principal], [Result], []),
600
+ 'setFlowState' : IDL.Func([IDL.Text, IDL.Text], [Result], []),
601
+ 'setListingData' : IDL.Func([IDL.Text, IDL.Text], [Result], []),
602
+ 'setUserManagementCanister' : IDL.Func([IDL.Text], [Result], []),
603
+ 'trigger_land_registry_submission' : IDL.Func([IDL.Text], [Result], []),
604
+ 'updatePartyAMLDoc' : IDL.Func(
605
+ [IDL.Text, IDL.Principal, IDL.Text],
606
+ [Result_2],
607
+ [],
608
+ ),
609
+ 'updateSolicitorTaskStatus' : IDL.Func(
610
+ [IDL.Text, SolicitorTaskType, SolicitorTaskStatus, IDL.Opt(IDL.Text)],
611
+ [Result_1],
612
+ [],
613
+ ),
614
+ 'updateSolicitorVerification' : IDL.Func(
615
+ [
616
+ IDL.Text,
617
+ IDL.Variant({ 'seller' : IDL.Null, 'buyer' : IDL.Null }),
618
+ IDL.Bool,
619
+ ],
620
+ [Result_1],
621
+ [],
622
+ ),
623
+ 'updateTA10' : IDL.Func(
624
+ [IDL.Text, TA10FittingsAndContents],
625
+ [Result_1],
626
+ [],
627
+ ),
628
+ 'updateTA6' : IDL.Func([IDL.Text, TA6PropertyInformation], [Result_1], []),
629
+ 'updateTA7' : IDL.Func([IDL.Text, TA7LeaseholdInformation], [Result_1], []),
630
+ 'updateTransactionStatus' : IDL.Func([IDL.Nat, IDL.Text], [IDL.Bool], []),
631
+ 'update_land_registry_status' : IDL.Func(
632
+ [IDL.Text, LandRegistryStatus, IDL.Opt(IDL.Text), IDL.Opt(IDL.Int)],
633
+ [Result],
634
+ [],
635
+ ),
636
+ });
637
+ };
638
+ export const init = ({ IDL }) => { return []; };
@@ -0,0 +1,5 @@
1
+ export { idlFactory } from "./user_management.did.js";
2
+ export type {
3
+ _SERVICE as UserManagementService,
4
+ } from "./user_management.did.js";
5
+ export type * from "./user_management.did.js";