@eventcatalog/create-eventcatalog 4.1.3 → 4.2.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.
- package/dist/index.js +510 -539
- package/package.json +9 -6
- package/templates/amazon-api-gateway/README-template.md +4 -8
- package/templates/amazon-api-gateway/eventcatalog.auth.js +4 -5
- package/templates/amazon-api-gateway/eventcatalog.config.js +16 -11
- package/templates/amazon-api-gateway/eventcatalog.styles.css +1 -1
- package/templates/analytics.ts +8 -8
- package/templates/asyncapi/asyncapi-files/messages/user-signed-up.yml +1 -1
- package/templates/asyncapi/asyncapi-files/user-service.yml +1 -1
- package/templates/asyncapi/eventcatalog.auth.js +4 -5
- package/templates/asyncapi/eventcatalog.config.js +16 -9
- package/templates/asyncapi/eventcatalog.styles.css +1 -1
- package/templates/asyncapi/teams/order-management.mdx +6 -6
- package/templates/asyncapi/teams/user-management.mdx +4 -4
- package/templates/asyncapi/users/aSmith.mdx +0 -1
- package/templates/asyncapi/users/alee.mdx +1 -1
- package/templates/asyncapi/users/azhang.mdx +1 -1
- package/templates/asyncapi/users/dboyne.mdx +4 -3
- package/templates/asyncapi/users/dkim.mdx +1 -1
- package/templates/asyncapi/users/jbrown.mdx +1 -1
- package/templates/asyncapi/users/mSmith.mdx +2 -2
- package/templates/confluent/README-template.md +4 -8
- package/templates/confluent/eventcatalog.auth.js +4 -5
- package/templates/confluent/eventcatalog.config.js +7 -8
- package/templates/confluent/eventcatalog.styles.css +1 -1
- package/templates/default/channels/inventory.{env}.events/index.mdx +10 -8
- package/templates/default/channels/orders.{env}.events/index.mdx +5 -3
- package/templates/default/channels/payment.{env}.events/index.mdx +14 -13
- package/templates/default/domains/E-Commerce/index.mdx +32 -20
- package/templates/default/domains/E-Commerce/ubiquitous-language.mdx +9 -9
- package/templates/default/domains/Orders/changelog.mdx +1 -1
- package/templates/default/domains/Orders/entities/CartItem/index.mdx +15 -14
- package/templates/default/domains/Orders/entities/Customer/index.mdx +5 -5
- package/templates/default/domains/Orders/entities/Order/index.mdx +9 -9
- package/templates/default/domains/Orders/entities/OrderItem/index.mdx +6 -5
- package/templates/default/domains/Orders/entities/ShoppingCart/index.mdx +16 -15
- package/templates/default/domains/Orders/index.mdx +22 -7
- package/templates/default/domains/Orders/services/InventoryService/changelog.mdx +1 -1
- package/templates/default/domains/Orders/services/InventoryService/commands/AddInventory/index.mdx +2 -5
- package/templates/default/domains/Orders/services/InventoryService/commands/AddInventory/schema.json +26 -27
- package/templates/default/domains/Orders/services/InventoryService/commands/PlaceOrder/index.mdx +10 -12
- package/templates/default/domains/Orders/services/InventoryService/commands/UpdateInventory/index.mdx +1 -1
- package/templates/default/domains/Orders/services/InventoryService/commands/UpdateInventory/schema.json +26 -27
- package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/changelog.mdx +3 -4
- package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/index.mdx +14 -4
- package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/0.0.1/changelog.mdx +3 -7
- package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/0.0.1/index.mdx +8 -5
- package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/1.0.0/changelog.mdx +11 -11
- package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/1.0.0/index.mdx +15 -12
- package/templates/default/domains/Orders/services/InventoryService/events/OutOfStock/index.mdx +1 -0
- package/templates/default/domains/Orders/services/InventoryService/events/OutOfStock/versioned/0.0.1/index.mdx +13 -12
- package/templates/default/domains/Orders/services/InventoryService/index.mdx +40 -21
- package/templates/default/domains/Orders/services/InventoryService/queries/GetInventoryList/index.mdx +5 -5
- package/templates/default/domains/Orders/services/InventoryService/queries/GetInventoryList/schema.json +48 -49
- package/templates/default/domains/Orders/services/InventoryService/queries/GetInventoryStatus/index.mdx +6 -7
- package/templates/default/domains/Orders/services/InventoryService/queries/GetInventoryStatus/schema.json +25 -26
- package/templates/default/domains/Orders/services/NotificationService/index.mdx +29 -10
- package/templates/default/domains/Orders/services/NotificationService/queries/GetNotificationDetails/index.mdx +4 -4
- package/templates/default/domains/Orders/services/NotificationService/queries/GetNotificationDetails/schema.json +0 -1
- package/templates/default/domains/Orders/services/NotificationService/queries/GetUserNotifications/index.mdx +4 -5
- package/templates/default/domains/Orders/services/NotificationService/queries/GetUserNotifications/schema.json +43 -44
- package/templates/default/domains/Orders/services/OrdersService/changelog.mdx +1 -1
- package/templates/default/domains/Orders/services/OrdersService/events/OrderAmended/schema.json +66 -67
- package/templates/default/domains/Orders/services/OrdersService/events/OrderCancelled/index.mdx +1 -2
- package/templates/default/domains/Orders/services/OrdersService/events/OrderCancelled/schema.json +67 -68
- package/templates/default/domains/Orders/services/OrdersService/events/OrderConfirmed/index.mdx +1 -1
- package/templates/default/domains/Orders/services/OrdersService/events/OrderConfirmed/schema.json +62 -63
- package/templates/default/domains/Orders/services/OrdersService/index.mdx +26 -6
- package/templates/default/domains/Orders/services/OrdersService/openapi.yml +3 -3
- package/templates/default/domains/Orders/services/OrdersService/order-service-asyncapi.yaml +11 -11
- package/templates/default/domains/Orders/services/OrdersService/queries/GetOrder/index.mdx +5 -5
- package/templates/default/domains/Orders/services/OrdersService/versioned/0.0.2/changelog.mdx +1 -1
- package/templates/default/domains/Orders/services/OrdersService/versioned/0.0.2/index.mdx +1 -1
- package/templates/default/domains/Orders/services/OrdersService/versioned/0.0.2/openapi.yml +1 -1
- package/templates/default/domains/Orders/services/OrdersService/versioned/0.0.2/order-service-asyncapi.yaml +11 -11
- package/templates/default/domains/Orders/services/ShippingService/commands/CancelShipment/index.mdx +1 -2
- package/templates/default/domains/Orders/services/ShippingService/commands/CancelShipment/schema.json +12 -12
- package/templates/default/domains/Orders/services/ShippingService/commands/CreateReturnLabel/index.mdx +2 -2
- package/templates/default/domains/Orders/services/ShippingService/commands/CreateReturnLabel/schema.json +17 -17
- package/templates/default/domains/Orders/services/ShippingService/commands/CreateShipment/index.mdx +2 -2
- package/templates/default/domains/Orders/services/ShippingService/commands/UpdateShipmentStatus/index.mdx +2 -2
- package/templates/default/domains/Orders/services/ShippingService/commands/UpdateShipmentStatus/schema.json +26 -26
- package/templates/default/domains/Orders/services/ShippingService/events/DeliveryFailed/index.mdx +2 -2
- package/templates/default/domains/Orders/services/ShippingService/events/DeliveryFailed/schema.json +15 -15
- package/templates/default/domains/Orders/services/ShippingService/events/ReturnInitiated/index.mdx +2 -2
- package/templates/default/domains/Orders/services/ShippingService/events/ReturnInitiated/schema.json +15 -15
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentCreated/index.mdx +2 -2
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentCreated/schema.json +0 -1
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentDelivered/index.mdx +2 -2
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentDelivered/schema.json +15 -15
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentDispatched/index.mdx +2 -2
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentDispatched/schema.json +15 -15
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentInTransit/index.mdx +2 -2
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentInTransit/schema.json +15 -15
- package/templates/default/domains/Orders/services/ShippingService/index.mdx +14 -5
- package/templates/default/domains/Orders/ubiquitous-language.mdx +10 -10
- package/templates/default/domains/Orders/versioned/0.0.1/index.mdx +7 -7
- package/templates/default/domains/Orders/versioned/0.0.2/index.mdx +3 -3
- package/templates/default/domains/Payment/entities/Address/index.mdx +17 -16
- package/templates/default/domains/Payment/entities/Invoice/index.mdx +8 -7
- package/templates/default/domains/Payment/entities/Payment/index.mdx +15 -14
- package/templates/default/domains/Payment/entities/PaymentMethod/index.mdx +8 -7
- package/templates/default/domains/Payment/entities/Transaction/index.mdx +6 -5
- package/templates/default/domains/Payment/flows/PaymentProcessed/index.mdx +71 -70
- package/templates/default/domains/Payment/index.mdx +10 -10
- package/templates/default/domains/Payment/services/FraudDetectionService/events/FraudCheckCompleted/index.mdx +2 -2
- package/templates/default/domains/Payment/services/FraudDetectionService/events/FraudCheckCompleted/schema.json +1 -1
- package/templates/default/domains/Payment/services/FraudDetectionService/index.mdx +3 -2
- package/templates/default/domains/Payment/services/PaymentGatewayService/commands/ProcessPayment/index.mdx +4 -3
- package/templates/default/domains/Payment/services/PaymentGatewayService/commands/ProcessPayment/schema.json +1 -1
- package/templates/default/domains/Payment/services/PaymentGatewayService/events/PaymentFailed/index.mdx +4 -2
- package/templates/default/domains/Payment/services/PaymentGatewayService/events/PaymentFailed/schema.json +1 -1
- package/templates/default/domains/Payment/services/PaymentGatewayService/index.mdx +3 -2
- package/templates/default/domains/Payment/services/PaymentService/events/PaymentInitiated/index.mdx +1 -1
- package/templates/default/domains/Payment/services/PaymentService/events/PaymentProcessed/index.mdx +1 -1
- package/templates/default/domains/Payment/services/PaymentService/events/PaymentProcessed/versioned/0.0.1/index.mdx +3 -3
- package/templates/default/domains/Payment/services/PaymentService/index.mdx +1 -0
- package/templates/default/domains/Payment/services/PaymentService/queries/GetPaymentStatus/index.mdx +5 -5
- package/templates/default/domains/Payment/services/PaymentService/queries/GetPaymentStatus/schema.json +0 -1
- package/templates/default/domains/Payment/ubiquitous-language.mdx +8 -8
- package/templates/default/domains/ProductCatalog/entities/Category/index.mdx +10 -9
- package/templates/default/domains/ProductCatalog/entities/Inventory/index.mdx +15 -14
- package/templates/default/domains/ProductCatalog/entities/Product/index.mdx +11 -10
- package/templates/default/domains/ProductCatalog/entities/Review/index.mdx +15 -14
- package/templates/default/domains/ProductCatalog/index.mdx +8 -6
- package/templates/default/domains/ProductCatalog/ubiquitous-language.mdx +10 -10
- package/templates/default/domains/Subscriptions/entities/BillingProfile/index.mdx +8 -7
- package/templates/default/domains/Subscriptions/entities/SubscriptionPeriod/index.mdx +8 -7
- package/templates/default/domains/Subscriptions/flows/CancelSubscription/SubscriptionRenewed/index.mdx +207 -208
- package/templates/default/domains/Subscriptions/flows/CancelSubscription/index.mdx +48 -49
- package/templates/default/domains/Subscriptions/flows/CancelSubscription/versioned/0.0.1/index.mdx +36 -36
- package/templates/default/domains/Subscriptions/index.mdx +10 -10
- package/templates/default/domains/Subscriptions/services/BillingService/events/SubscriptionPaymentDue/index.mdx +3 -2
- package/templates/default/domains/Subscriptions/services/BillingService/events/SubscriptionPaymentDue/schema.json +1 -1
- package/templates/default/domains/Subscriptions/services/BillingService/index.mdx +2 -1
- package/templates/default/domains/Subscriptions/services/PlanManagementService/index.mdx +6 -2
- package/templates/default/domains/Subscriptions/services/SubscriptionService/commands/CancelSubscription/index.mdx +5 -5
- package/templates/default/domains/Subscriptions/services/SubscriptionService/commands/SubscribeUser/index.mdx +5 -5
- package/templates/default/domains/Subscriptions/services/SubscriptionService/events/UserSubscriptionCancelled/index.mdx +5 -5
- package/templates/default/domains/Subscriptions/services/SubscriptionService/events/UserSubscriptionStarted/index.mdx +5 -5
- package/templates/default/domains/Subscriptions/services/SubscriptionService/index.mdx +30 -10
- package/templates/default/domains/Subscriptions/services/SubscriptionService/queries/GetSubscriptionStatus/index.mdx +5 -5
- package/templates/default/domains/Subscriptions/services/SubscriptionService/queries/GetSubscriptionStatus/schema.json +10 -2
- package/templates/default/domains/Subscriptions/services/SubscriptionService/queries/GetSubscriptionStatus/versioned/0.0.1/index.mdx +5 -5
- package/templates/default/domains/Subscriptions/services/SubscriptionService/queries/GetSubscriptionStatus/versioned/0.0.1/schema.json +10 -2
- package/templates/default/domains/Subscriptions/ubiquitous-language.mdx +9 -9
- package/templates/default/eventcatalog.auth.js +4 -5
- package/templates/default/eventcatalog.config.js +6 -8
- package/templates/default/eventcatalog.styles.css +1 -1
- package/templates/default/teams/full-stack.mdx +4 -4
- package/templates/default/teams/mobile-devs.mdx +4 -2
- package/templates/default/users/aSmith.mdx +0 -1
- package/templates/default/users/dboyne.mdx +4 -3
- package/templates/default/users/mSmith.mdx +2 -2
- package/templates/empty/eventcatalog.auth.js +4 -5
- package/templates/empty/eventcatalog.config.js +6 -7
- package/templates/empty/eventcatalog.styles.css +1 -1
- package/templates/eventbridge/README-template.md +4 -8
- package/templates/eventbridge/eventcatalog.auth.js +4 -5
- package/templates/eventbridge/eventcatalog.config.js +7 -8
- package/templates/eventbridge/eventcatalog.styles.css +1 -1
- package/templates/graphql/eventcatalog.auth.js +4 -5
- package/templates/graphql/eventcatalog.config.js +29 -20
- package/templates/graphql/eventcatalog.styles.css +1 -1
- package/templates/graphql/teams/order-management.mdx +6 -6
- package/templates/graphql/teams/payment-management.mdx +4 -4
- package/templates/graphql/teams/product-management.mdx +4 -4
- package/templates/graphql/users/aSmith.mdx +0 -1
- package/templates/graphql/users/alee.mdx +1 -1
- package/templates/graphql/users/azhang.mdx +1 -1
- package/templates/graphql/users/dboyne.mdx +4 -3
- package/templates/graphql/users/dkim.mdx +1 -1
- package/templates/graphql/users/jbrown.mdx +1 -1
- package/templates/graphql/users/mSmith.mdx +2 -2
- package/templates/index.ts +49 -59
- package/templates/openapi/eventcatalog.auth.js +4 -5
- package/templates/openapi/eventcatalog.config.js +33 -26
- package/templates/openapi/eventcatalog.styles.css +1 -1
- package/templates/openapi/teams/order-management.mdx +6 -6
- package/templates/openapi/teams/payment-management.mdx +4 -4
- package/templates/openapi/teams/product-management.mdx +4 -4
- package/templates/openapi/users/aSmith.mdx +0 -1
- package/templates/openapi/users/alee.mdx +1 -1
- package/templates/openapi/users/azhang.mdx +1 -1
- package/templates/openapi/users/dboyne.mdx +4 -3
- package/templates/openapi/users/dkim.mdx +1 -1
- package/templates/openapi/users/jbrown.mdx +1 -1
- package/templates/openapi/users/mSmith.mdx +2 -2
- package/templates/types.ts +12 -3
package/templates/default/domains/Subscriptions/flows/CancelSubscription/versioned/0.0.1/index.mdx
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
---
|
|
2
|
-
id:
|
|
3
|
-
name:
|
|
4
|
-
version:
|
|
5
|
-
summary:
|
|
2
|
+
id: 'CancelSubscription'
|
|
3
|
+
name: 'User Cancels Subscription'
|
|
4
|
+
version: '0.0.1'
|
|
5
|
+
summary: 'Flow for when a user has cancelled a subscription'
|
|
6
6
|
owners:
|
|
7
7
|
- dboyne
|
|
8
8
|
steps:
|
|
9
|
-
- id:
|
|
10
|
-
title:
|
|
11
|
-
summary:
|
|
9
|
+
- id: 'cancel_subscription_initiated'
|
|
10
|
+
title: 'Cancels Subscription'
|
|
11
|
+
summary: 'User cancels their subscription'
|
|
12
12
|
actor:
|
|
13
|
-
name:
|
|
14
|
-
next_step:
|
|
15
|
-
id:
|
|
16
|
-
label:
|
|
13
|
+
name: 'User'
|
|
14
|
+
next_step:
|
|
15
|
+
id: 'cancel_subscription_request'
|
|
16
|
+
label: 'Initiate subscription cancellation'
|
|
17
17
|
|
|
18
|
-
- id:
|
|
19
|
-
title:
|
|
18
|
+
- id: 'cancel_subscription_request'
|
|
19
|
+
title: 'Cancel Subscription'
|
|
20
20
|
message:
|
|
21
|
-
id:
|
|
22
|
-
version:
|
|
23
|
-
next_step:
|
|
24
|
-
id:
|
|
25
|
-
label:
|
|
21
|
+
id: 'CancelSubscription'
|
|
22
|
+
version: '0.0.1'
|
|
23
|
+
next_step:
|
|
24
|
+
id: 'subscription_service'
|
|
25
|
+
label: 'Proceed to subscription service'
|
|
26
26
|
|
|
27
|
-
- id:
|
|
28
|
-
title:
|
|
27
|
+
- id: 'stripe_integration'
|
|
28
|
+
title: 'Stripe'
|
|
29
29
|
externalSystem:
|
|
30
|
-
name:
|
|
31
|
-
summary:
|
|
32
|
-
url:
|
|
33
|
-
next_step:
|
|
34
|
-
id:
|
|
35
|
-
label:
|
|
30
|
+
name: 'Stripe'
|
|
31
|
+
summary: '3rd party payment system'
|
|
32
|
+
url: 'https://stripe.com/'
|
|
33
|
+
next_step:
|
|
34
|
+
id: 'subscription_service'
|
|
35
|
+
label: 'Return to subscription service'
|
|
36
36
|
|
|
37
|
-
- id:
|
|
38
|
-
title:
|
|
37
|
+
- id: 'subscription_service'
|
|
38
|
+
title: 'Subscription Service'
|
|
39
39
|
service:
|
|
40
|
-
id:
|
|
41
|
-
version:
|
|
40
|
+
id: 'SubscriptionService'
|
|
41
|
+
version: '0.0.1'
|
|
42
42
|
next_steps:
|
|
43
|
-
- id:
|
|
44
|
-
label:
|
|
45
|
-
- id:
|
|
46
|
-
label:
|
|
47
|
-
- id:
|
|
48
|
-
label:
|
|
43
|
+
- id: 'stripe_integration'
|
|
44
|
+
label: 'Cancel subscription via Stripe'
|
|
45
|
+
- id: 'subscription_cancelled'
|
|
46
|
+
label: 'Successful cancellation'
|
|
47
|
+
- id: 'subscription_rejected'
|
|
48
|
+
label: 'Failed cancellation'
|
|
49
49
|
---
|
|
50
50
|
|
|
51
51
|
<NodeGraph />
|
|
@@ -5,19 +5,19 @@ version: 0.0.1
|
|
|
5
5
|
summary: |
|
|
6
6
|
Domain that contains subscription related services and messages.
|
|
7
7
|
owners:
|
|
8
|
-
|
|
8
|
+
- dboyne
|
|
9
9
|
services:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
- id: BillingService
|
|
11
|
+
version: 0.0.1
|
|
12
|
+
- id: PlanManagementService
|
|
13
|
+
version: 0.0.1
|
|
14
14
|
entities:
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
- id: BillingProfile
|
|
16
|
+
- id: SubscriptionPeriod
|
|
17
17
|
badges:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
- content: Payment Domain
|
|
19
|
+
backgroundColor: blue
|
|
20
|
+
textColor: blue
|
|
21
21
|
---
|
|
22
22
|
|
|
23
23
|
## Overview
|
|
@@ -16,7 +16,7 @@ badges:
|
|
|
16
16
|
schemaPath: schema.json
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
import Footer from '@catalog/components/footer.astro'
|
|
19
|
+
import Footer from '@catalog/components/footer.astro';
|
|
20
20
|
|
|
21
21
|
## Overview
|
|
22
22
|
|
|
@@ -25,6 +25,7 @@ The `SubscriptionPaymentDue` event is emitted by the Billing Service when a subs
|
|
|
25
25
|
## Cross-Domain Communication
|
|
26
26
|
|
|
27
27
|
This event facilitates communication between:
|
|
28
|
+
|
|
28
29
|
- **Source**: Subscriptions Domain (BillingService)
|
|
29
30
|
- **Target**: Payment Domain (PaymentService, FraudDetectionService)
|
|
30
31
|
|
|
@@ -59,4 +60,4 @@ This event facilitates communication between:
|
|
|
59
60
|
}
|
|
60
61
|
```
|
|
61
62
|
|
|
62
|
-
<Footer />
|
|
63
|
+
<Footer />
|
|
@@ -27,7 +27,7 @@ owners:
|
|
|
27
27
|
- dboyne
|
|
28
28
|
---
|
|
29
29
|
|
|
30
|
-
import Footer from '@catalog/components/footer.astro'
|
|
30
|
+
import Footer from '@catalog/components/footer.astro';
|
|
31
31
|
|
|
32
32
|
## Overview
|
|
33
33
|
|
|
@@ -44,6 +44,7 @@ The Billing Service is responsible for managing all billing-related operations f
|
|
|
44
44
|
## API Endpoints
|
|
45
45
|
|
|
46
46
|
### REST API
|
|
47
|
+
|
|
47
48
|
- `GET /api/billing/invoice/{subscriptionId}` - Get current invoice
|
|
48
49
|
- `GET /api/billing/history/{subscriptionId}` - Get billing history
|
|
49
50
|
- `POST /api/billing/preview` - Preview upcoming charges
|
|
@@ -15,7 +15,7 @@ owners:
|
|
|
15
15
|
- dboyne
|
|
16
16
|
---
|
|
17
17
|
|
|
18
|
-
import Footer from '@catalog/components/footer.astro'
|
|
18
|
+
import Footer from '@catalog/components/footer.astro';
|
|
19
19
|
|
|
20
20
|
## Overview
|
|
21
21
|
|
|
@@ -32,17 +32,20 @@ The Plan Management Service handles the definition and management of subscriptio
|
|
|
32
32
|
## Supported Plan Types
|
|
33
33
|
|
|
34
34
|
### Basic Plan
|
|
35
|
+
|
|
35
36
|
- Essential features
|
|
36
37
|
- Limited usage quotas
|
|
37
38
|
- Email support
|
|
38
39
|
|
|
39
40
|
### Professional Plan
|
|
41
|
+
|
|
40
42
|
- All Basic features
|
|
41
43
|
- Higher usage quotas
|
|
42
44
|
- Priority support
|
|
43
45
|
- Advanced analytics
|
|
44
46
|
|
|
45
47
|
### Enterprise Plan
|
|
48
|
+
|
|
46
49
|
- All Professional features
|
|
47
50
|
- Unlimited usage
|
|
48
51
|
- Dedicated support
|
|
@@ -52,6 +55,7 @@ The Plan Management Service handles the definition and management of subscriptio
|
|
|
52
55
|
## API Endpoints
|
|
53
56
|
|
|
54
57
|
### REST API
|
|
58
|
+
|
|
55
59
|
- `GET /api/plans` - List all available plans
|
|
56
60
|
- `GET /api/plans/{planId}` - Get plan details
|
|
57
61
|
- `POST /api/plans` - Create new plan
|
|
@@ -76,4 +80,4 @@ The Plan Management Service handles the definition and management of subscriptio
|
|
|
76
80
|
}
|
|
77
81
|
```
|
|
78
82
|
|
|
79
|
-
<Footer />
|
|
83
|
+
<Footer />
|
|
@@ -6,11 +6,11 @@ schemaPath: schema.json
|
|
|
6
6
|
summary: |
|
|
7
7
|
Command that will try and cancel a users subscription
|
|
8
8
|
owners:
|
|
9
|
-
|
|
9
|
+
- dboyne
|
|
10
10
|
badges:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
- content: New!
|
|
12
|
+
backgroundColor: green
|
|
13
|
+
textColor: green
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
import Footer from '@catalog/components/footer.astro';
|
|
@@ -23,4 +23,4 @@ The `CancelSubscription` command will try and cancel a subscription for the user
|
|
|
23
23
|
|
|
24
24
|
<NodeGraph />
|
|
25
25
|
|
|
26
|
-
<Footer />
|
|
26
|
+
<Footer />
|
|
@@ -6,11 +6,11 @@ schemaPath: schema.json
|
|
|
6
6
|
summary: |
|
|
7
7
|
Command that will try and subscribe a given user
|
|
8
8
|
owners:
|
|
9
|
-
|
|
9
|
+
- dboyne
|
|
10
10
|
badges:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
- content: New!
|
|
12
|
+
backgroundColor: green
|
|
13
|
+
textColor: green
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
import Footer from '@catalog/components/footer.astro';
|
|
@@ -23,4 +23,4 @@ The `SubscribeUser` command represents when a new user wants to subscribe to our
|
|
|
23
23
|
|
|
24
24
|
<NodeGraph />
|
|
25
25
|
|
|
26
|
-
<Footer />
|
|
26
|
+
<Footer />
|
|
@@ -6,11 +6,11 @@ schemaPath: schema.json
|
|
|
6
6
|
summary: |
|
|
7
7
|
An event that is triggered when a users subscription has been cancelled
|
|
8
8
|
owners:
|
|
9
|
-
|
|
9
|
+
- dboyne
|
|
10
10
|
badges:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
- content: New!
|
|
12
|
+
backgroundColor: green
|
|
13
|
+
textColor: green
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
import Footer from '@catalog/components/footer.astro';
|
|
@@ -23,4 +23,4 @@ The `UserSubscriptionCancelled` event is triggered when a users subscription has
|
|
|
23
23
|
|
|
24
24
|
<NodeGraph />
|
|
25
25
|
|
|
26
|
-
<Footer />
|
|
26
|
+
<Footer />
|
|
@@ -6,11 +6,11 @@ schemaPath: schema.json
|
|
|
6
6
|
summary: |
|
|
7
7
|
An event that is triggered when a new user subscription has started
|
|
8
8
|
owners:
|
|
9
|
-
|
|
9
|
+
- dboyne
|
|
10
10
|
badges:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
- content: New!
|
|
12
|
+
backgroundColor: green
|
|
13
|
+
textColor: green
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
import Footer from '@catalog/components/footer.astro';
|
|
@@ -23,4 +23,4 @@ The `UserSubscriptionStarted` event is triggered when a user starts a new subscr
|
|
|
23
23
|
|
|
24
24
|
<NodeGraph />
|
|
25
25
|
|
|
26
|
-
<Footer />
|
|
26
|
+
<Footer />
|
|
@@ -5,17 +5,17 @@ name: Subscription Service
|
|
|
5
5
|
summary: |
|
|
6
6
|
Service that handles subscriptions
|
|
7
7
|
owners:
|
|
8
|
-
|
|
8
|
+
- dboyne
|
|
9
9
|
receives:
|
|
10
10
|
- id: SubscribeUser
|
|
11
11
|
version: 0.0.1
|
|
12
12
|
- id: CancelSubscription
|
|
13
13
|
version: 0.0.1
|
|
14
|
-
- id: GetSubscriptionStatus
|
|
14
|
+
- id: GetSubscriptionStatus
|
|
15
15
|
sends:
|
|
16
16
|
- id: UserSubscriptionStarted
|
|
17
17
|
version: 0.0.1
|
|
18
|
-
- id: UserSubscriptionCancelled
|
|
18
|
+
- id: UserSubscriptionCancelled
|
|
19
19
|
version: 0.0.1
|
|
20
20
|
repository:
|
|
21
21
|
language: JavaScript
|
|
@@ -28,15 +28,35 @@ import Footer from '@catalog/components/footer.astro';
|
|
|
28
28
|
|
|
29
29
|
The subscription Service is responsible for handling customer subscriptions in our system. It handles new subscriptions, cancelling subscriptions and updating them.
|
|
30
30
|
|
|
31
|
-
<Tiles
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
<Tiles>
|
|
32
|
+
<Tile
|
|
33
|
+
icon="DocumentIcon"
|
|
34
|
+
href={`/docs/services/${frontmatter.id}/${frontmatter.version}/changelog`}
|
|
35
|
+
title="View the changelog"
|
|
36
|
+
description="Want to know the history of this service? View the change logs"
|
|
37
|
+
/>
|
|
38
|
+
<Tile
|
|
39
|
+
icon="UserGroupIcon"
|
|
40
|
+
href="/docs/teams/full-stack"
|
|
41
|
+
title="Contact the team"
|
|
42
|
+
description="Any questions? Feel free to contact the owners"
|
|
43
|
+
/>
|
|
44
|
+
<Tile
|
|
45
|
+
icon="BoltIcon"
|
|
46
|
+
href={`/visualiser/services/${frontmatter.id}/${frontmatter.version}`}
|
|
47
|
+
title={`Sends ${frontmatter.sends.length} messages`}
|
|
48
|
+
description="This service sends messages to downstream consumers"
|
|
49
|
+
/>
|
|
50
|
+
<Tile
|
|
51
|
+
icon="BoltIcon"
|
|
52
|
+
href={`/visualiser/services/${frontmatter.id}/${frontmatter.version}`}
|
|
53
|
+
title={`Receives ${frontmatter.receives.length} messages`}
|
|
54
|
+
description="This service receives messages from other services"
|
|
55
|
+
/>
|
|
36
56
|
</Tiles>
|
|
37
57
|
|
|
38
|
-
## Architecture diagram
|
|
58
|
+
## Architecture diagram
|
|
39
59
|
|
|
40
60
|
<NodeGraph />
|
|
41
61
|
|
|
42
|
-
<Footer />
|
|
62
|
+
<Footer />
|
|
@@ -5,11 +5,11 @@ version: 0.0.2
|
|
|
5
5
|
summary: |
|
|
6
6
|
GET request that will return the current subscription status for a specific user, identified by their userId.
|
|
7
7
|
owners:
|
|
8
|
-
|
|
8
|
+
- dboyne
|
|
9
9
|
badges:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
- content: Recently updated!
|
|
11
|
+
backgroundColor: green
|
|
12
|
+
textColor: green
|
|
13
13
|
schemaPath: schema.json
|
|
14
14
|
---
|
|
15
15
|
|
|
@@ -23,4 +23,4 @@ This query is particularly useful in managing subscriptions for SaaS products, m
|
|
|
23
23
|
|
|
24
24
|
<NodeGraph />
|
|
25
25
|
|
|
26
|
-
<SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
|
|
26
|
+
<SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
{
|
|
3
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
3
|
"title": "GetSubscriptionStatusResponse",
|
|
@@ -41,6 +40,15 @@
|
|
|
41
40
|
"description": "The date and time when the last payment was processed."
|
|
42
41
|
}
|
|
43
42
|
},
|
|
44
|
-
"required": [
|
|
43
|
+
"required": [
|
|
44
|
+
"userId",
|
|
45
|
+
"subscriptionStatus",
|
|
46
|
+
"subscriptionPlan",
|
|
47
|
+
"nextBillingDate",
|
|
48
|
+
"billingFrequency",
|
|
49
|
+
"amount",
|
|
50
|
+
"currency",
|
|
51
|
+
"lastPaymentDate"
|
|
52
|
+
],
|
|
45
53
|
"additionalProperties": false
|
|
46
54
|
}
|
|
@@ -5,11 +5,11 @@ version: 0.0.1
|
|
|
5
5
|
summary: |
|
|
6
6
|
GET request that will return the current subscription status for a specific user, identified by their userId.
|
|
7
7
|
owners:
|
|
8
|
-
|
|
8
|
+
- dboyne
|
|
9
9
|
badges:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
- content: Recently updated!
|
|
11
|
+
backgroundColor: green
|
|
12
|
+
textColor: green
|
|
13
13
|
schemaPath: schema.json
|
|
14
14
|
---
|
|
15
15
|
|
|
@@ -23,4 +23,4 @@ This query is particularly useful in managing subscriptions for SaaS products, m
|
|
|
23
23
|
|
|
24
24
|
<NodeGraph />
|
|
25
25
|
|
|
26
|
-
<SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
|
|
26
|
+
<SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
{
|
|
3
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
3
|
"title": "GetSubscriptionStatusResponse",
|
|
@@ -41,6 +40,15 @@
|
|
|
41
40
|
"description": "The date and time when the last payment was processed."
|
|
42
41
|
}
|
|
43
42
|
},
|
|
44
|
-
"required": [
|
|
43
|
+
"required": [
|
|
44
|
+
"userId",
|
|
45
|
+
"subscriptionStatus",
|
|
46
|
+
"subscriptionPlan",
|
|
47
|
+
"nextBillingDate",
|
|
48
|
+
"billingFrequency",
|
|
49
|
+
"amount",
|
|
50
|
+
"currency",
|
|
51
|
+
"lastPaymentDate"
|
|
52
|
+
],
|
|
45
53
|
"additionalProperties": false
|
|
46
54
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
dictionary:
|
|
3
3
|
- id: Subscription
|
|
4
4
|
name: Subscription
|
|
5
|
-
summary:
|
|
5
|
+
summary: 'A recurring agreement where a customer pays for access to a product or service at regular intervals.'
|
|
6
6
|
description: |
|
|
7
7
|
A subscription represents an ongoing relationship between customer and provider. Key aspects include:
|
|
8
8
|
|
|
@@ -16,7 +16,7 @@ dictionary:
|
|
|
16
16
|
icon: Repeat
|
|
17
17
|
- id: Billing Cycle
|
|
18
18
|
name: Billing Cycle
|
|
19
|
-
summary:
|
|
19
|
+
summary: 'The recurring period for which a subscription is billed.'
|
|
20
20
|
description: |
|
|
21
21
|
Billing cycles define when payments are collected and services are provided. They include:
|
|
22
22
|
|
|
@@ -30,7 +30,7 @@ dictionary:
|
|
|
30
30
|
icon: Calendar
|
|
31
31
|
- id: Plan
|
|
32
32
|
name: Plan
|
|
33
|
-
summary:
|
|
33
|
+
summary: 'A specific subscription offering with defined features, pricing, and terms.'
|
|
34
34
|
description: |
|
|
35
35
|
Subscription plans define the service levels available to customers. They specify:
|
|
36
36
|
|
|
@@ -44,7 +44,7 @@ dictionary:
|
|
|
44
44
|
icon: Layout
|
|
45
45
|
- id: Trial Period
|
|
46
46
|
name: Trial Period
|
|
47
|
-
summary:
|
|
47
|
+
summary: 'A promotional period allowing customers to test a subscription service before committing.'
|
|
48
48
|
description: |
|
|
49
49
|
Trial periods help customers evaluate the service risk-free. They include:
|
|
50
50
|
|
|
@@ -58,7 +58,7 @@ dictionary:
|
|
|
58
58
|
icon: Clock
|
|
59
59
|
- id: Auto-Renewal
|
|
60
60
|
name: Auto-Renewal
|
|
61
|
-
summary:
|
|
61
|
+
summary: 'Automatic continuation of a subscription at the end of each billing period.'
|
|
62
62
|
description: |
|
|
63
63
|
Auto-renewal ensures service continuity for customers. The process includes:
|
|
64
64
|
|
|
@@ -72,7 +72,7 @@ dictionary:
|
|
|
72
72
|
icon: RefreshCw
|
|
73
73
|
- id: Upgrade
|
|
74
74
|
name: Upgrade
|
|
75
|
-
summary:
|
|
75
|
+
summary: 'The process of moving to a higher-tier subscription plan.'
|
|
76
76
|
description: |
|
|
77
77
|
Upgrades allow customers to access more features or capacity. This involves:
|
|
78
78
|
|
|
@@ -86,7 +86,7 @@ dictionary:
|
|
|
86
86
|
icon: ArrowUpCircle
|
|
87
87
|
- id: Downgrade
|
|
88
88
|
name: Downgrade
|
|
89
|
-
summary:
|
|
89
|
+
summary: 'The process of moving to a lower-tier subscription plan.'
|
|
90
90
|
description: |
|
|
91
91
|
Downgrades adjust service levels to match customer needs. This includes:
|
|
92
92
|
|
|
@@ -100,7 +100,7 @@ dictionary:
|
|
|
100
100
|
icon: ArrowDownCircle
|
|
101
101
|
- id: Cancellation
|
|
102
102
|
name: Cancellation
|
|
103
|
-
summary:
|
|
103
|
+
summary: 'The termination of a subscription service.'
|
|
104
104
|
description: |
|
|
105
105
|
Cancellation processes handle the end of subscription relationships. They cover:
|
|
106
106
|
|
|
@@ -114,7 +114,7 @@ dictionary:
|
|
|
114
114
|
icon: XCircle
|
|
115
115
|
- id: Usage Limit
|
|
116
116
|
name: Usage Limit
|
|
117
|
-
summary:
|
|
117
|
+
summary: 'Restrictions on service usage within a subscription plan.'
|
|
118
118
|
description: |
|
|
119
119
|
Usage limits define the boundaries of service consumption. They include:
|
|
120
120
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
1
|
/**
|
|
3
2
|
* This is an optional file that can add authentication to your EventCatalog.
|
|
4
|
-
*
|
|
3
|
+
*
|
|
5
4
|
* To enable authentication you need to set `server:output` in your `eventcatalog.config.js` file.
|
|
6
5
|
* And then pick which provider you want to use.
|
|
7
|
-
*
|
|
6
|
+
*
|
|
8
7
|
* You can read more in the documentation:
|
|
9
8
|
* https://www.eventcatalog.dev/docs/development/guides/authentication/introduction
|
|
10
|
-
*
|
|
9
|
+
*
|
|
11
10
|
*/
|
|
12
11
|
|
|
13
12
|
// export default {
|
|
@@ -42,4 +41,4 @@
|
|
|
42
41
|
// issuer: process.env.AUTH_OKTA_ISSUER,
|
|
43
42
|
// },
|
|
44
43
|
// },
|
|
45
|
-
// }
|
|
44
|
+
// }
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/** @type {import('@eventcatalog/core/bin/eventcatalog.config').Config} */
|
|
2
2
|
export default {
|
|
3
3
|
title: 'EventCatalog',
|
|
4
|
-
tagline:
|
|
4
|
+
tagline:
|
|
5
|
+
'This internal platform provides a comprehensive view of our event-driven architecture across all systems. Use this portal to discover existing domains, explore services and their dependencies, and understand the message contracts that connect our infrastructure',
|
|
5
6
|
organizationName: '<organizationName>',
|
|
6
7
|
homepageLink: 'https://eventcatalog.dev/',
|
|
7
8
|
editUrl: 'https://github.com/boyney123/eventcatalog-demo/edit/master',
|
|
@@ -16,16 +17,13 @@ export default {
|
|
|
16
17
|
// Customize the navigation for your docs sidebar.
|
|
17
18
|
// read more at https://eventcatalog.dev/docs/development/customization/customize-sidebars/documentation-sidebar
|
|
18
19
|
navigation: {
|
|
19
|
-
pages: [
|
|
20
|
-
'list:top-level-domains',
|
|
21
|
-
'list:all',
|
|
22
|
-
]
|
|
20
|
+
pages: ['list:top-level-domains', 'list:all'],
|
|
23
21
|
},
|
|
24
22
|
// Customize the logo, add your logo to public/ folder
|
|
25
23
|
logo: {
|
|
26
24
|
alt: 'EventCatalog Logo',
|
|
27
25
|
src: '/logo.png',
|
|
28
|
-
text: 'EventCatalog'
|
|
26
|
+
text: 'EventCatalog',
|
|
29
27
|
},
|
|
30
28
|
// This lets you copy markdown contents from EventCatalog to your clipboard
|
|
31
29
|
// Including schemas for your events and services
|
|
@@ -33,5 +31,5 @@ export default {
|
|
|
33
31
|
enabled: true,
|
|
34
32
|
},
|
|
35
33
|
// required random generated id used by eventcatalog
|
|
36
|
-
cId: '<cId>'
|
|
37
|
-
}
|
|
34
|
+
cId: '<cId>',
|
|
35
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* Custom styling support coming soon. */
|
|
1
|
+
/* Custom styling support coming soon. */
|
|
@@ -3,9 +3,9 @@ id: full-stack
|
|
|
3
3
|
name: Full stackers
|
|
4
4
|
summary: Full stack developers based in London, UK
|
|
5
5
|
members:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
- dboyne
|
|
7
|
+
- asmith
|
|
8
|
+
- msmith
|
|
9
9
|
email: test@test.com
|
|
10
10
|
slackDirectMessageUrl: https://yourteam.slack.com/channels/boyney123
|
|
11
11
|
---
|
|
@@ -17,10 +17,10 @@ The Full Stack Team is responsible for developing and maintaining both the front
|
|
|
17
17
|
## Responsibilities
|
|
18
18
|
|
|
19
19
|
### Key Responsibilities
|
|
20
|
+
|
|
20
21
|
- **Front-End Development**: Design and implement user interfaces using modern web technologies (e.g., HTML, CSS, JavaScript, React).
|
|
21
22
|
- **Back-End Development**: Develop and maintain server-side logic, APIs, and database interactions (e.g., Node.js, Express, SQL/NoSQL databases).
|
|
22
23
|
- **Integration**: Ensure seamless communication between the front-end and back-end components.
|
|
23
24
|
- **Performance Optimization**: Optimize the performance and scalability of web applications.
|
|
24
25
|
- **Testing and Debugging**: Write and maintain unit, integration, and end-to-end tests to ensure the quality and reliability of the applications.
|
|
25
26
|
- **Deployment**: Manage the deployment of applications to production environments using CI/CD pipelines.
|
|
26
|
-
|
|
@@ -3,7 +3,7 @@ id: mobile-devs
|
|
|
3
3
|
name: The mobile devs
|
|
4
4
|
summary: Mobile application development team for iOS and Android platforms
|
|
5
5
|
members:
|
|
6
|
-
|
|
6
|
+
- dboyne
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
The Mobile Devs team is responsible for the development and maintenance of the mobile applications for our company. This includes the iOS and Android apps that customers use to interact with our services, make purchases, and manage their accounts. The team ensures that the mobile apps are user-friendly, secure, and performant.
|
|
@@ -11,11 +11,13 @@ The Mobile Devs team is responsible for the development and maintenance of the m
|
|
|
11
11
|
## Responsibilities
|
|
12
12
|
|
|
13
13
|
### 1. Mobile Application Development
|
|
14
|
+
|
|
14
15
|
- **Platform Support**: Developing and maintaining apps for iOS and Android platforms.
|
|
15
16
|
- **Feature Implementation**: Implementing new features based on product requirements and user feedback.
|
|
16
17
|
- **User Interface Design**: Ensuring a consistent and intuitive user interface across all mobile platforms.
|
|
17
18
|
- **Performance Optimization**: Optimizing the performance of mobile apps to ensure fast and smooth user experiences.
|
|
18
19
|
|
|
19
20
|
### 2. Integration with Backend Services
|
|
21
|
+
|
|
20
22
|
- **API Integration**: Integrating mobile apps with backend services using RESTful APIs and other communication protocols.
|
|
21
|
-
- **Real-time Updates**: Implementing real-time data updates and synchronization with backend services.
|
|
23
|
+
- **Real-time Updates**: Implementing real-time data updates and synchronization with backend services.
|
|
@@ -25,4 +25,3 @@ As the Product Owner for Full Stackers, my role involves a wide range of respons
|
|
|
25
25
|
My mission is to deliver products that not only meet but exceed customer expectations. I thrive on the challenge of translating complex requirements into simple, intuitive solutions.
|
|
26
26
|
|
|
27
27
|
If you’re interested in product management, user experience, or discussing the latest trends in technology, feel free to reach out!
|
|
28
|
-
|