truflow 0.0.180 → 0.0.181

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,7 +25,7 @@
25
25
  import { Document } from "mongoose";
26
26
  export interface ILeanQualityControlNotification {
27
27
  _id?: string;
28
- productId: string;
28
+ productId?: string;
29
29
  attributeName: string;
30
30
  operator: string;
31
31
  values: (string | number)[];
@@ -80,6 +80,8 @@ export interface ILeanTotalsGroup extends ILeanSetting {
80
80
  name: string;
81
81
  identifier: string;
82
82
  calculations?: ICalculation[];
83
+ dailyLimit?: number;
84
+ buffer?: number;
83
85
  }
84
86
  export interface ILeanKeyValue extends ILeanSetting {
85
87
  key: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "truflow",
3
- "version": "0.0.180",
3
+ "version": "0.0.181",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -2,7 +2,7 @@ import { Document } from "mongoose";
2
2
 
3
3
  export interface ILeanQualityControlNotification {
4
4
  _id?: string;
5
- productId: string;
5
+ productId?: string; // Now optional for global rules
6
6
  attributeName: string; // Use attributeName instead of attributeId
7
7
  operator: string; // e.g., 'eq', 'ne', 'gt', 'lt', 'in', etc.
8
8
  values: (string | number)[];
package/src/ISetting.ts CHANGED
@@ -61,10 +61,13 @@ export interface ICalculation {
61
61
  days: string;
62
62
  }
63
63
 
64
+
64
65
  export interface ILeanTotalsGroup extends ILeanSetting {
65
66
  name: string;
66
67
  identifier: string;
67
68
  calculations?: ICalculation[];
69
+ dailyLimit?: number;
70
+ buffer?: number;
68
71
  }
69
72
 
70
73
  export interface ILeanKeyValue extends ILeanSetting {