@dalmore/api-contracts 0.0.0-dev.73ad209 → 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 +25 -111
- package/common/types/asset.types.js +24 -100
- 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 +0 -30
- package/common/types/bonus-tier.types.js +1 -2
- 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 +357 -8
- package/common/types/common.types.js +73 -4
- package/common/types/common.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/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 +956 -7
- package/common/types/disbursements.types.js +92 -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-offering.types.d.ts +361 -91
- package/common/types/issuer-offering.types.js +205 -75
- 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 +354 -70
- package/common/types/offering.types.js +277 -47
- 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/site.types.d.ts +12 -27
- 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 +24 -2
- package/common/types/transaction.types.js +26 -1
- 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 +0 -66
- 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 +3466 -1178
- 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 +91 -46
- 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"],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,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,10 +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
|
-
principalAmount: z.ZodNullable<z.ZodNumber>;
|
|
105
|
-
maxTotalRaise: z.ZodNullable<z.ZodNumber>;
|
|
106
104
|
interestRate: z.ZodNullable<z.ZodNumber>;
|
|
107
|
-
interestType: z.ZodNullable<z.ZodNativeEnum<typeof import("../../../common/types/asset.types").InterestType>>;
|
|
108
105
|
}, "strip", z.ZodTypeAny, {
|
|
109
106
|
type: import("../../..").AssetType | null;
|
|
110
107
|
id: string;
|
|
@@ -123,10 +120,7 @@ export declare const assetsContract: {
|
|
|
123
120
|
durationType: import("../../..").DurationType | null;
|
|
124
121
|
tiers: number[] | null;
|
|
125
122
|
enableBonus: boolean;
|
|
126
|
-
principalAmount: number | null;
|
|
127
|
-
maxTotalRaise: number | null;
|
|
128
123
|
interestRate: number | null;
|
|
129
|
-
interestType: import("../../../common/types/asset.types").InterestType | null;
|
|
130
124
|
__entity?: string | undefined;
|
|
131
125
|
account?: {
|
|
132
126
|
status: import("../../..").AccountStatus;
|
|
@@ -161,10 +155,7 @@ export declare const assetsContract: {
|
|
|
161
155
|
durationType: import("../../..").DurationType | null;
|
|
162
156
|
tiers: number[] | null;
|
|
163
157
|
enableBonus: boolean;
|
|
164
|
-
principalAmount: number | null;
|
|
165
|
-
maxTotalRaise: number | null;
|
|
166
158
|
interestRate: number | null;
|
|
167
|
-
interestType: import("../../../common/types/asset.types").InterestType | null;
|
|
168
159
|
__entity?: string | undefined;
|
|
169
160
|
account?: {
|
|
170
161
|
status: import("../../..").AccountStatus;
|
|
@@ -220,10 +211,7 @@ export declare const assetsContract: {
|
|
|
220
211
|
durationType: import("../../..").DurationType | null;
|
|
221
212
|
tiers: number[] | null;
|
|
222
213
|
enableBonus: boolean;
|
|
223
|
-
principalAmount: number | null;
|
|
224
|
-
maxTotalRaise: number | null;
|
|
225
214
|
interestRate: number | null;
|
|
226
|
-
interestType: import("../../../common/types/asset.types").InterestType | null;
|
|
227
215
|
__entity?: string | undefined;
|
|
228
216
|
account?: {
|
|
229
217
|
status: import("../../..").AccountStatus;
|
|
@@ -267,10 +255,7 @@ export declare const assetsContract: {
|
|
|
267
255
|
durationType: import("../../..").DurationType | null;
|
|
268
256
|
tiers: number[] | null;
|
|
269
257
|
enableBonus: boolean;
|
|
270
|
-
principalAmount: number | null;
|
|
271
|
-
maxTotalRaise: number | null;
|
|
272
258
|
interestRate: number | null;
|
|
273
|
-
interestType: import("../../../common/types/asset.types").InterestType | null;
|
|
274
259
|
__entity?: string | undefined;
|
|
275
260
|
account?: {
|
|
276
261
|
status: import("../../..").AccountStatus;
|
|
@@ -421,10 +406,7 @@ export declare const assetsContract: {
|
|
|
421
406
|
template: z.ZodNativeEnum<typeof import("../../../common/types/asset.types").AssetTemplateType>;
|
|
422
407
|
tiers: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
|
|
423
408
|
enableBonus: z.ZodBoolean;
|
|
424
|
-
principalAmount: z.ZodNullable<z.ZodNumber>;
|
|
425
|
-
maxTotalRaise: z.ZodNullable<z.ZodNumber>;
|
|
426
409
|
interestRate: z.ZodNullable<z.ZodNumber>;
|
|
427
|
-
interestType: z.ZodNullable<z.ZodNativeEnum<typeof import("../../../common/types/asset.types").InterestType>>;
|
|
428
410
|
}, "strip", z.ZodTypeAny, {
|
|
429
411
|
type: import("../../..").AssetType | null;
|
|
430
412
|
id: string;
|
|
@@ -443,10 +425,7 @@ export declare const assetsContract: {
|
|
|
443
425
|
durationType: import("../../..").DurationType | null;
|
|
444
426
|
tiers: number[] | null;
|
|
445
427
|
enableBonus: boolean;
|
|
446
|
-
principalAmount: number | null;
|
|
447
|
-
maxTotalRaise: number | null;
|
|
448
428
|
interestRate: number | null;
|
|
449
|
-
interestType: import("../../../common/types/asset.types").InterestType | null;
|
|
450
429
|
__entity?: string | undefined;
|
|
451
430
|
account?: {
|
|
452
431
|
status: import("../../..").AccountStatus;
|
|
@@ -481,10 +460,7 @@ export declare const assetsContract: {
|
|
|
481
460
|
durationType: import("../../..").DurationType | null;
|
|
482
461
|
tiers: number[] | null;
|
|
483
462
|
enableBonus: boolean;
|
|
484
|
-
principalAmount: number | null;
|
|
485
|
-
maxTotalRaise: number | null;
|
|
486
463
|
interestRate: number | null;
|
|
487
|
-
interestType: import("../../../common/types/asset.types").InterestType | null;
|
|
488
464
|
__entity?: string | undefined;
|
|
489
465
|
account?: {
|
|
490
466
|
status: import("../../..").AccountStatus;
|
|
@@ -573,10 +549,7 @@ export declare const assetsContract: {
|
|
|
573
549
|
template: z.ZodDefault<z.ZodNativeEnum<typeof import("../../../common/types/asset.types").AssetTemplateType>>;
|
|
574
550
|
tiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
575
551
|
enableBonus: z.ZodDefault<z.ZodBoolean>;
|
|
576
|
-
principalAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
577
|
-
maxTotalRaise: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
578
552
|
interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
579
|
-
interestType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../../common/types/asset.types").InterestType>>>;
|
|
580
553
|
}, "strip", z.ZodTypeAny, {
|
|
581
554
|
type: import("../../..").AssetType;
|
|
582
555
|
name: string;
|
|
@@ -589,10 +562,7 @@ export declare const assetsContract: {
|
|
|
589
562
|
duration?: number | null | undefined;
|
|
590
563
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
591
564
|
tiers?: number[] | null | undefined;
|
|
592
|
-
principalAmount?: number | null | undefined;
|
|
593
|
-
maxTotalRaise?: number | null | undefined;
|
|
594
565
|
interestRate?: number | null | undefined;
|
|
595
|
-
interestType?: import("../../../common/types/asset.types").InterestType | null | undefined;
|
|
596
566
|
}, {
|
|
597
567
|
type: import("../../..").AssetType;
|
|
598
568
|
name: string;
|
|
@@ -605,10 +575,7 @@ export declare const assetsContract: {
|
|
|
605
575
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
606
576
|
tiers?: number[] | null | undefined;
|
|
607
577
|
enableBonus?: boolean | undefined;
|
|
608
|
-
principalAmount?: number | null | undefined;
|
|
609
|
-
maxTotalRaise?: number | null | undefined;
|
|
610
578
|
interestRate?: number | null | undefined;
|
|
611
|
-
interestType?: import("../../../common/types/asset.types").InterestType | null | undefined;
|
|
612
579
|
}>, {
|
|
613
580
|
type: import("../../..").AssetType;
|
|
614
581
|
name: string;
|
|
@@ -621,10 +588,7 @@ export declare const assetsContract: {
|
|
|
621
588
|
duration?: number | null | undefined;
|
|
622
589
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
623
590
|
tiers?: number[] | null | undefined;
|
|
624
|
-
principalAmount?: number | null | undefined;
|
|
625
|
-
maxTotalRaise?: number | null | undefined;
|
|
626
591
|
interestRate?: number | null | undefined;
|
|
627
|
-
interestType?: import("../../../common/types/asset.types").InterestType | null | undefined;
|
|
628
592
|
}, {
|
|
629
593
|
type: import("../../..").AssetType;
|
|
630
594
|
name: string;
|
|
@@ -637,10 +601,7 @@ export declare const assetsContract: {
|
|
|
637
601
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
638
602
|
tiers?: number[] | null | undefined;
|
|
639
603
|
enableBonus?: boolean | undefined;
|
|
640
|
-
principalAmount?: number | null | undefined;
|
|
641
|
-
maxTotalRaise?: number | null | undefined;
|
|
642
604
|
interestRate?: number | null | undefined;
|
|
643
|
-
interestType?: import("../../../common/types/asset.types").InterestType | null | undefined;
|
|
644
605
|
}>;
|
|
645
606
|
summary: "Create an asset";
|
|
646
607
|
path: "assets";
|
|
@@ -707,10 +668,7 @@ export declare const assetsContract: {
|
|
|
707
668
|
template: z.ZodNativeEnum<typeof import("../../../common/types/asset.types").AssetTemplateType>;
|
|
708
669
|
tiers: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
|
|
709
670
|
enableBonus: z.ZodBoolean;
|
|
710
|
-
principalAmount: z.ZodNullable<z.ZodNumber>;
|
|
711
|
-
maxTotalRaise: z.ZodNullable<z.ZodNumber>;
|
|
712
671
|
interestRate: z.ZodNullable<z.ZodNumber>;
|
|
713
|
-
interestType: z.ZodNullable<z.ZodNativeEnum<typeof import("../../../common/types/asset.types").InterestType>>;
|
|
714
672
|
}, "strip", z.ZodTypeAny, {
|
|
715
673
|
type: import("../../..").AssetType | null;
|
|
716
674
|
id: string;
|
|
@@ -729,10 +687,7 @@ export declare const assetsContract: {
|
|
|
729
687
|
durationType: import("../../..").DurationType | null;
|
|
730
688
|
tiers: number[] | null;
|
|
731
689
|
enableBonus: boolean;
|
|
732
|
-
principalAmount: number | null;
|
|
733
|
-
maxTotalRaise: number | null;
|
|
734
690
|
interestRate: number | null;
|
|
735
|
-
interestType: import("../../../common/types/asset.types").InterestType | null;
|
|
736
691
|
__entity?: string | undefined;
|
|
737
692
|
account?: {
|
|
738
693
|
status: import("../../..").AccountStatus;
|
|
@@ -767,10 +722,7 @@ export declare const assetsContract: {
|
|
|
767
722
|
durationType: import("../../..").DurationType | null;
|
|
768
723
|
tiers: number[] | null;
|
|
769
724
|
enableBonus: boolean;
|
|
770
|
-
principalAmount: number | null;
|
|
771
|
-
maxTotalRaise: number | null;
|
|
772
725
|
interestRate: number | null;
|
|
773
|
-
interestType: import("../../../common/types/asset.types").InterestType | null;
|
|
774
726
|
__entity?: string | undefined;
|
|
775
727
|
account?: {
|
|
776
728
|
status: import("../../..").AccountStatus;
|
|
@@ -858,10 +810,7 @@ export declare const assetsContract: {
|
|
|
858
810
|
template: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNativeEnum<typeof import("../../../common/types/asset.types").AssetTemplateType>>>>;
|
|
859
811
|
tiers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
860
812
|
enableBonus: z.ZodOptional<z.ZodBoolean>;
|
|
861
|
-
principalAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
862
|
-
maxTotalRaise: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
863
813
|
interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
864
|
-
interestType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../../common/types/asset.types").InterestType>>>;
|
|
865
814
|
}, "strip", z.ZodTypeAny, {
|
|
866
815
|
type?: import("../../..").AssetType | undefined;
|
|
867
816
|
name?: string | undefined;
|
|
@@ -873,10 +822,7 @@ export declare const assetsContract: {
|
|
|
873
822
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
874
823
|
tiers?: number[] | null | undefined;
|
|
875
824
|
enableBonus?: boolean | undefined;
|
|
876
|
-
principalAmount?: number | null | undefined;
|
|
877
|
-
maxTotalRaise?: number | null | undefined;
|
|
878
825
|
interestRate?: number | null | undefined;
|
|
879
|
-
interestType?: import("../../../common/types/asset.types").InterestType | null | undefined;
|
|
880
826
|
}, {
|
|
881
827
|
type?: import("../../..").AssetType | undefined;
|
|
882
828
|
name?: string | undefined;
|
|
@@ -888,10 +834,7 @@ export declare const assetsContract: {
|
|
|
888
834
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
889
835
|
tiers?: number[] | null | undefined;
|
|
890
836
|
enableBonus?: boolean | undefined;
|
|
891
|
-
principalAmount?: number | null | undefined;
|
|
892
|
-
maxTotalRaise?: number | null | undefined;
|
|
893
837
|
interestRate?: number | null | undefined;
|
|
894
|
-
interestType?: import("../../../common/types/asset.types").InterestType | null | undefined;
|
|
895
838
|
}>;
|
|
896
839
|
pathParams: z.ZodObject<{
|
|
897
840
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -965,10 +908,7 @@ export declare const assetsContract: {
|
|
|
965
908
|
template: z.ZodNativeEnum<typeof import("../../../common/types/asset.types").AssetTemplateType>;
|
|
966
909
|
tiers: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
|
|
967
910
|
enableBonus: z.ZodBoolean;
|
|
968
|
-
principalAmount: z.ZodNullable<z.ZodNumber>;
|
|
969
|
-
maxTotalRaise: z.ZodNullable<z.ZodNumber>;
|
|
970
911
|
interestRate: z.ZodNullable<z.ZodNumber>;
|
|
971
|
-
interestType: z.ZodNullable<z.ZodNativeEnum<typeof import("../../../common/types/asset.types").InterestType>>;
|
|
972
912
|
}, "strip", z.ZodTypeAny, {
|
|
973
913
|
type: import("../../..").AssetType | null;
|
|
974
914
|
id: string;
|
|
@@ -987,10 +927,7 @@ export declare const assetsContract: {
|
|
|
987
927
|
durationType: import("../../..").DurationType | null;
|
|
988
928
|
tiers: number[] | null;
|
|
989
929
|
enableBonus: boolean;
|
|
990
|
-
principalAmount: number | null;
|
|
991
|
-
maxTotalRaise: number | null;
|
|
992
930
|
interestRate: number | null;
|
|
993
|
-
interestType: import("../../../common/types/asset.types").InterestType | null;
|
|
994
931
|
__entity?: string | undefined;
|
|
995
932
|
account?: {
|
|
996
933
|
status: import("../../..").AccountStatus;
|
|
@@ -1025,10 +962,7 @@ export declare const assetsContract: {
|
|
|
1025
962
|
durationType: import("../../..").DurationType | null;
|
|
1026
963
|
tiers: number[] | null;
|
|
1027
964
|
enableBonus: boolean;
|
|
1028
|
-
principalAmount: number | null;
|
|
1029
|
-
maxTotalRaise: number | null;
|
|
1030
965
|
interestRate: number | null;
|
|
1031
|
-
interestType: import("../../../common/types/asset.types").InterestType | null;
|
|
1032
966
|
__entity?: string | undefined;
|
|
1033
967
|
account?: {
|
|
1034
968
|
status: import("../../..").AccountStatus;
|