TalentBlockResetEvent
v1

Phoenix parcours B2C course

Details

Example event payload

1{
2  "todo": "true"
3}

TalentBlockResetEvent payload

TalentBlockResetEvent Schema (json)
{
  "$id": "TalentBlockResetEventPayloadTSchema",
  "type": "object",
  "properties": {
    "talentBlock": {
      "$id": "TalentBlockEntity",
      "type": "object",
      "properties": {
        "createdAt": { "format": "datetime", "type": "string" },
        "updatedAt": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        },
        "deletedAt": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        },
        "id": { "type": "string" },
        "talent": { "anyOf": [{}, { "type": "null" }] },
        "talentId": { "type": "string" },
        "block": {},
        "blockId": { "type": "string" },
        "program": {},
        "programId": { "type": "string" },
        "talentActivities": { "type": "array", "items": {} },
        "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" }
          ]
        },
        "talentPhase": {},
        "talentPhaseId": { "type": "string" }
      },
      "required": [
        "createdAt",
        "id",
        "talent",
        "talentId",
        "block",
        "blockId",
        "program",
        "programId",
        "talentActivities",
        "talentActivityIds",
        "order",
        "status",
        "talentPhase",
        "talentPhaseId"
      ]
    },
    "resetParams": {
      "$id": "ResetTalentBlockInput",
      "type": "object",
      "properties": {
        "talentBlockId": { "type": "string" },
        "clearAnswers": { "default": false, "type": "boolean" },
        "reinitialize": { "default": false, "type": "boolean" },
        "talentActivityIds": {
          "anyOf": [
            { "type": "array", "items": { "type": "string" } },
            { "type": "null" }
          ]
        }
      },
      "required": ["talentBlockId", "clearAnswers", "reinitialize"]
    }
  },
  "required": ["talentBlock", "resetParams"]
}


Edit this pageLast updated on 2024/8/5