@eventcatalog/create-eventcatalog 3.0.13 → 3.1.3

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 (25) hide show
  1. package/README.md +0 -32
  2. package/dist/index.js +496 -422
  3. package/package.json +13 -11
  4. package/templates/default/channels/orders.{env}.events/index.mdx +2 -1
  5. package/templates/default/domains/Orders/services/InventoryService/channels/inventory-dlq/index.mdx +13 -0
  6. package/templates/default/domains/Orders/services/InventoryService/channels/inventory-queue/index.mdx +13 -0
  7. package/templates/default/domains/Orders/services/InventoryService/commands/AddInventory/index.mdx +9 -13
  8. package/templates/default/domains/Orders/services/InventoryService/commands/UpdateInventory/index.mdx +10 -14
  9. package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/index.mdx +13 -15
  10. package/templates/default/domains/Orders/services/InventoryService/events/OutOfStock/index.mdx +12 -14
  11. package/templates/default/domains/Orders/services/InventoryService/index.mdx +22 -9
  12. package/templates/default/domains/Orders/services/InventoryService/versioned/0.0.1/index.mdx +21 -5
  13. package/templates/default/domains/Orders/services/NotificationService/index.mdx +13 -9
  14. package/templates/default/domains/Orders/services/OrdersService/events/OrderAmended/index.mdx +9 -13
  15. package/templates/default/domains/Orders/services/OrdersService/events/OrderCancelled/index.mdx +10 -12
  16. package/templates/default/domains/Orders/services/OrdersService/events/OrderConfirmed/index.mdx +9 -11
  17. package/templates/default/domains/Orders/services/OrdersService/index.mdx +21 -5
  18. package/templates/default/domains/Orders/services/OrdersService/versioned/0.0.2/index.mdx +11 -5
  19. package/templates/default/domains/Orders/services/ShippingService/index.mdx +8 -5
  20. package/templates/default/domains/Payment/services/FraudDetectionService/index.mdx +10 -4
  21. package/templates/default/domains/Payment/services/PaymentService/events/PaymentInitiated/index.mdx +2 -6
  22. package/templates/default/domains/Payment/services/PaymentService/events/PaymentProcessed/index.mdx +2 -6
  23. package/templates/default/domains/Payment/services/PaymentService/index.mdx +11 -4
  24. package/templates/default/domains/Subscriptions/services/BillingService/index.mdx +9 -9
  25. package/templates/index.ts +0 -1
@@ -4,11 +4,7 @@ name: Payment Processed
4
4
  version: 1.0.0
5
5
  summary: Event is triggered after the payment has been successfully processed
6
6
  owners:
7
- - dboyne
8
- channels:
9
- - id: payments.{env}.events
10
- parameters:
11
- env: staging
7
+ - dboyne
12
8
  ---
13
9
 
14
10
  import Footer from '@catalog/components/footer.astro';
@@ -43,4 +39,4 @@ The PaymentProcessed event is triggered after the payment has been successfully
43
39
  - **Sensitive Data Handling**: Avoid including sensitive information (e.g., full credit card numbers) in the event payload. Use secure channels and encryption for such data.
44
40
  - **Authentication and Authorization**: Ensure that only authorized services can publish or consume PaymentProcessed events.
45
41
 
46
- <Footer />
42
+ <Footer />
@@ -5,18 +5,25 @@ version: 0.0.1
5
5
  summary: |
6
6
  Service that handles payments
7
7
  owners:
8
- - dboyne
8
+ - dboyne
9
9
  receives:
10
10
  - id: PaymentInitiated
11
11
  version: 0.0.1
12
+ from:
13
+ - id: 'payments.{env}.events'
14
+ parameters:
15
+ env: staging
12
16
  - id: GetPaymentStatus
13
17
  sends:
14
18
  - id: PaymentProcessed
15
19
  version: 0.0.1
16
- - id: GetOrder
20
+ to:
21
+ - id: 'payments.{env}.events'
22
+ parameters:
23
+ env: staging
17
24
  repository:
18
25
  language: JavaScript
19
- url: https://github.com/event-catalog/pretend-shipping-service
26
+ url: 'https://github.com/event-catalog/pretend-shipping-service'
20
27
  ---
21
28
 
22
29
  The Payment Service is a crucial component of our system that handles all payment-related operations. It processes payments, manages transactions, and communicates with other services through events. Using an event-driven architecture, it ensures that all actions are asynchronous, decoupled, and scalable.
@@ -30,4 +37,4 @@ The Payment Service is a crucial component of our system that handles all paymen
30
37
  - Payment Gateway: Interfaces with external payment providers.
31
38
  - Transaction Service: Manages transaction records and states.
32
39
  - Notification Service: Sends notifications related to payment status changes.
33
- - Database: Stores transaction data and payment status.
40
+ - Database: Stores transaction data and payment status.
@@ -2,22 +2,22 @@
2
2
  id: BillingService
3
3
  version: 0.0.1
4
4
  name: Billing Service
5
- summary: Manages billing cycles, invoice generation, and payment scheduling for subscriptions
5
+ summary: >-
6
+ Manages billing cycles, invoice generation, and payment scheduling for
7
+ subscriptions
6
8
  tags:
7
9
  - billing
8
10
  - subscriptions
9
11
  - invoicing
10
12
  repository:
11
- url: https://github.com/eventcatalog/billing-service
13
+ url: 'https://github.com/eventcatalog/billing-service'
12
14
  receives:
13
- - id: SubscriptionCreated
14
- version: 0.0.1
15
- - id: SubscriptionUpdated
16
- version: 0.0.1
17
15
  - id: PaymentProcessed
18
16
  version: 0.0.1
19
- - id: PaymentFailed
20
- version: 0.0.1
17
+ from:
18
+ - id: 'payments.{env}.events'
19
+ parameters:
20
+ env: staging
21
21
  sends:
22
22
  - id: InvoiceGenerated
23
23
  version: 0.0.1
@@ -83,4 +83,4 @@ billing_service:
83
83
  invoice_generation_lead_days: 7
84
84
  ```
85
85
 
86
- <Footer />
86
+ <Footer />
@@ -139,7 +139,6 @@ export const installTemplate = async ({
139
139
  switch (name) {
140
140
  case "env":
141
141
  case "gitignore":
142
- case "env":
143
142
  case "npmrc":
144
143
  case "dockerignore":
145
144
  case "eslintrc.json": {