@servicelabsco/slabs-access-manager 0.1.170 → 0.1.171
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/controllers/business.webhook.controller.d.ts +13 -0
- package/dist/access/controllers/business.webhook.controller.js +81 -0
- package/dist/access/controllers/business.webhook.controller.js.map +1 -0
- package/dist/access/controllers/index.d.ts +1 -0
- package/dist/access/controllers/index.js +1 -0
- package/dist/access/controllers/index.js.map +1 -1
- package/dist/access/dtos/add.webhook.dto.d.ts +5 -0
- package/dist/access/dtos/add.webhook.dto.js +36 -0
- package/dist/access/dtos/add.webhook.dto.js.map +1 -0
- package/dist/access/dtos/business.webhook.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/business.webhook.attributes.dto.js +8 -0
- package/dist/access/dtos/business.webhook.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/send.webhook.request.payload.d.ts +4 -0
- package/dist/access/dtos/send.webhook.request.payload.js +7 -0
- package/dist/access/dtos/send.webhook.request.payload.js.map +1 -0
- package/dist/access/dtos/webhook.event.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/webhook.event.attributes.dto.js +8 -0
- package/dist/access/dtos/webhook.event.attributes.dto.js.map +1 -0
- package/dist/access/dtos/webhook.log.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/webhook.log.attributes.dto.js +8 -0
- package/dist/access/dtos/webhook.log.attributes.dto.js.map +1 -0
- package/dist/access/entities/business.webhook.entity.d.ts +12 -0
- package/dist/access/entities/business.webhook.entity.js +52 -0
- package/dist/access/entities/business.webhook.entity.js.map +1 -0
- package/dist/access/entities/index.d.ts +3 -0
- package/dist/access/entities/index.js +3 -0
- package/dist/access/entities/index.js.map +1 -1
- package/dist/access/entities/webhook.event.entity.d.ts +9 -0
- package/dist/access/entities/webhook.event.entity.js +42 -0
- package/dist/access/entities/webhook.event.entity.js.map +1 -0
- package/dist/access/entities/webhook.log.entity.d.ts +16 -0
- package/dist/access/entities/webhook.log.entity.js +66 -0
- package/dist/access/entities/webhook.log.entity.js.map +1 -0
- package/dist/access/es6.classes.d.ts +18 -6
- package/dist/access/es6.classes.js +32 -0
- package/dist/access/es6.classes.js.map +1 -1
- package/dist/access/jobs/business.webhook.job.d.ts +7 -0
- package/dist/access/jobs/business.webhook.job.js +29 -0
- package/dist/access/jobs/business.webhook.job.js.map +1 -0
- package/dist/access/jobs/index.d.ts +3 -0
- package/dist/access/jobs/index.js +3 -0
- package/dist/access/jobs/index.js.map +1 -1
- package/dist/access/jobs/webhook.event.job.d.ts +7 -0
- package/dist/access/jobs/webhook.event.job.js +29 -0
- package/dist/access/jobs/webhook.event.job.js.map +1 -0
- package/dist/access/jobs/webhook.log.job.d.ts +7 -0
- package/dist/access/jobs/webhook.log.job.js +29 -0
- package/dist/access/jobs/webhook.log.job.js.map +1 -0
- package/dist/access/libraries/index.d.ts +1 -0
- package/dist/access/libraries/index.js +1 -0
- package/dist/access/libraries/index.js.map +1 -1
- package/dist/access/libraries/send.webhook.request.d.ts +20 -0
- package/dist/access/libraries/send.webhook.request.js +71 -0
- package/dist/access/libraries/send.webhook.request.js.map +1 -0
- package/dist/access/services/es6.jobs.service.d.ts +7 -1
- package/dist/access/services/es6.jobs.service.js +13 -1
- package/dist/access/services/es6.jobs.service.js.map +1 -1
- package/dist/access/services/webhook.service.d.ts +5 -2
- package/dist/access/services/webhook.service.js +12 -2
- package/dist/access/services/webhook.service.js.map +1 -1
- package/dist/access/subscribers/business.webhook.subscriber.d.ts +10 -0
- package/dist/access/subscribers/business.webhook.subscriber.js +34 -0
- package/dist/access/subscribers/business.webhook.subscriber.js.map +1 -0
- package/dist/access/subscribers/index.d.ts +3 -0
- package/dist/access/subscribers/index.js +3 -0
- package/dist/access/subscribers/index.js.map +1 -1
- package/dist/access/subscribers/webhook.event.subscriber.d.ts +10 -0
- package/dist/access/subscribers/webhook.event.subscriber.js +34 -0
- package/dist/access/subscribers/webhook.event.subscriber.js.map +1 -0
- package/dist/access/subscribers/webhook.log.subscriber.d.ts +10 -0
- package/dist/access/subscribers/webhook.log.subscriber.js +34 -0
- package/dist/access/subscribers/webhook.log.subscriber.js.map +1 -0
- package/dist/config/entity.constants.d.ts +6 -0
- package/dist/config/entity.constants.js +6 -0
- package/dist/config/entity.constants.js.map +1 -1
- package/dist/migrations/1725422481585-CreateBusinessWebhookTable.d.ts +5 -0
- package/dist/migrations/1725422481585-CreateBusinessWebhookTable.js +22 -0
- package/dist/migrations/1725422481585-CreateBusinessWebhookTable.js.map +1 -0
- package/dist/migrations/1725428002811-CreateWebhookEventTable.d.ts +5 -0
- package/dist/migrations/1725428002811-CreateWebhookEventTable.js +21 -0
- package/dist/migrations/1725428002811-CreateWebhookEventTable.js.map +1 -0
- package/dist/migrations/1725428278040-CreateWebhookLogTable.d.ts +5 -0
- package/dist/migrations/1725428278040-CreateWebhookLogTable.js +24 -0
- package/dist/migrations/1725428278040-CreateWebhookLogTable.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RemoteRequestService } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { SendWebhookRequestPayload } from '../dtos/send.webhook.request.payload';
|
|
3
|
+
import { AccessBusinessEntity } from '../entities/access.business.entity';
|
|
4
|
+
import { BusinessWebhookEntity } from '../entities/business.webhook.entity';
|
|
5
|
+
import { WebhookEventEntity } from '../entities/webhook.event.entity';
|
|
6
|
+
import { WebhookLogEntity } from '../entities/webhook.log.entity';
|
|
7
|
+
export declare class SendWebhookRequest {
|
|
8
|
+
private readonly business;
|
|
9
|
+
private readonly remoteRequestService;
|
|
10
|
+
protected webhook: BusinessWebhookEntity;
|
|
11
|
+
protected event: WebhookEventEntity;
|
|
12
|
+
protected payload: SendWebhookRequestPayload;
|
|
13
|
+
constructor(business: AccessBusinessEntity, remoteRequestService: RemoteRequestService);
|
|
14
|
+
process(payload: SendWebhookRequestPayload): Promise<BusinessWebhookEntity | WebhookLogEntity>;
|
|
15
|
+
private validate;
|
|
16
|
+
private sendRequest;
|
|
17
|
+
private disableWebhook;
|
|
18
|
+
private sleep;
|
|
19
|
+
private saveLog;
|
|
20
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendWebhookRequest = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
const business_webhook_entity_1 = require("../entities/business.webhook.entity");
|
|
6
|
+
const webhook_event_entity_1 = require("../entities/webhook.event.entity");
|
|
7
|
+
const webhook_log_entity_1 = require("../entities/webhook.log.entity");
|
|
8
|
+
class SendWebhookRequest {
|
|
9
|
+
constructor(business, remoteRequestService) {
|
|
10
|
+
this.business = business;
|
|
11
|
+
this.remoteRequestService = remoteRequestService;
|
|
12
|
+
}
|
|
13
|
+
async process(payload) {
|
|
14
|
+
this.payload = payload;
|
|
15
|
+
await this.validate();
|
|
16
|
+
return this.sendRequest();
|
|
17
|
+
}
|
|
18
|
+
async validate() {
|
|
19
|
+
const webhook = await business_webhook_entity_1.BusinessWebhookEntity.findOne({ where: { business_id: this.business.id } });
|
|
20
|
+
if (!webhook?.active)
|
|
21
|
+
throw new nestjs_utility_services_1.OperationException('Webhook is not setup properly');
|
|
22
|
+
const event = await webhook_event_entity_1.WebhookEventEntity.findOne({ where: { identifier: this.payload.event_identifier } });
|
|
23
|
+
if (!event?.active)
|
|
24
|
+
throw new nestjs_utility_services_1.OperationException('Event is not setup properly');
|
|
25
|
+
this.webhook = webhook;
|
|
26
|
+
}
|
|
27
|
+
async sendRequest() {
|
|
28
|
+
const dataPayload = {
|
|
29
|
+
url: this.webhook.url,
|
|
30
|
+
methods: 'POST',
|
|
31
|
+
headers: {
|
|
32
|
+
'Content-Type': 'application/json',
|
|
33
|
+
},
|
|
34
|
+
data: this.payload?.payload,
|
|
35
|
+
};
|
|
36
|
+
let attempts = 0;
|
|
37
|
+
const maxAttempts = 3;
|
|
38
|
+
const delay = 30000;
|
|
39
|
+
while (attempts < maxAttempts) {
|
|
40
|
+
let data = await this.remoteRequestService.getRawResponse(dataPayload);
|
|
41
|
+
if (data?.status === 200)
|
|
42
|
+
return this.saveLog(data);
|
|
43
|
+
attempts++;
|
|
44
|
+
if (attempts < maxAttempts) {
|
|
45
|
+
await this.sleep(delay);
|
|
46
|
+
this.saveLog(data);
|
|
47
|
+
}
|
|
48
|
+
if (attempts === maxAttempts)
|
|
49
|
+
return this.disableWebhook();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
async disableWebhook() {
|
|
53
|
+
this.webhook.active = false;
|
|
54
|
+
return this.webhook.save();
|
|
55
|
+
}
|
|
56
|
+
sleep(ms) {
|
|
57
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
58
|
+
}
|
|
59
|
+
async saveLog(request) {
|
|
60
|
+
const log = webhook_log_entity_1.WebhookLogEntity.create({ webhook_id: this.webhook.id });
|
|
61
|
+
log.event_id = this.event.id;
|
|
62
|
+
log.response_code = request.status;
|
|
63
|
+
log.attempted_at = new Date();
|
|
64
|
+
log.is_success = request.success;
|
|
65
|
+
log.payload = this.payload?.payload;
|
|
66
|
+
log.response_body = request.data;
|
|
67
|
+
return log.save();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.SendWebhookRequest = SendWebhookRequest;
|
|
71
|
+
//# sourceMappingURL=send.webhook.request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send.webhook.request.js","sourceRoot":"","sources":["../../../src/access/libraries/send.webhook.request.ts"],"names":[],"mappings":";;;AAAA,oFAAwH;AAGxH,iFAA4E;AAC5E,2EAAsE;AACtE,uEAAkE;AAMlE,MAAa,kBAAkB;IAM3B,YACqB,QAA8B,EAC9B,oBAA0C;QAD1C,aAAQ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AC;QAEjC,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;IACtB,CAAC;CACJ;AAjFD,gDAiFC"}
|
|
@@ -12,6 +12,7 @@ import { BusinessUserGroupJob } from '../jobs/business.user.group.job';
|
|
|
12
12
|
import { BusinessUserJob } from '../jobs/business.user.job';
|
|
13
13
|
import { BusinessUserNotificationPreferenceJob } from '../jobs/business.user.notification.preference.job';
|
|
14
14
|
import { BusinessUserRoleJob } from '../jobs/business.user.role.job';
|
|
15
|
+
import { BusinessWebhookJob } from '../jobs/business.webhook.job';
|
|
15
16
|
import { BzNotificationChannelPreferenceJob } from '../jobs/bz.notification.channel.preference.job';
|
|
16
17
|
import { ChildMenuJob } from '../jobs/child.menu.job';
|
|
17
18
|
import { ChoiceListJob } from '../jobs/choice.list.job';
|
|
@@ -68,6 +69,8 @@ import { UserNotificationJob } from '../jobs/user.notification.job';
|
|
|
68
69
|
import { UserPreferenceJob } from '../jobs/user.preference.job';
|
|
69
70
|
import { UserRoleJob } from '../jobs/user.role.job';
|
|
70
71
|
import { WatchlistAssignmentJob } from '../jobs/watchlist.assignment.job';
|
|
72
|
+
import { WebhookEventJob } from '../jobs/webhook.event.job';
|
|
73
|
+
import { WebhookLogJob } from '../jobs/webhook.log.job';
|
|
71
74
|
import { WebhookSlugJob } from '../jobs/webhook.slug.job';
|
|
72
75
|
import { WebhookTypeJob } from '../jobs/webhook.type.job';
|
|
73
76
|
import { WhatsappIncomingWebhookJob } from '../jobs/whatsapp.incoming.webhook.job';
|
|
@@ -88,6 +91,7 @@ export declare class Es6JobsService {
|
|
|
88
91
|
private readonly businessUserJob;
|
|
89
92
|
private readonly businessUserNotificationPreferenceJob;
|
|
90
93
|
private readonly businessUserRoleJob;
|
|
94
|
+
private readonly businessWebhookJob;
|
|
91
95
|
private readonly bzNotificationChannelPreferenceJob;
|
|
92
96
|
private readonly childMenuJob;
|
|
93
97
|
private readonly choiceListJob;
|
|
@@ -144,13 +148,15 @@ export declare class Es6JobsService {
|
|
|
144
148
|
private readonly userPreferenceJob;
|
|
145
149
|
private readonly userRoleJob;
|
|
146
150
|
private readonly watchlistAssignmentJob;
|
|
151
|
+
private readonly webhookEventJob;
|
|
152
|
+
private readonly webhookLogJob;
|
|
147
153
|
private readonly webhookSlugJob;
|
|
148
154
|
private readonly webhookTypeJob;
|
|
149
155
|
private readonly whatsappIncomingWebhookJob;
|
|
150
156
|
private readonly whatsappMessageJob;
|
|
151
157
|
private readonly whatsappTemplateJob;
|
|
152
158
|
private jobs;
|
|
153
|
-
constructor(accessTestJob: AccessTestJob, apiAccountJob: ApiAccountJob, appIntegrationJob: AppIntegrationJob, businessAppIntegrationCredentialJob: BusinessAppIntegrationCredentialJob, businessAppIntegrationJob: BusinessAppIntegrationJob, businessAppIntegrationMessagesJob: BusinessAppIntegrationMessagesJob, businessEmailJob: BusinessEmailJob, businessGroupRoleJob: BusinessGroupRoleJob, businessMenuJob: BusinessMenuJob, businessPreferenceJob: BusinessPreferenceJob, businessUserGroupJob: BusinessUserGroupJob, businessUserJob: BusinessUserJob, businessUserNotificationPreferenceJob: BusinessUserNotificationPreferenceJob, businessUserRoleJob: BusinessUserRoleJob, bzNotificationChannelPreferenceJob: BzNotificationChannelPreferenceJob, childMenuJob: ChildMenuJob, choiceListJob: ChoiceListJob, choiceTypeJob: ChoiceTypeJob, conversationJob: ConversationJob, customFieldJob: CustomFieldJob, customReportJob: CustomReportJob, dashboardComponentJob: DashboardComponentJob, dashboardJob: DashboardJob, downloadLogJob: DownloadLogJob, emailAttachmentJob: EmailAttachmentJob, emailMessageJob: EmailMessageJob, emailRecipientJob: EmailRecipientJob, fcmMessageJob: FcmMessageJob, fcmNotificationJob: FcmNotificationJob, fcmTemplateJob: FcmTemplateJob, fcmTokenJob: FcmTokenJob, gchatIncomingWebhookJob: GchatIncomingWebhookJob, gchatMessageJob: GchatMessageJob, gchatTemplateJob: GchatTemplateJob, gchatUserJob: GchatUserJob, gchatWebhookJob: GchatWebhookJob, gchatWebhookMessageJob: GchatWebhookMessageJob, 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, processServerEmailJob: ProcessServerEmailJob, productJob: ProductJob, roleGroupJob: RoleGroupJob, scheduledReportEmailJob: ScheduledReportEmailJob, scheduledReportItemJob: ScheduledReportItemJob, scheduledReportJob: ScheduledReportJob, slackIncomingWebhookJob: SlackIncomingWebhookJob, slackIntegrationJob: SlackIntegrationJob, slackMessageJob: SlackMessageJob, slackTemplateJob: SlackTemplateJob, slackUserJob: SlackUserJob, slackWebhookJob: SlackWebhookJob, slackWebhookMessageJob: SlackWebhookMessageJob, syncBURoleJob: SyncBURoleJob, uiActionJob: UiActionJob, uiActionRoleJob: UiActionRoleJob, userNotificationJob: UserNotificationJob, userPreferenceJob: UserPreferenceJob, userRoleJob: UserRoleJob, watchlistAssignmentJob: WatchlistAssignmentJob, webhookSlugJob: WebhookSlugJob, webhookTypeJob: WebhookTypeJob, whatsappIncomingWebhookJob: WhatsappIncomingWebhookJob, whatsappMessageJob: WhatsappMessageJob, whatsappTemplateJob: WhatsappTemplateJob);
|
|
159
|
+
constructor(accessTestJob: AccessTestJob, apiAccountJob: ApiAccountJob, appIntegrationJob: AppIntegrationJob, businessAppIntegrationCredentialJob: BusinessAppIntegrationCredentialJob, businessAppIntegrationJob: BusinessAppIntegrationJob, businessAppIntegrationMessagesJob: BusinessAppIntegrationMessagesJob, businessEmailJob: BusinessEmailJob, businessGroupRoleJob: BusinessGroupRoleJob, businessMenuJob: BusinessMenuJob, businessPreferenceJob: BusinessPreferenceJob, businessUserGroupJob: BusinessUserGroupJob, businessUserJob: BusinessUserJob, businessUserNotificationPreferenceJob: BusinessUserNotificationPreferenceJob, businessUserRoleJob: BusinessUserRoleJob, businessWebhookJob: BusinessWebhookJob, bzNotificationChannelPreferenceJob: BzNotificationChannelPreferenceJob, childMenuJob: ChildMenuJob, choiceListJob: ChoiceListJob, choiceTypeJob: ChoiceTypeJob, conversationJob: ConversationJob, customFieldJob: CustomFieldJob, customReportJob: CustomReportJob, dashboardComponentJob: DashboardComponentJob, dashboardJob: DashboardJob, downloadLogJob: DownloadLogJob, emailAttachmentJob: EmailAttachmentJob, emailMessageJob: EmailMessageJob, emailRecipientJob: EmailRecipientJob, fcmMessageJob: FcmMessageJob, fcmNotificationJob: FcmNotificationJob, fcmTemplateJob: FcmTemplateJob, fcmTokenJob: FcmTokenJob, gchatIncomingWebhookJob: GchatIncomingWebhookJob, gchatMessageJob: GchatMessageJob, gchatTemplateJob: GchatTemplateJob, gchatUserJob: GchatUserJob, gchatWebhookJob: GchatWebhookJob, gchatWebhookMessageJob: GchatWebhookMessageJob, 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, processServerEmailJob: ProcessServerEmailJob, productJob: ProductJob, roleGroupJob: RoleGroupJob, scheduledReportEmailJob: ScheduledReportEmailJob, scheduledReportItemJob: ScheduledReportItemJob, scheduledReportJob: ScheduledReportJob, slackIncomingWebhookJob: SlackIncomingWebhookJob, slackIntegrationJob: SlackIntegrationJob, slackMessageJob: SlackMessageJob, slackTemplateJob: SlackTemplateJob, slackUserJob: SlackUserJob, slackWebhookJob: SlackWebhookJob, slackWebhookMessageJob: SlackWebhookMessageJob, syncBURoleJob: SyncBURoleJob, uiActionJob: UiActionJob, uiActionRoleJob: UiActionRoleJob, userNotificationJob: UserNotificationJob, userPreferenceJob: UserPreferenceJob, userRoleJob: UserRoleJob, watchlistAssignmentJob: WatchlistAssignmentJob, webhookEventJob: WebhookEventJob, webhookLogJob: WebhookLogJob, webhookSlugJob: WebhookSlugJob, webhookTypeJob: WebhookTypeJob, whatsappIncomingWebhookJob: WhatsappIncomingWebhookJob, whatsappMessageJob: WhatsappMessageJob, whatsappTemplateJob: WhatsappTemplateJob);
|
|
154
160
|
alignJobs(): void;
|
|
155
161
|
setJobs(): void;
|
|
156
162
|
}
|
|
@@ -25,6 +25,7 @@ const business_user_group_job_1 = require("../jobs/business.user.group.job");
|
|
|
25
25
|
const business_user_job_1 = require("../jobs/business.user.job");
|
|
26
26
|
const business_user_notification_preference_job_1 = require("../jobs/business.user.notification.preference.job");
|
|
27
27
|
const business_user_role_job_1 = require("../jobs/business.user.role.job");
|
|
28
|
+
const business_webhook_job_1 = require("../jobs/business.webhook.job");
|
|
28
29
|
const bz_notification_channel_preference_job_1 = require("../jobs/bz.notification.channel.preference.job");
|
|
29
30
|
const child_menu_job_1 = require("../jobs/child.menu.job");
|
|
30
31
|
const choice_list_job_1 = require("../jobs/choice.list.job");
|
|
@@ -81,6 +82,8 @@ const user_notification_job_1 = require("../jobs/user.notification.job");
|
|
|
81
82
|
const user_preference_job_1 = require("../jobs/user.preference.job");
|
|
82
83
|
const user_role_job_1 = require("../jobs/user.role.job");
|
|
83
84
|
const watchlist_assignment_job_1 = require("../jobs/watchlist.assignment.job");
|
|
85
|
+
const webhook_event_job_1 = require("../jobs/webhook.event.job");
|
|
86
|
+
const webhook_log_job_1 = require("../jobs/webhook.log.job");
|
|
84
87
|
const webhook_slug_job_1 = require("../jobs/webhook.slug.job");
|
|
85
88
|
const webhook_type_job_1 = require("../jobs/webhook.type.job");
|
|
86
89
|
const whatsapp_incoming_webhook_job_1 = require("../jobs/whatsapp.incoming.webhook.job");
|
|
@@ -88,7 +91,7 @@ const whatsapp_message_job_1 = require("../jobs/whatsapp.message.job");
|
|
|
88
91
|
const whatsapp_template_job_1 = require("../jobs/whatsapp.template.job");
|
|
89
92
|
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
90
93
|
let Es6JobsService = class Es6JobsService {
|
|
91
|
-
constructor(accessTestJob, apiAccountJob, appIntegrationJob, businessAppIntegrationCredentialJob, businessAppIntegrationJob, businessAppIntegrationMessagesJob, businessEmailJob, businessGroupRoleJob, businessMenuJob, businessPreferenceJob, businessUserGroupJob, businessUserJob, businessUserNotificationPreferenceJob, businessUserRoleJob, bzNotificationChannelPreferenceJob, childMenuJob, choiceListJob, choiceTypeJob, conversationJob, customFieldJob, customReportJob, dashboardComponentJob, dashboardJob, downloadLogJob, emailAttachmentJob, emailMessageJob, emailRecipientJob, fcmMessageJob, fcmNotificationJob, fcmTemplateJob, fcmTokenJob, gchatIncomingWebhookJob, gchatMessageJob, gchatTemplateJob, gchatUserJob, gchatWebhookJob, gchatWebhookMessageJob, groupMemberJob, groupRoleJob, listPreferenceJob, listingColumnJob, listingPageJob, listingPreferenceJob, menuActionJob, menuJob, menuRoleJob, moduleJob, moduleMenuJob, preferenceUserGroupJob, preferenceUsersJob, processServerEmailJob, productJob, roleGroupJob, scheduledReportEmailJob, scheduledReportItemJob, scheduledReportJob, slackIncomingWebhookJob, slackIntegrationJob, slackMessageJob, slackTemplateJob, slackUserJob, slackWebhookJob, slackWebhookMessageJob, syncBURoleJob, uiActionJob, uiActionRoleJob, userNotificationJob, userPreferenceJob, userRoleJob, watchlistAssignmentJob, webhookSlugJob, webhookTypeJob, whatsappIncomingWebhookJob, whatsappMessageJob, whatsappTemplateJob) {
|
|
94
|
+
constructor(accessTestJob, apiAccountJob, appIntegrationJob, businessAppIntegrationCredentialJob, businessAppIntegrationJob, businessAppIntegrationMessagesJob, businessEmailJob, businessGroupRoleJob, businessMenuJob, businessPreferenceJob, businessUserGroupJob, businessUserJob, businessUserNotificationPreferenceJob, businessUserRoleJob, businessWebhookJob, bzNotificationChannelPreferenceJob, childMenuJob, choiceListJob, choiceTypeJob, conversationJob, customFieldJob, customReportJob, dashboardComponentJob, dashboardJob, downloadLogJob, emailAttachmentJob, emailMessageJob, emailRecipientJob, fcmMessageJob, fcmNotificationJob, fcmTemplateJob, fcmTokenJob, gchatIncomingWebhookJob, gchatMessageJob, gchatTemplateJob, gchatUserJob, gchatWebhookJob, gchatWebhookMessageJob, groupMemberJob, groupRoleJob, listPreferenceJob, listingColumnJob, listingPageJob, listingPreferenceJob, menuActionJob, menuJob, menuRoleJob, moduleJob, moduleMenuJob, preferenceUserGroupJob, preferenceUsersJob, processServerEmailJob, productJob, roleGroupJob, scheduledReportEmailJob, scheduledReportItemJob, scheduledReportJob, slackIncomingWebhookJob, slackIntegrationJob, slackMessageJob, slackTemplateJob, slackUserJob, slackWebhookJob, slackWebhookMessageJob, syncBURoleJob, uiActionJob, uiActionRoleJob, userNotificationJob, userPreferenceJob, userRoleJob, watchlistAssignmentJob, webhookEventJob, webhookLogJob, webhookSlugJob, webhookTypeJob, whatsappIncomingWebhookJob, whatsappMessageJob, whatsappTemplateJob) {
|
|
92
95
|
this.accessTestJob = accessTestJob;
|
|
93
96
|
this.apiAccountJob = apiAccountJob;
|
|
94
97
|
this.appIntegrationJob = appIntegrationJob;
|
|
@@ -103,6 +106,7 @@ let Es6JobsService = class Es6JobsService {
|
|
|
103
106
|
this.businessUserJob = businessUserJob;
|
|
104
107
|
this.businessUserNotificationPreferenceJob = businessUserNotificationPreferenceJob;
|
|
105
108
|
this.businessUserRoleJob = businessUserRoleJob;
|
|
109
|
+
this.businessWebhookJob = businessWebhookJob;
|
|
106
110
|
this.bzNotificationChannelPreferenceJob = bzNotificationChannelPreferenceJob;
|
|
107
111
|
this.childMenuJob = childMenuJob;
|
|
108
112
|
this.choiceListJob = choiceListJob;
|
|
@@ -159,6 +163,8 @@ let Es6JobsService = class Es6JobsService {
|
|
|
159
163
|
this.userPreferenceJob = userPreferenceJob;
|
|
160
164
|
this.userRoleJob = userRoleJob;
|
|
161
165
|
this.watchlistAssignmentJob = watchlistAssignmentJob;
|
|
166
|
+
this.webhookEventJob = webhookEventJob;
|
|
167
|
+
this.webhookLogJob = webhookLogJob;
|
|
162
168
|
this.webhookSlugJob = webhookSlugJob;
|
|
163
169
|
this.webhookTypeJob = webhookTypeJob;
|
|
164
170
|
this.whatsappIncomingWebhookJob = whatsappIncomingWebhookJob;
|
|
@@ -184,6 +190,7 @@ let Es6JobsService = class Es6JobsService {
|
|
|
184
190
|
'1df027a19ec3d416b60ffd7024e39e5c': this.businessUserJob,
|
|
185
191
|
bef296dfcb922abc58344ca1934086c1: this.businessUserNotificationPreferenceJob,
|
|
186
192
|
'4a7a00b3a8090e793aeabb9277e2d725': this.businessUserRoleJob,
|
|
193
|
+
'8ea4526f7a5a487483b9e0e4501f6e52': this.businessWebhookJob,
|
|
187
194
|
'46618f9a228f03defd50fa0b6e120225': this.bzNotificationChannelPreferenceJob,
|
|
188
195
|
'589559e61985b6f208ec30499776da52': this.childMenuJob,
|
|
189
196
|
'9d8c018247752b52610a6835efb38a47': this.choiceListJob,
|
|
@@ -240,6 +247,8 @@ let Es6JobsService = class Es6JobsService {
|
|
|
240
247
|
cde37d522acab091e506685644fa3a97: this.userPreferenceJob,
|
|
241
248
|
'98f60308658ff30626fe84c0b0b55165': this.userRoleJob,
|
|
242
249
|
b94cb401a0d650c3f10517b174d3001d: this.watchlistAssignmentJob,
|
|
250
|
+
d6398176da2ef9abab52f8974d249942: this.webhookEventJob,
|
|
251
|
+
'4147e479deae8d2de827bb0a1b9a8c2d': this.webhookLogJob,
|
|
243
252
|
e3aab928b4498843a7c7190423b970e5: this.webhookSlugJob,
|
|
244
253
|
f4371a5f19fff6452debabc49b4a30b1: this.webhookTypeJob,
|
|
245
254
|
d3a34304ad77ca3c3cd075b42fb50a0a: this.whatsappIncomingWebhookJob,
|
|
@@ -268,6 +277,7 @@ exports.Es6JobsService = Es6JobsService = __decorate([
|
|
|
268
277
|
business_user_job_1.BusinessUserJob,
|
|
269
278
|
business_user_notification_preference_job_1.BusinessUserNotificationPreferenceJob,
|
|
270
279
|
business_user_role_job_1.BusinessUserRoleJob,
|
|
280
|
+
business_webhook_job_1.BusinessWebhookJob,
|
|
271
281
|
bz_notification_channel_preference_job_1.BzNotificationChannelPreferenceJob,
|
|
272
282
|
child_menu_job_1.ChildMenuJob,
|
|
273
283
|
choice_list_job_1.ChoiceListJob,
|
|
@@ -324,6 +334,8 @@ exports.Es6JobsService = Es6JobsService = __decorate([
|
|
|
324
334
|
user_preference_job_1.UserPreferenceJob,
|
|
325
335
|
user_role_job_1.UserRoleJob,
|
|
326
336
|
watchlist_assignment_job_1.WatchlistAssignmentJob,
|
|
337
|
+
webhook_event_job_1.WebhookEventJob,
|
|
338
|
+
webhook_log_job_1.WebhookLogJob,
|
|
327
339
|
webhook_slug_job_1.WebhookSlugJob,
|
|
328
340
|
webhook_type_job_1.WebhookTypeJob,
|
|
329
341
|
whatsapp_incoming_webhook_job_1.WhatsappIncomingWebhookJob,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/access/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6DAAwD;AACxD,6DAAwD;AACxD,qEAAgE;AAChE,6GAAsG;AACtG,uFAAiF;AACjF,yGAAkG;AAClG,mEAA8D;AAC9D,6EAAuE;AACvE,iEAA4D;AAC5D,6EAAwE;AACxE,6EAAuE;AACvE,iEAA4D;AAC5D,iHAA0G;AAC1G,2EAAqE;AACrE,2GAAoG;AACpG,2DAAsD;AACtD,6DAAwD;AACxD,6DAAwD;AACxD,+DAA2D;AAC3D,+DAA0D;AAC1D,iEAA4D;AAC5D,6EAAwE;AACxE,yDAAqD;AACrD,+DAA0D;AAC1D,uEAAkE;AAClE,iEAA4D;AAC5D,qEAAgE;AAChE,6DAAwD;AACxD,uEAAk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C,gBAAkC,EAClC,YAA0B,EAC1B,eAAgC,EAChC,sBAA8C,EAC9C,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,qBAA4C,EAC5C,UAAsB,EACtB,YAA0B,EAC1B,uBAAgD,EAChD,sBAA8C,EAC9C,kBAAsC,EACtC,uBAAgD,EAChD,mBAAwC,EACxC,eAAgC,EAChC,gBAAkC,EAClC,YAA0B,EAC1B,eAAgC,EAChC,sBAA8C,EAC9C,aAA4B,EAC5B,WAAwB,EACxB,eAAgC,EAChC,mBAAwC,EACxC,iBAAoC,EACpC,WAAwB,EACxB,sBAA8C,EAC9C,cAA8B,EAC9B,cAA8B,EAC9B,0BAAsD,EACtD,kBAAsC,EACtC,mBAAwC;
|
|
1
|
+
{"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/access/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6DAAwD;AACxD,6DAAwD;AACxD,qEAAgE;AAChE,6GAAsG;AACtG,uFAAiF;AACjF,yGAAkG;AAClG,mEAA8D;AAC9D,6EAAuE;AACvE,iEAA4D;AAC5D,6EAAwE;AACxE,6EAAuE;AACvE,iEAA4D;AAC5D,iHAA0G;AAC1G,2EAAqE;AACrE,uEAAkE;AAClE,2GAAoG;AACpG,2DAAsD;AACtD,6DAAwD;AACxD,6DAAwD;AACxD,+DAA2D;AAC3D,+DAA0D;AAC1D,iEAA4D;AAC5D,6EAAwE;AACxE,yDAAqD;AACrD,+DAA0D;AAC1D,uEAAkE;AAClE,iEAA4D;AAC5D,qEAAgE;AAChE,6DAAwD;AACxD,uEAAkE;AAClE,+DAA0D;AAC1D,yDAAoD;AACpD,mFAA6E;AAC7E,iEAA4D;AAC5D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Aa;QACnB,kBAAO;QACH,2BAAW;QACb,sBAAS;QACL,+BAAa;QACJ,kDAAsB;QAC1B,yCAAkB;QACf,gDAAqB;QAChC,wBAAU;QACR,6BAAY;QACD,oDAAuB;QACxB,kDAAsB;QAC1B,yCAAkB;QACb,oDAAuB;QAC3B,2CAAmB;QACvB,mCAAe;QACd,qCAAgB;QACpB,6BAAY;QACT,mCAAe;QACR,kDAAsB;QAC/B,iCAAa;QACf,2BAAW;QACP,oCAAe;QACX,2CAAmB;QACrB,uCAAiB;QACvB,2BAAW;QACA,iDAAsB;QAC7B,mCAAe;QACjB,+BAAa;QACZ,iCAAc;QACd,iCAAc;QACF,0DAA0B;QAClC,yCAAkB;QACjB,2CAAmB;GAjFpD,cAAc,CAqL1B"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { CacheService } from '@servicelabsco/nestjs-utility-services';
|
|
1
|
+
import { CacheService, RemoteRequestService } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { SendWebhookRequestPayload } from '../dtos/send.webhook.request.payload';
|
|
2
3
|
export declare class WebhookService {
|
|
3
4
|
protected readonly cacheService: CacheService;
|
|
4
|
-
|
|
5
|
+
private readonly remoteRequestService;
|
|
6
|
+
constructor(cacheService: CacheService, remoteRequestService: RemoteRequestService);
|
|
5
7
|
getJob(type: string): Promise<any>;
|
|
6
8
|
setJobFromDb(name: string): Promise<string>;
|
|
7
9
|
getSlugBusiness(slug: string): Promise<any>;
|
|
10
|
+
triggerEvent(business_id: number, payload: SendWebhookRequestPayload): Promise<import("..").BusinessWebhookEntity | import("..").WebhookLogEntity>;
|
|
8
11
|
}
|
|
@@ -13,11 +13,14 @@ exports.WebhookService = void 0;
|
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
15
15
|
const date_fns_1 = require("date-fns");
|
|
16
|
+
const access_business_entity_1 = require("../entities/access.business.entity");
|
|
16
17
|
const webhook_slug_entity_1 = require("../entities/webhook.slug.entity");
|
|
17
18
|
const webhook_type_entity_1 = require("../entities/webhook.type.entity");
|
|
19
|
+
const send_webhook_request_1 = require("../libraries/send.webhook.request");
|
|
18
20
|
let WebhookService = class WebhookService {
|
|
19
|
-
constructor(cacheService) {
|
|
21
|
+
constructor(cacheService, remoteRequestService) {
|
|
20
22
|
this.cacheService = cacheService;
|
|
23
|
+
this.remoteRequestService = remoteRequestService;
|
|
21
24
|
}
|
|
22
25
|
async getJob(type) {
|
|
23
26
|
const identifier = `webhook.type.${type}.job.identifier`;
|
|
@@ -46,10 +49,17 @@ let WebhookService = class WebhookService {
|
|
|
46
49
|
await this.cacheService.set(key, r);
|
|
47
50
|
return r;
|
|
48
51
|
}
|
|
52
|
+
async triggerEvent(business_id, payload) {
|
|
53
|
+
const business = await access_business_entity_1.AccessBusinessEntity.first(business_id);
|
|
54
|
+
if (!business)
|
|
55
|
+
return;
|
|
56
|
+
return new send_webhook_request_1.SendWebhookRequest(business, this.remoteRequestService).process(payload);
|
|
57
|
+
}
|
|
49
58
|
};
|
|
50
59
|
exports.WebhookService = WebhookService;
|
|
51
60
|
exports.WebhookService = WebhookService = __decorate([
|
|
52
61
|
(0, common_1.Injectable)(),
|
|
53
|
-
__metadata("design:paramtypes", [nestjs_utility_services_1.CacheService
|
|
62
|
+
__metadata("design:paramtypes", [nestjs_utility_services_1.CacheService,
|
|
63
|
+
nestjs_utility_services_1.RemoteRequestService])
|
|
54
64
|
], WebhookService);
|
|
55
65
|
//# sourceMappingURL=webhook.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.service.js","sourceRoot":"","sources":["../../../src/access/services/webhook.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"webhook.service.js","sourceRoot":"","sources":["../../../src/access/services/webhook.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAA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,CAAC;QAEtB,MAAM,CAAC,GAAG,MAAM,uCAAiB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACzF,IAAI,CAAC,CAAC;YAAE,OAAO;QAEf,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAEpC,OAAO,CAAC,CAAC;IACb,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,WAAmB,EAAE,OAAkC;QACtE,MAAM,QAAQ,GAAG,MAAM,6CAAoB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC/D,IAAI,CAAC,QAAQ;YAAE,OAAO;QAEtB,OAAO,IAAI,yCAAkB,CAAC,QAAQ,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACxF,CAAC;CACJ,CAAA;AA5CY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAG4B,sCAAY;QACN,8CAAoB;GAHtD,cAAc,CA4C1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource } from 'typeorm';
|
|
3
|
+
import { BusinessWebhookEntity } from '../entities/business.webhook.entity';
|
|
4
|
+
import { BusinessWebhookJob } from '../jobs/business.webhook.job';
|
|
5
|
+
export declare class BusinessWebhookSubscriber extends CommonSubscriber<BusinessWebhookEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
protected readonly entityJob: BusinessWebhookJob;
|
|
8
|
+
constructor(dataSource: DataSource, entityJob: BusinessWebhookJob);
|
|
9
|
+
listenTo(): typeof BusinessWebhookEntity;
|
|
10
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.BusinessWebhookSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const business_webhook_entity_1 = require("../entities/business.webhook.entity");
|
|
16
|
+
const business_webhook_job_1 = require("../jobs/business.webhook.job");
|
|
17
|
+
let BusinessWebhookSubscriber = class BusinessWebhookSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, entityJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.entityJob = entityJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return business_webhook_entity_1.BusinessWebhookEntity;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.BusinessWebhookSubscriber = BusinessWebhookSubscriber;
|
|
29
|
+
exports.BusinessWebhookSubscriber = BusinessWebhookSubscriber = __decorate([
|
|
30
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
31
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
32
|
+
business_webhook_job_1.BusinessWebhookJob])
|
|
33
|
+
], BusinessWebhookSubscriber);
|
|
34
|
+
//# sourceMappingURL=business.webhook.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business.webhook.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/business.webhook.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAsD;AACtD,iFAA4E;AAC5E,uEAAkE;AAE3D,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,0CAAuC;IAClF,YACqB,UAAsB,EACpB,SAA6B;QAEhD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAoB;QAGhD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,+CAAqB,CAAC;IACjC,CAAC;CACJ,CAAA;AAXY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,yCAAkB;GAH3C,yBAAyB,CAWrC"}
|
|
@@ -11,6 +11,7 @@ export * from './business.user.group.subscriber';
|
|
|
11
11
|
export * from './business.user.notification.preference.subscriber';
|
|
12
12
|
export * from './business.user.role.subscriber';
|
|
13
13
|
export * from './business.user.subscriber';
|
|
14
|
+
export * from './business.webhook.subscriber';
|
|
14
15
|
export * from './bz.notification.channel.preference.subscriber';
|
|
15
16
|
export * from './child.menu.subscriber';
|
|
16
17
|
export * from './choice.list.subscriber';
|
|
@@ -63,6 +64,8 @@ export * from './user.notification.subscriber';
|
|
|
63
64
|
export * from './user.preference.subscriber';
|
|
64
65
|
export * from './user.role.subscriber';
|
|
65
66
|
export * from './watchlist.assignment.subscriber';
|
|
67
|
+
export * from './webhook.event.subscriber';
|
|
68
|
+
export * from './webhook.log.subscriber';
|
|
66
69
|
export * from './webhook.slug.subscriber';
|
|
67
70
|
export * from './webhook.type.subscriber';
|
|
68
71
|
export * from './whatsapp.message.subscriber';
|
|
@@ -27,6 +27,7 @@ __exportStar(require("./business.user.group.subscriber"), exports);
|
|
|
27
27
|
__exportStar(require("./business.user.notification.preference.subscriber"), exports);
|
|
28
28
|
__exportStar(require("./business.user.role.subscriber"), exports);
|
|
29
29
|
__exportStar(require("./business.user.subscriber"), exports);
|
|
30
|
+
__exportStar(require("./business.webhook.subscriber"), exports);
|
|
30
31
|
__exportStar(require("./bz.notification.channel.preference.subscriber"), exports);
|
|
31
32
|
__exportStar(require("./child.menu.subscriber"), exports);
|
|
32
33
|
__exportStar(require("./choice.list.subscriber"), exports);
|
|
@@ -79,6 +80,8 @@ __exportStar(require("./user.notification.subscriber"), exports);
|
|
|
79
80
|
__exportStar(require("./user.preference.subscriber"), exports);
|
|
80
81
|
__exportStar(require("./user.role.subscriber"), exports);
|
|
81
82
|
__exportStar(require("./watchlist.assignment.subscriber"), exports);
|
|
83
|
+
__exportStar(require("./webhook.event.subscriber"), exports);
|
|
84
|
+
__exportStar(require("./webhook.log.subscriber"), exports);
|
|
82
85
|
__exportStar(require("./webhook.slug.subscriber"), exports);
|
|
83
86
|
__exportStar(require("./webhook.type.subscriber"), exports);
|
|
84
87
|
__exportStar(require("./whatsapp.message.subscriber"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,+DAA6C;AAAA,mFAAiE;AAAA,iFAA+D;AAAA,wEAAsD;AAAA,8DAA4C;AAAA,mEAAiD;AAAA,6DAA2C;AAAA,mEAAiD;AAAA,mEAAiD;AAAA,qFAAmE;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,kFAAgE;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,6DAA2C;AAAA,mEAAiD;AAAA,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C;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,0DAAwC;AAAA,qEAAmD;AAAA,6DAA2C;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,sEAAoD;AAAA,qEAAmD;AAAA,gEAA8C;AAAA,iEAA+C;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,0DAAwC;AAAA,qEAAmD;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,yDAAuC;AAAA,iEAA+C;AAAA,+DAA6C;AAAA,yDAAuC;AAAA,oEAAkD;AAAA,6DAA2C;AAAA,2DAAyC;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,gEAA8C;AAAA,iEAA8C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource } from 'typeorm';
|
|
3
|
+
import { WebhookEventEntity } from '../entities/webhook.event.entity';
|
|
4
|
+
import { WebhookEventJob } from '../jobs/webhook.event.job';
|
|
5
|
+
export declare class WebhookEventSubscriber extends CommonSubscriber<WebhookEventEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
protected readonly entityJob: WebhookEventJob;
|
|
8
|
+
constructor(dataSource: DataSource, entityJob: WebhookEventJob);
|
|
9
|
+
listenTo(): typeof WebhookEventEntity;
|
|
10
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.WebhookEventSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const webhook_event_entity_1 = require("../entities/webhook.event.entity");
|
|
16
|
+
const webhook_event_job_1 = require("../jobs/webhook.event.job");
|
|
17
|
+
let WebhookEventSubscriber = class WebhookEventSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, entityJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.entityJob = entityJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return webhook_event_entity_1.WebhookEventEntity;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.WebhookEventSubscriber = WebhookEventSubscriber;
|
|
29
|
+
exports.WebhookEventSubscriber = WebhookEventSubscriber = __decorate([
|
|
30
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
31
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
32
|
+
webhook_event_job_1.WebhookEventJob])
|
|
33
|
+
], WebhookEventSubscriber);
|
|
34
|
+
//# sourceMappingURL=webhook.event.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.event.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/webhook.event.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,2EAAsE;AACtE,iEAA4D;AAErD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,0CAAoC;IAC5E,YACqB,UAAsB,EACpB,SAA0B;QAE7C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAiB;QAG7C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,yCAAkB,CAAC;IAC9B,CAAC;CACJ,CAAA;AAXY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,mCAAe;GAHxC,sBAAsB,CAWlC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource } from 'typeorm';
|
|
3
|
+
import { WebhookLogEntity } from '../entities/webhook.log.entity';
|
|
4
|
+
import { WebhookLogJob } from '../jobs/webhook.log.job';
|
|
5
|
+
export declare class WebhookLogSubscriber extends CommonSubscriber<WebhookLogEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
protected readonly entityJob: WebhookLogJob;
|
|
8
|
+
constructor(dataSource: DataSource, entityJob: WebhookLogJob);
|
|
9
|
+
listenTo(): typeof WebhookLogEntity;
|
|
10
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.WebhookLogSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const webhook_log_entity_1 = require("../entities/webhook.log.entity");
|
|
16
|
+
const webhook_log_job_1 = require("../jobs/webhook.log.job");
|
|
17
|
+
let WebhookLogSubscriber = class WebhookLogSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, entityJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.entityJob = entityJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return webhook_log_entity_1.WebhookLogEntity;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.WebhookLogSubscriber = WebhookLogSubscriber;
|
|
29
|
+
exports.WebhookLogSubscriber = WebhookLogSubscriber = __decorate([
|
|
30
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
31
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
32
|
+
webhook_log_job_1.WebhookLogJob])
|
|
33
|
+
], WebhookLogSubscriber);
|
|
34
|
+
//# sourceMappingURL=webhook.log.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.log.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/webhook.log.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAsD;AACtD,uEAAkE;AAClE,6DAAwD;AAEjD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,0CAAkC;IACxE,YACqB,UAAsB,EACpB,SAAwB;QAE3C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACpB,cAAS,GAAT,SAAS,CAAe;QAG3C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,qCAAgB,CAAC;IAC5B,CAAC;CACJ,CAAA;AAXY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACT,+BAAa;GAHtC,oBAAoB,CAWhC"}
|
|
@@ -12,6 +12,7 @@ import { BusinessUserEntity } from '../access/entities/business.user.entity';
|
|
|
12
12
|
import { BusinessUserGroupEntity } from '../access/entities/business.user.group.entity';
|
|
13
13
|
import { BusinessUserNotificationPreferenceEntity } from '../access/entities/business.user.notification.preference.entity';
|
|
14
14
|
import { BusinessUserRoleEntity } from '../access/entities/business.user.role.entity';
|
|
15
|
+
import { BusinessWebhookEntity } from '../access/entities/business.webhook.entity';
|
|
15
16
|
import { BzNotificationChannelPreferenceEntity } from '../access/entities/bz.notification.channel.preference.entity';
|
|
16
17
|
import { ChildMenuEntity } from '../access/entities/child.menu.entity';
|
|
17
18
|
import { ChoiceListEntity } from '../access/entities/choice.list.entity';
|
|
@@ -62,6 +63,8 @@ import { UserNotificationEntity } from '../access/entities/user.notification.ent
|
|
|
62
63
|
import { UserPreferenceEntity } from '../access/entities/user.preference.entity';
|
|
63
64
|
import { UserRoleEntity } from '../access/entities/user.role.entity';
|
|
64
65
|
import { WatchlistAssignmentEntity } from '../access/entities/watchlist.assignment.entity';
|
|
66
|
+
import { WebhookEventEntity } from '../access/entities/webhook.event.entity';
|
|
67
|
+
import { WebhookLogEntity } from '../access/entities/webhook.log.entity';
|
|
65
68
|
import { WebhookSlugEntity } from '../access/entities/webhook.slug.entity';
|
|
66
69
|
import { WebhookTypeEntity } from '../access/entities/webhook.type.entity';
|
|
67
70
|
import { WhatsappMessageEntity } from '../access/entities/whatsapp.message.entity';
|
|
@@ -107,6 +110,7 @@ declare const entityConstants: {
|
|
|
107
110
|
a699176389a8f376116bc1adc00df79c: typeof BusinessUserGroupEntity;
|
|
108
111
|
'642b58a70418b62501b4d1144ac88a86': typeof BusinessUserNotificationPreferenceEntity;
|
|
109
112
|
db2456e356ed67bad6d4d1b02760663e: typeof BusinessUserRoleEntity;
|
|
113
|
+
'2afb23dfdf4bcf46c31ee75ca14ec4e7': typeof BusinessWebhookEntity;
|
|
110
114
|
'3ba267116d92692a2248e1d845fd26d9': typeof BzNotificationChannelPreferenceEntity;
|
|
111
115
|
'70d7e2ccf454713ab4774a37daf4188d': typeof ChildMenuEntity;
|
|
112
116
|
'7874e58032a1eaf165d2151c1db160b5': typeof ChoiceListEntity;
|
|
@@ -157,6 +161,8 @@ declare const entityConstants: {
|
|
|
157
161
|
'0c52a732ac1a3d79a48d5706ac8254f6': typeof UserPreferenceEntity;
|
|
158
162
|
'04e801c3e17dd4d1d958265e1d8b86a7': typeof UserRoleEntity;
|
|
159
163
|
'9c47e38e41415ac04d219f522982a5ed': typeof WatchlistAssignmentEntity;
|
|
164
|
+
'7b054afa4e6c8413ed29ddee4c460388': typeof WebhookEventEntity;
|
|
165
|
+
d02c7d264e77460ed3dddf12daa896ad: typeof WebhookLogEntity;
|
|
160
166
|
af8230a0faa4eb5bedae009c6be3b4c1: typeof WebhookSlugEntity;
|
|
161
167
|
'1d96e27411fc5a0b9e1ddb689def1682': typeof WebhookTypeEntity;
|
|
162
168
|
'7975ac5d988d6b11ee7e5d0c9ce21ab5': typeof WhatsappMessageEntity;
|
|
@@ -13,6 +13,7 @@ const business_user_entity_1 = require("../access/entities/business.user.entity"
|
|
|
13
13
|
const business_user_group_entity_1 = require("../access/entities/business.user.group.entity");
|
|
14
14
|
const business_user_notification_preference_entity_1 = require("../access/entities/business.user.notification.preference.entity");
|
|
15
15
|
const business_user_role_entity_1 = require("../access/entities/business.user.role.entity");
|
|
16
|
+
const business_webhook_entity_1 = require("../access/entities/business.webhook.entity");
|
|
16
17
|
const bz_notification_channel_preference_entity_1 = require("../access/entities/bz.notification.channel.preference.entity");
|
|
17
18
|
const child_menu_entity_1 = require("../access/entities/child.menu.entity");
|
|
18
19
|
const choice_list_entity_1 = require("../access/entities/choice.list.entity");
|
|
@@ -63,6 +64,8 @@ const user_notification_entity_1 = require("../access/entities/user.notification
|
|
|
63
64
|
const user_preference_entity_1 = require("../access/entities/user.preference.entity");
|
|
64
65
|
const user_role_entity_1 = require("../access/entities/user.role.entity");
|
|
65
66
|
const watchlist_assignment_entity_1 = require("../access/entities/watchlist.assignment.entity");
|
|
67
|
+
const webhook_event_entity_1 = require("../access/entities/webhook.event.entity");
|
|
68
|
+
const webhook_log_entity_1 = require("../access/entities/webhook.log.entity");
|
|
66
69
|
const webhook_slug_entity_1 = require("../access/entities/webhook.slug.entity");
|
|
67
70
|
const webhook_type_entity_1 = require("../access/entities/webhook.type.entity");
|
|
68
71
|
const whatsapp_message_entity_1 = require("../access/entities/whatsapp.message.entity");
|
|
@@ -108,6 +111,7 @@ const entityConstants = {
|
|
|
108
111
|
a699176389a8f376116bc1adc00df79c: business_user_group_entity_1.BusinessUserGroupEntity,
|
|
109
112
|
'642b58a70418b62501b4d1144ac88a86': business_user_notification_preference_entity_1.BusinessUserNotificationPreferenceEntity,
|
|
110
113
|
db2456e356ed67bad6d4d1b02760663e: business_user_role_entity_1.BusinessUserRoleEntity,
|
|
114
|
+
'2afb23dfdf4bcf46c31ee75ca14ec4e7': business_webhook_entity_1.BusinessWebhookEntity,
|
|
111
115
|
'3ba267116d92692a2248e1d845fd26d9': bz_notification_channel_preference_entity_1.BzNotificationChannelPreferenceEntity,
|
|
112
116
|
'70d7e2ccf454713ab4774a37daf4188d': child_menu_entity_1.ChildMenuEntity,
|
|
113
117
|
'7874e58032a1eaf165d2151c1db160b5': choice_list_entity_1.ChoiceListEntity,
|
|
@@ -158,6 +162,8 @@ const entityConstants = {
|
|
|
158
162
|
'0c52a732ac1a3d79a48d5706ac8254f6': user_preference_entity_1.UserPreferenceEntity,
|
|
159
163
|
'04e801c3e17dd4d1d958265e1d8b86a7': user_role_entity_1.UserRoleEntity,
|
|
160
164
|
'9c47e38e41415ac04d219f522982a5ed': watchlist_assignment_entity_1.WatchlistAssignmentEntity,
|
|
165
|
+
'7b054afa4e6c8413ed29ddee4c460388': webhook_event_entity_1.WebhookEventEntity,
|
|
166
|
+
d02c7d264e77460ed3dddf12daa896ad: webhook_log_entity_1.WebhookLogEntity,
|
|
161
167
|
af8230a0faa4eb5bedae009c6be3b4c1: webhook_slug_entity_1.WebhookSlugEntity,
|
|
162
168
|
'1d96e27411fc5a0b9e1ddb689def1682': webhook_type_entity_1.WebhookTypeEntity,
|
|
163
169
|
'7975ac5d988d6b11ee7e5d0c9ce21ab5': whatsapp_message_entity_1.WhatsappMessageEntity,
|