@servicelabsco/nestjs-utility-services 1.2.87 → 1.2.88
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/app.controller.d.ts +4 -2
- package/dist/app.controller.js +7 -23
- package/dist/app.controller.js.map +1 -1
- package/dist/common/dtos/database.event.dto.d.ts +1 -0
- package/dist/common/dtos/database.event.dto.js.map +1 -1
- package/dist/common/libraries/common.job.js +2 -5
- package/dist/common/libraries/common.job.js.map +1 -1
- package/dist/common/libraries/common.subscriber.d.ts +5 -2
- package/dist/common/libraries/common.subscriber.js +11 -7
- package/dist/common/libraries/common.subscriber.js.map +1 -1
- package/dist/platformUtility/subscribers/base.subscriber.js +8 -4
- package/dist/platformUtility/subscribers/base.subscriber.js.map +1 -1
- package/dist/system/es6.classes.d.ts +1 -1
- package/dist/system/subscribers/client.credential.subscriber.d.ts +3 -5
- package/dist/system/subscribers/client.credential.subscriber.js +2 -8
- package/dist/system/subscribers/client.credential.subscriber.js.map +1 -1
- package/dist/system/subscribers/client.subscriber.d.ts +3 -5
- package/dist/system/subscribers/client.subscriber.js +2 -8
- package/dist/system/subscribers/client.subscriber.js.map +1 -1
- package/dist/system/subscribers/column.subscriber.d.ts +3 -5
- package/dist/system/subscribers/column.subscriber.js +2 -8
- package/dist/system/subscribers/column.subscriber.js.map +1 -1
- package/dist/system/subscribers/comment.subscriber.d.ts +3 -5
- package/dist/system/subscribers/comment.subscriber.js +2 -8
- package/dist/system/subscribers/comment.subscriber.js.map +1 -1
- package/dist/system/subscribers/credential.ip.subscriber.d.ts +3 -5
- package/dist/system/subscribers/credential.ip.subscriber.js +2 -8
- package/dist/system/subscribers/credential.ip.subscriber.js.map +1 -1
- package/dist/system/subscribers/document.subscriber.d.ts +3 -5
- package/dist/system/subscribers/document.subscriber.js +2 -8
- package/dist/system/subscribers/document.subscriber.js.map +1 -1
- package/dist/system/subscribers/mail.event.subscriber.d.ts +3 -5
- package/dist/system/subscribers/mail.event.subscriber.js +2 -8
- package/dist/system/subscribers/mail.event.subscriber.js.map +1 -1
- package/dist/system/subscribers/mail.recipient.subscriber.d.ts +3 -5
- package/dist/system/subscribers/mail.recipient.subscriber.js +2 -8
- package/dist/system/subscribers/mail.recipient.subscriber.js.map +1 -1
- package/dist/system/subscribers/mail.validation.subscriber.d.ts +3 -5
- package/dist/system/subscribers/mail.validation.subscriber.js +2 -8
- package/dist/system/subscribers/mail.validation.subscriber.js.map +1 -1
- package/dist/system/subscribers/mobile.validation.subscriber.d.ts +3 -5
- package/dist/system/subscribers/mobile.validation.subscriber.js +2 -8
- package/dist/system/subscribers/mobile.validation.subscriber.js.map +1 -1
- package/dist/system/subscribers/property.subscriber.d.ts +2 -4
- package/dist/system/subscribers/property.subscriber.js +2 -8
- package/dist/system/subscribers/property.subscriber.js.map +1 -1
- package/dist/system/subscribers/relationship.subscriber.d.ts +3 -5
- package/dist/system/subscribers/relationship.subscriber.js +2 -8
- package/dist/system/subscribers/relationship.subscriber.js.map +1 -1
- package/dist/system/subscribers/scheduled.event.subscriber.d.ts +3 -5
- package/dist/system/subscribers/scheduled.event.subscriber.js +2 -8
- package/dist/system/subscribers/scheduled.event.subscriber.js.map +1 -1
- package/dist/system/subscribers/sms.message.subscriber.d.ts +3 -5
- package/dist/system/subscribers/sms.message.subscriber.js +2 -8
- package/dist/system/subscribers/sms.message.subscriber.js.map +1 -1
- package/dist/system/subscribers/user.group.member.subscriber.d.ts +3 -5
- package/dist/system/subscribers/user.group.member.subscriber.js +2 -8
- package/dist/system/subscribers/user.group.member.subscriber.js.map +1 -1
- package/dist/system/subscribers/user.group.permission.subscriber.d.ts +4 -6
- package/dist/system/subscribers/user.group.permission.subscriber.js +3 -9
- package/dist/system/subscribers/user.group.permission.subscriber.js.map +1 -1
- package/dist/system/subscribers/user.group.role.subscriber.d.ts +3 -5
- package/dist/system/subscribers/user.group.role.subscriber.js +2 -8
- package/dist/system/subscribers/user.group.role.subscriber.js.map +1 -1
- package/package.json +1 -1
package/dist/app.controller.d.ts
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
import { Request } from 'express';
|
2
2
|
import { TestJob } from './platformUtility/jobs/test.job';
|
3
|
+
import { MailService } from './platformUtility/services/mail.service';
|
3
4
|
import { QueueService } from './platformUtility/services/queue.service';
|
4
5
|
import { SetScheduledEventJob } from './system/jobs/set.scheduled.event.job';
|
5
|
-
import {
|
6
|
+
import { PropertyService } from './system/services/property.service';
|
6
7
|
export declare class AppController {
|
7
8
|
private readonly queueService;
|
8
9
|
protected readonly testJob: TestJob;
|
9
10
|
protected readonly setScheduledEventJob: SetScheduledEventJob;
|
10
11
|
protected readonly mailService: MailService;
|
11
|
-
|
12
|
+
protected readonly propertyService: PropertyService;
|
13
|
+
constructor(queueService: QueueService, testJob: TestJob, setScheduledEventJob: SetScheduledEventJob, mailService: MailService, propertyService: PropertyService);
|
12
14
|
get(): Promise<{
|
13
15
|
message: string;
|
14
16
|
}>;
|
package/dist/app.controller.js
CHANGED
@@ -16,16 +16,17 @@ exports.AppController = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
17
17
|
const auth_1 = require("./common/libraries/auth");
|
18
18
|
const test_job_1 = require("./platformUtility/jobs/test.job");
|
19
|
+
const mail_service_1 = require("./platformUtility/services/mail.service");
|
19
20
|
const queue_service_1 = require("./platformUtility/services/queue.service");
|
20
21
|
const set_scheduled_event_job_1 = require("./system/jobs/set.scheduled.event.job");
|
21
|
-
const
|
22
|
-
const mail_service_1 = require("./platformUtility/services/mail.service");
|
22
|
+
const property_service_1 = require("./system/services/property.service");
|
23
23
|
let AppController = class AppController {
|
24
|
-
constructor(queueService, testJob, setScheduledEventJob, mailService) {
|
24
|
+
constructor(queueService, testJob, setScheduledEventJob, mailService, propertyService) {
|
25
25
|
this.queueService = queueService;
|
26
26
|
this.testJob = testJob;
|
27
27
|
this.setScheduledEventJob = setScheduledEventJob;
|
28
28
|
this.mailService = mailService;
|
29
|
+
this.propertyService = propertyService;
|
29
30
|
}
|
30
31
|
async get() {
|
31
32
|
return { message: 'Hello World!' };
|
@@ -43,25 +44,7 @@ let AppController = class AppController {
|
|
43
44
|
async queue(id) {
|
44
45
|
return this.queueService.getJobDetails(id);
|
45
46
|
}
|
46
|
-
async set(req) {
|
47
|
-
const options = {
|
48
|
-
from: 'hemantanshu@gmail.com',
|
49
|
-
to: 'hemantanshu@outlook.com',
|
50
|
-
cc: 'hemant.sah@finnoto.com',
|
51
|
-
subject: `testing: Testing data ${platform_utility_1.PlatformUtility.generateRandomNumber(6)}`,
|
52
|
-
html: `<!DOCTYPE html>
|
53
|
-
<html>
|
54
|
-
<head>
|
55
|
-
<title>Sample HTML Email</title>
|
56
|
-
</head>
|
57
|
-
<body>
|
58
|
-
<h1>This is a sample HTML email.</h1>
|
59
|
-
<p>This is the body of the email.</p>
|
60
|
-
</body>
|
61
|
-
</html>`,
|
62
|
-
};
|
63
|
-
return this.mailService.send(options);
|
64
|
-
}
|
47
|
+
async set(req) { }
|
65
48
|
};
|
66
49
|
exports.AppController = AppController;
|
67
50
|
__decorate([
|
@@ -114,6 +97,7 @@ exports.AppController = AppController = __decorate([
|
|
114
97
|
__metadata("design:paramtypes", [queue_service_1.QueueService,
|
115
98
|
test_job_1.TestJob,
|
116
99
|
set_scheduled_event_job_1.SetScheduledEventJob,
|
117
|
-
mail_service_1.MailService
|
100
|
+
mail_service_1.MailService,
|
101
|
+
property_service_1.PropertyService])
|
118
102
|
], AppController);
|
119
103
|
//# sourceMappingURL=app.controller.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../src/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA0E;AAE1E,kDAA+C;AAC/C,8DAA0D;AAC1D,4EAAwE;AACxE,mFAA6E;
|
1
|
+
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../src/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA0E;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3C;IADL,IAAA,YAAG,EAAC,OAAO,CAAC;;;;qDAGZ;AAGK;IADL,IAAA,YAAG,EAAC,WAAW,CAAC;IACJ,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;0CAEvB;AAGK;IADL,IAAA,aAAI,EAAC,MAAM,CAAC;IACF,WAAA,IAAA,YAAG,GAAE,CAAA;;;;wCAA+B;wBA3CtC,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAG0B,4BAAY;QACf,kBAAO;QACM,8CAAoB;QAC7B,0BAAW;QACP,kCAAe;GAN9C,aAAa,CA4CzB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"database.event.dto.js","sourceRoot":"","sources":["../../../src/common/dtos/database.event.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,gBAAgB;
|
1
|
+
{"version":3,"file":"database.event.dto.js","sourceRoot":"","sources":["../../../src/common/dtos/database.event.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,gBAAgB;CAkC5B;AAlCD,4CAkCC"}
|
@@ -69,15 +69,12 @@ class CommonJob {
|
|
69
69
|
return false;
|
70
70
|
}
|
71
71
|
isNewRecord(event) {
|
72
|
-
|
73
|
-
const column = isMongoEntity ? '_id' : 'id';
|
74
|
-
if (event.databaseEntity?.[column])
|
72
|
+
if (Object.keys(event?.databaseEntity || {}))
|
75
73
|
return false;
|
76
74
|
return true;
|
77
75
|
}
|
78
76
|
isMongoEntity(event) {
|
79
|
-
|
80
|
-
return name.toLowerCase().includes('mentity');
|
77
|
+
return event.driver === 'mongo';
|
81
78
|
}
|
82
79
|
async getBaseIndex() { }
|
83
80
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.job.js","sourceRoot":"","sources":["../../../src/common/libraries/common.job.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AAKxC,6EAAyE;AAQzE,MAAa,SAAS;IAqFlB,YAAY,IAAY;QA/Ed,aAAQ,GAAG,CAAC,CAAC;QAOb,YAAO,G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AAC;QAE3D,OAAO,IAAI,CAAC;IAChB,CAAC;IASS,aAAa,CAAC,KAA4B;QAChD,OAAO,KAAK,CAAC,MAAM,KAAK,OAAO,CAAC;IACpC,CAAC;IAEO,KAAK,CAAC,YAAY,KAAI,CAAC;CAClC;AArOD,8BAqOC"}
|
@@ -1,7 +1,10 @@
|
|
1
|
-
import { EntitySubscriberInterface, QueryRunner, RemoveEvent } from 'typeorm';
|
1
|
+
import { EntitySubscriberInterface, InsertEvent, QueryRunner, RemoveEvent, UpdateEvent } from 'typeorm';
|
2
2
|
import { DatabaseEventDto } from '../dtos/database.event.dto';
|
3
3
|
export declare class CommonSubscriber<T> implements EntitySubscriberInterface<T> {
|
4
|
-
protected
|
4
|
+
protected entityJob: any;
|
5
|
+
afterInsert(evt: InsertEvent<T>): Promise<any>;
|
6
|
+
afterUpdate(evt: UpdateEvent<T>): Promise<any>;
|
7
|
+
private triggerJob;
|
5
8
|
protected getEventData(event: any): DatabaseEventDto<T>;
|
6
9
|
protected getUpdateEventData(event: any): DatabaseEventDto<T>;
|
7
10
|
protected getInsertEventData(event: any): DatabaseEventDto<T>;
|
@@ -3,14 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommonSubscriber = void 0;
|
4
4
|
const auth_1 = require("./auth");
|
5
5
|
class CommonSubscriber {
|
6
|
+
async afterInsert(evt) {
|
7
|
+
return this.triggerJob(evt);
|
8
|
+
}
|
9
|
+
async afterUpdate(evt) {
|
10
|
+
return this.triggerJob(evt);
|
11
|
+
}
|
6
12
|
async triggerJob(event, fn) {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
delete data.updatedColumns['updated_at'];
|
11
|
-
delete data.updatedColumns['updated_by'];
|
12
|
-
if (data.updatedColumns.length)
|
13
|
-
return fn.delayedDispatch(data);
|
13
|
+
if (!this.entityJob)
|
14
|
+
return;
|
15
|
+
return this.entityJob.delayedDispatch(this.getEventData(event));
|
14
16
|
}
|
15
17
|
getEventData(event) {
|
16
18
|
const isMongoEntity = this.isMongoEntity(event);
|
@@ -26,6 +28,7 @@ class CommonSubscriber {
|
|
26
28
|
metadata: this.getMetadata(event),
|
27
29
|
databaseEntity: event.databaseEntity,
|
28
30
|
user: auth_1.Auth.user(),
|
31
|
+
driver: event.metadata.connection.driver.options.type,
|
29
32
|
};
|
30
33
|
}
|
31
34
|
getInsertEventData(event) {
|
@@ -34,6 +37,7 @@ class CommonSubscriber {
|
|
34
37
|
metadata: this.getMetadata(event),
|
35
38
|
user: auth_1.Auth.user(),
|
36
39
|
updatedColumns: [],
|
40
|
+
driver: event.metadata.connection.driver.options.type,
|
37
41
|
};
|
38
42
|
}
|
39
43
|
getMetadata(event) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.subscriber.js","sourceRoot":"","sources":["../../../src/common/libraries/common.subscriber.ts"],"names":[],"mappings":";;;AAEA,iCAA8B;AAS9B,MAAa,gBAAgB;
|
1
|
+
{"version":3,"file":"common.subscriber.js","sourceRoot":"","sources":["../../../src/common/libraries/common.subscriber.ts"],"names":[],"mappings":";;;AAEA,iCAA8B;AAS9B,MAAa,gBAAgB;IAezB,KAAK,CAAC,WAAW,CAAC,GAAmB;QACjC,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAQD,KAAK,CAAC,WAAW,CAAC,GAAmB;QACjC,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAUO,KAAK,CAAC,UAAU,CAAC,KAAU,EAAE,EAAQ;QACzC,IAAI,CAAC,IAAI,CAAC,SAAS;YAAE,OAAO;QAC5B,OAAO,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACpE,CAAC;IASS,YAAY,CAAC,KAAK;QACxB,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAChD,MAAM,MAAM,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AAC;QAElD,OAAO,IAAI,CAAC;IAChB,CAAC;IASS,aAAa,CAAC,KAAK;QACzB,IAAI,KAAK,CAAC,MAAM,CAAC,UAAU;YAAE,OAAO,IAAI,CAAC;QAEzC,OAAO,KAAK,CAAC;IACjB,CAAC;IAQS,KAAK,CAAC,iBAAiB,CAAC,WAAwB;QACtD,MAAM,WAAW,CAAC,iBAAiB,EAAE,CAAC;QACtC,MAAM,WAAW,CAAC,gBAAgB,EAAE,CAAC;IACzC,CAAC;CACJ;AA1MD,4CA0MC"}
|
@@ -39,8 +39,10 @@ let BaseSubscriber = class BaseSubscriber extends common_subscriber_1.CommonSubs
|
|
39
39
|
if (shouldWatchRecord === false)
|
40
40
|
return;
|
41
41
|
const isAuditEnabled = await this.auditService.getAuditTable();
|
42
|
-
if (isAuditEnabled)
|
43
|
-
return
|
42
|
+
if (!isAuditEnabled)
|
43
|
+
return;
|
44
|
+
const data = this.getEventData(event);
|
45
|
+
return this.recordWatcherJob.delayedDispatch(data);
|
44
46
|
}
|
45
47
|
beforeUpdate(event) {
|
46
48
|
if (!event.entity)
|
@@ -55,8 +57,10 @@ let BaseSubscriber = class BaseSubscriber extends common_subscriber_1.CommonSubs
|
|
55
57
|
if (shouldWatchRecord === false)
|
56
58
|
return;
|
57
59
|
const isAuditEnabled = await this.auditService.getAuditTable();
|
58
|
-
if (isAuditEnabled)
|
59
|
-
return
|
60
|
+
if (!isAuditEnabled)
|
61
|
+
return;
|
62
|
+
const data = this.getEventData(event);
|
63
|
+
return this.recordWatcherJob.delayedDispatch(data);
|
60
64
|
}
|
61
65
|
};
|
62
66
|
exports.BaseSubscriber = BaseSubscriber;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base.subscriber.js","sourceRoot":"","sources":["../../../src/platformUtility/subscribers/base.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,sDAAmD;AACnD,gFAA4E;AAC5E,gEAA4D;AAC5D,mEAA8D;AAC9D,6D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AAC;QACjD,IAAI,WAAI,CAAC,KAAK,EAAE,EAAE,CAAC;YACf,KAAK,CAAC,MAAM,CAAC,UAAU,GAAG,WAAI,CAAC,EAAE,EAAE,CAAC;QACxC,CAAC;IACL,CAAC;IAQD,KAAK,CAAC,WAAW,CAAC,KAAuB;QAErC,MAAM,iBAAiB,GAAG,KAAK,EAAE,MAAM,EAAE,mBAAmB,CAAC;QAC7D,IAAI,iBAAiB,KAAK,KAAK;YAAE,OAAO;QAExC,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC;QAC/D,IAAI,CAAC,cAAc;YAAE,OAAO;QAE5B,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QACtC,OAAO,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;CACJ,CAAA;AApFY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,yBAAe,GAAE;qCASE,oBAAU;QACa,qCAAgB;QACpB,4BAAY;GAVtC,cAAc,CAoF1B"}
|
@@ -172,7 +172,7 @@ declare const es6Classes: {
|
|
172
172
|
jobs: (typeof SetScheduledEventJob | typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof CleanScheduledEventJob | typeof ClientCredentialJob | typeof ClientJob | typeof ColumnMapperJob | typeof CommentJob | typeof CredentialIpJob | typeof DocumentJob | typeof MailEventJob | typeof MailRecipientJob | typeof MailValidationJob | typeof MobileValidationJob | typeof RefreshPropertyCacheJob | typeof PropertyJob | typeof RelationshipMapperJob | typeof ScheduledEventJob | typeof SmsMessageJob | typeof UserGroupMemberJob | typeof UserGroupPermissionJob | typeof UserGroupRoleJob)[];
|
173
173
|
libraries: (typeof SyncDynamoTables | typeof ModelSync | typeof SecurityRuleEvaluator | typeof ColumnManager | typeof BusinessRuleFilterValidator | typeof BusinessRuleQueryEvaluator | typeof ProcessMenuCreation)[];
|
174
174
|
modifiers: (typeof MenuListModifier | typeof ModuleListModifier)[];
|
175
|
-
services: (typeof PropertyService | typeof
|
175
|
+
services: (typeof PropertyService | typeof AwsS3Service | typeof UploadService | typeof ScheduledEventService | typeof EventQueueService | typeof EventDetailService | typeof SecurityRuleService | typeof UiActionService | typeof ModelService | typeof CommonService | typeof ClientScriptService | typeof PreferenceService | typeof BusinessRuleService | typeof ListService | typeof FormService | typeof MenuService | typeof UserPreferenceService | typeof ReportService | typeof ClientCredentialService | typeof ColumnService | typeof DocumentService | typeof CommentService | typeof Es6JobsService | typeof Es6Service | typeof InternalServerConnectService | typeof MailValidationService | typeof MobileValidationService)[];
|
176
176
|
subscribers: (typeof ClientCredentialSubscriber | typeof ClientSubscriber | typeof ColumnSubscriber | typeof CommentSubscriber | typeof CredentialIpSubscriber | typeof DocumentSubscriber | typeof MailEventSubscriber | typeof MailRecipientSubscriber | typeof MailValidationSubscriber | typeof MobileValidationSubscriber | typeof PropertySubscriber | typeof RelationshipSubscriber | typeof ScheduledEventSubscriber | typeof SmsMessageSubscriber | typeof UserGroupMemberSubscriber | typeof UserGroupPermissionSubscriber | typeof UserGroupRoleSubscriber)[];
|
177
177
|
};
|
178
178
|
export default es6Classes;
|
@@ -1,13 +1,11 @@
|
|
1
|
-
import { DataSource, InsertEvent
|
1
|
+
import { DataSource, InsertEvent } from 'typeorm';
|
2
2
|
import { CommonSubscriber } from '../../common/libraries/common.subscriber';
|
3
3
|
import { ClientCredentialEntity } from '../entities/client.credential.entity';
|
4
4
|
import { ClientCredentialJob } from '../jobs/client.credential.job';
|
5
5
|
export declare class ClientCredentialSubscriber extends CommonSubscriber<ClientCredentialEntity> {
|
6
6
|
private readonly dataSource;
|
7
|
-
|
8
|
-
constructor(dataSource: DataSource,
|
7
|
+
protected readonly entityJob: ClientCredentialJob;
|
8
|
+
constructor(dataSource: DataSource, entityJob: ClientCredentialJob);
|
9
9
|
listenTo(): typeof ClientCredentialEntity;
|
10
10
|
beforeInsert(evt: InsertEvent<ClientCredentialEntity>): Promise<void>;
|
11
|
-
afterInsert(evt: InsertEvent<ClientCredentialEntity>): Promise<any>;
|
12
|
-
afterUpdate(evt: UpdateEvent<ClientCredentialEntity>): Promise<any>;
|
13
11
|
}
|
@@ -16,10 +16,10 @@ const hash_1 = require("../../common/libraries/hash");
|
|
16
16
|
const client_credential_entity_1 = require("../entities/client.credential.entity");
|
17
17
|
const client_credential_job_1 = require("../jobs/client.credential.job");
|
18
18
|
let ClientCredentialSubscriber = class ClientCredentialSubscriber extends common_subscriber_1.CommonSubscriber {
|
19
|
-
constructor(dataSource,
|
19
|
+
constructor(dataSource, entityJob) {
|
20
20
|
super();
|
21
21
|
this.dataSource = dataSource;
|
22
|
-
this.
|
22
|
+
this.entityJob = entityJob;
|
23
23
|
dataSource.subscribers.push(this);
|
24
24
|
}
|
25
25
|
listenTo() {
|
@@ -28,12 +28,6 @@ let ClientCredentialSubscriber = class ClientCredentialSubscriber extends common
|
|
28
28
|
async beforeInsert(evt) {
|
29
29
|
evt.entity.credential = hash_1.Hash.hash(evt.entity.credential);
|
30
30
|
}
|
31
|
-
async afterInsert(evt) {
|
32
|
-
return this.triggerJob(evt, this.clientCredentialJob);
|
33
|
-
}
|
34
|
-
async afterUpdate(evt) {
|
35
|
-
return this.triggerJob(evt, this.clientCredentialJob);
|
36
|
-
}
|
37
31
|
};
|
38
32
|
exports.ClientCredentialSubscriber = ClientCredentialSubscriber;
|
39
33
|
exports.ClientCredentialSubscriber = ClientCredentialSubscriber = __decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.credential.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/client.credential.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"client.credential.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/client.credential.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAmE;AACnE,gFAA4E;AAC5E,sDAAmD;AACnD,mFAA8E;AAC9E,yEAAoE;AAE7D,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,oCAAwC;IACpF,YACqB,UAAsB,EACpB,SAA8B;QAEjD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAqB;QAGjD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,iDAAsB,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,GAAwC;QACvD,GAAG,CAAC,MAAM,CAAC,UAAU,GAAG,WAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC7D,CAAC;CACJ,CAAA;AAfY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,2CAAmB;GAH5C,0BAA0B,CAetC"}
|
@@ -1,12 +1,10 @@
|
|
1
|
-
import { DataSource
|
1
|
+
import { DataSource } from 'typeorm';
|
2
2
|
import { CommonSubscriber } from '../../common/libraries/common.subscriber';
|
3
3
|
import { ClientEntity } from '../entities/client.entity';
|
4
4
|
import { ClientJob } from '../jobs/client.job';
|
5
5
|
export declare class ClientSubscriber extends CommonSubscriber<ClientEntity> {
|
6
6
|
private readonly dataSource;
|
7
|
-
|
8
|
-
constructor(dataSource: DataSource,
|
7
|
+
protected readonly entityJob: ClientJob;
|
8
|
+
constructor(dataSource: DataSource, entityJob: ClientJob);
|
9
9
|
listenTo(): typeof ClientEntity;
|
10
|
-
afterInsert(evt: InsertEvent<ClientEntity>): Promise<any>;
|
11
|
-
afterUpdate(evt: UpdateEvent<ClientEntity>): Promise<any>;
|
12
10
|
}
|
@@ -15,21 +15,15 @@ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
|
|
15
15
|
const client_entity_1 = require("../entities/client.entity");
|
16
16
|
const client_job_1 = require("../jobs/client.job");
|
17
17
|
let ClientSubscriber = class ClientSubscriber extends common_subscriber_1.CommonSubscriber {
|
18
|
-
constructor(dataSource,
|
18
|
+
constructor(dataSource, entityJob) {
|
19
19
|
super();
|
20
20
|
this.dataSource = dataSource;
|
21
|
-
this.
|
21
|
+
this.entityJob = entityJob;
|
22
22
|
dataSource.subscribers.push(this);
|
23
23
|
}
|
24
24
|
listenTo() {
|
25
25
|
return client_entity_1.ClientEntity;
|
26
26
|
}
|
27
|
-
async afterInsert(evt) {
|
28
|
-
return this.triggerJob(evt, this.clientJob);
|
29
|
-
}
|
30
|
-
async afterUpdate(evt) {
|
31
|
-
return this.triggerJob(evt, this.clientJob);
|
32
|
-
}
|
33
27
|
};
|
34
28
|
exports.ClientSubscriber = ClientSubscriber;
|
35
29
|
exports.ClientSubscriber = ClientSubscriber = __decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/client.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"client.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/client.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsD;AACtD,gFAA4E;AAC5E,6DAAyD;AACzD,mDAA+C;AAGxC,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oCAA8B;IAChE,YACqB,UAAsB,EACpB,SAAoB;QAEvC,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAW;QAGvC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,4BAAY,CAAC;IACxB,CAAC;CACJ,CAAA;AAXY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,sBAAS;GAHlC,gBAAgB,CAW5B"}
|
@@ -1,12 +1,10 @@
|
|
1
|
-
import { DataSource
|
1
|
+
import { DataSource } from 'typeorm';
|
2
2
|
import { CommonSubscriber } from '../../common/libraries/common.subscriber';
|
3
3
|
import { ColumnEntity } from '../entities/column.entity';
|
4
4
|
import { ColumnMapperJob } from '../jobs/column.mapper.job';
|
5
5
|
export declare class ColumnSubscriber extends CommonSubscriber<ColumnEntity> {
|
6
6
|
private readonly dataSource;
|
7
|
-
|
8
|
-
constructor(dataSource: DataSource,
|
7
|
+
protected readonly entityJob: ColumnMapperJob;
|
8
|
+
constructor(dataSource: DataSource, entityJob: ColumnMapperJob);
|
9
9
|
listenTo(): typeof ColumnEntity;
|
10
|
-
afterInsert(evt: InsertEvent<ColumnEntity>): Promise<any>;
|
11
|
-
afterUpdate(evt: UpdateEvent<ColumnEntity>): Promise<any>;
|
12
10
|
}
|
@@ -15,21 +15,15 @@ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
|
|
15
15
|
const column_entity_1 = require("../entities/column.entity");
|
16
16
|
const column_mapper_job_1 = require("../jobs/column.mapper.job");
|
17
17
|
let ColumnSubscriber = class ColumnSubscriber extends common_subscriber_1.CommonSubscriber {
|
18
|
-
constructor(dataSource,
|
18
|
+
constructor(dataSource, entityJob) {
|
19
19
|
super();
|
20
20
|
this.dataSource = dataSource;
|
21
|
-
this.
|
21
|
+
this.entityJob = entityJob;
|
22
22
|
dataSource.subscribers.push(this);
|
23
23
|
}
|
24
24
|
listenTo() {
|
25
25
|
return column_entity_1.ColumnEntity;
|
26
26
|
}
|
27
|
-
async afterInsert(evt) {
|
28
|
-
return this.triggerJob(evt, this.columnMapperJob);
|
29
|
-
}
|
30
|
-
async afterUpdate(evt) {
|
31
|
-
return this.triggerJob(evt, this.columnMapperJob);
|
32
|
-
}
|
33
27
|
};
|
34
28
|
exports.ColumnSubscriber = ColumnSubscriber;
|
35
29
|
exports.ColumnSubscriber = ColumnSubscriber = __decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"column.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/column.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"column.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/column.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsD;AACtD,gFAA4E;AAC5E,6DAAyD;AACzD,iEAA4D;AAErD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oCAA8B;IAChE,YACqB,UAAsB,EACpB,SAA0B;QAE7C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAiB;QAG7C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,4BAAY,CAAC;IACxB,CAAC;CACJ,CAAA;AAXY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,mCAAe;GAHxC,gBAAgB,CAW5B"}
|
@@ -1,12 +1,10 @@
|
|
1
|
-
import { DataSource
|
1
|
+
import { DataSource } from 'typeorm';
|
2
2
|
import { CommonSubscriber } from '../../common/libraries/common.subscriber';
|
3
3
|
import { CommentEntity } from '../entities/comment.entity';
|
4
4
|
import { CommentJob } from '../jobs/comment.job';
|
5
5
|
export declare class CommentSubscriber extends CommonSubscriber<CommentEntity> {
|
6
6
|
private readonly dataSource;
|
7
|
-
|
8
|
-
constructor(dataSource: DataSource,
|
7
|
+
protected readonly entityJob: CommentJob;
|
8
|
+
constructor(dataSource: DataSource, entityJob: CommentJob);
|
9
9
|
listenTo(): typeof CommentEntity;
|
10
|
-
afterInsert(evt: InsertEvent<CommentEntity>): Promise<any>;
|
11
|
-
afterUpdate(evt: UpdateEvent<CommentEntity>): Promise<any>;
|
12
10
|
}
|
@@ -15,21 +15,15 @@ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
|
|
15
15
|
const comment_entity_1 = require("../entities/comment.entity");
|
16
16
|
const comment_job_1 = require("../jobs/comment.job");
|
17
17
|
let CommentSubscriber = class CommentSubscriber extends common_subscriber_1.CommonSubscriber {
|
18
|
-
constructor(dataSource,
|
18
|
+
constructor(dataSource, entityJob) {
|
19
19
|
super();
|
20
20
|
this.dataSource = dataSource;
|
21
|
-
this.
|
21
|
+
this.entityJob = entityJob;
|
22
22
|
dataSource.subscribers.push(this);
|
23
23
|
}
|
24
24
|
listenTo() {
|
25
25
|
return comment_entity_1.CommentEntity;
|
26
26
|
}
|
27
|
-
async afterInsert(evt) {
|
28
|
-
return this.triggerJob(evt, this.commentJob);
|
29
|
-
}
|
30
|
-
async afterUpdate(evt) {
|
31
|
-
return this.triggerJob(evt, this.commentJob);
|
32
|
-
}
|
33
27
|
};
|
34
28
|
exports.CommentSubscriber = CommentSubscriber;
|
35
29
|
exports.CommentSubscriber = CommentSubscriber = __decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"comment.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/comment.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"comment.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/comment.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsD;AACtD,gFAA4E;AAC5E,+DAA2D;AAC3D,qDAAiD;AAG1C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,oCAA+B;IAClE,YACqB,UAAsB,EACpB,SAAqB;QAExC,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAY;QAGxC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,8BAAa,CAAC;IACzB,CAAC;CACJ,CAAA;AAXY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,wBAAU;GAHnC,iBAAiB,CAW7B"}
|
@@ -1,12 +1,10 @@
|
|
1
|
-
import { DataSource
|
1
|
+
import { DataSource } from 'typeorm';
|
2
2
|
import { CommonSubscriber } from '../../common/libraries/common.subscriber';
|
3
3
|
import { CredentialIpEntity } from '../entities/credential.ip.entity';
|
4
4
|
import { CredentialIpJob } from '../jobs/credential.ip.job';
|
5
5
|
export declare class CredentialIpSubscriber extends CommonSubscriber<CredentialIpEntity> {
|
6
6
|
private readonly dataSource;
|
7
|
-
|
8
|
-
constructor(dataSource: DataSource,
|
7
|
+
protected readonly entityJob: CredentialIpJob;
|
8
|
+
constructor(dataSource: DataSource, entityJob: CredentialIpJob);
|
9
9
|
listenTo(): typeof CredentialIpEntity;
|
10
|
-
afterInsert(evt: InsertEvent<CredentialIpEntity>): Promise<any>;
|
11
|
-
afterUpdate(evt: UpdateEvent<CredentialIpEntity>): Promise<any>;
|
12
10
|
}
|
@@ -15,21 +15,15 @@ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
|
|
15
15
|
const credential_ip_entity_1 = require("../entities/credential.ip.entity");
|
16
16
|
const credential_ip_job_1 = require("../jobs/credential.ip.job");
|
17
17
|
let CredentialIpSubscriber = class CredentialIpSubscriber extends common_subscriber_1.CommonSubscriber {
|
18
|
-
constructor(dataSource,
|
18
|
+
constructor(dataSource, entityJob) {
|
19
19
|
super();
|
20
20
|
this.dataSource = dataSource;
|
21
|
-
this.
|
21
|
+
this.entityJob = entityJob;
|
22
22
|
dataSource.subscribers.push(this);
|
23
23
|
}
|
24
24
|
listenTo() {
|
25
25
|
return credential_ip_entity_1.CredentialIpEntity;
|
26
26
|
}
|
27
|
-
async afterInsert(evt) {
|
28
|
-
return this.triggerJob(evt, this.credentialIpJob);
|
29
|
-
}
|
30
|
-
async afterUpdate(evt) {
|
31
|
-
return this.triggerJob(evt, this.credentialIpJob);
|
32
|
-
}
|
33
27
|
};
|
34
28
|
exports.CredentialIpSubscriber = CredentialIpSubscriber;
|
35
29
|
exports.CredentialIpSubscriber = CredentialIpSubscriber = __decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"credential.ip.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/credential.ip.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"credential.ip.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/credential.ip.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsD;AACtD,gFAA4E;AAC5E,2EAAsE;AACtE,iEAA4D;AAErD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oCAAoC;IAC5E,YACqB,UAAsB,EACpB,SAA0B;QAE7C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAiB;QAG7C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,yCAAkB,CAAC;IAC9B,CAAC;CACJ,CAAA;AAXY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,mCAAe;GAHxC,sBAAsB,CAWlC"}
|
@@ -1,12 +1,10 @@
|
|
1
|
-
import { DataSource
|
1
|
+
import { DataSource } from 'typeorm';
|
2
2
|
import { CommonSubscriber } from '../../common/libraries/common.subscriber';
|
3
3
|
import { DocumentEntity } from '../entities/document.entity';
|
4
4
|
import { DocumentJob } from '../jobs/document.job';
|
5
5
|
export declare class DocumentSubscriber extends CommonSubscriber<DocumentEntity> {
|
6
6
|
private readonly dataSource;
|
7
|
-
|
8
|
-
constructor(dataSource: DataSource,
|
7
|
+
protected readonly entityJob: DocumentJob;
|
8
|
+
constructor(dataSource: DataSource, entityJob: DocumentJob);
|
9
9
|
listenTo(): typeof DocumentEntity;
|
10
|
-
afterInsert(evt: InsertEvent<DocumentEntity>): Promise<any>;
|
11
|
-
afterUpdate(evt: UpdateEvent<DocumentEntity>): Promise<any>;
|
12
10
|
}
|
@@ -15,21 +15,15 @@ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
|
|
15
15
|
const document_entity_1 = require("../entities/document.entity");
|
16
16
|
const document_job_1 = require("../jobs/document.job");
|
17
17
|
let DocumentSubscriber = class DocumentSubscriber extends common_subscriber_1.CommonSubscriber {
|
18
|
-
constructor(dataSource,
|
18
|
+
constructor(dataSource, entityJob) {
|
19
19
|
super();
|
20
20
|
this.dataSource = dataSource;
|
21
|
-
this.
|
21
|
+
this.entityJob = entityJob;
|
22
22
|
dataSource.subscribers.push(this);
|
23
23
|
}
|
24
24
|
listenTo() {
|
25
25
|
return document_entity_1.DocumentEntity;
|
26
26
|
}
|
27
|
-
async afterInsert(evt) {
|
28
|
-
return this.triggerJob(evt, this.documentJob);
|
29
|
-
}
|
30
|
-
async afterUpdate(evt) {
|
31
|
-
return this.triggerJob(evt, this.documentJob);
|
32
|
-
}
|
33
27
|
};
|
34
28
|
exports.DocumentSubscriber = DocumentSubscriber;
|
35
29
|
exports.DocumentSubscriber = DocumentSubscriber = __decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"document.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/document.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"document.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/document.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsD;AACtD,gFAA4E;AAC5E,iEAA6D;AAC7D,uDAAmD;AAG5C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,oCAAgC;IACpE,YACqB,UAAsB,EACpB,SAAsB;QAEzC,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAa;QAGzC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,gCAAc,CAAC;IAC1B,CAAC;CACJ,CAAA;AAXY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,0BAAW;GAHpC,kBAAkB,CAW9B"}
|
@@ -1,12 +1,10 @@
|
|
1
|
-
import { DataSource
|
1
|
+
import { DataSource } from 'typeorm';
|
2
2
|
import { CommonSubscriber } from '../../common/libraries/common.subscriber';
|
3
3
|
import { MailEventEntity } from '../entities/mail.event.entity';
|
4
4
|
import { MailEventJob } from '../jobs/mail.event.job';
|
5
5
|
export declare class MailEventSubscriber extends CommonSubscriber<MailEventEntity> {
|
6
6
|
private readonly dataSource;
|
7
|
-
|
8
|
-
constructor(dataSource: DataSource,
|
7
|
+
protected readonly entityJob: MailEventJob;
|
8
|
+
constructor(dataSource: DataSource, entityJob: MailEventJob);
|
9
9
|
listenTo(): typeof MailEventEntity;
|
10
|
-
afterInsert(evt: InsertEvent<MailEventEntity>): Promise<any>;
|
11
|
-
afterUpdate(evt: UpdateEvent<MailEventEntity>): Promise<any>;
|
12
10
|
}
|
@@ -15,21 +15,15 @@ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
|
|
15
15
|
const mail_event_entity_1 = require("../entities/mail.event.entity");
|
16
16
|
const mail_event_job_1 = require("../jobs/mail.event.job");
|
17
17
|
let MailEventSubscriber = class MailEventSubscriber extends common_subscriber_1.CommonSubscriber {
|
18
|
-
constructor(dataSource,
|
18
|
+
constructor(dataSource, entityJob) {
|
19
19
|
super();
|
20
20
|
this.dataSource = dataSource;
|
21
|
-
this.
|
21
|
+
this.entityJob = entityJob;
|
22
22
|
dataSource.subscribers.push(this);
|
23
23
|
}
|
24
24
|
listenTo() {
|
25
25
|
return mail_event_entity_1.MailEventEntity;
|
26
26
|
}
|
27
|
-
async afterInsert(evt) {
|
28
|
-
return this.triggerJob(evt, this.mailEventJob);
|
29
|
-
}
|
30
|
-
async afterUpdate(evt) {
|
31
|
-
return this.triggerJob(evt, this.mailEventJob);
|
32
|
-
}
|
33
27
|
};
|
34
28
|
exports.MailEventSubscriber = MailEventSubscriber;
|
35
29
|
exports.MailEventSubscriber = MailEventSubscriber = __decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mail.event.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/mail.event.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"mail.event.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/mail.event.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsD;AACtD,gFAA4E;AAC5E,qEAAgE;AAChE,2DAAsD;AAG/C,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,oCAAiC;IACtE,YACqB,UAAsB,EACpB,SAAuB;QAE1C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAc;QAG1C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,mCAAe,CAAC;IAC3B,CAAC;CACJ,CAAA;AAXY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,6BAAY;GAHrC,mBAAmB,CAW/B"}
|