@dalmore/api-contracts 0.0.0-dev.a302ede → 0.0.0-dev.a367993
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/common.types.d.ts +2 -1
- package/common/types/common.types.js +1 -0
- package/common/types/common.types.js.map +1 -1
- package/common/types/csv.types.d.ts +181 -8
- package/common/types/csv.types.js +30 -6
- package/common/types/csv.types.js.map +1 -1
- 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/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/issuer-offering.types.d.ts +8 -0
- package/common/types/issuer-offering.types.js +1 -0
- package/common/types/issuer-offering.types.js.map +1 -1
- package/common/types/offering.types.d.ts +8 -0
- package/common/types/offering.types.js +4 -0
- package/common/types/offering.types.js.map +1 -1
- package/common/types/trade.types.d.ts +1 -0
- package/common/types/trade.types.js +9 -0
- package/common/types/trade.types.js.map +1 -1
- package/contracts/clients/csv/index.d.ts +145 -6
- package/contracts/clients/csv/index.js +17 -0
- package/contracts/clients/csv/index.js.map +1 -1
- package/contracts/clients/index.d.ts +152 -6
- package/contracts/clients/review/index.d.ts +33 -25
- package/contracts/clients/review/index.js +5 -1
- package/contracts/clients/review/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ export declare const csvContract: {
|
|
|
21
21
|
200: import("zod").ZodObject<{
|
|
22
22
|
totalRows: import("zod").ZodNumber;
|
|
23
23
|
successfulRows: import("zod").ZodNumber;
|
|
24
|
-
createdAccounts: import("zod").ZodArray<import("zod").ZodObject<{
|
|
24
|
+
createdAccounts: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
25
25
|
row: import("zod").ZodNumber;
|
|
26
26
|
userId: import("zod").ZodString;
|
|
27
27
|
investorAccountId: import("zod").ZodString;
|
|
@@ -33,23 +33,43 @@ export declare const csvContract: {
|
|
|
33
33
|
userId: string;
|
|
34
34
|
investorAccountId: string;
|
|
35
35
|
row: number;
|
|
36
|
-
}>, "
|
|
36
|
+
}>, import("zod").ZodObject<{
|
|
37
|
+
row: import("zod").ZodNumber;
|
|
38
|
+
userId: import("zod").ZodString;
|
|
39
|
+
accountId: import("zod").ZodString;
|
|
40
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
41
|
+
accountId: string;
|
|
42
|
+
userId: string;
|
|
43
|
+
row: number;
|
|
44
|
+
}, {
|
|
45
|
+
accountId: string;
|
|
46
|
+
userId: string;
|
|
47
|
+
row: number;
|
|
48
|
+
}>]>, "many">;
|
|
37
49
|
}, "strip", import("zod").ZodTypeAny, {
|
|
38
50
|
totalRows: number;
|
|
39
51
|
successfulRows: number;
|
|
40
|
-
createdAccounts: {
|
|
52
|
+
createdAccounts: ({
|
|
41
53
|
userId: string;
|
|
42
54
|
investorAccountId: string;
|
|
43
55
|
row: number;
|
|
44
|
-
}
|
|
56
|
+
} | {
|
|
57
|
+
accountId: string;
|
|
58
|
+
userId: string;
|
|
59
|
+
row: number;
|
|
60
|
+
})[];
|
|
45
61
|
}, {
|
|
46
62
|
totalRows: number;
|
|
47
63
|
successfulRows: number;
|
|
48
|
-
createdAccounts: {
|
|
64
|
+
createdAccounts: ({
|
|
49
65
|
userId: string;
|
|
50
66
|
investorAccountId: string;
|
|
51
67
|
row: number;
|
|
52
|
-
}
|
|
68
|
+
} | {
|
|
69
|
+
accountId: string;
|
|
70
|
+
userId: string;
|
|
71
|
+
row: number;
|
|
72
|
+
})[];
|
|
53
73
|
}>;
|
|
54
74
|
400: import("zod").ZodObject<{
|
|
55
75
|
status: import("zod").ZodNumber;
|
|
@@ -1591,4 +1611,123 @@ export declare const csvContract: {
|
|
|
1591
1611
|
}>;
|
|
1592
1612
|
};
|
|
1593
1613
|
};
|
|
1614
|
+
uploadIssuerCsv: {
|
|
1615
|
+
method: "POST";
|
|
1616
|
+
metadata: {
|
|
1617
|
+
auth: boolean;
|
|
1618
|
+
};
|
|
1619
|
+
body: import("@ts-rest/core").ContractPlainType<{
|
|
1620
|
+
file: File;
|
|
1621
|
+
}>;
|
|
1622
|
+
summary: "Upload and process CSV file for issuer account creation";
|
|
1623
|
+
contentType: "multipart/form-data";
|
|
1624
|
+
path: "csv/issuers";
|
|
1625
|
+
responses: {
|
|
1626
|
+
200: import("zod").ZodObject<{
|
|
1627
|
+
totalRows: import("zod").ZodNumber;
|
|
1628
|
+
successfulRows: import("zod").ZodNumber;
|
|
1629
|
+
createdAccounts: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
1630
|
+
row: import("zod").ZodNumber;
|
|
1631
|
+
userId: import("zod").ZodString;
|
|
1632
|
+
investorAccountId: import("zod").ZodString;
|
|
1633
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1634
|
+
userId: string;
|
|
1635
|
+
investorAccountId: string;
|
|
1636
|
+
row: number;
|
|
1637
|
+
}, {
|
|
1638
|
+
userId: string;
|
|
1639
|
+
investorAccountId: string;
|
|
1640
|
+
row: number;
|
|
1641
|
+
}>, import("zod").ZodObject<{
|
|
1642
|
+
row: import("zod").ZodNumber;
|
|
1643
|
+
userId: import("zod").ZodString;
|
|
1644
|
+
accountId: import("zod").ZodString;
|
|
1645
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1646
|
+
accountId: string;
|
|
1647
|
+
userId: string;
|
|
1648
|
+
row: number;
|
|
1649
|
+
}, {
|
|
1650
|
+
accountId: string;
|
|
1651
|
+
userId: string;
|
|
1652
|
+
row: number;
|
|
1653
|
+
}>]>, "many">;
|
|
1654
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1655
|
+
totalRows: number;
|
|
1656
|
+
successfulRows: number;
|
|
1657
|
+
createdAccounts: ({
|
|
1658
|
+
userId: string;
|
|
1659
|
+
investorAccountId: string;
|
|
1660
|
+
row: number;
|
|
1661
|
+
} | {
|
|
1662
|
+
accountId: string;
|
|
1663
|
+
userId: string;
|
|
1664
|
+
row: number;
|
|
1665
|
+
})[];
|
|
1666
|
+
}, {
|
|
1667
|
+
totalRows: number;
|
|
1668
|
+
successfulRows: number;
|
|
1669
|
+
createdAccounts: ({
|
|
1670
|
+
userId: string;
|
|
1671
|
+
investorAccountId: string;
|
|
1672
|
+
row: number;
|
|
1673
|
+
} | {
|
|
1674
|
+
accountId: string;
|
|
1675
|
+
userId: string;
|
|
1676
|
+
row: number;
|
|
1677
|
+
})[];
|
|
1678
|
+
}>;
|
|
1679
|
+
400: import("zod").ZodObject<{
|
|
1680
|
+
status: import("zod").ZodNumber;
|
|
1681
|
+
message: import("zod").ZodString;
|
|
1682
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1683
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1684
|
+
message: string;
|
|
1685
|
+
status: number;
|
|
1686
|
+
errors: string[];
|
|
1687
|
+
}, {
|
|
1688
|
+
message: string;
|
|
1689
|
+
status: number;
|
|
1690
|
+
errors: string[];
|
|
1691
|
+
}>;
|
|
1692
|
+
401: import("zod").ZodObject<{
|
|
1693
|
+
status: import("zod").ZodNumber;
|
|
1694
|
+
message: import("zod").ZodString;
|
|
1695
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1696
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1697
|
+
message: string;
|
|
1698
|
+
status: number;
|
|
1699
|
+
errors: string[];
|
|
1700
|
+
}, {
|
|
1701
|
+
message: string;
|
|
1702
|
+
status: number;
|
|
1703
|
+
errors: string[];
|
|
1704
|
+
}>;
|
|
1705
|
+
422: import("zod").ZodObject<{
|
|
1706
|
+
status: import("zod").ZodNumber;
|
|
1707
|
+
message: import("zod").ZodString;
|
|
1708
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1709
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1710
|
+
message: string;
|
|
1711
|
+
status: number;
|
|
1712
|
+
errors: string[];
|
|
1713
|
+
}, {
|
|
1714
|
+
message: string;
|
|
1715
|
+
status: number;
|
|
1716
|
+
errors: string[];
|
|
1717
|
+
}>;
|
|
1718
|
+
500: import("zod").ZodObject<{
|
|
1719
|
+
status: import("zod").ZodNumber;
|
|
1720
|
+
message: import("zod").ZodString;
|
|
1721
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1722
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1723
|
+
message: string;
|
|
1724
|
+
status: number;
|
|
1725
|
+
errors: string[];
|
|
1726
|
+
}, {
|
|
1727
|
+
message: string;
|
|
1728
|
+
status: number;
|
|
1729
|
+
errors: string[];
|
|
1730
|
+
}>;
|
|
1731
|
+
};
|
|
1732
|
+
};
|
|
1594
1733
|
};
|
|
@@ -56,6 +56,23 @@ export const csvContract = c.router({
|
|
|
56
56
|
500: InternalError,
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
|
+
uploadIssuerCsv: {
|
|
60
|
+
summary: 'Upload and process CSV file for issuer account creation',
|
|
61
|
+
method: 'POST',
|
|
62
|
+
path: '/issuers',
|
|
63
|
+
contentType: 'multipart/form-data',
|
|
64
|
+
body: c.type(),
|
|
65
|
+
metadata: {
|
|
66
|
+
auth: true,
|
|
67
|
+
},
|
|
68
|
+
responses: {
|
|
69
|
+
200: CsvPersistenceResultZod,
|
|
70
|
+
400: BadRequestError,
|
|
71
|
+
401: UnauthorizedError,
|
|
72
|
+
422: UnprocessableError,
|
|
73
|
+
500: InternalError,
|
|
74
|
+
},
|
|
75
|
+
},
|
|
59
76
|
}, {
|
|
60
77
|
pathPrefix: 'csv',
|
|
61
78
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,u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AI;SACX;QACD,SAAS,EAAE;YACT,GAAG,EAAE,wBAAwB;YAC7B,GAAG,EAAE,eAAe;YACpB,GAAG,EAAE,iBAAiB;YACtB,GAAG,EAAE,aAAa;YAClB,GAAG,EAAE,aAAa;SACnB;KACF;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,0CAA0C;QACnD,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAkB;QAC9B,QAAQ,EAAE;YACR,IAAI,EAAE,IAAI;SACX;QACD,SAAS,EAAE;YACT,GAAG,EAAE,MAAM;YACX,GAAG,EAAE,eAAe;YACpB,GAAG,EAAE,iBAAiB;YACtB,GAAG,EAAE,aAAa;YAClB,GAAG,EAAE,aAAa;SACnB;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,yDAAyD;QAClE,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAkB;QAC9B,QAAQ,EAAE;YACR,IAAI,EAAE,IAAI;SACX;QACD,SAAS,EAAE;YACT,GAAG,EAAE,uBAAuB;YAC5B,GAAG,EAAE,eAAe;YACpB,GAAG,EAAE,iBAAiB;YACtB,GAAG,EAAE,kBAAkB;YACvB,GAAG,EAAE,aAAa;SACnB;KACF;CACF,EACD;IACE,UAAU,EAAE,KAAK;CAClB,CACF,CAAC"}
|
|
@@ -2781,7 +2781,7 @@ export declare const clientsContract: {
|
|
|
2781
2781
|
200: import("zod").ZodObject<{
|
|
2782
2782
|
totalRows: import("zod").ZodNumber;
|
|
2783
2783
|
successfulRows: import("zod").ZodNumber;
|
|
2784
|
-
createdAccounts: import("zod").ZodArray<import("zod").ZodObject<{
|
|
2784
|
+
createdAccounts: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
2785
2785
|
row: import("zod").ZodNumber;
|
|
2786
2786
|
userId: import("zod").ZodString;
|
|
2787
2787
|
investorAccountId: import("zod").ZodString;
|
|
@@ -2793,23 +2793,43 @@ export declare const clientsContract: {
|
|
|
2793
2793
|
userId: string;
|
|
2794
2794
|
investorAccountId: string;
|
|
2795
2795
|
row: number;
|
|
2796
|
-
}>, "
|
|
2796
|
+
}>, import("zod").ZodObject<{
|
|
2797
|
+
row: import("zod").ZodNumber;
|
|
2798
|
+
userId: import("zod").ZodString;
|
|
2799
|
+
accountId: import("zod").ZodString;
|
|
2800
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
2801
|
+
accountId: string;
|
|
2802
|
+
userId: string;
|
|
2803
|
+
row: number;
|
|
2804
|
+
}, {
|
|
2805
|
+
accountId: string;
|
|
2806
|
+
userId: string;
|
|
2807
|
+
row: number;
|
|
2808
|
+
}>]>, "many">;
|
|
2797
2809
|
}, "strip", import("zod").ZodTypeAny, {
|
|
2798
2810
|
totalRows: number;
|
|
2799
2811
|
successfulRows: number;
|
|
2800
|
-
createdAccounts: {
|
|
2812
|
+
createdAccounts: ({
|
|
2801
2813
|
userId: string;
|
|
2802
2814
|
investorAccountId: string;
|
|
2803
2815
|
row: number;
|
|
2804
|
-
}
|
|
2816
|
+
} | {
|
|
2817
|
+
accountId: string;
|
|
2818
|
+
userId: string;
|
|
2819
|
+
row: number;
|
|
2820
|
+
})[];
|
|
2805
2821
|
}, {
|
|
2806
2822
|
totalRows: number;
|
|
2807
2823
|
successfulRows: number;
|
|
2808
|
-
createdAccounts: {
|
|
2824
|
+
createdAccounts: ({
|
|
2809
2825
|
userId: string;
|
|
2810
2826
|
investorAccountId: string;
|
|
2811
2827
|
row: number;
|
|
2812
|
-
}
|
|
2828
|
+
} | {
|
|
2829
|
+
accountId: string;
|
|
2830
|
+
userId: string;
|
|
2831
|
+
row: number;
|
|
2832
|
+
})[];
|
|
2813
2833
|
}>;
|
|
2814
2834
|
400: import("zod").ZodObject<{
|
|
2815
2835
|
status: import("zod").ZodNumber;
|
|
@@ -4351,6 +4371,125 @@ export declare const clientsContract: {
|
|
|
4351
4371
|
}>;
|
|
4352
4372
|
};
|
|
4353
4373
|
};
|
|
4374
|
+
uploadIssuerCsv: {
|
|
4375
|
+
method: "POST";
|
|
4376
|
+
metadata: {
|
|
4377
|
+
auth: boolean;
|
|
4378
|
+
};
|
|
4379
|
+
body: import("@ts-rest/core").ContractPlainType<{
|
|
4380
|
+
file: File;
|
|
4381
|
+
}>;
|
|
4382
|
+
summary: "Upload and process CSV file for issuer account creation";
|
|
4383
|
+
contentType: "multipart/form-data";
|
|
4384
|
+
path: "/clients/api/v1/csv/issuers";
|
|
4385
|
+
responses: {
|
|
4386
|
+
200: import("zod").ZodObject<{
|
|
4387
|
+
totalRows: import("zod").ZodNumber;
|
|
4388
|
+
successfulRows: import("zod").ZodNumber;
|
|
4389
|
+
createdAccounts: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
4390
|
+
row: import("zod").ZodNumber;
|
|
4391
|
+
userId: import("zod").ZodString;
|
|
4392
|
+
investorAccountId: import("zod").ZodString;
|
|
4393
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4394
|
+
userId: string;
|
|
4395
|
+
investorAccountId: string;
|
|
4396
|
+
row: number;
|
|
4397
|
+
}, {
|
|
4398
|
+
userId: string;
|
|
4399
|
+
investorAccountId: string;
|
|
4400
|
+
row: number;
|
|
4401
|
+
}>, import("zod").ZodObject<{
|
|
4402
|
+
row: import("zod").ZodNumber;
|
|
4403
|
+
userId: import("zod").ZodString;
|
|
4404
|
+
accountId: import("zod").ZodString;
|
|
4405
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4406
|
+
accountId: string;
|
|
4407
|
+
userId: string;
|
|
4408
|
+
row: number;
|
|
4409
|
+
}, {
|
|
4410
|
+
accountId: string;
|
|
4411
|
+
userId: string;
|
|
4412
|
+
row: number;
|
|
4413
|
+
}>]>, "many">;
|
|
4414
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4415
|
+
totalRows: number;
|
|
4416
|
+
successfulRows: number;
|
|
4417
|
+
createdAccounts: ({
|
|
4418
|
+
userId: string;
|
|
4419
|
+
investorAccountId: string;
|
|
4420
|
+
row: number;
|
|
4421
|
+
} | {
|
|
4422
|
+
accountId: string;
|
|
4423
|
+
userId: string;
|
|
4424
|
+
row: number;
|
|
4425
|
+
})[];
|
|
4426
|
+
}, {
|
|
4427
|
+
totalRows: number;
|
|
4428
|
+
successfulRows: number;
|
|
4429
|
+
createdAccounts: ({
|
|
4430
|
+
userId: string;
|
|
4431
|
+
investorAccountId: string;
|
|
4432
|
+
row: number;
|
|
4433
|
+
} | {
|
|
4434
|
+
accountId: string;
|
|
4435
|
+
userId: string;
|
|
4436
|
+
row: number;
|
|
4437
|
+
})[];
|
|
4438
|
+
}>;
|
|
4439
|
+
400: import("zod").ZodObject<{
|
|
4440
|
+
status: import("zod").ZodNumber;
|
|
4441
|
+
message: import("zod").ZodString;
|
|
4442
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
4443
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4444
|
+
message: string;
|
|
4445
|
+
status: number;
|
|
4446
|
+
errors: string[];
|
|
4447
|
+
}, {
|
|
4448
|
+
message: string;
|
|
4449
|
+
status: number;
|
|
4450
|
+
errors: string[];
|
|
4451
|
+
}>;
|
|
4452
|
+
401: import("zod").ZodObject<{
|
|
4453
|
+
status: import("zod").ZodNumber;
|
|
4454
|
+
message: import("zod").ZodString;
|
|
4455
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
4456
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4457
|
+
message: string;
|
|
4458
|
+
status: number;
|
|
4459
|
+
errors: string[];
|
|
4460
|
+
}, {
|
|
4461
|
+
message: string;
|
|
4462
|
+
status: number;
|
|
4463
|
+
errors: string[];
|
|
4464
|
+
}>;
|
|
4465
|
+
422: import("zod").ZodObject<{
|
|
4466
|
+
status: import("zod").ZodNumber;
|
|
4467
|
+
message: import("zod").ZodString;
|
|
4468
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
4469
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4470
|
+
message: string;
|
|
4471
|
+
status: number;
|
|
4472
|
+
errors: string[];
|
|
4473
|
+
}, {
|
|
4474
|
+
message: string;
|
|
4475
|
+
status: number;
|
|
4476
|
+
errors: string[];
|
|
4477
|
+
}>;
|
|
4478
|
+
500: import("zod").ZodObject<{
|
|
4479
|
+
status: import("zod").ZodNumber;
|
|
4480
|
+
message: import("zod").ZodString;
|
|
4481
|
+
errors: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
4482
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4483
|
+
message: string;
|
|
4484
|
+
status: number;
|
|
4485
|
+
errors: string[];
|
|
4486
|
+
}, {
|
|
4487
|
+
message: string;
|
|
4488
|
+
status: number;
|
|
4489
|
+
errors: string[];
|
|
4490
|
+
}>;
|
|
4491
|
+
};
|
|
4492
|
+
};
|
|
4354
4493
|
};
|
|
4355
4494
|
files: {
|
|
4356
4495
|
postFile: {
|
|
@@ -12482,6 +12621,13 @@ export declare const clientsContract: {
|
|
|
12482
12621
|
status: import("../..").BaseStatus;
|
|
12483
12622
|
individualIds: string[];
|
|
12484
12623
|
}>;
|
|
12624
|
+
query: import("zod").ZodObject<{
|
|
12625
|
+
userId: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
12626
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
12627
|
+
userId: string;
|
|
12628
|
+
}, {
|
|
12629
|
+
userId: string;
|
|
12630
|
+
}>;
|
|
12485
12631
|
summary: "Post KYC review for individuals";
|
|
12486
12632
|
path: "/clients/api/v1/review/kyc";
|
|
12487
12633
|
responses: {
|
|
@@ -1,28 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
export declare const reviewContract: {
|
|
2
3
|
postReviewKyc: {
|
|
3
4
|
method: "POST";
|
|
4
5
|
metadata: {
|
|
5
6
|
auth: boolean;
|
|
6
7
|
};
|
|
7
|
-
body:
|
|
8
|
-
individualIds:
|
|
9
|
-
status:
|
|
10
|
-
}, "strip",
|
|
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, {
|
|
11
12
|
status: import("../../..").BaseStatus;
|
|
12
13
|
individualIds: string[];
|
|
13
14
|
}, {
|
|
14
15
|
status: import("../../..").BaseStatus;
|
|
15
16
|
individualIds: string[];
|
|
16
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
|
+
}>;
|
|
17
25
|
summary: "Post KYC review for individuals";
|
|
18
26
|
path: "review/kyc";
|
|
19
27
|
responses: {
|
|
20
|
-
201:
|
|
21
|
-
individualsUpdated:
|
|
22
|
-
status:
|
|
23
|
-
reviewedBy:
|
|
24
|
-
targetObject:
|
|
25
|
-
}, "strip",
|
|
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, {
|
|
26
34
|
status: import("../../..").BaseStatus;
|
|
27
35
|
reviewedBy: string;
|
|
28
36
|
individualsUpdated: string[];
|
|
@@ -33,11 +41,11 @@ export declare const reviewContract: {
|
|
|
33
41
|
individualsUpdated: string[];
|
|
34
42
|
targetObject?: any;
|
|
35
43
|
}>;
|
|
36
|
-
401:
|
|
37
|
-
status:
|
|
38
|
-
message:
|
|
39
|
-
errors:
|
|
40
|
-
}, "strip",
|
|
44
|
+
401: z.ZodObject<{
|
|
45
|
+
status: z.ZodNumber;
|
|
46
|
+
message: z.ZodString;
|
|
47
|
+
errors: z.ZodArray<z.ZodString, "many">;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
49
|
message: string;
|
|
42
50
|
status: number;
|
|
43
51
|
errors: string[];
|
|
@@ -46,11 +54,11 @@ export declare const reviewContract: {
|
|
|
46
54
|
status: number;
|
|
47
55
|
errors: string[];
|
|
48
56
|
}>;
|
|
49
|
-
403:
|
|
50
|
-
status:
|
|
51
|
-
message:
|
|
52
|
-
errors:
|
|
53
|
-
}, "strip",
|
|
57
|
+
403: z.ZodObject<{
|
|
58
|
+
status: z.ZodNumber;
|
|
59
|
+
message: z.ZodString;
|
|
60
|
+
errors: z.ZodArray<z.ZodString, "many">;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
62
|
message: string;
|
|
55
63
|
status: number;
|
|
56
64
|
errors: string[];
|
|
@@ -59,11 +67,11 @@ export declare const reviewContract: {
|
|
|
59
67
|
status: number;
|
|
60
68
|
errors: string[];
|
|
61
69
|
}>;
|
|
62
|
-
500:
|
|
63
|
-
status:
|
|
64
|
-
message:
|
|
65
|
-
errors:
|
|
66
|
-
}, "strip",
|
|
70
|
+
500: z.ZodObject<{
|
|
71
|
+
status: z.ZodNumber;
|
|
72
|
+
message: z.ZodString;
|
|
73
|
+
errors: z.ZodArray<z.ZodString, "many">;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
75
|
message: string;
|
|
68
76
|
status: number;
|
|
69
77
|
errors: string[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { initContract } from '@ts-rest/core';
|
|
2
|
-
import { ForbiddenError, InternalError, UnauthorizedError, PostReviewBody, PostReviewResponse, } from '../../../common/types/index.js';
|
|
2
|
+
import { ForbiddenError, InternalError, UnauthorizedError, PostReviewBody, PostReviewResponse, userIdSchema, } from '../../../common/types/index.js';
|
|
3
|
+
import { z } from 'zod';
|
|
3
4
|
const c = initContract();
|
|
4
5
|
export const reviewContract = c.router({
|
|
5
6
|
postReviewKyc: {
|
|
@@ -9,6 +10,9 @@ export const reviewContract = c.router({
|
|
|
9
10
|
metadata: {
|
|
10
11
|
auth: true,
|
|
11
12
|
},
|
|
13
|
+
query: z.object({
|
|
14
|
+
userId: userIdSchema,
|
|
15
|
+
}),
|
|
12
16
|
body: PostReviewBody,
|
|
13
17
|
responses: {
|
|
14
18
|
201: PostReviewResponse,
|
|
@@ -1 +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,
|
|
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"}
|