@eventcatalog/core 0.0.13 → 0.1.2

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 (253) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +39 -38
  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-detail.json +1 -0
  12. package/.next/next-server.js.nft.json +1 -1
  13. package/.next/prerender-manifest.json +1 -1
  14. package/.next/routes-manifest.json +1 -1
  15. package/.next/server/chunks/526.js +5 -5
  16. package/.next/server/chunks/565.js +6 -3
  17. package/.next/server/chunks/{959.js → 681.js} +126 -4
  18. package/.next/server/chunks/730.js +6 -7
  19. package/.next/server/chunks/938.js +18 -4
  20. package/.next/server/chunks/944.js +22 -27
  21. package/.next/server/pages/404.html +1 -1
  22. package/.next/server/pages/500.html +1 -1
  23. package/.next/server/pages/_app.js +14 -1
  24. package/.next/server/pages/events/AddedItemToCart/logs.html +1 -0
  25. package/.next/server/pages/events/AddedItemToCart/logs.json +1 -0
  26. package/.next/server/pages/events/AddedItemToCart/v/0.0.1.html +48 -0
  27. package/.next/server/pages/events/AddedItemToCart/v/0.0.1.json +1 -0
  28. package/.next/server/pages/events/AddedItemToCart/v/0.0.2.html +55 -0
  29. package/.next/server/pages/events/AddedItemToCart/v/0.0.2.json +1 -0
  30. package/.next/server/pages/events/AddedItemToCart.html +2 -2
  31. package/.next/server/pages/events/AddedItemToCart.json +1 -1
  32. package/.next/server/pages/events/OrderComplete/logs.html +1 -0
  33. package/.next/server/pages/events/OrderComplete/logs.json +1 -0
  34. package/.next/server/pages/events/OrderComplete.html +2 -2
  35. package/.next/server/pages/events/OrderComplete.json +1 -1
  36. package/.next/server/pages/events/OrderConfirmed/logs.html +1 -0
  37. package/.next/server/pages/events/OrderConfirmed/logs.json +1 -0
  38. package/.next/server/pages/events/OrderConfirmed.html +2 -2
  39. package/.next/server/pages/events/OrderConfirmed.json +1 -1
  40. package/.next/server/pages/events/OrderRequested/logs.html +1 -0
  41. package/.next/server/pages/events/OrderRequested/logs.json +1 -0
  42. package/.next/server/pages/events/OrderRequested.html +2 -2
  43. package/.next/server/pages/events/OrderRequested.json +1 -1
  44. package/.next/server/pages/events/PaymentProcessed/logs.html +1 -0
  45. package/.next/server/pages/events/PaymentProcessed/logs.json +1 -0
  46. package/.next/server/pages/events/PaymentProcessed.html +2 -2
  47. package/.next/server/pages/events/PaymentProcessed.json +1 -1
  48. package/.next/server/pages/events/RemovedItemFromCart/logs.html +1 -0
  49. package/.next/server/pages/events/RemovedItemFromCart/logs.json +1 -0
  50. package/.next/server/pages/events/RemovedItemFromCart.html +2 -2
  51. package/.next/server/pages/events/RemovedItemFromCart.json +1 -1
  52. package/.next/server/pages/events/ShipmentDelivered/logs.html +1 -0
  53. package/.next/server/pages/events/ShipmentDelivered/logs.json +1 -0
  54. package/.next/server/pages/events/ShipmentDelivered.html +2 -2
  55. package/.next/server/pages/events/ShipmentDelivered.json +1 -1
  56. package/.next/server/pages/events/ShipmentDispatched/logs.html +1 -0
  57. package/.next/server/pages/events/ShipmentDispatched/logs.json +1 -0
  58. package/.next/server/pages/events/ShipmentDispatched.html +2 -2
  59. package/.next/server/pages/events/ShipmentDispatched.json +1 -1
  60. package/.next/server/pages/events/ShipmentPrepared/logs.html +1 -0
  61. package/.next/server/pages/events/ShipmentPrepared/logs.json +1 -0
  62. package/.next/server/pages/events/ShipmentPrepared.html +2 -2
  63. package/.next/server/pages/events/ShipmentPrepared.json +1 -1
  64. package/.next/server/pages/events/[name]/logs.js +18 -4
  65. package/.next/server/pages/events/[name]/logs.js.nft.json +1 -1
  66. package/.next/server/pages/events/[name]/v/[version].js +25 -9
  67. package/.next/server/pages/events/[name]/v/[version].js.nft.json +1 -1
  68. package/.next/server/pages/events/[name].js +7 -7
  69. package/.next/server/pages/events/[name].js.nft.json +1 -1
  70. package/.next/server/pages/events.html +10 -0
  71. package/.next/server/pages/events.js +90 -38
  72. package/.next/server/pages/events.js.nft.json +1 -1
  73. package/.next/server/pages/events.json +1 -0
  74. package/.next/server/pages/index.html +1 -1
  75. package/.next/server/pages/overview.html +1 -0
  76. package/.next/server/pages/overview.js +12 -9
  77. package/.next/server/pages/overview.js.nft.json +1 -1
  78. package/.next/server/pages/overview.json +1 -0
  79. package/.next/server/pages/services/Basket Service.html +2 -2
  80. package/.next/server/pages/services/Basket Service.json +1 -1
  81. package/.next/server/pages/services/Data Lake.html +2 -2
  82. package/.next/server/pages/services/Data Lake.json +1 -1
  83. package/.next/server/pages/services/Payment Service.html +2 -2
  84. package/.next/server/pages/services/Payment Service.json +1 -1
  85. package/.next/server/pages/services/Shipping Service.html +2 -2
  86. package/.next/server/pages/services/Shipping Service.json +1 -1
  87. package/.next/server/pages/services/[name].js +5 -5
  88. package/.next/server/pages/services/[name].js.nft.json +1 -1
  89. package/.next/server/pages/services.html +5 -0
  90. package/.next/server/pages/services.js +68 -62
  91. package/.next/server/pages/services.js.nft.json +1 -1
  92. package/.next/server/pages/services.json +1 -0
  93. package/.next/server/pages/users/[id].js +20 -6
  94. package/.next/server/pages/users/[id].js.nft.json +1 -1
  95. package/.next/server/pages/users/dboyne.html +14 -0
  96. package/.next/server/pages/users/dboyne.json +1 -0
  97. package/.next/server/pages/users/mSmith.html +10 -0
  98. package/.next/server/pages/users/mSmith.json +1 -0
  99. package/.next/server/pages-manifest.json +0 -1
  100. package/.next/static/chunks/28-812913d1c0167bab.js +1 -0
  101. package/.next/static/chunks/{336-323c44d05b2ca502.js → 336-8b7da71a40e0c439.js} +1 -1
  102. package/.next/static/chunks/519-7c428c1e49c8e614.js +1 -0
  103. package/.next/static/chunks/873-8db237ddb872ef2b.js +1 -0
  104. package/.next/static/chunks/pages/_app-2b86b0fb5ed8c085.js +1 -0
  105. package/.next/static/chunks/pages/events/[name]/{logs-d159d7b82f44847f.js → logs-707da36de8222a98.js} +1 -1
  106. package/.next/static/chunks/pages/events/[name]/v/{[version]-963d3e8377b51e86.js → [version]-5652060e116d4a61.js} +1 -1
  107. package/.next/static/chunks/pages/events/{[name]-578828157369b5cd.js → [name]-146170e56a404524.js} +1 -1
  108. package/.next/static/chunks/pages/events-2bca09b458bde8ab.js +1 -0
  109. package/.next/static/chunks/pages/index-fe1a9e09c7f51e66.js +1 -0
  110. package/.next/static/chunks/pages/{overview-5ac749891cbe1922.js → overview-6bd5a86d5a28a942.js} +1 -1
  111. package/.next/static/chunks/pages/services/[name]-78378d531eb27bc2.js +1 -0
  112. package/.next/static/chunks/pages/services-1293e4d7df6174bf.js +1 -0
  113. package/.next/static/chunks/pages/users/[id]-5374b99d99fe576e.js +1 -0
  114. package/.next/static/chunks/{webpack-72d301851f531ed1.js → webpack-f27c5bb37992d94f.js} +1 -1
  115. package/.next/static/css/2532bb4d95ad483e.css +3 -0
  116. package/.next/static/xaomrFWnL7ZqGwNJOuVgS/_buildManifest.js +1 -0
  117. package/.next/static/{_xDKoQkSTiqn78cDjL9uS → xaomrFWnL7ZqGwNJOuVgS}/_middlewareManifest.js +0 -0
  118. package/.next/static/xaomrFWnL7ZqGwNJOuVgS/_ssgManifest.js +1 -0
  119. package/.next/trace +37 -37
  120. package/CHANGELOG.md +28 -0
  121. package/README.md +2 -1
  122. package/bin/eventcatalog.js +12 -0
  123. package/components/Grids/EventGrid.tsx +2 -2
  124. package/components/Grids/ServiceGrid.tsx +8 -1
  125. package/components/Header.tsx +4 -1
  126. package/components/NotFound/index.tsx +4 -3
  127. package/components/Sidebars/EventSidebar.tsx +45 -43
  128. package/components/Sidebars/ServiceSidebar.tsx +3 -3
  129. package/lib/events.ts +24 -0
  130. package/lib/graphs.ts +7 -3
  131. package/next.config.js +8 -0
  132. package/out/404.html +1 -0
  133. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/AddedItemToCart/logs.json +1 -0
  134. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/AddedItemToCart/v/0.0.1.json +1 -0
  135. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/AddedItemToCart/v/0.0.2.json +1 -0
  136. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/AddedItemToCart.json +1 -0
  137. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/OrderComplete/logs.json +1 -0
  138. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/OrderComplete.json +1 -0
  139. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/OrderConfirmed/logs.json +1 -0
  140. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/OrderConfirmed.json +1 -0
  141. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/OrderRequested/logs.json +1 -0
  142. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/OrderRequested.json +1 -0
  143. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/PaymentProcessed/logs.json +1 -0
  144. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/PaymentProcessed.json +1 -0
  145. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/RemovedItemFromCart/logs.json +1 -0
  146. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/RemovedItemFromCart.json +1 -0
  147. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/ShipmentDelivered/logs.json +1 -0
  148. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/ShipmentDelivered.json +1 -0
  149. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/ShipmentDispatched/logs.json +1 -0
  150. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/ShipmentDispatched.json +1 -0
  151. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/ShipmentPrepared/logs.json +1 -0
  152. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events/ShipmentPrepared.json +1 -0
  153. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/events.json +1 -0
  154. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/overview.json +1 -0
  155. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/services/Basket Service.json +1 -0
  156. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/services/Data Lake.json +1 -0
  157. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/services/Payment Service.json +1 -0
  158. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/services/Shipping Service.json +1 -0
  159. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/services.json +1 -0
  160. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/users/dboyne.json +1 -0
  161. package/out/_next/data/xaomrFWnL7ZqGwNJOuVgS/users/mSmith.json +1 -0
  162. package/out/_next/static/chunks/020d8314.aea2d24215754e7b.js +1 -0
  163. package/out/_next/static/chunks/176cb4e4-8a0f6f010ef8accb.js +1 -0
  164. package/out/_next/static/chunks/274-11c4d093341d7201.js +1 -0
  165. package/out/_next/static/chunks/28-812913d1c0167bab.js +1 -0
  166. package/out/_next/static/chunks/336-8b7da71a40e0c439.js +1 -0
  167. package/out/_next/static/chunks/364-3cb3c8cf1d3c95de.js +1 -0
  168. package/out/_next/static/chunks/519-7c428c1e49c8e614.js +1 -0
  169. package/out/_next/static/chunks/638.d570519ae49c92c8.js +1 -0
  170. package/out/_next/static/chunks/873-8db237ddb872ef2b.js +1 -0
  171. package/out/_next/static/chunks/962-d5070461f6d4a478.js +1 -0
  172. package/out/_next/static/chunks/framework-576ec6a1c1386453.js +1 -0
  173. package/out/_next/static/chunks/main-0289ecbd51cd4cb4.js +1 -0
  174. package/out/_next/static/chunks/pages/_app-2b86b0fb5ed8c085.js +1 -0
  175. package/out/_next/static/chunks/pages/_error-5a714c45c50a8db4.js +1 -0
  176. package/out/_next/static/chunks/pages/events/[name]/logs-707da36de8222a98.js +1 -0
  177. package/out/_next/static/chunks/pages/events/[name]/v/[version]-5652060e116d4a61.js +1 -0
  178. package/out/_next/static/chunks/pages/events/[name]-146170e56a404524.js +1 -0
  179. package/out/_next/static/chunks/pages/events-2bca09b458bde8ab.js +1 -0
  180. package/out/_next/static/chunks/pages/index-fe1a9e09c7f51e66.js +1 -0
  181. package/out/_next/static/chunks/pages/overview-6bd5a86d5a28a942.js +1 -0
  182. package/out/_next/static/chunks/pages/services/[name]-78378d531eb27bc2.js +1 -0
  183. package/out/_next/static/chunks/pages/services-1293e4d7df6174bf.js +1 -0
  184. package/out/_next/static/chunks/pages/users/[id]-5374b99d99fe576e.js +1 -0
  185. package/out/_next/static/chunks/polyfills-5cd94c89d3acac5f.js +1 -0
  186. package/out/_next/static/chunks/webpack-f27c5bb37992d94f.js +1 -0
  187. package/out/_next/static/css/2532bb4d95ad483e.css +3 -0
  188. package/out/_next/static/css/5eeed9cb243ce668.css +1 -0
  189. package/out/_next/static/xaomrFWnL7ZqGwNJOuVgS/_buildManifest.js +1 -0
  190. package/out/_next/static/xaomrFWnL7ZqGwNJOuVgS/_middlewareManifest.js +1 -0
  191. package/out/_next/static/xaomrFWnL7ZqGwNJOuVgS/_ssgManifest.js +1 -0
  192. package/out/events/AddedItemToCart/logs.html +1 -0
  193. package/out/events/AddedItemToCart/v/0.0.1.html +48 -0
  194. package/out/events/AddedItemToCart/v/0.0.2.html +55 -0
  195. package/out/events/AddedItemToCart.html +73 -0
  196. package/out/events/OrderComplete/logs.html +1 -0
  197. package/out/events/OrderComplete.html +48 -0
  198. package/out/events/OrderConfirmed/logs.html +1 -0
  199. package/out/events/OrderConfirmed.html +48 -0
  200. package/out/events/OrderRequested/logs.html +1 -0
  201. package/out/events/OrderRequested.html +48 -0
  202. package/out/events/PaymentProcessed/logs.html +1 -0
  203. package/out/events/PaymentProcessed.html +52 -0
  204. package/out/events/RemovedItemFromCart/logs.html +1 -0
  205. package/out/events/RemovedItemFromCart.html +55 -0
  206. package/out/events/ShipmentDelivered/logs.html +1 -0
  207. package/out/events/ShipmentDelivered.html +53 -0
  208. package/out/events/ShipmentDispatched/logs.html +1 -0
  209. package/out/events/ShipmentDispatched.html +52 -0
  210. package/out/events/ShipmentPrepared/logs.html +1 -0
  211. package/out/events/ShipmentPrepared.html +52 -0
  212. package/out/events.html +10 -0
  213. package/out/favicon.ico +0 -0
  214. package/out/index.html +1 -0
  215. package/out/logo-random.svg +114 -0
  216. package/out/logo.svg +44 -0
  217. package/out/opengraph.png +0 -0
  218. package/out/overview.html +1 -0
  219. package/out/services/Basket Service.html +11 -0
  220. package/out/services/Data Lake.html +12 -0
  221. package/out/services/Payment Service.html +10 -0
  222. package/out/services/Shipping Service.html +14 -0
  223. package/out/services.html +5 -0
  224. package/out/users/dboyne.html +14 -0
  225. package/out/users/mSmith.html +10 -0
  226. package/package.json +4 -3
  227. package/pages/events/[name]/logs.tsx +12 -3
  228. package/pages/events/[name]/v/[version].tsx +14 -2
  229. package/pages/events/[name].tsx +2 -2
  230. package/pages/events.tsx +75 -31
  231. package/pages/index.tsx +4 -2
  232. package/pages/overview.tsx +8 -5
  233. package/pages/services/[name].tsx +1 -1
  234. package/pages/services.tsx +28 -15
  235. package/pages/users/[id].tsx +14 -3
  236. package/scripts/move-schemas-for-download.js +59 -0
  237. package/.next/server/chunks/596.js +0 -98
  238. package/.next/server/pages/api/event/[name]/download.js +0 -64
  239. package/.next/server/pages/api/event/[name]/download.js.nft.json +0 -1
  240. package/.next/server/webpack-api-runtime.js +0 -160
  241. package/.next/static/_xDKoQkSTiqn78cDjL9uS/_buildManifest.js +0 -1
  242. package/.next/static/_xDKoQkSTiqn78cDjL9uS/_ssgManifest.js +0 -1
  243. package/.next/static/chunks/519-7f22292093abd7c3.js +0 -1
  244. package/.next/static/chunks/873-31046e43f178cc08.js +0 -1
  245. package/.next/static/chunks/954-4d4a09c3269dda3f.js +0 -1
  246. package/.next/static/chunks/pages/_app-1adc361d4508683f.js +0 -1
  247. package/.next/static/chunks/pages/events-a38d51b4dd9dd7cf.js +0 -1
  248. package/.next/static/chunks/pages/index-3eeab7e4014a02ea.js +0 -1
  249. package/.next/static/chunks/pages/services/[name]-881a79d880506d8a.js +0 -1
  250. package/.next/static/chunks/pages/services-bcc61898062e1bf4.js +0 -1
  251. package/.next/static/chunks/pages/users/[id]-a2fec953b3532a74.js +0 -1
  252. package/.next/static/css/de0d3fef7340ebfc.css +0 -3
  253. package/pages/api/event/[name]/download.js +0 -28
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @eventcatalog/core
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cc8eb2f`](https://github.com/boyney123/eventcatalog/commit/cc8eb2fe14501447206bdb8fe141a0575c753636) [#121](https://github.com/boyney123/eventcatalog/pull/121) Thanks [@otbe](https://github.com/otbe)! - Allow to configure "trailingSlash"
8
+
9
+ * [`dacd9eb`](https://github.com/boyney123/eventcatalog/commit/dacd9eb41e3f519341f32e60c4de27df5a9137b7) [#120](https://github.com/boyney123/eventcatalog/pull/120) Thanks [@thim81](https://github.com/thim81)! - feat: Hide owners section if the events has owners defined
10
+
11
+ ## 0.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [`23930c8`](https://github.com/boyney123/eventcatalog/commit/23930c8f4f4a9234e037473aaeccae3dafdfe385) [#114](https://github.com/boyney123/eventcatalog/pull/114) Thanks [@boyney123](https://github.com/boyney123)! - feat: adding search to events page
16
+
17
+ * [`e37ff4b`](https://github.com/boyney123/eventcatalog/commit/e37ff4b31c06779ae89f2b17beb14cb409d464e3) [#113](https://github.com/boyney123/eventcatalog/pull/113) Thanks [@otbe](https://github.com/otbe)! - Configure base path
18
+
19
+ ## 0.1.0
20
+
21
+ ### Minor Changes
22
+
23
+ - [`688e2da`](https://github.com/boyney123/eventcatalog/commit/688e2da9ade503e4276c6710c77e45f4652e19a1) [#111](https://github.com/boyney123/eventcatalog/pull/111) Thanks [@boyney123](https://github.com/boyney123)! - feat: catalog now staticlly exports rather than using server code
24
+
25
+ ## 0.0.14
26
+
27
+ ### Patch Changes
28
+
29
+ - [`7c23703`](https://github.com/boyney123/eventcatalog/commit/7c237039535d7f5d6f229396cf59eb5cbf5b0645) [#109](https://github.com/boyney123/eventcatalog/pull/109) Thanks [@boyney123](https://github.com/boyney123)! - fix: issue with long names for services and events rendering incorrectly
30
+
3
31
  ## 0.0.13
4
32
 
5
33
  ### Patch Changes
package/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  ## EventCatalog (core)
2
2
 
3
+
3
4
  This is the main EventCatalog application.
4
5
 
5
6
  To make changes or run this application core code, you will need to fork the EventCatalog repo and run the following command:
@@ -8,4 +9,4 @@ To make changes or run this application core code, you will need to fork the Eve
8
9
  npm run start:catalog
9
10
  ```
10
11
 
11
- 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`.
@@ -50,6 +50,12 @@ cli
50
50
  // copy any public assets over (from users to the lib itself)
51
51
  fs.copySync(path.join(projectDIR, 'public'), path.join(eventCatalogLibDir, 'public'));
52
52
 
53
+ // Move the schemas into public directory so we can download them from UI
54
+ execSync(`cross-env PROJECT_DIR=${projectDIR} npm run scripts:move-schema-for-download`, {
55
+ cwd: eventCatalogLibDir,
56
+ stdio: 'inherit',
57
+ });
58
+
53
59
  // build using nextjs
54
60
  execSync(`cross-env PROJECT_DIR=${projectDIR} npm run build`, {
55
61
  cwd: eventCatalogLibDir,
@@ -74,6 +80,12 @@ cli
74
80
 
75
81
  fs.copyFileSync(path.join(projectDIR, 'eventcatalog.config.js'), path.join(eventCatalogLibDir, 'eventcatalog.config.js'));
76
82
 
83
+ // Move the schemas into public directory so we can download them from UI
84
+ execSync(`cross-env PROJECT_DIR=${projectDIR} npm run scripts:move-schema-for-download`, {
85
+ cwd: eventCatalogLibDir,
86
+ stdio: 'inherit',
87
+ });
88
+
77
89
  execSync(`cross-env PROJECT_DIR=${projectDIR} npm run dev`, {
78
90
  cwd: eventCatalogLibDir,
79
91
  stdio: 'inherit',
@@ -38,7 +38,7 @@ function EventGrid({ events = [], showMermaidDiagrams = false }: EventGridProps)
38
38
  />
39
39
  <div className="w-full border-t border-r border-b border-gray-200 bg-white rounded-r-md ">
40
40
  <div className="p-4 text-sm space-y-2 flex flex-col justify-between h-full">
41
- <div className="text-gray-900 font-bold hover:text-gray-600">
41
+ <div className="text-gray-900 font-bold hover:text-gray-600 break-all">
42
42
  {event.name}
43
43
  <span className="ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800">
44
44
  v{event.version}
@@ -48,8 +48,8 @@ function EventGrid({ events = [], showMermaidDiagrams = false }: EventGridProps)
48
48
  Draft
49
49
  </span>
50
50
  )}
51
- <div className="text-gray-500 text-xs font-normal mt-2 ">{event.summary}</div>
52
51
  </div>
52
+ <div className="text-gray-500 text-xs font-normal mt-2 ">{event.summary}</div>
53
53
  {showMermaidDiagrams && (
54
54
  <div className="h-full items-center flex">
55
55
  <Mermaid source="event" data={event} rootNodeColor={getBackgroundColor(event.name)} />
@@ -4,14 +4,16 @@ import Link from 'next/link';
4
4
  import { CubeIcon } from '@heroicons/react/outline';
5
5
 
6
6
  import { Service } from '@eventcatalog/types';
7
+ import Mermaid from '@/components/Mermaid';
7
8
 
8
9
  import getBackgroundColor from '@/utils/random-bg';
9
10
 
10
11
  interface ServiceGridProps {
11
12
  services: Service[];
13
+ showMermaidDiagrams?: boolean;
12
14
  }
13
15
 
14
- function ServiceGrid({ services = [] }: ServiceGridProps) {
16
+ function ServiceGrid({ services = [], showMermaidDiagrams = false }: ServiceGridProps) {
15
17
  return (
16
18
  <ul className="mt-3 grid grid-cols-1 gap-5 md:grid-cols-2">
17
19
  {services.map((service) => {
@@ -38,6 +40,11 @@ function ServiceGrid({ services = [] }: ServiceGridProps) {
38
40
  )}
39
41
  <div className="text-gray-500 text-xs font-normal mt-2 line-clamp-3">{service.summary}</div>
40
42
  </div>
43
+ {showMermaidDiagrams && (
44
+ <div className="h-full items-center flex">
45
+ <Mermaid source="service" data={service} rootNodeColor={getBackgroundColor(service.name)} />
46
+ </div>
47
+ )}
41
48
  <div className="flex space-x-4 text-xs pt-2 relative bottom-0 left-0">
42
49
  <div className=" font-medium text-gray-500">
43
50
  <CubeIcon className="h-4 w-4 text-green-400 inline-block mr-2" aria-hidden="true" />
@@ -1,4 +1,5 @@
1
1
  import Link from 'next/link';
2
+ import getConfig from 'next/config';
2
3
  import { useRouter } from 'next/router';
3
4
  import { useConfig } from '@/hooks/EventCatalog';
4
5
 
@@ -16,6 +17,8 @@ export default function Example() {
16
17
  const { title } = useConfig();
17
18
  const router = useRouter();
18
19
 
20
+ const { publicRuntimeConfig: { basePath = '' } = {} } = getConfig();
21
+
19
22
  return (
20
23
  <div className="bg-gray-800">
21
24
  <div className="max-w-7xl mx-auto ">
@@ -24,7 +27,7 @@ export default function Example() {
24
27
  <div className="flex-shrink-0 flex items-center text-white font-bold">
25
28
  <Link href="/events">
26
29
  <a className="flex items-center">
27
- <img alt="logo" className="text-white w-8 inline-block mr-3" src="/logo.svg" />
30
+ <img alt="logo" className="text-white w-8 inline-block mr-3" src={`${basePath}/logo.svg`} />
28
31
  <span className="text-xl">{title}</span>
29
32
  </a>
30
33
  </Link>
@@ -16,8 +16,9 @@ export default function Example(props: NotFoundProps) {
16
16
  Failed to find {type}
17
17
  </p>
18
18
  <h1 className="mt-2 text-4xl font-extrabold text-gray-900 tracking-tight sm:text-5xl">Missing Documentation</h1>
19
- <p className="mt-2 text-lg font-medium text-gray-700 text-opacity-50">
20
- Documentation for {type} <span className="underline">{name}</span> is missing!
19
+ <p className="mt-2 text-lg font-medium text-gray-700 text-opacity-50 text-center ">
20
+ Documentation for {type} is missing!
21
+ <span className="block font-bold text-gray-800 underline break-all max-w-2xl mx-auto py-4">{name}</span>
21
22
  </p>
22
23
  <p className="mt-4 text-xs text-gray-400">Help the eco-system and add the documentation for others ❤️ </p>
23
24
  {editUrl && (
@@ -29,7 +30,7 @@ export default function Example(props: NotFoundProps) {
29
30
  rel="noreferrer"
30
31
  >
31
32
  <DocumentAddIcon className="-ml-1 mr-2 h-5 w-5" aria-hidden="true" />
32
- Add <span className="underline px-1">{name}</span> documentation
33
+ Add missing <span className="underline px-1">{type}</span> documentation
33
34
  </a>
34
35
  </div>
35
36
  )}
@@ -1,30 +1,27 @@
1
1
  import React from 'react';
2
2
  import Link from 'next/link';
3
+ import getConfig from 'next/config';
3
4
  import { CubeIcon, DownloadIcon, ExternalLinkIcon } from '@heroicons/react/outline';
4
5
  import type { Event } from '@eventcatalog/types';
5
- import fileDownload from 'js-file-download';
6
6
  import { useUser } from '@/hooks/EventCatalog';
7
7
 
8
8
  interface EventSideBarProps {
9
9
  event: Event;
10
10
  loadedVersion?: string;
11
+ isOldVersion?: boolean;
11
12
  }
12
13
 
13
- function EventSideBar({ event, loadedVersion }: EventSideBarProps) {
14
+ function EventSideBar({ event, loadedVersion, isOldVersion }: EventSideBarProps) {
14
15
  const { getUserById } = useUser();
15
16
 
16
- const { name: eventName, owners, producers, consumers, historicVersions, externalLinks } = event;
17
+ const { name: eventName, owners, producers, consumers, historicVersions, externalLinks, schema } = event;
18
+ const { publicRuntimeConfig: { basePath = '' } = {} } = getConfig();
17
19
 
18
- const handleDownload = async () => {
19
- try {
20
- const res = await fetch(`/api/event/${event.name}/download`);
21
- if (res.status === 404) throw new Error('Failed to find file');
22
- const { schema, fileName } = await res.json();
23
- fileDownload(schema, fileName);
24
- } catch (error) {
25
- // TODO: Maybe better error experince
26
- console.error(error);
27
- }
20
+ const getSchemaDownloadURL = () => {
21
+ if (!schema) return null;
22
+ return isOldVersion
23
+ ? `${basePath}/schemas/${eventName}/${loadedVersion}/schema.${schema.extension}`
24
+ : `${basePath}/schemas/${eventName}/schema.${schema.extension}`;
28
25
  };
29
26
 
30
27
  return (
@@ -144,40 +141,45 @@ function EventSideBar({ event, loadedVersion }: EventSideBarProps) {
144
141
  </ul>
145
142
  </div>
146
143
  </div> */}
147
- <div className="border-t border-gray-200 py-6 space-y-8">
148
- <div>
149
- <h2 className="text-sm font-medium text-gray-500">Event Owners</h2>
150
- <ul className="mt-4 leading-8 space-y-2">
151
- {owners.map((id) => {
152
- const user = getUserById(id);
144
+ {owners && owners.length > 0 && (
145
+ <div className="border-t border-gray-200 py-6 space-y-8">
146
+ <div>
147
+ <h2 className="text-sm font-medium text-gray-500">Event Owners</h2>
148
+ <ul className="mt-4 leading-8 space-y-2">
149
+ {owners.map((id) => {
150
+ const user = getUserById(id);
153
151
 
154
- if (!user) return null;
152
+ if (!user) return null;
155
153
 
156
- return (
157
- <li className="flex justify-start" key={id}>
158
- <Link href={`/users/${id}`}>
159
- <a className="flex items-center space-x-3">
160
- <div className="flex-shrink-0">
161
- <img className="h-5 w-5 rounded-full" src={user.avatarUrl} alt="" />
162
- </div>
163
- <div className="text-sm font-medium text-gray-900">{user.name}</div>
164
- </a>
165
- </Link>
166
- </li>
167
- );
168
- })}
169
- </ul>
154
+ return (
155
+ <li className="flex justify-start" key={id}>
156
+ <Link href={`/users/${id}`}>
157
+ <a className="flex items-center space-x-3">
158
+ <div className="flex-shrink-0">
159
+ <img className="h-5 w-5 rounded-full" src={user.avatarUrl} alt="" />
160
+ </div>
161
+ <div className="text-sm font-medium text-gray-900">{user.name}</div>
162
+ </a>
163
+ </Link>
164
+ </li>
165
+ );
166
+ })}
167
+ </ul>
168
+ </div>
170
169
  </div>
171
- </div>
170
+ )}
172
171
  <div className="border-t border-gray-200 py-6 space-y-1">
173
- <button
174
- type="button"
175
- className="hidden w-full md:inline-flex h-10 justify-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-200 bg-gray-800 hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-900"
176
- onClick={() => handleDownload()}
177
- >
178
- <DownloadIcon className="-ml-1 mr-2 h-5 w-5 text-gray-200" aria-hidden="true" />
179
- <span>Download Schema</span>
180
- </button>
172
+ {schema && (
173
+ <a
174
+ href={getSchemaDownloadURL()}
175
+ download={`${eventName}(${event.version}).${schema.extension}`}
176
+ className="hidden w-full md:inline-flex h-10 justify-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-200 bg-gray-800 hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-900"
177
+ >
178
+ <DownloadIcon className="-ml-1 mr-2 h-5 w-5 text-gray-200" aria-hidden="true" />
179
+ <span>Download Schema</span>
180
+ </a>
181
+ )}
182
+
181
183
  {historicVersions.length > 0 && (
182
184
  <Link href={`/events/${eventName}/logs`}>
183
185
  <a className="hidden w-full md:inline-flex h-10 justify-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-800 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-200">
@@ -42,13 +42,13 @@ function ServiceSidebar({ service }: ServiceSideBarProps) {
42
42
  </h2>
43
43
  <ul className="mt-2 leading-8">
44
44
  {publishes.map((event) => (
45
- <li className="inline" key={event.name}>
45
+ <li className="inline " key={event.name}>
46
46
  <Link href={`/events/${event.name}`}>
47
47
  <a href="#" className="relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5">
48
48
  <div className="absolute flex-shrink-0 flex items-center justify-center">
49
49
  <span className="h-1.5 w-1.5 rounded-full bg-indigo-500 animate animate-pulse" aria-hidden="true" />
50
50
  </div>
51
- <div className="ml-3.5 text-sm font-medium text-gray-900">{event.name}</div>
51
+ <div className="ml-3.5 text-sm font-medium text-gray-900 truncate max-w-xs">{event.name}</div>
52
52
  </a>
53
53
  </Link>
54
54
  </li>
@@ -70,7 +70,7 @@ function ServiceSidebar({ service }: ServiceSideBarProps) {
70
70
  <div className="absolute flex-shrink-0 flex items-center justify-center">
71
71
  <span className="h-1.5 w-1.5 rounded-full bg-green-500 animate animate-pulse" aria-hidden="true" />
72
72
  </div>
73
- <div className="ml-3.5 text-sm font-medium text-gray-900">{event.name}</div>
73
+ <div className="ml-3.5 text-sm font-medium text-gray-900 truncate max-w-xs">{event.name}</div>
74
74
  </a>
75
75
  </Link>
76
76
  </li>
package/lib/events.ts CHANGED
@@ -9,6 +9,7 @@ import { MarkdownFile } from '@/types/index';
9
9
  import { extentionToLanguageMap } from './file-reader';
10
10
 
11
11
  import { getLastModifiedDateOfFile, getSchemaFromDir, readMarkdownFile } from '@/lib/file-reader';
12
+ import { getAllServices } from './services';
12
13
 
13
14
  const parseEventFrontMatterIntoEvent = (eventFrontMatter: any): Event => {
14
15
  const { name, version, summary, producers = [], consumers = [], owners = [], externalLinks = [] } = eventFrontMatter;
@@ -141,6 +142,29 @@ export const getAllEvents = (): Event[] => {
141
142
  });
142
143
  };
143
144
 
145
+ export const getAllOwners = (): string[] => {
146
+ const allEvents = getAllEvents();
147
+ const allServices = getAllServices();
148
+ const allOwnersInEvents = allEvents.reduce((owners, event) => owners.concat(event.owners), []);
149
+ const allOwnersInServices = allServices.reduce((owners, service) => owners.concat(service.owners), []);
150
+ const allOwnersDocumented = allOwnersInEvents.concat(allOwnersInServices);
151
+ // @ts-ignore
152
+ return [...new Set(allOwnersDocumented)];
153
+ };
154
+
155
+ export const getAllEventsAndVersionsFlattened = () => {
156
+ const allEvents = getAllEvents();
157
+ return allEvents.reduce((eventsWithVersionsFlattened: any, event: Event) => {
158
+ // eventsWithVersionsFlattened.push({ eventName: event.name, version: event.version })
159
+
160
+ if (event.historicVersions) {
161
+ event.historicVersions.forEach((version) => eventsWithVersionsFlattened.push({ eventName: event.name, version }));
162
+ }
163
+
164
+ return eventsWithVersionsFlattened;
165
+ }, []);
166
+ };
167
+
144
168
  export const getEventByName = async (eventName: string, version?: string): Promise<{ event: Event; markdown: MarkdownFile }> => {
145
169
  const eventsDir = path.join(process.env.PROJECT_DIR, 'events');
146
170
  const eventDirectory = path.join(eventsDir, eventName);
package/lib/graphs.ts CHANGED
@@ -1,11 +1,15 @@
1
1
  import type { Event, Service } from '@eventcatalog/types';
2
2
 
3
+ const MAX_LENGTH_FOR_NODES = '50';
4
+
5
+ const truncateNode = (value) => (value.length > MAX_LENGTH_FOR_NODES ? `${value.substring(0, MAX_LENGTH_FOR_NODES)}...` : value);
6
+
3
7
  const buildMermaid = (centerNode, leftNodes, rightNodes, rootNodeColor) => {
4
8
  // mermaid does not work with spaces in nodes
5
9
  const removeSpacesInNames = (nodes) => nodes.map((node) => node.replace(/ /g, '_'));
6
- const lNodes = removeSpacesInNames(leftNodes);
7
- const rNodes = removeSpacesInNames(rightNodes);
8
- const nodeValue = centerNode.replace(/ /g, '_');
10
+ const lNodes = removeSpacesInNames(leftNodes).map(truncateNode);
11
+ const rNodes = removeSpacesInNames(rightNodes).map(truncateNode);
12
+ const nodeValue = truncateNode(centerNode.replace(/ /g, '_'));
9
13
 
10
14
  return `flowchart LR
11
15
  ${lNodes.map((node) => `${node}:::producer-->${nodeValue}:::event\n`).join('')}
package/next.config.js CHANGED
@@ -1,3 +1,11 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
2
+ const config = require('./eventcatalog.config');
3
+
1
4
  module.exports = {
2
5
  reactStrictMode: true,
6
+ basePath: config.basePath,
7
+ trailingSlash: config.trailingSlash,
8
+ publicRuntimeConfig: {
9
+ basePath: config.basePath,
10
+ },
3
11
  };
package/out/404.html ADDED
@@ -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/2532bb4d95ad483e.css" as="style"/><link rel="stylesheet" href="/_next/static/css/2532bb4d95ad483e.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-f27c5bb37992d94f.js" defer=""></script><script src="/_next/static/chunks/framework-576ec6a1c1386453.js" defer=""></script><script src="/_next/static/chunks/main-0289ecbd51cd4cb4.js" defer=""></script><script src="/_next/static/chunks/pages/_app-2b86b0fb5ed8c085.js" defer=""></script><script src="/_next/static/chunks/pages/_error-5a714c45c50a8db4.js" defer=""></script><script src="/_next/static/xaomrFWnL7ZqGwNJOuVgS/_buildManifest.js" defer=""></script><script src="/_next/static/xaomrFWnL7ZqGwNJOuVgS/_ssgManifest.js" defer=""></script><script src="/_next/static/xaomrFWnL7ZqGwNJOuVgS/_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="/events"><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":"xaomrFWnL7ZqGwNJOuVgS","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
@@ -0,0 +1 @@
1
+ {"pageProps":{"changes":[{"versions":["0.0.2","0.0.3"],"changelog":{"content":"Changed `quantity` maximum to 1000.","source":{"compiledSource":"var s=Object.defineProperty,C=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;var m=(n,t,o)=>t in n?s(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,p=(n,t)=>{for(var o in t||(t={}))u.call(t,o)&&m(n,o,t[o]);if(a)for(var o of a(t))i.call(t,o)&&m(n,o,t[o]);return n},r=(n,t)=>C(n,D(t));var y=(n,t)=>{var o={};for(var e in n)u.call(n,e)&&t.indexOf(e)<0&&(o[e]=n[e]);if(n!=null&&a)for(var e of a(n))t.indexOf(e)<0&&i.call(n,e)&&(o[e]=n[e]);return o};const layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var e=o,{components:n}=e,t=y(e,[\"components\"]);return mdx(MDXLayout,r(p(p({},layoutProps),t),{components:n,mdxType:\"MDXLayout\"}),mdx(\"p\",null,\"Changed \",mdx(\"inlineCode\",{parentName:\"p\"},\"quantity\"),\" maximum to 1000.\"))}MDXContent.isMDXComponent=!0;\n","scope":{}}},"value":"===================================================================\n--- schema.json (0.0.2)\n+++ schema.json (0.0.3)\n@@ -36,9 +36,9 @@\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+ \"maximum\": 1000,\n \"default\": 1\n }\n }\n }\n"},{"versions":["0.0.1","0.0.2"],"changelog":{"content":"Added `quantity` into the schema.","source":{"compiledSource":"var y=Object.defineProperty,c=Object.defineProperties;var m=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var r=(n,t,e)=>t in n?y(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,a=(n,t)=>{for(var e in t||(t={}))i.call(t,e)&&r(n,e,t[e]);if(p)for(var e of p(t))u.call(t,e)&&r(n,e,t[e]);return n},d=(n,t)=>c(n,m(t));var s=(n,t)=>{var e={};for(var o in n)i.call(n,o)&&t.indexOf(o)<0&&(e[o]=n[o]);if(n!=null&&p)for(var o of p(n))t.indexOf(o)<0&&u.call(n,o)&&(e[o]=n[o]);return e};const layoutProps={},MDXLayout=\"wrapper\";function MDXContent(e){var o=e,{components:n}=o,t=s(o,[\"components\"]);return mdx(MDXLayout,d(a(a({},layoutProps),t),{components:n,mdxType:\"MDXLayout\"}),mdx(\"p\",null,\"Added \",mdx(\"inlineCode\",{parentName:\"p\"},\"quantity\"),\" into the schema.\"))}MDXContent.isMDXComponent=!0;\n","scope":{}}},"value":"===================================================================\n--- schema.json (0.0.1)\n+++ schema.json (0.0.2)\n@@ -31,8 +31,15 @@\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"}],"name":"AddedItemToCart","currentVersion":"0.0.3"},"__N_SSG":true}
@@ -0,0 +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/27"},"loadedVersion":"0.0.1"},"__N_SSG":true}
@@ -0,0 +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/27"},"loadedVersion":"0.0.2"},"__N_SSG":true}
@@ -0,0 +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/27"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"changes":[],"name":"OrderComplete","currentVersion":"0.0.1"},"__N_SSG":true}
@@ -0,0 +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/27"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"changes":[],"name":"OrderConfirmed","currentVersion":"0.0.1"},"__N_SSG":true}
@@ -0,0 +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/27"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"changes":[],"name":"OrderRequested","currentVersion":"0.0.1"},"__N_SSG":true}
@@ -0,0 +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/27"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"changes":[],"name":"PaymentProcessed","currentVersion":"0.0.1"},"__N_SSG":true}
@@ -0,0 +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/27"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"changes":[],"name":"RemovedItemFromCart","currentVersion":"0.0.1"},"__N_SSG":true}
@@ -0,0 +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/27"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"changes":[],"name":"ShipmentDelivered","currentVersion":"0.0.1"},"__N_SSG":true}
@@ -0,0 +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/27"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"changes":[],"name":"ShipmentDispatched","currentVersion":"0.0.1"},"__N_SSG":true}
@@ -0,0 +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/27"},"loadedVersion":"latest"},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"changes":[],"name":"ShipmentPrepared","currentVersion":"0.0.1"},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"event":{"name":"ShipmentPrepared","version":"0.0.1","summary":"Event represents when a shipment has finished being prepared and is ready to be dispatched.\n","producers":["Shipping Service"],"consumers":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[],"schema":{"snippet":"{\n \"$id\": \"https://example.com/ShipmentPrepared.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"ShipmentPrepared\",\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 finished being prepared. \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,n)=>o in e?c(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,a=(e,o)=>{for(var n in o||(o={}))i.call(o,n)&&s(e,n,o[n]);if(r)for(var n of r(o))d.call(o,n)&&s(e,n,o[n]);return e},m=(e,o)=>p(e,u(o));var h=(e,o)=>{var n={};for(var t in e)i.call(e,t)&&o.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&r)for(var t of r(e))o.indexOf(t)<0&&d.call(e,t)&&(n[t]=e[t]);return n};const makeShortcode=e=>function(n){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",a({},n))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(n){var t=n,{components:e}=t,o=h(t,[\"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 a shipment has finished being prepared. \"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/1/27"},"loadedVersion":"latest"},"__N_SSG":true}