@holistics/anfra-sdk 0.18.0 → 0.20.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/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/app.d.ts +6 -5
- package/dist/app.js +4 -4
- package/dist/{bootstrap-q1J7GUxa.d.ts → bootstrap-DHU2haC5.d.ts} +12 -6
- package/dist/build.d.ts +2 -2
- package/dist/{chunk-GV7SVWEK.js → chunk-4TXKXLWK.js} +42 -11
- package/dist/{chunk-C26OVN2S.js → chunk-EIPHDMZ7.js} +25 -0
- package/dist/{chunk-B6URV5AO.js → chunk-FTTVLHNN.js} +1 -1
- package/dist/{chunk-SWNVCTT6.js → chunk-HELL45MM.js} +148 -2
- package/dist/{chunk-NS7HJHNK.js → chunk-KKSOTHP4.js} +1 -1
- package/dist/{chunk-3ZWUCECU.js → chunk-SXKJQU7A.js} +11 -2
- package/dist/{chunk-2O2WVQXO.js → chunk-T5T76SAR.js} +159 -23
- package/dist/common.d.ts +4 -3
- package/dist/common.js +1 -1
- package/dist/{data-TDUQTG3P.js → data-ESPFZ5IM.js} +1 -1
- package/dist/{declaration-RJFU4ZLJ.js → declaration-RYRBX7PH.js} +2 -2
- package/dist/{errors-IhdhKO-6.d.ts → errors-189T_Mnc.d.ts} +2 -2
- package/dist/host.d.ts +9 -2
- package/dist/host.js +108 -16
- package/dist/{menu-CRAFaQ8s.d.ts → menu-Cam-hOdJ.d.ts} +4 -2
- package/dist/{overview-AZCX6SY6.js → overview-AWPXJACF.js} +84 -43
- package/dist/{plugin-BdLabbah.d.ts → plugin-rRd-zHGt.d.ts} +2 -2
- package/dist/plugins.d.ts +1 -1
- package/dist/plugins.js +15 -11
- package/dist/{queries-5TTPOB7R.js → queries-FWMX7H5Z.js} +2 -2
- package/dist/runtimeErrors-gswksjDk.d.ts +55 -0
- package/dist/{structure-MTLCRTJ4.js → structure-VFRJFC4C.js} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +4 -4
- package/dist/{types-C_i7V0DA.d.ts → types-N0V9n38H.d.ts} +71 -72
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ interface paths {
|
|
|
13
13
|
};
|
|
14
14
|
get?: never;
|
|
15
15
|
put?: never;
|
|
16
|
-
/** Build the local search catalog from context sources */
|
|
16
|
+
/** Build the local search catalog from the repo's context sources */
|
|
17
17
|
post: operations["core.ingest"];
|
|
18
18
|
delete?: never;
|
|
19
19
|
options?: never;
|
|
@@ -31,9 +31,8 @@ interface paths {
|
|
|
31
31
|
get?: never;
|
|
32
32
|
put?: never;
|
|
33
33
|
/**
|
|
34
|
-
* Trace fields through the local catalog
|
|
35
|
-
* @description Trace each field through the local catalog to
|
|
36
|
-
* sources upstream of it), as a diagram: cards in layers, upstream first, linked by what uses it.
|
|
34
|
+
* Trace fields through the local catalog to what each one is built from
|
|
35
|
+
* @description Trace each field through the local catalog to the fields, models, and sources it is built from. Return each field's lineage as a diagram to draw, with cards in layers from upstream to downstream, and the links between them.
|
|
37
36
|
*/
|
|
38
37
|
post: operations["core.lineage"];
|
|
39
38
|
delete?: never;
|
|
@@ -52,10 +51,12 @@ interface paths {
|
|
|
52
51
|
get?: never;
|
|
53
52
|
put?: never;
|
|
54
53
|
/**
|
|
55
|
-
* Run a query
|
|
56
|
-
* @description
|
|
57
|
-
*
|
|
58
|
-
*
|
|
54
|
+
* Run a query, and return its rows and the SQL that produced them
|
|
55
|
+
* @description Run a query, and return a page of its rows and the SQL that produced them.
|
|
56
|
+
*
|
|
57
|
+
* A page is page_size rows, or the first 10000 without it, and has_more says whether there may be more. Rather than paging through many rows, ask the query for what you need: an aggregate, a filter, or a limit: directive. To get every row of a large result, export it.
|
|
58
|
+
*
|
|
59
|
+
* Over HTTP, a request that accepts application/x-ndjson gets the result as the query runs: its phase, its SQL, its columns, then its rows in batches. Without page_size, that's every row, up to the server's maximum.
|
|
59
60
|
*/
|
|
60
61
|
post: operations["core.query"];
|
|
61
62
|
delete?: never;
|
|
@@ -91,10 +92,8 @@ interface paths {
|
|
|
91
92
|
get?: never;
|
|
92
93
|
put?: never;
|
|
93
94
|
/**
|
|
94
|
-
* Export a query's whole result as a file
|
|
95
|
-
* @description Export a query's whole result as a file
|
|
96
|
-
*
|
|
97
|
-
* The query runs to completion before the answer, so a query that fails fails here. The CLI downloads the file, to stdout or --output; --link prints the answer instead.
|
|
95
|
+
* Export a query's whole result as a file to download
|
|
96
|
+
* @description Export a query's whole result as a file, and return a link to download it once the file is ready.
|
|
98
97
|
*/
|
|
99
98
|
post: operations["core.query.export"];
|
|
100
99
|
delete?: never;
|
|
@@ -112,7 +111,7 @@ interface paths {
|
|
|
112
111
|
};
|
|
113
112
|
get?: never;
|
|
114
113
|
put?: never;
|
|
115
|
-
/** Validate a query
|
|
114
|
+
/** Validate a query without running it, and return its diagnostics */
|
|
116
115
|
post: operations["core.query.validate"];
|
|
117
116
|
delete?: never;
|
|
118
117
|
options?: never;
|
|
@@ -147,12 +146,10 @@ interface paths {
|
|
|
147
146
|
get?: never;
|
|
148
147
|
put?: never;
|
|
149
148
|
/**
|
|
150
|
-
* Show the repo's datasets, or one dataset
|
|
151
|
-
* @description Show
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
* wrong in the repo for it comes with it, as diagnostics: files that do not compile, a data source
|
|
155
|
-
* it does not configure.
|
|
149
|
+
* Show the repo's datasets, or one dataset, with their models, fields, and metrics
|
|
150
|
+
* @description Show the repo's datasets, or one dataset, with their models, fields, and metrics, as AQL can query them.
|
|
151
|
+
*
|
|
152
|
+
* With no fqn, it shows the repo and every dataset in full, and with a dataset's fqn, that dataset in full. It shows names, labels, types, roles, and AQL definitions, never SQL or tables. Problems that affect the result come with it as diagnostics, such as a file that doesn't compile, or a data source the repo doesn't configure.
|
|
156
153
|
*/
|
|
157
154
|
post: operations["core.show"];
|
|
158
155
|
delete?: never;
|
|
@@ -171,8 +168,8 @@ interface paths {
|
|
|
171
168
|
get?: never;
|
|
172
169
|
put?: never;
|
|
173
170
|
/**
|
|
174
|
-
* Report the repo, and whether
|
|
175
|
-
* @description Report the repo, and whether
|
|
171
|
+
* Report the repo, and whether anfra serve is running and its sidecars are healthy
|
|
172
|
+
* @description Report the repo, and whether `anfra serve` is running and its sidecars are healthy.
|
|
176
173
|
*
|
|
177
174
|
* For this anfra's own version, and whether it is behind, see `anfra version`.
|
|
178
175
|
*/
|
|
@@ -238,7 +235,7 @@ interface components {
|
|
|
238
235
|
adhoc: boolean;
|
|
239
236
|
/** @description an aggregated field's aggregation, such as sum or count distinct */
|
|
240
237
|
aggregation?: string;
|
|
241
|
-
/** @description the Arrow type
|
|
238
|
+
/** @description the column's Arrow type, which says how its values are written. Absent before the query runs. */
|
|
242
239
|
arrow_type?: {
|
|
243
240
|
/** @description the type as arrow-go spells it, such as decimal(38, 2): for people, not to decide on */
|
|
244
241
|
label: string;
|
|
@@ -247,18 +244,18 @@ interface components {
|
|
|
247
244
|
} & {
|
|
248
245
|
[key: string]: unknown;
|
|
249
246
|
};
|
|
250
|
-
/** @description the database's own name
|
|
247
|
+
/** @description the database's own name for the column's type, for debugging only. Don't base decisions on it, because it varies by database and driver. Absent before the query runs. */
|
|
251
248
|
db_type?: string;
|
|
252
|
-
/** @description the field it draws
|
|
249
|
+
/** @description the field it draws, or for an adhoc column, its name */
|
|
253
250
|
fieldName: string;
|
|
254
251
|
isMeasure: boolean;
|
|
255
252
|
label: string;
|
|
256
|
-
/** @description the model of fieldName, as the dataset names it
|
|
253
|
+
/** @description the model of fieldName, as the dataset names it. Absent for a dataset metric or an adhoc column. */
|
|
257
254
|
modelId?: string;
|
|
258
255
|
/** @description the column's key, as in fields */
|
|
259
256
|
name: string;
|
|
260
257
|
/**
|
|
261
|
-
* @description
|
|
258
|
+
* @description the column's (database-agnostic) type in the semantic layer, such as number, date, or truefalse. Read the values by it. "bit" is a true or false stored as a bit, written as true and false or as "1" and "0", depending on how the database produced it. "unknown" is a type that has no meaning in AML, such as time or duration. Absent when no AQL typed the column, as for a SQL query or AQL that isn't an explore, so read arrow_type instead.
|
|
262
259
|
* @enum {string}
|
|
263
260
|
*/
|
|
264
261
|
semantic_type?: "bit" | "date" | "datetime" | "json" | "number" | "text" | "truefalse" | "unknown";
|
|
@@ -272,9 +269,9 @@ interface components {
|
|
|
272
269
|
row?: number;
|
|
273
270
|
};
|
|
274
271
|
CompiledQuery: {
|
|
275
|
-
/** @description the AQL
|
|
272
|
+
/** @description the final AQL (with the Query Input applied). Absent for a SQL query. */
|
|
276
273
|
aql?: string;
|
|
277
|
-
/** @description what each column of an explore query's
|
|
274
|
+
/** @description what each column of an explore query's result will be, with its semantic type. Absent for other queries. */
|
|
278
275
|
columns?: components["schemas"]["Column"][];
|
|
279
276
|
sql: string;
|
|
280
277
|
};
|
|
@@ -292,7 +289,7 @@ interface components {
|
|
|
292
289
|
layers: components["schemas"]["DiagramLayer"][];
|
|
293
290
|
/** @description the ids of this page's matched entities, in search order */
|
|
294
291
|
matched: string[];
|
|
295
|
-
/** @description the
|
|
292
|
+
/** @description the search query that finds the lineage */
|
|
296
293
|
query: string;
|
|
297
294
|
schema: components["schemas"]["DiagramSchema"];
|
|
298
295
|
/**
|
|
@@ -307,20 +304,20 @@ interface components {
|
|
|
307
304
|
version: 2;
|
|
308
305
|
};
|
|
309
306
|
DiagramCard: {
|
|
310
|
-
/** @description
|
|
307
|
+
/** @description whether the card's entity is usually nested in another card, but its container isn't in the lineage */
|
|
311
308
|
detached?: boolean;
|
|
312
309
|
/** @description the catalog's id of the entity */
|
|
313
310
|
id: string;
|
|
314
311
|
label: string;
|
|
315
312
|
/** Format: int64 */
|
|
316
313
|
layer: number;
|
|
317
|
-
/** @description the
|
|
314
|
+
/** @description the links that start at this node */
|
|
318
315
|
links?: components["schemas"]["DiagramLink"][];
|
|
319
316
|
/** @description the entity's properties */
|
|
320
317
|
props?: {
|
|
321
318
|
[key: string]: unknown;
|
|
322
319
|
};
|
|
323
|
-
/** @description the entity this node is a copy of */
|
|
320
|
+
/** @description the id of the entity this node is a copy of, such as the model's field behind a dataset's field */
|
|
324
321
|
ref?: string;
|
|
325
322
|
/** @description the node's children, grouped by type */
|
|
326
323
|
sections?: components["schemas"]["DiagramSection"][];
|
|
@@ -349,13 +346,13 @@ interface components {
|
|
|
349
346
|
/** @description the catalog's id of the entity */
|
|
350
347
|
id: string;
|
|
351
348
|
label: string;
|
|
352
|
-
/** @description the
|
|
349
|
+
/** @description the links that start at this node */
|
|
353
350
|
links?: components["schemas"]["DiagramLink"][];
|
|
354
351
|
/** @description the entity's properties */
|
|
355
352
|
props?: {
|
|
356
353
|
[key: string]: unknown;
|
|
357
354
|
};
|
|
358
|
-
/** @description the entity this node is a copy of */
|
|
355
|
+
/** @description the id of the entity this node is a copy of, such as the model's field behind a dataset's field */
|
|
359
356
|
ref?: string;
|
|
360
357
|
/** @description the node's children, grouped by type */
|
|
361
358
|
sections?: components["schemas"]["DiagramSection"][];
|
|
@@ -422,7 +419,7 @@ interface components {
|
|
|
422
419
|
/** @constant */
|
|
423
420
|
status: 400;
|
|
424
421
|
};
|
|
425
|
-
/** @description The page is larger than this server
|
|
422
|
+
/** @description The page is larger than this server may return at once. */
|
|
426
423
|
ErrorBodyPageTooLarge: {
|
|
427
424
|
/** @constant */
|
|
428
425
|
code: "page_too_large";
|
|
@@ -473,7 +470,7 @@ interface components {
|
|
|
473
470
|
/** @constant */
|
|
474
471
|
status: 422;
|
|
475
472
|
};
|
|
476
|
-
/** @description A sidecar is unavailable. */
|
|
473
|
+
/** @description A sidecar (a process anfra runs to compile AML or run queries) is unavailable. */
|
|
477
474
|
ErrorBodySidecarUnavailable: {
|
|
478
475
|
/** @constant */
|
|
479
476
|
code: "sidecar_unavailable";
|
|
@@ -502,7 +499,7 @@ interface components {
|
|
|
502
499
|
/** @description csv: start the file with a UTF-8 byte-order mark, which Excel needs to read non-ASCII text; set it for a file a person will open */
|
|
503
500
|
bom?: boolean;
|
|
504
501
|
/**
|
|
505
|
-
* @description csv: the header row
|
|
502
|
+
* @description csv: the header row, the columns' labels by default. "names" writes their names instead, which stay stable for programs, and "none" leaves the header row out.
|
|
506
503
|
* @enum {string}
|
|
507
504
|
*/
|
|
508
505
|
header?: "labels" | "names" | "none";
|
|
@@ -532,7 +529,7 @@ interface components {
|
|
|
532
529
|
lang?: "aql" | "sql";
|
|
533
530
|
/** @description the query */
|
|
534
531
|
query: string;
|
|
535
|
-
/** @description the IANA time zone relative dates and date truncation use, such as Asia/Ho_Chi_Minh */
|
|
532
|
+
/** @description the IANA time zone that relative dates and date truncation use, such as Asia/Ho_Chi_Minh, for AQL only */
|
|
536
533
|
timezone?: string;
|
|
537
534
|
};
|
|
538
535
|
ExportLink: {
|
|
@@ -547,30 +544,30 @@ interface components {
|
|
|
547
544
|
format: string;
|
|
548
545
|
/**
|
|
549
546
|
* Format: int64
|
|
550
|
-
* @description
|
|
547
|
+
* @description how many rows the file holds
|
|
551
548
|
*/
|
|
552
549
|
row_count: number;
|
|
553
550
|
/** @description where to download the file: a plain GET, with no credentials, until expires_at */
|
|
554
551
|
url: string;
|
|
555
552
|
};
|
|
556
553
|
FieldLineage: {
|
|
557
|
-
/** @description the field's lineage
|
|
554
|
+
/** @description the field's lineage. Absent when error is set. */
|
|
558
555
|
diagram?: components["schemas"]["Diagram"];
|
|
559
556
|
/** @description why the field's lineage could not be traced */
|
|
560
557
|
error?: string;
|
|
561
|
-
/** @description the
|
|
558
|
+
/** @description the search query that finds the field's lineage, which the search command also takes. Empty when the field could not be searched for. */
|
|
562
559
|
query: string;
|
|
563
560
|
/** @description the field, as asked */
|
|
564
561
|
target: components["schemas"]["LineageTarget"];
|
|
565
562
|
};
|
|
566
563
|
IngestInput: {
|
|
567
|
-
/** @description
|
|
564
|
+
/** @description the context source to ingest, every source by default */
|
|
568
565
|
source?: string;
|
|
569
566
|
};
|
|
570
567
|
LineageInput: {
|
|
571
568
|
/**
|
|
572
569
|
* Format: int64
|
|
573
|
-
* @description
|
|
570
|
+
* @description the most upstream entities to return per field, all of them by default
|
|
574
571
|
*/
|
|
575
572
|
limit?: number;
|
|
576
573
|
/**
|
|
@@ -596,7 +593,7 @@ interface components {
|
|
|
596
593
|
max_bytes: number;
|
|
597
594
|
};
|
|
598
595
|
QueryCompiled: {
|
|
599
|
-
/** @description the AQL
|
|
596
|
+
/** @description the final AQL (with the Query Input applied). Absent for a SQL query. */
|
|
600
597
|
aql?: string;
|
|
601
598
|
sql: string;
|
|
602
599
|
/**
|
|
@@ -616,7 +613,7 @@ interface components {
|
|
|
616
613
|
grain: string;
|
|
617
614
|
};
|
|
618
615
|
QueryFilter: {
|
|
619
|
-
/** @description the
|
|
616
|
+
/** @description the aggregation to apply to the field before filtering, such as sum */
|
|
620
617
|
aggregation?: string;
|
|
621
618
|
/** @description model.field for a dataset field, or the name of a dataset metric */
|
|
622
619
|
field: string;
|
|
@@ -624,7 +621,7 @@ interface components {
|
|
|
624
621
|
modifier?: string;
|
|
625
622
|
/** @description the operator, such as is, contains, between, last */
|
|
626
623
|
operator: string;
|
|
627
|
-
/** @description the operator's values,
|
|
624
|
+
/** @description the operator's values, empty for an operator that takes none. Write a number as a string, such as "9007199254740993", because a JSON number may have lost digits and is refused. Write a date or text as a string too, and a truefalse value as true or false. */
|
|
628
625
|
values: unknown[];
|
|
629
626
|
};
|
|
630
627
|
QueryHeader: {
|
|
@@ -661,20 +658,20 @@ interface components {
|
|
|
661
658
|
type: "rows";
|
|
662
659
|
};
|
|
663
660
|
QueryResult: {
|
|
664
|
-
/** @description the AQL
|
|
661
|
+
/** @description the final AQL (with the Query Input applied). Absent for a SQL query. */
|
|
665
662
|
aql?: string;
|
|
666
663
|
/** @description one per field of result, in order */
|
|
667
664
|
columns: components["schemas"]["Column"][];
|
|
668
|
-
/** @description there may be rows after this page
|
|
665
|
+
/** @description whether there may be rows after this page. To get them, ask for the next page, or export the query. */
|
|
669
666
|
has_more: boolean;
|
|
670
667
|
result: components["schemas"]["QueryRows"];
|
|
671
668
|
sql: string;
|
|
672
|
-
/** @description the query's steps
|
|
669
|
+
/** @description the query's steps, and when each started. The steps are compiling_query (for AQL only), connecting_to_dw, executing_query, fetching_query_result, and retrying_query, which is a wait before the query is tried again. connecting_to_dw, executing_query, and fetching_query_result may have child steps. */
|
|
673
670
|
timings: components["schemas"]["Timings"];
|
|
674
671
|
};
|
|
675
672
|
QueryRows: {
|
|
676
673
|
fields: string[];
|
|
677
|
-
/** @description one array per row, its values in fields' order
|
|
674
|
+
/** @description one array per row, its values in fields' order. Read each value by its column's types. Every number is a string with all its digits, because a JSON number loses some in JavaScript. A float's NaN and infinities are "NaN", "Infinity", and "-Infinity". The same holds at any depth of a list, map, or struct. A database NULL is null. */
|
|
678
675
|
records: unknown[][];
|
|
679
676
|
};
|
|
680
677
|
QueryRunInput: {
|
|
@@ -692,17 +689,17 @@ interface components {
|
|
|
692
689
|
lang?: "aql" | "sql";
|
|
693
690
|
/**
|
|
694
691
|
* Format: int64
|
|
695
|
-
* @description the 1-based page of rows to
|
|
692
|
+
* @description the 1-based page of rows to return, 1 by default, for AQL only. Needs page_size.
|
|
696
693
|
*/
|
|
697
694
|
page?: number;
|
|
698
695
|
/**
|
|
699
696
|
* Format: int64
|
|
700
|
-
* @description rows
|
|
697
|
+
* @description how many rows a page has, for AQL only
|
|
701
698
|
*/
|
|
702
699
|
page_size?: number;
|
|
703
700
|
/** @description the query */
|
|
704
701
|
query: string;
|
|
705
|
-
/** @description the IANA time zone relative dates and date truncation use, such as Asia/Ho_Chi_Minh */
|
|
702
|
+
/** @description the IANA time zone that relative dates and date truncation use, such as Asia/Ho_Chi_Minh, for AQL only */
|
|
706
703
|
timezone?: string;
|
|
707
704
|
};
|
|
708
705
|
QuerySort: {
|
|
@@ -720,11 +717,11 @@ interface components {
|
|
|
720
717
|
* @description the bytes the warehouse read to run the query, where it reports them (BigQuery, Athena)
|
|
721
718
|
*/
|
|
722
719
|
bytes_scanned?: number;
|
|
723
|
-
/** @description
|
|
720
|
+
/** @description whether there may be rows after this page. Without page_size, every row was sent, and this is false. */
|
|
724
721
|
has_more: boolean;
|
|
725
722
|
/** Format: int64 */
|
|
726
723
|
row_count: number;
|
|
727
|
-
/** @description the query's steps
|
|
724
|
+
/** @description the query's steps, and when each started. The steps are compiling_query (for AQL only), connecting_to_dw, executing_query, fetching_query_result, and retrying_query, which is a wait before the query is tried again. connecting_to_dw, executing_query, and fetching_query_result may have child steps. */
|
|
728
725
|
timings: components["schemas"]["Timings"];
|
|
729
726
|
/**
|
|
730
727
|
* @description discriminator enum property added by openapi-typescript
|
|
@@ -735,7 +732,7 @@ interface components {
|
|
|
735
732
|
QueryTransforms: {
|
|
736
733
|
/** @description AQL conditions ANDed with the query's own filters */
|
|
737
734
|
conditions?: components["schemas"]["QueryCondition"][];
|
|
738
|
-
/** @description date fields
|
|
735
|
+
/** @description grain changes on date fields. The fields keep their column names. */
|
|
739
736
|
dateDrills?: components["schemas"]["QueryDateDrill"][];
|
|
740
737
|
/** @description conditions on fields, ANDed with the query's own filters */
|
|
741
738
|
filters?: components["schemas"]["QueryFilter"][];
|
|
@@ -758,7 +755,7 @@ interface components {
|
|
|
758
755
|
RepoStatus: {
|
|
759
756
|
/** @description the repo's id, which names its state folder: <ANFRA_HOME>/repos/<id> */
|
|
760
757
|
id: string;
|
|
761
|
-
/** @description the repo's log file
|
|
758
|
+
/** @description the repo's log file, which holds anfra's and its sidecars' logs. Absent for a managed repo. */
|
|
762
759
|
logs?: string;
|
|
763
760
|
};
|
|
764
761
|
RepoValidation: {
|
|
@@ -797,7 +794,7 @@ interface components {
|
|
|
797
794
|
SearchInput: {
|
|
798
795
|
/**
|
|
799
796
|
* Format: int64
|
|
800
|
-
* @description
|
|
797
|
+
* @description the most entities to return, 50 by default
|
|
801
798
|
*/
|
|
802
799
|
limit?: number;
|
|
803
800
|
/**
|
|
@@ -826,9 +823,9 @@ interface components {
|
|
|
826
823
|
*/
|
|
827
824
|
kind: "dataset";
|
|
828
825
|
label?: string;
|
|
829
|
-
/** @description the dataset's metrics
|
|
826
|
+
/** @description the dataset's metrics. Absent when the dataset is shown in outline. */
|
|
830
827
|
metrics?: components["schemas"]["ShowField"][];
|
|
831
|
-
/** @description the models the dataset uses
|
|
828
|
+
/** @description the models the dataset uses. Absent when the dataset is shown in outline. */
|
|
832
829
|
models?: components["schemas"]["ShowModel"][];
|
|
833
830
|
name: string;
|
|
834
831
|
};
|
|
@@ -846,18 +843,18 @@ interface components {
|
|
|
846
843
|
fqn: string;
|
|
847
844
|
hidden: boolean;
|
|
848
845
|
label?: string;
|
|
849
|
-
/** @description AQL writes <model fqn>.<name
|
|
846
|
+
/** @description the field's or metric's name. AQL writes a field as <model fqn>.<name>, and a metric by its name alone. */
|
|
850
847
|
name: string;
|
|
851
848
|
/** @enum {string} */
|
|
852
849
|
role: "dimension" | "measure" | "param" | "metric";
|
|
853
|
-
/** @description the
|
|
850
|
+
/** @description the field's semantic type, such as number, text, date, datetime, or truefalse */
|
|
854
851
|
type: string;
|
|
855
852
|
};
|
|
856
853
|
ShowInput: {
|
|
857
|
-
/** @description the fqn of the
|
|
854
|
+
/** @description the fqn of the dataset to show, the whole repo by default */
|
|
858
855
|
fqn?: string;
|
|
859
856
|
/**
|
|
860
|
-
* @description the catalog's entity type of fqn
|
|
857
|
+
* @description the catalog's entity type of fqn
|
|
861
858
|
* @default aml.dataset
|
|
862
859
|
* @enum {string}
|
|
863
860
|
*/
|
|
@@ -872,7 +869,7 @@ interface components {
|
|
|
872
869
|
name: string;
|
|
873
870
|
};
|
|
874
871
|
ShowRepo: {
|
|
875
|
-
/** @description the repo's datasets, each in full
|
|
872
|
+
/** @description the repo's datasets, each in full, or in outline (without its models and metrics) when the dataset can't be shown in full. A diagnostic then says why. */
|
|
876
873
|
datasets: components["schemas"]["ShowDataset"][];
|
|
877
874
|
/**
|
|
878
875
|
* @description discriminator enum property added by openapi-typescript
|
|
@@ -881,7 +878,7 @@ interface components {
|
|
|
881
878
|
kind: "repo";
|
|
882
879
|
};
|
|
883
880
|
ShowResult: {
|
|
884
|
-
/** @description
|
|
881
|
+
/** @description the problems in the repo that affect what is shown, such as files that don't compile, a dataset's data source that isn't configured, or a dataset that can't be shown in full. Empty when what is shown is complete. */
|
|
885
882
|
diagnostics: components["schemas"]["CompileError"][];
|
|
886
883
|
/** @description the object shown, by kind; a client must accept a kind it does not know */
|
|
887
884
|
object: components["schemas"]["ShowRepo"] | components["schemas"]["ShowDataset"];
|
|
@@ -896,6 +893,8 @@ interface components {
|
|
|
896
893
|
version?: string;
|
|
897
894
|
};
|
|
898
895
|
StatusResult: {
|
|
896
|
+
/** @description what to do next, if any */
|
|
897
|
+
hints?: string[];
|
|
899
898
|
repo: components["schemas"]["RepoStatus"];
|
|
900
899
|
server: components["schemas"]["ServerStatus"];
|
|
901
900
|
};
|
|
@@ -929,7 +928,7 @@ interface components {
|
|
|
929
928
|
phase: string;
|
|
930
929
|
/**
|
|
931
930
|
* Format: int64
|
|
932
|
-
* @description while queued
|
|
931
|
+
* @description while the run is queued, how many runs are ahead of it. 0 means it is next. Absent for other phases, or when its place in line isn't known.
|
|
933
932
|
*/
|
|
934
933
|
position?: number;
|
|
935
934
|
/**
|
|
@@ -944,16 +943,16 @@ interface components {
|
|
|
944
943
|
* @description when it started, in ms since the run started
|
|
945
944
|
*/
|
|
946
945
|
start_ms: number;
|
|
947
|
-
/** @description the step's name
|
|
946
|
+
/** @description the step's name. A child step is named <parent>.<child>, and runs within its parent. */
|
|
948
947
|
step: string;
|
|
949
948
|
};
|
|
950
949
|
Timings: {
|
|
951
950
|
/**
|
|
952
951
|
* Format: int64
|
|
953
|
-
* @description when the run ended, in ms since it started
|
|
952
|
+
* @description when the run ended, in ms since it started, which is its total time and when its last step ends
|
|
954
953
|
*/
|
|
955
954
|
end_ms: number;
|
|
956
|
-
/** @description each step
|
|
955
|
+
/** @description each step, in the order it started. A step that runs again appears again. */
|
|
957
956
|
steps: components["schemas"]["TimedStep"][];
|
|
958
957
|
};
|
|
959
958
|
UpdateInfo: {
|
|
@@ -961,7 +960,7 @@ interface components {
|
|
|
961
960
|
latest: string;
|
|
962
961
|
};
|
|
963
962
|
ValidateInput: {
|
|
964
|
-
/** @description
|
|
963
|
+
/** @description globs of the files to report diagnostics for, every file by default */
|
|
965
964
|
globs?: string[];
|
|
966
965
|
};
|
|
967
966
|
ValidationReport: {
|
|
@@ -975,7 +974,7 @@ interface components {
|
|
|
975
974
|
validator: string;
|
|
976
975
|
};
|
|
977
976
|
VersionInput: {
|
|
978
|
-
/** @description the version of the anfra skills in use, from the
|
|
977
|
+
/** @description the version of the anfra skills in use, from the "anfra skills <version>" line that ends each skill, or "unknown" when a skill has none. With it, the result also says whether the skills are behind. */
|
|
979
978
|
skills?: string;
|
|
980
979
|
};
|
|
981
980
|
VersionResult: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holistics/anfra-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Data Apps on anfra: the authoring layer (app), what hosts one (host), anfra's plugins (plugins), the core API client (api), and their shared contract (common)",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|