@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,267 @@
1
- export function idlFactory({ IDL }: {
2
- IDL: any;
3
- }): any;
4
- export function init({ IDL }: {
5
- IDL: any;
6
- }): never[];
7
- //# sourceMappingURL=user_management.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 ActorType = { 'agent' : null } |
6
+ { 'systemActor' : null } |
7
+ { 'user' : null };
8
+ export type AdminMutationError = { 'targetIsAnonymous' : null } |
9
+ { 'cannotDemoteController' : null } |
10
+ { 'notSuperAdmin' : null } |
11
+ { 'invalidCsrfToken' : null } |
12
+ { 'anonymousCaller' : null } |
13
+ { 'cannotDemoteLastSuperAdmin' : null };
14
+ export type AdminMutationResult = { 'ok' : AdminRecord } |
15
+ { 'err' : AdminMutationError };
16
+ export type AdminMutationResult_1 = { 'ok' : null } |
17
+ { 'err' : AdminMutationError };
18
+ export interface AdminRecord {
19
+ 'principal' : Principal,
20
+ 'grantedAt' : Time,
21
+ 'grantedBy' : Principal,
22
+ 'note' : [] | [string],
23
+ 'role' : AdminRole,
24
+ }
25
+ export type AdminRole = { 'regular' : null } |
26
+ { 'super' : null };
27
+ export interface AuditLog {
28
+ 'id' : bigint,
29
+ 'action' : string,
30
+ 'actorType' : ActorType,
31
+ 'metadata' : string,
32
+ 'delegatedBy' : [] | [Principal],
33
+ 'targetPrincipal' : [] | [Principal],
34
+ 'timestamp' : Time,
35
+ 'success' : boolean,
36
+ 'actorPrincipal' : Principal,
37
+ 'transactionId' : [] | [string],
38
+ }
39
+ export interface BotActionLog {
40
+ 'id' : bigint,
41
+ 'action' : string,
42
+ 'metadata' : string,
43
+ 'timestamp' : Time,
44
+ 'success' : boolean,
45
+ 'botPrincipal' : Principal,
46
+ 'transactionId' : [] | [string],
47
+ }
48
+ export interface BotAgent {
49
+ 'ownerPrincipal' : Principal,
50
+ 'name' : string,
51
+ 'createdAt' : Time,
52
+ 'role' : BotRole,
53
+ 'description' : string,
54
+ 'isActive' : boolean,
55
+ 'callCount' : bigint,
56
+ 'lastActive' : Time,
57
+ 'botPrincipal' : Principal,
58
+ }
59
+ export type BotRole = { 'BotFirm' : null } |
60
+ { 'BotInternal' : null } |
61
+ { 'BotPersonal' : null };
62
+ export type Permission = { 'ViewTransactionProgress' : string } |
63
+ { 'ViewSharedTransaction' : string } |
64
+ { 'ViewDevelopmentUnits' : string } |
65
+ { 'ManageClientAccess' : Principal } |
66
+ { 'InvitePartyToTransaction' : string } |
67
+ { 'AdminViewAllTransactions' : null } |
68
+ { 'AdminManageUsers' : null } |
69
+ { 'UpdateMemberDocuments' : [string, Principal] };
70
+ export type Result = {
71
+ 'ok' : { 'ownerPrincipal' : Principal, 'role' : BotRole }
72
+ } |
73
+ { 'err' : string };
74
+ export type Result_1 = { 'ok' : string } |
75
+ { 'err' : string };
76
+ export type Result_2 = { 'ok' : BotAgent } |
77
+ { 'err' : string };
78
+ export type Result_3 = { 'ok' : bigint } |
79
+ { 'err' : string };
80
+ export type Result_4 = { 'ok' : null } |
81
+ { 'err' : string };
82
+ export type Result_5 = { 'ok' : SolicitorSubmissionDetails } |
83
+ { 'err' : string };
84
+ export interface SolicitorSubmissionDetails {
85
+ 'firmSRANumber' : [] | [string],
86
+ 'fullName' : string,
87
+ 'firmName' : string,
88
+ 'email' : string,
89
+ 'businessGatewayEnabled' : boolean,
90
+ 'conveyancerReference' : [] | [string],
91
+ 'sraNumber' : string,
92
+ 'principalId' : Principal,
93
+ 'firmAddress' : string,
94
+ }
95
+ export type Time = bigint;
96
+ export interface TransactionMember {
97
+ 'uploadedDocuments' : Array<string>,
98
+ 'principal' : Principal,
99
+ 'requiredDocuments' : Array<string>,
100
+ 'joinedAt' : Time,
101
+ 'role' : UserType,
102
+ 'documentsComplete' : boolean,
103
+ 'canViewProgress' : boolean,
104
+ 'canInviteOthers' : boolean,
105
+ 'lastActivityAt' : Time,
106
+ 'transactionId' : string,
107
+ }
108
+ export interface TransactionProgress {
109
+ 'members' : Array<TransactionMember>,
110
+ 'completionPercentage' : bigint,
111
+ 'readyToExchange' : boolean,
112
+ 'membersComplete' : bigint,
113
+ 'totalMembers' : bigint,
114
+ 'blockingParties' : Array<Principal>,
115
+ 'transactionId' : string,
116
+ }
117
+ export interface UserProfile {
118
+ 'isPlatformOnlySolicitor' : boolean,
119
+ 'userType' : UserType,
120
+ 'principal' : Principal,
121
+ 'managedBySolicitor' : [] | [Principal],
122
+ 'firmSRANumber' : [] | [string],
123
+ 'emailVerified' : boolean,
124
+ 'name' : string,
125
+ 'createdAt' : Time,
126
+ 'role' : [] | [UserRole],
127
+ 'businessGatewayUsername' : [] | [string],
128
+ 'email' : string,
129
+ 'lawFirmName' : [] | [string],
130
+ 'isVerified' : boolean,
131
+ 'clientPrincipals' : Array<Principal>,
132
+ 'businessGatewayEnabled' : boolean,
133
+ 'emailVerificationSentAt' : [] | [Time],
134
+ 'emailVerificationToken' : [] | [string],
135
+ 'conveyancerReference' : [] | [string],
136
+ 'mobile' : string,
137
+ 'solicitorLicenseNumber' : [] | [string],
138
+ 'sraNumber' : [] | [string],
139
+ 'lawFirmAddress' : [] | [string],
140
+ }
141
+ export type UserRole = { 'admin' : null } |
142
+ { 'solicitor' : null } |
143
+ { 'seller' : null } |
144
+ { 'guest' : null } |
145
+ { 'buyer' : null };
146
+ export type UserType = { 'solicitor_platform_only' : null } |
147
+ { 'admin' : null } |
148
+ { 'diy_buyer' : null } |
149
+ { 'solicitor_transparent' : null } |
150
+ { 'platform_admin' : null } |
151
+ { 'solicitor_client_linked' : null } |
152
+ { 'estate_agent' : null } |
153
+ { 'platform_support' : null } |
154
+ { 'mortgage_broker' : null } |
155
+ { 'seller' : null } |
156
+ { 'conveyancer_managed' : null } |
157
+ { 'diy_seller' : null } |
158
+ { 'assisted_seller' : null } |
159
+ { 'conveyancer_transparent' : null } |
160
+ { 'buyer' : null } |
161
+ { 'property_developer' : null } |
162
+ { 'solicitor_managed' : null } |
163
+ { 'assisted_buyer' : null };
164
+ export interface _SERVICE {
165
+ 'addTransactionMember' : ActorMethod<
166
+ [string, Principal, UserType, boolean, boolean, string],
167
+ boolean
168
+ >,
169
+ 'adminLinkPrincipals' : ActorMethod<[Principal, Principal], Result_1>,
170
+ 'amIAdmin' : ActorMethod<[], boolean>,
171
+ 'bootstrapAdmin' : ActorMethod<[string, string], boolean>,
172
+ 'canUserAccessTransaction' : ActorMethod<[Principal, string], boolean>,
173
+ 'checkPermissionWithAudit' : ActorMethod<[Permission], boolean>,
174
+ 'claimLinkCode' : ActorMethod<[string], Result_1>,
175
+ 'createUserForPrincipal' : ActorMethod<
176
+ [Principal, string, string, string, string, string],
177
+ boolean
178
+ >,
179
+ 'deactivateBot' : ActorMethod<[Principal], Result_4>,
180
+ 'deleteUserByPrincipal' : ActorMethod<[Principal, string], boolean>,
181
+ 'demoteAdmin' : ActorMethod<[Principal, string], AdminMutationResult_1>,
182
+ 'generateCSRFToken' : ActorMethod<[], string>,
183
+ 'generateLinkCode' : ActorMethod<[], Result_1>,
184
+ 'getAllBots' : ActorMethod<[], Array<BotAgent>>,
185
+ 'getAllUsers' : ActorMethod<[], Array<UserProfile>>,
186
+ 'getAuditLogs' : ActorMethod<[bigint], Array<AuditLog>>,
187
+ 'getBotActionLogs' : ActorMethod<[Principal, bigint], Array<BotActionLog>>,
188
+ 'getBotAgent' : ActorMethod<[Principal], [] | [BotAgent]>,
189
+ 'getCSRFToken' : ActorMethod<[], [] | [string]>,
190
+ 'getCycles' : ActorMethod<[], bigint>,
191
+ 'getLinkedPrincipals' : ActorMethod<[Principal], Array<Principal>>,
192
+ 'getMyBots' : ActorMethod<[], Array<BotAgent>>,
193
+ 'getMyLinkedPrincipals' : ActorMethod<[], Array<Principal>>,
194
+ 'getMyManagingSolicitor' : ActorMethod<[], [] | [UserProfile]>,
195
+ 'getMyProfile' : ActorMethod<[], [] | [UserProfile]>,
196
+ 'getMyProfileUpdate' : ActorMethod<[], [] | [UserProfile]>,
197
+ 'getMySolicitorClients' : ActorMethod<[], Array<UserProfile>>,
198
+ 'getSolicitorSubmissionDetails' : ActorMethod<[Principal], Result_5>,
199
+ 'getTransactionMembers' : ActorMethod<
200
+ [string],
201
+ [] | [Array<TransactionMember>]
202
+ >,
203
+ 'getTransactionProgress' : ActorMethod<[string], [] | [TransactionProgress]>,
204
+ 'getUserProfile' : ActorMethod<[Principal], [] | [UserProfile]>,
205
+ 'getUserProfileByPrincipal' : ActorMethod<[Principal], [] | [UserProfile]>,
206
+ 'hasPermission' : ActorMethod<[Permission], boolean>,
207
+ 'linkSolicitorToClient' : ActorMethod<[Principal, boolean, string], boolean>,
208
+ 'listAdmins' : ActorMethod<[], Array<AdminRecord>>,
209
+ 'logBotAction' : ActorMethod<
210
+ [Principal, string, [] | [string], boolean, string],
211
+ Result_4
212
+ >,
213
+ 'myAdminRole' : ActorMethod<[], [] | [AdminRole]>,
214
+ 'promoteAdmin' : ActorMethod<
215
+ [Principal, AdminRole, [] | [string], string],
216
+ AdminMutationResult
217
+ >,
218
+ 'reactivateBot' : ActorMethod<[Principal], Result_4>,
219
+ 'recordAuditEntry' : ActorMethod<
220
+ [
221
+ ActorType,
222
+ [] | [Principal],
223
+ string,
224
+ [] | [Principal],
225
+ [] | [string],
226
+ boolean,
227
+ string,
228
+ ],
229
+ Result_3
230
+ >,
231
+ 'registerBot' : ActorMethod<[Principal, string, string, BotRole], Result_2>,
232
+ 'registerUser' : ActorMethod<[string, string, string, string], boolean>,
233
+ 'registerUserV2' : ActorMethod<
234
+ [
235
+ string,
236
+ string,
237
+ string,
238
+ UserType,
239
+ [] | [string],
240
+ [] | [string],
241
+ [] | [string],
242
+ [] | [string],
243
+ string,
244
+ ],
245
+ boolean
246
+ >,
247
+ 'resendVerificationEmail' : ActorMethod<[string], boolean>,
248
+ 'revokeSolicitorAccess' : ActorMethod<[Principal, string], boolean>,
249
+ 'unlinkPrincipal' : ActorMethod<[Principal], Result_1>,
250
+ 'updateMemberDocuments' : ActorMethod<[string, string, string], boolean>,
251
+ 'updateSolicitorLRDetails' : ActorMethod<
252
+ [[] | [string], boolean, [] | [string], [] | [string], [] | [string]],
253
+ Result_1
254
+ >,
255
+ 'updateTransactionMemberRequiredDocs' : ActorMethod<
256
+ [string, Array<string>, string],
257
+ boolean
258
+ >,
259
+ 'validateAdmin' : ActorMethod<[Principal], boolean>,
260
+ 'validateBot' : ActorMethod<[Principal], Result>,
261
+ 'validateCSRFToken' : ActorMethod<[string], boolean>,
262
+ 'verifyEmail' : ActorMethod<[string, string], boolean>,
263
+ 'verifyUser' : ActorMethod<[Principal, string], boolean>,
264
+ 'whoAmI' : ActorMethod<[], Principal>,
265
+ }
266
+ export declare const idlFactory: IDL.InterfaceFactory;
267
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];