@lightdash/common 0.1455.3 → 0.1456.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/catalog.d.ts +1 -0
- package/dist/types/catalog.js +2 -1
- package/package.json +9 -8
package/dist/types/catalog.d.ts
CHANGED
@@ -31,6 +31,7 @@ type CustomIcon = {
|
|
31
31
|
url: string;
|
32
32
|
};
|
33
33
|
export type CatalogItemIcon = EmojiIcon | CustomIcon;
|
34
|
+
export declare const UNCATEGORIZED_TAG_UUID = "__uncategorized__";
|
34
35
|
export declare const isEmojiIcon: (icon: CatalogItemIcon | null) => icon is EmojiIcon;
|
35
36
|
export declare const isCustomIcon: (icon: CatalogItemIcon | null) => icon is CustomIcon;
|
36
37
|
export type CatalogField = Pick<Field, 'name' | 'label' | 'fieldType' | 'tableLabel' | 'description'> & Pick<Dimension, 'requiredAttributes'> & {
|
package/dist/types/catalog.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.indexCatalogJob = exports.getBasicType = exports.isCustomIcon = exports.isEmojiIcon = exports.CatalogFilter = exports.CatalogType = void 0;
|
3
|
+
exports.indexCatalogJob = exports.getBasicType = exports.isCustomIcon = exports.isEmojiIcon = exports.UNCATEGORIZED_TAG_UUID = exports.CatalogFilter = exports.CatalogType = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const assertUnreachable_1 = tslib_1.__importDefault(require("../utils/assertUnreachable"));
|
6
6
|
const field_1 = require("./field");
|
@@ -15,6 +15,7 @@ var CatalogFilter;
|
|
15
15
|
CatalogFilter["Dimensions"] = "dimensions";
|
16
16
|
CatalogFilter["Metrics"] = "metrics";
|
17
17
|
})(CatalogFilter = exports.CatalogFilter || (exports.CatalogFilter = {}));
|
18
|
+
exports.UNCATEGORIZED_TAG_UUID = '__uncategorized__';
|
18
19
|
const isEmojiIcon = (icon) => Boolean(icon && 'unicode' in icon);
|
19
20
|
exports.isEmojiIcon = isEmojiIcon;
|
20
21
|
const isCustomIcon = (icon) => Boolean(icon && 'url' in icon);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lightdash/common",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.1456.1",
|
4
4
|
"main": "dist/index.js",
|
5
5
|
"types": "dist/index.d.ts",
|
6
6
|
"files": [
|
@@ -10,6 +10,7 @@
|
|
10
10
|
"devDependencies": {
|
11
11
|
"@types/pegjs": "^0.10.3",
|
12
12
|
"@types/sanitize-html": "^2.11.0",
|
13
|
+
"@types/uuid": "^10.0.0",
|
13
14
|
"typescript-json-schema": "^0.54.0"
|
14
15
|
},
|
15
16
|
"dependencies": {
|
@@ -20,25 +21,25 @@
|
|
20
21
|
"cronstrue": "^2.23.0",
|
21
22
|
"dayjs": "^1.11.9",
|
22
23
|
"dependency-graph": "^0.11.0",
|
23
|
-
"type-fest": "^3.10.0",
|
24
24
|
"liquidjs": "^10.0.0",
|
25
25
|
"lodash": "^4.17.21",
|
26
26
|
"moment": "^2.29.4",
|
27
27
|
"moment-timezone": "^0.5.45",
|
28
28
|
"pegjs": "^0.10.0",
|
29
29
|
"sanitize-html": "^2.12.1",
|
30
|
-
"
|
31
|
-
"
|
30
|
+
"type-fest": "^4.32.0",
|
31
|
+
"uuid": "^11.0.3",
|
32
|
+
"zod": "^3.22.4"
|
32
33
|
},
|
33
34
|
"scripts": {
|
34
35
|
"dev": "tsx watch --clear-screen=false src/index.ts",
|
35
36
|
"build": "tsc --build tsconfig.json",
|
36
37
|
"linter": "eslint -c .eslintrc.js --ignore-path ./../../.gitignore",
|
37
38
|
"formatter": "prettier --config .prettierrc.js --ignore-unknown --ignore-path ./../../.gitignore",
|
38
|
-
"lint": "
|
39
|
-
"fix-lint": "
|
40
|
-
"format": "
|
41
|
-
"fix-format": "
|
39
|
+
"lint": "pnpm run linter ./src",
|
40
|
+
"fix-lint": "pnpm run linter ./src --fix",
|
41
|
+
"format": "pnpm run formatter ./src --check",
|
42
|
+
"fix-format": "pnpm run formatter ./src --write",
|
42
43
|
"test": "TZ=UTC jest"
|
43
44
|
}
|
44
45
|
}
|