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 +26 -0
- package/dist/product.d.ts +3 -0
- package/dist/store.d.ts +0 -1
- package/package.json +1 -1
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
package/dist/store.d.ts
CHANGED