@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.
Files changed (337) hide show
  1. package/AGENTS.md +41 -4
  2. package/CLAUDE.md +12 -4
  3. package/dist/access/commands/index.d.ts +1 -0
  4. package/dist/access/commands/index.js +1 -0
  5. package/dist/access/commands/index.js.map +1 -1
  6. package/dist/access/commands/mail.log.backfill.business.command.d.ts +6 -0
  7. package/dist/access/commands/mail.log.backfill.business.command.js +65 -0
  8. package/dist/access/commands/mail.log.backfill.business.command.js.map +1 -0
  9. package/dist/access/controllers/access.business.controller.d.ts +9 -0
  10. package/dist/access/controllers/access.business.controller.js +52 -0
  11. package/dist/access/controllers/access.business.controller.js.map +1 -0
  12. package/dist/access/controllers/bulk.upload.controller.d.ts +1 -1
  13. package/dist/access/controllers/bulk.upload.controller.js +1 -1
  14. package/dist/access/controllers/bulk.upload.controller.js.map +1 -1
  15. package/dist/access/controllers/business.email.alias.controller.d.ts +9 -0
  16. package/dist/access/controllers/business.email.alias.controller.js +43 -0
  17. package/dist/access/controllers/business.email.alias.controller.js.map +1 -0
  18. package/dist/access/controllers/business.property.controller.d.ts +12 -4
  19. package/dist/access/controllers/business.property.controller.js +74 -7
  20. package/dist/access/controllers/business.property.controller.js.map +1 -1
  21. package/dist/access/controllers/developer.menu.controller.js.map +1 -1
  22. package/dist/access/controllers/developer.notification.type.controller.d.ts +16 -0
  23. package/dist/access/controllers/developer.notification.type.controller.js +91 -0
  24. package/dist/access/controllers/developer.notification.type.controller.js.map +1 -0
  25. package/dist/access/controllers/emithook.controller.d.ts +3 -1
  26. package/dist/access/controllers/emithook.controller.js +9 -2
  27. package/dist/access/controllers/emithook.controller.js.map +1 -1
  28. package/dist/access/controllers/index.d.ts +6 -0
  29. package/dist/access/controllers/index.js +6 -0
  30. package/dist/access/controllers/index.js.map +1 -1
  31. package/dist/access/controllers/mail.log.controller.d.ts +20 -0
  32. package/dist/access/controllers/mail.log.controller.js +76 -0
  33. package/dist/access/controllers/mail.log.controller.js.map +1 -0
  34. package/dist/access/controllers/notification.type.preference.controller.d.ts +12 -0
  35. package/dist/access/controllers/notification.type.preference.controller.js +59 -0
  36. package/dist/access/controllers/notification.type.preference.controller.js.map +1 -0
  37. package/dist/access/controllers/user.notification.type.preference.controller.d.ts +10 -0
  38. package/dist/access/controllers/user.notification.type.preference.controller.js +54 -0
  39. package/dist/access/controllers/user.notification.type.preference.controller.js.map +1 -0
  40. package/dist/access/dtos/add.business.email.dto.js.map +1 -1
  41. package/dist/access/dtos/add.business.property.dto.d.ts +1 -0
  42. package/dist/access/dtos/add.business.property.dto.js +8 -0
  43. package/dist/access/dtos/add.business.property.dto.js.map +1 -1
  44. package/dist/access/dtos/business.notification.type.preference.attributes.dto.d.ts +3 -0
  45. package/dist/access/dtos/business.notification.type.preference.attributes.dto.js +7 -0
  46. package/dist/access/dtos/business.notification.type.preference.attributes.dto.js.map +1 -0
  47. package/dist/access/dtos/business.property.identifier.param.dto.d.ts +3 -0
  48. package/dist/access/dtos/business.property.identifier.param.dto.js +25 -0
  49. package/dist/access/dtos/business.property.identifier.param.dto.js.map +1 -0
  50. package/dist/access/dtos/business.property.list.filter.dto.d.ts +4 -0
  51. package/dist/access/dtos/business.property.list.filter.dto.js +40 -0
  52. package/dist/access/dtos/business.property.list.filter.dto.js.map +1 -1
  53. package/dist/access/dtos/business.property.scope.dto.d.ts +3 -0
  54. package/dist/access/dtos/business.property.scope.dto.js +26 -0
  55. package/dist/access/dtos/business.property.scope.dto.js.map +1 -0
  56. package/dist/access/dtos/create.notification.type.dto.d.ts +14 -0
  57. package/dist/access/dtos/create.notification.type.dto.js +79 -0
  58. package/dist/access/dtos/create.notification.type.dto.js.map +1 -0
  59. package/dist/access/dtos/email.notification.payload.dto.d.ts +5 -0
  60. package/dist/access/dtos/email.notification.payload.dto.js.map +1 -1
  61. package/dist/access/dtos/index.d.ts +12 -0
  62. package/dist/access/dtos/index.js +12 -0
  63. package/dist/access/dtos/index.js.map +1 -1
  64. package/dist/access/dtos/mail.log.content.query.dto.d.ts +4 -0
  65. package/dist/access/dtos/mail.log.content.query.dto.js +25 -0
  66. package/dist/access/dtos/mail.log.content.query.dto.js.map +1 -0
  67. package/dist/access/dtos/mail.log.list.filter.dto.d.ts +11 -0
  68. package/dist/access/dtos/mail.log.list.filter.dto.js +75 -0
  69. package/dist/access/dtos/mail.log.list.filter.dto.js.map +1 -0
  70. package/dist/access/dtos/notification.type.list.filter.dto.d.ts +7 -0
  71. package/dist/access/dtos/notification.type.list.filter.dto.js +45 -0
  72. package/dist/access/dtos/notification.type.list.filter.dto.js.map +1 -0
  73. package/dist/access/dtos/set.business.email.alias.dto.d.ts +3 -0
  74. package/dist/access/dtos/set.business.email.alias.dto.js +27 -0
  75. package/dist/access/dtos/set.business.email.alias.dto.js.map +1 -0
  76. package/dist/access/dtos/set.business.property.dto.d.ts +10 -0
  77. package/dist/access/dtos/set.business.property.dto.js +64 -0
  78. package/dist/access/dtos/set.business.property.dto.js.map +1 -0
  79. package/dist/access/dtos/set.notification.type.preference.dto.d.ts +5 -0
  80. package/dist/access/dtos/set.notification.type.preference.dto.js +34 -0
  81. package/dist/access/dtos/set.notification.type.preference.dto.js.map +1 -0
  82. package/dist/access/dtos/update.developer.business.dto.d.ts +8 -0
  83. package/dist/access/dtos/update.developer.business.dto.js +61 -0
  84. package/dist/access/dtos/update.developer.business.dto.js.map +1 -0
  85. package/dist/access/dtos/update.notification.type.dto.d.ts +13 -0
  86. package/dist/access/dtos/update.notification.type.dto.js +72 -0
  87. package/dist/access/dtos/update.notification.type.dto.js.map +1 -0
  88. package/dist/access/entities/access.business.entity.d.ts +1 -0
  89. package/dist/access/entities/access.business.entity.js +4 -0
  90. package/dist/access/entities/access.business.entity.js.map +1 -1
  91. package/dist/access/entities/access.mail.log.entity.d.ts +6 -0
  92. package/dist/access/entities/access.mail.log.entity.js +31 -0
  93. package/dist/access/entities/access.mail.log.entity.js.map +1 -0
  94. package/dist/access/entities/business.notification.type.preference.entity.d.ts +13 -0
  95. package/dist/access/entities/business.notification.type.preference.entity.js +54 -0
  96. package/dist/access/entities/business.notification.type.preference.entity.js.map +1 -0
  97. package/dist/access/entities/index.d.ts +4 -0
  98. package/dist/access/entities/index.js +4 -0
  99. package/dist/access/entities/index.js.map +1 -1
  100. package/dist/access/entities/notification.type.entity.d.ts +16 -0
  101. package/dist/access/entities/notification.type.entity.js +63 -0
  102. package/dist/access/entities/notification.type.entity.js.map +1 -0
  103. package/dist/access/entities/user.notification.type.preference.entity.d.ts +15 -0
  104. package/dist/access/entities/user.notification.type.preference.entity.js +63 -0
  105. package/dist/access/entities/user.notification.type.preference.entity.js.map +1 -0
  106. package/dist/access/enums/index.d.ts +3 -0
  107. package/dist/access/enums/index.js +3 -0
  108. package/dist/access/enums/index.js.map +1 -1
  109. package/dist/access/enums/notification.channel.type.enum.d.ts +2 -1
  110. package/dist/access/enums/notification.channel.type.enum.js +1 -0
  111. package/dist/access/enums/notification.channel.type.enum.js.map +1 -1
  112. package/dist/access/enums/notification.suppression.reason.enum.d.ts +6 -0
  113. package/dist/access/enums/notification.suppression.reason.enum.js +11 -0
  114. package/dist/access/enums/notification.suppression.reason.enum.js.map +1 -0
  115. package/dist/access/enums/notification.type.audience.enum.d.ts +5 -0
  116. package/dist/access/enums/notification.type.audience.enum.js +10 -0
  117. package/dist/access/enums/notification.type.audience.enum.js.map +1 -0
  118. package/dist/access/enums/notification.type.control.enum.d.ts +4 -0
  119. package/dist/access/enums/notification.type.control.enum.js +9 -0
  120. package/dist/access/enums/notification.type.control.enum.js.map +1 -0
  121. package/dist/access/es6.classes.d.ts +49 -14
  122. package/dist/access/es6.classes.js +98 -1
  123. package/dist/access/es6.classes.js.map +1 -1
  124. package/dist/access/interfaces/business.email.alias.interface.d.ts +3 -0
  125. package/dist/access/interfaces/business.email.alias.interface.js +3 -0
  126. package/dist/access/interfaces/business.email.alias.interface.js.map +1 -0
  127. package/dist/access/interfaces/business.notification.type.preference.row.interface.d.ts +14 -0
  128. package/dist/access/interfaces/business.notification.type.preference.row.interface.js +3 -0
  129. package/dist/access/interfaces/business.notification.type.preference.row.interface.js.map +1 -0
  130. package/dist/access/interfaces/catalogued.notification.type.interface.d.ts +10 -0
  131. package/dist/access/interfaces/catalogued.notification.type.interface.js +3 -0
  132. package/dist/access/interfaces/catalogued.notification.type.interface.js.map +1 -0
  133. package/dist/access/interfaces/dropped.notification.recipient.interface.d.ts +5 -0
  134. package/dist/access/interfaces/dropped.notification.recipient.interface.js +3 -0
  135. package/dist/access/interfaces/dropped.notification.recipient.interface.js.map +1 -0
  136. package/dist/access/interfaces/emithook.email.status.event.interface.d.ts +23 -0
  137. package/dist/access/interfaces/emithook.email.status.event.interface.js +3 -0
  138. package/dist/access/interfaces/emithook.email.status.event.interface.js.map +1 -0
  139. package/dist/access/interfaces/emithook.template.email.request.interface.d.ts +15 -0
  140. package/dist/access/interfaces/emithook.template.email.request.interface.js +3 -0
  141. package/dist/access/interfaces/emithook.template.email.request.interface.js.map +1 -0
  142. package/dist/access/interfaces/emithook.template.email.result.interface.d.ts +6 -0
  143. package/dist/access/interfaces/emithook.template.email.result.interface.js +3 -0
  144. package/dist/access/interfaces/emithook.template.email.result.interface.js.map +1 -0
  145. package/dist/access/interfaces/index.d.ts +18 -0
  146. package/dist/access/interfaces/index.js +18 -0
  147. package/dist/access/interfaces/index.js.map +1 -1
  148. package/dist/access/interfaces/legacy.notification.preference.provider.interface.d.ts +5 -0
  149. package/dist/access/interfaces/legacy.notification.preference.provider.interface.js +3 -0
  150. package/dist/access/interfaces/legacy.notification.preference.provider.interface.js.map +1 -0
  151. package/dist/access/interfaces/notification.preference.request.interface.d.ts +9 -0
  152. package/dist/access/interfaces/notification.preference.request.interface.js +3 -0
  153. package/dist/access/interfaces/notification.preference.request.interface.js.map +1 -0
  154. package/dist/access/interfaces/notification.recipient.interface.d.ts +5 -0
  155. package/dist/access/interfaces/notification.recipient.interface.js +3 -0
  156. package/dist/access/interfaces/notification.recipient.interface.js.map +1 -0
  157. package/dist/access/interfaces/notification.send.identifiers.interface.d.ts +6 -0
  158. package/dist/access/interfaces/notification.send.identifiers.interface.js +3 -0
  159. package/dist/access/interfaces/notification.send.identifiers.interface.js.map +1 -0
  160. package/dist/access/interfaces/notification.send.recipient.interface.d.ts +5 -0
  161. package/dist/access/interfaces/notification.send.recipient.interface.js +3 -0
  162. package/dist/access/interfaces/notification.send.recipient.interface.js.map +1 -0
  163. package/dist/access/interfaces/notification.type.sources.interface.d.ts +5 -0
  164. package/dist/access/interfaces/notification.type.sources.interface.js +3 -0
  165. package/dist/access/interfaces/notification.type.sources.interface.js.map +1 -0
  166. package/dist/access/interfaces/notification.type.usage.interface.d.ts +12 -0
  167. package/dist/access/interfaces/notification.type.usage.interface.js +3 -0
  168. package/dist/access/interfaces/notification.type.usage.interface.js.map +1 -0
  169. package/dist/access/interfaces/resolve.notification.recipients.input.interface.d.ts +10 -0
  170. package/dist/access/interfaces/resolve.notification.recipients.input.interface.js +3 -0
  171. package/dist/access/interfaces/resolve.notification.recipients.input.interface.js.map +1 -0
  172. package/dist/access/interfaces/resolve.notification.recipients.result.interface.d.ts +10 -0
  173. package/dist/access/interfaces/resolve.notification.recipients.result.interface.js +3 -0
  174. package/dist/access/interfaces/resolve.notification.recipients.result.interface.js.map +1 -0
  175. package/dist/access/interfaces/send.emithook.template.email.options.interface.d.ts +18 -0
  176. package/dist/access/interfaces/send.emithook.template.email.options.interface.js +3 -0
  177. package/dist/access/interfaces/send.emithook.template.email.options.interface.js.map +1 -0
  178. package/dist/access/interfaces/user.notification.type.preference.row.interface.d.ts +11 -0
  179. package/dist/access/interfaces/user.notification.type.preference.row.interface.js +3 -0
  180. package/dist/access/interfaces/user.notification.type.preference.row.interface.js.map +1 -0
  181. package/dist/access/jobs/handle.emithook.email.job.js +1 -1
  182. package/dist/access/jobs/handle.emithook.email.status.job.d.ts +8 -0
  183. package/dist/access/jobs/handle.emithook.email.status.job.js +31 -0
  184. package/dist/access/jobs/handle.emithook.email.status.job.js.map +1 -0
  185. package/dist/access/jobs/index.d.ts +2 -0
  186. package/dist/access/jobs/index.js +2 -0
  187. package/dist/access/jobs/index.js.map +1 -1
  188. package/dist/access/jobs/poll.emithook.email.inbox.job.js +1 -1
  189. package/dist/access/jobs/poll.emithook.email.inbox.job.js.map +1 -1
  190. package/dist/access/jobs/poll.emithook.email.sqs.job.d.ts +3 -1
  191. package/dist/access/jobs/poll.emithook.email.sqs.job.js +11 -3
  192. package/dist/access/jobs/poll.emithook.email.sqs.job.js.map +1 -1
  193. package/dist/access/jobs/reconcile.emithook.email.status.job.d.ts +15 -0
  194. package/dist/access/jobs/reconcile.emithook.email.status.job.js +38 -0
  195. package/dist/access/jobs/reconcile.emithook.email.status.job.js.map +1 -0
  196. package/dist/access/libraries/apply.notification.preferences.d.ts +12 -0
  197. package/dist/access/libraries/apply.notification.preferences.js +51 -0
  198. package/dist/access/libraries/apply.notification.preferences.js.map +1 -0
  199. package/dist/access/libraries/delete.business.property.d.ts +7 -0
  200. package/dist/access/libraries/delete.business.property.js +18 -0
  201. package/dist/access/libraries/delete.business.property.js.map +1 -0
  202. package/dist/access/libraries/index.d.ts +16 -0
  203. package/dist/access/libraries/index.js +16 -0
  204. package/dist/access/libraries/index.js.map +1 -1
  205. package/dist/access/libraries/load.notification.preference.context.d.ts +10 -0
  206. package/dist/access/libraries/load.notification.preference.context.js +78 -0
  207. package/dist/access/libraries/load.notification.preference.context.js.map +1 -0
  208. package/dist/access/libraries/notification.type.catalogue.d.ts +12 -0
  209. package/dist/access/libraries/notification.type.catalogue.js +72 -0
  210. package/dist/access/libraries/notification.type.catalogue.js.map +1 -0
  211. package/dist/access/libraries/present.business.property.d.ts +4 -0
  212. package/dist/access/libraries/present.business.property.js +13 -0
  213. package/dist/access/libraries/present.business.property.js.map +1 -0
  214. package/dist/access/libraries/process.application.menu.js +6 -7
  215. package/dist/access/libraries/process.application.menu.js.map +1 -1
  216. package/dist/access/libraries/process.business.property.data.d.ts +6 -0
  217. package/dist/access/libraries/process.business.property.data.js +60 -20
  218. package/dist/access/libraries/process.business.property.data.js.map +1 -1
  219. package/dist/access/libraries/process.business.property.list.d.ts +4 -0
  220. package/dist/access/libraries/process.business.property.list.js +44 -5
  221. package/dist/access/libraries/process.business.property.list.js.map +1 -1
  222. package/dist/access/libraries/process.developer.menu.d.ts +2 -1
  223. package/dist/access/libraries/process.developer.menu.js +50 -20
  224. package/dist/access/libraries/process.developer.menu.js.map +1 -1
  225. package/dist/access/libraries/process.email.notification.d.ts +19 -3
  226. package/dist/access/libraries/process.email.notification.js +150 -4
  227. package/dist/access/libraries/process.email.notification.js.map +1 -1
  228. package/dist/access/libraries/process.emithook.email.status.d.ts +7 -0
  229. package/dist/access/libraries/process.emithook.email.status.js +40 -0
  230. package/dist/access/libraries/process.emithook.email.status.js.map +1 -0
  231. package/dist/access/libraries/process.mail.log.list.d.ts +25 -0
  232. package/dist/access/libraries/process.mail.log.list.js +90 -0
  233. package/dist/access/libraries/process.mail.log.list.js.map +1 -0
  234. package/dist/access/libraries/read.eml.attachments.js +1 -3
  235. package/dist/access/libraries/read.eml.attachments.js.map +1 -1
  236. package/dist/access/libraries/reconcile.emithook.email.status.d.ts +17 -0
  237. package/dist/access/libraries/reconcile.emithook.email.status.js +82 -0
  238. package/dist/access/libraries/reconcile.emithook.email.status.js.map +1 -0
  239. package/dist/access/libraries/record.emithook.email.events.d.ts +15 -0
  240. package/dist/access/libraries/record.emithook.email.events.js +139 -0
  241. package/dist/access/libraries/record.emithook.email.events.js.map +1 -0
  242. package/dist/access/libraries/resolve.emithook.template.key.d.ts +8 -0
  243. package/dist/access/libraries/resolve.emithook.template.key.js +29 -0
  244. package/dist/access/libraries/resolve.emithook.template.key.js.map +1 -0
  245. package/dist/access/libraries/resolve.notification.recipients.d.ts +7 -0
  246. package/dist/access/libraries/resolve.notification.recipients.js +51 -0
  247. package/dist/access/libraries/resolve.notification.recipients.js.map +1 -0
  248. package/dist/access/libraries/sanitize.email.addresses.d.ts +3 -1
  249. package/dist/access/libraries/sanitize.email.addresses.js +3 -2
  250. package/dist/access/libraries/sanitize.email.addresses.js.map +1 -1
  251. package/dist/access/libraries/send.email.notification.js +2 -0
  252. package/dist/access/libraries/send.email.notification.js.map +1 -1
  253. package/dist/access/libraries/send.emithook.template.email.d.ts +24 -0
  254. package/dist/access/libraries/send.emithook.template.email.js +188 -0
  255. package/dist/access/libraries/send.emithook.template.email.js.map +1 -0
  256. package/dist/access/libraries/set.business.property.d.ts +8 -0
  257. package/dist/access/libraries/set.business.property.js +17 -0
  258. package/dist/access/libraries/set.business.property.js.map +1 -0
  259. package/dist/access/libraries/show.mail.log.content.d.ts +12 -0
  260. package/dist/access/libraries/show.mail.log.content.js +22 -0
  261. package/dist/access/libraries/show.mail.log.content.js.map +1 -0
  262. package/dist/access/libraries/show.mail.log.d.ts +6 -0
  263. package/dist/access/libraries/show.mail.log.js +20 -0
  264. package/dist/access/libraries/show.mail.log.js.map +1 -0
  265. package/dist/access/libraries/update.developer.business.d.ts +8 -0
  266. package/dist/access/libraries/update.developer.business.js +39 -0
  267. package/dist/access/libraries/update.developer.business.js.map +1 -0
  268. package/dist/access/services/business.email.alias.service.d.ts +5 -0
  269. package/dist/access/services/business.email.alias.service.js +35 -0
  270. package/dist/access/services/business.email.alias.service.js.map +1 -0
  271. package/dist/access/services/business.email.service.js +1 -2
  272. package/dist/access/services/business.email.service.js.map +1 -1
  273. package/dist/access/services/business.property.service.js +3 -1
  274. package/dist/access/services/business.property.service.js.map +1 -1
  275. package/dist/access/services/emithook.service.d.ts +5 -1
  276. package/dist/access/services/emithook.service.js +22 -1
  277. package/dist/access/services/emithook.service.js.map +1 -1
  278. package/dist/access/services/index.d.ts +5 -0
  279. package/dist/access/services/index.js +5 -0
  280. package/dist/access/services/index.js.map +1 -1
  281. package/dist/access/services/legacy.notification.preference.service.d.ts +8 -0
  282. package/dist/access/services/legacy.notification.preference.service.js +41 -0
  283. package/dist/access/services/legacy.notification.preference.service.js.map +1 -0
  284. package/dist/access/services/mail.log.access.service.d.ts +14 -0
  285. package/dist/access/services/mail.log.access.service.js +52 -0
  286. package/dist/access/services/mail.log.access.service.js.map +1 -0
  287. package/dist/access/services/notification.service.d.ts +2 -0
  288. package/dist/access/services/notification.service.js +19 -4
  289. package/dist/access/services/notification.service.js.map +1 -1
  290. package/dist/access/services/notification.type.preference.service.d.ts +25 -0
  291. package/dist/access/services/notification.type.preference.service.js +172 -0
  292. package/dist/access/services/notification.type.preference.service.js.map +1 -0
  293. package/dist/access/services/notification.type.service.d.ts +17 -0
  294. package/dist/access/services/notification.type.service.js +124 -0
  295. package/dist/access/services/notification.type.service.js.map +1 -0
  296. package/dist/access/services/send.email.service.d.ts +5 -1
  297. package/dist/access/services/send.email.service.js +9 -3
  298. package/dist/access/services/send.email.service.js.map +1 -1
  299. package/dist/accessUtility/controllers/bulk.definition.controller.d.ts +1 -1
  300. package/dist/accessUtility/controllers/bulk.definition.controller.js +1 -1
  301. package/dist/accessUtility/controllers/bulk.definition.controller.js.map +1 -1
  302. package/dist/accessUtility/es6.classes.d.ts +5 -5
  303. package/dist/accessUtility/es6.classes.js +8 -8
  304. package/dist/accessUtility/es6.classes.js.map +1 -1
  305. package/dist/accessUtility/jobs/analyse.bulk.upload.job.d.ts +1 -1
  306. package/dist/accessUtility/jobs/analyse.bulk.upload.job.js +1 -1
  307. package/dist/accessUtility/jobs/analyse.bulk.upload.job.js.map +1 -1
  308. package/dist/accessUtility/libraries/analyse.bulk.upload.d.ts +1 -1
  309. package/dist/accessUtility/libraries/index.d.ts +0 -1
  310. package/dist/accessUtility/libraries/index.js +0 -1
  311. package/dist/accessUtility/libraries/index.js.map +1 -1
  312. package/dist/accessUtility/services/index.d.ts +1 -0
  313. package/dist/accessUtility/services/index.js +1 -0
  314. package/dist/accessUtility/services/index.js.map +1 -1
  315. package/dist/accessUtility/{libraries → services}/match.bulk.upload.columns.d.ts +1 -1
  316. package/dist/accessUtility/{libraries → services}/match.bulk.upload.columns.js +4 -4
  317. package/dist/accessUtility/services/match.bulk.upload.columns.js.map +1 -0
  318. package/dist/migrations/1792454400000-CreateSysNotificationTypesTable.d.ts +8 -0
  319. package/dist/migrations/1792454400000-CreateSysNotificationTypesTable.js +36 -0
  320. package/dist/migrations/1792454400000-CreateSysNotificationTypesTable.js.map +1 -0
  321. package/dist/migrations/1792454400001-CreateBzNotificationTypePreferencesTable.d.ts +8 -0
  322. package/dist/migrations/1792454400001-CreateBzNotificationTypePreferencesTable.js +31 -0
  323. package/dist/migrations/1792454400001-CreateBzNotificationTypePreferencesTable.js.map +1 -0
  324. package/dist/migrations/1792454400002-CreateBzUserNotificationTypePreferencesTable.d.ts +8 -0
  325. package/dist/migrations/1792454400002-CreateBzUserNotificationTypePreferencesTable.js +32 -0
  326. package/dist/migrations/1792454400002-CreateBzUserNotificationTypePreferencesTable.js.map +1 -0
  327. package/dist/migrations/1792454400003-AddSmsNotificationChannelDataSeederTable.d.ts +5 -0
  328. package/dist/migrations/1792454400003-AddSmsNotificationChannelDataSeederTable.js +21 -0
  329. package/dist/migrations/1792454400003-AddSmsNotificationChannelDataSeederTable.js.map +1 -0
  330. package/dist/migrations/1792532792345-AddBusinessIdSysMailLogsTable.d.ts +7 -0
  331. package/dist/migrations/1792532792345-AddBusinessIdSysMailLogsTable.js +20 -0
  332. package/dist/migrations/1792532792345-AddBusinessIdSysMailLogsTable.js.map +1 -0
  333. package/dist/migrations/1792573736107-AddEmithookIndexSysMailLogsTable.d.ts +5 -0
  334. package/dist/migrations/1792573736107-AddEmithookIndexSysMailLogsTable.js +14 -0
  335. package/dist/migrations/1792573736107-AddEmithookIndexSysMailLogsTable.js.map +1 -0
  336. package/package.json +1 -1
  337. package/dist/accessUtility/libraries/match.bulk.upload.columns.js.map +0 -1
@@ -0,0 +1,10 @@
1
+ import { NotificationTypeAudienceEnum } from '../enums/notification.type.audience.enum';
2
+ import { NotificationTypeControlEnum } from '../enums/notification.type.control.enum';
3
+ export interface CataloguedNotificationTypeInterface {
4
+ id: number;
5
+ identifier: string;
6
+ audience: NotificationTypeAudienceEnum;
7
+ control: NotificationTypeControlEnum;
8
+ channels: number[];
9
+ active: boolean;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=catalogued.notification.type.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogued.notification.type.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/catalogued.notification.type.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { NotificationSuppressionReasonEnum } from '../enums/notification.suppression.reason.enum';
2
+ import { NotificationRecipientInterface } from './notification.recipient.interface';
3
+ export interface DroppedNotificationRecipientInterface extends NotificationRecipientInterface {
4
+ reason: NotificationSuppressionReasonEnum;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=dropped.notification.recipient.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropped.notification.recipient.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/dropped.notification.recipient.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ export interface EmithookEmailStatusEventInterface {
2
+ id?: string;
3
+ type: string;
4
+ subtype?: string | null;
5
+ occurred_at: string;
6
+ email_id: string;
7
+ recipient?: string | null;
8
+ smtp?: {
9
+ code?: string | null;
10
+ diagnostic?: string | null;
11
+ } | null;
12
+ reason?: string | null;
13
+ template?: {
14
+ key?: string;
15
+ revision?: number;
16
+ } | null;
17
+ content?: {
18
+ available?: boolean;
19
+ sha256?: string;
20
+ bytes?: number;
21
+ } | null;
22
+ metadata?: Record<string, any> | null;
23
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=emithook.email.status.event.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emithook.email.status.event.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/emithook.email.status.event.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ export interface EmithookTemplateEmailRequestInterface {
2
+ from: string;
3
+ to: string[];
4
+ cc?: string[];
5
+ bcc?: string[];
6
+ reply_to?: string;
7
+ template: string;
8
+ data: Record<string, any>;
9
+ variant?: string;
10
+ metadata?: Record<string, string>;
11
+ attachments?: {
12
+ url: string;
13
+ filename?: string;
14
+ }[];
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=emithook.template.email.request.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emithook.template.email.request.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/emithook.template.email.request.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { AccessMailLogEntity } from '../entities/access.mail.log.entity';
2
+ export interface EmithookTemplateEmailResultInterface {
3
+ sent: boolean;
4
+ log?: AccessMailLogEntity;
5
+ reason?: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=emithook.template.email.result.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emithook.template.email.result.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/emithook.template.email.result.interface.ts"],"names":[],"mappings":""}
@@ -2,5 +2,23 @@ export * from './alias.lookup.options.interface';
2
2
  export * from './alias.mapping.input.interface';
3
3
  export * from './alias.search.match.interface';
4
4
  export * from './alias.search.query.interface';
5
+ export * from './business.email.alias.interface';
6
+ export * from './business.notification.type.preference.row.interface';
7
+ export * from './catalogued.notification.type.interface';
8
+ export * from './dropped.notification.recipient.interface';
5
9
  export * from './emithook.email.body.interface';
10
+ export * from './emithook.email.status.event.interface';
11
+ export * from './emithook.template.email.request.interface';
12
+ export * from './emithook.template.email.result.interface';
6
13
  export * from './inbound.email.message.interface';
14
+ export * from './legacy.notification.preference.provider.interface';
15
+ export * from './notification.preference.request.interface';
16
+ export * from './notification.recipient.interface';
17
+ export * from './notification.send.identifiers.interface';
18
+ export * from './notification.send.recipient.interface';
19
+ export * from './notification.type.sources.interface';
20
+ export * from './notification.type.usage.interface';
21
+ export * from './resolve.notification.recipients.input.interface';
22
+ export * from './resolve.notification.recipients.result.interface';
23
+ export * from './send.emithook.template.email.options.interface';
24
+ export * from './user.notification.type.preference.row.interface';
@@ -18,6 +18,24 @@ __exportStar(require("./alias.lookup.options.interface"), exports);
18
18
  __exportStar(require("./alias.mapping.input.interface"), exports);
19
19
  __exportStar(require("./alias.search.match.interface"), exports);
20
20
  __exportStar(require("./alias.search.query.interface"), exports);
21
+ __exportStar(require("./business.email.alias.interface"), exports);
22
+ __exportStar(require("./business.notification.type.preference.row.interface"), exports);
23
+ __exportStar(require("./catalogued.notification.type.interface"), exports);
24
+ __exportStar(require("./dropped.notification.recipient.interface"), exports);
21
25
  __exportStar(require("./emithook.email.body.interface"), exports);
26
+ __exportStar(require("./emithook.email.status.event.interface"), exports);
27
+ __exportStar(require("./emithook.template.email.request.interface"), exports);
28
+ __exportStar(require("./emithook.template.email.result.interface"), exports);
22
29
  __exportStar(require("./inbound.email.message.interface"), exports);
30
+ __exportStar(require("./legacy.notification.preference.provider.interface"), exports);
31
+ __exportStar(require("./notification.preference.request.interface"), exports);
32
+ __exportStar(require("./notification.recipient.interface"), exports);
33
+ __exportStar(require("./notification.send.identifiers.interface"), exports);
34
+ __exportStar(require("./notification.send.recipient.interface"), exports);
35
+ __exportStar(require("./notification.type.sources.interface"), exports);
36
+ __exportStar(require("./notification.type.usage.interface"), exports);
37
+ __exportStar(require("./resolve.notification.recipients.input.interface"), exports);
38
+ __exportStar(require("./resolve.notification.recipients.result.interface"), exports);
39
+ __exportStar(require("./send.emithook.template.email.options.interface"), exports);
40
+ __exportStar(require("./user.notification.type.preference.row.interface"), exports);
23
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,mEAAiD;AACjD,kEAAgD;AAChD,iEAA+C;AAC/C,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,mEAAiD;AACjD,kEAAgD;AAChD,iEAA+C;AAC/C,iEAA+C;AAC/C,mEAAiD;AACjD,wFAAsE;AACtE,2EAAyD;AACzD,6EAA2D;AAC3D,kEAAgD;AAChD,0EAAwD;AACxD,8EAA4D;AAC5D,6EAA2D;AAC3D,oEAAkD;AAClD,sFAAoE;AACpE,8EAA4D;AAC5D,qEAAmD;AACnD,4EAA0D;AAC1D,0EAAwD;AACxD,wEAAsD;AACtD,sEAAoD;AACpD,oFAAkE;AAClE,qFAAmE;AACnE,mFAAiE;AACjE,oFAAkE"}
@@ -0,0 +1,5 @@
1
+ export interface LegacyNotificationPreferenceProviderInterface {
2
+ getBusinessActive(businessId: number, notificationTypeId: number): Promise<boolean | null>;
3
+ setBusinessActive(businessId: number, notificationTypeId: number, active: boolean): Promise<void>;
4
+ setGlobalActive(notificationTypeId: number, active: boolean): Promise<void>;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=legacy.notification.preference.provider.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy.notification.preference.provider.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/legacy.notification.preference.provider.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { NotificationChannelTypeEnum } from '../enums/notification.channel.type.enum';
2
+ import { NotificationSendIdentifiersInterface } from './notification.send.identifiers.interface';
3
+ import { NotificationSendRecipientInterface } from './notification.send.recipient.interface';
4
+ export interface NotificationPreferenceRequestInterface {
5
+ identifiers: NotificationSendIdentifiersInterface;
6
+ channel: NotificationChannelTypeEnum;
7
+ business_id?: number | null;
8
+ recipients: NotificationSendRecipientInterface[];
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification.preference.request.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.preference.request.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/notification.preference.request.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface NotificationRecipientInterface {
2
+ address: string;
3
+ role: 'to' | 'cc' | 'bcc';
4
+ user_ids: number[];
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification.recipient.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.recipient.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/notification.recipient.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface NotificationSendIdentifiersInterface {
2
+ type?: string;
3
+ notification?: string;
4
+ email_template?: string;
5
+ email_notification?: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification.send.identifiers.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.send.identifiers.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/notification.send.identifiers.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface NotificationSendRecipientInterface {
2
+ address: string;
3
+ role: 'to' | 'cc' | 'bcc';
4
+ user_id?: number | null;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification.send.recipient.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.send.recipient.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/notification.send.recipient.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface NotificationTypeSourcesInterface {
2
+ email_templates?: string[];
3
+ notification_identifiers?: string[];
4
+ email_notification_identifiers?: string[];
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification.type.sources.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.type.sources.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/notification.type.sources.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export interface NotificationTypeUsageInterface {
2
+ notification_type_id: number;
3
+ email: {
4
+ sent: number;
5
+ suppressed: number;
6
+ };
7
+ turned_off: {
8
+ channel_id: number;
9
+ businesses: number;
10
+ users: number;
11
+ }[];
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification.type.usage.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.type.usage.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/notification.type.usage.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { NotificationChannelTypeEnum } from '../enums/notification.channel.type.enum';
2
+ import { CataloguedNotificationTypeInterface } from './catalogued.notification.type.interface';
3
+ import { NotificationRecipientInterface } from './notification.recipient.interface';
4
+ export interface ResolveNotificationRecipientsInputInterface {
5
+ type: CataloguedNotificationTypeInterface | null;
6
+ channel: NotificationChannelTypeEnum;
7
+ businessActive: boolean | null;
8
+ recipients: NotificationRecipientInterface[];
9
+ userOptOuts: Set<number>;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=resolve.notification.recipients.input.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve.notification.recipients.input.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/resolve.notification.recipients.input.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { NotificationSuppressionReasonEnum } from '../enums/notification.suppression.reason.enum';
2
+ import { DroppedNotificationRecipientInterface } from './dropped.notification.recipient.interface';
3
+ import { NotificationRecipientInterface } from './notification.recipient.interface';
4
+ export interface ResolveNotificationRecipientsResultInterface {
5
+ send: boolean;
6
+ reason?: NotificationSuppressionReasonEnum;
7
+ recipients: NotificationRecipientInterface[];
8
+ dropped: DroppedNotificationRecipientInterface[];
9
+ type_identifier?: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=resolve.notification.recipients.result.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve.notification.recipients.result.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/resolve.notification.recipients.result.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ export interface SendEmithookTemplateEmailOptionsInterface {
2
+ to: string[];
3
+ cc: string[];
4
+ bcc: string[];
5
+ from?: string;
6
+ replyTo?: string | string[];
7
+ business_id?: number;
8
+ template: string;
9
+ data: Record<string, any>;
10
+ variant?: string;
11
+ files?: {
12
+ file: string;
13
+ name?: string;
14
+ type?: string;
15
+ }[];
16
+ subject: string;
17
+ metadata?: any;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=send.emithook.template.email.options.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send.emithook.template.email.options.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/send.emithook.template.email.options.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { NotificationTypeAudienceEnum } from '../enums/notification.type.audience.enum';
2
+ export interface UserNotificationTypePreferenceRowInterface {
3
+ notification_type_id: number;
4
+ identifier: string;
5
+ name: string;
6
+ description: string;
7
+ category: string;
8
+ audience: NotificationTypeAudienceEnum;
9
+ channel_id: number;
10
+ state: 'on' | 'off' | 'locked' | 'off_by_business';
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user.notification.type.preference.row.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.notification.type.preference.row.interface.js","sourceRoot":"","sources":["../../../src/access/interfaces/user.notification.type.preference.row.interface.ts"],"names":[],"mappings":""}
@@ -20,7 +20,7 @@ const emithook_service_1 = require("../services/emithook.service");
20
20
  const sync_email_message_metrics_job_1 = require("./sync.email.message.metrics.job");
21
21
  let HandleEmithookEmailJob = class HandleEmithookEmailJob extends nestjs_utility_services_1.CommonJob {
22
22
  constructor(queueService, uploadService, emithookService, syncEmailMessageMetricsJob) {
23
- super('3756d42c11dc50a8cc783217804b4217');
23
+ super('36af7f5abc379637fe4788c480ba513b');
24
24
  this.queueService = queueService;
25
25
  this.uploadService = uploadService;
26
26
  this.emithookService = emithookService;
@@ -0,0 +1,8 @@
1
+ import { CommonJob, QueueService } from '@servicelabsco/nestjs-utility-services';
2
+ import { EmithookEnvelopeDto } from '../dtos/emithook.envelope.dto';
3
+ export declare class HandleEmithookEmailStatusJob extends CommonJob {
4
+ protected readonly queueService: QueueService;
5
+ protected priority: number;
6
+ constructor(queueService: QueueService);
7
+ handle(envelope: EmithookEnvelopeDto<any>): Promise<string | null>;
8
+ }
@@ -0,0 +1,31 @@
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.HandleEmithookEmailStatusJob = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ const process_emithook_email_status_1 = require("../libraries/process.emithook.email.status");
16
+ let HandleEmithookEmailStatusJob = class HandleEmithookEmailStatusJob extends nestjs_utility_services_1.CommonJob {
17
+ constructor(queueService) {
18
+ super('1fff1a2b7c91c61c8bf4add7ebba6a7e');
19
+ this.queueService = queueService;
20
+ this.priority = 10;
21
+ }
22
+ async handle(envelope) {
23
+ return new process_emithook_email_status_1.ProcessEmithookEmailStatus().process(envelope);
24
+ }
25
+ };
26
+ exports.HandleEmithookEmailStatusJob = HandleEmithookEmailStatusJob;
27
+ exports.HandleEmithookEmailStatusJob = HandleEmithookEmailStatusJob = __decorate([
28
+ (0, common_1.Injectable)(),
29
+ __metadata("design:paramtypes", [nestjs_utility_services_1.QueueService])
30
+ ], HandleEmithookEmailStatusJob);
31
+ //# sourceMappingURL=handle.emithook.email.status.job.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handle.emithook.email.status.job.js","sourceRoot":"","sources":["../../../src/access/jobs/handle.emithook.email.status.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAiF;AAEjF,8FAAwF;AAOjF,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,mCAAS;IAGvD,YAA+B,YAA0B;QACrD,KAAK,CAAC,kCAAkC,CAAC,CAAC;QADf,iBAAY,GAAZ,YAAY,CAAc;QAF/C,aAAQ,GAAG,EAAE,CAAC;IAIxB,CAAC;IAMD,KAAK,CAAC,MAAM,CAAC,QAAkC;QAC3C,OAAO,IAAI,0DAA0B,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC9D,CAAC;CACJ,CAAA;AAdY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,mBAAU,GAAE;qCAIoC,sCAAY;GAHhD,4BAA4B,CAcxC"}
@@ -23,11 +23,13 @@ export * from './gmail.integration.fetch.messages.job';
23
23
  export * from './group.member.job';
24
24
  export * from './group.role.job';
25
25
  export * from './handle.emithook.email.job';
26
+ export * from './handle.emithook.email.status.job';
26
27
  export * from './onhold.document.job';
27
28
  export * from './overriding.script.job';
28
29
  export * from './poll.emithook.email.inbox.job';
29
30
  export * from './poll.emithook.email.sqs.job';
30
31
  export * from './process.server.email.job';
32
+ export * from './reconcile.emithook.email.status.job';
31
33
  export * from './refresh.business.property.job';
32
34
  export * from './scheduled.report.item.job';
33
35
  export * from './scheduled.report.job';
@@ -39,11 +39,13 @@ __exportStar(require("./gmail.integration.fetch.messages.job"), exports);
39
39
  __exportStar(require("./group.member.job"), exports);
40
40
  __exportStar(require("./group.role.job"), exports);
41
41
  __exportStar(require("./handle.emithook.email.job"), exports);
42
+ __exportStar(require("./handle.emithook.email.status.job"), exports);
42
43
  __exportStar(require("./onhold.document.job"), exports);
43
44
  __exportStar(require("./overriding.script.job"), exports);
44
45
  __exportStar(require("./poll.emithook.email.inbox.job"), exports);
45
46
  __exportStar(require("./poll.emithook.email.sqs.job"), exports);
46
47
  __exportStar(require("./process.server.email.job"), exports);
48
+ __exportStar(require("./reconcile.emithook.email.status.job"), exports);
47
49
  __exportStar(require("./refresh.business.property.job"), exports);
48
50
  __exportStar(require("./scheduled.report.item.job"), exports);
49
51
  __exportStar(require("./scheduled.report.job"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,oDAAkC;AAClC,iEAA+C;AAC/C,yDAAuC;AACvC,4DAA0C;AAC1C,0DAAwC;AACxC,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,sDAAoC;AACpC,2DAAyC;AACzC,8DAA4C;AAC5C,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,wDAAsC;AACtC,4DAA0C;AAC1C,gEAA8C;AAC9C,gDAA8B;AAC9B,qDAAmC;AACnC,+DAA6C;AAC7C,iEAA+C;AAC/C,yEAAuD;AACvD,qDAAmC;AACnC,mDAAiC;AACjC,8DAA4C;AAC5C,wDAAsC;AACtC,0DAAwC;AACxC,kEAAgD;AAChD,gEAA8C;AAC9C,6DAA2C;AAC3C,kEAAgD;AAChD,8DAA4C;AAC5C,yDAAuC;AACvC,0EAAwD;AACxD,qEAAmD;AACnD,+DAA6C;AAC7C,+DAA6C;AAC7C,0DAAwC;AACxC,sDAAoC;AACpC,mEAAiD;AACjD,4DAA0C;AAC1C,kDAAgC;AAChC,kDAAgC;AAChC,6DAA2C;AAC3C,qDAAmC;AACnC,kEAAgD;AAChD,iEAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,oDAAkC;AAClC,iEAA+C;AAC/C,yDAAuC;AACvC,4DAA0C;AAC1C,0DAAwC;AACxC,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,sDAAoC;AACpC,2DAAyC;AACzC,8DAA4C;AAC5C,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,wDAAsC;AACtC,4DAA0C;AAC1C,gEAA8C;AAC9C,gDAA8B;AAC9B,qDAAmC;AACnC,+DAA6C;AAC7C,iEAA+C;AAC/C,yEAAuD;AACvD,qDAAmC;AACnC,mDAAiC;AACjC,8DAA4C;AAC5C,qEAAmD;AACnD,wDAAsC;AACtC,0DAAwC;AACxC,kEAAgD;AAChD,gEAA8C;AAC9C,6DAA2C;AAC3C,wEAAsD;AACtD,kEAAgD;AAChD,8DAA4C;AAC5C,yDAAuC;AACvC,0EAAwD;AACxD,qEAAmD;AACnD,+DAA6C;AAC7C,+DAA6C;AAC7C,0DAAwC;AACxC,sDAAoC;AACpC,mEAAiD;AACjD,4DAA0C;AAC1C,kDAAgC;AAChC,kDAAgC;AAChC,6DAA2C;AAC3C,qDAAmC;AACnC,kEAAgD;AAChD,iEAA+C"}
@@ -22,7 +22,7 @@ const DEFAULT_LOOKBACK_HOURS = 2;
22
22
  const MAX_PAGES = 20;
23
23
  let PollEmithookEmailInboxJob = class PollEmithookEmailInboxJob extends nestjs_utility_services_1.CommonJob {
24
24
  constructor(queueService, emithookService, handleEmithookEmailJob) {
25
- super('23303cbeb4b05aa00098a74cc25ef6af');
25
+ super('7158f74fd614f3df7d918dd010c73c71');
26
26
  this.queueService = queueService;
27
27
  this.emithookService = emithookService;
28
28
  this.handleEmithookEmailJob = handleEmithookEmailJob;
@@ -1 +1 @@
1
- {"version":3,"file":"poll.emithook.email.inbox.job.js","sourceRoot":"","sources":["../../../src/access/jobs/poll.emithook.email.inbox.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAiF;AACjF,qCAA2C;AAE3C,6EAAwE;AACxE,2EAAsE;AACtE,gFAA0E;AAE1E,mEAA+D;AAC/D,2EAAqE;AAGrE,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAGjC,MAAM,SAAS,GAAG,EAAE,CAAC;AAQd,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,mCAAS;IAKpD,YACuB,YAA0B,EAC5B,eAAgC,EAChC,sBAA8C;QAE/D,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAJvB,iBAAY,GAAZ,YAAY,CAAc;QAC5B,oBAAe,GAAf,eAAe,CA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ailJob } from './handle.emithook.email.job';
3
+ import { HandleEmithookEmailStatusJob } from './handle.emithook.email.status.job';
3
4
  export declare class PollEmithookEmailSqsJob extends CommonJob {
4
5
  protected readonly queueService: QueueService;
5
6
  private readonly sqsService;
6
7
  private readonly propertyService;
7
8
  protected readonly handleEmithookEmailJob: HandleEmithookEmailJob;
9
+ protected readonly handleEmithookEmailStatusJob: HandleEmithookEmailStatusJob;
8
10
  protected noDuplicate: boolean;
9
11
  protected priority: number;
10
12
  protected timeout: number;
11
13
  protected sqsQueue: string;
12
14
  protected countOfMessages: number;
13
15
  protected maxMessagePerSession: number;
14
- constructor(queueService: QueueService, sqsService: SqsService, propertyService: PropertyService, handleEmithookEmailJob: HandleEmithookEmailJob);
16
+ constructor(queueService: QueueService, sqsService: SqsService, propertyService: PropertyService, handleEmithookEmailJob: HandleEmithookEmailJob, handleEmithookEmailStatusJob: HandleEmithookEmailStatusJob);
15
17
  handle(): Promise<number>;
16
18
  private processMessages;
17
19
  private processMessage;
@@ -12,14 +12,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PollEmithookEmailSqsJob = void 0;
13
13
  const common_1 = require("@nestjs/common");
14
14
  const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ const process_emithook_email_status_1 = require("../libraries/process.emithook.email.status");
15
16
  const handle_emithook_email_job_1 = require("./handle.emithook.email.job");
17
+ const handle_emithook_email_status_job_1 = require("./handle.emithook.email.status.job");
16
18
  let PollEmithookEmailSqsJob = class PollEmithookEmailSqsJob extends nestjs_utility_services_1.CommonJob {
17
- constructor(queueService, sqsService, propertyService, handleEmithookEmailJob) {
18
- super('f238f9dd0611f012f55b0fc038390bdd');
19
+ constructor(queueService, sqsService, propertyService, handleEmithookEmailJob, handleEmithookEmailStatusJob) {
20
+ super('ca0adb284c36eea7e7bde9f58689030e');
19
21
  this.queueService = queueService;
20
22
  this.sqsService = sqsService;
21
23
  this.propertyService = propertyService;
22
24
  this.handleEmithookEmailJob = handleEmithookEmailJob;
25
+ this.handleEmithookEmailStatusJob = handleEmithookEmailStatusJob;
23
26
  this.noDuplicate = true;
24
27
  this.priority = 10;
25
28
  this.timeout = 600000;
@@ -60,6 +63,10 @@ let PollEmithookEmailSqsJob = class PollEmithookEmailSqsJob extends nestjs_utili
60
63
  }
61
64
  if (payload?.metadata?.source === 'https')
62
65
  return;
66
+ if (process_emithook_email_status_1.ProcessEmithookEmailStatus.isStatusEnvelope(payload)) {
67
+ await this.handleEmithookEmailStatusJob.dispatch(payload);
68
+ return;
69
+ }
63
70
  await this.handleEmithookEmailJob.dispatch(payload);
64
71
  }
65
72
  getFetchCount() {
@@ -78,6 +85,7 @@ exports.PollEmithookEmailSqsJob = PollEmithookEmailSqsJob = __decorate([
78
85
  __metadata("design:paramtypes", [nestjs_utility_services_1.QueueService,
79
86
  nestjs_utility_services_1.SqsService,
80
87
  nestjs_utility_services_1.PropertyService,
81
- handle_emithook_email_job_1.HandleEmithookEmailJob])
88
+ handle_emithook_email_job_1.HandleEmithookEmailJob,
89
+ handle_emithook_email_status_job_1.HandleEmithookEmailStatusJob])
82
90
  ], PollEmithookEmailSqsJob);
83
91
  //# sourceMappingURL=poll.emithook.email.sqs.job.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"poll.emithook.email.sqs.job.js","sourceRoot":"","sources":["../../../src/access/jobs/poll.emithook.email.sqs.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAkI;AAClI,2EAAqE;AAS9D,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,mCAAS;IASlD,YACuB,YAA0B,EAC5B,UAAsB,EACtB,eAAgC,EAC9B,sBAA8C;QAEjE,KAAK,CAAC,kCAAkC,CAAC,CAAC;QALvB,iBAAY,GAAZ,YAAY,CAAc;QAC5B,eAAU,GAAV,UAAU,CAAY;QACtB,oBAAe,GAAf,eAAe,CAAiB;QAC9B,2BAAsB,GAAtB,sBAAsB,CAAwB;QAZ3D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AAE,CAAC;IAC3B,CAAC;IAEO,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"}
@@ -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
+ }