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.
- package/dist/notification.d.ts +6 -1
- package/dist/notification.js +8 -0
- package/dist/product.d.ts +1 -0
- package/package.json +1 -1
package/dist/notification.d.ts
CHANGED
|
@@ -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;
|
package/dist/notification.js
CHANGED
|
@@ -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