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