{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prodantix-com/json-schema/prodantix-com-view-dto-schema.json",
  "title": "ViewDto",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prodantix-com-openapi.json#/components/schemas/ViewDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "ownerSub": {
      "type": "string"
    },
    "visibility": {
      "type": "string",
      "description": "`private` for its owner alone, `project` for everyone in the project."
    },
    "statuses": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The statuses the view keeps, of `live`, `scheduled`, `ended` and\n`undated`; none keeps every status."
    },
    "owners": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The owners whose campaigns the view keeps; none keeps every owner."
    },
    "sortBy": {
      "type": [
        "string",
        "null"
      ],
      "description": "`name`, `status`, `dates`, `owner`, `assets`, `newContacts`, `revenue`\nor `spent`; none leaves the list in its own order."
    },
    "sortDescending": {
      "type": "boolean"
    },
    "layout": {
      "type": "string",
      "description": "`table`, `board` or `calendar`."
    },
    "boardProperty": {
      "type": [
        "string",
        "null"
      ],
      "description": "`status` or `owner`: what a board groups by."
    },
    "calendarProperty": {
      "type": [
        "string",
        "null"
      ],
      "description": "`dates`: what a calendar places campaigns on."
    },
    "position": {
      "type": "integer",
      "format": "int32"
    },
    "canChange": {
      "type": "boolean",
      "description": "Whether the caller may change or delete the view."
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "name",
    "ownerSub",
    "visibility",
    "statuses",
    "owners",
    "sortDescending",
    "layout",
    "position",
    "canChange",
    "createdAt",
    "updatedAt"
  ]
}