UNPKG

dancecard-email-schemas

Version:

Schemas for objects for Dancecard Email Nurturing System

36 lines (34 loc) 1.52 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TemplateBlockSubtype = { "id": "./TemplateBlockSubtype", "title": "TemplateBlockSubtype", "description": "A Template Block Subtype that defines objects that contain fields specific to each type of Template Block Subtype", "type": "object", "properties": { "text_block_fields": { "description": 'All fields for a Template Block with block_type == "Text" otherwise this property will be null', "type": ["null", { "$ref": "./TextBlockSubtype" }] }, "cta_block_fields": { "description": 'All fields for a Template Block with block_type == "CTA" otherwise this property will be null', "type": ["null", { "$ref": "./CTABlockSubtype" }] }, "video_block_fields": { "description": 'All fields for a Template Block with block_type == "Video" otherwise this property will be null', "type": ["null", { "$ref": "./VideoBlockSubtype" }] }, "gallery_block_fields": { "description": 'All fields for a Template Block with block_type == "Gallery"', "type": ["null", { "$ref": "./GalleryBlockSubtype" }] }, "file_block_fields": { "description": 'All fields for a Template Block with block_type == "File"', "type": ["null", { "$ref": "./FileBlockSubtype" }] } }, "required": ["text_block_fields", "cta_block_fields", "video_block_fields", "gallery_block_fields", "file_block_fields"] }; exports.TemplateBlockSubtype = TemplateBlockSubtype;