n8n-nodes-base
Version:
Base nodes of n8n
51 lines (47 loc) • 1.45 kB
text/typescript
/**
* Emelia Node - Version 1
* Discriminator: resource=campaign, operation=duplicate
*/
interface Credentials {
emeliaApi: CredentialReference;
}
export type EmeliaV1CampaignDuplicateParams = {
resource: 'campaign';
operation: 'duplicate';
/**
* The ID of the campaign to duplicate. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
campaignId?: string | Expression<string>;
/**
* The name of the new campaign to create
*/
campaignName?: string | Expression<string> | PlaceholderValue;
/**
* Options
* @default {}
*/
options?: {
/** Whether to copy all the contacts from the original campaign
* @default false
*/
copyContacts?: boolean | Expression<boolean>;
/** Whether to set the same email provider than the original campaign
* @default true
*/
copyProvider?: boolean | Expression<boolean>;
/** Whether to copy all the steps of the email sequence from the original campaign
* @default true
*/
copyMails?: boolean | Expression<boolean>;
/** Whether to copy all the general settings from the original campaign
* @default true
*/
copySettings?: boolean | Expression<boolean>;
};
};
export type EmeliaV1CampaignDuplicateNode = {
type: 'n8n-nodes-base.emelia';
version: 1;
credentials?: Credentials;
config: NodeConfig<EmeliaV1CampaignDuplicateParams>;
};