@propxchain/core-client 0.3.0-canary.35 → 0.3.0-canary.36

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 (33) hide show
  1. package/dist/canisters/document_storage/document_storage.did.d.ts +159 -7
  2. package/dist/canisters/document_storage/document_storage.did.js +227 -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 +380 -315
  9. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts +214 -7
  10. package/dist/canisters/ledger_manager/ledger_manager.did.js +265 -198
  11. package/dist/canisters/property_registry/property_registry.did.d.ts +73 -7
  12. package/dist/canisters/property_registry/property_registry.did.js +76 -57
  13. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts +912 -7
  14. package/dist/canisters/transaction_manager/transaction_manager.did.js +1004 -869
  15. package/dist/canisters/user_management/user_management.did.d.ts +267 -7
  16. package/dist/canisters/user_management/user_management.did.js +349 -254
  17. package/package.json +2 -2
  18. package/dist/canisters/document_storage/document_storage.did.d.ts.map +0 -1
  19. package/dist/canisters/document_storage/document_storage.did.js.map +0 -1
  20. package/dist/canisters/document_verification/document_verification.did.d.ts.map +0 -1
  21. package/dist/canisters/document_verification/document_verification.did.js.map +0 -1
  22. package/dist/canisters/email_service/email_service.did.d.ts.map +0 -1
  23. package/dist/canisters/email_service/email_service.did.js.map +0 -1
  24. package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts.map +0 -1
  25. package/dist/canisters/land_registry_integration/land_registry_integration.did.js.map +0 -1
  26. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +0 -1
  27. package/dist/canisters/ledger_manager/ledger_manager.did.js.map +0 -1
  28. package/dist/canisters/property_registry/property_registry.did.d.ts.map +0 -1
  29. package/dist/canisters/property_registry/property_registry.did.js.map +0 -1
  30. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts.map +0 -1
  31. package/dist/canisters/transaction_manager/transaction_manager.did.js.map +0 -1
  32. package/dist/canisters/user_management/user_management.did.d.ts.map +0 -1
  33. package/dist/canisters/user_management/user_management.did.js.map +0 -1
@@ -1,201 +1,268 @@
1
1
  export const idlFactory = ({ IDL }) => {
2
- const TransactionRole = IDL.Variant({
3
- 'agent': IDL.Null,
4
- 'solicitor': IDL.Null,
5
- 'seller': IDL.Null,
6
- 'buyer': IDL.Null,
7
- });
8
- const Counterparty = IDL.Record({
9
- 'accountID': IDL.Text,
10
- 'name': IDL.Text,
11
- });
12
- const TeamMemberRole = IDL.Variant({
13
- 'manager': IDL.Null,
14
- 'admin': IDL.Null,
15
- 'viewer': IDL.Null,
16
- });
17
- const TeamPermissions = IDL.Record({
18
- 'canSign': IDL.Bool,
19
- 'canInitiate': IDL.Bool,
20
- 'canViewAnalytics': IDL.Bool,
21
- 'canManageTeam': IDL.Bool,
22
- });
23
- const AccountType = IDL.Variant({
24
- 'company': IDL.Null,
25
- 'individual': IDL.Null,
26
- });
27
- const AuditEvent = IDL.Record({
28
- 'eventId': IDL.Nat,
29
- 'metadata': IDL.Opt(IDL.Text),
30
- 'timestamp': IDL.Int,
31
- 'details': IDL.Text,
32
- 'caller': IDL.Principal,
33
- 'transactionId': IDL.Text,
34
- 'eventType': IDL.Text,
35
- });
36
- const BlockchainEfficiencyMetrics = IDL.Record({
37
- 'avgBlockchainCompletionDays': IDL.Nat,
38
- 'totalCostSaved': IDL.Nat,
39
- 'avgTraditionalCompletionDays': IDL.Nat,
40
- 'timeReductionPercent': IDL.Nat,
41
- 'avgTraditionalCost': IDL.Nat,
42
- 'avgBlockchainCost': IDL.Nat,
43
- 'transactionsCompleted': IDL.Nat,
44
- 'costReductionPercent': IDL.Nat,
45
- 'totalTimeSavedDays': IDL.Nat,
46
- });
47
- const BudgetStatus = IDL.Record({
48
- 'dailyRemaining': IDL.Nat,
49
- 'isOverDailyBudget': IDL.Bool,
50
- 'monthlyLimit': IDL.Nat,
51
- 'monthlySpent': IDL.Nat,
52
- 'dailyLimit': IDL.Nat,
53
- 'dailySpent': IDL.Nat,
54
- 'isOverMonthlyBudget': IDL.Bool,
55
- 'monthlyRemaining': IDL.Nat,
56
- });
57
- const CompanyLedger = IDL.Record({
58
- 'companyAccountID': IDL.Text,
59
- 'avgCompletionTime': IDL.Nat,
60
- 'costSavings': IDL.Nat,
61
- 'completedThisMonth': IDL.Nat,
62
- 'activeTransactions': IDL.Nat,
63
- 'teamMemberCount': IDL.Nat,
64
- 'totalTransactions': IDL.Nat,
65
- });
66
- const Time = IDL.Int;
67
- const CompanyTeamMember = IDL.Record({
68
- 'memberID': IDL.Text,
69
- 'permissions': TeamPermissions,
70
- 'accountID': IDL.Text,
71
- 'joinDate': Time,
72
- 'name': IDL.Text,
73
- 'role': TeamMemberRole,
74
- 'email': IDL.Text,
75
- });
76
- const LRCostReport = IDL.Record({
77
- 'entryCount': IDL.Nat,
78
- 'byEndpoint': IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat)),
79
- 'avgCostPerTransaction': IDL.Nat,
80
- 'totalGBP': IDL.Text,
81
- 'totalPence': IDL.Nat,
82
- });
83
- const LandRegistryCostEntry = IDL.Record({
84
- 'id': IDL.Nat,
85
- 'titleNumber': IDL.Text,
86
- 'invoiceReference': IDL.Opt(IDL.Text),
87
- 'description': IDL.Text,
88
- 'calledAt': IDL.Int,
89
- 'calledBy': IDL.Principal,
90
- 'apiEndpoint': IDL.Text,
91
- 'costPence': IDL.Nat,
92
- 'transactionId': IDL.Text,
93
- });
94
- const Analytics = IDL.Record({
95
- 'transactionVolume': IDL.Nat,
96
- 'avgCompletionTime': IDL.Nat,
97
- 'period': IDL.Text,
98
- 'totalCostSavings': IDL.Nat,
99
- 'completedTransactions': IDL.Nat,
100
- 'totalTransactions': IDL.Nat,
101
- });
102
- const UserAccount = IDL.Record({
103
- 'taxID': IDL.Opt(IDL.Text),
104
- 'accountID': IDL.Text,
105
- 'name': IDL.Text,
106
- 'isActive': IDL.Bool,
107
- 'email': IDL.Text,
108
- 'accountType': AccountType,
109
- 'companyName': IDL.Opt(IDL.Text),
110
- 'registrationDate': Time,
111
- });
112
- const TransactionStatus = IDL.Variant({
113
- 'active': IDL.Null,
114
- 'pending': IDL.Null,
115
- 'completed': IDL.Null,
116
- 'failed': IDL.Null,
117
- });
118
- const VerificationStatus = IDL.Variant({
119
- 'verified': IDL.Null,
120
- 'pending': IDL.Null,
121
- 'failed': IDL.Null,
122
- });
123
- const DocumentVerification = IDL.Record({
124
- 'mortgageApproval': VerificationStatus,
125
- 'propertyDeed': VerificationStatus,
126
- 'landRegistryConfirm': VerificationStatus,
127
- 'surveyReport': VerificationStatus,
128
- });
129
- const UserLedgerEntry = IDL.Record({
130
- 'completedDate': IDL.Opt(Time),
131
- 'initiatedDate': Time,
132
- 'status': TransactionStatus,
133
- 'accountID': IDL.Text,
134
- 'documentStatus': DocumentVerification,
135
- 'costsSaved': IDL.Nat,
136
- 'propertyAddress': IDL.Text,
137
- 'entryID': IDL.Text,
138
- 'propertyValue': IDL.Nat,
139
- 'roleInTransaction': TransactionRole,
140
- 'counterparties': IDL.Vec(Counterparty),
141
- 'transactionID': IDL.Text,
142
- });
143
- const Result_2 = IDL.Variant({ 'ok': IDL.Nat, 'err': IDL.Text });
144
- const Result_1 = IDL.Variant({ 'ok': IDL.Null, 'err': IDL.Text });
145
- const Result = IDL.Variant({ 'ok': IDL.Text, 'err': IDL.Text });
146
- return IDL.Service({
147
- 'addTransactionToLedger': IDL.Func([
148
- IDL.Text,
149
- IDL.Text,
150
- TransactionRole,
151
- IDL.Text,
152
- IDL.Nat,
153
- IDL.Vec(Counterparty),
154
- ], [IDL.Bool], []),
155
- 'canAffordAPICall': IDL.Func([IDL.Nat], [IDL.Bool], ['query']),
156
- 'clearFailedAuditEvents': IDL.Func([], [], []),
157
- 'createCompanyTeamMember': IDL.Func([IDL.Text, IDL.Text, IDL.Text, TeamMemberRole, TeamPermissions], [IDL.Text], []),
158
- 'createUserAccount': IDL.Func([IDL.Text, IDL.Text, AccountType, IDL.Opt(IDL.Text), IDL.Opt(IDL.Text)], [IDL.Text], []),
159
- 'getAllAuditEvents': IDL.Func([], [IDL.Vec(AuditEvent)], ['query']),
160
- 'getBlockchainEfficiencyMetrics': IDL.Func([IDL.Text], [BlockchainEfficiencyMetrics], ['query']),
161
- 'getBudgetStatus': IDL.Func([], [BudgetStatus], ['query']),
162
- 'getCertifiedTransactionLog': IDL.Func([IDL.Text], [
163
- IDL.Record({
164
- 'certificate': IDL.Opt(IDL.Vec(IDL.Nat8)),
165
- 'headHash': IDL.Vec(IDL.Nat8),
166
- 'witness': IDL.Vec(IDL.Nat8),
167
- 'events': IDL.Vec(AuditEvent),
168
- }),
169
- ], ['query']),
170
- 'getCompanyLedger': IDL.Func([IDL.Text], [CompanyLedger], ['query']),
171
- 'getCompanyTeamMembers': IDL.Func([IDL.Text], [IDL.Vec(CompanyTeamMember)], ['query']),
172
- 'getCycles': IDL.Func([], [IDL.Nat], ['query']),
173
- 'getDailyLRSpend': IDL.Func([], [IDL.Nat], ['query']),
174
- 'getEventsByTransaction': IDL.Func([IDL.Text], [IDL.Vec(AuditEvent)], ['query']),
175
- 'getFailedAuditEvents': IDL.Func([], [IDL.Vec(AuditEvent)], ['query']),
176
- 'getGlobalBlockchainStats': IDL.Func([], [BlockchainEfficiencyMetrics], ['query']),
177
- 'getLRCostReport': IDL.Func([IDL.Int, IDL.Int], [LRCostReport], ['query']),
178
- 'getLRCostsForTransaction': IDL.Func([IDL.Text], [IDL.Vec(LandRegistryCostEntry)], ['query']),
179
- 'getLRSpendByEndpoint': IDL.Func([IDL.Int, IDL.Int], [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat))], ['query']),
180
- 'getLedgerAnalytics': IDL.Func([IDL.Text, IDL.Text], [Analytics], ['query']),
181
- 'getMonthlyLRSpend': IDL.Func([], [IDL.Nat], ['query']),
182
- 'getMyAccount': IDL.Func([], [IDL.Opt(UserAccount)], ['query']),
183
- 'getMyLedger': IDL.Func([], [IDL.Vec(UserLedgerEntry)], ['query']),
184
- 'getUserAccount': IDL.Func([IDL.Text], [IDL.Opt(UserAccount)], ['query']),
185
- 'getUserLedger': IDL.Func([IDL.Text], [IDL.Vec(UserLedgerEntry)], ['query']),
186
- 'logEvent': IDL.Func([IDL.Text, IDL.Text, IDL.Text, IDL.Opt(IDL.Text)], [Result_2], []),
187
- 'recordLandRegistryCost': IDL.Func([IDL.Text, IDL.Text, IDL.Nat, IDL.Text, IDL.Text, IDL.Opt(IDL.Text)], [Result_2], []),
188
- 'setDailyBudget': IDL.Func([IDL.Nat], [Result_1], []),
189
- 'setDocumentStorageCanister': IDL.Func([IDL.Principal], [], []),
190
- 'setDocumentVerificationCanister': IDL.Func([IDL.Principal], [], []),
191
- 'setMonthlyBudget': IDL.Func([IDL.Nat], [Result_1], []),
192
- 'setPropertyRegistryCanister': IDL.Func([IDL.Principal], [], []),
193
- 'setTransactionManagerCanister': IDL.Func([IDL.Principal], [], []),
194
- 'setUserManagementCanister': IDL.Func([IDL.Principal], [], []),
195
- 'syncTransactionToLedger': IDL.Func([IDL.Nat, IDL.Principal], [Result], []),
196
- 'updateTeamMemberPermissions': IDL.Func([IDL.Text, IDL.Text, TeamPermissions], [IDL.Bool], []),
197
- 'updateTransactionStatus': IDL.Func([IDL.Text, IDL.Text, TransactionStatus], [IDL.Bool], []),
198
- });
2
+ const TransactionRole = IDL.Variant({
3
+ 'agent' : IDL.Null,
4
+ 'solicitor' : IDL.Null,
5
+ 'seller' : IDL.Null,
6
+ 'buyer' : IDL.Null,
7
+ });
8
+ const Counterparty = IDL.Record({
9
+ 'accountID' : IDL.Text,
10
+ 'name' : IDL.Text,
11
+ });
12
+ const TeamMemberRole = IDL.Variant({
13
+ 'manager' : IDL.Null,
14
+ 'admin' : IDL.Null,
15
+ 'viewer' : IDL.Null,
16
+ });
17
+ const TeamPermissions = IDL.Record({
18
+ 'canSign' : IDL.Bool,
19
+ 'canInitiate' : IDL.Bool,
20
+ 'canViewAnalytics' : IDL.Bool,
21
+ 'canManageTeam' : IDL.Bool,
22
+ });
23
+ const AccountType = IDL.Variant({
24
+ 'company' : IDL.Null,
25
+ 'individual' : IDL.Null,
26
+ });
27
+ const AuditEvent = IDL.Record({
28
+ 'eventId' : IDL.Nat,
29
+ 'metadata' : IDL.Opt(IDL.Text),
30
+ 'timestamp' : IDL.Int,
31
+ 'details' : IDL.Text,
32
+ 'caller' : IDL.Principal,
33
+ 'transactionId' : IDL.Text,
34
+ 'eventType' : IDL.Text,
35
+ });
36
+ const BlockchainEfficiencyMetrics = IDL.Record({
37
+ 'avgBlockchainCompletionDays' : IDL.Nat,
38
+ 'totalCostSaved' : IDL.Nat,
39
+ 'avgTraditionalCompletionDays' : IDL.Nat,
40
+ 'timeReductionPercent' : IDL.Nat,
41
+ 'avgTraditionalCost' : IDL.Nat,
42
+ 'avgBlockchainCost' : IDL.Nat,
43
+ 'transactionsCompleted' : IDL.Nat,
44
+ 'costReductionPercent' : IDL.Nat,
45
+ 'totalTimeSavedDays' : IDL.Nat,
46
+ });
47
+ const BudgetStatus = IDL.Record({
48
+ 'dailyRemaining' : IDL.Nat,
49
+ 'isOverDailyBudget' : IDL.Bool,
50
+ 'monthlyLimit' : IDL.Nat,
51
+ 'monthlySpent' : IDL.Nat,
52
+ 'dailyLimit' : IDL.Nat,
53
+ 'dailySpent' : IDL.Nat,
54
+ 'isOverMonthlyBudget' : IDL.Bool,
55
+ 'monthlyRemaining' : IDL.Nat,
56
+ });
57
+ const CompanyLedger = IDL.Record({
58
+ 'companyAccountID' : IDL.Text,
59
+ 'avgCompletionTime' : IDL.Nat,
60
+ 'costSavings' : IDL.Nat,
61
+ 'completedThisMonth' : IDL.Nat,
62
+ 'activeTransactions' : IDL.Nat,
63
+ 'teamMemberCount' : IDL.Nat,
64
+ 'totalTransactions' : IDL.Nat,
65
+ });
66
+ const Time = IDL.Int;
67
+ const CompanyTeamMember = IDL.Record({
68
+ 'memberID' : IDL.Text,
69
+ 'permissions' : TeamPermissions,
70
+ 'accountID' : IDL.Text,
71
+ 'joinDate' : Time,
72
+ 'name' : IDL.Text,
73
+ 'role' : TeamMemberRole,
74
+ 'email' : IDL.Text,
75
+ });
76
+ const LRCostReport = IDL.Record({
77
+ 'entryCount' : IDL.Nat,
78
+ 'byEndpoint' : IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat)),
79
+ 'avgCostPerTransaction' : IDL.Nat,
80
+ 'totalGBP' : IDL.Text,
81
+ 'totalPence' : IDL.Nat,
82
+ });
83
+ const LandRegistryCostEntry = IDL.Record({
84
+ 'id' : IDL.Nat,
85
+ 'titleNumber' : IDL.Text,
86
+ 'invoiceReference' : IDL.Opt(IDL.Text),
87
+ 'description' : IDL.Text,
88
+ 'calledAt' : IDL.Int,
89
+ 'calledBy' : IDL.Principal,
90
+ 'apiEndpoint' : IDL.Text,
91
+ 'costPence' : IDL.Nat,
92
+ 'transactionId' : IDL.Text,
93
+ });
94
+ const Analytics = IDL.Record({
95
+ 'transactionVolume' : IDL.Nat,
96
+ 'avgCompletionTime' : IDL.Nat,
97
+ 'period' : IDL.Text,
98
+ 'totalCostSavings' : IDL.Nat,
99
+ 'completedTransactions' : IDL.Nat,
100
+ 'totalTransactions' : IDL.Nat,
101
+ });
102
+ const UserAccount = IDL.Record({
103
+ 'taxID' : IDL.Opt(IDL.Text),
104
+ 'accountID' : IDL.Text,
105
+ 'name' : IDL.Text,
106
+ 'isActive' : IDL.Bool,
107
+ 'email' : IDL.Text,
108
+ 'accountType' : AccountType,
109
+ 'companyName' : IDL.Opt(IDL.Text),
110
+ 'registrationDate' : Time,
111
+ });
112
+ const TransactionStatus = IDL.Variant({
113
+ 'active' : IDL.Null,
114
+ 'pending' : IDL.Null,
115
+ 'completed' : IDL.Null,
116
+ 'failed' : IDL.Null,
117
+ });
118
+ const VerificationStatus = IDL.Variant({
119
+ 'verified' : IDL.Null,
120
+ 'pending' : IDL.Null,
121
+ 'failed' : IDL.Null,
122
+ });
123
+ const DocumentVerification = IDL.Record({
124
+ 'mortgageApproval' : VerificationStatus,
125
+ 'propertyDeed' : VerificationStatus,
126
+ 'landRegistryConfirm' : VerificationStatus,
127
+ 'surveyReport' : VerificationStatus,
128
+ });
129
+ const UserLedgerEntry = IDL.Record({
130
+ 'completedDate' : IDL.Opt(Time),
131
+ 'initiatedDate' : Time,
132
+ 'status' : TransactionStatus,
133
+ 'accountID' : IDL.Text,
134
+ 'documentStatus' : DocumentVerification,
135
+ 'costsSaved' : IDL.Nat,
136
+ 'propertyAddress' : IDL.Text,
137
+ 'entryID' : IDL.Text,
138
+ 'propertyValue' : IDL.Nat,
139
+ 'roleInTransaction' : TransactionRole,
140
+ 'counterparties' : IDL.Vec(Counterparty),
141
+ 'transactionID' : IDL.Text,
142
+ });
143
+ const Result_2 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
144
+ const Result_1 = IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text });
145
+ const Result = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
146
+ return IDL.Service({
147
+ 'addTransactionToLedger' : IDL.Func(
148
+ [
149
+ IDL.Text,
150
+ IDL.Text,
151
+ TransactionRole,
152
+ IDL.Text,
153
+ IDL.Nat,
154
+ IDL.Vec(Counterparty),
155
+ ],
156
+ [IDL.Bool],
157
+ [],
158
+ ),
159
+ 'canAffordAPICall' : IDL.Func([IDL.Nat], [IDL.Bool], ['query']),
160
+ 'clearFailedAuditEvents' : IDL.Func([], [], []),
161
+ 'createCompanyTeamMember' : IDL.Func(
162
+ [IDL.Text, IDL.Text, IDL.Text, TeamMemberRole, TeamPermissions],
163
+ [IDL.Text],
164
+ [],
165
+ ),
166
+ 'createUserAccount' : IDL.Func(
167
+ [IDL.Text, IDL.Text, AccountType, IDL.Opt(IDL.Text), IDL.Opt(IDL.Text)],
168
+ [IDL.Text],
169
+ [],
170
+ ),
171
+ 'getAllAuditEvents' : IDL.Func([], [IDL.Vec(AuditEvent)], ['query']),
172
+ 'getBlockchainEfficiencyMetrics' : IDL.Func(
173
+ [IDL.Text],
174
+ [BlockchainEfficiencyMetrics],
175
+ ['query'],
176
+ ),
177
+ 'getBudgetStatus' : IDL.Func([], [BudgetStatus], ['query']),
178
+ 'getCertifiedTransactionLog' : IDL.Func(
179
+ [IDL.Text],
180
+ [
181
+ IDL.Record({
182
+ 'certificate' : IDL.Opt(IDL.Vec(IDL.Nat8)),
183
+ 'headHash' : IDL.Vec(IDL.Nat8),
184
+ 'witness' : IDL.Vec(IDL.Nat8),
185
+ 'events' : IDL.Vec(AuditEvent),
186
+ }),
187
+ ],
188
+ ['query'],
189
+ ),
190
+ 'getCompanyLedger' : IDL.Func([IDL.Text], [CompanyLedger], ['query']),
191
+ 'getCompanyTeamMembers' : IDL.Func(
192
+ [IDL.Text],
193
+ [IDL.Vec(CompanyTeamMember)],
194
+ ['query'],
195
+ ),
196
+ 'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
197
+ 'getDailyLRSpend' : IDL.Func([], [IDL.Nat], ['query']),
198
+ 'getEventsByTransaction' : IDL.Func(
199
+ [IDL.Text],
200
+ [IDL.Vec(AuditEvent)],
201
+ ['query'],
202
+ ),
203
+ 'getFailedAuditEvents' : IDL.Func([], [IDL.Vec(AuditEvent)], ['query']),
204
+ 'getGlobalBlockchainStats' : IDL.Func(
205
+ [],
206
+ [BlockchainEfficiencyMetrics],
207
+ ['query'],
208
+ ),
209
+ 'getLRCostReport' : IDL.Func([IDL.Int, IDL.Int], [LRCostReport], ['query']),
210
+ 'getLRCostsForTransaction' : IDL.Func(
211
+ [IDL.Text],
212
+ [IDL.Vec(LandRegistryCostEntry)],
213
+ ['query'],
214
+ ),
215
+ 'getLRSpendByEndpoint' : IDL.Func(
216
+ [IDL.Int, IDL.Int],
217
+ [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat))],
218
+ ['query'],
219
+ ),
220
+ 'getLedgerAnalytics' : IDL.Func(
221
+ [IDL.Text, IDL.Text],
222
+ [Analytics],
223
+ ['query'],
224
+ ),
225
+ 'getMonthlyLRSpend' : IDL.Func([], [IDL.Nat], ['query']),
226
+ 'getMyAccount' : IDL.Func([], [IDL.Opt(UserAccount)], ['query']),
227
+ 'getMyLedger' : IDL.Func([], [IDL.Vec(UserLedgerEntry)], ['query']),
228
+ 'getUserAccount' : IDL.Func([IDL.Text], [IDL.Opt(UserAccount)], ['query']),
229
+ 'getUserLedger' : IDL.Func(
230
+ [IDL.Text],
231
+ [IDL.Vec(UserLedgerEntry)],
232
+ ['query'],
233
+ ),
234
+ 'logEvent' : IDL.Func(
235
+ [IDL.Text, IDL.Text, IDL.Text, IDL.Opt(IDL.Text)],
236
+ [Result_2],
237
+ [],
238
+ ),
239
+ 'recordLandRegistryCost' : IDL.Func(
240
+ [IDL.Text, IDL.Text, IDL.Nat, IDL.Text, IDL.Text, IDL.Opt(IDL.Text)],
241
+ [Result_2],
242
+ [],
243
+ ),
244
+ 'setDailyBudget' : IDL.Func([IDL.Nat], [Result_1], []),
245
+ 'setDocumentStorageCanister' : IDL.Func([IDL.Principal], [], []),
246
+ 'setDocumentVerificationCanister' : IDL.Func([IDL.Principal], [], []),
247
+ 'setMonthlyBudget' : IDL.Func([IDL.Nat], [Result_1], []),
248
+ 'setPropertyRegistryCanister' : IDL.Func([IDL.Principal], [], []),
249
+ 'setTransactionManagerCanister' : IDL.Func([IDL.Principal], [], []),
250
+ 'setUserManagementCanister' : IDL.Func([IDL.Principal], [], []),
251
+ 'syncTransactionToLedger' : IDL.Func(
252
+ [IDL.Nat, IDL.Principal],
253
+ [Result],
254
+ [],
255
+ ),
256
+ 'updateTeamMemberPermissions' : IDL.Func(
257
+ [IDL.Text, IDL.Text, TeamPermissions],
258
+ [IDL.Bool],
259
+ [],
260
+ ),
261
+ 'updateTransactionStatus' : IDL.Func(
262
+ [IDL.Text, IDL.Text, TransactionStatus],
263
+ [IDL.Bool],
264
+ [],
265
+ ),
266
+ });
199
267
  };
200
268
  export const init = ({ IDL }) => { return []; };
201
- //# sourceMappingURL=ledger_manager.did.js.map
@@ -1,7 +1,73 @@
1
- export function idlFactory({ IDL }: {
2
- IDL: any;
3
- }): any;
4
- export function init({ IDL }: {
5
- IDL: any;
6
- }): never[];
7
- //# sourceMappingURL=property_registry.did.d.ts.map
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
+
5
+ export interface ChainPropertyView {
6
+ 'status' : PropertyStatus,
7
+ 'progressPercentage' : bigint,
8
+ 'role' : string,
9
+ 'documentsComplete' : boolean,
10
+ 'financingComplete' : boolean,
11
+ 'searchesComplete' : boolean,
12
+ 'anonymousId' : string,
13
+ }
14
+ export interface Property {
15
+ 'id' : bigint,
16
+ 'anonymousPropertyId' : string,
17
+ 'status' : PropertyStatus,
18
+ 'propertyType' : string,
19
+ 'owner' : Principal,
20
+ 'createdAt' : Time,
21
+ 'size' : bigint,
22
+ 'documentsComplete' : boolean,
23
+ 'description' : string,
24
+ 'isVerified' : boolean,
25
+ 'linkedProperties' : Array<string>,
26
+ 'address' : string,
27
+ 'chainPosition' : [] | [bigint],
28
+ 'financingComplete' : boolean,
29
+ 'price' : bigint,
30
+ 'searchesComplete' : boolean,
31
+ 'transactionId' : [] | [string],
32
+ 'uprn' : [] | [string],
33
+ }
34
+ export type PropertyStatus = { 'Listed' : null } |
35
+ { 'InTransaction' : null } |
36
+ { 'Cancelled' : null } |
37
+ { 'Completed' : null };
38
+ export type Result = { 'ok' : null } |
39
+ { 'err' : string };
40
+ export type Result_1 = { 'ok' : ChainPropertyView } |
41
+ { 'err' : string };
42
+ export type Result_2 = { 'ok' : string } |
43
+ { 'err' : string };
44
+ export type Result_3 = { 'ok' : Array<string> } |
45
+ { 'err' : string };
46
+ export type Time = bigint;
47
+ export interface _SERVICE {
48
+ 'buildPropertyChain' : ActorMethod<[string], Result_3>,
49
+ 'canViewFullPropertyDetails' : ActorMethod<[string, Principal], boolean>,
50
+ 'generateAnonymousPropertyId' : ActorMethod<[string], Result_2>,
51
+ 'getAllProperties' : ActorMethod<[], Array<Property>>,
52
+ 'getCycles' : ActorMethod<[], bigint>,
53
+ 'getProperty' : ActorMethod<[bigint], [] | [Property]>,
54
+ 'getPropertyForChainView' : ActorMethod<[string, Principal], Result_1>,
55
+ 'registerProperty' : ActorMethod<
56
+ [string, bigint, bigint, string, string],
57
+ bigint
58
+ >,
59
+ 'setPropertyUprn' : ActorMethod<[bigint, [] | [string]], Result>,
60
+ 'transferOwnership' : ActorMethod<[bigint, Principal], boolean>,
61
+ 'updatePropertyProgress' : ActorMethod<
62
+ [bigint, boolean, boolean, boolean],
63
+ Result
64
+ >,
65
+ 'updatePropertyStatus' : ActorMethod<[bigint, PropertyStatus], Result>,
66
+ 'updatePropertyTransaction' : ActorMethod<
67
+ [bigint, [] | [string], [] | [bigint], Array<string>],
68
+ Result
69
+ >,
70
+ 'verifyProperty' : ActorMethod<[bigint], boolean>,
71
+ }
72
+ export declare const idlFactory: IDL.InterfaceFactory;
73
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];