n8n-nodes-base 1.11.0 → 1.12.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/dist/build.tsbuildinfo +1 -1
- package/dist/credentials/Ldap.credentials.js +7 -2
- package/dist/credentials/Ldap.credentials.js.map +1 -1
- package/dist/known/nodes.json +4 -0
- package/dist/nodes/CrateDb/CrateDb.node.js +2 -2
- package/dist/nodes/CrateDb/CrateDb.node.js.map +1 -1
- package/dist/nodes/Form/FormTrigger.node.d.ts +5 -0
- package/dist/nodes/Form/FormTrigger.node.js +255 -0
- package/dist/nodes/Form/FormTrigger.node.js.map +1 -0
- package/dist/nodes/Form/FormTrigger.node.json +18 -0
- package/dist/nodes/Form/form.svg +5 -0
- package/dist/nodes/Form/interfaces.d.ts +35 -0
- package/dist/nodes/Form/interfaces.js +3 -0
- package/dist/nodes/Form/interfaces.js.map +1 -0
- package/dist/nodes/Form/utils.d.ts +2 -0
- package/dist/nodes/Form/utils.js +54 -0
- package/dist/nodes/Form/utils.js.map +1 -0
- package/dist/nodes/Google/Calendar/GoogleCalendarTrigger.node.js +13 -3
- package/dist/nodes/Google/Calendar/GoogleCalendarTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Sheet/GoogleSheets.node.js +2 -1
- package/dist/nodes/Google/Sheet/GoogleSheets.node.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/append.operation.js +8 -4
- package/dist/nodes/Google/Sheet/v2/actions/sheet/append.operation.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/appendOrUpdate.operation.js +13 -5
- package/dist/nodes/Google/Sheet/v2/actions/sheet/appendOrUpdate.operation.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/commonDescription.d.ts +5 -5
- package/dist/nodes/Google/Sheet/v2/actions/sheet/commonDescription.js +230 -240
- package/dist/nodes/Google/Sheet/v2/actions/sheet/commonDescription.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js +2 -2
- package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/update.operation.js +24 -8
- package/dist/nodes/Google/Sheet/v2/actions/sheet/update.operation.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.d.ts +3 -0
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js +29 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.d.ts +1 -0
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.js +8 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.js +21 -8
- package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.js.map +1 -1
- package/dist/nodes/Hubspot/HubspotTrigger.node.js +15 -0
- package/dist/nodes/Hubspot/HubspotTrigger.node.js.map +1 -1
- package/dist/nodes/Ldap/Helpers.js +3 -0
- package/dist/nodes/Ldap/Helpers.js.map +1 -1
- package/dist/nodes/Ldap/Ldap.node.js +46 -4
- package/dist/nodes/Ldap/Ldap.node.js.map +1 -1
- package/dist/nodes/MoveBinaryData/MoveBinaryData.node.js +1 -1
- package/dist/nodes/Postgres/PostgresTrigger.functions.js +4 -4
- package/dist/nodes/Postgres/PostgresTrigger.functions.js.map +1 -1
- package/dist/nodes/Postgres/PostgresTrigger.node.js +2 -2
- package/dist/nodes/Postgres/PostgresTrigger.node.js.map +1 -1
- package/dist/nodes/Postgres/v1/PostgresV1.node.js +3 -3
- package/dist/nodes/Postgres/v1/PostgresV1.node.js.map +1 -1
- package/dist/nodes/QuestDb/QuestDb.node.js +2 -2
- package/dist/nodes/QuestDb/QuestDb.node.js.map +1 -1
- package/dist/nodes/Set/Set.node.js +2 -1
- package/dist/nodes/Set/Set.node.js.map +1 -1
- package/dist/nodes/Set/test/Set.workflow.null_values.json +244 -0
- package/dist/nodes/Set/v2/SetV2.node.js +1 -1
- package/dist/nodes/Set/v2/SetV2.node.js.map +1 -1
- package/dist/nodes/Set/v2/helpers/utils.js +3 -0
- package/dist/nodes/Set/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Set/v2/manual.mode.js +4 -1
- package/dist/nodes/Set/v2/manual.mode.js.map +1 -1
- package/dist/nodes/SpreadsheetFile/description.js +52 -0
- package/dist/nodes/SpreadsheetFile/description.js.map +1 -1
- package/dist/nodes/SpreadsheetFile/test/workflow.bom.json +155 -0
- package/dist/nodes/SpreadsheetFile/test/workflow.json +23 -5
- package/dist/nodes/SpreadsheetFile/v2/SpreadsheetFileV2.node.js +15 -2
- package/dist/nodes/SpreadsheetFile/v2/SpreadsheetFileV2.node.js.map +1 -1
- package/dist/nodes/TheHiveProject/actions/alert/create.operation.js +2 -1
- package/dist/nodes/TheHiveProject/actions/alert/create.operation.js.map +1 -1
- package/dist/nodes/TimescaleDb/TimescaleDb.node.js +2 -2
- package/dist/nodes/TimescaleDb/TimescaleDb.node.js.map +1 -1
- package/dist/types/credentials.json +1 -1
- package/dist/types/nodes.json +18 -15
- package/package.json +4 -3
|
@@ -1,260 +1,250 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.handlingExtraData = exports.cellFormat = exports.outputFormatting = exports.locationDefine = exports.dataLocationOnSheet = void 0;
|
|
4
|
-
exports.dataLocationOnSheet =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
description: 'Automatically detect the data range',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: 'Specify Range (A1 Notation)',
|
|
28
|
-
value: 'specifyRangeA1',
|
|
29
|
-
description: 'Manually specify the data range',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: 'Specify Range (Rows)',
|
|
33
|
-
value: 'specifyRange',
|
|
34
|
-
description: 'Manually specify the data range',
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
default: '',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
displayName: 'Read Rows Until',
|
|
41
|
-
name: 'readRowsUntil',
|
|
42
|
-
type: 'options',
|
|
43
|
-
default: 'lastRowInSheet',
|
|
44
|
-
options: [
|
|
45
|
-
{
|
|
46
|
-
name: 'First Empty Row',
|
|
47
|
-
value: 'firstEmptyRow',
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: 'Last Row In Sheet',
|
|
51
|
-
value: 'lastRowInSheet',
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
displayOptions: {
|
|
55
|
-
show: {
|
|
56
|
-
rangeDefinition: ['detectAutomatically'],
|
|
57
|
-
},
|
|
4
|
+
exports.dataLocationOnSheet = {
|
|
5
|
+
displayName: 'Data Location on Sheet',
|
|
6
|
+
name: 'dataLocationOnSheet',
|
|
7
|
+
type: 'fixedCollection',
|
|
8
|
+
placeholder: 'Select Range',
|
|
9
|
+
default: { values: { rangeDefinition: 'detectAutomatically' } },
|
|
10
|
+
options: [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Values',
|
|
13
|
+
name: 'values',
|
|
14
|
+
values: [
|
|
15
|
+
{
|
|
16
|
+
displayName: 'Range Definition',
|
|
17
|
+
name: 'rangeDefinition',
|
|
18
|
+
type: 'options',
|
|
19
|
+
options: [
|
|
20
|
+
{
|
|
21
|
+
name: 'Detect Automatically',
|
|
22
|
+
value: 'detectAutomatically',
|
|
23
|
+
description: 'Automatically detect the data range',
|
|
58
24
|
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
type: 'number',
|
|
64
|
-
typeOptions: {
|
|
65
|
-
minValue: 1,
|
|
25
|
+
{
|
|
26
|
+
name: 'Specify Range (A1 Notation)',
|
|
27
|
+
value: 'specifyRangeA1',
|
|
28
|
+
description: 'Manually specify the data range',
|
|
66
29
|
},
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
show: {
|
|
72
|
-
rangeDefinition: ['specifyRange'],
|
|
73
|
-
},
|
|
30
|
+
{
|
|
31
|
+
name: 'Specify Range (Rows)',
|
|
32
|
+
value: 'specifyRange',
|
|
33
|
+
description: 'Manually specify the data range',
|
|
74
34
|
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
35
|
+
],
|
|
36
|
+
default: '',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
displayName: 'Read Rows Until',
|
|
40
|
+
name: 'readRowsUntil',
|
|
41
|
+
type: 'options',
|
|
42
|
+
default: 'lastRowInSheet',
|
|
43
|
+
options: [
|
|
44
|
+
{
|
|
45
|
+
name: 'First Empty Row',
|
|
46
|
+
value: 'firstEmptyRow',
|
|
82
47
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
displayOptions: {
|
|
87
|
-
show: {
|
|
88
|
-
rangeDefinition: ['specifyRange'],
|
|
89
|
-
},
|
|
48
|
+
{
|
|
49
|
+
name: 'Last Row In Sheet',
|
|
50
|
+
value: 'lastRowInSheet',
|
|
90
51
|
},
|
|
52
|
+
],
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: {
|
|
55
|
+
rangeDefinition: ['detectAutomatically'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
displayName: 'Header Row',
|
|
61
|
+
name: 'headerRow',
|
|
62
|
+
type: 'number',
|
|
63
|
+
typeOptions: {
|
|
64
|
+
minValue: 1,
|
|
91
65
|
},
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
description: 'The table range to read from or to append data to. See the Google <a href="https://developers.google.com/sheets/api/guides/values#writing">documentation</a> for the details.',
|
|
99
|
-
hint: 'You can specify both the rows and the columns, e.g. C4:E7',
|
|
100
|
-
displayOptions: {
|
|
101
|
-
show: {
|
|
102
|
-
rangeDefinition: ['specifyRangeA1'],
|
|
103
|
-
},
|
|
66
|
+
default: 1,
|
|
67
|
+
description: "Index is relative to the set 'Range', first row index is 1",
|
|
68
|
+
hint: 'Index of the row which contains the column names',
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: {
|
|
71
|
+
rangeDefinition: ['specifyRange'],
|
|
104
72
|
},
|
|
105
73
|
},
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
displayName: 'Values',
|
|
121
|
-
name: 'values',
|
|
122
|
-
values: [
|
|
123
|
-
{
|
|
124
|
-
displayName: 'Header Row',
|
|
125
|
-
name: 'headerRow',
|
|
126
|
-
type: 'number',
|
|
127
|
-
typeOptions: {
|
|
128
|
-
minValue: 1,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
displayName: 'First Data Row',
|
|
77
|
+
name: 'firstDataRow',
|
|
78
|
+
type: 'number',
|
|
79
|
+
typeOptions: {
|
|
80
|
+
minValue: 1,
|
|
81
|
+
},
|
|
82
|
+
default: 2,
|
|
83
|
+
description: "Index is relative to the set 'Range', first row index is 1",
|
|
84
|
+
hint: 'Index of first row which contains the actual data',
|
|
85
|
+
displayOptions: {
|
|
86
|
+
show: {
|
|
87
|
+
rangeDefinition: ['specifyRange'],
|
|
129
88
|
},
|
|
130
|
-
default: 1,
|
|
131
|
-
description: "Index is relative to the set 'Range', first row index is 1",
|
|
132
|
-
hint: 'Index of the row which contains the column names',
|
|
133
89
|
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Range',
|
|
93
|
+
name: 'range',
|
|
94
|
+
type: 'string',
|
|
95
|
+
default: '',
|
|
96
|
+
placeholder: 'A:Z',
|
|
97
|
+
description: 'The table range to read from or to append data to. See the Google <a href="https://developers.google.com/sheets/api/guides/values#writing">documentation</a> for the details.',
|
|
98
|
+
hint: 'You can specify both the rows and the columns, e.g. C4:E7',
|
|
99
|
+
displayOptions: {
|
|
100
|
+
show: {
|
|
101
|
+
rangeDefinition: ['specifyRangeA1'],
|
|
140
102
|
},
|
|
141
|
-
default: 2,
|
|
142
|
-
description: "Index is relative to the set 'Range', first row index is 1",
|
|
143
|
-
hint: 'Index of first row which contains the actual data',
|
|
144
103
|
},
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
exports.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
{
|
|
168
|
-
name: 'Values (unformatted)',
|
|
169
|
-
value: 'UNFORMATTED_VALUE',
|
|
170
|
-
description: 'Numbers stay as numbers, but any currency signs or special formatting is lost',
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
name: 'Values (formatted)',
|
|
174
|
-
value: 'FORMATTED_VALUE',
|
|
175
|
-
description: 'Numbers are turned to text, and displayed as in Google Sheets (e.g. with commas or currency signs)',
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
name: 'Formulas',
|
|
179
|
-
value: 'FORMULA',
|
|
180
|
-
},
|
|
181
|
-
],
|
|
182
|
-
default: '',
|
|
183
|
-
description: 'Determines how values should be rendered in the output',
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
};
|
|
109
|
+
exports.locationDefine = {
|
|
110
|
+
displayName: 'Data Location on Sheet',
|
|
111
|
+
name: 'locationDefine',
|
|
112
|
+
type: 'fixedCollection',
|
|
113
|
+
placeholder: 'Select Range',
|
|
114
|
+
default: { values: {} },
|
|
115
|
+
options: [
|
|
116
|
+
{
|
|
117
|
+
displayName: 'Values',
|
|
118
|
+
name: 'values',
|
|
119
|
+
values: [
|
|
120
|
+
{
|
|
121
|
+
displayName: 'Header Row',
|
|
122
|
+
name: 'headerRow',
|
|
123
|
+
type: 'number',
|
|
124
|
+
typeOptions: {
|
|
125
|
+
minValue: 1,
|
|
184
126
|
},
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
name: 'Serial Number',
|
|
198
|
-
value: 'SERIAL_NUMBER',
|
|
199
|
-
description: 'A number representing the number of days since Dec 30, 1899',
|
|
200
|
-
},
|
|
201
|
-
],
|
|
127
|
+
default: 1,
|
|
128
|
+
description: "Index is relative to the set 'Range', first row index is 1",
|
|
129
|
+
hint: 'Index of the row which contains the column names',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
displayName: 'First Data Row',
|
|
133
|
+
name: 'firstDataRow',
|
|
134
|
+
type: 'number',
|
|
135
|
+
typeOptions: {
|
|
136
|
+
minValue: 1,
|
|
202
137
|
},
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
]
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
138
|
+
default: 2,
|
|
139
|
+
description: "Index is relative to the set 'Range', first row index is 1",
|
|
140
|
+
hint: 'Index of first row which contains the actual data',
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
};
|
|
146
|
+
exports.outputFormatting = {
|
|
147
|
+
displayName: 'Output Formatting',
|
|
148
|
+
name: 'outputFormatting',
|
|
149
|
+
type: 'fixedCollection',
|
|
150
|
+
placeholder: 'Add Formatting',
|
|
151
|
+
default: { values: { general: 'UNFORMATTED_VALUE', date: 'FORMATTED_STRING' } },
|
|
152
|
+
options: [
|
|
153
|
+
{
|
|
154
|
+
displayName: 'Values',
|
|
155
|
+
name: 'values',
|
|
156
|
+
values: [
|
|
157
|
+
{
|
|
158
|
+
displayName: 'General Formatting',
|
|
159
|
+
name: 'general',
|
|
160
|
+
type: 'options',
|
|
161
|
+
options: [
|
|
162
|
+
{
|
|
163
|
+
name: 'Values (unformatted)',
|
|
164
|
+
value: 'UNFORMATTED_VALUE',
|
|
165
|
+
description: 'Numbers stay as numbers, but any currency signs or special formatting is lost',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'Values (formatted)',
|
|
169
|
+
value: 'FORMATTED_VALUE',
|
|
170
|
+
description: 'Numbers are turned to text, and displayed as in Google Sheets (e.g. with commas or currency signs)',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'Formulas',
|
|
174
|
+
value: 'FORMULA',
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
default: '',
|
|
178
|
+
description: 'Determines how values should be rendered in the output',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
displayName: 'Date Formatting',
|
|
182
|
+
name: 'date',
|
|
183
|
+
type: 'options',
|
|
184
|
+
default: '',
|
|
185
|
+
options: [
|
|
186
|
+
{
|
|
187
|
+
name: 'Formatted Text',
|
|
188
|
+
value: 'FORMATTED_STRING',
|
|
189
|
+
description: "As displayed in Google Sheets, e.g. '01/01/2022'",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: 'Serial Number',
|
|
193
|
+
value: 'SERIAL_NUMBER',
|
|
194
|
+
description: 'A number representing the number of days since Dec 30, 1899',
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
};
|
|
202
|
+
exports.cellFormat = {
|
|
203
|
+
displayName: 'Cell Format',
|
|
204
|
+
name: 'cellFormat',
|
|
205
|
+
type: 'options',
|
|
206
|
+
options: [
|
|
207
|
+
{
|
|
208
|
+
name: 'Let Google Sheets format',
|
|
209
|
+
value: 'USER_ENTERED',
|
|
210
|
+
description: 'Cells are styled as if you typed the values into Google Sheets directly',
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'Let n8n format',
|
|
214
|
+
value: 'RAW',
|
|
215
|
+
description: 'Cells have the same types as the input data',
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
default: 'USER_ENTERED',
|
|
219
|
+
description: 'Determines how data should be interpreted',
|
|
220
|
+
};
|
|
221
|
+
exports.handlingExtraData = {
|
|
222
|
+
displayName: 'Handling extra fields in input',
|
|
223
|
+
name: 'handlingExtraData',
|
|
224
|
+
type: 'options',
|
|
225
|
+
options: [
|
|
226
|
+
{
|
|
227
|
+
name: 'Insert in New Column(s)',
|
|
228
|
+
value: 'insertInNewColumn',
|
|
229
|
+
description: 'Create a new column for extra data',
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: 'Ignore Them',
|
|
233
|
+
value: 'ignoreIt',
|
|
234
|
+
description: 'Ignore extra data',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: 'Error',
|
|
238
|
+
value: 'error',
|
|
239
|
+
description: 'Throw an error',
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
displayOptions: {
|
|
243
|
+
show: {
|
|
244
|
+
'/dataMode': ['autoMapInputData'],
|
|
255
245
|
},
|
|
256
|
-
default: 'insertInNewColumn',
|
|
257
|
-
description: "What do to with fields that don't match any columns in the Google Sheet",
|
|
258
246
|
},
|
|
259
|
-
|
|
247
|
+
default: 'insertInNewColumn',
|
|
248
|
+
description: "What do to with fields that don't match any columns in the Google Sheet",
|
|
249
|
+
};
|
|
260
250
|
//# sourceMappingURL=commonDescription.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonDescription.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Sheet/v2/actions/sheet/commonDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,
|
|
1
|
+
{"version":3,"file":"commonDescription.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Sheet/v2/actions/sheet/commonDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAoB;IACnD,WAAW,EAAE,wBAAwB;IACrC,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,iB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ACD;iBACD;aACD;SACD;KACD;CACD,CAAC;AAEW,QAAA,UAAU,GAAoB;IAC1C,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE;QACR;YAEC,IAAI,EAAE,0BAA0B;YAChC,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,yEAAyE;SACtF;QACD;YAEC,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,6CAA6C;SAC1D;KACD;IACD,OAAO,EAAE,cAAc;IACvB,WAAW,EAAE,2CAA2C;CACxD,CAAC;AAEW,QAAA,iBAAiB,GAAoB;IAEjD,WAAW,EAAE,gCAAgC;IAC7C,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE;QACR;YACC,IAAI,EAAE,yBAAyB;YAC/B,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EAAE,oCAAoC;SACjD;QACD;YACC,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,mBAAmB;SAChC;QACD;YACC,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,gBAAgB;SAC7B;KACD;IACD,cAAc,EAAE;QACf,IAAI,EAAE;YACL,WAAW,EAAE,CAAC,kBAAkB,CAAC;SACjC;KACD;IACD,OAAO,EAAE,mBAAmB;IAC5B,WAAW,EAAE,yEAAyE;CACtF,CAAC"}
|
|
@@ -67,8 +67,8 @@ exports.description = [
|
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
69
|
options: [
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
commonDescription_1.dataLocationOnSheet,
|
|
71
|
+
commonDescription_1.outputFormatting,
|
|
72
72
|
{
|
|
73
73
|
displayName: 'When Filter Has Multiple Matches',
|
|
74
74
|
name: 'returnAllMatches',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Sheet/v2/actions/sheet/read.operation.ts"],"names":[],"mappings":";;;AAEA,yEAI0C;AAC1C,2DAA4E;AAQ5E,iEAA2E;AAE9D,QAAA,WAAW,GAAoB;IAC3C;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE;YACZ,uBAAuB,EAAE,YAAY;YACrC,cAAc,EAAE,IAAI;SACpB;QACD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACP;wBAEC,WAAW,EAAE,QAAQ;wBACrB,IAAI,EAAE,cAAc;wBACpB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE;4BACZ,oBAAoB,EAAE,CAAC,iBAAiB,CAAC;4BACzC,iBAAiB,EAAE,2CAA2C;yBAC9D;wBACD,OAAO,EAAE,EAAE;wBACX,WAAW,EACV,yHAAyH;qBAC1H;oBACD;wBACC,WAAW,EAAE,OAAO;wBACpB,IAAI,EAAE,aAAa;wBACnB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,IAAI,EAAE,+CAA+C;qBACrD;iBACD;aACD;SACD;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,MAAM,CAAC;aACnB;YACD,IAAI,EAAE;gBACL,GAAG,uCAAkB;aACrB;SACD;KACD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,MAAM,CAAC;aACnB;YACD,IAAI,EAAE;gBACL,GAAG,uCAAkB;aACrB;SACD;QACD,OAAO,EAAE;YACR,
|
|
1
|
+
{"version":3,"file":"read.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Sheet/v2/actions/sheet/read.operation.ts"],"names":[],"mappings":";;;AAEA,yEAI0C;AAC1C,2DAA4E;AAQ5E,iEAA2E;AAE9D,QAAA,WAAW,GAAoB;IAC3C;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE;YACZ,uBAAuB,EAAE,YAAY;YACrC,cAAc,EAAE,IAAI;SACpB;QACD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACP;wBAEC,WAAW,EAAE,QAAQ;wBACrB,IAAI,EAAE,cAAc;wBACpB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE;4BACZ,oBAAoB,EAAE,CAAC,iBAAiB,CAAC;4BACzC,iBAAiB,EAAE,2CAA2C;yBAC9D;wBACD,OAAO,EAAE,EAAE;wBACX,WAAW,EACV,yHAAyH;qBAC1H;oBACD;wBACC,WAAW,EAAE,OAAO;wBACpB,IAAI,EAAE,aAAa;wBACnB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,IAAI,EAAE,+CAA+C;qBACrD;iBACD;aACD;SACD;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,MAAM,CAAC;aACnB;YACD,IAAI,EAAE;gBACL,GAAG,uCAAkB;aACrB;SACD;KACD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OA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KAC7F;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAClC,MAAM,UAAU,GAAG,IAAA,kCAAsB,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAExD,MAAM,UAAU,GAAyB,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACzE,OAAO;YACN,IAAI,EAAE,IAAI;YACV,UAAU;SACV,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,UAAU,CAAC;AACnB,CAAC;AAvED,0BAuEC"}
|
|
@@ -162,7 +162,7 @@ exports.description = [
|
|
|
162
162
|
show: {
|
|
163
163
|
resource: ['sheet'],
|
|
164
164
|
operation: ['update'],
|
|
165
|
-
'@version': [4],
|
|
165
|
+
'@version': [4, 4.1],
|
|
166
166
|
},
|
|
167
167
|
hide: {
|
|
168
168
|
...GoogleSheets_utils_1.untilSheetSelected,
|
|
@@ -184,18 +184,26 @@ exports.description = [
|
|
|
184
184
|
...GoogleSheets_utils_1.untilSheetSelected,
|
|
185
185
|
},
|
|
186
186
|
},
|
|
187
|
-
options: [
|
|
187
|
+
options: [
|
|
188
|
+
commonDescription_1.cellFormat,
|
|
189
|
+
commonDescription_1.locationDefine,
|
|
190
|
+
commonDescription_1.handlingExtraData,
|
|
191
|
+
{
|
|
192
|
+
...commonDescription_1.handlingExtraData,
|
|
193
|
+
displayOptions: { show: { '/columns.mappingMode': ['autoMapInputData'] } },
|
|
194
|
+
},
|
|
195
|
+
],
|
|
188
196
|
},
|
|
189
197
|
];
|
|
190
198
|
async function execute(sheet, sheetName) {
|
|
191
199
|
var _a;
|
|
192
200
|
const items = this.getInputData();
|
|
193
|
-
const
|
|
201
|
+
const nodeVersion = this.getNode().typeVersion;
|
|
194
202
|
const range = `${sheetName}!A:Z`;
|
|
203
|
+
const valueInputMode = this.getNodeParameter('options.cellFormat', 0, (0, GoogleSheets_utils_1.cellFormatDefault)(nodeVersion));
|
|
195
204
|
const options = this.getNodeParameter('options', 0, {});
|
|
196
205
|
const valueRenderMode = (options.valueRenderMode || 'UNFORMATTED_VALUE');
|
|
197
206
|
const locationDefineOptions = (_a = options.locationDefine) === null || _a === void 0 ? void 0 : _a.values;
|
|
198
|
-
const nodeVersion = this.getNode().typeVersion;
|
|
199
207
|
let headerRow = 0;
|
|
200
208
|
let firstDataRow = 1;
|
|
201
209
|
if (locationDefineOptions) {
|
|
@@ -232,7 +240,7 @@ async function execute(sheet, sheetName) {
|
|
|
232
240
|
if (handlingExtraDataOption === 'ignoreIt') {
|
|
233
241
|
data.push(items[i].json);
|
|
234
242
|
}
|
|
235
|
-
if (handlingExtraDataOption === 'error') {
|
|
243
|
+
if (handlingExtraDataOption === 'error' && columnsToMatchOn[0] !== 'row_number') {
|
|
236
244
|
Object.keys(items[i].json).forEach((key) => {
|
|
237
245
|
if (!columnNames.includes(key)) {
|
|
238
246
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Unexpected fields in node input', {
|
|
@@ -243,7 +251,7 @@ async function execute(sheet, sheetName) {
|
|
|
243
251
|
});
|
|
244
252
|
data.push(items[i].json);
|
|
245
253
|
}
|
|
246
|
-
if (handlingExtraDataOption === 'insertInNewColumn') {
|
|
254
|
+
if (handlingExtraDataOption === 'insertInNewColumn' && columnsToMatchOn[0] !== 'row_number') {
|
|
247
255
|
Object.keys(items[i].json).forEach((key) => {
|
|
248
256
|
if (!columnNames.includes(key)) {
|
|
249
257
|
newColumns.add(key);
|
|
@@ -292,9 +300,17 @@ async function execute(sheet, sheetName) {
|
|
|
292
300
|
}
|
|
293
301
|
}
|
|
294
302
|
if (newColumns.size) {
|
|
295
|
-
await sheet.updateRows(sheetName, [columnNames.concat([...newColumns])], options.cellFormat ||
|
|
303
|
+
await sheet.updateRows(sheetName, [columnNames.concat([...newColumns])], options.cellFormat || (0, GoogleSheets_utils_1.cellFormatDefault)(nodeVersion), headerRow + 1);
|
|
304
|
+
}
|
|
305
|
+
let preparedData;
|
|
306
|
+
if (columnsToMatchOn[0] === 'row_number') {
|
|
307
|
+
preparedData = sheet.prepareDataForUpdatingByRowNumber(data, range, [
|
|
308
|
+
columnNames.concat([...newColumns]),
|
|
309
|
+
]);
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
preparedData = await sheet.prepareDataForUpdateOrUpsert(data, columnsToMatchOn[0], range, headerRow, firstDataRow, valueRenderMode, false, [columnNames.concat([...newColumns])], columnValues);
|
|
296
313
|
}
|
|
297
|
-
const preparedData = await sheet.prepareDataForUpdateOrUpsert(data, columnsToMatchOn[0], range, headerRow, firstDataRow, valueRenderMode, false, [columnNames.concat([...newColumns])], columnValues);
|
|
298
314
|
updateData.push(...preparedData.updateData);
|
|
299
315
|
}
|
|
300
316
|
if (updateData.length) {
|