CoachSummaryNoteUpdatedEvent
v2

Phoenix parcours B2C course

Details

Example event payload

1{
2  "id": 6110540,
3  "createdAt": "2023-07-10T04:56:26.918Z",
4  "updatedAt": "2023-07-10T04:56:26.936Z",
5  "eventName": "CoachSummaryNoteUpdatedEvent",
6  "keyId": "36870a51-b26a-4dce-92c8-b8cab2c44e4d",
7  "eventData": {
8    "name": "CoachSummaryNoteUpdatedEvent",
9    "type": "event",
10    "keyId": "36870a51-b26a-4dce-92c8-b8cab2c44e4d",
11    "version": 2,
12    "payload": {
13      "synthesis": {
14        "id": "ed533c85-8739-4427-8cfe-287f46595d0f",
15        "summaryNote": "blabla",
16        "summaryNoteStatus": "QUALIFIED_DRAFT"
17      },
18      "userTalent": {
19        "id": "7b761ed3-4ec9-4ea0-bd1e-bda792167a08"
20      },
21      "talent": {
22        "id": "f6b4c642-e84b-4138-8e55-c09b9ed660ca"
23      },
24      "coach": {
25        "id": "08e12624-45f1-42f9-a300-ca5189574768"
26      },
27      "usercoach": {
28        "id": "08e12624-45f1-42f9-a300-ca5189574768"
29      }
30    }
31  },
32  "status": "ACKNOWLEDGED",
33  "publisherNodeId": "phoenix-production-788774c7f-8xmfs",
34  "processorNodeId": "phoenix-production-788774c7f-ptzwj",
35  "version": 2,
36  "userId": "7b761ed3-4ec9-4ea0-bd1e-bda792167a08",
37  "talentId": "f6b4c642-e84b-4138-8e55-c09b9ed660ca"
38}
39

CoachSummaryNoteUpdatedEvent payload

CoachSummaryNoteUpdatedEvent Schema (json)
{
  "$id": "CoachSummaryNoteUpdatedEventPayloadTSchema",
  "type": "object",
  "properties": {
    "userTalent": {
      "type": "object",
      "properties": { "id": { "type": "string" } },
      "required": ["id"]
    },
    "talent": {
      "type": "object",
      "properties": { "id": { "type": "string" } },
      "required": ["id"]
    },
    "coach": {
      "type": "object",
      "properties": { "id": { "type": "string" } },
      "required": ["id"]
    },
    "userCoach": {
      "type": "object",
      "properties": { "id": { "type": "string" } },
      "required": ["id"]
    },
    "synthesis": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "summaryNote": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "summaryNoteStatus": {
          "default": "DRAFT",
          "anyOf": [
            { "const": "DRAFT", "type": "string" },
            { "const": "QUALIFIED_DRAFT", "type": "string" },
            { "const": "COMPLETED", "type": "string" }
          ]
        }
      },
      "required": ["id", "summaryNoteStatus"]
    }
  },
  "required": ["userTalent", "talent", "coach", "userCoach", "synthesis"]
}


Edit this pageLast updated on 2024/8/5