@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.
- package/dist/annotation.d.ts +2 -2
- package/dist/api/asynchronous.d.ts +4 -4
- package/dist/api/connection.d.ts +1 -1
- package/dist/api/core.d.ts +3 -2
- package/dist/api/stateless.d.ts +1 -1
- package/dist/api/util.d.ts +5 -5
- package/dist/connection/base_connection.d.ts +4 -4
- package/dist/connection/types.d.ts +4 -4
- package/dist/dialect/dialect.d.ts +2 -2
- package/dist/dialect/dialect_map.d.ts +1 -1
- package/dist/dialect/duckdb/dialect_functions.d.ts +1 -1
- package/dist/dialect/duckdb/duckdb.d.ts +3 -3
- package/dist/dialect/duckdb/function_overrides.d.ts +1 -1
- package/dist/dialect/functions/malloy_standard_functions.d.ts +1 -1
- package/dist/dialect/functions/util.d.ts +2 -2
- package/dist/dialect/mysql/dialect_functions.d.ts +1 -1
- package/dist/dialect/mysql/function_overrides.d.ts +1 -1
- package/dist/dialect/mysql/mysql.d.ts +4 -3
- package/dist/dialect/mysql/mysql.js +0 -7
- package/dist/dialect/pg_impl.d.ts +3 -2
- package/dist/dialect/postgres/dialect_functions.d.ts +1 -1
- package/dist/dialect/postgres/function_overrides.d.ts +1 -1
- package/dist/dialect/postgres/postgres.d.ts +3 -3
- package/dist/dialect/snowflake/dialect_functions.d.ts +1 -1
- package/dist/dialect/snowflake/function_overrides.d.ts +1 -1
- package/dist/dialect/snowflake/snowflake.d.ts +4 -3
- package/dist/dialect/standardsql/dialect_functions.d.ts +1 -1
- package/dist/dialect/standardsql/function_overrides.d.ts +1 -1
- package/dist/dialect/standardsql/standardsql.d.ts +4 -3
- package/dist/dialect/trino/dialect_functions.d.ts +1 -1
- package/dist/dialect/trino/function_overrides.d.ts +1 -1
- package/dist/dialect/trino/trino.d.ts +3 -3
- package/dist/lang/ast/ast-utils.d.ts +1 -1
- package/dist/lang/ast/error-factory.d.ts +1 -1
- package/dist/lang/ast/expressions/apply.d.ts +3 -3
- package/dist/lang/ast/expressions/binary-boolean.d.ts +3 -3
- package/dist/lang/ast/expressions/binary-numeric.d.ts +3 -3
- package/dist/lang/ast/expressions/boolean.d.ts +1 -1
- package/dist/lang/ast/expressions/case.d.ts +2 -2
- package/dist/lang/ast/expressions/constant-expression.d.ts +6 -6
- package/dist/lang/ast/expressions/expr-aggregate-function.d.ts +4 -4
- package/dist/lang/ast/expressions/expr-alternation-tree.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-array-literal.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-asymmetric.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-avg.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-cast.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-coalesce.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-compare.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-count-distinct.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-count.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-filter-expr.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-func.d.ts +7 -7
- package/dist/lang/ast/expressions/expr-granular-time.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-id-reference.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-max.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-min.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-minus.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-not.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-now.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-null.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-number.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-parens.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-props.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-record-literal.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-regex.d.ts +1 -1
- package/dist/lang/ast/expressions/expr-string.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-sum.d.ts +2 -2
- package/dist/lang/ast/expressions/expr-time-extract.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-time.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-ungroup.d.ts +2 -2
- package/dist/lang/ast/expressions/for-range.d.ts +4 -4
- package/dist/lang/ast/expressions/function-ordering.d.ts +3 -3
- package/dist/lang/ast/expressions/partial-compare.d.ts +3 -3
- package/dist/lang/ast/expressions/partition_by.d.ts +1 -1
- package/dist/lang/ast/expressions/pick-when.d.ts +2 -2
- package/dist/lang/ast/expressions/range.d.ts +3 -3
- package/dist/lang/ast/expressions/time-frame.d.ts +1 -1
- package/dist/lang/ast/expressions/time-literal.d.ts +5 -5
- package/dist/lang/ast/field-space/ast-view-field.d.ts +3 -3
- package/dist/lang/ast/field-space/column-space-field.d.ts +1 -1
- package/dist/lang/ast/field-space/dynamic-space.d.ts +5 -5
- package/dist/lang/ast/field-space/index-field-space.d.ts +2 -2
- package/dist/lang/ast/field-space/ir-view-field.d.ts +2 -2
- package/dist/lang/ast/field-space/join-space-field.d.ts +2 -2
- package/dist/lang/ast/field-space/parameter-space.d.ts +6 -6
- package/dist/lang/ast/field-space/project-field-space.d.ts +1 -1
- package/dist/lang/ast/field-space/query-input-space.d.ts +4 -4
- package/dist/lang/ast/field-space/query-spaces.d.ts +7 -6
- package/dist/lang/ast/field-space/reference-field.d.ts +4 -4
- package/dist/lang/ast/field-space/refined-space.d.ts +5 -5
- package/dist/lang/ast/field-space/rename-space-field.d.ts +1 -1
- package/dist/lang/ast/field-space/static-space.d.ts +5 -5
- package/dist/lang/ast/field-space/struct-space-field-base.d.ts +3 -3
- package/dist/lang/ast/field-space/view-field.d.ts +2 -2
- package/dist/lang/ast/parameters/argument.d.ts +2 -2
- package/dist/lang/ast/parameters/has-parameter.d.ts +2 -2
- package/dist/lang/ast/query-builders/index-builder.d.ts +7 -7
- package/dist/lang/ast/query-builders/partial-builder.d.ts +1 -1
- package/dist/lang/ast/query-builders/partial-builder.js +0 -22
- package/dist/lang/ast/query-builders/project-builder.d.ts +7 -7
- package/dist/lang/ast/query-builders/reduce-builder.d.ts +8 -7
- package/dist/lang/ast/query-elements/anonymous-query.d.ts +6 -4
- package/dist/lang/ast/query-elements/query-arrow.d.ts +3 -3
- package/dist/lang/ast/query-elements/query-base.d.ts +2 -2
- package/dist/lang/ast/query-elements/query-head-struct.d.ts +2 -2
- package/dist/lang/ast/query-elements/query-raw.d.ts +4 -4
- package/dist/lang/ast/query-elements/query-reference.d.ts +5 -4
- package/dist/lang/ast/query-elements/query-refine.d.ts +3 -3
- package/dist/lang/ast/query-items/field-declaration.d.ts +10 -9
- package/dist/lang/ast/query-items/field-references.d.ts +7 -6
- package/dist/lang/ast/query-items/typecheck_utils.d.ts +2 -2
- package/dist/lang/ast/query-properties/aggregate.d.ts +3 -2
- package/dist/lang/ast/query-properties/calculate.d.ts +3 -2
- package/dist/lang/ast/query-properties/declare-fields.d.ts +5 -4
- package/dist/lang/ast/query-properties/extend.d.ts +4 -3
- package/dist/lang/ast/query-properties/filters.d.ts +6 -5
- package/dist/lang/ast/query-properties/group-by.d.ts +3 -2
- package/dist/lang/ast/query-properties/indexing.d.ts +4 -3
- package/dist/lang/ast/query-properties/limit.d.ts +2 -1
- package/dist/lang/ast/query-properties/nest.d.ts +4 -3
- package/dist/lang/ast/query-properties/nests.d.ts +3 -2
- package/dist/lang/ast/query-properties/ordering.d.ts +5 -3
- package/dist/lang/ast/query-properties/project-statement.d.ts +4 -3
- package/dist/lang/ast/query-properties/qop-desc.d.ts +5 -5
- package/dist/lang/ast/query-properties/sampling.d.ts +3 -2
- package/dist/lang/ast/query-utils.d.ts +2 -2
- package/dist/lang/ast/source-elements/composite-source.d.ts +3 -3
- package/dist/lang/ast/source-elements/named-source.d.ts +4 -4
- package/dist/lang/ast/source-elements/query-source.d.ts +4 -4
- package/dist/lang/ast/source-elements/refined-source.d.ts +4 -4
- package/dist/lang/ast/source-elements/source.d.ts +3 -3
- package/dist/lang/ast/source-elements/sql-source.d.ts +4 -4
- package/dist/lang/ast/source-elements/table-source.d.ts +2 -2
- package/dist/lang/ast/source-properties/field-list-edit.d.ts +1 -1
- package/dist/lang/ast/source-properties/join.d.ts +14 -11
- package/dist/lang/ast/source-properties/primary-key.d.ts +1 -1
- package/dist/lang/ast/source-properties/renames.d.ts +4 -4
- package/dist/lang/ast/source-properties/timezone-statement.d.ts +2 -2
- package/dist/lang/ast/source-properties/view-field-declaration.d.ts +7 -6
- package/dist/lang/ast/source-properties/views.d.ts +2 -2
- package/dist/lang/ast/source-query-elements/include-item.d.ts +4 -3
- package/dist/lang/ast/source-query-elements/source-query-element.d.ts +3 -3
- package/dist/lang/ast/source-query-elements/sq-arrow.d.ts +3 -3
- package/dist/lang/ast/source-query-elements/sq-extend.d.ts +2 -2
- package/dist/lang/ast/source-query-elements/sq-reference.d.ts +4 -4
- package/dist/lang/ast/source-query-elements/sq-refine.d.ts +1 -1
- package/dist/lang/ast/source-query-elements/sq-source.d.ts +1 -1
- package/dist/lang/ast/sql-elements/sql-string.d.ts +1 -1
- package/dist/lang/ast/statements/define-query.d.ts +6 -4
- package/dist/lang/ast/statements/define-source.d.ts +7 -5
- package/dist/lang/ast/statements/import-statement.d.ts +3 -2
- package/dist/lang/ast/struct-utils.d.ts +2 -2
- package/dist/lang/ast/time-utils.d.ts +2 -2
- package/dist/lang/ast/typedesc-utils.d.ts +1 -1
- package/dist/lang/ast/types/annotation-elements.d.ts +6 -5
- package/dist/lang/ast/types/binary_operators.d.ts +1 -1
- package/dist/lang/ast/types/definition-list.d.ts +4 -3
- package/dist/lang/ast/types/dialect-name-space.d.ts +3 -3
- package/dist/lang/ast/types/document-compile-result.d.ts +2 -2
- package/dist/lang/ast/types/expr-result.d.ts +1 -1
- package/dist/lang/ast/types/expr-value.d.ts +3 -3
- package/dist/lang/ast/types/expression-def.d.ts +4 -4
- package/dist/lang/ast/types/field-collection-member.d.ts +2 -2
- package/dist/lang/ast/types/field-prop-statement.d.ts +1 -1
- package/dist/lang/ast/types/field-space.d.ts +5 -5
- package/dist/lang/ast/types/global-name-space.d.ts +3 -3
- package/dist/lang/ast/types/granular-result.d.ts +3 -3
- package/dist/lang/ast/types/lookup-result.d.ts +3 -3
- package/dist/lang/ast/types/malloy-element.d.ts +10 -9
- package/dist/lang/ast/types/model-entry.d.ts +1 -1
- package/dist/lang/ast/types/name-space.d.ts +1 -1
- package/dist/lang/ast/types/noteable.d.ts +1 -1
- package/dist/lang/ast/types/op-desc.d.ts +2 -2
- package/dist/lang/ast/types/pipeline-comp.d.ts +1 -1
- package/dist/lang/ast/types/query-builder.d.ts +4 -4
- package/dist/lang/ast/types/query-comp.d.ts +1 -1
- package/dist/lang/ast/types/query-element.d.ts +3 -3
- package/dist/lang/ast/types/query-extend-property.d.ts +1 -1
- package/dist/lang/ast/types/query-item.d.ts +3 -3
- package/dist/lang/ast/types/query-property-interface.d.ts +1 -1
- package/dist/lang/ast/types/query-property.d.ts +2 -2
- package/dist/lang/ast/types/source-desc.d.ts +1 -1
- package/dist/lang/ast/types/source-property.d.ts +1 -1
- package/dist/lang/ast/types/space-entry.d.ts +3 -3
- package/dist/lang/ast/types/space-field.d.ts +2 -2
- package/dist/lang/ast/types/space-param.d.ts +2 -2
- package/dist/lang/ast/types/time-result.d.ts +2 -2
- package/dist/lang/ast/view-elements/qop-desc-view.d.ts +4 -4
- package/dist/lang/ast/view-elements/reference-view.d.ts +5 -5
- package/dist/lang/ast/view-elements/refine-utils.d.ts +2 -2
- package/dist/lang/ast/view-elements/view-arrow.d.ts +4 -4
- package/dist/lang/ast/view-elements/view-refine.d.ts +4 -4
- package/dist/lang/ast/view-elements/view.d.ts +4 -4
- package/dist/lang/field-utils.d.ts +1 -1
- package/dist/lang/malloy-parse-info.d.ts +1 -1
- package/dist/lang/malloy-to-ast.d.ts +9 -9
- package/dist/lang/malloy-to-stable-query.d.ts +7 -7
- package/dist/lang/parse-log.d.ts +2 -2
- package/dist/lang/parse-malloy.d.ts +9 -7
- package/dist/lang/parse-tree-walkers/document-completion-walker.d.ts +2 -2
- package/dist/lang/parse-tree-walkers/document-help-context-walker.d.ts +1 -1
- package/dist/lang/parse-tree-walkers/document-symbol-walker.d.ts +4 -4
- package/dist/lang/parse-tree-walkers/explore-query-walker.d.ts +3 -3
- package/dist/lang/parse-tree-walkers/find-external-references.d.ts +4 -4
- package/dist/lang/parse-tree-walkers/find-table-path-walker.d.ts +4 -4
- package/dist/lang/parse-tree-walkers/model-annotation-walker.d.ts +4 -4
- package/dist/lang/parse-utils.d.ts +2 -2
- package/dist/lang/reference-list.d.ts +1 -1
- package/dist/lang/run-malloy-parser.d.ts +2 -2
- package/dist/lang/syntax-errors/custom-error-messages.d.ts +1 -1
- package/dist/lang/syntax-errors/malloy-parser-error-listener.d.ts +4 -4
- package/dist/lang/test/expr-to-str.d.ts +1 -1
- package/dist/lang/test/parse-expects.d.ts +2 -2
- package/dist/lang/test/test-translator.d.ts +7 -7
- package/dist/lang/translate-response.d.ts +7 -7
- package/dist/lang/utils.d.ts +3 -3
- package/dist/lang/zone.d.ts +1 -1
- package/dist/malloy.d.ts +11 -10
- package/dist/model/composite_source_utils.d.ts +1 -1
- package/dist/model/filter_compilers.d.ts +2 -2
- package/dist/model/malloy_query.d.ts +6 -6
- package/dist/model/materialization/utils.d.ts +1 -1
- package/dist/model/sql_block.d.ts +2 -2
- package/dist/model/utils.d.ts +1 -1
- package/dist/run_sql_options.d.ts +1 -1
- package/dist/to_stable.d.ts +2 -2
- 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,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,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,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.
|
package/dist/lang/utils.d.ts
CHANGED
|
@@ -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 {
|
package/dist/lang/zone.d.ts
CHANGED
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
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
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,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;
|
package/dist/model/utils.d.ts
CHANGED
package/dist/to_stable.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
45
|
-
"@malloydata/malloy-interfaces": "^0.0.243-
|
|
46
|
-
"@malloydata/malloy-tag": "^0.0.243-
|
|
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",
|