@eventcatalog/create-eventcatalog 2.0.22 → 2.1.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/README.md +32 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/templates/default/channels/inventory.{env}.events/index.md +157 -0
- package/templates/default/channels/orders.{env}.events/index.md +82 -0
- package/templates/default/channels/payment.{env}.events/index.md +88 -0
- package/templates/default/components/footer.astro +8 -0
- package/templates/default/domains/Orders/index.md +19 -3
- package/templates/default/{commands → domains/Orders/services/InventoryService/commands}/AddInventory/index.md +10 -0
- package/templates/default/domains/Orders/services/InventoryService/commands/PlaceOrder/index.md +36 -0
- package/templates/default/domains/Orders/services/InventoryService/commands/PlaceOrder/schema.json +124 -0
- package/templates/default/{commands → domains/Orders/services/InventoryService/commands}/UpdateInventory/index.md +9 -0
- package/templates/default/{events/Inventory → domains/Orders/services/InventoryService/events}/InventoryAdjusted/index.md +14 -3
- package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/schema.json +35 -0
- package/templates/default/{events/Inventory/InventoryAdjusted/versioned/0.0.3 → domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/1.0.0}/index.md +1 -1
- package/templates/default/domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/1.0.0/schema.avro +10 -0
- package/templates/default/domains/Orders/services/InventoryService/events/OutOfStock/index.md +102 -0
- package/templates/default/{events/Inventory/OutOfStock → domains/Orders/services/InventoryService/events/OutOfStock/versioned/0.0.1}/index.md +1 -1
- package/templates/default/{services → domains/Orders/services}/InventoryService/index.md +49 -4
- package/templates/default/domains/Orders/services/InventoryService/queries/GetInventoryList/index.md +22 -0
- package/templates/default/domains/Orders/services/InventoryService/queries/GetInventoryList/schema.json +53 -0
- package/templates/default/domains/Orders/services/InventoryService/queries/GetInventoryStatus/index.md +41 -0
- package/templates/default/domains/Orders/services/InventoryService/queries/GetInventoryStatus/schema.json +28 -0
- package/templates/default/{services → domains/Orders/services}/InventoryService/versioned/0.0.1/index.md +2 -2
- package/templates/default/{services → domains/Orders/services}/NotificationService/index.md +21 -4
- package/templates/default/domains/Orders/services/NotificationService/queries/GetNotificationDetails/index.md +26 -0
- package/templates/default/domains/Orders/services/NotificationService/queries/GetNotificationDetails/schema.json +56 -0
- package/templates/default/domains/Orders/services/NotificationService/queries/GetUserNotifications/index.md +27 -0
- package/templates/default/domains/Orders/services/NotificationService/queries/GetUserNotifications/schema.json +47 -0
- package/templates/default/domains/Orders/services/OrdersService/changelog.md +3 -0
- package/templates/default/{events/Order → domains/Orders/services/OrdersService/events}/OrderAmended/index.md +9 -0
- package/templates/default/{events/Order → domains/Orders/services/OrdersService/events}/OrderCancelled/index.md +7 -1
- package/templates/default/{events/Order → domains/Orders/services/OrdersService/events}/OrderConfirmed/index.md +7 -1
- package/templates/default/{services → domains/Orders/services}/OrdersService/index.md +13 -4
- package/templates/default/domains/Orders/services/OrdersService/openapi.yml +185 -0
- package/templates/default/domains/Orders/services/OrdersService/order-service-asyncapi.yaml +148 -0
- package/templates/default/domains/Orders/services/OrdersService/queries/GetOrder/index.md +26 -0
- package/templates/default/domains/Orders/services/OrdersService/versioned/0.0.2/changelog.md +3 -0
- package/templates/default/domains/Orders/services/OrdersService/versioned/0.0.2/index.md +34 -0
- package/templates/default/domains/Orders/services/OrdersService/versioned/0.0.2/openapi.yml +96 -0
- package/templates/default/domains/Orders/services/OrdersService/versioned/0.0.2/order-service-asyncapi.yaml +148 -0
- package/templates/default/domains/Orders/versioned/0.0.1/index.md +1 -0
- package/templates/default/domains/Orders/versioned/0.0.2/index.md +49 -0
- package/templates/default/domains/Payment/index.md +1 -6
- package/templates/default/{events/Payment → domains/Payment/services/PaymentService/events}/PaymentInitiated/index.md +9 -1
- package/templates/default/domains/Payment/services/PaymentService/events/PaymentProcessed/index.md +46 -0
- package/templates/default/{events/Payment/PaymentProcessed → domains/Payment/services/PaymentService/events/PaymentProcessed/versioned/0.0.1}/index.md +5 -1
- package/templates/default/{services → domains/Payment/services}/PaymentService/index.md +3 -8
- package/templates/default/domains/Payment/services/PaymentService/queries/GetPaymentStatus/index.md +26 -0
- package/templates/default/domains/Payment/services/PaymentService/queries/GetPaymentStatus/schema.json +40 -0
- package/templates/default/domains/Subscriptions/index.md +24 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/commands/CancelSubscription/index.md +25 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/commands/SubscribeUser/index.md +25 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/events/UserSubscriptionCancelled/index.md +25 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/events/UserSubscriptionStarted/index.md +25 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/index.md +42 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/queries/GetSubscriptionStatus/index.md +26 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/queries/GetSubscriptionStatus/schema.json +46 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/queries/GetSubscriptionStatus/versioned/0.0.1/index.md +26 -0
- package/templates/default/domains/Subscriptions/services/SubscriptionService/queries/GetSubscriptionStatus/versioned/0.0.1/schema.json +46 -0
- package/templates/default/eventcatalog.config.js +0 -6
- package/templates/default/events/Inventory/InventoryAdjusted/schema.json +0 -17
- package/templates/default/events/Inventory/InventoryAdjusted/versioned/0.0.3/schema.avro +0 -14
- package/templates/default/services/OrdersService/openapi.yml +0 -170
- /package/templates/default/{services → domains/Orders/services}/InventoryService/changelog.md +0 -0
- /package/templates/default/{commands → domains/Orders/services/InventoryService/commands}/AddInventory/schema.json +0 -0
- /package/templates/default/{commands → domains/Orders/services/InventoryService/commands}/UpdateInventory/schema.json +0 -0
- /package/templates/default/{events/Inventory → domains/Orders/services/InventoryService/events}/InventoryAdjusted/changelog.md +0 -0
- /package/templates/default/{events/Inventory → domains/Orders/services/InventoryService/events}/InventoryAdjusted/schema.avro +0 -0
- /package/templates/default/{events/Inventory → domains/Orders/services/InventoryService/events}/InventoryAdjusted/versioned/0.0.1/changelog.md +0 -0
- /package/templates/default/{events/Inventory → domains/Orders/services/InventoryService/events}/InventoryAdjusted/versioned/0.0.1/index.md +0 -0
- /package/templates/default/{events/Inventory → domains/Orders/services/InventoryService/events}/InventoryAdjusted/versioned/0.0.1/schema.avro +0 -0
- /package/templates/default/{events/Inventory/InventoryAdjusted/versioned/0.0.3 → domains/Orders/services/InventoryService/events/InventoryAdjusted/versioned/1.0.0}/changelog.md +0 -0
- /package/templates/default/{events/Order → domains/Orders/services/OrdersService/events}/OrderAmended/schema.avro +0 -0
- /package/templates/default/{events/Order → domains/Orders/services/OrdersService/events}/OrderAmended/schema.json +0 -0
- /package/templates/default/{events/Order → domains/Orders/services/OrdersService/events}/OrderCancelled/schema.json +0 -0
- /package/templates/default/{events/Order → domains/Orders/services/OrdersService/events}/OrderConfirmed/schema.json +0 -0
- /package/templates/default/{flows/Payment → domains/Payment/flows}/PaymentProcessed/index.md +0 -0
- /package/templates/default/{flows/Subscriptions → domains/Subscriptions/flows}/CancelSubscription/index.md +0 -0
- /package/templates/default/{flows/Subscriptions → domains/Subscriptions/flows}/CancelSubscription/versioned/0.0.1/index.md +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GetSubscriptionStatus
|
|
3
|
+
name: Get subscription status
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
summary: |
|
|
6
|
+
GET request that will return the current subscription status for a specific user, identified by their userId.
|
|
7
|
+
owners:
|
|
8
|
+
- dboyne
|
|
9
|
+
badges:
|
|
10
|
+
- content: Recently updated!
|
|
11
|
+
backgroundColor: green
|
|
12
|
+
textColor: green
|
|
13
|
+
schemaPath: schema.json
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
import Footer from '@catalog/components/footer.astro';
|
|
17
|
+
|
|
18
|
+
## Overview
|
|
19
|
+
|
|
20
|
+
The `GetSubscriptionStatus` message is a query used to retrieve the current subscription status for a specific user, identified by their `userId`. This query returns detailed information about the user's subscription, such as its current status (active, canceled, expired), the subscription tier or plan, and the next billing date. It is typically used by systems that manage user subscriptions, billing, and renewal processes to ensure that users are aware of their subscription details and any upcoming renewals.
|
|
21
|
+
|
|
22
|
+
This query is particularly useful in managing subscriptions for SaaS products, media services, or any recurring payment-based services where users need to manage and view their subscription information.
|
|
23
|
+
|
|
24
|
+
<NodeGraph />
|
|
25
|
+
|
|
26
|
+
<SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
{
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"title": "GetSubscriptionStatusResponse",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"userId": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The unique identifier for the user."
|
|
10
|
+
},
|
|
11
|
+
"subscriptionStatus": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": ["active", "canceled", "expired", "pending"],
|
|
14
|
+
"description": "The current status of the user's subscription."
|
|
15
|
+
},
|
|
16
|
+
"subscriptionPlan": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The name or tier of the subscription plan."
|
|
19
|
+
},
|
|
20
|
+
"nextBillingDate": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "date-time",
|
|
23
|
+
"description": "The date and time of the next billing or renewal."
|
|
24
|
+
},
|
|
25
|
+
"billingFrequency": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"enum": ["monthly", "yearly"],
|
|
28
|
+
"description": "The frequency of the billing cycle."
|
|
29
|
+
},
|
|
30
|
+
"amount": {
|
|
31
|
+
"type": "number",
|
|
32
|
+
"description": "The amount to be billed for the subscription."
|
|
33
|
+
},
|
|
34
|
+
"currency": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "The currency in which the subscription is billed (e.g., USD, EUR)."
|
|
37
|
+
},
|
|
38
|
+
"lastPaymentDate": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": "date-time",
|
|
41
|
+
"description": "The date and time when the last payment was processed."
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": ["userId", "subscriptionStatus", "subscriptionPlan", "nextBillingDate", "billingFrequency", "amount", "currency", "lastPaymentDate"],
|
|
45
|
+
"additionalProperties": false
|
|
46
|
+
}
|
|
@@ -16,12 +16,6 @@ export default {
|
|
|
16
16
|
src: '/logo.png',
|
|
17
17
|
text: 'EventCatalog'
|
|
18
18
|
},
|
|
19
|
-
docs: {
|
|
20
|
-
sidebar: {
|
|
21
|
-
// Should the sub heading be rendered in the docs sidebar?
|
|
22
|
-
showPageHeadings: true
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
19
|
// required random generated id used by eventcatalog
|
|
26
20
|
cId: '<cId>'
|
|
27
21
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"title": "Employee",
|
|
5
|
-
"properties": {
|
|
6
|
-
"Name": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
"Age": {
|
|
10
|
-
"type": "integer"
|
|
11
|
-
},
|
|
12
|
-
"Town": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"required": ["Name", "Age", "Town"]
|
|
17
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type" : "record",
|
|
3
|
-
"namespace" : "Tutorialspoint",
|
|
4
|
-
"name" : "Employee",
|
|
5
|
-
"fields" : [
|
|
6
|
-
{ "name" : "Name" , "type" : "string" },
|
|
7
|
-
{ "name" : "Age" , "type" : "int" },
|
|
8
|
-
{ "name" : "Age" , "type" : "int" },
|
|
9
|
-
{ "name" : "Age" , "type" : "int" },
|
|
10
|
-
{ "name" : "Age" , "type" : "int" },
|
|
11
|
-
{ "name" : "Age" , "type" : "int" },
|
|
12
|
-
{ "name" : "Age" , "type" : "int" }
|
|
13
|
-
]
|
|
14
|
-
}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
openapi: "3.0.0"
|
|
2
|
-
info:
|
|
3
|
-
title: Simple API overview
|
|
4
|
-
version: 2.0.0
|
|
5
|
-
paths:
|
|
6
|
-
/:
|
|
7
|
-
get:
|
|
8
|
-
operationId: listVersionsv2
|
|
9
|
-
summary: List API versions
|
|
10
|
-
responses:
|
|
11
|
-
'200':
|
|
12
|
-
description: |-
|
|
13
|
-
200 response
|
|
14
|
-
content:
|
|
15
|
-
application/json:
|
|
16
|
-
examples:
|
|
17
|
-
foo:
|
|
18
|
-
value:
|
|
19
|
-
{
|
|
20
|
-
"versions": [
|
|
21
|
-
{
|
|
22
|
-
"status": "CURRENT",
|
|
23
|
-
"updated": "2011-01-21T11:33:21Z",
|
|
24
|
-
"id": "v2.0",
|
|
25
|
-
"links": [
|
|
26
|
-
{
|
|
27
|
-
"href": "http://127.0.0.1:8774/v2/",
|
|
28
|
-
"rel": "self"
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"status": "EXPERIMENTAL",
|
|
34
|
-
"updated": "2013-07-23T11:33:21Z",
|
|
35
|
-
"id": "v3.0",
|
|
36
|
-
"links": [
|
|
37
|
-
{
|
|
38
|
-
"href": "http://127.0.0.1:8774/v3/",
|
|
39
|
-
"rel": "self"
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
'300':
|
|
46
|
-
description: |-
|
|
47
|
-
300 response
|
|
48
|
-
content:
|
|
49
|
-
application/json:
|
|
50
|
-
examples:
|
|
51
|
-
foo:
|
|
52
|
-
value: |
|
|
53
|
-
{
|
|
54
|
-
"versions": [
|
|
55
|
-
{
|
|
56
|
-
"status": "CURRENT",
|
|
57
|
-
"updated": "2011-01-21T11:33:21Z",
|
|
58
|
-
"id": "v2.0",
|
|
59
|
-
"links": [
|
|
60
|
-
{
|
|
61
|
-
"href": "http://127.0.0.1:8774/v2/",
|
|
62
|
-
"rel": "self"
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"status": "EXPERIMENTAL",
|
|
68
|
-
"updated": "2013-07-23T11:33:21Z",
|
|
69
|
-
"id": "v3.0",
|
|
70
|
-
"links": [
|
|
71
|
-
{
|
|
72
|
-
"href": "http://127.0.0.1:8774/v3/",
|
|
73
|
-
"rel": "self"
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
/v2:
|
|
80
|
-
get:
|
|
81
|
-
operationId: getVersionDetailsv2
|
|
82
|
-
summary: Show API version details
|
|
83
|
-
responses:
|
|
84
|
-
'200':
|
|
85
|
-
description: |-
|
|
86
|
-
200 response
|
|
87
|
-
content:
|
|
88
|
-
application/json:
|
|
89
|
-
examples:
|
|
90
|
-
foo:
|
|
91
|
-
value:
|
|
92
|
-
{
|
|
93
|
-
"version": {
|
|
94
|
-
"status": "CURRENT",
|
|
95
|
-
"updated": "2011-01-21T11:33:21Z",
|
|
96
|
-
"media-types": [
|
|
97
|
-
{
|
|
98
|
-
"base": "application/xml",
|
|
99
|
-
"type": "application/vnd.openstack.compute+xml;version=2"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"base": "application/json",
|
|
103
|
-
"type": "application/vnd.openstack.compute+json;version=2"
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
"id": "v2.0",
|
|
107
|
-
"links": [
|
|
108
|
-
{
|
|
109
|
-
"href": "http://127.0.0.1:8774/v2/",
|
|
110
|
-
"rel": "self"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"href": "http://docs.openstack.org/api/openstack-compute/2/os-compute-devguide-2.pdf",
|
|
114
|
-
"type": "application/pdf",
|
|
115
|
-
"rel": "describedby"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"href": "http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl",
|
|
119
|
-
"type": "application/vnd.sun.wadl+xml",
|
|
120
|
-
"rel": "describedby"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"href": "http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl",
|
|
124
|
-
"type": "application/vnd.sun.wadl+xml",
|
|
125
|
-
"rel": "describedby"
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
'203':
|
|
131
|
-
description: |-
|
|
132
|
-
203 response
|
|
133
|
-
content:
|
|
134
|
-
application/json:
|
|
135
|
-
examples:
|
|
136
|
-
foo:
|
|
137
|
-
value:
|
|
138
|
-
{
|
|
139
|
-
"version": {
|
|
140
|
-
"status": "CURRENT",
|
|
141
|
-
"updated": "2011-01-21T11:33:21Z",
|
|
142
|
-
"media-types": [
|
|
143
|
-
{
|
|
144
|
-
"base": "application/xml",
|
|
145
|
-
"type": "application/vnd.openstack.compute+xml;version=2"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"base": "application/json",
|
|
149
|
-
"type": "application/vnd.openstack.compute+json;version=2"
|
|
150
|
-
}
|
|
151
|
-
],
|
|
152
|
-
"id": "v2.0",
|
|
153
|
-
"links": [
|
|
154
|
-
{
|
|
155
|
-
"href": "http://23.253.228.211:8774/v2/",
|
|
156
|
-
"rel": "self"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"href": "http://docs.openstack.org/api/openstack-compute/2/os-compute-devguide-2.pdf",
|
|
160
|
-
"type": "application/pdf",
|
|
161
|
-
"rel": "describedby"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"href": "http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl",
|
|
165
|
-
"type": "application/vnd.sun.wadl+xml",
|
|
166
|
-
"rel": "describedby"
|
|
167
|
-
}
|
|
168
|
-
]
|
|
169
|
-
}
|
|
170
|
-
}
|
/package/templates/default/{services → domains/Orders/services}/InventoryService/changelog.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/templates/default/{flows/Payment → domains/Payment/flows}/PaymentProcessed/index.md
RENAMED
|
File without changes
|
|
File without changes
|