@eventcatalog/core 0.1.4 → 0.1.8

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 (254) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +51 -41
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/eslint/.cache_1bay4w0 +1 -1
  6. package/.next/cache/next-server.js.nft.json +1 -1
  7. package/.next/cache/webpack/client-production/0.pack +0 -0
  8. package/.next/cache/webpack/client-production/index.pack +0 -0
  9. package/.next/cache/webpack/server-production/0.pack +0 -0
  10. package/.next/cache/webpack/server-production/index.pack +0 -0
  11. package/.next/export-marker.json +1 -1
  12. package/.next/images-manifest.json +1 -1
  13. package/.next/next-server.js.nft.json +1 -1
  14. package/.next/prerender-manifest.json +1 -1
  15. package/.next/react-loadable-manifest.json +3 -2
  16. package/.next/required-server-files.json +1 -1
  17. package/.next/routes-manifest.json +1 -1
  18. package/.next/server/chunks/565.js +77 -21
  19. package/.next/server/chunks/8.js +1 -0
  20. package/.next/server/chunks/944.js +94 -10
  21. package/.next/server/chunks/97.js +9 -1
  22. package/.next/server/pages/404.html +1 -1
  23. package/.next/server/pages/500.html +1 -1
  24. package/.next/server/pages/_app.js +1 -1
  25. package/.next/server/pages/events/AddedItemToCart/logs.html +1 -1
  26. package/.next/server/pages/events/AddedItemToCart/v/0.0.1.html +16 -6
  27. package/.next/server/pages/events/AddedItemToCart/v/0.0.1.json +1 -1
  28. package/.next/server/pages/events/AddedItemToCart/v/0.0.2.html +16 -6
  29. package/.next/server/pages/events/AddedItemToCart/v/0.0.2.json +1 -1
  30. package/.next/server/pages/events/AddedItemToCart.html +15 -5
  31. package/.next/server/pages/events/AddedItemToCart.json +1 -1
  32. package/.next/server/pages/events/OrderComplete/logs.html +1 -1
  33. package/.next/server/pages/events/OrderComplete.html +15 -5
  34. package/.next/server/pages/events/OrderComplete.json +1 -1
  35. package/.next/server/pages/events/OrderConfirmed/logs.html +1 -1
  36. package/.next/server/pages/events/OrderConfirmed.html +15 -5
  37. package/.next/server/pages/events/OrderConfirmed.json +1 -1
  38. package/.next/server/pages/events/OrderRequested/logs.html +1 -1
  39. package/.next/server/pages/events/OrderRequested.html +15 -5
  40. package/.next/server/pages/events/OrderRequested.json +1 -1
  41. package/.next/server/pages/events/PaymentProcessed/logs.html +1 -1
  42. package/.next/server/pages/events/PaymentProcessed.html +15 -5
  43. package/.next/server/pages/events/PaymentProcessed.json +1 -1
  44. package/.next/server/pages/events/RemovedItemFromCart/logs.html +1 -1
  45. package/.next/server/pages/events/RemovedItemFromCart.html +15 -5
  46. package/.next/server/pages/events/RemovedItemFromCart.json +1 -1
  47. package/.next/server/pages/events/ShipmentDelivered/logs.html +1 -1
  48. package/.next/server/pages/events/ShipmentDelivered.html +17 -6
  49. package/.next/server/pages/events/ShipmentDelivered.json +1 -1
  50. package/.next/server/pages/events/ShipmentDispatched/logs.html +1 -1
  51. package/.next/server/pages/events/ShipmentDispatched.html +15 -5
  52. package/.next/server/pages/events/ShipmentDispatched.json +1 -1
  53. package/.next/server/pages/events/ShipmentPrepared/logs.html +1 -1
  54. package/.next/server/pages/events/ShipmentPrepared.html +15 -47
  55. package/.next/server/pages/events/ShipmentPrepared.json +1 -1
  56. package/.next/server/pages/events/[name]/v/[version].js +15 -1
  57. package/.next/server/pages/events/[name]/v/[version].js.nft.json +1 -1
  58. package/.next/server/pages/events/[name].js +15 -1
  59. package/.next/server/pages/events/[name].js.nft.json +1 -1
  60. package/.next/server/pages/events.html +10 -10
  61. package/.next/server/pages/events.js +16 -3
  62. package/.next/server/pages/events.js.nft.json +1 -1
  63. package/.next/server/pages/index.html +1 -1
  64. package/.next/server/pages/overview.html +1 -1
  65. package/.next/server/pages/overview.js +13 -7
  66. package/.next/server/pages/overview.js.nft.json +1 -1
  67. package/.next/server/pages/services/Basket Service.html +16 -5
  68. package/.next/server/pages/services/Basket Service.json +1 -1
  69. package/.next/server/pages/services/Data Lake.html +18 -6
  70. package/.next/server/pages/services/Data Lake.json +1 -1
  71. package/.next/server/pages/services/Payment Service.html +14 -4
  72. package/.next/server/pages/services/Payment Service.json +1 -1
  73. package/.next/server/pages/services/Shipping Service.html +22 -8
  74. package/.next/server/pages/services/Shipping Service.json +1 -1
  75. package/.next/server/pages/services/[name].js +15 -3
  76. package/.next/server/pages/services/[name].js.nft.json +1 -1
  77. package/.next/server/pages/services.html +5 -5
  78. package/.next/server/pages/services.js +16 -3
  79. package/.next/server/pages/services.js.nft.json +1 -1
  80. package/.next/server/pages/users/[id].js +8 -1
  81. package/.next/server/pages/users/[id].js.nft.json +1 -1
  82. package/.next/server/pages/users/dboyne.html +14 -14
  83. package/.next/server/pages/users/mSmith.html +10 -10
  84. package/.next/static/PVl9Rqb5HWZjsyBXYiy31/_buildManifest.js +1 -0
  85. package/.next/static/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/_middlewareManifest.js +0 -0
  86. package/.next/static/PVl9Rqb5HWZjsyBXYiy31/_ssgManifest.js +1 -0
  87. package/.next/static/chunks/{873-8db237ddb872ef2b.js → 178-9b89f5c036d77ab9.js} +1 -1
  88. package/.next/static/chunks/1df474da-91f6061ee61707c6.js +1 -0
  89. package/.next/static/chunks/2edb282b-9e1cce5842787609.js +1 -0
  90. package/.next/static/chunks/336-b1acb0b6aa306baf.js +1 -0
  91. package/.next/static/chunks/364-9c039ca46569869e.js +1 -0
  92. package/.next/static/chunks/5-f60eecf67567a225.js +1 -0
  93. package/.next/static/chunks/650-4004943b2a9623ca.js +1 -0
  94. package/.next/static/chunks/7f5d3f51-7158fdd5a44cedd5.js +1 -0
  95. package/.next/static/chunks/802.a40c121588cf5040.js +1 -0
  96. package/.next/static/chunks/main-0015f560a7edeb35.js +1 -0
  97. package/.next/static/chunks/pages/_app-124f494e911492fa.js +1 -0
  98. package/.next/static/chunks/pages/events/[name]/v/{[version]-5652060e116d4a61.js → [version]-f6619ec4056cc70d.js} +1 -1
  99. package/.next/static/chunks/pages/events/[name]-73ecab7171745a3f.js +1 -0
  100. package/.next/static/chunks/pages/events-c9e5a0fa7d23d620.js +1 -0
  101. package/{out/_next/static/chunks/pages/overview-6bd5a86d5a28a942.js → .next/static/chunks/pages/overview-2f0bfad06c84e437.js} +1 -1
  102. package/.next/static/chunks/pages/services/[name]-d8873d29190a6447.js +1 -0
  103. package/.next/static/chunks/pages/services-30e4132ef02b1784.js +1 -0
  104. package/.next/static/chunks/pages/users/[id]-a4274bfad4d9a9ec.js +1 -0
  105. package/.next/static/chunks/webpack-2ebfdb1666dac4ad.js +1 -0
  106. package/.next/static/css/7e14b4dede1671ad.css +1 -0
  107. package/.next/trace +54 -37
  108. package/CHANGELOG.md +26 -0
  109. package/README.md +1 -1
  110. package/components/Header.tsx +1 -1
  111. package/components/Mdx/SchemaViewer/SchemaViewer.module.css +5 -0
  112. package/components/Mdx/SchemaViewer/SchemaViewer.tsx +34 -0
  113. package/eventcatalog.config.js +1 -0
  114. package/lib/__tests__/graphs.spec.ts +33 -7
  115. package/lib/graphs.ts +70 -23
  116. package/out/404/index.html +1 -0
  117. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/AddedItemToCart/logs.json +0 -0
  118. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/AddedItemToCart/v/0.0.1.json +1 -1
  119. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/AddedItemToCart/v/0.0.2.json +1 -1
  120. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/AddedItemToCart.json +1 -1
  121. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/OrderComplete/logs.json +0 -0
  122. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/OrderComplete.json +1 -1
  123. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/OrderConfirmed/logs.json +0 -0
  124. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/OrderConfirmed.json +1 -1
  125. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/OrderRequested/logs.json +0 -0
  126. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/OrderRequested.json +1 -1
  127. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/PaymentProcessed/logs.json +0 -0
  128. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/PaymentProcessed.json +1 -1
  129. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/RemovedItemFromCart/logs.json +0 -0
  130. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/RemovedItemFromCart.json +1 -1
  131. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/ShipmentDelivered/logs.json +0 -0
  132. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/ShipmentDelivered.json +1 -1
  133. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/ShipmentDispatched/logs.json +0 -0
  134. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/ShipmentDispatched.json +1 -1
  135. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/ShipmentPrepared/logs.json +0 -0
  136. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events/ShipmentPrepared.json +1 -1
  137. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/events.json +0 -0
  138. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/overview.json +0 -0
  139. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/services/Basket Service.json +1 -1
  140. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/services/Data Lake.json +1 -1
  141. package/out/_next/data/PVl9Rqb5HWZjsyBXYiy31/services/Payment Service.json +1 -0
  142. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/services/Shipping Service.json +1 -1
  143. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/services.json +0 -0
  144. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/users/dboyne.json +0 -0
  145. package/out/_next/data/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/users/mSmith.json +0 -0
  146. package/out/_next/static/PVl9Rqb5HWZjsyBXYiy31/_buildManifest.js +1 -0
  147. package/out/_next/static/{KzUP5zH0riP2GMq4Zq09e → PVl9Rqb5HWZjsyBXYiy31}/_middlewareManifest.js +0 -0
  148. package/out/_next/static/PVl9Rqb5HWZjsyBXYiy31/_ssgManifest.js +1 -0
  149. package/out/_next/static/chunks/{873-8db237ddb872ef2b.js → 178-9b89f5c036d77ab9.js} +1 -1
  150. package/out/_next/static/chunks/1df474da-91f6061ee61707c6.js +1 -0
  151. package/out/_next/static/chunks/2edb282b-9e1cce5842787609.js +1 -0
  152. package/out/_next/static/chunks/336-b1acb0b6aa306baf.js +1 -0
  153. package/out/_next/static/chunks/364-9c039ca46569869e.js +1 -0
  154. package/out/_next/static/chunks/5-f60eecf67567a225.js +1 -0
  155. package/out/_next/static/chunks/650-4004943b2a9623ca.js +1 -0
  156. package/out/_next/static/chunks/7f5d3f51-7158fdd5a44cedd5.js +1 -0
  157. package/out/_next/static/chunks/802.a40c121588cf5040.js +1 -0
  158. package/out/_next/static/chunks/main-0015f560a7edeb35.js +1 -0
  159. package/out/_next/static/chunks/pages/_app-124f494e911492fa.js +1 -0
  160. package/out/_next/static/chunks/pages/events/[name]/v/{[version]-5652060e116d4a61.js → [version]-f6619ec4056cc70d.js} +1 -1
  161. package/out/_next/static/chunks/pages/events/[name]-73ecab7171745a3f.js +1 -0
  162. package/out/_next/static/chunks/pages/events-c9e5a0fa7d23d620.js +1 -0
  163. package/{.next/static/chunks/pages/overview-6bd5a86d5a28a942.js → out/_next/static/chunks/pages/overview-2f0bfad06c84e437.js} +1 -1
  164. package/out/_next/static/chunks/pages/services/[name]-d8873d29190a6447.js +1 -0
  165. package/out/_next/static/chunks/pages/services-30e4132ef02b1784.js +1 -0
  166. package/out/_next/static/chunks/pages/users/[id]-a4274bfad4d9a9ec.js +1 -0
  167. package/out/_next/static/chunks/webpack-2ebfdb1666dac4ad.js +1 -0
  168. package/out/_next/static/css/7e14b4dede1671ad.css +1 -0
  169. package/out/events/{AddedItemToCart.html → AddedItemToCart/index.html} +15 -5
  170. package/out/events/AddedItemToCart/logs/index.html +1 -0
  171. package/out/events/AddedItemToCart/v/0.0.1/index.html +58 -0
  172. package/out/events/AddedItemToCart/v/0.0.2/index.html +65 -0
  173. package/out/events/{OrderComplete.html → OrderComplete/index.html} +15 -5
  174. package/out/events/OrderComplete/logs/index.html +1 -0
  175. package/out/events/OrderConfirmed/index.html +58 -0
  176. package/out/events/OrderConfirmed/logs/index.html +1 -0
  177. package/out/events/OrderRequested/index.html +58 -0
  178. package/out/events/OrderRequested/logs/index.html +1 -0
  179. package/out/events/{PaymentProcessed.html → PaymentProcessed/index.html} +15 -5
  180. package/out/events/PaymentProcessed/logs/index.html +1 -0
  181. package/out/events/{RemovedItemFromCart.html → RemovedItemFromCart/index.html} +15 -5
  182. package/out/events/RemovedItemFromCart/logs/index.html +1 -0
  183. package/out/events/{ShipmentDelivered.html → ShipmentDelivered/index.html} +17 -6
  184. package/out/events/ShipmentDelivered/logs/index.html +1 -0
  185. package/out/events/{ShipmentDispatched.html → ShipmentDispatched/index.html} +15 -5
  186. package/out/events/ShipmentDispatched/logs/index.html +1 -0
  187. package/out/events/ShipmentPrepared/index.html +20 -0
  188. package/out/events/ShipmentPrepared/logs/index.html +1 -0
  189. package/out/{events.html → events/index.html} +10 -10
  190. package/out/index.html +1 -1
  191. package/out/overview/index.html +1 -0
  192. package/out/services/Basket Service/index.html +22 -0
  193. package/out/services/Data Lake/index.html +24 -0
  194. package/out/services/Payment Service/index.html +20 -0
  195. package/out/services/Shipping Service/index.html +28 -0
  196. package/out/{services.html → services/index.html} +5 -5
  197. package/out/users/{dboyne.html → dboyne/index.html} +14 -14
  198. package/out/users/{mSmith.html → mSmith/index.html} +10 -10
  199. package/package.json +5 -1
  200. package/pages/events/[name].tsx +29 -2
  201. package/pages/events.tsx +3 -1
  202. package/pages/overview.tsx +15 -7
  203. package/pages/services/[name].tsx +6 -2
  204. package/pages/services.tsx +3 -1
  205. package/styles/globals.css +1 -1
  206. package/.next/static/KzUP5zH0riP2GMq4Zq09e/_buildManifest.js +0 -1
  207. package/.next/static/KzUP5zH0riP2GMq4Zq09e/_ssgManifest.js +0 -1
  208. package/.next/static/chunks/28-812913d1c0167bab.js +0 -1
  209. package/.next/static/chunks/336-8b7da71a40e0c439.js +0 -1
  210. package/.next/static/chunks/364-3cb3c8cf1d3c95de.js +0 -1
  211. package/.next/static/chunks/638.d570519ae49c92c8.js +0 -1
  212. package/.next/static/chunks/main-0289ecbd51cd4cb4.js +0 -1
  213. package/.next/static/chunks/pages/_app-2b86b0fb5ed8c085.js +0 -1
  214. package/.next/static/chunks/pages/events/[name]-146170e56a404524.js +0 -1
  215. package/.next/static/chunks/pages/events-2bca09b458bde8ab.js +0 -1
  216. package/.next/static/chunks/pages/services/[name]-78378d531eb27bc2.js +0 -1
  217. package/.next/static/chunks/pages/services-1293e4d7df6174bf.js +0 -1
  218. package/.next/static/chunks/pages/users/[id]-5374b99d99fe576e.js +0 -1
  219. package/.next/static/chunks/webpack-4d9342d4391c2a09.js +0 -1
  220. package/out/404.html +0 -1
  221. package/out/_next/data/KzUP5zH0riP2GMq4Zq09e/services/Payment Service.json +0 -1
  222. package/out/_next/static/KzUP5zH0riP2GMq4Zq09e/_buildManifest.js +0 -1
  223. package/out/_next/static/KzUP5zH0riP2GMq4Zq09e/_ssgManifest.js +0 -1
  224. package/out/_next/static/chunks/28-812913d1c0167bab.js +0 -1
  225. package/out/_next/static/chunks/336-8b7da71a40e0c439.js +0 -1
  226. package/out/_next/static/chunks/364-3cb3c8cf1d3c95de.js +0 -1
  227. package/out/_next/static/chunks/638.d570519ae49c92c8.js +0 -1
  228. package/out/_next/static/chunks/main-0289ecbd51cd4cb4.js +0 -1
  229. package/out/_next/static/chunks/pages/_app-2b86b0fb5ed8c085.js +0 -1
  230. package/out/_next/static/chunks/pages/events/[name]-146170e56a404524.js +0 -1
  231. package/out/_next/static/chunks/pages/events-2bca09b458bde8ab.js +0 -1
  232. package/out/_next/static/chunks/pages/services/[name]-78378d531eb27bc2.js +0 -1
  233. package/out/_next/static/chunks/pages/services-1293e4d7df6174bf.js +0 -1
  234. package/out/_next/static/chunks/pages/users/[id]-5374b99d99fe576e.js +0 -1
  235. package/out/_next/static/chunks/webpack-4d9342d4391c2a09.js +0 -1
  236. package/out/events/AddedItemToCart/logs.html +0 -1
  237. package/out/events/AddedItemToCart/v/0.0.1.html +0 -48
  238. package/out/events/AddedItemToCart/v/0.0.2.html +0 -55
  239. package/out/events/OrderComplete/logs.html +0 -1
  240. package/out/events/OrderConfirmed/logs.html +0 -1
  241. package/out/events/OrderConfirmed.html +0 -48
  242. package/out/events/OrderRequested/logs.html +0 -1
  243. package/out/events/OrderRequested.html +0 -48
  244. package/out/events/PaymentProcessed/logs.html +0 -1
  245. package/out/events/RemovedItemFromCart/logs.html +0 -1
  246. package/out/events/ShipmentDelivered/logs.html +0 -1
  247. package/out/events/ShipmentDispatched/logs.html +0 -1
  248. package/out/events/ShipmentPrepared/logs.html +0 -1
  249. package/out/events/ShipmentPrepared.html +0 -52
  250. package/out/overview.html +0 -1
  251. package/out/services/Basket Service.html +0 -11
  252. package/out/services/Data Lake.html +0 -12
  253. package/out/services/Payment Service.html +0 -10
  254. package/out/services/Shipping Service.html +0 -14
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @eventcatalog/core
2
2
 
3
+ ## 0.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fd9b26a`](https://github.com/boyney123/eventcatalog/commit/fd9b26a24fd94e298b79b59777f148988a7c89b1) [#151](https://github.com/boyney123/eventcatalog/pull/151) Thanks [@thim81](https://github.com/thim81)! - feat: new mdx component json schema viewer
8
+
9
+ ## 0.1.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [`740c504`](https://github.com/boyney123/eventcatalog/commit/740c5041f033aff975a7ce89e99b3722b271e2b3) [#154](https://github.com/boyney123/eventcatalog/pull/154) Thanks [@boyney123](https://github.com/boyney123)! - fix: trying to fix npm versions problem
14
+
15
+ ## 0.1.6
16
+
17
+ ### Patch Changes
18
+
19
+ - [`00e3c89`](https://github.com/boyney123/eventcatalog/commit/00e3c898ca8bf72bd563d246d6a2ee8620dd8284) [#143](https://github.com/boyney123/eventcatalog/pull/143) Thanks [@thim81](https://github.com/thim81)! - feat: mermaid name and link
20
+
21
+ * [`b4774fb`](https://github.com/boyney123/eventcatalog/commit/b4774fbf9773e66e1f85d71e99992e699833bf99) [#141](https://github.com/boyney123/eventcatalog/pull/141) Thanks [@thim81](https://github.com/thim81)! - bug: use title when setting page title
22
+
23
+ ## 0.1.5
24
+
25
+ ### Patch Changes
26
+
27
+ - [`1975995`](https://github.com/boyney123/eventcatalog/commit/1975995e2a77662742e8f7d95b827ff3cb0e4ac2) [#136](https://github.com/boyney123/eventcatalog/pull/136) Thanks [@boyney123](https://github.com/boyney123)! - fix: header link now goes to landing page
28
+
3
29
  ## 0.1.4
4
30
 
5
31
  ### Patch Changes
package/README.md CHANGED
@@ -9,4 +9,4 @@ To make changes or run this application core code, you will need to fork the Eve
9
9
  npm run start:catalog
10
10
  ```
11
11
 
12
- This will run the catalog using the catalog information found in `examples/basic`.
12
+ This will run the catalog using the catalog information found in `examples/basic`
@@ -25,7 +25,7 @@ export default function Example() {
25
25
  <div className="relative flex items-center justify-between h-16">
26
26
  <div className="flex-1 flex items-center justify-center sm:items-stretch sm:justify-start">
27
27
  <div className="flex-shrink-0 flex items-center text-white font-bold">
28
- <Link href="/events">
28
+ <Link href="/">
29
29
  <a className="flex items-center">
30
30
  <img alt="logo" className="text-white w-8 inline-block mr-3" src={`${basePath}/logo.svg`} />
31
31
  <span className="text-xl">{title}</span>
@@ -0,0 +1,5 @@
1
+ /* Custom styling for the schema viewer */
2
+ .schemaViewer :global(.svg-inline--fa){
3
+ width: 1.25em;
4
+ height: 1em;
5
+ }
@@ -0,0 +1,34 @@
1
+ import React, { useMemo } from 'react';
2
+
3
+ import { JsonSchemaViewer } from '@stoplight/json-schema-viewer';
4
+ import { injectStyles } from '@stoplight/mosaic';
5
+ import styles from './SchemaViewer.module.css';
6
+
7
+ // Inject Stoplight styles
8
+ injectStyles();
9
+
10
+ type Props = {
11
+ schema: any;
12
+ renderRootTreeLines?: boolean;
13
+ hideExamples?: boolean;
14
+ defaultExpandedDepth?: number;
15
+ maxHeight?: number;
16
+ };
17
+
18
+ function SchemaViewer({ schema, maxHeight, renderRootTreeLines = false, hideExamples = false, defaultExpandedDepth = 1 }: Props) {
19
+ const JsonSchema = useMemo(() => JSON.parse(schema as string), [schema]);
20
+
21
+ return (
22
+ <JsonSchemaViewer
23
+ schema={JsonSchema}
24
+ emptyText="No schema defined"
25
+ maxHeight={maxHeight}
26
+ defaultExpandedDepth={defaultExpandedDepth}
27
+ renderRootTreeLines={renderRootTreeLines}
28
+ hideExamples={hideExamples}
29
+ className={styles.schemaViewer}
30
+ />
31
+ );
32
+ }
33
+
34
+ export default SchemaViewer;
@@ -3,6 +3,7 @@ module.exports = {
3
3
  tagline: 'Discover, Explore and Document your Event Driven Architectures',
4
4
  organizationName: 'Your Company',
5
5
  editUrl: 'https://github.com/boyney123/eventcatalog-demo/edit/master',
6
+ trailingSlash: true,
6
7
  logo: {
7
8
  alt: 'EventCatalog Logo',
8
9
  src: 'logo.svg',
@@ -1,5 +1,11 @@
1
1
  import { buildMermaidFlowChartForEvent, buildMermaidFlowChartForService } from '../graphs';
2
2
 
3
+ jest.mock('next/config', () => () => ({
4
+ publicRuntimeConfig: {
5
+ basePath: '/docs',
6
+ },
7
+ }));
8
+
3
9
  describe('graphs', () => {
4
10
  describe('buildMermaidFlowChartForService', () => {
5
11
  it('takes a given Service and returns the mermaid code showing relationships between the events it publishes and consumes', () => {
@@ -18,12 +24,22 @@ describe('graphs', () => {
18
24
  const result = buildMermaidFlowChartForService(service);
19
25
 
20
26
  expect(result.trim()).toEqual(`flowchart LR
21
- My_Event_2:::producer-->My_Service:::event
27
+
28
+ My_Event[My Event]:::producer-->My_Service[My Service]:::event
22
29
 
23
30
  classDef event stroke:#2563eb,stroke-width: 4px;
31
+
24
32
  classDef producer stroke:#75d7b6,stroke-width: 2px;
33
+
25
34
  classDef consumer stroke:#818cf8,stroke-width: 2px;
26
- My_Service:::event-->My_Event:::consumer`);
35
+
36
+ My_Service[My Service]:::event-->My_Event_2[My Event 2]:::consumer
37
+
38
+ click My_Event href "/docs/events/My Event" "Go to My Event" _self
39
+
40
+ click My_Event_2 href "/docs/events/My Event 2" "Go to My Event 2" _self
41
+
42
+ click My_Service href "/docs/services/My Service" "Go to My Service" _self`);
27
43
  });
28
44
  });
29
45
 
@@ -39,15 +55,25 @@ My_Service:::event-->My_Event:::consumer`);
39
55
  const result = buildMermaidFlowChartForEvent(event);
40
56
 
41
57
  expect(result.trim()).toEqual(`flowchart LR
42
- Service_1:::producer-->My_Event:::event
58
+
59
+ Service_1[Service 1]:::producer-->My_Event[My Event]:::event
43
60
 
44
61
  classDef event stroke:#2563eb,stroke-width: 4px;
62
+
45
63
  classDef producer stroke:#75d7b6,stroke-width: 2px;
64
+
46
65
  classDef consumer stroke:#818cf8,stroke-width: 2px;
47
- My_Event:::event-->Service_2:::consumer`);
66
+
67
+ My_Event[My Event]:::event-->Service_2[Service 2]:::consumer
68
+
69
+ click Service_1 href "/docs/services/Service 1" "Go to Service 1" _self
70
+
71
+ click Service_2 href "/docs/services/Service 2" "Go to Service 2" _self
72
+
73
+ click My_Event href "/docs/events/My Event" "Go to My Event" _self`);
48
74
  });
49
75
 
50
- it('transforms any service name with spaces into _', () => {
76
+ it('persists the spaces in the service name and renders them with mermaid', () => {
51
77
  const event = {
52
78
  name: 'My Event',
53
79
  version: '0.0.1',
@@ -55,8 +81,8 @@ My_Event:::event-->Service_2:::consumer`);
55
81
  consumers: [],
56
82
  };
57
83
  const result = buildMermaidFlowChartForEvent(event);
58
- expect(result).toContain(`Service_1_With_Spaces:::producer-->My_Event:::event`);
59
- expect(result).not.toContain(`Service 1 With Spaces`);
84
+ expect(result).toContain(`Service_1_With_Spaces[Service 1 With Spaces]:::producer-->My_Event[My Event]:::event`);
85
+ expect(result).not.toContain(`Service 1 With Spaces[`);
60
86
  });
61
87
  });
62
88
  });
package/lib/graphs.ts CHANGED
@@ -1,35 +1,82 @@
1
1
  import type { Event, Service } from '@eventcatalog/types';
2
+ import getConfig from 'next/config';
2
3
 
3
4
  const MAX_LENGTH_FOR_NODES = '50';
5
+ const { publicRuntimeConfig: { basePath = '' } = {} } = getConfig();
4
6
 
5
7
  const truncateNode = (value) => (value.length > MAX_LENGTH_FOR_NODES ? `${value.substring(0, MAX_LENGTH_FOR_NODES)}...` : value);
8
+ const generateLink = (value, type) => (basePath !== '' ? `${basePath}/${type}/${value}` : `/${type}/${value}`);
6
9
 
7
- const buildMermaid = (centerNode, leftNodes, rightNodes, rootNodeColor) => {
8
- // mermaid does not work with spaces in nodes
9
- const removeSpacesInNames = (nodes) => nodes.map((node) => node.replace(/ /g, '_'));
10
- const lNodes = removeSpacesInNames(leftNodes).map(truncateNode);
11
- const rNodes = removeSpacesInNames(rightNodes).map(truncateNode);
12
- const nodeValue = truncateNode(centerNode.replace(/ /g, '_'));
10
+ /**
11
+ * Build Mermaid graph output
12
+ * @param centerNode
13
+ * @param leftNodes
14
+ * @param rightNodes
15
+ * @param rootNodeColor
16
+ */
17
+ const buildMermaid = (centerNode, leftNodes, rightNodes, rootNodeColor) => `flowchart LR\n
18
+ ${leftNodes.map((node) => `${node.id}[${node.name}]:::producer-->${centerNode.id}[${centerNode.name}]:::event\n`).join('')}
19
+ classDef event stroke:${rootNodeColor},stroke-width: 4px;\n
20
+ classDef producer stroke:#75d7b6,stroke-width: 2px;\n
21
+ classDef consumer stroke:#818cf8,stroke-width: 2px;\n
22
+ ${rightNodes.map((node) => `${centerNode.id}[${centerNode.name}]:::event-->${node.id}[${node.name}]:::consumer\n`).join('')}
23
+ ${leftNodes.map((node) => `click ${node.id} href "${node.link}" "Go to ${node.name}" _self\n`).join('')}
24
+ ${rightNodes.map((node) => `click ${node.id} href "${node.link}" "Go to ${node.name}" _self\n`).join('')}
25
+ click ${centerNode.id} href "${centerNode.link}" "Go to ${centerNode.name}" _self\n
26
+ `;
13
27
 
14
- return `flowchart LR
15
- ${lNodes.map((node) => `${node}:::producer-->${nodeValue}:::event\n`).join('')}
16
- classDef event stroke:${rootNodeColor},stroke-width: 4px;
17
- classDef producer stroke:#75d7b6,stroke-width: 2px;
18
- classDef consumer stroke:#818cf8,stroke-width: 2px;
19
- ${rNodes.map((node) => `${nodeValue}:::event-->${node}:::consumer\n`).join('')}
20
- `;
21
- };
28
+ /**
29
+ * Builds a graph for a given event
30
+ * @param {Event} event
31
+ * @param {string} rootNodeColor of the root node
32
+ * @returns {string} Mermaid Graph
33
+ */
34
+ export const buildMermaidFlowChartForEvent = ({ name: eventName, producers, consumers }: Event, rootNodeColor = '#2563eb') => {
35
+ // Transforms services & event into a graph model
36
+ const leftNodes = producers.map(truncateNode).map((node) => ({
37
+ id: node.replace(/ /g, '_'),
38
+ name: node,
39
+ link: generateLink(node, 'services'),
40
+ }));
41
+ const rightNodes = consumers.map(truncateNode).map((node) => ({
42
+ id: node.replace(/ /g, '_'),
43
+ name: node,
44
+ link: generateLink(node, 'services'),
45
+ }));
46
+ const centerNode = {
47
+ id: truncateNode(eventName.replace(/ /g, '_')),
48
+ name: eventName,
49
+ link: generateLink(eventName, 'events'),
50
+ };
22
51
 
23
- export const buildMermaidFlowChartForEvent = ({ name: eventName, producers, consumers }: Event, rootNodeColor = '#2563eb') =>
24
- buildMermaid(eventName, producers, consumers, rootNodeColor);
52
+ return buildMermaid(centerNode, leftNodes, rightNodes, rootNodeColor);
53
+ };
25
54
 
55
+ /**
56
+ * Builds a graph for a given service
57
+ * @param {Service} service
58
+ * @param {string} rootNodeColor of the root node
59
+ * @returns {string} Mermaid Graph
60
+ */
26
61
  export const buildMermaidFlowChartForService = (
27
62
  { publishes, subscribes, name: serviceName }: Service,
28
63
  rootNodeColor = '#2563eb'
29
- ) =>
30
- buildMermaid(
31
- serviceName,
32
- subscribes.map((s) => s.name),
33
- publishes.map((p) => p.name),
34
- rootNodeColor
35
- );
64
+ ) => {
65
+ // Transforms services & event into a graph model
66
+ const leftNodes = publishes.map(truncateNode).map((node) => ({
67
+ id: node.name.replace(/ /g, '_'),
68
+ name: node.name,
69
+ link: generateLink(node.name, 'events'),
70
+ }));
71
+ const rightNodes = subscribes.map(truncateNode).map((node) => ({
72
+ id: node.name.replace(/ /g, '_'),
73
+ name: node.name,
74
+ link: generateLink(node.name, 'events'),
75
+ }));
76
+ const centerNode = {
77
+ id: truncateNode(serviceName.replace(/ /g, '_')),
78
+ name: serviceName,
79
+ link: generateLink(serviceName, 'services'),
80
+ };
81
+ return buildMermaid(centerNode, leftNodes, rightNodes, rootNodeColor);
82
+ };
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><script src="//unpkg.com/three"></script><script src="//unpkg.com/three/examples/js/renderers/CSS2DRenderer.js"></script><link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css"/><meta name="description" content="An open source project to Discover, Explore and Document your Event Driven Architectures."/><meta property="og:url" content="https://eventcatalog.dev/"/><meta property="og:type" content="website"/><meta property="og:title" content="EventCatalog | Discover, Explore and Document your Event Driven Architectures."/><meta property="og:description" content="An open source tool powered by markdown to document your Event Driven Architecture."/><meta property="og:image" content="https://eventcatalog.dev/img/opengraph.png"/><meta property="og:image:alt" content="EventCatalog | Discover, Explore and Document your Event Driven Architectures."/><meta property="og:image:width" content="1200"/><meta property="og:image:height" content="600"/><meta property="og:locale" content="en-GB"/><meta name="author" content="David Boyne"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/atom-one-light.min.css"/><title>404: This page could not be found</title><meta name="next-head-count" content="18"/><link rel="preload" href="/_next/static/css/0b54ec6503b91283.css" as="style"/><link rel="stylesheet" href="/_next/static/css/0b54ec6503b91283.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-2ebfdb1666dac4ad.js" defer=""></script><script src="/_next/static/chunks/framework-576ec6a1c1386453.js" defer=""></script><script src="/_next/static/chunks/main-0015f560a7edeb35.js" defer=""></script><script src="/_next/static/chunks/pages/_app-124f494e911492fa.js" defer=""></script><script src="/_next/static/chunks/pages/_error-5a714c45c50a8db4.js" defer=""></script><script src="/_next/static/PVl9Rqb5HWZjsyBXYiy31/_buildManifest.js" defer=""></script><script src="/_next/static/PVl9Rqb5HWZjsyBXYiy31/_ssgManifest.js" defer=""></script><script src="/_next/static/PVl9Rqb5HWZjsyBXYiy31/_middlewareManifest.js" defer=""></script></head><body><div id="__next" data-reactroot=""><div class="bg-gray-800"><div class="max-w-7xl mx-auto "><div class="relative flex items-center justify-between h-16"><div class="flex-1 flex items-center justify-center sm:items-stretch sm:justify-start"><div class="flex-shrink-0 flex items-center text-white font-bold"><a class="flex items-center" href="/"><img alt="logo" class="text-white w-8 inline-block mr-3" src="/logo.svg"/><span class="text-xl">EventCatalog</span></a></div></div><div class="hidden sm:block sm:ml-6"><div class="flex space-x-4"><a class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium" href="/events/">Events</a><a class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium" href="/services/">Services</a><a class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium" href="/overview/">3D Node Graph</a></div></div></div></div></div><div style="color:#000;background:#fff;font-family:-apple-system, BlinkMacSystemFont, Roboto, &quot;Segoe UI&quot;, &quot;Fira Sans&quot;, Avenir, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body { margin: 0 }</style><h1 style="display:inline-block;border-right:1px solid rgba(0, 0, 0,.3);margin:0;margin-right:20px;padding:10px 23px 10px 0;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:inherit;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div><footer class="bg-gray-800"><div class="max-w-7xl mx-auto py-12 px-4 overflow-hidden sm:px-6 lg:px-8"><nav class="-mx-5 -my-2 flex flex-wrap justify-center" aria-label="Footer"><div class="px-5 py-2"><a href="/events" class="text-base text-gray-500 hover:text-gray-900">Events</a></div><div class="px-5 py-2"><a href="/services" class="text-base text-gray-500 hover:text-gray-900">Services</a></div><div class="px-5 py-2"><a href="/overview" class="text-base text-gray-500 hover:text-gray-900">3D Node Graph</a></div><div class="px-5 py-2"><a href="https://github.com/boyney123/eventcatalog-demo/edit/master" class="text-base text-gray-500 hover:text-gray-900">GitHub</a></div></nav><p class="mt-8 text-center text-base text-gray-400">Copyright © <!-- -->2022<!-- --> <!-- -->Your Company<!-- -->. Built with<!-- --> <a class="underline" href="https://eventcatalog.dev" target="_blank" rel="noreferrer">EventCatalog.</a></p></div></footer></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"PVl9Rqb5HWZjsyBXYiy31","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
@@ -1 +1 @@
1
- {"pageProps":{"event":{"name":"AddedItemToCart","version":"0.0.1","summary":"Holds information about what the user added to their shopping cart.\n","producers":["Basket Service"],"consumers":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":["0.0.2","0.0.1"],"schema":{"snippet":"{\n \"$id\": \"https://example.com/AddedItemToCart.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"AddedItemToCart\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"itemId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shopping item\"\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\n\nWe have a frontend application that allows users to buy things from our store. This front end interacts directly with the `Basket Service` to add items to the cart. The `Basket Service` will raise the events.\n\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r=(e,t)=>{for(var o in t||(t={}))a.call(t,o)&&d(e,o,t[o]);if(i)for(var o of i(t))s.call(t,o)&&d(e,o,t[o]);return e},m=(e,t)=>p(e,l(t));var h=(e,t)=>{var o={};for(var n in e)a.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&i)for(var n of i(e))t.indexOf(n)<0&&s.call(e,n)&&(o[n]=e[n]);return o};const makeShortcode=e=>function(o){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},o))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=h(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. This front end interacts directly with the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" to add items to the cart. The \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" will raise the events.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/1/28"},"loadedVersion":"0.0.1"},"__N_SSG":true}
1
+ {"pageProps":{"event":{"name":"AddedItemToCart","version":"0.0.1","summary":"Holds information about what the user added to their shopping cart.\n","producers":["Basket Service"],"consumers":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":["0.0.2","0.0.1"],"schema":{"snippet":"{\n \"$id\": \"https://example.com/AddedItemToCart.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"AddedItemToCart\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"itemId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shopping item\"\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\n\nWe have a frontend application that allows users to buy things from our store. This front end interacts directly with the `Basket Service` to add items to the cart. The `Basket Service` will raise the events.\n\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r=(e,t)=>{for(var o in t||(t={}))a.call(t,o)&&d(e,o,t[o]);if(i)for(var o of i(t))s.call(t,o)&&d(e,o,t[o]);return e},m=(e,t)=>p(e,l(t));var h=(e,t)=>{var o={};for(var n in e)a.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&i)for(var n of i(e))t.indexOf(n)<0&&s.call(e,n)&&(o[n]=e[n]);return o};const makeShortcode=e=>function(o){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},o))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=h(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. This front end interacts directly with the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" to add items to the cart. The \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" will raise the events.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/2/2"},"loadedVersion":"0.0.1"},"__N_SSG":true}
@@ -1 +1 @@
1
- {"pageProps":{"event":{"name":"AddedItemToCart","version":"0.0.1","summary":"Holds information about what the user added to their shopping cart.\n","producers":["Basket Service"],"consumers":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":["0.0.2","0.0.1"],"schema":{"snippet":"{\n \"$id\": \"https://example.com/AddedItemToCart.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"AddedItemToCart\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"itemId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shopping item\"\n },\n \"quantity\": {\n \"type\": \"number\",\n \"description\": \"How many items the user wants to add to their shopping cart\",\n \"minimum\": 1,\n \"maximum\": 100,\n \"default\": 1\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\n\nWe have a frontend application that allows users to buy things from our store. This front end interacts directly with the `Basket Service` to add items to the cart. The `Basket Service` will raise the events.\n\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r=(e,t)=>{for(var o in t||(t={}))a.call(t,o)&&d(e,o,t[o]);if(i)for(var o of i(t))s.call(t,o)&&d(e,o,t[o]);return e},m=(e,t)=>p(e,l(t));var h=(e,t)=>{var o={};for(var n in e)a.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&i)for(var n of i(e))t.indexOf(n)<0&&s.call(e,n)&&(o[n]=e[n]);return o};const makeShortcode=e=>function(o){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},o))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=h(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. This front end interacts directly with the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" to add items to the cart. The \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" will raise the events.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/1/28"},"loadedVersion":"0.0.2"},"__N_SSG":true}
1
+ {"pageProps":{"event":{"name":"AddedItemToCart","version":"0.0.1","summary":"Holds information about what the user added to their shopping cart.\n","producers":["Basket Service"],"consumers":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":["0.0.2","0.0.1"],"schema":{"snippet":"{\n \"$id\": \"https://example.com/AddedItemToCart.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"AddedItemToCart\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"itemId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shopping item\"\n },\n \"quantity\": {\n \"type\": \"number\",\n \"description\": \"How many items the user wants to add to their shopping cart\",\n \"minimum\": 1,\n \"maximum\": 100,\n \"default\": 1\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\n\nWe have a frontend application that allows users to buy things from our store. This front end interacts directly with the `Basket Service` to add items to the cart. The `Basket Service` will raise the events.\n\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r=(e,t)=>{for(var o in t||(t={}))a.call(t,o)&&d(e,o,t[o]);if(i)for(var o of i(t))s.call(t,o)&&d(e,o,t[o]);return e},m=(e,t)=>p(e,l(t));var h=(e,t)=>{var o={};for(var n in e)a.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&i)for(var n of i(e))t.indexOf(n)<0&&s.call(e,n)&&(o[n]=e[n]);return o};const makeShortcode=e=>function(o){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},o))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=h(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. This front end interacts directly with the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" to add items to the cart. The \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" will raise the events.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/2/2"},"loadedVersion":"0.0.2"},"__N_SSG":true}
@@ -1 +1 @@
1
- {"pageProps":{"event":{"name":"AddedItemToCart","version":"0.0.3","summary":"Holds information about what the user added to their shopping cart.\n","producers":["Basket Service"],"consumers":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[{"label":"AsyncAPI Specification","url":"https://studio.asyncapi.com/#schema-lightMeasuredPayload"}],"historicVersions":["0.0.2","0.0.1"],"schema":{"snippet":"{\n \"$id\": \"https://example.com/AddedItemToCart.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"AddedItemToCart\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"itemId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shopping item\"\n },\n \"quantity\": {\n \"type\": \"number\",\n \"description\": \"How many items the user wants to add to their shopping cart\",\n \"minimum\": 1,\n \"maximum\": 1000,\n \"default\": 1\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[{"name":"example.js","snippet":"var kafka = require('kafka-node'),\n Consumer = kafka.Consumer,\n client = new kafka.KafkaClient(),\n consumer = new Consumer(\n client,\n [\n { topic: 't', partition: 0 },\n { topic: 'AddedItemToCart', partition: 1 },\n ],\n {\n autoCommit: false,\n }\n );\n\nconsumer.on('message', function (message) {\n console.log(message);\n});\n","langugage":"javascript"}]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\n\nWe have a frontend application that allows users to buy things from our store. This front end interacts directly with the `Basket Service` to add items to the cart. The `Basket Service` will raise the events.\n\n<Mermaid title=\"Consumer / Producer Diagram\" />\n\n<EventExamples title=\"How to trigger event\" />\n\n<Schema />\n","source":{"compiledSource":"var c=Object.defineProperty,h=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r=(e,t)=>{for(var o in t||(t={}))a.call(t,o)&&d(e,o,t[o]);if(i)for(var o of i(t))s.call(t,o)&&d(e,o,t[o]);return e},m=(e,t)=>h(e,l(t));var p=(e,t)=>{var o={};for(var n in e)a.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&i)for(var n of i(e))t.indexOf(n)<0&&s.call(e,n)&&(o[n]=e[n]);return o};const makeShortcode=e=>function(o){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},o))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),EventExamples=makeShortcode(\"EventExamples\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=p(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. This front end interacts directly with the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" to add items to the cart. The \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" will raise the events.\"),mdx(Mermaid,{title:\"Consumer / Producer Diagram\",mdxType:\"Mermaid\"}),mdx(EventExamples,{title:\"How to trigger event\",mdxType:\"EventExamples\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/1/28"},"loadedVersion":"latest"},"__N_SSG":true}
1
+ {"pageProps":{"event":{"name":"AddedItemToCart","version":"0.0.3","summary":"Holds information about what the user added to their shopping cart.\n","producers":["Basket Service"],"consumers":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[{"label":"AsyncAPI Specification","url":"https://studio.asyncapi.com/#schema-lightMeasuredPayload"}],"historicVersions":["0.0.2","0.0.1"],"schema":{"snippet":"{\n \"$id\": \"https://example.com/AddedItemToCart.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"AddedItemToCart\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"itemId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shopping item\"\n },\n \"quantity\": {\n \"type\": \"number\",\n \"description\": \"How many items the user wants to add to their shopping cart\",\n \"minimum\": 1,\n \"maximum\": 1000,\n \"default\": 1\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[{"name":"example.js","snippet":"var kafka = require('kafka-node'),\n Consumer = kafka.Consumer,\n client = new kafka.KafkaClient(),\n consumer = new Consumer(\n client,\n [\n { topic: 't', partition: 0 },\n { topic: 'AddedItemToCart', partition: 1 },\n ],\n {\n autoCommit: false,\n }\n );\n\nconsumer.on('message', function (message) {\n console.log(message);\n});\n","langugage":"javascript"}]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\n\nWe have a frontend application that allows users to buy things from our store. This front end interacts directly with the `Basket Service` to add items to the cart. The `Basket Service` will raise the events.\n\n<Mermaid title=\"Consumer / Producer Diagram\" />\n\n<EventExamples title=\"How to trigger event\" />\n\n<Schema />\n","source":{"compiledSource":"var c=Object.defineProperty,h=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r=(e,t)=>{for(var o in t||(t={}))a.call(t,o)&&d(e,o,t[o]);if(i)for(var o of i(t))s.call(t,o)&&d(e,o,t[o]);return e},m=(e,t)=>h(e,l(t));var p=(e,t)=>{var o={};for(var n in e)a.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&i)for(var n of i(e))t.indexOf(n)<0&&s.call(e,n)&&(o[n]=e[n]);return o};const makeShortcode=e=>function(o){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},o))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),EventExamples=makeShortcode(\"EventExamples\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=p(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. This front end interacts directly with the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" to add items to the cart. The \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" will raise the events.\"),mdx(Mermaid,{title:\"Consumer / Producer Diagram\",mdxType:\"Mermaid\"}),mdx(EventExamples,{title:\"How to trigger event\",mdxType:\"EventExamples\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/2/2"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -1 +1 @@
1
- {"pageProps":{"event":{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","producers":["Orders Service"],"consumers":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/OrderRequested.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"OrderRequested\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\", \"service\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"orderId\": {\n \"type\": \"string\",\n \"description\": \"The ID the users order\"\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event is the final event of the ordering process. It gets raised when the shipment has been delivered.\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var u=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var s=(e,o,t)=>o in e?c(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,a=(e,o)=>{for(var t in o||(o={}))i.call(o,t)&&s(e,t,o[t]);if(r)for(var t of r(o))d.call(o,t)&&s(e,t,o[t]);return e},m=(e,o)=>p(e,u(o));var h=(e,o)=>{var t={};for(var n in e)i.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&r)for(var n of r(e))o.indexOf(n)<0&&d.call(e,n)&&(t[n]=e[n]);return t};const makeShortcode=e=>function(t){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",a({},t))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(t){var n=t,{components:e}=n,o=h(n,[\"components\"]);return mdx(MDXLayout,m(a(a({},layoutProps),o),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event is the final event of the ordering process. It gets raised when the shipment has been delivered.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/1/28"},"loadedVersion":"latest"},"__N_SSG":true}
1
+ {"pageProps":{"event":{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","producers":["Orders Service"],"consumers":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/OrderRequested.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"OrderRequested\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\", \"service\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"orderId\": {\n \"type\": \"string\",\n \"description\": \"The ID the users order\"\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event is the final event of the ordering process. It gets raised when the shipment has been delivered.\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var u=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var s=(e,o,t)=>o in e?c(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,a=(e,o)=>{for(var t in o||(o={}))i.call(o,t)&&s(e,t,o[t]);if(r)for(var t of r(o))d.call(o,t)&&s(e,t,o[t]);return e},m=(e,o)=>p(e,u(o));var h=(e,o)=>{var t={};for(var n in e)i.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&r)for(var n of r(e))o.indexOf(n)<0&&d.call(e,n)&&(t[n]=e[n]);return t};const makeShortcode=e=>function(t){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",a({},t))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(t){var n=t,{components:e}=n,o=h(n,[\"components\"]);return mdx(MDXLayout,m(a(a({},layoutProps),o),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event is the final event of the ordering process. It gets raised when the shipment has been delivered.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/2/2"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -1 +1 @@
1
- {"pageProps":{"event":{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","producers":["Orders Service"],"consumers":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/OrderRequested.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"OrderRequested\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\", \"service\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"orderId\": {\n \"type\": \"string\",\n \"description\": \"The ID the users order\"\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event is triggered when the customers order has been verified and the stock has been checked. Once this event is triggered we are safe to say it is ready for shipment.\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,u=Object.defineProperties;var p=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,o,t)=>o in e?c(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,a=(e,o)=>{for(var t in o||(o={}))i.call(o,t)&&d(e,t,o[t]);if(r)for(var t of r(o))s.call(o,t)&&d(e,t,o[t]);return e},m=(e,o)=>u(e,p(o));var h=(e,o)=>{var t={};for(var n in e)i.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&r)for(var n of r(e))o.indexOf(n)<0&&s.call(e,n)&&(t[n]=e[n]);return t};const makeShortcode=e=>function(t){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",a({},t))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(t){var n=t,{components:e}=n,o=h(n,[\"components\"]);return mdx(MDXLayout,m(a(a({},layoutProps),o),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event is triggered when the customers order has been verified and the stock has been checked. Once this event is triggered we are safe to say it is ready for shipment.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/1/28"},"loadedVersion":"latest"},"__N_SSG":true}
1
+ {"pageProps":{"event":{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","producers":["Orders Service"],"consumers":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/OrderRequested.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"OrderRequested\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\", \"service\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"orderId\": {\n \"type\": \"string\",\n \"description\": \"The ID the users order\"\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event is triggered when the customers order has been verified and the stock has been checked. Once this event is triggered we are safe to say it is ready for shipment.\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,u=Object.defineProperties;var p=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,o,t)=>o in e?c(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,a=(e,o)=>{for(var t in o||(o={}))i.call(o,t)&&d(e,t,o[t]);if(r)for(var t of r(o))s.call(o,t)&&d(e,t,o[t]);return e},m=(e,o)=>u(e,p(o));var h=(e,o)=>{var t={};for(var n in e)i.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&r)for(var n of r(e))o.indexOf(n)<0&&s.call(e,n)&&(t[n]=e[n]);return t};const makeShortcode=e=>function(t){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",a({},t))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(t){var n=t,{components:e}=n,o=h(n,[\"components\"]);return mdx(MDXLayout,m(a(a({},layoutProps),o),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event is triggered when the customers order has been verified and the stock has been checked. Once this event is triggered we are safe to say it is ready for shipment.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/2/2"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -1 +1 @@
1
- {"pageProps":{"event":{"name":"OrderRequested","version":"0.0.1","summary":"Holds information about the customers order.\n","producers":["Basket Service"],"consumers":["Payment Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/OrderRequested.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"OrderRequested\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\", \"service\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"orderId\": {\n \"type\": \"string\",\n \"description\": \"The ID the users order\"\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event is triggered when the user confirms their order and wants to process their payment.\n\nWe have a frontend application that allows users to buy things from our store. The frontend application interacts with the Backet Service to trigger the `OrderRequested` event.\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var u=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,a=(e,t)=>{for(var o in t||(t={}))i.call(t,o)&&d(e,o,t[o]);if(r)for(var o of r(t))s.call(t,o)&&d(e,o,t[o]);return e},m=(e,t)=>p(e,u(t));var h=(e,t)=>{var o={};for(var n in e)i.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&r)for(var n of r(e))t.indexOf(n)<0&&s.call(e,n)&&(o[n]=e[n]);return o};const makeShortcode=e=>function(o){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",a({},o))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=h(n,[\"components\"]);return mdx(MDXLayout,m(a(a({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event is triggered when the user confirms their order and wants to process their payment.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. The frontend application interacts with the Backet Service to trigger the \",mdx(\"inlineCode\",{parentName:\"p\"},\"OrderRequested\"),\" event.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/1/28"},"loadedVersion":"latest"},"__N_SSG":true}
1
+ {"pageProps":{"event":{"name":"OrderRequested","version":"0.0.1","summary":"Holds information about the customers order.\n","producers":["Basket Service"],"consumers":["Payment Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/OrderRequested.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"OrderRequested\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\", \"service\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"orderId\": {\n \"type\": \"string\",\n \"description\": \"The ID the users order\"\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event is triggered when the user confirms their order and wants to process their payment.\n\nWe have a frontend application that allows users to buy things from our store. The frontend application interacts with the Backet Service to trigger the `OrderRequested` event.\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var u=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,a=(e,t)=>{for(var o in t||(t={}))i.call(t,o)&&d(e,o,t[o]);if(r)for(var o of r(t))s.call(t,o)&&d(e,o,t[o]);return e},m=(e,t)=>p(e,u(t));var h=(e,t)=>{var o={};for(var n in e)i.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&r)for(var n of r(e))t.indexOf(n)<0&&s.call(e,n)&&(o[n]=e[n]);return o};const makeShortcode=e=>function(o){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",a({},o))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=h(n,[\"components\"]);return mdx(MDXLayout,m(a(a({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event is triggered when the user confirms their order and wants to process their payment.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. The frontend application interacts with the Backet Service to trigger the \",mdx(\"inlineCode\",{parentName:\"p\"},\"OrderRequested\"),\" event.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/2/2"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -1 +1 @@
1
- {"pageProps":{"event":{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","producers":["Payment Service"],"consumers":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/PaymentProcessed.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"PaymentProcessed\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\", \"service\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"orderId\": {\n \"type\": \"string\",\n \"description\": \"The ID the users order\"\n },\n \"stripeId\": {\n \"type\": \"string\",\n \"description\": \"The ID the payment handled in stripe\"\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event is triggered when the payment has succesfully been processed for a customers orders.\n\nWe use Stripe to handle customer payments. The Payment Service listens for Stripe webhooks and raises the PaymentProcessed event.\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var h=Object.defineProperty,p=Object.defineProperties;var u=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;var d=(e,o,t)=>o in e?h(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,s=(e,o)=>{for(var t in o||(o={}))a.call(o,t)&&d(e,t,o[t]);if(r)for(var t of r(o))i.call(o,t)&&d(e,t,o[t]);return e},m=(e,o)=>p(e,u(o));var c=(e,o)=>{var t={};for(var n in e)a.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&r)for(var n of r(e))o.indexOf(n)<0&&i.call(e,n)&&(t[n]=e[n]);return t};const makeShortcode=e=>function(t){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",s({},t))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(t){var n=t,{components:e}=n,o=c(n,[\"components\"]);return mdx(MDXLayout,m(s(s({},layoutProps),o),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event is triggered when the payment has succesfully been processed for a customers orders.\"),mdx(\"p\",null,\"We use Stripe to handle customer payments. The Payment Service listens for Stripe webhooks and raises the PaymentProcessed event.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/1/28"},"loadedVersion":"latest"},"__N_SSG":true}
1
+ {"pageProps":{"event":{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","producers":["Payment Service"],"consumers":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/PaymentProcessed.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"PaymentProcessed\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\", \"service\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"orderId\": {\n \"type\": \"string\",\n \"description\": \"The ID the users order\"\n },\n \"stripeId\": {\n \"type\": \"string\",\n \"description\": \"The ID the payment handled in stripe\"\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event is triggered when the payment has succesfully been processed for a customers orders.\n\nWe use Stripe to handle customer payments. The Payment Service listens for Stripe webhooks and raises the PaymentProcessed event.\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var h=Object.defineProperty,p=Object.defineProperties;var u=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;var d=(e,o,t)=>o in e?h(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,s=(e,o)=>{for(var t in o||(o={}))a.call(o,t)&&d(e,t,o[t]);if(r)for(var t of r(o))i.call(o,t)&&d(e,t,o[t]);return e},m=(e,o)=>p(e,u(o));var c=(e,o)=>{var t={};for(var n in e)a.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&r)for(var n of r(e))o.indexOf(n)<0&&i.call(e,n)&&(t[n]=e[n]);return t};const makeShortcode=e=>function(t){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",s({},t))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(t){var n=t,{components:e}=n,o=c(n,[\"components\"]);return mdx(MDXLayout,m(s(s({},layoutProps),o),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event is triggered when the payment has succesfully been processed for a customers orders.\"),mdx(\"p\",null,\"We use Stripe to handle customer payments. The Payment Service listens for Stripe webhooks and raises the PaymentProcessed event.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/2/2"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -1 +1 @@
1
- {"pageProps":{"event":{"name":"RemovedItemFromCart","version":"0.0.1","summary":"Holds information about what the user removed from their cart.\n","producers":["Basket Service"],"consumers":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/RemovedItemFromCart.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"RemovedItemFromCart\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"itemId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shopping item\"\n },\n \"quantity\": {\n \"type\": \"number\",\n \"description\": \"How many items the user wants to remove to their shopping cart\",\n \"minimum\": 1,\n \"maximum\": 100,\n \"default\": 1\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\n\nWe have a frontend application that allows users to buy things from our store. This front end interacts directly with the `Basket Service` to add items to the cart. The `Basket Service` will raise the events.\n\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r=(e,t)=>{for(var o in t||(t={}))a.call(t,o)&&d(e,o,t[o]);if(i)for(var o of i(t))s.call(t,o)&&d(e,o,t[o]);return e},m=(e,t)=>p(e,l(t));var h=(e,t)=>{var o={};for(var n in e)a.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&i)for(var n of i(e))t.indexOf(n)<0&&s.call(e,n)&&(o[n]=e[n]);return o};const makeShortcode=e=>function(o){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},o))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=h(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. This front end interacts directly with the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" to add items to the cart. The \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" will raise the events.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/1/28"},"loadedVersion":"latest"},"__N_SSG":true}
1
+ {"pageProps":{"event":{"name":"RemovedItemFromCart","version":"0.0.1","summary":"Holds information about what the user removed from their cart.\n","producers":["Basket Service"],"consumers":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/RemovedItemFromCart.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"RemovedItemFromCart\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"itemId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shopping item\"\n },\n \"quantity\": {\n \"type\": \"number\",\n \"description\": \"How many items the user wants to remove to their shopping cart\",\n \"minimum\": 1,\n \"maximum\": 100,\n \"default\": 1\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\n\nWe have a frontend application that allows users to buy things from our store. This front end interacts directly with the `Basket Service` to add items to the cart. The `Basket Service` will raise the events.\n\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r=(e,t)=>{for(var o in t||(t={}))a.call(t,o)&&d(e,o,t[o]);if(i)for(var o of i(t))s.call(t,o)&&d(e,o,t[o]);return e},m=(e,t)=>p(e,l(t));var h=(e,t)=>{var o={};for(var n in e)a.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&i)for(var n of i(e))t.indexOf(n)<0&&s.call(e,n)&&(o[n]=e[n]);return o};const makeShortcode=e=>function(o){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},o))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=h(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. This front end interacts directly with the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" to add items to the cart. The \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" will raise the events.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/2/2"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -1 +1 @@
1
- {"pageProps":{"event":{"name":"ShipmentDelivered","version":"0.0.1","summary":"Event represents when a shipment has been delievered and received.\n","producers":["Shipping Service"],"consumers":["Order Service","Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/ShipmentDispatched.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"ShipmentDispatched\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\", \"service\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"shipmentId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shipment\"\n },\n \"orderId\": {\n \"type\": \"string\",\n \"description\": \"The order assigned to the shipment\"\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event is triggered when a shipment has been delievered to it's destination.\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var u=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var s=(e,o,t)=>o in e?c(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,r=(e,o)=>{for(var t in o||(o={}))i.call(o,t)&&s(e,t,o[t]);if(a)for(var t of a(o))d.call(o,t)&&s(e,t,o[t]);return e},m=(e,o)=>p(e,u(o));var h=(e,o)=>{var t={};for(var n in e)i.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&a)for(var n of a(e))o.indexOf(n)<0&&d.call(e,n)&&(t[n]=e[n]);return t};const makeShortcode=e=>function(t){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},t))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(t){var n=t,{components:e}=n,o=h(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),o),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event is triggered when a shipment has been delievered to it's destination.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/1/28"},"loadedVersion":"latest"},"__N_SSG":true}
1
+ {"pageProps":{"event":{"name":"ShipmentDelivered","version":"0.0.1","summary":"Event represents when a shipment has been delievered and received.\n","producers":["Shipping Service"],"consumers":["Order Service","Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/ShipmentDispatched.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"ShipmentDispatched\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\", \"service\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"shipmentId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shipment\"\n },\n \"orderId\": {\n \"type\": \"string\",\n \"description\": \"The order assigned to the shipment\"\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event is triggered when a shipment has been delievered to it's destination.\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var u=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var s=(e,o,t)=>o in e?c(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,r=(e,o)=>{for(var t in o||(o={}))i.call(o,t)&&s(e,t,o[t]);if(a)for(var t of a(o))d.call(o,t)&&s(e,t,o[t]);return e},m=(e,o)=>p(e,u(o));var h=(e,o)=>{var t={};for(var n in e)i.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&a)for(var n of a(e))o.indexOf(n)<0&&d.call(e,n)&&(t[n]=e[n]);return t};const makeShortcode=e=>function(t){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},t))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(t){var n=t,{components:e}=n,o=h(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),o),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event is triggered when a shipment has been delievered to it's destination.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/2/2"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -1 +1 @@
1
- {"pageProps":{"event":{"name":"ShipmentDispatched","version":"0.0.1","summary":"Event represents when a shipment has been dispatched.\n","producers":["Shipping Service"],"consumers":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/ShipmentDispatched.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"ShipmentDispatched\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\", \"service\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"shipmentId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shipment\"\n },\n \"orderId\": {\n \"type\": \"string\",\n \"description\": \"The order assigned to the shipment\"\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event is triggered when a shipment has been dispatched from the warehouse.\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var u=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var s=(e,o,t)=>o in e?c(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,r=(e,o)=>{for(var t in o||(o={}))i.call(o,t)&&s(e,t,o[t]);if(a)for(var t of a(o))d.call(o,t)&&s(e,t,o[t]);return e},m=(e,o)=>p(e,u(o));var h=(e,o)=>{var t={};for(var n in e)i.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&a)for(var n of a(e))o.indexOf(n)<0&&d.call(e,n)&&(t[n]=e[n]);return t};const makeShortcode=e=>function(t){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},t))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(t){var n=t,{components:e}=n,o=h(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),o),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event is triggered when a shipment has been dispatched from the warehouse.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/1/28"},"loadedVersion":"latest"},"__N_SSG":true}
1
+ {"pageProps":{"event":{"name":"ShipmentDispatched","version":"0.0.1","summary":"Event represents when a shipment has been dispatched.\n","producers":["Shipping Service"],"consumers":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/ShipmentDispatched.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"ShipmentDispatched\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\", \"service\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"shipmentId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shipment\"\n },\n \"orderId\": {\n \"type\": \"string\",\n \"description\": \"The order assigned to the shipment\"\n }\n }\n }\n }\n}","language":"json","extension":"json"},"examples":[]},"markdown":{"content":"\n<Admonition>When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.</Admonition>\n\n### Details\n\nThis event is triggered when a shipment has been dispatched from the warehouse.\n\n### Consumer / Producer Diagram\n\n<Mermaid />\n\n<Schema />","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var u=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var s=(e,o,t)=>o in e?c(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,r=(e,o)=>{for(var t in o||(o={}))i.call(o,t)&&s(e,t,o[t]);if(a)for(var t of a(o))d.call(o,t)&&s(e,t,o[t]);return e},m=(e,o)=>p(e,u(o));var h=(e,o)=>{var t={};for(var n in e)i.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&a)for(var n of a(e))o.indexOf(n)<0&&d.call(e,n)&&(t[n]=e[n]);return t};const makeShortcode=e=>function(t){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},t))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(t){var n=t,{components:e}=n,o=h(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),o),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event is triggered when a shipment has been dispatched from the warehouse.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/2/2"},"loadedVersion":"latest"},"__N_SSG":true}