@girs/arrowflight-23.0 4.4.0 → 4.6.0
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 +36 -41
- package/arrowflight-23.0.d.ts +31 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -4,82 +4,77 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
+
GJS TypeScript type definitions for ArrowFlight-23.0, generated from library version 23.0.1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.6.0.
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
This package contains type declarations only. It ships no runtime code, so it adds
|
|
10
|
+
nothing to your program and works with any bundler or none at all.
|
|
9
11
|
|
|
10
12
|
## Install
|
|
11
13
|
|
|
12
|
-
Install the type definitions with npm:
|
|
13
14
|
```bash
|
|
14
15
|
npm install @girs/arrowflight-23.0
|
|
15
16
|
```
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
Any package manager works. The package has no dependencies beyond other `@girs/*`
|
|
19
|
+
type packages.
|
|
20
|
+
|
|
21
|
+
## What it exports
|
|
22
|
+
|
|
23
|
+
| Import | What you get |
|
|
24
|
+
|---|---|
|
|
25
|
+
| `@girs/arrowflight-23.0` | the namespace as a default export, plus the ambient and global declarations |
|
|
26
|
+
| `@girs/arrowflight-23.0/ambient` | only the `gi://` module declarations |
|
|
27
|
+
| `@girs/arrowflight-23.0/import` | only the `imports.gi` declarations |
|
|
28
|
+
| `@girs/arrowflight-23.0/arrowflight-23.0` | the namespace, without the side-effecting declarations |
|
|
29
|
+
|
|
30
|
+
## Three ways to import
|
|
31
|
+
|
|
32
|
+
Which one you use depends on how you write imports elsewhere, not on your toolchain.
|
|
33
|
+
|
|
34
|
+
### As a module
|
|
18
35
|
|
|
19
|
-
Import it like any other module:
|
|
20
36
|
```ts
|
|
21
37
|
import ArrowFlight from '@girs/arrowflight-23.0';
|
|
22
38
|
```
|
|
23
39
|
|
|
24
|
-
###
|
|
40
|
+
### As `gi://`
|
|
25
41
|
|
|
26
|
-
|
|
27
|
-
|
|
42
|
+
GJS resolves `gi://` at runtime. To give it types, reference the package once, either
|
|
43
|
+
from your entry point or from `tsconfig.json`:
|
|
28
44
|
|
|
29
|
-
`index.ts`:
|
|
30
45
|
```ts
|
|
31
|
-
import '@girs/arrowflight-23.0'
|
|
46
|
+
import '@girs/arrowflight-23.0';
|
|
32
47
|
```
|
|
33
48
|
|
|
34
|
-
`tsconfig.json`:
|
|
35
49
|
```json
|
|
36
|
-
{
|
|
37
|
-
"compilerOptions": {
|
|
38
|
-
...
|
|
39
|
-
},
|
|
40
|
-
"include": ["@girs/arrowflight-23.0"],
|
|
41
|
-
...
|
|
42
|
-
}
|
|
50
|
+
{ "include": ["@girs/arrowflight-23.0"] }
|
|
43
51
|
```
|
|
44
52
|
|
|
45
|
-
|
|
53
|
+
Then the runtime spelling type-checks:
|
|
46
54
|
|
|
47
55
|
```ts
|
|
48
56
|
import ArrowFlight from 'gi://ArrowFlight?version=23.0';
|
|
49
57
|
```
|
|
50
58
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
GJS's global `imports.gi` works too, with types.
|
|
54
|
-
For this you need to include `@girs/arrowflight-23.0` or `@girs/arrowflight-23.0/import` in your `tsconfig` or entry point Typescript file:
|
|
59
|
+
Referencing `@girs/arrowflight-23.0/ambient` instead pulls in these declarations
|
|
60
|
+
alone. See [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules).
|
|
55
61
|
|
|
56
|
-
`
|
|
57
|
-
```ts
|
|
58
|
-
import '@girs/arrowflight-23.0'
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
`tsconfig.json`:
|
|
62
|
-
```json
|
|
63
|
-
{
|
|
64
|
-
"compilerOptions": {
|
|
65
|
-
...
|
|
66
|
-
},
|
|
67
|
-
"include": ["@girs/arrowflight-23.0"],
|
|
68
|
-
...
|
|
69
|
-
}
|
|
70
|
-
```
|
|
62
|
+
### As `imports.gi`
|
|
71
63
|
|
|
72
|
-
|
|
64
|
+
GJS's global object works the same way, via `@girs/arrowflight-23.0/import`:
|
|
73
65
|
|
|
74
66
|
```ts
|
|
75
67
|
const ArrowFlight = imports.gi.ArrowFlight;
|
|
76
68
|
```
|
|
77
69
|
|
|
78
|
-
|
|
70
|
+
## Building
|
|
79
71
|
|
|
80
|
-
|
|
72
|
+
The declarations need no build step. If you bundle, every bundler works, since there is
|
|
73
|
+
no runtime code to resolve. The [examples](https://github.com/gjsify/ts-for-gir/tree/main/examples)
|
|
74
|
+
show working setups for several.
|
|
81
75
|
|
|
82
76
|
## Other packages
|
|
83
77
|
|
|
84
|
-
|
|
78
|
+
Every pre-generated package is at [gjsify/types](https://github.com/gjsify/types).
|
|
79
|
+
|
|
85
80
|
|
package/arrowflight-23.0.d.ts
CHANGED
|
@@ -27,18 +27,21 @@ export namespace ArrowFlight {
|
|
|
27
27
|
/**
|
|
28
28
|
* The major version.
|
|
29
29
|
* @since 17.0.0
|
|
30
|
+
* @default 23
|
|
30
31
|
*/
|
|
31
32
|
const VERSION_MAJOR: number;
|
|
32
33
|
|
|
33
34
|
/**
|
|
34
35
|
* The micro version.
|
|
35
36
|
* @since 17.0.0
|
|
37
|
+
* @default 1
|
|
36
38
|
*/
|
|
37
39
|
const VERSION_MICRO: number;
|
|
38
40
|
|
|
39
41
|
/**
|
|
40
42
|
* The minor version.
|
|
41
43
|
* @since 17.0.0
|
|
44
|
+
* @default 0
|
|
42
45
|
*/
|
|
43
46
|
const VERSION_MINOR: number;
|
|
44
47
|
|
|
@@ -199,12 +202,14 @@ export namespace ArrowFlight {
|
|
|
199
202
|
* @param options A {@link ArrowFlight.CallOptions}.
|
|
200
203
|
* @returns `true` on success, `false` if there was an error.
|
|
201
204
|
* @since 12.0.0
|
|
205
|
+
* @throws GLib.Error
|
|
202
206
|
*/
|
|
203
207
|
authenticate_basic_token(user: string, password: string, options: CallOptions | null): [boolean, string, string];
|
|
204
208
|
|
|
205
209
|
/**
|
|
206
210
|
* @returns `true` on success, `false` if there was an error.
|
|
207
211
|
* @since 8.0.0
|
|
212
|
+
* @throws GLib.Error
|
|
208
213
|
*/
|
|
209
214
|
close(): boolean;
|
|
210
215
|
|
|
@@ -213,6 +218,7 @@ export namespace ArrowFlight {
|
|
|
213
218
|
* @param options A {@link ArrowFlight.CallOptions}.
|
|
214
219
|
* @returns The {@link ArrowFlight.StreamReader} to read record batched from the server on success, `null` on error.
|
|
215
220
|
* @since 6.0.0
|
|
221
|
+
* @throws GLib.Error
|
|
216
222
|
*/
|
|
217
223
|
do_get(ticket: Ticket, options: CallOptions | null): StreamReader | null;
|
|
218
224
|
|
|
@@ -229,6 +235,7 @@ export namespace ArrowFlight {
|
|
|
229
235
|
* @param options A {@link ArrowFlight.CallOptions}.
|
|
230
236
|
* @returns The `GAFlighDoPutResult` holding a reader and a writer on success, `null` on error.
|
|
231
237
|
* @since 18.0.0
|
|
238
|
+
* @throws GLib.Error
|
|
232
239
|
*/
|
|
233
240
|
do_put(descriptor: Descriptor, schema: Arrow.Schema, options: CallOptions | null): DoPutResult | null;
|
|
234
241
|
|
|
@@ -237,6 +244,7 @@ export namespace ArrowFlight {
|
|
|
237
244
|
* @param options A {@link ArrowFlight.CallOptions}.
|
|
238
245
|
* @returns The returned {@link ArrowFlight.Info} on success, `null` on error.
|
|
239
246
|
* @since 9.0.0
|
|
247
|
+
* @throws GLib.Error
|
|
240
248
|
*/
|
|
241
249
|
get_flight_info(descriptor: Descriptor, options: CallOptions | null): Info | null;
|
|
242
250
|
|
|
@@ -245,6 +253,7 @@ export namespace ArrowFlight {
|
|
|
245
253
|
* @param options A {@link ArrowFlight.CallOptions}.
|
|
246
254
|
* @returns The returned list of {@link ArrowFlight.Info} on success, `null` on error.
|
|
247
255
|
* @since 5.0.0
|
|
256
|
+
* @throws GLib.Error
|
|
248
257
|
*/
|
|
249
258
|
list_flights(criteria: Criteria | null, options: CallOptions | null): Info[] | null;
|
|
250
259
|
}
|
|
@@ -866,6 +875,7 @@ export namespace ArrowFlight {
|
|
|
866
875
|
* @param options A {@link Arrow.ReadOptions}.
|
|
867
876
|
* @returns Deserialized {@link Arrow.Schema}, `null` on error.
|
|
868
877
|
* @since 5.0.0
|
|
878
|
+
* @throws GLib.Error
|
|
869
879
|
*/
|
|
870
880
|
get_schema(options: Arrow.ReadOptions | null): Arrow.Schema;
|
|
871
881
|
|
|
@@ -1056,6 +1066,7 @@ export namespace ArrowFlight {
|
|
|
1056
1066
|
/**
|
|
1057
1067
|
* @returns The metadata on success, `null` on error.
|
|
1058
1068
|
* @since 18.0.0
|
|
1069
|
+
* @throws GLib.Error
|
|
1059
1070
|
*/
|
|
1060
1071
|
read(): Arrow.Buffer;
|
|
1061
1072
|
}
|
|
@@ -1118,6 +1129,7 @@ export namespace ArrowFlight {
|
|
|
1118
1129
|
* @param metadata A {@link Arrow.Buffer} to be sent.
|
|
1119
1130
|
* @returns `true` on success, `false` on error.
|
|
1120
1131
|
* @since 18.0.0
|
|
1132
|
+
* @throws GLib.Error
|
|
1121
1133
|
*/
|
|
1122
1134
|
write(metadata: Arrow.Buffer): boolean;
|
|
1123
1135
|
}
|
|
@@ -1247,12 +1259,14 @@ export namespace ArrowFlight {
|
|
|
1247
1259
|
/**
|
|
1248
1260
|
* @returns The all data on success, `null` on error.
|
|
1249
1261
|
* @since 6.0.0
|
|
1262
|
+
* @throws GLib.Error
|
|
1250
1263
|
*/
|
|
1251
1264
|
read_all(): Arrow.Table;
|
|
1252
1265
|
|
|
1253
1266
|
/**
|
|
1254
1267
|
* @returns The next chunk on success, `null` on end of stream, `null` on error.
|
|
1255
1268
|
* @since 6.0.0
|
|
1269
|
+
* @throws GLib.Error
|
|
1256
1270
|
*/
|
|
1257
1271
|
read_next(): StreamChunk;
|
|
1258
1272
|
}
|
|
@@ -1367,6 +1381,7 @@ export namespace ArrowFlight {
|
|
|
1367
1381
|
* @param options A {@link Arrow.WriteOptions}.
|
|
1368
1382
|
* @returns `true` on success, `false` on error.
|
|
1369
1383
|
* @since 18.0.0
|
|
1384
|
+
* @throws GLib.Error
|
|
1370
1385
|
*/
|
|
1371
1386
|
begin(schema: Arrow.Schema, options: Arrow.WriteOptions | null): boolean;
|
|
1372
1387
|
|
|
@@ -1375,6 +1390,7 @@ export namespace ArrowFlight {
|
|
|
1375
1390
|
* @param metadata A {@link Arrow.Buffer}.
|
|
1376
1391
|
* @returns `true` on success, `false` on error.
|
|
1377
1392
|
* @since 18.0.0
|
|
1393
|
+
* @throws GLib.Error
|
|
1378
1394
|
*/
|
|
1379
1395
|
write_metadata(metadata: Arrow.Buffer): boolean;
|
|
1380
1396
|
|
|
@@ -1384,6 +1400,7 @@ export namespace ArrowFlight {
|
|
|
1384
1400
|
* @param metadata A {@link Arrow.Buffer}.
|
|
1385
1401
|
* @returns `true` on success, `false` on error.
|
|
1386
1402
|
* @since 18.0.0
|
|
1403
|
+
* @throws GLib.Error
|
|
1387
1404
|
*/
|
|
1388
1405
|
write_record_batch(record_batch: Arrow.RecordBatch, metadata: Arrow.Buffer | null): boolean;
|
|
1389
1406
|
|
|
@@ -1479,6 +1496,7 @@ export namespace ArrowFlight {
|
|
|
1479
1496
|
* @param ticket A {@link ArrowFlight.Ticket}.
|
|
1480
1497
|
* @returns {@link ArrowFlight.DataStream} on success, `null` on error.
|
|
1481
1498
|
* @since 6.0.0
|
|
1499
|
+
* @throws GLib.Error
|
|
1482
1500
|
*/
|
|
1483
1501
|
do_get(context: ServerCallContext, ticket: Ticket): DataStream;
|
|
1484
1502
|
|
|
@@ -1489,6 +1507,7 @@ export namespace ArrowFlight {
|
|
|
1489
1507
|
* @param writer A {@link ArrowFlight.MetadataWriter}.
|
|
1490
1508
|
* @returns `true` on success, `false` on error.
|
|
1491
1509
|
* @since 18.0.0
|
|
1510
|
+
* @throws GLib.Error
|
|
1492
1511
|
*/
|
|
1493
1512
|
do_put(context: ServerCallContext, reader: MessageReader, writer: MetadataWriter): boolean;
|
|
1494
1513
|
|
|
@@ -1497,6 +1516,7 @@ export namespace ArrowFlight {
|
|
|
1497
1516
|
* @param request A {@link ArrowFlight.Descriptor}.
|
|
1498
1517
|
* @returns A {@link ArrowFlight.Info} on success, `null` on error.
|
|
1499
1518
|
* @since 9.0.0
|
|
1519
|
+
* @throws GLib.Error
|
|
1500
1520
|
*/
|
|
1501
1521
|
get_flight_info(context: ServerCallContext, request: Descriptor): Info;
|
|
1502
1522
|
|
|
@@ -1507,6 +1527,7 @@ export namespace ArrowFlight {
|
|
|
1507
1527
|
* @param criteria A {@link ArrowFlight.Criteria}.
|
|
1508
1528
|
* @returns {@link GLib.List} of {@link ArrowFlight.Info} on success, `null` on error.
|
|
1509
1529
|
* @since 5.0.0
|
|
1530
|
+
* @throws GLib.Error
|
|
1510
1531
|
*/
|
|
1511
1532
|
list_flights(context: ServerCallContext, criteria: Criteria | null): Info[];
|
|
1512
1533
|
|
|
@@ -1514,6 +1535,7 @@ export namespace ArrowFlight {
|
|
|
1514
1535
|
* @param options A {@link ArrowFlight.ServerOptions}.
|
|
1515
1536
|
* @returns `true` on success, `false` on error.
|
|
1516
1537
|
* @since 5.0.0
|
|
1538
|
+
* @throws GLib.Error
|
|
1517
1539
|
*/
|
|
1518
1540
|
listen(options: ServerOptions): boolean;
|
|
1519
1541
|
|
|
@@ -1522,9 +1544,13 @@ export namespace ArrowFlight {
|
|
|
1522
1544
|
* handler or another thread.
|
|
1523
1545
|
* @returns `true` on success, `false` on error.
|
|
1524
1546
|
* @since 5.0.0
|
|
1547
|
+
* @throws GLib.Error
|
|
1525
1548
|
*/
|
|
1526
1549
|
shutdown(): boolean;
|
|
1527
1550
|
|
|
1551
|
+
/**
|
|
1552
|
+
* @throws GLib.Error
|
|
1553
|
+
*/
|
|
1528
1554
|
wait(): boolean;
|
|
1529
1555
|
}
|
|
1530
1556
|
|
|
@@ -1638,6 +1664,7 @@ export namespace ArrowFlight {
|
|
|
1638
1664
|
* Reads a message from the client.
|
|
1639
1665
|
* @returns Read data as {@link GLib.Bytes} on success, `null` on error.
|
|
1640
1666
|
* @since 12.0.0
|
|
1667
|
+
* @throws GLib.Error
|
|
1641
1668
|
*/
|
|
1642
1669
|
read(): GLib.Bytes | null;
|
|
1643
1670
|
}
|
|
@@ -1700,6 +1727,7 @@ export namespace ArrowFlight {
|
|
|
1700
1727
|
* @param message A {@link GLib.Bytes} to be sent.
|
|
1701
1728
|
* @returns `true` on success, `false` on error.
|
|
1702
1729
|
* @since 12.0.0
|
|
1730
|
+
* @throws GLib.Error
|
|
1703
1731
|
*/
|
|
1704
1732
|
write(message: GLib.Bytes | Uint8Array): boolean;
|
|
1705
1733
|
}
|
|
@@ -1844,6 +1872,7 @@ export namespace ArrowFlight {
|
|
|
1844
1872
|
* @param sender A {@link ArrowFlight.ServerAuthSender}.
|
|
1845
1873
|
* @param reader A {@link ArrowFlight.ServerAuthReader}.
|
|
1846
1874
|
* @since 12.0.0
|
|
1875
|
+
* @throws GLib.Error
|
|
1847
1876
|
*/
|
|
1848
1877
|
authenticate(context: ServerCallContext, sender: ServerAuthSender, reader: ServerAuthReader): void;
|
|
1849
1878
|
|
|
@@ -1853,6 +1882,7 @@ export namespace ArrowFlight {
|
|
|
1853
1882
|
* @param token The client token. May be the empty string if the client does not provide a token.
|
|
1854
1883
|
* @returns The identity of the peer, if this authentication method supports it.
|
|
1855
1884
|
* @since 12.0.0
|
|
1885
|
+
* @throws GLib.Error
|
|
1856
1886
|
*/
|
|
1857
1887
|
is_valid(context: ServerCallContext, token: GLib.Bytes | Uint8Array): GLib.Bytes | null;
|
|
1858
1888
|
}
|
|
@@ -2097,6 +2127,7 @@ export namespace ArrowFlight {
|
|
|
2097
2127
|
/**
|
|
2098
2128
|
* @returns `true` on success, `false` on error.
|
|
2099
2129
|
* @since 18.0.0
|
|
2130
|
+
* @throws GLib.Error
|
|
2100
2131
|
*/
|
|
2101
2132
|
done_writing(): boolean;
|
|
2102
2133
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/arrowflight-23.0",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"libraryVersion": "23.0.1",
|
|
5
5
|
"description": "GJS TypeScript type definitions for ArrowFlight-23.0, generated from library version 23.0.1",
|
|
6
6
|
"type": "module",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"test": "tsc --project tsconfig.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@girs/gjs": "^4.
|
|
36
|
-
"@girs/arrow-23.0": "^4.
|
|
37
|
-
"@girs/gio-2.0": "^4.
|
|
38
|
-
"@girs/gobject-2.0": "^4.
|
|
39
|
-
"@girs/glib-2.0": "^4.
|
|
40
|
-
"@girs/gmodule-2.0": "^4.
|
|
35
|
+
"@girs/gjs": "^4.6.0",
|
|
36
|
+
"@girs/arrow-23.0": "^4.6.0",
|
|
37
|
+
"@girs/gio-2.0": "^4.6.0",
|
|
38
|
+
"@girs/gobject-2.0": "^4.6.0",
|
|
39
|
+
"@girs/glib-2.0": "^4.6.0",
|
|
40
|
+
"@girs/gmodule-2.0": "^4.6.0" },
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"typescript": "*"
|
|
43
43
|
},
|