@geekmidas/events 9.0.2 → 10.0.0-alpha.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 (353) hide show
  1. package/dist/{PgBossConnection-B71ssr72.cjs → PgBossConnection-23soZ_aM.cjs} +2 -2
  2. package/dist/{PgBossConnection-B71ssr72.cjs.map → PgBossConnection-23soZ_aM.cjs.map} +1 -1
  3. package/dist/PgBossConnection-CCXhoNzb.cjs +4 -0
  4. package/dist/{PgBossConnection-Bj_Wo1lQ.mjs → PgBossConnection-DvNbd4Zk.mjs} +2 -2
  5. package/dist/{PgBossConnection-Bj_Wo1lQ.mjs.map → PgBossConnection-DvNbd4Zk.mjs.map} +1 -1
  6. package/dist/PgBossConnection-_gdM40JB.mjs +4 -0
  7. package/dist/{RabbitMQConnection-DmMMosT4.cjs → RabbitMQConnection-BKEdCUro.cjs} +2 -2
  8. package/dist/{RabbitMQConnection-DmMMosT4.cjs.map → RabbitMQConnection-BKEdCUro.cjs.map} +1 -1
  9. package/dist/RabbitMQConnection-CCOqDDnb.cjs +4 -0
  10. package/dist/RabbitMQConnection-DJEyM-Bu.mjs +4 -0
  11. package/dist/{RabbitMQConnection-BtKZjtZY.mjs → RabbitMQConnection-DJgUPc19.mjs} +2 -2
  12. package/dist/{RabbitMQConnection-BtKZjtZY.mjs.map → RabbitMQConnection-DJgUPc19.mjs.map} +1 -1
  13. package/dist/{SNSConnection-CAcbLQOy.cjs → SNSConnection-B2K86hpz.cjs} +7 -8
  14. package/dist/SNSConnection-B2K86hpz.cjs.map +1 -0
  15. package/dist/SNSConnection-BVo84FeW.mjs +5 -0
  16. package/dist/SNSConnection-DIHRjrQF.cjs +5 -0
  17. package/dist/{SNSConnection-CVjH93lb.mjs → SNSConnection-v9jjF99w.mjs} +7 -8
  18. package/dist/SNSConnection-v9jjF99w.mjs.map +1 -0
  19. package/dist/{SQSConnection-CT3S7_zP.mjs → SQSConnection-4tBMkVZE.mjs} +7 -8
  20. package/dist/SQSConnection-4tBMkVZE.mjs.map +1 -0
  21. package/dist/SQSConnection-BBLAvF-1.cjs +5 -0
  22. package/dist/{SQSConnection-Y0mdVTcB.cjs → SQSConnection-BaC7rGhI.cjs} +7 -8
  23. package/dist/SQSConnection-BaC7rGhI.cjs.map +1 -0
  24. package/dist/SQSConnection-DbavOq8_.mjs +5 -0
  25. package/dist/{SQSSubscriber-CQdSFzpe.mjs → SQSSubscriber-BMWZ3s5q.mjs} +1 -1
  26. package/dist/{SQSSubscriber-CQdSFzpe.mjs.map → SQSSubscriber-BMWZ3s5q.mjs.map} +1 -1
  27. package/dist/{SQSSubscriber-C4UA2hKq.cjs → SQSSubscriber-YXPlg2rm.cjs} +2 -2
  28. package/dist/{SQSSubscriber-C4UA2hKq.cjs.map → SQSSubscriber-YXPlg2rm.cjs.map} +1 -1
  29. package/dist/basic/index.cjs +71 -8
  30. package/dist/basic/index.cjs.map +1 -0
  31. package/dist/basic/index.d.cts +44 -5
  32. package/dist/basic/index.d.cts.map +1 -0
  33. package/dist/basic/index.d.mts +44 -5
  34. package/dist/basic/index.d.mts.map +1 -0
  35. package/dist/basic/index.mjs +67 -5
  36. package/dist/basic/index.mjs.map +1 -0
  37. package/dist/chunk-B9dir_RE.mjs +11 -0
  38. package/dist/{chunk-CUT6urMc.cjs → chunk-CsX-DzYB.cjs} +12 -0
  39. package/dist/index.cjs +189 -6
  40. package/dist/index.cjs.map +1 -0
  41. package/dist/index.d.cts +46 -5
  42. package/dist/index.d.cts.map +1 -0
  43. package/dist/index.d.mts +46 -5
  44. package/dist/index.d.mts.map +1 -0
  45. package/dist/index.mjs +188 -5
  46. package/dist/index.mjs.map +1 -0
  47. package/dist/pgboss/index.cjs +81 -5
  48. package/dist/pgboss/index.cjs.map +1 -0
  49. package/dist/pgboss/index.d.cts +65 -5
  50. package/dist/pgboss/index.d.cts.map +1 -0
  51. package/dist/pgboss/index.d.mts +65 -5
  52. package/dist/pgboss/index.d.mts.map +1 -0
  53. package/dist/pgboss/index.mjs +81 -5
  54. package/dist/pgboss/index.mjs.map +1 -0
  55. package/dist/rabbitmq/index.cjs +95 -5
  56. package/dist/rabbitmq/index.cjs.map +1 -0
  57. package/dist/rabbitmq/index.d.cts +83 -5
  58. package/dist/rabbitmq/index.d.cts.map +1 -0
  59. package/dist/rabbitmq/index.d.mts +83 -5
  60. package/dist/rabbitmq/index.d.mts.map +1 -0
  61. package/dist/rabbitmq/index.mjs +95 -5
  62. package/dist/rabbitmq/index.mjs.map +1 -0
  63. package/dist/sns/index.cjs +186 -7
  64. package/dist/sns/index.cjs.map +1 -0
  65. package/dist/sns/index.d.cts +109 -5
  66. package/dist/sns/index.d.cts.map +1 -0
  67. package/dist/sns/index.d.mts +109 -5
  68. package/dist/sns/index.d.mts.map +1 -0
  69. package/dist/sns/index.mjs +179 -7
  70. package/dist/sns/index.mjs.map +1 -0
  71. package/dist/sns/snsUrl.cjs +7 -0
  72. package/dist/sns/snsUrl.d.cts +2 -0
  73. package/dist/sns/snsUrl.d.mts +2 -0
  74. package/dist/sns/snsUrl.mjs +3 -0
  75. package/dist/snsUrl-ASdc0D1v.d.cts +61 -0
  76. package/dist/snsUrl-ASdc0D1v.d.cts.map +1 -0
  77. package/dist/snsUrl-CifYhPAa.mjs +79 -0
  78. package/dist/snsUrl-CifYhPAa.mjs.map +1 -0
  79. package/dist/snsUrl-FRbRcwF0.d.mts +61 -0
  80. package/dist/snsUrl-FRbRcwF0.d.mts.map +1 -0
  81. package/dist/snsUrl-f2gU3CzK.cjs +114 -0
  82. package/dist/snsUrl-f2gU3CzK.cjs.map +1 -0
  83. package/dist/sqs/index.cjs +67 -5
  84. package/dist/sqs/index.cjs.map +1 -0
  85. package/dist/sqs/index.d.cts +101 -5
  86. package/dist/sqs/index.d.cts.map +1 -0
  87. package/dist/sqs/index.d.mts +101 -5
  88. package/dist/sqs/index.d.mts.map +1 -0
  89. package/dist/sqs/index.mjs +60 -5
  90. package/dist/sqs/index.mjs.map +1 -0
  91. package/dist/sqs/sqsUrl.cjs +7 -0
  92. package/dist/sqs/sqsUrl.d.cts +2 -0
  93. package/dist/sqs/sqsUrl.d.mts +2 -0
  94. package/dist/sqs/sqsUrl.mjs +3 -0
  95. package/dist/sqsUrl-BV6zS-mi.d.mts +60 -0
  96. package/dist/sqsUrl-BV6zS-mi.d.mts.map +1 -0
  97. package/dist/sqsUrl-CbAsBFHI.mjs +80 -0
  98. package/dist/sqsUrl-CbAsBFHI.mjs.map +1 -0
  99. package/dist/sqsUrl-CdisN3GU.cjs +115 -0
  100. package/dist/sqsUrl-CdisN3GU.cjs.map +1 -0
  101. package/dist/sqsUrl-DZDPHxIk.d.cts +60 -0
  102. package/dist/sqsUrl-DZDPHxIk.d.cts.map +1 -0
  103. package/dist/{types-Dh9Jyinx.d.mts → types-BmixGrOD.d.cts} +1 -1
  104. package/dist/{types-Dh9Jyinx.d.mts.map → types-BmixGrOD.d.cts.map} +1 -1
  105. package/dist/{types-BrdcSEnd.mjs → types-CYDt-2RQ.mjs} +1 -1
  106. package/dist/{types-BrdcSEnd.mjs.map → types-CYDt-2RQ.mjs.map} +1 -1
  107. package/dist/{types-Dj23od3e.d.cts → types-DycjsYms.d.mts} +1 -1
  108. package/dist/{types-Dj23od3e.d.cts.map → types-DycjsYms.d.mts.map} +1 -1
  109. package/package.json +26 -3
  110. package/CHANGELOG.md +0 -109
  111. package/dist/BasicConnection-CQsJpx2J.d.cts +0 -27
  112. package/dist/BasicConnection-CQsJpx2J.d.cts.map +0 -1
  113. package/dist/BasicConnection-CxfNEvlb.cjs +0 -48
  114. package/dist/BasicConnection-CxfNEvlb.cjs.map +0 -1
  115. package/dist/BasicConnection-DcRelT64.d.mts +0 -27
  116. package/dist/BasicConnection-DcRelT64.d.mts.map +0 -1
  117. package/dist/BasicConnection-hl-Ogz3a.mjs +0 -42
  118. package/dist/BasicConnection-hl-Ogz3a.mjs.map +0 -1
  119. package/dist/BasicPublisher-C-hMX2Hy.d.mts +0 -14
  120. package/dist/BasicPublisher-C-hMX2Hy.d.mts.map +0 -1
  121. package/dist/BasicPublisher-CGMXg2I2.d.cts +0 -14
  122. package/dist/BasicPublisher-CGMXg2I2.d.cts.map +0 -1
  123. package/dist/BasicPublisher-CXAVKxgq.cjs +0 -20
  124. package/dist/BasicPublisher-CXAVKxgq.cjs.map +0 -1
  125. package/dist/BasicPublisher-DogbeHAH.mjs +0 -14
  126. package/dist/BasicPublisher-DogbeHAH.mjs.map +0 -1
  127. package/dist/BasicSubscriber-BJSZN22M.mjs +0 -16
  128. package/dist/BasicSubscriber-BJSZN22M.mjs.map +0 -1
  129. package/dist/BasicSubscriber-HzSJ_MbB.d.mts +0 -14
  130. package/dist/BasicSubscriber-HzSJ_MbB.d.mts.map +0 -1
  131. package/dist/BasicSubscriber-mVJRMXhZ.cjs +0 -22
  132. package/dist/BasicSubscriber-mVJRMXhZ.cjs.map +0 -1
  133. package/dist/BasicSubscriber-uW3IOyBj.d.cts +0 -14
  134. package/dist/BasicSubscriber-uW3IOyBj.d.cts.map +0 -1
  135. package/dist/EventConnection-4niMI6D8.d.mts +0 -13
  136. package/dist/EventConnection-4niMI6D8.d.mts.map +0 -1
  137. package/dist/EventConnection-BkA9FSVL.cjs +0 -45
  138. package/dist/EventConnection-BkA9FSVL.cjs.map +0 -1
  139. package/dist/EventConnection-Kr32GAzq.mjs +0 -40
  140. package/dist/EventConnection-Kr32GAzq.mjs.map +0 -1
  141. package/dist/EventConnection-dP42P87q.d.cts +0 -13
  142. package/dist/EventConnection-dP42P87q.d.cts.map +0 -1
  143. package/dist/EventConnection.cjs +0 -5
  144. package/dist/EventConnection.d.cts +0 -3
  145. package/dist/EventConnection.d.mts +0 -3
  146. package/dist/EventConnection.mjs +0 -4
  147. package/dist/PgBossConnection-DCfLGoHx.d.mts +0 -32
  148. package/dist/PgBossConnection-DCfLGoHx.d.mts.map +0 -1
  149. package/dist/PgBossConnection-oto_CAbP.d.cts +0 -32
  150. package/dist/PgBossConnection-oto_CAbP.d.cts.map +0 -1
  151. package/dist/PgBossPublisher-Bwo7qSoH.mjs +0 -35
  152. package/dist/PgBossPublisher-Bwo7qSoH.mjs.map +0 -1
  153. package/dist/PgBossPublisher-CqjigBVC.d.mts +0 -20
  154. package/dist/PgBossPublisher-CqjigBVC.d.mts.map +0 -1
  155. package/dist/PgBossPublisher-FTdYh58W.cjs +0 -41
  156. package/dist/PgBossPublisher-FTdYh58W.cjs.map +0 -1
  157. package/dist/PgBossPublisher-JIiB1zpA.d.cts +0 -20
  158. package/dist/PgBossPublisher-JIiB1zpA.d.cts.map +0 -1
  159. package/dist/PgBossSubscriber-BUiB1JKf.d.mts +0 -24
  160. package/dist/PgBossSubscriber-BUiB1JKf.d.mts.map +0 -1
  161. package/dist/PgBossSubscriber-BubVfuWm.cjs +0 -52
  162. package/dist/PgBossSubscriber-BubVfuWm.cjs.map +0 -1
  163. package/dist/PgBossSubscriber-Cozijfdj.d.cts +0 -24
  164. package/dist/PgBossSubscriber-Cozijfdj.d.cts.map +0 -1
  165. package/dist/PgBossSubscriber-DopATe80.mjs +0 -46
  166. package/dist/PgBossSubscriber-DopATe80.mjs.map +0 -1
  167. package/dist/Publisher-CKloIGh6.cjs +0 -79
  168. package/dist/Publisher-CKloIGh6.cjs.map +0 -1
  169. package/dist/Publisher-ChLTrUeP.mjs +0 -74
  170. package/dist/Publisher-ChLTrUeP.mjs.map +0 -1
  171. package/dist/Publisher-DDee6xau.d.cts +0 -21
  172. package/dist/Publisher-DDee6xau.d.cts.map +0 -1
  173. package/dist/Publisher-VHumMkrP.d.mts +0 -21
  174. package/dist/Publisher-VHumMkrP.d.mts.map +0 -1
  175. package/dist/Publisher.cjs +0 -4
  176. package/dist/Publisher.d.cts +0 -3
  177. package/dist/Publisher.d.mts +0 -3
  178. package/dist/Publisher.mjs +0 -4
  179. package/dist/RabbitMQConnection-DV9t3VYp.d.mts +0 -44
  180. package/dist/RabbitMQConnection-DV9t3VYp.d.mts.map +0 -1
  181. package/dist/RabbitMQConnection-jNME_eR7.d.cts +0 -44
  182. package/dist/RabbitMQConnection-jNME_eR7.d.cts.map +0 -1
  183. package/dist/RabbitMQPublisher-C94q6g8q.cjs +0 -45
  184. package/dist/RabbitMQPublisher-C94q6g8q.cjs.map +0 -1
  185. package/dist/RabbitMQPublisher-DKmgwqVj.d.mts +0 -25
  186. package/dist/RabbitMQPublisher-DKmgwqVj.d.mts.map +0 -1
  187. package/dist/RabbitMQPublisher-d257OHLa.d.cts +0 -25
  188. package/dist/RabbitMQPublisher-d257OHLa.d.cts.map +0 -1
  189. package/dist/RabbitMQPublisher-yUqWNq-P.mjs +0 -39
  190. package/dist/RabbitMQPublisher-yUqWNq-P.mjs.map +0 -1
  191. package/dist/RabbitMQSubscriber-BF7JGfYm.d.cts +0 -27
  192. package/dist/RabbitMQSubscriber-BF7JGfYm.d.cts.map +0 -1
  193. package/dist/RabbitMQSubscriber-BWniDtFs.mjs +0 -56
  194. package/dist/RabbitMQSubscriber-BWniDtFs.mjs.map +0 -1
  195. package/dist/RabbitMQSubscriber-CdbUy5mB.d.mts +0 -27
  196. package/dist/RabbitMQSubscriber-CdbUy5mB.d.mts.map +0 -1
  197. package/dist/RabbitMQSubscriber-DGEO-clQ.cjs +0 -62
  198. package/dist/RabbitMQSubscriber-DGEO-clQ.cjs.map +0 -1
  199. package/dist/SNSConnection-CAcbLQOy.cjs.map +0 -1
  200. package/dist/SNSConnection-CG4iEwA8.d.mts +0 -41
  201. package/dist/SNSConnection-CG4iEwA8.d.mts.map +0 -1
  202. package/dist/SNSConnection-CVjH93lb.mjs.map +0 -1
  203. package/dist/SNSConnection-Dol9FuxA.d.cts +0 -41
  204. package/dist/SNSConnection-Dol9FuxA.d.cts.map +0 -1
  205. package/dist/SNSPublisher-CjlMS3Z2.mjs +0 -41
  206. package/dist/SNSPublisher-CjlMS3Z2.mjs.map +0 -1
  207. package/dist/SNSPublisher-D50dPCEh.d.mts +0 -22
  208. package/dist/SNSPublisher-D50dPCEh.d.mts.map +0 -1
  209. package/dist/SNSPublisher-DQunY4NM.d.cts +0 -22
  210. package/dist/SNSPublisher-DQunY4NM.d.cts.map +0 -1
  211. package/dist/SNSPublisher-DV_8GGsi.cjs +0 -47
  212. package/dist/SNSPublisher-DV_8GGsi.cjs.map +0 -1
  213. package/dist/SNSSubscriber-BWaCQFl6.mjs +0 -139
  214. package/dist/SNSSubscriber-BWaCQFl6.mjs.map +0 -1
  215. package/dist/SNSSubscriber-CUgHK4W2.d.mts +0 -55
  216. package/dist/SNSSubscriber-CUgHK4W2.d.mts.map +0 -1
  217. package/dist/SNSSubscriber-ZE_-Hsps.cjs +0 -145
  218. package/dist/SNSSubscriber-ZE_-Hsps.cjs.map +0 -1
  219. package/dist/SNSSubscriber-ZGJjhXFQ.d.cts +0 -55
  220. package/dist/SNSSubscriber-ZGJjhXFQ.d.cts.map +0 -1
  221. package/dist/SQSConnection-BtEkDha8.d.cts +0 -41
  222. package/dist/SQSConnection-BtEkDha8.d.cts.map +0 -1
  223. package/dist/SQSConnection-CT3S7_zP.mjs.map +0 -1
  224. package/dist/SQSConnection-DVy43GCV.d.mts +0 -41
  225. package/dist/SQSConnection-DVy43GCV.d.mts.map +0 -1
  226. package/dist/SQSConnection-Y0mdVTcB.cjs.map +0 -1
  227. package/dist/SQSPublisher-B-32CC4G.mjs +0 -57
  228. package/dist/SQSPublisher-B-32CC4G.mjs.map +0 -1
  229. package/dist/SQSPublisher-CgUduk6H.cjs +0 -63
  230. package/dist/SQSPublisher-CgUduk6H.cjs.map +0 -1
  231. package/dist/SQSPublisher-kyl5HW3N.d.cts +0 -25
  232. package/dist/SQSPublisher-kyl5HW3N.d.cts.map +0 -1
  233. package/dist/SQSPublisher-qDE5Fp-N.d.mts +0 -25
  234. package/dist/SQSPublisher-qDE5Fp-N.d.mts.map +0 -1
  235. package/dist/SQSSubscriber-CDvaG4ij.d.cts +0 -44
  236. package/dist/SQSSubscriber-CDvaG4ij.d.cts.map +0 -1
  237. package/dist/SQSSubscriber-JfFuAAoP.d.mts +0 -44
  238. package/dist/SQSSubscriber-JfFuAAoP.d.mts.map +0 -1
  239. package/dist/Subscriber-CG_QUQZs.d.cts +0 -21
  240. package/dist/Subscriber-CG_QUQZs.d.cts.map +0 -1
  241. package/dist/Subscriber-CghW0A02.cjs +0 -88
  242. package/dist/Subscriber-CghW0A02.cjs.map +0 -1
  243. package/dist/Subscriber-DiYHmuF0.d.mts +0 -21
  244. package/dist/Subscriber-DiYHmuF0.d.mts.map +0 -1
  245. package/dist/Subscriber-bnkFtSvt.mjs +0 -83
  246. package/dist/Subscriber-bnkFtSvt.mjs.map +0 -1
  247. package/dist/Subscriber.cjs +0 -4
  248. package/dist/Subscriber.d.cts +0 -3
  249. package/dist/Subscriber.d.mts +0 -3
  250. package/dist/Subscriber.mjs +0 -4
  251. package/dist/basic/BasicConnection.cjs +0 -4
  252. package/dist/basic/BasicConnection.d.cts +0 -3
  253. package/dist/basic/BasicConnection.d.mts +0 -3
  254. package/dist/basic/BasicConnection.mjs +0 -4
  255. package/dist/basic/BasicPublisher.cjs +0 -3
  256. package/dist/basic/BasicPublisher.d.cts +0 -4
  257. package/dist/basic/BasicPublisher.d.mts +0 -4
  258. package/dist/basic/BasicPublisher.mjs +0 -3
  259. package/dist/basic/BasicSubscriber.cjs +0 -3
  260. package/dist/basic/BasicSubscriber.d.cts +0 -4
  261. package/dist/basic/BasicSubscriber.d.mts +0 -4
  262. package/dist/basic/BasicSubscriber.mjs +0 -3
  263. package/dist/pgboss/PgBossConnection.cjs +0 -4
  264. package/dist/pgboss/PgBossConnection.d.cts +0 -3
  265. package/dist/pgboss/PgBossConnection.d.mts +0 -3
  266. package/dist/pgboss/PgBossConnection.mjs +0 -4
  267. package/dist/pgboss/PgBossPublisher.cjs +0 -3
  268. package/dist/pgboss/PgBossPublisher.d.cts +0 -4
  269. package/dist/pgboss/PgBossPublisher.d.mts +0 -4
  270. package/dist/pgboss/PgBossPublisher.mjs +0 -3
  271. package/dist/pgboss/PgBossSubscriber.cjs +0 -3
  272. package/dist/pgboss/PgBossSubscriber.d.cts +0 -4
  273. package/dist/pgboss/PgBossSubscriber.d.mts +0 -4
  274. package/dist/pgboss/PgBossSubscriber.mjs +0 -3
  275. package/dist/rabbitmq/RabbitMQConnection.cjs +0 -4
  276. package/dist/rabbitmq/RabbitMQConnection.d.cts +0 -3
  277. package/dist/rabbitmq/RabbitMQConnection.d.mts +0 -3
  278. package/dist/rabbitmq/RabbitMQConnection.mjs +0 -4
  279. package/dist/rabbitmq/RabbitMQPublisher.cjs +0 -3
  280. package/dist/rabbitmq/RabbitMQPublisher.d.cts +0 -4
  281. package/dist/rabbitmq/RabbitMQPublisher.d.mts +0 -4
  282. package/dist/rabbitmq/RabbitMQPublisher.mjs +0 -3
  283. package/dist/rabbitmq/RabbitMQSubscriber.cjs +0 -3
  284. package/dist/rabbitmq/RabbitMQSubscriber.d.cts +0 -4
  285. package/dist/rabbitmq/RabbitMQSubscriber.d.mts +0 -4
  286. package/dist/rabbitmq/RabbitMQSubscriber.mjs +0 -3
  287. package/dist/sns/SNSConnection.cjs +0 -4
  288. package/dist/sns/SNSConnection.d.cts +0 -3
  289. package/dist/sns/SNSConnection.d.mts +0 -3
  290. package/dist/sns/SNSConnection.mjs +0 -4
  291. package/dist/sns/SNSPublisher.cjs +0 -3
  292. package/dist/sns/SNSPublisher.d.cts +0 -4
  293. package/dist/sns/SNSPublisher.d.mts +0 -4
  294. package/dist/sns/SNSPublisher.mjs +0 -3
  295. package/dist/sns/SNSSubscriber.cjs +0 -6
  296. package/dist/sns/SNSSubscriber.d.cts +0 -4
  297. package/dist/sns/SNSSubscriber.d.mts +0 -4
  298. package/dist/sns/SNSSubscriber.mjs +0 -6
  299. package/dist/sqs/SQSConnection.cjs +0 -4
  300. package/dist/sqs/SQSConnection.d.cts +0 -3
  301. package/dist/sqs/SQSConnection.d.mts +0 -3
  302. package/dist/sqs/SQSConnection.mjs +0 -4
  303. package/dist/sqs/SQSPublisher.cjs +0 -3
  304. package/dist/sqs/SQSPublisher.d.cts +0 -4
  305. package/dist/sqs/SQSPublisher.d.mts +0 -4
  306. package/dist/sqs/SQSPublisher.mjs +0 -3
  307. package/dist/sqs/SQSSubscriber.cjs +0 -3
  308. package/dist/sqs/SQSSubscriber.d.cts +0 -4
  309. package/dist/sqs/SQSSubscriber.d.mts +0 -4
  310. package/dist/sqs/SQSSubscriber.mjs +0 -3
  311. package/dist/types.cjs +0 -3
  312. package/dist/types.d.cts +0 -2
  313. package/dist/types.d.mts +0 -2
  314. package/dist/types.mjs +0 -3
  315. package/src/EventConnection.ts +0 -43
  316. package/src/Publisher.ts +0 -98
  317. package/src/Subscriber.ts +0 -113
  318. package/src/__tests__/EventConnection.spec.ts +0 -42
  319. package/src/__tests__/Publisher.spec.ts +0 -96
  320. package/src/__tests__/Subscriber.spec.ts +0 -109
  321. package/src/basic/BasicConnection.ts +0 -47
  322. package/src/basic/BasicPublisher.ts +0 -15
  323. package/src/basic/BasicSubscriber.ts +0 -21
  324. package/src/basic/__tests__/BasicSubscriber.spec.ts +0 -166
  325. package/src/basic/index.ts +0 -3
  326. package/src/index.ts +0 -25
  327. package/src/pgboss/PgBossConnection.ts +0 -91
  328. package/src/pgboss/PgBossPublisher.ts +0 -49
  329. package/src/pgboss/PgBossSubscriber.ts +0 -81
  330. package/src/pgboss/__tests__/pgboss.spec.ts +0 -196
  331. package/src/pgboss/__tests__/setup.ts +0 -21
  332. package/src/pgboss/index.ts +0 -5
  333. package/src/rabbitmq/RabbitMQConnection.ts +0 -148
  334. package/src/rabbitmq/RabbitMQPublisher.ts +0 -67
  335. package/src/rabbitmq/RabbitMQSubscriber.ts +0 -111
  336. package/src/rabbitmq/__tests__/RabbitMQPublisher.spec.ts +0 -378
  337. package/src/rabbitmq/__tests__/RabbitMQSubscriber.spec.ts +0 -292
  338. package/src/rabbitmq/index.ts +0 -6
  339. package/src/sns/SNSConnection.ts +0 -98
  340. package/src/sns/SNSPublisher.ts +0 -62
  341. package/src/sns/SNSSubscriber.ts +0 -218
  342. package/src/sns/__tests__/SNS-SQS-Integration.spec.ts +0 -389
  343. package/src/sns/__tests__/SNSPublisher.spec.ts +0 -449
  344. package/src/sns/__tests__/SNSSubscriber.spec.ts +0 -527
  345. package/src/sns/index.ts +0 -6
  346. package/src/sqs/SQSConnection.ts +0 -97
  347. package/src/sqs/SQSPublisher.ts +0 -105
  348. package/src/sqs/SQSSubscriber.ts +0 -181
  349. package/src/sqs/__tests__/SQSPublisher.spec.ts +0 -189
  350. package/src/sqs/index.ts +0 -6
  351. package/src/types.ts +0 -76
  352. package/tsconfig.json +0 -9
  353. package/tsdown.config.ts +0 -10
@@ -0,0 +1,60 @@
1
+ import { __export } from "./chunk-B9dir_RE.mjs";
2
+
3
+ //#region src/sqs/sqsUrl.d.ts
4
+ declare namespace sqsUrl_d_exports {
5
+ export { MalformedQueueUrl, MissingQueueUrl, SqsAddress, UnexpectedQueueScheme, build, parse };
6
+ }
7
+ /**
8
+ * The `sqs://` connection-string codec — how a queue is addressed as one string.
9
+ *
10
+ * It lives beside the client rather than in a neutral package because
11
+ * `queueUrl`, `region`, and `endpoint` are SQS's vocabulary. The neutral layer
12
+ * knows only that a queue provides *one* connection string; what that string
13
+ * says is between the component that composes it and the publisher that parses
14
+ * it. The `pgboss://` form sits beside its own client and shares nothing here.
15
+ *
16
+ * Both directions live in this module so they cannot drift: `parse(build(x))`
17
+ * is `x`, and the deploy target composing a string it cannot parse back is the
18
+ * failure this shape rules out.
19
+ */
20
+ /** What an SQS connection string addresses. */
21
+ interface SqsAddress {
22
+ queueUrl: string;
23
+ /** Read off the queue, never inherited: a queue may live in another region. */
24
+ region?: string;
25
+ /** Set for SQS-compatible backends such as LocalStack. */
26
+ endpoint?: string;
27
+ /** Largest batch the publisher may send in one call. */
28
+ maxBatchSize?: number;
29
+ }
30
+ /**
31
+ * Compose an address into a connection string.
32
+ *
33
+ * Credentials never appear. The AWS SDK resolves them from its own chain — an
34
+ * execution role deployed, environment locally — so the string stays safe to log
35
+ * and identical across environments that differ only in who is calling.
36
+ */
37
+ declare function build(address: SqsAddress): string;
38
+ /** Parse a connection string back into an address. */
39
+ declare function parse(connectionString: string): SqsAddress;
40
+ /** The string is not a URL at all. */
41
+ declare class MalformedQueueUrl extends Error {
42
+ readonly url: string;
43
+ constructor(url: string);
44
+ }
45
+ /** The string is a URL, but not an `sqs://` one. */
46
+ declare class UnexpectedQueueScheme extends Error {
47
+ readonly url: string;
48
+ readonly expected: string;
49
+ readonly actual: string;
50
+ constructor(url: string, expected: string, actual: string);
51
+ }
52
+ /** An `sqs://` string with no queue names nothing. */
53
+ declare class MissingQueueUrl extends Error {
54
+ readonly url: string;
55
+ constructor(url: string);
56
+ }
57
+ //# sourceMappingURL=sqsUrl.d.ts.map
58
+ //#endregion
59
+ export { MalformedQueueUrl, MissingQueueUrl, SqsAddress, UnexpectedQueueScheme, build, parse, sqsUrl_d_exports };
60
+ //# sourceMappingURL=sqsUrl-BV6zS-mi.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqsUrl-BV6zS-mi.d.mts","names":[],"sources":["../src/sqs/sqsUrl.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;AAeA;AAmBA;AAgBgB,UAnCC,UAAA,CAmCgC;EA4BpC,QAAA,EAAA,MAAA;EAQA;EAcA,MAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;;iBAlEG,KAAA,UAAe;;iBAgBf,KAAA,4BAAiC;;cA4BpC,iBAAA,SAA0B,KAAK;;;;;cAQ/B,qBAAA,SAA8B,KAAK;;;;;;;cAcnC,eAAA,SAAwB,KAAK"}
@@ -0,0 +1,80 @@
1
+ import { __export } from "./chunk-B9dir_RE.mjs";
2
+
3
+ //#region src/sqs/sqsUrl.ts
4
+ var sqsUrl_exports = {};
5
+ __export(sqsUrl_exports, {
6
+ MalformedQueueUrl: () => MalformedQueueUrl,
7
+ MissingQueueUrl: () => MissingQueueUrl,
8
+ UnexpectedQueueScheme: () => UnexpectedQueueScheme,
9
+ build: () => build,
10
+ parse: () => parse
11
+ });
12
+ const SCHEME = "sqs:";
13
+ /**
14
+ * Compose an address into a connection string.
15
+ *
16
+ * Credentials never appear. The AWS SDK resolves them from its own chain — an
17
+ * execution role deployed, environment locally — so the string stays safe to log
18
+ * and identical across environments that differ only in who is calling.
19
+ */
20
+ function build(address) {
21
+ const { queueUrl, region, endpoint, maxBatchSize } = address;
22
+ if (!queueUrl) throw new MissingQueueUrl("");
23
+ const url = new URL(`${SCHEME}//`);
24
+ url.searchParams.set("queueUrl", queueUrl);
25
+ if (region) url.searchParams.set("region", region);
26
+ if (endpoint) url.searchParams.set("endpoint", endpoint);
27
+ if (maxBatchSize !== void 0) url.searchParams.set("maxBatchSize", String(maxBatchSize));
28
+ return url.toString();
29
+ }
30
+ /** Parse a connection string back into an address. */
31
+ function parse(connectionString) {
32
+ let parsed;
33
+ try {
34
+ parsed = new URL(connectionString);
35
+ } catch {
36
+ throw new MalformedQueueUrl(connectionString);
37
+ }
38
+ if (parsed.protocol !== SCHEME) throw new UnexpectedQueueScheme(connectionString, SCHEME, parsed.protocol);
39
+ const queueUrl = parsed.searchParams.get("queueUrl");
40
+ if (!queueUrl) throw new MissingQueueUrl(connectionString);
41
+ const region = parsed.searchParams.get("region") ?? void 0;
42
+ const endpoint = parsed.searchParams.get("endpoint") ?? void 0;
43
+ const batch = parsed.searchParams.get("maxBatchSize");
44
+ return {
45
+ queueUrl,
46
+ ...region ? { region } : {},
47
+ ...endpoint ? { endpoint } : {},
48
+ ...batch ? { maxBatchSize: Number(batch) } : {}
49
+ };
50
+ }
51
+ /** The string is not a URL at all. */
52
+ var MalformedQueueUrl = class extends Error {
53
+ constructor(url) {
54
+ super(`'${url}' is not a valid connection string.`);
55
+ this.url = url;
56
+ this.name = "MalformedQueueUrl";
57
+ }
58
+ };
59
+ /** The string is a URL, but not an `sqs://` one. */
60
+ var UnexpectedQueueScheme = class extends Error {
61
+ constructor(url, expected, actual) {
62
+ super(`Expected a '${expected}//' connection string and got '${actual}//' in '${url}'.`);
63
+ this.url = url;
64
+ this.expected = expected;
65
+ this.actual = actual;
66
+ this.name = "UnexpectedQueueScheme";
67
+ }
68
+ };
69
+ /** An `sqs://` string with no queue names nothing. */
70
+ var MissingQueueUrl = class extends Error {
71
+ constructor(url) {
72
+ super(url ? `'${url}' names no queue: an sqs:// connection string needs ?queueUrl=.` : "An sqs:// connection string needs a queueUrl.");
73
+ this.url = url;
74
+ this.name = "MissingQueueUrl";
75
+ }
76
+ };
77
+
78
+ //#endregion
79
+ export { MalformedQueueUrl, MissingQueueUrl, UnexpectedQueueScheme, build, parse, sqsUrl_exports };
80
+ //# sourceMappingURL=sqsUrl-CbAsBFHI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqsUrl-CbAsBFHI.mjs","names":["address: SqsAddress","connectionString: string","parsed: URL","url: string","expected: string","actual: string"],"sources":["../src/sqs/sqsUrl.ts"],"sourcesContent":["/**\n * The `sqs://` connection-string codec — how a queue is addressed as one string.\n *\n * It lives beside the client rather than in a neutral package because\n * `queueUrl`, `region`, and `endpoint` are SQS's vocabulary. The neutral layer\n * knows only that a queue provides *one* connection string; what that string\n * says is between the component that composes it and the publisher that parses\n * it. The `pgboss://` form sits beside its own client and shares nothing here.\n *\n * Both directions live in this module so they cannot drift: `parse(build(x))`\n * is `x`, and the deploy target composing a string it cannot parse back is the\n * failure this shape rules out.\n */\n\n/** What an SQS connection string addresses. */\nexport interface SqsAddress {\n\tqueueUrl: string;\n\t/** Read off the queue, never inherited: a queue may live in another region. */\n\tregion?: string;\n\t/** Set for SQS-compatible backends such as LocalStack. */\n\tendpoint?: string;\n\t/** Largest batch the publisher may send in one call. */\n\tmaxBatchSize?: number;\n}\n\nconst SCHEME = 'sqs:';\n\n/**\n * Compose an address into a connection string.\n *\n * Credentials never appear. The AWS SDK resolves them from its own chain — an\n * execution role deployed, environment locally — so the string stays safe to log\n * and identical across environments that differ only in who is calling.\n */\nexport function build(address: SqsAddress): string {\n\tconst { queueUrl, region, endpoint, maxBatchSize } = address;\n\tif (!queueUrl) throw new MissingQueueUrl('');\n\n\tconst url = new URL(`${SCHEME}//`);\n\turl.searchParams.set('queueUrl', queueUrl);\n\tif (region) url.searchParams.set('region', region);\n\tif (endpoint) url.searchParams.set('endpoint', endpoint);\n\tif (maxBatchSize !== undefined) {\n\t\turl.searchParams.set('maxBatchSize', String(maxBatchSize));\n\t}\n\n\treturn url.toString();\n}\n\n/** Parse a connection string back into an address. */\nexport function parse(connectionString: string): SqsAddress {\n\tlet parsed: URL;\n\ttry {\n\t\tparsed = new URL(connectionString);\n\t} catch {\n\t\tthrow new MalformedQueueUrl(connectionString);\n\t}\n\n\tif (parsed.protocol !== SCHEME) {\n\t\tthrow new UnexpectedQueueScheme(connectionString, SCHEME, parsed.protocol);\n\t}\n\n\tconst queueUrl = parsed.searchParams.get('queueUrl');\n\tif (!queueUrl) throw new MissingQueueUrl(connectionString);\n\n\tconst region = parsed.searchParams.get('region') ?? undefined;\n\tconst endpoint = parsed.searchParams.get('endpoint') ?? undefined;\n\tconst batch = parsed.searchParams.get('maxBatchSize');\n\n\treturn {\n\t\tqueueUrl,\n\t\t...(region ? { region } : {}),\n\t\t...(endpoint ? { endpoint } : {}),\n\t\t...(batch ? { maxBatchSize: Number(batch) } : {}),\n\t};\n}\n\n/** The string is not a URL at all. */\nexport class MalformedQueueUrl extends Error {\n\tconstructor(readonly url: string) {\n\t\tsuper(`'${url}' is not a valid connection string.`);\n\t\tthis.name = 'MalformedQueueUrl';\n\t}\n}\n\n/** The string is a URL, but not an `sqs://` one. */\nexport class UnexpectedQueueScheme extends Error {\n\tconstructor(\n\t\treadonly url: string,\n\t\treadonly expected: string,\n\t\treadonly actual: string,\n\t) {\n\t\tsuper(\n\t\t\t`Expected a '${expected}//' connection string and got '${actual}//' in '${url}'.`,\n\t\t);\n\t\tthis.name = 'UnexpectedQueueScheme';\n\t}\n}\n\n/** An `sqs://` string with no queue names nothing. */\nexport class MissingQueueUrl extends Error {\n\tconstructor(readonly url: string) {\n\t\tsuper(\n\t\t\turl\n\t\t\t\t? `'${url}' names no queue: an sqs:// connection string needs ?queueUrl=.`\n\t\t\t\t: 'An sqs:// connection string needs a queueUrl.',\n\t\t);\n\t\tthis.name = 'MissingQueueUrl';\n\t}\n}\n"],"mappings":";;;;;;;;;;;AAyBA,MAAM,SAAS;;;;;;;;AASf,SAAgB,MAAMA,SAA6B;CAClD,MAAM,EAAE,UAAU,QAAQ,UAAU,cAAc,GAAG;AACrD,MAAK,SAAU,OAAM,IAAI,gBAAgB;CAEzC,MAAM,MAAM,IAAI,KAAK,EAAE,OAAO;AAC9B,KAAI,aAAa,IAAI,YAAY,SAAS;AAC1C,KAAI,OAAQ,KAAI,aAAa,IAAI,UAAU,OAAO;AAClD,KAAI,SAAU,KAAI,aAAa,IAAI,YAAY,SAAS;AACxD,KAAI,wBACH,KAAI,aAAa,IAAI,gBAAgB,OAAO,aAAa,CAAC;AAG3D,QAAO,IAAI,UAAU;AACrB;;AAGD,SAAgB,MAAMC,kBAAsC;CAC3D,IAAIC;AACJ,KAAI;AACH,WAAS,IAAI,IAAI;CACjB,QAAO;AACP,QAAM,IAAI,kBAAkB;CAC5B;AAED,KAAI,OAAO,aAAa,OACvB,OAAM,IAAI,sBAAsB,kBAAkB,QAAQ,OAAO;CAGlE,MAAM,WAAW,OAAO,aAAa,IAAI,WAAW;AACpD,MAAK,SAAU,OAAM,IAAI,gBAAgB;CAEzC,MAAM,SAAS,OAAO,aAAa,IAAI,SAAS;CAChD,MAAM,WAAW,OAAO,aAAa,IAAI,WAAW;CACpD,MAAM,QAAQ,OAAO,aAAa,IAAI,eAAe;AAErD,QAAO;EACN;EACA,GAAI,SAAS,EAAE,OAAQ,IAAG,CAAE;EAC5B,GAAI,WAAW,EAAE,SAAU,IAAG,CAAE;EAChC,GAAI,QAAQ,EAAE,cAAc,OAAO,MAAM,CAAE,IAAG,CAAE;CAChD;AACD;;AAGD,IAAa,oBAAb,cAAuC,MAAM;CAC5C,YAAqBC,KAAa;AACjC,SAAO,GAAG,IAAI,qCAAqC;EAD/B;AAEpB,OAAK,OAAO;CACZ;AACD;;AAGD,IAAa,wBAAb,cAA2C,MAAM;CAChD,YACUA,KACAC,UACAC,QACR;AACD,SACE,cAAc,SAAS,iCAAiC,OAAO,UAAU,IAAI,IAC9E;EANQ;EACA;EACA;AAKT,OAAK,OAAO;CACZ;AACD;;AAGD,IAAa,kBAAb,cAAqC,MAAM;CAC1C,YAAqBF,KAAa;AACjC,QACC,OACI,GAAG,IAAI,mEACR,gDACH;EALmB;AAMpB,OAAK,OAAO;CACZ;AACD"}
@@ -0,0 +1,115 @@
1
+ const require_chunk = require('./chunk-CsX-DzYB.cjs');
2
+
3
+ //#region src/sqs/sqsUrl.ts
4
+ var sqsUrl_exports = {};
5
+ require_chunk.__export(sqsUrl_exports, {
6
+ MalformedQueueUrl: () => MalformedQueueUrl,
7
+ MissingQueueUrl: () => MissingQueueUrl,
8
+ UnexpectedQueueScheme: () => UnexpectedQueueScheme,
9
+ build: () => build,
10
+ parse: () => parse
11
+ });
12
+ const SCHEME = "sqs:";
13
+ /**
14
+ * Compose an address into a connection string.
15
+ *
16
+ * Credentials never appear. The AWS SDK resolves them from its own chain — an
17
+ * execution role deployed, environment locally — so the string stays safe to log
18
+ * and identical across environments that differ only in who is calling.
19
+ */
20
+ function build(address) {
21
+ const { queueUrl, region, endpoint, maxBatchSize } = address;
22
+ if (!queueUrl) throw new MissingQueueUrl("");
23
+ const url = new URL(`${SCHEME}//`);
24
+ url.searchParams.set("queueUrl", queueUrl);
25
+ if (region) url.searchParams.set("region", region);
26
+ if (endpoint) url.searchParams.set("endpoint", endpoint);
27
+ if (maxBatchSize !== void 0) url.searchParams.set("maxBatchSize", String(maxBatchSize));
28
+ return url.toString();
29
+ }
30
+ /** Parse a connection string back into an address. */
31
+ function parse(connectionString) {
32
+ let parsed;
33
+ try {
34
+ parsed = new URL(connectionString);
35
+ } catch {
36
+ throw new MalformedQueueUrl(connectionString);
37
+ }
38
+ if (parsed.protocol !== SCHEME) throw new UnexpectedQueueScheme(connectionString, SCHEME, parsed.protocol);
39
+ const queueUrl = parsed.searchParams.get("queueUrl");
40
+ if (!queueUrl) throw new MissingQueueUrl(connectionString);
41
+ const region = parsed.searchParams.get("region") ?? void 0;
42
+ const endpoint = parsed.searchParams.get("endpoint") ?? void 0;
43
+ const batch = parsed.searchParams.get("maxBatchSize");
44
+ return {
45
+ queueUrl,
46
+ ...region ? { region } : {},
47
+ ...endpoint ? { endpoint } : {},
48
+ ...batch ? { maxBatchSize: Number(batch) } : {}
49
+ };
50
+ }
51
+ /** The string is not a URL at all. */
52
+ var MalformedQueueUrl = class extends Error {
53
+ constructor(url) {
54
+ super(`'${url}' is not a valid connection string.`);
55
+ this.url = url;
56
+ this.name = "MalformedQueueUrl";
57
+ }
58
+ };
59
+ /** The string is a URL, but not an `sqs://` one. */
60
+ var UnexpectedQueueScheme = class extends Error {
61
+ constructor(url, expected, actual) {
62
+ super(`Expected a '${expected}//' connection string and got '${actual}//' in '${url}'.`);
63
+ this.url = url;
64
+ this.expected = expected;
65
+ this.actual = actual;
66
+ this.name = "UnexpectedQueueScheme";
67
+ }
68
+ };
69
+ /** An `sqs://` string with no queue names nothing. */
70
+ var MissingQueueUrl = class extends Error {
71
+ constructor(url) {
72
+ super(url ? `'${url}' names no queue: an sqs:// connection string needs ?queueUrl=.` : "An sqs:// connection string needs a queueUrl.");
73
+ this.url = url;
74
+ this.name = "MissingQueueUrl";
75
+ }
76
+ };
77
+
78
+ //#endregion
79
+ Object.defineProperty(exports, 'MalformedQueueUrl', {
80
+ enumerable: true,
81
+ get: function () {
82
+ return MalformedQueueUrl;
83
+ }
84
+ });
85
+ Object.defineProperty(exports, 'MissingQueueUrl', {
86
+ enumerable: true,
87
+ get: function () {
88
+ return MissingQueueUrl;
89
+ }
90
+ });
91
+ Object.defineProperty(exports, 'UnexpectedQueueScheme', {
92
+ enumerable: true,
93
+ get: function () {
94
+ return UnexpectedQueueScheme;
95
+ }
96
+ });
97
+ Object.defineProperty(exports, 'build', {
98
+ enumerable: true,
99
+ get: function () {
100
+ return build;
101
+ }
102
+ });
103
+ Object.defineProperty(exports, 'parse', {
104
+ enumerable: true,
105
+ get: function () {
106
+ return parse;
107
+ }
108
+ });
109
+ Object.defineProperty(exports, 'sqsUrl_exports', {
110
+ enumerable: true,
111
+ get: function () {
112
+ return sqsUrl_exports;
113
+ }
114
+ });
115
+ //# sourceMappingURL=sqsUrl-CdisN3GU.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqsUrl-CdisN3GU.cjs","names":["address: SqsAddress","connectionString: string","parsed: URL","url: string","expected: string","actual: string"],"sources":["../src/sqs/sqsUrl.ts"],"sourcesContent":["/**\n * The `sqs://` connection-string codec — how a queue is addressed as one string.\n *\n * It lives beside the client rather than in a neutral package because\n * `queueUrl`, `region`, and `endpoint` are SQS's vocabulary. The neutral layer\n * knows only that a queue provides *one* connection string; what that string\n * says is between the component that composes it and the publisher that parses\n * it. The `pgboss://` form sits beside its own client and shares nothing here.\n *\n * Both directions live in this module so they cannot drift: `parse(build(x))`\n * is `x`, and the deploy target composing a string it cannot parse back is the\n * failure this shape rules out.\n */\n\n/** What an SQS connection string addresses. */\nexport interface SqsAddress {\n\tqueueUrl: string;\n\t/** Read off the queue, never inherited: a queue may live in another region. */\n\tregion?: string;\n\t/** Set for SQS-compatible backends such as LocalStack. */\n\tendpoint?: string;\n\t/** Largest batch the publisher may send in one call. */\n\tmaxBatchSize?: number;\n}\n\nconst SCHEME = 'sqs:';\n\n/**\n * Compose an address into a connection string.\n *\n * Credentials never appear. The AWS SDK resolves them from its own chain — an\n * execution role deployed, environment locally — so the string stays safe to log\n * and identical across environments that differ only in who is calling.\n */\nexport function build(address: SqsAddress): string {\n\tconst { queueUrl, region, endpoint, maxBatchSize } = address;\n\tif (!queueUrl) throw new MissingQueueUrl('');\n\n\tconst url = new URL(`${SCHEME}//`);\n\turl.searchParams.set('queueUrl', queueUrl);\n\tif (region) url.searchParams.set('region', region);\n\tif (endpoint) url.searchParams.set('endpoint', endpoint);\n\tif (maxBatchSize !== undefined) {\n\t\turl.searchParams.set('maxBatchSize', String(maxBatchSize));\n\t}\n\n\treturn url.toString();\n}\n\n/** Parse a connection string back into an address. */\nexport function parse(connectionString: string): SqsAddress {\n\tlet parsed: URL;\n\ttry {\n\t\tparsed = new URL(connectionString);\n\t} catch {\n\t\tthrow new MalformedQueueUrl(connectionString);\n\t}\n\n\tif (parsed.protocol !== SCHEME) {\n\t\tthrow new UnexpectedQueueScheme(connectionString, SCHEME, parsed.protocol);\n\t}\n\n\tconst queueUrl = parsed.searchParams.get('queueUrl');\n\tif (!queueUrl) throw new MissingQueueUrl(connectionString);\n\n\tconst region = parsed.searchParams.get('region') ?? undefined;\n\tconst endpoint = parsed.searchParams.get('endpoint') ?? undefined;\n\tconst batch = parsed.searchParams.get('maxBatchSize');\n\n\treturn {\n\t\tqueueUrl,\n\t\t...(region ? { region } : {}),\n\t\t...(endpoint ? { endpoint } : {}),\n\t\t...(batch ? { maxBatchSize: Number(batch) } : {}),\n\t};\n}\n\n/** The string is not a URL at all. */\nexport class MalformedQueueUrl extends Error {\n\tconstructor(readonly url: string) {\n\t\tsuper(`'${url}' is not a valid connection string.`);\n\t\tthis.name = 'MalformedQueueUrl';\n\t}\n}\n\n/** The string is a URL, but not an `sqs://` one. */\nexport class UnexpectedQueueScheme extends Error {\n\tconstructor(\n\t\treadonly url: string,\n\t\treadonly expected: string,\n\t\treadonly actual: string,\n\t) {\n\t\tsuper(\n\t\t\t`Expected a '${expected}//' connection string and got '${actual}//' in '${url}'.`,\n\t\t);\n\t\tthis.name = 'UnexpectedQueueScheme';\n\t}\n}\n\n/** An `sqs://` string with no queue names nothing. */\nexport class MissingQueueUrl extends Error {\n\tconstructor(readonly url: string) {\n\t\tsuper(\n\t\t\turl\n\t\t\t\t? `'${url}' names no queue: an sqs:// connection string needs ?queueUrl=.`\n\t\t\t\t: 'An sqs:// connection string needs a queueUrl.',\n\t\t);\n\t\tthis.name = 'MissingQueueUrl';\n\t}\n}\n"],"mappings":";;;;;;;;;;;AAyBA,MAAM,SAAS;;;;;;;;AASf,SAAgB,MAAMA,SAA6B;CAClD,MAAM,EAAE,UAAU,QAAQ,UAAU,cAAc,GAAG;AACrD,MAAK,SAAU,OAAM,IAAI,gBAAgB;CAEzC,MAAM,MAAM,IAAI,KAAK,EAAE,OAAO;AAC9B,KAAI,aAAa,IAAI,YAAY,SAAS;AAC1C,KAAI,OAAQ,KAAI,aAAa,IAAI,UAAU,OAAO;AAClD,KAAI,SAAU,KAAI,aAAa,IAAI,YAAY,SAAS;AACxD,KAAI,wBACH,KAAI,aAAa,IAAI,gBAAgB,OAAO,aAAa,CAAC;AAG3D,QAAO,IAAI,UAAU;AACrB;;AAGD,SAAgB,MAAMC,kBAAsC;CAC3D,IAAIC;AACJ,KAAI;AACH,WAAS,IAAI,IAAI;CACjB,QAAO;AACP,QAAM,IAAI,kBAAkB;CAC5B;AAED,KAAI,OAAO,aAAa,OACvB,OAAM,IAAI,sBAAsB,kBAAkB,QAAQ,OAAO;CAGlE,MAAM,WAAW,OAAO,aAAa,IAAI,WAAW;AACpD,MAAK,SAAU,OAAM,IAAI,gBAAgB;CAEzC,MAAM,SAAS,OAAO,aAAa,IAAI,SAAS;CAChD,MAAM,WAAW,OAAO,aAAa,IAAI,WAAW;CACpD,MAAM,QAAQ,OAAO,aAAa,IAAI,eAAe;AAErD,QAAO;EACN;EACA,GAAI,SAAS,EAAE,OAAQ,IAAG,CAAE;EAC5B,GAAI,WAAW,EAAE,SAAU,IAAG,CAAE;EAChC,GAAI,QAAQ,EAAE,cAAc,OAAO,MAAM,CAAE,IAAG,CAAE;CAChD;AACD;;AAGD,IAAa,oBAAb,cAAuC,MAAM;CAC5C,YAAqBC,KAAa;AACjC,SAAO,GAAG,IAAI,qCAAqC;EAD/B;AAEpB,OAAK,OAAO;CACZ;AACD;;AAGD,IAAa,wBAAb,cAA2C,MAAM;CAChD,YACUA,KACAC,UACAC,QACR;AACD,SACE,cAAc,SAAS,iCAAiC,OAAO,UAAU,IAAI,IAC9E;EANQ;EACA;EACA;AAKT,OAAK,OAAO;CACZ;AACD;;AAGD,IAAa,kBAAb,cAAqC,MAAM;CAC1C,YAAqBF,KAAa;AACjC,QACC,OACI,GAAG,IAAI,mEACR,gDACH;EALmB;AAMpB,OAAK,OAAO;CACZ;AACD"}
@@ -0,0 +1,60 @@
1
+ import { __export } from "./chunk-CWFgIw0j.cjs";
2
+
3
+ //#region src/sqs/sqsUrl.d.ts
4
+ declare namespace sqsUrl_d_exports {
5
+ export { MalformedQueueUrl, MissingQueueUrl, SqsAddress, UnexpectedQueueScheme, build, parse };
6
+ }
7
+ /**
8
+ * The `sqs://` connection-string codec — how a queue is addressed as one string.
9
+ *
10
+ * It lives beside the client rather than in a neutral package because
11
+ * `queueUrl`, `region`, and `endpoint` are SQS's vocabulary. The neutral layer
12
+ * knows only that a queue provides *one* connection string; what that string
13
+ * says is between the component that composes it and the publisher that parses
14
+ * it. The `pgboss://` form sits beside its own client and shares nothing here.
15
+ *
16
+ * Both directions live in this module so they cannot drift: `parse(build(x))`
17
+ * is `x`, and the deploy target composing a string it cannot parse back is the
18
+ * failure this shape rules out.
19
+ */
20
+ /** What an SQS connection string addresses. */
21
+ interface SqsAddress {
22
+ queueUrl: string;
23
+ /** Read off the queue, never inherited: a queue may live in another region. */
24
+ region?: string;
25
+ /** Set for SQS-compatible backends such as LocalStack. */
26
+ endpoint?: string;
27
+ /** Largest batch the publisher may send in one call. */
28
+ maxBatchSize?: number;
29
+ }
30
+ /**
31
+ * Compose an address into a connection string.
32
+ *
33
+ * Credentials never appear. The AWS SDK resolves them from its own chain — an
34
+ * execution role deployed, environment locally — so the string stays safe to log
35
+ * and identical across environments that differ only in who is calling.
36
+ */
37
+ declare function build(address: SqsAddress): string;
38
+ /** Parse a connection string back into an address. */
39
+ declare function parse(connectionString: string): SqsAddress;
40
+ /** The string is not a URL at all. */
41
+ declare class MalformedQueueUrl extends Error {
42
+ readonly url: string;
43
+ constructor(url: string);
44
+ }
45
+ /** The string is a URL, but not an `sqs://` one. */
46
+ declare class UnexpectedQueueScheme extends Error {
47
+ readonly url: string;
48
+ readonly expected: string;
49
+ readonly actual: string;
50
+ constructor(url: string, expected: string, actual: string);
51
+ }
52
+ /** An `sqs://` string with no queue names nothing. */
53
+ declare class MissingQueueUrl extends Error {
54
+ readonly url: string;
55
+ constructor(url: string);
56
+ }
57
+ //# sourceMappingURL=sqsUrl.d.ts.map
58
+ //#endregion
59
+ export { MalformedQueueUrl, MissingQueueUrl, SqsAddress, UnexpectedQueueScheme, build, parse, sqsUrl_d_exports };
60
+ //# sourceMappingURL=sqsUrl-DZDPHxIk.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqsUrl-DZDPHxIk.d.cts","names":[],"sources":["../src/sqs/sqsUrl.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;AAeA;AAmBA;AAgBgB,UAnCC,UAAA,CAmCgC;EA4BpC,QAAA,EAAA,MAAA;EAQA;EAcA,MAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;;iBAlEG,KAAA,UAAe;;iBAgBf,KAAA,4BAAiC;;cA4BpC,iBAAA,SAA0B,KAAK;;;;;cAQ/B,qBAAA,SAA8B,KAAK;;;;;;;cAcnC,eAAA,SAAwB,KAAK"}
@@ -64,4 +64,4 @@ type MappedEvent<T extends EventPublisher<any> | undefined, OutSchema extends St
64
64
  //# sourceMappingURL=types.d.ts.map
65
65
  //#endregion
66
66
  export { EventConnection, EventPublisher, EventPublisherType, EventSubscriber, ExtractPublisherMessage, MappedEvent, PublishableMessage };
67
- //# sourceMappingURL=types-Dh9Jyinx.d.mts.map
67
+ //# sourceMappingURL=types-BmixGrOD.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-Dh9Jyinx.d.mts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;;;;AASA;;;;AAEkB,KAFN,kBAEM,CAAA,cAAA,MAAA,EAAA,QAAA,CAAA,GAAA;EAMN,IAAA,EAPL,KAOK;EAcK,OAAA,EApBP,QAoBO;CAAe;;;;AAGf,aAjBL,kBAAA;EA2BA,KAAA,GAAA,OAAA;EAAc,WAAA,GAAA,aAAA;EAAA,GAAkB,GAAA,KAAA;EAAkB,GAC1C,GAAA,KAAA;EAAQ,KAAO,GAAA,OAAA;EAAO,QAAA,GAAA,UAAA;EAQ9B,MAAA,GAAA,QAAA;;;;;;AAKL,UA3BU,eAAA,CA2BV;EAAO,SAAA,IAAA,EA1BE,kBA0BF;EAKF,OAAA,EAAA,EA9BA,OA8BA,CAAA,IAAA,CAAA;EAAuB,KAAA,EAAA,EA7BzB,OA6ByB,CAAA,IAAA,CAAA;EAAA,WAClC,EAAA,EAAA,OAAA;;;AAAqC;AAEtC;;;;AAI+B,KA1BnB,cA0BmB,CAAA,iBA1Ba,kBA0Bb,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,GAAA;EAAC,OAAzB,EAAA,CAAA,OAAA,EAzBa,QAyBb,EAAA,EAAA,GAzB4B,OAyB5B,CAAA,IAAA,CAAA;CAAuB;;;;;;AAIG,KArBrB,eAqBqB,CAAA,iBArBY,kBAqBZ,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,GAAA;wBAlBpB,wCACU,aAAa,kBAC7B;;;;;KAKK,6BACX,UAAU,0BAA0B;KAEzB,sBACD,mDACQ;QAEZ,wBAAwB;iBAExB,oBAAoB,eACrB,wBAAwB;eAChB,oBAAoB"}
1
+ {"version":3,"file":"types-BmixGrOD.d.cts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;;;;AASA;;;;AAEkB,KAFN,kBAEM,CAAA,cAAA,MAAA,EAAA,QAAA,CAAA,GAAA;EAMN,IAAA,EAPL,KAOK;EAcK,OAAA,EApBP,QAoBO;CAAe;;;;AAGf,aAjBL,kBAAA;EA2BA,KAAA,GAAA,OAAA;EAAc,WAAA,GAAA,aAAA;EAAA,GAAkB,GAAA,KAAA;EAAkB,GAC1C,GAAA,KAAA;EAAQ,KAAO,GAAA,OAAA;EAAO,QAAA,GAAA,UAAA;EAQ9B,MAAA,GAAA,QAAA;;;;;;AAKL,UA3BU,eAAA,CA2BV;EAAO,SAAA,IAAA,EA1BE,kBA0BF;EAKF,OAAA,EAAA,EA9BA,OA8BA,CAAA,IAAA,CAAA;EAAuB,KAAA,EAAA,EA7BzB,OA6ByB,CAAA,IAAA,CAAA;EAAA,WAClC,EAAA,EAAA,OAAA;;;AAAqC;AAEtC;;;;AAI+B,KA1BnB,cA0BmB,CAAA,iBA1Ba,kBA0Bb,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,GAAA;EAAC,OAAzB,EAAA,CAAA,OAAA,EAzBa,QAyBb,EAAA,EAAA,GAzB4B,OAyB5B,CAAA,IAAA,CAAA;CAAuB;;;;;;AAIG,KArBrB,eAqBqB,CAAA,iBArBY,kBAqBZ,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,GAAA;wBAlBpB,wCACU,aAAa,kBAC7B;;;;;KAKK,6BACX,UAAU,0BAA0B;KAEzB,sBACD,mDACQ;QAEZ,wBAAwB;iBAExB,oBAAoB,eACrB,wBAAwB;eAChB,oBAAoB"}
@@ -15,4 +15,4 @@ let EventPublisherType = /* @__PURE__ */ function(EventPublisherType$1) {
15
15
 
16
16
  //#endregion
17
17
  export { EventPublisherType };
18
- //# sourceMappingURL=types-BrdcSEnd.mjs.map
18
+ //# sourceMappingURL=types-CYDt-2RQ.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-BrdcSEnd.mjs","names":[],"sources":["../src/types.ts"],"sourcesContent":["import type { InferStandardSchema } from '@geekmidas/schema';\nimport type { StandardSchemaV1 } from '@standard-schema/spec';\n\n/**\n * Represents a publishable event message with a type and payload.\n *\n * @template TType - The event type/name (e.g., 'user.created')\n * @template TPayload - The event payload data\n */\nexport type PublishableMessage<TType extends string, TPayload> = {\n\ttype: TType;\n\tpayload: TPayload;\n};\n\n/**\n * Event publisher/subscriber types\n */\nexport enum EventPublisherType {\n\tBasic = 'basic',\n\tEventBridge = 'eventbridge',\n\tSQS = 'sqs',\n\tSNS = 'sns',\n\tKafka = 'kafka',\n\tRabbitMQ = 'rabbitmq',\n\tPgBoss = 'pgboss',\n}\n\n/**\n * Base interface for event connections\n * Connections manage the underlying transport (RabbitMQ channel, SQS client, etc.)\n */\nexport interface EventConnection {\n\treadonly type: EventPublisherType;\n\tconnect(): Promise<void>;\n\tclose(): Promise<void>;\n\tisConnected(): boolean;\n}\n\n/**\n * Interface for event publishers that handle the actual publishing of events.\n * Implementations can send to EventBridge, SQS, Kafka, or any other event system.\n *\n * @template TMessage - The union type of all publishable messages\n */\nexport type EventPublisher<TMessage extends PublishableMessage<string, any>> = {\n\tpublish: (message: TMessage[]) => Promise<void>;\n};\n\n/**\n * Interface for event subscribers that handle receiving and processing events.\n *\n * @template TMessage - The union type of all publishable messages\n */\nexport type EventSubscriber<TMessage extends PublishableMessage<string, any>> =\n\t{\n\t\tsubscribe: (\n\t\t\tmessages: TMessage['type'][],\n\t\t\tlistener: (payload: TMessage) => Promise<void>,\n\t\t) => Promise<void>;\n\t};\n/**\n * Utility type to extract the message from EventPublisher\n */\nexport type ExtractPublisherMessage<T> =\n\tT extends EventPublisher<infer M> ? M : never;\n\nexport type MappedEvent<\n\tT extends EventPublisher<any> | undefined,\n\tOutSchema extends StandardSchemaV1 | undefined = undefined,\n> = {\n\ttype: ExtractPublisherMessage<T>['type'];\n\tpayload: (\n\t\tctx: InferStandardSchema<OutSchema>,\n\t) => ExtractPublisherMessage<T>['payload'];\n\twhen?: (ctx: InferStandardSchema<OutSchema>) => boolean;\n};\n"],"mappings":";;;;AAiBA,IAAY,oEAAL;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AACA"}
1
+ {"version":3,"file":"types-CYDt-2RQ.mjs","names":[],"sources":["../src/types.ts"],"sourcesContent":["import type { InferStandardSchema } from '@geekmidas/schema';\nimport type { StandardSchemaV1 } from '@standard-schema/spec';\n\n/**\n * Represents a publishable event message with a type and payload.\n *\n * @template TType - The event type/name (e.g., 'user.created')\n * @template TPayload - The event payload data\n */\nexport type PublishableMessage<TType extends string, TPayload> = {\n\ttype: TType;\n\tpayload: TPayload;\n};\n\n/**\n * Event publisher/subscriber types\n */\nexport enum EventPublisherType {\n\tBasic = 'basic',\n\tEventBridge = 'eventbridge',\n\tSQS = 'sqs',\n\tSNS = 'sns',\n\tKafka = 'kafka',\n\tRabbitMQ = 'rabbitmq',\n\tPgBoss = 'pgboss',\n}\n\n/**\n * Base interface for event connections\n * Connections manage the underlying transport (RabbitMQ channel, SQS client, etc.)\n */\nexport interface EventConnection {\n\treadonly type: EventPublisherType;\n\tconnect(): Promise<void>;\n\tclose(): Promise<void>;\n\tisConnected(): boolean;\n}\n\n/**\n * Interface for event publishers that handle the actual publishing of events.\n * Implementations can send to EventBridge, SQS, Kafka, or any other event system.\n *\n * @template TMessage - The union type of all publishable messages\n */\nexport type EventPublisher<TMessage extends PublishableMessage<string, any>> = {\n\tpublish: (message: TMessage[]) => Promise<void>;\n};\n\n/**\n * Interface for event subscribers that handle receiving and processing events.\n *\n * @template TMessage - The union type of all publishable messages\n */\nexport type EventSubscriber<TMessage extends PublishableMessage<string, any>> =\n\t{\n\t\tsubscribe: (\n\t\t\tmessages: TMessage['type'][],\n\t\t\tlistener: (payload: TMessage) => Promise<void>,\n\t\t) => Promise<void>;\n\t};\n/**\n * Utility type to extract the message from EventPublisher\n */\nexport type ExtractPublisherMessage<T> =\n\tT extends EventPublisher<infer M> ? M : never;\n\nexport type MappedEvent<\n\tT extends EventPublisher<any> | undefined,\n\tOutSchema extends StandardSchemaV1 | undefined = undefined,\n> = {\n\ttype: ExtractPublisherMessage<T>['type'];\n\tpayload: (\n\t\tctx: InferStandardSchema<OutSchema>,\n\t) => ExtractPublisherMessage<T>['payload'];\n\twhen?: (ctx: InferStandardSchema<OutSchema>) => boolean;\n};\n"],"mappings":";;;;AAiBA,IAAY,oEAAL;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AACA"}
@@ -64,4 +64,4 @@ type MappedEvent<T extends EventPublisher<any> | undefined, OutSchema extends St
64
64
  //# sourceMappingURL=types.d.ts.map
65
65
  //#endregion
66
66
  export { EventConnection, EventPublisher, EventPublisherType, EventSubscriber, ExtractPublisherMessage, MappedEvent, PublishableMessage };
67
- //# sourceMappingURL=types-Dj23od3e.d.cts.map
67
+ //# sourceMappingURL=types-DycjsYms.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-Dj23od3e.d.cts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;;;;AASA;;;;AAEkB,KAFN,kBAEM,CAAA,cAAA,MAAA,EAAA,QAAA,CAAA,GAAA;EAMN,IAAA,EAPL,KAOK;EAcK,OAAA,EApBP,QAoBO;CAAe;;;;AAGf,aAjBL,kBAAA;EA2BA,KAAA,GAAA,OAAA;EAAc,WAAA,GAAA,aAAA;EAAA,GAAkB,GAAA,KAAA;EAAkB,GAC1C,GAAA,KAAA;EAAQ,KAAO,GAAA,OAAA;EAAO,QAAA,GAAA,UAAA;EAQ9B,MAAA,GAAA,QAAA;;;;;;AAKL,UA3BU,eAAA,CA2BV;EAAO,SAAA,IAAA,EA1BE,kBA0BF;EAKF,OAAA,EAAA,EA9BA,OA8BA,CAAA,IAAA,CAAA;EAAuB,KAAA,EAAA,EA7BzB,OA6ByB,CAAA,IAAA,CAAA;EAAA,WAClC,EAAA,EAAA,OAAA;;;AAAqC;AAEtC;;;;AAI+B,KA1BnB,cA0BmB,CAAA,iBA1Ba,kBA0Bb,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,GAAA;EAAC,OAAzB,EAAA,CAAA,OAAA,EAzBa,QAyBb,EAAA,EAAA,GAzB4B,OAyB5B,CAAA,IAAA,CAAA;CAAuB;;;;;;AAIG,KArBrB,eAqBqB,CAAA,iBArBY,kBAqBZ,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,GAAA;wBAlBpB,wCACU,aAAa,kBAC7B;;;;;KAKK,6BACX,UAAU,0BAA0B;KAEzB,sBACD,mDACQ;QAEZ,wBAAwB;iBAExB,oBAAoB,eACrB,wBAAwB;eAChB,oBAAoB"}
1
+ {"version":3,"file":"types-DycjsYms.d.mts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;;;;AASA;;;;AAEkB,KAFN,kBAEM,CAAA,cAAA,MAAA,EAAA,QAAA,CAAA,GAAA;EAMN,IAAA,EAPL,KAOK;EAcK,OAAA,EApBP,QAoBO;CAAe;;;;AAGf,aAjBL,kBAAA;EA2BA,KAAA,GAAA,OAAA;EAAc,WAAA,GAAA,aAAA;EAAA,GAAkB,GAAA,KAAA;EAAkB,GAC1C,GAAA,KAAA;EAAQ,KAAO,GAAA,OAAA;EAAO,QAAA,GAAA,UAAA;EAQ9B,MAAA,GAAA,QAAA;;;;;;AAKL,UA3BU,eAAA,CA2BV;EAAO,SAAA,IAAA,EA1BE,kBA0BF;EAKF,OAAA,EAAA,EA9BA,OA8BA,CAAA,IAAA,CAAA;EAAuB,KAAA,EAAA,EA7BzB,OA6ByB,CAAA,IAAA,CAAA;EAAA,WAClC,EAAA,EAAA,OAAA;;;AAAqC;AAEtC;;;;AAI+B,KA1BnB,cA0BmB,CAAA,iBA1Ba,kBA0Bb,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,GAAA;EAAC,OAAzB,EAAA,CAAA,OAAA,EAzBa,QAyBb,EAAA,EAAA,GAzB4B,OAyB5B,CAAA,IAAA,CAAA;CAAuB;;;;;;AAIG,KArBrB,eAqBqB,CAAA,iBArBY,kBAqBZ,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,GAAA;wBAlBpB,wCACU,aAAa,kBAC7B;;;;;KAKK,6BACX,UAAU,0BAA0B;KAEzB,sBACD,mDACQ;QAEZ,wBAAwB;iBAExB,oBAAoB,eACrB,wBAAwB;eAChB,oBAAoB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/events",
3
- "version": "9.0.2",
3
+ "version": "10.0.0-alpha.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -43,6 +43,16 @@
43
43
  "default": "./dist/sqs/index.cjs"
44
44
  }
45
45
  },
46
+ "./sqs/url": {
47
+ "import": {
48
+ "types": "./dist/sqs/sqsUrl.d.mts",
49
+ "default": "./dist/sqs/sqsUrl.mjs"
50
+ },
51
+ "require": {
52
+ "types": "./dist/sqs/sqsUrl.d.cts",
53
+ "default": "./dist/sqs/sqsUrl.cjs"
54
+ }
55
+ },
46
56
  "./sns": {
47
57
  "import": {
48
58
  "types": "./dist/sns/index.d.mts",
@@ -53,6 +63,16 @@
53
63
  "default": "./dist/sns/index.cjs"
54
64
  }
55
65
  },
66
+ "./sns/url": {
67
+ "import": {
68
+ "types": "./dist/sns/snsUrl.d.mts",
69
+ "default": "./dist/sns/snsUrl.mjs"
70
+ },
71
+ "require": {
72
+ "types": "./dist/sns/snsUrl.d.cts",
73
+ "default": "./dist/sns/snsUrl.cjs"
74
+ }
75
+ },
56
76
  "./pgboss": {
57
77
  "import": {
58
78
  "types": "./dist/pgboss/index.d.mts",
@@ -64,6 +84,9 @@
64
84
  }
65
85
  }
66
86
  },
87
+ "files": [
88
+ "dist"
89
+ ],
67
90
  "repository": {
68
91
  "type": "git",
69
92
  "url": "https://github.com/geekmidas/toolbox"
@@ -80,7 +103,7 @@
80
103
  "@aws-sdk/client-sqs": "~3.908.0",
81
104
  "@aws-sdk/client-sns": "~3.908.0",
82
105
  "pg-boss": ">=12.0.0",
83
- "@geekmidas/schema": "^9.0.2"
106
+ "@geekmidas/schema": "^10.0.0-alpha.0"
84
107
  },
85
108
  "peerDependenciesMeta": {
86
109
  "@geekmidas/schema": {
@@ -105,6 +128,6 @@
105
128
  "@types/pg": "~8.15.6",
106
129
  "pg": "~8.20.0",
107
130
  "pg-boss": "~12.18.1",
108
- "@geekmidas/schema": "^9.0.2"
131
+ "@geekmidas/schema": "^10.0.0-alpha.0"
109
132
  }
110
133
  }
package/CHANGELOG.md DELETED
@@ -1,109 +0,0 @@
1
- # @geekmidas/events
2
-
3
- ## 9.0.2
4
-
5
- ### Patch Changes
6
-
7
- - [#12](https://github.com/geekmidas/toolbox/pull/12) [`d53863a`](https://github.com/geekmidas/toolbox/commit/d53863a84db2e4ab5420e08f79128b637043fc42) Thanks [@geekmidas](https://github.com/geekmidas)! - Align every published package on a single version and keep them in step.
8
-
9
- All packages now share one version, enforced by a changesets `fixed` group. The
10
- baseline is 9.0.1 — @geekmidas/client's published version — so nothing moves
11
- backwards; this release takes the whole set to 9.0.2 together.
12
-
13
- Independent versions made "which version of the docs applies to me"
14
- unanswerable: a reader on constructs@7 and cli@2 was on no version at all. One
15
- number per release makes versioned documentation possible, and lets 9 freeze as
16
- the current paradigm while the constructs rework is developed against it.
17
-
18
- Every release now publishes every package, and a major anywhere is a major
19
- everywhere. Peer ranges get simpler in return.
20
-
21
- - Updated dependencies [[`d53863a`](https://github.com/geekmidas/toolbox/commit/d53863a84db2e4ab5420e08f79128b637043fc42)]:
22
- - @geekmidas/schema@9.0.2
23
-
24
- ## 1.1.6
25
-
26
- ### Patch Changes
27
-
28
- - 🐛 [#11](https://github.com/geekmidas/toolbox/pull/11) [`40f4dc0`](https://github.com/geekmidas/toolbox/commit/40f4dc095911b2223a255029d8f776caf7781309) Thanks [@geekmidas](https://github.com/geekmidas)! - Patch release across all packages to realign published versions with the
29
- registry. The previous release only published the four packages that had
30
- version bumps; the remaining packages failed with "cannot publish over the
31
- previously published versions" because their versions were unchanged.
32
- - Updated dependencies [[`40f4dc0`](https://github.com/geekmidas/toolbox/commit/40f4dc095911b2223a255029d8f776caf7781309)]:
33
- - @geekmidas/schema@1.0.4
34
-
35
- ## 1.1.5
36
-
37
- ### Patch Changes
38
-
39
- - ✨ [#8](https://github.com/geekmidas/toolbox/pull/8) [`03b08fe`](https://github.com/geekmidas/toolbox/commit/03b08feba2e735539c43f95b77792c18a627b07d) Thanks [@geekmidas](https://github.com/geekmidas)! - refactor(manifest): model the unified `gkm build` manifest and add `QueueInfo`
40
-
41
- `gkm build` emits a single TypeScript module per provider
42
- (`export const manifest = { routes, functions, crons, subscribers } as const`),
43
- not separate JSON files. `@geekmidas/manifest` now models that:
44
- - a unified `Manifest` type plus `ManifestField<T>` (a field is a flat
45
- `readonly T[]` or a partitioned `Record<string, readonly T[]>`) and a
46
- `flattenManifestField` helper;
47
- - the item types (`RouteInfo`/`FunctionInfo`/`CronInfo`/`SubscriberInfo`) gain a
48
- new `QueueInfo`, `SubscriberInfo.transport`, and readonly array fields so the
49
- `as const` manifest assigns cleanly;
50
- - 🔥 the per-unit `*Manifest` wrapper types are removed.
51
-
52
- `@geekmidas/cloud/sst`'s `Api`/`Function`/`Cron` `fromManifest` now take the
53
- manifest **field** (`Api.fromManifest(stack, id, manifest.routes, …)`) and
54
- flatten the flat-or-partitioned shape. `@geekmidas/cli` re-exports the updated
55
- types.
56
-
57
- Also fixes `@geekmidas/events` to externalise `pg-boss` (it was the one
58
- transport dep being bundled).
59
-
60
- ## 1.1.4
61
-
62
- ### Patch Changes
63
-
64
- - 🐛 [`75954ab`](https://github.com/geekmidas/toolbox/commit/75954ab60413ecba60b24aad7f9e0a08f29863dd) Thanks [@geekmidas](https://github.com/geekmidas)! - Republish with the `package.json` exports fix that nests `types` inside each `import`/`require` condition and points at the `.d.mts`/`.d.cts` files that `tsdown` actually emits. The previous version (1.1.3) was tagged but failed to publish to npm; this bump retries publication so consumers can resolve types correctly under NodeNext/Bundler module resolution.
65
-
66
- ## 1.1.3
67
-
68
- ### Patch Changes
69
-
70
- - 🐛 [`d70c6c0`](https://github.com/geekmidas/toolbox/commit/d70c6c0aeb8a79da2473ac77dbd8255a4a2f5651) Thanks [@geekmidas](https://github.com/geekmidas)! - Fix `package.json` exports so TypeScript declarations resolve correctly under NodeNext/Bundler module resolution. Each subpath export now nests `types` inside its `import`/`require` condition, pointing at the `.d.mts` and `.d.cts` files that `tsdown` actually emits (previously the exports referenced non-existent `.d.ts` files, causing type-resolution failures for consumers). Both ESM (`.mjs`) and CJS (`.cjs`) runtime entry points are preserved. Additionally, `@geekmidas/ui` had `import` paths pointing at `.js` files that were never emitted — those are corrected to `.mjs`.
71
-
72
- - Updated dependencies [[`d70c6c0`](https://github.com/geekmidas/toolbox/commit/d70c6c0aeb8a79da2473ac77dbd8255a4a2f5651)]:
73
- - @geekmidas/schema@1.0.2
74
-
75
- ## 1.1.2
76
-
77
- ### Patch Changes
78
-
79
- - 🐛 [`aeba918`](https://github.com/geekmidas/toolbox/commit/aeba918fc258f6ccdb96b8273b2bc01bd2190553) Thanks [@geekmidas](https://github.com/geekmidas)! - Fix schema, openapi generation and events testkit
80
-
81
- - Updated dependencies [[`aeba918`](https://github.com/geekmidas/toolbox/commit/aeba918fc258f6ccdb96b8273b2bc01bd2190553)]:
82
- - @geekmidas/schema@1.0.1
83
-
84
- ## 1.1.1
85
-
86
- ### Patch Changes
87
-
88
- - ⬆️ [`bf6c028`](https://github.com/geekmidas/toolbox/commit/bf6c0286c046794c322ebf7765378fc6ae1f9155) Thanks [@geekmidas](https://github.com/geekmidas)! - Upgrade pg-boss to 12
89
-
90
- ## 1.1.0
91
-
92
- ### Minor Changes
93
-
94
- - ✨ [`83a24de`](https://github.com/geekmidas/toolbox/commit/83a24de902b3fadd98444cab552ecd84f32b6661) Thanks [@geekmidas](https://github.com/geekmidas)! - Add pg-boss event publisher/subscriber, CLI setup and upgrade commands, and secrets sync via AWS SSM
95
- - ✨ **@geekmidas/events**: Add pg-boss backend for event publishing and subscribing with connection string support
96
- - ✨ **@geekmidas/cli**: Add `gkm setup` command for dev environment initialization, `gkm upgrade` command with workspace detection, and secrets push/pull via AWS SSM Parameter Store
97
- - 🐛 **@geekmidas/testkit**: Fix database creation race condition in PostgresMigrator
98
- - ✨ **@geekmidas/constructs**: Add integration tests for pg-boss with HonoEndpoint
99
-
100
- ## 1.0.0
101
-
102
- ### Major Changes
103
-
104
- - [`ff7b115`](https://github.com/geekmidas/toolbox/commit/ff7b11599f60f84ac6cdc73714c853ecf786b2e8) Thanks [@geekmidas](https://github.com/geekmidas)! - Version 1 Stable release
105
-
106
- ### Patch Changes
107
-
108
- - Updated dependencies [[`ff7b115`](https://github.com/geekmidas/toolbox/commit/ff7b11599f60f84ac6cdc73714c853ecf786b2e8)]:
109
- - @geekmidas/schema@1.0.0
@@ -1,27 +0,0 @@
1
- import { EventConnection, EventPublisherType } from "./types-Dj23od3e.cjs";
2
- import { EventEmitter } from "node:events";
3
-
4
- //#region src/basic/BasicConnection.d.ts
5
- declare class BasicConnection implements EventConnection {
6
- readonly type = EventPublisherType.Basic;
7
- private emitter;
8
- private connected;
9
- constructor();
10
- /**
11
- * Create a BasicConnection from a connection string
12
- * Format: basic://
13
- */
14
- static fromConnectionString(_connectionString: string): Promise<BasicConnection>;
15
- connect(): Promise<void>;
16
- close(): Promise<void>;
17
- isConnected(): boolean;
18
- /**
19
- * Get the underlying EventEmitter
20
- * Used by BasicPublisher and BasicSubscriber
21
- */
22
- get eventEmitter(): EventEmitter;
23
- }
24
- //# sourceMappingURL=BasicConnection.d.ts.map
25
- //#endregion
26
- export { BasicConnection };
27
- //# sourceMappingURL=BasicConnection-CQsJpx2J.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BasicConnection-CQsJpx2J.d.cts","names":[],"sources":["../src/basic/BasicConnection.ts"],"sourcesContent":[],"mappings":";;;;cAIa,eAAA,YAA2B;EAA3B,SAAA,IAAA,GACC,kBAAA,CAAA,KAAA;EADe,QAAA,OAAA;EAAA,QACf,SAAA;EAAA,WAcF,CAAA;EAAe;;;;EAwBM,OAvCO,oBAAA,CAAA,iBAAA,EAAA,MAAA,CAAA,EAepC,OAfoC,CAe5B,eAf4B,CAAA;EAAe,OAAA,CAAA,CAAA,EAsBrC,OAtBqC,CAAA,IAAA,CAAA;WA0BvC;;;;;;sBAaK"}