{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loadsmart/json-schema/loadsmart-get-many-flow-response-dto-schema.json",
  "title": "GetManyFlowResponseDto",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loadsmart-custom-forms-flows-api-openapi.yml#/components/schemas/GetManyFlowResponseDto",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Flow"
      }
    },
    "count": {
      "type": "number"
    },
    "total": {
      "type": "number"
    },
    "page": {
      "type": "number"
    },
    "pageCount": {
      "type": "number"
    }
  },
  "required": [
    "data",
    "count",
    "total",
    "page",
    "pageCount"
  ],
  "$defs": {
    "Flow": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the record",
          "readOnly": true
        },
        "createDateTime": {
          "format": "date-time",
          "type": "string",
          "description": "The date and time when the record was created",
          "readOnly": true
        },
        "createdBy": {
          "type": "object",
          "description": "The ID of the user who created the record",
          "readOnly": true
        },
        "lastChangedDateTime": {
          "format": "date-time",
          "type": "string",
          "description": "The date and time when the record was last changed",
          "readOnly": true
        },
        "parentCode": {
          "type": "string",
          "description": "The parent code of the flow, used to group flows together, generated by the API"
        },
        "entityTags": {
          "description": "The tags that will be applied to the corresponding entity that triggered this flow, added to the tags field for the entity stated at dataEntityName field of the trigger table",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "tagFromFormFieldId": {
          "type": "string",
          "description": "When set, the value of the submitted form field will be added as a tag, same as the entityTags field, but this will be the value of the field, not the tag itself"
        },
        "formFromId": {
          "type": "string",
          "description": "The ID of the first form of this flow, used to load the form"
        },
        "formToId": {
          "type": "string",
          "description": "The ID of the second form of this flow, used to load the form sequence, it is optional"
        },
        "conditionOperator": {
          "$ref": "#/$defs/TriggerOperatorsEnum"
        },
        "conditionValue": {
          "type": "string",
          "description": "The value that will be used to compare the value of the field to determine whether to show the second form \"FormTo\" or not"
        },
        "conditionFormFieldId": {
          "type": "string",
          "description": "The field that will be used to compare the value of the field to determine whether to show the second form \"FormTo\" or not"
        }
      },
      "required": [
        "id",
        "createDateTime",
        "createdBy",
        "lastChangedDateTime",
        "formFromId"
      ]
    },
    "TriggerOperatorsEnum": {
      "type": "string",
      "description": "The operator that will be used to compare the value of the field to determine whether to show the second form \"FormTo\" or not",
      "enum": [
        ">",
        "<",
        ">=",
        "<=",
        "=",
        "<>"
      ]
    }
  }
}