@cravery/core 0.0.6 → 0.0.7
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/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/subscription.d.ts +2 -0
- package/dist/config/subscription.d.ts.map +1 -0
- package/dist/config/subscription.js +5 -0
- package/dist/config/subscription.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/repository/profile.repository.d.ts +1 -1
- package/dist/lib/repository/profile.repository.d.ts.map +1 -1
- package/dist/lib/repository/profile.repository.js +1 -1
- package/dist/lib/repository/profile.repository.js.map +1 -1
- package/dist/lib/repository/user.repository.d.ts +1 -1
- package/dist/lib/repository/user.repository.d.ts.map +1 -1
- package/dist/lib/repository/user.repository.js +1 -1
- package/dist/lib/repository/user.repository.js.map +1 -1
- package/dist/types/ai/filters.js +1 -1
- package/dist/types/ai/filters.js.map +1 -1
- package/dist/types/ai/recipe.js +5 -5
- package/dist/types/ai/recipe.js.map +1 -1
- package/dist/types/ai/translation.js +3 -3
- package/dist/types/ai/translation.js.map +1 -1
- package/dist/types/enums/allergen.d.ts +19 -0
- package/dist/types/enums/allergen.d.ts.map +1 -0
- package/dist/types/enums/allergen.js +21 -0
- package/dist/types/enums/allergen.js.map +1 -0
- package/dist/types/enums/cuisine.d.ts +39 -0
- package/dist/types/enums/cuisine.d.ts.map +1 -0
- package/dist/types/enums/cuisine.js +41 -0
- package/dist/types/enums/cuisine.js.map +1 -0
- package/dist/types/enums/dietary_tag.d.ts +21 -0
- package/dist/types/enums/dietary_tag.d.ts.map +1 -0
- package/dist/types/enums/dietary_tag.js +23 -0
- package/dist/types/enums/dietary_tag.js.map +1 -0
- package/dist/types/enums/difficulty.d.ts +10 -0
- package/dist/types/enums/difficulty.d.ts.map +1 -0
- package/dist/types/enums/difficulty.js +12 -0
- package/dist/types/enums/difficulty.js.map +1 -0
- package/dist/types/enums/image_type.d.ts +8 -0
- package/dist/types/enums/image_type.d.ts.map +1 -0
- package/dist/types/enums/image_type.js +7 -0
- package/dist/types/enums/image_type.js.map +1 -0
- package/dist/types/enums/index.d.ts +22 -0
- package/dist/types/enums/index.d.ts.map +1 -0
- package/dist/types/enums/index.js +38 -0
- package/dist/types/enums/index.js.map +1 -0
- package/dist/types/enums/locale.d.ts +11 -0
- package/dist/types/enums/locale.d.ts.map +1 -0
- package/dist/types/enums/locale.js +7 -0
- package/dist/types/enums/locale.js.map +1 -0
- package/dist/types/enums/meal_type.d.ts +14 -0
- package/dist/types/enums/meal_type.d.ts.map +1 -0
- package/dist/types/enums/meal_type.js +16 -0
- package/dist/types/enums/meal_type.js.map +1 -0
- package/dist/types/enums/moderation_status.d.ts +9 -0
- package/dist/types/enums/moderation_status.d.ts.map +1 -0
- package/dist/types/enums/moderation_status.js +11 -0
- package/dist/types/enums/moderation_status.js.map +1 -0
- package/dist/types/enums/priority.d.ts +9 -0
- package/dist/types/enums/priority.d.ts.map +1 -0
- package/dist/types/enums/priority.js +7 -0
- package/dist/types/enums/priority.js.map +1 -0
- package/dist/types/enums/profile_status.d.ts +10 -0
- package/dist/types/enums/profile_status.d.ts.map +1 -0
- package/dist/types/enums/profile_status.js +12 -0
- package/dist/types/enums/profile_status.js.map +1 -0
- package/dist/types/enums/recipe_source.d.ts +10 -0
- package/dist/types/enums/recipe_source.d.ts.map +1 -0
- package/dist/types/enums/recipe_source.js +7 -0
- package/dist/types/enums/recipe_source.js.map +1 -0
- package/dist/types/enums/recipe_status.d.ts +13 -0
- package/dist/types/enums/recipe_status.d.ts.map +1 -0
- package/dist/types/enums/recipe_status.js +15 -0
- package/dist/types/enums/recipe_status.js.map +1 -0
- package/dist/types/enums/role.d.ts +11 -0
- package/dist/types/enums/role.d.ts.map +1 -0
- package/dist/types/enums/role.js +13 -0
- package/dist/types/enums/role.js.map +1 -0
- package/dist/types/enums/severity.d.ts +9 -0
- package/dist/types/enums/severity.d.ts.map +1 -0
- package/dist/types/enums/severity.js +7 -0
- package/dist/types/enums/severity.js.map +1 -0
- package/dist/types/enums/spiciness.d.ts +10 -0
- package/dist/types/enums/spiciness.d.ts.map +1 -0
- package/dist/types/enums/spiciness.js +7 -0
- package/dist/types/enums/spiciness.js.map +1 -0
- package/dist/types/enums/status.d.ts +11 -0
- package/dist/types/enums/status.d.ts.map +1 -0
- package/dist/types/enums/status.js +13 -0
- package/dist/types/enums/status.js.map +1 -0
- package/dist/types/enums/subscription_tier.d.ts +8 -0
- package/dist/types/enums/subscription_tier.d.ts.map +1 -0
- package/dist/types/enums/subscription_tier.js +6 -0
- package/dist/types/enums/subscription_tier.js.map +1 -0
- package/dist/types/enums/suggestion_category.d.ts +11 -0
- package/dist/types/enums/suggestion_category.d.ts.map +1 -0
- package/dist/types/enums/suggestion_category.js +13 -0
- package/dist/types/enums/suggestion_category.js.map +1 -0
- package/dist/types/enums/temperature_unit.d.ts +8 -0
- package/dist/types/enums/temperature_unit.d.ts.map +1 -0
- package/dist/types/enums/temperature_unit.js +7 -0
- package/dist/types/enums/temperature_unit.js.map +1 -0
- package/dist/types/enums/unit.d.ts +43 -0
- package/dist/types/enums/unit.d.ts.map +1 -0
- package/dist/types/enums/unit.js +53 -0
- package/dist/types/enums/unit.js.map +1 -0
- package/dist/types/enums/url_type.d.ts +13 -0
- package/dist/types/enums/url_type.d.ts.map +1 -0
- package/dist/types/enums/url_type.js +15 -0
- package/dist/types/enums/url_type.js.map +1 -0
- package/dist/types/enums/user_status.d.ts +10 -0
- package/dist/types/enums/user_status.d.ts.map +1 -0
- package/dist/types/enums/user_status.js +12 -0
- package/dist/types/enums/user_status.js.map +1 -0
- package/dist/types/iam/index.d.ts +4 -0
- package/dist/types/iam/index.d.ts.map +1 -0
- package/dist/types/iam/index.js +20 -0
- package/dist/types/iam/index.js.map +1 -0
- package/dist/types/iam/profile.d.ts +30 -0
- package/dist/types/iam/profile.d.ts.map +1 -0
- package/dist/types/iam/profile.js +26 -0
- package/dist/types/iam/profile.js.map +1 -0
- package/dist/types/iam/subscription.d.ts +43 -0
- package/dist/types/iam/subscription.d.ts.map +1 -0
- package/dist/types/iam/subscription.js +22 -0
- package/dist/types/iam/subscription.js.map +1 -0
- package/dist/types/iam/user.d.ts +27 -0
- package/dist/types/iam/user.d.ts.map +1 -0
- package/dist/types/iam/user.js +18 -0
- package/dist/types/iam/user.js.map +1 -0
- package/dist/types/index.d.ts +1 -8
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -8
- package/dist/types/index.js.map +1 -1
- package/dist/types/moderation.js +1 -1
- package/dist/types/moderation.js.map +1 -1
- package/dist/types/recipe/equipment.d.ts +20 -0
- package/dist/types/recipe/equipment.d.ts.map +1 -0
- package/dist/types/recipe/equipment.js +16 -0
- package/dist/types/recipe/equipment.js.map +1 -0
- package/dist/types/recipe/index.d.ts +7 -0
- package/dist/types/recipe/index.d.ts.map +1 -0
- package/dist/types/recipe/index.js +23 -0
- package/dist/types/recipe/index.js.map +1 -0
- package/dist/types/recipe/ingredient.d.ts +209 -0
- package/dist/types/recipe/ingredient.d.ts.map +1 -0
- package/dist/types/recipe/ingredient.js +33 -0
- package/dist/types/recipe/ingredient.js.map +1 -0
- package/dist/types/recipe/instruction.d.ts +32 -0
- package/dist/types/recipe/instruction.d.ts.map +1 -0
- package/dist/types/recipe/instruction.js +16 -0
- package/dist/types/recipe/instruction.js.map +1 -0
- package/dist/types/recipe/nutrition.d.ts +18 -0
- package/dist/types/recipe/nutrition.d.ts.map +1 -0
- package/dist/types/recipe/nutrition.js +20 -0
- package/dist/types/recipe/nutrition.js.map +1 -0
- package/dist/types/recipe/recipe.d.ts +453 -0
- package/dist/types/recipe/recipe.d.ts.map +1 -0
- package/dist/types/recipe/recipe.js +82 -0
- package/dist/types/recipe/recipe.js.map +1 -0
- package/dist/types/recipe/temperature.d.ts +10 -0
- package/dist/types/recipe/temperature.d.ts.map +1 -0
- package/dist/types/recipe/temperature.js +10 -0
- package/dist/types/recipe/temperature.js.map +1 -0
- package/dist/types/settings.js +6 -6
- package/dist/types/settings.js.map +1 -1
- package/package.json +28 -1
- package/src/config/index.ts +1 -0
- package/src/config/subscription.ts +1 -0
- package/src/index.ts +1 -1
- package/src/lib/iam.ts +1 -1
- package/src/lib/repository/profile.repository.ts +2 -2
- package/src/lib/repository/user.repository.ts +2 -2
- package/src/types/ai/filters.ts +1 -1
- package/src/types/ai/recipe.ts +5 -5
- package/src/types/ai/translation.ts +3 -3
- package/src/{enums → types/enums}/recipe_status.ts +3 -0
- package/src/types/iam/index.ts +3 -0
- package/src/types/{profile.ts → iam/profile.ts} +1 -1
- package/src/types/iam/subscription.ts +23 -0
- package/src/types/{user.ts → iam/user.ts} +2 -1
- package/src/types/index.ts +1 -8
- package/src/types/moderation.ts +2 -2
- package/src/types/{equipment.ts → recipe/equipment.ts} +1 -1
- package/src/types/recipe/index.ts +6 -0
- package/src/types/{ingredient.ts → recipe/ingredient.ts} +1 -1
- package/src/types/{recipe.ts → recipe/recipe.ts} +7 -7
- package/src/types/settings.ts +7 -7
- package/src/types/subscription.ts +0 -13
- /package/src/{enums → types/enums}/allergen.ts +0 -0
- /package/src/{enums → types/enums}/cuisine.ts +0 -0
- /package/src/{enums → types/enums}/dietary_tag.ts +0 -0
- /package/src/{enums → types/enums}/difficulty.ts +0 -0
- /package/src/{enums → types/enums}/image_type.ts +0 -0
- /package/src/{enums → types/enums}/index.ts +0 -0
- /package/src/{enums → types/enums}/locale.ts +0 -0
- /package/src/{enums → types/enums}/meal_type.ts +0 -0
- /package/src/{enums → types/enums}/moderation_status.ts +0 -0
- /package/src/{enums → types/enums}/priority.ts +0 -0
- /package/src/{enums → types/enums}/profile_status.ts +0 -0
- /package/src/{enums → types/enums}/recipe_source.ts +0 -0
- /package/src/{enums → types/enums}/role.ts +0 -0
- /package/src/{enums → types/enums}/severity.ts +0 -0
- /package/src/{enums → types/enums}/spiciness.ts +0 -0
- /package/src/{enums → types/enums}/status.ts +0 -0
- /package/src/{enums → types/enums}/subscription_tier.ts +0 -0
- /package/src/{enums → types/enums}/suggestion_category.ts +0 -0
- /package/src/{enums → types/enums}/temperature_unit.ts +0 -0
- /package/src/{enums → types/enums}/unit.ts +0 -0
- /package/src/{enums → types/enums}/url_type.ts +0 -0
- /package/src/{enums → types/enums}/user_status.ts +0 -0
- /package/src/types/{instruction.ts → recipe/instruction.ts} +0 -0
- /package/src/types/{nutrition.ts → recipe/nutrition.ts} +0 -0
- /package/src/types/{temperature.ts → recipe/temperature.ts} +0 -0
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,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
|
package/dist/config/index.js
CHANGED
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./ai"), exports);
|
|
18
18
|
__exportStar(require("./collections"), exports);
|
|
19
19
|
__exportStar(require("./common"), exports);
|
|
20
|
+
__exportStar(require("./subscription"), exports);
|
|
20
21
|
//# 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,gDAA8B;AAC9B,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,gDAA8B;AAC9B,2CAAyB;AACzB,iDAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/config/subscription.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../src/config/subscription.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./config"), exports);
|
|
18
|
-
__exportStar(require("./enums"), exports);
|
|
18
|
+
__exportStar(require("./types/enums"), exports);
|
|
19
19
|
__exportStar(require("./lib"), exports);
|
|
20
20
|
__exportStar(require("./types"), exports);
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,gDAA8B;AAC9B,wCAAsB;AACtB,0CAAwB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Firestore } from "firebase-admin/firestore";
|
|
2
2
|
import { FirestoreRepository } from "./firestore.repository";
|
|
3
|
-
import type { Profile } from "../../types/profile";
|
|
3
|
+
import type { Profile } from "../../types/iam/profile";
|
|
4
4
|
export declare class ProfileRepository extends FirestoreRepository<Profile> {
|
|
5
5
|
constructor(firestore: Firestore);
|
|
6
6
|
protected validate(data: Partial<Profile>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.repository.d.ts","sourceRoot":"","sources":["../../../src/lib/repository/profile.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"profile.repository.d.ts","sourceRoot":"","sources":["../../../src/lib/repository/profile.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAKvD,qBAAa,iBAAkB,SAAQ,mBAAmB,CAAC,OAAO,CAAC;gBACrD,SAAS,EAAE,SAAS;IAQhC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI;IAW1C,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAQrD,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAIrD,gBAAgB,CACpB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,GACxB,OAAO,CAAC,OAAO,CAAC;IAIb,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAIrD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProfileRepository = void 0;
|
|
4
4
|
const firestore_repository_1 = require("./firestore.repository");
|
|
5
|
-
const profile_1 = require("../../types/profile");
|
|
5
|
+
const profile_1 = require("../../types/iam/profile");
|
|
6
6
|
const collections_1 = require("../../config/collections");
|
|
7
7
|
const errors_1 = require("./errors");
|
|
8
8
|
class ProfileRepository extends firestore_repository_1.FirestoreRepository {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.repository.js","sourceRoot":"","sources":["../../../src/lib/repository/profile.repository.ts"],"names":[],"mappings":";;;AACA,iEAA6D;AAE7D,
|
|
1
|
+
{"version":3,"file":"profile.repository.js","sourceRoot":"","sources":["../../../src/lib/repository/profile.repository.ts"],"names":[],"mappings":";;;AACA,iEAA6D;AAE7D,qDAAwD;AACxD,0DAAuD;AACvD,qCAAgE;AAEhE,MAAa,iBAAkB,SAAQ,0CAA4B;IACjE,YAAY,SAAoB;QAC9B,KAAK,CAAC,SAAS,EAAE,yBAAW,CAAC,QAAQ,EAAE;YACrC,gBAAgB,EAAE,IAAI;YACtB,gBAAgB,EAAE,IAAI;YACtB,eAAe,EAAE,IAAI;SACtB,CAAC,CAAC;IACL,CAAC;IAES,QAAQ,CAAC,IAAsB;QACvC,MAAM,MAAM,GAAG,uBAAa,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACvD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,MAAM,IAAI,wBAAe,CACvB,4BAAmB,CAAC,gBAAgB,EACpC,2BAA2B,EAC3B,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,CAChC,CAAC;QACJ,CAAC;IACH,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,MAAc;;QAC/B,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,SAAS,CAClC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAC9C,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACF,OAAO,MAAA,OAAO,CAAC,CAAC,CAAC,mCAAI,IAAI,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,MAAc;QAC/B,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,MAAc,EACd,IAAyB;QAEzB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,MAAc;QAC/B,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAChD,OAAO,OAAO,KAAK,IAAI,CAAC;IAC1B,CAAC;CACF;AA3CD,8CA2CC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Firestore } from "firebase-admin/firestore";
|
|
2
2
|
import { FirestoreRepository } from "./firestore.repository";
|
|
3
|
-
import type { User } from "../../types/user";
|
|
3
|
+
import type { User } from "../../types/iam/user";
|
|
4
4
|
export declare class UserRepository extends FirestoreRepository<User> {
|
|
5
5
|
constructor(firestore: Firestore);
|
|
6
6
|
protected validate(data: Partial<User>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.repository.d.ts","sourceRoot":"","sources":["../../../src/lib/repository/user.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"user.repository.d.ts","sourceRoot":"","sources":["../../../src/lib/repository/user.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAKjD,qBAAa,cAAe,SAAQ,mBAAmB,CAAC,IAAI,CAAC;gBAC/C,SAAS,EAAE,SAAS;IAQhC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IAWvC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IAQhD,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhE,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAInD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserRepository = void 0;
|
|
4
4
|
const firestore_repository_1 = require("./firestore.repository");
|
|
5
|
-
const user_1 = require("../../types/user");
|
|
5
|
+
const user_1 = require("../../types/iam/user");
|
|
6
6
|
const collections_1 = require("../../config/collections");
|
|
7
7
|
const errors_1 = require("./errors");
|
|
8
8
|
class UserRepository extends firestore_repository_1.FirestoreRepository {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.repository.js","sourceRoot":"","sources":["../../../src/lib/repository/user.repository.ts"],"names":[],"mappings":";;;AACA,iEAA6D;AAE7D
|
|
1
|
+
{"version":3,"file":"user.repository.js","sourceRoot":"","sources":["../../../src/lib/repository/user.repository.ts"],"names":[],"mappings":";;;AACA,iEAA6D;AAE7D,+CAAkD;AAClD,0DAAuD;AACvD,qCAAgE;AAEhE,MAAa,cAAe,SAAQ,0CAAyB;IAC3D,YAAY,SAAoB;QAC9B,KAAK,CAAC,SAAS,EAAE,yBAAW,CAAC,KAAK,EAAE;YAClC,gBAAgB,EAAE,IAAI;YACtB,gBAAgB,EAAE,IAAI;YACtB,eAAe,EAAE,IAAI;SACtB,CAAC,CAAC;IACL,CAAC;IAES,QAAQ,CAAC,IAAmB;QACpC,MAAM,MAAM,GAAG,iBAAU,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,MAAM,IAAI,wBAAe,CACvB,4BAAmB,CAAC,gBAAgB,EACpC,wBAAwB,EACxB,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,CAChC,CAAC;QACJ,CAAC;IACH,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAa;;QAC7B,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,SAAS,CAClC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAC5C,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACF,OAAO,MAAA,OAAO,CAAC,CAAC,CAAC,mCAAI,IAAI,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,GAAW,EAAE,IAAsB;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAa;QAC7B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC3C,OAAO,IAAI,KAAK,IAAI,CAAC;IACvB,CAAC;CACF;AApCD,wCAoCC"}
|
package/dist/types/ai/filters.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RecipeFiltersSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const enums_1 = require("
|
|
5
|
+
const enums_1 = require("../enums");
|
|
6
6
|
exports.RecipeFiltersSchema = zod_1.z.object({
|
|
7
7
|
cuisines: zod_1.z.array(enums_1.CuisineSchema).optional(),
|
|
8
8
|
dietaryTags: zod_1.z.array(enums_1.DietaryTagSchema).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../src/types/ai/filters.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../src/types/ai/filters.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oCAMkB;AAEL,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,qBAAa,CAAC,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC,CAAC,QAAQ,EAAE;IACjD,UAAU,EAAE,wBAAgB,CAAC,QAAQ,EAAE;IACvC,kBAAkB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,kBAAkB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAc,CAAC,CAAC,QAAQ,EAAE;IAC7C,SAAS,EAAE,uBAAe,CAAC,QAAQ,EAAE;IACrC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC"}
|
package/dist/types/ai/recipe.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AIRecipeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const enums_1 = require("
|
|
6
|
-
const equipment_1 = require("../equipment");
|
|
7
|
-
const ingredient_1 = require("../ingredient");
|
|
8
|
-
const instruction_1 = require("../instruction");
|
|
9
|
-
const nutrition_1 = require("../nutrition");
|
|
5
|
+
const enums_1 = require("../enums");
|
|
6
|
+
const equipment_1 = require("../recipe/equipment");
|
|
7
|
+
const ingredient_1 = require("../recipe/ingredient");
|
|
8
|
+
const instruction_1 = require("../recipe/instruction");
|
|
9
|
+
const nutrition_1 = require("../recipe/nutrition");
|
|
10
10
|
exports.AIRecipeSchema = zod_1.z.object({
|
|
11
11
|
allergens: zod_1.z.array(enums_1.AllergenSchema),
|
|
12
12
|
confidence: zod_1.z.number().min(0).max(1),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.js","sourceRoot":"","sources":["../../../src/types/ai/recipe.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"recipe.js","sourceRoot":"","sources":["../../../src/types/ai/recipe.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oCAOkB;AAClB,mDAAsD;AACtD,qDAA+D;AAC/D,uDAA0D;AAC1D,mDAAsD;AAEzC,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAc,CAAC;IAClC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACpC,OAAO,EAAE,qBAAa;IACtB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IACzC,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC;IACtC,UAAU,EAAE,wBAAgB;IAC5B,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,2BAAe,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,kBAAkB,EAAE,OAAC,CAAC,KAAK,CAAC,oCAAuB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IACnE,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IACvD,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAc,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACzC,SAAS,EAAE,2BAAe,CAAC,QAAQ,EAAE;IACrC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC1C,SAAS,EAAE,uBAAe;IAC1B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IACvC,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CAClC,CAAC,CAAC"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AIRecipeTranslationSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const equipment_1 = require("../equipment");
|
|
6
|
-
const ingredient_1 = require("../ingredient");
|
|
7
|
-
const instruction_1 = require("../instruction");
|
|
5
|
+
const equipment_1 = require("../recipe/equipment");
|
|
6
|
+
const ingredient_1 = require("../recipe/ingredient");
|
|
7
|
+
const instruction_1 = require("../recipe/instruction");
|
|
8
8
|
exports.AIRecipeTranslationSchema = zod_1.z.object({
|
|
9
9
|
description: zod_1.z.string().min(10).max(2000),
|
|
10
10
|
equipment: zod_1.z.array(equipment_1.EquipmentContentSchema).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../src/types/ai/translation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../src/types/ai/translation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mDAA6D;AAC7D,qDAAsE;AACtE,uDAAiE;AAEpD,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IACzC,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,kCAAsB,CAAC,CAAC,QAAQ,EAAE;IACrD,kBAAkB,EAAE,OAAC,CAAC,KAAK,CAAC,2CAA8B,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAClE,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,sCAAwB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACtD,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC7C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CAClC,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ALLERGEN_VALUES: readonly ["celery", "dairy", "eggs", "fish", "gluten", "lupin", "mustard", "nuts", "peanuts", "sesame", "shellfish", "soy", "sulfites"];
|
|
3
|
+
export declare const AllergenSchema: z.ZodEnum<{
|
|
4
|
+
celery: "celery";
|
|
5
|
+
dairy: "dairy";
|
|
6
|
+
eggs: "eggs";
|
|
7
|
+
fish: "fish";
|
|
8
|
+
gluten: "gluten";
|
|
9
|
+
lupin: "lupin";
|
|
10
|
+
mustard: "mustard";
|
|
11
|
+
nuts: "nuts";
|
|
12
|
+
peanuts: "peanuts";
|
|
13
|
+
sesame: "sesame";
|
|
14
|
+
shellfish: "shellfish";
|
|
15
|
+
soy: "soy";
|
|
16
|
+
sulfites: "sulfites";
|
|
17
|
+
}>;
|
|
18
|
+
export type Allergen = (typeof ALLERGEN_VALUES)[number];
|
|
19
|
+
//# sourceMappingURL=allergen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allergen.d.ts","sourceRoot":"","sources":["../../../src/types/enums/allergen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe,yIAclB,CAAC;AACX,eAAO,MAAM,cAAc;;;;;;;;;;;;;;EAA0B,CAAC;AACtD,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AllergenSchema = exports.ALLERGEN_VALUES = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ALLERGEN_VALUES = [
|
|
6
|
+
"celery",
|
|
7
|
+
"dairy",
|
|
8
|
+
"eggs",
|
|
9
|
+
"fish",
|
|
10
|
+
"gluten",
|
|
11
|
+
"lupin",
|
|
12
|
+
"mustard",
|
|
13
|
+
"nuts",
|
|
14
|
+
"peanuts",
|
|
15
|
+
"sesame",
|
|
16
|
+
"shellfish",
|
|
17
|
+
"soy",
|
|
18
|
+
"sulfites",
|
|
19
|
+
];
|
|
20
|
+
exports.AllergenSchema = zod_1.z.enum(exports.ALLERGEN_VALUES);
|
|
21
|
+
//# sourceMappingURL=allergen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allergen.js","sourceRoot":"","sources":["../../../src/types/enums/allergen.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,eAAe,GAAG;IAC7B,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,SAAS;IACT,MAAM;IACN,SAAS;IACT,QAAQ;IACR,WAAW;IACX,KAAK;IACL,UAAU;CACF,CAAC;AACE,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,uBAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CUISINE_VALUES: readonly ["african", "american", "brazilian", "british", "caribbean", "chinese", "egyptian", "emirati", "ethiopian", "filipino", "french", "fusion", "german", "greek", "indian", "indonesian", "italian", "japanese", "korean", "lebanese", "malaysian", "mexican", "moroccan", "pakistani", "persian", "russian", "saudi", "spanish", "sudanese", "thai", "turkish", "vietnamese", "other"];
|
|
3
|
+
export declare const CuisineSchema: z.ZodEnum<{
|
|
4
|
+
african: "african";
|
|
5
|
+
american: "american";
|
|
6
|
+
brazilian: "brazilian";
|
|
7
|
+
british: "british";
|
|
8
|
+
caribbean: "caribbean";
|
|
9
|
+
chinese: "chinese";
|
|
10
|
+
egyptian: "egyptian";
|
|
11
|
+
emirati: "emirati";
|
|
12
|
+
ethiopian: "ethiopian";
|
|
13
|
+
filipino: "filipino";
|
|
14
|
+
french: "french";
|
|
15
|
+
fusion: "fusion";
|
|
16
|
+
german: "german";
|
|
17
|
+
greek: "greek";
|
|
18
|
+
indian: "indian";
|
|
19
|
+
indonesian: "indonesian";
|
|
20
|
+
italian: "italian";
|
|
21
|
+
japanese: "japanese";
|
|
22
|
+
korean: "korean";
|
|
23
|
+
lebanese: "lebanese";
|
|
24
|
+
malaysian: "malaysian";
|
|
25
|
+
mexican: "mexican";
|
|
26
|
+
moroccan: "moroccan";
|
|
27
|
+
pakistani: "pakistani";
|
|
28
|
+
persian: "persian";
|
|
29
|
+
russian: "russian";
|
|
30
|
+
saudi: "saudi";
|
|
31
|
+
spanish: "spanish";
|
|
32
|
+
sudanese: "sudanese";
|
|
33
|
+
thai: "thai";
|
|
34
|
+
turkish: "turkish";
|
|
35
|
+
vietnamese: "vietnamese";
|
|
36
|
+
other: "other";
|
|
37
|
+
}>;
|
|
38
|
+
export type Cuisine = (typeof CUISINE_VALUES)[number];
|
|
39
|
+
//# sourceMappingURL=cuisine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cuisine.d.ts","sourceRoot":"","sources":["../../../src/types/enums/cuisine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc,+XAkCjB,CAAC;AACX,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyB,CAAC;AACpD,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CuisineSchema = exports.CUISINE_VALUES = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.CUISINE_VALUES = [
|
|
6
|
+
"african",
|
|
7
|
+
"american",
|
|
8
|
+
"brazilian",
|
|
9
|
+
"british",
|
|
10
|
+
"caribbean",
|
|
11
|
+
"chinese",
|
|
12
|
+
"egyptian",
|
|
13
|
+
"emirati",
|
|
14
|
+
"ethiopian",
|
|
15
|
+
"filipino",
|
|
16
|
+
"french",
|
|
17
|
+
"fusion",
|
|
18
|
+
"german",
|
|
19
|
+
"greek",
|
|
20
|
+
"indian",
|
|
21
|
+
"indonesian",
|
|
22
|
+
"italian",
|
|
23
|
+
"japanese",
|
|
24
|
+
"korean",
|
|
25
|
+
"lebanese",
|
|
26
|
+
"malaysian",
|
|
27
|
+
"mexican",
|
|
28
|
+
"moroccan",
|
|
29
|
+
"pakistani",
|
|
30
|
+
"persian",
|
|
31
|
+
"russian",
|
|
32
|
+
"saudi",
|
|
33
|
+
"spanish",
|
|
34
|
+
"sudanese",
|
|
35
|
+
"thai",
|
|
36
|
+
"turkish",
|
|
37
|
+
"vietnamese",
|
|
38
|
+
"other",
|
|
39
|
+
];
|
|
40
|
+
exports.CuisineSchema = zod_1.z.enum(exports.CUISINE_VALUES);
|
|
41
|
+
//# sourceMappingURL=cuisine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cuisine.js","sourceRoot":"","sources":["../../../src/types/enums/cuisine.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,cAAc,GAAG;IAC5B,SAAS;IACT,UAAU;IACV,WAAW;IACX,SAAS;IACT,WAAW;IACX,SAAS;IACT,UAAU;IACV,SAAS;IACT,WAAW;IACX,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,YAAY;IACZ,SAAS;IACT,UAAU;IACV,QAAQ;IACR,UAAU;IACV,WAAW;IACX,SAAS;IACT,UAAU;IACV,WAAW;IACX,SAAS;IACT,SAAS;IACT,OAAO;IACP,SAAS;IACT,UAAU;IACV,MAAM;IACN,SAAS;IACT,YAAY;IACZ,OAAO;CACC,CAAC;AACE,QAAA,aAAa,GAAG,OAAC,CAAC,IAAI,CAAC,sBAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DIETARY_TAG_VALUES: readonly ["dairy_free", "egg_free", "gluten_free", "halal", "high_protein", "keto", "low_carb", "low_fat", "low_sodium", "low_sugar", "nut_free", "pescatarian", "soy_free", "vegan", "vegetarian"];
|
|
3
|
+
export declare const DietaryTagSchema: z.ZodEnum<{
|
|
4
|
+
dairy_free: "dairy_free";
|
|
5
|
+
egg_free: "egg_free";
|
|
6
|
+
gluten_free: "gluten_free";
|
|
7
|
+
halal: "halal";
|
|
8
|
+
high_protein: "high_protein";
|
|
9
|
+
keto: "keto";
|
|
10
|
+
low_carb: "low_carb";
|
|
11
|
+
low_fat: "low_fat";
|
|
12
|
+
low_sodium: "low_sodium";
|
|
13
|
+
low_sugar: "low_sugar";
|
|
14
|
+
nut_free: "nut_free";
|
|
15
|
+
pescatarian: "pescatarian";
|
|
16
|
+
soy_free: "soy_free";
|
|
17
|
+
vegan: "vegan";
|
|
18
|
+
vegetarian: "vegetarian";
|
|
19
|
+
}>;
|
|
20
|
+
export type DietaryTag = (typeof DIETARY_TAG_VALUES)[number];
|
|
21
|
+
//# sourceMappingURL=dietary_tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dietary_tag.d.ts","sourceRoot":"","sources":["../../../src/types/enums/dietary_tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB,qMAgBrB,CAAC;AACX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;EAA6B,CAAC;AAC3D,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DietaryTagSchema = exports.DIETARY_TAG_VALUES = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.DIETARY_TAG_VALUES = [
|
|
6
|
+
"dairy_free",
|
|
7
|
+
"egg_free",
|
|
8
|
+
"gluten_free",
|
|
9
|
+
"halal",
|
|
10
|
+
"high_protein",
|
|
11
|
+
"keto",
|
|
12
|
+
"low_carb",
|
|
13
|
+
"low_fat",
|
|
14
|
+
"low_sodium",
|
|
15
|
+
"low_sugar",
|
|
16
|
+
"nut_free",
|
|
17
|
+
"pescatarian",
|
|
18
|
+
"soy_free",
|
|
19
|
+
"vegan",
|
|
20
|
+
"vegetarian",
|
|
21
|
+
];
|
|
22
|
+
exports.DietaryTagSchema = zod_1.z.enum(exports.DIETARY_TAG_VALUES);
|
|
23
|
+
//# sourceMappingURL=dietary_tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dietary_tag.js","sourceRoot":"","sources":["../../../src/types/enums/dietary_tag.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAAG;IAChC,YAAY;IACZ,UAAU;IACV,aAAa;IACb,OAAO;IACP,cAAc;IACd,MAAM;IACN,UAAU;IACV,SAAS;IACT,YAAY;IACZ,WAAW;IACX,UAAU;IACV,aAAa;IACb,UAAU;IACV,OAAO;IACP,YAAY;CACJ,CAAC;AACE,QAAA,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC,0BAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DIFFICULTY_VALUES: readonly ["beginner", "intermediate", "advanced", "expert"];
|
|
3
|
+
export declare const DifficultySchema: z.ZodEnum<{
|
|
4
|
+
beginner: "beginner";
|
|
5
|
+
intermediate: "intermediate";
|
|
6
|
+
advanced: "advanced";
|
|
7
|
+
expert: "expert";
|
|
8
|
+
}>;
|
|
9
|
+
export type Difficulty = (typeof DIFFICULTY_VALUES)[number];
|
|
10
|
+
//# sourceMappingURL=difficulty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"difficulty.d.ts","sourceRoot":"","sources":["../../../src/types/enums/difficulty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB,6DAKpB,CAAC;AACX,eAAO,MAAM,gBAAgB;;;;;EAA4B,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DifficultySchema = exports.DIFFICULTY_VALUES = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.DIFFICULTY_VALUES = [
|
|
6
|
+
"beginner",
|
|
7
|
+
"intermediate",
|
|
8
|
+
"advanced",
|
|
9
|
+
"expert",
|
|
10
|
+
];
|
|
11
|
+
exports.DifficultySchema = zod_1.z.enum(exports.DIFFICULTY_VALUES);
|
|
12
|
+
//# sourceMappingURL=difficulty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"difficulty.js","sourceRoot":"","sources":["../../../src/types/enums/difficulty.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,iBAAiB,GAAG;IAC/B,UAAU;IACV,cAAc;IACd,UAAU;IACV,QAAQ;CACA,CAAC;AACE,QAAA,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC,yBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const IMAGE_TYPE_VALUES: readonly ["recipe", "ingredients"];
|
|
3
|
+
export declare const ImageTypeSchema: z.ZodEnum<{
|
|
4
|
+
recipe: "recipe";
|
|
5
|
+
ingredients: "ingredients";
|
|
6
|
+
}>;
|
|
7
|
+
export type ImageType = z.infer<typeof ImageTypeSchema>;
|
|
8
|
+
//# sourceMappingURL=image_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image_type.d.ts","sourceRoot":"","sources":["../../../src/types/enums/image_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB,oCAAqC,CAAC;AACpE,eAAO,MAAM,eAAe;;;EAA4B,CAAC;AACzD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImageTypeSchema = exports.IMAGE_TYPE_VALUES = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.IMAGE_TYPE_VALUES = ["recipe", "ingredients"];
|
|
6
|
+
exports.ImageTypeSchema = zod_1.z.enum(exports.IMAGE_TYPE_VALUES);
|
|
7
|
+
//# sourceMappingURL=image_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image_type.js","sourceRoot":"","sources":["../../../src/types/enums/image_type.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,iBAAiB,GAAG,CAAC,QAAQ,EAAE,aAAa,CAAU,CAAC;AACvD,QAAA,eAAe,GAAG,OAAC,CAAC,IAAI,CAAC,yBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from "./allergen";
|
|
2
|
+
export * from "./cuisine";
|
|
3
|
+
export * from "./dietary_tag";
|
|
4
|
+
export * from "./difficulty";
|
|
5
|
+
export * from "./image_type";
|
|
6
|
+
export * from "./locale";
|
|
7
|
+
export * from "./meal_type";
|
|
8
|
+
export * from "./moderation_status";
|
|
9
|
+
export * from "./priority";
|
|
10
|
+
export * from "./profile_status";
|
|
11
|
+
export * from "./recipe_source";
|
|
12
|
+
export * from "./recipe_status";
|
|
13
|
+
export * from "./role";
|
|
14
|
+
export * from "./severity";
|
|
15
|
+
export * from "./spiciness";
|
|
16
|
+
export * from "./subscription_tier";
|
|
17
|
+
export * from "./suggestion_category";
|
|
18
|
+
export * from "./temperature_unit";
|
|
19
|
+
export * from "./unit";
|
|
20
|
+
export * from "./url_type";
|
|
21
|
+
export * from "./user_status";
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./allergen"), exports);
|
|
18
|
+
__exportStar(require("./cuisine"), exports);
|
|
19
|
+
__exportStar(require("./dietary_tag"), exports);
|
|
20
|
+
__exportStar(require("./difficulty"), exports);
|
|
21
|
+
__exportStar(require("./image_type"), exports);
|
|
22
|
+
__exportStar(require("./locale"), exports);
|
|
23
|
+
__exportStar(require("./meal_type"), exports);
|
|
24
|
+
__exportStar(require("./moderation_status"), exports);
|
|
25
|
+
__exportStar(require("./priority"), exports);
|
|
26
|
+
__exportStar(require("./profile_status"), exports);
|
|
27
|
+
__exportStar(require("./recipe_source"), exports);
|
|
28
|
+
__exportStar(require("./recipe_status"), exports);
|
|
29
|
+
__exportStar(require("./role"), exports);
|
|
30
|
+
__exportStar(require("./severity"), exports);
|
|
31
|
+
__exportStar(require("./spiciness"), exports);
|
|
32
|
+
__exportStar(require("./subscription_tier"), exports);
|
|
33
|
+
__exportStar(require("./suggestion_category"), exports);
|
|
34
|
+
__exportStar(require("./temperature_unit"), exports);
|
|
35
|
+
__exportStar(require("./unit"), exports);
|
|
36
|
+
__exportStar(require("./url_type"), exports);
|
|
37
|
+
__exportStar(require("./user_status"), exports);
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,gDAA8B;AAC9B,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,8CAA4B;AAC5B,sDAAoC;AACpC,6CAA2B;AAC3B,mDAAiC;AACjC,kDAAgC;AAChC,kDAAgC;AAChC,yCAAuB;AACvB,6CAA2B;AAC3B,8CAA4B;AAC5B,sDAAoC;AACpC,wDAAsC;AACtC,qDAAmC;AACnC,yCAAuB;AACvB,6CAA2B;AAC3B,gDAA8B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const LOCALE_VALUES: readonly ["en", "ar", "es", "fr", "ru"];
|
|
3
|
+
export declare const LocaleSchema: z.ZodEnum<{
|
|
4
|
+
en: "en";
|
|
5
|
+
ar: "ar";
|
|
6
|
+
es: "es";
|
|
7
|
+
fr: "fr";
|
|
8
|
+
ru: "ru";
|
|
9
|
+
}>;
|
|
10
|
+
export type Locale = (typeof LOCALE_VALUES)[number];
|
|
11
|
+
//# sourceMappingURL=locale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../src/types/enums/locale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa,yCAA0C,CAAC;AACrE,eAAO,MAAM,YAAY;;;;;;EAAwB,CAAC;AAClD,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LocaleSchema = exports.LOCALE_VALUES = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.LOCALE_VALUES = ["en", "ar", "es", "fr", "ru"];
|
|
6
|
+
exports.LocaleSchema = zod_1.z.enum(exports.LOCALE_VALUES);
|
|
7
|
+
//# sourceMappingURL=locale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale.js","sourceRoot":"","sources":["../../../src/types/enums/locale.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AACxD,QAAA,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC,qBAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const MEAL_TYPE_VALUES: readonly ["appetizer", "breakfast", "brunch", "dessert", "dinner", "drink", "lunch", "snack"];
|
|
3
|
+
export declare const MealTypeSchema: z.ZodEnum<{
|
|
4
|
+
appetizer: "appetizer";
|
|
5
|
+
breakfast: "breakfast";
|
|
6
|
+
brunch: "brunch";
|
|
7
|
+
dessert: "dessert";
|
|
8
|
+
dinner: "dinner";
|
|
9
|
+
drink: "drink";
|
|
10
|
+
lunch: "lunch";
|
|
11
|
+
snack: "snack";
|
|
12
|
+
}>;
|
|
13
|
+
export type MealType = (typeof MEAL_TYPE_VALUES)[number];
|
|
14
|
+
//# sourceMappingURL=meal_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meal_type.d.ts","sourceRoot":"","sources":["../../../src/types/enums/meal_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,+FASnB,CAAC;AACX,eAAO,MAAM,cAAc;;;;;;;;;EAA2B,CAAC;AACvD,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MealTypeSchema = exports.MEAL_TYPE_VALUES = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.MEAL_TYPE_VALUES = [
|
|
6
|
+
"appetizer",
|
|
7
|
+
"breakfast",
|
|
8
|
+
"brunch",
|
|
9
|
+
"dessert",
|
|
10
|
+
"dinner",
|
|
11
|
+
"drink",
|
|
12
|
+
"lunch",
|
|
13
|
+
"snack",
|
|
14
|
+
];
|
|
15
|
+
exports.MealTypeSchema = zod_1.z.enum(exports.MEAL_TYPE_VALUES);
|
|
16
|
+
//# sourceMappingURL=meal_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meal_type.js","sourceRoot":"","sources":["../../../src/types/enums/meal_type.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,gBAAgB,GAAG;IAC9B,WAAW;IACX,WAAW;IACX,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;CACC,CAAC;AACE,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,wBAAgB,CAAC,CAAC"}
|