@hamelin.sh/compiler 0.5.7 → 0.5.8

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/main.d.ts CHANGED
@@ -98,6 +98,8 @@ type CompletionItemKind = "Text" | "Variable" | "Function" | "Command" | "Keywor
98
98
 
99
99
  type HamelinType = "binary" | "boolean" | "interval" | "calendar_interval" | "int" | "double" | "rows" | "string" | "timestamp" | "unknown" | { decimal: { precision: number; scale: number } } | { array: { element_type: HamelinType } } | { map: { key_type: HamelinType; value_type: HamelinType } } | { tuple: { elements: HamelinType[] } } | "variant" | { range: { of: HamelinType } } | { struct: Column[] };
100
100
 
101
+ type IncrementalEligibilityResult = { Eligible: { strategies: string[] } } | { NotEligible: { reasons: string[] } } | { CompilationError: ContextualTranslationErrors };
102
+
101
103
  type LanguageArea = "FunctionCall" | "Operator" | "Deref" | "IndexAccess" | "Parsing";
102
104
 
103
105
  type Level = "Error" | "Warning" | "Info";
@@ -111,6 +113,8 @@ type CatalogResourceInput = Omit<CatalogResource, "isUnion"> & {
111
113
  };
112
114
  declare const buildCatalog: (startingCatalog: Catalog, resources: Array<CatalogResourceInput>) => Promise<BuildCatalogOutput>;
113
115
 
116
+ declare const checkIncrementalEligibility: (catalog: Catalog, query: string) => Promise<IncrementalEligibilityResult>;
117
+
114
118
  declare const compileHamelinQuery: (catalog: Catalog, hamelinInput: string) => Promise<CompileHamelinQueryResult>;
115
119
 
116
120
  declare function getCompletions(catalog: Catalog, hamelinInput: string, pos: number): Promise<Completion | null>;
@@ -155,4 +159,4 @@ declare function parseTokenValueClass(stream: {
155
159
 
156
160
  declare const sampleCatalog: Catalog;
157
161
 
158
- export { type BuildCatalogError, type BuildCatalogOutput, type Catalog, type Column, type CompileHamelinQueryResult, type CompileHamelinQueryResultOk, type Completion, type CompletionItem, type ContextualTranslationError, type ContextualTranslationErrors, type FunctionDescription, type HamelinType, type QuerySort, type TranslationError, buildCatalog, compileHamelinQuery, getAggregations, getCompletions, getDatasetsFromQuery, getFunctionDescriptions, getLimits, getSelectedFields, getSorts, hamelinGrammar, hamelinPrompt, parseTokenValueClass, sampleCatalog };
162
+ export { type BuildCatalogError, type BuildCatalogOutput, type Catalog, type Column, type CompileHamelinQueryResult, type CompileHamelinQueryResultOk, type Completion, type CompletionItem, type ContextualTranslationError, type ContextualTranslationErrors, type FunctionDescription, type HamelinType, type IncrementalEligibilityResult, type QuerySort, type TranslationError, buildCatalog, checkIncrementalEligibility, compileHamelinQuery, getAggregations, getCompletions, getDatasetsFromQuery, getFunctionDescriptions, getLimits, getSelectedFields, getSorts, hamelinGrammar, hamelinPrompt, parseTokenValueClass, sampleCatalog };