{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sasco/json-schema/sasco-presentation-add-edit-dto-schema.json",
  "title": "PresentationAddEditDto",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sasco-openapi.json#/components/schemas/PresentationAddEditDto",
  "required": [
    "attachmentsIdsAr",
    "attachmentsIdsEn",
    "quarter",
    "reportNameAr",
    "reportNameEn",
    "year"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "isEditable": {
      "type": "boolean"
    },
    "isSubmitted": {
      "type": "boolean"
    },
    "publishStatus": {
      "type": "integer",
      "format": "int32"
    },
    "firstApproval": {
      "type": "integer",
      "format": "int32"
    },
    "secondApproval": {
      "type": "integer",
      "format": "int32"
    },
    "thirdApproval": {
      "type": "integer",
      "format": "int32"
    },
    "requesterId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "wfPageLevel": {
      "type": "integer",
      "format": "int32"
    },
    "publishVersionId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "rejectReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "contentVersion": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "publishDate": {
      "type": [
        "string",
        "null"
      ]
    },
    "rowVersion": {
      "type": [
        "string",
        "null"
      ],
      "format": "byte"
    },
    "historyList": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/RequestHistoryDto"
      }
    },
    "reportNameAr": {
      "maxLength": 500,
      "type": "string"
    },
    "reportNameEn": {
      "maxLength": 500,
      "type": "string"
    },
    "year": {
      "type": "integer",
      "format": "int32"
    },
    "quarter": {
      "type": "integer",
      "format": "int32"
    },
    "attachmentsIdsAr": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int32"
      }
    },
    "attachmentsIdsEn": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int32"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "RequestHistoryDto": {
      "type": "object",
      "properties": {
        "userName": {
          "type": [
            "string",
            "null"
          ]
        },
        "fullName": {
          "type": [
            "string",
            "null"
          ]
        },
        "roleNameAr": {
          "type": [
            "string",
            "null"
          ]
        },
        "roleNameEn": {
          "type": [
            "string",
            "null"
          ]
        },
        "actionDate": {
          "type": [
            "string",
            "null"
          ]
        },
        "actionName": {
          "type": [
            "string",
            "null"
          ]
        },
        "rejectReason": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}