UNPKG

n8n-nodes-placid

Version:

n8n node to interact with Placid API for creative generation

57 lines (56 loc) 1.97 kB
export declare class PlacidConfig { static readonly API: { readonly BASE_URL: "https://api.placid.app/api"; readonly REST_BASE: "https://api.placid.app/api/rest"; }; static readonly ENDPOINTS: { readonly IMAGES: "/images"; readonly PDFS: "/pdfs"; readonly PDFS_MERGE: "/pdfs/merge"; readonly VIDEOS: "/videos"; readonly TEMPLATES: "/templates"; readonly MEDIA: "/media"; }; static readonly CREDENTIAL_TEST: { readonly BASE_URL: "https://api.placid.app/api"; readonly ENDPOINT: "/n8n/auth"; }; static readonly POLLING: { readonly IMAGE: { readonly MAX_ATTEMPTS: 30; readonly INTERVAL_MS: 2000; readonly TIMEOUT_MESSAGE: "Image generation timed out"; }; readonly PDF: { readonly MAX_ATTEMPTS: 30; readonly INTERVAL_MS: 2000; readonly TIMEOUT_MESSAGE: "PDF generation timed out"; }; readonly VIDEO: { readonly MAX_ATTEMPTS: 60; readonly INTERVAL_MS: 5000; readonly TIMEOUT_MESSAGE: "Video generation timed out"; }; }; static readonly HTTP: { readonly HEADERS: { readonly ACCEPT: "application/json"; readonly CONTENT_TYPE: "application/json"; readonly PLACID_INTEGRATION: "n8n"; }; }; static getRestUrl(endpoint: string): string; static getPollingConfig(resource: keyof typeof PlacidConfig.POLLING): { readonly MAX_ATTEMPTS: 30; readonly INTERVAL_MS: 2000; readonly TIMEOUT_MESSAGE: "Image generation timed out"; } | { readonly MAX_ATTEMPTS: 30; readonly INTERVAL_MS: 2000; readonly TIMEOUT_MESSAGE: "PDF generation timed out"; } | { readonly MAX_ATTEMPTS: 60; readonly INTERVAL_MS: 5000; readonly TIMEOUT_MESSAGE: "Video generation timed out"; }; }