@cravery/core 0.0.44 → 0.0.46
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/config/firestore.d.ts +19 -0
- package/dist/config/firestore.d.ts.map +1 -0
- package/dist/config/firestore.js +22 -0
- package/dist/config/firestore.js.map +1 -0
- package/dist/config/index.d.ts +2 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +2 -1
- package/dist/config/index.js.map +1 -1
- package/dist/config/limits.d.ts +1 -1
- package/dist/config/limits.d.ts.map +1 -1
- package/dist/config/limits.js +6 -0
- package/dist/config/limits.js.map +1 -1
- package/dist/config/rtdb.d.ts +8 -0
- package/dist/config/rtdb.d.ts.map +1 -0
- package/dist/config/rtdb.js +11 -0
- package/dist/config/rtdb.js.map +1 -0
- package/package.json +1 -1
- package/src/config/{collections.ts → firestore.ts} +3 -0
- package/src/config/index.ts +2 -1
- package/src/config/limits.ts +7 -1
- package/src/config/rtdb.ts +7 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const COLLECTIONS: {
|
|
2
|
+
Comments: string;
|
|
3
|
+
Content: string;
|
|
4
|
+
Equipment: string;
|
|
5
|
+
Feedback: string;
|
|
6
|
+
Followers: string;
|
|
7
|
+
Ingredients: string;
|
|
8
|
+
Likes: string;
|
|
9
|
+
Profiles: string;
|
|
10
|
+
Ratings: string;
|
|
11
|
+
Recipes: string;
|
|
12
|
+
Reports: string;
|
|
13
|
+
Saved: string;
|
|
14
|
+
Settings: string;
|
|
15
|
+
Submissions: string;
|
|
16
|
+
Subscriptions: string;
|
|
17
|
+
Users: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=firestore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firestore.d.ts","sourceRoot":"","sources":["../../src/config/firestore.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;CAiBvB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COLLECTIONS = void 0;
|
|
4
|
+
exports.COLLECTIONS = {
|
|
5
|
+
Comments: "comments",
|
|
6
|
+
Content: "content",
|
|
7
|
+
Equipment: "equipment",
|
|
8
|
+
Feedback: "feedback",
|
|
9
|
+
Followers: "followers",
|
|
10
|
+
Ingredients: "ingredients",
|
|
11
|
+
Likes: "likes",
|
|
12
|
+
Profiles: "profiles",
|
|
13
|
+
Ratings: "ratings",
|
|
14
|
+
Recipes: "recipes",
|
|
15
|
+
Reports: "reports",
|
|
16
|
+
Saved: "saved",
|
|
17
|
+
Settings: "settings",
|
|
18
|
+
Submissions: "submissions",
|
|
19
|
+
Subscriptions: "subscriptions",
|
|
20
|
+
Users: "users",
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=firestore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firestore.js","sourceRoot":"","sources":["../../src/config/firestore.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,KAAK,EAAE,OAAO;CACf,CAAC"}
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC"}
|
package/dist/config/index.js
CHANGED
|
@@ -15,8 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ai"), exports);
|
|
18
|
-
__exportStar(require("./collections"), exports);
|
|
19
18
|
__exportStar(require("./common"), exports);
|
|
19
|
+
__exportStar(require("./firestore"), exports);
|
|
20
20
|
__exportStar(require("./limits"), exports);
|
|
21
|
+
__exportStar(require("./rtdb"), exports);
|
|
21
22
|
__exportStar(require("./subscription"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
package/dist/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,yCAAuB;AACvB,iDAA+B"}
|
package/dist/config/limits.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SubscriptionTier } from "../types";
|
|
2
|
-
export type UsageType = "create" | "extract" | "scan";
|
|
2
|
+
export type UsageType = "create" | "extract" | "scan" | "total";
|
|
3
3
|
export interface TierLimits {
|
|
4
4
|
daily: Record<UsageType, number>;
|
|
5
5
|
monthly: Record<UsageType, number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../../src/config/limits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../../src/config/limits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhE,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,gBAAgB,EAAE,UAAU,CA2CvD,CAAC"}
|
package/dist/config/limits.js
CHANGED
|
@@ -7,11 +7,13 @@ exports.LIMITS = {
|
|
|
7
7
|
create: 0,
|
|
8
8
|
extract: 1,
|
|
9
9
|
scan: 0,
|
|
10
|
+
total: 1,
|
|
10
11
|
},
|
|
11
12
|
monthly: {
|
|
12
13
|
create: 0,
|
|
13
14
|
extract: 1,
|
|
14
15
|
scan: 0,
|
|
16
|
+
total: 1,
|
|
15
17
|
},
|
|
16
18
|
},
|
|
17
19
|
pro: {
|
|
@@ -19,11 +21,13 @@ exports.LIMITS = {
|
|
|
19
21
|
create: 8,
|
|
20
22
|
extract: 20,
|
|
21
23
|
scan: 10,
|
|
24
|
+
total: 20,
|
|
22
25
|
},
|
|
23
26
|
monthly: {
|
|
24
27
|
create: 100,
|
|
25
28
|
extract: 150,
|
|
26
29
|
scan: 100,
|
|
30
|
+
total: 150,
|
|
27
31
|
},
|
|
28
32
|
},
|
|
29
33
|
family: {
|
|
@@ -31,11 +35,13 @@ exports.LIMITS = {
|
|
|
31
35
|
create: 20,
|
|
32
36
|
extract: 60,
|
|
33
37
|
scan: 25,
|
|
38
|
+
total: 60,
|
|
34
39
|
},
|
|
35
40
|
monthly: {
|
|
36
41
|
create: 250,
|
|
37
42
|
extract: 400,
|
|
38
43
|
scan: 250,
|
|
44
|
+
total: 400,
|
|
39
45
|
},
|
|
40
46
|
},
|
|
41
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limits.js","sourceRoot":"","sources":["../../src/config/limits.ts"],"names":[],"mappings":";;;AASa,QAAA,MAAM,GAAyC;IAC1D,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,MAAM,EAAE,CAAC;YACT,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"limits.js","sourceRoot":"","sources":["../../src/config/limits.ts"],"names":[],"mappings":";;;AASa,QAAA,MAAM,GAAyC;IAC1D,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,MAAM,EAAE,CAAC;YACT,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,CAAC;YACP,KAAK,EAAE,CAAC;SACT;QACD,OAAO,EAAE;YACP,MAAM,EAAE,CAAC;YACT,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,CAAC;YACP,KAAK,EAAE,CAAC;SACT;KACF;IACD,GAAG,EAAE;QACH,KAAK,EAAE;YACL,MAAM,EAAE,CAAC;YACT,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,EAAE;YACR,KAAK,EAAE,EAAE;SACV;QACD,OAAO,EAAE;YACP,MAAM,EAAE,GAAG;YACX,OAAO,EAAE,GAAG;YACZ,IAAI,EAAE,GAAG;YACT,KAAK,EAAE,GAAG;SACX;KACF;IACD,MAAM,EAAE;QACN,KAAK,EAAE;YACL,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,EAAE;YACR,KAAK,EAAE,EAAE;SACV;QACD,OAAO,EAAE;YACP,MAAM,EAAE,GAAG;YACX,OAAO,EAAE,GAAG;YACZ,IAAI,EAAE,GAAG;YACT,KAAK,EAAE,GAAG;SACX;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rtdb.d.ts","sourceRoot":"","sources":["../../src/config/rtdb.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RTDB_PATHS = void 0;
|
|
4
|
+
exports.RTDB_PATHS = {
|
|
5
|
+
AILimits: "ai/limits",
|
|
6
|
+
AIUsage: "ai/usage",
|
|
7
|
+
MonitoringErrors: "monitoring/errors",
|
|
8
|
+
MonitoringMetrics: "monitoring/metrics",
|
|
9
|
+
RecipeStats: "stats/recipes",
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=rtdb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rtdb.js","sourceRoot":"","sources":["../../src/config/rtdb.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACtB,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,UAAU;IACnB,gBAAgB,EAAE,mBAAmB;IACrC,iBAAiB,EAAE,oBAAoB;IACvC,WAAW,EAAE,eAAe;CAC/B,CAAA"}
|
package/package.json
CHANGED
|
@@ -5,9 +5,12 @@ export const COLLECTIONS = {
|
|
|
5
5
|
Feedback: "feedback",
|
|
6
6
|
Followers: "followers",
|
|
7
7
|
Ingredients: "ingredients",
|
|
8
|
+
Likes: "likes",
|
|
8
9
|
Profiles: "profiles",
|
|
10
|
+
Ratings: "ratings",
|
|
9
11
|
Recipes: "recipes",
|
|
10
12
|
Reports: "reports",
|
|
13
|
+
Saved: "saved",
|
|
11
14
|
Settings: "settings",
|
|
12
15
|
Submissions: "submissions",
|
|
13
16
|
Subscriptions: "subscriptions",
|
package/src/config/index.ts
CHANGED
package/src/config/limits.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SubscriptionTier } from "../types";
|
|
2
2
|
|
|
3
|
-
export type UsageType = "create" | "extract" | "scan";
|
|
3
|
+
export type UsageType = "create" | "extract" | "scan" | "total";
|
|
4
4
|
|
|
5
5
|
export interface TierLimits {
|
|
6
6
|
daily: Record<UsageType, number>;
|
|
@@ -13,11 +13,13 @@ export const LIMITS: Record<SubscriptionTier, TierLimits> = {
|
|
|
13
13
|
create: 0,
|
|
14
14
|
extract: 1,
|
|
15
15
|
scan: 0,
|
|
16
|
+
total: 1,
|
|
16
17
|
},
|
|
17
18
|
monthly: {
|
|
18
19
|
create: 0,
|
|
19
20
|
extract: 1,
|
|
20
21
|
scan: 0,
|
|
22
|
+
total: 1,
|
|
21
23
|
},
|
|
22
24
|
},
|
|
23
25
|
pro: {
|
|
@@ -25,11 +27,13 @@ export const LIMITS: Record<SubscriptionTier, TierLimits> = {
|
|
|
25
27
|
create: 8,
|
|
26
28
|
extract: 20,
|
|
27
29
|
scan: 10,
|
|
30
|
+
total: 20,
|
|
28
31
|
},
|
|
29
32
|
monthly: {
|
|
30
33
|
create: 100,
|
|
31
34
|
extract: 150,
|
|
32
35
|
scan: 100,
|
|
36
|
+
total: 150,
|
|
33
37
|
},
|
|
34
38
|
},
|
|
35
39
|
family: {
|
|
@@ -37,11 +41,13 @@ export const LIMITS: Record<SubscriptionTier, TierLimits> = {
|
|
|
37
41
|
create: 20,
|
|
38
42
|
extract: 60,
|
|
39
43
|
scan: 25,
|
|
44
|
+
total: 60,
|
|
40
45
|
},
|
|
41
46
|
monthly: {
|
|
42
47
|
create: 250,
|
|
43
48
|
extract: 400,
|
|
44
49
|
scan: 250,
|
|
50
|
+
total: 400,
|
|
45
51
|
},
|
|
46
52
|
},
|
|
47
53
|
};
|