@stackone/olap 1.51.0 → 1.52.0
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.cjs +562 -1
- package/dist/index.d.cts +64 -7
- package/dist/index.d.mts +64 -7
- package/dist/index.mjs +562 -1
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -154,8 +154,8 @@ interface IOlapClient {
|
|
|
154
154
|
}>, options?: OlapOptions): Promise<void>;
|
|
155
155
|
recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
|
|
156
156
|
recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
|
|
157
|
-
getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
|
|
158
|
-
getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
|
|
157
|
+
getLogs(organizationId: string, projectSecureId: string, query: Query, engine?: OlapEngine): Promise<QueryResult>;
|
|
158
|
+
getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery, engine?: OlapEngine): Promise<ActionsQueryResult>;
|
|
159
159
|
getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
|
|
160
160
|
getLog(organizationId: string, projectSecureId: string, logId: string): Promise<ActionLog | UnifiedLog | undefined>;
|
|
161
161
|
getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
|
|
@@ -332,6 +332,7 @@ declare const LogType: {
|
|
|
332
332
|
readonly Provider: "provider";
|
|
333
333
|
};
|
|
334
334
|
type LogType = (typeof LogType)[keyof typeof LogType];
|
|
335
|
+
type OlapEngine = 'tinybird' | 'clickhouse';
|
|
335
336
|
type Query = {
|
|
336
337
|
organizationId?: string | string[];
|
|
337
338
|
projectSecureId?: string | string[];
|
|
@@ -602,7 +603,14 @@ interface TinybirdConfig {
|
|
|
602
603
|
token: string;
|
|
603
604
|
allowHttp?: boolean;
|
|
604
605
|
}
|
|
605
|
-
interface
|
|
606
|
+
interface ClickHouseConfig {
|
|
607
|
+
url: string;
|
|
608
|
+
username?: string;
|
|
609
|
+
password?: string;
|
|
610
|
+
database: string;
|
|
611
|
+
requestTimeout?: number;
|
|
612
|
+
}
|
|
613
|
+
interface QueryResponse<T> {
|
|
606
614
|
meta: Array<{
|
|
607
615
|
name: string;
|
|
608
616
|
type: string;
|
|
@@ -616,13 +624,27 @@ interface TinybirdResponse<T> {
|
|
|
616
624
|
bytes_read: number;
|
|
617
625
|
};
|
|
618
626
|
}
|
|
619
|
-
interface
|
|
627
|
+
interface QueryOptions<TParams = Record<string, unknown>, TResult = unknown> {
|
|
620
628
|
endpoint: string;
|
|
621
629
|
params?: TParams;
|
|
622
630
|
schema?: {
|
|
623
631
|
parse: (data: unknown) => TResult;
|
|
624
632
|
};
|
|
625
633
|
}
|
|
634
|
+
interface IQueryClient {
|
|
635
|
+
query<TParams = Record<string, unknown>, TResult = unknown>(options: QueryOptions<TParams, TResult>): Promise<TResult[]>;
|
|
636
|
+
queryWithPagination<TParams = Record<string, unknown>, TResult = unknown>(options: QueryOptions<TParams, TResult> & {
|
|
637
|
+
pageNumber?: number;
|
|
638
|
+
pageSize?: number;
|
|
639
|
+
}): Promise<{
|
|
640
|
+
data: TResult[];
|
|
641
|
+
total: number;
|
|
642
|
+
pageNumber: number;
|
|
643
|
+
pageSize: number;
|
|
644
|
+
}>;
|
|
645
|
+
queryRaw<TParams = Record<string, unknown>, TResult = unknown>(options: QueryOptions<TParams, TResult>): Promise<QueryResponse<TResult[]>>;
|
|
646
|
+
isReady(): boolean;
|
|
647
|
+
}
|
|
626
648
|
interface ILog {
|
|
627
649
|
logType: LogType;
|
|
628
650
|
eventTime: Date;
|
|
@@ -756,6 +778,35 @@ type ProviderLog = ILog & {
|
|
|
756
778
|
duration?: number;
|
|
757
779
|
};
|
|
758
780
|
//#endregion
|
|
781
|
+
//#region src/logs/clickhouseClient.d.ts
|
|
782
|
+
declare class ClickHouseClient implements IQueryClient {
|
|
783
|
+
#private;
|
|
784
|
+
constructor(config?: ClickHouseConfig, logger?: ILogger);
|
|
785
|
+
query<TParams = Record<string, unknown>, TResult = unknown>(options: QueryOptions<TParams, TResult>): Promise<TResult[]>;
|
|
786
|
+
queryWithPagination<TParams = Record<string, unknown>, TResult = unknown>(options: QueryOptions<TParams, TResult> & {
|
|
787
|
+
pageNumber?: number;
|
|
788
|
+
pageSize?: number;
|
|
789
|
+
}): Promise<{
|
|
790
|
+
data: TResult[];
|
|
791
|
+
total: number;
|
|
792
|
+
pageNumber: number;
|
|
793
|
+
pageSize: number;
|
|
794
|
+
}>;
|
|
795
|
+
queryRaw<TParams = Record<string, unknown>, TResult = unknown>(options: QueryOptions<TParams, TResult>): Promise<QueryResponse<TResult[]>>;
|
|
796
|
+
isReady(): boolean;
|
|
797
|
+
close(): Promise<void>;
|
|
798
|
+
}
|
|
799
|
+
//#endregion
|
|
800
|
+
//#region src/logs/clientFactory.d.ts
|
|
801
|
+
type OlapQueryClientType = 'tinybird' | 'clickhouse';
|
|
802
|
+
interface OlapQueryClientConfig {
|
|
803
|
+
type?: OlapQueryClientType;
|
|
804
|
+
tinybird?: TinybirdConfig;
|
|
805
|
+
clickhouse?: ClickHouseConfig;
|
|
806
|
+
}
|
|
807
|
+
declare function createOlapQueryClient(config: OlapQueryClientConfig, httpClient?: HttpClient, logger?: ILogger): IQueryClient;
|
|
808
|
+
declare function createConfigFromEnv(): OlapQueryClientConfig;
|
|
809
|
+
//#endregion
|
|
759
810
|
//#region src/datasets/types.d.ts
|
|
760
811
|
type LogfireConfig = {
|
|
761
812
|
token?: string;
|
|
@@ -788,6 +839,7 @@ declare class OlapClient implements IOlapClient {
|
|
|
788
839
|
kafkaClientConfig,
|
|
789
840
|
s3ClientConfig,
|
|
790
841
|
tinybirdConfig,
|
|
842
|
+
clickhouseConfig,
|
|
791
843
|
sinkConfig,
|
|
792
844
|
logger
|
|
793
845
|
}?: {
|
|
@@ -797,6 +849,7 @@ declare class OlapClient implements IOlapClient {
|
|
|
797
849
|
kafkaClientConfig?: KafkaClientConfig;
|
|
798
850
|
s3ClientConfig?: S3ClientConfig;
|
|
799
851
|
tinybirdConfig?: TinybirdConfig;
|
|
852
|
+
clickhouseConfig?: ClickHouseConfig;
|
|
800
853
|
sinkConfig?: OlapSinkConfig;
|
|
801
854
|
logger?: ILogger;
|
|
802
855
|
}): Promise<OlapClient>;
|
|
@@ -813,8 +866,8 @@ declare class OlapClient implements IOlapClient {
|
|
|
813
866
|
}>, options?: OlapOptions): Promise<void>;
|
|
814
867
|
recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
|
|
815
868
|
recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
|
|
816
|
-
getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
|
|
817
|
-
getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
|
|
869
|
+
getLogs(organizationId: string, projectSecureId: string, query: Query, engine?: OlapEngine): Promise<QueryResult>;
|
|
870
|
+
getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery, engine?: OlapEngine): Promise<ActionsQueryResult>;
|
|
818
871
|
getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
|
|
819
872
|
getLog(organizationId: string, projectSecureId: string, logId: string): Promise<ActionLog | UnifiedLog | undefined>;
|
|
820
873
|
getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
|
|
@@ -841,6 +894,7 @@ declare const buildOlapClientInstance: ({
|
|
|
841
894
|
kafkaClientConfig,
|
|
842
895
|
s3ClientConfig,
|
|
843
896
|
tinybirdConfig,
|
|
897
|
+
clickhouseConfig,
|
|
844
898
|
sinkConfig,
|
|
845
899
|
logger
|
|
846
900
|
}?: {
|
|
@@ -850,6 +904,7 @@ declare const buildOlapClientInstance: ({
|
|
|
850
904
|
kafkaClientConfig?: KafkaClientConfig;
|
|
851
905
|
s3ClientConfig?: S3ClientConfig;
|
|
852
906
|
tinybirdConfig?: TinybirdConfig;
|
|
907
|
+
clickhouseConfig?: ClickHouseConfig;
|
|
853
908
|
sinkConfig?: OlapSinkConfig;
|
|
854
909
|
logger?: ILogger;
|
|
855
910
|
}) => Promise<IOlapClient>;
|
|
@@ -862,6 +917,7 @@ declare class OlapClientManager {
|
|
|
862
917
|
kafkaClientConfig,
|
|
863
918
|
s3ClientConfig,
|
|
864
919
|
tinybirdConfig,
|
|
920
|
+
clickhouseConfig,
|
|
865
921
|
sinkConfig,
|
|
866
922
|
logger,
|
|
867
923
|
getOlapClient
|
|
@@ -872,6 +928,7 @@ declare class OlapClientManager {
|
|
|
872
928
|
kafkaClientConfig?: KafkaClientConfig;
|
|
873
929
|
s3ClientConfig?: S3ClientConfig;
|
|
874
930
|
tinybirdConfig?: TinybirdConfig;
|
|
931
|
+
clickhouseConfig?: ClickHouseConfig;
|
|
875
932
|
sinkConfig?: OlapSinkConfig;
|
|
876
933
|
logger?: ILogger;
|
|
877
934
|
getOlapClient?: typeof buildOlapClientInstance;
|
|
@@ -879,4 +936,4 @@ declare class OlapClientManager {
|
|
|
879
936
|
static resetInstance(): void;
|
|
880
937
|
}
|
|
881
938
|
//#endregion
|
|
882
|
-
export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsQuery, type ActionsQueryResult, type AdvancedOptions, type AdvancedSinkConfig, type AggregateQuery, type AggregateResult, AuthType, type AuthType as AuthTypeValue, type DatasetsOptions, type DatasetsSinkConfig, type DefenderContext, type DefenderLog, type DefenderOptions, type DefenderSinkConfig, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type ILog, type IOlapClient, IntervalType, type IntervalType as IntervalTypeValues, LogType, type LogType as LogTypeValues, type LogfireConfig, type LogsOptions, OlapClient, OlapClientManager, type OlapOptions, type OlapSinkConfig, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, type QueryResult, type Source, type SourceQuery, type SourceResult, SourceType, type SourceType as SourceTypeValue, type StepAdvancedLog, type StepInput, type StepLog, type StepResult, type StepsQuery, type StepsQueryResult, StreamType, type StreamType as StreamTypeValue, type TinybirdConfig,
|
|
939
|
+
export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsQuery, type ActionsQueryResult, type AdvancedOptions, type AdvancedSinkConfig, type AggregateQuery, type AggregateResult, AuthType, type AuthType as AuthTypeValue, ClickHouseClient, type ClickHouseConfig, type DatasetsOptions, type DatasetsSinkConfig, type DefenderContext, type DefenderLog, type DefenderOptions, type DefenderSinkConfig, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type ILog, type IOlapClient, type IQueryClient, type IQueryClient as ITinybirdClient, IntervalType, type IntervalType as IntervalTypeValues, LogType, type LogType as LogTypeValues, type LogfireConfig, type LogsOptions, OlapClient, OlapClientManager, type OlapEngine, type OlapOptions, type OlapQueryClientConfig, type OlapQueryClientType, type OlapSinkConfig, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, type QueryOptions, type QueryOptions as TinybirdQueryOptions, type QueryResponse, type QueryResponse as TinybirdResponse, type QueryResult, type Source, type SourceQuery, type SourceResult, SourceType, type SourceType as SourceTypeValue, type StepAdvancedLog, type StepInput, type StepLog, type StepResult, type StepsQuery, type StepsQueryResult, StreamType, type StreamType as StreamTypeValue, type TinybirdConfig, TransportType, type TransportType as TransportTypeValue, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult, createConfigFromEnv, createOlapQueryClient };
|
package/dist/index.d.mts
CHANGED
|
@@ -153,8 +153,8 @@ interface IOlapClient {
|
|
|
153
153
|
}>, options?: OlapOptions): Promise<void>;
|
|
154
154
|
recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
|
|
155
155
|
recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
|
|
156
|
-
getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
|
|
157
|
-
getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
|
|
156
|
+
getLogs(organizationId: string, projectSecureId: string, query: Query, engine?: OlapEngine): Promise<QueryResult>;
|
|
157
|
+
getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery, engine?: OlapEngine): Promise<ActionsQueryResult>;
|
|
158
158
|
getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
|
|
159
159
|
getLog(organizationId: string, projectSecureId: string, logId: string): Promise<ActionLog | UnifiedLog | undefined>;
|
|
160
160
|
getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
|
|
@@ -331,6 +331,7 @@ declare const LogType: {
|
|
|
331
331
|
readonly Provider: "provider";
|
|
332
332
|
};
|
|
333
333
|
type LogType = (typeof LogType)[keyof typeof LogType];
|
|
334
|
+
type OlapEngine = 'tinybird' | 'clickhouse';
|
|
334
335
|
type Query = {
|
|
335
336
|
organizationId?: string | string[];
|
|
336
337
|
projectSecureId?: string | string[];
|
|
@@ -601,7 +602,14 @@ interface TinybirdConfig {
|
|
|
601
602
|
token: string;
|
|
602
603
|
allowHttp?: boolean;
|
|
603
604
|
}
|
|
604
|
-
interface
|
|
605
|
+
interface ClickHouseConfig {
|
|
606
|
+
url: string;
|
|
607
|
+
username?: string;
|
|
608
|
+
password?: string;
|
|
609
|
+
database: string;
|
|
610
|
+
requestTimeout?: number;
|
|
611
|
+
}
|
|
612
|
+
interface QueryResponse<T> {
|
|
605
613
|
meta: Array<{
|
|
606
614
|
name: string;
|
|
607
615
|
type: string;
|
|
@@ -615,13 +623,27 @@ interface TinybirdResponse<T> {
|
|
|
615
623
|
bytes_read: number;
|
|
616
624
|
};
|
|
617
625
|
}
|
|
618
|
-
interface
|
|
626
|
+
interface QueryOptions<TParams = Record<string, unknown>, TResult = unknown> {
|
|
619
627
|
endpoint: string;
|
|
620
628
|
params?: TParams;
|
|
621
629
|
schema?: {
|
|
622
630
|
parse: (data: unknown) => TResult;
|
|
623
631
|
};
|
|
624
632
|
}
|
|
633
|
+
interface IQueryClient {
|
|
634
|
+
query<TParams = Record<string, unknown>, TResult = unknown>(options: QueryOptions<TParams, TResult>): Promise<TResult[]>;
|
|
635
|
+
queryWithPagination<TParams = Record<string, unknown>, TResult = unknown>(options: QueryOptions<TParams, TResult> & {
|
|
636
|
+
pageNumber?: number;
|
|
637
|
+
pageSize?: number;
|
|
638
|
+
}): Promise<{
|
|
639
|
+
data: TResult[];
|
|
640
|
+
total: number;
|
|
641
|
+
pageNumber: number;
|
|
642
|
+
pageSize: number;
|
|
643
|
+
}>;
|
|
644
|
+
queryRaw<TParams = Record<string, unknown>, TResult = unknown>(options: QueryOptions<TParams, TResult>): Promise<QueryResponse<TResult[]>>;
|
|
645
|
+
isReady(): boolean;
|
|
646
|
+
}
|
|
625
647
|
interface ILog {
|
|
626
648
|
logType: LogType;
|
|
627
649
|
eventTime: Date;
|
|
@@ -755,6 +777,35 @@ type ProviderLog = ILog & {
|
|
|
755
777
|
duration?: number;
|
|
756
778
|
};
|
|
757
779
|
//#endregion
|
|
780
|
+
//#region src/logs/clickhouseClient.d.ts
|
|
781
|
+
declare class ClickHouseClient implements IQueryClient {
|
|
782
|
+
#private;
|
|
783
|
+
constructor(config?: ClickHouseConfig, logger?: ILogger);
|
|
784
|
+
query<TParams = Record<string, unknown>, TResult = unknown>(options: QueryOptions<TParams, TResult>): Promise<TResult[]>;
|
|
785
|
+
queryWithPagination<TParams = Record<string, unknown>, TResult = unknown>(options: QueryOptions<TParams, TResult> & {
|
|
786
|
+
pageNumber?: number;
|
|
787
|
+
pageSize?: number;
|
|
788
|
+
}): Promise<{
|
|
789
|
+
data: TResult[];
|
|
790
|
+
total: number;
|
|
791
|
+
pageNumber: number;
|
|
792
|
+
pageSize: number;
|
|
793
|
+
}>;
|
|
794
|
+
queryRaw<TParams = Record<string, unknown>, TResult = unknown>(options: QueryOptions<TParams, TResult>): Promise<QueryResponse<TResult[]>>;
|
|
795
|
+
isReady(): boolean;
|
|
796
|
+
close(): Promise<void>;
|
|
797
|
+
}
|
|
798
|
+
//#endregion
|
|
799
|
+
//#region src/logs/clientFactory.d.ts
|
|
800
|
+
type OlapQueryClientType = 'tinybird' | 'clickhouse';
|
|
801
|
+
interface OlapQueryClientConfig {
|
|
802
|
+
type?: OlapQueryClientType;
|
|
803
|
+
tinybird?: TinybirdConfig;
|
|
804
|
+
clickhouse?: ClickHouseConfig;
|
|
805
|
+
}
|
|
806
|
+
declare function createOlapQueryClient(config: OlapQueryClientConfig, httpClient?: HttpClient, logger?: ILogger): IQueryClient;
|
|
807
|
+
declare function createConfigFromEnv(): OlapQueryClientConfig;
|
|
808
|
+
//#endregion
|
|
758
809
|
//#region src/datasets/types.d.ts
|
|
759
810
|
type LogfireConfig = {
|
|
760
811
|
token?: string;
|
|
@@ -787,6 +838,7 @@ declare class OlapClient implements IOlapClient {
|
|
|
787
838
|
kafkaClientConfig,
|
|
788
839
|
s3ClientConfig,
|
|
789
840
|
tinybirdConfig,
|
|
841
|
+
clickhouseConfig,
|
|
790
842
|
sinkConfig,
|
|
791
843
|
logger
|
|
792
844
|
}?: {
|
|
@@ -796,6 +848,7 @@ declare class OlapClient implements IOlapClient {
|
|
|
796
848
|
kafkaClientConfig?: KafkaClientConfig;
|
|
797
849
|
s3ClientConfig?: S3ClientConfig;
|
|
798
850
|
tinybirdConfig?: TinybirdConfig;
|
|
851
|
+
clickhouseConfig?: ClickHouseConfig;
|
|
799
852
|
sinkConfig?: OlapSinkConfig;
|
|
800
853
|
logger?: ILogger;
|
|
801
854
|
}): Promise<OlapClient>;
|
|
@@ -812,8 +865,8 @@ declare class OlapClient implements IOlapClient {
|
|
|
812
865
|
}>, options?: OlapOptions): Promise<void>;
|
|
813
866
|
recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
|
|
814
867
|
recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
|
|
815
|
-
getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
|
|
816
|
-
getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
|
|
868
|
+
getLogs(organizationId: string, projectSecureId: string, query: Query, engine?: OlapEngine): Promise<QueryResult>;
|
|
869
|
+
getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery, engine?: OlapEngine): Promise<ActionsQueryResult>;
|
|
817
870
|
getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
|
|
818
871
|
getLog(organizationId: string, projectSecureId: string, logId: string): Promise<ActionLog | UnifiedLog | undefined>;
|
|
819
872
|
getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
|
|
@@ -840,6 +893,7 @@ declare const buildOlapClientInstance: ({
|
|
|
840
893
|
kafkaClientConfig,
|
|
841
894
|
s3ClientConfig,
|
|
842
895
|
tinybirdConfig,
|
|
896
|
+
clickhouseConfig,
|
|
843
897
|
sinkConfig,
|
|
844
898
|
logger
|
|
845
899
|
}?: {
|
|
@@ -849,6 +903,7 @@ declare const buildOlapClientInstance: ({
|
|
|
849
903
|
kafkaClientConfig?: KafkaClientConfig;
|
|
850
904
|
s3ClientConfig?: S3ClientConfig;
|
|
851
905
|
tinybirdConfig?: TinybirdConfig;
|
|
906
|
+
clickhouseConfig?: ClickHouseConfig;
|
|
852
907
|
sinkConfig?: OlapSinkConfig;
|
|
853
908
|
logger?: ILogger;
|
|
854
909
|
}) => Promise<IOlapClient>;
|
|
@@ -861,6 +916,7 @@ declare class OlapClientManager {
|
|
|
861
916
|
kafkaClientConfig,
|
|
862
917
|
s3ClientConfig,
|
|
863
918
|
tinybirdConfig,
|
|
919
|
+
clickhouseConfig,
|
|
864
920
|
sinkConfig,
|
|
865
921
|
logger,
|
|
866
922
|
getOlapClient
|
|
@@ -871,6 +927,7 @@ declare class OlapClientManager {
|
|
|
871
927
|
kafkaClientConfig?: KafkaClientConfig;
|
|
872
928
|
s3ClientConfig?: S3ClientConfig;
|
|
873
929
|
tinybirdConfig?: TinybirdConfig;
|
|
930
|
+
clickhouseConfig?: ClickHouseConfig;
|
|
874
931
|
sinkConfig?: OlapSinkConfig;
|
|
875
932
|
logger?: ILogger;
|
|
876
933
|
getOlapClient?: typeof buildOlapClientInstance;
|
|
@@ -878,4 +935,4 @@ declare class OlapClientManager {
|
|
|
878
935
|
static resetInstance(): void;
|
|
879
936
|
}
|
|
880
937
|
//#endregion
|
|
881
|
-
export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsQuery, type ActionsQueryResult, type AdvancedOptions, type AdvancedSinkConfig, type AggregateQuery, type AggregateResult, AuthType, type AuthType as AuthTypeValue, type DatasetsOptions, type DatasetsSinkConfig, type DefenderContext, type DefenderLog, type DefenderOptions, type DefenderSinkConfig, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type ILog, type IOlapClient, IntervalType, type IntervalType as IntervalTypeValues, LogType, type LogType as LogTypeValues, type LogfireConfig, type LogsOptions, OlapClient, OlapClientManager, type OlapOptions, type OlapSinkConfig, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, type QueryResult, type Source, type SourceQuery, type SourceResult, SourceType, type SourceType as SourceTypeValue, type StepAdvancedLog, type StepInput, type StepLog, type StepResult, type StepsQuery, type StepsQueryResult, StreamType, type StreamType as StreamTypeValue, type TinybirdConfig,
|
|
938
|
+
export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsQuery, type ActionsQueryResult, type AdvancedOptions, type AdvancedSinkConfig, type AggregateQuery, type AggregateResult, AuthType, type AuthType as AuthTypeValue, ClickHouseClient, type ClickHouseConfig, type DatasetsOptions, type DatasetsSinkConfig, type DefenderContext, type DefenderLog, type DefenderOptions, type DefenderSinkConfig, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type ILog, type IOlapClient, type IQueryClient, type IQueryClient as ITinybirdClient, IntervalType, type IntervalType as IntervalTypeValues, LogType, type LogType as LogTypeValues, type LogfireConfig, type LogsOptions, OlapClient, OlapClientManager, type OlapEngine, type OlapOptions, type OlapQueryClientConfig, type OlapQueryClientType, type OlapSinkConfig, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, type QueryOptions, type QueryOptions as TinybirdQueryOptions, type QueryResponse, type QueryResponse as TinybirdResponse, type QueryResult, type Source, type SourceQuery, type SourceResult, SourceType, type SourceType as SourceTypeValue, type StepAdvancedLog, type StepInput, type StepLog, type StepResult, type StepsQuery, type StepsQueryResult, StreamType, type StreamType as StreamTypeValue, type TinybirdConfig, TransportType, type TransportType as TransportTypeValue, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult, createConfigFromEnv, createOlapQueryClient };
|