@weslink/n8n-nodes-kibi-connect 0.1.2 → 1.0.1

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 (79) hide show
  1. package/README.md +250 -18
  2. package/dist/nodes/KibiConnect/KibiConnect.node.d.ts +6 -0
  3. package/dist/nodes/KibiConnect/KibiConnect.node.js +89 -1
  4. package/dist/nodes/KibiConnect/KibiConnect.node.js.map +1 -1
  5. package/dist/nodes/KibiConnect/loadOptions/getAbsenceTypes.d.ts +2 -0
  6. package/dist/nodes/KibiConnect/loadOptions/getAbsenceTypes.js +13 -0
  7. package/dist/nodes/KibiConnect/loadOptions/getAbsenceTypes.js.map +1 -0
  8. package/dist/nodes/KibiConnect/loadOptions/getGroupTypes.d.ts +2 -0
  9. package/dist/nodes/KibiConnect/loadOptions/getGroupTypes.js +13 -0
  10. package/dist/nodes/KibiConnect/loadOptions/getGroupTypes.js.map +1 -0
  11. package/dist/nodes/KibiConnect/resources/callLink/index.d.ts +2 -0
  12. package/dist/nodes/KibiConnect/resources/callLink/index.js +279 -0
  13. package/dist/nodes/KibiConnect/resources/callLink/index.js.map +1 -0
  14. package/dist/nodes/KibiConnect/resources/document/index.d.ts +2 -0
  15. package/dist/nodes/KibiConnect/resources/document/index.js +238 -0
  16. package/dist/nodes/KibiConnect/resources/document/index.js.map +1 -0
  17. package/dist/nodes/KibiConnect/resources/file/index.d.ts +2 -0
  18. package/dist/nodes/KibiConnect/resources/file/index.js +616 -0
  19. package/dist/nodes/KibiConnect/resources/file/index.js.map +1 -0
  20. package/dist/nodes/KibiConnect/resources/file/shared.d.ts +3 -0
  21. package/dist/nodes/KibiConnect/resources/file/shared.js +87 -0
  22. package/dist/nodes/KibiConnect/resources/file/shared.js.map +1 -0
  23. package/dist/nodes/KibiConnect/resources/folder/index.d.ts +2 -0
  24. package/dist/nodes/KibiConnect/resources/folder/index.js +278 -0
  25. package/dist/nodes/KibiConnect/resources/folder/index.js.map +1 -0
  26. package/dist/nodes/KibiConnect/resources/group/index.d.ts +2 -0
  27. package/dist/nodes/KibiConnect/resources/group/index.js +227 -0
  28. package/dist/nodes/KibiConnect/resources/group/index.js.map +1 -0
  29. package/dist/nodes/KibiConnect/resources/media/index.d.ts +2 -0
  30. package/dist/nodes/KibiConnect/resources/media/index.js +56 -0
  31. package/dist/nodes/KibiConnect/resources/media/index.js.map +1 -0
  32. package/dist/nodes/KibiConnect/resources/search/index.d.ts +2 -0
  33. package/dist/nodes/KibiConnect/resources/search/index.js +65 -0
  34. package/dist/nodes/KibiConnect/resources/search/index.js.map +1 -0
  35. package/dist/nodes/KibiConnect/resources/shareLink/index.d.ts +2 -0
  36. package/dist/nodes/KibiConnect/resources/shareLink/index.js +228 -0
  37. package/dist/nodes/KibiConnect/resources/shareLink/index.js.map +1 -0
  38. package/dist/nodes/KibiConnect/resources/sharedWiki/index.d.ts +2 -0
  39. package/dist/nodes/KibiConnect/resources/sharedWiki/index.js +66 -0
  40. package/dist/nodes/KibiConnect/resources/sharedWiki/index.js.map +1 -0
  41. package/dist/nodes/KibiConnect/resources/survey/index.d.ts +2 -0
  42. package/dist/nodes/KibiConnect/resources/survey/index.js +49 -0
  43. package/dist/nodes/KibiConnect/resources/survey/index.js.map +1 -0
  44. package/dist/nodes/KibiConnect/resources/timeTracking/index.d.ts +2 -0
  45. package/dist/nodes/KibiConnect/resources/timeTracking/index.js +642 -0
  46. package/dist/nodes/KibiConnect/resources/timeTracking/index.js.map +1 -0
  47. package/dist/nodes/KibiConnect/shared/binary.d.ts +4 -0
  48. package/dist/nodes/KibiConnect/shared/binary.js +57 -0
  49. package/dist/nodes/KibiConnect/shared/binary.js.map +1 -0
  50. package/dist/nodes/KibiConnect/shared/descriptions.d.ts +3 -0
  51. package/dist/nodes/KibiConnect/shared/descriptions.js +17 -16
  52. package/dist/nodes/KibiConnect/shared/descriptions.js.map +1 -1
  53. package/dist/nodes/KibiConnect/shared/fields.js +3 -3
  54. package/dist/nodes/KibiConnect/shared/fields.js.map +1 -1
  55. package/dist/nodes/KibiConnect/shared/routing.d.ts +2 -0
  56. package/dist/nodes/KibiConnect/shared/routing.js +47 -0
  57. package/dist/nodes/KibiConnect/shared/routing.js.map +1 -0
  58. package/dist/nodes/KibiConnect/shared/transport.d.ts +8 -1
  59. package/dist/nodes/KibiConnect/shared/transport.js +72 -14
  60. package/dist/nodes/KibiConnect/shared/transport.js.map +1 -1
  61. package/dist/nodes/KibiConnectTrigger/KibiConnectTrigger.node.d.ts +18 -0
  62. package/dist/nodes/KibiConnectTrigger/KibiConnectTrigger.node.js +237 -0
  63. package/dist/nodes/KibiConnectTrigger/KibiConnectTrigger.node.js.map +1 -0
  64. package/dist/nodes/KibiConnectTrigger/KibiConnectTrigger.node.json +18 -0
  65. package/dist/nodes/KibiConnectTrigger/filter.d.ts +8 -0
  66. package/dist/nodes/KibiConnectTrigger/filter.js +15 -0
  67. package/dist/nodes/KibiConnectTrigger/filter.js.map +1 -0
  68. package/dist/nodes/KibiConnectTrigger/loadOptions/getWebhookEvents.d.ts +4 -0
  69. package/dist/nodes/KibiConnectTrigger/loadOptions/getWebhookEvents.js +42 -0
  70. package/dist/nodes/KibiConnectTrigger/loadOptions/getWebhookEvents.js.map +1 -0
  71. package/dist/nodes/KibiConnectTrigger/registration.d.ts +4 -0
  72. package/dist/nodes/KibiConnectTrigger/registration.js +31 -0
  73. package/dist/nodes/KibiConnectTrigger/registration.js.map +1 -0
  74. package/dist/nodes/KibiConnectTrigger/verify.d.ts +1 -0
  75. package/dist/nodes/KibiConnectTrigger/verify.js +27 -0
  76. package/dist/nodes/KibiConnectTrigger/verify.js.map +1 -0
  77. package/dist/package.json +6 -4
  78. package/dist/tsconfig.tsbuildinfo +1 -1
  79. package/package.json +6 -4
@@ -0,0 +1,616 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fileDescription = void 0;
4
+ const binary_1 = require("../../shared/binary");
5
+ const descriptions_1 = require("../../shared/descriptions");
6
+ const fields_1 = require("../../shared/fields");
7
+ const shared_1 = require("./shared");
8
+ const R = 'file';
9
+ const show = { resource: [R] };
10
+ const binaryRequest = {
11
+ qs: { stream: 1 },
12
+ headers: { Accept: '*/*' },
13
+ encoding: 'arraybuffer',
14
+ json: false,
15
+ returnFullResponse: true,
16
+ };
17
+ exports.fileDescription = [
18
+ {
19
+ displayName: 'Operation',
20
+ name: 'operation',
21
+ type: 'options',
22
+ noDataExpression: true,
23
+ displayOptions: { show },
24
+ options: [
25
+ {
26
+ name: 'Attach Link',
27
+ value: 'attachLink',
28
+ action: 'Link a file to a record',
29
+ description: 'Attach the file to a post, wiki page, contact, company or group. A link is a reference — the target itself is not changed. Deduplicated.',
30
+ routing: {
31
+ request: {
32
+ method: 'POST',
33
+ url: '=/files/items/{{$parameter.fileId}}/links',
34
+ baseURL: descriptions_1.FILES_BASE_URL,
35
+ },
36
+ output: { postReceive: descriptions_1.unwrapData },
37
+ },
38
+ },
39
+ {
40
+ name: 'Batch Get',
41
+ value: 'batchGet',
42
+ action: 'Get many files by ID',
43
+ description: 'Read up to 100 files in one request. IDs that are unknown or not visible are silently left out — a missing entry means the file is gone for this token.',
44
+ routing: {
45
+ request: { method: 'POST', url: '/files/items/batch', baseURL: descriptions_1.FILES_BASE_URL },
46
+ output: { postReceive: descriptions_1.unwrapData },
47
+ },
48
+ },
49
+ {
50
+ name: 'Convert to PDF',
51
+ value: 'convertToPdf',
52
+ action: 'Convert an image to PDF',
53
+ description: 'Create a PDF from an image file, as a new file in the same folder. Only images can be converted.',
54
+ routing: {
55
+ request: {
56
+ method: 'POST',
57
+ url: '=/files/items/{{$parameter.fileId}}/convert-to-pdf',
58
+ baseURL: descriptions_1.FILES_BASE_URL,
59
+ },
60
+ output: { postReceive: descriptions_1.unwrapData },
61
+ },
62
+ },
63
+ {
64
+ name: 'Copy to Personal Files',
65
+ value: 'copyToPersonal',
66
+ action: 'Copy a file to the personal folder',
67
+ description: 'Copy the file into the token owner\'s "My Files" folder for editing. Answers the copy plus a meta block with the editor URL and whether an identical copy already existed. Needs the Office integration to be enabled.',
68
+ routing: {
69
+ request: {
70
+ method: 'POST',
71
+ url: '=/files/items/{{$parameter.fileId}}/copy-to-personal',
72
+ baseURL: descriptions_1.FILES_BASE_URL,
73
+ },
74
+ },
75
+ },
76
+ {
77
+ name: 'Create Share Link',
78
+ value: 'createShareLink',
79
+ action: 'Create a share link for a file',
80
+ description: 'Mint a public, read-only link to this one file. Upload links exist for folders only.',
81
+ routing: {
82
+ request: {
83
+ method: 'POST',
84
+ url: '=/files/items/{{$parameter.fileId}}/share-links',
85
+ baseURL: descriptions_1.FILES_BASE_URL,
86
+ },
87
+ output: { postReceive: descriptions_1.unwrapData },
88
+ },
89
+ },
90
+ {
91
+ name: 'Delete',
92
+ value: 'delete',
93
+ action: 'Delete a file',
94
+ description: 'Move the file to the trash. Restore brings it back.',
95
+ routing: {
96
+ request: {
97
+ method: 'DELETE',
98
+ url: '=/files/items/{{$parameter.fileId}}',
99
+ baseURL: descriptions_1.FILES_BASE_URL,
100
+ },
101
+ output: {
102
+ postReceive: [{ type: 'set', properties: { value: '={{ { "deleted": true } }}' } }],
103
+ },
104
+ },
105
+ },
106
+ {
107
+ name: 'Detach Link',
108
+ value: 'detachLink',
109
+ action: 'Unlink a file from a record',
110
+ description: 'Remove the link between the file and a post, wiki page, contact, company or group',
111
+ routing: {
112
+ request: {
113
+ method: 'DELETE',
114
+ url: '=/files/items/{{$parameter.fileId}}/links',
115
+ baseURL: descriptions_1.FILES_BASE_URL,
116
+ },
117
+ output: { postReceive: descriptions_1.unwrapData },
118
+ },
119
+ },
120
+ {
121
+ name: 'Download',
122
+ value: 'download',
123
+ action: 'Download a file',
124
+ description: 'Fetch the current content of the file as binary data',
125
+ routing: {
126
+ request: {
127
+ method: 'GET',
128
+ url: '=/files/items/{{$parameter.fileId}}/download',
129
+ baseURL: descriptions_1.FILES_BASE_URL,
130
+ ...binaryRequest,
131
+ },
132
+ output: { postReceive: [binary_1.downloadBinary] },
133
+ },
134
+ },
135
+ {
136
+ name: 'Download Version',
137
+ value: 'downloadVersion',
138
+ action: 'Download an old version of a file',
139
+ description: 'Fetch the content of one earlier version as binary data',
140
+ routing: {
141
+ request: {
142
+ method: 'GET',
143
+ url: '=/files/items/{{$parameter.fileId}}/versions/{{$parameter.versionNumber}}/download',
144
+ baseURL: descriptions_1.FILES_BASE_URL,
145
+ ...binaryRequest,
146
+ },
147
+ output: { postReceive: [binary_1.downloadBinary] },
148
+ },
149
+ },
150
+ {
151
+ name: 'Get',
152
+ value: 'get',
153
+ action: 'Get a file',
154
+ description: 'Read the metadata of one file, including its links and permissions',
155
+ routing: {
156
+ request: {
157
+ method: 'GET',
158
+ url: '=/files/items/{{$parameter.fileId}}',
159
+ baseURL: descriptions_1.FILES_BASE_URL,
160
+ },
161
+ output: { postReceive: descriptions_1.unwrapData },
162
+ },
163
+ },
164
+ {
165
+ name: 'Get Access URL',
166
+ value: 'getAccessUrl',
167
+ action: 'Get a direct URL to a file',
168
+ description: 'Mint a short-lived URL that points straight at the bytes, for a consumer that cannot send the API token. It authorizes by possession — treat it as a secret while it lives.',
169
+ routing: {
170
+ request: {
171
+ method: 'GET',
172
+ url: '=/files/items/{{$parameter.fileId}}/access',
173
+ baseURL: descriptions_1.FILES_BASE_URL,
174
+ },
175
+ output: { postReceive: descriptions_1.unwrapData },
176
+ },
177
+ },
178
+ {
179
+ name: 'Get Activity',
180
+ value: 'getActivity',
181
+ action: 'Get the file activity',
182
+ description: 'Read the audit trail of the file manager, newest first: uploads, renames, moves, deletions, restores, lock changes. Events are kept for 30 days.',
183
+ routing: {
184
+ request: { method: 'GET', url: '/files/activity', baseURL: descriptions_1.FILES_BASE_URL },
185
+ output: { postReceive: descriptions_1.unwrapData },
186
+ },
187
+ },
188
+ {
189
+ name: 'Get Links',
190
+ value: 'getLinks',
191
+ action: 'Get the links of a file',
192
+ description: 'List the posts, wiki pages, contacts, companies and groups the file is attached to',
193
+ routing: {
194
+ request: {
195
+ method: 'GET',
196
+ url: '=/files/items/{{$parameter.fileId}}/links',
197
+ baseURL: descriptions_1.FILES_BASE_URL,
198
+ },
199
+ output: { postReceive: descriptions_1.unwrapData },
200
+ },
201
+ },
202
+ {
203
+ name: 'Get Many',
204
+ value: 'getAll',
205
+ action: 'Get many files',
206
+ description: 'List the files at the library root — the ones in no folder. Use Get Items on the Folder resource for a folder.',
207
+ routing: {
208
+ request: { method: 'GET', url: '/files/items', baseURL: descriptions_1.FILES_BASE_URL },
209
+ output: { postReceive: descriptions_1.unwrapData },
210
+ },
211
+ },
212
+ {
213
+ name: 'Get Recent',
214
+ value: 'getRecent',
215
+ action: 'Get recently changed files',
216
+ description: 'List the accessible files across all folders, most recently updated first',
217
+ routing: {
218
+ request: { method: 'GET', url: '/files/items/recent', baseURL: descriptions_1.FILES_BASE_URL },
219
+ output: { postReceive: descriptions_1.unwrapData },
220
+ },
221
+ },
222
+ {
223
+ name: 'Get Share Links',
224
+ value: 'getShareLinks',
225
+ action: 'Get the share links of a file',
226
+ description: 'List every share link of the file — active, expired and revoked',
227
+ routing: {
228
+ request: {
229
+ method: 'GET',
230
+ url: '=/files/items/{{$parameter.fileId}}/share-links',
231
+ baseURL: descriptions_1.FILES_BASE_URL,
232
+ },
233
+ output: { postReceive: descriptions_1.unwrapData },
234
+ },
235
+ },
236
+ {
237
+ name: 'Get Trash',
238
+ value: 'getTrash',
239
+ action: 'Get the trashed files',
240
+ description: 'List the deleted files the token owner may restore, newest deletion first. System administrators and content managers see the whole trash.',
241
+ routing: {
242
+ request: { method: 'GET', url: '/files/trash', baseURL: descriptions_1.FILES_BASE_URL },
243
+ output: { postReceive: descriptions_1.unwrapData },
244
+ },
245
+ },
246
+ {
247
+ name: 'Get Versions',
248
+ value: 'getVersions',
249
+ action: 'Get the versions of a file',
250
+ description: 'List the version history, newest first. A file that was never replaced has no rows — it is implicitly at version 1.',
251
+ routing: {
252
+ request: {
253
+ method: 'GET',
254
+ url: '=/files/items/{{$parameter.fileId}}/versions',
255
+ baseURL: descriptions_1.FILES_BASE_URL,
256
+ },
257
+ output: { postReceive: descriptions_1.unwrapData },
258
+ },
259
+ },
260
+ {
261
+ name: 'Restore',
262
+ value: 'restore',
263
+ action: 'Restore a file from the trash',
264
+ description: 'Bring a deleted file back from the trash',
265
+ routing: {
266
+ request: {
267
+ method: 'POST',
268
+ url: '=/files/items/{{$parameter.fileId}}/restore',
269
+ baseURL: descriptions_1.FILES_BASE_URL,
270
+ },
271
+ output: { postReceive: descriptions_1.unwrapData },
272
+ },
273
+ },
274
+ {
275
+ name: 'Restore Version',
276
+ value: 'restoreVersion',
277
+ action: 'Restore an old version of a file',
278
+ description: 'Promote an earlier version to a new top version. Nothing is rolled back destructively — the history keeps growing.',
279
+ routing: {
280
+ request: {
281
+ method: 'POST',
282
+ url: '=/files/items/{{$parameter.fileId}}/versions/{{$parameter.versionNumber}}/restore',
283
+ baseURL: descriptions_1.FILES_BASE_URL,
284
+ },
285
+ output: { postReceive: descriptions_1.unwrapData },
286
+ },
287
+ },
288
+ {
289
+ name: 'Search',
290
+ value: 'search',
291
+ action: 'Search files',
292
+ description: 'Find files by name, caption or alt text across every folder the token owner can see, most recently updated first',
293
+ routing: {
294
+ request: { method: 'GET', url: '/files/search', baseURL: descriptions_1.FILES_BASE_URL },
295
+ output: { postReceive: descriptions_1.unwrapData },
296
+ },
297
+ },
298
+ {
299
+ name: 'Star',
300
+ value: 'star',
301
+ action: 'Star a file',
302
+ description: 'Mark the file as a favorite of the token owner. Idempotent.',
303
+ routing: {
304
+ request: {
305
+ method: 'PUT',
306
+ url: '=/files/items/{{$parameter.fileId}}/favorite',
307
+ baseURL: descriptions_1.FILES_BASE_URL,
308
+ },
309
+ output: { postReceive: descriptions_1.unwrapData },
310
+ },
311
+ },
312
+ {
313
+ name: 'Unstar',
314
+ value: 'unstar',
315
+ action: 'Unstar a file',
316
+ description: 'Remove the file from the favorites of the token owner. Idempotent.',
317
+ routing: {
318
+ request: {
319
+ method: 'DELETE',
320
+ url: '=/files/items/{{$parameter.fileId}}/favorite',
321
+ baseURL: descriptions_1.FILES_BASE_URL,
322
+ },
323
+ output: { postReceive: descriptions_1.unwrapData },
324
+ },
325
+ },
326
+ {
327
+ name: 'Update',
328
+ value: 'update',
329
+ action: 'Update a file',
330
+ description: 'Rename or move the file, or change its caption, alt text or template flag',
331
+ routing: {
332
+ request: {
333
+ method: 'PATCH',
334
+ url: '=/files/items/{{$parameter.fileId}}',
335
+ baseURL: descriptions_1.FILES_BASE_URL,
336
+ },
337
+ output: { postReceive: descriptions_1.unwrapData },
338
+ },
339
+ },
340
+ {
341
+ name: 'Upload',
342
+ value: 'upload',
343
+ action: 'Upload a file',
344
+ description: 'Upload binary data from the input item as a new file, or as new content of an existing one. Single-shot: files up to 64 MiB. Anything larger needs the chunked upload flow, which this node does not implement.',
345
+ routing: {
346
+ request: { method: 'POST', url: '/files/uploads', baseURL: descriptions_1.FILES_BASE_URL },
347
+ send: { preSend: [binary_1.uploadBinary] },
348
+ output: { postReceive: descriptions_1.unwrapData },
349
+ },
350
+ },
351
+ ],
352
+ default: 'upload',
353
+ },
354
+ {
355
+ displayName: 'File operations need an API token with the files:read scope; everything that writes — Upload, Update, Delete, Restore, Restore Version, Attach Link, Detach Link, Create Share Link, Convert to PDF, Copy to Personal Files, Star and Unstar — needs files:write as well.',
356
+ name: 'scopeNotice',
357
+ type: 'notice',
358
+ default: '',
359
+ displayOptions: { show: { ...show, operation: ['upload', 'getAll', 'search'] } },
360
+ },
361
+ (0, fields_1.ulidField)('File ID', 'fileId', R, [
362
+ 'get',
363
+ 'download',
364
+ 'getAccessUrl',
365
+ 'update',
366
+ 'delete',
367
+ 'restore',
368
+ 'getVersions',
369
+ 'downloadVersion',
370
+ 'restoreVersion',
371
+ 'getShareLinks',
372
+ 'createShareLink',
373
+ 'star',
374
+ 'unstar',
375
+ 'convertToPdf',
376
+ 'copyToPersonal',
377
+ 'getLinks',
378
+ 'attachLink',
379
+ 'detachLink',
380
+ ], 'The file to act on.'),
381
+ {
382
+ displayName: 'Input Binary Field',
383
+ name: 'binaryPropertyName',
384
+ type: 'string',
385
+ required: true,
386
+ default: 'data',
387
+ description: 'The name of the binary property on the input item that holds the file. Its file name and MIME type are sent along.',
388
+ hint: 'The file name Kibi stores comes from the binary property, so set it there if the source has none.',
389
+ displayOptions: { show: { ...show, operation: ['upload'] } },
390
+ },
391
+ {
392
+ displayName: 'Folder ID',
393
+ name: 'uploadFolderId',
394
+ type: 'string',
395
+ default: '',
396
+ placeholder: '01J8ZP9K7QW3X2YB5M4N6R8TVC',
397
+ description: 'Where to put the file. Leave empty for the library root. Ignored when replacing an existing file.',
398
+ displayOptions: { show: { ...show, operation: ['upload'] } },
399
+ routing: { request: { body: { folder_ulid: '={{ $value || undefined }}' } } },
400
+ },
401
+ {
402
+ displayName: 'Replace File ID',
403
+ name: 'targetItemId',
404
+ type: 'string',
405
+ default: '',
406
+ placeholder: '01J8ZP9K7QW3X2YB5M4N6R8TVC',
407
+ description: 'Upload as new content of this existing file instead of creating one. The previous content is kept as a version.',
408
+ displayOptions: { show: { ...show, operation: ['upload'] } },
409
+ routing: { request: { body: { target_item_ulid: '={{ $value || undefined }}' } } },
410
+ },
411
+ {
412
+ displayName: 'Parent Version Number',
413
+ name: 'parentVersionId',
414
+ type: 'number',
415
+ default: 0,
416
+ description: 'When replacing: the version number you last saw. If the file moved on since, a conflict copy is created next to it rather than overwriting. Leave at 0 to skip the check — last write wins.',
417
+ displayOptions: { show: { ...show, operation: ['upload'] } },
418
+ routing: { request: { body: { parent_version_id: '={{ $value || undefined }}' } } },
419
+ },
420
+ {
421
+ displayName: 'Force Conflict Copy',
422
+ name: 'forceConflictCopy',
423
+ type: 'boolean',
424
+ default: false,
425
+ description: 'Whether to create a conflict copy instead of failing when the file to replace is locked by someone else',
426
+ displayOptions: { show: { ...show, operation: ['upload'] } },
427
+ routing: { request: { body: { force: '={{ $value ? "conflict_copy" : undefined }}' } } },
428
+ },
429
+ ...(0, shared_1.contextFields)(R, ['upload']),
430
+ {
431
+ displayName: 'Update Fields',
432
+ name: 'updateFields',
433
+ type: 'collection',
434
+ placeholder: 'Add Field',
435
+ default: {},
436
+ description: 'Only the fields you add are changed',
437
+ displayOptions: { show: { ...show, operation: ['update'] } },
438
+ options: [
439
+ {
440
+ displayName: 'Alt Text',
441
+ name: 'altText',
442
+ type: 'string',
443
+ default: '',
444
+ description: 'Alternative text for images, up to 255 characters. Leave empty to clear it.',
445
+ routing: { request: { body: { alt_text: '={{ $value || null }}' } } },
446
+ },
447
+ {
448
+ displayName: 'Caption',
449
+ name: 'caption',
450
+ type: 'string',
451
+ default: '',
452
+ description: 'A caption of up to 255 characters. Leave empty to clear it.',
453
+ routing: { request: { body: { caption: '={{ $value || null }}' } } },
454
+ },
455
+ {
456
+ displayName: 'Folder ID',
457
+ name: 'folderId',
458
+ type: 'string',
459
+ default: '',
460
+ placeholder: '01J8ZP9K7QW3X2YB5M4N6R8TVC',
461
+ description: 'Move the file into this folder. Leave empty to move it to the library root.',
462
+ routing: { request: { body: { folder_ulid: '={{ $value || null }}' } } },
463
+ },
464
+ {
465
+ displayName: 'Name',
466
+ name: 'name',
467
+ type: 'string',
468
+ default: '',
469
+ description: 'The new file name, up to 255 characters. The original extension is always kept — send the stem or the full name.',
470
+ routing: { request: { body: { name: '={{ $value }}' } } },
471
+ },
472
+ {
473
+ displayName: 'Parent Version Number',
474
+ name: 'parentVersionId',
475
+ type: 'number',
476
+ default: 1,
477
+ description: 'The version number you last saw. If the file has a newer version by now the update is refused with 409 instead of applied.',
478
+ routing: { request: { body: { parent_version_id: '={{ $value }}' } } },
479
+ },
480
+ {
481
+ displayName: 'Template',
482
+ name: 'isTemplate',
483
+ type: 'boolean',
484
+ default: false,
485
+ description: 'Whether the file is offered as a template. Only PDFs and Office documents can be templates.',
486
+ routing: { request: { body: { is_template: '={{ $value }}' } } },
487
+ },
488
+ ],
489
+ },
490
+ {
491
+ displayName: 'Version Number',
492
+ name: 'versionNumber',
493
+ type: 'number',
494
+ required: true,
495
+ default: 1,
496
+ typeOptions: { minValue: 1 },
497
+ description: 'The version to act on, as listed by Get Versions',
498
+ displayOptions: { show: { ...show, operation: ['downloadVersion', 'restoreVersion'] } },
499
+ },
500
+ {
501
+ displayName: 'Disposition',
502
+ name: 'disposition',
503
+ type: 'options',
504
+ default: 'inline',
505
+ description: 'Whether a browser opening the URL should display the file or save it',
506
+ options: [
507
+ { name: 'Attachment', value: 'attachment' },
508
+ { name: 'Inline', value: 'inline' },
509
+ ],
510
+ displayOptions: { show: { ...show, operation: ['getAccessUrl'] } },
511
+ routing: {
512
+ request: { qs: { disposition: '={{ $value === "attachment" ? $value : undefined }}' } },
513
+ },
514
+ },
515
+ {
516
+ displayName: 'Search Term',
517
+ name: 'query',
518
+ type: 'string',
519
+ required: true,
520
+ default: '',
521
+ placeholder: 'quarterly report',
522
+ description: 'Two to 255 characters, matched case-insensitively against name, caption and alt text',
523
+ displayOptions: { show: { ...show, operation: ['search'] } },
524
+ routing: { request: { qs: { q: '={{ $value }}' } } },
525
+ },
526
+ {
527
+ displayName: 'Folder ID',
528
+ name: 'activityFolderId',
529
+ type: 'string',
530
+ default: '',
531
+ placeholder: '01J8ZP9K7QW3X2YB5M4N6R8TVC',
532
+ description: 'Limit the trail to one folder. Leave empty for everything the token owner can see.',
533
+ displayOptions: { show: { ...show, operation: ['getActivity'] } },
534
+ routing: { request: { qs: { folder: '={{ $value || undefined }}' } } },
535
+ },
536
+ {
537
+ displayName: 'File IDs',
538
+ name: 'fileIds',
539
+ type: 'string',
540
+ required: true,
541
+ default: '',
542
+ placeholder: '01J8ZP9K7QW3X2YB5M4N6R8TVC, 01J8ZP9K7QW3X2YB5M4N6R8TVD',
543
+ description: 'Up to 100 file IDs, comma-separated. An expression may also hand over an array.',
544
+ displayOptions: { show: { ...show, operation: ['batchGet'] } },
545
+ routing: {
546
+ request: {
547
+ body: {
548
+ ids: '={{ Array.isArray($value) ? $value : String($value).split(",").map(v => v.trim()).filter(v => v) }}',
549
+ },
550
+ },
551
+ },
552
+ },
553
+ ...(0, shared_1.itemListFilters)(R, ['getAll']),
554
+ {
555
+ displayName: 'Expires At',
556
+ name: 'expiresAt',
557
+ type: 'dateTime',
558
+ default: '',
559
+ description: 'When the link stops working. Must lie in the future. Leave empty for a link without expiry.',
560
+ displayOptions: { show: { ...show, operation: ['createShareLink'] } },
561
+ routing: {
562
+ request: {
563
+ body: { expires_at: '={{ $value ? new Date($value).toISOString() : null }}' },
564
+ },
565
+ },
566
+ },
567
+ {
568
+ displayName: 'Password',
569
+ name: 'password',
570
+ type: 'string',
571
+ typeOptions: { password: true },
572
+ default: '',
573
+ description: 'Protect the link with a password of at least 6 characters. Leave empty for no password. The password never comes back from the API — only whether one is set.',
574
+ displayOptions: { show: { ...show, operation: ['createShareLink'] } },
575
+ routing: { request: { body: { password: '={{ $value || null }}' } } },
576
+ },
577
+ {
578
+ displayName: 'Record Type',
579
+ name: 'linkModelType',
580
+ type: 'options',
581
+ default: 'post',
582
+ description: 'What kind of record the file is linked to',
583
+ options: [
584
+ { name: 'Company', value: 'company' },
585
+ { name: 'Contact', value: 'contact' },
586
+ { name: 'Group', value: 'group' },
587
+ { name: 'Post', value: 'post' },
588
+ { name: 'Wiki Page', value: 'wiki' },
589
+ ],
590
+ displayOptions: { show: { ...show, operation: ['attachLink', 'detachLink'] } },
591
+ routing: {
592
+ request: {
593
+ body: {
594
+ model_type: '={{ $value }}',
595
+ media_type: '={{ $value === "post" ? "images" : $value === "wiki" ? "wiki_content_files" : "linked_files" }}',
596
+ },
597
+ },
598
+ },
599
+ },
600
+ {
601
+ displayName: 'Record ID',
602
+ name: 'linkModelId',
603
+ type: 'number',
604
+ required: true,
605
+ default: 0,
606
+ description: 'The numeric ID of the post, wiki page, contact, company or group. Linking to a post or wiki page requires permission to edit it; the others only need to be visible.',
607
+ displayOptions: { show: { ...show, operation: ['attachLink', 'detachLink'] } },
608
+ routing: { request: { body: { model_id: '={{ $value }}' } } },
609
+ },
610
+ ...(0, descriptions_1.filesReturnAll)(R, 'getAll'),
611
+ ...(0, descriptions_1.filesReturnAll)(R, 'getRecent'),
612
+ ...(0, descriptions_1.filesReturnAll)(R, 'search'),
613
+ ...(0, descriptions_1.filesReturnAll)(R, 'getTrash'),
614
+ ...(0, descriptions_1.filesReturnAll)(R, 'getActivity'),
615
+ ];
616
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/KibiConnect/resources/file/index.ts"],"names":[],"mappings":";;;AAEA,gDAAmE;AACnE,4DAAuF;AACvF,gDAAgD;AAChD,qCAA0D;AAE1D,MAAM,CAAC,GAAG,MAAM,CAAC;AACjB,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAU/B,MAAM,aAAa,GAAG;IACrB,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;IACjB,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;IAC1B,QAAQ,EAAE,aAAsB;IAChC,IAAI,EAAE,KAAK;IACX,kBAAkB,EAAE,IAAI;CACxB,CAAC;AASW,QAAA,eAAe,GAAsB;IACjD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE;QACxB,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,yBAAyB;gBACjC,WAAW,EACV,0IAA0I;gBAC3I,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,2CAA2C;wBAChD,OAAO,EAAE,6BAAc;qBACvB;oBACD,MAAM,EAAE,EAAE,WAAW,EAAE,yBAAU,EAAE;iBACnC;aACD;YACD;gBACC,I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AC;QACV,WAAW,EACV,sKAAsK;QACvK,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,EAAE,EAAE;QAC9E,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,EAAE;KAC7D;IAED,GAAG,IAAA,6BAAc,EAAC,CAAC,EAAE,QAAQ,CAAC;IAC9B,GAAG,IAAA,6BAAc,EAAC,CAAC,EAAE,WAAW,CAAC;IACjC,GAAG,IAAA,6BAAc,EAAC,CAAC,EAAE,QAAQ,CAAC;IAC9B,GAAG,IAAA,6BAAc,EAAC,CAAC,EAAE,UAAU,CAAC;IAChC,GAAG,IAAA,6BAAc,EAAC,CAAC,EAAE,aAAa,CAAC;CACnC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare function contextFields(resource: string, operations: string[]): INodeProperties[];
3
+ export declare function itemListFilters(resource: string, operations: string[]): INodeProperties[];