TalentActivitySubmittedEvent
v3

Phoenix parcours B2C course

Details

Example event payload

1{
2  "id": 6096316,
3  "createdAt": "2023-07-09T14:00:48.669Z",
4  "updatedAt": "2023-07-09T14:00:48.728Z",
5  "eventName": "TalentActivitySubmittedEvent",
6  "keyId": "9852b51b-35f6-46fe-a005-214fb6a9e960",
7  "eventData": {
8    "name": "TalentActivitySubmittedEvent",
9    "type": "event",
10    "keyId": "9852b51b-35f6-46fe-a005-214fb6a9e960",
11    "version": 3,
12    "payload": {
13      "user": {
14        "id": "b0d37bfb-7920-45be-8f64-499ca83dab7a"
15      },
16      "talent": {
17        "id": "827a5af5-62ef-491b-852a-343dbc3ea430"
18      },
19      "talentActivity": {
20        "id": "b6ca00df-9c7d-48a0-886e-07893e96dba7",
21        "order": 0,
22        "status": "SUBMITTED",
23        "talentId": "827a5af5-62ef-491b-852a-343dbc3ea430",
24        "activityId": "60e76872-0ef4-472d-a130-a4c82b9b9351",
25        "talentBlockId": "1034849a-d3f9-4082-8d82-ff35d266de28"
26      }
27    }
28  },
29  "status": "ACKNOWLEDGED",
30  "publisherNodeId": "phoenix-production-788774c7f-8xmfs",
31  "processorNodeId": "phoenix-production-788774c7f-ptzwj",
32  "version": 3,
33  "userId": "b0d37bfb-7920-45be-8f64-499ca83dab7a",
34  "talentId": "827a5af5-62ef-491b-852a-343dbc3ea430"
35}
36

TalentActivitySubmittedEvent payload

TalentActivitySubmittedEvent Schema (json)
{
  "$id": "TalentActivitySubmittedEventPayloadTSchema",
  "type": "object",
  "properties": {
    "user": {
      "type": "object",
      "properties": { "id": { "type": "string" } },
      "required": ["id"]
    },
    "talent": {
      "type": "object",
      "properties": { "id": { "type": "string" } },
      "required": ["id"]
    },
    "talentActivity": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "talentId": { "type": "string" },
        "activityId": { "type": "string" },
        "talentBlockId": { "type": "string" },
        "status": {
          "default": "NOT_STARTED",
          "anyOf": [
            { "const": "IN_PROGRESS", "type": "string" },
            { "const": "LOCKED", "type": "string" },
            { "const": "NOT_STARTED", "type": "string" },
            { "const": "SUBMITTED", "type": "string" }
          ]
        },
        "order": { "type": "number" }
      },
      "required": [
        "id",
        "talentId",
        "activityId",
        "talentBlockId",
        "status",
        "order"
      ]
    },
    "activity": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "internalName": { "type": "string" },
        "unlocksFeatures": {
          "default": [],
          "type": "array",
          "items": {
            "anyOf": [
              { "const": "CHANCE_XP", "type": "string" },
              { "const": "DUOS_CHANCE", "type": "string" },
              { "const": "FB_GROUPS", "type": "string" },
              { "const": "FEEDBACK_ME", "type": "string" },
              { "const": "MY_CIRCLE", "type": "string" },
              { "const": "PERSONALITY_TESTS", "type": "string" },
              { "const": "PROJECT_EXPLORATION", "type": "string" },
              { "const": "RESOURCES", "type": "string" },
              { "const": "ROLES_EXPLORATION", "type": "string" }
            ]
          }
        }
      },
      "required": ["id", "internalName", "unlocksFeatures"]
    }
  },
  "required": ["user", "talent", "talentActivity", "activity"]
}


Edit this pageLast updated on 2024/8/5