@venizia/ignis 0.1.1-10 → 0.1.1-12
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/base/middlewares/common/errors.d.ts +18 -0
- package/dist/base/middlewares/common/errors.d.ts.map +1 -0
- package/dist/base/middlewares/common/errors.js +13 -0
- package/dist/base/middlewares/common/errors.js.map +1 -0
- package/dist/base/middlewares/common/index.d.ts +2 -0
- package/dist/base/middlewares/common/index.d.ts.map +1 -0
- package/dist/base/middlewares/common/index.js +18 -0
- package/dist/base/middlewares/common/index.js.map +1 -0
- package/dist/base/middlewares/index.d.ts +1 -0
- package/dist/base/middlewares/index.d.ts.map +1 -1
- package/dist/base/middlewares/index.js +1 -0
- package/dist/base/middlewares/index.js.map +1 -1
- package/dist/base/middlewares/request-spy/request-spy.middleware.d.ts.map +1 -1
- package/dist/base/middlewares/request-spy/request-spy.middleware.js +2 -1
- package/dist/base/middlewares/request-spy/request-spy.middleware.js.map +1 -1
- package/dist/base/repositories/common/errors.d.ts +18 -0
- package/dist/base/repositories/common/errors.d.ts.map +1 -0
- package/dist/base/repositories/common/errors.js +13 -0
- package/dist/base/repositories/common/errors.js.map +1 -0
- package/dist/base/repositories/common/index.d.ts +3 -1
- package/dist/base/repositories/common/index.d.ts.map +1 -1
- package/dist/base/repositories/common/index.js +3 -1
- package/dist/base/repositories/common/index.js.map +1 -1
- package/dist/base/repositories/common/types.d.ts +1 -1
- package/dist/base/repositories/common/types.d.ts.map +1 -1
- package/dist/base/repositories/core/abstract.d.ts +1 -1
- package/dist/base/repositories/core/abstract.d.ts.map +1 -1
- package/dist/base/repositories/query-schemas/index.d.ts +3 -7
- package/dist/base/repositories/query-schemas/index.d.ts.map +1 -1
- package/dist/base/repositories/query-schemas/index.js +10 -21
- package/dist/base/repositories/query-schemas/index.js.map +1 -1
- package/dist/components/auth/authenticate/common/errors.d.ts +91 -0
- package/dist/components/auth/authenticate/common/errors.d.ts.map +1 -0
- package/dist/components/auth/authenticate/common/errors.js +80 -0
- package/dist/components/auth/authenticate/common/errors.js.map +1 -0
- package/dist/components/auth/authenticate/common/index.d.ts +1 -0
- package/dist/components/auth/authenticate/common/index.d.ts.map +1 -1
- package/dist/components/auth/authenticate/common/index.js +1 -0
- package/dist/components/auth/authenticate/common/index.js.map +1 -1
- package/dist/components/auth/authenticate/providers/authentication.provider.d.ts.map +1 -1
- package/dist/components/auth/authenticate/providers/authentication.provider.js +8 -6
- package/dist/components/auth/authenticate/providers/authentication.provider.js.map +1 -1
- package/dist/components/auth/authenticate/services/basic/service.d.ts.map +1 -1
- package/dist/components/auth/authenticate/services/basic/service.js +5 -5
- package/dist/components/auth/authenticate/services/basic/service.js.map +1 -1
- package/dist/components/auth/authenticate/services/bearer/abstract.service.d.ts.map +1 -1
- package/dist/components/auth/authenticate/services/bearer/abstract.service.js +9 -7
- package/dist/components/auth/authenticate/services/bearer/abstract.service.js.map +1 -1
- package/dist/components/auth/authorize/common/errors.d.ts +51 -0
- package/dist/components/auth/authorize/common/errors.d.ts.map +1 -0
- package/dist/components/auth/authorize/common/errors.js +43 -0
- package/dist/components/auth/authorize/common/errors.js.map +1 -0
- package/dist/components/auth/authorize/common/index.d.ts +1 -0
- package/dist/components/auth/authorize/common/index.d.ts.map +1 -1
- package/dist/components/auth/authorize/common/index.js +1 -0
- package/dist/components/auth/authorize/common/index.js.map +1 -1
- package/dist/components/auth/authorize/enforcers/casbin.enforcer.d.ts.map +1 -1
- package/dist/components/auth/authorize/enforcers/casbin.enforcer.js +1 -1
- package/dist/components/auth/authorize/enforcers/casbin.enforcer.js.map +1 -1
- package/dist/components/auth/authorize/providers/authorization.provider.d.ts.map +1 -1
- package/dist/components/auth/authorize/providers/authorization.provider.js +6 -4
- package/dist/components/auth/authorize/providers/authorization.provider.js.map +1 -1
- package/dist/components/mail/common/errors.d.ts +35 -0
- package/dist/components/mail/common/errors.d.ts.map +1 -0
- package/dist/components/mail/common/errors.js +24 -0
- package/dist/components/mail/common/errors.js.map +1 -0
- package/dist/components/mail/common/index.d.ts +1 -0
- package/dist/components/mail/common/index.d.ts.map +1 -1
- package/dist/components/mail/common/index.js +1 -0
- package/dist/components/mail/common/index.js.map +1 -1
- package/dist/components/mail/services/mail.service.d.ts.map +1 -1
- package/dist/components/mail/services/mail.service.js +3 -6
- package/dist/components/mail/services/mail.service.js.map +1 -1
- package/dist/components/mail/services/template.service.d.ts.map +1 -1
- package/dist/components/mail/services/template.service.js +2 -4
- package/dist/components/mail/services/template.service.js.map +1 -1
- package/dist/components/static-asset/common/errors.d.ts +66 -0
- package/dist/components/static-asset/common/errors.d.ts.map +1 -0
- package/dist/components/static-asset/common/errors.js +55 -0
- package/dist/components/static-asset/common/errors.js.map +1 -0
- package/dist/components/static-asset/common/index.d.ts +1 -0
- package/dist/components/static-asset/common/index.d.ts.map +1 -1
- package/dist/components/static-asset/common/index.js +1 -0
- package/dist/components/static-asset/common/index.js.map +1 -1
- package/dist/components/static-asset/controller/factory.d.ts.map +1 -1
- package/dist/components/static-asset/controller/factory.js +18 -60
- package/dist/components/static-asset/controller/factory.js.map +1 -1
- package/dist/connectors/meilisearch/connector.d.ts.map +1 -1
- package/dist/connectors/meilisearch/connector.js +2 -2
- package/dist/connectors/meilisearch/connector.js.map +1 -1
- package/dist/connectors/meilisearch/repositories/dialect/query-dialect.d.ts +1 -1
- package/dist/connectors/meilisearch/repositories/dialect/query-dialect.d.ts.map +1 -1
- package/dist/connectors/meilisearch/repositories/dialect/query-dialect.js +18 -18
- package/dist/connectors/meilisearch/repositories/dialect/query-dialect.js.map +1 -1
- package/dist/connectors/postgres/repositories/core/soft-deletable.d.ts.map +1 -1
- package/dist/connectors/postgres/repositories/core/soft-deletable.js +3 -1
- package/dist/connectors/postgres/repositories/core/soft-deletable.js.map +1 -1
- package/dist/connectors/search/common/errors.d.ts +27 -0
- package/dist/connectors/search/common/errors.d.ts.map +1 -0
- package/dist/connectors/search/common/errors.js +19 -0
- package/dist/connectors/search/common/errors.js.map +1 -0
- package/dist/connectors/search/common/index.d.ts +2 -0
- package/dist/connectors/search/common/index.d.ts.map +1 -0
- package/dist/connectors/search/common/index.js +18 -0
- package/dist/connectors/search/common/index.js.map +1 -0
- package/dist/connectors/search/index.d.ts +1 -0
- package/dist/connectors/search/index.d.ts.map +1 -1
- package/dist/connectors/search/index.js +1 -0
- package/dist/connectors/search/index.js.map +1 -1
- package/dist/connectors/search/internal/search-connector-internal.d.ts.map +1 -1
- package/dist/connectors/search/internal/search-connector-internal.js +2 -2
- package/dist/connectors/search/internal/search-connector-internal.js.map +1 -1
- package/dist/connectors/search/repositories/common/dialect-helpers.d.ts +1 -1
- package/dist/connectors/search/repositories/common/dialect-helpers.d.ts.map +1 -1
- package/dist/connectors/search/repositories/core/persistable.d.ts.map +1 -1
- package/dist/connectors/search/repositories/core/persistable.js +2 -3
- package/dist/connectors/search/repositories/core/persistable.js.map +1 -1
- package/dist/connectors/typesense/connector.d.ts.map +1 -1
- package/dist/connectors/typesense/connector.js +2 -3
- package/dist/connectors/typesense/connector.js.map +1 -1
- package/dist/connectors/typesense/repositories/dialect/query-dialect.d.ts +1 -1
- package/dist/connectors/typesense/repositories/dialect/query-dialect.d.ts.map +1 -1
- package/dist/connectors/typesense/repositories/dialect/query-dialect.js +18 -18
- package/dist/connectors/typesense/repositories/dialect/query-dialect.js.map +1 -1
- package/package.json +4 -3
- package/dist/base/repositories/common/operators.d.ts +0 -49
- package/dist/base/repositories/common/operators.d.ts.map +0 -1
- package/dist/base/repositories/common/operators.js +0 -121
- package/dist/base/repositories/common/operators.js.map +0 -1
- package/dist/base/repositories/query-schemas/fields.d.ts +0 -6
- package/dist/base/repositories/query-schemas/fields.d.ts.map +0 -1
- package/dist/base/repositories/query-schemas/fields.js +0 -17
- package/dist/base/repositories/query-schemas/fields.js.map +0 -1
- package/dist/base/repositories/query-schemas/filter.d.ts +0 -23
- package/dist/base/repositories/query-schemas/filter.d.ts.map +0 -1
- package/dist/base/repositories/query-schemas/filter.js +0 -72
- package/dist/base/repositories/query-schemas/filter.js.map +0 -1
- package/dist/base/repositories/query-schemas/limit.d.ts +0 -4
- package/dist/base/repositories/query-schemas/limit.d.ts.map +0 -1
- package/dist/base/repositories/query-schemas/limit.js +0 -12
- package/dist/base/repositories/query-schemas/limit.js.map +0 -1
- package/dist/base/repositories/query-schemas/offset.d.ts +0 -4
- package/dist/base/repositories/query-schemas/offset.d.ts.map +0 -1
- package/dist/base/repositories/query-schemas/offset.js +0 -12
- package/dist/base/repositories/query-schemas/offset.js.map +0 -1
- package/dist/base/repositories/query-schemas/order-by.d.ts +0 -4
- package/dist/base/repositories/query-schemas/order-by.d.ts.map +0 -1
- package/dist/base/repositories/query-schemas/order-by.js +0 -18
- package/dist/base/repositories/query-schemas/order-by.js.map +0 -1
- package/dist/base/repositories/query-schemas/skip.d.ts +0 -4
- package/dist/base/repositories/query-schemas/skip.d.ts.map +0 -1
- package/dist/base/repositories/query-schemas/skip.js +0 -12
- package/dist/base/repositories/query-schemas/skip.js.map +0 -1
- package/dist/base/repositories/query-schemas/where.d.ts +0 -9
- package/dist/base/repositories/query-schemas/where.d.ts.map +0 -1
- package/dist/base/repositories/query-schemas/where.js +0 -27
- package/dist/base/repositories/query-schemas/where.js.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TRegisterErrors } from '@venizia/ignis-helpers';
|
|
2
|
+
/** Codes a client branches on for a request the middleware layer refused before any handler ran. */
|
|
3
|
+
export declare const RequestErrors: {
|
|
4
|
+
readonly BODY_MALFORMED: {
|
|
5
|
+
readonly message: {
|
|
6
|
+
readonly text: "Malformed body payload";
|
|
7
|
+
readonly code: "core.request.body_malformed";
|
|
8
|
+
};
|
|
9
|
+
readonly statusCode: 400;
|
|
10
|
+
readonly category: "validation";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
/** Registers these codes with the shared key registry so a consumer gets autocomplete on `messageCode`. */
|
|
14
|
+
declare module '@venizia/ignis-helpers' {
|
|
15
|
+
interface IErrorKeyRegistry extends TRegisterErrors<typeof RequestErrors> {
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/base/middlewares/common/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGhF,oGAAoG;AACpG,eAAO,MAAM,aAAa;;;;;;;;;CAM2B,CAAC;AAEtD,2GAA2G;AAC3G,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAU,iBAAkB,SAAQ,eAAe,CAAC,OAAO,aAAa,CAAC;KAAG;CAC7E"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequestErrors = void 0;
|
|
4
|
+
const ignis_helpers_1 = require("@venizia/ignis-helpers");
|
|
5
|
+
/** Codes a client branches on for a request the middleware layer refused before any handler ran. */
|
|
6
|
+
exports.RequestErrors = {
|
|
7
|
+
BODY_MALFORMED: {
|
|
8
|
+
message: { text: 'Malformed body payload', code: 'core.request.body_malformed' },
|
|
9
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.BadRequest,
|
|
10
|
+
category: ignis_helpers_1.ErrorScopes.VALIDATION,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/base/middlewares/common/errors.ts"],"names":[],"mappings":";;;AACA,0DAA2D;AAE3D,oGAAoG;AACvF,QAAA,aAAa,GAAG;IAC3B,cAAc,EAAE;QACd,OAAO,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,IAAI,EAAE,6BAA6B,EAAE;QAChF,UAAU,EAAE,oBAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU;QAC5C,QAAQ,EAAE,2BAAW,CAAC,UAAU;KACjC;CACkD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/middlewares/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./errors"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/middlewares/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/middlewares/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/middlewares/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./common"), exports);
|
|
17
18
|
__exportStar(require("./app-error"), exports);
|
|
18
19
|
__exportStar(require("./emoji-favicon"), exports);
|
|
19
20
|
__exportStar(require("./not-found"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/base/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/base/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-spy.middleware.d.ts","sourceRoot":"","sources":["../../../../src/base/middlewares/request-spy/request-spy.middleware.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAA+B,MAAM,wBAAwB,CAAC;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"request-spy.middleware.d.ts","sourceRoot":"","sources":["../../../../src/base/middlewares/request-spy/request-spy.middleware.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAA+B,MAAM,wBAAwB,CAAC;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,wFAAwF;AACxF,qBAAa,oBAAqB,SAAQ,UAAW,YAAW,SAAS,CAAC,iBAAiB,CAAC;IAC1F,MAAM,CAAC,QAAQ,CAAC,cAAc,eAAe;IAE7C,OAAO,CAAC,WAAW,CAAU;;IAS7B,wDAAwD;IAClD,SAAS,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAyCjE,wEAAwE;IACxE,KAAK;CAmDN"}
|
|
@@ -4,6 +4,7 @@ exports.RequestSpyMiddleware = void 0;
|
|
|
4
4
|
const network_utility_1 = require("../../../utilities/network.utility");
|
|
5
5
|
const ignis_helpers_1 = require("@venizia/ignis-helpers");
|
|
6
6
|
const factory_1 = require("hono/factory");
|
|
7
|
+
const common_1 = require("../common");
|
|
7
8
|
/** Logs incoming/outgoing request details. Body/query only logged in non-production. */
|
|
8
9
|
class RequestSpyMiddleware extends ignis_helpers_1.BaseHelper {
|
|
9
10
|
static { this.REQUEST_ID_KEY = 'requestId'; }
|
|
@@ -42,7 +43,7 @@ class RequestSpyMiddleware extends ignis_helpers_1.BaseHelper {
|
|
|
42
43
|
}
|
|
43
44
|
catch {
|
|
44
45
|
throw (0, ignis_helpers_1.getError)({
|
|
45
|
-
|
|
46
|
+
error: common_1.RequestErrors.BODY_MALFORMED,
|
|
46
47
|
message: 'Malformed Body Payload',
|
|
47
48
|
});
|
|
48
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-spy.middleware.js","sourceRoot":"","sources":["../../../../src/base/middlewares/request-spy/request-spy.middleware.ts"],"names":[],"mappings":";;;AAAA,iEAA4D;AAC5D,0DAAiF;AAEjF,0CAAgD;
|
|
1
|
+
{"version":3,"file":"request-spy.middleware.js","sourceRoot":"","sources":["../../../../src/base/middlewares/request-spy/request-spy.middleware.ts"],"names":[],"mappings":";;;AAAA,iEAA4D;AAC5D,0DAAiF;AAEjF,0CAAgD;AAGhD,sCAA0C;AAE1C,wFAAwF;AACxF,MAAa,oBAAqB,SAAQ,0BAAU;aAClC,mBAAc,GAAG,WAAW,CAAC;IAI7C;QACE,KAAK,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;QAC1B,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;QACjC,MAAM,GAAG,GAAG,QAAQ,EAAE,WAAW,EAAE,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG,GAAG,KAAK,2BAAW,CAAC,UAAU,CAAC;IACpD,CAAC;IAED,wDAAwD;IACxD,KAAK,CAAC,SAAS,CAAC,IAA8B;QAC5C,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,oBAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAE/D,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,yMAAyM;QACzM,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,oBAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QACnE,IAAI,aAAa,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;YAChD,OAAO,IAAI,CAAC;QACd,CAAC;QAED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,0 +1,18 @@
|
|
|
1
|
+
import type { TRegisterErrors } from '@venizia/ignis-helpers';
|
|
2
|
+
/** Codes a client branches on for a repository-level failure that is the caller's fault, not the server's. */
|
|
3
|
+
export declare const RepositoryErrors: {
|
|
4
|
+
readonly ENTITY_NOT_FOUND: {
|
|
5
|
+
readonly message: {
|
|
6
|
+
readonly text: "Entity not found";
|
|
7
|
+
readonly code: "core.repository.entity_not_found";
|
|
8
|
+
};
|
|
9
|
+
readonly statusCode: 404;
|
|
10
|
+
readonly category: "business";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
/** Registers these codes with the shared key registry so a consumer gets autocomplete on `messageCode`. */
|
|
14
|
+
declare module '@venizia/ignis-helpers' {
|
|
15
|
+
interface IErrorKeyRegistry extends TRegisterErrors<typeof RepositoryErrors> {
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/base/repositories/common/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGhF,8GAA8G;AAC9G,eAAO,MAAM,gBAAgB;;;;;;;;;CAMwB,CAAC;AAEtD,2GAA2G;AAC3G,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAU,iBAAkB,SAAQ,eAAe,CAAC,OAAO,gBAAgB,CAAC;KAAG;CAChF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RepositoryErrors = void 0;
|
|
4
|
+
const ignis_helpers_1 = require("@venizia/ignis-helpers");
|
|
5
|
+
/** Codes a client branches on for a repository-level failure that is the caller's fault, not the server's. */
|
|
6
|
+
exports.RepositoryErrors = {
|
|
7
|
+
ENTITY_NOT_FOUND: {
|
|
8
|
+
message: { text: 'Entity not found', code: 'core.repository.entity_not_found' },
|
|
9
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.NotFound,
|
|
10
|
+
category: ignis_helpers_1.ErrorScopes.BUSINESS,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/base/repositories/common/errors.ts"],"names":[],"mappings":";;;AACA,0DAA2D;AAE3D,8GAA8G;AACjG,QAAA,gBAAgB,GAAG;IAC9B,gBAAgB,EAAE;QAChB,OAAO,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,kCAAkC,EAAE;QAC/E,UAAU,EAAE,oBAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ;QAC1C,QAAQ,EAAE,2BAAW,CAAC,QAAQ;KAC/B;CACkD,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/** The filter vocabulary (operators, sorts, the `TFilter` shape) lives in `@venizia/ignis-filter` so a browser data layer can speak the same language; re-exported here so every existing `@venizia/ignis-core` import keeps resolving. */
|
|
2
|
+
export * from '@venizia/ignis-filter';
|
|
3
|
+
export * from './errors';
|
|
1
4
|
export * from '../query-schemas';
|
|
2
5
|
export * from './constants';
|
|
3
|
-
export * from './operators';
|
|
4
6
|
export * from './types';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/repositories/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/repositories/common/index.ts"],"names":[],"mappings":"AAAA,2OAA2O;AAC3O,cAAc,uBAAuB,CAAC;AAEtC,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -14,8 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/** The filter vocabulary (operators, sorts, the `TFilter` shape) lives in `@venizia/ignis-filter` so a browser data layer can speak the same language; re-exported here so every existing `@venizia/ignis-core` import keeps resolving. */
|
|
18
|
+
__exportStar(require("@venizia/ignis-filter"), exports);
|
|
19
|
+
__exportStar(require("./errors"), exports);
|
|
17
20
|
__exportStar(require("../query-schemas"), exports);
|
|
18
21
|
__exportStar(require("./constants"), exports);
|
|
19
|
-
__exportStar(require("./operators"), exports);
|
|
20
22
|
__exportStar(require("./types"), exports);
|
|
21
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/repositories/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,8CAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/repositories/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2OAA2O;AAC3O,wDAAsC;AAEtC,2CAAyB;AACzB,mDAAiC;AACjC,8CAA4B;AAC5B,0CAAwB"}
|
|
@@ -3,7 +3,7 @@ import type { AbstractEntity, IdType } from '../../../base/models';
|
|
|
3
3
|
import { z } from '@hono/zod-openapi';
|
|
4
4
|
import type { IRetryBackoffOptions, TLogLevel, TNullable } from '@venizia/ignis-helpers';
|
|
5
5
|
import type { Column, SQL } from 'drizzle-orm';
|
|
6
|
-
import type { TFilter, TWhere } from '
|
|
6
|
+
import type { TFilter, TWhere } from '@venizia/ignis-filter';
|
|
7
7
|
import type { TLockStrength } from './constants';
|
|
8
8
|
/** Update data supporting both regular fields and JSON path updates via dot notation. */
|
|
9
9
|
export type TUpdateData<T = any> = Partial<T> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/base/repositories/common/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACzF,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/base/repositories/common/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACzF,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,yFAAyF;AACzF,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,GAAG,IAAI,OAAO,CAAC,CAAC,CA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GAAG,MAAM,EACnC,cAAc,SAAS,MAAM,GAAG,WAAW,EAC3C,YAAY,SAAS,aAAa,GAAG,aAAa,CAElD,SACE,mBAAmB,CAAC,WAAW,EAAE,YAAY,CAAC,EAC9C,oBAAoB,CAAC,WAAW,EAAE,cAAc,EAAE,YAAY,CAAC,EAC/D,oBAAoB,CAAC,WAAW,EAAE,cAAc,EAAE,YAAY,CAAC,EAC/D,oBAAoB,CAAC,WAAW,EAAE,YAAY,CAAC;CAAG;AAEtD,0LAA0L;AAC1L,MAAM,WAAW,eAAe,CAC9B,WAAW,SAAS,MAAM,GAAG,MAAM,EACnC,cAAc,SAAS,MAAM,GAAG,WAAW,EAC3C,YAAY,SAAS,aAAa,GAAG,aAAa,CAClD,SAAQ,sBAAsB,CAAC,WAAW,EAAE,cAAc,EAAE,YAAY,CAAC;CAAG;AAE9E,0DAA0D;AAC1D,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,GAAG;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,CAAC,CAAC;CACV"}
|
|
@@ -4,7 +4,7 @@ import type { IModelMetadata } from '../../../helpers/inversion';
|
|
|
4
4
|
import type { TClass, TNullable } from '@venizia/ignis-helpers';
|
|
5
5
|
import { BaseHelper } from '@venizia/ignis-helpers';
|
|
6
6
|
import type { IExtraOptions, IPersistableRepository, IWithReadRetry, TCount, TDataWithRange, TFindOneOptions, TFindOptions, TFindRangeOptions, TRepositoryOperationScope } from '../common';
|
|
7
|
-
import type { TFilter, TWhere } from '
|
|
7
|
+
import type { TFilter, TWhere } from '@venizia/ignis-filter';
|
|
8
8
|
/** Engine-neutral repository plumbing - lazy dataSource/entity resolution, class-keyed `@model` settings, operation scope. `TOptions` defaults to `IExtraOptions` so connectors can narrow it while staying assignable to this base. */
|
|
9
9
|
export declare abstract class AbstractRepository<TDataObject extends object, TPersistObject extends object = TDataObject, TOptions extends IExtraOptions = IExtraOptions> extends BaseHelper implements IPersistableRepository<TDataObject, TPersistObject, TOptions> {
|
|
10
10
|
protected _operationScope: TRepositoryOperationScope;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract.d.ts","sourceRoot":"","sources":["../../../../src/base/repositories/core/abstract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EACL,UAAU,EAMX,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,aAAa,EACb,sBAAsB,EACtB,cAAc,EACd,MAAM,EACN,cAAc,EACd,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"abstract.d.ts","sourceRoot":"","sources":["../../../../src/base/repositories/core/abstract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EACL,UAAU,EAMX,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,aAAa,EACb,sBAAsB,EACtB,cAAc,EACd,MAAM,EACN,cAAc,EACd,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,WAAW,CAAC;AAEnB,OAAO,K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E,OAAO,CAAA;SAAE,CAAC;KAC/D,GAAG,OAAO,CAAC,MAAM,GAAG;QAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;KAAE,CAAC;CAahD"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export * from './offset';
|
|
5
|
-
export * from './order-by';
|
|
6
|
-
export * from './skip';
|
|
7
|
-
export * from './where';
|
|
1
|
+
/** Side-effect import, and load order is the point: `@hono/zod-openapi` peers on `zod`, so importing it patches `.openapi()` onto the shared `ZodType` prototype. `buildQuerySchemas` runs at module scope below, and ESM evaluates imports first, so the method exists by the time the decorator is called. Without this line the schemas silently build undecorated whenever this module happens to load before anything else pulls in the OpenAPI layer. */
|
|
2
|
+
import '@hono/zod-openapi';
|
|
3
|
+
export declare const FieldsSchema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>, import("zod").ZodArray<import("zod").ZodString>]>>, FilterSchema: any, InclusionSchema: any, LimitSchema: import("zod").ZodOptional<import("zod").ZodNumber>, OffsetSchema: import("zod").ZodOptional<import("zod").ZodNumber>, OrderBySchema: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>, SkipSchema: import("zod").ZodOptional<import("zod").ZodNumber>, WhereSchema: import("zod").ZodUnion<readonly [import("zod").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>, import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<any, string>>, import("zod").ZodType<any, unknown, import("zod/v4/core").$ZodTypeInternals<any, unknown>>>]>;
|
|
8
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/repositories/query-schemas/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/repositories/query-schemas/index.ts"],"names":[],"mappings":"AAEA,+bAA+b;AAC/b,OAAO,mBAAmB,CAAC;AAO3B,eAAO,MACL,YAAY,oLACZ,YAAY,OACZ,eAAe,OACf,WAAW,sDACX,YAAY,sDACZ,aAAa,8EACb,UAAU,sDACV,WAAW,2UACwC,CAAC"}
|
|
@@ -1,24 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
2
|
+
var _a;
|
|
16
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
exports.WhereSchema = exports.SkipSchema = exports.OrderBySchema = exports.OffsetSchema = exports.LimitSchema = exports.InclusionSchema = exports.FilterSchema = exports.FieldsSchema = void 0;
|
|
5
|
+
const schemas_1 = require("@venizia/ignis-filter/schemas");
|
|
6
|
+
/** Side-effect import, and load order is the point: `@hono/zod-openapi` peers on `zod`, so importing it patches `.openapi()` onto the shared `ZodType` prototype. `buildQuerySchemas` runs at module scope below, and ESM evaluates imports first, so the method exists by the time the decorator is called. Without this line the schemas silently build undecorated whenever this module happens to load before anything else pulls in the OpenAPI layer. */
|
|
7
|
+
require("@hono/zod-openapi");
|
|
8
|
+
/** The schemas themselves live in `@venizia/ignis-filter`, built with plain `zod` so a browser can use them. Documentation metadata is injected here because it is a server concern - `.openapi()` returns a new schema rather than mutating, and three of the decorations sit on inner nodes, so they cannot be applied after the tree is composed. */
|
|
9
|
+
const openApiDecorator = (schema, metadata) => {
|
|
10
|
+
return schema.openapi(metadata);
|
|
11
|
+
};
|
|
12
|
+
_a = (0, schemas_1.buildQuerySchemas)({ decorate: openApiDecorator }), exports.FieldsSchema = _a.FieldsSchema, exports.FilterSchema = _a.FilterSchema, exports.InclusionSchema = _a.InclusionSchema, exports.LimitSchema = _a.LimitSchema, exports.OffsetSchema = _a.OffsetSchema, exports.OrderBySchema = _a.OrderBySchema, exports.SkipSchema = _a.SkipSchema, exports.WhereSchema = _a.WhereSchema;
|
|
24
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/repositories/query-schemas/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/repositories/query-schemas/index.ts"],"names":[],"mappings":";;;;AAAA,2DAAyF;AAEzF,+bAA+b;AAC/b,6BAA2B;AAE3B,wVAAwV;AACxV,MAAM,gBAAgB,GAAqB,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE;IAC9D,OAAQ,MAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC3C,CAAC,CAAC;AAEW,KAST,IAAA,2BAAiB,EAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC,EARnD,oBAAY,oBACZ,oBAAY,oBACZ,uBAAe,uBACf,mBAAW,mBACX,oBAAY,oBACZ,qBAAa,qBACb,kBAAU,kBACV,mBAAW,kBACyC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { TRegisterErrors } from '@venizia/ignis-helpers';
|
|
2
|
+
/** Codes a client branches on for a failed authentication. A throw site may override `message` for detail; the code and status come from here. */
|
|
3
|
+
export declare const AuthenticationErrors: {
|
|
4
|
+
readonly HEADER_MISSING: {
|
|
5
|
+
readonly message: {
|
|
6
|
+
readonly text: "Missing authorization header";
|
|
7
|
+
readonly code: "core.authentication.header_missing";
|
|
8
|
+
};
|
|
9
|
+
readonly statusCode: 401;
|
|
10
|
+
readonly category: "auth";
|
|
11
|
+
};
|
|
12
|
+
readonly SCHEME_INVALID: {
|
|
13
|
+
readonly message: {
|
|
14
|
+
readonly text: "Unsupported authorization scheme";
|
|
15
|
+
readonly code: "core.authentication.scheme_invalid";
|
|
16
|
+
};
|
|
17
|
+
readonly statusCode: 401;
|
|
18
|
+
readonly category: "auth";
|
|
19
|
+
};
|
|
20
|
+
readonly HEADER_MALFORMED: {
|
|
21
|
+
readonly message: {
|
|
22
|
+
readonly text: "Malformed authorization header";
|
|
23
|
+
readonly code: "core.authentication.header_malformed";
|
|
24
|
+
};
|
|
25
|
+
readonly statusCode: 401;
|
|
26
|
+
readonly category: "auth";
|
|
27
|
+
};
|
|
28
|
+
readonly TOKEN_MISSING: {
|
|
29
|
+
readonly message: {
|
|
30
|
+
readonly text: "Missing request token";
|
|
31
|
+
readonly code: "core.authentication.token_missing";
|
|
32
|
+
};
|
|
33
|
+
readonly statusCode: 401;
|
|
34
|
+
readonly category: "auth";
|
|
35
|
+
};
|
|
36
|
+
/** Covers expiry, a bad signature and a malformed token alike - the reason rides in `cause`, never in the code a client sees. */
|
|
37
|
+
readonly TOKEN_INVALID: {
|
|
38
|
+
readonly message: {
|
|
39
|
+
readonly text: "Invalid or expired token";
|
|
40
|
+
readonly code: "core.authentication.token_invalid";
|
|
41
|
+
};
|
|
42
|
+
readonly statusCode: 401;
|
|
43
|
+
readonly category: "auth";
|
|
44
|
+
};
|
|
45
|
+
readonly TOKEN_PAYLOAD_INVALID: {
|
|
46
|
+
readonly message: {
|
|
47
|
+
readonly text: "Invalid token payload";
|
|
48
|
+
readonly code: "core.authentication.token_payload_invalid";
|
|
49
|
+
};
|
|
50
|
+
readonly statusCode: 401;
|
|
51
|
+
readonly category: "auth";
|
|
52
|
+
};
|
|
53
|
+
readonly CREDENTIALS_MALFORMED: {
|
|
54
|
+
readonly message: {
|
|
55
|
+
readonly text: "Malformed credentials";
|
|
56
|
+
readonly code: "core.authentication.credentials_malformed";
|
|
57
|
+
};
|
|
58
|
+
readonly statusCode: 401;
|
|
59
|
+
readonly category: "auth";
|
|
60
|
+
};
|
|
61
|
+
readonly CREDENTIALS_INVALID: {
|
|
62
|
+
readonly message: {
|
|
63
|
+
readonly text: "Invalid username or password";
|
|
64
|
+
readonly code: "core.authentication.credentials_invalid";
|
|
65
|
+
};
|
|
66
|
+
readonly statusCode: 401;
|
|
67
|
+
readonly category: "auth";
|
|
68
|
+
};
|
|
69
|
+
readonly FAILED: {
|
|
70
|
+
readonly message: {
|
|
71
|
+
readonly text: "Authentication failed";
|
|
72
|
+
readonly code: "core.authentication.failed";
|
|
73
|
+
};
|
|
74
|
+
readonly statusCode: 401;
|
|
75
|
+
readonly category: "auth";
|
|
76
|
+
};
|
|
77
|
+
readonly USER_UNRESOLVED: {
|
|
78
|
+
readonly message: {
|
|
79
|
+
readonly text: "Failed to identify authenticated user";
|
|
80
|
+
readonly code: "core.authentication.user_unresolved";
|
|
81
|
+
};
|
|
82
|
+
readonly statusCode: 401;
|
|
83
|
+
readonly category: "auth";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
/** Registers these codes with the shared key registry so a consumer gets autocomplete on `messageCode`. */
|
|
87
|
+
declare module '@venizia/ignis-helpers' {
|
|
88
|
+
interface IErrorKeyRegistry extends TRegisterErrors<typeof AuthenticationErrors> {
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/common/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGhF,kJAAkJ;AAClJ,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8B/B,iIAAiI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2C9E,CAAC;AAEtD,2GAA2G;AAC3G,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAU,iBAAkB,SAAQ,eAAe,CAAC,OAAO,oBAAoB,CAAC;KAAG;CACpF"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthenticationErrors = void 0;
|
|
4
|
+
const ignis_helpers_1 = require("@venizia/ignis-helpers");
|
|
5
|
+
/** Codes a client branches on for a failed authentication. A throw site may override `message` for detail; the code and status come from here. */
|
|
6
|
+
exports.AuthenticationErrors = {
|
|
7
|
+
HEADER_MISSING: {
|
|
8
|
+
message: {
|
|
9
|
+
text: 'Missing authorization header',
|
|
10
|
+
code: 'core.authentication.header_missing',
|
|
11
|
+
},
|
|
12
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
13
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
14
|
+
},
|
|
15
|
+
SCHEME_INVALID: {
|
|
16
|
+
message: {
|
|
17
|
+
text: 'Unsupported authorization scheme',
|
|
18
|
+
code: 'core.authentication.scheme_invalid',
|
|
19
|
+
},
|
|
20
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
21
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
22
|
+
},
|
|
23
|
+
HEADER_MALFORMED: {
|
|
24
|
+
message: {
|
|
25
|
+
text: 'Malformed authorization header',
|
|
26
|
+
code: 'core.authentication.header_malformed',
|
|
27
|
+
},
|
|
28
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
29
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
30
|
+
},
|
|
31
|
+
TOKEN_MISSING: {
|
|
32
|
+
message: { text: 'Missing request token', code: 'core.authentication.token_missing' },
|
|
33
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
34
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
35
|
+
},
|
|
36
|
+
/** Covers expiry, a bad signature and a malformed token alike - the reason rides in `cause`, never in the code a client sees. */
|
|
37
|
+
TOKEN_INVALID: {
|
|
38
|
+
message: { text: 'Invalid or expired token', code: 'core.authentication.token_invalid' },
|
|
39
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
40
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
41
|
+
},
|
|
42
|
+
TOKEN_PAYLOAD_INVALID: {
|
|
43
|
+
message: {
|
|
44
|
+
text: 'Invalid token payload',
|
|
45
|
+
code: 'core.authentication.token_payload_invalid',
|
|
46
|
+
},
|
|
47
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
48
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
49
|
+
},
|
|
50
|
+
CREDENTIALS_MALFORMED: {
|
|
51
|
+
message: {
|
|
52
|
+
text: 'Malformed credentials',
|
|
53
|
+
code: 'core.authentication.credentials_malformed',
|
|
54
|
+
},
|
|
55
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
56
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
57
|
+
},
|
|
58
|
+
CREDENTIALS_INVALID: {
|
|
59
|
+
message: {
|
|
60
|
+
text: 'Invalid username or password',
|
|
61
|
+
code: 'core.authentication.credentials_invalid',
|
|
62
|
+
},
|
|
63
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
64
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
65
|
+
},
|
|
66
|
+
FAILED: {
|
|
67
|
+
message: { text: 'Authentication failed', code: 'core.authentication.failed' },
|
|
68
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
69
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
70
|
+
},
|
|
71
|
+
USER_UNRESOLVED: {
|
|
72
|
+
message: {
|
|
73
|
+
text: 'Failed to identify authenticated user',
|
|
74
|
+
code: 'core.authentication.user_unresolved',
|
|
75
|
+
},
|
|
76
|
+
statusCode: ignis_helpers_1.HTTP.ResultCodes.RS_4.Unauthorized,
|
|
77
|
+
category: ignis_helpers_1.ErrorScopes.AUTH,
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/common/errors.ts"],"names":[],"mappings":";;;AACA,0DAA2D;AAE3D,kJAAkJ;AACrI,QAAA,oBAAoB,GAAG;IAClC,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,8BAA8B;YACpC,IAAI,EAAE,oCAAoC;SAC3C;QACD,UAAU,EAAE,oBAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY;QAC9C,QAAQ,EAAE,2BAAW,CAAC,IAAI;KAC3B;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,kCAAkC;YACxC,IAAI,EAAE,oCAAoC;SAC3C;QACD,UAAU,EAAE,oBAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY;QAC9C,QAAQ,EAAE,2BAAW,CAAC,IAAI;KAC3B;IACD,gBAAgB,EAAE;QAChB,OAAO,EAAE;YACP,IAAI,EAAE,gCAAgC;YACtC,IAAI,EAAE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4B,EAAE;QAC9E,UAAU,EAAE,oBAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY;QAC9C,QAAQ,EAAE,2BAAW,CAAC,IAAI;KAC3B;IACD,eAAe,EAAE;QACf,OAAO,EAAE;YACP,IAAI,EAAE,uCAAuC;YAC7C,IAAI,EAAE,qCAAqC;SAC5C;QACD,UAAU,EAAE,oBAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY;QAC9C,QAAQ,EAAE,2BAAW,CAAC,IAAI;KAC3B;CACkD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./errors"), exports);
|
|
17
18
|
__exportStar(require("./codecs"), exports);
|
|
18
19
|
__exportStar(require("./constants"), exports);
|
|
19
20
|
__exportStar(require("./keys"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,yCAAuB;AACvB,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,8CAA4B;AAC5B,yCAAuB;AACvB,0CAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.provider.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/providers/authentication.provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAkB,MAAM,wBAAwB,CAAC;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC,OAAO,KAAK,EAAa,eAAe,EAAa,MAAM,WAAW,CAAC;AAIvE,qBAAa,sBAAsB,CAAC,QAAQ,SAAS,GAAG,GAAG,GAAG,CAC5D,SAAQ,UACR,YAAW,SAAS,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;;IAM/C,KAAK,IAAI,eAAe,CAAC,QAAQ,CAAC;IAMlC,OAAO,CAAC,4BAA4B;YA+CtB,cAAc;
|
|
1
|
+
{"version":3,"file":"authentication.provider.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/authenticate/providers/authentication.provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAkB,MAAM,wBAAwB,CAAC;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC,OAAO,KAAK,EAAa,eAAe,EAAa,MAAM,WAAW,CAAC;AAIvE,qBAAa,sBAAsB,CAAC,QAAQ,SAAS,GAAG,GAAG,GAAG,CAC5D,SAAQ,UACR,YAAW,SAAS,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;;IAM/C,KAAK,IAAI,eAAe,CAAC,QAAQ,CAAC;IAMlC,OAAO,CAAC,4BAA4B;YA+CtB,cAAc;YAsCd,cAAc;IAkC5B,OAAO,CAAC,cAAc;CAQvB"}
|