n8n-nodes-placid
Version:
n8n node to interact with Placid API for creative generation
51 lines (50 loc) • 1.88 kB
TypeScript
import { INodeProperties } from 'n8n-workflow';
import { IExecuteFunctions } from 'n8n-workflow';
export type ResourceType = 'image' | 'pdf' | 'video';
export declare function createDynamicLayerConfigurationFields(resourceType: ResourceType, operationType: string, configModeField: string, collectionName: string, itemName: string, displayName: string): INodeProperties[];
export interface LayerData {
layerId: string;
layerType?: string;
property: string;
textValue?: string;
colorValue?: string;
fontSizeValue?: string;
fontFamilyValue?: string;
imageValue?: string;
imageBinaryValue?: string;
imageArrayValue?: string[] | string;
videoValue?: string;
videoBinaryValue?: string;
opacityValue?: string;
rotationValue?: string;
borderRadiusValue?: string;
background_colorValue?: string;
border_colorValue?: string;
border_radiusValue?: string;
border_widthValue?: string;
svgValue?: string;
urlValue?: string;
image_viewportValue?: string;
valueValue?: string;
text_colorValue?: string;
alt_text_colorValue?: string;
fontValue?: string;
alt_fontValue?: string;
subtitle_textValue?: string;
srtValue?: string;
hideValue?: string;
visibilityValue?: string;
position_x_absoluteValue?: string;
position_y_absoluteValue?: string;
position_x_relativeValue?: string;
position_y_relativeValue?: string;
widthValue?: string;
heightValue?: string;
link_targetValue?: string;
customPropertyName?: string;
customPropertyValue?: string;
}
export declare function uploadBinaryFile(executeFunctions: IExecuteFunctions, index: number, fieldName: string): Promise<string>;
export declare function processUnifiedLayers(layers: LayerData[], executeFunctions?: IExecuteFunctions, index?: number): Promise<{
[key: string]: any;
}>;