@servicelabsco/slabs-access-manager 2.0.14 → 2.0.17
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/AGENTS.md +41 -4
- package/CLAUDE.md +12 -4
- package/dist/access/commands/index.d.ts +1 -0
- package/dist/access/commands/index.js +1 -0
- package/dist/access/commands/index.js.map +1 -1
- package/dist/access/commands/mail.log.backfill.business.command.d.ts +6 -0
- package/dist/access/commands/mail.log.backfill.business.command.js +65 -0
- package/dist/access/commands/mail.log.backfill.business.command.js.map +1 -0
- package/dist/access/controllers/alias.mapping.controller.d.ts +16 -0
- package/dist/access/controllers/alias.mapping.controller.js +93 -0
- package/dist/access/controllers/alias.mapping.controller.js.map +1 -0
- package/dist/access/controllers/bulk.upload.controller.d.ts +1 -1
- package/dist/access/controllers/bulk.upload.controller.js +1 -1
- package/dist/access/controllers/bulk.upload.controller.js.map +1 -1
- package/dist/access/controllers/business.email.alias.controller.d.ts +9 -0
- package/dist/access/controllers/business.email.alias.controller.js +43 -0
- package/dist/access/controllers/business.email.alias.controller.js.map +1 -0
- package/dist/access/controllers/business.email.controller.d.ts +2 -1
- package/dist/access/controllers/business.email.controller.js +6 -3
- package/dist/access/controllers/business.email.controller.js.map +1 -1
- package/dist/access/controllers/business.property.controller.d.ts +12 -4
- package/dist/access/controllers/business.property.controller.js +74 -7
- package/dist/access/controllers/business.property.controller.js.map +1 -1
- package/dist/access/controllers/developer.menu.controller.js.map +1 -1
- package/dist/access/controllers/developer.notification.type.controller.d.ts +16 -0
- package/dist/access/controllers/developer.notification.type.controller.js +91 -0
- package/dist/access/controllers/developer.notification.type.controller.js.map +1 -0
- package/dist/access/controllers/emithook.controller.d.ts +14 -0
- package/dist/access/controllers/emithook.controller.js +56 -0
- package/dist/access/controllers/emithook.controller.js.map +1 -0
- package/dist/access/controllers/index.d.ts +7 -0
- package/dist/access/controllers/index.js +7 -0
- package/dist/access/controllers/index.js.map +1 -1
- package/dist/access/controllers/mail.log.controller.d.ts +20 -0
- package/dist/access/controllers/mail.log.controller.js +76 -0
- package/dist/access/controllers/mail.log.controller.js.map +1 -0
- package/dist/access/controllers/notification.type.preference.controller.d.ts +12 -0
- package/dist/access/controllers/notification.type.preference.controller.js +59 -0
- package/dist/access/controllers/notification.type.preference.controller.js.map +1 -0
- package/dist/access/controllers/user.notification.type.preference.controller.d.ts +10 -0
- package/dist/access/controllers/user.notification.type.preference.controller.js +54 -0
- package/dist/access/controllers/user.notification.type.preference.controller.js.map +1 -0
- package/dist/access/dtos/add.alias.mapping.dto.d.ts +7 -0
- package/dist/access/dtos/add.alias.mapping.dto.js +49 -0
- package/dist/access/dtos/add.alias.mapping.dto.js.map +1 -0
- package/dist/access/dtos/add.business.email.dto.d.ts +4 -0
- package/dist/access/dtos/add.business.email.dto.js +34 -0
- package/dist/access/dtos/add.business.email.dto.js.map +1 -0
- package/dist/access/dtos/add.business.property.dto.d.ts +1 -0
- package/dist/access/dtos/add.business.property.dto.js +8 -0
- package/dist/access/dtos/add.business.property.dto.js.map +1 -1
- package/dist/access/dtos/business.email.attributes.dto.d.ts +1 -0
- package/dist/access/dtos/business.email.attributes.dto.js +6 -0
- package/dist/access/dtos/business.email.attributes.dto.js.map +1 -1
- package/dist/access/dtos/business.notification.type.preference.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/business.notification.type.preference.attributes.dto.js +7 -0
- package/dist/access/dtos/business.notification.type.preference.attributes.dto.js.map +1 -0
- package/dist/access/dtos/business.property.identifier.param.dto.d.ts +3 -0
- package/dist/access/dtos/business.property.identifier.param.dto.js +25 -0
- package/dist/access/dtos/business.property.identifier.param.dto.js.map +1 -0
- package/dist/access/dtos/business.property.list.filter.dto.d.ts +4 -0
- package/dist/access/dtos/business.property.list.filter.dto.js +40 -0
- package/dist/access/dtos/business.property.list.filter.dto.js.map +1 -1
- package/dist/access/dtos/business.property.scope.dto.d.ts +3 -0
- package/dist/access/dtos/business.property.scope.dto.js +26 -0
- package/dist/access/dtos/business.property.scope.dto.js.map +1 -0
- package/dist/access/dtos/create.notification.type.dto.d.ts +14 -0
- package/dist/access/dtos/create.notification.type.dto.js +79 -0
- package/dist/access/dtos/create.notification.type.dto.js.map +1 -0
- package/dist/access/dtos/email.notification.payload.dto.d.ts +5 -0
- package/dist/access/dtos/email.notification.payload.dto.js.map +1 -1
- package/dist/access/dtos/emithook.envelope.dto.d.ts +38 -0
- package/dist/access/dtos/emithook.envelope.dto.js +16 -0
- package/dist/access/dtos/emithook.envelope.dto.js.map +1 -0
- package/dist/access/dtos/index.d.ts +15 -0
- package/dist/access/dtos/index.js +15 -0
- package/dist/access/dtos/index.js.map +1 -1
- package/dist/access/dtos/mail.log.content.query.dto.d.ts +4 -0
- package/dist/access/dtos/mail.log.content.query.dto.js +25 -0
- package/dist/access/dtos/mail.log.content.query.dto.js.map +1 -0
- package/dist/access/dtos/mail.log.list.filter.dto.d.ts +11 -0
- package/dist/access/dtos/mail.log.list.filter.dto.js +75 -0
- package/dist/access/dtos/mail.log.list.filter.dto.js.map +1 -0
- package/dist/access/dtos/notification.type.list.filter.dto.d.ts +7 -0
- package/dist/access/dtos/notification.type.list.filter.dto.js +45 -0
- package/dist/access/dtos/notification.type.list.filter.dto.js.map +1 -0
- package/dist/access/dtos/search.alias.mapping.dto.d.ts +7 -0
- package/dist/access/dtos/search.alias.mapping.dto.js +51 -0
- package/dist/access/dtos/search.alias.mapping.dto.js.map +1 -0
- package/dist/access/dtos/set.business.email.alias.dto.d.ts +3 -0
- package/dist/access/dtos/set.business.email.alias.dto.js +27 -0
- package/dist/access/dtos/set.business.email.alias.dto.js.map +1 -0
- package/dist/access/dtos/set.business.property.dto.d.ts +10 -0
- package/dist/access/dtos/set.business.property.dto.js +64 -0
- package/dist/access/dtos/set.business.property.dto.js.map +1 -0
- package/dist/access/dtos/set.notification.type.preference.dto.d.ts +5 -0
- package/dist/access/dtos/set.notification.type.preference.dto.js +34 -0
- package/dist/access/dtos/set.notification.type.preference.dto.js.map +1 -0
- package/dist/access/dtos/update.notification.type.dto.d.ts +13 -0
- package/dist/access/dtos/update.notification.type.dto.js +72 -0
- package/dist/access/dtos/update.notification.type.dto.js.map +1 -0
- package/dist/access/entities/access.mail.log.entity.d.ts +6 -0
- package/dist/access/entities/access.mail.log.entity.js +31 -0
- package/dist/access/entities/access.mail.log.entity.js.map +1 -0
- package/dist/access/entities/alias.mapping.entity.d.ts +11 -0
- package/dist/access/entities/alias.mapping.entity.js +51 -0
- package/dist/access/entities/alias.mapping.entity.js.map +1 -0
- package/dist/access/entities/business.email.entity.d.ts +1 -0
- package/dist/access/entities/business.email.entity.js +4 -0
- package/dist/access/entities/business.email.entity.js.map +1 -1
- package/dist/access/entities/business.notification.type.preference.entity.d.ts +13 -0
- package/dist/access/entities/business.notification.type.preference.entity.js +54 -0
- package/dist/access/entities/business.notification.type.preference.entity.js.map +1 -0
- package/dist/access/entities/index.d.ts +5 -0
- package/dist/access/entities/index.js +5 -0
- package/dist/access/entities/index.js.map +1 -1
- package/dist/access/entities/notification.type.entity.d.ts +16 -0
- package/dist/access/entities/notification.type.entity.js +63 -0
- package/dist/access/entities/notification.type.entity.js.map +1 -0
- package/dist/access/entities/user.notification.type.preference.entity.d.ts +15 -0
- package/dist/access/entities/user.notification.type.preference.entity.js +63 -0
- package/dist/access/entities/user.notification.type.preference.entity.js.map +1 -0
- package/dist/access/enums/business.email.type.enum.d.ts +3 -0
- package/dist/access/enums/business.email.type.enum.js +8 -0
- package/dist/access/enums/business.email.type.enum.js.map +1 -0
- package/dist/access/enums/index.d.ts +4 -0
- package/dist/access/enums/index.js +4 -0
- package/dist/access/enums/index.js.map +1 -1
- package/dist/access/enums/notification.channel.type.enum.d.ts +2 -1
- package/dist/access/enums/notification.channel.type.enum.js +1 -0
- package/dist/access/enums/notification.channel.type.enum.js.map +1 -1
- package/dist/access/enums/notification.suppression.reason.enum.d.ts +6 -0
- package/dist/access/enums/notification.suppression.reason.enum.js +11 -0
- package/dist/access/enums/notification.suppression.reason.enum.js.map +1 -0
- package/dist/access/enums/notification.type.audience.enum.d.ts +5 -0
- package/dist/access/enums/notification.type.audience.enum.js +10 -0
- package/dist/access/enums/notification.type.audience.enum.js.map +1 -0
- package/dist/access/enums/notification.type.control.enum.d.ts +4 -0
- package/dist/access/enums/notification.type.control.enum.js +9 -0
- package/dist/access/enums/notification.type.control.enum.js.map +1 -0
- package/dist/access/es6.classes.d.ts +61 -14
- package/dist/access/es6.classes.js +127 -1
- package/dist/access/es6.classes.js.map +1 -1
- package/dist/access/index.d.ts +1 -0
- package/dist/access/index.js +1 -0
- package/dist/access/index.js.map +1 -1
- package/dist/access/interfaces/alias.lookup.options.interface.d.ts +4 -0
- package/dist/access/interfaces/alias.lookup.options.interface.js +3 -0
- package/dist/access/interfaces/alias.lookup.options.interface.js.map +1 -0
- package/dist/access/interfaces/alias.mapping.input.interface.d.ts +7 -0
- package/dist/access/interfaces/alias.mapping.input.interface.js +3 -0
- package/dist/access/interfaces/alias.mapping.input.interface.js.map +1 -0
- package/dist/access/interfaces/alias.search.match.interface.d.ts +8 -0
- package/dist/access/interfaces/alias.search.match.interface.js +3 -0
- package/dist/access/interfaces/alias.search.match.interface.js.map +1 -0
- package/dist/access/interfaces/alias.search.query.interface.d.ts +7 -0
- package/dist/access/interfaces/alias.search.query.interface.js +3 -0
- package/dist/access/interfaces/alias.search.query.interface.js.map +1 -0
- package/dist/access/interfaces/business.email.alias.interface.d.ts +3 -0
- package/dist/access/interfaces/business.email.alias.interface.js +3 -0
- package/dist/access/interfaces/business.email.alias.interface.js.map +1 -0
- package/dist/access/interfaces/business.notification.type.preference.row.interface.d.ts +14 -0
- package/dist/access/interfaces/business.notification.type.preference.row.interface.js +3 -0
- package/dist/access/interfaces/business.notification.type.preference.row.interface.js.map +1 -0
- package/dist/access/interfaces/catalogued.notification.type.interface.d.ts +10 -0
- package/dist/access/interfaces/catalogued.notification.type.interface.js +3 -0
- package/dist/access/interfaces/catalogued.notification.type.interface.js.map +1 -0
- package/dist/access/interfaces/dropped.notification.recipient.interface.d.ts +5 -0
- package/dist/access/interfaces/dropped.notification.recipient.interface.js +3 -0
- package/dist/access/interfaces/dropped.notification.recipient.interface.js.map +1 -0
- package/dist/access/interfaces/emithook.email.body.interface.d.ts +24 -0
- package/dist/access/interfaces/emithook.email.body.interface.js +3 -0
- package/dist/access/interfaces/emithook.email.body.interface.js.map +1 -0
- package/dist/access/interfaces/emithook.email.status.event.interface.d.ts +23 -0
- package/dist/access/interfaces/emithook.email.status.event.interface.js +3 -0
- package/dist/access/interfaces/emithook.email.status.event.interface.js.map +1 -0
- package/dist/access/interfaces/emithook.template.email.request.interface.d.ts +15 -0
- package/dist/access/interfaces/emithook.template.email.request.interface.js +3 -0
- package/dist/access/interfaces/emithook.template.email.request.interface.js.map +1 -0
- package/dist/access/interfaces/emithook.template.email.result.interface.d.ts +6 -0
- package/dist/access/interfaces/emithook.template.email.result.interface.js +3 -0
- package/dist/access/interfaces/emithook.template.email.result.interface.js.map +1 -0
- package/dist/access/interfaces/inbound.email.message.interface.d.ts +31 -0
- package/dist/access/interfaces/inbound.email.message.interface.js +3 -0
- package/dist/access/interfaces/inbound.email.message.interface.js.map +1 -0
- package/dist/access/interfaces/index.d.ts +24 -0
- package/dist/access/interfaces/index.js +41 -0
- package/dist/access/interfaces/index.js.map +1 -0
- package/dist/access/interfaces/legacy.notification.preference.provider.interface.d.ts +5 -0
- package/dist/access/interfaces/legacy.notification.preference.provider.interface.js +3 -0
- package/dist/access/interfaces/legacy.notification.preference.provider.interface.js.map +1 -0
- package/dist/access/interfaces/notification.preference.request.interface.d.ts +9 -0
- package/dist/access/interfaces/notification.preference.request.interface.js +3 -0
- package/dist/access/interfaces/notification.preference.request.interface.js.map +1 -0
- package/dist/access/interfaces/notification.recipient.interface.d.ts +5 -0
- package/dist/access/interfaces/notification.recipient.interface.js +3 -0
- package/dist/access/interfaces/notification.recipient.interface.js.map +1 -0
- package/dist/access/interfaces/notification.send.identifiers.interface.d.ts +6 -0
- package/dist/access/interfaces/notification.send.identifiers.interface.js +3 -0
- package/dist/access/interfaces/notification.send.identifiers.interface.js.map +1 -0
- package/dist/access/interfaces/notification.send.recipient.interface.d.ts +5 -0
- package/dist/access/interfaces/notification.send.recipient.interface.js +3 -0
- package/dist/access/interfaces/notification.send.recipient.interface.js.map +1 -0
- package/dist/access/interfaces/notification.type.sources.interface.d.ts +5 -0
- package/dist/access/interfaces/notification.type.sources.interface.js +3 -0
- package/dist/access/interfaces/notification.type.sources.interface.js.map +1 -0
- package/dist/access/interfaces/notification.type.usage.interface.d.ts +12 -0
- package/dist/access/interfaces/notification.type.usage.interface.js +3 -0
- package/dist/access/interfaces/notification.type.usage.interface.js.map +1 -0
- package/dist/access/interfaces/resolve.notification.recipients.input.interface.d.ts +10 -0
- package/dist/access/interfaces/resolve.notification.recipients.input.interface.js +3 -0
- package/dist/access/interfaces/resolve.notification.recipients.input.interface.js.map +1 -0
- package/dist/access/interfaces/resolve.notification.recipients.result.interface.d.ts +10 -0
- package/dist/access/interfaces/resolve.notification.recipients.result.interface.js +3 -0
- package/dist/access/interfaces/resolve.notification.recipients.result.interface.js.map +1 -0
- package/dist/access/interfaces/send.emithook.template.email.options.interface.d.ts +18 -0
- package/dist/access/interfaces/send.emithook.template.email.options.interface.js +3 -0
- package/dist/access/interfaces/send.emithook.template.email.options.interface.js.map +1 -0
- package/dist/access/interfaces/user.notification.type.preference.row.interface.d.ts +11 -0
- package/dist/access/interfaces/user.notification.type.preference.row.interface.js +3 -0
- package/dist/access/interfaces/user.notification.type.preference.row.interface.js.map +1 -0
- package/dist/access/jobs/handle.emithook.email.job.d.ts +27 -0
- package/dist/access/jobs/handle.emithook.email.job.js +162 -0
- package/dist/access/jobs/handle.emithook.email.job.js.map +1 -0
- package/dist/access/jobs/handle.emithook.email.status.job.d.ts +8 -0
- package/dist/access/jobs/handle.emithook.email.status.job.js +31 -0
- package/dist/access/jobs/handle.emithook.email.status.job.js.map +1 -0
- package/dist/access/jobs/index.d.ts +5 -0
- package/dist/access/jobs/index.js +5 -0
- package/dist/access/jobs/index.js.map +1 -1
- package/dist/access/jobs/poll.emithook.email.inbox.job.d.ts +19 -0
- package/dist/access/jobs/poll.emithook.email.inbox.job.js +109 -0
- package/dist/access/jobs/poll.emithook.email.inbox.job.js.map +1 -0
- package/dist/access/jobs/poll.emithook.email.sqs.job.d.ts +22 -0
- package/dist/access/jobs/poll.emithook.email.sqs.job.js +91 -0
- package/dist/access/jobs/poll.emithook.email.sqs.job.js.map +1 -0
- package/dist/access/jobs/process.server.email.job.d.ts +1 -9
- package/dist/access/jobs/process.server.email.job.js +13 -105
- package/dist/access/jobs/process.server.email.job.js.map +1 -1
- package/dist/access/jobs/reconcile.emithook.email.status.job.d.ts +15 -0
- package/dist/access/jobs/reconcile.emithook.email.status.job.js +38 -0
- package/dist/access/jobs/reconcile.emithook.email.status.job.js.map +1 -0
- package/dist/access/libraries/apply.notification.preferences.d.ts +12 -0
- package/dist/access/libraries/apply.notification.preferences.js +51 -0
- package/dist/access/libraries/apply.notification.preferences.js.map +1 -0
- package/dist/access/libraries/delete.business.property.d.ts +7 -0
- package/dist/access/libraries/delete.business.property.js +18 -0
- package/dist/access/libraries/delete.business.property.js.map +1 -0
- package/dist/access/libraries/index.d.ts +19 -0
- package/dist/access/libraries/index.js +19 -0
- package/dist/access/libraries/index.js.map +1 -1
- package/dist/access/libraries/load.notification.preference.context.d.ts +10 -0
- package/dist/access/libraries/load.notification.preference.context.js +78 -0
- package/dist/access/libraries/load.notification.preference.context.js.map +1 -0
- package/dist/access/libraries/notification.type.catalogue.d.ts +12 -0
- package/dist/access/libraries/notification.type.catalogue.js +72 -0
- package/dist/access/libraries/notification.type.catalogue.js.map +1 -0
- package/dist/access/libraries/present.business.property.d.ts +4 -0
- package/dist/access/libraries/present.business.property.js +13 -0
- package/dist/access/libraries/present.business.property.js.map +1 -0
- package/dist/access/libraries/process.application.menu.js +6 -7
- package/dist/access/libraries/process.application.menu.js.map +1 -1
- package/dist/access/libraries/process.business.property.data.d.ts +6 -0
- package/dist/access/libraries/process.business.property.data.js +60 -20
- package/dist/access/libraries/process.business.property.data.js.map +1 -1
- package/dist/access/libraries/process.business.property.list.d.ts +4 -0
- package/dist/access/libraries/process.business.property.list.js +44 -5
- package/dist/access/libraries/process.business.property.list.js.map +1 -1
- package/dist/access/libraries/process.developer.menu.d.ts +2 -1
- package/dist/access/libraries/process.developer.menu.js +50 -20
- package/dist/access/libraries/process.developer.menu.js.map +1 -1
- package/dist/access/libraries/process.email.notification.d.ts +18 -3
- package/dist/access/libraries/process.email.notification.js +140 -3
- package/dist/access/libraries/process.email.notification.js.map +1 -1
- package/dist/access/libraries/process.emithook.email.status.d.ts +7 -0
- package/dist/access/libraries/process.emithook.email.status.js +40 -0
- package/dist/access/libraries/process.emithook.email.status.js.map +1 -0
- package/dist/access/libraries/process.inbound.email.message.d.ts +21 -0
- package/dist/access/libraries/process.inbound.email.message.js +129 -0
- package/dist/access/libraries/process.inbound.email.message.js.map +1 -0
- package/dist/access/libraries/process.mail.log.list.d.ts +25 -0
- package/dist/access/libraries/process.mail.log.list.js +90 -0
- package/dist/access/libraries/process.mail.log.list.js.map +1 -0
- package/dist/access/libraries/read.eml.attachments.d.ts +19 -0
- package/dist/access/libraries/read.eml.attachments.js +124 -0
- package/dist/access/libraries/read.eml.attachments.js.map +1 -0
- package/dist/access/libraries/reconcile.emithook.email.status.d.ts +17 -0
- package/dist/access/libraries/reconcile.emithook.email.status.js +82 -0
- package/dist/access/libraries/reconcile.emithook.email.status.js.map +1 -0
- package/dist/access/libraries/record.emithook.email.events.d.ts +15 -0
- package/dist/access/libraries/record.emithook.email.events.js +139 -0
- package/dist/access/libraries/record.emithook.email.events.js.map +1 -0
- package/dist/access/libraries/resolve.emithook.template.key.d.ts +8 -0
- package/dist/access/libraries/resolve.emithook.template.key.js +29 -0
- package/dist/access/libraries/resolve.emithook.template.key.js.map +1 -0
- package/dist/access/libraries/resolve.notification.recipients.d.ts +7 -0
- package/dist/access/libraries/resolve.notification.recipients.js +51 -0
- package/dist/access/libraries/resolve.notification.recipients.js.map +1 -0
- package/dist/access/libraries/sanitize.email.addresses.d.ts +3 -1
- package/dist/access/libraries/sanitize.email.addresses.js +3 -2
- package/dist/access/libraries/sanitize.email.addresses.js.map +1 -1
- package/dist/access/libraries/search.alias.mappings.d.ts +12 -0
- package/dist/access/libraries/search.alias.mappings.js +46 -0
- package/dist/access/libraries/search.alias.mappings.js.map +1 -0
- package/dist/access/libraries/send.email.notification.js +2 -0
- package/dist/access/libraries/send.email.notification.js.map +1 -1
- package/dist/access/libraries/send.emithook.template.email.d.ts +24 -0
- package/dist/access/libraries/send.emithook.template.email.js +188 -0
- package/dist/access/libraries/send.emithook.template.email.js.map +1 -0
- package/dist/access/libraries/set.alias.mapping.d.ts +12 -0
- package/dist/access/libraries/set.alias.mapping.js +81 -0
- package/dist/access/libraries/set.alias.mapping.js.map +1 -0
- package/dist/access/libraries/set.business.property.d.ts +8 -0
- package/dist/access/libraries/set.business.property.js +17 -0
- package/dist/access/libraries/set.business.property.js.map +1 -0
- package/dist/access/libraries/show.mail.log.content.d.ts +12 -0
- package/dist/access/libraries/show.mail.log.content.js +22 -0
- package/dist/access/libraries/show.mail.log.content.js.map +1 -0
- package/dist/access/libraries/show.mail.log.d.ts +6 -0
- package/dist/access/libraries/show.mail.log.js +20 -0
- package/dist/access/libraries/show.mail.log.js.map +1 -0
- package/dist/access/services/alias.mapping.service.d.ts +9 -0
- package/dist/access/services/alias.mapping.service.js +45 -0
- package/dist/access/services/alias.mapping.service.js.map +1 -0
- package/dist/access/services/business.email.alias.service.d.ts +5 -0
- package/dist/access/services/business.email.alias.service.js +35 -0
- package/dist/access/services/business.email.alias.service.js.map +1 -0
- package/dist/access/services/business.email.service.d.ts +5 -1
- package/dist/access/services/business.email.service.js +33 -2
- package/dist/access/services/business.email.service.js.map +1 -1
- package/dist/access/services/business.property.service.js +3 -1
- package/dist/access/services/business.property.service.js.map +1 -1
- package/dist/access/services/emithook.service.d.ts +36 -0
- package/dist/access/services/emithook.service.js +136 -0
- package/dist/access/services/emithook.service.js.map +1 -0
- package/dist/access/services/index.d.ts +7 -0
- package/dist/access/services/index.js +7 -0
- package/dist/access/services/index.js.map +1 -1
- package/dist/access/services/legacy.notification.preference.service.d.ts +8 -0
- package/dist/access/services/legacy.notification.preference.service.js +41 -0
- package/dist/access/services/legacy.notification.preference.service.js.map +1 -0
- package/dist/access/services/mail.log.access.service.d.ts +14 -0
- package/dist/access/services/mail.log.access.service.js +52 -0
- package/dist/access/services/mail.log.access.service.js.map +1 -0
- package/dist/access/services/notification.service.d.ts +2 -0
- package/dist/access/services/notification.service.js +19 -4
- package/dist/access/services/notification.service.js.map +1 -1
- package/dist/access/services/notification.type.preference.service.d.ts +25 -0
- package/dist/access/services/notification.type.preference.service.js +172 -0
- package/dist/access/services/notification.type.preference.service.js.map +1 -0
- package/dist/access/services/notification.type.service.d.ts +17 -0
- package/dist/access/services/notification.type.service.js +124 -0
- package/dist/access/services/notification.type.service.js.map +1 -0
- package/dist/access/services/send.email.service.d.ts +5 -1
- package/dist/access/services/send.email.service.js +9 -3
- package/dist/access/services/send.email.service.js.map +1 -1
- package/dist/accessUtility/controllers/bulk.definition.controller.d.ts +6 -2
- package/dist/accessUtility/controllers/bulk.definition.controller.js +26 -9
- package/dist/accessUtility/controllers/bulk.definition.controller.js.map +1 -1
- package/dist/accessUtility/dtos/bulk.definition.script.dto.d.ts +4 -0
- package/dist/accessUtility/dtos/bulk.definition.script.dto.js +30 -0
- package/dist/accessUtility/dtos/bulk.definition.script.dto.js.map +1 -0
- package/dist/accessUtility/dtos/index.d.ts +1 -0
- package/dist/accessUtility/dtos/index.js +1 -0
- package/dist/accessUtility/dtos/index.js.map +1 -1
- package/dist/accessUtility/es6.classes.d.ts +9 -7
- package/dist/accessUtility/es6.classes.js +12 -8
- package/dist/accessUtility/es6.classes.js.map +1 -1
- package/dist/accessUtility/jobs/analyse.bulk.upload.job.d.ts +1 -1
- package/dist/accessUtility/jobs/analyse.bulk.upload.job.js +1 -1
- package/dist/accessUtility/jobs/analyse.bulk.upload.job.js.map +1 -1
- package/dist/accessUtility/jobs/push.to.bulk.item.job.d.ts +2 -0
- package/dist/accessUtility/jobs/push.to.bulk.item.job.js +2 -0
- package/dist/accessUtility/jobs/push.to.bulk.item.job.js.map +1 -1
- package/dist/accessUtility/libraries/analyse.bulk.upload.d.ts +1 -1
- package/dist/accessUtility/libraries/index.d.ts +1 -1
- package/dist/accessUtility/libraries/index.js +1 -1
- package/dist/accessUtility/libraries/index.js.map +1 -1
- package/dist/accessUtility/libraries/process.bulk.definition.script.d.ts +9 -0
- package/dist/accessUtility/libraries/process.bulk.definition.script.js +43 -0
- package/dist/accessUtility/libraries/process.bulk.definition.script.js.map +1 -0
- package/dist/accessUtility/libraries/read.xls.file.d.ts +4 -1
- package/dist/accessUtility/libraries/read.xls.file.js +49 -10
- package/dist/accessUtility/libraries/read.xls.file.js.map +1 -1
- package/dist/accessUtility/services/index.d.ts +1 -0
- package/dist/accessUtility/services/index.js +1 -0
- package/dist/accessUtility/services/index.js.map +1 -1
- package/dist/accessUtility/{libraries → services}/match.bulk.upload.columns.d.ts +1 -1
- package/dist/accessUtility/{libraries → services}/match.bulk.upload.columns.js +4 -4
- package/dist/accessUtility/services/match.bulk.upload.columns.js.map +1 -0
- package/dist/migrations/1790855763155-CreateBzAliasMappingsTable.d.ts +8 -0
- package/dist/migrations/1790855763155-CreateBzAliasMappingsTable.js +37 -0
- package/dist/migrations/1790855763155-CreateBzAliasMappingsTable.js.map +1 -0
- package/dist/migrations/1792089460727-AddIdentifierBzBusinessEmailsTable.d.ts +5 -0
- package/dist/migrations/1792089460727-AddIdentifierBzBusinessEmailsTable.js +16 -0
- package/dist/migrations/1792089460727-AddIdentifierBzBusinessEmailsTable.js.map +1 -0
- package/dist/migrations/1792091262917-AddUniqueEmailIdentifierBzEmailMessagesTable.d.ts +8 -0
- package/dist/migrations/1792091262917-AddUniqueEmailIdentifierBzEmailMessagesTable.js +30 -0
- package/dist/migrations/1792091262917-AddUniqueEmailIdentifierBzEmailMessagesTable.js.map +1 -0
- package/dist/migrations/1792454400000-CreateSysNotificationTypesTable.d.ts +8 -0
- package/dist/migrations/1792454400000-CreateSysNotificationTypesTable.js +36 -0
- package/dist/migrations/1792454400000-CreateSysNotificationTypesTable.js.map +1 -0
- package/dist/migrations/1792454400001-CreateBzNotificationTypePreferencesTable.d.ts +8 -0
- package/dist/migrations/1792454400001-CreateBzNotificationTypePreferencesTable.js +31 -0
- package/dist/migrations/1792454400001-CreateBzNotificationTypePreferencesTable.js.map +1 -0
- package/dist/migrations/1792454400002-CreateBzUserNotificationTypePreferencesTable.d.ts +8 -0
- package/dist/migrations/1792454400002-CreateBzUserNotificationTypePreferencesTable.js +32 -0
- package/dist/migrations/1792454400002-CreateBzUserNotificationTypePreferencesTable.js.map +1 -0
- package/dist/migrations/1792454400003-AddSmsNotificationChannelDataSeederTable.d.ts +5 -0
- package/dist/migrations/1792454400003-AddSmsNotificationChannelDataSeederTable.js +21 -0
- package/dist/migrations/1792454400003-AddSmsNotificationChannelDataSeederTable.js.map +1 -0
- package/dist/migrations/1792532792345-AddBusinessIdSysMailLogsTable.d.ts +7 -0
- package/dist/migrations/1792532792345-AddBusinessIdSysMailLogsTable.js +20 -0
- package/dist/migrations/1792532792345-AddBusinessIdSysMailLogsTable.js.map +1 -0
- package/dist/migrations/1792573736107-AddEmithookIndexSysMailLogsTable.d.ts +5 -0
- package/dist/migrations/1792573736107-AddEmithookIndexSysMailLogsTable.js +14 -0
- package/dist/migrations/1792573736107-AddEmithookIndexSysMailLogsTable.js.map +1 -0
- package/package.json +1 -1
- package/dist/accessUtility/libraries/match.bulk.upload.columns.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poll.emithook.email.sqs.job.js","sourceRoot":"","sources":["../../../src/access/jobs/poll.emithook.email.sqs.job.ts"],"names":[],"mappings":";;;;;;;;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,KAAK,CAAC,cAAc,CAAC,QAAe;QACxC,MAAM,cAAc,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QACxE,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;QAEhE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,oBAAoB,IAAI,CAAC,QAAQ,qBAAqB,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC;IAClG,CAAC;CACJ,CAAA;AAxFY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;qCAW4B,sCAAY;QAChB,oCAAU;QACL,yCAAe;QACN,kDAAsB;QAChB,+DAA4B;GAdxE,uBAAuB,CAwFnC"}
|
|
@@ -9,13 +9,5 @@ export declare class ProcessServerEmailJob extends CommonJob {
|
|
|
9
9
|
protected noDuplicate: boolean;
|
|
10
10
|
constructor(queueService: QueueService, uploadService: UploadService, internalServerConnectService: InternalServerConnectService, syncEmailMessageMetricsJob: SyncEmailMessageMetricsJob);
|
|
11
11
|
handle(id: number): Promise<EmailMessageEntity>;
|
|
12
|
-
private
|
|
13
|
-
private setAttachments;
|
|
14
|
-
private setAttachment;
|
|
15
|
-
private setRecipients;
|
|
16
|
-
private getBody;
|
|
17
|
-
private getAttachment;
|
|
18
|
-
private getSenderId;
|
|
19
|
-
private getParentDetails;
|
|
20
|
-
private getMessageIdentifier;
|
|
12
|
+
private toInbound;
|
|
21
13
|
}
|
|
@@ -12,13 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.ProcessServerEmailJob = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
15
|
-
const typeorm_1 = require("typeorm");
|
|
16
15
|
const business_email_entity_1 = require("../entities/business.email.entity");
|
|
17
|
-
const
|
|
18
|
-
const email_message_entity_1 = require("../entities/email.message.entity");
|
|
19
|
-
const email_recipient_entity_1 = require("../entities/email.recipient.entity");
|
|
16
|
+
const process_inbound_email_message_1 = require("../libraries/process.inbound.email.message");
|
|
20
17
|
const sync_email_message_metrics_job_1 = require("./sync.email.message.metrics.job");
|
|
21
|
-
const PG_UNIQUE_VIOLATION = '23505';
|
|
22
18
|
let ProcessServerEmailJob = class ProcessServerEmailJob extends nestjs_utility_services_1.CommonJob {
|
|
23
19
|
constructor(queueService, uploadService, internalServerConnectService, syncEmailMessageMetricsJob) {
|
|
24
20
|
super('6dc279beaec1891635dab7b1c7e76be3');
|
|
@@ -36,106 +32,18 @@ let ProcessServerEmailJob = class ProcessServerEmailJob extends nestjs_utility_s
|
|
|
36
32
|
const email = await business_email_entity_1.BusinessEmailEntity.findOne({ where: { meta_server_id: data.email_id }, relations: ['business'] });
|
|
37
33
|
if (!email)
|
|
38
34
|
return null;
|
|
39
|
-
return this.
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
message.parent_id = parent?.parent_id || parent?.id || null;
|
|
52
|
-
try {
|
|
53
|
-
await message.save();
|
|
54
|
-
}
|
|
55
|
-
catch (e) {
|
|
56
|
-
if (e instanceof typeorm_1.QueryFailedError && e.driverError?.code === PG_UNIQUE_VIOLATION) {
|
|
57
|
-
const existing = await email_message_entity_1.EmailMessageEntity.findOne({
|
|
58
|
-
where: { email_id: email.id, identifier: payload.identifier, deleted_at: (0, typeorm_1.IsNull)() },
|
|
59
|
-
});
|
|
60
|
-
if (existing)
|
|
61
|
-
return existing;
|
|
62
|
-
}
|
|
63
|
-
throw e;
|
|
64
|
-
}
|
|
65
|
-
await this.setAttachments(email, message, payload.attachments);
|
|
66
|
-
await this.setRecipients(message, payload.recipients);
|
|
67
|
-
await this.syncEmailMessageMetricsJob.delayedDispatch(message.id);
|
|
68
|
-
return message;
|
|
69
|
-
}
|
|
70
|
-
async setAttachments(email, message, attachments) {
|
|
71
|
-
if (!Array.isArray(attachments))
|
|
72
|
-
return;
|
|
73
|
-
for (const attachment of attachments)
|
|
74
|
-
await this.setAttachment(email, message, attachment);
|
|
75
|
-
}
|
|
76
|
-
async setAttachment(email, message, attachment) {
|
|
77
|
-
try {
|
|
78
|
-
const url = await this.getAttachment(email, attachment);
|
|
79
|
-
const r = await email_attachment_entity_1.EmailAttachmentEntity.firstOrNew({ message_id: message.id, name: attachment.name });
|
|
80
|
-
r.url = url;
|
|
81
|
-
r.attributes = { ...r.attributes, size: attachment.size };
|
|
82
|
-
return r.save();
|
|
83
|
-
}
|
|
84
|
-
catch {
|
|
85
|
-
global.console.log('cannot find attachment url : ', attachment?.url);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
async setRecipients(message, recipients) {
|
|
89
|
-
const nodes = ['to', 'cc'];
|
|
90
|
-
for (const node of nodes) {
|
|
91
|
-
const records = recipients.to;
|
|
92
|
-
if (!Array.isArray(records))
|
|
93
|
-
continue;
|
|
94
|
-
for (const record of records) {
|
|
95
|
-
const r = await email_recipient_entity_1.EmailRecipientEntity.firstOrNew({ message_id: message.id, type: node, email: record.email });
|
|
96
|
-
r.attributes = { ...r.attributes, name: record.name };
|
|
97
|
-
await r.save();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
async getBody(email, url) {
|
|
102
|
-
const originalname = `${Date.now()}.${nestjs_utility_services_1.PlatformUtility.generateRandomAlpha(6).toLowerCase()}.emailBody.html`;
|
|
103
|
-
const file = { url, originalname };
|
|
104
|
-
const params = { folder: `business/${email.business.identifier}/email/body`, acl: 'private' };
|
|
105
|
-
return this.uploadService.upload(file, params);
|
|
106
|
-
}
|
|
107
|
-
async getAttachment(email, attachment) {
|
|
108
|
-
const file = { url: attachment.url, originalname: attachment.name };
|
|
109
|
-
const params = { folder: `business/${email.business.identifier}/email/attachments`, acl: 'private' };
|
|
110
|
-
return this.uploadService.upload(file, params);
|
|
111
|
-
}
|
|
112
|
-
async getSenderId(email) {
|
|
113
|
-
const user = await nestjs_utility_services_1.UserEntity.findOne({ where: { email } });
|
|
114
|
-
return user?.id || null;
|
|
115
|
-
}
|
|
116
|
-
async getParentDetails(message) {
|
|
117
|
-
let identifiers = [];
|
|
118
|
-
const { in_reply_to, references } = message.attributes;
|
|
119
|
-
if (in_reply_to)
|
|
120
|
-
identifiers.push(in_reply_to);
|
|
121
|
-
if (references?.length)
|
|
122
|
-
identifiers = identifiers.concat(references);
|
|
123
|
-
identifiers = identifiers.filter((item) => {
|
|
124
|
-
return item?.length && item;
|
|
125
|
-
});
|
|
126
|
-
if (!identifiers.length)
|
|
127
|
-
return;
|
|
128
|
-
for (const identifier of identifiers) {
|
|
129
|
-
const parent = await email_message_entity_1.EmailMessageEntity.findOne({ where: { email_id: message.email_id, tracking_identifier: identifier } });
|
|
130
|
-
if (parent)
|
|
131
|
-
return parent;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
getMessageIdentifier(payload) {
|
|
135
|
-
const { in_reply_to, references, message_id } = payload?.attributes || {};
|
|
136
|
-
if (!in_reply_to && references?.length === 1)
|
|
137
|
-
return references[0];
|
|
138
|
-
return message_id;
|
|
35
|
+
return new process_inbound_email_message_1.ProcessInboundEmailMessage(this.uploadService, this.syncEmailMessageMetricsJob).process(email, this.toInbound(data));
|
|
36
|
+
}
|
|
37
|
+
toInbound(data) {
|
|
38
|
+
return {
|
|
39
|
+
identifier: data.identifier,
|
|
40
|
+
from_email: data.from_email,
|
|
41
|
+
subject: data.subject,
|
|
42
|
+
body: { url: data.body },
|
|
43
|
+
recipients: data.recipients,
|
|
44
|
+
attachments: data.attachments,
|
|
45
|
+
attributes: data.attributes,
|
|
46
|
+
};
|
|
139
47
|
}
|
|
140
48
|
};
|
|
141
49
|
exports.ProcessServerEmailJob = ProcessServerEmailJob;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.server.email.job.js","sourceRoot":"","sources":["../../../src/access/jobs/process.server.email.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"process.server.email.job.js","sourceRoot":"","sources":["../../../src/access/jobs/process.server.email.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAA8H;AAE9H,6EAAwE;AAGxE,8FAAwF;AACxF,qFAA8E;AAOvE,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,mCAAS;IAGhD,YACuB,YAA0B,EAC5B,aAA4B,EAC1B,4BAA0D,EAC5D,0BAAsD;QAEvE,KAAK,CAAC,kCAAkC,CAAC,CAAC;QALvB,iBAAY,GAAZ,YAAY,CAAc;QAC5B,kBAAa,GAAb,aAAa,CAAe;QAC1B,iCAA4B,GAA5B,4BAA4B,CAA8B;QAC5D,+BAA0B,GAA1B,0BAA0B,CAA4B;QANjE,gBAAW,GAAG,IAAI,CAAC;IAS7B,CAAC;IAOD,KAAK,CAAC,MAAM,CAAC,EAAU;QACnB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,4BAA4B,CAAC,GAAG,CAAC,MAAM,EAAE,iBAAiB,EAAE,EAAE,CAAC,CAAC;QAE5F,MAAM,IAAI,GAA0B,QAAQ,EAAE,IAAI,CAAC;QACnD,IAAI,CAAC,IAAI,EAAE,QAAQ;YAAE,OAAO,IAAI,CAAC;QAEjC,MAAM,KAAK,GAAG,MAAM,2CAAmB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QAEvH,IAAI,CAAC,KAAK;YAAE,OAAO,IAAI,CAAC;QAExB,OAAO,IAAI,0DAA0B,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IACpI,CAAC;IAMO,SAAS,CAAC,IAA2B;QACzC,OAAO;YACH,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,IAAI,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE;YACxB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,UAAU,EAAE,IAAI,CAAC,UAAU;SAC9B,CAAC;IACN,CAAC;CACJ,CAAA;AA7CY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;qCAK4B,sCAAY;QACb,uCAAa;QACI,sDAA4B;QAChC,2DAA0B;GAPlE,qBAAqB,CA6CjC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CommonJob, QueueService, SqlService } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { EmithookService } from '../services/emithook.service';
|
|
3
|
+
export declare class ReconcileEmithookEmailStatusJob extends CommonJob {
|
|
4
|
+
protected readonly queueService: QueueService;
|
|
5
|
+
private readonly sqlService;
|
|
6
|
+
private readonly emithookService;
|
|
7
|
+
protected noDuplicate: boolean;
|
|
8
|
+
protected priority: number;
|
|
9
|
+
protected timeout: number;
|
|
10
|
+
constructor(queueService: QueueService, sqlService: SqlService, emithookService: EmithookService);
|
|
11
|
+
handle(): Promise<{
|
|
12
|
+
checked: number;
|
|
13
|
+
failed: number;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.ReconcileEmithookEmailStatusJob = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
15
|
+
const reconcile_emithook_email_status_1 = require("../libraries/reconcile.emithook.email.status");
|
|
16
|
+
const emithook_service_1 = require("../services/emithook.service");
|
|
17
|
+
let ReconcileEmithookEmailStatusJob = class ReconcileEmithookEmailStatusJob extends nestjs_utility_services_1.CommonJob {
|
|
18
|
+
constructor(queueService, sqlService, emithookService) {
|
|
19
|
+
super('f916349a2c0dd2a19047bb0130305ead');
|
|
20
|
+
this.queueService = queueService;
|
|
21
|
+
this.sqlService = sqlService;
|
|
22
|
+
this.emithookService = emithookService;
|
|
23
|
+
this.noDuplicate = true;
|
|
24
|
+
this.priority = 10;
|
|
25
|
+
this.timeout = 600000;
|
|
26
|
+
}
|
|
27
|
+
async handle() {
|
|
28
|
+
return new reconcile_emithook_email_status_1.ReconcileEmithookEmailStatus(this.sqlService, this.emithookService).process();
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.ReconcileEmithookEmailStatusJob = ReconcileEmithookEmailStatusJob;
|
|
32
|
+
exports.ReconcileEmithookEmailStatusJob = ReconcileEmithookEmailStatusJob = __decorate([
|
|
33
|
+
(0, common_1.Injectable)(),
|
|
34
|
+
__metadata("design:paramtypes", [nestjs_utility_services_1.QueueService,
|
|
35
|
+
nestjs_utility_services_1.SqlService,
|
|
36
|
+
emithook_service_1.EmithookService])
|
|
37
|
+
], ReconcileEmithookEmailStatusJob);
|
|
38
|
+
//# sourceMappingURL=reconcile.emithook.email.status.job.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconcile.emithook.email.status.job.js","sourceRoot":"","sources":["../../../src/access/jobs/reconcile.emithook.email.status.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAA6F;AAC7F,kGAA4F;AAC5F,mEAA+D;AAQxD,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,mCAAS;IAK1D,YACuB,YAA0B,EAC5B,UAAsB,EACtB,eAAgC;QAEjD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAJvB,iBAAY,GAAZ,YAAY,CAAc;QAC5B,eAAU,GAAV,UAAU,CAAY;QACtB,oBAAe,GAAf,eAAe,CAAiB;QAP3C,gBAAW,GAAG,IAAI,CAAC;QACnB,aAAQ,GAAG,EAAE,CAAC;QACd,YAAO,GAAW,MAAM,CAAC;IAQnC,CAAC;IAKD,KAAK,CAAC,MAAM;QACR,OAAO,IAAI,8DAA4B,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC,OAAO,EAAE,CAAC;IAC7F,CAAC;CACJ,CAAA;AAnBY,0EAA+B;0CAA/B,+BAA+B;IAD3C,IAAA,mBAAU,GAAE;qCAO4B,sCAAY;QAChB,oCAAU;QACL,kCAAe;GAR5C,+BAA+B,CAmB3C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NotificationChannelTypeEnum } from '../enums/notification.channel.type.enum';
|
|
2
|
+
import { NotificationPreferenceRequestInterface } from '../interfaces/notification.preference.request.interface';
|
|
3
|
+
import { NotificationSendIdentifiersInterface } from '../interfaces/notification.send.identifiers.interface';
|
|
4
|
+
import { ResolveNotificationRecipientsResultInterface } from '../interfaces/resolve.notification.recipients.result.interface';
|
|
5
|
+
export declare class ApplyNotificationPreferences {
|
|
6
|
+
static readonly UNCATALOGUED_LOG_INTERVAL: number;
|
|
7
|
+
private static uncataloguedLoggedAt;
|
|
8
|
+
static clearUncataloguedLog(): void;
|
|
9
|
+
process(request: NotificationPreferenceRequestInterface): Promise<ResolveNotificationRecipientsResultInterface>;
|
|
10
|
+
allowedUserIds(identifiers: NotificationSendIdentifiersInterface, channel: NotificationChannelTypeEnum, businessId: number | null, userIds: number[]): Promise<number[]>;
|
|
11
|
+
private logUncatalogued;
|
|
12
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApplyNotificationPreferences = void 0;
|
|
4
|
+
const load_notification_preference_context_1 = require("./load.notification.preference.context");
|
|
5
|
+
const resolve_notification_recipients_1 = require("./resolve.notification.recipients");
|
|
6
|
+
class ApplyNotificationPreferences {
|
|
7
|
+
static clearUncataloguedLog() {
|
|
8
|
+
ApplyNotificationPreferences.uncataloguedLoggedAt.clear();
|
|
9
|
+
}
|
|
10
|
+
async process(request) {
|
|
11
|
+
try {
|
|
12
|
+
const context = await new load_notification_preference_context_1.LoadNotificationPreferenceContext().process(request);
|
|
13
|
+
if (!context.type)
|
|
14
|
+
this.logUncatalogued(request);
|
|
15
|
+
return new resolve_notification_recipients_1.ResolveNotificationRecipients().process(context);
|
|
16
|
+
}
|
|
17
|
+
catch (error) {
|
|
18
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
19
|
+
global.console.error(`Notification preference check failed, sending as before: ${message}`);
|
|
20
|
+
const recipients = (request.recipients || []).map((r) => ({ address: r.address, role: r.role, user_ids: r.user_id ? [r.user_id] : [] }));
|
|
21
|
+
return { send: true, recipients, dropped: [] };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
async allowedUserIds(identifiers, channel, businessId, userIds) {
|
|
25
|
+
if (!userIds?.length)
|
|
26
|
+
return userIds || [];
|
|
27
|
+
const recipients = userIds.map((id) => ({ address: `user:${id}`, role: 'to', user_id: id }));
|
|
28
|
+
const result = await this.process({ identifiers, channel, business_id: businessId, recipients });
|
|
29
|
+
if (!result.send)
|
|
30
|
+
return [];
|
|
31
|
+
const allowed = new Set(result.recipients.map((r) => r.address));
|
|
32
|
+
return userIds.filter((id) => allowed.has(`user:${id}`));
|
|
33
|
+
}
|
|
34
|
+
logUncatalogued(request) {
|
|
35
|
+
const { type, notification, email_template, email_notification } = request.identifiers || {};
|
|
36
|
+
const identifier = type || notification || email_template || email_notification;
|
|
37
|
+
if (!identifier)
|
|
38
|
+
return;
|
|
39
|
+
const key = `${request.channel}:${identifier}`;
|
|
40
|
+
const now = Date.now();
|
|
41
|
+
const last = ApplyNotificationPreferences.uncataloguedLoggedAt.get(key) || 0;
|
|
42
|
+
if (now - last < ApplyNotificationPreferences.UNCATALOGUED_LOG_INTERVAL)
|
|
43
|
+
return;
|
|
44
|
+
ApplyNotificationPreferences.uncataloguedLoggedAt.set(key, now);
|
|
45
|
+
global.console.log(`Notification preference check: uncatalogued ${key}`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.ApplyNotificationPreferences = ApplyNotificationPreferences;
|
|
49
|
+
ApplyNotificationPreferences.UNCATALOGUED_LOG_INTERVAL = 60 * 60 * 1000;
|
|
50
|
+
ApplyNotificationPreferences.uncataloguedLoggedAt = new Map();
|
|
51
|
+
//# sourceMappingURL=apply.notification.preferences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply.notification.preferences.js","sourceRoot":"","sources":["../../../src/access/libraries/apply.notification.preferences.ts"],"names":[],"mappings":";;;AAIA,iGAA2F;AAC3F,uFAAkF;AAQlF,MAAa,4BAA4B;IAQrC,MAAM,CAAC,oBAAoB;QACvB,4BAA4B,CAA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C;QAChE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,+CAA+C,GAAG,EAAE,CAAC,CAAC;IAC7E,CAAC;;AA1EL,oEA2EC;AAzEmB,sDAAyB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAG5C,iDAAoB,GAAG,IAAI,GAAG,EAAkB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AccessBusinessEntity } from '../entities/access.business.entity';
|
|
2
|
+
import { BusinessPropertyEntity } from '../entities/business.property.entity';
|
|
3
|
+
export declare class DeleteBusinessProperty {
|
|
4
|
+
private readonly business;
|
|
5
|
+
constructor(business: AccessBusinessEntity);
|
|
6
|
+
process(id: number): Promise<BusinessPropertyEntity>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteBusinessProperty = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
const business_property_entity_1 = require("../entities/business.property.entity");
|
|
6
|
+
class DeleteBusinessProperty {
|
|
7
|
+
constructor(business) {
|
|
8
|
+
this.business = business;
|
|
9
|
+
}
|
|
10
|
+
async process(id) {
|
|
11
|
+
const property = await business_property_entity_1.BusinessPropertyEntity.findOne({ where: { id, business_id: this.business.id } });
|
|
12
|
+
if (!property)
|
|
13
|
+
throw new nestjs_utility_services_1.AccessException();
|
|
14
|
+
return property.softDelete();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.DeleteBusinessProperty = DeleteBusinessProperty;
|
|
18
|
+
//# sourceMappingURL=delete.business.property.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.business.property.js","sourceRoot":"","sources":["../../../src/access/libraries/delete.business.property.ts"],"names":[],"mappings":";;;AAAA,oFAAyE;AAEzE,mFAA8E;AAM9E,MAAa,sBAAsB;IAC/B,YAA6B,QAA8B;QAA9B,aAAQ,GAAR,QAAQ,CAAsB;IAAG,CAAC;IAO/D,KAAK,CAAC,OAAO,CAAC,EAAU;QACpB,MAAM,QAAQ,GAAG,MAAM,iDAAsB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACxG,IAAI,CAAC,QAAQ;YAAE,MAAM,IAAI,yCAAe,EAAE,CAAC;QAE3C,OAAO,QAAQ,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC;CACJ;AAdD,wDAcC"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
export * from './apply.menu.layout';
|
|
2
|
+
export * from './apply.notification.preferences';
|
|
2
3
|
export * from './assert.safe.sql.fragment';
|
|
3
4
|
export * from './business.ui.action.availability';
|
|
4
5
|
export * from './common.tag.controller';
|
|
5
6
|
export * from './conversation.controller';
|
|
6
7
|
export * from './create.user.business.secret';
|
|
7
8
|
export * from './date.fn';
|
|
9
|
+
export * from './delete.business.property';
|
|
8
10
|
export * from './evaluate.email.rule';
|
|
9
11
|
export * from './execute.business.script';
|
|
10
12
|
export * from './extract.client.credentials';
|
|
13
|
+
export * from './load.notification.preference.context';
|
|
14
|
+
export * from './notification.type.catalogue';
|
|
11
15
|
export * from './oauth.pkce';
|
|
16
|
+
export * from './present.business.property';
|
|
12
17
|
export * from './process.amazon.integration';
|
|
13
18
|
export * from './process.api.account.data';
|
|
14
19
|
export * from './process.api.account.list';
|
|
@@ -56,6 +61,7 @@ export * from './process.downloadable.reports.list';
|
|
|
56
61
|
export * from './process.email.notification';
|
|
57
62
|
export * from './process.email.rule.data';
|
|
58
63
|
export * from './process.email.rule.list';
|
|
64
|
+
export * from './process.emithook.email.status';
|
|
59
65
|
export * from './process.event.trigger.data';
|
|
60
66
|
export * from './process.event.trigger.list';
|
|
61
67
|
export * from './process.event.trigger.log.list';
|
|
@@ -69,6 +75,7 @@ export * from './process.group.member.updation';
|
|
|
69
75
|
export * from './process.group.role.list';
|
|
70
76
|
export * from './process.gst.mapping.data';
|
|
71
77
|
export * from './process.gst.mapping.list';
|
|
78
|
+
export * from './process.inbound.email.message';
|
|
72
79
|
export * from './process.internal.notification';
|
|
73
80
|
export * from './process.listing.csv.file';
|
|
74
81
|
export * from './process.listing.order';
|
|
@@ -76,6 +83,7 @@ export * from './process.listing.page.creation';
|
|
|
76
83
|
export * from './process.listing.page.query';
|
|
77
84
|
export * from './process.lock.script.data';
|
|
78
85
|
export * from './process.lock.script.list';
|
|
86
|
+
export * from './process.mail.log.list';
|
|
79
87
|
export * from './process.menu.creation';
|
|
80
88
|
export * from './process.menu.details';
|
|
81
89
|
export * from './process.module.creation';
|
|
@@ -99,12 +107,19 @@ export * from './process.user.notification.list';
|
|
|
99
107
|
export * from './process.whatsapp.integration';
|
|
100
108
|
export * from './process.whatsapp.message';
|
|
101
109
|
export * from './process.zoho.integration';
|
|
110
|
+
export * from './read.eml.attachments';
|
|
111
|
+
export * from './reconcile.emithook.email.status';
|
|
112
|
+
export * from './record.emithook.email.events';
|
|
102
113
|
export * from './report.view.enablement';
|
|
103
114
|
export * from './report.view.query.compiler';
|
|
104
115
|
export * from './resolve.client.ip';
|
|
116
|
+
export * from './resolve.emithook.template.key';
|
|
117
|
+
export * from './resolve.notification.recipients';
|
|
105
118
|
export * from './sanitize.email.addresses';
|
|
119
|
+
export * from './search.alias.mappings';
|
|
106
120
|
export * from './search.developer.businesses';
|
|
107
121
|
export * from './send.email.notification';
|
|
122
|
+
export * from './send.emithook.template.email';
|
|
108
123
|
export * from './send.fcm.notification';
|
|
109
124
|
export * from './send.gchat.message.notification';
|
|
110
125
|
export * from './send.gchat.webhook.notification';
|
|
@@ -112,7 +127,11 @@ export * from './send.slack.message.notification';
|
|
|
112
127
|
export * from './send.slack.webhook.notification.';
|
|
113
128
|
export * from './send.webhook.request';
|
|
114
129
|
export * from './send.whatsapp.message.notification';
|
|
130
|
+
export * from './set.alias.mapping';
|
|
131
|
+
export * from './set.business.property';
|
|
115
132
|
export * from './set.fcm.token';
|
|
133
|
+
export * from './show.mail.log.content';
|
|
134
|
+
export * from './show.mail.log';
|
|
116
135
|
export * from './sync.business.user.role';
|
|
117
136
|
export * from './ui.action.businesses';
|
|
118
137
|
export * from './user.secret.view';
|
|
@@ -15,16 +15,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./apply.menu.layout"), exports);
|
|
18
|
+
__exportStar(require("./apply.notification.preferences"), exports);
|
|
18
19
|
__exportStar(require("./assert.safe.sql.fragment"), exports);
|
|
19
20
|
__exportStar(require("./business.ui.action.availability"), exports);
|
|
20
21
|
__exportStar(require("./common.tag.controller"), exports);
|
|
21
22
|
__exportStar(require("./conversation.controller"), exports);
|
|
22
23
|
__exportStar(require("./create.user.business.secret"), exports);
|
|
23
24
|
__exportStar(require("./date.fn"), exports);
|
|
25
|
+
__exportStar(require("./delete.business.property"), exports);
|
|
24
26
|
__exportStar(require("./evaluate.email.rule"), exports);
|
|
25
27
|
__exportStar(require("./execute.business.script"), exports);
|
|
26
28
|
__exportStar(require("./extract.client.credentials"), exports);
|
|
29
|
+
__exportStar(require("./load.notification.preference.context"), exports);
|
|
30
|
+
__exportStar(require("./notification.type.catalogue"), exports);
|
|
27
31
|
__exportStar(require("./oauth.pkce"), exports);
|
|
32
|
+
__exportStar(require("./present.business.property"), exports);
|
|
28
33
|
__exportStar(require("./process.amazon.integration"), exports);
|
|
29
34
|
__exportStar(require("./process.api.account.data"), exports);
|
|
30
35
|
__exportStar(require("./process.api.account.list"), exports);
|
|
@@ -72,6 +77,7 @@ __exportStar(require("./process.downloadable.reports.list"), exports);
|
|
|
72
77
|
__exportStar(require("./process.email.notification"), exports);
|
|
73
78
|
__exportStar(require("./process.email.rule.data"), exports);
|
|
74
79
|
__exportStar(require("./process.email.rule.list"), exports);
|
|
80
|
+
__exportStar(require("./process.emithook.email.status"), exports);
|
|
75
81
|
__exportStar(require("./process.event.trigger.data"), exports);
|
|
76
82
|
__exportStar(require("./process.event.trigger.list"), exports);
|
|
77
83
|
__exportStar(require("./process.event.trigger.log.list"), exports);
|
|
@@ -85,6 +91,7 @@ __exportStar(require("./process.group.member.updation"), exports);
|
|
|
85
91
|
__exportStar(require("./process.group.role.list"), exports);
|
|
86
92
|
__exportStar(require("./process.gst.mapping.data"), exports);
|
|
87
93
|
__exportStar(require("./process.gst.mapping.list"), exports);
|
|
94
|
+
__exportStar(require("./process.inbound.email.message"), exports);
|
|
88
95
|
__exportStar(require("./process.internal.notification"), exports);
|
|
89
96
|
__exportStar(require("./process.listing.csv.file"), exports);
|
|
90
97
|
__exportStar(require("./process.listing.order"), exports);
|
|
@@ -92,6 +99,7 @@ __exportStar(require("./process.listing.page.creation"), exports);
|
|
|
92
99
|
__exportStar(require("./process.listing.page.query"), exports);
|
|
93
100
|
__exportStar(require("./process.lock.script.data"), exports);
|
|
94
101
|
__exportStar(require("./process.lock.script.list"), exports);
|
|
102
|
+
__exportStar(require("./process.mail.log.list"), exports);
|
|
95
103
|
__exportStar(require("./process.menu.creation"), exports);
|
|
96
104
|
__exportStar(require("./process.menu.details"), exports);
|
|
97
105
|
__exportStar(require("./process.module.creation"), exports);
|
|
@@ -115,12 +123,19 @@ __exportStar(require("./process.user.notification.list"), exports);
|
|
|
115
123
|
__exportStar(require("./process.whatsapp.integration"), exports);
|
|
116
124
|
__exportStar(require("./process.whatsapp.message"), exports);
|
|
117
125
|
__exportStar(require("./process.zoho.integration"), exports);
|
|
126
|
+
__exportStar(require("./read.eml.attachments"), exports);
|
|
127
|
+
__exportStar(require("./reconcile.emithook.email.status"), exports);
|
|
128
|
+
__exportStar(require("./record.emithook.email.events"), exports);
|
|
118
129
|
__exportStar(require("./report.view.enablement"), exports);
|
|
119
130
|
__exportStar(require("./report.view.query.compiler"), exports);
|
|
120
131
|
__exportStar(require("./resolve.client.ip"), exports);
|
|
132
|
+
__exportStar(require("./resolve.emithook.template.key"), exports);
|
|
133
|
+
__exportStar(require("./resolve.notification.recipients"), exports);
|
|
121
134
|
__exportStar(require("./sanitize.email.addresses"), exports);
|
|
135
|
+
__exportStar(require("./search.alias.mappings"), exports);
|
|
122
136
|
__exportStar(require("./search.developer.businesses"), exports);
|
|
123
137
|
__exportStar(require("./send.email.notification"), exports);
|
|
138
|
+
__exportStar(require("./send.emithook.template.email"), exports);
|
|
124
139
|
__exportStar(require("./send.fcm.notification"), exports);
|
|
125
140
|
__exportStar(require("./send.gchat.message.notification"), exports);
|
|
126
141
|
__exportStar(require("./send.gchat.webhook.notification"), exports);
|
|
@@ -128,7 +143,11 @@ __exportStar(require("./send.slack.message.notification"), exports);
|
|
|
128
143
|
__exportStar(require("./send.slack.webhook.notification."), exports);
|
|
129
144
|
__exportStar(require("./send.webhook.request"), exports);
|
|
130
145
|
__exportStar(require("./send.whatsapp.message.notification"), exports);
|
|
146
|
+
__exportStar(require("./set.alias.mapping"), exports);
|
|
147
|
+
__exportStar(require("./set.business.property"), exports);
|
|
131
148
|
__exportStar(require("./set.fcm.token"), exports);
|
|
149
|
+
__exportStar(require("./show.mail.log.content"), exports);
|
|
150
|
+
__exportStar(require("./show.mail.log"), exports);
|
|
132
151
|
__exportStar(require("./sync.business.user.role"), exports);
|
|
133
152
|
__exportStar(require("./ui.action.businesses"), exports);
|
|
134
153
|
__exportStar(require("./user.secret.view"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/libraries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,sDAAoC;AACpC,6DAA2C;AAC3C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,gEAA8C;AAC9C,4CAA0B;AAC1B,wDAAsC;AACtC,4DAA0C;AAC1C,+DAA6C;AAC7C,+CAA6B;AA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D;AAChD,8DAA4C;AAC5C,0DAAwC;AACxC,sDAAoC;AACpC,gEAA8C;AAC9C,mEAAiD;AACjD,iEAA+C;AAC/C,6DAA2C;AAC3C,6DAA2C;AAC3C,2DAAyC;AACzC,+DAA6C;AAC7C,sDAAoC;AACpC,6DAA2C;AAC3C,gEAA8C;AAC9C,4DAA0C;AAC1C,0DAAwC;AACxC,oEAAkD;AAClD,oEAAkD;AAClD,oEAAkD;AAClD,qEAAmD;AACnD,yDAAuC;AACvC,uEAAqD;AACrD,kDAAgC;AAChC,4DAA0C;AAC1C,yDAAuC;AACvC,qDAAmC;AACnC,+DAA6C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/libraries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,sDAAoC;AACpC,mEAAiD;AACjD,6DAA2C;AAC3C,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,gEAA8C;AAC9C,4CAA0B;AAC1B,6DAA2C;AAC3C,wDAAsC;AACtC,4DAA0C;AAC1C,+DAA6C;AAC7C,yEAAuD;AACvD,gEAA8C;AAC9C,+CAA6B;AAC7B,8DAA4C;AAC5C,+DAA6C;AAC7C,6DAA2C;AAC3C,6DAA2C;AAC3C,4DAA0C;AAC1C,6DAA2C;AAC3C,kEAAgD;AAChD,6DAA2C;AAC3C,mEAAiD;AACjD,gEAA8C;AAC9C,sEAAoD;AACpD,sEAAoD;AACpD,yEAAuD;AACvD,0FAAwE;AACxE,mEAAiD;AACjD,mEAAiD;AACjD,iEAA+C;AAC/C,qEAAmD;AACnD,iEAA+C;AAC/C,iEAA+C;AAC/C,+DAA6C;AAC7C,qEAAmD;AACnD,uFAAqE;AACrE,sEAAoD;AACpD,6DAA2C;AAC3C,6DAA2C;AAC3C,6DAA2C;AAC3C,6DAA2C;AAC3C,gEAA8C;AAC9C,gEAA8C;AAC9C,wDAAsC;AACtC,8DAA4C;AAC5C,uEAAqD;AACrD,+DAA6C;AA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DAAgC;AAChC,0DAAwC;AACxC,kDAAgC;AAChC,4DAA0C;AAC1C,yDAAuC;AACvC,qDAAmC;AACnC,+DAA6C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NotificationPreferenceRequestInterface } from '../interfaces/notification.preference.request.interface';
|
|
2
|
+
import { ResolveNotificationRecipientsInputInterface } from '../interfaces/resolve.notification.recipients.input.interface';
|
|
3
|
+
export declare class LoadNotificationPreferenceContext {
|
|
4
|
+
process(request: NotificationPreferenceRequestInterface): Promise<ResolveNotificationRecipientsInputInterface>;
|
|
5
|
+
private isConfigurable;
|
|
6
|
+
private knownRecipients;
|
|
7
|
+
private getBusinessActive;
|
|
8
|
+
private matchUsers;
|
|
9
|
+
private getUserOptOuts;
|
|
10
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LoadNotificationPreferenceContext = void 0;
|
|
4
|
+
const typeorm_1 = require("typeorm");
|
|
5
|
+
const business_notification_type_preference_entity_1 = require("../entities/business.notification.type.preference.entity");
|
|
6
|
+
const business_user_entity_1 = require("../entities/business.user.entity");
|
|
7
|
+
const user_notification_type_preference_entity_1 = require("../entities/user.notification.type.preference.entity");
|
|
8
|
+
const notification_type_control_enum_1 = require("../enums/notification.type.control.enum");
|
|
9
|
+
const notification_type_catalogue_1 = require("./notification.type.catalogue");
|
|
10
|
+
class LoadNotificationPreferenceContext {
|
|
11
|
+
async process(request) {
|
|
12
|
+
const { channel, business_id } = request;
|
|
13
|
+
const type = await new notification_type_catalogue_1.NotificationTypeCatalogue().find(request.identifiers);
|
|
14
|
+
const context = {
|
|
15
|
+
type,
|
|
16
|
+
channel,
|
|
17
|
+
businessActive: null,
|
|
18
|
+
recipients: this.knownRecipients(request),
|
|
19
|
+
userOptOuts: new Set(),
|
|
20
|
+
};
|
|
21
|
+
if (!business_id || !this.isConfigurable(type, request))
|
|
22
|
+
return context;
|
|
23
|
+
const businessActive = await this.getBusinessActive(business_id, type.id, request);
|
|
24
|
+
if (businessActive === false)
|
|
25
|
+
return { ...context, businessActive };
|
|
26
|
+
const recipients = await this.matchUsers(business_id, request);
|
|
27
|
+
const userOptOuts = await this.getUserOptOuts(business_id, type.id, request, recipients);
|
|
28
|
+
return { ...context, businessActive, recipients, userOptOuts };
|
|
29
|
+
}
|
|
30
|
+
isConfigurable(type, request) {
|
|
31
|
+
if (!type || type.active === false)
|
|
32
|
+
return false;
|
|
33
|
+
if (type.control === notification_type_control_enum_1.NotificationTypeControlEnum.LOCKED)
|
|
34
|
+
return false;
|
|
35
|
+
return (type.channels || []).includes(request.channel);
|
|
36
|
+
}
|
|
37
|
+
knownRecipients(request) {
|
|
38
|
+
return (request.recipients || []).map((r) => ({ address: r.address, role: r.role, user_ids: r.user_id ? [r.user_id] : [] }));
|
|
39
|
+
}
|
|
40
|
+
async getBusinessActive(businessId, typeId, request) {
|
|
41
|
+
const row = await business_notification_type_preference_entity_1.BusinessNotificationTypePreferenceEntity.findOne({
|
|
42
|
+
where: { business_id: businessId, notification_type_id: typeId, channel_id: request.channel },
|
|
43
|
+
});
|
|
44
|
+
if (!row)
|
|
45
|
+
return null;
|
|
46
|
+
return row.active;
|
|
47
|
+
}
|
|
48
|
+
async matchUsers(businessId, request) {
|
|
49
|
+
const recipients = this.knownRecipients(request);
|
|
50
|
+
const addresses = [...new Set(recipients.filter((r) => !r.user_ids.length).map((r) => r.address.trim().toLowerCase()))];
|
|
51
|
+
if (!addresses.length)
|
|
52
|
+
return recipients;
|
|
53
|
+
const rows = await business_user_entity_1.BusinessUserEntity.query(`select distinct lower(u.email) as email, u.id as user_id
|
|
54
|
+
from bz_business_users bu
|
|
55
|
+
join sys_users u on u.id = bu.user_id and u.deleted_at is null
|
|
56
|
+
where bu.business_id = $1 and bu.active = true and bu.deleted_at is null
|
|
57
|
+
and lower(u.email) = any($2)`, [businessId, addresses]);
|
|
58
|
+
const byAddress = new Map();
|
|
59
|
+
for (const row of rows || [])
|
|
60
|
+
byAddress.set(row.email, [...(byAddress.get(row.email) || []), Number(row.user_id)]);
|
|
61
|
+
return recipients.map((r) => {
|
|
62
|
+
if (r.user_ids.length)
|
|
63
|
+
return r;
|
|
64
|
+
return { ...r, user_ids: byAddress.get(r.address.trim().toLowerCase()) || [] };
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
async getUserOptOuts(businessId, typeId, request, recipients) {
|
|
68
|
+
const userIds = [...new Set(recipients.flatMap((r) => r.user_ids))];
|
|
69
|
+
if (!userIds.length)
|
|
70
|
+
return new Set();
|
|
71
|
+
const rows = await user_notification_type_preference_entity_1.UserNotificationTypePreferenceEntity.find({
|
|
72
|
+
where: { business_id: businessId, notification_type_id: typeId, channel_id: request.channel, active: false, user_id: (0, typeorm_1.In)(userIds) },
|
|
73
|
+
});
|
|
74
|
+
return new Set((rows || []).map((r) => Number(r.user_id)));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.LoadNotificationPreferenceContext = LoadNotificationPreferenceContext;
|
|
78
|
+
//# sourceMappingURL=load.notification.preference.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load.notification.preference.context.js","sourceRoot":"","sources":["../../../src/access/libraries/load.notification.preference.context.ts"],"names":[],"mappings":";;;AAAA,qCAA6B;AAC7B,2HAAoH;AACpH,2EAAsE;AACtE,mHAA4G;AAC5G,4FAAsF;AAKtF,+EAA0E;AAS1E,MAAa,iCAAiC;IAS1C,KAAK,CAAC,OAAO,CAAC,OAA+C;QACzD,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;QACzC,MAAM,IAAI,GAAG,MAAM,IAAI,uDAAyB,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAE7E,MAAM,OAAO,GAAgD;YACzD,IAAI;YACJ,OAAO;YACP,cAAc,EAAE,IAAI;YACpB,UAAU,EAAE,IAAI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
import { CataloguedNotificationTypeInterface } from '../interfaces/catalogued.notification.type.interface';
|
|
2
|
+
import { NotificationSendIdentifiersInterface } from '../interfaces/notification.send.identifiers.interface';
|
|
3
|
+
export declare class NotificationTypeCatalogue {
|
|
4
|
+
static readonly TTL: number;
|
|
5
|
+
private static loading;
|
|
6
|
+
private static loadedAt;
|
|
7
|
+
static clear(): void;
|
|
8
|
+
find(identifiers: NotificationSendIdentifiersInterface): Promise<CataloguedNotificationTypeInterface | null>;
|
|
9
|
+
private getIndex;
|
|
10
|
+
private load;
|
|
11
|
+
private add;
|
|
12
|
+
}
|