@lightdash/common 0.1347.0 → 0.1348.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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({
@@ -140,6 +140,7 @@ const applyDimensionOverrides = (dashboardFilters, overrides) => dashboardFilter
140
140
  if (override) {
141
141
  return {
142
142
  ...override,
143
+ disabled: dimension.disabled,
143
144
  tileTargets: dimension.tileTargets,
144
145
  };
145
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1347.0",
3
+ "version": "0.1348.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [