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

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.
@@ -1,205 +1,205 @@
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[];
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[];