@servicelabsco/slabs-access-manager 0.1.96 → 0.1.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access/dtos/email.notification.payload.dto.d.ts +19 -0
- package/dist/access/dtos/email.notification.payload.dto.js +7 -0
- package/dist/access/dtos/email.notification.payload.dto.js.map +1 -0
- package/dist/access/dtos/gchat.message.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/gchat.message.attributes.dto.js +8 -0
- package/dist/access/dtos/gchat.message.attributes.dto.js.map +1 -0
- package/dist/access/dtos/gchat.posting.payload.dto.d.ts +4 -0
- package/dist/access/dtos/gchat.posting.payload.dto.js +7 -0
- package/dist/access/dtos/gchat.posting.payload.dto.js.map +1 -0
- package/dist/access/dtos/gchat.template.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/gchat.template.attributes.dto.js +8 -0
- package/dist/access/dtos/gchat.template.attributes.dto.js.map +1 -0
- package/dist/access/dtos/gchat.user.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/gchat.user.attributes.dto.js +8 -0
- package/dist/access/dtos/gchat.user.attributes.dto.js.map +1 -0
- package/dist/access/dtos/gchat.webhook.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/gchat.webhook.attributes.dto.js +8 -0
- package/dist/access/dtos/gchat.webhook.attributes.dto.js.map +1 -0
- package/dist/access/dtos/gchat.webhook.message.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/gchat.webhook.message.attributes.dto.js +8 -0
- package/dist/access/dtos/gchat.webhook.message.attributes.dto.js.map +1 -0
- package/dist/access/dtos/index.d.ts +19 -0
- package/dist/access/dtos/index.js +19 -0
- package/dist/access/dtos/index.js.map +1 -1
- package/dist/access/dtos/notification.payload.dto.d.ts +10 -0
- package/dist/access/dtos/notification.payload.dto.js +7 -0
- package/dist/access/dtos/notification.payload.dto.js.map +1 -0
- package/dist/access/dtos/send.email.notification.data.dto.d.ts +10 -0
- package/dist/access/dtos/send.email.notification.data.dto.js +7 -0
- package/dist/access/dtos/send.email.notification.data.dto.js.map +1 -0
- package/dist/access/dtos/slack.integration.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/slack.integration.attributes.dto.js +8 -0
- package/dist/access/dtos/slack.integration.attributes.dto.js.map +1 -0
- package/dist/access/dtos/slack.message.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/slack.message.attributes.dto.js +8 -0
- package/dist/access/dtos/slack.message.attributes.dto.js.map +1 -0
- package/dist/access/dtos/slack.posting.payload.dto.d.ts +5 -0
- package/dist/access/dtos/slack.posting.payload.dto.js +7 -0
- package/dist/access/dtos/slack.posting.payload.dto.js.map +1 -0
- package/dist/access/dtos/slack.template.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/slack.template.attributes.dto.js +8 -0
- package/dist/access/dtos/slack.template.attributes.dto.js.map +1 -0
- package/dist/access/dtos/slack.user.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/slack.user.attributes.dto.js +8 -0
- package/dist/access/dtos/slack.user.attributes.dto.js.map +1 -0
- package/dist/access/dtos/slack.webhook.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/slack.webhook.attributes.dto.js +8 -0
- package/dist/access/dtos/slack.webhook.attributes.dto.js.map +1 -0
- package/dist/access/dtos/slack.webhook.message.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/slack.webhook.message.attributes.dto.js +8 -0
- package/dist/access/dtos/slack.webhook.message.attributes.dto.js.map +1 -0
- package/dist/access/dtos/whatsapp.message.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/whatsapp.message.attributes.dto.js +8 -0
- package/dist/access/dtos/whatsapp.message.attributes.dto.js.map +1 -0
- package/dist/access/dtos/whatsapp.posting.payload.dto.d.ts +5 -0
- package/dist/access/dtos/whatsapp.posting.payload.dto.js +7 -0
- package/dist/access/dtos/whatsapp.posting.payload.dto.js.map +1 -0
- package/dist/access/dtos/whatsapp.template.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/whatsapp.template.attributes.dto.js +8 -0
- package/dist/access/dtos/whatsapp.template.attributes.dto.js.map +1 -0
- package/dist/access/entities/gchat.message.entity.d.ts +20 -0
- package/dist/access/entities/gchat.message.entity.js +84 -0
- package/dist/access/entities/gchat.message.entity.js.map +1 -0
- package/dist/access/entities/gchat.template.entity.d.ts +10 -0
- package/dist/access/entities/gchat.template.entity.js +46 -0
- package/dist/access/entities/gchat.template.entity.js.map +1 -0
- package/dist/access/entities/gchat.user.entity.d.ts +15 -0
- package/dist/access/entities/gchat.user.entity.js +63 -0
- package/dist/access/entities/gchat.user.entity.js.map +1 -0
- package/dist/access/entities/gchat.webhook.entity.d.ts +20 -0
- package/dist/access/entities/gchat.webhook.entity.js +78 -0
- package/dist/access/entities/gchat.webhook.entity.js.map +1 -0
- package/dist/access/entities/gchat.webhook.message.entity.d.ts +15 -0
- package/dist/access/entities/gchat.webhook.message.entity.js +62 -0
- package/dist/access/entities/gchat.webhook.message.entity.js.map +1 -0
- package/dist/access/entities/index.d.ts +14 -0
- package/dist/access/entities/index.js +14 -0
- package/dist/access/entities/index.js.map +1 -1
- package/dist/access/entities/slack.integration.entity.d.ts +11 -0
- package/dist/access/entities/slack.integration.entity.js +48 -0
- package/dist/access/entities/slack.integration.entity.js.map +1 -0
- package/dist/access/entities/slack.message.entity.d.ts +22 -0
- package/dist/access/entities/slack.message.entity.js +93 -0
- package/dist/access/entities/slack.message.entity.js.map +1 -0
- package/dist/access/entities/slack.template.entity.d.ts +10 -0
- package/dist/access/entities/slack.template.entity.js +46 -0
- package/dist/access/entities/slack.template.entity.js.map +1 -0
- package/dist/access/entities/slack.user.entity.d.ts +15 -0
- package/dist/access/entities/slack.user.entity.js +62 -0
- package/dist/access/entities/slack.user.entity.js.map +1 -0
- package/dist/access/entities/slack.webhook.entity.d.ts +20 -0
- package/dist/access/entities/slack.webhook.entity.js +78 -0
- package/dist/access/entities/slack.webhook.entity.js.map +1 -0
- package/dist/access/entities/slack.webhook.message.entity.d.ts +15 -0
- package/dist/access/entities/slack.webhook.message.entity.js +62 -0
- package/dist/access/entities/slack.webhook.message.entity.js.map +1 -0
- package/dist/access/entities/whatsapp.message.entity.d.ts +20 -0
- package/dist/access/entities/whatsapp.message.entity.js +84 -0
- package/dist/access/entities/whatsapp.message.entity.js.map +1 -0
- package/dist/access/entities/whatsapp.preference.entity.d.ts +10 -0
- package/dist/access/entities/whatsapp.preference.entity.js +48 -0
- package/dist/access/entities/whatsapp.preference.entity.js.map +1 -0
- package/dist/access/entities/whatsapp.template.entity.d.ts +10 -0
- package/dist/access/entities/whatsapp.template.entity.js +46 -0
- package/dist/access/entities/whatsapp.template.entity.js.map +1 -0
- package/dist/access/enums/index.d.ts +1 -0
- package/dist/access/enums/index.js +1 -0
- package/dist/access/enums/index.js.map +1 -1
- package/dist/access/enums/notification.type.enum.d.ts +5 -0
- package/dist/access/enums/notification.type.enum.js +10 -0
- package/dist/access/enums/notification.type.enum.js.map +1 -0
- package/dist/access/es6.classes.d.ts +64 -8
- package/dist/access/es6.classes.js +152 -1
- package/dist/access/es6.classes.js.map +1 -1
- package/dist/access/jobs/gchat.incoming.webhook.job.d.ts +9 -0
- package/dist/access/jobs/gchat.incoming.webhook.job.js +70 -0
- package/dist/access/jobs/gchat.incoming.webhook.job.js.map +1 -0
- package/dist/access/jobs/gchat.message.job.d.ts +7 -0
- package/dist/access/jobs/gchat.message.job.js +29 -0
- package/dist/access/jobs/gchat.message.job.js.map +1 -0
- package/dist/access/jobs/gchat.template.job.d.ts +7 -0
- package/dist/access/jobs/gchat.template.job.js +29 -0
- package/dist/access/jobs/gchat.template.job.js.map +1 -0
- package/dist/access/jobs/gchat.user.job.d.ts +7 -0
- package/dist/access/jobs/gchat.user.job.js +29 -0
- package/dist/access/jobs/gchat.user.job.js.map +1 -0
- package/dist/access/jobs/gchat.webhook.job.d.ts +7 -0
- package/dist/access/jobs/gchat.webhook.job.js +29 -0
- package/dist/access/jobs/gchat.webhook.job.js.map +1 -0
- package/dist/access/jobs/gchat.webhook.message.job.d.ts +7 -0
- package/dist/access/jobs/gchat.webhook.message.job.js +29 -0
- package/dist/access/jobs/gchat.webhook.message.job.js.map +1 -0
- package/dist/access/jobs/index.d.ts +16 -0
- package/dist/access/jobs/index.js +16 -0
- package/dist/access/jobs/index.js.map +1 -1
- package/dist/access/jobs/slack.incoming.webhook.job.d.ts +10 -0
- package/dist/access/jobs/slack.incoming.webhook.job.js +76 -0
- package/dist/access/jobs/slack.incoming.webhook.job.js.map +1 -0
- package/dist/access/jobs/slack.integration.job.d.ts +7 -0
- package/dist/access/jobs/slack.integration.job.js +29 -0
- package/dist/access/jobs/slack.integration.job.js.map +1 -0
- package/dist/access/jobs/slack.message.job.d.ts +7 -0
- package/dist/access/jobs/slack.message.job.js +29 -0
- package/dist/access/jobs/slack.message.job.js.map +1 -0
- package/dist/access/jobs/slack.template.job.d.ts +7 -0
- package/dist/access/jobs/slack.template.job.js +29 -0
- package/dist/access/jobs/slack.template.job.js.map +1 -0
- package/dist/access/jobs/slack.user.job.d.ts +7 -0
- package/dist/access/jobs/slack.user.job.js +29 -0
- package/dist/access/jobs/slack.user.job.js.map +1 -0
- package/dist/access/jobs/slack.webhook.job.d.ts +7 -0
- package/dist/access/jobs/slack.webhook.job.js +29 -0
- package/dist/access/jobs/slack.webhook.job.js.map +1 -0
- package/dist/access/jobs/slack.webhook.message.job.d.ts +7 -0
- package/dist/access/jobs/slack.webhook.message.job.js +29 -0
- package/dist/access/jobs/slack.webhook.message.job.js.map +1 -0
- package/dist/access/jobs/whatsapp.incoming.webhook.job.d.ts +10 -0
- package/dist/access/jobs/whatsapp.incoming.webhook.job.js +66 -0
- package/dist/access/jobs/whatsapp.incoming.webhook.job.js.map +1 -0
- package/dist/access/jobs/whatsapp.message.job.d.ts +7 -0
- package/dist/access/jobs/whatsapp.message.job.js +29 -0
- package/dist/access/jobs/whatsapp.message.job.js.map +1 -0
- package/dist/access/jobs/whatsapp.template.job.d.ts +7 -0
- package/dist/access/jobs/whatsapp.template.job.js +29 -0
- package/dist/access/jobs/whatsapp.template.job.js.map +1 -0
- package/dist/access/libraries/index.d.ts +8 -0
- package/dist/access/libraries/index.js +8 -0
- package/dist/access/libraries/index.js.map +1 -1
- package/dist/access/libraries/process.email.notification.d.ts +19 -0
- package/dist/access/libraries/process.email.notification.js +102 -0
- package/dist/access/libraries/process.email.notification.js.map +1 -0
- package/dist/access/libraries/process.notification.d.ts +15 -0
- package/dist/access/libraries/process.notification.js +67 -0
- package/dist/access/libraries/process.notification.js.map +1 -0
- package/dist/access/libraries/send.email.notification.d.ts +12 -0
- package/dist/access/libraries/send.email.notification.js +31 -0
- package/dist/access/libraries/send.email.notification.js.map +1 -0
- package/dist/access/libraries/send.gchat.message.notification.d.ts +14 -0
- package/dist/access/libraries/send.gchat.message.notification.js +66 -0
- package/dist/access/libraries/send.gchat.message.notification.js.map +1 -0
- package/dist/access/libraries/send.gchat.webhook.notification.d.ts +15 -0
- package/dist/access/libraries/send.gchat.webhook.notification.js +54 -0
- package/dist/access/libraries/send.gchat.webhook.notification.js.map +1 -0
- package/dist/access/libraries/send.slack.message.notification.d.ts +18 -0
- package/dist/access/libraries/send.slack.message.notification.js +68 -0
- package/dist/access/libraries/send.slack.message.notification.js.map +1 -0
- package/dist/access/libraries/send.slack.webhook.notification..d.ts +17 -0
- package/dist/access/libraries/send.slack.webhook.notification..js +59 -0
- package/dist/access/libraries/send.slack.webhook.notification..js.map +1 -0
- package/dist/access/libraries/send.whatsapp.message.notification.d.ts +20 -0
- package/dist/access/libraries/send.whatsapp.message.notification.js +89 -0
- package/dist/access/libraries/send.whatsapp.message.notification.js.map +1 -0
- package/dist/access/services/es6.jobs.service.d.ts +33 -1
- package/dist/access/services/es6.jobs.service.js +66 -2
- package/dist/access/services/es6.jobs.service.js.map +1 -1
- package/dist/access/services/gchat.service.d.ts +14 -0
- package/dist/access/services/gchat.service.js +65 -0
- package/dist/access/services/gchat.service.js.map +1 -0
- package/dist/access/services/index.d.ts +5 -0
- package/dist/access/services/index.js +5 -0
- package/dist/access/services/index.js.map +1 -1
- package/dist/access/services/notification.service.d.ts +30 -0
- package/dist/access/services/notification.service.js +92 -0
- package/dist/access/services/notification.service.js.map +1 -0
- package/dist/access/services/send.email.service.d.ts +10 -0
- package/dist/access/services/send.email.service.js +41 -0
- package/dist/access/services/send.email.service.js.map +1 -0
- package/dist/access/services/slack.service.d.ts +14 -0
- package/dist/access/services/slack.service.js +96 -0
- package/dist/access/services/slack.service.js.map +1 -0
- package/dist/access/services/whatsapp.service.d.ts +11 -0
- package/dist/access/services/whatsapp.service.js +59 -0
- package/dist/access/services/whatsapp.service.js.map +1 -0
- package/dist/access/subscribers/gchat.message.subscriber.d.ts +12 -0
- package/dist/access/subscribers/gchat.message.subscriber.js +40 -0
- package/dist/access/subscribers/gchat.message.subscriber.js.map +1 -0
- package/dist/access/subscribers/gchat.template.subscriber.d.ts +12 -0
- package/dist/access/subscribers/gchat.template.subscriber.js +40 -0
- package/dist/access/subscribers/gchat.template.subscriber.js.map +1 -0
- package/dist/access/subscribers/gchat.user.subscriber.d.ts +12 -0
- package/dist/access/subscribers/gchat.user.subscriber.js +40 -0
- package/dist/access/subscribers/gchat.user.subscriber.js.map +1 -0
- package/dist/access/subscribers/gchat.webhook.message.subscriber.d.ts +12 -0
- package/dist/access/subscribers/gchat.webhook.message.subscriber.js +40 -0
- package/dist/access/subscribers/gchat.webhook.message.subscriber.js.map +1 -0
- package/dist/access/subscribers/gchat.webhook.subscriber.d.ts +12 -0
- package/dist/access/subscribers/gchat.webhook.subscriber.js +40 -0
- package/dist/access/subscribers/gchat.webhook.subscriber.js.map +1 -0
- package/dist/access/subscribers/index.d.ts +13 -0
- package/dist/access/subscribers/index.js +13 -0
- package/dist/access/subscribers/index.js.map +1 -1
- package/dist/access/subscribers/slack.integration.subscriber.d.ts +12 -0
- package/dist/access/subscribers/slack.integration.subscriber.js +40 -0
- package/dist/access/subscribers/slack.integration.subscriber.js.map +1 -0
- package/dist/access/subscribers/slack.message.subscriber.d.ts +12 -0
- package/dist/access/subscribers/slack.message.subscriber.js +40 -0
- package/dist/access/subscribers/slack.message.subscriber.js.map +1 -0
- package/dist/access/subscribers/slack.template.subscriber.d.ts +12 -0
- package/dist/access/subscribers/slack.template.subscriber.js +40 -0
- package/dist/access/subscribers/slack.template.subscriber.js.map +1 -0
- package/dist/access/subscribers/slack.user.subscriber.d.ts +12 -0
- package/dist/access/subscribers/slack.user.subscriber.js +40 -0
- package/dist/access/subscribers/slack.user.subscriber.js.map +1 -0
- package/dist/access/subscribers/slack.webhook.message.subscriber.d.ts +12 -0
- package/dist/access/subscribers/slack.webhook.message.subscriber.js +40 -0
- package/dist/access/subscribers/slack.webhook.message.subscriber.js.map +1 -0
- package/dist/access/subscribers/slack.webhook.subscriber.d.ts +12 -0
- package/dist/access/subscribers/slack.webhook.subscriber.js +40 -0
- package/dist/access/subscribers/slack.webhook.subscriber.js.map +1 -0
- package/dist/access/subscribers/whatsapp.message.subscriber.d.ts +12 -0
- package/dist/access/subscribers/whatsapp.message.subscriber.js +40 -0
- package/dist/access/subscribers/whatsapp.message.subscriber.js.map +1 -0
- package/dist/access/subscribers/whatsapp.template.subscriber.d.ts +12 -0
- package/dist/access/subscribers/whatsapp.template.subscriber.js +40 -0
- package/dist/access/subscribers/whatsapp.template.subscriber.js.map +1 -0
- package/dist/accessUtility/dtos/gchat.notification.attributes.dto.d.ts +3 -0
- package/dist/accessUtility/dtos/gchat.notification.attributes.dto.js +8 -0
- package/dist/accessUtility/dtos/gchat.notification.attributes.dto.js.map +1 -0
- package/dist/accessUtility/dtos/index.d.ts +3 -0
- package/dist/accessUtility/dtos/index.js +3 -0
- package/dist/accessUtility/dtos/index.js.map +1 -1
- package/dist/accessUtility/dtos/notification.attributes.dto.d.ts +6 -0
- package/dist/accessUtility/dtos/notification.attributes.dto.js.map +1 -1
- package/dist/accessUtility/dtos/slack.notification.attributes.dto.d.ts +3 -0
- package/dist/accessUtility/dtos/slack.notification.attributes.dto.js +8 -0
- package/dist/accessUtility/dtos/slack.notification.attributes.dto.js.map +1 -0
- package/dist/accessUtility/dtos/webhook.attributes.dto.d.ts +5 -0
- package/dist/accessUtility/dtos/webhook.attributes.dto.js +8 -0
- package/dist/accessUtility/dtos/webhook.attributes.dto.js.map +1 -0
- package/dist/accessUtility/entities/email.notification.entity.d.ts +1 -1
- package/dist/accessUtility/entities/email.notification.entity.js +1 -1
- package/dist/accessUtility/entities/email.notification.entity.js.map +1 -1
- package/dist/accessUtility/entities/gchat.notification.entity.d.ts +14 -0
- package/dist/accessUtility/entities/gchat.notification.entity.js +58 -0
- package/dist/accessUtility/entities/gchat.notification.entity.js.map +1 -0
- package/dist/accessUtility/entities/inapp.notification.entity.d.ts +1 -1
- package/dist/accessUtility/entities/inapp.notification.entity.js +1 -1
- package/dist/accessUtility/entities/inapp.notification.entity.js.map +1 -1
- package/dist/accessUtility/entities/index.d.ts +2 -0
- package/dist/accessUtility/entities/index.js +2 -0
- package/dist/accessUtility/entities/index.js.map +1 -1
- package/dist/accessUtility/entities/notification.entity.d.ts +12 -0
- package/dist/accessUtility/entities/notification.entity.js +30 -0
- package/dist/accessUtility/entities/notification.entity.js.map +1 -1
- package/dist/accessUtility/entities/slack.notification.entity.d.ts +14 -0
- package/dist/accessUtility/entities/slack.notification.entity.js +58 -0
- package/dist/accessUtility/entities/slack.notification.entity.js.map +1 -0
- package/dist/accessUtility/entities/sms.notification.entity.d.ts +1 -1
- package/dist/accessUtility/entities/sms.notification.entity.js +1 -1
- package/dist/accessUtility/entities/sms.notification.entity.js.map +1 -1
- package/dist/accessUtility/entities/whatsapp.notification.entity.d.ts +3 -2
- package/dist/accessUtility/entities/whatsapp.notification.entity.js +4 -3
- package/dist/accessUtility/entities/whatsapp.notification.entity.js.map +1 -1
- package/dist/accessUtility/es6.classes.d.ts +11 -5
- package/dist/accessUtility/es6.classes.js +18 -0
- package/dist/accessUtility/es6.classes.js.map +1 -1
- package/dist/accessUtility/jobs/gchat.notification.job.d.ts +7 -0
- package/dist/accessUtility/jobs/gchat.notification.job.js +29 -0
- package/dist/accessUtility/jobs/gchat.notification.job.js.map +1 -0
- package/dist/accessUtility/jobs/index.d.ts +2 -0
- package/dist/accessUtility/jobs/index.js +2 -0
- package/dist/accessUtility/jobs/index.js.map +1 -1
- package/dist/accessUtility/jobs/slack.notification.job.d.ts +7 -0
- package/dist/accessUtility/jobs/slack.notification.job.js +29 -0
- package/dist/accessUtility/jobs/slack.notification.job.js.map +1 -0
- package/dist/accessUtility/services/es6.jobs.service.d.ts +5 -1
- package/dist/accessUtility/services/es6.jobs.service.js +9 -1
- package/dist/accessUtility/services/es6.jobs.service.js.map +1 -1
- package/dist/accessUtility/subscribers/gchat.notification.subscriber.d.ts +12 -0
- package/dist/accessUtility/subscribers/gchat.notification.subscriber.js +40 -0
- package/dist/accessUtility/subscribers/gchat.notification.subscriber.js.map +1 -0
- package/dist/accessUtility/subscribers/index.d.ts +2 -0
- package/dist/accessUtility/subscribers/index.js +2 -0
- package/dist/accessUtility/subscribers/index.js.map +1 -1
- package/dist/accessUtility/subscribers/slack.notification.subscriber.d.ts +12 -0
- package/dist/accessUtility/subscribers/slack.notification.subscriber.js +40 -0
- package/dist/accessUtility/subscribers/slack.notification.subscriber.js.map +1 -0
- package/dist/app.controller.d.ts +3 -1
- package/dist/app.controller.js +30 -4
- package/dist/app.controller.js.map +1 -1
- package/dist/config/entity.constants.d.ts +32 -0
- package/dist/config/entity.constants.js +32 -0
- package/dist/config/entity.constants.js.map +1 -1
- package/dist/migrations/1715839779781-CreateSlackTemplateTable.d.ts +5 -0
- package/dist/migrations/1715839779781-CreateSlackTemplateTable.js +22 -0
- package/dist/migrations/1715839779781-CreateSlackTemplateTable.js.map +1 -0
- package/dist/migrations/1715840043954-CreateGchatTemplateTable.d.ts +5 -0
- package/dist/migrations/1715840043954-CreateGchatTemplateTable.js +22 -0
- package/dist/migrations/1715840043954-CreateGchatTemplateTable.js.map +1 -0
- package/dist/migrations/1715840120259-AddColumnsWhatsappTemplateTable.d.ts +5 -0
- package/dist/migrations/1715840120259-AddColumnsWhatsappTemplateTable.js +17 -0
- package/dist/migrations/1715840120259-AddColumnsWhatsappTemplateTable.js.map +1 -0
- package/dist/migrations/1715841825698-CreateGchatUserTable.d.ts +5 -0
- package/dist/migrations/1715841825698-CreateGchatUserTable.js +22 -0
- package/dist/migrations/1715841825698-CreateGchatUserTable.js.map +1 -0
- package/dist/migrations/1715843181123-CreateSlackIntegrationTable.d.ts +5 -0
- package/dist/migrations/1715843181123-CreateSlackIntegrationTable.js +21 -0
- package/dist/migrations/1715843181123-CreateSlackIntegrationTable.js.map +1 -0
- package/dist/migrations/1715844214368-CreateSlackUserTable.d.ts +5 -0
- package/dist/migrations/1715844214368-CreateSlackUserTable.js +23 -0
- package/dist/migrations/1715844214368-CreateSlackUserTable.js.map +1 -0
- package/dist/migrations/1715854491813-CreateGchatWebhookTable.d.ts +5 -0
- package/dist/migrations/1715854491813-CreateGchatWebhookTable.js +24 -0
- package/dist/migrations/1715854491813-CreateGchatWebhookTable.js.map +1 -0
- package/dist/migrations/1715854735102-CreateSlackWebhookTable.d.ts +5 -0
- package/dist/migrations/1715854735102-CreateSlackWebhookTable.js +24 -0
- package/dist/migrations/1715854735102-CreateSlackWebhookTable.js.map +1 -0
- package/dist/migrations/1715860233245-CreateGchatNotificationTable.d.ts +5 -0
- package/dist/migrations/1715860233245-CreateGchatNotificationTable.js +22 -0
- package/dist/migrations/1715860233245-CreateGchatNotificationTable.js.map +1 -0
- package/dist/migrations/1715860381516-CreateSlackNotificationTable.d.ts +5 -0
- package/dist/migrations/1715860381516-CreateSlackNotificationTable.js +22 -0
- package/dist/migrations/1715860381516-CreateSlackNotificationTable.js.map +1 -0
- package/dist/migrations/1716367203152-CreateSlackMessageTable.d.ts +5 -0
- package/dist/migrations/1716367203152-CreateSlackMessageTable.js +26 -0
- package/dist/migrations/1716367203152-CreateSlackMessageTable.js.map +1 -0
- package/dist/migrations/1716367315656-CreateGchatMessageTable.d.ts +5 -0
- package/dist/migrations/1716367315656-CreateGchatMessageTable.js +26 -0
- package/dist/migrations/1716367315656-CreateGchatMessageTable.js.map +1 -0
- package/dist/migrations/1716371652013-CreateGchatWebhookMessageTable.d.ts +5 -0
- package/dist/migrations/1716371652013-CreateGchatWebhookMessageTable.js +23 -0
- package/dist/migrations/1716371652013-CreateGchatWebhookMessageTable.js.map +1 -0
- package/dist/migrations/1716371864244-CreateSlackWebhookMessageTable.d.ts +5 -0
- package/dist/migrations/1716371864244-CreateSlackWebhookMessageTable.js +23 -0
- package/dist/migrations/1716371864244-CreateSlackWebhookMessageTable.js.map +1 -0
- package/dist/migrations/1716379083593-CreateWhatsappMessageTable.d.ts +5 -0
- package/dist/migrations/1716379083593-CreateWhatsappMessageTable.js +26 -0
- package/dist/migrations/1716379083593-CreateWhatsappMessageTable.js.map +1 -0
- package/dist/migrations/1716562127944-RenamecolumnSysSlackWebhookMessagesTable.d.ts +5 -0
- package/dist/migrations/1716562127944-RenamecolumnSysSlackWebhookMessagesTable.js +15 -0
- package/dist/migrations/1716562127944-RenamecolumnSysSlackWebhookMessagesTable.js.map +1 -0
- package/dist/migrations/1716565122165-AddSlackMessageTypeDataSeederTable.d.ts +7 -0
- package/dist/migrations/1716565122165-AddSlackMessageTypeDataSeederTable.js +51 -0
- package/dist/migrations/1716565122165-AddSlackMessageTypeDataSeederTable.js.map +1 -0
- package/dist/migrations/1716565304099-AddTypeSysSlackMessagesTable.ts.d.ts +5 -0
- package/dist/migrations/1716565304099-AddTypeSysSlackMessagesTable.ts.js +15 -0
- package/dist/migrations/1716565304099-AddTypeSysSlackMessagesTable.ts.js.map +1 -0
- package/dist/migrations/1716568667166-AddTypeIdSysGchatMessagesTable.d.ts +5 -0
- package/dist/migrations/1716568667166-AddTypeIdSysGchatMessagesTable.js +15 -0
- package/dist/migrations/1716568667166-AddTypeIdSysGchatMessagesTable.js.map +1 -0
- package/dist/migrations/1716568739132-AddTypeIdSysWhatsappMessagesTable.d.ts +5 -0
- package/dist/migrations/1716568739132-AddTypeIdSysWhatsappMessagesTable.js +15 -0
- package/dist/migrations/1716568739132-AddTypeIdSysWhatsappMessagesTable.js.map +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
|
3
|
+
import { SlackUserEntity } from '../entities/slack.user.entity';
|
|
4
|
+
import { SlackUserJob } from '../jobs/slack.user.job';
|
|
5
|
+
export declare class SlackUserSubscriber extends CommonSubscriber<SlackUserEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
private readonly slackUserJob;
|
|
8
|
+
constructor(dataSource: DataSource, slackUserJob: SlackUserJob);
|
|
9
|
+
listenTo(): typeof SlackUserEntity;
|
|
10
|
+
afterInsert(event: InsertEvent<SlackUserEntity>): Promise<void>;
|
|
11
|
+
afterUpdate(event: UpdateEvent<SlackUserEntity>): 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.SlackUserSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const slack_user_entity_1 = require("../entities/slack.user.entity");
|
|
16
|
+
const slack_user_job_1 = require("../jobs/slack.user.job");
|
|
17
|
+
let SlackUserSubscriber = class SlackUserSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, slackUserJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.slackUserJob = slackUserJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return slack_user_entity_1.SlackUserEntity;
|
|
26
|
+
}
|
|
27
|
+
async afterInsert(event) {
|
|
28
|
+
await this.slackUserJob.delayedDispatch(this.getEventData(event));
|
|
29
|
+
}
|
|
30
|
+
async afterUpdate(event) {
|
|
31
|
+
await this.slackUserJob.delayedDispatch(this.getEventData(event));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.SlackUserSubscriber = SlackUserSubscriber;
|
|
35
|
+
exports.SlackUserSubscriber = SlackUserSubscriber = __decorate([
|
|
36
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
37
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
38
|
+
slack_user_job_1.SlackUserJob])
|
|
39
|
+
], SlackUserSubscriber);
|
|
40
|
+
//# sourceMappingURL=slack.user.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack.user.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/slack.user.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,qEAAgE;AAChE,2DAAsD;AAE/C,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,0CAAiC;IACtE,YACqB,UAAsB,EACtB,YAA0B;QAE3C,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,iBAAY,GAAZ,YAAY,CAAc;QAG3C,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,mCAAe,CAAC;IAC3B,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAAmC;QACjD,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAmC;QACjD,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACtE,CAAC;CACJ,CAAA;AAlBY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACR,6BAAY;GAHtC,mBAAmB,CAkB/B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
|
3
|
+
import { SlackWebhookMessageEntity } from '../entities/slack.webhook.message.entity';
|
|
4
|
+
import { SlackWebhookMessageJob } from '../jobs/slack.webhook.message.job';
|
|
5
|
+
export declare class SlackWebhookMessageSubscriber extends CommonSubscriber<SlackWebhookMessageEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
private readonly slackWebhookMessageJob;
|
|
8
|
+
constructor(dataSource: DataSource, slackWebhookMessageJob: SlackWebhookMessageJob);
|
|
9
|
+
listenTo(): typeof SlackWebhookMessageEntity;
|
|
10
|
+
afterInsert(event: InsertEvent<SlackWebhookMessageEntity>): Promise<void>;
|
|
11
|
+
afterUpdate(event: UpdateEvent<SlackWebhookMessageEntity>): 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.SlackWebhookMessageSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const slack_webhook_message_entity_1 = require("../entities/slack.webhook.message.entity");
|
|
16
|
+
const slack_webhook_message_job_1 = require("../jobs/slack.webhook.message.job");
|
|
17
|
+
let SlackWebhookMessageSubscriber = class SlackWebhookMessageSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, slackWebhookMessageJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.slackWebhookMessageJob = slackWebhookMessageJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return slack_webhook_message_entity_1.SlackWebhookMessageEntity;
|
|
26
|
+
}
|
|
27
|
+
async afterInsert(event) {
|
|
28
|
+
await this.slackWebhookMessageJob.delayedDispatch(this.getEventData(event));
|
|
29
|
+
}
|
|
30
|
+
async afterUpdate(event) {
|
|
31
|
+
await this.slackWebhookMessageJob.delayedDispatch(this.getEventData(event));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.SlackWebhookMessageSubscriber = SlackWebhookMessageSubscriber;
|
|
35
|
+
exports.SlackWebhookMessageSubscriber = SlackWebhookMessageSubscriber = __decorate([
|
|
36
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
37
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
38
|
+
slack_webhook_message_job_1.SlackWebhookMessageJob])
|
|
39
|
+
], SlackWebhookMessageSubscriber);
|
|
40
|
+
//# sourceMappingURL=slack.webhook.message.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack.webhook.message.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/slack.webhook.message.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,2FAAqF;AACrF,iFAA2E;AAEpE,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,0CAA2C;IAC1F,YACqB,UAAsB,EACtB,sBAA8C;QAE/D,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,2BAAsB,GAAtB,sBAAsB,CAAwB;QAG/D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,wDAAyB,CAAC;IACrC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAA6C;QAC3D,MAAM,IAAI,CAAC,sBAAsB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAA6C;QAC3D,MAAM,IAAI,CAAC,sBAAsB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC;CACJ,CAAA;AAlBY,sEAA6B;wCAA7B,6BAA6B;IADzC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACE,kDAAsB;GAH1D,6BAA6B,CAkBzC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
|
3
|
+
import { SlackWebhookEntity } from '../entities/slack.webhook.entity';
|
|
4
|
+
import { SlackWebhookJob } from '../jobs/slack.webhook.job';
|
|
5
|
+
export declare class SlackWebhookSubscriber extends CommonSubscriber<SlackWebhookEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
private readonly slackWebhookJob;
|
|
8
|
+
constructor(dataSource: DataSource, slackWebhookJob: SlackWebhookJob);
|
|
9
|
+
listenTo(): typeof SlackWebhookEntity;
|
|
10
|
+
afterInsert(event: InsertEvent<SlackWebhookEntity>): Promise<void>;
|
|
11
|
+
afterUpdate(event: UpdateEvent<SlackWebhookEntity>): 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.SlackWebhookSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const slack_webhook_entity_1 = require("../entities/slack.webhook.entity");
|
|
16
|
+
const slack_webhook_job_1 = require("../jobs/slack.webhook.job");
|
|
17
|
+
let SlackWebhookSubscriber = class SlackWebhookSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, slackWebhookJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.slackWebhookJob = slackWebhookJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return slack_webhook_entity_1.SlackWebhookEntity;
|
|
26
|
+
}
|
|
27
|
+
async afterInsert(event) {
|
|
28
|
+
await this.slackWebhookJob.delayedDispatch(this.getEventData(event));
|
|
29
|
+
}
|
|
30
|
+
async afterUpdate(event) {
|
|
31
|
+
await this.slackWebhookJob.delayedDispatch(this.getEventData(event));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.SlackWebhookSubscriber = SlackWebhookSubscriber;
|
|
35
|
+
exports.SlackWebhookSubscriber = SlackWebhookSubscriber = __decorate([
|
|
36
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
37
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
38
|
+
slack_webhook_job_1.SlackWebhookJob])
|
|
39
|
+
], SlackWebhookSubscriber);
|
|
40
|
+
//# sourceMappingURL=slack.webhook.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack.webhook.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/slack.webhook.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,2EAAsE;AACtE,iEAA4D;AAErD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,0CAAoC;IAC5E,YACqB,UAAsB,EACtB,eAAgC;QAEjD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,oBAAe,GAAf,eAAe,CAAiB;QAGjD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,yCAAkB,CAAC;IAC9B,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAAsC;QACpD,MAAM,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACzE,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAsC;QACpD,MAAM,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACzE,CAAC;CACJ,CAAA;AAlBY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACL,mCAAe;GAH5C,sBAAsB,CAkBlC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
|
3
|
+
import { WhatsappMessageEntity } from '../entities/whatsapp.message.entity';
|
|
4
|
+
import { WhatsappMessageJob } from '../jobs/whatsapp.message.job';
|
|
5
|
+
export declare class WhatsappMessageSubscriber extends CommonSubscriber<WhatsappMessageEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
private readonly whatsappMessageJob;
|
|
8
|
+
constructor(dataSource: DataSource, whatsappMessageJob: WhatsappMessageJob);
|
|
9
|
+
listenTo(): typeof WhatsappMessageEntity;
|
|
10
|
+
afterInsert(event: InsertEvent<WhatsappMessageEntity>): Promise<void>;
|
|
11
|
+
afterUpdate(event: UpdateEvent<WhatsappMessageEntity>): 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.WhatsappMessageSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const whatsapp_message_entity_1 = require("../entities/whatsapp.message.entity");
|
|
16
|
+
const whatsapp_message_job_1 = require("../jobs/whatsapp.message.job");
|
|
17
|
+
let WhatsappMessageSubscriber = class WhatsappMessageSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, whatsappMessageJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.whatsappMessageJob = whatsappMessageJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return whatsapp_message_entity_1.WhatsappMessageEntity;
|
|
26
|
+
}
|
|
27
|
+
async afterInsert(event) {
|
|
28
|
+
await this.whatsappMessageJob.delayedDispatch(this.getEventData(event));
|
|
29
|
+
}
|
|
30
|
+
async afterUpdate(event) {
|
|
31
|
+
await this.whatsappMessageJob.delayedDispatch(this.getEventData(event));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.WhatsappMessageSubscriber = WhatsappMessageSubscriber;
|
|
35
|
+
exports.WhatsappMessageSubscriber = WhatsappMessageSubscriber = __decorate([
|
|
36
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
37
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
38
|
+
whatsapp_message_job_1.WhatsappMessageJob])
|
|
39
|
+
], WhatsappMessageSubscriber);
|
|
40
|
+
//# sourceMappingURL=whatsapp.message.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatsapp.message.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/whatsapp.message.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,iFAA4E;AAC5E,uEAAkE;AAE3D,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,0CAAuC;IAClF,YACqB,UAAsB,EACtB,kBAAsC;QAEvD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,uBAAkB,GAAlB,kBAAkB,CAAoB;QAGvD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,+CAAqB,CAAC;IACjC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAAyC;QACvD,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAyC;QACvD,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5E,CAAC;CACJ,CAAA;AAlBY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACF,yCAAkB;GAHlD,yBAAyB,CAkBrC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonSubscriber } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { DataSource, InsertEvent, UpdateEvent } from 'typeorm';
|
|
3
|
+
import { WhatsappTemplateEntity } from '../entities/whatsapp.template.entity';
|
|
4
|
+
import { WhatsappTemplateJob } from '../jobs/whatsapp.template.job';
|
|
5
|
+
export declare class WhatsappTemplateSubscriber extends CommonSubscriber<WhatsappTemplateEntity> {
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
private readonly whatsappTemplateJob;
|
|
8
|
+
constructor(dataSource: DataSource, whatsappTemplateJob: WhatsappTemplateJob);
|
|
9
|
+
listenTo(): typeof WhatsappTemplateEntity;
|
|
10
|
+
afterInsert(event: InsertEvent<WhatsappTemplateEntity>): Promise<void>;
|
|
11
|
+
afterUpdate(event: UpdateEvent<WhatsappTemplateEntity>): 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.WhatsappTemplateSubscriber = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const whatsapp_template_entity_1 = require("../entities/whatsapp.template.entity");
|
|
16
|
+
const whatsapp_template_job_1 = require("../jobs/whatsapp.template.job");
|
|
17
|
+
let WhatsappTemplateSubscriber = class WhatsappTemplateSubscriber extends nestjs_utility_services_1.CommonSubscriber {
|
|
18
|
+
constructor(dataSource, whatsappTemplateJob) {
|
|
19
|
+
super();
|
|
20
|
+
this.dataSource = dataSource;
|
|
21
|
+
this.whatsappTemplateJob = whatsappTemplateJob;
|
|
22
|
+
dataSource.subscribers.push(this);
|
|
23
|
+
}
|
|
24
|
+
listenTo() {
|
|
25
|
+
return whatsapp_template_entity_1.WhatsappTemplateEntity;
|
|
26
|
+
}
|
|
27
|
+
async afterInsert(event) {
|
|
28
|
+
await this.whatsappTemplateJob.delayedDispatch(this.getEventData(event));
|
|
29
|
+
}
|
|
30
|
+
async afterUpdate(event) {
|
|
31
|
+
await this.whatsappTemplateJob.delayedDispatch(this.getEventData(event));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.WhatsappTemplateSubscriber = WhatsappTemplateSubscriber;
|
|
35
|
+
exports.WhatsappTemplateSubscriber = WhatsappTemplateSubscriber = __decorate([
|
|
36
|
+
(0, typeorm_1.EventSubscriber)(),
|
|
37
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
38
|
+
whatsapp_template_job_1.WhatsappTemplateJob])
|
|
39
|
+
], WhatsappTemplateSubscriber);
|
|
40
|
+
//# sourceMappingURL=whatsapp.template.subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatsapp.template.subscriber.js","sourceRoot":"","sources":["../../../src/access/subscribers/whatsapp.template.subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA0E;AAC1E,qCAAgF;AAChF,mFAA8E;AAC9E,yEAAoE;AAE7D,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,0CAAwC;IACpF,YACqB,UAAsB,EACtB,mBAAwC;QAEzD,KAAK,EAAE,CAAC;QAHS,eAAU,GAAV,UAAU,CAAY;QACtB,wBAAmB,GAAnB,mBAAmB,CAAqB;QAGzD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IACD,QAAQ;QACJ,OAAO,iDAAsB,CAAC;IAClC,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,KAA0C;QACxD,MAAM,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7E,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAA0C;QACxD,MAAM,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7E,CAAC;CACJ,CAAA;AAlBY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,yBAAe,GAAE;qCAGmB,oBAAU;QACD,2CAAmB;GAHpD,0BAA0B,CAkBtC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GchatNotificationAttributesDto = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class GchatNotificationAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
|
|
6
|
+
}
|
|
7
|
+
exports.GchatNotificationAttributesDto = GchatNotificationAttributesDto;
|
|
8
|
+
//# sourceMappingURL=gchat.notification.attributes.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gchat.notification.attributes.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/gchat.notification.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,8BAA+B,SAAQ,6CAAmB;CAAG;AAA1E,wEAA0E"}
|
|
@@ -10,12 +10,15 @@ export * from './data.mapping.attributes.dto';
|
|
|
10
10
|
export * from './document.file.upload.dto';
|
|
11
11
|
export * from './email.notification.attributes.dto';
|
|
12
12
|
export * from './error.handling.dto';
|
|
13
|
+
export * from './gchat.notification.attributes.dto';
|
|
13
14
|
export * from './inapp.notification.attributes.dto';
|
|
14
15
|
export * from './listing.model.attributes.dto';
|
|
15
16
|
export * from './notification.attributes.dto';
|
|
16
17
|
export * from './notification.recipient.attributes.dto';
|
|
18
|
+
export * from './slack.notification.attributes.dto';
|
|
17
19
|
export * from './sms.notification.attributes.dto';
|
|
18
20
|
export * from './tag.assignment.attributes.dto';
|
|
19
21
|
export * from './upload.modification.attributes.dto';
|
|
22
|
+
export * from './webhook.attributes.dto';
|
|
20
23
|
export * from './webhook.request.attributes.dto';
|
|
21
24
|
export * from './whatsapp.notification.attributes.dto';
|
|
@@ -26,13 +26,16 @@ __exportStar(require("./data.mapping.attributes.dto"), exports);
|
|
|
26
26
|
__exportStar(require("./document.file.upload.dto"), exports);
|
|
27
27
|
__exportStar(require("./email.notification.attributes.dto"), exports);
|
|
28
28
|
__exportStar(require("./error.handling.dto"), exports);
|
|
29
|
+
__exportStar(require("./gchat.notification.attributes.dto"), exports);
|
|
29
30
|
__exportStar(require("./inapp.notification.attributes.dto"), exports);
|
|
30
31
|
__exportStar(require("./listing.model.attributes.dto"), exports);
|
|
31
32
|
__exportStar(require("./notification.attributes.dto"), exports);
|
|
32
33
|
__exportStar(require("./notification.recipient.attributes.dto"), exports);
|
|
34
|
+
__exportStar(require("./slack.notification.attributes.dto"), exports);
|
|
33
35
|
__exportStar(require("./sms.notification.attributes.dto"), exports);
|
|
34
36
|
__exportStar(require("./tag.assignment.attributes.dto"), exports);
|
|
35
37
|
__exportStar(require("./upload.modification.attributes.dto"), exports);
|
|
38
|
+
__exportStar(require("./webhook.attributes.dto"), exports);
|
|
36
39
|
__exportStar(require("./webhook.request.attributes.dto"), exports);
|
|
37
40
|
__exportStar(require("./whatsapp.notification.attributes.dto"), exports);
|
|
38
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AAAA,wEAAsD;AAAA,8EAA4D;AAAA,+DAA6C;AAAA,sEAAoD;AAAA,oEAAkD;AAAA,0DAAwC;AAAA,oEAAkD;AAAA,gEAA8C;AAAA,6DAA2C;AAAA,sEAAoD;AAAA,uDAAqC;AAAA,sEAAoD;AAAA,iEAA+C;AAAA,gEAA8C;AAAA,0EAAwD;AAAA,oEAAkD;AAAA,kEAAgD;AAAA,uEAAqD;AAAA,mEAAiD;AAAA,yEAAsD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AAAA,wEAAsD;AAAA,8EAA4D;AAAA,+DAA6C;AAAA,sEAAoD;AAAA,oEAAkD;AAAA,0DAAwC;AAAA,oEAAkD;AAAA,gEAA8C;AAAA,6DAA2C;AAAA,sEAAoD;AAAA,uDAAqC;AAAA,sEAAoD;AAAA,sEAAoD;AAAA,iEAA+C;AAAA,gEAA8C;AAAA,0EAAwD;AAAA,sEAAoD;AAAA,oEAAkD;AAAA,kEAAgD;AAAA,uEAAqD;AAAA,2DAAyC;AAAA,mEAAiD;AAAA,yEAAsD"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { CommonAttributesDto } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { WebhookAttributesDto } from './webhook.attributes.dto';
|
|
2
3
|
export declare class NotificationAttributesDto extends CommonAttributesDto {
|
|
4
|
+
slack_template?: string;
|
|
5
|
+
gchat_template?: string;
|
|
6
|
+
gchat_webhook?: WebhookAttributesDto;
|
|
7
|
+
slack_webhook?: WebhookAttributesDto;
|
|
8
|
+
whatsapp_template?: string;
|
|
3
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.attributes.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/notification.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;
|
|
1
|
+
{"version":3,"file":"notification.attributes.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/notification.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAE7E,MAAa,yBAA0B,SAAQ,6CAAmB;CAQjE;AARD,8DAQC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SlackNotificationAttributesDto = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class SlackNotificationAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
|
|
6
|
+
}
|
|
7
|
+
exports.SlackNotificationAttributesDto = SlackNotificationAttributesDto;
|
|
8
|
+
//# sourceMappingURL=slack.notification.attributes.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack.notification.attributes.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/slack.notification.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,8BAA+B,SAAQ,6CAAmB;CAAG;AAA1E,wEAA0E"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookAttributesDto = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class WebhookAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
|
|
6
|
+
}
|
|
7
|
+
exports.WebhookAttributesDto = WebhookAttributesDto;
|
|
8
|
+
//# sourceMappingURL=webhook.attributes.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.attributes.dto.js","sourceRoot":"","sources":["../../../src/accessUtility/dtos/webhook.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAE7E,MAAa,oBAAqB,SAAQ,6CAAmB;CAG5D;AAHD,oDAGC"}
|
|
@@ -4,7 +4,7 @@ import { NotificationEntity } from './notification.entity';
|
|
|
4
4
|
export declare class EmailNotificationEntity extends CommonEntity {
|
|
5
5
|
notification_id: number;
|
|
6
6
|
template_id: number;
|
|
7
|
-
|
|
7
|
+
filter_condition: any;
|
|
8
8
|
active: boolean;
|
|
9
9
|
attributes: EmailNotificationAttributesDto;
|
|
10
10
|
notification: NotificationEntity;
|
|
@@ -28,7 +28,7 @@ __decorate([
|
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, typeorm_1.Column)('json'),
|
|
30
30
|
__metadata("design:type", Object)
|
|
31
|
-
], EmailNotificationEntity.prototype, "
|
|
31
|
+
], EmailNotificationEntity.prototype, "filter_condition", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, typeorm_1.Column)(),
|
|
34
34
|
__metadata("design:type", Boolean)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email.notification.entity.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/email.notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA2F;AAC3F,qCAAgE;AAChE,iGAA2F;AAC3F,+DAA2D;AASpD,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,sCAAY;CAoBxD,CAAA;AApBY,0DAAuB;AAEhC;IADC,IAAA,gBAAM,GAAE;;gEACe;AAGxB;IADC,IAAA,gBAAM,GAAE;;4DACW;AAGpB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;
|
|
1
|
+
{"version":3,"file":"email.notification.entity.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/email.notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA2F;AAC3F,qCAAgE;AAChE,iGAA2F;AAC3F,+DAA2D;AASpD,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,sCAAY;CAoBxD,CAAA;AApBY,0DAAuB;AAEhC;IADC,IAAA,gBAAM,GAAE;;gEACe;AAGxB;IADC,IAAA,gBAAM,GAAE;;4DACW;AAGpB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;iEACO;AAGtB;IADC,IAAA,gBAAM,GAAE;;uDACO;AAGhB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,kEAA8B;2DAAC;AAGmC;IAA7E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wCAAkB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;8BAAe,wCAAkB;6DAAC;AAEpC;IAA1E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAmB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAmB;yDAAC;kCAnBhG,uBAAuB;IADnC,IAAA,gBAAM,EAAC,yBAAyB,CAAC;GACrB,uBAAuB,CAoBnC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CommonEntity } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { GchatNotificationAttributesDto } from '../dtos/gchat.notification.attributes.dto';
|
|
3
|
+
import { NotificationEntity } from './notification.entity';
|
|
4
|
+
import { GchatTemplateEntity } from '../../access/entities/gchat.template.entity';
|
|
5
|
+
export declare class GchatNotificationEntity extends CommonEntity {
|
|
6
|
+
notification_id: number;
|
|
7
|
+
template_id: number;
|
|
8
|
+
through_webhook: boolean;
|
|
9
|
+
filter_condition: any;
|
|
10
|
+
active: boolean;
|
|
11
|
+
attributes: GchatNotificationAttributesDto;
|
|
12
|
+
notification: NotificationEntity;
|
|
13
|
+
template: GchatTemplateEntity;
|
|
14
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.GchatNotificationEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
15
|
+
const gchat_notification_attributes_dto_1 = require("../dtos/gchat.notification.attributes.dto");
|
|
16
|
+
const notification_entity_1 = require("./notification.entity");
|
|
17
|
+
const gchat_template_entity_1 = require("../../access/entities/gchat.template.entity");
|
|
18
|
+
let GchatNotificationEntity = class GchatNotificationEntity extends nestjs_utility_services_1.CommonEntity {
|
|
19
|
+
};
|
|
20
|
+
exports.GchatNotificationEntity = GchatNotificationEntity;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], GchatNotificationEntity.prototype, "notification_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], GchatNotificationEntity.prototype, "template_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)(),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], GchatNotificationEntity.prototype, "through_webhook", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)('json'),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], GchatNotificationEntity.prototype, "filter_condition", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)(),
|
|
39
|
+
__metadata("design:type", Boolean)
|
|
40
|
+
], GchatNotificationEntity.prototype, "active", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)('json'),
|
|
43
|
+
__metadata("design:type", gchat_notification_attributes_dto_1.GchatNotificationAttributesDto)
|
|
44
|
+
], GchatNotificationEntity.prototype, "attributes", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.ManyToOne)(() => notification_entity_1.NotificationEntity),
|
|
47
|
+
(0, typeorm_1.JoinColumn)({ name: 'notification_id' }),
|
|
48
|
+
__metadata("design:type", notification_entity_1.NotificationEntity)
|
|
49
|
+
], GchatNotificationEntity.prototype, "notification", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.ManyToOne)(() => gchat_template_entity_1.GchatTemplateEntity),
|
|
52
|
+
(0, typeorm_1.JoinColumn)({ name: 'template_id' }),
|
|
53
|
+
__metadata("design:type", gchat_template_entity_1.GchatTemplateEntity)
|
|
54
|
+
], GchatNotificationEntity.prototype, "template", void 0);
|
|
55
|
+
exports.GchatNotificationEntity = GchatNotificationEntity = __decorate([
|
|
56
|
+
(0, typeorm_1.Entity)('utl_gchat_notifications')
|
|
57
|
+
], GchatNotificationEntity);
|
|
58
|
+
//# sourceMappingURL=gchat.notification.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gchat.notification.entity.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/gchat.notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,oFAAsE;AACtE,iGAA2F;AAC3F,+DAA2D;AAC3D,uFAAkF;AAS3E,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,sCAAY;CAwBxD,CAAA;AAxBY,0DAAuB;AAEhC;IADC,IAAA,gBAAM,GAAE;;gEACe;AAGxB;IADC,IAAA,gBAAM,GAAE;;4DACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;gEACgB;AAGzB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;iEACO;AAGtB;IADC,IAAA,gBAAM,GAAE;;uDACO;AAGhB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,kEAA8B;2DAAC;AAImC;IAA7E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wCAAkB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;8BAAe,wCAAkB;6DAAC;AAEpC;IAA1E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,2CAAmB;yDAAC;kCAvBhG,uBAAuB;IADnC,IAAA,gBAAM,EAAC,yBAAyB,CAAC;GACrB,uBAAuB,CAwBnC"}
|
|
@@ -4,7 +4,7 @@ import { NotificationEntity } from './notification.entity';
|
|
|
4
4
|
export declare class InappNotificationEntity extends CommonEntity {
|
|
5
5
|
notification_id: number;
|
|
6
6
|
body: string;
|
|
7
|
-
|
|
7
|
+
filter_condition: any;
|
|
8
8
|
context: any;
|
|
9
9
|
active: boolean;
|
|
10
10
|
attributes: InappNotificationAttributesDto;
|
|
@@ -28,7 +28,7 @@ __decorate([
|
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, typeorm_1.Column)('json'),
|
|
30
30
|
__metadata("design:type", Object)
|
|
31
|
-
], InappNotificationEntity.prototype, "
|
|
31
|
+
], InappNotificationEntity.prototype, "filter_condition", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, typeorm_1.Column)('json'),
|
|
34
34
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inapp.notification.entity.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/inapp.notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAsE;AACtE,qCAAgE;AAChE,iGAA2F;AAC3F,+DAA2D;AASpD,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,sCAAY;CAqBxD,CAAA;AArBY,0DAAuB;AAEhC;IADC,IAAA,gBAAM,GAAE;;gEACe;AAGxB;IADC,IAAA,gBAAM,GAAE;;qDACI;AAGb;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;
|
|
1
|
+
{"version":3,"file":"inapp.notification.entity.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/inapp.notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAsE;AACtE,qCAAgE;AAChE,iGAA2F;AAC3F,+DAA2D;AASpD,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,sCAAY;CAqBxD,CAAA;AArBY,0DAAuB;AAEhC;IADC,IAAA,gBAAM,GAAE;;gEACe;AAGxB;IADC,IAAA,gBAAM,GAAE;;qDACI;AAGb;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;iEACO;AAGtB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;wDACF;AAGb;IADC,IAAA,gBAAM,GAAE;;uDACO;AAGhB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,kEAA8B;2DAAC;AAGmC;IAA7E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wCAAkB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;8BAAe,wCAAkB;6DAAC;kCApBtG,uBAAuB;IADnC,IAAA,gBAAM,EAAC,yBAAyB,CAAC;GACrB,uBAAuB,CAqBnC"}
|
|
@@ -7,10 +7,12 @@ export * from './bulk.upload.item.entity';
|
|
|
7
7
|
export * from './bulk.upload.type.entity';
|
|
8
8
|
export * from './data.mapping.entity';
|
|
9
9
|
export * from './email.notification.entity';
|
|
10
|
+
export * from './gchat.notification.entity';
|
|
10
11
|
export * from './inapp.notification.entity';
|
|
11
12
|
export * from './listing.model.entity';
|
|
12
13
|
export * from './notification.entity';
|
|
13
14
|
export * from './notification.recipient.entity';
|
|
15
|
+
export * from './slack.notification.entity';
|
|
14
16
|
export * from './sms.notification.entity';
|
|
15
17
|
export * from './tag.assignment.entity';
|
|
16
18
|
export * from './upload.modification.entity';
|
|
@@ -23,10 +23,12 @@ __exportStar(require("./bulk.upload.item.entity"), exports);
|
|
|
23
23
|
__exportStar(require("./bulk.upload.type.entity"), exports);
|
|
24
24
|
__exportStar(require("./data.mapping.entity"), exports);
|
|
25
25
|
__exportStar(require("./email.notification.entity"), exports);
|
|
26
|
+
__exportStar(require("./gchat.notification.entity"), exports);
|
|
26
27
|
__exportStar(require("./inapp.notification.entity"), exports);
|
|
27
28
|
__exportStar(require("./listing.model.entity"), exports);
|
|
28
29
|
__exportStar(require("./notification.entity"), exports);
|
|
29
30
|
__exportStar(require("./notification.recipient.entity"), exports);
|
|
31
|
+
__exportStar(require("./slack.notification.entity"), exports);
|
|
30
32
|
__exportStar(require("./sms.notification.entity"), exports);
|
|
31
33
|
__exportStar(require("./tag.assignment.entity"), exports);
|
|
32
34
|
__exportStar(require("./upload.modification.entity"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,sEAAoD;AAAA,8DAA4C;AAAA,uDAAqC;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,wDAAsC;AAAA,8DAA4C;AAAA,8DAA4C;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,kEAAgD;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,+DAA6C;AAAA,2DAAyC;AAAA,iEAA8C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accessUtility/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,sEAAoD;AAAA,8DAA4C;AAAA,uDAAqC;AAAA,4DAA0C;AAAA,4DAA0C;AAAA,wDAAsC;AAAA,8DAA4C;AAAA,8DAA4C;AAAA,8DAA4C;AAAA,yDAAuC;AAAA,wDAAsC;AAAA,kEAAgD;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,+DAA6C;AAAA,2DAAyC;AAAA,iEAA8C"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { CommonEntity, ModelEntity, SystemScriptEntity } from '@servicelabsco/nestjs-utility-services';
|
|
2
2
|
import { NotificationAttributesDto } from '../dtos/notification.attributes.dto';
|
|
3
|
+
import { EmailNotificationEntity } from './email.notification.entity';
|
|
4
|
+
import { GchatNotificationEntity } from './gchat.notification.entity';
|
|
5
|
+
import { InappNotificationEntity } from './inapp.notification.entity';
|
|
6
|
+
import { SlackNotificationEntity } from './slack.notification.entity';
|
|
7
|
+
import { SmsNotificationEntity } from './sms.notification.entity';
|
|
8
|
+
import { WhatsappNotificationEntity } from './whatsapp.notification.entity';
|
|
3
9
|
export declare class NotificationEntity extends CommonEntity {
|
|
4
10
|
name: string;
|
|
5
11
|
identifier: string;
|
|
@@ -12,4 +18,10 @@ export declare class NotificationEntity extends CommonEntity {
|
|
|
12
18
|
attributes: NotificationAttributesDto;
|
|
13
19
|
model: ModelEntity;
|
|
14
20
|
modifier_script: SystemScriptEntity;
|
|
21
|
+
sms: SmsNotificationEntity[];
|
|
22
|
+
emails: EmailNotificationEntity[];
|
|
23
|
+
whatsapp: WhatsappNotificationEntity[];
|
|
24
|
+
slack: SlackNotificationEntity[];
|
|
25
|
+
gchat: GchatNotificationEntity[];
|
|
26
|
+
inapp: InappNotificationEntity[];
|
|
15
27
|
}
|