sinfactura-types 1.6.70 → 1.6.71

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.
@@ -7,7 +7,10 @@ export declare enum NotificationTypeEnum {
7
7
  DOLARBNA = "DOLARBNA",
8
8
  ERROR = "ERROR",
9
9
  AFIP_CERT_EXPIRY = "AFIP_CERT_EXPIRY",
10
- MERCADOLIBRE = "MERCADOLIBRE"
10
+ MERCADOLIBRE = "MERCADOLIBRE",
11
+ LOW_STOCK = "LOW_STOCK",
12
+ OUT_OF_STOCK = "OUT_OF_STOCK",
13
+ SUPPORT = "SUPPORT"
11
14
  }
12
15
  declare global {
13
16
  interface NotificationInterface {
@@ -17,6 +20,8 @@ declare global {
17
20
  type: NotificationTypeEnum;
18
21
  title: string;
19
22
  orderId?: string;
23
+ productId?: string;
24
+ supportId?: string;
20
25
  userId?: string;
21
26
  customerId?: string;
22
27
  read?: boolean;
@@ -20,4 +20,12 @@ export var NotificationTypeEnum;
20
20
  // ML order-ingestion fanout (app#797 / api#1574) — User-row read path
21
21
  // added by the orders_v2 worker.
22
22
  NotificationTypeEnum["MERCADOLIBRE"] = "MERCADOLIBRE";
23
+ // Stock alerts (api#1806) — fired when a sale crosses a product's stock
24
+ // threshold. LOW_STOCK at stock <= `Product.minStock`; OUT_OF_STOCK at
25
+ // stock <= 0. Both have User-row opt-in read paths.
26
+ NotificationTypeEnum["LOW_STOCK"] = "LOW_STOCK";
27
+ NotificationTypeEnum["OUT_OF_STOCK"] = "OUT_OF_STOCK";
28
+ // Support ticket bell (api#1806) — fired on ticket create / status change.
29
+ // User-row opt-in read path.
30
+ NotificationTypeEnum["SUPPORT"] = "SUPPORT";
23
31
  })(NotificationTypeEnum || (NotificationTypeEnum = {}));
package/dist/product.d.ts CHANGED
@@ -15,6 +15,7 @@ declare global {
15
15
  primary?: boolean;
16
16
  }[];
17
17
  stock: number;
18
+ minStock?: number;
18
19
  limit?: number;
19
20
  incomes?: {
20
21
  stockId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.6.70",
3
+ "version": "1.6.71",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",