@servicelabsco/slabs-access-manager 0.1.170 → 0.1.172
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.app.integration.controller.d.ts +2 -0
- package/dist/access/controllers/business.app.integration.controller.js +17 -0
- package/dist/access/controllers/business.app.integration.controller.js.map +1 -1
- package/dist/access/controllers/business.user.notification.preference.controller.js +3 -4
- package/dist/access/controllers/business.user.notification.preference.controller.js.map +1 -1
- package/dist/access/controllers/business.webhook.controller.d.ts +16 -0
- package/dist/access/controllers/business.webhook.controller.js +109 -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.business.user.notification.preference.dto.d.ts +1 -1
- package/dist/access/dtos/add.business.user.notification.preference.dto.js.map +1 -1
- package/dist/access/dtos/add.integration.preference.dto.d.ts +3 -0
- package/dist/access/dtos/add.integration.preference.dto.js +24 -0
- package/dist/access/dtos/add.integration.preference.dto.js.map +1 -0
- package/dist/access/dtos/add.notification.channel.preference.dto.d.ts +0 -1
- package/dist/access/dtos/add.notification.channel.preference.dto.js +0 -6
- package/dist/access/dtos/add.notification.channel.preference.dto.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 +6 -0
- package/dist/access/dtos/index.js +6 -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/app.integration.entity.d.ts +0 -1
- package/dist/access/entities/app.integration.entity.js +0 -4
- package/dist/access/entities/app.integration.entity.js.map +1 -1
- package/dist/access/entities/business.app.integration.entity.d.ts +2 -1
- package/dist/access/entities/business.app.integration.entity.js +6 -2
- package/dist/access/entities/business.app.integration.entity.js.map +1 -1
- 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 +19 -7
- 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/email.message.job.js +2 -0
- package/dist/access/jobs/email.message.job.js.map +1 -1
- 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/business.notification.channel.preference.list.d.ts +0 -1
- package/dist/access/libraries/business.notification.channel.preference.list.js +0 -1
- package/dist/access/libraries/business.notification.channel.preference.list.js.map +1 -1
- package/dist/access/libraries/business.user.notification.preference.list.d.ts +0 -1
- package/dist/access/libraries/business.user.notification.preference.list.js +9 -3
- package/dist/access/libraries/business.user.notification.preference.list.js.map +1 -1
- 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/process.slack.integration.js +1 -0
- package/dist/access/libraries/process.slack.integration.js.map +1 -1
- package/dist/access/libraries/process.whatsapp.integration.js +1 -0
- package/dist/access/libraries/process.whatsapp.integration.js.map +1 -1
- package/dist/access/libraries/send.slack.message.notification.d.ts +3 -1
- package/dist/access/libraries/send.slack.message.notification.js +15 -3
- package/dist/access/libraries/send.slack.message.notification.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/libraries/send.whatsapp.message.notification.js +9 -2
- package/dist/access/libraries/send.whatsapp.message.notification.js.map +1 -1
- 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/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/notification.preference.service.d.ts +9 -0
- package/dist/access/services/notification.preference.service.js +50 -0
- package/dist/access/services/notification.preference.service.js.map +1 -0
- package/dist/access/services/notification.service.d.ts +6 -4
- package/dist/access/services/notification.service.js +7 -4
- package/dist/access/services/notification.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/services/whatsapp.service.d.ts +8 -1
- package/dist/access/services/whatsapp.service.js +40 -2
- package/dist/access/services/whatsapp.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/accessUtility/es6.classes.d.ts +3 -3
- 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/dist/migrations/1725439900529-AddVisibleColumnUtlNotificationDetailsTable.d.ts +5 -0
- package/dist/migrations/1725439900529-AddVisibleColumnUtlNotificationDetailsTable.js +15 -0
- package/dist/migrations/1725439900529-AddVisibleColumnUtlNotificationDetailsTable.js.map +1 -0
- package/package.json +1 -1
|
@@ -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,oFAA4F;AAC5F,uCAAoC;AAEpC,+EAA0E;AAC1E,yEAAoE;AACpE,yEAAoE;AACpE,4EAAuE;AAGhE,IAAM,cAAc,GAApB,MAAM,cAAc;IACvB,YACuB,YAA0B,EAC5B,oBAA0C;QADxC,iBAAY,GAAZ,YAAY,CAAc;QAC5B,yBAAoB,GAApB,oBAAoB,CAAsB;IAC5D,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,IAAY;QACrB,MAAM,UAAU,GAAG,gBAAgB,IAAI,iBAAiB,CAAC;QACzD,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAElD,IAAI,CAAC;YAAE,OAAO,CAAC,CAAC;QAChB,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,IAAY;QAC3B,MAAM,CAAC,GAAG,MAAM,uCAAiB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACrF,MAAM,GAAG,GAAG,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC;QACjC,IAAI,CAAC,GAAG;YAAE,OAAO;QAEjB,MAAM,UAAU,GAAG,gBAAgB,IAAI,iBAAiB,CAAC;QACzD,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,EAAE,IAAA,mBAAQ,EAAC,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;QAEtE,OAAO,GAAG,CAAC;IACf,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,IAAY;QAC9B,MAAM,GAAG,GAAG,WAAW,IAAI,WAAW,CAAC;QACvC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC9C,IAAI,IAAI;YAAE,OAAO,IAAI,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"}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { CacheService, PropertyService, RemoteRequestService } from '@servicelabsco/nestjs-utility-services';
|
|
2
2
|
import { WhatsappPostingPayloadDto } from '../dtos/whatsapp.posting.payload.dto';
|
|
3
|
+
import { NotificationPreferenceService } from './notification.preference.service';
|
|
3
4
|
export declare class WhatsappService {
|
|
4
5
|
private readonly remoteRequestService;
|
|
5
6
|
protected readonly cacheService: CacheService;
|
|
6
7
|
private readonly propertyService;
|
|
7
|
-
|
|
8
|
+
private readonly notificationPreferenceService;
|
|
9
|
+
constructor(remoteRequestService: RemoteRequestService, cacheService: CacheService, propertyService: PropertyService, notificationPreferenceService: NotificationPreferenceService);
|
|
8
10
|
getAuthorizationToken(): Promise<string>;
|
|
9
11
|
hasWhatsappEnabled(business_id: number, user_id: number): Promise<boolean>;
|
|
10
12
|
sendMessage(options: WhatsappPostingPayloadDto): Promise<import("@servicelabsco/nestjs-utility-services").RemoteRawResponseDto>;
|
|
13
|
+
isAllowedOnWhatsapp(payload: {
|
|
14
|
+
business_id: number;
|
|
15
|
+
user_id: number;
|
|
16
|
+
notification_id: number;
|
|
17
|
+
}): Promise<boolean>;
|
|
11
18
|
}
|
|
@@ -12,12 +12,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.WhatsappService = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
15
|
+
const integration_type_constant_1 = require("../../config/integration.type.constant");
|
|
16
|
+
const app_integration_entity_1 = require("../entities/app.integration.entity");
|
|
17
|
+
const business_app_integration_entity_1 = require("../entities/business.app.integration.entity");
|
|
18
|
+
const business_user_notification_preference_entity_1 = require("../entities/business.user.notification.preference.entity");
|
|
19
|
+
const bz_notification_channel_preference_entity_1 = require("../entities/bz.notification.channel.preference.entity");
|
|
15
20
|
const whatsapp_preference_entity_1 = require("../entities/whatsapp.preference.entity");
|
|
21
|
+
const notification_channel_type_enum_1 = require("../enums/notification.channel.type.enum");
|
|
22
|
+
const notification_preference_service_1 = require("./notification.preference.service");
|
|
16
23
|
let WhatsappService = class WhatsappService {
|
|
17
|
-
constructor(remoteRequestService, cacheService, propertyService) {
|
|
24
|
+
constructor(remoteRequestService, cacheService, propertyService, notificationPreferenceService) {
|
|
18
25
|
this.remoteRequestService = remoteRequestService;
|
|
19
26
|
this.cacheService = cacheService;
|
|
20
27
|
this.propertyService = propertyService;
|
|
28
|
+
this.notificationPreferenceService = notificationPreferenceService;
|
|
21
29
|
}
|
|
22
30
|
async getAuthorizationToken() {
|
|
23
31
|
const key = `whatsapp.business.token`;
|
|
@@ -48,12 +56,42 @@ let WhatsappService = class WhatsappService {
|
|
|
48
56
|
};
|
|
49
57
|
return this.remoteRequestService.getRawResponse(opts);
|
|
50
58
|
}
|
|
59
|
+
async isAllowedOnWhatsapp(payload) {
|
|
60
|
+
const integration = await app_integration_entity_1.AppIntegrationEntity.findOne({ where: { integration_identifier: integration_type_constant_1.IntegrationIdentifierConstants.whatsapp } });
|
|
61
|
+
if (!integration)
|
|
62
|
+
return false;
|
|
63
|
+
const businessIntegration = await business_app_integration_entity_1.BusinessAppIntegrationEntity.findOne({
|
|
64
|
+
where: { business_id: payload.business_id, integration_id: integration?.id, active: true },
|
|
65
|
+
relations: ['integration'],
|
|
66
|
+
});
|
|
67
|
+
if (!businessIntegration)
|
|
68
|
+
return false;
|
|
69
|
+
if (businessIntegration.enabled_globally)
|
|
70
|
+
return true;
|
|
71
|
+
const notificationUserPreference = await business_user_notification_preference_entity_1.BusinessUserNotificationPreferenceEntity.findOne({
|
|
72
|
+
where: {
|
|
73
|
+
notification_id: payload.notification_id,
|
|
74
|
+
user_id: payload.user_id,
|
|
75
|
+
business_id: payload.business_id,
|
|
76
|
+
channel_id: notification_channel_type_enum_1.NotificationChannelTypeEnum.WHATSAPP,
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
if (!notificationUserPreference?.active)
|
|
80
|
+
return false;
|
|
81
|
+
const notificationChannelPreference = await bz_notification_channel_preference_entity_1.BzNotificationChannelPreferenceEntity.findOne({
|
|
82
|
+
where: { business_id: payload.business_id, user_id: payload.user_id, channel_id: notification_channel_type_enum_1.NotificationChannelTypeEnum.WHATSAPP },
|
|
83
|
+
});
|
|
84
|
+
if (!notificationChannelPreference?.active)
|
|
85
|
+
return false;
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
51
88
|
};
|
|
52
89
|
exports.WhatsappService = WhatsappService;
|
|
53
90
|
exports.WhatsappService = WhatsappService = __decorate([
|
|
54
91
|
(0, common_1.Injectable)(),
|
|
55
92
|
__metadata("design:paramtypes", [nestjs_utility_services_1.RemoteRequestService,
|
|
56
93
|
nestjs_utility_services_1.CacheService,
|
|
57
|
-
nestjs_utility_services_1.PropertyService
|
|
94
|
+
nestjs_utility_services_1.PropertyService,
|
|
95
|
+
notification_preference_service_1.NotificationPreferenceService])
|
|
58
96
|
], WhatsappService);
|
|
59
97
|
//# sourceMappingURL=whatsapp.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp.service.js","sourceRoot":"","sources":["../../../src/access/services/whatsapp.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"whatsapp.service.js","sourceRoot":"","sources":["../../../src/access/services/whatsapp.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAiI;AACjI,sFAAwF;AAExF,+EAA0E;AAC1E,iGAA2F;AAC3F,2HAAoH;AACpH,qHAA8G;AAC9G,uFAAkF;AAClF,4FAAsF;AACtF,uFAAkF;AAG3E,IAAM,eAAe,GAArB,MAAM,eAAe;IACxB,YACqB,oBAA0C,EACxC,YAA0B,EAC5B,eAAgC,EAChC,6BAA4D;QAH5D,yBAAoB,GAApB,oBAAoB,CAAsB;QACxC,iBAAY,GAAZ,YAAY,CAAc;QAC5B,oBAAe,GAAf,eAAe,CAAiB;QAChC,kCAA6B,GAA7B,6BAA6B,CAA+B;IAC9E,CAAC;IAEJ,KAAK,CAAC,qBAAqB;QACvB,MAAM,GAAG,GAAG,yBAAyB,CAAC;QACtC,MAAM,IA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AC,OAAO,CAAC;YACnE,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;YAC1F,SAAS,EAAE,CAAC,aAAa,CAAC;SAC7B,CAAC,CAAC;QACH,IAAI,CAAC,mBAAmB;YAAE,OAAO,KAAK,CAAC;QACvC,IAAI,mBAAmB,CAAC,gBAAgB;YAAE,OAAO,IAAI,CAAC;QAEtD,MAAM,0BAA0B,GAAG,MAAM,uFAAwC,CAAC,OAAO,CAAC;YACtF,KAAK,EAAE;gBACH,eAAe,EAAE,OAAO,CAAC,eAAe;gBACxC,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,UAAU,EAAE,4DAA2B,CAAC,QAAQ;aACnD;SACJ,CAAC,CAAC;QACH,IAAI,CAAC,0BAA0B,EAAE,MAAM;YAAE,OAAO,KAAK,CAAC;QAEtD,MAAM,6BAA6B,GAAG,MAAM,iFAAqC,CAAC,OAAO,CAAC;YACtF,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,4DAA2B,CAAC,QAAQ,EAAE;SAC1H,CAAC,CAAC;QACH,IAAI,CAAC,6BAA6B,EAAE,MAAM;YAAE,OAAO,KAAK,CAAC;QAEzD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ,CAAA;AAhFY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;qCAGkC,8CAAoB;QAC1B,sCAAY;QACX,yCAAe;QACD,+DAA6B;GALxE,eAAe,CAgF3B"}
|
|
@@ -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,yDAAuC;AAAA,4DAA0C;AAAA,gEAA8C;AAAA,6DAA2C;AAAA,+DAA6C;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,4DAA0C;AAAA,yDAAuC;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,4DAA0C;AAAA,4DAA0C;AAAA,gEAA8C;AAAA,iEAA8C"}
|
|
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,gEAA8C;AAAA,kFAAgE;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,6DAA2C;AAAA,mEAAiD;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,gEAA8C;AAAA,6DAA2C;AAAA,+DAA6C;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,4DAA0C;AAAA,yDAAuC;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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BulkUploadSheetDto } from './dtos/bulk.upload.sheet.dto';
|
|
2
2
|
import { DocumentFileUploadDto } from './dtos/document.file.upload.dto';
|
|
3
|
+
import { EmailNotificationAttributesDto } from './dtos/email.notification.attributes.dto';
|
|
3
4
|
import { ErrorHandlingDto } from './dtos/error.handling.dto';
|
|
4
|
-
import { GchatNotificationAttributesDto } from './dtos/gchat.notification.attributes.dto';
|
|
5
5
|
import { PdfDocumentDataDto } from './dtos/pdf.document.data.dto';
|
|
6
6
|
import { BulkDefinitionEntity } from './entities/bulk.definition.entity';
|
|
7
7
|
import { BulkDefinitionProcessingEntity } from './entities/bulk.definition.processing.entity';
|
|
@@ -85,8 +85,8 @@ import { UploadModificationSubscriber } from './subscribers/upload.modification.
|
|
|
85
85
|
import { WebhookRequestSubscriber } from './subscribers/webhook.request.subscriber';
|
|
86
86
|
import { WhatsappNotificationSubscriber } from './subscribers/whatsapp.notification.subscriber';
|
|
87
87
|
declare const es6Classes: {
|
|
88
|
-
dtos: (typeof
|
|
89
|
-
entities: (typeof
|
|
88
|
+
dtos: (typeof EmailNotificationAttributesDto | typeof BulkUploadSheetDto | typeof DocumentFileUploadDto | typeof ErrorHandlingDto | typeof PdfDocumentDataDto)[];
|
|
89
|
+
entities: (typeof FcmTemplateEntity | typeof FcmNotificationEntity | typeof InappNotificationEntity | typeof SmsNotificationEntity | typeof WhatsappNotificationEntity | typeof EmailNotificationEntity | typeof BulkUploadColumnEntity | typeof BulkUploadTypeEntity | typeof BulkDefinitionEntity | typeof BulkDefinitionProcessingEntity | typeof BulkUploadItemEntity | typeof BulkUploadEntity | typeof UploadModificationEntity | typeof ListingModelEntity | typeof TagAssignmentEntity | typeof DataMappingEntity | typeof ItemUnitEntity | typeof NotificationRecipientEntity | typeof PdfTemplatesEntity | typeof PdfDocumentsEntity | typeof WebhookRequestEntity)[];
|
|
90
90
|
jobs: (typeof PushToBulkItemJob | typeof AnalyseBulkUploadJob | typeof BulkDefinitionJob | typeof BulkDefinitionLoadJob | typeof BulkDefinitionProcessingJob | typeof BulkUploadColumnJob | typeof BulkUploadStatsJob | typeof BulkUploadItemJob | typeof BulkUploadJob | typeof BulkUploadTypeJob | typeof DataMappingJob | typeof EmailNotificationJob | typeof GchatNotificationJob | typeof InappNotificationJob | typeof ItemUnitJob | typeof ListingModelJob | typeof NotificationJob | typeof NotificationRecipientJob | typeof PdfDocumentJob | typeof SlackNotificationJob | typeof SmsNotificationJob | typeof TagAssignmentJob | typeof UploadModificationJob | typeof WebhookRequestJob | typeof WhatsappNotificationJob)[];
|
|
91
91
|
libraries: (typeof ReadXlsFile | typeof AnalyseBulkUpload | typeof GenerateBulkUploadSheet | typeof LoadXlsFile | typeof ProcessCommonData | typeof ProcessPdfDocument | typeof SetBulkUploadLogFile | typeof SlabsUtil)[];
|
|
92
92
|
services: (typeof BulkUploadService | typeof FileUploadService | typeof LambdaService | typeof Es6JobsService | typeof PdfDocumentService)[];
|
|
@@ -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,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,sFAAiF;AACjF,8EAAyE;AACzE,sFAAiF;AACjF,8HAAuH;AACvH,wGAAkG;AAClG,0HAAmH;AACnH,oFAA+E;AAC/E,8FAAwF;AACxF,kFAA6E;AAC7E,8FAAyF;AACzF,kFAA6E;AAC7E,8FAAwF;AACxF,kIAA2H;AAC3H,4FAAsF;AACtF,4HAAqH;AACrH,4EAAuE;AACvE,8EAAyE;AACzE,8EAAyE;AACzE,gFAA4E;AAC5E,gFAA2E;AAC3E,kFAA6E;AAC7E,8FAAyF;AACzF,0EAAsE;AACtE,gFAA2E;AAC3E,wFAAmF;AACnF,kFAA6E;AAC7E,sFAAiF;AACjF,8EAAyE;AACzE,0EAAqE;AACrE,kFAA6E;AAC7E,oFAA+E;AAC/E,4EAAuE;AACvE,kFAA6E;AAC7E,kGAA4F;AAC5F,gFAA2E;AAC3E,4EAAuE;AACvE,sFAAiF;AACjF,oFAA+E;AAC/E,gFAA2E;AAC3E,4FAAuF;AACvF,8EAAyE;AACzE,gEAA4D;AAC5D,0EAAqE;AACrE,oEAAgE;AAChE,8EAAyE;AACzE,sFAAiF;AACjF,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kB;IACtD,gCAAgC,EAAE,iDAAsB;IACxD,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,uDAAyB;IAC7D,gCAAgC,EAAE,uCAAiB;IACnD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,+CAAqB;IACzD,gCAAgC,EAAE,qDAAwB;IAC1D,kCAAkC,EAAE,iDAAsB;IAC1D,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,sDAAwB;IAC5D,gCAAgC,EAAE,kEAA8B;IAChE,gCAAgC,EAAE,kDAAsB;IACxD,kCAAkC,EAAE,qCAAgB;IACpD,gCAAgC,EAAE,8CAAoB;IACtD,gCAAgC,EAAE,8CAAoB;IACtD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,mDAAuB;IAC3D,gCAAgC,EAAE,+CAAqB;IACvD,gCAAgC,EAAE,uCAAiB;IACnD,gCAAgC,EAAE,mDAAuB;IACzD,gCAAgC,EAAE,mDAAuB;IACzD,kCAAkC,EAAE,iCAAc;IAClD,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,wCAAkB;IACpD,gCAAgC,EAAE,2DAA2B;IAC7D,kCAAkC,EAAE,yCAAkB;IACtD,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,mDAAuB;IACzD,kCAAkC,EAAE,+CAAqB;IACzD,kCAAkC,EAAE,2CAAmB;IACvD,kCAAkC,EAAE,qDAAwB;IAC5D,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,yDAA0B;CACjE,CAAC;AAEF,iBAAS,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,sFAAiF;AACjF,8EAAyE;AACzE,sFAAiF;AACjF,8HAAuH;AACvH,wGAAkG;AAClG,0HAAmH;AACnH,oFAA+E;AAC/E,8FAAwF;AAC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C3D,gCAAgC,EAAE,+CAAqB;IACvD,gCAAgC,EAAE,uCAAiB;IACnD,gCAAgC,EAAE,mDAAuB;IACzD,gCAAgC,EAAE,mDAAuB;IACzD,kCAAkC,EAAE,iCAAc;IAClD,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,wCAAkB;IACpD,gCAAgC,EAAE,2DAA2B;IAC7D,kCAAkC,EAAE,yCAAkB;IACtD,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,mDAAuB;IACzD,kCAAkC,EAAE,+CAAqB;IACzD,kCAAkC,EAAE,2CAAmB;IACvD,kCAAkC,EAAE,qDAAwB;IAC5D,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,yDAA0B;CACjE,CAAC;AAEF,iBAAS,eAAe,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateBusinessWebhookTable1725422481585 = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class CreateBusinessWebhookTable1725422481585 extends nestjs_utility_services_1.MigrationUtility {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('bz_webhook_details');
|
|
8
|
+
this.process();
|
|
9
|
+
}
|
|
10
|
+
process() {
|
|
11
|
+
this.primary();
|
|
12
|
+
this.boolean('active', true);
|
|
13
|
+
this.string('url');
|
|
14
|
+
this.string('secret');
|
|
15
|
+
this.foreign({ name: 'business_id', foreignTable: 'bz_business_details' });
|
|
16
|
+
this.json('event_type');
|
|
17
|
+
this.json('attributes');
|
|
18
|
+
this.whoColumns();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.CreateBusinessWebhookTable1725422481585 = CreateBusinessWebhookTable1725422481585;
|
|
22
|
+
//# sourceMappingURL=1725422481585-CreateBusinessWebhookTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1725422481585-CreateBusinessWebhookTable.js","sourceRoot":"","sources":["../../src/migrations/1725422481585-CreateBusinessWebhookTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,uCAAwC,SAAQ,0CAAgB;IACzE;QACI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAE7B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAEtB,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC,CAAC;QAE3E,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAExB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AArBD,0FAqBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateWebhookEventTable1725428002811 = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class CreateWebhookEventTable1725428002811 extends nestjs_utility_services_1.MigrationUtility {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('utl_webhook_events');
|
|
8
|
+
this.process();
|
|
9
|
+
}
|
|
10
|
+
process() {
|
|
11
|
+
this.primary();
|
|
12
|
+
this.string('name');
|
|
13
|
+
this.string('identifier', { isUnique: true });
|
|
14
|
+
this.string('description');
|
|
15
|
+
this.boolean('active', true);
|
|
16
|
+
this.json('attributes');
|
|
17
|
+
this.whoColumns();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.CreateWebhookEventTable1725428002811 = CreateWebhookEventTable1725428002811;
|
|
21
|
+
//# sourceMappingURL=1725428002811-CreateWebhookEventTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1725428002811-CreateWebhookEventTable.js","sourceRoot":"","sources":["../../src/migrations/1725428002811-CreateWebhookEventTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,oCAAqC,SAAQ,0CAAgB;IACtE;QACI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QAE9C,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAE3B,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAE7B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AAnBD,oFAmBC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateWebhookLogTable1725428278040 = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class CreateWebhookLogTable1725428278040 extends nestjs_utility_services_1.MigrationUtility {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('utl_webhook_logs');
|
|
8
|
+
this.process();
|
|
9
|
+
}
|
|
10
|
+
process() {
|
|
11
|
+
this.primary();
|
|
12
|
+
this.foreign({ name: 'webhook_id', foreignTable: 'bz_webhook_details' });
|
|
13
|
+
this.foreign({ name: 'event_id', foreignTable: 'utl_webhook_events' });
|
|
14
|
+
this.number('response_code');
|
|
15
|
+
this.dateTime('attempted_at');
|
|
16
|
+
this.boolean('is_success');
|
|
17
|
+
this.json('payload');
|
|
18
|
+
this.json('response_body');
|
|
19
|
+
this.json('attributes');
|
|
20
|
+
this.whoColumns();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.CreateWebhookLogTable1725428278040 = CreateWebhookLogTable1725428278040;
|
|
24
|
+
//# sourceMappingURL=1725428278040-CreateWebhookLogTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1725428278040-CreateWebhookLogTable.js","sourceRoot":"","sources":["../../src/migrations/1725428278040-CreateWebhookLogTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,kCAAmC,SAAQ,0CAAgB;IACpE;QACI,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAC1B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC,CAAC;QACzE,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC,CAAC;QAEvE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;QAE7B,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAE3B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACrB,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE3B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AAvBD,gFAuBC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddVisibleColumnUtlNotificationDetailsTable1725439900529 = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class AddVisibleColumnUtlNotificationDetailsTable1725439900529 extends nestjs_utility_services_1.MigrationUtility {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('utl_notification_details');
|
|
8
|
+
this.process();
|
|
9
|
+
}
|
|
10
|
+
process() {
|
|
11
|
+
this.boolean('visible', false);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.AddVisibleColumnUtlNotificationDetailsTable1725439900529 = AddVisibleColumnUtlNotificationDetailsTable1725439900529;
|
|
15
|
+
//# sourceMappingURL=1725439900529-AddVisibleColumnUtlNotificationDetailsTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1725439900529-AddVisibleColumnUtlNotificationDetailsTable.js","sourceRoot":"","sources":["../../src/migrations/1725439900529-AddVisibleColumnUtlNotificationDetailsTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,wDAAyD,SAAQ,0CAAgB;IAC1F;QACI,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACJ;AATD,4HASC"}
|
package/package.json
CHANGED