@eventcatalog/core 0.1.9 → 0.1.10
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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +9 -9
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1bay4w0 +1 -1
- package/.next/cache/next-server.js.nft.json +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/565.js +2 -2
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/events/AddedItemToCart/logs.html +1 -1
- package/.next/server/pages/events/AddedItemToCart/v/0.0.1.html +2 -2
- package/.next/server/pages/events/AddedItemToCart/v/0.0.2.html +2 -2
- package/.next/server/pages/events/AddedItemToCart.html +2 -2
- package/.next/server/pages/events/OrderComplete/logs.html +1 -1
- package/.next/server/pages/events/OrderComplete.html +2 -2
- package/.next/server/pages/events/OrderConfirmed/logs.html +1 -1
- package/.next/server/pages/events/OrderConfirmed.html +2 -2
- package/.next/server/pages/events/OrderRequested/logs.html +1 -1
- package/.next/server/pages/events/OrderRequested.html +2 -2
- package/.next/server/pages/events/PaymentProcessed/logs.html +1 -1
- package/.next/server/pages/events/PaymentProcessed.html +2 -2
- package/.next/server/pages/events/RemovedItemFromCart/logs.html +1 -1
- package/.next/server/pages/events/RemovedItemFromCart.html +2 -2
- package/.next/server/pages/events/ShipmentDelivered/logs.html +1 -1
- package/.next/server/pages/events/ShipmentDelivered.html +2 -2
- package/.next/server/pages/events/ShipmentDispatched/logs.html +1 -1
- package/.next/server/pages/events/ShipmentDispatched.html +2 -2
- package/.next/server/pages/events/ShipmentPrepared/logs.html +1 -1
- package/.next/server/pages/events/ShipmentPrepared.html +2 -2
- package/.next/server/pages/events.html +2 -2
- package/.next/server/pages/index.html +1 -1
- package/.next/server/pages/overview.html +1 -1
- package/.next/server/pages/services/Basket Service.html +6 -6
- package/.next/server/pages/services/Data Lake.html +7 -7
- package/.next/server/pages/services/Payment Service.html +6 -6
- package/.next/server/pages/services/Shipping Service.html +6 -6
- package/.next/server/pages/services.html +2 -2
- package/.next/server/pages/users/dboyne.html +2 -2
- package/.next/server/pages/users/mSmith.html +2 -2
- package/{out/_next/static/chunks/336-b1acb0b6aa306baf.js → .next/static/chunks/336-22157631c3f2ef95.js} +1 -1
- package/.next/static/chunks/pages/{events-c9e5a0fa7d23d620.js → events-5ffe0ca38bc5f78c.js} +1 -1
- package/.next/static/chunks/pages/{services-30e4132ef02b1784.js → services-a4eaef0c2abfdf9c.js} +1 -1
- package/{out/_next/static/chunks/pages/users/[id]-a4274bfad4d9a9ec.js → .next/static/chunks/pages/users/[id]-6e62960d4bd19b7d.js} +1 -1
- package/.next/static/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/_buildManifest.js +1 -1
- package/.next/static/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/_middlewareManifest.js +0 -0
- package/.next/static/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/_ssgManifest.js +0 -0
- package/.next/trace +54 -54
- package/CHANGELOG.md +6 -0
- package/lib/__tests__/graphs.spec.ts +4 -4
- package/lib/graphs.ts +2 -2
- package/out/404/index.html +1 -1
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/AddedItemToCart/logs.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/AddedItemToCart/v/0.0.1.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/AddedItemToCart/v/0.0.2.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/AddedItemToCart.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/OrderComplete/logs.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/OrderComplete.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/OrderConfirmed/logs.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/OrderConfirmed.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/OrderRequested/logs.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/OrderRequested.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/PaymentProcessed/logs.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/PaymentProcessed.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/RemovedItemFromCart/logs.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/RemovedItemFromCart.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/ShipmentDelivered/logs.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/ShipmentDelivered.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/ShipmentDispatched/logs.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/ShipmentDispatched.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/ShipmentPrepared/logs.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/ShipmentPrepared.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/overview.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/services/Basket Service.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/services/Data Lake.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/services/Payment Service.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/services/Shipping Service.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/services.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/users/dboyne.json +0 -0
- package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/users/mSmith.json +0 -0
- package/{.next/static/chunks/336-b1acb0b6aa306baf.js → out/_next/static/chunks/336-22157631c3f2ef95.js} +1 -1
- package/out/_next/static/chunks/pages/{events-c9e5a0fa7d23d620.js → events-5ffe0ca38bc5f78c.js} +1 -1
- package/out/_next/static/chunks/pages/{services-30e4132ef02b1784.js → services-a4eaef0c2abfdf9c.js} +1 -1
- package/{.next/static/chunks/pages/users/[id]-a4274bfad4d9a9ec.js → out/_next/static/chunks/pages/users/[id]-6e62960d4bd19b7d.js} +1 -1
- package/out/_next/static/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/_buildManifest.js +1 -1
- package/out/_next/static/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/_middlewareManifest.js +0 -0
- package/out/_next/static/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/_ssgManifest.js +0 -0
- package/out/events/AddedItemToCart/index.html +2 -2
- package/out/events/AddedItemToCart/logs/index.html +1 -1
- package/out/events/AddedItemToCart/v/0.0.1/index.html +2 -2
- package/out/events/AddedItemToCart/v/0.0.2/index.html +2 -2
- package/out/events/OrderComplete/index.html +2 -2
- package/out/events/OrderComplete/logs/index.html +1 -1
- package/out/events/OrderConfirmed/index.html +2 -2
- package/out/events/OrderConfirmed/logs/index.html +1 -1
- package/out/events/OrderRequested/index.html +2 -2
- package/out/events/OrderRequested/logs/index.html +1 -1
- package/out/events/PaymentProcessed/index.html +2 -2
- package/out/events/PaymentProcessed/logs/index.html +1 -1
- package/out/events/RemovedItemFromCart/index.html +2 -2
- package/out/events/RemovedItemFromCart/logs/index.html +1 -1
- package/out/events/ShipmentDelivered/index.html +2 -2
- package/out/events/ShipmentDelivered/logs/index.html +1 -1
- package/out/events/ShipmentDispatched/index.html +2 -2
- package/out/events/ShipmentDispatched/logs/index.html +1 -1
- package/out/events/ShipmentPrepared/index.html +2 -2
- package/out/events/ShipmentPrepared/logs/index.html +1 -1
- package/out/events/index.html +2 -2
- package/out/index.html +1 -1
- package/out/overview/index.html +1 -1
- package/out/services/Basket Service/index.html +6 -6
- package/out/services/Data Lake/index.html +7 -7
- package/out/services/Payment Service/index.html +6 -6
- package/out/services/Shipping Service/index.html +6 -6
- package/out/services/index.html +2 -2
- package/out/users/dboyne/index.html +2 -2
- package/out/users/mSmith/index.html +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @eventcatalog/core
|
|
2
2
|
|
|
3
|
+
## 0.1.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b44bd6c`](https://github.com/boyney123/eventcatalog/commit/b44bd6ca73194165e6448abebd020e3d6f3007a2) [#169](https://github.com/boyney123/eventcatalog/pull/169) Thanks [@thim81](https://github.com/thim81)! - fix: logic for services publish & subscribe nodes
|
|
8
|
+
|
|
3
9
|
## 0.1.9
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -25,7 +25,7 @@ describe('graphs', () => {
|
|
|
25
25
|
|
|
26
26
|
expect(result.trim()).toEqual(`flowchart LR
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
My_Event_2[My Event 2]:::producer-->My_Service[My Service]:::event
|
|
29
29
|
|
|
30
30
|
classDef event stroke:#2563eb,stroke-width: 4px;
|
|
31
31
|
|
|
@@ -33,12 +33,12 @@ classDef producer stroke:#75d7b6,stroke-width: 2px;
|
|
|
33
33
|
|
|
34
34
|
classDef consumer stroke:#818cf8,stroke-width: 2px;
|
|
35
35
|
|
|
36
|
-
My_Service[My Service]:::event-->
|
|
37
|
-
|
|
38
|
-
click My_Event href "/docs/events/My Event" "Go to My Event" _self
|
|
36
|
+
My_Service[My Service]:::event-->My_Event[My Event]:::consumer
|
|
39
37
|
|
|
40
38
|
click My_Event_2 href "/docs/events/My Event 2" "Go to My Event 2" _self
|
|
41
39
|
|
|
40
|
+
click My_Event href "/docs/events/My Event" "Go to My Event" _self
|
|
41
|
+
|
|
42
42
|
click My_Service href "/docs/services/My Service" "Go to My Service" _self`);
|
|
43
43
|
});
|
|
44
44
|
});
|
package/lib/graphs.ts
CHANGED
|
@@ -63,12 +63,12 @@ export const buildMermaidFlowChartForService = (
|
|
|
63
63
|
rootNodeColor = '#2563eb'
|
|
64
64
|
) => {
|
|
65
65
|
// Transforms services & event into a graph model
|
|
66
|
-
const leftNodes =
|
|
66
|
+
const leftNodes = subscribes.map(truncateNode).map((node) => ({
|
|
67
67
|
id: node.name.replace(/ /g, '_'),
|
|
68
68
|
name: node.name,
|
|
69
69
|
link: generateLink(node.name, 'events'),
|
|
70
70
|
}));
|
|
71
|
-
const rightNodes =
|
|
71
|
+
const rightNodes = publishes.map(truncateNode).map((node) => ({
|
|
72
72
|
id: node.name.replace(/ /g, '_'),
|
|
73
73
|
name: node.name,
|
|
74
74
|
link: generateLink(node.name, 'events'),
|
package/out/404/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><script src="//unpkg.com/three"></script><script src="//unpkg.com/three/examples/js/renderers/CSS2DRenderer.js"></script><link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css"/><meta name="description" content="An open source project to Discover, Explore and Document your Event Driven Architectures."/><meta property="og:url" content="https://eventcatalog.dev/"/><meta property="og:type" content="website"/><meta property="og:title" content="EventCatalog | Discover, Explore and Document your Event Driven Architectures."/><meta property="og:description" content="An open source tool powered by markdown to document your Event Driven Architecture."/><meta property="og:image" content="https://eventcatalog.dev/img/opengraph.png"/><meta property="og:image:alt" content="EventCatalog | Discover, Explore and Document your Event Driven Architectures."/><meta property="og:image:width" content="1200"/><meta property="og:image:height" content="600"/><meta property="og:locale" content="en-GB"/><meta name="author" content="David Boyne"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/atom-one-light.min.css"/><title>404: This page could not be found</title><meta name="next-head-count" content="18"/><link rel="preload" href="/_next/static/css/0b54ec6503b91283.css" as="style"/><link rel="stylesheet" href="/_next/static/css/0b54ec6503b91283.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-2ebfdb1666dac4ad.js" defer=""></script><script src="/_next/static/chunks/framework-576ec6a1c1386453.js" defer=""></script><script src="/_next/static/chunks/main-0015f560a7edeb35.js" defer=""></script><script src="/_next/static/chunks/pages/_app-c205def1388372e3.js" defer=""></script><script src="/_next/static/chunks/pages/_error-5a714c45c50a8db4.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><script src="//unpkg.com/three"></script><script src="//unpkg.com/three/examples/js/renderers/CSS2DRenderer.js"></script><link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css"/><meta name="description" content="An open source project to Discover, Explore and Document your Event Driven Architectures."/><meta property="og:url" content="https://eventcatalog.dev/"/><meta property="og:type" content="website"/><meta property="og:title" content="EventCatalog | Discover, Explore and Document your Event Driven Architectures."/><meta property="og:description" content="An open source tool powered by markdown to document your Event Driven Architecture."/><meta property="og:image" content="https://eventcatalog.dev/img/opengraph.png"/><meta property="og:image:alt" content="EventCatalog | Discover, Explore and Document your Event Driven Architectures."/><meta property="og:image:width" content="1200"/><meta property="og:image:height" content="600"/><meta property="og:locale" content="en-GB"/><meta name="author" content="David Boyne"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/atom-one-light.min.css"/><title>404: This page could not be found</title><meta name="next-head-count" content="18"/><link rel="preload" href="/_next/static/css/0b54ec6503b91283.css" as="style"/><link rel="stylesheet" href="/_next/static/css/0b54ec6503b91283.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-2ebfdb1666dac4ad.js" defer=""></script><script src="/_next/static/chunks/framework-576ec6a1c1386453.js" defer=""></script><script src="/_next/static/chunks/main-0015f560a7edeb35.js" defer=""></script><script src="/_next/static/chunks/pages/_app-c205def1388372e3.js" defer=""></script><script src="/_next/static/chunks/pages/_error-5a714c45c50a8db4.js" defer=""></script><script src="/_next/static/e-q1iE1pYqLSobepXPoMN/_buildManifest.js" defer=""></script><script src="/_next/static/e-q1iE1pYqLSobepXPoMN/_ssgManifest.js" defer=""></script><script src="/_next/static/e-q1iE1pYqLSobepXPoMN/_middlewareManifest.js" defer=""></script></head><body><div id="__next" data-reactroot=""><div class="bg-gray-800"><div class="max-w-7xl mx-auto "><div class="relative flex items-center justify-between h-16"><div class="flex-1 flex items-center justify-center sm:items-stretch sm:justify-start"><div class="flex-shrink-0 flex items-center text-white font-bold"><a class="flex items-center" href="/"><img alt="logo" class="text-white w-8 inline-block mr-3" src="/logo.svg"/><span class="text-xl">EventCatalog</span></a></div></div><div class="hidden sm:block sm:ml-6"><div class="flex space-x-4"><a class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium" href="/events/">Events</a><a class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium" href="/services/">Services</a><a class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium" href="/overview/">3D Node Graph</a></div></div></div></div></div><div style="color:#000;background:#fff;font-family:-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", 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":"e-q1iE1pYqLSobepXPoMN","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/AddedItemToCart.json
RENAMED
|
File without changes
|
|
File without changes
|
package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/OrderComplete.json
RENAMED
|
File without changes
|
|
File without changes
|
package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/OrderConfirmed.json
RENAMED
|
File without changes
|
|
File without changes
|
package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/OrderRequested.json
RENAMED
|
File without changes
|
|
File without changes
|
package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/PaymentProcessed.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/ShipmentDelivered.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/events/ShipmentPrepared.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/services/Basket Service.json
RENAMED
|
File without changes
|
package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/services/Data Lake.json
RENAMED
|
File without changes
|
package/out/_next/data/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/services/Payment Service.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[336],{52428:function(e,n,t){var r=t(52322),a=(t(2784),t(61519)),s=t(39097);n.Z=function(e){var n=e.pages,t=e.homePath,c=void 0===t?"/events":t;return(0,r.jsx)("nav",{className:"flex","aria-label":"Breadcrumb",children:(0,r.jsxs)("ol",{className:"flex items-center space-x-4",children:[(0,r.jsx)("li",{children:(0,r.jsx)(s.default,{href:c,children:(0,r.jsxs)("a",{className:"text-gray-400 hover:text-gray-500",children:[(0,r.jsx)(a.tvw,{className:"flex-shrink-0 h-5 w-5","aria-hidden":"true"}),(0,r.jsx)("span",{className:"sr-only",children:"Home"})]})})}),n.map((function(e){return(0,r.jsx)("li",{children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("svg",{className:"flex-shrink-0 h-5 w-5 text-gray-300",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M5.555 17.776l8-16 .894.448-8 16-.894-.448z"})}),(0,r.jsx)(s.default,{href:e.href,children:(0,r.jsx)("a",{className:"ml-4 text-sm font-medium text-gray-500 hover:text-gray-700","aria-current":e.current?"page":void 0,children:e.name})})]})},e.name)}))]})})}},62455:function(e,n,t){t.d(n,{Z:function(){return i}});var r=t(52322),a=t(61519),s=t(39097),c=t(61790);function i(e){var n=e.title,t=e.subtitle,i=e.tags,l=void 0===i?[]:i,o=e.lastModifiedDate,d=e.children,m=e.sidebar,x=e.breadCrumbs,u=e.editUrl,h=e.isOldVersion,f=e.latestVersionUrl,p=e.version,v=e.draft,g=void 0!==v&&v;return(0,r.jsx)("div",{className:"flex relative",children:(0,r.jsx)("div",{className:" flex flex-col w-0 flex-1 ",children:(0,r.jsx)("main",{className:"flex-1 ",children:(0,r.jsx)("div",{className:"py-8 xl:py-10",children:(0,r.jsxs)("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 xl:max-w-7xl xl:grid xl:grid-cols-4",children:[(0,r.jsxs)("div",{className:"xl:col-span-3 xl:pr-8 xl:border-r xl:border-gray-200 flex-col justify-between flex",children:[(0,r.jsxs)("div",{children:[x&&(0,r.jsx)("div",{className:"mb-5 border-b border-gray-100 pb-4",children:x}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"xl:border-b pb-4 flex justify-between ",children:[(0,r.jsxs)("div",{className:"space-y-2 w-full",children:[(0,r.jsxs)("h1",{className:"text-3xl font-bold text-gray-900 relative",children:[n,(0,r.jsxs)("div",{className:"-top-1 relative inline-block ml-2",children:[l.map((function(e,n){return(0,r.jsx)("span",{className:"ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative bg-yellow-100 text-yellow-800",children:e.label},"".concat(e,"-").concat(n))})),g&&(0,r.jsx)("span",{className:"ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative bg-gray-500 text-gray-100",children:"Draft"})]})]}),(0,r.jsx)("div",{className:"text-gray-600 mb-10 text py-2",children:t}),h&&p&&(0,r.jsx)(c.Z,{className:"mt-0 pt-0 w-full",type:"warning",children:(0,r.jsxs)(r.Fragment,{children:["You are currently viewing an old version of this event (",p,").",(0,r.jsx)(s.default,{href:f,children:(0,r.jsx)("a",{className:"block text-sm pl-7 mt-2 text-blue-500 underline",children:"Read latest version \u2192"})})]})})]}),(0,r.jsx)("div",{className:"mt-4 flex space-x-3 md:mt-0",children:u&&(0,r.jsxs)("a",{href:u,target:"_blank",type:"button",className:"hidden 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-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-900",rel:"noreferrer",children:[(0,r.jsx)(a.vdY,{className:"-ml-1 mr-2 h-5 w-5 text-gray-400","aria-hidden":"true"}),(0,r.jsx)("span",{children:"Edit"})]})})]}),(0,r.jsxs)("div",{className:"py-3 xl:pt-6 xl:pb-0",children:[g&&(0,r.jsx)(c.Z,{className:"mt-0 pt-0",type:"warning",children:(0,r.jsxs)(r.Fragment,{children:["This event is currently in ",(0,r.jsx)("span",{className:"underline",children:"draft"})," mode."]})}),(0,r.jsx)("div",{className:"prose max-w-none",children:d})]})]})})]}),(0,r.jsxs)("div",{className:"flex mt-10 ".concat(u?"justify-between":"justify-end"),children:[u&&(0,r.jsxs)("a",{href:u,target:"_blank",className:"flex text-gray-400",rel:"noreferrer",children:[(0,r.jsx)(a.vdY,{className:"top-1 mr-2 relative h-4 w-4 text-gray-400","aria-hidden":"true"}),(0,r.jsx)("span",{children:"Edit this page"})]}),(0,r.jsxs)("span",{className:"italic text-xs mt-2",children:["Last updated on ",o]})]})]}),(0,r.jsx)("div",{className:"md:min-h-screen",children:m})]})})})})})}},61790:function(e,n,t){t.d(n,{Z:function(){return s}});var r=t(52322),a=t(61519);function s(e){var n=e.children,t=e.type,s=e.className,c=void 0===s?"":s,i=function(e){switch(e){case"alert":return{color:"red",icon:a.SI8};case"warning":return{color:"yellow",icon:a.SI8};default:return{color:"indigo",icon:a.AV5}}}(t),l=i.color,o=i.icon;return(0,r.jsx)("div",{className:"bg-".concat(l,"-50 border-l-4 border-").concat(l,"-400 my-4 ").concat(c),children:(0,r.jsx)("div",{className:"flex",children:(0,r.jsxs)("div",{className:"ml-3 py-4",children:[(0,r.jsx)(o,{className:"inline-block mr-2 h-5 w-5 text-".concat(l,"-400"),"aria-hidden":"true"}),n]})})})}},4573:function(e,n,t){t.d(n,{Z:function(){return u}});var r=t(52322),a=t(2784),s=t(14689),c=t(70314),i=(0,c.default)().publicRuntimeConfig,l=(void 0===i?{}:i).basePath,o=void 0===l?"":l,d=function(e){return e.length>"50"?"".concat(e.substring(0,"50"),"..."):e},m=function(e,n){return""!==o?"".concat(o,"/").concat(n,"/").concat(e):"/".concat(n,"/").concat(e)},x=function(e,n,t,r){return"flowchart LR\n\n".concat(n.map((function(n){return"".concat(n.id,"[").concat(n.name,"]:::producer--\x3e").concat(e.id,"[").concat(e.name,"]:::event\n")})).join(""),"\nclassDef event stroke:").concat(r,",stroke-width: 4px;\n\nclassDef producer stroke:#75d7b6,stroke-width: 2px;\n\nclassDef consumer stroke:#818cf8,stroke-width: 2px;\n\n").concat(t.map((function(n){return"".concat(e.id,"[").concat(e.name,"]:::event--\x3e").concat(n.id,"[").concat(n.name,"]:::consumer\n")})).join(""),"\n").concat(n.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\n").concat(t.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\nclick ").concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n\n')};s.Z.initialize({startOnLoad:!0,theme:"forest",securityLevel:"loose",flowchart:{useMaxWidth:!1,width:"1000px"},themeCSS:"\n .node {\n filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .2))\n }\n .mermaid svg {\n width: 10000px\n }\n .node rect {\n fill: white\n }\n ",fontFamily:"Fira Code",width:"100%"});var u=function(e){var n=e.data,t=e.source,c=void 0===t?"event":t,i=e.rootNodeColor,l=e.charts;if((0,a.useEffect)((function(){s.Z.contentLoaded()}),[]),l)return(0,r.jsx)(r.Fragment,{children:l.map((function(e,n){return(0,r.jsx)("div",{className:"mermaid",children:e},"chart-".concat(n))}))});var o="event"===c?function(e,n){var t=e.name,r=e.producers,a=e.consumers,s=void 0===n?"#2563eb":n,c=r.map(d).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:m(e,"services")}})),i=a.map(d).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:m(e,"services")}})),l={id:d(t.replace(/ /g,"_")),name:t,link:m(t,"events")};return x(l,c,i,s)}(n,i):function(e,n){var t=e.publishes,r=e.subscribes,a=e.name,s=void 0===n?"#2563eb":n,c=
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[336],{52428:function(e,n,t){var r=t(52322),a=(t(2784),t(61519)),s=t(39097);n.Z=function(e){var n=e.pages,t=e.homePath,c=void 0===t?"/events":t;return(0,r.jsx)("nav",{className:"flex","aria-label":"Breadcrumb",children:(0,r.jsxs)("ol",{className:"flex items-center space-x-4",children:[(0,r.jsx)("li",{children:(0,r.jsx)(s.default,{href:c,children:(0,r.jsxs)("a",{className:"text-gray-400 hover:text-gray-500",children:[(0,r.jsx)(a.tvw,{className:"flex-shrink-0 h-5 w-5","aria-hidden":"true"}),(0,r.jsx)("span",{className:"sr-only",children:"Home"})]})})}),n.map((function(e){return(0,r.jsx)("li",{children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("svg",{className:"flex-shrink-0 h-5 w-5 text-gray-300",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M5.555 17.776l8-16 .894.448-8 16-.894-.448z"})}),(0,r.jsx)(s.default,{href:e.href,children:(0,r.jsx)("a",{className:"ml-4 text-sm font-medium text-gray-500 hover:text-gray-700","aria-current":e.current?"page":void 0,children:e.name})})]})},e.name)}))]})})}},62455:function(e,n,t){t.d(n,{Z:function(){return i}});var r=t(52322),a=t(61519),s=t(39097),c=t(61790);function i(e){var n=e.title,t=e.subtitle,i=e.tags,l=void 0===i?[]:i,o=e.lastModifiedDate,d=e.children,m=e.sidebar,x=e.breadCrumbs,u=e.editUrl,h=e.isOldVersion,f=e.latestVersionUrl,p=e.version,v=e.draft,g=void 0!==v&&v;return(0,r.jsx)("div",{className:"flex relative",children:(0,r.jsx)("div",{className:" flex flex-col w-0 flex-1 ",children:(0,r.jsx)("main",{className:"flex-1 ",children:(0,r.jsx)("div",{className:"py-8 xl:py-10",children:(0,r.jsxs)("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 xl:max-w-7xl xl:grid xl:grid-cols-4",children:[(0,r.jsxs)("div",{className:"xl:col-span-3 xl:pr-8 xl:border-r xl:border-gray-200 flex-col justify-between flex",children:[(0,r.jsxs)("div",{children:[x&&(0,r.jsx)("div",{className:"mb-5 border-b border-gray-100 pb-4",children:x}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"xl:border-b pb-4 flex justify-between ",children:[(0,r.jsxs)("div",{className:"space-y-2 w-full",children:[(0,r.jsxs)("h1",{className:"text-3xl font-bold text-gray-900 relative",children:[n,(0,r.jsxs)("div",{className:"-top-1 relative inline-block ml-2",children:[l.map((function(e,n){return(0,r.jsx)("span",{className:"ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative bg-yellow-100 text-yellow-800",children:e.label},"".concat(e,"-").concat(n))})),g&&(0,r.jsx)("span",{className:"ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative bg-gray-500 text-gray-100",children:"Draft"})]})]}),(0,r.jsx)("div",{className:"text-gray-600 mb-10 text py-2",children:t}),h&&p&&(0,r.jsx)(c.Z,{className:"mt-0 pt-0 w-full",type:"warning",children:(0,r.jsxs)(r.Fragment,{children:["You are currently viewing an old version of this event (",p,").",(0,r.jsx)(s.default,{href:f,children:(0,r.jsx)("a",{className:"block text-sm pl-7 mt-2 text-blue-500 underline",children:"Read latest version \u2192"})})]})})]}),(0,r.jsx)("div",{className:"mt-4 flex space-x-3 md:mt-0",children:u&&(0,r.jsxs)("a",{href:u,target:"_blank",type:"button",className:"hidden 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-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-900",rel:"noreferrer",children:[(0,r.jsx)(a.vdY,{className:"-ml-1 mr-2 h-5 w-5 text-gray-400","aria-hidden":"true"}),(0,r.jsx)("span",{children:"Edit"})]})})]}),(0,r.jsxs)("div",{className:"py-3 xl:pt-6 xl:pb-0",children:[g&&(0,r.jsx)(c.Z,{className:"mt-0 pt-0",type:"warning",children:(0,r.jsxs)(r.Fragment,{children:["This event is currently in ",(0,r.jsx)("span",{className:"underline",children:"draft"})," mode."]})}),(0,r.jsx)("div",{className:"prose max-w-none",children:d})]})]})})]}),(0,r.jsxs)("div",{className:"flex mt-10 ".concat(u?"justify-between":"justify-end"),children:[u&&(0,r.jsxs)("a",{href:u,target:"_blank",className:"flex text-gray-400",rel:"noreferrer",children:[(0,r.jsx)(a.vdY,{className:"top-1 mr-2 relative h-4 w-4 text-gray-400","aria-hidden":"true"}),(0,r.jsx)("span",{children:"Edit this page"})]}),(0,r.jsxs)("span",{className:"italic text-xs mt-2",children:["Last updated on ",o]})]})]}),(0,r.jsx)("div",{className:"md:min-h-screen",children:m})]})})})})})}},61790:function(e,n,t){t.d(n,{Z:function(){return s}});var r=t(52322),a=t(61519);function s(e){var n=e.children,t=e.type,s=e.className,c=void 0===s?"":s,i=function(e){switch(e){case"alert":return{color:"red",icon:a.SI8};case"warning":return{color:"yellow",icon:a.SI8};default:return{color:"indigo",icon:a.AV5}}}(t),l=i.color,o=i.icon;return(0,r.jsx)("div",{className:"bg-".concat(l,"-50 border-l-4 border-").concat(l,"-400 my-4 ").concat(c),children:(0,r.jsx)("div",{className:"flex",children:(0,r.jsxs)("div",{className:"ml-3 py-4",children:[(0,r.jsx)(o,{className:"inline-block mr-2 h-5 w-5 text-".concat(l,"-400"),"aria-hidden":"true"}),n]})})})}},4573:function(e,n,t){t.d(n,{Z:function(){return u}});var r=t(52322),a=t(2784),s=t(14689),c=t(70314),i=(0,c.default)().publicRuntimeConfig,l=(void 0===i?{}:i).basePath,o=void 0===l?"":l,d=function(e){return e.length>"50"?"".concat(e.substring(0,"50"),"..."):e},m=function(e,n){return""!==o?"".concat(o,"/").concat(n,"/").concat(e):"/".concat(n,"/").concat(e)},x=function(e,n,t,r){return"flowchart LR\n\n".concat(n.map((function(n){return"".concat(n.id,"[").concat(n.name,"]:::producer--\x3e").concat(e.id,"[").concat(e.name,"]:::event\n")})).join(""),"\nclassDef event stroke:").concat(r,",stroke-width: 4px;\n\nclassDef producer stroke:#75d7b6,stroke-width: 2px;\n\nclassDef consumer stroke:#818cf8,stroke-width: 2px;\n\n").concat(t.map((function(n){return"".concat(e.id,"[").concat(e.name,"]:::event--\x3e").concat(n.id,"[").concat(n.name,"]:::consumer\n")})).join(""),"\n").concat(n.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\n").concat(t.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\nclick ").concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n\n')};s.Z.initialize({startOnLoad:!0,theme:"forest",securityLevel:"loose",flowchart:{useMaxWidth:!1,width:"1000px"},themeCSS:"\n .node {\n filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .2))\n }\n .mermaid svg {\n width: 10000px\n }\n .node rect {\n fill: white\n }\n ",fontFamily:"Fira Code",width:"100%"});var u=function(e){var n=e.data,t=e.source,c=void 0===t?"event":t,i=e.rootNodeColor,l=e.charts;if((0,a.useEffect)((function(){s.Z.contentLoaded()}),[]),l)return(0,r.jsx)(r.Fragment,{children:l.map((function(e,n){return(0,r.jsx)("div",{className:"mermaid",children:e},"chart-".concat(n))}))});var o="event"===c?function(e,n){var t=e.name,r=e.producers,a=e.consumers,s=void 0===n?"#2563eb":n,c=r.map(d).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:m(e,"services")}})),i=a.map(d).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:m(e,"services")}})),l={id:d(t.replace(/ /g,"_")),name:t,link:m(t,"events")};return x(l,c,i,s)}(n,i):function(e,n){var t=e.publishes,r=e.subscribes,a=e.name,s=void 0===n?"#2563eb":n,c=r.map(d).map((function(e){return{id:e.name.replace(/ /g,"_"),name:e.name,link:m(e.name,"events")}})),i=t.map(d).map((function(e){return{id:e.name.replace(/ /g,"_"),name:e.name,link:m(e.name,"events")}})),l={id:d(a.replace(/ /g,"_")),name:a,link:m(a,"services")};return x(l,c,i,s)}(n,i);return(0,r.jsx)("div",{className:"mermaid",children:o})}},4488:function(e,n,t){t.d(n,{Z:function(){return s}});var r=t(52322),a=t(61519);function s(e){var n=e.type,t=e.name,s=e.editUrl;return(0,r.jsx)("main",{className:"min-h-full bg-cover bg-top sm:bg-top h-screen",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto px-4 py-16 text-center sm:px-6 sm:py-24 lg:px-8 lg:py-48",children:[(0,r.jsxs)("p",{className:"text-sm font-semibold text-gray-700 text-opacity-50 uppercase tracking-wide blur-xl",children:["Failed to find ",n]}),(0,r.jsx)("h1",{className:"mt-2 text-4xl font-extrabold text-gray-900 tracking-tight sm:text-5xl",children:"Missing Documentation"}),(0,r.jsxs)("p",{className:"mt-2 text-lg font-medium text-gray-700 text-opacity-50 text-center ",children:["Documentation for ",n," is missing!",(0,r.jsx)("span",{className:"block font-bold text-gray-800 underline break-all max-w-2xl mx-auto py-4",children:t})]}),(0,r.jsx)("p",{className:"mt-4 text-xs text-gray-400",children:"Help the eco-system and add the documentation for others \u2764\ufe0f "}),s&&(0,r.jsx)("div",{className:"mt-12",children:(0,r.jsxs)("a",{href:s,target:"_blank",className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-black bg-opacity-75 ",rel:"noreferrer",children:[(0,r.jsx)(a.Qrl,{className:"-ml-1 mr-2 h-5 w-5","aria-hidden":"true"}),"Add missing ",(0,r.jsx)("span",{className:"underline px-1",children:n})," documentation"]})})]})})}},46892:function(e,n,t){function r(e){for(var n=0,t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);for(var r="#",a=0;a<3;a++){r+="00".concat((n>>8*a&255).toString(16)).substr(-2)}return r}t.d(n,{Z:function(){return r}})}}]);
|
package/out/_next/static/chunks/pages/{events-c9e5a0fa7d23d620.js → events-5ffe0ca38bc5f78c.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[695],{80594:function(e,t,n){var r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,d=o||l||Function("return this")(),u=Object.prototype.toString,m=Math.max,f=Math.min,x=function(){return d.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}e.exports=function(e,t,n){var r,a,i,s,c,o,l=0,d=!1,u=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=a;return r=a=void 0,l=t,s=e.apply(i,n)}function b(e){return l=e,c=setTimeout(j,t),d?p(e):s}function y(e){var n=e-o;return void 0===o||n>=t||n<0||u&&e-l>=i}function j(){var e=x();if(y(e))return N(e);c=setTimeout(j,function(e){var n=t-(e-o);return u?f(n,i-(e-l)):n}(e))}function N(e){return c=void 0,g&&r?p(e):(r=a=void 0,s)}function w(){var e=x(),n=y(e);if(r=arguments,a=this,o=e,n){if(void 0===c)return b(o);if(u)return c=setTimeout(j,t),p(o)}return void 0===c&&(c=setTimeout(j,t)),s}return t=v(t)||0,h(n)&&(d=!!n.leading,i=(u="maxWait"in n)?m(v(n.maxWait)||0,t):i,g="trailing"in n?!!n.trailing:g),w.cancel=function(){void 0!==c&&clearTimeout(c),l=0,r=o=a=c=void 0},w.flush=function(){return void 0===c?s:N(x())},w}},74461:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/events",function(){return n(68209)}])},90526:function(e,t,n){"use strict";var r=n(52322),a=(n(2784),n(39097)),i=n(17962),s=n(46892),c=n(4573);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}t.Z=function(e){var t=e.events,n=void 0===t?[]:t,l=e.showMermaidDiagrams,d=void 0!==l&&l;return(0,r.jsx)("ul",{className:"mt-3 grid grid-cols-1 gap-5 md:grid-cols-2",children:n.map((function(e){var t=e.draft;return(0,r.jsx)("li",{className:"flex",children:(0,r.jsx)(a.default,{href:"/events/".concat(e.name),children:(0,r.jsxs)("a",{className:"flex shadow-sm rounded-md w-full",children:[(0,r.jsx)("div",{style:{background:(0,s.Z)(e.name)},className:o("bg-red-500","flex-shrink-0 flex items-center justify-center w-4 text-white text-sm font-medium rounded-l-md")}),(0,r.jsx)("div",{className:"w-full border-t border-r border-b border-gray-200 bg-white rounded-r-md ",children:(0,r.jsxs)("div",{className:"p-4 text-sm space-y-2 flex flex-col justify-between h-full",children:[(0,r.jsxs)("div",{className:"text-gray-900 font-bold hover:text-gray-600 break-all",children:[e.name,(0,r.jsxs)("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",children:["v",e.version]}),t&&(0,r.jsx)("span",{className:"ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-500 text-gray-100",children:"Draft"})]}),(0,r.jsx)("div",{className:"text-gray-500 text-xs font-normal mt-2 ",children:e.summary}),d&&(0,r.jsx)("div",{className:"h-full items-center flex",children:(0,r.jsx)(c.Z,{source:"event",data:e,rootNodeColor:(0,s.Z)(e.name)})}),(0,r.jsxs)("div",{className:"flex space-x-4 text-xs pt-2 relative bottom-0 left-0",children:[(0,r.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,r.jsx)(i.FMB,{className:"h-4 w-4 text-green-400 inline-block mr-2","aria-hidden":"true"}),"Producers (",e.producers.length,")"]}),(0,r.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,r.jsx)(i.FMB,{className:"h-4 w-4 text-indigo-400 inline-block mr-2","aria-hidden":"true"}),"Subscribers (",e.consumers.length,")"]})]})]})})]})})},e.name)}))})}},4573:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(52322),a=n(2784),i=n(14689),s=n(70314),c=(0,s.default)().publicRuntimeConfig,o=(void 0===c?{}:c).basePath,l=void 0===o?"":o,d=function(e){return e.length>"50"?"".concat(e.substring(0,"50"),"..."):e},u=function(e,t){return""!==l?"".concat(l,"/").concat(t,"/").concat(e):"/".concat(t,"/").concat(e)},m=function(e,t,n,r){return"flowchart LR\n\n".concat(t.map((function(t){return"".concat(t.id,"[").concat(t.name,"]:::producer--\x3e").concat(e.id,"[").concat(e.name,"]:::event\n")})).join(""),"\nclassDef event stroke:").concat(r,",stroke-width: 4px;\n\nclassDef producer stroke:#75d7b6,stroke-width: 2px;\n\nclassDef consumer stroke:#818cf8,stroke-width: 2px;\n\n").concat(n.map((function(t){return"".concat(e.id,"[").concat(e.name,"]:::event--\x3e").concat(t.id,"[").concat(t.name,"]:::consumer\n")})).join(""),"\n").concat(t.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\n").concat(n.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\nclick ").concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n\n')};i.Z.initialize({startOnLoad:!0,theme:"forest",securityLevel:"loose",flowchart:{useMaxWidth:!1,width:"1000px"},themeCSS:"\n .node {\n filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .2))\n }\n .mermaid svg {\n width: 10000px\n }\n .node rect {\n fill: white\n }\n ",fontFamily:"Fira Code",width:"100%"});var f=function(e){var t=e.data,n=e.source,s=void 0===n?"event":n,c=e.rootNodeColor,o=e.charts;if((0,a.useEffect)((function(){i.Z.contentLoaded()}),[]),o)return(0,r.jsx)(r.Fragment,{children:o.map((function(e,t){return(0,r.jsx)("div",{className:"mermaid",children:e},"chart-".concat(t))}))});var l="event"===s?function(e,t){var n=e.name,r=e.producers,a=e.consumers,i=void 0===t?"#2563eb":t,s=r.map(d).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:u(e,"services")}})),c=a.map(d).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:u(e,"services")}})),o={id:d(n.replace(/ /g,"_")),name:n,link:u(n,"events")};return m(o,s,c,i)}(t,c):function(e,t){var n=e.publishes,r=e.subscribes,a=e.name,i=void 0===t?"#2563eb":t,s=n.map(d).map((function(e){return{id:e.name.replace(/ /g,"_"),name:e.name,link:u(e.name,"events")}})),c=r.map(d).map((function(e){return{id:e.name.replace(/ /g,"_"),name:e.name,link:u(e.name,"events")}})),o={id:d(a.replace(/ /g,"_")),name:a,link:u(a,"services")};return m(o,s,c,i)}(t,c);return(0,r.jsx)("div",{className:"mermaid",children:l})}},68209:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return g},default:function(){return p}});var r=n(52322),a=n(2784),i=n(97729),s=n(80594),c=n.n(s),o=n(51930),l=n(54643),d=n(61519),u=n(90526),m=n(55008);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 x(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 h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var v=[{name:"Name",href:"#",current:!0},{name:"Version",href:"#",current:!1},{name:"Domains",href:"#",current:!1}],g=!0;function p(e){var t=e.events,n=e.services,s=[{id:"services",name:"Filter by Services (".concat(n.length,")"),options:n.map((function(e){return{value:e,label:e,checked:!1}}))}],g=(0,a.useState)({services:[]}),p=g[0],b=g[1],y=(0,a.useState)(!1),j=y[0],N=y[1],w=(0,a.useState)(t),k=w[0],_=w[1],O=(0,a.useState)(""),S=O[0],C=O[1];(0,a.useEffect)((function(){_(function(){if(!p.services&&!S)return t;var e=t;return p.services.length>0&&(e=e.filter((function(e){var t=p.services,n=e.consumers.some((function(e){return t.indexOf(e)>-1})),r=e.producers.some((function(e){return t.indexOf(e)>-1}));return n||r}))),S&&(e=e.filter((function(e){return e.name.toLowerCase().includes(S.toLowerCase())}))),e}())}),[p,S]);var F=(0,a.useCallback)(c()((function(e){C(e.target.value)}),500),[k]),E=!!S||p.services.length>0,D=(0,m.ZR)().title;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{children:(0,r.jsxs)("title",{children:[D," - All Events"]})}),(0,r.jsxs)("main",{className:"max-w-7xl mx-auto min-h-screen px-4 md:px-0",children:[(0,r.jsxs)("div",{className:"relative z-10 flex items-baseline justify-between pt-8 pb-6 border-b border-gray-200",children:[(0,r.jsxs)("h1",{className:"text-2xl font-extrabold tracking-tight text-gray-900",children:["Events (",t.length,")"]}),(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsxs)(o.v,{as:"div",className:"hidden relative text-left",children:[(0,r.jsx)("div",{children:(0,r.jsxs)(o.v.Button,{className:"group inline-flex justify-center text-sm font-medium text-gray-700 hover:text-gray-900",children:["Sort",(0,r.jsx)(d.v4q,{className:"flex-shrink-0 -mr-1 ml-1 h-5 w-5 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"})]})}),(0,r.jsx)(l.u,{as:a.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,r.jsx)(o.v.Items,{className:"origin-top-right absolute right-0 mt-2 w-40 rounded-md shadow-2xl bg-white ring-1 ring-black ring-opacity-5 focus:outline-none",children:(0,r.jsx)("div",{className:"py-1",children:v.map((function(e){return(0,r.jsx)(o.v.Item,{children:function(t){var n=t.active;return(0,r.jsx)("a",{href:e.href,className:h(e.current?"font-medium text-gray-900":"text-gray-500",n?"bg-gray-100":"","block px-4 py-2 text-sm"),children:e.name})}},e.name)}))})})})]})})]}),(0,r.jsx)("section",{className:"pt-6 pb-24",children:(0,r.jsxs)("div",{className:"grid grid-cols-4 gap-x-8 gap-y-10",children:[(0,r.jsxs)("form",{className:"hidden lg:block",children:[(0,r.jsxs)("div",{className:"border-b border-gray-200 pb-6",children:[(0,r.jsx)("label",{htmlFor:"event",className:"font-bold block text-sm font-medium text-gray-700",children:"Search Events"}),(0,r.jsxs)("div",{className:"mt-1 relative rounded-md shadow-sm",children:[(0,r.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,r.jsx)(d.W1M,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})}),(0,r.jsx)("input",{type:"text",name:"event",id:"event",onChange:F,className:"focus:ring-gray-500 focus:border-gray-500 block w-full pl-10 sm:text-sm border-gray-300 rounded-md"})]})]}),s.map((function(e){return(0,r.jsxs)("div",{className:"border-b border-gray-200 py-6",children:[(0,r.jsx)("h3",{className:"-my-3 flow-root",children:(0,r.jsx)("div",{className:"py-3 bg-white w-full flex items-center justify-between text-sm text-gray-400 hover:text-gray-500",children:(0,r.jsx)("span",{className:"font-bold font-medium text-gray-900",children:e.name})})}),(0,r.jsx)("div",{className:"pt-6",children:(0,r.jsx)("div",{className:"space-y-4",children:e.options.map((function(t,n){return(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("input",{id:"filter-".concat(e.id,"-").concat(n),name:"".concat(e.id,"[]"),defaultValue:t.value,type:"checkbox",onChange:function(n){return function(e,t,n){if(n.target.checked){var r=p[t].concat([e.value]);b(x({},p,f({},t,r)))}else{var a=p[t].filter((function(t){return t!==e.value}));b(x({},p,f({},t,a)))}}(t,e.id,n)},defaultChecked:t.checked,className:"h-4 w-4 border-gray-300 rounded text-gray-600 focus:ring-gray-500"}),(0,r.jsx)("label",{htmlFor:"filter-".concat(e.id,"-").concat(n),className:"ml-3 text-sm text-gray-600",children:t.label})]},t.value)}))})})]},e.id)})),(0,r.jsxs)("div",{className:"border-b border-gray-200 py-6",children:[(0,r.jsx)("h3",{className:"-my-3 flow-root",children:(0,r.jsx)("div",{className:"py-3 bg-white w-full flex items-center justify-between text-sm text-gray-400 hover:text-gray-500",children:(0,r.jsx)("span",{className:"font-bold font-medium text-gray-900",children:"Features"})})}),(0,r.jsx)("div",{className:"pt-6",children:(0,r.jsx)("div",{className:"space-y-4",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("input",{id:"show-mermaid",type:"checkbox",onChange:function(e){return N(e.target.checked)},defaultChecked:j,className:"h-4 w-4 border-gray-300 rounded text-gray-600 focus:ring-gray-500"}),(0,r.jsx)("label",{htmlFor:"show-mermaid",className:"ml-3 text-sm text-gray-600",children:"Show Mermaid Diagrams"})]})})})]})]}),(0,r.jsx)("div",{className:"col-span-4 lg:col-span-3",children:(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-gray-500 text-xs font-medium uppercase tracking-wide",children:E?"Filtered Events (".concat(k.length,"/").concat(t.length,")"):"All Events (".concat(t.length,")")}),(0,r.jsx)(u.Z,{events:k,showMermaidDiagrams:j}),0===k.length&&(0,r.jsx)("div",{className:"text-gray-400 flex h-96 justify-center items-center",children:(0,r.jsxs)("div",{children:[(0,r.jsx)(d.W1M,{className:"w-6 h-6 inline-block mr-1"}),"No events found."]})})]})})]})})]})]})}},46892:function(e,t,n){"use strict";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}})}},function(e){e.O(0,[812,519,962,274,774,888,179],(function(){return t=74461,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[695],{80594:function(e,t,n){var r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,d=o||l||Function("return this")(),u=Object.prototype.toString,m=Math.max,f=Math.min,x=function(){return d.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}e.exports=function(e,t,n){var r,a,i,s,c,o,l=0,d=!1,u=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=a;return r=a=void 0,l=t,s=e.apply(i,n)}function b(e){return l=e,c=setTimeout(j,t),d?p(e):s}function y(e){var n=e-o;return void 0===o||n>=t||n<0||u&&e-l>=i}function j(){var e=x();if(y(e))return N(e);c=setTimeout(j,function(e){var n=t-(e-o);return u?f(n,i-(e-l)):n}(e))}function N(e){return c=void 0,g&&r?p(e):(r=a=void 0,s)}function w(){var e=x(),n=y(e);if(r=arguments,a=this,o=e,n){if(void 0===c)return b(o);if(u)return c=setTimeout(j,t),p(o)}return void 0===c&&(c=setTimeout(j,t)),s}return t=v(t)||0,h(n)&&(d=!!n.leading,i=(u="maxWait"in n)?m(v(n.maxWait)||0,t):i,g="trailing"in n?!!n.trailing:g),w.cancel=function(){void 0!==c&&clearTimeout(c),l=0,r=o=a=c=void 0},w.flush=function(){return void 0===c?s:N(x())},w}},74461:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/events",function(){return n(68209)}])},90526:function(e,t,n){"use strict";var r=n(52322),a=(n(2784),n(39097)),i=n(17962),s=n(46892),c=n(4573);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}t.Z=function(e){var t=e.events,n=void 0===t?[]:t,l=e.showMermaidDiagrams,d=void 0!==l&&l;return(0,r.jsx)("ul",{className:"mt-3 grid grid-cols-1 gap-5 md:grid-cols-2",children:n.map((function(e){var t=e.draft;return(0,r.jsx)("li",{className:"flex",children:(0,r.jsx)(a.default,{href:"/events/".concat(e.name),children:(0,r.jsxs)("a",{className:"flex shadow-sm rounded-md w-full",children:[(0,r.jsx)("div",{style:{background:(0,s.Z)(e.name)},className:o("bg-red-500","flex-shrink-0 flex items-center justify-center w-4 text-white text-sm font-medium rounded-l-md")}),(0,r.jsx)("div",{className:"w-full border-t border-r border-b border-gray-200 bg-white rounded-r-md ",children:(0,r.jsxs)("div",{className:"p-4 text-sm space-y-2 flex flex-col justify-between h-full",children:[(0,r.jsxs)("div",{className:"text-gray-900 font-bold hover:text-gray-600 break-all",children:[e.name,(0,r.jsxs)("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",children:["v",e.version]}),t&&(0,r.jsx)("span",{className:"ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-500 text-gray-100",children:"Draft"})]}),(0,r.jsx)("div",{className:"text-gray-500 text-xs font-normal mt-2 ",children:e.summary}),d&&(0,r.jsx)("div",{className:"h-full items-center flex",children:(0,r.jsx)(c.Z,{source:"event",data:e,rootNodeColor:(0,s.Z)(e.name)})}),(0,r.jsxs)("div",{className:"flex space-x-4 text-xs pt-2 relative bottom-0 left-0",children:[(0,r.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,r.jsx)(i.FMB,{className:"h-4 w-4 text-green-400 inline-block mr-2","aria-hidden":"true"}),"Producers (",e.producers.length,")"]}),(0,r.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,r.jsx)(i.FMB,{className:"h-4 w-4 text-indigo-400 inline-block mr-2","aria-hidden":"true"}),"Subscribers (",e.consumers.length,")"]})]})]})})]})})},e.name)}))})}},4573:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(52322),a=n(2784),i=n(14689),s=n(70314),c=(0,s.default)().publicRuntimeConfig,o=(void 0===c?{}:c).basePath,l=void 0===o?"":o,d=function(e){return e.length>"50"?"".concat(e.substring(0,"50"),"..."):e},u=function(e,t){return""!==l?"".concat(l,"/").concat(t,"/").concat(e):"/".concat(t,"/").concat(e)},m=function(e,t,n,r){return"flowchart LR\n\n".concat(t.map((function(t){return"".concat(t.id,"[").concat(t.name,"]:::producer--\x3e").concat(e.id,"[").concat(e.name,"]:::event\n")})).join(""),"\nclassDef event stroke:").concat(r,",stroke-width: 4px;\n\nclassDef producer stroke:#75d7b6,stroke-width: 2px;\n\nclassDef consumer stroke:#818cf8,stroke-width: 2px;\n\n").concat(n.map((function(t){return"".concat(e.id,"[").concat(e.name,"]:::event--\x3e").concat(t.id,"[").concat(t.name,"]:::consumer\n")})).join(""),"\n").concat(t.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\n").concat(n.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\nclick ").concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n\n')};i.Z.initialize({startOnLoad:!0,theme:"forest",securityLevel:"loose",flowchart:{useMaxWidth:!1,width:"1000px"},themeCSS:"\n .node {\n filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .2))\n }\n .mermaid svg {\n width: 10000px\n }\n .node rect {\n fill: white\n }\n ",fontFamily:"Fira Code",width:"100%"});var f=function(e){var t=e.data,n=e.source,s=void 0===n?"event":n,c=e.rootNodeColor,o=e.charts;if((0,a.useEffect)((function(){i.Z.contentLoaded()}),[]),o)return(0,r.jsx)(r.Fragment,{children:o.map((function(e,t){return(0,r.jsx)("div",{className:"mermaid",children:e},"chart-".concat(t))}))});var l="event"===s?function(e,t){var n=e.name,r=e.producers,a=e.consumers,i=void 0===t?"#2563eb":t,s=r.map(d).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:u(e,"services")}})),c=a.map(d).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:u(e,"services")}})),o={id:d(n.replace(/ /g,"_")),name:n,link:u(n,"events")};return m(o,s,c,i)}(t,c):function(e,t){var n=e.publishes,r=e.subscribes,a=e.name,i=void 0===t?"#2563eb":t,s=r.map(d).map((function(e){return{id:e.name.replace(/ /g,"_"),name:e.name,link:u(e.name,"events")}})),c=n.map(d).map((function(e){return{id:e.name.replace(/ /g,"_"),name:e.name,link:u(e.name,"events")}})),o={id:d(a.replace(/ /g,"_")),name:a,link:u(a,"services")};return m(o,s,c,i)}(t,c);return(0,r.jsx)("div",{className:"mermaid",children:l})}},68209:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return g},default:function(){return p}});var r=n(52322),a=n(2784),i=n(97729),s=n(80594),c=n.n(s),o=n(51930),l=n(54643),d=n(61519),u=n(90526),m=n(55008);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 x(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 h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var v=[{name:"Name",href:"#",current:!0},{name:"Version",href:"#",current:!1},{name:"Domains",href:"#",current:!1}],g=!0;function p(e){var t=e.events,n=e.services,s=[{id:"services",name:"Filter by Services (".concat(n.length,")"),options:n.map((function(e){return{value:e,label:e,checked:!1}}))}],g=(0,a.useState)({services:[]}),p=g[0],b=g[1],y=(0,a.useState)(!1),j=y[0],N=y[1],w=(0,a.useState)(t),k=w[0],_=w[1],O=(0,a.useState)(""),S=O[0],C=O[1];(0,a.useEffect)((function(){_(function(){if(!p.services&&!S)return t;var e=t;return p.services.length>0&&(e=e.filter((function(e){var t=p.services,n=e.consumers.some((function(e){return t.indexOf(e)>-1})),r=e.producers.some((function(e){return t.indexOf(e)>-1}));return n||r}))),S&&(e=e.filter((function(e){return e.name.toLowerCase().includes(S.toLowerCase())}))),e}())}),[p,S]);var F=(0,a.useCallback)(c()((function(e){C(e.target.value)}),500),[k]),E=!!S||p.services.length>0,D=(0,m.ZR)().title;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{children:(0,r.jsxs)("title",{children:[D," - All Events"]})}),(0,r.jsxs)("main",{className:"max-w-7xl mx-auto min-h-screen px-4 md:px-0",children:[(0,r.jsxs)("div",{className:"relative z-10 flex items-baseline justify-between pt-8 pb-6 border-b border-gray-200",children:[(0,r.jsxs)("h1",{className:"text-2xl font-extrabold tracking-tight text-gray-900",children:["Events (",t.length,")"]}),(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsxs)(o.v,{as:"div",className:"hidden relative text-left",children:[(0,r.jsx)("div",{children:(0,r.jsxs)(o.v.Button,{className:"group inline-flex justify-center text-sm font-medium text-gray-700 hover:text-gray-900",children:["Sort",(0,r.jsx)(d.v4q,{className:"flex-shrink-0 -mr-1 ml-1 h-5 w-5 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"})]})}),(0,r.jsx)(l.u,{as:a.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,r.jsx)(o.v.Items,{className:"origin-top-right absolute right-0 mt-2 w-40 rounded-md shadow-2xl bg-white ring-1 ring-black ring-opacity-5 focus:outline-none",children:(0,r.jsx)("div",{className:"py-1",children:v.map((function(e){return(0,r.jsx)(o.v.Item,{children:function(t){var n=t.active;return(0,r.jsx)("a",{href:e.href,className:h(e.current?"font-medium text-gray-900":"text-gray-500",n?"bg-gray-100":"","block px-4 py-2 text-sm"),children:e.name})}},e.name)}))})})})]})})]}),(0,r.jsx)("section",{className:"pt-6 pb-24",children:(0,r.jsxs)("div",{className:"grid grid-cols-4 gap-x-8 gap-y-10",children:[(0,r.jsxs)("form",{className:"hidden lg:block",children:[(0,r.jsxs)("div",{className:"border-b border-gray-200 pb-6",children:[(0,r.jsx)("label",{htmlFor:"event",className:"font-bold block text-sm font-medium text-gray-700",children:"Search Events"}),(0,r.jsxs)("div",{className:"mt-1 relative rounded-md shadow-sm",children:[(0,r.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,r.jsx)(d.W1M,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})}),(0,r.jsx)("input",{type:"text",name:"event",id:"event",onChange:F,className:"focus:ring-gray-500 focus:border-gray-500 block w-full pl-10 sm:text-sm border-gray-300 rounded-md"})]})]}),s.map((function(e){return(0,r.jsxs)("div",{className:"border-b border-gray-200 py-6",children:[(0,r.jsx)("h3",{className:"-my-3 flow-root",children:(0,r.jsx)("div",{className:"py-3 bg-white w-full flex items-center justify-between text-sm text-gray-400 hover:text-gray-500",children:(0,r.jsx)("span",{className:"font-bold font-medium text-gray-900",children:e.name})})}),(0,r.jsx)("div",{className:"pt-6",children:(0,r.jsx)("div",{className:"space-y-4",children:e.options.map((function(t,n){return(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("input",{id:"filter-".concat(e.id,"-").concat(n),name:"".concat(e.id,"[]"),defaultValue:t.value,type:"checkbox",onChange:function(n){return function(e,t,n){if(n.target.checked){var r=p[t].concat([e.value]);b(x({},p,f({},t,r)))}else{var a=p[t].filter((function(t){return t!==e.value}));b(x({},p,f({},t,a)))}}(t,e.id,n)},defaultChecked:t.checked,className:"h-4 w-4 border-gray-300 rounded text-gray-600 focus:ring-gray-500"}),(0,r.jsx)("label",{htmlFor:"filter-".concat(e.id,"-").concat(n),className:"ml-3 text-sm text-gray-600",children:t.label})]},t.value)}))})})]},e.id)})),(0,r.jsxs)("div",{className:"border-b border-gray-200 py-6",children:[(0,r.jsx)("h3",{className:"-my-3 flow-root",children:(0,r.jsx)("div",{className:"py-3 bg-white w-full flex items-center justify-between text-sm text-gray-400 hover:text-gray-500",children:(0,r.jsx)("span",{className:"font-bold font-medium text-gray-900",children:"Features"})})}),(0,r.jsx)("div",{className:"pt-6",children:(0,r.jsx)("div",{className:"space-y-4",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("input",{id:"show-mermaid",type:"checkbox",onChange:function(e){return N(e.target.checked)},defaultChecked:j,className:"h-4 w-4 border-gray-300 rounded text-gray-600 focus:ring-gray-500"}),(0,r.jsx)("label",{htmlFor:"show-mermaid",className:"ml-3 text-sm text-gray-600",children:"Show Mermaid Diagrams"})]})})})]})]}),(0,r.jsx)("div",{className:"col-span-4 lg:col-span-3",children:(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-gray-500 text-xs font-medium uppercase tracking-wide",children:E?"Filtered Events (".concat(k.length,"/").concat(t.length,")"):"All Events (".concat(t.length,")")}),(0,r.jsx)(u.Z,{events:k,showMermaidDiagrams:j}),0===k.length&&(0,r.jsx)("div",{className:"text-gray-400 flex h-96 justify-center items-center",children:(0,r.jsxs)("div",{children:[(0,r.jsx)(d.W1M,{className:"w-6 h-6 inline-block mr-1"}),"No events found."]})})]})})]})})]})]})}},46892:function(e,t,n){"use strict";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}})}},function(e){e.O(0,[812,519,962,274,774,888,179],(function(){return t=74461,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
package/out/_next/static/chunks/pages/{services-30e4132ef02b1784.js → services-a4eaef0c2abfdf9c.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{17891:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/services",function(){return r(46378)}])},44938:function(e,n,r){"use strict";var t=r(52322),a=(r(2784),r(39097)),s=r(17962),c=r(4573),i=r(46892);n.Z=function(e){var n=e.services,r=void 0===n?[]:n,o=e.showMermaidDiagrams,l=void 0!==o&&o;return(0,t.jsx)("ul",{className:"mt-3 grid grid-cols-1 gap-5 md:grid-cols-2",children:r.map((function(e){var n=e.draft;return(0,t.jsx)("li",{className:"flex",children:(0,t.jsx)(a.default,{href:"/services/".concat(e.name),children:(0,t.jsxs)("a",{className:"flex shadow-sm w-full",children:[(0,t.jsx)("div",{style:{background:(0,i.Z)(e.name)},className:"w-4 rounded-l-md"}),(0,t.jsx)("div",{className:"w-full border-t border-r border-b border-gray-200 bg-white rounded-r-md ",children:(0,t.jsxs)("div",{className:"p-4 text-sm space-y-2 flex flex-col justify-between h-full",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-gray-900 font-bold",children:e.name}),n&&(0,t.jsx)("span",{className:"ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-500 text-gray-100",children:"Draft"}),(0,t.jsx)("div",{className:"text-gray-500 text-xs font-normal mt-2 line-clamp-3",children:e.summary})]}),l&&(0,t.jsx)("div",{className:"h-full items-center flex",children:(0,t.jsx)(c.Z,{source:"service",data:e,rootNodeColor:(0,i.Z)(e.name)})}),(0,t.jsxs)("div",{className:"flex space-x-4 text-xs pt-2 relative bottom-0 left-0",children:[(0,t.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,t.jsx)(s.FMB,{className:"h-4 w-4 text-green-400 inline-block mr-2","aria-hidden":"true"}),"Subscribe Events (",e.subscribes.length,")"]}),(0,t.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,t.jsx)(s.FMB,{className:"h-4 w-4 text-indigo-400 inline-block mr-2","aria-hidden":"true"}),"Publish Events (",e.publishes.length,")"]})]})]})})]})})},e.name)}))})}},4573:function(e,n,r){"use strict";r.d(n,{Z:function(){return x}});var t=r(52322),a=r(2784),s=r(14689),c=r(70314),i=(0,c.default)().publicRuntimeConfig,o=(void 0===i?{}:i).basePath,l=void 0===o?"":o,d=function(e){return e.length>"50"?"".concat(e.substring(0,"50"),"..."):e},m=function(e,n){return""!==l?"".concat(l,"/").concat(n,"/").concat(e):"/".concat(n,"/").concat(e)},u=function(e,n,r,t){return"flowchart LR\n\n".concat(n.map((function(n){return"".concat(n.id,"[").concat(n.name,"]:::producer--\x3e").concat(e.id,"[").concat(e.name,"]:::event\n")})).join(""),"\nclassDef event stroke:").concat(t,",stroke-width: 4px;\n\nclassDef producer stroke:#75d7b6,stroke-width: 2px;\n\nclassDef consumer stroke:#818cf8,stroke-width: 2px;\n\n").concat(r.map((function(n){return"".concat(e.id,"[").concat(e.name,"]:::event--\x3e").concat(n.id,"[").concat(n.name,"]:::consumer\n")})).join(""),"\n").concat(n.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\n").concat(r.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\nclick ").concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n\n')};s.Z.initialize({startOnLoad:!0,theme:"forest",securityLevel:"loose",flowchart:{useMaxWidth:!1,width:"1000px"},themeCSS:"\n .node {\n filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .2))\n }\n .mermaid svg {\n width: 10000px\n }\n .node rect {\n fill: white\n }\n ",fontFamily:"Fira Code",width:"100%"});var x=function(e){var n=e.data,r=e.source,c=void 0===r?"event":r,i=e.rootNodeColor,o=e.charts;if((0,a.useEffect)((function(){s.Z.contentLoaded()}),[]),o)return(0,t.jsx)(t.Fragment,{children:o.map((function(e,n){return(0,t.jsx)("div",{className:"mermaid",children:e},"chart-".concat(n))}))});var l="event"===c?function(e,n){var r=e.name,t=e.producers,a=e.consumers,s=void 0===n?"#2563eb":n,c=t.map(d).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:m(e,"services")}})),i=a.map(d).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:m(e,"services")}})),o={id:d(r.replace(/ /g,"_")),name:r,link:m(r,"events")};return u(o,c,i,s)}(n,i):function(e,n){var r=e.publishes,t=e.subscribes,a=e.name,s=void 0===n?"#2563eb":n,c=
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{17891:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/services",function(){return r(46378)}])},44938:function(e,n,r){"use strict";var t=r(52322),a=(r(2784),r(39097)),s=r(17962),c=r(4573),i=r(46892);n.Z=function(e){var n=e.services,r=void 0===n?[]:n,o=e.showMermaidDiagrams,l=void 0!==o&&o;return(0,t.jsx)("ul",{className:"mt-3 grid grid-cols-1 gap-5 md:grid-cols-2",children:r.map((function(e){var n=e.draft;return(0,t.jsx)("li",{className:"flex",children:(0,t.jsx)(a.default,{href:"/services/".concat(e.name),children:(0,t.jsxs)("a",{className:"flex shadow-sm w-full",children:[(0,t.jsx)("div",{style:{background:(0,i.Z)(e.name)},className:"w-4 rounded-l-md"}),(0,t.jsx)("div",{className:"w-full border-t border-r border-b border-gray-200 bg-white rounded-r-md ",children:(0,t.jsxs)("div",{className:"p-4 text-sm space-y-2 flex flex-col justify-between h-full",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-gray-900 font-bold",children:e.name}),n&&(0,t.jsx)("span",{className:"ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-500 text-gray-100",children:"Draft"}),(0,t.jsx)("div",{className:"text-gray-500 text-xs font-normal mt-2 line-clamp-3",children:e.summary})]}),l&&(0,t.jsx)("div",{className:"h-full items-center flex",children:(0,t.jsx)(c.Z,{source:"service",data:e,rootNodeColor:(0,i.Z)(e.name)})}),(0,t.jsxs)("div",{className:"flex space-x-4 text-xs pt-2 relative bottom-0 left-0",children:[(0,t.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,t.jsx)(s.FMB,{className:"h-4 w-4 text-green-400 inline-block mr-2","aria-hidden":"true"}),"Subscribe Events (",e.subscribes.length,")"]}),(0,t.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,t.jsx)(s.FMB,{className:"h-4 w-4 text-indigo-400 inline-block mr-2","aria-hidden":"true"}),"Publish Events (",e.publishes.length,")"]})]})]})})]})})},e.name)}))})}},4573:function(e,n,r){"use strict";r.d(n,{Z:function(){return x}});var t=r(52322),a=r(2784),s=r(14689),c=r(70314),i=(0,c.default)().publicRuntimeConfig,o=(void 0===i?{}:i).basePath,l=void 0===o?"":o,d=function(e){return e.length>"50"?"".concat(e.substring(0,"50"),"..."):e},m=function(e,n){return""!==l?"".concat(l,"/").concat(n,"/").concat(e):"/".concat(n,"/").concat(e)},u=function(e,n,r,t){return"flowchart LR\n\n".concat(n.map((function(n){return"".concat(n.id,"[").concat(n.name,"]:::producer--\x3e").concat(e.id,"[").concat(e.name,"]:::event\n")})).join(""),"\nclassDef event stroke:").concat(t,",stroke-width: 4px;\n\nclassDef producer stroke:#75d7b6,stroke-width: 2px;\n\nclassDef consumer stroke:#818cf8,stroke-width: 2px;\n\n").concat(r.map((function(n){return"".concat(e.id,"[").concat(e.name,"]:::event--\x3e").concat(n.id,"[").concat(n.name,"]:::consumer\n")})).join(""),"\n").concat(n.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\n").concat(r.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\nclick ").concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n\n')};s.Z.initialize({startOnLoad:!0,theme:"forest",securityLevel:"loose",flowchart:{useMaxWidth:!1,width:"1000px"},themeCSS:"\n .node {\n filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .2))\n }\n .mermaid svg {\n width: 10000px\n }\n .node rect {\n fill: white\n }\n ",fontFamily:"Fira Code",width:"100%"});var x=function(e){var n=e.data,r=e.source,c=void 0===r?"event":r,i=e.rootNodeColor,o=e.charts;if((0,a.useEffect)((function(){s.Z.contentLoaded()}),[]),o)return(0,t.jsx)(t.Fragment,{children:o.map((function(e,n){return(0,t.jsx)("div",{className:"mermaid",children:e},"chart-".concat(n))}))});var l="event"===c?function(e,n){var r=e.name,t=e.producers,a=e.consumers,s=void 0===n?"#2563eb":n,c=t.map(d).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:m(e,"services")}})),i=a.map(d).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:m(e,"services")}})),o={id:d(r.replace(/ /g,"_")),name:r,link:m(r,"events")};return u(o,c,i,s)}(n,i):function(e,n){var r=e.publishes,t=e.subscribes,a=e.name,s=void 0===n?"#2563eb":n,c=t.map(d).map((function(e){return{id:e.name.replace(/ /g,"_"),name:e.name,link:m(e.name,"events")}})),i=r.map(d).map((function(e){return{id:e.name.replace(/ /g,"_"),name:e.name,link:m(e.name,"events")}})),o={id:d(a.replace(/ /g,"_")),name:a,link:m(a,"services")};return u(o,c,i,s)}(n,i);return(0,t.jsx)("div",{className:"mermaid",children:l})}},46378:function(e,n,r){"use strict";r.r(n),r.d(n,{__N_SSG:function(){return x},default:function(){return h}});var t=r(52322),a=r(2784),s=r(97729),c=r(51930),i=r(54643),o=r(61519),l=r(44938),d=r(55008);function m(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.filter(Boolean).join(" ")}var u=[{name:"Name",href:"#",current:!0},{name:"Version",href:"#",current:!1},{name:"Domains",href:"#",current:!1}],x=!0;function h(e){var n=e.services,r=(0,a.useState)(!1),x=r[0],h=r[1],f=(0,d.ZR)().title;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{children:(0,t.jsxs)("title",{children:[f," - All Services"]})}),(0,t.jsxs)("main",{className:"max-w-7xl mx-auto md:min-h-screen px-4 md:px-0",children:[(0,t.jsxs)("div",{className:"relative z-10 flex items-baseline justify-between pt-8 pb-6 border-b border-gray-200",children:[(0,t.jsxs)("h1",{className:"text-2xl font-extrabold tracking-tight text-gray-900",children:["Services (",n.length,")"]}),(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsxs)(c.v,{as:"div",className:"relative hidden text-left",children:[(0,t.jsx)("div",{children:(0,t.jsxs)(c.v.Button,{className:"group inline-flex justify-center text-sm font-medium text-gray-700 hover:text-gray-900",children:["Sort",(0,t.jsx)(o.v4q,{className:"flex-shrink-0 -mr-1 ml-1 h-5 w-5 text-gray-400 group-hover:text-gray-500","aria-hidden":"true"})]})}),(0,t.jsx)(i.u,{as:a.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,t.jsx)(c.v.Items,{className:"origin-top-right absolute right-0 mt-2 w-40 rounded-md shadow-2xl bg-white ring-1 ring-black ring-opacity-5 focus:outline-none",children:(0,t.jsx)("div",{className:"py-1",children:u.map((function(e){return(0,t.jsx)(c.v.Item,{children:function(n){var r=n.active;return(0,t.jsx)("a",{href:e.href,className:m(e.current?"font-medium text-gray-900":"text-gray-500",r?"bg-gray-100":"","block px-4 py-2 text-sm"),children:e.name})}},e.name)}))})})})]})})]}),(0,t.jsx)("section",{className:"pt-6 pb-24",children:(0,t.jsxs)("div",{className:"grid grid-cols-4 gap-x-8 gap-y-10",children:[(0,t.jsx)("form",{className:"hidden lg:block",children:(0,t.jsxs)("div",{className:"border-b border-gray-200 pb-6",children:[(0,t.jsx)("h3",{className:"-my-3 flow-root",children:(0,t.jsx)("div",{className:"py-3 bg-white w-full flex items-center justify-between text-sm text-gray-400 hover:text-gray-500",children:(0,t.jsx)("span",{className:"font-medium text-gray-900",children:"Features"})})}),(0,t.jsx)("div",{className:"pt-6",children:(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("input",{id:"show-mermaid",type:"checkbox",onChange:function(e){return h(e.target.checked)},defaultChecked:x,className:"h-4 w-4 border-gray-300 rounded text-gray-600 focus:ring-gray-500"}),(0,t.jsx)("label",{htmlFor:"show-mermaid",className:"ml-3 text-sm text-gray-600",children:"Show Mermaid Diagrams"})]})})})]})}),(0,t.jsx)("div",{className:"col-span-4 lg:col-span-3",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-gray-500 text-xs font-medium uppercase tracking-wide",children:"Services"}),(0,t.jsx)(l.Z,{services:n,showMermaidDiagrams:x})]})})]})})]})]})}},46892:function(e,n,r){"use strict";function t(e){for(var n=0,r=0;r<e.length;r++)n=e.charCodeAt(r)+((n<<5)-n);for(var t="#",a=0;a<3;a++){t+="00".concat((n>>8*a&255).toString(16)).substr(-2)}return t}r.d(n,{Z:function(){return t}})}},function(e){e.O(0,[812,519,962,274,774,888,179],(function(){return n=17891,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[108],{84852:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/users/[id]",function(){return r(10429)}])},90526:function(e,n,r){"use strict";var s=r(52322),t=(r(2784),r(39097)),a=r(17962),c=r(46892),i=r(4573);function l(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.filter(Boolean).join(" ")}n.Z=function(e){var n=e.events,r=void 0===n?[]:n,d=e.showMermaidDiagrams,o=void 0!==d&&d;return(0,s.jsx)("ul",{className:"mt-3 grid grid-cols-1 gap-5 md:grid-cols-2",children:r.map((function(e){var n=e.draft;return(0,s.jsx)("li",{className:"flex",children:(0,s.jsx)(t.default,{href:"/events/".concat(e.name),children:(0,s.jsxs)("a",{className:"flex shadow-sm rounded-md w-full",children:[(0,s.jsx)("div",{style:{background:(0,c.Z)(e.name)},className:l("bg-red-500","flex-shrink-0 flex items-center justify-center w-4 text-white text-sm font-medium rounded-l-md")}),(0,s.jsx)("div",{className:"w-full border-t border-r border-b border-gray-200 bg-white rounded-r-md ",children:(0,s.jsxs)("div",{className:"p-4 text-sm space-y-2 flex flex-col justify-between h-full",children:[(0,s.jsxs)("div",{className:"text-gray-900 font-bold hover:text-gray-600 break-all",children:[e.name,(0,s.jsxs)("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",children:["v",e.version]}),n&&(0,s.jsx)("span",{className:"ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-500 text-gray-100",children:"Draft"})]}),(0,s.jsx)("div",{className:"text-gray-500 text-xs font-normal mt-2 ",children:e.summary}),o&&(0,s.jsx)("div",{className:"h-full items-center flex",children:(0,s.jsx)(i.Z,{source:"event",data:e,rootNodeColor:(0,c.Z)(e.name)})}),(0,s.jsxs)("div",{className:"flex space-x-4 text-xs pt-2 relative bottom-0 left-0",children:[(0,s.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,s.jsx)(a.FMB,{className:"h-4 w-4 text-green-400 inline-block mr-2","aria-hidden":"true"}),"Producers (",e.producers.length,")"]}),(0,s.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,s.jsx)(a.FMB,{className:"h-4 w-4 text-indigo-400 inline-block mr-2","aria-hidden":"true"}),"Subscribers (",e.consumers.length,")"]})]})]})})]})})},e.name)}))})}},44938:function(e,n,r){"use strict";var s=r(52322),t=(r(2784),r(39097)),a=r(17962),c=r(4573),i=r(46892);n.Z=function(e){var n=e.services,r=void 0===n?[]:n,l=e.showMermaidDiagrams,d=void 0!==l&&l;return(0,s.jsx)("ul",{className:"mt-3 grid grid-cols-1 gap-5 md:grid-cols-2",children:r.map((function(e){var n=e.draft;return(0,s.jsx)("li",{className:"flex",children:(0,s.jsx)(t.default,{href:"/services/".concat(e.name),children:(0,s.jsxs)("a",{className:"flex shadow-sm w-full",children:[(0,s.jsx)("div",{style:{background:(0,i.Z)(e.name)},className:"w-4 rounded-l-md"}),(0,s.jsx)("div",{className:"w-full border-t border-r border-b border-gray-200 bg-white rounded-r-md ",children:(0,s.jsxs)("div",{className:"p-4 text-sm space-y-2 flex flex-col justify-between h-full",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-gray-900 font-bold",children:e.name}),n&&(0,s.jsx)("span",{className:"ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-500 text-gray-100",children:"Draft"}),(0,s.jsx)("div",{className:"text-gray-500 text-xs font-normal mt-2 line-clamp-3",children:e.summary})]}),d&&(0,s.jsx)("div",{className:"h-full items-center flex",children:(0,s.jsx)(c.Z,{source:"service",data:e,rootNodeColor:(0,i.Z)(e.name)})}),(0,s.jsxs)("div",{className:"flex space-x-4 text-xs pt-2 relative bottom-0 left-0",children:[(0,s.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,s.jsx)(a.FMB,{className:"h-4 w-4 text-green-400 inline-block mr-2","aria-hidden":"true"}),"Subscribe Events (",e.subscribes.length,")"]}),(0,s.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,s.jsx)(a.FMB,{className:"h-4 w-4 text-indigo-400 inline-block mr-2","aria-hidden":"true"}),"Publish Events (",e.publishes.length,")"]})]})]})})]})})},e.name)}))})}},4573:function(e,n,r){"use strict";r.d(n,{Z:function(){return u}});var s=r(52322),t=r(2784),a=r(14689),c=r(70314),i=(0,c.default)().publicRuntimeConfig,l=(void 0===i?{}:i).basePath,d=void 0===l?"":l,o=function(e){return e.length>"50"?"".concat(e.substring(0,"50"),"..."):e},m=function(e,n){return""!==d?"".concat(d,"/").concat(n,"/").concat(e):"/".concat(n,"/").concat(e)},x=function(e,n,r,s){return"flowchart LR\n\n".concat(n.map((function(n){return"".concat(n.id,"[").concat(n.name,"]:::producer--\x3e").concat(e.id,"[").concat(e.name,"]:::event\n")})).join(""),"\nclassDef event stroke:").concat(s,",stroke-width: 4px;\n\nclassDef producer stroke:#75d7b6,stroke-width: 2px;\n\nclassDef consumer stroke:#818cf8,stroke-width: 2px;\n\n").concat(r.map((function(n){return"".concat(e.id,"[").concat(e.name,"]:::event--\x3e").concat(n.id,"[").concat(n.name,"]:::consumer\n")})).join(""),"\n").concat(n.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\n").concat(r.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\nclick ").concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n\n')};a.Z.initialize({startOnLoad:!0,theme:"forest",securityLevel:"loose",flowchart:{useMaxWidth:!1,width:"1000px"},themeCSS:"\n .node {\n filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .2))\n }\n .mermaid svg {\n width: 10000px\n }\n .node rect {\n fill: white\n }\n ",fontFamily:"Fira Code",width:"100%"});var u=function(e){var n=e.data,r=e.source,c=void 0===r?"event":r,i=e.rootNodeColor,l=e.charts;if((0,t.useEffect)((function(){a.Z.contentLoaded()}),[]),l)return(0,s.jsx)(s.Fragment,{children:l.map((function(e,n){return(0,s.jsx)("div",{className:"mermaid",children:e},"chart-".concat(n))}))});var d="event"===c?function(e,n){var r=e.name,s=e.producers,t=e.consumers,a=void 0===n?"#2563eb":n,c=s.map(o).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:m(e,"services")}})),i=t.map(o).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:m(e,"services")}})),l={id:o(r.replace(/ /g,"_")),name:r,link:m(r,"events")};return x(l,c,i,a)}(n,i):function(e,n){var r=e.publishes,s=e.subscribes,t=e.name,a=void 0===n?"#2563eb":n,c=
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[108],{84852:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/users/[id]",function(){return r(10429)}])},90526:function(e,n,r){"use strict";var s=r(52322),t=(r(2784),r(39097)),a=r(17962),c=r(46892),i=r(4573);function l(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.filter(Boolean).join(" ")}n.Z=function(e){var n=e.events,r=void 0===n?[]:n,d=e.showMermaidDiagrams,o=void 0!==d&&d;return(0,s.jsx)("ul",{className:"mt-3 grid grid-cols-1 gap-5 md:grid-cols-2",children:r.map((function(e){var n=e.draft;return(0,s.jsx)("li",{className:"flex",children:(0,s.jsx)(t.default,{href:"/events/".concat(e.name),children:(0,s.jsxs)("a",{className:"flex shadow-sm rounded-md w-full",children:[(0,s.jsx)("div",{style:{background:(0,c.Z)(e.name)},className:l("bg-red-500","flex-shrink-0 flex items-center justify-center w-4 text-white text-sm font-medium rounded-l-md")}),(0,s.jsx)("div",{className:"w-full border-t border-r border-b border-gray-200 bg-white rounded-r-md ",children:(0,s.jsxs)("div",{className:"p-4 text-sm space-y-2 flex flex-col justify-between h-full",children:[(0,s.jsxs)("div",{className:"text-gray-900 font-bold hover:text-gray-600 break-all",children:[e.name,(0,s.jsxs)("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",children:["v",e.version]}),n&&(0,s.jsx)("span",{className:"ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-500 text-gray-100",children:"Draft"})]}),(0,s.jsx)("div",{className:"text-gray-500 text-xs font-normal mt-2 ",children:e.summary}),o&&(0,s.jsx)("div",{className:"h-full items-center flex",children:(0,s.jsx)(i.Z,{source:"event",data:e,rootNodeColor:(0,c.Z)(e.name)})}),(0,s.jsxs)("div",{className:"flex space-x-4 text-xs pt-2 relative bottom-0 left-0",children:[(0,s.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,s.jsx)(a.FMB,{className:"h-4 w-4 text-green-400 inline-block mr-2","aria-hidden":"true"}),"Producers (",e.producers.length,")"]}),(0,s.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,s.jsx)(a.FMB,{className:"h-4 w-4 text-indigo-400 inline-block mr-2","aria-hidden":"true"}),"Subscribers (",e.consumers.length,")"]})]})]})})]})})},e.name)}))})}},44938:function(e,n,r){"use strict";var s=r(52322),t=(r(2784),r(39097)),a=r(17962),c=r(4573),i=r(46892);n.Z=function(e){var n=e.services,r=void 0===n?[]:n,l=e.showMermaidDiagrams,d=void 0!==l&&l;return(0,s.jsx)("ul",{className:"mt-3 grid grid-cols-1 gap-5 md:grid-cols-2",children:r.map((function(e){var n=e.draft;return(0,s.jsx)("li",{className:"flex",children:(0,s.jsx)(t.default,{href:"/services/".concat(e.name),children:(0,s.jsxs)("a",{className:"flex shadow-sm w-full",children:[(0,s.jsx)("div",{style:{background:(0,i.Z)(e.name)},className:"w-4 rounded-l-md"}),(0,s.jsx)("div",{className:"w-full border-t border-r border-b border-gray-200 bg-white rounded-r-md ",children:(0,s.jsxs)("div",{className:"p-4 text-sm space-y-2 flex flex-col justify-between h-full",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-gray-900 font-bold",children:e.name}),n&&(0,s.jsx)("span",{className:"ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-500 text-gray-100",children:"Draft"}),(0,s.jsx)("div",{className:"text-gray-500 text-xs font-normal mt-2 line-clamp-3",children:e.summary})]}),d&&(0,s.jsx)("div",{className:"h-full items-center flex",children:(0,s.jsx)(c.Z,{source:"service",data:e,rootNodeColor:(0,i.Z)(e.name)})}),(0,s.jsxs)("div",{className:"flex space-x-4 text-xs pt-2 relative bottom-0 left-0",children:[(0,s.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,s.jsx)(a.FMB,{className:"h-4 w-4 text-green-400 inline-block mr-2","aria-hidden":"true"}),"Subscribe Events (",e.subscribes.length,")"]}),(0,s.jsxs)("div",{className:" font-medium text-gray-500",children:[(0,s.jsx)(a.FMB,{className:"h-4 w-4 text-indigo-400 inline-block mr-2","aria-hidden":"true"}),"Publish Events (",e.publishes.length,")"]})]})]})})]})})},e.name)}))})}},4573:function(e,n,r){"use strict";r.d(n,{Z:function(){return u}});var s=r(52322),t=r(2784),a=r(14689),c=r(70314),i=(0,c.default)().publicRuntimeConfig,l=(void 0===i?{}:i).basePath,d=void 0===l?"":l,o=function(e){return e.length>"50"?"".concat(e.substring(0,"50"),"..."):e},m=function(e,n){return""!==d?"".concat(d,"/").concat(n,"/").concat(e):"/".concat(n,"/").concat(e)},x=function(e,n,r,s){return"flowchart LR\n\n".concat(n.map((function(n){return"".concat(n.id,"[").concat(n.name,"]:::producer--\x3e").concat(e.id,"[").concat(e.name,"]:::event\n")})).join(""),"\nclassDef event stroke:").concat(s,",stroke-width: 4px;\n\nclassDef producer stroke:#75d7b6,stroke-width: 2px;\n\nclassDef consumer stroke:#818cf8,stroke-width: 2px;\n\n").concat(r.map((function(n){return"".concat(e.id,"[").concat(e.name,"]:::event--\x3e").concat(n.id,"[").concat(n.name,"]:::consumer\n")})).join(""),"\n").concat(n.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\n").concat(r.map((function(e){return"click ".concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n')})).join(""),"\nclick ").concat(e.id,' href "').concat(e.link,'" "Go to ').concat(e.name,'" _self\n\n')};a.Z.initialize({startOnLoad:!0,theme:"forest",securityLevel:"loose",flowchart:{useMaxWidth:!1,width:"1000px"},themeCSS:"\n .node {\n filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .2))\n }\n .mermaid svg {\n width: 10000px\n }\n .node rect {\n fill: white\n }\n ",fontFamily:"Fira Code",width:"100%"});var u=function(e){var n=e.data,r=e.source,c=void 0===r?"event":r,i=e.rootNodeColor,l=e.charts;if((0,t.useEffect)((function(){a.Z.contentLoaded()}),[]),l)return(0,s.jsx)(s.Fragment,{children:l.map((function(e,n){return(0,s.jsx)("div",{className:"mermaid",children:e},"chart-".concat(n))}))});var d="event"===c?function(e,n){var r=e.name,s=e.producers,t=e.consumers,a=void 0===n?"#2563eb":n,c=s.map(o).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:m(e,"services")}})),i=t.map(o).map((function(e){return{id:e.replace(/ /g,"_"),name:e,link:m(e,"services")}})),l={id:o(r.replace(/ /g,"_")),name:r,link:m(r,"events")};return x(l,c,i,a)}(n,i):function(e,n){var r=e.publishes,s=e.subscribes,t=e.name,a=void 0===n?"#2563eb":n,c=s.map(o).map((function(e){return{id:e.name.replace(/ /g,"_"),name:e.name,link:m(e.name,"events")}})),i=r.map(o).map((function(e){return{id:e.name.replace(/ /g,"_"),name:e.name,link:m(e.name,"events")}})),l={id:o(t.replace(/ /g,"_")),name:t,link:m(t,"services")};return x(l,c,i,a)}(n,i);return(0,s.jsx)("div",{className:"mermaid",children:d})}},10429:function(e,n,r){"use strict";r.r(n),r.d(n,{__N_SSG:function(){return i},default:function(){return l}});var s=r(52322),t=r(90526),a=r(44938),c=r(55008),i=!0;function l(e){var n=e.events,r=e.services,i=e.userId,l=(0,(0,c.aF)().getUserById)(i);return(0,s.jsx)("div",{className:"flex relative min-h-screen",children:(0,s.jsx)("div",{className:"flex-1 ",children:(0,s.jsx)("div",{className:"py-8 xl:py-10",children:(0,s.jsxs)("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 xl:max-w-7xl xl:grid xl:grid-cols-4",children:[(0,s.jsxs)("div",{className:"xl:col-span-3 xl:pr-8 xl:border-r xl:border-gray-200 min-h-screen",children:[(0,s.jsx)("div",{className:"xl:border-b pb-4 flex justify-between ",children:(0,s.jsx)("div",{className:"space-y-2",children:(0,s.jsx)("h1",{className:"text-3xl font-bold text-gray-900 relative",children:l.name})})}),(0,s.jsxs)("div",{className:" border-b border-gray-100 pb-6",children:[(0,s.jsxs)("h1",{className:"text-lg font-bold text-gray-800 relative mt-4",children:["Owner of Events (",n.length,")"]}),(0,s.jsx)(t.Z,{events:n})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("h1",{className:"text-lg font-bold text-gray-800 relative mt-4",children:["Owner of Services (",r.length,")"]}),(0,s.jsx)(a.Z,{services:r})]})]}),(0,s.jsxs)("div",{className:"px-8",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-5 mt-4 ",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("img",{className:"h-16 w-16 rounded-full",src:l.avatarUrl,alt:""}),(0,s.jsx)("span",{className:"absolute inset-0 shadow-inner rounded-full","aria-hidden":"true"})]})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-xl font-bold text-gray-900",children:l.name}),(0,s.jsx)("p",{className:"text-sm font-medium text-gray-500",children:l.role})]})]}),(0,s.jsx)("div",{className:"mt-6 flow-root border-t border-gray-200 py-6 text-sm",children:l.summary})]})]})})})})}},46892:function(e,n,r){"use strict";function s(e){for(var n=0,r=0;r<e.length;r++)n=e.charCodeAt(r)+((n<<5)-n);for(var s="#",t=0;t<3;t++){s+="00".concat((n>>8*t&255).toString(16)).substr(-2)}return s}r.d(n,{Z:function(){return s}})}},function(e){e.O(0,[812,962,774,888,179],(function(){return n=84852,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(s,e,c,a,t,n,i,f,b,r,v,d){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/pages/index-fe1a9e09c7f51e66.js"],"/_error":["static/chunks/pages/_error-5a714c45c50a8db4.js"],"/events":[s,e,c,t,"static/chunks/pages/events-
|
|
1
|
+
self.__BUILD_MANIFEST=function(s,e,c,a,t,n,i,f,b,r,v,d){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/pages/index-fe1a9e09c7f51e66.js"],"/_error":["static/chunks/pages/_error-5a714c45c50a8db4.js"],"/events":[s,e,c,t,"static/chunks/pages/events-5ffe0ca38bc5f78c.js"],"/events/[name]":[s,n,i,f,e,c,b,r,a,v,d,"static/chunks/pages/events/[name]-73ecab7171745a3f.js"],"/events/[name]/logs":[e,"static/chunks/364-9c039ca46569869e.js","static/css/5eeed9cb243ce668.css","static/chunks/pages/events/[name]/logs-707da36de8222a98.js"],"/events/[name]/v/[version]":[s,n,i,f,e,c,b,r,a,v,d,"static/chunks/pages/events/[name]/v/[version]-f6619ec4056cc70d.js"],"/overview":["static/chunks/pages/overview-2f0bfad06c84e437.js"],"/services":[s,e,c,t,"static/chunks/pages/services-a4eaef0c2abfdf9c.js"],"/services/[name]":[s,e,c,a,"static/chunks/pages/services/[name]-d8873d29190a6447.js"],"/users/[id]":[s,c,"static/chunks/pages/users/[id]-6e62960d4bd19b7d.js"],sortedPages:["/","/_app","/_error","/events","/events/[name]","/events/[name]/logs","/events/[name]/v/[version]","/overview","/services","/services/[name]","/users/[id]"]}}("static/chunks/176cb4e4-8a0f6f010ef8accb.js","static/chunks/519-7c428c1e49c8e614.js","static/chunks/962-d5070461f6d4a478.js","static/chunks/336-22157631c3f2ef95.js","static/chunks/274-11c4d093341d7201.js","static/chunks/1df474da-91f6061ee61707c6.js","static/chunks/7f5d3f51-7158fdd5a44cedd5.js","static/chunks/2edb282b-9e1cce5842787609.js","static/chunks/5-f60eecf67567a225.js","static/chunks/650-4004943b2a9623ca.js","static/chunks/178-9b89f5c036d77ab9.js","static/css/7e14b4dede1671ad.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
package/out/_next/static/{_D78gGWWcjFmvj_jqGXW3 → e-q1iE1pYqLSobepXPoMN}/_middlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
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>EventCatalog - AddedItemToCart v0.0.3</title><meta name="next-head-count" content="18"/><link rel="preload" href="/_next/static/css/0b54ec6503b91283.css" as="style"/><link rel="stylesheet" href="/_next/static/css/0b54ec6503b91283.css" data-n-g=""/><link rel="preload" href="/_next/static/css/7e14b4dede1671ad.css" as="style"/><link rel="stylesheet" href="/_next/static/css/7e14b4dede1671ad.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-2ebfdb1666dac4ad.js" defer=""></script><script src="/_next/static/chunks/framework-576ec6a1c1386453.js" defer=""></script><script src="/_next/static/chunks/main-0015f560a7edeb35.js" defer=""></script><script src="/_next/static/chunks/pages/_app-c205def1388372e3.js" defer=""></script><script src="/_next/static/chunks/176cb4e4-8a0f6f010ef8accb.js" defer=""></script><script src="/_next/static/chunks/1df474da-91f6061ee61707c6.js" defer=""></script><script src="/_next/static/chunks/7f5d3f51-7158fdd5a44cedd5.js" defer=""></script><script src="/_next/static/chunks/2edb282b-9e1cce5842787609.js" defer=""></script><script src="/_next/static/chunks/519-7c428c1e49c8e614.js" defer=""></script><script src="/_next/static/chunks/962-d5070461f6d4a478.js" defer=""></script><script src="/_next/static/chunks/5-f60eecf67567a225.js" defer=""></script><script src="/_next/static/chunks/650-4004943b2a9623ca.js" defer=""></script><script src="/_next/static/chunks/336-
|
|
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>EventCatalog - AddedItemToCart v0.0.3</title><meta name="next-head-count" content="18"/><link rel="preload" href="/_next/static/css/0b54ec6503b91283.css" as="style"/><link rel="stylesheet" href="/_next/static/css/0b54ec6503b91283.css" data-n-g=""/><link rel="preload" href="/_next/static/css/7e14b4dede1671ad.css" as="style"/><link rel="stylesheet" href="/_next/static/css/7e14b4dede1671ad.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/_next/static/chunks/webpack-2ebfdb1666dac4ad.js" defer=""></script><script src="/_next/static/chunks/framework-576ec6a1c1386453.js" defer=""></script><script src="/_next/static/chunks/main-0015f560a7edeb35.js" defer=""></script><script src="/_next/static/chunks/pages/_app-c205def1388372e3.js" defer=""></script><script src="/_next/static/chunks/176cb4e4-8a0f6f010ef8accb.js" defer=""></script><script src="/_next/static/chunks/1df474da-91f6061ee61707c6.js" defer=""></script><script src="/_next/static/chunks/7f5d3f51-7158fdd5a44cedd5.js" defer=""></script><script src="/_next/static/chunks/2edb282b-9e1cce5842787609.js" defer=""></script><script src="/_next/static/chunks/519-7c428c1e49c8e614.js" defer=""></script><script src="/_next/static/chunks/962-d5070461f6d4a478.js" defer=""></script><script src="/_next/static/chunks/5-f60eecf67567a225.js" defer=""></script><script src="/_next/static/chunks/650-4004943b2a9623ca.js" defer=""></script><script src="/_next/static/chunks/336-22157631c3f2ef95.js" defer=""></script><script src="/_next/static/chunks/178-9b89f5c036d77ab9.js" defer=""></script><script src="/_next/static/chunks/pages/events/%5Bname%5D-73ecab7171745a3f.js" defer=""></script><script src="/_next/static/e-q1iE1pYqLSobepXPoMN/_buildManifest.js" defer=""></script><script src="/_next/static/e-q1iE1pYqLSobepXPoMN/_ssgManifest.js" defer=""></script><script src="/_next/static/e-q1iE1pYqLSobepXPoMN/_middlewareManifest.js" defer=""></script></head><body><div id="__next" data-reactroot=""><div class="bg-gray-800"><div class="max-w-7xl mx-auto "><div class="relative flex items-center justify-between h-16"><div class="flex-1 flex items-center justify-center sm:items-stretch sm:justify-start"><div class="flex-shrink-0 flex items-center text-white font-bold"><a class="flex items-center" href="/"><img alt="logo" class="text-white w-8 inline-block mr-3" src="/logo.svg"/><span class="text-xl">EventCatalog</span></a></div></div><div class="hidden sm:block sm:ml-6"><div class="flex space-x-4"><a class="bg-gray-900 text-white px-3 py-2 rounded-md text-sm font-medium" aria-current="page" 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 class="flex relative"><div class=" flex flex-col w-0 flex-1 "><main class="flex-1 "><div class="py-8 xl:py-10"><div class="max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 xl:max-w-7xl xl:grid xl:grid-cols-4"><div class="xl:col-span-3 xl:pr-8 xl:border-r xl:border-gray-200 flex-col justify-between flex"><div><div class="mb-5 border-b border-gray-100 pb-4"><nav class="flex" aria-label="Breadcrumb"><ol class="flex items-center space-x-4"><li><a class="text-gray-400 hover:text-gray-500" href="/events/"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="flex-shrink-0 h-5 w-5"><path d="M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"></path></svg><span class="sr-only">Home</span></a></li><li><div class="flex items-center"><svg class="flex-shrink-0 h-5 w-5 text-gray-300" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true"><path d="M5.555 17.776l8-16 .894.448-8 16-.894-.448z"></path></svg><a class="ml-4 text-sm font-medium text-gray-500 hover:text-gray-700" href="/events/">Events</a></div></li><li><div class="flex items-center"><svg class="flex-shrink-0 h-5 w-5 text-gray-300" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true"><path d="M5.555 17.776l8-16 .894.448-8 16-.894-.448z"></path></svg><a class="ml-4 text-sm font-medium text-gray-500 hover:text-gray-700" aria-current="page" href="/services/AddedItemToCart/">AddedItemToCart</a></div></li></ol></nav></div><div><div><div class="xl:border-b pb-4 flex justify-between "><div class="space-y-2 w-full"><h1 class="text-3xl font-bold text-gray-900 relative">AddedItemToCart<div class="-top-1 relative inline-block ml-2"><span class="ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative bg-yellow-100 text-yellow-800">v0.0.3</span></div></h1><div class="text-gray-600 mb-10 text py-2">Holds information about what the user added to their shopping cart.
|
|
2
2
|
</div></div><div class="mt-4 flex space-x-3 md:mt-0"><a href="https:/github.com/boyney123/eventcatalog-demo/edit/master/events/AddedItemToCart/index.md" target="_blank" type="button" class="hidden 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-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-900" rel="noreferrer"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="-ml-1 mr-2 h-5 w-5 text-gray-400"><path d="M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"></path></svg><span>Edit</span></a></div></div><div class="py-3 xl:pt-6 xl:pb-0"><div class="prose max-w-none"><div class="bg-indigo-50 border-l-4 border-indigo-400 my-4 "><div class="flex"><div class="ml-3 py-4"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="inline-block mr-2 h-5 w-5 text-indigo-400"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"></path></svg>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.</div></div></div><h3>Details</h3><p>This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.</p><p>We have a frontend application that allows users to buy things from our store. This front end interacts directly with the <code>Basket Service</code> to add items to the cart. The <code>Basket Service</code> will raise the events.</p><div class="mx-auto w-full py-10"><h2 class="text-lg font-medium text-gray-900 underline">Consumer / Producer Diagram</h2><div class="mermaid">flowchart LR
|
|
3
3
|
|
|
4
4
|
Basket_Service[Basket Service]:::producer-->AddedItemToCart[AddedItemToCart]:::event
|
|
@@ -80,4 +80,4 @@ click AddedItemToCart href "/events/AddedItemToCart" "Go to Added
|
|
|
80
80
|
</span></span><span><span> </span><span class="token" style="color:#f8f8f2">}</span><span>
|
|
81
81
|
</span></span><span><span> </span><span class="token" style="color:#f8f8f2">}</span><span>
|
|
82
82
|
</span></span><span><span> </span><span class="token" style="color:#f8f8f2">}</span><span>
|
|
83
|
-
</span></span><span><span></span><span class="token" style="color:#f8f8f2">}</span></span></code></pre><span class="-mb-2 block text-xs text-right font-bold">AddedItemToCart Schema (json)</span></div></section></div></div></div></div></div><div class="flex mt-10 justify-between"><a href="https:/github.com/boyney123/eventcatalog-demo/edit/master/events/AddedItemToCart/index.md" target="_blank" class="flex text-gray-400" rel="noreferrer"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="top-1 mr-2 relative h-4 w-4 text-gray-400"><path d="M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"></path></svg><span>Edit this page</span></a><span class="italic text-xs mt-2">Last updated on <!-- -->2022/2/4</span></div></div><div class="md:min-h-screen"><aside class="hidden xl:block xl:pl-8"><h2 class="sr-only">Details</h2><div class="pt-6 py-6 space-y-8"><div><h2 class="text-sm font-medium text-gray-500"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" class="h-5 w-5 text-green-400 inline-block mr-2"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Producers</h2><ul class="mt-2 leading-8"><li class="inline mr-1"><a class="relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5" href="/services/Basket%20Service/"><div class="absolute flex-shrink-0 flex items-center justify-center"><span class="h-1.5 w-1.5 rounded-full bg-green-500 animate animate-pulse" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900">Basket Service</div></a></li></ul></div></div><div class="border-t border-gray-200 py-6 space-y-8"><div><h2 class="text-sm font-medium text-gray-500"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" class="h-5 w-5 text-indigo-400 inline-block mr-2"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Consumers</h2><ul class="mt-2 leading-8"><li class="inline"><a href="#" class="relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5"><div class="absolute flex-shrink-0 flex items-center justify-center"><span class="h-1.5 w-1.5 rounded-full bg-indigo-500 animate animate-pulse" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900">Data Lake</div></a></li></ul></div></div><div class="border-t border-gray-200 py-6"><div><h2 class="text-sm font-medium text-gray-500">Event Versions</h2><ul class="mt-2 leading-8 text-left text-blue-500"><li class="text-sm inline "><a href="/events/AddedItemToCart/"><span class="inline-flex mr-2 items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative bg-blue-400 text-white shadow-md font-bold underline">Latest</span></a></li><li class="text-sm inline"><a href="/events/AddedItemToCart/v/0.0.2"><span class="inline-flex mr-2 items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative bg-blue-100 text-blue-800">v<!-- -->0.0.2</span></a></li><li class="text-sm inline"><a href="/events/AddedItemToCart/v/0.0.1"><span class="inline-flex mr-2 items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative bg-blue-100 text-blue-800">v<!-- -->0.0.1</span></a></li></ul></div></div><div class="border-t border-gray-200 py-6 space-y-8"><div><h2 class="text-sm font-medium text-gray-500">Event Owners</h2><ul class="mt-4 leading-8 space-y-2"><li class="flex justify-start"><a class="flex items-center space-x-3" href="/users/dboyne/"><div class="flex-shrink-0"><img class="h-5 w-5 rounded-full" src="https://pbs.twimg.com/profile_images/1262283153563140096/DYRDqKg6_400x400.png" alt=""/></div><div class="text-sm font-medium text-gray-900">David Boyne</div></a></li><li class="flex justify-start"><a class="flex items-center space-x-3" href="/users/mSmith/"><div class="flex-shrink-0"><img class="h-5 w-5 rounded-full" src="https://randomuser.me/api/portraits/lego/3.jpg" alt=""/></div><div class="text-sm font-medium text-gray-900">Matthew Smith</div></a></li></ul></div></div><div class="border-t border-gray-200 py-6 space-y-1"><a href="/schemas/AddedItemToCart/schema.json" download="AddedItemToCart(0.0.3).json" class="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"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" class="-ml-1 mr-2 h-5 w-5 text-gray-200"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg><span>Download Schema</span></a><a class="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" href="/events/AddedItemToCart/logs/"><span>View Changes</span></a><a href="https://studio.asyncapi.com/#schema-lightMeasuredPayload" target="_blank" type="button" class="hidden w-full md:inline-flex h-10 justify-center px-4 py-2 border border-teal-300 shadow-sm text-sm font-medium rounded-md text-teal-800 hover:bg-teal-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-teal-200" rel="noreferrer"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" class="-ml-1 mr-2 h-5 w-5 text-teal-200"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg><span>AsyncAPI Specification</span></a></div></aside></div></div></div></main></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":{"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\u003cAdmonition\u003eWhen 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.\u003c/Admonition\u003e\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\u003cMermaid title=\"Consumer / Producer Diagram\" /\u003e\n\n\u003cEventExamples title=\"How to trigger event\" /\u003e\n\n\u003cSchema /\u003e\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)=\u003et in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r=(e,t)=\u003e{for(var o in t||(t={}))a.call(t,o)\u0026\u0026d(e,o,t[o]);if(i)for(var o of i(t))s.call(t,o)\u0026\u0026d(e,o,t[o]);return e},m=(e,t)=\u003eh(e,l(t));var p=(e,t)=\u003e{var o={};for(var n in e)a.call(e,n)\u0026\u0026t.indexOf(n)\u003c0\u0026\u0026(o[n]=e[n]);if(e!=null\u0026\u0026i)for(var n of i(e))t.indexOf(n)\u003c0\u0026\u0026s.call(e,n)\u0026\u0026(o[n]=e[n]);return o};const makeShortcode=e=\u003efunction(o){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},o))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),EventExamples=makeShortcode(\"EventExamples\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=p(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. This front end interacts directly with the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" to add items to the cart. The \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" will raise the events.\"),mdx(Mermaid,{title:\"Consumer / Producer Diagram\",mdxType:\"Mermaid\"}),mdx(EventExamples,{title:\"How to trigger event\",mdxType:\"EventExamples\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/2/4"},"loadedVersion":"latest"},"__N_SSG":true},"page":"/events/[name]","query":{"name":"AddedItemToCart"},"buildId":"_D78gGWWcjFmvj_jqGXW3","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html>
|
|
83
|
+
</span></span><span><span></span><span class="token" style="color:#f8f8f2">}</span></span></code></pre><span class="-mb-2 block text-xs text-right font-bold">AddedItemToCart Schema (json)</span></div></section></div></div></div></div></div><div class="flex mt-10 justify-between"><a href="https:/github.com/boyney123/eventcatalog-demo/edit/master/events/AddedItemToCart/index.md" target="_blank" class="flex text-gray-400" rel="noreferrer"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="top-1 mr-2 relative h-4 w-4 text-gray-400"><path d="M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"></path></svg><span>Edit this page</span></a><span class="italic text-xs mt-2">Last updated on <!-- -->2022/2/4</span></div></div><div class="md:min-h-screen"><aside class="hidden xl:block xl:pl-8"><h2 class="sr-only">Details</h2><div class="pt-6 py-6 space-y-8"><div><h2 class="text-sm font-medium text-gray-500"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" class="h-5 w-5 text-green-400 inline-block mr-2"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Producers</h2><ul class="mt-2 leading-8"><li class="inline mr-1"><a class="relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5" href="/services/Basket%20Service/"><div class="absolute flex-shrink-0 flex items-center justify-center"><span class="h-1.5 w-1.5 rounded-full bg-green-500 animate animate-pulse" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900">Basket Service</div></a></li></ul></div></div><div class="border-t border-gray-200 py-6 space-y-8"><div><h2 class="text-sm font-medium text-gray-500"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" class="h-5 w-5 text-indigo-400 inline-block mr-2"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Consumers</h2><ul class="mt-2 leading-8"><li class="inline"><a href="#" class="relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5"><div class="absolute flex-shrink-0 flex items-center justify-center"><span class="h-1.5 w-1.5 rounded-full bg-indigo-500 animate animate-pulse" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900">Data Lake</div></a></li></ul></div></div><div class="border-t border-gray-200 py-6"><div><h2 class="text-sm font-medium text-gray-500">Event Versions</h2><ul class="mt-2 leading-8 text-left text-blue-500"><li class="text-sm inline "><a href="/events/AddedItemToCart/"><span class="inline-flex mr-2 items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative bg-blue-400 text-white shadow-md font-bold underline">Latest</span></a></li><li class="text-sm inline"><a href="/events/AddedItemToCart/v/0.0.2"><span class="inline-flex mr-2 items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative bg-blue-100 text-blue-800">v<!-- -->0.0.2</span></a></li><li class="text-sm inline"><a href="/events/AddedItemToCart/v/0.0.1"><span class="inline-flex mr-2 items-center px-2.5 py-0.5 rounded-full text-xs font-medium -top-0.5 relative bg-blue-100 text-blue-800">v<!-- -->0.0.1</span></a></li></ul></div></div><div class="border-t border-gray-200 py-6 space-y-8"><div><h2 class="text-sm font-medium text-gray-500">Event Owners</h2><ul class="mt-4 leading-8 space-y-2"><li class="flex justify-start"><a class="flex items-center space-x-3" href="/users/dboyne/"><div class="flex-shrink-0"><img class="h-5 w-5 rounded-full" src="https://pbs.twimg.com/profile_images/1262283153563140096/DYRDqKg6_400x400.png" alt=""/></div><div class="text-sm font-medium text-gray-900">David Boyne</div></a></li><li class="flex justify-start"><a class="flex items-center space-x-3" href="/users/mSmith/"><div class="flex-shrink-0"><img class="h-5 w-5 rounded-full" src="https://randomuser.me/api/portraits/lego/3.jpg" alt=""/></div><div class="text-sm font-medium text-gray-900">Matthew Smith</div></a></li></ul></div></div><div class="border-t border-gray-200 py-6 space-y-1"><a href="/schemas/AddedItemToCart/schema.json" download="AddedItemToCart(0.0.3).json" class="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"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" class="-ml-1 mr-2 h-5 w-5 text-gray-200"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg><span>Download Schema</span></a><a class="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" href="/events/AddedItemToCart/logs/"><span>View Changes</span></a><a href="https://studio.asyncapi.com/#schema-lightMeasuredPayload" target="_blank" type="button" class="hidden w-full md:inline-flex h-10 justify-center px-4 py-2 border border-teal-300 shadow-sm text-sm font-medium rounded-md text-teal-800 hover:bg-teal-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-teal-200" rel="noreferrer"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" class="-ml-1 mr-2 h-5 w-5 text-teal-200"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg><span>AsyncAPI Specification</span></a></div></aside></div></div></div></main></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":{"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\u003cAdmonition\u003eWhen 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.\u003c/Admonition\u003e\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\u003cMermaid title=\"Consumer / Producer Diagram\" /\u003e\n\n\u003cEventExamples title=\"How to trigger event\" /\u003e\n\n\u003cSchema /\u003e\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)=\u003et in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r=(e,t)=\u003e{for(var o in t||(t={}))a.call(t,o)\u0026\u0026d(e,o,t[o]);if(i)for(var o of i(t))s.call(t,o)\u0026\u0026d(e,o,t[o]);return e},m=(e,t)=\u003eh(e,l(t));var p=(e,t)=\u003e{var o={};for(var n in e)a.call(e,n)\u0026\u0026t.indexOf(n)\u003c0\u0026\u0026(o[n]=e[n]);if(e!=null\u0026\u0026i)for(var n of i(e))t.indexOf(n)\u003c0\u0026\u0026s.call(e,n)\u0026\u0026(o[n]=e[n]);return o};const makeShortcode=e=\u003efunction(o){return console.warn(\"Component \"+e+\" was not imported, exported, or provided by MDXProvider as global scope\"),mdx(\"div\",r({},o))},Admonition=makeShortcode(\"Admonition\"),Mermaid=makeShortcode(\"Mermaid\"),EventExamples=makeShortcode(\"EventExamples\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=p(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. This front end interacts directly with the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" to add items to the cart. The \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" will raise the events.\"),mdx(Mermaid,{title:\"Consumer / Producer Diagram\",mdxType:\"Mermaid\"}),mdx(EventExamples,{title:\"How to trigger event\",mdxType:\"EventExamples\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2022/2/4"},"loadedVersion":"latest"},"__N_SSG":true},"page":"/events/[name]","query":{"name":"AddedItemToCart"},"buildId":"e-q1iE1pYqLSobepXPoMN","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html>
|