@transai/connector-runner-microsoft-office365-email 0.1.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.
Files changed (89) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +11 -0
  3. package/index.cjs +196 -0
  4. package/index.cjs.map +7 -0
  5. package/index.js +196 -0
  6. package/index.js.map +7 -0
  7. package/libs/connector-runner-microsoft-office365-email/src/index.d.ts +1 -0
  8. package/libs/connector-runner-microsoft-office365-email/src/lib/actions-handler.d.ts +8 -0
  9. package/libs/connector-runner-microsoft-office365-email/src/lib/connector-runner-microsoft-office365-email.d.ts +8 -0
  10. package/libs/connector-runner-microsoft-office365-email/src/lib/mail-processor.d.ts +11 -0
  11. package/libs/connector-runner-microsoft-office365-email/src/lib/types.d.ts +14 -0
  12. package/libs/connector-runtime-sdk/src/index.d.ts +3 -0
  13. package/libs/connector-runtime-sdk/src/lib/connector-runtime.d.ts +16 -0
  14. package/libs/connector-runtime-sdk/src/lib/connector-runtime.interface.d.ts +5 -0
  15. package/libs/connector-runtime-sdk/src/lib/sdk/index.d.ts +7 -0
  16. package/libs/connector-runtime-sdk/src/lib/sdk/logger.sdk.interface.d.ts +7 -0
  17. package/libs/connector-runtime-sdk/src/lib/sdk/offset-store.sdk.interface.d.ts +11 -0
  18. package/libs/connector-runtime-sdk/src/lib/sdk/processing.sdk.interface.d.ts +12 -0
  19. package/libs/connector-runtime-sdk/src/lib/sdk/receiver.sdk.interface.d.ts +14 -0
  20. package/libs/connector-runtime-sdk/src/lib/sdk/sdk.interface.d.ts +16 -0
  21. package/libs/connector-runtime-sdk/src/lib/sdk/sender.sdk.interface.d.ts +22 -0
  22. package/libs/connector-runtime-sdk/src/lib/sdk/templating.sdk.interface.d.ts +12 -0
  23. package/libs/logger/src/index.d.ts +1 -0
  24. package/libs/logger/src/lib/logger.d.ts +28 -0
  25. package/libs/microsoft-office365-mail-client/src/index.d.ts +3 -0
  26. package/libs/microsoft-office365-mail-client/src/lib/mail-client.d.ts +12 -0
  27. package/libs/microsoft-office365-mail-client/src/lib/mail-client.interface.d.ts +7 -0
  28. package/libs/microsoft-office365-mail-client/src/lib/office365-client.d.ts +16 -0
  29. package/libs/microsoft-office365-mail-client/src/lib/office365-mail-parser.d.ts +8 -0
  30. package/libs/microsoft-office365-mail-client/src/lib/office365-types.d.ts +73 -0
  31. package/libs/microsoft-office365-mail-client/src/lib/types.d.ts +46 -0
  32. package/libs/types/src/index.d.ts +7 -0
  33. package/libs/types/src/lib/cube-query-config.types.d.ts +20 -0
  34. package/libs/types/src/lib/file-action.types.d.ts +5 -0
  35. package/libs/types/src/lib/http-status-codes.enum.d.ts +63 -0
  36. package/libs/types/src/lib/management-api/action-definition.interface.d.ts +12 -0
  37. package/libs/types/src/lib/management-api/chart.interface.d.ts +9 -0
  38. package/libs/types/src/lib/management-api/connector/connector.interface.d.ts +140 -0
  39. package/libs/types/src/lib/management-api/connector/connectors.interface.d.ts +126 -0
  40. package/libs/types/src/lib/management-api/connector-orchestrator-config.interface.d.ts +14 -0
  41. package/libs/types/src/lib/management-api/cube-dataset.interface.d.ts +93 -0
  42. package/libs/types/src/lib/management-api/dashboard.interface.d.ts +35 -0
  43. package/libs/types/src/lib/management-api/dataset/collection.interface.d.ts +16 -0
  44. package/libs/types/src/lib/management-api/dataset/dataset-record.interface.d.ts +5 -0
  45. package/libs/types/src/lib/management-api/dataset/dataset.interface.d.ts +730 -0
  46. package/libs/types/src/lib/management-api/dataset/datasets.interface.d.ts +710 -0
  47. package/libs/types/src/lib/management-api/dataset/dimension.interface.d.ts +205 -0
  48. package/libs/types/src/lib/management-api/dataset/dimensions.interface.d.ts +186 -0
  49. package/libs/types/src/lib/management-api/dataset/filter-group.interface.d.ts +8 -0
  50. package/libs/types/src/lib/management-api/dataset/filter.interface.d.ts +34 -0
  51. package/libs/types/src/lib/management-api/dataset/filters.interface.d.ts +7 -0
  52. package/libs/types/src/lib/management-api/dataset/measure.interface.d.ts +65 -0
  53. package/libs/types/src/lib/management-api/dataset/measures.interface.d.ts +56 -0
  54. package/libs/types/src/lib/management-api/dataset/meta.interface.d.ts +9 -0
  55. package/libs/types/src/lib/management-api/dataset/pre-aggregate.interface.d.ts +69 -0
  56. package/libs/types/src/lib/management-api/dataset/pre-aggregations.interface.d.ts +54 -0
  57. package/libs/types/src/lib/management-api/dataset/relation.interface.d.ts +40 -0
  58. package/libs/types/src/lib/management-api/dataset/relations.interface.d.ts +36 -0
  59. package/libs/types/src/lib/management-api/dataset/segment.interface.d.ts +45 -0
  60. package/libs/types/src/lib/management-api/dataset/segments.interface.d.ts +43 -0
  61. package/libs/types/src/lib/management-api/dataset/switch.interface.d.ts +70 -0
  62. package/libs/types/src/lib/management-api/dataset/when-item.interface.d.ts +41 -0
  63. package/libs/types/src/lib/management-api/dataset/when-items.interface.d.ts +40 -0
  64. package/libs/types/src/lib/management-api/event-origin.interface.d.ts +22 -0
  65. package/libs/types/src/lib/management-api/index.d.ts +39 -0
  66. package/libs/types/src/lib/management-api/pagination/index.d.ts +1 -0
  67. package/libs/types/src/lib/management-api/pagination/paginated-response.interface.d.ts +17 -0
  68. package/libs/types/src/lib/management-api/semantic-trigger/index.d.ts +5 -0
  69. package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filter.interface.d.ts +20 -0
  70. package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filters.interface.d.ts +18 -0
  71. package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-record.interface.d.ts +6 -0
  72. package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger.interface.d.ts +74 -0
  73. package/libs/types/src/lib/management-api/semantic-trigger/semantic-triggers.interface.d.ts +62 -0
  74. package/libs/types/src/lib/management-api/template-implementation-overrides.interface.d.ts +1152 -0
  75. package/libs/types/src/lib/management-api/template-implementation.interface.d.ts +2860 -0
  76. package/libs/types/src/lib/management-api/template.interface.d.ts +1191 -0
  77. package/libs/types/src/lib/management-api/tenant.interface.d.ts +8 -0
  78. package/libs/types/src/lib/management-api/type-enums.d.ts +85 -0
  79. package/libs/types/src/lib/management-api/workflow/action.interface.d.ts +85 -0
  80. package/libs/types/src/lib/management-api/workflow/index.d.ts +6 -0
  81. package/libs/types/src/lib/management-api/workflow/offset.interface.d.ts +16 -0
  82. package/libs/types/src/lib/management-api/workflow/trigger-types.interface.d.ts +5 -0
  83. package/libs/types/src/lib/management-api/workflow/workflow-definition.interface.d.ts +49 -0
  84. package/libs/types/src/lib/management-api/workflow/workflow-run.d.ts +65 -0
  85. package/libs/types/src/lib/management-api/workflow/workflow.drawing.d.ts +101 -0
  86. package/libs/types/src/lib/message.types.d.ts +59 -0
  87. package/libs/types/src/lib/response.types.d.ts +27 -0
  88. package/libs/types/src/lib/types.d.ts +115 -0
  89. package/package.json +7 -0
@@ -0,0 +1,1191 @@
1
+ import { z } from 'zod';
2
+ import { DatasetsInterface, SemanticTriggersInterface, ConnectorsInterface } from './index';
3
+ export declare const TemplateSchema: z.ZodObject<{
4
+ identifier: z.ZodString;
5
+ version: z.ZodString;
6
+ name: z.ZodString;
7
+ prefix: z.ZodString;
8
+ description: z.ZodString;
9
+ datasets: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodObject<{
10
+ name: z.ZodString;
11
+ description: z.ZodString;
12
+ type: z.ZodNativeEnum<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<[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("./index").FiltersInterface, z.ZodTypeDef, import("./index").FiltersInterface>>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ filters?: import("./index").FiltersInterface;
22
+ collection?: string;
23
+ }, {
24
+ filters?: import("./index").FiltersInterface;
25
+ collection?: string;
26
+ }>>;
27
+ dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodObject<{
28
+ name: z.ZodString;
29
+ description: z.ZodString;
30
+ type: z.ZodNativeEnum<typeof import("./type-enums").DimensionTypesEnum>;
31
+ format: z.ZodOptional<z.ZodNativeEnum<typeof import("./type-enums").DimensionFormatsEnum>>;
32
+ explode: z.ZodOptional<z.ZodBoolean>;
33
+ index: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
34
+ switch: z.ZodOptional<z.ZodObject<{
35
+ when: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodIntersection<z.ZodEffects<z.ZodObject<{
36
+ sql: z.ZodOptional<z.ZodString>;
37
+ dimension: z.ZodOptional<z.ZodString>;
38
+ operator: z.ZodOptional<z.ZodNativeEnum<typeof import("./type-enums").FilterOperatorsEnum>>;
39
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">]>>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ value?: string | number | boolean | (string | number | boolean)[];
42
+ dimension?: string;
43
+ operator?: import("./type-enums").FilterOperatorsEnum;
44
+ sql?: string;
45
+ }, {
46
+ value?: string | number | boolean | (string | number | boolean)[];
47
+ dimension?: string;
48
+ operator?: import("./type-enums").FilterOperatorsEnum;
49
+ sql?: string;
50
+ }>, {
51
+ value?: string | number | boolean | (string | number | boolean)[];
52
+ dimension?: string;
53
+ operator?: import("./type-enums").FilterOperatorsEnum;
54
+ sql?: string;
55
+ }, {
56
+ value?: string | number | boolean | (string | number | boolean)[];
57
+ dimension?: string;
58
+ operator?: import("./type-enums").FilterOperatorsEnum;
59
+ sql?: string;
60
+ }>, z.ZodObject<{
61
+ label: z.ZodString;
62
+ description: z.ZodOptional<z.ZodString>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ description?: string;
65
+ label?: string;
66
+ }, {
67
+ description?: string;
68
+ label?: string;
69
+ }>>, z.ZodLiteral<false>]>>;
70
+ else: z.ZodOptional<z.ZodString>;
71
+ segment: z.ZodOptional<z.ZodBoolean>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ when?: Record<string, false | ({
74
+ value?: string | number | boolean | (string | number | boolean)[];
75
+ dimension?: string;
76
+ operator?: import("./type-enums").FilterOperatorsEnum;
77
+ sql?: string;
78
+ } & {
79
+ description?: string;
80
+ label?: string;
81
+ })>;
82
+ else?: string;
83
+ segment?: boolean;
84
+ }, {
85
+ when?: Record<string, false | ({
86
+ value?: string | number | boolean | (string | number | boolean)[];
87
+ dimension?: string;
88
+ operator?: import("./type-enums").FilterOperatorsEnum;
89
+ sql?: string;
90
+ } & {
91
+ description?: string;
92
+ label?: string;
93
+ })>;
94
+ else?: string;
95
+ segment?: boolean;
96
+ }>>;
97
+ field: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
98
+ sql: z.ZodOptional<z.ZodString>;
99
+ public: z.ZodOptional<z.ZodBoolean>;
100
+ primaryKey: z.ZodOptional<z.ZodBoolean>;
101
+ subQuery: z.ZodOptional<z.ZodBoolean>;
102
+ 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]>>>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ type?: import("./type-enums").DimensionTypesEnum;
105
+ name?: string;
106
+ description?: string;
107
+ sql?: string;
108
+ format?: import("./type-enums").DimensionFormatsEnum;
109
+ explode?: boolean;
110
+ index?: string | boolean;
111
+ switch?: {
112
+ when?: Record<string, false | ({
113
+ value?: string | number | boolean | (string | number | boolean)[];
114
+ dimension?: string;
115
+ operator?: import("./type-enums").FilterOperatorsEnum;
116
+ sql?: string;
117
+ } & {
118
+ description?: string;
119
+ label?: string;
120
+ })>;
121
+ else?: string;
122
+ segment?: boolean;
123
+ };
124
+ field?: string | string[];
125
+ public?: boolean;
126
+ primaryKey?: boolean;
127
+ subQuery?: boolean;
128
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
129
+ }, {
130
+ type?: import("./type-enums").DimensionTypesEnum;
131
+ name?: string;
132
+ description?: string;
133
+ sql?: string;
134
+ format?: import("./type-enums").DimensionFormatsEnum;
135
+ explode?: boolean;
136
+ index?: string | boolean;
137
+ switch?: {
138
+ when?: Record<string, false | ({
139
+ value?: string | number | boolean | (string | number | boolean)[];
140
+ dimension?: string;
141
+ operator?: import("./type-enums").FilterOperatorsEnum;
142
+ sql?: string;
143
+ } & {
144
+ description?: string;
145
+ label?: string;
146
+ })>;
147
+ else?: string;
148
+ segment?: boolean;
149
+ };
150
+ field?: string | string[];
151
+ public?: boolean;
152
+ primaryKey?: boolean;
153
+ subQuery?: boolean;
154
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
155
+ }>, {
156
+ type?: import("./type-enums").DimensionTypesEnum;
157
+ name?: string;
158
+ description?: string;
159
+ sql?: string;
160
+ format?: import("./type-enums").DimensionFormatsEnum;
161
+ explode?: boolean;
162
+ index?: string | boolean;
163
+ switch?: {
164
+ when?: Record<string, false | ({
165
+ value?: string | number | boolean | (string | number | boolean)[];
166
+ dimension?: string;
167
+ operator?: import("./type-enums").FilterOperatorsEnum;
168
+ sql?: string;
169
+ } & {
170
+ description?: string;
171
+ label?: string;
172
+ })>;
173
+ else?: string;
174
+ segment?: boolean;
175
+ };
176
+ field?: string | string[];
177
+ public?: boolean;
178
+ primaryKey?: boolean;
179
+ subQuery?: boolean;
180
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
181
+ }, {
182
+ type?: import("./type-enums").DimensionTypesEnum;
183
+ name?: string;
184
+ description?: string;
185
+ sql?: string;
186
+ format?: import("./type-enums").DimensionFormatsEnum;
187
+ explode?: boolean;
188
+ index?: string | boolean;
189
+ switch?: {
190
+ when?: Record<string, false | ({
191
+ value?: string | number | boolean | (string | number | boolean)[];
192
+ dimension?: string;
193
+ operator?: import("./type-enums").FilterOperatorsEnum;
194
+ sql?: string;
195
+ } & {
196
+ description?: string;
197
+ label?: string;
198
+ })>;
199
+ else?: string;
200
+ segment?: boolean;
201
+ };
202
+ field?: string | string[];
203
+ public?: boolean;
204
+ primaryKey?: boolean;
205
+ subQuery?: boolean;
206
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
207
+ }>, z.ZodLiteral<false>]>>>;
208
+ segments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodIntersection<z.ZodEffects<z.ZodObject<{
209
+ sql: z.ZodOptional<z.ZodString>;
210
+ dimension: z.ZodOptional<z.ZodString>;
211
+ operator: z.ZodOptional<z.ZodNativeEnum<typeof import("./type-enums").FilterOperatorsEnum>>;
212
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">]>>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ value?: string | number | boolean | (string | number | boolean)[];
215
+ dimension?: string;
216
+ operator?: import("./type-enums").FilterOperatorsEnum;
217
+ sql?: string;
218
+ }, {
219
+ value?: string | number | boolean | (string | number | boolean)[];
220
+ dimension?: string;
221
+ operator?: import("./type-enums").FilterOperatorsEnum;
222
+ sql?: string;
223
+ }>, {
224
+ value?: string | number | boolean | (string | number | boolean)[];
225
+ dimension?: string;
226
+ operator?: import("./type-enums").FilterOperatorsEnum;
227
+ sql?: string;
228
+ }, {
229
+ value?: string | number | boolean | (string | number | boolean)[];
230
+ dimension?: string;
231
+ operator?: import("./type-enums").FilterOperatorsEnum;
232
+ sql?: string;
233
+ }>, z.ZodObject<{
234
+ name: z.ZodOptional<z.ZodString>;
235
+ description: z.ZodOptional<z.ZodString>;
236
+ public: z.ZodOptional<z.ZodBoolean>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ name?: string;
239
+ description?: string;
240
+ public?: boolean;
241
+ }, {
242
+ name?: string;
243
+ description?: string;
244
+ public?: boolean;
245
+ }>>, z.ZodLiteral<false>]>>>;
246
+ relations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodObject<{
247
+ type: z.ZodNativeEnum<typeof import("./type-enums").RelationTypesEnum>;
248
+ dimension: z.ZodOptional<z.ZodString>;
249
+ targetDataset: z.ZodString;
250
+ targetDimension: z.ZodOptional<z.ZodString>;
251
+ sql: z.ZodOptional<z.ZodString>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ type?: import("./type-enums").RelationTypesEnum;
254
+ dimension?: string;
255
+ sql?: string;
256
+ targetDataset?: string;
257
+ targetDimension?: string;
258
+ }, {
259
+ type?: import("./type-enums").RelationTypesEnum;
260
+ dimension?: string;
261
+ sql?: string;
262
+ targetDataset?: string;
263
+ targetDimension?: string;
264
+ }>, {
265
+ type?: import("./type-enums").RelationTypesEnum;
266
+ dimension?: string;
267
+ sql?: string;
268
+ targetDataset?: string;
269
+ targetDimension?: string;
270
+ }, {
271
+ type?: import("./type-enums").RelationTypesEnum;
272
+ dimension?: string;
273
+ sql?: string;
274
+ targetDataset?: string;
275
+ targetDimension?: string;
276
+ }>, z.ZodLiteral<false>]>>>;
277
+ measures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodObject<{
278
+ name: z.ZodString;
279
+ description: z.ZodOptional<z.ZodString>;
280
+ type: z.ZodNativeEnum<typeof import("./type-enums").MeasureTypesEnum>;
281
+ format: z.ZodOptional<z.ZodNativeEnum<typeof import("./type-enums").MeasureFormatsEnum>>;
282
+ index: z.ZodOptional<z.ZodString>;
283
+ sql: z.ZodOptional<z.ZodString>;
284
+ dimension: z.ZodOptional<z.ZodString>;
285
+ public: z.ZodOptional<z.ZodBoolean>;
286
+ 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]>>>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ type?: import("./type-enums").MeasureTypesEnum;
289
+ name?: string;
290
+ description?: string;
291
+ dimension?: string;
292
+ sql?: string;
293
+ format?: import("./type-enums").MeasureFormatsEnum;
294
+ index?: string;
295
+ public?: boolean;
296
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
297
+ }, {
298
+ type?: import("./type-enums").MeasureTypesEnum;
299
+ name?: string;
300
+ description?: string;
301
+ dimension?: string;
302
+ sql?: string;
303
+ format?: import("./type-enums").MeasureFormatsEnum;
304
+ index?: string;
305
+ public?: boolean;
306
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
307
+ }>, {
308
+ type?: import("./type-enums").MeasureTypesEnum;
309
+ name?: string;
310
+ description?: string;
311
+ dimension?: string;
312
+ sql?: string;
313
+ format?: import("./type-enums").MeasureFormatsEnum;
314
+ index?: string;
315
+ public?: boolean;
316
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
317
+ }, {
318
+ type?: import("./type-enums").MeasureTypesEnum;
319
+ name?: string;
320
+ description?: string;
321
+ dimension?: string;
322
+ sql?: string;
323
+ format?: import("./type-enums").MeasureFormatsEnum;
324
+ index?: string;
325
+ public?: boolean;
326
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
327
+ }>, z.ZodLiteral<false>]>>>;
328
+ preAggregations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
329
+ type: z.ZodOptional<z.ZodEnum<["rollup", "original_sql", "rollup_join"]>>;
330
+ measures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
331
+ dimensions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
332
+ segments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
333
+ timeDimension: z.ZodOptional<z.ZodString>;
334
+ granularity: z.ZodOptional<z.ZodString>;
335
+ partitionGranularity: z.ZodOptional<z.ZodString>;
336
+ rollups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
337
+ refreshKeySql: z.ZodOptional<z.ZodString>;
338
+ refreshKeyEvery: z.ZodOptional<z.ZodString>;
339
+ refreshKeyIncremental: z.ZodOptional<z.ZodBoolean>;
340
+ refreshKeyUpdateWindow: z.ZodOptional<z.ZodString>;
341
+ buildRangeStartSql: z.ZodOptional<z.ZodString>;
342
+ buildRangeEndSql: z.ZodOptional<z.ZodString>;
343
+ lambda: z.ZodOptional<z.ZodBoolean>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ type?: "rollup" | "original_sql" | "rollup_join";
346
+ dimensions?: string[];
347
+ measures?: string[];
348
+ segments?: string[];
349
+ timeDimension?: string;
350
+ granularity?: string;
351
+ partitionGranularity?: string;
352
+ rollups?: string[];
353
+ refreshKeySql?: string;
354
+ refreshKeyEvery?: string;
355
+ refreshKeyIncremental?: boolean;
356
+ refreshKeyUpdateWindow?: string;
357
+ buildRangeStartSql?: string;
358
+ buildRangeEndSql?: string;
359
+ lambda?: boolean;
360
+ }, {
361
+ type?: "rollup" | "original_sql" | "rollup_join";
362
+ dimensions?: string[];
363
+ measures?: string[];
364
+ segments?: string[];
365
+ timeDimension?: string;
366
+ granularity?: string;
367
+ partitionGranularity?: string;
368
+ rollups?: string[];
369
+ refreshKeySql?: string;
370
+ refreshKeyEvery?: string;
371
+ refreshKeyIncremental?: boolean;
372
+ refreshKeyUpdateWindow?: string;
373
+ buildRangeStartSql?: string;
374
+ buildRangeEndSql?: string;
375
+ lambda?: boolean;
376
+ }>, z.ZodLiteral<false>]>>>;
377
+ }, "strip", z.ZodTypeAny, {
378
+ type?: import("./type-enums").DatasetTypeEnum;
379
+ name?: string;
380
+ description?: string;
381
+ dimensions?: Record<string, false | {
382
+ type?: import("./type-enums").DimensionTypesEnum;
383
+ name?: string;
384
+ description?: string;
385
+ sql?: string;
386
+ format?: import("./type-enums").DimensionFormatsEnum;
387
+ explode?: boolean;
388
+ index?: string | boolean;
389
+ switch?: {
390
+ when?: Record<string, false | ({
391
+ value?: string | number | boolean | (string | number | boolean)[];
392
+ dimension?: string;
393
+ operator?: import("./type-enums").FilterOperatorsEnum;
394
+ sql?: string;
395
+ } & {
396
+ description?: string;
397
+ label?: string;
398
+ })>;
399
+ else?: string;
400
+ segment?: boolean;
401
+ };
402
+ field?: string | string[];
403
+ public?: boolean;
404
+ primaryKey?: boolean;
405
+ subQuery?: boolean;
406
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
407
+ }>;
408
+ sql?: string;
409
+ collection?: {
410
+ filters?: import("./index").FiltersInterface;
411
+ collection?: string;
412
+ };
413
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
414
+ measures?: Record<string, false | {
415
+ type?: import("./type-enums").MeasureTypesEnum;
416
+ name?: string;
417
+ description?: string;
418
+ dimension?: string;
419
+ sql?: string;
420
+ format?: import("./type-enums").MeasureFormatsEnum;
421
+ index?: string;
422
+ public?: boolean;
423
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
424
+ }>;
425
+ segments?: Record<string, false | ({
426
+ value?: string | number | boolean | (string | number | boolean)[];
427
+ dimension?: string;
428
+ operator?: import("./type-enums").FilterOperatorsEnum;
429
+ sql?: string;
430
+ } & {
431
+ name?: string;
432
+ description?: string;
433
+ public?: boolean;
434
+ })>;
435
+ prefix?: string;
436
+ parent?: string;
437
+ relations?: Record<string, false | {
438
+ type?: import("./type-enums").RelationTypesEnum;
439
+ dimension?: string;
440
+ sql?: string;
441
+ targetDataset?: string;
442
+ targetDimension?: string;
443
+ }>;
444
+ preAggregations?: Record<string, false | {
445
+ type?: "rollup" | "original_sql" | "rollup_join";
446
+ dimensions?: string[];
447
+ measures?: string[];
448
+ segments?: string[];
449
+ timeDimension?: string;
450
+ granularity?: string;
451
+ partitionGranularity?: string;
452
+ rollups?: string[];
453
+ refreshKeySql?: string;
454
+ refreshKeyEvery?: string;
455
+ refreshKeyIncremental?: boolean;
456
+ refreshKeyUpdateWindow?: string;
457
+ buildRangeStartSql?: string;
458
+ buildRangeEndSql?: string;
459
+ lambda?: boolean;
460
+ }>;
461
+ }, {
462
+ type?: import("./type-enums").DatasetTypeEnum;
463
+ name?: string;
464
+ description?: string;
465
+ dimensions?: Record<string, false | {
466
+ type?: import("./type-enums").DimensionTypesEnum;
467
+ name?: string;
468
+ description?: string;
469
+ sql?: string;
470
+ format?: import("./type-enums").DimensionFormatsEnum;
471
+ explode?: boolean;
472
+ index?: string | boolean;
473
+ switch?: {
474
+ when?: Record<string, false | ({
475
+ value?: string | number | boolean | (string | number | boolean)[];
476
+ dimension?: string;
477
+ operator?: import("./type-enums").FilterOperatorsEnum;
478
+ sql?: string;
479
+ } & {
480
+ description?: string;
481
+ label?: string;
482
+ })>;
483
+ else?: string;
484
+ segment?: boolean;
485
+ };
486
+ field?: string | string[];
487
+ public?: boolean;
488
+ primaryKey?: boolean;
489
+ subQuery?: boolean;
490
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
491
+ }>;
492
+ sql?: string;
493
+ collection?: {
494
+ filters?: import("./index").FiltersInterface;
495
+ collection?: string;
496
+ };
497
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
498
+ measures?: Record<string, false | {
499
+ type?: import("./type-enums").MeasureTypesEnum;
500
+ name?: string;
501
+ description?: string;
502
+ dimension?: string;
503
+ sql?: string;
504
+ format?: import("./type-enums").MeasureFormatsEnum;
505
+ index?: string;
506
+ public?: boolean;
507
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
508
+ }>;
509
+ segments?: Record<string, false | ({
510
+ value?: string | number | boolean | (string | number | boolean)[];
511
+ dimension?: string;
512
+ operator?: import("./type-enums").FilterOperatorsEnum;
513
+ sql?: string;
514
+ } & {
515
+ name?: string;
516
+ description?: string;
517
+ public?: boolean;
518
+ })>;
519
+ prefix?: string;
520
+ parent?: string;
521
+ relations?: Record<string, false | {
522
+ type?: import("./type-enums").RelationTypesEnum;
523
+ dimension?: string;
524
+ sql?: string;
525
+ targetDataset?: string;
526
+ targetDimension?: string;
527
+ }>;
528
+ preAggregations?: Record<string, false | {
529
+ type?: "rollup" | "original_sql" | "rollup_join";
530
+ dimensions?: string[];
531
+ measures?: string[];
532
+ segments?: string[];
533
+ timeDimension?: string;
534
+ granularity?: string;
535
+ partitionGranularity?: string;
536
+ rollups?: string[];
537
+ refreshKeySql?: string;
538
+ refreshKeyEvery?: string;
539
+ refreshKeyIncremental?: boolean;
540
+ refreshKeyUpdateWindow?: string;
541
+ buildRangeStartSql?: string;
542
+ buildRangeEndSql?: string;
543
+ lambda?: boolean;
544
+ }>;
545
+ }>, {
546
+ type?: import("./type-enums").DatasetTypeEnum;
547
+ name?: string;
548
+ description?: string;
549
+ dimensions?: Record<string, false | {
550
+ type?: import("./type-enums").DimensionTypesEnum;
551
+ name?: string;
552
+ description?: string;
553
+ sql?: string;
554
+ format?: import("./type-enums").DimensionFormatsEnum;
555
+ explode?: boolean;
556
+ index?: string | boolean;
557
+ switch?: {
558
+ when?: Record<string, false | ({
559
+ value?: string | number | boolean | (string | number | boolean)[];
560
+ dimension?: string;
561
+ operator?: import("./type-enums").FilterOperatorsEnum;
562
+ sql?: string;
563
+ } & {
564
+ description?: string;
565
+ label?: string;
566
+ })>;
567
+ else?: string;
568
+ segment?: boolean;
569
+ };
570
+ field?: string | string[];
571
+ public?: boolean;
572
+ primaryKey?: boolean;
573
+ subQuery?: boolean;
574
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
575
+ }>;
576
+ sql?: string;
577
+ collection?: {
578
+ filters?: import("./index").FiltersInterface;
579
+ collection?: string;
580
+ };
581
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
582
+ measures?: Record<string, false | {
583
+ type?: import("./type-enums").MeasureTypesEnum;
584
+ name?: string;
585
+ description?: string;
586
+ dimension?: string;
587
+ sql?: string;
588
+ format?: import("./type-enums").MeasureFormatsEnum;
589
+ index?: string;
590
+ public?: boolean;
591
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
592
+ }>;
593
+ segments?: Record<string, false | ({
594
+ value?: string | number | boolean | (string | number | boolean)[];
595
+ dimension?: string;
596
+ operator?: import("./type-enums").FilterOperatorsEnum;
597
+ sql?: string;
598
+ } & {
599
+ name?: string;
600
+ description?: string;
601
+ public?: boolean;
602
+ })>;
603
+ prefix?: string;
604
+ parent?: string;
605
+ relations?: Record<string, false | {
606
+ type?: import("./type-enums").RelationTypesEnum;
607
+ dimension?: string;
608
+ sql?: string;
609
+ targetDataset?: string;
610
+ targetDimension?: string;
611
+ }>;
612
+ preAggregations?: Record<string, false | {
613
+ type?: "rollup" | "original_sql" | "rollup_join";
614
+ dimensions?: string[];
615
+ measures?: string[];
616
+ segments?: string[];
617
+ timeDimension?: string;
618
+ granularity?: string;
619
+ partitionGranularity?: string;
620
+ rollups?: string[];
621
+ refreshKeySql?: string;
622
+ refreshKeyEvery?: string;
623
+ refreshKeyIncremental?: boolean;
624
+ refreshKeyUpdateWindow?: string;
625
+ buildRangeStartSql?: string;
626
+ buildRangeEndSql?: string;
627
+ lambda?: boolean;
628
+ }>;
629
+ }, {
630
+ type?: import("./type-enums").DatasetTypeEnum;
631
+ name?: string;
632
+ description?: string;
633
+ dimensions?: Record<string, false | {
634
+ type?: import("./type-enums").DimensionTypesEnum;
635
+ name?: string;
636
+ description?: string;
637
+ sql?: string;
638
+ format?: import("./type-enums").DimensionFormatsEnum;
639
+ explode?: boolean;
640
+ index?: string | boolean;
641
+ switch?: {
642
+ when?: Record<string, false | ({
643
+ value?: string | number | boolean | (string | number | boolean)[];
644
+ dimension?: string;
645
+ operator?: import("./type-enums").FilterOperatorsEnum;
646
+ sql?: string;
647
+ } & {
648
+ description?: string;
649
+ label?: string;
650
+ })>;
651
+ else?: string;
652
+ segment?: boolean;
653
+ };
654
+ field?: string | string[];
655
+ public?: boolean;
656
+ primaryKey?: boolean;
657
+ subQuery?: boolean;
658
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
659
+ }>;
660
+ sql?: string;
661
+ collection?: {
662
+ filters?: import("./index").FiltersInterface;
663
+ collection?: string;
664
+ };
665
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
666
+ measures?: Record<string, false | {
667
+ type?: import("./type-enums").MeasureTypesEnum;
668
+ name?: string;
669
+ description?: string;
670
+ dimension?: string;
671
+ sql?: string;
672
+ format?: import("./type-enums").MeasureFormatsEnum;
673
+ index?: string;
674
+ public?: boolean;
675
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
676
+ }>;
677
+ segments?: Record<string, false | ({
678
+ value?: string | number | boolean | (string | number | boolean)[];
679
+ dimension?: string;
680
+ operator?: import("./type-enums").FilterOperatorsEnum;
681
+ sql?: string;
682
+ } & {
683
+ name?: string;
684
+ description?: string;
685
+ public?: boolean;
686
+ })>;
687
+ prefix?: string;
688
+ parent?: string;
689
+ relations?: Record<string, false | {
690
+ type?: import("./type-enums").RelationTypesEnum;
691
+ dimension?: string;
692
+ sql?: string;
693
+ targetDataset?: string;
694
+ targetDimension?: string;
695
+ }>;
696
+ preAggregations?: Record<string, false | {
697
+ type?: "rollup" | "original_sql" | "rollup_join";
698
+ dimensions?: string[];
699
+ measures?: string[];
700
+ segments?: string[];
701
+ timeDimension?: string;
702
+ granularity?: string;
703
+ partitionGranularity?: string;
704
+ rollups?: string[];
705
+ refreshKeySql?: string;
706
+ refreshKeyEvery?: string;
707
+ refreshKeyIncremental?: boolean;
708
+ refreshKeyUpdateWindow?: string;
709
+ buildRangeStartSql?: string;
710
+ buildRangeEndSql?: string;
711
+ lambda?: boolean;
712
+ }>;
713
+ }>, z.ZodBoolean]>>;
714
+ semanticTriggers: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
715
+ name: z.ZodOptional<z.ZodString>;
716
+ description: z.ZodOptional<z.ZodString>;
717
+ eventType: z.ZodString;
718
+ dataset: z.ZodString;
719
+ dimensions: z.ZodArray<z.ZodString, "many">;
720
+ limit: z.ZodOptional<z.ZodNumber>;
721
+ filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
722
+ dimension: z.ZodString;
723
+ operator: z.ZodNativeEnum<typeof import("./type-enums").SemanticTriggerFilterOperatorsEnum>;
724
+ values: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">]>;
725
+ }, "strip", z.ZodTypeAny, {
726
+ values?: string | number | boolean | (string | number | boolean)[];
727
+ dimension?: string;
728
+ operator?: import("./type-enums").SemanticTriggerFilterOperatorsEnum;
729
+ }, {
730
+ values?: string | number | boolean | (string | number | boolean)[];
731
+ dimension?: string;
732
+ operator?: import("./type-enums").SemanticTriggerFilterOperatorsEnum;
733
+ }>, z.ZodLiteral<false>]>>>;
734
+ cron: z.ZodOptional<z.ZodNullable<z.ZodString>>;
735
+ tz: z.ZodOptional<z.ZodNullable<z.ZodString>>;
736
+ incrementalField: z.ZodOptional<z.ZodString>;
737
+ ungrouped: z.ZodOptional<z.ZodBoolean>;
738
+ }, "strip", z.ZodTypeAny, {
739
+ name?: string;
740
+ description?: string;
741
+ eventType?: string;
742
+ dataset?: string;
743
+ dimensions?: string[];
744
+ limit?: number;
745
+ filters?: Record<string, false | {
746
+ values?: string | number | boolean | (string | number | boolean)[];
747
+ dimension?: string;
748
+ operator?: import("./type-enums").SemanticTriggerFilterOperatorsEnum;
749
+ }>;
750
+ cron?: string;
751
+ tz?: string;
752
+ incrementalField?: string;
753
+ ungrouped?: boolean;
754
+ }, {
755
+ name?: string;
756
+ description?: string;
757
+ eventType?: string;
758
+ dataset?: string;
759
+ dimensions?: string[];
760
+ limit?: number;
761
+ filters?: Record<string, false | {
762
+ values?: string | number | boolean | (string | number | boolean)[];
763
+ dimension?: string;
764
+ operator?: import("./type-enums").SemanticTriggerFilterOperatorsEnum;
765
+ }>;
766
+ cron?: string;
767
+ tz?: string;
768
+ incrementalField?: string;
769
+ ungrouped?: boolean;
770
+ }>, z.ZodBoolean]>>;
771
+ connectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
772
+ identifier: z.ZodString;
773
+ connectorType: z.ZodNativeEnum<typeof import("../types").ConfiguredConnectorTypes>;
774
+ name: z.ZodString;
775
+ location: z.ZodString;
776
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
777
+ enabled: z.ZodBoolean;
778
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
779
+ identifier: z.ZodString;
780
+ version: z.ZodString;
781
+ name: z.ZodString;
782
+ description: z.ZodOptional<z.ZodString>;
783
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
784
+ inputParameters: z.ZodArray<z.ZodObject<{
785
+ name: z.ZodString;
786
+ type: z.ZodEnum<["string", "number", "boolean", "array"]>;
787
+ required: z.ZodOptional<z.ZodBoolean>;
788
+ items: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
789
+ }, "strip", z.ZodTypeAny, {
790
+ type?: "string" | "number" | "boolean" | "array";
791
+ name?: string;
792
+ required?: boolean;
793
+ items?: any[];
794
+ }, {
795
+ type?: "string" | "number" | "boolean" | "array";
796
+ name?: string;
797
+ required?: boolean;
798
+ items?: any[];
799
+ }>, "many">;
800
+ outputParameters: z.ZodAny;
801
+ mode: z.ZodOptional<z.ZodNativeEnum<typeof import("./type-enums").ConnectorOrigin>>;
802
+ createdAt: z.ZodOptional<z.ZodDate>;
803
+ updatedAt: z.ZodOptional<z.ZodDate>;
804
+ }, "strip", z.ZodTypeAny, {
805
+ mode?: import("./type-enums").ConnectorOrigin;
806
+ createdAt?: Date;
807
+ identifier?: string;
808
+ version?: string;
809
+ name?: string;
810
+ description?: string;
811
+ config?: Record<string, any>;
812
+ inputParameters?: {
813
+ type?: "string" | "number" | "boolean" | "array";
814
+ name?: string;
815
+ required?: boolean;
816
+ items?: any[];
817
+ }[];
818
+ outputParameters?: any;
819
+ updatedAt?: Date;
820
+ }, {
821
+ mode?: import("./type-enums").ConnectorOrigin;
822
+ createdAt?: Date;
823
+ identifier?: string;
824
+ version?: string;
825
+ name?: string;
826
+ description?: string;
827
+ config?: Record<string, any>;
828
+ inputParameters?: {
829
+ type?: "string" | "number" | "boolean" | "array";
830
+ name?: string;
831
+ required?: boolean;
832
+ items?: any[];
833
+ }[];
834
+ outputParameters?: any;
835
+ updatedAt?: Date;
836
+ }>, "many">>;
837
+ createdAt: z.ZodOptional<z.ZodDate>;
838
+ updatedAt: z.ZodOptional<z.ZodDate>;
839
+ }, "strip", z.ZodTypeAny, {
840
+ createdAt?: Date;
841
+ identifier?: string;
842
+ name?: string;
843
+ config?: Record<string, any>;
844
+ updatedAt?: Date;
845
+ connectorType?: import("../types").ConfiguredConnectorTypes;
846
+ location?: string;
847
+ enabled?: boolean;
848
+ actions?: {
849
+ mode?: import("./type-enums").ConnectorOrigin;
850
+ createdAt?: Date;
851
+ identifier?: string;
852
+ version?: string;
853
+ name?: string;
854
+ description?: string;
855
+ config?: Record<string, any>;
856
+ inputParameters?: {
857
+ type?: "string" | "number" | "boolean" | "array";
858
+ name?: string;
859
+ required?: boolean;
860
+ items?: any[];
861
+ }[];
862
+ outputParameters?: any;
863
+ updatedAt?: Date;
864
+ }[];
865
+ }, {
866
+ createdAt?: Date;
867
+ identifier?: string;
868
+ name?: string;
869
+ config?: Record<string, any>;
870
+ updatedAt?: Date;
871
+ connectorType?: import("../types").ConfiguredConnectorTypes;
872
+ location?: string;
873
+ enabled?: boolean;
874
+ actions?: {
875
+ mode?: import("./type-enums").ConnectorOrigin;
876
+ createdAt?: Date;
877
+ identifier?: string;
878
+ version?: string;
879
+ name?: string;
880
+ description?: string;
881
+ config?: Record<string, any>;
882
+ inputParameters?: {
883
+ type?: "string" | "number" | "boolean" | "array";
884
+ name?: string;
885
+ required?: boolean;
886
+ items?: any[];
887
+ }[];
888
+ outputParameters?: any;
889
+ updatedAt?: Date;
890
+ }[];
891
+ }>, z.ZodBoolean]>>>;
892
+ }, "strip", z.ZodTypeAny, {
893
+ identifier?: string;
894
+ version?: string;
895
+ name?: string;
896
+ description?: string;
897
+ prefix?: string;
898
+ datasets?: Record<string, boolean | {
899
+ type?: import("./type-enums").DatasetTypeEnum;
900
+ name?: string;
901
+ description?: string;
902
+ dimensions?: Record<string, false | {
903
+ type?: import("./type-enums").DimensionTypesEnum;
904
+ name?: string;
905
+ description?: string;
906
+ sql?: string;
907
+ format?: import("./type-enums").DimensionFormatsEnum;
908
+ explode?: boolean;
909
+ index?: string | boolean;
910
+ switch?: {
911
+ when?: Record<string, false | ({
912
+ value?: string | number | boolean | (string | number | boolean)[];
913
+ dimension?: string;
914
+ operator?: import("./type-enums").FilterOperatorsEnum;
915
+ sql?: string;
916
+ } & {
917
+ description?: string;
918
+ label?: string;
919
+ })>;
920
+ else?: string;
921
+ segment?: boolean;
922
+ };
923
+ field?: string | string[];
924
+ public?: boolean;
925
+ primaryKey?: boolean;
926
+ subQuery?: boolean;
927
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
928
+ }>;
929
+ sql?: string;
930
+ collection?: {
931
+ filters?: import("./index").FiltersInterface;
932
+ collection?: string;
933
+ };
934
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
935
+ measures?: Record<string, false | {
936
+ type?: import("./type-enums").MeasureTypesEnum;
937
+ name?: string;
938
+ description?: string;
939
+ dimension?: string;
940
+ sql?: string;
941
+ format?: import("./type-enums").MeasureFormatsEnum;
942
+ index?: string;
943
+ public?: boolean;
944
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
945
+ }>;
946
+ segments?: Record<string, false | ({
947
+ value?: string | number | boolean | (string | number | boolean)[];
948
+ dimension?: string;
949
+ operator?: import("./type-enums").FilterOperatorsEnum;
950
+ sql?: string;
951
+ } & {
952
+ name?: string;
953
+ description?: string;
954
+ public?: boolean;
955
+ })>;
956
+ prefix?: string;
957
+ parent?: string;
958
+ relations?: Record<string, false | {
959
+ type?: import("./type-enums").RelationTypesEnum;
960
+ dimension?: string;
961
+ sql?: string;
962
+ targetDataset?: string;
963
+ targetDimension?: string;
964
+ }>;
965
+ preAggregations?: Record<string, false | {
966
+ type?: "rollup" | "original_sql" | "rollup_join";
967
+ dimensions?: string[];
968
+ measures?: string[];
969
+ segments?: string[];
970
+ timeDimension?: string;
971
+ granularity?: string;
972
+ partitionGranularity?: string;
973
+ rollups?: string[];
974
+ refreshKeySql?: string;
975
+ refreshKeyEvery?: string;
976
+ refreshKeyIncremental?: boolean;
977
+ refreshKeyUpdateWindow?: string;
978
+ buildRangeStartSql?: string;
979
+ buildRangeEndSql?: string;
980
+ lambda?: boolean;
981
+ }>;
982
+ }>;
983
+ semanticTriggers?: Record<string, boolean | {
984
+ name?: string;
985
+ description?: string;
986
+ eventType?: string;
987
+ dataset?: string;
988
+ dimensions?: string[];
989
+ limit?: number;
990
+ filters?: Record<string, false | {
991
+ values?: string | number | boolean | (string | number | boolean)[];
992
+ dimension?: string;
993
+ operator?: import("./type-enums").SemanticTriggerFilterOperatorsEnum;
994
+ }>;
995
+ cron?: string;
996
+ tz?: string;
997
+ incrementalField?: string;
998
+ ungrouped?: boolean;
999
+ }>;
1000
+ connectors?: Record<string, boolean | {
1001
+ createdAt?: Date;
1002
+ identifier?: string;
1003
+ name?: string;
1004
+ config?: Record<string, any>;
1005
+ updatedAt?: Date;
1006
+ connectorType?: import("../types").ConfiguredConnectorTypes;
1007
+ location?: string;
1008
+ enabled?: boolean;
1009
+ actions?: {
1010
+ mode?: import("./type-enums").ConnectorOrigin;
1011
+ createdAt?: Date;
1012
+ identifier?: string;
1013
+ version?: string;
1014
+ name?: string;
1015
+ description?: string;
1016
+ config?: Record<string, any>;
1017
+ inputParameters?: {
1018
+ type?: "string" | "number" | "boolean" | "array";
1019
+ name?: string;
1020
+ required?: boolean;
1021
+ items?: any[];
1022
+ }[];
1023
+ outputParameters?: any;
1024
+ updatedAt?: Date;
1025
+ }[];
1026
+ }>;
1027
+ }, {
1028
+ identifier?: string;
1029
+ version?: string;
1030
+ name?: string;
1031
+ description?: string;
1032
+ prefix?: string;
1033
+ datasets?: Record<string, boolean | {
1034
+ type?: import("./type-enums").DatasetTypeEnum;
1035
+ name?: string;
1036
+ description?: string;
1037
+ dimensions?: Record<string, false | {
1038
+ type?: import("./type-enums").DimensionTypesEnum;
1039
+ name?: string;
1040
+ description?: string;
1041
+ sql?: string;
1042
+ format?: import("./type-enums").DimensionFormatsEnum;
1043
+ explode?: boolean;
1044
+ index?: string | boolean;
1045
+ switch?: {
1046
+ when?: Record<string, false | ({
1047
+ value?: string | number | boolean | (string | number | boolean)[];
1048
+ dimension?: string;
1049
+ operator?: import("./type-enums").FilterOperatorsEnum;
1050
+ sql?: string;
1051
+ } & {
1052
+ description?: string;
1053
+ label?: string;
1054
+ })>;
1055
+ else?: string;
1056
+ segment?: boolean;
1057
+ };
1058
+ field?: string | string[];
1059
+ public?: boolean;
1060
+ primaryKey?: boolean;
1061
+ subQuery?: boolean;
1062
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
1063
+ }>;
1064
+ sql?: string;
1065
+ collection?: {
1066
+ filters?: import("./index").FiltersInterface;
1067
+ collection?: string;
1068
+ };
1069
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
1070
+ measures?: Record<string, false | {
1071
+ type?: import("./type-enums").MeasureTypesEnum;
1072
+ name?: string;
1073
+ description?: string;
1074
+ dimension?: string;
1075
+ sql?: string;
1076
+ format?: import("./type-enums").MeasureFormatsEnum;
1077
+ index?: string;
1078
+ public?: boolean;
1079
+ meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>>;
1080
+ }>;
1081
+ segments?: Record<string, false | ({
1082
+ value?: string | number | boolean | (string | number | boolean)[];
1083
+ dimension?: string;
1084
+ operator?: import("./type-enums").FilterOperatorsEnum;
1085
+ sql?: string;
1086
+ } & {
1087
+ name?: string;
1088
+ description?: string;
1089
+ public?: boolean;
1090
+ })>;
1091
+ prefix?: string;
1092
+ parent?: string;
1093
+ relations?: Record<string, false | {
1094
+ type?: import("./type-enums").RelationTypesEnum;
1095
+ dimension?: string;
1096
+ sql?: string;
1097
+ targetDataset?: string;
1098
+ targetDimension?: string;
1099
+ }>;
1100
+ preAggregations?: Record<string, false | {
1101
+ type?: "rollup" | "original_sql" | "rollup_join";
1102
+ dimensions?: string[];
1103
+ measures?: string[];
1104
+ segments?: string[];
1105
+ timeDimension?: string;
1106
+ granularity?: string;
1107
+ partitionGranularity?: string;
1108
+ rollups?: string[];
1109
+ refreshKeySql?: string;
1110
+ refreshKeyEvery?: string;
1111
+ refreshKeyIncremental?: boolean;
1112
+ refreshKeyUpdateWindow?: string;
1113
+ buildRangeStartSql?: string;
1114
+ buildRangeEndSql?: string;
1115
+ lambda?: boolean;
1116
+ }>;
1117
+ }>;
1118
+ semanticTriggers?: Record<string, boolean | {
1119
+ name?: string;
1120
+ description?: string;
1121
+ eventType?: string;
1122
+ dataset?: string;
1123
+ dimensions?: string[];
1124
+ limit?: number;
1125
+ filters?: Record<string, false | {
1126
+ values?: string | number | boolean | (string | number | boolean)[];
1127
+ dimension?: string;
1128
+ operator?: import("./type-enums").SemanticTriggerFilterOperatorsEnum;
1129
+ }>;
1130
+ cron?: string;
1131
+ tz?: string;
1132
+ incrementalField?: string;
1133
+ ungrouped?: boolean;
1134
+ }>;
1135
+ connectors?: Record<string, boolean | {
1136
+ createdAt?: Date;
1137
+ identifier?: string;
1138
+ name?: string;
1139
+ config?: Record<string, any>;
1140
+ updatedAt?: Date;
1141
+ connectorType?: import("../types").ConfiguredConnectorTypes;
1142
+ location?: string;
1143
+ enabled?: boolean;
1144
+ actions?: {
1145
+ mode?: import("./type-enums").ConnectorOrigin;
1146
+ createdAt?: Date;
1147
+ identifier?: string;
1148
+ version?: string;
1149
+ name?: string;
1150
+ description?: string;
1151
+ config?: Record<string, any>;
1152
+ inputParameters?: {
1153
+ type?: "string" | "number" | "boolean" | "array";
1154
+ name?: string;
1155
+ required?: boolean;
1156
+ items?: any[];
1157
+ }[];
1158
+ outputParameters?: any;
1159
+ updatedAt?: Date;
1160
+ }[];
1161
+ }>;
1162
+ }>;
1163
+ export interface TemplateInterface {
1164
+ id: string;
1165
+ identifier: string;
1166
+ version: string;
1167
+ name: string;
1168
+ prefix: string;
1169
+ description: string;
1170
+ datasets: DatasetsInterface;
1171
+ semanticTriggers: SemanticTriggersInterface;
1172
+ connectors?: ConnectorsInterface;
1173
+ }
1174
+ export interface PostTemplateInterface extends Omit<TemplateInterface, 'id'> {
1175
+ identifier: string;
1176
+ version: string;
1177
+ name: string;
1178
+ prefix: string;
1179
+ description: string;
1180
+ datasets: DatasetsInterface;
1181
+ semanticTriggers: SemanticTriggersInterface;
1182
+ connectors?: ConnectorsInterface;
1183
+ }
1184
+ export interface TemplateVersionInterface {
1185
+ version: string;
1186
+ createdAt: Date;
1187
+ count: number;
1188
+ }
1189
+ export interface TemplateDetailInterface extends TemplateInterface {
1190
+ versions: Array<TemplateVersionInterface>;
1191
+ }