{
  "$id": "ChangeMgmtSchema.json",
  "type": "object",
  "schema": "http://json-schema.org/draft-07/schema#",
  "translate": true,
  "dynamicfields": true,
  "properties": {
    "ph_request_type": {
      "type": "string",
      "description": "type of request (internal to adapter)",
      "default": "changeStandardTemplateById",
      "enum": [
        "changeStandardTemplateById",
        "getStandardChangeRequest",
        "getStandardChangeRequestById",
        "deleteStandardChangeRequestById",
        "getStandardChangeTemplate",
        "getStandardChangeTemplateById",
        "getNormalChangeRequest",
        "createNormalChangeRequest",
        "updateNormalChangeRequestById",
        "getNormalChangeRequestById",
        "deleteNormalChangeRequestById",
        "getEmergencyChangeRequest",
        "createEmergencyChangeRequest",
        "getEmergencyChangeRequestById",
        "deleteEmergencyChangeRequestById",
        "getChangeRequestTask",
        "createChangeRequestTask",
        "getChangeTaskByTaskId",
        "deleteChangeTaskByTaskId",
        "getChangeRequestConflict",
        "createChangeRequestConflict",
        "cancelChangeRequestConflict",
        "createChangeRequestRiskAssessment",
        "autoApproveChangeRequest",
        "getChangeRequest",
        "createChangeRequestRecord",
        "getConfigurationItemSchedule",
        "updateEmergencyChangeRequestById",
        "getChangeModel",
        "getChangeModelById",
        "getChangeWorkerById",
        "updateChangeRequestById",
        "deleteChangeRequestById",
        "getChangeRequestRecordById",
        "addChangeRequestConfigurationItem",
        "getChangeRequestConfigurationItems",
        "getChangeRequestNextStates",
        "refreshChangeRequestImpactedServices",
        "getChangeRequestSchedule",
        "updateChangeRequestFirstAvailableSchedule",
        "updateChangeTaskByTaskId",
        "updateChangeRequestRisk",
        "updateStandardChangeRequestById"
      ],
      "external_name": "ph_request_type"
    },
    "standardChangeTemplateId": {
      "description": "Unique identifier of the standard change template on which to base the new standard change request (from [std_change_record_producer] table).",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "standard_change_template_id"
    },
    "sysparmQuery": {
      "description": "Encoded query used to filter the result set. e.g. change=CHG123456",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "sysparm_query"
    },
    "sysparmOffset": {
      "description": "Starting record index for which to begin retrieving records.",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "sysparm_offset"
    },
    "sysparmLimit": {
      "description": "Maximum number of records to return.",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "sysparm_limit"
    },
    "changeModel": {
      "description": "Name of a change model listed in the Change Model [chg_model] table.",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "chg_model"
    },
    "encryptedFields": {
      "description": "List of comma-separated fields to encrypt.",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "encrypted_fields"
    },
    "queryType": {
      "description": "Name of the change request type listed in the Choices [sys_choice] table.",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "type"
    },
    "durationInSeconds": {
      "description": "Duration of change in seconds, that is, how much time is required to complete the change request task.",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "duration_in_seconds"
    },
    "plannedStartTime": {
      "description": "Retrieve the available time slot start at or later than this time.",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "planned_start_time"
    },
    "associationType": {
      "description": "Type of association between the CMDB CI and the change request.",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "association_type"
    },
    "id": {
      "description": "Unique identifier of the standard change request to retrieve from the [change_request] table.",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "sys_id"
    },
    "taskId": {
      "description": "Unique identifier of the task to retrieve (from [change_task] table).",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "task_sys_id"
    }
  },
  "definitions": {}
}