@servicelabsco/slabs-access-manager 0.1.52 → 0.1.54

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 (92) hide show
  1. package/dist/access/dtos/business.email.attributes.dto.d.ts +3 -0
  2. package/dist/access/dtos/business.email.attributes.dto.js +8 -0
  3. package/dist/access/dtos/business.email.attributes.dto.js.map +1 -0
  4. package/dist/access/dtos/email.attachment.attributes.dto.d.ts +5 -0
  5. package/dist/access/dtos/email.attachment.attributes.dto.js +8 -0
  6. package/dist/access/dtos/email.attachment.attributes.dto.js.map +1 -0
  7. package/dist/access/dtos/email.message.attributes.dto.d.ts +8 -0
  8. package/dist/access/dtos/email.message.attributes.dto.js +29 -0
  9. package/dist/access/dtos/email.message.attributes.dto.js.map +1 -0
  10. package/dist/access/dtos/email.recipient.attributes.dto.d.ts +4 -0
  11. package/dist/access/dtos/email.recipient.attributes.dto.js +8 -0
  12. package/dist/access/dtos/email.recipient.attributes.dto.js.map +1 -0
  13. package/dist/access/dtos/index.d.ts +4 -0
  14. package/dist/access/dtos/index.js +4 -0
  15. package/dist/access/dtos/index.js.map +1 -1
  16. package/dist/access/entities/business.email.entity.d.ts +13 -0
  17. package/dist/access/entities/business.email.entity.js +56 -0
  18. package/dist/access/entities/business.email.entity.js.map +1 -0
  19. package/dist/access/entities/email.attachment.entity.d.ts +10 -0
  20. package/dist/access/entities/email.attachment.entity.js +44 -0
  21. package/dist/access/entities/email.attachment.entity.js.map +1 -0
  22. package/dist/access/entities/email.message.entity.d.ts +23 -0
  23. package/dist/access/entities/email.message.entity.js +90 -0
  24. package/dist/access/entities/email.message.entity.js.map +1 -0
  25. package/dist/access/entities/email.recipient.entity.d.ts +10 -0
  26. package/dist/access/entities/email.recipient.entity.js +44 -0
  27. package/dist/access/entities/email.recipient.entity.js.map +1 -0
  28. package/dist/access/entities/index.d.ts +4 -0
  29. package/dist/access/entities/index.js +4 -0
  30. package/dist/access/entities/index.js.map +1 -1
  31. package/dist/access/es6.classes.d.ts +16 -5
  32. package/dist/access/es6.classes.js +32 -0
  33. package/dist/access/es6.classes.js.map +1 -1
  34. package/dist/access/jobs/business.email.job.d.ts +7 -0
  35. package/dist/access/jobs/business.email.job.js +29 -0
  36. package/dist/access/jobs/business.email.job.js.map +1 -0
  37. package/dist/access/jobs/email.attachment.job.d.ts +7 -0
  38. package/dist/access/jobs/email.attachment.job.js +29 -0
  39. package/dist/access/jobs/email.attachment.job.js.map +1 -0
  40. package/dist/access/jobs/email.message.job.d.ts +7 -0
  41. package/dist/access/jobs/email.message.job.js +29 -0
  42. package/dist/access/jobs/email.message.job.js.map +1 -0
  43. package/dist/access/jobs/email.recipient.job.d.ts +7 -0
  44. package/dist/access/jobs/email.recipient.job.js +29 -0
  45. package/dist/access/jobs/email.recipient.job.js.map +1 -0
  46. package/dist/access/jobs/index.d.ts +4 -0
  47. package/dist/access/jobs/index.js +4 -0
  48. package/dist/access/jobs/index.js.map +1 -1
  49. package/dist/access/services/es6.jobs.service.d.ts +9 -1
  50. package/dist/access/services/es6.jobs.service.js +18 -2
  51. package/dist/access/services/es6.jobs.service.js.map +1 -1
  52. package/dist/access/services/listing.service.js +1 -1
  53. package/dist/access/services/listing.service.js.map +1 -1
  54. package/dist/access/subscribers/business.email.subscriber.d.ts +12 -0
  55. package/dist/access/subscribers/business.email.subscriber.js +40 -0
  56. package/dist/access/subscribers/business.email.subscriber.js.map +1 -0
  57. package/dist/access/subscribers/email.attachment.subscriber.d.ts +12 -0
  58. package/dist/access/subscribers/email.attachment.subscriber.js +40 -0
  59. package/dist/access/subscribers/email.attachment.subscriber.js.map +1 -0
  60. package/dist/access/subscribers/email.message.subscriber.d.ts +12 -0
  61. package/dist/access/subscribers/email.message.subscriber.js +40 -0
  62. package/dist/access/subscribers/email.message.subscriber.js.map +1 -0
  63. package/dist/access/subscribers/email.recipient.subscriber.d.ts +12 -0
  64. package/dist/access/subscribers/email.recipient.subscriber.js +40 -0
  65. package/dist/access/subscribers/email.recipient.subscriber.js.map +1 -0
  66. package/dist/access/subscribers/index.d.ts +4 -0
  67. package/dist/access/subscribers/index.js +4 -0
  68. package/dist/access/subscribers/index.js.map +1 -1
  69. package/dist/config/entity.constants.d.ts +8 -0
  70. package/dist/config/entity.constants.js +8 -0
  71. package/dist/config/entity.constants.js.map +1 -1
  72. package/dist/migrations/1689305975277-CreateBusinessEmailTable.d.ts +5 -0
  73. package/dist/migrations/1689305975277-CreateBusinessEmailTable.js +22 -0
  74. package/dist/migrations/1689305975277-CreateBusinessEmailTable.js.map +1 -0
  75. package/dist/migrations/1689317203054-CreateEmailMessageTable.d.ts +5 -0
  76. package/dist/migrations/1689317203054-CreateEmailMessageTable.js +25 -0
  77. package/dist/migrations/1689317203054-CreateEmailMessageTable.js.map +1 -0
  78. package/dist/migrations/1689317391541-CreateEmailRecipientTable.d.ts +5 -0
  79. package/dist/migrations/1689317391541-CreateEmailRecipientTable.js +20 -0
  80. package/dist/migrations/1689317391541-CreateEmailRecipientTable.js.map +1 -0
  81. package/dist/migrations/1689317476761-CreateEmailAttachmentTable.d.ts +5 -0
  82. package/dist/migrations/1689317476761-CreateEmailAttachmentTable.js +20 -0
  83. package/dist/migrations/1689317476761-CreateEmailAttachmentTable.js.map +1 -0
  84. package/dist/migrations/1696962391164-AddMessageIdentifierBzEmailMessagesTable.d.ts +5 -0
  85. package/dist/migrations/1696962391164-AddMessageIdentifierBzEmailMessagesTable.js +20 -0
  86. package/dist/migrations/1696962391164-AddMessageIdentifierBzEmailMessagesTable.js.map +1 -0
  87. package/dist/migrations/1698908871237-AddUserIdColumnBzBusinessEmailsTable.d.ts +5 -0
  88. package/dist/migrations/1698908871237-AddUserIdColumnBzBusinessEmailsTable.js +15 -0
  89. package/dist/migrations/1698908871237-AddUserIdColumnBzBusinessEmailsTable.js.map +1 -0
  90. package/dist/migrations/1700810225363-CreateBulkUploadTypeTable.js +2 -2
  91. package/dist/migrations/1700810225363-CreateBulkUploadTypeTable.js.map +1 -1
  92. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BusinessEmailSubscriber = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const business_email_entity_1 = require("../entities/business.email.entity");
16
+ const business_email_job_1 = require("../jobs/business.email.job");
17
+ let BusinessEmailSubscriber = class BusinessEmailSubscriber extends nestjs_utility_services_1.CommonSubscriber {
18
+ constructor(dataSource, businessEmailJob) {
19
+ super();
20
+ this.dataSource = dataSource;
21
+ this.businessEmailJob = businessEmailJob;
22
+ dataSource.subscribers.push(this);
23
+ }
24
+ listenTo() {
25
+ return business_email_entity_1.BusinessEmailEntity;
26
+ }
27
+ async afterInsert(event) {
28
+ await this.businessEmailJob.delayedDispatch(this.getEventData(event));
29
+ }
30
+ async afterUpdate(event) {
31
+ await this.businessEmailJob.delayedDispatch(this.getEventData(event));
32
+ }
33
+ };
34
+ exports.BusinessEmailSubscriber = BusinessEmailSubscriber;
35
+ exports.BusinessEmailSubscriber = BusinessEmailSubscriber = __decorate([
36
+ (0, typeorm_1.EventSubscriber)(),
37
+ __metadata("design:paramtypes", [typeorm_1.DataSource,
38
+ business_email_job_1.BusinessEmailJob])
39
+ ], BusinessEmailSubscriber);
40
+ //# sourceMappingURL=business.email.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business.email.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/business.email.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,6EAAwE;AACxE,mEAA8D;AAEvD,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,0CAAqC;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,KAAuC;QACrD,MAAM,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAuC;QACrD,MAAM,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1E,CAAC;CACJ,CAAA;AAlBY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACJ,qCAAgB;GAH9C,uBAAuB,CAkBnC"}
@@ -0,0 +1,12 @@
1
+ import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
2
+ import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
3
+ import { EmailAttachmentEntity } from '../entities/email.attachment.entity';
4
+ import { EmailAttachmentJob } from '../jobs/email.attachment.job';
5
+ export declare class EmailAttachmentSubscriber extends CommonSubscriber<EmailAttachmentEntity> {
6
+ private readonly dataSource;
7
+ private readonly emailAttachmentJob;
8
+ constructor(dataSource: DataSource, emailAttachmentJob: EmailAttachmentJob);
9
+ listenTo(): typeof EmailAttachmentEntity;
10
+ afterInsert(event: InsertEvent<EmailAttachmentEntity>): Promise<void>;
11
+ afterUpdate(event: UpdateEvent<EmailAttachmentEntity>): Promise<void>;
12
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EmailAttachmentSubscriber = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const email_attachment_entity_1 = require("../entities/email.attachment.entity");
16
+ const email_attachment_job_1 = require("../jobs/email.attachment.job");
17
+ let EmailAttachmentSubscriber = class EmailAttachmentSubscriber extends nestjs_utility_services_1.CommonSubscriber {
18
+ constructor(dataSource, emailAttachmentJob) {
19
+ super();
20
+ this.dataSource = dataSource;
21
+ this.emailAttachmentJob = emailAttachmentJob;
22
+ dataSource.subscribers.push(this);
23
+ }
24
+ listenTo() {
25
+ return email_attachment_entity_1.EmailAttachmentEntity;
26
+ }
27
+ async afterInsert(event) {
28
+ await this.emailAttachmentJob.delayedDispatch(this.getEventData(event));
29
+ }
30
+ async afterUpdate(event) {
31
+ await this.emailAttachmentJob.delayedDispatch(this.getEventData(event));
32
+ }
33
+ };
34
+ exports.EmailAttachmentSubscriber = EmailAttachmentSubscriber;
35
+ exports.EmailAttachmentSubscriber = EmailAttachmentSubscriber = __decorate([
36
+ (0, typeorm_1.EventSubscriber)(),
37
+ __metadata("design:paramtypes", [typeorm_1.DataSource,
38
+ email_attachment_job_1.EmailAttachmentJob])
39
+ ], EmailAttachmentSubscriber);
40
+ //# sourceMappingURL=email.attachment.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email.attachment.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/email.attachment.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,iFAA4E;AAC5E,uEAAkE;AAE3D,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,0CAAuC;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,+CAAqB,CAAC;IACjC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAAyC;QACvD,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAyC;QACvD,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5E,CAAC;CACJ,CAAA;AAlBY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACF,yCAAkB;GAHlD,yBAAyB,CAkBrC"}
@@ -0,0 +1,12 @@
1
+ import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
2
+ import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
3
+ import { EmailMessageEntity } from '../entities/email.message.entity';
4
+ import { EmailMessageJob } from '../jobs/email.message.job';
5
+ export declare class EmailMessageSubscriber extends CommonSubscriber<EmailMessageEntity> {
6
+ private readonly dataSource;
7
+ private readonly emailMessageJob;
8
+ constructor(dataSource: DataSource, emailMessageJob: EmailMessageJob);
9
+ listenTo(): typeof EmailMessageEntity;
10
+ afterInsert(event: InsertEvent<EmailMessageEntity>): Promise<void>;
11
+ afterUpdate(event: UpdateEvent<EmailMessageEntity>): Promise<void>;
12
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EmailMessageSubscriber = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const email_message_entity_1 = require("../entities/email.message.entity");
16
+ const email_message_job_1 = require("../jobs/email.message.job");
17
+ let EmailMessageSubscriber = class EmailMessageSubscriber extends nestjs_utility_services_1.CommonSubscriber {
18
+ constructor(dataSource, emailMessageJob) {
19
+ super();
20
+ this.dataSource = dataSource;
21
+ this.emailMessageJob = emailMessageJob;
22
+ dataSource.subscribers.push(this);
23
+ }
24
+ listenTo() {
25
+ return email_message_entity_1.EmailMessageEntity;
26
+ }
27
+ async afterInsert(event) {
28
+ await this.emailMessageJob.delayedDispatch(this.getEventData(event));
29
+ }
30
+ async afterUpdate(event) {
31
+ await this.emailMessageJob.delayedDispatch(this.getEventData(event));
32
+ }
33
+ };
34
+ exports.EmailMessageSubscriber = EmailMessageSubscriber;
35
+ exports.EmailMessageSubscriber = EmailMessageSubscriber = __decorate([
36
+ (0, typeorm_1.EventSubscriber)(),
37
+ __metadata("design:paramtypes", [typeorm_1.DataSource,
38
+ email_message_job_1.EmailMessageJob])
39
+ ], EmailMessageSubscriber);
40
+ //# sourceMappingURL=email.message.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email.message.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/email.message.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,2EAAsE;AACtE,iEAA4D;AAErD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,0CAAoC;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"}
@@ -0,0 +1,12 @@
1
+ import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
2
+ import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
3
+ import { EmailRecipientEntity } from '../entities/email.recipient.entity';
4
+ import { EmailRecipientJob } from '../jobs/email.recipient.job';
5
+ export declare class EmailRecipientSubscriber extends CommonSubscriber<EmailRecipientEntity> {
6
+ private readonly dataSource;
7
+ private readonly emailRecipientJob;
8
+ constructor(dataSource: DataSource, emailRecipientJob: EmailRecipientJob);
9
+ listenTo(): typeof EmailRecipientEntity;
10
+ afterInsert(event: InsertEvent<EmailRecipientEntity>): Promise<void>;
11
+ afterUpdate(event: UpdateEvent<EmailRecipientEntity>): Promise<void>;
12
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EmailRecipientSubscriber = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const email_recipient_entity_1 = require("../entities/email.recipient.entity");
16
+ const email_recipient_job_1 = require("../jobs/email.recipient.job");
17
+ let EmailRecipientSubscriber = class EmailRecipientSubscriber extends nestjs_utility_services_1.CommonSubscriber {
18
+ constructor(dataSource, emailRecipientJob) {
19
+ super();
20
+ this.dataSource = dataSource;
21
+ this.emailRecipientJob = emailRecipientJob;
22
+ dataSource.subscribers.push(this);
23
+ }
24
+ listenTo() {
25
+ return email_recipient_entity_1.EmailRecipientEntity;
26
+ }
27
+ async afterInsert(event) {
28
+ await this.emailRecipientJob.delayedDispatch(this.getEventData(event));
29
+ }
30
+ async afterUpdate(event) {
31
+ await this.emailRecipientJob.delayedDispatch(this.getEventData(event));
32
+ }
33
+ };
34
+ exports.EmailRecipientSubscriber = EmailRecipientSubscriber;
35
+ exports.EmailRecipientSubscriber = EmailRecipientSubscriber = __decorate([
36
+ (0, typeorm_1.EventSubscriber)(),
37
+ __metadata("design:paramtypes", [typeorm_1.DataSource,
38
+ email_recipient_job_1.EmailRecipientJob])
39
+ ], EmailRecipientSubscriber);
40
+ //# sourceMappingURL=email.recipient.subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email.recipient.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/email.recipient.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,+EAA0E;AAC1E,qEAAgE;AAEzD,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,0CAAsC;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,3 +1,4 @@
1
+ export * from './business.email.subscriber';
1
2
  export * from './business.group.role.subscriber';
2
3
  export * from './business.preference.subscriber';
3
4
  export * from './business.user.group.subscriber';
@@ -9,6 +10,9 @@ export * from './custom.report.subscriber';
9
10
  export * from './dashboard.component.subscriber';
10
11
  export * from './dashboard.subscriber';
11
12
  export * from './download.log.subscriber';
13
+ export * from './email.attachment.subscriber';
14
+ export * from './email.message.subscriber';
15
+ export * from './email.recipient.subscriber';
12
16
  export * from './group.member.subscriber';
13
17
  export * from './group.role.subscriber';
14
18
  export * from './list.preference.subscriber';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./business.email.subscriber"), exports);
17
18
  __exportStar(require("./business.group.role.subscriber"), exports);
18
19
  __exportStar(require("./business.preference.subscriber"), exports);
19
20
  __exportStar(require("./business.user.group.subscriber"), exports);
@@ -25,6 +26,9 @@ __exportStar(require("./custom.report.subscriber"), exports);
25
26
  __exportStar(require("./dashboard.component.subscriber"), exports);
26
27
  __exportStar(require("./dashboard.subscriber"), exports);
27
28
  __exportStar(require("./download.log.subscriber"), exports);
29
+ __exportStar(require("./email.attachment.subscriber"), exports);
30
+ __exportStar(require("./email.message.subscriber"), exports);
31
+ __exportStar(require("./email.recipient.subscriber"), exports);
28
32
  __exportStar(require("./group.member.subscriber"), exports);
29
33
  __exportStar(require("./group.role.subscriber"), exports);
30
34
  __exportStar(require("./list.preference.subscriber"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AAAA,mEAAiD;AAAA,mEAAiD;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,0DAAwC;AAAA,4DAA0C;AAAA,6DAA2C;AAAA,mEAAiD;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,+DAA6C;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,kEAAgD;AAAA,2DAAyC;AAAA,yDAAuC;AAAA,oDAAkC;AAAA,2DAAyC;AAAA,sDAAoC;AAAA,qEAAmD;AAAA,+DAA6C;AAAA,uDAAqC;AAAA,0DAAwC;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,yDAAuC;AAAA,+DAA6C;AAAA,yDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAAA,mEAAiD;AAAA,mEAAiD;AAAA,mEAAiD;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,0DAAwC;AAAA,4DAA0C;AAAA,6DAA2C;AAAA,mEAAiD;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,gEAA8C;AAAA,6DAA2C;AAAA,+DAA6C;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,+DAA6C;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,kEAAgD;AAAA,2DAAyC;AAAA,yDAAuC;AAAA,oDAAkC;AAAA,2DAAyC;AAAA,sDAAoC;AAAA,qEAAmD;AAAA,+DAA6C;AAAA,uDAAqC;AAAA,0DAAwC;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,yDAAuC;AAAA,+DAA6C;AAAA,yDAAsC"}
@@ -1,4 +1,5 @@
1
1
  import { AccessBusinessEntity } from '../access/entities/access.business.entity';
2
+ import { BusinessEmailEntity } from '../access/entities/business.email.entity';
2
3
  import { BusinessGroupRoleEntity } from '../access/entities/business.group.role.entity';
3
4
  import { BusinessPreferenceEntity } from '../access/entities/business.preference.entity';
4
5
  import { BusinessUserEntity } from '../access/entities/business.user.entity';
@@ -10,6 +11,9 @@ import { CustomReportEntity } from '../access/entities/custom.report.entity';
10
11
  import { DashboardComponentEntity } from '../access/entities/dashboard.component.entity';
11
12
  import { DashboardEntity } from '../access/entities/dashboard.entity';
12
13
  import { DownloadLogEntity } from '../access/entities/download.log.entity';
14
+ import { EmailAttachmentEntity } from '../access/entities/email.attachment.entity';
15
+ import { EmailMessageEntity } from '../access/entities/email.message.entity';
16
+ import { EmailRecipientEntity } from '../access/entities/email.recipient.entity';
13
17
  import { GroupMemberEntity } from '../access/entities/group.member.entity';
14
18
  import { GroupRoleEntity } from '../access/entities/group.role.entity';
15
19
  import { ListPreferenceEntity } from '../access/entities/list.preference.entity';
@@ -42,6 +46,7 @@ import { ListingModelEntity } from '../accessUtility/entities/listing.model.enti
42
46
  import { TagAssignmentEntity } from '../accessUtility/entities/tag.assignment.entity';
43
47
  declare const entityConstants: {
44
48
  '65e0e6d5c92cbba596ecaf851b586389': typeof AccessBusinessEntity;
49
+ abf530a86c0c2198071cfd5aa92f9c8c: typeof BusinessEmailEntity;
45
50
  '21e0c3b1d90ae9faa0dc0857a0cbf351': typeof BusinessGroupRoleEntity;
46
51
  '5d4d889f8f5bd4a2dfca3cb6e0ee2360': typeof BusinessPreferenceEntity;
47
52
  f140008ee5cd24094504c17ec2bdb681: typeof BusinessUserEntity;
@@ -53,6 +58,9 @@ declare const entityConstants: {
53
58
  '928d3e3bf036a18950ca1f099f25e374': typeof DashboardComponentEntity;
54
59
  cb3277c9b0177cb369d162e6785c68b2: typeof DashboardEntity;
55
60
  '9cebcabed7c84a3f1cdbca4d56e9bfa1': typeof DownloadLogEntity;
61
+ '0d640c5bf74bb8658e41f6d99009449d': typeof EmailAttachmentEntity;
62
+ '87d330e6c629608a9baeecf85d7195c2': typeof EmailMessageEntity;
63
+ '024c090175bf88edd4547a51567d8ff7': typeof EmailRecipientEntity;
56
64
  '20f23c4fb23ea7e31f1db48bb44fe1e6': typeof GroupMemberEntity;
57
65
  '9757c354b6a42e5de9e21593a75b77d8': typeof GroupRoleEntity;
58
66
  '91aaebde27f2d32ade69bff5b2b125cf': typeof ListPreferenceEntity;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  const access_business_entity_1 = require("../access/entities/access.business.entity");
3
+ const business_email_entity_1 = require("../access/entities/business.email.entity");
3
4
  const business_group_role_entity_1 = require("../access/entities/business.group.role.entity");
4
5
  const business_preference_entity_1 = require("../access/entities/business.preference.entity");
5
6
  const business_user_entity_1 = require("../access/entities/business.user.entity");
@@ -11,6 +12,9 @@ const custom_report_entity_1 = require("../access/entities/custom.report.entity"
11
12
  const dashboard_component_entity_1 = require("../access/entities/dashboard.component.entity");
12
13
  const dashboard_entity_1 = require("../access/entities/dashboard.entity");
13
14
  const download_log_entity_1 = require("../access/entities/download.log.entity");
15
+ const email_attachment_entity_1 = require("../access/entities/email.attachment.entity");
16
+ const email_message_entity_1 = require("../access/entities/email.message.entity");
17
+ const email_recipient_entity_1 = require("../access/entities/email.recipient.entity");
14
18
  const group_member_entity_1 = require("../access/entities/group.member.entity");
15
19
  const group_role_entity_1 = require("../access/entities/group.role.entity");
16
20
  const list_preference_entity_1 = require("../access/entities/list.preference.entity");
@@ -43,6 +47,7 @@ const listing_model_entity_1 = require("../accessUtility/entities/listing.model.
43
47
  const tag_assignment_entity_1 = require("../accessUtility/entities/tag.assignment.entity");
44
48
  const entityConstants = {
45
49
  '65e0e6d5c92cbba596ecaf851b586389': access_business_entity_1.AccessBusinessEntity,
50
+ abf530a86c0c2198071cfd5aa92f9c8c: business_email_entity_1.BusinessEmailEntity,
46
51
  '21e0c3b1d90ae9faa0dc0857a0cbf351': business_group_role_entity_1.BusinessGroupRoleEntity,
47
52
  '5d4d889f8f5bd4a2dfca3cb6e0ee2360': business_preference_entity_1.BusinessPreferenceEntity,
48
53
  f140008ee5cd24094504c17ec2bdb681: business_user_entity_1.BusinessUserEntity,
@@ -54,6 +59,9 @@ const entityConstants = {
54
59
  '928d3e3bf036a18950ca1f099f25e374': dashboard_component_entity_1.DashboardComponentEntity,
55
60
  cb3277c9b0177cb369d162e6785c68b2: dashboard_entity_1.DashboardEntity,
56
61
  '9cebcabed7c84a3f1cdbca4d56e9bfa1': download_log_entity_1.DownloadLogEntity,
62
+ '0d640c5bf74bb8658e41f6d99009449d': email_attachment_entity_1.EmailAttachmentEntity,
63
+ '87d330e6c629608a9baeecf85d7195c2': email_message_entity_1.EmailMessageEntity,
64
+ '024c090175bf88edd4547a51567d8ff7': email_recipient_entity_1.EmailRecipientEntity,
57
65
  '20f23c4fb23ea7e31f1db48bb44fe1e6': group_member_entity_1.GroupMemberEntity,
58
66
  '9757c354b6a42e5de9e21593a75b77d8': group_role_entity_1.GroupRoleEntity,
59
67
  '91aaebde27f2d32ade69bff5b2b125cf': list_preference_entity_1.ListPreferenceEntity,
@@ -1 +1 @@
1
- {"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,sFAAiF;AACjF,8FAAwF;AACxF,8FAAyF;AACzF,kFAA6E;AAC7E,8FAAwF;AACxF,4FAAsF;AACtF,4EAAuE;AACvE,gFAA4E;AAC5E,kFAA6E;AAC7E,8FAAyF;AACzF,0EAAsE;AACtE,gFAA2E;AAC3E,gFAA2E;AAC3E,4EAAuE;AACvE,sFAAiF;AACjF,oFAA+E;AAC/E,gFAA2E;AAC3E,4FAAuF;AACvF,8EAAyE;AACzE,gEAA4D;AAC5D,0EAAqE;AACrE,oEAAgE;AAChE,8EAAyE;AACzE,sFAAiF;AACjF,kGAA4F;AAC5F,sEAAkE;AAClE,4EAAuE;AACvE,wFAAmF;AACnF,0EAAqE;AACrE,oFAA8E;AAC9E,sFAAiF;AACjF,0EAAqE;AACrE,6FAAwF;AACxF,uGAAiG;AACjG,mHAA6G;AAC7G,mGAA6F;AAC7F,qFAAgF;AAChF,+FAAyF;AACzF,+FAAyF;AACzF,uFAAkF;AAClF,yFAAoF;AACpF,2FAAsF;AAEtF,MAAM,eAAe,GAAG;IACpB,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,oDAAuB;IAC3D,kCAAkC,EAAE,qDAAwB;IAC5D,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,oDAAuB;IACzD,gCAAgC,EAAE,kDAAsB;IACxD,kCAAkC,EAAE,mCAAe;IACnD,gCAAgC,EAAE,wCAAkB;IACpD,kCAAkC,EAAE,yCAAkB;IACtD,kCAAkC,EAAE,qDAAwB;IAC5D,gCAAgC,EAAE,kCAAe;IACjD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,2CAAmB;IACvD,kCAAkC,EAAE,uCAAiB;IACrD,gCAAgC,EAAE,mDAAuB;IACzD,kCAAkC,EAAE,qCAAgB;IACpD,kCAAkC,EAAE,wBAAU;IAC9C,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,4BAAY;IAChD,kCAAkC,EAAE,qCAAgB;IACpD,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,wDAAyB;IAC7D,kCAAkC,EAAE,8BAAa;IACjD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,+CAAqB;IACzD,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,0CAAkB;IACtD,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,iCAAc;IAClD,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,sDAAwB;IAC5D,gCAAgC,EAAE,kEAA8B;IAChE,gCAAgC,EAAE,kDAAsB;IACxD,kCAAkC,EAAE,qCAAgB;IACpD,gCAAgC,EAAE,8CAAoB;IACtD,gCAAgC,EAAE,8CAAoB;IACtD,kCAAkC,EAAE,uCAAiB;IACrD,gCAAgC,EAAE,yCAAkB;IACpD,kCAAkC,EAAE,2CAAmB;CAC1D,CAAC;AAEF,iBAAS,eAAe,CAAC"}
1
+ {"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,sFAAiF;AACjF,oFAA+E;AAC/E,8FAAwF;AACxF,8FAAyF;AACzF,kFAA6E;AAC7E,8FAAwF;AACxF,4FAAsF;AACtF,4EAAuE;AACvE,gFAA4E;AAC5E,kFAA6E;AAC7E,8FAAyF;AACzF,0EAAsE;AACtE,gFAA2E;AAC3E,wFAAmF;AACnF,kFAA6E;AAC7E,sFAAiF;AACjF,gFAA2E;AAC3E,4EAAuE;AACvE,sFAAiF;AACjF,oFAA+E;AAC/E,gFAA2E;AAC3E,4FAAuF;AACvF,8EAAyE;AACzE,gEAA4D;AAC5D,0EAAqE;AACrE,oEAAgE;AAChE,8EAAyE;AACzE,sFAAiF;AACjF,kGAA4F;AAC5F,sEAAkE;AAClE,4EAAuE;AACvE,wFAAmF;AACnF,0EAAqE;AACrE,oFAA8E;AAC9E,sFAAiF;AACjF,0EAAqE;AACrE,6FAAwF;AACxF,uGAAiG;AACjG,mHAA6G;AAC7G,mGAA6F;AAC7F,qFAAgF;AAChF,+FAAyF;AACzF,+FAAyF;AACzF,uFAAkF;AAClF,yFAAoF;AACpF,2FAAsF;AAEtF,MAAM,eAAe,GAAG;IACpB,kCAAkC,EAAE,6CAAoB;IACxD,gCAAgC,EAAE,2CAAmB;IACrD,kCAAkC,EAAE,oDAAuB;IAC3D,kCAAkC,EAAE,qDAAwB;IAC5D,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,oDAAuB;IACzD,gCAAgC,EAAE,kDAAsB;IACxD,kCAAkC,EAAE,mCAAe;IACnD,gCAAgC,EAAE,wCAAkB;IACpD,kCAAkC,EAAE,yCAAkB;IACtD,kCAAkC,EAAE,qDAAwB;IAC5D,gCAAgC,EAAE,kCAAe;IACjD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,+CAAqB;IACzD,kCAAkC,EAAE,yCAAkB;IACtD,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,2CAAmB;IACvD,kCAAkC,EAAE,uCAAiB;IACrD,gCAAgC,EAAE,mDAAuB;IACzD,kCAAkC,EAAE,qCAAgB;IACpD,kCAAkC,EAAE,wBAAU;IAC9C,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,4BAAY;IAChD,kCAAkC,EAAE,qCAAgB;IACpD,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,wDAAyB;IAC7D,kCAAkC,EAAE,8BAAa;IACjD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,+CAAqB;IACzD,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,0CAAkB;IACtD,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,iCAAc;IAClD,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,sDAAwB;IAC5D,gCAAgC,EAAE,kEAA8B;IAChE,gCAAgC,EAAE,kDAAsB;IACxD,kCAAkC,EAAE,qCAAgB;IACpD,gCAAgC,EAAE,8CAAoB;IACtD,gCAAgC,EAAE,8CAAoB;IACtD,kCAAkC,EAAE,uCAAiB;IACrD,gCAAgC,EAAE,yCAAkB;IACpD,kCAAkC,EAAE,2CAAmB;CAC1D,CAAC;AAEF,iBAAS,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class CreateBusinessEmailTable1689305975277 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateBusinessEmailTable1689305975277 = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class CreateBusinessEmailTable1689305975277 extends nestjs_utility_services_1.MigrationUtility {
6
+ constructor() {
7
+ super('bz_business_emails');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.primary();
12
+ this.foreign({ name: 'business_id', foreignTable: 'bz_business_details' });
13
+ this.foreign({ name: 'product_id', foreignTable: 'utl_products' });
14
+ this.string('email');
15
+ this.boolean('active');
16
+ this.number('meta_server_id');
17
+ this.json('attributes');
18
+ this.whoColumns();
19
+ }
20
+ }
21
+ exports.CreateBusinessEmailTable1689305975277 = CreateBusinessEmailTable1689305975277;
22
+ //# sourceMappingURL=1689305975277-CreateBusinessEmailTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1689305975277-CreateBusinessEmailTable.js","sourceRoot":"","sources":["../../src/migrations/1689305975277-CreateBusinessEmailTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,qCAAsC,SAAQ,0CAAgB;IACvE;QACI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC,CAAC;QAC3E,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC,CAAC;QAEnE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAEvB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QAE9B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AApBD,sFAoBC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class CreateEmailMessageTable1689317203054 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateEmailMessageTable1689317203054 = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class CreateEmailMessageTable1689317203054 extends nestjs_utility_services_1.MigrationUtility {
6
+ constructor() {
7
+ super('bz_email_messages');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.primary();
12
+ this.foreign({ name: 'email_id', foreignTable: 'bz_business_emails' });
13
+ this.string('identifier');
14
+ this.string('from_email');
15
+ this.string('subject', { length: '1024' });
16
+ this.string('body');
17
+ this.boolean('read', false);
18
+ this.dateTime('archived_at');
19
+ this.json('attributes');
20
+ this.whoColumns();
21
+ this.index(['email_id', 'identifier'], 'bz_business_emails_identifier_index');
22
+ }
23
+ }
24
+ exports.CreateEmailMessageTable1689317203054 = CreateEmailMessageTable1689317203054;
25
+ //# sourceMappingURL=1689317203054-CreateEmailMessageTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1689317203054-CreateEmailMessageTable.js","sourceRoot":"","sources":["../../src/migrations/1689317203054-CreateEmailMessageTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,oCAAqC,SAAQ,0CAAgB;IACtE;QACI,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC,CAAC;QACvE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAE1B,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAE1B,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAC3C,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAEpB,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC5B,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QAE7B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;QAElB,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,YAAY,CAAC,EAAE,qCAAqC,CAAC,CAAC;IAClF,CAAC;CACJ;AAzBD,oFAyBC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class CreateEmailRecipientTable1689317391541 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateEmailRecipientTable1689317391541 = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class CreateEmailRecipientTable1689317391541 extends nestjs_utility_services_1.MigrationUtility {
6
+ constructor() {
7
+ super('bz_email_recipients');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.primary();
12
+ this.foreign({ name: 'message_id', foreignTable: 'bz_email_messages' });
13
+ this.char('type', 3);
14
+ this.string('email');
15
+ this.json('attributes');
16
+ this.whoColumns();
17
+ }
18
+ }
19
+ exports.CreateEmailRecipientTable1689317391541 = CreateEmailRecipientTable1689317391541;
20
+ //# sourceMappingURL=1689317391541-CreateEmailRecipientTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1689317391541-CreateEmailRecipientTable.js","sourceRoot":"","sources":["../../src/migrations/1689317391541-CreateEmailRecipientTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,sCAAuC,SAAQ,0CAAgB;IACxE;QACI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;QAExE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QACrB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAErB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AAjBD,wFAiBC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class CreateEmailAttachmentTable1689317476761 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateEmailAttachmentTable1689317476761 = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class CreateEmailAttachmentTable1689317476761 extends nestjs_utility_services_1.MigrationUtility {
6
+ constructor() {
7
+ super('bz_email_attachments');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.primary();
12
+ this.foreign({ name: 'message_id', foreignTable: 'bz_email_messages' });
13
+ this.string('name');
14
+ this.string('url');
15
+ this.json('attributes');
16
+ this.whoColumns();
17
+ }
18
+ }
19
+ exports.CreateEmailAttachmentTable1689317476761 = CreateEmailAttachmentTable1689317476761;
20
+ //# sourceMappingURL=1689317476761-CreateEmailAttachmentTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1689317476761-CreateEmailAttachmentTable.js","sourceRoot":"","sources":["../../src/migrations/1689317476761-CreateEmailAttachmentTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,uCAAwC,SAAQ,0CAAgB;IACzE;QACI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;QAExE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAEnB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAExB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AAlBD,0FAkBC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class AddMessageIdentifierBzEmailMessagesTable1696962391164 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddMessageIdentifierBzEmailMessagesTable1696962391164 = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class AddMessageIdentifierBzEmailMessagesTable1696962391164 extends nestjs_utility_services_1.MigrationUtility {
6
+ constructor() {
7
+ super('bz_email_messages');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.string('tracking_identifier');
12
+ this.boolean('is_tracked', true);
13
+ this.boolean('is_visible', true);
14
+ this.foreign({ name: 'parent_id', foreignTable: 'bz_email_messages' });
15
+ this.foreign({ name: 'sender_id', foreignTable: 'sys_users' });
16
+ this.index(['tracking_identifier'], 'bz_email_messages_tracking_identifier_index');
17
+ }
18
+ }
19
+ exports.AddMessageIdentifierBzEmailMessagesTable1696962391164 = AddMessageIdentifierBzEmailMessagesTable1696962391164;
20
+ //# sourceMappingURL=1696962391164-AddMessageIdentifierBzEmailMessagesTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1696962391164-AddMessageIdentifierBzEmailMessagesTable.js","sourceRoot":"","sources":["../../src/migrations/1696962391164-AddMessageIdentifierBzEmailMessagesTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,qDAAsD,SAAQ,0CAAgB;IACvF;QACI,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;QAEjC,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;QACvE,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,CAAC;QAE/D,IAAI,CAAC,KAAK,CAAC,CAAC,qBAAqB,CAAC,EAAE,6CAA6C,CAAC,CAAC;IACvF,CAAC;CACJ;AAhBD,sHAgBC"}
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class AddUserIdColumnBzBusinessEmailsTable1698908871237 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddUserIdColumnBzBusinessEmailsTable1698908871237 = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class AddUserIdColumnBzBusinessEmailsTable1698908871237 extends nestjs_utility_services_1.MigrationUtility {
6
+ constructor() {
7
+ super('bz_business_emails');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.foreign({ name: 'user_id', foreignTable: 'sys_users' });
12
+ }
13
+ }
14
+ exports.AddUserIdColumnBzBusinessEmailsTable1698908871237 = AddUserIdColumnBzBusinessEmailsTable1698908871237;
15
+ //# sourceMappingURL=1698908871237-AddUserIdColumnBzBusinessEmailsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1698908871237-AddUserIdColumnBzBusinessEmailsTable.js","sourceRoot":"","sources":["../../src/migrations/1698908871237-AddUserIdColumnBzBusinessEmailsTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,iDAAkD,SAAQ,0CAAgB;IACnF;QACI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,CAAC;IACjE,CAAC;CACJ;AATD,8GASC"}
@@ -10,11 +10,11 @@ class CreateBulkUploadTypeTable1700810225363 extends nestjs_utility_services_1.M
10
10
  process() {
11
11
  this.primary();
12
12
  this.string('name');
13
- this.string('description', { width: 1024 });
13
+ this.string('description', { length: '1024' });
14
14
  this.foreign({ name: 'model_id', foreignTable: 'sys_model_details' });
15
15
  this.char('source_type', 32);
16
16
  this.foreign({ name: 'custom_field_id', foreignTable: 'sys_lookup_values' });
17
- this.string('relations', { width: 1024 });
17
+ this.string('relations', { length: '1024' });
18
18
  this.json('attributes');
19
19
  this.whoColumns();
20
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"1700810225363-CreateBulkUploadTypeTable.js","sourceRoot":"","sources":["../../src/migrations/1700810225363-CreateBulkUploadTypeTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,sCAAuC,SAAQ,0CAAgB;IACxE;QACI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC/B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAE5C,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;QACtE,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;QAE7E,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAE1C,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AArBD,wFAqBC"}
1
+ {"version":3,"file":"1700810225363-CreateBulkUploadTypeTable.js","sourceRoot":"","sources":["../../src/migrations/1700810225363-CreateBulkUploadTypeTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,sCAAuC,SAAQ,0CAAgB;IACxE;QACI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC/B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAE/C,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;QACtE,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;QAE7E,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAE7C,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AArBD,wFAqBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicelabsco/slabs-access-manager",
3
- "version": "0.1.52",
3
+ "version": "0.1.54",
4
4
  "description": "Support for application level menus and dashboards",
5
5
  "author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
6
6
  "license": "MIT",