@eventcatalog/core 0.2.6 → 0.2.9

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 (223) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +39 -39
  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/webpack/client-production/0.pack +0 -0
  7. package/.next/cache/webpack/client-production/index.pack +0 -0
  8. package/.next/cache/webpack/server-production/0.pack +0 -0
  9. package/.next/cache/webpack/server-production/index.pack +0 -0
  10. package/.next/prerender-manifest.json +1 -1
  11. package/.next/routes-manifest.json +1 -1
  12. package/.next/server/chunks/484.js +94 -58
  13. package/.next/server/pages/404.html +1 -1
  14. package/.next/server/pages/500.html +1 -1
  15. package/.next/server/pages/domains/Orders/events/OrderComplete/logs.html +1 -0
  16. package/.next/server/pages/domains/Orders/events/OrderComplete/logs.json +1 -0
  17. package/.next/server/pages/domains/Orders/events/OrderComplete.html +40 -0
  18. package/.next/server/pages/domains/Orders/events/OrderComplete.json +1 -0
  19. package/.next/server/pages/domains/Orders/events/OrderConfirmed/logs.html +1 -0
  20. package/.next/server/pages/domains/Orders/events/OrderConfirmed/logs.json +1 -0
  21. package/.next/server/pages/domains/Orders/events/OrderConfirmed.html +40 -0
  22. package/.next/server/pages/domains/Orders/events/OrderConfirmed.json +1 -0
  23. package/.next/server/pages/domains/Orders/events/OrderRequested/logs.html +1 -0
  24. package/.next/server/pages/domains/Orders/events/OrderRequested/logs.json +1 -0
  25. package/.next/server/pages/domains/Orders/events/OrderRequested.html +40 -0
  26. package/.next/server/pages/domains/Orders/events/OrderRequested.json +1 -0
  27. package/.next/server/pages/domains/Orders/services/Orders Service.html +2 -0
  28. package/.next/server/pages/domains/Orders/services/Orders Service.json +1 -0
  29. package/.next/server/pages/domains/Orders.html +2 -0
  30. package/.next/server/pages/domains/Orders.json +1 -0
  31. package/.next/server/pages/domains/Shopping/events/AddedItemToCart/logs.html +1 -1
  32. package/.next/server/pages/domains/Shopping/events/AddedItemToCart/v/0.0.1.html +2 -2
  33. package/.next/server/pages/domains/Shopping/events/AddedItemToCart/v/0.0.1.json +1 -1
  34. package/.next/server/pages/domains/Shopping/events/AddedItemToCart/v/0.0.2.html +2 -2
  35. package/.next/server/pages/domains/Shopping/events/AddedItemToCart/v/0.0.2.json +1 -1
  36. package/.next/server/pages/domains/Shopping/events/AddedItemToCart.html +2 -2
  37. package/.next/server/pages/domains/Shopping/events/AddedItemToCart.json +1 -1
  38. package/.next/server/pages/domains/Shopping/events/RemovedItemFromCart/logs.html +1 -1
  39. package/.next/server/pages/domains/Shopping/events/RemovedItemFromCart.html +2 -2
  40. package/.next/server/pages/domains/Shopping/events/RemovedItemFromCart.json +1 -1
  41. package/.next/server/pages/domains/Shopping.html +2 -2
  42. package/.next/server/pages/domains/Shopping.json +1 -1
  43. package/.next/server/pages/domains.html +3 -2
  44. package/.next/server/pages/domains.json +1 -1
  45. package/.next/server/pages/events/PaymentProcessed/logs.html +1 -1
  46. package/.next/server/pages/events/PaymentProcessed/logs.json +1 -1
  47. package/.next/server/pages/events/PaymentProcessed.html +2 -2
  48. package/.next/server/pages/events/PaymentProcessed.json +1 -1
  49. package/.next/server/pages/events/ShipmentDelivered/logs.html +1 -1
  50. package/.next/server/pages/events/ShipmentDelivered/logs.json +1 -1
  51. package/.next/server/pages/events/ShipmentDelivered.html +2 -2
  52. package/.next/server/pages/events/ShipmentDelivered.json +1 -1
  53. package/.next/server/pages/events/ShipmentDispatched/logs.html +1 -1
  54. package/.next/server/pages/events/ShipmentDispatched/logs.json +1 -1
  55. package/.next/server/pages/events/ShipmentDispatched.html +2 -2
  56. package/.next/server/pages/events/ShipmentDispatched.json +1 -1
  57. package/.next/server/pages/events/ShipmentPrepared/logs.html +1 -1
  58. package/.next/server/pages/events/ShipmentPrepared/logs.json +1 -1
  59. package/.next/server/pages/events/ShipmentPrepared.html +2 -2
  60. package/.next/server/pages/events/ShipmentPrepared.json +1 -1
  61. package/.next/server/pages/events.html +6 -6
  62. package/.next/server/pages/events.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.json +1 -1
  66. package/.next/server/pages/services/Orders Service.html +1 -0
  67. package/.next/server/pages/services/Orders Service.json +1 -0
  68. package/.next/server/pages/services/Payment Service.html +2 -2
  69. package/.next/server/pages/services/Payment Service.json +1 -1
  70. package/.next/server/pages/services/Shipping Service.html +2 -2
  71. package/.next/server/pages/services/Shipping Service.json +1 -1
  72. package/.next/server/pages/services.html +3 -2
  73. package/.next/server/pages/services.json +1 -1
  74. package/.next/server/pages/users/dboyne.html +10 -8
  75. package/.next/server/pages/users/dboyne.json +1 -1
  76. package/.next/server/pages/users/mSmith.html +8 -7
  77. package/.next/server/pages/users/mSmith.json +1 -1
  78. package/.next/server/pages/visualiser.html +5 -3
  79. package/.next/server/pages/visualiser.js +75 -13
  80. package/.next/server/pages/visualiser.json +1 -1
  81. package/.next/static/{uU7KyJvHmITLw1dYsKWVm → 053__bBTIZvPKam2MmLPC}/_buildManifest.js +1 -1
  82. package/.next/static/{uU7KyJvHmITLw1dYsKWVm → 053__bBTIZvPKam2MmLPC}/_middlewareManifest.js +0 -0
  83. package/.next/static/{uU7KyJvHmITLw1dYsKWVm → 053__bBTIZvPKam2MmLPC}/_ssgManifest.js +0 -0
  84. package/.next/static/chunks/109-7e910ba645edff2d.js +1 -0
  85. package/.next/static/chunks/b744740b-594b36f2f589c271.js +1 -0
  86. package/.next/static/chunks/pages/visualiser-5ba1bdaa135986ba.js +1 -0
  87. package/.next/static/chunks/{webpack-7adfcbd8c9cf8b5d.js → webpack-e5e3b0fb197a3a00.js} +1 -1
  88. package/.next/static/css/0a26a4437a9215b6.css +3 -0
  89. package/.next/trace +57 -57
  90. package/CHANGELOG.md +18 -0
  91. package/components/Mdx/NodeGraph/GraphElements.tsx +35 -8
  92. package/components/Mdx/NodeGraph/GraphLayout.ts +50 -2
  93. package/components/Mdx/NodeGraph/NodeGraph.tsx +24 -41
  94. package/components/Mdx/NodeGraph/__tests__/__snapshots__/GraphElements.spec.ts.snap +37 -11
  95. package/components/Mdx/NodeGraph/__tests__/__snapshots__/GraphLayout.spec.ts.snap +6 -6
  96. package/out/404/index.html +1 -1
  97. package/out/_next/data/053__bBTIZvPKam2MmLPC/domains/Orders/events/OrderComplete/logs.json +1 -0
  98. package/out/_next/data/053__bBTIZvPKam2MmLPC/domains/Orders/events/OrderComplete.json +1 -0
  99. package/out/_next/data/053__bBTIZvPKam2MmLPC/domains/Orders/events/OrderConfirmed/logs.json +1 -0
  100. package/out/_next/data/053__bBTIZvPKam2MmLPC/domains/Orders/events/OrderConfirmed.json +1 -0
  101. package/out/_next/data/053__bBTIZvPKam2MmLPC/domains/Orders/events/OrderRequested/logs.json +1 -0
  102. package/out/_next/data/053__bBTIZvPKam2MmLPC/domains/Orders/events/OrderRequested.json +1 -0
  103. package/out/_next/data/053__bBTIZvPKam2MmLPC/domains/Orders/services/Orders Service.json +1 -0
  104. package/out/_next/data/053__bBTIZvPKam2MmLPC/domains/Orders.json +1 -0
  105. package/out/_next/data/{uU7KyJvHmITLw1dYsKWVm → 053__bBTIZvPKam2MmLPC}/domains/Shopping/events/AddedItemToCart/logs.json +0 -0
  106. package/out/_next/data/{uU7KyJvHmITLw1dYsKWVm → 053__bBTIZvPKam2MmLPC}/domains/Shopping/events/AddedItemToCart/v/0.0.1.json +1 -1
  107. package/out/_next/data/{uU7KyJvHmITLw1dYsKWVm → 053__bBTIZvPKam2MmLPC}/domains/Shopping/events/AddedItemToCart/v/0.0.2.json +1 -1
  108. package/out/_next/data/{uU7KyJvHmITLw1dYsKWVm → 053__bBTIZvPKam2MmLPC}/domains/Shopping/events/AddedItemToCart.json +1 -1
  109. package/out/_next/data/{uU7KyJvHmITLw1dYsKWVm → 053__bBTIZvPKam2MmLPC}/domains/Shopping/events/RemovedItemFromCart/logs.json +0 -0
  110. package/out/_next/data/{uU7KyJvHmITLw1dYsKWVm → 053__bBTIZvPKam2MmLPC}/domains/Shopping/events/RemovedItemFromCart.json +1 -1
  111. package/out/_next/data/053__bBTIZvPKam2MmLPC/domains/Shopping.json +1 -0
  112. package/out/_next/data/053__bBTIZvPKam2MmLPC/domains.json +1 -0
  113. package/out/_next/data/053__bBTIZvPKam2MmLPC/events/PaymentProcessed/logs.json +1 -0
  114. package/out/_next/data/053__bBTIZvPKam2MmLPC/events/PaymentProcessed.json +1 -0
  115. package/out/_next/data/053__bBTIZvPKam2MmLPC/events/ShipmentDelivered/logs.json +1 -0
  116. package/out/_next/data/053__bBTIZvPKam2MmLPC/events/ShipmentDelivered.json +1 -0
  117. package/out/_next/data/053__bBTIZvPKam2MmLPC/events/ShipmentDispatched/logs.json +1 -0
  118. package/out/_next/data/053__bBTIZvPKam2MmLPC/events/ShipmentDispatched.json +1 -0
  119. package/out/_next/data/053__bBTIZvPKam2MmLPC/events/ShipmentPrepared/logs.json +1 -0
  120. package/out/_next/data/053__bBTIZvPKam2MmLPC/events/ShipmentPrepared.json +1 -0
  121. package/out/_next/data/053__bBTIZvPKam2MmLPC/events.json +1 -0
  122. package/out/_next/data/053__bBTIZvPKam2MmLPC/overview.json +1 -0
  123. package/out/_next/data/053__bBTIZvPKam2MmLPC/services/Orders Service.json +1 -0
  124. package/out/_next/data/053__bBTIZvPKam2MmLPC/services/Payment Service.json +1 -0
  125. package/out/_next/data/053__bBTIZvPKam2MmLPC/services/Shipping Service.json +1 -0
  126. package/out/_next/data/053__bBTIZvPKam2MmLPC/services.json +1 -0
  127. package/out/_next/data/053__bBTIZvPKam2MmLPC/users/dboyne.json +1 -0
  128. package/out/_next/data/053__bBTIZvPKam2MmLPC/users/mSmith.json +1 -0
  129. package/out/_next/data/053__bBTIZvPKam2MmLPC/visualiser.json +1 -0
  130. package/out/_next/static/{uU7KyJvHmITLw1dYsKWVm → 053__bBTIZvPKam2MmLPC}/_buildManifest.js +1 -1
  131. package/out/_next/static/{uU7KyJvHmITLw1dYsKWVm → 053__bBTIZvPKam2MmLPC}/_middlewareManifest.js +0 -0
  132. package/out/_next/static/{uU7KyJvHmITLw1dYsKWVm → 053__bBTIZvPKam2MmLPC}/_ssgManifest.js +0 -0
  133. package/out/_next/static/chunks/109-7e910ba645edff2d.js +1 -0
  134. package/out/_next/static/chunks/b744740b-594b36f2f589c271.js +1 -0
  135. package/out/_next/static/chunks/pages/visualiser-5ba1bdaa135986ba.js +1 -0
  136. package/out/_next/static/chunks/{webpack-7adfcbd8c9cf8b5d.js → webpack-e5e3b0fb197a3a00.js} +1 -1
  137. package/out/_next/static/css/0a26a4437a9215b6.css +3 -0
  138. package/out/domains/Orders/events/OrderComplete/index.html +40 -0
  139. package/out/domains/Orders/events/OrderComplete/logs/index.html +1 -0
  140. package/out/domains/Orders/events/OrderConfirmed/index.html +40 -0
  141. package/out/domains/Orders/events/OrderConfirmed/logs/index.html +1 -0
  142. package/out/domains/Orders/events/OrderRequested/index.html +40 -0
  143. package/out/domains/Orders/events/OrderRequested/logs/index.html +1 -0
  144. package/out/domains/Orders/index.html +2 -0
  145. package/out/domains/Orders/services/Orders Service/index.html +2 -0
  146. package/out/domains/Shopping/events/AddedItemToCart/index.html +2 -2
  147. package/out/domains/Shopping/events/AddedItemToCart/logs/index.html +1 -1
  148. package/out/domains/Shopping/events/AddedItemToCart/v/0.0.1/index.html +2 -2
  149. package/out/domains/Shopping/events/AddedItemToCart/v/0.0.2/index.html +2 -2
  150. package/out/domains/Shopping/events/RemovedItemFromCart/index.html +2 -2
  151. package/out/domains/Shopping/events/RemovedItemFromCart/logs/index.html +1 -1
  152. package/out/domains/Shopping/index.html +2 -2
  153. package/out/domains/index.html +3 -2
  154. package/out/events/PaymentProcessed/index.html +2 -2
  155. package/out/events/PaymentProcessed/logs/index.html +1 -1
  156. package/out/events/ShipmentDelivered/index.html +2 -2
  157. package/out/events/ShipmentDelivered/logs/index.html +1 -1
  158. package/out/events/ShipmentDispatched/index.html +2 -2
  159. package/out/events/ShipmentDispatched/logs/index.html +1 -1
  160. package/out/events/ShipmentPrepared/index.html +2 -2
  161. package/out/events/ShipmentPrepared/logs/index.html +1 -1
  162. package/out/events/index.html +6 -6
  163. package/out/index.html +1 -1
  164. package/out/overview/index.html +1 -1
  165. package/out/services/Orders Service/index.html +1 -0
  166. package/out/services/Payment Service/index.html +2 -2
  167. package/out/services/Shipping Service/index.html +2 -2
  168. package/out/services/index.html +3 -2
  169. package/out/users/dboyne/index.html +10 -8
  170. package/out/users/mSmith/index.html +8 -7
  171. package/out/visualiser/index.html +5 -3
  172. package/package.json +1 -1
  173. package/pages/visualiser.tsx +55 -3
  174. package/.next/server/pages/events/OrderComplete/logs.html +0 -1
  175. package/.next/server/pages/events/OrderComplete/logs.json +0 -1
  176. package/.next/server/pages/events/OrderComplete.html +0 -40
  177. package/.next/server/pages/events/OrderComplete.json +0 -1
  178. package/.next/server/pages/events/OrderConfirmed/logs.html +0 -1
  179. package/.next/server/pages/events/OrderConfirmed/logs.json +0 -1
  180. package/.next/server/pages/events/OrderConfirmed.html +0 -40
  181. package/.next/server/pages/events/OrderConfirmed.json +0 -1
  182. package/.next/server/pages/events/OrderRequested/logs.html +0 -1
  183. package/.next/server/pages/events/OrderRequested/logs.json +0 -1
  184. package/.next/server/pages/events/OrderRequested.html +0 -40
  185. package/.next/server/pages/events/OrderRequested.json +0 -1
  186. package/.next/static/chunks/109-c7517eb568876b36.js +0 -1
  187. package/.next/static/chunks/b744740b-32af777c67e2c3ff.js +0 -1
  188. package/.next/static/chunks/pages/visualiser-d4ac3f309ff00b17.js +0 -1
  189. package/.next/static/css/70ede87da43120f8.css +0 -3
  190. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/domains/Shopping.json +0 -1
  191. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/domains.json +0 -1
  192. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events/OrderComplete/logs.json +0 -1
  193. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events/OrderComplete.json +0 -1
  194. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events/OrderConfirmed/logs.json +0 -1
  195. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events/OrderConfirmed.json +0 -1
  196. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events/OrderRequested/logs.json +0 -1
  197. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events/OrderRequested.json +0 -1
  198. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events/PaymentProcessed/logs.json +0 -1
  199. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events/PaymentProcessed.json +0 -1
  200. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events/ShipmentDelivered/logs.json +0 -1
  201. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events/ShipmentDelivered.json +0 -1
  202. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events/ShipmentDispatched/logs.json +0 -1
  203. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events/ShipmentDispatched.json +0 -1
  204. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events/ShipmentPrepared/logs.json +0 -1
  205. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events/ShipmentPrepared.json +0 -1
  206. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/events.json +0 -1
  207. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/overview.json +0 -1
  208. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/services/Payment Service.json +0 -1
  209. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/services/Shipping Service.json +0 -1
  210. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/services.json +0 -1
  211. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/users/dboyne.json +0 -1
  212. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/users/mSmith.json +0 -1
  213. package/out/_next/data/uU7KyJvHmITLw1dYsKWVm/visualiser.json +0 -1
  214. package/out/_next/static/chunks/109-c7517eb568876b36.js +0 -1
  215. package/out/_next/static/chunks/b744740b-32af777c67e2c3ff.js +0 -1
  216. package/out/_next/static/chunks/pages/visualiser-d4ac3f309ff00b17.js +0 -1
  217. package/out/_next/static/css/70ede87da43120f8.css +0 -3
  218. package/out/events/OrderComplete/index.html +0 -40
  219. package/out/events/OrderComplete/logs/index.html +0 -1
  220. package/out/events/OrderConfirmed/index.html +0 -40
  221. package/out/events/OrderConfirmed/logs/index.html +0 -1
  222. package/out/events/OrderRequested/index.html +0 -40
  223. package/out/events/OrderRequested/logs/index.html +0 -1
@@ -0,0 +1 @@
1
+ {"pageProps":{"notFound":true,"service":{"name":"Orders Service"}},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"service":{"name":"Payment Service","summary":"Event based application that integrates with Stripe.\n","domain":null,"owners":["dboyne"],"repository":{},"tags":[],"externalLinks":[],"publishes":[{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","domain":null,"producerNames":["Payment Service"],"consumerNames":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"OrderRequested","version":"0.0.1","summary":"Holds information about the customers order.\n","domain":"Orders","producerNames":["Basket Service"],"consumerNames":["Payment Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]},"markdown":{"content":"\nThe payment service is our own internal payment service that listens to events from stripe and handles them within our own domain. \n\nWe use Stripe to handle services and use this Payment service to enrich events for internal use.\n\n<NodeGraph />","lastModifiedDate":"2022/3/7","source":{"compiledSource":"var u=Object.defineProperty,h=Object.defineProperties;var m=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var i=(e,o,t)=>o in e?u(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)&&i(e,t,o[t]);if(r)for(var t of r(o))p.call(o,t)&&i(e,t,o[t]);return e},d=(e,o)=>h(e,m(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&&p.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))},NodeGraph=makeShortcode(\"NodeGraph\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(t){var n=t,{components:e}=n,o=c(n,[\"components\"]);return mdx(MDXLayout,d(s(s({},layoutProps),o),{components:e,mdxType:\"MDXLayout\"}),mdx(\"p\",null,\"The payment service is our own internal payment service that listens to events from stripe and handles them within our own domain. \"),mdx(\"p\",null,\"We use Stripe to handle services and use this Payment service to enrich events for internal use.\"),mdx(NodeGraph,{mdxType:\"NodeGraph\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}}},"breadCrumbs":[{"name":"Services","href":"/services","current":false},{"name":"Payment Service","href":"/services/Payment Service","current":true}]},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"service":{"name":"Shipping Service","summary":"Event based application that handles processing of shipments, preparing them and dispatching them.\n","domain":null,"owners":["dboyne"],"repository":{"language":"JavaScript","url":"https://github.com/boyney123/pretend-shipping-service"},"tags":[],"externalLinks":[],"publishes":[{"name":"ShipmentDelivered","version":"0.0.1","summary":"Event represents when a shipment has been delivered and received.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Order Service","Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentDispatched","version":"0.0.1","summary":"Event represents when a shipment has been dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentPrepared","version":"0.0.1","summary":"Event represents when a shipment has finished being prepared and is ready to be dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentDispatched","version":"0.0.1","summary":"Event represents when a shipment has been dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentPrepared","version":"0.0.1","summary":"Event represents when a shipment has finished being prepared and is ready to be dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]},"markdown":{"content":"\nEvent based service that allows you to create shipments, prepare them and dispatch them. This service handles the `Shipment` domain.\n\nThis service will also generate Async events for downstream services.\n\n<NodeGraph />\n","lastModifiedDate":"2022/3/7","source":{"compiledSource":"var h=Object.defineProperty,m=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var s=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var i=(e,o,t)=>o in e?h(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,a=(e,o)=>{for(var t in o||(o={}))s.call(o,t)&&i(e,t,o[t]);if(r)for(var t of r(o))p.call(o,t)&&i(e,t,o[t]);return e},d=(e,o)=>m(e,l(o));var c=(e,o)=>{var t={};for(var n in e)s.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&&p.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))},NodeGraph=makeShortcode(\"NodeGraph\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(t){var n=t,{components:e}=n,o=c(n,[\"components\"]);return mdx(MDXLayout,d(a(a({},layoutProps),o),{components:e,mdxType:\"MDXLayout\"}),mdx(\"p\",null,\"Event based service that allows you to create shipments, prepare them and dispatch them. This service handles the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Shipment\"),\" domain.\"),mdx(\"p\",null,\"This service will also generate Async events for downstream services.\"),mdx(NodeGraph,{mdxType:\"NodeGraph\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}}},"breadCrumbs":[{"name":"Services","href":"/services","current":false},{"name":"Shipping Service","href":"/services/Shipping Service","current":true}]},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"services":[{"name":"Orders Service","summary":"Service that handles customer orders\n","domain":"Orders","owners":["dboyne"],"repository":{},"tags":[],"externalLinks":[],"publishes":[{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","domain":null,"producerNames":["Payment Service"],"consumerNames":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]},{"name":"Payment Service","summary":"Event based application that integrates with Stripe.\n","domain":null,"owners":["dboyne"],"repository":{},"tags":[],"externalLinks":[],"publishes":[{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","domain":null,"producerNames":["Payment Service"],"consumerNames":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"OrderRequested","version":"0.0.1","summary":"Holds information about the customers order.\n","domain":"Orders","producerNames":["Basket Service"],"consumerNames":["Payment Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]},{"name":"Shipping Service","summary":"Event based application that handles processing of shipments, preparing them and dispatching them.\n","domain":null,"owners":["dboyne"],"repository":{"language":"JavaScript","url":"https://github.com/boyney123/pretend-shipping-service"},"tags":[],"externalLinks":[],"publishes":[{"name":"ShipmentDelivered","version":"0.0.1","summary":"Event represents when a shipment has been delivered and received.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Order Service","Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentDispatched","version":"0.0.1","summary":"Event represents when a shipment has been dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentPrepared","version":"0.0.1","summary":"Event represents when a shipment has finished being prepared and is ready to be dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentDispatched","version":"0.0.1","summary":"Event represents when a shipment has been dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentPrepared","version":"0.0.1","summary":"Event represents when a shipment has finished being prepared and is ready to be dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]}]},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"events":[{"name":"AddedItemToCart","version":"0.0.2","summary":"Holds information about what the user added to their shopping cart.\n","domain":"Shopping","producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":["0.0.2","0.0.1"]},{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderRequested","version":"0.0.1","summary":"Holds information about the customers order.\n","domain":"Orders","producerNames":["Basket Service"],"consumerNames":["Payment Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","domain":null,"producerNames":["Payment Service"],"consumerNames":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"RemovedItemFromCart","version":"0.0.1","summary":"Holds information about what the user removed from their cart.\n","domain":"Shopping","producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentDelivered","version":"0.0.1","summary":"Event represents when a shipment has been delivered and received.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Order Service","Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentDispatched","version":"0.0.1","summary":"Event represents when a shipment has been dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentPrepared","version":"0.0.1","summary":"Event represents when a shipment has finished being prepared and is ready to be dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"domains":[{"name":"Orders","summary":"Domain for everything shopping\n","owners":["dboyne","mSmith"],"tags":[],"externalLinks":[],"events":[{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","domain":null,"producerNames":["Orders Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":null,"producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderRequested","version":"0.0.1","summary":"Holds information about the customers order.\n","domain":null,"producerNames":["Basket Service"],"consumerNames":["Payment Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"services":[{"name":"Orders Service","summary":"Service that handles customer orders\n","domain":null,"owners":["dboyne"],"repository":{},"tags":[],"externalLinks":[],"publishes":[{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","domain":null,"producerNames":["Payment Service"],"consumerNames":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]}]},{"name":"Shopping","summary":"Domain for everything shopping\n","owners":["dboyne","mSmith"],"tags":[],"externalLinks":[],"events":[{"name":"AddedItemToCart","version":"0.0.2","summary":"Holds information about what the user added to their shopping cart.\n","domain":null,"producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":["0.0.2","0.0.1"]},{"name":"RemovedItemFromCart","version":"0.0.1","summary":"Holds information about what the user removed from their cart.\n","domain":null,"producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"services":[]}],"services":[{"name":"Orders Service","summary":"Service that handles customer orders\n","domain":"Orders","owners":["dboyne"],"repository":{},"tags":[],"externalLinks":[],"publishes":[{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","domain":null,"producerNames":["Payment Service"],"consumerNames":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]},{"name":"Payment Service","summary":"Event based application that integrates with Stripe.\n","domain":null,"owners":["dboyne"],"repository":{},"tags":[],"externalLinks":[],"publishes":[{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","domain":null,"producerNames":["Payment Service"],"consumerNames":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"OrderRequested","version":"0.0.1","summary":"Holds information about the customers order.\n","domain":"Orders","producerNames":["Basket Service"],"consumerNames":["Payment Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]},{"name":"Shipping Service","summary":"Event based application that handles processing of shipments, preparing them and dispatching them.\n","domain":null,"owners":["dboyne"],"repository":{"language":"JavaScript","url":"https://github.com/boyney123/pretend-shipping-service"},"tags":[],"externalLinks":[],"publishes":[{"name":"ShipmentDelivered","version":"0.0.1","summary":"Event represents when a shipment has been delivered and received.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Order Service","Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentDispatched","version":"0.0.1","summary":"Event represents when a shipment has been dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentPrepared","version":"0.0.1","summary":"Event represents when a shipment has finished being prepared and is ready to be dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentDispatched","version":"0.0.1","summary":"Event represents when a shipment has been dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentPrepared","version":"0.0.1","summary":"Event represents when a shipment has finished being prepared and is ready to be dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]}],"userId":"dboyne"},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"events":[{"name":"AddedItemToCart","version":"0.0.2","summary":"Holds information about what the user added to their shopping cart.\n","domain":"Shopping","producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":["0.0.2","0.0.1"]},{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderRequested","version":"0.0.1","summary":"Holds information about the customers order.\n","domain":"Orders","producerNames":["Basket Service"],"consumerNames":["Payment Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","domain":null,"producerNames":["Payment Service"],"consumerNames":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"RemovedItemFromCart","version":"0.0.1","summary":"Holds information about what the user removed from their cart.\n","domain":"Shopping","producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentDelivered","version":"0.0.1","summary":"Event represents when a shipment has been delivered and received.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Order Service","Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentDispatched","version":"0.0.1","summary":"Event represents when a shipment has been dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentPrepared","version":"0.0.1","summary":"Event represents when a shipment has finished being prepared and is ready to be dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"domains":[{"name":"Orders","summary":"Domain for everything shopping\n","owners":["dboyne","mSmith"],"tags":[],"externalLinks":[],"events":[{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","domain":null,"producerNames":["Orders Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":null,"producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderRequested","version":"0.0.1","summary":"Holds information about the customers order.\n","domain":null,"producerNames":["Basket Service"],"consumerNames":["Payment Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"services":[{"name":"Orders Service","summary":"Service that handles customer orders\n","domain":null,"owners":["dboyne"],"repository":{},"tags":[],"externalLinks":[],"publishes":[{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","domain":null,"producerNames":["Payment Service"],"consumerNames":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]}]},{"name":"Shopping","summary":"Domain for everything shopping\n","owners":["dboyne","mSmith"],"tags":[],"externalLinks":[],"events":[{"name":"AddedItemToCart","version":"0.0.2","summary":"Holds information about what the user added to their shopping cart.\n","domain":null,"producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":["0.0.2","0.0.1"]},{"name":"RemovedItemFromCart","version":"0.0.1","summary":"Holds information about what the user removed from their cart.\n","domain":null,"producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"services":[]}],"services":[],"userId":"mSmith"},"__N_SSG":true}
@@ -0,0 +1 @@
1
+ {"pageProps":{"events":[{"name":"AddedItemToCart","version":"0.0.2","summary":"Holds information about what the user added to their shopping cart.\n","domain":"Shopping","producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":["0.0.2","0.0.1"]},{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderRequested","version":"0.0.1","summary":"Holds information about the customers order.\n","domain":"Orders","producerNames":["Basket Service"],"consumerNames":["Payment Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","domain":null,"producerNames":["Payment Service"],"consumerNames":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"RemovedItemFromCart","version":"0.0.1","summary":"Holds information about what the user removed from their cart.\n","domain":"Shopping","producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentDelivered","version":"0.0.1","summary":"Event represents when a shipment has been delivered and received.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Order Service","Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentDispatched","version":"0.0.1","summary":"Event represents when a shipment has been dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentPrepared","version":"0.0.1","summary":"Event represents when a shipment has finished being prepared and is ready to be dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"services":[{"name":"Orders Service","summary":"Service that handles customer orders\n","domain":"Orders","owners":["dboyne"],"repository":{},"tags":[],"externalLinks":[],"publishes":[{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","domain":null,"producerNames":["Payment Service"],"consumerNames":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]},{"name":"Payment Service","summary":"Event based application that integrates with Stripe.\n","domain":null,"owners":["dboyne"],"repository":{},"tags":[],"externalLinks":[],"publishes":[{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","domain":null,"producerNames":["Payment Service"],"consumerNames":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"OrderRequested","version":"0.0.1","summary":"Holds information about the customers order.\n","domain":"Orders","producerNames":["Basket Service"],"consumerNames":["Payment Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]},{"name":"Shipping Service","summary":"Event based application that handles processing of shipments, preparing them and dispatching them.\n","domain":null,"owners":["dboyne"],"repository":{"language":"JavaScript","url":"https://github.com/boyney123/pretend-shipping-service"},"tags":[],"externalLinks":[],"publishes":[{"name":"ShipmentDelivered","version":"0.0.1","summary":"Event represents when a shipment has been delivered and received.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Order Service","Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentDispatched","version":"0.0.1","summary":"Event represents when a shipment has been dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentPrepared","version":"0.0.1","summary":"Event represents when a shipment has finished being prepared and is ready to be dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentDispatched","version":"0.0.1","summary":"Event represents when a shipment has been dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"ShipmentPrepared","version":"0.0.1","summary":"Event represents when a shipment has finished being prepared and is ready to be dispatched.\n","domain":null,"producerNames":["Shipping Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]}],"domains":[{"name":"Orders","summary":"Domain for everything shopping\n","owners":["dboyne","mSmith"],"tags":[],"externalLinks":[],"events":[{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","domain":null,"producerNames":["Orders Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":null,"producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderRequested","version":"0.0.1","summary":"Holds information about the customers order.\n","domain":null,"producerNames":["Basket Service"],"consumerNames":["Payment Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"services":[{"name":"Orders Service","summary":"Service that handles customer orders\n","domain":null,"owners":["dboyne"],"repository":{},"tags":[],"externalLinks":[],"publishes":[{"name":"OrderComplete","version":"0.0.1","summary":"Event represents when an order has been complete. (Delivered and finished)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]},{"name":"OrderConfirmed","version":"0.0.1","summary":"Event represents when an order has been confirmed and ready to be processed (shipped for example)\n","domain":"Orders","producerNames":["Orders Service"],"consumerNames":["Shipping Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"subscribes":[{"name":"PaymentProcessed","version":"0.0.1","summary":"Holds information about the payment that has been processed.\n","domain":null,"producerNames":["Payment Service"],"consumerNames":["Orders Service"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}]}]},{"name":"Shopping","summary":"Domain for everything shopping\n","owners":["dboyne","mSmith"],"tags":[],"externalLinks":[],"events":[{"name":"AddedItemToCart","version":"0.0.2","summary":"Holds information about what the user added to their shopping cart.\n","domain":null,"producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":["0.0.2","0.0.1"]},{"name":"RemovedItemFromCart","version":"0.0.1","summary":"Holds information about what the user removed from their cart.\n","domain":null,"producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"historicVersions":[]}],"services":[]}]},"__N_SSG":true}
@@ -1 +1 @@
1
- self.__BUILD_MANIFEST=function(s,e,a,c,n,i,t,d,m,o,v,u,f,r,b,k,h,j){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/pages/index-fe1a9e09c7f51e66.js"],"/_error":["static/chunks/pages/_error-5a714c45c50a8db4.js"],"/domains":[s,"static/chunks/pages/domains-6ab78cb1bc2f4200.js"],"/domains/[domain]":[c,e,s,n,i,t,"static/chunks/pages/domains/[domain]-2b08aa35416b7fe6.js"],"/domains/[domain]/events/[name]":[a,c,d,m,o,e,s,n,v,u,i,t,f,r,"static/chunks/pages/domains/[domain]/events/[name]-a5fb5b26471e703b.js"],"/domains/[domain]/events/[name]/logs":[e,b,k,"static/chunks/pages/domains/[domain]/events/[name]/logs-9678f8d15063d3b5.js"],"/domains/[domain]/events/[name]/v/[version]":[a,c,d,m,o,e,s,n,v,u,i,t,f,r,"static/chunks/pages/domains/[domain]/events/[name]/v/[version]-a7fa6002267ccd3b.js"],"/domains/[domain]/services/[name]":[a,c,e,s,n,i,t,h,"static/chunks/pages/domains/[domain]/services/[name]-80d6d803e5466b81.js"],"/events":[a,e,s,j,"static/chunks/pages/events-691363297e733e50.js"],"/events/[name]":[a,c,d,m,o,e,s,n,v,u,i,t,f,r,"static/chunks/pages/events/[name]-d3d2a03948b8dfeb.js"],"/events/[name]/logs":[e,b,k,"static/chunks/pages/events/[name]/logs-279caf3ba628e52c.js"],"/events/[name]/v/[version]":[a,c,d,m,o,e,s,n,v,u,i,t,f,r,"static/chunks/pages/events/[name]/v/[version]-93d978734b0dc0a3.js"],"/overview":["static/chunks/pages/overview-7ada2cb9fcb9a9ea.js"],"/services":[a,e,s,j,"static/chunks/pages/services-0a099323cc1d9712.js"],"/services/[name]":[a,c,e,s,n,i,t,h,"static/chunks/pages/services/[name]-148079bb388f8c53.js"],"/users/[id]":[a,s,"static/chunks/pages/users/[id]-d1f16749cca85865.js"],"/visualiser":[c,e,s,n,i,"static/chunks/pages/visualiser-d4ac3f309ff00b17.js"],sortedPages:["/","/_app","/_error","/domains","/domains/[domain]","/domains/[domain]/events/[name]","/domains/[domain]/events/[name]/logs","/domains/[domain]/events/[name]/v/[version]","/domains/[domain]/services/[name]","/events","/events/[name]","/events/[name]/logs","/events/[name]/v/[version]","/overview","/services","/services/[name]","/users/[id]","/visualiser"]}}("static/chunks/962-17a425b16c23bd0f.js","static/chunks/519-2ec6fc3cdbaa4dc2.js","static/chunks/176cb4e4-59b1695530801e16.js","static/chunks/b744740b-32af777c67e2c3ff.js","static/chunks/506-68ae644af2659950.js","static/chunks/109-c7517eb568876b36.js","static/chunks/169-b33dfdaf2847d062.js","static/chunks/1df474da-91f6061ee61707c6.js","static/chunks/7f5d3f51-83121b73403fb948.js","static/chunks/2edb282b-b8f4863366339abc.js","static/chunks/5-6380a6f543e8372a.js","static/chunks/650-7b49ecd97114e917.js","static/chunks/178-c0d21132335f7d58.js","static/css/7e14b4dede1671ad.css","static/chunks/364-0efd016d31d19995.js","static/css/5eeed9cb243ce668.css","static/chunks/585-8ff3ec10b43fcb10.js","static/chunks/274-8d503842229d0944.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
1
+ self.__BUILD_MANIFEST=function(s,e,a,n,c,i,t,d,m,o,v,u,b,r,f,k,h,j){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/pages/index-fe1a9e09c7f51e66.js"],"/_error":["static/chunks/pages/_error-5a714c45c50a8db4.js"],"/domains":[s,"static/chunks/pages/domains-6ab78cb1bc2f4200.js"],"/domains/[domain]":[n,e,s,c,i,t,"static/chunks/pages/domains/[domain]-2b08aa35416b7fe6.js"],"/domains/[domain]/events/[name]":[a,n,d,m,o,e,s,c,v,u,i,t,b,r,"static/chunks/pages/domains/[domain]/events/[name]-a5fb5b26471e703b.js"],"/domains/[domain]/events/[name]/logs":[e,f,k,"static/chunks/pages/domains/[domain]/events/[name]/logs-9678f8d15063d3b5.js"],"/domains/[domain]/events/[name]/v/[version]":[a,n,d,m,o,e,s,c,v,u,i,t,b,r,"static/chunks/pages/domains/[domain]/events/[name]/v/[version]-a7fa6002267ccd3b.js"],"/domains/[domain]/services/[name]":[a,n,e,s,c,i,t,h,"static/chunks/pages/domains/[domain]/services/[name]-80d6d803e5466b81.js"],"/events":[a,e,s,j,"static/chunks/pages/events-691363297e733e50.js"],"/events/[name]":[a,n,d,m,o,e,s,c,v,u,i,t,b,r,"static/chunks/pages/events/[name]-d3d2a03948b8dfeb.js"],"/events/[name]/logs":[e,f,k,"static/chunks/pages/events/[name]/logs-279caf3ba628e52c.js"],"/events/[name]/v/[version]":[a,n,d,m,o,e,s,c,v,u,i,t,b,r,"static/chunks/pages/events/[name]/v/[version]-93d978734b0dc0a3.js"],"/overview":["static/chunks/pages/overview-7ada2cb9fcb9a9ea.js"],"/services":[a,e,s,j,"static/chunks/pages/services-0a099323cc1d9712.js"],"/services/[name]":[a,n,e,s,c,i,t,h,"static/chunks/pages/services/[name]-148079bb388f8c53.js"],"/users/[id]":[a,s,"static/chunks/pages/users/[id]-d1f16749cca85865.js"],"/visualiser":[n,e,s,c,i,"static/chunks/pages/visualiser-5ba1bdaa135986ba.js"],sortedPages:["/","/_app","/_error","/domains","/domains/[domain]","/domains/[domain]/events/[name]","/domains/[domain]/events/[name]/logs","/domains/[domain]/events/[name]/v/[version]","/domains/[domain]/services/[name]","/events","/events/[name]","/events/[name]/logs","/events/[name]/v/[version]","/overview","/services","/services/[name]","/users/[id]","/visualiser"]}}("static/chunks/962-17a425b16c23bd0f.js","static/chunks/519-2ec6fc3cdbaa4dc2.js","static/chunks/176cb4e4-59b1695530801e16.js","static/chunks/b744740b-594b36f2f589c271.js","static/chunks/506-68ae644af2659950.js","static/chunks/109-7e910ba645edff2d.js","static/chunks/169-b33dfdaf2847d062.js","static/chunks/1df474da-91f6061ee61707c6.js","static/chunks/7f5d3f51-83121b73403fb948.js","static/chunks/2edb282b-b8f4863366339abc.js","static/chunks/5-6380a6f543e8372a.js","static/chunks/650-7b49ecd97114e917.js","static/chunks/178-c0d21132335f7d58.js","static/css/7e14b4dede1671ad.css","static/chunks/364-0efd016d31d19995.js","static/css/5eeed9cb243ce668.css","static/chunks/585-8ff3ec10b43fcb10.js","static/chunks/274-8d503842229d0944.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[109],{78484:function(e,t,n){n.d(t,{Z:function(){return z}});var r=n(52322),a=n(2784),o=n(39097),i=n(54064),l=n(70314),c=n(17962),u=n(61519);var d=function(e){var t=e.type,n=e.label,a="event"===t?u.bV6:c.QTo;return(0,r.jsxs)("div",{children:[(0,r.jsx)(a,{className:"h-3 w-3 text-gray-700 inline-block mr-1 -mt-0.5"}),(0,r.jsx)("span",{className:"text-gray-700",children:n})]})};function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){f(e,t,n[t])}))}return e}function p(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var b=(0,l.default)().publicRuntimeConfig,v=(void 0===b?{}:b).basePath,h=void 0===v?"":v,y=function(e){return 8*e.length>150?8*e.length:150},g=function(e){var t=e.id,n=e.target,r=e.source,a=e.label,o=e.isAnimated,l=void 0===o||o;return{id:t,target:n,source:r,type:"smoothstep",arrowHeadType:i.f8.ArrowClosed,animated:l,label:a,labelBgPadding:[8,4],labelBgBorderRadius:4,labelStyle:{fontSize:"6px"},labelBgStyle:{fill:"white",color:"#fff",fillOpacity:.5}}},x=function(e){var t=e.name,n=e.label,r=e.type,a=e.maxWidth,o=e.renderInColumn,i=y(n),l=function(e,t){return""!==h?"".concat(h,"/").concat(t,"/").concat(e):"/".concat(t,"/").concat(e)}(t,"service"===r?"services":"events");return{label:n,link:l,width:i,maxWidth:a,renderInColumn:o}},w=function(e){var t=e.type,n=e.label;return e.includeIcon?(0,r.jsx)(d,{type:t,label:n}):n},I=function(e){var t,n,r=e.name,a=e.producerNames,o=e.consumerNames,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#2563eb",l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=arguments.length>4&&void 0!==arguments[4]&&arguments[4],d={x:0,y:0},s="#818cf8",f="#75d7b6",b={fontSize:u?"8px":"auto"},v=a.map((function(e){return y(e)})),h=(t=Math).max.apply(t,p(v)),I=o.map((function(e){return y(e)})),j=(n=Math).max.apply(n,p(I)),A="ev-".concat(r.replace(/ /g,"_")),C=y(r),S=a.map((function(e){return{label:e,id:"pr-".concat(e.replace(/ /g,"_"))}})),_=o.map((function(e){return{label:e,id:"co-".concat(e.replace(/ /g,"_"))}})),N=S.map((function(e){var t=e.label,n=e.id,r=y(t),a=h-r,o=0!==a?r-a:h,i=w({type:"service",label:t,includeIcon:u});return{id:n,data:x({name:t,label:i,type:"service",maxWidth:o,renderInColumn:1}),style:m({border:"2px solid ".concat(f),width:r},b),type:"input",position:d}})),O=_.map((function(e){var t=e.id,n=e.label,r=y(n),a=w({type:"service",label:n,includeIcon:u});return{id:t,data:x({name:n,label:a,type:"service",maxWidth:j,renderInColumn:3}),style:m({border:"2px solid ".concat(s),width:r},b),type:"output",position:d}})),k={id:A,data:x({name:r,label:w({type:"event",label:r,includeIcon:u}),type:"event",maxWidth:C,renderInColumn:2}),style:m({border:"2px solid ".concat(i),width:C},b),position:d},E=S.map((function(e){var t=e.id,n=e.label;return g({id:"epe-".concat(n.replace(/ /g,"_"),"-").concat(A),source:t,target:A,isAnimated:l,label:c?"publishes":""})})),W=_.map((function(e){var t=e.id,n=e.label;return g({id:"ece-".concat(n.replace(/ /g,"_"),"-").concat(A),target:t,source:A,isAnimated:l,label:c?"subscribed by":""})})),z=p(N).concat([k],p(O),p(E),p(W));return z},j=function(e){var t,n,r=e.publishes,a=e.subscribes,o=e.name,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#2563eb",l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=arguments.length>4&&void 0!==arguments[4]&&arguments[4],d={x:0,y:0},s="#818cf8",f="#75d7b6",b={fontSize:u?"8px":"auto"},v=r.map((function(e){return y(e.name)})),h=(t=Math).max.apply(t,p(v)),I=a.map((function(e){return y(e.name)})),j=(n=Math).max.apply(n,p(I)),A="ser-".concat(o.replace(/ /g,"_")),C=r.map((function(e){var t=y(e.name),n=w({type:"event",label:e.name,includeIcon:u});return{id:"pub-".concat(e.name.replace(/ /g,"_")),data:x({name:e.name,label:n,type:"event",maxWidth:h,renderInColumn:3}),style:m({border:"2px solid ".concat(s),width:t},b),type:"output",position:d}})),S=a.map((function(e){var t=y(e.name),n=j-t,r=0!==n?t-n:j,a=w({type:"event",label:e.name,includeIcon:u});return{id:"sub-".concat(e.name.replace(/ /g,"_")),data:x(m({name:e.name,label:a,type:"event",maxWidth:r},b,{renderInColumn:1})),style:m({border:"2px solid ".concat(f),width:t},b),type:"input",position:d}})),_={id:A,data:x({name:o,label:w({type:"service",label:o,includeIcon:u}),type:"service",maxWidth:y(o),renderInColumn:2}),style:m({border:"2px solid ".concat(i),width:y(o)},b),position:d},N=r.map((function(e){return g({id:"ecp-".concat(e.name.replace(/ /g,"_")),source:A,target:"pub-".concat(e.name.replace(/ /g,"_")),isAnimated:l,label:c?"publishes":""})})),O=a.map((function(e){return g({id:"esc-".concat(e.name.replace(/ /g,"_")),target:A,source:"sub-".concat(e.name.replace(/ /g,"_")),isAnimated:l,label:c?"subscribed by":""})})),k=p(S).concat([_],p(C),p(N),p(O));return k},A=n(46506),C=n.n(A);function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var N=150;function O(e,t){var n=new(C().graphlib.Graph);n.setDefaultEdgeLabel((function(){return{}})),n.setGraph({rankdir:"LR",ranksep:96,nodesep:32}),e.forEach((function(e){if((0,i.UG)(e)){var t,r,a,o,l=(null===(t=e.__rf)||void 0===t?void 0:t.width)?null===(r=e.__rf)||void 0===r?void 0:r.width:null===(a=e.data)||void 0===a?void 0:a.width;n.setNode(e.id,{width:l||N,height:(null===(o=e.__rf)||void 0===o?void 0:o.height)||36})}else n.setEdge(e.source,e.target)})),C().layout(n);var r=e.filter((function(e){return e.data})),a=e.filter((function(e){return!e.data}));return _(r.sort((function(e,t){return e.data.renderInColumn>t.data.renderInColumn?1:t.data.renderInColumn>e.data.renderInColumn?-1:0}))).concat(_(a)).map((function(r){if((0,i.UG)(r)){var a,o=n.node(r.id);r.targetPosition=t?i.Ly.Left:i.Ly.Top,r.sourcePosition=t?i.Ly.Right:i.Ly.Bottom;var l=r.data.renderInColumn>1?75:0,c=null===r||void 0===r||null===(a=r.data)||void 0===a?void 0:a.renderInColumn,u=function(e,t){var n=e.filter((function(e){var n;return(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.renderInColumn)===t}));if(0===n.length)return{};if(1===n.length)return n[0];var r=n.reduce((function(e,t){var n,r,a,o=(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.maxWidth)||(null===e||void 0===e||null===(r=e.data)||void 0===r?void 0:r.width)||N;return((null===t||void 0===t||null===(a=t.data)||void 0===a?void 0:a.maxWidth)||(null===t||void 0===t?void 0:t.data.width)||N)>o?t:e}),n[0]);return r}(e,c-1),d=Object.keys(u).length>0?function(e){var t,n=(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.maxWidth)||e.width||N;return e.position.x+n}(u):0;r.position={x:d+l,y:o.y-o.height/2},r.style.width&&r.style.width<=N&&(r.style.width=void 0)}return r}))}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e){var t=e.data,n=e.source,o=e.rootNodeColor,l=e.maxZoom,c=void 0===l?10:l,u=e.isAnimated,d=void 0===u||u,s=e.fitView,f=void 0===s||s,m=e.zoomOnScroll,p=void 0!==m&&m,b=e.isDraggable,v=void 0!==b&&b,h=e.isHorizontal,y=void 0===h||h,g=e.includeBackground,x=void 0!==g&&g,w=e.includeEdgeLabels,A=void 0!==w&&w,C=e.includeNodeIcons,S=e.title,_=e.subtitle,N=(0,a.useCallback)((function(){if("domain"===n||"all"===n){var e=t,r=e.events.map((function(e){return I(e,o,d,!0,!0)})),a=e.services.map((function(e){return j(e,o,d,!0,!0)})),i=r.flat().concat(a.flat());return E(new Map(i.map((function(e){return[e.id,e]}))).values())}return"event"===n?I(t,o,d,A,C):j(t,o,d,A,C)}),[t,A,C,d,o,n]),k=(0,i.Hs)().fitView,W=(0,a.useState)([]),z=W[0],L=W[1];(0,a.useEffect)((function(){var e=O(N(),y);L(e),setTimeout((function(){k()}),1)}),[t,N,y,k]);var M=(0,a.useCallback)((function(e){f&&e.fitView()}),[f]);return(0,r.jsxs)(i.ZP,{elements:z,onLoad:M,onElementClick:function(e,t){return window.open(t.data.link,"_self")},nodesDraggable:v,zoomOnScroll:p,maxZoom:c,children:[S&&(0,r.jsxs)("div",{className:"absolute top-4 right-4 bg-white z-10 text-lg px-4 py-2 space-x-2",children:[(0,r.jsx)("span",{className:" font-bold",children:S}),_&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-gray-200",children:"|"}),(0,r.jsx)("span",{className:"font-light",children:_})]})]}),(0,r.jsx)(i.ZX,{className:"block absolute top-5 react-flow__controls-no-shadow"}),x&&(0,r.jsx)(i.Aq,{color:"#c1c1c1",gap:8})]})}var z=function(e){var t=e.data,n=e.source,a=e.rootNodeColor,l=e.maxHeight,c=e.maxZoom,u=e.fitView,d=e.zoomOnScroll,s=e.isAnimated,f=e.isDraggable,m=e.isHorizontal,p=e.includeBackground,b=e.renderWithBorder,v=void 0===b||b,h=e.title,y=e.subtitle,g=e.includeEdgeLabels,x=e.includeNodeIcons,w=l||function(e,t){var n=0;return"event"===t&&(n=68*Math.max(e.producerNames.length,e.consumerNames.length)),"service"===t&&(n=68*Math.max(e.publishes.length,e.subscribes.length)),Math.max(300,n)}(t,n);return(0,r.jsxs)("div",{className:"node-graph w-full h-screen ".concat(v?"border-dashed border-2 border-slate-300":""),style:{height:w},children:[(0,r.jsx)(i.tV,{children:(0,r.jsx)(W,{source:n,data:t,rootNodeColor:a,maxZoom:c,fitView:u,includeBackground:p,zoomOnScroll:d,isAnimated:s,isDraggable:f,isHorizontal:m,includeEdgeLabels:g,includeNodeIcons:x,title:h,subtitle:y})}),(0,r.jsx)(o.default,{href:"/visualiser?type=".concat(n,"&name=").concat(t.name),children:(0,r.jsx)("a",{className:"block text-right underline text-xs mt-4",children:"Open in Visualiser \u2192"})})]})}},46892:function(e,t,n){function r(e){for(var t=0,n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);for(var r="#",a=0;a<3;a++){r+="00".concat((t>>8*a&255).toString(16)).substr(-2)}return r}n.d(t,{Z:function(){return r}})}}]);