VCSessionUpdatedEvent
v1

Phoenix parcours B2C course

Details

Example event payload

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

VCSessionUpdatedEvent payload

VCSessionUpdatedEvent Schema (json)
{
  "$id": "VCSessionUpdatedEventPayloadTSchema",
  "type": "object",
  "properties": {
    "appointment": {
      "$id": "AppointmentEntity",
      "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" },
        "title": { "type": "string" },
        "description": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "startDate": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        },
        "endDate": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        },
        "coach": {},
        "coachId": { "type": "string" },
        "talent": {},
        "talentId": { "type": "string" },
        "status": {
          "default": "PLANNED",
          "anyOf": [
            { "const": "CANCELED", "type": "string" },
            { "const": "DONE", "type": "string" },
            { "const": "PLANNED", "type": "string" }
          ]
        },
        "cancelationReason": {
          "anyOf": [
            {
              "anyOf": [
                { "const": "TALENT_ACTIVITIES_NOT_FINISHED", "type": "string" },
                { "const": "TALENT_NEED_MORE_TIME", "type": "string" },
                {
                  "const": "TALENT_HAS_PROFESSIONAL_ENGAGMENT",
                  "type": "string"
                },
                { "const": "TALENT_HAS_PERSONAL_ENGAGEMENT", "type": "string" },
                { "const": "TALENT_SUBPHASE_NOT_FINISHED", "type": "string" },
                {
                  "const": "TALENT_NOT_AVAILABLE_MORE_THAN_24H",
                  "type": "string"
                },
                {
                  "const": "TALENT_NOT_AVAILABLE_LESS_THAN_24H",
                  "type": "string"
                },
                { "const": "TALENT_NO_SHOW", "type": "string" },
                {
                  "const": "TALENT_NOT_PRIORITIZING_HIS_PROGRAM",
                  "type": "string"
                },
                { "const": "COACH_NO_LONGER_AVAILABLE", "type": "string" },
                { "const": "COACH_SET_WRONG_DATE_OR_HOUR", "type": "string" },
                { "const": "TALENT_IS_DEPAIRED_OR_REPAIRED", "type": "string" },
                { "const": "OTHER", "type": "string" }
              ]
            },
            { "type": "null" }
          ]
        },
        "cancelationExplanation": {
          "anyOf": [{ "type": "string" }, { "type": "null" }]
        },
        "canceledBy": {
          "anyOf": [
            {
              "anyOf": [
                { "const": "COACH", "type": "string" },
                { "const": "TALENT", "type": "string" },
                { "const": "ADMIN", "type": "string" }
              ]
            },
            { "type": "null" }
          ]
        },
        "talentBlock": { "anyOf": [{}, { "type": "null" }] },
        "talentBlockId": {
          "anyOf": [{ "type": "string" }, { "type": "null" }]
        },
        "subphase": { "anyOf": [{}, { "type": "null" }] },
        "subphaseId": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "appointmentType": {
          "default": "STANDALONE",
          "anyOf": [
            { "const": "STANDALONE", "type": "string" },
            { "const": "PART_ONE", "type": "string" },
            { "const": "PART_TWO", "type": "string" }
          ]
        },
        "updateDetails": {
          "anyOf": [{ "type": "array", "items": {} }, { "type": "null" }]
        },
        "updateDetailsIds": { "type": "array", "items": { "type": "string" } }
      },
      "required": [
        "createdAt",
        "id",
        "title",
        "description",
        "coach",
        "coachId",
        "talent",
        "talentId",
        "status",
        "talentBlockId",
        "subphaseId",
        "appointmentType",
        "updateDetailsIds"
      ]
    },
    "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"
      ]
    }
  },
  "required": ["appointment", "talentBlock"]
}


Edit this pageLast updated on 2024/8/5