@girs/trackerminer-2.0 2.0.0-3.2.6 → 2.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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/trackerminer-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for TrackerMiner-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for TrackerMiner-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.8.
9
9
 
10
10
 
11
11
  ## Install
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/trackerminer-2.0",
3
- "version": "2.0.0-3.2.6",
3
+ "version": "2.0.0-3.2.8",
4
4
  "description": "GJS TypeScript type definitions for TrackerMiner-2.0, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "trackerminer-2.0.js",
7
7
  "main": "trackerminer-2.0.js",
8
8
  "exports": {
9
- "./ambient": "./trackerminer-2.0-ambient.d.ts",
10
- "./import": "./trackerminer-2.0-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./trackerminer-2.0-ambient.d.ts",
11
+ "default": "./trackerminer-2.0-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./trackerminer-2.0-import.d.ts",
15
+ "default": "./trackerminer-2.0-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./trackerminer-2.0.d.ts",
@@ -25,10 +31,10 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit trackerminer-2.0.d.cts"
26
32
  },
27
33
  "dependencies": {
28
- "@girs/gio-2.0": "^2.78.0-3.2.6",
29
- "@girs/gjs": "^3.2.6",
30
- "@girs/glib-2.0": "^2.78.0-3.2.6",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.6"
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/types.git"
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"
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
@@ -215,25 +215,25 @@ export enum DirectoryFlags {
215
215
  * The name of the D-Bus interface to use for all data miners that
216
216
  * inter-operate with Tracker.
217
217
  */
218
- export const MINER_DBUS_INTERFACE: string | null
218
+ export const MINER_DBUS_INTERFACE: string
219
219
  /**
220
220
  * D-Bus name prefix to use for all data miners. This allows custom
221
221
  * miners to be written using `TRACKER_MINER_DBUS_NAME_PREFIX` + "Files" for
222
222
  * example and would show up on D-Bus under
223
223
  * "org.freedesktop.Tracker1.Miner.Files".
224
224
  */
225
- export const MINER_DBUS_NAME_PREFIX: string | null
225
+ export const MINER_DBUS_NAME_PREFIX: string
226
226
  /**
227
227
  * D-Bus path prefix to use for all data miners. This allows custom
228
228
  * miners to be written using `TRACKER_MINER_DBUS_PATH_PREFIX` + "Files" for
229
229
  * example and would show up on D-Bus under
230
230
  * "/org/freedesktop/Tracker1/Miner/Files".
231
231
  */
232
- export const MINER_DBUS_PATH_PREFIX: string | null
232
+ export const MINER_DBUS_PATH_PREFIX: string
233
233
  /**
234
234
  * Used as the domain for any #GErrors reported by `TrackerMiner` objects.
235
235
  */
236
- export const MINER_ERROR_DOMAIN: string | null
236
+ export const MINER_ERROR_DOMAIN: string
237
237
  export module DataProvider {
238
238
 
239
239
  // Constructor properties interface
@@ -267,7 +267,7 @@ export interface DataProvider {
267
267
  * @param cancellable optional #GCancellable object, %NULL to ignore.
268
268
  * @returns a #GFileEnumerator or %NULL on failure. This must be freed with g_object_unref().
269
269
  */
270
- begin(url: Gio.File, attributes: string | null, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Gio.FileEnumerator
270
+ begin(url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Gio.FileEnumerator
271
271
  /**
272
272
  * Precisely the same operation as tracker_data_provider_begin()
273
273
  * is performing, but asynchronously.
@@ -296,7 +296,7 @@ export interface DataProvider {
296
296
  * @param cancellable optional #GCancellable object, %NULL to ignore
297
297
  * @param callback a #GAsyncReadyCallback to call when the request is satisfied
298
298
  */
299
- begin_async(url: Gio.File, attributes: string | null, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
299
+ begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
300
300
 
301
301
  // Overloads of begin_async
302
302
 
@@ -330,7 +330,7 @@ export interface DataProvider {
330
330
  * @param cancellable optional #GCancellable object, %NULL to ignore
331
331
  * @returns A Promise of: a #GFileEnumerator or %NULL on failure. This must be freed with g_object_unref().
332
332
  */
333
- begin_async(url: Gio.File, attributes: string | null, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.FileEnumerator>
333
+ begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.FileEnumerator>
334
334
  /**
335
335
  * Finishes the asynchronous operation started with
336
336
  * tracker_data_provider_begin_async().
@@ -362,7 +362,7 @@ export interface DataProvider {
362
362
  * @param cancellable optional #GCancellable object, %NULL to ignore.
363
363
  * @returns a #GFileEnumerator or %NULL on failure. This must be freed with g_object_unref().
364
364
  */
365
- vfunc_begin(url: Gio.File, attributes: string | null, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Gio.FileEnumerator
365
+ vfunc_begin(url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Gio.FileEnumerator
366
366
  /**
367
367
  * Precisely the same operation as tracker_data_provider_begin()
368
368
  * is performing, but asynchronously.
@@ -392,7 +392,7 @@ export interface DataProvider {
392
392
  * @param cancellable optional #GCancellable object, %NULL to ignore
393
393
  * @param callback a #GAsyncReadyCallback to call when the request is satisfied
394
394
  */
395
- vfunc_begin_async(url: Gio.File, attributes: string | null, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
395
+ vfunc_begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
396
396
  /**
397
397
  * Finishes the asynchronous operation started with
398
398
  * tracker_data_provider_begin_async().
@@ -452,10 +452,6 @@ export module Decorator {
452
452
 
453
453
  // Own constructor properties of TrackerMiner-2.0.TrackerMiner.Decorator
454
454
 
455
- class_names?: string[] | null
456
- commit_batch_size?: number | null
457
- data_source?: string | null
458
- priority_rdf_types?: string[] | null
459
455
  classNames?: string[] | null
460
456
  commitBatchSize?: number | null
461
457
  dataSource?: string | null
@@ -468,13 +464,9 @@ export interface Decorator extends Gio.Initable {
468
464
 
469
465
  // Own properties of TrackerMiner-2.0.TrackerMiner.Decorator
470
466
 
471
- class_names: string[]
472
467
  classNames: string[]
473
- commit_batch_size: number
474
468
  commitBatchSize: number
475
- readonly data_source: string | null
476
469
  readonly dataSource: string | null
477
- priority_rdf_types: string[]
478
470
  priorityRdfTypes: string[]
479
471
 
480
472
  // Own fields of TrackerMiner-2.0.TrackerMiner.Decorator
@@ -503,7 +495,7 @@ export interface Decorator extends Gio.Initable {
503
495
  * so it's clear WHO has extracted this extended metadata.
504
496
  * @returns a const gchar* or #NULL if an error happened.
505
497
  */
506
- get_data_source(): string | null
498
+ get_data_source(): string
507
499
  /**
508
500
  * Get the number of items left in the queue to be processed. This
509
501
  * indicates content that may already exist in Tracker but is waiting
@@ -546,7 +538,7 @@ export interface Decorator extends Gio.Initable {
546
538
  * standard time it would take to index content.
547
539
  * @param rdf_types a string array of rdf types
548
540
  */
549
- set_priority_rdf_types(rdf_types: string | null): void
541
+ set_priority_rdf_types(rdf_types: string): void
550
542
 
551
543
  // Own virtual methods of TrackerMiner-2.0.TrackerMiner.Decorator
552
544
 
@@ -725,9 +717,8 @@ export module IndexingTree {
725
717
 
726
718
  // Own constructor properties of TrackerMiner-2.0.TrackerMiner.IndexingTree
727
719
 
728
- filter_hidden?: boolean | null
729
- root?: Gio.File | null
730
720
  filterHidden?: boolean | null
721
+ root?: Gio.File | null
731
722
  }
732
723
 
733
724
  }
@@ -736,7 +727,6 @@ export interface IndexingTree {
736
727
 
737
728
  // Own properties of TrackerMiner-2.0.TrackerMiner.IndexingTree
738
729
 
739
- filter_hidden: boolean
740
730
  filterHidden: boolean
741
731
  readonly root: Gio.File
742
732
 
@@ -759,7 +749,7 @@ export interface IndexingTree {
759
749
  * @param filter filter type
760
750
  * @param glob_string glob-style string for the filter
761
751
  */
762
- add_filter(filter: FilterType, glob_string: string | null): void
752
+ add_filter(filter: FilterType, glob_string: string): void
763
753
  /**
764
754
  * Clears all filters of a given type.
765
755
  * @param type filter type to clear
@@ -1021,9 +1011,8 @@ export module Miner {
1021
1011
  // Own constructor properties of TrackerMiner-2.0.TrackerMiner.Miner
1022
1012
 
1023
1013
  progress?: number | null
1024
- remaining_time?: number | null
1025
- status?: string | null
1026
1014
  remainingTime?: number | null
1015
+ status?: string | null
1027
1016
  }
1028
1017
 
1029
1018
  }
@@ -1033,7 +1022,6 @@ export interface Miner extends Gio.Initable {
1033
1022
  // Own properties of TrackerMiner-2.0.TrackerMiner.Miner
1034
1023
 
1035
1024
  progress: number
1036
- remaining_time: number
1037
1025
  remainingTime: number
1038
1026
  status: string | null
1039
1027
 
@@ -1081,7 +1069,7 @@ export interface Miner extends Gio.Initable {
1081
1069
  // Own virtual methods of TrackerMiner-2.0.TrackerMiner.Miner
1082
1070
 
1083
1071
  vfunc_paused(): void
1084
- vfunc_progress(status: string | null, progress: number, remaining_time: number): void
1072
+ vfunc_progress(status: string, progress: number, remaining_time: number): void
1085
1073
  vfunc_resumed(): void
1086
1074
  vfunc_started(): void
1087
1075
  vfunc_stopped(): void
@@ -1204,14 +1192,11 @@ export module MinerFS {
1204
1192
 
1205
1193
  // Own constructor properties of TrackerMiner-2.0.TrackerMiner.MinerFS
1206
1194
 
1207
- data_provider?: DataProvider | null
1208
- processing_pool_ready_limit?: number | null
1209
- processing_pool_wait_limit?: number | null
1210
- root?: Gio.File | null
1211
- throttle?: number | null
1212
1195
  dataProvider?: DataProvider | null
1213
1196
  processingPoolReadyLimit?: number | null
1214
1197
  processingPoolWaitLimit?: number | null
1198
+ root?: Gio.File | null
1199
+ throttle?: number | null
1215
1200
  }
1216
1201
 
1217
1202
  }
@@ -1220,11 +1205,8 @@ export interface MinerFS extends Gio.Initable {
1220
1205
 
1221
1206
  // Own properties of TrackerMiner-2.0.TrackerMiner.MinerFS
1222
1207
 
1223
- readonly data_provider: DataProvider
1224
1208
  readonly dataProvider: DataProvider
1225
- processing_pool_ready_limit: number
1226
1209
  processingPoolReadyLimit: number
1227
- processing_pool_wait_limit: number
1228
1210
  processingPoolWaitLimit: number
1229
1211
  readonly root: Gio.File
1230
1212
  throttle: number
@@ -1494,11 +1476,9 @@ export module MinerProxy {
1494
1476
 
1495
1477
  // Own constructor properties of TrackerMiner-2.0.TrackerMiner.MinerProxy
1496
1478
 
1497
- dbus_connection?: Gio.DBusConnection | null
1498
- dbus_path?: string | null
1499
- miner?: Miner | null
1500
1479
  dbusConnection?: Gio.DBusConnection | null
1501
1480
  dbusPath?: string | null
1481
+ miner?: Miner | null
1502
1482
  }
1503
1483
 
1504
1484
  }
@@ -1507,9 +1487,7 @@ export interface MinerProxy extends Gio.Initable {
1507
1487
 
1508
1488
  // Own properties of TrackerMiner-2.0.TrackerMiner.MinerProxy
1509
1489
 
1510
- readonly dbus_connection: Gio.DBusConnection
1511
1490
  readonly dbusConnection: Gio.DBusConnection
1512
- readonly dbus_path: string | null
1513
1491
  readonly dbusPath: string | null
1514
1492
  readonly miner: Miner
1515
1493
 
@@ -1544,8 +1522,8 @@ export class MinerProxy extends GObject.Object {
1544
1522
  // Constructors of TrackerMiner-2.0.TrackerMiner.MinerProxy
1545
1523
 
1546
1524
  constructor(config?: MinerProxy.ConstructorProperties)
1547
- constructor(miner: Miner, connection: Gio.DBusConnection, dbus_path: string | null, cancellable: Gio.Cancellable | null)
1548
- static new(miner: Miner, connection: Gio.DBusConnection, dbus_path: string | null, cancellable: Gio.Cancellable | null): MinerProxy
1525
+ constructor(miner: Miner, connection: Gio.DBusConnection, dbus_path: string, cancellable: Gio.Cancellable | null)
1526
+ static new(miner: Miner, connection: Gio.DBusConnection, dbus_path: string, cancellable: Gio.Cancellable | null): MinerProxy
1549
1527
  _init(config?: MinerProxy.ConstructorProperties): void
1550
1528
  }
1551
1529
 
@@ -1558,8 +1536,8 @@ export interface DataProviderIface {
1558
1536
  * @field
1559
1537
  */
1560
1538
  g_iface: GObject.TypeInterface
1561
- begin: (data_provider: DataProvider, url: Gio.File, attributes: string | null, flags: DirectoryFlags, cancellable: Gio.Cancellable | null) => Gio.FileEnumerator
1562
- begin_async: (data_provider: DataProvider, url: Gio.File, attributes: string | null, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
1539
+ begin: (data_provider: DataProvider, url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null) => Gio.FileEnumerator
1540
+ begin_async: (data_provider: DataProvider, url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
1563
1541
  begin_finish: (data_provider: DataProvider, result: Gio.AsyncResult) => Gio.FileEnumerator
1564
1542
  }
1565
1543
 
@@ -1658,7 +1636,7 @@ export interface DecoratorInfo {
1658
1636
  * ¹: http://en.wikipedia.org/wiki/MIME
1659
1637
  * @returns the MIME type for #TrackerDecoratorInfo on success or #NULL on error.
1660
1638
  */
1661
- get_mimetype(): string | null
1639
+ get_mimetype(): string
1662
1640
  /**
1663
1641
  * Get the #GTask associated with retrieving extended metadata and
1664
1642
  * information for a URN in Tracker.
@@ -1674,13 +1652,13 @@ export interface DecoratorInfo {
1674
1652
  * with a resource in the database. For example, 'file:///tmp/foo.txt'.
1675
1653
  * @returns the URL for #TrackerDecoratorInfo on success or #NULL on error.
1676
1654
  */
1677
- get_url(): string | null
1655
+ get_url(): string
1678
1656
  /**
1679
1657
  * A URN is a Uniform Resource Name and should be a unique identifier
1680
1658
  * for a resource in the database.
1681
1659
  * @returns the URN for #TrackerDecoratorInfo on success or #NULL on error.
1682
1660
  */
1683
- get_urn(): string | null
1661
+ get_urn(): string
1684
1662
  /**
1685
1663
  * Increases the reference count of `info` by 1.
1686
1664
  * @returns the same @info passed in, or %NULL on error.
@@ -1744,7 +1722,7 @@ export interface MinerClass {
1744
1722
  stopped: (miner: Miner) => void
1745
1723
  paused: (miner: Miner) => void
1746
1724
  resumed: (miner: Miner) => void
1747
- progress: (miner: Miner, status: string | null, progress: number, remaining_time: number) => void
1725
+ progress: (miner: Miner, status: string, progress: number, remaining_time: number) => void
1748
1726
  /**
1749
1727
  * Reserved for future API improvements.
1750
1728
  * @field
@@ -217,25 +217,25 @@ enum DirectoryFlags {
217
217
  * The name of the D-Bus interface to use for all data miners that
218
218
  * inter-operate with Tracker.
219
219
  */
220
- const MINER_DBUS_INTERFACE: string | null
220
+ const MINER_DBUS_INTERFACE: string
221
221
  /**
222
222
  * D-Bus name prefix to use for all data miners. This allows custom
223
223
  * miners to be written using `TRACKER_MINER_DBUS_NAME_PREFIX` + "Files" for
224
224
  * example and would show up on D-Bus under
225
225
  * &quot;org.freedesktop.Tracker1.Miner.Files&quot;.
226
226
  */
227
- const MINER_DBUS_NAME_PREFIX: string | null
227
+ const MINER_DBUS_NAME_PREFIX: string
228
228
  /**
229
229
  * D-Bus path prefix to use for all data miners. This allows custom
230
230
  * miners to be written using `TRACKER_MINER_DBUS_PATH_PREFIX` + "Files" for
231
231
  * example and would show up on D-Bus under
232
232
  * &quot;/org/freedesktop/Tracker1/Miner/Files&quot;.
233
233
  */
234
- const MINER_DBUS_PATH_PREFIX: string | null
234
+ const MINER_DBUS_PATH_PREFIX: string
235
235
  /**
236
236
  * Used as the domain for any #GErrors reported by `TrackerMiner` objects.
237
237
  */
238
- const MINER_ERROR_DOMAIN: string | null
238
+ const MINER_ERROR_DOMAIN: string
239
239
  module DataProvider {
240
240
 
241
241
  // Constructor properties interface
@@ -269,7 +269,7 @@ interface DataProvider {
269
269
  * @param cancellable optional #GCancellable object, %NULL to ignore.
270
270
  * @returns a #GFileEnumerator or %NULL on failure. This must be freed with g_object_unref().
271
271
  */
272
- begin(url: Gio.File, attributes: string | null, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Gio.FileEnumerator
272
+ begin(url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Gio.FileEnumerator
273
273
  /**
274
274
  * Precisely the same operation as tracker_data_provider_begin()
275
275
  * is performing, but asynchronously.
@@ -298,7 +298,7 @@ interface DataProvider {
298
298
  * @param cancellable optional #GCancellable object, %NULL to ignore
299
299
  * @param callback a #GAsyncReadyCallback to call when the request is satisfied
300
300
  */
301
- begin_async(url: Gio.File, attributes: string | null, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
301
+ begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
302
302
 
303
303
  // Overloads of begin_async
304
304
 
@@ -332,7 +332,7 @@ interface DataProvider {
332
332
  * @param cancellable optional #GCancellable object, %NULL to ignore
333
333
  * @returns A Promise of: a #GFileEnumerator or %NULL on failure. This must be freed with g_object_unref().
334
334
  */
335
- begin_async(url: Gio.File, attributes: string | null, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.FileEnumerator>
335
+ begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.FileEnumerator>
336
336
  /**
337
337
  * Finishes the asynchronous operation started with
338
338
  * tracker_data_provider_begin_async().
@@ -364,7 +364,7 @@ interface DataProvider {
364
364
  * @param cancellable optional #GCancellable object, %NULL to ignore.
365
365
  * @returns a #GFileEnumerator or %NULL on failure. This must be freed with g_object_unref().
366
366
  */
367
- vfunc_begin(url: Gio.File, attributes: string | null, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Gio.FileEnumerator
367
+ vfunc_begin(url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Gio.FileEnumerator
368
368
  /**
369
369
  * Precisely the same operation as tracker_data_provider_begin()
370
370
  * is performing, but asynchronously.
@@ -394,7 +394,7 @@ interface DataProvider {
394
394
  * @param cancellable optional #GCancellable object, %NULL to ignore
395
395
  * @param callback a #GAsyncReadyCallback to call when the request is satisfied
396
396
  */
397
- vfunc_begin_async(url: Gio.File, attributes: string | null, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
397
+ vfunc_begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
398
398
  /**
399
399
  * Finishes the asynchronous operation started with
400
400
  * tracker_data_provider_begin_async().
@@ -454,10 +454,6 @@ module Decorator {
454
454
 
455
455
  // Own constructor properties of TrackerMiner-2.0.TrackerMiner.Decorator
456
456
 
457
- class_names?: string[] | null
458
- commit_batch_size?: number | null
459
- data_source?: string | null
460
- priority_rdf_types?: string[] | null
461
457
  classNames?: string[] | null
462
458
  commitBatchSize?: number | null
463
459
  dataSource?: string | null
@@ -470,13 +466,9 @@ interface Decorator extends Gio.Initable {
470
466
 
471
467
  // Own properties of TrackerMiner-2.0.TrackerMiner.Decorator
472
468
 
473
- class_names: string[]
474
469
  classNames: string[]
475
- commit_batch_size: number
476
470
  commitBatchSize: number
477
- readonly data_source: string | null
478
471
  readonly dataSource: string | null
479
- priority_rdf_types: string[]
480
472
  priorityRdfTypes: string[]
481
473
 
482
474
  // Own fields of TrackerMiner-2.0.TrackerMiner.Decorator
@@ -505,7 +497,7 @@ interface Decorator extends Gio.Initable {
505
497
  * so it's clear WHO has extracted this extended metadata.
506
498
  * @returns a const gchar* or #NULL if an error happened.
507
499
  */
508
- get_data_source(): string | null
500
+ get_data_source(): string
509
501
  /**
510
502
  * Get the number of items left in the queue to be processed. This
511
503
  * indicates content that may already exist in Tracker but is waiting
@@ -548,7 +540,7 @@ interface Decorator extends Gio.Initable {
548
540
  * standard time it would take to index content.
549
541
  * @param rdf_types a string array of rdf types
550
542
  */
551
- set_priority_rdf_types(rdf_types: string | null): void
543
+ set_priority_rdf_types(rdf_types: string): void
552
544
 
553
545
  // Own virtual methods of TrackerMiner-2.0.TrackerMiner.Decorator
554
546
 
@@ -727,9 +719,8 @@ module IndexingTree {
727
719
 
728
720
  // Own constructor properties of TrackerMiner-2.0.TrackerMiner.IndexingTree
729
721
 
730
- filter_hidden?: boolean | null
731
- root?: Gio.File | null
732
722
  filterHidden?: boolean | null
723
+ root?: Gio.File | null
733
724
  }
734
725
 
735
726
  }
@@ -738,7 +729,6 @@ interface IndexingTree {
738
729
 
739
730
  // Own properties of TrackerMiner-2.0.TrackerMiner.IndexingTree
740
731
 
741
- filter_hidden: boolean
742
732
  filterHidden: boolean
743
733
  readonly root: Gio.File
744
734
 
@@ -761,7 +751,7 @@ interface IndexingTree {
761
751
  * @param filter filter type
762
752
  * @param glob_string glob-style string for the filter
763
753
  */
764
- add_filter(filter: FilterType, glob_string: string | null): void
754
+ add_filter(filter: FilterType, glob_string: string): void
765
755
  /**
766
756
  * Clears all filters of a given type.
767
757
  * @param type filter type to clear
@@ -1023,9 +1013,8 @@ module Miner {
1023
1013
  // Own constructor properties of TrackerMiner-2.0.TrackerMiner.Miner
1024
1014
 
1025
1015
  progress?: number | null
1026
- remaining_time?: number | null
1027
- status?: string | null
1028
1016
  remainingTime?: number | null
1017
+ status?: string | null
1029
1018
  }
1030
1019
 
1031
1020
  }
@@ -1035,7 +1024,6 @@ interface Miner extends Gio.Initable {
1035
1024
  // Own properties of TrackerMiner-2.0.TrackerMiner.Miner
1036
1025
 
1037
1026
  progress: number
1038
- remaining_time: number
1039
1027
  remainingTime: number
1040
1028
  status: string | null
1041
1029
 
@@ -1083,7 +1071,7 @@ interface Miner extends Gio.Initable {
1083
1071
  // Own virtual methods of TrackerMiner-2.0.TrackerMiner.Miner
1084
1072
 
1085
1073
  vfunc_paused(): void
1086
- vfunc_progress(status: string | null, progress: number, remaining_time: number): void
1074
+ vfunc_progress(status: string, progress: number, remaining_time: number): void
1087
1075
  vfunc_resumed(): void
1088
1076
  vfunc_started(): void
1089
1077
  vfunc_stopped(): void
@@ -1206,14 +1194,11 @@ module MinerFS {
1206
1194
 
1207
1195
  // Own constructor properties of TrackerMiner-2.0.TrackerMiner.MinerFS
1208
1196
 
1209
- data_provider?: DataProvider | null
1210
- processing_pool_ready_limit?: number | null
1211
- processing_pool_wait_limit?: number | null
1212
- root?: Gio.File | null
1213
- throttle?: number | null
1214
1197
  dataProvider?: DataProvider | null
1215
1198
  processingPoolReadyLimit?: number | null
1216
1199
  processingPoolWaitLimit?: number | null
1200
+ root?: Gio.File | null
1201
+ throttle?: number | null
1217
1202
  }
1218
1203
 
1219
1204
  }
@@ -1222,11 +1207,8 @@ interface MinerFS extends Gio.Initable {
1222
1207
 
1223
1208
  // Own properties of TrackerMiner-2.0.TrackerMiner.MinerFS
1224
1209
 
1225
- readonly data_provider: DataProvider
1226
1210
  readonly dataProvider: DataProvider
1227
- processing_pool_ready_limit: number
1228
1211
  processingPoolReadyLimit: number
1229
- processing_pool_wait_limit: number
1230
1212
  processingPoolWaitLimit: number
1231
1213
  readonly root: Gio.File
1232
1214
  throttle: number
@@ -1496,11 +1478,9 @@ module MinerProxy {
1496
1478
 
1497
1479
  // Own constructor properties of TrackerMiner-2.0.TrackerMiner.MinerProxy
1498
1480
 
1499
- dbus_connection?: Gio.DBusConnection | null
1500
- dbus_path?: string | null
1501
- miner?: Miner | null
1502
1481
  dbusConnection?: Gio.DBusConnection | null
1503
1482
  dbusPath?: string | null
1483
+ miner?: Miner | null
1504
1484
  }
1505
1485
 
1506
1486
  }
@@ -1509,9 +1489,7 @@ interface MinerProxy extends Gio.Initable {
1509
1489
 
1510
1490
  // Own properties of TrackerMiner-2.0.TrackerMiner.MinerProxy
1511
1491
 
1512
- readonly dbus_connection: Gio.DBusConnection
1513
1492
  readonly dbusConnection: Gio.DBusConnection
1514
- readonly dbus_path: string | null
1515
1493
  readonly dbusPath: string | null
1516
1494
  readonly miner: Miner
1517
1495
 
@@ -1546,8 +1524,8 @@ class MinerProxy extends GObject.Object {
1546
1524
  // Constructors of TrackerMiner-2.0.TrackerMiner.MinerProxy
1547
1525
 
1548
1526
  constructor(config?: MinerProxy.ConstructorProperties)
1549
- constructor(miner: Miner, connection: Gio.DBusConnection, dbus_path: string | null, cancellable: Gio.Cancellable | null)
1550
- static new(miner: Miner, connection: Gio.DBusConnection, dbus_path: string | null, cancellable: Gio.Cancellable | null): MinerProxy
1527
+ constructor(miner: Miner, connection: Gio.DBusConnection, dbus_path: string, cancellable: Gio.Cancellable | null)
1528
+ static new(miner: Miner, connection: Gio.DBusConnection, dbus_path: string, cancellable: Gio.Cancellable | null): MinerProxy
1551
1529
  _init(config?: MinerProxy.ConstructorProperties): void
1552
1530
  }
1553
1531
 
@@ -1560,8 +1538,8 @@ interface DataProviderIface {
1560
1538
  * @field
1561
1539
  */
1562
1540
  g_iface: GObject.TypeInterface
1563
- begin: (data_provider: DataProvider, url: Gio.File, attributes: string | null, flags: DirectoryFlags, cancellable: Gio.Cancellable | null) => Gio.FileEnumerator
1564
- begin_async: (data_provider: DataProvider, url: Gio.File, attributes: string | null, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
1541
+ begin: (data_provider: DataProvider, url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null) => Gio.FileEnumerator
1542
+ begin_async: (data_provider: DataProvider, url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
1565
1543
  begin_finish: (data_provider: DataProvider, result: Gio.AsyncResult) => Gio.FileEnumerator
1566
1544
  }
1567
1545
 
@@ -1660,7 +1638,7 @@ interface DecoratorInfo {
1660
1638
  * ¹: http://en.wikipedia.org/wiki/MIME
1661
1639
  * @returns the MIME type for #TrackerDecoratorInfo on success or #NULL on error.
1662
1640
  */
1663
- get_mimetype(): string | null
1641
+ get_mimetype(): string
1664
1642
  /**
1665
1643
  * Get the #GTask associated with retrieving extended metadata and
1666
1644
  * information for a URN in Tracker.
@@ -1676,13 +1654,13 @@ interface DecoratorInfo {
1676
1654
  * with a resource in the database. For example, 'file:///tmp/foo.txt'.
1677
1655
  * @returns the URL for #TrackerDecoratorInfo on success or #NULL on error.
1678
1656
  */
1679
- get_url(): string | null
1657
+ get_url(): string
1680
1658
  /**
1681
1659
  * A URN is a Uniform Resource Name and should be a unique identifier
1682
1660
  * for a resource in the database.
1683
1661
  * @returns the URN for #TrackerDecoratorInfo on success or #NULL on error.
1684
1662
  */
1685
- get_urn(): string | null
1663
+ get_urn(): string
1686
1664
  /**
1687
1665
  * Increases the reference count of `info` by 1.
1688
1666
  * @returns the same @info passed in, or %NULL on error.
@@ -1746,7 +1724,7 @@ interface MinerClass {
1746
1724
  stopped: (miner: Miner) => void
1747
1725
  paused: (miner: Miner) => void
1748
1726
  resumed: (miner: Miner) => void
1749
- progress: (miner: Miner, status: string | null, progress: number, remaining_time: number) => void
1727
+ progress: (miner: Miner, status: string, progress: number, remaining_time: number) => void
1750
1728
  /**
1751
1729
  * Reserved for future API improvements.
1752
1730
  * @field