@dalmore/api-contracts 0.0.0-dev.4c056b7 → 0.0.0-dev.56ec35b

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.
@@ -308,25 +308,3 @@ export const DisbursementSummaryZod = z.object({
308
308
  amountToBeTransferred: z.number(),
309
309
  });
310
310
  export type DisbursementSummaryZod = z.infer<typeof DisbursementSummaryZod>;
311
-
312
- export const EligibleOfferingZod = z.object({
313
- offeringId: offeringIdSchema,
314
- offeringName: z.string(),
315
- availableAmount: z.number(),
316
- });
317
- export type EligibleOfferingZod = z.infer<typeof EligibleOfferingZod>;
318
-
319
- export const IPaginatedEligibleOffering = z.object({
320
- items: z.array(EligibleOfferingZod),
321
- meta: IPaginationMeta,
322
- });
323
- export type IPaginatedEligibleOffering = z.infer<
324
- typeof IPaginatedEligibleOffering
325
- >;
326
-
327
- export const EligibleOfferingsFiltersZod = z.object({
328
- search: z.string().optional(),
329
- });
330
- export type EligibleOfferingsFiltersZod = z.infer<
331
- typeof EligibleOfferingsFiltersZod
332
- >;
@@ -19,9 +19,7 @@ import {
19
19
  DisbursementsMissingConfigQuery,
20
20
  DisbursementSummaryZod,
21
21
  DisbursementZod,
22
- EligibleOfferingsFiltersZod,
23
22
  IPaginatedDisbursement,
24
- IPaginatedEligibleOffering,
25
23
  PostDisbursementBalanceZod,
26
24
  PostDisbursementSummaryZod,
27
25
  PostDisbursementZod,
@@ -148,22 +146,6 @@ export const disbursementsContract = c.router(
148
146
  500: InternalError,
149
147
  },
150
148
  },
151
- getEligibleOfferings: {
152
- summary: 'Get eligible offerings for disbursement',
153
- method: 'GET',
154
- path: '/eligible-offerings',
155
- metadata: {
156
- auth: true,
157
- },
158
- query: PaginationOptionsZod.merge(EligibleOfferingsFiltersZod),
159
- responses: {
160
- 200: IPaginatedEligibleOffering,
161
- 401: UnauthorizedError,
162
- 403: ForbiddenError,
163
- 404: NotFoundError,
164
- 500: InternalError,
165
- },
166
- },
167
149
  },
168
150
  {
169
151
  pathPrefix: 'disbursements',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalmore/api-contracts",
3
- "version": "0.0.0-dev.4c056b7",
3
+ "version": "0.0.0-dev.56ec35b",
4
4
  "description": "Type-safe API contracts for Dalmore Client Portal",
5
5
  "main": "./contracts/index.ts",
6
6
  "types": "./contracts/index.ts",