@malloydata/malloy 0.0.363 → 0.0.364

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.
@@ -508,7 +508,7 @@ export type JoinType = 'one' | 'many' | 'cross';
508
508
  export type JoinRelationship = 'one_to_one' | 'one_to_many' | 'many_to_one' | 'many_to_many';
509
509
  export type MatrixOperation = 'left' | 'right' | 'full' | 'inner';
510
510
  export declare function isMatrixOperation(x: string): x is MatrixOperation;
511
- export type JoinElementType = 'composite' | 'table' | 'sql_select' | 'query_source' | 'array' | 'record';
511
+ export type JoinElementType = 'composite' | 'table' | 'sql_select' | 'query_source' | 'virtual' | 'array' | 'record';
512
512
  export interface JoinBase {
513
513
  type: JoinElementType;
514
514
  join: JoinType;
@@ -517,7 +517,7 @@ export interface JoinBase {
517
517
  fieldUsage?: FieldUsage[];
518
518
  accessModifier?: NonDefaultAccessModifierLabel | undefined;
519
519
  }
520
- export type Joinable = CompositeSourceDef | TableSourceDef | SQLSourceDef | QuerySourceDef | RepeatedRecordDef | RecordDef | ArrayDef;
520
+ export type Joinable = CompositeSourceDef | TableSourceDef | SQLSourceDef | QuerySourceDef | VirtualSourceDef | RepeatedRecordDef | RecordDef | ArrayDef;
521
521
  export type JoinFieldDef = Joinable & JoinBase;
522
522
  export declare function isJoinable(sd: StructDef): sd is Joinable;
523
523
  export declare function isJoined(sd: TypedDef): sd is JoinFieldDef;
@@ -378,6 +378,7 @@ function isJoinable(sd) {
378
378
  'table',
379
379
  'sql_select',
380
380
  'query_source',
381
+ 'virtual',
381
382
  'array',
382
383
  'record',
383
384
  ].includes(sd.type);
@@ -487,6 +487,7 @@ class QueryStruct {
487
487
  case 'table':
488
488
  case 'sql_select':
489
489
  case 'composite':
490
+ case 'virtual':
490
491
  return new QueryFieldStruct(field, undefined, this, this.prepareResultOptions);
491
492
  case 'string':
492
493
  return new QueryFieldString(field, this, referenceId);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const MALLOY_VERSION = "0.0.363";
1
+ export declare const MALLOY_VERSION = "0.0.364";
package/dist/version.js CHANGED
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MALLOY_VERSION = void 0;
4
4
  // generated with 'generate-version-file' script; do not edit manually
5
- exports.MALLOY_VERSION = '0.0.363';
5
+ exports.MALLOY_VERSION = '0.0.364';
6
6
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.363",
3
+ "version": "0.0.364",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -47,9 +47,9 @@
47
47
  "generate-version-file": "VERSION=$(npm pkg get version --workspaces=false | tr -d \\\")\necho \"// generated with 'generate-version-file' script; do not edit manually\\nexport const MALLOY_VERSION = '$VERSION';\" > src/version.ts"
48
48
  },
49
49
  "dependencies": {
50
- "@malloydata/malloy-filter": "0.0.363",
51
- "@malloydata/malloy-interfaces": "0.0.363",
52
- "@malloydata/malloy-tag": "0.0.363",
50
+ "@malloydata/malloy-filter": "0.0.364",
51
+ "@malloydata/malloy-interfaces": "0.0.364",
52
+ "@malloydata/malloy-tag": "0.0.364",
53
53
  "@noble/hashes": "^1.8.0",
54
54
  "antlr4ts": "^0.5.0-alpha.4",
55
55
  "assert": "^2.0.0",