{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blackbaud/json-schema/blackbaud-signup-result-schema.json",
  "title": "SignupResult",
  "description": "Represents the result of an employee event sign-up operation.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blackbaud-volunteer-api-openapi.yml#/components/schemas/SignupResult",
  "type": "object",
  "properties": {
    "participation_count": {
      "type": "integer",
      "description": "The total number of participations created by this sign-up.",
      "format": "int32"
    },
    "guest_count": {
      "type": "integer",
      "description": "The total number of guests included in this sign-up.",
      "format": "int32"
    },
    "total_hour_count": {
      "type": "number",
      "description": "The total volunteer hours across all shifts in this sign-up.",
      "format": "double"
    },
    "missed_shifts": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/MissedShift"
      },
      "description": "Shifts that could not be registered due to timing or availability constraints."
    },
    "added_to_shifts": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ParticipationInfo"
      },
      "description": "Shifts the employee was successfully added to."
    },
    "added_to_wait_lists": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ParticipationInfo"
      },
      "description": "Shifts where the employee was placed on the waitlist."
    },
    "not_added": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ParticipationInfo"
      },
      "description": "Shifts the employee could not be added to or waitlisted for."
    }
  },
  "additionalProperties": false,
  "$defs": {
    "MissedShift": {
      "type": "object",
      "properties": {
        "key": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name or identifier of the shift that could not be registered for."
        },
        "value": {
          "type": "string",
          "description": "The date and time of the shift that could not be registered for.",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "description": "Represents a shift that could not be registered for during an event sign-up."
    },
    "ParticipationInfo": {
      "type": "object",
      "properties": {
        "recurrence_id": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The event recurrence series ID. null for non-recurring events.",
          "format": "int32"
        },
        "occurrence_number": {
          "type": "integer",
          "description": "The sequential occurrence number within the recurrence series.",
          "format": "int32"
        },
        "participation_id": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The participation record ID. null if the employee was not added.",
          "format": "int32"
        },
        "shift_id": {
          "type": "integer",
          "description": "The shift ID.",
          "format": "int32"
        },
        "hours": {
          "type": "number",
          "description": "The number of volunteer hours logged for this shift.",
          "format": "double"
        }
      },
      "additionalProperties": false,
      "description": "Represents participation details for a single shift in a sign-up result."
    }
  }
}