@constructive-io/errors 0.12.0 → 0.14.0
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/esm/generated/registry.generated.d.ts +3 -3
- package/esm/generated/registry.generated.js +505 -29
- package/esm/registry.d.ts +9 -0
- package/esm/registry.js +18 -0
- package/generated/registry.generated.d.ts +3 -3
- package/generated/registry.generated.js +505 -29
- package/package.json +2 -2
- package/registry.d.ts +9 -0
- package/registry.js +18 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/errors",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Canonical Constructive error system: registry, codes, i18n messages, and cross-source (PostgreSQL/GraphQL/client) parsing. Zero runtime dependencies.",
|
|
6
6
|
"main": "index.js",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"makage": "^0.8.0",
|
|
42
42
|
"ts-node": "^10.9.2"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "27be33dc1ba8351e2a2c2bbb99b9c0798c0813b9"
|
|
45
45
|
}
|
package/registry.d.ts
CHANGED
|
@@ -48,6 +48,15 @@ export declare const registry: {
|
|
|
48
48
|
readonly CAPTCHA_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
49
49
|
readonly CAPTCHA_FAILED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
50
50
|
readonly FORBIDDEN: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
51
|
+
readonly ACCESS_SUSPENDED: import("./define").DefinedError<{
|
|
52
|
+
reason?: string;
|
|
53
|
+
}>;
|
|
54
|
+
readonly SUSPENSION_FORBIDDEN: import("./define").DefinedError<{
|
|
55
|
+
database_id?: string;
|
|
56
|
+
}>;
|
|
57
|
+
readonly SUSPENSION_REASON_INVALID: import("./define").DefinedError<{
|
|
58
|
+
reason?: string;
|
|
59
|
+
}>;
|
|
51
60
|
readonly STEP_UP_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
52
61
|
readonly MFA_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
53
62
|
readonly INVALID_TOKEN: import("./define").DefinedError<import("./types").EmptyContext>;
|
package/registry.js
CHANGED
|
@@ -253,6 +253,24 @@ exports.registry = {
|
|
|
253
253
|
http: 403,
|
|
254
254
|
message: 'You do not have permission to do that.'
|
|
255
255
|
}),
|
|
256
|
+
ACCESS_SUSPENDED: (0, define_1.defineError)({
|
|
257
|
+
code: 'ACCESS_SUSPENDED',
|
|
258
|
+
class: 'public',
|
|
259
|
+
http: 403,
|
|
260
|
+
message: 'Access to this database is suspended.'
|
|
261
|
+
}),
|
|
262
|
+
SUSPENSION_FORBIDDEN: (0, define_1.defineError)({
|
|
263
|
+
code: 'SUSPENSION_FORBIDDEN',
|
|
264
|
+
class: 'public',
|
|
265
|
+
http: 403,
|
|
266
|
+
message: 'Only the platform may change database suspension.'
|
|
267
|
+
}),
|
|
268
|
+
SUSPENSION_REASON_INVALID: (0, define_1.defineError)({
|
|
269
|
+
code: 'SUSPENSION_REASON_INVALID',
|
|
270
|
+
class: 'public',
|
|
271
|
+
http: 400,
|
|
272
|
+
message: 'Suspension reason must be "billing" or "admin".'
|
|
273
|
+
}),
|
|
256
274
|
STEP_UP_REQUIRED: (0, define_1.defineError)({
|
|
257
275
|
code: 'STEP_UP_REQUIRED',
|
|
258
276
|
class: 'public',
|