@lightdash/common 0.1455.2 → 0.1456.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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'> & {
@@ -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.1455.2",
3
+ "version": "0.1456.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [