@dalmore/api-contracts 0.0.0-dev.a9772b4 → 0.0.0-dev.abccaef
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/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 +1 -0
- package/common/types/account.types.js.map +1 -1
- package/common/types/activity.types.d.ts +35 -25
- package/common/types/activity.types.js +13 -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/bonus-tier.types.d.ts +15 -4
- 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 +77 -62
- package/common/types/cap-table.types.js +17 -0
- package/common/types/cap-table.types.js.map +1 -1
- package/common/types/common.types.d.ts +359 -6
- package/common/types/common.types.js +71 -1
- package/common/types/common.types.js.map +1 -1
- package/common/types/comply-advantage-api.types.d.ts +133 -466
- package/common/types/comply-advantage-api.types.js +24 -3
- package/common/types/comply-advantage-api.types.js.map +1 -1
- 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 +1439 -401
- package/common/types/disbursements.types.js +100 -0
- 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 +35 -11
- package/common/types/file.types.js +11 -0
- package/common/types/file.types.js.map +1 -1
- package/common/types/index.d.ts +3 -0
- package/common/types/index.js +3 -0
- package/common/types/index.js.map +1 -1
- package/common/types/individuals.types.js +5 -2
- package/common/types/individuals.types.js.map +1 -1
- package/common/types/investor-account.types.d.ts +5 -5
- package/common/types/investor-account.types.js +1 -2
- package/common/types/investor-account.types.js.map +1 -1
- package/common/types/invite.types.d.ts +2 -2
- package/common/types/invite.types.js +1 -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 +834 -14
- package/common/types/issuer-offering.types.js +297 -25
- package/common/types/issuer-offering.types.js.map +1 -1
- package/common/types/job-item.types.d.ts +14 -14
- package/common/types/note.types.d.ts +15 -15
- package/common/types/offering-submission.types.d.ts +198 -0
- package/common/types/offering-submission.types.js +16 -3
- package/common/types/offering-submission.types.js.map +1 -1
- package/common/types/offering.types.d.ts +535 -21
- package/common/types/offering.types.js +324 -26
- package/common/types/offering.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/secondary-order.types.d.ts +10 -10
- package/common/types/secondary-trade.types.d.ts +10 -10
- package/common/types/signer.types.d.ts +23 -11
- package/common/types/signer.types.js +16 -1
- package/common/types/signer.types.js.map +1 -1
- package/common/types/site.types.d.ts +17 -12
- package/common/types/task.types.d.ts +22 -22
- package/common/types/trade-line-item.types.d.ts +18 -1
- package/common/types/trade-line-item.types.js +12 -1
- package/common/types/trade-line-item.types.js.map +1 -1
- package/common/types/trade.types.d.ts +69 -41
- package/common/types/trade.types.js +15 -4
- package/common/types/trade.types.js.map +1 -1
- package/common/types/transaction.types.d.ts +80 -2
- package/common/types/transaction.types.js +22 -3
- package/common/types/transaction.types.js.map +1 -1
- package/common/types/user.types.d.ts +191 -59
- package/common/types/user.types.js +9 -1
- package/common/types/user.types.js.map +1 -1
- package/contracts/clients/assets/index.d.ts +22 -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 +345 -16
- package/contracts/clients/offerings/index.d.ts +308 -7
- package/contracts/clients/trades/index.d.ts +9 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { AssetType, OfferingType, SignatureStatus } from './common.types';
|
|
2
|
+
import { AssetType, OfferingType, SignatureStatus, TradeStatus } from './common.types';
|
|
3
3
|
export declare const tradeLineItemIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
4
4
|
export declare const TradeLineItemZod: z.ZodObject<{
|
|
5
5
|
__entity: z.ZodOptional<z.ZodString>;
|
|
@@ -23,6 +23,8 @@ export declare const TradeLineItemZod: z.ZodObject<{
|
|
|
23
23
|
subdocFileId: z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
24
24
|
lineItemRegulation: z.ZodNullable<z.ZodNativeEnum<typeof OfferingType>>;
|
|
25
25
|
lineItemCoverArtId: z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
26
|
+
bonusShares: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
totalNumberOfShares: z.ZodNumber;
|
|
26
28
|
}, "strip", z.ZodTypeAny, {
|
|
27
29
|
id: string;
|
|
28
30
|
createdAt: string | Date;
|
|
@@ -30,6 +32,8 @@ export declare const TradeLineItemZod: z.ZodObject<{
|
|
|
30
32
|
deletedAt: string | Date | null;
|
|
31
33
|
tid: string | null;
|
|
32
34
|
total: number;
|
|
35
|
+
bonusShares: number | null;
|
|
36
|
+
totalNumberOfShares: number;
|
|
33
37
|
pricePerShare: number;
|
|
34
38
|
quantity: number;
|
|
35
39
|
assetId: string;
|
|
@@ -51,6 +55,8 @@ export declare const TradeLineItemZod: z.ZodObject<{
|
|
|
51
55
|
deletedAt: string | Date | null;
|
|
52
56
|
tid: string | null;
|
|
53
57
|
total: number;
|
|
58
|
+
bonusShares: number | null;
|
|
59
|
+
totalNumberOfShares: number;
|
|
54
60
|
pricePerShare: number;
|
|
55
61
|
quantity: number;
|
|
56
62
|
assetId: string;
|
|
@@ -186,6 +192,8 @@ export declare const IPaginatedTradeLineItem: z.ZodObject<{
|
|
|
186
192
|
subdocFileId: z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
187
193
|
lineItemRegulation: z.ZodNullable<z.ZodNativeEnum<typeof OfferingType>>;
|
|
188
194
|
lineItemCoverArtId: z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
195
|
+
bonusShares: z.ZodNullable<z.ZodNumber>;
|
|
196
|
+
totalNumberOfShares: z.ZodNumber;
|
|
189
197
|
}, "strip", z.ZodTypeAny, {
|
|
190
198
|
id: string;
|
|
191
199
|
createdAt: string | Date;
|
|
@@ -193,6 +201,8 @@ export declare const IPaginatedTradeLineItem: z.ZodObject<{
|
|
|
193
201
|
deletedAt: string | Date | null;
|
|
194
202
|
tid: string | null;
|
|
195
203
|
total: number;
|
|
204
|
+
bonusShares: number | null;
|
|
205
|
+
totalNumberOfShares: number;
|
|
196
206
|
pricePerShare: number;
|
|
197
207
|
quantity: number;
|
|
198
208
|
assetId: string;
|
|
@@ -214,6 +224,8 @@ export declare const IPaginatedTradeLineItem: z.ZodObject<{
|
|
|
214
224
|
deletedAt: string | Date | null;
|
|
215
225
|
tid: string | null;
|
|
216
226
|
total: number;
|
|
227
|
+
bonusShares: number | null;
|
|
228
|
+
totalNumberOfShares: number;
|
|
217
229
|
pricePerShare: number;
|
|
218
230
|
quantity: number;
|
|
219
231
|
assetId: string;
|
|
@@ -256,6 +268,8 @@ export declare const IPaginatedTradeLineItem: z.ZodObject<{
|
|
|
256
268
|
deletedAt: string | Date | null;
|
|
257
269
|
tid: string | null;
|
|
258
270
|
total: number;
|
|
271
|
+
bonusShares: number | null;
|
|
272
|
+
totalNumberOfShares: number;
|
|
259
273
|
pricePerShare: number;
|
|
260
274
|
quantity: number;
|
|
261
275
|
assetId: string;
|
|
@@ -286,6 +300,8 @@ export declare const IPaginatedTradeLineItem: z.ZodObject<{
|
|
|
286
300
|
deletedAt: string | Date | null;
|
|
287
301
|
tid: string | null;
|
|
288
302
|
total: number;
|
|
303
|
+
bonusShares: number | null;
|
|
304
|
+
totalNumberOfShares: number;
|
|
289
305
|
pricePerShare: number;
|
|
290
306
|
quantity: number;
|
|
291
307
|
assetId: string;
|
|
@@ -310,3 +326,4 @@ export declare const IPaginatedTradeLineItem: z.ZodObject<{
|
|
|
310
326
|
};
|
|
311
327
|
}>;
|
|
312
328
|
export type IPaginatedTradeLineItem = z.infer<typeof IPaginatedTradeLineItem>;
|
|
329
|
+
export declare const COUNTED_STATUSES: TradeStatus[];
|
|
@@ -3,7 +3,7 @@ import { assetIdSchema } from './asset.types.js';
|
|
|
3
3
|
import { tradeIdSchema } from './trade.types.js';
|
|
4
4
|
import { TypeID } from 'typeid-js';
|
|
5
5
|
import { IBaseEntity } from './entity.types.js';
|
|
6
|
-
import { AssetType, IPaginationMeta, OfferingType, SignatureStatus, StringToBooleanSchema, } from './common.types.js';
|
|
6
|
+
import { AssetType, IPaginationMeta, OfferingType, SignatureStatus, StringToBooleanSchema, TradeStatus, } from './common.types.js';
|
|
7
7
|
import { fileIdSchema } from './file.types.js';
|
|
8
8
|
import { accountIdSchema } from './account.types.js';
|
|
9
9
|
import { offeringIdSchema } from './offering.types.js';
|
|
@@ -35,6 +35,8 @@ export const TradeLineItemZod = IBaseEntity.extend({
|
|
|
35
35
|
subdocFileId: z.lazy(() => fileIdSchema).nullable(),
|
|
36
36
|
lineItemRegulation: z.nativeEnum(OfferingType).nullable(),
|
|
37
37
|
lineItemCoverArtId: z.lazy(() => fileIdSchema).nullable(),
|
|
38
|
+
bonusShares: z.number().nullable(),
|
|
39
|
+
totalNumberOfShares: z.number(),
|
|
38
40
|
});
|
|
39
41
|
export const TradeLineItemParams = z.object({ id: tradeLineItemIdSchema });
|
|
40
42
|
export const PostTradeLineItem = z.object({
|
|
@@ -86,4 +88,13 @@ export const IPaginatedTradeLineItem = z.object({
|
|
|
86
88
|
items: z.array(z.lazy(() => TradeLineItemZod)),
|
|
87
89
|
meta: IPaginationMeta,
|
|
88
90
|
});
|
|
91
|
+
// Calculate existing shares for this asset (excluding current line item if updating)
|
|
92
|
+
export const COUNTED_STATUSES = [
|
|
93
|
+
TradeStatus.PLACED,
|
|
94
|
+
TradeStatus.IN_REVIEW,
|
|
95
|
+
TradeStatus.NEEDS_INFO,
|
|
96
|
+
TradeStatus.NEEDS_PAYMENT_INFO,
|
|
97
|
+
TradeStatus.FUNDING,
|
|
98
|
+
TradeStatus.SETTLED,
|
|
99
|
+
];
|
|
89
100
|
//# sourceMappingURL=trade-line-item.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trade-line-item.types.js","sourceRoot":"","sources":["trade-line-item.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,SAAS,EACT,eAAe,EACf,YAAY,EACZ,eAAe,EACf,qBAAqB,
|
|
1
|
+
{"version":3,"file":"trade-line-item.types.js","sourceRoot":"","sources":["trade-line-item.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;A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AC,QAAQ,EAAE;IACrC,SAAS,EAAE,qBAAqB,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE;IAClD,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE;IACrD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,CAAC;IAC9C,IAAI,EAAE,eAAe;CACtB,CAAC,CAAC;AAIH,qFAAqF;AACrF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,WAAW,CAAC,MAAM;IAClB,WAAW,CAAC,SAAS;IACrB,WAAW,CAAC,UAAU;IACtB,WAAW,CAAC,kBAAkB;IAC9B,WAAW,CAAC,OAAO;IACnB,WAAW,CAAC,OAAO;CACpB,CAAC"}
|
|
@@ -114,6 +114,7 @@ export declare enum TradeSystemLogType {
|
|
|
114
114
|
AIC_NAME_CHECK = "AIC Name Check",
|
|
115
115
|
KYC_DOB_CHECK = "KYC DOB Check",
|
|
116
116
|
AIC_SSN_CHECK = "AIC SSN Check",
|
|
117
|
+
SIGNER_NAME_CHECK = "Signer Name Check",
|
|
117
118
|
SHARES_CHECK = "Shares Check",
|
|
118
119
|
PRICE_PER_UNIT_CHECK = "Price Per Unit Check",
|
|
119
120
|
ISSUER_CHECK = "Issuer Check",
|
|
@@ -239,19 +240,19 @@ declare const saLogItemSchema: z.ZodObject<{
|
|
|
239
240
|
extracted: string;
|
|
240
241
|
corrected?: string | null | undefined;
|
|
241
242
|
} | undefined;
|
|
242
|
-
|
|
243
|
+
totalAmount?: {
|
|
243
244
|
status: MatchResultStatus;
|
|
244
245
|
actual: string;
|
|
245
246
|
extracted: string;
|
|
246
247
|
corrected?: string | null | undefined;
|
|
247
248
|
} | undefined;
|
|
248
|
-
|
|
249
|
+
investorName?: {
|
|
249
250
|
status: MatchResultStatus;
|
|
250
251
|
actual: string;
|
|
251
252
|
extracted: string;
|
|
252
253
|
corrected?: string | null | undefined;
|
|
253
254
|
} | undefined;
|
|
254
|
-
|
|
255
|
+
numberOfShares?: {
|
|
255
256
|
status: MatchResultStatus;
|
|
256
257
|
actual: string;
|
|
257
258
|
extracted: string;
|
|
@@ -265,19 +266,19 @@ declare const saLogItemSchema: z.ZodObject<{
|
|
|
265
266
|
extracted: string;
|
|
266
267
|
corrected?: string | null | undefined;
|
|
267
268
|
} | undefined;
|
|
268
|
-
|
|
269
|
+
totalAmount?: {
|
|
269
270
|
status: MatchResultStatus;
|
|
270
271
|
actual: string;
|
|
271
272
|
extracted: string;
|
|
272
273
|
corrected?: string | null | undefined;
|
|
273
274
|
} | undefined;
|
|
274
|
-
|
|
275
|
+
investorName?: {
|
|
275
276
|
status: MatchResultStatus;
|
|
276
277
|
actual: string;
|
|
277
278
|
extracted: string;
|
|
278
279
|
corrected?: string | null | undefined;
|
|
279
280
|
} | undefined;
|
|
280
|
-
|
|
281
|
+
numberOfShares?: {
|
|
281
282
|
status: MatchResultStatus;
|
|
282
283
|
actual: string;
|
|
283
284
|
extracted: string;
|
|
@@ -361,19 +362,19 @@ export declare const SaLogSchema: z.ZodObject<{
|
|
|
361
362
|
extracted: string;
|
|
362
363
|
corrected?: string | null | undefined;
|
|
363
364
|
} | undefined;
|
|
364
|
-
|
|
365
|
+
totalAmount?: {
|
|
365
366
|
status: MatchResultStatus;
|
|
366
367
|
actual: string;
|
|
367
368
|
extracted: string;
|
|
368
369
|
corrected?: string | null | undefined;
|
|
369
370
|
} | undefined;
|
|
370
|
-
|
|
371
|
+
investorName?: {
|
|
371
372
|
status: MatchResultStatus;
|
|
372
373
|
actual: string;
|
|
373
374
|
extracted: string;
|
|
374
375
|
corrected?: string | null | undefined;
|
|
375
376
|
} | undefined;
|
|
376
|
-
|
|
377
|
+
numberOfShares?: {
|
|
377
378
|
status: MatchResultStatus;
|
|
378
379
|
actual: string;
|
|
379
380
|
extracted: string;
|
|
@@ -387,19 +388,19 @@ export declare const SaLogSchema: z.ZodObject<{
|
|
|
387
388
|
extracted: string;
|
|
388
389
|
corrected?: string | null | undefined;
|
|
389
390
|
} | undefined;
|
|
390
|
-
|
|
391
|
+
totalAmount?: {
|
|
391
392
|
status: MatchResultStatus;
|
|
392
393
|
actual: string;
|
|
393
394
|
extracted: string;
|
|
394
395
|
corrected?: string | null | undefined;
|
|
395
396
|
} | undefined;
|
|
396
|
-
|
|
397
|
+
investorName?: {
|
|
397
398
|
status: MatchResultStatus;
|
|
398
399
|
actual: string;
|
|
399
400
|
extracted: string;
|
|
400
401
|
corrected?: string | null | undefined;
|
|
401
402
|
} | undefined;
|
|
402
|
-
|
|
403
|
+
numberOfShares?: {
|
|
403
404
|
status: MatchResultStatus;
|
|
404
405
|
actual: string;
|
|
405
406
|
extracted: string;
|
|
@@ -416,19 +417,19 @@ export declare const SaLogSchema: z.ZodObject<{
|
|
|
416
417
|
extracted: string;
|
|
417
418
|
corrected?: string | null | undefined;
|
|
418
419
|
} | undefined;
|
|
419
|
-
|
|
420
|
+
totalAmount?: {
|
|
420
421
|
status: MatchResultStatus;
|
|
421
422
|
actual: string;
|
|
422
423
|
extracted: string;
|
|
423
424
|
corrected?: string | null | undefined;
|
|
424
425
|
} | undefined;
|
|
425
|
-
|
|
426
|
+
investorName?: {
|
|
426
427
|
status: MatchResultStatus;
|
|
427
428
|
actual: string;
|
|
428
429
|
extracted: string;
|
|
429
430
|
corrected?: string | null | undefined;
|
|
430
431
|
} | undefined;
|
|
431
|
-
|
|
432
|
+
numberOfShares?: {
|
|
432
433
|
status: MatchResultStatus;
|
|
433
434
|
actual: string;
|
|
434
435
|
extracted: string;
|
|
@@ -445,19 +446,19 @@ export declare const SaLogSchema: z.ZodObject<{
|
|
|
445
446
|
extracted: string;
|
|
446
447
|
corrected?: string | null | undefined;
|
|
447
448
|
} | undefined;
|
|
448
|
-
|
|
449
|
+
totalAmount?: {
|
|
449
450
|
status: MatchResultStatus;
|
|
450
451
|
actual: string;
|
|
451
452
|
extracted: string;
|
|
452
453
|
corrected?: string | null | undefined;
|
|
453
454
|
} | undefined;
|
|
454
|
-
|
|
455
|
+
investorName?: {
|
|
455
456
|
status: MatchResultStatus;
|
|
456
457
|
actual: string;
|
|
457
458
|
extracted: string;
|
|
458
459
|
corrected?: string | null | undefined;
|
|
459
460
|
} | undefined;
|
|
460
|
-
|
|
461
|
+
numberOfShares?: {
|
|
461
462
|
status: MatchResultStatus;
|
|
462
463
|
actual: string;
|
|
463
464
|
extracted: string;
|
|
@@ -541,19 +542,19 @@ export declare const PatchSaLogSchema: z.ZodObject<{
|
|
|
541
542
|
extracted: string;
|
|
542
543
|
corrected?: string | null | undefined;
|
|
543
544
|
} | undefined;
|
|
544
|
-
|
|
545
|
+
totalAmount?: {
|
|
545
546
|
status: MatchResultStatus;
|
|
546
547
|
actual: string;
|
|
547
548
|
extracted: string;
|
|
548
549
|
corrected?: string | null | undefined;
|
|
549
550
|
} | undefined;
|
|
550
|
-
|
|
551
|
+
investorName?: {
|
|
551
552
|
status: MatchResultStatus;
|
|
552
553
|
actual: string;
|
|
553
554
|
extracted: string;
|
|
554
555
|
corrected?: string | null | undefined;
|
|
555
556
|
} | undefined;
|
|
556
|
-
|
|
557
|
+
numberOfShares?: {
|
|
557
558
|
status: MatchResultStatus;
|
|
558
559
|
actual: string;
|
|
559
560
|
extracted: string;
|
|
@@ -567,19 +568,19 @@ export declare const PatchSaLogSchema: z.ZodObject<{
|
|
|
567
568
|
extracted: string;
|
|
568
569
|
corrected?: string | null | undefined;
|
|
569
570
|
} | undefined;
|
|
570
|
-
|
|
571
|
+
totalAmount?: {
|
|
571
572
|
status: MatchResultStatus;
|
|
572
573
|
actual: string;
|
|
573
574
|
extracted: string;
|
|
574
575
|
corrected?: string | null | undefined;
|
|
575
576
|
} | undefined;
|
|
576
|
-
|
|
577
|
+
investorName?: {
|
|
577
578
|
status: MatchResultStatus;
|
|
578
579
|
actual: string;
|
|
579
580
|
extracted: string;
|
|
580
581
|
corrected?: string | null | undefined;
|
|
581
582
|
} | undefined;
|
|
582
|
-
|
|
583
|
+
numberOfShares?: {
|
|
583
584
|
status: MatchResultStatus;
|
|
584
585
|
actual: string;
|
|
585
586
|
extracted: string;
|
|
@@ -595,19 +596,19 @@ export declare const PatchSaLogSchema: z.ZodObject<{
|
|
|
595
596
|
extracted: string;
|
|
596
597
|
corrected?: string | null | undefined;
|
|
597
598
|
} | undefined;
|
|
598
|
-
|
|
599
|
+
totalAmount?: {
|
|
599
600
|
status: MatchResultStatus;
|
|
600
601
|
actual: string;
|
|
601
602
|
extracted: string;
|
|
602
603
|
corrected?: string | null | undefined;
|
|
603
604
|
} | undefined;
|
|
604
|
-
|
|
605
|
+
investorName?: {
|
|
605
606
|
status: MatchResultStatus;
|
|
606
607
|
actual: string;
|
|
607
608
|
extracted: string;
|
|
608
609
|
corrected?: string | null | undefined;
|
|
609
610
|
} | undefined;
|
|
610
|
-
|
|
611
|
+
numberOfShares?: {
|
|
611
612
|
status: MatchResultStatus;
|
|
612
613
|
actual: string;
|
|
613
614
|
extracted: string;
|
|
@@ -623,19 +624,19 @@ export declare const PatchSaLogSchema: z.ZodObject<{
|
|
|
623
624
|
extracted: string;
|
|
624
625
|
corrected?: string | null | undefined;
|
|
625
626
|
} | undefined;
|
|
626
|
-
|
|
627
|
+
totalAmount?: {
|
|
627
628
|
status: MatchResultStatus;
|
|
628
629
|
actual: string;
|
|
629
630
|
extracted: string;
|
|
630
631
|
corrected?: string | null | undefined;
|
|
631
632
|
} | undefined;
|
|
632
|
-
|
|
633
|
+
investorName?: {
|
|
633
634
|
status: MatchResultStatus;
|
|
634
635
|
actual: string;
|
|
635
636
|
extracted: string;
|
|
636
637
|
corrected?: string | null | undefined;
|
|
637
638
|
} | undefined;
|
|
638
|
-
|
|
639
|
+
numberOfShares?: {
|
|
639
640
|
status: MatchResultStatus;
|
|
640
641
|
actual: string;
|
|
641
642
|
extracted: string;
|
|
@@ -893,6 +894,7 @@ export declare const TradeFiltersZod: z.ZodObject<{
|
|
|
893
894
|
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
|
|
894
895
|
platform: z.ZodOptional<z.ZodNativeEnum<typeof Platforms>>;
|
|
895
896
|
investorAccountId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
897
|
+
complianceReviewerId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
896
898
|
}, "strip", z.ZodTypeAny, {
|
|
897
899
|
tradeStatus: string[];
|
|
898
900
|
accountId?: string | undefined;
|
|
@@ -912,6 +914,7 @@ export declare const TradeFiltersZod: z.ZodObject<{
|
|
|
912
914
|
saCheck?: SaCheck | undefined;
|
|
913
915
|
txnPaymentMethod?: PaymentMethodType | undefined;
|
|
914
916
|
txnCheck?: TxnCheck | undefined;
|
|
917
|
+
complianceReviewerId?: string | undefined;
|
|
915
918
|
offeringType?: OfferingType | undefined;
|
|
916
919
|
beenDisbursed?: "true" | "false" | undefined;
|
|
917
920
|
snapshotEvent?: SnapshotEvent | undefined;
|
|
@@ -934,6 +937,7 @@ export declare const TradeFiltersZod: z.ZodObject<{
|
|
|
934
937
|
saCheck?: SaCheck | undefined;
|
|
935
938
|
txnPaymentMethod?: PaymentMethodType | undefined;
|
|
936
939
|
txnCheck?: TxnCheck | undefined;
|
|
940
|
+
complianceReviewerId?: string | undefined;
|
|
937
941
|
offeringType?: OfferingType | undefined;
|
|
938
942
|
beenDisbursed?: "true" | "false" | undefined;
|
|
939
943
|
snapshotEvent?: SnapshotEvent | undefined;
|
|
@@ -1048,6 +1052,7 @@ export declare const ExportTradesQuery: z.ZodObject<{
|
|
|
1048
1052
|
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
|
|
1049
1053
|
platform: z.ZodOptional<z.ZodNativeEnum<typeof Platforms>>;
|
|
1050
1054
|
investorAccountId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
1055
|
+
complianceReviewerId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
1051
1056
|
} & {
|
|
1052
1057
|
kycStatus: z.ZodOptional<z.ZodNativeEnum<typeof KYCStatus>>;
|
|
1053
1058
|
aicStatus: z.ZodOptional<z.ZodNativeEnum<typeof AicStatus>>;
|
|
@@ -1090,6 +1095,7 @@ export declare const ExportTradesQuery: z.ZodObject<{
|
|
|
1090
1095
|
saCheck?: SaCheck | undefined;
|
|
1091
1096
|
txnPaymentMethod?: PaymentMethodType | undefined;
|
|
1092
1097
|
txnCheck?: TxnCheck | undefined;
|
|
1098
|
+
complianceReviewerId?: string | undefined;
|
|
1093
1099
|
offeringType?: OfferingType | undefined;
|
|
1094
1100
|
beenDisbursed?: "true" | "false" | undefined;
|
|
1095
1101
|
snapshotEvent?: SnapshotEvent | undefined;
|
|
@@ -1122,6 +1128,7 @@ export declare const ExportTradesQuery: z.ZodObject<{
|
|
|
1122
1128
|
saCheck?: SaCheck | undefined;
|
|
1123
1129
|
txnPaymentMethod?: PaymentMethodType | undefined;
|
|
1124
1130
|
txnCheck?: TxnCheck | undefined;
|
|
1131
|
+
complianceReviewerId?: string | undefined;
|
|
1125
1132
|
offeringType?: OfferingType | undefined;
|
|
1126
1133
|
beenDisbursed?: "true" | "false" | undefined;
|
|
1127
1134
|
snapshotEvent?: SnapshotEvent | undefined;
|
|
@@ -1221,7 +1228,9 @@ export declare const InvestorsTradeResponse: z.ZodObject<{
|
|
|
1221
1228
|
offeringId: z.ZodNullable<z.ZodString>;
|
|
1222
1229
|
tid: z.ZodNullable<z.ZodString>;
|
|
1223
1230
|
investmentType: z.ZodNativeEnum<typeof InvestmentType>;
|
|
1224
|
-
|
|
1231
|
+
purchasedShares: z.ZodNumber;
|
|
1232
|
+
bonusShares: z.ZodNullable<z.ZodNumber>;
|
|
1233
|
+
totalNumberOfShares: z.ZodNumber;
|
|
1225
1234
|
pricePerShare: z.ZodNumber;
|
|
1226
1235
|
totalAmount: z.ZodNullable<z.ZodNumber>;
|
|
1227
1236
|
tradeStatus: z.ZodNativeEnum<typeof TradeStatus>;
|
|
@@ -1240,7 +1249,9 @@ export declare const InvestorsTradeResponse: z.ZodObject<{
|
|
|
1240
1249
|
investorAccountId: string | null;
|
|
1241
1250
|
paymentMethodId: string | null;
|
|
1242
1251
|
investmentType: InvestmentType;
|
|
1243
|
-
|
|
1252
|
+
purchasedShares: number;
|
|
1253
|
+
bonusShares: number | null;
|
|
1254
|
+
totalNumberOfShares: number;
|
|
1244
1255
|
pricePerShare: number;
|
|
1245
1256
|
totalAmount: number | null;
|
|
1246
1257
|
tradeStatusUnmapped: string | null;
|
|
@@ -1258,7 +1269,9 @@ export declare const InvestorsTradeResponse: z.ZodObject<{
|
|
|
1258
1269
|
investorAccountId: string | null;
|
|
1259
1270
|
paymentMethodId: string | null;
|
|
1260
1271
|
investmentType: InvestmentType;
|
|
1261
|
-
|
|
1272
|
+
purchasedShares: number;
|
|
1273
|
+
bonusShares: number | null;
|
|
1274
|
+
totalNumberOfShares: number;
|
|
1262
1275
|
pricePerShare: number;
|
|
1263
1276
|
totalAmount: number | null;
|
|
1264
1277
|
tradeStatusUnmapped: string | null;
|
|
@@ -1278,7 +1291,9 @@ export declare const InvestorsPaginatedTrade: z.ZodObject<{
|
|
|
1278
1291
|
offeringId: z.ZodNullable<z.ZodString>;
|
|
1279
1292
|
tid: z.ZodNullable<z.ZodString>;
|
|
1280
1293
|
investmentType: z.ZodNativeEnum<typeof InvestmentType>;
|
|
1281
|
-
|
|
1294
|
+
purchasedShares: z.ZodNumber;
|
|
1295
|
+
bonusShares: z.ZodNullable<z.ZodNumber>;
|
|
1296
|
+
totalNumberOfShares: z.ZodNumber;
|
|
1282
1297
|
pricePerShare: z.ZodNumber;
|
|
1283
1298
|
totalAmount: z.ZodNullable<z.ZodNumber>;
|
|
1284
1299
|
tradeStatus: z.ZodNativeEnum<typeof TradeStatus>;
|
|
@@ -1297,7 +1312,9 @@ export declare const InvestorsPaginatedTrade: z.ZodObject<{
|
|
|
1297
1312
|
investorAccountId: string | null;
|
|
1298
1313
|
paymentMethodId: string | null;
|
|
1299
1314
|
investmentType: InvestmentType;
|
|
1300
|
-
|
|
1315
|
+
purchasedShares: number;
|
|
1316
|
+
bonusShares: number | null;
|
|
1317
|
+
totalNumberOfShares: number;
|
|
1301
1318
|
pricePerShare: number;
|
|
1302
1319
|
totalAmount: number | null;
|
|
1303
1320
|
tradeStatusUnmapped: string | null;
|
|
@@ -1315,7 +1332,9 @@ export declare const InvestorsPaginatedTrade: z.ZodObject<{
|
|
|
1315
1332
|
investorAccountId: string | null;
|
|
1316
1333
|
paymentMethodId: string | null;
|
|
1317
1334
|
investmentType: InvestmentType;
|
|
1318
|
-
|
|
1335
|
+
purchasedShares: number;
|
|
1336
|
+
bonusShares: number | null;
|
|
1337
|
+
totalNumberOfShares: number;
|
|
1319
1338
|
pricePerShare: number;
|
|
1320
1339
|
totalAmount: number | null;
|
|
1321
1340
|
tradeStatusUnmapped: string | null;
|
|
@@ -1354,7 +1373,9 @@ export declare const InvestorsPaginatedTrade: z.ZodObject<{
|
|
|
1354
1373
|
investorAccountId: string | null;
|
|
1355
1374
|
paymentMethodId: string | null;
|
|
1356
1375
|
investmentType: InvestmentType;
|
|
1357
|
-
|
|
1376
|
+
purchasedShares: number;
|
|
1377
|
+
bonusShares: number | null;
|
|
1378
|
+
totalNumberOfShares: number;
|
|
1358
1379
|
pricePerShare: number;
|
|
1359
1380
|
totalAmount: number | null;
|
|
1360
1381
|
tradeStatusUnmapped: string | null;
|
|
@@ -1381,7 +1402,9 @@ export declare const InvestorsPaginatedTrade: z.ZodObject<{
|
|
|
1381
1402
|
investorAccountId: string | null;
|
|
1382
1403
|
paymentMethodId: string | null;
|
|
1383
1404
|
investmentType: InvestmentType;
|
|
1384
|
-
|
|
1405
|
+
purchasedShares: number;
|
|
1406
|
+
bonusShares: number | null;
|
|
1407
|
+
totalNumberOfShares: number;
|
|
1385
1408
|
pricePerShare: number;
|
|
1386
1409
|
totalAmount: number | null;
|
|
1387
1410
|
tradeStatusUnmapped: string | null;
|
|
@@ -1481,6 +1504,7 @@ export declare const GetTradeFiltersSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1481
1504
|
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
|
|
1482
1505
|
platform: z.ZodOptional<z.ZodNativeEnum<typeof Platforms>>;
|
|
1483
1506
|
investorAccountId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
1507
|
+
complianceReviewerId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
1484
1508
|
}, "strip", z.ZodTypeAny, {
|
|
1485
1509
|
tradeStatus: string[];
|
|
1486
1510
|
accountId?: string | undefined;
|
|
@@ -1500,6 +1524,7 @@ export declare const GetTradeFiltersSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1500
1524
|
saCheck?: SaCheck | undefined;
|
|
1501
1525
|
txnPaymentMethod?: PaymentMethodType | undefined;
|
|
1502
1526
|
txnCheck?: TxnCheck | undefined;
|
|
1527
|
+
complianceReviewerId?: string | undefined;
|
|
1503
1528
|
offeringType?: OfferingType | undefined;
|
|
1504
1529
|
beenDisbursed?: "true" | "false" | undefined;
|
|
1505
1530
|
snapshotEvent?: SnapshotEvent | undefined;
|
|
@@ -1522,6 +1547,7 @@ export declare const GetTradeFiltersSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1522
1547
|
saCheck?: SaCheck | undefined;
|
|
1523
1548
|
txnPaymentMethod?: PaymentMethodType | undefined;
|
|
1524
1549
|
txnCheck?: TxnCheck | undefined;
|
|
1550
|
+
complianceReviewerId?: string | undefined;
|
|
1525
1551
|
offeringType?: OfferingType | undefined;
|
|
1526
1552
|
beenDisbursed?: "true" | "false" | undefined;
|
|
1527
1553
|
snapshotEvent?: SnapshotEvent | undefined;
|
|
@@ -1778,7 +1804,7 @@ export declare const TradeForCsvExportZod: z.ZodObject<{
|
|
|
1778
1804
|
signerName: z.ZodString;
|
|
1779
1805
|
offeringName: z.ZodString;
|
|
1780
1806
|
tradeType: z.ZodString;
|
|
1781
|
-
|
|
1807
|
+
totalNumberOfShares: z.ZodNumber;
|
|
1782
1808
|
pricePerShare: z.ZodString;
|
|
1783
1809
|
totalAmount: z.ZodString;
|
|
1784
1810
|
tradeStatus: z.ZodString;
|
|
@@ -1841,7 +1867,7 @@ export declare const TradeForCsvExportZod: z.ZodObject<{
|
|
|
1841
1867
|
placedAt: string;
|
|
1842
1868
|
signerName: string;
|
|
1843
1869
|
tradeNumber: string;
|
|
1844
|
-
|
|
1870
|
+
totalNumberOfShares: number;
|
|
1845
1871
|
pricePerShare: string;
|
|
1846
1872
|
totalAmount: string;
|
|
1847
1873
|
investorName: string;
|
|
@@ -1898,7 +1924,7 @@ export declare const TradeForCsvExportZod: z.ZodObject<{
|
|
|
1898
1924
|
placedAt: string;
|
|
1899
1925
|
signerName: string;
|
|
1900
1926
|
tradeNumber: string;
|
|
1901
|
-
|
|
1927
|
+
totalNumberOfShares: number;
|
|
1902
1928
|
pricePerShare: string;
|
|
1903
1929
|
totalAmount: string;
|
|
1904
1930
|
investorName: string;
|
|
@@ -1947,6 +1973,8 @@ export declare const TradeForCsvExportZod: z.ZodObject<{
|
|
|
1947
1973
|
export type TradeForCsvExport = z.infer<typeof TradeForCsvExportZod>;
|
|
1948
1974
|
export declare const CANCELLABLE_TRADE_STATUSES: TradeStatus[];
|
|
1949
1975
|
export declare const NON_CANCELABLE_COMPLIANCE_REVIEW_STATUSES: ComplianceReview[];
|
|
1976
|
+
/** Maximum days after placement that a REG_CF trade can be cancelled (regulatory/business rule). */
|
|
1977
|
+
export declare const REG_CF_CANCELLATION_WINDOW_DAYS = 5;
|
|
1950
1978
|
/**
|
|
1951
1979
|
* Filter type for Investor Account exports in workers
|
|
1952
1980
|
* Extends the base InvestorAccountExportFilters with additional optional fields needed for bulk exports
|
|
@@ -138,6 +138,7 @@ export var TradeSystemLogType;
|
|
|
138
138
|
TradeSystemLogType["AIC_NAME_CHECK"] = "AIC Name Check";
|
|
139
139
|
TradeSystemLogType["KYC_DOB_CHECK"] = "KYC DOB Check";
|
|
140
140
|
TradeSystemLogType["AIC_SSN_CHECK"] = "AIC SSN Check";
|
|
141
|
+
TradeSystemLogType["SIGNER_NAME_CHECK"] = "Signer Name Check";
|
|
141
142
|
// Data Integrity Checks For Imported Trades
|
|
142
143
|
TradeSystemLogType["SHARES_CHECK"] = "Shares Check";
|
|
143
144
|
TradeSystemLogType["PRICE_PER_UNIT_CHECK"] = "Price Per Unit Check";
|
|
@@ -227,7 +228,9 @@ export const TradeZod = IBaseEntity.extend({
|
|
|
227
228
|
ip: z.string().nullable(),
|
|
228
229
|
tid: z.string().nullable(),
|
|
229
230
|
investmentType: z.nativeEnum(InvestmentType),
|
|
230
|
-
|
|
231
|
+
purchasedShares: z.number().int(),
|
|
232
|
+
bonusShares: z.number().int().nullable(),
|
|
233
|
+
totalNumberOfShares: z.number().int(),
|
|
231
234
|
pricePerShare: z.number().multipleOf(0.01),
|
|
232
235
|
lineItems: z.array(z.lazy(() => TradeLineItemZod)),
|
|
233
236
|
adjustments: z.array(z.lazy(() => TradeAdjustmentZod)),
|
|
@@ -367,6 +370,7 @@ export const TradeFiltersZod = z.object({
|
|
|
367
370
|
managedBy: z.nativeEnum(ManagedByType).optional(),
|
|
368
371
|
platform: z.nativeEnum(Platforms).optional(),
|
|
369
372
|
investorAccountId: z.lazy(() => investorAccountIdSchema).optional(),
|
|
373
|
+
complianceReviewerId: z.lazy(() => userIdSchema).optional(),
|
|
370
374
|
});
|
|
371
375
|
export const ComplianceTradesFiltersZod = z.object({
|
|
372
376
|
kycStatus: z.nativeEnum(KYCStatus).optional(),
|
|
@@ -471,7 +475,9 @@ const tradesColumn = z.enum([
|
|
|
471
475
|
'tid',
|
|
472
476
|
'platform',
|
|
473
477
|
'investmentType',
|
|
474
|
-
'
|
|
478
|
+
'purchasedShares',
|
|
479
|
+
'bonusShares',
|
|
480
|
+
'totalNumberOfShares',
|
|
475
481
|
'pricePerShare',
|
|
476
482
|
'lineItems',
|
|
477
483
|
'transactions',
|
|
@@ -581,7 +587,9 @@ export const InvestorsTradeResponse = IBaseEntity.extend({
|
|
|
581
587
|
offeringId: z.string().nullable(),
|
|
582
588
|
tid: z.string().nullable(),
|
|
583
589
|
investmentType: z.nativeEnum(InvestmentType),
|
|
584
|
-
|
|
590
|
+
purchasedShares: z.number().int(),
|
|
591
|
+
bonusShares: z.number().int().nullable(),
|
|
592
|
+
totalNumberOfShares: z.number().int(),
|
|
585
593
|
pricePerShare: z.number().multipleOf(0.01),
|
|
586
594
|
totalAmount: z.number().multipleOf(0.01).nullable(),
|
|
587
595
|
tradeStatus: z.nativeEnum(TradeStatus),
|
|
@@ -711,7 +719,7 @@ export const TradeForCsvExportZod = z.object({
|
|
|
711
719
|
signerName: z.string(),
|
|
712
720
|
offeringName: z.string(),
|
|
713
721
|
tradeType: z.string(),
|
|
714
|
-
|
|
722
|
+
totalNumberOfShares: z.number(),
|
|
715
723
|
pricePerShare: z.string(), // Formatted with $ prefix
|
|
716
724
|
totalAmount: z.string(), // Formatted with $ prefix
|
|
717
725
|
tradeStatus: z.string(),
|
|
@@ -767,6 +775,7 @@ export const TradeForCsvExportZod = z.object({
|
|
|
767
775
|
secondaryPhone: z.string(),
|
|
768
776
|
});
|
|
769
777
|
export const CANCELLABLE_TRADE_STATUSES = [
|
|
778
|
+
TradeStatus.ERROR,
|
|
770
779
|
TradeStatus.PLACED,
|
|
771
780
|
TradeStatus.IN_REVIEW,
|
|
772
781
|
TradeStatus.NEEDS_INFO,
|
|
@@ -777,4 +786,6 @@ export const NON_CANCELABLE_COMPLIANCE_REVIEW_STATUSES = [
|
|
|
777
786
|
ComplianceReview.REJECTED,
|
|
778
787
|
ComplianceReview.CANCELLED,
|
|
779
788
|
];
|
|
789
|
+
/** Maximum days after placement that a REG_CF trade can be cancelled (regulatory/business rule). */
|
|
790
|
+
export const REG_CF_CANCELLATION_WINDOW_DAYS = 5;
|
|
780
791
|
//# sourceMappingURL=trade.types.js.map
|