@servicelabsco/nestjs-utility-services 3.0.7 → 3.0.9
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/CHANGELOG.md +130 -0
- package/dist/auth/es6.classes.d.ts +4 -2
- package/dist/auth/es6.classes.js +2 -0
- package/dist/auth/es6.classes.js.map +1 -1
- package/dist/auth/services/device.token.service.js +2 -35
- package/dist/auth/services/device.token.service.js.map +1 -1
- package/dist/common/decorators/cache.method.decorator.d.ts +11 -0
- package/dist/common/decorators/cache.method.decorator.js +37 -0
- package/dist/common/decorators/cache.method.decorator.js.map +1 -0
- package/dist/common/decorators/index.d.ts +3 -0
- package/dist/common/decorators/index.js +3 -0
- package/dist/common/decorators/index.js.map +1 -1
- package/dist/common/decorators/public.exposed.decorator.d.ts +2 -1
- package/dist/common/decorators/public.exposed.decorator.js +21 -6
- package/dist/common/decorators/public.exposed.decorator.js.map +1 -1
- package/dist/common/decorators/when.column.updated.decorator.d.ts +8 -0
- package/dist/common/decorators/when.column.updated.decorator.js +22 -0
- package/dist/common/decorators/when.column.updated.decorator.js.map +1 -0
- package/dist/common/decorators/when.new.record.decorator.d.ts +5 -0
- package/dist/common/decorators/when.new.record.decorator.js +19 -0
- package/dist/common/decorators/when.new.record.decorator.js.map +1 -0
- package/dist/common/es6.classes.d.ts +9 -1
- package/dist/common/es6.classes.js +12 -1
- package/dist/common/es6.classes.js.map +1 -1
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.js +1 -0
- package/dist/common/index.js.map +1 -1
- package/dist/common/interfaces/index.d.ts +3 -0
- package/dist/common/interfaces/index.js +20 -0
- package/dist/common/interfaces/index.js.map +1 -0
- package/dist/common/interfaces/method.cache.interface.d.ts +4 -0
- package/dist/common/interfaces/method.cache.interface.js +3 -0
- package/dist/common/interfaces/method.cache.interface.js.map +1 -0
- package/dist/common/interfaces/platform.registry.resolver.interface.d.ts +5 -0
- package/dist/common/interfaces/platform.registry.resolver.interface.js +3 -0
- package/dist/common/interfaces/platform.registry.resolver.interface.js.map +1 -0
- package/dist/common/interfaces/updated.column.interface.d.ts +7 -0
- package/dist/common/interfaces/updated.column.interface.js +3 -0
- package/dist/common/interfaces/updated.column.interface.js.map +1 -0
- package/dist/common/libraries/common.service.d.ts +1 -1
- package/dist/common/libraries/common.service.js.map +1 -1
- package/dist/common/libraries/common.subscriber.d.ts +15 -4
- package/dist/common/libraries/common.subscriber.js +135 -67
- package/dist/common/libraries/common.subscriber.js.map +1 -1
- package/dist/common/libraries/custom.crypt.js +2 -2
- package/dist/common/libraries/custom.crypt.js.map +1 -1
- package/dist/common/libraries/index.d.ts +1 -0
- package/dist/common/libraries/index.js +1 -0
- package/dist/common/libraries/index.js.map +1 -1
- package/dist/common/libraries/platform.utility.d.ts +3 -0
- package/dist/common/libraries/platform.utility.js +6 -3
- package/dist/common/libraries/platform.utility.js.map +1 -1
- package/dist/common/libraries/sentry.sdk.d.ts +11 -0
- package/dist/common/libraries/sentry.sdk.js +26 -0
- package/dist/common/libraries/sentry.sdk.js.map +1 -0
- package/dist/config/sentry.options.d.ts +2 -1
- package/dist/config/sentry.options.js +7 -36
- package/dist/config/sentry.options.js.map +1 -1
- package/dist/platformUtility/consumers/job.consumer.js +2 -35
- package/dist/platformUtility/consumers/job.consumer.js.map +1 -1
- package/dist/platformUtility/es6.classes.d.ts +3 -4
- package/dist/platformUtility/es6.classes.js +2 -4
- package/dist/platformUtility/es6.classes.js.map +1 -1
- package/dist/platformUtility/filters/sentry.reporting.filter.d.ts +8 -7
- package/dist/platformUtility/filters/sentry.reporting.filter.js +66 -41
- package/dist/platformUtility/filters/sentry.reporting.filter.js.map +1 -1
- package/dist/platformUtility/libraries/common.sqs.polling.js +3 -36
- package/dist/platformUtility/libraries/common.sqs.polling.js.map +1 -1
- package/dist/platformUtility/libraries/sentry.bootstrap.d.ts +3 -2
- package/dist/platformUtility/libraries/sentry.bootstrap.js +3 -1
- package/dist/platformUtility/libraries/sentry.bootstrap.js.map +1 -1
- package/dist/platformUtility/libraries/sentry.context.js +4 -2
- package/dist/platformUtility/libraries/sentry.context.js.map +1 -1
- package/dist/platformUtility/platform.utility.module.js +2 -0
- package/dist/platformUtility/platform.utility.module.js.map +1 -1
- package/dist/platformUtility/sentry.reporting.module.js +2 -2
- package/dist/platformUtility/sentry.reporting.module.js.map +1 -1
- package/dist/platformUtility/services/aws.secret.service.js +2 -35
- package/dist/platformUtility/services/aws.secret.service.js.map +1 -1
- package/dist/platformUtility/services/cache.service.js +2 -0
- package/dist/platformUtility/services/cache.service.js.map +1 -1
- package/dist/platformUtility/services/emithook.mail.service.d.ts +0 -1
- package/dist/platformUtility/services/emithook.mail.service.js +2 -1
- package/dist/platformUtility/services/emithook.mail.service.js.map +1 -1
- package/dist/platformUtility/services/index.d.ts +1 -0
- package/dist/platformUtility/services/index.js +1 -0
- package/dist/platformUtility/services/index.js.map +1 -1
- package/dist/platformUtility/services/local.property.service.d.ts +0 -1
- package/dist/platformUtility/services/local.property.service.js +1 -10
- package/dist/platformUtility/services/local.property.service.js.map +1 -1
- package/dist/platformUtility/services/pdf.service.d.ts +0 -1
- package/dist/platformUtility/services/pdf.service.js +2 -1
- package/dist/platformUtility/services/pdf.service.js.map +1 -1
- package/dist/platformUtility/services/platform.registry.service.d.ts +23 -0
- package/dist/platformUtility/services/platform.registry.service.js +122 -0
- package/dist/platformUtility/services/platform.registry.service.js.map +1 -0
- package/dist/platformUtility/services/sql.service.js +6 -39
- package/dist/platformUtility/services/sql.service.js.map +1 -1
- package/dist/platformUtility/subscribers/dispatcher.subscriber.js +2 -35
- package/dist/platformUtility/subscribers/dispatcher.subscriber.js.map +1 -1
- package/dist/security/es6.classes.d.ts +4 -0
- package/dist/security/es6.classes.js +4 -0
- package/dist/security/es6.classes.js.map +1 -1
- package/dist/system/es6.classes.d.ts +4 -5
- package/dist/system/es6.classes.js +0 -2
- package/dist/system/es6.classes.js.map +1 -1
- package/dist/system/jobs/client.credential.job.js +15 -4
- package/dist/system/jobs/client.credential.job.js.map +1 -1
- package/dist/system/libraries/business.rule.query.evaluator.js +2 -35
- package/dist/system/libraries/business.rule.query.evaluator.js.map +1 -1
- package/dist/system/services/event.queue.service.js +2 -35
- package/dist/system/services/event.queue.service.js.map +1 -1
- package/docs/sentry-reporting.md +22 -13
- package/package.json +1 -1
- package/dist/config/entity.constants.d.ts +0 -171
- package/dist/config/entity.constants.js +0 -173
- package/dist/config/entity.constants.js.map +0 -1
- package/dist/platformUtility/services/es6.jobs.service.d.ts +0 -18
- package/dist/platformUtility/services/es6.jobs.service.js +0 -57
- package/dist/platformUtility/services/es6.jobs.service.js.map +0 -1
- package/dist/platformUtility/services/es6.service.d.ts +0 -10
- package/dist/platformUtility/services/es6.service.js +0 -41
- package/dist/platformUtility/services/es6.service.js.map +0 -1
- package/dist/system/services/es6.jobs.service.d.ts +0 -62
- package/dist/system/services/es6.jobs.service.js +0 -145
- package/dist/system/services/es6.jobs.service.js.map +0 -1
|
@@ -1,44 +1,11 @@
|
|
|
1
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
3
|
exports.isWorkerEntrypoint = isWorkerEntrypoint;
|
|
37
4
|
exports.isSentryHttpEnabled = isSentryHttpEnabled;
|
|
5
|
+
exports.isSentryWorkerEnabled = isSentryWorkerEnabled;
|
|
38
6
|
exports.getSentryInitOptions = getSentryInitOptions;
|
|
39
7
|
exports.initSentry = initSentry;
|
|
40
8
|
require("dotenv/config");
|
|
41
|
-
const Sentry = __importStar(require("@sentry/nestjs"));
|
|
42
9
|
const log_redactor_1 = require("../common/libraries/log.redactor");
|
|
43
10
|
function isWorkerEntrypoint() {
|
|
44
11
|
const entry = (process.argv[1] || '').replace(/\\/g, '/');
|
|
@@ -47,6 +14,9 @@ function isWorkerEntrypoint() {
|
|
|
47
14
|
function isSentryHttpEnabled() {
|
|
48
15
|
return !!process.env.SENTRY_DSN && !isWorkerEntrypoint();
|
|
49
16
|
}
|
|
17
|
+
function isSentryWorkerEnabled() {
|
|
18
|
+
return !!process.env.SENTRY_DSN && isWorkerEntrypoint() && process.env.SENTRY_ENABLE_WORKER === 'true';
|
|
19
|
+
}
|
|
50
20
|
function getSentryInitOptions() {
|
|
51
21
|
return {
|
|
52
22
|
dsn: process.env.SENTRY_DSN,
|
|
@@ -78,8 +48,9 @@ function getSentryInitOptions() {
|
|
|
78
48
|
};
|
|
79
49
|
}
|
|
80
50
|
function initSentry() {
|
|
81
|
-
if (!isSentryHttpEnabled())
|
|
51
|
+
if (!isSentryHttpEnabled() && !isSentryWorkerEnabled())
|
|
82
52
|
return;
|
|
83
|
-
|
|
53
|
+
const sdk = require('@sentry/nestjs');
|
|
54
|
+
sdk.init(getSentryInitOptions());
|
|
84
55
|
}
|
|
85
56
|
//# sourceMappingURL=sentry.options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentry.options.js","sourceRoot":"","sources":["../../src/config/sentry.options.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sentry.options.js","sourceRoot":"","sources":["../../src/config/sentry.options.ts"],"names":[],"mappings":";;AAUA,gDAGC;AAQD,kDAEC;AAgBD,sDAEC;AAMD,oDAwBC;AAcD,gCAKC;AA1FD,yBAAuB;AAGvB,mEAA+D;AAO/D,SAAgB,kBAAkB;IAC9B,MAAM,KAAK,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC1D,OAAO,4BAA4B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACpD,CAAC;AAQD,SAAgB,mBAAmB;IAC/B,OAAO,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,CAAC,kBAAkB,EAAE,CAAC;AAC7D,CAAC;AAgBD,SAAgB,qBAAqB;IACjC,OAAO,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,kBAAkB,EAAE,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,KAAK,MAAM,CAAC;AAC3G,CAAC;AAMD,SAAgB,oBAAoB;IAChC,OAAO;QACH,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;QAC3B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EAAE,CAAC;gBACpC,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,0BAAW,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;YACpG,CAAC;YACD,OAAO,KAAK,CAAC;QACjB,CAAC;KACJ,CAAC;AACN,CAAC;AAcD,SAAgB,UAAU;IACtB,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,qBAAqB,EAAE;QAAE,OAAO;IAE/D,MAAM,GAAG,GAAG,OAAO,CAAC,gBAAgB,CAAkB,CAAC;IACvD,GAAG,CAAC,IAAI,CAAC,oBAAoB,EAAE,CAAC,CAAC;AACrC,CAAC"}
|
|
@@ -1,43 +1,10 @@
|
|
|
1
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
7
|
};
|
|
24
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
-
var ownKeys = function(o) {
|
|
26
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
-
var ar = [];
|
|
28
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
-
return ar;
|
|
30
|
-
};
|
|
31
|
-
return ownKeys(o);
|
|
32
|
-
};
|
|
33
|
-
return function (mod) {
|
|
34
|
-
if (mod && mod.__esModule) return mod;
|
|
35
|
-
var result = {};
|
|
36
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
-
__setModuleDefault(result, mod);
|
|
38
|
-
return result;
|
|
39
|
-
};
|
|
40
|
-
})();
|
|
41
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
42
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
43
10
|
};
|
|
@@ -48,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
48
15
|
exports.JobConsumer = void 0;
|
|
49
16
|
const bullmq_1 = require("@nestjs/bullmq");
|
|
50
17
|
const common_1 = require("@nestjs/common");
|
|
51
|
-
const
|
|
18
|
+
const sentry_sdk_1 = require("../../common/libraries/sentry.sdk");
|
|
52
19
|
const bullmq_2 = require("bullmq");
|
|
53
20
|
const operation_exception_1 = require("../../common/exceptions/operation.exception");
|
|
54
21
|
const platform_constants_1 = __importDefault(require("../../config/platform.constants"));
|
|
@@ -122,7 +89,7 @@ let JobConsumer = class JobConsumer extends bullmq_1.WorkerHost {
|
|
|
122
89
|
catch (error) {
|
|
123
90
|
const message = error instanceof Error ? error.message : String(error);
|
|
124
91
|
global.console.error(`failed to chain next job (hash=${item.hash}): ${message}`);
|
|
125
|
-
|
|
92
|
+
sentry_sdk_1.SentrySdk.captureException(error, {
|
|
126
93
|
level: 'error',
|
|
127
94
|
tags: { service: 'JobConsumer.handleNextJob' },
|
|
128
95
|
extra: { hash: item.hash, payload: item.payload },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.consumer.js","sourceRoot":"","sources":["../../../src/platformUtility/consumers/job.consumer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"job.consumer.js","sourceRoot":"","sources":["../../../src/platformUtility/consumers/job.consumer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAsE;AACtE,2CAAwC;AACxC,kEAA8D;AAC9D,mCAA0C;AAC1C,qFAAiF;AACjF,yFAAgE;AAEhE,+EAAyE;AACzE,iFAA2E;AAC3E,6DAAyD;AAOzD,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC;AAQ/E,MAAM,cAAc,GAAG,CAAC,QAA4B,EAAE,QAAgB,EAAU,EAAE;IAC9E,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC;AACvD,CAAC,CAAC;AAEF,MAAM,KAAK,GAAG,4BAAiB,CAAC,KAAK,CAAC;AACtC,MAAM,KAAK,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC;AAQ1E,MAAM,QAAQ,GAAG,cAAc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AE,OAAO,EAAE;KACnC,CAAC;qCAe6C,4BAAY;GAd9C,WAAW,CAsSvB"}
|
|
@@ -58,13 +58,12 @@ import { AwsSecretService } from './services/aws.secret.service';
|
|
|
58
58
|
import { CacheService } from './services/cache.service';
|
|
59
59
|
import { DynamoService } from './services/dynamo.service';
|
|
60
60
|
import { EmithookMailService } from './services/emithook.mail.service';
|
|
61
|
-
import { Es6JobsService } from './services/es6.jobs.service';
|
|
62
|
-
import { Es6Service } from './services/es6.service';
|
|
63
61
|
import { FcmNotificationService } from './services/fcm.notification.service';
|
|
64
62
|
import { LocalPropertyService } from './services/local.property.service';
|
|
65
63
|
import { MailService } from './services/mail.service';
|
|
66
64
|
import { MaintenanceService } from './services/maintenance.service';
|
|
67
65
|
import { PdfService } from './services/pdf.service';
|
|
66
|
+
import { PlatformRegistryService } from './services/platform.registry.service';
|
|
68
67
|
import { QueueService } from './services/queue.service';
|
|
69
68
|
import { R2ConfigService } from './services/r2.config.service';
|
|
70
69
|
import { RedisService } from './services/redis.service';
|
|
@@ -88,14 +87,14 @@ declare const es6Classes: {
|
|
|
88
87
|
consumers: (typeof JobConsumer)[];
|
|
89
88
|
controllers: (typeof BullJobController | typeof QueueController)[];
|
|
90
89
|
dtos: (typeof SourceColumnDto | typeof AwsConfigDto | typeof R2ConfigDto | typeof JobPayloadDto | typeof QueueOptionsDto | typeof CommonAttributesDto | typeof MailOptionsDto | typeof RemoteRawResponseDto | typeof SmtpConfigDto | typeof LambdaZipDto | typeof FcmResponseDto | typeof KaleyraCallbackPayloadDto | typeof PushNotificationResponseDto | typeof PushNotificationTemplateDto | typeof S3ServiceUploadOptionsDto | typeof SetSmsPayloadDto | typeof SmsPayloadDto | typeof StringSearchDto)[];
|
|
91
|
-
entities: (typeof
|
|
90
|
+
entities: (typeof RemoteRequestLogEntity | typeof FailedBullJobEntity | typeof PendingBullJobEntity)[];
|
|
92
91
|
filters: (typeof SentryReportingFilter)[];
|
|
93
92
|
interceptors: (typeof SentryUserScopeInterceptor)[];
|
|
94
93
|
interfaces: any[];
|
|
95
94
|
jobs: (typeof TestJob | typeof LoadFailedBullJob | typeof ProcessSesDeliveryWebhookJob | typeof ProcessTrackingWebhookJob | typeof RecordWatcherJob | typeof ReloadPendingBullJob)[];
|
|
96
95
|
libraries: (typeof ProcessAuditLogData | typeof ProcessCommonMail | typeof ProcessEmithookMail | typeof ProcessSesMail | typeof ProcessSesRawMail | typeof ProcessSmtpMail | typeof SentryContext | typeof CommonSmsService | typeof CommonSqsPolling | typeof FileSystemUtility | typeof CreateEntityConstantsFile | typeof CreateEs6ClassesFile | typeof CreateEs6JobsFile | typeof CreateEs6ServiceFile | typeof CreateIndexFile | typeof ProcessKaleyraCallbackResponse | typeof ProcessKaleyraSms | typeof SentryBootstrap | typeof SetSmsMessage)[];
|
|
97
96
|
middlewares: (typeof MaintenanceMiddleware | typeof TrimPipe)[];
|
|
98
|
-
services: (typeof RedisService | typeof CacheService | typeof AwsConfigService | typeof AwsClientFactory | typeof R2ConfigService | typeof SqlService | typeof LocalPropertyService | typeof SqsService | typeof QueueService | typeof DynamoService | typeof AuditService | typeof RemoteRequestService | typeof EmithookMailService | typeof MailService | typeof ZipService | typeof MaintenanceService | typeof SesMailNotificationService | typeof AwsSecretService | typeof
|
|
97
|
+
services: (typeof RedisService | typeof CacheService | typeof AwsConfigService | typeof AwsClientFactory | typeof R2ConfigService | typeof SqlService | typeof LocalPropertyService | typeof SqsService | typeof QueueService | typeof DynamoService | typeof AuditService | typeof RemoteRequestService | typeof EmithookMailService | typeof MailService | typeof ZipService | typeof MaintenanceService | typeof SesMailNotificationService | typeof AwsSecretService | typeof FcmNotificationService | typeof PdfService | typeof PlatformRegistryService | typeof S3Service | typeof ShutdownService | typeof SmsService | typeof SplitPdfService | typeof StartupService)[];
|
|
99
98
|
subscribers: (typeof BaseSubscriber | typeof DispatcherSubscriber)[];
|
|
100
99
|
};
|
|
101
100
|
export default es6Classes;
|
|
@@ -68,13 +68,12 @@ const aws_secret_service_1 = require("./services/aws.secret.service");
|
|
|
68
68
|
const cache_service_1 = require("./services/cache.service");
|
|
69
69
|
const dynamo_service_1 = require("./services/dynamo.service");
|
|
70
70
|
const emithook_mail_service_1 = require("./services/emithook.mail.service");
|
|
71
|
-
const es6_jobs_service_1 = require("./services/es6.jobs.service");
|
|
72
|
-
const es6_service_1 = require("./services/es6.service");
|
|
73
71
|
const fcm_notification_service_1 = require("./services/fcm.notification.service");
|
|
74
72
|
const local_property_service_1 = require("./services/local.property.service");
|
|
75
73
|
const mail_service_1 = require("./services/mail.service");
|
|
76
74
|
const maintenance_service_1 = require("./services/maintenance.service");
|
|
77
75
|
const pdf_service_1 = require("./services/pdf.service");
|
|
76
|
+
const platform_registry_service_1 = require("./services/platform.registry.service");
|
|
78
77
|
const queue_service_1 = require("./services/queue.service");
|
|
79
78
|
const r2_config_service_1 = require("./services/r2.config.service");
|
|
80
79
|
const redis_service_1 = require("./services/redis.service");
|
|
@@ -156,13 +155,12 @@ const es6Classes = {
|
|
|
156
155
|
cache_service_1.CacheService,
|
|
157
156
|
dynamo_service_1.DynamoService,
|
|
158
157
|
emithook_mail_service_1.EmithookMailService,
|
|
159
|
-
es6_jobs_service_1.Es6JobsService,
|
|
160
|
-
es6_service_1.Es6Service,
|
|
161
158
|
fcm_notification_service_1.FcmNotificationService,
|
|
162
159
|
local_property_service_1.LocalPropertyService,
|
|
163
160
|
mail_service_1.MailService,
|
|
164
161
|
maintenance_service_1.MaintenanceService,
|
|
165
162
|
pdf_service_1.PdfService,
|
|
163
|
+
platform_registry_service_1.PlatformRegistryService,
|
|
166
164
|
queue_service_1.QueueService,
|
|
167
165
|
r2_config_service_1.R2ConfigService,
|
|
168
166
|
redis_service_1.RedisService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/platformUtility/es6.classes.ts"],"names":[],"mappings":";;AAAA,6DAAyD;AACzD,2DAAuD;AACvD,2EAAsE;AACtE,qEAAiE;AACjE,0DAAqD;AACrD,wEAAmE;AACnE,0FAAmF;AACnF,8DAAyD;AACzD,4DAAuD;AACvD,sFAAgF;AAChF,0DAAqD;AACrD,8DAAyD;AACzD,4FAAqF;AACrF,0FAAoF;AACpF,0FAAoF;AACpF,gEAA2D;AAC3D,wDAAmD;AACnD,4EAAsE;AACtE,gFAA0E;AAC1E,gGAAyF;AACzF,wFAAiF;AACjF,oEAA8D;AAC9D,4DAAuD;AACvD,4DAAuD;AACvD,gEAA2D;AAC3D,gEAA2D;AAC3D,8EAAwE;AACxE,gFAA0E;AAC1E,oFAA8E;AAC9E,+EAA0E;AAC1E,gGAA0F;AAC1F,sEAAgE;AAChE,8FAAuF;AACvF,sFAAgF;AAChF,kEAA6D;AAC7D,4EAAsE;AACtE,8CAA0C;AAC1C,uEAAkE;AAClE,uEAAkE;AAClE,2FAAqF;AACrF,iFAA2E;AAC3E,2EAAqE;AACrE,iFAA2E;AAC3E,qEAAgE;AAChE,yEAAoE;AACpE,+EAAyE;AACzE,2FAAqF;AACrF,yEAAoE;AACpE,iFAA2E;AAC3E,mFAA6E;AAC7E,6EAAwE;AACxE,qGAA+F;AAC/F,yEAAoE;AACpE,mEAA8D;AAC9D,2EAAqE;AACrE,qEAAgE;AAChE,mEAA+D;AAC/D,+DAA2D;AAC3D,iEAA4D;AAC5D,iFAA6E;AAC7E,uDAAmD;AACnD,4DAAwD;AACxD,sEAAiE;AACjE,sEAAiE;AACjE,sEAAiE;AACjE,4DAAwD;AACxD,8DAA0D;AAC1D,4EAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/platformUtility/es6.classes.ts"],"names":[],"mappings":";;AAAA,6DAAyD;AACzD,2DAAuD;AACvD,2EAAsE;AACtE,qEAAiE;AACjE,0DAAqD;AACrD,wEAAmE;AACnE,0FAAmF;AACnF,8DAAyD;AACzD,4DAAuD;AACvD,sFAAgF;AAChF,0DAAqD;AACrD,8DAAyD;AACzD,4FA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uB;QACvB,4BAAY;QACZ,mCAAe;QACf,4BAAY;QACZ,6CAAoB;QACpB,sBAAS;QACT,0DAA0B;QAC1B,kCAAe;QACf,wBAAU;QACV,mCAAe;QACf,wBAAU;QACV,wBAAU;QACV,gCAAc;QACd,wBAAU;KACb;IACD,WAAW,EAAE,CAAC,gCAAc,EAAE,4CAAoB,CAAC;CACtD,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ArgumentsHost } from '@nestjs/common';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ArgumentsHost, ExceptionFilter } from '@nestjs/common';
|
|
2
|
+
import { HttpAdapterHost } from '@nestjs/core';
|
|
3
|
+
export declare class SentryReportingFilter implements ExceptionFilter {
|
|
4
|
+
private readonly httpAdapterHost?;
|
|
5
|
+
private static delegateClass?;
|
|
6
|
+
private delegate?;
|
|
7
|
+
constructor(httpAdapterHost?: HttpAdapterHost);
|
|
6
8
|
catch(exception: unknown, host: ArgumentsHost): void;
|
|
7
|
-
|
|
8
|
-
private replyUnknownError;
|
|
9
|
+
private static getDelegateClass;
|
|
9
10
|
}
|
|
@@ -5,59 +5,84 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
var SentryReportingFilter_1;
|
|
8
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
16
|
exports.SentryReportingFilter = void 0;
|
|
10
17
|
const common_1 = require("@nestjs/common");
|
|
18
|
+
const core_1 = require("@nestjs/core");
|
|
11
19
|
const constants_1 = require("@nestjs/core/constants");
|
|
12
|
-
const core_1 = require("@sentry/core");
|
|
13
|
-
const setup_1 = require("@sentry/nestjs/setup");
|
|
14
20
|
const sentry_context_1 = require("../libraries/sentry.context");
|
|
15
|
-
|
|
21
|
+
const sentry_sdk_1 = require("../../common/libraries/sentry.sdk");
|
|
22
|
+
let SentryReportingFilter = SentryReportingFilter_1 = class SentryReportingFilter {
|
|
23
|
+
constructor(httpAdapterHost) {
|
|
24
|
+
this.httpAdapterHost = httpAdapterHost;
|
|
25
|
+
}
|
|
16
26
|
catch(exception, host) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (sentry_context_1.SentryContext.shouldReportHttpException(exception)) {
|
|
20
|
-
(0, core_1.captureException)(exception, {
|
|
21
|
-
mechanism: {
|
|
22
|
-
handled: false,
|
|
23
|
-
type: 'auto.http.nestjs.reporting_filter',
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
super.catch(exception, host);
|
|
27
|
+
this.delegate ??= new (SentryReportingFilter_1.getDelegateClass())(this.httpAdapterHost?.httpAdapter);
|
|
28
|
+
this.delegate.catch(exception, host);
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
if (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
static getDelegateClass() {
|
|
31
|
+
if (SentryReportingFilter_1.delegateClass)
|
|
32
|
+
return SentryReportingFilter_1.delegateClass;
|
|
33
|
+
const { SentryGlobalFilter } = require('@sentry/nestjs/setup');
|
|
34
|
+
class ReportingGlobalFilter extends SentryGlobalFilter {
|
|
35
|
+
catch(exception, host) {
|
|
36
|
+
if (host.getType() === 'http') {
|
|
37
|
+
sentry_context_1.SentryContext.enrichHttpScope(host.switchToHttp().getRequest());
|
|
38
|
+
if (sentry_context_1.SentryContext.shouldReportHttpException(exception)) {
|
|
39
|
+
sentry_sdk_1.SentrySdk.captureException(exception, {
|
|
40
|
+
mechanism: {
|
|
41
|
+
handled: false,
|
|
42
|
+
type: 'auto.http.nestjs.reporting_filter',
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
super.catch(exception, host);
|
|
35
48
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
handleUnknownError(exception, host, applicationRef) {
|
|
50
|
+
if (host.getType() === 'http' && sentry_context_1.SentryContext.shouldQuietLocalErrorLog()) {
|
|
51
|
+
this.replyUnknownError(exception, host, applicationRef);
|
|
52
|
+
if (!(exception instanceof common_1.IntrinsicException)) {
|
|
53
|
+
sentry_context_1.SentryContext.logHttpExceptionSummary(exception);
|
|
54
|
+
}
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
super.handleUnknownError(exception, host, applicationRef);
|
|
58
|
+
}
|
|
59
|
+
replyUnknownError(exception, host, applicationRef) {
|
|
60
|
+
const body = this.isHttpError(exception)
|
|
61
|
+
? {
|
|
62
|
+
statusCode: exception.statusCode,
|
|
63
|
+
message: exception.message,
|
|
64
|
+
}
|
|
65
|
+
: {
|
|
66
|
+
statusCode: common_1.HttpStatus.INTERNAL_SERVER_ERROR,
|
|
67
|
+
message: constants_1.MESSAGES.UNKNOWN_EXCEPTION_MESSAGE,
|
|
68
|
+
};
|
|
69
|
+
const response = host.getArgByIndex(1);
|
|
70
|
+
if (!applicationRef.isHeadersSent(response)) {
|
|
71
|
+
applicationRef.reply(response, body, body.statusCode);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
applicationRef.end(response);
|
|
75
|
+
}
|
|
45
76
|
}
|
|
46
|
-
: {
|
|
47
|
-
statusCode: common_1.HttpStatus.INTERNAL_SERVER_ERROR,
|
|
48
|
-
message: constants_1.MESSAGES.UNKNOWN_EXCEPTION_MESSAGE,
|
|
49
|
-
};
|
|
50
|
-
const response = host.getArgByIndex(1);
|
|
51
|
-
if (!applicationRef.isHeadersSent(response)) {
|
|
52
|
-
applicationRef.reply(response, body, body.statusCode);
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
applicationRef.end(response);
|
|
56
77
|
}
|
|
78
|
+
SentryReportingFilter_1.delegateClass = ReportingGlobalFilter;
|
|
79
|
+
return ReportingGlobalFilter;
|
|
57
80
|
}
|
|
58
81
|
};
|
|
59
82
|
exports.SentryReportingFilter = SentryReportingFilter;
|
|
60
|
-
exports.SentryReportingFilter = SentryReportingFilter = __decorate([
|
|
61
|
-
(0, common_1.Catch)()
|
|
83
|
+
exports.SentryReportingFilter = SentryReportingFilter = SentryReportingFilter_1 = __decorate([
|
|
84
|
+
(0, common_1.Catch)(),
|
|
85
|
+
__param(0, (0, common_1.Optional)()),
|
|
86
|
+
__metadata("design:paramtypes", [core_1.HttpAdapterHost])
|
|
62
87
|
], SentryReportingFilter);
|
|
63
88
|
//# sourceMappingURL=sentry.reporting.filter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentry.reporting.filter.js","sourceRoot":"","sources":["../../../src/platformUtility/filters/sentry.reporting.filter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sentry.reporting.filter.js","sourceRoot":"","sources":["../../../src/platformUtility/filters/sentry.reporting.filter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAiH;AAEjH,uCAA+C;AAE/C,sDAAkD;AAElD,gEAA4D;AAC5D,kEAA8D;AAmBvD,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;IAK9B,YAAyC,eAAiC;QAAjC,oBAAe,GAAf,eAAe,CAAkB;IAAG,CAAC;IAO9E,KAAK,CAAC,SAAkB,EAAE,IAAmB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B,CAAC,SAAS,CAAC,CAAC;oBACrD,CAAC;oBAED,OAAO;gBACX,CAAC;gBAED,KAAK,CAAC,kBAAkB,CAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;YAC9D,CAAC;YAEO,iBAAiB,CAAC,SAAkB,EAAE,IAAmB,EAAE,cAAgD;gBAC/G,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC;oBACpC,CAAC,CAAC;wBACI,UAAU,EAAE,SAAS,CAAC,UAAU;wBAChC,OAAO,EAAE,SAAS,CAAC,OAAO;qBAC7B;oBACH,CAAC,CAAC;wBACI,UAAU,EAAE,mBAAU,CAAC,qBAAqB;wBAC5C,OAAO,EAAE,oBAAQ,CAAC,yBAAyB;qBAC9C,CAAC;gBAER,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;gBACvC,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC;oBAC1C,cAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;gBAC1D,CAAC;qBAAM,CAAC;oBACJ,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;gBACjC,CAAC;YACL,CAAC;SACJ;QAED,uBAAqB,CAAC,aAAa,GAAG,qBAAqB,CAAC;QAC5D,OAAO,qBAAqB,CAAC;IACjC,CAAC;CACJ,CAAA;AAtFY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,cAAK,GAAE;IAMS,WAAA,IAAA,iBAAQ,GAAE,CAAA;qCAAoC,sBAAe;GALjE,qBAAqB,CAsFjC"}
|
|
@@ -1,40 +1,7 @@
|
|
|
1
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
3
|
exports.CommonSqsPolling = void 0;
|
|
37
|
-
const
|
|
4
|
+
const sentry_sdk_1 = require("../../common/libraries/sentry.sdk");
|
|
38
5
|
const date_util_1 = require("../../common/libraries/date.util");
|
|
39
6
|
const platform_utility_1 = require("../../common/libraries/platform.utility");
|
|
40
7
|
class CommonSqsPolling {
|
|
@@ -77,7 +44,7 @@ class CommonSqsPolling {
|
|
|
77
44
|
}
|
|
78
45
|
catch (error) {
|
|
79
46
|
this.logger.error(`[unparseable] ${message?.MessageId} — dropping message`, error instanceof Error ? error.stack : String(error));
|
|
80
|
-
|
|
47
|
+
sentry_sdk_1.SentrySdk.captureException(error);
|
|
81
48
|
await this.dropMessage(message.ReceiptHandle);
|
|
82
49
|
return;
|
|
83
50
|
}
|
|
@@ -93,7 +60,7 @@ class CommonSqsPolling {
|
|
|
93
60
|
}
|
|
94
61
|
catch (error) {
|
|
95
62
|
this.logger.log(`[failure] ${message.MessageId} : ${name} `);
|
|
96
|
-
|
|
63
|
+
sentry_sdk_1.SentrySdk.captureException(error);
|
|
97
64
|
this.logger.log('failed-job', data);
|
|
98
65
|
this.logger.log('error', error);
|
|
99
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.sqs.polling.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/common.sqs.polling.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.sqs.polling.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/common.sqs.polling.ts"],"names":[],"mappings":";;;AACA,kEAA8D;AAC9D,gEAA4D;AAC5D,8EAA0E;AAU1E,MAAa,gBAAgB;IAA7B;QACY,YAAO,GAAG,CAAC,CAAC;QACZ,eAAU,GAAG,oBAAQ,CAAC,mBAAmB,EAAE,CAAC;QAC5C,UAAK,GAAG,oBAAQ,CAAC,GAAG,EAAE,CAAC;QACvB,WAAM,GAAY,KAAK,CAAC;QAGtB,gBAAW,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,EAAE,CAAC;IAyK5F,CAAC;IArJG,KAAK,CAAC,MAAM;QACR,IAAI,CAAC,YAAY,EAAE,CAAC;QACpB,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAEzB,OAAO,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;YAE5B,IAAI,MAAM,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M,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IACvE,CAAC;IASO,KAAK,CAAC,WAAW,CAAC,EAAU;QAChC,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;IAQO,KAAK,CAAC,aAAa;QACvB,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAClF,CAAC;IAQO,KAAK,CAAC,cAAc;QACxB,MAAM,IAAI,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,CAAC;IAC3D,CAAC;IAOO,iBAAiB;QACrB,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC1B,IAAI,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC;YAAE,IAAI,CAAC,WAAW,CAAC,iBAAiB,GAAG,CAAC,CAAC;IACtE,CAAC;CACJ;AAhLD,4CAgLC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { getSentryInitOptions, initSentry, isSentryHttpEnabled, isWorkerEntrypoint } from '../../config/sentry.options';
|
|
1
|
+
import { getSentryInitOptions, initSentry, isSentryHttpEnabled, isSentryWorkerEnabled, isWorkerEntrypoint } from '../../config/sentry.options';
|
|
2
2
|
export declare class SentryBootstrap {
|
|
3
3
|
static getInitOptions: typeof getSentryInitOptions;
|
|
4
4
|
static init: typeof initSentry;
|
|
5
5
|
static isHttpEnabled: typeof isSentryHttpEnabled;
|
|
6
|
+
static isWorkerEnabled: typeof isSentryWorkerEnabled;
|
|
6
7
|
static isWorkerEntrypoint: typeof isWorkerEntrypoint;
|
|
7
8
|
}
|
|
8
|
-
export { getSentryInitOptions, initSentry, isSentryHttpEnabled, isWorkerEntrypoint } from '../../config/sentry.options';
|
|
9
|
+
export { getSentryInitOptions, initSentry, isSentryHttpEnabled, isSentryWorkerEnabled, isWorkerEntrypoint } from '../../config/sentry.options';
|
|
9
10
|
export { SentryContext } from './sentry.context';
|
|
10
11
|
export { SentryReportingFilter } from '../filters/sentry.reporting.filter';
|
|
11
12
|
export { SentryUserScopeInterceptor } from '../interceptors/sentry.user.scope.interceptor';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SentryReportingModule = exports.SentryUserScopeInterceptor = exports.SentryReportingFilter = exports.SentryContext = exports.isWorkerEntrypoint = exports.isSentryHttpEnabled = exports.initSentry = exports.getSentryInitOptions = exports.SentryBootstrap = void 0;
|
|
3
|
+
exports.SentryReportingModule = exports.SentryUserScopeInterceptor = exports.SentryReportingFilter = exports.SentryContext = exports.isWorkerEntrypoint = exports.isSentryWorkerEnabled = exports.isSentryHttpEnabled = exports.initSentry = exports.getSentryInitOptions = exports.SentryBootstrap = void 0;
|
|
4
4
|
const sentry_options_1 = require("../../config/sentry.options");
|
|
5
5
|
class SentryBootstrap {
|
|
6
6
|
}
|
|
@@ -8,11 +8,13 @@ exports.SentryBootstrap = SentryBootstrap;
|
|
|
8
8
|
SentryBootstrap.getInitOptions = sentry_options_1.getSentryInitOptions;
|
|
9
9
|
SentryBootstrap.init = sentry_options_1.initSentry;
|
|
10
10
|
SentryBootstrap.isHttpEnabled = sentry_options_1.isSentryHttpEnabled;
|
|
11
|
+
SentryBootstrap.isWorkerEnabled = sentry_options_1.isSentryWorkerEnabled;
|
|
11
12
|
SentryBootstrap.isWorkerEntrypoint = sentry_options_1.isWorkerEntrypoint;
|
|
12
13
|
var sentry_options_2 = require("../../config/sentry.options");
|
|
13
14
|
Object.defineProperty(exports, "getSentryInitOptions", { enumerable: true, get: function () { return sentry_options_2.getSentryInitOptions; } });
|
|
14
15
|
Object.defineProperty(exports, "initSentry", { enumerable: true, get: function () { return sentry_options_2.initSentry; } });
|
|
15
16
|
Object.defineProperty(exports, "isSentryHttpEnabled", { enumerable: true, get: function () { return sentry_options_2.isSentryHttpEnabled; } });
|
|
17
|
+
Object.defineProperty(exports, "isSentryWorkerEnabled", { enumerable: true, get: function () { return sentry_options_2.isSentryWorkerEnabled; } });
|
|
16
18
|
Object.defineProperty(exports, "isWorkerEntrypoint", { enumerable: true, get: function () { return sentry_options_2.isWorkerEntrypoint; } });
|
|
17
19
|
var sentry_context_1 = require("./sentry.context");
|
|
18
20
|
Object.defineProperty(exports, "SentryContext", { enumerable: true, get: function () { return sentry_context_1.SentryContext; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentry.bootstrap.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/sentry.bootstrap.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"sentry.bootstrap.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/sentry.bootstrap.ts"],"names":[],"mappings":";;;AAAA,gEAA+I;AAM/I,MAAa,eAAe;;AAA5B,0CAMC;AALU,8BAAc,GAAG,qCAAoB,CAAC;AACtC,oBAAI,GAAG,2BAAU,CAAC;AAClB,6BAAa,GAAG,oCAAmB,CAAC;AACpC,+BAAe,GAAG,sCAAqB,CAAC;AACxC,kCAAkB,GAAG,mCAAkB,CAAC;AAGnD,8DAA+I;AAAtI,sHAAA,oBAAoB,OAAA;AAAE,4GAAA,UAAU,OAAA;AAAE,qHAAA,mBAAmB,OAAA;AAAE,uHAAA,qBAAqB,OAAA;AAAE,oHAAA,kBAAkB,OAAA;AACzG,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,8EAA2E;AAAlE,gIAAA,qBAAqB,OAAA;AAC9B,+FAA2F;AAAlF,2IAAA,0BAA0B,OAAA;AACnC,sEAAmE;AAA1D,gIAAA,qBAAqB,OAAA"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SentryContext = void 0;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
|
-
const core_1 = require("@sentry/core");
|
|
6
5
|
const auth_1 = require("../../common/libraries/auth");
|
|
7
6
|
const log_redactor_1 = require("../../common/libraries/log.redactor");
|
|
7
|
+
const sentry_sdk_1 = require("../../common/libraries/sentry.sdk");
|
|
8
8
|
class SentryContext {
|
|
9
9
|
static shouldReportHttpException(exception) {
|
|
10
10
|
if (!(exception instanceof common_1.HttpException))
|
|
@@ -24,7 +24,9 @@ class SentryContext {
|
|
|
24
24
|
common_1.Logger.error(`HTTP 500: ${message} (reported to Sentry)`, undefined, 'ExceptionsHandler');
|
|
25
25
|
}
|
|
26
26
|
static enrichHttpScope(req) {
|
|
27
|
-
const scope =
|
|
27
|
+
const scope = sentry_sdk_1.SentrySdk.getIsolationScope();
|
|
28
|
+
if (!scope)
|
|
29
|
+
return;
|
|
28
30
|
scope.setSDKProcessingMetadata({ request: this.safeRequest(req) });
|
|
29
31
|
const user = auth_1.Auth.user();
|
|
30
32
|
if (user)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentry.context.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/sentry.context.ts"],"names":[],"mappings":";;;AAAA,2CAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"sentry.context.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/sentry.context.ts"],"names":[],"mappings":";;;AAAA,2CAAuD;AACvD,sDAAmD;AACnD,sEAAkE;AAClE,kEAA8D;AAS9D,MAAa,aAAa;IACtB,MAAM,CAAC,yBAAyB,CAAC,SAAkB;QAC/C,IAAI,CAAC,CAAC,SAAS,YAAY,sBAAa,CAAC;YAAE,OAAO,KAAK,CAAC;QAExD,OAAO,SAAS,CAAC,SAAS,EAAE,IAAI,GAAG,CAAC;IACxC,CAAC;IAOD,MAAM,CAAC,wBAAwB;QAC3B,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,KAAK,MAAM;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AG,EAAE,GAAG;YACjC,OAAO,EAAE,0BAAW,CAAC,aAAa,CAAC,GAAG,EAAE,OAAO,CAAC;YAChD,MAAM,EAAE,GAAG,EAAE,MAAM;YACnB,KAAK,EAAE,GAAG,EAAE,KAAK;SACpB,CAAC;IACN,CAAC;CACJ;AAtDD,sCAsDC"}
|
|
@@ -13,6 +13,7 @@ exports.PlatformUtilityModule = void 0;
|
|
|
13
13
|
const ioredis_1 = require("@nestjs-modules/ioredis");
|
|
14
14
|
const bullmq_1 = require("@nestjs/bullmq");
|
|
15
15
|
const common_1 = require("@nestjs/common");
|
|
16
|
+
const core_1 = require("@nestjs/core");
|
|
16
17
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
17
18
|
require("dotenv/config");
|
|
18
19
|
const auth_module_1 = require("../auth/auth.module");
|
|
@@ -30,6 +31,7 @@ exports.PlatformUtilityModule = PlatformUtilityModule = __decorate([
|
|
|
30
31
|
(0, common_1.Module)({
|
|
31
32
|
imports: [
|
|
32
33
|
typeorm_1.TypeOrmModule.forFeature(es6_classes_1.default.entities),
|
|
34
|
+
core_1.DiscoveryModule,
|
|
33
35
|
bullmq_1.BullModule.registerQueue({ name }),
|
|
34
36
|
ioredis_1.RedisModule.forRoot({ type: 'single', ...redisConfig }),
|
|
35
37
|
(0, common_1.forwardRef)(() => auth_module_1.AuthModule),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.utility.module.js","sourceRoot":"","sources":["../../src/platformUtility/platform.utility.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsD;AACtD,2CAA4C;AAC5C,2CAAoD;AACpD,6CAAgD;AAChD,yBAAuB;AACvB,qDAAiD;AACjD,2DAAuD;AACvD,gEAAuC;AACvC,sDAAuD;AAEvD,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;AAEzC,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AAC7C,IAAI,MA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CAAC,IAAI,CAAC;KACxD,CAAC;GACW,qBAAqB,CAAG"}
|