@eventcatalog/create-eventcatalog 4.1.2 → 4.2.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/dist/index.js +510 -539
  2. package/package.json +9 -6
  3. package/templates/amazon-api-gateway/README-template.md +4 -8
  4. package/templates/amazon-api-gateway/eventcatalog.auth.js +4 -5
  5. package/templates/amazon-api-gateway/eventcatalog.config.js +16 -11
  6. package/templates/amazon-api-gateway/eventcatalog.styles.css +1 -1
  7. package/templates/analytics.ts +8 -8
  8. package/templates/asyncapi/asyncapi-files/messages/user-signed-up.yml +1 -1
  9. package/templates/asyncapi/asyncapi-files/user-service.yml +1 -1
  10. package/templates/asyncapi/eventcatalog.auth.js +4 -5
  11. package/templates/asyncapi/eventcatalog.config.js +16 -9
  12. package/templates/asyncapi/eventcatalog.styles.css +1 -1
  13. package/templates/asyncapi/teams/order-management.mdx +6 -6
  14. package/templates/asyncapi/teams/user-management.mdx +4 -4
  15. package/templates/asyncapi/users/aSmith.mdx +0 -1
  16. package/templates/asyncapi/users/alee.mdx +1 -1
  17. package/templates/asyncapi/users/azhang.mdx +1 -1
  18. package/templates/asyncapi/users/dboyne.mdx +4 -3
  19. package/templates/asyncapi/users/dkim.mdx +1 -1
  20. package/templates/asyncapi/users/jbrown.mdx +1 -1
  21. package/templates/asyncapi/users/mSmith.mdx +2 -2
  22. package/templates/confluent/README-template.md +4 -8
  23. package/templates/confluent/eventcatalog.auth.js +4 -5
  24. package/templates/confluent/eventcatalog.config.js +7 -8
  25. package/templates/confluent/eventcatalog.styles.css +1 -1
  26. package/templates/default/channels/inventory.{env}.events/index.mdx +10 -8
  27. package/templates/default/channels/orders.{env}.events/index.mdx +5 -3
  28. package/templates/default/channels/payment.{env}.events/index.mdx +14 -13
  29. package/templates/default/domains/E-Commerce/index.mdx +32 -20
  30. package/templates/default/domains/E-Commerce/ubiquitous-language.mdx +9 -9
  31. package/templates/default/domains/Orders/changelog.mdx +1 -1
  32. package/templates/default/domains/Orders/entities/CartItem/index.mdx +15 -14
  33. package/templates/default/domains/Orders/entities/Customer/index.mdx +5 -5
  34. package/templates/default/domains/Orders/entities/Order/index.mdx +9 -9
  35. package/templates/default/domains/Orders/entities/OrderItem/index.mdx +6 -5
  36. package/templates/default/domains/Orders/entities/ShoppingCart/index.mdx +16 -15
  37. package/templates/default/domains/Orders/index.mdx +22 -7
  38. package/templates/default/domains/Orders/services/InventoryService/changelog.mdx +1 -1
  39. package/templates/default/domains/Orders/services/InventoryService/commands/AddInventory/index.mdx +2 -5
  40. package/templates/default/domains/Orders/services/InventoryService/commands/AddInventory/schema.json +26 -27
  41. package/templates/default/domains/Orders/services/InventoryService/commands/PlaceOrder/index.mdx +10 -12
  42. package/templates/default/domains/Orders/services/InventoryService/commands/UpdateInventory/index.mdx +1 -1
  43. package/templates/default/domains/Orders/services/InventoryService/commands/UpdateInventory/schema.json +26 -27
  44. package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/changelog.mdx +3 -4
  45. package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/index.mdx +14 -4
  46. package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/0.0.1/changelog.mdx +3 -7
  47. package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/0.0.1/index.mdx +9 -5
  48. package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/0.0.1/schema.json +36 -0
  49. package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/1.0.0/changelog.mdx +11 -11
  50. package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/1.0.0/index.mdx +16 -12
  51. package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/1.0.0/schema.json +36 -0
  52. package/templates/default/domains/Orders/services/InventoryService/events/OutOfStock/index.mdx +2 -0
  53. package/templates/default/domains/Orders/services/InventoryService/events/OutOfStock/schema.json +28 -0
  54. package/templates/default/domains/Orders/services/InventoryService/events/OutOfStock/versioned/0.0.1/index.mdx +14 -12
  55. package/templates/default/domains/Orders/services/InventoryService/events/OutOfStock/versioned/0.0.1/schema.json +28 -0
  56. package/templates/default/domains/Orders/services/InventoryService/index.mdx +40 -21
  57. package/templates/default/domains/Orders/services/InventoryService/queries/GetInventoryList/index.mdx +5 -5
  58. package/templates/default/domains/Orders/services/InventoryService/queries/GetInventoryList/schema.json +48 -49
  59. package/templates/default/domains/Orders/services/InventoryService/queries/GetInventoryStatus/index.mdx +6 -7
  60. package/templates/default/domains/Orders/services/InventoryService/queries/GetInventoryStatus/schema.json +25 -26
  61. package/templates/default/domains/Orders/services/NotificationService/index.mdx +29 -10
  62. package/templates/default/domains/Orders/services/NotificationService/queries/GetNotificationDetails/index.mdx +4 -4
  63. package/templates/default/domains/Orders/services/NotificationService/queries/GetNotificationDetails/schema.json +0 -1
  64. package/templates/default/domains/Orders/services/NotificationService/queries/GetUserNotifications/index.mdx +4 -5
  65. package/templates/default/domains/Orders/services/NotificationService/queries/GetUserNotifications/schema.json +43 -44
  66. package/templates/default/domains/Orders/services/OrdersService/changelog.mdx +1 -1
  67. package/templates/default/domains/Orders/services/OrdersService/events/OrderAmended/schema.json +66 -67
  68. package/templates/default/domains/Orders/services/OrdersService/events/OrderCancelled/index.mdx +1 -2
  69. package/templates/default/domains/Orders/services/OrdersService/events/OrderCancelled/schema.json +67 -68
  70. package/templates/default/domains/Orders/services/OrdersService/events/OrderConfirmed/index.mdx +1 -1
  71. package/templates/default/domains/Orders/services/OrdersService/events/OrderConfirmed/schema.json +62 -63
  72. package/templates/default/domains/Orders/services/OrdersService/index.mdx +26 -6
  73. package/templates/default/domains/Orders/services/OrdersService/openapi.yml +3 -3
  74. package/templates/default/domains/Orders/services/OrdersService/order-service-asyncapi.yaml +11 -11
  75. package/templates/default/domains/Orders/services/OrdersService/queries/GetOrder/index.mdx +5 -5
  76. package/templates/default/domains/Orders/services/OrdersService/versioned/0.0.2/changelog.mdx +1 -1
  77. package/templates/default/domains/Orders/services/OrdersService/versioned/0.0.2/index.mdx +1 -1
  78. package/templates/default/domains/Orders/services/OrdersService/versioned/0.0.2/openapi.yml +1 -1
  79. package/templates/default/domains/Orders/services/OrdersService/versioned/0.0.2/order-service-asyncapi.yaml +11 -11
  80. package/templates/default/domains/Orders/services/ShippingService/commands/CancelShipment/index.mdx +1 -2
  81. package/templates/default/domains/Orders/services/ShippingService/commands/CancelShipment/schema.json +12 -12
  82. package/templates/default/domains/Orders/services/ShippingService/commands/CreateReturnLabel/index.mdx +2 -2
  83. package/templates/default/domains/Orders/services/ShippingService/commands/CreateReturnLabel/schema.json +17 -17
  84. package/templates/default/domains/Orders/services/ShippingService/commands/CreateShipment/index.mdx +2 -2
  85. package/templates/default/domains/Orders/services/ShippingService/commands/UpdateShipmentStatus/index.mdx +2 -2
  86. package/templates/default/domains/Orders/services/ShippingService/commands/UpdateShipmentStatus/schema.json +26 -26
  87. package/templates/default/domains/Orders/services/ShippingService/events/DeliveryFailed/index.mdx +2 -2
  88. package/templates/default/domains/Orders/services/ShippingService/events/DeliveryFailed/schema.json +15 -15
  89. package/templates/default/domains/Orders/services/ShippingService/events/ReturnInitiated/index.mdx +2 -2
  90. package/templates/default/domains/Orders/services/ShippingService/events/ReturnInitiated/schema.json +15 -15
  91. package/templates/default/domains/Orders/services/ShippingService/events/ShipmentCreated/index.mdx +2 -2
  92. package/templates/default/domains/Orders/services/ShippingService/events/ShipmentCreated/schema.json +0 -1
  93. package/templates/default/domains/Orders/services/ShippingService/events/ShipmentDelivered/index.mdx +2 -2
  94. package/templates/default/domains/Orders/services/ShippingService/events/ShipmentDelivered/schema.json +15 -15
  95. package/templates/default/domains/Orders/services/ShippingService/events/ShipmentDispatched/index.mdx +2 -2
  96. package/templates/default/domains/Orders/services/ShippingService/events/ShipmentDispatched/schema.json +15 -15
  97. package/templates/default/domains/Orders/services/ShippingService/events/ShipmentInTransit/index.mdx +2 -2
  98. package/templates/default/domains/Orders/services/ShippingService/events/ShipmentInTransit/schema.json +15 -15
  99. package/templates/default/domains/Orders/services/ShippingService/index.mdx +14 -5
  100. package/templates/default/domains/Orders/ubiquitous-language.mdx +10 -10
  101. package/templates/default/domains/Orders/versioned/0.0.1/index.mdx +7 -7
  102. package/templates/default/domains/Orders/versioned/0.0.2/index.mdx +3 -3
  103. package/templates/default/domains/Payment/entities/Address/index.mdx +17 -16
  104. package/templates/default/domains/Payment/entities/Invoice/index.mdx +8 -7
  105. package/templates/default/domains/Payment/entities/Payment/index.mdx +15 -14
  106. package/templates/default/domains/Payment/entities/PaymentMethod/index.mdx +8 -7
  107. package/templates/default/domains/Payment/entities/Transaction/index.mdx +6 -5
  108. package/templates/default/domains/Payment/flows/PaymentProcessed/index.mdx +71 -70
  109. package/templates/default/domains/Payment/index.mdx +10 -10
  110. package/templates/default/domains/Payment/services/FraudDetectionService/events/FraudCheckCompleted/index.mdx +2 -2
  111. package/templates/default/domains/Payment/services/FraudDetectionService/events/FraudCheckCompleted/schema.json +1 -1
  112. package/templates/default/domains/Payment/services/FraudDetectionService/index.mdx +3 -2
  113. package/templates/default/domains/Payment/services/PaymentGatewayService/commands/ProcessPayment/index.mdx +4 -3
  114. package/templates/default/domains/Payment/services/PaymentGatewayService/commands/ProcessPayment/schema.json +1 -1
  115. package/templates/default/domains/Payment/services/PaymentGatewayService/events/PaymentFailed/index.mdx +4 -2
  116. package/templates/default/domains/Payment/services/PaymentGatewayService/events/PaymentFailed/schema.json +1 -1
  117. package/templates/default/domains/Payment/services/PaymentGatewayService/index.mdx +3 -2
  118. package/templates/default/domains/Payment/services/PaymentService/events/PaymentInitiated/index.mdx +2 -1
  119. package/templates/default/domains/Payment/services/PaymentService/events/PaymentInitiated/schema.json +31 -0
  120. package/templates/default/domains/Payment/services/PaymentService/events/PaymentProcessed/index.mdx +2 -1
  121. package/templates/default/domains/Payment/services/PaymentService/events/PaymentProcessed/schema.json +54 -0
  122. package/templates/default/domains/Payment/services/PaymentService/events/PaymentProcessed/versioned/0.0.1/index.mdx +4 -3
  123. package/templates/default/domains/Payment/services/PaymentService/events/PaymentProcessed/versioned/0.0.1/schema.json +54 -0
  124. package/templates/default/domains/Payment/services/PaymentService/index.mdx +1 -0
  125. package/templates/default/domains/Payment/services/PaymentService/queries/GetPaymentStatus/index.mdx +5 -5
  126. package/templates/default/domains/Payment/services/PaymentService/queries/GetPaymentStatus/schema.json +0 -1
  127. package/templates/default/domains/Payment/ubiquitous-language.mdx +8 -8
  128. package/templates/default/domains/ProductCatalog/entities/Category/index.mdx +10 -9
  129. package/templates/default/domains/ProductCatalog/entities/Inventory/index.mdx +15 -14
  130. package/templates/default/domains/ProductCatalog/entities/Product/index.mdx +11 -10
  131. package/templates/default/domains/ProductCatalog/entities/Review/index.mdx +15 -14
  132. package/templates/default/domains/ProductCatalog/index.mdx +8 -6
  133. package/templates/default/domains/ProductCatalog/ubiquitous-language.mdx +10 -10
  134. package/templates/default/domains/Subscriptions/entities/BillingProfile/index.mdx +8 -7
  135. package/templates/default/domains/Subscriptions/entities/SubscriptionPeriod/index.mdx +8 -7
  136. package/templates/default/domains/Subscriptions/flows/CancelSubscription/SubscriptionRenewed/index.mdx +207 -208
  137. package/templates/default/domains/Subscriptions/flows/CancelSubscription/index.mdx +48 -49
  138. package/templates/default/domains/Subscriptions/flows/CancelSubscription/versioned/0.0.1/index.mdx +36 -36
  139. package/templates/default/domains/Subscriptions/index.mdx +10 -10
  140. package/templates/default/domains/Subscriptions/services/BillingService/events/SubscriptionPaymentDue/index.mdx +3 -2
  141. package/templates/default/domains/Subscriptions/services/BillingService/events/SubscriptionPaymentDue/schema.json +1 -1
  142. package/templates/default/domains/Subscriptions/services/BillingService/index.mdx +2 -1
  143. package/templates/default/domains/Subscriptions/services/PlanManagementService/index.mdx +6 -2
  144. package/templates/default/domains/Subscriptions/services/SubscriptionService/commands/CancelSubscription/index.mdx +6 -5
  145. package/templates/default/domains/Subscriptions/services/SubscriptionService/commands/CancelSubscription/schema.json +30 -0
  146. package/templates/default/domains/Subscriptions/services/SubscriptionService/commands/SubscribeUser/index.mdx +6 -5
  147. package/templates/default/domains/Subscriptions/services/SubscriptionService/commands/SubscribeUser/schema.json +31 -0
  148. package/templates/default/domains/Subscriptions/services/SubscriptionService/events/UserSubscriptionCancelled/index.mdx +6 -5
  149. package/templates/default/domains/Subscriptions/services/SubscriptionService/events/UserSubscriptionCancelled/schema.json +35 -0
  150. package/templates/default/domains/Subscriptions/services/SubscriptionService/events/UserSubscriptionStarted/index.mdx +6 -5
  151. package/templates/default/domains/Subscriptions/services/SubscriptionService/events/UserSubscriptionStarted/schema.json +36 -0
  152. package/templates/default/domains/Subscriptions/services/SubscriptionService/index.mdx +30 -10
  153. package/templates/default/domains/Subscriptions/services/SubscriptionService/queries/GetSubscriptionStatus/index.mdx +5 -5
  154. package/templates/default/domains/Subscriptions/services/SubscriptionService/queries/GetSubscriptionStatus/schema.json +10 -2
  155. package/templates/default/domains/Subscriptions/services/SubscriptionService/queries/GetSubscriptionStatus/versioned/0.0.1/index.mdx +5 -5
  156. package/templates/default/domains/Subscriptions/services/SubscriptionService/queries/GetSubscriptionStatus/versioned/0.0.1/schema.json +10 -2
  157. package/templates/default/domains/Subscriptions/ubiquitous-language.mdx +9 -9
  158. package/templates/default/eventcatalog.auth.js +4 -5
  159. package/templates/default/eventcatalog.config.js +6 -8
  160. package/templates/default/eventcatalog.styles.css +1 -1
  161. package/templates/default/teams/full-stack.mdx +4 -4
  162. package/templates/default/teams/mobile-devs.mdx +4 -2
  163. package/templates/default/users/aSmith.mdx +0 -1
  164. package/templates/default/users/dboyne.mdx +4 -3
  165. package/templates/default/users/mSmith.mdx +2 -2
  166. package/templates/empty/eventcatalog.auth.js +4 -5
  167. package/templates/empty/eventcatalog.config.js +6 -7
  168. package/templates/empty/eventcatalog.styles.css +1 -1
  169. package/templates/eventbridge/README-template.md +4 -8
  170. package/templates/eventbridge/eventcatalog.auth.js +4 -5
  171. package/templates/eventbridge/eventcatalog.config.js +7 -8
  172. package/templates/eventbridge/eventcatalog.styles.css +1 -1
  173. package/templates/graphql/eventcatalog.auth.js +4 -5
  174. package/templates/graphql/eventcatalog.config.js +29 -20
  175. package/templates/graphql/eventcatalog.styles.css +1 -1
  176. package/templates/graphql/teams/order-management.mdx +6 -6
  177. package/templates/graphql/teams/payment-management.mdx +4 -4
  178. package/templates/graphql/teams/product-management.mdx +4 -4
  179. package/templates/graphql/users/aSmith.mdx +0 -1
  180. package/templates/graphql/users/alee.mdx +1 -1
  181. package/templates/graphql/users/azhang.mdx +1 -1
  182. package/templates/graphql/users/dboyne.mdx +4 -3
  183. package/templates/graphql/users/dkim.mdx +1 -1
  184. package/templates/graphql/users/jbrown.mdx +1 -1
  185. package/templates/graphql/users/mSmith.mdx +2 -2
  186. package/templates/index.ts +49 -59
  187. package/templates/openapi/eventcatalog.auth.js +4 -5
  188. package/templates/openapi/eventcatalog.config.js +33 -26
  189. package/templates/openapi/eventcatalog.styles.css +1 -1
  190. package/templates/openapi/teams/order-management.mdx +6 -6
  191. package/templates/openapi/teams/payment-management.mdx +4 -4
  192. package/templates/openapi/teams/product-management.mdx +4 -4
  193. package/templates/openapi/users/aSmith.mdx +0 -1
  194. package/templates/openapi/users/alee.mdx +1 -1
  195. package/templates/openapi/users/azhang.mdx +1 -1
  196. package/templates/openapi/users/dboyne.mdx +4 -3
  197. package/templates/openapi/users/dkim.mdx +1 -1
  198. package/templates/openapi/users/jbrown.mdx +1 -1
  199. package/templates/openapi/users/mSmith.mdx +2 -2
  200. package/templates/types.ts +12 -3
@@ -5,7 +5,7 @@ version: 0.0.1
5
5
  summary: |
6
6
  POST request that will update the status of a shipment, identified by its shipmentId.
7
7
  owners:
8
- - dboyne
8
+ - dboyne
9
9
  schemaPath: schema.json
10
10
  ---
11
11
 
@@ -19,4 +19,4 @@ This command can be applied in e-commerce systems, marketplaces, or any platform
19
19
 
20
20
  <NodeGraph />
21
21
 
22
- <SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
22
+ <SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
@@ -1,29 +1,29 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "title": "UpdateShipmentStatus",
5
- "description": "Schema for updating a shipment's status",
6
- "properties": {
7
- "UpdateShipmentStatus": {
8
- "type": "object",
9
- "properties": {
10
- "shipmentId": {
11
- "type": "string",
12
- "description": "Unique identifier for the shipment"
13
- },
14
- "status": {
15
- "type": "string",
16
- "enum": ["pending", "shipped", "delivered", "returned"],
17
- "description": "Current status of the shipment"
18
- },
19
- "updatedAt": {
20
- "type": "string",
21
- "format": "date-time",
22
- "description": "Timestamp when the status was last updated"
23
- }
24
- },
25
- "required": ["shipmentId", "status"]
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "UpdateShipmentStatus",
5
+ "description": "Schema for updating a shipment's status",
6
+ "properties": {
7
+ "UpdateShipmentStatus": {
8
+ "type": "object",
9
+ "properties": {
10
+ "shipmentId": {
11
+ "type": "string",
12
+ "description": "Unique identifier for the shipment"
13
+ },
14
+ "status": {
15
+ "type": "string",
16
+ "enum": ["pending", "shipped", "delivered", "returned"],
17
+ "description": "Current status of the shipment"
18
+ },
19
+ "updatedAt": {
20
+ "type": "string",
21
+ "format": "date-time",
22
+ "description": "Timestamp when the status was last updated"
26
23
  }
27
- },
28
- "required": ["UpdateShipmentStatus"]
24
+ },
25
+ "required": ["shipmentId", "status"]
26
+ }
27
+ },
28
+ "required": ["UpdateShipmentStatus"]
29
29
  }
@@ -5,7 +5,7 @@ version: 0.0.1
5
5
  summary: |
6
6
  Event that is emitted when a shipment delivery fails.
7
7
  owners:
8
- - dboyne
8
+ - dboyne
9
9
  schemaPath: schema.json
10
10
  ---
11
11
 
@@ -19,4 +19,4 @@ This event can be applied in e-commerce systems, marketplaces, or any platform w
19
19
 
20
20
  <NodeGraph />
21
21
 
22
- <SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
22
+ <SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
@@ -1,17 +1,17 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "title": "DeliveryFailed",
5
- "description": "Schema for delivery failed event",
6
- "properties": {
7
- "shipmentId": {
8
- "type": "string",
9
- "description": "Unique identifier for the shipment"
10
- },
11
- "orderId": {
12
- "type": "string",
13
- "description": "Identifier for the associated order"
14
- }
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "DeliveryFailed",
5
+ "description": "Schema for delivery failed event",
6
+ "properties": {
7
+ "shipmentId": {
8
+ "type": "string",
9
+ "description": "Unique identifier for the shipment"
15
10
  },
16
- "required": ["shipmentId", "orderId"]
17
- }
11
+ "orderId": {
12
+ "type": "string",
13
+ "description": "Identifier for the associated order"
14
+ }
15
+ },
16
+ "required": ["shipmentId", "orderId"]
17
+ }
@@ -5,7 +5,7 @@ version: 0.0.1
5
5
  summary: |
6
6
  Event that is emitted when a return is initiated.
7
7
  owners:
8
- - dboyne
8
+ - dboyne
9
9
  schemaPath: schema.json
10
10
  ---
11
11
 
@@ -19,4 +19,4 @@ This event can be applied in e-commerce systems, marketplaces, or any platform w
19
19
 
20
20
  <NodeGraph />
21
21
 
22
- <SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
22
+ <SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
@@ -1,17 +1,17 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "title": "ReturnInitiated",
5
- "description": "Schema for return initiated event",
6
- "properties": {
7
- "shipmentId": {
8
- "type": "string",
9
- "description": "Unique identifier for the shipment"
10
- },
11
- "orderId": {
12
- "type": "string",
13
- "description": "Identifier for the associated order"
14
- }
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "ReturnInitiated",
5
+ "description": "Schema for return initiated event",
6
+ "properties": {
7
+ "shipmentId": {
8
+ "type": "string",
9
+ "description": "Unique identifier for the shipment"
15
10
  },
16
- "required": ["shipmentId", "orderId"]
17
- }
11
+ "orderId": {
12
+ "type": "string",
13
+ "description": "Identifier for the associated order"
14
+ }
15
+ },
16
+ "required": ["shipmentId", "orderId"]
17
+ }
@@ -5,7 +5,7 @@ version: 0.0.1
5
5
  summary: |
6
6
  Event that is emitted when a shipment is created.
7
7
  owners:
8
- - dboyne
8
+ - dboyne
9
9
  schemaPath: schema.json
10
10
  ---
11
11
 
@@ -19,4 +19,4 @@ This event can be applied in e-commerce systems, marketplaces, or any platform w
19
19
 
20
20
  <NodeGraph />
21
21
 
22
- <SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
22
+ <SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
@@ -62,4 +62,3 @@
62
62
  },
63
63
  "required": ["shipmentId", "orderId", "address", "items", "shippingMethod"]
64
64
  }
65
-
@@ -5,7 +5,7 @@ version: 0.0.1
5
5
  summary: |
6
6
  Event that is emitted when a shipment is delivered.
7
7
  owners:
8
- - dboyne
8
+ - dboyne
9
9
  schemaPath: schema.json
10
10
  ---
11
11
 
@@ -19,4 +19,4 @@ This event can be applied in e-commerce systems, marketplaces, or any platform w
19
19
 
20
20
  <NodeGraph />
21
21
 
22
- <SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
22
+ <SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
@@ -1,17 +1,17 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "title": "ShipmentDelivered",
5
- "description": "Schema for shipment delivered event",
6
- "properties": {
7
- "shipmentId": {
8
- "type": "string",
9
- "description": "Unique identifier for the shipment"
10
- },
11
- "orderId": {
12
- "type": "string",
13
- "description": "Identifier for the associated order"
14
- }
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "ShipmentDelivered",
5
+ "description": "Schema for shipment delivered event",
6
+ "properties": {
7
+ "shipmentId": {
8
+ "type": "string",
9
+ "description": "Unique identifier for the shipment"
15
10
  },
16
- "required": ["shipmentId", "orderId"]
17
- }
11
+ "orderId": {
12
+ "type": "string",
13
+ "description": "Identifier for the associated order"
14
+ }
15
+ },
16
+ "required": ["shipmentId", "orderId"]
17
+ }
@@ -5,7 +5,7 @@ version: 0.0.1
5
5
  summary: |
6
6
  Event that is emitted when a shipment is dispatched.
7
7
  owners:
8
- - dboyne
8
+ - dboyne
9
9
  schemaPath: schema.json
10
10
  ---
11
11
 
@@ -19,4 +19,4 @@ This event can be applied in e-commerce systems, marketplaces, or any platform w
19
19
 
20
20
  <NodeGraph />
21
21
 
22
- <SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
22
+ <SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
@@ -1,17 +1,17 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "title": "ShipmentDispatched",
5
- "description": "Schema for shipment dispatched event",
6
- "properties": {
7
- "shipmentId": {
8
- "type": "string",
9
- "description": "Unique identifier for the shipment"
10
- },
11
- "orderId": {
12
- "type": "string",
13
- "description": "Identifier for the associated order"
14
- }
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "ShipmentDispatched",
5
+ "description": "Schema for shipment dispatched event",
6
+ "properties": {
7
+ "shipmentId": {
8
+ "type": "string",
9
+ "description": "Unique identifier for the shipment"
15
10
  },
16
- "required": ["shipmentId", "orderId"]
17
- }
11
+ "orderId": {
12
+ "type": "string",
13
+ "description": "Identifier for the associated order"
14
+ }
15
+ },
16
+ "required": ["shipmentId", "orderId"]
17
+ }
@@ -5,7 +5,7 @@ version: 0.0.1
5
5
  summary: |
6
6
  Event that is emitted when a shipment is in transit.
7
7
  owners:
8
- - dboyne
8
+ - dboyne
9
9
  schemaPath: schema.json
10
10
  ---
11
11
 
@@ -19,4 +19,4 @@ This event can be applied in e-commerce systems, marketplaces, or any platform w
19
19
 
20
20
  <NodeGraph />
21
21
 
22
- <SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
22
+ <SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
@@ -1,17 +1,17 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "title": "ShipmentInTransit",
5
- "description": "Schema for shipment in transit event",
6
- "properties": {
7
- "shipmentId": {
8
- "type": "string",
9
- "description": "Unique identifier for the shipment"
10
- },
11
- "orderId": {
12
- "type": "string",
13
- "description": "Identifier for the associated order"
14
- }
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "ShipmentInTransit",
5
+ "description": "Schema for shipment in transit event",
6
+ "properties": {
7
+ "shipmentId": {
8
+ "type": "string",
9
+ "description": "Unique identifier for the shipment"
15
10
  },
16
- "required": ["shipmentId", "orderId"]
17
- }
11
+ "orderId": {
12
+ "type": "string",
13
+ "description": "Identifier for the associated order"
14
+ }
15
+ },
16
+ "required": ["shipmentId", "orderId"]
17
+ }
@@ -33,17 +33,26 @@ import Footer from '@catalog/components/footer.astro';
33
33
 
34
34
  The Shipping Service is responsible for managing shipping within the system. It handles order creation, updating, status tracking, and interactions with other services such as Inventory, Payment, and Notification services to ensure smooth order processing and fulfillment.
35
35
 
36
- <Tiles >
37
- <Tile icon="BoltIcon" href={`/visualiser/services/${frontmatter.id}/${frontmatter.version}`} title={`Sends ${frontmatter.sends.length} messages`} description="This service sends messages to downstream consumers" />
38
- <Tile icon="BoltIcon" href={`/visualiser/services/${frontmatter.id}/${frontmatter.version}`} title={`Receives ${frontmatter.receives.length} messages`} description="This service receives messages from other services" />
36
+ <Tiles>
37
+ <Tile
38
+ icon="BoltIcon"
39
+ href={`/visualiser/services/${frontmatter.id}/${frontmatter.version}`}
40
+ title={`Sends ${frontmatter.sends.length} messages`}
41
+ description="This service sends messages to downstream consumers"
42
+ />
43
+ <Tile
44
+ icon="BoltIcon"
45
+ href={`/visualiser/services/${frontmatter.id}/${frontmatter.version}`}
46
+ title={`Receives ${frontmatter.receives.length} messages`}
47
+ description="This service receives messages from other services"
48
+ />
39
49
  </Tiles>
40
50
 
41
51
  ### Core features
42
52
 
43
53
  The Shipping Service is responsible for managing shipping within the system. It handles order creation, updating, status tracking, and interactions with other services such as Inventory, Payment, and Notification services to ensure smooth order processing and fulfillment.
44
54
 
45
-
46
- ## Architecture diagram
55
+ ## Architecture diagram
47
56
 
48
57
  <NodeGraph />
49
58
 
@@ -2,11 +2,11 @@
2
2
  dictionary:
3
3
  - id: Payment
4
4
  name: Payment
5
- summary: "The act of paying for magical goods or services."
5
+ summary: 'The act of paying for magical goods or services.'
6
6
  icon: Wand2
7
7
  - id: Purchase Order
8
8
  name: Purchase Order
9
- summary: "A mystical document issued by a buyer to a seller indicating the types, quantities, and agreed prices for enchanted products or services."
9
+ summary: 'A mystical document issued by a buyer to a seller indicating the types, quantities, and agreed prices for enchanted products or services.'
10
10
  description: |
11
11
  A purchase order (PO) is a magical document that initiates the buying process between mystical entities. It protects both buyer and seller by clearly documenting the transaction details. Key components include:
12
12
 
@@ -20,7 +20,7 @@ dictionary:
20
20
  icon: FileText
21
21
  - id: Order Line
22
22
  name: Order Line
23
- summary: "An individual enchanted item within a purchase order, representing a specific magical product or service being ordered."
23
+ summary: 'An individual enchanted item within a purchase order, representing a specific magical product or service being ordered.'
24
24
  description: |
25
25
  Order lines are the fundamental building blocks of any purchase order. Each line represents a distinct item or service and contains critical information for order fulfillment:
26
26
 
@@ -34,7 +34,7 @@ dictionary:
34
34
  icon: ListOrdered
35
35
  - id: SKU
36
36
  name: SKU
37
- summary: "Sorcery Keeping Unit - A unique identifier for distinct magical products and their variants in inventory."
37
+ summary: 'Sorcery Keeping Unit - A unique identifier for distinct magical products and their variants in inventory.'
38
38
  description: |
39
39
  SKUs are the cornerstone of effective inventory management systems. Each SKU represents a unique combination of product attributes:
40
40
 
@@ -47,7 +47,7 @@ dictionary:
47
47
  icon: Tag
48
48
  - id: Consignment
49
49
  name: Consignment
50
- summary: "A batch of enchanted goods destined for or delivered to someone."
50
+ summary: 'A batch of enchanted goods destined for or delivered to someone.'
51
51
  description: |
52
52
  A consignment represents the physical movement of goods through the supply chain. It encompasses all aspects of the shipping process:
53
53
 
@@ -60,7 +60,7 @@ dictionary:
60
60
  icon: Package
61
61
  - id: Invoice
62
62
  name: Invoice
63
- summary: "A document issued by a seller to a buyer, listing enchanted goods or services provided and the amount due."
63
+ summary: 'A document issued by a seller to a buyer, listing enchanted goods or services provided and the amount due.'
64
64
  description: |
65
65
  Invoices are critical for financial transactions, serving as a request for payment from the buyer. They include:
66
66
 
@@ -74,7 +74,7 @@ dictionary:
74
74
  icon: Receipt
75
75
  - id: Supplier
76
76
  name: Supplier
77
- summary: "An entity that provides enchanted goods or services to another organization."
77
+ summary: 'An entity that provides enchanted goods or services to another organization.'
78
78
  description: |
79
79
  Suppliers are key partners in the supply chain, responsible for delivering the necessary products or services. Key aspects include:
80
80
 
@@ -87,7 +87,7 @@ dictionary:
87
87
  icon: Truck
88
88
  - id: Inventory
89
89
  name: Inventory
90
- summary: "The complete list of enchanted items held in stock by a business."
90
+ summary: 'The complete list of enchanted items held in stock by a business.'
91
91
  description: |
92
92
  Inventory management is crucial for balancing supply and demand. It involves:
93
93
 
@@ -100,7 +100,7 @@ dictionary:
100
100
  icon: Warehouse
101
101
  - id: Fulfillment
102
102
  name: Fulfillment
103
- summary: "The process of completing an order and delivering it to the customer."
103
+ summary: 'The process of completing an order and delivering it to the customer.'
104
104
  description: |
105
105
  Fulfillment encompasses all steps from order receipt to delivery, including:
106
106
 
@@ -113,7 +113,7 @@ dictionary:
113
113
  icon: PackageCheck
114
114
  - id: Return
115
115
  name: Return
116
- summary: "The process of sending back enchanted goods to the seller for a refund or exchange."
116
+ summary: 'The process of sending back enchanted goods to the seller for a refund or exchange.'
117
117
  description: |
118
118
  Returns management is an important aspect of customer service and inventory control. It involves:
119
119
 
@@ -5,15 +5,15 @@ version: 0.0.1
5
5
  summary: |
6
6
  Domain for everything shopping
7
7
  owners:
8
- - dboyne
9
- - full-stack
8
+ - dboyne
9
+ - full-stack
10
10
  services:
11
- - id: InventoryService
12
- version: 0.0.2
11
+ - id: InventoryService
12
+ version: 0.0.2
13
13
  badges:
14
- - content: New domain
15
- backgroundColor: blue
16
- textColor: blue
14
+ - content: New domain
15
+ backgroundColor: blue
16
+ textColor: blue
17
17
  ---
18
18
 
19
19
  ## Overview
@@ -22,7 +22,9 @@ badges:
22
22
 
23
23
  The Orders domain handles all operations related to customer orders, from creation to fulfillment. This documentation provides an overview of the events and services involved in the Orders domain, helping developers and stakeholders understand the event-driven architecture.
24
24
 
25
- <Admonition type="warning">Please ensure all services are updated to the latest version for compatibility and performance improvements.</Admonition>
25
+ <Admonition type="warning">
26
+ Please ensure all services are updated to the latest version for compatibility and performance improvements.
27
+ </Admonition>
26
28
 
27
29
  ## Bounded context
28
30
 
@@ -46,5 +48,3 @@ sequenceDiagram
46
48
  OrdersService->>Customer: Order Placed Successfully
47
49
  OrdersService->>InventoryService: Update Inventory
48
50
  ```
49
-
50
-
@@ -133,32 +133,33 @@ properties:
133
133
  The Address entity stores shipping and billing addresses for customers, orders, and payments. It supports address validation, geocoding, and delivery instructions to ensure accurate order fulfillment.
134
134
 
135
135
  ### Entity Properties
136
+
136
137
  <EntityPropertiesTable />
137
138
 
138
139
  ## Relationships
139
140
 
140
- * **Customer:** An address can belong to one `Customer` (identified by `customerId`).
141
- * **Order:** An address can be used by multiple `Order` entities for shipping.
142
- * **Payment:** An address can be used by multiple `Payment` entities for billing.
141
+ - **Customer:** An address can belong to one `Customer` (identified by `customerId`).
142
+ - **Order:** An address can be used by multiple `Order` entities for shipping.
143
+ - **Payment:** An address can be used by multiple `Payment` entities for billing.
143
144
 
144
145
  ## Address Types
145
146
 
146
- * **Billing:** Used for payment processing and invoicing
147
- * **Shipping:** Used for order delivery
148
- * **Both:** Can be used for both billing and shipping
147
+ - **Billing:** Used for payment processing and invoicing
148
+ - **Shipping:** Used for order delivery
149
+ - **Both:** Can be used for both billing and shipping
149
150
 
150
151
  ## Examples
151
152
 
152
- * **Address #1:** John Doe's home address - default shipping and billing address.
153
- * **Address #2:** Corporate office address - billing only, validated with high confidence.
154
- * **Address #3:** Gift recipient address - shipping only, with special delivery instructions.
153
+ - **Address #1:** John Doe's home address - default shipping and billing address.
154
+ - **Address #2:** Corporate office address - billing only, validated with high confidence.
155
+ - **Address #3:** Gift recipient address - shipping only, with special delivery instructions.
155
156
 
156
157
  ## Business Rules
157
158
 
158
- * Each customer can have only one default address per type
159
- * Addresses must be validated before being marked as default
160
- * International addresses require country-specific validation
161
- * Geocoordinates are automatically populated when available
162
- * Address changes should create new versions for audit trail
163
- * PO Box addresses may have shipping restrictions
164
- * Address validation improves delivery success rates
159
+ - Each customer can have only one default address per type
160
+ - Addresses must be validated before being marked as default
161
+ - International addresses require country-specific validation
162
+ - Geocoordinates are automatically populated when available
163
+ - Address changes should create new versions for audit trail
164
+ - PO Box addresses may have shipping restrictions
165
+ - Address validation improves delivery success rates
@@ -75,17 +75,18 @@ properties:
75
75
  The Invoice entity represents a formal request for payment issued by the business to a customer. It details the products, services, quantities, prices, taxes, and total amount due, along with payment terms.
76
76
 
77
77
  ### Entity Properties
78
+
78
79
  <EntityPropertiesTable />
79
80
 
80
81
  ## Relationships
81
82
 
82
- * **Customer:** An invoice is issued to one `Customer`.
83
- * **Order/Subscription:** An invoice may be related to one or more `Order`s or a specific `Subscription` period.
84
- * **Payment:** An invoice is settled by one or more `Payment` transactions.
85
- * **InvoiceLineItem:** An invoice contains multiple `InvoiceLineItem`s detailing the charges.
86
- * **BillingProfile:** Invoice generation often uses details from the customer's `BillingProfile`.
83
+ - **Customer:** An invoice is issued to one `Customer`.
84
+ - **Order/Subscription:** An invoice may be related to one or more `Order`s or a specific `Subscription` period.
85
+ - **Payment:** An invoice is settled by one or more `Payment` transactions.
86
+ - **InvoiceLineItem:** An invoice contains multiple `InvoiceLineItem`s detailing the charges.
87
+ - **BillingProfile:** Invoice generation often uses details from the customer's `BillingProfile`.
87
88
 
88
89
  ## Examples
89
90
 
90
- * Invoice #INV-00123 issued to Jane Doe for her monthly subscription renewal, due in 15 days.
91
- * Invoice #INV-00124 issued to Acme Corp for consulting services rendered in the previous month, status Paid.
91
+ - Invoice #INV-00123 issued to Jane Doe for her monthly subscription renewal, due in 15 days.
92
+ - Invoice #INV-00124 issued to Acme Corp for consulting services rendered in the previous month, status Paid.
@@ -105,14 +105,15 @@ properties:
105
105
  The Payment entity manages all payment transactions in the e-commerce system. It tracks payment details, status, and relationships with orders and customers, supporting various payment methods and refund scenarios.
106
106
 
107
107
  ### Entity Properties
108
+
108
109
  <EntityPropertiesTable />
109
110
 
110
111
  ## Relationships
111
112
 
112
- * **Order:** Each payment belongs to one `Order` (identified by `orderId`).
113
- * **Customer:** Each payment is made by one `Customer` (identified by `customerId`).
114
- * **Address:** Each payment has a billing `Address` (identified by `billingAddress`).
115
- * **PaymentRefund:** A payment can have multiple `PaymentRefund` entities for partial or full refunds.
113
+ - **Order:** Each payment belongs to one `Order` (identified by `orderId`).
114
+ - **Customer:** Each payment is made by one `Customer` (identified by `customerId`).
115
+ - **Address:** Each payment has a billing `Address` (identified by `billingAddress`).
116
+ - **PaymentRefund:** A payment can have multiple `PaymentRefund` entities for partial or full refunds.
116
117
 
117
118
  ## Payment States
118
119
 
@@ -124,16 +125,16 @@ cancelled failed refunded/partially_refunded
124
125
 
125
126
  ## Examples
126
127
 
127
- * **Payment #1:** $299.99 credit card payment for Order #12345, completed successfully.
128
- * **Payment #2:** $150.00 PayPal payment for Order #67890, failed due to insufficient funds.
129
- * **Payment #3:** $500.00 bank transfer, completed with $50.00 partial refund.
128
+ - **Payment #1:** $299.99 credit card payment for Order #12345, completed successfully.
129
+ - **Payment #2:** $150.00 PayPal payment for Order #67890, failed due to insufficient funds.
130
+ - **Payment #3:** $500.00 bank transfer, completed with $50.00 partial refund.
130
131
 
131
132
  ## Business Rules
132
133
 
133
- * Payment amount must match the order total
134
- * Payment status transitions must follow valid state machine
135
- * Failed payments should include failure reason
136
- * Completed payments cannot be cancelled
137
- * Refunds cannot exceed the original payment amount
138
- * Payment method details are encrypted and PCI compliant
139
- * Transaction IDs from payment gateways must be stored for reconciliation
134
+ - Payment amount must match the order total
135
+ - Payment status transitions must follow valid state machine
136
+ - Failed payments should include failure reason
137
+ - Completed payments cannot be cancelled
138
+ - Refunds cannot exceed the original payment amount
139
+ - Payment method details are encrypted and PCI compliant
140
+ - Transaction IDs from payment gateways must be stored for reconciliation