n8n-nodes-docspell 0.43.4 → 0.43.6

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.
Files changed (52) hide show
  1. package/README.md +1 -1
  2. package/dist/credentials/DocspellApi.credentials.d.ts +1 -1
  3. package/dist/credentials/DocspellApi.credentials.js +24 -24
  4. package/dist/credentials/DocspellApi.credentials.js.map +1 -1
  5. package/dist/credentials/DocspellSession.js +7 -7
  6. package/dist/credentials/DocspellSession.js.map +1 -1
  7. package/dist/nodes/Common/GenericFunctions.d.ts +2 -2
  8. package/dist/nodes/Common/GenericFunctions.js +24 -20
  9. package/dist/nodes/Common/GenericFunctions.js.map +1 -1
  10. package/dist/nodes/Docspell/Docspell.node.d.ts +1 -1
  11. package/dist/nodes/Docspell/Docspell.node.js +24 -24
  12. package/dist/nodes/Docspell/Docspell.node.js.map +1 -1
  13. package/dist/nodes/Docspell/Docspell.node.json +1 -3
  14. package/dist/nodes/Docspell/methods/loadOptions.d.ts +1 -1
  15. package/dist/nodes/Docspell/methods/loadOptions.js +9 -8
  16. package/dist/nodes/Docspell/methods/loadOptions.js.map +1 -1
  17. package/dist/nodes/Docspell/resources/attachment/download.d.ts +1 -1
  18. package/dist/nodes/Docspell/resources/attachment/download.js +37 -33
  19. package/dist/nodes/Docspell/resources/attachment/download.js.map +1 -1
  20. package/dist/nodes/Docspell/resources/attachment/index.d.ts +1 -1
  21. package/dist/nodes/Docspell/resources/attachment/index.js +9 -9
  22. package/dist/nodes/Docspell/resources/attachment/index.js.map +1 -1
  23. package/dist/nodes/Docspell/resources/item/get.d.ts +1 -1
  24. package/dist/nodes/Docspell/resources/item/get.js +9 -9
  25. package/dist/nodes/Docspell/resources/item/get.js.map +1 -1
  26. package/dist/nodes/Docspell/resources/item/index.d.ts +1 -1
  27. package/dist/nodes/Docspell/resources/item/index.js +25 -25
  28. package/dist/nodes/Docspell/resources/item/index.js.map +1 -1
  29. package/dist/nodes/Docspell/resources/item/search.d.ts +1 -1
  30. package/dist/nodes/Docspell/resources/item/search.js +40 -40
  31. package/dist/nodes/Docspell/resources/item/search.js.map +1 -1
  32. package/dist/nodes/Docspell/resources/item/update.d.ts +1 -1
  33. package/dist/nodes/Docspell/resources/item/update.js +179 -125
  34. package/dist/nodes/Docspell/resources/item/update.js.map +1 -1
  35. package/dist/nodes/Docspell/resources/item/updateMany.d.ts +1 -1
  36. package/dist/nodes/Docspell/resources/item/updateMany.js +80 -53
  37. package/dist/nodes/Docspell/resources/item/updateMany.js.map +1 -1
  38. package/dist/nodes/Docspell/resources/item/upload.d.ts +1 -1
  39. package/dist/nodes/Docspell/resources/item/upload.js +80 -69
  40. package/dist/nodes/Docspell/resources/item/upload.js.map +1 -1
  41. package/dist/nodes/Docspell/resources/organization/get.d.ts +1 -1
  42. package/dist/nodes/Docspell/resources/organization/get.js +9 -9
  43. package/dist/nodes/Docspell/resources/organization/get.js.map +1 -1
  44. package/dist/nodes/Docspell/resources/organization/getAll.d.ts +1 -1
  45. package/dist/nodes/Docspell/resources/organization/getAll.js +20 -20
  46. package/dist/nodes/Docspell/resources/organization/getAll.js.map +1 -1
  47. package/dist/nodes/Docspell/resources/organization/index.d.ts +1 -1
  48. package/dist/nodes/Docspell/resources/organization/index.js +13 -13
  49. package/dist/nodes/Docspell/resources/organization/index.js.map +1 -1
  50. package/dist/package.json +19 -17
  51. package/dist/tsconfig.tsbuildinfo +1 -1
  52. package/package.json +19 -17
@@ -4,116 +4,141 @@ exports.LABEL_OF = exports.ENDPOINT_OF = exports.itemUpdateDescription = exports
4
4
  exports.executeItemUpdate = executeItemUpdate;
5
5
  const n8n_workflow_1 = require("n8n-workflow");
6
6
  const GenericFunctions_1 = require("../../../Common/GenericFunctions");
7
- const show = { resource: ['item'], operation: ['update'] };
7
+ const show = { resource: ["item"], operation: ["update"] };
8
8
  exports.updateFieldOptions = [
9
9
  {
10
- displayName: 'Concerning Equipment Name or ID',
11
- name: 'concEquipment',
12
- type: 'options',
13
- typeOptions: { loadOptionsMethod: 'getEquipment' },
14
- default: '',
10
+ displayName: "Concerning Equipment Name or ID",
11
+ name: "concEquipment",
12
+ type: "options",
13
+ typeOptions: { loadOptionsMethod: "getEquipment" },
14
+ default: "",
15
15
  description: 'None removes the current one. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
16
16
  },
17
17
  {
18
- displayName: 'Concerning Person Name or ID',
19
- name: 'concPerson',
20
- type: 'options',
21
- typeOptions: { loadOptionsMethod: 'getPersons' },
22
- default: '',
18
+ displayName: "Concerning Person Name or ID",
19
+ name: "concPerson",
20
+ type: "options",
21
+ typeOptions: { loadOptionsMethod: "getPersons" },
22
+ default: "",
23
23
  description: 'None removes the current one. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
24
24
  },
25
25
  {
26
- displayName: 'Correspondent Organization Name or ID',
27
- name: 'corrOrg',
28
- type: 'options',
29
- typeOptions: { loadOptionsMethod: 'getOrganizations' },
30
- default: '',
26
+ displayName: "Correspondent Organization Name or ID",
27
+ name: "corrOrg",
28
+ type: "options",
29
+ typeOptions: { loadOptionsMethod: "getOrganizations" },
30
+ default: "",
31
31
  description: 'None removes the current one. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
32
32
  },
33
33
  {
34
- displayName: 'Correspondent Person Name or ID',
35
- name: 'corrPerson',
36
- type: 'options',
37
- typeOptions: { loadOptionsMethod: 'getPersons' },
38
- default: '',
34
+ displayName: "Correspondent Person Name or ID",
35
+ name: "corrPerson",
36
+ type: "options",
37
+ typeOptions: { loadOptionsMethod: "getPersons" },
38
+ default: "",
39
39
  description: 'None removes the current one. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
40
40
  },
41
41
  {
42
- displayName: 'Direction',
43
- name: 'direction',
44
- type: 'options',
45
- default: 'incoming',
42
+ displayName: "Direction",
43
+ name: "direction",
44
+ type: "options",
45
+ default: "incoming",
46
46
  options: [
47
- { name: 'Incoming', value: 'incoming' },
48
- { name: 'Outgoing', value: 'outgoing' },
47
+ { name: "Incoming", value: "incoming" },
48
+ { name: "Outgoing", value: "outgoing" },
49
49
  ],
50
50
  },
51
- { displayName: 'Due Date', name: 'dueDate', type: 'dateTime', default: '', description: 'Leave empty to remove' },
52
51
  {
53
- displayName: 'Folder Name or ID',
54
- name: 'folder',
55
- type: 'options',
56
- typeOptions: { loadOptionsMethod: 'getFolders' },
57
- default: '',
52
+ displayName: "Due Date",
53
+ name: "dueDate",
54
+ type: "dateTime",
55
+ default: "",
56
+ description: "Leave empty to remove",
57
+ },
58
+ {
59
+ displayName: "Folder Name or ID",
60
+ name: "folder",
61
+ type: "options",
62
+ typeOptions: { loadOptionsMethod: "getFolders" },
63
+ default: "",
58
64
  description: 'None removes the current one. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
59
65
  },
60
- { displayName: 'Item Date', name: 'itemDate', type: 'dateTime', default: '', description: 'Leave empty to remove' },
61
- { displayName: 'Name', name: 'name', type: 'string', default: '', description: 'The new name of the item. It cannot be empty.' },
62
- { displayName: 'Notes', name: 'notes', type: 'string', typeOptions: { rows: 4 }, default: '', description: 'Leave empty to remove the notes' },
63
66
  {
64
- displayName: 'Tag Names or IDs',
65
- name: 'tags',
66
- type: 'multiOptions',
67
- typeOptions: { loadOptionsMethod: 'getTags' },
67
+ displayName: "Item Date",
68
+ name: "itemDate",
69
+ type: "dateTime",
70
+ default: "",
71
+ description: "Leave empty to remove",
72
+ },
73
+ {
74
+ displayName: "Name",
75
+ name: "name",
76
+ type: "string",
77
+ default: "",
78
+ description: "The new name of the item. It cannot be empty.",
79
+ },
80
+ {
81
+ displayName: "Notes",
82
+ name: "notes",
83
+ type: "string",
84
+ typeOptions: { rows: 4 },
85
+ default: "",
86
+ description: "Leave empty to remove the notes",
87
+ },
88
+ {
89
+ displayName: "Tag Names or IDs",
90
+ name: "tags",
91
+ type: "multiOptions",
92
+ typeOptions: { loadOptionsMethod: "getTags" },
68
93
  default: [],
69
94
  description: 'A tag that does not exist is an error. With Replace, choosing none removes all tags. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
70
95
  },
71
96
  {
72
- displayName: 'Tags Mode',
73
- name: 'tagsMode',
74
- type: 'options',
75
- default: 'replace',
76
- description: 'What to do with the tags listed under Tags',
97
+ displayName: "Tags Mode",
98
+ name: "tagsMode",
99
+ type: "options",
100
+ default: "replace",
101
+ description: "What to do with the tags listed under Tags",
77
102
  options: [
78
- { name: 'Replace', value: 'replace', description: 'The item gets exactly these tags' },
79
- { name: 'Add', value: 'add', description: 'Keep the current tags and add these' },
80
- { name: 'Remove', value: 'remove', description: 'Remove only these tags' },
103
+ { name: "Replace", value: "replace", description: "The item gets exactly these tags" },
104
+ { name: "Add", value: "add", description: "Keep the current tags and add these" },
105
+ { name: "Remove", value: "remove", description: "Remove only these tags" },
81
106
  ],
82
107
  },
83
108
  ];
84
109
  const customFieldsProperty = (name, show) => ({
85
- displayName: 'Custom Fields',
110
+ displayName: "Custom Fields",
86
111
  name,
87
- type: 'fixedCollection',
112
+ type: "fixedCollection",
88
113
  typeOptions: { multipleValues: true },
89
- placeholder: 'Add Custom Field',
114
+ placeholder: "Add Custom Field",
90
115
  default: {},
91
- description: 'Custom fields to set. The field must already exist in Docspell.',
116
+ description: "Custom fields to set. The field must already exist in Docspell.",
92
117
  displayOptions: { show },
93
118
  options: [
94
119
  {
95
- displayName: 'Field',
96
- name: 'values',
120
+ displayName: "Field",
121
+ name: "values",
97
122
  values: [
98
123
  {
99
- displayName: 'Field Name or ID',
100
- name: 'field',
101
- type: 'options',
102
- typeOptions: { loadOptionsMethod: 'getCustomFields' },
103
- default: '',
124
+ displayName: "Field Name or ID",
125
+ name: "field",
126
+ type: "options",
127
+ typeOptions: { loadOptionsMethod: "getCustomFields" },
128
+ default: "",
104
129
  description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
105
130
  },
106
- { displayName: 'Value', name: 'value', type: 'string', default: '' },
131
+ { displayName: "Value", name: "value", type: "string", default: "" },
107
132
  ],
108
133
  },
109
134
  ],
110
135
  });
111
136
  exports.customFieldsProperty = customFieldsProperty;
112
137
  const removeCustomFieldsProperty = (show) => ({
113
- displayName: 'Remove Custom Field Names or IDs',
114
- name: 'removeCustomFields',
115
- type: 'multiOptions',
116
- typeOptions: { loadOptionsMethod: 'getCustomFields' },
138
+ displayName: "Remove Custom Field Names or IDs",
139
+ name: "removeCustomFields",
140
+ type: "multiOptions",
141
+ typeOptions: { loadOptionsMethod: "getCustomFields" },
117
142
  default: [],
118
143
  description: 'Custom fields whose value is removed. An item that does not have the field is left as it is. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
119
144
  displayOptions: { show },
@@ -121,126 +146,152 @@ const removeCustomFieldsProperty = (show) => ({
121
146
  exports.removeCustomFieldsProperty = removeCustomFieldsProperty;
122
147
  exports.itemUpdateDescription = [
123
148
  {
124
- displayName: 'Item ID',
125
- name: 'itemId',
126
- type: 'string',
149
+ displayName: "Item ID",
150
+ name: "itemId",
151
+ type: "string",
127
152
  required: true,
128
- default: '',
129
- description: 'The ID of the item, as returned by Search',
153
+ default: "",
154
+ description: "The ID of the item, as returned by Search",
130
155
  displayOptions: { show },
131
156
  },
132
157
  {
133
- displayName: 'Update Fields',
134
- name: 'updateFields',
135
- type: 'collection',
136
- placeholder: 'Add Field',
158
+ displayName: "Update Fields",
159
+ name: "updateFields",
160
+ type: "collection",
161
+ placeholder: "Add Field",
137
162
  default: {},
138
- description: 'Only the fields added here are changed. Where noted, an empty value removes the current one.',
163
+ description: "Only the fields added here are changed. Where noted, an empty value removes the current one.",
139
164
  displayOptions: { show },
140
165
  options: exports.updateFieldOptions,
141
166
  },
142
- (0, exports.customFieldsProperty)('customFields', show),
167
+ (0, exports.customFieldsProperty)("customFields", show),
143
168
  (0, exports.removeCustomFieldsProperty)(show),
144
169
  ];
145
170
  exports.ENDPOINT_OF = {
146
- concEquipment: 'concEquipment',
147
- concPerson: 'concPerson',
148
- corrOrg: 'corrOrg',
149
- corrPerson: 'corrPerson',
171
+ concEquipment: "concEquipment",
172
+ concPerson: "concPerson",
173
+ corrOrg: "corrOrg",
174
+ corrPerson: "corrPerson",
150
175
  };
151
176
  exports.LABEL_OF = {
152
- concEquipment: 'concerning equipment',
153
- concPerson: 'concerning person',
154
- corrOrg: 'correspondent organization',
155
- corrPerson: 'correspondent person',
177
+ concEquipment: "concerning equipment",
178
+ concPerson: "concerning person",
179
+ corrOrg: "correspondent organization",
180
+ corrPerson: "correspondent person",
156
181
  };
157
182
  async function executeItemUpdate(context, itemIndex) {
158
183
  var _a, _b;
159
184
  const fail = (message) => new n8n_workflow_1.NodeOperationError(context.getNode(), message, { itemIndex });
160
- const itemId = context.getNodeParameter('itemId', itemIndex, '').trim();
185
+ const itemId = context.getNodeParameter("itemId", itemIndex, "").trim();
161
186
  if (!itemId)
162
- throw fail('The Item ID is empty');
187
+ throw fail("The Item ID is empty");
163
188
  const itemPath = `/sec/item/${encodeURIComponent(itemId)}`;
164
- const fields = context.getNodeParameter('updateFields', itemIndex, {});
165
- const customFields = ((_a = context.getNodeParameter('customFields', itemIndex, {})
166
- .values) !== null && _a !== void 0 ? _a : []).filter((entry) => entry.field.trim() !== '');
167
- const removeCustomFields = (0, GenericFunctions_1.tagTokens)(context.getNodeParameter('removeCustomFields', itemIndex, []));
168
- if (Object.keys(fields).length === 0 && customFields.length === 0 && removeCustomFields.length === 0) {
169
- throw fail('Choose at least one field to update');
189
+ const fields = context.getNodeParameter("updateFields", itemIndex, {});
190
+ const customFields = ((_a = context.getNodeParameter("customFields", itemIndex, {}).values) !== null && _a !== void 0 ? _a : []).filter((entry) => entry.field.trim() !== "");
191
+ const removeCustomFields = (0, GenericFunctions_1.tagTokens)(context.getNodeParameter("removeCustomFields", itemIndex, []));
192
+ if (Object.keys(fields).length === 0 &&
193
+ customFields.length === 0 &&
194
+ removeCustomFields.length === 0) {
195
+ throw fail("Choose at least one field to update");
170
196
  }
171
- if ('name' in fields && String(fields.name).trim() === '')
172
- throw fail('The name cannot be empty');
173
- if ('tags' in fields && (0, GenericFunctions_1.hasMissingTag)(fields.tags)) {
174
- throw fail('The tags value is empty (null or undefined). Leave the field empty to remove all tags.');
197
+ if ("name" in fields && String(fields.name).trim() === "")
198
+ throw fail("The name cannot be empty");
199
+ if ("tags" in fields && (0, GenericFunctions_1.hasMissingTag)(fields.tags)) {
200
+ throw fail("The tags value is empty (null or undefined). Leave the field empty to remove all tags.");
175
201
  }
176
202
  const fieldsToRemove = await (0, GenericFunctions_1.resolveRemovedCustomFields)(context, removeCustomFields, customFields.map((entry) => entry.field.trim()), fail);
177
- const itemDate = 'itemDate' in fields ? (0, GenericFunctions_1.dateBody)('Item Date', fields.itemDate, fail) : undefined;
178
- const dueDate = 'dueDate' in fields ? (0, GenericFunctions_1.dateBody)('Due Date', fields.dueDate, fail) : undefined;
203
+ const itemDate = "itemDate" in fields ? (0, GenericFunctions_1.dateBody)("Item Date", fields.itemDate, fail) : undefined;
204
+ const dueDate = "dueDate" in fields ? (0, GenericFunctions_1.dateBody)("Due Date", fields.dueDate, fail) : undefined;
179
205
  const applied = [];
180
206
  const put = async (label, method, endpoint, body) => {
181
- const result = await (0, GenericFunctions_1.docspellApiRequest)(context, { method, endpoint: `${itemPath}${endpoint}`, body });
207
+ const result = await (0, GenericFunctions_1.docspellApiRequest)(context, {
208
+ method,
209
+ endpoint: `${itemPath}${endpoint}`,
210
+ body,
211
+ });
182
212
  if (result.success === false) {
183
- const reason = result.message === 'Not found' ? `item "${itemId}" was not found` : String(result.message);
184
- const done = applied.length > 0 ? ` (already applied: ${applied.join(', ')})` : '';
213
+ const reason = result.message === "Not found" ? `item "${itemId}" was not found` : String(result.message);
214
+ const done = applied.length > 0 ? ` (already applied: ${applied.join(", ")})` : "";
185
215
  throw fail(`Could not update the ${label}: ${reason}${done}`);
186
216
  }
187
217
  applied.push(label);
188
218
  };
189
219
  const steps = [];
190
- if ('name' in fields)
191
- steps.push({ label: 'name', run: () => put('name', 'PUT', '/name', { text: fields.name }) });
192
- if ('notes' in fields) {
193
- steps.push({ label: 'notes', run: () => put('notes', 'PUT', '/notes', fields.notes === '' ? { text: null } : { text: fields.notes }) });
220
+ if ("name" in fields)
221
+ steps.push({
222
+ label: "name",
223
+ run: () => put("name", "PUT", "/name", { text: fields.name }),
224
+ });
225
+ if ("notes" in fields) {
226
+ steps.push({
227
+ label: "notes",
228
+ run: () => put("notes", "PUT", "/notes", fields.notes === "" ? { text: null } : { text: fields.notes }),
229
+ });
194
230
  }
195
- if ('direction' in fields) {
196
- steps.push({ label: 'direction', run: () => put('direction', 'PUT', '/direction', { direction: fields.direction }) });
231
+ if ("direction" in fields) {
232
+ steps.push({
233
+ label: "direction",
234
+ run: () => put("direction", "PUT", "/direction", { direction: fields.direction }),
235
+ });
197
236
  }
198
237
  if (itemDate)
199
- steps.push({ label: 'item date', run: () => put('item date', 'PUT', '/date', itemDate) });
238
+ steps.push({ label: "item date", run: () => put("item date", "PUT", "/date", itemDate) });
200
239
  if (dueDate)
201
- steps.push({ label: 'due date', run: () => put('due date', 'PUT', '/duedate', dueDate) });
202
- if ('folder' in fields) {
203
- steps.push({ label: 'folder', run: () => put('folder', 'PUT', '/folder', fields.folder === '' ? { id: null } : { id: fields.folder }) });
240
+ steps.push({ label: "due date", run: () => put("due date", "PUT", "/duedate", dueDate) });
241
+ if ("folder" in fields) {
242
+ steps.push({
243
+ label: "folder",
244
+ run: () => put("folder", "PUT", "/folder", fields.folder === "" ? { id: null } : { id: fields.folder }),
245
+ });
204
246
  }
205
247
  for (const key of Object.keys(exports.ENDPOINT_OF)) {
206
248
  if (key in fields) {
207
249
  steps.push({
208
250
  label: exports.LABEL_OF[key],
209
- run: () => put(exports.LABEL_OF[key], 'PUT', `/${exports.ENDPOINT_OF[key]}`, fields[key] === '' ? { id: null } : { id: fields[key] }),
251
+ run: () => put(exports.LABEL_OF[key], "PUT", `/${exports.ENDPOINT_OF[key]}`, fields[key] === "" ? { id: null } : { id: fields[key] }),
210
252
  });
211
253
  }
212
254
  }
213
- if ('tags' in fields) {
255
+ if ("tags" in fields) {
214
256
  const wanted = (0, GenericFunctions_1.tagTokens)(fields.tags);
215
- const mode = (_b = fields.tagsMode) !== null && _b !== void 0 ? _b : 'replace';
257
+ const mode = (_b = fields.tagsMode) !== null && _b !== void 0 ? _b : "replace";
216
258
  const { ids, unknown } = await (0, GenericFunctions_1.resolveTags)(context, wanted);
217
259
  if (unknown.length > 0) {
218
- throw fail(`Tag${unknown.length > 1 ? 's' : ''} not found in Docspell: ${unknown.map((tag) => `"${tag}"`).join(', ')}`);
260
+ throw fail(`Tag${unknown.length > 1 ? "s" : ""} not found in Docspell: ${unknown.map((tag) => `"${tag}"`).join(", ")}`);
219
261
  }
220
- if (mode === 'remove') {
262
+ if (mode === "remove") {
221
263
  if (ids.length > 0)
222
- steps.push({ label: 'tags', run: () => put('tags', 'POST', '/tagsremove', { items: ids }) });
264
+ steps.push({
265
+ label: "tags",
266
+ run: () => put("tags", "POST", "/tagsremove", { items: ids }),
267
+ });
223
268
  }
224
- else if (mode === 'add') {
269
+ else if (mode === "add") {
225
270
  if (ids.length > 0) {
226
271
  steps.push({
227
- label: 'tags',
272
+ label: "tags",
228
273
  run: async () => {
229
274
  var _a;
230
- const item = (await (0, GenericFunctions_1.docspellApiRequest)(context, { method: 'GET', endpoint: itemPath }));
275
+ const item = (await (0, GenericFunctions_1.docspellApiRequest)(context, {
276
+ method: "GET",
277
+ endpoint: itemPath,
278
+ }));
231
279
  const current = ((_a = item.tags) !== null && _a !== void 0 ? _a : []).map((tag) => tag.id);
232
- await put('tags', 'PUT', '/tags', { items: [...new Set([...current, ...ids])] });
280
+ await put("tags", "PUT", "/tags", { items: [...new Set([...current, ...ids])] });
233
281
  },
234
282
  });
235
283
  }
236
284
  }
237
285
  else {
238
- steps.push({ label: 'tags', run: () => put('tags', 'PUT', '/tags', { items: ids }) });
286
+ steps.push({ label: "tags", run: () => put("tags", "PUT", "/tags", { items: ids }) });
239
287
  }
240
288
  }
241
289
  for (const { field, value } of customFields) {
242
290
  const label = `custom field "${field.trim()}"`;
243
- steps.push({ label, run: () => put(label, 'PUT', '/customfield', { field: field.trim(), value }) });
291
+ steps.push({
292
+ label,
293
+ run: () => put(label, "PUT", "/customfield", { field: field.trim(), value }),
294
+ });
244
295
  }
245
296
  for (const field of fieldsToRemove) {
246
297
  const label = `removal of custom field "${field.name}"`;
@@ -248,9 +299,12 @@ async function executeItemUpdate(context, itemIndex) {
248
299
  label,
249
300
  run: async () => {
250
301
  var _a;
251
- const current = (await (0, GenericFunctions_1.docspellApiRequest)(context, { method: 'GET', endpoint: itemPath }));
302
+ const current = (await (0, GenericFunctions_1.docspellApiRequest)(context, {
303
+ method: "GET",
304
+ endpoint: itemPath,
305
+ }));
252
306
  if (((_a = current.customfields) !== null && _a !== void 0 ? _a : []).some((entry) => entry.id === field.id)) {
253
- await put(label, 'DELETE', `/customfield/${encodeURIComponent(field.id)}`, {});
307
+ await put(label, "DELETE", `/customfield/${encodeURIComponent(field.id)}`, {});
254
308
  }
255
309
  },
256
310
  });
@@ -259,7 +313,7 @@ async function executeItemUpdate(context, itemIndex) {
259
313
  try {
260
314
  for (const step of steps)
261
315
  await step.run();
262
- item = await (0, GenericFunctions_1.docspellApiRequest)(context, { method: 'GET', endpoint: itemPath }, { 404: `Item "${itemId}" was not found` });
316
+ item = await (0, GenericFunctions_1.docspellApiRequest)(context, { method: "GET", endpoint: itemPath }, { 404: `Item "${itemId}" was not found` });
263
317
  }
264
318
  catch (error) {
265
319
  return (0, GenericFunctions_1.rethrowWithApplied)(applied, error, fail);
@@ -1 +1 @@
1
- {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/Docspell/resources/item/update.ts"],"names":[],"mappings":";;;AAgLA,8CA2HC;AA1SD,+CAAkD;AAGlD,uEAAuK;A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AM,IAAA,qCAAkB,EAAC,OAAO,EAAE;oBACjD,MAAM,EAAE,KAAK;oBACb,QAAQ,EAAE,QAAQ;iBACnB,CAAC,CAA+B,CAAC;gBAClC,IAAI,CAAC,MAAA,OAAO,CAAC,YAAY,mCAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;oBACxE,MAAM,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,gBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;gBACjF,CAAC;YACH,CAAC;SACF,CAAC,CAAC;IACL,CAAC;IAED,IAAI,IAAiB,CAAC;IACtB,IAAI,CAAC;QACH,KAAK,MAAM,IAAI,IAAI,KAAK;YAAE,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC;QAC3C,IAAI,GAAG,MAAM,IAAA,qCAAkB,EAC7B,OAAO,EACP,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,EACrC,EAAE,GAAG,EAAE,SAAS,MAAM,iBAAiB,EAAE,CAC1C,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,IAAA,qCAAkB,EAAC,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;IACD,OAAO,OAAO,CAAC,OAAO,CAAC,0BAA0B,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE;QACvF,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC9B,CAAC,CAAC;AACL,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
2
2
  export declare const itemUpdateManyDescription: INodeProperties[];
3
3
  export declare function executeItemUpdateMany(context: IExecuteFunctions, itemIndex: number): Promise<INodeExecutionData[]>;