@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,7 +1,214 @@
1
- export function idlFactory({ IDL }: {
2
- IDL: any;
3
- }): any;
4
- export function init({ IDL }: {
5
- IDL: any;
6
- }): never[];
7
- //# sourceMappingURL=ledger_manager.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 type AccountType = { 'company' : null } |
6
+ { 'individual' : null };
7
+ export interface Analytics {
8
+ 'transactionVolume' : bigint,
9
+ 'avgCompletionTime' : bigint,
10
+ 'period' : string,
11
+ 'totalCostSavings' : bigint,
12
+ 'completedTransactions' : bigint,
13
+ 'totalTransactions' : bigint,
14
+ }
15
+ export interface AuditEvent {
16
+ 'eventId' : bigint,
17
+ 'metadata' : [] | [string],
18
+ 'timestamp' : bigint,
19
+ 'details' : string,
20
+ 'caller' : Principal,
21
+ 'transactionId' : string,
22
+ 'eventType' : string,
23
+ }
24
+ export interface BlockchainEfficiencyMetrics {
25
+ 'avgBlockchainCompletionDays' : bigint,
26
+ 'totalCostSaved' : bigint,
27
+ 'avgTraditionalCompletionDays' : bigint,
28
+ 'timeReductionPercent' : bigint,
29
+ 'avgTraditionalCost' : bigint,
30
+ 'avgBlockchainCost' : bigint,
31
+ 'transactionsCompleted' : bigint,
32
+ 'costReductionPercent' : bigint,
33
+ 'totalTimeSavedDays' : bigint,
34
+ }
35
+ export interface BudgetStatus {
36
+ 'dailyRemaining' : bigint,
37
+ 'isOverDailyBudget' : boolean,
38
+ 'monthlyLimit' : bigint,
39
+ 'monthlySpent' : bigint,
40
+ 'dailyLimit' : bigint,
41
+ 'dailySpent' : bigint,
42
+ 'isOverMonthlyBudget' : boolean,
43
+ 'monthlyRemaining' : bigint,
44
+ }
45
+ export interface CompanyLedger {
46
+ 'companyAccountID' : string,
47
+ 'avgCompletionTime' : bigint,
48
+ 'costSavings' : bigint,
49
+ 'completedThisMonth' : bigint,
50
+ 'activeTransactions' : bigint,
51
+ 'teamMemberCount' : bigint,
52
+ 'totalTransactions' : bigint,
53
+ }
54
+ export interface CompanyTeamMember {
55
+ 'memberID' : string,
56
+ 'permissions' : TeamPermissions,
57
+ 'accountID' : string,
58
+ 'joinDate' : Time,
59
+ 'name' : string,
60
+ 'role' : TeamMemberRole,
61
+ 'email' : string,
62
+ }
63
+ export interface Counterparty { 'accountID' : string, 'name' : string }
64
+ export interface DocumentVerification {
65
+ 'mortgageApproval' : VerificationStatus,
66
+ 'propertyDeed' : VerificationStatus,
67
+ 'landRegistryConfirm' : VerificationStatus,
68
+ 'surveyReport' : VerificationStatus,
69
+ }
70
+ export interface LRCostReport {
71
+ 'entryCount' : bigint,
72
+ 'byEndpoint' : Array<[string, bigint]>,
73
+ 'avgCostPerTransaction' : bigint,
74
+ 'totalGBP' : string,
75
+ 'totalPence' : bigint,
76
+ }
77
+ export interface LandRegistryCostEntry {
78
+ 'id' : bigint,
79
+ 'titleNumber' : string,
80
+ 'invoiceReference' : [] | [string],
81
+ 'description' : string,
82
+ 'calledAt' : bigint,
83
+ 'calledBy' : Principal,
84
+ 'apiEndpoint' : string,
85
+ 'costPence' : bigint,
86
+ 'transactionId' : string,
87
+ }
88
+ export type Result = { 'ok' : string } |
89
+ { 'err' : string };
90
+ export type Result_1 = { 'ok' : null } |
91
+ { 'err' : string };
92
+ export type Result_2 = { 'ok' : bigint } |
93
+ { 'err' : string };
94
+ export type TeamMemberRole = { 'manager' : null } |
95
+ { 'admin' : null } |
96
+ { 'viewer' : null };
97
+ export interface TeamPermissions {
98
+ 'canSign' : boolean,
99
+ 'canInitiate' : boolean,
100
+ 'canViewAnalytics' : boolean,
101
+ 'canManageTeam' : boolean,
102
+ }
103
+ export type Time = bigint;
104
+ export type TransactionRole = { 'agent' : null } |
105
+ { 'solicitor' : null } |
106
+ { 'seller' : null } |
107
+ { 'buyer' : null };
108
+ export type TransactionStatus = { 'active' : null } |
109
+ { 'pending' : null } |
110
+ { 'completed' : null } |
111
+ { 'failed' : null };
112
+ export interface UserAccount {
113
+ 'taxID' : [] | [string],
114
+ 'accountID' : string,
115
+ 'name' : string,
116
+ 'isActive' : boolean,
117
+ 'email' : string,
118
+ 'accountType' : AccountType,
119
+ 'companyName' : [] | [string],
120
+ 'registrationDate' : Time,
121
+ }
122
+ export interface UserLedgerEntry {
123
+ 'completedDate' : [] | [Time],
124
+ 'initiatedDate' : Time,
125
+ 'status' : TransactionStatus,
126
+ 'accountID' : string,
127
+ 'documentStatus' : DocumentVerification,
128
+ 'costsSaved' : bigint,
129
+ 'propertyAddress' : string,
130
+ 'entryID' : string,
131
+ 'propertyValue' : bigint,
132
+ 'roleInTransaction' : TransactionRole,
133
+ 'counterparties' : Array<Counterparty>,
134
+ 'transactionID' : string,
135
+ }
136
+ export type VerificationStatus = { 'verified' : null } |
137
+ { 'pending' : null } |
138
+ { 'failed' : null };
139
+ export interface _SERVICE {
140
+ 'addTransactionToLedger' : ActorMethod<
141
+ [string, string, TransactionRole, string, bigint, Array<Counterparty>],
142
+ boolean
143
+ >,
144
+ 'canAffordAPICall' : ActorMethod<[bigint], boolean>,
145
+ 'clearFailedAuditEvents' : ActorMethod<[], undefined>,
146
+ 'createCompanyTeamMember' : ActorMethod<
147
+ [string, string, string, TeamMemberRole, TeamPermissions],
148
+ string
149
+ >,
150
+ 'createUserAccount' : ActorMethod<
151
+ [string, string, AccountType, [] | [string], [] | [string]],
152
+ string
153
+ >,
154
+ 'getAllAuditEvents' : ActorMethod<[], Array<AuditEvent>>,
155
+ 'getBlockchainEfficiencyMetrics' : ActorMethod<
156
+ [string],
157
+ BlockchainEfficiencyMetrics
158
+ >,
159
+ 'getBudgetStatus' : ActorMethod<[], BudgetStatus>,
160
+ 'getCertifiedTransactionLog' : ActorMethod<
161
+ [string],
162
+ {
163
+ 'certificate' : [] | [Uint8Array | number[]],
164
+ 'headHash' : Uint8Array | number[],
165
+ 'witness' : Uint8Array | number[],
166
+ 'events' : Array<AuditEvent>,
167
+ }
168
+ >,
169
+ 'getCompanyLedger' : ActorMethod<[string], CompanyLedger>,
170
+ 'getCompanyTeamMembers' : ActorMethod<[string], Array<CompanyTeamMember>>,
171
+ 'getCycles' : ActorMethod<[], bigint>,
172
+ 'getDailyLRSpend' : ActorMethod<[], bigint>,
173
+ 'getEventsByTransaction' : ActorMethod<[string], Array<AuditEvent>>,
174
+ 'getFailedAuditEvents' : ActorMethod<[], Array<AuditEvent>>,
175
+ 'getGlobalBlockchainStats' : ActorMethod<[], BlockchainEfficiencyMetrics>,
176
+ 'getLRCostReport' : ActorMethod<[bigint, bigint], LRCostReport>,
177
+ 'getLRCostsForTransaction' : ActorMethod<
178
+ [string],
179
+ Array<LandRegistryCostEntry>
180
+ >,
181
+ 'getLRSpendByEndpoint' : ActorMethod<
182
+ [bigint, bigint],
183
+ Array<[string, bigint]>
184
+ >,
185
+ 'getLedgerAnalytics' : ActorMethod<[string, string], Analytics>,
186
+ 'getMonthlyLRSpend' : ActorMethod<[], bigint>,
187
+ 'getMyAccount' : ActorMethod<[], [] | [UserAccount]>,
188
+ 'getMyLedger' : ActorMethod<[], Array<UserLedgerEntry>>,
189
+ 'getUserAccount' : ActorMethod<[string], [] | [UserAccount]>,
190
+ 'getUserLedger' : ActorMethod<[string], Array<UserLedgerEntry>>,
191
+ 'logEvent' : ActorMethod<[string, string, string, [] | [string]], Result_2>,
192
+ 'recordLandRegistryCost' : ActorMethod<
193
+ [string, string, bigint, string, string, [] | [string]],
194
+ Result_2
195
+ >,
196
+ 'setDailyBudget' : ActorMethod<[bigint], Result_1>,
197
+ 'setDocumentStorageCanister' : ActorMethod<[Principal], undefined>,
198
+ 'setDocumentVerificationCanister' : ActorMethod<[Principal], undefined>,
199
+ 'setMonthlyBudget' : ActorMethod<[bigint], Result_1>,
200
+ 'setPropertyRegistryCanister' : ActorMethod<[Principal], undefined>,
201
+ 'setTransactionManagerCanister' : ActorMethod<[Principal], undefined>,
202
+ 'setUserManagementCanister' : ActorMethod<[Principal], undefined>,
203
+ 'syncTransactionToLedger' : ActorMethod<[bigint, Principal], Result>,
204
+ 'updateTeamMemberPermissions' : ActorMethod<
205
+ [string, string, TeamPermissions],
206
+ boolean
207
+ >,
208
+ 'updateTransactionStatus' : ActorMethod<
209
+ [string, string, TransactionStatus],
210
+ boolean
211
+ >,
212
+ }
213
+ export declare const idlFactory: IDL.InterfaceFactory;
214
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];