@lightdash/common 0.1480.1 → 0.1480.2
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/authorization/types.d.ts +1 -1
- package/dist/ee/Ai/schemas.d.ts +152 -152
- package/dist/ee/Ai/types.js +1 -1
- package/dist/ee/commercialFeatureFlags.js +1 -1
- package/dist/ee/embed/index.js +1 -1
- package/dist/ee/index.js +1 -1
- package/dist/index.js +4 -4
- package/dist/types/analytics.js +1 -1
- package/dist/types/api/notifications.js +1 -1
- package/dist/types/api.js +1 -1
- package/dist/types/catalog.js +2 -2
- package/dist/types/conditionalFormatting.js +1 -1
- package/dist/types/conditionalRule.js +1 -1
- package/dist/types/content.js +3 -3
- package/dist/types/dashboard.js +2 -2
- package/dist/types/dbt.js +3 -3
- package/dist/types/dbtSemanticLayer.js +5 -5
- package/dist/types/downloadFile.js +1 -1
- package/dist/types/explore.js +3 -3
- package/dist/types/featureFlags.js +1 -1
- package/dist/types/field.js +10 -10
- package/dist/types/filter.js +3 -3
- package/dist/types/job.js +4 -4
- package/dist/types/metricsExplorer.js +2 -2
- package/dist/types/openIdIdentity.js +1 -1
- package/dist/types/organizationMemberProfile.js +1 -1
- package/dist/types/projectMemberRole.js +1 -1
- package/dist/types/projects.js +6 -6
- package/dist/types/promotion.js +1 -1
- package/dist/types/resourceViewItem.js +2 -2
- package/dist/types/savedCharts.js +8 -8
- package/dist/types/scheduler.js +6 -6
- package/dist/types/search.js +1 -1
- package/dist/types/semanticLayer.js +4 -4
- package/dist/types/space.js +1 -1
- package/dist/types/spotlightTableConfig.js +1 -1
- package/dist/types/table.js +1 -1
- package/dist/types/timeFrames.js +2 -2
- package/dist/types/timezone.js +1 -1
- package/dist/types/user.js +1 -1
- package/dist/types/validation.js +3 -3
- package/dist/types/warehouse.js +1 -1
- package/dist/utils/timeFrames.js +1 -1
- package/dist/visualizations/CartesianChartDataModel.js +1 -1
- package/dist/visualizations/types/index.js +4 -4
- package/package.json +2 -3
package/dist/ee/Ai/types.js
CHANGED
@@ -7,6 +7,6 @@ var AiChatAgents;
|
|
7
7
|
(function (AiChatAgents) {
|
8
8
|
AiChatAgents["HUMAN"] = "human";
|
9
9
|
AiChatAgents["AI"] = "ai";
|
10
|
-
})(AiChatAgents
|
10
|
+
})(AiChatAgents || (exports.AiChatAgents = AiChatAgents = {}));
|
11
11
|
const isAiConversationMessageComplete = (message) => 'response' in message && 'respondedAt' in message;
|
12
12
|
exports.isAiConversationMessageComplete = isAiConversationMessageComplete;
|
@@ -6,4 +6,4 @@ var CommercialFeatureFlags;
|
|
6
6
|
CommercialFeatureFlags["Embedding"] = "embedding";
|
7
7
|
CommercialFeatureFlags["Scim"] = "scim-token-management";
|
8
8
|
CommercialFeatureFlags["AiCopilot"] = "ai-copilot";
|
9
|
-
})(CommercialFeatureFlags
|
9
|
+
})(CommercialFeatureFlags || (exports.CommercialFeatureFlags = CommercialFeatureFlags = {}));
|
package/dist/ee/embed/index.js
CHANGED
@@ -9,7 +9,7 @@ var FilterInteractivityValues;
|
|
9
9
|
FilterInteractivityValues["some"] = "some";
|
10
10
|
FilterInteractivityValues["all"] = "all";
|
11
11
|
FilterInteractivityValues["none"] = "none";
|
12
|
-
})(FilterInteractivityValues
|
12
|
+
})(FilterInteractivityValues || (exports.FilterInteractivityValues = FilterInteractivityValues = {}));
|
13
13
|
exports.FilterInteractivityValuesSchema = zod_1.z.enum([
|
14
14
|
FilterInteractivityValues.some,
|
15
15
|
FilterInteractivityValues.all,
|
package/dist/ee/index.js
CHANGED
@@ -16,4 +16,4 @@ var ScimSchemaType;
|
|
16
16
|
ScimSchemaType["LIST_RESPONSE"] = "urn:ietf:params:scim:api:messages:2.0:ListResponse";
|
17
17
|
ScimSchemaType["SCHEMA"] = "urn:ietf:params:scim:schemas:core:2.0:Schema";
|
18
18
|
ScimSchemaType["PATCH"] = "urn:ietf:params:scim:api:messages:2.0:PatchOp";
|
19
|
-
})(ScimSchemaType
|
19
|
+
})(ScimSchemaType || (exports.ScimSchemaType = ScimSchemaType = {}));
|
package/dist/index.js
CHANGED
@@ -259,7 +259,7 @@ var TableSelectionType;
|
|
259
259
|
TableSelectionType["ALL"] = "ALL";
|
260
260
|
TableSelectionType["WITH_TAGS"] = "WITH_TAGS";
|
261
261
|
TableSelectionType["WITH_NAMES"] = "WITH_NAMES";
|
262
|
-
})(TableSelectionType
|
262
|
+
})(TableSelectionType || (exports.TableSelectionType = TableSelectionType = {}));
|
263
263
|
const hasInviteCode = (data) => 'inviteCode' in data;
|
264
264
|
exports.hasInviteCode = hasInviteCode;
|
265
265
|
const isApiError = (error) => typeof error === 'object' &&
|
@@ -274,7 +274,7 @@ var LightdashMode;
|
|
274
274
|
LightdashMode["PR"] = "pr";
|
275
275
|
LightdashMode["CLOUD_BETA"] = "cloud_beta";
|
276
276
|
LightdashMode["DEV"] = "development";
|
277
|
-
})(LightdashMode
|
277
|
+
})(LightdashMode || (exports.LightdashMode = LightdashMode = {}));
|
278
278
|
const isLightdashMode = (x) => Object.values(LightdashMode).includes(x);
|
279
279
|
exports.isLightdashMode = isLightdashMode;
|
280
280
|
var LightdashInstallType;
|
@@ -283,12 +283,12 @@ var LightdashInstallType;
|
|
283
283
|
LightdashInstallType["BASH_INSTALL"] = "bash_install";
|
284
284
|
LightdashInstallType["HEROKU"] = "heroku";
|
285
285
|
LightdashInstallType["UNKNOWN"] = "unknown";
|
286
|
-
})(LightdashInstallType
|
286
|
+
})(LightdashInstallType || (exports.LightdashInstallType = LightdashInstallType = {}));
|
287
287
|
var DBFieldTypes;
|
288
288
|
(function (DBFieldTypes) {
|
289
289
|
DBFieldTypes["DIMENSION"] = "dimension";
|
290
290
|
DBFieldTypes["METRIC"] = "metric";
|
291
|
-
})(DBFieldTypes
|
291
|
+
})(DBFieldTypes || (exports.DBFieldTypes = DBFieldTypes = {}));
|
292
292
|
exports.sensitiveDbtCredentialsFieldNames = [
|
293
293
|
'personal_access_token',
|
294
294
|
'api_key',
|
package/dist/types/analytics.js
CHANGED
@@ -26,4 +26,4 @@ var QueryExecutionContext;
|
|
26
26
|
QueryExecutionContext["CLI"] = "cli";
|
27
27
|
QueryExecutionContext["SEMANTIC_VIEWER"] = "semanticViewer";
|
28
28
|
QueryExecutionContext["METRICS_EXPLORER"] = "metricsExplorer";
|
29
|
-
})(QueryExecutionContext
|
29
|
+
})(QueryExecutionContext || (exports.QueryExecutionContext = QueryExecutionContext = {}));
|
@@ -4,4 +4,4 @@ exports.ApiNotificationResourceType = void 0;
|
|
4
4
|
var ApiNotificationResourceType;
|
5
5
|
(function (ApiNotificationResourceType) {
|
6
6
|
ApiNotificationResourceType["DashboardComments"] = "dashboardComments";
|
7
|
-
})(ApiNotificationResourceType
|
7
|
+
})(ApiNotificationResourceType || (exports.ApiNotificationResourceType = ApiNotificationResourceType = {}));
|
package/dist/types/api.js
CHANGED
@@ -8,6 +8,6 @@ var RequestMethod;
|
|
8
8
|
RequestMethod["WEB_APP"] = "WEB_APP";
|
9
9
|
RequestMethod["HEADLESS_BROWSER"] = "HEADLESS_BROWSER";
|
10
10
|
RequestMethod["UNKNOWN"] = "UNKNOWN";
|
11
|
-
})(RequestMethod
|
11
|
+
})(RequestMethod || (exports.RequestMethod = RequestMethod = {}));
|
12
12
|
const isRequestMethod = (value) => !!value && Object.values(RequestMethod).includes(value);
|
13
13
|
exports.isRequestMethod = isRequestMethod;
|
package/dist/types/catalog.js
CHANGED
@@ -8,13 +8,13 @@ var CatalogType;
|
|
8
8
|
(function (CatalogType) {
|
9
9
|
CatalogType["Table"] = "table";
|
10
10
|
CatalogType["Field"] = "field";
|
11
|
-
})(CatalogType
|
11
|
+
})(CatalogType || (exports.CatalogType = CatalogType = {}));
|
12
12
|
var CatalogFilter;
|
13
13
|
(function (CatalogFilter) {
|
14
14
|
CatalogFilter["Tables"] = "tables";
|
15
15
|
CatalogFilter["Dimensions"] = "dimensions";
|
16
16
|
CatalogFilter["Metrics"] = "metrics";
|
17
|
-
})(CatalogFilter
|
17
|
+
})(CatalogFilter || (exports.CatalogFilter = CatalogFilter = {}));
|
18
18
|
exports.UNCATEGORIZED_TAG_UUID = '__uncategorized__';
|
19
19
|
const isEmojiIcon = (icon) => Boolean(icon && 'unicode' in icon);
|
20
20
|
exports.isEmojiIcon = isEmojiIcon;
|
@@ -11,7 +11,7 @@ var ConditionalFormattingConfigType;
|
|
11
11
|
(function (ConditionalFormattingConfigType) {
|
12
12
|
ConditionalFormattingConfigType["Single"] = "single";
|
13
13
|
ConditionalFormattingConfigType["Range"] = "range";
|
14
|
-
})(ConditionalFormattingConfigType
|
14
|
+
})(ConditionalFormattingConfigType || (exports.ConditionalFormattingConfigType = ConditionalFormattingConfigType = {}));
|
15
15
|
const getConditionalFormattingConfigType = (rule) => {
|
16
16
|
if ((0, exports.isConditionalFormattingConfigWithSingleColor)(rule)) {
|
17
17
|
return ConditionalFormattingConfigType.Single;
|
@@ -21,4 +21,4 @@ var ConditionalOperator;
|
|
21
21
|
ConditionalOperator["IN_THE_CURRENT"] = "inTheCurrent";
|
22
22
|
ConditionalOperator["NOT_IN_THE_CURRENT"] = "notInTheCurrent";
|
23
23
|
ConditionalOperator["IN_BETWEEN"] = "inBetween";
|
24
|
-
})(ConditionalOperator
|
24
|
+
})(ConditionalOperator || (exports.ConditionalOperator = ConditionalOperator = {}));
|
package/dist/types/content.js
CHANGED
@@ -5,17 +5,17 @@ var ContentType;
|
|
5
5
|
(function (ContentType) {
|
6
6
|
ContentType["CHART"] = "chart";
|
7
7
|
ContentType["DASHBOARD"] = "dashboard";
|
8
|
-
})(ContentType
|
8
|
+
})(ContentType || (exports.ContentType = ContentType = {}));
|
9
9
|
var ContentSortByColumns;
|
10
10
|
(function (ContentSortByColumns) {
|
11
11
|
ContentSortByColumns["NAME"] = "name";
|
12
12
|
ContentSortByColumns["SPACE_NAME"] = "space_name";
|
13
13
|
ContentSortByColumns["LAST_UPDATED_AT"] = "last_updated_at";
|
14
|
-
})(ContentSortByColumns
|
14
|
+
})(ContentSortByColumns || (exports.ContentSortByColumns = ContentSortByColumns = {}));
|
15
15
|
// Chart types
|
16
16
|
var ChartSourceType;
|
17
17
|
(function (ChartSourceType) {
|
18
18
|
ChartSourceType["DBT_EXPLORE"] = "dbt_explore";
|
19
19
|
ChartSourceType["SQL"] = "sql";
|
20
20
|
ChartSourceType["SEMANTIC_LAYER"] = "semantic_layer";
|
21
|
-
})(ChartSourceType
|
21
|
+
})(ChartSourceType || (exports.ChartSourceType = ChartSourceType = {}));
|
package/dist/types/dashboard.js
CHANGED
@@ -8,7 +8,7 @@ var DashboardTileTypes;
|
|
8
8
|
DashboardTileTypes["SEMANTIC_VIEWER_CHART"] = "semantic_viewer_chart";
|
9
9
|
DashboardTileTypes["MARKDOWN"] = "markdown";
|
10
10
|
DashboardTileTypes["LOOM"] = "loom";
|
11
|
-
})(DashboardTileTypes
|
11
|
+
})(DashboardTileTypes || (exports.DashboardTileTypes = DashboardTileTypes = {}));
|
12
12
|
const isChartTile = (tile) => tile.type === DashboardTileTypes.SAVED_CHART;
|
13
13
|
exports.isChartTile = isChartTile;
|
14
14
|
const isDashboardChartTileType = (tile) => tile.type === DashboardTileTypes.SAVED_CHART;
|
@@ -27,7 +27,7 @@ var DashboardSummaryTone;
|
|
27
27
|
DashboardSummaryTone["FORMAL"] = "formal";
|
28
28
|
DashboardSummaryTone["DIRECT"] = "direct";
|
29
29
|
DashboardSummaryTone["ENTHUSIASTIC"] = "enthusiastic";
|
30
|
-
})(DashboardSummaryTone
|
30
|
+
})(DashboardSummaryTone || (exports.DashboardSummaryTone = DashboardSummaryTone = {}));
|
31
31
|
const isDashboardUnversionedFields = (data) => ('name' in data && !!data.name) ||
|
32
32
|
('spaceUuid' in data && !!data.spaceUuid);
|
33
33
|
exports.isDashboardUnversionedFields = isDashboardUnversionedFields;
|
package/dist/types/dbt.js
CHANGED
@@ -17,7 +17,7 @@ var SupportedDbtAdapter;
|
|
17
17
|
SupportedDbtAdapter["REDSHIFT"] = "redshift";
|
18
18
|
SupportedDbtAdapter["POSTGRES"] = "postgres";
|
19
19
|
SupportedDbtAdapter["TRINO"] = "trino";
|
20
|
-
})(SupportedDbtAdapter
|
20
|
+
})(SupportedDbtAdapter || (exports.SupportedDbtAdapter = SupportedDbtAdapter = {}));
|
21
21
|
const normaliseModelDatabase = (model, targetWarehouse) => {
|
22
22
|
switch (targetWarehouse) {
|
23
23
|
case SupportedDbtAdapter.POSTGRES:
|
@@ -220,7 +220,7 @@ var DbtManifestVersion;
|
|
220
220
|
DbtManifestVersion["V10"] = "v10";
|
221
221
|
DbtManifestVersion["V11"] = "v11";
|
222
222
|
DbtManifestVersion["V12"] = "v12";
|
223
|
-
})(DbtManifestVersion
|
223
|
+
})(DbtManifestVersion || (exports.DbtManifestVersion = DbtManifestVersion = {}));
|
224
224
|
const getDbtManifestVersion = (manifest) => {
|
225
225
|
const version = manifest.metadata.dbt_schema_version.match(/\/(v\d+).json/)?.[1];
|
226
226
|
if (!version) {
|
@@ -244,7 +244,7 @@ var DbtExposureType;
|
|
244
244
|
DbtExposureType["ANALYSIS"] = "analysis";
|
245
245
|
DbtExposureType["ML"] = "ml";
|
246
246
|
DbtExposureType["APPLICATION"] = "application";
|
247
|
-
})(DbtExposureType
|
247
|
+
})(DbtExposureType || (exports.DbtExposureType = DbtExposureType = {}));
|
248
248
|
const getModelsFromManifest = (manifest) => {
|
249
249
|
const models = Object.values(manifest.nodes).filter((node) => node.resource_type === 'model' &&
|
250
250
|
node.config?.materialized !== 'ephemeral');
|
@@ -15,12 +15,12 @@ var DbtTimeGranularity;
|
|
15
15
|
DbtTimeGranularity["MONTH"] = "MONTH";
|
16
16
|
DbtTimeGranularity["QUARTER"] = "QUARTER";
|
17
17
|
DbtTimeGranularity["YEAR"] = "YEAR";
|
18
|
-
})(DbtTimeGranularity
|
18
|
+
})(DbtTimeGranularity || (exports.DbtTimeGranularity = DbtTimeGranularity = {}));
|
19
19
|
var DbtDimensionType;
|
20
20
|
(function (DbtDimensionType) {
|
21
21
|
DbtDimensionType["CATEGORICAL"] = "CATEGORICAL";
|
22
22
|
DbtDimensionType["TIME"] = "TIME";
|
23
|
-
})(DbtDimensionType
|
23
|
+
})(DbtDimensionType || (exports.DbtDimensionType = DbtDimensionType = {}));
|
24
24
|
var DbtMetricType;
|
25
25
|
(function (DbtMetricType) {
|
26
26
|
DbtMetricType["SIMPLE"] = "SIMPLE";
|
@@ -28,7 +28,7 @@ var DbtMetricType;
|
|
28
28
|
DbtMetricType["CUMULATIVE"] = "CUMULATIVE";
|
29
29
|
DbtMetricType["DERIVED"] = "DERIVED";
|
30
30
|
DbtMetricType["CONVERSION"] = "CONVERSION";
|
31
|
-
})(DbtMetricType
|
31
|
+
})(DbtMetricType || (exports.DbtMetricType = DbtMetricType = {}));
|
32
32
|
var DbtQueryStatus;
|
33
33
|
(function (DbtQueryStatus) {
|
34
34
|
DbtQueryStatus["PENDING"] = "PENDING";
|
@@ -36,7 +36,7 @@ var DbtQueryStatus;
|
|
36
36
|
DbtQueryStatus["COMPILED"] = "COMPILED";
|
37
37
|
DbtQueryStatus["SUCCESSFUL"] = "SUCCESSFUL";
|
38
38
|
DbtQueryStatus["FAILED"] = "FAILED";
|
39
|
-
})(DbtQueryStatus
|
39
|
+
})(DbtQueryStatus || (exports.DbtQueryStatus = DbtQueryStatus = {}));
|
40
40
|
// TODO: add more operators, there is probably reusable code in our semantic layer
|
41
41
|
var DbtWhereOperator;
|
42
42
|
(function (DbtWhereOperator) {
|
@@ -48,4 +48,4 @@ var DbtWhereOperator;
|
|
48
48
|
DbtWhereOperator["GT"] = ">";
|
49
49
|
DbtWhereOperator["LTE"] = "<=";
|
50
50
|
DbtWhereOperator["LT"] = "<";
|
51
|
-
})(DbtWhereOperator
|
51
|
+
})(DbtWhereOperator || (exports.DbtWhereOperator = DbtWhereOperator = {}));
|
@@ -7,4 +7,4 @@ var DownloadFileType;
|
|
7
7
|
DownloadFileType["IMAGE"] = "image";
|
8
8
|
DownloadFileType["JSONL"] = "jsonl";
|
9
9
|
DownloadFileType["S3_JSONL"] = "s3_jsonl";
|
10
|
-
})(DownloadFileType
|
10
|
+
})(DownloadFileType || (exports.DownloadFileType = DownloadFileType = {}));
|
package/dist/types/explore.js
CHANGED
@@ -5,16 +5,16 @@ var ExploreType;
|
|
5
5
|
(function (ExploreType) {
|
6
6
|
ExploreType["VIRTUAL"] = "virtual";
|
7
7
|
ExploreType["DEFAULT"] = "default";
|
8
|
-
})(ExploreType
|
8
|
+
})(ExploreType || (exports.ExploreType = ExploreType = {}));
|
9
9
|
var InlineErrorType;
|
10
10
|
(function (InlineErrorType) {
|
11
11
|
InlineErrorType["METADATA_PARSE_ERROR"] = "METADATA_PARSE_ERROR";
|
12
12
|
InlineErrorType["NO_DIMENSIONS_FOUND"] = "NO_DIMENSIONS_FOUND";
|
13
|
-
})(InlineErrorType
|
13
|
+
})(InlineErrorType || (exports.InlineErrorType = InlineErrorType = {}));
|
14
14
|
const isExploreError = (explore) => 'errors' in explore;
|
15
15
|
exports.isExploreError = isExploreError;
|
16
16
|
var CustomViewType;
|
17
17
|
(function (CustomViewType) {
|
18
18
|
CustomViewType["VIRTUAL"] = "virtual";
|
19
19
|
CustomViewType["WRITE_BACK"] = "write_back";
|
20
|
-
})(CustomViewType
|
20
|
+
})(CustomViewType || (exports.CustomViewType = CustomViewType = {}));
|
@@ -37,4 +37,4 @@ var FeatureFlags;
|
|
37
37
|
* Enable scheduler task that replaces custom metrics after project compile
|
38
38
|
*/
|
39
39
|
FeatureFlags["ReplaceCustomMetricsOnCompile"] = "replace-custom-metrics-on-compile";
|
40
|
-
})(FeatureFlags
|
40
|
+
})(FeatureFlags || (exports.FeatureFlags = FeatureFlags = {}));
|
package/dist/types/field.js
CHANGED
@@ -8,7 +8,7 @@ var Compact;
|
|
8
8
|
Compact["MILLIONS"] = "millions";
|
9
9
|
Compact["BILLIONS"] = "billions";
|
10
10
|
Compact["TRILLIONS"] = "trillions";
|
11
|
-
})(Compact
|
11
|
+
})(Compact || (exports.Compact = Compact = {}));
|
12
12
|
const CompactAlias = [
|
13
13
|
'K',
|
14
14
|
'thousand',
|
@@ -26,7 +26,7 @@ var NumberSeparator;
|
|
26
26
|
NumberSeparator["SPACE_PERIOD"] = "spacePeriod";
|
27
27
|
NumberSeparator["PERIOD_COMMA"] = "periodComma";
|
28
28
|
NumberSeparator["NO_SEPARATOR_PERIOD"] = "noSeparatorPeriod";
|
29
|
-
})(NumberSeparator
|
29
|
+
})(NumberSeparator || (exports.NumberSeparator = NumberSeparator = {}));
|
30
30
|
exports.CompactConfigMap = {
|
31
31
|
[Compact.THOUSANDS]: {
|
32
32
|
compact: Compact.THOUSANDS,
|
@@ -67,12 +67,12 @@ var BinType;
|
|
67
67
|
BinType["FIXED_NUMBER"] = "fixed_number";
|
68
68
|
BinType["FIXED_WIDTH"] = "fixed_width";
|
69
69
|
BinType["CUSTOM_RANGE"] = "custom_range";
|
70
|
-
})(BinType
|
70
|
+
})(BinType || (exports.BinType = BinType = {}));
|
71
71
|
var CustomDimensionType;
|
72
72
|
(function (CustomDimensionType) {
|
73
73
|
CustomDimensionType["BIN"] = "bin";
|
74
74
|
CustomDimensionType["SQL"] = "sql";
|
75
|
-
})(CustomDimensionType
|
75
|
+
})(CustomDimensionType || (exports.CustomDimensionType = CustomDimensionType = {}));
|
76
76
|
const isCustomDimension = (value) => value !== undefined &&
|
77
77
|
Object.values(CustomDimensionType).includes(value.type);
|
78
78
|
exports.isCustomDimension = isCustomDimension;
|
@@ -95,7 +95,7 @@ var CustomFormatType;
|
|
95
95
|
CustomFormatType["ID"] = "id";
|
96
96
|
CustomFormatType["DATE"] = "date";
|
97
97
|
CustomFormatType["TIMESTAMP"] = "timestamp";
|
98
|
-
})(CustomFormatType
|
98
|
+
})(CustomFormatType || (exports.CustomFormatType = CustomFormatType = {}));
|
99
99
|
var TableCalculationType;
|
100
100
|
(function (TableCalculationType) {
|
101
101
|
TableCalculationType["NUMBER"] = "number";
|
@@ -103,12 +103,12 @@ var TableCalculationType;
|
|
103
103
|
TableCalculationType["DATE"] = "date";
|
104
104
|
TableCalculationType["TIMESTAMP"] = "timestamp";
|
105
105
|
TableCalculationType["BOOLEAN"] = "boolean";
|
106
|
-
})(TableCalculationType
|
106
|
+
})(TableCalculationType || (exports.TableCalculationType = TableCalculationType = {}));
|
107
107
|
var FieldType;
|
108
108
|
(function (FieldType) {
|
109
109
|
FieldType["METRIC"] = "metric";
|
110
110
|
FieldType["DIMENSION"] = "dimension";
|
111
|
-
})(FieldType
|
111
|
+
})(FieldType || (exports.FieldType = FieldType = {}));
|
112
112
|
// This type check is a little fragile because it's based on
|
113
113
|
// 'displayName'. Ideally these would all have fieldTypes.
|
114
114
|
const isTableCalculation = (item) => item
|
@@ -140,7 +140,7 @@ var DimensionType;
|
|
140
140
|
DimensionType["TIMESTAMP"] = "timestamp";
|
141
141
|
DimensionType["DATE"] = "date";
|
142
142
|
DimensionType["BOOLEAN"] = "boolean";
|
143
|
-
})(DimensionType
|
143
|
+
})(DimensionType || (exports.DimensionType = DimensionType = {}));
|
144
144
|
const isDimension = (field) => (0, exports.isField)(field) && field.fieldType === FieldType.DIMENSION;
|
145
145
|
exports.isDimension = isDimension;
|
146
146
|
const getFieldRef = (field) => `${field.table}.${field.name}`;
|
@@ -162,7 +162,7 @@ var MetricType;
|
|
162
162
|
MetricType["DATE"] = "date";
|
163
163
|
MetricType["TIMESTAMP"] = "timestamp";
|
164
164
|
MetricType["BOOLEAN"] = "boolean";
|
165
|
-
})(MetricType
|
165
|
+
})(MetricType || (exports.MetricType = MetricType = {}));
|
166
166
|
var Format;
|
167
167
|
(function (Format) {
|
168
168
|
Format["KM"] = "km";
|
@@ -174,7 +174,7 @@ var Format;
|
|
174
174
|
Format["DKK"] = "dkk";
|
175
175
|
Format["ID"] = "id";
|
176
176
|
Format["PERCENT"] = "percent";
|
177
|
-
})(Format
|
177
|
+
})(Format || (exports.Format = Format = {}));
|
178
178
|
const isFormat = (value) => !!value && Object.values(Format).includes(value);
|
179
179
|
exports.isFormat = isFormat;
|
180
180
|
const parseMetricType = (metricType) => {
|
package/dist/types/filter.js
CHANGED
@@ -9,7 +9,7 @@ var FilterType;
|
|
9
9
|
FilterType["NUMBER"] = "number";
|
10
10
|
FilterType["DATE"] = "date";
|
11
11
|
FilterType["BOOLEAN"] = "boolean";
|
12
|
-
})(FilterType
|
12
|
+
})(FilterType || (exports.FilterType = FilterType = {}));
|
13
13
|
var UnitOfTime;
|
14
14
|
(function (UnitOfTime) {
|
15
15
|
UnitOfTime["milliseconds"] = "milliseconds";
|
@@ -21,7 +21,7 @@ var UnitOfTime;
|
|
21
21
|
UnitOfTime["months"] = "months";
|
22
22
|
UnitOfTime["quarters"] = "quarters";
|
23
23
|
UnitOfTime["years"] = "years";
|
24
|
-
})(UnitOfTime
|
24
|
+
})(UnitOfTime || (exports.UnitOfTime = UnitOfTime = {}));
|
25
25
|
exports.unitOfTimeFormat = {
|
26
26
|
milliseconds: 'YYYY-MM-DD HH:mm:ss',
|
27
27
|
seconds: 'YYYY-MM-DD HH:mm:ss',
|
@@ -172,7 +172,7 @@ var FilterGroupOperator;
|
|
172
172
|
(function (FilterGroupOperator) {
|
173
173
|
FilterGroupOperator["and"] = "and";
|
174
174
|
FilterGroupOperator["or"] = "or";
|
175
|
-
})(FilterGroupOperator
|
175
|
+
})(FilterGroupOperator || (exports.FilterGroupOperator = FilterGroupOperator = {}));
|
176
176
|
const convertDashboardFiltersToFilters = (dashboardFilters) => {
|
177
177
|
const { dimensions, metrics, tableCalculations } = dashboardFilters;
|
178
178
|
const filters = {};
|
package/dist/types/job.js
CHANGED
@@ -5,14 +5,14 @@ var JobType;
|
|
5
5
|
(function (JobType) {
|
6
6
|
JobType["COMPILE_PROJECT"] = "COMPILE_PROJECT";
|
7
7
|
JobType["CREATE_PROJECT"] = "CREATE_PROJECT";
|
8
|
-
})(JobType
|
8
|
+
})(JobType || (exports.JobType = JobType = {}));
|
9
9
|
var JobStatusType;
|
10
10
|
(function (JobStatusType) {
|
11
11
|
JobStatusType["STARTED"] = "STARTED";
|
12
12
|
JobStatusType["DONE"] = "DONE";
|
13
13
|
JobStatusType["RUNNING"] = "RUNNING";
|
14
14
|
JobStatusType["ERROR"] = "ERROR";
|
15
|
-
})(JobStatusType
|
15
|
+
})(JobStatusType || (exports.JobStatusType = JobStatusType = {}));
|
16
16
|
var JobStepStatusType;
|
17
17
|
(function (JobStepStatusType) {
|
18
18
|
JobStepStatusType["DONE"] = "DONE";
|
@@ -20,7 +20,7 @@ var JobStepStatusType;
|
|
20
20
|
JobStepStatusType["ERROR"] = "ERROR";
|
21
21
|
JobStepStatusType["PENDING"] = "PENDING";
|
22
22
|
JobStepStatusType["SKIPPED"] = "SKIPPED";
|
23
|
-
})(JobStepStatusType
|
23
|
+
})(JobStepStatusType || (exports.JobStepStatusType = JobStepStatusType = {}));
|
24
24
|
var JobStepType;
|
25
25
|
(function (JobStepType) {
|
26
26
|
/* CLONING = 'CLONING',
|
@@ -32,7 +32,7 @@ var JobStepType;
|
|
32
32
|
JobStepType["COMPILING"] = "COMPILING";
|
33
33
|
JobStepType["CREATING_PROJECT"] = "CREATING_PROJECT";
|
34
34
|
JobStepType["CACHING"] = "CACHING";
|
35
|
-
})(JobStepType
|
35
|
+
})(JobStepType || (exports.JobStepType = JobStepType = {}));
|
36
36
|
exports.JobLabels = {
|
37
37
|
/* CLONING: 'Cloning dbt project from Github',
|
38
38
|
INSTALLING_DEPENDENCIES: 'Installing dbt project dependencies',
|
@@ -6,9 +6,9 @@ var MetricExplorerComparison;
|
|
6
6
|
MetricExplorerComparison["NONE"] = "none";
|
7
7
|
MetricExplorerComparison["PREVIOUS_PERIOD"] = "previous_period";
|
8
8
|
MetricExplorerComparison["DIFFERENT_METRIC"] = "different_metric";
|
9
|
-
})(MetricExplorerComparison
|
9
|
+
})(MetricExplorerComparison || (exports.MetricExplorerComparison = MetricExplorerComparison = {}));
|
10
10
|
var MetricTotalComparisonType;
|
11
11
|
(function (MetricTotalComparisonType) {
|
12
12
|
MetricTotalComparisonType["NONE"] = "none";
|
13
13
|
MetricTotalComparisonType["PREVIOUS_PERIOD"] = "previous_period";
|
14
|
-
})(MetricTotalComparisonType
|
14
|
+
})(MetricTotalComparisonType || (exports.MetricTotalComparisonType = MetricTotalComparisonType = {}));
|
@@ -8,6 +8,6 @@ var OpenIdIdentityIssuerType;
|
|
8
8
|
OpenIdIdentityIssuerType["ONELOGIN"] = "oneLogin";
|
9
9
|
OpenIdIdentityIssuerType["AZUREAD"] = "azuread";
|
10
10
|
OpenIdIdentityIssuerType["GENERIC_OIDC"] = "oidc";
|
11
|
-
})(OpenIdIdentityIssuerType
|
11
|
+
})(OpenIdIdentityIssuerType || (exports.OpenIdIdentityIssuerType = OpenIdIdentityIssuerType = {}));
|
12
12
|
const isOpenIdIdentityIssuerType = (value) => Object.values(OpenIdIdentityIssuerType).includes(value);
|
13
13
|
exports.isOpenIdIdentityIssuerType = isOpenIdIdentityIssuerType;
|
@@ -9,7 +9,7 @@ var OrganizationMemberRole;
|
|
9
9
|
OrganizationMemberRole["EDITOR"] = "editor";
|
10
10
|
OrganizationMemberRole["DEVELOPER"] = "developer";
|
11
11
|
OrganizationMemberRole["ADMIN"] = "admin";
|
12
|
-
})(OrganizationMemberRole
|
12
|
+
})(OrganizationMemberRole || (exports.OrganizationMemberRole = OrganizationMemberRole = {}));
|
13
13
|
const isOrganizationMemberRole = (x) => Object.values(OrganizationMemberRole).includes(x);
|
14
14
|
exports.isOrganizationMemberRole = isOrganizationMemberRole;
|
15
15
|
const isOrganizationMemberProfileWithGroups = (obj) => 'groups' in obj;
|
@@ -9,7 +9,7 @@ var ProjectMemberRole;
|
|
9
9
|
ProjectMemberRole["EDITOR"] = "editor";
|
10
10
|
ProjectMemberRole["DEVELOPER"] = "developer";
|
11
11
|
ProjectMemberRole["ADMIN"] = "admin";
|
12
|
-
})(ProjectMemberRole
|
12
|
+
})(ProjectMemberRole || (exports.ProjectMemberRole = ProjectMemberRole = {}));
|
13
13
|
exports.ProjectMemberRoleLabels = {
|
14
14
|
[ProjectMemberRole.VIEWER]: 'Viewer',
|
15
15
|
[ProjectMemberRole.INTERACTIVE_VIEWER]: 'Interactive Viewer',
|
package/dist/types/projects.js
CHANGED
@@ -5,7 +5,7 @@ var ProjectType;
|
|
5
5
|
(function (ProjectType) {
|
6
6
|
ProjectType["DEFAULT"] = "DEFAULT";
|
7
7
|
ProjectType["PREVIEW"] = "PREVIEW";
|
8
|
-
})(ProjectType
|
8
|
+
})(ProjectType || (exports.ProjectType = ProjectType = {}));
|
9
9
|
var DbtProjectType;
|
10
10
|
(function (DbtProjectType) {
|
11
11
|
DbtProjectType["DBT"] = "dbt";
|
@@ -15,7 +15,7 @@ var DbtProjectType;
|
|
15
15
|
DbtProjectType["BITBUCKET"] = "bitbucket";
|
16
16
|
DbtProjectType["AZURE_DEVOPS"] = "azure_devops";
|
17
17
|
DbtProjectType["NONE"] = "none";
|
18
|
-
})(DbtProjectType
|
18
|
+
})(DbtProjectType || (exports.DbtProjectType = DbtProjectType = {}));
|
19
19
|
var WarehouseTypes;
|
20
20
|
(function (WarehouseTypes) {
|
21
21
|
WarehouseTypes["BIGQUERY"] = "bigquery";
|
@@ -24,12 +24,12 @@ var WarehouseTypes;
|
|
24
24
|
WarehouseTypes["SNOWFLAKE"] = "snowflake";
|
25
25
|
WarehouseTypes["DATABRICKS"] = "databricks";
|
26
26
|
WarehouseTypes["TRINO"] = "trino";
|
27
|
-
})(WarehouseTypes
|
27
|
+
})(WarehouseTypes || (exports.WarehouseTypes = WarehouseTypes = {}));
|
28
28
|
var SemanticLayerType;
|
29
29
|
(function (SemanticLayerType) {
|
30
30
|
SemanticLayerType["DBT"] = "DBT";
|
31
31
|
SemanticLayerType["CUBE"] = "CUBE";
|
32
|
-
})(SemanticLayerType
|
32
|
+
})(SemanticLayerType || (exports.SemanticLayerType = SemanticLayerType = {}));
|
33
33
|
exports.sensitiveCredentialsFieldNames = [
|
34
34
|
'user',
|
35
35
|
'password',
|
@@ -47,12 +47,12 @@ var SupportedDbtVersions;
|
|
47
47
|
SupportedDbtVersions["V1_7"] = "v1.7";
|
48
48
|
SupportedDbtVersions["V1_8"] = "v1.8";
|
49
49
|
SupportedDbtVersions["V1_9"] = "v1.9";
|
50
|
-
})(SupportedDbtVersions
|
50
|
+
})(SupportedDbtVersions || (exports.SupportedDbtVersions = SupportedDbtVersions = {}));
|
51
51
|
// Make it an enum to avoid TSOA errors
|
52
52
|
var DbtVersionOptionLatest;
|
53
53
|
(function (DbtVersionOptionLatest) {
|
54
54
|
DbtVersionOptionLatest["LATEST"] = "latest";
|
55
|
-
})(DbtVersionOptionLatest
|
55
|
+
})(DbtVersionOptionLatest || (exports.DbtVersionOptionLatest = DbtVersionOptionLatest = {}));
|
56
56
|
const getLatestSupportDbtVersion = () => {
|
57
57
|
const versions = Object.values(SupportedDbtVersions);
|
58
58
|
return versions[versions.length - 1];
|
package/dist/types/promotion.js
CHANGED
@@ -7,4 +7,4 @@ var PromotionAction;
|
|
7
7
|
PromotionAction["CREATE"] = "create";
|
8
8
|
PromotionAction["UPDATE"] = "update";
|
9
9
|
PromotionAction["DELETE"] = "delete";
|
10
|
-
})(PromotionAction
|
10
|
+
})(PromotionAction || (exports.PromotionAction = PromotionAction = {}));
|
@@ -9,13 +9,13 @@ var ResourceViewItemType;
|
|
9
9
|
ResourceViewItemType["CHART"] = "chart";
|
10
10
|
ResourceViewItemType["DASHBOARD"] = "dashboard";
|
11
11
|
ResourceViewItemType["SPACE"] = "space";
|
12
|
-
})(ResourceViewItemType
|
12
|
+
})(ResourceViewItemType || (exports.ResourceViewItemType = ResourceViewItemType = {}));
|
13
13
|
var ResourceItemCategory;
|
14
14
|
(function (ResourceItemCategory) {
|
15
15
|
ResourceItemCategory["MOST_POPULAR"] = "mostPopular";
|
16
16
|
ResourceItemCategory["RECENTLY_UPDATED"] = "recentlyUpdated";
|
17
17
|
ResourceItemCategory["PINNED"] = "pinned";
|
18
|
-
})(ResourceItemCategory
|
18
|
+
})(ResourceItemCategory || (exports.ResourceItemCategory = ResourceItemCategory = {}));
|
19
19
|
const isResourceViewItemChart = (item) => item.type === ResourceViewItemType.CHART;
|
20
20
|
exports.isResourceViewItemChart = isResourceViewItemChart;
|
21
21
|
const isResourceViewItemDashboard = (item) => item.type === ResourceViewItemType.DASHBOARD;
|
@@ -16,7 +16,7 @@ var ChartKind;
|
|
16
16
|
ChartKind["BIG_NUMBER"] = "big_number";
|
17
17
|
ChartKind["FUNNEL"] = "funnel";
|
18
18
|
ChartKind["CUSTOM"] = "custom";
|
19
|
-
})(ChartKind
|
19
|
+
})(ChartKind || (exports.ChartKind = ChartKind = {}));
|
20
20
|
var ChartType;
|
21
21
|
(function (ChartType) {
|
22
22
|
ChartType["CARTESIAN"] = "cartesian";
|
@@ -25,12 +25,12 @@ var ChartType;
|
|
25
25
|
ChartType["PIE"] = "pie";
|
26
26
|
ChartType["FUNNEL"] = "funnel";
|
27
27
|
ChartType["CUSTOM"] = "custom";
|
28
|
-
})(ChartType
|
28
|
+
})(ChartType || (exports.ChartType = ChartType = {}));
|
29
29
|
var ComparisonFormatTypes;
|
30
30
|
(function (ComparisonFormatTypes) {
|
31
31
|
ComparisonFormatTypes["RAW"] = "raw";
|
32
32
|
ComparisonFormatTypes["PERCENTAGE"] = "percentage";
|
33
|
-
})(ComparisonFormatTypes
|
33
|
+
})(ComparisonFormatTypes || (exports.ComparisonFormatTypes = ComparisonFormatTypes = {}));
|
34
34
|
var ComparisonDiffTypes;
|
35
35
|
(function (ComparisonDiffTypes) {
|
36
36
|
ComparisonDiffTypes["POSITIVE"] = "positive";
|
@@ -38,7 +38,7 @@ var ComparisonDiffTypes;
|
|
38
38
|
ComparisonDiffTypes["NONE"] = "none";
|
39
39
|
ComparisonDiffTypes["NAN"] = "NaN";
|
40
40
|
ComparisonDiffTypes["UNDEFINED"] = "undefined";
|
41
|
-
})(ComparisonDiffTypes
|
41
|
+
})(ComparisonDiffTypes || (exports.ComparisonDiffTypes = ComparisonDiffTypes = {}));
|
42
42
|
exports.PieChartValueLabels = {
|
43
43
|
hidden: 'Hidden',
|
44
44
|
inside: 'Inside',
|
@@ -55,26 +55,26 @@ var FunnelChartDataInput;
|
|
55
55
|
(function (FunnelChartDataInput) {
|
56
56
|
FunnelChartDataInput["ROW"] = "row";
|
57
57
|
FunnelChartDataInput["COLUMN"] = "column";
|
58
|
-
})(FunnelChartDataInput
|
58
|
+
})(FunnelChartDataInput || (exports.FunnelChartDataInput = FunnelChartDataInput = {}));
|
59
59
|
var FunnelChartLabelPosition;
|
60
60
|
(function (FunnelChartLabelPosition) {
|
61
61
|
FunnelChartLabelPosition["INSIDE"] = "inside";
|
62
62
|
FunnelChartLabelPosition["LEFT"] = "left";
|
63
63
|
FunnelChartLabelPosition["RIGHT"] = "right";
|
64
64
|
FunnelChartLabelPosition["HIDDEN"] = "hidden";
|
65
|
-
})(FunnelChartLabelPosition
|
65
|
+
})(FunnelChartLabelPosition || (exports.FunnelChartLabelPosition = FunnelChartLabelPosition = {}));
|
66
66
|
var FunnelChartLegendPosition;
|
67
67
|
(function (FunnelChartLegendPosition) {
|
68
68
|
FunnelChartLegendPosition["HORIZONTAL"] = "horizontal";
|
69
69
|
FunnelChartLegendPosition["VERTICAL"] = "vertical";
|
70
|
-
})(FunnelChartLegendPosition
|
70
|
+
})(FunnelChartLegendPosition || (exports.FunnelChartLegendPosition = FunnelChartLegendPosition = {}));
|
71
71
|
var CartesianSeriesType;
|
72
72
|
(function (CartesianSeriesType) {
|
73
73
|
CartesianSeriesType["LINE"] = "line";
|
74
74
|
CartesianSeriesType["BAR"] = "bar";
|
75
75
|
CartesianSeriesType["SCATTER"] = "scatter";
|
76
76
|
CartesianSeriesType["AREA"] = "area";
|
77
|
-
})(CartesianSeriesType
|
77
|
+
})(CartesianSeriesType || (exports.CartesianSeriesType = CartesianSeriesType = {}));
|
78
78
|
const isPivotReferenceWithValues = (value) => !!value.pivotValues && value.pivotValues.length > 0;
|
79
79
|
exports.isPivotReferenceWithValues = isPivotReferenceWithValues;
|
80
80
|
const isCompleteLayout = (value) => !!value && !!value.xField && !!value.yField && value.yField.length > 0;
|