CoachCreatedEvent
v1

Admin

Details

Example event payload

1{
2	"id": 6146903,
3	"createdAt": "2023-07-11T03:58:51.519Z",
4	"updatedAt": "2023-07-11T03:58:51.541Z",
5	"eventName": "CoachCreatedEvent",
6	"keyId": "93d528b1-13c3-491c-9ec0-1fb0b24026d9",
7	"eventData": {
8		"name": "CoachCreatedEvent",
9		"type": "event",
10		"coach": {
11			"id": "54f18ed9-8f07-4a7a-8571-a48990c98df4",
12			"user": {
13				"id": "312b5f93-410a-4734-b54b-1d84af5a9b54"
14			},
15			"userId": "312b5f93-410a-4734-b54b-1d84af5a9b54",
16			"createdAt": "2023-07-11T07:58:51.494Z",
17			"deletedAt": null,
18			"updatedAt": "2023-07-11T07:58:51.494Z",
19			"junoCoachId": null
20		},
21		"keyId": "93d528b1-13c3-491c-9ec0-1fb0b24026d9",
22		"version": 1
23	},
24	"status": "ACKNOWLEDGED",
25	"publisherNodeId": "phoenix-production-788774c7f-9dccm",
26	"processorNodeId": "phoenix-production-788774c7f-ptzwj",
27	"version": 1,
28	"userId": "312b5f93-410a-4734-b54b-1d84af5a9b54",
29	"talentId": null
30}

CoachCreatedEvent payload

CoachCreatedEvent Schema (json)
{
  "$id": "CoachCreatedEventPayloadTSchema",
  "type": "object",
  "properties": {
    "coach": {
      "$id": "CoachEntity",
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "user": {},
        "userId": { "type": "string" },
        "talentCoachs": {
          "anyOf": [{ "type": "array", "items": {} }, { "type": "null" }]
        },
        "talentCoachIds": {
          "anyOf": [
            { "type": "array", "items": { "type": "string" } },
            { "type": "null" }
          ]
        },
        "junoCoachid": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "createdAt": { "format": "datetime", "type": "string" },
        "updatedAt": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        },
        "deletedAt": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        }
      },
      "required": ["id", "user", "userId", "createdAt"]
    }
  },
  "required": ["coach"]
}


Edit this pageLast updated on 2024/8/5