n8n-nodes-innotes 1.0.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.
Files changed (31) hide show
  1. package/README.md +305 -0
  2. package/dist/credentials/InNotesApi.credentials.js +108 -0
  3. package/dist/credentials/InNotesApi.credentials.js.map +1 -0
  4. package/dist/credentials/InNotesApi.credentials.ts +111 -0
  5. package/dist/credentials/Logo_128.png +0 -0
  6. package/dist/descriptions/ContactDescription.js +291 -0
  7. package/dist/descriptions/ContactDescription.js.map +1 -0
  8. package/dist/descriptions/JobDescription.js +413 -0
  9. package/dist/descriptions/JobDescription.js.map +1 -0
  10. package/dist/descriptions/NoteDescription.js +130 -0
  11. package/dist/descriptions/NoteDescription.js.map +1 -0
  12. package/dist/descriptions/StatusDescription.js +78 -0
  13. package/dist/descriptions/StatusDescription.js.map +1 -0
  14. package/dist/descriptions/TagDescription.js +34 -0
  15. package/dist/descriptions/TagDescription.js.map +1 -0
  16. package/dist/descriptions/UserDescription.js +40 -0
  17. package/dist/descriptions/UserDescription.js.map +1 -0
  18. package/dist/icons/Logo_128.png +0 -0
  19. package/dist/nodes/InNotes/InNotes.node.js +679 -0
  20. package/dist/nodes/InNotes/InNotes.node.js.map +1 -0
  21. package/dist/nodes/InNotes/Logo_128.png +0 -0
  22. package/dist/package.json +70 -0
  23. package/dist/test/InNotes.node.test.js +144 -0
  24. package/dist/test/InNotes.node.test.js.map +1 -0
  25. package/dist/test/setup.js +38 -0
  26. package/dist/test/setup.js.map +1 -0
  27. package/dist/types/InNotesTypes.js +8 -0
  28. package/dist/types/InNotesTypes.js.map +1 -0
  29. package/dist/utils/helpers.js +172 -0
  30. package/dist/utils/helpers.js.map +1 -0
  31. package/package.json +70 -0
@@ -0,0 +1,413 @@
1
+ "use strict";
2
+ /**
3
+ * @author Marco Visin
4
+ * @date 2025-06-02
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.jobFields = exports.jobOperations = void 0;
8
+ exports.jobOperations = [
9
+ {
10
+ displayName: 'Operation',
11
+ name: 'operation',
12
+ type: 'options',
13
+ noDataExpression: true,
14
+ displayOptions: {
15
+ show: {
16
+ resource: ['job'],
17
+ },
18
+ },
19
+ options: [
20
+ {
21
+ name: 'Create',
22
+ value: 'create',
23
+ description: 'Create a new job',
24
+ action: 'Create a job',
25
+ },
26
+ {
27
+ name: 'Get',
28
+ value: 'get',
29
+ description: 'Get a job by ID',
30
+ action: 'Get a job',
31
+ },
32
+ {
33
+ name: 'Get All',
34
+ value: 'getAll',
35
+ description: 'Get all jobs',
36
+ action: 'Get all jobs',
37
+ },
38
+ {
39
+ name: 'Search',
40
+ value: 'search',
41
+ description: 'Search for jobs',
42
+ action: 'Search for jobs',
43
+ },
44
+ {
45
+ name: 'Update',
46
+ value: 'update',
47
+ description: 'Update a job',
48
+ action: 'Update a job',
49
+ },
50
+ {
51
+ name: 'Delete',
52
+ value: 'delete',
53
+ description: 'Delete a job',
54
+ action: 'Delete a job',
55
+ },
56
+ ],
57
+ default: 'getAll',
58
+ },
59
+ ];
60
+ exports.jobFields = [
61
+ // Create fields
62
+ {
63
+ displayName: 'Job Name',
64
+ name: 'name',
65
+ type: 'string',
66
+ required: true,
67
+ displayOptions: {
68
+ show: {
69
+ resource: ['job'],
70
+ operation: ['create'],
71
+ },
72
+ },
73
+ default: '',
74
+ description: 'The name of the job position',
75
+ },
76
+ {
77
+ displayName: 'Company Name',
78
+ name: 'company_name',
79
+ type: 'string',
80
+ required: true,
81
+ displayOptions: {
82
+ show: {
83
+ resource: ['job'],
84
+ operation: ['create'],
85
+ },
86
+ },
87
+ default: '',
88
+ description: 'The name of the company',
89
+ },
90
+ {
91
+ displayName: 'Location',
92
+ name: 'location',
93
+ type: 'string',
94
+ displayOptions: {
95
+ show: {
96
+ resource: ['job'],
97
+ operation: ['create'],
98
+ },
99
+ },
100
+ default: '',
101
+ description: 'The job location',
102
+ },
103
+ {
104
+ displayName: 'Description',
105
+ name: 'description',
106
+ type: 'string',
107
+ displayOptions: {
108
+ show: {
109
+ resource: ['job'],
110
+ operation: ['create'],
111
+ },
112
+ },
113
+ default: '',
114
+ description: 'The job description',
115
+ },
116
+ {
117
+ displayName: 'Remote Setting',
118
+ name: 'remote_setting',
119
+ type: 'string',
120
+ displayOptions: {
121
+ show: {
122
+ resource: ['job'],
123
+ operation: ['create'],
124
+ },
125
+ },
126
+ default: '',
127
+ description: 'Remote work setting (e.g., "Remote", "Hybrid", "On-site")',
128
+ },
129
+ {
130
+ displayName: 'Company URL',
131
+ name: 'company_url',
132
+ type: 'string',
133
+ displayOptions: {
134
+ show: {
135
+ resource: ['job'],
136
+ operation: ['create'],
137
+ },
138
+ },
139
+ default: '',
140
+ description: 'The company website URL',
141
+ },
142
+ {
143
+ displayName: 'Status',
144
+ name: 'status',
145
+ type: 'options',
146
+ typeOptions: {
147
+ loadOptionsMethod: 'jobStatuses',
148
+ },
149
+ displayOptions: {
150
+ show: {
151
+ resource: ['job'],
152
+ operation: ['create'],
153
+ },
154
+ },
155
+ default: '',
156
+ description: 'The job status to assign',
157
+ },
158
+ {
159
+ displayName: 'External ID',
160
+ name: 'ext_id',
161
+ type: 'string',
162
+ displayOptions: {
163
+ show: {
164
+ resource: ['job'],
165
+ operation: ['create'],
166
+ },
167
+ },
168
+ default: '',
169
+ description: 'External identifier for the job',
170
+ },
171
+ {
172
+ displayName: 'Picture URL',
173
+ name: 'picture_url',
174
+ type: 'string',
175
+ displayOptions: {
176
+ show: {
177
+ resource: ['job'],
178
+ operation: ['create'],
179
+ },
180
+ },
181
+ default: '',
182
+ description: 'URL to the job or company logo image',
183
+ },
184
+ {
185
+ displayName: 'Tags',
186
+ name: 'tags',
187
+ type: 'string',
188
+ displayOptions: {
189
+ show: {
190
+ resource: ['job'],
191
+ operation: ['create'],
192
+ },
193
+ },
194
+ default: '',
195
+ description: 'Tags to associate with this job (comma-separated)',
196
+ },
197
+ // Get operations
198
+ {
199
+ displayName: 'Job ID',
200
+ name: 'jobId',
201
+ type: 'string',
202
+ required: true,
203
+ displayOptions: {
204
+ show: {
205
+ resource: ['job'],
206
+ operation: ['get', 'update', 'delete'],
207
+ },
208
+ },
209
+ default: '',
210
+ description: 'The ID of the job',
211
+ },
212
+ // Get All fields
213
+ {
214
+ displayName: 'Search Term',
215
+ name: 'search',
216
+ type: 'string',
217
+ displayOptions: {
218
+ show: {
219
+ resource: ['job'],
220
+ operation: ['getAll'],
221
+ },
222
+ },
223
+ default: '',
224
+ description: 'Search term to filter jobs',
225
+ },
226
+ {
227
+ displayName: 'External ID',
228
+ name: 'ext_id',
229
+ type: 'string',
230
+ displayOptions: {
231
+ show: {
232
+ resource: ['job'],
233
+ operation: ['getAll'],
234
+ },
235
+ },
236
+ default: '',
237
+ description: 'External ID to filter jobs',
238
+ },
239
+ // Search fields
240
+ {
241
+ displayName: 'Search Query',
242
+ name: 'searchQuery',
243
+ type: 'string',
244
+ required: true,
245
+ displayOptions: {
246
+ show: {
247
+ resource: ['job'],
248
+ operation: ['search'],
249
+ },
250
+ },
251
+ default: '',
252
+ description: 'Search query to find jobs (searches in title, company, and description)',
253
+ },
254
+ {
255
+ displayName: 'Additional Options',
256
+ name: 'searchOptions',
257
+ type: 'collection',
258
+ placeholder: 'Add Option',
259
+ default: {},
260
+ displayOptions: {
261
+ show: {
262
+ resource: ['job'],
263
+ operation: ['search'],
264
+ },
265
+ },
266
+ options: [
267
+ {
268
+ displayName: 'Location',
269
+ name: 'location',
270
+ type: 'string',
271
+ default: '',
272
+ description: 'Filter by job location',
273
+ },
274
+ {
275
+ displayName: 'Company',
276
+ name: 'company',
277
+ type: 'string',
278
+ default: '',
279
+ description: 'Filter by company name',
280
+ },
281
+ {
282
+ displayName: 'Remote Setting',
283
+ name: 'remote_setting',
284
+ type: 'options',
285
+ options: [
286
+ {
287
+ name: 'On-site',
288
+ value: 'on-site',
289
+ },
290
+ {
291
+ name: 'Remote',
292
+ value: 'remote',
293
+ },
294
+ {
295
+ name: 'Hybrid',
296
+ value: 'hybrid',
297
+ },
298
+ ],
299
+ default: '',
300
+ description: 'Filter by remote work setting',
301
+ },
302
+ {
303
+ displayName: 'Status',
304
+ name: 'status',
305
+ type: 'string',
306
+ default: '',
307
+ description: 'Filter by job status',
308
+ },
309
+ {
310
+ displayName: 'Tags',
311
+ name: 'tags',
312
+ type: 'string',
313
+ default: '',
314
+ description: 'Filter by tags (comma-separated)',
315
+ },
316
+ {
317
+ displayName: 'Limit',
318
+ name: 'limit',
319
+ type: 'number',
320
+ typeOptions: {
321
+ minValue: 1,
322
+ maxValue: 100,
323
+ },
324
+ default: 24,
325
+ description: 'Maximum number of results to return',
326
+ },
327
+ ],
328
+ },
329
+ // Update fields
330
+ {
331
+ displayName: 'Update Fields',
332
+ name: 'updateFields',
333
+ type: 'collection',
334
+ placeholder: 'Add Field',
335
+ default: {},
336
+ displayOptions: {
337
+ show: {
338
+ resource: ['job'],
339
+ operation: ['update'],
340
+ },
341
+ },
342
+ options: [
343
+ {
344
+ displayName: 'Name',
345
+ name: 'name',
346
+ type: 'string',
347
+ default: '',
348
+ },
349
+ {
350
+ displayName: 'Company Name',
351
+ name: 'company_name',
352
+ type: 'string',
353
+ default: '',
354
+ },
355
+ {
356
+ displayName: 'Location',
357
+ name: 'location',
358
+ type: 'string',
359
+ default: '',
360
+ },
361
+ {
362
+ displayName: 'Description',
363
+ name: 'description',
364
+ type: 'string',
365
+ default: '',
366
+ },
367
+ {
368
+ displayName: 'Remote Setting',
369
+ name: 'remote_setting',
370
+ type: 'string',
371
+ default: '',
372
+ },
373
+ {
374
+ displayName: 'Company URL',
375
+ name: 'company_url',
376
+ type: 'string',
377
+ default: '',
378
+ },
379
+ {
380
+ displayName: 'Status ID',
381
+ name: 'status_id',
382
+ type: 'string',
383
+ default: '',
384
+ },
385
+ {
386
+ displayName: 'Status',
387
+ name: 'status',
388
+ type: 'options',
389
+ typeOptions: {
390
+ loadOptionsMethod: 'jobStatuses',
391
+ },
392
+ default: '',
393
+ description: 'Status name (takes precedence over Status ID)',
394
+ },
395
+ {
396
+ displayName: 'Picture URL',
397
+ name: 'picture_url',
398
+ type: 'string',
399
+ default: '',
400
+ description: 'URL to the job or company logo image',
401
+ },
402
+ {
403
+ displayName: 'Tags',
404
+ name: 'tags',
405
+ type: 'string',
406
+ default: '',
407
+ description: 'Tags to associate with this job (comma-separated)',
408
+ },
409
+ ],
410
+ },
411
+ ];
412
+
413
+ //# sourceMappingURL=JobDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../descriptions/JobDescription.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIU,QAAA,aAAa,GAAsB;IAC/C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,KAAK,CAAC;aACjB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kBAAkB;gBAC/B,MAAM,EAAE,cAAc;aACtB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,WAAW;aACnB;YACD;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,cAAc;gBAC3B,MAAM,EAAE,cAAc;aACtB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,cAAc;gBAC3B,MAAM,EAAE,cAAc;aACtB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAA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AAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE;oBACZ,iBAAiB,EAAE,aAAa;iBAChC;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,+CAA+C;aAC5D;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sCAAsC;aACnD;YACD;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,mDAAmD;aAChE;SACD;KACD;CACD,CAAC","file":"JobDescription.js","sourcesContent":["/**\n * @author Marco Visin\n * @date 2025-06-02\n */\n\nimport {INodeProperties} from 'n8n-workflow';\n\nexport const jobOperations: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'Operation',\n\t\tname: 'operation',\n\t\ttype: 'options',\n\t\tnoDataExpression: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tname: 'Create',\n\t\t\t\tvalue: 'create',\n\t\t\t\tdescription: 'Create a new job',\n\t\t\t\taction: 'Create a job',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Get',\n\t\t\t\tvalue: 'get',\n\t\t\t\tdescription: 'Get a job by ID',\n\t\t\t\taction: 'Get a job',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Get All',\n\t\t\t\tvalue: 'getAll',\n\t\t\t\tdescription: 'Get all jobs',\n\t\t\t\taction: 'Get all jobs',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Search',\n\t\t\t\tvalue: 'search',\n\t\t\t\tdescription: 'Search for jobs',\n\t\t\t\taction: 'Search for jobs',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Update',\n\t\t\t\tvalue: 'update',\n\t\t\t\tdescription: 'Update a job',\n\t\t\t\taction: 'Update a job',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Delete',\n\t\t\t\tvalue: 'delete',\n\t\t\t\tdescription: 'Delete a job',\n\t\t\t\taction: 'Delete a job',\n\t\t\t},\n\t\t],\n\t\tdefault: 'getAll',\n\t},\n];\n\nexport const jobFields: INodeProperties[] = [\n\t// Create fields\n\t{\n\t\tdisplayName: 'Job Name',\n\t\tname: 'name',\n\t\ttype: 'string',\n\t\trequired: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'The name of the job position',\n\t},\n\t{\n\t\tdisplayName: 'Company Name',\n\t\tname: 'company_name',\n\t\ttype: 'string',\n\t\trequired: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'The name of the company',\n\t},\n\t{\n\t\tdisplayName: 'Location',\n\t\tname: 'location',\n\t\ttype: 'string',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'The job location',\n\t},\n\t{\n\t\tdisplayName: 'Description',\n\t\tname: 'description',\n\t\ttype: 'string',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'The job description',\n\t},\n\t{\n\t\tdisplayName: 'Remote Setting',\n\t\tname: 'remote_setting',\n\t\ttype: 'string',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'Remote work setting (e.g., \"Remote\", \"Hybrid\", \"On-site\")',\n\t},\n\t{\n\t\tdisplayName: 'Company URL',\n\t\tname: 'company_url',\n\t\ttype: 'string',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'The company website URL',\n\t},\n\t{\n\t\tdisplayName: 'Status',\n\t\tname: 'status',\n\t\ttype: 'options',\n\t\ttypeOptions: {\n\t\t\tloadOptionsMethod: 'jobStatuses',\n\t\t},\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'The job status to assign',\n\t},\n\t{\n\t\tdisplayName: 'External ID',\n\t\tname: 'ext_id',\n\t\ttype: 'string',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'External identifier for the job',\n\t},\n\t{\n\t\tdisplayName: 'Picture URL',\n\t\tname: 'picture_url',\n\t\ttype: 'string',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'URL to the job or company logo image',\n\t},\n\t{\n\t\tdisplayName: 'Tags',\n\t\tname: 'tags',\n\t\ttype: 'string',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'Tags to associate with this job (comma-separated)',\n\t},\n\n\t// Get operations\n\t{\n\t\tdisplayName: 'Job ID',\n\t\tname: 'jobId',\n\t\ttype: 'string',\n\t\trequired: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['get', 'update', 'delete'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'The ID of the job',\n\t},\n\n\t// Get All fields\n\t{\n\t\tdisplayName: 'Search Term',\n\t\tname: 'search',\n\t\ttype: 'string',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['getAll'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'Search term to filter jobs',\n\t},\n\t{\n\t\tdisplayName: 'External ID',\n\t\tname: 'ext_id',\n\t\ttype: 'string',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['getAll'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'External ID to filter jobs',\n\t},\n\n\t// Search fields\n\t{\n\t\tdisplayName: 'Search Query',\n\t\tname: 'searchQuery',\n\t\ttype: 'string',\n\t\trequired: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['search'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'Search query to find jobs (searches in title, company, and description)',\n\t},\n\t{\n\t\tdisplayName: 'Additional Options',\n\t\tname: 'searchOptions',\n\t\ttype: 'collection',\n\t\tplaceholder: 'Add Option',\n\t\tdefault: {},\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['search'],\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tdisplayName: 'Location',\n\t\t\t\tname: 'location',\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t\tdescription: 'Filter by job location',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Company',\n\t\t\t\tname: 'company',\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t\tdescription: 'Filter by company name',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Remote Setting',\n\t\t\t\tname: 'remote_setting',\n\t\t\t\ttype: 'options',\n\t\t\t\toptions: [\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'On-site',\n\t\t\t\t\t\tvalue: 'on-site',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'Remote',\n\t\t\t\t\t\tvalue: 'remote',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'Hybrid',\n\t\t\t\t\t\tvalue: 'hybrid',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tdefault: '',\n\t\t\t\tdescription: 'Filter by remote work setting',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Status',\n\t\t\t\tname: 'status',\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t\tdescription: 'Filter by job status',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Tags',\n\t\t\t\tname: 'tags',\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t\tdescription: 'Filter by tags (comma-separated)',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Limit',\n\t\t\t\tname: 'limit',\n\t\t\t\ttype: 'number',\n\t\t\t\ttypeOptions: {\n\t\t\t\t\tminValue: 1,\n\t\t\t\t\tmaxValue: 100,\n\t\t\t\t},\n\t\t\t\tdefault: 24,\n\t\t\t\tdescription: 'Maximum number of results to return',\n\t\t\t},\n\t\t],\n\t},\n\n\t// Update fields\n\t{\n\t\tdisplayName: 'Update Fields',\n\t\tname: 'updateFields',\n\t\ttype: 'collection',\n\t\tplaceholder: 'Add Field',\n\t\tdefault: {},\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['job'],\n\t\t\t\toperation: ['update'],\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tdisplayName: 'Name',\n\t\t\t\tname: 'name',\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Company Name',\n\t\t\t\tname: 'company_name',\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Location',\n\t\t\t\tname: 'location',\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Description',\n\t\t\t\tname: 'description',\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Remote Setting',\n\t\t\t\tname: 'remote_setting',\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Company URL',\n\t\t\t\tname: 'company_url',\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Status ID',\n\t\t\t\tname: 'status_id',\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Status',\n\t\t\t\tname: 'status',\n\t\t\t\ttype: 'options',\n\t\t\t\ttypeOptions: {\n\t\t\t\t\tloadOptionsMethod: 'jobStatuses',\n\t\t\t\t},\n\t\t\t\tdefault: '',\n\t\t\t\tdescription: 'Status name (takes precedence over Status ID)',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Picture URL',\n\t\t\t\tname: 'picture_url',\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t\tdescription: 'URL to the job or company logo image',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Tags',\n\t\t\t\tname: 'tags',\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '',\n\t\t\t\tdescription: 'Tags to associate with this job (comma-separated)',\n\t\t\t},\n\t\t],\n\t},\n];\n\n"]}
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+ /**
3
+ * @author Marco Visin
4
+ * @date 2025-05-30
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.noteFields = exports.noteOperations = void 0;
8
+ exports.noteOperations = [
9
+ {
10
+ displayName: 'Operation',
11
+ name: 'operation',
12
+ type: 'options',
13
+ noDataExpression: true,
14
+ displayOptions: {
15
+ show: {
16
+ resource: ['note'],
17
+ },
18
+ },
19
+ options: [
20
+ {
21
+ name: 'Create',
22
+ value: 'create',
23
+ description: 'Create a new note',
24
+ action: 'Create a note',
25
+ },
26
+ {
27
+ name: 'Get',
28
+ value: 'get',
29
+ description: 'Get notes by external ID',
30
+ action: 'Get notes',
31
+ },
32
+ ],
33
+ default: 'create',
34
+ },
35
+ ];
36
+ exports.noteFields = [
37
+ // Create fields
38
+ {
39
+ displayName: 'External ID',
40
+ name: 'ext_id',
41
+ type: 'string',
42
+ required: true,
43
+ displayOptions: {
44
+ show: {
45
+ resource: ['note'],
46
+ operation: ['create', 'get'],
47
+ },
48
+ },
49
+ default: '',
50
+ description: 'The external ID (e.g., contact ID) to associate the note with',
51
+ },
52
+ {
53
+ displayName: 'Note Text',
54
+ name: 'text',
55
+ type: 'string',
56
+ typeOptions: {
57
+ rows: 4,
58
+ },
59
+ required: true,
60
+ displayOptions: {
61
+ show: {
62
+ resource: ['note'],
63
+ operation: ['create'],
64
+ },
65
+ },
66
+ default: '',
67
+ description: 'The content of the note',
68
+ },
69
+ {
70
+ displayName: 'External Table Name',
71
+ name: 'ext_table_name',
72
+ type: 'options',
73
+ options: [
74
+ {
75
+ name: 'Contacts',
76
+ value: 'contacts',
77
+ },
78
+ {
79
+ name: 'Jobs',
80
+ value: 'jobs',
81
+ },
82
+ ],
83
+ displayOptions: {
84
+ show: {
85
+ resource: ['note'],
86
+ operation: ['create'],
87
+ },
88
+ },
89
+ default: 'contacts',
90
+ description: 'The table name the note is associated with',
91
+ },
92
+ {
93
+ displayName: 'Visibility',
94
+ name: 'visibility',
95
+ type: 'options',
96
+ options: [
97
+ {
98
+ name: 'Private',
99
+ value: 'private',
100
+ },
101
+ {
102
+ name: 'Public',
103
+ value: 'public',
104
+ },
105
+ ],
106
+ displayOptions: {
107
+ show: {
108
+ resource: ['note'],
109
+ operation: ['create'],
110
+ },
111
+ },
112
+ default: 'private',
113
+ description: 'The visibility of the note',
114
+ },
115
+ {
116
+ displayName: 'Flag Color',
117
+ name: 'flagColor',
118
+ type: 'string',
119
+ displayOptions: {
120
+ show: {
121
+ resource: ['note'],
122
+ operation: ['create'],
123
+ },
124
+ },
125
+ default: '',
126
+ description: 'Optional color flag for the note (e.g., #ff0000)',
127
+ },
128
+ ];
129
+
130
+ //# sourceMappingURL=NoteDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../descriptions/NoteDescription.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIU,QAAA,cAAc,GAAsB;IAChD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;aAClB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,K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AAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;aAChB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;aACf;SACD;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,SAAS;QAClB,WAAW,EAAE,4BAA4B;KACzC;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kDAAkD;KAC/D;CACD,CAAC","file":"NoteDescription.js","sourcesContent":["/**\n * @author Marco Visin\n * @date 2025-05-30\n */\n\nimport { INodeProperties } from 'n8n-workflow';\n\nexport const noteOperations: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'Operation',\n\t\tname: 'operation',\n\t\ttype: 'options',\n\t\tnoDataExpression: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['note'],\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tname: 'Create',\n\t\t\t\tvalue: 'create',\n\t\t\t\tdescription: 'Create a new note',\n\t\t\t\taction: 'Create a note',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Get',\n\t\t\t\tvalue: 'get',\n\t\t\t\tdescription: 'Get notes by external ID',\n\t\t\t\taction: 'Get notes',\n\t\t\t},\n\t\t],\n\t\tdefault: 'create',\n\t},\n];\n\nexport const noteFields: INodeProperties[] = [\n\t// Create fields\n\t{\n\t\tdisplayName: 'External ID',\n\t\tname: 'ext_id',\n\t\ttype: 'string',\n\t\trequired: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['note'],\n\t\t\t\toperation: ['create', 'get'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'The external ID (e.g., contact ID) to associate the note with',\n\t},\n\t{\n\t\tdisplayName: 'Note Text',\n\t\tname: 'text',\n\t\ttype: 'string',\n\t\ttypeOptions: {\n\t\t\trows: 4,\n\t\t},\n\t\trequired: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['note'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'The content of the note',\n\t},\n\t{\n\t\tdisplayName: 'External Table Name',\n\t\tname: 'ext_table_name',\n\t\ttype: 'options',\n\t\toptions: [\n\t\t\t{\n\t\t\t\tname: 'Contacts',\n\t\t\t\tvalue: 'contacts',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Jobs',\n\t\t\t\tvalue: 'jobs',\n\t\t\t},\n\t\t],\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['note'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: 'contacts',\n\t\tdescription: 'The table name the note is associated with',\n\t},\n\t{\n\t\tdisplayName: 'Visibility',\n\t\tname: 'visibility',\n\t\ttype: 'options',\n\t\toptions: [\n\t\t\t{\n\t\t\t\tname: 'Private',\n\t\t\t\tvalue: 'private',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Public',\n\t\t\t\tvalue: 'public',\n\t\t\t},\n\t\t],\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['note'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: 'private',\n\t\tdescription: 'The visibility of the note',\n\t},\n\t{\n\t\tdisplayName: 'Flag Color',\n\t\tname: 'flagColor',\n\t\ttype: 'string',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['note'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'Optional color flag for the note (e.g., #ff0000)',\n\t},\n];\n"]}
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ /**
3
+ * @author Marco Visin
4
+ * @date 2025-05-30
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.statusFields = exports.statusOperations = void 0;
8
+ exports.statusOperations = [
9
+ {
10
+ displayName: 'Operation',
11
+ name: 'operation',
12
+ type: 'options',
13
+ noDataExpression: true,
14
+ displayOptions: {
15
+ show: {
16
+ resource: ['status'],
17
+ },
18
+ },
19
+ options: [
20
+ {
21
+ name: 'Get All',
22
+ value: 'getAll',
23
+ description: 'Get all statuses',
24
+ action: 'Get all statuses',
25
+ },
26
+ {
27
+ name: 'Create',
28
+ value: 'create',
29
+ description: 'Create a new status',
30
+ action: 'Create a status',
31
+ },
32
+ ],
33
+ default: 'getAll',
34
+ },
35
+ ];
36
+ exports.statusFields = [
37
+ // Get All fields
38
+ {
39
+ displayName: 'Type',
40
+ name: 'type',
41
+ type: 'options',
42
+ options: [
43
+ {
44
+ name: 'Contact',
45
+ value: 'contact',
46
+ },
47
+ {
48
+ name: 'Job',
49
+ value: 'job',
50
+ },
51
+ ],
52
+ displayOptions: {
53
+ show: {
54
+ resource: ['status'],
55
+ operation: ['getAll', 'create'],
56
+ },
57
+ },
58
+ default: 'contact',
59
+ description: 'The type of status to retrieve',
60
+ },
61
+ // Create fields
62
+ {
63
+ displayName: 'Name',
64
+ name: 'name',
65
+ type: 'string',
66
+ required: true,
67
+ displayOptions: {
68
+ show: {
69
+ resource: ['status'],
70
+ operation: ['create'],
71
+ },
72
+ },
73
+ default: '',
74
+ description: 'The name of the status',
75
+ },
76
+ ];
77
+
78
+ //# sourceMappingURL=StatusDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../descriptions/StatusDescription.ts"],"names":[],"m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E,EAAE;QACX,WAAW,EAAE,wBAAwB;KACrC;CACD,CAAC","file":"StatusDescription.js","sourcesContent":["/**\n * @author Marco Visin\n * @date 2025-05-30\n */\n\nimport { INodeProperties } from 'n8n-workflow';\n\nexport const statusOperations: INodeProperties[] = [\n\t{\n\t\tdisplayName: 'Operation',\n\t\tname: 'operation',\n\t\ttype: 'options',\n\t\tnoDataExpression: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['status'],\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tname: 'Get All',\n\t\t\t\tvalue: 'getAll',\n\t\t\t\tdescription: 'Get all statuses',\n\t\t\t\taction: 'Get all statuses',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Create',\n\t\t\t\tvalue: 'create',\n\t\t\t\tdescription: 'Create a new status',\n\t\t\t\taction: 'Create a status',\n\t\t\t},\n\t\t],\n\t\tdefault: 'getAll',\n\t},\n];\n\nexport const statusFields: INodeProperties[] = [\n\t// Get All fields\n\t{\n\t\tdisplayName: 'Type',\n\t\tname: 'type',\n\t\ttype: 'options',\n\t\toptions: [\n\t\t\t{\n\t\t\t\tname: 'Contact',\n\t\t\t\tvalue: 'contact',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Job',\n\t\t\t\tvalue: 'job',\n\t\t\t},\n\t\t],\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['status'],\n\t\t\t\toperation: ['getAll', 'create'],\n\t\t\t},\n\t\t},\n\t\tdefault: 'contact',\n\t\tdescription: 'The type of status to retrieve',\n\t},\n\n\t// Create fields\n\t{\n\t\tdisplayName: 'Name',\n\t\tname: 'name',\n\t\ttype: 'string',\n\t\trequired: true,\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['status'],\n\t\t\t\toperation: ['create'],\n\t\t\t},\n\t\t},\n\t\tdefault: '',\n\t\tdescription: 'The name of the status',\n\t},\n];\n"]}