@servicelabsco/slabs-access-manager 2.0.14 → 2.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (419) 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/alias.mapping.controller.d.ts +16 -0
  10. package/dist/access/controllers/alias.mapping.controller.js +93 -0
  11. package/dist/access/controllers/alias.mapping.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.email.controller.d.ts +2 -1
  19. package/dist/access/controllers/business.email.controller.js +6 -3
  20. package/dist/access/controllers/business.email.controller.js.map +1 -1
  21. package/dist/access/controllers/business.property.controller.d.ts +12 -4
  22. package/dist/access/controllers/business.property.controller.js +74 -7
  23. package/dist/access/controllers/business.property.controller.js.map +1 -1
  24. package/dist/access/controllers/developer.menu.controller.js.map +1 -1
  25. package/dist/access/controllers/developer.notification.type.controller.d.ts +16 -0
  26. package/dist/access/controllers/developer.notification.type.controller.js +91 -0
  27. package/dist/access/controllers/developer.notification.type.controller.js.map +1 -0
  28. package/dist/access/controllers/emithook.controller.d.ts +14 -0
  29. package/dist/access/controllers/emithook.controller.js +56 -0
  30. package/dist/access/controllers/emithook.controller.js.map +1 -0
  31. package/dist/access/controllers/index.d.ts +7 -0
  32. package/dist/access/controllers/index.js +7 -0
  33. package/dist/access/controllers/index.js.map +1 -1
  34. package/dist/access/controllers/mail.log.controller.d.ts +20 -0
  35. package/dist/access/controllers/mail.log.controller.js +76 -0
  36. package/dist/access/controllers/mail.log.controller.js.map +1 -0
  37. package/dist/access/controllers/notification.type.preference.controller.d.ts +12 -0
  38. package/dist/access/controllers/notification.type.preference.controller.js +59 -0
  39. package/dist/access/controllers/notification.type.preference.controller.js.map +1 -0
  40. package/dist/access/controllers/user.notification.type.preference.controller.d.ts +10 -0
  41. package/dist/access/controllers/user.notification.type.preference.controller.js +54 -0
  42. package/dist/access/controllers/user.notification.type.preference.controller.js.map +1 -0
  43. package/dist/access/dtos/add.alias.mapping.dto.d.ts +7 -0
  44. package/dist/access/dtos/add.alias.mapping.dto.js +49 -0
  45. package/dist/access/dtos/add.alias.mapping.dto.js.map +1 -0
  46. package/dist/access/dtos/add.business.email.dto.d.ts +4 -0
  47. package/dist/access/dtos/add.business.email.dto.js +34 -0
  48. package/dist/access/dtos/add.business.email.dto.js.map +1 -0
  49. package/dist/access/dtos/add.business.property.dto.d.ts +1 -0
  50. package/dist/access/dtos/add.business.property.dto.js +8 -0
  51. package/dist/access/dtos/add.business.property.dto.js.map +1 -1
  52. package/dist/access/dtos/business.email.attributes.dto.d.ts +1 -0
  53. package/dist/access/dtos/business.email.attributes.dto.js +6 -0
  54. package/dist/access/dtos/business.email.attributes.dto.js.map +1 -1
  55. package/dist/access/dtos/business.notification.type.preference.attributes.dto.d.ts +3 -0
  56. package/dist/access/dtos/business.notification.type.preference.attributes.dto.js +7 -0
  57. package/dist/access/dtos/business.notification.type.preference.attributes.dto.js.map +1 -0
  58. package/dist/access/dtos/business.property.identifier.param.dto.d.ts +3 -0
  59. package/dist/access/dtos/business.property.identifier.param.dto.js +25 -0
  60. package/dist/access/dtos/business.property.identifier.param.dto.js.map +1 -0
  61. package/dist/access/dtos/business.property.list.filter.dto.d.ts +4 -0
  62. package/dist/access/dtos/business.property.list.filter.dto.js +40 -0
  63. package/dist/access/dtos/business.property.list.filter.dto.js.map +1 -1
  64. package/dist/access/dtos/business.property.scope.dto.d.ts +3 -0
  65. package/dist/access/dtos/business.property.scope.dto.js +26 -0
  66. package/dist/access/dtos/business.property.scope.dto.js.map +1 -0
  67. package/dist/access/dtos/create.notification.type.dto.d.ts +14 -0
  68. package/dist/access/dtos/create.notification.type.dto.js +79 -0
  69. package/dist/access/dtos/create.notification.type.dto.js.map +1 -0
  70. package/dist/access/dtos/email.notification.payload.dto.d.ts +5 -0
  71. package/dist/access/dtos/email.notification.payload.dto.js.map +1 -1
  72. package/dist/access/dtos/emithook.envelope.dto.d.ts +38 -0
  73. package/dist/access/dtos/emithook.envelope.dto.js +16 -0
  74. package/dist/access/dtos/emithook.envelope.dto.js.map +1 -0
  75. package/dist/access/dtos/index.d.ts +15 -0
  76. package/dist/access/dtos/index.js +15 -0
  77. package/dist/access/dtos/index.js.map +1 -1
  78. package/dist/access/dtos/mail.log.content.query.dto.d.ts +4 -0
  79. package/dist/access/dtos/mail.log.content.query.dto.js +25 -0
  80. package/dist/access/dtos/mail.log.content.query.dto.js.map +1 -0
  81. package/dist/access/dtos/mail.log.list.filter.dto.d.ts +11 -0
  82. package/dist/access/dtos/mail.log.list.filter.dto.js +75 -0
  83. package/dist/access/dtos/mail.log.list.filter.dto.js.map +1 -0
  84. package/dist/access/dtos/notification.type.list.filter.dto.d.ts +7 -0
  85. package/dist/access/dtos/notification.type.list.filter.dto.js +45 -0
  86. package/dist/access/dtos/notification.type.list.filter.dto.js.map +1 -0
  87. package/dist/access/dtos/search.alias.mapping.dto.d.ts +7 -0
  88. package/dist/access/dtos/search.alias.mapping.dto.js +51 -0
  89. package/dist/access/dtos/search.alias.mapping.dto.js.map +1 -0
  90. package/dist/access/dtos/set.business.email.alias.dto.d.ts +3 -0
  91. package/dist/access/dtos/set.business.email.alias.dto.js +27 -0
  92. package/dist/access/dtos/set.business.email.alias.dto.js.map +1 -0
  93. package/dist/access/dtos/set.business.property.dto.d.ts +10 -0
  94. package/dist/access/dtos/set.business.property.dto.js +64 -0
  95. package/dist/access/dtos/set.business.property.dto.js.map +1 -0
  96. package/dist/access/dtos/set.notification.type.preference.dto.d.ts +5 -0
  97. package/dist/access/dtos/set.notification.type.preference.dto.js +34 -0
  98. package/dist/access/dtos/set.notification.type.preference.dto.js.map +1 -0
  99. package/dist/access/dtos/update.notification.type.dto.d.ts +13 -0
  100. package/dist/access/dtos/update.notification.type.dto.js +72 -0
  101. package/dist/access/dtos/update.notification.type.dto.js.map +1 -0
  102. package/dist/access/entities/access.mail.log.entity.d.ts +6 -0
  103. package/dist/access/entities/access.mail.log.entity.js +31 -0
  104. package/dist/access/entities/access.mail.log.entity.js.map +1 -0
  105. package/dist/access/entities/alias.mapping.entity.d.ts +11 -0
  106. package/dist/access/entities/alias.mapping.entity.js +51 -0
  107. package/dist/access/entities/alias.mapping.entity.js.map +1 -0
  108. package/dist/access/entities/business.email.entity.d.ts +1 -0
  109. package/dist/access/entities/business.email.entity.js +4 -0
  110. package/dist/access/entities/business.email.entity.js.map +1 -1
  111. package/dist/access/entities/business.notification.type.preference.entity.d.ts +13 -0
  112. package/dist/access/entities/business.notification.type.preference.entity.js +54 -0
  113. package/dist/access/entities/business.notification.type.preference.entity.js.map +1 -0
  114. package/dist/access/entities/index.d.ts +5 -0
  115. package/dist/access/entities/index.js +5 -0
  116. package/dist/access/entities/index.js.map +1 -1
  117. package/dist/access/entities/notification.type.entity.d.ts +16 -0
  118. package/dist/access/entities/notification.type.entity.js +63 -0
  119. package/dist/access/entities/notification.type.entity.js.map +1 -0
  120. package/dist/access/entities/user.notification.type.preference.entity.d.ts +15 -0
  121. package/dist/access/entities/user.notification.type.preference.entity.js +63 -0
  122. package/dist/access/entities/user.notification.type.preference.entity.js.map +1 -0
  123. package/dist/access/enums/business.email.type.enum.d.ts +3 -0
  124. package/dist/access/enums/business.email.type.enum.js +8 -0
  125. package/dist/access/enums/business.email.type.enum.js.map +1 -0
  126. package/dist/access/enums/index.d.ts +4 -0
  127. package/dist/access/enums/index.js +4 -0
  128. package/dist/access/enums/index.js.map +1 -1
  129. package/dist/access/enums/notification.channel.type.enum.d.ts +2 -1
  130. package/dist/access/enums/notification.channel.type.enum.js +1 -0
  131. package/dist/access/enums/notification.channel.type.enum.js.map +1 -1
  132. package/dist/access/enums/notification.suppression.reason.enum.d.ts +6 -0
  133. package/dist/access/enums/notification.suppression.reason.enum.js +11 -0
  134. package/dist/access/enums/notification.suppression.reason.enum.js.map +1 -0
  135. package/dist/access/enums/notification.type.audience.enum.d.ts +5 -0
  136. package/dist/access/enums/notification.type.audience.enum.js +10 -0
  137. package/dist/access/enums/notification.type.audience.enum.js.map +1 -0
  138. package/dist/access/enums/notification.type.control.enum.d.ts +4 -0
  139. package/dist/access/enums/notification.type.control.enum.js +9 -0
  140. package/dist/access/enums/notification.type.control.enum.js.map +1 -0
  141. package/dist/access/es6.classes.d.ts +61 -14
  142. package/dist/access/es6.classes.js +127 -1
  143. package/dist/access/es6.classes.js.map +1 -1
  144. package/dist/access/index.d.ts +1 -0
  145. package/dist/access/index.js +1 -0
  146. package/dist/access/index.js.map +1 -1
  147. package/dist/access/interfaces/alias.lookup.options.interface.d.ts +4 -0
  148. package/dist/access/interfaces/alias.lookup.options.interface.js +3 -0
  149. package/dist/access/interfaces/alias.lookup.options.interface.js.map +1 -0
  150. package/dist/access/interfaces/alias.mapping.input.interface.d.ts +7 -0
  151. package/dist/access/interfaces/alias.mapping.input.interface.js +3 -0
  152. package/dist/access/interfaces/alias.mapping.input.interface.js.map +1 -0
  153. package/dist/access/interfaces/alias.search.match.interface.d.ts +8 -0
  154. package/dist/access/interfaces/alias.search.match.interface.js +3 -0
  155. package/dist/access/interfaces/alias.search.match.interface.js.map +1 -0
  156. package/dist/access/interfaces/alias.search.query.interface.d.ts +7 -0
  157. package/dist/access/interfaces/alias.search.query.interface.js +3 -0
  158. package/dist/access/interfaces/alias.search.query.interface.js.map +1 -0
  159. package/dist/access/interfaces/business.email.alias.interface.d.ts +3 -0
  160. package/dist/access/interfaces/business.email.alias.interface.js +3 -0
  161. package/dist/access/interfaces/business.email.alias.interface.js.map +1 -0
  162. package/dist/access/interfaces/business.notification.type.preference.row.interface.d.ts +14 -0
  163. package/dist/access/interfaces/business.notification.type.preference.row.interface.js +3 -0
  164. package/dist/access/interfaces/business.notification.type.preference.row.interface.js.map +1 -0
  165. package/dist/access/interfaces/catalogued.notification.type.interface.d.ts +10 -0
  166. package/dist/access/interfaces/catalogued.notification.type.interface.js +3 -0
  167. package/dist/access/interfaces/catalogued.notification.type.interface.js.map +1 -0
  168. package/dist/access/interfaces/dropped.notification.recipient.interface.d.ts +5 -0
  169. package/dist/access/interfaces/dropped.notification.recipient.interface.js +3 -0
  170. package/dist/access/interfaces/dropped.notification.recipient.interface.js.map +1 -0
  171. package/dist/access/interfaces/emithook.email.body.interface.d.ts +24 -0
  172. package/dist/access/interfaces/emithook.email.body.interface.js +3 -0
  173. package/dist/access/interfaces/emithook.email.body.interface.js.map +1 -0
  174. package/dist/access/interfaces/emithook.email.status.event.interface.d.ts +23 -0
  175. package/dist/access/interfaces/emithook.email.status.event.interface.js +3 -0
  176. package/dist/access/interfaces/emithook.email.status.event.interface.js.map +1 -0
  177. package/dist/access/interfaces/emithook.template.email.request.interface.d.ts +15 -0
  178. package/dist/access/interfaces/emithook.template.email.request.interface.js +3 -0
  179. package/dist/access/interfaces/emithook.template.email.request.interface.js.map +1 -0
  180. package/dist/access/interfaces/emithook.template.email.result.interface.d.ts +6 -0
  181. package/dist/access/interfaces/emithook.template.email.result.interface.js +3 -0
  182. package/dist/access/interfaces/emithook.template.email.result.interface.js.map +1 -0
  183. package/dist/access/interfaces/inbound.email.message.interface.d.ts +31 -0
  184. package/dist/access/interfaces/inbound.email.message.interface.js +3 -0
  185. package/dist/access/interfaces/inbound.email.message.interface.js.map +1 -0
  186. package/dist/access/interfaces/index.d.ts +24 -0
  187. package/dist/access/interfaces/index.js +41 -0
  188. package/dist/access/interfaces/index.js.map +1 -0
  189. package/dist/access/interfaces/legacy.notification.preference.provider.interface.d.ts +5 -0
  190. package/dist/access/interfaces/legacy.notification.preference.provider.interface.js +3 -0
  191. package/dist/access/interfaces/legacy.notification.preference.provider.interface.js.map +1 -0
  192. package/dist/access/interfaces/notification.preference.request.interface.d.ts +9 -0
  193. package/dist/access/interfaces/notification.preference.request.interface.js +3 -0
  194. package/dist/access/interfaces/notification.preference.request.interface.js.map +1 -0
  195. package/dist/access/interfaces/notification.recipient.interface.d.ts +5 -0
  196. package/dist/access/interfaces/notification.recipient.interface.js +3 -0
  197. package/dist/access/interfaces/notification.recipient.interface.js.map +1 -0
  198. package/dist/access/interfaces/notification.send.identifiers.interface.d.ts +6 -0
  199. package/dist/access/interfaces/notification.send.identifiers.interface.js +3 -0
  200. package/dist/access/interfaces/notification.send.identifiers.interface.js.map +1 -0
  201. package/dist/access/interfaces/notification.send.recipient.interface.d.ts +5 -0
  202. package/dist/access/interfaces/notification.send.recipient.interface.js +3 -0
  203. package/dist/access/interfaces/notification.send.recipient.interface.js.map +1 -0
  204. package/dist/access/interfaces/notification.type.sources.interface.d.ts +5 -0
  205. package/dist/access/interfaces/notification.type.sources.interface.js +3 -0
  206. package/dist/access/interfaces/notification.type.sources.interface.js.map +1 -0
  207. package/dist/access/interfaces/notification.type.usage.interface.d.ts +12 -0
  208. package/dist/access/interfaces/notification.type.usage.interface.js +3 -0
  209. package/dist/access/interfaces/notification.type.usage.interface.js.map +1 -0
  210. package/dist/access/interfaces/resolve.notification.recipients.input.interface.d.ts +10 -0
  211. package/dist/access/interfaces/resolve.notification.recipients.input.interface.js +3 -0
  212. package/dist/access/interfaces/resolve.notification.recipients.input.interface.js.map +1 -0
  213. package/dist/access/interfaces/resolve.notification.recipients.result.interface.d.ts +10 -0
  214. package/dist/access/interfaces/resolve.notification.recipients.result.interface.js +3 -0
  215. package/dist/access/interfaces/resolve.notification.recipients.result.interface.js.map +1 -0
  216. package/dist/access/interfaces/send.emithook.template.email.options.interface.d.ts +18 -0
  217. package/dist/access/interfaces/send.emithook.template.email.options.interface.js +3 -0
  218. package/dist/access/interfaces/send.emithook.template.email.options.interface.js.map +1 -0
  219. package/dist/access/interfaces/user.notification.type.preference.row.interface.d.ts +11 -0
  220. package/dist/access/interfaces/user.notification.type.preference.row.interface.js +3 -0
  221. package/dist/access/interfaces/user.notification.type.preference.row.interface.js.map +1 -0
  222. package/dist/access/jobs/handle.emithook.email.job.d.ts +27 -0
  223. package/dist/access/jobs/handle.emithook.email.job.js +162 -0
  224. package/dist/access/jobs/handle.emithook.email.job.js.map +1 -0
  225. package/dist/access/jobs/handle.emithook.email.status.job.d.ts +8 -0
  226. package/dist/access/jobs/handle.emithook.email.status.job.js +31 -0
  227. package/dist/access/jobs/handle.emithook.email.status.job.js.map +1 -0
  228. package/dist/access/jobs/index.d.ts +5 -0
  229. package/dist/access/jobs/index.js +5 -0
  230. package/dist/access/jobs/index.js.map +1 -1
  231. package/dist/access/jobs/poll.emithook.email.inbox.job.d.ts +19 -0
  232. package/dist/access/jobs/poll.emithook.email.inbox.job.js +109 -0
  233. package/dist/access/jobs/poll.emithook.email.inbox.job.js.map +1 -0
  234. package/dist/access/jobs/poll.emithook.email.sqs.job.d.ts +22 -0
  235. package/dist/access/jobs/poll.emithook.email.sqs.job.js +91 -0
  236. package/dist/access/jobs/poll.emithook.email.sqs.job.js.map +1 -0
  237. package/dist/access/jobs/process.server.email.job.d.ts +1 -9
  238. package/dist/access/jobs/process.server.email.job.js +13 -105
  239. package/dist/access/jobs/process.server.email.job.js.map +1 -1
  240. package/dist/access/jobs/reconcile.emithook.email.status.job.d.ts +15 -0
  241. package/dist/access/jobs/reconcile.emithook.email.status.job.js +38 -0
  242. package/dist/access/jobs/reconcile.emithook.email.status.job.js.map +1 -0
  243. package/dist/access/libraries/apply.notification.preferences.d.ts +12 -0
  244. package/dist/access/libraries/apply.notification.preferences.js +51 -0
  245. package/dist/access/libraries/apply.notification.preferences.js.map +1 -0
  246. package/dist/access/libraries/delete.business.property.d.ts +7 -0
  247. package/dist/access/libraries/delete.business.property.js +18 -0
  248. package/dist/access/libraries/delete.business.property.js.map +1 -0
  249. package/dist/access/libraries/index.d.ts +19 -0
  250. package/dist/access/libraries/index.js +19 -0
  251. package/dist/access/libraries/index.js.map +1 -1
  252. package/dist/access/libraries/load.notification.preference.context.d.ts +10 -0
  253. package/dist/access/libraries/load.notification.preference.context.js +78 -0
  254. package/dist/access/libraries/load.notification.preference.context.js.map +1 -0
  255. package/dist/access/libraries/notification.type.catalogue.d.ts +12 -0
  256. package/dist/access/libraries/notification.type.catalogue.js +72 -0
  257. package/dist/access/libraries/notification.type.catalogue.js.map +1 -0
  258. package/dist/access/libraries/present.business.property.d.ts +4 -0
  259. package/dist/access/libraries/present.business.property.js +13 -0
  260. package/dist/access/libraries/present.business.property.js.map +1 -0
  261. package/dist/access/libraries/process.application.menu.js +6 -7
  262. package/dist/access/libraries/process.application.menu.js.map +1 -1
  263. package/dist/access/libraries/process.business.property.data.d.ts +6 -0
  264. package/dist/access/libraries/process.business.property.data.js +60 -20
  265. package/dist/access/libraries/process.business.property.data.js.map +1 -1
  266. package/dist/access/libraries/process.business.property.list.d.ts +4 -0
  267. package/dist/access/libraries/process.business.property.list.js +44 -5
  268. package/dist/access/libraries/process.business.property.list.js.map +1 -1
  269. package/dist/access/libraries/process.developer.menu.d.ts +2 -1
  270. package/dist/access/libraries/process.developer.menu.js +50 -20
  271. package/dist/access/libraries/process.developer.menu.js.map +1 -1
  272. package/dist/access/libraries/process.email.notification.d.ts +18 -3
  273. package/dist/access/libraries/process.email.notification.js +140 -3
  274. package/dist/access/libraries/process.email.notification.js.map +1 -1
  275. package/dist/access/libraries/process.emithook.email.status.d.ts +7 -0
  276. package/dist/access/libraries/process.emithook.email.status.js +40 -0
  277. package/dist/access/libraries/process.emithook.email.status.js.map +1 -0
  278. package/dist/access/libraries/process.inbound.email.message.d.ts +21 -0
  279. package/dist/access/libraries/process.inbound.email.message.js +129 -0
  280. package/dist/access/libraries/process.inbound.email.message.js.map +1 -0
  281. package/dist/access/libraries/process.mail.log.list.d.ts +25 -0
  282. package/dist/access/libraries/process.mail.log.list.js +90 -0
  283. package/dist/access/libraries/process.mail.log.list.js.map +1 -0
  284. package/dist/access/libraries/read.eml.attachments.d.ts +19 -0
  285. package/dist/access/libraries/read.eml.attachments.js +124 -0
  286. package/dist/access/libraries/read.eml.attachments.js.map +1 -0
  287. package/dist/access/libraries/reconcile.emithook.email.status.d.ts +17 -0
  288. package/dist/access/libraries/reconcile.emithook.email.status.js +82 -0
  289. package/dist/access/libraries/reconcile.emithook.email.status.js.map +1 -0
  290. package/dist/access/libraries/record.emithook.email.events.d.ts +15 -0
  291. package/dist/access/libraries/record.emithook.email.events.js +139 -0
  292. package/dist/access/libraries/record.emithook.email.events.js.map +1 -0
  293. package/dist/access/libraries/resolve.emithook.template.key.d.ts +8 -0
  294. package/dist/access/libraries/resolve.emithook.template.key.js +29 -0
  295. package/dist/access/libraries/resolve.emithook.template.key.js.map +1 -0
  296. package/dist/access/libraries/resolve.notification.recipients.d.ts +7 -0
  297. package/dist/access/libraries/resolve.notification.recipients.js +51 -0
  298. package/dist/access/libraries/resolve.notification.recipients.js.map +1 -0
  299. package/dist/access/libraries/sanitize.email.addresses.d.ts +3 -1
  300. package/dist/access/libraries/sanitize.email.addresses.js +3 -2
  301. package/dist/access/libraries/sanitize.email.addresses.js.map +1 -1
  302. package/dist/access/libraries/search.alias.mappings.d.ts +12 -0
  303. package/dist/access/libraries/search.alias.mappings.js +46 -0
  304. package/dist/access/libraries/search.alias.mappings.js.map +1 -0
  305. package/dist/access/libraries/send.email.notification.js +2 -0
  306. package/dist/access/libraries/send.email.notification.js.map +1 -1
  307. package/dist/access/libraries/send.emithook.template.email.d.ts +24 -0
  308. package/dist/access/libraries/send.emithook.template.email.js +188 -0
  309. package/dist/access/libraries/send.emithook.template.email.js.map +1 -0
  310. package/dist/access/libraries/set.alias.mapping.d.ts +12 -0
  311. package/dist/access/libraries/set.alias.mapping.js +81 -0
  312. package/dist/access/libraries/set.alias.mapping.js.map +1 -0
  313. package/dist/access/libraries/set.business.property.d.ts +8 -0
  314. package/dist/access/libraries/set.business.property.js +17 -0
  315. package/dist/access/libraries/set.business.property.js.map +1 -0
  316. package/dist/access/libraries/show.mail.log.content.d.ts +12 -0
  317. package/dist/access/libraries/show.mail.log.content.js +22 -0
  318. package/dist/access/libraries/show.mail.log.content.js.map +1 -0
  319. package/dist/access/libraries/show.mail.log.d.ts +6 -0
  320. package/dist/access/libraries/show.mail.log.js +20 -0
  321. package/dist/access/libraries/show.mail.log.js.map +1 -0
  322. package/dist/access/services/alias.mapping.service.d.ts +9 -0
  323. package/dist/access/services/alias.mapping.service.js +45 -0
  324. package/dist/access/services/alias.mapping.service.js.map +1 -0
  325. package/dist/access/services/business.email.alias.service.d.ts +5 -0
  326. package/dist/access/services/business.email.alias.service.js +35 -0
  327. package/dist/access/services/business.email.alias.service.js.map +1 -0
  328. package/dist/access/services/business.email.service.d.ts +5 -1
  329. package/dist/access/services/business.email.service.js +33 -2
  330. package/dist/access/services/business.email.service.js.map +1 -1
  331. package/dist/access/services/business.property.service.js +3 -1
  332. package/dist/access/services/business.property.service.js.map +1 -1
  333. package/dist/access/services/emithook.service.d.ts +36 -0
  334. package/dist/access/services/emithook.service.js +136 -0
  335. package/dist/access/services/emithook.service.js.map +1 -0
  336. package/dist/access/services/index.d.ts +7 -0
  337. package/dist/access/services/index.js +7 -0
  338. package/dist/access/services/index.js.map +1 -1
  339. package/dist/access/services/legacy.notification.preference.service.d.ts +8 -0
  340. package/dist/access/services/legacy.notification.preference.service.js +41 -0
  341. package/dist/access/services/legacy.notification.preference.service.js.map +1 -0
  342. package/dist/access/services/mail.log.access.service.d.ts +14 -0
  343. package/dist/access/services/mail.log.access.service.js +52 -0
  344. package/dist/access/services/mail.log.access.service.js.map +1 -0
  345. package/dist/access/services/notification.service.d.ts +2 -0
  346. package/dist/access/services/notification.service.js +19 -4
  347. package/dist/access/services/notification.service.js.map +1 -1
  348. package/dist/access/services/notification.type.preference.service.d.ts +25 -0
  349. package/dist/access/services/notification.type.preference.service.js +172 -0
  350. package/dist/access/services/notification.type.preference.service.js.map +1 -0
  351. package/dist/access/services/notification.type.service.d.ts +17 -0
  352. package/dist/access/services/notification.type.service.js +124 -0
  353. package/dist/access/services/notification.type.service.js.map +1 -0
  354. package/dist/access/services/send.email.service.d.ts +5 -1
  355. package/dist/access/services/send.email.service.js +9 -3
  356. package/dist/access/services/send.email.service.js.map +1 -1
  357. package/dist/accessUtility/controllers/bulk.definition.controller.d.ts +6 -2
  358. package/dist/accessUtility/controllers/bulk.definition.controller.js +26 -9
  359. package/dist/accessUtility/controllers/bulk.definition.controller.js.map +1 -1
  360. package/dist/accessUtility/dtos/bulk.definition.script.dto.d.ts +4 -0
  361. package/dist/accessUtility/dtos/bulk.definition.script.dto.js +30 -0
  362. package/dist/accessUtility/dtos/bulk.definition.script.dto.js.map +1 -0
  363. package/dist/accessUtility/dtos/index.d.ts +1 -0
  364. package/dist/accessUtility/dtos/index.js +1 -0
  365. package/dist/accessUtility/dtos/index.js.map +1 -1
  366. package/dist/accessUtility/es6.classes.d.ts +9 -7
  367. package/dist/accessUtility/es6.classes.js +12 -8
  368. package/dist/accessUtility/es6.classes.js.map +1 -1
  369. package/dist/accessUtility/jobs/analyse.bulk.upload.job.d.ts +1 -1
  370. package/dist/accessUtility/jobs/analyse.bulk.upload.job.js +1 -1
  371. package/dist/accessUtility/jobs/analyse.bulk.upload.job.js.map +1 -1
  372. package/dist/accessUtility/jobs/push.to.bulk.item.job.d.ts +2 -0
  373. package/dist/accessUtility/jobs/push.to.bulk.item.job.js +2 -0
  374. package/dist/accessUtility/jobs/push.to.bulk.item.job.js.map +1 -1
  375. package/dist/accessUtility/libraries/analyse.bulk.upload.d.ts +1 -1
  376. package/dist/accessUtility/libraries/index.d.ts +1 -1
  377. package/dist/accessUtility/libraries/index.js +1 -1
  378. package/dist/accessUtility/libraries/index.js.map +1 -1
  379. package/dist/accessUtility/libraries/process.bulk.definition.script.d.ts +9 -0
  380. package/dist/accessUtility/libraries/process.bulk.definition.script.js +43 -0
  381. package/dist/accessUtility/libraries/process.bulk.definition.script.js.map +1 -0
  382. package/dist/accessUtility/libraries/read.xls.file.d.ts +4 -1
  383. package/dist/accessUtility/libraries/read.xls.file.js +49 -10
  384. package/dist/accessUtility/libraries/read.xls.file.js.map +1 -1
  385. package/dist/accessUtility/services/index.d.ts +1 -0
  386. package/dist/accessUtility/services/index.js +1 -0
  387. package/dist/accessUtility/services/index.js.map +1 -1
  388. package/dist/accessUtility/{libraries → services}/match.bulk.upload.columns.d.ts +1 -1
  389. package/dist/accessUtility/{libraries → services}/match.bulk.upload.columns.js +4 -4
  390. package/dist/accessUtility/services/match.bulk.upload.columns.js.map +1 -0
  391. package/dist/migrations/1790855763155-CreateBzAliasMappingsTable.d.ts +8 -0
  392. package/dist/migrations/1790855763155-CreateBzAliasMappingsTable.js +37 -0
  393. package/dist/migrations/1790855763155-CreateBzAliasMappingsTable.js.map +1 -0
  394. package/dist/migrations/1792089460727-AddIdentifierBzBusinessEmailsTable.d.ts +5 -0
  395. package/dist/migrations/1792089460727-AddIdentifierBzBusinessEmailsTable.js +16 -0
  396. package/dist/migrations/1792089460727-AddIdentifierBzBusinessEmailsTable.js.map +1 -0
  397. package/dist/migrations/1792091262917-AddUniqueEmailIdentifierBzEmailMessagesTable.d.ts +8 -0
  398. package/dist/migrations/1792091262917-AddUniqueEmailIdentifierBzEmailMessagesTable.js +30 -0
  399. package/dist/migrations/1792091262917-AddUniqueEmailIdentifierBzEmailMessagesTable.js.map +1 -0
  400. package/dist/migrations/1792454400000-CreateSysNotificationTypesTable.d.ts +8 -0
  401. package/dist/migrations/1792454400000-CreateSysNotificationTypesTable.js +36 -0
  402. package/dist/migrations/1792454400000-CreateSysNotificationTypesTable.js.map +1 -0
  403. package/dist/migrations/1792454400001-CreateBzNotificationTypePreferencesTable.d.ts +8 -0
  404. package/dist/migrations/1792454400001-CreateBzNotificationTypePreferencesTable.js +31 -0
  405. package/dist/migrations/1792454400001-CreateBzNotificationTypePreferencesTable.js.map +1 -0
  406. package/dist/migrations/1792454400002-CreateBzUserNotificationTypePreferencesTable.d.ts +8 -0
  407. package/dist/migrations/1792454400002-CreateBzUserNotificationTypePreferencesTable.js +32 -0
  408. package/dist/migrations/1792454400002-CreateBzUserNotificationTypePreferencesTable.js.map +1 -0
  409. package/dist/migrations/1792454400003-AddSmsNotificationChannelDataSeederTable.d.ts +5 -0
  410. package/dist/migrations/1792454400003-AddSmsNotificationChannelDataSeederTable.js +21 -0
  411. package/dist/migrations/1792454400003-AddSmsNotificationChannelDataSeederTable.js.map +1 -0
  412. package/dist/migrations/1792532792345-AddBusinessIdSysMailLogsTable.d.ts +7 -0
  413. package/dist/migrations/1792532792345-AddBusinessIdSysMailLogsTable.js +20 -0
  414. package/dist/migrations/1792532792345-AddBusinessIdSysMailLogsTable.js.map +1 -0
  415. package/dist/migrations/1792573736107-AddEmithookIndexSysMailLogsTable.d.ts +5 -0
  416. package/dist/migrations/1792573736107-AddEmithookIndexSysMailLogsTable.js +14 -0
  417. package/dist/migrations/1792573736107-AddEmithookIndexSysMailLogsTable.js.map +1 -0
  418. package/package.json +1 -1
  419. package/dist/accessUtility/libraries/match.bulk.upload.columns.js.map +0 -1
@@ -0,0 +1,72 @@
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.UpdateNotificationTypeDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const notification_channel_type_enum_1 = require("../enums/notification.channel.type.enum");
16
+ const notification_type_audience_enum_1 = require("../enums/notification.type.audience.enum");
17
+ const notification_type_control_enum_1 = require("../enums/notification.type.control.enum");
18
+ class UpdateNotificationTypeDto {
19
+ }
20
+ exports.UpdateNotificationTypeDto = UpdateNotificationTypeDto;
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ (0, class_validator_1.IsOptional)(),
24
+ (0, class_validator_1.IsString)(),
25
+ (0, class_validator_1.IsNotEmpty)(),
26
+ __metadata("design:type", String)
27
+ ], UpdateNotificationTypeDto.prototype, "name", void 0);
28
+ __decorate([
29
+ (0, class_transformer_1.Expose)(),
30
+ (0, class_validator_1.IsOptional)(),
31
+ (0, class_validator_1.IsString)(),
32
+ __metadata("design:type", String)
33
+ ], UpdateNotificationTypeDto.prototype, "description", void 0);
34
+ __decorate([
35
+ (0, class_transformer_1.Expose)(),
36
+ (0, class_validator_1.IsOptional)(),
37
+ (0, class_validator_1.IsString)(),
38
+ (0, class_validator_1.MaxLength)(64),
39
+ __metadata("design:type", String)
40
+ ], UpdateNotificationTypeDto.prototype, "category", void 0);
41
+ __decorate([
42
+ (0, class_transformer_1.Expose)(),
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsEnum)(notification_type_audience_enum_1.NotificationTypeAudienceEnum),
45
+ __metadata("design:type", String)
46
+ ], UpdateNotificationTypeDto.prototype, "audience", void 0);
47
+ __decorate([
48
+ (0, class_transformer_1.Expose)(),
49
+ (0, class_validator_1.IsOptional)(),
50
+ (0, class_validator_1.IsEnum)(notification_type_control_enum_1.NotificationTypeControlEnum),
51
+ __metadata("design:type", String)
52
+ ], UpdateNotificationTypeDto.prototype, "control", void 0);
53
+ __decorate([
54
+ (0, class_transformer_1.Expose)(),
55
+ (0, class_validator_1.IsOptional)(),
56
+ (0, class_validator_1.IsArray)(),
57
+ (0, class_validator_1.IsIn)(Object.values(notification_channel_type_enum_1.NotificationChannelTypeEnum).filter((v) => typeof v === 'number'), { each: true }),
58
+ __metadata("design:type", Array)
59
+ ], UpdateNotificationTypeDto.prototype, "channels", void 0);
60
+ __decorate([
61
+ (0, class_transformer_1.Expose)(),
62
+ (0, class_validator_1.IsOptional)(),
63
+ (0, class_validator_1.IsObject)(),
64
+ __metadata("design:type", Object)
65
+ ], UpdateNotificationTypeDto.prototype, "sources", void 0);
66
+ __decorate([
67
+ (0, class_transformer_1.Expose)(),
68
+ (0, class_validator_1.IsOptional)(),
69
+ (0, class_validator_1.IsBoolean)(),
70
+ __metadata("design:type", Boolean)
71
+ ], UpdateNotificationTypeDto.prototype, "active", void 0);
72
+ //# sourceMappingURL=update.notification.type.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.notification.type.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/update.notification.type.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA0H;AAC1H,4FAAsF;AACtF,8FAAwF;AACxF,4FAAsF;AAUtF,MAAa,yBAAyB;CA4CrC;AA5CD,8DA4CC;AAvCG;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACC;AAKd;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8DACU;AAMrB;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;;2DACI;AAKlB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,8DAA4B,CAAC;;2DACG;AAKxC;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,4DAA2B,CAAC;;0DACE;AAMtC;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,sBAAI,EAAC,MAAM,CAAC,MAAM,CAAC,4DAA2B,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;2DAClF;AAKpB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACgC;AAM3C;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;yDACK"}
@@ -0,0 +1,6 @@
1
+ import { MailLogEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { AccessBusinessEntity } from './access.business.entity';
3
+ export declare class AccessMailLogEntity extends MailLogEntity {
4
+ business_id: number;
5
+ business: AccessBusinessEntity;
6
+ }
@@ -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.AccessMailLogEntity = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const access_business_entity_1 = require("./access.business.entity");
16
+ let AccessMailLogEntity = class AccessMailLogEntity extends nestjs_utility_services_1.MailLogEntity {
17
+ };
18
+ exports.AccessMailLogEntity = AccessMailLogEntity;
19
+ __decorate([
20
+ (0, typeorm_1.Column)(),
21
+ __metadata("design:type", Number)
22
+ ], AccessMailLogEntity.prototype, "business_id", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
25
+ (0, typeorm_1.JoinColumn)({ name: 'business_id' }),
26
+ __metadata("design:type", access_business_entity_1.AccessBusinessEntity)
27
+ ], AccessMailLogEntity.prototype, "business", void 0);
28
+ exports.AccessMailLogEntity = AccessMailLogEntity = __decorate([
29
+ (0, typeorm_1.Entity)('sys_mail_logs')
30
+ ], AccessMailLogEntity);
31
+ //# sourceMappingURL=access.mail.log.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access.mail.log.entity.js","sourceRoot":"","sources":["../../../src/access/entities/access.mail.log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAuE;AACvE,qCAAgE;AAChE,qEAAgE;AAQzD,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,uCAAa;CAMrD,CAAA;AANY,kDAAmB;AAE5B;IADC,IAAA,gBAAM,GAAE;;wDACW;AAGwD;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;qDAAC;8BALlG,mBAAmB;IAD/B,IAAA,gBAAM,EAAC,eAAe,CAAC;GACX,mBAAmB,CAM/B"}
@@ -0,0 +1,11 @@
1
+ import { CommonAttributesDto, CommonEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { AccessBusinessEntity } from './access.business.entity';
3
+ export declare class AliasMappingEntity extends CommonEntity {
4
+ business_id: number;
5
+ source_type: string;
6
+ source_id: number;
7
+ name: string;
8
+ type: string;
9
+ attributes: CommonAttributesDto;
10
+ business: AccessBusinessEntity;
11
+ }
@@ -0,0 +1,51 @@
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.AliasMappingEntity = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const access_business_entity_1 = require("./access.business.entity");
16
+ let AliasMappingEntity = class AliasMappingEntity extends nestjs_utility_services_1.CommonEntity {
17
+ };
18
+ exports.AliasMappingEntity = AliasMappingEntity;
19
+ __decorate([
20
+ (0, typeorm_1.Column)(),
21
+ __metadata("design:type", Number)
22
+ ], AliasMappingEntity.prototype, "business_id", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.Column)(),
25
+ __metadata("design:type", String)
26
+ ], AliasMappingEntity.prototype, "source_type", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)(),
29
+ __metadata("design:type", Number)
30
+ ], AliasMappingEntity.prototype, "source_id", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)(),
33
+ __metadata("design:type", String)
34
+ ], AliasMappingEntity.prototype, "name", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)(),
37
+ __metadata("design:type", String)
38
+ ], AliasMappingEntity.prototype, "type", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)('jsonb'),
41
+ __metadata("design:type", nestjs_utility_services_1.CommonAttributesDto)
42
+ ], AliasMappingEntity.prototype, "attributes", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
45
+ (0, typeorm_1.JoinColumn)({ name: 'business_id' }),
46
+ __metadata("design:type", access_business_entity_1.AccessBusinessEntity)
47
+ ], AliasMappingEntity.prototype, "business", void 0);
48
+ exports.AliasMappingEntity = AliasMappingEntity = __decorate([
49
+ (0, typeorm_1.Entity)('bz_alias_mappings')
50
+ ], AliasMappingEntity);
51
+ //# sourceMappingURL=alias.mapping.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alias.mapping.entity.js","sourceRoot":"","sources":["../../../src/access/entities/alias.mapping.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA2F;AAC3F,qCAAgE;AAChE,qEAAgE;AAYzD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,sCAAY;CAwBnD,CAAA;AAxBY,gDAAkB;AAE3B;IADC,IAAA,gBAAM,GAAE;;uDACW;AAIpB;IADC,IAAA,gBAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;qDACS;AAIlB;IADC,IAAA,gBAAM,GAAE;;gDACI;AAIb;IADC,IAAA,gBAAM,GAAE;;gDACI;AAGb;IADC,IAAA,gBAAM,EAAC,OAAO,CAAC;8BACJ,6CAAmB;sDAAC;AAG4C;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;oDAAC;6BAvBlG,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,mBAAmB,CAAC;GACf,kBAAkB,CAwB9B"}
@@ -9,6 +9,7 @@ export declare class BusinessEmailEntity extends CommonEntity {
9
9
  user_id: number;
10
10
  employee_id: number;
11
11
  email: string;
12
+ identifier: string;
12
13
  name: string;
13
14
  access_token: string;
14
15
  refresh_token: string;
@@ -42,6 +42,10 @@ __decorate([
42
42
  (0, typeorm_1.Column)(),
43
43
  __metadata("design:type", String)
44
44
  ], BusinessEmailEntity.prototype, "email", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)(),
47
+ __metadata("design:type", String)
48
+ ], BusinessEmailEntity.prototype, "identifier", void 0);
45
49
  __decorate([
46
50
  (0, typeorm_1.Column)(),
47
51
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"business.email.entity.js","sourceRoot":"","sources":["../../../src/access/entities/business.email.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAkF;AAClF,qCAAgE;AAChE,yFAAmF;AACnF,qEAAgE;AAChE,qEAAgE;AAUzD,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,sCAAY;CAyCpD,CAAA;AAzCY,kDAAmB;AAE5B;IADC,IAAA,gBAAM,GAAE;;wDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;uDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;2DACc;AAGvB;IADC,IAAA,gBAAM,GAAE;;oDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;wDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;kDACK;AAGd;IADC,IAAA,gBAAM,GAAE;;iDACI;AAGb;IADC,IAAA,gBAAM,GAAE;;yDACY;AAGrB;IADC,IAAA,gBAAM,GAAE;;0DACa;AAGtB;IADC,IAAA,gBAAM,GAAE;8BACE,IAAI;sDAAC;AAGhB;IADC,IAAA,gBAAM,GAAE;;mDACO;AAGhB;IADC,IAAA,gBAAM,EAAC,OAAO,CAAC;8BACJ,0DAA0B;uDAAC;AAGqC;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;qDAAC;AAC/B;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;qDAAC;AAC7C;IAA7D,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAU,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,oCAAU;iDAAC;8BAxCtE,mBAAmB;IAD/B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,mBAAmB,CAyC/B"}
1
+ {"version":3,"file":"business.email.entity.js","sourceRoot":"","sources":["../../../src/access/entities/business.email.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAkF;AAClF,qCAAgE;AAChE,yFAAmF;AACnF,qEAAgE;AAChE,qEAAgE;AAUzD,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,sCAAY;CA6CpD,CAAA;AA7CY,kDAAmB;AAE5B;IADC,IAAA,gBAAM,GAAE;;wDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;uDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;2DACc;AAGvB;IADC,IAAA,gBAAM,GAAE;;oDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;wDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;kDACK;AAId;IADC,IAAA,gBAAM,GAAE;;uDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;iDACI;AAGb;IADC,IAAA,gBAAM,GAAE;;yDACY;AAGrB;IADC,IAAA,gBAAM,GAAE;;0DACa;AAGtB;IADC,IAAA,gBAAM,GAAE;8BACE,IAAI;sDAAC;AAGhB;IADC,IAAA,gBAAM,GAAE;;mDACO;AAGhB;IADC,IAAA,gBAAM,EAAC,OAAO,CAAC;8BACJ,0DAA0B;uDAAC;AAGqC;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;qDAAC;AAC/B;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;qDAAC;AAC7C;IAA7D,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAU,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,oCAAU;iDAAC;8BA5CtE,mBAAmB;IAD/B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,mBAAmB,CA6C/B"}
@@ -0,0 +1,13 @@
1
+ import { CommonEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { BusinessNotificationTypePreferenceAttributesDto } from '../dtos/business.notification.type.preference.attributes.dto';
3
+ import { AccessBusinessEntity } from './access.business.entity';
4
+ import { NotificationTypeEntity } from './notification.type.entity';
5
+ export declare class BusinessNotificationTypePreferenceEntity extends CommonEntity {
6
+ business_id: number;
7
+ notification_type_id: number;
8
+ channel_id: number;
9
+ active: boolean;
10
+ attributes: BusinessNotificationTypePreferenceAttributesDto;
11
+ business: AccessBusinessEntity;
12
+ notification_type: NotificationTypeEntity;
13
+ }
@@ -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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BusinessNotificationTypePreferenceEntity = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const business_notification_type_preference_attributes_dto_1 = require("../dtos/business.notification.type.preference.attributes.dto");
16
+ const access_business_entity_1 = require("./access.business.entity");
17
+ const notification_type_entity_1 = require("./notification.type.entity");
18
+ let BusinessNotificationTypePreferenceEntity = class BusinessNotificationTypePreferenceEntity extends nestjs_utility_services_1.CommonEntity {
19
+ };
20
+ exports.BusinessNotificationTypePreferenceEntity = BusinessNotificationTypePreferenceEntity;
21
+ __decorate([
22
+ (0, typeorm_1.Column)(),
23
+ __metadata("design:type", Number)
24
+ ], BusinessNotificationTypePreferenceEntity.prototype, "business_id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)(),
27
+ __metadata("design:type", Number)
28
+ ], BusinessNotificationTypePreferenceEntity.prototype, "notification_type_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)(),
31
+ __metadata("design:type", Number)
32
+ ], BusinessNotificationTypePreferenceEntity.prototype, "channel_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)(),
35
+ __metadata("design:type", Boolean)
36
+ ], BusinessNotificationTypePreferenceEntity.prototype, "active", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)('jsonb'),
39
+ __metadata("design:type", business_notification_type_preference_attributes_dto_1.BusinessNotificationTypePreferenceAttributesDto)
40
+ ], BusinessNotificationTypePreferenceEntity.prototype, "attributes", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
43
+ (0, typeorm_1.JoinColumn)({ name: 'business_id' }),
44
+ __metadata("design:type", access_business_entity_1.AccessBusinessEntity)
45
+ ], BusinessNotificationTypePreferenceEntity.prototype, "business", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.ManyToOne)(() => notification_type_entity_1.NotificationTypeEntity),
48
+ (0, typeorm_1.JoinColumn)({ name: 'notification_type_id' }),
49
+ __metadata("design:type", notification_type_entity_1.NotificationTypeEntity)
50
+ ], BusinessNotificationTypePreferenceEntity.prototype, "notification_type", void 0);
51
+ exports.BusinessNotificationTypePreferenceEntity = BusinessNotificationTypePreferenceEntity = __decorate([
52
+ (0, typeorm_1.Entity)('bz_notification_type_preferences')
53
+ ], BusinessNotificationTypePreferenceEntity);
54
+ //# sourceMappingURL=business.notification.type.preference.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business.notification.type.preference.entity.js","sourceRoot":"","sources":["../../../src/access/entities/business.notification.type.preference.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAsE;AACtE,qCAAgE;AAChE,uIAA+H;AAC/H,qEAAgE;AAChE,yEAAoE;AAW7D,IAAM,wCAAwC,GAA9C,MAAM,wCAAyC,SAAQ,sCAAY;CAoBzE,CAAA;AApBY,4FAAwC;AAEjD;IADC,IAAA,gBAAM,GAAE;;6EACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;sFACoB;AAI7B;IADC,IAAA,gBAAM,GAAE;;4EACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;wEACO;AAGhB;IADC,IAAA,gBAAM,EAAC,OAAO,CAAC;8BACJ,sGAA+C;4EAAC;AAGgB;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;0EAAC;AACpB;IAAtF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iDAAsB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;8BAAoB,iDAAsB;mFAAC;mDAnBxH,wCAAwC;IADpD,IAAA,gBAAM,EAAC,kCAAkC,CAAC;GAC9B,wCAAwC,CAoBpD"}
@@ -1,7 +1,9 @@
1
1
  export * from './access.business.entity';
2
2
  export * from './access.country.entity';
3
3
  export * from './access.employee.entity';
4
+ export * from './access.mail.log.entity';
4
5
  export * from './access.whatsapp.template.entity';
6
+ export * from './alias.mapping.entity';
5
7
  export * from './api.account.entity';
6
8
  export * from './app.integration.entity';
7
9
  export * from './business.app.integration.credential.entity';
@@ -15,6 +17,7 @@ export * from './business.group.role.entity';
15
17
  export * from './business.material.view.entity';
16
18
  export * from './business.menu.entity';
17
19
  export * from './business.menu.layout.entity';
20
+ export * from './business.notification.type.preference.entity';
18
21
  export * from './business.preference.entity';
19
22
  export * from './business.property.entity';
20
23
  export * from './business.report.entity';
@@ -71,6 +74,7 @@ export * from './menu.entity';
71
74
  export * from './menu.role.entity';
72
75
  export * from './module.entity';
73
76
  export * from './module.menu.entity';
77
+ export * from './notification.type.entity';
74
78
  export * from './oauth.authorization.entity';
75
79
  export * from './oauth.client.entity';
76
80
  export * from './onhold.document.entity';
@@ -94,6 +98,7 @@ export * from './ui.action.entity';
94
98
  export * from './ui.action.role.entity';
95
99
  export * from './user.business.secret.entity';
96
100
  export * from './user.notification.entity';
101
+ export * from './user.notification.type.preference.entity';
97
102
  export * from './user.preference.entity';
98
103
  export * from './user.role.entity';
99
104
  export * from './watchlist.assignment.entity';
@@ -17,7 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./access.business.entity"), exports);
18
18
  __exportStar(require("./access.country.entity"), exports);
19
19
  __exportStar(require("./access.employee.entity"), exports);
20
+ __exportStar(require("./access.mail.log.entity"), exports);
20
21
  __exportStar(require("./access.whatsapp.template.entity"), exports);
22
+ __exportStar(require("./alias.mapping.entity"), exports);
21
23
  __exportStar(require("./api.account.entity"), exports);
22
24
  __exportStar(require("./app.integration.entity"), exports);
23
25
  __exportStar(require("./business.app.integration.credential.entity"), exports);
@@ -31,6 +33,7 @@ __exportStar(require("./business.group.role.entity"), exports);
31
33
  __exportStar(require("./business.material.view.entity"), exports);
32
34
  __exportStar(require("./business.menu.entity"), exports);
33
35
  __exportStar(require("./business.menu.layout.entity"), exports);
36
+ __exportStar(require("./business.notification.type.preference.entity"), exports);
34
37
  __exportStar(require("./business.preference.entity"), exports);
35
38
  __exportStar(require("./business.property.entity"), exports);
36
39
  __exportStar(require("./business.report.entity"), exports);
@@ -87,6 +90,7 @@ __exportStar(require("./menu.entity"), exports);
87
90
  __exportStar(require("./menu.role.entity"), exports);
88
91
  __exportStar(require("./module.entity"), exports);
89
92
  __exportStar(require("./module.menu.entity"), exports);
93
+ __exportStar(require("./notification.type.entity"), exports);
90
94
  __exportStar(require("./oauth.authorization.entity"), exports);
91
95
  __exportStar(require("./oauth.client.entity"), exports);
92
96
  __exportStar(require("./onhold.document.entity"), exports);
@@ -110,6 +114,7 @@ __exportStar(require("./ui.action.entity"), exports);
110
114
  __exportStar(require("./ui.action.role.entity"), exports);
111
115
  __exportStar(require("./user.business.secret.entity"), exports);
112
116
  __exportStar(require("./user.notification.entity"), exports);
117
+ __exportStar(require("./user.notification.type.preference.entity"), exports);
113
118
  __exportStar(require("./user.preference.entity"), exports);
114
119
  __exportStar(require("./user.role.entity"), exports);
115
120
  __exportStar(require("./watchlist.assignment.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,2DAAyC;AACzC,0DAAwC;AACxC,2DAAyC;AACzC,oEAAkD;AAClD,uDAAqC;AACrC,2DAAyC;AACzC,+EAA6D;AAC7D,oEAAkD;AAClD,6EAA2D;AAC3D,6DAA2C;AAC3C,wEAAsD;AACtD,0DAAwC;AACxC,4DAA0C;AAC1C,+DAA6C;AAC7C,kEAAgD;AAChD,yDAAuC;AACvC,gEAA8C;AAC9C,+DAA6C;AAC7C,6DAA2C;AAC3C,2DAAyC;AACzC,2DAAyC;AACzC,8DAA4C;AAC5C,yDAAuC;AACvC,+DAA6C;AAC7C,iFAA+D;AAC/D,8DAA4C;AAC5C,4DAA0C;AAC1C,8EAA4D;AAC5D,sDAAoC;AACpC,uDAAqC;AACrC,uDAAqC;AACrC,wDAAsC;AACtC,yDAAuC;AACvC,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,2DAAyC;AACzC,sDAAoC;AACpC,uDAAqC;AACrC,8DAA4C;AAC5C,oEAAkD;AAClD,yDAAuC;AACvC,6DAA2C;AAC3C,yDAAuC;AACvC,uDAAqC;AACrC,qDAAmC;AACnC,mDAAiC;AACjC,wDAAsC;AACtC,wDAAsC;AACtC,uDAAqC;AACrC,yDAAuC;AACvC,0DAAwC;AACxC,sDAAoC;AACpC,yDAAuC;AACvC,iEAA+C;AAC/C,wDAAsC;AACtC,sDAAoC;AACpC,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,wDAAsC;AACtC,8DAA4C;AAC5C,uDAAqC;AACrC,uDAAqC;AACrC,gDAA8B;AAC9B,qDAAmC;AACnC,kDAAgC;AAChC,uDAAqC;AACrC,+DAA6C;AAC7C,wDAAsC;AACtC,2DAAyC;AACzC,6DAA2C;AAC3C,2DAAyC;AACzC,iEAA+C;AAC/C,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,kEAAgD;AAChD,4DAA0C;AAC1C,iEAA+C;AAC/C,6DAA2C;AAC3C,yDAAuC;AACvC,0DAAwC;AACxC,sDAAoC;AACpC,yDAAuC;AACvC,iEAA+C;AAC/C,qDAAmC;AACnC,0DAAwC;AACxC,gEAA8C;AAC9C,6DAA2C;AAC3C,2DAAyC;AACzC,qDAAmC;AACnC,gEAA8C;AAC9C,yDAAuC;AACvC,uDAAqC;AACrC,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,+DAA6C;AAC7C,uEAAqD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,2DAAyC;AACzC,0DAAwC;AACxC,2DAAyC;AACzC,2DAAyC;AACzC,oEAAkD;AAClD,yDAAuC;AACvC,uDAAqC;AACrC,2DAAyC;AACzC,+EAA6D;AAC7D,oEAAkD;AAClD,6EAA2D;AAC3D,6DAA2C;AAC3C,wEAAsD;AACtD,0DAAwC;AACxC,4DAA0C;AAC1C,+DAA6C;AAC7C,kEAAgD;AAChD,yDAAuC;AACvC,gEAA8C;AAC9C,iFAA+D;AAC/D,+DAA6C;AAC7C,6DAA2C;AAC3C,2DAAyC;AACzC,2DAAyC;AACzC,8DAA4C;AAC5C,yDAAuC;AACvC,+DAA6C;AAC7C,iFAA+D;AAC/D,8DAA4C;AAC5C,4DAA0C;AAC1C,8EAA4D;AAC5D,sDAAoC;AACpC,uDAAqC;AACrC,uDAAqC;AACrC,wDAAsC;AACtC,yDAAuC;AACvC,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,2DAAyC;AACzC,sDAAoC;AACpC,uDAAqC;AACrC,8DAA4C;AAC5C,oEAAkD;AAClD,yDAAuC;AACvC,6DAA2C;AAC3C,yDAAuC;AACvC,uDAAqC;AACrC,qDAAmC;AACnC,mDAAiC;AACjC,wDAAsC;AACtC,wDAAsC;AACtC,uDAAqC;AACrC,yDAAuC;AACvC,0DAAwC;AACxC,sDAAoC;AACpC,yDAAuC;AACvC,iEAA+C;AAC/C,wDAAsC;AACtC,sDAAoC;AACpC,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,wDAAsC;AACtC,8DAA4C;AAC5C,uDAAqC;AACrC,uDAAqC;AACrC,gDAA8B;AAC9B,qDAAmC;AACnC,kDAAgC;AAChC,uDAAqC;AACrC,6DAA2C;AAC3C,+DAA6C;AAC7C,wDAAsC;AACtC,2DAAyC;AACzC,6DAA2C;AAC3C,2DAAyC;AACzC,iEAA+C;AAC/C,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,kEAAgD;AAChD,4DAA0C;AAC1C,iEAA+C;AAC/C,6DAA2C;AAC3C,yDAAuC;AACvC,0DAAwC;AACxC,sDAAoC;AACpC,yDAAuC;AACvC,iEAA+C;AAC/C,qDAAmC;AACnC,0DAAwC;AACxC,gEAA8C;AAC9C,6DAA2C;AAC3C,6EAA2D;AAC3D,2DAAyC;AACzC,qDAAmC;AACnC,gEAA8C;AAC9C,yDAAuC;AACvC,uDAAqC;AACrC,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,+DAA6C;AAC7C,uEAAqD"}
@@ -0,0 +1,16 @@
1
+ import { CommonAttributesDto, CommonEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { NotificationTypeAudienceEnum } from '../enums/notification.type.audience.enum';
3
+ import { NotificationTypeControlEnum } from '../enums/notification.type.control.enum';
4
+ import { NotificationTypeSourcesInterface } from '../interfaces/notification.type.sources.interface';
5
+ export declare class NotificationTypeEntity extends CommonEntity {
6
+ identifier: string;
7
+ name: string;
8
+ description: string;
9
+ category: string;
10
+ audience: NotificationTypeAudienceEnum;
11
+ control: NotificationTypeControlEnum;
12
+ channels: number[];
13
+ sources: NotificationTypeSourcesInterface;
14
+ active: boolean;
15
+ attributes: CommonAttributesDto;
16
+ }
@@ -0,0 +1,63 @@
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.NotificationTypeEntity = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const notification_type_audience_enum_1 = require("../enums/notification.type.audience.enum");
16
+ const notification_type_control_enum_1 = require("../enums/notification.type.control.enum");
17
+ let NotificationTypeEntity = class NotificationTypeEntity extends nestjs_utility_services_1.CommonEntity {
18
+ };
19
+ exports.NotificationTypeEntity = NotificationTypeEntity;
20
+ __decorate([
21
+ (0, typeorm_1.Column)(),
22
+ __metadata("design:type", String)
23
+ ], NotificationTypeEntity.prototype, "identifier", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)(),
26
+ __metadata("design:type", String)
27
+ ], NotificationTypeEntity.prototype, "name", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)(),
30
+ __metadata("design:type", String)
31
+ ], NotificationTypeEntity.prototype, "description", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)(),
34
+ __metadata("design:type", String)
35
+ ], NotificationTypeEntity.prototype, "category", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)(),
38
+ __metadata("design:type", String)
39
+ ], NotificationTypeEntity.prototype, "audience", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)(),
42
+ __metadata("design:type", String)
43
+ ], NotificationTypeEntity.prototype, "control", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)('jsonb'),
46
+ __metadata("design:type", Array)
47
+ ], NotificationTypeEntity.prototype, "channels", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)('jsonb'),
50
+ __metadata("design:type", Object)
51
+ ], NotificationTypeEntity.prototype, "sources", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)(),
54
+ __metadata("design:type", Boolean)
55
+ ], NotificationTypeEntity.prototype, "active", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)('jsonb'),
58
+ __metadata("design:type", nestjs_utility_services_1.CommonAttributesDto)
59
+ ], NotificationTypeEntity.prototype, "attributes", void 0);
60
+ exports.NotificationTypeEntity = NotificationTypeEntity = __decorate([
61
+ (0, typeorm_1.Entity)('sys_notification_types')
62
+ ], NotificationTypeEntity);
63
+ //# sourceMappingURL=notification.type.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.type.entity.js","sourceRoot":"","sources":["../../../src/access/entities/notification.type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA2F;AAC3F,qCAAyC;AACzC,8FAAwF;AACxF,4FAAsF;AAY/E,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,sCAAY;CAoCvD,CAAA;AApCY,wDAAsB;AAG/B;IADC,IAAA,gBAAM,GAAE;;0DACU;AAInB;IADC,IAAA,gBAAM,GAAE;;oDACI;AAIb;IADC,IAAA,gBAAM,GAAE;;2DACW;AAIpB;IADC,IAAA,gBAAM,GAAE;;wDACQ;AAGjB;IADC,IAAA,gBAAM,GAAE;;wDAC8B;AAGvC;IADC,IAAA,gBAAM,GAAE;;uDAC4B;AAIrC;IADC,IAAA,gBAAM,EAAC,OAAO,CAAC;;wDACG;AAGnB;IADC,IAAA,gBAAM,EAAC,OAAO,CAAC;;uDAC0B;AAI1C;IADC,IAAA,gBAAM,GAAE;;sDACO;AAGhB;IADC,IAAA,gBAAM,EAAC,OAAO,CAAC;8BACJ,6CAAmB;0DAAC;iCAnCvB,sBAAsB;IADlC,IAAA,gBAAM,EAAC,wBAAwB,CAAC;GACpB,sBAAsB,CAoClC"}
@@ -0,0 +1,15 @@
1
+ import { CommonEntity, UserEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { BusinessNotificationTypePreferenceAttributesDto } from '../dtos/business.notification.type.preference.attributes.dto';
3
+ import { AccessBusinessEntity } from './access.business.entity';
4
+ import { NotificationTypeEntity } from './notification.type.entity';
5
+ export declare class UserNotificationTypePreferenceEntity extends CommonEntity {
6
+ business_id: number;
7
+ user_id: number;
8
+ notification_type_id: number;
9
+ channel_id: number;
10
+ active: boolean;
11
+ attributes: BusinessNotificationTypePreferenceAttributesDto;
12
+ business: AccessBusinessEntity;
13
+ user: UserEntity;
14
+ notification_type: NotificationTypeEntity;
15
+ }
@@ -0,0 +1,63 @@
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.UserNotificationTypePreferenceEntity = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ const business_notification_type_preference_attributes_dto_1 = require("../dtos/business.notification.type.preference.attributes.dto");
16
+ const access_business_entity_1 = require("./access.business.entity");
17
+ const notification_type_entity_1 = require("./notification.type.entity");
18
+ let UserNotificationTypePreferenceEntity = class UserNotificationTypePreferenceEntity extends nestjs_utility_services_1.CommonEntity {
19
+ };
20
+ exports.UserNotificationTypePreferenceEntity = UserNotificationTypePreferenceEntity;
21
+ __decorate([
22
+ (0, typeorm_1.Column)(),
23
+ __metadata("design:type", Number)
24
+ ], UserNotificationTypePreferenceEntity.prototype, "business_id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)(),
27
+ __metadata("design:type", Number)
28
+ ], UserNotificationTypePreferenceEntity.prototype, "user_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)(),
31
+ __metadata("design:type", Number)
32
+ ], UserNotificationTypePreferenceEntity.prototype, "notification_type_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)(),
35
+ __metadata("design:type", Number)
36
+ ], UserNotificationTypePreferenceEntity.prototype, "channel_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)(),
39
+ __metadata("design:type", Boolean)
40
+ ], UserNotificationTypePreferenceEntity.prototype, "active", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)('jsonb'),
43
+ __metadata("design:type", business_notification_type_preference_attributes_dto_1.BusinessNotificationTypePreferenceAttributesDto)
44
+ ], UserNotificationTypePreferenceEntity.prototype, "attributes", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
47
+ (0, typeorm_1.JoinColumn)({ name: 'business_id' }),
48
+ __metadata("design:type", access_business_entity_1.AccessBusinessEntity)
49
+ ], UserNotificationTypePreferenceEntity.prototype, "business", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.ManyToOne)(() => nestjs_utility_services_1.UserEntity),
52
+ (0, typeorm_1.JoinColumn)({ name: 'user_id' }),
53
+ __metadata("design:type", nestjs_utility_services_1.UserEntity)
54
+ ], UserNotificationTypePreferenceEntity.prototype, "user", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.ManyToOne)(() => notification_type_entity_1.NotificationTypeEntity),
57
+ (0, typeorm_1.JoinColumn)({ name: 'notification_type_id' }),
58
+ __metadata("design:type", notification_type_entity_1.NotificationTypeEntity)
59
+ ], UserNotificationTypePreferenceEntity.prototype, "notification_type", void 0);
60
+ exports.UserNotificationTypePreferenceEntity = UserNotificationTypePreferenceEntity = __decorate([
61
+ (0, typeorm_1.Entity)('bz_user_notification_type_preferences')
62
+ ], UserNotificationTypePreferenceEntity);
63
+ //# sourceMappingURL=user.notification.type.preference.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.notification.type.preference.entity.js","sourceRoot":"","sources":["../../../src/access/entities/user.notification.type.preference.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAkF;AAClF,qCAAgE;AAChE,uIAA+H;AAC/H,qEAAgE;AAChE,yEAAoE;AAW7D,IAAM,oCAAoC,GAA1C,MAAM,oCAAqC,SAAQ,sCAAY;CAwBrE,CAAA;AAxBY,oFAAoC;AAE7C;IADC,IAAA,gBAAM,GAAE;;yEACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;qEACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;kFACoB;AAI7B;IADC,IAAA,gBAAM,GAAE;;wEACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;oEACO;AAGhB;IADC,IAAA,gBAAM,EAAC,OAAO,CAAC;8BACJ,sGAA+C;wEAAC;AAGgB;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;sEAAC;AAC7C;IAA7D,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAU,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,oCAAU;kEAAC;AACQ;IAAtF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iDAAsB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;8BAAoB,iDAAsB;+EAAC;+CAvBxH,oCAAoC;IADhD,IAAA,gBAAM,EAAC,uCAAuC,CAAC;GACnC,oCAAoC,CAwBhD"}
@@ -0,0 +1,3 @@
1
+ export declare enum BusinessEmailTypeEnum {
2
+ EMITHOOK = "emithook"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BusinessEmailTypeEnum = void 0;
4
+ var BusinessEmailTypeEnum;
5
+ (function (BusinessEmailTypeEnum) {
6
+ BusinessEmailTypeEnum["EMITHOOK"] = "emithook";
7
+ })(BusinessEmailTypeEnum || (exports.BusinessEmailTypeEnum = BusinessEmailTypeEnum = {}));
8
+ //# sourceMappingURL=business.email.type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business.email.type.enum.js","sourceRoot":"","sources":["../../../src/access/enums/business.email.type.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,qBAEX;AAFD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;AACzB,CAAC,EAFW,qBAAqB,qCAArB,qBAAqB,QAEhC"}
@@ -1,6 +1,10 @@
1
+ export * from './business.email.type.enum';
1
2
  export * from './custom.column.type.enum';
2
3
  export * from './listing.view.type.enum';
3
4
  export * from './notification.channel.type.enum';
5
+ export * from './notification.suppression.reason.enum';
6
+ export * from './notification.type.audience.enum';
7
+ export * from './notification.type.control.enum';
4
8
  export * from './notification.type.enum';
5
9
  export * from './platform.type.enum';
6
10
  export * from './product.type.enum';
@@ -14,9 +14,13 @@ 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("./business.email.type.enum"), exports);
17
18
  __exportStar(require("./custom.column.type.enum"), exports);
18
19
  __exportStar(require("./listing.view.type.enum"), exports);
19
20
  __exportStar(require("./notification.channel.type.enum"), exports);
21
+ __exportStar(require("./notification.suppression.reason.enum"), exports);
22
+ __exportStar(require("./notification.type.audience.enum"), exports);
23
+ __exportStar(require("./notification.type.control.enum"), exports);
20
24
  __exportStar(require("./notification.type.enum"), exports);
21
25
  __exportStar(require("./platform.type.enum"), exports);
22
26
  __exportStar(require("./product.type.enum"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,4DAA0C;AAC1C,2DAAyC;AACzC,mEAAiD;AACjD,2DAAyC;AACzC,uDAAqC;AACrC,sDAAoC;AACpC,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,6DAA2C;AAC3C,4DAA0C;AAC1C,2DAAyC;AACzC,mEAAiD;AACjD,yEAAuD;AACvD,oEAAkD;AAClD,mEAAiD;AACjD,2DAAyC;AACzC,uDAAqC;AACrC,sDAAoC;AACpC,0DAAwC"}
@@ -3,5 +3,6 @@ export declare enum NotificationChannelTypeEnum {
3
3
  EMAIL = 5001,
4
4
  WHATSAPP = 5002,
5
5
  TEAMS = 5003,
6
- GCHAT = 5004
6
+ GCHAT = 5004,
7
+ SMS = 5005
7
8
  }
@@ -8,5 +8,6 @@ var NotificationChannelTypeEnum;
8
8
  NotificationChannelTypeEnum[NotificationChannelTypeEnum["WHATSAPP"] = 5002] = "WHATSAPP";
9
9
  NotificationChannelTypeEnum[NotificationChannelTypeEnum["TEAMS"] = 5003] = "TEAMS";
10
10
  NotificationChannelTypeEnum[NotificationChannelTypeEnum["GCHAT"] = 5004] = "GCHAT";
11
+ NotificationChannelTypeEnum[NotificationChannelTypeEnum["SMS"] = 5005] = "SMS";
11
12
  })(NotificationChannelTypeEnum || (exports.NotificationChannelTypeEnum = NotificationChannelTypeEnum = {}));
12
13
  //# sourceMappingURL=notification.channel.type.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification.channel.type.enum.js","sourceRoot":"","sources":["../../../src/access/enums/notification.channel.type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,2BAMX;AAND,WAAY,2BAA2B;IACnC,kFAAY,CAAA;IACZ,kFAAY,CAAA;IACZ,wFAAe,CAAA;IACf,kFAAY,CAAA;IACZ,kFAAY,CAAA;AAChB,CAAC,EANW,2BAA2B,2CAA3B,2BAA2B,QAMtC"}
1
+ {"version":3,"file":"notification.channel.type.enum.js","sourceRoot":"","sources":["../../../src/access/enums/notification.channel.type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,2BAOX;AAPD,WAAY,2BAA2B;IACnC,kFAAY,CAAA;IACZ,kFAAY,CAAA;IACZ,wFAAe,CAAA;IACf,kFAAY,CAAA;IACZ,kFAAY,CAAA;IACZ,8EAAU,CAAA;AACd,CAAC,EAPW,2BAA2B,2CAA3B,2BAA2B,QAOtC"}