@514labs/moose-lib 0.6.297-ci-37-gf180cb49 → 0.6.297

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.
@@ -1894,33 +1894,57 @@ declare class ETLPipeline<T, U> {
1894
1894
  run(): Promise<void>;
1895
1895
  }
1896
1896
 
1897
+ type SqlObject = OlapTable<any> | SqlResource;
1897
1898
  /**
1898
- * Represents a database View, defined by a SQL SELECT statement based on one or more base tables or other views.
1899
- * Emits structured data for the Moose infrastructure system.
1899
+ * Represents a generic SQL resource that requires setup and teardown commands.
1900
+ * Base class for constructs like Views and Materialized Views. Tracks dependencies.
1900
1901
  */
1901
- declare class View {
1902
+ declare class SqlResource {
1902
1903
  /** @internal */
1903
- readonly kind = "View";
1904
- /** The name of the view */
1904
+ readonly kind = "SqlResource";
1905
+ /** Array of SQL statements to execute for setting up the resource. */
1906
+ setup: readonly string[];
1907
+ /** Array of SQL statements to execute for tearing down the resource. */
1908
+ teardown: readonly string[];
1909
+ /** The name of the SQL resource (e.g., view name, materialized view name). */
1905
1910
  name: string;
1906
- /** The SELECT SQL statement that defines the view */
1907
- selectSql: string;
1908
- /** Names of source tables/views that the SELECT reads from */
1909
- sourceTables: string[];
1910
- /** Optional metadata for the view */
1911
- metadata: {
1912
- [key: string]: any;
1913
- };
1911
+ /** List of OlapTables or Views that this resource reads data from. */
1912
+ pullsDataFrom: SqlObject[];
1913
+ /** List of OlapTables or Views that this resource writes data to. */
1914
+ pushesDataTo: SqlObject[];
1915
+ /** @internal Source file path where this resource was defined */
1916
+ sourceFile?: string;
1917
+ /** @internal Source line number where this resource was defined */
1918
+ sourceLine?: number;
1919
+ /** @internal Source column number where this resource was defined */
1920
+ sourceColumn?: number;
1921
+ /**
1922
+ * Creates a new SqlResource instance.
1923
+ * @param name The name of the resource.
1924
+ * @param setup An array of SQL DDL statements to create the resource.
1925
+ * @param teardown An array of SQL DDL statements to drop the resource.
1926
+ * @param options Optional configuration for specifying data dependencies.
1927
+ * @param options.pullsDataFrom Tables/Views this resource reads from.
1928
+ * @param options.pushesDataTo Tables/Views this resource writes to.
1929
+ */
1930
+ constructor(name: string, setup: readonly (string | Sql)[], teardown: readonly (string | Sql)[], options?: {
1931
+ pullsDataFrom?: SqlObject[];
1932
+ pushesDataTo?: SqlObject[];
1933
+ });
1934
+ }
1935
+
1936
+ /**
1937
+ * Represents a database View, defined by a SQL SELECT statement based on one or more base tables or other views.
1938
+ * Inherits from SqlResource, providing setup (CREATE VIEW) and teardown (DROP VIEW) commands.
1939
+ */
1940
+ declare class View extends SqlResource {
1914
1941
  /**
1915
1942
  * Creates a new View instance.
1916
1943
  * @param name The name of the view to be created.
1917
1944
  * @param selectStatement The SQL SELECT statement that defines the view's logic.
1918
1945
  * @param baseTables An array of OlapTable or View objects that the `selectStatement` reads from. Used for dependency tracking.
1919
- * @param metadata Optional metadata for the view (e.g., description, source file).
1920
1946
  */
1921
- constructor(name: string, selectStatement: string | Sql, baseTables: (OlapTable<any> | View)[], metadata?: {
1922
- [key: string]: any;
1923
- });
1947
+ constructor(name: string, selectStatement: string | Sql, baseTables: (OlapTable<any> | View)[]);
1924
1948
  }
1925
1949
 
1926
1950
  /**
@@ -1951,10 +1975,6 @@ interface MaterializedViewConfig<T> {
1951
1975
  /** @deprecated See {@link targetTable}
1952
1976
  * Optional ordering fields for the target table. Crucial if using ReplacingMergeTree. */
1953
1977
  orderByFields?: (keyof T & string)[];
1954
- /** Optional metadata for the materialized view (e.g., description, source file). */
1955
- metadata?: {
1956
- [key: string]: any;
1957
- };
1958
1978
  }
1959
1979
  /**
1960
1980
  * Represents a Materialized View in ClickHouse.
@@ -1963,21 +1983,9 @@ interface MaterializedViewConfig<T> {
1963
1983
  *
1964
1984
  * @template TargetTable The data type of the records stored in the underlying target OlapTable. The structure of T defines the target table schema.
1965
1985
  */
1966
- declare class MaterializedView<TargetTable> {
1967
- /** @internal */
1968
- readonly kind = "MaterializedView";
1969
- /** The name of the materialized view */
1970
- name: string;
1986
+ declare class MaterializedView<TargetTable> extends SqlResource {
1971
1987
  /** The target OlapTable instance where the materialized data is stored. */
1972
1988
  targetTable: OlapTable<TargetTable>;
1973
- /** The SELECT SQL statement */
1974
- selectSql: string;
1975
- /** Names of source tables that the SELECT reads from */
1976
- sourceTables: string[];
1977
- /** Optional metadata for the materialized view */
1978
- metadata: {
1979
- [key: string]: any;
1980
- };
1981
1989
  /**
1982
1990
  * Creates a new MaterializedView instance.
1983
1991
  * Requires the `TargetTable` type parameter to be explicitly provided or inferred,
@@ -1990,45 +1998,6 @@ declare class MaterializedView<TargetTable> {
1990
1998
  constructor(options: MaterializedViewConfig<TargetTable>, targetSchema: IJsonSchemaCollection$1.IV3_1, targetColumns: Column[]);
1991
1999
  }
1992
2000
 
1993
- type SqlObject = OlapTable<any> | SqlResource;
1994
- /**
1995
- * Represents a generic SQL resource that requires setup and teardown commands.
1996
- * Base class for constructs like Views and Materialized Views. Tracks dependencies.
1997
- */
1998
- declare class SqlResource {
1999
- /** @internal */
2000
- readonly kind = "SqlResource";
2001
- /** Array of SQL statements to execute for setting up the resource. */
2002
- setup: readonly string[];
2003
- /** Array of SQL statements to execute for tearing down the resource. */
2004
- teardown: readonly string[];
2005
- /** The name of the SQL resource (e.g., view name, materialized view name). */
2006
- name: string;
2007
- /** List of OlapTables or Views that this resource reads data from. */
2008
- pullsDataFrom: SqlObject[];
2009
- /** List of OlapTables or Views that this resource writes data to. */
2010
- pushesDataTo: SqlObject[];
2011
- /** @internal Source file path where this resource was defined */
2012
- sourceFile?: string;
2013
- /** @internal Source line number where this resource was defined */
2014
- sourceLine?: number;
2015
- /** @internal Source column number where this resource was defined */
2016
- sourceColumn?: number;
2017
- /**
2018
- * Creates a new SqlResource instance.
2019
- * @param name The name of the resource.
2020
- * @param setup An array of SQL DDL statements to create the resource.
2021
- * @param teardown An array of SQL DDL statements to drop the resource.
2022
- * @param options Optional configuration for specifying data dependencies.
2023
- * @param options.pullsDataFrom Tables/Views this resource reads from.
2024
- * @param options.pushesDataTo Tables/Views this resource writes to.
2025
- */
2026
- constructor(name: string, setup: readonly (string | Sql)[], teardown: readonly (string | Sql)[], options?: {
2027
- pullsDataFrom?: SqlObject[];
2028
- pushesDataTo?: SqlObject[];
2029
- });
2030
- }
2031
-
2032
2001
  type WebAppHandler = (req: http.IncomingMessage, res: http.ServerResponse) => void | Promise<void>;
2033
2002
  interface FrameworkApp {
2034
2003
  handle?: (req: http.IncomingMessage, res: http.ServerResponse, next?: (err?: any) => void) => void;
@@ -2145,28 +2114,6 @@ declare function getWebApps(): Map<string, WebApp>;
2145
2114
  * @returns The WebApp instance or undefined if not found
2146
2115
  */
2147
2116
  declare function getWebApp(name: string): WebApp | undefined;
2148
- /**
2149
- * Get all registered materialized views.
2150
- * @returns A Map of MV name to MaterializedView instance
2151
- */
2152
- declare function getMaterializedViews(): Map<string, MaterializedView<any>>;
2153
- /**
2154
- * Get a registered materialized view by name.
2155
- * @param name - The name of the materialized view
2156
- * @returns The MaterializedView instance or undefined if not found
2157
- */
2158
- declare function getMaterializedView(name: string): MaterializedView<any> | undefined;
2159
- /**
2160
- * Get all registered views.
2161
- * @returns A Map of view name to View instance
2162
- */
2163
- declare function getViews(): Map<string, View>;
2164
- /**
2165
- * Get a registered view by name.
2166
- * @param name - The name of the view
2167
- * @returns The View instance or undefined if not found
2168
- */
2169
- declare function getView(name: string): View | undefined;
2170
2117
 
2171
2118
  /**
2172
2119
  * @module dmv2
@@ -2208,4 +2155,4 @@ type SimpleAggregated<AggregationFunction extends string, ArgType = any> = {
2208
2155
  _argType?: ArgType;
2209
2156
  };
2210
2157
 
2211
- export { type RawValue as $, type Aggregated as A, getWorkflows as B, ConsumptionApi as C, type DeadLetterModel as D, type EgressConfig as E, type FrameworkApp as F, getWorkflow as G, getWebApps as H, IngestApi as I, getWebApp as J, getView as K, LifeCycle as L, MaterializedView as M, getViews as N, OlapTable as O, getMaterializedView as P, getMaterializedViews as Q, type ApiUtil as R, type SimpleAggregated as S, Task as T, type ConsumptionUtil as U, View as V, Workflow as W, quoteIdentifier as X, type IdentifierBrandedString as Y, type NonIdentifierBrandedString as Z, type Value as _, type OlapConfig as a, sql as a0, Sql as a1, toStaticQuery as a2, toQuery as a3, toQueryPreview as a4, getValueFromParameter as a5, createClickhouseParameter as a6, mapToClickHouseType as a7, type MooseUtils as a8, MooseClient as a9, type Blocks as aa, ClickHouseEngines as ab, dropView as ac, createMaterializedView as ad, populateTable as ae, QueryClient as af, WorkflowClient as ag, getTemporalClient as ah, ApiHelpers as ai, ConsumptionHelpers as aj, joinQueries as ak, type ConsumerConfig as al, type TransformConfig as am, type TaskContext as an, type TaskConfig as ao, type IngestPipelineConfig as ap, type MaterializedViewConfig as aq, type S3QueueTableSettings as b, Stream as c, type StreamConfig as d, type DeadLetter as e, DeadLetterQueue as f, type IngestConfig as g, Api as h, type ApiConfig as i, IngestPipeline as j, SqlResource as k, ETLPipeline as l, type ETLPipelineConfig as m, WebApp as n, type WebAppConfig as o, type WebAppHandler as p, getTables as q, getTable as r, getStreams as s, getStream as t, getIngestApis as u, getIngestApi as v, getApis as w, getApi as x, getSqlResources as y, getSqlResource as z };
2158
+ export { toQuery as $, type Aggregated as A, getWorkflows as B, ConsumptionApi as C, type DeadLetterModel as D, type EgressConfig as E, type FrameworkApp as F, getWorkflow as G, getWebApps as H, IngestApi as I, getWebApp as J, type ApiUtil as K, LifeCycle as L, MaterializedView as M, type ConsumptionUtil as N, OlapTable as O, quoteIdentifier as P, type IdentifierBrandedString as Q, type NonIdentifierBrandedString as R, type SimpleAggregated as S, Task as T, type Value as U, View as V, Workflow as W, type RawValue as X, sql as Y, Sql as Z, toStaticQuery as _, type OlapConfig as a, toQueryPreview as a0, getValueFromParameter as a1, createClickhouseParameter as a2, mapToClickHouseType as a3, type MooseUtils as a4, MooseClient as a5, type Blocks as a6, ClickHouseEngines as a7, dropView as a8, createMaterializedView as a9, populateTable as aa, QueryClient as ab, WorkflowClient as ac, getTemporalClient as ad, ApiHelpers as ae, ConsumptionHelpers as af, joinQueries as ag, type ConsumerConfig as ah, type TransformConfig as ai, type TaskContext as aj, type TaskConfig as ak, type IngestPipelineConfig as al, type MaterializedViewConfig as am, type S3QueueTableSettings as b, Stream as c, type StreamConfig as d, type DeadLetter as e, DeadLetterQueue as f, type IngestConfig as g, Api as h, type ApiConfig as i, IngestPipeline as j, SqlResource as k, ETLPipeline as l, type ETLPipelineConfig as m, WebApp as n, type WebAppConfig as o, type WebAppHandler as p, getTables as q, getTable as r, getStreams as s, getStream as t, getIngestApis as u, getIngestApi as v, getApis as w, getApi as x, getSqlResources as y, getSqlResource as z };
@@ -1894,33 +1894,57 @@ declare class ETLPipeline<T, U> {
1894
1894
  run(): Promise<void>;
1895
1895
  }
1896
1896
 
1897
+ type SqlObject = OlapTable<any> | SqlResource;
1897
1898
  /**
1898
- * Represents a database View, defined by a SQL SELECT statement based on one or more base tables or other views.
1899
- * Emits structured data for the Moose infrastructure system.
1899
+ * Represents a generic SQL resource that requires setup and teardown commands.
1900
+ * Base class for constructs like Views and Materialized Views. Tracks dependencies.
1900
1901
  */
1901
- declare class View {
1902
+ declare class SqlResource {
1902
1903
  /** @internal */
1903
- readonly kind = "View";
1904
- /** The name of the view */
1904
+ readonly kind = "SqlResource";
1905
+ /** Array of SQL statements to execute for setting up the resource. */
1906
+ setup: readonly string[];
1907
+ /** Array of SQL statements to execute for tearing down the resource. */
1908
+ teardown: readonly string[];
1909
+ /** The name of the SQL resource (e.g., view name, materialized view name). */
1905
1910
  name: string;
1906
- /** The SELECT SQL statement that defines the view */
1907
- selectSql: string;
1908
- /** Names of source tables/views that the SELECT reads from */
1909
- sourceTables: string[];
1910
- /** Optional metadata for the view */
1911
- metadata: {
1912
- [key: string]: any;
1913
- };
1911
+ /** List of OlapTables or Views that this resource reads data from. */
1912
+ pullsDataFrom: SqlObject[];
1913
+ /** List of OlapTables or Views that this resource writes data to. */
1914
+ pushesDataTo: SqlObject[];
1915
+ /** @internal Source file path where this resource was defined */
1916
+ sourceFile?: string;
1917
+ /** @internal Source line number where this resource was defined */
1918
+ sourceLine?: number;
1919
+ /** @internal Source column number where this resource was defined */
1920
+ sourceColumn?: number;
1921
+ /**
1922
+ * Creates a new SqlResource instance.
1923
+ * @param name The name of the resource.
1924
+ * @param setup An array of SQL DDL statements to create the resource.
1925
+ * @param teardown An array of SQL DDL statements to drop the resource.
1926
+ * @param options Optional configuration for specifying data dependencies.
1927
+ * @param options.pullsDataFrom Tables/Views this resource reads from.
1928
+ * @param options.pushesDataTo Tables/Views this resource writes to.
1929
+ */
1930
+ constructor(name: string, setup: readonly (string | Sql)[], teardown: readonly (string | Sql)[], options?: {
1931
+ pullsDataFrom?: SqlObject[];
1932
+ pushesDataTo?: SqlObject[];
1933
+ });
1934
+ }
1935
+
1936
+ /**
1937
+ * Represents a database View, defined by a SQL SELECT statement based on one or more base tables or other views.
1938
+ * Inherits from SqlResource, providing setup (CREATE VIEW) and teardown (DROP VIEW) commands.
1939
+ */
1940
+ declare class View extends SqlResource {
1914
1941
  /**
1915
1942
  * Creates a new View instance.
1916
1943
  * @param name The name of the view to be created.
1917
1944
  * @param selectStatement The SQL SELECT statement that defines the view's logic.
1918
1945
  * @param baseTables An array of OlapTable or View objects that the `selectStatement` reads from. Used for dependency tracking.
1919
- * @param metadata Optional metadata for the view (e.g., description, source file).
1920
1946
  */
1921
- constructor(name: string, selectStatement: string | Sql, baseTables: (OlapTable<any> | View)[], metadata?: {
1922
- [key: string]: any;
1923
- });
1947
+ constructor(name: string, selectStatement: string | Sql, baseTables: (OlapTable<any> | View)[]);
1924
1948
  }
1925
1949
 
1926
1950
  /**
@@ -1951,10 +1975,6 @@ interface MaterializedViewConfig<T> {
1951
1975
  /** @deprecated See {@link targetTable}
1952
1976
  * Optional ordering fields for the target table. Crucial if using ReplacingMergeTree. */
1953
1977
  orderByFields?: (keyof T & string)[];
1954
- /** Optional metadata for the materialized view (e.g., description, source file). */
1955
- metadata?: {
1956
- [key: string]: any;
1957
- };
1958
1978
  }
1959
1979
  /**
1960
1980
  * Represents a Materialized View in ClickHouse.
@@ -1963,21 +1983,9 @@ interface MaterializedViewConfig<T> {
1963
1983
  *
1964
1984
  * @template TargetTable The data type of the records stored in the underlying target OlapTable. The structure of T defines the target table schema.
1965
1985
  */
1966
- declare class MaterializedView<TargetTable> {
1967
- /** @internal */
1968
- readonly kind = "MaterializedView";
1969
- /** The name of the materialized view */
1970
- name: string;
1986
+ declare class MaterializedView<TargetTable> extends SqlResource {
1971
1987
  /** The target OlapTable instance where the materialized data is stored. */
1972
1988
  targetTable: OlapTable<TargetTable>;
1973
- /** The SELECT SQL statement */
1974
- selectSql: string;
1975
- /** Names of source tables that the SELECT reads from */
1976
- sourceTables: string[];
1977
- /** Optional metadata for the materialized view */
1978
- metadata: {
1979
- [key: string]: any;
1980
- };
1981
1989
  /**
1982
1990
  * Creates a new MaterializedView instance.
1983
1991
  * Requires the `TargetTable` type parameter to be explicitly provided or inferred,
@@ -1990,45 +1998,6 @@ declare class MaterializedView<TargetTable> {
1990
1998
  constructor(options: MaterializedViewConfig<TargetTable>, targetSchema: IJsonSchemaCollection$1.IV3_1, targetColumns: Column[]);
1991
1999
  }
1992
2000
 
1993
- type SqlObject = OlapTable<any> | SqlResource;
1994
- /**
1995
- * Represents a generic SQL resource that requires setup and teardown commands.
1996
- * Base class for constructs like Views and Materialized Views. Tracks dependencies.
1997
- */
1998
- declare class SqlResource {
1999
- /** @internal */
2000
- readonly kind = "SqlResource";
2001
- /** Array of SQL statements to execute for setting up the resource. */
2002
- setup: readonly string[];
2003
- /** Array of SQL statements to execute for tearing down the resource. */
2004
- teardown: readonly string[];
2005
- /** The name of the SQL resource (e.g., view name, materialized view name). */
2006
- name: string;
2007
- /** List of OlapTables or Views that this resource reads data from. */
2008
- pullsDataFrom: SqlObject[];
2009
- /** List of OlapTables or Views that this resource writes data to. */
2010
- pushesDataTo: SqlObject[];
2011
- /** @internal Source file path where this resource was defined */
2012
- sourceFile?: string;
2013
- /** @internal Source line number where this resource was defined */
2014
- sourceLine?: number;
2015
- /** @internal Source column number where this resource was defined */
2016
- sourceColumn?: number;
2017
- /**
2018
- * Creates a new SqlResource instance.
2019
- * @param name The name of the resource.
2020
- * @param setup An array of SQL DDL statements to create the resource.
2021
- * @param teardown An array of SQL DDL statements to drop the resource.
2022
- * @param options Optional configuration for specifying data dependencies.
2023
- * @param options.pullsDataFrom Tables/Views this resource reads from.
2024
- * @param options.pushesDataTo Tables/Views this resource writes to.
2025
- */
2026
- constructor(name: string, setup: readonly (string | Sql)[], teardown: readonly (string | Sql)[], options?: {
2027
- pullsDataFrom?: SqlObject[];
2028
- pushesDataTo?: SqlObject[];
2029
- });
2030
- }
2031
-
2032
2001
  type WebAppHandler = (req: http.IncomingMessage, res: http.ServerResponse) => void | Promise<void>;
2033
2002
  interface FrameworkApp {
2034
2003
  handle?: (req: http.IncomingMessage, res: http.ServerResponse, next?: (err?: any) => void) => void;
@@ -2145,28 +2114,6 @@ declare function getWebApps(): Map<string, WebApp>;
2145
2114
  * @returns The WebApp instance or undefined if not found
2146
2115
  */
2147
2116
  declare function getWebApp(name: string): WebApp | undefined;
2148
- /**
2149
- * Get all registered materialized views.
2150
- * @returns A Map of MV name to MaterializedView instance
2151
- */
2152
- declare function getMaterializedViews(): Map<string, MaterializedView<any>>;
2153
- /**
2154
- * Get a registered materialized view by name.
2155
- * @param name - The name of the materialized view
2156
- * @returns The MaterializedView instance or undefined if not found
2157
- */
2158
- declare function getMaterializedView(name: string): MaterializedView<any> | undefined;
2159
- /**
2160
- * Get all registered views.
2161
- * @returns A Map of view name to View instance
2162
- */
2163
- declare function getViews(): Map<string, View>;
2164
- /**
2165
- * Get a registered view by name.
2166
- * @param name - The name of the view
2167
- * @returns The View instance or undefined if not found
2168
- */
2169
- declare function getView(name: string): View | undefined;
2170
2117
 
2171
2118
  /**
2172
2119
  * @module dmv2
@@ -2208,4 +2155,4 @@ type SimpleAggregated<AggregationFunction extends string, ArgType = any> = {
2208
2155
  _argType?: ArgType;
2209
2156
  };
2210
2157
 
2211
- export { type RawValue as $, type Aggregated as A, getWorkflows as B, ConsumptionApi as C, type DeadLetterModel as D, type EgressConfig as E, type FrameworkApp as F, getWorkflow as G, getWebApps as H, IngestApi as I, getWebApp as J, getView as K, LifeCycle as L, MaterializedView as M, getViews as N, OlapTable as O, getMaterializedView as P, getMaterializedViews as Q, type ApiUtil as R, type SimpleAggregated as S, Task as T, type ConsumptionUtil as U, View as V, Workflow as W, quoteIdentifier as X, type IdentifierBrandedString as Y, type NonIdentifierBrandedString as Z, type Value as _, type OlapConfig as a, sql as a0, Sql as a1, toStaticQuery as a2, toQuery as a3, toQueryPreview as a4, getValueFromParameter as a5, createClickhouseParameter as a6, mapToClickHouseType as a7, type MooseUtils as a8, MooseClient as a9, type Blocks as aa, ClickHouseEngines as ab, dropView as ac, createMaterializedView as ad, populateTable as ae, QueryClient as af, WorkflowClient as ag, getTemporalClient as ah, ApiHelpers as ai, ConsumptionHelpers as aj, joinQueries as ak, type ConsumerConfig as al, type TransformConfig as am, type TaskContext as an, type TaskConfig as ao, type IngestPipelineConfig as ap, type MaterializedViewConfig as aq, type S3QueueTableSettings as b, Stream as c, type StreamConfig as d, type DeadLetter as e, DeadLetterQueue as f, type IngestConfig as g, Api as h, type ApiConfig as i, IngestPipeline as j, SqlResource as k, ETLPipeline as l, type ETLPipelineConfig as m, WebApp as n, type WebAppConfig as o, type WebAppHandler as p, getTables as q, getTable as r, getStreams as s, getStream as t, getIngestApis as u, getIngestApi as v, getApis as w, getApi as x, getSqlResources as y, getSqlResource as z };
2158
+ export { toQuery as $, type Aggregated as A, getWorkflows as B, ConsumptionApi as C, type DeadLetterModel as D, type EgressConfig as E, type FrameworkApp as F, getWorkflow as G, getWebApps as H, IngestApi as I, getWebApp as J, type ApiUtil as K, LifeCycle as L, MaterializedView as M, type ConsumptionUtil as N, OlapTable as O, quoteIdentifier as P, type IdentifierBrandedString as Q, type NonIdentifierBrandedString as R, type SimpleAggregated as S, Task as T, type Value as U, View as V, Workflow as W, type RawValue as X, sql as Y, Sql as Z, toStaticQuery as _, type OlapConfig as a, toQueryPreview as a0, getValueFromParameter as a1, createClickhouseParameter as a2, mapToClickHouseType as a3, type MooseUtils as a4, MooseClient as a5, type Blocks as a6, ClickHouseEngines as a7, dropView as a8, createMaterializedView as a9, populateTable as aa, QueryClient as ab, WorkflowClient as ac, getTemporalClient as ad, ApiHelpers as ae, ConsumptionHelpers as af, joinQueries as ag, type ConsumerConfig as ah, type TransformConfig as ai, type TaskContext as aj, type TaskConfig as ak, type IngestPipelineConfig as al, type MaterializedViewConfig as am, type S3QueueTableSettings as b, Stream as c, type StreamConfig as d, type DeadLetter as e, DeadLetterQueue as f, type IngestConfig as g, Api as h, type ApiConfig as i, IngestPipeline as j, SqlResource as k, ETLPipeline as l, type ETLPipelineConfig as m, WebApp as n, type WebAppConfig as o, type WebAppHandler as p, getTables as q, getTable as r, getStreams as s, getStream as t, getIngestApis as u, getIngestApi as v, getApis as w, getApi as x, getSqlResources as y, getSqlResource as z };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- export { C as ClickHouseByteSize, q as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, p as ClickHouseMaterialized, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, o as ClickHouseTTL, D as DateTime, r as DateTime64, t as DateTime64String, s as DateTimeString, E as Decimal, F as FixedString, u as Float32, v as Float64, w as Int16, x as Int32, y as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, z as UInt16, A as UInt32, B as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-Dfx6yRB5.mjs';
2
- import { a8 as MooseUtils, R as ApiUtil, a9 as MooseClient } from './index-CI9e2hZ2.mjs';
3
- export { A as Aggregated, h as Api, i as ApiConfig, ai as ApiHelpers, aa as Blocks, ab as ClickHouseEngines, C as ConsumptionApi, aj as ConsumptionHelpers, U as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Y as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, Z as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, af as QueryClient, $ as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, a1 as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, _ as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, ag as WorkflowClient, a6 as createClickhouseParameter, ad as createMaterializedView, ac as dropView, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, P as getMaterializedView, Q as getMaterializedViews, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, ah as getTemporalClient, a5 as getValueFromParameter, K as getView, N as getViews, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, ak as joinQueries, a7 as mapToClickHouseType, ae as populateTable, X as quoteIdentifier, a0 as sql, a3 as toQuery, a4 as toQueryPreview, a2 as toStaticQuery } from './index-CI9e2hZ2.mjs';
1
+ export { C as ClickHouseByteSize, q as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, p as ClickHouseMaterialized, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, o as ClickHouseTTL, D as DateTime, r as DateTime64, t as DateTime64String, s as DateTimeString, E as Decimal, F as FixedString, u as Float32, v as Float64, w as Int16, x as Int32, y as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, z as UInt16, A as UInt32, B as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-FzU17dxm.mjs';
2
+ import { a4 as MooseUtils, K as ApiUtil, a5 as MooseClient } from './index-CcHF2cVT.mjs';
3
+ export { A as Aggregated, h as Api, i as ApiConfig, ae as ApiHelpers, a6 as Blocks, a7 as ClickHouseEngines, C as ConsumptionApi, af as ConsumptionHelpers, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, ab as QueryClient, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, ac as WorkflowClient, a2 as createClickhouseParameter, a9 as createMaterializedView, a8 as dropView, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, ad as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, ag as joinQueries, a3 as mapToClickHouseType, aa as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-CcHF2cVT.mjs';
4
4
  import * as _clickhouse_client from '@clickhouse/client';
5
5
  import { KafkaJS } from '@514labs/kafka-javascript';
6
6
  import http from 'http';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { C as ClickHouseByteSize, q as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, p as ClickHouseMaterialized, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, o as ClickHouseTTL, D as DateTime, r as DateTime64, t as DateTime64String, s as DateTimeString, E as Decimal, F as FixedString, u as Float32, v as Float64, w as Int16, x as Int32, y as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, z as UInt16, A as UInt32, B as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-Cs3UY_5a.js';
2
- import { a8 as MooseUtils, R as ApiUtil, a9 as MooseClient } from './index-CI9e2hZ2.js';
3
- export { A as Aggregated, h as Api, i as ApiConfig, ai as ApiHelpers, aa as Blocks, ab as ClickHouseEngines, C as ConsumptionApi, aj as ConsumptionHelpers, U as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Y as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, Z as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, af as QueryClient, $ as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, a1 as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, _ as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, ag as WorkflowClient, a6 as createClickhouseParameter, ad as createMaterializedView, ac as dropView, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, P as getMaterializedView, Q as getMaterializedViews, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, ah as getTemporalClient, a5 as getValueFromParameter, K as getView, N as getViews, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, ak as joinQueries, a7 as mapToClickHouseType, ae as populateTable, X as quoteIdentifier, a0 as sql, a3 as toQuery, a4 as toQueryPreview, a2 as toStaticQuery } from './index-CI9e2hZ2.js';
1
+ export { C as ClickHouseByteSize, q as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, p as ClickHouseMaterialized, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, o as ClickHouseTTL, D as DateTime, r as DateTime64, t as DateTime64String, s as DateTimeString, E as Decimal, F as FixedString, u as Float32, v as Float64, w as Int16, x as Int32, y as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, z as UInt16, A as UInt32, B as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-CMEunMFq.js';
2
+ import { a4 as MooseUtils, K as ApiUtil, a5 as MooseClient } from './index-CcHF2cVT.js';
3
+ export { A as Aggregated, h as Api, i as ApiConfig, ae as ApiHelpers, a6 as Blocks, a7 as ClickHouseEngines, C as ConsumptionApi, af as ConsumptionHelpers, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, ab as QueryClient, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, ac as WorkflowClient, a2 as createClickhouseParameter, a9 as createMaterializedView, a8 as dropView, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, ad as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, ag as joinQueries, a3 as mapToClickHouseType, aa as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-CcHF2cVT.js';
4
4
  import * as _clickhouse_client from '@clickhouse/client';
5
5
  import { KafkaJS } from '@514labs/kafka-javascript';
6
6
  import http from 'http';