Initial commit
This commit is contained in:
108
application/Espo/Resources/metadata/entityDefs/Webhook.json
Normal file
108
application/Espo/Resources/metadata/entityDefs/Webhook.json
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"fields": {
|
||||
"event": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"required": true,
|
||||
"view": "views/webhook/fields/event"
|
||||
},
|
||||
"url": {
|
||||
"type": "varchar",
|
||||
"maxLength": 512,
|
||||
"required": true,
|
||||
"copyToClipboard": true
|
||||
},
|
||||
"isActive": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"user": {
|
||||
"type": "link",
|
||||
"view": "views/webhook/fields/user"
|
||||
},
|
||||
"entityType": {
|
||||
"type": "varchar",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/entity-type"
|
||||
},
|
||||
"type": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"create",
|
||||
"update",
|
||||
"fieldUpdate",
|
||||
"delete"
|
||||
],
|
||||
"readOnly": true
|
||||
},
|
||||
"field": {
|
||||
"type": "varchar",
|
||||
"readOnly": true
|
||||
},
|
||||
"secretKey": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"readOnly": true,
|
||||
"layoutMassUpdateDisabled": true,
|
||||
"layoutFiltersDisabled": true,
|
||||
"layoutListDisabled": true
|
||||
},
|
||||
"skipOwn": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"queueItems": {
|
||||
"type": "hasMany",
|
||||
"entity": "WebhookQueueItem",
|
||||
"foreign": "webhook",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "createdAt",
|
||||
"order": "desc",
|
||||
"textFilterFields": ["event"]
|
||||
},
|
||||
"indexes": {
|
||||
"event": {
|
||||
"columns": ["event"]
|
||||
},
|
||||
"entityTypeType": {
|
||||
"columns": ["entityType", "type"]
|
||||
},
|
||||
"entityTypeField": {
|
||||
"columns": ["entityType", "field"]
|
||||
}
|
||||
},
|
||||
"hooksDisabled": true
|
||||
}
|
||||
Reference in New Issue
Block a user