@zyacreatives/shared 2.5.32 → 2.5.33

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.
@@ -492,7 +492,7 @@ export declare const ProductDiscountCheckInputSchema: z.ZodObject<{
492
492
  }, z.core.$strip>;
493
493
  export declare const ProductDiscountCheckOutputSchema: z.ZodObject<{
494
494
  exists: z.ZodBoolean;
495
- discount: z.ZodObject<{
495
+ discount: z.ZodNullable<z.ZodObject<{
496
496
  discountType: z.ZodEnum<{
497
497
  readonly FIXED_AMOUNT: "Fixed Amount";
498
498
  readonly PERCENTAGE: "Percentage";
@@ -500,7 +500,7 @@ export declare const ProductDiscountCheckOutputSchema: z.ZodObject<{
500
500
  amount: z.ZodNumber;
501
501
  discountCode: z.ZodOptional<z.ZodString>;
502
502
  active: z.ZodDefault<z.ZodBoolean>;
503
- }, z.core.$strip>;
503
+ }, z.core.$strip>>;
504
504
  }, z.core.$strip>;
505
505
  export type ProductLink = z.infer<typeof ProductLinkSchema>;
506
506
  export type SearchProductInput = z.infer<typeof SearchProductInputSchema>;
@@ -210,5 +210,5 @@ exports.ProductDiscountCheckInputSchema = zod_openapi_1.z.object({
210
210
  });
211
211
  exports.ProductDiscountCheckOutputSchema = zod_openapi_1.z.object({
212
212
  exists: zod_openapi_1.z.boolean(),
213
- discount: exports.ProductDiscountEntitySchema,
213
+ discount: exports.ProductDiscountEntitySchema.nullable(),
214
214
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.5.32",
3
+ "version": "2.5.33",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -263,7 +263,7 @@ export const ProductDiscountCheckInputSchema = z.object({
263
263
 
264
264
  export const ProductDiscountCheckOutputSchema = z.object({
265
265
  exists: z.boolean(),
266
- discount: ProductDiscountEntitySchema,
266
+ discount: ProductDiscountEntitySchema.nullable(),
267
267
  });
268
268
 
269
269
  export type ProductLink = z.infer<typeof ProductLinkSchema>;
@@ -288,5 +288,9 @@ export type MarketplaceProductEntity = z.infer<
288
288
  typeof MarketplaceProductEntitySchema
289
289
  >;
290
290
 
291
- export type ProductDiscountCheckInput = z.infer<typeof ProductDiscountCheckInputSchema>;
292
- export type ProductDiscountCheckOutput = z.infer<typeof ProductDiscountCheckOutputSchema>;
291
+ export type ProductDiscountCheckInput = z.infer<
292
+ typeof ProductDiscountCheckInputSchema
293
+ >;
294
+ export type ProductDiscountCheckOutput = z.infer<
295
+ typeof ProductDiscountCheckOutputSchema
296
+ >;