@dalmore/api-contracts 0.0.0-dev.74136b1 → 0.0.0-dev.7560276
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/common/constants.d.ts +43 -0
- package/common/constants.js +77 -0
- package/common/constants.js.map +1 -0
- package/common/helpers/index.d.ts +8 -0
- package/common/helpers/index.js +15 -0
- package/common/helpers/index.js.map +1 -1
- package/common/types/account-setting.types.d.ts +22 -66
- package/common/types/account-setting.types.js +2 -31
- package/common/types/account-setting.types.js.map +1 -1
- package/common/types/account.types.d.ts +32 -23
- package/common/types/account.types.js +4 -3
- package/common/types/account.types.js.map +1 -1
- package/common/types/activity.types.d.ts +34 -25
- package/common/types/activity.types.js +11 -0
- package/common/types/activity.types.js.map +1 -1
- package/common/types/asset.types.d.ts +212 -0
- package/common/types/asset.types.js +115 -42
- package/common/types/asset.types.js.map +1 -1
- package/common/types/auth.types.d.ts +36 -0
- package/common/types/auth.types.js +3 -2
- package/common/types/auth.types.js.map +1 -1
- package/common/types/bonus-tier.types.d.ts +11 -0
- package/common/types/bonus-tier.types.js +14 -7
- package/common/types/bonus-tier.types.js.map +1 -1
- package/common/types/cap-table.types.d.ts +177 -53
- package/common/types/cap-table.types.js +31 -0
- package/common/types/cap-table.types.js.map +1 -1
- package/common/types/common.types.d.ts +359 -9
- package/common/types/common.types.js +74 -4
- package/common/types/common.types.js.map +1 -1
- package/common/types/comply-advantage-api.types.d.ts +86 -992
- package/common/types/comply-advantage-api.types.js +15 -2
- package/common/types/comply-advantage-api.types.js.map +1 -1
- package/common/types/csv.types.d.ts +3612 -0
- package/common/types/csv.types.js +290 -0
- package/common/types/csv.types.js.map +1 -0
- package/common/types/dashboard.types.d.ts +7 -7
- package/common/types/data-record.types.d.ts +4 -4
- package/common/types/disbursement-transaction.types.d.ts +1 -1
- package/common/types/disbursement-transaction.types.js +1 -1
- package/common/types/disbursement-transaction.types.js.map +1 -1
- package/common/types/disbursements.types.d.ts +999 -587
- package/common/types/disbursements.types.js +95 -2
- package/common/types/disbursements.types.js.map +1 -1
- package/common/types/escrow-account.types.d.ts +17 -0
- package/common/types/escrow-account.types.js +3 -0
- package/common/types/escrow-account.types.js.map +1 -1
- package/common/types/exchange-provider.types.d.ts +12 -12
- package/common/types/file.types.d.ts +38 -11
- package/common/types/file.types.js +14 -0
- package/common/types/file.types.js.map +1 -1
- package/common/types/index.d.ts +4 -2
- package/common/types/index.js +4 -2
- package/common/types/index.js.map +1 -1
- package/common/types/individuals.types.d.ts +207 -5
- package/common/types/individuals.types.js +16 -16
- package/common/types/individuals.types.js.map +1 -1
- package/common/types/investor-account.types.d.ts +1 -1
- package/common/types/investor-account.types.js +1 -2
- package/common/types/investor-account.types.js.map +1 -1
- package/common/types/investors-offering.types.d.ts +8 -0
- package/common/types/investors-offering.types.js +1 -0
- package/common/types/investors-offering.types.js.map +1 -1
- package/common/types/invite.types.d.ts +5 -2
- package/common/types/invite.types.js +2 -1
- package/common/types/invite.types.js.map +1 -1
- package/common/types/issuer-bank-account.types.d.ts +4 -276
- package/common/types/issuer-offering.types.d.ts +1007 -16
- package/common/types/issuer-offering.types.js +304 -43
- package/common/types/issuer-offering.types.js.map +1 -1
- package/common/types/job-item.types.d.ts +14 -14
- package/common/types/legal-entity.types.d.ts +39 -1
- package/common/types/legal-entity.types.js +8 -5
- package/common/types/legal-entity.types.js.map +1 -1
- package/common/types/mail-template.types.d.ts +4 -4
- package/common/types/note.types.d.ts +15 -15
- package/common/types/notification.types.d.ts +1 -0
- package/common/types/notification.types.js +3 -0
- package/common/types/notification.types.js.map +1 -1
- package/common/types/offering-submission.types.d.ts +198 -0
- package/common/types/offering-submission.types.js +17 -4
- package/common/types/offering-submission.types.js.map +1 -1
- package/common/types/offering.types.d.ts +549 -25
- package/common/types/offering.types.js +355 -28
- package/common/types/offering.types.js.map +1 -1
- package/common/types/payment-methods.types.d.ts +365 -0
- package/common/types/payment-methods.types.js +121 -0
- package/common/types/payment-methods.types.js.map +1 -1
- package/common/types/portfolio.types.d.ts +6 -6
- package/common/types/reports.types.d.ts +345 -0
- package/common/types/reports.types.js +69 -0
- package/common/types/reports.types.js.map +1 -0
- package/common/types/review.types.js +1 -1
- package/common/types/review.types.js.map +1 -1
- package/common/types/secondary-order.types.d.ts +10 -10
- package/common/types/secondary-trade.types.d.ts +10 -10
- package/common/types/signer.types.d.ts +8 -8
- package/common/types/site.types.d.ts +17 -12
- package/common/types/task.types.d.ts +30 -22
- package/common/types/task.types.js +3 -0
- package/common/types/task.types.js.map +1 -1
- package/common/types/trade-line-item.types.d.ts +24 -0
- package/common/types/trade-line-item.types.js +3 -0
- package/common/types/trade-line-item.types.js.map +1 -1
- package/common/types/trade.types.d.ts +22 -14
- package/common/types/trade.types.js +20 -7
- package/common/types/trade.types.js.map +1 -1
- package/common/types/transaction.types.d.ts +104 -3
- package/common/types/transaction.types.js +48 -3
- package/common/types/transaction.types.js.map +1 -1
- package/common/types/user.types.d.ts +108 -82
- package/common/types/user.types.js +10 -23
- package/common/types/user.types.js.map +1 -1
- package/common/types/zapier.types.d.ts +126 -0
- package/common/types/zapier.types.js +247 -0
- package/common/types/zapier.types.js.map +1 -0
- package/contracts/clients/assets/index.d.ts +22 -0
- package/contracts/clients/csv/index.d.ts +1800 -0
- package/contracts/clients/csv/index.js +96 -0
- package/contracts/clients/csv/index.js.map +1 -0
- package/contracts/clients/files/index.d.ts +3 -3
- package/contracts/clients/files-public/index.d.ts +3 -3
- package/contracts/clients/index.d.ts +3675 -1043
- package/contracts/clients/index.js +8 -2
- package/contracts/clients/index.js.map +1 -1
- package/contracts/clients/individuals/index.d.ts +5 -5
- package/contracts/clients/legal-entities/index.d.ts +1 -1
- package/contracts/clients/offerings/index.d.ts +310 -9
- package/contracts/clients/review/index.d.ts +85 -0
- package/contracts/clients/review/index.js +27 -0
- package/contracts/clients/review/index.js.map +1 -0
- package/contracts/clients/webhooks/index.d.ts +506 -0
- package/contracts/clients/webhooks/index.js +118 -0
- package/contracts/clients/webhooks/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Available trigger types for Zapier.
|
|
4
|
+
*/
|
|
5
|
+
export const ZAPIER_TRIGGER_TYPES = [
|
|
6
|
+
// === API-sourced triggers (from Client portal calls) ===
|
|
7
|
+
{
|
|
8
|
+
eventType: 'client.trades.create',
|
|
9
|
+
displayName: 'Trade Created',
|
|
10
|
+
description: 'Triggers when a new trade/investment is placed',
|
|
11
|
+
source: 'api',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
eventType: 'client.trades.update',
|
|
15
|
+
displayName: 'Trade Updated',
|
|
16
|
+
description: 'Triggers when a trade is updated',
|
|
17
|
+
source: 'api',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
eventType: 'client.investor_accounts.create',
|
|
21
|
+
displayName: 'Investor Created',
|
|
22
|
+
description: 'Triggers when a new investor account is created',
|
|
23
|
+
source: 'api',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
eventType: 'client.investor_accounts.update',
|
|
27
|
+
displayName: 'Investor Updated',
|
|
28
|
+
description: 'Triggers when an investor account is updated',
|
|
29
|
+
source: 'api',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
eventType: 'client.offerings.create',
|
|
33
|
+
displayName: 'Offering Created',
|
|
34
|
+
description: 'Triggers when a new offering is created',
|
|
35
|
+
source: 'api',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
eventType: 'client.offerings.update',
|
|
39
|
+
displayName: 'Offering Updated',
|
|
40
|
+
description: 'Triggers when an offering is updated',
|
|
41
|
+
source: 'api',
|
|
42
|
+
},
|
|
43
|
+
// === Users (common for email marketing integrations) ===
|
|
44
|
+
{
|
|
45
|
+
eventType: 'client.users.create',
|
|
46
|
+
displayName: 'User Signed Up',
|
|
47
|
+
description: 'Triggers when a new user signs up (ideal for adding to email marketing lists)',
|
|
48
|
+
source: 'api',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
eventType: 'client.users.update',
|
|
52
|
+
displayName: 'User Updated',
|
|
53
|
+
description: 'Triggers when a user profile is updated',
|
|
54
|
+
source: 'api',
|
|
55
|
+
},
|
|
56
|
+
// === External-sourced triggers (from third-party webhooks) ===
|
|
57
|
+
{
|
|
58
|
+
eventType: 'client.kycs.approved',
|
|
59
|
+
displayName: 'KYC Approved',
|
|
60
|
+
description: 'Triggers when KYC verification is approved (via Persona)',
|
|
61
|
+
source: 'external',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
eventType: 'client.kycs.rejected',
|
|
65
|
+
displayName: 'KYC Rejected',
|
|
66
|
+
description: 'Triggers when KYC verification is rejected (via Persona)',
|
|
67
|
+
source: 'external',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
eventType: 'client.amls.approved',
|
|
71
|
+
displayName: 'AML Approved',
|
|
72
|
+
description: 'Triggers when AML screening is approved (via ComplyAdvantage)',
|
|
73
|
+
source: 'external',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
eventType: 'client.amls.rejected',
|
|
77
|
+
displayName: 'AML Rejected',
|
|
78
|
+
description: 'Triggers when AML screening is rejected (via ComplyAdvantage)',
|
|
79
|
+
source: 'external',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
eventType: 'client.transactions.completed',
|
|
83
|
+
displayName: 'Transaction Completed',
|
|
84
|
+
description: 'Triggers when a payment transaction is completed (via Stripe)',
|
|
85
|
+
source: 'external',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
eventType: 'client.transactions.failed',
|
|
89
|
+
displayName: 'Transaction Failed',
|
|
90
|
+
description: 'Triggers when a payment transaction fails (via Stripe)',
|
|
91
|
+
source: 'external',
|
|
92
|
+
},
|
|
93
|
+
// === Both API and external triggers ===
|
|
94
|
+
{
|
|
95
|
+
eventType: 'client.trades.approved',
|
|
96
|
+
displayName: 'Trade Approved',
|
|
97
|
+
description: 'Triggers when a trade is approved (manual or automatic)',
|
|
98
|
+
source: 'both',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
eventType: 'client.trades.rejected',
|
|
102
|
+
displayName: 'Trade Rejected',
|
|
103
|
+
description: 'Triggers when a trade is rejected (manual or automatic)',
|
|
104
|
+
source: 'both',
|
|
105
|
+
},
|
|
106
|
+
];
|
|
107
|
+
/**
|
|
108
|
+
* Available actions for Zapier.
|
|
109
|
+
* Maps directly to existing Client portal endpoints.
|
|
110
|
+
*/
|
|
111
|
+
export const ZAPIER_ACTION_TYPES = [
|
|
112
|
+
// === Trades ===
|
|
113
|
+
{
|
|
114
|
+
key: 'create_trade',
|
|
115
|
+
displayName: 'Create Trade',
|
|
116
|
+
description: 'Create a new trade/investment',
|
|
117
|
+
method: 'POST',
|
|
118
|
+
endpoint: '/clients/api/v1/trades',
|
|
119
|
+
noun: 'Trade',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
key: 'update_trade',
|
|
123
|
+
displayName: 'Update Trade',
|
|
124
|
+
description: 'Update an existing trade',
|
|
125
|
+
method: 'PATCH',
|
|
126
|
+
endpoint: '/clients/api/v1/trades/:id',
|
|
127
|
+
noun: 'Trade',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
key: 'get_trade',
|
|
131
|
+
displayName: 'Find Trade',
|
|
132
|
+
description: 'Find a trade by ID',
|
|
133
|
+
method: 'GET',
|
|
134
|
+
endpoint: '/clients/api/v1/trades/:id',
|
|
135
|
+
noun: 'Trade',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
key: 'search_trades',
|
|
139
|
+
displayName: 'Search Trades',
|
|
140
|
+
description: 'Search for trades with filters',
|
|
141
|
+
method: 'GET',
|
|
142
|
+
endpoint: '/clients/api/v1/trades',
|
|
143
|
+
noun: 'Trade',
|
|
144
|
+
},
|
|
145
|
+
// === Investor Accounts ===
|
|
146
|
+
{
|
|
147
|
+
key: 'create_investor',
|
|
148
|
+
displayName: 'Create Investor',
|
|
149
|
+
description: 'Create a new investor account',
|
|
150
|
+
method: 'POST',
|
|
151
|
+
endpoint: '/clients/api/v1/investor-accounts',
|
|
152
|
+
noun: 'Investor',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
key: 'update_investor',
|
|
156
|
+
displayName: 'Update Investor',
|
|
157
|
+
description: 'Update an investor account',
|
|
158
|
+
method: 'PATCH',
|
|
159
|
+
endpoint: '/clients/api/v1/investor-accounts/:id',
|
|
160
|
+
noun: 'Investor',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
key: 'get_investor',
|
|
164
|
+
displayName: 'Find Investor',
|
|
165
|
+
description: 'Find an investor by ID',
|
|
166
|
+
method: 'GET',
|
|
167
|
+
endpoint: '/clients/api/v1/investor-accounts/:id',
|
|
168
|
+
noun: 'Investor',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
key: 'search_investors',
|
|
172
|
+
displayName: 'Search Investors',
|
|
173
|
+
description: 'Search for investors with filters',
|
|
174
|
+
method: 'GET',
|
|
175
|
+
endpoint: '/clients/api/v1/investor-accounts',
|
|
176
|
+
noun: 'Investor',
|
|
177
|
+
},
|
|
178
|
+
// === Offerings ===
|
|
179
|
+
{
|
|
180
|
+
key: 'get_offering',
|
|
181
|
+
displayName: 'Find Offering',
|
|
182
|
+
description: 'Find an offering by ID',
|
|
183
|
+
method: 'GET',
|
|
184
|
+
endpoint: '/clients/api/v1/offerings/:id',
|
|
185
|
+
noun: 'Offering',
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
key: 'list_offerings',
|
|
189
|
+
displayName: 'List Offerings',
|
|
190
|
+
description: 'List all offerings',
|
|
191
|
+
method: 'GET',
|
|
192
|
+
endpoint: '/clients/api/v1/offerings',
|
|
193
|
+
noun: 'Offering',
|
|
194
|
+
},
|
|
195
|
+
// === KYC ===
|
|
196
|
+
{
|
|
197
|
+
key: 'create_kyc',
|
|
198
|
+
displayName: 'Start KYC',
|
|
199
|
+
description: 'Initiate KYC verification for an investor',
|
|
200
|
+
method: 'POST',
|
|
201
|
+
endpoint: '/clients/api/v1/kycs',
|
|
202
|
+
noun: 'KYC',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
key: 'get_kyc',
|
|
206
|
+
displayName: 'Find KYC',
|
|
207
|
+
description: 'Find KYC status by ID',
|
|
208
|
+
method: 'GET',
|
|
209
|
+
endpoint: '/clients/api/v1/kycs/:id',
|
|
210
|
+
noun: 'KYC',
|
|
211
|
+
},
|
|
212
|
+
];
|
|
213
|
+
// Zod schemas for API responses
|
|
214
|
+
export const ZapierTriggerTypeZod = z.object({
|
|
215
|
+
eventType: z.string(),
|
|
216
|
+
displayName: z.string(),
|
|
217
|
+
description: z.string(),
|
|
218
|
+
source: z.enum(['api', 'external', 'both']),
|
|
219
|
+
});
|
|
220
|
+
export const ZapierActionTypeZod = z.object({
|
|
221
|
+
key: z.string(),
|
|
222
|
+
displayName: z.string(),
|
|
223
|
+
description: z.string(),
|
|
224
|
+
method: z.enum(['GET', 'POST', 'PATCH', 'PUT', 'DELETE']),
|
|
225
|
+
endpoint: z.string(),
|
|
226
|
+
noun: z.string(),
|
|
227
|
+
});
|
|
228
|
+
// Webhook subscription schemas
|
|
229
|
+
export const WebhookSubscriptionZod = z.object({
|
|
230
|
+
id: z.string(),
|
|
231
|
+
targetUrl: z.string().url(),
|
|
232
|
+
eventTypes: z.array(z.string()),
|
|
233
|
+
name: z.string().nullable(),
|
|
234
|
+
enabled: z.boolean(),
|
|
235
|
+
createdAt: z.string(),
|
|
236
|
+
updatedAt: z.string(),
|
|
237
|
+
});
|
|
238
|
+
export const CreateWebhookSubscriptionZod = z.object({
|
|
239
|
+
targetUrl: z.string().url(),
|
|
240
|
+
eventTypes: z.array(z.string()).min(1),
|
|
241
|
+
name: z.string().optional(),
|
|
242
|
+
});
|
|
243
|
+
export const WebhookSubscriptionResponseZod = z.object({
|
|
244
|
+
id: z.string(),
|
|
245
|
+
hook0SubscriptionId: z.string().nullable(),
|
|
246
|
+
});
|
|
247
|
+
//# sourceMappingURL=zapier.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zapier.types.js","sourceRoot":"","sources":["zapier.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAwB;IACvD,0DAA0D;IAC1D;QACE,SAAS,EAAE,sBAAsB;QACjC,WAAW,EAAE,eAAe;QAC5B,WAAW,EAAE,gDAAgD;QAC7D,MAAM,EAAE,KAAK;KACd;IACD;QACE,SAAS,EAAE,sBAAsB;QACjC,WAAW,EAAE,eAAe;QAC5B,WAAW,EAAE,kCAAkC;QAC/C,MAAM,EAAE,KAAK;KACd;IACD;QACE,SAAS,EAAE,iCAAiC;QAC5C,WAAW,EAAE,kBAAkB;QAC/B,WAAW,EAAE,iDAAiD;QAC9D,MAAM,EAAE,KAAK;KACd;IACD;QACE,SAAS,EAAE,iCAAiC;QAC5C,WAAW,EAAE,kBAAkB;QAC/B,WAAW,EAAE,8CAA8C;QAC3D,MAAM,EAAE,KAAK;KACd;IACD;QACE,SAAS,EAAE,yBAAyB;QACpC,WAAW,EAAE,kBAAkB;QAC/B,WAAW,EAAE,yCAAyC;QACtD,MAAM,EAAE,KAAK;KACd;IACD;QACE,SAAS,EAAE,yBAAyB;QACpC,WAAW,EAAE,kBAAkB;QAC/B,WAAW,EAAE,sCAAsC;QACnD,MAAM,EAAE,KAAK;KACd;IAED,0DAA0D;IAC1D;QACE,SAAS,EAAE,qBAAqB;QAChC,WAAW,EAAE,gBAAgB;QAC7B,WAAW,EACT,+EAA+E;QACjF,MAAM,EAAE,KAAK;KACd;IACD;QACE,SAAS,EAAE,qBAAqB;QAChC,WAAW,EAAE,cAAc;QAC3B,WAAW,EAAE,yCAAyC;QACtD,MAAM,EAAE,KAAK;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EAAE;CACjB,CAAC,CAAC;AAEH,+BAA+B;AAC/B,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC"}
|
|
@@ -101,6 +101,7 @@ export declare const assetsContract: {
|
|
|
101
101
|
template: z.ZodNativeEnum<typeof import("../../../common/types/asset.types").AssetTemplateType>;
|
|
102
102
|
tiers: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
|
|
103
103
|
enableBonus: z.ZodBoolean;
|
|
104
|
+
interestRate: z.ZodNullable<z.ZodNumber>;
|
|
104
105
|
}, "strip", z.ZodTypeAny, {
|
|
105
106
|
type: import("../../..").AssetType | null;
|
|
106
107
|
id: string;
|
|
@@ -119,6 +120,7 @@ export declare const assetsContract: {
|
|
|
119
120
|
durationType: import("../../..").DurationType | null;
|
|
120
121
|
tiers: number[] | null;
|
|
121
122
|
enableBonus: boolean;
|
|
123
|
+
interestRate: number | null;
|
|
122
124
|
__entity?: string | undefined;
|
|
123
125
|
account?: {
|
|
124
126
|
status: import("../../..").AccountStatus;
|
|
@@ -153,6 +155,7 @@ export declare const assetsContract: {
|
|
|
153
155
|
durationType: import("../../..").DurationType | null;
|
|
154
156
|
tiers: number[] | null;
|
|
155
157
|
enableBonus: boolean;
|
|
158
|
+
interestRate: number | null;
|
|
156
159
|
__entity?: string | undefined;
|
|
157
160
|
account?: {
|
|
158
161
|
status: import("../../..").AccountStatus;
|
|
@@ -208,6 +211,7 @@ export declare const assetsContract: {
|
|
|
208
211
|
durationType: import("../../..").DurationType | null;
|
|
209
212
|
tiers: number[] | null;
|
|
210
213
|
enableBonus: boolean;
|
|
214
|
+
interestRate: number | null;
|
|
211
215
|
__entity?: string | undefined;
|
|
212
216
|
account?: {
|
|
213
217
|
status: import("../../..").AccountStatus;
|
|
@@ -251,6 +255,7 @@ export declare const assetsContract: {
|
|
|
251
255
|
durationType: import("../../..").DurationType | null;
|
|
252
256
|
tiers: number[] | null;
|
|
253
257
|
enableBonus: boolean;
|
|
258
|
+
interestRate: number | null;
|
|
254
259
|
__entity?: string | undefined;
|
|
255
260
|
account?: {
|
|
256
261
|
status: import("../../..").AccountStatus;
|
|
@@ -401,6 +406,7 @@ export declare const assetsContract: {
|
|
|
401
406
|
template: z.ZodNativeEnum<typeof import("../../../common/types/asset.types").AssetTemplateType>;
|
|
402
407
|
tiers: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
|
|
403
408
|
enableBonus: z.ZodBoolean;
|
|
409
|
+
interestRate: z.ZodNullable<z.ZodNumber>;
|
|
404
410
|
}, "strip", z.ZodTypeAny, {
|
|
405
411
|
type: import("../../..").AssetType | null;
|
|
406
412
|
id: string;
|
|
@@ -419,6 +425,7 @@ export declare const assetsContract: {
|
|
|
419
425
|
durationType: import("../../..").DurationType | null;
|
|
420
426
|
tiers: number[] | null;
|
|
421
427
|
enableBonus: boolean;
|
|
428
|
+
interestRate: number | null;
|
|
422
429
|
__entity?: string | undefined;
|
|
423
430
|
account?: {
|
|
424
431
|
status: import("../../..").AccountStatus;
|
|
@@ -453,6 +460,7 @@ export declare const assetsContract: {
|
|
|
453
460
|
durationType: import("../../..").DurationType | null;
|
|
454
461
|
tiers: number[] | null;
|
|
455
462
|
enableBonus: boolean;
|
|
463
|
+
interestRate: number | null;
|
|
456
464
|
__entity?: string | undefined;
|
|
457
465
|
account?: {
|
|
458
466
|
status: import("../../..").AccountStatus;
|
|
@@ -541,6 +549,7 @@ export declare const assetsContract: {
|
|
|
541
549
|
template: z.ZodDefault<z.ZodNativeEnum<typeof import("../../../common/types/asset.types").AssetTemplateType>>;
|
|
542
550
|
tiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
543
551
|
enableBonus: z.ZodDefault<z.ZodBoolean>;
|
|
552
|
+
interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
544
553
|
}, "strip", z.ZodTypeAny, {
|
|
545
554
|
type: import("../../..").AssetType;
|
|
546
555
|
name: string;
|
|
@@ -553,6 +562,7 @@ export declare const assetsContract: {
|
|
|
553
562
|
duration?: number | null | undefined;
|
|
554
563
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
555
564
|
tiers?: number[] | null | undefined;
|
|
565
|
+
interestRate?: number | null | undefined;
|
|
556
566
|
}, {
|
|
557
567
|
type: import("../../..").AssetType;
|
|
558
568
|
name: string;
|
|
@@ -565,6 +575,7 @@ export declare const assetsContract: {
|
|
|
565
575
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
566
576
|
tiers?: number[] | null | undefined;
|
|
567
577
|
enableBonus?: boolean | undefined;
|
|
578
|
+
interestRate?: number | null | undefined;
|
|
568
579
|
}>, {
|
|
569
580
|
type: import("../../..").AssetType;
|
|
570
581
|
name: string;
|
|
@@ -577,6 +588,7 @@ export declare const assetsContract: {
|
|
|
577
588
|
duration?: number | null | undefined;
|
|
578
589
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
579
590
|
tiers?: number[] | null | undefined;
|
|
591
|
+
interestRate?: number | null | undefined;
|
|
580
592
|
}, {
|
|
581
593
|
type: import("../../..").AssetType;
|
|
582
594
|
name: string;
|
|
@@ -589,6 +601,7 @@ export declare const assetsContract: {
|
|
|
589
601
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
590
602
|
tiers?: number[] | null | undefined;
|
|
591
603
|
enableBonus?: boolean | undefined;
|
|
604
|
+
interestRate?: number | null | undefined;
|
|
592
605
|
}>;
|
|
593
606
|
summary: "Create an asset";
|
|
594
607
|
path: "assets";
|
|
@@ -655,6 +668,7 @@ export declare const assetsContract: {
|
|
|
655
668
|
template: z.ZodNativeEnum<typeof import("../../../common/types/asset.types").AssetTemplateType>;
|
|
656
669
|
tiers: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
|
|
657
670
|
enableBonus: z.ZodBoolean;
|
|
671
|
+
interestRate: z.ZodNullable<z.ZodNumber>;
|
|
658
672
|
}, "strip", z.ZodTypeAny, {
|
|
659
673
|
type: import("../../..").AssetType | null;
|
|
660
674
|
id: string;
|
|
@@ -673,6 +687,7 @@ export declare const assetsContract: {
|
|
|
673
687
|
durationType: import("../../..").DurationType | null;
|
|
674
688
|
tiers: number[] | null;
|
|
675
689
|
enableBonus: boolean;
|
|
690
|
+
interestRate: number | null;
|
|
676
691
|
__entity?: string | undefined;
|
|
677
692
|
account?: {
|
|
678
693
|
status: import("../../..").AccountStatus;
|
|
@@ -707,6 +722,7 @@ export declare const assetsContract: {
|
|
|
707
722
|
durationType: import("../../..").DurationType | null;
|
|
708
723
|
tiers: number[] | null;
|
|
709
724
|
enableBonus: boolean;
|
|
725
|
+
interestRate: number | null;
|
|
710
726
|
__entity?: string | undefined;
|
|
711
727
|
account?: {
|
|
712
728
|
status: import("../../..").AccountStatus;
|
|
@@ -794,6 +810,7 @@ export declare const assetsContract: {
|
|
|
794
810
|
template: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNativeEnum<typeof import("../../../common/types/asset.types").AssetTemplateType>>>>;
|
|
795
811
|
tiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
796
812
|
enableBonus: z.ZodOptional<z.ZodBoolean>;
|
|
813
|
+
interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
797
814
|
}, "strip", z.ZodTypeAny, {
|
|
798
815
|
type?: import("../../..").AssetType | undefined;
|
|
799
816
|
name?: string | undefined;
|
|
@@ -805,6 +822,7 @@ export declare const assetsContract: {
|
|
|
805
822
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
806
823
|
tiers?: number[] | null | undefined;
|
|
807
824
|
enableBonus?: boolean | undefined;
|
|
825
|
+
interestRate?: number | null | undefined;
|
|
808
826
|
}, {
|
|
809
827
|
type?: import("../../..").AssetType | undefined;
|
|
810
828
|
name?: string | undefined;
|
|
@@ -816,6 +834,7 @@ export declare const assetsContract: {
|
|
|
816
834
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
817
835
|
tiers?: number[] | null | undefined;
|
|
818
836
|
enableBonus?: boolean | undefined;
|
|
837
|
+
interestRate?: number | null | undefined;
|
|
819
838
|
}>;
|
|
820
839
|
pathParams: z.ZodObject<{
|
|
821
840
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -889,6 +908,7 @@ export declare const assetsContract: {
|
|
|
889
908
|
template: z.ZodNativeEnum<typeof import("../../../common/types/asset.types").AssetTemplateType>;
|
|
890
909
|
tiers: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
|
|
891
910
|
enableBonus: z.ZodBoolean;
|
|
911
|
+
interestRate: z.ZodNullable<z.ZodNumber>;
|
|
892
912
|
}, "strip", z.ZodTypeAny, {
|
|
893
913
|
type: import("../../..").AssetType | null;
|
|
894
914
|
id: string;
|
|
@@ -907,6 +927,7 @@ export declare const assetsContract: {
|
|
|
907
927
|
durationType: import("../../..").DurationType | null;
|
|
908
928
|
tiers: number[] | null;
|
|
909
929
|
enableBonus: boolean;
|
|
930
|
+
interestRate: number | null;
|
|
910
931
|
__entity?: string | undefined;
|
|
911
932
|
account?: {
|
|
912
933
|
status: import("../../..").AccountStatus;
|
|
@@ -941,6 +962,7 @@ export declare const assetsContract: {
|
|
|
941
962
|
durationType: import("../../..").DurationType | null;
|
|
942
963
|
tiers: number[] | null;
|
|
943
964
|
enableBonus: boolean;
|
|
965
|
+
interestRate: number | null;
|
|
944
966
|
__entity?: string | undefined;
|
|
945
967
|
account?: {
|
|
946
968
|
status: import("../../..").AccountStatus;
|