mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-30 06:59:41 -08:00
b03e358a12
* 👕 Enable `consistent-type-imports` for nodes-base
* 👕 Apply to nodes-base
* ⏪ Undo unrelated changes
* 🚚 Move to `.eslintrc.js` in nodes-base
* ⏪ Revert "Enable `consistent-type-imports` for nodes-base"
This reverts commit 529ad72b05
.
* 👕 Fix severity
213 lines
3.8 KiB
TypeScript
213 lines
3.8 KiB
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const boardColumnOperations: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['boardColumn'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Create',
|
|
value: 'create',
|
|
description: 'Create a new column',
|
|
action: 'Create a board column',
|
|
},
|
|
{
|
|
name: 'Get Many',
|
|
value: 'getAll',
|
|
description: 'Get many columns',
|
|
action: 'Get many board columns',
|
|
},
|
|
],
|
|
default: 'create',
|
|
},
|
|
];
|
|
|
|
export const boardColumnFields: INodeProperties[] = [
|
|
/* -------------------------------------------------------------------------- */
|
|
/* boardColumn:create */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Board Name or ID',
|
|
name: 'boardId',
|
|
type: 'options',
|
|
description:
|
|
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
|
default: '',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getBoards',
|
|
},
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['boardColumn'],
|
|
operation: ['create'],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
displayName: 'Title',
|
|
name: 'title',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['boardColumn'],
|
|
operation: ['create'],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
displayName: 'Column Type',
|
|
name: 'columnType',
|
|
type: 'options',
|
|
default: '',
|
|
options: [
|
|
{
|
|
name: 'Checkbox',
|
|
value: 'checkbox',
|
|
},
|
|
{
|
|
name: 'Country',
|
|
value: 'country',
|
|
},
|
|
{
|
|
name: 'Date',
|
|
value: 'date',
|
|
},
|
|
{
|
|
name: 'Dropdown',
|
|
value: 'dropdown',
|
|
},
|
|
{
|
|
name: 'Email',
|
|
value: 'email',
|
|
},
|
|
{
|
|
name: 'Hour',
|
|
value: 'hour',
|
|
},
|
|
{
|
|
name: 'Link',
|
|
value: 'Link',
|
|
},
|
|
{
|
|
name: 'Long Text',
|
|
value: 'longText',
|
|
},
|
|
{
|
|
name: 'Numbers',
|
|
value: 'numbers',
|
|
},
|
|
{
|
|
name: 'People',
|
|
value: 'people',
|
|
},
|
|
{
|
|
name: 'Person',
|
|
value: 'person',
|
|
},
|
|
{
|
|
name: 'Phone',
|
|
value: 'phone',
|
|
},
|
|
{
|
|
name: 'Rating',
|
|
value: 'rating',
|
|
},
|
|
{
|
|
name: 'Status',
|
|
value: 'status',
|
|
},
|
|
{
|
|
name: 'Tags',
|
|
value: 'tags',
|
|
},
|
|
{
|
|
name: 'Team',
|
|
value: 'team',
|
|
},
|
|
{
|
|
name: 'Text',
|
|
value: 'text',
|
|
},
|
|
{
|
|
name: 'Timeline',
|
|
value: 'timeline',
|
|
},
|
|
{
|
|
name: 'Timezone',
|
|
value: 'timezone',
|
|
},
|
|
{
|
|
name: 'Week',
|
|
value: 'week',
|
|
},
|
|
{
|
|
name: 'World Clock',
|
|
value: 'worldClock',
|
|
},
|
|
],
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['boardColumn'],
|
|
operation: ['create'],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
displayName: 'Additional Fields',
|
|
name: 'additionalFields',
|
|
type: 'collection',
|
|
placeholder: 'Add Field',
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['boardColumn'],
|
|
operation: ['create'],
|
|
},
|
|
},
|
|
default: {},
|
|
options: [
|
|
{
|
|
displayName: 'Defauls',
|
|
name: 'defaults',
|
|
type: 'json',
|
|
typeOptions: {
|
|
alwaysOpenEditWindow: true,
|
|
},
|
|
default: '',
|
|
description: "The new column's defaults",
|
|
},
|
|
],
|
|
},
|
|
/* -------------------------------------------------------------------------- */
|
|
/* boardColumn:getAll */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Board Name or ID',
|
|
name: 'boardId',
|
|
type: 'options',
|
|
description:
|
|
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
|
default: '',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getBoards',
|
|
},
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['boardColumn'],
|
|
operation: ['getAll'],
|
|
},
|
|
},
|
|
},
|
|
];
|