@veruna/api-contracts 15.1.0 → 17.0.0

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 (336) hide show
  1. package/build/controllers/index.d.ts +3 -1
  2. package/build/controllers/index.js +8 -2
  3. package/build/controllers/index.js.map +1 -1
  4. package/build/controllers/notifications.controllers.d.ts +1 -0
  5. package/build/controllers/notifications.controllers.js +2 -1
  6. package/build/controllers/notifications.controllers.js.map +1 -1
  7. package/build/controllers/offers-unreg.controllers.d.ts +1 -0
  8. package/build/controllers/offers-unreg.controllers.js +5 -0
  9. package/build/controllers/offers-unreg.controllers.js.map +1 -0
  10. package/build/controllers/offers.controllers.d.ts +1 -0
  11. package/build/controllers/offers.controllers.js +5 -0
  12. package/build/controllers/offers.controllers.js.map +1 -0
  13. package/build/locales/validation.d.ts +482 -0
  14. package/build/locales/validation.js +340 -0
  15. package/build/locales/validation.js.map +1 -1
  16. package/build/rest-api.d.ts +24 -0
  17. package/build/rest-api.js +24 -0
  18. package/build/rest-api.js.map +1 -1
  19. package/build/routes/index.d.ts +3 -1
  20. package/build/routes/index.js +7 -2
  21. package/build/routes/index.js.map +1 -1
  22. package/build/routes/notifications.routes.d.ts +3 -0
  23. package/build/routes/notifications.routes.js +4 -1
  24. package/build/routes/notifications.routes.js.map +1 -1
  25. package/build/routes/offers.routes.d.ts +16 -0
  26. package/build/routes/offers.routes.js +20 -0
  27. package/build/routes/offers.routes.js.map +1 -0
  28. package/build/routes/web-notifications.routes.d.ts +3 -0
  29. package/build/routes/web-notifications.routes.js +3 -0
  30. package/build/routes/web-notifications.routes.js.map +1 -1
  31. package/build/shared/frontend-routes.d.ts +2 -0
  32. package/build/shared/frontend-routes.js +9 -1
  33. package/build/shared/frontend-routes.js.map +1 -1
  34. package/build/shared/regex.d.ts +1 -0
  35. package/build/shared/regex.js +2 -1
  36. package/build/shared/regex.js.map +1 -1
  37. package/build/tsconfig.tsbuildinfo +1 -1
  38. package/build/v1/ai/ai.errors.d.ts +1 -0
  39. package/build/v1/ai/ai.errors.js +5 -0
  40. package/build/v1/ai/ai.errors.js.map +1 -1
  41. package/build/v1/attribution/schemas/conversion-type.enum.d.ts +6 -1
  42. package/build/v1/attribution/schemas/conversion-type.enum.js +5 -0
  43. package/build/v1/attribution/schemas/conversion-type.enum.js.map +1 -1
  44. package/build/v1/engagement/schemas/lifecycle-campaign.enum.d.ts +0 -6
  45. package/build/v1/engagement/schemas/lifecycle-campaign.enum.js +0 -6
  46. package/build/v1/engagement/schemas/lifecycle-campaign.enum.js.map +1 -1
  47. package/build/v1/engagement/schemas/lifecycle-stage.enum.d.ts +3 -0
  48. package/build/v1/engagement/schemas/lifecycle-stage.enum.js +3 -0
  49. package/build/v1/engagement/schemas/lifecycle-stage.enum.js.map +1 -1
  50. package/build/v1/engagement/schemas/suppression-channel.enum.d.ts +3 -1
  51. package/build/v1/engagement/schemas/suppression-channel.enum.js +2 -0
  52. package/build/v1/engagement/schemas/suppression-channel.enum.js.map +1 -1
  53. package/build/v1/index.d.ts +1 -0
  54. package/build/v1/index.js +1 -0
  55. package/build/v1/index.js.map +1 -1
  56. package/build/v1/notifications/schemas/email-template.enum.d.ts +2 -8
  57. package/build/v1/notifications/schemas/email-template.enum.js +1 -7
  58. package/build/v1/notifications/schemas/email-template.enum.js.map +1 -1
  59. package/build/v1/notifications/schemas/index.d.ts +1 -0
  60. package/build/v1/notifications/schemas/index.js +1 -0
  61. package/build/v1/notifications/schemas/index.js.map +1 -1
  62. package/build/v1/notifications/schemas/notification-channel.enum.d.ts +3 -1
  63. package/build/v1/notifications/schemas/notification-channel.enum.js +2 -0
  64. package/build/v1/notifications/schemas/notification-channel.enum.js.map +1 -1
  65. package/build/v1/notifications/schemas/notification-job-status.enum.d.ts +2 -1
  66. package/build/v1/notifications/schemas/notification-job-status.enum.js +1 -0
  67. package/build/v1/notifications/schemas/notification-job-status.enum.js.map +1 -1
  68. package/build/v1/notifications/schemas/unsubscribe-params.schema.d.ts +6 -0
  69. package/build/v1/notifications/schemas/unsubscribe-params.schema.js +16 -0
  70. package/build/v1/notifications/schemas/unsubscribe-params.schema.js.map +1 -0
  71. package/build/v1/offers/commands/admin-create-offer-campaign.command.d.ts +125 -0
  72. package/build/v1/offers/commands/admin-create-offer-campaign.command.js +14 -0
  73. package/build/v1/offers/commands/admin-create-offer-campaign.command.js.map +1 -0
  74. package/build/v1/offers/commands/admin-delete-offer-campaign.command.d.ts +12 -0
  75. package/build/v1/offers/commands/admin-delete-offer-campaign.command.js +15 -0
  76. package/build/v1/offers/commands/admin-delete-offer-campaign.command.js.map +1 -0
  77. package/build/v1/offers/commands/admin-issue-offer-campaign.command.d.ts +15 -0
  78. package/build/v1/offers/commands/admin-issue-offer-campaign.command.js +14 -0
  79. package/build/v1/offers/commands/admin-issue-offer-campaign.command.js.map +1 -0
  80. package/build/v1/offers/commands/admin-revoke-offer-campaign.command.d.ts +16 -0
  81. package/build/v1/offers/commands/admin-revoke-offer-campaign.command.js +15 -0
  82. package/build/v1/offers/commands/admin-revoke-offer-campaign.command.js.map +1 -0
  83. package/build/v1/offers/commands/admin-update-offer-campaign.command.d.ts +124 -0
  84. package/build/v1/offers/commands/admin-update-offer-campaign.command.js +14 -0
  85. package/build/v1/offers/commands/admin-update-offer-campaign.command.js.map +1 -0
  86. package/build/v1/offers/commands/index.d.ts +6 -0
  87. package/build/v1/offers/commands/index.js +25 -0
  88. package/build/v1/offers/commands/index.js.map +1 -0
  89. package/build/v1/offers/commands/unreg-track-header-offer.command.d.ts +11 -0
  90. package/build/v1/offers/commands/unreg-track-header-offer.command.js +15 -0
  91. package/build/v1/offers/commands/unreg-track-header-offer.command.js.map +1 -0
  92. package/build/v1/offers/index.d.ts +6 -0
  93. package/build/v1/offers/index.js +26 -0
  94. package/build/v1/offers/index.js.map +1 -0
  95. package/build/v1/offers/offers.errors.d.ts +13 -0
  96. package/build/v1/offers/offers.errors.js +54 -0
  97. package/build/v1/offers/offers.errors.js.map +1 -0
  98. package/build/v1/offers/queries/admin-get-offer-campaign-by-id.query.d.ts +70 -0
  99. package/build/v1/offers/queries/admin-get-offer-campaign-by-id.query.js +15 -0
  100. package/build/v1/offers/queries/admin-get-offer-campaign-by-id.query.js.map +1 -0
  101. package/build/v1/offers/queries/admin-get-offer-campaign-stats.query.d.ts +21 -0
  102. package/build/v1/offers/queries/admin-get-offer-campaign-stats.query.js +15 -0
  103. package/build/v1/offers/queries/admin-get-offer-campaign-stats.query.js.map +1 -0
  104. package/build/v1/offers/queries/admin-list-offer-campaigns.query.d.ts +83 -0
  105. package/build/v1/offers/queries/admin-list-offer-campaigns.query.js +14 -0
  106. package/build/v1/offers/queries/admin-list-offer-campaigns.query.js.map +1 -0
  107. package/build/v1/offers/queries/admin-list-user-offers.query.d.ts +34 -0
  108. package/build/v1/offers/queries/admin-list-user-offers.query.js +14 -0
  109. package/build/v1/offers/queries/admin-list-user-offers.query.js.map +1 -0
  110. package/build/v1/offers/queries/index.d.ts +5 -0
  111. package/build/v1/offers/queries/index.js +24 -0
  112. package/build/v1/offers/queries/index.js.map +1 -0
  113. package/build/v1/offers/queries/unreg-get-header-offer.query.d.ts +23 -0
  114. package/build/v1/offers/queries/unreg-get-header-offer.query.js +15 -0
  115. package/build/v1/offers/queries/unreg-get-header-offer.query.js.map +1 -0
  116. package/build/v1/offers/schemas/admin-list-offer-campaigns-filters.schema.d.ts +18 -0
  117. package/build/v1/offers/schemas/admin-list-offer-campaigns-filters.schema.js +45 -0
  118. package/build/v1/offers/schemas/admin-list-offer-campaigns-filters.schema.js.map +1 -0
  119. package/build/v1/offers/schemas/admin-list-user-offers-filters.schema.d.ts +9 -0
  120. package/build/v1/offers/schemas/admin-list-user-offers-filters.schema.js +25 -0
  121. package/build/v1/offers/schemas/admin-list-user-offers-filters.schema.js.map +1 -0
  122. package/build/v1/offers/schemas/admin-offer-campaign-sort.enum.d.ts +6 -0
  123. package/build/v1/offers/schemas/admin-offer-campaign-sort.enum.js +11 -0
  124. package/build/v1/offers/schemas/admin-offer-campaign-sort.enum.js.map +1 -0
  125. package/build/v1/offers/schemas/guest-offer-banner.schema.d.ts +30 -0
  126. package/build/v1/offers/schemas/guest-offer-banner.schema.js +21 -0
  127. package/build/v1/offers/schemas/guest-offer-banner.schema.js.map +1 -0
  128. package/build/v1/offers/schemas/index.d.ts +18 -0
  129. package/build/v1/offers/schemas/index.js +39 -0
  130. package/build/v1/offers/schemas/index.js.map +1 -0
  131. package/build/v1/offers/schemas/offer-audience.schema.d.ts +7 -0
  132. package/build/v1/offers/schemas/offer-audience.schema.js +18 -0
  133. package/build/v1/offers/schemas/offer-audience.schema.js.map +1 -0
  134. package/build/v1/offers/schemas/offer-campaign-stats.schema.d.ts +14 -0
  135. package/build/v1/offers/schemas/offer-campaign-stats.schema.js +17 -0
  136. package/build/v1/offers/schemas/offer-campaign-stats.schema.js.map +1 -0
  137. package/build/v1/offers/schemas/offer-campaign-status.enum.d.ts +5 -0
  138. package/build/v1/offers/schemas/offer-campaign-status.enum.js +10 -0
  139. package/build/v1/offers/schemas/offer-campaign-status.enum.js.map +1 -0
  140. package/build/v1/offers/schemas/offer-campaign.schema.d.ts +268 -0
  141. package/build/v1/offers/schemas/offer-campaign.schema.js +248 -0
  142. package/build/v1/offers/schemas/offer-campaign.schema.js.map +1 -0
  143. package/build/v1/offers/schemas/offer-countdown-mode.enum.d.ts +5 -0
  144. package/build/v1/offers/schemas/offer-countdown-mode.enum.js +10 -0
  145. package/build/v1/offers/schemas/offer-countdown-mode.enum.js.map +1 -0
  146. package/build/v1/offers/schemas/offer-cta-action.enum.d.ts +4 -0
  147. package/build/v1/offers/schemas/offer-cta-action.enum.js +9 -0
  148. package/build/v1/offers/schemas/offer-cta-action.enum.js.map +1 -0
  149. package/build/v1/offers/schemas/offer-presentation.schema.d.ts +47 -0
  150. package/build/v1/offers/schemas/offer-presentation.schema.js +97 -0
  151. package/build/v1/offers/schemas/offer-presentation.schema.js.map +1 -0
  152. package/build/v1/offers/schemas/offer-promo-template.schema.d.ts +28 -0
  153. package/build/v1/offers/schemas/offer-promo-template.schema.js +44 -0
  154. package/build/v1/offers/schemas/offer-promo-template.schema.js.map +1 -0
  155. package/build/v1/offers/schemas/offer-trigger-type.enum.d.ts +5 -0
  156. package/build/v1/offers/schemas/offer-trigger-type.enum.js +10 -0
  157. package/build/v1/offers/schemas/offer-trigger-type.enum.js.map +1 -0
  158. package/build/v1/offers/schemas/unreg-track-header-offer-request.schema.d.ts +5 -0
  159. package/build/v1/offers/schemas/unreg-track-header-offer-request.schema.js +11 -0
  160. package/build/v1/offers/schemas/unreg-track-header-offer-request.schema.js.map +1 -0
  161. package/build/v1/offers/schemas/user-offer-event-type.enum.d.ts +6 -0
  162. package/build/v1/offers/schemas/user-offer-event-type.enum.js +11 -0
  163. package/build/v1/offers/schemas/user-offer-event-type.enum.js.map +1 -0
  164. package/build/v1/offers/schemas/user-offer-status.enum.d.ts +9 -0
  165. package/build/v1/offers/schemas/user-offer-status.enum.js +14 -0
  166. package/build/v1/offers/schemas/user-offer-status.enum.js.map +1 -0
  167. package/build/v1/offers/schemas/user-offer.schema.d.ts +41 -0
  168. package/build/v1/offers/schemas/user-offer.schema.js +28 -0
  169. package/build/v1/offers/schemas/user-offer.schema.js.map +1 -0
  170. package/build/v1/web-notifications/commands/dismiss-web-notification.command.d.ts +12 -0
  171. package/build/v1/web-notifications/commands/dismiss-web-notification.command.js +15 -0
  172. package/build/v1/web-notifications/commands/dismiss-web-notification.command.js.map +1 -0
  173. package/build/v1/web-notifications/commands/index.d.ts +3 -0
  174. package/build/v1/web-notifications/commands/index.js +3 -0
  175. package/build/v1/web-notifications/commands/index.js.map +1 -1
  176. package/build/v1/web-notifications/commands/track-web-notification-click.command.d.ts +12 -0
  177. package/build/v1/web-notifications/commands/track-web-notification-click.command.js +15 -0
  178. package/build/v1/web-notifications/commands/track-web-notification-click.command.js.map +1 -0
  179. package/build/v1/web-notifications/commands/track-web-notification-impression.command.d.ts +12 -0
  180. package/build/v1/web-notifications/commands/track-web-notification-impression.command.js +15 -0
  181. package/build/v1/web-notifications/commands/track-web-notification-impression.command.js.map +1 -0
  182. package/build/v1/web-notifications/queries/get-web-notifications.query.d.ts +6 -0
  183. package/build/v1/web-notifications/queries/get-web-unread-count.query.d.ts +2 -0
  184. package/build/v1/web-notifications/schemas/dismiss-web-notification-response.schema.d.ts +5 -0
  185. package/build/v1/web-notifications/schemas/dismiss-web-notification-response.schema.js +8 -0
  186. package/build/v1/web-notifications/schemas/dismiss-web-notification-response.schema.js.map +1 -0
  187. package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.d.ts +4 -0
  188. package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.js +20 -0
  189. package/build/v1/web-notifications/schemas/get-web-notifications-query.schema.js.map +1 -1
  190. package/build/v1/web-notifications/schemas/index.d.ts +2 -0
  191. package/build/v1/web-notifications/schemas/index.js +2 -0
  192. package/build/v1/web-notifications/schemas/index.js.map +1 -1
  193. package/build/v1/web-notifications/schemas/track-web-notification-engagement-response.schema.d.ts +5 -0
  194. package/build/v1/web-notifications/schemas/track-web-notification-engagement-response.schema.js +8 -0
  195. package/build/v1/web-notifications/schemas/track-web-notification-engagement-response.schema.js.map +1 -0
  196. package/build/v1/web-notifications/schemas/web-notification.schema.d.ts +4 -0
  197. package/build/v1/web-notifications/schemas/web-notification.schema.js +4 -0
  198. package/build/v1/web-notifications/schemas/web-notification.schema.js.map +1 -1
  199. package/build/v1/web-notifications/schemas/web-notifications-response.schema.d.ts +4 -0
  200. package/build/v1/web-notifications/schemas/web-unread-count-response.schema.d.ts +3 -0
  201. package/build/v1/web-notifications/schemas/web-unread-count-response.schema.js +3 -0
  202. package/build/v1/web-notifications/schemas/web-unread-count-response.schema.js.map +1 -1
  203. package/build-esm/.tsbuildinfo +1 -1
  204. package/build-esm/controllers/index.js +3 -1
  205. package/build-esm/controllers/index.js.map +1 -1
  206. package/build-esm/controllers/notifications.controllers.js +1 -0
  207. package/build-esm/controllers/notifications.controllers.js.map +1 -1
  208. package/build-esm/controllers/offers-unreg.controllers.js +2 -0
  209. package/build-esm/controllers/offers-unreg.controllers.js.map +1 -0
  210. package/build-esm/controllers/offers.controllers.js +2 -0
  211. package/build-esm/controllers/offers.controllers.js.map +1 -0
  212. package/build-esm/locales/validation.js +340 -0
  213. package/build-esm/locales/validation.js.map +1 -1
  214. package/build-esm/rest-api.js +26 -2
  215. package/build-esm/rest-api.js.map +1 -1
  216. package/build-esm/routes/index.js +3 -1
  217. package/build-esm/routes/index.js.map +1 -1
  218. package/build-esm/routes/notifications.routes.js +3 -0
  219. package/build-esm/routes/notifications.routes.js.map +1 -1
  220. package/build-esm/routes/offers.routes.js +17 -0
  221. package/build-esm/routes/offers.routes.js.map +1 -0
  222. package/build-esm/routes/web-notifications.routes.js +3 -0
  223. package/build-esm/routes/web-notifications.routes.js.map +1 -1
  224. package/build-esm/shared/frontend-routes.js +7 -0
  225. package/build-esm/shared/frontend-routes.js.map +1 -1
  226. package/build-esm/shared/regex.js +1 -0
  227. package/build-esm/shared/regex.js.map +1 -1
  228. package/build-esm/v1/ai/ai.errors.js +5 -0
  229. package/build-esm/v1/ai/ai.errors.js.map +1 -1
  230. package/build-esm/v1/attribution/schemas/conversion-type.enum.js +5 -0
  231. package/build-esm/v1/attribution/schemas/conversion-type.enum.js.map +1 -1
  232. package/build-esm/v1/engagement/schemas/lifecycle-campaign.enum.js +0 -6
  233. package/build-esm/v1/engagement/schemas/lifecycle-campaign.enum.js.map +1 -1
  234. package/build-esm/v1/engagement/schemas/lifecycle-stage.enum.js +3 -0
  235. package/build-esm/v1/engagement/schemas/lifecycle-stage.enum.js.map +1 -1
  236. package/build-esm/v1/engagement/schemas/suppression-channel.enum.js +2 -0
  237. package/build-esm/v1/engagement/schemas/suppression-channel.enum.js.map +1 -1
  238. package/build-esm/v1/index.js +1 -0
  239. package/build-esm/v1/index.js.map +1 -1
  240. package/build-esm/v1/notifications/schemas/email-template.enum.js +1 -7
  241. package/build-esm/v1/notifications/schemas/email-template.enum.js.map +1 -1
  242. package/build-esm/v1/notifications/schemas/index.js +1 -0
  243. package/build-esm/v1/notifications/schemas/index.js.map +1 -1
  244. package/build-esm/v1/notifications/schemas/notification-channel.enum.js +2 -0
  245. package/build-esm/v1/notifications/schemas/notification-channel.enum.js.map +1 -1
  246. package/build-esm/v1/notifications/schemas/notification-job-status.enum.js +1 -0
  247. package/build-esm/v1/notifications/schemas/notification-job-status.enum.js.map +1 -1
  248. package/build-esm/v1/notifications/schemas/unsubscribe-params.schema.js +13 -0
  249. package/build-esm/v1/notifications/schemas/unsubscribe-params.schema.js.map +1 -0
  250. package/build-esm/v1/offers/commands/admin-create-offer-campaign.command.js +11 -0
  251. package/build-esm/v1/offers/commands/admin-create-offer-campaign.command.js.map +1 -0
  252. package/build-esm/v1/offers/commands/admin-delete-offer-campaign.command.js +12 -0
  253. package/build-esm/v1/offers/commands/admin-delete-offer-campaign.command.js.map +1 -0
  254. package/build-esm/v1/offers/commands/admin-issue-offer-campaign.command.js +11 -0
  255. package/build-esm/v1/offers/commands/admin-issue-offer-campaign.command.js.map +1 -0
  256. package/build-esm/v1/offers/commands/admin-revoke-offer-campaign.command.js +12 -0
  257. package/build-esm/v1/offers/commands/admin-revoke-offer-campaign.command.js.map +1 -0
  258. package/build-esm/v1/offers/commands/admin-update-offer-campaign.command.js +11 -0
  259. package/build-esm/v1/offers/commands/admin-update-offer-campaign.command.js.map +1 -0
  260. package/build-esm/v1/offers/commands/index.js +7 -0
  261. package/build-esm/v1/offers/commands/index.js.map +1 -0
  262. package/build-esm/v1/offers/commands/unreg-track-header-offer.command.js +12 -0
  263. package/build-esm/v1/offers/commands/unreg-track-header-offer.command.js.map +1 -0
  264. package/build-esm/v1/offers/index.js +7 -0
  265. package/build-esm/v1/offers/index.js.map +1 -0
  266. package/build-esm/v1/offers/offers.errors.js +51 -0
  267. package/build-esm/v1/offers/offers.errors.js.map +1 -0
  268. package/build-esm/v1/offers/queries/admin-get-offer-campaign-by-id.query.js +12 -0
  269. package/build-esm/v1/offers/queries/admin-get-offer-campaign-by-id.query.js.map +1 -0
  270. package/build-esm/v1/offers/queries/admin-get-offer-campaign-stats.query.js +12 -0
  271. package/build-esm/v1/offers/queries/admin-get-offer-campaign-stats.query.js.map +1 -0
  272. package/build-esm/v1/offers/queries/admin-list-offer-campaigns.query.js +11 -0
  273. package/build-esm/v1/offers/queries/admin-list-offer-campaigns.query.js.map +1 -0
  274. package/build-esm/v1/offers/queries/admin-list-user-offers.query.js +11 -0
  275. package/build-esm/v1/offers/queries/admin-list-user-offers.query.js.map +1 -0
  276. package/build-esm/v1/offers/queries/index.js +6 -0
  277. package/build-esm/v1/offers/queries/index.js.map +1 -0
  278. package/build-esm/v1/offers/queries/unreg-get-header-offer.query.js +12 -0
  279. package/build-esm/v1/offers/queries/unreg-get-header-offer.query.js.map +1 -0
  280. package/build-esm/v1/offers/schemas/admin-list-offer-campaigns-filters.schema.js +42 -0
  281. package/build-esm/v1/offers/schemas/admin-list-offer-campaigns-filters.schema.js.map +1 -0
  282. package/build-esm/v1/offers/schemas/admin-list-user-offers-filters.schema.js +22 -0
  283. package/build-esm/v1/offers/schemas/admin-list-user-offers-filters.schema.js.map +1 -0
  284. package/build-esm/v1/offers/schemas/admin-offer-campaign-sort.enum.js +8 -0
  285. package/build-esm/v1/offers/schemas/admin-offer-campaign-sort.enum.js.map +1 -0
  286. package/build-esm/v1/offers/schemas/guest-offer-banner.schema.js +18 -0
  287. package/build-esm/v1/offers/schemas/guest-offer-banner.schema.js.map +1 -0
  288. package/build-esm/v1/offers/schemas/index.js +18 -0
  289. package/build-esm/v1/offers/schemas/index.js.map +1 -0
  290. package/build-esm/v1/offers/schemas/offer-audience.schema.js +15 -0
  291. package/build-esm/v1/offers/schemas/offer-audience.schema.js.map +1 -0
  292. package/build-esm/v1/offers/schemas/offer-campaign-stats.schema.js +14 -0
  293. package/build-esm/v1/offers/schemas/offer-campaign-stats.schema.js.map +1 -0
  294. package/build-esm/v1/offers/schemas/offer-campaign-status.enum.js +7 -0
  295. package/build-esm/v1/offers/schemas/offer-campaign-status.enum.js.map +1 -0
  296. package/build-esm/v1/offers/schemas/offer-campaign.schema.js +245 -0
  297. package/build-esm/v1/offers/schemas/offer-campaign.schema.js.map +1 -0
  298. package/build-esm/v1/offers/schemas/offer-countdown-mode.enum.js +7 -0
  299. package/build-esm/v1/offers/schemas/offer-countdown-mode.enum.js.map +1 -0
  300. package/build-esm/v1/offers/schemas/offer-cta-action.enum.js +6 -0
  301. package/build-esm/v1/offers/schemas/offer-cta-action.enum.js.map +1 -0
  302. package/build-esm/v1/offers/schemas/offer-presentation.schema.js +94 -0
  303. package/build-esm/v1/offers/schemas/offer-presentation.schema.js.map +1 -0
  304. package/build-esm/v1/offers/schemas/offer-promo-template.schema.js +41 -0
  305. package/build-esm/v1/offers/schemas/offer-promo-template.schema.js.map +1 -0
  306. package/build-esm/v1/offers/schemas/offer-trigger-type.enum.js +7 -0
  307. package/build-esm/v1/offers/schemas/offer-trigger-type.enum.js.map +1 -0
  308. package/build-esm/v1/offers/schemas/unreg-track-header-offer-request.schema.js +8 -0
  309. package/build-esm/v1/offers/schemas/unreg-track-header-offer-request.schema.js.map +1 -0
  310. package/build-esm/v1/offers/schemas/user-offer-event-type.enum.js +8 -0
  311. package/build-esm/v1/offers/schemas/user-offer-event-type.enum.js.map +1 -0
  312. package/build-esm/v1/offers/schemas/user-offer-status.enum.js +11 -0
  313. package/build-esm/v1/offers/schemas/user-offer-status.enum.js.map +1 -0
  314. package/build-esm/v1/offers/schemas/user-offer.schema.js +25 -0
  315. package/build-esm/v1/offers/schemas/user-offer.schema.js.map +1 -0
  316. package/build-esm/v1/web-notifications/commands/dismiss-web-notification.command.js +12 -0
  317. package/build-esm/v1/web-notifications/commands/dismiss-web-notification.command.js.map +1 -0
  318. package/build-esm/v1/web-notifications/commands/index.js +3 -0
  319. package/build-esm/v1/web-notifications/commands/index.js.map +1 -1
  320. package/build-esm/v1/web-notifications/commands/track-web-notification-click.command.js +12 -0
  321. package/build-esm/v1/web-notifications/commands/track-web-notification-click.command.js.map +1 -0
  322. package/build-esm/v1/web-notifications/commands/track-web-notification-impression.command.js +12 -0
  323. package/build-esm/v1/web-notifications/commands/track-web-notification-impression.command.js.map +1 -0
  324. package/build-esm/v1/web-notifications/schemas/dismiss-web-notification-response.schema.js +5 -0
  325. package/build-esm/v1/web-notifications/schemas/dismiss-web-notification-response.schema.js.map +1 -0
  326. package/build-esm/v1/web-notifications/schemas/get-web-notifications-query.schema.js +20 -0
  327. package/build-esm/v1/web-notifications/schemas/get-web-notifications-query.schema.js.map +1 -1
  328. package/build-esm/v1/web-notifications/schemas/index.js +2 -0
  329. package/build-esm/v1/web-notifications/schemas/index.js.map +1 -1
  330. package/build-esm/v1/web-notifications/schemas/track-web-notification-engagement-response.schema.js +5 -0
  331. package/build-esm/v1/web-notifications/schemas/track-web-notification-engagement-response.schema.js.map +1 -0
  332. package/build-esm/v1/web-notifications/schemas/web-notification.schema.js +4 -0
  333. package/build-esm/v1/web-notifications/schemas/web-notification.schema.js.map +1 -1
  334. package/build-esm/v1/web-notifications/schemas/web-unread-count-response.schema.js +3 -0
  335. package/build-esm/v1/web-notifications/schemas/web-unread-count-response.schema.js.map +1 -1
  336. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ export declare const TrackWebNotificationEngagementResponseSchema: z.ZodObject<{
3
+ tracked: z.ZodBoolean;
4
+ }, z.core.$strip>;
5
+ export type TrackWebNotificationEngagementResponseDto = z.infer<typeof TrackWebNotificationEngagementResponseSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TrackWebNotificationEngagementResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.TrackWebNotificationEngagementResponseSchema = zod_1.z.object({
6
+ tracked: zod_1.z.boolean(),
7
+ });
8
+ //# sourceMappingURL=track-web-notification-engagement-response.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"track-web-notification-engagement-response.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/track-web-notification-engagement-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAOX,QAAA,4CAA4C,GAAG,OAAC,CAAC,MAAM,CAAC;IACjE,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAC"}
@@ -9,6 +9,10 @@ export declare const WebNotificationSchema: z.ZodObject<{
9
9
  ctaLabel: z.ZodNullable<z.ZodString>;
10
10
  ctaUrl: z.ZodNullable<z.ZodString>;
11
11
  imageUrl: z.ZodNullable<z.ZodString>;
12
+ variant: z.ZodNullable<z.ZodString>;
13
+ badge: z.ZodNullable<z.ZodString>;
14
+ dismissible: z.ZodBoolean;
15
+ countdownUntil: z.ZodNullable<z.ZodString>;
12
16
  readAt: z.ZodNullable<z.ZodString>;
13
17
  createdAt: z.ZodString;
14
18
  }, z.core.$strip>;
@@ -13,6 +13,10 @@ exports.WebNotificationSchema = zod_1.z.object({
13
13
  ctaLabel: zod_1.z.string().nullable(),
14
14
  ctaUrl: zod_1.z.string().nullable(),
15
15
  imageUrl: zod_1.z.string().nullable(),
16
+ variant: zod_1.z.string().nullable(),
17
+ badge: zod_1.z.string().nullable(),
18
+ dismissible: zod_1.z.boolean(),
19
+ countdownUntil: zod_1.z.string().regex(regex_1.DATETIME_REGEX).nullable(),
16
20
  readAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX).nullable(),
17
21
  createdAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX),
18
22
  });
@@ -1 +1 @@
1
- {"version":3,"file":"web-notification.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/web-notification.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAmE;AACnE,iGAAwF;AAE3E,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IAClC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IACvC,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,2CAAiB,CAAC;IACnC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC,CAAC,QAAQ,EAAE;IACnD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC;CAC9C,CAAC,CAAC"}
1
+ {"version":3,"file":"web-notification.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/web-notification.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAmE;AACnE,iGAAwF;AAE3E,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IAClC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IACvC,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,2CAAiB,CAAC;IACnC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAO/B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAE5B,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE;IAKxB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC,CAAC,QAAQ,EAAE;IAC3D,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC,CAAC,QAAQ,EAAE;IACnD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC;CAC9C,CAAC,CAAC"}
@@ -9,6 +9,10 @@ export declare const WebNotificationsResponseSchema: z.ZodObject<{
9
9
  ctaLabel: z.ZodNullable<z.ZodString>;
10
10
  ctaUrl: z.ZodNullable<z.ZodString>;
11
11
  imageUrl: z.ZodNullable<z.ZodString>;
12
+ variant: z.ZodNullable<z.ZodString>;
13
+ badge: z.ZodNullable<z.ZodString>;
14
+ dismissible: z.ZodBoolean;
15
+ countdownUntil: z.ZodNullable<z.ZodString>;
12
16
  readAt: z.ZodNullable<z.ZodString>;
13
17
  createdAt: z.ZodString;
14
18
  }, z.core.$strip>>;
@@ -1,5 +1,8 @@
1
1
  import { z } from 'zod';
2
+ import { NotificationGroup } from '../../notifications/schemas/notification-group.enum';
2
3
  export declare const WebUnreadCountResponseSchema: z.ZodObject<{
3
4
  unreadCount: z.ZodNumber;
5
+ total: z.ZodNumber;
6
+ byGroup: z.ZodRecord<z.ZodEnum<typeof NotificationGroup>, z.ZodNumber>;
4
7
  }, z.core.$strip>;
5
8
  export type WebUnreadCountResponseDto = z.infer<typeof WebUnreadCountResponseSchema>;
@@ -2,7 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WebUnreadCountResponseSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const notification_group_enum_1 = require("../../notifications/schemas/notification-group.enum");
5
6
  exports.WebUnreadCountResponseSchema = zod_1.z.object({
6
7
  unreadCount: zod_1.z.number().int().nonnegative(),
8
+ total: zod_1.z.number().int().nonnegative(),
9
+ byGroup: zod_1.z.record(zod_1.z.enum(notification_group_enum_1.NotificationGroup), zod_1.z.number().int().nonnegative()),
7
10
  });
8
11
  //# sourceMappingURL=web-unread-count-response.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"web-unread-count-response.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/web-unread-count-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC9C,CAAC,CAAC"}
1
+ {"version":3,"file":"web-unread-count-response.schema.js","sourceRoot":"","sources":["../../../../v1/web-notifications/schemas/web-unread-count-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iGAAwF;AAE3E,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IAKjD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAErC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,IAAI,CAAC,2CAAiB,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC;CAC/E,CAAC,CAAC"}