{ "$id": "eventSystem-schema", "title": "Event System Triggers Schema", "description": "Schema for a Event System Trigger", "type": "object", "properties": { "_id": { "$ref": "common-ops-schema#/definitions/ObjectId" }, "created": { "$ref": "common-ops-schema#/definitions/ISODate" }, "createdBy": { "$ref": "common-ops-schema#/definitions/userAccount" }, "lastUpdated": { "$ref": "common-ops-schema#/definitions/ISODate" }, "lastUpdatedBy": { "$ref": "common-ops-schema#/definitions/userAccount" }, "name": { "$ref": "common-ops-schema#/definitions/name" }, "type": { "const": "eventSystem" }, "enabled": { "$ref": "common-ops-schema#/definitions/enabled" }, "actionType": { "$ref": "common-ops-schema#/definitions/actionType" }, "actionId": { "$ref": "common-ops-schema#/definitions/ObjectId" }, "source": { "type": "string", "description": "the event source", "examples": [ "@itential/app-workflow_engine" ], "pattern": "^@\\w+/(app|adapter)-\\w+", "minLength": 1 }, "topic": { "type": "string", "description": "the event topic", "examples": [ "jobCancel" ], "minLength": 1 }, "jst": { "oneOf": [ { "$ref": "common-ops-schema#/definitions/ObjectId" }, { "type": "null" } ] }, "schema": { "oneOf": [ { "$ref": "http://json-schema.org/draft-07/schema#" }, { "type": "null" } ] } }, "required": [ "name", "type", "enabled", "actionType", "actionId", "source", "topic" ], "additionalProperties": false }