@jsdev_ninja/core 0.10.0 → 0.10.2

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.
@@ -6,6 +6,7 @@ declare const StoreSchema: z.ZodObject<{
6
6
  urls: z.ZodArray<z.ZodString, "many">;
7
7
  logoUrl: z.ZodString;
8
8
  tenantId: z.ZodString;
9
+ paymentType: z.ZodEnum<["external", "j5"]>;
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  id: string;
11
12
  companyId: string;
@@ -13,6 +14,7 @@ declare const StoreSchema: z.ZodObject<{
13
14
  tenantId: string;
14
15
  urls: string[];
15
16
  logoUrl: string;
17
+ paymentType: "external" | "j5";
16
18
  }, {
17
19
  id: string;
18
20
  companyId: string;
@@ -20,6 +22,7 @@ declare const StoreSchema: z.ZodObject<{
20
22
  tenantId: string;
21
23
  urls: string[];
22
24
  logoUrl: string;
25
+ paymentType: "external" | "j5";
23
26
  }>;
24
27
  export type TStore = z.infer<typeof StoreSchema>;
25
28
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Store.d.ts","sourceRoot":"","sources":["../../lib/entities/Store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;EAOf,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"Store.d.ts","sourceRoot":"","sources":["../../lib/entities/Store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;EAQf,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
@@ -6,4 +6,5 @@ const StoreSchema = z.object({
6
6
  urls: z.array(z.string()),
7
7
  logoUrl: z.string(),
8
8
  tenantId: z.string(), // firebase auth tenantId
9
+ paymentType: z.enum(["external", "j5"]),
9
10
  });
@@ -18,6 +18,8 @@ export const ProfileSchema = z.object({
18
18
  lastActivityDate: z.number(),
19
19
  });
20
20
 
21
+ // todo payment type
22
+
21
23
  export type TProfile = z.infer<typeof ProfileSchema>;
22
24
 
23
25
  export function createEmptyProfile(): TProfile {
@@ -7,5 +7,6 @@ const StoreSchema = z.object({
7
7
  urls: z.array(z.string()),
8
8
  logoUrl: z.string(),
9
9
  tenantId: z.string(), // firebase auth tenantId
10
+ paymentType: z.enum(["external", "j5"]),
10
11
  });
11
12
  export type TStore = z.infer<typeof StoreSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsdev_ninja/core",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "main": "dist/core.cjs.js",
5
5
  "module": "dist/core.es.js",
6
6
  "types": "dist/index.d.ts",