@jsdev_ninja/core 0.10.1 → 0.10.3

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.
@@ -2,6 +2,9 @@ import { z } from "zod";
2
2
  import { AddressSchema } from "./Address";
3
3
  import { notEmptyTextSchema } from "./Atoms";
4
4
 
5
+ export const ProfilePaymentTypeSchema = z.enum(["default", "delayed"]);
6
+ export type TProfilePaymentType = z.infer<typeof ProfilePaymentTypeSchema>;
7
+
5
8
  export const ProfileSchema = z.object({
6
9
  type: z.literal("Profile"),
7
10
  id: notEmptyTextSchema,
@@ -16,6 +19,7 @@ export const ProfileSchema = z.object({
16
19
  isAnonymous: z.boolean(),
17
20
  createdDate: z.number(),
18
21
  lastActivityDate: z.number(),
22
+ paymentType: ProfilePaymentTypeSchema,
19
23
  });
20
24
 
21
25
  export type TProfile = z.infer<typeof ProfileSchema>;
@@ -43,5 +47,6 @@ export function createEmptyProfile(): TProfile {
43
47
  createdDate: 0,
44
48
  lastActivityDate: 0,
45
49
  isAnonymous: true,
50
+ paymentType: ProfilePaymentTypeSchema.Values.default,
46
51
  };
47
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsdev_ninja/core",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "main": "dist/core.cjs.js",
5
5
  "module": "dist/core.es.js",
6
6
  "types": "dist/index.d.ts",