@pastelarai/pastelarai-shared-types 1.0.66 → 1.0.68

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,7 +1,7 @@
1
1
  import { IdName, IngredientInBill } from "./bill";
2
2
  import { Ingredient } from "./ingredients";
3
- import { ProductContent, TaskProduct } from "./products";
4
- import { LaminatedDough, RecipeContent, RecipeCost } from "./recipes";
3
+ import { Format, ProductContent, TaskProduct } from "./products";
4
+ import { LaminatedDough, RecipeContent } from "./recipes";
5
5
  import { Supplier } from "./suppliers";
6
6
  import { Additional } from "./team";
7
7
  import { Avatar, ProductInRange } from "./ranges";
@@ -14,14 +14,19 @@ export interface SuggestionsResults {
14
14
  suppliers?: IdName[];
15
15
  team_members?: IdName[];
16
16
  }
17
+ export interface CompositionProductSearchResult {
18
+ format: Format;
19
+ units_per_batch: number;
20
+ content_list?: ProductContent[];
21
+ tasks_list?: TaskProduct[];
22
+ }
17
23
  export interface ProductSearchResult {
18
24
  _id: string;
19
25
  name: string;
20
26
  category: PRODUCTCATEGORY;
21
27
  holidays: string;
22
28
  description: string;
23
- content_list: ProductContent[];
24
- tasks_list: TaskProduct[];
29
+ composition?: CompositionProductSearchResult[];
25
30
  }
26
31
  export interface RecipeSearchResult {
27
32
  _id: string;
@@ -30,10 +35,9 @@ export interface RecipeSearchResult {
30
35
  category: RECIPECATEGORY;
31
36
  description: string;
32
37
  prep_time: number;
33
- ingredients_list: RecipeContent[];
34
- steps_list: string[];
38
+ ingredients_list?: RecipeContent[];
39
+ steps_list?: string[];
35
40
  laminated_dough?: LaminatedDough;
36
- costs: RecipeCost;
37
41
  }
38
42
  export interface RangeSearchResult {
39
43
  _id: string;
@@ -42,21 +46,21 @@ export interface RangeSearchResult {
42
46
  start_date: string;
43
47
  end_date?: string;
44
48
  description: string;
45
- products_list: ProductInRange[];
49
+ products_list?: ProductInRange[];
46
50
  }
47
51
  export interface TeamMemberSearchResults {
48
52
  _id: string;
49
53
  avatar: Avatar;
50
54
  name: string;
51
55
  position: string;
52
- additionals: Additional[];
56
+ additionals?: Additional[];
53
57
  }
54
58
  export interface BillSearchResults {
55
59
  _id: string;
56
60
  supplier: IdName;
57
61
  date: string;
58
62
  total_price: number;
59
- ingredients_list: IngredientInBill[];
63
+ ingredients_list?: IngredientInBill[];
60
64
  external_id?: string;
61
65
  }
62
66
  export interface DeepSearchResults {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pastelarai/pastelarai-shared-types",
3
- "version": "1.0.66",
3
+ "version": "1.0.68",
4
4
  "description": "Shared types for PastelarAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",