@malloydata/malloy-query-builder 0.0.261-dev250410224049 → 0.0.261-dev250410224545

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.
@@ -385,7 +385,7 @@ export declare class ASTReference extends ASTObjectNode<Malloy.Reference, {
385
385
  * @internal
386
386
  */
387
387
  static tryGetParameter(reference: IASTReference, name: string): ASTParameterValue | undefined;
388
- getOrAddParameters(): any;
388
+ getOrAddParameters(): ASTParameterValueList;
389
389
  setParameter(name: string, value: RawLiteralValue): void;
390
390
  tryGetParameter(name: string): ASTParameterValue | undefined;
391
391
  }
@@ -511,7 +511,7 @@ export declare class ASTArrowQueryDefinition extends ASTObjectNode<Malloy.QueryD
511
511
  get source(): ASTQueryArrowSource;
512
512
  set source(source: ASTQueryArrowSource);
513
513
  getOrAddDefaultSegment(): ASTSegmentViewDefinition;
514
- getSourceInfo(): any;
514
+ getSourceInfo(): Malloy.SourceInfo;
515
515
  getOutputSchema(): Malloy.Schema;
516
516
  isRunnable(): boolean;
517
517
  /**
@@ -544,7 +544,7 @@ export declare class ASTRefinementQueryDefinition extends ASTObjectNode<Malloy.Q
544
544
  */
545
545
  get query(): ASTQuery;
546
546
  getOrAddDefaultSegment(): ASTSegmentViewDefinition;
547
- getOutputSchema(): any;
547
+ getOutputSchema(): Malloy.Schema;
548
548
  /**
549
549
  * @internal
550
550
  */
@@ -554,7 +554,7 @@ export declare class ASTRefinementQueryDefinition extends ASTObjectNode<Malloy.Q
554
554
  */
555
555
  propagateDown(f: PropagationFunction): void;
556
556
  reorderFields(names: string[]): void;
557
- getSourceInfo(): any;
557
+ getSourceInfo(): Malloy.SourceInfo;
558
558
  }
559
559
  export declare class ASTReferenceQueryDefinition extends ASTObjectNode<Malloy.QueryDefinitionWithQueryReference, {
560
560
  kind: 'query_reference';
@@ -580,11 +580,11 @@ export declare class ASTReferenceQueryDefinition extends ASTObjectNode<Malloy.Qu
580
580
  */
581
581
  propagateDown(_f: PropagationFunction): void;
582
582
  reorderFields(names: string[]): void;
583
- getOrAddParameters(): any;
583
+ getOrAddParameters(): ASTParameterValueList;
584
584
  setParameter(name: string, value: RawLiteralValue): void;
585
585
  tryGetParameter(name: string): ASTParameterValue | undefined;
586
586
  getOutputSchema(): Malloy.Schema;
587
- getSourceInfo(): Malloy.ModelEntryValue;
587
+ getSourceInfo(): Malloy.SourceInfo;
588
588
  }
589
589
  export declare class ASTReferenceQueryArrowSource extends ASTObjectNode<Malloy.QueryArrowSourceWithSourceReference, {
590
590
  kind: 'source_reference';
@@ -610,7 +610,7 @@ export declare class ASTReferenceQueryArrowSource extends ASTObjectNode<Malloy.Q
610
610
  * @internal
611
611
  */
612
612
  propagateDown(_f: PropagationFunction): void;
613
- getOrAddParameters(): any;
613
+ getOrAddParameters(): ASTParameterValueList;
614
614
  setParameter(name: string, value: RawLiteralValue): void;
615
615
  tryGetParameter(name: string): ASTParameterValue | undefined;
616
616
  /**
@@ -670,7 +670,7 @@ export declare class ASTReferenceViewDefinition extends ASTObjectNode<Malloy.Vie
670
670
  */
671
671
  propagateDown(_f: PropagationFunction): void;
672
672
  getInheritedAnnotations(): Malloy.Annotation[];
673
- getOrAddParameters(): any;
673
+ getOrAddParameters(): ASTParameterValueList;
674
674
  setParameter(name: string, value: RawLiteralValue): void;
675
675
  tryGetParameter(name: string): ASTParameterValue | undefined;
676
676
  }
@@ -1226,7 +1226,7 @@ export declare class ASTReferenceExpression extends ASTObjectNode<Malloy.Express
1226
1226
  getFieldInfo(): Malloy.FieldInfoWithDimension | Malloy.FieldInfoWithMeasure;
1227
1227
  get fieldType(): Malloy.AtomicType;
1228
1228
  getInheritedAnnotations(): Malloy.Annotation[];
1229
- getOrAddParameters(): any;
1229
+ getOrAddParameters(): ASTParameterValueList;
1230
1230
  setParameter(name: string, value: RawLiteralValue): void;
1231
1231
  tryGetParameter(name: string): ASTParameterValue | undefined;
1232
1232
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy-query-builder",
3
- "version": "0.0.261-dev250410224049",
3
+ "version": "0.0.261-dev250410224545",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,9 +22,9 @@
22
22
  "serve-docs": "npx http-server -o docs"
23
23
  },
24
24
  "dependencies": {
25
- "@malloydata/malloy-filter": "^0.0.261-dev250410224049",
26
- "@malloydata/malloy-interfaces": "^0.0.261-dev250410224049",
27
- "@malloydata/malloy-tag": "^0.0.261-dev250410224049"
25
+ "@malloydata/malloy-filter": "^0.0.261-dev250410224545",
26
+ "@malloydata/malloy-interfaces": "^0.0.261-dev250410224545",
27
+ "@malloydata/malloy-tag": "^0.0.261-dev250410224545"
28
28
  },
29
29
  "devDependencies": {
30
30
  "http-server": "^14.1.1",
package/src/query-ast.ts CHANGED
@@ -1026,7 +1026,7 @@ export class ASTReference
1026
1026
  }
1027
1027
  }
1028
1028
 
1029
- public getOrAddParameters() {
1029
+ public getOrAddParameters(): ASTParameterValueList {
1030
1030
  return ASTReference.getOrAddParameters(this);
1031
1031
  }
1032
1032
 
@@ -1068,7 +1068,7 @@ export class ASTFieldReference extends ASTReference {
1068
1068
  }
1069
1069
  }
1070
1070
 
1071
- private getReferenceSchema() {
1071
+ private getReferenceSchema(): Malloy.Schema {
1072
1072
  if (this.parent instanceof ASTOrderByViewOperation) {
1073
1073
  return this.segment.getOutputSchema();
1074
1074
  }
@@ -1414,11 +1414,11 @@ export class ASTArrowQueryDefinition
1414
1414
  return this.view.getOrAddDefaultSegment();
1415
1415
  }
1416
1416
 
1417
- getSourceInfo() {
1417
+ getSourceInfo(): Malloy.SourceInfo {
1418
1418
  return this.source.getSourceInfo();
1419
1419
  }
1420
1420
 
1421
- getOutputSchema() {
1421
+ getOutputSchema(): Malloy.Schema {
1422
1422
  return this.view.getRefinementSchema();
1423
1423
  }
1424
1424
 
@@ -1505,7 +1505,7 @@ export class ASTRefinementQueryDefinition
1505
1505
  return this.refinement.getOrAddDefaultSegment();
1506
1506
  }
1507
1507
 
1508
- getOutputSchema() {
1508
+ getOutputSchema(): Malloy.Schema {
1509
1509
  const base = this.base.getOutputSchema();
1510
1510
  const refinement = this.refinement.getRefinementSchema();
1511
1511
  return ASTQuery.schemaMerge(base, refinement);
@@ -1530,7 +1530,7 @@ export class ASTRefinementQueryDefinition
1530
1530
  this.query.getOrAddAnnotations().setTagProperty(['field_order'], names);
1531
1531
  }
1532
1532
 
1533
- getSourceInfo() {
1533
+ getSourceInfo(): Malloy.SourceInfo {
1534
1534
  return this.base.getSourceInfo();
1535
1535
  }
1536
1536
  }
@@ -1612,7 +1612,7 @@ export class ASTReferenceQueryDefinition
1612
1612
  this.query.getOrAddAnnotations().setTagProperty(['field_order'], names);
1613
1613
  }
1614
1614
 
1615
- public getOrAddParameters() {
1615
+ public getOrAddParameters(): ASTParameterValueList {
1616
1616
  return ASTReference.getOrAddParameters(this);
1617
1617
  }
1618
1618
 
@@ -1624,11 +1624,11 @@ export class ASTReferenceQueryDefinition
1624
1624
  return ASTReference.tryGetParameter(this, name);
1625
1625
  }
1626
1626
 
1627
- public getOutputSchema() {
1627
+ public getOutputSchema(): Malloy.Schema {
1628
1628
  return this.getSourceInfo().schema;
1629
1629
  }
1630
1630
 
1631
- getSourceInfo() {
1631
+ getSourceInfo(): Malloy.SourceInfo {
1632
1632
  const model = this.query.model;
1633
1633
  const query = model.entries.find(e => e.name === this.name);
1634
1634
  if (query === undefined) {
@@ -1728,7 +1728,7 @@ export class ASTReferenceQueryArrowSource
1728
1728
  return;
1729
1729
  }
1730
1730
 
1731
- public getOrAddParameters() {
1731
+ public getOrAddParameters(): ASTParameterValueList {
1732
1732
  return ASTReference.getOrAddParameters(this);
1733
1733
  }
1734
1734
 
@@ -1987,7 +1987,7 @@ export class ASTReferenceViewDefinition
1987
1987
  return view.annotations ?? [];
1988
1988
  }
1989
1989
 
1990
- public getOrAddParameters() {
1990
+ public getOrAddParameters(): ASTParameterValueList {
1991
1991
  return ASTReference.getOrAddParameters(this);
1992
1992
  }
1993
1993
 
@@ -3695,7 +3695,7 @@ export class ASTReferenceExpression
3695
3695
  return field.annotations ?? [];
3696
3696
  }
3697
3697
 
3698
- public getOrAddParameters() {
3698
+ public getOrAddParameters(): ASTParameterValueList {
3699
3699
  return ASTReference.getOrAddParameters(this);
3700
3700
  }
3701
3701
 
@@ -4191,11 +4191,11 @@ export class ASTView
4191
4191
  return this.parent.as.NestViewOperation();
4192
4192
  }
4193
4193
 
4194
- getInputSchema() {
4194
+ getInputSchema(): Malloy.Schema {
4195
4195
  return this.nest.list.segment.getInputSchema();
4196
4196
  }
4197
4197
 
4198
- getOutputSchema() {
4198
+ getOutputSchema(): Malloy.Schema {
4199
4199
  return this.definition.getRefinementSchema();
4200
4200
  }
4201
4201