@cravery/core 0.0.41 → 0.0.42
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/types/ai/recipe.d.ts +3 -1
- package/dist/types/ai/recipe.d.ts.map +1 -1
- package/dist/types/ai/translation.d.ts +3 -1
- package/dist/types/ai/translation.d.ts.map +1 -1
- package/dist/types/equipment/category.d.ts +3 -0
- package/dist/types/equipment/category.d.ts.map +1 -0
- package/dist/types/equipment/category.js +18 -0
- package/dist/types/equipment/category.js.map +1 -0
- package/dist/types/equipment/equipment.d.ts +12 -0
- package/dist/types/equipment/equipment.d.ts.map +1 -0
- package/dist/types/equipment/equipment.js +3 -0
- package/dist/types/equipment/equipment.js.map +1 -0
- package/dist/types/equipment/equipment_entity.d.ts +11 -0
- package/dist/types/equipment/equipment_entity.d.ts.map +1 -0
- package/dist/types/equipment/equipment_entity.js +3 -0
- package/dist/types/equipment/equipment_entity.js.map +1 -0
- package/dist/types/equipment/index.d.ts +4 -0
- package/dist/types/equipment/index.d.ts.map +1 -0
- package/dist/types/equipment/index.js +20 -0
- package/dist/types/equipment/index.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/ingredient/category.d.ts +3 -0
- package/dist/types/ingredient/category.d.ts.map +1 -0
- package/dist/types/ingredient/category.js +31 -0
- package/dist/types/ingredient/category.js.map +1 -0
- package/dist/types/ingredient/index.d.ts +5 -0
- package/dist/types/ingredient/index.d.ts.map +1 -0
- package/dist/types/ingredient/index.js +21 -0
- package/dist/types/ingredient/index.js.map +1 -0
- package/dist/types/ingredient/ingredient.d.ts +15 -0
- package/dist/types/ingredient/ingredient.d.ts.map +1 -0
- package/dist/types/ingredient/ingredient.js +3 -0
- package/dist/types/ingredient/ingredient.js.map +1 -0
- package/dist/types/ingredient/ingredient_entity.d.ts +13 -0
- package/dist/types/ingredient/ingredient_entity.d.ts.map +1 -0
- package/dist/types/ingredient/ingredient_entity.js +3 -0
- package/dist/types/ingredient/ingredient_entity.js.map +1 -0
- package/dist/types/ingredient/ingredient_section.d.ts +16 -0
- package/dist/types/ingredient/ingredient_section.d.ts.map +1 -0
- package/dist/types/ingredient/ingredient_section.js +3 -0
- package/dist/types/ingredient/ingredient_section.js.map +1 -0
- package/dist/types/recipe/index.d.ts +0 -2
- package/dist/types/recipe/index.d.ts.map +1 -1
- package/dist/types/recipe/index.js +0 -2
- package/dist/types/recipe/index.js.map +1 -1
- package/dist/types/recipe/recipe.d.ts +2 -2
- package/dist/types/recipe/recipe.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types/ai/recipe.ts +2 -2
- package/src/types/ai/translation.ts +2 -2
- package/src/types/equipment/category.ts +15 -0
- package/src/types/equipment/equipment_entity.ts +12 -0
- package/src/types/equipment/index.ts +3 -0
- package/src/types/index.ts +2 -0
- package/src/types/ingredient/category.ts +28 -0
- package/src/types/ingredient/index.ts +4 -0
- package/src/types/ingredient/ingredient.ts +16 -0
- package/src/types/ingredient/ingredient_entity.ts +14 -0
- package/src/types/{recipe/ingredient.ts → ingredient/ingredient_section.ts} +1 -16
- package/src/types/recipe/index.ts +0 -2
- package/src/types/recipe/recipe.ts +2 -2
- /package/src/types/{recipe → equipment}/equipment.ts +0 -0
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Equipment } from "../equipment";
|
|
2
|
+
import { IngredientSection } from "../ingredient";
|
|
3
|
+
import { Allergen, Cuisine, DietaryTag, Difficulty, Instruction, MealType, Nutrition, Spiciness } from "../recipe";
|
|
2
4
|
export interface AIRecipe {
|
|
3
5
|
allergens: Allergen[];
|
|
4
6
|
confidence: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/ai/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,EACP,UAAU,EACV,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/ai/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EACL,QAAQ,EACR,OAAO,EACP,UAAU,EACV,UAAU,EACV,WAAW,EACX,QAAQ,EACR,SAAS,EACT,SAAS,EACV,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC;IACxB,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { EquipmentContent
|
|
1
|
+
import { EquipmentContent } from "../equipment";
|
|
2
|
+
import { IngredientSectionContent } from "../ingredient";
|
|
3
|
+
import { InstructionContent } from "../recipe";
|
|
2
4
|
export interface AIRecipeTranslation {
|
|
3
5
|
description: string;
|
|
4
6
|
equipment?: EquipmentContent[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../src/types/ai/translation.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../src/types/ai/translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EACL,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/B,kBAAkB,EAAE,wBAAwB,EAAE,CAAC;IAC/C,YAAY,EAAE,kBAAkB,EAAE,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const EQUIPMENT_CATEGORY_VALUES: readonly ["cookware", "bakeware", "cutlery", "utensils", "appliances", "mixing", "measuring", "prep", "baking_tools", "storage", "serving", "specialty"];
|
|
2
|
+
export type EquipmentCategory = (typeof EQUIPMENT_CATEGORY_VALUES)[number];
|
|
3
|
+
//# sourceMappingURL=category.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../src/types/equipment/category.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,0JAa5B,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EQUIPMENT_CATEGORY_VALUES = void 0;
|
|
4
|
+
exports.EQUIPMENT_CATEGORY_VALUES = [
|
|
5
|
+
'cookware',
|
|
6
|
+
'bakeware',
|
|
7
|
+
'cutlery',
|
|
8
|
+
'utensils',
|
|
9
|
+
'appliances',
|
|
10
|
+
'mixing',
|
|
11
|
+
'measuring',
|
|
12
|
+
'prep',
|
|
13
|
+
'baking_tools',
|
|
14
|
+
'storage',
|
|
15
|
+
'serving',
|
|
16
|
+
'specialty',
|
|
17
|
+
];
|
|
18
|
+
//# sourceMappingURL=category.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../../src/types/equipment/category.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;IACvC,UAAU;IACV,UAAU;IACV,SAAS;IACT,UAAU;IACV,YAAY;IACZ,QAAQ;IACR,WAAW;IACX,MAAM;IACN,cAAc;IACd,SAAS;IACT,SAAS;IACT,WAAW;CACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface EquipmentMeta {
|
|
2
|
+
required?: boolean;
|
|
3
|
+
slug: string;
|
|
4
|
+
}
|
|
5
|
+
export interface EquipmentContent {
|
|
6
|
+
name: string;
|
|
7
|
+
notes?: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Equipment extends EquipmentMeta, EquipmentContent {
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=equipment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equipment.d.ts","sourceRoot":"","sources":["../../../src/types/equipment/equipment.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,SAAU,SAAQ,aAAa,EAAE,gBAAgB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equipment.js","sourceRoot":"","sources":["../../../src/types/equipment/equipment.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Entity } from "../core";
|
|
2
|
+
export interface EquipmentEntityMeta extends Entity {
|
|
3
|
+
slug: string;
|
|
4
|
+
}
|
|
5
|
+
export interface EquipmentEntityContent {
|
|
6
|
+
name: string;
|
|
7
|
+
slug: string;
|
|
8
|
+
}
|
|
9
|
+
export interface EquipmentEntity extends EquipmentEntityMeta, EquipmentEntityContent {
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=equipment_entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equipment_entity.d.ts","sourceRoot":"","sources":["../../../src/types/equipment/equipment_entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,MAAM,WAAW,mBAAoB,SAAQ,MAAM;IACjD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAgB,SAAQ,mBAAmB,EAAE,sBAAsB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equipment_entity.js","sourceRoot":"","sources":["../../../src/types/equipment/equipment_entity.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/equipment/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./category"), exports);
|
|
18
|
+
__exportStar(require("./equipment_entity"), exports);
|
|
19
|
+
__exportStar(require("./equipment"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/equipment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,qDAAmC;AACnC,8CAA4B"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
package/dist/types/index.js
CHANGED
|
@@ -16,7 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ai"), exports);
|
|
18
18
|
__exportStar(require("./core"), exports);
|
|
19
|
+
__exportStar(require("./equipment"), exports);
|
|
19
20
|
__exportStar(require("./iam"), exports);
|
|
21
|
+
__exportStar(require("./ingredient"), exports);
|
|
20
22
|
__exportStar(require("./recipe"), exports);
|
|
21
23
|
__exportStar(require("./report"), exports);
|
|
22
24
|
__exportStar(require("./submission"), exports);
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,yCAAuB;AACvB,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,yCAAuB;AACvB,8CAA4B;AAC5B,wCAAsB;AACtB,+CAA6B;AAC7B,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const INGREDIENT_CATEGORY_VALUES: readonly ["fruits", "vegetables", "meat", "poultry", "seafood", "dairy", "grains", "legumes", "spices", "nuts_seeds", "oils_fats", "sauces", "condiments", "sweeteners", "baking", "pantry", "canned", "frozen", "bakery", "prepared", "beverages", "snacks", "international", "specialty", "baby"];
|
|
2
|
+
export type IngredientCategory = (typeof INGREDIENT_CATEGORY_VALUES)[number];
|
|
3
|
+
//# sourceMappingURL=category.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../src/types/ingredient/category.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,qSA0B7B,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INGREDIENT_CATEGORY_VALUES = void 0;
|
|
4
|
+
exports.INGREDIENT_CATEGORY_VALUES = [
|
|
5
|
+
'fruits',
|
|
6
|
+
'vegetables',
|
|
7
|
+
'meat',
|
|
8
|
+
'poultry',
|
|
9
|
+
'seafood',
|
|
10
|
+
'dairy',
|
|
11
|
+
'grains',
|
|
12
|
+
'legumes',
|
|
13
|
+
'spices',
|
|
14
|
+
'nuts_seeds',
|
|
15
|
+
'oils_fats',
|
|
16
|
+
'sauces',
|
|
17
|
+
'condiments',
|
|
18
|
+
'sweeteners',
|
|
19
|
+
'baking',
|
|
20
|
+
'pantry',
|
|
21
|
+
'canned',
|
|
22
|
+
'frozen',
|
|
23
|
+
'bakery',
|
|
24
|
+
'prepared',
|
|
25
|
+
'beverages',
|
|
26
|
+
'snacks',
|
|
27
|
+
'international',
|
|
28
|
+
'specialty',
|
|
29
|
+
'baby',
|
|
30
|
+
];
|
|
31
|
+
//# sourceMappingURL=category.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../../src/types/ingredient/category.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACxC,QAAQ;IACR,YAAY;IACZ,MAAM;IACN,SAAS;IACT,SAAS;IACT,OAAO;IACP,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,YAAY;IACZ,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,WAAW;IACX,QAAQ;IACR,eAAe;IACf,WAAW;IACX,MAAM;CACE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/ingredient/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./category"), exports);
|
|
18
|
+
__exportStar(require("./ingredient_entity"), exports);
|
|
19
|
+
__exportStar(require("./ingredient_section"), exports);
|
|
20
|
+
__exportStar(require("./ingredient"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/ingredient/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Unit } from "../recipe";
|
|
2
|
+
export interface IngredientMeta {
|
|
3
|
+
quantity?: number;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
slug: string;
|
|
6
|
+
unit?: Unit;
|
|
7
|
+
}
|
|
8
|
+
export interface IngredientContent {
|
|
9
|
+
name: string;
|
|
10
|
+
notes?: string;
|
|
11
|
+
slug: string;
|
|
12
|
+
}
|
|
13
|
+
export interface Ingredient extends IngredientMeta, IngredientContent {
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ingredient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingredient.d.ts","sourceRoot":"","sources":["../../../src/types/ingredient/ingredient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAW,SAAQ,cAAc,EAAE,iBAAiB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingredient.js","sourceRoot":"","sources":["../../../src/types/ingredient/ingredient.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Entity } from "../core";
|
|
2
|
+
import { IngredientCategory } from "./category";
|
|
3
|
+
export interface IngredientEntityMeta extends Entity {
|
|
4
|
+
category: IngredientCategory;
|
|
5
|
+
slug: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IngredientEntityContent {
|
|
8
|
+
name: string;
|
|
9
|
+
slug: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IngredientEntity extends IngredientEntityMeta, IngredientEntityContent {
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=ingredient_entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingredient_entity.d.ts","sourceRoot":"","sources":["../../../src/types/ingredient/ingredient_entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,oBAAqB,SAAQ,MAAM;IAClD,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB,EAAE,uBAAuB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingredient_entity.js","sourceRoot":"","sources":["../../../src/types/ingredient/ingredient_entity.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Ingredient, IngredientContent, IngredientMeta } from "./ingredient";
|
|
2
|
+
export interface IngredientSectionMeta {
|
|
3
|
+
ingredients: IngredientMeta[];
|
|
4
|
+
slug: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IngredientSectionContent {
|
|
7
|
+
ingredients: IngredientContent[];
|
|
8
|
+
slug: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IngredientSection {
|
|
12
|
+
ingredients: Ingredient[];
|
|
13
|
+
slug: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ingredient_section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingredient_section.d.ts","sourceRoot":"","sources":["../../../src/types/ingredient/ingredient_section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE7E,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingredient_section.js","sourceRoot":"","sources":["../../../src/types/ingredient/ingredient_section.ts"],"names":[],"mappings":""}
|
|
@@ -3,9 +3,7 @@ export * from "./comment";
|
|
|
3
3
|
export * from "./cuisine";
|
|
4
4
|
export * from "./dietary_tag";
|
|
5
5
|
export * from "./difficulty";
|
|
6
|
-
export * from "./equipment";
|
|
7
6
|
export * from "./filters";
|
|
8
|
-
export * from "./ingredient";
|
|
9
7
|
export * from "./instruction";
|
|
10
8
|
export * from "./meal_type";
|
|
11
9
|
export * from "./nutrition";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
|
|
@@ -19,9 +19,7 @@ __exportStar(require("./comment"), exports);
|
|
|
19
19
|
__exportStar(require("./cuisine"), exports);
|
|
20
20
|
__exportStar(require("./dietary_tag"), exports);
|
|
21
21
|
__exportStar(require("./difficulty"), exports);
|
|
22
|
-
__exportStar(require("./equipment"), exports);
|
|
23
22
|
__exportStar(require("./filters"), exports);
|
|
24
|
-
__exportStar(require("./ingredient"), exports);
|
|
25
23
|
__exportStar(require("./instruction"), exports);
|
|
26
24
|
__exportStar(require("./meal_type"), exports);
|
|
27
25
|
__exportStar(require("./nutrition"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,4CAA0B;AAC1B,gDAA8B;AAC9B,+CAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,4CAA0B;AAC1B,gDAA8B;AAC9B,+CAA6B;AAC7B,4CAA0B;AAC1B,gDAA8B;AAC9B,8CAA4B;AAC5B,8CAA4B;AAC5B,kDAAgC;AAChC,kDAAgC;AAChC,2CAAyB;AACzB,8CAA4B;AAC5B,qDAAmC;AACnC,gDAA8B;AAC9B,yCAAuB"}
|
|
@@ -4,8 +4,8 @@ import { Allergen } from "./allergen";
|
|
|
4
4
|
import { Cuisine } from "./cuisine";
|
|
5
5
|
import { DietaryTag } from "./dietary_tag";
|
|
6
6
|
import { Difficulty } from "./difficulty";
|
|
7
|
-
import { Equipment, EquipmentContent, EquipmentMeta } from "
|
|
8
|
-
import { IngredientSection, IngredientSectionContent, IngredientSectionMeta } from "
|
|
7
|
+
import { Equipment, EquipmentContent, EquipmentMeta } from "../equipment";
|
|
8
|
+
import { IngredientSection, IngredientSectionContent, IngredientSectionMeta } from "../ingredient";
|
|
9
9
|
import { Instruction, InstructionContent, InstructionMeta } from "./instruction";
|
|
10
10
|
import { MealType } from "./meal_type";
|
|
11
11
|
import { Nutrition } from "./nutrition";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC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CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
package/package.json
CHANGED
package/src/types/ai/recipe.ts
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const EQUIPMENT_CATEGORY_VALUES = [
|
|
2
|
+
'cookware',
|
|
3
|
+
'bakeware',
|
|
4
|
+
'cutlery',
|
|
5
|
+
'utensils',
|
|
6
|
+
'appliances',
|
|
7
|
+
'mixing',
|
|
8
|
+
'measuring',
|
|
9
|
+
'prep',
|
|
10
|
+
'baking_tools',
|
|
11
|
+
'storage',
|
|
12
|
+
'serving',
|
|
13
|
+
'specialty',
|
|
14
|
+
] as const;
|
|
15
|
+
export type EquipmentCategory = (typeof EQUIPMENT_CATEGORY_VALUES)[number];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Entity } from "../core";
|
|
2
|
+
|
|
3
|
+
export interface EquipmentEntityMeta extends Entity {
|
|
4
|
+
slug: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface EquipmentEntityContent {
|
|
8
|
+
name: string;
|
|
9
|
+
slug: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface EquipmentEntity extends EquipmentEntityMeta, EquipmentEntityContent {}
|
package/src/types/index.ts
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export const INGREDIENT_CATEGORY_VALUES = [
|
|
2
|
+
'fruits',
|
|
3
|
+
'vegetables',
|
|
4
|
+
'meat',
|
|
5
|
+
'poultry',
|
|
6
|
+
'seafood',
|
|
7
|
+
'dairy',
|
|
8
|
+
'grains',
|
|
9
|
+
'legumes',
|
|
10
|
+
'spices',
|
|
11
|
+
'nuts_seeds',
|
|
12
|
+
'oils_fats',
|
|
13
|
+
'sauces',
|
|
14
|
+
'condiments',
|
|
15
|
+
'sweeteners',
|
|
16
|
+
'baking',
|
|
17
|
+
'pantry',
|
|
18
|
+
'canned',
|
|
19
|
+
'frozen',
|
|
20
|
+
'bakery',
|
|
21
|
+
'prepared',
|
|
22
|
+
'beverages',
|
|
23
|
+
'snacks',
|
|
24
|
+
'international',
|
|
25
|
+
'specialty',
|
|
26
|
+
'baby',
|
|
27
|
+
] as const;
|
|
28
|
+
export type IngredientCategory = (typeof INGREDIENT_CATEGORY_VALUES)[number];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Unit } from "../recipe";
|
|
2
|
+
|
|
3
|
+
export interface IngredientMeta {
|
|
4
|
+
quantity?: number;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
slug: string;
|
|
7
|
+
unit?: Unit;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface IngredientContent {
|
|
11
|
+
name: string;
|
|
12
|
+
notes?: string;
|
|
13
|
+
slug: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface Ingredient extends IngredientMeta, IngredientContent {}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Entity } from "../core";
|
|
2
|
+
import { IngredientCategory } from "./category";
|
|
3
|
+
|
|
4
|
+
export interface IngredientEntityMeta extends Entity {
|
|
5
|
+
category: IngredientCategory
|
|
6
|
+
slug: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface IngredientEntityContent {
|
|
10
|
+
name: string;
|
|
11
|
+
slug: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface IngredientEntity extends IngredientEntityMeta, IngredientEntityContent {}
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface IngredientMeta {
|
|
4
|
-
quantity?: number;
|
|
5
|
-
required?: boolean;
|
|
6
|
-
slug: string;
|
|
7
|
-
unit?: Unit;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface IngredientContent {
|
|
11
|
-
name: string;
|
|
12
|
-
notes?: string;
|
|
13
|
-
slug: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface Ingredient extends IngredientMeta, IngredientContent {}
|
|
1
|
+
import { Ingredient, IngredientContent, IngredientMeta } from "./ingredient";
|
|
17
2
|
|
|
18
3
|
export interface IngredientSectionMeta {
|
|
19
4
|
ingredients: IngredientMeta[];
|
|
@@ -3,9 +3,7 @@ export * from "./comment";
|
|
|
3
3
|
export * from "./cuisine";
|
|
4
4
|
export * from "./dietary_tag";
|
|
5
5
|
export * from "./difficulty";
|
|
6
|
-
export * from "./equipment";
|
|
7
6
|
export * from "./filters";
|
|
8
|
-
export * from "./ingredient";
|
|
9
7
|
export * from "./instruction";
|
|
10
8
|
export * from "./meal_type";
|
|
11
9
|
export * from "./nutrition";
|
|
@@ -4,12 +4,12 @@ import { Allergen } from "./allergen";
|
|
|
4
4
|
import { Cuisine } from "./cuisine";
|
|
5
5
|
import { DietaryTag } from "./dietary_tag";
|
|
6
6
|
import { Difficulty } from "./difficulty";
|
|
7
|
-
import { Equipment, EquipmentContent, EquipmentMeta } from "
|
|
7
|
+
import { Equipment, EquipmentContent, EquipmentMeta } from "../equipment";
|
|
8
8
|
import {
|
|
9
9
|
IngredientSection,
|
|
10
10
|
IngredientSectionContent,
|
|
11
11
|
IngredientSectionMeta,
|
|
12
|
-
} from "
|
|
12
|
+
} from "../ingredient";
|
|
13
13
|
import {
|
|
14
14
|
Instruction,
|
|
15
15
|
InstructionContent,
|
|
File without changes
|