n8n-nodes-fizzy 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +159 -0
- package/dist/credentials/FizzyApi.credentials.d.ts +14 -0
- package/dist/credentials/FizzyApi.credentials.d.ts.map +1 -0
- package/dist/credentials/FizzyApi.credentials.js +48 -0
- package/dist/credentials/FizzyApi.credentials.js.map +1 -0
- package/dist/credentials/fizzy.svg +21 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/Fizzy/Fizzy.node.d.ts +19 -0
- package/dist/nodes/Fizzy/Fizzy.node.d.ts.map +1 -0
- package/dist/nodes/Fizzy/Fizzy.node.js +662 -0
- package/dist/nodes/Fizzy/Fizzy.node.js.map +1 -0
- package/dist/nodes/Fizzy/FizzyTrigger.node.d.ts +19 -0
- package/dist/nodes/Fizzy/FizzyTrigger.node.d.ts.map +1 -0
- package/dist/nodes/Fizzy/FizzyTrigger.node.js +246 -0
- package/dist/nodes/Fizzy/FizzyTrigger.node.js.map +1 -0
- package/dist/nodes/Fizzy/GenericFunctions.d.ts +62 -0
- package/dist/nodes/Fizzy/GenericFunctions.d.ts.map +1 -0
- package/dist/nodes/Fizzy/GenericFunctions.js +171 -0
- package/dist/nodes/Fizzy/GenericFunctions.js.map +1 -0
- package/dist/nodes/Fizzy/descriptions/BoardDescription.d.ts +4 -0
- package/dist/nodes/Fizzy/descriptions/BoardDescription.d.ts.map +1 -0
- package/dist/nodes/Fizzy/descriptions/BoardDescription.js +225 -0
- package/dist/nodes/Fizzy/descriptions/BoardDescription.js.map +1 -0
- package/dist/nodes/Fizzy/descriptions/CardDescription.d.ts +4 -0
- package/dist/nodes/Fizzy/descriptions/CardDescription.d.ts.map +1 -0
- package/dist/nodes/Fizzy/descriptions/CardDescription.js +442 -0
- package/dist/nodes/Fizzy/descriptions/CardDescription.js.map +1 -0
- package/dist/nodes/Fizzy/descriptions/ColumnDescription.d.ts +4 -0
- package/dist/nodes/Fizzy/descriptions/ColumnDescription.d.ts.map +1 -0
- package/dist/nodes/Fizzy/descriptions/ColumnDescription.js +178 -0
- package/dist/nodes/Fizzy/descriptions/ColumnDescription.js.map +1 -0
- package/dist/nodes/Fizzy/descriptions/CommentDescription.d.ts +4 -0
- package/dist/nodes/Fizzy/descriptions/CommentDescription.d.ts.map +1 -0
- package/dist/nodes/Fizzy/descriptions/CommentDescription.js +210 -0
- package/dist/nodes/Fizzy/descriptions/CommentDescription.js.map +1 -0
- package/dist/nodes/Fizzy/descriptions/NotificationDescription.d.ts +4 -0
- package/dist/nodes/Fizzy/descriptions/NotificationDescription.d.ts.map +1 -0
- package/dist/nodes/Fizzy/descriptions/NotificationDescription.js +123 -0
- package/dist/nodes/Fizzy/descriptions/NotificationDescription.js.map +1 -0
- package/dist/nodes/Fizzy/descriptions/ReactionDescription.d.ts +4 -0
- package/dist/nodes/Fizzy/descriptions/ReactionDescription.d.ts.map +1 -0
- package/dist/nodes/Fizzy/descriptions/ReactionDescription.js +176 -0
- package/dist/nodes/Fizzy/descriptions/ReactionDescription.js.map +1 -0
- package/dist/nodes/Fizzy/descriptions/StepDescription.d.ts +4 -0
- package/dist/nodes/Fizzy/descriptions/StepDescription.d.ts.map +1 -0
- package/dist/nodes/Fizzy/descriptions/StepDescription.js +180 -0
- package/dist/nodes/Fizzy/descriptions/StepDescription.js.map +1 -0
- package/dist/nodes/Fizzy/descriptions/TagDescription.d.ts +4 -0
- package/dist/nodes/Fizzy/descriptions/TagDescription.d.ts.map +1 -0
- package/dist/nodes/Fizzy/descriptions/TagDescription.js +62 -0
- package/dist/nodes/Fizzy/descriptions/TagDescription.js.map +1 -0
- package/dist/nodes/Fizzy/descriptions/UserDescription.d.ts +4 -0
- package/dist/nodes/Fizzy/descriptions/UserDescription.d.ts.map +1 -0
- package/dist/nodes/Fizzy/descriptions/UserDescription.js +144 -0
- package/dist/nodes/Fizzy/descriptions/UserDescription.js.map +1 -0
- package/dist/nodes/Fizzy/descriptions/index.d.ts +10 -0
- package/dist/nodes/Fizzy/descriptions/index.d.ts.map +1 -0
- package/dist/nodes/Fizzy/descriptions/index.js +26 -0
- package/dist/nodes/Fizzy/descriptions/index.js.map +1 -0
- package/dist/nodes/Fizzy/fizzy.svg +23 -0
- package/package.json +59 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.boardFields = exports.boardOperations = void 0;
|
|
4
|
+
exports.boardOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['board'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Create',
|
|
18
|
+
value: 'create',
|
|
19
|
+
description: 'Create a new board',
|
|
20
|
+
action: 'Create a board',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete',
|
|
24
|
+
value: 'delete',
|
|
25
|
+
description: 'Delete a board',
|
|
26
|
+
action: 'Delete a board',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get',
|
|
30
|
+
value: 'get',
|
|
31
|
+
description: 'Get a board by ID',
|
|
32
|
+
action: 'Get a board',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get Many',
|
|
36
|
+
value: 'getMany',
|
|
37
|
+
description: 'Get many boards',
|
|
38
|
+
action: 'Get many boards',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Update',
|
|
42
|
+
value: 'update',
|
|
43
|
+
description: 'Update a board',
|
|
44
|
+
action: 'Update a board',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
default: 'getMany',
|
|
48
|
+
},
|
|
49
|
+
];
|
|
50
|
+
exports.boardFields = [
|
|
51
|
+
// ----------------------------------
|
|
52
|
+
// board: create
|
|
53
|
+
// ----------------------------------
|
|
54
|
+
{
|
|
55
|
+
displayName: 'Title',
|
|
56
|
+
name: 'title',
|
|
57
|
+
type: 'string',
|
|
58
|
+
required: true,
|
|
59
|
+
default: '',
|
|
60
|
+
displayOptions: {
|
|
61
|
+
show: {
|
|
62
|
+
resource: ['board'],
|
|
63
|
+
operation: ['create'],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
description: 'The title of the board',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
displayName: 'Additional Fields',
|
|
70
|
+
name: 'additionalFields',
|
|
71
|
+
type: 'collection',
|
|
72
|
+
placeholder: 'Add Field',
|
|
73
|
+
default: {},
|
|
74
|
+
displayOptions: {
|
|
75
|
+
show: {
|
|
76
|
+
resource: ['board'],
|
|
77
|
+
operation: ['create'],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
options: [
|
|
81
|
+
{
|
|
82
|
+
displayName: 'Description',
|
|
83
|
+
name: 'description',
|
|
84
|
+
type: 'string',
|
|
85
|
+
typeOptions: {
|
|
86
|
+
rows: 4,
|
|
87
|
+
},
|
|
88
|
+
default: '',
|
|
89
|
+
description: 'The description of the board',
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
// ----------------------------------
|
|
94
|
+
// board: get
|
|
95
|
+
// ----------------------------------
|
|
96
|
+
{
|
|
97
|
+
displayName: 'Board',
|
|
98
|
+
name: 'boardId',
|
|
99
|
+
type: 'resourceLocator',
|
|
100
|
+
default: { mode: 'list', value: '' },
|
|
101
|
+
required: true,
|
|
102
|
+
displayOptions: {
|
|
103
|
+
show: {
|
|
104
|
+
resource: ['board'],
|
|
105
|
+
operation: ['get', 'update', 'delete'],
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
modes: [
|
|
109
|
+
{
|
|
110
|
+
displayName: 'From List',
|
|
111
|
+
name: 'list',
|
|
112
|
+
type: 'list',
|
|
113
|
+
placeholder: 'Select a board...',
|
|
114
|
+
typeOptions: {
|
|
115
|
+
searchListMethod: 'searchBoards',
|
|
116
|
+
searchable: true,
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
displayName: 'By ID',
|
|
121
|
+
name: 'id',
|
|
122
|
+
type: 'string',
|
|
123
|
+
placeholder: '03f25q9q7bw7t3206v9ttiy53',
|
|
124
|
+
validation: [
|
|
125
|
+
{
|
|
126
|
+
type: 'regex',
|
|
127
|
+
properties: {
|
|
128
|
+
regex: '^[a-z0-9]+$',
|
|
129
|
+
errorMessage: 'Board ID must be alphanumeric',
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
displayName: 'By URL',
|
|
136
|
+
name: 'url',
|
|
137
|
+
type: 'string',
|
|
138
|
+
placeholder: 'https://app.fizzy.do/account/boards/03f25q9q7bw7t3206v9ttiy53',
|
|
139
|
+
extractValue: {
|
|
140
|
+
type: 'regex',
|
|
141
|
+
regex: 'https:\\/\\/[^\\/]+\\/[^\\/]+\\/boards\\/([a-z0-9]+)',
|
|
142
|
+
},
|
|
143
|
+
validation: [
|
|
144
|
+
{
|
|
145
|
+
type: 'regex',
|
|
146
|
+
properties: {
|
|
147
|
+
regex: 'https:\\/\\/[^\\/]+\\/[^\\/]+\\/boards\\/[a-z0-9]+',
|
|
148
|
+
errorMessage: 'Invalid Fizzy board URL',
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
description: 'The board to operate on',
|
|
155
|
+
},
|
|
156
|
+
// ----------------------------------
|
|
157
|
+
// board: getMany
|
|
158
|
+
// ----------------------------------
|
|
159
|
+
{
|
|
160
|
+
displayName: 'Return All',
|
|
161
|
+
name: 'returnAll',
|
|
162
|
+
type: 'boolean',
|
|
163
|
+
default: false,
|
|
164
|
+
displayOptions: {
|
|
165
|
+
show: {
|
|
166
|
+
resource: ['board'],
|
|
167
|
+
operation: ['getMany'],
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
displayName: 'Limit',
|
|
174
|
+
name: 'limit',
|
|
175
|
+
type: 'number',
|
|
176
|
+
default: 50,
|
|
177
|
+
typeOptions: {
|
|
178
|
+
minValue: 1,
|
|
179
|
+
},
|
|
180
|
+
displayOptions: {
|
|
181
|
+
show: {
|
|
182
|
+
resource: ['board'],
|
|
183
|
+
operation: ['getMany'],
|
|
184
|
+
returnAll: [false],
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
description: 'Max number of results to return',
|
|
188
|
+
},
|
|
189
|
+
// ----------------------------------
|
|
190
|
+
// board: update
|
|
191
|
+
// ----------------------------------
|
|
192
|
+
{
|
|
193
|
+
displayName: 'Update Fields',
|
|
194
|
+
name: 'updateFields',
|
|
195
|
+
type: 'collection',
|
|
196
|
+
placeholder: 'Add Field',
|
|
197
|
+
default: {},
|
|
198
|
+
displayOptions: {
|
|
199
|
+
show: {
|
|
200
|
+
resource: ['board'],
|
|
201
|
+
operation: ['update'],
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
options: [
|
|
205
|
+
{
|
|
206
|
+
displayName: 'Title',
|
|
207
|
+
name: 'title',
|
|
208
|
+
type: 'string',
|
|
209
|
+
default: '',
|
|
210
|
+
description: 'The new title of the board',
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
displayName: 'Description',
|
|
214
|
+
name: 'description',
|
|
215
|
+
type: 'string',
|
|
216
|
+
typeOptions: {
|
|
217
|
+
rows: 4,
|
|
218
|
+
},
|
|
219
|
+
default: '',
|
|
220
|
+
description: 'The new description of the board',
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
},
|
|
224
|
+
];
|
|
225
|
+
//# sourceMappingURL=BoardDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoardDescription.js","sourceRoot":"","sources":["../../../../nodes/Fizzy/descriptions/BoardDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC;aACpB;SACF;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,oBAAoB;gBACjC,MAAM,EAAE,gBAAgB;aACzB;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,gBAAgB;gBAC7B,MAAM,EAAE,gBAAgB;aACzB;YACD;gBACE,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,aAAa;aACtB;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,iBAAiB;aAC1B;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,gBAAgB;gBAC7B,MAAM,EAAE,gBAAgB;aACzB;SACF;QACD,OAAO,EAAE,SAAS;KACnB;CACF,CAAC;AAEW,QAAA,WAAW,GAAsB;IAC5C,qCAAqC;IACrC,wBAAwB;IACxB,qCAAqC;IACrC;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;Q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qCAAqC;IACrC,wBAAwB;IACxB,qCAAqC;IACrC;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,4BAA4B;aAC1C;YACD;gBACE,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACX,IAAI,EAAE,CAAC;iBACR;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,kCAAkC;aAChD;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Fizzy/descriptions/CardDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,cAAc,EAAE,eAAe,EAmG3C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,EAwVvC,CAAC"}
|
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cardFields = exports.cardOperations = void 0;
|
|
4
|
+
exports.cardOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['card'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Close',
|
|
18
|
+
value: 'close',
|
|
19
|
+
description: 'Close a card (move to Done)',
|
|
20
|
+
action: 'Close a card',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Create',
|
|
24
|
+
value: 'create',
|
|
25
|
+
description: 'Create a new card',
|
|
26
|
+
action: 'Create a card',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Delete',
|
|
30
|
+
value: 'delete',
|
|
31
|
+
description: 'Delete a card',
|
|
32
|
+
action: 'Delete a card',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get',
|
|
36
|
+
value: 'get',
|
|
37
|
+
description: 'Get a card by ID',
|
|
38
|
+
action: 'Get a card',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Get Many',
|
|
42
|
+
value: 'getMany',
|
|
43
|
+
description: 'Get many cards',
|
|
44
|
+
action: 'Get many cards',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Move to Column',
|
|
48
|
+
value: 'moveToColumn',
|
|
49
|
+
description: 'Move a card to a specific column',
|
|
50
|
+
action: 'Move a card to column',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Move to Not Now',
|
|
54
|
+
value: 'moveToNotNow',
|
|
55
|
+
description: 'Move a card to Not Now',
|
|
56
|
+
action: 'Move a card to not now',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Reopen',
|
|
60
|
+
value: 'reopen',
|
|
61
|
+
description: 'Reopen a closed card',
|
|
62
|
+
action: 'Reopen a card',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Send to Triage',
|
|
66
|
+
value: 'sendToTriage',
|
|
67
|
+
description: 'Send a card back to triage (Maybe?)',
|
|
68
|
+
action: 'Send a card to triage',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Toggle Assignment',
|
|
72
|
+
value: 'toggleAssignment',
|
|
73
|
+
description: 'Assign or unassign a user from a card',
|
|
74
|
+
action: 'Toggle assignment on a card',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'Toggle Tag',
|
|
78
|
+
value: 'toggleTag',
|
|
79
|
+
description: 'Add or remove a tag from a card',
|
|
80
|
+
action: 'Toggle tag on a card',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'Unwatch',
|
|
84
|
+
value: 'unwatch',
|
|
85
|
+
description: 'Stop watching a card',
|
|
86
|
+
action: 'Unwatch a card',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'Update',
|
|
90
|
+
value: 'update',
|
|
91
|
+
description: 'Update a card',
|
|
92
|
+
action: 'Update a card',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'Watch',
|
|
96
|
+
value: 'watch',
|
|
97
|
+
description: 'Start watching a card',
|
|
98
|
+
action: 'Watch a card',
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
default: 'getMany',
|
|
102
|
+
},
|
|
103
|
+
];
|
|
104
|
+
exports.cardFields = [
|
|
105
|
+
// ----------------------------------
|
|
106
|
+
// card: common fields
|
|
107
|
+
// ----------------------------------
|
|
108
|
+
{
|
|
109
|
+
displayName: 'Board',
|
|
110
|
+
name: 'boardId',
|
|
111
|
+
type: 'resourceLocator',
|
|
112
|
+
default: { mode: 'list', value: '' },
|
|
113
|
+
required: true,
|
|
114
|
+
displayOptions: {
|
|
115
|
+
show: {
|
|
116
|
+
resource: ['card'],
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
modes: [
|
|
120
|
+
{
|
|
121
|
+
displayName: 'From List',
|
|
122
|
+
name: 'list',
|
|
123
|
+
type: 'list',
|
|
124
|
+
placeholder: 'Select a board...',
|
|
125
|
+
typeOptions: {
|
|
126
|
+
searchListMethod: 'searchBoards',
|
|
127
|
+
searchable: true,
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
displayName: 'By ID',
|
|
132
|
+
name: 'id',
|
|
133
|
+
type: 'string',
|
|
134
|
+
placeholder: '03f25q9q7bw7t3206v9ttiy53',
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
description: 'The board the card belongs to',
|
|
138
|
+
},
|
|
139
|
+
// ----------------------------------
|
|
140
|
+
// card: get, update, delete, etc.
|
|
141
|
+
// ----------------------------------
|
|
142
|
+
{
|
|
143
|
+
displayName: 'Card',
|
|
144
|
+
name: 'cardId',
|
|
145
|
+
type: 'resourceLocator',
|
|
146
|
+
default: { mode: 'list', value: '' },
|
|
147
|
+
required: true,
|
|
148
|
+
displayOptions: {
|
|
149
|
+
show: {
|
|
150
|
+
resource: ['card'],
|
|
151
|
+
operation: [
|
|
152
|
+
'get',
|
|
153
|
+
'update',
|
|
154
|
+
'delete',
|
|
155
|
+
'close',
|
|
156
|
+
'reopen',
|
|
157
|
+
'moveToColumn',
|
|
158
|
+
'moveToNotNow',
|
|
159
|
+
'sendToTriage',
|
|
160
|
+
'toggleAssignment',
|
|
161
|
+
'toggleTag',
|
|
162
|
+
'watch',
|
|
163
|
+
'unwatch',
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
modes: [
|
|
168
|
+
{
|
|
169
|
+
displayName: 'From List',
|
|
170
|
+
name: 'list',
|
|
171
|
+
type: 'list',
|
|
172
|
+
placeholder: 'Select a card...',
|
|
173
|
+
typeOptions: {
|
|
174
|
+
searchListMethod: 'searchCards',
|
|
175
|
+
searchable: true,
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
displayName: 'By ID',
|
|
180
|
+
name: 'id',
|
|
181
|
+
type: 'string',
|
|
182
|
+
placeholder: '03f25q9q7bw7t3206v9ttiy53',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
displayName: 'By URL',
|
|
186
|
+
name: 'url',
|
|
187
|
+
type: 'string',
|
|
188
|
+
placeholder: 'https://app.fizzy.do/account/boards/board-id/cards/card-id',
|
|
189
|
+
extractValue: {
|
|
190
|
+
type: 'regex',
|
|
191
|
+
regex: 'https:\\/\\/[^\\/]+\\/[^\\/]+\\/boards\\/[^\\/]+\\/cards\\/([a-z0-9]+)',
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
description: 'The card to operate on',
|
|
196
|
+
},
|
|
197
|
+
// ----------------------------------
|
|
198
|
+
// card: create
|
|
199
|
+
// ----------------------------------
|
|
200
|
+
{
|
|
201
|
+
displayName: 'Title',
|
|
202
|
+
name: 'title',
|
|
203
|
+
type: 'string',
|
|
204
|
+
required: true,
|
|
205
|
+
default: '',
|
|
206
|
+
displayOptions: {
|
|
207
|
+
show: {
|
|
208
|
+
resource: ['card'],
|
|
209
|
+
operation: ['create'],
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
description: 'The title of the card',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
displayName: 'Additional Fields',
|
|
216
|
+
name: 'additionalFields',
|
|
217
|
+
type: 'collection',
|
|
218
|
+
placeholder: 'Add Field',
|
|
219
|
+
default: {},
|
|
220
|
+
displayOptions: {
|
|
221
|
+
show: {
|
|
222
|
+
resource: ['card'],
|
|
223
|
+
operation: ['create'],
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
options: [
|
|
227
|
+
{
|
|
228
|
+
displayName: 'Body',
|
|
229
|
+
name: 'body',
|
|
230
|
+
type: 'string',
|
|
231
|
+
typeOptions: {
|
|
232
|
+
editor: 'htmlEditor',
|
|
233
|
+
},
|
|
234
|
+
default: '',
|
|
235
|
+
description: 'The body/description of the card (supports HTML)',
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
displayName: 'Column Name or ID',
|
|
239
|
+
name: 'column_id',
|
|
240
|
+
type: 'options',
|
|
241
|
+
typeOptions: {
|
|
242
|
+
loadOptionsMethod: 'getColumns',
|
|
243
|
+
loadOptionsDependsOn: ['boardId.value'],
|
|
244
|
+
},
|
|
245
|
+
default: '',
|
|
246
|
+
description: 'The column to place the card in. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
},
|
|
250
|
+
// ----------------------------------
|
|
251
|
+
// card: getMany
|
|
252
|
+
// ----------------------------------
|
|
253
|
+
{
|
|
254
|
+
displayName: 'Return All',
|
|
255
|
+
name: 'returnAll',
|
|
256
|
+
type: 'boolean',
|
|
257
|
+
default: false,
|
|
258
|
+
displayOptions: {
|
|
259
|
+
show: {
|
|
260
|
+
resource: ['card'],
|
|
261
|
+
operation: ['getMany'],
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
displayName: 'Limit',
|
|
268
|
+
name: 'limit',
|
|
269
|
+
type: 'number',
|
|
270
|
+
default: 50,
|
|
271
|
+
typeOptions: {
|
|
272
|
+
minValue: 1,
|
|
273
|
+
},
|
|
274
|
+
displayOptions: {
|
|
275
|
+
show: {
|
|
276
|
+
resource: ['card'],
|
|
277
|
+
operation: ['getMany'],
|
|
278
|
+
returnAll: [false],
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
description: 'Max number of results to return',
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
displayName: 'Filters',
|
|
285
|
+
name: 'filters',
|
|
286
|
+
type: 'collection',
|
|
287
|
+
placeholder: 'Add Filter',
|
|
288
|
+
default: {},
|
|
289
|
+
displayOptions: {
|
|
290
|
+
show: {
|
|
291
|
+
resource: ['card'],
|
|
292
|
+
operation: ['getMany'],
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
options: [
|
|
296
|
+
{
|
|
297
|
+
displayName: 'Assignee Name or ID',
|
|
298
|
+
name: 'assignee_id',
|
|
299
|
+
type: 'options',
|
|
300
|
+
typeOptions: {
|
|
301
|
+
loadOptionsMethod: 'getUsers',
|
|
302
|
+
loadOptionsDependsOn: ['accountSlug'],
|
|
303
|
+
},
|
|
304
|
+
default: '',
|
|
305
|
+
description: 'Filter by assignee. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
displayName: 'Column Name or ID',
|
|
309
|
+
name: 'column_id',
|
|
310
|
+
type: 'options',
|
|
311
|
+
typeOptions: {
|
|
312
|
+
loadOptionsMethod: 'getColumns',
|
|
313
|
+
loadOptionsDependsOn: ['boardId.value'],
|
|
314
|
+
},
|
|
315
|
+
default: '',
|
|
316
|
+
description: 'Filter by column. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
displayName: 'Status',
|
|
320
|
+
name: 'status',
|
|
321
|
+
type: 'options',
|
|
322
|
+
options: [
|
|
323
|
+
{ name: 'Open', value: 'open' },
|
|
324
|
+
{ name: 'Closed', value: 'closed' },
|
|
325
|
+
{ name: 'All', value: 'all' },
|
|
326
|
+
],
|
|
327
|
+
default: 'open',
|
|
328
|
+
description: 'Filter by card status',
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
displayName: 'Tag Name or ID',
|
|
332
|
+
name: 'tag_id',
|
|
333
|
+
type: 'options',
|
|
334
|
+
typeOptions: {
|
|
335
|
+
loadOptionsMethod: 'getTags',
|
|
336
|
+
loadOptionsDependsOn: ['boardId.value'],
|
|
337
|
+
},
|
|
338
|
+
default: '',
|
|
339
|
+
description: 'Filter by tag. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
340
|
+
},
|
|
341
|
+
],
|
|
342
|
+
},
|
|
343
|
+
// ----------------------------------
|
|
344
|
+
// card: update
|
|
345
|
+
// ----------------------------------
|
|
346
|
+
{
|
|
347
|
+
displayName: 'Update Fields',
|
|
348
|
+
name: 'updateFields',
|
|
349
|
+
type: 'collection',
|
|
350
|
+
placeholder: 'Add Field',
|
|
351
|
+
default: {},
|
|
352
|
+
displayOptions: {
|
|
353
|
+
show: {
|
|
354
|
+
resource: ['card'],
|
|
355
|
+
operation: ['update'],
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
options: [
|
|
359
|
+
{
|
|
360
|
+
displayName: 'Title',
|
|
361
|
+
name: 'title',
|
|
362
|
+
type: 'string',
|
|
363
|
+
default: '',
|
|
364
|
+
description: 'The new title of the card',
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
displayName: 'Body',
|
|
368
|
+
name: 'body',
|
|
369
|
+
type: 'string',
|
|
370
|
+
typeOptions: {
|
|
371
|
+
editor: 'htmlEditor',
|
|
372
|
+
},
|
|
373
|
+
default: '',
|
|
374
|
+
description: 'The new body/description of the card (supports HTML)',
|
|
375
|
+
},
|
|
376
|
+
],
|
|
377
|
+
},
|
|
378
|
+
// ----------------------------------
|
|
379
|
+
// card: moveToColumn
|
|
380
|
+
// ----------------------------------
|
|
381
|
+
{
|
|
382
|
+
displayName: 'Column Name or ID',
|
|
383
|
+
name: 'columnId',
|
|
384
|
+
type: 'options',
|
|
385
|
+
typeOptions: {
|
|
386
|
+
loadOptionsMethod: 'getColumns',
|
|
387
|
+
loadOptionsDependsOn: ['boardId.value'],
|
|
388
|
+
},
|
|
389
|
+
required: true,
|
|
390
|
+
default: '',
|
|
391
|
+
displayOptions: {
|
|
392
|
+
show: {
|
|
393
|
+
resource: ['card'],
|
|
394
|
+
operation: ['moveToColumn'],
|
|
395
|
+
},
|
|
396
|
+
},
|
|
397
|
+
description: 'The column to move the card to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
398
|
+
},
|
|
399
|
+
// ----------------------------------
|
|
400
|
+
// card: toggleAssignment
|
|
401
|
+
// ----------------------------------
|
|
402
|
+
{
|
|
403
|
+
displayName: 'User Name or ID',
|
|
404
|
+
name: 'userId',
|
|
405
|
+
type: 'options',
|
|
406
|
+
typeOptions: {
|
|
407
|
+
loadOptionsMethod: 'getUsers',
|
|
408
|
+
loadOptionsDependsOn: ['accountSlug'],
|
|
409
|
+
},
|
|
410
|
+
required: true,
|
|
411
|
+
default: '',
|
|
412
|
+
displayOptions: {
|
|
413
|
+
show: {
|
|
414
|
+
resource: ['card'],
|
|
415
|
+
operation: ['toggleAssignment'],
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
description: 'The user to assign or unassign. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
419
|
+
},
|
|
420
|
+
// ----------------------------------
|
|
421
|
+
// card: toggleTag
|
|
422
|
+
// ----------------------------------
|
|
423
|
+
{
|
|
424
|
+
displayName: 'Tag Name or ID',
|
|
425
|
+
name: 'tagId',
|
|
426
|
+
type: 'options',
|
|
427
|
+
typeOptions: {
|
|
428
|
+
loadOptionsMethod: 'getTags',
|
|
429
|
+
loadOptionsDependsOn: ['boardId.value'],
|
|
430
|
+
},
|
|
431
|
+
required: true,
|
|
432
|
+
default: '',
|
|
433
|
+
displayOptions: {
|
|
434
|
+
show: {
|
|
435
|
+
resource: ['card'],
|
|
436
|
+
operation: ['toggleTag'],
|
|
437
|
+
},
|
|
438
|
+
},
|
|
439
|
+
description: 'The tag to add or remove. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
440
|
+
},
|
|
441
|
+
];
|
|
442
|
+
//# sourceMappingURL=CardDescription.js.map
|