@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,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
|
};
|
|
@@ -45,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
45
12
|
exports.DispatcherSubscriber = void 0;
|
|
46
13
|
const common_1 = require("@nestjs/common");
|
|
47
14
|
const core_1 = require("@nestjs/core");
|
|
48
|
-
const
|
|
15
|
+
const sentry_sdk_1 = require("../../common/libraries/sentry.sdk");
|
|
49
16
|
const typeorm_1 = require("typeorm");
|
|
50
17
|
const common_subscriber_1 = require("../../common/libraries/common.subscriber");
|
|
51
18
|
const subscriber_registry_1 = require("../../common/libraries/subscriber.registry");
|
|
@@ -84,7 +51,7 @@ let DispatcherSubscriber = class DispatcherSubscriber extends common_subscriber_
|
|
|
84
51
|
const message = `DispatcherSubscriber: ${jobClass.name} (@SubscribeFor ${entityClass.name}) defines ${hooks.join(' / ')}, ` +
|
|
85
52
|
`which is no longer invoked on jobs. Move pre-persist logic to a standalone CommonSubscriber.`;
|
|
86
53
|
global.console.error(message);
|
|
87
|
-
|
|
54
|
+
sentry_sdk_1.SentrySdk.captureMessage(message, { level: 'error', tags: { component: 'DispatcherSubscriber', job: jobClass.name } });
|
|
88
55
|
}
|
|
89
56
|
async afterInsert(evt) {
|
|
90
57
|
return this.routeDispatch(evt);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatcher.subscriber.js","sourceRoot":"","sources":["../../../src/platformUtility/subscribers/dispatcher.subscriber.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dispatcher.subscriber.js","sourceRoot":"","sources":["../../../src/platformUtility/subscribers/dispatcher.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA0D;AAC1D,uCAAyC;AACzC,kEAA8D;AAC9D,qCAAgF;AAChF,gFAA4E;AAC5E,oFAAgF;AA4BzE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oCAAqB;IAS3D,YACqB,UAAsB,EACtB,SAAoB;QAErC,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,cAAS,GAAT,SAAS,CAAW;QAVxB,SAAI,GAAG,IAAI,GAAG,EAAkC,CAAC;QAGjD,iBAAY,GAAG,IAAI,GAAG,EAA8B,CAAC;QAG9D,gBAAW,GAAG,KAAK,CAAC;QAOxB,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,YAAY;QACd,KA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G,CAAC,CAAC;QACzB,CAAC;QAED,MAAM,IAAI,GAAsB,EAAE,CAAC;QACnC,KAAK,MAAM,GAAG,IAAI,OAAO,EAAE,CAAC;YACxB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAkB,CAAC,IAAI,EAAE,EAAE,CAAC;gBACxD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;oBAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC5C,CAAC;QACL,CAAC;QAED,IAAI,IAAI,CAAC,WAAW;YAAE,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC1D,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ,CAAA;AA1HY,oDAAoB;+BAApB,oBAAoB;IAFhC,IAAA,mBAAU,GAAE;IACZ,IAAA,yBAAe,GAAE;qCAWmB,oBAAU;QACX,gBAAS;GAXhC,oBAAoB,CA0HhC"}
|
|
@@ -2,6 +2,10 @@ import { PermissionEntity } from './entities/permission.entity';
|
|
|
2
2
|
import { UserPermissionEntity } from './entities/user.permission.entity';
|
|
3
3
|
import { UserRoleEntity } from './entities/user.role.entity';
|
|
4
4
|
declare const es6Classes: {
|
|
5
|
+
controllers: any[];
|
|
5
6
|
entities: (typeof PermissionEntity | typeof UserPermissionEntity | typeof UserRoleEntity)[];
|
|
7
|
+
jobs: any[];
|
|
8
|
+
services: any[];
|
|
9
|
+
subscribers: any[];
|
|
6
10
|
};
|
|
7
11
|
export default es6Classes;
|
|
@@ -5,7 +5,11 @@ const role_entity_1 = require("./entities/role.entity");
|
|
|
5
5
|
const user_permission_entity_1 = require("./entities/user.permission.entity");
|
|
6
6
|
const user_role_entity_1 = require("./entities/user.role.entity");
|
|
7
7
|
const es6Classes = {
|
|
8
|
+
controllers: [],
|
|
8
9
|
entities: [permission_entity_1.PermissionEntity, role_entity_1.RoleEntity, user_permission_entity_1.UserPermissionEntity, user_role_entity_1.UserRoleEntity],
|
|
10
|
+
jobs: [],
|
|
11
|
+
services: [],
|
|
12
|
+
subscribers: [],
|
|
9
13
|
};
|
|
10
14
|
exports.default = es6Classes;
|
|
11
15
|
//# sourceMappingURL=es6.classes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/security/es6.classes.ts"],"names":[],"mappings":";;AAAA,oEAAgE;AAChE,wDAAoD;AACpD,8EAAyE;AACzE,kEAA6D;AAE7D,MAAM,UAAU,GAAG;IACf,QAAQ,EAAE,CAAC,oCAAgB,EAAE,wBAAU,EAAE,6CAAoB,EAAE,iCAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/security/es6.classes.ts"],"names":[],"mappings":";;AAAA,oEAAgE;AAChE,wDAAoD;AACpD,8EAAyE;AACzE,kEAA6D;AAE7D,MAAM,UAAU,GAAG;IACf,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,CAAC,oCAAgB,EAAE,wBAAU,EAAE,6CAAoB,EAAE,iCAAc,CAAC;IAC9E,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,EAAE;IACZ,WAAW,EAAE,EAAE;CAClB,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
|
@@ -8,13 +8,13 @@ import { UploadController } from './controllers/upload.controller';
|
|
|
8
8
|
import { UserPreferenceController } from './controllers/user.preference.controller';
|
|
9
9
|
import { AddCommentDto } from './dtos/add.comment.dto';
|
|
10
10
|
import { AddDirectMenuDto } from './dtos/add.direct.menu.dto';
|
|
11
|
-
import { ClientCredentialAttributesDto } from './dtos/client.credential.attributes.dto';
|
|
12
11
|
import { ClientCredentialDto } from './dtos/client.credential.dto';
|
|
13
12
|
import { ExecutableScriptPayloadDto } from './dtos/executable.script.payload.dto';
|
|
14
13
|
import { FileUploadDto } from './dtos/file.upload.dto';
|
|
15
14
|
import { FileUploadSpecDto } from './dtos/file.upload.spec.dto';
|
|
16
15
|
import { JobRecordParamDto } from './dtos/job.record.param.dto';
|
|
17
16
|
import { LocalFileS3UploadDto } from './dtos/local.file.s3.upload.dto';
|
|
17
|
+
import { MailRecipientAttributesDto } from './dtos/mail.recipient.attributes.dto';
|
|
18
18
|
import { MailValidationDto } from './dtos/mail.validation.dto';
|
|
19
19
|
import { MobileValidationDto } from './dtos/mobile.validation.dto';
|
|
20
20
|
import { ModelAllowedColumnDto } from './dtos/model.allowed.column.dto';
|
|
@@ -143,7 +143,6 @@ import { CloudflareR2Service } from './services/cloudflare.r2.service';
|
|
|
143
143
|
import { ColumnService } from './services/column.service';
|
|
144
144
|
import { CommentService } from './services/comment.service';
|
|
145
145
|
import { DocumentService } from './services/document.service';
|
|
146
|
-
import { Es6JobsService } from './services/es6.jobs.service';
|
|
147
146
|
import { EventDetailService } from './services/event.detail.service';
|
|
148
147
|
import { EventQueueService } from './services/event.queue.service';
|
|
149
148
|
import { ExecutableScriptService } from './services/executable.script.service';
|
|
@@ -184,13 +183,13 @@ declare const es6Classes: {
|
|
|
184
183
|
COPY: number;
|
|
185
184
|
})[];
|
|
186
185
|
controllers: (typeof BaseController | typeof DataController | typeof FormController | typeof MenuController | typeof PreferenceController | typeof ReportController | typeof UploadController | typeof UserPreferenceController)[];
|
|
187
|
-
dtos: (typeof FileUploadSpecDto | typeof StorageUploadOptionsDto | typeof LocalFileS3UploadDto | typeof S3ObjectInfoDto | typeof
|
|
188
|
-
entities: (typeof
|
|
186
|
+
dtos: (typeof FileUploadSpecDto | typeof StorageUploadOptionsDto | typeof LocalFileS3UploadDto | typeof S3ObjectInfoDto | typeof MailRecipientAttributesDto | typeof AddDirectMenuDto | typeof ModelFormPreferenceCreationDto | typeof UserPreferenceCreationDto | typeof FileUploadDto | typeof AddCommentDto | typeof ClientCredentialDto | typeof ExecutableScriptPayloadDto | typeof JobRecordParamDto | typeof MailValidationDto | typeof MobileValidationDto | typeof ModelAllowedColumnDto | typeof OtpGenerationDto | typeof ValidationOptionsDto)[];
|
|
187
|
+
entities: (typeof ColumnDefinitionEntity | typeof BusinessRuleRoleEntity | typeof BusinessRuleEntity | typeof LookupTypeEntity | typeof SystemScriptEntity | typeof ModelEntity | typeof FormPreferenceEntity | typeof ModelColumnEntity | typeof ColumnEntity | typeof RelationshipEntity | typeof ModelRelationshipEntity | typeof ModelRoleEntity | typeof FormColumnEntity | typeof UiActionPermissionEntity | typeof UiActionEntity | typeof UiActionRoleEntity | typeof DynamoTableEntity | typeof MailLogEntity | typeof MailRecipientEntity | typeof CodeFixScriptEntity | typeof CodeFixLogEntity | typeof ServiceEntity | typeof SecurityRuleEntity | typeof EventDetailEntity | typeof EventQueueEntity | typeof ScheduledEventEntity | typeof PrimaryAxisEntity | typeof ChartEntity | typeof UserGroupRoleEntity | typeof UserGroupEntity | typeof UserGroupMemberEntity | typeof ReportColumnEntity | typeof ReportEntity | typeof ReportFilterEntity | typeof ReportRelationshipEntity | typeof ReportRoleEntity | typeof ClientScriptEntity | typeof MenuRoleEntity | typeof MenuEntity | typeof ModuleEntity | typeof ModuleMenuEntity | typeof PageDefinitionEntity | typeof ParentMenuEntity | typeof UserPreferenceEntity | typeof ClientEntity | typeof ClientCredentialEntity | typeof CredentialIpEntity | typeof DocumentEntity | typeof CommentEntity | typeof DataLogEntity | typeof MailEventEntity | typeof MailValidationEntity | typeof MaterialViewEntity | typeof MobileValidationEntity | typeof OpenPropertyEntity | typeof RecurringQueryEntity | typeof ReportSheetEntity | typeof SmsTemplateEntity | typeof SmsMessageEntity | typeof UserGroupPermissionEntity | typeof WhatsappTemplateEntity)[];
|
|
189
188
|
interfaces: any[];
|
|
190
189
|
jobs: (typeof ExecuteCodeFixJob | typeof SetScheduledEventJob | typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof SyncAllCodeJob | typeof ClientCredentialJob | typeof SetCodefixScriptEventJob | typeof CodeFixScriptJob | typeof ColumnMapperJob | typeof CommentJob | typeof CredentialIpJob | typeof DocumentJob | typeof ExecuteMaterialViewJob | typeof ExecuteRecurringQueryJob | typeof RefreshMaterialViewJob | typeof MaterialViewJob | typeof OrphanSweeperJob | typeof RefreshPropertyCacheJob | typeof PropertyJob | typeof SetRecurringQueryEventJob | typeof RecurringQueryJob | typeof RelationshipMapperJob | typeof ScheduledEventJob | typeof SetEventQueueJob | typeof SqsPollingJob | typeof UserGroupMemberJob | typeof UserGroupPermissionJob | typeof UserGroupRoleJob)[];
|
|
191
190
|
libraries: (typeof FileTypeDetector | typeof CommonStorageService | typeof SandboxedScriptExecutor | typeof SecurityRuleEvaluator | typeof ColumnManager | typeof ScriptFnHelpers | typeof ExecuteCodeFix | typeof ModelSync | typeof BusinessRuleFilterValidator | typeof BusinessRuleQueryEvaluator | typeof ProcessMenuCreation | typeof MaterialViewFreshness | typeof CodeEvaluator | typeof CryptReEncryptProcessor | typeof GetReportQuery | typeof ReportBatchPaginator | typeof GenerateDownloadableReportFile | typeof ProcessScriptExecution | typeof SyncDynamoTables)[];
|
|
192
191
|
modifiers: (typeof MenuListModifier | typeof ModuleListModifier)[];
|
|
193
|
-
services: (typeof PropertyService | typeof AwsS3Service | typeof CloudflareR2Service | typeof StorageService | typeof UploadService | typeof SecurityRuleService | typeof UiActionService | typeof ModelService | typeof BaseService | typeof ScheduledEventService | typeof EventDetailService | typeof ClientScriptService | typeof PreferenceService | typeof BusinessRuleService | typeof ListService | typeof FormService | typeof MenuService | typeof UserPreferenceService | typeof ReportService | typeof ClientCredentialService | typeof EventQueueService | typeof ColumnService | typeof DocumentService | typeof CommentService | typeof
|
|
192
|
+
services: (typeof PropertyService | typeof AwsS3Service | typeof CloudflareR2Service | typeof StorageService | typeof UploadService | typeof SecurityRuleService | typeof UiActionService | typeof ModelService | typeof BaseService | typeof ScheduledEventService | typeof EventDetailService | typeof ClientScriptService | typeof PreferenceService | typeof BusinessRuleService | typeof ListService | typeof FormService | typeof MenuService | typeof UserPreferenceService | typeof ReportService | typeof ClientCredentialService | typeof EventQueueService | typeof ColumnService | typeof DocumentService | typeof CommentService | typeof ExecutableScriptService | typeof InternalServerConnectService | typeof MailValidationService | typeof MobileValidationService)[];
|
|
194
193
|
subscribers: (typeof ClientCredentialSubscriber | typeof CodeFixScriptSubscriber | typeof MaterialViewSubscriber | typeof PropertySubscriber | typeof RecurringQuerySubscriber | typeof ScheduledEventSubscriber)[];
|
|
195
194
|
};
|
|
196
195
|
export default es6Classes;
|
|
@@ -174,7 +174,6 @@ const cloudflare_r2_service_1 = require("./services/cloudflare.r2.service");
|
|
|
174
174
|
const column_service_1 = require("./services/column.service");
|
|
175
175
|
const comment_service_1 = require("./services/comment.service");
|
|
176
176
|
const document_service_1 = require("./services/document.service");
|
|
177
|
-
const es6_jobs_service_1 = require("./services/es6.jobs.service");
|
|
178
177
|
const event_detail_service_1 = require("./services/event.detail.service");
|
|
179
178
|
const event_queue_service_1 = require("./services/event.queue.service");
|
|
180
179
|
const executable_script_service_1 = require("./services/executable.script.service");
|
|
@@ -384,7 +383,6 @@ const es6Classes = {
|
|
|
384
383
|
column_service_1.ColumnService,
|
|
385
384
|
comment_service_1.CommentService,
|
|
386
385
|
document_service_1.DocumentService,
|
|
387
|
-
es6_jobs_service_1.Es6JobsService,
|
|
388
386
|
event_detail_service_1.EventDetailService,
|
|
389
387
|
event_queue_service_1.EventQueueService,
|
|
390
388
|
executable_script_service_1.ExecutableScriptService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/system/es6.classes.ts"],"names":[],"mappings":";;AAAA,qEAAiE;AACjE,yEAAoE;AACpE,qEAAgE;AAChE,mEAA+D;AAC/D,mEAA+D;AAC/D,mEAA+D;AAC/D,mEAA+D;AAC/D,+EAA2E;AAC3E,uEAAmE;AACnE,uEAAmE;AACnE,yFAAoF;AACpF,4DAAuD;AACvD,oEAA8D;AAC9D,wEAAmE;AACnE,8FAAwF;AACxF,wEAAmE;AACnE,oFAA6E;AAC7E,0FAAmF;AACnF,0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;AACvE,0EAAqE;AACrE,8DAA0D;AAC1D,sEAAiE;AACjE,wEAAmE;AACnE,0EAAqE;AACrE,kEAA6D;AAC7D,wFAAkF;AAClF,4EAAsE;AACtE,oEAA+D;AAC/D,kFAA4E;AAC5E,0FAAoF;AACpF,8EAAwE;AACxE,8EAAyE;AACzE,kFAA6E;AAC7E,wEAAmE;AACnE,oEAA8D;AAC9D,gEAA2D;AAC3D,oDAAgD;AAChD,gEAA2D;AAC3D,sDAAkD;AAClD,sEAAgE;AAChE,gFAA0E;AAC1E,oFAA8E;AAC9E,gEAA2D;AAC3D,gEAA2D;AAC3D,kEAA6D;AAC7D,sDAAkD;AAClD,oEAA+D;AAC/D,gFAA0E;AAC1E,kFAA4E;AAC5E,4EAAuE;AACvE,0EAAoE;AACpE,oEAA+D;AAC/D,sFAA+E;AAC/E,oEAA8D;AAC9D,wFAAiF;AACjF,4EAAsE;AACtE,4DAAuD;AACvD,gEAA0D;AAC1D,wEAAkE;AAClE,gFAA0E;AAC1E,oEAA8D;AAC9D,+FAAyF;AACzF,6FAAuF;AACvF,+DAA2D;AAC3D,+DAA2D;AAC3D,+EAA0E;AAC1E,uFAAiF;AACjF,mEAA8D;AAC9D,uEAAkE;AAClE,qGAA+F;AAC/F,mEAA8D;AAC9D,iFAA4E;AAC5E,uDAAmD;AACnD,6EAAwE;AACxE,mFAA8E;AAC9E,+EAA0E;AAC1E,qFAAgF;AAChF,qEAAgE;AAChE,iFAA4E;AAC5E,uEAAkE;AAClE,uEAAkE;AAClE,2EAAsE;AACtE,8DAAyD;AACzD,0DAAsD;AACtD,4EAAuE;AACvE,oFAA+E;AAC/E,4EAAuE;AACvE,4EAAuE;AACvE,8DAA0D;AAC1D,gEAA4D;AAC5D,kEAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/system/es6.classes.ts"],"names":[],"mappings":";;AAAA,qEAAiE;AACjE,yEAAoE;AACpE,qEAAgE;AAChE,mEAA+D;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AmB;QACnB,uCAAiB;QACjB,uDAAwB;QACxB,sCAAgB;QAChB,yDAAyB;QACzB,8CAAoB;QACpB,+BAAa;QACb,kCAAc;QACd,0CAAkB;QAClB,kDAAsB;QACtB,sCAAgB;KACnB;IACD,SAAS,EAAE;QACP,4DAA2B;QAC3B,0DAA0B;QAC1B,8BAAa;QACb,8BAAa;QACb,6CAAoB;QACpB,oDAAuB;QACvB,iCAAc;QACd,qCAAgB;QAChB,kEAA8B;QAC9B,iCAAc;QACd,+CAAqB;QACrB,sBAAS;QACT,2CAAmB;QACnB,iDAAsB;QACtB,6CAAoB;QACpB,mDAAuB;QACvB,mCAAe;QACf,+CAAqB;QACrB,qCAAgB;KACnB;IACD,SAAS,EAAE,CAAC,qCAAgB,EAAE,yCAAkB,CAAC;IACjD,QAAQ,EAAE;QACN,6BAAY;QACZ,0BAAW;QACX,2CAAmB;QACnB,mDAAuB;QACvB,2CAAmB;QACnB,2CAAmB;QACnB,8BAAa;QACb,gCAAc;QACd,kCAAe;QACf,yCAAkB;QAClB,uCAAiB;QACjB,mDAAuB;QACvB,0BAAW;QACX,8DAA4B;QAC5B,0BAAW;QACX,+CAAqB;QACrB,0BAAW;QACX,mDAAuB;QACvB,4BAAY;QACZ,sCAAiB;QACjB,kCAAe;QACf,8BAAa;QACb,+CAAqB;QACrB,2CAAmB;QACnB,gCAAc;QACd,mCAAe;QACf,8BAAa;QACb,+CAAqB;KACxB;IACD,WAAW,EAAE;QACT,yDAA0B;QAC1B,oDAAuB;QACvB,iDAAsB;QACtB,wCAAkB;QAClB,qDAAwB;QACxB,qDAAwB;KAC3B;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
|
@@ -11,6 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ClientCredentialJob = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
|
+
const when_column_updated_decorator_1 = require("../../common/decorators/when.column.updated.decorator");
|
|
15
|
+
const when_new_record_decorator_1 = require("../../common/decorators/when.new.record.decorator");
|
|
16
|
+
const database_event_dto_1 = require("../../common/dtos/database.event.dto");
|
|
14
17
|
const common_job_1 = require("../../common/libraries/common.job");
|
|
15
18
|
const subscriber_registry_1 = require("../../common/libraries/subscriber.registry");
|
|
16
19
|
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
|
@@ -27,17 +30,25 @@ let ClientCredentialJob = class ClientCredentialJob extends common_job_1.CommonJ
|
|
|
27
30
|
await this.setKey(evt);
|
|
28
31
|
}
|
|
29
32
|
async refreshCacheKey(evt) {
|
|
30
|
-
if (!this.isColumnUpdated(evt, ['active', 'deleted_at']))
|
|
31
|
-
return;
|
|
32
33
|
await this.clientCredentialService.setCredentialCache(evt.entity.identifier);
|
|
33
34
|
}
|
|
34
35
|
async setKey(evt) {
|
|
35
|
-
if (!this.isNewRecord(evt))
|
|
36
|
-
return;
|
|
37
36
|
await this.clientCredentialService.setCredentialCache(evt.entity.identifier);
|
|
38
37
|
}
|
|
39
38
|
};
|
|
40
39
|
exports.ClientCredentialJob = ClientCredentialJob;
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, when_column_updated_decorator_1.WhenColumnUpdated)(['active', 'deleted_at']),
|
|
42
|
+
__metadata("design:type", Function),
|
|
43
|
+
__metadata("design:paramtypes", [database_event_dto_1.DatabaseEventDto]),
|
|
44
|
+
__metadata("design:returntype", Promise)
|
|
45
|
+
], ClientCredentialJob.prototype, "refreshCacheKey", null);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, when_new_record_decorator_1.WhenNewRecord)(),
|
|
48
|
+
__metadata("design:type", Function),
|
|
49
|
+
__metadata("design:paramtypes", [database_event_dto_1.DatabaseEventDto]),
|
|
50
|
+
__metadata("design:returntype", Promise)
|
|
51
|
+
], ClientCredentialJob.prototype, "setKey", null);
|
|
41
52
|
exports.ClientCredentialJob = ClientCredentialJob = __decorate([
|
|
42
53
|
(0, common_1.Injectable)(),
|
|
43
54
|
(0, subscriber_registry_1.SubscribeFor)(client_credential_entity_1.ClientCredentialEntity),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.credential.job.js","sourceRoot":"","sources":["../../../src/system/jobs/client.credential.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;
|
|
1
|
+
{"version":3,"file":"client.credential.job.js","sourceRoot":"","sources":["../../../src/system/jobs/client.credential.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yGAA0F;AAC1F,iGAAkF;AAClF,6EAAwE;AACxE,kEAA8D;AAC9D,oFAA0E;AAC1E,gFAA4E;AAC5E,mFAA8E;AAC9E,qFAAgF;AAIzE,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,sBAAS;IAC9C,YACuB,YAA0B,EAC5B,uBAAgD;QAEjE,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAHvB,iBAAY,GAAZ,YAAY,CAAc;QAC5B,4BAAuB,GAAvB,uBAAuB,CAAyB;IAGrE,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,GAA6C;QACtD,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;QAChC,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;IAQK,AAAN,KAAK,CAAC,eAAe,CAAC,GAA6C;QAC/D,MAAM,IAAI,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACjF,CAAC;IAQK,AAAN,KAAK,CAAC,MAAM,CAAC,GAA6C;QACtD,MAAM,IAAI,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACjF,CAAC;CACJ,CAAA;AAhCY,kDAAmB;AAmBtB;IADL,IAAA,iDAAiB,EAAC,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;;qCACjB,qCAAgB;;0DAE1C;AAQK;IADL,IAAA,yCAAa,GAAE;;qCACE,qCAAgB;;iDAEjC;8BA/BQ,mBAAmB;IAF/B,IAAA,mBAAU,GAAE;IACZ,IAAA,kCAAY,EAAC,iDAAsB,CAAC;qCAGI,4BAAY;QACH,mDAAuB;GAH5D,mBAAmB,CAgC/B"}
|
|
@@ -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.BusinessRuleQueryEvaluator = void 0;
|
|
37
|
-
const
|
|
4
|
+
const sentry_sdk_1 = require("../../common/libraries/sentry.sdk");
|
|
38
5
|
const auth_1 = require("../../common/libraries/auth");
|
|
39
6
|
const system_script_entity_1 = require("../entities/system.script.entity");
|
|
40
7
|
const sandboxed_script_executor_1 = require("./sandboxed.script.executor");
|
|
@@ -63,7 +30,7 @@ class BusinessRuleQueryEvaluator {
|
|
|
63
30
|
}),
|
|
64
31
|
});
|
|
65
32
|
if (!result.ok) {
|
|
66
|
-
|
|
33
|
+
sentry_sdk_1.SentrySdk.captureException(new Error(result.error), {
|
|
67
34
|
level: 'error',
|
|
68
35
|
tags: { service: 'BusinessRuleQueryEvaluator' },
|
|
69
36
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business.rule.query.evaluator.js","sourceRoot":"","sources":["../../../src/system/libraries/business.rule.query.evaluator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"business.rule.query.evaluator.js","sourceRoot":"","sources":["../../../src/system/libraries/business.rule.query.evaluator.ts"],"names":[],"mappings":";;;AAAA,kEAA8D;AAC9D,sDAAmD;AACnD,2EAAsE;AAGtE,2EAAsE;AACtE,2DAAsD;AAQtD,MAAa,0BAA0B;IAQnC,YACqB,IAAwB,EACxB,aAA0B;QAD1B,SAAI,GAAJ,IAAI,CAAoB;QACxB,kBAAa,GAAb,aAAa,CAAa;QAT9B,aAAQ,GAAG,IAAI,mDAAuB,EAAE,CAAC;IAUvD,CAAC;IAMJ,KAAK,CAAC,OAAO;QACT,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAEzD,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-
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
|
};
|
|
@@ -45,7 +12,7 @@ var EventQueueService_1;
|
|
|
45
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
13
|
exports.EventQueueService = void 0;
|
|
47
14
|
const common_1 = require("@nestjs/common");
|
|
48
|
-
const
|
|
15
|
+
const sentry_sdk_1 = require("../../common/libraries/sentry.sdk");
|
|
49
16
|
const typeorm_1 = require("typeorm");
|
|
50
17
|
const operation_exception_1 = require("../../common/exceptions/operation.exception");
|
|
51
18
|
const date_util_1 = require("../../common/libraries/date.util");
|
|
@@ -150,7 +117,7 @@ let EventQueueService = EventQueueService_1 = class EventQueueService {
|
|
|
150
117
|
const identifier = event.event?.identifier ?? 'unknown';
|
|
151
118
|
const message = error instanceof Error ? error.message : String(error);
|
|
152
119
|
global.console.error(`event-trigger-failed (event_id=${event.id}, identifier=${identifier}): ${message}`);
|
|
153
|
-
|
|
120
|
+
sentry_sdk_1.SentrySdk.captureException(error, {
|
|
154
121
|
level: 'error',
|
|
155
122
|
tags: { service: 'EventQueueService' },
|
|
156
123
|
extra: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.queue.service.js","sourceRoot":"","sources":["../../../src/system/services/event.queue.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"event.queue.service.js","sourceRoot":"","sources":["../../../src/system/services/event.queue.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,kEAA8D;AAC9D,qCAA6B;AAC7B,qFAAiF;AACjF,gEAA4D;AAC5D,gFAA4E;AAC5E,4EAAwE;AACxE,yE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AAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;QAErC,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,MAAM;YAAE,OAAO,OAAO,CAAC;QAEtD,OAAO,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC7C,CAAC;IASO,iBAAiB,CAAC,KAAa;QACnC,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAC/B,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC;YAAE,OAAO,CAAC,KAAK,CAAC;QAElC,MAAM,GAAG,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;QAEhC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAClC,IAAI,GAAG,KAAK,MAAM;gBAAE,OAAO,IAAI,CAAC;YAChC,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;;AA3QQ,8CAAiB;AAKF,kCAAgB,GAAG,EAAE,AAAL,CAAM;4BALrC,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAc0B,4BAAY;QACd,wBAAU;GAdlC,iBAAiB,CA4Q7B"}
|
package/docs/sentry-reporting.md
CHANGED
|
@@ -8,7 +8,8 @@ package's security defaults:
|
|
|
8
8
|
- `includeLocalVariables: false`, `sendDefaultPii: false`
|
|
9
9
|
- Redacted request context and auth user (`id` + `email` only)
|
|
10
10
|
- HTTP **5xx** reporting (4xx `HttpException` values stay out of Sentry)
|
|
11
|
-
- **No reporting from queue worker processes** (`worker.ts` entrypoint)
|
|
11
|
+
- **No reporting from queue worker processes** (`worker.ts` entrypoint) unless opted in
|
|
12
|
+
with `SENTRY_ENABLE_WORKER=true` (see §5)
|
|
12
13
|
- Quiet one-line **ERROR** logs in local/dev (full stacks still go to Sentry)
|
|
13
14
|
|
|
14
15
|
Peer dependencies `@sentry/nestjs`, `@sentry/node`, and `@sentry/core` are bundled
|
|
@@ -25,9 +26,10 @@ directly.
|
|
|
25
26
|
| `HTTP_EXCEPTION_VERBOSE_LOG=true` | Optional | Force full local stack traces even in local/dev. |
|
|
26
27
|
| `HTTP_EXCEPTION_QUIET_LOG=true` | Optional | Force quiet logs in any environment. |
|
|
27
28
|
| `SENTRY_DEBUG=true` | Optional | SDK transport debug lines in the terminal. |
|
|
29
|
+
| `SENTRY_ENABLE_WORKER=true` | Optional | Opt a queue worker (`worker.ts` / `dist/worker.js`) in to Sentry. Only the exact value `true` counts. Has no effect on the API process. |
|
|
28
30
|
|
|
29
31
|
Workers may share the same `.env` file. Sentry stays off when the process is started
|
|
30
|
-
via `worker.ts` / `dist/worker.js
|
|
32
|
+
via `worker.ts` / `dist/worker.js` unless that process also has `SENTRY_ENABLE_WORKER=true`.
|
|
31
33
|
|
|
32
34
|
## 2. Early init (`instrument.ts`)
|
|
33
35
|
|
|
@@ -55,8 +57,9 @@ async function bootstrap() {
|
|
|
55
57
|
bootstrap();
|
|
56
58
|
```
|
|
57
59
|
|
|
58
|
-
|
|
59
|
-
`
|
|
60
|
+
Import `./instrument` as the first line of `worker.ts` too. `initSentry()` is a
|
|
61
|
+
no-op on the worker entrypoint unless `SENTRY_ENABLE_WORKER=true`, so importing it
|
|
62
|
+
is safe either way and lets each deployment decide through env alone.
|
|
60
63
|
|
|
61
64
|
## 3. Nest module wiring
|
|
62
65
|
|
|
@@ -98,14 +101,16 @@ any custom exception filters, or compose filters explicitly so Sentry still runs
|
|
|
98
101
|
|
|
99
102
|
## 4. Manual `captureException`
|
|
100
103
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
`
|
|
104
|
+
Prefer the package's lazy `SentrySdk` over importing `@sentry/*` directly. A top-level
|
|
105
|
+
`import * as Sentry from '@sentry/node'` loads the SDK (~14 MB heap, ~1,300 modules) into every
|
|
106
|
+
process, including those where Sentry is off; `SentrySdk` only loads it when Sentry is enabled
|
|
107
|
+
for the process and is a no-op otherwise. Events pass through the same `beforeSend` redaction
|
|
108
|
+
configured in `initSentry()`.
|
|
104
109
|
|
|
105
110
|
```typescript
|
|
106
|
-
import {
|
|
111
|
+
import { SentrySdk } from '@servicelabsco/nestjs-utility-services';
|
|
107
112
|
|
|
108
|
-
captureException(error);
|
|
113
|
+
SentrySdk.captureException(error, { tags: { service: 'MyService' } });
|
|
109
114
|
```
|
|
110
115
|
|
|
111
116
|
On HTTP requests, `SentryUserScopeInterceptor` already attaches the authenticated user
|
|
@@ -116,10 +121,14 @@ On HTTP requests, `SentryUserScopeInterceptor` already attaches the authenticate
|
|
|
116
121
|
| Process | `initSentry()` | `SentryReportingModule` |
|
|
117
122
|
| --- | --- | --- |
|
|
118
123
|
| `main.ts` (API) | Yes (`instrument.ts`) | Yes |
|
|
119
|
-
| `worker.ts` (BullMQ) |
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
| `worker.ts` (BullMQ), default | No-op | Registers nothing (no HTTP on a worker) |
|
|
125
|
+
| `worker.ts` with `SENTRY_ENABLE_WORKER=true` | Initialises with the same redacting options | Registers nothing (no HTTP on a worker) |
|
|
126
|
+
|
|
127
|
+
With the opt-in, a worker reports uncaught exceptions, unhandled rejections and any
|
|
128
|
+
explicit `captureException` from jobs, consumers and subscribers (e.g. post-commit
|
|
129
|
+
dispatch failures). Without it, job failures are **not** reported — log/handle them in
|
|
130
|
+
worker code. `SentryBootstrap.isWorkerEnabled()` / `isSentryWorkerEnabled()` tell you
|
|
131
|
+
which mode a process is in.
|
|
123
132
|
|
|
124
133
|
## 6. Verify
|
|
125
134
|
|
package/package.json
CHANGED