cqrs-boilerplate-code 1.0.23 → 1.0.25
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/common-infra/common-infra.module.js.map +1 -1
- package/dist/common-infra/database/abstraction/common-infra.options.js.map +1 -1
- package/dist/common-infra/database/abstraction/db-module.options.js.map +1 -1
- package/dist/common-infra/database/database.module.js.map +1 -1
- package/dist/common-infra/database/typeorm.config.js.map +1 -1
- package/dist/common-infra/http/axios.provider.js +1 -0
- package/dist/common-infra/http/axios.provider.js.map +1 -1
- package/dist/common-infra/http/http-module.options.js.map +1 -1
- package/dist/common-infra/http/http.constant.js.map +1 -1
- package/dist/common-infra/http/http.module.js.map +1 -1
- package/dist/common-infra/http/https.service.js.map +1 -1
- package/dist/common-infra/socket.io/interfaces.js.map +1 -1
- package/dist/common-infra/socket.io/socket.gateway.js.map +1 -1
- package/dist/common-infra/socket.io/socket.module.js.map +1 -1
- package/dist/common-infra/socket.io/socket.options.js.map +1 -1
- package/dist/core-common/constant/app.constant.js.map +1 -1
- package/dist/core-common/core-common.module.js +1 -0
- package/dist/core-common/core-common.module.js.map +1 -1
- package/dist/core-common/error/custom-error/already-exists.error.d.ts +9 -0
- package/dist/core-common/error/custom-error/already-exists.error.js +9 -0
- package/dist/core-common/error/custom-error/already-exists.error.js.map +1 -1
- package/dist/core-common/error/custom-error/bad-request.error.js.map +1 -1
- package/dist/core-common/error/custom-error/conflict.error.d.ts +9 -0
- package/dist/core-common/error/custom-error/conflict.error.js +9 -0
- package/dist/core-common/error/custom-error/conflict.error.js.map +1 -1
- package/dist/core-common/error/custom-error/custom-validation-error.js.map +1 -1
- package/dist/core-common/error/custom-error/forbidden.error.js.map +1 -1
- package/dist/core-common/error/custom-error/internal-server.error.js.map +1 -1
- package/dist/core-common/error/custom-error/not-found.error.js.map +1 -1
- package/dist/core-common/error/custom-error/service-unavailable.error.js.map +1 -1
- package/dist/core-common/error/custom-error/unauthorized.error.js.map +1 -1
- package/dist/core-common/error/custom-error/unprocess-entity.error.js.map +1 -1
- package/dist/core-common/error/custom-error/validation.error.js.map +1 -1
- package/dist/core-common/error/generic.error.d.ts +8 -0
- package/dist/core-common/error/generic.error.js +8 -0
- package/dist/core-common/error/generic.error.js.map +1 -1
- package/dist/core-common/logger/logger.interface.js.map +1 -1
- package/dist/core-common/logger/logger.module.js +1 -0
- package/dist/core-common/logger/logger.module.js.map +1 -1
- package/dist/core-common/logger/logger.service.js +8 -0
- package/dist/core-common/logger/logger.service.js.map +1 -1
- package/dist/core-common/response-model/generic-error-response.model.d.ts +10 -0
- package/dist/core-common/response-model/generic-error-response.model.js +12 -2
- package/dist/core-common/response-model/generic-error-response.model.js.map +1 -1
- package/dist/core-common/response-model/generic-success-response.model.d.ts +10 -0
- package/dist/core-common/response-model/generic-success-response.model.js +10 -0
- package/dist/core-common/response-model/generic-success-response.model.js.map +1 -1
- package/dist/core-common/result-model/result.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/middleware/async-middleware/async-storage.middleware.js.map +1 -1
- package/dist/middleware/async-middleware/async-storage.service.js.map +1 -1
- package/dist/middleware/auth-middleware/auth.middleware.js +1 -1
- package/dist/middleware/auth-middleware/auth.middleware.js.map +1 -1
- package/dist/middleware/auth-middleware/jwt-validator.js.map +1 -1
- package/dist/middleware/filter/global-exeception.filter.js +2 -2
- package/dist/middleware/filter/global-exeception.filter.js.map +1 -1
- package/dist/middleware/utils/http-response.formatter.d.ts +2 -2
- package/dist/middleware/utils/http-response.formatter.js +11 -11
- package/dist/middleware/utils/http-response.formatter.js.map +1 -1
- package/dist/middleware/utils/http-response.module.d.ts +2 -0
- package/dist/middleware/utils/http-response.module.js +22 -0
- package/dist/middleware/utils/http-response.module.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/tsconfig.json +0 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-infra.module.js","sourceRoot":"","sources":["../../src/common-infra/common-infra.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,2CAA8C;AAC9C,gEAAsD;AACtD,oDAAgD;AAGzC,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IAC5B,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,MAAM,EAAE,mBAAiB;YACzB,OAAO,EAAE;gBACP,qBAAY;gBACZ,wBAAU,CAAC,OAAO,EAAE;gBACpB,0BAAQ;aACT;YACD,OAAO,EAAE;gBACP,wBAAU,CAAC,OAAO,EAAE;gBACpB,0BAAQ;gBACR,qBAAY;aAAC;SAChB,CAAC;IACJ,CAAC;CACF,CAAA;AAfY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,iBAAiB,CAe7B"
|
|
1
|
+
{"version":3,"file":"common-infra.module.js","sourceRoot":"","sources":["../../src/common-infra/common-infra.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,2CAA8C;AAC9C,gEAAsD;AACtD,oDAAgD;AAGzC,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IAC5B,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,MAAM,EAAE,mBAAiB;YACzB,OAAO,EAAE;gBACP,qBAAY;gBACZ,wBAAU,CAAC,OAAO,EAAE;gBACpB,0BAAQ;aACT;YACD,OAAO,EAAE;gBACP,wBAAU,CAAC,OAAO,EAAE;gBACpB,0BAAQ;gBACR,qBAAY;aAAC;SAChB,CAAC;IACJ,CAAC;CACF,CAAA;AAfY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,iBAAiB,CAe7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-infra.options.js","sourceRoot":"","sources":["../../../../src/common-infra/database/abstraction/common-infra.options.ts"],"names":[],"mappings":""
|
|
1
|
+
{"version":3,"file":"common-infra.options.js","sourceRoot":"","sources":["../../../../src/common-infra/database/abstraction/common-infra.options.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-module.options.js","sourceRoot":"","sources":["../../../../src/common-infra/database/abstraction/db-module.options.ts"],"names":[],"mappings":""
|
|
1
|
+
{"version":3,"file":"db-module.options.js","sourceRoot":"","sources":["../../../../src/common-infra/database/abstraction/db-module.options.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database.module.js","sourceRoot":"","sources":["../../../src/common-infra/database/database.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,2CAA6D;AAC7D,6CAAsE;AAEtE,qDAAiD;AAG1C,IAAM,QAAQ,gBAAd,MAAM,QAAQ;IACnB,MAAM,CAAC,OAAO,CAAC,UAA2B,EAAE;QAC1C,MAAM,EACJ,gBAAgB,GAAG,IAAI,EACvB,cAAc,GAAG,EAAE,GACpB,GAAG,OAAO,CAAC;QAEZ,OAAO;YACL,MAAM,EAAE,UAAQ;YAChB,OAAO,EAAE;gBACP,uBAAa,CAAC,YAAY,CAAC;oBACzB,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,sBAAa,CAAC,CAAC,CAAC,CAAC,EAAE;oBAC/C,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,qBAAY,CAAC,CAAC,CAAC,CAAC,EAAE;oBAC/C,UAAU,EAAE,KAAK,EAAE,aAA6B,EAAE,EAAE,CAAC,CAAC;wBACpD,GAAG,CAAC,gBAAgB;4BAClB,CAAC,CAAC,IAAA,8BAAa,EAAC,aAAc,CAAC;4BAC/B,CAAC,CAAC,EAAE,CAAC;wBACP,GAAG,cAAc;qBAClB,CAAyB;iBAC3B,CAAC;aACH;YACD,OAAO,EAAE,CAAC,uBAAa,CAAC;SACzB,CAAC;IACJ,CAAC;CACF,CAAA;AAxBY,4BAAQ;mBAAR,QAAQ;IADpB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,QAAQ,CAwBpB"
|
|
1
|
+
{"version":3,"file":"database.module.js","sourceRoot":"","sources":["../../../src/common-infra/database/database.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,2CAA6D;AAC7D,6CAAsE;AAEtE,qDAAiD;AAG1C,IAAM,QAAQ,gBAAd,MAAM,QAAQ;IACnB,MAAM,CAAC,OAAO,CAAC,UAA2B,EAAE;QAC1C,MAAM,EACJ,gBAAgB,GAAG,IAAI,EACvB,cAAc,GAAG,EAAE,GACpB,GAAG,OAAO,CAAC;QAEZ,OAAO;YACL,MAAM,EAAE,UAAQ;YAChB,OAAO,EAAE;gBACP,uBAAa,CAAC,YAAY,CAAC;oBACzB,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,sBAAa,CAAC,CAAC,CAAC,CAAC,EAAE;oBAC/C,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,qBAAY,CAAC,CAAC,CAAC,CAAC,EAAE;oBAC/C,UAAU,EAAE,KAAK,EAAE,aAA6B,EAAE,EAAE,CAAC,CAAC;wBACpD,GAAG,CAAC,gBAAgB;4BAClB,CAAC,CAAC,IAAA,8BAAa,EAAC,aAAc,CAAC;4BAC/B,CAAC,CAAC,EAAE,CAAC;wBACP,GAAG,cAAc;qBAClB,CAAyB;iBAC3B,CAAC;aACH;YACD,OAAO,EAAE,CAAC,uBAAa,CAAC;SACzB,CAAC;IACJ,CAAC;CACF,CAAA;AAxBY,4BAAQ;mBAAR,QAAQ;IADpB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,QAAQ,CAwBpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeorm.config.js","sourceRoot":"","sources":["../../../src/common-infra/database/typeorm.config.ts"],"names":[],"mappings":";;;AAGO,MAAM,aAAa,GAAG,CAC3B,aAA4B,EACN,EAAE,CAAC,CA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AU,CAAC,KAAK,YAAY;CAChE,CAAC,CAAC;AAdU,QAAA,aAAa,iBAcvB"}
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.createAxiosProvider = void 0;
|
|
7
|
+
// src/providers/axios.provider.ts
|
|
7
8
|
const axios_1 = __importDefault(require("axios"));
|
|
8
9
|
const axios_retry_1 = __importDefault(require("axios-retry"));
|
|
9
10
|
const http_constant_1 = require("./http.constant");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axios.provider.js","sourceRoot":"","sources":["../../../src/common-infra/http/axios.provider.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"axios.provider.js","sourceRoot":"","sources":["../../../src/common-infra/http/axios.provider.ts"],"names":[],"mappings":";;;;;;AAAA,kCAAkC;AAClC,kDAA6C;AAC7C,8DAAqC;AAErC,mDAAuD;AAGhD,MAAM,mBAAmB,GAAG,CACjC,OAA0B,EAChB,EAAE,CAAC,CAAC;IACd,OAAO,EAAE,oCAAoB;IAC7B,UAAU,EAAE,GAAkB,EAAE;QAC9B,MAAM,QAAQ,GAAG,eAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAA,qBAAU,EAAC,QAAQ,EAAE;YACnB,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,IAAI,CAAC;YACpC,UAAU,EAAE,qBAAU,CAAC,gBAAgB;YACvC,cAAc,EAAE,CAAC,KAAK,EAAE,EAAE;gBACxB,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC;gBACtC,OAAO,CACL,qBAAU,CAAC,iCAAiC,CAAC,KAAK,CAAC;oBACnD,OAAO,CAAC,KAAK,EAAE,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,CACjD,CAAC;YACJ,CAAC;SACF,CAAC,CAAC;QACH,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAC,CAAC;AAnBU,QAAA,mBAAmB,uBAmB7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-module.options.js","sourceRoot":"","sources":["../../../src/common-infra/http/http-module.options.ts"],"names":[],"mappings":""
|
|
1
|
+
{"version":3,"file":"http-module.options.js","sourceRoot":"","sources":["../../../src/common-infra/http/http-module.options.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.constant.js","sourceRoot":"","sources":["../../../src/common-infra/http/http.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAC9C,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAClC,QAAA,mBAAmB,GAAG,qBAAqB,CAAC"
|
|
1
|
+
{"version":3,"file":"http.constant.js","sourceRoot":"","sources":["../../../src/common-infra/http/http.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAC9C,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAClC,QAAA,mBAAmB,GAAG,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.module.js","sourceRoot":"","sources":["../../../src/common-infra/http/http.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAwE;AACxE,qDAAuD;AAEvD,mDAAuD;AACvD,mDAA8C;AAGvC,IAAM,UAAU,kBAAhB,MAAM,UAAU;IACnB,MAAM,CAAC,OAAO,CAAC,UAA6B,EAAE;QAC1C,OAAO;YACH,MAAM,EAAE,YAAU;YAClB,SAAS,EAAE;gBACP,IAAA,oCAAmB,EAAC,OAAO,CAAC;gBAC5B,2BAAW;aACd;YACD,OAAO,EAAE,CAAC,2BAAW,CAAC;SACzB,CAAC;IACN,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,OAInB;QACG,OAAO;YACH,MAAM,EAAE,YAAU;YAClB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,oCAAoB;oBAC7B,MAAM,EAAE,OAAO,CAAC,MAAM;oBACtB,UAAU,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE,CAC1B,IAAA,oCAAmB,EAAC,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAqB,CAAC,UAAU,EAAE;iBACzF;gBACD,2BAAW;aACd;YACD,OAAO,EAAE,CAAC,2BAAW,CAAC;SACzB,CAAC;IACN,CAAC;CACJ,CAAA;AAhCY,gCAAU;qBAAV,UAAU;IADtB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,UAAU,CAgCtB"
|
|
1
|
+
{"version":3,"file":"http.module.js","sourceRoot":"","sources":["../../../src/common-infra/http/http.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAwE;AACxE,qDAAuD;AAEvD,mDAAuD;AACvD,mDAA8C;AAGvC,IAAM,UAAU,kBAAhB,MAAM,UAAU;IACnB,MAAM,CAAC,OAAO,CAAC,UAA6B,EAAE;QAC1C,OAAO;YACH,MAAM,EAAE,YAAU;YAClB,SAAS,EAAE;gBACP,IAAA,oCAAmB,EAAC,OAAO,CAAC;gBAC5B,2BAAW;aACd;YACD,OAAO,EAAE,CAAC,2BAAW,CAAC;SACzB,CAAC;IACN,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,OAInB;QACG,OAAO;YACH,MAAM,EAAE,YAAU;YAClB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,oCAAoB;oBAC7B,MAAM,EAAE,OAAO,CAAC,MAAM;oBACtB,UAAU,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE,CAC1B,IAAA,oCAAmB,EAAC,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAqB,CAAC,UAAU,EAAE;iBACzF;gBACD,2BAAW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,CAAC,CAAC;YACxB,CAAC,CAAC,CAAC;YACL,OAAO,GAAG,EAAE;gBACV,IAAI,MAAM,CAAC,YAAY,KAAK,QAAQ,EAAE,CAAC;oBACrC,OAAO;gBACT,CAAC;gBAED,IAAI,YAAY,EAAE,CAAC;oBACjB,YAAY,CAAC,MAAM,EAAE,CAAC;gBACxB,CAAC;YACH,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AApJY,kCAAW;sBAAX,WAAW;IAEnB,WAAA,IAAA,eAAM,EAAC,oCAAoB,CAAC,CAAA;;GAFpB,WAAW,CAoJvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/common-infra/socket.io/interfaces.ts"],"names":[],"mappings":""
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/common-infra/socket.io/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socket.gateway.js","sourceRoot":"","sources":["../../../src/common-infra/socket.io/socket.gateway.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAM4B;AAC5B,yCAA2C;AAGpC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAEhB,MAAM,CAAS;IAEzB,gBAAgB,CAAC,MAAc;QAC3B,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,gBAAgB,CAAC,MAAc;QAC3B,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;IAGD,SAAS,CACU,OAAY,EACR,MAAc;QAEjC,MAAM,CAAC,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;IAES,YAAY,CAClB,MAAc,EACd,KAAa,EACb,IAAS;QAET,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAC7B,CAAC;IAES,SAAS,CACf,KAAa,EACb,IAAS;QAET,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;CACJ,CAAA;AAlCY,8CAAiB;AAEhB;IADT,IAAA,4BAAe,GAAE;8BACA,kBAAM;iDAAC;AAWzB;IADC,IAAA,6BAAgB,EAAC,SAAS,CAAC;IAEvB,WAAA,IAAA,wBAAW,GAAE,CAAA;IACb,WAAA,IAAA,4BAAe,GAAE,CAAA;;6CAAS,kBAAM;;kDAGpC;4BAlBQ,iBAAiB;IAD7B,IAAA,6BAAgB,GAAE;GACN,iBAAiB,CAkC7B"
|
|
1
|
+
{"version":3,"file":"socket.gateway.js","sourceRoot":"","sources":["../../../src/common-infra/socket.io/socket.gateway.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAM4B;AAC5B,yCAA2C;AAGpC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAEhB,MAAM,CAAS;IAEzB,gBAAgB,CAAC,MAAc;QAC3B,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,gBAAgB,CAAC,MAAc;QAC3B,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;IAGD,SAAS,CACU,OAAY,EACR,MAAc;QAEjC,MAAM,CAAC,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;IAES,YAAY,CAClB,MAAc,EACd,KAAa,EACb,IAAS;QAET,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAC7B,CAAC;IAES,SAAS,CACf,KAAa,EACb,IAAS;QAET,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;CACJ,CAAA;AAlCY,8CAAiB;AAEhB;IADT,IAAA,4BAAe,GAAE;8BACA,kBAAM;iDAAC;AAWzB;IADC,IAAA,6BAAgB,EAAC,SAAS,CAAC;IAEvB,WAAA,IAAA,wBAAW,GAAE,CAAA;IACb,WAAA,IAAA,4BAAe,GAAE,CAAA;;6CAAS,kBAAM;;kDAGpC;4BAlBQ,iBAAiB;IAD7B,IAAA,6BAAgB,GAAE;GACN,iBAAiB,CAkC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socket.module.js","sourceRoot":"","sources":["../../../src/common-infra/socket.io/socket.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,mDAAsD;AACtD,qDAAqD;AAI9C,IAAM,YAAY,oBAAlB,MAAM,YAAY;IACd,AAAP,MAAM,CAAC,QAAQ,CAAC,UAA+B,EAAE;QAK7C,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,kCAAiB;SAAG,CAAA;QAApC,OAAO;YAJZ,IAAA,6BAAgB,EAAC;gBACd,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE;gBACrC,SAAS,EAAE,OAAO,CAAC,SAAS;aAC/B,CAAC;WACI,OAAO,CAA6B;QAC1C,OAAO;YACH,MAAM,EAAE,cAAY;YACpB,SAAS,EAAE,CAAC,OAAO,CAAC;YACpB,OAAO,EAAE,CAAC,OAAO,CAAC;SACrB,CAAC;IACN,CAAC;CACJ,CAAA;AAbY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,YAAY,CAaxB"
|
|
1
|
+
{"version":3,"file":"socket.module.js","sourceRoot":"","sources":["../../../src/common-infra/socket.io/socket.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,mDAAsD;AACtD,qDAAqD;AAI9C,IAAM,YAAY,oBAAlB,MAAM,YAAY;IACd,AAAP,MAAM,CAAC,QAAQ,CAAC,UAA+B,EAAE;QAK7C,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,kCAAiB;SAAG,CAAA;QAApC,OAAO;YAJZ,IAAA,6BAAgB,EAAC;gBACd,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE;gBACrC,SAAS,EAAE,OAAO,CAAC,SAAS;aAC/B,CAAC;WACI,OAAO,CAA6B;QAC1C,OAAO;YACH,MAAM,EAAE,cAAY;YACpB,SAAS,EAAE,CAAC,OAAO,CAAC;YACpB,OAAO,EAAE,CAAC,OAAO,CAAC;SACrB,CAAC;IACN,CAAC;CACJ,CAAA;AAbY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,YAAY,CAaxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socket.options.js","sourceRoot":"","sources":["../../../src/common-infra/socket.io/socket.options.ts"],"names":[],"mappings":""
|
|
1
|
+
{"version":3,"file":"socket.options.js","sourceRoot":"","sources":["../../../src/common-infra/socket.io/socket.options.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.constant.js","sourceRoot":"","sources":["../../../src/core-common/constant/app.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,IAAI,CAAC;AACZ,QAAA,QAAQ,GAAG,aAAa,CAAA"
|
|
1
|
+
{"version":3,"file":"app.constant.js","sourceRoot":"","sources":["../../../src/core-common/constant/app.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,IAAI,CAAC;AACZ,QAAA,QAAQ,GAAG,aAAa,CAAA"}
|
|
@@ -8,6 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var CoreCommonModule_1;
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.CoreCommonModule = void 0;
|
|
11
|
+
// src/core-common.module.ts
|
|
11
12
|
const common_1 = require("@nestjs/common");
|
|
12
13
|
const logger_module_1 = require("./logger/logger.module");
|
|
13
14
|
let CoreCommonModule = CoreCommonModule_1 = class CoreCommonModule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-common.module.js","sourceRoot":"","sources":["../../src/core-common/core-common.module.ts"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"core-common.module.js","sourceRoot":"","sources":["../../src/core-common/core-common.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,4BAA4B;AAC5B,2CAA+D;AAC/D,0DAAsD;AAI/C,IAAM,gBAAgB,wBAAtB,MAAM,gBAAgB;IAC3B,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,MAAM,EAAE,kBAAgB;YACxB,OAAO,EAAE;gBACP,4BAAY,CAAC,OAAO,EAAE;aACvB;YACD,OAAO,EAAE;gBACP,4BAAY;aACb;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAZY,4CAAgB;2BAAhB,gBAAgB;IAF5B,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,gBAAgB,CAY5B"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { GenericError } from "../generic.error";
|
|
2
|
+
/**
|
|
3
|
+
* Custom error class for representing the scenario where an entity already exists/Conflict with existing.
|
|
4
|
+
* Extends the GenericError class.
|
|
5
|
+
*/
|
|
2
6
|
export declare class AlreadyExistsError extends GenericError {
|
|
7
|
+
/**
|
|
8
|
+
* Constructor for the AlreadyExistsError class.
|
|
9
|
+
* @param code - Short code associated with the error.
|
|
10
|
+
* @param message - Detailed error information.
|
|
11
|
+
*/
|
|
3
12
|
constructor(code: string, message: string);
|
|
4
13
|
}
|
|
@@ -3,7 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AlreadyExistsError = void 0;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
5
|
const generic_error_1 = require("../generic.error");
|
|
6
|
+
/**
|
|
7
|
+
* Custom error class for representing the scenario where an entity already exists/Conflict with existing.
|
|
8
|
+
* Extends the GenericError class.
|
|
9
|
+
*/
|
|
6
10
|
class AlreadyExistsError extends generic_error_1.GenericError {
|
|
11
|
+
/**
|
|
12
|
+
* Constructor for the AlreadyExistsError class.
|
|
13
|
+
* @param code - Short code associated with the error.
|
|
14
|
+
* @param message - Detailed error information.
|
|
15
|
+
*/
|
|
7
16
|
constructor(code, message) {
|
|
8
17
|
super(code, message, common_1.HttpStatus.CONFLICT);
|
|
9
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"already-exists.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/already-exists.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;
|
|
1
|
+
{"version":3,"file":"already-exists.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/already-exists.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD;;;GAGG;AACH,MAAa,kBAAmB,SAAQ,4BAAY;IAClD;;;;OAIG;IACH,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;CACF;AATD,gDASC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bad-request.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/bad-request.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,eAAgB,SAAQ,4BAAY;IAC/C,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,WAAW,CAAC,CAAC;IAC/C,CAAC;CACF;AAJD,0CAIC"
|
|
1
|
+
{"version":3,"file":"bad-request.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/bad-request.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,eAAgB,SAAQ,4BAAY;IAC/C,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,WAAW,CAAC,CAAC;IAC/C,CAAC;CACF;AAJD,0CAIC"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { GenericError } from "../generic.error";
|
|
2
|
+
/**
|
|
3
|
+
* Custom error class for representing conflict errors.
|
|
4
|
+
* Extends the GenericError class.
|
|
5
|
+
*/
|
|
2
6
|
export declare class ConflictError extends GenericError {
|
|
7
|
+
/**
|
|
8
|
+
* Constructor for the ConflictError class.
|
|
9
|
+
* @param code - Short code associated with the error.
|
|
10
|
+
* @param message - Detailed error information.
|
|
11
|
+
*/
|
|
3
12
|
constructor(code: string, message: string);
|
|
4
13
|
}
|
|
@@ -3,7 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ConflictError = void 0;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
5
|
const generic_error_1 = require("../generic.error");
|
|
6
|
+
/**
|
|
7
|
+
* Custom error class for representing conflict errors.
|
|
8
|
+
* Extends the GenericError class.
|
|
9
|
+
*/
|
|
6
10
|
class ConflictError extends generic_error_1.GenericError {
|
|
11
|
+
/**
|
|
12
|
+
* Constructor for the ConflictError class.
|
|
13
|
+
* @param code - Short code associated with the error.
|
|
14
|
+
* @param message - Detailed error information.
|
|
15
|
+
*/
|
|
7
16
|
constructor(code, message) {
|
|
8
17
|
super(code, message, common_1.HttpStatus.CONFLICT);
|
|
9
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conflict.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/conflict.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;
|
|
1
|
+
{"version":3,"file":"conflict.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/conflict.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD;;;GAGG;AACH,MAAa,aAAc,SAAQ,4BAAY;IAC7C;;;;OAIG;IACH,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;CACF;AATD,sCASC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-validation-error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/custom-validation-error.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AAEtD,MAAa,qBAAsB,SAAQ,mCAAe;IAE/C;IADT,YACS,gBAAqB;QAE5B,KAAK,CAAC,iBAAiB,EAAE,+CAA+C,CAAC,CAAC;QAFnE,qBAAgB,GAAhB,gBAAgB,CAAK;IAG9B,CAAC;CACF;AAND,sDAMC"
|
|
1
|
+
{"version":3,"file":"custom-validation-error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/custom-validation-error.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AAEtD,MAAa,qBAAsB,SAAQ,mCAAe;IAE/C;IADT,YACS,gBAAqB;QAE5B,KAAK,CAAC,iBAAiB,EAAE,+CAA+C,CAAC,CAAC;QAFnE,qBAAgB,GAAhB,gBAAgB,CAAK;IAG9B,CAAC;CACF;AAND,sDAMC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forbidden.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/forbidden.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,cAAe,SAAQ,4BAAY;IAC9C,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,SAAS,CAAC,CAAC;IAC7C,CAAC;CACF;AAJD,wCAIC"
|
|
1
|
+
{"version":3,"file":"forbidden.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/forbidden.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,cAAe,SAAQ,4BAAY;IAC9C,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,SAAS,CAAC,CAAC;IAC7C,CAAC;CACF;AAJD,wCAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-server.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/internal-server.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,YACE,IAAI,GAAG,uBAAuB,EAC9B,OAAO,GAAG,8BAA8B;QAExC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,qBAAqB,CAAC,CAAC;IACzD,CAAC;CACF;AAPD,kDAOC"
|
|
1
|
+
{"version":3,"file":"internal-server.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/internal-server.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,YACE,IAAI,GAAG,uBAAuB,EAC9B,OAAO,GAAG,8BAA8B;QAExC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,qBAAqB,CAAC,CAAC;IACzD,CAAC;CACF;AAPD,kDAOC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not-found.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/not-found.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,aAAc,SAAQ,4BAAY;IAC7C,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,SAAS,CAAC,CAAC;IAC7C,CAAC;CACF;AAJD,sCAIC"
|
|
1
|
+
{"version":3,"file":"not-found.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/not-found.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,aAAc,SAAQ,4BAAY;IAC7C,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,SAAS,CAAC,CAAC;IAC7C,CAAC;CACF;AAJD,sCAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-unavailable.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/service-unavailable.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,uBAAwB,SAAQ,4BAAY;IACvD,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,mBAAmB,CAAC,CAAC;IACvD,CAAC;CACF;AAJD,0DAIC"
|
|
1
|
+
{"version":3,"file":"service-unavailable.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/service-unavailable.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,uBAAwB,SAAQ,4BAAY;IACvD,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,mBAAmB,CAAC,CAAC;IACvD,CAAC;CACF;AAJD,0DAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unauthorized.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/unauthorized.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,iBAAkB,SAAQ,4BAAY;IACjD,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,YAAY,CAAC,CAAC;IAChD,CAAC;CACF;AAJD,8CAIC"
|
|
1
|
+
{"version":3,"file":"unauthorized.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/unauthorized.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,iBAAkB,SAAQ,4BAAY;IACjD,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,YAAY,CAAC,CAAC;IAChD,CAAC;CACF;AAJD,8CAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unprocess-entity.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/unprocess-entity.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,wBAAyB,SAAQ,4BAAY;IACxD,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,oBAAoB,CAAC,CAAC;IACxD,CAAC;CACF;AAJD,4DAIC"
|
|
1
|
+
{"version":3,"file":"unprocess-entity.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/unprocess-entity.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,wBAAyB,SAAQ,4BAAY;IACxD,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,oBAAoB,CAAC,CAAC;IACxD,CAAC;CACF;AAJD,4DAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/validation.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,eAAgB,SAAQ,4BAAY;IAC/C,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,oBAAoB,CAAC,CAAC;IACxD,CAAC;CACF;AAJD,0CAIC"
|
|
1
|
+
{"version":3,"file":"validation.error.js","sourceRoot":"","sources":["../../../../src/core-common/error/custom-error/validation.error.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,oDAAgD;AAEhD,MAAa,eAAgB,SAAQ,4BAAY;IAC/C,YAAY,IAAY,EAAE,OAAe;QACvC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAU,CAAC,oBAAoB,CAAC,CAAC;IACxD,CAAC;CACF;AAJD,0CAIC"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { HttpStatus } from "@nestjs/common";
|
|
2
|
+
/**
|
|
3
|
+
* Custom error class which needs to be returned from the lower layers to the higher calling layers
|
|
4
|
+
*/
|
|
2
5
|
export declare class GenericError {
|
|
3
6
|
code: string;
|
|
4
7
|
message: string;
|
|
5
8
|
statusCode: HttpStatus;
|
|
9
|
+
/**
|
|
10
|
+
* Default constructor
|
|
11
|
+
* @param code - Short error code e.g. "InvaliOperation", "ItemNotFound" etc
|
|
12
|
+
* @param message - Detailed error message
|
|
13
|
+
*/
|
|
6
14
|
constructor(code: string, message: string, statusCode?: HttpStatus);
|
|
7
15
|
}
|
|
@@ -12,10 +12,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.GenericError = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
/**
|
|
16
|
+
* Custom error class which needs to be returned from the lower layers to the higher calling layers
|
|
17
|
+
*/
|
|
15
18
|
class GenericError {
|
|
16
19
|
code;
|
|
17
20
|
message;
|
|
18
21
|
statusCode;
|
|
22
|
+
/**
|
|
23
|
+
* Default constructor
|
|
24
|
+
* @param code - Short error code e.g. "InvaliOperation", "ItemNotFound" etc
|
|
25
|
+
* @param message - Detailed error message
|
|
26
|
+
*/
|
|
19
27
|
constructor(code, message, statusCode = common_1.HttpStatus.INTERNAL_SERVER_ERROR) {
|
|
20
28
|
this.code = code;
|
|
21
29
|
this.message = message;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic.error.js","sourceRoot":"","sources":["../../../src/core-common/error/generic.error.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAA8C;
|
|
1
|
+
{"version":3,"file":"generic.error.js","sourceRoot":"","sources":["../../../src/core-common/error/generic.error.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAA8C;AAE9C;;GAEG;AACH,MAAa,YAAY;IAEhB,IAAI,CAAS;IAGb,OAAO,CAAS;IAGhB,UAAU,CAAa;IAE9B;;;;OAIG;IACH,YACE,IAAY,EACZ,OAAe,EACf,aAAyB,mBAAU,CAAC,qBAAqB;QAEzD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF;AAxBD,oCAwBC;AAtBQ;IADN,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;;0CAC7B;AAGb;IADN,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;;6CACpC;AAGhB;IADN,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;;gDAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.interface.js","sourceRoot":"","sources":["../../../src/core-common/logger/logger.interface.ts"],"names":[],"mappings":""
|
|
1
|
+
{"version":3,"file":"logger.interface.js","sourceRoot":"","sources":["../../../src/core-common/logger/logger.interface.ts"],"names":[],"mappings":""}
|
|
@@ -8,6 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var LoggerModule_1;
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.LoggerModule = exports.LOGGER_OPTIONS = void 0;
|
|
11
|
+
// src/logger/logger.module.ts
|
|
11
12
|
const common_1 = require("@nestjs/common");
|
|
12
13
|
const logger_service_1 = require("./logger.service");
|
|
13
14
|
exports.LOGGER_OPTIONS = Symbol("LOGGER_OPTIONS");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.module.js","sourceRoot":"","sources":["../../../src/core-common/logger/logger.module.ts"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"logger.module.js","sourceRoot":"","sources":["../../../src/core-common/logger/logger.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,8BAA8B;AAC9B,2CAAuD;AACvD,qDAAiD;AAGpC,QAAA,cAAc,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAGhD,IAAM,YAAY,oBAAlB,MAAM,YAAY;IACvB,MAAM,CAAC,OAAO,CAAC,UAA+B,EAAE;QAC9C,OAAO;YACL,MAAM,EAAE,cAAY;YACpB,SAAS,EAAE;gBACT,8BAAa;gBACb;oBACE,OAAO,EAAE,sBAAc;oBACvB,QAAQ,EAAE,OAAO;iBAClB;aACF;YACD,OAAO,EAAE,CAAC,8BAAa,CAAC;SACzB,CAAC;IACJ,CAAC;CACF,CAAA;AAdY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,YAAY,CAcxB"}
|
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.LoggerService = void 0;
|
|
7
7
|
const winston_1 = __importDefault(require("winston"));
|
|
8
|
+
/* ---------------------------------- Types --------------------------------- */
|
|
8
9
|
var SeverityText;
|
|
9
10
|
(function (SeverityText) {
|
|
10
11
|
SeverityText["INFO"] = "Information";
|
|
@@ -12,6 +13,7 @@ var SeverityText;
|
|
|
12
13
|
SeverityText["WARNING"] = "Warning";
|
|
13
14
|
SeverityText["ERROR"] = "Error";
|
|
14
15
|
})(SeverityText || (SeverityText = {}));
|
|
16
|
+
/* --------------------------------- Service -------------------------------- */
|
|
15
17
|
class LoggerService {
|
|
16
18
|
logger;
|
|
17
19
|
deploymentEnv;
|
|
@@ -24,6 +26,7 @@ class LoggerService {
|
|
|
24
26
|
this.logger = this.createLogger(logLevel);
|
|
25
27
|
this.overrideConsole();
|
|
26
28
|
}
|
|
29
|
+
/* ------------------------------- Public API ------------------------------- */
|
|
27
30
|
log(message, metadata) {
|
|
28
31
|
this.write("info", SeverityText.INFO, message, metadata);
|
|
29
32
|
}
|
|
@@ -36,6 +39,7 @@ class LoggerService {
|
|
|
36
39
|
error(message, metadata, error) {
|
|
37
40
|
this.write("error", SeverityText.ERROR, message, metadata, error);
|
|
38
41
|
}
|
|
42
|
+
/* ------------------------------ Logger Core ------------------------------ */
|
|
39
43
|
write(level, severity, message, metadata = {}, error) {
|
|
40
44
|
const body = {
|
|
41
45
|
SeverityText: severity,
|
|
@@ -60,6 +64,7 @@ class LoggerService {
|
|
|
60
64
|
transports: [new winston_1.default.transports.Console()],
|
|
61
65
|
});
|
|
62
66
|
}
|
|
67
|
+
/* ------------------------------- Context -------------------------------- */
|
|
63
68
|
buildAttributes(level) {
|
|
64
69
|
return {
|
|
65
70
|
"service.image.version": this.hostImageVersion,
|
|
@@ -68,6 +73,7 @@ class LoggerService {
|
|
|
68
73
|
"service.log.level": level,
|
|
69
74
|
};
|
|
70
75
|
}
|
|
76
|
+
/* ------------------------------- Helpers -------------------------------- */
|
|
71
77
|
cleanMeta(meta) {
|
|
72
78
|
return Object.fromEntries(Object.entries(meta).filter(([_, value]) => value !== undefined && value !== "None"));
|
|
73
79
|
}
|
|
@@ -92,6 +98,7 @@ class LoggerService {
|
|
|
92
98
|
return value;
|
|
93
99
|
};
|
|
94
100
|
}
|
|
101
|
+
/* ----------------------------- Redaction -------------------------------- */
|
|
95
102
|
redactSecrets(message) {
|
|
96
103
|
const patterns = [
|
|
97
104
|
{
|
|
@@ -111,6 +118,7 @@ class LoggerService {
|
|
|
111
118
|
return msg.replace(regex, (m) => `${m.slice(0, visible)}...[REDACTED_${name}]`);
|
|
112
119
|
}, message);
|
|
113
120
|
}
|
|
121
|
+
/* --------------------------- Console Override ---------------------------- */
|
|
114
122
|
overrideConsole() {
|
|
115
123
|
const blocked = ["NodeSDK", "AuthToken"];
|
|
116
124
|
console.log = (...args) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.service.js","sourceRoot":"","sources":["../../../src/core-common/logger/logger.service.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA0C;
|
|
1
|
+
{"version":3,"file":"logger.service.js","sourceRoot":"","sources":["../../../src/core-common/logger/logger.service.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA0C;AAE1C,gFAAgF;AAEhF,IAAK,YAKJ;AALD,WAAK,YAAY;IACf,oCAAoB,CAAA;IACpB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,+BAAe,CAAA;AACjB,CAAC,EALI,YAAY,KAAZ,YAAY,QAKhB;AAaD,gFAAgF;AAEhF,MAAa,aAAa;IACP,MAAM,CAAS;IACf,aAAa,CAAS;IACtB,gBAAgB,CAAS;IACzB,aAAa,CAAS;IAEvC,YAAY,WAAmB,OAAO;QACpC,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;QAC/B,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,UAAU,CAAC;QAClE,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,UAAU,CAAC;QAC/D,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ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d,CAAC;IAED,+EAA+E;IAEvE,eAAe;QACrB,MAAM,OAAO,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QACzC,OAAO,CAAC,GAAG,GAAG,CAAC,GAAG,IAAe,EAAE,EAAE;YACnC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACvC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAAE,OAAO;YACjD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;CACF;AAtJD,sCAsJC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { Result } from "../result-model/result";
|
|
2
|
+
/**
|
|
3
|
+
* Standard error response to be returned to the caller of the API.
|
|
4
|
+
* This class represents the structure of an error response returned by the API
|
|
5
|
+
* in case of failures.
|
|
6
|
+
*/
|
|
2
7
|
export declare class ErrorDisplay {
|
|
3
8
|
code: string;
|
|
4
9
|
message: string;
|
|
@@ -11,5 +16,10 @@ export declare class GenericErrorResponse {
|
|
|
11
16
|
timestamp: string;
|
|
12
17
|
data: any;
|
|
13
18
|
constructor();
|
|
19
|
+
/**
|
|
20
|
+
* Sets the properties from the Result object.
|
|
21
|
+
* @param result - Result object instance returned from the controller method.
|
|
22
|
+
* @param statusCode - HTTP status code.
|
|
23
|
+
*/
|
|
14
24
|
initialize(result: Result<any>, statusCode: number): void;
|
|
15
25
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GenericErrorResponse = exports.ErrorDisplay = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Standard error response to be returned to the caller of the API.
|
|
6
|
+
* This class represents the structure of an error response returned by the API
|
|
7
|
+
* in case of failures.
|
|
8
|
+
*/
|
|
4
9
|
class ErrorDisplay {
|
|
5
10
|
code;
|
|
6
11
|
message;
|
|
@@ -14,10 +19,15 @@ class GenericErrorResponse {
|
|
|
14
19
|
timestamp;
|
|
15
20
|
data;
|
|
16
21
|
constructor() {
|
|
17
|
-
this.statusCode = 500;
|
|
22
|
+
this.statusCode = 500; // Default value
|
|
18
23
|
this.success = false;
|
|
19
|
-
this.timestamp = new Date().toISOString();
|
|
24
|
+
this.timestamp = new Date().toISOString(); // Default value
|
|
20
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Sets the properties from the Result object.
|
|
28
|
+
* @param result - Result object instance returned from the controller method.
|
|
29
|
+
* @param statusCode - HTTP status code.
|
|
30
|
+
*/
|
|
21
31
|
initialize(result, statusCode) {
|
|
22
32
|
this.statusCode = statusCode;
|
|
23
33
|
this.error = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic-error-response.model.js","sourceRoot":"","sources":["../../../src/core-common/response-model/generic-error-response.model.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"generic-error-response.model.js","sourceRoot":"","sources":["../../../src/core-common/response-model/generic-error-response.model.ts"],"names":[],"mappings":";;;AAEA;;;;GAIG;AAEH,MAAa,YAAY;IACvB,IAAI,CAAS;IACb,OAAO,CAAS;IAChB,eAAe,CAAO;CACvB;AAJD,oCAIC;AACD,MAAa,oBAAoB;IAC/B,UAAU,CAAS;IACnB,OAAO,GAAY,KAAK,CAAC;IACzB,KAAK,CAAe;IACpB,SAAS,CAAS;IAClB,IAAI,CAAM;IAEV;QACE,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,CAAC,gBAAgB;QACvC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC,gBAAgB;IAC7D,CAAC;IACD;;;;OAIG;IACH,UAAU,CACR,MAAmB,EACnB,UAAkB;QAElB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG;YACX,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,IAAI,OAAO;YACnC,OAAO,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,IAAI,oBAAoB;SACvD,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAA;QACvB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,KAAK,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAChE,CAAC;CACF;AA9BD,oDA8BC"}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { Result } from "../result-model/result";
|
|
2
|
+
/**
|
|
3
|
+
* Standard response object to be returned to the caller of the API.
|
|
4
|
+
* This class represents the structure of a success response returned by the API.
|
|
5
|
+
* @typeparam T - The type of data included in the response.
|
|
6
|
+
*/
|
|
2
7
|
export declare class GenericSuccessResponse<T> {
|
|
3
8
|
statusCode: number;
|
|
4
9
|
success: boolean;
|
|
5
10
|
data: T;
|
|
6
11
|
timestamp: string;
|
|
12
|
+
/**
|
|
13
|
+
* Sets the properties from the Result object.
|
|
14
|
+
* @param result - Result object instance returned from the controller method.
|
|
15
|
+
* @param statusCode - HTTP status code.
|
|
16
|
+
*/
|
|
7
17
|
initialize(result: Result<T>, statusCode: number): void;
|
|
8
18
|
}
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GenericSuccessResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Standard response object to be returned to the caller of the API.
|
|
6
|
+
* This class represents the structure of a success response returned by the API.
|
|
7
|
+
* @typeparam T - The type of data included in the response.
|
|
8
|
+
*/
|
|
4
9
|
class GenericSuccessResponse {
|
|
5
10
|
statusCode;
|
|
6
11
|
success;
|
|
7
12
|
data;
|
|
8
13
|
timestamp;
|
|
14
|
+
/**
|
|
15
|
+
* Sets the properties from the Result object.
|
|
16
|
+
* @param result - Result object instance returned from the controller method.
|
|
17
|
+
* @param statusCode - HTTP status code.
|
|
18
|
+
*/
|
|
9
19
|
initialize(result, statusCode) {
|
|
10
20
|
this.statusCode = statusCode;
|
|
11
21
|
this.success = result.success;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic-success-response.model.js","sourceRoot":"","sources":["../../../src/core-common/response-model/generic-success-response.model.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"generic-success-response.model.js","sourceRoot":"","sources":["../../../src/core-common/response-model/generic-success-response.model.ts"],"names":[],"mappings":";;;AAEA;;;;GAIG;AACH,MAAa,sBAAsB;IACjC,UAAU,CAAS;IACnB,OAAO,CAAU;IACjB,IAAI,CAAI;IACR,SAAS,CAAS;IAElB;;;;OAIG;IACH,UAAU,CAAC,MAAiB,EAAE,UAAkB;QAC9C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAC5C,CAAC;CACF;AAjBD,wDAiBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.js","sourceRoot":"","sources":["../../../src/core-common/result-model/result.ts"],"names":[],"mappings":";;;AAEA,MAAa,MAAM;IACjB,OAAO,CAAU;IACjB,IAAI,CAAI;IACR,KAAK,CAAe;IACpB,SAAS,CAAS;IAEX,MAAM,CAAC,OAAO,CAAI,IAAO;QAC9B,MAAM,MAAM,GAAG,IAAI,MAAM,EAAK,CAAC;QAC/B,MAAM,CAAC,OAAO,GA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