@dalmore/api-contracts 0.0.0-dev.ab1033d → 0.0.0-dev.d070175
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/activity.types.ts +1 -1
- package/common/types/bonus-tier.types.ts +24 -0
- package/common/types/cart.types.ts +4 -1
- package/common/types/common.types.ts +12 -6
- package/common/types/dashboard.types.ts +2 -9
- package/common/types/disbursements.types.ts +119 -3
- package/common/types/file.types.ts +20 -4
- package/common/types/i-will-do-it-later.types.ts +68 -0
- package/common/types/index.ts +2 -0
- package/common/types/individuals.types.ts +2 -15
- package/common/types/issuer-offering.types.ts +8 -9
- package/common/types/issuer-payment-method.types.ts +41 -0
- package/common/types/issuer.types.ts +9 -0
- package/common/types/offering.types.ts +4 -9
- package/common/types/site.types.ts +2 -9
- package/common/types/{trade-line-item.type.ts → trade-line-item.types.ts} +2 -9
- package/common/types/trade.types.ts +1 -1
- package/common/types/transaction.types.ts +12 -1
- package/common/types/user.types.ts +15 -28
- package/contracts/clients/cart/index.ts +41 -1
- package/contracts/clients/index.ts +8 -0
- package/contracts/clients/issuer-payment-methods/index.ts +39 -0
- package/contracts/clients/payment-methods/index.ts +85 -0
- package/contracts/clients/trade-line-items/index.ts +66 -0
- package/contracts/clients/trades/index.ts +1 -1
- package/contracts/clients/transactions/index.ts +37 -0
- package/contracts/compliance/bonus-tiers/index.ts +19 -0
- package/contracts/compliance/trade-line-items/index.ts +1 -1
- package/contracts/compliance/users/index.ts +21 -0
- package/contracts/investors/bonus-tiers/index.ts +18 -0
- package/contracts/investors/individuals/index.ts +22 -0
- package/contracts/investors/trade-line-items/index.ts +1 -1
- package/contracts/issuers/bonus-tiers/index.ts +18 -0
- package/contracts/issuers/disbursements/index.ts +36 -0
- package/package.json +1 -1
|
@@ -17,9 +17,13 @@ import {
|
|
|
17
17
|
DisbursementMissingConfigZod,
|
|
18
18
|
DisbursementsIncludeQuery,
|
|
19
19
|
DisbursementsMissingConfigQuery,
|
|
20
|
+
DisbursementPreviewZod,
|
|
20
21
|
DisbursementSummaryZod,
|
|
21
22
|
DisbursementZod,
|
|
23
|
+
GetDisbursementPreviewQueryZod,
|
|
24
|
+
EligibleOfferingsFiltersZod,
|
|
22
25
|
IPaginatedDisbursement,
|
|
26
|
+
IPaginatedEligibleOffering,
|
|
23
27
|
PostDisbursementBalanceZod,
|
|
24
28
|
PostDisbursementSummaryZod,
|
|
25
29
|
PostDisbursementZod,
|
|
@@ -146,6 +150,38 @@ export const disbursementsContract = c.router(
|
|
|
146
150
|
500: InternalError,
|
|
147
151
|
},
|
|
148
152
|
},
|
|
153
|
+
getDisbursementPreview: {
|
|
154
|
+
summary: 'Get disbursement preview data for Step 2',
|
|
155
|
+
method: 'GET',
|
|
156
|
+
path: '/preview',
|
|
157
|
+
metadata: {
|
|
158
|
+
auth: true,
|
|
159
|
+
},
|
|
160
|
+
query: GetDisbursementPreviewQueryZod,
|
|
161
|
+
responses: {
|
|
162
|
+
200: DisbursementPreviewZod,
|
|
163
|
+
400: BadRequestError,
|
|
164
|
+
401: UnauthorizedError,
|
|
165
|
+
404: NotFoundError,
|
|
166
|
+
500: InternalError,
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
getEligibleOfferings: {
|
|
170
|
+
summary: 'Get eligible offerings for disbursement',
|
|
171
|
+
method: 'GET',
|
|
172
|
+
path: '/eligible-offerings',
|
|
173
|
+
metadata: {
|
|
174
|
+
auth: true,
|
|
175
|
+
},
|
|
176
|
+
query: PaginationOptionsZod.merge(EligibleOfferingsFiltersZod),
|
|
177
|
+
responses: {
|
|
178
|
+
200: IPaginatedEligibleOffering,
|
|
179
|
+
401: UnauthorizedError,
|
|
180
|
+
403: ForbiddenError,
|
|
181
|
+
404: NotFoundError,
|
|
182
|
+
500: InternalError,
|
|
183
|
+
},
|
|
184
|
+
},
|
|
149
185
|
},
|
|
150
186
|
{
|
|
151
187
|
pathPrefix: 'disbursements',
|
package/package.json
CHANGED