TalentBlockSubmittedEvent
v2

Phoenix parcours B2C course

Details

Example event payload

1{
2  "id": 6096302,
3  "createdAt": "2023-07-09T13:59:55.068Z",
4  "updatedAt": "2023-07-09T13:59:55.100Z",
5  "eventName": "TalentBlockSubmittedEvent",
6  "keyId": "057b516d-15a2-47b9-b4f1-898b01d146dd",
7  "eventData": {
8    "name": "TalentBlockSubmittedEvent",
9    "type": "event",
10    "keyId": "057b516d-15a2-47b9-b4f1-898b01d146dd",
11    "version": 2,
12    "payload": {
13      "user": {
14        "id": "6467f4e55d45-5740-4f33-b080-03516924"
15      },
16      "talent": {
17        "id": "03516924-e854-48bb-b559-6467f4e55d45"
18      },
19      "talentBlock": {
20        "id": "dcd33ec3-d6bd-428c-be6c-c2e4d8f0b77b",
21        "order": 14,
22        "status": "FINISHED",
23        "blockId": "27b45de3-2a7a-4950-806a-dbc53496b0be",
24        "talentId": "03516924-e854-48bb-b559-6467f4e55d45",
25        "programId": "dceea9b7-5740-4f33-b080-a54c27223107",
26        "talentPhaseId": "c61b98cb-e73d-4ed6-8362-11d275778504",
27        "talentActivityIds": []
28      },
29      "block": {
30        "id": "27b45de3-2a7a-4950-806a-dbc53496b0be",
31        "type": "VC"
32      }
33    }
34  },
35  "status": "ACKNOWLEDGED",
36  "publisherNodeId": "phoenix-production-788774c7f-ptzwj",
37  "processorNodeId": "phoenix-production-788774c7f-jz25k",
38  "version": 2,
39  "userId": "6467f4e55d45-5740-4f33-b080-03516924",
40  "talentId": "03516924-e854-48bb-b559-6467f4e55d45"
41}
42

TalentBlockSubmittedEvent payload

TalentBlockSubmittedEvent Schema (json)
{
  "$id": "TalentBlockSubmittedEventPayloadTSchema",
  "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"
      ]
    },
    "block": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "type": {
          "default": "AC",
          "anyOf": [
            { "const": "AC", "type": "string" },
            { "const": "VC", "type": "string" }
          ]
        }
      },
      "required": ["id", "type"]
    }
  },
  "required": ["user", "talent", "talentBlock", "block"]
}


Edit this pageLast updated on 2024/8/5