@pastelarai/pastelarai-shared-types 1.0.134 → 1.0.136

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.
@@ -1,4 +1,4 @@
1
- import { UNIT, USER_UNIT } from "src/data/types";
1
+ import { UNIT, USER_UNIT } from "../data/types";
2
2
  import { ContentDayProd, TaskProduction } from "./productions";
3
3
  import { IdNameAvatar } from "./products";
4
4
  import { ProductInRange, SalesPlanDay } from "./ranges";
@@ -4,7 +4,7 @@ import { Bill, IdName } from "./bill";
4
4
  export interface Category {
5
5
  key: string;
6
6
  }
7
- export interface Ingredient {
7
+ export interface IngredientDB {
8
8
  category: INGREDIENTCATEGORY;
9
9
  name: string;
10
10
  favorite_supplier: IdName;
@@ -20,6 +20,8 @@ export interface Ingredient {
20
20
  value: number;
21
21
  risk?: RISK;
22
22
  forecast?: string;
23
+ }
24
+ export interface Ingredient extends IngredientDB {
23
25
  _id?: string;
24
26
  using?: {
25
27
  bills_list: BillWithoutIngredientsList[];
@@ -100,3 +100,17 @@ export interface SharableRecipe {
100
100
  recipes_list: IdName[];
101
101
  };
102
102
  }
103
+ export interface ScannedIngredient {
104
+ name: string;
105
+ weight: number;
106
+ unit: string;
107
+ }
108
+ export interface ScannedRecipe {
109
+ name: string;
110
+ prep_time?: number | null;
111
+ steps_list: string[];
112
+ ingredients_list: ScannedIngredient[];
113
+ }
114
+ export interface MultipleRecipesScanResult {
115
+ recipes: ScannedRecipe[];
116
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pastelarai/pastelarai-shared-types",
3
- "version": "1.0.134",
3
+ "version": "1.0.136",
4
4
  "description": "Shared types for PastelarAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",