@propxchain/core-client 0.3.0-canary.34 → 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.
- package/dist/canisters/document_storage/document_storage.did.d.ts +159 -7
- package/dist/canisters/document_storage/document_storage.did.js +227 -148
- package/dist/canisters/document_verification/document_verification.did.d.ts +248 -7
- package/dist/canisters/document_verification/document_verification.did.js +322 -231
- package/dist/canisters/email_service/email_service.did.d.ts +92 -7
- package/dist/canisters/email_service/email_service.did.js +128 -73
- package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts +227 -7
- package/dist/canisters/land_registry_integration/land_registry_integration.did.js +380 -315
- package/dist/canisters/ledger_manager/ledger_manager.did.d.ts +214 -7
- package/dist/canisters/ledger_manager/ledger_manager.did.js +265 -198
- package/dist/canisters/property_registry/property_registry.did.d.ts +73 -7
- package/dist/canisters/property_registry/property_registry.did.js +76 -57
- package/dist/canisters/transaction_manager/transaction_manager.did.d.ts +912 -7
- package/dist/canisters/transaction_manager/transaction_manager.did.js +1004 -867
- package/dist/canisters/user_management/user_management.did.d.ts +267 -7
- package/dist/canisters/user_management/user_management.did.js +349 -254
- package/package.json +2 -2
- package/src/canisters/document_storage/document_storage.did.d.ts +3 -3
- package/src/canisters/document_verification/document_verification.did.d.ts +3 -3
- package/src/canisters/email_service/email_service.did.d.ts +3 -3
- package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +3 -3
- package/src/canisters/ledger_manager/ledger_manager.did.d.ts +3 -3
- package/src/canisters/property_registry/property_registry.did.d.ts +3 -3
- package/src/canisters/transaction_manager/transaction_manager.did +4 -0
- package/src/canisters/transaction_manager/transaction_manager.did.d.ts +5 -3
- package/src/canisters/transaction_manager/transaction_manager.did.js +2 -0
- package/src/canisters/user_management/user_management.did.d.ts +3 -3
- package/dist/canisters/document_storage/document_storage.did.d.ts.map +0 -1
- package/dist/canisters/document_storage/document_storage.did.js.map +0 -1
- package/dist/canisters/document_verification/document_verification.did.d.ts.map +0 -1
- package/dist/canisters/document_verification/document_verification.did.js.map +0 -1
- package/dist/canisters/email_service/email_service.did.d.ts.map +0 -1
- package/dist/canisters/email_service/email_service.did.js.map +0 -1
- package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts.map +0 -1
- package/dist/canisters/land_registry_integration/land_registry_integration.did.js.map +0 -1
- package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +0 -1
- package/dist/canisters/ledger_manager/ledger_manager.did.js.map +0 -1
- package/dist/canisters/property_registry/property_registry.did.d.ts.map +0 -1
- package/dist/canisters/property_registry/property_registry.did.js.map +0 -1
- package/dist/canisters/transaction_manager/transaction_manager.did.d.ts.map +0 -1
- package/dist/canisters/transaction_manager/transaction_manager.did.js.map +0 -1
- package/dist/canisters/user_management/user_management.did.d.ts.map +0 -1
- package/dist/canisters/user_management/user_management.did.js.map +0 -1
|
@@ -1,201 +1,268 @@
|
|
|
1
1
|
export const idlFactory = ({ IDL }) => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
'
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
'
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
2
|
+
const TransactionRole = IDL.Variant({
|
|
3
|
+
'agent' : IDL.Null,
|
|
4
|
+
'solicitor' : IDL.Null,
|
|
5
|
+
'seller' : IDL.Null,
|
|
6
|
+
'buyer' : IDL.Null,
|
|
7
|
+
});
|
|
8
|
+
const Counterparty = IDL.Record({
|
|
9
|
+
'accountID' : IDL.Text,
|
|
10
|
+
'name' : IDL.Text,
|
|
11
|
+
});
|
|
12
|
+
const TeamMemberRole = IDL.Variant({
|
|
13
|
+
'manager' : IDL.Null,
|
|
14
|
+
'admin' : IDL.Null,
|
|
15
|
+
'viewer' : IDL.Null,
|
|
16
|
+
});
|
|
17
|
+
const TeamPermissions = IDL.Record({
|
|
18
|
+
'canSign' : IDL.Bool,
|
|
19
|
+
'canInitiate' : IDL.Bool,
|
|
20
|
+
'canViewAnalytics' : IDL.Bool,
|
|
21
|
+
'canManageTeam' : IDL.Bool,
|
|
22
|
+
});
|
|
23
|
+
const AccountType = IDL.Variant({
|
|
24
|
+
'company' : IDL.Null,
|
|
25
|
+
'individual' : IDL.Null,
|
|
26
|
+
});
|
|
27
|
+
const AuditEvent = IDL.Record({
|
|
28
|
+
'eventId' : IDL.Nat,
|
|
29
|
+
'metadata' : IDL.Opt(IDL.Text),
|
|
30
|
+
'timestamp' : IDL.Int,
|
|
31
|
+
'details' : IDL.Text,
|
|
32
|
+
'caller' : IDL.Principal,
|
|
33
|
+
'transactionId' : IDL.Text,
|
|
34
|
+
'eventType' : IDL.Text,
|
|
35
|
+
});
|
|
36
|
+
const BlockchainEfficiencyMetrics = IDL.Record({
|
|
37
|
+
'avgBlockchainCompletionDays' : IDL.Nat,
|
|
38
|
+
'totalCostSaved' : IDL.Nat,
|
|
39
|
+
'avgTraditionalCompletionDays' : IDL.Nat,
|
|
40
|
+
'timeReductionPercent' : IDL.Nat,
|
|
41
|
+
'avgTraditionalCost' : IDL.Nat,
|
|
42
|
+
'avgBlockchainCost' : IDL.Nat,
|
|
43
|
+
'transactionsCompleted' : IDL.Nat,
|
|
44
|
+
'costReductionPercent' : IDL.Nat,
|
|
45
|
+
'totalTimeSavedDays' : IDL.Nat,
|
|
46
|
+
});
|
|
47
|
+
const BudgetStatus = IDL.Record({
|
|
48
|
+
'dailyRemaining' : IDL.Nat,
|
|
49
|
+
'isOverDailyBudget' : IDL.Bool,
|
|
50
|
+
'monthlyLimit' : IDL.Nat,
|
|
51
|
+
'monthlySpent' : IDL.Nat,
|
|
52
|
+
'dailyLimit' : IDL.Nat,
|
|
53
|
+
'dailySpent' : IDL.Nat,
|
|
54
|
+
'isOverMonthlyBudget' : IDL.Bool,
|
|
55
|
+
'monthlyRemaining' : IDL.Nat,
|
|
56
|
+
});
|
|
57
|
+
const CompanyLedger = IDL.Record({
|
|
58
|
+
'companyAccountID' : IDL.Text,
|
|
59
|
+
'avgCompletionTime' : IDL.Nat,
|
|
60
|
+
'costSavings' : IDL.Nat,
|
|
61
|
+
'completedThisMonth' : IDL.Nat,
|
|
62
|
+
'activeTransactions' : IDL.Nat,
|
|
63
|
+
'teamMemberCount' : IDL.Nat,
|
|
64
|
+
'totalTransactions' : IDL.Nat,
|
|
65
|
+
});
|
|
66
|
+
const Time = IDL.Int;
|
|
67
|
+
const CompanyTeamMember = IDL.Record({
|
|
68
|
+
'memberID' : IDL.Text,
|
|
69
|
+
'permissions' : TeamPermissions,
|
|
70
|
+
'accountID' : IDL.Text,
|
|
71
|
+
'joinDate' : Time,
|
|
72
|
+
'name' : IDL.Text,
|
|
73
|
+
'role' : TeamMemberRole,
|
|
74
|
+
'email' : IDL.Text,
|
|
75
|
+
});
|
|
76
|
+
const LRCostReport = IDL.Record({
|
|
77
|
+
'entryCount' : IDL.Nat,
|
|
78
|
+
'byEndpoint' : IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat)),
|
|
79
|
+
'avgCostPerTransaction' : IDL.Nat,
|
|
80
|
+
'totalGBP' : IDL.Text,
|
|
81
|
+
'totalPence' : IDL.Nat,
|
|
82
|
+
});
|
|
83
|
+
const LandRegistryCostEntry = IDL.Record({
|
|
84
|
+
'id' : IDL.Nat,
|
|
85
|
+
'titleNumber' : IDL.Text,
|
|
86
|
+
'invoiceReference' : IDL.Opt(IDL.Text),
|
|
87
|
+
'description' : IDL.Text,
|
|
88
|
+
'calledAt' : IDL.Int,
|
|
89
|
+
'calledBy' : IDL.Principal,
|
|
90
|
+
'apiEndpoint' : IDL.Text,
|
|
91
|
+
'costPence' : IDL.Nat,
|
|
92
|
+
'transactionId' : IDL.Text,
|
|
93
|
+
});
|
|
94
|
+
const Analytics = IDL.Record({
|
|
95
|
+
'transactionVolume' : IDL.Nat,
|
|
96
|
+
'avgCompletionTime' : IDL.Nat,
|
|
97
|
+
'period' : IDL.Text,
|
|
98
|
+
'totalCostSavings' : IDL.Nat,
|
|
99
|
+
'completedTransactions' : IDL.Nat,
|
|
100
|
+
'totalTransactions' : IDL.Nat,
|
|
101
|
+
});
|
|
102
|
+
const UserAccount = IDL.Record({
|
|
103
|
+
'taxID' : IDL.Opt(IDL.Text),
|
|
104
|
+
'accountID' : IDL.Text,
|
|
105
|
+
'name' : IDL.Text,
|
|
106
|
+
'isActive' : IDL.Bool,
|
|
107
|
+
'email' : IDL.Text,
|
|
108
|
+
'accountType' : AccountType,
|
|
109
|
+
'companyName' : IDL.Opt(IDL.Text),
|
|
110
|
+
'registrationDate' : Time,
|
|
111
|
+
});
|
|
112
|
+
const TransactionStatus = IDL.Variant({
|
|
113
|
+
'active' : IDL.Null,
|
|
114
|
+
'pending' : IDL.Null,
|
|
115
|
+
'completed' : IDL.Null,
|
|
116
|
+
'failed' : IDL.Null,
|
|
117
|
+
});
|
|
118
|
+
const VerificationStatus = IDL.Variant({
|
|
119
|
+
'verified' : IDL.Null,
|
|
120
|
+
'pending' : IDL.Null,
|
|
121
|
+
'failed' : IDL.Null,
|
|
122
|
+
});
|
|
123
|
+
const DocumentVerification = IDL.Record({
|
|
124
|
+
'mortgageApproval' : VerificationStatus,
|
|
125
|
+
'propertyDeed' : VerificationStatus,
|
|
126
|
+
'landRegistryConfirm' : VerificationStatus,
|
|
127
|
+
'surveyReport' : VerificationStatus,
|
|
128
|
+
});
|
|
129
|
+
const UserLedgerEntry = IDL.Record({
|
|
130
|
+
'completedDate' : IDL.Opt(Time),
|
|
131
|
+
'initiatedDate' : Time,
|
|
132
|
+
'status' : TransactionStatus,
|
|
133
|
+
'accountID' : IDL.Text,
|
|
134
|
+
'documentStatus' : DocumentVerification,
|
|
135
|
+
'costsSaved' : IDL.Nat,
|
|
136
|
+
'propertyAddress' : IDL.Text,
|
|
137
|
+
'entryID' : IDL.Text,
|
|
138
|
+
'propertyValue' : IDL.Nat,
|
|
139
|
+
'roleInTransaction' : TransactionRole,
|
|
140
|
+
'counterparties' : IDL.Vec(Counterparty),
|
|
141
|
+
'transactionID' : IDL.Text,
|
|
142
|
+
});
|
|
143
|
+
const Result_2 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
|
|
144
|
+
const Result_1 = IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text });
|
|
145
|
+
const Result = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
|
|
146
|
+
return IDL.Service({
|
|
147
|
+
'addTransactionToLedger' : IDL.Func(
|
|
148
|
+
[
|
|
149
|
+
IDL.Text,
|
|
150
|
+
IDL.Text,
|
|
151
|
+
TransactionRole,
|
|
152
|
+
IDL.Text,
|
|
153
|
+
IDL.Nat,
|
|
154
|
+
IDL.Vec(Counterparty),
|
|
155
|
+
],
|
|
156
|
+
[IDL.Bool],
|
|
157
|
+
[],
|
|
158
|
+
),
|
|
159
|
+
'canAffordAPICall' : IDL.Func([IDL.Nat], [IDL.Bool], ['query']),
|
|
160
|
+
'clearFailedAuditEvents' : IDL.Func([], [], []),
|
|
161
|
+
'createCompanyTeamMember' : IDL.Func(
|
|
162
|
+
[IDL.Text, IDL.Text, IDL.Text, TeamMemberRole, TeamPermissions],
|
|
163
|
+
[IDL.Text],
|
|
164
|
+
[],
|
|
165
|
+
),
|
|
166
|
+
'createUserAccount' : IDL.Func(
|
|
167
|
+
[IDL.Text, IDL.Text, AccountType, IDL.Opt(IDL.Text), IDL.Opt(IDL.Text)],
|
|
168
|
+
[IDL.Text],
|
|
169
|
+
[],
|
|
170
|
+
),
|
|
171
|
+
'getAllAuditEvents' : IDL.Func([], [IDL.Vec(AuditEvent)], ['query']),
|
|
172
|
+
'getBlockchainEfficiencyMetrics' : IDL.Func(
|
|
173
|
+
[IDL.Text],
|
|
174
|
+
[BlockchainEfficiencyMetrics],
|
|
175
|
+
['query'],
|
|
176
|
+
),
|
|
177
|
+
'getBudgetStatus' : IDL.Func([], [BudgetStatus], ['query']),
|
|
178
|
+
'getCertifiedTransactionLog' : IDL.Func(
|
|
179
|
+
[IDL.Text],
|
|
180
|
+
[
|
|
181
|
+
IDL.Record({
|
|
182
|
+
'certificate' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
183
|
+
'headHash' : IDL.Vec(IDL.Nat8),
|
|
184
|
+
'witness' : IDL.Vec(IDL.Nat8),
|
|
185
|
+
'events' : IDL.Vec(AuditEvent),
|
|
186
|
+
}),
|
|
187
|
+
],
|
|
188
|
+
['query'],
|
|
189
|
+
),
|
|
190
|
+
'getCompanyLedger' : IDL.Func([IDL.Text], [CompanyLedger], ['query']),
|
|
191
|
+
'getCompanyTeamMembers' : IDL.Func(
|
|
192
|
+
[IDL.Text],
|
|
193
|
+
[IDL.Vec(CompanyTeamMember)],
|
|
194
|
+
['query'],
|
|
195
|
+
),
|
|
196
|
+
'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
|
|
197
|
+
'getDailyLRSpend' : IDL.Func([], [IDL.Nat], ['query']),
|
|
198
|
+
'getEventsByTransaction' : IDL.Func(
|
|
199
|
+
[IDL.Text],
|
|
200
|
+
[IDL.Vec(AuditEvent)],
|
|
201
|
+
['query'],
|
|
202
|
+
),
|
|
203
|
+
'getFailedAuditEvents' : IDL.Func([], [IDL.Vec(AuditEvent)], ['query']),
|
|
204
|
+
'getGlobalBlockchainStats' : IDL.Func(
|
|
205
|
+
[],
|
|
206
|
+
[BlockchainEfficiencyMetrics],
|
|
207
|
+
['query'],
|
|
208
|
+
),
|
|
209
|
+
'getLRCostReport' : IDL.Func([IDL.Int, IDL.Int], [LRCostReport], ['query']),
|
|
210
|
+
'getLRCostsForTransaction' : IDL.Func(
|
|
211
|
+
[IDL.Text],
|
|
212
|
+
[IDL.Vec(LandRegistryCostEntry)],
|
|
213
|
+
['query'],
|
|
214
|
+
),
|
|
215
|
+
'getLRSpendByEndpoint' : IDL.Func(
|
|
216
|
+
[IDL.Int, IDL.Int],
|
|
217
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat))],
|
|
218
|
+
['query'],
|
|
219
|
+
),
|
|
220
|
+
'getLedgerAnalytics' : IDL.Func(
|
|
221
|
+
[IDL.Text, IDL.Text],
|
|
222
|
+
[Analytics],
|
|
223
|
+
['query'],
|
|
224
|
+
),
|
|
225
|
+
'getMonthlyLRSpend' : IDL.Func([], [IDL.Nat], ['query']),
|
|
226
|
+
'getMyAccount' : IDL.Func([], [IDL.Opt(UserAccount)], ['query']),
|
|
227
|
+
'getMyLedger' : IDL.Func([], [IDL.Vec(UserLedgerEntry)], ['query']),
|
|
228
|
+
'getUserAccount' : IDL.Func([IDL.Text], [IDL.Opt(UserAccount)], ['query']),
|
|
229
|
+
'getUserLedger' : IDL.Func(
|
|
230
|
+
[IDL.Text],
|
|
231
|
+
[IDL.Vec(UserLedgerEntry)],
|
|
232
|
+
['query'],
|
|
233
|
+
),
|
|
234
|
+
'logEvent' : IDL.Func(
|
|
235
|
+
[IDL.Text, IDL.Text, IDL.Text, IDL.Opt(IDL.Text)],
|
|
236
|
+
[Result_2],
|
|
237
|
+
[],
|
|
238
|
+
),
|
|
239
|
+
'recordLandRegistryCost' : IDL.Func(
|
|
240
|
+
[IDL.Text, IDL.Text, IDL.Nat, IDL.Text, IDL.Text, IDL.Opt(IDL.Text)],
|
|
241
|
+
[Result_2],
|
|
242
|
+
[],
|
|
243
|
+
),
|
|
244
|
+
'setDailyBudget' : IDL.Func([IDL.Nat], [Result_1], []),
|
|
245
|
+
'setDocumentStorageCanister' : IDL.Func([IDL.Principal], [], []),
|
|
246
|
+
'setDocumentVerificationCanister' : IDL.Func([IDL.Principal], [], []),
|
|
247
|
+
'setMonthlyBudget' : IDL.Func([IDL.Nat], [Result_1], []),
|
|
248
|
+
'setPropertyRegistryCanister' : IDL.Func([IDL.Principal], [], []),
|
|
249
|
+
'setTransactionManagerCanister' : IDL.Func([IDL.Principal], [], []),
|
|
250
|
+
'setUserManagementCanister' : IDL.Func([IDL.Principal], [], []),
|
|
251
|
+
'syncTransactionToLedger' : IDL.Func(
|
|
252
|
+
[IDL.Nat, IDL.Principal],
|
|
253
|
+
[Result],
|
|
254
|
+
[],
|
|
255
|
+
),
|
|
256
|
+
'updateTeamMemberPermissions' : IDL.Func(
|
|
257
|
+
[IDL.Text, IDL.Text, TeamPermissions],
|
|
258
|
+
[IDL.Bool],
|
|
259
|
+
[],
|
|
260
|
+
),
|
|
261
|
+
'updateTransactionStatus' : IDL.Func(
|
|
262
|
+
[IDL.Text, IDL.Text, TransactionStatus],
|
|
263
|
+
[IDL.Bool],
|
|
264
|
+
[],
|
|
265
|
+
),
|
|
266
|
+
});
|
|
199
267
|
};
|
|
200
268
|
export const init = ({ IDL }) => { return []; };
|
|
201
|
-
//# sourceMappingURL=ledger_manager.did.js.map
|
|
@@ -1,7 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 interface ChainPropertyView {
|
|
6
|
+
'status' : PropertyStatus,
|
|
7
|
+
'progressPercentage' : bigint,
|
|
8
|
+
'role' : string,
|
|
9
|
+
'documentsComplete' : boolean,
|
|
10
|
+
'financingComplete' : boolean,
|
|
11
|
+
'searchesComplete' : boolean,
|
|
12
|
+
'anonymousId' : string,
|
|
13
|
+
}
|
|
14
|
+
export interface Property {
|
|
15
|
+
'id' : bigint,
|
|
16
|
+
'anonymousPropertyId' : string,
|
|
17
|
+
'status' : PropertyStatus,
|
|
18
|
+
'propertyType' : string,
|
|
19
|
+
'owner' : Principal,
|
|
20
|
+
'createdAt' : Time,
|
|
21
|
+
'size' : bigint,
|
|
22
|
+
'documentsComplete' : boolean,
|
|
23
|
+
'description' : string,
|
|
24
|
+
'isVerified' : boolean,
|
|
25
|
+
'linkedProperties' : Array<string>,
|
|
26
|
+
'address' : string,
|
|
27
|
+
'chainPosition' : [] | [bigint],
|
|
28
|
+
'financingComplete' : boolean,
|
|
29
|
+
'price' : bigint,
|
|
30
|
+
'searchesComplete' : boolean,
|
|
31
|
+
'transactionId' : [] | [string],
|
|
32
|
+
'uprn' : [] | [string],
|
|
33
|
+
}
|
|
34
|
+
export type PropertyStatus = { 'Listed' : null } |
|
|
35
|
+
{ 'InTransaction' : null } |
|
|
36
|
+
{ 'Cancelled' : null } |
|
|
37
|
+
{ 'Completed' : null };
|
|
38
|
+
export type Result = { 'ok' : null } |
|
|
39
|
+
{ 'err' : string };
|
|
40
|
+
export type Result_1 = { 'ok' : ChainPropertyView } |
|
|
41
|
+
{ 'err' : string };
|
|
42
|
+
export type Result_2 = { 'ok' : string } |
|
|
43
|
+
{ 'err' : string };
|
|
44
|
+
export type Result_3 = { 'ok' : Array<string> } |
|
|
45
|
+
{ 'err' : string };
|
|
46
|
+
export type Time = bigint;
|
|
47
|
+
export interface _SERVICE {
|
|
48
|
+
'buildPropertyChain' : ActorMethod<[string], Result_3>,
|
|
49
|
+
'canViewFullPropertyDetails' : ActorMethod<[string, Principal], boolean>,
|
|
50
|
+
'generateAnonymousPropertyId' : ActorMethod<[string], Result_2>,
|
|
51
|
+
'getAllProperties' : ActorMethod<[], Array<Property>>,
|
|
52
|
+
'getCycles' : ActorMethod<[], bigint>,
|
|
53
|
+
'getProperty' : ActorMethod<[bigint], [] | [Property]>,
|
|
54
|
+
'getPropertyForChainView' : ActorMethod<[string, Principal], Result_1>,
|
|
55
|
+
'registerProperty' : ActorMethod<
|
|
56
|
+
[string, bigint, bigint, string, string],
|
|
57
|
+
bigint
|
|
58
|
+
>,
|
|
59
|
+
'setPropertyUprn' : ActorMethod<[bigint, [] | [string]], Result>,
|
|
60
|
+
'transferOwnership' : ActorMethod<[bigint, Principal], boolean>,
|
|
61
|
+
'updatePropertyProgress' : ActorMethod<
|
|
62
|
+
[bigint, boolean, boolean, boolean],
|
|
63
|
+
Result
|
|
64
|
+
>,
|
|
65
|
+
'updatePropertyStatus' : ActorMethod<[bigint, PropertyStatus], Result>,
|
|
66
|
+
'updatePropertyTransaction' : ActorMethod<
|
|
67
|
+
[bigint, [] | [string], [] | [bigint], Array<string>],
|
|
68
|
+
Result
|
|
69
|
+
>,
|
|
70
|
+
'verifyProperty' : ActorMethod<[bigint], boolean>,
|
|
71
|
+
}
|
|
72
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
73
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|