@dalmore/api-contracts 0.0.0-dev.685c0b3 → 0.0.0-dev.6d952b2
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 +27 -0
- package/common/helpers/index.js +43 -0
- package/common/helpers/index.js.map +1 -1
- package/common/types/account-setting.types.d.ts +46 -26
- package/common/types/account-setting.types.js +2 -23
- package/common/types/account-setting.types.js.map +1 -1
- package/common/types/account.types.d.ts +63 -18
- package/common/types/account.types.js +7 -3
- package/common/types/account.types.js.map +1 -1
- package/common/types/activity.types.d.ts +36 -25
- package/common/types/activity.types.js +14 -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/attribution.types.d.ts +582 -0
- package/common/types/attribution.types.js +126 -0
- package/common/types/attribution.types.js.map +1 -0
- package/common/types/auth.types.d.ts +37 -1
- package/common/types/auth.types.js +4 -3
- package/common/types/auth.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 +256 -61
- package/common/types/cap-table.types.js +52 -0
- package/common/types/cap-table.types.js.map +1 -1
- package/common/types/cart.types.d.ts +3 -0
- package/common/types/cart.types.js +1 -0
- package/common/types/cart.types.js.map +1 -1
- package/common/types/common.types.d.ts +375 -9
- package/common/types/common.types.js +85 -4
- package/common/types/common.types.js.map +1 -1
- package/common/types/comply-advantage-api.types.d.ts +145 -478
- package/common/types/comply-advantage-api.types.js +24 -3
- 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 +1642 -412
- package/common/types/disbursements.types.js +142 -3
- 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 +5 -2
- package/common/types/index.js +5 -2
- package/common/types/index.js.map +1 -1
- package/common/types/individuals.types.d.ts +395 -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 +5 -5
- package/common/types/investor-account.types.js +3 -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 +85 -4
- package/common/types/mail-template.types.js +130 -0
- package/common/types/mail-template.types.js.map +1 -1
- 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 +555 -31
- 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 +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/state-machine.types.d.ts +3 -3
- package/common/types/state-machine.types.js +1 -1
- package/common/types/state-machine.types.js.map +1 -1
- 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 +42 -1
- package/common/types/trade-line-item.types.js +15 -1
- package/common/types/trade-line-item.types.js.map +1 -1
- package/common/types/trade.types.d.ts +84 -59
- package/common/types/trade.types.js +31 -11
- 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 -77
- package/common/types/user.types.js +10 -22
- 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/cart/index.d.ts +3 -0
- package/contracts/clients/csv/index.d.ts +1988 -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 +4265 -1060
- package/contracts/clients/index.js +8 -2
- package/contracts/clients/index.js.map +1 -1
- package/contracts/clients/individuals/index.d.ts +381 -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/trades/index.d.ts +9 -3
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { InvestmentType, FundingStatus, TxnCheck, ComplianceReview, OfferingType, ManagedByType, SignatureStatus, TradeStatus, SortOrder, SortBy, AicStatus, AMLStatus, KYCStatus, AccountStatus, SavedQuery } from './common.types';
|
|
2
|
+
import { InvestmentType, FundingStatus, TxnCheck, ComplianceReview, OfferingType, ManagedByType, SignatureStatus, TradeStatus, SortOrder, SortBy, AicStatus, AMLStatus, KYCStatus, AccountStatus, SavedQuery, Platform } from './common.types';
|
|
3
3
|
import { PaymentMethodType } from './payment-methods.types';
|
|
4
4
|
import { InvestorAccountExportFilters, ComplianceInvestorAccountExportFilters, RegisteredInvestorUserRawZod, IInvestorAccount } from './investor-account.types';
|
|
5
5
|
import { GetSecondaryCustomerFiltersZod, SecondaryCustomer } from './secondary-customer.types';
|
|
@@ -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",
|
|
@@ -136,10 +137,6 @@ export declare enum SystemReviewCheck {
|
|
|
136
137
|
WARNING = "WARNING",
|
|
137
138
|
INCOMPLETE = "INCOMPLETE"
|
|
138
139
|
}
|
|
139
|
-
export declare enum Platforms {
|
|
140
|
-
DALMORE = "DALMORE",
|
|
141
|
-
IMPORT = "IMPORT"
|
|
142
|
-
}
|
|
143
140
|
export declare enum MatchResultStatus {
|
|
144
141
|
MATCHED = "MATCHED",
|
|
145
142
|
UNMATCHED = "UNMATCHED"
|
|
@@ -239,19 +236,19 @@ declare const saLogItemSchema: z.ZodObject<{
|
|
|
239
236
|
extracted: string;
|
|
240
237
|
corrected?: string | null | undefined;
|
|
241
238
|
} | undefined;
|
|
242
|
-
|
|
239
|
+
totalAmount?: {
|
|
243
240
|
status: MatchResultStatus;
|
|
244
241
|
actual: string;
|
|
245
242
|
extracted: string;
|
|
246
243
|
corrected?: string | null | undefined;
|
|
247
244
|
} | undefined;
|
|
248
|
-
|
|
245
|
+
investorName?: {
|
|
249
246
|
status: MatchResultStatus;
|
|
250
247
|
actual: string;
|
|
251
248
|
extracted: string;
|
|
252
249
|
corrected?: string | null | undefined;
|
|
253
250
|
} | undefined;
|
|
254
|
-
|
|
251
|
+
numberOfShares?: {
|
|
255
252
|
status: MatchResultStatus;
|
|
256
253
|
actual: string;
|
|
257
254
|
extracted: string;
|
|
@@ -265,19 +262,19 @@ declare const saLogItemSchema: z.ZodObject<{
|
|
|
265
262
|
extracted: string;
|
|
266
263
|
corrected?: string | null | undefined;
|
|
267
264
|
} | undefined;
|
|
268
|
-
|
|
265
|
+
totalAmount?: {
|
|
269
266
|
status: MatchResultStatus;
|
|
270
267
|
actual: string;
|
|
271
268
|
extracted: string;
|
|
272
269
|
corrected?: string | null | undefined;
|
|
273
270
|
} | undefined;
|
|
274
|
-
|
|
271
|
+
investorName?: {
|
|
275
272
|
status: MatchResultStatus;
|
|
276
273
|
actual: string;
|
|
277
274
|
extracted: string;
|
|
278
275
|
corrected?: string | null | undefined;
|
|
279
276
|
} | undefined;
|
|
280
|
-
|
|
277
|
+
numberOfShares?: {
|
|
281
278
|
status: MatchResultStatus;
|
|
282
279
|
actual: string;
|
|
283
280
|
extracted: string;
|
|
@@ -361,19 +358,19 @@ export declare const SaLogSchema: z.ZodObject<{
|
|
|
361
358
|
extracted: string;
|
|
362
359
|
corrected?: string | null | undefined;
|
|
363
360
|
} | undefined;
|
|
364
|
-
|
|
361
|
+
totalAmount?: {
|
|
365
362
|
status: MatchResultStatus;
|
|
366
363
|
actual: string;
|
|
367
364
|
extracted: string;
|
|
368
365
|
corrected?: string | null | undefined;
|
|
369
366
|
} | undefined;
|
|
370
|
-
|
|
367
|
+
investorName?: {
|
|
371
368
|
status: MatchResultStatus;
|
|
372
369
|
actual: string;
|
|
373
370
|
extracted: string;
|
|
374
371
|
corrected?: string | null | undefined;
|
|
375
372
|
} | undefined;
|
|
376
|
-
|
|
373
|
+
numberOfShares?: {
|
|
377
374
|
status: MatchResultStatus;
|
|
378
375
|
actual: string;
|
|
379
376
|
extracted: string;
|
|
@@ -387,19 +384,19 @@ export declare const SaLogSchema: z.ZodObject<{
|
|
|
387
384
|
extracted: string;
|
|
388
385
|
corrected?: string | null | undefined;
|
|
389
386
|
} | undefined;
|
|
390
|
-
|
|
387
|
+
totalAmount?: {
|
|
391
388
|
status: MatchResultStatus;
|
|
392
389
|
actual: string;
|
|
393
390
|
extracted: string;
|
|
394
391
|
corrected?: string | null | undefined;
|
|
395
392
|
} | undefined;
|
|
396
|
-
|
|
393
|
+
investorName?: {
|
|
397
394
|
status: MatchResultStatus;
|
|
398
395
|
actual: string;
|
|
399
396
|
extracted: string;
|
|
400
397
|
corrected?: string | null | undefined;
|
|
401
398
|
} | undefined;
|
|
402
|
-
|
|
399
|
+
numberOfShares?: {
|
|
403
400
|
status: MatchResultStatus;
|
|
404
401
|
actual: string;
|
|
405
402
|
extracted: string;
|
|
@@ -416,19 +413,19 @@ export declare const SaLogSchema: z.ZodObject<{
|
|
|
416
413
|
extracted: string;
|
|
417
414
|
corrected?: string | null | undefined;
|
|
418
415
|
} | undefined;
|
|
419
|
-
|
|
416
|
+
totalAmount?: {
|
|
420
417
|
status: MatchResultStatus;
|
|
421
418
|
actual: string;
|
|
422
419
|
extracted: string;
|
|
423
420
|
corrected?: string | null | undefined;
|
|
424
421
|
} | undefined;
|
|
425
|
-
|
|
422
|
+
investorName?: {
|
|
426
423
|
status: MatchResultStatus;
|
|
427
424
|
actual: string;
|
|
428
425
|
extracted: string;
|
|
429
426
|
corrected?: string | null | undefined;
|
|
430
427
|
} | undefined;
|
|
431
|
-
|
|
428
|
+
numberOfShares?: {
|
|
432
429
|
status: MatchResultStatus;
|
|
433
430
|
actual: string;
|
|
434
431
|
extracted: string;
|
|
@@ -445,19 +442,19 @@ export declare const SaLogSchema: z.ZodObject<{
|
|
|
445
442
|
extracted: string;
|
|
446
443
|
corrected?: string | null | undefined;
|
|
447
444
|
} | undefined;
|
|
448
|
-
|
|
445
|
+
totalAmount?: {
|
|
449
446
|
status: MatchResultStatus;
|
|
450
447
|
actual: string;
|
|
451
448
|
extracted: string;
|
|
452
449
|
corrected?: string | null | undefined;
|
|
453
450
|
} | undefined;
|
|
454
|
-
|
|
451
|
+
investorName?: {
|
|
455
452
|
status: MatchResultStatus;
|
|
456
453
|
actual: string;
|
|
457
454
|
extracted: string;
|
|
458
455
|
corrected?: string | null | undefined;
|
|
459
456
|
} | undefined;
|
|
460
|
-
|
|
457
|
+
numberOfShares?: {
|
|
461
458
|
status: MatchResultStatus;
|
|
462
459
|
actual: string;
|
|
463
460
|
extracted: string;
|
|
@@ -541,19 +538,19 @@ export declare const PatchSaLogSchema: z.ZodObject<{
|
|
|
541
538
|
extracted: string;
|
|
542
539
|
corrected?: string | null | undefined;
|
|
543
540
|
} | undefined;
|
|
544
|
-
|
|
541
|
+
totalAmount?: {
|
|
545
542
|
status: MatchResultStatus;
|
|
546
543
|
actual: string;
|
|
547
544
|
extracted: string;
|
|
548
545
|
corrected?: string | null | undefined;
|
|
549
546
|
} | undefined;
|
|
550
|
-
|
|
547
|
+
investorName?: {
|
|
551
548
|
status: MatchResultStatus;
|
|
552
549
|
actual: string;
|
|
553
550
|
extracted: string;
|
|
554
551
|
corrected?: string | null | undefined;
|
|
555
552
|
} | undefined;
|
|
556
|
-
|
|
553
|
+
numberOfShares?: {
|
|
557
554
|
status: MatchResultStatus;
|
|
558
555
|
actual: string;
|
|
559
556
|
extracted: string;
|
|
@@ -567,19 +564,19 @@ export declare const PatchSaLogSchema: z.ZodObject<{
|
|
|
567
564
|
extracted: string;
|
|
568
565
|
corrected?: string | null | undefined;
|
|
569
566
|
} | undefined;
|
|
570
|
-
|
|
567
|
+
totalAmount?: {
|
|
571
568
|
status: MatchResultStatus;
|
|
572
569
|
actual: string;
|
|
573
570
|
extracted: string;
|
|
574
571
|
corrected?: string | null | undefined;
|
|
575
572
|
} | undefined;
|
|
576
|
-
|
|
573
|
+
investorName?: {
|
|
577
574
|
status: MatchResultStatus;
|
|
578
575
|
actual: string;
|
|
579
576
|
extracted: string;
|
|
580
577
|
corrected?: string | null | undefined;
|
|
581
578
|
} | undefined;
|
|
582
|
-
|
|
579
|
+
numberOfShares?: {
|
|
583
580
|
status: MatchResultStatus;
|
|
584
581
|
actual: string;
|
|
585
582
|
extracted: string;
|
|
@@ -595,19 +592,19 @@ export declare const PatchSaLogSchema: z.ZodObject<{
|
|
|
595
592
|
extracted: string;
|
|
596
593
|
corrected?: string | null | undefined;
|
|
597
594
|
} | undefined;
|
|
598
|
-
|
|
595
|
+
totalAmount?: {
|
|
599
596
|
status: MatchResultStatus;
|
|
600
597
|
actual: string;
|
|
601
598
|
extracted: string;
|
|
602
599
|
corrected?: string | null | undefined;
|
|
603
600
|
} | undefined;
|
|
604
|
-
|
|
601
|
+
investorName?: {
|
|
605
602
|
status: MatchResultStatus;
|
|
606
603
|
actual: string;
|
|
607
604
|
extracted: string;
|
|
608
605
|
corrected?: string | null | undefined;
|
|
609
606
|
} | undefined;
|
|
610
|
-
|
|
607
|
+
numberOfShares?: {
|
|
611
608
|
status: MatchResultStatus;
|
|
612
609
|
actual: string;
|
|
613
610
|
extracted: string;
|
|
@@ -623,19 +620,19 @@ export declare const PatchSaLogSchema: z.ZodObject<{
|
|
|
623
620
|
extracted: string;
|
|
624
621
|
corrected?: string | null | undefined;
|
|
625
622
|
} | undefined;
|
|
626
|
-
|
|
623
|
+
totalAmount?: {
|
|
627
624
|
status: MatchResultStatus;
|
|
628
625
|
actual: string;
|
|
629
626
|
extracted: string;
|
|
630
627
|
corrected?: string | null | undefined;
|
|
631
628
|
} | undefined;
|
|
632
|
-
|
|
629
|
+
investorName?: {
|
|
633
630
|
status: MatchResultStatus;
|
|
634
631
|
actual: string;
|
|
635
632
|
extracted: string;
|
|
636
633
|
corrected?: string | null | undefined;
|
|
637
634
|
} | undefined;
|
|
638
|
-
|
|
635
|
+
numberOfShares?: {
|
|
639
636
|
status: MatchResultStatus;
|
|
640
637
|
actual: string;
|
|
641
638
|
extracted: string;
|
|
@@ -891,13 +888,14 @@ export declare const TradeFiltersZod: z.ZodObject<{
|
|
|
891
888
|
snapshotEvent: z.ZodOptional<z.ZodNativeEnum<typeof SnapshotEvent>>;
|
|
892
889
|
offeringType: z.ZodOptional<z.ZodNativeEnum<typeof OfferingType>>;
|
|
893
890
|
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
|
|
894
|
-
platform: z.ZodOptional<z.ZodNativeEnum<typeof
|
|
891
|
+
platform: z.ZodOptional<z.ZodNativeEnum<typeof Platform>>;
|
|
895
892
|
investorAccountId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
893
|
+
complianceReviewerId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
896
894
|
}, "strip", z.ZodTypeAny, {
|
|
897
895
|
tradeStatus: string[];
|
|
898
896
|
accountId?: string | undefined;
|
|
899
897
|
managedBy?: ManagedByType | undefined;
|
|
900
|
-
platform?:
|
|
898
|
+
platform?: Platform | undefined;
|
|
901
899
|
fundingStatus?: FundingStatus | undefined;
|
|
902
900
|
complianceReview?: ComplianceReview | undefined;
|
|
903
901
|
systemReviewCheck?: SystemReviewCheck | undefined;
|
|
@@ -912,13 +910,14 @@ export declare const TradeFiltersZod: z.ZodObject<{
|
|
|
912
910
|
saCheck?: SaCheck | undefined;
|
|
913
911
|
txnPaymentMethod?: PaymentMethodType | undefined;
|
|
914
912
|
txnCheck?: TxnCheck | undefined;
|
|
913
|
+
complianceReviewerId?: string | undefined;
|
|
915
914
|
offeringType?: OfferingType | undefined;
|
|
916
915
|
beenDisbursed?: "true" | "false" | undefined;
|
|
917
916
|
snapshotEvent?: SnapshotEvent | undefined;
|
|
918
917
|
}, {
|
|
919
918
|
accountId?: string | undefined;
|
|
920
919
|
managedBy?: ManagedByType | undefined;
|
|
921
|
-
platform?:
|
|
920
|
+
platform?: Platform | undefined;
|
|
922
921
|
tradeStatus?: string | undefined;
|
|
923
922
|
fundingStatus?: FundingStatus | undefined;
|
|
924
923
|
complianceReview?: ComplianceReview | undefined;
|
|
@@ -934,6 +933,7 @@ export declare const TradeFiltersZod: z.ZodObject<{
|
|
|
934
933
|
saCheck?: SaCheck | undefined;
|
|
935
934
|
txnPaymentMethod?: PaymentMethodType | undefined;
|
|
936
935
|
txnCheck?: TxnCheck | undefined;
|
|
936
|
+
complianceReviewerId?: string | undefined;
|
|
937
937
|
offeringType?: OfferingType | undefined;
|
|
938
938
|
beenDisbursed?: "true" | "false" | undefined;
|
|
939
939
|
snapshotEvent?: SnapshotEvent | undefined;
|
|
@@ -945,16 +945,16 @@ export declare const ComplianceTradesFiltersZod: z.ZodObject<{
|
|
|
945
945
|
accountStatus: z.ZodOptional<z.ZodNativeEnum<typeof AccountStatus>>;
|
|
946
946
|
savedQuery: z.ZodOptional<z.ZodNativeEnum<typeof SavedQuery>>;
|
|
947
947
|
}, "strip", z.ZodTypeAny, {
|
|
948
|
+
accountStatus?: AccountStatus | undefined;
|
|
948
949
|
kycStatus?: KYCStatus | undefined;
|
|
949
950
|
amlStatus?: AMLStatus | undefined;
|
|
950
951
|
aicStatus?: AicStatus | undefined;
|
|
951
|
-
accountStatus?: AccountStatus | undefined;
|
|
952
952
|
savedQuery?: SavedQuery | undefined;
|
|
953
953
|
}, {
|
|
954
|
+
accountStatus?: AccountStatus | undefined;
|
|
954
955
|
kycStatus?: KYCStatus | undefined;
|
|
955
956
|
amlStatus?: AMLStatus | undefined;
|
|
956
957
|
aicStatus?: AicStatus | undefined;
|
|
957
|
-
accountStatus?: AccountStatus | undefined;
|
|
958
958
|
savedQuery?: SavedQuery | undefined;
|
|
959
959
|
}>;
|
|
960
960
|
export type ComplianceTradesFiltersZod = z.infer<typeof ComplianceTradesFiltersZod>;
|
|
@@ -1046,8 +1046,9 @@ export declare const ExportTradesQuery: z.ZodObject<{
|
|
|
1046
1046
|
snapshotEvent: z.ZodOptional<z.ZodNativeEnum<typeof SnapshotEvent>>;
|
|
1047
1047
|
offeringType: z.ZodOptional<z.ZodNativeEnum<typeof OfferingType>>;
|
|
1048
1048
|
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
|
|
1049
|
-
platform: z.ZodOptional<z.ZodNativeEnum<typeof
|
|
1049
|
+
platform: z.ZodOptional<z.ZodNativeEnum<typeof Platform>>;
|
|
1050
1050
|
investorAccountId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
1051
|
+
complianceReviewerId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
1051
1052
|
} & {
|
|
1052
1053
|
kycStatus: z.ZodOptional<z.ZodNativeEnum<typeof KYCStatus>>;
|
|
1053
1054
|
aicStatus: z.ZodOptional<z.ZodNativeEnum<typeof AicStatus>>;
|
|
@@ -1070,7 +1071,8 @@ export declare const ExportTradesQuery: z.ZodObject<{
|
|
|
1070
1071
|
sort?: SortBy.CREATED_AT | SortBy.UPDATED_AT | SortBy.PLACEDAT | undefined;
|
|
1071
1072
|
accountId?: string | undefined;
|
|
1072
1073
|
managedBy?: ManagedByType | undefined;
|
|
1073
|
-
platform?:
|
|
1074
|
+
platform?: Platform | undefined;
|
|
1075
|
+
accountStatus?: AccountStatus | undefined;
|
|
1074
1076
|
fundingStatus?: FundingStatus | undefined;
|
|
1075
1077
|
complianceReview?: ComplianceReview | undefined;
|
|
1076
1078
|
systemReviewCheck?: SystemReviewCheck | undefined;
|
|
@@ -1089,16 +1091,17 @@ export declare const ExportTradesQuery: z.ZodObject<{
|
|
|
1089
1091
|
saCheck?: SaCheck | undefined;
|
|
1090
1092
|
txnPaymentMethod?: PaymentMethodType | undefined;
|
|
1091
1093
|
txnCheck?: TxnCheck | undefined;
|
|
1094
|
+
complianceReviewerId?: string | undefined;
|
|
1092
1095
|
offeringType?: OfferingType | undefined;
|
|
1093
1096
|
beenDisbursed?: "true" | "false" | undefined;
|
|
1094
1097
|
snapshotEvent?: SnapshotEvent | undefined;
|
|
1095
|
-
accountStatus?: AccountStatus | undefined;
|
|
1096
1098
|
savedQuery?: SavedQuery | undefined;
|
|
1097
1099
|
}, {
|
|
1098
1100
|
sort?: SortBy.CREATED_AT | SortBy.UPDATED_AT | SortBy.PLACEDAT | undefined;
|
|
1099
1101
|
accountId?: string | undefined;
|
|
1100
1102
|
managedBy?: ManagedByType | undefined;
|
|
1101
|
-
platform?:
|
|
1103
|
+
platform?: Platform | undefined;
|
|
1104
|
+
accountStatus?: AccountStatus | undefined;
|
|
1102
1105
|
page?: number | undefined;
|
|
1103
1106
|
limit?: number | undefined;
|
|
1104
1107
|
tradeStatus?: string | undefined;
|
|
@@ -1121,10 +1124,10 @@ export declare const ExportTradesQuery: z.ZodObject<{
|
|
|
1121
1124
|
saCheck?: SaCheck | undefined;
|
|
1122
1125
|
txnPaymentMethod?: PaymentMethodType | undefined;
|
|
1123
1126
|
txnCheck?: TxnCheck | undefined;
|
|
1127
|
+
complianceReviewerId?: string | undefined;
|
|
1124
1128
|
offeringType?: OfferingType | undefined;
|
|
1125
1129
|
beenDisbursed?: "true" | "false" | undefined;
|
|
1126
1130
|
snapshotEvent?: SnapshotEvent | undefined;
|
|
1127
|
-
accountStatus?: AccountStatus | undefined;
|
|
1128
1131
|
savedQuery?: SavedQuery | undefined;
|
|
1129
1132
|
exportType?: TradeExportType | undefined;
|
|
1130
1133
|
}>;
|
|
@@ -1221,7 +1224,9 @@ export declare const InvestorsTradeResponse: z.ZodObject<{
|
|
|
1221
1224
|
offeringId: z.ZodNullable<z.ZodString>;
|
|
1222
1225
|
tid: z.ZodNullable<z.ZodString>;
|
|
1223
1226
|
investmentType: z.ZodNativeEnum<typeof InvestmentType>;
|
|
1224
|
-
|
|
1227
|
+
purchasedShares: z.ZodNumber;
|
|
1228
|
+
bonusShares: z.ZodNullable<z.ZodNumber>;
|
|
1229
|
+
totalNumberOfShares: z.ZodNumber;
|
|
1225
1230
|
pricePerShare: z.ZodNumber;
|
|
1226
1231
|
totalAmount: z.ZodNullable<z.ZodNumber>;
|
|
1227
1232
|
tradeStatus: z.ZodNativeEnum<typeof TradeStatus>;
|
|
@@ -1240,7 +1245,9 @@ export declare const InvestorsTradeResponse: z.ZodObject<{
|
|
|
1240
1245
|
investorAccountId: string | null;
|
|
1241
1246
|
paymentMethodId: string | null;
|
|
1242
1247
|
investmentType: InvestmentType;
|
|
1243
|
-
|
|
1248
|
+
purchasedShares: number;
|
|
1249
|
+
bonusShares: number | null;
|
|
1250
|
+
totalNumberOfShares: number;
|
|
1244
1251
|
pricePerShare: number;
|
|
1245
1252
|
totalAmount: number | null;
|
|
1246
1253
|
tradeStatusUnmapped: string | null;
|
|
@@ -1258,7 +1265,9 @@ export declare const InvestorsTradeResponse: z.ZodObject<{
|
|
|
1258
1265
|
investorAccountId: string | null;
|
|
1259
1266
|
paymentMethodId: string | null;
|
|
1260
1267
|
investmentType: InvestmentType;
|
|
1261
|
-
|
|
1268
|
+
purchasedShares: number;
|
|
1269
|
+
bonusShares: number | null;
|
|
1270
|
+
totalNumberOfShares: number;
|
|
1262
1271
|
pricePerShare: number;
|
|
1263
1272
|
totalAmount: number | null;
|
|
1264
1273
|
tradeStatusUnmapped: string | null;
|
|
@@ -1278,7 +1287,9 @@ export declare const InvestorsPaginatedTrade: z.ZodObject<{
|
|
|
1278
1287
|
offeringId: z.ZodNullable<z.ZodString>;
|
|
1279
1288
|
tid: z.ZodNullable<z.ZodString>;
|
|
1280
1289
|
investmentType: z.ZodNativeEnum<typeof InvestmentType>;
|
|
1281
|
-
|
|
1290
|
+
purchasedShares: z.ZodNumber;
|
|
1291
|
+
bonusShares: z.ZodNullable<z.ZodNumber>;
|
|
1292
|
+
totalNumberOfShares: z.ZodNumber;
|
|
1282
1293
|
pricePerShare: z.ZodNumber;
|
|
1283
1294
|
totalAmount: z.ZodNullable<z.ZodNumber>;
|
|
1284
1295
|
tradeStatus: z.ZodNativeEnum<typeof TradeStatus>;
|
|
@@ -1297,7 +1308,9 @@ export declare const InvestorsPaginatedTrade: z.ZodObject<{
|
|
|
1297
1308
|
investorAccountId: string | null;
|
|
1298
1309
|
paymentMethodId: string | null;
|
|
1299
1310
|
investmentType: InvestmentType;
|
|
1300
|
-
|
|
1311
|
+
purchasedShares: number;
|
|
1312
|
+
bonusShares: number | null;
|
|
1313
|
+
totalNumberOfShares: number;
|
|
1301
1314
|
pricePerShare: number;
|
|
1302
1315
|
totalAmount: number | null;
|
|
1303
1316
|
tradeStatusUnmapped: string | null;
|
|
@@ -1315,7 +1328,9 @@ export declare const InvestorsPaginatedTrade: z.ZodObject<{
|
|
|
1315
1328
|
investorAccountId: string | null;
|
|
1316
1329
|
paymentMethodId: string | null;
|
|
1317
1330
|
investmentType: InvestmentType;
|
|
1318
|
-
|
|
1331
|
+
purchasedShares: number;
|
|
1332
|
+
bonusShares: number | null;
|
|
1333
|
+
totalNumberOfShares: number;
|
|
1319
1334
|
pricePerShare: number;
|
|
1320
1335
|
totalAmount: number | null;
|
|
1321
1336
|
tradeStatusUnmapped: string | null;
|
|
@@ -1354,7 +1369,9 @@ export declare const InvestorsPaginatedTrade: z.ZodObject<{
|
|
|
1354
1369
|
investorAccountId: string | null;
|
|
1355
1370
|
paymentMethodId: string | null;
|
|
1356
1371
|
investmentType: InvestmentType;
|
|
1357
|
-
|
|
1372
|
+
purchasedShares: number;
|
|
1373
|
+
bonusShares: number | null;
|
|
1374
|
+
totalNumberOfShares: number;
|
|
1358
1375
|
pricePerShare: number;
|
|
1359
1376
|
totalAmount: number | null;
|
|
1360
1377
|
tradeStatusUnmapped: string | null;
|
|
@@ -1381,7 +1398,9 @@ export declare const InvestorsPaginatedTrade: z.ZodObject<{
|
|
|
1381
1398
|
investorAccountId: string | null;
|
|
1382
1399
|
paymentMethodId: string | null;
|
|
1383
1400
|
investmentType: InvestmentType;
|
|
1384
|
-
|
|
1401
|
+
purchasedShares: number;
|
|
1402
|
+
bonusShares: number | null;
|
|
1403
|
+
totalNumberOfShares: number;
|
|
1385
1404
|
pricePerShare: number;
|
|
1386
1405
|
totalAmount: number | null;
|
|
1387
1406
|
tradeStatusUnmapped: string | null;
|
|
@@ -1479,13 +1498,14 @@ export declare const GetTradeFiltersSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1479
1498
|
snapshotEvent: z.ZodOptional<z.ZodNativeEnum<typeof SnapshotEvent>>;
|
|
1480
1499
|
offeringType: z.ZodOptional<z.ZodNativeEnum<typeof OfferingType>>;
|
|
1481
1500
|
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof ManagedByType>>;
|
|
1482
|
-
platform: z.ZodOptional<z.ZodNativeEnum<typeof
|
|
1501
|
+
platform: z.ZodOptional<z.ZodNativeEnum<typeof Platform>>;
|
|
1483
1502
|
investorAccountId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
1503
|
+
complianceReviewerId: z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>;
|
|
1484
1504
|
}, "strip", z.ZodTypeAny, {
|
|
1485
1505
|
tradeStatus: string[];
|
|
1486
1506
|
accountId?: string | undefined;
|
|
1487
1507
|
managedBy?: ManagedByType | undefined;
|
|
1488
|
-
platform?:
|
|
1508
|
+
platform?: Platform | undefined;
|
|
1489
1509
|
fundingStatus?: FundingStatus | undefined;
|
|
1490
1510
|
complianceReview?: ComplianceReview | undefined;
|
|
1491
1511
|
systemReviewCheck?: SystemReviewCheck | undefined;
|
|
@@ -1500,13 +1520,14 @@ export declare const GetTradeFiltersSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1500
1520
|
saCheck?: SaCheck | undefined;
|
|
1501
1521
|
txnPaymentMethod?: PaymentMethodType | undefined;
|
|
1502
1522
|
txnCheck?: TxnCheck | undefined;
|
|
1523
|
+
complianceReviewerId?: string | undefined;
|
|
1503
1524
|
offeringType?: OfferingType | undefined;
|
|
1504
1525
|
beenDisbursed?: "true" | "false" | undefined;
|
|
1505
1526
|
snapshotEvent?: SnapshotEvent | undefined;
|
|
1506
1527
|
}, {
|
|
1507
1528
|
accountId?: string | undefined;
|
|
1508
1529
|
managedBy?: ManagedByType | undefined;
|
|
1509
|
-
platform?:
|
|
1530
|
+
platform?: Platform | undefined;
|
|
1510
1531
|
tradeStatus?: string | undefined;
|
|
1511
1532
|
fundingStatus?: FundingStatus | undefined;
|
|
1512
1533
|
complianceReview?: ComplianceReview | undefined;
|
|
@@ -1522,6 +1543,7 @@ export declare const GetTradeFiltersSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1522
1543
|
saCheck?: SaCheck | undefined;
|
|
1523
1544
|
txnPaymentMethod?: PaymentMethodType | undefined;
|
|
1524
1545
|
txnCheck?: TxnCheck | undefined;
|
|
1546
|
+
complianceReviewerId?: string | undefined;
|
|
1525
1547
|
offeringType?: OfferingType | undefined;
|
|
1526
1548
|
beenDisbursed?: "true" | "false" | undefined;
|
|
1527
1549
|
snapshotEvent?: SnapshotEvent | undefined;
|
|
@@ -1778,7 +1800,7 @@ export declare const TradeForCsvExportZod: z.ZodObject<{
|
|
|
1778
1800
|
signerName: z.ZodString;
|
|
1779
1801
|
offeringName: z.ZodString;
|
|
1780
1802
|
tradeType: z.ZodString;
|
|
1781
|
-
|
|
1803
|
+
totalNumberOfShares: z.ZodNumber;
|
|
1782
1804
|
pricePerShare: z.ZodString;
|
|
1783
1805
|
totalAmount: z.ZodString;
|
|
1784
1806
|
tradeStatus: z.ZodString;
|
|
@@ -1841,7 +1863,7 @@ export declare const TradeForCsvExportZod: z.ZodObject<{
|
|
|
1841
1863
|
placedAt: string;
|
|
1842
1864
|
signerName: string;
|
|
1843
1865
|
tradeNumber: string;
|
|
1844
|
-
|
|
1866
|
+
totalNumberOfShares: number;
|
|
1845
1867
|
pricePerShare: string;
|
|
1846
1868
|
totalAmount: string;
|
|
1847
1869
|
investorName: string;
|
|
@@ -1898,7 +1920,7 @@ export declare const TradeForCsvExportZod: z.ZodObject<{
|
|
|
1898
1920
|
placedAt: string;
|
|
1899
1921
|
signerName: string;
|
|
1900
1922
|
tradeNumber: string;
|
|
1901
|
-
|
|
1923
|
+
totalNumberOfShares: number;
|
|
1902
1924
|
pricePerShare: string;
|
|
1903
1925
|
totalAmount: string;
|
|
1904
1926
|
investorName: string;
|
|
@@ -1947,6 +1969,8 @@ export declare const TradeForCsvExportZod: z.ZodObject<{
|
|
|
1947
1969
|
export type TradeForCsvExport = z.infer<typeof TradeForCsvExportZod>;
|
|
1948
1970
|
export declare const CANCELLABLE_TRADE_STATUSES: TradeStatus[];
|
|
1949
1971
|
export declare const NON_CANCELABLE_COMPLIANCE_REVIEW_STATUSES: ComplianceReview[];
|
|
1972
|
+
/** Maximum days after placement that a REG_CF trade can be cancelled (regulatory/business rule). */
|
|
1973
|
+
export declare const REG_CF_CANCELLATION_WINDOW_DAYS = 5;
|
|
1950
1974
|
/**
|
|
1951
1975
|
* Filter type for Investor Account exports in workers
|
|
1952
1976
|
* Extends the base InvestorAccountExportFilters with additional optional fields needed for bulk exports
|
|
@@ -1984,4 +2008,5 @@ export type SecondaryTradeExportFilters = Partial<SecondaryTradeFiltersZod>;
|
|
|
1984
2008
|
*/
|
|
1985
2009
|
export type BulkExportFilters = WorkerInvestorAccountExportFilters | TradeExportFilters | ComplianceTradeExportFilters | SecondaryCustomerExportFilters | SecondaryTradeExportFilters;
|
|
1986
2010
|
export type BulkExportResponse = IInvestorAccount[] | RegisteredInvestorUserRawZod[] | TradeZod[] | SecondaryCustomer[] | SecondaryTrade[];
|
|
2011
|
+
export declare const SOLD_OUT_COUNTED_STATUSES: TradeStatus[];
|
|
1987
2012
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { InvestmentType, IPaginationMeta, FundingStatus, TxnCheck, PaginationOptionsZod, dateSchema, BaseStatus, ComplianceReview, OfferingType, ManagedByType, SignatureStatus, TradeType, TradeStatus, SortOrder, SortBy, AicStatus, AMLStatus, KYCStatus, createDateSchema, AccountStatus, SavedQuery, AccountZod, } from './common.types.js';
|
|
2
|
+
import { InvestmentType, IPaginationMeta, FundingStatus, TxnCheck, PaginationOptionsZod, dateSchema, BaseStatus, ComplianceReview, OfferingType, ManagedByType, SignatureStatus, TradeType, TradeStatus, SortOrder, SortBy, AicStatus, AMLStatus, KYCStatus, createDateSchema, AccountStatus, SavedQuery, AccountZod, Platform, WarrantSharesCalculationMethod, } from './common.types.js';
|
|
3
3
|
import { IOffering, offeringIdSchema } from './offering.types.js';
|
|
4
4
|
import { IBaseEntity } from './entity.types.js';
|
|
5
5
|
import { extendZodWithOpenApi } from '@anatine/zod-openapi';
|
|
@@ -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";
|
|
@@ -164,11 +165,6 @@ export var SystemReviewCheck;
|
|
|
164
165
|
SystemReviewCheck["WARNING"] = "WARNING";
|
|
165
166
|
SystemReviewCheck["INCOMPLETE"] = "INCOMPLETE";
|
|
166
167
|
})(SystemReviewCheck || (SystemReviewCheck = {}));
|
|
167
|
-
export var Platforms;
|
|
168
|
-
(function (Platforms) {
|
|
169
|
-
Platforms["DALMORE"] = "DALMORE";
|
|
170
|
-
Platforms["IMPORT"] = "IMPORT";
|
|
171
|
-
})(Platforms || (Platforms = {}));
|
|
172
168
|
export var MatchResultStatus;
|
|
173
169
|
(function (MatchResultStatus) {
|
|
174
170
|
MatchResultStatus["MATCHED"] = "MATCHED";
|
|
@@ -227,7 +223,9 @@ export const TradeZod = IBaseEntity.extend({
|
|
|
227
223
|
ip: z.string().nullable(),
|
|
228
224
|
tid: z.string().nullable(),
|
|
229
225
|
investmentType: z.nativeEnum(InvestmentType),
|
|
230
|
-
|
|
226
|
+
purchasedShares: z.number().int(),
|
|
227
|
+
bonusShares: z.number().int().nullable(),
|
|
228
|
+
totalNumberOfShares: z.number().int(),
|
|
231
229
|
pricePerShare: z.number().multipleOf(0.01),
|
|
232
230
|
lineItems: z.array(z.lazy(() => TradeLineItemZod)),
|
|
233
231
|
adjustments: z.array(z.lazy(() => TradeAdjustmentZod)),
|
|
@@ -284,6 +282,11 @@ export const TradeZod = IBaseEntity.extend({
|
|
|
284
282
|
chargedAmount: z.number().nullable().optional(),
|
|
285
283
|
balance: z.number().nullable().optional(),
|
|
286
284
|
isUncleared24h: z.boolean(),
|
|
285
|
+
term: z.number().nullable(),
|
|
286
|
+
exercisePrice: z.number().nullable(),
|
|
287
|
+
warrantPercentage: z.number().nullable(),
|
|
288
|
+
calculationMethod: z.nativeEnum(WarrantSharesCalculationMethod).nullable(),
|
|
289
|
+
incrementThreshold: z.number().nullable(),
|
|
287
290
|
});
|
|
288
291
|
export var SnapshotEvent;
|
|
289
292
|
(function (SnapshotEvent) {
|
|
@@ -365,8 +368,9 @@ export const TradeFiltersZod = z.object({
|
|
|
365
368
|
snapshotEvent: z.nativeEnum(SnapshotEvent).optional(),
|
|
366
369
|
offeringType: z.nativeEnum(OfferingType).optional(),
|
|
367
370
|
managedBy: z.nativeEnum(ManagedByType).optional(),
|
|
368
|
-
platform: z.nativeEnum(
|
|
371
|
+
platform: z.nativeEnum(Platform).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,15 @@ 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;
|
|
791
|
+
// Check sold out when trade status changes to/from counted statuses
|
|
792
|
+
export const SOLD_OUT_COUNTED_STATUSES = [
|
|
793
|
+
TradeStatus.PLACED,
|
|
794
|
+
TradeStatus.IN_REVIEW,
|
|
795
|
+
TradeStatus.NEEDS_INFO,
|
|
796
|
+
TradeStatus.NEEDS_PAYMENT_INFO,
|
|
797
|
+
TradeStatus.FUNDING,
|
|
798
|
+
TradeStatus.SETTLED,
|
|
799
|
+
];
|
|
780
800
|
//# sourceMappingURL=trade.types.js.map
|