sinfactura-types 1.5.1 → 1.5.3

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/payment.d.ts CHANGED
@@ -20,3 +20,30 @@ export interface PaymentReceivedWsPayload {
20
20
  orderId?: string;
21
21
  invoiceId?: string;
22
22
  }
23
+ /**
24
+ * REST shape of a payment row returned by `GET /payments/received` (api#902).
25
+ *
26
+ * Distinct from `PaymentReceivedWsPayload` (api#880, the WS broadcast):
27
+ * - This carries denormalized labels (customerName, orderCode, invoiceCode)
28
+ * attached server-side at response time so the FE doesn't N+1 fetch.
29
+ * - The WS broadcast is the lean live-tail event; this is the canonical row.
30
+ */
31
+ export interface PaymentReceived {
32
+ paymentId: string;
33
+ source: PaymentReceivedSource;
34
+ total: number;
35
+ currency: string;
36
+ payerName?: string;
37
+ payerEmail?: string;
38
+ payerCuit?: string;
39
+ paidAt: number;
40
+ customerId?: string;
41
+ customerName?: string;
42
+ orderId?: string;
43
+ orderCode?: string;
44
+ invoiceId?: string;
45
+ invoiceCode?: string;
46
+ accountId?: string;
47
+ linkedAt?: number;
48
+ linkSource?: "auto" | "manual";
49
+ }
package/dist/store.d.ts CHANGED
@@ -177,6 +177,11 @@ declare global {
177
177
  defaultDeviceId?: string;
178
178
  defaultStoreMpId?: string;
179
179
  };
180
+ staticQr?: {
181
+ posId: string;
182
+ externalPosId: string;
183
+ createdAt: number;
184
+ };
180
185
  features?: {
181
186
  checkoutPro?: boolean;
182
187
  pointOfSale?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",