@stackone/olap 1.50.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 +66 -7
- package/dist/index.d.mts +66 -7
- package/dist/index.mjs +562 -1
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -26,6 +26,8 @@ type DefenderOptions = {
|
|
|
26
26
|
};
|
|
27
27
|
type DatasetsOptions = {
|
|
28
28
|
enabled?: boolean;
|
|
29
|
+
schemasDataset?: string;
|
|
30
|
+
otelDataset?: string;
|
|
29
31
|
includeBackground?: boolean;
|
|
30
32
|
};
|
|
31
33
|
//#endregion
|
|
@@ -152,8 +154,8 @@ interface IOlapClient {
|
|
|
152
154
|
}>, options?: OlapOptions): Promise<void>;
|
|
153
155
|
recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
|
|
154
156
|
recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
|
|
155
|
-
getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
|
|
156
|
-
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>;
|
|
157
159
|
getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
|
|
158
160
|
getLog(organizationId: string, projectSecureId: string, logId: string): Promise<ActionLog | UnifiedLog | undefined>;
|
|
159
161
|
getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
|
|
@@ -330,6 +332,7 @@ declare const LogType: {
|
|
|
330
332
|
readonly Provider: "provider";
|
|
331
333
|
};
|
|
332
334
|
type LogType = (typeof LogType)[keyof typeof LogType];
|
|
335
|
+
type OlapEngine = 'tinybird' | 'clickhouse';
|
|
333
336
|
type Query = {
|
|
334
337
|
organizationId?: string | string[];
|
|
335
338
|
projectSecureId?: string | string[];
|
|
@@ -600,7 +603,14 @@ interface TinybirdConfig {
|
|
|
600
603
|
token: string;
|
|
601
604
|
allowHttp?: boolean;
|
|
602
605
|
}
|
|
603
|
-
interface
|
|
606
|
+
interface ClickHouseConfig {
|
|
607
|
+
url: string;
|
|
608
|
+
username?: string;
|
|
609
|
+
password?: string;
|
|
610
|
+
database: string;
|
|
611
|
+
requestTimeout?: number;
|
|
612
|
+
}
|
|
613
|
+
interface QueryResponse<T> {
|
|
604
614
|
meta: Array<{
|
|
605
615
|
name: string;
|
|
606
616
|
type: string;
|
|
@@ -614,13 +624,27 @@ interface TinybirdResponse<T> {
|
|
|
614
624
|
bytes_read: number;
|
|
615
625
|
};
|
|
616
626
|
}
|
|
617
|
-
interface
|
|
627
|
+
interface QueryOptions<TParams = Record<string, unknown>, TResult = unknown> {
|
|
618
628
|
endpoint: string;
|
|
619
629
|
params?: TParams;
|
|
620
630
|
schema?: {
|
|
621
631
|
parse: (data: unknown) => TResult;
|
|
622
632
|
};
|
|
623
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
|
+
}
|
|
624
648
|
interface ILog {
|
|
625
649
|
logType: LogType;
|
|
626
650
|
eventTime: Date;
|
|
@@ -754,6 +778,35 @@ type ProviderLog = ILog & {
|
|
|
754
778
|
duration?: number;
|
|
755
779
|
};
|
|
756
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
|
|
757
810
|
//#region src/datasets/types.d.ts
|
|
758
811
|
type LogfireConfig = {
|
|
759
812
|
token?: string;
|
|
@@ -786,6 +839,7 @@ declare class OlapClient implements IOlapClient {
|
|
|
786
839
|
kafkaClientConfig,
|
|
787
840
|
s3ClientConfig,
|
|
788
841
|
tinybirdConfig,
|
|
842
|
+
clickhouseConfig,
|
|
789
843
|
sinkConfig,
|
|
790
844
|
logger
|
|
791
845
|
}?: {
|
|
@@ -795,6 +849,7 @@ declare class OlapClient implements IOlapClient {
|
|
|
795
849
|
kafkaClientConfig?: KafkaClientConfig;
|
|
796
850
|
s3ClientConfig?: S3ClientConfig;
|
|
797
851
|
tinybirdConfig?: TinybirdConfig;
|
|
852
|
+
clickhouseConfig?: ClickHouseConfig;
|
|
798
853
|
sinkConfig?: OlapSinkConfig;
|
|
799
854
|
logger?: ILogger;
|
|
800
855
|
}): Promise<OlapClient>;
|
|
@@ -811,8 +866,8 @@ declare class OlapClient implements IOlapClient {
|
|
|
811
866
|
}>, options?: OlapOptions): Promise<void>;
|
|
812
867
|
recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
|
|
813
868
|
recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
|
|
814
|
-
getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
|
|
815
|
-
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>;
|
|
816
871
|
getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
|
|
817
872
|
getLog(organizationId: string, projectSecureId: string, logId: string): Promise<ActionLog | UnifiedLog | undefined>;
|
|
818
873
|
getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
|
|
@@ -839,6 +894,7 @@ declare const buildOlapClientInstance: ({
|
|
|
839
894
|
kafkaClientConfig,
|
|
840
895
|
s3ClientConfig,
|
|
841
896
|
tinybirdConfig,
|
|
897
|
+
clickhouseConfig,
|
|
842
898
|
sinkConfig,
|
|
843
899
|
logger
|
|
844
900
|
}?: {
|
|
@@ -848,6 +904,7 @@ declare const buildOlapClientInstance: ({
|
|
|
848
904
|
kafkaClientConfig?: KafkaClientConfig;
|
|
849
905
|
s3ClientConfig?: S3ClientConfig;
|
|
850
906
|
tinybirdConfig?: TinybirdConfig;
|
|
907
|
+
clickhouseConfig?: ClickHouseConfig;
|
|
851
908
|
sinkConfig?: OlapSinkConfig;
|
|
852
909
|
logger?: ILogger;
|
|
853
910
|
}) => Promise<IOlapClient>;
|
|
@@ -860,6 +917,7 @@ declare class OlapClientManager {
|
|
|
860
917
|
kafkaClientConfig,
|
|
861
918
|
s3ClientConfig,
|
|
862
919
|
tinybirdConfig,
|
|
920
|
+
clickhouseConfig,
|
|
863
921
|
sinkConfig,
|
|
864
922
|
logger,
|
|
865
923
|
getOlapClient
|
|
@@ -870,6 +928,7 @@ declare class OlapClientManager {
|
|
|
870
928
|
kafkaClientConfig?: KafkaClientConfig;
|
|
871
929
|
s3ClientConfig?: S3ClientConfig;
|
|
872
930
|
tinybirdConfig?: TinybirdConfig;
|
|
931
|
+
clickhouseConfig?: ClickHouseConfig;
|
|
873
932
|
sinkConfig?: OlapSinkConfig;
|
|
874
933
|
logger?: ILogger;
|
|
875
934
|
getOlapClient?: typeof buildOlapClientInstance;
|
|
@@ -877,4 +936,4 @@ declare class OlapClientManager {
|
|
|
877
936
|
static resetInstance(): void;
|
|
878
937
|
}
|
|
879
938
|
//#endregion
|
|
880
|
-
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
|
@@ -25,6 +25,8 @@ type DefenderOptions = {
|
|
|
25
25
|
};
|
|
26
26
|
type DatasetsOptions = {
|
|
27
27
|
enabled?: boolean;
|
|
28
|
+
schemasDataset?: string;
|
|
29
|
+
otelDataset?: string;
|
|
28
30
|
includeBackground?: boolean;
|
|
29
31
|
};
|
|
30
32
|
//#endregion
|
|
@@ -151,8 +153,8 @@ interface IOlapClient {
|
|
|
151
153
|
}>, options?: OlapOptions): Promise<void>;
|
|
152
154
|
recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
|
|
153
155
|
recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
|
|
154
|
-
getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
|
|
155
|
-
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>;
|
|
156
158
|
getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
|
|
157
159
|
getLog(organizationId: string, projectSecureId: string, logId: string): Promise<ActionLog | UnifiedLog | undefined>;
|
|
158
160
|
getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
|
|
@@ -329,6 +331,7 @@ declare const LogType: {
|
|
|
329
331
|
readonly Provider: "provider";
|
|
330
332
|
};
|
|
331
333
|
type LogType = (typeof LogType)[keyof typeof LogType];
|
|
334
|
+
type OlapEngine = 'tinybird' | 'clickhouse';
|
|
332
335
|
type Query = {
|
|
333
336
|
organizationId?: string | string[];
|
|
334
337
|
projectSecureId?: string | string[];
|
|
@@ -599,7 +602,14 @@ interface TinybirdConfig {
|
|
|
599
602
|
token: string;
|
|
600
603
|
allowHttp?: boolean;
|
|
601
604
|
}
|
|
602
|
-
interface
|
|
605
|
+
interface ClickHouseConfig {
|
|
606
|
+
url: string;
|
|
607
|
+
username?: string;
|
|
608
|
+
password?: string;
|
|
609
|
+
database: string;
|
|
610
|
+
requestTimeout?: number;
|
|
611
|
+
}
|
|
612
|
+
interface QueryResponse<T> {
|
|
603
613
|
meta: Array<{
|
|
604
614
|
name: string;
|
|
605
615
|
type: string;
|
|
@@ -613,13 +623,27 @@ interface TinybirdResponse<T> {
|
|
|
613
623
|
bytes_read: number;
|
|
614
624
|
};
|
|
615
625
|
}
|
|
616
|
-
interface
|
|
626
|
+
interface QueryOptions<TParams = Record<string, unknown>, TResult = unknown> {
|
|
617
627
|
endpoint: string;
|
|
618
628
|
params?: TParams;
|
|
619
629
|
schema?: {
|
|
620
630
|
parse: (data: unknown) => TResult;
|
|
621
631
|
};
|
|
622
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
|
+
}
|
|
623
647
|
interface ILog {
|
|
624
648
|
logType: LogType;
|
|
625
649
|
eventTime: Date;
|
|
@@ -753,6 +777,35 @@ type ProviderLog = ILog & {
|
|
|
753
777
|
duration?: number;
|
|
754
778
|
};
|
|
755
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
|
|
756
809
|
//#region src/datasets/types.d.ts
|
|
757
810
|
type LogfireConfig = {
|
|
758
811
|
token?: string;
|
|
@@ -785,6 +838,7 @@ declare class OlapClient implements IOlapClient {
|
|
|
785
838
|
kafkaClientConfig,
|
|
786
839
|
s3ClientConfig,
|
|
787
840
|
tinybirdConfig,
|
|
841
|
+
clickhouseConfig,
|
|
788
842
|
sinkConfig,
|
|
789
843
|
logger
|
|
790
844
|
}?: {
|
|
@@ -794,6 +848,7 @@ declare class OlapClient implements IOlapClient {
|
|
|
794
848
|
kafkaClientConfig?: KafkaClientConfig;
|
|
795
849
|
s3ClientConfig?: S3ClientConfig;
|
|
796
850
|
tinybirdConfig?: TinybirdConfig;
|
|
851
|
+
clickhouseConfig?: ClickHouseConfig;
|
|
797
852
|
sinkConfig?: OlapSinkConfig;
|
|
798
853
|
logger?: ILogger;
|
|
799
854
|
}): Promise<OlapClient>;
|
|
@@ -810,8 +865,8 @@ declare class OlapClient implements IOlapClient {
|
|
|
810
865
|
}>, options?: OlapOptions): Promise<void>;
|
|
811
866
|
recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
|
|
812
867
|
recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
|
|
813
|
-
getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
|
|
814
|
-
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>;
|
|
815
870
|
getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
|
|
816
871
|
getLog(organizationId: string, projectSecureId: string, logId: string): Promise<ActionLog | UnifiedLog | undefined>;
|
|
817
872
|
getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
|
|
@@ -838,6 +893,7 @@ declare const buildOlapClientInstance: ({
|
|
|
838
893
|
kafkaClientConfig,
|
|
839
894
|
s3ClientConfig,
|
|
840
895
|
tinybirdConfig,
|
|
896
|
+
clickhouseConfig,
|
|
841
897
|
sinkConfig,
|
|
842
898
|
logger
|
|
843
899
|
}?: {
|
|
@@ -847,6 +903,7 @@ declare const buildOlapClientInstance: ({
|
|
|
847
903
|
kafkaClientConfig?: KafkaClientConfig;
|
|
848
904
|
s3ClientConfig?: S3ClientConfig;
|
|
849
905
|
tinybirdConfig?: TinybirdConfig;
|
|
906
|
+
clickhouseConfig?: ClickHouseConfig;
|
|
850
907
|
sinkConfig?: OlapSinkConfig;
|
|
851
908
|
logger?: ILogger;
|
|
852
909
|
}) => Promise<IOlapClient>;
|
|
@@ -859,6 +916,7 @@ declare class OlapClientManager {
|
|
|
859
916
|
kafkaClientConfig,
|
|
860
917
|
s3ClientConfig,
|
|
861
918
|
tinybirdConfig,
|
|
919
|
+
clickhouseConfig,
|
|
862
920
|
sinkConfig,
|
|
863
921
|
logger,
|
|
864
922
|
getOlapClient
|
|
@@ -869,6 +927,7 @@ declare class OlapClientManager {
|
|
|
869
927
|
kafkaClientConfig?: KafkaClientConfig;
|
|
870
928
|
s3ClientConfig?: S3ClientConfig;
|
|
871
929
|
tinybirdConfig?: TinybirdConfig;
|
|
930
|
+
clickhouseConfig?: ClickHouseConfig;
|
|
872
931
|
sinkConfig?: OlapSinkConfig;
|
|
873
932
|
logger?: ILogger;
|
|
874
933
|
getOlapClient?: typeof buildOlapClientInstance;
|
|
@@ -876,4 +935,4 @@ declare class OlapClientManager {
|
|
|
876
935
|
static resetInstance(): void;
|
|
877
936
|
}
|
|
878
937
|
//#endregion
|
|
879
|
-
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 };
|