{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-partner-absence-timeline-entry-response-schema.json",
  "title": "PartnerAbsenceTimelineEntryResponse",
  "description": "A wrapper around an AbsenceTimelineEntry json object",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telenor-sverige-partner-user-api-api-openapi.yml#/components/schemas/PartnerAbsenceTimelineEntryResponse",
  "type": "object",
  "properties": {
    "absenceTimelineEntryBean": {
      "$ref": "#/$defs/AbsenceTimelineEntry"
    }
  },
  "$defs": {
    "AbsenceAction": {
      "type": "object",
      "required": [
        "callForwardingType"
      ],
      "properties": {
        "callForwardingType": {
          "type": "string",
          "description": "Specifies the forwarding type, when used via the Telenor Sweden Partner API only these are valid: Indicative, Announced and AlertMeFirst.",
          "enum": [
            "Indicative",
            "Number",
            "Announced",
            "Vms",
            "Switchboard",
            "Colleague",
            "AlertMeFirst",
            "Busy"
          ]
        },
        "callForwardingNumber": {
          "type": "string",
          "description": "For Announced and AlertMeFirst abcenses this number is the number that will be used when caller gets option to be connected to operator after hearing absence cause."
        }
      }
    },
    "AbsenceTimelineEntry": {
      "type": "object",
      "properties": {
        "userId": {
          "type": "integer",
          "format": "int64"
        },
        "absenceId": {
          "type": "integer",
          "format": "int64",
          "description": "The id of the absence related to this entry"
        },
        "start": {
          "type": "string",
          "format": "date-time",
          "description": "The time this absence will become active in the timeline"
        },
        "absenceReasonId": {
          "type": "integer",
          "format": "int32",
          "description": "The absence reason related to this absence"
        },
        "description": {
          "type": "string",
          "description": "A textual description of this absence entry (optional)"
        },
        "location": {
          "type": "string",
          "description": "The location of this absence (optional)"
        },
        "end": {
          "type": "string",
          "format": "date-time",
          "description": "The time this absence will become inactive in the timeline"
        },
        "available": {
          "type": "string",
          "format": "date-time",
          "description": "The next scheduled time this person is available  (no active absences)"
        },
        "action": {
          "description": "The object describes which call forwarding action (if any) is to be taken when this absence becomes active",
          "$ref": "#/$defs/AbsenceAction"
        }
      }
    }
  }
}