@malloydata/malloy 0.0.32 → 0.0.33-dev230509223235

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.
@@ -4,6 +4,14 @@ import { Connection } from '../runtime_types';
4
4
  import { AndChain } from './utils';
5
5
  interface TurtleDefPlus extends TurtleDef, Filtered {
6
6
  }
7
+ /** Parent from QueryStruct. */
8
+ export declare interface ParentQueryStruct {
9
+ struct: QueryStruct;
10
+ }
11
+ /** Parent from QueryModel. */
12
+ export declare interface ParentQueryModel {
13
+ model: QueryModel;
14
+ }
7
15
  interface OutputPipelinedSQL {
8
16
  sqlFieldName: string;
9
17
  pipelineSQL: string;
@@ -266,11 +274,7 @@ declare class QueryStruct extends QueryNode {
266
274
  pathAliasMap: Map<string, string>;
267
275
  dialect: Dialect;
268
276
  connectionName: string;
269
- constructor(fieldDef: StructDef, parent: {
270
- struct: QueryStruct;
271
- } | {
272
- model: QueryModel;
273
- });
277
+ constructor(fieldDef: StructDef, parent: ParentQueryStruct | ParentQueryModel);
274
278
  parameters(): Record<string, Parameter>;
275
279
  addFieldsFromFieldList(fields: FieldDef[]): void;
276
280
  getAliasIdentifier(): string;
@@ -291,11 +295,7 @@ declare class QueryStruct extends QueryNode {
291
295
  */
292
296
  resolveQueryFields(): void;
293
297
  getModel(): QueryModel;
294
- setParent(parent: {
295
- struct: QueryStruct;
296
- } | {
297
- model: QueryModel;
298
- }): void;
298
+ setParent(parent: ParentQueryStruct | ParentQueryModel): void;
299
299
  /** makes a new queryable field object from a fieldDef */
300
300
  makeQueryField(field: FieldDef): QueryField;
301
301
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.32",
3
+ "version": "0.0.33-dev230509223235",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",