n8n-nodes-base
Version:
Base nodes of n8n
67 lines (62 loc) • 1.82 kB
text/typescript
/**
* Webflow Node - Version 2
* Discriminator: resource=item, operation=update
*/
interface Credentials {
webflowOAuth2Api: CredentialReference;
}
export type WebflowV2ItemUpdateParams = {
resource: 'item';
operation: 'update';
/**
* ID of the site containing the collection whose items to add to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
siteId?: string | Expression<string>;
/**
* ID of the collection to add an item to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
collectionId?: string | Expression<string>;
/**
* ID of the item to update
*/
itemId?: string | Expression<string> | PlaceholderValue;
/**
* Whether the item should be published on the live site
* @default false
*/
live?: boolean | Expression<boolean>;
/**
* Fields
* @default {}
*/
fieldsUi?: {
/** Field
*/
fieldValues?: Array<{
/** Field to set for the item to create. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
fieldId?: string | Expression<string>;
/** Value to set for the item to create
*/
fieldValue?: string | Expression<string> | PlaceholderValue;
}>;
};
};
export type WebflowV2ItemUpdateOutput = {
createdOn?: string;
fieldData?: {
name?: string;
slug?: string;
};
id?: string;
isArchived?: boolean;
isDraft?: boolean;
lastUpdated?: string;
};
export type WebflowV2ItemUpdateNode = {
type: 'n8n-nodes-base.webflow';
version: 2;
credentials?: Credentials;
config: NodeConfig<WebflowV2ItemUpdateParams>;
output?: Items<WebflowV2ItemUpdateOutput>;
};