UNPKG

dancecard-email-schemas

Version:

Schemas for objects for Dancecard Email Nurturing System

41 lines (39 loc) 1.32 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TemplateBlock = { "id": "./TemplateBlock", "title": "TemplateBlock", "description": "A Template Block that defines a block within a Template", "type": "object", "properties": { "block_name": { "description": "User provided Template Block ID/Name", "type": "string" }, "block_short_name": { "description": "User provided short version of Template Block ID/Name", "type": "string" }, "placeholder": { "description": "Block name used in templates", "type": "string" }, "block_type": { "description": 'String: Either "Text", "CTA", "Video", "Gallery", or "File"', "type": "string", "enum": ["Text", "CTA", "Video", "Gallery", "File"] }, "subtype_fields": { "description": "An object that will contain any custom fields associated with a specific template block subtype", "$ref": "./TemplateBlockSubtype" }, "order": { "description": "Relative ordering of block in relation to other blocks for this Template. Starts indexing at 0.", "type": "int" } }, "required": ["block_name", "block_short_name", "placeholder", "block_type", "subtype_fields", "order"] }; exports.TemplateBlock = TemplateBlock;