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,195 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.spotify = void 0;
4
+ exports.spotify = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "spotify"
14
+ ]
15
+ }
16
+ },
17
+ "default": "spotify.artist.get",
18
+ "options": [
19
+ {
20
+ "name": "Artist",
21
+ "value": "spotify.artist.get",
22
+ "action": "Get Spotify artist",
23
+ "description": "Get a Spotify artist by id or profile URL.",
24
+ "routing": {
25
+ "request": {
26
+ "method": "GET",
27
+ "url": "/v1/spotify/artist"
28
+ }
29
+ }
30
+ },
31
+ {
32
+ "name": "Album",
33
+ "value": "spotify.album.get",
34
+ "action": "Get Spotify album",
35
+ "description": "Get a Spotify album by id or album URL.",
36
+ "routing": {
37
+ "request": {
38
+ "method": "GET",
39
+ "url": "/v1/spotify/album"
40
+ }
41
+ }
42
+ },
43
+ {
44
+ "name": "Track",
45
+ "value": "spotify.track.get",
46
+ "action": "Get Spotify track",
47
+ "description": "Get a Spotify track by id or track URL.",
48
+ "routing": {
49
+ "request": {
50
+ "method": "GET",
51
+ "url": "/v1/spotify/track"
52
+ }
53
+ }
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "displayName": "Additional Fields",
59
+ "name": "additionalOptions",
60
+ "type": "collection",
61
+ "placeholder": "Add Field",
62
+ "default": {},
63
+ "displayOptions": {
64
+ "show": {
65
+ "resource": [
66
+ "spotify"
67
+ ],
68
+ "operation": [
69
+ "spotify.artist.get"
70
+ ]
71
+ }
72
+ },
73
+ "options": [
74
+ {
75
+ "displayName": "Artist Id",
76
+ "name": "artistId",
77
+ "type": "string",
78
+ "default": "",
79
+ "description": "Optional Spotify artist id for the request.",
80
+ "routing": {
81
+ "send": {
82
+ "type": "query",
83
+ "property": "artistId"
84
+ }
85
+ }
86
+ },
87
+ {
88
+ "displayName": "Url",
89
+ "name": "url",
90
+ "type": "string",
91
+ "default": "",
92
+ "description": "Optional Spotify artist URL for the request.",
93
+ "placeholder": "e.g. https://example.com/page",
94
+ "routing": {
95
+ "send": {
96
+ "type": "query",
97
+ "property": "url"
98
+ }
99
+ }
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "displayName": "Additional Fields",
105
+ "name": "additionalOptions",
106
+ "type": "collection",
107
+ "placeholder": "Add Field",
108
+ "default": {},
109
+ "displayOptions": {
110
+ "show": {
111
+ "resource": [
112
+ "spotify"
113
+ ],
114
+ "operation": [
115
+ "spotify.album.get"
116
+ ]
117
+ }
118
+ },
119
+ "options": [
120
+ {
121
+ "displayName": "Album Id",
122
+ "name": "albumId",
123
+ "type": "string",
124
+ "default": "",
125
+ "description": "Optional Spotify album id for the request.",
126
+ "routing": {
127
+ "send": {
128
+ "type": "query",
129
+ "property": "albumId"
130
+ }
131
+ }
132
+ },
133
+ {
134
+ "displayName": "Url",
135
+ "name": "url",
136
+ "type": "string",
137
+ "default": "",
138
+ "description": "Optional Spotify album URL for the request.",
139
+ "placeholder": "e.g. https://example.com/page",
140
+ "routing": {
141
+ "send": {
142
+ "type": "query",
143
+ "property": "url"
144
+ }
145
+ }
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "displayName": "Additional Fields",
151
+ "name": "additionalOptions",
152
+ "type": "collection",
153
+ "placeholder": "Add Field",
154
+ "default": {},
155
+ "displayOptions": {
156
+ "show": {
157
+ "resource": [
158
+ "spotify"
159
+ ],
160
+ "operation": [
161
+ "spotify.track.get"
162
+ ]
163
+ }
164
+ },
165
+ "options": [
166
+ {
167
+ "displayName": "Track Id",
168
+ "name": "trackId",
169
+ "type": "string",
170
+ "default": "",
171
+ "description": "Optional Spotify track id for the request.",
172
+ "routing": {
173
+ "send": {
174
+ "type": "query",
175
+ "property": "trackId"
176
+ }
177
+ }
178
+ },
179
+ {
180
+ "displayName": "Url",
181
+ "name": "url",
182
+ "type": "string",
183
+ "default": "",
184
+ "description": "Optional Spotify track URL for the request.",
185
+ "placeholder": "e.g. https://example.com/page",
186
+ "routing": {
187
+ "send": {
188
+ "type": "query",
189
+ "property": "url"
190
+ }
191
+ }
192
+ }
193
+ ]
194
+ }
195
+ ];
@@ -0,0 +1,156 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.telegram = void 0;
4
+ const pagination_1 = require("../shared/pagination");
5
+ exports.telegram = [
6
+ {
7
+ "displayName": "Operation",
8
+ "name": "operation",
9
+ "type": "options",
10
+ "noDataExpression": true,
11
+ "displayOptions": {
12
+ "show": {
13
+ "resource": [
14
+ "telegram"
15
+ ]
16
+ }
17
+ },
18
+ "default": "telegram.channel.get",
19
+ "options": [
20
+ {
21
+ "name": "Channel",
22
+ "value": "telegram.channel.get",
23
+ "action": "Get Telegram channel",
24
+ "description": "Get metadata for a public Telegram channel or group by username.",
25
+ "routing": {
26
+ "request": {
27
+ "method": "GET",
28
+ "url": "=/v1/telegram/channels/{{$parameter[\"handle\"]}}"
29
+ }
30
+ }
31
+ },
32
+ {
33
+ "name": "Channel posts",
34
+ "value": "telegram.channel_posts.get",
35
+ "action": "List Telegram channel posts",
36
+ "description": "List recent posts from a public Telegram channel. Groups are not supported.",
37
+ "routing": {
38
+ "request": {
39
+ "method": "GET",
40
+ "url": "=/v1/telegram/channels/{{$parameter[\"handle\"]}}/posts"
41
+ },
42
+ "send": {
43
+ "paginate": "={{$parameter[\"returnAll\"]}}"
44
+ },
45
+ "operations": {
46
+ "pagination": pagination_1.cursorPagination
47
+ }
48
+ }
49
+ },
50
+ {
51
+ "name": "Channel post",
52
+ "value": "telegram.channel_post.get",
53
+ "action": "Get Telegram channel post",
54
+ "description": "Get a single public post from a Telegram channel by handle and post ID. Groups are not supported.",
55
+ "routing": {
56
+ "request": {
57
+ "method": "GET",
58
+ "url": "=/v1/telegram/channels/{{$parameter[\"handle\"]}}/posts/{{$parameter[\"postId\"]}}"
59
+ }
60
+ }
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "displayName": "Handle",
66
+ "name": "handle",
67
+ "type": "string",
68
+ "default": "",
69
+ "description": "Telegram public username (channel or group), with or without leading @.",
70
+ "placeholder": "e.g. n8n",
71
+ "required": true,
72
+ "displayOptions": {
73
+ "show": {
74
+ "resource": [
75
+ "telegram"
76
+ ],
77
+ "operation": [
78
+ "telegram.channel.get"
79
+ ]
80
+ }
81
+ }
82
+ },
83
+ {
84
+ "displayName": "Return All",
85
+ "name": "returnAll",
86
+ "type": "boolean",
87
+ "default": false,
88
+ "description": "Whether to return all results by paginating through every page, or only the first page. Each page consumes API credits.",
89
+ "displayOptions": {
90
+ "show": {
91
+ "resource": [
92
+ "telegram"
93
+ ],
94
+ "operation": [
95
+ "telegram.channel_posts.get"
96
+ ]
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "displayName": "Handle",
102
+ "name": "handle",
103
+ "type": "string",
104
+ "default": "",
105
+ "description": "Telegram public username (channel or group), with or without leading @.",
106
+ "placeholder": "e.g. n8n",
107
+ "required": true,
108
+ "displayOptions": {
109
+ "show": {
110
+ "resource": [
111
+ "telegram"
112
+ ],
113
+ "operation": [
114
+ "telegram.channel_posts.get"
115
+ ]
116
+ }
117
+ }
118
+ },
119
+ {
120
+ "displayName": "Handle",
121
+ "name": "handle",
122
+ "type": "string",
123
+ "default": "",
124
+ "description": "Telegram public username (channel or group), with or without leading @.",
125
+ "placeholder": "e.g. n8n",
126
+ "required": true,
127
+ "displayOptions": {
128
+ "show": {
129
+ "resource": [
130
+ "telegram"
131
+ ],
132
+ "operation": [
133
+ "telegram.channel_post.get"
134
+ ]
135
+ }
136
+ }
137
+ },
138
+ {
139
+ "displayName": "Post Id",
140
+ "name": "postId",
141
+ "type": "string",
142
+ "default": "",
143
+ "description": "Numeric Telegram channel post ID from the public URL.",
144
+ "required": true,
145
+ "displayOptions": {
146
+ "show": {
147
+ "resource": [
148
+ "telegram"
149
+ ],
150
+ "operation": [
151
+ "telegram.channel_post.get"
152
+ ]
153
+ }
154
+ }
155
+ }
156
+ ];
@@ -0,0 +1,316 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.threads = void 0;
4
+ exports.threads = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "threads"
14
+ ]
15
+ }
16
+ },
17
+ "default": "threads.profile.get",
18
+ "options": [
19
+ {
20
+ "name": "Profile",
21
+ "value": "threads.profile.get",
22
+ "action": "Get Threads profile",
23
+ "description": "Get a Threads profile for a creator or account.",
24
+ "routing": {
25
+ "request": {
26
+ "method": "GET",
27
+ "url": "=/v1/threads/profiles/{{$parameter[\"handle\"]}}"
28
+ }
29
+ }
30
+ },
31
+ {
32
+ "name": "Profile posts",
33
+ "value": "threads.profile.posts.list",
34
+ "action": "List Threads profile posts",
35
+ "description": "Get posts from a specific Threads profile.",
36
+ "routing": {
37
+ "request": {
38
+ "method": "GET",
39
+ "url": "=/v1/threads/profiles/{{$parameter[\"handle\"]}}/posts"
40
+ }
41
+ }
42
+ },
43
+ {
44
+ "name": "Search posts",
45
+ "value": "threads.search.list",
46
+ "action": "Search Threads posts",
47
+ "description": "Search for posts on Threads.",
48
+ "routing": {
49
+ "request": {
50
+ "method": "GET",
51
+ "url": "/v1/threads/search"
52
+ }
53
+ }
54
+ },
55
+ {
56
+ "name": "Post",
57
+ "value": "threads.post.get",
58
+ "action": "Get Threads post",
59
+ "description": "Get a single Threads post.",
60
+ "routing": {
61
+ "request": {
62
+ "method": "GET",
63
+ "url": "/v1/threads/posts"
64
+ }
65
+ }
66
+ },
67
+ {
68
+ "name": "User search",
69
+ "value": "threads.users.search",
70
+ "action": "Search Threads users",
71
+ "description": "Search for users on Threads.",
72
+ "routing": {
73
+ "request": {
74
+ "method": "GET",
75
+ "url": "/v1/threads/users/search"
76
+ }
77
+ }
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ "displayName": "Handle",
83
+ "name": "handle",
84
+ "type": "string",
85
+ "default": "",
86
+ "description": "Threads handle to look up, with or without a leading @.",
87
+ "placeholder": "e.g. n8n",
88
+ "required": true,
89
+ "displayOptions": {
90
+ "show": {
91
+ "resource": [
92
+ "threads"
93
+ ],
94
+ "operation": [
95
+ "threads.profile.get"
96
+ ]
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "displayName": "Handle",
102
+ "name": "handle",
103
+ "type": "string",
104
+ "default": "",
105
+ "description": "Threads handle whose posts should be listed.",
106
+ "placeholder": "e.g. n8n",
107
+ "required": true,
108
+ "displayOptions": {
109
+ "show": {
110
+ "resource": [
111
+ "threads"
112
+ ],
113
+ "operation": [
114
+ "threads.profile.posts.list"
115
+ ]
116
+ }
117
+ }
118
+ },
119
+ {
120
+ "displayName": "Additional Fields",
121
+ "name": "additionalOptions",
122
+ "type": "collection",
123
+ "placeholder": "Add Field",
124
+ "default": {},
125
+ "displayOptions": {
126
+ "show": {
127
+ "resource": [
128
+ "threads"
129
+ ],
130
+ "operation": [
131
+ "threads.profile.posts.list"
132
+ ]
133
+ }
134
+ },
135
+ "options": [
136
+ {
137
+ "displayName": "Trim",
138
+ "name": "trim",
139
+ "type": "boolean",
140
+ "default": false,
141
+ "description": "When true, returns a smaller response with fewer post fields when available.",
142
+ "routing": {
143
+ "send": {
144
+ "type": "query",
145
+ "property": "trim"
146
+ }
147
+ }
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "displayName": "Query",
153
+ "name": "query",
154
+ "type": "string",
155
+ "default": "",
156
+ "description": "Search query text for public Threads posts.",
157
+ "placeholder": "e.g. automation",
158
+ "required": true,
159
+ "routing": {
160
+ "send": {
161
+ "type": "query",
162
+ "property": "query"
163
+ }
164
+ },
165
+ "displayOptions": {
166
+ "show": {
167
+ "resource": [
168
+ "threads"
169
+ ],
170
+ "operation": [
171
+ "threads.search.list"
172
+ ]
173
+ }
174
+ }
175
+ },
176
+ {
177
+ "displayName": "Additional Fields",
178
+ "name": "additionalOptions",
179
+ "type": "collection",
180
+ "placeholder": "Add Field",
181
+ "default": {},
182
+ "displayOptions": {
183
+ "show": {
184
+ "resource": [
185
+ "threads"
186
+ ],
187
+ "operation": [
188
+ "threads.search.list"
189
+ ]
190
+ }
191
+ },
192
+ "options": [
193
+ {
194
+ "displayName": "Start Date",
195
+ "name": "startDate",
196
+ "type": "string",
197
+ "default": "",
198
+ "description": "Optional start date filter in YYYY-MM-DD format.",
199
+ "routing": {
200
+ "send": {
201
+ "type": "query",
202
+ "property": "startDate"
203
+ }
204
+ }
205
+ },
206
+ {
207
+ "displayName": "End Date",
208
+ "name": "endDate",
209
+ "type": "string",
210
+ "default": "",
211
+ "description": "Optional end date filter in YYYY-MM-DD format.",
212
+ "routing": {
213
+ "send": {
214
+ "type": "query",
215
+ "property": "endDate"
216
+ }
217
+ }
218
+ },
219
+ {
220
+ "displayName": "Trim",
221
+ "name": "trim",
222
+ "type": "boolean",
223
+ "default": false,
224
+ "description": "Whether to request a smaller response shape when available.",
225
+ "routing": {
226
+ "send": {
227
+ "type": "query",
228
+ "property": "trim"
229
+ }
230
+ }
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "displayName": "Url",
236
+ "name": "url",
237
+ "type": "string",
238
+ "default": "",
239
+ "description": "Link to the Threads post.",
240
+ "placeholder": "e.g. https://example.com/page",
241
+ "required": true,
242
+ "routing": {
243
+ "send": {
244
+ "type": "query",
245
+ "property": "url"
246
+ }
247
+ },
248
+ "displayOptions": {
249
+ "show": {
250
+ "resource": [
251
+ "threads"
252
+ ],
253
+ "operation": [
254
+ "threads.post.get"
255
+ ]
256
+ }
257
+ }
258
+ },
259
+ {
260
+ "displayName": "Additional Fields",
261
+ "name": "additionalOptions",
262
+ "type": "collection",
263
+ "placeholder": "Add Field",
264
+ "default": {},
265
+ "displayOptions": {
266
+ "show": {
267
+ "resource": [
268
+ "threads"
269
+ ],
270
+ "operation": [
271
+ "threads.post.get"
272
+ ]
273
+ }
274
+ },
275
+ "options": [
276
+ {
277
+ "displayName": "Trim",
278
+ "name": "trim",
279
+ "type": "boolean",
280
+ "default": false,
281
+ "description": "When true, returns a smaller response with fewer fields.",
282
+ "routing": {
283
+ "send": {
284
+ "type": "query",
285
+ "property": "trim"
286
+ }
287
+ }
288
+ }
289
+ ]
290
+ },
291
+ {
292
+ "displayName": "Query",
293
+ "name": "query",
294
+ "type": "string",
295
+ "default": "",
296
+ "description": "Search query text for Threads users.",
297
+ "placeholder": "e.g. automation",
298
+ "required": true,
299
+ "routing": {
300
+ "send": {
301
+ "type": "query",
302
+ "property": "query"
303
+ }
304
+ },
305
+ "displayOptions": {
306
+ "show": {
307
+ "resource": [
308
+ "threads"
309
+ ],
310
+ "operation": [
311
+ "threads.users.search"
312
+ ]
313
+ }
314
+ }
315
+ }
316
+ ];