@lasterp/shared 1.0.0-beta.22 → 1.0.0-beta.23

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.
package/dist/index.cjs CHANGED
@@ -110,7 +110,7 @@ var colourFormSchema = import_zod.z.object({
110
110
  images: import_zod.z.array(import_zod.z.string()).default([]).optional()
111
111
  });
112
112
  var screenFormSchema = import_zod.z.object({
113
- screen: import_zod.z.string().min(1, "Screen is required"),
113
+ screen: import_zod.z.number().positive("Screen is required"),
114
114
  height: import_zod.z.number().positive().optional(),
115
115
  width: import_zod.z.number().positive().optional(),
116
116
  weight: import_zod.z.number().positive().optional()
package/dist/index.d.cts CHANGED
@@ -58,7 +58,7 @@ declare const colourFormSchema: z.ZodObject<{
58
58
  images: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
59
59
  }>;
60
60
  declare const screenFormSchema: z.ZodObject<{
61
- screen: z.ZodString;
61
+ screen: z.ZodNumber;
62
62
  height: z.ZodOptional<z.ZodNumber>;
63
63
  width: z.ZodOptional<z.ZodNumber>;
64
64
  weight: z.ZodOptional<z.ZodNumber>;
@@ -91,7 +91,7 @@ declare const itemFormSchema: z.ZodObject<{
91
91
  storages: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
92
92
  memories: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
93
93
  screens: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
94
- screen: z.ZodString;
94
+ screen: z.ZodNumber;
95
95
  height: z.ZodOptional<z.ZodNumber>;
96
96
  width: z.ZodOptional<z.ZodNumber>;
97
97
  weight: z.ZodOptional<z.ZodNumber>;
package/dist/index.d.ts CHANGED
@@ -58,7 +58,7 @@ declare const colourFormSchema: z.ZodObject<{
58
58
  images: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
59
59
  }>;
60
60
  declare const screenFormSchema: z.ZodObject<{
61
- screen: z.ZodString;
61
+ screen: z.ZodNumber;
62
62
  height: z.ZodOptional<z.ZodNumber>;
63
63
  width: z.ZodOptional<z.ZodNumber>;
64
64
  weight: z.ZodOptional<z.ZodNumber>;
@@ -91,7 +91,7 @@ declare const itemFormSchema: z.ZodObject<{
91
91
  storages: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
92
92
  memories: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
93
93
  screens: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
94
- screen: z.ZodString;
94
+ screen: z.ZodNumber;
95
95
  height: z.ZodOptional<z.ZodNumber>;
96
96
  width: z.ZodOptional<z.ZodNumber>;
97
97
  weight: z.ZodOptional<z.ZodNumber>;
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ var colourFormSchema = z.object({
10
10
  images: z.array(z.string()).default([]).optional()
11
11
  });
12
12
  var screenFormSchema = z.object({
13
- screen: z.string().min(1, "Screen is required"),
13
+ screen: z.number().positive("Screen is required"),
14
14
  height: z.number().positive().optional(),
15
15
  width: z.number().positive().optional(),
16
16
  weight: z.number().positive().optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lasterp/shared",
3
- "version": "1.0.0-beta.22",
3
+ "version": "1.0.0-beta.23",
4
4
  "description": "Shared repo for webapp and native app",
5
5
  "license": "MIT",
6
6
  "files": [