n8n-nodes-netsendo 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.
- package/LICENSE.md +19 -0
- package/README.md +88 -0
- package/dist/credentials/NetSendoApi.credentials.d.ts +10 -0
- package/dist/credentials/NetSendoApi.credentials.js +49 -0
- package/dist/credentials/NetSendoApi.credentials.js.map +1 -0
- package/dist/icons/github.dark.svg +3 -0
- package/dist/icons/github.svg +3 -0
- package/dist/icons/netsendo.svg +19 -0
- package/dist/nodes/Example/Example.node.d.ts +5 -0
- package/dist/nodes/Example/Example.node.js +61 -0
- package/dist/nodes/Example/Example.node.js.map +1 -0
- package/dist/nodes/Example/Example.node.json +18 -0
- package/dist/nodes/Example/example.dark.svg +13 -0
- package/dist/nodes/Example/example.svg +13 -0
- package/dist/nodes/NetSendo/NetSendo.node.d.ts +10 -0
- package/dist/nodes/NetSendo/NetSendo.node.js +76 -0
- package/dist/nodes/NetSendo/NetSendo.node.js.map +1 -0
- package/dist/nodes/NetSendo/NetSendo.node.json +14 -0
- package/dist/nodes/NetSendo/listSearch/getLists.d.ts +2 -0
- package/dist/nodes/NetSendo/listSearch/getLists.js +13 -0
- package/dist/nodes/NetSendo/listSearch/getLists.js.map +1 -0
- package/dist/nodes/NetSendo/resources/list/index.d.ts +2 -0
- package/dist/nodes/NetSendo/resources/list/index.js +243 -0
- package/dist/nodes/NetSendo/resources/list/index.js.map +1 -0
- package/dist/nodes/NetSendo/resources/subscriber/index.d.ts +2 -0
- package/dist/nodes/NetSendo/resources/subscriber/index.js +494 -0
- package/dist/nodes/NetSendo/resources/subscriber/index.js.map +1 -0
- package/dist/nodes/NetSendo/resources/tag/index.d.ts +2 -0
- package/dist/nodes/NetSendo/resources/tag/index.js +139 -0
- package/dist/nodes/NetSendo/resources/tag/index.js.map +1 -0
- package/dist/nodes/NetSendo/shared/transport.d.ts +2 -0
- package/dist/nodes/NetSendo/shared/transport.js +23 -0
- package/dist/nodes/NetSendo/shared/transport.js.map +1 -0
- package/dist/package.json +54 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +54 -0
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subscriberDescription = void 0;
|
|
4
|
+
const showOnlyForSubscriber = {
|
|
5
|
+
resource: ['subscriber'],
|
|
6
|
+
};
|
|
7
|
+
exports.subscriberDescription = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: showOnlyForSubscriber,
|
|
15
|
+
},
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Create',
|
|
19
|
+
value: 'create',
|
|
20
|
+
action: 'Create a subscriber',
|
|
21
|
+
description: 'Create a new subscriber',
|
|
22
|
+
routing: {
|
|
23
|
+
request: {
|
|
24
|
+
method: 'POST',
|
|
25
|
+
url: '/subscribers',
|
|
26
|
+
},
|
|
27
|
+
output: {
|
|
28
|
+
postReceive: [
|
|
29
|
+
{
|
|
30
|
+
type: 'rootProperty',
|
|
31
|
+
properties: {
|
|
32
|
+
property: 'data',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Delete',
|
|
41
|
+
value: 'delete',
|
|
42
|
+
action: 'Delete a subscriber',
|
|
43
|
+
description: 'Delete a subscriber (soft delete)',
|
|
44
|
+
routing: {
|
|
45
|
+
request: {
|
|
46
|
+
method: 'DELETE',
|
|
47
|
+
url: '=/subscribers/{{$parameter.subscriberId}}',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'Get',
|
|
53
|
+
value: 'get',
|
|
54
|
+
action: 'Get a subscriber',
|
|
55
|
+
description: 'Get a single subscriber by ID',
|
|
56
|
+
routing: {
|
|
57
|
+
request: {
|
|
58
|
+
method: 'GET',
|
|
59
|
+
url: '=/subscribers/{{$parameter.subscriberId}}',
|
|
60
|
+
},
|
|
61
|
+
output: {
|
|
62
|
+
postReceive: [
|
|
63
|
+
{
|
|
64
|
+
type: 'rootProperty',
|
|
65
|
+
properties: {
|
|
66
|
+
property: 'data',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'Get by Email',
|
|
75
|
+
value: 'getByEmail',
|
|
76
|
+
action: 'Get a subscriber by email',
|
|
77
|
+
description: 'Find a subscriber by their email address',
|
|
78
|
+
routing: {
|
|
79
|
+
request: {
|
|
80
|
+
method: 'GET',
|
|
81
|
+
url: '=/subscribers/by-email/{{$parameter.email}}',
|
|
82
|
+
},
|
|
83
|
+
output: {
|
|
84
|
+
postReceive: [
|
|
85
|
+
{
|
|
86
|
+
type: 'rootProperty',
|
|
87
|
+
properties: {
|
|
88
|
+
property: 'data',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'Get Many',
|
|
97
|
+
value: 'getMany',
|
|
98
|
+
action: 'Get many subscribers',
|
|
99
|
+
description: 'Get all subscribers',
|
|
100
|
+
routing: {
|
|
101
|
+
request: {
|
|
102
|
+
method: 'GET',
|
|
103
|
+
url: '/subscribers',
|
|
104
|
+
},
|
|
105
|
+
output: {
|
|
106
|
+
postReceive: [
|
|
107
|
+
{
|
|
108
|
+
type: 'rootProperty',
|
|
109
|
+
properties: {
|
|
110
|
+
property: 'data',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'Update',
|
|
119
|
+
value: 'update',
|
|
120
|
+
action: 'Update a subscriber',
|
|
121
|
+
description: 'Update an existing subscriber',
|
|
122
|
+
routing: {
|
|
123
|
+
request: {
|
|
124
|
+
method: 'PUT',
|
|
125
|
+
url: '=/subscribers/{{$parameter.subscriberId}}',
|
|
126
|
+
},
|
|
127
|
+
output: {
|
|
128
|
+
postReceive: [
|
|
129
|
+
{
|
|
130
|
+
type: 'rootProperty',
|
|
131
|
+
properties: {
|
|
132
|
+
property: 'data',
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
default: 'getMany',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
displayName: 'Contact List Name or ID',
|
|
144
|
+
name: 'contactListId',
|
|
145
|
+
type: 'options',
|
|
146
|
+
typeOptions: {
|
|
147
|
+
loadOptionsMethod: 'getLists',
|
|
148
|
+
},
|
|
149
|
+
default: '',
|
|
150
|
+
required: true,
|
|
151
|
+
displayOptions: {
|
|
152
|
+
show: {
|
|
153
|
+
resource: ['subscriber'],
|
|
154
|
+
operation: ['getMany'],
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
description: 'Select a contact list to get subscribers from. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
158
|
+
routing: {
|
|
159
|
+
send: {
|
|
160
|
+
type: 'query',
|
|
161
|
+
property: 'contact_list_id',
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
displayName: 'Subscriber ID',
|
|
167
|
+
name: 'subscriberId',
|
|
168
|
+
type: 'number',
|
|
169
|
+
default: 0,
|
|
170
|
+
required: true,
|
|
171
|
+
displayOptions: {
|
|
172
|
+
show: {
|
|
173
|
+
resource: ['subscriber'],
|
|
174
|
+
operation: ['get', 'update', 'delete'],
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
description: 'ID of the subscriber',
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
displayName: 'Email',
|
|
181
|
+
name: 'email',
|
|
182
|
+
type: 'string',
|
|
183
|
+
placeholder: 'name@email.com',
|
|
184
|
+
default: '',
|
|
185
|
+
required: true,
|
|
186
|
+
displayOptions: {
|
|
187
|
+
show: {
|
|
188
|
+
resource: ['subscriber'],
|
|
189
|
+
operation: ['getByEmail'],
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
description: 'Email address to search for',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
displayName: 'Email',
|
|
196
|
+
name: 'email',
|
|
197
|
+
type: 'string',
|
|
198
|
+
placeholder: 'name@email.com',
|
|
199
|
+
default: '',
|
|
200
|
+
required: true,
|
|
201
|
+
displayOptions: {
|
|
202
|
+
show: {
|
|
203
|
+
resource: ['subscriber'],
|
|
204
|
+
operation: ['create'],
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
description: 'Email address of the subscriber',
|
|
208
|
+
routing: {
|
|
209
|
+
send: {
|
|
210
|
+
type: 'body',
|
|
211
|
+
property: 'email',
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
displayName: 'Contact List Name or ID',
|
|
217
|
+
name: 'contactListId',
|
|
218
|
+
type: 'options',
|
|
219
|
+
typeOptions: {
|
|
220
|
+
loadOptionsMethod: 'getLists',
|
|
221
|
+
},
|
|
222
|
+
default: '',
|
|
223
|
+
required: true,
|
|
224
|
+
displayOptions: {
|
|
225
|
+
show: {
|
|
226
|
+
resource: ['subscriber'],
|
|
227
|
+
operation: ['create'],
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
description: 'Contact list to add the subscriber to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
231
|
+
routing: {
|
|
232
|
+
send: {
|
|
233
|
+
type: 'body',
|
|
234
|
+
property: 'contact_list_id',
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
displayName: 'Additional Fields',
|
|
240
|
+
name: 'additionalFields',
|
|
241
|
+
type: 'collection',
|
|
242
|
+
placeholder: 'Add Field',
|
|
243
|
+
default: {},
|
|
244
|
+
displayOptions: {
|
|
245
|
+
show: {
|
|
246
|
+
resource: ['subscriber'],
|
|
247
|
+
operation: ['create'],
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
options: [
|
|
251
|
+
{
|
|
252
|
+
displayName: 'First Name',
|
|
253
|
+
name: 'first_name',
|
|
254
|
+
type: 'string',
|
|
255
|
+
default: '',
|
|
256
|
+
routing: {
|
|
257
|
+
send: {
|
|
258
|
+
type: 'body',
|
|
259
|
+
property: 'first_name',
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
displayName: 'Last Name',
|
|
265
|
+
name: 'last_name',
|
|
266
|
+
type: 'string',
|
|
267
|
+
default: '',
|
|
268
|
+
routing: {
|
|
269
|
+
send: {
|
|
270
|
+
type: 'body',
|
|
271
|
+
property: 'last_name',
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
displayName: 'Phone',
|
|
277
|
+
name: 'phone',
|
|
278
|
+
type: 'string',
|
|
279
|
+
default: '',
|
|
280
|
+
routing: {
|
|
281
|
+
send: {
|
|
282
|
+
type: 'body',
|
|
283
|
+
property: 'phone',
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
displayName: 'Source',
|
|
289
|
+
name: 'source',
|
|
290
|
+
type: 'string',
|
|
291
|
+
default: 'n8n',
|
|
292
|
+
description: 'Source of the subscription',
|
|
293
|
+
routing: {
|
|
294
|
+
send: {
|
|
295
|
+
type: 'body',
|
|
296
|
+
property: 'source',
|
|
297
|
+
},
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
displayName: 'Status',
|
|
302
|
+
name: 'status',
|
|
303
|
+
type: 'options',
|
|
304
|
+
options: [
|
|
305
|
+
{ name: 'Active', value: 'active' },
|
|
306
|
+
{ name: 'Inactive', value: 'inactive' },
|
|
307
|
+
{ name: 'Unsubscribed', value: 'unsubscribed' },
|
|
308
|
+
{ name: 'Bounced', value: 'bounced' },
|
|
309
|
+
],
|
|
310
|
+
default: 'active',
|
|
311
|
+
routing: {
|
|
312
|
+
send: {
|
|
313
|
+
type: 'body',
|
|
314
|
+
property: 'status',
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
displayName: 'Update Fields',
|
|
322
|
+
name: 'updateFields',
|
|
323
|
+
type: 'collection',
|
|
324
|
+
placeholder: 'Add Field',
|
|
325
|
+
default: {},
|
|
326
|
+
displayOptions: {
|
|
327
|
+
show: {
|
|
328
|
+
resource: ['subscriber'],
|
|
329
|
+
operation: ['update'],
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
options: [
|
|
333
|
+
{
|
|
334
|
+
displayName: 'Email',
|
|
335
|
+
name: 'email',
|
|
336
|
+
type: 'string',
|
|
337
|
+
placeholder: 'name@email.com',
|
|
338
|
+
default: '',
|
|
339
|
+
routing: {
|
|
340
|
+
send: {
|
|
341
|
+
type: 'body',
|
|
342
|
+
property: 'email',
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
displayName: 'First Name',
|
|
348
|
+
name: 'first_name',
|
|
349
|
+
type: 'string',
|
|
350
|
+
default: '',
|
|
351
|
+
routing: {
|
|
352
|
+
send: {
|
|
353
|
+
type: 'body',
|
|
354
|
+
property: 'first_name',
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
displayName: 'Last Name',
|
|
360
|
+
name: 'last_name',
|
|
361
|
+
type: 'string',
|
|
362
|
+
default: '',
|
|
363
|
+
routing: {
|
|
364
|
+
send: {
|
|
365
|
+
type: 'body',
|
|
366
|
+
property: 'last_name',
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
displayName: 'Phone',
|
|
372
|
+
name: 'phone',
|
|
373
|
+
type: 'string',
|
|
374
|
+
default: '',
|
|
375
|
+
routing: {
|
|
376
|
+
send: {
|
|
377
|
+
type: 'body',
|
|
378
|
+
property: 'phone',
|
|
379
|
+
},
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
displayName: 'Source',
|
|
384
|
+
name: 'source',
|
|
385
|
+
type: 'string',
|
|
386
|
+
default: '',
|
|
387
|
+
routing: {
|
|
388
|
+
send: {
|
|
389
|
+
type: 'body',
|
|
390
|
+
property: 'source',
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
displayName: 'Status',
|
|
396
|
+
name: 'status',
|
|
397
|
+
type: 'options',
|
|
398
|
+
options: [
|
|
399
|
+
{ name: 'Active', value: 'active' },
|
|
400
|
+
{ name: 'Inactive', value: 'inactive' },
|
|
401
|
+
{ name: 'Unsubscribed', value: 'unsubscribed' },
|
|
402
|
+
{ name: 'Bounced', value: 'bounced' },
|
|
403
|
+
],
|
|
404
|
+
default: 'active',
|
|
405
|
+
routing: {
|
|
406
|
+
send: {
|
|
407
|
+
type: 'body',
|
|
408
|
+
property: 'status',
|
|
409
|
+
},
|
|
410
|
+
},
|
|
411
|
+
},
|
|
412
|
+
],
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
displayName: 'Options',
|
|
416
|
+
name: 'options',
|
|
417
|
+
type: 'collection',
|
|
418
|
+
placeholder: 'Add Option',
|
|
419
|
+
default: {},
|
|
420
|
+
displayOptions: {
|
|
421
|
+
show: {
|
|
422
|
+
resource: ['subscriber'],
|
|
423
|
+
operation: ['getMany'],
|
|
424
|
+
},
|
|
425
|
+
},
|
|
426
|
+
options: [
|
|
427
|
+
{
|
|
428
|
+
displayName: 'Per Page',
|
|
429
|
+
name: 'per_page',
|
|
430
|
+
type: 'number',
|
|
431
|
+
default: 25,
|
|
432
|
+
description: 'Number of results per page',
|
|
433
|
+
routing: {
|
|
434
|
+
send: {
|
|
435
|
+
type: 'query',
|
|
436
|
+
property: 'per_page',
|
|
437
|
+
},
|
|
438
|
+
},
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
displayName: 'Status',
|
|
442
|
+
name: 'status',
|
|
443
|
+
type: 'options',
|
|
444
|
+
options: [
|
|
445
|
+
{ name: 'Active', value: 'active' },
|
|
446
|
+
{ name: 'Inactive', value: 'inactive' },
|
|
447
|
+
{ name: 'Unsubscribed', value: 'unsubscribed' },
|
|
448
|
+
{ name: 'Bounced', value: 'bounced' },
|
|
449
|
+
],
|
|
450
|
+
default: 'active',
|
|
451
|
+
description: 'Filter by subscriber status',
|
|
452
|
+
routing: {
|
|
453
|
+
send: {
|
|
454
|
+
type: 'query',
|
|
455
|
+
property: 'status',
|
|
456
|
+
},
|
|
457
|
+
},
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
displayName: 'Sort By',
|
|
461
|
+
name: 'sort_by',
|
|
462
|
+
type: 'options',
|
|
463
|
+
options: [
|
|
464
|
+
{ name: 'Created At', value: 'created_at' },
|
|
465
|
+
{ name: 'Email', value: 'email' },
|
|
466
|
+
],
|
|
467
|
+
default: 'created_at',
|
|
468
|
+
routing: {
|
|
469
|
+
send: {
|
|
470
|
+
type: 'query',
|
|
471
|
+
property: 'sort_by',
|
|
472
|
+
},
|
|
473
|
+
},
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
displayName: 'Sort Order',
|
|
477
|
+
name: 'sort_order',
|
|
478
|
+
type: 'options',
|
|
479
|
+
options: [
|
|
480
|
+
{ name: 'Ascending', value: 'asc' },
|
|
481
|
+
{ name: 'Descending', value: 'desc' },
|
|
482
|
+
],
|
|
483
|
+
default: 'desc',
|
|
484
|
+
routing: {
|
|
485
|
+
send: {
|
|
486
|
+
type: 'query',
|
|
487
|
+
property: 'sort_order',
|
|
488
|
+
},
|
|
489
|
+
},
|
|
490
|
+
},
|
|
491
|
+
],
|
|
492
|
+
},
|
|
493
|
+
];
|
|
494
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/NetSendo/resources/subscriber/index.ts"],"names":[],"mappings":";;;AAEA,MAAM,qBAAqB,GAAG;IAC7B,QAAQ,EAAE,CAAC,YAAY,CAAC;CACxB,CAAC;AAEW,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,qBAAqB;SAC3B;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,qBAAqB;gBAC7B,WAAW,EAAE,yBAAyB;gBACtC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,cAAc;qBACnB;oBACD,MAAM,EAAE;wBACP,WAAW,EAAE;4BACZ;gCACC,IAAI,EAAE,cAAc;gCACpB,UAAU,EAAE;oCACX,QAAQ,EAAE,MAAM;iCAChB;6BACD;yBACD;qBACD;iBACD;aACD;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,qBAAqB;gBAC7B,WAAW,EAAE,mCAAmC;gBAChD,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,QAAQ;wBAChB,GAAG,EAAE,2CAA2C;q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escription = void 0;
|
|
4
|
+
const showOnlyForTag = {
|
|
5
|
+
resource: ['tag'],
|
|
6
|
+
};
|
|
7
|
+
exports.tagDescription = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: showOnlyForTag,
|
|
15
|
+
},
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Get Many',
|
|
19
|
+
value: 'getMany',
|
|
20
|
+
action: 'Get many tags',
|
|
21
|
+
description: 'Get all tags',
|
|
22
|
+
routing: {
|
|
23
|
+
request: {
|
|
24
|
+
method: 'GET',
|
|
25
|
+
url: '/tags',
|
|
26
|
+
},
|
|
27
|
+
output: {
|
|
28
|
+
postReceive: [
|
|
29
|
+
{
|
|
30
|
+
type: 'rootProperty',
|
|
31
|
+
properties: {
|
|
32
|
+
property: 'data',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Get',
|
|
41
|
+
value: 'get',
|
|
42
|
+
action: 'Get a tag',
|
|
43
|
+
description: 'Get a single tag by ID',
|
|
44
|
+
routing: {
|
|
45
|
+
request: {
|
|
46
|
+
method: 'GET',
|
|
47
|
+
url: '=/tags/{{$parameter.tagId}}',
|
|
48
|
+
},
|
|
49
|
+
output: {
|
|
50
|
+
postReceive: [
|
|
51
|
+
{
|
|
52
|
+
type: 'rootProperty',
|
|
53
|
+
properties: {
|
|
54
|
+
property: 'data',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
default: 'getMany',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Tag ID',
|
|
66
|
+
name: 'tagId',
|
|
67
|
+
type: 'number',
|
|
68
|
+
default: 0,
|
|
69
|
+
required: true,
|
|
70
|
+
displayOptions: {
|
|
71
|
+
show: {
|
|
72
|
+
resource: ['tag'],
|
|
73
|
+
operation: ['get'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
description: 'ID of the tag to retrieve',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Options',
|
|
80
|
+
name: 'options',
|
|
81
|
+
type: 'collection',
|
|
82
|
+
placeholder: 'Add Option',
|
|
83
|
+
default: {},
|
|
84
|
+
displayOptions: {
|
|
85
|
+
show: {
|
|
86
|
+
resource: ['tag'],
|
|
87
|
+
operation: ['getMany'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
options: [
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Per Page',
|
|
93
|
+
name: 'per_page',
|
|
94
|
+
type: 'number',
|
|
95
|
+
default: 50,
|
|
96
|
+
description: 'Number of results per page',
|
|
97
|
+
routing: {
|
|
98
|
+
send: {
|
|
99
|
+
type: 'query',
|
|
100
|
+
property: 'per_page',
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
displayName: 'Sort By',
|
|
106
|
+
name: 'sort_by',
|
|
107
|
+
type: 'options',
|
|
108
|
+
options: [
|
|
109
|
+
{ name: 'Name', value: 'name' },
|
|
110
|
+
{ name: 'Created At', value: 'created_at' },
|
|
111
|
+
],
|
|
112
|
+
default: 'name',
|
|
113
|
+
routing: {
|
|
114
|
+
send: {
|
|
115
|
+
type: 'query',
|
|
116
|
+
property: 'sort_by',
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
displayName: 'Sort Order',
|
|
122
|
+
name: 'sort_order',
|
|
123
|
+
type: 'options',
|
|
124
|
+
options: [
|
|
125
|
+
{ name: 'Ascending', value: 'asc' },
|
|
126
|
+
{ name: 'Descending', value: 'desc' },
|
|
127
|
+
],
|
|
128
|
+
default: 'asc',
|
|
129
|
+
routing: {
|
|
130
|
+
send: {
|
|
131
|
+
type: 'query',
|
|
132
|
+
property: 'sort_order',
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
},
|
|
138
|
+
];
|
|
139
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/NetSendo/resources/tag/index.ts"],"names":[],"mappings":";;;AAEA,MAAM,cAAc,GAAG;IACtB,QAAQ,EAAE,CAAC,KAAK,CAAC;CACjB,CAAC;AAEW,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,cAAc;SACpB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,SAAS;gBAChB,MAAM,EAAE,eAAe;gBACvB,WAAW,EAAE,cAAc;gBAC3B,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,OAAO;qBACZ;oBACD,MAAM,EAAE;wBACP,WAAW,EAAE;4BACZ;gCACC,IAAI,EAAE,cAAc;gCACpB,UAAU,EAAE;oCACX,QAAQ,EAAE,MAAM;iCAChB;6BACD;yBACD;qBACD;iBACD;aACD;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,WAAW;gBACnB,WAAW,EAAE,wBAAwB;gBACrC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,6BAA6B;qBAClC;oBACD,MAAM,EAAE;wBACP,WAAW,EAAE;4BACZ;gCACC,IAAI,EAAE,cAAc;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;aACD;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE;oBACnC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE;iBACrC;gBACD,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,YAAY;qBACtB;iBACD;aACD;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions, IHttpRequestMethods, IDataObject } from 'n8n-workflow';
|
|
2
|
+
export declare function netSendoApiRequest(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions, method: IHttpRequestMethods, endpoint: string, body?: IDataObject, qs?: IDataObject): Promise<IDataObject | IDataObject[]>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.netSendoApiRequest = netSendoApiRequest;
|
|
4
|
+
async function netSendoApiRequest(method, endpoint, body = {}, qs = {}) {
|
|
5
|
+
const credentials = await this.getCredentials('netSendoApi');
|
|
6
|
+
const baseUrl = credentials.baseUrl.replace(/\/$/, '');
|
|
7
|
+
const options = {
|
|
8
|
+
method,
|
|
9
|
+
url: `${baseUrl}/api/v1${endpoint}`,
|
|
10
|
+
qs,
|
|
11
|
+
json: true,
|
|
12
|
+
headers: {
|
|
13
|
+
Authorization: `Bearer ${credentials.apiKey}`,
|
|
14
|
+
'Content-Type': 'application/json',
|
|
15
|
+
Accept: 'application/json',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
if (Object.keys(body).length > 0) {
|
|
19
|
+
options.body = body;
|
|
20
|
+
}
|
|
21
|
+
return this.helpers.httpRequest(options);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=transport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../../../nodes/NetSendo/shared/transport.ts"],"names":[],"mappings":";;AAaA,gDA6BC;AA7BM,KAAK,UAAU,kBAAkB,CAEvC,MAA2B,EAC3B,QAAgB,EAChB,OAAoB,EAAE,EACtB,KAAkB,EAAE;IAEpB,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;IAG7D,MAAM,OAAO,GAAI,WAAW,CAAC,OAAkB,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAEnE,MAAM,OAAO,GAAwB;QACpC,MAAM;QACN,GAAG,EAAE,GAAG,OAAO,UAAU,QAAQ,EAAE;QACnC,EAAE;QACF,IAAI,EAAE,IAAI;QACV,OAAO,EAAE;YACR,aAAa,EAAE,UAAU,WAAW,CAAC,MAAM,EAAE;YAC7C,cAAc,EAAE,kBAAkB;YAClC,MAAM,EAAE,kBAAkB;SAC1B;KACD,CAAC;IAEF,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAC1C,CAAC"}
|