sinfactura-types 1.6.14 → 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.
@@ -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;
@@ -1 +1,18 @@
1
- export {};
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/stock.d.ts CHANGED
@@ -8,7 +8,7 @@ declare global {
8
8
  }
9
9
  interface StockIncome extends StockBase {
10
10
  quantity: number;
11
- supplierId?: number;
11
+ supplierId?: string;
12
12
  supplierName?: string;
13
13
  }
14
14
  interface StockSale extends StockBase {
package/dist/store.d.ts CHANGED
@@ -273,5 +273,10 @@ declare global {
273
273
  id: number;
274
274
  name: string;
275
275
  }
276
+ type StoreWarningCode = "CUIT_SHARED";
277
+ interface StoreWarning {
278
+ code: StoreWarningCode;
279
+ stores: string[];
280
+ }
276
281
  }
277
282
  export {};
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.6.14",
3
+ "version": "1.6.16",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",