@captureid/capacitor-cidprint 0.2.65 → 5.0.2

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.
Files changed (70) hide show
  1. package/CaptureidCapacitor3Cidprint.podspec +21 -0
  2. package/README.md +809 -20
  3. package/android/.project +2 -2
  4. package/android/.settings/org.eclipse.buildship.core.prefs +1 -1
  5. package/android/app/captureid/cidprinterlibrary/1.0.5/cidprinterlibrary-1.0.5.aar +0 -0
  6. package/android/app/captureid/cidprinterlibrary/1.0.5/cidprinterlibrary-1.0.5.pom +20 -0
  7. package/android/app/captureid/cidprinterlibrary/1.0.5/cidprinterlibrary-1.0.5.pom.md5 +1 -0
  8. package/android/app/captureid/cidprinterlibrary/1.0.5/cidprinterlibrary-1.0.5.pom.sha1 +1 -0
  9. package/android/app/captureid/cidprinterlibrary/maven-metadata.xml +15 -0
  10. package/android/app/captureid/cidprinterlibrary/maven-metadata.xml.md5 +1 -0
  11. package/android/app/captureid/cidprinterlibrary/maven-metadata.xml.sha1 +1 -0
  12. package/android/app/captureid/cidprinterlibrary/maven-metadata.xml.sha256 +1 -0
  13. package/android/app/captureid/cidprinterlibrary/maven-metadata.xml.sha512 +1 -0
  14. package/android/app/captureid/supportv1/1.0.1/supportv1-1.0.1.aar +0 -0
  15. package/android/app/captureid/supportv1/1.0.1/supportv1-1.0.1.pom +9 -0
  16. package/android/app/captureid/supportv1/1.0.1/supportv1-1.0.1.pom.md5 +1 -0
  17. package/android/app/captureid/supportv1/1.0.1/supportv1-1.0.1.pom.sha1 +1 -0
  18. package/android/app/captureid/supportv1/1.0.1/supportv1-1.0.1.pom.sha256 +1 -0
  19. package/android/app/captureid/supportv1/1.0.1/supportv1-1.0.1.pom.sha512 +1 -0
  20. package/android/app/captureid/supportv1/maven-metadata-local.xml +12 -0
  21. package/android/app/captureid/supportv1/maven-metadata.xml +13 -0
  22. package/android/app/captureid/supportv1/maven-metadata.xml.md5 +1 -0
  23. package/android/app/captureid/supportv1/maven-metadata.xml.sha1 +1 -0
  24. package/android/app/captureid/supportv1/maven-metadata.xml.sha256 +1 -0
  25. package/android/app/captureid/supportv1/maven-metadata.xml.sha512 +1 -0
  26. package/android/build.gradle +33 -11
  27. package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  28. package/android/gradle.properties +1 -1
  29. package/android/src/main/AndroidManifest.xml +1 -3
  30. package/android/src/main/java/app/captureid/plugins/cidprint/CIDPrint.java +686 -175
  31. package/dist/docs.json +1292 -0
  32. package/dist/esm/configuration.d.ts +26 -0
  33. package/dist/esm/configuration.js +20 -0
  34. package/dist/esm/configuration.js.map +1 -0
  35. package/dist/esm/definitions.d.ts +92 -21
  36. package/dist/esm/definitions.js +2 -0
  37. package/dist/esm/definitions.js.map +1 -1
  38. package/dist/esm/enums.d.ts +58 -3
  39. package/dist/esm/enums.js +88 -0
  40. package/dist/esm/enums.js.map +1 -1
  41. package/dist/esm/index.d.ts +5 -0
  42. package/dist/esm/index.js +8 -0
  43. package/dist/esm/index.js.map +1 -1
  44. package/dist/esm/printer.d.ts +45 -0
  45. package/dist/esm/printer.js +1 -0
  46. package/dist/esm/printer.js.map +1 -0
  47. package/dist/esm/web.d.ts +77 -5
  48. package/dist/esm/web.js +102 -49
  49. package/dist/esm/web.js.map +1 -1
  50. package/dist/plugin.js +234 -48
  51. package/dist/plugin.js.map +1 -1
  52. package/ios/Plugin/BluetoothManager.h +46 -0
  53. package/ios/Plugin/CIDPrint.h +13 -0
  54. package/ios/Plugin/CIDPrint.m +518 -0
  55. package/ios/Plugin/{Plugin.h → CIDPrintPlugin.h} +11 -2
  56. package/ios/Plugin/CIDPrintPlugin.m +31 -0
  57. package/ios/Plugin/CIDPrinter.h +43 -0
  58. package/ios/Plugin/Device.h +57 -0
  59. package/ios/Plugin/Info.plist +8 -0
  60. package/ios/Plugin/InitResult.h +20 -0
  61. package/ios/Plugin/PrinterLibraryEvent.h +59 -0
  62. package/ios/Plugin/ResultClass.h +18 -0
  63. package/ios/Plugin/libCIDPrinterLibrary.a +0 -0
  64. package/package.json +19 -16
  65. package/android/.DS_Store +0 -0
  66. package/android/.npmignore +0 -1
  67. package/android/libs/.DS_Store +0 -0
  68. package/android/libs/cidprinterlibrary.aar +0 -0
  69. package/ios/Plugin/Plugin.m +0 -8
  70. package/ios/Plugin/Plugin.swift +0 -17
package/dist/docs.json ADDED
@@ -0,0 +1,1292 @@
1
+ {
2
+ "api": {
3
+ "name": "CIDPrintPlugin",
4
+ "slug": "cidprintplugin",
5
+ "docs": "",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "activateLicense",
10
+ "signature": "(options: { licenseKey: string; customerID: string; }) => Promise<PrinterLibraryEvent>",
11
+ "parameters": [
12
+ {
13
+ "name": "options",
14
+ "docs": "",
15
+ "type": "{ licenseKey: string; customerID: string; }"
16
+ }
17
+ ],
18
+ "returns": "Promise<PrinterLibraryEvent>",
19
+ "tags": [],
20
+ "docs": "",
21
+ "complexTypes": [
22
+ "PrinterLibraryEvent"
23
+ ],
24
+ "slug": "activatelicense"
25
+ },
26
+ {
27
+ "name": "closeCIDPrinterLib",
28
+ "signature": "() => void",
29
+ "parameters": [],
30
+ "returns": "void",
31
+ "tags": [],
32
+ "docs": "",
33
+ "complexTypes": [],
34
+ "slug": "closecidprinterlib"
35
+ },
36
+ {
37
+ "name": "connectToPreferredPrinter",
38
+ "signature": "(options: { mac: string; }) => void",
39
+ "parameters": [
40
+ {
41
+ "name": "options",
42
+ "docs": "",
43
+ "type": "{ mac: string; }"
44
+ }
45
+ ],
46
+ "returns": "void",
47
+ "tags": [],
48
+ "docs": "",
49
+ "complexTypes": [],
50
+ "slug": "connecttopreferredprinter"
51
+ },
52
+ {
53
+ "name": "connectToPreferredPrinter",
54
+ "signature": "(options: { mac: string; autoreconnect: boolean; }) => void",
55
+ "parameters": [
56
+ {
57
+ "name": "options",
58
+ "docs": "",
59
+ "type": "{ mac: string; autoreconnect: boolean; }"
60
+ }
61
+ ],
62
+ "returns": "void",
63
+ "tags": [],
64
+ "docs": "",
65
+ "complexTypes": [],
66
+ "slug": "connecttopreferredprinter"
67
+ },
68
+ {
69
+ "name": "connectToPrinter",
70
+ "signature": "(options: { address: string; }) => void",
71
+ "parameters": [
72
+ {
73
+ "name": "options",
74
+ "docs": "",
75
+ "type": "{ address: string; }"
76
+ }
77
+ ],
78
+ "returns": "void",
79
+ "tags": [],
80
+ "docs": "",
81
+ "complexTypes": [],
82
+ "slug": "connecttoprinter"
83
+ },
84
+ {
85
+ "name": "connectToPrinter",
86
+ "signature": "(options: { address: string; autoreconnect: boolean; }) => void",
87
+ "parameters": [
88
+ {
89
+ "name": "options",
90
+ "docs": "",
91
+ "type": "{ address: string; autoreconnect: boolean; }"
92
+ }
93
+ ],
94
+ "returns": "void",
95
+ "tags": [],
96
+ "docs": "",
97
+ "complexTypes": [],
98
+ "slug": "connecttoprinter"
99
+ },
100
+ {
101
+ "name": "connectToPrinter",
102
+ "signature": "(options: { address: string; port: number; }) => void",
103
+ "parameters": [
104
+ {
105
+ "name": "options",
106
+ "docs": "",
107
+ "type": "{ address: string; port: number; }"
108
+ }
109
+ ],
110
+ "returns": "void",
111
+ "tags": [],
112
+ "docs": "",
113
+ "complexTypes": [],
114
+ "slug": "connecttoprinter"
115
+ },
116
+ {
117
+ "name": "convert",
118
+ "signature": "(options: { label: string; }) => void",
119
+ "parameters": [
120
+ {
121
+ "name": "options",
122
+ "docs": "",
123
+ "type": "{ label: string; }"
124
+ }
125
+ ],
126
+ "returns": "void",
127
+ "tags": [],
128
+ "docs": "",
129
+ "complexTypes": [],
130
+ "slug": "convert"
131
+ },
132
+ {
133
+ "name": "disconnectFromPrinter",
134
+ "signature": "(options: { mac: string; }) => void",
135
+ "parameters": [
136
+ {
137
+ "name": "options",
138
+ "docs": "",
139
+ "type": "{ mac: string; }"
140
+ }
141
+ ],
142
+ "returns": "void",
143
+ "tags": [],
144
+ "docs": "",
145
+ "complexTypes": [],
146
+ "slug": "disconnectfromprinter"
147
+ },
148
+ {
149
+ "name": "discoverDevices",
150
+ "signature": "(options: { timeout: number; }) => void",
151
+ "parameters": [
152
+ {
153
+ "name": "options",
154
+ "docs": "",
155
+ "type": "{ timeout: number; }"
156
+ }
157
+ ],
158
+ "returns": "void",
159
+ "tags": [],
160
+ "docs": "",
161
+ "complexTypes": [],
162
+ "slug": "discoverdevices"
163
+ },
164
+ {
165
+ "name": "enableBluetoothAdapter",
166
+ "signature": "(options: { enable: boolean; }) => Promise<PrinterLibraryEvent>",
167
+ "parameters": [
168
+ {
169
+ "name": "options",
170
+ "docs": "",
171
+ "type": "{ enable: boolean; }"
172
+ }
173
+ ],
174
+ "returns": "Promise<PrinterLibraryEvent>",
175
+ "tags": [],
176
+ "docs": "",
177
+ "complexTypes": [
178
+ "PrinterLibraryEvent"
179
+ ],
180
+ "slug": "enablebluetoothadapter"
181
+ },
182
+ {
183
+ "name": "enableBluetoothPrinting",
184
+ "signature": "(options: { enable: boolean; }) => void",
185
+ "parameters": [
186
+ {
187
+ "name": "options",
188
+ "docs": "",
189
+ "type": "{ enable: boolean; }"
190
+ }
191
+ ],
192
+ "returns": "void",
193
+ "tags": [],
194
+ "docs": "",
195
+ "complexTypes": [],
196
+ "slug": "enablebluetoothprinting"
197
+ },
198
+ {
199
+ "name": "enableCalibration",
200
+ "signature": "(options: { enable: boolean; }) => void",
201
+ "parameters": [
202
+ {
203
+ "name": "options",
204
+ "docs": "",
205
+ "type": "{ enable: boolean; }"
206
+ }
207
+ ],
208
+ "returns": "void",
209
+ "tags": [],
210
+ "docs": "",
211
+ "complexTypes": [],
212
+ "slug": "enablecalibration"
213
+ },
214
+ {
215
+ "name": "enableClipping",
216
+ "signature": "(options: { enable: boolean; }) => void",
217
+ "parameters": [
218
+ {
219
+ "name": "options",
220
+ "docs": "",
221
+ "type": "{ enable: boolean; }"
222
+ }
223
+ ],
224
+ "returns": "void",
225
+ "tags": [],
226
+ "docs": "",
227
+ "complexTypes": [],
228
+ "slug": "enableclipping"
229
+ },
230
+ {
231
+ "name": "enableDebugToFile",
232
+ "signature": "(options: { enable: boolean; }) => void",
233
+ "parameters": [
234
+ {
235
+ "name": "options",
236
+ "docs": "",
237
+ "type": "{ enable: boolean; }"
238
+ }
239
+ ],
240
+ "returns": "void",
241
+ "tags": [],
242
+ "docs": "",
243
+ "complexTypes": [],
244
+ "slug": "enabledebugtofile"
245
+ },
246
+ {
247
+ "name": "enableDispendingMode",
248
+ "signature": "(options: { enable: boolean; }) => void",
249
+ "parameters": [
250
+ {
251
+ "name": "options",
252
+ "docs": "",
253
+ "type": "{ enable: boolean; }"
254
+ }
255
+ ],
256
+ "returns": "void",
257
+ "tags": [],
258
+ "docs": "",
259
+ "complexTypes": [],
260
+ "slug": "enabledispendingmode"
261
+ },
262
+ {
263
+ "name": "enableNetworkPrinting",
264
+ "signature": "(options: { enable: boolean; }) => void",
265
+ "parameters": [
266
+ {
267
+ "name": "options",
268
+ "docs": "",
269
+ "type": "{ enable: boolean; }"
270
+ }
271
+ ],
272
+ "returns": "void",
273
+ "tags": [],
274
+ "docs": "",
275
+ "complexTypes": [],
276
+ "slug": "enablenetworkprinting"
277
+ },
278
+ {
279
+ "name": "getLatestConnectState",
280
+ "signature": "() => Promise<PrinterLibraryEvent>",
281
+ "parameters": [],
282
+ "returns": "Promise<PrinterLibraryEvent>",
283
+ "tags": [],
284
+ "docs": "",
285
+ "complexTypes": [
286
+ "PrinterLibraryEvent"
287
+ ],
288
+ "slug": "getlatestconnectstate"
289
+ },
290
+ {
291
+ "name": "getMediaSize",
292
+ "signature": "() => Promise<MediaSize>",
293
+ "parameters": [],
294
+ "returns": "Promise<MediaSize>",
295
+ "tags": [],
296
+ "docs": "",
297
+ "complexTypes": [
298
+ "MediaSize"
299
+ ],
300
+ "slug": "getmediasize"
301
+ },
302
+ {
303
+ "name": "getPairedDevices",
304
+ "signature": "() => void",
305
+ "parameters": [],
306
+ "returns": "void",
307
+ "tags": [],
308
+ "docs": "",
309
+ "complexTypes": [],
310
+ "slug": "getpaireddevices"
311
+ },
312
+ {
313
+ "name": "getPrinterInformation",
314
+ "signature": "() => Promise<CIDPrinterInformation>",
315
+ "parameters": [],
316
+ "returns": "Promise<CIDPrinterInformation>",
317
+ "tags": [],
318
+ "docs": "",
319
+ "complexTypes": [
320
+ "CIDPrinterInformation"
321
+ ],
322
+ "slug": "getprinterinformation"
323
+ },
324
+ {
325
+ "name": "getPrinterLibraryVersion",
326
+ "signature": "() => Promise<string>",
327
+ "parameters": [],
328
+ "returns": "Promise<string>",
329
+ "tags": [],
330
+ "docs": "",
331
+ "complexTypes": [],
332
+ "slug": "getprinterlibraryversion"
333
+ },
334
+ {
335
+ "name": "getPrinterStatus",
336
+ "signature": "() => void",
337
+ "parameters": [],
338
+ "returns": "void",
339
+ "tags": [],
340
+ "docs": "",
341
+ "complexTypes": [],
342
+ "slug": "getprinterstatus"
343
+ },
344
+ {
345
+ "name": "initCIDPrinterLib",
346
+ "signature": "() => Promise<PrinterLibraryEvent>",
347
+ "parameters": [],
348
+ "returns": "Promise<PrinterLibraryEvent>",
349
+ "tags": [],
350
+ "docs": "",
351
+ "complexTypes": [
352
+ "PrinterLibraryEvent"
353
+ ],
354
+ "slug": "initcidprinterlib"
355
+ },
356
+ {
357
+ "name": "isBluetoothAdapterEnabled",
358
+ "signature": "() => Promise<{ result: boolean; }>",
359
+ "parameters": [],
360
+ "returns": "Promise<{ result: boolean; }>",
361
+ "tags": [],
362
+ "docs": "",
363
+ "complexTypes": [],
364
+ "slug": "isbluetoothadapterenabled"
365
+ },
366
+ {
367
+ "name": "isLibraryInitialized",
368
+ "signature": "() => Promise<{ result: boolean; }>",
369
+ "parameters": [],
370
+ "returns": "Promise<{ result: boolean; }>",
371
+ "tags": [],
372
+ "docs": "",
373
+ "complexTypes": [],
374
+ "slug": "islibraryinitialized"
375
+ },
376
+ {
377
+ "name": "printData",
378
+ "signature": "(options: { data: string; }) => void",
379
+ "parameters": [
380
+ {
381
+ "name": "options",
382
+ "docs": "",
383
+ "type": "{ data: string; }"
384
+ }
385
+ ],
386
+ "returns": "void",
387
+ "tags": [],
388
+ "docs": "",
389
+ "complexTypes": [],
390
+ "slug": "printdata"
391
+ },
392
+ {
393
+ "name": "printLabel",
394
+ "signature": "(options: { label: string; }) => void",
395
+ "parameters": [
396
+ {
397
+ "name": "options",
398
+ "docs": "",
399
+ "type": "{ label: string; }"
400
+ }
401
+ ],
402
+ "returns": "void",
403
+ "tags": [],
404
+ "docs": "",
405
+ "complexTypes": [],
406
+ "slug": "printlabel"
407
+ },
408
+ {
409
+ "name": "printLabelWithData",
410
+ "signature": "(options: { label: string; data: string[]; }) => void",
411
+ "parameters": [
412
+ {
413
+ "name": "options",
414
+ "docs": "",
415
+ "type": "{ label: string; data: string[]; }"
416
+ }
417
+ ],
418
+ "returns": "void",
419
+ "tags": [],
420
+ "docs": "",
421
+ "complexTypes": [],
422
+ "slug": "printlabelwithdata"
423
+ },
424
+ {
425
+ "name": "printLabelWithObject",
426
+ "signature": "(options: { label: string; data: TicketData; }) => void",
427
+ "parameters": [
428
+ {
429
+ "name": "options",
430
+ "docs": "",
431
+ "type": "{ label: string; data: TicketData; }"
432
+ }
433
+ ],
434
+ "returns": "void",
435
+ "tags": [],
436
+ "docs": "",
437
+ "complexTypes": [
438
+ "TicketData"
439
+ ],
440
+ "slug": "printlabelwithobject"
441
+ },
442
+ {
443
+ "name": "printNativeData",
444
+ "signature": "(options: { data: string; }) => void",
445
+ "parameters": [
446
+ {
447
+ "name": "options",
448
+ "docs": "",
449
+ "type": "{ data: string; }"
450
+ }
451
+ ],
452
+ "returns": "void",
453
+ "tags": [],
454
+ "docs": "",
455
+ "complexTypes": [],
456
+ "slug": "printnativedata"
457
+ },
458
+ {
459
+ "name": "printReferenceLabel",
460
+ "signature": "(options: { labeltype: ReferenceTicketType; }) => void",
461
+ "parameters": [
462
+ {
463
+ "name": "options",
464
+ "docs": "",
465
+ "type": "{ labeltype: ReferenceTicketType; }"
466
+ }
467
+ ],
468
+ "returns": "void",
469
+ "tags": [],
470
+ "docs": "",
471
+ "complexTypes": [
472
+ "ReferenceTicketType"
473
+ ],
474
+ "slug": "printreferencelabel"
475
+ },
476
+ {
477
+ "name": "requestPermission",
478
+ "signature": "(options: { permission: string; }) => Promise<{ result: boolean; }>",
479
+ "parameters": [
480
+ {
481
+ "name": "options",
482
+ "docs": "",
483
+ "type": "{ permission: string; }"
484
+ }
485
+ ],
486
+ "returns": "Promise<{ result: boolean; }>",
487
+ "tags": [],
488
+ "docs": "",
489
+ "complexTypes": [],
490
+ "slug": "requestpermission"
491
+ },
492
+ {
493
+ "name": "requestAllPermissions",
494
+ "signature": "(options: { permissions: string[]; }) => Promise<{ result: boolean; }>",
495
+ "parameters": [
496
+ {
497
+ "name": "options",
498
+ "docs": "",
499
+ "type": "{ permissions: string[]; }"
500
+ }
501
+ ],
502
+ "returns": "Promise<{ result: boolean; }>",
503
+ "tags": [],
504
+ "docs": "",
505
+ "complexTypes": [],
506
+ "slug": "requestallpermissions"
507
+ },
508
+ {
509
+ "name": "sendFormFeed",
510
+ "signature": "() => void",
511
+ "parameters": [],
512
+ "returns": "void",
513
+ "tags": [],
514
+ "docs": "",
515
+ "complexTypes": [],
516
+ "slug": "sendformfeed"
517
+ },
518
+ {
519
+ "name": "setAutoReconnect",
520
+ "signature": "(options: { autoreconnect: boolean; }) => void",
521
+ "parameters": [
522
+ {
523
+ "name": "options",
524
+ "docs": "",
525
+ "type": "{ autoreconnect: boolean; }"
526
+ }
527
+ ],
528
+ "returns": "void",
529
+ "tags": [],
530
+ "docs": "",
531
+ "complexTypes": [],
532
+ "slug": "setautoreconnect"
533
+ },
534
+ {
535
+ "name": "setConfiguration",
536
+ "signature": "(options: { config: PrinterConfiguration; }) => void",
537
+ "parameters": [
538
+ {
539
+ "name": "options",
540
+ "docs": "",
541
+ "type": "{ config: PrinterConfiguration; }"
542
+ }
543
+ ],
544
+ "returns": "void",
545
+ "tags": [],
546
+ "docs": "",
547
+ "complexTypes": [
548
+ "PrinterConfiguration"
549
+ ],
550
+ "slug": "setconfiguration"
551
+ },
552
+ {
553
+ "name": "setupMediaSize",
554
+ "signature": "(options: { width: number; height: number; }) => void",
555
+ "parameters": [
556
+ {
557
+ "name": "options",
558
+ "docs": "",
559
+ "type": "{ width: number; height: number; }"
560
+ }
561
+ ],
562
+ "returns": "void",
563
+ "tags": [],
564
+ "docs": "",
565
+ "complexTypes": [],
566
+ "slug": "setupmediasize"
567
+ },
568
+ {
569
+ "name": "showNavigationBar",
570
+ "signature": "(options: { show: boolean; }) => void",
571
+ "parameters": [
572
+ {
573
+ "name": "options",
574
+ "docs": "",
575
+ "type": "{ show: boolean; }"
576
+ }
577
+ ],
578
+ "returns": "void",
579
+ "tags": [],
580
+ "docs": "",
581
+ "complexTypes": [],
582
+ "slug": "shownavigationbar"
583
+ },
584
+ {
585
+ "name": "showSettings",
586
+ "signature": "(options: { show: boolean; }) => void",
587
+ "parameters": [
588
+ {
589
+ "name": "options",
590
+ "docs": "",
591
+ "type": "{ show: boolean; }"
592
+ }
593
+ ],
594
+ "returns": "void",
595
+ "tags": [],
596
+ "docs": "",
597
+ "complexTypes": [],
598
+ "slug": "showsettings"
599
+ },
600
+ {
601
+ "name": "showUI",
602
+ "signature": "(options: { show: boolean; }) => void",
603
+ "parameters": [
604
+ {
605
+ "name": "options",
606
+ "docs": "",
607
+ "type": "{ show: boolean; }"
608
+ }
609
+ ],
610
+ "returns": "void",
611
+ "tags": [],
612
+ "docs": "",
613
+ "complexTypes": [],
614
+ "slug": "showui"
615
+ },
616
+ {
617
+ "name": "uploadFile",
618
+ "signature": "(options: { file: string; filetype: number; }) => void",
619
+ "parameters": [
620
+ {
621
+ "name": "options",
622
+ "docs": "",
623
+ "type": "{ file: string; filetype: number; }"
624
+ }
625
+ ],
626
+ "returns": "void",
627
+ "tags": [],
628
+ "docs": "",
629
+ "complexTypes": [],
630
+ "slug": "uploadfile"
631
+ },
632
+ {
633
+ "name": "addListener",
634
+ "signature": "(eventName: string, listenerFunc: (data: PrinterLibraryEvent) => void) => PluginListenerHandle",
635
+ "parameters": [
636
+ {
637
+ "name": "eventName",
638
+ "docs": "",
639
+ "type": "string"
640
+ },
641
+ {
642
+ "name": "listenerFunc",
643
+ "docs": "",
644
+ "type": "(data: PrinterLibraryEvent) => void"
645
+ }
646
+ ],
647
+ "returns": "PluginListenerHandle",
648
+ "tags": [],
649
+ "docs": "",
650
+ "complexTypes": [
651
+ "PluginListenerHandle",
652
+ "PrinterLibraryEvent"
653
+ ],
654
+ "slug": "addlistenerstring"
655
+ },
656
+ {
657
+ "name": "removeAllListeners",
658
+ "signature": "() => void",
659
+ "parameters": [],
660
+ "returns": "void",
661
+ "tags": [],
662
+ "docs": "",
663
+ "complexTypes": [],
664
+ "slug": "removealllisteners"
665
+ }
666
+ ],
667
+ "properties": []
668
+ },
669
+ "interfaces": [
670
+ {
671
+ "name": "PrinterLibraryEvent",
672
+ "slug": "printerlibraryevent",
673
+ "docs": "",
674
+ "tags": [],
675
+ "methods": [],
676
+ "properties": [
677
+ {
678
+ "name": "sender",
679
+ "tags": [],
680
+ "docs": "",
681
+ "complexTypes": [],
682
+ "type": "string"
683
+ },
684
+ {
685
+ "name": "type",
686
+ "tags": [],
687
+ "docs": "",
688
+ "complexTypes": [
689
+ "EventType"
690
+ ],
691
+ "type": "EventType"
692
+ },
693
+ {
694
+ "name": "message",
695
+ "tags": [],
696
+ "docs": "",
697
+ "complexTypes": [],
698
+ "type": "string"
699
+ },
700
+ {
701
+ "name": "error",
702
+ "tags": [],
703
+ "docs": "",
704
+ "complexTypes": [],
705
+ "type": "number"
706
+ },
707
+ {
708
+ "name": "data",
709
+ "tags": [],
710
+ "docs": "",
711
+ "complexTypes": [
712
+ "ResultClass"
713
+ ],
714
+ "type": "ResultClass"
715
+ },
716
+ {
717
+ "name": "action",
718
+ "tags": [],
719
+ "docs": "",
720
+ "complexTypes": [
721
+ "PrinterLibraryActionType"
722
+ ],
723
+ "type": "PrinterLibraryActionType"
724
+ }
725
+ ]
726
+ },
727
+ {
728
+ "name": "ResultClass",
729
+ "slug": "resultclass",
730
+ "docs": "",
731
+ "tags": [],
732
+ "methods": [],
733
+ "properties": []
734
+ },
735
+ {
736
+ "name": "MediaSize",
737
+ "slug": "mediasize",
738
+ "docs": "",
739
+ "tags": [],
740
+ "methods": [],
741
+ "properties": [
742
+ {
743
+ "name": "width",
744
+ "tags": [],
745
+ "docs": "",
746
+ "complexTypes": [],
747
+ "type": "number"
748
+ },
749
+ {
750
+ "name": "height",
751
+ "tags": [],
752
+ "docs": "",
753
+ "complexTypes": [],
754
+ "type": "number"
755
+ }
756
+ ]
757
+ },
758
+ {
759
+ "name": "CIDPrinterInformation",
760
+ "slug": "cidprinterinformation",
761
+ "docs": "",
762
+ "tags": [],
763
+ "methods": [],
764
+ "properties": [
765
+ {
766
+ "name": "firmware",
767
+ "tags": [],
768
+ "docs": "",
769
+ "complexTypes": [
770
+ "Firmware"
771
+ ],
772
+ "type": "Firmware"
773
+ },
774
+ {
775
+ "name": "main_firmware",
776
+ "tags": [],
777
+ "docs": "",
778
+ "complexTypes": [
779
+ "Firmware"
780
+ ],
781
+ "type": "Firmware"
782
+ },
783
+ {
784
+ "name": "module_firmware",
785
+ "tags": [],
786
+ "docs": "",
787
+ "complexTypes": [
788
+ "Firmware"
789
+ ],
790
+ "type": "Firmware"
791
+ },
792
+ {
793
+ "name": "sensor_boot_firmware",
794
+ "tags": [],
795
+ "docs": "",
796
+ "complexTypes": [
797
+ "Firmware"
798
+ ],
799
+ "type": "Firmware"
800
+ },
801
+ {
802
+ "name": "sensor_firmware",
803
+ "tags": [],
804
+ "docs": "",
805
+ "complexTypes": [
806
+ "Firmware"
807
+ ],
808
+ "type": "Firmware"
809
+ },
810
+ {
811
+ "name": "media",
812
+ "tags": [],
813
+ "docs": "",
814
+ "complexTypes": [
815
+ "Media"
816
+ ],
817
+ "type": "Media"
818
+ },
819
+ {
820
+ "name": "battery",
821
+ "tags": [],
822
+ "docs": "",
823
+ "complexTypes": [
824
+ "Battery"
825
+ ],
826
+ "type": "Battery"
827
+ },
828
+ {
829
+ "name": "modeltype",
830
+ "tags": [],
831
+ "docs": "",
832
+ "complexTypes": [],
833
+ "type": "number"
834
+ },
835
+ {
836
+ "name": "modelname",
837
+ "tags": [],
838
+ "docs": "",
839
+ "complexTypes": [],
840
+ "type": "string"
841
+ },
842
+ {
843
+ "name": "dpi",
844
+ "tags": [],
845
+ "docs": "",
846
+ "complexTypes": [],
847
+ "type": "number"
848
+ },
849
+ {
850
+ "name": "dots_mm",
851
+ "tags": [],
852
+ "docs": "",
853
+ "complexTypes": [],
854
+ "type": "number"
855
+ },
856
+ {
857
+ "name": "dots",
858
+ "tags": [],
859
+ "docs": "",
860
+ "complexTypes": [],
861
+ "type": "number"
862
+ },
863
+ {
864
+ "name": "lanaddress",
865
+ "tags": [],
866
+ "docs": "",
867
+ "complexTypes": [],
868
+ "type": "string"
869
+ },
870
+ {
871
+ "name": "wlanaddress",
872
+ "tags": [],
873
+ "docs": "",
874
+ "complexTypes": [],
875
+ "type": "string"
876
+ },
877
+ {
878
+ "name": "btaddress",
879
+ "tags": [],
880
+ "docs": "",
881
+ "complexTypes": [],
882
+ "type": "string"
883
+ },
884
+ {
885
+ "name": "headcount",
886
+ "tags": [],
887
+ "docs": "",
888
+ "complexTypes": [],
889
+ "type": "string"
890
+ },
891
+ {
892
+ "name": "lifecount",
893
+ "tags": [],
894
+ "docs": "",
895
+ "complexTypes": [],
896
+ "type": "string"
897
+ },
898
+ {
899
+ "name": "cutcount",
900
+ "tags": [],
901
+ "docs": "",
902
+ "complexTypes": [],
903
+ "type": "string"
904
+ },
905
+ {
906
+ "name": "dispensecount",
907
+ "tags": [],
908
+ "docs": "",
909
+ "complexTypes": [],
910
+ "type": "string"
911
+ },
912
+ {
913
+ "name": "thermotransfer",
914
+ "tags": [],
915
+ "docs": "",
916
+ "complexTypes": [],
917
+ "type": "boolean"
918
+ }
919
+ ]
920
+ },
921
+ {
922
+ "name": "Firmware",
923
+ "slug": "firmware",
924
+ "docs": "",
925
+ "tags": [],
926
+ "methods": [],
927
+ "properties": [
928
+ {
929
+ "name": "version",
930
+ "tags": [],
931
+ "docs": "",
932
+ "complexTypes": [],
933
+ "type": "string"
934
+ },
935
+ {
936
+ "name": "date",
937
+ "tags": [],
938
+ "docs": "",
939
+ "complexTypes": [],
940
+ "type": "string"
941
+ },
942
+ {
943
+ "name": "checksum",
944
+ "tags": [],
945
+ "docs": "",
946
+ "complexTypes": [],
947
+ "type": "string"
948
+ }
949
+ ]
950
+ },
951
+ {
952
+ "name": "Media",
953
+ "slug": "media",
954
+ "docs": "",
955
+ "tags": [],
956
+ "methods": [],
957
+ "properties": [
958
+ {
959
+ "name": "labelwidth",
960
+ "tags": [],
961
+ "docs": "",
962
+ "complexTypes": [],
963
+ "type": "number"
964
+ },
965
+ {
966
+ "name": "labelheight",
967
+ "tags": [],
968
+ "docs": "",
969
+ "complexTypes": [],
970
+ "type": "number"
971
+ }
972
+ ]
973
+ },
974
+ {
975
+ "name": "Battery",
976
+ "slug": "battery",
977
+ "docs": "",
978
+ "tags": [],
979
+ "methods": [],
980
+ "properties": [
981
+ {
982
+ "name": "cyclecount",
983
+ "tags": [],
984
+ "docs": "",
985
+ "complexTypes": [],
986
+ "type": "number"
987
+ },
988
+ {
989
+ "name": "chargestat",
990
+ "tags": [],
991
+ "docs": "",
992
+ "complexTypes": [],
993
+ "type": "number"
994
+ },
995
+ {
996
+ "name": "health",
997
+ "tags": [],
998
+ "docs": "",
999
+ "complexTypes": [],
1000
+ "type": "number"
1001
+ },
1002
+ {
1003
+ "name": "remain",
1004
+ "tags": [],
1005
+ "docs": "",
1006
+ "complexTypes": [],
1007
+ "type": "number"
1008
+ }
1009
+ ]
1010
+ },
1011
+ {
1012
+ "name": "TicketData",
1013
+ "slug": "ticketdata",
1014
+ "docs": "",
1015
+ "tags": [],
1016
+ "methods": [],
1017
+ "properties": [
1018
+ {
1019
+ "name": "variables",
1020
+ "tags": [],
1021
+ "docs": "",
1022
+ "complexTypes": [
1023
+ "TicketVariable"
1024
+ ],
1025
+ "type": "TicketVariable"
1026
+ }
1027
+ ]
1028
+ },
1029
+ {
1030
+ "name": "TicketVariable",
1031
+ "slug": "ticketvariable",
1032
+ "docs": "",
1033
+ "tags": [],
1034
+ "methods": [],
1035
+ "properties": []
1036
+ },
1037
+ {
1038
+ "name": "PrinterConfiguration",
1039
+ "slug": "printerconfiguration",
1040
+ "docs": "",
1041
+ "tags": [],
1042
+ "methods": [],
1043
+ "properties": [
1044
+ {
1045
+ "name": "disconnectonpause",
1046
+ "tags": [],
1047
+ "docs": "",
1048
+ "complexTypes": [],
1049
+ "type": "boolean"
1050
+ },
1051
+ {
1052
+ "name": "connectonresume",
1053
+ "tags": [],
1054
+ "docs": "",
1055
+ "complexTypes": [],
1056
+ "type": "boolean"
1057
+ },
1058
+ {
1059
+ "name": "lowbatterythreshold",
1060
+ "tags": [],
1061
+ "docs": "",
1062
+ "complexTypes": [],
1063
+ "type": "number"
1064
+ },
1065
+ {
1066
+ "name": "media",
1067
+ "tags": [],
1068
+ "docs": "",
1069
+ "complexTypes": [
1070
+ "CIDMedia"
1071
+ ],
1072
+ "type": "CIDMedia"
1073
+ }
1074
+ ]
1075
+ },
1076
+ {
1077
+ "name": "CIDMedia",
1078
+ "slug": "cidmedia",
1079
+ "docs": "",
1080
+ "tags": [],
1081
+ "methods": [],
1082
+ "properties": [
1083
+ {
1084
+ "name": "size",
1085
+ "tags": [],
1086
+ "docs": "",
1087
+ "complexTypes": [
1088
+ "MediaSize"
1089
+ ],
1090
+ "type": "MediaSize"
1091
+ },
1092
+ {
1093
+ "name": "type",
1094
+ "tags": [],
1095
+ "docs": "",
1096
+ "complexTypes": [
1097
+ "MediaType"
1098
+ ],
1099
+ "type": "MediaType"
1100
+ }
1101
+ ]
1102
+ },
1103
+ {
1104
+ "name": "PluginListenerHandle",
1105
+ "slug": "pluginlistenerhandle",
1106
+ "docs": "",
1107
+ "tags": [],
1108
+ "methods": [],
1109
+ "properties": [
1110
+ {
1111
+ "name": "remove",
1112
+ "tags": [],
1113
+ "docs": "",
1114
+ "complexTypes": [],
1115
+ "type": "() => Promise<void>"
1116
+ }
1117
+ ]
1118
+ }
1119
+ ],
1120
+ "enums": [
1121
+ {
1122
+ "name": "EventType",
1123
+ "slug": "eventtype",
1124
+ "members": [
1125
+ {
1126
+ "name": "SUCCESS",
1127
+ "value": "0",
1128
+ "tags": [],
1129
+ "docs": ""
1130
+ },
1131
+ {
1132
+ "name": "NOTIFY",
1133
+ "value": "1",
1134
+ "tags": [],
1135
+ "docs": ""
1136
+ },
1137
+ {
1138
+ "name": "FAILED",
1139
+ "value": "2",
1140
+ "tags": [],
1141
+ "docs": ""
1142
+ }
1143
+ ]
1144
+ },
1145
+ {
1146
+ "name": "PrinterLibraryActionType",
1147
+ "slug": "printerlibraryactiontype",
1148
+ "members": [
1149
+ {
1150
+ "name": "NONE",
1151
+ "value": "0",
1152
+ "tags": [],
1153
+ "docs": ""
1154
+ },
1155
+ {
1156
+ "name": "INITIALIZE",
1157
+ "value": "1",
1158
+ "tags": [],
1159
+ "docs": ""
1160
+ },
1161
+ {
1162
+ "name": "BLUETOOTH_INITIALIZE",
1163
+ "value": "2",
1164
+ "tags": [],
1165
+ "docs": ""
1166
+ },
1167
+ {
1168
+ "name": "BLUETOOTH_ENABLE",
1169
+ "value": "3",
1170
+ "tags": [],
1171
+ "docs": ""
1172
+ },
1173
+ {
1174
+ "name": "BLUETOOTH_DISABLE",
1175
+ "value": "4",
1176
+ "tags": [],
1177
+ "docs": ""
1178
+ },
1179
+ {
1180
+ "name": "DISCOVER_START",
1181
+ "value": "5",
1182
+ "tags": [],
1183
+ "docs": ""
1184
+ },
1185
+ {
1186
+ "name": "DISCOVER_DETECT",
1187
+ "value": "6",
1188
+ "tags": [],
1189
+ "docs": ""
1190
+ },
1191
+ {
1192
+ "name": "DISCOVER_FINISH",
1193
+ "value": "7",
1194
+ "tags": [],
1195
+ "docs": ""
1196
+ },
1197
+ {
1198
+ "name": "CONNECT",
1199
+ "value": "8",
1200
+ "tags": [],
1201
+ "docs": ""
1202
+ },
1203
+ {
1204
+ "name": "DISCONNECT",
1205
+ "value": "9",
1206
+ "tags": [],
1207
+ "docs": ""
1208
+ },
1209
+ {
1210
+ "name": "PRINT",
1211
+ "value": "10",
1212
+ "tags": [],
1213
+ "docs": ""
1214
+ },
1215
+ {
1216
+ "name": "STATUS",
1217
+ "value": "11",
1218
+ "tags": [],
1219
+ "docs": ""
1220
+ },
1221
+ {
1222
+ "name": "CONFIGURE",
1223
+ "value": "12",
1224
+ "tags": [],
1225
+ "docs": ""
1226
+ },
1227
+ {
1228
+ "name": "BLUETOOTH_TURNED_OFF",
1229
+ "value": "13",
1230
+ "tags": [],
1231
+ "docs": ""
1232
+ },
1233
+ {
1234
+ "name": "BLUETOOTH_TURNED_ON",
1235
+ "value": "14",
1236
+ "tags": [],
1237
+ "docs": ""
1238
+ },
1239
+ {
1240
+ "name": "LICENSE_ACTIVATION",
1241
+ "value": "15",
1242
+ "tags": [],
1243
+ "docs": ""
1244
+ },
1245
+ {
1246
+ "name": "FILEUPLOAD",
1247
+ "value": "16",
1248
+ "tags": [],
1249
+ "docs": ""
1250
+ },
1251
+ {
1252
+ "name": "EXCEPTION",
1253
+ "value": "17",
1254
+ "tags": [],
1255
+ "docs": ""
1256
+ }
1257
+ ]
1258
+ },
1259
+ {
1260
+ "name": "ReferenceTicketType",
1261
+ "slug": "referencetickettype",
1262
+ "members": [
1263
+ {
1264
+ "name": "DOT_MATRIX",
1265
+ "value": "0",
1266
+ "tags": [],
1267
+ "docs": ""
1268
+ }
1269
+ ]
1270
+ },
1271
+ {
1272
+ "name": "MediaType",
1273
+ "slug": "mediatype",
1274
+ "members": [
1275
+ {
1276
+ "name": "GAP",
1277
+ "value": "0",
1278
+ "tags": [],
1279
+ "docs": ""
1280
+ },
1281
+ {
1282
+ "name": "IMARK",
1283
+ "value": "1",
1284
+ "tags": [],
1285
+ "docs": ""
1286
+ }
1287
+ ]
1288
+ }
1289
+ ],
1290
+ "typeAliases": [],
1291
+ "pluginConfigs": []
1292
+ }