@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,642 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.timeTrackingDescription = void 0;
4
+ const descriptions_1 = require("../../shared/descriptions");
5
+ const R = 'timeTracking';
6
+ const show = { resource: [R] };
7
+ const DAY = '={{ $value ? new Date($value).toISOString().slice(0, 10) : undefined }}';
8
+ const ENTRY_TYPE_OPTIONS = [
9
+ { name: 'Absence', value: 'absence' },
10
+ { name: 'Break', value: 'break' },
11
+ { name: 'Work', value: 'work' },
12
+ ];
13
+ const absenceTypeField = (operations, required) => ({
14
+ displayName: 'Absence Type Name or ID',
15
+ name: 'absenceTypeId',
16
+ type: 'options',
17
+ typeOptions: { loadOptionsMethod: 'getAbsenceTypes' },
18
+ required,
19
+ default: '',
20
+ description: 'The kind of absence. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
21
+ displayOptions: { show: { ...show, operation: operations } },
22
+ routing: {
23
+ request: {
24
+ body: { absence_type_id: required ? '={{ $value }}' : '={{ $value || undefined }}' },
25
+ },
26
+ },
27
+ });
28
+ exports.timeTrackingDescription = [
29
+ {
30
+ displayName: 'Operation',
31
+ name: 'operation',
32
+ type: 'options',
33
+ noDataExpression: true,
34
+ displayOptions: { show },
35
+ options: [
36
+ {
37
+ name: 'Cancel Absence',
38
+ value: 'cancelAbsence',
39
+ action: 'Cancel an absence request',
40
+ description: 'Withdraw an absence request of the token owner',
41
+ routing: {
42
+ request: {
43
+ method: 'DELETE',
44
+ url: '=/time-tracking/absences/{{$parameter.absenceId}}',
45
+ },
46
+ },
47
+ },
48
+ {
49
+ name: 'Clock In',
50
+ value: 'clockIn',
51
+ action: 'Clock in',
52
+ description: 'Start a new active time entry for the token owner',
53
+ routing: {
54
+ request: { method: 'POST', url: '/time-tracking/clock-in' },
55
+ output: { postReceive: descriptions_1.unwrapData },
56
+ },
57
+ },
58
+ {
59
+ name: 'Clock Out',
60
+ value: 'clockOut',
61
+ action: 'Clock out',
62
+ description: 'Close the currently active time entry of the token owner',
63
+ routing: {
64
+ request: { method: 'POST', url: '/time-tracking/clock-out' },
65
+ output: { postReceive: descriptions_1.unwrapData },
66
+ },
67
+ },
68
+ {
69
+ name: 'Create Absence',
70
+ value: 'createAbsence',
71
+ action: 'Create an absence request',
72
+ description: 'Request an absence. Types that need no approval, such as sick notes, are approved on the spot; everything else waits for review.',
73
+ routing: {
74
+ request: { method: 'POST', url: '/time-tracking/absences' },
75
+ output: { postReceive: descriptions_1.unwrapData },
76
+ },
77
+ },
78
+ {
79
+ name: 'Create Time Entry',
80
+ value: 'createEntry',
81
+ action: 'Create a time entry',
82
+ description: 'Add a manual time entry for the token owner',
83
+ routing: {
84
+ request: { method: 'POST', url: '/time-tracking/entries' },
85
+ output: { postReceive: descriptions_1.unwrapData },
86
+ },
87
+ },
88
+ {
89
+ name: 'Delete Time Entry',
90
+ value: 'deleteEntry',
91
+ action: 'Delete a time entry',
92
+ description: 'Move a time entry to the bin',
93
+ routing: {
94
+ request: {
95
+ method: 'DELETE',
96
+ url: '=/time-tracking/entries/{{$parameter.entryId}}',
97
+ },
98
+ },
99
+ },
100
+ {
101
+ name: 'Get Absence',
102
+ value: 'getAbsence',
103
+ action: 'Get an absence request',
104
+ description: 'Read one absence request',
105
+ routing: {
106
+ request: { method: 'GET', url: '=/time-tracking/absences/{{$parameter.absenceId}}' },
107
+ output: { postReceive: descriptions_1.unwrapData },
108
+ },
109
+ },
110
+ {
111
+ name: 'Get Absence Types',
112
+ value: 'getAbsenceTypes',
113
+ action: 'Get many absence types',
114
+ description: 'Read the kinds of absence this tenant knows',
115
+ routing: {
116
+ request: { method: 'GET', url: '/time-tracking/absence-types' },
117
+ output: { postReceive: descriptions_1.unwrapData },
118
+ },
119
+ },
120
+ {
121
+ name: 'Get Active Time Entry',
122
+ value: 'getActive',
123
+ action: 'Get the active time entry',
124
+ description: 'Read the entry the token owner is currently clocked into. The data is null when they are not.',
125
+ routing: {
126
+ request: { method: 'GET', url: '/time-tracking/active' },
127
+ },
128
+ },
129
+ {
130
+ name: 'Get Balance',
131
+ value: 'getBalance',
132
+ action: 'Get the time balance',
133
+ description: 'Read the balance of the token owner for the current month and year, plus the cumulative one',
134
+ routing: {
135
+ request: { method: 'GET', url: '/time-tracking/balance' },
136
+ },
137
+ },
138
+ {
139
+ name: 'Get Many Absences',
140
+ value: 'getAbsences',
141
+ action: 'Get many absence requests',
142
+ description: 'Read the absence requests of the token owner',
143
+ routing: {
144
+ request: { method: 'GET', url: '/time-tracking/absences' },
145
+ output: { postReceive: descriptions_1.unwrapData },
146
+ },
147
+ },
148
+ {
149
+ name: 'Get Many Time Entries',
150
+ value: 'getEntries',
151
+ action: 'Get many time entries',
152
+ description: 'Read the time entries of the token owner in a date range',
153
+ routing: {
154
+ request: { method: 'GET', url: '/time-tracking/entries' },
155
+ output: { postReceive: descriptions_1.unwrapData },
156
+ },
157
+ },
158
+ {
159
+ name: 'Get Monthly Balances',
160
+ value: 'getMonthlyBalances',
161
+ action: 'Get many monthly balances',
162
+ description: 'Read the balance of the token owner for every month of a year',
163
+ routing: {
164
+ request: { method: 'GET', url: '/time-tracking/balance/monthly' },
165
+ output: { postReceive: descriptions_1.unwrapData },
166
+ },
167
+ },
168
+ {
169
+ name: 'Get Time Entries of Today',
170
+ value: 'getToday',
171
+ action: 'Get many time entries of today',
172
+ description: 'Read the time entries of the token owner for today',
173
+ routing: {
174
+ request: { method: 'GET', url: '/time-tracking/today' },
175
+ output: { postReceive: descriptions_1.unwrapData },
176
+ },
177
+ },
178
+ {
179
+ name: 'Get Time Entry',
180
+ value: 'getEntry',
181
+ action: 'Get a time entry',
182
+ description: 'Read one time entry',
183
+ routing: {
184
+ request: { method: 'GET', url: '=/time-tracking/entries/{{$parameter.entryId}}' },
185
+ output: { postReceive: descriptions_1.unwrapData },
186
+ },
187
+ },
188
+ {
189
+ name: 'Get Work Schedules',
190
+ value: 'getWorkSchedules',
191
+ action: 'Get many work schedules',
192
+ description: 'Read every work schedule of the tenant. HR and administrators only.',
193
+ routing: {
194
+ request: { method: 'GET', url: '/time-tracking/work-schedules' },
195
+ output: { postReceive: descriptions_1.unwrapData },
196
+ },
197
+ },
198
+ {
199
+ name: 'Update Absence',
200
+ value: 'updateAbsence',
201
+ action: 'Update an absence request',
202
+ description: 'Change an absence request. Only pending requests can be changed.',
203
+ routing: {
204
+ request: { method: 'PUT', url: '=/time-tracking/absences/{{$parameter.absenceId}}' },
205
+ output: { postReceive: descriptions_1.unwrapData },
206
+ },
207
+ },
208
+ {
209
+ name: 'Update Time Entry',
210
+ value: 'updateEntry',
211
+ action: 'Update a time entry',
212
+ description: 'Change an existing time entry',
213
+ routing: {
214
+ request: { method: 'PUT', url: '=/time-tracking/entries/{{$parameter.entryId}}' },
215
+ output: { postReceive: descriptions_1.unwrapData },
216
+ },
217
+ },
218
+ ],
219
+ default: 'getActive',
220
+ },
221
+ {
222
+ displayName: 'Requires the Time Tracking module. Kibi answers 404 for every time tracking route when the module is not installed — the same answer as for an unknown ID, on purpose. Everything here acts on the account the token belongs to: a token cannot clock somebody else in.',
223
+ name: 'moduleNotice',
224
+ type: 'notice',
225
+ default: '',
226
+ displayOptions: { show },
227
+ },
228
+ {
229
+ displayName: 'Time Entry ID',
230
+ name: 'entryId',
231
+ type: 'string',
232
+ required: true,
233
+ default: '',
234
+ description: 'The numeric ID of the time entry, as returned by Get Many Time Entries',
235
+ hint: 'Time entries are addressed by a numeric ID, not by a ULID like most other records',
236
+ displayOptions: { show: { ...show, operation: ['getEntry', 'updateEntry', 'deleteEntry'] } },
237
+ },
238
+ {
239
+ displayName: 'Absence ID',
240
+ name: 'absenceId',
241
+ type: 'string',
242
+ required: true,
243
+ default: '',
244
+ description: 'The numeric ID of the absence request, as returned by Get Many Absences',
245
+ hint: 'Absences are addressed by a numeric ID, not by a ULID like most other records',
246
+ displayOptions: {
247
+ show: { ...show, operation: ['getAbsence', 'updateAbsence', 'cancelAbsence'] },
248
+ },
249
+ },
250
+ {
251
+ displayName: 'Additional Fields',
252
+ name: 'clockInFields',
253
+ type: 'collection',
254
+ placeholder: 'Add Field',
255
+ default: {},
256
+ displayOptions: { show: { ...show, operation: ['clockIn'] } },
257
+ options: [
258
+ {
259
+ displayName: 'Latitude',
260
+ name: 'latitude',
261
+ type: 'number',
262
+ default: 0,
263
+ description: 'Where the person clocked in. Discarded by Kibi unless the tenant enabled location capture and the person consented.',
264
+ routing: { request: { body: { latitude: '={{ $value }}' } } },
265
+ },
266
+ {
267
+ displayName: 'Longitude',
268
+ name: 'longitude',
269
+ type: 'number',
270
+ default: 0,
271
+ description: 'Where the person clocked in. Discarded by Kibi unless the tenant enabled location capture and the person consented.',
272
+ routing: { request: { body: { longitude: '={{ $value }}' } } },
273
+ },
274
+ {
275
+ displayName: 'Note',
276
+ name: 'note',
277
+ type: 'string',
278
+ default: '',
279
+ description: 'A remark on the entry',
280
+ routing: { request: { body: { note: '={{ $value }}' } } },
281
+ },
282
+ {
283
+ displayName: 'Project ID',
284
+ name: 'projectId',
285
+ type: 'number',
286
+ default: 0,
287
+ description: 'The numeric ID of the project to book the time on',
288
+ routing: { request: { body: { project_id: '={{ $value }}' } } },
289
+ },
290
+ {
291
+ displayName: 'Task ID',
292
+ name: 'taskId',
293
+ type: 'number',
294
+ default: 0,
295
+ description: 'The numeric ID of the task to book the time on',
296
+ routing: { request: { body: { task_id: '={{ $value }}' } } },
297
+ },
298
+ ],
299
+ },
300
+ {
301
+ displayName: 'Additional Fields',
302
+ name: 'clockOutFields',
303
+ type: 'collection',
304
+ placeholder: 'Add Field',
305
+ default: {},
306
+ displayOptions: { show: { ...show, operation: ['clockOut'] } },
307
+ options: [
308
+ {
309
+ displayName: 'Latitude',
310
+ name: 'latitude',
311
+ type: 'number',
312
+ default: 0,
313
+ description: 'Where the person clocked out. Discarded by Kibi unless the tenant enabled location capture and the person consented.',
314
+ routing: { request: { body: { latitude: '={{ $value }}' } } },
315
+ },
316
+ {
317
+ displayName: 'Longitude',
318
+ name: 'longitude',
319
+ type: 'number',
320
+ default: 0,
321
+ description: 'Where the person clocked out. Discarded by Kibi unless the tenant enabled location capture and the person consented.',
322
+ routing: { request: { body: { longitude: '={{ $value }}' } } },
323
+ },
324
+ ],
325
+ },
326
+ {
327
+ displayName: 'Date',
328
+ name: 'date',
329
+ type: 'dateTime',
330
+ required: true,
331
+ default: '',
332
+ description: 'The day the entry belongs to',
333
+ displayOptions: { show: { ...show, operation: ['createEntry'] } },
334
+ routing: { request: { body: { date: '={{ new Date($value).toISOString().slice(0, 10) }}' } } },
335
+ },
336
+ {
337
+ displayName: 'Clock In',
338
+ name: 'clockIn',
339
+ type: 'string',
340
+ required: true,
341
+ default: '',
342
+ placeholder: '08:30',
343
+ description: 'When the entry starts, as HH:MM',
344
+ displayOptions: { show: { ...show, operation: ['createEntry'] } },
345
+ routing: { request: { body: { clock_in: '={{ $value }}' } } },
346
+ },
347
+ {
348
+ displayName: 'Additional Fields',
349
+ name: 'entryFields',
350
+ type: 'collection',
351
+ placeholder: 'Add Field',
352
+ default: {},
353
+ displayOptions: { show: { ...show, operation: ['createEntry'] } },
354
+ options: [
355
+ {
356
+ displayName: 'Absence Type Name or ID',
357
+ name: 'absenceTypeId',
358
+ type: 'options',
359
+ typeOptions: { loadOptionsMethod: 'getAbsenceTypes' },
360
+ default: '',
361
+ description: 'For an entry of type Absence: the kind of absence. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
362
+ routing: { request: { body: { absence_type_id: '={{ $value }}' } } },
363
+ },
364
+ {
365
+ displayName: 'Clock Out',
366
+ name: 'clockOut',
367
+ type: 'string',
368
+ default: '',
369
+ placeholder: '17:00',
370
+ description: 'When the entry ends, as HH:MM. Leave empty for an entry that is still running.',
371
+ routing: { request: { body: { clock_out: '={{ $value }}' } } },
372
+ },
373
+ {
374
+ displayName: 'Note',
375
+ name: 'note',
376
+ type: 'string',
377
+ default: '',
378
+ description: 'A remark on the entry',
379
+ routing: { request: { body: { note: '={{ $value }}' } } },
380
+ },
381
+ {
382
+ displayName: 'Project ID',
383
+ name: 'projectId',
384
+ type: 'number',
385
+ default: 0,
386
+ description: 'The numeric ID of the project to book the time on',
387
+ routing: { request: { body: { project_id: '={{ $value }}' } } },
388
+ },
389
+ {
390
+ displayName: 'Task ID',
391
+ name: 'taskId',
392
+ type: 'number',
393
+ default: 0,
394
+ description: 'The numeric ID of the task to book the time on',
395
+ routing: { request: { body: { task_id: '={{ $value }}' } } },
396
+ },
397
+ {
398
+ displayName: 'Type',
399
+ name: 'type',
400
+ type: 'options',
401
+ default: 'work',
402
+ description: 'What the entry records',
403
+ options: ENTRY_TYPE_OPTIONS,
404
+ routing: { request: { body: { type: '={{ $value }}' } } },
405
+ },
406
+ ],
407
+ },
408
+ {
409
+ displayName: 'Update Fields',
410
+ name: 'entryUpdateFields',
411
+ type: 'collection',
412
+ placeholder: 'Add Field',
413
+ default: {},
414
+ displayOptions: { show: { ...show, operation: ['updateEntry'] } },
415
+ options: [
416
+ {
417
+ displayName: 'Absence Type Name or ID',
418
+ name: 'absenceTypeId',
419
+ type: 'options',
420
+ typeOptions: { loadOptionsMethod: 'getAbsenceTypes' },
421
+ default: '',
422
+ description: 'For an entry of type Absence: the kind of absence. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
423
+ routing: { request: { body: { absence_type_id: '={{ $value }}' } } },
424
+ },
425
+ {
426
+ displayName: 'Clock In',
427
+ name: 'clockIn',
428
+ type: 'string',
429
+ default: '',
430
+ placeholder: '08:30',
431
+ description: 'When the entry starts, as HH:MM',
432
+ routing: { request: { body: { clock_in: '={{ $value }}' } } },
433
+ },
434
+ {
435
+ displayName: 'Clock Out',
436
+ name: 'clockOut',
437
+ type: 'string',
438
+ default: '',
439
+ placeholder: '17:00',
440
+ description: 'When the entry ends, as HH:MM',
441
+ routing: { request: { body: { clock_out: '={{ $value }}' } } },
442
+ },
443
+ {
444
+ displayName: 'Note',
445
+ name: 'note',
446
+ type: 'string',
447
+ default: '',
448
+ description: 'A remark on the entry',
449
+ routing: { request: { body: { note: '={{ $value }}' } } },
450
+ },
451
+ {
452
+ displayName: 'Project ID',
453
+ name: 'projectId',
454
+ type: 'number',
455
+ default: 0,
456
+ description: 'The numeric ID of the project to book the time on',
457
+ routing: { request: { body: { project_id: '={{ $value }}' } } },
458
+ },
459
+ {
460
+ displayName: 'Task ID',
461
+ name: 'taskId',
462
+ type: 'number',
463
+ default: 0,
464
+ description: 'The numeric ID of the task to book the time on',
465
+ routing: { request: { body: { task_id: '={{ $value }}' } } },
466
+ },
467
+ {
468
+ displayName: 'Type',
469
+ name: 'type',
470
+ type: 'options',
471
+ default: 'work',
472
+ description: 'What the entry records',
473
+ options: ENTRY_TYPE_OPTIONS,
474
+ routing: { request: { body: { type: '={{ $value }}' } } },
475
+ },
476
+ ],
477
+ },
478
+ {
479
+ displayName: 'From',
480
+ name: 'from',
481
+ type: 'dateTime',
482
+ required: true,
483
+ default: '',
484
+ description: 'The first day of the range',
485
+ displayOptions: { show: { ...show, operation: ['getEntries'] } },
486
+ routing: { request: { qs: { from: DAY } } },
487
+ },
488
+ {
489
+ displayName: 'To',
490
+ name: 'to',
491
+ type: 'dateTime',
492
+ required: true,
493
+ default: '',
494
+ description: 'The last day of the range',
495
+ displayOptions: { show: { ...show, operation: ['getEntries'] } },
496
+ routing: { request: { qs: { to: DAY } } },
497
+ },
498
+ {
499
+ displayName: 'Year',
500
+ name: 'year',
501
+ type: 'number',
502
+ default: 0,
503
+ description: 'The year to read. Leave at 0 for the current year.',
504
+ displayOptions: { show: { ...show, operation: ['getMonthlyBalances', 'getAbsences'] } },
505
+ routing: { request: { qs: { year: '={{ $value || undefined }}' } } },
506
+ },
507
+ absenceTypeField(['createAbsence'], true),
508
+ {
509
+ displayName: 'From',
510
+ name: 'dateFrom',
511
+ type: 'dateTime',
512
+ required: true,
513
+ default: '',
514
+ description: 'The first day of the absence',
515
+ displayOptions: { show: { ...show, operation: ['createAbsence'] } },
516
+ routing: {
517
+ request: { body: { date_from: '={{ new Date($value).toISOString().slice(0, 10) }}' } },
518
+ },
519
+ },
520
+ {
521
+ displayName: 'To',
522
+ name: 'dateTo',
523
+ type: 'dateTime',
524
+ required: true,
525
+ default: '',
526
+ description: 'The last day of the absence',
527
+ displayOptions: { show: { ...show, operation: ['createAbsence'] } },
528
+ routing: {
529
+ request: { body: { date_to: '={{ new Date($value).toISOString().slice(0, 10) }}' } },
530
+ },
531
+ },
532
+ {
533
+ displayName: 'Additional Fields',
534
+ name: 'absenceFields',
535
+ type: 'collection',
536
+ placeholder: 'Add Field',
537
+ default: {},
538
+ displayOptions: { show: { ...show, operation: ['createAbsence'] } },
539
+ options: [
540
+ {
541
+ displayName: 'Half Day at End',
542
+ name: 'halfDayEnd',
543
+ type: 'boolean',
544
+ default: false,
545
+ description: 'Whether the last day counts as half a day',
546
+ routing: { request: { body: { half_day_end: '={{ $value }}' } } },
547
+ },
548
+ {
549
+ displayName: 'Half Day at Start',
550
+ name: 'halfDayStart',
551
+ type: 'boolean',
552
+ default: false,
553
+ description: 'Whether the first day counts as half a day',
554
+ routing: { request: { body: { half_day_start: '={{ $value }}' } } },
555
+ },
556
+ {
557
+ displayName: 'Note',
558
+ name: 'note',
559
+ type: 'string',
560
+ default: '',
561
+ description: 'A remark for whoever reviews the request',
562
+ routing: { request: { body: { note: '={{ $value }}' } } },
563
+ },
564
+ ],
565
+ },
566
+ {
567
+ displayName: 'Update Fields',
568
+ name: 'absenceUpdateFields',
569
+ type: 'collection',
570
+ placeholder: 'Add Field',
571
+ default: {},
572
+ displayOptions: { show: { ...show, operation: ['updateAbsence'] } },
573
+ options: [
574
+ {
575
+ displayName: 'Absence Type Name or ID',
576
+ name: 'absenceTypeId',
577
+ type: 'options',
578
+ typeOptions: { loadOptionsMethod: 'getAbsenceTypes' },
579
+ default: '',
580
+ description: 'The kind of absence. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
581
+ routing: { request: { body: { absence_type_id: '={{ $value }}' } } },
582
+ },
583
+ {
584
+ displayName: 'From',
585
+ name: 'dateFrom',
586
+ type: 'dateTime',
587
+ default: '',
588
+ description: 'The first day of the absence',
589
+ routing: { request: { body: { date_from: DAY } } },
590
+ },
591
+ {
592
+ displayName: 'Half Day at End',
593
+ name: 'halfDayEnd',
594
+ type: 'boolean',
595
+ default: false,
596
+ description: 'Whether the last day counts as half a day',
597
+ routing: { request: { body: { half_day_end: '={{ $value }}' } } },
598
+ },
599
+ {
600
+ displayName: 'Half Day at Start',
601
+ name: 'halfDayStart',
602
+ type: 'boolean',
603
+ default: false,
604
+ description: 'Whether the first day counts as half a day',
605
+ routing: { request: { body: { half_day_start: '={{ $value }}' } } },
606
+ },
607
+ {
608
+ displayName: 'Note',
609
+ name: 'note',
610
+ type: 'string',
611
+ default: '',
612
+ description: 'A remark for whoever reviews the request',
613
+ routing: { request: { body: { note: '={{ $value }}' } } },
614
+ },
615
+ {
616
+ displayName: 'To',
617
+ name: 'dateTo',
618
+ type: 'dateTime',
619
+ default: '',
620
+ description: 'The last day of the absence',
621
+ routing: { request: { body: { date_to: DAY } } },
622
+ },
623
+ ],
624
+ },
625
+ {
626
+ displayName: 'Filter by Status',
627
+ name: 'filterStatus',
628
+ type: 'options',
629
+ default: '',
630
+ description: 'Return only absence requests in this state',
631
+ options: [
632
+ { name: 'Any', value: '' },
633
+ { name: 'Approved', value: 'approved' },
634
+ { name: 'Cancelled', value: 'cancelled' },
635
+ { name: 'Pending', value: 'pending' },
636
+ { name: 'Rejected', value: 'rejected' },
637
+ ],
638
+ displayOptions: { show: { ...show, operation: ['getAbsences'] } },
639
+ routing: { request: { qs: { status: '={{ $value || undefined }}' } } },
640
+ },
641
+ ];
642
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/KibiConnect/resources/timeTracking/index.ts"],"names":[],"mappings":";;;AAEA,4DAAuD;AAEvD,MAAM,CAAC,GAAG,cAAc,CAAC;AACzB,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAG/B,MAAM,GAAG,GAAG,yEAAyE,CAAC;AAEtF,MAAM,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,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE;aACzD;YACD;gBACC,WAAW,EAAE,IAAI;gBACjB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,6BAA6B;gBAC1C,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE;aAChD;SACD;KACD;IAED;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4CAA4C;QACzD,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;YAC1B,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;YACvC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;YACzC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;YACrC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;SACvC;QACD,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE;QACjE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,4BAA4B,EAAE,EAAE,EAAE;KACtE;CACD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { IExecuteSingleFunctions, IHttpRequestOptions, IN8nHttpFullResponse, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function uploadBinary(this: IExecuteSingleFunctions, requestOptions: IHttpRequestOptions): Promise<IHttpRequestOptions>;
3
+ export declare function downloadBinary(this: IExecuteSingleFunctions, _items: INodeExecutionData[], responseData: IN8nHttpFullResponse): Promise<INodeExecutionData[]>;
4
+ export declare function extractFileName(contentDisposition: string | undefined): string;