@514labs/moose-lib 0.6.290-ci-1-g4fece71b → 0.6.290-ci-9-ge4e27fd3
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/{browserCompatible-ChWHzgtb.d.mts → browserCompatible-Ddm1MeOX.d.mts} +1 -1
- package/dist/{browserCompatible-B8CAYjv5.d.ts → browserCompatible-N0vNe6CP.d.ts} +1 -1
- package/dist/browserCompatible.d.mts +2 -2
- package/dist/browserCompatible.d.ts +2 -2
- package/dist/browserCompatible.js +2443 -2160
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +2440 -2159
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.d.mts +1 -1
- package/dist/dmv2/index.d.ts +1 -1
- package/dist/dmv2/index.js +2334 -2051
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +2299 -2018
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-rQOQo9sv.d.mts → index-C6Y6fn_9.d.mts} +10 -1
- package/dist/{index-rQOQo9sv.d.ts → index-C6Y6fn_9.d.ts} +10 -1
- package/dist/index.d.mts +31 -7
- package/dist/index.d.ts +31 -7
- package/dist/index.js +3039 -2718
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2940 -2618
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +1704 -1136
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +1695 -1129
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1571,6 +1571,15 @@ interface ApiUtil {
|
|
|
1571
1571
|
sql: typeof sql;
|
|
1572
1572
|
jwt: JWTPayload | undefined;
|
|
1573
1573
|
}
|
|
1574
|
+
/**
|
|
1575
|
+
* Utilities provided by getMooseUtils() for database access and SQL queries.
|
|
1576
|
+
* Works in both Moose runtime and standalone contexts.
|
|
1577
|
+
*/
|
|
1578
|
+
interface MooseUtils {
|
|
1579
|
+
client: MooseClient;
|
|
1580
|
+
sql: typeof sql;
|
|
1581
|
+
jwt?: JWTPayload;
|
|
1582
|
+
}
|
|
1574
1583
|
/** @deprecated Use ApiUtil instead. */
|
|
1575
1584
|
type ConsumptionUtil = ApiUtil;
|
|
1576
1585
|
declare class MooseClient {
|
|
@@ -2144,4 +2153,4 @@ type SimpleAggregated<AggregationFunction extends string, ArgType = any> = {
|
|
|
2144
2153
|
_argType?: ArgType;
|
|
2145
2154
|
};
|
|
2146
2155
|
|
|
2147
|
-
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,
|
|
2156
|
+
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 };
|
|
@@ -1571,6 +1571,15 @@ interface ApiUtil {
|
|
|
1571
1571
|
sql: typeof sql;
|
|
1572
1572
|
jwt: JWTPayload | undefined;
|
|
1573
1573
|
}
|
|
1574
|
+
/**
|
|
1575
|
+
* Utilities provided by getMooseUtils() for database access and SQL queries.
|
|
1576
|
+
* Works in both Moose runtime and standalone contexts.
|
|
1577
|
+
*/
|
|
1578
|
+
interface MooseUtils {
|
|
1579
|
+
client: MooseClient;
|
|
1580
|
+
sql: typeof sql;
|
|
1581
|
+
jwt?: JWTPayload;
|
|
1582
|
+
}
|
|
1574
1583
|
/** @deprecated Use ApiUtil instead. */
|
|
1575
1584
|
type ConsumptionUtil = ApiUtil;
|
|
1576
1585
|
declare class MooseClient {
|
|
@@ -2144,4 +2153,4 @@ type SimpleAggregated<AggregationFunction extends string, ArgType = any> = {
|
|
|
2144
2153
|
_argType?: ArgType;
|
|
2145
2154
|
};
|
|
2146
2155
|
|
|
2147
|
-
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,
|
|
2156
|
+
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,9 +1,8 @@
|
|
|
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-
|
|
2
|
-
import { K as ApiUtil,
|
|
3
|
-
export { A as Aggregated, h as Api, i as ApiConfig,
|
|
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-Ddm1MeOX.mjs';
|
|
2
|
+
import { a4 as MooseUtils, K as ApiUtil, a5 as MooseClient } from './index-C6Y6fn_9.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-C6Y6fn_9.mjs';
|
|
4
4
|
import * as _clickhouse_client from '@clickhouse/client';
|
|
5
5
|
import { KafkaJS } from '@514labs/kafka-javascript';
|
|
6
|
-
import http from 'http';
|
|
7
6
|
import { IsTuple } from 'typia/lib/typings/IsTuple';
|
|
8
7
|
import { Readable } from 'node:stream';
|
|
9
8
|
import 'typia/lib/tags';
|
|
@@ -11,6 +10,7 @@ import 'typia';
|
|
|
11
10
|
import 'typia/src/schemas/json/IJsonSchemaCollection';
|
|
12
11
|
import '@temporalio/client';
|
|
13
12
|
import 'jose';
|
|
13
|
+
import 'http';
|
|
14
14
|
|
|
15
15
|
declare const Kafka: typeof KafkaJS.Kafka;
|
|
16
16
|
type Kafka = KafkaJS.Kafka;
|
|
@@ -193,10 +193,16 @@ declare const mooseEnvSecrets: {
|
|
|
193
193
|
get(envVarName: string): string;
|
|
194
194
|
};
|
|
195
195
|
|
|
196
|
-
|
|
196
|
+
/**
|
|
197
|
+
* @deprecated No longer needed. Use getMooseUtils() directly instead.
|
|
198
|
+
* Moose now handles utility injection automatically when injectMooseUtils is true.
|
|
199
|
+
*/
|
|
197
200
|
declare function expressMiddleware(): (req: any, res: any, next: any) => void;
|
|
201
|
+
/**
|
|
202
|
+
* @deprecated Use MooseUtils from helpers.ts instead.
|
|
203
|
+
*/
|
|
198
204
|
interface ExpressRequestWithMoose {
|
|
199
|
-
moose?:
|
|
205
|
+
moose?: MooseUtils;
|
|
200
206
|
}
|
|
201
207
|
|
|
202
208
|
interface TaskFunction {
|
|
@@ -322,6 +328,24 @@ interface RuntimeClickHouseConfig {
|
|
|
322
328
|
useSSL: boolean;
|
|
323
329
|
}
|
|
324
330
|
|
|
331
|
+
/**
|
|
332
|
+
* Get Moose utilities for database access and SQL queries.
|
|
333
|
+
* Works in both Moose runtime and standalone contexts.
|
|
334
|
+
*
|
|
335
|
+
* @param req - DEPRECATED: Request parameter is no longer needed and will be ignored.
|
|
336
|
+
* @returns Promise resolving to MooseUtils with client and sql utilities.
|
|
337
|
+
*
|
|
338
|
+
* @example
|
|
339
|
+
* ```typescript
|
|
340
|
+
* const { client, sql } = await getMooseUtils();
|
|
341
|
+
* const result = await client.query.execute(sql`SELECT * FROM table`);
|
|
342
|
+
* ```
|
|
343
|
+
*/
|
|
344
|
+
declare function getMooseUtils(req?: any): Promise<MooseUtils>;
|
|
345
|
+
/**
|
|
346
|
+
* @deprecated Use getMooseUtils() instead.
|
|
347
|
+
* Creates a Moose client for database access.
|
|
348
|
+
*/
|
|
325
349
|
declare function getMooseClients(config?: Partial<RuntimeClickHouseConfig>): Promise<{
|
|
326
350
|
client: MooseClient;
|
|
327
351
|
}>;
|
|
@@ -554,4 +578,4 @@ type DataModelConfig<T> = Partial<{
|
|
|
554
578
|
parallelism?: number;
|
|
555
579
|
}>;
|
|
556
580
|
|
|
557
|
-
export { ACKs, ApiUtil, 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, type Producer, RETRY_FACTOR_PRODUCER, RETRY_INITIAL_TIME_MS, type StripDateIntersection, type TaskConfig, type TaskDefinition, type TaskFunction, antiCachePath, cliLog, compilerLog, createApi, createConsumptionApi, createProducerConfig, expressMiddleware, getClickhouseClient, getFileName, getKafkaClient, getKafkaProducer, getMooseClients, getMooseUtils, isValidCSVDelimiter, logError, mapTstoJs, mooseEnvSecrets, mooseRuntimeEnv, parseCSV, parseJSON, parseJSONWithDates };
|
|
581
|
+
export { ACKs, ApiUtil, 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, createApi, createConsumptionApi, createProducerConfig, expressMiddleware, getClickhouseClient, getFileName, getKafkaClient, getKafkaProducer, getMooseClients, getMooseUtils, isValidCSVDelimiter, logError, mapTstoJs, mooseEnvSecrets, mooseRuntimeEnv, parseCSV, parseJSON, parseJSONWithDates };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
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-
|
|
2
|
-
import { K as ApiUtil,
|
|
3
|
-
export { A as Aggregated, h as Api, i as ApiConfig,
|
|
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-N0vNe6CP.js';
|
|
2
|
+
import { a4 as MooseUtils, K as ApiUtil, a5 as MooseClient } from './index-C6Y6fn_9.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-C6Y6fn_9.js';
|
|
4
4
|
import * as _clickhouse_client from '@clickhouse/client';
|
|
5
5
|
import { KafkaJS } from '@514labs/kafka-javascript';
|
|
6
|
-
import http from 'http';
|
|
7
6
|
import { IsTuple } from 'typia/lib/typings/IsTuple';
|
|
8
7
|
import { Readable } from 'node:stream';
|
|
9
8
|
import 'typia/lib/tags';
|
|
@@ -11,6 +10,7 @@ import 'typia';
|
|
|
11
10
|
import 'typia/src/schemas/json/IJsonSchemaCollection';
|
|
12
11
|
import '@temporalio/client';
|
|
13
12
|
import 'jose';
|
|
13
|
+
import 'http';
|
|
14
14
|
|
|
15
15
|
declare const Kafka: typeof KafkaJS.Kafka;
|
|
16
16
|
type Kafka = KafkaJS.Kafka;
|
|
@@ -193,10 +193,16 @@ declare const mooseEnvSecrets: {
|
|
|
193
193
|
get(envVarName: string): string;
|
|
194
194
|
};
|
|
195
195
|
|
|
196
|
-
|
|
196
|
+
/**
|
|
197
|
+
* @deprecated No longer needed. Use getMooseUtils() directly instead.
|
|
198
|
+
* Moose now handles utility injection automatically when injectMooseUtils is true.
|
|
199
|
+
*/
|
|
197
200
|
declare function expressMiddleware(): (req: any, res: any, next: any) => void;
|
|
201
|
+
/**
|
|
202
|
+
* @deprecated Use MooseUtils from helpers.ts instead.
|
|
203
|
+
*/
|
|
198
204
|
interface ExpressRequestWithMoose {
|
|
199
|
-
moose?:
|
|
205
|
+
moose?: MooseUtils;
|
|
200
206
|
}
|
|
201
207
|
|
|
202
208
|
interface TaskFunction {
|
|
@@ -322,6 +328,24 @@ interface RuntimeClickHouseConfig {
|
|
|
322
328
|
useSSL: boolean;
|
|
323
329
|
}
|
|
324
330
|
|
|
331
|
+
/**
|
|
332
|
+
* Get Moose utilities for database access and SQL queries.
|
|
333
|
+
* Works in both Moose runtime and standalone contexts.
|
|
334
|
+
*
|
|
335
|
+
* @param req - DEPRECATED: Request parameter is no longer needed and will be ignored.
|
|
336
|
+
* @returns Promise resolving to MooseUtils with client and sql utilities.
|
|
337
|
+
*
|
|
338
|
+
* @example
|
|
339
|
+
* ```typescript
|
|
340
|
+
* const { client, sql } = await getMooseUtils();
|
|
341
|
+
* const result = await client.query.execute(sql`SELECT * FROM table`);
|
|
342
|
+
* ```
|
|
343
|
+
*/
|
|
344
|
+
declare function getMooseUtils(req?: any): Promise<MooseUtils>;
|
|
345
|
+
/**
|
|
346
|
+
* @deprecated Use getMooseUtils() instead.
|
|
347
|
+
* Creates a Moose client for database access.
|
|
348
|
+
*/
|
|
325
349
|
declare function getMooseClients(config?: Partial<RuntimeClickHouseConfig>): Promise<{
|
|
326
350
|
client: MooseClient;
|
|
327
351
|
}>;
|
|
@@ -554,4 +578,4 @@ type DataModelConfig<T> = Partial<{
|
|
|
554
578
|
parallelism?: number;
|
|
555
579
|
}>;
|
|
556
580
|
|
|
557
|
-
export { ACKs, ApiUtil, 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, type Producer, RETRY_FACTOR_PRODUCER, RETRY_INITIAL_TIME_MS, type StripDateIntersection, type TaskConfig, type TaskDefinition, type TaskFunction, antiCachePath, cliLog, compilerLog, createApi, createConsumptionApi, createProducerConfig, expressMiddleware, getClickhouseClient, getFileName, getKafkaClient, getKafkaProducer, getMooseClients, getMooseUtils, isValidCSVDelimiter, logError, mapTstoJs, mooseEnvSecrets, mooseRuntimeEnv, parseCSV, parseJSON, parseJSONWithDates };
|
|
581
|
+
export { ACKs, ApiUtil, 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, createApi, createConsumptionApi, createProducerConfig, expressMiddleware, getClickhouseClient, getFileName, getKafkaClient, getKafkaProducer, getMooseClients, getMooseUtils, isValidCSVDelimiter, logError, mapTstoJs, mooseEnvSecrets, mooseRuntimeEnv, parseCSV, parseJSON, parseJSONWithDates };
|