@malloydata/malloy 0.0.94-dev231019191913 → 0.0.94
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/malloy.d.ts +5 -1
- package/dist/malloy.js +9 -0
- package/package.json +1 -1
package/dist/malloy.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { RunSQLOptions } from './run_sql_options';
|
|
3
3
|
import { DocumentCompletion as DocumentCompletionDefinition, DocumentHighlight as DocumentHighlightDefinition, DocumentSymbol as DocumentSymbolDefinition, LogMessage, MalloyTranslator } from './lang';
|
|
4
4
|
import { DocumentHelpContext } from './lang/parse-tree-walkers/document-help-context-walker';
|
|
5
|
-
import { CompiledQuery, DocumentReference, FieldBooleanDef, FieldDateDef, FieldJSONDef, FieldNumberDef, FieldStringDef, FieldTimestampDef, FieldTypeDef, FilterExpression, Query as InternalQuery, ModelDef, DocumentPosition as ModelDocumentPosition, NamedQuery, QueryData, QueryDataRow, QueryResult, SQLBlock, SQLBlockStructDef, SearchIndexResult, SearchValueMapResult, StructDef, TurtleDef, FieldUnsupportedDef, QueryRunStats, ImportLocation } from './model';
|
|
5
|
+
import { CompiledQuery, DocumentLocation, DocumentReference, FieldBooleanDef, FieldDateDef, FieldJSONDef, FieldNumberDef, FieldStringDef, FieldTimestampDef, FieldTypeDef, FilterExpression, Query as InternalQuery, ModelDef, DocumentPosition as ModelDocumentPosition, NamedQuery, QueryData, QueryDataRow, QueryResult, SQLBlock, SQLBlockStructDef, SearchIndexResult, SearchValueMapResult, StructDef, TurtleDef, FieldUnsupportedDef, QueryRunStats, ImportLocation } from './model';
|
|
6
6
|
import { Connection, InfoConnection, LookupConnection, ModelString, ModelURL, QueryString, QueryURL, URLReader } from './runtime_types';
|
|
7
7
|
import { Tag, TagParse, TagParseSpec, Taggable } from './tags';
|
|
8
8
|
export interface Loggable {
|
|
@@ -511,6 +511,7 @@ declare abstract class Entity {
|
|
|
511
511
|
isExplore(): this is Explore;
|
|
512
512
|
isQuery(): this is Query;
|
|
513
513
|
abstract isIntrinsic(): boolean;
|
|
514
|
+
abstract get location(): DocumentLocation | undefined;
|
|
514
515
|
}
|
|
515
516
|
export type Field = AtomicField | QueryField | ExploreField;
|
|
516
517
|
export type SerializedExplore = {
|
|
@@ -557,6 +558,7 @@ export declare class Explore extends Entity {
|
|
|
557
558
|
get queryTimezone(): string | undefined;
|
|
558
559
|
toJSON(): SerializedExplore;
|
|
559
560
|
static fromJSON(main_explore: SerializedExplore): Explore;
|
|
561
|
+
get location(): DocumentLocation | undefined;
|
|
560
562
|
}
|
|
561
563
|
export declare enum AtomicFieldType {
|
|
562
564
|
String = "string",
|
|
@@ -595,6 +597,7 @@ export declare class AtomicField extends Entity implements Taggable {
|
|
|
595
597
|
isUnsupported(): this is UnsupportedField;
|
|
596
598
|
get parentExplore(): Explore;
|
|
597
599
|
get expression(): string;
|
|
600
|
+
get location(): DocumentLocation | undefined;
|
|
598
601
|
}
|
|
599
602
|
export declare enum DateTimeframe {
|
|
600
603
|
Day = "day",
|
|
@@ -649,6 +652,7 @@ export declare class Query extends Entity {
|
|
|
649
652
|
constructor(turtleDef: TurtleDef, parent?: Explore, source?: Query);
|
|
650
653
|
get source(): Query | undefined;
|
|
651
654
|
isIntrinsic(): boolean;
|
|
655
|
+
get location(): DocumentLocation | undefined;
|
|
652
656
|
}
|
|
653
657
|
export declare class QueryField extends Query implements Taggable {
|
|
654
658
|
protected parent: Explore;
|
package/dist/malloy.js
CHANGED
|
@@ -1114,6 +1114,9 @@ class Explore extends Entity {
|
|
|
1114
1114
|
: undefined;
|
|
1115
1115
|
return new Explore(main_explore._structDef, parentExplore, sourceExplore);
|
|
1116
1116
|
}
|
|
1117
|
+
get location() {
|
|
1118
|
+
return this.structDef.location;
|
|
1119
|
+
}
|
|
1117
1120
|
}
|
|
1118
1121
|
exports.Explore = Explore;
|
|
1119
1122
|
var AtomicFieldType;
|
|
@@ -1231,6 +1234,9 @@ class AtomicField extends Entity {
|
|
|
1231
1234
|
((_b = this.fieldTypeDef.resultMetadata) === null || _b === void 0 ? void 0 : _b.sourceField) ||
|
|
1232
1235
|
this.name);
|
|
1233
1236
|
}
|
|
1237
|
+
get location() {
|
|
1238
|
+
return this.fieldTypeDef.location;
|
|
1239
|
+
}
|
|
1234
1240
|
}
|
|
1235
1241
|
exports.AtomicField = AtomicField;
|
|
1236
1242
|
var DateTimeframe;
|
|
@@ -1352,6 +1358,9 @@ class Query extends Entity {
|
|
|
1352
1358
|
isIntrinsic() {
|
|
1353
1359
|
return false;
|
|
1354
1360
|
}
|
|
1361
|
+
get location() {
|
|
1362
|
+
return this.turtleDef.location;
|
|
1363
|
+
}
|
|
1355
1364
|
}
|
|
1356
1365
|
exports.Query = Query;
|
|
1357
1366
|
class QueryField extends Query {
|