@rdlabo/capacitor-brotherprint 6.3.0 → 6.4.1

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/README.md CHANGED
@@ -10,11 +10,11 @@ Each product link is an Amazon affiliate link. If you choose to make a purchase
10
10
 
11
11
  | Product | Model | iOS/WiFi | iOS/BT | iOS/BLE | Android/USB | Android/WiFi | Android/BT | Android/BLE |
12
12
  | ------------------------------------- | ------------ | -------- | ------ | ------- | ----------- | ------------ | ---------- | ----------- |
13
- | QL-810W | QL_810W | ✗ | ✗ | ✗ | - | ✗ | ✗ | ✗ |
14
- | [QL-820NWB](https://amzn.to/3BXQ1aj) | QL_820NWB | ◯ | ※1 | ✗ | - | ◯ | △ | ✗ |
13
+ | QL-810W | QL_810W | ✗ | ✗ | ✗ | | ✗ | ✗ | ✗ |
14
+ | [QL-820NWB](https://amzn.to/3BXQ1aj) | QL_820NWB | ◯ | ※1 | ✗ | | ◯ | △ | ✗ |
15
15
  | [QL-820NWBc](https://amzn.to/4fjhUIe) | QL_820NWB | ◯ | ※2 | ✗ | ✗ | ◯ | ◯ | ✗ |
16
16
  | [TD-2320D](https://amzn.to/48EFCN3) | TD_2320D_203 | ✗ | ✗ | ✗ | △ | ✗ | ✗ | ✗ |
17
- | [TD-2350D](https://amzn.to/48ma6TK) | TD_2350D_300 | ◯ | △ | △ | - | ◯ | ◯ | △ |
17
+ | [TD-2350D](https://amzn.to/48ma6TK) | TD_2350D_300 | ◯ | △ | △ | | ◯ | ◯ | △ |
18
18
 
19
19
  Amazon Affiliate Links: **https://amzn.to/3AiiOFT**
20
20
 
@@ -134,15 +134,6 @@ More information is here: https://support.brother.co.jp/j/s/support/html/mobiles
134
134
  ## How to use
135
135
 
136
136
  ```typescript
137
- import {
138
- BrotherPrint,
139
- BRLMPrintOptions,
140
- BRLMPrinterLabelName,
141
- BrotherPrintEventsEnum,
142
- BRLMPrinterModelName,
143
- BRLMChannelResult,
144
- } from '@rdlabo/capacitor-brotherprint';
145
-
146
137
  @Component({
147
138
  selector: 'brother-print',
148
139
  templateUrl: 'brother.component.html',
@@ -188,7 +179,7 @@ export class BrotherComponent implements OnInit, OnDestroy {
188
179
  this.#listenerHandlers.forEach(handler => handler.remove());
189
180
  }
190
181
 
191
- async searchPrinter(port: 'wifi' | 'bluetooth' | 'bluetoothLowEnergy') {
182
+ async searchPrinter(port: BRKMPrinterPort) {
192
183
  // This method return void. Get the printer list by listening to the event.
193
184
  await BrotherPrint.search({
194
185
  port,
@@ -204,7 +195,7 @@ export class BrotherComponent implements OnInit, OnDestroy {
204
195
 
205
196
  const defaultPrintSettings: BRLMPrintOptions = {
206
197
  modelName: BRLMPrinterModelName.QL_820NWB,
207
- labelName: BRLMPrinterLabelName.W62,
198
+ labelName: BRLMPrinterLabelName.RollW62,
208
199
  encodedImage: 'base64 removed mime-type', // base64
209
200
  numberOfCopies: 1, // default 1
210
201
  autoCut: true, // default true
@@ -213,17 +204,17 @@ export class BrotherComponent implements OnInit, OnDestroy {
213
204
  BrotherPrint.printImage({
214
205
  ...defaultPrintSettings,
215
206
  ...{
216
- ipAddress: this.printers()[0].ipAddress,
217
- localName: this.printers()[0].nodeName,
218
- macAddress: this.printers()[0].macAddress,
219
- serialNumber: this.printers()[0].serialNumber,
220
207
  port: this.printers()[0].port,
208
+ channelInfo: this.printers()[0].channelInfo,
221
209
  },
222
210
  });
223
211
  }
224
212
  }
225
213
  ```
226
214
 
215
+ See demo for complete code:
216
+ https://github.com/rdlabo-team/capacitor-brotherprint/blob/main/demo/src/app/home/home.page.ts
217
+
227
218
  ## API
228
219
 
229
220
  <docgen-index>
@@ -395,7 +386,7 @@ Make all properties in T optional
395
386
 
396
387
  #### BRLMChannelResult
397
388
 
398
- <code>{ port: 'usb' | 'wifi' | 'bluetooth' | 'bluetoothLowEnergy'; modelName: string; serialNumber: string; macAddress: string; nodeName: string; location: string; /** * This need to connect to the printer. * wifi: IP Address * bluetooth: macAddress * bluetoothLowEnergy: modelName for bluetoothLowEnergy */ channelInfo: string; }</code>
389
+ <code>{ port: <a href="#brkmprinterport">BRKMPrinterPort</a>; modelName: string; serialNumber: string; macAddress: string; nodeName: string; location: string; /** * This need to connect to the printer. * wifi: IP Address * bluetooth: macAddress * bluetoothLowEnergy: modelName for bluetoothLowEnergy */ channelInfo: string; }</code>
399
390
 
400
391
 
401
392
  #### BRLMPrinterQLModelSettings
@@ -437,7 +428,7 @@ These are optional. If these are not set, default values are assigned by the pri
437
428
 
438
429
  #### BRLMSearchOption
439
430
 
440
- <code>{ /** * 'usb' is android only, and now developing. */ port: 'usb' | 'wifi' | 'bluetooth' | 'bluetoothLowEnergy'; /** * searchDuration is the time to end search for devices. * default is 15 seconds. * use only port is 'wifi' or 'bluetoothLowEnergy'. */ searchDuration: number; }</code>
431
+ <code>{ /** * 'usb' is android only, and now developing. */ port: <a href="#brkmprinterport">BRKMPrinterPort</a>; /** * searchDuration is the time to end search for devices. * default is 15 seconds. * use only port is 'wifi' or 'bluetoothLowEnergy'. */ searchDuration: number; }</code>
441
432
 
442
433
 
443
434
  #### ErrorInfo
@@ -452,6 +443,7 @@ These are optional. If these are not set, default values are assigned by the pri
452
443
 
453
444
  | Members | Value |
454
445
  | ------------------ | --------------------------- |
446
+ | **`QL_800`** | <code>'QL_800'</code> |
455
447
  | **`QL_810W`** | <code>'QL_810W'</code> |
456
448
  | **`QL_820NWB`** | <code>'QL_820NWB'</code> |
457
449
  | **`TD_2320D_203`** | <code>'TD_2320D_203'</code> |
@@ -459,34 +451,53 @@ These are optional. If these are not set, default values are assigned by the pri
459
451
  | **`TD_2350D_300`** | <code>'TD_2350D_300'</code> |
460
452
 
461
453
 
454
+ #### BRKMPrinterPort
455
+
456
+ | Members | Value |
457
+ | ------------------------ | --------------------------------- |
458
+ | **`usb`** | <code>'usb'</code> |
459
+ | **`wifi`** | <code>'wifi'</code> |
460
+ | **`bluetooth`** | <code>'bluetooth'</code> |
461
+ | **`bluetoothLowEnergy`** | <code>'bluetoothLowEnergy'</code> |
462
+
463
+
462
464
  #### BRLMPrinterLabelName
463
465
 
464
- | Members | Value |
465
- | ------------- | ---------------------- |
466
- | **`W17H54`** | <code>'W17H54'</code> |
467
- | **`W17H87`** | <code>'W17H87'</code> |
468
- | **`W23H23`** | <code>'W23H23'</code> |
469
- | **`W29H42`** | <code>'W29H42'</code> |
470
- | **`W29H90`** | <code>'W29H90'</code> |
471
- | **`W38H90`** | <code>'W38H90'</code> |
472
- | **`W39H48`** | <code>'W39H48'</code> |
473
- | **`W52H29`** | <code>'W52H29'</code> |
474
- | **`W62H29`** | <code>'W62H29'</code> |
475
- | **`W62H100`** | <code>'W62H100'</code> |
476
- | **`W12`** | <code>'W12'</code> |
477
- | **`W29`** | <code>'W29'</code> |
478
- | **`W38`** | <code>'W38'</code> |
479
- | **`W50`** | <code>'W50'</code> |
480
- | **`W54`** | <code>'W54'</code> |
481
- | **`W62`** | <code>'W62'</code> |
482
- | **`W60H86`** | <code>'W60H86'</code> |
483
- | **`W62RB`** | <code>'W62RB'</code> |
484
- | **`W54H29`** | <code>'W54H29'</code> |
485
- | **`W12DIA`** | <code>'W12DIA'</code> |
486
- | **`W24DIA`** | <code>'W24DIA'</code> |
487
- | **`W58DIA`** | <code>'W58DIA'</code> |
488
- | **`W62H60`** | <code>'W62H60'</code> |
489
- | **`W62H75`** | <code>'W62H75'</code> |
466
+ | Members | Value |
467
+ | -------------------- | ----------------------------- |
468
+ | **`DieCutW17H54`** | <code>'DieCutW17H54'</code> |
469
+ | **`DieCutW17H87`** | <code>'DieCutW17H87'</code> |
470
+ | **`DieCutW23H23`** | <code>'DieCutW23H23'</code> |
471
+ | **`DieCutW29H42`** | <code>'DieCutW29H42'</code> |
472
+ | **`DieCutW29H90`** | <code>'DieCutW29H90'</code> |
473
+ | **`DieCutW38H90`** | <code>'DieCutW38H90'</code> |
474
+ | **`DieCutW39H48`** | <code>'DieCutW39H48'</code> |
475
+ | **`DieCutW52H29`** | <code>'DieCutW52H29'</code> |
476
+ | **`DieCutW62H29`** | <code>'DieCutW62H29'</code> |
477
+ | **`DieCutW62H60`** | <code>'DieCutW62H60'</code> |
478
+ | **`DieCutW62H75`** | <code>'DieCutW62H75'</code> |
479
+ | **`DieCutW62H100`** | <code>'DieCutW62H100'</code> |
480
+ | **`DieCutW60H86`** | <code>'DieCutW60H86'</code> |
481
+ | **`DieCutW54H29`** | <code>'DieCutW54H29'</code> |
482
+ | **`DieCutW102H51`** | <code>'DieCutW102H51'</code> |
483
+ | **`DieCutW102H152`** | <code>'DieCutW102H152'</code> |
484
+ | **`DieCutW103H164`** | <code>'DieCutW103H164'</code> |
485
+ | **`RollW12`** | <code>'RollW12'</code> |
486
+ | **`RollW29`** | <code>'RollW29'</code> |
487
+ | **`RollW38`** | <code>'RollW38'</code> |
488
+ | **`RollW50`** | <code>'RollW50'</code> |
489
+ | **`RollW54`** | <code>'RollW54'</code> |
490
+ | **`RollW62`** | <code>'RollW62'</code> |
491
+ | **`RollW62RB`** | <code>'RollW62RB'</code> |
492
+ | **`RollW102`** | <code>'RollW102'</code> |
493
+ | **`RollW103`** | <code>'RollW103'</code> |
494
+ | **`DTRollW90`** | <code>'DTRollW90'</code> |
495
+ | **`DTRollW102`** | <code>'DTRollW102'</code> |
496
+ | **`DTRollW102H51`** | <code>'DTRollW102H51'</code> |
497
+ | **`DTRollW102H152`** | <code>'DTRollW102H152'</code> |
498
+ | **`RoundW12DIA`** | <code>'RoundW12DIA'</code> |
499
+ | **`RoundW24DIA`** | <code>'RoundW24DIA'</code> |
500
+ | **`RoundW58DIA`** | <code>'RoundW58DIA'</code> |
490
501
 
491
502
 
492
503
  #### BRLMPrinterScaleMode
@@ -1,11 +1,17 @@
1
1
  package jp.rdlabo.capacitor.plugin.brotherprint
2
2
 
3
3
  import android.Manifest
4
+ import android.app.PendingIntent
4
5
  import android.bluetooth.BluetoothAdapter
5
6
  import android.bluetooth.BluetoothManager
7
+ import android.content.BroadcastReceiver
6
8
  import android.content.Context
9
+ import android.content.Intent
10
+ import android.content.IntentFilter
7
11
  import android.graphics.BitmapFactory
12
+ import android.hardware.usb.UsbDevice
8
13
  import android.hardware.usb.UsbManager
14
+ import android.os.Build
9
15
  import android.util.Base64
10
16
  import android.util.Log
11
17
  import com.brother.sdk.lmprinter.BLESearchOption
@@ -56,9 +62,13 @@ import jp.rdlabo.capacitor.plugin.brotherprint.models.BrotherPrintSettings
56
62
  class BrotherPrint : Plugin() {
57
63
  private var cancelRoutineWiFi: (() -> Unit)? = null
58
64
  private var cancelRoutineBluetooth: (() -> Unit)? = null
65
+
66
+ private val ActionUSBPermission = "jp.rdlabo.capacitor.plugin.brotherprint.USB_PERMISSION"
59
67
  private val PERMISSION_DENIED_ERROR =
60
68
  "Unable to do call operation, user denied permission request"
61
69
 
70
+ private var storeCall: PluginCall? = null
71
+
62
72
  @PluginMethod
63
73
  fun printImage(call: PluginCall) {
64
74
  val encodedImage = call.getString("encodedImage", "")
@@ -159,7 +169,12 @@ class BrotherPrint : Plugin() {
159
169
  }
160
170
 
161
171
  private fun searchUsbPrinter(call: PluginCall) {
162
- Log.d("brother", "searchUsbPrinter")
172
+ if (!this.requestUsbPermission(call)) {
173
+ this.storeCall = call;
174
+ return
175
+ }
176
+ this.storeCall = null
177
+
163
178
  Thread {
164
179
  val result = PrinterSearcher.startUSBSearch(bridge.context)
165
180
 
@@ -309,6 +324,52 @@ class BrotherPrint : Plugin() {
309
324
  }
310
325
  }
311
326
 
327
+ /**
328
+ * TODO: This is not called for in spite of registration.
329
+ * Therefore, it is now necessary for the user to run it again after permission is granted.
330
+ */
331
+ private val usbReceiver: BroadcastReceiver = object : BroadcastReceiver() {
332
+ override fun onReceive(context: Context?, intent: Intent?) {
333
+ if (intent?.action == ActionUSBPermission && intent.getBooleanExtra(UsbManager.EXTRA_PERMISSION_GRANTED, false)) {
334
+ storeCall?.let { searchUsbPrinter(it) }
335
+ } else {
336
+ storeCall?.reject("Error - usbReceiver can't current receiver");
337
+ }
338
+ }
339
+ }
340
+
341
+ private fun requestUsbPermission(call: PluginCall): Boolean {
342
+ val permissionIntent = PendingIntent.getBroadcast(
343
+ bridge.context, 0, Intent(ActionUSBPermission), PendingIntent.FLAG_IMMUTABLE
344
+ )
345
+
346
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
347
+ bridge.context.registerReceiver(
348
+ usbReceiver, IntentFilter(ActionUSBPermission),
349
+ Context.RECEIVER_NOT_EXPORTED
350
+ )
351
+ } else {
352
+ bridge.context.registerReceiver(
353
+ usbReceiver, IntentFilter(ActionUSBPermission)
354
+ )
355
+ }
356
+
357
+ var connectDevice: UsbDevice? = null
358
+ val usbManager = bridge.context.getSystemService(Context.USB_SERVICE) as UsbManager
359
+ for (device in usbManager.deviceList.values) {
360
+ connectDevice = device
361
+ }
362
+
363
+ if (connectDevice == null) {
364
+ call.reject("Error - connection failed: device not found")
365
+ return false
366
+ }
367
+
368
+ usbManager.requestPermission(connectDevice, permissionIntent)
369
+
370
+ return usbManager.hasPermission(connectDevice)
371
+ }
372
+
312
373
  private fun isBluetoothPermissionGranted(): Boolean {
313
374
  return getPermissionState("bluetooth") == PermissionState.GRANTED
314
375
  }
package/dist/docs.json CHANGED
@@ -186,6 +186,12 @@
186
186
  "name": "BRLMPrinterModelName",
187
187
  "slug": "brlmprintermodelname",
188
188
  "members": [
189
+ {
190
+ "name": "QL_800",
191
+ "value": "'QL_800'",
192
+ "tags": [],
193
+ "docs": ""
194
+ },
189
195
  {
190
196
  "name": "QL_810W",
191
197
  "value": "'QL_810W'",
@@ -218,151 +224,235 @@
218
224
  }
219
225
  ]
220
226
  },
227
+ {
228
+ "name": "BRKMPrinterPort",
229
+ "slug": "brkmprinterport",
230
+ "members": [
231
+ {
232
+ "name": "usb",
233
+ "value": "'usb'",
234
+ "tags": [],
235
+ "docs": ""
236
+ },
237
+ {
238
+ "name": "wifi",
239
+ "value": "'wifi'",
240
+ "tags": [],
241
+ "docs": ""
242
+ },
243
+ {
244
+ "name": "bluetooth",
245
+ "value": "'bluetooth'",
246
+ "tags": [],
247
+ "docs": ""
248
+ },
249
+ {
250
+ "name": "bluetoothLowEnergy",
251
+ "value": "'bluetoothLowEnergy'",
252
+ "tags": [],
253
+ "docs": ""
254
+ }
255
+ ]
256
+ },
221
257
  {
222
258
  "name": "BRLMPrinterLabelName",
223
259
  "slug": "brlmprinterlabelname",
224
260
  "members": [
225
261
  {
226
- "name": "W17H54",
227
- "value": "'W17H54'",
262
+ "name": "DieCutW17H54",
263
+ "value": "'DieCutW17H54'",
264
+ "tags": [],
265
+ "docs": ""
266
+ },
267
+ {
268
+ "name": "DieCutW17H87",
269
+ "value": "'DieCutW17H87'",
270
+ "tags": [],
271
+ "docs": ""
272
+ },
273
+ {
274
+ "name": "DieCutW23H23",
275
+ "value": "'DieCutW23H23'",
276
+ "tags": [],
277
+ "docs": ""
278
+ },
279
+ {
280
+ "name": "DieCutW29H42",
281
+ "value": "'DieCutW29H42'",
228
282
  "tags": [],
229
283
  "docs": ""
230
284
  },
231
285
  {
232
- "name": "W17H87",
233
- "value": "'W17H87'",
286
+ "name": "DieCutW29H90",
287
+ "value": "'DieCutW29H90'",
234
288
  "tags": [],
235
289
  "docs": ""
236
290
  },
237
291
  {
238
- "name": "W23H23",
239
- "value": "'W23H23'",
292
+ "name": "DieCutW38H90",
293
+ "value": "'DieCutW38H90'",
240
294
  "tags": [],
241
295
  "docs": ""
242
296
  },
243
297
  {
244
- "name": "W29H42",
245
- "value": "'W29H42'",
298
+ "name": "DieCutW39H48",
299
+ "value": "'DieCutW39H48'",
246
300
  "tags": [],
247
301
  "docs": ""
248
302
  },
249
303
  {
250
- "name": "W29H90",
251
- "value": "'W29H90'",
304
+ "name": "DieCutW52H29",
305
+ "value": "'DieCutW52H29'",
252
306
  "tags": [],
253
307
  "docs": ""
254
308
  },
255
309
  {
256
- "name": "W38H90",
257
- "value": "'W38H90'",
310
+ "name": "DieCutW62H29",
311
+ "value": "'DieCutW62H29'",
258
312
  "tags": [],
259
313
  "docs": ""
260
314
  },
261
315
  {
262
- "name": "W39H48",
263
- "value": "'W39H48'",
316
+ "name": "DieCutW62H60",
317
+ "value": "'DieCutW62H60'",
264
318
  "tags": [],
265
319
  "docs": ""
266
320
  },
267
321
  {
268
- "name": "W52H29",
269
- "value": "'W52H29'",
322
+ "name": "DieCutW62H75",
323
+ "value": "'DieCutW62H75'",
270
324
  "tags": [],
271
325
  "docs": ""
272
326
  },
273
327
  {
274
- "name": "W62H29",
275
- "value": "'W62H29'",
328
+ "name": "DieCutW62H100",
329
+ "value": "'DieCutW62H100'",
276
330
  "tags": [],
277
331
  "docs": ""
278
332
  },
279
333
  {
280
- "name": "W62H100",
281
- "value": "'W62H100'",
334
+ "name": "DieCutW60H86",
335
+ "value": "'DieCutW60H86'",
282
336
  "tags": [],
283
337
  "docs": ""
284
338
  },
285
339
  {
286
- "name": "W12",
287
- "value": "'W12'",
340
+ "name": "DieCutW54H29",
341
+ "value": "'DieCutW54H29'",
288
342
  "tags": [],
289
343
  "docs": ""
290
344
  },
291
345
  {
292
- "name": "W29",
293
- "value": "'W29'",
346
+ "name": "DieCutW102H51",
347
+ "value": "'DieCutW102H51'",
294
348
  "tags": [],
295
349
  "docs": ""
296
350
  },
297
351
  {
298
- "name": "W38",
299
- "value": "'W38'",
352
+ "name": "DieCutW102H152",
353
+ "value": "'DieCutW102H152'",
300
354
  "tags": [],
301
355
  "docs": ""
302
356
  },
303
357
  {
304
- "name": "W50",
305
- "value": "'W50'",
358
+ "name": "DieCutW103H164",
359
+ "value": "'DieCutW103H164'",
306
360
  "tags": [],
307
361
  "docs": ""
308
362
  },
309
363
  {
310
- "name": "W54",
311
- "value": "'W54'",
364
+ "name": "RollW12",
365
+ "value": "'RollW12'",
312
366
  "tags": [],
313
367
  "docs": ""
314
368
  },
315
369
  {
316
- "name": "W62",
317
- "value": "'W62'",
370
+ "name": "RollW29",
371
+ "value": "'RollW29'",
318
372
  "tags": [],
319
373
  "docs": ""
320
374
  },
321
375
  {
322
- "name": "W60H86",
323
- "value": "'W60H86'",
376
+ "name": "RollW38",
377
+ "value": "'RollW38'",
324
378
  "tags": [],
325
379
  "docs": ""
326
380
  },
327
381
  {
328
- "name": "W62RB",
329
- "value": "'W62RB'",
382
+ "name": "RollW50",
383
+ "value": "'RollW50'",
330
384
  "tags": [],
331
385
  "docs": ""
332
386
  },
333
387
  {
334
- "name": "W54H29",
335
- "value": "'W54H29'",
388
+ "name": "RollW54",
389
+ "value": "'RollW54'",
336
390
  "tags": [],
337
391
  "docs": ""
338
392
  },
339
393
  {
340
- "name": "W12DIA",
341
- "value": "'W12DIA'",
394
+ "name": "RollW62",
395
+ "value": "'RollW62'",
342
396
  "tags": [],
343
397
  "docs": ""
344
398
  },
345
399
  {
346
- "name": "W24DIA",
347
- "value": "'W24DIA'",
400
+ "name": "RollW62RB",
401
+ "value": "'RollW62RB'",
348
402
  "tags": [],
349
403
  "docs": ""
350
404
  },
351
405
  {
352
- "name": "W58DIA",
353
- "value": "'W58DIA'",
406
+ "name": "RollW102",
407
+ "value": "'RollW102'",
354
408
  "tags": [],
355
409
  "docs": ""
356
410
  },
357
411
  {
358
- "name": "W62H60",
359
- "value": "'W62H60'",
412
+ "name": "RollW103",
413
+ "value": "'RollW103'",
360
414
  "tags": [],
361
415
  "docs": ""
362
416
  },
363
417
  {
364
- "name": "W62H75",
365
- "value": "'W62H75'",
418
+ "name": "DTRollW90",
419
+ "value": "'DTRollW90'",
420
+ "tags": [],
421
+ "docs": ""
422
+ },
423
+ {
424
+ "name": "DTRollW102",
425
+ "value": "'DTRollW102'",
426
+ "tags": [],
427
+ "docs": ""
428
+ },
429
+ {
430
+ "name": "DTRollW102H51",
431
+ "value": "'DTRollW102H51'",
432
+ "tags": [],
433
+ "docs": ""
434
+ },
435
+ {
436
+ "name": "DTRollW102H152",
437
+ "value": "'DTRollW102H152'",
438
+ "tags": [],
439
+ "docs": ""
440
+ },
441
+ {
442
+ "name": "RoundW12DIA",
443
+ "value": "'RoundW12DIA'",
444
+ "tags": [],
445
+ "docs": ""
446
+ },
447
+ {
448
+ "name": "RoundW24DIA",
449
+ "value": "'RoundW24DIA'",
450
+ "tags": [],
451
+ "docs": ""
452
+ },
453
+ {
454
+ "name": "RoundW58DIA",
455
+ "value": "'RoundW58DIA'",
366
456
  "tags": [],
367
457
  "docs": ""
368
458
  }
@@ -653,8 +743,10 @@
653
743
  "docs": "",
654
744
  "types": [
655
745
  {
656
- "text": "{\n port: 'usb' | 'wifi' | 'bluetooth' | 'bluetoothLowEnergy';\n modelName: string;\n serialNumber: string;\n macAddress: string;\n nodeName: string;\n location: string;\n\n /**\n * This need to connect to the printer.\n * wifi: IP Address\n * bluetooth: macAddress\n * bluetoothLowEnergy: modelName for bluetoothLowEnergy\n */\n channelInfo: string;\n}",
657
- "complexTypes": []
746
+ "text": "{\n port: BRKMPrinterPort;\n modelName: string;\n serialNumber: string;\n macAddress: string;\n nodeName: string;\n location: string;\n\n /**\n * This need to connect to the printer.\n * wifi: IP Address\n * bluetooth: macAddress\n * bluetoothLowEnergy: modelName for bluetoothLowEnergy\n */\n channelInfo: string;\n}",
747
+ "complexTypes": [
748
+ "BRKMPrinterPort"
749
+ ]
658
750
  }
659
751
  ]
660
752
  },
@@ -759,8 +851,10 @@
759
851
  "docs": "",
760
852
  "types": [
761
853
  {
762
- "text": "{\n /**\n * 'usb' is android only, and now developing.\n */\n port: 'usb' | 'wifi' | 'bluetooth' | 'bluetoothLowEnergy';\n\n /**\n * searchDuration is the time to end search for devices.\n * default is 15 seconds.\n * use only port is 'wifi' or 'bluetoothLowEnergy'.\n */\n searchDuration: number;\n}",
763
- "complexTypes": []
854
+ "text": "{\n /**\n * 'usb' is android only, and now developing.\n */\n port: BRKMPrinterPort;\n\n /**\n * searchDuration is the time to end search for devices.\n * default is 15 seconds.\n * use only port is 'wifi' or 'bluetoothLowEnergy'.\n */\n searchDuration: number;\n}",
855
+ "complexTypes": [
856
+ "BRKMPrinterPort"
857
+ ]
764
858
  }
765
859
  ]
766
860
  },