@pastelarai/pastelarai-shared-types 1.0.143 → 1.0.145

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.
@@ -37,3 +37,11 @@ export interface Ingredient extends Omit<IngredientDB, 'category'> {
37
37
  };
38
38
  }
39
39
  export type BillWithoutIngredientsList = Omit<Bill, 'ingredients_list'>;
40
+ export interface AdminIngredient {
41
+ ingredient_id: string;
42
+ variants: {
43
+ country: string;
44
+ ingredient_name: string;
45
+ }[];
46
+ error?: boolean;
47
+ }
@@ -73,7 +73,7 @@ export interface SharableContent {
73
73
  }[];
74
74
  _id?: string;
75
75
  weight: number;
76
- cost: number;
76
+ cost?: number;
77
77
  quantity?: number;
78
78
  unit: UNIT;
79
79
  type: CONTENTTYPE;
@@ -86,14 +86,15 @@ export interface SharableRecipe {
86
86
  description: string;
87
87
  steps_list: string[];
88
88
  }[];
89
+ active: boolean;
89
90
  recipe_base: boolean;
90
91
  storage: Storage;
91
92
  category: RECIPECATEGORY;
92
93
  prep_time?: number;
93
- stock: number;
94
+ stock?: number;
94
95
  ingredients_list: SharableContent[];
95
96
  laminated_dough?: SharableLaminatedDough;
96
- costs: RecipeCost;
97
+ costs?: RecipeCost;
97
98
  _id?: string;
98
99
  using?: {
99
100
  products_list: IdName[];
@@ -35,6 +35,11 @@ export interface Profile extends UserDB {
35
35
  [key: string]: Company;
36
36
  };
37
37
  }
38
+ export interface UsersCompaniesDB {
39
+ user_email: string;
40
+ company_UUID: string;
41
+ role: string;
42
+ }
38
43
  export interface OnboardingIn {
39
44
  user: UserDB;
40
45
  company: CompanyDB;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pastelarai/pastelarai-shared-types",
3
- "version": "1.0.143",
3
+ "version": "1.0.145",
4
4
  "description": "Shared types for PastelarAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",