@dalmore/api-contracts 0.0.0-dev.2cea8e5 → 0.0.0-dev.2fec89f
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 +5 -0
- package/common/types/account.types.d.ts +6 -6
- package/common/types/account.types.js +3 -3
- package/common/types/account.types.js.map +1 -1
- package/common/types/attribution.types.d.ts +578 -0
- package/common/types/attribution.types.js +152 -0
- package/common/types/attribution.types.js.map +1 -0
- 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/cap-table.types.d.ts +211 -39
- package/common/types/cap-table.types.js +35 -0
- package/common/types/cap-table.types.js.map +1 -1
- package/common/types/common.types.d.ts +42 -5
- package/common/types/common.types.js +24 -3
- package/common/types/common.types.js.map +1 -1
- package/common/types/comply-advantage-api.types.d.ts +12 -12
- 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/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 +134 -19
- package/common/types/disbursements.types.js +30 -3
- package/common/types/disbursements.types.js.map +1 -1
- package/common/types/exchange-provider.types.d.ts +12 -12
- package/common/types/file.types.d.ts +3 -0
- package/common/types/file.types.js +3 -0
- package/common/types/file.types.js.map +1 -1
- package/common/types/index.d.ts +3 -2
- package/common/types/index.js +3 -2
- package/common/types/index.js.map +1 -1
- package/common/types/individuals.types.d.ts +395 -5
- package/common/types/individuals.types.js +11 -14
- 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 +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-offering.types.d.ts +200 -12
- package/common/types/issuer-offering.types.js +45 -31
- package/common/types/issuer-offering.types.js.map +1 -1
- 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/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.js +1 -1
- package/common/types/offering.types.d.ts +60 -30
- package/common/types/offering.types.js +78 -18
- 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 +12 -12
- 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 -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 +8 -0
- 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 +20 -14
- package/common/types/trade.types.js +17 -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 +73 -95
- package/common/types/user.types.js +7 -26
- 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/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/index.d.ts +3949 -1061
- 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 +20 -5
- 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
|
@@ -20,8 +20,8 @@ export declare const offeringsContract: {
|
|
|
20
20
|
enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
21
21
|
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").ManagedByType>>;
|
|
22
22
|
versioningType: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").OfferingVersioningType>>;
|
|
23
|
-
combinedStatus: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").OfferingStatus>>;
|
|
24
23
|
onboardingStatus: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").OfferingOnboardingStatus>>;
|
|
24
|
+
complianceReview: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").ComplianceReview>>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
page: number;
|
|
27
27
|
limit: number;
|
|
@@ -31,12 +31,12 @@ export declare const offeringsContract: {
|
|
|
31
31
|
accountId?: string | undefined;
|
|
32
32
|
name?: string | undefined;
|
|
33
33
|
managedBy?: import("../../..").ManagedByType | undefined;
|
|
34
|
+
complianceReview?: import("../../..").ComplianceReview | undefined;
|
|
34
35
|
onboardingStatus?: import("../../..").OfferingOnboardingStatus | undefined;
|
|
35
36
|
enabled?: boolean | undefined;
|
|
36
37
|
issuerId?: string | undefined;
|
|
37
38
|
issuerName?: string | undefined;
|
|
38
39
|
versioningType?: import("../../..").OfferingVersioningType | undefined;
|
|
39
|
-
combinedStatus?: import("../../..").OfferingStatus | undefined;
|
|
40
40
|
}, {
|
|
41
41
|
type?: import("../../..").OfferingType | undefined;
|
|
42
42
|
status?: import("../../..").ComplianceReview | undefined;
|
|
@@ -45,13 +45,13 @@ export declare const offeringsContract: {
|
|
|
45
45
|
managedBy?: import("../../..").ManagedByType | undefined;
|
|
46
46
|
page?: number | undefined;
|
|
47
47
|
limit?: number | undefined;
|
|
48
|
+
complianceReview?: import("../../..").ComplianceReview | undefined;
|
|
48
49
|
onboardingStatus?: import("../../..").OfferingOnboardingStatus | undefined;
|
|
49
50
|
include?: string | undefined;
|
|
50
51
|
enabled?: unknown;
|
|
51
52
|
issuerId?: string | undefined;
|
|
52
53
|
issuerName?: string | undefined;
|
|
53
54
|
versioningType?: import("../../..").OfferingVersioningType | undefined;
|
|
54
|
-
combinedStatus?: import("../../..").OfferingStatus | undefined;
|
|
55
55
|
}>;
|
|
56
56
|
summary: "Get offerings";
|
|
57
57
|
path: "offerings";
|
|
@@ -413,6 +413,7 @@ export declare const offeringsContract: {
|
|
|
413
413
|
auth: boolean;
|
|
414
414
|
};
|
|
415
415
|
body: z.ZodEffects<z.ZodObject<{
|
|
416
|
+
shareClassId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
416
417
|
name: z.ZodOptional<z.ZodString>;
|
|
417
418
|
type: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").OfferingType>>;
|
|
418
419
|
targetAmount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -422,7 +423,7 @@ export declare const offeringsContract: {
|
|
|
422
423
|
startAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>>;
|
|
423
424
|
endAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>>;
|
|
424
425
|
cancellationPeriod: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
425
|
-
description: z.
|
|
426
|
+
description: z.ZodLazy<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>, string | null | undefined, string | null | undefined>>;
|
|
426
427
|
memorandumId: z.ZodNullable<z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
427
428
|
subscriptionAgreementId: z.ZodNullable<z.ZodOptional<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
428
429
|
coverArtId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
@@ -516,6 +517,7 @@ export declare const offeringsContract: {
|
|
|
516
517
|
warrantPercentage?: number | null | undefined;
|
|
517
518
|
calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
|
|
518
519
|
incrementThreshold?: number | null | undefined;
|
|
520
|
+
shareClassId?: string | null | undefined;
|
|
519
521
|
assetName?: string | undefined;
|
|
520
522
|
assetType?: import("../../..").AssetType | undefined;
|
|
521
523
|
pricePerUnit?: number | null | undefined;
|
|
@@ -561,6 +563,7 @@ export declare const offeringsContract: {
|
|
|
561
563
|
warrantPercentage?: number | null | undefined;
|
|
562
564
|
calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
|
|
563
565
|
incrementThreshold?: number | null | undefined;
|
|
566
|
+
shareClassId?: string | null | undefined;
|
|
564
567
|
assetName?: string | undefined;
|
|
565
568
|
assetType?: import("../../..").AssetType | undefined;
|
|
566
569
|
pricePerUnit?: number | null | undefined;
|
|
@@ -606,6 +609,7 @@ export declare const offeringsContract: {
|
|
|
606
609
|
warrantPercentage?: number | null | undefined;
|
|
607
610
|
calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
|
|
608
611
|
incrementThreshold?: number | null | undefined;
|
|
612
|
+
shareClassId?: string | null | undefined;
|
|
609
613
|
assetName?: string | undefined;
|
|
610
614
|
assetType?: import("../../..").AssetType | undefined;
|
|
611
615
|
pricePerUnit?: number | null | undefined;
|
|
@@ -651,6 +655,7 @@ export declare const offeringsContract: {
|
|
|
651
655
|
warrantPercentage?: number | null | undefined;
|
|
652
656
|
calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
|
|
653
657
|
incrementThreshold?: number | null | undefined;
|
|
658
|
+
shareClassId?: string | null | undefined;
|
|
654
659
|
assetName?: string | undefined;
|
|
655
660
|
assetType?: import("../../..").AssetType | undefined;
|
|
656
661
|
pricePerUnit?: number | null | undefined;
|
|
@@ -753,6 +758,7 @@ export declare const offeringsContract: {
|
|
|
753
758
|
};
|
|
754
759
|
body: z.ZodEffects<z.ZodObject<{
|
|
755
760
|
issuerId: z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>;
|
|
761
|
+
shareClassId: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
756
762
|
name: z.ZodString;
|
|
757
763
|
type: z.ZodNativeEnum<typeof import("../../..").OfferingType>;
|
|
758
764
|
targetAmount: z.ZodNumber;
|
|
@@ -764,7 +770,7 @@ export declare const offeringsContract: {
|
|
|
764
770
|
endAt: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, Date | null, string | null>>;
|
|
765
771
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
766
772
|
cancellationPeriod: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
767
|
-
description: z.
|
|
773
|
+
description: z.ZodLazy<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>, string | null | undefined, string | null | undefined>>;
|
|
768
774
|
managedBy: z.ZodOptional<z.ZodNativeEnum<typeof import("../../..").ManagedByType>>;
|
|
769
775
|
assetName: z.ZodString;
|
|
770
776
|
assetType: z.ZodNativeEnum<typeof import("../../..").AssetType>;
|
|
@@ -823,6 +829,7 @@ export declare const offeringsContract: {
|
|
|
823
829
|
warrantPercentage: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
824
830
|
calculationMethod: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../..").WarrantSharesCalculationMethod>>>;
|
|
825
831
|
incrementThreshold: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
832
|
+
showTotalRaised: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
826
833
|
}, "strip", z.ZodTypeAny, {
|
|
827
834
|
type: import("../../..").OfferingType;
|
|
828
835
|
name: string;
|
|
@@ -844,6 +851,7 @@ export declare const offeringsContract: {
|
|
|
844
851
|
startAt?: Date | null | undefined;
|
|
845
852
|
endAt?: Date | null | undefined;
|
|
846
853
|
cancellationPeriod?: number | null | undefined;
|
|
854
|
+
showTotalRaised?: boolean | undefined;
|
|
847
855
|
hasEscrow?: boolean | undefined;
|
|
848
856
|
bankAccountId?: string | null | undefined;
|
|
849
857
|
escrowAccountId?: string | null | undefined;
|
|
@@ -853,6 +861,7 @@ export declare const offeringsContract: {
|
|
|
853
861
|
warrantPercentage?: number | null | undefined;
|
|
854
862
|
calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
|
|
855
863
|
incrementThreshold?: number | null | undefined;
|
|
864
|
+
shareClassId?: string | null | undefined;
|
|
856
865
|
yield?: number | null | undefined;
|
|
857
866
|
duration?: number | null | undefined;
|
|
858
867
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
@@ -885,6 +894,7 @@ export declare const offeringsContract: {
|
|
|
885
894
|
startAt?: string | null | undefined;
|
|
886
895
|
endAt?: string | null | undefined;
|
|
887
896
|
cancellationPeriod?: number | null | undefined;
|
|
897
|
+
showTotalRaised?: boolean | undefined;
|
|
888
898
|
hasEscrow?: boolean | undefined;
|
|
889
899
|
bankAccountId?: string | null | undefined;
|
|
890
900
|
escrowAccountId?: string | null | undefined;
|
|
@@ -895,6 +905,7 @@ export declare const offeringsContract: {
|
|
|
895
905
|
warrantPercentage?: number | null | undefined;
|
|
896
906
|
calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
|
|
897
907
|
incrementThreshold?: number | null | undefined;
|
|
908
|
+
shareClassId?: string | null | undefined;
|
|
898
909
|
yield?: number | null | undefined;
|
|
899
910
|
duration?: number | null | undefined;
|
|
900
911
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
@@ -928,6 +939,7 @@ export declare const offeringsContract: {
|
|
|
928
939
|
startAt?: Date | null | undefined;
|
|
929
940
|
endAt?: Date | null | undefined;
|
|
930
941
|
cancellationPeriod?: number | null | undefined;
|
|
942
|
+
showTotalRaised?: boolean | undefined;
|
|
931
943
|
hasEscrow?: boolean | undefined;
|
|
932
944
|
bankAccountId?: string | null | undefined;
|
|
933
945
|
escrowAccountId?: string | null | undefined;
|
|
@@ -937,6 +949,7 @@ export declare const offeringsContract: {
|
|
|
937
949
|
warrantPercentage?: number | null | undefined;
|
|
938
950
|
calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
|
|
939
951
|
incrementThreshold?: number | null | undefined;
|
|
952
|
+
shareClassId?: string | null | undefined;
|
|
940
953
|
yield?: number | null | undefined;
|
|
941
954
|
duration?: number | null | undefined;
|
|
942
955
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
@@ -969,6 +982,7 @@ export declare const offeringsContract: {
|
|
|
969
982
|
startAt?: string | null | undefined;
|
|
970
983
|
endAt?: string | null | undefined;
|
|
971
984
|
cancellationPeriod?: number | null | undefined;
|
|
985
|
+
showTotalRaised?: boolean | undefined;
|
|
972
986
|
hasEscrow?: boolean | undefined;
|
|
973
987
|
bankAccountId?: string | null | undefined;
|
|
974
988
|
escrowAccountId?: string | null | undefined;
|
|
@@ -979,6 +993,7 @@ export declare const offeringsContract: {
|
|
|
979
993
|
warrantPercentage?: number | null | undefined;
|
|
980
994
|
calculationMethod?: import("../../..").WarrantSharesCalculationMethod | null | undefined;
|
|
981
995
|
incrementThreshold?: number | null | undefined;
|
|
996
|
+
shareClassId?: string | null | undefined;
|
|
982
997
|
yield?: number | null | undefined;
|
|
983
998
|
duration?: number | null | undefined;
|
|
984
999
|
durationType?: import("../../..").DurationType | null | undefined;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const reviewContract: {
|
|
3
|
+
postReviewKyc: {
|
|
4
|
+
method: "POST";
|
|
5
|
+
metadata: {
|
|
6
|
+
auth: boolean;
|
|
7
|
+
};
|
|
8
|
+
body: z.ZodObject<{
|
|
9
|
+
individualIds: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
10
|
+
status: z.ZodNativeEnum<typeof import("../../..").BaseStatus>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
status: import("../../..").BaseStatus;
|
|
13
|
+
individualIds: string[];
|
|
14
|
+
}, {
|
|
15
|
+
status: import("../../..").BaseStatus;
|
|
16
|
+
individualIds: string[];
|
|
17
|
+
}>;
|
|
18
|
+
query: z.ZodObject<{
|
|
19
|
+
userId: z.ZodEffects<z.ZodString, string, string>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
userId: string;
|
|
22
|
+
}, {
|
|
23
|
+
userId: string;
|
|
24
|
+
}>;
|
|
25
|
+
summary: "Post KYC review for individuals";
|
|
26
|
+
path: "review/kyc";
|
|
27
|
+
responses: {
|
|
28
|
+
201: z.ZodObject<{
|
|
29
|
+
individualsUpdated: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
30
|
+
status: z.ZodNativeEnum<typeof import("../../..").BaseStatus>;
|
|
31
|
+
reviewedBy: z.ZodString;
|
|
32
|
+
targetObject: z.ZodAny;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
status: import("../../..").BaseStatus;
|
|
35
|
+
reviewedBy: string;
|
|
36
|
+
individualsUpdated: string[];
|
|
37
|
+
targetObject?: any;
|
|
38
|
+
}, {
|
|
39
|
+
status: import("../../..").BaseStatus;
|
|
40
|
+
reviewedBy: string;
|
|
41
|
+
individualsUpdated: string[];
|
|
42
|
+
targetObject?: any;
|
|
43
|
+
}>;
|
|
44
|
+
401: z.ZodObject<{
|
|
45
|
+
status: z.ZodNumber;
|
|
46
|
+
message: z.ZodString;
|
|
47
|
+
errors: z.ZodArray<z.ZodString, "many">;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
message: string;
|
|
50
|
+
status: number;
|
|
51
|
+
errors: string[];
|
|
52
|
+
}, {
|
|
53
|
+
message: string;
|
|
54
|
+
status: number;
|
|
55
|
+
errors: string[];
|
|
56
|
+
}>;
|
|
57
|
+
403: z.ZodObject<{
|
|
58
|
+
status: z.ZodNumber;
|
|
59
|
+
message: z.ZodString;
|
|
60
|
+
errors: z.ZodArray<z.ZodString, "many">;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
message: string;
|
|
63
|
+
status: number;
|
|
64
|
+
errors: string[];
|
|
65
|
+
}, {
|
|
66
|
+
message: string;
|
|
67
|
+
status: number;
|
|
68
|
+
errors: string[];
|
|
69
|
+
}>;
|
|
70
|
+
500: z.ZodObject<{
|
|
71
|
+
status: z.ZodNumber;
|
|
72
|
+
message: z.ZodString;
|
|
73
|
+
errors: z.ZodArray<z.ZodString, "many">;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
message: string;
|
|
76
|
+
status: number;
|
|
77
|
+
errors: string[];
|
|
78
|
+
}, {
|
|
79
|
+
message: string;
|
|
80
|
+
status: number;
|
|
81
|
+
errors: string[];
|
|
82
|
+
}>;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
import { ForbiddenError, InternalError, UnauthorizedError, PostReviewBody, PostReviewResponse, userIdSchema, } from '../../../common/types/index.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
const c = initContract();
|
|
5
|
+
export const reviewContract = c.router({
|
|
6
|
+
postReviewKyc: {
|
|
7
|
+
summary: 'Post KYC review for individuals',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
path: '/kyc',
|
|
10
|
+
metadata: {
|
|
11
|
+
auth: true,
|
|
12
|
+
},
|
|
13
|
+
query: z.object({
|
|
14
|
+
userId: userIdSchema,
|
|
15
|
+
}),
|
|
16
|
+
body: PostReviewBody,
|
|
17
|
+
responses: {
|
|
18
|
+
201: PostReviewResponse,
|
|
19
|
+
401: UnauthorizedError,
|
|
20
|
+
403: ForbiddenError,
|
|
21
|
+
500: InternalError,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
}, {
|
|
25
|
+
pathPrefix: 'review',
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,YAAY,GACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,GAAG,YAAY,EAAE,CAAC;AAEzB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CACpC;IACE,aAAa,EAAE;QACb,OAAO,EAAE,iCAAiC;QAC1C,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE;YACR,IAAI,EAAE,IAAI;SACX;QACD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;YACd,MAAM,EAAE,YAAY;SACrB,CAAC;QACF,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE;YACT,GAAG,EAAE,kBAAkB;YACvB,GAAG,EAAE,iBAAiB;YACtB,GAAG,EAAE,cAAc;YACnB,GAAG,EAAE,aAAa;SACnB;KACF;CACF,EACD;IACE,UAAU,EAAE,QAAQ;CACrB,CACF,CAAC"}
|