@girs/gnomebluetooth-3.0 3.0.0-3.2.6 → 3.0.0-3.2.8
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 +1 -1
- package/gnomebluetooth-3.0-ambient.js +2 -0
- package/gnomebluetooth-3.0-import.js +3 -0
- package/gnomebluetooth-3.0.d.cts +10 -55
- package/gnomebluetooth-3.0.d.ts +10 -55
- package/package.json +14 -8
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
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.
|
|
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.8.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/gnomebluetooth-3.0.d.cts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
197
|
+
export function verify_address(bdaddr: string): boolean
|
|
198
198
|
export module Client {
|
|
199
199
|
|
|
200
200
|
// Signal callback interfaces
|
|
@@ -220,14 +220,6 @@ export module Client {
|
|
|
220
220
|
|
|
221
221
|
// Own constructor properties of GnomeBluetooth-3.0.GnomeBluetooth.Client
|
|
222
222
|
|
|
223
|
-
/**
|
|
224
|
-
* %TRUE if the default Bluetooth adapter is powered.
|
|
225
|
-
*/
|
|
226
|
-
default_adapter_powered?: boolean | null
|
|
227
|
-
/**
|
|
228
|
-
* %TRUE if the default Bluetooth adapter is in setup mode (discoverable, and discovering).
|
|
229
|
-
*/
|
|
230
|
-
default_adapter_setup_mode?: boolean | null
|
|
231
223
|
/**
|
|
232
224
|
* %TRUE if the default Bluetooth adapter is powered.
|
|
233
225
|
*/
|
|
@@ -244,60 +236,31 @@ export interface Client {
|
|
|
244
236
|
|
|
245
237
|
// Own properties of GnomeBluetooth-3.0.GnomeBluetooth.Client
|
|
246
238
|
|
|
247
|
-
/**
|
|
248
|
-
* The D-Bus path of the default Bluetooth adapter or %NULL.
|
|
249
|
-
*/
|
|
250
|
-
readonly default_adapter: string | null
|
|
251
239
|
/**
|
|
252
240
|
* The D-Bus path of the default Bluetooth adapter or %NULL.
|
|
253
241
|
*/
|
|
254
242
|
readonly defaultAdapter: string | null
|
|
255
|
-
/**
|
|
256
|
-
* The address of the default Bluetooth adapter or %NULL.
|
|
257
|
-
*/
|
|
258
|
-
readonly default_adapter_address: string | null
|
|
259
243
|
/**
|
|
260
244
|
* The address of the default Bluetooth adapter or %NULL.
|
|
261
245
|
*/
|
|
262
246
|
readonly defaultAdapterAddress: string | null
|
|
263
|
-
/**
|
|
264
|
-
* The name of the default Bluetooth adapter or %NULL.
|
|
265
|
-
*/
|
|
266
|
-
readonly default_adapter_name: string | null
|
|
267
247
|
/**
|
|
268
248
|
* The name of the default Bluetooth adapter or %NULL.
|
|
269
249
|
*/
|
|
270
250
|
readonly defaultAdapterName: string | null
|
|
271
|
-
/**
|
|
272
|
-
* %TRUE if the default Bluetooth adapter is powered.
|
|
273
|
-
*/
|
|
274
|
-
default_adapter_powered: boolean
|
|
275
251
|
/**
|
|
276
252
|
* %TRUE if the default Bluetooth adapter is powered.
|
|
277
253
|
*/
|
|
278
254
|
defaultAdapterPowered: boolean
|
|
279
|
-
/**
|
|
280
|
-
* %TRUE if the default Bluetooth adapter is in setup mode (discoverable, and discovering).
|
|
281
|
-
*/
|
|
282
|
-
default_adapter_setup_mode: boolean
|
|
283
255
|
/**
|
|
284
256
|
* %TRUE if the default Bluetooth adapter is in setup mode (discoverable, and discovering).
|
|
285
257
|
*/
|
|
286
258
|
defaultAdapterSetupMode: boolean
|
|
287
|
-
/**
|
|
288
|
-
* The #BluetoothAdapterState of the default Bluetooth adapter. More precise than
|
|
289
|
-
* #BluetoothClient:default-adapter-powered.
|
|
290
|
-
*/
|
|
291
|
-
readonly default_adapter_state: AdapterState
|
|
292
259
|
/**
|
|
293
260
|
* The #BluetoothAdapterState of the default Bluetooth adapter. More precise than
|
|
294
261
|
* #BluetoothClient:default-adapter-powered.
|
|
295
262
|
*/
|
|
296
263
|
readonly defaultAdapterState: AdapterState
|
|
297
|
-
/**
|
|
298
|
-
* The number of detected Bluetooth adapters.
|
|
299
|
-
*/
|
|
300
|
-
readonly num_adapters: number
|
|
301
264
|
/**
|
|
302
265
|
* The number of detected Bluetooth adapters.
|
|
303
266
|
*/
|
|
@@ -322,7 +285,7 @@ export interface Client {
|
|
|
322
285
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
323
286
|
* @param callback a #GAsyncReadyCallback to call when the connection is complete
|
|
324
287
|
*/
|
|
325
|
-
connect_service(path: string
|
|
288
|
+
connect_service(path: string, connect: boolean, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
326
289
|
/**
|
|
327
290
|
* Finishes the connection operation. See bluetooth_client_connect_service().
|
|
328
291
|
* @param res a #GAsyncResult
|
|
@@ -416,22 +379,18 @@ export module Device {
|
|
|
416
379
|
|
|
417
380
|
address?: string | null
|
|
418
381
|
alias?: string | null
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
382
|
+
batteryLevel?: number | null
|
|
383
|
+
batteryPercentage?: number | null
|
|
384
|
+
batteryType?: BatteryType | null
|
|
422
385
|
connected?: boolean | null
|
|
423
386
|
icon?: string | null
|
|
424
|
-
|
|
387
|
+
legacyPairing?: boolean | null
|
|
425
388
|
name?: string | null
|
|
426
389
|
paired?: boolean | null
|
|
427
390
|
proxy?: Gio.DBusProxy | null
|
|
428
391
|
trusted?: boolean | null
|
|
429
392
|
type?: Type | null
|
|
430
393
|
uuids?: string[] | null
|
|
431
|
-
batteryLevel?: number | null
|
|
432
|
-
batteryPercentage?: number | null
|
|
433
|
-
batteryType?: BatteryType | null
|
|
434
|
-
legacyPairing?: boolean | null
|
|
435
394
|
}
|
|
436
395
|
|
|
437
396
|
}
|
|
@@ -442,16 +401,12 @@ export interface Device {
|
|
|
442
401
|
|
|
443
402
|
address: string | null
|
|
444
403
|
alias: string | null
|
|
445
|
-
battery_level: number
|
|
446
404
|
batteryLevel: number
|
|
447
|
-
battery_percentage: number
|
|
448
405
|
batteryPercentage: number
|
|
449
|
-
battery_type: BatteryType
|
|
450
406
|
batteryType: BatteryType
|
|
451
407
|
readonly connectable: boolean
|
|
452
408
|
connected: boolean
|
|
453
409
|
icon: string | null
|
|
454
|
-
legacy_pairing: boolean
|
|
455
410
|
legacyPairing: boolean
|
|
456
411
|
name: string | null
|
|
457
412
|
paired: boolean
|
|
@@ -463,7 +418,7 @@ export interface Device {
|
|
|
463
418
|
// Owm methods of GnomeBluetooth-3.0.GnomeBluetooth.Device
|
|
464
419
|
|
|
465
420
|
dump(): void
|
|
466
|
-
get_object_path(): string
|
|
421
|
+
get_object_path(): string
|
|
467
422
|
to_string(): string | null
|
|
468
423
|
|
|
469
424
|
// Class property signals of GnomeBluetooth-3.0.GnomeBluetooth.Device
|
package/gnomebluetooth-3.0.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
199
|
+
function verify_address(bdaddr: string): boolean
|
|
200
200
|
module Client {
|
|
201
201
|
|
|
202
202
|
// Signal callback interfaces
|
|
@@ -222,14 +222,6 @@ module Client {
|
|
|
222
222
|
|
|
223
223
|
// Own constructor properties of GnomeBluetooth-3.0.GnomeBluetooth.Client
|
|
224
224
|
|
|
225
|
-
/**
|
|
226
|
-
* %TRUE if the default Bluetooth adapter is powered.
|
|
227
|
-
*/
|
|
228
|
-
default_adapter_powered?: boolean | null
|
|
229
|
-
/**
|
|
230
|
-
* %TRUE if the default Bluetooth adapter is in setup mode (discoverable, and discovering).
|
|
231
|
-
*/
|
|
232
|
-
default_adapter_setup_mode?: boolean | null
|
|
233
225
|
/**
|
|
234
226
|
* %TRUE if the default Bluetooth adapter is powered.
|
|
235
227
|
*/
|
|
@@ -246,60 +238,31 @@ interface Client {
|
|
|
246
238
|
|
|
247
239
|
// Own properties of GnomeBluetooth-3.0.GnomeBluetooth.Client
|
|
248
240
|
|
|
249
|
-
/**
|
|
250
|
-
* The D-Bus path of the default Bluetooth adapter or %NULL.
|
|
251
|
-
*/
|
|
252
|
-
readonly default_adapter: string | null
|
|
253
241
|
/**
|
|
254
242
|
* The D-Bus path of the default Bluetooth adapter or %NULL.
|
|
255
243
|
*/
|
|
256
244
|
readonly defaultAdapter: string | null
|
|
257
|
-
/**
|
|
258
|
-
* The address of the default Bluetooth adapter or %NULL.
|
|
259
|
-
*/
|
|
260
|
-
readonly default_adapter_address: string | null
|
|
261
245
|
/**
|
|
262
246
|
* The address of the default Bluetooth adapter or %NULL.
|
|
263
247
|
*/
|
|
264
248
|
readonly defaultAdapterAddress: string | null
|
|
265
|
-
/**
|
|
266
|
-
* The name of the default Bluetooth adapter or %NULL.
|
|
267
|
-
*/
|
|
268
|
-
readonly default_adapter_name: string | null
|
|
269
249
|
/**
|
|
270
250
|
* The name of the default Bluetooth adapter or %NULL.
|
|
271
251
|
*/
|
|
272
252
|
readonly defaultAdapterName: string | null
|
|
273
|
-
/**
|
|
274
|
-
* %TRUE if the default Bluetooth adapter is powered.
|
|
275
|
-
*/
|
|
276
|
-
default_adapter_powered: boolean
|
|
277
253
|
/**
|
|
278
254
|
* %TRUE if the default Bluetooth adapter is powered.
|
|
279
255
|
*/
|
|
280
256
|
defaultAdapterPowered: boolean
|
|
281
|
-
/**
|
|
282
|
-
* %TRUE if the default Bluetooth adapter is in setup mode (discoverable, and discovering).
|
|
283
|
-
*/
|
|
284
|
-
default_adapter_setup_mode: boolean
|
|
285
257
|
/**
|
|
286
258
|
* %TRUE if the default Bluetooth adapter is in setup mode (discoverable, and discovering).
|
|
287
259
|
*/
|
|
288
260
|
defaultAdapterSetupMode: boolean
|
|
289
|
-
/**
|
|
290
|
-
* The #BluetoothAdapterState of the default Bluetooth adapter. More precise than
|
|
291
|
-
* #BluetoothClient:default-adapter-powered.
|
|
292
|
-
*/
|
|
293
|
-
readonly default_adapter_state: AdapterState
|
|
294
261
|
/**
|
|
295
262
|
* The #BluetoothAdapterState of the default Bluetooth adapter. More precise than
|
|
296
263
|
* #BluetoothClient:default-adapter-powered.
|
|
297
264
|
*/
|
|
298
265
|
readonly defaultAdapterState: AdapterState
|
|
299
|
-
/**
|
|
300
|
-
* The number of detected Bluetooth adapters.
|
|
301
|
-
*/
|
|
302
|
-
readonly num_adapters: number
|
|
303
266
|
/**
|
|
304
267
|
* The number of detected Bluetooth adapters.
|
|
305
268
|
*/
|
|
@@ -324,7 +287,7 @@ interface Client {
|
|
|
324
287
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
325
288
|
* @param callback a #GAsyncReadyCallback to call when the connection is complete
|
|
326
289
|
*/
|
|
327
|
-
connect_service(path: string
|
|
290
|
+
connect_service(path: string, connect: boolean, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
328
291
|
/**
|
|
329
292
|
* Finishes the connection operation. See bluetooth_client_connect_service().
|
|
330
293
|
* @param res a #GAsyncResult
|
|
@@ -418,22 +381,18 @@ module Device {
|
|
|
418
381
|
|
|
419
382
|
address?: string | null
|
|
420
383
|
alias?: string | null
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
384
|
+
batteryLevel?: number | null
|
|
385
|
+
batteryPercentage?: number | null
|
|
386
|
+
batteryType?: BatteryType | null
|
|
424
387
|
connected?: boolean | null
|
|
425
388
|
icon?: string | null
|
|
426
|
-
|
|
389
|
+
legacyPairing?: boolean | null
|
|
427
390
|
name?: string | null
|
|
428
391
|
paired?: boolean | null
|
|
429
392
|
proxy?: Gio.DBusProxy | null
|
|
430
393
|
trusted?: boolean | null
|
|
431
394
|
type?: Type | null
|
|
432
395
|
uuids?: string[] | null
|
|
433
|
-
batteryLevel?: number | null
|
|
434
|
-
batteryPercentage?: number | null
|
|
435
|
-
batteryType?: BatteryType | null
|
|
436
|
-
legacyPairing?: boolean | null
|
|
437
396
|
}
|
|
438
397
|
|
|
439
398
|
}
|
|
@@ -444,16 +403,12 @@ interface Device {
|
|
|
444
403
|
|
|
445
404
|
address: string | null
|
|
446
405
|
alias: string | null
|
|
447
|
-
battery_level: number
|
|
448
406
|
batteryLevel: number
|
|
449
|
-
battery_percentage: number
|
|
450
407
|
batteryPercentage: number
|
|
451
|
-
battery_type: BatteryType
|
|
452
408
|
batteryType: BatteryType
|
|
453
409
|
readonly connectable: boolean
|
|
454
410
|
connected: boolean
|
|
455
411
|
icon: string | null
|
|
456
|
-
legacy_pairing: boolean
|
|
457
412
|
legacyPairing: boolean
|
|
458
413
|
name: string | null
|
|
459
414
|
paired: boolean
|
|
@@ -465,7 +420,7 @@ interface Device {
|
|
|
465
420
|
// Owm methods of GnomeBluetooth-3.0.GnomeBluetooth.Device
|
|
466
421
|
|
|
467
422
|
dump(): void
|
|
468
|
-
get_object_path(): string
|
|
423
|
+
get_object_path(): string
|
|
469
424
|
to_string(): string | null
|
|
470
425
|
|
|
471
426
|
// Class property signals of GnomeBluetooth-3.0.GnomeBluetooth.Device
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gnomebluetooth-3.0",
|
|
3
|
-
"version": "3.0.0-3.2.
|
|
3
|
+
"version": "3.0.0-3.2.8",
|
|
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",
|
|
7
7
|
"main": "gnomebluetooth-3.0.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
"./ambient":
|
|
10
|
-
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./gnomebluetooth-3.0-ambient.d.ts",
|
|
11
|
+
"default": "./gnomebluetooth-3.0-ambient.js"
|
|
12
|
+
},
|
|
13
|
+
"./import": {
|
|
14
|
+
"types": "./gnomebluetooth-3.0-import.d.ts",
|
|
15
|
+
"default": "./gnomebluetooth-3.0-import.js"
|
|
16
|
+
},
|
|
11
17
|
".": {
|
|
12
18
|
"import": {
|
|
13
19
|
"types": "./gnomebluetooth-3.0.d.ts",
|
|
@@ -25,10 +31,10 @@
|
|
|
25
31
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gnomebluetooth-3.0.d.cts"
|
|
26
32
|
},
|
|
27
33
|
"dependencies": {
|
|
28
|
-
"@girs/gio-2.0": "^2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.
|
|
34
|
+
"@girs/gio-2.0": "^2.77.0-3.2.8",
|
|
35
|
+
"@girs/gjs": "^3.2.8",
|
|
36
|
+
"@girs/glib-2.0": "^2.77.0-3.2.8",
|
|
37
|
+
"@girs/gobject-2.0": "^2.77.0-3.2.8"
|
|
32
38
|
},
|
|
33
39
|
"devDependencies": {
|
|
34
40
|
"typescript": "*"
|
|
@@ -45,7 +51,7 @@
|
|
|
45
51
|
"license": "MIT",
|
|
46
52
|
"repository": {
|
|
47
53
|
"type": "git",
|
|
48
|
-
"url": "git+https://github.com/gjsify/
|
|
54
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
49
55
|
},
|
|
50
56
|
"bugs": {
|
|
51
57
|
"url": "https://github.com/gjsify/ts-for-gir/issues"
|