@dalmore/api-contracts 0.0.0-dev.2dc8e92 → 0.0.0-dev.58a860b

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.
@@ -12,7 +12,7 @@ export const ApiLogsFiltersZod = z.object({
12
12
  endpoint: z.string().optional(),
13
13
  apiKeyId: apiKeyIdSchema.optional(),
14
14
  method: z.nativeEnum(HttpMethod).optional(),
15
- status: z.nativeEnum(HttpStatus).optional(),
15
+ status: z.preprocess(Number, z.nativeEnum(HttpStatus)).optional(),
16
16
  from: dateSchema.optional().openapi({ example: 'MM/DD/YYYY' }),
17
17
  to: dateSchema.optional().openapi({ example: 'MM/DD/YYYY' }),
18
18
  });
@@ -202,6 +202,13 @@ export const PatchSaLogSchema = z.object({
202
202
 
203
203
  export type PatchSaLogSchema = z.infer<typeof PatchSaLogSchema>;
204
204
 
205
+ export const TradeBalanceResultZod = z.object({
206
+ tradeAdjustments: z.number().multipleOf(0.01),
207
+ chargedAmount: z.number().multipleOf(0.01),
208
+ balance: z.number().multipleOf(0.01),
209
+ });
210
+ export type TradeBalanceResultZod = z.infer<typeof TradeBalanceResultZod>;
211
+
205
212
  export const TradeZod = IBaseEntity.extend({
206
213
  investorAccountId: z.lazy(() => investorAccountIdSchema.nullable()),
207
214
  accountId: accountIdSchema.nullable(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalmore/api-contracts",
3
- "version": "0.0.0-dev.2dc8e92",
3
+ "version": "0.0.0-dev.58a860b",
4
4
  "description": "Type-safe API contracts for Dalmore Client Portal",
5
5
  "main": "./contracts/index.ts",
6
6
  "types": "./contracts/index.ts",