@transai/connector-runner-mkg 0.4.0 → 0.4.1
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 +27 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/http-client.interface.d.ts +8 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/sender.sdk.interface.d.ts +2 -2
- package/libs/types/src/lib/management-api/connector/connector.interface.d.ts +14 -102
- package/libs/types/src/lib/management-api/connector/connectors.interface.d.ts +14 -102
- package/libs/types/src/lib/management-api/dataset/collection.interface.d.ts +2 -8
- package/libs/types/src/lib/management-api/dataset/dataset.interface.d.ts +43 -659
- package/libs/types/src/lib/management-api/dataset/datasets.interface.d.ts +43 -659
- package/libs/types/src/lib/management-api/dataset/dimension.interface.d.ts +13 -167
- package/libs/types/src/lib/management-api/dataset/dimensions.interface.d.ts +13 -167
- package/libs/types/src/lib/management-api/dataset/filter.interface.d.ts +4 -24
- package/libs/types/src/lib/management-api/dataset/measure.interface.d.ts +5 -45
- package/libs/types/src/lib/management-api/dataset/measures.interface.d.ts +5 -45
- package/libs/types/src/lib/management-api/dataset/meta.interface.d.ts +1 -1
- package/libs/types/src/lib/management-api/dataset/pre-aggregate.interface.d.ts +10 -38
- package/libs/types/src/lib/management-api/dataset/pre-aggregations.interface.d.ts +11 -39
- package/libs/types/src/lib/management-api/dataset/relation.interface.d.ts +3 -27
- package/libs/types/src/lib/management-api/dataset/relations.interface.d.ts +3 -27
- package/libs/types/src/lib/management-api/dataset/segment.interface.d.ts +5 -33
- package/libs/types/src/lib/management-api/dataset/segments.interface.d.ts +5 -33
- package/libs/types/src/lib/management-api/dataset/switch.interface.d.ts +6 -56
- package/libs/types/src/lib/management-api/dataset/when-item.interface.d.ts +5 -31
- package/libs/types/src/lib/management-api/dataset/when-items.interface.d.ts +5 -31
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filter.interface.d.ts +3 -11
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filters.interface.d.ts +4 -12
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger.interface.d.ts +6 -46
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-triggers.interface.d.ts +7 -47
- package/libs/types/src/lib/management-api/template-implementation-overrides.interface.d.ts +65 -1069
- package/libs/types/src/lib/management-api/template-implementation.interface.d.ts +132 -2685
- package/libs/types/src/lib/management-api/template.interface.d.ts +65 -1079
- package/libs/types/src/lib/management-api/type-enums.d.ts +2 -2
- package/libs/types/src/lib/management-api/workflow/action.interface.d.ts +13 -48
- package/libs/types/src/lib/types.d.ts +4 -1
- package/package.json +1 -1
|
@@ -2,187 +2,33 @@ import { z } from 'zod';
|
|
|
2
2
|
import { DimensionFormatsEnum, DimensionTypesEnum } from '../type-enums';
|
|
3
3
|
import { SwitchInterface } from './switch.interface';
|
|
4
4
|
import { MetaInterface } from './meta.interface';
|
|
5
|
-
export declare const DimensionSchema: z.
|
|
5
|
+
export declare const DimensionSchema: z.ZodObject<{
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
description: z.ZodString;
|
|
8
|
-
type: z.
|
|
9
|
-
format: z.ZodOptional<z.
|
|
8
|
+
type: z.ZodEnum<typeof DimensionTypesEnum>;
|
|
9
|
+
format: z.ZodOptional<z.ZodEnum<typeof DimensionFormatsEnum>>;
|
|
10
10
|
explode: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
-
index: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
11
|
+
index: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
12
12
|
switch: z.ZodOptional<z.ZodObject<{
|
|
13
|
-
when: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodIntersection<z.
|
|
13
|
+
when: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
14
14
|
sql: z.ZodOptional<z.ZodString>;
|
|
15
15
|
dimension: z.ZodOptional<z.ZodString>;
|
|
16
|
-
operator: z.ZodOptional<z.
|
|
17
|
-
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]
|
|
18
|
-
},
|
|
19
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
20
|
-
dimension?: string | undefined;
|
|
21
|
-
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
22
|
-
sql?: string | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
25
|
-
dimension?: string | undefined;
|
|
26
|
-
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
27
|
-
sql?: string | undefined;
|
|
28
|
-
}>, {
|
|
29
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
30
|
-
dimension?: string | undefined;
|
|
31
|
-
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
32
|
-
sql?: string | undefined;
|
|
33
|
-
}, {
|
|
34
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
35
|
-
dimension?: string | undefined;
|
|
36
|
-
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
37
|
-
sql?: string | undefined;
|
|
38
|
-
}>, z.ZodObject<{
|
|
16
|
+
operator: z.ZodOptional<z.ZodEnum<typeof import("../type-enums").FilterOperatorsEnum>>;
|
|
17
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
19
|
label: z.ZodString;
|
|
40
20
|
description: z.ZodOptional<z.ZodString>;
|
|
41
|
-
},
|
|
42
|
-
label: string;
|
|
43
|
-
description?: string | undefined;
|
|
44
|
-
}, {
|
|
45
|
-
label: string;
|
|
46
|
-
description?: string | undefined;
|
|
47
|
-
}>>, z.ZodLiteral<false>]>>;
|
|
21
|
+
}, z.core.$strip>>, z.ZodLiteral<false>]>>;
|
|
48
22
|
else: z.ZodOptional<z.ZodString>;
|
|
49
23
|
segment: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
53
|
-
dimension?: string | undefined;
|
|
54
|
-
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
55
|
-
sql?: string | undefined;
|
|
56
|
-
} & {
|
|
57
|
-
label: string;
|
|
58
|
-
description?: string | undefined;
|
|
59
|
-
})>;
|
|
60
|
-
else?: string | undefined;
|
|
61
|
-
segment?: boolean | undefined;
|
|
62
|
-
}, {
|
|
63
|
-
when: Record<string, false | ({
|
|
64
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
65
|
-
dimension?: string | undefined;
|
|
66
|
-
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
67
|
-
sql?: string | undefined;
|
|
68
|
-
} & {
|
|
69
|
-
label: string;
|
|
70
|
-
description?: string | undefined;
|
|
71
|
-
})>;
|
|
72
|
-
else?: string | undefined;
|
|
73
|
-
segment?: boolean | undefined;
|
|
74
|
-
}>>;
|
|
75
|
-
field: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
field: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
76
26
|
sql: z.ZodOptional<z.ZodString>;
|
|
77
27
|
public: z.ZodOptional<z.ZodBoolean>;
|
|
78
28
|
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
79
29
|
subQuery: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
81
|
-
},
|
|
82
|
-
type: DimensionTypesEnum;
|
|
83
|
-
name: string;
|
|
84
|
-
description: string;
|
|
85
|
-
sql?: string | undefined;
|
|
86
|
-
format?: DimensionFormatsEnum | undefined;
|
|
87
|
-
explode?: boolean | undefined;
|
|
88
|
-
index?: string | boolean | undefined;
|
|
89
|
-
switch?: {
|
|
90
|
-
when: Record<string, false | ({
|
|
91
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
92
|
-
dimension?: string | undefined;
|
|
93
|
-
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
94
|
-
sql?: string | undefined;
|
|
95
|
-
} & {
|
|
96
|
-
label: string;
|
|
97
|
-
description?: string | undefined;
|
|
98
|
-
})>;
|
|
99
|
-
else?: string | undefined;
|
|
100
|
-
segment?: boolean | undefined;
|
|
101
|
-
} | undefined;
|
|
102
|
-
field?: string | string[] | undefined;
|
|
103
|
-
public?: boolean | undefined;
|
|
104
|
-
primaryKey?: boolean | undefined;
|
|
105
|
-
subQuery?: boolean | undefined;
|
|
106
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
107
|
-
}, {
|
|
108
|
-
type: DimensionTypesEnum;
|
|
109
|
-
name: string;
|
|
110
|
-
description: string;
|
|
111
|
-
sql?: string | undefined;
|
|
112
|
-
format?: DimensionFormatsEnum | undefined;
|
|
113
|
-
explode?: boolean | undefined;
|
|
114
|
-
index?: string | boolean | undefined;
|
|
115
|
-
switch?: {
|
|
116
|
-
when: Record<string, false | ({
|
|
117
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
118
|
-
dimension?: string | undefined;
|
|
119
|
-
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
120
|
-
sql?: string | undefined;
|
|
121
|
-
} & {
|
|
122
|
-
label: string;
|
|
123
|
-
description?: string | undefined;
|
|
124
|
-
})>;
|
|
125
|
-
else?: string | undefined;
|
|
126
|
-
segment?: boolean | undefined;
|
|
127
|
-
} | undefined;
|
|
128
|
-
field?: string | string[] | undefined;
|
|
129
|
-
public?: boolean | undefined;
|
|
130
|
-
primaryKey?: boolean | undefined;
|
|
131
|
-
subQuery?: boolean | undefined;
|
|
132
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
133
|
-
}>, {
|
|
134
|
-
type: DimensionTypesEnum;
|
|
135
|
-
name: string;
|
|
136
|
-
description: string;
|
|
137
|
-
sql?: string | undefined;
|
|
138
|
-
format?: DimensionFormatsEnum | undefined;
|
|
139
|
-
explode?: boolean | undefined;
|
|
140
|
-
index?: string | boolean | undefined;
|
|
141
|
-
switch?: {
|
|
142
|
-
when: Record<string, false | ({
|
|
143
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
144
|
-
dimension?: string | undefined;
|
|
145
|
-
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
146
|
-
sql?: string | undefined;
|
|
147
|
-
} & {
|
|
148
|
-
label: string;
|
|
149
|
-
description?: string | undefined;
|
|
150
|
-
})>;
|
|
151
|
-
else?: string | undefined;
|
|
152
|
-
segment?: boolean | undefined;
|
|
153
|
-
} | undefined;
|
|
154
|
-
field?: string | string[] | undefined;
|
|
155
|
-
public?: boolean | undefined;
|
|
156
|
-
primaryKey?: boolean | undefined;
|
|
157
|
-
subQuery?: boolean | undefined;
|
|
158
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
159
|
-
}, {
|
|
160
|
-
type: DimensionTypesEnum;
|
|
161
|
-
name: string;
|
|
162
|
-
description: string;
|
|
163
|
-
sql?: string | undefined;
|
|
164
|
-
format?: DimensionFormatsEnum | undefined;
|
|
165
|
-
explode?: boolean | undefined;
|
|
166
|
-
index?: string | boolean | undefined;
|
|
167
|
-
switch?: {
|
|
168
|
-
when: Record<string, false | ({
|
|
169
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
170
|
-
dimension?: string | undefined;
|
|
171
|
-
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
172
|
-
sql?: string | undefined;
|
|
173
|
-
} & {
|
|
174
|
-
label: string;
|
|
175
|
-
description?: string | undefined;
|
|
176
|
-
})>;
|
|
177
|
-
else?: string | undefined;
|
|
178
|
-
segment?: boolean | undefined;
|
|
179
|
-
} | undefined;
|
|
180
|
-
field?: string | string[] | undefined;
|
|
181
|
-
public?: boolean | undefined;
|
|
182
|
-
primaryKey?: boolean | undefined;
|
|
183
|
-
subQuery?: boolean | undefined;
|
|
184
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
185
|
-
}>;
|
|
30
|
+
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]>>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
186
32
|
export interface DimensionInterface {
|
|
187
33
|
name: string;
|
|
188
34
|
description: string;
|
|
@@ -1,186 +1,32 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { DimensionInterface } from './dimension.interface';
|
|
3
|
-
export declare const DimensionsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.
|
|
3
|
+
export declare const DimensionsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
description: z.ZodString;
|
|
6
|
-
type: z.
|
|
7
|
-
format: z.ZodOptional<z.
|
|
6
|
+
type: z.ZodEnum<typeof import("..").DimensionTypesEnum>;
|
|
7
|
+
format: z.ZodOptional<z.ZodEnum<typeof import("..").DimensionFormatsEnum>>;
|
|
8
8
|
explode: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
-
index: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
9
|
+
index: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
10
10
|
switch: z.ZodOptional<z.ZodObject<{
|
|
11
|
-
when: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodIntersection<z.
|
|
11
|
+
when: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
12
12
|
sql: z.ZodOptional<z.ZodString>;
|
|
13
13
|
dimension: z.ZodOptional<z.ZodString>;
|
|
14
|
-
operator: z.ZodOptional<z.
|
|
15
|
-
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]
|
|
16
|
-
},
|
|
17
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
18
|
-
dimension?: string | undefined;
|
|
19
|
-
operator?: import("..").FilterOperatorsEnum | undefined;
|
|
20
|
-
sql?: string | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
23
|
-
dimension?: string | undefined;
|
|
24
|
-
operator?: import("..").FilterOperatorsEnum | undefined;
|
|
25
|
-
sql?: string | undefined;
|
|
26
|
-
}>, {
|
|
27
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
28
|
-
dimension?: string | undefined;
|
|
29
|
-
operator?: import("..").FilterOperatorsEnum | undefined;
|
|
30
|
-
sql?: string | undefined;
|
|
31
|
-
}, {
|
|
32
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
33
|
-
dimension?: string | undefined;
|
|
34
|
-
operator?: import("..").FilterOperatorsEnum | undefined;
|
|
35
|
-
sql?: string | undefined;
|
|
36
|
-
}>, z.ZodObject<{
|
|
14
|
+
operator: z.ZodOptional<z.ZodEnum<typeof import("..").FilterOperatorsEnum>>;
|
|
15
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
17
|
label: z.ZodString;
|
|
38
18
|
description: z.ZodOptional<z.ZodString>;
|
|
39
|
-
},
|
|
40
|
-
label: string;
|
|
41
|
-
description?: string | undefined;
|
|
42
|
-
}, {
|
|
43
|
-
label: string;
|
|
44
|
-
description?: string | undefined;
|
|
45
|
-
}>>, z.ZodLiteral<false>]>>;
|
|
19
|
+
}, z.core.$strip>>, z.ZodLiteral<false>]>>;
|
|
46
20
|
else: z.ZodOptional<z.ZodString>;
|
|
47
21
|
segment: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
51
|
-
dimension?: string | undefined;
|
|
52
|
-
operator?: import("..").FilterOperatorsEnum | undefined;
|
|
53
|
-
sql?: string | undefined;
|
|
54
|
-
} & {
|
|
55
|
-
label: string;
|
|
56
|
-
description?: string | undefined;
|
|
57
|
-
})>;
|
|
58
|
-
else?: string | undefined;
|
|
59
|
-
segment?: boolean | undefined;
|
|
60
|
-
}, {
|
|
61
|
-
when: Record<string, false | ({
|
|
62
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
63
|
-
dimension?: string | undefined;
|
|
64
|
-
operator?: import("..").FilterOperatorsEnum | undefined;
|
|
65
|
-
sql?: string | undefined;
|
|
66
|
-
} & {
|
|
67
|
-
label: string;
|
|
68
|
-
description?: string | undefined;
|
|
69
|
-
})>;
|
|
70
|
-
else?: string | undefined;
|
|
71
|
-
segment?: boolean | undefined;
|
|
72
|
-
}>>;
|
|
73
|
-
field: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
field: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
74
24
|
sql: z.ZodOptional<z.ZodString>;
|
|
75
25
|
public: z.ZodOptional<z.ZodBoolean>;
|
|
76
26
|
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
77
27
|
subQuery: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
79
|
-
},
|
|
80
|
-
type: import("..").DimensionTypesEnum;
|
|
81
|
-
name: string;
|
|
82
|
-
description: string;
|
|
83
|
-
sql?: string | undefined;
|
|
84
|
-
format?: import("..").DimensionFormatsEnum | undefined;
|
|
85
|
-
explode?: boolean | undefined;
|
|
86
|
-
index?: string | boolean | undefined;
|
|
87
|
-
switch?: {
|
|
88
|
-
when: Record<string, false | ({
|
|
89
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
90
|
-
dimension?: string | undefined;
|
|
91
|
-
operator?: import("..").FilterOperatorsEnum | undefined;
|
|
92
|
-
sql?: string | undefined;
|
|
93
|
-
} & {
|
|
94
|
-
label: string;
|
|
95
|
-
description?: string | undefined;
|
|
96
|
-
})>;
|
|
97
|
-
else?: string | undefined;
|
|
98
|
-
segment?: boolean | undefined;
|
|
99
|
-
} | undefined;
|
|
100
|
-
field?: string | string[] | undefined;
|
|
101
|
-
public?: boolean | undefined;
|
|
102
|
-
primaryKey?: boolean | undefined;
|
|
103
|
-
subQuery?: boolean | undefined;
|
|
104
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
105
|
-
}, {
|
|
106
|
-
type: import("..").DimensionTypesEnum;
|
|
107
|
-
name: string;
|
|
108
|
-
description: string;
|
|
109
|
-
sql?: string | undefined;
|
|
110
|
-
format?: import("..").DimensionFormatsEnum | undefined;
|
|
111
|
-
explode?: boolean | undefined;
|
|
112
|
-
index?: string | boolean | undefined;
|
|
113
|
-
switch?: {
|
|
114
|
-
when: Record<string, false | ({
|
|
115
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
116
|
-
dimension?: string | undefined;
|
|
117
|
-
operator?: import("..").FilterOperatorsEnum | undefined;
|
|
118
|
-
sql?: string | undefined;
|
|
119
|
-
} & {
|
|
120
|
-
label: string;
|
|
121
|
-
description?: string | undefined;
|
|
122
|
-
})>;
|
|
123
|
-
else?: string | undefined;
|
|
124
|
-
segment?: boolean | undefined;
|
|
125
|
-
} | undefined;
|
|
126
|
-
field?: string | string[] | undefined;
|
|
127
|
-
public?: boolean | undefined;
|
|
128
|
-
primaryKey?: boolean | undefined;
|
|
129
|
-
subQuery?: boolean | undefined;
|
|
130
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
131
|
-
}>, {
|
|
132
|
-
type: import("..").DimensionTypesEnum;
|
|
133
|
-
name: string;
|
|
134
|
-
description: string;
|
|
135
|
-
sql?: string | undefined;
|
|
136
|
-
format?: import("..").DimensionFormatsEnum | undefined;
|
|
137
|
-
explode?: boolean | undefined;
|
|
138
|
-
index?: string | boolean | undefined;
|
|
139
|
-
switch?: {
|
|
140
|
-
when: Record<string, false | ({
|
|
141
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
142
|
-
dimension?: string | undefined;
|
|
143
|
-
operator?: import("..").FilterOperatorsEnum | undefined;
|
|
144
|
-
sql?: string | undefined;
|
|
145
|
-
} & {
|
|
146
|
-
label: string;
|
|
147
|
-
description?: string | undefined;
|
|
148
|
-
})>;
|
|
149
|
-
else?: string | undefined;
|
|
150
|
-
segment?: boolean | undefined;
|
|
151
|
-
} | undefined;
|
|
152
|
-
field?: string | string[] | undefined;
|
|
153
|
-
public?: boolean | undefined;
|
|
154
|
-
primaryKey?: boolean | undefined;
|
|
155
|
-
subQuery?: boolean | undefined;
|
|
156
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
157
|
-
}, {
|
|
158
|
-
type: import("..").DimensionTypesEnum;
|
|
159
|
-
name: string;
|
|
160
|
-
description: string;
|
|
161
|
-
sql?: string | undefined;
|
|
162
|
-
format?: import("..").DimensionFormatsEnum | undefined;
|
|
163
|
-
explode?: boolean | undefined;
|
|
164
|
-
index?: string | boolean | undefined;
|
|
165
|
-
switch?: {
|
|
166
|
-
when: Record<string, false | ({
|
|
167
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
168
|
-
dimension?: string | undefined;
|
|
169
|
-
operator?: import("..").FilterOperatorsEnum | undefined;
|
|
170
|
-
sql?: string | undefined;
|
|
171
|
-
} & {
|
|
172
|
-
label: string;
|
|
173
|
-
description?: string | undefined;
|
|
174
|
-
})>;
|
|
175
|
-
else?: string | undefined;
|
|
176
|
-
segment?: boolean | undefined;
|
|
177
|
-
} | undefined;
|
|
178
|
-
field?: string | string[] | undefined;
|
|
179
|
-
public?: boolean | undefined;
|
|
180
|
-
primaryKey?: boolean | undefined;
|
|
181
|
-
subQuery?: boolean | undefined;
|
|
182
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
183
|
-
}>, z.ZodLiteral<false>]>>;
|
|
28
|
+
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]>>>;
|
|
29
|
+
}, z.core.$strip>, z.ZodLiteral<false>]>>;
|
|
184
30
|
export interface DimensionsInterface {
|
|
185
31
|
[key: string]: DimensionInterface | false;
|
|
186
32
|
}
|
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { FilterOperatorsEnum, FilterValueType } from '../type-enums';
|
|
3
|
-
export declare const FilterSchema: z.
|
|
3
|
+
export declare const FilterSchema: z.ZodObject<{
|
|
4
4
|
sql: z.ZodOptional<z.ZodString>;
|
|
5
5
|
dimension: z.ZodOptional<z.ZodString>;
|
|
6
|
-
operator: z.ZodOptional<z.
|
|
7
|
-
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]
|
|
8
|
-
},
|
|
9
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
10
|
-
dimension?: string | undefined;
|
|
11
|
-
operator?: FilterOperatorsEnum | undefined;
|
|
12
|
-
sql?: string | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
15
|
-
dimension?: string | undefined;
|
|
16
|
-
operator?: FilterOperatorsEnum | undefined;
|
|
17
|
-
sql?: string | undefined;
|
|
18
|
-
}>, {
|
|
19
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
20
|
-
dimension?: string | undefined;
|
|
21
|
-
operator?: FilterOperatorsEnum | undefined;
|
|
22
|
-
sql?: string | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
25
|
-
dimension?: string | undefined;
|
|
26
|
-
operator?: FilterOperatorsEnum | undefined;
|
|
27
|
-
sql?: string | undefined;
|
|
28
|
-
}>;
|
|
6
|
+
operator: z.ZodOptional<z.ZodEnum<typeof 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>;
|
|
29
9
|
export interface FilterInterface {
|
|
30
10
|
dimension?: string;
|
|
31
11
|
operator?: FilterOperatorsEnum;
|
|
@@ -1,57 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { MeasureFormatsEnum, MeasureTypesEnum } from '../type-enums';
|
|
3
3
|
import { MetaInterface } from './meta.interface';
|
|
4
|
-
export declare const MeasureSchema: z.
|
|
4
|
+
export declare const MeasureSchema: z.ZodObject<{
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
description: z.ZodOptional<z.ZodString>;
|
|
7
|
-
type: z.
|
|
8
|
-
format: z.ZodOptional<z.
|
|
7
|
+
type: z.ZodEnum<typeof MeasureTypesEnum>;
|
|
8
|
+
format: z.ZodOptional<z.ZodEnum<typeof MeasureFormatsEnum>>;
|
|
9
9
|
index: z.ZodOptional<z.ZodString>;
|
|
10
10
|
sql: z.ZodOptional<z.ZodString>;
|
|
11
11
|
dimension: z.ZodOptional<z.ZodString>;
|
|
12
12
|
public: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
14
|
-
},
|
|
15
|
-
type: MeasureTypesEnum;
|
|
16
|
-
name: string;
|
|
17
|
-
description?: string | undefined;
|
|
18
|
-
dimension?: string | undefined;
|
|
19
|
-
sql?: string | undefined;
|
|
20
|
-
format?: MeasureFormatsEnum | undefined;
|
|
21
|
-
index?: string | undefined;
|
|
22
|
-
public?: boolean | undefined;
|
|
23
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
type: MeasureTypesEnum;
|
|
26
|
-
name: string;
|
|
27
|
-
description?: string | undefined;
|
|
28
|
-
dimension?: string | undefined;
|
|
29
|
-
sql?: string | undefined;
|
|
30
|
-
format?: MeasureFormatsEnum | undefined;
|
|
31
|
-
index?: string | undefined;
|
|
32
|
-
public?: boolean | undefined;
|
|
33
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
34
|
-
}>, {
|
|
35
|
-
type: MeasureTypesEnum;
|
|
36
|
-
name: string;
|
|
37
|
-
description?: string | undefined;
|
|
38
|
-
dimension?: string | undefined;
|
|
39
|
-
sql?: string | undefined;
|
|
40
|
-
format?: MeasureFormatsEnum | undefined;
|
|
41
|
-
index?: string | undefined;
|
|
42
|
-
public?: boolean | undefined;
|
|
43
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
44
|
-
}, {
|
|
45
|
-
type: MeasureTypesEnum;
|
|
46
|
-
name: string;
|
|
47
|
-
description?: string | undefined;
|
|
48
|
-
dimension?: string | undefined;
|
|
49
|
-
sql?: string | undefined;
|
|
50
|
-
format?: MeasureFormatsEnum | undefined;
|
|
51
|
-
index?: string | undefined;
|
|
52
|
-
public?: boolean | undefined;
|
|
53
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
54
|
-
}>;
|
|
13
|
+
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]>>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
55
15
|
export interface MeasureInterface {
|
|
56
16
|
name: string;
|
|
57
17
|
description?: string;
|
|
@@ -1,56 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { MeasureInterface } from './measure.interface';
|
|
3
|
-
export declare const MeasuresSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.
|
|
3
|
+
export declare const MeasuresSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
description: z.ZodOptional<z.ZodString>;
|
|
6
|
-
type: z.
|
|
7
|
-
format: z.ZodOptional<z.
|
|
6
|
+
type: z.ZodEnum<typeof import("..").MeasureTypesEnum>;
|
|
7
|
+
format: z.ZodOptional<z.ZodEnum<typeof import("..").MeasureFormatsEnum>>;
|
|
8
8
|
index: z.ZodOptional<z.ZodString>;
|
|
9
9
|
sql: z.ZodOptional<z.ZodString>;
|
|
10
10
|
dimension: z.ZodOptional<z.ZodString>;
|
|
11
11
|
public: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
13
|
-
},
|
|
14
|
-
type: import("..").MeasureTypesEnum;
|
|
15
|
-
name: string;
|
|
16
|
-
description?: string | undefined;
|
|
17
|
-
dimension?: string | undefined;
|
|
18
|
-
sql?: string | undefined;
|
|
19
|
-
format?: import("..").MeasureFormatsEnum | undefined;
|
|
20
|
-
index?: string | undefined;
|
|
21
|
-
public?: boolean | undefined;
|
|
22
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
type: import("..").MeasureTypesEnum;
|
|
25
|
-
name: string;
|
|
26
|
-
description?: string | undefined;
|
|
27
|
-
dimension?: string | undefined;
|
|
28
|
-
sql?: string | undefined;
|
|
29
|
-
format?: import("..").MeasureFormatsEnum | undefined;
|
|
30
|
-
index?: string | undefined;
|
|
31
|
-
public?: boolean | undefined;
|
|
32
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
33
|
-
}>, {
|
|
34
|
-
type: import("..").MeasureTypesEnum;
|
|
35
|
-
name: string;
|
|
36
|
-
description?: string | undefined;
|
|
37
|
-
dimension?: string | undefined;
|
|
38
|
-
sql?: string | undefined;
|
|
39
|
-
format?: import("..").MeasureFormatsEnum | undefined;
|
|
40
|
-
index?: string | undefined;
|
|
41
|
-
public?: boolean | undefined;
|
|
42
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
type: import("..").MeasureTypesEnum;
|
|
45
|
-
name: string;
|
|
46
|
-
description?: string | undefined;
|
|
47
|
-
dimension?: string | undefined;
|
|
48
|
-
sql?: string | undefined;
|
|
49
|
-
format?: import("..").MeasureFormatsEnum | undefined;
|
|
50
|
-
index?: string | undefined;
|
|
51
|
-
public?: boolean | undefined;
|
|
52
|
-
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
53
|
-
}>, z.ZodLiteral<false>]>>;
|
|
12
|
+
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]>>>;
|
|
13
|
+
}, z.core.$strip>, z.ZodLiteral<false>]>>;
|
|
54
14
|
export interface MeasuresInterface {
|
|
55
15
|
[key: string]: MeasureInterface | false;
|
|
56
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const LocaleSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3
|
-
export declare const MetaSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3
|
+
export declare const MetaSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
4
4
|
export interface LocaleInterface {
|
|
5
5
|
[key: string]: Record<string, string>;
|
|
6
6
|
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const PreAggregateSchema: z.ZodObject<{
|
|
3
|
-
type: z.ZodOptional<z.ZodEnum<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
4
|
+
rollup: "rollup";
|
|
5
|
+
original_sql: "original_sql";
|
|
6
|
+
rollup_join: "rollup_join";
|
|
7
|
+
}>>;
|
|
8
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
11
|
timeDimension: z.ZodOptional<z.ZodString>;
|
|
8
12
|
granularity: z.ZodOptional<z.ZodString>;
|
|
9
13
|
partitionGranularity: z.ZodOptional<z.ZodString>;
|
|
10
|
-
rollups: z.ZodOptional<z.ZodArray<z.ZodString
|
|
14
|
+
rollups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
15
|
refreshKeySql: z.ZodOptional<z.ZodString>;
|
|
12
16
|
refreshKeyEvery: z.ZodOptional<z.ZodString>;
|
|
13
17
|
refreshKeyIncremental: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -15,39 +19,7 @@ export declare const PreAggregateSchema: z.ZodObject<{
|
|
|
15
19
|
buildRangeStartSql: z.ZodOptional<z.ZodString>;
|
|
16
20
|
buildRangeEndSql: z.ZodOptional<z.ZodString>;
|
|
17
21
|
lambda: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
-
},
|
|
19
|
-
type?: "rollup" | "original_sql" | "rollup_join" | undefined;
|
|
20
|
-
dimensions?: string[] | undefined;
|
|
21
|
-
measures?: string[] | undefined;
|
|
22
|
-
segments?: string[] | undefined;
|
|
23
|
-
timeDimension?: string | undefined;
|
|
24
|
-
granularity?: string | undefined;
|
|
25
|
-
partitionGranularity?: string | undefined;
|
|
26
|
-
rollups?: string[] | undefined;
|
|
27
|
-
refreshKeySql?: string | undefined;
|
|
28
|
-
refreshKeyEvery?: string | undefined;
|
|
29
|
-
refreshKeyIncremental?: boolean | undefined;
|
|
30
|
-
refreshKeyUpdateWindow?: string | undefined;
|
|
31
|
-
buildRangeStartSql?: string | undefined;
|
|
32
|
-
buildRangeEndSql?: string | undefined;
|
|
33
|
-
lambda?: boolean | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
type?: "rollup" | "original_sql" | "rollup_join" | undefined;
|
|
36
|
-
dimensions?: string[] | undefined;
|
|
37
|
-
measures?: string[] | undefined;
|
|
38
|
-
segments?: string[] | undefined;
|
|
39
|
-
timeDimension?: string | undefined;
|
|
40
|
-
granularity?: string | undefined;
|
|
41
|
-
partitionGranularity?: string | undefined;
|
|
42
|
-
rollups?: string[] | undefined;
|
|
43
|
-
refreshKeySql?: string | undefined;
|
|
44
|
-
refreshKeyEvery?: string | undefined;
|
|
45
|
-
refreshKeyIncremental?: boolean | undefined;
|
|
46
|
-
refreshKeyUpdateWindow?: string | undefined;
|
|
47
|
-
buildRangeStartSql?: string | undefined;
|
|
48
|
-
buildRangeEndSql?: string | undefined;
|
|
49
|
-
lambda?: boolean | undefined;
|
|
50
|
-
}>;
|
|
22
|
+
}, z.core.$strip>;
|
|
51
23
|
export interface PreAggregateInterface {
|
|
52
24
|
type?: 'rollup' | 'original_sql' | 'rollup_join';
|
|
53
25
|
measures?: Array<string>;
|