sinfactura-types 1.8.3 → 1.8.5

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/print.d.ts CHANGED
@@ -23,5 +23,31 @@ declare global {
23
23
  detail?: string;
24
24
  errorCode?: string;
25
25
  }
26
+ /**
27
+ * `GET /print?mode=agent-status` response payload (api#612).
28
+ *
29
+ * Agent-LEVEL connectivity — "is a Cloud Print agent reachable for this store
30
+ * right now" — as distinct from the job-level `PrintJobTransition` timeline
31
+ * above ("was this specific job printed"). Derived read-only from the
32
+ * heartbeat fields the WSS `heartbeat` action already writes onto the store's
33
+ * SOCKET connection row; there is no stored `PrintAgentStatus` entity.
34
+ */
35
+ interface PrintAgentStatus {
36
+ /**
37
+ * Derived, never stored: a printer connection exists for the store and its
38
+ * heartbeat is not stale. Independent of the SOCKET row's own 3h reaper
39
+ * TTL, which governs row cleanup rather than agent responsiveness.
40
+ */
41
+ online: boolean;
42
+ /**
43
+ * Freshest connection's `lastHeartbeatAt`, ms epoch. Absent when a printer
44
+ * is connected but has never reported (pre-heartbeat agent builds).
45
+ */
46
+ lastSeen?: number;
47
+ /** Absent unless the agent reported it on its last heartbeat. */
48
+ agentVersion?: string;
49
+ /** Jobs waiting in the agent's local queue, as of the last heartbeat. */
50
+ queueDepth?: number;
51
+ }
26
52
  }
27
53
  export {};
package/dist/product.d.ts CHANGED
@@ -14,6 +14,9 @@ declare global {
14
14
  base64?: string;
15
15
  primary?: boolean;
16
16
  }[];
17
+ removePictures?: {
18
+ url: string;
19
+ }[];
17
20
  stock: number;
18
21
  minStock?: number;
19
22
  limit?: number;
package/dist/store.d.ts CHANGED
@@ -144,7 +144,6 @@ declare global {
144
144
  ecommerce?: Ecommerce;
145
145
  photoURL: string;
146
146
  photoData?: string;
147
- newPhotoURL?: string;
148
147
  removePhotoURL?: string;
149
148
  mercadopagoUserId?: string;
150
149
  mercadolibreUserId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.8.3",
3
+ "version": "1.8.5",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",