@eventcatalog/create-eventcatalog 4.1.2 → 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 +1 -1
- package/package.json +1 -1
- 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/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/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/dist/index.js
CHANGED
|
@@ -29809,7 +29809,7 @@ var import_os2 = __toESM(require("os"));
|
|
|
29809
29809
|
var package_default = {
|
|
29810
29810
|
name: "@eventcatalog/create-eventcatalog",
|
|
29811
29811
|
description: "Create EventCatalog with one command",
|
|
29812
|
-
version: "4.1.
|
|
29812
|
+
version: "4.1.3",
|
|
29813
29813
|
bin: {
|
|
29814
29814
|
"create-catalog": "./dist/index.js"
|
|
29815
29815
|
},
|
package/package.json
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event_id": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Unique identifier for the event"
|
|
8
|
+
},
|
|
9
|
+
"timestamp": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "date-time",
|
|
12
|
+
"description": "Timestamp of the inventory adjustment"
|
|
13
|
+
},
|
|
14
|
+
"product_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Identifier of the adjusted product"
|
|
17
|
+
},
|
|
18
|
+
"adjusted_quantity": {
|
|
19
|
+
"type": "integer",
|
|
20
|
+
"description": "The quantity adjusted (positive or negative)"
|
|
21
|
+
},
|
|
22
|
+
"new_quantity": {
|
|
23
|
+
"type": "integer",
|
|
24
|
+
"description": "The new total inventory quantity"
|
|
25
|
+
},
|
|
26
|
+
"adjustment_reason": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Reason for the adjustment"
|
|
29
|
+
},
|
|
30
|
+
"adjusted_by": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Identifier of the user who made the adjustment"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": ["event_id", "timestamp", "product_id", "adjusted_quantity", "new_quantity"]
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event_id": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Unique identifier for the event"
|
|
8
|
+
},
|
|
9
|
+
"timestamp": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "date-time",
|
|
12
|
+
"description": "Timestamp of the inventory adjustment"
|
|
13
|
+
},
|
|
14
|
+
"product_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Identifier of the adjusted product"
|
|
17
|
+
},
|
|
18
|
+
"adjusted_quantity": {
|
|
19
|
+
"type": "integer",
|
|
20
|
+
"description": "The quantity adjusted (positive or negative)"
|
|
21
|
+
},
|
|
22
|
+
"new_quantity": {
|
|
23
|
+
"type": "integer",
|
|
24
|
+
"description": "The new total inventory quantity"
|
|
25
|
+
},
|
|
26
|
+
"adjustment_reason": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Reason for the adjustment"
|
|
29
|
+
},
|
|
30
|
+
"adjusted_by": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Identifier of the user who made the adjustment"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": ["event_id", "timestamp", "product_id", "adjusted_quantity", "new_quantity"]
|
|
36
|
+
}
|
package/templates/default/domains/Orders/services/InventoryService/events/OutOfStock/schema.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event_id": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Unique identifier for the event"
|
|
8
|
+
},
|
|
9
|
+
"timestamp": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "date-time",
|
|
12
|
+
"description": "Timestamp when the out-of-stock condition was detected"
|
|
13
|
+
},
|
|
14
|
+
"product_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Identifier of the out-of-stock product"
|
|
17
|
+
},
|
|
18
|
+
"last_available_quantity": {
|
|
19
|
+
"type": "integer",
|
|
20
|
+
"description": "The last known available quantity before stock ran out"
|
|
21
|
+
},
|
|
22
|
+
"warehouse_id": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Identifier of the warehouse reporting the stock-out"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": ["event_id", "timestamp", "product_id"]
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event_id": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Unique identifier for the event"
|
|
8
|
+
},
|
|
9
|
+
"timestamp": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "date-time",
|
|
12
|
+
"description": "Timestamp when the out-of-stock condition was detected"
|
|
13
|
+
},
|
|
14
|
+
"product_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Identifier of the out-of-stock product"
|
|
17
|
+
},
|
|
18
|
+
"last_available_quantity": {
|
|
19
|
+
"type": "integer",
|
|
20
|
+
"description": "The last known available quantity before stock ran out"
|
|
21
|
+
},
|
|
22
|
+
"warehouse_id": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Identifier of the warehouse reporting the stock-out"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": ["event_id", "timestamp", "product_id"]
|
|
28
|
+
}
|
|
@@ -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 initiating the payment"
|
|
9
|
+
},
|
|
10
|
+
"orderId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "uuid",
|
|
13
|
+
"description": "Unique identifier of the associated order"
|
|
14
|
+
},
|
|
15
|
+
"amount": {
|
|
16
|
+
"type": "number",
|
|
17
|
+
"description": "Payment amount"
|
|
18
|
+
},
|
|
19
|
+
"paymentMethod": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": ["CreditCard", "DebitCard", "BankTransfer", "PayPal"],
|
|
22
|
+
"description": "The payment method used"
|
|
23
|
+
},
|
|
24
|
+
"timestamp": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "date-time",
|
|
27
|
+
"description": "When the payment was initiated"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": ["userId", "orderId", "amount", "paymentMethod", "timestamp"]
|
|
31
|
+
}
|
|
@@ -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,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
|
+
}
|