@eventcatalog/create-eventcatalog 2.2.4 → 2.2.6
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/asyncapi/eventcatalog.config.js +7 -0
- package/templates/default/domains/Orders/index.md +1 -3
- package/templates/default/domains/Orders/services/ShippingService/commands/CancelShipment/index.md +23 -0
- package/templates/default/domains/Orders/services/ShippingService/commands/CancelShipment/schema.json +13 -0
- package/templates/default/domains/Orders/services/ShippingService/commands/CreateReturnLabel/index.md +22 -0
- package/templates/default/domains/Orders/services/ShippingService/commands/CreateReturnLabel/schema.json +19 -0
- package/templates/default/domains/Orders/services/ShippingService/commands/CreateShipment/index.md +22 -0
- package/templates/default/domains/Orders/services/ShippingService/commands/CreateShipment/schema.json +62 -0
- package/templates/default/domains/Orders/services/ShippingService/commands/UpdateShipmentStatus/index.md +22 -0
- package/templates/default/domains/Orders/services/ShippingService/commands/UpdateShipmentStatus/schema.json +29 -0
- package/templates/default/domains/Orders/services/ShippingService/events/DeliveryFailed/index.md +22 -0
- package/templates/default/domains/Orders/services/ShippingService/events/DeliveryFailed/schema.json +17 -0
- package/templates/default/domains/Orders/services/ShippingService/events/ReturnInitiated/index.md +22 -0
- package/templates/default/domains/Orders/services/ShippingService/events/ReturnInitiated/schema.json +17 -0
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentCreated/index.md +22 -0
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentCreated/schema.json +65 -0
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentDelivered/index.md +22 -0
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentDelivered/schema.json +17 -0
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentDispatched/index.md +22 -0
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentDispatched/schema.json +17 -0
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentInTransit/index.md +22 -0
- package/templates/default/domains/Orders/services/ShippingService/events/ShipmentInTransit/schema.json +17 -0
- package/templates/default/domains/Orders/services/ShippingService/index.md +49 -0
- package/templates/default/eventcatalog.config.js +7 -0
- package/templates/empty/eventcatalog.config.js +7 -0
- package/templates/openapi/eventcatalog.config.js +7 -0
package/dist/index.js
CHANGED
|
@@ -22466,7 +22466,7 @@ var import_os2 = __toESM(require("os"));
|
|
|
22466
22466
|
var package_default = {
|
|
22467
22467
|
name: "@eventcatalog/create-eventcatalog",
|
|
22468
22468
|
description: "Create EventCatalog with one command",
|
|
22469
|
-
version: "2.2.
|
|
22469
|
+
version: "2.2.6",
|
|
22470
22470
|
bin: {
|
|
22471
22471
|
"create-catalog": "./dist/index.js"
|
|
22472
22472
|
},
|
package/package.json
CHANGED
|
@@ -50,6 +50,13 @@ export default {
|
|
|
50
50
|
},
|
|
51
51
|
],
|
|
52
52
|
],
|
|
53
|
+
docs: {
|
|
54
|
+
sidebar: {
|
|
55
|
+
// TREE_VIEW will render the DOCS as a tree view and map your file system folder structure
|
|
56
|
+
// FLAT_VIEW will render the DOCS as a flat list (no nested folders)
|
|
57
|
+
type: 'TREE_VIEW'
|
|
58
|
+
},
|
|
59
|
+
},
|
|
53
60
|
// Enable RSS feed for your eventcatalog
|
|
54
61
|
rss: {
|
|
55
62
|
enabled: true,
|
package/templates/default/domains/Orders/services/ShippingService/commands/CancelShipment/index.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: CancelShipment
|
|
3
|
+
name: Cancel shipment
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
summary: |
|
|
6
|
+
POST request that will cancel a shipment, identified by its shipmentId.
|
|
7
|
+
owners:
|
|
8
|
+
- dboyne
|
|
9
|
+
schemaPath: schema.json
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
import Footer from '@catalog/components/footer.astro';
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
The `CancelShipment` message is a command used to cancel a shipment, identified by its `shipmentId`. It provides information such as the shipment status (e.g., pending, completed, shipped), the items within the shipment, billing and shipping details, payment information, and the order's total amount. This query is commonly used by systems managing order processing, customer service, or order tracking functionalities.
|
|
17
|
+
|
|
18
|
+
This command can be applied in e-commerce systems, marketplaces, or any platform where users and systems need real-time shipment data for tracking, auditing, or managing customer purchases.
|
|
19
|
+
|
|
20
|
+
<SchemaViewer file="schema.json" title="Schema" maxHeight="500" />
|
|
21
|
+
|
|
22
|
+
<NodeGraph />
|
|
23
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "CancelShipment",
|
|
5
|
+
"description": "Schema for cancelling a shipment",
|
|
6
|
+
"properties": {
|
|
7
|
+
"shipmentId": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Unique identifier for the shipment"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["shipmentId"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: CreateReturnLabel
|
|
3
|
+
name: Create return label
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
summary: |
|
|
6
|
+
POST request that will create a return label for a specific shipment, identified by its shipmentId.
|
|
7
|
+
owners:
|
|
8
|
+
- dboyne
|
|
9
|
+
schemaPath: schema.json
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
import Footer from '@catalog/components/footer.astro';
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
The `CreateReturnLabel` message is a command used to create a return label for a specific shipment, identified by its `shipmentId`. It provides information such as the shipment status (e.g., pending, completed, shipped), the items within the shipment, billing and shipping details, payment information, and the order's total amount. This query is commonly used by systems managing order processing, customer service, or order tracking functionalities.
|
|
17
|
+
|
|
18
|
+
This command can be applied in e-commerce systems, marketplaces, or any platform where users and systems need real-time shipment data for tracking, auditing, or managing customer purchases.
|
|
19
|
+
|
|
20
|
+
<NodeGraph />
|
|
21
|
+
|
|
22
|
+
<SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "CreateReturnLabel",
|
|
5
|
+
"description": "Schema for creating a return shipping label",
|
|
6
|
+
"properties": {
|
|
7
|
+
"CreateReturnLabel": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"shipmentId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Unique identifier for the shipment"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": ["shipmentId"]
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": ["CreateReturnLabel"]
|
|
19
|
+
}
|
package/templates/default/domains/Orders/services/ShippingService/commands/CreateShipment/index.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: CreateShipment
|
|
3
|
+
name: Create shipment
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
summary: |
|
|
6
|
+
POST request that will create a shipment for a specific order, identified by its orderId.
|
|
7
|
+
owners:
|
|
8
|
+
- dboyne
|
|
9
|
+
schemaPath: schema.json
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
import Footer from '@catalog/components/footer.astro';
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
The `CreateShipment` message is a command used to create a shipment for a specific order, identified by its `orderId`. It provides information such as the order status (e.g., pending, completed, shipped), the items within the order, billing and shipping details, payment information, and the order's total amount. This query is commonly used by systems managing order processing, customer service, or order tracking functionalities.
|
|
17
|
+
|
|
18
|
+
This command can be applied in e-commerce systems, marketplaces, or any platform where users and systems need real-time order data for tracking, auditing, or managing customer purchases.
|
|
19
|
+
|
|
20
|
+
<NodeGraph />
|
|
21
|
+
|
|
22
|
+
<SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"shipmentId": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Unique identifier for the shipment"
|
|
8
|
+
},
|
|
9
|
+
"orderId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Identifier for the associated order"
|
|
12
|
+
},
|
|
13
|
+
"address": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"street": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Street address for the shipment"
|
|
19
|
+
},
|
|
20
|
+
"city": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "City for the shipment"
|
|
23
|
+
},
|
|
24
|
+
"state": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "State for the shipment"
|
|
27
|
+
},
|
|
28
|
+
"postalCode": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Postal code for the shipment"
|
|
31
|
+
},
|
|
32
|
+
"country": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Country for the shipment"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": ["street", "city", "state", "postalCode", "country"]
|
|
38
|
+
},
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"itemId": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Identifier for the item"
|
|
47
|
+
},
|
|
48
|
+
"quantity": {
|
|
49
|
+
"type": "integer",
|
|
50
|
+
"description": "Quantity of the item"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": ["itemId", "quantity"]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"shippingMethod": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"description": "Method of shipping (e.g., standard, express)"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": ["shipmentId", "orderId", "address", "items", "shippingMethod"]
|
|
62
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: UpdateShipmentStatus
|
|
3
|
+
name: Update shipment status
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
summary: |
|
|
6
|
+
POST request that will update the status of a shipment, identified by its shipmentId.
|
|
7
|
+
owners:
|
|
8
|
+
- dboyne
|
|
9
|
+
schemaPath: schema.json
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
import Footer from '@catalog/components/footer.astro';
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
The `UpdateShipmentStatus` message is a command used to update the status of a shipment, identified by its `shipmentId`. It provides information such as the shipment status (e.g., pending, completed, shipped), the items within the shipment, billing and shipping details, payment information, and the order's total amount. This query is commonly used by systems managing order processing, customer service, or order tracking functionalities.
|
|
17
|
+
|
|
18
|
+
This command can be applied in e-commerce systems, marketplaces, or any platform where users and systems need real-time shipment data for tracking, auditing, or managing customer purchases.
|
|
19
|
+
|
|
20
|
+
<NodeGraph />
|
|
21
|
+
|
|
22
|
+
<SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "UpdateShipmentStatus",
|
|
5
|
+
"description": "Schema for updating a shipment's status",
|
|
6
|
+
"properties": {
|
|
7
|
+
"UpdateShipmentStatus": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"shipmentId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Unique identifier for the shipment"
|
|
13
|
+
},
|
|
14
|
+
"status": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"enum": ["pending", "shipped", "delivered", "returned"],
|
|
17
|
+
"description": "Current status of the shipment"
|
|
18
|
+
},
|
|
19
|
+
"updatedAt": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"format": "date-time",
|
|
22
|
+
"description": "Timestamp when the status was last updated"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": ["shipmentId", "status"]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": ["UpdateShipmentStatus"]
|
|
29
|
+
}
|
package/templates/default/domains/Orders/services/ShippingService/events/DeliveryFailed/index.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: DeliveryFailed
|
|
3
|
+
name: Delivery failed
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
summary: |
|
|
6
|
+
Event that is emitted when a shipment delivery fails.
|
|
7
|
+
owners:
|
|
8
|
+
- dboyne
|
|
9
|
+
schemaPath: schema.json
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
import Footer from '@catalog/components/footer.astro';
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
The `DeliveryFailed` event is emitted when a shipment delivery fails. It provides information such as the shipment status (e.g., pending, completed, shipped), the items within the shipment, billing and shipping details, payment information, and the order's total amount. This query is commonly used by systems managing order processing, customer service, or order tracking functionalities.
|
|
17
|
+
|
|
18
|
+
This event can be applied in e-commerce systems, marketplaces, or any platform where users and systems need real-time shipment data for tracking, auditing, or managing customer purchases.
|
|
19
|
+
|
|
20
|
+
<NodeGraph />
|
|
21
|
+
|
|
22
|
+
<SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
|
package/templates/default/domains/Orders/services/ShippingService/events/DeliveryFailed/schema.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "DeliveryFailed",
|
|
5
|
+
"description": "Schema for delivery failed event",
|
|
6
|
+
"properties": {
|
|
7
|
+
"shipmentId": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Unique identifier for the shipment"
|
|
10
|
+
},
|
|
11
|
+
"orderId": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Identifier for the associated order"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["shipmentId", "orderId"]
|
|
17
|
+
}
|
package/templates/default/domains/Orders/services/ShippingService/events/ReturnInitiated/index.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ReturnInitiated
|
|
3
|
+
name: Return initiated
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
summary: |
|
|
6
|
+
Event that is emitted when a return is initiated.
|
|
7
|
+
owners:
|
|
8
|
+
- dboyne
|
|
9
|
+
schemaPath: schema.json
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
import Footer from '@catalog/components/footer.astro';
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
The `ReturnInitiated` event is emitted when a return is initiated. It provides information such as the shipment status (e.g., pending, completed, shipped), the items within the shipment, billing and shipping details, payment information, and the order's total amount. This query is commonly used by systems managing order processing, customer service, or order tracking functionalities.
|
|
17
|
+
|
|
18
|
+
This event can be applied in e-commerce systems, marketplaces, or any platform where users and systems need real-time return data for tracking, auditing, or managing customer purchases.
|
|
19
|
+
|
|
20
|
+
<NodeGraph />
|
|
21
|
+
|
|
22
|
+
<SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
|
package/templates/default/domains/Orders/services/ShippingService/events/ReturnInitiated/schema.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "ReturnInitiated",
|
|
5
|
+
"description": "Schema for return initiated event",
|
|
6
|
+
"properties": {
|
|
7
|
+
"shipmentId": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Unique identifier for the shipment"
|
|
10
|
+
},
|
|
11
|
+
"orderId": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Identifier for the associated order"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["shipmentId", "orderId"]
|
|
17
|
+
}
|
package/templates/default/domains/Orders/services/ShippingService/events/ShipmentCreated/index.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ShipmentCreated
|
|
3
|
+
name: Shipment created
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
summary: |
|
|
6
|
+
Event that is emitted when a shipment is created.
|
|
7
|
+
owners:
|
|
8
|
+
- dboyne
|
|
9
|
+
schemaPath: schema.json
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
import Footer from '@catalog/components/footer.astro';
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
The `ShipmentCreated` event is emitted when a shipment is created. It provides information such as the shipment status (e.g., pending, completed, shipped), the items within the shipment, billing and shipping details, payment information, and the order's total amount. This query is commonly used by systems managing order processing, customer service, or order tracking functionalities.
|
|
17
|
+
|
|
18
|
+
This event can be applied in e-commerce systems, marketplaces, or any platform where users and systems need real-time shipment data for tracking, auditing, or managing customer purchases.
|
|
19
|
+
|
|
20
|
+
<NodeGraph />
|
|
21
|
+
|
|
22
|
+
<SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
|
package/templates/default/domains/Orders/services/ShippingService/events/ShipmentCreated/schema.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "ShipmentCreated",
|
|
5
|
+
"description": "Schema for shipment created event",
|
|
6
|
+
"properties": {
|
|
7
|
+
"shipmentId": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Unique identifier for the shipment"
|
|
10
|
+
},
|
|
11
|
+
"orderId": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Identifier for the associated order"
|
|
14
|
+
},
|
|
15
|
+
"address": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"street": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Street address for the shipment"
|
|
21
|
+
},
|
|
22
|
+
"city": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "City for the shipment"
|
|
25
|
+
},
|
|
26
|
+
"state": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "State for the shipment"
|
|
29
|
+
},
|
|
30
|
+
"postalCode": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Postal code for the shipment"
|
|
33
|
+
},
|
|
34
|
+
"country": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Country for the shipment"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": ["street", "city", "state", "postalCode", "country"]
|
|
40
|
+
},
|
|
41
|
+
"items": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"itemId": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "Identifier for the item"
|
|
49
|
+
},
|
|
50
|
+
"quantity": {
|
|
51
|
+
"type": "integer",
|
|
52
|
+
"description": "Quantity of the item"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": ["itemId", "quantity"]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"shippingMethod": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "Method of shipping (e.g., standard, express)"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": ["shipmentId", "orderId", "address", "items", "shippingMethod"]
|
|
64
|
+
}
|
|
65
|
+
|
package/templates/default/domains/Orders/services/ShippingService/events/ShipmentDelivered/index.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ShipmentDelivered
|
|
3
|
+
name: Shipment delivered
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
summary: |
|
|
6
|
+
Event that is emitted when a shipment is delivered.
|
|
7
|
+
owners:
|
|
8
|
+
- dboyne
|
|
9
|
+
schemaPath: schema.json
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
import Footer from '@catalog/components/footer.astro';
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
The `ShipmentDelivered` event is emitted when a shipment is delivered. It provides information such as the shipment status (e.g., pending, completed, shipped), the items within the shipment, billing and shipping details, payment information, and the order's total amount. This query is commonly used by systems managing order processing, customer service, or order tracking functionalities.
|
|
17
|
+
|
|
18
|
+
This event can be applied in e-commerce systems, marketplaces, or any platform where users and systems need real-time shipment data for tracking, auditing, or managing customer purchases.
|
|
19
|
+
|
|
20
|
+
<NodeGraph />
|
|
21
|
+
|
|
22
|
+
<SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "ShipmentDelivered",
|
|
5
|
+
"description": "Schema for shipment delivered event",
|
|
6
|
+
"properties": {
|
|
7
|
+
"shipmentId": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Unique identifier for the shipment"
|
|
10
|
+
},
|
|
11
|
+
"orderId": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Identifier for the associated order"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["shipmentId", "orderId"]
|
|
17
|
+
}
|
package/templates/default/domains/Orders/services/ShippingService/events/ShipmentDispatched/index.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ShipmentDispatched
|
|
3
|
+
name: Shipment dispatched
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
summary: |
|
|
6
|
+
Event that is emitted when a shipment is dispatched.
|
|
7
|
+
owners:
|
|
8
|
+
- dboyne
|
|
9
|
+
schemaPath: schema.json
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
import Footer from '@catalog/components/footer.astro';
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
The `ShipmentDispatched` event is emitted when a shipment is dispatched. It provides information such as the shipment status (e.g., pending, completed, shipped), the items within the shipment, billing and shipping details, payment information, and the order's total amount. This query is commonly used by systems managing order processing, customer service, or order tracking functionalities.
|
|
17
|
+
|
|
18
|
+
This event can be applied in e-commerce systems, marketplaces, or any platform where users and systems need real-time shipment data for tracking, auditing, or managing customer purchases.
|
|
19
|
+
|
|
20
|
+
<NodeGraph />
|
|
21
|
+
|
|
22
|
+
<SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "ShipmentDispatched",
|
|
5
|
+
"description": "Schema for shipment dispatched event",
|
|
6
|
+
"properties": {
|
|
7
|
+
"shipmentId": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Unique identifier for the shipment"
|
|
10
|
+
},
|
|
11
|
+
"orderId": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Identifier for the associated order"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["shipmentId", "orderId"]
|
|
17
|
+
}
|
package/templates/default/domains/Orders/services/ShippingService/events/ShipmentInTransit/index.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ShipmentInTransit
|
|
3
|
+
name: Shipment in transit
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
summary: |
|
|
6
|
+
Event that is emitted when a shipment is in transit.
|
|
7
|
+
owners:
|
|
8
|
+
- dboyne
|
|
9
|
+
schemaPath: schema.json
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
import Footer from '@catalog/components/footer.astro';
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
The `ShipmentInTransit` event is emitted when a shipment is in transit. It provides information such as the shipment status (e.g., pending, completed, shipped), the items within the shipment, billing and shipping details, payment information, and the order's total amount. This query is commonly used by systems managing order processing, customer service, or order tracking functionalities.
|
|
17
|
+
|
|
18
|
+
This event can be applied in e-commerce systems, marketplaces, or any platform where users and systems need real-time shipment data for tracking, auditing, or managing customer purchases.
|
|
19
|
+
|
|
20
|
+
<NodeGraph />
|
|
21
|
+
|
|
22
|
+
<SchemaViewer file="schema.json" title="JSON Schema" maxHeight="500" />
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "ShipmentInTransit",
|
|
5
|
+
"description": "Schema for shipment in transit event",
|
|
6
|
+
"properties": {
|
|
7
|
+
"shipmentId": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Unique identifier for the shipment"
|
|
10
|
+
},
|
|
11
|
+
"orderId": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Identifier for the associated order"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["shipmentId", "orderId"]
|
|
17
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ShippingService
|
|
3
|
+
version: 0.0.1
|
|
4
|
+
name: Shipping Service
|
|
5
|
+
summary: |
|
|
6
|
+
Service that handles shipping
|
|
7
|
+
owners:
|
|
8
|
+
- dboyne
|
|
9
|
+
receives:
|
|
10
|
+
- id: CancelShipment
|
|
11
|
+
- id: CreateReturnLabel
|
|
12
|
+
- id: CreateShipment
|
|
13
|
+
- id: UpdateShipmentStatus
|
|
14
|
+
- id: PaymentProcessed
|
|
15
|
+
sends:
|
|
16
|
+
- id: ShipmentCreated
|
|
17
|
+
- id: ReturnInitiated
|
|
18
|
+
- id: ShipmentDispatched
|
|
19
|
+
- id: ShipmentInTransit
|
|
20
|
+
- id: ShipmentDelivered
|
|
21
|
+
- id: DeliveryFailed
|
|
22
|
+
repository:
|
|
23
|
+
language: JavaScript
|
|
24
|
+
url: https://github.com/event-catalog/pretend-shipping-service
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
import Footer from '@catalog/components/footer.astro';
|
|
28
|
+
|
|
29
|
+
## Overview
|
|
30
|
+
|
|
31
|
+
The Shipping Service is responsible for managing shipping within the system. It handles order creation, updating, status tracking, and interactions with other services such as Inventory, Payment, and Notification services to ensure smooth order processing and fulfillment.
|
|
32
|
+
|
|
33
|
+
<Tiles >
|
|
34
|
+
<Tile icon="BoltIcon" href={`/visualiser/services/${frontmatter.id}/${frontmatter.version}`} title={`Sends ${frontmatter.sends.length} messages`} description="This service sends messages to downstream consumers" />
|
|
35
|
+
<Tile icon="BoltIcon" href={`/visualiser/services/${frontmatter.id}/${frontmatter.version}`} title={`Receives ${frontmatter.receives.length} messages`} description="This service receives messages from other services" />
|
|
36
|
+
</Tiles>
|
|
37
|
+
|
|
38
|
+
### Core features
|
|
39
|
+
|
|
40
|
+
The Shipping Service is responsible for managing shipping within the system. It handles order creation, updating, status tracking, and interactions with other services such as Inventory, Payment, and Notification services to ensure smooth order processing and fulfillment.
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Architecture diagram
|
|
44
|
+
|
|
45
|
+
<NodeGraph />
|
|
46
|
+
|
|
47
|
+
<MessageTable format="all" limit={4} />
|
|
48
|
+
|
|
49
|
+
<Footer />
|
|
@@ -16,6 +16,13 @@ export default {
|
|
|
16
16
|
src: '/logo.png',
|
|
17
17
|
text: 'EventCatalog'
|
|
18
18
|
},
|
|
19
|
+
docs: {
|
|
20
|
+
sidebar: {
|
|
21
|
+
// TREE_VIEW will render the DOCS as a tree view and map your file system folder structure
|
|
22
|
+
// FLAT_VIEW will render the DOCS as a flat list (no nested folders)
|
|
23
|
+
type: 'TREE_VIEW'
|
|
24
|
+
},
|
|
25
|
+
},
|
|
19
26
|
// Enable RSS feed for your eventcatalog
|
|
20
27
|
rss: {
|
|
21
28
|
enabled: true,
|
|
@@ -22,6 +22,13 @@ export default {
|
|
|
22
22
|
// number of items to include in the feed per resource (event, service, etc)
|
|
23
23
|
limit: 20
|
|
24
24
|
},
|
|
25
|
+
docs: {
|
|
26
|
+
sidebar: {
|
|
27
|
+
// TREE_VIEW will render the DOCS as a tree view and map your file system folder structure
|
|
28
|
+
// FLAT_VIEW will render the DOCS as a flat list (no nested folders)
|
|
29
|
+
type: 'TREE_VIEW'
|
|
30
|
+
},
|
|
31
|
+
},
|
|
25
32
|
// required random generated id used by eventcatalog
|
|
26
33
|
cId: '<cId>'
|
|
27
34
|
}
|
|
@@ -55,6 +55,13 @@ export default {
|
|
|
55
55
|
},
|
|
56
56
|
],
|
|
57
57
|
],
|
|
58
|
+
docs: {
|
|
59
|
+
sidebar: {
|
|
60
|
+
// TREE_VIEW will render the DOCS as a tree view and map your file system folder structure
|
|
61
|
+
// FLAT_VIEW will render the DOCS as a flat list (no nested folders)
|
|
62
|
+
type: 'TREE_VIEW'
|
|
63
|
+
},
|
|
64
|
+
},
|
|
58
65
|
// Enable RSS feed for your eventcatalog
|
|
59
66
|
rss: {
|
|
60
67
|
enabled: true,
|