n8n-nodes-placid
Version:
n8n node to interact with Placid API for creative generation
53 lines (52 loc) • 2.07 kB
TypeScript
import { generalProperties } from './generalProperties';
import { textProperties } from './textProperties';
import { pictureProperties } from './pictureProperties';
import { shapeProperties } from './shapeProperties';
import { browserframeProperties } from './browserframeProperties';
import { barcodeProperties } from './barcodeProperties';
import { ratingProperties } from './ratingProperties';
import { subtitleProperties } from './subtitleProperties';
export * from './generalProperties';
export * from './textProperties';
export * from './pictureProperties';
export * from './shapeProperties';
export * from './browserframeProperties';
export * from './barcodeProperties';
export * from './ratingProperties';
export * from './subtitleProperties';
export { generalProperties, textProperties, pictureProperties, shapeProperties, browserframeProperties, barcodeProperties, ratingProperties, subtitleProperties };
export declare enum LayerType {
TEXT = "text",
PICTURE = "picture",
SHAPE = "shape",
BROWSERFRAME = "browserframe",
BARCODE = "barcode",
RATING = "rating",
SUBTITLE = "subtitle"
}
export declare enum ResourceType {
IMAGE = "image",
PDF = "pdf",
VIDEO = "video"
}
export interface PropertyOption {
name: string;
value: string;
description: string;
restrictedTo: string[];
fieldType?: 'string' | 'color' | 'options' | 'binary';
placeholder?: string;
options?: {
name: string;
value: string;
}[];
}
export declare function filterPropertiesByResource(properties: PropertyOption[], resourceType: string): PropertyOption[];
export declare function getPropertiesForLayerType(layerType: LayerType | string, resourceType?: string): PropertyOption[];
export declare function getGeneralProperties(resourceType?: string): PropertyOption[];
export declare function getAllLayerTypes(): {
name: string;
value: LayerType;
description: string;
}[];
export declare function getAllPropertiesForLayerType(layerType: LayerType | string, resourceType?: string): PropertyOption[];