@takeshape/errors 11.52.0 → 11.56.1
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/dist/__tests__/bad-request.test.d.ts +1 -0
- package/dist/__tests__/bad-request.test.js +12 -0
- package/dist/__tests__/base-error.test.d.ts +1 -0
- package/dist/__tests__/base-error.test.js +31 -0
- package/dist/__tests__/service-provider-error.test.d.ts +1 -0
- package/dist/__tests__/service-provider-error.test.js +8 -0
- package/dist/api-indexing/__tests__/index.test.d.ts +1 -0
- package/dist/api-indexing/__tests__/index.test.js +22 -0
- package/dist/api-indexing/index.d.ts +0 -1
- package/dist/api-indexing/index.js +27 -45
- package/dist/authorization.d.ts +1 -2
- package/dist/authorization.js +7 -17
- package/dist/bad-data.d.ts +1 -2
- package/dist/bad-data.js +7 -17
- package/dist/bad-request.d.ts +1 -2
- package/dist/bad-request.js +15 -25
- package/dist/base-error.d.ts +0 -1
- package/dist/base-error.js +15 -36
- package/dist/branch-merge-error.d.ts +1 -2
- package/dist/branch-merge-error.js +12 -22
- package/dist/conflict.d.ts +1 -2
- package/dist/conflict.js +9 -19
- package/dist/deploy.d.ts +1 -2
- package/dist/deploy.js +7 -17
- package/dist/directive-mapping-error.d.ts +1 -2
- package/dist/directive-mapping-error.js +7 -17
- package/dist/download.d.ts +1 -2
- package/dist/download.js +7 -17
- package/dist/entitlement.d.ts +1 -2
- package/dist/entitlement.js +7 -17
- package/dist/forbidden.d.ts +1 -2
- package/dist/forbidden.js +9 -19
- package/dist/generate.d.ts +1 -2
- package/dist/generate.js +7 -17
- package/dist/guardrails.d.ts +1 -2
- package/dist/guardrails.js +21 -34
- package/dist/import.d.ts +1 -2
- package/dist/import.js +7 -17
- package/dist/index.d.ts +29 -30
- package/dist/index.js +29 -324
- package/dist/invalid-query-error.d.ts +1 -2
- package/dist/invalid-query-error.js +7 -17
- package/dist/invalid-version.d.ts +1 -2
- package/dist/invalid-version.js +7 -17
- package/dist/json-validation.d.ts +1 -2
- package/dist/json-validation.js +13 -23
- package/dist/lock.d.ts +1 -2
- package/dist/lock.js +7 -17
- package/dist/not-found.d.ts +1 -2
- package/dist/not-found.js +7 -17
- package/dist/parameter-serialization-error.d.ts +1 -2
- package/dist/parameter-serialization-error.js +7 -17
- package/dist/payment-method.d.ts +1 -2
- package/dist/payment-method.js +7 -17
- package/dist/remote-graphql-schema.d.ts +1 -2
- package/dist/remote-graphql-schema.js +7 -17
- package/dist/schema-build.d.ts +1 -2
- package/dist/schema-build.js +12 -26
- package/dist/schema-validation.d.ts +1 -2
- package/dist/schema-validation.js +13 -23
- package/dist/service-provider.d.ts +1 -2
- package/dist/service-provider.js +7 -17
- package/dist/suspend.d.ts +1 -2
- package/dist/suspend.js +9 -19
- package/dist/unauthorized.d.ts +1 -2
- package/dist/unauthorized.js +7 -17
- package/dist/unzip.d.ts +1 -2
- package/dist/unzip.js +7 -17
- package/package.json +21 -19
- package/dist/api-indexing/index.d.ts.map +0 -1
- package/dist/authorization.d.ts.map +0 -1
- package/dist/bad-data.d.ts.map +0 -1
- package/dist/bad-request.d.ts.map +0 -1
- package/dist/base-error.d.ts.map +0 -1
- package/dist/branch-merge-error.d.ts.map +0 -1
- package/dist/conflict.d.ts.map +0 -1
- package/dist/deploy.d.ts.map +0 -1
- package/dist/directive-mapping-error.d.ts.map +0 -1
- package/dist/download.d.ts.map +0 -1
- package/dist/entitlement.d.ts.map +0 -1
- package/dist/forbidden.d.ts.map +0 -1
- package/dist/generate.d.ts.map +0 -1
- package/dist/guardrails.d.ts.map +0 -1
- package/dist/import.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/invalid-query-error.d.ts.map +0 -1
- package/dist/invalid-version.d.ts.map +0 -1
- package/dist/json-validation.d.ts.map +0 -1
- package/dist/lock.d.ts.map +0 -1
- package/dist/not-found.d.ts.map +0 -1
- package/dist/parameter-serialization-error.d.ts.map +0 -1
- package/dist/payment-method.d.ts.map +0 -1
- package/dist/remote-graphql-schema.d.ts.map +0 -1
- package/dist/schema-build.d.ts.map +0 -1
- package/dist/schema-validation.d.ts.map +0 -1
- package/dist/service-provider.d.ts.map +0 -1
- package/dist/suspend.d.ts.map +0 -1
- package/dist/unauthorized.d.ts.map +0 -1
- package/dist/unzip.d.ts.map +0 -1
- package/es/api-indexing/index.js +0 -39
- package/es/authorization.js +0 -11
- package/es/bad-data.js +0 -11
- package/es/bad-request.js +0 -19
- package/es/base-error.js +0 -31
- package/es/branch-merge-error.js +0 -16
- package/es/conflict.js +0 -13
- package/es/deploy.js +0 -11
- package/es/directive-mapping-error.js +0 -11
- package/es/download.js +0 -11
- package/es/entitlement.js +0 -11
- package/es/forbidden.js +0 -13
- package/es/generate.js +0 -11
- package/es/guardrails.js +0 -28
- package/es/import.js +0 -11
- package/es/index.js +0 -30
- package/es/invalid-query-error.js +0 -11
- package/es/invalid-version.js +0 -11
- package/es/json-validation.js +0 -17
- package/es/lock.js +0 -11
- package/es/not-found.js +0 -11
- package/es/parameter-serialization-error.js +0 -11
- package/es/payment-method.js +0 -11
- package/es/remote-graphql-schema.js +0 -11
- package/es/schema-build.js +0 -20
- package/es/schema-validation.js +0 -17
- package/es/service-provider.js +0 -11
- package/es/suspend.js +0 -13
- package/es/unauthorized.js +0 -11
- package/es/unzip.js +0 -11
package/dist/forbidden.js
CHANGED
|
@@ -1,20 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
class ForbiddenError extends _baseError.BaseError {
|
|
12
|
-
constructor(message = 'Forbidden Error', data, options = {}) {
|
|
13
|
-
super(message, options);
|
|
14
|
-
_defineProperty(this, "data", void 0);
|
|
15
|
-
this.data = data;
|
|
16
|
-
}
|
|
1
|
+
import { BaseError } from "./base-error.js";
|
|
2
|
+
export class ForbiddenError extends BaseError {
|
|
3
|
+
static code = 'ForbiddenError';
|
|
4
|
+
static statusCode = 403;
|
|
5
|
+
data;
|
|
6
|
+
constructor(message = 'Forbidden Error', data, options = {}) {
|
|
7
|
+
super(message, options);
|
|
8
|
+
this.data = data;
|
|
9
|
+
}
|
|
17
10
|
}
|
|
18
|
-
exports.ForbiddenError = ForbiddenError;
|
|
19
|
-
_defineProperty(ForbiddenError, "code", 'ForbiddenError');
|
|
20
|
-
_defineProperty(ForbiddenError, "statusCode", 403);
|
package/dist/generate.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { BaseError, type BaseErrorOptions } from './base-error';
|
|
1
|
+
import { BaseError, type BaseErrorOptions } from './base-error.ts';
|
|
2
2
|
export declare class GenerateError extends BaseError {
|
|
3
3
|
static code: string;
|
|
4
4
|
static statusCode: number;
|
|
5
5
|
constructor(message?: string, options?: BaseErrorOptions);
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=generate.d.ts.map
|
package/dist/generate.js
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
9
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
10
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
class GenerateError extends _baseError.BaseError {
|
|
12
|
-
constructor(message = 'An error occurred while generating static site', options = {}) {
|
|
13
|
-
super(message, options);
|
|
14
|
-
}
|
|
1
|
+
import { BaseError } from "./base-error.js";
|
|
2
|
+
export class GenerateError extends BaseError {
|
|
3
|
+
static code = 'GenerateError';
|
|
4
|
+
static statusCode = 500;
|
|
5
|
+
constructor(message = 'An error occurred while generating static site', options = {}) {
|
|
6
|
+
super(message, options);
|
|
7
|
+
}
|
|
15
8
|
}
|
|
16
|
-
exports.GenerateError = GenerateError;
|
|
17
|
-
_defineProperty(GenerateError, "code", 'GenerateError');
|
|
18
|
-
_defineProperty(GenerateError, "statusCode", 500);
|
package/dist/guardrails.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseError } from './base-error';
|
|
1
|
+
import { BaseError } from './base-error.ts';
|
|
2
2
|
export declare enum GuardrailErrorCode {
|
|
3
3
|
GeneralError = "GENERAL_ERROR",
|
|
4
4
|
InvalidData = "INVALID_DATA",
|
|
@@ -15,4 +15,3 @@ export type GuardrailErrorOptions = {
|
|
|
15
15
|
export declare class GuardrailError extends BaseError {
|
|
16
16
|
constructor(message?: string, options?: GuardrailErrorOptions);
|
|
17
17
|
}
|
|
18
|
-
//# sourceMappingURL=guardrails.d.ts.map
|
package/dist/guardrails.js
CHANGED
|
@@ -1,35 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
code,
|
|
23
|
-
reportToSentry,
|
|
24
|
-
originalError
|
|
25
|
-
} = options;
|
|
26
|
-
super(message, {
|
|
27
|
-
reportToSentry,
|
|
28
|
-
extensions: {
|
|
29
|
-
code,
|
|
30
|
-
originalError
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}
|
|
1
|
+
import { BaseError } from "./base-error.js";
|
|
2
|
+
export var GuardrailErrorCode;
|
|
3
|
+
(function (GuardrailErrorCode) {
|
|
4
|
+
GuardrailErrorCode["GeneralError"] = "GENERAL_ERROR";
|
|
5
|
+
GuardrailErrorCode["InvalidData"] = "INVALID_DATA";
|
|
6
|
+
GuardrailErrorCode["InvalidResponse"] = "INVALID_RESPONSE";
|
|
7
|
+
GuardrailErrorCode["SchemaError"] = "SCHEMA_ERROR";
|
|
8
|
+
GuardrailErrorCode["SchemaVersionMismatch"] = "SCHEMA_VERSION_MISMATCH";
|
|
9
|
+
GuardrailErrorCode["NotEntitled"] = "NOT_ENTITLED";
|
|
10
|
+
})(GuardrailErrorCode || (GuardrailErrorCode = {}));
|
|
11
|
+
export class GuardrailError extends BaseError {
|
|
12
|
+
constructor(message = 'Guardrail error.', options = { code: GuardrailErrorCode.GeneralError }) {
|
|
13
|
+
const { code, reportToSentry, originalError } = options;
|
|
14
|
+
super(message, {
|
|
15
|
+
reportToSentry,
|
|
16
|
+
extensions: {
|
|
17
|
+
code,
|
|
18
|
+
originalError
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
34
22
|
}
|
|
35
|
-
exports.GuardrailError = GuardrailError;
|
package/dist/import.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { BaseError, type BaseErrorOptions } from './base-error';
|
|
1
|
+
import { BaseError, type BaseErrorOptions } from './base-error.ts';
|
|
2
2
|
export declare class ImportError extends BaseError {
|
|
3
3
|
static code: string;
|
|
4
4
|
static statusCode: number;
|
|
5
5
|
constructor(message?: string, options?: BaseErrorOptions);
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=import.d.ts.map
|
package/dist/import.js
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
9
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
10
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
class ImportError extends _baseError.BaseError {
|
|
12
|
-
constructor(message = 'Unable to import the project', options = {}) {
|
|
13
|
-
super(message, options);
|
|
14
|
-
}
|
|
1
|
+
import { BaseError } from "./base-error.js";
|
|
2
|
+
export class ImportError extends BaseError {
|
|
3
|
+
static code = 'ImportError';
|
|
4
|
+
static statusCode = 500;
|
|
5
|
+
constructor(message = 'Unable to import the project', options = {}) {
|
|
6
|
+
super(message, options);
|
|
7
|
+
}
|
|
15
8
|
}
|
|
16
|
-
exports.ImportError = ImportError;
|
|
17
|
-
_defineProperty(ImportError, "code", 'ImportError');
|
|
18
|
-
_defineProperty(ImportError, "statusCode", 500);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
export * from './schema-validation';
|
|
2
|
-
export * from './json-validation';
|
|
3
|
-
export * from './authorization';
|
|
4
|
-
export * from './conflict';
|
|
5
|
-
export * from './invalid-version';
|
|
6
|
-
export * from './lock';
|
|
7
|
-
export * from './not-found';
|
|
8
|
-
export * from './entitlement';
|
|
9
|
-
export * from './bad-data';
|
|
10
|
-
export * from './bad-request';
|
|
11
|
-
export * from './base-error';
|
|
12
|
-
export * from './invalid-query-error';
|
|
13
|
-
export * from './unzip';
|
|
14
|
-
export * from './generate';
|
|
15
|
-
export * from './download';
|
|
16
|
-
export * from './deploy';
|
|
17
|
-
export * from './unauthorized';
|
|
18
|
-
export * from './forbidden';
|
|
19
|
-
export * from './service-provider';
|
|
20
|
-
export * from './import';
|
|
21
|
-
export * from './directive-mapping-error';
|
|
22
|
-
export * from './parameter-serialization-error';
|
|
23
|
-
export * from './api-indexing';
|
|
24
|
-
export * from './payment-method';
|
|
25
|
-
export * from './branch-merge-error';
|
|
26
|
-
export * from './schema-build';
|
|
27
|
-
export * from './suspend';
|
|
28
|
-
export * from './remote-graphql-schema';
|
|
29
|
-
export * from './guardrails';
|
|
30
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from './schema-validation.ts';
|
|
2
|
+
export * from './json-validation.ts';
|
|
3
|
+
export * from './authorization.ts';
|
|
4
|
+
export * from './conflict.ts';
|
|
5
|
+
export * from './invalid-version.ts';
|
|
6
|
+
export * from './lock.ts';
|
|
7
|
+
export * from './not-found.ts';
|
|
8
|
+
export * from './entitlement.ts';
|
|
9
|
+
export * from './bad-data.ts';
|
|
10
|
+
export * from './bad-request.ts';
|
|
11
|
+
export * from './base-error.ts';
|
|
12
|
+
export * from './invalid-query-error.ts';
|
|
13
|
+
export * from './unzip.ts';
|
|
14
|
+
export * from './generate.ts';
|
|
15
|
+
export * from './download.ts';
|
|
16
|
+
export * from './deploy.ts';
|
|
17
|
+
export * from './unauthorized.ts';
|
|
18
|
+
export * from './forbidden.ts';
|
|
19
|
+
export * from './service-provider.ts';
|
|
20
|
+
export * from './import.ts';
|
|
21
|
+
export * from './directive-mapping-error.ts';
|
|
22
|
+
export * from './parameter-serialization-error.ts';
|
|
23
|
+
export * from './api-indexing/index.ts';
|
|
24
|
+
export * from './payment-method.ts';
|
|
25
|
+
export * from './branch-merge-error.ts';
|
|
26
|
+
export * from './schema-build.ts';
|
|
27
|
+
export * from './suspend.ts';
|
|
28
|
+
export * from './remote-graphql-schema.ts';
|
|
29
|
+
export * from './guardrails.ts';
|
package/dist/index.js
CHANGED
|
@@ -1,324 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _authorization[key]) return;
|
|
32
|
-
Object.defineProperty(exports, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return _authorization[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
var _conflict = require("./conflict");
|
|
40
|
-
Object.keys(_conflict).forEach(function (key) {
|
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
|
42
|
-
if (key in exports && exports[key] === _conflict[key]) return;
|
|
43
|
-
Object.defineProperty(exports, key, {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return _conflict[key];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
var _invalidVersion = require("./invalid-version");
|
|
51
|
-
Object.keys(_invalidVersion).forEach(function (key) {
|
|
52
|
-
if (key === "default" || key === "__esModule") return;
|
|
53
|
-
if (key in exports && exports[key] === _invalidVersion[key]) return;
|
|
54
|
-
Object.defineProperty(exports, key, {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _invalidVersion[key];
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
var _lock = require("./lock");
|
|
62
|
-
Object.keys(_lock).forEach(function (key) {
|
|
63
|
-
if (key === "default" || key === "__esModule") return;
|
|
64
|
-
if (key in exports && exports[key] === _lock[key]) return;
|
|
65
|
-
Object.defineProperty(exports, key, {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function () {
|
|
68
|
-
return _lock[key];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
var _notFound = require("./not-found");
|
|
73
|
-
Object.keys(_notFound).forEach(function (key) {
|
|
74
|
-
if (key === "default" || key === "__esModule") return;
|
|
75
|
-
if (key in exports && exports[key] === _notFound[key]) return;
|
|
76
|
-
Object.defineProperty(exports, key, {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return _notFound[key];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
var _entitlement = require("./entitlement");
|
|
84
|
-
Object.keys(_entitlement).forEach(function (key) {
|
|
85
|
-
if (key === "default" || key === "__esModule") return;
|
|
86
|
-
if (key in exports && exports[key] === _entitlement[key]) return;
|
|
87
|
-
Object.defineProperty(exports, key, {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: function () {
|
|
90
|
-
return _entitlement[key];
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
var _badData = require("./bad-data");
|
|
95
|
-
Object.keys(_badData).forEach(function (key) {
|
|
96
|
-
if (key === "default" || key === "__esModule") return;
|
|
97
|
-
if (key in exports && exports[key] === _badData[key]) return;
|
|
98
|
-
Object.defineProperty(exports, key, {
|
|
99
|
-
enumerable: true,
|
|
100
|
-
get: function () {
|
|
101
|
-
return _badData[key];
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
var _badRequest = require("./bad-request");
|
|
106
|
-
Object.keys(_badRequest).forEach(function (key) {
|
|
107
|
-
if (key === "default" || key === "__esModule") return;
|
|
108
|
-
if (key in exports && exports[key] === _badRequest[key]) return;
|
|
109
|
-
Object.defineProperty(exports, key, {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
get: function () {
|
|
112
|
-
return _badRequest[key];
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
var _baseError = require("./base-error");
|
|
117
|
-
Object.keys(_baseError).forEach(function (key) {
|
|
118
|
-
if (key === "default" || key === "__esModule") return;
|
|
119
|
-
if (key in exports && exports[key] === _baseError[key]) return;
|
|
120
|
-
Object.defineProperty(exports, key, {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function () {
|
|
123
|
-
return _baseError[key];
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
var _invalidQueryError = require("./invalid-query-error");
|
|
128
|
-
Object.keys(_invalidQueryError).forEach(function (key) {
|
|
129
|
-
if (key === "default" || key === "__esModule") return;
|
|
130
|
-
if (key in exports && exports[key] === _invalidQueryError[key]) return;
|
|
131
|
-
Object.defineProperty(exports, key, {
|
|
132
|
-
enumerable: true,
|
|
133
|
-
get: function () {
|
|
134
|
-
return _invalidQueryError[key];
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
var _unzip = require("./unzip");
|
|
139
|
-
Object.keys(_unzip).forEach(function (key) {
|
|
140
|
-
if (key === "default" || key === "__esModule") return;
|
|
141
|
-
if (key in exports && exports[key] === _unzip[key]) return;
|
|
142
|
-
Object.defineProperty(exports, key, {
|
|
143
|
-
enumerable: true,
|
|
144
|
-
get: function () {
|
|
145
|
-
return _unzip[key];
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
var _generate = require("./generate");
|
|
150
|
-
Object.keys(_generate).forEach(function (key) {
|
|
151
|
-
if (key === "default" || key === "__esModule") return;
|
|
152
|
-
if (key in exports && exports[key] === _generate[key]) return;
|
|
153
|
-
Object.defineProperty(exports, key, {
|
|
154
|
-
enumerable: true,
|
|
155
|
-
get: function () {
|
|
156
|
-
return _generate[key];
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
var _download = require("./download");
|
|
161
|
-
Object.keys(_download).forEach(function (key) {
|
|
162
|
-
if (key === "default" || key === "__esModule") return;
|
|
163
|
-
if (key in exports && exports[key] === _download[key]) return;
|
|
164
|
-
Object.defineProperty(exports, key, {
|
|
165
|
-
enumerable: true,
|
|
166
|
-
get: function () {
|
|
167
|
-
return _download[key];
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
var _deploy = require("./deploy");
|
|
172
|
-
Object.keys(_deploy).forEach(function (key) {
|
|
173
|
-
if (key === "default" || key === "__esModule") return;
|
|
174
|
-
if (key in exports && exports[key] === _deploy[key]) return;
|
|
175
|
-
Object.defineProperty(exports, key, {
|
|
176
|
-
enumerable: true,
|
|
177
|
-
get: function () {
|
|
178
|
-
return _deploy[key];
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
});
|
|
182
|
-
var _unauthorized = require("./unauthorized");
|
|
183
|
-
Object.keys(_unauthorized).forEach(function (key) {
|
|
184
|
-
if (key === "default" || key === "__esModule") return;
|
|
185
|
-
if (key in exports && exports[key] === _unauthorized[key]) return;
|
|
186
|
-
Object.defineProperty(exports, key, {
|
|
187
|
-
enumerable: true,
|
|
188
|
-
get: function () {
|
|
189
|
-
return _unauthorized[key];
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
var _forbidden = require("./forbidden");
|
|
194
|
-
Object.keys(_forbidden).forEach(function (key) {
|
|
195
|
-
if (key === "default" || key === "__esModule") return;
|
|
196
|
-
if (key in exports && exports[key] === _forbidden[key]) return;
|
|
197
|
-
Object.defineProperty(exports, key, {
|
|
198
|
-
enumerable: true,
|
|
199
|
-
get: function () {
|
|
200
|
-
return _forbidden[key];
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
var _serviceProvider = require("./service-provider");
|
|
205
|
-
Object.keys(_serviceProvider).forEach(function (key) {
|
|
206
|
-
if (key === "default" || key === "__esModule") return;
|
|
207
|
-
if (key in exports && exports[key] === _serviceProvider[key]) return;
|
|
208
|
-
Object.defineProperty(exports, key, {
|
|
209
|
-
enumerable: true,
|
|
210
|
-
get: function () {
|
|
211
|
-
return _serviceProvider[key];
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
|
-
var _import = require("./import");
|
|
216
|
-
Object.keys(_import).forEach(function (key) {
|
|
217
|
-
if (key === "default" || key === "__esModule") return;
|
|
218
|
-
if (key in exports && exports[key] === _import[key]) return;
|
|
219
|
-
Object.defineProperty(exports, key, {
|
|
220
|
-
enumerable: true,
|
|
221
|
-
get: function () {
|
|
222
|
-
return _import[key];
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
});
|
|
226
|
-
var _directiveMappingError = require("./directive-mapping-error");
|
|
227
|
-
Object.keys(_directiveMappingError).forEach(function (key) {
|
|
228
|
-
if (key === "default" || key === "__esModule") return;
|
|
229
|
-
if (key in exports && exports[key] === _directiveMappingError[key]) return;
|
|
230
|
-
Object.defineProperty(exports, key, {
|
|
231
|
-
enumerable: true,
|
|
232
|
-
get: function () {
|
|
233
|
-
return _directiveMappingError[key];
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
|
-
var _parameterSerializationError = require("./parameter-serialization-error");
|
|
238
|
-
Object.keys(_parameterSerializationError).forEach(function (key) {
|
|
239
|
-
if (key === "default" || key === "__esModule") return;
|
|
240
|
-
if (key in exports && exports[key] === _parameterSerializationError[key]) return;
|
|
241
|
-
Object.defineProperty(exports, key, {
|
|
242
|
-
enumerable: true,
|
|
243
|
-
get: function () {
|
|
244
|
-
return _parameterSerializationError[key];
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
});
|
|
248
|
-
var _apiIndexing = require("./api-indexing");
|
|
249
|
-
Object.keys(_apiIndexing).forEach(function (key) {
|
|
250
|
-
if (key === "default" || key === "__esModule") return;
|
|
251
|
-
if (key in exports && exports[key] === _apiIndexing[key]) return;
|
|
252
|
-
Object.defineProperty(exports, key, {
|
|
253
|
-
enumerable: true,
|
|
254
|
-
get: function () {
|
|
255
|
-
return _apiIndexing[key];
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
});
|
|
259
|
-
var _paymentMethod = require("./payment-method");
|
|
260
|
-
Object.keys(_paymentMethod).forEach(function (key) {
|
|
261
|
-
if (key === "default" || key === "__esModule") return;
|
|
262
|
-
if (key in exports && exports[key] === _paymentMethod[key]) return;
|
|
263
|
-
Object.defineProperty(exports, key, {
|
|
264
|
-
enumerable: true,
|
|
265
|
-
get: function () {
|
|
266
|
-
return _paymentMethod[key];
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
});
|
|
270
|
-
var _branchMergeError = require("./branch-merge-error");
|
|
271
|
-
Object.keys(_branchMergeError).forEach(function (key) {
|
|
272
|
-
if (key === "default" || key === "__esModule") return;
|
|
273
|
-
if (key in exports && exports[key] === _branchMergeError[key]) return;
|
|
274
|
-
Object.defineProperty(exports, key, {
|
|
275
|
-
enumerable: true,
|
|
276
|
-
get: function () {
|
|
277
|
-
return _branchMergeError[key];
|
|
278
|
-
}
|
|
279
|
-
});
|
|
280
|
-
});
|
|
281
|
-
var _schemaBuild = require("./schema-build");
|
|
282
|
-
Object.keys(_schemaBuild).forEach(function (key) {
|
|
283
|
-
if (key === "default" || key === "__esModule") return;
|
|
284
|
-
if (key in exports && exports[key] === _schemaBuild[key]) return;
|
|
285
|
-
Object.defineProperty(exports, key, {
|
|
286
|
-
enumerable: true,
|
|
287
|
-
get: function () {
|
|
288
|
-
return _schemaBuild[key];
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
});
|
|
292
|
-
var _suspend = require("./suspend");
|
|
293
|
-
Object.keys(_suspend).forEach(function (key) {
|
|
294
|
-
if (key === "default" || key === "__esModule") return;
|
|
295
|
-
if (key in exports && exports[key] === _suspend[key]) return;
|
|
296
|
-
Object.defineProperty(exports, key, {
|
|
297
|
-
enumerable: true,
|
|
298
|
-
get: function () {
|
|
299
|
-
return _suspend[key];
|
|
300
|
-
}
|
|
301
|
-
});
|
|
302
|
-
});
|
|
303
|
-
var _remoteGraphqlSchema = require("./remote-graphql-schema");
|
|
304
|
-
Object.keys(_remoteGraphqlSchema).forEach(function (key) {
|
|
305
|
-
if (key === "default" || key === "__esModule") return;
|
|
306
|
-
if (key in exports && exports[key] === _remoteGraphqlSchema[key]) return;
|
|
307
|
-
Object.defineProperty(exports, key, {
|
|
308
|
-
enumerable: true,
|
|
309
|
-
get: function () {
|
|
310
|
-
return _remoteGraphqlSchema[key];
|
|
311
|
-
}
|
|
312
|
-
});
|
|
313
|
-
});
|
|
314
|
-
var _guardrails = require("./guardrails");
|
|
315
|
-
Object.keys(_guardrails).forEach(function (key) {
|
|
316
|
-
if (key === "default" || key === "__esModule") return;
|
|
317
|
-
if (key in exports && exports[key] === _guardrails[key]) return;
|
|
318
|
-
Object.defineProperty(exports, key, {
|
|
319
|
-
enumerable: true,
|
|
320
|
-
get: function () {
|
|
321
|
-
return _guardrails[key];
|
|
322
|
-
}
|
|
323
|
-
});
|
|
324
|
-
});
|
|
1
|
+
export * from "./schema-validation.js";
|
|
2
|
+
export * from "./json-validation.js";
|
|
3
|
+
export * from "./authorization.js";
|
|
4
|
+
export * from "./conflict.js";
|
|
5
|
+
export * from "./invalid-version.js";
|
|
6
|
+
export * from "./lock.js";
|
|
7
|
+
export * from "./not-found.js";
|
|
8
|
+
export * from "./entitlement.js";
|
|
9
|
+
export * from "./bad-data.js";
|
|
10
|
+
export * from "./bad-request.js";
|
|
11
|
+
export * from "./base-error.js";
|
|
12
|
+
export * from "./invalid-query-error.js";
|
|
13
|
+
export * from "./unzip.js";
|
|
14
|
+
export * from "./generate.js";
|
|
15
|
+
export * from "./download.js";
|
|
16
|
+
export * from "./deploy.js";
|
|
17
|
+
export * from "./unauthorized.js";
|
|
18
|
+
export * from "./forbidden.js";
|
|
19
|
+
export * from "./service-provider.js";
|
|
20
|
+
export * from "./import.js";
|
|
21
|
+
export * from "./directive-mapping-error.js";
|
|
22
|
+
export * from "./parameter-serialization-error.js";
|
|
23
|
+
export * from "./api-indexing/index.js";
|
|
24
|
+
export * from "./payment-method.js";
|
|
25
|
+
export * from "./branch-merge-error.js";
|
|
26
|
+
export * from "./schema-build.js";
|
|
27
|
+
export * from "./suspend.js";
|
|
28
|
+
export * from "./remote-graphql-schema.js";
|
|
29
|
+
export * from "./guardrails.js";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { BaseError, type BaseErrorOptions } from './base-error';
|
|
1
|
+
import { BaseError, type BaseErrorOptions } from './base-error.ts';
|
|
2
2
|
export declare class InvalidQueryError extends BaseError {
|
|
3
3
|
static code: string;
|
|
4
4
|
static statusCode: number;
|
|
5
5
|
constructor(message?: string, options?: BaseErrorOptions);
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=invalid-query-error.d.ts.map
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
9
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
10
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
class InvalidQueryError extends _baseError.BaseError {
|
|
12
|
-
constructor(message = 'Invalid Query', options = {}) {
|
|
13
|
-
super(message, options);
|
|
14
|
-
}
|
|
1
|
+
import { BaseError } from "./base-error.js";
|
|
2
|
+
export class InvalidQueryError extends BaseError {
|
|
3
|
+
static code = 'InvalidQueryError';
|
|
4
|
+
static statusCode = 400;
|
|
5
|
+
constructor(message = 'Invalid Query', options = {}) {
|
|
6
|
+
super(message, options);
|
|
7
|
+
}
|
|
15
8
|
}
|
|
16
|
-
exports.InvalidQueryError = InvalidQueryError;
|
|
17
|
-
_defineProperty(InvalidQueryError, "code", 'InvalidQueryError');
|
|
18
|
-
_defineProperty(InvalidQueryError, "statusCode", 400);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { BaseError, type BaseErrorOptions } from './base-error';
|
|
1
|
+
import { BaseError, type BaseErrorOptions } from './base-error.ts';
|
|
2
2
|
export declare class InvalidVersionError extends BaseError {
|
|
3
3
|
static code: string;
|
|
4
4
|
static statusCode: number;
|
|
5
5
|
constructor(message?: string, options?: BaseErrorOptions);
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=invalid-version.d.ts.map
|
package/dist/invalid-version.js
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
9
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
10
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
class InvalidVersionError extends _baseError.BaseError {
|
|
12
|
-
constructor(message = 'Invalid version', options = {}) {
|
|
13
|
-
super(message, options);
|
|
14
|
-
}
|
|
1
|
+
import { BaseError } from "./base-error.js";
|
|
2
|
+
export class InvalidVersionError extends BaseError {
|
|
3
|
+
static code = 'InvalidVersionError';
|
|
4
|
+
static statusCode = 409;
|
|
5
|
+
constructor(message = 'Invalid version', options = {}) {
|
|
6
|
+
super(message, options);
|
|
7
|
+
}
|
|
15
8
|
}
|
|
16
|
-
exports.InvalidVersionError = InvalidVersionError;
|
|
17
|
-
_defineProperty(InvalidVersionError, "code", 'InvalidVersionError');
|
|
18
|
-
_defineProperty(InvalidVersionError, "statusCode", 409);
|