{
  "$schema": "http://json-schema.org/draft-04/schema",
  "id": "import-task.json",
  "type": "object",
  "properties": {
    "taskId": {
      "type": "string",
      "readOnly": true
    },
    "startDate": {
      "type": "string",
      "readOnly": true
    },
    "finishDate": {
      "type": "string",
      "readOnly": true
    },
    "taskType": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "import"
      ]
    },
    "itemsProcessed": {
      "type": "integer",
      "readOnly": true
    },
    "status": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "unknown",
        "standBy",
        "inProgress",
        "completed",
        "failed"
      ]
    },
    "importDetails": {
      "type": "object",
      "properties": {
        "listId": {
          "type": "integer",
          "readOnly": true
        },
        "contentType": {
          "type": "string",
          "readOnly": true
        },
        "deleteCustomFieldsData": {
          "type": "boolean",
          "readOnly": true
        },
        "status": {
          "type": "string",
          "readOnly": true,
          "enum": [
            "unknown",
            "standBy",
            "inProgress",
            "completed",
            "failed"
          ]
        },
        "numberOfAttempts": {
          "type": "integer",
          "readOnly": true
        },
        "dateLastImported": {
          "type": "string",
          "format": "date-type",
          "readOnly": true
        },
        "processed": {
          "type": "integer",
          "readOnly": true
        },
        "invalidEmails": {
          "type": "integer",
          "readOnly": true
        },
        "softBounceds": {
          "type": "integer",
          "readOnly": true
        },
        "hardBounceds": {
          "type": "integer",
          "readOnly": true
        },
        "subscriberBounceds": {
          "type": "integer",
          "readOnly": true
        },
        "amountHeadersAndFieldsDontMatch": {
          "type": "integer",
          "readOnly": true
        },
        "neverOpenBounceds": {
          "type": "integer",
          "readOnly": true
        },
        "updated": {
          "type": "integer",
          "readOnly": true
        },
        "newSubscribers": {
          "type": "integer",
          "readOnly": true
        },
        "duplicated": {
          "type": "integer",
          "readOnly": true
        },
        "unsubscribedByUser": {
          "type": "integer",
          "readOnly": true
        },
        "usersInBlackList": {
          "type": "integer",
          "readOnly": true
        },
        "duplicatedField": {
          "type": "integer",
          "readOnly": true
        }
      },
      "required": [
        "listId",
        "contentType",
        "status",
        "numberOfAttempts",
        "processed",
        "invalidEmails",
        "softBounceds",
        "hardBounceds",
        "subscriberBounceds",
        "amountHeadersAndFieldsDontMatch",
        "neverOpenBounceds",
        "updated",
        "newSubscribers",
        "duplicated",
        "unsubscribedByUser",
        "usersInBlackList",
        "duplicatedField"
      ]
    }
  }
}
