@servicelabsco/slabs-access-manager 0.1.80 → 0.1.82
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/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/controllers/user.notification.controller.d.ts +15 -0
- package/dist/access/controllers/user.notification.controller.js +81 -0
- package/dist/access/controllers/user.notification.controller.js.map +1 -0
- package/dist/access/dtos/index.d.ts +2 -0
- package/dist/access/dtos/index.js +2 -0
- package/dist/access/dtos/index.js.map +1 -1
- package/dist/access/dtos/user.notification.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/user.notification.attributes.dto.js +8 -0
- package/dist/access/dtos/user.notification.attributes.dto.js.map +1 -0
- package/dist/access/dtos/user.notification.list.filter.dto.d.ts +4 -0
- package/dist/access/dtos/user.notification.list.filter.dto.js +25 -0
- package/dist/access/dtos/user.notification.list.filter.dto.js.map +1 -0
- package/dist/access/entities/index.d.ts +1 -0
- package/dist/access/entities/index.js +1 -0
- package/dist/access/entities/index.js.map +1 -1
- package/dist/access/entities/user.notification.entity.d.ts +20 -0
- package/dist/access/entities/user.notification.entity.js +83 -0
- package/dist/access/entities/user.notification.entity.js.map +1 -0
- package/dist/access/es6.classes.d.ts +12 -6
- package/dist/access/es6.classes.js +16 -0
- package/dist/access/es6.classes.js.map +1 -1
- package/dist/access/jobs/index.d.ts +1 -0
- package/dist/access/jobs/index.js +1 -0
- package/dist/access/jobs/index.js.map +1 -1
- package/dist/access/jobs/user.notification.job.d.ts +7 -0
- package/dist/access/jobs/user.notification.job.js +29 -0
- package/dist/access/jobs/user.notification.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/process.user.notification.list.d.ts +19 -0
- package/dist/access/libraries/process.user.notification.list.js +31 -0
- package/dist/access/libraries/process.user.notification.list.js.map +1 -0
- package/dist/access/services/es6.jobs.service.d.ts +3 -1
- package/dist/access/services/es6.jobs.service.js +5 -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/user.notification.service.d.ts +5 -0
- package/dist/access/services/user.notification.service.js +31 -0
- package/dist/access/services/user.notification.service.js.map +1 -0
- package/dist/access/subscribers/index.d.ts +1 -0
- package/dist/access/subscribers/index.js +1 -0
- package/dist/access/subscribers/index.js.map +1 -1
- package/dist/access/subscribers/user.notification.subscriber.d.ts +12 -0
- package/dist/access/subscribers/user.notification.subscriber.js +40 -0
- package/dist/access/subscribers/user.notification.subscriber.js.map +1 -0
- package/dist/accessUtility/dtos/email.notification.attributes.dto.d.ts +3 -0
- package/dist/accessUtility/dtos/email.notification.attributes.dto.js +8 -0
- package/dist/accessUtility/dtos/email.notification.attributes.dto.js.map +1 -0
- package/dist/accessUtility/dtos/inapp.notification.attributes.dto.d.ts +3 -0
- package/dist/accessUtility/dtos/inapp.notification.attributes.dto.js +8 -0
- package/dist/accessUtility/dtos/inapp.notification.attributes.dto.js.map +1 -0
- package/dist/accessUtility/dtos/index.d.ts +6 -0
- package/dist/accessUtility/dtos/index.js +6 -0
- package/dist/accessUtility/dtos/index.js.map +1 -1
- package/dist/accessUtility/dtos/notification.attributes.dto.d.ts +3 -0
- package/dist/accessUtility/dtos/notification.attributes.dto.js +8 -0
- package/dist/accessUtility/dtos/notification.attributes.dto.js.map +1 -0
- package/dist/accessUtility/dtos/notification.recipient.attributes.dto.d.ts +3 -0
- package/dist/accessUtility/dtos/notification.recipient.attributes.dto.js +8 -0
- package/dist/accessUtility/dtos/notification.recipient.attributes.dto.js.map +1 -0
- package/dist/accessUtility/dtos/sms.notification.attributes.dto.d.ts +3 -0
- package/dist/accessUtility/dtos/sms.notification.attributes.dto.js +8 -0
- package/dist/accessUtility/dtos/sms.notification.attributes.dto.js.map +1 -0
- package/dist/accessUtility/dtos/whatsapp.notification.attributes.dto.d.ts +3 -0
- package/dist/accessUtility/dtos/whatsapp.notification.attributes.dto.js +8 -0
- package/dist/accessUtility/dtos/whatsapp.notification.attributes.dto.js.map +1 -0
- package/dist/accessUtility/entities/email.notification.entity.d.ts +12 -0
- package/dist/accessUtility/entities/email.notification.entity.js +53 -0
- package/dist/accessUtility/entities/email.notification.entity.js.map +1 -0
- package/dist/accessUtility/entities/inapp.notification.entity.d.ts +12 -0
- package/dist/accessUtility/entities/inapp.notification.entity.js +52 -0
- package/dist/accessUtility/entities/inapp.notification.entity.js.map +1 -0
- package/dist/accessUtility/entities/index.d.ts +6 -0
- package/dist/accessUtility/entities/index.js +6 -0
- package/dist/accessUtility/entities/index.js.map +1 -1
- package/dist/accessUtility/entities/notification.entity.d.ts +15 -0
- package/dist/accessUtility/entities/notification.entity.js +68 -0
- package/dist/accessUtility/entities/notification.entity.js.map +1 -0
- package/dist/accessUtility/entities/notification.recipient.entity.d.ts +12 -0
- package/dist/accessUtility/entities/notification.recipient.entity.js +54 -0
- package/dist/accessUtility/entities/notification.recipient.entity.js.map +1 -0
- package/dist/accessUtility/entities/sms.notification.entity.d.ts +12 -0
- package/dist/accessUtility/entities/sms.notification.entity.js +53 -0
- package/dist/accessUtility/entities/sms.notification.entity.js.map +1 -0
- package/dist/accessUtility/entities/webhook.request.entity.d.ts +2 -0
- package/dist/accessUtility/entities/webhook.request.entity.js +8 -0
- package/dist/accessUtility/entities/webhook.request.entity.js.map +1 -1
- package/dist/accessUtility/entities/whatsapp.notification.entity.d.ts +12 -0
- package/dist/accessUtility/entities/whatsapp.notification.entity.js +53 -0
- package/dist/accessUtility/entities/whatsapp.notification.entity.js.map +1 -0
- package/dist/accessUtility/es6.classes.d.ts +20 -3
- package/dist/accessUtility/es6.classes.js +48 -0
- package/dist/accessUtility/es6.classes.js.map +1 -1
- package/dist/accessUtility/jobs/email.notification.job.d.ts +7 -0
- package/dist/accessUtility/jobs/email.notification.job.js +29 -0
- package/dist/accessUtility/jobs/email.notification.job.js.map +1 -0
- package/dist/accessUtility/jobs/inapp.notification.job.d.ts +7 -0
- package/dist/accessUtility/jobs/inapp.notification.job.js +29 -0
- package/dist/accessUtility/jobs/inapp.notification.job.js.map +1 -0
- package/dist/accessUtility/jobs/index.d.ts +6 -0
- package/dist/accessUtility/jobs/index.js +6 -0
- package/dist/accessUtility/jobs/index.js.map +1 -1
- package/dist/accessUtility/jobs/notification.job.d.ts +7 -0
- package/dist/accessUtility/jobs/notification.job.js +29 -0
- package/dist/accessUtility/jobs/notification.job.js.map +1 -0
- package/dist/accessUtility/jobs/notification.recipient.job.d.ts +7 -0
- package/dist/accessUtility/jobs/notification.recipient.job.js +29 -0
- package/dist/accessUtility/jobs/notification.recipient.job.js.map +1 -0
- package/dist/accessUtility/jobs/sms.notification.job.d.ts +7 -0
- package/dist/accessUtility/jobs/sms.notification.job.js +29 -0
- package/dist/accessUtility/jobs/sms.notification.job.js.map +1 -0
- package/dist/accessUtility/jobs/whatsapp.notification.job.d.ts +7 -0
- package/dist/accessUtility/jobs/whatsapp.notification.job.js +29 -0
- package/dist/accessUtility/jobs/whatsapp.notification.job.js.map +1 -0
- package/dist/accessUtility/services/es6.jobs.service.d.ts +13 -1
- package/dist/accessUtility/services/es6.jobs.service.js +26 -2
- package/dist/accessUtility/services/es6.jobs.service.js.map +1 -1
- package/dist/accessUtility/subscribers/email.notification.subscriber.d.ts +12 -0
- package/dist/accessUtility/subscribers/email.notification.subscriber.js +40 -0
- package/dist/accessUtility/subscribers/email.notification.subscriber.js.map +1 -0
- package/dist/accessUtility/subscribers/inapp.notification.subscriber.d.ts +12 -0
- package/dist/accessUtility/subscribers/inapp.notification.subscriber.js +40 -0
- package/dist/accessUtility/subscribers/inapp.notification.subscriber.js.map +1 -0
- package/dist/accessUtility/subscribers/index.d.ts +6 -0
- package/dist/accessUtility/subscribers/index.js +6 -0
- package/dist/accessUtility/subscribers/index.js.map +1 -1
- package/dist/accessUtility/subscribers/notification.recipient.subscriber.d.ts +12 -0
- package/dist/accessUtility/subscribers/notification.recipient.subscriber.js +40 -0
- package/dist/accessUtility/subscribers/notification.recipient.subscriber.js.map +1 -0
- package/dist/accessUtility/subscribers/notification.subscriber.d.ts +12 -0
- package/dist/accessUtility/subscribers/notification.subscriber.js +40 -0
- package/dist/accessUtility/subscribers/notification.subscriber.js.map +1 -0
- package/dist/accessUtility/subscribers/sms.notification.subscriber.d.ts +12 -0
- package/dist/accessUtility/subscribers/sms.notification.subscriber.js +40 -0
- package/dist/accessUtility/subscribers/sms.notification.subscriber.js.map +1 -0
- package/dist/accessUtility/subscribers/whatsapp.notification.subscriber.d.ts +12 -0
- package/dist/accessUtility/subscribers/whatsapp.notification.subscriber.js +40 -0
- package/dist/accessUtility/subscribers/whatsapp.notification.subscriber.js.map +1 -0
- package/dist/config/entity.constants.d.ts +14 -0
- package/dist/config/entity.constants.js +14 -0
- package/dist/config/entity.constants.js.map +1 -1
- package/dist/migrations/1711969014729-CreateNotificationTable.d.ts +5 -0
- package/dist/migrations/1711969014729-CreateNotificationTable.js +26 -0
- package/dist/migrations/1711969014729-CreateNotificationTable.js.map +1 -0
- package/dist/migrations/1711973530629-CreateNotificationRecipientTable.d.ts +5 -0
- package/dist/migrations/1711973530629-CreateNotificationRecipientTable.js +23 -0
- package/dist/migrations/1711973530629-CreateNotificationRecipientTable.js.map +1 -0
- package/dist/migrations/1714761622946-AddSourceUtlWebhookRequestsTable.ts.d.ts +5 -0
- package/dist/migrations/1714761622946-AddSourceUtlWebhookRequestsTable.ts.js +15 -0
- package/dist/migrations/1714761622946-AddSourceUtlWebhookRequestsTable.ts.js.map +1 -0
- package/dist/migrations/1714934011990-CreateEmailNotificationTable.d.ts +5 -0
- package/dist/migrations/1714934011990-CreateEmailNotificationTable.js +21 -0
- package/dist/migrations/1714934011990-CreateEmailNotificationTable.js.map +1 -0
- package/dist/migrations/1714934451680-CreateSmsNotificationTable.d.ts +5 -0
- package/dist/migrations/1714934451680-CreateSmsNotificationTable.js +21 -0
- package/dist/migrations/1714934451680-CreateSmsNotificationTable.js.map +1 -0
- package/dist/migrations/1714934675041-CreateWhatsappNotificationTable.d.ts +5 -0
- package/dist/migrations/1714934675041-CreateWhatsappNotificationTable.js +21 -0
- package/dist/migrations/1714934675041-CreateWhatsappNotificationTable.js.map +1 -0
- package/dist/migrations/1714934790375-CreateInappNotificationTable.d.ts +5 -0
- package/dist/migrations/1714934790375-CreateInappNotificationTable.js +22 -0
- package/dist/migrations/1714934790375-CreateInappNotificationTable.js.map +1 -0
- package/dist/migrations/1714936884321-CreateUserNotificationTable.d.ts +5 -0
- package/dist/migrations/1714936884321-CreateUserNotificationTable.js +27 -0
- package/dist/migrations/1714936884321-CreateUserNotificationTable.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EmailNotificationSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const email_notification_entity_1 = require("../entities/email.notification.entity");
|
|
16
|
+
const email_notification_job_1 = require("../jobs/email.notification.job");
|
|
17
|
+
let EmailNotificationSubscriber = class EmailNotificationSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, emailNotificationJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.emailNotificationJob = emailNotificationJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return email_notification_entity_1.EmailNotificationEntity;
|
|
26
|
+
}
|
|
27
|
+
async afterInsert(evt) {
|
|
28
|
+
await this.emailNotificationJob.delayedDispatch(this.getEventData(evt));
|
|
29
|
+
}
|
|
30
|
+
async afterUpdate(evt) {
|
|
31
|
+
await this.emailNotificationJob.delayedDispatch(this.getEventData(evt));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.EmailNotificationSubscriber = EmailNotificationSubscriber;
|
|
35
|
+
exports.EmailNotificationSubscriber = EmailNotificationSubscriber = __decorate([
|
|
36
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
37
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
38
|
+
email_notification_job_1.EmailNotificationJob])
|
|
39
|
+
], EmailNotificationSubscriber);
|
|
40
|
+
//# sourceMappingURL=email.notification.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.notification.subscriber.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/email.notification.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,qFAAgF;AAChF,2EAAsE;AAG/D,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,0CAAyC;IACtF,YACqB,UAAsB,EACtB,oBAA0C;QAE3D,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,yBAAoB,GAApB,oBAAoB,CAAsB;QAG3D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,mDAAuB,CAAC;IACnC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAyC;QACvD,MAAM,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAyC;QACvD,MAAM,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5E,CAAC;CACJ,CAAA;AAlBY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACA,6CAAoB;GAHtD,2BAA2B,CAkBvC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
|
3
|
+
import { InappNotificationEntity } from '../entities/inapp.notification.entity';
|
|
4
|
+
import { InappNotificationJob } from '../jobs/inapp.notification.job';
|
|
5
|
+
export declare class InappNotificationSubscriber extends CommonSubscriber<InappNotificationEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
private readonly inappNotificationJob;
|
|
8
|
+
constructor(dataSource: DataSource, inappNotificationJob: InappNotificationJob);
|
|
9
|
+
listenTo(): typeof InappNotificationEntity;
|
|
10
|
+
afterInsert(evt: InsertEvent<InappNotificationEntity>): Promise<void>;
|
|
11
|
+
afterUpdate(evt: UpdateEvent<InappNotificationEntity>): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.InappNotificationSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const inapp_notification_entity_1 = require("../entities/inapp.notification.entity");
|
|
16
|
+
const inapp_notification_job_1 = require("../jobs/inapp.notification.job");
|
|
17
|
+
let InappNotificationSubscriber = class InappNotificationSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, inappNotificationJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.inappNotificationJob = inappNotificationJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return inapp_notification_entity_1.InappNotificationEntity;
|
|
26
|
+
}
|
|
27
|
+
async afterInsert(evt) {
|
|
28
|
+
await this.inappNotificationJob.delayedDispatch(this.getEventData(evt));
|
|
29
|
+
}
|
|
30
|
+
async afterUpdate(evt) {
|
|
31
|
+
await this.inappNotificationJob.delayedDispatch(this.getEventData(evt));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.InappNotificationSubscriber = InappNotificationSubscriber;
|
|
35
|
+
exports.InappNotificationSubscriber = InappNotificationSubscriber = __decorate([
|
|
36
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
37
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
38
|
+
inapp_notification_job_1.InappNotificationJob])
|
|
39
|
+
], InappNotificationSubscriber);
|
|
40
|
+
//# sourceMappingURL=inapp.notification.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inapp.notification.subscriber.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/inapp.notification.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,qFAAgF;AAChF,2EAAsE;AAG/D,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,0CAAyC;IACtF,YACqB,UAAsB,EACtB,oBAA0C;QAE3D,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,yBAAoB,GAApB,oBAAoB,CAAsB;QAG3D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,mDAAuB,CAAC;IACnC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAyC;QACvD,MAAM,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAyC;QACvD,MAAM,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5E,CAAC;CACJ,CAAA;AAlBY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACA,6CAAoB;GAHtD,2BAA2B,CAkBvC"}
|
|
@@ -6,7 +6,13 @@ export * from './bulk.upload.item.subscriber';
|
|
|
6
6
|
export * from './bulk.upload.subscriber';
|
|
7
7
|
export * from './bulk.upload.type.subscriber';
|
|
8
8
|
export * from './data.mapping.subscriber';
|
|
9
|
+
export * from './email.notification.subscriber';
|
|
10
|
+
export * from './inapp.notification.subscriber';
|
|
9
11
|
export * from './listing.model.subscriber';
|
|
12
|
+
export * from './notification.recipient.subscriber';
|
|
13
|
+
export * from './notification.subscriber';
|
|
14
|
+
export * from './sms.notification.subscriber';
|
|
10
15
|
export * from './tag.assignment.subscriber';
|
|
11
16
|
export * from './upload.modification.subscriber';
|
|
12
17
|
export * from './webhook.request.subscriber';
|
|
18
|
+
export * from './whatsapp.notification.subscriber';
|
|
@@ -22,8 +22,14 @@ __exportStar(require("./bulk.upload.item.subscriber"), exports);
|
|
|
22
22
|
__exportStar(require("./bulk.upload.subscriber"), exports);
|
|
23
23
|
__exportStar(require("./bulk.upload.type.subscriber"), exports);
|
|
24
24
|
__exportStar(require("./data.mapping.subscriber"), exports);
|
|
25
|
+
__exportStar(require("./email.notification.subscriber"), exports);
|
|
26
|
+
__exportStar(require("./inapp.notification.subscriber"), exports);
|
|
25
27
|
__exportStar(require("./listing.model.subscriber"), exports);
|
|
28
|
+
__exportStar(require("./notification.recipient.subscriber"), exports);
|
|
29
|
+
__exportStar(require("./notification.subscriber"), exports);
|
|
30
|
+
__exportStar(require("./sms.notification.subscriber"), exports);
|
|
26
31
|
__exportStar(require("./tag.assignment.subscriber"), exports);
|
|
27
32
|
__exportStar(require("./upload.modification.subscriber"), exports);
|
|
28
33
|
__exportStar(require("./webhook.request.subscriber"), exports);
|
|
34
|
+
__exportStar(require("./whatsapp.notification.subscriber"), exports);
|
|
29
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAAA,0EAAwD;AAAA,+DAA6C;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,4DAA0C;AAAA,6DAA2C;AAAA,8DAA4C;AAAA,mEAAiD;AAAA,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAAA,0EAAwD;AAAA,+DAA6C;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,4DAA0C;AAAA,kEAAgD;AAAA,kEAAgD;AAAA,6DAA2C;AAAA,sEAAoD;AAAA,4DAA0C;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,mEAAiD;AAAA,+DAA6C;AAAA,qEAAkD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
|
3
|
+
import { NotificationRecipientEntity } from '../entities/notification.recipient.entity';
|
|
4
|
+
import { NotificationRecipientJob } from '../jobs/notification.recipient.job';
|
|
5
|
+
export declare class NotificationRecipientSubscriber extends CommonSubscriber<NotificationRecipientEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
private readonly notificationRecipientJob;
|
|
8
|
+
constructor(dataSource: DataSource, notificationRecipientJob: NotificationRecipientJob);
|
|
9
|
+
listenTo(): typeof NotificationRecipientEntity;
|
|
10
|
+
afterInsert(evt: InsertEvent<NotificationRecipientEntity>): Promise<void>;
|
|
11
|
+
afterUpdate(evt: UpdateEvent<NotificationRecipientEntity>): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NotificationRecipientSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const notification_recipient_entity_1 = require("../entities/notification.recipient.entity");
|
|
16
|
+
const notification_recipient_job_1 = require("../jobs/notification.recipient.job");
|
|
17
|
+
let NotificationRecipientSubscriber = class NotificationRecipientSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, notificationRecipientJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.notificationRecipientJob = notificationRecipientJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return notification_recipient_entity_1.NotificationRecipientEntity;
|
|
26
|
+
}
|
|
27
|
+
async afterInsert(evt) {
|
|
28
|
+
await this.notificationRecipientJob.delayedDispatch(this.getEventData(evt));
|
|
29
|
+
}
|
|
30
|
+
async afterUpdate(evt) {
|
|
31
|
+
await this.notificationRecipientJob.delayedDispatch(this.getEventData(evt));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.NotificationRecipientSubscriber = NotificationRecipientSubscriber;
|
|
35
|
+
exports.NotificationRecipientSubscriber = NotificationRecipientSubscriber = __decorate([
|
|
36
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
37
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
38
|
+
notification_recipient_job_1.NotificationRecipientJob])
|
|
39
|
+
], NotificationRecipientSubscriber);
|
|
40
|
+
//# sourceMappingURL=notification.recipient.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.recipient.subscriber.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/notification.recipient.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,6FAAwF;AACxF,mFAA8E;AAGvE,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,0CAA6C;IAC9F,YACqB,UAAsB,EACtB,wBAAkD;QAEnE,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,6BAAwB,GAAxB,wBAAwB,CAA0B;QAGnE,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,2DAA2B,CAAC;IACvC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAA6C;QAC3D,MAAM,IAAI,CAAC,wBAAwB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAChF,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAA6C;QAC3D,MAAM,IAAI,CAAC,wBAAwB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAChF,CAAC;CACJ,CAAA;AAlBY,0EAA+B;0CAA/B,+BAA+B;IAD3C,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACI,qDAAwB;GAH9D,+BAA+B,CAkB3C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
|
3
|
+
import { NotificationEntity } from '../entities/notification.entity';
|
|
4
|
+
import { NotificationJob } from '../jobs/notification.job';
|
|
5
|
+
export declare class NotificationSubscriber extends CommonSubscriber<NotificationEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
private readonly notificationJob;
|
|
8
|
+
constructor(dataSource: DataSource, notificationJob: NotificationJob);
|
|
9
|
+
listenTo(): typeof NotificationEntity;
|
|
10
|
+
afterInsert(evt: InsertEvent<NotificationEntity>): Promise<void>;
|
|
11
|
+
afterUpdate(evt: UpdateEvent<NotificationEntity>): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NotificationSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const notification_entity_1 = require("../entities/notification.entity");
|
|
16
|
+
const notification_job_1 = require("../jobs/notification.job");
|
|
17
|
+
let NotificationSubscriber = class NotificationSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, notificationJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.notificationJob = notificationJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return notification_entity_1.NotificationEntity;
|
|
26
|
+
}
|
|
27
|
+
async afterInsert(evt) {
|
|
28
|
+
await this.notificationJob.delayedDispatch(this.getEventData(evt));
|
|
29
|
+
}
|
|
30
|
+
async afterUpdate(evt) {
|
|
31
|
+
await this.notificationJob.delayedDispatch(this.getEventData(evt));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.NotificationSubscriber = NotificationSubscriber;
|
|
35
|
+
exports.NotificationSubscriber = NotificationSubscriber = __decorate([
|
|
36
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
37
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
38
|
+
notification_job_1.NotificationJob])
|
|
39
|
+
], NotificationSubscriber);
|
|
40
|
+
//# sourceMappingURL=notification.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.subscriber.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/notification.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,yEAAqE;AACrE,+DAA2D;AAGpD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,0CAAoC;IAC5E,YACqB,UAAsB,EACtB,eAAgC;QAEjD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,oBAAe,GAAf,eAAe,CAAiB;QAGjD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,wCAAkB,CAAC;IAC9B,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAoC;QAClD,MAAM,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IACvE,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAoC;QAClD,MAAM,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IACvE,CAAC;CACJ,CAAA;AAlBY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACL,kCAAe;GAH5C,sBAAsB,CAkBlC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
|
3
|
+
import { SmsNotificationEntity } from '../entities/sms.notification.entity';
|
|
4
|
+
import { SmsNotificationJob } from '../jobs/sms.notification.job';
|
|
5
|
+
export declare class SmsNotificationSubscriber extends CommonSubscriber<SmsNotificationEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
private readonly smsNotificationJob;
|
|
8
|
+
constructor(dataSource: DataSource, smsNotificationJob: SmsNotificationJob);
|
|
9
|
+
listenTo(): typeof SmsNotificationEntity;
|
|
10
|
+
afterInsert(evt: InsertEvent<SmsNotificationEntity>): Promise<void>;
|
|
11
|
+
afterUpdate(evt: UpdateEvent<SmsNotificationEntity>): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SmsNotificationSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const sms_notification_entity_1 = require("../entities/sms.notification.entity");
|
|
16
|
+
const sms_notification_job_1 = require("../jobs/sms.notification.job");
|
|
17
|
+
let SmsNotificationSubscriber = class SmsNotificationSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, smsNotificationJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.smsNotificationJob = smsNotificationJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return sms_notification_entity_1.SmsNotificationEntity;
|
|
26
|
+
}
|
|
27
|
+
async afterInsert(evt) {
|
|
28
|
+
await this.smsNotificationJob.delayedDispatch(this.getEventData(evt));
|
|
29
|
+
}
|
|
30
|
+
async afterUpdate(evt) {
|
|
31
|
+
await this.smsNotificationJob.delayedDispatch(this.getEventData(evt));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.SmsNotificationSubscriber = SmsNotificationSubscriber;
|
|
35
|
+
exports.SmsNotificationSubscriber = SmsNotificationSubscriber = __decorate([
|
|
36
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
37
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
38
|
+
sms_notification_job_1.SmsNotificationJob])
|
|
39
|
+
], SmsNotificationSubscriber);
|
|
40
|
+
//# sourceMappingURL=sms.notification.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sms.notification.subscriber.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/sms.notification.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,iFAA4E;AAC5E,uEAAkE;AAG3D,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,0CAAuC;IAClF,YACqB,UAAsB,EACtB,kBAAsC;QAEvD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,uBAAkB,GAAlB,kBAAkB,CAAoB;QAGvD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,+CAAqB,CAAC;IACjC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAAuC;QACrD,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAAuC;QACrD,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1E,CAAC;CACJ,CAAA;AAlBY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACF,yCAAkB;GAHlD,yBAAyB,CAkBrC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
|
3
|
+
import { WhatsappNotificationEntity } from '../entities/whatsapp.notification.entity';
|
|
4
|
+
import { WhatsappNotificationJob } from '../jobs/whatsapp.notification.job';
|
|
5
|
+
export declare class WhatsappNotificationSubscriber extends CommonSubscriber<WhatsappNotificationEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
private readonly whatsappNotificationJob;
|
|
8
|
+
constructor(dataSource: DataSource, whatsappNotificationJob: WhatsappNotificationJob);
|
|
9
|
+
listenTo(): typeof WhatsappNotificationEntity;
|
|
10
|
+
afterInsert(evt: InsertEvent<WhatsappNotificationEntity>): Promise<void>;
|
|
11
|
+
afterUpdate(evt: UpdateEvent<WhatsappNotificationEntity>): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.WhatsappNotificationSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const whatsapp_notification_entity_1 = require("../entities/whatsapp.notification.entity");
|
|
16
|
+
const whatsapp_notification_job_1 = require("../jobs/whatsapp.notification.job");
|
|
17
|
+
let WhatsappNotificationSubscriber = class WhatsappNotificationSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, whatsappNotificationJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.whatsappNotificationJob = whatsappNotificationJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return whatsapp_notification_entity_1.WhatsappNotificationEntity;
|
|
26
|
+
}
|
|
27
|
+
async afterInsert(evt) {
|
|
28
|
+
await this.whatsappNotificationJob.delayedDispatch(this.getEventData(evt));
|
|
29
|
+
}
|
|
30
|
+
async afterUpdate(evt) {
|
|
31
|
+
await this.whatsappNotificationJob.delayedDispatch(this.getEventData(evt));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.WhatsappNotificationSubscriber = WhatsappNotificationSubscriber;
|
|
35
|
+
exports.WhatsappNotificationSubscriber = WhatsappNotificationSubscriber = __decorate([
|
|
36
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
37
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
38
|
+
whatsapp_notification_job_1.WhatsappNotificationJob])
|
|
39
|
+
], WhatsappNotificationSubscriber);
|
|
40
|
+
//# sourceMappingURL=whatsapp.notification.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatsapp.notification.subscriber.js","sourceRoot":"","sources":["../../../src/accessUtility/subscribers/whatsapp.notification.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,2FAAsF;AACtF,iFAA4E;AAGrE,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,0CAA4C;IAC5F,YACqB,UAAsB,EACtB,uBAAgD;QAEjE,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,4BAAuB,GAAvB,uBAAuB,CAAyB;QAGjE,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,yDAA0B,CAAC;IACtC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,GAA4C;QAC1D,MAAM,IAAI,CAAC,uBAAuB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/E,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,GAA4C;QAC1D,MAAM,IAAI,CAAC,uBAAuB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/E,CAAC;CACJ,CAAA;AAlBY,wEAA8B;yCAA9B,8BAA8B;IAD1C,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACG,mDAAuB;GAH5D,8BAA8B,CAkB1C"}
|
|
@@ -36,6 +36,7 @@ import { RoleGroupEntity } from '../access/entities/role.group.entity';
|
|
|
36
36
|
import { ScheduledReportEntity } from '../access/entities/scheduled.report.entity';
|
|
37
37
|
import { UiActionEntity } from '../access/entities/ui.action.entity';
|
|
38
38
|
import { UiActionRoleEntity } from '../access/entities/ui.action.role.entity';
|
|
39
|
+
import { UserNotificationEntity } from '../access/entities/user.notification.entity';
|
|
39
40
|
import { UserPreferenceEntity } from '../access/entities/user.preference.entity';
|
|
40
41
|
import { UserRoleEntity } from '../access/entities/user.role.entity';
|
|
41
42
|
import { WatchlistAssignmentEntity } from '../access/entities/watchlist.assignment.entity';
|
|
@@ -49,10 +50,16 @@ import { BulkUploadEntity } from '../accessUtility/entities/bulk.upload.entity';
|
|
|
49
50
|
import { BulkUploadItemEntity } from '../accessUtility/entities/bulk.upload.item.entity';
|
|
50
51
|
import { BulkUploadTypeEntity } from '../accessUtility/entities/bulk.upload.type.entity';
|
|
51
52
|
import { DataMappingEntity } from '../accessUtility/entities/data.mapping.entity';
|
|
53
|
+
import { EmailNotificationEntity } from '../accessUtility/entities/email.notification.entity';
|
|
54
|
+
import { InappNotificationEntity } from '../accessUtility/entities/inapp.notification.entity';
|
|
52
55
|
import { ListingModelEntity } from '../accessUtility/entities/listing.model.entity';
|
|
56
|
+
import { NotificationEntity } from '../accessUtility/entities/notification.entity';
|
|
57
|
+
import { NotificationRecipientEntity } from '../accessUtility/entities/notification.recipient.entity';
|
|
58
|
+
import { SmsNotificationEntity } from '../accessUtility/entities/sms.notification.entity';
|
|
53
59
|
import { TagAssignmentEntity } from '../accessUtility/entities/tag.assignment.entity';
|
|
54
60
|
import { UploadModificationEntity } from '../accessUtility/entities/upload.modification.entity';
|
|
55
61
|
import { WebhookRequestEntity } from '../accessUtility/entities/webhook.request.entity';
|
|
62
|
+
import { WhatsappNotificationEntity } from '../accessUtility/entities/whatsapp.notification.entity';
|
|
56
63
|
declare const entityConstants: {
|
|
57
64
|
'65e0e6d5c92cbba596ecaf851b586389': typeof AccessBusinessEntity;
|
|
58
65
|
'8729a095a0116f22251847c6c7192b75': typeof ApiAccountEntity;
|
|
@@ -92,6 +99,7 @@ declare const entityConstants: {
|
|
|
92
99
|
'16f90e4b4cb3e99e12ba604c4feafaa9': typeof ScheduledReportEntity;
|
|
93
100
|
'032b5b69fb3bb1932e431c946a38d5e2': typeof UiActionEntity;
|
|
94
101
|
'5a7cee7ff3b8db1685f34eb599fc0f1e': typeof UiActionRoleEntity;
|
|
102
|
+
e4306735c77c666b4db30bfa43e300a2: typeof UserNotificationEntity;
|
|
95
103
|
'0c52a732ac1a3d79a48d5706ac8254f6': typeof UserPreferenceEntity;
|
|
96
104
|
'04e801c3e17dd4d1d958265e1d8b86a7': typeof UserRoleEntity;
|
|
97
105
|
'9c47e38e41415ac04d219f522982a5ed': typeof WatchlistAssignmentEntity;
|
|
@@ -105,9 +113,15 @@ declare const entityConstants: {
|
|
|
105
113
|
f0d9555accac3da32f711763c15e240d: typeof BulkUploadItemEntity;
|
|
106
114
|
f980022f844962d06e05e868efdf2e28: typeof BulkUploadTypeEntity;
|
|
107
115
|
'47254c0bb02039dd781f40cd09bf1486': typeof DataMappingEntity;
|
|
116
|
+
'6fbb4c29016341186b6b9b78806eb53e': typeof EmailNotificationEntity;
|
|
117
|
+
b8c4cdb48cc9bf985c8243cb4646c256: typeof InappNotificationEntity;
|
|
108
118
|
f398df3b81975969eb65eaabc46fb719: typeof ListingModelEntity;
|
|
119
|
+
a9a2272132a99e826d8809d3a2a2c6f0: typeof NotificationEntity;
|
|
120
|
+
eae5d746c7c25d049a6fdc9a12f5395c: typeof NotificationRecipientEntity;
|
|
121
|
+
'93909a90d6bde2e9bb4984f9c54fbb48': typeof SmsNotificationEntity;
|
|
109
122
|
'1b155ffbd5998294415345bd380131d6': typeof TagAssignmentEntity;
|
|
110
123
|
'8e66695e1c01aa5f58c69a6b8f49c542': typeof UploadModificationEntity;
|
|
111
124
|
'7adbf1b7bf22059a8ebae7fd56dc168b': typeof WebhookRequestEntity;
|
|
125
|
+
'3bd0a398b652c6d5323f36ff28dec383': typeof WhatsappNotificationEntity;
|
|
112
126
|
};
|
|
113
127
|
export = entityConstants;
|
|
@@ -37,6 +37,7 @@ const role_group_entity_1 = require("../access/entities/role.group.entity");
|
|
|
37
37
|
const scheduled_report_entity_1 = require("../access/entities/scheduled.report.entity");
|
|
38
38
|
const ui_action_entity_1 = require("../access/entities/ui.action.entity");
|
|
39
39
|
const ui_action_role_entity_1 = require("../access/entities/ui.action.role.entity");
|
|
40
|
+
const user_notification_entity_1 = require("../access/entities/user.notification.entity");
|
|
40
41
|
const user_preference_entity_1 = require("../access/entities/user.preference.entity");
|
|
41
42
|
const user_role_entity_1 = require("../access/entities/user.role.entity");
|
|
42
43
|
const watchlist_assignment_entity_1 = require("../access/entities/watchlist.assignment.entity");
|
|
@@ -50,10 +51,16 @@ const bulk_upload_entity_1 = require("../accessUtility/entities/bulk.upload.enti
|
|
|
50
51
|
const bulk_upload_item_entity_1 = require("../accessUtility/entities/bulk.upload.item.entity");
|
|
51
52
|
const bulk_upload_type_entity_1 = require("../accessUtility/entities/bulk.upload.type.entity");
|
|
52
53
|
const data_mapping_entity_1 = require("../accessUtility/entities/data.mapping.entity");
|
|
54
|
+
const email_notification_entity_1 = require("../accessUtility/entities/email.notification.entity");
|
|
55
|
+
const inapp_notification_entity_1 = require("../accessUtility/entities/inapp.notification.entity");
|
|
53
56
|
const listing_model_entity_1 = require("../accessUtility/entities/listing.model.entity");
|
|
57
|
+
const notification_entity_1 = require("../accessUtility/entities/notification.entity");
|
|
58
|
+
const notification_recipient_entity_1 = require("../accessUtility/entities/notification.recipient.entity");
|
|
59
|
+
const sms_notification_entity_1 = require("../accessUtility/entities/sms.notification.entity");
|
|
54
60
|
const tag_assignment_entity_1 = require("../accessUtility/entities/tag.assignment.entity");
|
|
55
61
|
const upload_modification_entity_1 = require("../accessUtility/entities/upload.modification.entity");
|
|
56
62
|
const webhook_request_entity_1 = require("../accessUtility/entities/webhook.request.entity");
|
|
63
|
+
const whatsapp_notification_entity_1 = require("../accessUtility/entities/whatsapp.notification.entity");
|
|
57
64
|
const entityConstants = {
|
|
58
65
|
'65e0e6d5c92cbba596ecaf851b586389': access_business_entity_1.AccessBusinessEntity,
|
|
59
66
|
'8729a095a0116f22251847c6c7192b75': api_account_entity_1.ApiAccountEntity,
|
|
@@ -93,6 +100,7 @@ const entityConstants = {
|
|
|
93
100
|
'16f90e4b4cb3e99e12ba604c4feafaa9': scheduled_report_entity_1.ScheduledReportEntity,
|
|
94
101
|
'032b5b69fb3bb1932e431c946a38d5e2': ui_action_entity_1.UiActionEntity,
|
|
95
102
|
'5a7cee7ff3b8db1685f34eb599fc0f1e': ui_action_role_entity_1.UiActionRoleEntity,
|
|
103
|
+
e4306735c77c666b4db30bfa43e300a2: user_notification_entity_1.UserNotificationEntity,
|
|
96
104
|
'0c52a732ac1a3d79a48d5706ac8254f6': user_preference_entity_1.UserPreferenceEntity,
|
|
97
105
|
'04e801c3e17dd4d1d958265e1d8b86a7': user_role_entity_1.UserRoleEntity,
|
|
98
106
|
'9c47e38e41415ac04d219f522982a5ed': watchlist_assignment_entity_1.WatchlistAssignmentEntity,
|
|
@@ -106,10 +114,16 @@ const entityConstants = {
|
|
|
106
114
|
f0d9555accac3da32f711763c15e240d: bulk_upload_item_entity_1.BulkUploadItemEntity,
|
|
107
115
|
f980022f844962d06e05e868efdf2e28: bulk_upload_type_entity_1.BulkUploadTypeEntity,
|
|
108
116
|
'47254c0bb02039dd781f40cd09bf1486': data_mapping_entity_1.DataMappingEntity,
|
|
117
|
+
'6fbb4c29016341186b6b9b78806eb53e': email_notification_entity_1.EmailNotificationEntity,
|
|
118
|
+
b8c4cdb48cc9bf985c8243cb4646c256: inapp_notification_entity_1.InappNotificationEntity,
|
|
109
119
|
f398df3b81975969eb65eaabc46fb719: listing_model_entity_1.ListingModelEntity,
|
|
120
|
+
a9a2272132a99e826d8809d3a2a2c6f0: notification_entity_1.NotificationEntity,
|
|
121
|
+
eae5d746c7c25d049a6fdc9a12f5395c: notification_recipient_entity_1.NotificationRecipientEntity,
|
|
122
|
+
'93909a90d6bde2e9bb4984f9c54fbb48': sms_notification_entity_1.SmsNotificationEntity,
|
|
110
123
|
'1b155ffbd5998294415345bd380131d6': tag_assignment_entity_1.TagAssignmentEntity,
|
|
111
124
|
'8e66695e1c01aa5f58c69a6b8f49c542': upload_modification_entity_1.UploadModificationEntity,
|
|
112
125
|
'7adbf1b7bf22059a8ebae7fd56dc168b': webhook_request_entity_1.WebhookRequestEntity,
|
|
126
|
+
'3bd0a398b652c6d5323f36ff28dec383': whatsapp_notification_entity_1.WhatsappNotificationEntity,
|
|
113
127
|
};
|
|
114
128
|
module.exports = entityConstants;
|
|
115
129
|
//# sourceMappingURL=entity.constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,sFAAiF;AACjF,8EAAyE;AACzE,oFAA+E;AAC/E,8FAAwF;AACxF,8FAAyF;AACzF,kFAA6E;AAC7E,8FAAwF;AACxF,4FAAsF;AACtF,4EAAuE;AACvE,8EAAyE;AACzE,8EAAyE;AACzE,gFAA4E;AAC5E,gFAA2E;AAC3E,kFAA6E;AAC7E,8FAAyF;AACzF,0EAAsE;AACtE,gFAA2E;AAC3E,wFAAmF;AACnF,kFAA6E;AAC7E,sFAAiF;AACjF,gFAA2E;AAC3E,4EAAuE;AACvE,sFAAiF;AACjF,oFAA+E;AAC/E,gFAA2E;AAC3E,4FAAuF;AACvF,8EAAyE;AACzE,gEAA4D;AAC5D,0EAAqE;AACrE,oEAAgE;AAChE,8EAAyE;AACzE,sFAAiF;AACjF,kGAA4F;AAC5F,sEAAkE;AAClE,4EAAuE;AACvE,wFAAmF;AACnF,0EAAqE;AACrE,oFAA8E;AAC9E,sFAAiF;AACjF,0EAAqE;AACrE,gGAA2F;AAC3F,gFAA2E;AAC3E,gFAA2E;AAC3E,6FAAwF;AACxF,uGAAiG;AACjG,mHAA6G;AAC7G,mGAA6F;AAC7F,qFAAgF;AAChF,+FAAyF;AACzF,+FAAyF;AACzF,uFAAkF;AAClF,yFAAoF;AACpF,2FAAsF;AACtF,qGAAgG;AAChG,6FAAwF;
|
|
1
|
+
{"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateNotificationTable1711969014729 = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class CreateNotificationTable1711969014729 extends nestjs_utility_services_1.MigrationUtility {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('utl_notification_details');
|
|
8
|
+
this.process();
|
|
9
|
+
}
|
|
10
|
+
process() {
|
|
11
|
+
this.primary();
|
|
12
|
+
this.string('name');
|
|
13
|
+
this.string('identifier');
|
|
14
|
+
this.string('description', { length: '1024' });
|
|
15
|
+
this.foreign({ name: 'model_id', foreignTable: 'sys_model_details' });
|
|
16
|
+
this.string('model_includes');
|
|
17
|
+
this.json('filter_condition');
|
|
18
|
+
this.foreign({ name: 'modifier_script_id', foreignTable: 'sys_system_scripts' });
|
|
19
|
+
this.boolean('active');
|
|
20
|
+
this.json('attributes');
|
|
21
|
+
this.whoColumns();
|
|
22
|
+
this.index(['identifier'], 'identifier');
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.CreateNotificationTable1711969014729 = CreateNotificationTable1711969014729;
|
|
26
|
+
//# sourceMappingURL=1711969014729-CreateNotificationTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1711969014729-CreateNotificationTable.js","sourceRoot":"","sources":["../../src/migrations/1711969014729-CreateNotificationTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,oCAAqC,SAAQ,0CAAgB;IACtE;QACI,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAEpB,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAC1B,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAE/C,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;QACtE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QAE9B,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC,CAAC;QAEjF,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAEvB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;QAElB,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC,CAAC;IAC7C,CAAC;CACJ;AA3BD,oFA2BC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateNotificationRecipientTable1711973530629 = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class CreateNotificationRecipientTable1711973530629 extends nestjs_utility_services_1.MigrationUtility {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('utl_notification_recipients');
|
|
8
|
+
this.process();
|
|
9
|
+
}
|
|
10
|
+
process() {
|
|
11
|
+
this.primary();
|
|
12
|
+
this.string('name');
|
|
13
|
+
this.source();
|
|
14
|
+
this.string('user_ids');
|
|
15
|
+
this.string('user_fields');
|
|
16
|
+
this.string('email_ids');
|
|
17
|
+
this.boolean('active');
|
|
18
|
+
this.json('attributes');
|
|
19
|
+
this.whoColumns();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.CreateNotificationRecipientTable1711973530629 = CreateNotificationRecipientTable1711973530629;
|
|
23
|
+
//# sourceMappingURL=1711973530629-CreateNotificationRecipientTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1711973530629-CreateNotificationRecipientTable.js","sourceRoot":"","sources":["../../src/migrations/1711973530629-CreateNotificationRecipientTable.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,6CAA8C,SAAQ,0CAAgB;IAC/E;QACI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACrC,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,EAAE,CAAC;QAEd,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACxB,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC3B,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAEzB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAEvB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AArBD,sGAqBC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddSourceUtlWebhookRequestsTable1714761622946 = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class AddSourceUtlWebhookRequestsTable1714761622946 extends nestjs_utility_services_1.MigrationUtility {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('utl_webhook_requests');
|
|
8
|
+
this.process();
|
|
9
|
+
}
|
|
10
|
+
process() {
|
|
11
|
+
this.source();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.AddSourceUtlWebhookRequestsTable1714761622946 = AddSourceUtlWebhookRequestsTable1714761622946;
|
|
15
|
+
//# sourceMappingURL=1714761622946-AddSourceUtlWebhookRequestsTable.ts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1714761622946-AddSourceUtlWebhookRequestsTable.ts.js","sourceRoot":"","sources":["../../src/migrations/1714761622946-AddSourceUtlWebhookRequestsTable.ts.ts"],"names":[],"mappings":";;;AAAA,oFAA0E;AAE1E,MAAa,6CAA8C,SAAQ,0CAAgB;IAC/E;QACI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;CACJ;AATD,sGASC"}
|