sinfactura-types 1.6.15 → 1.6.16
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 +9 -8
- package/dist/notification.js +18 -1
- package/dist/user.d.ts +2 -8
- package/package.json +1 -1
package/dist/notification.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
export declare enum NotificationTypeEnum {
|
|
2
|
+
ORDER = "ORDER",
|
|
3
|
+
MERCADOPAGO = "MERCADOPAGO",
|
|
4
|
+
STRIPE = "STRIPE",
|
|
5
|
+
DOLAROFICIAL = "DOLAROFICIAL",
|
|
6
|
+
DOLARINFORMAL = "DOLARINFORMAL",
|
|
7
|
+
DOLARBNA = "DOLARBNA",
|
|
8
|
+
ERROR = "ERROR"
|
|
9
|
+
}
|
|
1
10
|
declare global {
|
|
2
|
-
enum NotificationTypeEnum {
|
|
3
|
-
ORDER = "ORDER",
|
|
4
|
-
MERCADOPAGO = "MERCADOPAGO",
|
|
5
|
-
DOLAROFICIAL = "DOLAROFICIAL",
|
|
6
|
-
DOLARINFORMAL = "DOLARINFORMAL",
|
|
7
|
-
DOLARBNA = "DOLARBNA",
|
|
8
|
-
ERROR = "ERROR"
|
|
9
|
-
}
|
|
10
11
|
interface NotificationInterface {
|
|
11
12
|
storeId: string;
|
|
12
13
|
notificationId: string;
|
package/dist/notification.js
CHANGED
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
// Canonical notification taxonomy (#78). These are the exact attribute
|
|
2
|
+
// names the BE filter-reads on User rows (`notifications.<KEY> = true`
|
|
3
|
+
// DynamoDB FilterExpressions — new-order fanout, MP hook/poller/recover,
|
|
4
|
+
// Stripe hook, propagate-fx). Exported as a real enum so `api`
|
|
5
|
+
// (stacks/helpers/notificationType.ts) and `app`
|
|
6
|
+
// (src/domain/notificationType.ts) can drop their hand-mirrored copies
|
|
7
|
+
// in follow-ups. DOLARBNA / ERROR have no read path today — enum members
|
|
8
|
+
// only.
|
|
9
|
+
export var NotificationTypeEnum;
|
|
10
|
+
(function (NotificationTypeEnum) {
|
|
11
|
+
NotificationTypeEnum["ORDER"] = "ORDER";
|
|
12
|
+
NotificationTypeEnum["MERCADOPAGO"] = "MERCADOPAGO";
|
|
13
|
+
NotificationTypeEnum["STRIPE"] = "STRIPE";
|
|
14
|
+
NotificationTypeEnum["DOLAROFICIAL"] = "DOLAROFICIAL";
|
|
15
|
+
NotificationTypeEnum["DOLARINFORMAL"] = "DOLARINFORMAL";
|
|
16
|
+
NotificationTypeEnum["DOLARBNA"] = "DOLARBNA";
|
|
17
|
+
NotificationTypeEnum["ERROR"] = "ERROR";
|
|
18
|
+
})(NotificationTypeEnum || (NotificationTypeEnum = {}));
|
package/dist/user.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NotificationTypeEnum } from "./notification";
|
|
1
2
|
declare global {
|
|
2
3
|
interface User {
|
|
3
4
|
storeId: string;
|
|
@@ -21,14 +22,7 @@ declare global {
|
|
|
21
22
|
emailVerified?: boolean;
|
|
22
23
|
emailVerifiedAt?: number;
|
|
23
24
|
}
|
|
24
|
-
type UserNotifications =
|
|
25
|
-
orders?: boolean;
|
|
26
|
-
mercadopago?: boolean;
|
|
27
|
-
dollarOficial?: boolean;
|
|
28
|
-
dollarInformal?: boolean;
|
|
29
|
-
dollarBna?: boolean;
|
|
30
|
-
printer?: boolean;
|
|
31
|
-
};
|
|
25
|
+
type UserNotifications = Partial<Record<NotificationTypeEnum, boolean>>;
|
|
32
26
|
type UserPermissions = {
|
|
33
27
|
currency?: boolean;
|
|
34
28
|
customers?: boolean;
|