@propxchain/core-client 0.2.1-canary.20 → 0.2.1-canary.21

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 (40) hide show
  1. package/dist/canisters/document_storage/document_storage.did.d.ts.map +1 -1
  2. package/dist/canisters/document_storage/document_storage.did.js +90 -21
  3. package/dist/canisters/document_storage/document_storage.did.js.map +1 -1
  4. package/dist/canisters/document_verification/document_verification.did.d.ts.map +1 -1
  5. package/dist/canisters/document_verification/document_verification.did.js +132 -0
  6. package/dist/canisters/document_verification/document_verification.did.js.map +1 -1
  7. package/dist/canisters/email_service/email_service.did.d.ts.map +1 -1
  8. package/dist/canisters/email_service/email_service.did.js +40 -0
  9. package/dist/canisters/email_service/email_service.did.js.map +1 -1
  10. package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts.map +1 -1
  11. package/dist/canisters/land_registry_integration/land_registry_integration.did.js +186 -12
  12. package/dist/canisters/land_registry_integration/land_registry_integration.did.js.map +1 -1
  13. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +1 -1
  14. package/dist/canisters/ledger_manager/ledger_manager.did.js +55 -2
  15. package/dist/canisters/ledger_manager/ledger_manager.did.js.map +1 -1
  16. package/dist/canisters/user_management/user_management.did.d.ts.map +1 -1
  17. package/dist/canisters/user_management/user_management.did.js +103 -20
  18. package/dist/canisters/user_management/user_management.did.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/canisters/document_storage/document_storage.did +159 -89
  21. package/src/canisters/document_storage/document_storage.did.d.ts +159 -82
  22. package/src/canisters/document_storage/document_storage.did.js +230 -121
  23. package/src/canisters/document_verification/document_verification.did +248 -98
  24. package/src/canisters/document_verification/document_verification.did.d.ts +236 -112
  25. package/src/canisters/document_verification/document_verification.did.js +299 -139
  26. package/src/canisters/email_service/email_service.did +86 -37
  27. package/src/canisters/email_service/email_service.did.d.ts +92 -45
  28. package/src/canisters/email_service/email_service.did.js +131 -63
  29. package/src/canisters/land_registry_integration/land_registry_integration.did +395 -169
  30. package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +331 -157
  31. package/src/canisters/land_registry_integration/land_registry_integration.did.js +384 -182
  32. package/src/canisters/ledger_manager/ledger_manager.did +232 -161
  33. package/src/canisters/ledger_manager/ledger_manager.did.d.ts +205 -142
  34. package/src/canisters/ledger_manager/ledger_manager.did.js +256 -187
  35. package/src/canisters/property_registry/property_registry.did.d.ts +71 -71
  36. package/src/canisters/transaction_manager/transaction_manager.did +27 -0
  37. package/src/canisters/transaction_manager/transaction_manager.did.d.ts +29 -0
  38. package/src/canisters/user_management/user_management.did +297 -195
  39. package/src/canisters/user_management/user_management.did.d.ts +267 -191
  40. package/src/canisters/user_management/user_management.did.js +352 -237
@@ -1,142 +1,205 @@
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 BlockchainEfficiencyMetrics {
16
- 'avgBlockchainCompletionDays' : bigint,
17
- 'totalCostSaved' : bigint,
18
- 'avgTraditionalCompletionDays' : bigint,
19
- 'timeReductionPercent' : bigint,
20
- 'avgTraditionalCost' : bigint,
21
- 'avgBlockchainCost' : bigint,
22
- 'transactionsCompleted' : bigint,
23
- 'costReductionPercent' : bigint,
24
- 'totalTimeSavedDays' : bigint,
25
- }
26
- export interface CompanyLedger {
27
- 'companyAccountID' : string,
28
- 'avgCompletionTime' : bigint,
29
- 'costSavings' : bigint,
30
- 'completedThisMonth' : bigint,
31
- 'activeTransactions' : bigint,
32
- 'teamMemberCount' : bigint,
33
- 'totalTransactions' : bigint,
34
- }
35
- export interface CompanyTeamMember {
36
- 'memberID' : string,
37
- 'permissions' : TeamPermissions,
38
- 'accountID' : string,
39
- 'joinDate' : Time,
40
- 'name' : string,
41
- 'role' : TeamMemberRole,
42
- 'email' : string,
43
- }
44
- export interface Counterparty { 'accountID' : string, 'name' : string }
45
- export interface DocumentVerification {
46
- 'mortgageApproval' : VerificationStatus,
47
- 'propertyDeed' : VerificationStatus,
48
- 'landRegistryConfirm' : VerificationStatus,
49
- 'surveyReport' : VerificationStatus,
50
- }
51
- export type Result = { 'ok' : string } |
52
- { 'err' : string };
53
- export type Result_1 = { 'ok' : bigint } |
54
- { 'err' : string };
55
- export type TeamMemberRole = { 'manager' : null } |
56
- { 'admin' : null } |
57
- { 'viewer' : null };
58
- export interface TeamPermissions {
59
- 'canSign' : boolean,
60
- 'canInitiate' : boolean,
61
- 'canViewAnalytics' : boolean,
62
- 'canManageTeam' : boolean,
63
- }
64
- export type Time = bigint;
65
- export type TransactionRole = { 'agent' : null } |
66
- { 'solicitor' : null } |
67
- { 'seller' : null } |
68
- { 'buyer' : null };
69
- export type TransactionStatus = { 'active' : null } |
70
- { 'pending' : null } |
71
- { 'completed' : null } |
72
- { 'failed' : null };
73
- export interface UserAccount {
74
- 'taxID' : [] | [string],
75
- 'accountID' : string,
76
- 'name' : string,
77
- 'isActive' : boolean,
78
- 'email' : string,
79
- 'accountType' : AccountType,
80
- 'companyName' : [] | [string],
81
- 'registrationDate' : Time,
82
- }
83
- export interface UserLedgerEntry {
84
- 'completedDate' : [] | [Time],
85
- 'initiatedDate' : Time,
86
- 'status' : TransactionStatus,
87
- 'accountID' : string,
88
- 'documentStatus' : DocumentVerification,
89
- 'costsSaved' : bigint,
90
- 'propertyAddress' : string,
91
- 'entryID' : string,
92
- 'propertyValue' : bigint,
93
- 'roleInTransaction' : TransactionRole,
94
- 'counterparties' : Array<Counterparty>,
95
- 'transactionID' : string,
96
- }
97
- export type VerificationStatus = { 'verified' : null } |
98
- { 'pending' : null } |
99
- { 'failed' : null };
100
- export interface _SERVICE {
101
- 'addTransactionToLedger' : ActorMethod<
102
- [string, string, TransactionRole, string, bigint, Array<Counterparty>],
103
- boolean
104
- >,
105
- 'createCompanyTeamMember' : ActorMethod<
106
- [string, string, string, TeamMemberRole, TeamPermissions],
107
- string
108
- >,
109
- 'createUserAccount' : ActorMethod<
110
- [string, string, AccountType, [] | [string], [] | [string]],
111
- string
112
- >,
113
- 'getBlockchainEfficiencyMetrics' : ActorMethod<
114
- [string],
115
- BlockchainEfficiencyMetrics
116
- >,
117
- 'getCompanyLedger' : ActorMethod<[string], CompanyLedger>,
118
- 'getCompanyTeamMembers' : ActorMethod<[string], Array<CompanyTeamMember>>,
119
- 'getCycles' : ActorMethod<[], bigint>,
120
- 'getGlobalBlockchainStats' : ActorMethod<[], BlockchainEfficiencyMetrics>,
121
- 'getLedgerAnalytics' : ActorMethod<[string, string], Analytics>,
122
- 'getMyAccount' : ActorMethod<[], [] | [UserAccount]>,
123
- 'getMyLedger' : ActorMethod<[], Array<UserLedgerEntry>>,
124
- 'getUserAccount' : ActorMethod<[string], [] | [UserAccount]>,
125
- 'getUserLedger' : ActorMethod<[string], Array<UserLedgerEntry>>,
126
- 'logEvent' : ActorMethod<[string, string, string, [] | [string]], Result_1>,
127
- 'setDocumentVerificationCanister' : ActorMethod<[Principal], undefined>,
128
- 'setPropertyRegistryCanister' : ActorMethod<[Principal], undefined>,
129
- 'setTransactionManagerCanister' : ActorMethod<[Principal], undefined>,
130
- 'setUserManagementCanister' : ActorMethod<[Principal], undefined>,
131
- 'syncTransactionToLedger' : ActorMethod<[bigint, Principal], Result>,
132
- 'updateTeamMemberPermissions' : ActorMethod<
133
- [string, string, TeamPermissions],
134
- boolean
135
- >,
136
- 'updateTransactionStatus' : ActorMethod<
137
- [string, string, TransactionStatus],
138
- boolean
139
- >,
140
- }
141
- export declare const idlFactory: IDL.InterfaceFactory;
142
- export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
1
+ import type { Principal } from '@dfinity/principal';
2
+ import type { ActorMethod } from '@dfinity/agent';
3
+ import type { IDL } from '@dfinity/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
+ 'getCompanyLedger' : ActorMethod<[string], CompanyLedger>,
161
+ 'getCompanyTeamMembers' : ActorMethod<[string], Array<CompanyTeamMember>>,
162
+ 'getCycles' : ActorMethod<[], bigint>,
163
+ 'getDailyLRSpend' : ActorMethod<[], bigint>,
164
+ 'getEventsByTransaction' : ActorMethod<[string], Array<AuditEvent>>,
165
+ 'getFailedAuditEvents' : ActorMethod<[], Array<AuditEvent>>,
166
+ 'getGlobalBlockchainStats' : ActorMethod<[], BlockchainEfficiencyMetrics>,
167
+ 'getLRCostReport' : ActorMethod<[bigint, bigint], LRCostReport>,
168
+ 'getLRCostsForTransaction' : ActorMethod<
169
+ [string],
170
+ Array<LandRegistryCostEntry>
171
+ >,
172
+ 'getLRSpendByEndpoint' : ActorMethod<
173
+ [bigint, bigint],
174
+ Array<[string, bigint]>
175
+ >,
176
+ 'getLedgerAnalytics' : ActorMethod<[string, string], Analytics>,
177
+ 'getMonthlyLRSpend' : ActorMethod<[], bigint>,
178
+ 'getMyAccount' : ActorMethod<[], [] | [UserAccount]>,
179
+ 'getMyLedger' : ActorMethod<[], Array<UserLedgerEntry>>,
180
+ 'getUserAccount' : ActorMethod<[string], [] | [UserAccount]>,
181
+ 'getUserLedger' : ActorMethod<[string], Array<UserLedgerEntry>>,
182
+ 'logEvent' : ActorMethod<[string, string, string, [] | [string]], Result_2>,
183
+ 'recordLandRegistryCost' : ActorMethod<
184
+ [string, string, bigint, string, string, [] | [string]],
185
+ Result_2
186
+ >,
187
+ 'setDailyBudget' : ActorMethod<[bigint], Result_1>,
188
+ 'setDocumentStorageCanister' : ActorMethod<[Principal], undefined>,
189
+ 'setDocumentVerificationCanister' : ActorMethod<[Principal], undefined>,
190
+ 'setMonthlyBudget' : ActorMethod<[bigint], Result_1>,
191
+ 'setPropertyRegistryCanister' : ActorMethod<[Principal], undefined>,
192
+ 'setTransactionManagerCanister' : ActorMethod<[Principal], undefined>,
193
+ 'setUserManagementCanister' : ActorMethod<[Principal], undefined>,
194
+ 'syncTransactionToLedger' : ActorMethod<[bigint, Principal], Result>,
195
+ 'updateTeamMemberPermissions' : ActorMethod<
196
+ [string, string, TeamPermissions],
197
+ boolean
198
+ >,
199
+ 'updateTransactionStatus' : ActorMethod<
200
+ [string, string, TransactionStatus],
201
+ boolean
202
+ >,
203
+ }
204
+ export declare const idlFactory: IDL.InterfaceFactory;
205
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];