@bayoudhi/moose-lib-serverless 0.7.3 → 0.7.5

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/index.d.mts CHANGED
@@ -1,15 +1,17 @@
1
+ export { JWT, Key } from './browserCompatible';
1
2
  import * as _clickhouse_client from '@clickhouse/client';
2
- import { KafkaJS } from '@514labs/kafka-javascript';
3
- import { aE, aF } from './index-DdE-_e4q.js';
4
- export { A as Aggregated, h as Api, i as ApiConfig, aP as ApiHelpers, ao as ApiUtil, Y as ClickHouseByteSize, a7 as ClickHouseCodec, X as ClickHouseDecimal, a3 as ClickHouseDefault, C as ClickHouseEngines, Z as ClickHouseFixedStringSize, _ as ClickHouseFloat, $ as ClickHouseInt, a0 as ClickHouseJson, aI as ClickHouseLineString, a5 as ClickHouseMaterialized, aJ as ClickHouseMultiLineString, aL as ClickHouseMultiPolygon, a2 as ClickHouseNamedTuple, aG as ClickHousePoint, aK as ClickHousePolygon, U as ClickHousePrecision, aH as ClickHouseRing, a4 as ClickHouseTTL, j as ConsumptionApi, aQ as ConsumptionHelpers, ap as ConsumptionUtil, a8 as DateTime, a9 as DateTime64, ab as DateTime64String, aa as DateTimeString, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, an as Decimal, m as ETLPipeline, n as ETLPipelineConfig, E as EgressConfig, ac as FixedString, ad as Float32, ae as Float64, F as FrameworkApp, ar as IdentifierBrandedString, I as IngestApi, g as IngestConfig, k as IngestPipeline, ag as Int16, ah as Int32, ai as Int64, af as Int8, L as LifeCycle, a1 as LowCardinality, M as MaterializedView, aF as MooseClient, aE as MooseUtils, as as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, aM as QueryClient, au as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, ax as Sql, l as SqlResource, av as SqlTemplateTag, c as Stream, d as StreamConfig, T as Task, ak as UInt16, al as UInt32, am as UInt64, aj as UInt8, at as Value, V as View, o as WebApp, p as WebAppConfig, q as WebAppHandler, a6 as WithDefault, W as Workflow, aN as WorkflowClient, aC as createClickhouseParameter, y as getApi, x as getApis, w as getIngestApi, v as getIngestApis, Q as getMaterializedView, R as getMaterializedViews, B as getSqlResource, z as getSqlResources, u as getStream, t as getStreams, s as getTable, r as getTables, aO as getTemporalClient, aB as getValueFromParameter, N as getView, P as getViews, K as getWebApp, J as getWebApps, H as getWorkflow, G as getWorkflows, aR as joinQueries, aD as mapToClickHouseType, aq as quoteIdentifier, aw as sql, az as toQuery, aA as toQueryPreview, ay as toStaticQuery } from './index-DdE-_e4q.js';
3
+ import { aE as MooseUtils, aF as MooseClient } from './index-DdE-_e4q';
4
+ export { A as Aggregated, h as Api, i as ApiConfig, aP as ApiHelpers, ao as ApiUtil, Y as ClickHouseByteSize, a7 as ClickHouseCodec, X as ClickHouseDecimal, a3 as ClickHouseDefault, C as ClickHouseEngines, Z as ClickHouseFixedStringSize, _ as ClickHouseFloat, $ as ClickHouseInt, a0 as ClickHouseJson, aI as ClickHouseLineString, a5 as ClickHouseMaterialized, aJ as ClickHouseMultiLineString, aL as ClickHouseMultiPolygon, a2 as ClickHouseNamedTuple, aG as ClickHousePoint, aK as ClickHousePolygon, U as ClickHousePrecision, aH as ClickHouseRing, a4 as ClickHouseTTL, j as ConsumptionApi, aQ as ConsumptionHelpers, ap as ConsumptionUtil, a8 as DateTime, a9 as DateTime64, ab as DateTime64String, aa as DateTimeString, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, an as Decimal, m as ETLPipeline, n as ETLPipelineConfig, E as EgressConfig, ac as FixedString, ad as Float32, ae as Float64, F as FrameworkApp, ar as IdentifierBrandedString, I as IngestApi, g as IngestConfig, k as IngestPipeline, ag as Int16, ah as Int32, ai as Int64, af as Int8, L as LifeCycle, a1 as LowCardinality, M as MaterializedView, as as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, aM as QueryClient, au as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, ax as Sql, l as SqlResource, av as SqlTemplateTag, c as Stream, d as StreamConfig, T as Task, ak as UInt16, al as UInt32, am as UInt64, aj as UInt8, at as Value, V as View, o as WebApp, p as WebAppConfig, q as WebAppHandler, a6 as WithDefault, W as Workflow, aN as WorkflowClient, aC as createClickhouseParameter, y as getApi, x as getApis, w as getIngestApi, v as getIngestApis, Q as getMaterializedView, R as getMaterializedViews, B as getSqlResource, z as getSqlResources, u as getStream, t as getStreams, s as getTable, r as getTables, aO as getTemporalClient, aB as getValueFromParameter, N as getView, P as getViews, K as getWebApp, J as getWebApps, H as getWorkflow, G as getWorkflows, aR as joinQueries, aD as mapToClickHouseType, aq as quoteIdentifier, aw as sql, az as toQuery, aA as toQueryPreview, ay as toStaticQuery } from './index-DdE-_e4q';
5
5
  import http from 'http';
6
6
  import { IsTuple } from 'typia/lib/typings/IsTuple';
7
7
  import { Readable } from 'node:stream';
8
- export { JWT, Key } from './browserCompatible.js';
8
+ import 'typia';
9
+ import 'typia/lib/tags';
10
+ import 'jose';
9
11
 
10
- declare const Kafka: typeof KafkaJS.Kafka;
11
- type Kafka = KafkaJS.Kafka;
12
- type Producer = KafkaJS.Producer;
12
+ declare const Kafka: any;
13
+ type Kafka = any;
14
+ type Producer = any;
13
15
  declare const compilerLog: (message: string) => void;
14
16
  declare const antiCachePath: (path: string) => string;
15
17
  declare const getFileName: (filePath: string) => string;
@@ -38,9 +40,9 @@ declare function mapTstoJs(filePath: string): string;
38
40
  * This is required for Node.js ESM which requires explicit extensions.
39
41
  *
40
42
  * Handles:
41
- * - import statements: import { foo } from './bar' -> import { foo } from './bar.js'
42
- * - dynamic imports: import('./bar') -> import('./bar.js')
43
- * - re-exports: export { foo } from './bar' -> export { foo } from './bar.js'
43
+ * - import statements: import { foo } from './bar' -> import { foo } from './bar'
44
+ * - dynamic imports: import('./bar') -> import('./bar')
45
+ * - re-exports: export { foo } from './bar' -> export { foo } from './bar'
44
46
  *
45
47
  * Does NOT modify:
46
48
  * - Package imports (no leading . or ..)
@@ -226,7 +228,7 @@ declare const mooseEnvSecrets: {
226
228
  * @param req - The HTTP request object containing injected moose utilities
227
229
  * @returns MooseUtils if available on the request, undefined otherwise
228
230
  */
229
- declare function getMooseUtilsFromRequest(req: http.IncomingMessage | any): aE | undefined;
231
+ declare function getMooseUtilsFromRequest(req: http.IncomingMessage | any): MooseUtils | undefined;
230
232
  /**
231
233
  * @deprecated Use `getMooseUtils()` from '@514labs/moose-lib' instead.
232
234
  *
@@ -249,7 +251,7 @@ declare function expressMiddleware(): (req: any, res: any, next: any) => void;
249
251
  * @deprecated Use MooseUtils from helpers.ts instead.
250
252
  */
251
253
  interface ExpressRequestWithMoose {
252
- moose?: aE;
254
+ moose?: MooseUtils;
253
255
  }
254
256
 
255
257
  interface TaskFunction {
@@ -395,13 +397,13 @@ interface RuntimeClickHouseConfig {
395
397
  * const result = await client.query.execute(sql`SELECT * FROM table`);
396
398
  * ```
397
399
  */
398
- declare function getMooseUtils(req?: any): Promise<aE>;
400
+ declare function getMooseUtils(req?: any): Promise<MooseUtils>;
399
401
  /**
400
402
  * @deprecated Use getMooseUtils() instead.
401
403
  * Creates a Moose client for database access.
402
404
  */
403
405
  declare function getMooseClients(config?: Partial<RuntimeClickHouseConfig>): Promise<{
404
- client: aF;
406
+ client: MooseClient;
405
407
  }>;
406
408
 
407
409
  /**
@@ -636,15 +638,9 @@ type DataModelConfig<T> = Partial<{
636
638
  parallelism?: number;
637
639
  }>;
638
640
 
639
- /**
640
- * @module @bayoudhi/moose-lib-serverless
641
- *
642
- * Serverless-compatible subset of @514labs/moose-lib.
643
- *
644
- * Re-exports everything from `@514labs/moose-lib`, which is inlined at build
645
- * time. Native C++ dependencies (Kafka, Temporal, Redis) are stubbed out by
646
- * the esbuild plugins in tsup.config.ts.
647
- */
641
+ export { ACKs, type CSVParsingConfig, CSV_DELIMITERS, type CliLogData, DEFAULT_CSV_CONFIG, DEFAULT_JSON_CONFIG, type DataModelConfig, DataSource, type DataSourceConfig, type ExpressRequestWithMoose, type ExtractionResult, type JSONParsingConfig, type KafkaClientConfig, type Logger, MAX_RETRIES, MAX_RETRIES_PRODUCER, MAX_RETRY_TIME_MS, MOOSE_RUNTIME_ENV_PREFIX, MooseCache, MooseClient, MooseUtils, type Producer, RETRY_FACTOR_PRODUCER, RETRY_INITIAL_TIME_MS, type StripDateIntersection, type TaskConfig, type TaskDefinition, type TaskFunction, antiCachePath, cliLog, compilerLog, createProducerConfig, expressMiddleware, getClickhouseClient, getFileName, getKafkaClient, getKafkaProducer, getLegacyMooseUtils, getMooseClients, getMooseUtils, getMooseUtilsFromRequest, isValidCSVDelimiter, logError, mapTstoJs, mooseEnvSecrets, mooseRuntimeEnv, parseCSV, parseJSON, parseJSONWithDates, rewriteImportExtensions };
642
+
643
+ // ── @bayoudhi/moose-lib-serverless additions ──────────────────────────────
648
644
 
649
645
  /**
650
646
  * ClickHouse connection configuration for serverless environments.
@@ -654,20 +650,21 @@ type DataModelConfig<T> = Partial<{
654
650
  * this file doesn't exist, so you must provide the config programmatically
655
651
  * via {@link configureClickHouse} before calling `.insert()` on any table.
656
652
  */
657
- interface ClickHouseConfig {
658
- /** ClickHouse host (e.g. "clickhouse.example.com") */
659
- host: string;
660
- /** ClickHouse HTTP port as a string (e.g. "8443") */
661
- port: string;
662
- /** ClickHouse username (e.g. "default") */
663
- username: string;
664
- /** ClickHouse password */
665
- password: string;
666
- /** ClickHouse database name */
667
- database: string;
668
- /** Whether to use HTTPS/SSL for the connection */
669
- useSSL: boolean;
653
+ export interface ClickHouseConfig {
654
+ /** ClickHouse host (e.g. "clickhouse.example.com") */
655
+ host: string;
656
+ /** ClickHouse HTTP port as a string (e.g. "8443") */
657
+ port: string;
658
+ /** ClickHouse username (e.g. "default") */
659
+ username: string;
660
+ /** ClickHouse password */
661
+ password: string;
662
+ /** ClickHouse database name */
663
+ database: string;
664
+ /** Whether to use HTTPS/SSL for the connection */
665
+ useSSL: boolean;
670
666
  }
667
+
671
668
  /**
672
669
  * Configure the ClickHouse connection for serverless environments.
673
670
  *
@@ -675,24 +672,5 @@ interface ClickHouseConfig {
675
672
  * ClickHouse connection details. This bypasses the `moose.config.toml` file
676
673
  * lookup that would otherwise fail in environments without a Moose project
677
674
  * structure.
678
- *
679
- * @example
680
- * ```typescript
681
- * import { configureClickHouse, OlapTable } from "@bayoudhi/moose-lib-serverless";
682
- *
683
- * configureClickHouse({
684
- * host: process.env.CLICKHOUSE_HOST!,
685
- * port: process.env.CLICKHOUSE_PORT!,
686
- * username: process.env.CLICKHOUSE_USER!,
687
- * password: process.env.CLICKHOUSE_PASSWORD!,
688
- * database: process.env.CLICKHOUSE_DATABASE!,
689
- * useSSL: true,
690
- * });
691
- *
692
- * // Now .insert() works without moose.config.toml
693
- * await myTable.insert(data);
694
- * ```
695
675
  */
696
- declare function configureClickHouse(config: ClickHouseConfig): void;
697
-
698
- export { ACKs, type CSVParsingConfig, CSV_DELIMITERS, type CliLogData, type ClickHouseConfig, DEFAULT_CSV_CONFIG, DEFAULT_JSON_CONFIG, type DataModelConfig, DataSource, type DataSourceConfig, type ExpressRequestWithMoose, type ExtractionResult, type JSONParsingConfig, type KafkaClientConfig, type Logger, MAX_RETRIES, MAX_RETRIES_PRODUCER, MAX_RETRY_TIME_MS, MOOSE_RUNTIME_ENV_PREFIX, MooseCache, type Producer, RETRY_FACTOR_PRODUCER, RETRY_INITIAL_TIME_MS, type StripDateIntersection, type TaskConfig, type TaskDefinition, type TaskFunction, antiCachePath, cliLog, compilerLog, configureClickHouse, createProducerConfig, expressMiddleware, getClickhouseClient, getFileName, getKafkaClient, getKafkaProducer, getLegacyMooseUtils, getMooseClients, getMooseUtils, getMooseUtilsFromRequest, isValidCSVDelimiter, logError, mapTstoJs, mooseEnvSecrets, mooseRuntimeEnv, parseCSV, parseJSON, parseJSONWithDates, rewriteImportExtensions };
676
+ export declare function configureClickHouse(config: ClickHouseConfig): void;
package/dist/index.d.ts CHANGED
@@ -1,15 +1,17 @@
1
+ export { JWT, Key } from './browserCompatible';
1
2
  import * as _clickhouse_client from '@clickhouse/client';
2
- import { KafkaJS } from '@514labs/kafka-javascript';
3
- import { aE, aF } from './index-DdE-_e4q.js';
4
- export { A as Aggregated, h as Api, i as ApiConfig, aP as ApiHelpers, ao as ApiUtil, Y as ClickHouseByteSize, a7 as ClickHouseCodec, X as ClickHouseDecimal, a3 as ClickHouseDefault, C as ClickHouseEngines, Z as ClickHouseFixedStringSize, _ as ClickHouseFloat, $ as ClickHouseInt, a0 as ClickHouseJson, aI as ClickHouseLineString, a5 as ClickHouseMaterialized, aJ as ClickHouseMultiLineString, aL as ClickHouseMultiPolygon, a2 as ClickHouseNamedTuple, aG as ClickHousePoint, aK as ClickHousePolygon, U as ClickHousePrecision, aH as ClickHouseRing, a4 as ClickHouseTTL, j as ConsumptionApi, aQ as ConsumptionHelpers, ap as ConsumptionUtil, a8 as DateTime, a9 as DateTime64, ab as DateTime64String, aa as DateTimeString, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, an as Decimal, m as ETLPipeline, n as ETLPipelineConfig, E as EgressConfig, ac as FixedString, ad as Float32, ae as Float64, F as FrameworkApp, ar as IdentifierBrandedString, I as IngestApi, g as IngestConfig, k as IngestPipeline, ag as Int16, ah as Int32, ai as Int64, af as Int8, L as LifeCycle, a1 as LowCardinality, M as MaterializedView, aF as MooseClient, aE as MooseUtils, as as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, aM as QueryClient, au as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, ax as Sql, l as SqlResource, av as SqlTemplateTag, c as Stream, d as StreamConfig, T as Task, ak as UInt16, al as UInt32, am as UInt64, aj as UInt8, at as Value, V as View, o as WebApp, p as WebAppConfig, q as WebAppHandler, a6 as WithDefault, W as Workflow, aN as WorkflowClient, aC as createClickhouseParameter, y as getApi, x as getApis, w as getIngestApi, v as getIngestApis, Q as getMaterializedView, R as getMaterializedViews, B as getSqlResource, z as getSqlResources, u as getStream, t as getStreams, s as getTable, r as getTables, aO as getTemporalClient, aB as getValueFromParameter, N as getView, P as getViews, K as getWebApp, J as getWebApps, H as getWorkflow, G as getWorkflows, aR as joinQueries, aD as mapToClickHouseType, aq as quoteIdentifier, aw as sql, az as toQuery, aA as toQueryPreview, ay as toStaticQuery } from './index-DdE-_e4q.js';
3
+ import { aE as MooseUtils, aF as MooseClient } from './index-DdE-_e4q';
4
+ export { A as Aggregated, h as Api, i as ApiConfig, aP as ApiHelpers, ao as ApiUtil, Y as ClickHouseByteSize, a7 as ClickHouseCodec, X as ClickHouseDecimal, a3 as ClickHouseDefault, C as ClickHouseEngines, Z as ClickHouseFixedStringSize, _ as ClickHouseFloat, $ as ClickHouseInt, a0 as ClickHouseJson, aI as ClickHouseLineString, a5 as ClickHouseMaterialized, aJ as ClickHouseMultiLineString, aL as ClickHouseMultiPolygon, a2 as ClickHouseNamedTuple, aG as ClickHousePoint, aK as ClickHousePolygon, U as ClickHousePrecision, aH as ClickHouseRing, a4 as ClickHouseTTL, j as ConsumptionApi, aQ as ConsumptionHelpers, ap as ConsumptionUtil, a8 as DateTime, a9 as DateTime64, ab as DateTime64String, aa as DateTimeString, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, an as Decimal, m as ETLPipeline, n as ETLPipelineConfig, E as EgressConfig, ac as FixedString, ad as Float32, ae as Float64, F as FrameworkApp, ar as IdentifierBrandedString, I as IngestApi, g as IngestConfig, k as IngestPipeline, ag as Int16, ah as Int32, ai as Int64, af as Int8, L as LifeCycle, a1 as LowCardinality, M as MaterializedView, as as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, aM as QueryClient, au as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, ax as Sql, l as SqlResource, av as SqlTemplateTag, c as Stream, d as StreamConfig, T as Task, ak as UInt16, al as UInt32, am as UInt64, aj as UInt8, at as Value, V as View, o as WebApp, p as WebAppConfig, q as WebAppHandler, a6 as WithDefault, W as Workflow, aN as WorkflowClient, aC as createClickhouseParameter, y as getApi, x as getApis, w as getIngestApi, v as getIngestApis, Q as getMaterializedView, R as getMaterializedViews, B as getSqlResource, z as getSqlResources, u as getStream, t as getStreams, s as getTable, r as getTables, aO as getTemporalClient, aB as getValueFromParameter, N as getView, P as getViews, K as getWebApp, J as getWebApps, H as getWorkflow, G as getWorkflows, aR as joinQueries, aD as mapToClickHouseType, aq as quoteIdentifier, aw as sql, az as toQuery, aA as toQueryPreview, ay as toStaticQuery } from './index-DdE-_e4q';
5
5
  import http from 'http';
6
6
  import { IsTuple } from 'typia/lib/typings/IsTuple';
7
7
  import { Readable } from 'node:stream';
8
- export { JWT, Key } from './browserCompatible.js';
8
+ import 'typia';
9
+ import 'typia/lib/tags';
10
+ import 'jose';
9
11
 
10
- declare const Kafka: typeof KafkaJS.Kafka;
11
- type Kafka = KafkaJS.Kafka;
12
- type Producer = KafkaJS.Producer;
12
+ declare const Kafka: any;
13
+ type Kafka = any;
14
+ type Producer = any;
13
15
  declare const compilerLog: (message: string) => void;
14
16
  declare const antiCachePath: (path: string) => string;
15
17
  declare const getFileName: (filePath: string) => string;
@@ -38,9 +40,9 @@ declare function mapTstoJs(filePath: string): string;
38
40
  * This is required for Node.js ESM which requires explicit extensions.
39
41
  *
40
42
  * Handles:
41
- * - import statements: import { foo } from './bar' -> import { foo } from './bar.js'
42
- * - dynamic imports: import('./bar') -> import('./bar.js')
43
- * - re-exports: export { foo } from './bar' -> export { foo } from './bar.js'
43
+ * - import statements: import { foo } from './bar' -> import { foo } from './bar'
44
+ * - dynamic imports: import('./bar') -> import('./bar')
45
+ * - re-exports: export { foo } from './bar' -> export { foo } from './bar'
44
46
  *
45
47
  * Does NOT modify:
46
48
  * - Package imports (no leading . or ..)
@@ -226,7 +228,7 @@ declare const mooseEnvSecrets: {
226
228
  * @param req - The HTTP request object containing injected moose utilities
227
229
  * @returns MooseUtils if available on the request, undefined otherwise
228
230
  */
229
- declare function getMooseUtilsFromRequest(req: http.IncomingMessage | any): aE | undefined;
231
+ declare function getMooseUtilsFromRequest(req: http.IncomingMessage | any): MooseUtils | undefined;
230
232
  /**
231
233
  * @deprecated Use `getMooseUtils()` from '@514labs/moose-lib' instead.
232
234
  *
@@ -249,7 +251,7 @@ declare function expressMiddleware(): (req: any, res: any, next: any) => void;
249
251
  * @deprecated Use MooseUtils from helpers.ts instead.
250
252
  */
251
253
  interface ExpressRequestWithMoose {
252
- moose?: aE;
254
+ moose?: MooseUtils;
253
255
  }
254
256
 
255
257
  interface TaskFunction {
@@ -395,13 +397,13 @@ interface RuntimeClickHouseConfig {
395
397
  * const result = await client.query.execute(sql`SELECT * FROM table`);
396
398
  * ```
397
399
  */
398
- declare function getMooseUtils(req?: any): Promise<aE>;
400
+ declare function getMooseUtils(req?: any): Promise<MooseUtils>;
399
401
  /**
400
402
  * @deprecated Use getMooseUtils() instead.
401
403
  * Creates a Moose client for database access.
402
404
  */
403
405
  declare function getMooseClients(config?: Partial<RuntimeClickHouseConfig>): Promise<{
404
- client: aF;
406
+ client: MooseClient;
405
407
  }>;
406
408
 
407
409
  /**
@@ -636,15 +638,9 @@ type DataModelConfig<T> = Partial<{
636
638
  parallelism?: number;
637
639
  }>;
638
640
 
639
- /**
640
- * @module @bayoudhi/moose-lib-serverless
641
- *
642
- * Serverless-compatible subset of @514labs/moose-lib.
643
- *
644
- * Re-exports everything from `@514labs/moose-lib`, which is inlined at build
645
- * time. Native C++ dependencies (Kafka, Temporal, Redis) are stubbed out by
646
- * the esbuild plugins in tsup.config.ts.
647
- */
641
+ export { ACKs, type CSVParsingConfig, CSV_DELIMITERS, type CliLogData, DEFAULT_CSV_CONFIG, DEFAULT_JSON_CONFIG, type DataModelConfig, DataSource, type DataSourceConfig, type ExpressRequestWithMoose, type ExtractionResult, type JSONParsingConfig, type KafkaClientConfig, type Logger, MAX_RETRIES, MAX_RETRIES_PRODUCER, MAX_RETRY_TIME_MS, MOOSE_RUNTIME_ENV_PREFIX, MooseCache, MooseClient, MooseUtils, type Producer, RETRY_FACTOR_PRODUCER, RETRY_INITIAL_TIME_MS, type StripDateIntersection, type TaskConfig, type TaskDefinition, type TaskFunction, antiCachePath, cliLog, compilerLog, createProducerConfig, expressMiddleware, getClickhouseClient, getFileName, getKafkaClient, getKafkaProducer, getLegacyMooseUtils, getMooseClients, getMooseUtils, getMooseUtilsFromRequest, isValidCSVDelimiter, logError, mapTstoJs, mooseEnvSecrets, mooseRuntimeEnv, parseCSV, parseJSON, parseJSONWithDates, rewriteImportExtensions };
642
+
643
+ // ── @bayoudhi/moose-lib-serverless additions ──────────────────────────────
648
644
 
649
645
  /**
650
646
  * ClickHouse connection configuration for serverless environments.
@@ -654,20 +650,21 @@ type DataModelConfig<T> = Partial<{
654
650
  * this file doesn't exist, so you must provide the config programmatically
655
651
  * via {@link configureClickHouse} before calling `.insert()` on any table.
656
652
  */
657
- interface ClickHouseConfig {
658
- /** ClickHouse host (e.g. "clickhouse.example.com") */
659
- host: string;
660
- /** ClickHouse HTTP port as a string (e.g. "8443") */
661
- port: string;
662
- /** ClickHouse username (e.g. "default") */
663
- username: string;
664
- /** ClickHouse password */
665
- password: string;
666
- /** ClickHouse database name */
667
- database: string;
668
- /** Whether to use HTTPS/SSL for the connection */
669
- useSSL: boolean;
653
+ export interface ClickHouseConfig {
654
+ /** ClickHouse host (e.g. "clickhouse.example.com") */
655
+ host: string;
656
+ /** ClickHouse HTTP port as a string (e.g. "8443") */
657
+ port: string;
658
+ /** ClickHouse username (e.g. "default") */
659
+ username: string;
660
+ /** ClickHouse password */
661
+ password: string;
662
+ /** ClickHouse database name */
663
+ database: string;
664
+ /** Whether to use HTTPS/SSL for the connection */
665
+ useSSL: boolean;
670
666
  }
667
+
671
668
  /**
672
669
  * Configure the ClickHouse connection for serverless environments.
673
670
  *
@@ -675,24 +672,5 @@ interface ClickHouseConfig {
675
672
  * ClickHouse connection details. This bypasses the `moose.config.toml` file
676
673
  * lookup that would otherwise fail in environments without a Moose project
677
674
  * structure.
678
- *
679
- * @example
680
- * ```typescript
681
- * import { configureClickHouse, OlapTable } from "@bayoudhi/moose-lib-serverless";
682
- *
683
- * configureClickHouse({
684
- * host: process.env.CLICKHOUSE_HOST!,
685
- * port: process.env.CLICKHOUSE_PORT!,
686
- * username: process.env.CLICKHOUSE_USER!,
687
- * password: process.env.CLICKHOUSE_PASSWORD!,
688
- * database: process.env.CLICKHOUSE_DATABASE!,
689
- * useSSL: true,
690
- * });
691
- *
692
- * // Now .insert() works without moose.config.toml
693
- * await myTable.insert(data);
694
- * ```
695
675
  */
696
- declare function configureClickHouse(config: ClickHouseConfig): void;
697
-
698
- export { ACKs, type CSVParsingConfig, CSV_DELIMITERS, type CliLogData, type ClickHouseConfig, DEFAULT_CSV_CONFIG, DEFAULT_JSON_CONFIG, type DataModelConfig, DataSource, type DataSourceConfig, type ExpressRequestWithMoose, type ExtractionResult, type JSONParsingConfig, type KafkaClientConfig, type Logger, MAX_RETRIES, MAX_RETRIES_PRODUCER, MAX_RETRY_TIME_MS, MOOSE_RUNTIME_ENV_PREFIX, MooseCache, type Producer, RETRY_FACTOR_PRODUCER, RETRY_INITIAL_TIME_MS, type StripDateIntersection, type TaskConfig, type TaskDefinition, type TaskFunction, antiCachePath, cliLog, compilerLog, configureClickHouse, createProducerConfig, expressMiddleware, getClickhouseClient, getFileName, getKafkaClient, getKafkaProducer, getLegacyMooseUtils, getMooseClients, getMooseUtils, getMooseUtilsFromRequest, isValidCSVDelimiter, logError, mapTstoJs, mooseEnvSecrets, mooseRuntimeEnv, parseCSV, parseJSON, parseJSONWithDates, rewriteImportExtensions };
676
+ export declare function configureClickHouse(config: ClickHouseConfig): void;
@@ -1513,7 +1513,7 @@ var init_compiler_config = __esm({
1513
1513
  import_path = __toESM(require("path"));
1514
1514
  MOOSE_COMPILER_PLUGINS = [
1515
1515
  {
1516
- transform: "./node_modules/@bayoudhi/moose-lib-serverless/dist/compilerPlugin.js"
1516
+ transform: require.resolve("@bayoudhi/moose-lib-serverless/dist/compilerPlugin.js")
1517
1517
  // No longer using transformProgram - direct typia integration eliminates
1518
1518
  // the need for program replacement and the associated incremental compilation issues
1519
1519
  },
@@ -95,7 +95,7 @@ var import_fs = require("fs");
95
95
  var import_path = __toESM(require("path"));
96
96
  var MOOSE_COMPILER_PLUGINS = [
97
97
  {
98
- transform: "./node_modules/@bayoudhi/moose-lib-serverless/dist/compilerPlugin.js"
98
+ transform: require.resolve("@bayoudhi/moose-lib-serverless/dist/compilerPlugin.js")
99
99
  // No longer using transformProgram - direct typia integration eliminates
100
100
  // the need for program replacement and the associated incremental compilation issues
101
101
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bayoudhi/moose-lib-serverless",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "Serverless-compatible subset of @514labs/moose-lib for AWS Lambda and edge runtimes. Provides OlapTable, Stream, Workflow, View, and other Moose SDK classes without native C++ dependencies (Kafka, Temporal). Includes a patched compiler plugin for type-driven schema injection.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",