2020-03-27 12:17:10 -07:00
|
|
|
import {
|
|
|
|
INodeProperties
|
2020-03-27 16:34:39 -07:00
|
|
|
} from 'n8n-workflow';
|
2020-03-27 12:17:10 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const boardColumnOperations: INodeProperties[] = [
|
2020-03-27 12:17:10 -07:00
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
noDataExpression: true,
|
2020-03-27 12:17:10 -07:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'boardColumn',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Create',
|
|
|
|
value: 'create',
|
|
|
|
description: 'Create a new column',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Get All',
|
|
|
|
value: 'getAll',
|
|
|
|
description: 'Get all columns',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'create',
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|
2020-03-27 12:17:10 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const boardColumnFields: INodeProperties[] = [
|
2020-03-27 12:17:10 -07:00
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
/* boardColumn:create */
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
{
|
2022-06-03 10:23:49 -07:00
|
|
|
displayName: 'Board Name or ID',
|
2020-03-27 12:17:10 -07:00
|
|
|
name: 'boardId',
|
|
|
|
type: 'options',
|
2022-06-20 07:54:01 -07:00
|
|
|
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
|
2020-03-27 12:17:10 -07:00
|
|
|
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',
|
|
|
|
},
|
2022-06-03 10:23:49 -07:00
|
|
|
{
|
|
|
|
name: 'Country',
|
|
|
|
value: 'country',
|
|
|
|
},
|
2020-03-27 12:17:10 -07:00
|
|
|
{
|
|
|
|
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: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'The new column\'s defaults',
|
2020-03-27 12:17:10 -07:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
/* boardColumn:getAll */
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
{
|
2022-06-03 10:23:49 -07:00
|
|
|
displayName: 'Board Name or ID',
|
2020-03-27 12:17:10 -07:00
|
|
|
name: 'boardId',
|
|
|
|
type: 'options',
|
2022-06-20 07:54:01 -07:00
|
|
|
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
|
2020-03-27 12:17:10 -07:00
|
|
|
default: '',
|
|
|
|
typeOptions: {
|
|
|
|
loadOptionsMethod: 'getBoards',
|
|
|
|
},
|
|
|
|
required: true,
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'boardColumn',
|
|
|
|
],
|
|
|
|
operation: [
|
|
|
|
'getAll',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|