@pastelarai/pastelarai-shared-types 1.0.146 → 1.0.148

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.
@@ -39,16 +39,20 @@ export interface Ingredient extends Omit<IngredientDB, 'category'> {
39
39
  export type BillWithoutIngredientsList = Omit<Bill, 'ingredients_list'>;
40
40
  export interface AdminIngredient {
41
41
  ingredient_id: string;
42
+ category: INGREDIENTCATEGORY;
42
43
  variants: {
43
44
  country: string;
44
45
  ingredient_name: string;
45
46
  }[];
47
+ allergens?: string[];
48
+ nutritional_info?: {
49
+ calories_per_100g: number;
50
+ protein_per_100g: number;
51
+ carbs_per_100g: number;
52
+ fat_per_100g: number;
53
+ fiber_per_100g: number;
54
+ };
46
55
  error?: boolean;
47
- }
48
- export interface AdminIngredientDB {
49
- _id?: string;
50
- name: string;
51
- country: string;
52
56
  created_at?: Date;
53
57
  updated_at?: Date;
54
58
  }
@@ -22,6 +22,8 @@ export interface CompanyDB {
22
22
  subscription_plan?: string;
23
23
  pricing_id?: string;
24
24
  beta_unlimited?: number;
25
+ created_at?: string;
26
+ updated_at?: string;
25
27
  }
26
28
  export interface UserDB {
27
29
  email: string;
@@ -29,6 +31,9 @@ export interface UserDB {
29
31
  lastname: string;
30
32
  picture?: string;
31
33
  default_company: string;
34
+ created_at?: string;
35
+ updated_at?: string;
36
+ lastlogin?: string;
32
37
  }
33
38
  export interface Profile extends UserDB {
34
39
  company_details: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pastelarai/pastelarai-shared-types",
3
- "version": "1.0.146",
3
+ "version": "1.0.148",
4
4
  "description": "Shared types for PastelarAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",