@malloydata/malloy 0.0.243-dev250314155434 → 0.0.243-dev250314163430

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.
Files changed (227) hide show
  1. package/dist/annotation.d.ts +2 -2
  2. package/dist/api/asynchronous.d.ts +4 -4
  3. package/dist/api/connection.d.ts +1 -1
  4. package/dist/api/core.d.ts +3 -2
  5. package/dist/api/stateless.d.ts +1 -1
  6. package/dist/api/util.d.ts +5 -5
  7. package/dist/connection/base_connection.d.ts +4 -4
  8. package/dist/connection/types.d.ts +4 -4
  9. package/dist/dialect/dialect.d.ts +2 -2
  10. package/dist/dialect/dialect_map.d.ts +1 -1
  11. package/dist/dialect/duckdb/dialect_functions.d.ts +1 -1
  12. package/dist/dialect/duckdb/duckdb.d.ts +3 -3
  13. package/dist/dialect/duckdb/function_overrides.d.ts +1 -1
  14. package/dist/dialect/functions/malloy_standard_functions.d.ts +1 -1
  15. package/dist/dialect/functions/util.d.ts +2 -2
  16. package/dist/dialect/mysql/dialect_functions.d.ts +1 -1
  17. package/dist/dialect/mysql/function_overrides.d.ts +1 -1
  18. package/dist/dialect/mysql/mysql.d.ts +4 -3
  19. package/dist/dialect/mysql/mysql.js +0 -7
  20. package/dist/dialect/pg_impl.d.ts +3 -2
  21. package/dist/dialect/postgres/dialect_functions.d.ts +1 -1
  22. package/dist/dialect/postgres/function_overrides.d.ts +1 -1
  23. package/dist/dialect/postgres/postgres.d.ts +3 -3
  24. package/dist/dialect/snowflake/dialect_functions.d.ts +1 -1
  25. package/dist/dialect/snowflake/function_overrides.d.ts +1 -1
  26. package/dist/dialect/snowflake/snowflake.d.ts +4 -3
  27. package/dist/dialect/standardsql/dialect_functions.d.ts +1 -1
  28. package/dist/dialect/standardsql/function_overrides.d.ts +1 -1
  29. package/dist/dialect/standardsql/standardsql.d.ts +4 -3
  30. package/dist/dialect/trino/dialect_functions.d.ts +1 -1
  31. package/dist/dialect/trino/function_overrides.d.ts +1 -1
  32. package/dist/dialect/trino/trino.d.ts +3 -3
  33. package/dist/lang/ast/ast-utils.d.ts +1 -1
  34. package/dist/lang/ast/error-factory.d.ts +1 -1
  35. package/dist/lang/ast/expressions/apply.d.ts +3 -3
  36. package/dist/lang/ast/expressions/binary-boolean.d.ts +3 -3
  37. package/dist/lang/ast/expressions/binary-numeric.d.ts +3 -3
  38. package/dist/lang/ast/expressions/boolean.d.ts +1 -1
  39. package/dist/lang/ast/expressions/case.d.ts +2 -2
  40. package/dist/lang/ast/expressions/constant-expression.d.ts +6 -6
  41. package/dist/lang/ast/expressions/expr-aggregate-function.d.ts +4 -4
  42. package/dist/lang/ast/expressions/expr-alternation-tree.d.ts +3 -3
  43. package/dist/lang/ast/expressions/expr-array-literal.d.ts +2 -2
  44. package/dist/lang/ast/expressions/expr-asymmetric.d.ts +3 -3
  45. package/dist/lang/ast/expressions/expr-avg.d.ts +2 -2
  46. package/dist/lang/ast/expressions/expr-cast.d.ts +3 -3
  47. package/dist/lang/ast/expressions/expr-coalesce.d.ts +2 -2
  48. package/dist/lang/ast/expressions/expr-compare.d.ts +3 -3
  49. package/dist/lang/ast/expressions/expr-count-distinct.d.ts +2 -2
  50. package/dist/lang/ast/expressions/expr-count.d.ts +3 -3
  51. package/dist/lang/ast/expressions/expr-filter-expr.d.ts +3 -3
  52. package/dist/lang/ast/expressions/expr-func.d.ts +7 -7
  53. package/dist/lang/ast/expressions/expr-granular-time.d.ts +3 -3
  54. package/dist/lang/ast/expressions/expr-id-reference.d.ts +3 -3
  55. package/dist/lang/ast/expressions/expr-max.d.ts +2 -2
  56. package/dist/lang/ast/expressions/expr-min.d.ts +2 -2
  57. package/dist/lang/ast/expressions/expr-minus.d.ts +2 -2
  58. package/dist/lang/ast/expressions/expr-not.d.ts +3 -3
  59. package/dist/lang/ast/expressions/expr-now.d.ts +2 -2
  60. package/dist/lang/ast/expressions/expr-null.d.ts +2 -2
  61. package/dist/lang/ast/expressions/expr-number.d.ts +2 -2
  62. package/dist/lang/ast/expressions/expr-parens.d.ts +3 -3
  63. package/dist/lang/ast/expressions/expr-props.d.ts +3 -3
  64. package/dist/lang/ast/expressions/expr-record-literal.d.ts +3 -3
  65. package/dist/lang/ast/expressions/expr-regex.d.ts +1 -1
  66. package/dist/lang/ast/expressions/expr-string.d.ts +2 -2
  67. package/dist/lang/ast/expressions/expr-sum.d.ts +2 -2
  68. package/dist/lang/ast/expressions/expr-time-extract.d.ts +3 -3
  69. package/dist/lang/ast/expressions/expr-time.d.ts +3 -3
  70. package/dist/lang/ast/expressions/expr-ungroup.d.ts +2 -2
  71. package/dist/lang/ast/expressions/for-range.d.ts +4 -4
  72. package/dist/lang/ast/expressions/function-ordering.d.ts +3 -3
  73. package/dist/lang/ast/expressions/partial-compare.d.ts +3 -3
  74. package/dist/lang/ast/expressions/partition_by.d.ts +1 -1
  75. package/dist/lang/ast/expressions/pick-when.d.ts +2 -2
  76. package/dist/lang/ast/expressions/range.d.ts +3 -3
  77. package/dist/lang/ast/expressions/time-frame.d.ts +1 -1
  78. package/dist/lang/ast/expressions/time-literal.d.ts +5 -5
  79. package/dist/lang/ast/field-space/ast-view-field.d.ts +3 -3
  80. package/dist/lang/ast/field-space/column-space-field.d.ts +1 -1
  81. package/dist/lang/ast/field-space/dynamic-space.d.ts +5 -5
  82. package/dist/lang/ast/field-space/index-field-space.d.ts +2 -2
  83. package/dist/lang/ast/field-space/ir-view-field.d.ts +2 -2
  84. package/dist/lang/ast/field-space/join-space-field.d.ts +2 -2
  85. package/dist/lang/ast/field-space/parameter-space.d.ts +6 -6
  86. package/dist/lang/ast/field-space/project-field-space.d.ts +1 -1
  87. package/dist/lang/ast/field-space/query-input-space.d.ts +4 -4
  88. package/dist/lang/ast/field-space/query-spaces.d.ts +7 -6
  89. package/dist/lang/ast/field-space/reference-field.d.ts +4 -4
  90. package/dist/lang/ast/field-space/refined-space.d.ts +5 -5
  91. package/dist/lang/ast/field-space/rename-space-field.d.ts +1 -1
  92. package/dist/lang/ast/field-space/static-space.d.ts +5 -5
  93. package/dist/lang/ast/field-space/struct-space-field-base.d.ts +3 -3
  94. package/dist/lang/ast/field-space/view-field.d.ts +2 -2
  95. package/dist/lang/ast/parameters/argument.d.ts +2 -2
  96. package/dist/lang/ast/parameters/has-parameter.d.ts +2 -2
  97. package/dist/lang/ast/query-builders/index-builder.d.ts +7 -7
  98. package/dist/lang/ast/query-builders/partial-builder.d.ts +1 -1
  99. package/dist/lang/ast/query-builders/partial-builder.js +0 -22
  100. package/dist/lang/ast/query-builders/project-builder.d.ts +7 -7
  101. package/dist/lang/ast/query-builders/reduce-builder.d.ts +8 -7
  102. package/dist/lang/ast/query-elements/anonymous-query.d.ts +6 -4
  103. package/dist/lang/ast/query-elements/query-arrow.d.ts +3 -3
  104. package/dist/lang/ast/query-elements/query-base.d.ts +2 -2
  105. package/dist/lang/ast/query-elements/query-head-struct.d.ts +2 -2
  106. package/dist/lang/ast/query-elements/query-raw.d.ts +4 -4
  107. package/dist/lang/ast/query-elements/query-reference.d.ts +5 -4
  108. package/dist/lang/ast/query-elements/query-refine.d.ts +3 -3
  109. package/dist/lang/ast/query-items/field-declaration.d.ts +10 -9
  110. package/dist/lang/ast/query-items/field-references.d.ts +7 -6
  111. package/dist/lang/ast/query-items/typecheck_utils.d.ts +2 -2
  112. package/dist/lang/ast/query-properties/aggregate.d.ts +3 -2
  113. package/dist/lang/ast/query-properties/calculate.d.ts +3 -2
  114. package/dist/lang/ast/query-properties/declare-fields.d.ts +5 -4
  115. package/dist/lang/ast/query-properties/extend.d.ts +4 -3
  116. package/dist/lang/ast/query-properties/filters.d.ts +6 -5
  117. package/dist/lang/ast/query-properties/group-by.d.ts +3 -2
  118. package/dist/lang/ast/query-properties/indexing.d.ts +4 -3
  119. package/dist/lang/ast/query-properties/limit.d.ts +2 -1
  120. package/dist/lang/ast/query-properties/nest.d.ts +4 -3
  121. package/dist/lang/ast/query-properties/nests.d.ts +3 -2
  122. package/dist/lang/ast/query-properties/ordering.d.ts +5 -3
  123. package/dist/lang/ast/query-properties/project-statement.d.ts +4 -3
  124. package/dist/lang/ast/query-properties/qop-desc.d.ts +5 -5
  125. package/dist/lang/ast/query-properties/sampling.d.ts +3 -2
  126. package/dist/lang/ast/query-utils.d.ts +2 -2
  127. package/dist/lang/ast/source-elements/composite-source.d.ts +3 -3
  128. package/dist/lang/ast/source-elements/named-source.d.ts +4 -4
  129. package/dist/lang/ast/source-elements/query-source.d.ts +4 -4
  130. package/dist/lang/ast/source-elements/refined-source.d.ts +4 -4
  131. package/dist/lang/ast/source-elements/source.d.ts +3 -3
  132. package/dist/lang/ast/source-elements/sql-source.d.ts +4 -4
  133. package/dist/lang/ast/source-elements/table-source.d.ts +2 -2
  134. package/dist/lang/ast/source-properties/field-list-edit.d.ts +1 -1
  135. package/dist/lang/ast/source-properties/join.d.ts +14 -11
  136. package/dist/lang/ast/source-properties/primary-key.d.ts +1 -1
  137. package/dist/lang/ast/source-properties/renames.d.ts +4 -4
  138. package/dist/lang/ast/source-properties/timezone-statement.d.ts +2 -2
  139. package/dist/lang/ast/source-properties/view-field-declaration.d.ts +7 -6
  140. package/dist/lang/ast/source-properties/views.d.ts +2 -2
  141. package/dist/lang/ast/source-query-elements/include-item.d.ts +4 -3
  142. package/dist/lang/ast/source-query-elements/source-query-element.d.ts +3 -3
  143. package/dist/lang/ast/source-query-elements/sq-arrow.d.ts +3 -3
  144. package/dist/lang/ast/source-query-elements/sq-extend.d.ts +2 -2
  145. package/dist/lang/ast/source-query-elements/sq-reference.d.ts +4 -4
  146. package/dist/lang/ast/source-query-elements/sq-refine.d.ts +1 -1
  147. package/dist/lang/ast/source-query-elements/sq-source.d.ts +1 -1
  148. package/dist/lang/ast/sql-elements/sql-string.d.ts +1 -1
  149. package/dist/lang/ast/statements/define-query.d.ts +6 -4
  150. package/dist/lang/ast/statements/define-source.d.ts +7 -5
  151. package/dist/lang/ast/statements/import-statement.d.ts +3 -2
  152. package/dist/lang/ast/struct-utils.d.ts +2 -2
  153. package/dist/lang/ast/time-utils.d.ts +2 -2
  154. package/dist/lang/ast/typedesc-utils.d.ts +1 -1
  155. package/dist/lang/ast/types/annotation-elements.d.ts +6 -5
  156. package/dist/lang/ast/types/binary_operators.d.ts +1 -1
  157. package/dist/lang/ast/types/definition-list.d.ts +4 -3
  158. package/dist/lang/ast/types/dialect-name-space.d.ts +3 -3
  159. package/dist/lang/ast/types/document-compile-result.d.ts +2 -2
  160. package/dist/lang/ast/types/expr-result.d.ts +1 -1
  161. package/dist/lang/ast/types/expr-value.d.ts +3 -3
  162. package/dist/lang/ast/types/expression-def.d.ts +4 -4
  163. package/dist/lang/ast/types/field-collection-member.d.ts +2 -2
  164. package/dist/lang/ast/types/field-prop-statement.d.ts +1 -1
  165. package/dist/lang/ast/types/field-space.d.ts +5 -5
  166. package/dist/lang/ast/types/global-name-space.d.ts +3 -3
  167. package/dist/lang/ast/types/granular-result.d.ts +3 -3
  168. package/dist/lang/ast/types/lookup-result.d.ts +3 -3
  169. package/dist/lang/ast/types/malloy-element.d.ts +10 -9
  170. package/dist/lang/ast/types/model-entry.d.ts +1 -1
  171. package/dist/lang/ast/types/name-space.d.ts +1 -1
  172. package/dist/lang/ast/types/noteable.d.ts +1 -1
  173. package/dist/lang/ast/types/op-desc.d.ts +2 -2
  174. package/dist/lang/ast/types/pipeline-comp.d.ts +1 -1
  175. package/dist/lang/ast/types/query-builder.d.ts +4 -4
  176. package/dist/lang/ast/types/query-comp.d.ts +1 -1
  177. package/dist/lang/ast/types/query-element.d.ts +3 -3
  178. package/dist/lang/ast/types/query-extend-property.d.ts +1 -1
  179. package/dist/lang/ast/types/query-item.d.ts +3 -3
  180. package/dist/lang/ast/types/query-property-interface.d.ts +1 -1
  181. package/dist/lang/ast/types/query-property.d.ts +2 -2
  182. package/dist/lang/ast/types/source-desc.d.ts +1 -1
  183. package/dist/lang/ast/types/source-property.d.ts +1 -1
  184. package/dist/lang/ast/types/space-entry.d.ts +3 -3
  185. package/dist/lang/ast/types/space-field.d.ts +2 -2
  186. package/dist/lang/ast/types/space-param.d.ts +2 -2
  187. package/dist/lang/ast/types/time-result.d.ts +2 -2
  188. package/dist/lang/ast/view-elements/qop-desc-view.d.ts +4 -4
  189. package/dist/lang/ast/view-elements/reference-view.d.ts +5 -5
  190. package/dist/lang/ast/view-elements/refine-utils.d.ts +2 -2
  191. package/dist/lang/ast/view-elements/view-arrow.d.ts +4 -4
  192. package/dist/lang/ast/view-elements/view-refine.d.ts +4 -4
  193. package/dist/lang/ast/view-elements/view.d.ts +4 -4
  194. package/dist/lang/field-utils.d.ts +1 -1
  195. package/dist/lang/malloy-parse-info.d.ts +1 -1
  196. package/dist/lang/malloy-to-ast.d.ts +9 -9
  197. package/dist/lang/malloy-to-stable-query.d.ts +7 -7
  198. package/dist/lang/parse-log.d.ts +2 -2
  199. package/dist/lang/parse-malloy.d.ts +9 -7
  200. package/dist/lang/parse-tree-walkers/document-completion-walker.d.ts +2 -2
  201. package/dist/lang/parse-tree-walkers/document-help-context-walker.d.ts +1 -1
  202. package/dist/lang/parse-tree-walkers/document-symbol-walker.d.ts +4 -4
  203. package/dist/lang/parse-tree-walkers/explore-query-walker.d.ts +3 -3
  204. package/dist/lang/parse-tree-walkers/find-external-references.d.ts +4 -4
  205. package/dist/lang/parse-tree-walkers/find-table-path-walker.d.ts +4 -4
  206. package/dist/lang/parse-tree-walkers/model-annotation-walker.d.ts +4 -4
  207. package/dist/lang/parse-utils.d.ts +2 -2
  208. package/dist/lang/reference-list.d.ts +1 -1
  209. package/dist/lang/run-malloy-parser.d.ts +2 -2
  210. package/dist/lang/syntax-errors/custom-error-messages.d.ts +1 -1
  211. package/dist/lang/syntax-errors/malloy-parser-error-listener.d.ts +4 -4
  212. package/dist/lang/test/expr-to-str.d.ts +1 -1
  213. package/dist/lang/test/parse-expects.d.ts +2 -2
  214. package/dist/lang/test/test-translator.d.ts +7 -7
  215. package/dist/lang/translate-response.d.ts +7 -7
  216. package/dist/lang/utils.d.ts +3 -3
  217. package/dist/lang/zone.d.ts +1 -1
  218. package/dist/malloy.d.ts +11 -10
  219. package/dist/model/composite_source_utils.d.ts +1 -1
  220. package/dist/model/filter_compilers.d.ts +2 -2
  221. package/dist/model/malloy_query.d.ts +6 -6
  222. package/dist/model/materialization/utils.d.ts +1 -1
  223. package/dist/model/sql_block.d.ts +2 -2
  224. package/dist/model/utils.d.ts +1 -1
  225. package/dist/run_sql_options.d.ts +1 -1
  226. package/dist/to_stable.d.ts +2 -2
  227. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
- import { CommonTokenStream } from 'antlr4ts';
2
- import { ParseTree } from 'antlr4ts/tree';
3
- import { DocumentRange } from '../../model/malloy_types';
4
- import { MalloyTranslation } from '../parse-malloy';
1
+ import type { CommonTokenStream } from 'antlr4ts';
2
+ import type { ParseTree } from 'antlr4ts/tree';
3
+ import type { DocumentRange } from '../../model/malloy_types';
4
+ import type { MalloyTranslation } from '../parse-malloy';
5
5
  export interface DocumentSymbol {
6
6
  range: DocumentRange;
7
7
  type: string;
@@ -1,6 +1,6 @@
1
- import { CommonTokenStream } from 'antlr4ts';
2
- import { ParseTree } from 'antlr4ts/tree';
3
- import { MalloyParserListener } from '../lib/Malloy/MalloyParserListener';
1
+ import type { CommonTokenStream } from 'antlr4ts';
2
+ import type { ParseTree } from 'antlr4ts/tree';
3
+ import type { MalloyParserListener } from '../lib/Malloy/MalloyParserListener';
4
4
  type SimpleRange = [number | undefined, number | undefined];
5
5
  export interface FilterRef {
6
6
  text: string;
@@ -1,7 +1,7 @@
1
- import { CommonTokenStream } from 'antlr4ts';
2
- import { ParseTree } from 'antlr4ts/tree';
3
- import { DocumentRange } from '../../model/malloy_types';
4
- import { MalloyTranslation } from '../parse-malloy';
1
+ import type { CommonTokenStream } from 'antlr4ts';
2
+ import type { ParseTree } from 'antlr4ts/tree';
3
+ import type { DocumentRange } from '../../model/malloy_types';
4
+ import type { MalloyTranslation } from '../parse-malloy';
5
5
  type NeedImports = Record<string, DocumentRange>;
6
6
  type NeedTables = Record<string, {
7
7
  connectionName: string | undefined;
@@ -1,7 +1,7 @@
1
- import { MalloyTranslation } from '../parse-malloy';
2
- import { CommonTokenStream } from 'antlr4ts';
3
- import { DocumentRange } from '../../model/malloy_types';
4
- import { MalloyParseInfo } from '../malloy-parse-info';
1
+ import type { MalloyTranslation } from '../parse-malloy';
2
+ import type { CommonTokenStream } from 'antlr4ts';
3
+ import type { DocumentRange } from '../../model/malloy_types';
4
+ import type { MalloyParseInfo } from '../malloy-parse-info';
5
5
  export interface PathInfo {
6
6
  connectionId: string;
7
7
  tablePath: string;
@@ -1,5 +1,5 @@
1
- import { CommonTokenStream } from 'antlr4ts';
2
- import { MalloyTranslation } from '../parse-malloy';
3
- import { Annotation } from '../../model/malloy_types';
4
- import { MalloyParseInfo } from '../malloy-parse-info';
1
+ import type { CommonTokenStream } from 'antlr4ts';
2
+ import type { MalloyTranslation } from '../parse-malloy';
3
+ import type { Annotation } from '../../model/malloy_types';
4
+ import type { MalloyParseInfo } from '../malloy-parse-info';
5
5
  export declare function walkForModelAnnotation(forParse: MalloyTranslation, tokens: CommonTokenStream, parseInfo: MalloyParseInfo): Annotation;
@@ -1,5 +1,5 @@
1
- import { ParserRuleContext } from 'antlr4ts';
2
- import { StringContext, ShortStringContext, SqlStringContext, IdContext } from './lib/Malloy/MalloyParser';
1
+ import type { ParserRuleContext } from 'antlr4ts';
2
+ import type { StringContext, ShortStringContext, SqlStringContext, IdContext } from './lib/Malloy/MalloyParser';
3
3
  /**
4
4
  * Take the text of a matched string, including the matching quote
5
5
  * characters, and return the actual contents of the string after
@@ -1,4 +1,4 @@
1
- import { DocumentPosition, DocumentReference } from '../model';
1
+ import type { DocumentPosition, DocumentReference } from '../model';
2
2
  export declare class ReferenceList {
3
3
  private readonly sourceURL;
4
4
  constructor(sourceURL: string);
@@ -1,3 +1,3 @@
1
- import { MessageLogger } from './parse-log';
2
- import { ParseInfo, SourceInfo } from './utils';
1
+ import type { MessageLogger } from './parse-log';
2
+ import type { ParseInfo, SourceInfo } from './utils';
3
3
  export declare function runMalloyParser(code: string, sourceURL: string, sourceInfo: SourceInfo, logger: MessageLogger, grammarRule?: string): ParseInfo;
@@ -1,4 +1,4 @@
1
- import { Parser, Token } from 'antlr4ts';
1
+ import type { Parser, Token } from 'antlr4ts';
2
2
  export interface ErrorCase {
3
3
  ruleContextOptions?: string[];
4
4
  offendingSymbol?: number;
@@ -1,7 +1,7 @@
1
- import { ANTLRErrorListener, Token } from 'antlr4ts';
2
- import { ErrorCase } from './custom-error-messages';
3
- import { MessageLogger, MessageCode, MessageParameterType, LogMessageOptions } from '../parse-log';
4
- import { SourceInfo } from '../utils';
1
+ import type { ANTLRErrorListener, Token } from 'antlr4ts';
2
+ import type { ErrorCase } from './custom-error-messages';
3
+ import type { MessageLogger, MessageCode, MessageParameterType, LogMessageOptions } from '../parse-log';
4
+ import type { SourceInfo } from '../utils';
5
5
  export declare const malloyCustomErrorCases: ErrorCase[];
6
6
  export declare class MalloyParserErrorListener implements ANTLRErrorListener<Token> {
7
7
  readonly messages: MessageLogger;
@@ -1,4 +1,4 @@
1
- import { Expr } from '../../model/malloy_types';
1
+ import type { Expr } from '../../model/malloy_types';
2
2
  /**
3
3
  * Returns a readable shorthand for the an Expr for use in debugging.
4
4
  * If not passed any symbols, the first field reference will be A,
@@ -1,5 +1,5 @@
1
- import { CompositeFieldUsage, DocumentLocation } from '../../model';
2
- import { LogSeverity } from '../parse-log';
1
+ import type { CompositeFieldUsage, DocumentLocation } from '../../model';
2
+ import type { LogSeverity } from '../parse-log';
3
3
  type MessageProblemSpec = {
4
4
  severity: LogSeverity;
5
5
  message: string | RegExp;
@@ -1,12 +1,12 @@
1
- import { DocumentLocation, FieldDef, ModelDef, NamedModelObject, PipeSegment, Query, QueryFieldDef, StructDef, TurtleDef, SourceDef, SQLSourceDef } from '../../model/malloy_types';
1
+ import type { DocumentLocation, FieldDef, ModelDef, NamedModelObject, PipeSegment, Query, QueryFieldDef, StructDef, TurtleDef, SourceDef, SQLSourceDef } from '../../model/malloy_types';
2
2
  import { MalloyElement } from '../ast';
3
- import { NameSpace } from '../ast/types/name-space';
4
- import { ModelEntry } from '../ast/types/model-entry';
3
+ import type { NameSpace } from '../ast/types/name-space';
4
+ import type { ModelEntry } from '../ast/types/model-entry';
5
5
  import { MalloyChildTranslator, MalloyTranslator } from '../parse-malloy';
6
- import { DataRequestResponse, SQLSourceRequest, TranslateResponse } from '../translate-response';
7
- import { ExprValue } from '../ast/types/expr-value';
8
- import { LogSeverity, MessageCode, MessageParameterType } from '../parse-log';
9
- import { EventStream } from '../../runtime_types';
6
+ import type { DataRequestResponse, SQLSourceRequest, TranslateResponse } from '../translate-response';
7
+ import type { ExprValue } from '../ast/types/expr-value';
8
+ import type { LogSeverity, MessageCode, MessageParameterType } from '../parse-log';
9
+ import type { EventStream } from '../../runtime_types';
10
10
  export declare function pretty(thing: any): string;
11
11
  export declare const aTableDef: SourceDef;
12
12
  /**
@@ -1,10 +1,10 @@
1
- import { Annotation, ModelDef } from '../model/malloy_types';
2
- import { MalloyElement } from './ast';
3
- import { LogMessage } from './parse-log';
4
- import { DocumentSymbol } from './parse-tree-walkers/document-symbol-walker';
5
- import { DocumentCompletion } from './parse-tree-walkers/document-completion-walker';
6
- import { DocumentHelpContext } from './parse-tree-walkers/document-help-context-walker';
7
- import { PathInfo } from './parse-tree-walkers/find-table-path-walker';
1
+ import type { Annotation, ModelDef } from '../model/malloy_types';
2
+ import type { MalloyElement } from './ast';
3
+ import type { LogMessage } from './parse-log';
4
+ import type { DocumentSymbol } from './parse-tree-walkers/document-symbol-walker';
5
+ import type { DocumentCompletion } from './parse-tree-walkers/document-completion-walker';
6
+ import type { DocumentHelpContext } from './parse-tree-walkers/document-help-context-walker';
7
+ import type { PathInfo } from './parse-tree-walkers/find-table-path-walker';
8
8
  /**
9
9
  * The translation interface is essentially a request/response protocol, and
10
10
  * this is the list of all the "protocol" messages.
@@ -1,6 +1,6 @@
1
- import { CodePointCharStream, CommonTokenStream, ParserRuleContext, Token } from 'antlr4ts';
2
- import { DocumentLocation, DocumentPosition, DocumentRange } from '../model/malloy_types';
3
- import { ParseTree } from 'antlr4ts/tree';
1
+ import type { CodePointCharStream, CommonTokenStream, ParserRuleContext, Token } from 'antlr4ts';
2
+ import type { DocumentLocation, DocumentPosition, DocumentRange } from '../model/malloy_types';
3
+ import type { ParseTree } from 'antlr4ts/tree';
4
4
  export declare function locationContainsPosition(location: DocumentLocation, position: DocumentPosition): boolean;
5
5
  export declare function isNotUndefined<T>(value: T | undefined): value is T;
6
6
  export interface SourceInfo {
@@ -1,4 +1,4 @@
1
- import { DocumentLocation } from '../model/malloy_types';
1
+ import type { DocumentLocation } from '../model/malloy_types';
2
2
  export type ZoneData<TValue> = Record<string, TValue>;
3
3
  type EntryStatus = 'present' | 'reference' | 'error';
4
4
  interface AllEntries {
package/dist/malloy.d.ts CHANGED
@@ -1,15 +1,16 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
- import { RunSQLOptions } from './run_sql_options';
4
- import { DocumentCompletion as DocumentCompletionDefinition, DocumentSymbol as DocumentSymbolDefinition, LogMessage, MalloyTranslator } from './lang';
5
- import { DocumentHelpContext } from './lang/parse-tree-walkers/document-help-context-walker';
6
- import { CompiledQuery, DocumentLocation, DocumentReference, BooleanFieldDef, JSONFieldDef, NumberFieldDef, StringFieldDef, FilterCondition, Query as InternalQuery, ModelDef, DocumentPosition as ModelDocumentPosition, NamedQuery, QueryData, QueryDataRow, QueryResult, SearchIndexResult, SearchValueMapResult, StructDef, TurtleDef, NativeUnsupportedFieldDef, QueryRunStats, ImportLocation, Annotation, SQLSourceDef, AtomicFieldDef, DateFieldDef, TimestampFieldDef, SourceDef, QueryToMaterialize } from './model';
7
- import { EventStream, InvalidationKey, ModelString, ModelURL, QueryString, QueryURL, URLReader } from './runtime_types';
8
- import { Connection, FetchSchemaOptions, InfoConnection, LookupConnection } from './connection/types';
9
- import { Tag } from '@malloydata/malloy-tag';
10
- import { Dialect } from './dialect';
11
- import { PathInfo } from './lang/parse-tree-walkers/find-table-path-walker';
12
- import { MalloyTagParse, TagParseSpec } from './annotation';
3
+ import type { RunSQLOptions } from './run_sql_options';
4
+ import type { DocumentCompletion as DocumentCompletionDefinition, DocumentSymbol as DocumentSymbolDefinition, LogMessage } from './lang';
5
+ import { MalloyTranslator } from './lang';
6
+ import type { DocumentHelpContext } from './lang/parse-tree-walkers/document-help-context-walker';
7
+ import type { CompiledQuery, DocumentLocation, DocumentReference, BooleanFieldDef, JSONFieldDef, NumberFieldDef, StringFieldDef, FilterCondition, Query as InternalQuery, ModelDef, DocumentPosition as ModelDocumentPosition, NamedQuery, QueryData, QueryDataRow, QueryResult, SearchIndexResult, SearchValueMapResult, StructDef, TurtleDef, NativeUnsupportedFieldDef, QueryRunStats, ImportLocation, Annotation, SQLSourceDef, AtomicFieldDef, DateFieldDef, TimestampFieldDef, SourceDef, QueryToMaterialize } from './model';
8
+ import type { EventStream, InvalidationKey, ModelString, ModelURL, QueryString, QueryURL, URLReader } from './runtime_types';
9
+ import type { Connection, FetchSchemaOptions, InfoConnection, LookupConnection } from './connection/types';
10
+ import type { Tag } from '@malloydata/malloy-tag';
11
+ import type { Dialect } from './dialect';
12
+ import type { PathInfo } from './lang/parse-tree-walkers/find-table-path-walker';
13
+ import type { MalloyTagParse, TagParseSpec } from './annotation';
13
14
  export interface Taggable {
14
15
  tagParse: (spec?: TagParseSpec) => MalloyTagParse;
15
16
  getTaglines: (prefix?: RegExp) => string[];
@@ -1,4 +1,4 @@
1
- import { CompositeFieldUsage, SourceDef } from './malloy_types';
1
+ import type { CompositeFieldUsage, SourceDef } from './malloy_types';
2
2
  type CompositeError = {
3
3
  code: 'not_a_composite_source';
4
4
  data: {
@@ -1,5 +1,5 @@
1
- import { BooleanClause, ClauseBase, NumberClause, StringClause, TemporalClause } from '@malloydata/malloy-filter';
2
- import { Dialect } from '../dialect';
1
+ import type { BooleanClause, ClauseBase, NumberClause, StringClause, TemporalClause } from '@malloydata/malloy-filter';
2
+ import type { Dialect } from '../dialect';
3
3
  export declare const FilterCompilers: {
4
4
  compile(t: string, c: ClauseBase, x: string, d: Dialect): string;
5
5
  numberCompile(nc: NumberClause, x: string, d: Dialect): string;
@@ -1,10 +1,10 @@
1
- import { Dialect, DialectFieldList } from '../dialect';
2
- import { AggregateFunctionType, Annotation, CompiledQuery, Expr, FieldDef, Filtered, FunctionOverloadDef, FunctionParameterDef, JoinRelationship, ModelDef, OrderBy, OutputFieldNode, ParameterNode, PipeSegment, Query, QueryFieldDef, QuerySegment, ResultMetadataDef, ResultStructMetadataDef, SearchIndexResult, SegmentFieldDef, StructDef, StructRef, TurtleDef, FunctionOrderBy, Argument, AggregateExpr, FilterCondition, GenericSQLExpr, FieldnameNode, FunctionCallNode, UngroupNode, SourceReferenceNode, SpreadExpr, FilteredExpr, SourceDef, BooleanFieldDef, QueryResultDef, QueryToMaterialize, PrepareResultOptions, CaseExpr, LeafAtomicDef } from './malloy_types';
3
- import { Connection } from '../connection/types';
1
+ import type { Dialect, DialectFieldList } from '../dialect';
2
+ import type { AggregateFunctionType, Annotation, CompiledQuery, Expr, FieldDef, Filtered, FunctionOverloadDef, FunctionParameterDef, JoinRelationship, ModelDef, OrderBy, OutputFieldNode, ParameterNode, PipeSegment, Query, QueryFieldDef, QuerySegment, ResultMetadataDef, ResultStructMetadataDef, SearchIndexResult, SegmentFieldDef, StructDef, StructRef, TurtleDef, FunctionOrderBy, Argument, AggregateExpr, FilterCondition, GenericSQLExpr, FieldnameNode, FunctionCallNode, UngroupNode, SourceReferenceNode, SpreadExpr, FilteredExpr, SourceDef, BooleanFieldDef, QueryResultDef, QueryToMaterialize, PrepareResultOptions, CaseExpr, LeafAtomicDef } from './malloy_types';
3
+ import type { Connection } from '../connection/types';
4
4
  import { AndChain } from './utils';
5
- import { QueryInfo } from '../dialect/dialect';
6
- import { EventStream } from '../runtime_types';
7
- import { Tag } from '@malloydata/malloy-tag';
5
+ import type { QueryInfo } from '../dialect/dialect';
6
+ import type { EventStream } from '../runtime_types';
7
+ import type { Tag } from '@malloydata/malloy-tag';
8
8
  interface TurtleDefPlus extends TurtleDef, Filtered {
9
9
  }
10
10
  /** Parent from QueryStruct. */
@@ -1,3 +1,3 @@
1
- import { Annotation, QueryToMaterialize } from '../malloy_types';
1
+ import type { Annotation, QueryToMaterialize } from '../malloy_types';
2
2
  export declare function shouldMaterialize(annotation?: Annotation): boolean;
3
3
  export declare function buildQueryMaterializationSpec(path?: string, queryName?: string, materializatedTablePrefix?: string): QueryToMaterialize;
@@ -1,4 +1,4 @@
1
- import { SQLSourceRequest } from '../lang/translate-response';
2
- import { SQLPhraseSegment, ModelDef } from './malloy_types';
1
+ import type { SQLSourceRequest } from '../lang/translate-response';
2
+ import type { SQLPhraseSegment, ModelDef } from './malloy_types';
3
3
  export declare function compileSQLInterpolation(select: SQLPhraseSegment[], connection: string, partialModel: ModelDef | undefined): SQLSourceRequest;
4
4
  export declare function sqlKey(connectionName: string, sql: string): string;
@@ -1,4 +1,4 @@
1
- import { Expr, GenericSQLExpr } from './malloy_types';
1
+ import type { Expr, GenericSQLExpr } from './malloy_types';
2
2
  /** simple indent function */
3
3
  export declare function indent(s: string): string;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Annotation } from './model/malloy_types';
1
+ import type { Annotation } from './model/malloy_types';
2
2
  export interface RunSQLOptions {
3
3
  rowLimit?: number;
4
4
  abortSignal?: AbortSignal;
@@ -1,5 +1,5 @@
1
- import * as Malloy from '@malloydata/malloy-interfaces';
2
- import { FieldDef, ModelDef, ResultStructMetadataDef, SourceDef } from './model';
1
+ import type * as Malloy from '@malloydata/malloy-interfaces';
2
+ import type { FieldDef, ModelDef, ResultStructMetadataDef, SourceDef } from './model';
3
3
  export declare function modelDefToModelInfo(modelDef: ModelDef): Malloy.ModelInfo;
4
4
  export declare function convertFieldInfos(source: SourceDef, fields: FieldDef[]): Malloy.FieldInfo[];
5
5
  export declare function getResultStructMetadataAnnotation(field: SourceDef, resultMetadata: ResultStructMetadataDef): Malloy.Annotation | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.243-dev250314155434",
3
+ "version": "0.0.243-dev250314163430",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -41,9 +41,9 @@
41
41
  "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"
42
42
  },
43
43
  "dependencies": {
44
- "@malloydata/malloy-filter": "^0.0.243-dev250314155434",
45
- "@malloydata/malloy-interfaces": "^0.0.243-dev250314155434",
46
- "@malloydata/malloy-tag": "^0.0.243-dev250314155434",
44
+ "@malloydata/malloy-filter": "^0.0.243-dev250314163430",
45
+ "@malloydata/malloy-interfaces": "^0.0.243-dev250314163430",
46
+ "@malloydata/malloy-tag": "^0.0.243-dev250314163430",
47
47
  "antlr4ts": "^0.5.0-alpha.4",
48
48
  "assert": "^2.0.0",
49
49
  "jest-diff": "^29.6.2",