@servicelabsco/slabs-access-manager 0.1.53 → 0.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access/dtos/business.email.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/business.email.attributes.dto.js +8 -0
- package/dist/access/dtos/business.email.attributes.dto.js.map +1 -0
- package/dist/access/dtos/email.attachment.attributes.dto.d.ts +5 -0
- package/dist/access/dtos/email.attachment.attributes.dto.js +8 -0
- package/dist/access/dtos/email.attachment.attributes.dto.js.map +1 -0
- package/dist/access/dtos/email.message.attributes.dto.d.ts +8 -0
- package/dist/access/dtos/email.message.attributes.dto.js +29 -0
- package/dist/access/dtos/email.message.attributes.dto.js.map +1 -0
- package/dist/access/dtos/email.recipient.attributes.dto.d.ts +4 -0
- package/dist/access/dtos/email.recipient.attributes.dto.js +8 -0
- package/dist/access/dtos/email.recipient.attributes.dto.js.map +1 -0
- package/dist/access/dtos/index.d.ts +5 -0
- package/dist/access/dtos/index.js +5 -0
- package/dist/access/dtos/index.js.map +1 -1
- package/dist/access/dtos/watchlist.assignment.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/watchlist.assignment.attributes.dto.js +8 -0
- package/dist/access/dtos/watchlist.assignment.attributes.dto.js.map +1 -0
- package/dist/access/entities/business.email.entity.d.ts +13 -0
- package/dist/access/entities/business.email.entity.js +56 -0
- package/dist/access/entities/business.email.entity.js.map +1 -0
- package/dist/access/entities/email.attachment.entity.d.ts +10 -0
- package/dist/access/entities/email.attachment.entity.js +44 -0
- package/dist/access/entities/email.attachment.entity.js.map +1 -0
- package/dist/access/entities/email.message.entity.d.ts +23 -0
- package/dist/access/entities/email.message.entity.js +90 -0
- package/dist/access/entities/email.message.entity.js.map +1 -0
- package/dist/access/entities/email.recipient.entity.d.ts +10 -0
- package/dist/access/entities/email.recipient.entity.js +44 -0
- package/dist/access/entities/email.recipient.entity.js.map +1 -0
- package/dist/access/entities/index.d.ts +5 -0
- package/dist/access/entities/index.js +5 -0
- package/dist/access/entities/index.js.map +1 -1
- package/dist/access/entities/watchlist.assignment.entity.d.ts +12 -0
- package/dist/access/entities/watchlist.assignment.entity.js +55 -0
- package/dist/access/entities/watchlist.assignment.entity.js.map +1 -0
- package/dist/access/es6.classes.d.ts +21 -6
- package/dist/access/es6.classes.js +42 -0
- package/dist/access/es6.classes.js.map +1 -1
- package/dist/access/jobs/business.email.job.d.ts +7 -0
- package/dist/access/jobs/business.email.job.js +29 -0
- package/dist/access/jobs/business.email.job.js.map +1 -0
- package/dist/access/jobs/email.attachment.job.d.ts +7 -0
- package/dist/access/jobs/email.attachment.job.js +29 -0
- package/dist/access/jobs/email.attachment.job.js.map +1 -0
- package/dist/access/jobs/email.message.job.d.ts +7 -0
- package/dist/access/jobs/email.message.job.js +29 -0
- package/dist/access/jobs/email.message.job.js.map +1 -0
- package/dist/access/jobs/email.recipient.job.d.ts +7 -0
- package/dist/access/jobs/email.recipient.job.js +29 -0
- package/dist/access/jobs/email.recipient.job.js.map +1 -0
- package/dist/access/jobs/index.d.ts +5 -0
- package/dist/access/jobs/index.js +5 -0
- package/dist/access/jobs/index.js.map +1 -1
- package/dist/access/jobs/watchlist.assignment.job.d.ts +9 -0
- package/dist/access/jobs/watchlist.assignment.job.js +44 -0
- package/dist/access/jobs/watchlist.assignment.job.js.map +1 -0
- package/dist/access/services/es6.jobs.service.d.ts +11 -1
- package/dist/access/services/es6.jobs.service.js +23 -3
- package/dist/access/services/es6.jobs.service.js.map +1 -1
- package/dist/access/services/index.d.ts +1 -0
- package/dist/access/services/index.js +1 -0
- package/dist/access/services/index.js.map +1 -1
- package/dist/access/services/utility.service.d.ts +5 -0
- package/dist/access/services/utility.service.js +27 -0
- package/dist/access/services/utility.service.js.map +1 -0
- package/dist/access/subscribers/business.email.subscriber.d.ts +12 -0
- package/dist/access/subscribers/business.email.subscriber.js +40 -0
- package/dist/access/subscribers/business.email.subscriber.js.map +1 -0
- package/dist/access/subscribers/email.attachment.subscriber.d.ts +12 -0
- package/dist/access/subscribers/email.attachment.subscriber.js +40 -0
- package/dist/access/subscribers/email.attachment.subscriber.js.map +1 -0
- package/dist/access/subscribers/email.message.subscriber.d.ts +12 -0
- package/dist/access/subscribers/email.message.subscriber.js +40 -0
- package/dist/access/subscribers/email.message.subscriber.js.map +1 -0
- package/dist/access/subscribers/email.recipient.subscriber.d.ts +12 -0
- package/dist/access/subscribers/email.recipient.subscriber.js +40 -0
- package/dist/access/subscribers/email.recipient.subscriber.js.map +1 -0
- package/dist/access/subscribers/index.d.ts +5 -0
- package/dist/access/subscribers/index.js +5 -0
- package/dist/access/subscribers/index.js.map +1 -1
- package/dist/access/subscribers/watchlist.assignment.subscriber.d.ts +12 -0
- package/dist/access/subscribers/watchlist.assignment.subscriber.js +40 -0
- package/dist/access/subscribers/watchlist.assignment.subscriber.js.map +1 -0
- package/dist/config/entity.constants.d.ts +10 -0
- package/dist/config/entity.constants.js +10 -0
- package/dist/config/entity.constants.js.map +1 -1
- package/dist/migrations/1684526471386-CreateWatchlistAssignmentTable.d.ts +5 -0
- package/dist/migrations/1684526471386-CreateWatchlistAssignmentTable.js +21 -0
- package/dist/migrations/1684526471386-CreateWatchlistAssignmentTable.js.map +1 -0
- package/dist/migrations/1689305975277-CreateBusinessEmailTable.d.ts +5 -0
- package/dist/migrations/1689305975277-CreateBusinessEmailTable.js +22 -0
- package/dist/migrations/1689305975277-CreateBusinessEmailTable.js.map +1 -0
- package/dist/migrations/1689317203054-CreateEmailMessageTable.d.ts +5 -0
- package/dist/migrations/1689317203054-CreateEmailMessageTable.js +25 -0
- package/dist/migrations/1689317203054-CreateEmailMessageTable.js.map +1 -0
- package/dist/migrations/1689317391541-CreateEmailRecipientTable.d.ts +5 -0
- package/dist/migrations/1689317391541-CreateEmailRecipientTable.js +20 -0
- package/dist/migrations/1689317391541-CreateEmailRecipientTable.js.map +1 -0
- package/dist/migrations/1689317476761-CreateEmailAttachmentTable.d.ts +5 -0
- package/dist/migrations/1689317476761-CreateEmailAttachmentTable.js +20 -0
- package/dist/migrations/1689317476761-CreateEmailAttachmentTable.js.map +1 -0
- package/dist/migrations/1696962391164-AddMessageIdentifierBzEmailMessagesTable.d.ts +5 -0
- package/dist/migrations/1696962391164-AddMessageIdentifierBzEmailMessagesTable.js +20 -0
- package/dist/migrations/1696962391164-AddMessageIdentifierBzEmailMessagesTable.js.map +1 -0
- package/dist/migrations/1698908135275-AddEmailColumnUtlWatchlistAssignmentsTable.d.ts +5 -0
- package/dist/migrations/1698908135275-AddEmailColumnUtlWatchlistAssignmentsTable.js +15 -0
- package/dist/migrations/1698908135275-AddEmailColumnUtlWatchlistAssignmentsTable.js.map +1 -0
- package/dist/migrations/1698908871237-AddUserIdColumnBzBusinessEmailsTable.d.ts +5 -0
- package/dist/migrations/1698908871237-AddUserIdColumnBzBusinessEmailsTable.js +15 -0
- package/dist/migrations/1698908871237-AddUserIdColumnBzBusinessEmailsTable.js.map +1 -0
- package/dist/migrations/1700810225363-CreateBulkUploadTypeTable.js +2 -2
- package/dist/migrations/1700810225363-CreateBulkUploadTypeTable.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BusinessEmailJob } from '../jobs/business.email.job';
|
|
1
2
|
import { BusinessGroupRoleJob } from '../jobs/business.group.role.job';
|
|
2
3
|
import { BusinessPreferenceJob } from '../jobs/business.preference.job';
|
|
3
4
|
import { BusinessUserGroupJob } from '../jobs/business.user.group.job';
|
|
@@ -9,6 +10,9 @@ import { CustomReportJob } from '../jobs/custom.report.job';
|
|
|
9
10
|
import { DashboardComponentJob } from '../jobs/dashboard.component.job';
|
|
10
11
|
import { DashboardJob } from '../jobs/dashboard.job';
|
|
11
12
|
import { DownloadLogJob } from '../jobs/download.log.job';
|
|
13
|
+
import { EmailAttachmentJob } from '../jobs/email.attachment.job';
|
|
14
|
+
import { EmailMessageJob } from '../jobs/email.message.job';
|
|
15
|
+
import { EmailRecipientJob } from '../jobs/email.recipient.job';
|
|
12
16
|
import { GroupMemberJob } from '../jobs/group.member.job';
|
|
13
17
|
import { GroupRoleJob } from '../jobs/group.role.job';
|
|
14
18
|
import { ListPreferenceJob } from '../jobs/list.preference.job';
|
|
@@ -30,7 +34,9 @@ import { UiActionJob } from '../jobs/ui.action.job';
|
|
|
30
34
|
import { UiActionRoleJob } from '../jobs/ui.action.role.job';
|
|
31
35
|
import { UserPreferenceJob } from '../jobs/user.preference.job';
|
|
32
36
|
import { UserRoleJob } from '../jobs/user.role.job';
|
|
37
|
+
import { WatchlistAssignmentJob } from '../jobs/watchlist.assignment.job';
|
|
33
38
|
export declare class Es6JobsService {
|
|
39
|
+
private readonly businessEmailJob;
|
|
34
40
|
private readonly businessGroupRoleJob;
|
|
35
41
|
private readonly businessPreferenceJob;
|
|
36
42
|
private readonly businessUserGroupJob;
|
|
@@ -42,6 +48,9 @@ export declare class Es6JobsService {
|
|
|
42
48
|
private readonly dashboardComponentJob;
|
|
43
49
|
private readonly dashboardJob;
|
|
44
50
|
private readonly downloadLogJob;
|
|
51
|
+
private readonly emailAttachmentJob;
|
|
52
|
+
private readonly emailMessageJob;
|
|
53
|
+
private readonly emailRecipientJob;
|
|
45
54
|
private readonly groupMemberJob;
|
|
46
55
|
private readonly groupRoleJob;
|
|
47
56
|
private readonly listPreferenceJob;
|
|
@@ -63,8 +72,9 @@ export declare class Es6JobsService {
|
|
|
63
72
|
private readonly uiActionRoleJob;
|
|
64
73
|
private readonly userPreferenceJob;
|
|
65
74
|
private readonly userRoleJob;
|
|
75
|
+
private readonly watchlistAssignmentJob;
|
|
66
76
|
private jobs;
|
|
67
|
-
constructor(businessGroupRoleJob: BusinessGroupRoleJob, businessPreferenceJob: BusinessPreferenceJob, businessUserGroupJob: BusinessUserGroupJob, businessUserJob: BusinessUserJob, businessUserRoleJob: BusinessUserRoleJob, childMenuJob: ChildMenuJob, conversationJob: ConversationJob, customReportJob: CustomReportJob, dashboardComponentJob: DashboardComponentJob, dashboardJob: DashboardJob, downloadLogJob: DownloadLogJob, groupMemberJob: GroupMemberJob, groupRoleJob: GroupRoleJob, listPreferenceJob: ListPreferenceJob, listingColumnJob: ListingColumnJob, listingPageJob: ListingPageJob, listingPreferenceJob: ListingPreferenceJob, menuActionJob: MenuActionJob, menuJob: MenuJob, menuRoleJob: MenuRoleJob, moduleJob: ModuleJob, moduleMenuJob: ModuleMenuJob, preferenceUserGroupJob: PreferenceUserGroupJob, preferenceUsersJob: PreferenceUsersJob, productJob: ProductJob, roleGroupJob: RoleGroupJob, scheduledReportJob: ScheduledReportJob, scheduledReportProcessingJob: ScheduledReportProcessingJob, uiActionJob: UiActionJob, uiActionRoleJob: UiActionRoleJob, userPreferenceJob: UserPreferenceJob, userRoleJob: UserRoleJob);
|
|
77
|
+
constructor(businessEmailJob: BusinessEmailJob, businessGroupRoleJob: BusinessGroupRoleJob, businessPreferenceJob: BusinessPreferenceJob, businessUserGroupJob: BusinessUserGroupJob, businessUserJob: BusinessUserJob, businessUserRoleJob: BusinessUserRoleJob, childMenuJob: ChildMenuJob, conversationJob: ConversationJob, customReportJob: CustomReportJob, dashboardComponentJob: DashboardComponentJob, dashboardJob: DashboardJob, downloadLogJob: DownloadLogJob, emailAttachmentJob: EmailAttachmentJob, emailMessageJob: EmailMessageJob, emailRecipientJob: EmailRecipientJob, groupMemberJob: GroupMemberJob, groupRoleJob: GroupRoleJob, listPreferenceJob: ListPreferenceJob, listingColumnJob: ListingColumnJob, listingPageJob: ListingPageJob, listingPreferenceJob: ListingPreferenceJob, menuActionJob: MenuActionJob, menuJob: MenuJob, menuRoleJob: MenuRoleJob, moduleJob: ModuleJob, moduleMenuJob: ModuleMenuJob, preferenceUserGroupJob: PreferenceUserGroupJob, preferenceUsersJob: PreferenceUsersJob, productJob: ProductJob, roleGroupJob: RoleGroupJob, scheduledReportJob: ScheduledReportJob, scheduledReportProcessingJob: ScheduledReportProcessingJob, uiActionJob: UiActionJob, uiActionRoleJob: UiActionRoleJob, userPreferenceJob: UserPreferenceJob, userRoleJob: UserRoleJob, watchlistAssignmentJob: WatchlistAssignmentJob);
|
|
68
78
|
alignJobs(): void;
|
|
69
79
|
setJobs(): void;
|
|
70
80
|
}
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Es6JobsService = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
|
+
const business_email_job_1 = require("../jobs/business.email.job");
|
|
14
15
|
const business_group_role_job_1 = require("../jobs/business.group.role.job");
|
|
15
16
|
const business_preference_job_1 = require("../jobs/business.preference.job");
|
|
16
17
|
const business_user_group_job_1 = require("../jobs/business.user.group.job");
|
|
@@ -22,6 +23,9 @@ const custom_report_job_1 = require("../jobs/custom.report.job");
|
|
|
22
23
|
const dashboard_component_job_1 = require("../jobs/dashboard.component.job");
|
|
23
24
|
const dashboard_job_1 = require("../jobs/dashboard.job");
|
|
24
25
|
const download_log_job_1 = require("../jobs/download.log.job");
|
|
26
|
+
const email_attachment_job_1 = require("../jobs/email.attachment.job");
|
|
27
|
+
const email_message_job_1 = require("../jobs/email.message.job");
|
|
28
|
+
const email_recipient_job_1 = require("../jobs/email.recipient.job");
|
|
25
29
|
const group_member_job_1 = require("../jobs/group.member.job");
|
|
26
30
|
const group_role_job_1 = require("../jobs/group.role.job");
|
|
27
31
|
const list_preference_job_1 = require("../jobs/list.preference.job");
|
|
@@ -43,9 +47,11 @@ const ui_action_job_1 = require("../jobs/ui.action.job");
|
|
|
43
47
|
const ui_action_role_job_1 = require("../jobs/ui.action.role.job");
|
|
44
48
|
const user_preference_job_1 = require("../jobs/user.preference.job");
|
|
45
49
|
const user_role_job_1 = require("../jobs/user.role.job");
|
|
50
|
+
const watchlist_assignment_job_1 = require("../jobs/watchlist.assignment.job");
|
|
46
51
|
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
47
52
|
let Es6JobsService = class Es6JobsService {
|
|
48
|
-
constructor(businessGroupRoleJob, businessPreferenceJob, businessUserGroupJob, businessUserJob, businessUserRoleJob, childMenuJob, conversationJob, customReportJob, dashboardComponentJob, dashboardJob, downloadLogJob, groupMemberJob, groupRoleJob, listPreferenceJob, listingColumnJob, listingPageJob, listingPreferenceJob, menuActionJob, menuJob, menuRoleJob, moduleJob, moduleMenuJob, preferenceUserGroupJob, preferenceUsersJob, productJob, roleGroupJob, scheduledReportJob, scheduledReportProcessingJob, uiActionJob, uiActionRoleJob, userPreferenceJob, userRoleJob) {
|
|
53
|
+
constructor(businessEmailJob, businessGroupRoleJob, businessPreferenceJob, businessUserGroupJob, businessUserJob, businessUserRoleJob, childMenuJob, conversationJob, customReportJob, dashboardComponentJob, dashboardJob, downloadLogJob, emailAttachmentJob, emailMessageJob, emailRecipientJob, groupMemberJob, groupRoleJob, listPreferenceJob, listingColumnJob, listingPageJob, listingPreferenceJob, menuActionJob, menuJob, menuRoleJob, moduleJob, moduleMenuJob, preferenceUserGroupJob, preferenceUsersJob, productJob, roleGroupJob, scheduledReportJob, scheduledReportProcessingJob, uiActionJob, uiActionRoleJob, userPreferenceJob, userRoleJob, watchlistAssignmentJob) {
|
|
54
|
+
this.businessEmailJob = businessEmailJob;
|
|
49
55
|
this.businessGroupRoleJob = businessGroupRoleJob;
|
|
50
56
|
this.businessPreferenceJob = businessPreferenceJob;
|
|
51
57
|
this.businessUserGroupJob = businessUserGroupJob;
|
|
@@ -57,6 +63,9 @@ let Es6JobsService = class Es6JobsService {
|
|
|
57
63
|
this.dashboardComponentJob = dashboardComponentJob;
|
|
58
64
|
this.dashboardJob = dashboardJob;
|
|
59
65
|
this.downloadLogJob = downloadLogJob;
|
|
66
|
+
this.emailAttachmentJob = emailAttachmentJob;
|
|
67
|
+
this.emailMessageJob = emailMessageJob;
|
|
68
|
+
this.emailRecipientJob = emailRecipientJob;
|
|
60
69
|
this.groupMemberJob = groupMemberJob;
|
|
61
70
|
this.groupRoleJob = groupRoleJob;
|
|
62
71
|
this.listPreferenceJob = listPreferenceJob;
|
|
@@ -78,12 +87,14 @@ let Es6JobsService = class Es6JobsService {
|
|
|
78
87
|
this.uiActionRoleJob = uiActionRoleJob;
|
|
79
88
|
this.userPreferenceJob = userPreferenceJob;
|
|
80
89
|
this.userRoleJob = userRoleJob;
|
|
90
|
+
this.watchlistAssignmentJob = watchlistAssignmentJob;
|
|
81
91
|
this.jobs = {};
|
|
82
92
|
this.alignJobs();
|
|
83
93
|
this.setJobs();
|
|
84
94
|
}
|
|
85
95
|
alignJobs() {
|
|
86
96
|
this.jobs = {
|
|
97
|
+
'959c1abba8882d63a9f588dce339ba69': this.businessEmailJob,
|
|
87
98
|
f456a6f7d1791af00f58d78bbaab144b: this.businessGroupRoleJob,
|
|
88
99
|
b31ffc403925101fb511c12e81892e68: this.businessPreferenceJob,
|
|
89
100
|
'8d9bc56e4c29169dde8f2de343ce44b9': this.businessUserGroupJob,
|
|
@@ -95,6 +106,9 @@ let Es6JobsService = class Es6JobsService {
|
|
|
95
106
|
e3b7f33d4173dbbdf182ba26d62526cd: this.dashboardComponentJob,
|
|
96
107
|
'602b37b1d7d36da5bf800ed3fdb23fe5': this.dashboardJob,
|
|
97
108
|
'407e94e22bd99c6c5cdb517cd3e978b5': this.downloadLogJob,
|
|
109
|
+
'439150e26f04deb6e0eeb0bb824a8e09': this.emailAttachmentJob,
|
|
110
|
+
'4051e443959f98165999dd0ad9b5d7aa': this.emailMessageJob,
|
|
111
|
+
ec859f3a2417e3b66f3f6efab0d03370: this.emailRecipientJob,
|
|
98
112
|
'19909d0969494ac331b1e53a8a80445d': this.groupMemberJob,
|
|
99
113
|
'3cc58c9673f618e58e3080f8ab64118d': this.groupRoleJob,
|
|
100
114
|
'13cb7ad5630f26a75b84e33afc467b4a': this.listPreferenceJob,
|
|
@@ -116,6 +130,7 @@ let Es6JobsService = class Es6JobsService {
|
|
|
116
130
|
'0c812ceb276252bca70289acf23b2197': this.uiActionRoleJob,
|
|
117
131
|
cde37d522acab091e506685644fa3a97: this.userPreferenceJob,
|
|
118
132
|
'98f60308658ff30626fe84c0b0b55165': this.userRoleJob,
|
|
133
|
+
b94cb401a0d650c3f10517b174d3001d: this.watchlistAssignmentJob,
|
|
119
134
|
};
|
|
120
135
|
}
|
|
121
136
|
setJobs() {
|
|
@@ -125,7 +140,8 @@ let Es6JobsService = class Es6JobsService {
|
|
|
125
140
|
exports.Es6JobsService = Es6JobsService;
|
|
126
141
|
exports.Es6JobsService = Es6JobsService = __decorate([
|
|
127
142
|
(0, common_1.Injectable)(),
|
|
128
|
-
__metadata("design:paramtypes", [
|
|
143
|
+
__metadata("design:paramtypes", [business_email_job_1.BusinessEmailJob,
|
|
144
|
+
business_group_role_job_1.BusinessGroupRoleJob,
|
|
129
145
|
business_preference_job_1.BusinessPreferenceJob,
|
|
130
146
|
business_user_group_job_1.BusinessUserGroupJob,
|
|
131
147
|
business_user_job_1.BusinessUserJob,
|
|
@@ -136,6 +152,9 @@ exports.Es6JobsService = Es6JobsService = __decorate([
|
|
|
136
152
|
dashboard_component_job_1.DashboardComponentJob,
|
|
137
153
|
dashboard_job_1.DashboardJob,
|
|
138
154
|
download_log_job_1.DownloadLogJob,
|
|
155
|
+
email_attachment_job_1.EmailAttachmentJob,
|
|
156
|
+
email_message_job_1.EmailMessageJob,
|
|
157
|
+
email_recipient_job_1.EmailRecipientJob,
|
|
139
158
|
group_member_job_1.GroupMemberJob,
|
|
140
159
|
group_role_job_1.GroupRoleJob,
|
|
141
160
|
list_preference_job_1.ListPreferenceJob,
|
|
@@ -156,6 +175,7 @@ exports.Es6JobsService = Es6JobsService = __decorate([
|
|
|
156
175
|
ui_action_job_1.UiActionJob,
|
|
157
176
|
ui_action_role_job_1.UiActionRoleJob,
|
|
158
177
|
user_preference_job_1.UserPreferenceJob,
|
|
159
|
-
user_role_job_1.UserRoleJob
|
|
178
|
+
user_role_job_1.UserRoleJob,
|
|
179
|
+
watchlist_assignment_job_1.WatchlistAssignmentJob])
|
|
160
180
|
], Es6JobsService);
|
|
161
181
|
//# sourceMappingURL=es6.jobs.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/access/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6EAAuE;AACvE,6EAAwE;AACxE,6EAAuE;AACvE,iEAA4D;AAC5D,2EAAqE;AACrE,2DAAsD;AACtD,+DAA2D;AAC3D,iEAA4D;AAC5D,6EAAwE;AACxE,yDAAqD;AACrD,+DAA0D;AAC1D,+DAA0D;AAC1D,2DAAsD;AACtD,qEAAgE;AAChE,mEAA8D;AAC9D,+DAA0D;AAC1D,2EAAsE;AACtE,6DAAwD;AACxD,+CAA2C;AAC3C,yDAAoD;AACpD,mDAA+C;AAC/C,6DAAwD;AACxD,iFAA2E;AAC3E,uEAAkE;AAClE,qDAAiD;AACjD,2DAAsD;AACtD,uEAAkE;AAClE,6FAAuF;AACvF,yDAAoD;AACpD,mEAA6D;AAC7D,qEAAgE;AAChE,yDAAoD;AACpD,oFAAyE;AAQlE,IAAM,cAAc,GAApB,MAAM,cAAc;IAGvB,YACqB,oBAA0C,EAC1C,qBAA4C,EAC5C,oBAA0C,EAC1C,eAAgC,EAChC,mBAAwC,EACxC,YAA0B,EAC1B,eAAgC,EAChC,eAAgC,EAChC,qBAA4C,EAC5C,YAA0B,EAC1B,cAA8B,EAC9B,cAA8B,EAC9B,YAA0B,EAC1B,iBAAoC,EACpC,gBAAkC,EAClC,cAA8B,EAC9B,oBAA0C,EAC1C,aAA4B,EAC5B,OAAgB,EAChB,WAAwB,EACxB,SAAoB,EACpB,aAA4B,EAC5B,sBAA8C,EAC9C,kBAAsC,EACtC,UAAsB,EACtB,YAA0B,EAC1B,kBAAsC,EACtC,4BAA0D,EAC1D,WAAwB,EACxB,eAAgC,EAChC,iBAAoC,EACpC,WAAwB;
|
|
1
|
+
{"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/access/services/es6.jobs.service.ts"],"names":[],"mappings":"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"}
|
|
@@ -21,4 +21,5 @@ __exportStar(require("./listing.preference.service"), exports);
|
|
|
21
21
|
__exportStar(require("./listing.service"), exports);
|
|
22
22
|
__exportStar(require("./load.entity.service"), exports);
|
|
23
23
|
__exportStar(require("./user.preference.service"), exports);
|
|
24
|
+
__exportStar(require("./utility.service"), exports);
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAAA,gEAA8C;AAAA,+DAA6C;AAAA,+DAA6C;AAAA,oDAAkC;AAAA,wDAAsC;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAAA,gEAA8C;AAAA,+DAA6C;AAAA,+DAA6C;AAAA,oDAAkC;AAAA,wDAAsC;AAAA,4DAA0C;AAAA,oDAAiC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.UtilityService = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
12
|
+
let UtilityService = class UtilityService {
|
|
13
|
+
async getLookupValues(lookupTypeId) {
|
|
14
|
+
return nestjs_utility_services_1.LookupValueEntity.find({ where: { lookup_type_id: lookupTypeId }, order: { name: 'ASC' } });
|
|
15
|
+
}
|
|
16
|
+
static async getSourceData(source) {
|
|
17
|
+
const entity = nestjs_utility_services_1.PlatformUtility.getEntity(source.source_type);
|
|
18
|
+
if (!entity)
|
|
19
|
+
return;
|
|
20
|
+
return entity.first(source.source_id);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.UtilityService = UtilityService;
|
|
24
|
+
exports.UtilityService = UtilityService = __decorate([
|
|
25
|
+
(0, common_1.Injectable)()
|
|
26
|
+
], UtilityService);
|
|
27
|
+
//# sourceMappingURL=utility.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utility.service.js","sourceRoot":"","sources":["../../../src/access/services/utility.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,oFAA6G;AAGtG,IAAM,cAAc,GAApB,MAAM,cAAc;IAOvB,KAAK,CAAC,eAAe,CAAC,YAAoB;QACtC,OAAO,2CAAiB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;IACvG,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,MAAuB;QAC9C,MAAM,MAAM,GAAG,yCAAe,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAC7D,IAAI,CAAC,MAAM;YAAE,OAAO;QAEpB,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC1C,CAAC;CACJ,CAAA;AAjBY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;GACA,cAAc,CAiB1B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
|
3
|
+
import { BusinessEmailEntity } from '../entities/business.email.entity';
|
|
4
|
+
import { BusinessEmailJob } from '../jobs/business.email.job';
|
|
5
|
+
export declare class BusinessEmailSubscriber extends CommonSubscriber<BusinessEmailEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
private readonly businessEmailJob;
|
|
8
|
+
constructor(dataSource: DataSource, businessEmailJob: BusinessEmailJob);
|
|
9
|
+
listenTo(): typeof BusinessEmailEntity;
|
|
10
|
+
afterInsert(event: InsertEvent<BusinessEmailEntity>): Promise<void>;
|
|
11
|
+
afterUpdate(event: UpdateEvent<BusinessEmailEntity>): 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.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';
|
|
@@ -29,3 +33,4 @@ export * from './ui.action.role.subscriber';
|
|
|
29
33
|
export * from './ui.action.subscriber';
|
|
30
34
|
export * from './user.preference.subscriber';
|
|
31
35
|
export * from './user.role.subscriber';
|
|
36
|
+
export * from './watchlist.assignment.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);
|
|
@@ -45,4 +49,5 @@ __exportStar(require("./ui.action.role.subscriber"), exports);
|
|
|
45
49
|
__exportStar(require("./ui.action.subscriber"), exports);
|
|
46
50
|
__exportStar(require("./user.preference.subscriber"), exports);
|
|
47
51
|
__exportStar(require("./user.role.subscriber"), exports);
|
|
52
|
+
__exportStar(require("./watchlist.assignment.subscriber"), exports);
|
|
48
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,
|
|
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,yDAAuC;AAAA,oEAAiD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
|
3
|
+
import { WatchlistAssignmentEntity } from '../entities/watchlist.assignment.entity';
|
|
4
|
+
import { WatchlistAssignmentJob } from '../jobs/watchlist.assignment.job';
|
|
5
|
+
export declare class WatchlistAssignmentSubscriber extends CommonSubscriber<WatchlistAssignmentEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
private readonly watchlistAssignmentJob;
|
|
8
|
+
constructor(dataSource: DataSource, watchlistAssignmentJob: WatchlistAssignmentJob);
|
|
9
|
+
listenTo(): typeof WatchlistAssignmentEntity;
|
|
10
|
+
afterInsert(event: InsertEvent<WatchlistAssignmentEntity>): Promise<void>;
|
|
11
|
+
afterUpdate(event: UpdateEvent<WatchlistAssignmentEntity>): 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.WatchlistAssignmentSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const watchlist_assignment_entity_1 = require("../entities/watchlist.assignment.entity");
|
|
16
|
+
const watchlist_assignment_job_1 = require("../jobs/watchlist.assignment.job");
|
|
17
|
+
let WatchlistAssignmentSubscriber = class WatchlistAssignmentSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, watchlistAssignmentJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.watchlistAssignmentJob = watchlistAssignmentJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return watchlist_assignment_entity_1.WatchlistAssignmentEntity;
|
|
26
|
+
}
|
|
27
|
+
async afterInsert(event) {
|
|
28
|
+
await this.watchlistAssignmentJob.delayedDispatch(this.getEventData(event));
|
|
29
|
+
}
|
|
30
|
+
async afterUpdate(event) {
|
|
31
|
+
await this.watchlistAssignmentJob.delayedDispatch(this.getEventData(event));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.WatchlistAssignmentSubscriber = WatchlistAssignmentSubscriber;
|
|
35
|
+
exports.WatchlistAssignmentSubscriber = WatchlistAssignmentSubscriber = __decorate([
|
|
36
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
37
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
38
|
+
watchlist_assignment_job_1.WatchlistAssignmentJob])
|
|
39
|
+
], WatchlistAssignmentSubscriber);
|
|
40
|
+
//# sourceMappingURL=watchlist.assignment.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watchlist.assignment.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/watchlist.assignment.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,yFAAoF;AACpF,+EAA0E;AAEnE,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,0CAA2C;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,uDAAyB,CAAC;IACrC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAA6C;QAC3D,MAAM,IAAI,CAAC,sBAAsB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAA6C;QAC3D,MAAM,IAAI,CAAC,sBAAsB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC;CACJ,CAAA;AAlBY,sEAA6B;wCAA7B,6BAA6B;IADzC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACE,iDAAsB;GAH1D,6BAA6B,CAkBzC"}
|