@dalmore/api-contracts 0.0.0-dev.4eac826 → 0.0.0-dev.582cb9c

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.
@@ -168,6 +168,7 @@ export const PostIssuerOffering = z
168
168
  .default(AssetTemplateType.STANDARD)
169
169
  .openapi({ example: AssetTemplateType.STANDARD }),
170
170
  tiers: z.array(z.number().positive()).nullable().optional(),
171
+ enableBonus: z.boolean().default(false).optional(),
171
172
  })
172
173
  .superRefine((data, ctx) => {
173
174
  // Check if both values are present, and if so, ensure minInvestment is less than maxInvestment
@@ -299,6 +300,7 @@ export const PatchIssuerOffering = z.object({
299
300
  .optional(),
300
301
  tiers: z.array(z.number().positive()).nullable().optional(),
301
302
  enabled: z.boolean().optional(),
303
+ enableBonus: z.boolean().optional(),
302
304
  });
303
305
  export type PatchIssuerOffering = z.infer<typeof PatchIssuerOffering>;
304
306
 
@@ -230,6 +230,7 @@ export const PatchOffering = PatchOfferingBase.merge(
230
230
  .nullable()
231
231
  .optional(),
232
232
  tiers: z.array(z.number().positive()).nullable().optional(),
233
+ enableBonus: z.boolean().optional(),
233
234
  }),
234
235
  );
235
236
  export type PatchOffering = z.infer<typeof PatchOffering>;
@@ -276,6 +277,7 @@ export const PostComplianceOffering = PatchOfferingBase.merge(
276
277
  .default(AssetTemplateType.STANDARD)
277
278
  .openapi({ example: AssetTemplateType.STANDARD }),
278
279
  tiers: z.array(z.number().positive()).nullable().optional(),
280
+ enableBonus: z.boolean().default(false).optional(),
279
281
  }),
280
282
  ).superRefine(postAssetRefinement);
281
283
  export type PostComplianceOffering = z.infer<typeof PostComplianceOffering>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalmore/api-contracts",
3
- "version": "0.0.0-dev.4eac826",
3
+ "version": "0.0.0-dev.582cb9c",
4
4
  "description": "Type-safe API contracts for Dalmore Client Portal",
5
5
  "main": "./contracts/index.ts",
6
6
  "types": "./contracts/index.ts",