Content Management Events 0.0.1 documentation
Published Messages (contentManagement)
The service publishes one of these messages below.
contentManagementArticleCreated
Message is sent when article is created. Contains fields from and the following payload.
Example value
{
"payload": {
"articleCreated": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"title": "string",
"rawContent": "string",
"htmlContent": "string",
"slug": "string",
"status": "PUBLISHED",
"topicId": "string",
"metaTitle": "string",
"metaDescription": "string",
"namespace": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
},
"clientId": "string",
"name": "string",
"namespace": "string",
"version": 0,
"timestamp": "2019-08-24T14:15:22Z"
}
payload
Name | Type | Description |
---|---|---|
articleCreated | object | - |
payload.articleCreated
Name | Type | Description |
---|---|---|
id | string (uuid) | article id |
title | string | article title |
rawContent | string | article content in raw format |
htmlContent | string | article content in HTML format |
slug | string | article slug |
status | string | article published status |
topicId | string | article topic id |
metaTitle | string | article meta title |
metaDescription | string | article meta description |
namespace | string | namespace |
createdAt | string (date-time) | article creation date |
updatedAt | string (date-time) | article updated date |
contentManagementArticleUpdated
Message is sent when article is updated. Contains fields from and the following payload.
Example value
{
"payload": {
"articleUpdated": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"title": "string",
"rawContent": "string",
"htmlContent": "string",
"slug": "string",
"status": "PUBLISHED",
"topicId": "string",
"metaTitle": "string",
"metaDescription": "string",
"namespace": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
},
"clientId": "string",
"name": "string",
"namespace": "string",
"version": 0,
"timestamp": "2019-08-24T14:15:22Z"
}
payload
Name | Type | Description |
---|---|---|
articleUpdated | object | - |
payload.articleUpdated
Name | Type | Description |
---|---|---|
id | string (uuid) | article id |
title | string | article title |
rawContent | string | article content in raw format |
htmlContent | string | article content in HTML format |
slug | string | article slug |
status | string | article published status |
topicId | string | article topic id |
metaTitle | string | article meta title |
metaDescription | string | article meta description |
namespace | string | namespace |
createdAt | string (date-time) | article creation date |
updatedAt | string (date-time) | article updated date |
contentManagementArticleDeleted
Message is sent when article is deleted. Contains fields from and the following payload.
Example value
{
"payload": {
"articleDeleted": {
"id": "string",
"namespace": "string",
"title": "string",
"slug": "string"
}
},
"clientId": "string",
"name": "string",
"namespace": "string",
"version": 0,
"timestamp": "2019-08-24T14:15:22Z"
}
payload
Name | Type | Description |
---|---|---|
articleDeleted | object | - |
payload.articleDeleted
Name | Type | Description |
---|---|---|
id | string | article id |
namespace | string | namespace |
title | string | article title |
slug | string | article slug |
contentManagementTopicCreated
Message is sent when topic is created. Contains fields from and the following payload.
Example value
{
"payload": {
"topicCreated": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"slug": "string",
"status": "VISIBLE",
"icon": "string",
"displayOrder": 0,
"namespace": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
},
"clientId": "string",
"name": "string",
"namespace": "string",
"version": 0,
"timestamp": "2019-08-24T14:15:22Z"
}
payload
Name | Type | Description |
---|---|---|
topicCreated | object | - |
payload.topicCreated
Name | Type | Description |
---|---|---|
id | string (uuid) | topic id |
name | string | topic name |
slug | string | topic slug |
status | string | topic visibility status |
icon | string | topic icon |
displayOrder | integer | topic display order |
namespace | string | namespace |
createdAt | string (date-time) | topic creation date |
updatedAt | string (date-time) | topic updated date |
contentManagementTopicUpdated
Message is sent when topic is updated. Contains fields from and the following payload.
Example value
{
"payload": {
"topicUpdated": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"slug": "string",
"status": "VISIBLE",
"icon": "string",
"displayOrder": 0,
"namespace": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
},
"clientId": "string",
"name": "string",
"namespace": "string",
"version": 0,
"timestamp": "2019-08-24T14:15:22Z"
}
payload
Name | Type | Description |
---|---|---|
topicUpdated | object | - |
payload.topicUpdated
Name | Type | Description |
---|---|---|
id | string (uuid) | topic id |
name | string | topic name |
slug | string | topic slug |
status | string | topic visibility status |
icon | string | topic icon |
displayOrder | integer | topic display order |
namespace | string | namespace |
createdAt | string (date-time) | topic creation date |
updatedAt | string (date-time) | topic updated date |
contentManagementTopicDeleted
Message is sent when topic is deleted. Contains fields from and the following payload.
Example value
{
"payload": {
"topicDeleted": {
"id": "string",
"namespace": "string",
"name": "string",
"slug": "string"
}
},
"clientId": "string",
"name": "string",
"namespace": "string",
"version": 0,
"timestamp": "2019-08-24T14:15:22Z"
}
payload
Name | Type | Description |
---|---|---|
topicDeleted | object | - |
payload.topicDeleted
Name | Type | Description |
---|---|---|
id | string | topic id |
namespace | string | namespace |
name | string | topic name |
slug | string | topic slug |
contentManagementSupportEmailSent
Message is sent on support email sent event. Contains fields from and the following payload.
Example value
{
"payload": {
"supportEmailSent": {
"subject": "string",
"displayName": "string",
"fromPlayerEmail": "user@example.com",
"toAdminEmail": "user@example.com",
"templateIdAdmin": "string",
"templateIdPlayer": "string"
}
},
"clientId": "string",
"name": "string",
"namespace": "string",
"version": 0,
"timestamp": "2019-08-24T14:15:22Z"
}
payload
Name | Type | Description |
---|---|---|
supportEmailSent | object | - |
payload.supportEmailSent
Name | Type | Description |
---|---|---|
subject | string | email subject |
displayName | string | email display name |
fromPlayerEmail | string (email) | player email address |
toAdminEmail | string (email) | admin email address |
templateIdAdmin | string | admin template id |
templateIdPlayer | string | player template id |