corrad-bp/prisma/json/json-schema.json
Afiq b3ca62b548 Enhance Process Builder Drag-and-Drop Functionality
- Improved drag-and-drop support in the Process Builder by setting drag data to 'text/plain' for better compatibility, especially on Mac.
- Added visual feedback during drag operations by applying a 'dragging' class to the event target.
- Updated the drop event handler to parse the dragged data correctly and prevent event propagation.
- Introduced a computed property for gateway available variables to enhance node configuration options.
- Adjusted the layout of the properties panel to accommodate a new VariableManager component for better variable management.
2025-05-15 11:53:59 +08:00

509 lines
9.8 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"audit": {
"type": "object",
"properties": {
"auditID": {
"type": "integer"
},
"auditIP": {
"type": [
"string",
"null"
]
},
"auditURL": {
"type": [
"string",
"null"
]
},
"auditURLMethod": {
"type": [
"string",
"null"
]
},
"auditURLPayload": {
"type": [
"string",
"null"
]
},
"auditCreatedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"auditAction": {
"type": [
"string",
"null"
]
},
"auditDetails": {
"type": [
"string",
"null"
]
},
"auditUsername": {
"type": [
"string",
"null"
]
},
"user": {
"anyOf": [
{
"$ref": "#/definitions/user"
},
{
"type": "null"
}
]
}
}
},
"user": {
"type": "object",
"properties": {
"userID": {
"type": "integer"
},
"userSecretKey": {
"type": [
"string",
"null"
]
},
"userUsername": {
"type": [
"string",
"null"
]
},
"userPassword": {
"type": [
"string",
"null"
]
},
"userFullName": {
"type": [
"string",
"null"
]
},
"userEmail": {
"type": [
"string",
"null"
]
},
"userPhone": {
"type": [
"string",
"null"
]
},
"userStatus": {
"type": [
"string",
"null"
]
},
"userCreatedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"userModifiedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"audit": {
"type": "array",
"items": {
"$ref": "#/definitions/audit"
}
},
"forms": {
"type": "array",
"items": {
"$ref": "#/definitions/form"
}
},
"processes": {
"type": "array",
"items": {
"$ref": "#/definitions/process"
}
},
"assignedTasks": {
"type": "array",
"items": {
"$ref": "#/definitions/task"
}
},
"userrole": {
"type": "array",
"items": {
"$ref": "#/definitions/userrole"
}
}
}
},
"role": {
"type": "object",
"properties": {
"roleID": {
"type": "integer"
},
"roleName": {
"type": [
"string",
"null"
]
},
"roleDescription": {
"type": [
"string",
"null"
]
},
"roleStatus": {
"type": [
"string",
"null"
]
},
"roleCreatedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"roleModifiedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"userrole": {
"type": "array",
"items": {
"$ref": "#/definitions/userrole"
}
}
}
},
"lookup": {
"type": "object",
"properties": {
"lookupID": {
"type": "integer"
},
"lookupOrder": {
"type": [
"integer",
"null"
]
},
"lookupTitle": {
"type": [
"string",
"null"
]
},
"lookupRefCode": {
"type": [
"string",
"null"
]
},
"lookupValue": {
"type": [
"string",
"null"
]
},
"lookupType": {
"type": [
"string",
"null"
]
},
"lookupStatus": {
"type": [
"string",
"null"
]
},
"lookupCreatedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"lookupModifiedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
}
}
},
"userrole": {
"type": "object",
"properties": {
"userRoleID": {
"type": "integer"
},
"userRoleCreatedDate": {
"type": "string",
"format": "date-time"
},
"role": {
"$ref": "#/definitions/role"
},
"user": {
"$ref": "#/definitions/user"
}
}
},
"form": {
"type": "object",
"properties": {
"formID": {
"type": "integer"
},
"formUUID": {
"type": "string"
},
"formName": {
"type": "string"
},
"formDescription": {
"type": [
"string",
"null"
]
},
"formComponents": {
"type": [
"number",
"string",
"boolean",
"object",
"array",
"null"
]
},
"formStatus": {
"type": "string",
"default": "active"
},
"formCreatedDate": {
"type": "string",
"format": "date-time"
},
"formModifiedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"creator": {
"anyOf": [
{
"$ref": "#/definitions/user"
},
{
"type": "null"
}
]
},
"formTasks": {
"type": "array",
"items": {
"$ref": "#/definitions/task"
}
}
}
},
"process": {
"type": "object",
"properties": {
"processID": {
"type": "integer"
},
"processUUID": {
"type": "string"
},
"processName": {
"type": "string"
},
"processDescription": {
"type": [
"string",
"null"
]
},
"processDefinition": {
"type": [
"number",
"string",
"boolean",
"object",
"array",
"null"
]
},
"processVersion": {
"type": "integer",
"default": 1
},
"processStatus": {
"type": "string",
"default": "draft"
},
"processCreatedDate": {
"type": "string",
"format": "date-time"
},
"processModifiedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"creator": {
"anyOf": [
{
"$ref": "#/definitions/user"
},
{
"type": "null"
}
]
},
"tasks": {
"type": "array",
"items": {
"$ref": "#/definitions/task"
}
}
}
},
"task": {
"type": "object",
"properties": {
"taskID": {
"type": "integer"
},
"taskUUID": {
"type": "string"
},
"taskNodeId": {
"type": "string"
},
"taskName": {
"type": "string"
},
"taskType": {
"type": "string"
},
"taskData": {
"type": [
"number",
"string",
"boolean",
"object",
"array",
"null"
]
},
"taskStatus": {
"type": "string",
"default": "pending"
},
"taskCreatedDate": {
"type": "string",
"format": "date-time"
},
"taskModifiedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"assignee": {
"anyOf": [
{
"$ref": "#/definitions/user"
},
{
"type": "null"
}
]
},
"form": {
"anyOf": [
{
"$ref": "#/definitions/form"
},
{
"type": "null"
}
]
},
"process": {
"$ref": "#/definitions/process"
}
}
}
},
"type": "object",
"properties": {
"audit": {
"$ref": "#/definitions/audit"
},
"user": {
"$ref": "#/definitions/user"
},
"role": {
"$ref": "#/definitions/role"
},
"lookup": {
"$ref": "#/definitions/lookup"
},
"userrole": {
"$ref": "#/definitions/userrole"
},
"form": {
"$ref": "#/definitions/form"
},
"process": {
"$ref": "#/definitions/process"
},
"task": {
"$ref": "#/definitions/task"
}
}
}