@lightdash/common 0.1346.0 → 0.1348.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,9 +19,10 @@ export type CatalogSelection = {
19
19
  field?: string;
20
20
  };
21
21
  export type ApiCatalogSearch = {
22
- search?: string;
22
+ searchQuery?: string;
23
23
  type?: CatalogType;
24
24
  filter?: CatalogFilter;
25
+ catalogTags?: string[];
25
26
  };
26
27
  export type CatalogField = Pick<Field, 'name' | 'label' | 'fieldType' | 'tableLabel' | 'description'> & Pick<Dimension, 'requiredAttributes'> & {
27
28
  catalogSearchUuid: string;
@@ -19,6 +19,11 @@ export declare class ForbiddenError extends LightdashError {
19
19
  [key: string]: any;
20
20
  });
21
21
  }
22
+ export declare class DeactivatedAccountError extends LightdashError {
23
+ constructor(message?: string, data?: {
24
+ [key: string]: any;
25
+ });
26
+ }
22
27
  export declare class AuthorizationError extends LightdashError {
23
28
  constructor(message?: string, data?: {
24
29
  [key: string]: any;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SlackInstallationNotFoundError = exports.KnexPaginationError = exports.NotEnoughResults = exports.MissingConfigError = exports.AlreadyExistsError = exports.AlreadyProcessingError = exports.SmptError = exports.WarehouseQueryError = exports.WarehouseConnectionError = exports.InvalidUser = exports.NotFoundError = exports.DbtError = exports.FieldReferenceError = exports.CompileError = exports.ParseError = exports.UnexpectedDatabaseError = exports.UnexpectedGitError = exports.UnexpectedServerError = exports.MissingWarehouseCredentialsError = exports.MissingCatalogEntryError = exports.NonCompiledModelError = exports.ParameterError = exports.ExpiredError = exports.NotExistsError = exports.AuthorizationError = exports.ForbiddenError = exports.LightdashError = void 0;
3
+ exports.SlackInstallationNotFoundError = exports.KnexPaginationError = exports.NotEnoughResults = exports.MissingConfigError = exports.AlreadyExistsError = exports.AlreadyProcessingError = exports.SmptError = exports.WarehouseQueryError = exports.WarehouseConnectionError = exports.InvalidUser = exports.NotFoundError = exports.DbtError = exports.FieldReferenceError = exports.CompileError = exports.ParseError = exports.UnexpectedDatabaseError = exports.UnexpectedGitError = exports.UnexpectedServerError = exports.MissingWarehouseCredentialsError = exports.MissingCatalogEntryError = exports.NonCompiledModelError = exports.ParameterError = exports.ExpiredError = exports.NotExistsError = exports.AuthorizationError = exports.DeactivatedAccountError = exports.ForbiddenError = exports.LightdashError = void 0;
4
4
  class LightdashError extends Error {
5
5
  constructor({ message, name, statusCode, data }) {
6
6
  super(message);
@@ -21,6 +21,17 @@ class ForbiddenError extends LightdashError {
21
21
  }
22
22
  }
23
23
  exports.ForbiddenError = ForbiddenError;
24
+ class DeactivatedAccountError extends LightdashError {
25
+ constructor(message = 'Your account has been deactivated. Please contact your organization administrator.', data = {}) {
26
+ super({
27
+ message,
28
+ name: 'DeactivatedAccountError',
29
+ statusCode: 403,
30
+ data,
31
+ });
32
+ }
33
+ }
34
+ exports.DeactivatedAccountError = DeactivatedAccountError;
24
35
  class AuthorizationError extends LightdashError {
25
36
  constructor(message = "You don't have authorization to perform this action", data = {}) {
26
37
  super({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1346.0",
3
+ "version": "0.1348.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [