@eventcatalog/core 1.2.4 → 1.2.5
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 +13 -13
- 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/109.js +5 -1
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/500.html +2 -2
- package/.next/server/pages/domains/Orders/events/OrderComplete/logs.html +1 -1
- package/.next/server/pages/domains/Orders/events/OrderComplete.html +2 -2
- package/.next/server/pages/domains/Orders/events/OrderConfirmed/logs.html +1 -1
- package/.next/server/pages/domains/Orders/events/OrderConfirmed.html +2 -2
- package/.next/server/pages/domains/Orders/events/OrderCreated/logs.html +1 -1
- package/.next/server/pages/domains/Orders/events/OrderCreated.html +2 -2
- package/.next/server/pages/domains/Orders/events/OrderRequested/logs.html +1 -1
- package/.next/server/pages/domains/Orders/events/OrderRequested.html +2 -2
- package/.next/server/pages/domains/Orders/services/Orders Service.html +2 -2
- package/.next/server/pages/domains/Orders.html +2 -2
- package/.next/server/pages/domains/Shopping/events/AddedItemToCart/logs.html +1 -1
- package/.next/server/pages/domains/Shopping/events/AddedItemToCart/v/0.0.1.html +2 -2
- package/.next/server/pages/domains/Shopping/events/AddedItemToCart/v/0.0.2.html +2 -2
- package/.next/server/pages/domains/Shopping/events/AddedItemToCart.html +2 -2
- package/.next/server/pages/domains/Shopping/events/RemovedItemFromCart/logs.html +1 -1
- package/.next/server/pages/domains/Shopping/events/RemovedItemFromCart.html +2 -2
- package/.next/server/pages/domains/Shopping.html +2 -2
- package/.next/server/pages/domains.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/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/Orders Service.html +1 -1
- package/.next/server/pages/services/Payment Service.html +2 -2
- package/.next/server/pages/services/Shipping Service.html +2 -2
- 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/.next/server/pages/users.html +1 -1
- package/.next/server/pages/visualiser.html +2 -2
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/chunks/{7109-de144a61ae6cf189.js → 7109-c8d3fde4c3b6798e.js} +1 -1
- package/.next/static/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/_buildManifest.js +1 -1
- package/.next/trace +141 -141
- package/CHANGELOG.md +8 -0
- package/components/Mdx/NodeGraph/NodeGraph.tsx +6 -1
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/_next/static/chunks/{7109-de144a61ae6cf189.js → 7109-c8d3fde4c3b6798e.js} +1 -1
- package/out/_next/static/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/_buildManifest.js +1 -1
- package/out/domains/Orders/events/OrderComplete/index.html +2 -2
- package/out/domains/Orders/events/OrderComplete/logs/index.html +1 -1
- package/out/domains/Orders/events/OrderConfirmed/index.html +2 -2
- package/out/domains/Orders/events/OrderConfirmed/logs/index.html +1 -1
- package/out/domains/Orders/events/OrderCreated/index.html +2 -2
- package/out/domains/Orders/events/OrderCreated/logs/index.html +1 -1
- package/out/domains/Orders/events/OrderRequested/index.html +2 -2
- package/out/domains/Orders/events/OrderRequested/logs/index.html +1 -1
- package/out/domains/Orders/index.html +2 -2
- package/out/domains/Orders/services/Orders Service/index.html +2 -2
- package/out/domains/Shopping/events/AddedItemToCart/index.html +2 -2
- package/out/domains/Shopping/events/AddedItemToCart/logs/index.html +1 -1
- package/out/domains/Shopping/events/AddedItemToCart/v/0.0.1/index.html +2 -2
- package/out/domains/Shopping/events/AddedItemToCart/v/0.0.2/index.html +2 -2
- package/out/domains/Shopping/events/RemovedItemFromCart/index.html +2 -2
- package/out/domains/Shopping/events/RemovedItemFromCart/logs/index.html +1 -1
- package/out/domains/Shopping/index.html +2 -2
- package/out/domains/index.html +2 -2
- package/out/events/PaymentProcessed/index.html +2 -2
- package/out/events/PaymentProcessed/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/Orders Service/index.html +1 -1
- package/out/services/Payment Service/index.html +2 -2
- package/out/services/Shipping Service/index.html +2 -2
- package/out/services/index.html +2 -2
- package/out/users/dboyne/index.html +2 -2
- package/out/users/index.html +1 -1
- package/out/users/mSmith/index.html +2 -2
- package/out/visualiser/index.html +2 -2
- package/package.json +1 -1
- /package/.next/static/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/_ssgManifest.js +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Orders/events/OrderComplete/logs.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Orders/events/OrderComplete.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Orders/events/OrderConfirmed/logs.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Orders/events/OrderConfirmed.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Orders/events/OrderCreated/logs.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Orders/events/OrderCreated.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Orders/events/OrderRequested/logs.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Orders/events/OrderRequested.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Orders/services/Orders Service.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Orders.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Shopping/events/AddedItemToCart/logs.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Shopping/events/AddedItemToCart/v/0.0.1.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Shopping/events/AddedItemToCart/v/0.0.2.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Shopping/events/AddedItemToCart.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Shopping/events/RemovedItemFromCart/logs.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Shopping/events/RemovedItemFromCart.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains/Shopping.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/domains.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/events/PaymentProcessed/logs.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/events/PaymentProcessed.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/events/ShipmentDelivered/logs.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/events/ShipmentDelivered.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/events/ShipmentDispatched/logs.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/events/ShipmentDispatched.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/events/ShipmentPrepared/logs.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/events/ShipmentPrepared.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/events.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/overview.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/services/Orders Service.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/services/Payment Service.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/services/Shipping Service.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/services.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/users/dboyne.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/users/mSmith.json +0 -0
- /package/out/_next/data/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/visualiser.json +0 -0
- /package/out/_next/static/{ab9mQ_Is0joPnE3nhy0Z9 → iIifsuP3Zi8zL1k9xuH-x}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="description" content="Discover, Explore and Document your Event Driven Architectures"/><link rel="icon" href="/favicon.ico"/><meta property="og:url" content="https://eventcatalog.dev/"/><meta property="og:type" content="website"/><meta property="og:title" content="EventCatalog"/><meta property="og:description" content="Discover, Explore and Document your Event Driven Architectures"/><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"/><title>EventCatalog - AddedItemToCart v0.0.1</title><meta name="next-head-count" content="15"/><script src="//unpkg.com/three@0.145.0/build/three.min.js"></script><script src="//unpkg.com/three@0.145.0/examples/js/renderers/CSS2DRenderer.js"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/atom-one-light.min.css"/><link rel="preload" href="/_next/static/css/94b9a747218712b2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/94b9a747218712b2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/cc3c8fcadcf7a58b.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc3c8fcadcf7a58b.css" data-n-p=""/><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-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-7e93d0cba2ccf996.js" defer=""></script><script src="/_next/static/chunks/framework-6cc1bceeaaf75e91.js" defer=""></script><script src="/_next/static/chunks/main-da37322a396d572a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-d40841fd52b70886.js" defer=""></script><script src="/_next/static/chunks/b9e0c7b4-52b02c0d4f161186.js" defer=""></script><script src="/_next/static/chunks/d57e5a30-463f9ed8df724792.js" defer=""></script><script src="/_next/static/chunks/2edb282b-45c56c19221816df.js" defer=""></script><script src="/_next/static/chunks/7f5d3f51-659399fe6f04b9eb.js" defer=""></script><script src="/_next/static/chunks/172-940ad0353b57ff98.js" defer=""></script><script src="/_next/static/chunks/8829-386c887227aab68c.js" defer=""></script><script src="/_next/static/chunks/4384-8a28a71e7e3b8d8a.js" defer=""></script><script src="/_next/static/chunks/8341-b8d844d6f606aed5.js" defer=""></script><script src="/_next/static/chunks/6790-f4527d80153a3e25.js" defer=""></script><script src="/_next/static/chunks/7005-09e42f99859b8d03.js" defer=""></script><script src="/_next/static/chunks/828-ef0e36f29db31dde.js" defer=""></script><script src="/_next/static/chunks/6772-fba69ba8e4fa1ef4.js" defer=""></script><script src="/_next/static/chunks/7109-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="description" content="Discover, Explore and Document your Event Driven Architectures"/><link rel="icon" href="/favicon.ico"/><meta property="og:url" content="https://eventcatalog.dev/"/><meta property="og:type" content="website"/><meta property="og:title" content="EventCatalog"/><meta property="og:description" content="Discover, Explore and Document your Event Driven Architectures"/><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"/><title>EventCatalog - AddedItemToCart v0.0.1</title><meta name="next-head-count" content="15"/><script src="//unpkg.com/three@0.145.0/build/three.min.js"></script><script src="//unpkg.com/three@0.145.0/examples/js/renderers/CSS2DRenderer.js"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/atom-one-light.min.css"/><link rel="preload" href="/_next/static/css/94b9a747218712b2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/94b9a747218712b2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/cc3c8fcadcf7a58b.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc3c8fcadcf7a58b.css" data-n-p=""/><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-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-7e93d0cba2ccf996.js" defer=""></script><script src="/_next/static/chunks/framework-6cc1bceeaaf75e91.js" defer=""></script><script src="/_next/static/chunks/main-da37322a396d572a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-d40841fd52b70886.js" defer=""></script><script src="/_next/static/chunks/b9e0c7b4-52b02c0d4f161186.js" defer=""></script><script src="/_next/static/chunks/d57e5a30-463f9ed8df724792.js" defer=""></script><script src="/_next/static/chunks/2edb282b-45c56c19221816df.js" defer=""></script><script src="/_next/static/chunks/7f5d3f51-659399fe6f04b9eb.js" defer=""></script><script src="/_next/static/chunks/172-940ad0353b57ff98.js" defer=""></script><script src="/_next/static/chunks/8829-386c887227aab68c.js" defer=""></script><script src="/_next/static/chunks/4384-8a28a71e7e3b8d8a.js" defer=""></script><script src="/_next/static/chunks/8341-b8d844d6f606aed5.js" defer=""></script><script src="/_next/static/chunks/6790-f4527d80153a3e25.js" defer=""></script><script src="/_next/static/chunks/7005-09e42f99859b8d03.js" defer=""></script><script src="/_next/static/chunks/828-ef0e36f29db31dde.js" defer=""></script><script src="/_next/static/chunks/6772-fba69ba8e4fa1ef4.js" defer=""></script><script src="/_next/static/chunks/7109-c8d3fde4c3b6798e.js" defer=""></script><script src="/_next/static/chunks/5493-b00dc3d50ab46716.js" defer=""></script><script src="/_next/static/chunks/1178-011609b6f3b123b3.js" defer=""></script><script src="/_next/static/chunks/pages/domains/%5Bdomain%5D/events/%5Bname%5D/v/%5Bversion%5D-175a58a05deb2eda.js" defer=""></script><script src="/_next/static/iIifsuP3Zi8zL1k9xuH-x/_buildManifest.js" defer=""></script><script src="/_next/static/iIifsuP3Zi8zL1k9xuH-x/_ssgManifest.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="/domains/">Domains</a><a class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium" href="/users/">Users</a><a class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium" href="/visualiser/">Visualiser</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/">Domain</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" href="/domains/Shopping/">Shopping</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" href="/events/?domain=Shopping">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" href="/domains/Shopping/events/AddedItemToCart/">AddedItemToCart</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="/domains/Shopping/events/AddedItemToCart/v/0.0.1">v0.0.1</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.1</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 class="bg-yellow-50 border-l-4 border-yellow-400 my-4 mt-0 pt-0 w-full"><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-yellow-400"><path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd"></path></svg>You are currently viewing an old version of this event (<!-- -->0.0.1<!-- -->).<a class="block text-sm pl-7 mt-2 text-blue-500 underline" href="/domains/Shopping/events/AddedItemToCart/">Read latest version →</a></div></div></div></div><div class="mt-4 flex space-x-3 md:mt-0"><a href="https://github.com/boyney123/eventcatalog-demo/edit/master/domains/Shopping/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><h3>Consumer / Producer Diagram</h3><div class="mx-auto w-full py-10"><div class="mermaid">flowchart LR
|
|
3
3
|
|
|
4
4
|
l-Basket_Service[Basket Service]:::producer-->AddedItemToCart[AddedItemToCart]:::event
|
|
@@ -56,4 +56,4 @@ click AddedItemToCart href "/domains/Shopping/events/AddedItemToCart"
|
|
|
56
56
|
</span></span><span><span> </span><span class="token" style="color:#f8f8f2">}</span><span>
|
|
57
57
|
</span></span><span><span> </span><span class="token" style="color:#f8f8f2">}</span><span>
|
|
58
58
|
</span></span><span><span></span><span class="token" style="color:#f8f8f2">}</span><span>
|
|
59
|
-
</span></span><span></span></code></pre></div></section></div></div></div></div></div><div class="flex mt-10 justify-between"><a href="https://github.com/boyney123/eventcatalog-demo/edit/master/domains/Shopping/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 <!-- -->2024/2/17</span></div></div><div class="md:min-h-screen"><aside class="hidden xl:block xl:pl-8 divide-y divide-gray-200"><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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 inline-block mr-2 text-green-400"><path stroke-linecap="round" stroke-linejoin="round" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Producers (1)</h2><ul class="mt-2 leading-8"><li class="inline mr-2"><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" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900 truncate max-w-xs">Basket Service</div></a></li></ul></div></div><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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 inline-block mr-2 text-indigo-400"><path stroke-linecap="round" stroke-linejoin="round" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Consumers (1)</h2><ul class="mt-2 leading-8"><li class="inline mr-2"><a class="relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5" href="/services/Data%20Lake/"><div class="absolute flex-shrink-0 flex items-center justify-center"><span class="h-1.5 w-1.5 rounded-full bg-indigo-500" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900 truncate max-w-xs">Data Lake</div></a></li></ul></div></div><div class="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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 text-yellow-400 inline-block mr-2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path></svg>Domain</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-yellow-500 animate animate-pulse" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900">Shopping</div></a></li></ul></div></div><div class=" 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="/domains/Shopping/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-100 text-blue-800">Latest</span></a></li><li class="text-sm inline"><a href="/domains/Shopping/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="/domains/Shopping/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-400 text-white shadow-md font-bold underline">v<!-- -->0.0.1</span></a></li></ul></div></div><div class=" py-6 space-y-8"><div><h2 class="text-sm font-medium text-gray-500">Domain Owners (<!-- -->2<!-- -->)</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=" py-6 space-y-1"><a href="/schemas/AddedItemToCart/0.0.1/schema.json" download="AddedItemToCart(0.0.1).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-width="2" stroke="currentColor" aria-hidden="true" class="-ml-1 mr-2 h-5 w-5 text-gray-200"><path stroke-linecap="round" stroke-linejoin="round" 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="/domains/Shopping/events/AddedItemToCart/logs/"><span>View Changes</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="/visualiser/?type=event&name=AddedItemToCart"><span>View in Visualiser</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-400">Events</a></div><div class="px-5 py-2"><a href="/services" class="text-base text-gray-500 hover:text-gray-400">Services</a></div><div class="px-5 py-2"><a href="/visualiser" class="text-base text-gray-500 hover:text-gray-400">Visualiser</a></div><div class="px-5 py-2"><a href="/overview" class="text-base text-gray-500 hover:text-gray-400">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-400">GitHub</a></div></nav><p class="mt-8 text-center text-base text-gray-400">Copyright © <!-- -->2024<!-- --> <!-- -->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.1","summary":"Holds information about what the user added to their shopping cart.\n","domain":"Shopping","producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"badges":[],"tags":[],"producers":[{"name":"Basket Service"}],"consumers":[{"name":"Data Lake"}],"openAPISpec":null,"historicVersions":["0.0.2","0.0.1"],"schema":{"snippet":"{\n \"$id\": \"https://example.com/AddedItemToCart.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"AddedItemToCart\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"itemId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shopping item\"\n }\n }\n }\n }\n}\n","language":"json","extension":"json"},"examples":[]},"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\n### Consumer / Producer Diagram\n\n\u003cMermaid /\u003e\n\n\u003cSchema /\u003e","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=\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)=\u003ep(e,l(t));var h=(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\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=h(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. This front end interacts directly with the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" to add items to the cart. The \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" will raise the events.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2024/2/17"},"eventPath":"/domains/Shopping/events/AddedItemToCart","breadCrumbs":[{"name":"Domain","href":"/events","current":false},{"name":"Shopping","href":"/domains/Shopping","current":false},{"name":"Events","href":"/events?domain=Shopping","current":false},{"name":"AddedItemToCart","href":"/domains/Shopping/events/AddedItemToCart","current":false},{"name":"v0.0.1","href":"/domains/Shopping/events/AddedItemToCart/v/0.0.1","current":true}],"loadedVersion":"0.0.1"},"__N_SSG":true},"page":"/domains/[domain]/events/[name]/v/[version]","query":{"domain":"Shopping","name":"AddedItemToCart","version":"0.0.1"},"buildId":"ab9mQ_Is0joPnE3nhy0Z9","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html>
|
|
59
|
+
</span></span><span></span></code></pre></div></section></div></div></div></div></div><div class="flex mt-10 justify-between"><a href="https://github.com/boyney123/eventcatalog-demo/edit/master/domains/Shopping/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 <!-- -->2024/2/17</span></div></div><div class="md:min-h-screen"><aside class="hidden xl:block xl:pl-8 divide-y divide-gray-200"><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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 inline-block mr-2 text-green-400"><path stroke-linecap="round" stroke-linejoin="round" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Producers (1)</h2><ul class="mt-2 leading-8"><li class="inline mr-2"><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" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900 truncate max-w-xs">Basket Service</div></a></li></ul></div></div><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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 inline-block mr-2 text-indigo-400"><path stroke-linecap="round" stroke-linejoin="round" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Consumers (1)</h2><ul class="mt-2 leading-8"><li class="inline mr-2"><a class="relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5" href="/services/Data%20Lake/"><div class="absolute flex-shrink-0 flex items-center justify-center"><span class="h-1.5 w-1.5 rounded-full bg-indigo-500" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900 truncate max-w-xs">Data Lake</div></a></li></ul></div></div><div class="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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 text-yellow-400 inline-block mr-2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path></svg>Domain</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-yellow-500 animate animate-pulse" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900">Shopping</div></a></li></ul></div></div><div class=" 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="/domains/Shopping/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-100 text-blue-800">Latest</span></a></li><li class="text-sm inline"><a href="/domains/Shopping/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="/domains/Shopping/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-400 text-white shadow-md font-bold underline">v<!-- -->0.0.1</span></a></li></ul></div></div><div class=" py-6 space-y-8"><div><h2 class="text-sm font-medium text-gray-500">Domain Owners (<!-- -->2<!-- -->)</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=" py-6 space-y-1"><a href="/schemas/AddedItemToCart/0.0.1/schema.json" download="AddedItemToCart(0.0.1).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-width="2" stroke="currentColor" aria-hidden="true" class="-ml-1 mr-2 h-5 w-5 text-gray-200"><path stroke-linecap="round" stroke-linejoin="round" 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="/domains/Shopping/events/AddedItemToCart/logs/"><span>View Changes</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="/visualiser/?type=event&name=AddedItemToCart"><span>View in Visualiser</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-400">Events</a></div><div class="px-5 py-2"><a href="/services" class="text-base text-gray-500 hover:text-gray-400">Services</a></div><div class="px-5 py-2"><a href="/visualiser" class="text-base text-gray-500 hover:text-gray-400">Visualiser</a></div><div class="px-5 py-2"><a href="/overview" class="text-base text-gray-500 hover:text-gray-400">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-400">GitHub</a></div></nav><p class="mt-8 text-center text-base text-gray-400">Copyright © <!-- -->2024<!-- --> <!-- -->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.1","summary":"Holds information about what the user added to their shopping cart.\n","domain":"Shopping","producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"badges":[],"tags":[],"producers":[{"name":"Basket Service"}],"consumers":[{"name":"Data Lake"}],"openAPISpec":null,"historicVersions":["0.0.2","0.0.1"],"schema":{"snippet":"{\n \"$id\": \"https://example.com/AddedItemToCart.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"AddedItemToCart\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"itemId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shopping item\"\n }\n }\n }\n }\n}\n","language":"json","extension":"json"},"examples":[]},"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\n### Consumer / Producer Diagram\n\n\u003cMermaid /\u003e\n\n\u003cSchema /\u003e","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=\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)=\u003ep(e,l(t));var h=(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\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=h(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. This front end interacts directly with the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" to add items to the cart. The \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" will raise the events.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2024/2/17"},"eventPath":"/domains/Shopping/events/AddedItemToCart","breadCrumbs":[{"name":"Domain","href":"/events","current":false},{"name":"Shopping","href":"/domains/Shopping","current":false},{"name":"Events","href":"/events?domain=Shopping","current":false},{"name":"AddedItemToCart","href":"/domains/Shopping/events/AddedItemToCart","current":false},{"name":"v0.0.1","href":"/domains/Shopping/events/AddedItemToCart/v/0.0.1","current":true}],"loadedVersion":"0.0.1"},"__N_SSG":true},"page":"/domains/[domain]/events/[name]/v/[version]","query":{"domain":"Shopping","name":"AddedItemToCart","version":"0.0.1"},"buildId":"iIifsuP3Zi8zL1k9xuH-x","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="description" content="Discover, Explore and Document your Event Driven Architectures"/><link rel="icon" href="/favicon.ico"/><meta property="og:url" content="https://eventcatalog.dev/"/><meta property="og:type" content="website"/><meta property="og:title" content="EventCatalog"/><meta property="og:description" content="Discover, Explore and Document your Event Driven Architectures"/><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"/><title>EventCatalog - AddedItemToCart v0.0.1</title><meta name="next-head-count" content="15"/><script src="//unpkg.com/three@0.145.0/build/three.min.js"></script><script src="//unpkg.com/three@0.145.0/examples/js/renderers/CSS2DRenderer.js"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/atom-one-light.min.css"/><link rel="preload" href="/_next/static/css/94b9a747218712b2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/94b9a747218712b2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/cc3c8fcadcf7a58b.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc3c8fcadcf7a58b.css" data-n-p=""/><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-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-7e93d0cba2ccf996.js" defer=""></script><script src="/_next/static/chunks/framework-6cc1bceeaaf75e91.js" defer=""></script><script src="/_next/static/chunks/main-da37322a396d572a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-d40841fd52b70886.js" defer=""></script><script src="/_next/static/chunks/b9e0c7b4-52b02c0d4f161186.js" defer=""></script><script src="/_next/static/chunks/d57e5a30-463f9ed8df724792.js" defer=""></script><script src="/_next/static/chunks/2edb282b-45c56c19221816df.js" defer=""></script><script src="/_next/static/chunks/7f5d3f51-659399fe6f04b9eb.js" defer=""></script><script src="/_next/static/chunks/172-940ad0353b57ff98.js" defer=""></script><script src="/_next/static/chunks/8829-386c887227aab68c.js" defer=""></script><script src="/_next/static/chunks/4384-8a28a71e7e3b8d8a.js" defer=""></script><script src="/_next/static/chunks/8341-b8d844d6f606aed5.js" defer=""></script><script src="/_next/static/chunks/6790-f4527d80153a3e25.js" defer=""></script><script src="/_next/static/chunks/7005-09e42f99859b8d03.js" defer=""></script><script src="/_next/static/chunks/828-ef0e36f29db31dde.js" defer=""></script><script src="/_next/static/chunks/6772-fba69ba8e4fa1ef4.js" defer=""></script><script src="/_next/static/chunks/7109-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="description" content="Discover, Explore and Document your Event Driven Architectures"/><link rel="icon" href="/favicon.ico"/><meta property="og:url" content="https://eventcatalog.dev/"/><meta property="og:type" content="website"/><meta property="og:title" content="EventCatalog"/><meta property="og:description" content="Discover, Explore and Document your Event Driven Architectures"/><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"/><title>EventCatalog - AddedItemToCart v0.0.1</title><meta name="next-head-count" content="15"/><script src="//unpkg.com/three@0.145.0/build/three.min.js"></script><script src="//unpkg.com/three@0.145.0/examples/js/renderers/CSS2DRenderer.js"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/atom-one-light.min.css"/><link rel="preload" href="/_next/static/css/94b9a747218712b2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/94b9a747218712b2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/cc3c8fcadcf7a58b.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc3c8fcadcf7a58b.css" data-n-p=""/><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-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-7e93d0cba2ccf996.js" defer=""></script><script src="/_next/static/chunks/framework-6cc1bceeaaf75e91.js" defer=""></script><script src="/_next/static/chunks/main-da37322a396d572a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-d40841fd52b70886.js" defer=""></script><script src="/_next/static/chunks/b9e0c7b4-52b02c0d4f161186.js" defer=""></script><script src="/_next/static/chunks/d57e5a30-463f9ed8df724792.js" defer=""></script><script src="/_next/static/chunks/2edb282b-45c56c19221816df.js" defer=""></script><script src="/_next/static/chunks/7f5d3f51-659399fe6f04b9eb.js" defer=""></script><script src="/_next/static/chunks/172-940ad0353b57ff98.js" defer=""></script><script src="/_next/static/chunks/8829-386c887227aab68c.js" defer=""></script><script src="/_next/static/chunks/4384-8a28a71e7e3b8d8a.js" defer=""></script><script src="/_next/static/chunks/8341-b8d844d6f606aed5.js" defer=""></script><script src="/_next/static/chunks/6790-f4527d80153a3e25.js" defer=""></script><script src="/_next/static/chunks/7005-09e42f99859b8d03.js" defer=""></script><script src="/_next/static/chunks/828-ef0e36f29db31dde.js" defer=""></script><script src="/_next/static/chunks/6772-fba69ba8e4fa1ef4.js" defer=""></script><script src="/_next/static/chunks/7109-c8d3fde4c3b6798e.js" defer=""></script><script src="/_next/static/chunks/5493-b00dc3d50ab46716.js" defer=""></script><script src="/_next/static/chunks/1178-011609b6f3b123b3.js" defer=""></script><script src="/_next/static/chunks/pages/domains/%5Bdomain%5D/events/%5Bname%5D/v/%5Bversion%5D-175a58a05deb2eda.js" defer=""></script><script src="/_next/static/iIifsuP3Zi8zL1k9xuH-x/_buildManifest.js" defer=""></script><script src="/_next/static/iIifsuP3Zi8zL1k9xuH-x/_ssgManifest.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="/domains/">Domains</a><a class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium" href="/users/">Users</a><a class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium" href="/visualiser/">Visualiser</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/">Domain</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" href="/domains/Shopping/">Shopping</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" href="/events/?domain=Shopping">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" href="/domains/Shopping/events/AddedItemToCart/">AddedItemToCart</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="/domains/Shopping/events/AddedItemToCart/v/0.0.2">v0.0.2</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.1</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 class="bg-yellow-50 border-l-4 border-yellow-400 my-4 mt-0 pt-0 w-full"><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-yellow-400"><path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd"></path></svg>You are currently viewing an old version of this event (<!-- -->0.0.2<!-- -->).<a class="block text-sm pl-7 mt-2 text-blue-500 underline" href="/domains/Shopping/events/AddedItemToCart/">Read latest version →</a></div></div></div></div><div class="mt-4 flex space-x-3 md:mt-0"><a href="https://github.com/boyney123/eventcatalog-demo/edit/master/domains/Shopping/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><h3>Consumer / Producer Diagram</h3><div class="mx-auto w-full py-10"><div class="mermaid">flowchart LR
|
|
3
3
|
|
|
4
4
|
l-Basket_Service[Basket Service]:::producer-->AddedItemToCart[AddedItemToCart]:::event
|
|
@@ -63,4 +63,4 @@ click AddedItemToCart href "/domains/Shopping/events/AddedItemToCart"
|
|
|
63
63
|
</span></span><span><span> </span><span class="token" style="color:#f8f8f2">}</span><span>
|
|
64
64
|
</span></span><span><span> </span><span class="token" style="color:#f8f8f2">}</span><span>
|
|
65
65
|
</span></span><span><span></span><span class="token" style="color:#f8f8f2">}</span><span>
|
|
66
|
-
</span></span><span></span></code></pre></div></section></div></div></div></div></div><div class="flex mt-10 justify-between"><a href="https://github.com/boyney123/eventcatalog-demo/edit/master/domains/Shopping/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 <!-- -->2024/2/17</span></div></div><div class="md:min-h-screen"><aside class="hidden xl:block xl:pl-8 divide-y divide-gray-200"><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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 inline-block mr-2 text-green-400"><path stroke-linecap="round" stroke-linejoin="round" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Producers (1)</h2><ul class="mt-2 leading-8"><li class="inline mr-2"><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" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900 truncate max-w-xs">Basket Service</div></a></li></ul></div></div><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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 inline-block mr-2 text-indigo-400"><path stroke-linecap="round" stroke-linejoin="round" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Consumers (1)</h2><ul class="mt-2 leading-8"><li class="inline mr-2"><a class="relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5" href="/services/Data%20Lake/"><div class="absolute flex-shrink-0 flex items-center justify-center"><span class="h-1.5 w-1.5 rounded-full bg-indigo-500" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900 truncate max-w-xs">Data Lake</div></a></li></ul></div></div><div class="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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 text-yellow-400 inline-block mr-2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path></svg>Domain</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-yellow-500 animate animate-pulse" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900">Shopping</div></a></li></ul></div></div><div class=" 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="/domains/Shopping/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-100 text-blue-800">Latest</span></a></li><li class="text-sm inline"><a href="/domains/Shopping/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-400 text-white shadow-md font-bold underline">v<!-- -->0.0.2</span></a></li><li class="text-sm inline"><a href="/domains/Shopping/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=" py-6 space-y-8"><div><h2 class="text-sm font-medium text-gray-500">Domain Owners (<!-- -->2<!-- -->)</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=" py-6 space-y-1"><a href="/schemas/AddedItemToCart/0.0.2/schema.json" download="AddedItemToCart(0.0.1).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-width="2" stroke="currentColor" aria-hidden="true" class="-ml-1 mr-2 h-5 w-5 text-gray-200"><path stroke-linecap="round" stroke-linejoin="round" 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="/domains/Shopping/events/AddedItemToCart/logs/"><span>View Changes</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="/visualiser/?type=event&name=AddedItemToCart"><span>View in Visualiser</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-400">Events</a></div><div class="px-5 py-2"><a href="/services" class="text-base text-gray-500 hover:text-gray-400">Services</a></div><div class="px-5 py-2"><a href="/visualiser" class="text-base text-gray-500 hover:text-gray-400">Visualiser</a></div><div class="px-5 py-2"><a href="/overview" class="text-base text-gray-500 hover:text-gray-400">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-400">GitHub</a></div></nav><p class="mt-8 text-center text-base text-gray-400">Copyright © <!-- -->2024<!-- --> <!-- -->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.1","summary":"Holds information about what the user added to their shopping cart.\n","domain":"Shopping","producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"badges":[],"tags":[],"producers":[{"name":"Basket Service"}],"consumers":[{"name":"Data Lake"}],"openAPISpec":null,"historicVersions":["0.0.2","0.0.1"],"schema":{"snippet":"{\n \"$id\": \"https://example.com/AddedItemToCart.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"AddedItemToCart\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"itemId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shopping item\"\n },\n \"quantity\": {\n \"type\": \"number\",\n \"description\": \"How many items the user wants to add to their shopping cart\",\n \"minimum\": 1,\n \"maximum\": 100,\n \"default\": 1\n }\n }\n }\n }\n}\n","language":"json","extension":"json"},"examples":[]},"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\n### Consumer / Producer Diagram\n\n\u003cMermaid /\u003e\n\n\u003cSchema /\u003e","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=\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)=\u003ep(e,l(t));var h=(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\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=h(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. This front end interacts directly with the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" to add items to the cart. The \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" will raise the events.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2024/2/17"},"eventPath":"/domains/Shopping/events/AddedItemToCart","breadCrumbs":[{"name":"Domain","href":"/events","current":false},{"name":"Shopping","href":"/domains/Shopping","current":false},{"name":"Events","href":"/events?domain=Shopping","current":false},{"name":"AddedItemToCart","href":"/domains/Shopping/events/AddedItemToCart","current":false},{"name":"v0.0.2","href":"/domains/Shopping/events/AddedItemToCart/v/0.0.2","current":true}],"loadedVersion":"0.0.2"},"__N_SSG":true},"page":"/domains/[domain]/events/[name]/v/[version]","query":{"domain":"Shopping","name":"AddedItemToCart","version":"0.0.2"},"buildId":"ab9mQ_Is0joPnE3nhy0Z9","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html>
|
|
66
|
+
</span></span><span></span></code></pre></div></section></div></div></div></div></div><div class="flex mt-10 justify-between"><a href="https://github.com/boyney123/eventcatalog-demo/edit/master/domains/Shopping/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 <!-- -->2024/2/17</span></div></div><div class="md:min-h-screen"><aside class="hidden xl:block xl:pl-8 divide-y divide-gray-200"><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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 inline-block mr-2 text-green-400"><path stroke-linecap="round" stroke-linejoin="round" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Producers (1)</h2><ul class="mt-2 leading-8"><li class="inline mr-2"><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" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900 truncate max-w-xs">Basket Service</div></a></li></ul></div></div><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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 inline-block mr-2 text-indigo-400"><path stroke-linecap="round" stroke-linejoin="round" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Consumers (1)</h2><ul class="mt-2 leading-8"><li class="inline mr-2"><a class="relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5" href="/services/Data%20Lake/"><div class="absolute flex-shrink-0 flex items-center justify-center"><span class="h-1.5 w-1.5 rounded-full bg-indigo-500" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900 truncate max-w-xs">Data Lake</div></a></li></ul></div></div><div class="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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 text-yellow-400 inline-block mr-2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path></svg>Domain</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-yellow-500 animate animate-pulse" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900">Shopping</div></a></li></ul></div></div><div class=" 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="/domains/Shopping/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-100 text-blue-800">Latest</span></a></li><li class="text-sm inline"><a href="/domains/Shopping/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-400 text-white shadow-md font-bold underline">v<!-- -->0.0.2</span></a></li><li class="text-sm inline"><a href="/domains/Shopping/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=" py-6 space-y-8"><div><h2 class="text-sm font-medium text-gray-500">Domain Owners (<!-- -->2<!-- -->)</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=" py-6 space-y-1"><a href="/schemas/AddedItemToCart/0.0.2/schema.json" download="AddedItemToCart(0.0.1).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-width="2" stroke="currentColor" aria-hidden="true" class="-ml-1 mr-2 h-5 w-5 text-gray-200"><path stroke-linecap="round" stroke-linejoin="round" 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="/domains/Shopping/events/AddedItemToCart/logs/"><span>View Changes</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="/visualiser/?type=event&name=AddedItemToCart"><span>View in Visualiser</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-400">Events</a></div><div class="px-5 py-2"><a href="/services" class="text-base text-gray-500 hover:text-gray-400">Services</a></div><div class="px-5 py-2"><a href="/visualiser" class="text-base text-gray-500 hover:text-gray-400">Visualiser</a></div><div class="px-5 py-2"><a href="/overview" class="text-base text-gray-500 hover:text-gray-400">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-400">GitHub</a></div></nav><p class="mt-8 text-center text-base text-gray-400">Copyright © <!-- -->2024<!-- --> <!-- -->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.1","summary":"Holds information about what the user added to their shopping cart.\n","domain":"Shopping","producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"badges":[],"tags":[],"producers":[{"name":"Basket Service"}],"consumers":[{"name":"Data Lake"}],"openAPISpec":null,"historicVersions":["0.0.2","0.0.1"],"schema":{"snippet":"{\n \"$id\": \"https://example.com/AddedItemToCart.json\",\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"AddedItemToCart\",\n \"type\": \"object\",\n \"properties\": {\n \"metadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"domain\": {\n \"type\": \"string\",\n \"description\": \"The domain of the event\"\n },\n \"service\": {\n \"type\": \"string\",\n \"description\": \"The name of the service that triggered the event\"\n }\n },\n \"required\": [\"correlationId\", \"domain\"]\n },\n \"data\": {\n \"type\": \"object\",\n \"properties\": {\n \"userId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the user\"\n },\n \"itemId\": {\n \"type\": \"string\",\n \"description\": \"The ID of the shopping item\"\n },\n \"quantity\": {\n \"type\": \"number\",\n \"description\": \"How many items the user wants to add to their shopping cart\",\n \"minimum\": 1,\n \"maximum\": 100,\n \"default\": 1\n }\n }\n }\n }\n}\n","language":"json","extension":"json"},"examples":[]},"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\n### Consumer / Producer Diagram\n\n\u003cMermaid /\u003e\n\n\u003cSchema /\u003e","source":{"compiledSource":"var c=Object.defineProperty,p=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=\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)=\u003ep(e,l(t));var h=(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\"),Schema=makeShortcode(\"Schema\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=h(n,[\"components\"]);return mdx(MDXLayout,m(r(r({},layoutProps),t),{components:e,mdxType:\"MDXLayout\"}),mdx(Admonition,{mdxType:\"Admonition\"},\"When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.\"),mdx(\"h3\",null,\"Details\"),mdx(\"p\",null,\"This event can be triggered multiple times per customer. Everytime the customer adds an item to their shopping cart this event will be triggered.\"),mdx(\"p\",null,\"We have a frontend application that allows users to buy things from our store. This front end interacts directly with the \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" to add items to the cart. The \",mdx(\"inlineCode\",{parentName:\"p\"},\"Basket Service\"),\" will raise the events.\"),mdx(\"h3\",null,\"Consumer / Producer Diagram\"),mdx(Mermaid,{mdxType:\"Mermaid\"}),mdx(Schema,{mdxType:\"Schema\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2024/2/17"},"eventPath":"/domains/Shopping/events/AddedItemToCart","breadCrumbs":[{"name":"Domain","href":"/events","current":false},{"name":"Shopping","href":"/domains/Shopping","current":false},{"name":"Events","href":"/events?domain=Shopping","current":false},{"name":"AddedItemToCart","href":"/domains/Shopping/events/AddedItemToCart","current":false},{"name":"v0.0.2","href":"/domains/Shopping/events/AddedItemToCart/v/0.0.2","current":true}],"loadedVersion":"0.0.2"},"__N_SSG":true},"page":"/domains/[domain]/events/[name]/v/[version]","query":{"domain":"Shopping","name":"AddedItemToCart","version":"0.0.2"},"buildId":"iIifsuP3Zi8zL1k9xuH-x","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="description" content="Discover, Explore and Document your Event Driven Architectures"/><link rel="icon" href="/favicon.ico"/><meta property="og:url" content="https://eventcatalog.dev/"/><meta property="og:type" content="website"/><meta property="og:title" content="EventCatalog"/><meta property="og:description" content="Discover, Explore and Document your Event Driven Architectures"/><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"/><title>EventCatalog - AddedItemToCart v0.0.2</title><meta name="next-head-count" content="15"/><script src="//unpkg.com/three@0.145.0/build/three.min.js"></script><script src="//unpkg.com/three@0.145.0/examples/js/renderers/CSS2DRenderer.js"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/atom-one-light.min.css"/><link rel="preload" href="/_next/static/css/94b9a747218712b2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/94b9a747218712b2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/cc3c8fcadcf7a58b.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc3c8fcadcf7a58b.css" data-n-p=""/><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-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-7e93d0cba2ccf996.js" defer=""></script><script src="/_next/static/chunks/framework-6cc1bceeaaf75e91.js" defer=""></script><script src="/_next/static/chunks/main-da37322a396d572a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-d40841fd52b70886.js" defer=""></script><script src="/_next/static/chunks/b9e0c7b4-52b02c0d4f161186.js" defer=""></script><script src="/_next/static/chunks/d57e5a30-463f9ed8df724792.js" defer=""></script><script src="/_next/static/chunks/2edb282b-45c56c19221816df.js" defer=""></script><script src="/_next/static/chunks/7f5d3f51-659399fe6f04b9eb.js" defer=""></script><script src="/_next/static/chunks/172-940ad0353b57ff98.js" defer=""></script><script src="/_next/static/chunks/8829-386c887227aab68c.js" defer=""></script><script src="/_next/static/chunks/4384-8a28a71e7e3b8d8a.js" defer=""></script><script src="/_next/static/chunks/8341-b8d844d6f606aed5.js" defer=""></script><script src="/_next/static/chunks/6790-f4527d80153a3e25.js" defer=""></script><script src="/_next/static/chunks/7005-09e42f99859b8d03.js" defer=""></script><script src="/_next/static/chunks/828-ef0e36f29db31dde.js" defer=""></script><script src="/_next/static/chunks/6772-fba69ba8e4fa1ef4.js" defer=""></script><script src="/_next/static/chunks/7109-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="description" content="Discover, Explore and Document your Event Driven Architectures"/><link rel="icon" href="/favicon.ico"/><meta property="og:url" content="https://eventcatalog.dev/"/><meta property="og:type" content="website"/><meta property="og:title" content="EventCatalog"/><meta property="og:description" content="Discover, Explore and Document your Event Driven Architectures"/><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"/><title>EventCatalog - AddedItemToCart v0.0.2</title><meta name="next-head-count" content="15"/><script src="//unpkg.com/three@0.145.0/build/three.min.js"></script><script src="//unpkg.com/three@0.145.0/examples/js/renderers/CSS2DRenderer.js"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/atom-one-light.min.css"/><link rel="preload" href="/_next/static/css/94b9a747218712b2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/94b9a747218712b2.css" data-n-g=""/><link rel="preload" href="/_next/static/css/cc3c8fcadcf7a58b.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cc3c8fcadcf7a58b.css" data-n-p=""/><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-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-7e93d0cba2ccf996.js" defer=""></script><script src="/_next/static/chunks/framework-6cc1bceeaaf75e91.js" defer=""></script><script src="/_next/static/chunks/main-da37322a396d572a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-d40841fd52b70886.js" defer=""></script><script src="/_next/static/chunks/b9e0c7b4-52b02c0d4f161186.js" defer=""></script><script src="/_next/static/chunks/d57e5a30-463f9ed8df724792.js" defer=""></script><script src="/_next/static/chunks/2edb282b-45c56c19221816df.js" defer=""></script><script src="/_next/static/chunks/7f5d3f51-659399fe6f04b9eb.js" defer=""></script><script src="/_next/static/chunks/172-940ad0353b57ff98.js" defer=""></script><script src="/_next/static/chunks/8829-386c887227aab68c.js" defer=""></script><script src="/_next/static/chunks/4384-8a28a71e7e3b8d8a.js" defer=""></script><script src="/_next/static/chunks/8341-b8d844d6f606aed5.js" defer=""></script><script src="/_next/static/chunks/6790-f4527d80153a3e25.js" defer=""></script><script src="/_next/static/chunks/7005-09e42f99859b8d03.js" defer=""></script><script src="/_next/static/chunks/828-ef0e36f29db31dde.js" defer=""></script><script src="/_next/static/chunks/6772-fba69ba8e4fa1ef4.js" defer=""></script><script src="/_next/static/chunks/7109-c8d3fde4c3b6798e.js" defer=""></script><script src="/_next/static/chunks/5493-b00dc3d50ab46716.js" defer=""></script><script src="/_next/static/chunks/1178-011609b6f3b123b3.js" defer=""></script><script src="/_next/static/chunks/pages/domains/%5Bdomain%5D/events/%5Bname%5D-7c7c2526e7d63883.js" defer=""></script><script src="/_next/static/iIifsuP3Zi8zL1k9xuH-x/_buildManifest.js" defer=""></script><script src="/_next/static/iIifsuP3Zi8zL1k9xuH-x/_ssgManifest.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="/domains/">Domains</a><a class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium" href="/users/">Users</a><a class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium" href="/visualiser/">Visualiser</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="/domains/">Domain</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" href="/domains/Shopping/">Shopping</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" href="/events/?domain=Shopping">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="/domains/Shopping/events/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.2</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/domains/Shopping/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"><h2 class="text-lg font-medium text-gray-900 underline">Consumer / Producer Diagram</h2><div class="node-graph w-full h-screen border-dashed border-2 border-slate-300" style="height:300px"><div class="react-flow"><div class="react-flow__renderer react-flow__zoompane"><div class="react-flow__nodes" style="transform:translate(0px,0px) scale(1)"></div><div class="react-flow__pane"></div></div></div><a class="block text-right underline text-xs mt-4" href="/visualiser/?type=event&name=AddedItemToCart">Open in Visualiser →</a></div></div><div class="my-5 examples"><div class=""><h2 class="text-lg font-medium text-gray-700 underline">How to trigger event</h2><div><div class="col-span-5"><nav class="-mb-2 flex bg-gray-900 w-full overflow-hidden overflow-x-scroll" aria-label="Tabs"><button type="button" class="border-yellow-300 text-yellow-300 selected bg-gray-700 whitespace-nowrap py-3 border-b-2 font-medium important:no-underline px-6 text-xs transition " aria-current="page">example.js</button></nav><div><div class="h-96 relative"><button type="button" class="text-xs absolute right-0 top-2 text-white rounded-md px-4"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true" class="h-4 w-4"><path stroke-linecap="round" stroke-linejoin="round" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button><pre class="h-96 overflow-auto" style="color:#f8f8f2;background:#282a36;text-shadow:0 1px rgba(0, 0, 0, 0.3);font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;padding:1em;margin:.5em 0;overflow:auto;border-radius:0.3em"><code class="language-javascript" style="color:#f8f8f2;background:none;text-shadow:0 1px rgba(0, 0, 0, 0.3);font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none"><span><span class="linenumber react-syntax-highlighter-line-number" style="display:inline-block;min-width:3.25em;padding-right:1em;text-align:right;user-select:none;color:#6272a4">1</span><span class="token" style="color:#8be9fd">var</span><span> kafka </span><span class="token" style="color:#f8f8f2">=</span><span> </span><span class="token" style="color:#f1fa8c">require</span><span class="token" style="color:#f8f8f2">(</span><span class="token" style="color:#50fa7b">'kafka-node'</span><span class="token" style="color:#f8f8f2">)</span><span class="token" style="color:#f8f8f2">,</span><span>
|
|
3
3
|
</span></span><span><span class="linenumber react-syntax-highlighter-line-number" style="display:inline-block;min-width:3.25em;padding-right:1em;text-align:right;user-select:none;color:#6272a4">2</span><span> </span><span class="token maybe-class-name">Consumer</span><span> </span><span class="token" style="color:#f8f8f2">=</span><span> kafka</span><span class="token" style="color:#f8f8f2">.</span><span class="token property-access maybe-class-name">Consumer</span><span class="token" style="color:#f8f8f2">,</span><span>
|
|
4
4
|
</span></span><span><span class="linenumber react-syntax-highlighter-line-number" style="display:inline-block;min-width:3.25em;padding-right:1em;text-align:right;user-select:none;color:#6272a4">3</span><span> client </span><span class="token" style="color:#f8f8f2">=</span><span> </span><span class="token" style="color:#8be9fd">new</span><span> </span><span class="token" style="color:#f1fa8c">kafka</span><span class="token" style="color:#f8f8f2">.</span><span class="token" style="color:#f1fa8c">KafkaClient</span><span class="token" style="color:#f8f8f2">(</span><span class="token" style="color:#f8f8f2">)</span><span class="token" style="color:#f8f8f2">,</span><span>
|
|
@@ -62,4 +62,4 @@
|
|
|
62
62
|
</span></span><span><span> </span><span class="token" style="color:#f8f8f2">}</span><span>
|
|
63
63
|
</span></span><span><span> </span><span class="token" style="color:#f8f8f2">}</span><span>
|
|
64
64
|
</span></span><span><span></span><span class="token" style="color:#f8f8f2">}</span><span>
|
|
65
|
-
</span></span><span></span></code></pre></div></section><section class="mt-8 xl:mt-10"><div class="" id="mosaic-provider-react-aria-0-1"><div data-overlay-container="true" class=""><div style="max-height:500px" class="JsonSchemaViewer SchemaViewer_schemaViewer__un45l sl-overflow-y-auto sl-relative"><div></div><div data-level="0" class="sl-text-sm sl-ml-px sl-border-l"><div class="sl-flex sl-max-w-full sl-py-2 sl-pl-3"><div class="sl-w-1 sl-mt-2 sl-mr-3 sl--ml-3 sl-border-t"></div><div class="sl-stack sl-stack--vertical sl-stack--1 sl-flex sl-flex-1 sl-flex-col sl-items-stretch sl-max-w-full sl-ml-2"><div class="sl-flex sl-items-center sl-max-w-full sl-cursor-pointer"><div class="sl-flex sl-justify-center sl-w-8 sl--ml-8 sl-pl-3 sl-text-muted" role="button"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-fw fa-sm sl-icon" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"></path></svg></div><div class="sl-flex sl-items-baseline sl-text-base"><div class="sl-font-mono sl-font-semibold sl-mr-2">metadata</div><span class="sl-truncate sl-text-muted">object</span></div></div></div></div><div class="sl-flex sl-max-w-full sl-py-2 sl-pl-3"><div class="sl-w-1 sl-mt-2 sl-mr-3 sl--ml-3 sl-border-t"></div><div class="sl-stack sl-stack--vertical sl-stack--1 sl-flex sl-flex-1 sl-flex-col sl-items-stretch sl-max-w-full sl-ml-2"><div class="sl-flex sl-items-center sl-max-w-full sl-cursor-pointer"><div class="sl-flex sl-justify-center sl-w-8 sl--ml-8 sl-pl-3 sl-text-muted" role="button"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-fw fa-sm sl-icon" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"></path></svg></div><div class="sl-flex sl-items-baseline sl-text-base"><div class="sl-font-mono sl-font-semibold sl-mr-2">data</div><span class="sl-truncate sl-text-muted">object</span></div></div></div></div></div></div></div></div></section></div></div></div></div></div><div class="flex mt-10 justify-between"><a href="https://github.com/boyney123/eventcatalog-demo/edit/master/domains/Shopping/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 <!-- -->2024/2/17</span></div></div><div class="md:min-h-screen"><aside class="hidden xl:block xl:pl-8 divide-y divide-gray-200"><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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 inline-block mr-2 text-green-400"><path stroke-linecap="round" stroke-linejoin="round" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Producers (1)</h2><ul class="mt-2 leading-8"><li class="inline mr-2"><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" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900 truncate max-w-xs">Basket Service</div></a></li></ul></div></div><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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 inline-block mr-2 text-indigo-400"><path stroke-linecap="round" stroke-linejoin="round" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Consumers (1)</h2><ul class="mt-2 leading-8"><li class="inline mr-2"><a class="relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5" href="/services/Data%20Lake/"><div class="absolute flex-shrink-0 flex items-center justify-center"><span class="h-1.5 w-1.5 rounded-full bg-indigo-500" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900 truncate max-w-xs">Data Lake</div></a></li></ul></div></div><div class="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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 text-yellow-400 inline-block mr-2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path></svg>Domain</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-yellow-500 animate animate-pulse" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900">Shopping</div></a></li></ul></div></div><div class=" 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="/domains/Shopping/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="/domains/Shopping/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="/domains/Shopping/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=" py-6 space-y-8"><div><h2 class="text-sm font-medium text-gray-500">Domain Owners (<!-- -->2<!-- -->)</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=" py-6 space-y-1"><a href="/schemas/AddedItemToCart/schema.json" download="AddedItemToCart(0.0.2).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-width="2" stroke="currentColor" aria-hidden="true" class="-ml-1 mr-2 h-5 w-5 text-gray-200"><path stroke-linecap="round" stroke-linejoin="round" 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="/domains/Shopping/events/AddedItemToCart/logs/"><span>View Changes</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="/visualiser/?type=event&name=AddedItemToCart"><span>View in Visualiser</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-400">Events</a></div><div class="px-5 py-2"><a href="/services" class="text-base text-gray-500 hover:text-gray-400">Services</a></div><div class="px-5 py-2"><a href="/visualiser" class="text-base text-gray-500 hover:text-gray-400">Visualiser</a></div><div class="px-5 py-2"><a href="/overview" class="text-base text-gray-500 hover:text-gray-400">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-400">GitHub</a></div></nav><p class="mt-8 text-center text-base text-gray-400">Copyright © <!-- -->2024<!-- --> <!-- -->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.2","summary":"Holds information about what the user added to their shopping cart.\n","domain":"Shopping","producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"badges":[{"content":"New!","backgroundColor":"blue","textColor":"blue"}],"tags":[],"producers":[{"name":"Basket Service"}],"consumers":[{"name":"Data Lake"}],"openAPISpec":null,"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}\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"}]},"eventPath":"/domains/Shopping/events/AddedItemToCart","breadCrumbs":[{"name":"Domain","href":"/domains","current":false},{"name":"Shopping","href":"/domains/Shopping","current":false},{"name":"Events","href":"/events?domain=Shopping","current":false},{"name":"AddedItemToCart","href":"/domains/Shopping/events/AddedItemToCart","current":true}],"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\u003cNodeGraph title=\"Consumer / Producer Diagram\" /\u003e\n\n\u003cEventExamples title=\"How to trigger event\" /\u003e\n\n\u003cSchema /\u003e\n\n\u003cSchemaViewer renderRootTreeLines defaultExpandedDepth='0' maxHeight=\"500\" /\u003e","source":{"compiledSource":"var h=Object.defineProperty,c=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=\u003et in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,i=(e,t)=\u003e{for(var o in t||(t={}))a.call(t,o)\u0026\u0026d(e,o,t[o]);if(r)for(var o of r(t))s.call(t,o)\u0026\u0026d(e,o,t[o]);return e},m=(e,t)=\u003ec(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\u0026r)for(var n of r(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\",i({},o))},Admonition=makeShortcode(\"Admonition\"),NodeGraph=makeShortcode(\"NodeGraph\"),EventExamples=makeShortcode(\"EventExamples\"),Schema=makeShortcode(\"Schema\"),SchemaViewer=makeShortcode(\"SchemaViewer\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=p(n,[\"components\"]);return mdx(MDXLayout,m(i(i({},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(NodeGraph,{title:\"Consumer / Producer Diagram\",mdxType:\"NodeGraph\"}),mdx(EventExamples,{title:\"How to trigger event\",mdxType:\"EventExamples\"}),mdx(Schema,{mdxType:\"Schema\"}),mdx(SchemaViewer,{renderRootTreeLines:!0,defaultExpandedDepth:\"0\",maxHeight:\"500\",mdxType:\"SchemaViewer\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2024/2/17"},"loadedVersion":"latest"},"__N_SSG":true},"page":"/domains/[domain]/events/[name]","query":{"domain":"Shopping","name":"AddedItemToCart"},"buildId":"ab9mQ_Is0joPnE3nhy0Z9","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html>
|
|
65
|
+
</span></span><span></span></code></pre></div></section><section class="mt-8 xl:mt-10"><div class="" id="mosaic-provider-react-aria-0-1"><div data-overlay-container="true" class=""><div style="max-height:500px" class="JsonSchemaViewer SchemaViewer_schemaViewer__un45l sl-overflow-y-auto sl-relative"><div></div><div data-level="0" class="sl-text-sm sl-ml-px sl-border-l"><div class="sl-flex sl-max-w-full sl-py-2 sl-pl-3"><div class="sl-w-1 sl-mt-2 sl-mr-3 sl--ml-3 sl-border-t"></div><div class="sl-stack sl-stack--vertical sl-stack--1 sl-flex sl-flex-1 sl-flex-col sl-items-stretch sl-max-w-full sl-ml-2"><div class="sl-flex sl-items-center sl-max-w-full sl-cursor-pointer"><div class="sl-flex sl-justify-center sl-w-8 sl--ml-8 sl-pl-3 sl-text-muted" role="button"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-fw fa-sm sl-icon" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"></path></svg></div><div class="sl-flex sl-items-baseline sl-text-base"><div class="sl-font-mono sl-font-semibold sl-mr-2">metadata</div><span class="sl-truncate sl-text-muted">object</span></div></div></div></div><div class="sl-flex sl-max-w-full sl-py-2 sl-pl-3"><div class="sl-w-1 sl-mt-2 sl-mr-3 sl--ml-3 sl-border-t"></div><div class="sl-stack sl-stack--vertical sl-stack--1 sl-flex sl-flex-1 sl-flex-col sl-items-stretch sl-max-w-full sl-ml-2"><div class="sl-flex sl-items-center sl-max-w-full sl-cursor-pointer"><div class="sl-flex sl-justify-center sl-w-8 sl--ml-8 sl-pl-3 sl-text-muted" role="button"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-fw fa-sm sl-icon" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"></path></svg></div><div class="sl-flex sl-items-baseline sl-text-base"><div class="sl-font-mono sl-font-semibold sl-mr-2">data</div><span class="sl-truncate sl-text-muted">object</span></div></div></div></div></div></div></div></div></section></div></div></div></div></div><div class="flex mt-10 justify-between"><a href="https://github.com/boyney123/eventcatalog-demo/edit/master/domains/Shopping/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 <!-- -->2024/2/17</span></div></div><div class="md:min-h-screen"><aside class="hidden xl:block xl:pl-8 divide-y divide-gray-200"><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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 inline-block mr-2 text-green-400"><path stroke-linecap="round" stroke-linejoin="round" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Producers (1)</h2><ul class="mt-2 leading-8"><li class="inline mr-2"><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" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900 truncate max-w-xs">Basket Service</div></a></li></ul></div></div><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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 inline-block mr-2 text-indigo-400"><path stroke-linecap="round" stroke-linejoin="round" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg>Consumers (1)</h2><ul class="mt-2 leading-8"><li class="inline mr-2"><a class="relative inline-flex items-center rounded-full border border-gray-300 px-3 py-0.5" href="/services/Data%20Lake/"><div class="absolute flex-shrink-0 flex items-center justify-center"><span class="h-1.5 w-1.5 rounded-full bg-indigo-500" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900 truncate max-w-xs">Data Lake</div></a></li></ul></div></div><div class="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-width="2" stroke="currentColor" aria-hidden="true" class="h-5 w-5 text-yellow-400 inline-block mr-2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path></svg>Domain</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-yellow-500 animate animate-pulse" aria-hidden="true"></span></div><div class="ml-3.5 text-sm font-medium text-gray-900">Shopping</div></a></li></ul></div></div><div class=" 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="/domains/Shopping/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="/domains/Shopping/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="/domains/Shopping/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=" py-6 space-y-8"><div><h2 class="text-sm font-medium text-gray-500">Domain Owners (<!-- -->2<!-- -->)</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=" py-6 space-y-1"><a href="/schemas/AddedItemToCart/schema.json" download="AddedItemToCart(0.0.2).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-width="2" stroke="currentColor" aria-hidden="true" class="-ml-1 mr-2 h-5 w-5 text-gray-200"><path stroke-linecap="round" stroke-linejoin="round" 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="/domains/Shopping/events/AddedItemToCart/logs/"><span>View Changes</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="/visualiser/?type=event&name=AddedItemToCart"><span>View in Visualiser</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-400">Events</a></div><div class="px-5 py-2"><a href="/services" class="text-base text-gray-500 hover:text-gray-400">Services</a></div><div class="px-5 py-2"><a href="/visualiser" class="text-base text-gray-500 hover:text-gray-400">Visualiser</a></div><div class="px-5 py-2"><a href="/overview" class="text-base text-gray-500 hover:text-gray-400">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-400">GitHub</a></div></nav><p class="mt-8 text-center text-base text-gray-400">Copyright © <!-- -->2024<!-- --> <!-- -->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.2","summary":"Holds information about what the user added to their shopping cart.\n","domain":"Shopping","producerNames":["Basket Service"],"consumerNames":["Data Lake"],"owners":["dboyne","mSmith"],"externalLinks":[],"badges":[{"content":"New!","backgroundColor":"blue","textColor":"blue"}],"tags":[],"producers":[{"name":"Basket Service"}],"consumers":[{"name":"Data Lake"}],"openAPISpec":null,"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}\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"}]},"eventPath":"/domains/Shopping/events/AddedItemToCart","breadCrumbs":[{"name":"Domain","href":"/domains","current":false},{"name":"Shopping","href":"/domains/Shopping","current":false},{"name":"Events","href":"/events?domain=Shopping","current":false},{"name":"AddedItemToCart","href":"/domains/Shopping/events/AddedItemToCart","current":true}],"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\u003cNodeGraph title=\"Consumer / Producer Diagram\" /\u003e\n\n\u003cEventExamples title=\"How to trigger event\" /\u003e\n\n\u003cSchema /\u003e\n\n\u003cSchemaViewer renderRootTreeLines defaultExpandedDepth='0' maxHeight=\"500\" /\u003e","source":{"compiledSource":"var h=Object.defineProperty,c=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var d=(e,t,o)=\u003et in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,i=(e,t)=\u003e{for(var o in t||(t={}))a.call(t,o)\u0026\u0026d(e,o,t[o]);if(r)for(var o of r(t))s.call(t,o)\u0026\u0026d(e,o,t[o]);return e},m=(e,t)=\u003ec(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\u0026r)for(var n of r(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\",i({},o))},Admonition=makeShortcode(\"Admonition\"),NodeGraph=makeShortcode(\"NodeGraph\"),EventExamples=makeShortcode(\"EventExamples\"),Schema=makeShortcode(\"Schema\"),SchemaViewer=makeShortcode(\"SchemaViewer\"),layoutProps={},MDXLayout=\"wrapper\";function MDXContent(o){var n=o,{components:e}=n,t=p(n,[\"components\"]);return mdx(MDXLayout,m(i(i({},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(NodeGraph,{title:\"Consumer / Producer Diagram\",mdxType:\"NodeGraph\"}),mdx(EventExamples,{title:\"How to trigger event\",mdxType:\"EventExamples\"}),mdx(Schema,{mdxType:\"Schema\"}),mdx(SchemaViewer,{renderRootTreeLines:!0,defaultExpandedDepth:\"0\",maxHeight:\"500\",mdxType:\"SchemaViewer\"}))}MDXContent.isMDXComponent=!0;\n","scope":{}},"lastModifiedDate":"2024/2/17"},"loadedVersion":"latest"},"__N_SSG":true},"page":"/domains/[domain]/events/[name]","query":{"domain":"Shopping","name":"AddedItemToCart"},"buildId":"iIifsuP3Zi8zL1k9xuH-x","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html>
|