@transai/connector-runner-api 0.13.0 → 0.16.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/CHANGELOG.md +24 -0
- package/index.cjs +1 -1
- package/index.cjs.map +3 -3
- package/libs/connector-runner-api/src/lib/actions.service.d.ts +1 -2
- package/libs/connector-runner-api/src/lib/connector-runner-api.d.ts +1 -2
- package/libs/connector-runner-api/src/lib/types.d.ts +1 -2
- package/libs/connector-runtime-sdk/src/lib/sdk/offset-store.sdk.interface.d.ts +1 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/processing.sdk.interface.d.ts +17 -0
- package/libs/connector-runtime-sdk/src/lib/types/action.d.ts +17 -3
- package/package.json +1 -1
- package/index.js +0 -2
- package/index.js.map +0 -7
- package/libs/types/src/index.d.ts +0 -7
- package/libs/types/src/lib/cube-query-config.types.d.ts +0 -20
- package/libs/types/src/lib/file-action.types.d.ts +0 -5
- package/libs/types/src/lib/http-status-codes.enum.d.ts +0 -64
- package/libs/types/src/lib/management-api/action-definition.interface.d.ts +0 -12
- package/libs/types/src/lib/management-api/author.interface.d.ts +0 -11
- package/libs/types/src/lib/management-api/chart.interface.d.ts +0 -9
- package/libs/types/src/lib/management-api/connector/connector.interface.d.ts +0 -52
- package/libs/types/src/lib/management-api/connector/connectors.interface.d.ts +0 -38
- package/libs/types/src/lib/management-api/connector-orchestrator-config.interface.d.ts +0 -14
- package/libs/types/src/lib/management-api/cube-dataset.interface.d.ts +0 -94
- package/libs/types/src/lib/management-api/dashboard.interface.d.ts +0 -35
- package/libs/types/src/lib/management-api/dataset/collection.interface.d.ts +0 -10
- package/libs/types/src/lib/management-api/dataset/dataset-record.interface.d.ts +0 -41
- package/libs/types/src/lib/management-api/dataset/dataset.interface.d.ts +0 -118
- package/libs/types/src/lib/management-api/dataset/datasets.interface.d.ts +0 -96
- package/libs/types/src/lib/management-api/dataset/dimension.interface.d.ts +0 -53
- package/libs/types/src/lib/management-api/dataset/dimensions.interface.d.ts +0 -33
- package/libs/types/src/lib/management-api/dataset/filter-group.interface.d.ts +0 -8
- package/libs/types/src/lib/management-api/dataset/filter.interface.d.ts +0 -14
- package/libs/types/src/lib/management-api/dataset/filters.interface.d.ts +0 -7
- package/libs/types/src/lib/management-api/dataset/measure.interface.d.ts +0 -27
- package/libs/types/src/lib/management-api/dataset/measures.interface.d.ts +0 -17
- package/libs/types/src/lib/management-api/dataset/meta.interface.d.ts +0 -9
- package/libs/types/src/lib/management-api/dataset/pre-aggregate.interface.d.ts +0 -41
- package/libs/types/src/lib/management-api/dataset/pre-aggregations.interface.d.ts +0 -26
- package/libs/types/src/lib/management-api/dataset/relation.interface.d.ts +0 -16
- package/libs/types/src/lib/management-api/dataset/relations.interface.d.ts +0 -12
- package/libs/types/src/lib/management-api/dataset/segment.interface.d.ts +0 -17
- package/libs/types/src/lib/management-api/dataset/segments.interface.d.ts +0 -15
- package/libs/types/src/lib/management-api/dataset/switch.interface.d.ts +0 -20
- package/libs/types/src/lib/management-api/dataset/when-item.interface.d.ts +0 -15
- package/libs/types/src/lib/management-api/dataset/when-items.interface.d.ts +0 -14
- package/libs/types/src/lib/management-api/event-origin.interface.d.ts +0 -24
- package/libs/types/src/lib/management-api/index.d.ts +0 -40
- package/libs/types/src/lib/management-api/semantic-trigger/custom-cron-trigger-record.interface.d.ts +0 -6
- package/libs/types/src/lib/management-api/semantic-trigger/index.d.ts +0 -6
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filter.interface.d.ts +0 -12
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filters.interface.d.ts +0 -10
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-record.interface.d.ts +0 -6
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger.interface.d.ts +0 -35
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-triggers.interface.d.ts +0 -22
- package/libs/types/src/lib/management-api/template-implementation-overrides.interface.d.ts +0 -150
- package/libs/types/src/lib/management-api/template-implementation.interface.d.ts +0 -314
- package/libs/types/src/lib/management-api/template.interface.d.ts +0 -190
- package/libs/types/src/lib/management-api/tenant.interface.d.ts +0 -8
- package/libs/types/src/lib/management-api/type-enums.d.ts +0 -91
- package/libs/types/src/lib/management-api/web/generic-filter.dto.d.ts +0 -37
- package/libs/types/src/lib/management-api/web/index.d.ts +0 -2
- package/libs/types/src/lib/management-api/web/paginated-response.interface.d.ts +0 -17
- package/libs/types/src/lib/management-api/workflow/action.interface.d.ts +0 -71
- package/libs/types/src/lib/management-api/workflow/enums/index.d.ts +0 -3
- package/libs/types/src/lib/management-api/workflow/enums/node-types.enum.d.ts +0 -14
- package/libs/types/src/lib/management-api/workflow/enums/trigger-types.enum.d.ts +0 -14
- package/libs/types/src/lib/management-api/workflow/enums/workflow-status.enum.d.ts +0 -16
- package/libs/types/src/lib/management-api/workflow/index.d.ts +0 -7
- package/libs/types/src/lib/management-api/workflow/offset.interface.d.ts +0 -14
- package/libs/types/src/lib/management-api/workflow/parameter-mapper.interface.d.ts +0 -26
- package/libs/types/src/lib/management-api/workflow/workflow-definition.interface.d.ts +0 -66
- package/libs/types/src/lib/management-api/workflow/workflow-drawing.interface.d.ts +0 -96
- package/libs/types/src/lib/management-api/workflow/workflow-run.interface.d.ts +0 -57
- package/libs/types/src/lib/message.types.d.ts +0 -59
- package/libs/types/src/lib/response.types.d.ts +0 -27
- package/libs/types/src/lib/types.d.ts +0 -134
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { PreAggregateInterface } from './pre-aggregate.interface';
|
|
3
|
-
export declare const PreAggregationsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
4
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
5
|
-
rollup: "rollup";
|
|
6
|
-
original_sql: "original_sql";
|
|
7
|
-
rollup_join: "rollup_join";
|
|
8
|
-
}>>;
|
|
9
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
|
-
dimensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
-
segments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
-
timeDimension: z.ZodOptional<z.ZodString>;
|
|
13
|
-
granularity: z.ZodOptional<z.ZodString>;
|
|
14
|
-
partitionGranularity: z.ZodOptional<z.ZodString>;
|
|
15
|
-
rollups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
-
refreshKeySql: z.ZodOptional<z.ZodString>;
|
|
17
|
-
refreshKeyEvery: z.ZodOptional<z.ZodString>;
|
|
18
|
-
refreshKeyIncremental: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
-
refreshKeyUpdateWindow: z.ZodOptional<z.ZodString>;
|
|
20
|
-
buildRangeStartSql: z.ZodOptional<z.ZodString>;
|
|
21
|
-
buildRangeEndSql: z.ZodOptional<z.ZodString>;
|
|
22
|
-
lambda: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>;
|
|
24
|
-
export interface PreAggregationsInterface {
|
|
25
|
-
[key: string]: PreAggregateInterface | false;
|
|
26
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { RelationTypesEnum } from '../type-enums';
|
|
3
|
-
export declare const RelationSchema: z.ZodObject<{
|
|
4
|
-
type: z.ZodEnum<typeof RelationTypesEnum>;
|
|
5
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
6
|
-
targetDataset: z.ZodString;
|
|
7
|
-
targetDimension: z.ZodOptional<z.ZodString>;
|
|
8
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export interface RelationInterface {
|
|
11
|
-
type: RelationTypesEnum;
|
|
12
|
-
dimension?: string;
|
|
13
|
-
targetDataset?: string;
|
|
14
|
-
targetDimension?: string;
|
|
15
|
-
sql?: string;
|
|
16
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { RelationInterface } from './relation.interface';
|
|
3
|
-
export declare const RelationsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
4
|
-
type: z.ZodEnum<typeof import("..").RelationTypesEnum>;
|
|
5
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
6
|
-
targetDataset: z.ZodString;
|
|
7
|
-
targetDimension: z.ZodOptional<z.ZodString>;
|
|
8
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>;
|
|
10
|
-
export interface RelationsInterface {
|
|
11
|
-
[key: string]: RelationInterface | false;
|
|
12
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { FilterInterface } from './filter.interface';
|
|
3
|
-
export declare const SegmentSchema: z.ZodIntersection<z.ZodObject<{
|
|
4
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
5
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
6
|
-
operator: z.ZodOptional<z.ZodEnum<typeof import("..").FilterOperatorsEnum>>;
|
|
7
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
-
name: z.ZodOptional<z.ZodString>;
|
|
10
|
-
description: z.ZodOptional<z.ZodString>;
|
|
11
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
}, z.core.$strip>>;
|
|
13
|
-
export interface SegmentInterface extends FilterInterface {
|
|
14
|
-
name?: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
public?: boolean;
|
|
17
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { SegmentInterface } from './segment.interface';
|
|
3
|
-
export declare const SegmentsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
4
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
5
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
6
|
-
operator: z.ZodOptional<z.ZodEnum<typeof import("..").FilterOperatorsEnum>>;
|
|
7
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
-
name: z.ZodOptional<z.ZodString>;
|
|
10
|
-
description: z.ZodOptional<z.ZodString>;
|
|
11
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
}, z.core.$strip>>, z.ZodLiteral<false>]>>;
|
|
13
|
-
export interface SegmentsInterface {
|
|
14
|
-
[key: string]: SegmentInterface | false;
|
|
15
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { WhenItemsInterface } from './when-items.interface';
|
|
3
|
-
export declare const SwitchSchema: z.ZodObject<{
|
|
4
|
-
when: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
5
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
6
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
7
|
-
operator: z.ZodOptional<z.ZodEnum<typeof import("..").FilterOperatorsEnum>>;
|
|
8
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
9
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
10
|
-
label: z.ZodString;
|
|
11
|
-
description: z.ZodOptional<z.ZodString>;
|
|
12
|
-
}, z.core.$strip>>, z.ZodLiteral<false>]>>;
|
|
13
|
-
else: z.ZodOptional<z.ZodString>;
|
|
14
|
-
segment: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export interface SwitchInterface {
|
|
17
|
-
when: WhenItemsInterface;
|
|
18
|
-
else?: string;
|
|
19
|
-
segment?: boolean;
|
|
20
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { FilterInterface } from './filter.interface';
|
|
3
|
-
export declare const WhenItemSchema: z.ZodIntersection<z.ZodObject<{
|
|
4
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
5
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
6
|
-
operator: z.ZodOptional<z.ZodEnum<typeof import("..").FilterOperatorsEnum>>;
|
|
7
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
-
label: z.ZodString;
|
|
10
|
-
description: z.ZodOptional<z.ZodString>;
|
|
11
|
-
}, z.core.$strip>>;
|
|
12
|
-
export interface WhenItemInterface extends FilterInterface {
|
|
13
|
-
label: string;
|
|
14
|
-
description?: string;
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { WhenItemInterface } from './when-item.interface';
|
|
3
|
-
export declare const WhenItemsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
4
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
5
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
6
|
-
operator: z.ZodOptional<z.ZodEnum<typeof import("..").FilterOperatorsEnum>>;
|
|
7
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
-
label: z.ZodString;
|
|
10
|
-
description: z.ZodOptional<z.ZodString>;
|
|
11
|
-
}, z.core.$strip>>, z.ZodLiteral<false>]>>;
|
|
12
|
-
export interface WhenItemsInterface {
|
|
13
|
-
[key: string]: false | WhenItemInterface;
|
|
14
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { TriggerType } from './workflow';
|
|
2
|
-
export interface EventOriginInterface {
|
|
3
|
-
type: TriggerType;
|
|
4
|
-
id: string;
|
|
5
|
-
}
|
|
6
|
-
export interface CreateEventInterface {
|
|
7
|
-
origin: EventOriginInterface;
|
|
8
|
-
payload: object;
|
|
9
|
-
testRun?: boolean;
|
|
10
|
-
workflowDrawingId?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface XodTriggerPayloadType {
|
|
13
|
-
data?: Record<string, unknown> | Array<unknown>;
|
|
14
|
-
filter?: Record<string, unknown> | Array<unknown>;
|
|
15
|
-
global?: Record<string, unknown> | Array<unknown>;
|
|
16
|
-
}
|
|
17
|
-
export interface EventInterface {
|
|
18
|
-
id: string;
|
|
19
|
-
origin: EventOriginInterface;
|
|
20
|
-
payload: XodTriggerPayloadType;
|
|
21
|
-
tenantIdentifier: string;
|
|
22
|
-
testRun?: boolean;
|
|
23
|
-
workflowDrawingId?: string;
|
|
24
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export * from './type-enums';
|
|
2
|
-
export * from './action-definition.interface';
|
|
3
|
-
export * from './tenant.interface';
|
|
4
|
-
export * from './author.interface';
|
|
5
|
-
export * from './cube-dataset.interface';
|
|
6
|
-
export * from './event-origin.interface';
|
|
7
|
-
export * from './workflow';
|
|
8
|
-
export * from './semantic-trigger';
|
|
9
|
-
export * from './connector-orchestrator-config.interface';
|
|
10
|
-
export * from './chart.interface';
|
|
11
|
-
export * from './dashboard.interface';
|
|
12
|
-
export * from './semantic-trigger';
|
|
13
|
-
export * from './dataset/datasets.interface';
|
|
14
|
-
export * from './dataset/dataset.interface';
|
|
15
|
-
export * from './dataset/dataset-record.interface';
|
|
16
|
-
export * from './dataset/collection.interface';
|
|
17
|
-
export * from './dataset/filters.interface';
|
|
18
|
-
export * from './dataset/filter.interface';
|
|
19
|
-
export * from './connector/connector.interface';
|
|
20
|
-
export * from './connector/connectors.interface';
|
|
21
|
-
export * from './template.interface';
|
|
22
|
-
export * from './template-implementation.interface';
|
|
23
|
-
export * from './template-implementation-overrides.interface';
|
|
24
|
-
export { FilterGroupInterface } from './dataset/filter-group.interface';
|
|
25
|
-
export { DimensionsInterface } from './dataset/dimensions.interface';
|
|
26
|
-
export { DimensionInterface } from './dataset/dimension.interface';
|
|
27
|
-
export { SegmentsInterface } from './dataset/segments.interface';
|
|
28
|
-
export { SegmentInterface } from './dataset/segment.interface';
|
|
29
|
-
export { RelationsInterface } from './dataset/relations.interface';
|
|
30
|
-
export { RelationInterface } from './dataset/relation.interface';
|
|
31
|
-
export { MeasuresInterface } from './dataset/measures.interface';
|
|
32
|
-
export { MeasureInterface } from './dataset/measure.interface';
|
|
33
|
-
export { SwitchInterface } from './dataset/switch.interface';
|
|
34
|
-
export { WhenItemsInterface } from './dataset/when-items.interface';
|
|
35
|
-
export { WhenItemInterface } from './dataset/when-item.interface';
|
|
36
|
-
export { MetaInterface } from './dataset/meta.interface';
|
|
37
|
-
export { PreAggregationsInterface } from './dataset/pre-aggregations.interface';
|
|
38
|
-
export { PreAggregateInterface } from './dataset/pre-aggregate.interface';
|
|
39
|
-
export { TemplateImplementationOverridesInterface } from './template-implementation-overrides.interface';
|
|
40
|
-
export * from './web';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './custom-cron-trigger-record.interface';
|
|
2
|
-
export * from './semantic-trigger-filter.interface';
|
|
3
|
-
export * from './semantic-trigger-filters.interface';
|
|
4
|
-
export * from './semantic-trigger-record.interface';
|
|
5
|
-
export * from './semantic-trigger.interface';
|
|
6
|
-
export * from './semantic-triggers.interface';
|
package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filter.interface.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { FilterValueType, SemanticTriggerFilterOperatorsEnum } from '../type-enums';
|
|
3
|
-
export declare const SemanticTriggerFilterSchema: z.ZodObject<{
|
|
4
|
-
dimension: z.ZodString;
|
|
5
|
-
operator: z.ZodEnum<typeof SemanticTriggerFilterOperatorsEnum>;
|
|
6
|
-
values: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export interface SemanticTriggerFilterInterface {
|
|
9
|
-
dimension: string;
|
|
10
|
-
operator: SemanticTriggerFilterOperatorsEnum;
|
|
11
|
-
values: FilterValueType;
|
|
12
|
-
}
|
package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filters.interface.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { SemanticTriggerFilterInterface } from './semantic-trigger-filter.interface';
|
|
3
|
-
export declare const SemanticTriggerFiltersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
4
|
-
dimension: z.ZodString;
|
|
5
|
-
operator: z.ZodEnum<typeof import("..").SemanticTriggerFilterOperatorsEnum>;
|
|
6
|
-
values: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
7
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>;
|
|
8
|
-
export interface SemanticTriggerFiltersInterface {
|
|
9
|
-
[key: string]: SemanticTriggerFilterInterface | false;
|
|
10
|
-
}
|
package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-record.interface.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SemanticTriggerInterface } from './semantic-trigger.interface';
|
|
2
|
-
export interface SemanticTriggerRecordInterface extends SemanticTriggerInterface {
|
|
3
|
-
id: string;
|
|
4
|
-
tenantId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const SemanticTriggerIdentifier: (trigger: SemanticTriggerRecordInterface) => string;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { SemanticTriggerFiltersInterface } from './semantic-trigger-filters.interface';
|
|
3
|
-
export declare const SemanticTriggerSchema: z.ZodObject<{
|
|
4
|
-
name: z.ZodOptional<z.ZodString>;
|
|
5
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6
|
-
eventType: z.ZodString;
|
|
7
|
-
dataset: z.ZodString;
|
|
8
|
-
dimensions: z.ZodArray<z.ZodString>;
|
|
9
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
11
|
-
dimension: z.ZodString;
|
|
12
|
-
operator: z.ZodEnum<typeof import("..").SemanticTriggerFilterOperatorsEnum>;
|
|
13
|
-
values: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
14
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
15
|
-
cron: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
tz: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
incrementalField: z.ZodOptional<z.ZodString>;
|
|
18
|
-
ungrouped: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
export interface SemanticTriggerInterface {
|
|
21
|
-
name?: string;
|
|
22
|
-
description?: string;
|
|
23
|
-
eventType: string;
|
|
24
|
-
dataset: string;
|
|
25
|
-
dimensions: Array<string>;
|
|
26
|
-
measures?: Array<string>;
|
|
27
|
-
segments?: Array<string>;
|
|
28
|
-
limit?: number;
|
|
29
|
-
filters?: SemanticTriggerFiltersInterface | false;
|
|
30
|
-
cron?: string;
|
|
31
|
-
tz?: string;
|
|
32
|
-
incrementalField?: string;
|
|
33
|
-
keyField?: string;
|
|
34
|
-
ungrouped?: boolean;
|
|
35
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { SemanticTriggerInterface } from './semantic-trigger.interface';
|
|
3
|
-
export declare const SemanticTriggersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
4
|
-
name: z.ZodOptional<z.ZodString>;
|
|
5
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6
|
-
eventType: z.ZodString;
|
|
7
|
-
dataset: z.ZodString;
|
|
8
|
-
dimensions: z.ZodArray<z.ZodString>;
|
|
9
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
11
|
-
dimension: z.ZodString;
|
|
12
|
-
operator: z.ZodEnum<typeof import("..").SemanticTriggerFilterOperatorsEnum>;
|
|
13
|
-
values: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
14
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
15
|
-
cron: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
tz: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
incrementalField: z.ZodOptional<z.ZodString>;
|
|
18
|
-
ungrouped: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
-
}, z.core.$strip>, z.ZodBoolean]>>;
|
|
20
|
-
export interface SemanticTriggersInterface {
|
|
21
|
-
[key: string]: SemanticTriggerInterface | boolean;
|
|
22
|
-
}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { SemanticTriggersInterface, DatasetsInterface, ConnectorsInterface } from './index';
|
|
3
|
-
export declare const TemplateImplementationOverridesSchema: z.ZodObject<{
|
|
4
|
-
datasets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
description: z.ZodString;
|
|
7
|
-
type: z.ZodEnum<typeof import("./type-enums").DatasetTypeEnum>;
|
|
8
|
-
prefix: z.ZodString;
|
|
9
|
-
parent: z.ZodOptional<z.ZodString>;
|
|
10
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
11
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
12
|
-
collection: z.ZodOptional<z.ZodObject<{
|
|
13
|
-
collection: z.ZodString;
|
|
14
|
-
filters: z.ZodOptional<z.ZodType<import("./index").FiltersInterface, unknown, z.core.$ZodTypeInternals<import("./index").FiltersInterface, unknown>>>;
|
|
15
|
-
}, z.core.$strip>>;
|
|
16
|
-
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
17
|
-
name: z.ZodString;
|
|
18
|
-
description: z.ZodString;
|
|
19
|
-
type: z.ZodEnum<typeof import("./type-enums").DimensionTypesEnum>;
|
|
20
|
-
format: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").DimensionFormatsEnum>>;
|
|
21
|
-
explode: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
-
index: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
23
|
-
upperIndex: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
24
|
-
switch: z.ZodOptional<z.ZodObject<{
|
|
25
|
-
when: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
26
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
27
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
28
|
-
operator: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").FilterOperatorsEnum>>;
|
|
29
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
label: z.ZodString;
|
|
32
|
-
description: z.ZodOptional<z.ZodString>;
|
|
33
|
-
}, z.core.$strip>>, z.ZodLiteral<false>]>>;
|
|
34
|
-
else: z.ZodOptional<z.ZodString>;
|
|
35
|
-
segment: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
field: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
38
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
39
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
-
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
-
subQuery: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
43
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
44
|
-
segments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
45
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
46
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
47
|
-
operator: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").FilterOperatorsEnum>>;
|
|
48
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
49
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
-
name: z.ZodOptional<z.ZodString>;
|
|
51
|
-
description: z.ZodOptional<z.ZodString>;
|
|
52
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
-
}, z.core.$strip>>, z.ZodLiteral<false>]>>>;
|
|
54
|
-
relations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
55
|
-
type: z.ZodEnum<typeof import("./type-enums").RelationTypesEnum>;
|
|
56
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
57
|
-
targetDataset: z.ZodString;
|
|
58
|
-
targetDimension: z.ZodOptional<z.ZodString>;
|
|
59
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
60
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
61
|
-
measures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
62
|
-
name: z.ZodString;
|
|
63
|
-
description: z.ZodOptional<z.ZodString>;
|
|
64
|
-
type: z.ZodEnum<typeof import("./type-enums").MeasureTypesEnum>;
|
|
65
|
-
format: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").MeasureFormatsEnum>>;
|
|
66
|
-
index: z.ZodOptional<z.ZodString>;
|
|
67
|
-
upperIndex: z.ZodOptional<z.ZodString>;
|
|
68
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
69
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
70
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
72
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
73
|
-
preAggregations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
74
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
75
|
-
rollup: "rollup";
|
|
76
|
-
original_sql: "original_sql";
|
|
77
|
-
rollup_join: "rollup_join";
|
|
78
|
-
}>>;
|
|
79
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
80
|
-
dimensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
81
|
-
segments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
82
|
-
timeDimension: z.ZodOptional<z.ZodString>;
|
|
83
|
-
granularity: z.ZodOptional<z.ZodString>;
|
|
84
|
-
partitionGranularity: z.ZodOptional<z.ZodString>;
|
|
85
|
-
rollups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
86
|
-
refreshKeySql: z.ZodOptional<z.ZodString>;
|
|
87
|
-
refreshKeyEvery: z.ZodOptional<z.ZodString>;
|
|
88
|
-
refreshKeyIncremental: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
-
refreshKeyUpdateWindow: z.ZodOptional<z.ZodString>;
|
|
90
|
-
buildRangeStartSql: z.ZodOptional<z.ZodString>;
|
|
91
|
-
buildRangeEndSql: z.ZodOptional<z.ZodString>;
|
|
92
|
-
lambda: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
94
|
-
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
95
|
-
semanticTriggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
96
|
-
name: z.ZodOptional<z.ZodString>;
|
|
97
|
-
description: z.ZodOptional<z.ZodString>;
|
|
98
|
-
eventType: z.ZodString;
|
|
99
|
-
dataset: z.ZodString;
|
|
100
|
-
dimensions: z.ZodArray<z.ZodString>;
|
|
101
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
102
|
-
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
103
|
-
dimension: z.ZodString;
|
|
104
|
-
operator: z.ZodEnum<typeof import("./type-enums").SemanticTriggerFilterOperatorsEnum>;
|
|
105
|
-
values: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
106
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
107
|
-
cron: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
-
tz: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
-
incrementalField: z.ZodOptional<z.ZodString>;
|
|
110
|
-
ungrouped: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
-
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
112
|
-
connectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
113
|
-
identifier: z.ZodString;
|
|
114
|
-
connectorType: z.ZodEnum<typeof import("../types").ConfiguredConnectorTypes>;
|
|
115
|
-
name: z.ZodString;
|
|
116
|
-
location: z.ZodString;
|
|
117
|
-
config: z.ZodObject<{}, z.core.$loose>;
|
|
118
|
-
enabled: z.ZodBoolean;
|
|
119
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
120
|
-
identifier: z.ZodString;
|
|
121
|
-
version: z.ZodString;
|
|
122
|
-
name: z.ZodString;
|
|
123
|
-
description: z.ZodOptional<z.ZodString>;
|
|
124
|
-
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
125
|
-
inputParameters: z.ZodArray<z.ZodObject<{
|
|
126
|
-
name: z.ZodString;
|
|
127
|
-
description: z.ZodOptional<z.ZodString>;
|
|
128
|
-
type: z.ZodEnum<{
|
|
129
|
-
string: "string";
|
|
130
|
-
number: "number";
|
|
131
|
-
boolean: "boolean";
|
|
132
|
-
array: "array";
|
|
133
|
-
}>;
|
|
134
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
-
items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
136
|
-
}, z.core.$strip>>;
|
|
137
|
-
outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
138
|
-
mode: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").ConnectorOrigin>>;
|
|
139
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
140
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
141
|
-
}, z.core.$strip>>>;
|
|
142
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
143
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
144
|
-
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
145
|
-
}, z.core.$strip>;
|
|
146
|
-
export interface TemplateImplementationOverridesInterface {
|
|
147
|
-
datasets?: DatasetsInterface;
|
|
148
|
-
semanticTriggers?: SemanticTriggersInterface;
|
|
149
|
-
connectors?: ConnectorsInterface;
|
|
150
|
-
}
|