@girs/arrowflight-23.0 4.3.0 → 4.5.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 +84 -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.5.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
|
|
|
@@ -119,17 +122,20 @@ export namespace ArrowFlight {
|
|
|
119
122
|
* Add a header.
|
|
120
123
|
* @param name A header name.
|
|
121
124
|
* @param value A header value.
|
|
125
|
+
* @since 9.0.0
|
|
122
126
|
*/
|
|
123
127
|
add_header(name: string, value: string): void;
|
|
124
128
|
|
|
125
129
|
/**
|
|
126
130
|
* Clear all headers.
|
|
131
|
+
* @since 9.0.0
|
|
127
132
|
*/
|
|
128
133
|
clear_headers(): void;
|
|
129
134
|
|
|
130
135
|
/**
|
|
131
136
|
* Iterates over all headers in the options.
|
|
132
137
|
* @param func The user's callback function.
|
|
138
|
+
* @since 9.0.0
|
|
133
139
|
*/
|
|
134
140
|
foreach_header(func: HeaderFunc): void;
|
|
135
141
|
}
|
|
@@ -195,11 +201,15 @@ export namespace ArrowFlight {
|
|
|
195
201
|
* @param password Password to be used.
|
|
196
202
|
* @param options A {@link ArrowFlight.CallOptions}.
|
|
197
203
|
* @returns `true` on success, `false` if there was an error.
|
|
204
|
+
* @since 12.0.0
|
|
205
|
+
* @throws GLib.Error
|
|
198
206
|
*/
|
|
199
207
|
authenticate_basic_token(user: string, password: string, options: CallOptions | null): [boolean, string, string];
|
|
200
208
|
|
|
201
209
|
/**
|
|
202
210
|
* @returns `true` on success, `false` if there was an error.
|
|
211
|
+
* @since 8.0.0
|
|
212
|
+
* @throws GLib.Error
|
|
203
213
|
*/
|
|
204
214
|
close(): boolean;
|
|
205
215
|
|
|
@@ -207,6 +217,8 @@ export namespace ArrowFlight {
|
|
|
207
217
|
* @param ticket A {@link ArrowFlight.Ticket}.
|
|
208
218
|
* @param options A {@link ArrowFlight.CallOptions}.
|
|
209
219
|
* @returns The {@link ArrowFlight.StreamReader} to read record batched from the server on success, `null` on error.
|
|
220
|
+
* @since 6.0.0
|
|
221
|
+
* @throws GLib.Error
|
|
210
222
|
*/
|
|
211
223
|
do_get(ticket: Ticket, options: CallOptions | null): StreamReader | null;
|
|
212
224
|
|
|
@@ -222,6 +234,8 @@ export namespace ArrowFlight {
|
|
|
222
234
|
* @param schema A {@link Arrow.Schema}.
|
|
223
235
|
* @param options A {@link ArrowFlight.CallOptions}.
|
|
224
236
|
* @returns The `GAFlighDoPutResult` holding a reader and a writer on success, `null` on error.
|
|
237
|
+
* @since 18.0.0
|
|
238
|
+
* @throws GLib.Error
|
|
225
239
|
*/
|
|
226
240
|
do_put(descriptor: Descriptor, schema: Arrow.Schema, options: CallOptions | null): DoPutResult | null;
|
|
227
241
|
|
|
@@ -229,6 +243,8 @@ export namespace ArrowFlight {
|
|
|
229
243
|
* @param descriptor A {@link ArrowFlight.Descriptor} to be processed.
|
|
230
244
|
* @param options A {@link ArrowFlight.CallOptions}.
|
|
231
245
|
* @returns The returned {@link ArrowFlight.Info} on success, `null` on error.
|
|
246
|
+
* @since 9.0.0
|
|
247
|
+
* @throws GLib.Error
|
|
232
248
|
*/
|
|
233
249
|
get_flight_info(descriptor: Descriptor, options: CallOptions | null): Info | null;
|
|
234
250
|
|
|
@@ -236,6 +252,8 @@ export namespace ArrowFlight {
|
|
|
236
252
|
* @param criteria A {@link ArrowFlight.Criteria}.
|
|
237
253
|
* @param options A {@link ArrowFlight.CallOptions}.
|
|
238
254
|
* @returns The returned list of {@link ArrowFlight.Info} on success, `null` on error.
|
|
255
|
+
* @since 5.0.0
|
|
256
|
+
* @throws GLib.Error
|
|
239
257
|
*/
|
|
240
258
|
list_flights(criteria: Criteria | null, options: CallOptions | null): Info[] | null;
|
|
241
259
|
}
|
|
@@ -455,6 +473,7 @@ export namespace ArrowFlight {
|
|
|
455
473
|
// Methods
|
|
456
474
|
/**
|
|
457
475
|
* @returns The opaque value used to express a command. It should be freed with `g_free()` when no longer needed.
|
|
476
|
+
* @since 5.0.0
|
|
458
477
|
*/
|
|
459
478
|
get_command(): string;
|
|
460
479
|
}
|
|
@@ -625,11 +644,13 @@ export namespace ArrowFlight {
|
|
|
625
644
|
/**
|
|
626
645
|
* @param other_descriptor A {@link ArrowFlight.Descriptor} to be compared.
|
|
627
646
|
* @returns `true` if both of them represents the same descriptor, `false` otherwise.
|
|
647
|
+
* @since 5.0.0
|
|
628
648
|
*/
|
|
629
649
|
equal(other_descriptor: Descriptor): boolean;
|
|
630
650
|
|
|
631
651
|
/**
|
|
632
652
|
* @returns A descriptor as a string. It should be freed with `g_free()` when no longer needed.
|
|
653
|
+
* @since 5.0.0
|
|
633
654
|
*/
|
|
634
655
|
to_string(): string;
|
|
635
656
|
}
|
|
@@ -765,11 +786,13 @@ export namespace ArrowFlight {
|
|
|
765
786
|
/**
|
|
766
787
|
* @param other_endpoint A {@link ArrowFlight.Endpoint} to be compared.
|
|
767
788
|
* @returns `true` if both of them represents the same endpoint, `false` otherwise.
|
|
789
|
+
* @since 5.0.0
|
|
768
790
|
*/
|
|
769
791
|
equal(other_endpoint: Endpoint): boolean;
|
|
770
792
|
|
|
771
793
|
/**
|
|
772
794
|
* @returns The locations in this endpoint. It must be freed with `g_list_free()` and `g_object_unref()` when no longer needed. You can use `g_list_free_full(locations, g_object_unref)`.
|
|
795
|
+
* @since 5.0.0
|
|
773
796
|
*/
|
|
774
797
|
get_locations(): Location[] | null;
|
|
775
798
|
}
|
|
@@ -832,32 +855,39 @@ export namespace ArrowFlight {
|
|
|
832
855
|
/**
|
|
833
856
|
* @param other_info A {@link ArrowFlight.Info} to be compared.
|
|
834
857
|
* @returns `true` if both of them represents the same information, `false` otherwise.
|
|
858
|
+
* @since 5.0.0
|
|
835
859
|
*/
|
|
836
860
|
equal(other_info: Info): boolean;
|
|
837
861
|
|
|
838
862
|
/**
|
|
839
863
|
* @returns The {@link ArrowFlight.Descriptor} of the information.
|
|
864
|
+
* @since 5.0.0
|
|
840
865
|
*/
|
|
841
866
|
get_descriptor(): Descriptor;
|
|
842
867
|
|
|
843
868
|
/**
|
|
844
869
|
* @returns The list of {@link ArrowFlight.Endpoint} of the information.
|
|
870
|
+
* @since 5.0.0
|
|
845
871
|
*/
|
|
846
872
|
get_endpoints(): Endpoint[];
|
|
847
873
|
|
|
848
874
|
/**
|
|
849
875
|
* @param options A {@link Arrow.ReadOptions}.
|
|
850
876
|
* @returns Deserialized {@link Arrow.Schema}, `null` on error.
|
|
877
|
+
* @since 5.0.0
|
|
878
|
+
* @throws GLib.Error
|
|
851
879
|
*/
|
|
852
880
|
get_schema(options: Arrow.ReadOptions | null): Arrow.Schema;
|
|
853
881
|
|
|
854
882
|
/**
|
|
855
883
|
* @returns The number of total bytes of the information.
|
|
884
|
+
* @since 5.0.0
|
|
856
885
|
*/
|
|
857
886
|
get_total_bytes(): number;
|
|
858
887
|
|
|
859
888
|
/**
|
|
860
889
|
* @returns The number of total records of the information.
|
|
890
|
+
* @since 5.0.0
|
|
861
891
|
*/
|
|
862
892
|
get_total_records(): number;
|
|
863
893
|
}
|
|
@@ -910,16 +940,19 @@ export namespace ArrowFlight {
|
|
|
910
940
|
/**
|
|
911
941
|
* @param other_location A {@link ArrowFlight.Location} to be compared.
|
|
912
942
|
* @returns `true` if both of them represents the same URI, `false` otherwise.
|
|
943
|
+
* @since 5.0.0
|
|
913
944
|
*/
|
|
914
945
|
equal(other_location: Location): boolean;
|
|
915
946
|
|
|
916
947
|
/**
|
|
917
948
|
* @returns The scheme of this URI. It should be freed with `g_free()` when no longer needed.
|
|
949
|
+
* @since 5.0.0
|
|
918
950
|
*/
|
|
919
951
|
get_scheme(): string;
|
|
920
952
|
|
|
921
953
|
/**
|
|
922
954
|
* @returns A representation of this URI as a string. It should be freed with `g_free()` when no longer needed.
|
|
955
|
+
* @since 5.0.0
|
|
923
956
|
*/
|
|
924
957
|
to_string(): string;
|
|
925
958
|
}
|
|
@@ -972,6 +1005,7 @@ export namespace ArrowFlight {
|
|
|
972
1005
|
// Methods
|
|
973
1006
|
/**
|
|
974
1007
|
* @returns The descriptor for this upload.
|
|
1008
|
+
* @since 14.0.0
|
|
975
1009
|
*/
|
|
976
1010
|
get_descriptor(): Descriptor;
|
|
977
1011
|
}
|
|
@@ -1031,6 +1065,8 @@ export namespace ArrowFlight {
|
|
|
1031
1065
|
// Methods
|
|
1032
1066
|
/**
|
|
1033
1067
|
* @returns The metadata on success, `null` on error.
|
|
1068
|
+
* @since 18.0.0
|
|
1069
|
+
* @throws GLib.Error
|
|
1034
1070
|
*/
|
|
1035
1071
|
read(): Arrow.Buffer;
|
|
1036
1072
|
}
|
|
@@ -1092,6 +1128,8 @@ export namespace ArrowFlight {
|
|
|
1092
1128
|
* Writes metadata to the client.
|
|
1093
1129
|
* @param metadata A {@link Arrow.Buffer} to be sent.
|
|
1094
1130
|
* @returns `true` on success, `false` on error.
|
|
1131
|
+
* @since 18.0.0
|
|
1132
|
+
* @throws GLib.Error
|
|
1095
1133
|
*/
|
|
1096
1134
|
write(metadata: Arrow.Buffer): boolean;
|
|
1097
1135
|
}
|
|
@@ -1145,6 +1183,7 @@ export namespace ArrowFlight {
|
|
|
1145
1183
|
// Methods
|
|
1146
1184
|
/**
|
|
1147
1185
|
* @returns The paths in this descriptor. It must be freed with `g_strfreev()` when no longer needed.
|
|
1186
|
+
* @since 5.0.0
|
|
1148
1187
|
*/
|
|
1149
1188
|
get_paths(): string[] | null;
|
|
1150
1189
|
}
|
|
@@ -1219,11 +1258,15 @@ export namespace ArrowFlight {
|
|
|
1219
1258
|
// Methods
|
|
1220
1259
|
/**
|
|
1221
1260
|
* @returns The all data on success, `null` on error.
|
|
1261
|
+
* @since 6.0.0
|
|
1262
|
+
* @throws GLib.Error
|
|
1222
1263
|
*/
|
|
1223
1264
|
read_all(): Arrow.Table;
|
|
1224
1265
|
|
|
1225
1266
|
/**
|
|
1226
1267
|
* @returns The next chunk on success, `null` on end of stream, `null` on error.
|
|
1268
|
+
* @since 6.0.0
|
|
1269
|
+
* @throws GLib.Error
|
|
1227
1270
|
*/
|
|
1228
1271
|
read_next(): StreamChunk;
|
|
1229
1272
|
}
|
|
@@ -1337,6 +1380,8 @@ export namespace ArrowFlight {
|
|
|
1337
1380
|
* @param schema A {@link Arrow.Schema}.
|
|
1338
1381
|
* @param options A {@link Arrow.WriteOptions}.
|
|
1339
1382
|
* @returns `true` on success, `false` on error.
|
|
1383
|
+
* @since 18.0.0
|
|
1384
|
+
* @throws GLib.Error
|
|
1340
1385
|
*/
|
|
1341
1386
|
begin(schema: Arrow.Schema, options: Arrow.WriteOptions | null): boolean;
|
|
1342
1387
|
|
|
@@ -1344,6 +1389,8 @@ export namespace ArrowFlight {
|
|
|
1344
1389
|
* Write metadata.
|
|
1345
1390
|
* @param metadata A {@link Arrow.Buffer}.
|
|
1346
1391
|
* @returns `true` on success, `false` on error.
|
|
1392
|
+
* @since 18.0.0
|
|
1393
|
+
* @throws GLib.Error
|
|
1347
1394
|
*/
|
|
1348
1395
|
write_metadata(metadata: Arrow.Buffer): boolean;
|
|
1349
1396
|
|
|
@@ -1352,6 +1399,8 @@ export namespace ArrowFlight {
|
|
|
1352
1399
|
* @param record_batch A {@link Arrow.RecordBatch}.
|
|
1353
1400
|
* @param metadata A {@link Arrow.Buffer}.
|
|
1354
1401
|
* @returns `true` on success, `false` on error.
|
|
1402
|
+
* @since 18.0.0
|
|
1403
|
+
* @throws GLib.Error
|
|
1355
1404
|
*/
|
|
1356
1405
|
write_record_batch(record_batch: Arrow.RecordBatch, metadata: Arrow.Buffer | null): boolean;
|
|
1357
1406
|
|
|
@@ -1409,6 +1458,7 @@ export namespace ArrowFlight {
|
|
|
1409
1458
|
* A virtual function to implement `DoGet` API.
|
|
1410
1459
|
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1411
1460
|
* @param ticket A {@link ArrowFlight.Ticket}.
|
|
1461
|
+
* @since 6.0.0
|
|
1412
1462
|
* @virtual
|
|
1413
1463
|
*/
|
|
1414
1464
|
vfunc_do_get(context: ServerCallContext, ticket: Ticket): DataStream;
|
|
@@ -1418,6 +1468,7 @@ export namespace ArrowFlight {
|
|
|
1418
1468
|
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1419
1469
|
* @param reader A {@link ArrowFlight.MessageReader}.
|
|
1420
1470
|
* @param writer A {@link ArrowFlight.MetadataWriter}.
|
|
1471
|
+
* @since 18.0.0
|
|
1421
1472
|
* @virtual
|
|
1422
1473
|
*/
|
|
1423
1474
|
vfunc_do_put(context: ServerCallContext, reader: MessageReader, writer: MetadataWriter): boolean;
|
|
@@ -1425,6 +1476,7 @@ export namespace ArrowFlight {
|
|
|
1425
1476
|
/**
|
|
1426
1477
|
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1427
1478
|
* @param request A {@link ArrowFlight.Descriptor}.
|
|
1479
|
+
* @since 9.0.0
|
|
1428
1480
|
* @virtual
|
|
1429
1481
|
*/
|
|
1430
1482
|
vfunc_get_flight_info(context: ServerCallContext, request: Descriptor): Info;
|
|
@@ -1433,6 +1485,7 @@ export namespace ArrowFlight {
|
|
|
1433
1485
|
* A virtual function to implement `ListFlights` API.
|
|
1434
1486
|
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1435
1487
|
* @param criteria A {@link ArrowFlight.Criteria}.
|
|
1488
|
+
* @since 5.0.0
|
|
1436
1489
|
* @virtual
|
|
1437
1490
|
*/
|
|
1438
1491
|
vfunc_list_flights(context: ServerCallContext, criteria: Criteria | null): Info[];
|
|
@@ -1442,6 +1495,8 @@ export namespace ArrowFlight {
|
|
|
1442
1495
|
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1443
1496
|
* @param ticket A {@link ArrowFlight.Ticket}.
|
|
1444
1497
|
* @returns {@link ArrowFlight.DataStream} on success, `null` on error.
|
|
1498
|
+
* @since 6.0.0
|
|
1499
|
+
* @throws GLib.Error
|
|
1445
1500
|
*/
|
|
1446
1501
|
do_get(context: ServerCallContext, ticket: Ticket): DataStream;
|
|
1447
1502
|
|
|
@@ -1451,6 +1506,8 @@ export namespace ArrowFlight {
|
|
|
1451
1506
|
* @param reader A {@link ArrowFlight.MessageReader}.
|
|
1452
1507
|
* @param writer A {@link ArrowFlight.MetadataWriter}.
|
|
1453
1508
|
* @returns `true` on success, `false` on error.
|
|
1509
|
+
* @since 18.0.0
|
|
1510
|
+
* @throws GLib.Error
|
|
1454
1511
|
*/
|
|
1455
1512
|
do_put(context: ServerCallContext, reader: MessageReader, writer: MetadataWriter): boolean;
|
|
1456
1513
|
|
|
@@ -1458,6 +1515,8 @@ export namespace ArrowFlight {
|
|
|
1458
1515
|
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1459
1516
|
* @param request A {@link ArrowFlight.Descriptor}.
|
|
1460
1517
|
* @returns A {@link ArrowFlight.Info} on success, `null` on error.
|
|
1518
|
+
* @since 9.0.0
|
|
1519
|
+
* @throws GLib.Error
|
|
1461
1520
|
*/
|
|
1462
1521
|
get_flight_info(context: ServerCallContext, request: Descriptor): Info;
|
|
1463
1522
|
|
|
@@ -1467,12 +1526,16 @@ export namespace ArrowFlight {
|
|
|
1467
1526
|
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1468
1527
|
* @param criteria A {@link ArrowFlight.Criteria}.
|
|
1469
1528
|
* @returns {@link GLib.List} of {@link ArrowFlight.Info} on success, `null` on error.
|
|
1529
|
+
* @since 5.0.0
|
|
1530
|
+
* @throws GLib.Error
|
|
1470
1531
|
*/
|
|
1471
1532
|
list_flights(context: ServerCallContext, criteria: Criteria | null): Info[];
|
|
1472
1533
|
|
|
1473
1534
|
/**
|
|
1474
1535
|
* @param options A {@link ArrowFlight.ServerOptions}.
|
|
1475
1536
|
* @returns `true` on success, `false` on error.
|
|
1537
|
+
* @since 5.0.0
|
|
1538
|
+
* @throws GLib.Error
|
|
1476
1539
|
*/
|
|
1477
1540
|
listen(options: ServerOptions): boolean;
|
|
1478
1541
|
|
|
@@ -1480,9 +1543,14 @@ export namespace ArrowFlight {
|
|
|
1480
1543
|
* Shuts down the serve. This function can be called from signal
|
|
1481
1544
|
* handler or another thread.
|
|
1482
1545
|
* @returns `true` on success, `false` on error.
|
|
1546
|
+
* @since 5.0.0
|
|
1547
|
+
* @throws GLib.Error
|
|
1483
1548
|
*/
|
|
1484
1549
|
shutdown(): boolean;
|
|
1485
1550
|
|
|
1551
|
+
/**
|
|
1552
|
+
* @throws GLib.Error
|
|
1553
|
+
*/
|
|
1486
1554
|
wait(): boolean;
|
|
1487
1555
|
}
|
|
1488
1556
|
|
|
@@ -1595,6 +1663,8 @@ export namespace ArrowFlight {
|
|
|
1595
1663
|
/**
|
|
1596
1664
|
* Reads a message from the client.
|
|
1597
1665
|
* @returns Read data as {@link GLib.Bytes} on success, `null` on error.
|
|
1666
|
+
* @since 12.0.0
|
|
1667
|
+
* @throws GLib.Error
|
|
1598
1668
|
*/
|
|
1599
1669
|
read(): GLib.Bytes | null;
|
|
1600
1670
|
}
|
|
@@ -1656,6 +1726,8 @@ export namespace ArrowFlight {
|
|
|
1656
1726
|
* Writes a message to the client.
|
|
1657
1727
|
* @param message A {@link GLib.Bytes} to be sent.
|
|
1658
1728
|
* @returns `true` on success, `false` on error.
|
|
1729
|
+
* @since 12.0.0
|
|
1730
|
+
* @throws GLib.Error
|
|
1659
1731
|
*/
|
|
1660
1732
|
write(message: GLib.Bytes | Uint8Array): boolean;
|
|
1661
1733
|
}
|
|
@@ -1722,6 +1794,7 @@ export namespace ArrowFlight {
|
|
|
1722
1794
|
/**
|
|
1723
1795
|
* Iterates over all incoming headers.
|
|
1724
1796
|
* @param func The user's callback function.
|
|
1797
|
+
* @since 14.0.0
|
|
1725
1798
|
*/
|
|
1726
1799
|
foreach_incoming_header(func: HeaderFunc): void;
|
|
1727
1800
|
}
|
|
@@ -1777,6 +1850,7 @@ export namespace ArrowFlight {
|
|
|
1777
1850
|
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1778
1851
|
* @param sender A {@link ArrowFlight.ServerAuthSender}.
|
|
1779
1852
|
* @param reader A {@link ArrowFlight.ServerAuthReader}.
|
|
1853
|
+
* @since 12.0.0
|
|
1780
1854
|
* @virtual
|
|
1781
1855
|
*/
|
|
1782
1856
|
vfunc_authenticate(context: ServerCallContext, sender: ServerAuthSender, reader: ServerAuthReader): void;
|
|
@@ -1785,6 +1859,7 @@ export namespace ArrowFlight {
|
|
|
1785
1859
|
* Validates a per-call client token.
|
|
1786
1860
|
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1787
1861
|
* @param token The client token. May be the empty string if the client does not provide a token.
|
|
1862
|
+
* @since 12.0.0
|
|
1788
1863
|
* @virtual
|
|
1789
1864
|
*/
|
|
1790
1865
|
vfunc_is_valid(context: ServerCallContext, token: GLib.Bytes): GLib.Bytes | Uint8Array | null;
|
|
@@ -1796,6 +1871,8 @@ export namespace ArrowFlight {
|
|
|
1796
1871
|
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1797
1872
|
* @param sender A {@link ArrowFlight.ServerAuthSender}.
|
|
1798
1873
|
* @param reader A {@link ArrowFlight.ServerAuthReader}.
|
|
1874
|
+
* @since 12.0.0
|
|
1875
|
+
* @throws GLib.Error
|
|
1799
1876
|
*/
|
|
1800
1877
|
authenticate(context: ServerCallContext, sender: ServerAuthSender, reader: ServerAuthReader): void;
|
|
1801
1878
|
|
|
@@ -1804,6 +1881,8 @@ export namespace ArrowFlight {
|
|
|
1804
1881
|
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1805
1882
|
* @param token The client token. May be the empty string if the client does not provide a token.
|
|
1806
1883
|
* @returns The identity of the peer, if this authentication method supports it.
|
|
1884
|
+
* @since 12.0.0
|
|
1885
|
+
* @throws GLib.Error
|
|
1807
1886
|
*/
|
|
1808
1887
|
is_valid(context: ServerCallContext, token: GLib.Bytes | Uint8Array): GLib.Bytes | null;
|
|
1809
1888
|
}
|
|
@@ -1937,6 +2016,7 @@ export namespace ArrowFlight {
|
|
|
1937
2016
|
// Methods
|
|
1938
2017
|
/**
|
|
1939
2018
|
* @returns The data of the chunk.
|
|
2019
|
+
* @since 6.0.0
|
|
1940
2020
|
*/
|
|
1941
2021
|
get_data(): Arrow.RecordBatch;
|
|
1942
2022
|
|
|
@@ -1948,6 +2028,7 @@ export namespace ArrowFlight {
|
|
|
1948
2028
|
|
|
1949
2029
|
/**
|
|
1950
2030
|
* @returns The metadata of the chunk. The metadata may be NULL.
|
|
2031
|
+
* @since 6.0.0
|
|
1951
2032
|
*/
|
|
1952
2033
|
get_metadata(): Arrow.Buffer | null;
|
|
1953
2034
|
}
|
|
@@ -2045,6 +2126,8 @@ export namespace ArrowFlight {
|
|
|
2045
2126
|
// Methods
|
|
2046
2127
|
/**
|
|
2047
2128
|
* @returns `true` on success, `false` on error.
|
|
2129
|
+
* @since 18.0.0
|
|
2130
|
+
* @throws GLib.Error
|
|
2048
2131
|
*/
|
|
2049
2132
|
done_writing(): boolean;
|
|
2050
2133
|
}
|
|
@@ -2110,6 +2193,7 @@ export namespace ArrowFlight {
|
|
|
2110
2193
|
/**
|
|
2111
2194
|
* @param other_ticket A {@link ArrowFlight.Ticket} to be compared.
|
|
2112
2195
|
* @returns `true` if both of them represents the same ticket, `false` otherwise.
|
|
2196
|
+
* @since 5.0.0
|
|
2113
2197
|
*/
|
|
2114
2198
|
equal(other_ticket: Ticket): boolean;
|
|
2115
2199
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/arrowflight-23.0",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.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.5.0",
|
|
36
|
+
"@girs/arrow-23.0": "^4.5.0",
|
|
37
|
+
"@girs/gio-2.0": "^4.5.0",
|
|
38
|
+
"@girs/gobject-2.0": "^4.5.0",
|
|
39
|
+
"@girs/glib-2.0": "^4.5.0",
|
|
40
|
+
"@girs/gmodule-2.0": "^4.5.0" },
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"typescript": "*"
|
|
43
43
|
},
|