@jsdev_ninja/core 0.11.9 → 0.12.0

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.
@@ -31,16 +31,7 @@ export declare const DiscountSchema: z.ZodObject<{
31
31
  requiredQuantity: number;
32
32
  discountPrice: number;
33
33
  }>]>;
34
- image: z.ZodOptional<z.ZodObject<{
35
- url: z.ZodString;
36
- id: z.ZodString;
37
- }, "strip", z.ZodTypeAny, {
38
- id: string;
39
- url: string;
40
- }, {
41
- id: string;
42
- url: string;
43
- }>>;
34
+ images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44
35
  }, "strip", z.ZodTypeAny, {
45
36
  type: "Discount";
46
37
  id: string;
@@ -57,10 +48,7 @@ export declare const DiscountSchema: z.ZodObject<{
57
48
  requiredQuantity: number;
58
49
  discountPrice: number;
59
50
  };
60
- image?: {
61
- id: string;
62
- url: string;
63
- } | undefined;
51
+ images?: string[] | undefined;
64
52
  }, {
65
53
  type: "Discount";
66
54
  id: string;
@@ -77,10 +65,7 @@ export declare const DiscountSchema: z.ZodObject<{
77
65
  requiredQuantity: number;
78
66
  discountPrice: number;
79
67
  };
80
- image?: {
81
- id: string;
82
- url: string;
83
- } | undefined;
68
+ images?: string[] | undefined;
84
69
  }>;
85
70
  export type TDiscount = z.infer<typeof DiscountSchema>;
86
71
  //# sourceMappingURL=Discount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Discount.d.ts","sourceRoot":"","sources":["../../lib/entities/Discount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBzB,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"Discount.d.ts","sourceRoot":"","sources":["../../lib/entities/Discount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBzB,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -16,5 +16,5 @@ export const DiscountSchema = z.object({
16
16
  discountPrice: z.number().positive(),
17
17
  }),
18
18
  ]),
19
- image: z.object({ url: z.string().url(), id: z.string() }).optional(),
19
+ images: z.array(z.string().nonempty()).optional(),
20
20
  });
@@ -18,6 +18,6 @@ export const DiscountSchema = z.object({
18
18
  discountPrice: z.number().positive(),
19
19
  }),
20
20
  ]),
21
- image: z.object({ url: z.string().url(), id: z.string() }).optional(),
21
+ images: z.array(z.string().nonempty()).optional(),
22
22
  });
23
23
  export type TDiscount = z.infer<typeof DiscountSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsdev_ninja/core",
3
- "version": "0.11.9",
3
+ "version": "0.12.0",
4
4
  "main": "dist/core.cjs.js",
5
5
  "module": "dist/core.es.js",
6
6
  "types": "dist/index.d.ts",