@514labs/moose-lib 0.6.244-ci-3-g031c7d3a → 0.6.244-ci-6-gbb6c4d8d

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.
@@ -192,7 +192,9 @@ declare enum ClickHouseEngines {
192
192
  ReplicatedMergeTree = "ReplicatedMergeTree",
193
193
  ReplicatedReplacingMergeTree = "ReplicatedReplacingMergeTree",
194
194
  ReplicatedAggregatingMergeTree = "ReplicatedAggregatingMergeTree",
195
- ReplicatedSummingMergeTree = "ReplicatedSummingMergeTree"
195
+ ReplicatedSummingMergeTree = "ReplicatedSummingMergeTree",
196
+ ReplicatedCollapsingMergeTree = "ReplicatedCollapsingMergeTree",
197
+ ReplicatedVersionedCollapsingMergeTree = "ReplicatedVersionedCollapsingMergeTree"
196
198
  }
197
199
  /**
198
200
  * Drops an existing view if it exists.
@@ -490,6 +492,23 @@ type SummingMergeTreeConfig<T> = BaseOlapConfig<T> & {
490
492
  engine: ClickHouseEngines.SummingMergeTree;
491
493
  columns?: string[];
492
494
  };
495
+ /**
496
+ * Configuration for CollapsingMergeTree engine
497
+ * @template T The data type of the records stored in the table.
498
+ */
499
+ type CollapsingMergeTreeConfig<T> = BaseOlapConfig<T> & {
500
+ engine: ClickHouseEngines.CollapsingMergeTree;
501
+ sign: keyof T & string;
502
+ };
503
+ /**
504
+ * Configuration for VersionedCollapsingMergeTree engine
505
+ * @template T The data type of the records stored in the table.
506
+ */
507
+ type VersionedCollapsingMergeTreeConfig<T> = BaseOlapConfig<T> & {
508
+ engine: ClickHouseEngines.VersionedCollapsingMergeTree;
509
+ sign: keyof T & string;
510
+ ver: keyof T & string;
511
+ };
493
512
  interface ReplicatedEngineProperties {
494
513
  keeperPath?: string;
495
514
  replicaName?: string;
@@ -538,6 +557,28 @@ type ReplicatedAggregatingMergeTreeConfig<T> = Omit<AggregatingMergeTreeConfig<T
538
557
  type ReplicatedSummingMergeTreeConfig<T> = Omit<SummingMergeTreeConfig<T>, "engine"> & ReplicatedEngineProperties & {
539
558
  engine: ClickHouseEngines.ReplicatedSummingMergeTree;
540
559
  };
560
+ /**
561
+ * Configuration for ReplicatedCollapsingMergeTree engine
562
+ * @template T The data type of the records stored in the table.
563
+ *
564
+ * Note: keeperPath and replicaName are optional. Omit them for ClickHouse Cloud,
565
+ * which manages replication automatically. For self-hosted with ClickHouse Keeper,
566
+ * provide both parameters or neither (to use server defaults).
567
+ */
568
+ type ReplicatedCollapsingMergeTreeConfig<T> = Omit<CollapsingMergeTreeConfig<T>, "engine"> & ReplicatedEngineProperties & {
569
+ engine: ClickHouseEngines.ReplicatedCollapsingMergeTree;
570
+ };
571
+ /**
572
+ * Configuration for ReplicatedVersionedCollapsingMergeTree engine
573
+ * @template T The data type of the records stored in the table.
574
+ *
575
+ * Note: keeperPath and replicaName are optional. Omit them for ClickHouse Cloud,
576
+ * which manages replication automatically. For self-hosted with ClickHouse Keeper,
577
+ * provide both parameters or neither (to use server defaults).
578
+ */
579
+ type ReplicatedVersionedCollapsingMergeTreeConfig<T> = Omit<VersionedCollapsingMergeTreeConfig<T>, "engine"> & ReplicatedEngineProperties & {
580
+ engine: ClickHouseEngines.ReplicatedVersionedCollapsingMergeTree;
581
+ };
541
582
  /**
542
583
  * Configuration for S3Queue engine - only non-alterable constructor parameters.
543
584
  * S3Queue-specific settings like 'mode', 'keeper_path', etc. should be specified
@@ -678,7 +719,7 @@ type IcebergS3Config<T> = Omit<BaseOlapConfig<T>, "orderByFields" | "orderByExpr
678
719
  * @template T The data type of the records stored in the table.
679
720
  */
680
721
  type LegacyOlapConfig<T> = BaseOlapConfig<T>;
681
- type EngineConfig<T> = MergeTreeConfig<T> | ReplacingMergeTreeConfig<T> | AggregatingMergeTreeConfig<T> | SummingMergeTreeConfig<T> | ReplicatedMergeTreeConfig<T> | ReplicatedReplacingMergeTreeConfig<T> | ReplicatedAggregatingMergeTreeConfig<T> | ReplicatedSummingMergeTreeConfig<T> | S3QueueConfig<T> | S3Config<T> | BufferConfig<T> | DistributedConfig<T> | IcebergS3Config<T>;
722
+ type EngineConfig<T> = MergeTreeConfig<T> | ReplacingMergeTreeConfig<T> | AggregatingMergeTreeConfig<T> | SummingMergeTreeConfig<T> | CollapsingMergeTreeConfig<T> | VersionedCollapsingMergeTreeConfig<T> | ReplicatedMergeTreeConfig<T> | ReplicatedReplacingMergeTreeConfig<T> | ReplicatedAggregatingMergeTreeConfig<T> | ReplicatedSummingMergeTreeConfig<T> | ReplicatedCollapsingMergeTreeConfig<T> | ReplicatedVersionedCollapsingMergeTreeConfig<T> | S3QueueConfig<T> | S3Config<T> | BufferConfig<T> | DistributedConfig<T> | IcebergS3Config<T>;
682
723
  /**
683
724
  * Union of all engine-specific configurations (new API)
684
725
  * @template T The data type of the records stored in the table.
@@ -192,7 +192,9 @@ declare enum ClickHouseEngines {
192
192
  ReplicatedMergeTree = "ReplicatedMergeTree",
193
193
  ReplicatedReplacingMergeTree = "ReplicatedReplacingMergeTree",
194
194
  ReplicatedAggregatingMergeTree = "ReplicatedAggregatingMergeTree",
195
- ReplicatedSummingMergeTree = "ReplicatedSummingMergeTree"
195
+ ReplicatedSummingMergeTree = "ReplicatedSummingMergeTree",
196
+ ReplicatedCollapsingMergeTree = "ReplicatedCollapsingMergeTree",
197
+ ReplicatedVersionedCollapsingMergeTree = "ReplicatedVersionedCollapsingMergeTree"
196
198
  }
197
199
  /**
198
200
  * Drops an existing view if it exists.
@@ -490,6 +492,23 @@ type SummingMergeTreeConfig<T> = BaseOlapConfig<T> & {
490
492
  engine: ClickHouseEngines.SummingMergeTree;
491
493
  columns?: string[];
492
494
  };
495
+ /**
496
+ * Configuration for CollapsingMergeTree engine
497
+ * @template T The data type of the records stored in the table.
498
+ */
499
+ type CollapsingMergeTreeConfig<T> = BaseOlapConfig<T> & {
500
+ engine: ClickHouseEngines.CollapsingMergeTree;
501
+ sign: keyof T & string;
502
+ };
503
+ /**
504
+ * Configuration for VersionedCollapsingMergeTree engine
505
+ * @template T The data type of the records stored in the table.
506
+ */
507
+ type VersionedCollapsingMergeTreeConfig<T> = BaseOlapConfig<T> & {
508
+ engine: ClickHouseEngines.VersionedCollapsingMergeTree;
509
+ sign: keyof T & string;
510
+ ver: keyof T & string;
511
+ };
493
512
  interface ReplicatedEngineProperties {
494
513
  keeperPath?: string;
495
514
  replicaName?: string;
@@ -538,6 +557,28 @@ type ReplicatedAggregatingMergeTreeConfig<T> = Omit<AggregatingMergeTreeConfig<T
538
557
  type ReplicatedSummingMergeTreeConfig<T> = Omit<SummingMergeTreeConfig<T>, "engine"> & ReplicatedEngineProperties & {
539
558
  engine: ClickHouseEngines.ReplicatedSummingMergeTree;
540
559
  };
560
+ /**
561
+ * Configuration for ReplicatedCollapsingMergeTree engine
562
+ * @template T The data type of the records stored in the table.
563
+ *
564
+ * Note: keeperPath and replicaName are optional. Omit them for ClickHouse Cloud,
565
+ * which manages replication automatically. For self-hosted with ClickHouse Keeper,
566
+ * provide both parameters or neither (to use server defaults).
567
+ */
568
+ type ReplicatedCollapsingMergeTreeConfig<T> = Omit<CollapsingMergeTreeConfig<T>, "engine"> & ReplicatedEngineProperties & {
569
+ engine: ClickHouseEngines.ReplicatedCollapsingMergeTree;
570
+ };
571
+ /**
572
+ * Configuration for ReplicatedVersionedCollapsingMergeTree engine
573
+ * @template T The data type of the records stored in the table.
574
+ *
575
+ * Note: keeperPath and replicaName are optional. Omit them for ClickHouse Cloud,
576
+ * which manages replication automatically. For self-hosted with ClickHouse Keeper,
577
+ * provide both parameters or neither (to use server defaults).
578
+ */
579
+ type ReplicatedVersionedCollapsingMergeTreeConfig<T> = Omit<VersionedCollapsingMergeTreeConfig<T>, "engine"> & ReplicatedEngineProperties & {
580
+ engine: ClickHouseEngines.ReplicatedVersionedCollapsingMergeTree;
581
+ };
541
582
  /**
542
583
  * Configuration for S3Queue engine - only non-alterable constructor parameters.
543
584
  * S3Queue-specific settings like 'mode', 'keeper_path', etc. should be specified
@@ -678,7 +719,7 @@ type IcebergS3Config<T> = Omit<BaseOlapConfig<T>, "orderByFields" | "orderByExpr
678
719
  * @template T The data type of the records stored in the table.
679
720
  */
680
721
  type LegacyOlapConfig<T> = BaseOlapConfig<T>;
681
- type EngineConfig<T> = MergeTreeConfig<T> | ReplacingMergeTreeConfig<T> | AggregatingMergeTreeConfig<T> | SummingMergeTreeConfig<T> | ReplicatedMergeTreeConfig<T> | ReplicatedReplacingMergeTreeConfig<T> | ReplicatedAggregatingMergeTreeConfig<T> | ReplicatedSummingMergeTreeConfig<T> | S3QueueConfig<T> | S3Config<T> | BufferConfig<T> | DistributedConfig<T> | IcebergS3Config<T>;
722
+ type EngineConfig<T> = MergeTreeConfig<T> | ReplacingMergeTreeConfig<T> | AggregatingMergeTreeConfig<T> | SummingMergeTreeConfig<T> | CollapsingMergeTreeConfig<T> | VersionedCollapsingMergeTreeConfig<T> | ReplicatedMergeTreeConfig<T> | ReplicatedReplacingMergeTreeConfig<T> | ReplicatedAggregatingMergeTreeConfig<T> | ReplicatedSummingMergeTreeConfig<T> | ReplicatedCollapsingMergeTreeConfig<T> | ReplicatedVersionedCollapsingMergeTreeConfig<T> | S3QueueConfig<T> | S3Config<T> | BufferConfig<T> | DistributedConfig<T> | IcebergS3Config<T>;
682
723
  /**
683
724
  * Union of all engine-specific configurations (new API)
684
725
  * @template T The data type of the records stored in the table.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, 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, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-bG7qUssc.mjs';
2
- import { K as ApiUtil, a4 as MooseClient } from './index-DtHRzX8Z.mjs';
3
- export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae 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, aa 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, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 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, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-DtHRzX8Z.mjs';
1
+ export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, 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, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-BjzQVzW-.mjs';
2
+ import { K as ApiUtil, a4 as MooseClient } from './index-CBTXNlql.mjs';
3
+ export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae 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, aa 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, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 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, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-CBTXNlql.mjs';
4
4
  import * as _clickhouse_client from '@clickhouse/client';
5
5
  import { KafkaJS } from '@confluentinc/kafka-javascript';
6
6
  import http from 'http';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, 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, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-mRmtV1to.js';
2
- import { K as ApiUtil, a4 as MooseClient } from './index-DtHRzX8Z.js';
3
- export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae 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, aa 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, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 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, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-DtHRzX8Z.js';
1
+ export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, 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, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-91E-CWRB.js';
2
+ import { K as ApiUtil, a4 as MooseClient } from './index-CBTXNlql.js';
3
+ export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae 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, aa 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, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 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, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-CBTXNlql.js';
4
4
  import * as _clickhouse_client from '@clickhouse/client';
5
5
  import { KafkaJS } from '@confluentinc/kafka-javascript';
6
6
  import http from 'http';
package/dist/index.js CHANGED
@@ -720,6 +720,8 @@ var ClickHouseEngines = /* @__PURE__ */ ((ClickHouseEngines2) => {
720
720
  ClickHouseEngines2["ReplicatedReplacingMergeTree"] = "ReplicatedReplacingMergeTree";
721
721
  ClickHouseEngines2["ReplicatedAggregatingMergeTree"] = "ReplicatedAggregatingMergeTree";
722
722
  ClickHouseEngines2["ReplicatedSummingMergeTree"] = "ReplicatedSummingMergeTree";
723
+ ClickHouseEngines2["ReplicatedCollapsingMergeTree"] = "ReplicatedCollapsingMergeTree";
724
+ ClickHouseEngines2["ReplicatedVersionedCollapsingMergeTree"] = "ReplicatedVersionedCollapsingMergeTree";
723
725
  return ClickHouseEngines2;
724
726
  })(ClickHouseEngines || {});
725
727
  function dropView(name) {