@pastelarai/pastelarai-shared-types 1.0.44 → 1.0.46

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.
@@ -74,3 +74,8 @@ export declare enum STORAGEUNIT {
74
74
  MONTHS = "months",
75
75
  YEARS = "years"
76
76
  }
77
+ export declare enum RISK {
78
+ NONE = "",
79
+ WARNING = "warning",
80
+ URGENT = "urgent"
81
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.STORAGEUNIT = exports.TASKSTATUS = exports.PRODUCTSALETYPE = exports.EXCEPTION = exports.CONTENTTYPE = exports.USER_UNIT = exports.UNIT = exports.TMSTATUS = exports.TASKACTIONTYPE = exports.CURRENCYDISPLAYTYPE = exports.VALUETYPE = exports.STATUS = exports.FORECASTVIEWTYPE = exports.VIEWTYPE = void 0;
3
+ exports.RISK = exports.STORAGEUNIT = exports.TASKSTATUS = exports.PRODUCTSALETYPE = exports.EXCEPTION = exports.CONTENTTYPE = exports.USER_UNIT = exports.UNIT = exports.TMSTATUS = exports.TASKACTIONTYPE = exports.CURRENCYDISPLAYTYPE = exports.VALUETYPE = exports.STATUS = exports.FORECASTVIEWTYPE = exports.VIEWTYPE = void 0;
4
4
  var VIEWTYPE;
5
5
  (function (VIEWTYPE) {
6
6
  VIEWTYPE["VIEW"] = "viewMode";
@@ -91,3 +91,9 @@ var STORAGEUNIT;
91
91
  STORAGEUNIT["MONTHS"] = "months";
92
92
  STORAGEUNIT["YEARS"] = "years";
93
93
  })(STORAGEUNIT || (exports.STORAGEUNIT = STORAGEUNIT = {}));
94
+ var RISK;
95
+ (function (RISK) {
96
+ RISK["NONE"] = "";
97
+ RISK["WARNING"] = "warning";
98
+ RISK["URGENT"] = "urgent";
99
+ })(RISK || (exports.RISK = RISK = {}));
package/dist/index.d.ts CHANGED
@@ -9,3 +9,4 @@ export * from "./interfaces/team";
9
9
  export * from "./interfaces/user";
10
10
  export * from "./data/types";
11
11
  export * from "./interfaces/openai";
12
+ export * from "./interfaces/home";
package/dist/index.js CHANGED
@@ -25,3 +25,4 @@ __exportStar(require("./interfaces/team"), exports);
25
25
  __exportStar(require("./interfaces/user"), exports);
26
26
  __exportStar(require("./data/types"), exports);
27
27
  __exportStar(require("./interfaces/openai"), exports);
28
+ __exportStar(require("./interfaces/home"), exports);
@@ -19,4 +19,5 @@ export interface Bill {
19
19
  ingredients_list: IngredientInBill[];
20
20
  external_id?: string;
21
21
  _id?: string;
22
+ photos?: string[];
22
23
  }
@@ -0,0 +1,24 @@
1
+ import { ContentDayProd, TaskProduction } from "./productions";
2
+ import { IdNameAvatar } from "./products";
3
+ import { SalesPlanDay } from "./ranges";
4
+ import { ShiftList } from "./team";
5
+ export interface ProductionDayByTM {
6
+ team_member: IdNameAvatar;
7
+ scheduled_off: boolean;
8
+ shifts_list: ShiftList[];
9
+ tasks_list: TaskProduction[];
10
+ }
11
+ export interface DaySummary {
12
+ ingredients_alerts: {
13
+ warning: number;
14
+ urgent: number;
15
+ };
16
+ margin: {
17
+ last_day: number;
18
+ last_week: number;
19
+ last_month: number;
20
+ };
21
+ production_day_by_tm: ProductionDayByTM;
22
+ production_day_content: ContentDayProd;
23
+ sales_plan_day: SalesPlanDay;
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { USER_UNIT } from "src/data/types";
1
+ import { RISK, UNIT, USER_UNIT } from "../data/types";
2
2
  import { Bill, IdName } from "./bill";
3
3
  export interface Category {
4
4
  key: string;
@@ -12,10 +12,12 @@ export interface Ingredient {
12
12
  unit: USER_UNIT;
13
13
  cost_per_unit: number;
14
14
  };
15
+ conversion_to_grams: number;
16
+ unit?: UNIT;
15
17
  cost_per_kg: number;
16
18
  weight: number;
17
19
  value: number;
18
- risk?: string;
20
+ risk?: RISK;
19
21
  forecast?: string;
20
22
  _id?: string;
21
23
  using?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pastelarai/pastelarai-shared-types",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "Shared types for PastelarAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",