@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.
- package/dist/core.cjs.js +1 -1
- package/dist/core.cjs.js.map +1 -1
- package/dist/core.es.js +721 -950
- package/dist/core.es.js.map +1 -1
- package/dist/core.umd.js +1 -1
- package/dist/core.umd.js.map +1 -1
- package/dist/entities/Atoms.d.ts +0 -1
- package/dist/entities/Atoms.d.ts.map +1 -1
- package/dist/entities/Atoms.js +0 -2
- package/dist/entities/Company.d.ts +0 -32
- package/dist/entities/Company.d.ts.map +1 -1
- package/dist/entities/Company.js +0 -6
- package/dist/entities/Store.d.ts +0 -36
- package/dist/entities/Store.d.ts.map +1 -1
- package/dist/entities/Store.js +0 -11
- package/dist/entities/index.d.ts +0 -1
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +0 -1
- package/dist/firebase-api/app.d.ts +2 -0
- package/dist/firebase-api/app.d.ts.map +1 -0
- package/dist/firebase-api/app.js +16 -0
- package/dist/firebase-api/index.d.ts +6 -6
- package/dist/firebase-api/index.js +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/lib/entities/Atoms.ts +0 -3
- package/lib/entities/Company.ts +0 -6
- package/lib/entities/Store.ts +0 -14
- package/lib/entities/index.ts +0 -1
- package/lib/firebase-api/app.ts +18 -0
- package/lib/firebase-api/index.ts +2 -2
- package/lib/index.tsx +0 -1
- package/package.json +1 -1
- package/src/main.tsx +1 -3
- package/dist/entities/Payment.d.ts +0 -368
- package/dist/entities/Payment.d.ts.map +0 -1
- package/dist/entities/Payment.js +0 -108
- package/dist/hypPaymentService/index.d.ts +0 -33
- package/dist/hypPaymentService/index.d.ts.map +0 -1
- package/dist/hypPaymentService/index.js +0 -100
- package/lib/entities/Payment.ts +0 -133
- package/lib/hypPaymentService/index.ts +0 -139
- package/src/App.css +0 -42
- package/src/App.tsx +0 -35
- package/src/assets/react.svg +0 -1
- package/src/index.css +0 -68
package/dist/entities/Atoms.d.ts
CHANGED
|
@@ -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;
|
|
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"}
|
package/dist/entities/Atoms.js
CHANGED
|
@@ -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
|
|
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"}
|
package/dist/entities/Company.js
CHANGED
package/dist/entities/Store.d.ts
CHANGED
|
@@ -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;
|
|
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"}
|
package/dist/entities/Store.js
CHANGED
|
@@ -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
|
});
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -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,
|
|
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"}
|
package/dist/entities/index.js
CHANGED
|
@@ -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: "
|
|
3
|
-
readonly 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: "
|
|
18
|
-
readonly 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: "
|
|
42
|
-
readonly companies: "
|
|
41
|
+
readonly stores: "STORES";
|
|
42
|
+
readonly companies: "COMPANIES";
|
|
43
43
|
};
|
|
44
44
|
storeCollections: {
|
|
45
45
|
readonly products: "products";
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,
|
|
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 +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/
|
|
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"}
|
package/lib/entities/Atoms.ts
CHANGED
|
@@ -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");
|
package/lib/entities/Company.ts
CHANGED
|
@@ -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>;
|
package/lib/entities/Store.ts
CHANGED
|
@@ -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>;
|
package/lib/entities/index.ts
CHANGED
|
@@ -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
|
package/lib/index.tsx
CHANGED
package/package.json
CHANGED
package/src/main.tsx
CHANGED