Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
162 lines
2.8 KiB
TypeScript
162 lines
2.8 KiB
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const untilFolderSelected = { folder: [''] };
|
|
|
|
export const untilItemSelected = { item: [''] };
|
|
|
|
export const untilListSelected = { list: [''] };
|
|
|
|
export const untilSiteSelected = { site: [''] };
|
|
|
|
export const fileRLC: INodeProperties = {
|
|
displayName: 'File',
|
|
name: 'file',
|
|
default: {
|
|
mode: 'list',
|
|
value: '',
|
|
},
|
|
description: 'Select the file to download',
|
|
modes: [
|
|
{
|
|
displayName: 'From List',
|
|
name: 'list',
|
|
type: 'list',
|
|
typeOptions: {
|
|
searchListMethod: 'getFiles',
|
|
searchable: true,
|
|
},
|
|
},
|
|
{
|
|
displayName: 'By ID',
|
|
name: 'id',
|
|
placeholder: 'e.g. mysite',
|
|
type: 'string',
|
|
},
|
|
],
|
|
placeholder: 'eg. my-file.pdf',
|
|
required: true,
|
|
type: 'resourceLocator',
|
|
};
|
|
|
|
export const folderRLC: INodeProperties = {
|
|
displayName: 'Parent Folder',
|
|
name: 'folder',
|
|
default: {
|
|
mode: 'list',
|
|
value: '',
|
|
},
|
|
description: 'Select the folder to update the file in',
|
|
modes: [
|
|
{
|
|
displayName: 'From List',
|
|
name: 'list',
|
|
type: 'list',
|
|
typeOptions: {
|
|
searchListMethod: 'getFolders',
|
|
searchable: true,
|
|
},
|
|
},
|
|
{
|
|
displayName: 'By ID',
|
|
name: 'id',
|
|
placeholder: 'e.g. myfolder',
|
|
type: 'string',
|
|
},
|
|
],
|
|
placeholder: '/ (Library root)',
|
|
required: true,
|
|
type: 'resourceLocator',
|
|
};
|
|
|
|
export const itemRLC: INodeProperties = {
|
|
displayName: 'Item',
|
|
name: 'item',
|
|
default: {
|
|
mode: 'list',
|
|
value: '',
|
|
},
|
|
description: 'Select the item you want to delete',
|
|
modes: [
|
|
{
|
|
displayName: 'From List',
|
|
name: 'list',
|
|
type: 'list',
|
|
typeOptions: {
|
|
searchListMethod: 'getItems',
|
|
searchable: true,
|
|
},
|
|
},
|
|
{
|
|
displayName: 'By ID',
|
|
name: 'id',
|
|
placeholder: 'e.g. 1',
|
|
type: 'string',
|
|
},
|
|
],
|
|
required: true,
|
|
type: 'resourceLocator',
|
|
};
|
|
|
|
export const listRLC: INodeProperties = {
|
|
displayName: 'List',
|
|
name: 'list',
|
|
default: {
|
|
mode: 'list',
|
|
value: '',
|
|
},
|
|
description: 'Select the list you want to retrieve',
|
|
modes: [
|
|
{
|
|
displayName: 'From List',
|
|
name: 'list',
|
|
type: 'list',
|
|
typeOptions: {
|
|
searchListMethod: 'getLists',
|
|
searchable: true,
|
|
},
|
|
},
|
|
{
|
|
displayName: 'By ID',
|
|
name: 'id',
|
|
placeholder: 'e.g. mylist',
|
|
type: 'string',
|
|
},
|
|
],
|
|
required: true,
|
|
type: 'resourceLocator',
|
|
};
|
|
|
|
export const siteRLC: INodeProperties = {
|
|
displayName: 'Site',
|
|
name: 'site',
|
|
default: {
|
|
mode: 'list',
|
|
value: '',
|
|
},
|
|
description: 'Select the site to retrieve folders from',
|
|
modes: [
|
|
{
|
|
displayName: 'From List',
|
|
name: 'list',
|
|
type: 'list',
|
|
typeOptions: {
|
|
searchListMethod: 'getSites',
|
|
searchable: true,
|
|
},
|
|
},
|
|
{
|
|
displayName: 'By ID',
|
|
name: 'id',
|
|
placeholder: 'e.g. mysite',
|
|
type: 'string',
|
|
},
|
|
],
|
|
required: true,
|
|
type: 'resourceLocator',
|
|
};
|
|
|
|
export const ignoreHttpStatusErrorsConfig = {
|
|
ignore: true as const,
|
|
except: [401],
|
|
};
|