Initial commit
This commit is contained in:
62
skills/skill-adapter/assets/example_events.json
Normal file
62
skills/skill-adapter/assets/example_events.json
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"_comment": "Example events for testing the API event emitter plugin",
|
||||
"user_created": {
|
||||
"_comment": "Event emitted when a new user is created",
|
||||
"event_type": "user.created",
|
||||
"data": {
|
||||
"user_id": "user123",
|
||||
"username": "johndoe",
|
||||
"email": "john.doe@example.com",
|
||||
"created_at": "2024-10-27T10:00:00Z"
|
||||
}
|
||||
},
|
||||
"product_added": {
|
||||
"_comment": "Event emitted when a new product is added to the catalog",
|
||||
"event_type": "product.added",
|
||||
"data": {
|
||||
"product_id": "prod456",
|
||||
"product_name": "Awesome Widget",
|
||||
"description": "A fantastic widget for all your needs",
|
||||
"price": 19.99,
|
||||
"created_at": "2024-10-27T10:05:00Z"
|
||||
}
|
||||
},
|
||||
"order_placed": {
|
||||
"_comment": "Event emitted when a user places an order",
|
||||
"event_type": "order.placed",
|
||||
"data": {
|
||||
"order_id": "order789",
|
||||
"user_id": "user123",
|
||||
"order_date": "2024-10-27T10:10:00Z",
|
||||
"total_amount": 39.98,
|
||||
"items": [
|
||||
{
|
||||
"product_id": "prod456",
|
||||
"quantity": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"payment_processed": {
|
||||
"_comment": "Event emitted when a payment is successfully processed",
|
||||
"event_type": "payment.processed",
|
||||
"data": {
|
||||
"payment_id": "payment012",
|
||||
"order_id": "order789",
|
||||
"amount": 39.98,
|
||||
"payment_date": "2024-10-27T10:15:00Z",
|
||||
"payment_method": "credit_card",
|
||||
"status": "success"
|
||||
}
|
||||
},
|
||||
"user_updated": {
|
||||
"_comment": "Event emitted when a user's profile is updated",
|
||||
"event_type": "user.updated",
|
||||
"data": {
|
||||
"user_id": "user123",
|
||||
"username": "john.doe.updated",
|
||||
"email": "john.doe.updated@example.com",
|
||||
"updated_at": "2024-10-27T10:20:00Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user