@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.
- package/dist/types/errors.d.ts +5 -0
- package/dist/types/errors.js +12 -1
- package/dist/types/filter.js +1 -0
- package/package.json +1 -1
package/dist/types/errors.d.ts
CHANGED
@@ -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;
|
package/dist/types/errors.js
CHANGED
@@ -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/dist/types/filter.js
CHANGED