@servicelabsco/slabs-access-manager 2.0.15 → 2.0.18
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/access.business.controller.d.ts +9 -0
- package/dist/access/controllers/access.business.controller.js +52 -0
- package/dist/access/controllers/access.business.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.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 +3 -1
- package/dist/access/controllers/emithook.controller.js +9 -2
- package/dist/access/controllers/emithook.controller.js.map +1 -1
- package/dist/access/controllers/index.d.ts +6 -0
- package/dist/access/controllers/index.js +6 -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.business.email.dto.js.map +1 -1
- 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.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/index.d.ts +12 -0
- package/dist/access/dtos/index.js +12 -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/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.developer.business.dto.d.ts +8 -0
- package/dist/access/dtos/update.developer.business.dto.js +61 -0
- package/dist/access/dtos/update.developer.business.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.business.entity.d.ts +1 -0
- package/dist/access/entities/access.business.entity.js +4 -0
- package/dist/access/entities/access.business.entity.js.map +1 -1
- 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/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 +4 -0
- package/dist/access/entities/index.js +4 -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/index.d.ts +3 -0
- package/dist/access/enums/index.js +3 -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 +49 -14
- package/dist/access/es6.classes.js +98 -1
- package/dist/access/es6.classes.js.map +1 -1
- 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.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/index.d.ts +18 -0
- package/dist/access/interfaces/index.js +18 -0
- package/dist/access/interfaces/index.js.map +1 -1
- 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.js +1 -1
- 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 +2 -0
- package/dist/access/jobs/index.js +2 -0
- package/dist/access/jobs/index.js.map +1 -1
- package/dist/access/jobs/poll.emithook.email.inbox.job.js +1 -1
- package/dist/access/jobs/poll.emithook.email.inbox.job.js.map +1 -1
- package/dist/access/jobs/poll.emithook.email.sqs.job.d.ts +3 -1
- package/dist/access/jobs/poll.emithook.email.sqs.job.js +11 -3
- package/dist/access/jobs/poll.emithook.email.sqs.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 +16 -0
- package/dist/access/libraries/index.js +16 -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 +19 -3
- package/dist/access/libraries/process.email.notification.js +150 -4
- 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.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.js +1 -3
- package/dist/access/libraries/read.eml.attachments.js.map +1 -1
- 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/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.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/libraries/update.developer.business.d.ts +8 -0
- package/dist/access/libraries/update.developer.business.js +39 -0
- package/dist/access/libraries/update.developer.business.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.js +1 -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 +5 -1
- package/dist/access/services/emithook.service.js +22 -1
- package/dist/access/services/emithook.service.js.map +1 -1
- 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/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 +1 -1
- package/dist/accessUtility/controllers/bulk.definition.controller.js +1 -1
- package/dist/accessUtility/controllers/bulk.definition.controller.js.map +1 -1
- package/dist/accessUtility/es6.classes.d.ts +5 -5
- package/dist/accessUtility/es6.classes.js +8 -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/libraries/analyse.bulk.upload.d.ts +1 -1
- package/dist/accessUtility/libraries/index.d.ts +0 -1
- package/dist/accessUtility/libraries/index.js +0 -1
- package/dist/accessUtility/libraries/index.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/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,91 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.DeveloperNotificationTypeController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const business_param_dto_1 = require("../dtos/business.param.dto");
|
|
18
|
+
const create_notification_type_dto_1 = require("../dtos/create.notification.type.dto");
|
|
19
|
+
const notification_type_list_filter_dto_1 = require("../dtos/notification.type.list.filter.dto");
|
|
20
|
+
const update_notification_type_dto_1 = require("../dtos/update.notification.type.dto");
|
|
21
|
+
const developer_mode_access_service_1 = require("../services/developer.mode.access.service");
|
|
22
|
+
const notification_type_service_1 = require("../services/notification.type.service");
|
|
23
|
+
let DeveloperNotificationTypeController = class DeveloperNotificationTypeController {
|
|
24
|
+
constructor(developerModeAccessService, notificationTypeService) {
|
|
25
|
+
this.developerModeAccessService = developerModeAccessService;
|
|
26
|
+
this.notificationTypeService = notificationTypeService;
|
|
27
|
+
}
|
|
28
|
+
async list(filter) {
|
|
29
|
+
await this.developerModeAccessService.validate();
|
|
30
|
+
return this.notificationTypeService.list(filter);
|
|
31
|
+
}
|
|
32
|
+
async create(body) {
|
|
33
|
+
await this.developerModeAccessService.validate();
|
|
34
|
+
return this.notificationTypeService.create(body);
|
|
35
|
+
}
|
|
36
|
+
async usage(params) {
|
|
37
|
+
await this.developerModeAccessService.validate();
|
|
38
|
+
return this.notificationTypeService.usage(params.id);
|
|
39
|
+
}
|
|
40
|
+
async show(params) {
|
|
41
|
+
await this.developerModeAccessService.validate();
|
|
42
|
+
return this.notificationTypeService.show(params.id);
|
|
43
|
+
}
|
|
44
|
+
async update(params, body) {
|
|
45
|
+
await this.developerModeAccessService.validate();
|
|
46
|
+
return this.notificationTypeService.update(params.id, body);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
exports.DeveloperNotificationTypeController = DeveloperNotificationTypeController;
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, common_1.Get)(),
|
|
52
|
+
__param(0, (0, common_1.Query)()),
|
|
53
|
+
__metadata("design:type", Function),
|
|
54
|
+
__metadata("design:paramtypes", [notification_type_list_filter_dto_1.NotificationTypeListFilterDto]),
|
|
55
|
+
__metadata("design:returntype", Promise)
|
|
56
|
+
], DeveloperNotificationTypeController.prototype, "list", null);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, common_1.Post)(),
|
|
59
|
+
__param(0, (0, common_1.Body)()),
|
|
60
|
+
__metadata("design:type", Function),
|
|
61
|
+
__metadata("design:paramtypes", [create_notification_type_dto_1.CreateNotificationTypeDto]),
|
|
62
|
+
__metadata("design:returntype", Promise)
|
|
63
|
+
], DeveloperNotificationTypeController.prototype, "create", null);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, common_1.Get)(':id/usage'),
|
|
66
|
+
__param(0, (0, common_1.Param)()),
|
|
67
|
+
__metadata("design:type", Function),
|
|
68
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
69
|
+
__metadata("design:returntype", Promise)
|
|
70
|
+
], DeveloperNotificationTypeController.prototype, "usage", null);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, common_1.Get)(':id'),
|
|
73
|
+
__param(0, (0, common_1.Param)()),
|
|
74
|
+
__metadata("design:type", Function),
|
|
75
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
76
|
+
__metadata("design:returntype", Promise)
|
|
77
|
+
], DeveloperNotificationTypeController.prototype, "show", null);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, common_1.Post)(':id'),
|
|
80
|
+
__param(0, (0, common_1.Param)()),
|
|
81
|
+
__param(1, (0, common_1.Body)()),
|
|
82
|
+
__metadata("design:type", Function),
|
|
83
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto, update_notification_type_dto_1.UpdateNotificationTypeDto]),
|
|
84
|
+
__metadata("design:returntype", Promise)
|
|
85
|
+
], DeveloperNotificationTypeController.prototype, "update", null);
|
|
86
|
+
exports.DeveloperNotificationTypeController = DeveloperNotificationTypeController = __decorate([
|
|
87
|
+
(0, common_1.Controller)('api/b/developer-notification-types'),
|
|
88
|
+
__metadata("design:paramtypes", [developer_mode_access_service_1.DeveloperModeAccessService,
|
|
89
|
+
notification_type_service_1.NotificationTypeService])
|
|
90
|
+
], DeveloperNotificationTypeController);
|
|
91
|
+
//# sourceMappingURL=developer.notification.type.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"developer.notification.type.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/developer.notification.type.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2E;AAC3E,mEAA8D;AAC9D,uFAAiF;AACjF,iGAA0F;AAC1F,uFAAiF;AACjF,6FAAuF;AACvF,qFAAgF;AAQzE,IAAM,mCAAmC,GAAzC,MAAM,mCAAmC;IAC5C,YACqB,0BAAsD,EACtD,uBAAgD;QADhD,+BAA0B,GAA1B,0BAA0B,CAA4B;QACtD,4BAAuB,GAAvB,uBAAuB,CAAyB;IAClE,CAAC;IAOE,AAAN,KAAK,CAAC,IAAI,CAAU,MAAqC;QACrD,MAAM,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,CAAC;QACjD,OAAO,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;IAOK,AAAN,KAAK,CAAC,MAAM,CAAS,IAA+B;QAChD,MAAM,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,CAAC;QACjD,OAAO,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAOK,AAAN,KAAK,CAAC,KAAK,CAAU,MAAwB;QACzC,MAAM,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,CAAC;QACjD,OAAO,IAAI,CAAC,uBAAuB,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACzD,CAAC;IAOK,AAAN,KAAK,CAAC,IAAI,CAAU,MAAwB;QACxC,MAAM,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,CAAC;QACjD,OAAO,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACxD,CAAC;IAQK,AAAN,KAAK,CAAC,MAAM,CAAU,MAAwB,EAAU,IAA+B;QACnF,MAAM,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,CAAC;QACjD,OAAO,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;CACJ,CAAA;AAxDY,kFAAmC;AAWtC;IADL,IAAA,YAAG,GAAE;IACM,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,iEAA6B;;+DAGxD;AAOK;IADL,IAAA,aAAI,GAAE;IACO,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,wDAAyB;;iEAGnD;AAOK;IADL,IAAA,YAAG,EAAC,WAAW,CAAC;IACJ,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;gEAG5C;AAOK;IADL,IAAA,YAAG,EAAC,KAAK,CAAC;IACC,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;+DAG3C;AAQK;IADL,IAAA,aAAI,EAAC,KAAK,CAAC;IACE,WAAA,IAAA,cAAK,GAAE,CAAA;IAA4B,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAzB,qCAAgB,EAAgB,wDAAyB;;iEAGtF;8CAvDQ,mCAAmC;IAD/C,IAAA,mBAAU,EAAC,oCAAoC,CAAC;qCAGI,0DAA0B;QAC7B,mDAAuB;GAH5D,mCAAmC,CAwD/C"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { EmithookEnvelopeDto } from '../dtos/emithook.envelope.dto';
|
|
2
2
|
import { EmithookEmailBodyInterface } from '../interfaces/emithook.email.body.interface';
|
|
3
3
|
import { HandleEmithookEmailJob } from '../jobs/handle.emithook.email.job';
|
|
4
|
+
import { HandleEmithookEmailStatusJob } from '../jobs/handle.emithook.email.status.job';
|
|
4
5
|
import { EmithookService } from '../services/emithook.service';
|
|
5
6
|
export declare class EmithookController {
|
|
6
7
|
private readonly handleEmithookEmailJob;
|
|
7
8
|
private readonly emithookService;
|
|
8
|
-
|
|
9
|
+
private readonly handleEmithookEmailStatusJob;
|
|
10
|
+
constructor(handleEmithookEmailJob: HandleEmithookEmailJob, emithookService: EmithookService, handleEmithookEmailStatusJob: HandleEmithookEmailStatusJob);
|
|
9
11
|
receive(body: EmithookEnvelopeDto<EmithookEmailBodyInterface>, headerToken?: string, queryToken?: string): Promise<{
|
|
10
12
|
success: boolean;
|
|
11
13
|
}>;
|
|
@@ -16,17 +16,23 @@ exports.EmithookController = void 0;
|
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const emithook_envelope_dto_1 = require("../dtos/emithook.envelope.dto");
|
|
18
18
|
const handle_emithook_email_job_1 = require("../jobs/handle.emithook.email.job");
|
|
19
|
+
const handle_emithook_email_status_job_1 = require("../jobs/handle.emithook.email.status.job");
|
|
20
|
+
const process_emithook_email_status_1 = require("../libraries/process.emithook.email.status");
|
|
19
21
|
const emithook_service_1 = require("../services/emithook.service");
|
|
20
22
|
let EmithookController = class EmithookController {
|
|
21
|
-
constructor(handleEmithookEmailJob, emithookService) {
|
|
23
|
+
constructor(handleEmithookEmailJob, emithookService, handleEmithookEmailStatusJob) {
|
|
22
24
|
this.handleEmithookEmailJob = handleEmithookEmailJob;
|
|
23
25
|
this.emithookService = emithookService;
|
|
26
|
+
this.handleEmithookEmailStatusJob = handleEmithookEmailStatusJob;
|
|
24
27
|
}
|
|
25
28
|
async receive(body, headerToken, queryToken) {
|
|
26
29
|
await this.emithookService.verifyWebhookToken(headerToken || queryToken);
|
|
27
30
|
if (body?.version === 2 && body.metadata?.source === 'email') {
|
|
28
31
|
await this.handleEmithookEmailJob.dispatch(body);
|
|
29
32
|
}
|
|
33
|
+
else if (process_emithook_email_status_1.ProcessEmithookEmailStatus.isStatusEnvelope(body)) {
|
|
34
|
+
await this.handleEmithookEmailStatusJob.dispatch(body);
|
|
35
|
+
}
|
|
30
36
|
return { success: true };
|
|
31
37
|
}
|
|
32
38
|
};
|
|
@@ -44,6 +50,7 @@ __decorate([
|
|
|
44
50
|
exports.EmithookController = EmithookController = __decorate([
|
|
45
51
|
(0, common_1.Controller)('public/emithook'),
|
|
46
52
|
__metadata("design:paramtypes", [handle_emithook_email_job_1.HandleEmithookEmailJob,
|
|
47
|
-
emithook_service_1.EmithookService
|
|
53
|
+
emithook_service_1.EmithookService,
|
|
54
|
+
handle_emithook_email_status_job_1.HandleEmithookEmailStatusJob])
|
|
48
55
|
], EmithookController);
|
|
49
56
|
//# sourceMappingURL=emithook.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emithook.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/emithook.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA8F;AAC9F,yEAAoE;AAEpE,iFAA2E;AAC3E,mEAA+D;AAQxD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC3B,YACqB,sBAA8C,EAC9C,eAAgC;
|
|
1
|
+
{"version":3,"file":"emithook.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/emithook.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA8F;AAC9F,yEAAoE;AAEpE,iFAA2E;AAC3E,+FAAwF;AACxF,8FAAwF;AACxF,mEAA+D;AAQxD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC3B,YACqB,sBAA8C,EAC9C,eAAgC,EAChC,4BAA0D;QAF1D,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,oBAAe,GAAf,eAAe,CAAiB;QAChC,iCAA4B,GAA5B,4BAA4B,CAA8B;IAC5E,CAAC;IAYE,AAAN,KAAK,CAAC,OAAO,CACD,IAAqD,EAChC,WAAoB,EACjC,UAAmB;QAEnC,MAAM,IAAI,CAAC,eAAe,CAAC,kBAAkB,CAAC,WAAW,IAAI,UAAU,CAAC,CAAC;QAEzE,IAAI,IAAI,EAAE,OAAO,KAAK,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,EAAE,CAAC;YAC3D,MAAM,IAAI,CAAC,sBAAsB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACrD,CAAC;aAAM,IAAI,0DAA0B,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3D,MAAM,IAAI,CAAC,4BAA4B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC3D,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC7B,CAAC;CACJ,CAAA;AAhCY,gDAAkB;AAiBrB;IAFL,IAAA,aAAI,GAAE;IACN,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAEnB,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,gBAAO,EAAC,kBAAkB,CAAC,CAAA;IAC3B,WAAA,IAAA,cAAK,EAAC,OAAO,CAAC,CAAA;;qCAFD,2CAAmB;;iDAapC;6BA/BQ,kBAAkB;IAD9B,IAAA,mBAAU,EAAC,iBAAiB,CAAC;qCAGmB,kDAAsB;QAC7B,kCAAe;QACF,+DAA4B;GAJtE,kBAAkB,CAgC9B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './access.business.controller';
|
|
1
2
|
export * from './access.menu.controller';
|
|
2
3
|
export * from './alias.mapping.controller';
|
|
3
4
|
export * from './api.account.controller';
|
|
@@ -5,6 +6,7 @@ export * from './bulk.upload.controller';
|
|
|
5
6
|
export * from './bulk.upload.item.controller';
|
|
6
7
|
export * from './business.app.integration.controller';
|
|
7
8
|
export * from './business.currency.controller';
|
|
9
|
+
export * from './business.email.alias.controller';
|
|
8
10
|
export * from './business.email.controller';
|
|
9
11
|
export * from './business.notification.channel.preference.controller';
|
|
10
12
|
export * from './business.preference.controller';
|
|
@@ -25,6 +27,7 @@ export * from './dashboard.controller';
|
|
|
25
27
|
export * from './dashboard.report.controller';
|
|
26
28
|
export * from './developer.menu.controller';
|
|
27
29
|
export * from './developer.mode.controller';
|
|
30
|
+
export * from './developer.notification.type.controller';
|
|
28
31
|
export * from './developer.report.controller';
|
|
29
32
|
export * from './device.auth.controller';
|
|
30
33
|
export * from './download.log.controller';
|
|
@@ -41,10 +44,12 @@ export * from './listing.controller';
|
|
|
41
44
|
export * from './listing.page.controller';
|
|
42
45
|
export * from './listing.preference.controller';
|
|
43
46
|
export * from './lock.script.controller';
|
|
47
|
+
export * from './mail.log.controller';
|
|
44
48
|
export * from './mcp.reports.controller';
|
|
45
49
|
export * from './menu.controller';
|
|
46
50
|
export * from './module.controller';
|
|
47
51
|
export * from './module.menu.controller';
|
|
52
|
+
export * from './notification.type.preference.controller';
|
|
48
53
|
export * from './oauth.as.controller';
|
|
49
54
|
export * from './oauth.discovery.controller';
|
|
50
55
|
export * from './overriding.script.controller';
|
|
@@ -55,5 +60,6 @@ export * from './tag.controller';
|
|
|
55
60
|
export * from './ui.action.controller';
|
|
56
61
|
export * from './user.business.secret.controller';
|
|
57
62
|
export * from './user.notification.controller';
|
|
63
|
+
export * from './user.notification.type.preference.controller';
|
|
58
64
|
export * from './user.preference.controller';
|
|
59
65
|
export * from './whoami.controller';
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./access.business.controller"), exports);
|
|
17
18
|
__exportStar(require("./access.menu.controller"), exports);
|
|
18
19
|
__exportStar(require("./alias.mapping.controller"), exports);
|
|
19
20
|
__exportStar(require("./api.account.controller"), exports);
|
|
@@ -21,6 +22,7 @@ __exportStar(require("./bulk.upload.controller"), exports);
|
|
|
21
22
|
__exportStar(require("./bulk.upload.item.controller"), exports);
|
|
22
23
|
__exportStar(require("./business.app.integration.controller"), exports);
|
|
23
24
|
__exportStar(require("./business.currency.controller"), exports);
|
|
25
|
+
__exportStar(require("./business.email.alias.controller"), exports);
|
|
24
26
|
__exportStar(require("./business.email.controller"), exports);
|
|
25
27
|
__exportStar(require("./business.notification.channel.preference.controller"), exports);
|
|
26
28
|
__exportStar(require("./business.preference.controller"), exports);
|
|
@@ -41,6 +43,7 @@ __exportStar(require("./dashboard.controller"), exports);
|
|
|
41
43
|
__exportStar(require("./dashboard.report.controller"), exports);
|
|
42
44
|
__exportStar(require("./developer.menu.controller"), exports);
|
|
43
45
|
__exportStar(require("./developer.mode.controller"), exports);
|
|
46
|
+
__exportStar(require("./developer.notification.type.controller"), exports);
|
|
44
47
|
__exportStar(require("./developer.report.controller"), exports);
|
|
45
48
|
__exportStar(require("./device.auth.controller"), exports);
|
|
46
49
|
__exportStar(require("./download.log.controller"), exports);
|
|
@@ -57,10 +60,12 @@ __exportStar(require("./listing.controller"), exports);
|
|
|
57
60
|
__exportStar(require("./listing.page.controller"), exports);
|
|
58
61
|
__exportStar(require("./listing.preference.controller"), exports);
|
|
59
62
|
__exportStar(require("./lock.script.controller"), exports);
|
|
63
|
+
__exportStar(require("./mail.log.controller"), exports);
|
|
60
64
|
__exportStar(require("./mcp.reports.controller"), exports);
|
|
61
65
|
__exportStar(require("./menu.controller"), exports);
|
|
62
66
|
__exportStar(require("./module.controller"), exports);
|
|
63
67
|
__exportStar(require("./module.menu.controller"), exports);
|
|
68
|
+
__exportStar(require("./notification.type.preference.controller"), exports);
|
|
64
69
|
__exportStar(require("./oauth.as.controller"), exports);
|
|
65
70
|
__exportStar(require("./oauth.discovery.controller"), exports);
|
|
66
71
|
__exportStar(require("./overriding.script.controller"), exports);
|
|
@@ -71,6 +76,7 @@ __exportStar(require("./tag.controller"), exports);
|
|
|
71
76
|
__exportStar(require("./ui.action.controller"), exports);
|
|
72
77
|
__exportStar(require("./user.business.secret.controller"), exports);
|
|
73
78
|
__exportStar(require("./user.notification.controller"), exports);
|
|
79
|
+
__exportStar(require("./user.notification.type.preference.controller"), exports);
|
|
74
80
|
__exportStar(require("./user.preference.controller"), exports);
|
|
75
81
|
__exportStar(require("./whoami.controller"), exports);
|
|
76
82
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,2DAAyC;AACzC,6DAA2C;AAC3C,2DAAyC;AACzC,2DAAyC;AACzC,gEAA8C;AAC9C,wEAAsD;AACtD,iEAA+C;AAC/C,8DAA4C;AAC5C,wFAAsE;AACtE,mEAAiD;AACjD,iEAA+C;AAC/C,+DAA6C;AAC7C,+DAA6C;AAC7C,mEAAiD;AACjD,qFAAmE;AACnE,gEAA8C;AAC9C,2DAAyC;AACzC,2DAAyC;AACzC,8DAA4C;AAC5C,6DAA2C;AAC3C,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,yDAAuC;AACvC,gEAA8C;AAC9C,8DAA4C;AAC5C,8DAA4C;AAC5C,gEAA8C;AAC9C,2DAAyC;AACzC,4DAA0C;AAC1C,0DAAwC;AACxC,wDAAsC;AACtC,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,2DAAyC;AACzC,4DAA0C;AAC1C,0DAAwC;AACxC,2DAAyC;AACzC,uDAAqC;AACrC,4DAA0C;AAC1C,kEAAgD;AAChD,2DAAyC;AACzC,2DAAyC;AACzC,oDAAkC;AAClC,sDAAoC;AACpC,2DAAyC;AACzC,wDAAsC;AACtC,+DAA6C;AAC7C,iEAA+C;AAC/C,2DAAyC;AACzC,gEAA8C;AAC9C,qEAAmD;AACnD,mDAAiC;AACjC,yDAAuC;AACvC,oEAAkD;AAClD,iEAA+C;AAC/C,+DAA6C;AAC7C,sDAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,+DAA6C;AAC7C,2DAAyC;AACzC,6DAA2C;AAC3C,2DAAyC;AACzC,2DAAyC;AACzC,gEAA8C;AAC9C,wEAAsD;AACtD,iEAA+C;AAC/C,oEAAkD;AAClD,8DAA4C;AAC5C,wFAAsE;AACtE,mEAAiD;AACjD,iEAA+C;AAC/C,+DAA6C;AAC7C,+DAA6C;AAC7C,mEAAiD;AACjD,qFAAmE;AACnE,gEAA8C;AAC9C,2DAAyC;AACzC,2DAAyC;AACzC,8DAA4C;AAC5C,6DAA2C;AAC3C,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,yDAAuC;AACvC,gEAA8C;AAC9C,8DAA4C;AAC5C,8DAA4C;AAC5C,2EAAyD;AACzD,gEAA8C;AAC9C,2DAAyC;AACzC,4DAA0C;AAC1C,0DAAwC;AACxC,wDAAsC;AACtC,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,2DAAyC;AACzC,4DAA0C;AAC1C,0DAAwC;AACxC,2DAAyC;AACzC,uDAAqC;AACrC,4DAA0C;AAC1C,kEAAgD;AAChD,2DAAyC;AACzC,wDAAsC;AACtC,2DAAyC;AACzC,oDAAkC;AAClC,sDAAoC;AACpC,2DAAyC;AACzC,4EAA0D;AAC1D,wDAAsC;AACtC,+DAA6C;AAC7C,iEAA+C;AAC/C,2DAAyC;AACzC,gEAA8C;AAC9C,qEAAmD;AACnD,mDAAiC;AACjC,yDAAuC;AACvC,oEAAkD;AAClD,iEAA+C;AAC/C,iFAA+D;AAC/D,+DAA6C;AAC7C,sDAAoC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BusinessParamDto } from '../dtos/business.param.dto';
|
|
2
|
+
import { BusinessPropertyScopeDto } from '../dtos/business.property.scope.dto';
|
|
3
|
+
import { MailLogContentQueryDto } from '../dtos/mail.log.content.query.dto';
|
|
4
|
+
import { MailLogListFilterDto } from '../dtos/mail.log.list.filter.dto';
|
|
5
|
+
import { EmithookService } from '../services/emithook.service';
|
|
6
|
+
import { ListingService } from '../services/listing.service';
|
|
7
|
+
import { MailLogAccessService } from '../services/mail.log.access.service';
|
|
8
|
+
export declare class MailLogController {
|
|
9
|
+
private readonly mailLogAccessService;
|
|
10
|
+
private readonly listingService;
|
|
11
|
+
private readonly emithookService;
|
|
12
|
+
constructor(mailLogAccessService: MailLogAccessService, listingService: ListingService, emithookService: EmithookService);
|
|
13
|
+
search(body: MailLogListFilterDto): Promise<import("..").ListResponseDto>;
|
|
14
|
+
content(params: BusinessParamDto, query: MailLogContentQueryDto): Promise<{
|
|
15
|
+
format: string;
|
|
16
|
+
content?: string | null;
|
|
17
|
+
url?: string | null;
|
|
18
|
+
}>;
|
|
19
|
+
show(params: BusinessParamDto, query: BusinessPropertyScopeDto): Promise<Record<string, any>>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.MailLogController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const business_param_dto_1 = require("../dtos/business.param.dto");
|
|
18
|
+
const business_property_scope_dto_1 = require("../dtos/business.property.scope.dto");
|
|
19
|
+
const mail_log_content_query_dto_1 = require("../dtos/mail.log.content.query.dto");
|
|
20
|
+
const mail_log_list_filter_dto_1 = require("../dtos/mail.log.list.filter.dto");
|
|
21
|
+
const process_mail_log_list_1 = require("../libraries/process.mail.log.list");
|
|
22
|
+
const show_mail_log_1 = require("../libraries/show.mail.log");
|
|
23
|
+
const show_mail_log_content_1 = require("../libraries/show.mail.log.content");
|
|
24
|
+
const emithook_service_1 = require("../services/emithook.service");
|
|
25
|
+
const listing_service_1 = require("../services/listing.service");
|
|
26
|
+
const mail_log_access_service_1 = require("../services/mail.log.access.service");
|
|
27
|
+
let MailLogController = class MailLogController {
|
|
28
|
+
constructor(mailLogAccessService, listingService, emithookService) {
|
|
29
|
+
this.mailLogAccessService = mailLogAccessService;
|
|
30
|
+
this.listingService = listingService;
|
|
31
|
+
this.emithookService = emithookService;
|
|
32
|
+
}
|
|
33
|
+
async search(body) {
|
|
34
|
+
const business = await this.mailLogAccessService.resolveBusiness(body.business_id);
|
|
35
|
+
return new process_mail_log_list_1.ProcessMailLogList(business, this.listingService).process(body);
|
|
36
|
+
}
|
|
37
|
+
async content(params, query) {
|
|
38
|
+
const business = await this.mailLogAccessService.resolveBusiness(query.business_id);
|
|
39
|
+
return new show_mail_log_content_1.ShowMailLogContent(business, this.emithookService).process(params.id, query.format);
|
|
40
|
+
}
|
|
41
|
+
async show(params, query) {
|
|
42
|
+
const business = await this.mailLogAccessService.resolveBusiness(query.business_id);
|
|
43
|
+
return new show_mail_log_1.ShowMailLog(business).process(params.id);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
exports.MailLogController = MailLogController;
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, common_1.Post)('search'),
|
|
49
|
+
__param(0, (0, common_1.Body)()),
|
|
50
|
+
__metadata("design:type", Function),
|
|
51
|
+
__metadata("design:paramtypes", [mail_log_list_filter_dto_1.MailLogListFilterDto]),
|
|
52
|
+
__metadata("design:returntype", Promise)
|
|
53
|
+
], MailLogController.prototype, "search", null);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, common_1.Get)(':id/content'),
|
|
56
|
+
__param(0, (0, common_1.Param)()),
|
|
57
|
+
__param(1, (0, common_1.Query)()),
|
|
58
|
+
__metadata("design:type", Function),
|
|
59
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto, mail_log_content_query_dto_1.MailLogContentQueryDto]),
|
|
60
|
+
__metadata("design:returntype", Promise)
|
|
61
|
+
], MailLogController.prototype, "content", null);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, common_1.Get)(':id'),
|
|
64
|
+
__param(0, (0, common_1.Param)()),
|
|
65
|
+
__param(1, (0, common_1.Query)()),
|
|
66
|
+
__metadata("design:type", Function),
|
|
67
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto, business_property_scope_dto_1.BusinessPropertyScopeDto]),
|
|
68
|
+
__metadata("design:returntype", Promise)
|
|
69
|
+
], MailLogController.prototype, "show", null);
|
|
70
|
+
exports.MailLogController = MailLogController = __decorate([
|
|
71
|
+
(0, common_1.Controller)('api/b/mail-logs'),
|
|
72
|
+
__metadata("design:paramtypes", [mail_log_access_service_1.MailLogAccessService,
|
|
73
|
+
listing_service_1.ListingService,
|
|
74
|
+
emithook_service_1.EmithookService])
|
|
75
|
+
], MailLogController);
|
|
76
|
+
//# sourceMappingURL=mail.log.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mail.log.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/mail.log.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2E;AAC3E,mEAA8D;AAC9D,qFAA+E;AAC/E,mFAA4E;AAC5E,+EAAwE;AACxE,8EAAwE;AACxE,8DAAyD;AACzD,8EAAwE;AACxE,mEAA+D;AAC/D,iEAA6D;AAC7D,iFAA2E;AAOpE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC1B,YACqB,oBAA0C,EAC1C,cAA8B,EAC9B,eAAgC;QAFhC,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,mBAAc,GAAd,cAAc,CAAgB;QAC9B,oBAAe,GAAf,eAAe,CAAiB;IAClD,CAAC;IAOE,AAAN,KAAK,CAAC,MAAM,CAAS,IAA0B;QAC3C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAEnF,OAAO,IAAI,0CAAkB,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/E,CAAC;IAQK,AAAN,KAAK,CAAC,OAAO,CAAU,MAAwB,EAAW,KAA6B;QACnF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAEpF,OAAO,IAAI,0CAAkB,CAAC,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnG,CAAC;IAQK,AAAN,KAAK,CAAC,IAAI,CAAU,MAAwB,EAAW,KAA+B;QAClF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAEpF,OAAO,IAAI,2BAAW,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACxD,CAAC;CACJ,CAAA;AAzCY,8CAAiB;AAYpB;IADL,IAAA,aAAI,EAAC,QAAQ,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,+CAAoB;;+CAI9C;AAQK;IADL,IAAA,YAAG,EAAC,aAAa,CAAC;IACJ,WAAA,IAAA,cAAK,GAAE,CAAA;IAA4B,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAA1B,qCAAgB,EAAkB,mDAAsB;;gDAItF;AAQK;IADL,IAAA,YAAG,EAAC,KAAK,CAAC;IACC,WAAA,IAAA,cAAK,GAAE,CAAA;IAA4B,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAA1B,qCAAgB,EAAkB,sDAAwB;;6CAIrF;4BAxCQ,iBAAiB;IAD7B,IAAA,mBAAU,EAAC,iBAAiB,CAAC;qCAGiB,8CAAoB;QAC1B,gCAAc;QACb,kCAAe;GAJ5C,iBAAiB,CAyC7B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AccessService } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { SetNotificationTypePreferenceDto } from '../dtos/set.notification.type.preference.dto';
|
|
3
|
+
import { AccessBusinessService } from '../services/access.business.service';
|
|
4
|
+
import { NotificationTypePreferenceService } from '../services/notification.type.preference.service';
|
|
5
|
+
export declare class NotificationTypePreferenceController {
|
|
6
|
+
private readonly accessBusinessService;
|
|
7
|
+
private readonly accessService;
|
|
8
|
+
private readonly notificationTypePreferenceService;
|
|
9
|
+
constructor(accessBusinessService: AccessBusinessService, accessService: AccessService, notificationTypePreferenceService: NotificationTypePreferenceService);
|
|
10
|
+
list(): Promise<import("..").BusinessNotificationTypePreferenceRowInterface[]>;
|
|
11
|
+
set(body: SetNotificationTypePreferenceDto): Promise<import("..").BusinessNotificationTypePreferenceRowInterface>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.NotificationTypePreferenceController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
18
|
+
const set_notification_type_preference_dto_1 = require("../dtos/set.notification.type.preference.dto");
|
|
19
|
+
const access_business_service_1 = require("../services/access.business.service");
|
|
20
|
+
const notification_type_preference_service_1 = require("../services/notification.type.preference.service");
|
|
21
|
+
let NotificationTypePreferenceController = class NotificationTypePreferenceController {
|
|
22
|
+
constructor(accessBusinessService, accessService, notificationTypePreferenceService) {
|
|
23
|
+
this.accessBusinessService = accessBusinessService;
|
|
24
|
+
this.accessService = accessService;
|
|
25
|
+
this.notificationTypePreferenceService = notificationTypePreferenceService;
|
|
26
|
+
}
|
|
27
|
+
async list() {
|
|
28
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
29
|
+
const roles = await this.notificationTypePreferenceService.getManagerRoles();
|
|
30
|
+
const canEdit = this.accessService.hasRoleIdentifiers(roles);
|
|
31
|
+
return this.notificationTypePreferenceService.listForBusiness(business, canEdit);
|
|
32
|
+
}
|
|
33
|
+
async set(body) {
|
|
34
|
+
const roles = await this.notificationTypePreferenceService.getManagerRoles();
|
|
35
|
+
const business = await this.accessBusinessService.hasRoles(roles);
|
|
36
|
+
return this.notificationTypePreferenceService.setForBusiness(business, body);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
exports.NotificationTypePreferenceController = NotificationTypePreferenceController;
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, common_1.Get)(),
|
|
42
|
+
__metadata("design:type", Function),
|
|
43
|
+
__metadata("design:paramtypes", []),
|
|
44
|
+
__metadata("design:returntype", Promise)
|
|
45
|
+
], NotificationTypePreferenceController.prototype, "list", null);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, common_1.Post)(),
|
|
48
|
+
__param(0, (0, common_1.Body)()),
|
|
49
|
+
__metadata("design:type", Function),
|
|
50
|
+
__metadata("design:paramtypes", [set_notification_type_preference_dto_1.SetNotificationTypePreferenceDto]),
|
|
51
|
+
__metadata("design:returntype", Promise)
|
|
52
|
+
], NotificationTypePreferenceController.prototype, "set", null);
|
|
53
|
+
exports.NotificationTypePreferenceController = NotificationTypePreferenceController = __decorate([
|
|
54
|
+
(0, common_1.Controller)('api/b/notification-type-preferences'),
|
|
55
|
+
__metadata("design:paramtypes", [access_business_service_1.AccessBusinessService,
|
|
56
|
+
nestjs_utility_services_1.AccessService,
|
|
57
|
+
notification_type_preference_service_1.NotificationTypePreferenceService])
|
|
58
|
+
], NotificationTypePreferenceController);
|
|
59
|
+
//# sourceMappingURL=notification.type.preference.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.type.preference.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/notification.type.preference.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA6D;AAC7D,oFAAuE;AACvE,uGAAgG;AAChG,iFAA4E;AAC5E,2GAAqG;AAO9F,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC;IAC7C,YACqB,qBAA4C,EAC5C,aAA4B,EAC5B,iCAAoE;QAFpE,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,kBAAa,GAAb,aAAa,CAAe;QAC5B,sCAAiC,GAAjC,iCAAiC,CAAmC;IACtF,CAAC;IAME,AAAN,KAAK,CAAC,IAAI;QACN,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QAEnE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,iCAAiC,CAAC,eAAe,EAAE,CAAC;QAC7E,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;QAE7D,OAAO,IAAI,CAAC,iCAAiC,CAAC,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAQK,AAAN,KAAK,CAAC,GAAG,CAAS,IAAsC;QACpD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,iCAAiC,CAAC,eAAe,EAAE,CAAC;QAC7E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAElE,OAAO,IAAI,CAAC,iCAAiC,CAAC,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;CACJ,CAAA;AAhCY,oFAAoC;AAWvC;IADL,IAAA,YAAG,GAAE;;;;gEAQL;AAQK;IADL,IAAA,aAAI,GAAE;IACI,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,uEAAgC;;+DAKvD;+CA/BQ,oCAAoC;IADhD,IAAA,mBAAU,EAAC,qCAAqC,CAAC;qCAGF,+CAAqB;QAC7B,uCAAa;QACO,wEAAiC;GAJhF,oCAAoC,CAgChD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SetNotificationTypePreferenceDto } from '../dtos/set.notification.type.preference.dto';
|
|
2
|
+
import { AccessBusinessService } from '../services/access.business.service';
|
|
3
|
+
import { NotificationTypePreferenceService } from '../services/notification.type.preference.service';
|
|
4
|
+
export declare class UserNotificationTypePreferenceController {
|
|
5
|
+
private readonly accessBusinessService;
|
|
6
|
+
private readonly notificationTypePreferenceService;
|
|
7
|
+
constructor(accessBusinessService: AccessBusinessService, notificationTypePreferenceService: NotificationTypePreferenceService);
|
|
8
|
+
list(): Promise<import("..").UserNotificationTypePreferenceRowInterface[]>;
|
|
9
|
+
set(body: SetNotificationTypePreferenceDto): Promise<import("..").UserNotificationTypePreferenceRowInterface>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UserNotificationTypePreferenceController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
18
|
+
const set_notification_type_preference_dto_1 = require("../dtos/set.notification.type.preference.dto");
|
|
19
|
+
const access_business_service_1 = require("../services/access.business.service");
|
|
20
|
+
const notification_type_preference_service_1 = require("../services/notification.type.preference.service");
|
|
21
|
+
let UserNotificationTypePreferenceController = class UserNotificationTypePreferenceController {
|
|
22
|
+
constructor(accessBusinessService, notificationTypePreferenceService) {
|
|
23
|
+
this.accessBusinessService = accessBusinessService;
|
|
24
|
+
this.notificationTypePreferenceService = notificationTypePreferenceService;
|
|
25
|
+
}
|
|
26
|
+
async list() {
|
|
27
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
28
|
+
return this.notificationTypePreferenceService.listForUser(business, nestjs_utility_services_1.Auth.user().id);
|
|
29
|
+
}
|
|
30
|
+
async set(body) {
|
|
31
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
32
|
+
return this.notificationTypePreferenceService.setForUser(business, nestjs_utility_services_1.Auth.user().id, body);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.UserNotificationTypePreferenceController = UserNotificationTypePreferenceController;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, common_1.Get)(),
|
|
38
|
+
__metadata("design:type", Function),
|
|
39
|
+
__metadata("design:paramtypes", []),
|
|
40
|
+
__metadata("design:returntype", Promise)
|
|
41
|
+
], UserNotificationTypePreferenceController.prototype, "list", null);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, common_1.Post)(),
|
|
44
|
+
__param(0, (0, common_1.Body)()),
|
|
45
|
+
__metadata("design:type", Function),
|
|
46
|
+
__metadata("design:paramtypes", [set_notification_type_preference_dto_1.SetNotificationTypePreferenceDto]),
|
|
47
|
+
__metadata("design:returntype", Promise)
|
|
48
|
+
], UserNotificationTypePreferenceController.prototype, "set", null);
|
|
49
|
+
exports.UserNotificationTypePreferenceController = UserNotificationTypePreferenceController = __decorate([
|
|
50
|
+
(0, common_1.Controller)('api/b/my-notification-type-preferences'),
|
|
51
|
+
__metadata("design:paramtypes", [access_business_service_1.AccessBusinessService,
|
|
52
|
+
notification_type_preference_service_1.NotificationTypePreferenceService])
|
|
53
|
+
], UserNotificationTypePreferenceController);
|
|
54
|
+
//# sourceMappingURL=user.notification.type.preference.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.notification.type.preference.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/user.notification.type.preference.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA6D;AAC7D,oFAA8D;AAC9D,uGAAgG;AAChG,iFAA4E;AAC5E,2GAAqG;AAO9F,IAAM,wCAAwC,GAA9C,MAAM,wCAAwC;IACjD,YACqB,qBAA4C,EAC5C,iCAAoE;QADpE,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,sCAAiC,GAAjC,iCAAiC,CAAmC;IACtF,CAAC;IAME,AAAN,KAAK,CAAC,IAAI;QACN,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,iCAAiC,CAAC,WAAW,CAAC,QAAQ,EAAE,8BAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;IACxF,CAAC;IAOK,AAAN,KAAK,CAAC,GAAG,CAAS,IAAsC;QACpD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,iCAAiC,CAAC,UAAU,CAAC,QAAQ,EAAE,8BAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAC7F,CAAC;CACJ,CAAA;AAxBY,4FAAwC;AAU3C;IADL,IAAA,YAAG,GAAE;;;;oEAIL;AAOK;IADL,IAAA,aAAI,GAAE;IACI,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,uEAAgC;;mEAGvD;mDAvBQ,wCAAwC;IADpD,IAAA,mBAAU,EAAC,wCAAwC,CAAC;qCAGL,+CAAqB;QACT,wEAAiC;GAHhF,wCAAwC,CAwBpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.business.email.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.business.email.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAuF;
|
|
1
|
+
{"version":3,"file":"add.business.email.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.business.email.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAuF;AASvF,MAAa,mBAAmB;CAgB/B;AAhBD,kDAgBC;AAPG;IAPC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,yBAAO,EAAC,sCAAsC,EAAE;QAC7C,OAAO,EAAE,kGAAkG;KAC9G,CAAC;;uDACiB;AAMnB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IdPayloadDto } from '../../accessUtility/dtos/id.payload.dto';
|
|
2
2
|
import { BusinessPropertyAttributesDto } from './business.property.attributes.dto';
|
|
3
3
|
export declare class AddBusinessPropertyDto extends IdPayloadDto {
|
|
4
|
+
business_id?: number;
|
|
4
5
|
name: string;
|
|
5
6
|
identifier: string;
|
|
6
7
|
description: string;
|
|
@@ -17,6 +17,14 @@ const business_property_attributes_dto_1 = require("./business.property.attribut
|
|
|
17
17
|
class AddBusinessPropertyDto extends id_payload_dto_1.IdPayloadDto {
|
|
18
18
|
}
|
|
19
19
|
exports.AddBusinessPropertyDto = AddBusinessPropertyDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
|
25
|
+
(0, class_validator_1.IsPositive)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], AddBusinessPropertyDto.prototype, "business_id", void 0);
|
|
20
28
|
__decorate([
|
|
21
29
|
(0, class_transformer_1.Expose)(),
|
|
22
30
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.business.property.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.business.property.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"add.business.property.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.business.property.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAA8G;AAC9G,4EAAuE;AACvE,yFAAmF;AAEnF,MAAa,sBAAuB,SAAQ,6BAAY;CAkDvD;AAlDD,wDAkDC;AA3CG;IALC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACQ;AAMrB;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACA;AAMb;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACM;AAMnB;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACO;AAMpB;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACC;AAMd;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;4DACS;AAMtB;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACU;AAMvB;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;8BACD,gEAA6B;0DAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BusinessNotificationTypePreferenceAttributesDto = void 0;
|
|
4
|
+
class BusinessNotificationTypePreferenceAttributesDto {
|
|
5
|
+
}
|
|
6
|
+
exports.BusinessNotificationTypePreferenceAttributesDto = BusinessNotificationTypePreferenceAttributesDto;
|
|
7
|
+
//# sourceMappingURL=business.notification.type.preference.attributes.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business.notification.type.preference.attributes.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/business.notification.type.preference.attributes.dto.ts"],"names":[],"mappings":";;;AAOA,MAAa,+CAA+C;CAG3D;AAHD,0GAGC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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.BusinessPropertyIdentifierParamDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class BusinessPropertyIdentifierParamDto {
|
|
16
|
+
}
|
|
17
|
+
exports.BusinessPropertyIdentifierParamDto = BusinessPropertyIdentifierParamDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.Length)(1, 255),
|
|
21
|
+
(0, class_validator_1.Matches)(/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/, { message: 'identifier may only contain letters, digits, dots, dashes and underscores' }),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], BusinessPropertyIdentifierParamDto.prototype, "identifier", void 0);
|
|
25
|
+
//# sourceMappingURL=business.property.identifier.param.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business.property.identifier.param.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/business.property.identifier.param.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA4D;AAG5D,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AADG;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,CAAC,EAAE,GAAG,CAAC;IACd,IAAA,yBAAO,EAAC,8BAA8B,EAAE,EAAE,OAAO,EAAE,2EAA2E,EAAE,CAAC;IACjI,IAAA,0BAAM,GAAE;;sEACU"}
|