@printers/printers-linux-arm64-gnu 1.0.0 → 1.2.0
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/index.d.ts +7 -16
- package/index.js +3 -6
- package/package.json +1 -1
- package/printers.linux-arm64-gnu.node +0 -0
package/index.d.ts
CHANGED
|
@@ -19,6 +19,9 @@ export declare class Printer {
|
|
|
19
19
|
/** Clean up old completed/failed jobs */
|
|
20
20
|
export declare function cleanupOldJobs(maxAgeSeconds: number): number
|
|
21
21
|
|
|
22
|
+
/** Clean up old jobs for a specific printer */
|
|
23
|
+
export declare function cleanupOldJobsForPrinter(printerName: string, maxAgeSeconds: number): number
|
|
24
|
+
|
|
22
25
|
/** Find a printer by name */
|
|
23
26
|
export declare function findPrinterByName(name: string): Printer | null
|
|
24
27
|
|
|
@@ -37,11 +40,14 @@ export declare function getAllPrinterNames(): Array<string>
|
|
|
37
40
|
/** Get all available printers */
|
|
38
41
|
export declare function getAllPrinters(): Array<PrinterInfo>
|
|
39
42
|
|
|
43
|
+
/** Get a specific job for a printer */
|
|
44
|
+
export declare function getJobForPrinter(printerName: string, jobId: number): PrinterJob | null
|
|
45
|
+
|
|
40
46
|
/** Get job history (completed or cancelled jobs) */
|
|
41
47
|
export declare function getJobHistory(): Array<PrinterJob>
|
|
42
48
|
|
|
43
49
|
/** Get job history for a specific printer */
|
|
44
|
-
export declare function getJobHistoryForPrinter(printerName: string): Array<PrinterJob>
|
|
50
|
+
export declare function getJobHistoryForPrinter(printerName: string, limit?: number | undefined | null): Array<PrinterJob>
|
|
45
51
|
|
|
46
52
|
/** Get the status of a print job (legacy format for backward compatibility) */
|
|
47
53
|
export declare function getJobStatus(jobId: number): JobStatus | null
|
|
@@ -72,24 +78,9 @@ export interface JobStatus {
|
|
|
72
78
|
/** Print raw bytes using printer name (async) */
|
|
73
79
|
export declare function printBytes(printerName: string, data: Buffer, jobProperties?: Record<string, string> | undefined | null, waitForCompletion?: boolean | undefined | null): Promise<unknown>
|
|
74
80
|
|
|
75
|
-
/** Clean up old jobs for a specific printer (for printer object methods) */
|
|
76
|
-
export declare function printerCleanupOldJobs(printerName: string, maxAgeSeconds: number): number
|
|
77
|
-
|
|
78
81
|
/** Check if a printer exists by name */
|
|
79
82
|
export declare function printerExists(name: string): boolean
|
|
80
83
|
|
|
81
|
-
/** Get active jobs for a specific printer (for printer object methods) */
|
|
82
|
-
export declare function printerGetActiveJobs(printerName: string): Array<PrinterJob>
|
|
83
|
-
|
|
84
|
-
/** Get all jobs for a specific printer (for printer object methods) */
|
|
85
|
-
export declare function printerGetAllJobs(printerName: string): Array<PrinterJob>
|
|
86
|
-
|
|
87
|
-
/** Get a specific job for a printer (for printer object methods) */
|
|
88
|
-
export declare function printerGetJob(printerName: string, jobId: number): PrinterJob | null
|
|
89
|
-
|
|
90
|
-
/** Get job history for a specific printer (for printer object methods) */
|
|
91
|
-
export declare function printerGetJobHistory(printerName: string, limit?: number | undefined | null): Array<PrinterJob>
|
|
92
|
-
|
|
93
84
|
/** Printer information */
|
|
94
85
|
export interface PrinterInfo {
|
|
95
86
|
name: string
|
package/index.js
CHANGED
|
@@ -21,15 +21,17 @@ try {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const { Printer, cleanupOldJobs, findPrinterByName, getActiveJobs, getActiveJobsForPrinter, getAllJobsForPrinter, getAllPrinterNames, getAllPrinters, getJobHistory, getJobHistoryForPrinter, getJobStatus, getPrinterJob, getPrinterStateSnapshot, isStateMonitoringActive, printBytes,
|
|
24
|
+
const { Printer, cleanupOldJobs, cleanupOldJobsForPrinter, findPrinterByName, getActiveJobs, getActiveJobsForPrinter, getAllJobsForPrinter, getAllPrinterNames, getAllPrinters, getJobForPrinter, getJobHistory, getJobHistoryForPrinter, getJobStatus, getPrinterJob, getPrinterStateSnapshot, isStateMonitoringActive, printBytes, printerExists, PrintErrorCode, printFile, setStateMonitoringInterval, shutdown, startStateMonitoring, stopStateMonitoring } = nativeBinding
|
|
25
25
|
export { Printer }
|
|
26
26
|
export { cleanupOldJobs }
|
|
27
|
+
export { cleanupOldJobsForPrinter }
|
|
27
28
|
export { findPrinterByName }
|
|
28
29
|
export { getActiveJobs }
|
|
29
30
|
export { getActiveJobsForPrinter }
|
|
30
31
|
export { getAllJobsForPrinter }
|
|
31
32
|
export { getAllPrinterNames }
|
|
32
33
|
export { getAllPrinters }
|
|
34
|
+
export { getJobForPrinter }
|
|
33
35
|
export { getJobHistory }
|
|
34
36
|
export { getJobHistoryForPrinter }
|
|
35
37
|
export { getJobStatus }
|
|
@@ -37,12 +39,7 @@ export { getPrinterJob }
|
|
|
37
39
|
export { getPrinterStateSnapshot }
|
|
38
40
|
export { isStateMonitoringActive }
|
|
39
41
|
export { printBytes }
|
|
40
|
-
export { printerCleanupOldJobs }
|
|
41
42
|
export { printerExists }
|
|
42
|
-
export { printerGetActiveJobs }
|
|
43
|
-
export { printerGetAllJobs }
|
|
44
|
-
export { printerGetJob }
|
|
45
|
-
export { printerGetJobHistory }
|
|
46
43
|
export { PrintErrorCode }
|
|
47
44
|
export { printFile }
|
|
48
45
|
export { setStateMonitoringInterval }
|
package/package.json
CHANGED
|
Binary file
|