@pastelarai/pastelarai-shared-types 1.0.111 → 1.0.113

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.
@@ -2,6 +2,7 @@ import { CONTENTTYPE, STORAGEUNIT, TASKACTIONTYPE, TASKUNIT, UNIT } from "src/da
2
2
  import { PRODUCTCATEGORY } from "src/data/categories";
3
3
  import { IdName } from "./bill";
4
4
  import { Avatar, Customer, ProductInRange } from "./ranges";
5
+ import { WorkingRecipe } from "./recipes";
5
6
  export interface Format {
6
7
  _id?: string;
7
8
  name: string;
@@ -71,6 +72,13 @@ export interface Product {
71
72
  customer_orders_list: Customer[];
72
73
  };
73
74
  }
75
+ export interface ScannedProduct {
76
+ name: string;
77
+ category: PRODUCTCATEGORY;
78
+ description: string;
79
+ composition: Composition;
80
+ recipes: WorkingRecipe[];
81
+ }
74
82
  export interface IdNameAvatar extends IdName {
75
83
  avatar: Avatar;
76
84
  }
@@ -54,6 +54,7 @@ export interface WorkingLaminatedDough extends Omit<LaminatedDough, 'ingredient_
54
54
  export interface WorkingRecipe extends Omit<Recipe, 'ingredients_list' | 'laminated_dough'> {
55
55
  ingredients_list: WorkingRecipeContent[];
56
56
  laminated_dough?: WorkingLaminatedDough;
57
+ subrecipes?: WorkingRecipe[];
57
58
  }
58
59
  export interface SharableLaminatedDough {
59
60
  weight_unit_dough: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pastelarai/pastelarai-shared-types",
3
- "version": "1.0.111",
3
+ "version": "1.0.113",
4
4
  "description": "Shared types for PastelarAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",