@servicelabsco/nestjs-utility-services 1.2.71 → 1.2.73

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.
Files changed (84) hide show
  1. package/dist/app.controller.d.ts +4 -4
  2. package/dist/app.controller.js.map +1 -1
  3. package/dist/auth/controllers/admin.auth.controller.d.ts +1 -1
  4. package/dist/auth/services/access.service.d.ts +2 -1
  5. package/dist/auth/services/access.service.js.map +1 -1
  6. package/dist/auth/services/auth.service.d.ts +3 -3
  7. package/dist/auth/services/auth.service.js +7 -7
  8. package/dist/auth/services/auth.service.js.map +1 -1
  9. package/dist/auth/services/refresh.token.service.d.ts +1 -1
  10. package/dist/auth/services/refresh.token.service.js +4 -4
  11. package/dist/auth/services/refresh.token.service.js.map +1 -1
  12. package/dist/common/libraries/common.subscriber.d.ts +1 -0
  13. package/dist/common/libraries/common.subscriber.js +9 -0
  14. package/dist/common/libraries/common.subscriber.js.map +1 -1
  15. package/dist/health.check.controller.d.ts +1 -1
  16. package/dist/health.check.controller.js +1 -1
  17. package/dist/platformUtility/controllers/bull.job.controller.d.ts +7 -7
  18. package/dist/platformUtility/controllers/queue.controller.d.ts +1 -1
  19. package/dist/platformUtility/libraries/process.kaleyra.sms.d.ts +1 -1
  20. package/dist/platformUtility/services/sms.service.d.ts +1 -1
  21. package/dist/platformUtility/subscribers/base.subscriber.js +2 -4
  22. package/dist/platformUtility/subscribers/base.subscriber.js.map +1 -1
  23. package/dist/system/controllers/base.controller.d.ts +5 -31
  24. package/dist/system/controllers/form.controller.d.ts +1 -8
  25. package/dist/system/controllers/menu.controller.d.ts +3 -6
  26. package/dist/system/controllers/preference.controller.d.ts +7 -9
  27. package/dist/system/controllers/report.controller.d.ts +1 -2
  28. package/dist/system/controllers/upload.controller.d.ts +2 -2
  29. package/dist/system/controllers/user.preference.controller.d.ts +2 -3
  30. package/dist/system/services/form.service.d.ts +2 -1
  31. package/dist/system/services/form.service.js +1 -1
  32. package/dist/system/services/form.service.js.map +1 -1
  33. package/dist/system/subscribers/client.credential.subscriber.d.ts +3 -3
  34. package/dist/system/subscribers/client.credential.subscriber.js +6 -6
  35. package/dist/system/subscribers/client.credential.subscriber.js.map +1 -1
  36. package/dist/system/subscribers/client.subscriber.d.ts +3 -3
  37. package/dist/system/subscribers/client.subscriber.js +5 -5
  38. package/dist/system/subscribers/client.subscriber.js.map +1 -1
  39. package/dist/system/subscribers/column.subscriber.d.ts +2 -2
  40. package/dist/system/subscribers/column.subscriber.js +4 -4
  41. package/dist/system/subscribers/column.subscriber.js.map +1 -1
  42. package/dist/system/subscribers/comment.subscriber.d.ts +2 -2
  43. package/dist/system/subscribers/comment.subscriber.js +4 -4
  44. package/dist/system/subscribers/comment.subscriber.js.map +1 -1
  45. package/dist/system/subscribers/credential.ip.subscriber.d.ts +3 -3
  46. package/dist/system/subscribers/credential.ip.subscriber.js +5 -5
  47. package/dist/system/subscribers/credential.ip.subscriber.js.map +1 -1
  48. package/dist/system/subscribers/document.subscriber.d.ts +2 -2
  49. package/dist/system/subscribers/document.subscriber.js +4 -4
  50. package/dist/system/subscribers/document.subscriber.js.map +1 -1
  51. package/dist/system/subscribers/mail.event.subscriber.d.ts +3 -3
  52. package/dist/system/subscribers/mail.event.subscriber.js +3 -3
  53. package/dist/system/subscribers/mail.event.subscriber.js.map +1 -1
  54. package/dist/system/subscribers/mail.recipient.subscriber.d.ts +2 -2
  55. package/dist/system/subscribers/mail.recipient.subscriber.js +2 -2
  56. package/dist/system/subscribers/mail.recipient.subscriber.js.map +1 -1
  57. package/dist/system/subscribers/mail.validation.subscriber.d.ts +3 -3
  58. package/dist/system/subscribers/mail.validation.subscriber.js +5 -5
  59. package/dist/system/subscribers/mail.validation.subscriber.js.map +1 -1
  60. package/dist/system/subscribers/mobile.validation.subscriber.d.ts +2 -2
  61. package/dist/system/subscribers/mobile.validation.subscriber.js +4 -4
  62. package/dist/system/subscribers/mobile.validation.subscriber.js.map +1 -1
  63. package/dist/system/subscribers/property.subscriber.d.ts +3 -3
  64. package/dist/system/subscribers/property.subscriber.js +7 -7
  65. package/dist/system/subscribers/property.subscriber.js.map +1 -1
  66. package/dist/system/subscribers/relationship.subscriber.d.ts +5 -4
  67. package/dist/system/subscribers/relationship.subscriber.js +7 -5
  68. package/dist/system/subscribers/relationship.subscriber.js.map +1 -1
  69. package/dist/system/subscribers/scheduled.event.subscriber.d.ts +2 -2
  70. package/dist/system/subscribers/scheduled.event.subscriber.js +4 -4
  71. package/dist/system/subscribers/scheduled.event.subscriber.js.map +1 -1
  72. package/dist/system/subscribers/sms.message.subscriber.d.ts +2 -2
  73. package/dist/system/subscribers/sms.message.subscriber.js +4 -4
  74. package/dist/system/subscribers/sms.message.subscriber.js.map +1 -1
  75. package/dist/system/subscribers/user.group.member.subscriber.d.ts +3 -3
  76. package/dist/system/subscribers/user.group.member.subscriber.js +5 -5
  77. package/dist/system/subscribers/user.group.member.subscriber.js.map +1 -1
  78. package/dist/system/subscribers/user.group.permission.subscriber.d.ts +2 -2
  79. package/dist/system/subscribers/user.group.permission.subscriber.js +4 -4
  80. package/dist/system/subscribers/user.group.permission.subscriber.js.map +1 -1
  81. package/dist/system/subscribers/user.group.role.subscriber.d.ts +3 -3
  82. package/dist/system/subscribers/user.group.role.subscriber.js +5 -5
  83. package/dist/system/subscribers/user.group.role.subscriber.js.map +1 -1
  84. package/package.json +1 -1
@@ -24,11 +24,11 @@ let ColumnSubscriber = class ColumnSubscriber extends common_subscriber_1.Common
24
24
  listenTo() {
25
25
  return column_entity_1.ColumnEntity;
26
26
  }
27
- async afterInsert(event) {
28
- await this.columnMapperJob.dispatch(event.entity);
27
+ async afterInsert(evt) {
28
+ return this.triggerJob(evt, this.columnMapperJob);
29
29
  }
30
- async afterUpdate(event) {
31
- await this.columnMapperJob.dispatch(event.entity);
30
+ async afterUpdate(evt) {
31
+ return this.triggerJob(evt, this.columnMapperJob);
32
32
  }
33
33
  };
34
34
  exports.ColumnSubscriber = ColumnSubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"column.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/column.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,6DAAyD;AACzD,iEAA4D;AAErD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oCAA8B;IAChE,YACqB,UAAsB,EACtB,eAAgC;QAEjD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,oBAAe,GAAf,eAAe,CAAiB;QAGjD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,4BAAY,CAAC;IACxB,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAAgC;QAC9C,MAAM,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAgC;QAC9C,MAAM,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;CACJ,CAAA;AAlBY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACL,mCAAe;GAH5C,gBAAgB,CAkB5B"}
1
+ {"version":3,"file":"column.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/column.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,6DAAyD;AACzD,iEAA4D;AAErD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oCAA8B;IAChE,YACqB,UAAsB,EACtB,eAAgC;QAEjD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,oBAAe,GAAf,eAAe,CAAiB;QAGjD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,4BAAY,CAAC;IACxB,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAA8B;QAC5C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAA8B;QAC5C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IACtD,CAAC;CACJ,CAAA;AAlBY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACL,mCAAe;GAH5C,gBAAgB,CAkB5B"}
@@ -7,6 +7,6 @@ export declare class CommentSubscriber extends CommonSubscriber<CommentEntity> {
7
7
  private readonly commentJob;
8
8
  constructor(dataSource: DataSource, commentJob: CommentJob);
9
9
  listenTo(): typeof CommentEntity;
10
- afterInsert(event: InsertEvent<CommentEntity>): Promise<void>;
11
- afterUpdate(event: UpdateEvent<CommentEntity>): Promise<void>;
10
+ afterInsert(evt: InsertEvent<CommentEntity>): Promise<any>;
11
+ afterUpdate(evt: UpdateEvent<CommentEntity>): Promise<any>;
12
12
  }
@@ -24,11 +24,11 @@ let CommentSubscriber = class CommentSubscriber extends common_subscriber_1.Comm
24
24
  listenTo() {
25
25
  return comment_entity_1.CommentEntity;
26
26
  }
27
- async afterInsert(event) {
28
- await this.commentJob.delayedDispatch(this.getEventData(event));
27
+ async afterInsert(evt) {
28
+ return this.triggerJob(evt, this.commentJob);
29
29
  }
30
- async afterUpdate(event) {
31
- await this.commentJob.delayedDispatch(this.getEventData(event));
30
+ async afterUpdate(evt) {
31
+ return this.triggerJob(evt, this.commentJob);
32
32
  }
33
33
  };
34
34
  exports.CommentSubscriber = CommentSubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"comment.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/comment.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,+DAA2D;AAC3D,qDAAiD;AAG1C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,oCAA+B;IAClE,YACqB,UAAsB,EACtB,UAAsB;QAEvC,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,eAAU,GAAV,UAAU,CAAY;QAGvC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,8BAAa,CAAC;IACzB,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAAiC;QAC/C,MAAM,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACpE,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAiC;QAC/C,MAAM,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACpE,CAAC;CACJ,CAAA;AAlBY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACV,wBAAU;GAHlC,iBAAiB,CAkB7B"}
1
+ {"version":3,"file":"comment.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/comment.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,+DAA2D;AAC3D,qDAAiD;AAG1C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,oCAA+B;IAClE,YACqB,UAAsB,EACtB,UAAsB;QAEvC,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,eAAU,GAAV,UAAU,CAAY;QAGvC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,8BAAa,CAAC;IACzB,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAA+B;QAC7C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAA+B;QAC7C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;CACJ,CAAA;AAlBY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACV,wBAAU;GAHlC,iBAAiB,CAkB7B"}
@@ -1,12 +1,12 @@
1
1
  import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
2
+ import { CommonSubscriber } from '../../common/libraries/common.subscriber';
2
3
  import { CredentialIpEntity } from '../entities/credential.ip.entity';
3
4
  import { CredentialIpJob } from '../jobs/credential.ip.job';
4
- import { CommonSubscriber } from '../../common/libraries/common.subscriber';
5
5
  export declare class CredentialIpSubscriber extends CommonSubscriber<CredentialIpEntity> {
6
6
  private readonly dataSource;
7
7
  private readonly credentialIpJob;
8
8
  constructor(dataSource: DataSource, credentialIpJob: CredentialIpJob);
9
9
  listenTo(): typeof CredentialIpEntity;
10
- afterInsert(event: InsertEvent<CredentialIpEntity>): Promise<void>;
11
- afterUpdate(event: UpdateEvent<CredentialIpEntity>): Promise<void>;
10
+ afterInsert(evt: InsertEvent<CredentialIpEntity>): Promise<any>;
11
+ afterUpdate(evt: UpdateEvent<CredentialIpEntity>): Promise<any>;
12
12
  }
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CredentialIpSubscriber = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
+ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
14
15
  const credential_ip_entity_1 = require("../entities/credential.ip.entity");
15
16
  const credential_ip_job_1 = require("../jobs/credential.ip.job");
16
- const common_subscriber_1 = require("../../common/libraries/common.subscriber");
17
17
  let CredentialIpSubscriber = class CredentialIpSubscriber extends common_subscriber_1.CommonSubscriber {
18
18
  constructor(dataSource, credentialIpJob) {
19
19
  super();
@@ -24,11 +24,11 @@ let CredentialIpSubscriber = class CredentialIpSubscriber extends common_subscri
24
24
  listenTo() {
25
25
  return credential_ip_entity_1.CredentialIpEntity;
26
26
  }
27
- async afterInsert(event) {
28
- await this.credentialIpJob.delayedDispatch(this.getEventData(event));
27
+ async afterInsert(evt) {
28
+ return this.triggerJob(evt, this.credentialIpJob);
29
29
  }
30
- async afterUpdate(event) {
31
- await this.credentialIpJob.delayedDispatch(this.getEventData(event));
30
+ async afterUpdate(evt) {
31
+ return this.triggerJob(evt, this.credentialIpJob);
32
32
  }
33
33
  };
34
34
  exports.CredentialIpSubscriber = CredentialIpSubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"credential.ip.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/credential.ip.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,2EAAsE;AACtE,iEAA4D;AAC5D,gFAA4E;AAErE,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oCAAoC;IAC5E,YACqB,UAAsB,EACtB,eAAgC;QAEjD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,oBAAe,GAAf,eAAe,CAAiB;QAGjD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,yCAAkB,CAAC;IAC9B,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAAsC;QACpD,MAAM,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACzE,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAsC;QACpD,MAAM,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACzE,CAAC;CACJ,CAAA;AAlBY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACL,mCAAe;GAH5C,sBAAsB,CAkBlC"}
1
+ {"version":3,"file":"credential.ip.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/credential.ip.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,2EAAsE;AACtE,iEAA4D;AAErD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oCAAoC;IAC5E,YACqB,UAAsB,EACtB,eAAgC;QAEjD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,oBAAe,GAAf,eAAe,CAAiB;QAGjD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,yCAAkB,CAAC;IAC9B,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAoC;QAClD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAoC;QAClD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IACtD,CAAC;CACJ,CAAA;AAlBY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACL,mCAAe;GAH5C,sBAAsB,CAkBlC"}
@@ -7,6 +7,6 @@ export declare class DocumentSubscriber extends CommonSubscriber<DocumentEntity>
7
7
  private readonly documentJob;
8
8
  constructor(dataSource: DataSource, documentJob: DocumentJob);
9
9
  listenTo(): typeof DocumentEntity;
10
- afterInsert(event: InsertEvent<DocumentEntity>): Promise<void>;
11
- afterUpdate(event: UpdateEvent<DocumentEntity>): Promise<void>;
10
+ afterInsert(evt: InsertEvent<DocumentEntity>): Promise<any>;
11
+ afterUpdate(evt: UpdateEvent<DocumentEntity>): Promise<any>;
12
12
  }
@@ -24,11 +24,11 @@ let DocumentSubscriber = class DocumentSubscriber extends common_subscriber_1.Co
24
24
  listenTo() {
25
25
  return document_entity_1.DocumentEntity;
26
26
  }
27
- async afterInsert(event) {
28
- await this.documentJob.delayedDispatch(this.getEventData(event));
27
+ async afterInsert(evt) {
28
+ return this.triggerJob(evt, this.documentJob);
29
29
  }
30
- async afterUpdate(event) {
31
- await this.documentJob.delayedDispatch(this.getEventData(event));
30
+ async afterUpdate(evt) {
31
+ return this.triggerJob(evt, this.documentJob);
32
32
  }
33
33
  };
34
34
  exports.DocumentSubscriber = DocumentSubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"document.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/document.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,iEAA6D;AAC7D,uDAAmD;AAG5C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,oCAAgC;IACpE,YACqB,UAAsB,EACtB,WAAwB;QAEzC,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,gBAAW,GAAX,WAAW,CAAa;QAGzC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,gCAAc,CAAC;IAC1B,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAAkC;QAChD,MAAM,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAkC;QAChD,MAAM,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;CACJ,CAAA;AAlBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,0BAAW;GAHpC,kBAAkB,CAkB9B"}
1
+ {"version":3,"file":"document.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/document.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,iEAA6D;AAC7D,uDAAmD;AAG5C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,oCAAgC;IACpE,YACqB,UAAsB,EACtB,WAAwB;QAEzC,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,gBAAW,GAAX,WAAW,CAAa;QAGzC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,gCAAc,CAAC;IAC1B,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAgC;QAC9C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAgC;QAC9C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC;CACJ,CAAA;AAlBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,0BAAW;GAHpC,kBAAkB,CAkB9B"}
@@ -1,12 +1,12 @@
1
1
  import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
2
+ import { CommonSubscriber } from '../../common/libraries/common.subscriber';
2
3
  import { MailEventEntity } from '../entities/mail.event.entity';
3
4
  import { MailEventJob } from '../jobs/mail.event.job';
4
- import { CommonSubscriber } from '../../common/libraries/common.subscriber';
5
5
  export declare class MailEventSubscriber extends CommonSubscriber<MailEventEntity> {
6
6
  private readonly dataSource;
7
7
  private readonly mailEventJob;
8
8
  constructor(dataSource: DataSource, mailEventJob: MailEventJob);
9
9
  listenTo(): typeof MailEventEntity;
10
- afterInsert(evt: InsertEvent<MailEventEntity>): Promise<void>;
11
- afterUpdate(evt: UpdateEvent<MailEventEntity>): Promise<void>;
10
+ afterInsert(evt: InsertEvent<MailEventEntity>): Promise<any>;
11
+ afterUpdate(evt: UpdateEvent<MailEventEntity>): Promise<any>;
12
12
  }
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MailEventSubscriber = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
+ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
14
15
  const mail_event_entity_1 = require("../entities/mail.event.entity");
15
16
  const mail_event_job_1 = require("../jobs/mail.event.job");
16
- const common_subscriber_1 = require("../../common/libraries/common.subscriber");
17
17
  let MailEventSubscriber = class MailEventSubscriber extends common_subscriber_1.CommonSubscriber {
18
18
  constructor(dataSource, mailEventJob) {
19
19
  super();
@@ -25,10 +25,10 @@ let MailEventSubscriber = class MailEventSubscriber extends common_subscriber_1.
25
25
  return mail_event_entity_1.MailEventEntity;
26
26
  }
27
27
  async afterInsert(evt) {
28
- await this.mailEventJob.delayedDispatch(this.getEventData(evt));
28
+ return this.triggerJob(evt, this.mailEventJob);
29
29
  }
30
30
  async afterUpdate(evt) {
31
- await this.mailEventJob.delayedDispatch(this.getEventData(evt));
31
+ return this.triggerJob(evt, this.mailEventJob);
32
32
  }
33
33
  };
34
34
  exports.MailEventSubscriber = MailEventSubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"mail.event.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/mail.event.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,qEAAgE;AAChE,2DAAsD;AACtD,gFAA4E;AAGrE,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,oCAAiC;IACtE,YACqB,UAAsB,EACtB,YAA0B;QAE3C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,iBAAY,GAAZ,YAAY,CAAc;QAG3C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,mCAAe,CAAC;IAC3B,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAiC;QAC/C,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IACpE,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAiC;QAC/C,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IACpE,CAAC;CACJ,CAAA;AAlBY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACR,6BAAY;GAHtC,mBAAmB,CAkB/B"}
1
+ {"version":3,"file":"mail.event.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/mail.event.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,qEAAgE;AAChE,2DAAsD;AAG/C,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,oCAAiC;IACtE,YACqB,UAAsB,EACtB,YAA0B;QAE3C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,iBAAY,GAAZ,YAAY,CAAc;QAG3C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,mCAAe,CAAC;IAC3B,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAiC;QAC/C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAiC;QAC/C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IACnD,CAAC;CACJ,CAAA;AAlBY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACR,6BAAY;GAHtC,mBAAmB,CAkB/B"}
@@ -7,6 +7,6 @@ export declare class MailRecipientSubscriber extends CommonSubscriber<MailRecipi
7
7
  private readonly mailRecipientJob;
8
8
  constructor(dataSource: DataSource, mailRecipientJob: MailRecipientJob);
9
9
  listenTo(): typeof MailRecipientEntity;
10
- afterInsert(evt: InsertEvent<MailRecipientEntity>): Promise<void>;
11
- afterUpdate(evt: UpdateEvent<MailRecipientEntity>): Promise<void>;
10
+ afterInsert(evt: InsertEvent<MailRecipientEntity>): Promise<any>;
11
+ afterUpdate(evt: UpdateEvent<MailRecipientEntity>): Promise<any>;
12
12
  }
@@ -25,10 +25,10 @@ let MailRecipientSubscriber = class MailRecipientSubscriber extends common_subsc
25
25
  return mail_recipient_entity_1.MailRecipientEntity;
26
26
  }
27
27
  async afterInsert(evt) {
28
- await this.mailRecipientJob.delayedDispatch(this.getEventData(evt));
28
+ return this.triggerJob(evt, this.mailRecipientJob);
29
29
  }
30
30
  async afterUpdate(evt) {
31
- await this.mailRecipientJob.delayedDispatch(this.getEventData(evt));
31
+ return this.triggerJob(evt, this.mailRecipientJob);
32
32
  }
33
33
  };
34
34
  exports.MailRecipientSubscriber = MailRecipientSubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"mail.recipient.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/mail.recipient.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,6EAAwE;AACxE,mEAA8D;AAGvD,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,oCAAqC;IAC9E,YACqB,UAAsB,EACtB,gBAAkC;QAEnD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,qBAAgB,GAAhB,gBAAgB,CAAkB;QAGnD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,2CAAmB,CAAC;IAC/B,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAqC;QACnD,MAAM,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IACxE,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAqC;QACnD,MAAM,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IACxE,CAAC;CACJ,CAAA;AAlBY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACJ,qCAAgB;GAH9C,uBAAuB,CAkBnC"}
1
+ {"version":3,"file":"mail.recipient.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/mail.recipient.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,6EAAwE;AACxE,mEAA8D;AAGvD,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,oCAAqC;IAC9E,YACqB,UAAsB,EACtB,gBAAkC;QAEnD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,qBAAgB,GAAhB,gBAAgB,CAAkB;QAGnD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,2CAAmB,CAAC;IAC/B,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAqC;QACnD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACvD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAqC;QACnD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACvD,CAAC;CACJ,CAAA;AAlBY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACJ,qCAAgB;GAH9C,uBAAuB,CAkBnC"}
@@ -1,12 +1,12 @@
1
1
  import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
2
+ import { CommonSubscriber } from '../../common/libraries/common.subscriber';
2
3
  import { MailValidationEntity } from '../entities/mail.validation.entity';
3
4
  import { MailValidationJob } from '../jobs/mail.validation.job';
4
- import { CommonSubscriber } from '../../common/libraries/common.subscriber';
5
5
  export declare class MailValidationSubscriber extends CommonSubscriber<MailValidationEntity> {
6
6
  private readonly dataSource;
7
7
  private readonly mailValidationJob;
8
8
  constructor(dataSource: DataSource, mailValidationJob: MailValidationJob);
9
9
  listenTo(): typeof MailValidationEntity;
10
- afterInsert(event: InsertEvent<MailValidationEntity>): Promise<void>;
11
- afterUpdate(event: UpdateEvent<MailValidationEntity>): Promise<void>;
10
+ afterInsert(evt: InsertEvent<MailValidationEntity>): Promise<any>;
11
+ afterUpdate(evt: UpdateEvent<MailValidationEntity>): Promise<any>;
12
12
  }
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MailValidationSubscriber = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
+ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
14
15
  const mail_validation_entity_1 = require("../entities/mail.validation.entity");
15
16
  const mail_validation_job_1 = require("../jobs/mail.validation.job");
16
- const common_subscriber_1 = require("../../common/libraries/common.subscriber");
17
17
  let MailValidationSubscriber = class MailValidationSubscriber extends common_subscriber_1.CommonSubscriber {
18
18
  constructor(dataSource, mailValidationJob) {
19
19
  super();
@@ -24,11 +24,11 @@ let MailValidationSubscriber = class MailValidationSubscriber extends common_sub
24
24
  listenTo() {
25
25
  return mail_validation_entity_1.MailValidationEntity;
26
26
  }
27
- async afterInsert(event) {
28
- await this.mailValidationJob.delayedDispatch(this.getEventData(event));
27
+ async afterInsert(evt) {
28
+ return this.triggerJob(evt, this.mailValidationJob);
29
29
  }
30
- async afterUpdate(event) {
31
- await this.mailValidationJob.delayedDispatch(this.getEventData(event));
30
+ async afterUpdate(evt) {
31
+ return this.triggerJob(evt, this.mailValidationJob);
32
32
  }
33
33
  };
34
34
  exports.MailValidationSubscriber = MailValidationSubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"mail.validation.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/mail.validation.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,+EAA0E;AAC1E,qEAAgE;AAChE,gFAA4E;AAErE,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,oCAAsC;IAChF,YACqB,UAAsB,EACtB,iBAAoC;QAErD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,sBAAiB,GAAjB,iBAAiB,CAAmB;QAGrD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,6CAAoB,CAAC;IAChC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAAwC;QACtD,MAAM,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3E,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAwC;QACtD,MAAM,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3E,CAAC;CACJ,CAAA;AAlBY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACH,uCAAiB;GAHhD,wBAAwB,CAkBpC"}
1
+ {"version":3,"file":"mail.validation.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/mail.validation.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,+EAA0E;AAC1E,qEAAgE;AAEzD,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,oCAAsC;IAChF,YACqB,UAAsB,EACtB,iBAAoC;QAErD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,sBAAiB,GAAjB,iBAAiB,CAAmB;QAGrD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,6CAAoB,CAAC;IAChC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAsC;QACpD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAsC;QACpD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACxD,CAAC;CACJ,CAAA;AAlBY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACH,uCAAiB;GAHhD,wBAAwB,CAkBpC"}
@@ -7,6 +7,6 @@ export declare class MobileValidationSubscriber extends CommonSubscriber<MobileV
7
7
  private readonly mobileValidationJob;
8
8
  constructor(dataSource: DataSource, mobileValidationJob: MobileValidationJob);
9
9
  listenTo(): typeof MobileValidationEntity;
10
- afterInsert(event: InsertEvent<MobileValidationEntity>): Promise<void>;
11
- afterUpdate(event: UpdateEvent<MobileValidationEntity>): Promise<void>;
10
+ afterInsert(evt: InsertEvent<MobileValidationEntity>): Promise<any>;
11
+ afterUpdate(evt: UpdateEvent<MobileValidationEntity>): Promise<any>;
12
12
  }
@@ -24,11 +24,11 @@ let MobileValidationSubscriber = class MobileValidationSubscriber extends common
24
24
  listenTo() {
25
25
  return mobile_validation_entity_1.MobileValidationEntity;
26
26
  }
27
- async afterInsert(event) {
28
- await this.mobileValidationJob.delayedDispatch(this.getEventData(event));
27
+ async afterInsert(evt) {
28
+ return this.triggerJob(evt, this.mobileValidationJob);
29
29
  }
30
- async afterUpdate(event) {
31
- await this.mobileValidationJob.delayedDispatch(this.getEventData(event));
30
+ async afterUpdate(evt) {
31
+ return this.triggerJob(evt, this.mobileValidationJob);
32
32
  }
33
33
  };
34
34
  exports.MobileValidationSubscriber = MobileValidationSubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"mobile.validation.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/mobile.validation.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,mFAA8E;AAC9E,yEAAoE;AAE7D,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,oCAAwC;IACpF,YACqB,UAAsB,EACtB,mBAAwC;QAEzD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,wBAAmB,GAAnB,mBAAmB,CAAqB;QAGzD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,iDAAsB,CAAC;IAClC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAA0C;QACxD,MAAM,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7E,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAA0C;QACxD,MAAM,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7E,CAAC;CACJ,CAAA;AAlBY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACD,2CAAmB;GAHpD,0BAA0B,CAkBtC"}
1
+ {"version":3,"file":"mobile.validation.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/mobile.validation.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,mFAA8E;AAC9E,yEAAoE;AAE7D,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,oCAAwC;IACpF,YACqB,UAAsB,EACtB,mBAAwC;QAEzD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,wBAAmB,GAAnB,mBAAmB,CAAqB;QAGzD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,iDAAsB,CAAC;IAClC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAwC;QACtD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAC1D,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAwC;QACtD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAC1D,CAAC;CACJ,CAAA;AAlBY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACD,2CAAmB;GAHpD,0BAA0B,CAkBtC"}
@@ -8,7 +8,7 @@ export declare class PropertySubscriber extends CommonSubscriber<PropertyEntity>
8
8
  constructor(dataSource: DataSource, propertyJob: PropertyJob);
9
9
  listenTo(): typeof PropertyEntity;
10
10
  beforeInsert(event: InsertEvent<PropertyEntity>): Promise<void>;
11
- afterInsert(event: InsertEvent<PropertyEntity>): Promise<any>;
12
- beforeUpdate(event: UpdateEvent<PropertyEntity>): Promise<void>;
13
- afterUpdate(event: UpdateEvent<PropertyEntity>): Promise<any>;
11
+ afterInsert(evt: InsertEvent<PropertyEntity>): Promise<any>;
12
+ beforeUpdate(evt: UpdateEvent<PropertyEntity>): Promise<void>;
13
+ afterUpdate(evt: UpdateEvent<PropertyEntity>): Promise<any>;
14
14
  }
@@ -29,15 +29,15 @@ let PropertySubscriber = class PropertySubscriber extends common_subscriber_1.Co
29
29
  if (event.entity.is_encrypted)
30
30
  event.entity.value = custom_crypt_1.CustomCrypt.encrypt(event.entity.value);
31
31
  }
32
- async afterInsert(event) {
33
- return this.propertyJob.dispatch(this.getInsertEventData(event));
32
+ async afterInsert(evt) {
33
+ return this.triggerJob(evt, this.propertyJob);
34
34
  }
35
- async beforeUpdate(event) {
36
- if (event.entity.is_encrypted && event.entity.value !== event.databaseEntity.value)
37
- event.entity.value = custom_crypt_1.CustomCrypt.encrypt(event.entity.value);
35
+ async beforeUpdate(evt) {
36
+ if (evt.entity.is_encrypted && evt.entity.value !== evt.databaseEntity.value)
37
+ evt.entity.value = custom_crypt_1.CustomCrypt.encrypt(evt.entity.value);
38
38
  }
39
- async afterUpdate(event) {
40
- return this.propertyJob.dispatch(this.getUpdateEventData(event));
39
+ async afterUpdate(evt) {
40
+ return this.triggerJob(evt, this.propertyJob);
41
41
  }
42
42
  };
43
43
  exports.PropertySubscriber = PropertySubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"property.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/property.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,sEAAkE;AAClE,iEAA6D;AAC7D,uDAAmD;AAE5C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,oCAAgC;IACpE,YACqB,UAAsB,EACtB,WAAwB;QAEzC,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,gBAAW,GAAX,WAAW,CAAa;QAGzC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,gCAAc,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,KAAkC;QACjD,IAAI,KAAK,CAAC,MAAM,CAAC,YAAY;YAAE,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,0BAAW,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAChG,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAkC;QAChD,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,KAAkC;QACjD,IAAI,KAAK,CAAC,MAAM,CAAC,YAAY,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,KAAK,KAAK,CAAC,cAAc,CAAC,KAAK;YAC9E,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,0BAAW,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrE,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAkC;QAChD,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;CACJ,CAAA;AA5BY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,0BAAW;GAHpC,kBAAkB,CA4B9B"}
1
+ {"version":3,"file":"property.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/property.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,sEAAkE;AAClE,iEAA6D;AAC7D,uDAAmD;AAE5C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,oCAAgC;IACpE,YACqB,UAAsB,EACtB,WAAwB;QAEzC,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,gBAAW,GAAX,WAAW,CAAa;QAGzC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,gCAAc,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,KAAkC;QACjD,IAAI,KAAK,CAAC,MAAM,CAAC,YAAY;YAAE,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,0BAAW,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAChG,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAgC;QAC9C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,GAAgC;QAC/C,IAAI,GAAG,CAAC,MAAM,CAAC,YAAY,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,KAAK,GAAG,CAAC,cAAc,CAAC,KAAK;YAAE,GAAG,CAAC,MAAM,CAAC,KAAK,GAAG,0BAAW,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3I,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAgC;QAC9C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC;CACJ,CAAA;AA3BY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,0BAAW;GAHpC,kBAAkB,CA2B9B"}
@@ -1,11 +1,12 @@
1
- import { DataSource, EntitySubscriberInterface, InsertEvent, UpdateEvent } from 'typeorm';
1
+ import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
2
+ import { CommonSubscriber } from '../../common/libraries/common.subscriber';
2
3
  import { RelationshipEntity } from '../entities/relationship.entity';
3
4
  import { RelationshipMapperJob } from '../jobs/relationship.mapper.job';
4
- export declare class RelationshipSubscriber implements EntitySubscriberInterface<RelationshipEntity> {
5
+ export declare class RelationshipSubscriber extends CommonSubscriber<RelationshipEntity> {
5
6
  private readonly dataSource;
6
7
  private readonly relationshipMapperJob;
7
8
  constructor(dataSource: DataSource, relationshipMapperJob: RelationshipMapperJob);
8
9
  listenTo(): typeof RelationshipEntity;
9
- afterInsert(event: InsertEvent<RelationshipEntity>): Promise<void>;
10
- afterUpdate(event: UpdateEvent<RelationshipEntity>): Promise<void>;
10
+ afterInsert(evt: InsertEvent<RelationshipEntity>): Promise<any>;
11
+ afterUpdate(evt: UpdateEvent<RelationshipEntity>): Promise<any>;
11
12
  }
@@ -11,10 +11,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.RelationshipSubscriber = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
+ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
14
15
  const relationship_entity_1 = require("../entities/relationship.entity");
15
16
  const relationship_mapper_job_1 = require("../jobs/relationship.mapper.job");
16
- let RelationshipSubscriber = class RelationshipSubscriber {
17
+ let RelationshipSubscriber = class RelationshipSubscriber extends common_subscriber_1.CommonSubscriber {
17
18
  constructor(dataSource, relationshipMapperJob) {
19
+ super();
18
20
  this.dataSource = dataSource;
19
21
  this.relationshipMapperJob = relationshipMapperJob;
20
22
  dataSource.subscribers.push(this);
@@ -22,11 +24,11 @@ let RelationshipSubscriber = class RelationshipSubscriber {
22
24
  listenTo() {
23
25
  return relationship_entity_1.RelationshipEntity;
24
26
  }
25
- async afterInsert(event) {
26
- await this.relationshipMapperJob.dispatch(event.entity);
27
+ async afterInsert(evt) {
28
+ return this.triggerJob(evt, this.relationshipMapperJob);
27
29
  }
28
- async afterUpdate(event) {
29
- await this.relationshipMapperJob.dispatch(event.entity);
30
+ async afterUpdate(evt) {
31
+ return this.triggerJob(evt, this.relationshipMapperJob);
30
32
  }
31
33
  };
32
34
  exports.RelationshipSubscriber = RelationshipSubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"relationship.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/relationship.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2G;AAC3G,yEAAqE;AACrE,6EAAwE;AAGjE,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAC/B,YACqB,UAAsB,EACtB,qBAA4C;QAD5C,eAAU,GAAV,UAAU,CAAY;QACtB,0BAAqB,GAArB,qBAAqB,CAAuB;QAE7D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,wCAAkB,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAsC;QACpD,MAAM,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAsC;QACpD,MAAM,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5D,CAAC;CACJ,CAAA;AAlBY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACC,+CAAqB;GAHxD,sBAAsB,CAkBlC"}
1
+ {"version":3,"file":"relationship.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/relationship.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,yEAAqE;AACrE,6EAAwE;AAGjE,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oCAAoC;IAC5E,YACqB,UAAsB,EACtB,qBAA4C;QAE7D,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,0BAAqB,GAArB,qBAAqB,CAAuB;QAG7D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,wCAAkB,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAoC;QAClD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAoC;QAClD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC5D,CAAC;CACJ,CAAA;AAnBY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACC,+CAAqB;GAHxD,sBAAsB,CAmBlC"}
@@ -8,6 +8,6 @@ export declare class ScheduledEventSubscriber extends CommonSubscriber<Scheduled
8
8
  constructor(dataSource: DataSource, scheduledEventJob: ScheduledEventJob);
9
9
  listenTo(): typeof ScheduledEventEntity;
10
10
  beforeInsert(event: InsertEvent<ScheduledEventEntity>): Promise<void>;
11
- afterInsert(event: InsertEvent<ScheduledEventEntity>): Promise<void>;
12
- afterUpdate(event: UpdateEvent<ScheduledEventEntity>): Promise<void>;
11
+ afterInsert(evt: InsertEvent<ScheduledEventEntity>): Promise<any>;
12
+ afterUpdate(evt: UpdateEvent<ScheduledEventEntity>): Promise<any>;
13
13
  }
@@ -30,11 +30,11 @@ let ScheduledEventSubscriber = class ScheduledEventSubscriber extends common_sub
30
30
  ...{},
31
31
  };
32
32
  }
33
- async afterInsert(event) {
34
- await this.scheduledEventJob.dispatch(this.getEventData(event));
33
+ async afterInsert(evt) {
34
+ return this.triggerJob(evt, this.scheduledEventJob);
35
35
  }
36
- async afterUpdate(event) {
37
- await this.scheduledEventJob.dispatch(this.getEventData(event));
36
+ async afterUpdate(evt) {
37
+ return this.triggerJob(evt, this.scheduledEventJob);
38
38
  }
39
39
  };
40
40
  exports.ScheduledEventSubscriber = ScheduledEventSubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"scheduled.event.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/scheduled.event.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,+EAA0E;AAC1E,qEAAgE;AAGzD,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,oCAAsC;IAChF,YACqB,UAAsB,EACtB,iBAAoC;QAErD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,sBAAiB,GAAjB,iBAAiB,CAAmB;QAGrD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,6CAAoB,CAAC;IAChC,CAAC;IACD,KAAK,CAAC,YAAY,CAAC,KAAwC;QACvD,KAAK,CAAC,MAAM,CAAC,UAAU,GAAG;YACtB,GAAG,KAAK,CAAC,MAAM,CAAC,UAAU;YAC1B,GAAG,EAAE;SACR,CAAC;IACN,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAwC;QACtD,MAAM,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACpE,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAAwC;QACtD,MAAM,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACpE,CAAC;CACJ,CAAA;AAxBY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACH,uCAAiB;GAHhD,wBAAwB,CAwBpC"}
1
+ {"version":3,"file":"scheduled.event.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/scheduled.event.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,+EAA0E;AAC1E,qEAAgE;AAGzD,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,oCAAsC;IAChF,YACqB,UAAsB,EACtB,iBAAoC;QAErD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,sBAAiB,GAAjB,iBAAiB,CAAmB;QAGrD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,6CAAoB,CAAC;IAChC,CAAC;IACD,KAAK,CAAC,YAAY,CAAC,KAAwC;QACvD,KAAK,CAAC,MAAM,CAAC,UAAU,GAAG;YACtB,GAAG,KAAK,CAAC,MAAM,CAAC,UAAU;YAC1B,GAAG,EAAE;SACR,CAAC;IACN,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAsC;QACpD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACxD,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAsC;QACpD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACxD,CAAC;CACJ,CAAA;AAxBY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACH,uCAAiB;GAHhD,wBAAwB,CAwBpC"}
@@ -7,6 +7,6 @@ export declare class SmsMessageSubscriber extends CommonSubscriber<SmsMessageEnt
7
7
  private readonly smsMessageJob;
8
8
  constructor(dataSource: DataSource, smsMessageJob: SmsMessageJob);
9
9
  listenTo(): typeof SmsMessageEntity;
10
- afterInsert(event: InsertEvent<SmsMessageEntity>): Promise<void>;
11
- afterUpdate(event: UpdateEvent<SmsMessageEntity>): Promise<void>;
10
+ afterInsert(evt: InsertEvent<SmsMessageEntity>): Promise<any>;
11
+ afterUpdate(evt: UpdateEvent<SmsMessageEntity>): Promise<any>;
12
12
  }
@@ -24,11 +24,11 @@ let SmsMessageSubscriber = class SmsMessageSubscriber extends common_subscriber_
24
24
  listenTo() {
25
25
  return sms_message_entity_1.SmsMessageEntity;
26
26
  }
27
- async afterInsert(event) {
28
- await this.smsMessageJob.dispatch(this.getEventData(event));
27
+ async afterInsert(evt) {
28
+ return this.triggerJob(evt, this.smsMessageJob);
29
29
  }
30
- async afterUpdate(event) {
31
- await this.smsMessageJob.dispatch(this.getEventData(event));
30
+ async afterUpdate(evt) {
31
+ return this.triggerJob(evt, this.smsMessageJob);
32
32
  }
33
33
  };
34
34
  exports.SmsMessageSubscriber = SmsMessageSubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"sms.message.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/sms.message.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,uEAAkE;AAClE,6DAAwD;AAGjD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oCAAkC;IACxE,YACqB,UAAsB,EACtB,aAA4B;QAE7C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,kBAAa,GAAb,aAAa,CAAe;QAG7C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,qCAAgB,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAoC;QAClD,MAAM,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAChE,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAoC;QAClD,MAAM,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAChE,CAAC;CACJ,CAAA;AAnBY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACP,+BAAa;GAHxC,oBAAoB,CAmBhC"}
1
+ {"version":3,"file":"sms.message.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/sms.message.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,uEAAkE;AAClE,6DAAwD;AAGjD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oCAAkC;IACxE,YACqB,UAAsB,EACtB,aAA4B;QAE7C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,kBAAa,GAAb,aAAa,CAAe;QAG7C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,qCAAgB,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAkC;QAChD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAkC;QAChD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACpD,CAAC;CACJ,CAAA;AAnBY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACP,+BAAa;GAHxC,oBAAoB,CAmBhC"}
@@ -1,12 +1,12 @@
1
1
  import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
2
+ import { CommonSubscriber } from '../../common/libraries/common.subscriber';
2
3
  import { UserGroupMemberEntity } from '../entities/user.group.member.entity';
3
4
  import { UserGroupMemberJob } from '../jobs/user.group.member.job';
4
- import { CommonSubscriber } from '../../common/libraries/common.subscriber';
5
5
  export declare class UserGroupMemberSubscriber extends CommonSubscriber<UserGroupMemberEntity> {
6
6
  private readonly dataSource;
7
7
  private readonly userGroupMemberJob;
8
8
  constructor(dataSource: DataSource, userGroupMemberJob: UserGroupMemberJob);
9
9
  listenTo(): typeof UserGroupMemberEntity;
10
- afterInsert(event: InsertEvent<UserGroupMemberEntity>): Promise<void>;
11
- afterUpdate(event: UpdateEvent<UserGroupMemberEntity>): Promise<void>;
10
+ afterInsert(evt: InsertEvent<UserGroupMemberEntity>): Promise<void>;
11
+ afterUpdate(evt: UpdateEvent<UserGroupMemberEntity>): Promise<void>;
12
12
  }
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UserGroupMemberSubscriber = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
+ const common_subscriber_1 = require("../../common/libraries/common.subscriber");
14
15
  const user_group_member_entity_1 = require("../entities/user.group.member.entity");
15
16
  const user_group_member_job_1 = require("../jobs/user.group.member.job");
16
- const common_subscriber_1 = require("../../common/libraries/common.subscriber");
17
17
  let UserGroupMemberSubscriber = class UserGroupMemberSubscriber extends common_subscriber_1.CommonSubscriber {
18
18
  constructor(dataSource, userGroupMemberJob) {
19
19
  super();
@@ -24,11 +24,11 @@ let UserGroupMemberSubscriber = class UserGroupMemberSubscriber extends common_s
24
24
  listenTo() {
25
25
  return user_group_member_entity_1.UserGroupMemberEntity;
26
26
  }
27
- async afterInsert(event) {
28
- await this.userGroupMemberJob.dispatch(event.entity);
27
+ async afterInsert(evt) {
28
+ return this.triggerJob(evt, this.userGroupMemberJob);
29
29
  }
30
- async afterUpdate(event) {
31
- await this.userGroupMemberJob.dispatch(event.entity);
30
+ async afterUpdate(evt) {
31
+ return this.triggerJob(evt, this.userGroupMemberJob);
32
32
  }
33
33
  };
34
34
  exports.UserGroupMemberSubscriber = UserGroupMemberSubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"user.group.member.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/user.group.member.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,mFAA6E;AAC7E,yEAAmE;AACnE,gFAA4E;AAGrE,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,oCAAuC;IAClF,YACqB,UAAsB,EACtB,kBAAsC;QAEvD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,uBAAkB,GAAlB,kBAAkB,CAAoB;QAGvD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,gDAAqB,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAyC;QACvD,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACzD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAyC;QACvD,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACzD,CAAC;CACJ,CAAA;AAnBY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACF,0CAAkB;GAHlD,yBAAyB,CAmBrC"}
1
+ {"version":3,"file":"user.group.member.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/user.group.member.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,gFAA4E;AAC5E,mFAA6E;AAC7E,yEAAmE;AAG5D,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,oCAAuC;IAClF,YACqB,UAAsB,EACtB,kBAAsC;QAEvD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,uBAAkB,GAAlB,kBAAkB,CAAoB;QAGvD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,gDAAqB,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAuC;QACrD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;IACzD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAuC;QACrD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;IACzD,CAAC;CACJ,CAAA;AAnBY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACF,0CAAkB;GAHlD,yBAAyB,CAmBrC"}
@@ -7,6 +7,6 @@ export declare class UserGroupPermissionSubscriber extends CommonSubscriber<User
7
7
  private readonly userGroupPermissionJob;
8
8
  constructor(dataSource: DataSource, userGroupPermissionJob: UserGroupPermissionJob);
9
9
  listenTo(): typeof UserGroupPermissionEntity;
10
- afterInsert(event: InsertEvent<UserGroupPermissionEntity>): Promise<void>;
11
- afterUpdate(event: UpdateEvent<UserGroupPermissionEntity>): Promise<void>;
10
+ afterInsert(evt: InsertEvent<UserGroupPermissionEntity>): Promise<void>;
11
+ afterUpdate(evt: UpdateEvent<UserGroupPermissionEntity>): Promise<void>;
12
12
  }
@@ -24,11 +24,11 @@ let UserGroupPermissionSubscriber = class UserGroupPermissionSubscriber extends
24
24
  listenTo() {
25
25
  return user_group_permission_entity_1.UserGroupPermissionEntity;
26
26
  }
27
- async afterInsert(event) {
28
- await this.userGroupPermissionJob.dispatch(event.entity);
27
+ async afterInsert(evt) {
28
+ return this.triggerJob(evt, this.userGroupPermissionJob);
29
29
  }
30
- async afterUpdate(event) {
31
- await this.userGroupPermissionJob.dispatch(event.entity);
30
+ async afterUpdate(evt) {
31
+ return this.triggerJob(evt, this.userGroupPermissionJob);
32
32
  }
33
33
  };
34
34
  exports.UserGroupPermissionSubscriber = UserGroupPermissionSubscriber;
@@ -1 +1 @@
1
- {"version":3,"file":"user.group.permission.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/user.group.permission.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,2FAAqF;AACrF,iFAA2E;AAC3E,gFAA4E;AAGrE,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,oCAA2C;IAC1F,YACqB,UAAsB,EACtB,sBAA8C;QAE/D,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,2BAAsB,GAAtB,sBAAsB,CAAwB;QAG/D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,wDAAyB,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAA6C;QAC3D,MAAM,IAAI,CAAC,sBAAsB,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAA6C;QAC3D,MAAM,IAAI,CAAC,sBAAsB,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;CACJ,CAAA;AAnBY,sEAA6B;wCAA7B,6BAA6B;IADzC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACE,kDAAsB;GAH1D,6BAA6B,CAmBzC"}
1
+ {"version":3,"file":"user.group.permission.subscriber.js","sourceRoot":"","sources":["../../../src/system/subscribers/user.group.permission.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgF;AAChF,2FAAqF;AACrF,iFAA2E;AAC3E,gFAA4E;AAGrE,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,oCAA2C;IAC1F,YACqB,UAAsB,EACtB,sBAA8C;QAE/D,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,2BAAsB,GAAtB,sBAAsB,CAAwB;QAG/D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,wDAAyB,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAA2C;QACzD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IAC7D,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAA2C;QACzD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IAC7D,CAAC;CACJ,CAAA;AAnBY,sEAA6B;wCAA7B,6BAA6B;IADzC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACE,kDAAsB;GAH1D,6BAA6B,CAmBzC"}