@transai/connector-runner-api 0.13.0 → 0.15.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/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,314 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { TemplateInterface } from './template.interface';
|
|
3
|
-
import { TemplateImplementationOverridesInterface } from './template-implementation-overrides.interface';
|
|
4
|
-
export declare const TemplateImplementationSchema: z.ZodObject<{
|
|
5
|
-
templateVersion: z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodString]>;
|
|
6
|
-
name: z.ZodString;
|
|
7
|
-
description: z.ZodString;
|
|
8
|
-
overrides: z.ZodObject<{
|
|
9
|
-
datasets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
10
|
-
name: z.ZodString;
|
|
11
|
-
description: z.ZodString;
|
|
12
|
-
type: z.ZodEnum<typeof import("./type-enums").DatasetTypeEnum>;
|
|
13
|
-
prefix: z.ZodString;
|
|
14
|
-
parent: z.ZodOptional<z.ZodString>;
|
|
15
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
16
|
-
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]>>>;
|
|
17
|
-
collection: z.ZodOptional<z.ZodObject<{
|
|
18
|
-
collection: z.ZodString;
|
|
19
|
-
filters: z.ZodOptional<z.ZodType<import(".").FiltersInterface, unknown, z.core.$ZodTypeInternals<import(".").FiltersInterface, unknown>>>;
|
|
20
|
-
}, z.core.$strip>>;
|
|
21
|
-
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
22
|
-
name: z.ZodString;
|
|
23
|
-
description: z.ZodString;
|
|
24
|
-
type: z.ZodEnum<typeof import("./type-enums").DimensionTypesEnum>;
|
|
25
|
-
format: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").DimensionFormatsEnum>>;
|
|
26
|
-
explode: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
-
index: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
28
|
-
upperIndex: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
29
|
-
switch: z.ZodOptional<z.ZodObject<{
|
|
30
|
-
when: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
31
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
32
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
33
|
-
operator: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").FilterOperatorsEnum>>;
|
|
34
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
label: z.ZodString;
|
|
37
|
-
description: z.ZodOptional<z.ZodString>;
|
|
38
|
-
}, z.core.$strip>>, z.ZodLiteral<false>]>>;
|
|
39
|
-
else: z.ZodOptional<z.ZodString>;
|
|
40
|
-
segment: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
-
}, z.core.$strip>>;
|
|
42
|
-
field: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
43
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
44
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
-
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
-
subQuery: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
-
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]>>>;
|
|
48
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
49
|
-
segments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
50
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
51
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
52
|
-
operator: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").FilterOperatorsEnum>>;
|
|
53
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
name: z.ZodOptional<z.ZodString>;
|
|
56
|
-
description: z.ZodOptional<z.ZodString>;
|
|
57
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
-
}, z.core.$strip>>, z.ZodLiteral<false>]>>>;
|
|
59
|
-
relations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
60
|
-
type: z.ZodEnum<typeof import("./type-enums").RelationTypesEnum>;
|
|
61
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
62
|
-
targetDataset: z.ZodString;
|
|
63
|
-
targetDimension: z.ZodOptional<z.ZodString>;
|
|
64
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
65
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
66
|
-
measures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
67
|
-
name: z.ZodString;
|
|
68
|
-
description: z.ZodOptional<z.ZodString>;
|
|
69
|
-
type: z.ZodEnum<typeof import("./type-enums").MeasureTypesEnum>;
|
|
70
|
-
format: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").MeasureFormatsEnum>>;
|
|
71
|
-
index: z.ZodOptional<z.ZodString>;
|
|
72
|
-
upperIndex: z.ZodOptional<z.ZodString>;
|
|
73
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
74
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
75
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
-
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]>>>;
|
|
77
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
78
|
-
preAggregations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
79
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
80
|
-
rollup: "rollup";
|
|
81
|
-
original_sql: "original_sql";
|
|
82
|
-
rollup_join: "rollup_join";
|
|
83
|
-
}>>;
|
|
84
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
85
|
-
dimensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
86
|
-
segments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
87
|
-
timeDimension: z.ZodOptional<z.ZodString>;
|
|
88
|
-
granularity: z.ZodOptional<z.ZodString>;
|
|
89
|
-
partitionGranularity: z.ZodOptional<z.ZodString>;
|
|
90
|
-
rollups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
91
|
-
refreshKeySql: z.ZodOptional<z.ZodString>;
|
|
92
|
-
refreshKeyEvery: z.ZodOptional<z.ZodString>;
|
|
93
|
-
refreshKeyIncremental: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
-
refreshKeyUpdateWindow: z.ZodOptional<z.ZodString>;
|
|
95
|
-
buildRangeStartSql: z.ZodOptional<z.ZodString>;
|
|
96
|
-
buildRangeEndSql: z.ZodOptional<z.ZodString>;
|
|
97
|
-
lambda: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
99
|
-
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
100
|
-
semanticTriggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
101
|
-
name: z.ZodOptional<z.ZodString>;
|
|
102
|
-
description: z.ZodOptional<z.ZodString>;
|
|
103
|
-
eventType: z.ZodString;
|
|
104
|
-
dataset: z.ZodString;
|
|
105
|
-
dimensions: z.ZodArray<z.ZodString>;
|
|
106
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
107
|
-
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
108
|
-
dimension: z.ZodString;
|
|
109
|
-
operator: z.ZodEnum<typeof import("./type-enums").SemanticTriggerFilterOperatorsEnum>;
|
|
110
|
-
values: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
111
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
112
|
-
cron: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
-
tz: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
-
incrementalField: z.ZodOptional<z.ZodString>;
|
|
115
|
-
ungrouped: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
-
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
117
|
-
connectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
118
|
-
identifier: z.ZodString;
|
|
119
|
-
connectorType: z.ZodEnum<typeof import("../types").ConfiguredConnectorTypes>;
|
|
120
|
-
name: z.ZodString;
|
|
121
|
-
location: z.ZodString;
|
|
122
|
-
config: z.ZodObject<{}, z.core.$loose>;
|
|
123
|
-
enabled: z.ZodBoolean;
|
|
124
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
125
|
-
identifier: z.ZodString;
|
|
126
|
-
version: z.ZodString;
|
|
127
|
-
name: z.ZodString;
|
|
128
|
-
description: z.ZodOptional<z.ZodString>;
|
|
129
|
-
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
130
|
-
inputParameters: z.ZodArray<z.ZodObject<{
|
|
131
|
-
name: z.ZodString;
|
|
132
|
-
description: z.ZodOptional<z.ZodString>;
|
|
133
|
-
type: z.ZodEnum<{
|
|
134
|
-
string: "string";
|
|
135
|
-
number: "number";
|
|
136
|
-
boolean: "boolean";
|
|
137
|
-
array: "array";
|
|
138
|
-
}>;
|
|
139
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
-
items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
141
|
-
}, z.core.$strip>>;
|
|
142
|
-
outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
143
|
-
mode: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").ConnectorOrigin>>;
|
|
144
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
145
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
146
|
-
}, z.core.$strip>>>;
|
|
147
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
148
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
149
|
-
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
150
|
-
}, z.core.$strip>;
|
|
151
|
-
}, z.core.$strip>;
|
|
152
|
-
export declare const TemplateImplementationCreateSchema: z.ZodObject<{
|
|
153
|
-
templateVersion: z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodString]>;
|
|
154
|
-
name: z.ZodString;
|
|
155
|
-
description: z.ZodString;
|
|
156
|
-
overrides: z.ZodObject<{
|
|
157
|
-
datasets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
158
|
-
name: z.ZodString;
|
|
159
|
-
description: z.ZodString;
|
|
160
|
-
type: z.ZodEnum<typeof import("./type-enums").DatasetTypeEnum>;
|
|
161
|
-
prefix: z.ZodString;
|
|
162
|
-
parent: z.ZodOptional<z.ZodString>;
|
|
163
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
164
|
-
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]>>>;
|
|
165
|
-
collection: z.ZodOptional<z.ZodObject<{
|
|
166
|
-
collection: z.ZodString;
|
|
167
|
-
filters: z.ZodOptional<z.ZodType<import(".").FiltersInterface, unknown, z.core.$ZodTypeInternals<import(".").FiltersInterface, unknown>>>;
|
|
168
|
-
}, z.core.$strip>>;
|
|
169
|
-
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
170
|
-
name: z.ZodString;
|
|
171
|
-
description: z.ZodString;
|
|
172
|
-
type: z.ZodEnum<typeof import("./type-enums").DimensionTypesEnum>;
|
|
173
|
-
format: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").DimensionFormatsEnum>>;
|
|
174
|
-
explode: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
-
index: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
176
|
-
upperIndex: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
177
|
-
switch: z.ZodOptional<z.ZodObject<{
|
|
178
|
-
when: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
179
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
180
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
181
|
-
operator: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").FilterOperatorsEnum>>;
|
|
182
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
183
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
184
|
-
label: z.ZodString;
|
|
185
|
-
description: z.ZodOptional<z.ZodString>;
|
|
186
|
-
}, z.core.$strip>>, z.ZodLiteral<false>]>>;
|
|
187
|
-
else: z.ZodOptional<z.ZodString>;
|
|
188
|
-
segment: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
-
}, z.core.$strip>>;
|
|
190
|
-
field: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
191
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
192
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
-
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
194
|
-
subQuery: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
-
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]>>>;
|
|
196
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
197
|
-
segments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
198
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
199
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
200
|
-
operator: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").FilterOperatorsEnum>>;
|
|
201
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
202
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
203
|
-
name: z.ZodOptional<z.ZodString>;
|
|
204
|
-
description: z.ZodOptional<z.ZodString>;
|
|
205
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
-
}, z.core.$strip>>, z.ZodLiteral<false>]>>>;
|
|
207
|
-
relations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
208
|
-
type: z.ZodEnum<typeof import("./type-enums").RelationTypesEnum>;
|
|
209
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
210
|
-
targetDataset: z.ZodString;
|
|
211
|
-
targetDimension: z.ZodOptional<z.ZodString>;
|
|
212
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
213
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
214
|
-
measures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
215
|
-
name: z.ZodString;
|
|
216
|
-
description: z.ZodOptional<z.ZodString>;
|
|
217
|
-
type: z.ZodEnum<typeof import("./type-enums").MeasureTypesEnum>;
|
|
218
|
-
format: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").MeasureFormatsEnum>>;
|
|
219
|
-
index: z.ZodOptional<z.ZodString>;
|
|
220
|
-
upperIndex: z.ZodOptional<z.ZodString>;
|
|
221
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
222
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
223
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
-
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]>>>;
|
|
225
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
226
|
-
preAggregations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
227
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
228
|
-
rollup: "rollup";
|
|
229
|
-
original_sql: "original_sql";
|
|
230
|
-
rollup_join: "rollup_join";
|
|
231
|
-
}>>;
|
|
232
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
233
|
-
dimensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
234
|
-
segments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
235
|
-
timeDimension: z.ZodOptional<z.ZodString>;
|
|
236
|
-
granularity: z.ZodOptional<z.ZodString>;
|
|
237
|
-
partitionGranularity: z.ZodOptional<z.ZodString>;
|
|
238
|
-
rollups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
239
|
-
refreshKeySql: z.ZodOptional<z.ZodString>;
|
|
240
|
-
refreshKeyEvery: z.ZodOptional<z.ZodString>;
|
|
241
|
-
refreshKeyIncremental: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
-
refreshKeyUpdateWindow: z.ZodOptional<z.ZodString>;
|
|
243
|
-
buildRangeStartSql: z.ZodOptional<z.ZodString>;
|
|
244
|
-
buildRangeEndSql: z.ZodOptional<z.ZodString>;
|
|
245
|
-
lambda: z.ZodOptional<z.ZodBoolean>;
|
|
246
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
247
|
-
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
248
|
-
semanticTriggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
249
|
-
name: z.ZodOptional<z.ZodString>;
|
|
250
|
-
description: z.ZodOptional<z.ZodString>;
|
|
251
|
-
eventType: z.ZodString;
|
|
252
|
-
dataset: z.ZodString;
|
|
253
|
-
dimensions: z.ZodArray<z.ZodString>;
|
|
254
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
255
|
-
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
256
|
-
dimension: z.ZodString;
|
|
257
|
-
operator: z.ZodEnum<typeof import("./type-enums").SemanticTriggerFilterOperatorsEnum>;
|
|
258
|
-
values: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
259
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
260
|
-
cron: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
261
|
-
tz: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
|
-
incrementalField: z.ZodOptional<z.ZodString>;
|
|
263
|
-
ungrouped: z.ZodOptional<z.ZodBoolean>;
|
|
264
|
-
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
265
|
-
connectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
266
|
-
identifier: z.ZodString;
|
|
267
|
-
connectorType: z.ZodEnum<typeof import("../types").ConfiguredConnectorTypes>;
|
|
268
|
-
name: z.ZodString;
|
|
269
|
-
location: z.ZodString;
|
|
270
|
-
config: z.ZodObject<{}, z.core.$loose>;
|
|
271
|
-
enabled: z.ZodBoolean;
|
|
272
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
273
|
-
identifier: z.ZodString;
|
|
274
|
-
version: z.ZodString;
|
|
275
|
-
name: z.ZodString;
|
|
276
|
-
description: z.ZodOptional<z.ZodString>;
|
|
277
|
-
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
278
|
-
inputParameters: z.ZodArray<z.ZodObject<{
|
|
279
|
-
name: z.ZodString;
|
|
280
|
-
description: z.ZodOptional<z.ZodString>;
|
|
281
|
-
type: z.ZodEnum<{
|
|
282
|
-
string: "string";
|
|
283
|
-
number: "number";
|
|
284
|
-
boolean: "boolean";
|
|
285
|
-
array: "array";
|
|
286
|
-
}>;
|
|
287
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
288
|
-
items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
289
|
-
}, z.core.$strip>>;
|
|
290
|
-
outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
291
|
-
mode: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").ConnectorOrigin>>;
|
|
292
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
293
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
294
|
-
}, z.core.$strip>>>;
|
|
295
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
296
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
297
|
-
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
298
|
-
}, z.core.$strip>;
|
|
299
|
-
templateId: z.ZodString;
|
|
300
|
-
tenantId: z.ZodString;
|
|
301
|
-
}, z.core.$strip>;
|
|
302
|
-
export interface TemplateImplementationInterface {
|
|
303
|
-
id: string;
|
|
304
|
-
templateId: string;
|
|
305
|
-
templateIdentifier: string;
|
|
306
|
-
template: TemplateInterface;
|
|
307
|
-
templateVersion: string | 'latest';
|
|
308
|
-
tenantId: string;
|
|
309
|
-
name: string;
|
|
310
|
-
description: string;
|
|
311
|
-
overrides: TemplateImplementationOverridesInterface;
|
|
312
|
-
createdAt: Date;
|
|
313
|
-
updatedAt: Date;
|
|
314
|
-
}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { AuthorInterface } from './author.interface';
|
|
3
|
-
import { DatasetsInterface, SemanticTriggersInterface, ConnectorsInterface } from './index';
|
|
4
|
-
export declare const TemplateSchema: z.ZodObject<{
|
|
5
|
-
identifier: z.ZodString;
|
|
6
|
-
version: z.ZodString;
|
|
7
|
-
name: z.ZodString;
|
|
8
|
-
prefix: z.ZodString;
|
|
9
|
-
description: z.ZodString;
|
|
10
|
-
logo: z.ZodOptional<z.ZodString>;
|
|
11
|
-
author: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
12
|
-
name: z.ZodString;
|
|
13
|
-
email: z.ZodOptional<z.ZodEmail>;
|
|
14
|
-
website: z.ZodOptional<z.ZodURL>;
|
|
15
|
-
}, z.core.$strip>]>>;
|
|
16
|
-
tenantIdentifier: z.ZodOptional<z.ZodString>;
|
|
17
|
-
datasets: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
18
|
-
name: z.ZodString;
|
|
19
|
-
description: z.ZodString;
|
|
20
|
-
type: z.ZodEnum<typeof import("./type-enums").DatasetTypeEnum>;
|
|
21
|
-
prefix: z.ZodString;
|
|
22
|
-
parent: z.ZodOptional<z.ZodString>;
|
|
23
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
24
|
-
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]>>>;
|
|
25
|
-
collection: z.ZodOptional<z.ZodObject<{
|
|
26
|
-
collection: z.ZodString;
|
|
27
|
-
filters: z.ZodOptional<z.ZodType<import("./index").FiltersInterface, unknown, z.core.$ZodTypeInternals<import("./index").FiltersInterface, unknown>>>;
|
|
28
|
-
}, z.core.$strip>>;
|
|
29
|
-
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
30
|
-
name: z.ZodString;
|
|
31
|
-
description: z.ZodString;
|
|
32
|
-
type: z.ZodEnum<typeof import("./type-enums").DimensionTypesEnum>;
|
|
33
|
-
format: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").DimensionFormatsEnum>>;
|
|
34
|
-
explode: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
-
index: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
36
|
-
upperIndex: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
37
|
-
switch: z.ZodOptional<z.ZodObject<{
|
|
38
|
-
when: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
39
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
40
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
41
|
-
operator: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").FilterOperatorsEnum>>;
|
|
42
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
label: z.ZodString;
|
|
45
|
-
description: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, z.core.$strip>>, z.ZodLiteral<false>]>>;
|
|
47
|
-
else: z.ZodOptional<z.ZodString>;
|
|
48
|
-
segment: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
|
-
field: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
51
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
52
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
-
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
-
subQuery: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
-
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]>>>;
|
|
56
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
57
|
-
segments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
58
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
59
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
60
|
-
operator: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").FilterOperatorsEnum>>;
|
|
61
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
name: z.ZodOptional<z.ZodString>;
|
|
64
|
-
description: z.ZodOptional<z.ZodString>;
|
|
65
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
-
}, z.core.$strip>>, z.ZodLiteral<false>]>>>;
|
|
67
|
-
relations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
68
|
-
type: z.ZodEnum<typeof import("./type-enums").RelationTypesEnum>;
|
|
69
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
70
|
-
targetDataset: z.ZodString;
|
|
71
|
-
targetDimension: z.ZodOptional<z.ZodString>;
|
|
72
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
73
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
74
|
-
measures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
75
|
-
name: z.ZodString;
|
|
76
|
-
description: z.ZodOptional<z.ZodString>;
|
|
77
|
-
type: z.ZodEnum<typeof import("./type-enums").MeasureTypesEnum>;
|
|
78
|
-
format: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").MeasureFormatsEnum>>;
|
|
79
|
-
index: z.ZodOptional<z.ZodString>;
|
|
80
|
-
upperIndex: z.ZodOptional<z.ZodString>;
|
|
81
|
-
sql: z.ZodOptional<z.ZodString>;
|
|
82
|
-
dimension: z.ZodOptional<z.ZodString>;
|
|
83
|
-
public: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
-
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]>>>;
|
|
85
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
86
|
-
preAggregations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
87
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
88
|
-
rollup: "rollup";
|
|
89
|
-
original_sql: "original_sql";
|
|
90
|
-
rollup_join: "rollup_join";
|
|
91
|
-
}>>;
|
|
92
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
93
|
-
dimensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
94
|
-
segments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
|
-
timeDimension: z.ZodOptional<z.ZodString>;
|
|
96
|
-
granularity: z.ZodOptional<z.ZodString>;
|
|
97
|
-
partitionGranularity: z.ZodOptional<z.ZodString>;
|
|
98
|
-
rollups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
99
|
-
refreshKeySql: z.ZodOptional<z.ZodString>;
|
|
100
|
-
refreshKeyEvery: z.ZodOptional<z.ZodString>;
|
|
101
|
-
refreshKeyIncremental: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
-
refreshKeyUpdateWindow: z.ZodOptional<z.ZodString>;
|
|
103
|
-
buildRangeStartSql: z.ZodOptional<z.ZodString>;
|
|
104
|
-
buildRangeEndSql: z.ZodOptional<z.ZodString>;
|
|
105
|
-
lambda: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
107
|
-
}, z.core.$strip>, z.ZodBoolean]>>;
|
|
108
|
-
semanticTriggers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
109
|
-
name: z.ZodOptional<z.ZodString>;
|
|
110
|
-
description: z.ZodOptional<z.ZodString>;
|
|
111
|
-
eventType: z.ZodString;
|
|
112
|
-
dataset: z.ZodString;
|
|
113
|
-
dimensions: z.ZodArray<z.ZodString>;
|
|
114
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
115
|
-
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
116
|
-
dimension: z.ZodString;
|
|
117
|
-
operator: z.ZodEnum<typeof import("./type-enums").SemanticTriggerFilterOperatorsEnum>;
|
|
118
|
-
values: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
119
|
-
}, z.core.$strip>, z.ZodLiteral<false>]>>>;
|
|
120
|
-
cron: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
-
tz: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
-
incrementalField: z.ZodOptional<z.ZodString>;
|
|
123
|
-
ungrouped: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
-
}, z.core.$strip>, z.ZodBoolean]>>;
|
|
125
|
-
connectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
126
|
-
identifier: z.ZodString;
|
|
127
|
-
connectorType: z.ZodEnum<typeof import("../types").ConfiguredConnectorTypes>;
|
|
128
|
-
name: z.ZodString;
|
|
129
|
-
location: z.ZodString;
|
|
130
|
-
config: z.ZodObject<{}, z.core.$loose>;
|
|
131
|
-
enabled: z.ZodBoolean;
|
|
132
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
133
|
-
identifier: z.ZodString;
|
|
134
|
-
version: z.ZodString;
|
|
135
|
-
name: z.ZodString;
|
|
136
|
-
description: z.ZodOptional<z.ZodString>;
|
|
137
|
-
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
138
|
-
inputParameters: z.ZodArray<z.ZodObject<{
|
|
139
|
-
name: z.ZodString;
|
|
140
|
-
description: z.ZodOptional<z.ZodString>;
|
|
141
|
-
type: z.ZodEnum<{
|
|
142
|
-
string: "string";
|
|
143
|
-
number: "number";
|
|
144
|
-
boolean: "boolean";
|
|
145
|
-
array: "array";
|
|
146
|
-
}>;
|
|
147
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
-
items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
149
|
-
}, z.core.$strip>>;
|
|
150
|
-
outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
151
|
-
mode: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").ConnectorOrigin>>;
|
|
152
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
153
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
154
|
-
}, z.core.$strip>>>;
|
|
155
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
156
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
157
|
-
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
158
|
-
}, z.core.$strip>;
|
|
159
|
-
export interface TemplateInterface {
|
|
160
|
-
id: string;
|
|
161
|
-
identifier: string;
|
|
162
|
-
version: string;
|
|
163
|
-
name: string;
|
|
164
|
-
prefix: string;
|
|
165
|
-
description: string;
|
|
166
|
-
logo?: string;
|
|
167
|
-
author?: string | AuthorInterface;
|
|
168
|
-
tenantIdentifier?: string;
|
|
169
|
-
datasets: DatasetsInterface;
|
|
170
|
-
semanticTriggers: SemanticTriggersInterface;
|
|
171
|
-
connectors?: ConnectorsInterface;
|
|
172
|
-
}
|
|
173
|
-
export interface PostTemplateInterface extends Omit<TemplateInterface, 'id'> {
|
|
174
|
-
identifier: string;
|
|
175
|
-
version: string;
|
|
176
|
-
name: string;
|
|
177
|
-
prefix: string;
|
|
178
|
-
description: string;
|
|
179
|
-
datasets: DatasetsInterface;
|
|
180
|
-
semanticTriggers: SemanticTriggersInterface;
|
|
181
|
-
connectors?: ConnectorsInterface;
|
|
182
|
-
}
|
|
183
|
-
export interface TemplateVersionInterface {
|
|
184
|
-
version: string;
|
|
185
|
-
createdAt: Date;
|
|
186
|
-
count: number;
|
|
187
|
-
}
|
|
188
|
-
export interface TemplateDetailInterface extends TemplateInterface {
|
|
189
|
-
versions: Array<TemplateVersionInterface>;
|
|
190
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare enum DatasetTypeEnum {
|
|
3
|
-
documents = "documents",
|
|
4
|
-
metrics = "metrics",
|
|
5
|
-
events = "events"
|
|
6
|
-
}
|
|
7
|
-
export declare enum DatasetStatusEnum {
|
|
8
|
-
disabled = "disabled",
|
|
9
|
-
enabled = "enabled",
|
|
10
|
-
overridden = "overridden",
|
|
11
|
-
manual = "manual"
|
|
12
|
-
}
|
|
13
|
-
export declare enum FilterOperatorsEnum {
|
|
14
|
-
equals = "=",
|
|
15
|
-
notEquals = "<>",
|
|
16
|
-
greaterThan = ">",
|
|
17
|
-
greaterThanOrEqual = ">=",
|
|
18
|
-
lessThan = "<",
|
|
19
|
-
lessThanOrEqual = "<=",
|
|
20
|
-
in = "IN"
|
|
21
|
-
}
|
|
22
|
-
export declare const FilterValueType: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
23
|
-
export type FilterValueType = z.infer<typeof FilterValueType>;
|
|
24
|
-
export declare enum FilterGroupTypesEnum {
|
|
25
|
-
and = "AND",
|
|
26
|
-
or = "OR"
|
|
27
|
-
}
|
|
28
|
-
export declare const FieldValueType: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
29
|
-
export type FieldValueType = z.infer<typeof FieldValueType>;
|
|
30
|
-
export declare enum DimensionTypesEnum {
|
|
31
|
-
string = "string",
|
|
32
|
-
number = "number",
|
|
33
|
-
boolean = "boolean",
|
|
34
|
-
time = "time"
|
|
35
|
-
}
|
|
36
|
-
export declare enum DimensionFormatsEnum {
|
|
37
|
-
id = "image_url",
|
|
38
|
-
imageUrl = "image_url",
|
|
39
|
-
link = "link",
|
|
40
|
-
percent = "percent",
|
|
41
|
-
currency = "currency"
|
|
42
|
-
}
|
|
43
|
-
export declare enum RelationTypesEnum {
|
|
44
|
-
oneToOne = "one_to_one",
|
|
45
|
-
oneToMany = "one_to_many",
|
|
46
|
-
manyToOne = "many_to_one",
|
|
47
|
-
manyToMany = "many_to_many"
|
|
48
|
-
}
|
|
49
|
-
export declare enum MeasureTypesEnum {
|
|
50
|
-
count = "count",
|
|
51
|
-
countDistinct = "count_distinct",
|
|
52
|
-
countDistinctApprox = "count_distinct_approx",
|
|
53
|
-
sum = "sum",
|
|
54
|
-
avg = "avg",
|
|
55
|
-
min = "min",
|
|
56
|
-
max = "max",
|
|
57
|
-
string = "string",
|
|
58
|
-
time = "time",
|
|
59
|
-
boolean = "boolean",
|
|
60
|
-
number = "number"
|
|
61
|
-
}
|
|
62
|
-
export declare enum MeasureFormatsEnum {
|
|
63
|
-
percent = "percent",
|
|
64
|
-
currency = "currency"
|
|
65
|
-
}
|
|
66
|
-
export declare enum SemanticTriggerFilterOperatorsEnum {
|
|
67
|
-
equals = "equals",
|
|
68
|
-
notEquals = "notEquals",
|
|
69
|
-
contains = "contains",
|
|
70
|
-
notContains = "notContains",
|
|
71
|
-
startsWith = "startsWith",
|
|
72
|
-
notStartsWith = "notStartsWith",
|
|
73
|
-
endsWith = "endsWith",
|
|
74
|
-
notEndsWith = "notEndsWith",
|
|
75
|
-
gt = "gt",
|
|
76
|
-
gte = "gte",
|
|
77
|
-
lt = "lt",
|
|
78
|
-
lte = "lte",
|
|
79
|
-
set = "set",
|
|
80
|
-
notSet = "notSet",
|
|
81
|
-
inDateRange = "inDateRange",
|
|
82
|
-
notInDateRange = "notInDateRange",
|
|
83
|
-
beforeDate = "beforeDate",
|
|
84
|
-
beforeOrOnDate = "beforeOrOnDate",
|
|
85
|
-
afterDate = "afterDate",
|
|
86
|
-
afterOrOnDate = "afterOrOnDate"
|
|
87
|
-
}
|
|
88
|
-
export declare enum ConnectorOrigin {
|
|
89
|
-
from_template = "from_template",
|
|
90
|
-
manual = "manual"
|
|
91
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { PaginationInterface } from './index';
|
|
2
|
-
export declare const FilterOperator: {
|
|
3
|
-
readonly EQ: "eq";
|
|
4
|
-
readonly NEQ: "neq";
|
|
5
|
-
readonly CONTAINS: "ct";
|
|
6
|
-
readonly NOT_CONTAINS: "nct";
|
|
7
|
-
readonly STARTSWITH: "sw";
|
|
8
|
-
readonly ENDSWITH: "ew";
|
|
9
|
-
readonly NOT_STARTSWITH: "nsw";
|
|
10
|
-
readonly NOT_ENDSWITH: "new";
|
|
11
|
-
readonly BETWEEN: "bt";
|
|
12
|
-
readonly LT: "lt";
|
|
13
|
-
readonly LTE: "lte";
|
|
14
|
-
readonly GT: "gt";
|
|
15
|
-
readonly GTE: "gte";
|
|
16
|
-
readonly IN: "in";
|
|
17
|
-
readonly NOT_IN: "nin";
|
|
18
|
-
readonly LIKE: "like";
|
|
19
|
-
};
|
|
20
|
-
export type FilterOperator = (typeof FilterOperator)[keyof typeof FilterOperator];
|
|
21
|
-
export type FilterValue = {
|
|
22
|
-
[operator in FilterOperator]?: string | number | boolean | string[];
|
|
23
|
-
};
|
|
24
|
-
export declare const SortDirection: {
|
|
25
|
-
readonly ASC: "asc";
|
|
26
|
-
readonly DESC: "desc";
|
|
27
|
-
};
|
|
28
|
-
export type SortDirection = (typeof SortDirection)[keyof typeof SortDirection];
|
|
29
|
-
export type SortOrder<T> = {
|
|
30
|
-
[field in keyof T]?: (typeof SortDirection)[keyof typeof SortDirection];
|
|
31
|
-
};
|
|
32
|
-
export interface GenericFilterDto<T> extends PaginationInterface {
|
|
33
|
-
filter?: {
|
|
34
|
-
[field in keyof T]?: FilterValue;
|
|
35
|
-
};
|
|
36
|
-
sort?: SortOrder<T>;
|
|
37
|
-
}
|