TalentBlockUnlockedEvent
v2

Phoenix parcours B2C course

Details

Example event payload

1{
2  "id": 6098395,
3  "createdAt": "2023-07-09T14:59:53.072Z",
4  "updatedAt": "2023-07-09T14:59:53.085Z",
5  "eventName": "TalentBlockUnlockedEvent",
6  "keyId": "01eb2a3a-9565-4e49-8265-436f76d03ab4",
7  "eventData": {
8    "name": "TalentBlockUnlockedEvent",
9    "type": "event",
10    "keyId": "01eb2a3a-9565-4e49-8265-436f76d03ab4",
11    "version": 2,
12    "payload": {
13      "user": {
14        "id": "c8c7f85c6499-5269-46d8-9b8d-9c40bc21"
15      },
16      "talent": {
17        "id": "9c40bc21-5269-46d8-9b8d-c8c7f85c6499"
18      },
19      "talentBlock": {
20        "id": "eb7ef94b-9da8-4650-a9c0-0682101dc703",
21        "order": 1,
22        "status": "NOT_STARTED",
23        "blockId": "5c9c487f-bdd9-4f3a-8549-a26a8a486c4f",
24        "talentId": "9c40bc21-5269-46d8-9b8d-c8c7f85c6499",
25        "programId": "dceea9b7-5740-4f33-b080-a54c27223107",
26        "talentPhaseId": "dd28e0a9-8729-4347-962b-3a6c376898af",
27        "talentActivityIds": []
28      }
29    }
30  },
31  "status": "ACKNOWLEDGED",
32  "publisherNodeId": "phoenix-production-788774c7f-jz25k",
33  "processorNodeId": "phoenix-production-788774c7f-8xmfs",
34  "version": 2,
35  "userId": "c8c7f85c6499-5269-46d8-9b8d-9c40bc21",
36  "talentId": "9c40bc21-5269-46d8-9b8d-c8c7f85c6499"
37}
38

TalentBlockUnlockedEvent payload

TalentBlockUnlockedEvent Schema (json)
{
  "$id": "TalentBlockUnlockedEventPayloadTSchema",
  "type": "object",
  "properties": {
    "user": {
      "type": "object",
      "properties": { "id": { "type": "string" } },
      "required": ["id"]
    },
    "talent": {
      "type": "object",
      "properties": { "id": { "type": "string" } },
      "required": ["id"]
    },
    "talentBlock": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "talentId": { "type": "string" },
        "blockId": { "type": "string" },
        "programId": { "type": "string" },
        "talentActivityIds": { "type": "array", "items": { "type": "string" } },
        "order": { "type": "number" },
        "status": {
          "default": "IN_PROGRESS",
          "anyOf": [
            { "const": "IN_PROGRESS", "type": "string" },
            { "const": "FINISHED", "type": "string" },
            { "const": "NOT_STARTED", "type": "string" },
            { "const": "LOCKED", "type": "string" }
          ]
        },
        "talentPhaseId": { "type": "string" }
      },
      "required": [
        "id",
        "talentId",
        "blockId",
        "programId",
        "talentActivityIds",
        "order",
        "status",
        "talentPhaseId"
      ]
    }
  },
  "required": ["user", "talent", "talentBlock"]
}


Edit this pageLast updated on 2024/8/5