@transai/connector-runner-mkg 0.2.0 → 0.4.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 +15 -0
- package/index.cjs +2 -0
- package/index.cjs.map +7 -0
- package/index.js +2 -0
- package/index.js.map +7 -0
- package/libs/connector-runner-mkg/src/lib/actions-handler.d.ts +7 -0
- package/libs/connector-runner-mkg/src/lib/connector-runner-mkg.d.ts +8 -0
- package/libs/connector-runner-mkg/src/lib/extractor.service.d.ts +8 -0
- package/libs/connector-runner-mkg/src/lib/tables/_all.d.ts +4 -0
- package/libs/connector-runner-mkg/src/lib/tables/artg.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/arti.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/base/action.d.ts +21 -0
- package/libs/connector-runner-mkg/src/lib/tables/base/table.d.ts +15 -0
- package/libs/connector-runner-mkg/src/lib/tables/bwrg.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/bwrk.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/clch.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/debi.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/magl.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/magz.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/medw.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/parl.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/plnb.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/prbv.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/prdh.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/prdr.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/prmv.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/rela.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/rgrs.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/rsrc.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/rsrd.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/rsrg.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/stlh.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/stlm.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/stlr.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/tables/vrdg.d.ts +2 -0
- package/libs/connector-runner-mkg/src/lib/types.d.ts +34 -0
- package/libs/connector-runtime-sdk/src/index.d.ts +3 -0
- package/libs/connector-runtime-sdk/src/lib/connector-runtime.d.ts +16 -0
- package/libs/connector-runtime-sdk/src/lib/connector-runtime.interface.d.ts +5 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/files.sdk.interface.d.ts +18 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/http-client.interface.d.ts +38 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/index.d.ts +10 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/logger.sdk.interface.d.ts +7 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/offset-store.sdk.interface.d.ts +12 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/processing.sdk.interface.d.ts +13 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/receiver.sdk.interface.d.ts +14 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/sdk.interface.d.ts +31 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/sender.sdk.interface.d.ts +22 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/telemetry.sdk.interface.d.ts +15 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/templating.sdk.interface.d.ts +12 -0
- package/libs/types/src/index.d.ts +7 -0
- package/libs/types/src/lib/cube-query-config.types.d.ts +20 -0
- package/libs/types/src/lib/file-action.types.d.ts +5 -0
- package/libs/types/src/lib/http-status-codes.enum.d.ts +64 -0
- package/libs/types/src/lib/management-api/action-definition.interface.d.ts +12 -0
- package/libs/types/src/lib/management-api/chart.interface.d.ts +9 -0
- package/libs/types/src/lib/management-api/connector/connector.interface.d.ts +140 -0
- package/libs/types/src/lib/management-api/connector/connectors.interface.d.ts +126 -0
- package/libs/types/src/lib/management-api/connector-orchestrator-config.interface.d.ts +14 -0
- package/libs/types/src/lib/management-api/cube-dataset.interface.d.ts +93 -0
- package/libs/types/src/lib/management-api/dashboard.interface.d.ts +35 -0
- package/libs/types/src/lib/management-api/dataset/collection.interface.d.ts +16 -0
- package/libs/types/src/lib/management-api/dataset/dataset-record.interface.d.ts +5 -0
- package/libs/types/src/lib/management-api/dataset/dataset.interface.d.ts +730 -0
- package/libs/types/src/lib/management-api/dataset/datasets.interface.d.ts +710 -0
- package/libs/types/src/lib/management-api/dataset/dimension.interface.d.ts +205 -0
- package/libs/types/src/lib/management-api/dataset/dimensions.interface.d.ts +186 -0
- package/libs/types/src/lib/management-api/dataset/filter-group.interface.d.ts +8 -0
- package/libs/types/src/lib/management-api/dataset/filter.interface.d.ts +34 -0
- package/libs/types/src/lib/management-api/dataset/filters.interface.d.ts +7 -0
- package/libs/types/src/lib/management-api/dataset/measure.interface.d.ts +65 -0
- package/libs/types/src/lib/management-api/dataset/measures.interface.d.ts +56 -0
- package/libs/types/src/lib/management-api/dataset/meta.interface.d.ts +9 -0
- package/libs/types/src/lib/management-api/dataset/pre-aggregate.interface.d.ts +69 -0
- package/libs/types/src/lib/management-api/dataset/pre-aggregations.interface.d.ts +54 -0
- package/libs/types/src/lib/management-api/dataset/relation.interface.d.ts +40 -0
- package/libs/types/src/lib/management-api/dataset/relations.interface.d.ts +36 -0
- package/libs/types/src/lib/management-api/dataset/segment.interface.d.ts +45 -0
- package/libs/types/src/lib/management-api/dataset/segments.interface.d.ts +43 -0
- package/libs/types/src/lib/management-api/dataset/switch.interface.d.ts +70 -0
- package/libs/types/src/lib/management-api/dataset/when-item.interface.d.ts +41 -0
- package/libs/types/src/lib/management-api/dataset/when-items.interface.d.ts +40 -0
- package/libs/types/src/lib/management-api/event-origin.interface.d.ts +24 -0
- package/libs/types/src/lib/management-api/index.d.ts +39 -0
- package/libs/types/src/lib/management-api/semantic-trigger/custom-cron-trigger-record.interface.d.ts +6 -0
- package/libs/types/src/lib/management-api/semantic-trigger/index.d.ts +6 -0
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filter.interface.d.ts +20 -0
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filters.interface.d.ts +18 -0
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-record.interface.d.ts +6 -0
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger.interface.d.ts +75 -0
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-triggers.interface.d.ts +62 -0
- package/libs/types/src/lib/management-api/template-implementation-overrides.interface.d.ts +1152 -0
- package/libs/types/src/lib/management-api/template-implementation.interface.d.ts +2860 -0
- package/libs/types/src/lib/management-api/template.interface.d.ts +1191 -0
- package/libs/types/src/lib/management-api/tenant.interface.d.ts +8 -0
- package/libs/types/src/lib/management-api/type-enums.d.ts +85 -0
- package/libs/types/src/lib/management-api/web/generic-filter.dto.d.ts +37 -0
- package/libs/types/src/lib/management-api/web/index.d.ts +2 -0
- package/libs/types/src/lib/management-api/web/paginated-response.interface.d.ts +17 -0
- package/libs/types/src/lib/management-api/workflow/action.interface.d.ts +85 -0
- package/libs/types/src/lib/management-api/workflow/index.d.ts +6 -0
- package/libs/types/src/lib/management-api/workflow/offset.interface.d.ts +14 -0
- package/libs/types/src/lib/management-api/workflow/trigger-types.interface.d.ts +14 -0
- package/libs/types/src/lib/management-api/workflow/workflow-definition.interface.d.ts +57 -0
- package/libs/types/src/lib/management-api/workflow/workflow-run.d.ts +70 -0
- package/libs/types/src/lib/management-api/workflow/workflow.drawing.d.ts +102 -0
- package/libs/types/src/lib/message.types.d.ts +59 -0
- package/libs/types/src/lib/response.types.d.ts +27 -0
- package/libs/types/src/lib/types.d.ts +116 -0
- package/package.json +1 -1
- package/.eslintrc.json +0 -30
- package/jest.config.ts +0 -10
- package/project.json +0 -29
- package/src/lib/actions-handler.spec.ts +0 -177
- package/src/lib/actions-handler.ts +0 -143
- package/src/lib/connector-runner-mkg.spec.ts +0 -219
- package/src/lib/connector-runner-mkg.ts +0 -155
- package/src/lib/extractor.service.spec.ts +0 -123
- package/src/lib/extractor.service.ts +0 -125
- package/src/lib/tables/_all.ts +0 -60
- package/src/lib/tables/artg.ts +0 -12
- package/src/lib/tables/arti.ts +0 -99
- package/src/lib/tables/base/action.ts +0 -70
- package/src/lib/tables/base/table.ts +0 -57
- package/src/lib/tables/bwrg.ts +0 -13
- package/src/lib/tables/bwrk.ts +0 -60
- package/src/lib/tables/clch.ts +0 -42
- package/src/lib/tables/debi.ts +0 -62
- package/src/lib/tables/magl.ts +0 -15
- package/src/lib/tables/magz.ts +0 -14
- package/src/lib/tables/medw.ts +0 -97
- package/src/lib/tables/parl.ts +0 -24
- package/src/lib/tables/plnb.ts +0 -46
- package/src/lib/tables/prbv.ts +0 -31
- package/src/lib/tables/prdh.ts +0 -46
- package/src/lib/tables/prdr.ts +0 -25
- package/src/lib/tables/prmv.ts +0 -31
- package/src/lib/tables/rela.ts +0 -40
- package/src/lib/tables/rgrs.ts +0 -68
- package/src/lib/tables/rsrc.ts +0 -23
- package/src/lib/tables/rsrd.ts +0 -98
- package/src/lib/tables/rsrg.ts +0 -6
- package/src/lib/tables/stlh.ts +0 -24
- package/src/lib/tables/stlm.ts +0 -80
- package/src/lib/tables/stlr.ts +0 -60
- package/src/lib/tables/vrdg.ts +0 -27
- package/src/lib/types.ts +0 -45
- package/tsconfig.json +0 -22
- package/tsconfig.lib.json +0 -10
- package/tsconfig.spec.json +0 -14
- /package/{src/index.ts → libs/connector-runner-mkg/src/index.d.ts} +0 -0
|
@@ -0,0 +1,730 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DatasetTypeEnum } from '../type-enums';
|
|
3
|
+
import { CollectionInterface } from './collection.interface';
|
|
4
|
+
import { DimensionsInterface } from './dimensions.interface';
|
|
5
|
+
import { SegmentsInterface } from './segments.interface';
|
|
6
|
+
import { RelationsInterface } from './relations.interface';
|
|
7
|
+
import { MeasuresInterface } from './measures.interface';
|
|
8
|
+
import { MetaInterface } from './meta.interface';
|
|
9
|
+
import { PreAggregationsInterface } from './pre-aggregations.interface';
|
|
10
|
+
export declare const DatasetSchema: z.ZodEffects<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
description: z.ZodString;
|
|
13
|
+
type: z.ZodNativeEnum<typeof DatasetTypeEnum>;
|
|
14
|
+
prefix: z.ZodString;
|
|
15
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
16
|
+
sql: z.ZodOptional<z.ZodString>;
|
|
17
|
+
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]>>>;
|
|
18
|
+
collection: z.ZodOptional<z.ZodObject<{
|
|
19
|
+
collection: z.ZodString;
|
|
20
|
+
filters: z.ZodOptional<z.ZodType<import("./filters.interface").FiltersInterface, z.ZodTypeDef, import("./filters.interface").FiltersInterface>>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
collection: string;
|
|
23
|
+
filters?: import("./filters.interface").FiltersInterface | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
collection: string;
|
|
26
|
+
filters?: import("./filters.interface").FiltersInterface | undefined;
|
|
27
|
+
}>>;
|
|
28
|
+
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
description: z.ZodString;
|
|
31
|
+
type: z.ZodNativeEnum<typeof import("../type-enums").DimensionTypesEnum>;
|
|
32
|
+
format: z.ZodOptional<z.ZodNativeEnum<typeof import("../type-enums").DimensionFormatsEnum>>;
|
|
33
|
+
explode: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
index: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
35
|
+
switch: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
when: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
37
|
+
sql: z.ZodOptional<z.ZodString>;
|
|
38
|
+
dimension: z.ZodOptional<z.ZodString>;
|
|
39
|
+
operator: z.ZodOptional<z.ZodNativeEnum<typeof import("../type-enums").FilterOperatorsEnum>>;
|
|
40
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">]>>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
43
|
+
dimension?: string | undefined;
|
|
44
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
45
|
+
sql?: string | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
48
|
+
dimension?: string | undefined;
|
|
49
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
50
|
+
sql?: string | undefined;
|
|
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
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
58
|
+
dimension?: string | undefined;
|
|
59
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
60
|
+
sql?: string | undefined;
|
|
61
|
+
}>, z.ZodObject<{
|
|
62
|
+
label: z.ZodString;
|
|
63
|
+
description: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
label: string;
|
|
66
|
+
description?: string | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
label: string;
|
|
69
|
+
description?: string | undefined;
|
|
70
|
+
}>>, z.ZodLiteral<false>]>>;
|
|
71
|
+
else: z.ZodOptional<z.ZodString>;
|
|
72
|
+
segment: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
when: Record<string, false | ({
|
|
75
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
76
|
+
dimension?: string | undefined;
|
|
77
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
78
|
+
sql?: string | undefined;
|
|
79
|
+
} & {
|
|
80
|
+
label: string;
|
|
81
|
+
description?: string | undefined;
|
|
82
|
+
})>;
|
|
83
|
+
else?: string | undefined;
|
|
84
|
+
segment?: boolean | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
when: Record<string, false | ({
|
|
87
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
88
|
+
dimension?: string | undefined;
|
|
89
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
90
|
+
sql?: string | undefined;
|
|
91
|
+
} & {
|
|
92
|
+
label: string;
|
|
93
|
+
description?: string | undefined;
|
|
94
|
+
})>;
|
|
95
|
+
else?: string | undefined;
|
|
96
|
+
segment?: boolean | undefined;
|
|
97
|
+
}>>;
|
|
98
|
+
field: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
99
|
+
sql: z.ZodOptional<z.ZodString>;
|
|
100
|
+
public: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
+
subQuery: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
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]>>>;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
type: import("../type-enums").DimensionTypesEnum;
|
|
106
|
+
name: string;
|
|
107
|
+
description: string;
|
|
108
|
+
sql?: string | undefined;
|
|
109
|
+
format?: import("../type-enums").DimensionFormatsEnum | undefined;
|
|
110
|
+
explode?: boolean | undefined;
|
|
111
|
+
index?: string | boolean | undefined;
|
|
112
|
+
switch?: {
|
|
113
|
+
when: Record<string, false | ({
|
|
114
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
115
|
+
dimension?: string | undefined;
|
|
116
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
117
|
+
sql?: string | undefined;
|
|
118
|
+
} & {
|
|
119
|
+
label: string;
|
|
120
|
+
description?: string | undefined;
|
|
121
|
+
})>;
|
|
122
|
+
else?: string | undefined;
|
|
123
|
+
segment?: boolean | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
field?: string | string[] | undefined;
|
|
126
|
+
public?: boolean | undefined;
|
|
127
|
+
primaryKey?: boolean | undefined;
|
|
128
|
+
subQuery?: boolean | undefined;
|
|
129
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
130
|
+
}, {
|
|
131
|
+
type: import("../type-enums").DimensionTypesEnum;
|
|
132
|
+
name: string;
|
|
133
|
+
description: string;
|
|
134
|
+
sql?: string | undefined;
|
|
135
|
+
format?: import("../type-enums").DimensionFormatsEnum | undefined;
|
|
136
|
+
explode?: boolean | undefined;
|
|
137
|
+
index?: string | boolean | undefined;
|
|
138
|
+
switch?: {
|
|
139
|
+
when: Record<string, false | ({
|
|
140
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
141
|
+
dimension?: string | undefined;
|
|
142
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
143
|
+
sql?: string | undefined;
|
|
144
|
+
} & {
|
|
145
|
+
label: string;
|
|
146
|
+
description?: string | undefined;
|
|
147
|
+
})>;
|
|
148
|
+
else?: string | undefined;
|
|
149
|
+
segment?: boolean | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
field?: string | string[] | undefined;
|
|
152
|
+
public?: boolean | undefined;
|
|
153
|
+
primaryKey?: boolean | undefined;
|
|
154
|
+
subQuery?: boolean | undefined;
|
|
155
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
156
|
+
}>, {
|
|
157
|
+
type: import("../type-enums").DimensionTypesEnum;
|
|
158
|
+
name: string;
|
|
159
|
+
description: string;
|
|
160
|
+
sql?: string | undefined;
|
|
161
|
+
format?: import("../type-enums").DimensionFormatsEnum | undefined;
|
|
162
|
+
explode?: boolean | undefined;
|
|
163
|
+
index?: string | boolean | undefined;
|
|
164
|
+
switch?: {
|
|
165
|
+
when: Record<string, false | ({
|
|
166
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
167
|
+
dimension?: string | undefined;
|
|
168
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
169
|
+
sql?: string | undefined;
|
|
170
|
+
} & {
|
|
171
|
+
label: string;
|
|
172
|
+
description?: string | undefined;
|
|
173
|
+
})>;
|
|
174
|
+
else?: string | undefined;
|
|
175
|
+
segment?: boolean | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
field?: string | string[] | undefined;
|
|
178
|
+
public?: boolean | undefined;
|
|
179
|
+
primaryKey?: boolean | undefined;
|
|
180
|
+
subQuery?: boolean | undefined;
|
|
181
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
182
|
+
}, {
|
|
183
|
+
type: import("../type-enums").DimensionTypesEnum;
|
|
184
|
+
name: string;
|
|
185
|
+
description: string;
|
|
186
|
+
sql?: string | undefined;
|
|
187
|
+
format?: import("../type-enums").DimensionFormatsEnum | undefined;
|
|
188
|
+
explode?: boolean | undefined;
|
|
189
|
+
index?: string | boolean | undefined;
|
|
190
|
+
switch?: {
|
|
191
|
+
when: Record<string, false | ({
|
|
192
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
193
|
+
dimension?: string | undefined;
|
|
194
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
195
|
+
sql?: string | undefined;
|
|
196
|
+
} & {
|
|
197
|
+
label: string;
|
|
198
|
+
description?: string | undefined;
|
|
199
|
+
})>;
|
|
200
|
+
else?: string | undefined;
|
|
201
|
+
segment?: boolean | undefined;
|
|
202
|
+
} | undefined;
|
|
203
|
+
field?: string | string[] | undefined;
|
|
204
|
+
public?: boolean | undefined;
|
|
205
|
+
primaryKey?: boolean | undefined;
|
|
206
|
+
subQuery?: boolean | undefined;
|
|
207
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
208
|
+
}>, z.ZodLiteral<false>]>>>;
|
|
209
|
+
segments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
210
|
+
sql: z.ZodOptional<z.ZodString>;
|
|
211
|
+
dimension: z.ZodOptional<z.ZodString>;
|
|
212
|
+
operator: z.ZodOptional<z.ZodNativeEnum<typeof import("../type-enums").FilterOperatorsEnum>>;
|
|
213
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">]>>;
|
|
214
|
+
}, "strip", z.ZodTypeAny, {
|
|
215
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
216
|
+
dimension?: string | undefined;
|
|
217
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
218
|
+
sql?: string | undefined;
|
|
219
|
+
}, {
|
|
220
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
221
|
+
dimension?: string | undefined;
|
|
222
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
223
|
+
sql?: string | undefined;
|
|
224
|
+
}>, {
|
|
225
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
226
|
+
dimension?: string | undefined;
|
|
227
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
228
|
+
sql?: string | undefined;
|
|
229
|
+
}, {
|
|
230
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
231
|
+
dimension?: string | undefined;
|
|
232
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
233
|
+
sql?: string | undefined;
|
|
234
|
+
}>, z.ZodObject<{
|
|
235
|
+
name: z.ZodOptional<z.ZodString>;
|
|
236
|
+
description: z.ZodOptional<z.ZodString>;
|
|
237
|
+
public: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
239
|
+
name?: string | undefined;
|
|
240
|
+
description?: string | undefined;
|
|
241
|
+
public?: boolean | undefined;
|
|
242
|
+
}, {
|
|
243
|
+
name?: string | undefined;
|
|
244
|
+
description?: string | undefined;
|
|
245
|
+
public?: boolean | undefined;
|
|
246
|
+
}>>, z.ZodLiteral<false>]>>>;
|
|
247
|
+
relations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
248
|
+
type: z.ZodNativeEnum<typeof import("../type-enums").RelationTypesEnum>;
|
|
249
|
+
dimension: z.ZodOptional<z.ZodString>;
|
|
250
|
+
targetDataset: z.ZodString;
|
|
251
|
+
targetDimension: z.ZodOptional<z.ZodString>;
|
|
252
|
+
sql: z.ZodOptional<z.ZodString>;
|
|
253
|
+
}, "strip", z.ZodTypeAny, {
|
|
254
|
+
type: import("../type-enums").RelationTypesEnum;
|
|
255
|
+
targetDataset: string;
|
|
256
|
+
dimension?: string | undefined;
|
|
257
|
+
sql?: string | undefined;
|
|
258
|
+
targetDimension?: string | undefined;
|
|
259
|
+
}, {
|
|
260
|
+
type: import("../type-enums").RelationTypesEnum;
|
|
261
|
+
targetDataset: string;
|
|
262
|
+
dimension?: string | undefined;
|
|
263
|
+
sql?: string | undefined;
|
|
264
|
+
targetDimension?: string | undefined;
|
|
265
|
+
}>, {
|
|
266
|
+
type: import("../type-enums").RelationTypesEnum;
|
|
267
|
+
targetDataset: string;
|
|
268
|
+
dimension?: string | undefined;
|
|
269
|
+
sql?: string | undefined;
|
|
270
|
+
targetDimension?: string | undefined;
|
|
271
|
+
}, {
|
|
272
|
+
type: import("../type-enums").RelationTypesEnum;
|
|
273
|
+
targetDataset: string;
|
|
274
|
+
dimension?: string | undefined;
|
|
275
|
+
sql?: string | undefined;
|
|
276
|
+
targetDimension?: string | undefined;
|
|
277
|
+
}>, z.ZodLiteral<false>]>>>;
|
|
278
|
+
measures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
description: z.ZodOptional<z.ZodString>;
|
|
281
|
+
type: z.ZodNativeEnum<typeof import("../type-enums").MeasureTypesEnum>;
|
|
282
|
+
format: z.ZodOptional<z.ZodNativeEnum<typeof import("../type-enums").MeasureFormatsEnum>>;
|
|
283
|
+
index: z.ZodOptional<z.ZodString>;
|
|
284
|
+
sql: z.ZodOptional<z.ZodString>;
|
|
285
|
+
dimension: z.ZodOptional<z.ZodString>;
|
|
286
|
+
public: z.ZodOptional<z.ZodBoolean>;
|
|
287
|
+
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]>>>;
|
|
288
|
+
}, "strip", z.ZodTypeAny, {
|
|
289
|
+
type: import("../type-enums").MeasureTypesEnum;
|
|
290
|
+
name: string;
|
|
291
|
+
description?: string | undefined;
|
|
292
|
+
dimension?: string | undefined;
|
|
293
|
+
sql?: string | undefined;
|
|
294
|
+
format?: import("../type-enums").MeasureFormatsEnum | undefined;
|
|
295
|
+
index?: string | undefined;
|
|
296
|
+
public?: boolean | undefined;
|
|
297
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
298
|
+
}, {
|
|
299
|
+
type: import("../type-enums").MeasureTypesEnum;
|
|
300
|
+
name: string;
|
|
301
|
+
description?: string | undefined;
|
|
302
|
+
dimension?: string | undefined;
|
|
303
|
+
sql?: string | undefined;
|
|
304
|
+
format?: import("../type-enums").MeasureFormatsEnum | undefined;
|
|
305
|
+
index?: string | undefined;
|
|
306
|
+
public?: boolean | undefined;
|
|
307
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
308
|
+
}>, {
|
|
309
|
+
type: import("../type-enums").MeasureTypesEnum;
|
|
310
|
+
name: string;
|
|
311
|
+
description?: string | undefined;
|
|
312
|
+
dimension?: string | undefined;
|
|
313
|
+
sql?: string | undefined;
|
|
314
|
+
format?: import("../type-enums").MeasureFormatsEnum | undefined;
|
|
315
|
+
index?: string | undefined;
|
|
316
|
+
public?: boolean | undefined;
|
|
317
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
318
|
+
}, {
|
|
319
|
+
type: import("../type-enums").MeasureTypesEnum;
|
|
320
|
+
name: string;
|
|
321
|
+
description?: string | undefined;
|
|
322
|
+
dimension?: string | undefined;
|
|
323
|
+
sql?: string | undefined;
|
|
324
|
+
format?: import("../type-enums").MeasureFormatsEnum | undefined;
|
|
325
|
+
index?: string | undefined;
|
|
326
|
+
public?: boolean | undefined;
|
|
327
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
328
|
+
}>, z.ZodLiteral<false>]>>>;
|
|
329
|
+
preAggregations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
330
|
+
type: z.ZodOptional<z.ZodEnum<["rollup", "original_sql", "rollup_join"]>>;
|
|
331
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
332
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
333
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
334
|
+
timeDimension: z.ZodOptional<z.ZodString>;
|
|
335
|
+
granularity: z.ZodOptional<z.ZodString>;
|
|
336
|
+
partitionGranularity: z.ZodOptional<z.ZodString>;
|
|
337
|
+
rollups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
338
|
+
refreshKeySql: z.ZodOptional<z.ZodString>;
|
|
339
|
+
refreshKeyEvery: z.ZodOptional<z.ZodString>;
|
|
340
|
+
refreshKeyIncremental: z.ZodOptional<z.ZodBoolean>;
|
|
341
|
+
refreshKeyUpdateWindow: z.ZodOptional<z.ZodString>;
|
|
342
|
+
buildRangeStartSql: z.ZodOptional<z.ZodString>;
|
|
343
|
+
buildRangeEndSql: z.ZodOptional<z.ZodString>;
|
|
344
|
+
lambda: z.ZodOptional<z.ZodBoolean>;
|
|
345
|
+
}, "strip", z.ZodTypeAny, {
|
|
346
|
+
type?: "rollup" | "original_sql" | "rollup_join" | undefined;
|
|
347
|
+
dimensions?: string[] | undefined;
|
|
348
|
+
measures?: string[] | undefined;
|
|
349
|
+
segments?: string[] | undefined;
|
|
350
|
+
timeDimension?: string | undefined;
|
|
351
|
+
granularity?: string | undefined;
|
|
352
|
+
partitionGranularity?: string | undefined;
|
|
353
|
+
rollups?: string[] | undefined;
|
|
354
|
+
refreshKeySql?: string | undefined;
|
|
355
|
+
refreshKeyEvery?: string | undefined;
|
|
356
|
+
refreshKeyIncremental?: boolean | undefined;
|
|
357
|
+
refreshKeyUpdateWindow?: string | undefined;
|
|
358
|
+
buildRangeStartSql?: string | undefined;
|
|
359
|
+
buildRangeEndSql?: string | undefined;
|
|
360
|
+
lambda?: boolean | undefined;
|
|
361
|
+
}, {
|
|
362
|
+
type?: "rollup" | "original_sql" | "rollup_join" | undefined;
|
|
363
|
+
dimensions?: string[] | undefined;
|
|
364
|
+
measures?: string[] | undefined;
|
|
365
|
+
segments?: string[] | undefined;
|
|
366
|
+
timeDimension?: string | undefined;
|
|
367
|
+
granularity?: string | undefined;
|
|
368
|
+
partitionGranularity?: string | undefined;
|
|
369
|
+
rollups?: string[] | undefined;
|
|
370
|
+
refreshKeySql?: string | undefined;
|
|
371
|
+
refreshKeyEvery?: string | undefined;
|
|
372
|
+
refreshKeyIncremental?: boolean | undefined;
|
|
373
|
+
refreshKeyUpdateWindow?: string | undefined;
|
|
374
|
+
buildRangeStartSql?: string | undefined;
|
|
375
|
+
buildRangeEndSql?: string | undefined;
|
|
376
|
+
lambda?: boolean | undefined;
|
|
377
|
+
}>, z.ZodLiteral<false>]>>>;
|
|
378
|
+
}, "strip", z.ZodTypeAny, {
|
|
379
|
+
type: DatasetTypeEnum;
|
|
380
|
+
name: string;
|
|
381
|
+
description: string;
|
|
382
|
+
prefix: string;
|
|
383
|
+
dimensions?: Record<string, false | {
|
|
384
|
+
type: import("../type-enums").DimensionTypesEnum;
|
|
385
|
+
name: string;
|
|
386
|
+
description: string;
|
|
387
|
+
sql?: string | undefined;
|
|
388
|
+
format?: import("../type-enums").DimensionFormatsEnum | undefined;
|
|
389
|
+
explode?: boolean | undefined;
|
|
390
|
+
index?: string | boolean | undefined;
|
|
391
|
+
switch?: {
|
|
392
|
+
when: Record<string, false | ({
|
|
393
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
394
|
+
dimension?: string | undefined;
|
|
395
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
396
|
+
sql?: string | undefined;
|
|
397
|
+
} & {
|
|
398
|
+
label: string;
|
|
399
|
+
description?: string | undefined;
|
|
400
|
+
})>;
|
|
401
|
+
else?: string | undefined;
|
|
402
|
+
segment?: boolean | undefined;
|
|
403
|
+
} | undefined;
|
|
404
|
+
field?: string | string[] | undefined;
|
|
405
|
+
public?: boolean | undefined;
|
|
406
|
+
primaryKey?: boolean | undefined;
|
|
407
|
+
subQuery?: boolean | undefined;
|
|
408
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
409
|
+
}> | undefined;
|
|
410
|
+
sql?: string | undefined;
|
|
411
|
+
collection?: {
|
|
412
|
+
collection: string;
|
|
413
|
+
filters?: import("./filters.interface").FiltersInterface | undefined;
|
|
414
|
+
} | undefined;
|
|
415
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
416
|
+
measures?: Record<string, false | {
|
|
417
|
+
type: import("../type-enums").MeasureTypesEnum;
|
|
418
|
+
name: string;
|
|
419
|
+
description?: string | undefined;
|
|
420
|
+
dimension?: string | undefined;
|
|
421
|
+
sql?: string | undefined;
|
|
422
|
+
format?: import("../type-enums").MeasureFormatsEnum | undefined;
|
|
423
|
+
index?: string | undefined;
|
|
424
|
+
public?: boolean | undefined;
|
|
425
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
426
|
+
}> | undefined;
|
|
427
|
+
segments?: Record<string, false | ({
|
|
428
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
429
|
+
dimension?: string | undefined;
|
|
430
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
431
|
+
sql?: string | undefined;
|
|
432
|
+
} & {
|
|
433
|
+
name?: string | undefined;
|
|
434
|
+
description?: string | undefined;
|
|
435
|
+
public?: boolean | undefined;
|
|
436
|
+
})> | undefined;
|
|
437
|
+
parent?: string | undefined;
|
|
438
|
+
relations?: Record<string, false | {
|
|
439
|
+
type: import("../type-enums").RelationTypesEnum;
|
|
440
|
+
targetDataset: string;
|
|
441
|
+
dimension?: string | undefined;
|
|
442
|
+
sql?: string | undefined;
|
|
443
|
+
targetDimension?: string | undefined;
|
|
444
|
+
}> | undefined;
|
|
445
|
+
preAggregations?: Record<string, false | {
|
|
446
|
+
type?: "rollup" | "original_sql" | "rollup_join" | undefined;
|
|
447
|
+
dimensions?: string[] | undefined;
|
|
448
|
+
measures?: string[] | undefined;
|
|
449
|
+
segments?: string[] | undefined;
|
|
450
|
+
timeDimension?: string | undefined;
|
|
451
|
+
granularity?: string | undefined;
|
|
452
|
+
partitionGranularity?: string | undefined;
|
|
453
|
+
rollups?: string[] | undefined;
|
|
454
|
+
refreshKeySql?: string | undefined;
|
|
455
|
+
refreshKeyEvery?: string | undefined;
|
|
456
|
+
refreshKeyIncremental?: boolean | undefined;
|
|
457
|
+
refreshKeyUpdateWindow?: string | undefined;
|
|
458
|
+
buildRangeStartSql?: string | undefined;
|
|
459
|
+
buildRangeEndSql?: string | undefined;
|
|
460
|
+
lambda?: boolean | undefined;
|
|
461
|
+
}> | undefined;
|
|
462
|
+
}, {
|
|
463
|
+
type: DatasetTypeEnum;
|
|
464
|
+
name: string;
|
|
465
|
+
description: string;
|
|
466
|
+
prefix: string;
|
|
467
|
+
dimensions?: Record<string, false | {
|
|
468
|
+
type: import("../type-enums").DimensionTypesEnum;
|
|
469
|
+
name: string;
|
|
470
|
+
description: string;
|
|
471
|
+
sql?: string | undefined;
|
|
472
|
+
format?: import("../type-enums").DimensionFormatsEnum | undefined;
|
|
473
|
+
explode?: boolean | undefined;
|
|
474
|
+
index?: string | boolean | undefined;
|
|
475
|
+
switch?: {
|
|
476
|
+
when: Record<string, false | ({
|
|
477
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
478
|
+
dimension?: string | undefined;
|
|
479
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
480
|
+
sql?: string | undefined;
|
|
481
|
+
} & {
|
|
482
|
+
label: string;
|
|
483
|
+
description?: string | undefined;
|
|
484
|
+
})>;
|
|
485
|
+
else?: string | undefined;
|
|
486
|
+
segment?: boolean | undefined;
|
|
487
|
+
} | undefined;
|
|
488
|
+
field?: string | string[] | undefined;
|
|
489
|
+
public?: boolean | undefined;
|
|
490
|
+
primaryKey?: boolean | undefined;
|
|
491
|
+
subQuery?: boolean | undefined;
|
|
492
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
493
|
+
}> | undefined;
|
|
494
|
+
sql?: string | undefined;
|
|
495
|
+
collection?: {
|
|
496
|
+
collection: string;
|
|
497
|
+
filters?: import("./filters.interface").FiltersInterface | undefined;
|
|
498
|
+
} | undefined;
|
|
499
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
500
|
+
measures?: Record<string, false | {
|
|
501
|
+
type: import("../type-enums").MeasureTypesEnum;
|
|
502
|
+
name: string;
|
|
503
|
+
description?: string | undefined;
|
|
504
|
+
dimension?: string | undefined;
|
|
505
|
+
sql?: string | undefined;
|
|
506
|
+
format?: import("../type-enums").MeasureFormatsEnum | undefined;
|
|
507
|
+
index?: string | undefined;
|
|
508
|
+
public?: boolean | undefined;
|
|
509
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
510
|
+
}> | undefined;
|
|
511
|
+
segments?: Record<string, false | ({
|
|
512
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
513
|
+
dimension?: string | undefined;
|
|
514
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
515
|
+
sql?: string | undefined;
|
|
516
|
+
} & {
|
|
517
|
+
name?: string | undefined;
|
|
518
|
+
description?: string | undefined;
|
|
519
|
+
public?: boolean | undefined;
|
|
520
|
+
})> | undefined;
|
|
521
|
+
parent?: string | undefined;
|
|
522
|
+
relations?: Record<string, false | {
|
|
523
|
+
type: import("../type-enums").RelationTypesEnum;
|
|
524
|
+
targetDataset: string;
|
|
525
|
+
dimension?: string | undefined;
|
|
526
|
+
sql?: string | undefined;
|
|
527
|
+
targetDimension?: string | undefined;
|
|
528
|
+
}> | undefined;
|
|
529
|
+
preAggregations?: Record<string, false | {
|
|
530
|
+
type?: "rollup" | "original_sql" | "rollup_join" | undefined;
|
|
531
|
+
dimensions?: string[] | undefined;
|
|
532
|
+
measures?: string[] | undefined;
|
|
533
|
+
segments?: string[] | undefined;
|
|
534
|
+
timeDimension?: string | undefined;
|
|
535
|
+
granularity?: string | undefined;
|
|
536
|
+
partitionGranularity?: string | undefined;
|
|
537
|
+
rollups?: string[] | undefined;
|
|
538
|
+
refreshKeySql?: string | undefined;
|
|
539
|
+
refreshKeyEvery?: string | undefined;
|
|
540
|
+
refreshKeyIncremental?: boolean | undefined;
|
|
541
|
+
refreshKeyUpdateWindow?: string | undefined;
|
|
542
|
+
buildRangeStartSql?: string | undefined;
|
|
543
|
+
buildRangeEndSql?: string | undefined;
|
|
544
|
+
lambda?: boolean | undefined;
|
|
545
|
+
}> | undefined;
|
|
546
|
+
}>, {
|
|
547
|
+
type: DatasetTypeEnum;
|
|
548
|
+
name: string;
|
|
549
|
+
description: string;
|
|
550
|
+
prefix: string;
|
|
551
|
+
dimensions?: Record<string, false | {
|
|
552
|
+
type: import("../type-enums").DimensionTypesEnum;
|
|
553
|
+
name: string;
|
|
554
|
+
description: string;
|
|
555
|
+
sql?: string | undefined;
|
|
556
|
+
format?: import("../type-enums").DimensionFormatsEnum | undefined;
|
|
557
|
+
explode?: boolean | undefined;
|
|
558
|
+
index?: string | boolean | undefined;
|
|
559
|
+
switch?: {
|
|
560
|
+
when: Record<string, false | ({
|
|
561
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
562
|
+
dimension?: string | undefined;
|
|
563
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
564
|
+
sql?: string | undefined;
|
|
565
|
+
} & {
|
|
566
|
+
label: string;
|
|
567
|
+
description?: string | undefined;
|
|
568
|
+
})>;
|
|
569
|
+
else?: string | undefined;
|
|
570
|
+
segment?: boolean | undefined;
|
|
571
|
+
} | undefined;
|
|
572
|
+
field?: string | string[] | undefined;
|
|
573
|
+
public?: boolean | undefined;
|
|
574
|
+
primaryKey?: boolean | undefined;
|
|
575
|
+
subQuery?: boolean | undefined;
|
|
576
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
577
|
+
}> | undefined;
|
|
578
|
+
sql?: string | undefined;
|
|
579
|
+
collection?: {
|
|
580
|
+
collection: string;
|
|
581
|
+
filters?: import("./filters.interface").FiltersInterface | undefined;
|
|
582
|
+
} | undefined;
|
|
583
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
584
|
+
measures?: Record<string, false | {
|
|
585
|
+
type: import("../type-enums").MeasureTypesEnum;
|
|
586
|
+
name: string;
|
|
587
|
+
description?: string | undefined;
|
|
588
|
+
dimension?: string | undefined;
|
|
589
|
+
sql?: string | undefined;
|
|
590
|
+
format?: import("../type-enums").MeasureFormatsEnum | undefined;
|
|
591
|
+
index?: string | undefined;
|
|
592
|
+
public?: boolean | undefined;
|
|
593
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
594
|
+
}> | undefined;
|
|
595
|
+
segments?: Record<string, false | ({
|
|
596
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
597
|
+
dimension?: string | undefined;
|
|
598
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
599
|
+
sql?: string | undefined;
|
|
600
|
+
} & {
|
|
601
|
+
name?: string | undefined;
|
|
602
|
+
description?: string | undefined;
|
|
603
|
+
public?: boolean | undefined;
|
|
604
|
+
})> | undefined;
|
|
605
|
+
parent?: string | undefined;
|
|
606
|
+
relations?: Record<string, false | {
|
|
607
|
+
type: import("../type-enums").RelationTypesEnum;
|
|
608
|
+
targetDataset: string;
|
|
609
|
+
dimension?: string | undefined;
|
|
610
|
+
sql?: string | undefined;
|
|
611
|
+
targetDimension?: string | undefined;
|
|
612
|
+
}> | undefined;
|
|
613
|
+
preAggregations?: Record<string, false | {
|
|
614
|
+
type?: "rollup" | "original_sql" | "rollup_join" | undefined;
|
|
615
|
+
dimensions?: string[] | undefined;
|
|
616
|
+
measures?: string[] | undefined;
|
|
617
|
+
segments?: string[] | undefined;
|
|
618
|
+
timeDimension?: string | undefined;
|
|
619
|
+
granularity?: string | undefined;
|
|
620
|
+
partitionGranularity?: string | undefined;
|
|
621
|
+
rollups?: string[] | undefined;
|
|
622
|
+
refreshKeySql?: string | undefined;
|
|
623
|
+
refreshKeyEvery?: string | undefined;
|
|
624
|
+
refreshKeyIncremental?: boolean | undefined;
|
|
625
|
+
refreshKeyUpdateWindow?: string | undefined;
|
|
626
|
+
buildRangeStartSql?: string | undefined;
|
|
627
|
+
buildRangeEndSql?: string | undefined;
|
|
628
|
+
lambda?: boolean | undefined;
|
|
629
|
+
}> | undefined;
|
|
630
|
+
}, {
|
|
631
|
+
type: DatasetTypeEnum;
|
|
632
|
+
name: string;
|
|
633
|
+
description: string;
|
|
634
|
+
prefix: string;
|
|
635
|
+
dimensions?: Record<string, false | {
|
|
636
|
+
type: import("../type-enums").DimensionTypesEnum;
|
|
637
|
+
name: string;
|
|
638
|
+
description: string;
|
|
639
|
+
sql?: string | undefined;
|
|
640
|
+
format?: import("../type-enums").DimensionFormatsEnum | undefined;
|
|
641
|
+
explode?: boolean | undefined;
|
|
642
|
+
index?: string | boolean | undefined;
|
|
643
|
+
switch?: {
|
|
644
|
+
when: Record<string, false | ({
|
|
645
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
646
|
+
dimension?: string | undefined;
|
|
647
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
648
|
+
sql?: string | undefined;
|
|
649
|
+
} & {
|
|
650
|
+
label: string;
|
|
651
|
+
description?: string | undefined;
|
|
652
|
+
})>;
|
|
653
|
+
else?: string | undefined;
|
|
654
|
+
segment?: boolean | undefined;
|
|
655
|
+
} | undefined;
|
|
656
|
+
field?: string | string[] | undefined;
|
|
657
|
+
public?: boolean | undefined;
|
|
658
|
+
primaryKey?: boolean | undefined;
|
|
659
|
+
subQuery?: boolean | undefined;
|
|
660
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
661
|
+
}> | undefined;
|
|
662
|
+
sql?: string | undefined;
|
|
663
|
+
collection?: {
|
|
664
|
+
collection: string;
|
|
665
|
+
filters?: import("./filters.interface").FiltersInterface | undefined;
|
|
666
|
+
} | undefined;
|
|
667
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
668
|
+
measures?: Record<string, false | {
|
|
669
|
+
type: import("../type-enums").MeasureTypesEnum;
|
|
670
|
+
name: string;
|
|
671
|
+
description?: string | undefined;
|
|
672
|
+
dimension?: string | undefined;
|
|
673
|
+
sql?: string | undefined;
|
|
674
|
+
format?: import("../type-enums").MeasureFormatsEnum | undefined;
|
|
675
|
+
index?: string | undefined;
|
|
676
|
+
public?: boolean | undefined;
|
|
677
|
+
meta?: Record<string, string | number | boolean | Record<string, Record<string, string>>> | undefined;
|
|
678
|
+
}> | undefined;
|
|
679
|
+
segments?: Record<string, false | ({
|
|
680
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
681
|
+
dimension?: string | undefined;
|
|
682
|
+
operator?: import("../type-enums").FilterOperatorsEnum | undefined;
|
|
683
|
+
sql?: string | undefined;
|
|
684
|
+
} & {
|
|
685
|
+
name?: string | undefined;
|
|
686
|
+
description?: string | undefined;
|
|
687
|
+
public?: boolean | undefined;
|
|
688
|
+
})> | undefined;
|
|
689
|
+
parent?: string | undefined;
|
|
690
|
+
relations?: Record<string, false | {
|
|
691
|
+
type: import("../type-enums").RelationTypesEnum;
|
|
692
|
+
targetDataset: string;
|
|
693
|
+
dimension?: string | undefined;
|
|
694
|
+
sql?: string | undefined;
|
|
695
|
+
targetDimension?: string | undefined;
|
|
696
|
+
}> | undefined;
|
|
697
|
+
preAggregations?: Record<string, false | {
|
|
698
|
+
type?: "rollup" | "original_sql" | "rollup_join" | undefined;
|
|
699
|
+
dimensions?: string[] | undefined;
|
|
700
|
+
measures?: string[] | undefined;
|
|
701
|
+
segments?: string[] | undefined;
|
|
702
|
+
timeDimension?: string | undefined;
|
|
703
|
+
granularity?: string | undefined;
|
|
704
|
+
partitionGranularity?: string | undefined;
|
|
705
|
+
rollups?: string[] | undefined;
|
|
706
|
+
refreshKeySql?: string | undefined;
|
|
707
|
+
refreshKeyEvery?: string | undefined;
|
|
708
|
+
refreshKeyIncremental?: boolean | undefined;
|
|
709
|
+
refreshKeyUpdateWindow?: string | undefined;
|
|
710
|
+
buildRangeStartSql?: string | undefined;
|
|
711
|
+
buildRangeEndSql?: string | undefined;
|
|
712
|
+
lambda?: boolean | undefined;
|
|
713
|
+
}> | undefined;
|
|
714
|
+
}>;
|
|
715
|
+
export interface DatasetInterface {
|
|
716
|
+
name: string;
|
|
717
|
+
description: string;
|
|
718
|
+
type: DatasetTypeEnum;
|
|
719
|
+
prefix: string;
|
|
720
|
+
parent?: string;
|
|
721
|
+
sql?: string;
|
|
722
|
+
refreshSql?: string;
|
|
723
|
+
meta?: MetaInterface;
|
|
724
|
+
collection?: CollectionInterface;
|
|
725
|
+
dimensions?: DimensionsInterface;
|
|
726
|
+
segments?: SegmentsInterface;
|
|
727
|
+
relations?: RelationsInterface;
|
|
728
|
+
measures?: MeasuresInterface;
|
|
729
|
+
preAggregations?: PreAggregationsInterface;
|
|
730
|
+
}
|