@pastelarai/pastelarai-shared-types 1.0.67 → 1.0.69

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.
@@ -25,6 +25,8 @@ export interface Ingredient {
25
25
  bills_list: BillWithoutIngredientsList[];
26
26
  recipes_list: IdName[];
27
27
  products_list: IdName[];
28
+ rate_recipes: number;
29
+ rate_products: number;
28
30
  };
29
31
  }
30
32
  export type BillWithoutIngredientsList = Omit<Bill, 'ingredients_list'>;
@@ -14,18 +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
- composition?: {
24
- format: Format;
25
- units_per_batch: number;
26
- content_list?: ProductContent[];
27
- tasks_list?: TaskProduct[];
28
- };
29
+ composition?: CompositionProductSearchResult[];
29
30
  }
30
31
  export interface RecipeSearchResult {
31
32
  _id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pastelarai/pastelarai-shared-types",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "description": "Shared types for PastelarAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",