n8n-nodes-socialfetch 0.1.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.
@@ -0,0 +1,606 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.twitter = void 0;
4
+ const pagination_1 = require("../shared/pagination");
5
+ exports.twitter = [
6
+ {
7
+ "displayName": "Operation",
8
+ "name": "operation",
9
+ "type": "options",
10
+ "noDataExpression": true,
11
+ "displayOptions": {
12
+ "show": {
13
+ "resource": [
14
+ "twitter"
15
+ ]
16
+ }
17
+ },
18
+ "default": "twitter.profile.get",
19
+ "options": [
20
+ {
21
+ "name": "Profile",
22
+ "value": "twitter.profile.get",
23
+ "action": "Get Twitter profile",
24
+ "description": "Get an X profile for a creator or account.",
25
+ "routing": {
26
+ "request": {
27
+ "method": "GET",
28
+ "url": "=/v1/twitter/profiles/{{$parameter[\"handle\"]}}"
29
+ }
30
+ }
31
+ },
32
+ {
33
+ "name": "Profile tweets",
34
+ "value": "twitter.profile.tweets.list",
35
+ "action": "List Twitter profile tweets",
36
+ "description": "Get popular tweets from a specific X profile.",
37
+ "routing": {
38
+ "request": {
39
+ "method": "GET",
40
+ "url": "=/v1/twitter/profiles/{{$parameter[\"handle\"]}}/tweets"
41
+ }
42
+ }
43
+ },
44
+ {
45
+ "name": "Search",
46
+ "value": "twitter.search.list",
47
+ "action": "Search Twitter posts",
48
+ "description": "Search for posts on X.",
49
+ "routing": {
50
+ "request": {
51
+ "method": "GET",
52
+ "url": "/v1/twitter/search"
53
+ },
54
+ "send": {
55
+ "paginate": "={{$parameter[\"returnAll\"]}}"
56
+ },
57
+ "operations": {
58
+ "pagination": pagination_1.cursorPagination
59
+ }
60
+ }
61
+ },
62
+ {
63
+ "name": "Tweet",
64
+ "value": "twitter.tweet.get",
65
+ "action": "Get Twitter tweet",
66
+ "description": "Get a single tweet.",
67
+ "routing": {
68
+ "request": {
69
+ "method": "GET",
70
+ "url": "/v1/twitter/tweets"
71
+ }
72
+ }
73
+ },
74
+ {
75
+ "name": "Community",
76
+ "value": "twitter.community.get",
77
+ "action": "Get Twitter community",
78
+ "description": "Get details for an X community.",
79
+ "routing": {
80
+ "request": {
81
+ "method": "GET",
82
+ "url": "/v1/twitter/communities"
83
+ }
84
+ }
85
+ },
86
+ {
87
+ "name": "Community tweets",
88
+ "value": "twitter.community.tweets.list",
89
+ "action": "List Twitter community tweets",
90
+ "description": "Get tweets from an X community.",
91
+ "routing": {
92
+ "request": {
93
+ "method": "GET",
94
+ "url": "/v1/twitter/communities/tweets"
95
+ }
96
+ }
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "displayName": "Handle",
102
+ "name": "handle",
103
+ "type": "string",
104
+ "default": "",
105
+ "description": "X handle to look up, with or without a leading @.",
106
+ "placeholder": "e.g. n8n",
107
+ "required": true,
108
+ "displayOptions": {
109
+ "show": {
110
+ "resource": [
111
+ "twitter"
112
+ ],
113
+ "operation": [
114
+ "twitter.profile.get"
115
+ ]
116
+ }
117
+ }
118
+ },
119
+ {
120
+ "displayName": "Handle",
121
+ "name": "handle",
122
+ "type": "string",
123
+ "default": "",
124
+ "description": "X handle to look up, with or without a leading @.",
125
+ "placeholder": "e.g. n8n",
126
+ "required": true,
127
+ "displayOptions": {
128
+ "show": {
129
+ "resource": [
130
+ "twitter"
131
+ ],
132
+ "operation": [
133
+ "twitter.profile.tweets.list"
134
+ ]
135
+ }
136
+ }
137
+ },
138
+ {
139
+ "displayName": "Additional Fields",
140
+ "name": "additionalOptions",
141
+ "type": "collection",
142
+ "placeholder": "Add Field",
143
+ "default": {},
144
+ "displayOptions": {
145
+ "show": {
146
+ "resource": [
147
+ "twitter"
148
+ ],
149
+ "operation": [
150
+ "twitter.profile.tweets.list"
151
+ ]
152
+ }
153
+ },
154
+ "options": [
155
+ {
156
+ "displayName": "Trim",
157
+ "name": "trim",
158
+ "type": "boolean",
159
+ "default": false,
160
+ "description": "Optional: omit per-tweet author and profile card for a smaller response.",
161
+ "routing": {
162
+ "send": {
163
+ "type": "query",
164
+ "property": "trim"
165
+ }
166
+ }
167
+ }
168
+ ]
169
+ },
170
+ {
171
+ "displayName": "Return All",
172
+ "name": "returnAll",
173
+ "type": "boolean",
174
+ "default": false,
175
+ "description": "Whether to return all results by paginating through every page, or only the first page. Each page consumes API credits.",
176
+ "displayOptions": {
177
+ "show": {
178
+ "resource": [
179
+ "twitter"
180
+ ],
181
+ "operation": [
182
+ "twitter.search.list"
183
+ ]
184
+ }
185
+ }
186
+ },
187
+ {
188
+ "displayName": "Query",
189
+ "name": "query",
190
+ "type": "string",
191
+ "default": "",
192
+ "description": "Search query text to run against public posts on X.",
193
+ "placeholder": "e.g. automation",
194
+ "required": true,
195
+ "routing": {
196
+ "send": {
197
+ "type": "query",
198
+ "property": "query"
199
+ }
200
+ },
201
+ "displayOptions": {
202
+ "show": {
203
+ "resource": [
204
+ "twitter"
205
+ ],
206
+ "operation": [
207
+ "twitter.search.list"
208
+ ]
209
+ }
210
+ }
211
+ },
212
+ {
213
+ "displayName": "Additional Fields",
214
+ "name": "additionalOptions",
215
+ "type": "collection",
216
+ "placeholder": "Add Field",
217
+ "default": {},
218
+ "displayOptions": {
219
+ "show": {
220
+ "resource": [
221
+ "twitter"
222
+ ],
223
+ "operation": [
224
+ "twitter.search.list"
225
+ ]
226
+ }
227
+ },
228
+ "options": [
229
+ {
230
+ "displayName": "Section",
231
+ "name": "section",
232
+ "type": "options",
233
+ "options": [
234
+ {
235
+ "name": "Top",
236
+ "value": "top"
237
+ },
238
+ {
239
+ "name": "Latest",
240
+ "value": "latest"
241
+ },
242
+ {
243
+ "name": "People",
244
+ "value": "people"
245
+ },
246
+ {
247
+ "name": "Photos",
248
+ "value": "photos"
249
+ },
250
+ {
251
+ "name": "Videos",
252
+ "value": "videos"
253
+ }
254
+ ],
255
+ "default": "top",
256
+ "description": "Optional search section filter. Omit to use the default `top` section.",
257
+ "routing": {
258
+ "send": {
259
+ "type": "query",
260
+ "property": "section"
261
+ }
262
+ }
263
+ },
264
+ {
265
+ "displayName": "Min Retweets",
266
+ "name": "minRetweets",
267
+ "type": "number",
268
+ "default": 0,
269
+ "description": "Optional minimum retweet count filter.",
270
+ "routing": {
271
+ "send": {
272
+ "type": "query",
273
+ "property": "minRetweets"
274
+ }
275
+ }
276
+ },
277
+ {
278
+ "displayName": "Min Likes",
279
+ "name": "minLikes",
280
+ "type": "number",
281
+ "default": 0,
282
+ "description": "Optional minimum like count filter.",
283
+ "routing": {
284
+ "send": {
285
+ "type": "query",
286
+ "property": "minLikes"
287
+ }
288
+ }
289
+ },
290
+ {
291
+ "displayName": "Min Replies",
292
+ "name": "minReplies",
293
+ "type": "number",
294
+ "default": 0,
295
+ "description": "Optional minimum reply count filter.",
296
+ "routing": {
297
+ "send": {
298
+ "type": "query",
299
+ "property": "minReplies"
300
+ }
301
+ }
302
+ },
303
+ {
304
+ "displayName": "Limit",
305
+ "name": "limit",
306
+ "type": "number",
307
+ "default": 0,
308
+ "description": "Optional page size. Maximum supported value is 20.",
309
+ "routing": {
310
+ "send": {
311
+ "type": "query",
312
+ "property": "limit"
313
+ }
314
+ }
315
+ },
316
+ {
317
+ "displayName": "Start Date",
318
+ "name": "startDate",
319
+ "type": "string",
320
+ "default": "",
321
+ "description": "Optional start date filter in YYYY-MM-DD format.",
322
+ "routing": {
323
+ "send": {
324
+ "type": "query",
325
+ "property": "startDate"
326
+ }
327
+ }
328
+ },
329
+ {
330
+ "displayName": "End Date",
331
+ "name": "endDate",
332
+ "type": "string",
333
+ "default": "",
334
+ "description": "Optional end date filter in YYYY-MM-DD format.",
335
+ "routing": {
336
+ "send": {
337
+ "type": "query",
338
+ "property": "endDate"
339
+ }
340
+ }
341
+ },
342
+ {
343
+ "displayName": "Language",
344
+ "name": "language",
345
+ "type": "options",
346
+ "options": [
347
+ {
348
+ "name": "En",
349
+ "value": "en"
350
+ },
351
+ {
352
+ "name": "Es",
353
+ "value": "es"
354
+ },
355
+ {
356
+ "name": "Fr",
357
+ "value": "fr"
358
+ },
359
+ {
360
+ "name": "De",
361
+ "value": "de"
362
+ },
363
+ {
364
+ "name": "It",
365
+ "value": "it"
366
+ },
367
+ {
368
+ "name": "Pt",
369
+ "value": "pt"
370
+ },
371
+ {
372
+ "name": "Ru",
373
+ "value": "ru"
374
+ },
375
+ {
376
+ "name": "Zh",
377
+ "value": "zh"
378
+ },
379
+ {
380
+ "name": "Ja",
381
+ "value": "ja"
382
+ },
383
+ {
384
+ "name": "Ko",
385
+ "value": "ko"
386
+ },
387
+ {
388
+ "name": "Ar",
389
+ "value": "ar"
390
+ },
391
+ {
392
+ "name": "Bg",
393
+ "value": "bg"
394
+ },
395
+ {
396
+ "name": "Hr",
397
+ "value": "hr"
398
+ },
399
+ {
400
+ "name": "Cs",
401
+ "value": "cs"
402
+ },
403
+ {
404
+ "name": "Da",
405
+ "value": "da"
406
+ },
407
+ {
408
+ "name": "Nl",
409
+ "value": "nl"
410
+ },
411
+ {
412
+ "name": "Et",
413
+ "value": "et"
414
+ },
415
+ {
416
+ "name": "Fi",
417
+ "value": "fi"
418
+ },
419
+ {
420
+ "name": "El",
421
+ "value": "el"
422
+ },
423
+ {
424
+ "name": "Hu",
425
+ "value": "hu"
426
+ },
427
+ {
428
+ "name": "Id",
429
+ "value": "id"
430
+ },
431
+ {
432
+ "name": "Ga",
433
+ "value": "ga"
434
+ },
435
+ {
436
+ "name": "Lv",
437
+ "value": "lv"
438
+ },
439
+ {
440
+ "name": "Lt",
441
+ "value": "lt"
442
+ },
443
+ {
444
+ "name": "No",
445
+ "value": "no"
446
+ },
447
+ {
448
+ "name": "Pl",
449
+ "value": "pl"
450
+ },
451
+ {
452
+ "name": "Ro",
453
+ "value": "ro"
454
+ },
455
+ {
456
+ "name": "Sk",
457
+ "value": "sk"
458
+ },
459
+ {
460
+ "name": "Sl",
461
+ "value": "sl"
462
+ },
463
+ {
464
+ "name": "Sv",
465
+ "value": "sv"
466
+ },
467
+ {
468
+ "name": "Tr",
469
+ "value": "tr"
470
+ },
471
+ {
472
+ "name": "Uk",
473
+ "value": "uk"
474
+ },
475
+ {
476
+ "name": "Vi",
477
+ "value": "vi"
478
+ },
479
+ {
480
+ "name": "Cy",
481
+ "value": "cy"
482
+ },
483
+ {
484
+ "name": "Zu",
485
+ "value": "zu"
486
+ }
487
+ ],
488
+ "default": "en",
489
+ "description": "Optional language filter.",
490
+ "routing": {
491
+ "send": {
492
+ "type": "query",
493
+ "property": "language"
494
+ }
495
+ }
496
+ }
497
+ ]
498
+ },
499
+ {
500
+ "displayName": "Url",
501
+ "name": "url",
502
+ "type": "string",
503
+ "default": "",
504
+ "description": "Tweet permalink or identifier.",
505
+ "placeholder": "e.g. https://example.com/page",
506
+ "required": true,
507
+ "routing": {
508
+ "send": {
509
+ "type": "query",
510
+ "property": "url"
511
+ }
512
+ },
513
+ "displayOptions": {
514
+ "show": {
515
+ "resource": [
516
+ "twitter"
517
+ ],
518
+ "operation": [
519
+ "twitter.tweet.get"
520
+ ]
521
+ }
522
+ }
523
+ },
524
+ {
525
+ "displayName": "Additional Fields",
526
+ "name": "additionalOptions",
527
+ "type": "collection",
528
+ "placeholder": "Add Field",
529
+ "default": {},
530
+ "displayOptions": {
531
+ "show": {
532
+ "resource": [
533
+ "twitter"
534
+ ],
535
+ "operation": [
536
+ "twitter.tweet.get"
537
+ ]
538
+ }
539
+ },
540
+ "options": [
541
+ {
542
+ "displayName": "Trim",
543
+ "name": "trim",
544
+ "type": "boolean",
545
+ "default": false,
546
+ "description": "Optional: omit author profile and tweet `core` for a smaller response.",
547
+ "routing": {
548
+ "send": {
549
+ "type": "query",
550
+ "property": "trim"
551
+ }
552
+ }
553
+ }
554
+ ]
555
+ },
556
+ {
557
+ "displayName": "Url",
558
+ "name": "url",
559
+ "type": "string",
560
+ "default": "",
561
+ "description": "Community URL to look up.",
562
+ "placeholder": "e.g. https://example.com/page",
563
+ "required": true,
564
+ "routing": {
565
+ "send": {
566
+ "type": "query",
567
+ "property": "url"
568
+ }
569
+ },
570
+ "displayOptions": {
571
+ "show": {
572
+ "resource": [
573
+ "twitter"
574
+ ],
575
+ "operation": [
576
+ "twitter.community.get"
577
+ ]
578
+ }
579
+ }
580
+ },
581
+ {
582
+ "displayName": "Url",
583
+ "name": "url",
584
+ "type": "string",
585
+ "default": "",
586
+ "description": "Community URL to look up.",
587
+ "placeholder": "e.g. https://example.com/page",
588
+ "required": true,
589
+ "routing": {
590
+ "send": {
591
+ "type": "query",
592
+ "property": "url"
593
+ }
594
+ },
595
+ "displayOptions": {
596
+ "show": {
597
+ "resource": [
598
+ "twitter"
599
+ ],
600
+ "operation": [
601
+ "twitter.community.tweets.list"
602
+ ]
603
+ }
604
+ }
605
+ }
606
+ ];