@girs/tracker-1.0 1.0.0-3.0.0-beta.12
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 +31 -0
- package/package.json +54 -0
- package/tracker-1.0.cjs +9 -0
- package/tracker-1.0.d.cts +434 -0
- package/tracker-1.0.d.ts +439 -0
- package/tracker-1.0.js +8 -0
- package/tsconfig.doc.json +19 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
# Tracker-1.0
|
|
3
|
+
|
|
4
|
+
GJS TypeScript type definitions for Tracker-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gjs) v3.0.0-beta.12.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
To use this type definitions, install them with NPM like this:
|
|
9
|
+
```bash
|
|
10
|
+
npm install @girs/tracker-1.0
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
You can import this package into your project like this:
|
|
16
|
+
```ts
|
|
17
|
+
import Tracker from '@girs/tracker-1.0';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or if you prefer CommonJS, you can also use this:
|
|
21
|
+
```ts
|
|
22
|
+
const Tracker = require('@girs/tracker-1.0');
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
If you use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules), you can also import this module like you would do this in JavaScript:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import Tracker from 'gi://Tracker?version=1.0';
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/tracker-1.0",
|
|
3
|
+
"version": "1.0.0-3.0.0-beta.12",
|
|
4
|
+
"description": "GJS TypeScript type definitions for Tracker-1.0, generated from library version 1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "tracker-1.0.js",
|
|
7
|
+
"main": "tracker-1.0.js",
|
|
8
|
+
"typedoc": {
|
|
9
|
+
"entryPoint": "./tracker-1.0.d.ts",
|
|
10
|
+
"readmeFile": "./README.md",
|
|
11
|
+
"displayName": "Tracker-1.0",
|
|
12
|
+
"tsconfig": "./tsconfig.doc.json"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./tracker-1.0.d.ts",
|
|
18
|
+
"default": "./tracker-1.0.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./tracker-1.0.d.cts",
|
|
22
|
+
"default": "./tracker-1.0.cjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "yarn test:esm && yarn test:cjs",
|
|
28
|
+
"test:esm": "tsc --noEmit tracker-1.0.d.ts",
|
|
29
|
+
"test:cjs": "tsc --noEmit tracker-1.0.d.cts"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@girs/gio-2.0": "^2.75.1-3.0.0-beta.12",
|
|
33
|
+
"@girs/glib-2.0": "^2.75.1-3.0.0-beta.12",
|
|
34
|
+
"@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"typescript": "^*"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"Gir",
|
|
41
|
+
"TypeScript",
|
|
42
|
+
"Tracker-1.0"
|
|
43
|
+
],
|
|
44
|
+
"author": "ts-for-gir",
|
|
45
|
+
"license": "Apache-2.0",
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
49
|
+
},
|
|
50
|
+
"bugs": {
|
|
51
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
52
|
+
},
|
|
53
|
+
"homepage": "https://github.com/gjsify/ts-for-gir#readme"
|
|
54
|
+
}
|
package/tracker-1.0.cjs
ADDED
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
4
|
+
*
|
|
5
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
6
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Tracker-1.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GLib from '@girs/glib-2.0';
|
|
13
|
+
import type Gio from '@girs/gio-2.0';
|
|
14
|
+
import type GObject from '@girs/gobject-2.0';
|
|
15
|
+
|
|
16
|
+
export enum SparqlValueType {
|
|
17
|
+
UNBOUND,
|
|
18
|
+
URI,
|
|
19
|
+
STRING,
|
|
20
|
+
INTEGER,
|
|
21
|
+
DOUBLE,
|
|
22
|
+
DATETIME,
|
|
23
|
+
BLANK_NODE,
|
|
24
|
+
BOOLEAN,
|
|
25
|
+
}
|
|
26
|
+
export enum Error {
|
|
27
|
+
PARSE,
|
|
28
|
+
UNKNOWN_CLASS,
|
|
29
|
+
UNKNOWN_PROPERTY,
|
|
30
|
+
TYPE,
|
|
31
|
+
CONSTRAINT,
|
|
32
|
+
NO_SPACE,
|
|
33
|
+
INTERNAL,
|
|
34
|
+
UNSUPPORTED,
|
|
35
|
+
}
|
|
36
|
+
export enum SparqlBuilderState {
|
|
37
|
+
UPDATE,
|
|
38
|
+
INSERT,
|
|
39
|
+
DELETE,
|
|
40
|
+
SUBJECT,
|
|
41
|
+
PREDICATE,
|
|
42
|
+
OBJECT,
|
|
43
|
+
BLANK,
|
|
44
|
+
WHERE,
|
|
45
|
+
EMBEDDED_INSERT,
|
|
46
|
+
GRAPH,
|
|
47
|
+
}
|
|
48
|
+
export const DBUS_SERVICE: string | null
|
|
49
|
+
export const DBUS_INTERFACE_RESOURCES: string | null
|
|
50
|
+
export const DBUS_OBJECT_RESOURCES: string | null
|
|
51
|
+
export const DBUS_INTERFACE_STATISTICS: string | null
|
|
52
|
+
export const DBUS_OBJECT_STATISTICS: string | null
|
|
53
|
+
export const DBUS_INTERFACE_STATUS: string | null
|
|
54
|
+
export const DBUS_OBJECT_STATUS: string | null
|
|
55
|
+
export const DBUS_INTERFACE_STEROIDS: string | null
|
|
56
|
+
export const DBUS_OBJECT_STEROIDS: string | null
|
|
57
|
+
export function sparql_escape_uri(uri: string | null): string | null
|
|
58
|
+
export function sparql_escape_string(literal: string | null): string | null
|
|
59
|
+
export function sparql_get_uuid_urn(): string | null
|
|
60
|
+
export module SparqlBuilder {
|
|
61
|
+
|
|
62
|
+
// Constructor properties interface
|
|
63
|
+
|
|
64
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
65
|
+
|
|
66
|
+
// Own constructor properties of Tracker-1.0.Tracker.SparqlBuilder
|
|
67
|
+
|
|
68
|
+
length?: number | null
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface SparqlBuilder {
|
|
74
|
+
|
|
75
|
+
// Own properties of Tracker-1.0.Tracker.SparqlBuilder
|
|
76
|
+
|
|
77
|
+
readonly result: string | null
|
|
78
|
+
length: number
|
|
79
|
+
readonly state: SparqlBuilderState
|
|
80
|
+
|
|
81
|
+
// Own fields of Tracker-1.0.Tracker.SparqlBuilder
|
|
82
|
+
|
|
83
|
+
parent_instance: GObject.Object
|
|
84
|
+
priv: SparqlBuilderPrivate
|
|
85
|
+
|
|
86
|
+
// Owm methods of Tracker-1.0.Tracker.SparqlBuilder
|
|
87
|
+
|
|
88
|
+
insert_open(graph?: string | null): void
|
|
89
|
+
insert_silent_open(graph?: string | null): void
|
|
90
|
+
insert_close(): void
|
|
91
|
+
delete_open(graph?: string | null): void
|
|
92
|
+
delete_close(): void
|
|
93
|
+
graph_open(graph: string | null): void
|
|
94
|
+
graph_close(): void
|
|
95
|
+
where_open(): void
|
|
96
|
+
where_close(): void
|
|
97
|
+
subject_variable(var_name: string | null): void
|
|
98
|
+
object_variable(var_name: string | null): void
|
|
99
|
+
subject_iri(iri: string | null): void
|
|
100
|
+
subject(s: string | null): void
|
|
101
|
+
predicate_iri(iri: string | null): void
|
|
102
|
+
predicate(s: string | null): void
|
|
103
|
+
object_iri(iri: string | null): void
|
|
104
|
+
object(s: string | null): void
|
|
105
|
+
object_string(literal: string | null): void
|
|
106
|
+
object_unvalidated(value: string | null): void
|
|
107
|
+
object_boolean(literal: boolean): void
|
|
108
|
+
object_int64(literal: number): void
|
|
109
|
+
object_date(literal: number): /* literal */ number
|
|
110
|
+
object_double(literal: number): void
|
|
111
|
+
object_blank_open(): void
|
|
112
|
+
object_blank_close(): void
|
|
113
|
+
prepend(raw: string | null): void
|
|
114
|
+
append(raw: string | null): void
|
|
115
|
+
get_result(): string | null
|
|
116
|
+
get_length(): number
|
|
117
|
+
get_state(): SparqlBuilderState
|
|
118
|
+
|
|
119
|
+
// Class property signals of Tracker-1.0.Tracker.SparqlBuilder
|
|
120
|
+
|
|
121
|
+
connect(sigName: "notify::result", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
|
|
122
|
+
connect_after(sigName: "notify::result", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
|
|
123
|
+
emit(sigName: "notify::result", ...args: any[]): void
|
|
124
|
+
connect(sigName: "notify::length", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
|
|
125
|
+
connect_after(sigName: "notify::length", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
|
|
126
|
+
emit(sigName: "notify::length", ...args: any[]): void
|
|
127
|
+
connect(sigName: "notify::state", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
|
|
128
|
+
connect_after(sigName: "notify::state", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
|
|
129
|
+
emit(sigName: "notify::state", ...args: any[]): void
|
|
130
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
131
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
132
|
+
emit(sigName: string, ...args: any[]): void
|
|
133
|
+
disconnect(id: number): void
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export class SparqlBuilder extends GObject.Object {
|
|
137
|
+
|
|
138
|
+
// Own properties of Tracker-1.0.Tracker.SparqlBuilder
|
|
139
|
+
|
|
140
|
+
static name: string
|
|
141
|
+
static $gtype: GObject.GType<SparqlBuilder>
|
|
142
|
+
|
|
143
|
+
// Constructors of Tracker-1.0.Tracker.SparqlBuilder
|
|
144
|
+
|
|
145
|
+
constructor(config?: SparqlBuilder.ConstructorProperties)
|
|
146
|
+
static update(): SparqlBuilder
|
|
147
|
+
static embedded_insert(): SparqlBuilder
|
|
148
|
+
constructor()
|
|
149
|
+
static new(): SparqlBuilder
|
|
150
|
+
_init(config?: SparqlBuilder.ConstructorProperties): void
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export module SparqlConnection {
|
|
154
|
+
|
|
155
|
+
// Constructor properties interface
|
|
156
|
+
|
|
157
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface SparqlConnection {
|
|
163
|
+
|
|
164
|
+
// Own fields of Tracker-1.0.Tracker.SparqlConnection
|
|
165
|
+
|
|
166
|
+
parent_instance: GObject.Object
|
|
167
|
+
priv: SparqlConnectionPrivate
|
|
168
|
+
|
|
169
|
+
// Owm methods of Tracker-1.0.Tracker.SparqlConnection
|
|
170
|
+
|
|
171
|
+
query(sparql: string | null, cancellable?: Gio.Cancellable | null): SparqlCursor
|
|
172
|
+
query_async(sparql: string | null, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
173
|
+
query_finish(_res_: Gio.AsyncResult): SparqlCursor
|
|
174
|
+
update(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null): void
|
|
175
|
+
update_async(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
176
|
+
update_finish(_res_: Gio.AsyncResult): void
|
|
177
|
+
update_array_async(sparql: string[], priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
178
|
+
update_array_finish(_res_: Gio.AsyncResult): any[] | null
|
|
179
|
+
update_blank(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null): GLib.Variant | null
|
|
180
|
+
update_blank_async(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
181
|
+
update_blank_finish(_res_: Gio.AsyncResult): GLib.Variant | null
|
|
182
|
+
load(file: Gio.File, cancellable?: Gio.Cancellable | null): void
|
|
183
|
+
load_async(file: Gio.File, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
184
|
+
load_finish(_res_: Gio.AsyncResult): void
|
|
185
|
+
statistics(cancellable?: Gio.Cancellable | null): SparqlCursor | null
|
|
186
|
+
statistics_async(cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
187
|
+
statistics_finish(_res_: Gio.AsyncResult): SparqlCursor | null
|
|
188
|
+
|
|
189
|
+
// Own virtual methods of Tracker-1.0.Tracker.SparqlConnection
|
|
190
|
+
|
|
191
|
+
vfunc_query(sparql: string | null, cancellable?: Gio.Cancellable | null): SparqlCursor
|
|
192
|
+
vfunc_query_async(sparql: string | null, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
193
|
+
vfunc_query_finish(_res_: Gio.AsyncResult): SparqlCursor
|
|
194
|
+
vfunc_update(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null): void
|
|
195
|
+
vfunc_update_async(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
196
|
+
vfunc_update_finish(_res_: Gio.AsyncResult): void
|
|
197
|
+
vfunc_update_array_async(sparql: string[], priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
198
|
+
vfunc_update_array_finish(_res_: Gio.AsyncResult): any[] | null
|
|
199
|
+
vfunc_update_blank(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null): GLib.Variant | null
|
|
200
|
+
vfunc_update_blank_async(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
201
|
+
vfunc_update_blank_finish(_res_: Gio.AsyncResult): GLib.Variant | null
|
|
202
|
+
vfunc_load(file: Gio.File, cancellable?: Gio.Cancellable | null): void
|
|
203
|
+
vfunc_load_async(file: Gio.File, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
204
|
+
vfunc_load_finish(_res_: Gio.AsyncResult): void
|
|
205
|
+
vfunc_statistics(cancellable?: Gio.Cancellable | null): SparqlCursor | null
|
|
206
|
+
vfunc_statistics_async(cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
207
|
+
vfunc_statistics_finish(_res_: Gio.AsyncResult): SparqlCursor | null
|
|
208
|
+
|
|
209
|
+
// Class property signals of Tracker-1.0.Tracker.SparqlConnection
|
|
210
|
+
|
|
211
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
212
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
213
|
+
emit(sigName: string, ...args: any[]): void
|
|
214
|
+
disconnect(id: number): void
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export class SparqlConnection extends GObject.Object {
|
|
218
|
+
|
|
219
|
+
// Own properties of Tracker-1.0.Tracker.SparqlConnection
|
|
220
|
+
|
|
221
|
+
static name: string
|
|
222
|
+
static $gtype: GObject.GType<SparqlConnection>
|
|
223
|
+
|
|
224
|
+
// Constructors of Tracker-1.0.Tracker.SparqlConnection
|
|
225
|
+
|
|
226
|
+
constructor(config?: SparqlConnection.ConstructorProperties)
|
|
227
|
+
_init(config?: SparqlConnection.ConstructorProperties): void
|
|
228
|
+
static get_async(cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<SparqlConnection> | null): void
|
|
229
|
+
static get_finish(_res_: Gio.AsyncResult): SparqlConnection
|
|
230
|
+
static get(cancellable?: Gio.Cancellable | null): SparqlConnection
|
|
231
|
+
static get_direct_async(cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<SparqlConnection> | null): void
|
|
232
|
+
static get_direct_finish(_res_: Gio.AsyncResult): SparqlConnection
|
|
233
|
+
static get_direct(cancellable?: Gio.Cancellable | null): SparqlConnection
|
|
234
|
+
static remote_new(uri_base: string | null): SparqlConnection
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export module SparqlCursor {
|
|
238
|
+
|
|
239
|
+
// Constructor properties interface
|
|
240
|
+
|
|
241
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
242
|
+
|
|
243
|
+
// Own constructor properties of Tracker-1.0.Tracker.SparqlCursor
|
|
244
|
+
|
|
245
|
+
connection?: SparqlConnection | null
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface SparqlCursor {
|
|
251
|
+
|
|
252
|
+
// Own properties of Tracker-1.0.Tracker.SparqlCursor
|
|
253
|
+
|
|
254
|
+
connection: SparqlConnection
|
|
255
|
+
readonly n_columns: number
|
|
256
|
+
|
|
257
|
+
// Own fields of Tracker-1.0.Tracker.SparqlCursor
|
|
258
|
+
|
|
259
|
+
parent_instance: GObject.Object
|
|
260
|
+
priv: SparqlCursorPrivate
|
|
261
|
+
|
|
262
|
+
// Owm methods of Tracker-1.0.Tracker.SparqlCursor
|
|
263
|
+
|
|
264
|
+
get_value_type(column: number): SparqlValueType
|
|
265
|
+
get_variable_name(column: number): string | null
|
|
266
|
+
get_string(column: number): [ /* returnType */ string | null, /* length */ number ]
|
|
267
|
+
next(cancellable?: Gio.Cancellable | null): boolean
|
|
268
|
+
next_async(cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
269
|
+
next_finish(_res_: Gio.AsyncResult): boolean
|
|
270
|
+
rewind(): void
|
|
271
|
+
close(): void
|
|
272
|
+
get_integer(column: number): number
|
|
273
|
+
get_double(column: number): number
|
|
274
|
+
get_boolean(column: number): boolean
|
|
275
|
+
is_bound(column: number): boolean
|
|
276
|
+
get_connection(): SparqlConnection
|
|
277
|
+
set_connection(value: SparqlConnection): void
|
|
278
|
+
get_n_columns(): number
|
|
279
|
+
|
|
280
|
+
// Own virtual methods of Tracker-1.0.Tracker.SparqlCursor
|
|
281
|
+
|
|
282
|
+
vfunc_get_value_type(column: number): SparqlValueType
|
|
283
|
+
vfunc_get_variable_name(column: number): string | null
|
|
284
|
+
vfunc_get_string(column: number): [ /* returnType */ string | null, /* length */ number ]
|
|
285
|
+
vfunc_next(cancellable?: Gio.Cancellable | null): boolean
|
|
286
|
+
vfunc_next_async(cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
287
|
+
vfunc_next_finish(_res_: Gio.AsyncResult): boolean
|
|
288
|
+
vfunc_rewind(): void
|
|
289
|
+
vfunc_close(): void
|
|
290
|
+
vfunc_get_integer(column: number): number
|
|
291
|
+
vfunc_get_double(column: number): number
|
|
292
|
+
vfunc_get_boolean(column: number): boolean
|
|
293
|
+
vfunc_is_bound(column: number): boolean
|
|
294
|
+
vfunc_get_n_columns(): number
|
|
295
|
+
|
|
296
|
+
// Class property signals of Tracker-1.0.Tracker.SparqlCursor
|
|
297
|
+
|
|
298
|
+
connect(sigName: "notify::connection", callback: (($obj: SparqlCursor, pspec: GObject.ParamSpec) => void)): number
|
|
299
|
+
connect_after(sigName: "notify::connection", callback: (($obj: SparqlCursor, pspec: GObject.ParamSpec) => void)): number
|
|
300
|
+
emit(sigName: "notify::connection", ...args: any[]): void
|
|
301
|
+
connect(sigName: "notify::n-columns", callback: (($obj: SparqlCursor, pspec: GObject.ParamSpec) => void)): number
|
|
302
|
+
connect_after(sigName: "notify::n-columns", callback: (($obj: SparqlCursor, pspec: GObject.ParamSpec) => void)): number
|
|
303
|
+
emit(sigName: "notify::n-columns", ...args: any[]): void
|
|
304
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
305
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
306
|
+
emit(sigName: string, ...args: any[]): void
|
|
307
|
+
disconnect(id: number): void
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export class SparqlCursor extends GObject.Object {
|
|
311
|
+
|
|
312
|
+
// Own properties of Tracker-1.0.Tracker.SparqlCursor
|
|
313
|
+
|
|
314
|
+
static name: string
|
|
315
|
+
static $gtype: GObject.GType<SparqlCursor>
|
|
316
|
+
|
|
317
|
+
// Constructors of Tracker-1.0.Tracker.SparqlCursor
|
|
318
|
+
|
|
319
|
+
constructor(config?: SparqlCursor.ConstructorProperties)
|
|
320
|
+
_init(config?: SparqlCursor.ConstructorProperties): void
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export interface SparqlBuilderClass {
|
|
324
|
+
|
|
325
|
+
// Own fields of Tracker-1.0.Tracker.SparqlBuilderClass
|
|
326
|
+
|
|
327
|
+
parent_class: GObject.ObjectClass
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export abstract class SparqlBuilderClass {
|
|
331
|
+
|
|
332
|
+
// Own properties of Tracker-1.0.Tracker.SparqlBuilderClass
|
|
333
|
+
|
|
334
|
+
static name: string
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export interface SparqlBuilderPrivate {
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export class SparqlBuilderPrivate {
|
|
341
|
+
|
|
342
|
+
// Own properties of Tracker-1.0.Tracker.SparqlBuilderPrivate
|
|
343
|
+
|
|
344
|
+
static name: string
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export interface SparqlConnectionClass {
|
|
348
|
+
|
|
349
|
+
// Own fields of Tracker-1.0.Tracker.SparqlConnectionClass
|
|
350
|
+
|
|
351
|
+
parent_class: GObject.ObjectClass
|
|
352
|
+
query: (self: SparqlConnection, sparql: string | null, cancellable?: Gio.Cancellable | null) => SparqlCursor
|
|
353
|
+
query_async: (self: SparqlConnection, sparql: string | null, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback | null) => void
|
|
354
|
+
query_finish: (self: SparqlConnection, _res_: Gio.AsyncResult) => SparqlCursor
|
|
355
|
+
update: (self: SparqlConnection, sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null) => void
|
|
356
|
+
update_async: (self: SparqlConnection, sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback | null) => void
|
|
357
|
+
update_finish: (self: SparqlConnection, _res_: Gio.AsyncResult) => void
|
|
358
|
+
update_array_async: (self: SparqlConnection, sparql: string[], priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback | null) => void
|
|
359
|
+
update_array_finish: (self: SparqlConnection, _res_: Gio.AsyncResult) => any[] | null
|
|
360
|
+
update_blank: (self: SparqlConnection, sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null) => GLib.Variant | null
|
|
361
|
+
update_blank_async: (self: SparqlConnection, sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback | null) => void
|
|
362
|
+
update_blank_finish: (self: SparqlConnection, _res_: Gio.AsyncResult) => GLib.Variant | null
|
|
363
|
+
load: (self: SparqlConnection, file: Gio.File, cancellable?: Gio.Cancellable | null) => void
|
|
364
|
+
load_async: (self: SparqlConnection, file: Gio.File, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback | null) => void
|
|
365
|
+
load_finish: (self: SparqlConnection, _res_: Gio.AsyncResult) => void
|
|
366
|
+
statistics: (self: SparqlConnection, cancellable?: Gio.Cancellable | null) => SparqlCursor | null
|
|
367
|
+
statistics_async: (self: SparqlConnection, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback | null) => void
|
|
368
|
+
statistics_finish: (self: SparqlConnection, _res_: Gio.AsyncResult) => SparqlCursor | null
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export abstract class SparqlConnectionClass {
|
|
372
|
+
|
|
373
|
+
// Own properties of Tracker-1.0.Tracker.SparqlConnectionClass
|
|
374
|
+
|
|
375
|
+
static name: string
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export interface SparqlConnectionPrivate {
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export class SparqlConnectionPrivate {
|
|
382
|
+
|
|
383
|
+
// Own properties of Tracker-1.0.Tracker.SparqlConnectionPrivate
|
|
384
|
+
|
|
385
|
+
static name: string
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export interface SparqlCursorClass {
|
|
389
|
+
|
|
390
|
+
// Own fields of Tracker-1.0.Tracker.SparqlCursorClass
|
|
391
|
+
|
|
392
|
+
parent_class: GObject.ObjectClass
|
|
393
|
+
get_value_type: (self: SparqlCursor, column: number) => SparqlValueType
|
|
394
|
+
get_variable_name: (self: SparqlCursor, column: number) => string | null
|
|
395
|
+
get_string: (self: SparqlCursor, column: number) => [ /* returnType */ string | null, /* length */ number ]
|
|
396
|
+
next: (self: SparqlCursor, cancellable?: Gio.Cancellable | null) => boolean
|
|
397
|
+
next_async: (self: SparqlCursor, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback | null) => void
|
|
398
|
+
next_finish: (self: SparqlCursor, _res_: Gio.AsyncResult) => boolean
|
|
399
|
+
rewind: (self: SparqlCursor) => void
|
|
400
|
+
close: (self: SparqlCursor) => void
|
|
401
|
+
get_integer: (self: SparqlCursor, column: number) => number
|
|
402
|
+
get_double: (self: SparqlCursor, column: number) => number
|
|
403
|
+
get_boolean: (self: SparqlCursor, column: number) => boolean
|
|
404
|
+
is_bound: (self: SparqlCursor, column: number) => boolean
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export abstract class SparqlCursorClass {
|
|
408
|
+
|
|
409
|
+
// Own properties of Tracker-1.0.Tracker.SparqlCursorClass
|
|
410
|
+
|
|
411
|
+
static name: string
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export interface SparqlCursorPrivate {
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export class SparqlCursorPrivate {
|
|
418
|
+
|
|
419
|
+
// Own properties of Tracker-1.0.Tracker.SparqlCursorPrivate
|
|
420
|
+
|
|
421
|
+
static name: string
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Name of the imported GIR library
|
|
426
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
427
|
+
*/
|
|
428
|
+
export const __name__: string
|
|
429
|
+
/**
|
|
430
|
+
* Version of the imported GIR library
|
|
431
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
432
|
+
*/
|
|
433
|
+
export const __version__: string
|
|
434
|
+
// END
|
package/tracker-1.0.d.ts
ADDED
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
4
|
+
*
|
|
5
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
6
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Tracker-1.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GLib from '@girs/glib-2.0';
|
|
13
|
+
import type Gio from '@girs/gio-2.0';
|
|
14
|
+
import type GObject from '@girs/gobject-2.0';
|
|
15
|
+
|
|
16
|
+
export namespace Tracker {
|
|
17
|
+
|
|
18
|
+
enum SparqlValueType {
|
|
19
|
+
UNBOUND,
|
|
20
|
+
URI,
|
|
21
|
+
STRING,
|
|
22
|
+
INTEGER,
|
|
23
|
+
DOUBLE,
|
|
24
|
+
DATETIME,
|
|
25
|
+
BLANK_NODE,
|
|
26
|
+
BOOLEAN,
|
|
27
|
+
}
|
|
28
|
+
enum Error {
|
|
29
|
+
PARSE,
|
|
30
|
+
UNKNOWN_CLASS,
|
|
31
|
+
UNKNOWN_PROPERTY,
|
|
32
|
+
TYPE,
|
|
33
|
+
CONSTRAINT,
|
|
34
|
+
NO_SPACE,
|
|
35
|
+
INTERNAL,
|
|
36
|
+
UNSUPPORTED,
|
|
37
|
+
}
|
|
38
|
+
enum SparqlBuilderState {
|
|
39
|
+
UPDATE,
|
|
40
|
+
INSERT,
|
|
41
|
+
DELETE,
|
|
42
|
+
SUBJECT,
|
|
43
|
+
PREDICATE,
|
|
44
|
+
OBJECT,
|
|
45
|
+
BLANK,
|
|
46
|
+
WHERE,
|
|
47
|
+
EMBEDDED_INSERT,
|
|
48
|
+
GRAPH,
|
|
49
|
+
}
|
|
50
|
+
const DBUS_SERVICE: string | null
|
|
51
|
+
const DBUS_INTERFACE_RESOURCES: string | null
|
|
52
|
+
const DBUS_OBJECT_RESOURCES: string | null
|
|
53
|
+
const DBUS_INTERFACE_STATISTICS: string | null
|
|
54
|
+
const DBUS_OBJECT_STATISTICS: string | null
|
|
55
|
+
const DBUS_INTERFACE_STATUS: string | null
|
|
56
|
+
const DBUS_OBJECT_STATUS: string | null
|
|
57
|
+
const DBUS_INTERFACE_STEROIDS: string | null
|
|
58
|
+
const DBUS_OBJECT_STEROIDS: string | null
|
|
59
|
+
function sparql_escape_uri(uri: string | null): string | null
|
|
60
|
+
function sparql_escape_string(literal: string | null): string | null
|
|
61
|
+
function sparql_get_uuid_urn(): string | null
|
|
62
|
+
module SparqlBuilder {
|
|
63
|
+
|
|
64
|
+
// Constructor properties interface
|
|
65
|
+
|
|
66
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
67
|
+
|
|
68
|
+
// Own constructor properties of Tracker-1.0.Tracker.SparqlBuilder
|
|
69
|
+
|
|
70
|
+
length?: number | null
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface SparqlBuilder {
|
|
76
|
+
|
|
77
|
+
// Own properties of Tracker-1.0.Tracker.SparqlBuilder
|
|
78
|
+
|
|
79
|
+
readonly result: string | null
|
|
80
|
+
length: number
|
|
81
|
+
readonly state: SparqlBuilderState
|
|
82
|
+
|
|
83
|
+
// Own fields of Tracker-1.0.Tracker.SparqlBuilder
|
|
84
|
+
|
|
85
|
+
parent_instance: GObject.Object
|
|
86
|
+
priv: SparqlBuilderPrivate
|
|
87
|
+
|
|
88
|
+
// Owm methods of Tracker-1.0.Tracker.SparqlBuilder
|
|
89
|
+
|
|
90
|
+
insert_open(graph?: string | null): void
|
|
91
|
+
insert_silent_open(graph?: string | null): void
|
|
92
|
+
insert_close(): void
|
|
93
|
+
delete_open(graph?: string | null): void
|
|
94
|
+
delete_close(): void
|
|
95
|
+
graph_open(graph: string | null): void
|
|
96
|
+
graph_close(): void
|
|
97
|
+
where_open(): void
|
|
98
|
+
where_close(): void
|
|
99
|
+
subject_variable(var_name: string | null): void
|
|
100
|
+
object_variable(var_name: string | null): void
|
|
101
|
+
subject_iri(iri: string | null): void
|
|
102
|
+
subject(s: string | null): void
|
|
103
|
+
predicate_iri(iri: string | null): void
|
|
104
|
+
predicate(s: string | null): void
|
|
105
|
+
object_iri(iri: string | null): void
|
|
106
|
+
object(s: string | null): void
|
|
107
|
+
object_string(literal: string | null): void
|
|
108
|
+
object_unvalidated(value: string | null): void
|
|
109
|
+
object_boolean(literal: boolean): void
|
|
110
|
+
object_int64(literal: number): void
|
|
111
|
+
object_date(literal: number): /* literal */ number
|
|
112
|
+
object_double(literal: number): void
|
|
113
|
+
object_blank_open(): void
|
|
114
|
+
object_blank_close(): void
|
|
115
|
+
prepend(raw: string | null): void
|
|
116
|
+
append(raw: string | null): void
|
|
117
|
+
get_result(): string | null
|
|
118
|
+
get_length(): number
|
|
119
|
+
get_state(): SparqlBuilderState
|
|
120
|
+
|
|
121
|
+
// Class property signals of Tracker-1.0.Tracker.SparqlBuilder
|
|
122
|
+
|
|
123
|
+
connect(sigName: "notify::result", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
|
|
124
|
+
connect_after(sigName: "notify::result", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
|
|
125
|
+
emit(sigName: "notify::result", ...args: any[]): void
|
|
126
|
+
connect(sigName: "notify::length", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
|
|
127
|
+
connect_after(sigName: "notify::length", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
|
|
128
|
+
emit(sigName: "notify::length", ...args: any[]): void
|
|
129
|
+
connect(sigName: "notify::state", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
|
|
130
|
+
connect_after(sigName: "notify::state", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
|
|
131
|
+
emit(sigName: "notify::state", ...args: any[]): void
|
|
132
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
133
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
134
|
+
emit(sigName: string, ...args: any[]): void
|
|
135
|
+
disconnect(id: number): void
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
class SparqlBuilder extends GObject.Object {
|
|
139
|
+
|
|
140
|
+
// Own properties of Tracker-1.0.Tracker.SparqlBuilder
|
|
141
|
+
|
|
142
|
+
static name: string
|
|
143
|
+
static $gtype: GObject.GType<SparqlBuilder>
|
|
144
|
+
|
|
145
|
+
// Constructors of Tracker-1.0.Tracker.SparqlBuilder
|
|
146
|
+
|
|
147
|
+
constructor(config?: SparqlBuilder.ConstructorProperties)
|
|
148
|
+
static update(): SparqlBuilder
|
|
149
|
+
static embedded_insert(): SparqlBuilder
|
|
150
|
+
constructor()
|
|
151
|
+
static new(): SparqlBuilder
|
|
152
|
+
_init(config?: SparqlBuilder.ConstructorProperties): void
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
module SparqlConnection {
|
|
156
|
+
|
|
157
|
+
// Constructor properties interface
|
|
158
|
+
|
|
159
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
interface SparqlConnection {
|
|
165
|
+
|
|
166
|
+
// Own fields of Tracker-1.0.Tracker.SparqlConnection
|
|
167
|
+
|
|
168
|
+
parent_instance: GObject.Object
|
|
169
|
+
priv: SparqlConnectionPrivate
|
|
170
|
+
|
|
171
|
+
// Owm methods of Tracker-1.0.Tracker.SparqlConnection
|
|
172
|
+
|
|
173
|
+
query(sparql: string | null, cancellable?: Gio.Cancellable | null): SparqlCursor
|
|
174
|
+
query_async(sparql: string | null, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
175
|
+
query_finish(_res_: Gio.AsyncResult): SparqlCursor
|
|
176
|
+
update(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null): void
|
|
177
|
+
update_async(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
178
|
+
update_finish(_res_: Gio.AsyncResult): void
|
|
179
|
+
update_array_async(sparql: string[], priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
180
|
+
update_array_finish(_res_: Gio.AsyncResult): any[] | null
|
|
181
|
+
update_blank(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null): GLib.Variant | null
|
|
182
|
+
update_blank_async(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
183
|
+
update_blank_finish(_res_: Gio.AsyncResult): GLib.Variant | null
|
|
184
|
+
load(file: Gio.File, cancellable?: Gio.Cancellable | null): void
|
|
185
|
+
load_async(file: Gio.File, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
186
|
+
load_finish(_res_: Gio.AsyncResult): void
|
|
187
|
+
statistics(cancellable?: Gio.Cancellable | null): SparqlCursor | null
|
|
188
|
+
statistics_async(cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
189
|
+
statistics_finish(_res_: Gio.AsyncResult): SparqlCursor | null
|
|
190
|
+
|
|
191
|
+
// Own virtual methods of Tracker-1.0.Tracker.SparqlConnection
|
|
192
|
+
|
|
193
|
+
vfunc_query(sparql: string | null, cancellable?: Gio.Cancellable | null): SparqlCursor
|
|
194
|
+
vfunc_query_async(sparql: string | null, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
195
|
+
vfunc_query_finish(_res_: Gio.AsyncResult): SparqlCursor
|
|
196
|
+
vfunc_update(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null): void
|
|
197
|
+
vfunc_update_async(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
198
|
+
vfunc_update_finish(_res_: Gio.AsyncResult): void
|
|
199
|
+
vfunc_update_array_async(sparql: string[], priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
200
|
+
vfunc_update_array_finish(_res_: Gio.AsyncResult): any[] | null
|
|
201
|
+
vfunc_update_blank(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null): GLib.Variant | null
|
|
202
|
+
vfunc_update_blank_async(sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
203
|
+
vfunc_update_blank_finish(_res_: Gio.AsyncResult): GLib.Variant | null
|
|
204
|
+
vfunc_load(file: Gio.File, cancellable?: Gio.Cancellable | null): void
|
|
205
|
+
vfunc_load_async(file: Gio.File, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
206
|
+
vfunc_load_finish(_res_: Gio.AsyncResult): void
|
|
207
|
+
vfunc_statistics(cancellable?: Gio.Cancellable | null): SparqlCursor | null
|
|
208
|
+
vfunc_statistics_async(cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
209
|
+
vfunc_statistics_finish(_res_: Gio.AsyncResult): SparqlCursor | null
|
|
210
|
+
|
|
211
|
+
// Class property signals of Tracker-1.0.Tracker.SparqlConnection
|
|
212
|
+
|
|
213
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
214
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
215
|
+
emit(sigName: string, ...args: any[]): void
|
|
216
|
+
disconnect(id: number): void
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
class SparqlConnection extends GObject.Object {
|
|
220
|
+
|
|
221
|
+
// Own properties of Tracker-1.0.Tracker.SparqlConnection
|
|
222
|
+
|
|
223
|
+
static name: string
|
|
224
|
+
static $gtype: GObject.GType<SparqlConnection>
|
|
225
|
+
|
|
226
|
+
// Constructors of Tracker-1.0.Tracker.SparqlConnection
|
|
227
|
+
|
|
228
|
+
constructor(config?: SparqlConnection.ConstructorProperties)
|
|
229
|
+
_init(config?: SparqlConnection.ConstructorProperties): void
|
|
230
|
+
static get_async(cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<SparqlConnection> | null): void
|
|
231
|
+
static get_finish(_res_: Gio.AsyncResult): SparqlConnection
|
|
232
|
+
static get(cancellable?: Gio.Cancellable | null): SparqlConnection
|
|
233
|
+
static get_direct_async(cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<SparqlConnection> | null): void
|
|
234
|
+
static get_direct_finish(_res_: Gio.AsyncResult): SparqlConnection
|
|
235
|
+
static get_direct(cancellable?: Gio.Cancellable | null): SparqlConnection
|
|
236
|
+
static remote_new(uri_base: string | null): SparqlConnection
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
module SparqlCursor {
|
|
240
|
+
|
|
241
|
+
// Constructor properties interface
|
|
242
|
+
|
|
243
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
244
|
+
|
|
245
|
+
// Own constructor properties of Tracker-1.0.Tracker.SparqlCursor
|
|
246
|
+
|
|
247
|
+
connection?: SparqlConnection | null
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
interface SparqlCursor {
|
|
253
|
+
|
|
254
|
+
// Own properties of Tracker-1.0.Tracker.SparqlCursor
|
|
255
|
+
|
|
256
|
+
connection: SparqlConnection
|
|
257
|
+
readonly n_columns: number
|
|
258
|
+
|
|
259
|
+
// Own fields of Tracker-1.0.Tracker.SparqlCursor
|
|
260
|
+
|
|
261
|
+
parent_instance: GObject.Object
|
|
262
|
+
priv: SparqlCursorPrivate
|
|
263
|
+
|
|
264
|
+
// Owm methods of Tracker-1.0.Tracker.SparqlCursor
|
|
265
|
+
|
|
266
|
+
get_value_type(column: number): SparqlValueType
|
|
267
|
+
get_variable_name(column: number): string | null
|
|
268
|
+
get_string(column: number): [ /* returnType */ string | null, /* length */ number ]
|
|
269
|
+
next(cancellable?: Gio.Cancellable | null): boolean
|
|
270
|
+
next_async(cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
271
|
+
next_finish(_res_: Gio.AsyncResult): boolean
|
|
272
|
+
rewind(): void
|
|
273
|
+
close(): void
|
|
274
|
+
get_integer(column: number): number
|
|
275
|
+
get_double(column: number): number
|
|
276
|
+
get_boolean(column: number): boolean
|
|
277
|
+
is_bound(column: number): boolean
|
|
278
|
+
get_connection(): SparqlConnection
|
|
279
|
+
set_connection(value: SparqlConnection): void
|
|
280
|
+
get_n_columns(): number
|
|
281
|
+
|
|
282
|
+
// Own virtual methods of Tracker-1.0.Tracker.SparqlCursor
|
|
283
|
+
|
|
284
|
+
vfunc_get_value_type(column: number): SparqlValueType
|
|
285
|
+
vfunc_get_variable_name(column: number): string | null
|
|
286
|
+
vfunc_get_string(column: number): [ /* returnType */ string | null, /* length */ number ]
|
|
287
|
+
vfunc_next(cancellable?: Gio.Cancellable | null): boolean
|
|
288
|
+
vfunc_next_async(cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback<this> | null): void
|
|
289
|
+
vfunc_next_finish(_res_: Gio.AsyncResult): boolean
|
|
290
|
+
vfunc_rewind(): void
|
|
291
|
+
vfunc_close(): void
|
|
292
|
+
vfunc_get_integer(column: number): number
|
|
293
|
+
vfunc_get_double(column: number): number
|
|
294
|
+
vfunc_get_boolean(column: number): boolean
|
|
295
|
+
vfunc_is_bound(column: number): boolean
|
|
296
|
+
vfunc_get_n_columns(): number
|
|
297
|
+
|
|
298
|
+
// Class property signals of Tracker-1.0.Tracker.SparqlCursor
|
|
299
|
+
|
|
300
|
+
connect(sigName: "notify::connection", callback: (($obj: SparqlCursor, pspec: GObject.ParamSpec) => void)): number
|
|
301
|
+
connect_after(sigName: "notify::connection", callback: (($obj: SparqlCursor, pspec: GObject.ParamSpec) => void)): number
|
|
302
|
+
emit(sigName: "notify::connection", ...args: any[]): void
|
|
303
|
+
connect(sigName: "notify::n-columns", callback: (($obj: SparqlCursor, pspec: GObject.ParamSpec) => void)): number
|
|
304
|
+
connect_after(sigName: "notify::n-columns", callback: (($obj: SparqlCursor, pspec: GObject.ParamSpec) => void)): number
|
|
305
|
+
emit(sigName: "notify::n-columns", ...args: any[]): void
|
|
306
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
307
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
308
|
+
emit(sigName: string, ...args: any[]): void
|
|
309
|
+
disconnect(id: number): void
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
class SparqlCursor extends GObject.Object {
|
|
313
|
+
|
|
314
|
+
// Own properties of Tracker-1.0.Tracker.SparqlCursor
|
|
315
|
+
|
|
316
|
+
static name: string
|
|
317
|
+
static $gtype: GObject.GType<SparqlCursor>
|
|
318
|
+
|
|
319
|
+
// Constructors of Tracker-1.0.Tracker.SparqlCursor
|
|
320
|
+
|
|
321
|
+
constructor(config?: SparqlCursor.ConstructorProperties)
|
|
322
|
+
_init(config?: SparqlCursor.ConstructorProperties): void
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
interface SparqlBuilderClass {
|
|
326
|
+
|
|
327
|
+
// Own fields of Tracker-1.0.Tracker.SparqlBuilderClass
|
|
328
|
+
|
|
329
|
+
parent_class: GObject.ObjectClass
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
abstract class SparqlBuilderClass {
|
|
333
|
+
|
|
334
|
+
// Own properties of Tracker-1.0.Tracker.SparqlBuilderClass
|
|
335
|
+
|
|
336
|
+
static name: string
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
interface SparqlBuilderPrivate {
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
class SparqlBuilderPrivate {
|
|
343
|
+
|
|
344
|
+
// Own properties of Tracker-1.0.Tracker.SparqlBuilderPrivate
|
|
345
|
+
|
|
346
|
+
static name: string
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
interface SparqlConnectionClass {
|
|
350
|
+
|
|
351
|
+
// Own fields of Tracker-1.0.Tracker.SparqlConnectionClass
|
|
352
|
+
|
|
353
|
+
parent_class: GObject.ObjectClass
|
|
354
|
+
query: (self: SparqlConnection, sparql: string | null, cancellable?: Gio.Cancellable | null) => SparqlCursor
|
|
355
|
+
query_async: (self: SparqlConnection, sparql: string | null, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback | null) => void
|
|
356
|
+
query_finish: (self: SparqlConnection, _res_: Gio.AsyncResult) => SparqlCursor
|
|
357
|
+
update: (self: SparqlConnection, sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null) => void
|
|
358
|
+
update_async: (self: SparqlConnection, sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback | null) => void
|
|
359
|
+
update_finish: (self: SparqlConnection, _res_: Gio.AsyncResult) => void
|
|
360
|
+
update_array_async: (self: SparqlConnection, sparql: string[], priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback | null) => void
|
|
361
|
+
update_array_finish: (self: SparqlConnection, _res_: Gio.AsyncResult) => any[] | null
|
|
362
|
+
update_blank: (self: SparqlConnection, sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null) => GLib.Variant | null
|
|
363
|
+
update_blank_async: (self: SparqlConnection, sparql: string | null, priority: number, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback | null) => void
|
|
364
|
+
update_blank_finish: (self: SparqlConnection, _res_: Gio.AsyncResult) => GLib.Variant | null
|
|
365
|
+
load: (self: SparqlConnection, file: Gio.File, cancellable?: Gio.Cancellable | null) => void
|
|
366
|
+
load_async: (self: SparqlConnection, file: Gio.File, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback | null) => void
|
|
367
|
+
load_finish: (self: SparqlConnection, _res_: Gio.AsyncResult) => void
|
|
368
|
+
statistics: (self: SparqlConnection, cancellable?: Gio.Cancellable | null) => SparqlCursor | null
|
|
369
|
+
statistics_async: (self: SparqlConnection, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback | null) => void
|
|
370
|
+
statistics_finish: (self: SparqlConnection, _res_: Gio.AsyncResult) => SparqlCursor | null
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
abstract class SparqlConnectionClass {
|
|
374
|
+
|
|
375
|
+
// Own properties of Tracker-1.0.Tracker.SparqlConnectionClass
|
|
376
|
+
|
|
377
|
+
static name: string
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
interface SparqlConnectionPrivate {
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
class SparqlConnectionPrivate {
|
|
384
|
+
|
|
385
|
+
// Own properties of Tracker-1.0.Tracker.SparqlConnectionPrivate
|
|
386
|
+
|
|
387
|
+
static name: string
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
interface SparqlCursorClass {
|
|
391
|
+
|
|
392
|
+
// Own fields of Tracker-1.0.Tracker.SparqlCursorClass
|
|
393
|
+
|
|
394
|
+
parent_class: GObject.ObjectClass
|
|
395
|
+
get_value_type: (self: SparqlCursor, column: number) => SparqlValueType
|
|
396
|
+
get_variable_name: (self: SparqlCursor, column: number) => string | null
|
|
397
|
+
get_string: (self: SparqlCursor, column: number) => [ /* returnType */ string | null, /* length */ number ]
|
|
398
|
+
next: (self: SparqlCursor, cancellable?: Gio.Cancellable | null) => boolean
|
|
399
|
+
next_async: (self: SparqlCursor, cancellable?: Gio.Cancellable | null, _callback_?: Gio.AsyncReadyCallback | null) => void
|
|
400
|
+
next_finish: (self: SparqlCursor, _res_: Gio.AsyncResult) => boolean
|
|
401
|
+
rewind: (self: SparqlCursor) => void
|
|
402
|
+
close: (self: SparqlCursor) => void
|
|
403
|
+
get_integer: (self: SparqlCursor, column: number) => number
|
|
404
|
+
get_double: (self: SparqlCursor, column: number) => number
|
|
405
|
+
get_boolean: (self: SparqlCursor, column: number) => boolean
|
|
406
|
+
is_bound: (self: SparqlCursor, column: number) => boolean
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
abstract class SparqlCursorClass {
|
|
410
|
+
|
|
411
|
+
// Own properties of Tracker-1.0.Tracker.SparqlCursorClass
|
|
412
|
+
|
|
413
|
+
static name: string
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
interface SparqlCursorPrivate {
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
class SparqlCursorPrivate {
|
|
420
|
+
|
|
421
|
+
// Own properties of Tracker-1.0.Tracker.SparqlCursorPrivate
|
|
422
|
+
|
|
423
|
+
static name: string
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Name of the imported GIR library
|
|
428
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
429
|
+
*/
|
|
430
|
+
const __name__: string
|
|
431
|
+
/**
|
|
432
|
+
* Version of the imported GIR library
|
|
433
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
434
|
+
*/
|
|
435
|
+
const __version__: string
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export default Tracker;
|
|
439
|
+
// END
|
package/tracker-1.0.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// General settings for code interpretation
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"experimentalDecorators": true,
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"noEmitOnError": false,
|
|
10
|
+
"baseUrl": "./",
|
|
11
|
+
"rootDir": ".",
|
|
12
|
+
// General settings for code generation
|
|
13
|
+
"removeComments": false,
|
|
14
|
+
"inlineSourceMap": false,
|
|
15
|
+
"inlineSources": false,
|
|
16
|
+
"newLine": "LF"
|
|
17
|
+
},
|
|
18
|
+
"include": ["./tracker-1.0.d.ts"]
|
|
19
|
+
}
|