@lightdash/common 0.1427.0 → 0.1428.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types/dbt.js
CHANGED
@@ -157,14 +157,14 @@ const convertModelMetric = ({ modelName, name, metric, source, tableLabel, dimen
|
|
157
157
|
percentile: metric.percentile,
|
158
158
|
dimensionReference,
|
159
159
|
requiredAttributes,
|
160
|
-
...(metric.urls ? { urls: metric.urls } :
|
160
|
+
...(metric.urls ? { urls: metric.urls } : null),
|
161
161
|
...(metric.tags
|
162
162
|
? {
|
163
163
|
tags: Array.isArray(metric.tags)
|
164
164
|
? metric.tags
|
165
165
|
: [metric.tags],
|
166
166
|
}
|
167
|
-
:
|
167
|
+
: null),
|
168
168
|
...(metric.default_time_dimension
|
169
169
|
? {
|
170
170
|
defaultTimeDimension: {
|
@@ -172,7 +172,7 @@ const convertModelMetric = ({ modelName, name, metric, source, tableLabel, dimen
|
|
172
172
|
interval: metric.default_time_dimension.interval,
|
173
173
|
},
|
174
174
|
}
|
175
|
-
:
|
175
|
+
: null),
|
176
176
|
};
|
177
177
|
};
|
178
178
|
exports.convertModelMetric = convertModelMetric;
|
@@ -200,7 +200,7 @@ const convertColumnMetric = ({ modelName, dimensionName, dimensionSql, name, met
|
|
200
200
|
interval: metric.default_time_dimension.interval,
|
201
201
|
},
|
202
202
|
}
|
203
|
-
:
|
203
|
+
: null),
|
204
204
|
});
|
205
205
|
exports.convertColumnMetric = convertColumnMetric;
|
206
206
|
var DbtManifestVersion;
|
@@ -12,12 +12,12 @@ EMPTY_STRING = '' {
|
|
12
12
|
return {
|
13
13
|
type: '${filter_1.FilterOperator.EQUALS}',
|
14
14
|
values: [],
|
15
|
-
is: true,
|
15
|
+
is: true,
|
16
16
|
}
|
17
17
|
}
|
18
18
|
|
19
19
|
EXPRESSION
|
20
|
-
= NUMERICAL / DATE_RESTRICTION / LIST / TERM
|
20
|
+
= NUMERICAL / DATE_RESTRICTION / LIST / TERM
|
21
21
|
|
22
22
|
|
23
23
|
NUMERICAL = SPACE_SYMBOL* operator:OPERATOR SPACE_SYMBOL* value:NUMBER {
|
@@ -28,7 +28,7 @@ NUMERICAL = SPACE_SYMBOL* operator:OPERATOR SPACE_SYMBOL* value:NUMBER {
|
|
28
28
|
}
|
29
29
|
|
30
30
|
OPERATOR = '>=' / '<=' / '>' / '<'
|
31
|
-
|
31
|
+
|
32
32
|
DATE_RESTRICTION = SPACE_SYMBOL* operator:DATE_OPERATOR SPACE_SYMBOL* value:NUMBER SPACE_SYMBOL* interval:DATE_INTERVAL {
|
33
33
|
return {
|
34
34
|
type: operator,
|
@@ -40,7 +40,7 @@ DATE_RESTRICTION = SPACE_SYMBOL* operator:DATE_OPERATOR SPACE_SYMBOL* value:NUMB
|
|
40
40
|
DATE_OPERATOR = 'inThePast' / 'inTheNext'
|
41
41
|
DATE_INTERVAL = 'milliseconds' / 'seconds' / 'minutes' / 'hours' / 'days' / 'weeks' / 'months' / 'years'
|
42
42
|
|
43
|
-
NUMBER
|
43
|
+
NUMBER
|
44
44
|
= FLOAT ([Ee] [+-]? INTEGER)?
|
45
45
|
{ return Number(text()) }
|
46
46
|
|
@@ -91,7 +91,7 @@ MATCH
|
|
91
91
|
}
|
92
92
|
}
|
93
93
|
PCT
|
94
|
-
= CONTAINS / STARTS_WITH / ENDS_WITH
|
94
|
+
= CONTAINS / STARTS_WITH / ENDS_WITH
|
95
95
|
CONTAINS
|
96
96
|
= PCT_SYMBOL value:(char / UNDERSCORE)+ PCT_SYMBOL !(string / PCT_SYMBOL / UNDERSCORE) {
|
97
97
|
return {
|
@@ -240,7 +240,7 @@ const parseFilters = (rawFilters) => {
|
|
240
240
|
unitOfTime: parsedFilter.date_interval,
|
241
241
|
},
|
242
242
|
}
|
243
|
-
:
|
243
|
+
: null),
|
244
244
|
},
|
245
245
|
];
|
246
246
|
}
|
package/dist/types/projects.d.ts
CHANGED
@@ -78,6 +78,7 @@ export type CreatePostgresCredentials = SshTunnelConfiguration & {
|
|
78
78
|
role?: string;
|
79
79
|
sslmode?: string;
|
80
80
|
startOfWeek?: WeekDay | null;
|
81
|
+
timeoutSeconds?: number;
|
81
82
|
};
|
82
83
|
export type PostgresCredentials = Omit<CreatePostgresCredentials, SensitiveCredentialsFieldNames>;
|
83
84
|
export type CreateTrinoCredentials = {
|
@@ -107,6 +108,7 @@ export type CreateRedshiftCredentials = SshTunnelConfiguration & {
|
|
107
108
|
sslmode?: string;
|
108
109
|
ra3Node?: boolean;
|
109
110
|
startOfWeek?: WeekDay | null;
|
111
|
+
timeoutSeconds?: number;
|
110
112
|
};
|
111
113
|
export type RedshiftCredentials = Omit<CreateRedshiftCredentials, SensitiveCredentialsFieldNames>;
|
112
114
|
export type CreateSnowflakeCredentials = {
|
@@ -193,7 +193,7 @@ export type Series = {
|
|
193
193
|
position?: 'left' | 'top' | 'right' | 'bottom' | 'inside';
|
194
194
|
};
|
195
195
|
hidden?: boolean;
|
196
|
-
areaStyle?:
|
196
|
+
areaStyle?: Record<string, unknown>;
|
197
197
|
showSymbol?: boolean;
|
198
198
|
smooth?: boolean;
|
199
199
|
markLine?: MarkLine;
|
@@ -246,7 +246,7 @@ export type CompleteCartesianChartLayout = {
|
|
246
246
|
};
|
247
247
|
export type CartesianChartLayout = Partial<CompleteCartesianChartLayout>;
|
248
248
|
export type CustomVis = {
|
249
|
-
spec?:
|
249
|
+
spec?: Record<string, unknown>;
|
250
250
|
};
|
251
251
|
export type CartesianChart = {
|
252
252
|
layout: CartesianChartLayout;
|