@jsdev_ninja/core 0.8.54 → 0.8.55

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.
Files changed (48) hide show
  1. package/dist/core.cjs.js +1 -1
  2. package/dist/core.cjs.js.map +1 -1
  3. package/dist/core.es.js +721 -950
  4. package/dist/core.es.js.map +1 -1
  5. package/dist/core.umd.js +1 -1
  6. package/dist/core.umd.js.map +1 -1
  7. package/dist/entities/Atoms.d.ts +0 -1
  8. package/dist/entities/Atoms.d.ts.map +1 -1
  9. package/dist/entities/Atoms.js +0 -2
  10. package/dist/entities/Company.d.ts +0 -32
  11. package/dist/entities/Company.d.ts.map +1 -1
  12. package/dist/entities/Company.js +0 -6
  13. package/dist/entities/Store.d.ts +0 -36
  14. package/dist/entities/Store.d.ts.map +1 -1
  15. package/dist/entities/Store.js +0 -11
  16. package/dist/entities/index.d.ts +0 -1
  17. package/dist/entities/index.d.ts.map +1 -1
  18. package/dist/entities/index.js +0 -1
  19. package/dist/firebase-api/app.d.ts +2 -0
  20. package/dist/firebase-api/app.d.ts.map +1 -0
  21. package/dist/firebase-api/app.js +16 -0
  22. package/dist/firebase-api/index.d.ts +6 -6
  23. package/dist/firebase-api/index.js +2 -2
  24. package/dist/index.d.ts +0 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +0 -1
  27. package/dist/tsconfig.app.tsbuildinfo +1 -1
  28. package/lib/entities/Atoms.ts +0 -3
  29. package/lib/entities/Company.ts +0 -6
  30. package/lib/entities/Store.ts +0 -14
  31. package/lib/entities/index.ts +0 -1
  32. package/lib/firebase-api/app.ts +18 -0
  33. package/lib/firebase-api/index.ts +2 -2
  34. package/lib/index.tsx +0 -1
  35. package/package.json +1 -1
  36. package/src/main.tsx +1 -3
  37. package/dist/entities/Payment.d.ts +0 -368
  38. package/dist/entities/Payment.d.ts.map +0 -1
  39. package/dist/entities/Payment.js +0 -108
  40. package/dist/hypPaymentService/index.d.ts +0 -33
  41. package/dist/hypPaymentService/index.d.ts.map +0 -1
  42. package/dist/hypPaymentService/index.js +0 -100
  43. package/lib/entities/Payment.ts +0 -133
  44. package/lib/hypPaymentService/index.ts +0 -139
  45. package/src/App.css +0 -42
  46. package/src/App.tsx +0 -35
  47. package/src/assets/react.svg +0 -1
  48. package/src/index.css +0 -68
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- export declare const hypBooleanSchema: z.ZodEnum<["True", "False"]>;
3
2
  export declare const notEmptyTextSchema: z.ZodString;
4
3
  export declare const numericTextSchema: z.ZodString;
5
4
  //# sourceMappingURL=Atoms.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Atoms.d.ts","sourceRoot":"","sources":["../../lib/entities/Atoms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gBAAgB,8BAA4B,CAAC;AAC1D,eAAO,MAAM,kBAAkB,aAAoB,CAAC;AACpD,eAAO,MAAM,iBAAiB,aAAwD,CAAC"}
1
+ {"version":3,"file":"Atoms.d.ts","sourceRoot":"","sources":["../../lib/entities/Atoms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB,aAAoB,CAAC;AACpD,eAAO,MAAM,iBAAiB,aAAwD,CAAC"}
@@ -1,5 +1,3 @@
1
1
  import { z } from "zod";
2
- // 600 - Checking a card number700 - Approved without charge800 - Postpone transaction - success handle ass error
3
- export const hypBooleanSchema = z.enum(["True", "False"]);
4
2
  export const notEmptyTextSchema = z.string().min(1);
5
3
  export const numericTextSchema = z.string().regex(/^\d+$/, "Must be a numeric string");
@@ -3,46 +3,14 @@ export declare const CompanySchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
5
5
  websiteDomains: z.ZodArray<z.ZodString, "many">;
6
- owner: z.ZodObject<{
7
- name: z.ZodString;
8
- emails: z.ZodObject<{
9
- mainEmail: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- mainEmail: string;
12
- }, {
13
- mainEmail: string;
14
- }>;
15
- }, "strip", z.ZodTypeAny, {
16
- name: string;
17
- emails: {
18
- mainEmail: string;
19
- };
20
- }, {
21
- name: string;
22
- emails: {
23
- mainEmail: string;
24
- };
25
- }>;
26
6
  }, "strip", z.ZodTypeAny, {
27
7
  id: string;
28
8
  name: string;
29
9
  websiteDomains: string[];
30
- owner: {
31
- name: string;
32
- emails: {
33
- mainEmail: string;
34
- };
35
- };
36
10
  }, {
37
11
  id: string;
38
12
  name: string;
39
13
  websiteDomains: string[];
40
- owner: {
41
- name: string;
42
- emails: {
43
- mainEmail: string;
44
- };
45
- };
46
14
  }>;
47
15
  export type TCompany = z.infer<typeof CompanySchema>;
48
16
  //# sourceMappingURL=Company.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Company.d.ts","sourceRoot":"","sources":["../../lib/entities/Company.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUxB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"Company.d.ts","sourceRoot":"","sources":["../../lib/entities/Company.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa;;;;;;;;;;;;EAIxB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -3,10 +3,4 @@ export const CompanySchema = z.object({
3
3
  id: z.string(),
4
4
  name: z.string(),
5
5
  websiteDomains: z.array(z.string()),
6
- owner: z.object({
7
- name: z.string(),
8
- emails: z.object({
9
- mainEmail: z.string(),
10
- }),
11
- }),
12
6
  });
@@ -6,22 +6,6 @@ declare const StoreSchema: z.ZodObject<{
6
6
  urls: z.ZodArray<z.ZodString, "many">;
7
7
  logoUrl: z.ZodString;
8
8
  tenantId: z.ZodString;
9
- hypData: z.ZodObject<{
10
- masof: z.ZodString;
11
- password: z.ZodString;
12
- isJ5: z.ZodEnum<["True", "False"]>;
13
- KEY: z.ZodString;
14
- }, "strip", z.ZodTypeAny, {
15
- KEY: string;
16
- masof: string;
17
- password: string;
18
- isJ5: "True" | "False";
19
- }, {
20
- KEY: string;
21
- masof: string;
22
- password: string;
23
- isJ5: "True" | "False";
24
- }>;
25
9
  }, "strip", z.ZodTypeAny, {
26
10
  id: string;
27
11
  companyId: string;
@@ -29,12 +13,6 @@ declare const StoreSchema: z.ZodObject<{
29
13
  tenantId: string;
30
14
  urls: string[];
31
15
  logoUrl: string;
32
- hypData: {
33
- KEY: string;
34
- masof: string;
35
- password: string;
36
- isJ5: "True" | "False";
37
- };
38
16
  }, {
39
17
  id: string;
40
18
  companyId: string;
@@ -42,21 +20,7 @@ declare const StoreSchema: z.ZodObject<{
42
20
  tenantId: string;
43
21
  urls: string[];
44
22
  logoUrl: string;
45
- hypData: {
46
- KEY: string;
47
- masof: string;
48
- password: string;
49
- isJ5: "True" | "False";
50
- };
51
- }>;
52
- export declare const StorePrivateSchema: z.ZodObject<{
53
- storeEmail: z.ZodString;
54
- }, "strip", z.ZodTypeAny, {
55
- storeEmail: string;
56
- }, {
57
- storeEmail: string;
58
23
  }>;
59
24
  export type TStore = z.infer<typeof StoreSchema>;
60
- export type TStorePrivate = z.infer<typeof StorePrivateSchema>;
61
25
  export {};
62
26
  //# sourceMappingURL=Store.d.ts.map
@@ -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;AAGxB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaf,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACjD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,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;;;;;;;;;;;;;;;;;;;;;EAOf,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import { hypBooleanSchema } from "./Atoms";
3
2
  const StoreSchema = z.object({
4
3
  id: z.string(),
5
4
  companyId: z.string(),
@@ -7,14 +6,4 @@ const StoreSchema = z.object({
7
6
  urls: z.array(z.string()),
8
7
  logoUrl: z.string(),
9
8
  tenantId: z.string(), // firebase auth tenantId
10
- hypData: z.object({
11
- masof: z.string().min(1),
12
- password: z.string().min(1),
13
- isJ5: hypBooleanSchema,
14
- KEY: z.string().min(1), // api key
15
- }),
16
- });
17
- // private sub collection
18
- export const StorePrivateSchema = z.object({
19
- storeEmail: z.string().email(),
20
9
  });
@@ -6,7 +6,6 @@ export * from "./Company";
6
6
  export * from "./FavoriteProduct";
7
7
  export * from "./Locale";
8
8
  export * from "./Order";
9
- export * from "./Payment";
10
9
  export * from "./Product";
11
10
  export * from "./Profile";
12
11
  export * from "./Store";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -6,7 +6,6 @@ export * from "./Company";
6
6
  export * from "./FavoriteProduct";
7
7
  export * from "./Locale";
8
8
  export * from "./Order";
9
- export * from "./Payment";
10
9
  export * from "./Product";
11
10
  export * from "./Profile";
12
11
  export * from "./Store";
@@ -0,0 +1,2 @@
1
+ export declare const app: import("@firebase/app").FirebaseApp;
2
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../lib/firebase-api/app.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,GAAG,qCAAgC,CAAC"}
@@ -0,0 +1,16 @@
1
+ // Import the functions you need from the SDKs you need
2
+ import { initializeApp } from "firebase/app";
3
+ // Your web app's Firebase configuration
4
+ // For Firebase JS SDK v7.20.0 and later, measurementId is optional
5
+ const firebaseConfig = {
6
+ apiKey: "AIzaSyAXtA4pdBs7GLX45lK3jYZRiUwo7M06-_s",
7
+ authDomain: "jsdev-stores-prod.firebaseapp.com",
8
+ projectId: "jsdev-stores-prod",
9
+ storageBucket: "jsdev-stores-prod.appspot.com",
10
+ messagingSenderId: "333321054844",
11
+ appId: "1:333321054844:web:7d3c15617daa54107537f9",
12
+ measurementId: "G-CJ44QNETK8",
13
+ };
14
+ // Initialize Firebase
15
+ export const app = initializeApp(firebaseConfig);
16
+ // TESTER
@@ -1,6 +1,6 @@
1
1
  export declare const systemCollections: {
2
- readonly stores: "stores";
3
- readonly companies: "companies";
2
+ readonly stores: "STORES";
3
+ readonly companies: "COMPANIES";
4
4
  };
5
5
  export declare const storeCollections: {
6
6
  readonly products: "products";
@@ -14,8 +14,8 @@ export declare const storeCollections: {
14
14
  };
15
15
  export declare const FirestoreApi: {
16
16
  systemCollections: {
17
- readonly stores: "stores";
18
- readonly companies: "companies";
17
+ readonly stores: "STORES";
18
+ readonly companies: "COMPANIES";
19
19
  };
20
20
  storeCollections: {
21
21
  readonly products: "products";
@@ -38,8 +38,8 @@ export declare const FirestoreApi: {
38
38
  export declare const FirebaseAPI: {
39
39
  firestore: {
40
40
  systemCollections: {
41
- readonly stores: "stores";
42
- readonly companies: "companies";
41
+ readonly stores: "STORES";
42
+ readonly companies: "COMPANIES";
43
43
  };
44
44
  storeCollections: {
45
45
  readonly products: "products";
@@ -1,6 +1,6 @@
1
1
  export const systemCollections = {
2
- stores: "stores",
3
- companies: "companies",
2
+ stores: "STORES",
3
+ companies: "COMPANIES",
4
4
  };
5
5
  export const storeCollections = {
6
6
  products: "products",
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from "./entities";
2
- export * from "./hypPaymentService";
3
2
  export { FirebaseAPI } from "./firebase-api";
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from "./entities";
2
- export * from "./hypPaymentService";
3
2
  export { FirebaseAPI } from "./firebase-api";
@@ -1 +1 @@
1
- {"root":["../lib/index.tsx","../lib/entities/address.ts","../lib/entities/atoms.ts","../lib/entities/cart.ts","../lib/entities/category.ts","../lib/entities/company.ts","../lib/entities/favoriteproduct.ts","../lib/entities/locale.ts","../lib/entities/order.ts","../lib/entities/payment.ts","../lib/entities/product.ts","../lib/entities/profile.ts","../lib/entities/store.ts","../lib/entities/index.ts","../lib/firebase-api/index.ts","../lib/hyppaymentservice/index.ts"],"version":"5.7.3"}
1
+ {"root":["../lib/index.tsx","../lib/entities/address.ts","../lib/entities/atoms.ts","../lib/entities/cart.ts","../lib/entities/category.ts","../lib/entities/company.ts","../lib/entities/favoriteproduct.ts","../lib/entities/locale.ts","../lib/entities/order.ts","../lib/entities/product.ts","../lib/entities/profile.ts","../lib/entities/store.ts","../lib/entities/index.ts","../lib/firebase-api/app.ts","../lib/firebase-api/index.ts"],"version":"5.7.3"}
@@ -1,7 +1,4 @@
1
1
  import { z } from "zod";
2
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
3
  export const notEmptyTextSchema = z.string().min(1);
7
4
  export const numericTextSchema = z.string().regex(/^\d+$/, "Must be a numeric string");
@@ -4,12 +4,6 @@ export const CompanySchema = z.object({
4
4
  id: z.string(),
5
5
  name: z.string(),
6
6
  websiteDomains: z.array(z.string()),
7
- owner: z.object({
8
- name: z.string(),
9
- emails: z.object({
10
- mainEmail: z.string(),
11
- }),
12
- }),
13
7
  });
14
8
 
15
9
  export type TCompany = z.infer<typeof CompanySchema>;
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import { hypBooleanSchema } from "./Atoms";
3
2
 
4
3
  const StoreSchema = z.object({
5
4
  id: z.string(),
@@ -8,18 +7,5 @@ const StoreSchema = z.object({
8
7
  urls: z.array(z.string()),
9
8
  logoUrl: z.string(),
10
9
  tenantId: z.string(), // firebase auth tenantId
11
- hypData: z.object({
12
- masof: z.string().min(1),
13
- password: z.string().min(1),
14
- isJ5: hypBooleanSchema,
15
- KEY: z.string().min(1), // api key
16
- }),
17
10
  });
18
-
19
- // private sub collection
20
- export const StorePrivateSchema = z.object({
21
- storeEmail: z.string().email(),
22
- });
23
-
24
11
  export type TStore = z.infer<typeof StoreSchema>;
25
- export type TStorePrivate = z.infer<typeof StorePrivateSchema>;
@@ -6,7 +6,6 @@ export * from "./Company";
6
6
  export * from "./FavoriteProduct";
7
7
  export * from "./Locale";
8
8
  export * from "./Order";
9
- export * from "./Payment";
10
9
  export * from "./Product";
11
10
  export * from "./Profile";
12
11
  export * from "./Store";
@@ -0,0 +1,18 @@
1
+ // Import the functions you need from the SDKs you need
2
+ import { initializeApp } from "firebase/app";
3
+ // Your web app's Firebase configuration
4
+ // For Firebase JS SDK v7.20.0 and later, measurementId is optional
5
+ const firebaseConfig = {
6
+ apiKey: "AIzaSyAXtA4pdBs7GLX45lK3jYZRiUwo7M06-_s",
7
+ authDomain: "jsdev-stores-prod.firebaseapp.com",
8
+ projectId: "jsdev-stores-prod",
9
+ storageBucket: "jsdev-stores-prod.appspot.com",
10
+ messagingSenderId: "333321054844",
11
+ appId: "1:333321054844:web:7d3c15617daa54107537f9",
12
+ measurementId: "G-CJ44QNETK8",
13
+ };
14
+
15
+ // Initialize Firebase
16
+ export const app = initializeApp(firebaseConfig);
17
+
18
+ // TESTER
@@ -1,6 +1,6 @@
1
1
  export const systemCollections = {
2
- stores: "stores",
3
- companies: "companies",
2
+ stores: "STORES",
3
+ companies: "COMPANIES",
4
4
  } as const;
5
5
 
6
6
  export const storeCollections = {
package/lib/index.tsx CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from "./entities";
2
- export * from "./hypPaymentService";
3
2
  export { FirebaseAPI } from "./firebase-api";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsdev_ninja/core",
3
- "version": "0.8.54",
3
+ "version": "0.8.55",
4
4
  "main": "dist/core.cjs.js",
5
5
  "module": "dist/core.es.js",
6
6
  "types": "dist/index.d.ts",
package/src/main.tsx CHANGED
@@ -1,3 +1 @@
1
- export const X: number = 20;
2
-
3
- export type F = { id2: string };
1
+ export {};