@malloydata/malloy 0.0.100-dev231106185812 → 0.0.100-dev231107154720
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 +2 -0
- package/dist/malloy.js +6 -0
- package/package.json +1 -1
package/dist/malloy.d.ts
CHANGED
|
@@ -681,6 +681,8 @@ export declare class ExploreField extends Explore implements Taggable {
|
|
|
681
681
|
protected _parentExplore: Explore;
|
|
682
682
|
constructor(structDef: StructDef, parentExplore: Explore, source?: Explore);
|
|
683
683
|
get joinRelationship(): JoinRelationship;
|
|
684
|
+
get isRecord(): boolean;
|
|
685
|
+
get isArray(): boolean;
|
|
684
686
|
tagParse(spec?: TagParseSpec): TagParse;
|
|
685
687
|
getTaglines(prefix?: RegExp): string[];
|
|
686
688
|
isQueryField(): this is QueryField;
|
package/dist/malloy.js
CHANGED
|
@@ -1439,6 +1439,12 @@ class ExploreField extends Explore {
|
|
|
1439
1439
|
throw new Error('A source field must have a join relationship.');
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
|
+
get isRecord() {
|
|
1443
|
+
return this.joinRelationship === JoinRelationship.OneToOne;
|
|
1444
|
+
}
|
|
1445
|
+
get isArray() {
|
|
1446
|
+
return this.joinRelationship !== JoinRelationship.OneToOne;
|
|
1447
|
+
}
|
|
1442
1448
|
tagParse(spec) {
|
|
1443
1449
|
spec = tags_1.Tag.addModelScope(spec, this._parentExplore.modelTag);
|
|
1444
1450
|
return tags_1.Tag.annotationToTag(this._structDef.annotation, spec);
|