@girs/gnomebluetooth-3.0 3.0.0-3.2.5 → 3.0.0-3.2.7

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
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gnomebluetooth-3.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GnomeBluetooth-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.5.
8
+ GJS TypeScript type definitions for GnomeBluetooth-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
 
11
11
  ## Install
@@ -175,26 +175,26 @@ export function class_to_type(class_: number): Type
175
175
  * @param alias Remote device's name
176
176
  * @returns %TRUE on success, %FALSE on error.
177
177
  */
178
- export function send_to_address(address: string | null, alias: string | null): boolean
178
+ export function send_to_address(address: string, alias: string): boolean
179
179
  /**
180
180
  * Returns a human-readable string representation of `type` usable for display to users. Do not free the return value.
181
181
  * The returned string is already translated with gettext().
182
182
  * @param type a #BluetoothType
183
183
  * @returns a string.
184
184
  */
185
- export function type_to_string(type: number): string | null
185
+ export function type_to_string(type: number): string
186
186
  /**
187
187
  * Returns a string representing a human-readable (but not usable for display to users) version of the `uuid`. Do not free the return value.
188
188
  * @param uuid a string representing a Bluetooth UUID
189
189
  * @returns a string.
190
190
  */
191
- export function uuid_to_string(uuid: string | null): string | null
191
+ export function uuid_to_string(uuid: string): string
192
192
  /**
193
193
  * Returns whether the string is a valid Bluetooth address. This does not contact the device in any way.
194
194
  * @param bdaddr a string representing a Bluetooth address
195
195
  * @returns %TRUE if the address is valid, %FALSE if not.
196
196
  */
197
- export function verify_address(bdaddr: string | null): boolean
197
+ export function verify_address(bdaddr: string): boolean
198
198
  export module Client {
199
199
 
200
200
  // Signal callback interfaces
@@ -228,6 +228,14 @@ export module Client {
228
228
  * %TRUE if the default Bluetooth adapter is in setup mode (discoverable, and discovering).
229
229
  */
230
230
  default_adapter_setup_mode?: boolean | null
231
+ /**
232
+ * %TRUE if the default Bluetooth adapter is powered.
233
+ */
234
+ defaultAdapterPowered?: boolean | null
235
+ /**
236
+ * %TRUE if the default Bluetooth adapter is in setup mode (discoverable, and discovering).
237
+ */
238
+ defaultAdapterSetupMode?: boolean | null
231
239
  }
232
240
 
233
241
  }
@@ -240,31 +248,60 @@ export interface Client {
240
248
  * The D-Bus path of the default Bluetooth adapter or %NULL.
241
249
  */
242
250
  readonly default_adapter: string | null
251
+ /**
252
+ * The D-Bus path of the default Bluetooth adapter or %NULL.
253
+ */
254
+ readonly defaultAdapter: string | null
243
255
  /**
244
256
  * The address of the default Bluetooth adapter or %NULL.
245
257
  */
246
258
  readonly default_adapter_address: string | null
259
+ /**
260
+ * The address of the default Bluetooth adapter or %NULL.
261
+ */
262
+ readonly defaultAdapterAddress: string | null
247
263
  /**
248
264
  * The name of the default Bluetooth adapter or %NULL.
249
265
  */
250
266
  readonly default_adapter_name: string | null
267
+ /**
268
+ * The name of the default Bluetooth adapter or %NULL.
269
+ */
270
+ readonly defaultAdapterName: string | null
251
271
  /**
252
272
  * %TRUE if the default Bluetooth adapter is powered.
253
273
  */
254
274
  default_adapter_powered: boolean
275
+ /**
276
+ * %TRUE if the default Bluetooth adapter is powered.
277
+ */
278
+ defaultAdapterPowered: boolean
255
279
  /**
256
280
  * %TRUE if the default Bluetooth adapter is in setup mode (discoverable, and discovering).
257
281
  */
258
282
  default_adapter_setup_mode: boolean
283
+ /**
284
+ * %TRUE if the default Bluetooth adapter is in setup mode (discoverable, and discovering).
285
+ */
286
+ defaultAdapterSetupMode: boolean
259
287
  /**
260
288
  * The #BluetoothAdapterState of the default Bluetooth adapter. More precise than
261
289
  * #BluetoothClient:default-adapter-powered.
262
290
  */
263
291
  readonly default_adapter_state: AdapterState
292
+ /**
293
+ * The #BluetoothAdapterState of the default Bluetooth adapter. More precise than
294
+ * #BluetoothClient:default-adapter-powered.
295
+ */
296
+ readonly defaultAdapterState: AdapterState
264
297
  /**
265
298
  * The number of detected Bluetooth adapters.
266
299
  */
267
300
  readonly num_adapters: number
301
+ /**
302
+ * The number of detected Bluetooth adapters.
303
+ */
304
+ readonly numAdapters: number
268
305
 
269
306
  // Owm methods of GnomeBluetooth-3.0.GnomeBluetooth.Client
270
307
 
@@ -285,7 +322,7 @@ export interface Client {
285
322
  * @param cancellable optional #GCancellable object, %NULL to ignore
286
323
  * @param callback a #GAsyncReadyCallback to call when the connection is complete
287
324
  */
288
- connect_service(path: string | null, connect: boolean, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
325
+ connect_service(path: string, connect: boolean, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
289
326
  /**
290
327
  * Finishes the connection operation. See bluetooth_client_connect_service().
291
328
  * @param res a #GAsyncResult
@@ -391,6 +428,10 @@ export module Device {
391
428
  trusted?: boolean | null
392
429
  type?: Type | null
393
430
  uuids?: string[] | null
431
+ batteryLevel?: number | null
432
+ batteryPercentage?: number | null
433
+ batteryType?: BatteryType | null
434
+ legacyPairing?: boolean | null
394
435
  }
395
436
 
396
437
  }
@@ -402,12 +443,16 @@ export interface Device {
402
443
  address: string | null
403
444
  alias: string | null
404
445
  battery_level: number
446
+ batteryLevel: number
405
447
  battery_percentage: number
448
+ batteryPercentage: number
406
449
  battery_type: BatteryType
450
+ batteryType: BatteryType
407
451
  readonly connectable: boolean
408
452
  connected: boolean
409
453
  icon: string | null
410
454
  legacy_pairing: boolean
455
+ legacyPairing: boolean
411
456
  name: string | null
412
457
  paired: boolean
413
458
  proxy: Gio.DBusProxy
@@ -418,7 +463,7 @@ export interface Device {
418
463
  // Owm methods of GnomeBluetooth-3.0.GnomeBluetooth.Device
419
464
 
420
465
  dump(): void
421
- get_object_path(): string | null
466
+ get_object_path(): string
422
467
  to_string(): string | null
423
468
 
424
469
  // Class property signals of GnomeBluetooth-3.0.GnomeBluetooth.Device
@@ -177,26 +177,26 @@ function class_to_type(class_: number): Type
177
177
  * @param alias Remote device's name
178
178
  * @returns %TRUE on success, %FALSE on error.
179
179
  */
180
- function send_to_address(address: string | null, alias: string | null): boolean
180
+ function send_to_address(address: string, alias: string): boolean
181
181
  /**
182
182
  * Returns a human-readable string representation of `type` usable for display to users. Do not free the return value.
183
183
  * The returned string is already translated with gettext().
184
184
  * @param type a #BluetoothType
185
185
  * @returns a string.
186
186
  */
187
- function type_to_string(type: number): string | null
187
+ function type_to_string(type: number): string
188
188
  /**
189
189
  * Returns a string representing a human-readable (but not usable for display to users) version of the `uuid`. Do not free the return value.
190
190
  * @param uuid a string representing a Bluetooth UUID
191
191
  * @returns a string.
192
192
  */
193
- function uuid_to_string(uuid: string | null): string | null
193
+ function uuid_to_string(uuid: string): string
194
194
  /**
195
195
  * Returns whether the string is a valid Bluetooth address. This does not contact the device in any way.
196
196
  * @param bdaddr a string representing a Bluetooth address
197
197
  * @returns %TRUE if the address is valid, %FALSE if not.
198
198
  */
199
- function verify_address(bdaddr: string | null): boolean
199
+ function verify_address(bdaddr: string): boolean
200
200
  module Client {
201
201
 
202
202
  // Signal callback interfaces
@@ -230,6 +230,14 @@ module Client {
230
230
  * %TRUE if the default Bluetooth adapter is in setup mode (discoverable, and discovering).
231
231
  */
232
232
  default_adapter_setup_mode?: boolean | null
233
+ /**
234
+ * %TRUE if the default Bluetooth adapter is powered.
235
+ */
236
+ defaultAdapterPowered?: boolean | null
237
+ /**
238
+ * %TRUE if the default Bluetooth adapter is in setup mode (discoverable, and discovering).
239
+ */
240
+ defaultAdapterSetupMode?: boolean | null
233
241
  }
234
242
 
235
243
  }
@@ -242,31 +250,60 @@ interface Client {
242
250
  * The D-Bus path of the default Bluetooth adapter or %NULL.
243
251
  */
244
252
  readonly default_adapter: string | null
253
+ /**
254
+ * The D-Bus path of the default Bluetooth adapter or %NULL.
255
+ */
256
+ readonly defaultAdapter: string | null
245
257
  /**
246
258
  * The address of the default Bluetooth adapter or %NULL.
247
259
  */
248
260
  readonly default_adapter_address: string | null
261
+ /**
262
+ * The address of the default Bluetooth adapter or %NULL.
263
+ */
264
+ readonly defaultAdapterAddress: string | null
249
265
  /**
250
266
  * The name of the default Bluetooth adapter or %NULL.
251
267
  */
252
268
  readonly default_adapter_name: string | null
269
+ /**
270
+ * The name of the default Bluetooth adapter or %NULL.
271
+ */
272
+ readonly defaultAdapterName: string | null
253
273
  /**
254
274
  * %TRUE if the default Bluetooth adapter is powered.
255
275
  */
256
276
  default_adapter_powered: boolean
277
+ /**
278
+ * %TRUE if the default Bluetooth adapter is powered.
279
+ */
280
+ defaultAdapterPowered: boolean
257
281
  /**
258
282
  * %TRUE if the default Bluetooth adapter is in setup mode (discoverable, and discovering).
259
283
  */
260
284
  default_adapter_setup_mode: boolean
285
+ /**
286
+ * %TRUE if the default Bluetooth adapter is in setup mode (discoverable, and discovering).
287
+ */
288
+ defaultAdapterSetupMode: boolean
261
289
  /**
262
290
  * The #BluetoothAdapterState of the default Bluetooth adapter. More precise than
263
291
  * #BluetoothClient:default-adapter-powered.
264
292
  */
265
293
  readonly default_adapter_state: AdapterState
294
+ /**
295
+ * The #BluetoothAdapterState of the default Bluetooth adapter. More precise than
296
+ * #BluetoothClient:default-adapter-powered.
297
+ */
298
+ readonly defaultAdapterState: AdapterState
266
299
  /**
267
300
  * The number of detected Bluetooth adapters.
268
301
  */
269
302
  readonly num_adapters: number
303
+ /**
304
+ * The number of detected Bluetooth adapters.
305
+ */
306
+ readonly numAdapters: number
270
307
 
271
308
  // Owm methods of GnomeBluetooth-3.0.GnomeBluetooth.Client
272
309
 
@@ -287,7 +324,7 @@ interface Client {
287
324
  * @param cancellable optional #GCancellable object, %NULL to ignore
288
325
  * @param callback a #GAsyncReadyCallback to call when the connection is complete
289
326
  */
290
- connect_service(path: string | null, connect: boolean, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
327
+ connect_service(path: string, connect: boolean, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
291
328
  /**
292
329
  * Finishes the connection operation. See bluetooth_client_connect_service().
293
330
  * @param res a #GAsyncResult
@@ -393,6 +430,10 @@ module Device {
393
430
  trusted?: boolean | null
394
431
  type?: Type | null
395
432
  uuids?: string[] | null
433
+ batteryLevel?: number | null
434
+ batteryPercentage?: number | null
435
+ batteryType?: BatteryType | null
436
+ legacyPairing?: boolean | null
396
437
  }
397
438
 
398
439
  }
@@ -404,12 +445,16 @@ interface Device {
404
445
  address: string | null
405
446
  alias: string | null
406
447
  battery_level: number
448
+ batteryLevel: number
407
449
  battery_percentage: number
450
+ batteryPercentage: number
408
451
  battery_type: BatteryType
452
+ batteryType: BatteryType
409
453
  readonly connectable: boolean
410
454
  connected: boolean
411
455
  icon: string | null
412
456
  legacy_pairing: boolean
457
+ legacyPairing: boolean
413
458
  name: string | null
414
459
  paired: boolean
415
460
  proxy: Gio.DBusProxy
@@ -420,7 +465,7 @@ interface Device {
420
465
  // Owm methods of GnomeBluetooth-3.0.GnomeBluetooth.Device
421
466
 
422
467
  dump(): void
423
- get_object_path(): string | null
468
+ get_object_path(): string
424
469
  to_string(): string | null
425
470
 
426
471
  // Class property signals of GnomeBluetooth-3.0.GnomeBluetooth.Device
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gnomebluetooth-3.0",
3
- "version": "3.0.0-3.2.5",
3
+ "version": "3.0.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for GnomeBluetooth-3.0, generated from library version 3.0.0",
5
5
  "type": "module",
6
6
  "module": "gnomebluetooth-3.0.js",
@@ -25,10 +25,10 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gnomebluetooth-3.0.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gio-2.0": "^2.78.0-3.2.5",
29
- "@girs/gjs": "^3.2.5",
30
- "@girs/glib-2.0": "^2.78.0-3.2.5",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.5"
28
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
29
+ "@girs/gjs": "^3.2.7",
30
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
31
+ "@girs/gobject-2.0": "^2.78.0-3.2.7"
32
32
  },
33
33
  "devDependencies": {
34
34
  "typescript": "*"