@jsdev_ninja/core 0.12.4 → 0.12.5

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.
@@ -5,7 +5,7 @@ export const CartItemProductSchema = z.object({
5
5
  originalPrice: z.number().optional(),
6
6
  finalPrice: z.number().optional(),
7
7
  finalDiscount: z.number().optional(),
8
- amount: z.number().int().positive({ message: "Quantity must be a positive integer." }),
8
+ amount: z.number().positive({ message: "Quantity must be a positive number." }),
9
9
  });
10
10
  export const CartSchema = z.object({
11
11
  type: z.literal("Cart"),
@@ -746,7 +746,6 @@ export declare const OrderSchema: z.ZodObject<{
746
746
  actualAmount: z.ZodOptional<z.ZodNumber>;
747
747
  date: z.ZodNumber;
748
748
  deliveryDate: z.ZodOptional<z.ZodNumber>;
749
- createdAt: z.ZodOptional<z.ZodNumber>;
750
749
  client: z.ZodObject<{
751
750
  type: z.ZodLiteral<"Profile">;
752
751
  id: z.ZodString;
@@ -974,7 +973,6 @@ export declare const OrderSchema: z.ZodObject<{
974
973
  originalAmount?: number | undefined;
975
974
  actualAmount?: number | undefined;
976
975
  deliveryDate?: number | undefined;
977
- createdAt?: number | undefined;
978
976
  nameOnInvoice?: string | undefined;
979
977
  clientComment?: string | undefined;
980
978
  }, {
@@ -1113,7 +1111,6 @@ export declare const OrderSchema: z.ZodObject<{
1113
1111
  originalAmount?: number | undefined;
1114
1112
  actualAmount?: number | undefined;
1115
1113
  deliveryDate?: number | undefined;
1116
- createdAt?: number | undefined;
1117
1114
  nameOnInvoice?: string | undefined;
1118
1115
  clientComment?: string | undefined;
1119
1116
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../lib/entities/Order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BtB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
@@ -36,7 +36,6 @@ export const OrderSchema = z.object({
36
36
  actualAmount: z.number().positive().optional(), // what store charge
37
37
  date: z.number(),
38
38
  deliveryDate: z.coerce.number().optional(),
39
- createdAt: z.number().optional(),
40
39
  client: ProfileSchema.required({}),
41
40
  nameOnInvoice: z.string().optional(),
42
41
  clientComment: z.string().optional(),
@@ -6,7 +6,7 @@ export const CartItemProductSchema = z.object({
6
6
  originalPrice: z.number().optional(),
7
7
  finalPrice: z.number().optional(),
8
8
  finalDiscount: z.number().optional(),
9
- amount: z.number().int().positive({ message: "Quantity must be a positive integer." }),
9
+ amount: z.number().positive({ message: "Quantity must be a positive number." }),
10
10
  });
11
11
 
12
12
  export type TCartItemProduct = z.infer<typeof CartItemProductSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsdev_ninja/core",
3
- "version": "0.12.4",
3
+ "version": "0.12.5",
4
4
  "main": "dist/core.cjs.js",
5
5
  "module": "dist/core.es.js",
6
6
  "types": "dist/index.d.ts",