@514labs/moose-lib 0.6.297-ci-36-ge31e59a1 → 0.6.298-ci-37-gfa56fde3

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,57 +1894,33 @@ declare class ETLPipeline<T, U> {
1894
1894
  run(): Promise<void>;
1895
1895
  }
1896
1896
 
1897
- type SqlObject = OlapTable<any> | SqlResource;
1898
1897
  /**
1899
- * Represents a generic SQL resource that requires setup and teardown commands.
1900
- * Base class for constructs like Views and Materialized Views. Tracks dependencies.
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.
1901
1900
  */
1902
- declare class SqlResource {
1901
+ declare class View {
1903
1902
  /** @internal */
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). */
1903
+ readonly kind = "View";
1904
+ /** The name of the view */
1910
1905
  name: string;
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 {
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
+ };
1941
1914
  /**
1942
1915
  * Creates a new View instance.
1943
1916
  * @param name The name of the view to be created.
1944
1917
  * @param selectStatement The SQL SELECT statement that defines the view's logic.
1945
1918
  * @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).
1946
1920
  */
1947
- constructor(name: string, selectStatement: string | Sql, baseTables: (OlapTable<any> | View)[]);
1921
+ constructor(name: string, selectStatement: string | Sql, baseTables: (OlapTable<any> | View)[], metadata?: {
1922
+ [key: string]: any;
1923
+ });
1948
1924
  }
1949
1925
 
1950
1926
  /**
@@ -1975,6 +1951,10 @@ interface MaterializedViewConfig<T> {
1975
1951
  /** @deprecated See {@link targetTable}
1976
1952
  * Optional ordering fields for the target table. Crucial if using ReplacingMergeTree. */
1977
1953
  orderByFields?: (keyof T & string)[];
1954
+ /** Optional metadata for the materialized view (e.g., description, source file). */
1955
+ metadata?: {
1956
+ [key: string]: any;
1957
+ };
1978
1958
  }
1979
1959
  /**
1980
1960
  * Represents a Materialized View in ClickHouse.
@@ -1983,9 +1963,21 @@ interface MaterializedViewConfig<T> {
1983
1963
  *
1984
1964
  * @template TargetTable The data type of the records stored in the underlying target OlapTable. The structure of T defines the target table schema.
1985
1965
  */
1986
- declare class MaterializedView<TargetTable> extends SqlResource {
1966
+ declare class MaterializedView<TargetTable> {
1967
+ /** @internal */
1968
+ readonly kind = "MaterializedView";
1969
+ /** The name of the materialized view */
1970
+ name: string;
1987
1971
  /** The target OlapTable instance where the materialized data is stored. */
1988
1972
  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
+ };
1989
1981
  /**
1990
1982
  * Creates a new MaterializedView instance.
1991
1983
  * Requires the `TargetTable` type parameter to be explicitly provided or inferred,
@@ -1998,6 +1990,45 @@ declare class MaterializedView<TargetTable> extends SqlResource {
1998
1990
  constructor(options: MaterializedViewConfig<TargetTable>, targetSchema: IJsonSchemaCollection$1.IV3_1, targetColumns: Column[]);
1999
1991
  }
2000
1992
 
1993
+ type SqlObject = OlapTable<any> | SqlResource | View | MaterializedView<any>;
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
+
2001
2032
  type WebAppHandler = (req: http.IncomingMessage, res: http.ServerResponse) => void | Promise<void>;
2002
2033
  interface FrameworkApp {
2003
2034
  handle?: (req: http.IncomingMessage, res: http.ServerResponse, next?: (err?: any) => void) => void;
@@ -2114,6 +2145,28 @@ declare function getWebApps(): Map<string, WebApp>;
2114
2145
  * @returns The WebApp instance or undefined if not found
2115
2146
  */
2116
2147
  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;
2117
2170
 
2118
2171
  /**
2119
2172
  * @module dmv2
@@ -2155,4 +2208,4 @@ type SimpleAggregated<AggregationFunction extends string, ArgType = any> = {
2155
2208
  _argType?: ArgType;
2156
2209
  };
2157
2210
 
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 };
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 };
@@ -1894,57 +1894,33 @@ declare class ETLPipeline<T, U> {
1894
1894
  run(): Promise<void>;
1895
1895
  }
1896
1896
 
1897
- type SqlObject = OlapTable<any> | SqlResource;
1898
1897
  /**
1899
- * Represents a generic SQL resource that requires setup and teardown commands.
1900
- * Base class for constructs like Views and Materialized Views. Tracks dependencies.
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.
1901
1900
  */
1902
- declare class SqlResource {
1901
+ declare class View {
1903
1902
  /** @internal */
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). */
1903
+ readonly kind = "View";
1904
+ /** The name of the view */
1910
1905
  name: string;
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 {
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
+ };
1941
1914
  /**
1942
1915
  * Creates a new View instance.
1943
1916
  * @param name The name of the view to be created.
1944
1917
  * @param selectStatement The SQL SELECT statement that defines the view's logic.
1945
1918
  * @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).
1946
1920
  */
1947
- constructor(name: string, selectStatement: string | Sql, baseTables: (OlapTable<any> | View)[]);
1921
+ constructor(name: string, selectStatement: string | Sql, baseTables: (OlapTable<any> | View)[], metadata?: {
1922
+ [key: string]: any;
1923
+ });
1948
1924
  }
1949
1925
 
1950
1926
  /**
@@ -1975,6 +1951,10 @@ interface MaterializedViewConfig<T> {
1975
1951
  /** @deprecated See {@link targetTable}
1976
1952
  * Optional ordering fields for the target table. Crucial if using ReplacingMergeTree. */
1977
1953
  orderByFields?: (keyof T & string)[];
1954
+ /** Optional metadata for the materialized view (e.g., description, source file). */
1955
+ metadata?: {
1956
+ [key: string]: any;
1957
+ };
1978
1958
  }
1979
1959
  /**
1980
1960
  * Represents a Materialized View in ClickHouse.
@@ -1983,9 +1963,21 @@ interface MaterializedViewConfig<T> {
1983
1963
  *
1984
1964
  * @template TargetTable The data type of the records stored in the underlying target OlapTable. The structure of T defines the target table schema.
1985
1965
  */
1986
- declare class MaterializedView<TargetTable> extends SqlResource {
1966
+ declare class MaterializedView<TargetTable> {
1967
+ /** @internal */
1968
+ readonly kind = "MaterializedView";
1969
+ /** The name of the materialized view */
1970
+ name: string;
1987
1971
  /** The target OlapTable instance where the materialized data is stored. */
1988
1972
  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
+ };
1989
1981
  /**
1990
1982
  * Creates a new MaterializedView instance.
1991
1983
  * Requires the `TargetTable` type parameter to be explicitly provided or inferred,
@@ -1998,6 +1990,45 @@ declare class MaterializedView<TargetTable> extends SqlResource {
1998
1990
  constructor(options: MaterializedViewConfig<TargetTable>, targetSchema: IJsonSchemaCollection$1.IV3_1, targetColumns: Column[]);
1999
1991
  }
2000
1992
 
1993
+ type SqlObject = OlapTable<any> | SqlResource | View | MaterializedView<any>;
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
+
2001
2032
  type WebAppHandler = (req: http.IncomingMessage, res: http.ServerResponse) => void | Promise<void>;
2002
2033
  interface FrameworkApp {
2003
2034
  handle?: (req: http.IncomingMessage, res: http.ServerResponse, next?: (err?: any) => void) => void;
@@ -2114,6 +2145,28 @@ declare function getWebApps(): Map<string, WebApp>;
2114
2145
  * @returns The WebApp instance or undefined if not found
2115
2146
  */
2116
2147
  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;
2117
2170
 
2118
2171
  /**
2119
2172
  * @module dmv2
@@ -2155,4 +2208,4 @@ type SimpleAggregated<AggregationFunction extends string, ArgType = any> = {
2155
2208
  _argType?: ArgType;
2156
2209
  };
2157
2210
 
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 };
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 };
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-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';
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-DGOtJiIs.mjs';
2
+ import { a8 as MooseUtils, R as ApiUtil, a9 as MooseClient } from './index-BeUCYK3T.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-BeUCYK3T.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-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';
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-DzZUjqvL.js';
2
+ import { a8 as MooseUtils, R as ApiUtil, a9 as MooseClient } from './index-BeUCYK3T.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-BeUCYK3T.js';
4
4
  import * as _clickhouse_client from '@clickhouse/client';
5
5
  import { KafkaJS } from '@514labs/kafka-javascript';
6
6
  import http from 'http';