@eventcatalog/create-eventcatalog 4.1.1 → 4.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.
- package/dist/index.js +4 -2
- package/package.json +1 -1
- package/templates/default/domains/E-Commerce/index.mdx +1 -19
- package/templates/default/domains/E-Commerce/ubiquitous-language.mdx +87 -0
- package/templates/default/domains/Orders/entities/CartItem/index.mdx +2 -0
- package/templates/default/domains/Orders/entities/Customer/index.mdx +2 -0
- package/templates/default/domains/Orders/entities/Order/index.mdx +2 -0
- package/templates/default/domains/Orders/entities/OrderItem/index.mdx +2 -0
- package/templates/default/domains/Orders/entities/ShoppingCart/index.mdx +2 -0
- package/templates/default/domains/Orders/index.mdx +1 -0
- package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/0.0.1/index.mdx +1 -0
- package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/0.0.1/schema.json +36 -0
- package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/1.0.0/index.mdx +1 -0
- package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/1.0.0/schema.json +36 -0
- package/templates/default/domains/Orders/services/InventoryService/events/OutOfStock/index.mdx +1 -0
- package/templates/default/domains/Orders/services/InventoryService/events/OutOfStock/schema.json +28 -0
- package/templates/default/domains/Orders/services/InventoryService/events/OutOfStock/versioned/0.0.1/index.mdx +1 -0
- package/templates/default/domains/Orders/services/InventoryService/events/OutOfStock/versioned/0.0.1/schema.json +28 -0
- package/templates/default/domains/Orders/services/InventoryService/index.mdx +2 -2
- package/templates/default/domains/Orders/services/InventoryService/versioned/0.0.1/index.mdx +2 -2
- package/templates/default/domains/Orders/services/OrdersService/index.mdx +1 -1
- package/templates/default/domains/Orders/services/OrdersService/versioned/0.0.2/index.mdx +1 -1
- package/templates/default/domains/Orders/versioned/0.0.2/index.mdx +1 -0
- package/templates/default/domains/Payment/entities/Address/index.mdx +2 -0
- package/templates/default/domains/Payment/entities/Invoice/index.mdx +2 -0
- package/templates/default/domains/Payment/entities/Payment/index.mdx +2 -0
- package/templates/default/domains/Payment/entities/PaymentMethod/index.mdx +2 -0
- package/templates/default/domains/Payment/entities/Transaction/index.mdx +2 -0
- package/templates/default/domains/Payment/flows/PaymentProcessed/index.mdx +3 -3
- package/templates/default/domains/Payment/services/FraudDetectionService/events/FraudCheckCompleted/index.mdx +2 -0
- package/templates/default/domains/Payment/services/FraudDetectionService/index.mdx +1 -5
- package/templates/default/domains/Payment/services/PaymentGatewayService/commands/ProcessPayment/index.mdx +2 -0
- package/templates/default/domains/Payment/services/PaymentGatewayService/events/PaymentFailed/index.mdx +2 -0
- package/templates/default/domains/Payment/services/PaymentGatewayService/index.mdx +1 -9
- package/templates/default/domains/Payment/services/PaymentService/events/PaymentInitiated/index.mdx +1 -0
- package/templates/default/domains/Payment/services/PaymentService/events/PaymentInitiated/schema.json +31 -0
- package/templates/default/domains/Payment/services/PaymentService/events/PaymentProcessed/index.mdx +1 -0
- package/templates/default/domains/Payment/services/PaymentService/events/PaymentProcessed/schema.json +54 -0
- package/templates/default/domains/Payment/services/PaymentService/events/PaymentProcessed/versioned/0.0.1/index.mdx +1 -0
- package/templates/default/domains/Payment/services/PaymentService/events/PaymentProcessed/versioned/0.0.1/schema.json +54 -0
- package/templates/default/domains/ProductCatalog/entities/Category/index.mdx +2 -0
- package/templates/default/domains/ProductCatalog/entities/Inventory/index.mdx +2 -0
- package/templates/default/domains/ProductCatalog/entities/Product/index.mdx +2 -0
- package/templates/default/domains/ProductCatalog/entities/Review/index.mdx +2 -0
- package/templates/default/domains/ProductCatalog/index.mdx +0 -3
- package/templates/default/domains/ProductCatalog/ubiquitous-language.mdx +88 -0
- package/templates/default/domains/Subscriptions/entities/BillingProfile/index.mdx +2 -0
- package/templates/default/domains/Subscriptions/entities/SubscriptionPeriod/index.mdx +2 -0
- package/templates/default/domains/Subscriptions/flows/CancelSubscription/index.mdx +2 -0
- package/templates/default/domains/Subscriptions/flows/CancelSubscription/versioned/0.0.1/index.mdx +2 -0
- package/templates/default/domains/Subscriptions/services/BillingService/events/SubscriptionPaymentDue/index.mdx +2 -0
- package/templates/default/domains/Subscriptions/services/BillingService/index.mdx +1 -5
- package/templates/default/domains/Subscriptions/services/PlanManagementService/index.mdx +3 -17
- package/templates/default/domains/Subscriptions/services/SubscriptionService/commands/CancelSubscription/index.mdx +1 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/commands/CancelSubscription/schema.json +30 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/commands/SubscribeUser/index.mdx +1 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/commands/SubscribeUser/schema.json +31 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/events/UserSubscriptionCancelled/index.mdx +1 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/events/UserSubscriptionCancelled/schema.json +35 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/events/UserSubscriptionStarted/index.mdx +1 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/events/UserSubscriptionStarted/schema.json +36 -0
- package/templates/default/teams/full-stack.mdx +1 -1
- package/templates/default/teams/mobile-devs.mdx +1 -0
- package/templates/default/users/aSmith.mdx +1 -0
- package/templates/default/users/dboyne.mdx +1 -0
- package/templates/default/users/mSmith.mdx +1 -0
- package/templates/index.ts +3 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"transactionId": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"format": "uuid",
|
|
8
|
+
"description": "Unique identifier for the transaction"
|
|
9
|
+
},
|
|
10
|
+
"userId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "uuid",
|
|
13
|
+
"description": "Unique identifier of the user"
|
|
14
|
+
},
|
|
15
|
+
"orderId": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "uuid",
|
|
18
|
+
"description": "Unique identifier of the associated order"
|
|
19
|
+
},
|
|
20
|
+
"amount": {
|
|
21
|
+
"type": "number",
|
|
22
|
+
"description": "Payment amount processed"
|
|
23
|
+
},
|
|
24
|
+
"paymentMethod": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": ["CreditCard", "DebitCard", "BankTransfer", "PayPal"],
|
|
27
|
+
"description": "The payment method used"
|
|
28
|
+
},
|
|
29
|
+
"status": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"enum": ["confirmed", "pending", "failed"],
|
|
32
|
+
"description": "Status of the payment"
|
|
33
|
+
},
|
|
34
|
+
"confirmationDetails": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"properties": {
|
|
37
|
+
"gatewayResponse": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "Response from the payment gateway"
|
|
40
|
+
},
|
|
41
|
+
"transactionId": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "Gateway transaction identifier"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"timestamp": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"format": "date-time",
|
|
50
|
+
"description": "When the payment was processed"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": ["transactionId", "userId", "orderId", "amount", "status", "timestamp"]
|
|
54
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"transactionId": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"format": "uuid",
|
|
8
|
+
"description": "Unique identifier for the transaction"
|
|
9
|
+
},
|
|
10
|
+
"userId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "uuid",
|
|
13
|
+
"description": "Unique identifier of the user"
|
|
14
|
+
},
|
|
15
|
+
"orderId": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "uuid",
|
|
18
|
+
"description": "Unique identifier of the associated order"
|
|
19
|
+
},
|
|
20
|
+
"amount": {
|
|
21
|
+
"type": "number",
|
|
22
|
+
"description": "Payment amount processed"
|
|
23
|
+
},
|
|
24
|
+
"paymentMethod": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": ["CreditCard", "DebitCard", "BankTransfer", "PayPal"],
|
|
27
|
+
"description": "The payment method used"
|
|
28
|
+
},
|
|
29
|
+
"status": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"enum": ["confirmed", "pending", "failed"],
|
|
32
|
+
"description": "Status of the payment"
|
|
33
|
+
},
|
|
34
|
+
"confirmationDetails": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"properties": {
|
|
37
|
+
"gatewayResponse": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "Response from the payment gateway"
|
|
40
|
+
},
|
|
41
|
+
"transactionId": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "Gateway transaction identifier"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"timestamp": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"format": "date-time",
|
|
50
|
+
"description": "When the payment was processed"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": ["transactionId", "userId", "orderId", "amount", "status", "timestamp"]
|
|
54
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
dictionary:
|
|
3
|
+
- id: Product
|
|
4
|
+
name: Product
|
|
5
|
+
summary: "A distinct item available for sale, defined by its attributes, pricing, and descriptions."
|
|
6
|
+
description: |
|
|
7
|
+
A product is the central aggregate in the Product Catalog domain. It contains all information needed to present and sell an item:
|
|
8
|
+
|
|
9
|
+
- Title, description, and images
|
|
10
|
+
- Pricing and currency information
|
|
11
|
+
- Attributes and specifications
|
|
12
|
+
- Availability status and lifecycle state (draft, active, discontinued)
|
|
13
|
+
|
|
14
|
+
Products may have multiple variants and belong to one or more categories.
|
|
15
|
+
icon: Package
|
|
16
|
+
- id: Category
|
|
17
|
+
name: Category
|
|
18
|
+
summary: "A hierarchical grouping used to organize products for browsing and discovery."
|
|
19
|
+
description: |
|
|
20
|
+
Categories form a tree structure that helps customers navigate the catalog. Key aspects include:
|
|
21
|
+
|
|
22
|
+
- Parent-child relationships for multi-level hierarchies
|
|
23
|
+
- Category metadata and SEO attributes
|
|
24
|
+
- Display ordering and featured status
|
|
25
|
+
- Maximum depth limits enforced by business rules
|
|
26
|
+
|
|
27
|
+
Products must belong to at least one active category.
|
|
28
|
+
icon: FolderTree
|
|
29
|
+
- id: Inventory
|
|
30
|
+
name: Inventory
|
|
31
|
+
summary: "The tracked quantity of a product available for sale across warehouses and locations."
|
|
32
|
+
description: |
|
|
33
|
+
Inventory represents the stock levels for each product or variant. It involves:
|
|
34
|
+
|
|
35
|
+
- Current stock quantities per location
|
|
36
|
+
- Reorder points and safety stock thresholds
|
|
37
|
+
- Reserved and allocated quantities
|
|
38
|
+
- Stock movement history and audit trails
|
|
39
|
+
|
|
40
|
+
Inventory levels directly affect product availability on the storefront.
|
|
41
|
+
icon: Warehouse
|
|
42
|
+
- id: Review
|
|
43
|
+
name: Review
|
|
44
|
+
summary: "Customer feedback on a product, including a rating and optional written commentary."
|
|
45
|
+
description: |
|
|
46
|
+
Reviews provide social proof and help customers make purchase decisions. Review management includes:
|
|
47
|
+
|
|
48
|
+
- Star ratings and written feedback
|
|
49
|
+
- Verified purchase validation
|
|
50
|
+
- Content moderation and approval workflows
|
|
51
|
+
- Helpfulness voting and seller responses
|
|
52
|
+
|
|
53
|
+
Reviews require a verified purchase before submission.
|
|
54
|
+
icon: Star
|
|
55
|
+
- id: SKU
|
|
56
|
+
name: SKU
|
|
57
|
+
summary: "Stock Keeping Unit — a unique identifier assigned to each distinct product variant for inventory tracking."
|
|
58
|
+
icon: Tag
|
|
59
|
+
- id: Variant
|
|
60
|
+
name: Variant
|
|
61
|
+
summary: "A specific version of a product differentiated by attributes such as size, color, or material."
|
|
62
|
+
description: |
|
|
63
|
+
Variants allow a single product to be offered in multiple configurations. Each variant has:
|
|
64
|
+
|
|
65
|
+
- Its own SKU and inventory levels
|
|
66
|
+
- Specific attribute values (e.g., size: Large, color: Blue)
|
|
67
|
+
- Optional price overrides
|
|
68
|
+
- Independent availability status
|
|
69
|
+
|
|
70
|
+
Variants share the parent product's core information but differ in selectable attributes.
|
|
71
|
+
icon: Layers
|
|
72
|
+
- id: Pricing
|
|
73
|
+
name: Pricing
|
|
74
|
+
summary: "The monetary value assigned to a product or variant, including base price, sale price, and currency."
|
|
75
|
+
icon: DollarSign
|
|
76
|
+
- id: Product Lifecycle
|
|
77
|
+
name: Product Lifecycle
|
|
78
|
+
summary: "The stages a product moves through from creation to retirement: draft, active, and discontinued."
|
|
79
|
+
icon: RefreshCw
|
|
80
|
+
- id: Attribute
|
|
81
|
+
name: Attribute
|
|
82
|
+
summary: "A descriptive property of a product such as weight, dimensions, material, or brand."
|
|
83
|
+
icon: ListChecks
|
|
84
|
+
- id: Cross-Sell
|
|
85
|
+
name: Cross-Sell
|
|
86
|
+
summary: "A recommendation of related or complementary products to encourage additional purchases."
|
|
87
|
+
icon: ArrowRightLeft
|
|
88
|
+
---
|
|
@@ -19,16 +19,12 @@ receives:
|
|
|
19
19
|
parameters:
|
|
20
20
|
env: staging
|
|
21
21
|
sends:
|
|
22
|
-
- id: InvoiceGenerated
|
|
23
|
-
version: 0.0.1
|
|
24
22
|
- id: SubscriptionPaymentDue
|
|
25
23
|
version: 0.0.1
|
|
26
|
-
- id: BillingCycleCompleted
|
|
27
|
-
version: 0.0.1
|
|
28
24
|
- id: ProcessPayment
|
|
29
25
|
version: 0.0.1
|
|
30
26
|
owners:
|
|
31
|
-
-
|
|
27
|
+
- dboyne
|
|
32
28
|
---
|
|
33
29
|
|
|
34
30
|
import Footer from '@catalog/components/footer.astro'
|
|
@@ -9,24 +9,10 @@ tags:
|
|
|
9
9
|
- subscriptions
|
|
10
10
|
repository:
|
|
11
11
|
url: https://github.com/eventcatalog/plan-management-service
|
|
12
|
-
receives:
|
|
13
|
-
|
|
14
|
-
version: 0.0.1
|
|
15
|
-
- id: UpdatePlan
|
|
16
|
-
version: 0.0.1
|
|
17
|
-
- id: MigratePlan
|
|
18
|
-
version: 0.0.1
|
|
19
|
-
sends:
|
|
20
|
-
- id: PlanCreated
|
|
21
|
-
version: 0.0.1
|
|
22
|
-
- id: PlanUpdated
|
|
23
|
-
version: 0.0.1
|
|
24
|
-
- id: PlanMigrationCompleted
|
|
25
|
-
version: 0.0.1
|
|
26
|
-
- id: FeatureAccessChanged
|
|
27
|
-
version: 0.0.1
|
|
12
|
+
receives: []
|
|
13
|
+
sends: []
|
|
28
14
|
owners:
|
|
29
|
-
-
|
|
15
|
+
- dboyne
|
|
30
16
|
---
|
|
31
17
|
|
|
32
18
|
import Footer from '@catalog/components/footer.astro'
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"subscriptionId": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"format": "uuid",
|
|
8
|
+
"description": "Unique identifier of the subscription to cancel"
|
|
9
|
+
},
|
|
10
|
+
"userId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "uuid",
|
|
13
|
+
"description": "Unique identifier of the user requesting cancellation"
|
|
14
|
+
},
|
|
15
|
+
"reason": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Reason for cancellation"
|
|
18
|
+
},
|
|
19
|
+
"cancelImmediately": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"description": "Whether to cancel immediately or at end of billing period"
|
|
22
|
+
},
|
|
23
|
+
"timestamp": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"format": "date-time",
|
|
26
|
+
"description": "When the cancellation was requested"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": ["subscriptionId", "userId", "timestamp"]
|
|
30
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"userId": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"format": "uuid",
|
|
8
|
+
"description": "Unique identifier of the user to subscribe"
|
|
9
|
+
},
|
|
10
|
+
"planId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Identifier of the subscription plan"
|
|
13
|
+
},
|
|
14
|
+
"paymentMethod": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"enum": ["CreditCard", "DebitCard", "BankTransfer", "PayPal"],
|
|
17
|
+
"description": "The payment method for the subscription"
|
|
18
|
+
},
|
|
19
|
+
"startDate": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"format": "date-time",
|
|
22
|
+
"description": "When the subscription should start"
|
|
23
|
+
},
|
|
24
|
+
"timestamp": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "date-time",
|
|
27
|
+
"description": "When the command was issued"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": ["userId", "planId", "paymentMethod", "timestamp"]
|
|
31
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"subscriptionId": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"format": "uuid",
|
|
8
|
+
"description": "Unique identifier of the cancelled subscription"
|
|
9
|
+
},
|
|
10
|
+
"userId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "uuid",
|
|
13
|
+
"description": "Unique identifier of the user"
|
|
14
|
+
},
|
|
15
|
+
"planId": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Identifier of the subscription plan"
|
|
18
|
+
},
|
|
19
|
+
"cancellationReason": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Reason for the cancellation"
|
|
22
|
+
},
|
|
23
|
+
"effectiveDate": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"format": "date-time",
|
|
26
|
+
"description": "When the cancellation takes effect"
|
|
27
|
+
},
|
|
28
|
+
"timestamp": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": "date-time",
|
|
31
|
+
"description": "When the cancellation event occurred"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": ["subscriptionId", "userId", "timestamp"]
|
|
35
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"subscriptionId": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"format": "uuid",
|
|
8
|
+
"description": "Unique identifier of the new subscription"
|
|
9
|
+
},
|
|
10
|
+
"userId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "uuid",
|
|
13
|
+
"description": "Unique identifier of the subscribed user"
|
|
14
|
+
},
|
|
15
|
+
"planId": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Identifier of the subscription plan"
|
|
18
|
+
},
|
|
19
|
+
"startDate": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"format": "date-time",
|
|
22
|
+
"description": "When the subscription started"
|
|
23
|
+
},
|
|
24
|
+
"billingCycle": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": ["monthly", "quarterly", "yearly"],
|
|
27
|
+
"description": "The billing cycle for the subscription"
|
|
28
|
+
},
|
|
29
|
+
"timestamp": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"format": "date-time",
|
|
32
|
+
"description": "When the subscription started event occurred"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": ["subscriptionId", "userId", "planId", "startDate", "timestamp"]
|
|
36
|
+
}
|
package/templates/index.ts
CHANGED
|
@@ -46,6 +46,7 @@ export const installTemplate = async ({
|
|
|
46
46
|
start: "eventcatalog start",
|
|
47
47
|
preview: "eventcatalog preview",
|
|
48
48
|
generate: "eventcatalog generate",
|
|
49
|
+
lint: "eventcatalog-linter",
|
|
49
50
|
test: 'echo "Error: no test specified" && exit 1',
|
|
50
51
|
}
|
|
51
52
|
};
|
|
@@ -67,7 +68,8 @@ export const installTemplate = async ({
|
|
|
67
68
|
*/
|
|
68
69
|
// const dependencies = ["@eventcatalog/eventcatalog-2"];
|
|
69
70
|
const dependencies = [
|
|
70
|
-
"@eventcatalog/core"
|
|
71
|
+
"@eventcatalog/core",
|
|
72
|
+
"@eventcatalog/linter"
|
|
71
73
|
] as any;
|
|
72
74
|
|
|
73
75
|
// if asyncapi is selected, add the asyncapi dependencies
|