@jsdev_ninja/core 0.8.37 → 0.8.38
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.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
// 600 - Checking a card number700 - Approved without charge800 - Postpone transaction - success handle ass error
|
|
4
|
+
|
|
5
|
+
export const hypBooleanSchema = z.enum(["True", "False"]);
|
|
6
|
+
export const notEmptyTextSchema = z.string().min(1);
|
|
7
|
+
export const numericTextSchema = z.string().regex(/^\d+$/, "Must be a numeric string");
|
package/lib/entities/Locale.ts
CHANGED
package/lib/entities/Payment.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { hypBooleanSchema } from "./Atoms";
|
|
2
3
|
|
|
3
4
|
// 600 - Checking a card number700 - Approved without charge800 - Postpone transaction - success handle ass error
|
|
4
5
|
|
|
5
|
-
export const hypBooleanSchema = z.enum(["True", "False"]);
|
|
6
6
|
const textSchema = z.string().min(1);
|
|
7
7
|
const numericTextSchema = z.string().regex(/^\d+$/, "Must be a numeric string");
|
|
8
8
|
|
package/lib/entities/Store.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { hypBooleanSchema } from "./Atoms";
|
|
2
3
|
|
|
3
4
|
const StoreSchema = z.object({
|
|
4
5
|
id: z.string(),
|
|
@@ -7,14 +8,11 @@ const StoreSchema = z.object({
|
|
|
7
8
|
urls: z.array(z.string()),
|
|
8
9
|
logoUrl: z.string(),
|
|
9
10
|
tenantId: z.string(), // firebase auth tenantId
|
|
10
|
-
|
|
11
|
-
.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})
|
|
16
|
-
)
|
|
17
|
-
.optional(),
|
|
11
|
+
hypData: z.object({
|
|
12
|
+
masof: z.string().min(1),
|
|
13
|
+
password: z.string().min(1),
|
|
14
|
+
isJ5: hypBooleanSchema,
|
|
15
|
+
}),
|
|
18
16
|
});
|
|
19
17
|
|
|
20
18
|
// private sub collection
|
package/lib/entities/index.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./Address";
|
|
2
|
+
export * from "./Atoms";
|
|
3
|
+
export * from "./Cart";
|
|
2
4
|
export * from "./Category";
|
|
5
|
+
export * from "./Company";
|
|
6
|
+
export * from "./FavoriteProduct";
|
|
7
|
+
export * from "./Locale";
|
|
3
8
|
export * from "./Order";
|
|
9
|
+
export * from "./Payment";
|
|
4
10
|
export * from "./Product";
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
11
|
+
export * from "./Profile";
|
|
12
|
+
export * from "./Store";
|