n8n-nodes-metricool-or 0.1.2
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 +73 -0
- package/dist/credentials/ExampleCredentialsApi.credentials.d.ts +9 -0
- package/dist/credentials/ExampleCredentialsApi.credentials.js +47 -0
- package/dist/credentials/ExampleCredentialsApi.credentials.js.map +1 -0
- package/dist/credentials/HttpBinApi.credentials.d.ts +9 -0
- package/dist/credentials/HttpBinApi.credentials.js +43 -0
- package/dist/credentials/HttpBinApi.credentials.js.map +1 -0
- package/dist/credentials/MetricoolApi.credentials.d.ts +32 -0
- package/dist/credentials/MetricoolApi.credentials.d.ts.map +1 -0
- package/dist/credentials/MetricoolApi.credentials.js +59 -0
- package/dist/credentials/MetricoolApi.credentials.js.map +1 -0
- package/dist/nodes/ExampleNode/ExampleNode.node.d.ts +5 -0
- package/dist/nodes/ExampleNode/ExampleNode.node.js +60 -0
- package/dist/nodes/ExampleNode/ExampleNode.node.js.map +1 -0
- package/dist/nodes/HttpBin/HttpBin.node.d.ts +4 -0
- package/dist/nodes/HttpBin/HttpBin.node.js +56 -0
- package/dist/nodes/HttpBin/HttpBin.node.js.map +1 -0
- package/dist/nodes/HttpBin/HttpBin.node.json +18 -0
- package/dist/nodes/HttpBin/HttpVerbDescription.d.ts +3 -0
- package/dist/nodes/HttpBin/HttpVerbDescription.js +236 -0
- package/dist/nodes/HttpBin/HttpVerbDescription.js.map +1 -0
- package/dist/nodes/HttpBin/httpbin.svg +18 -0
- package/dist/nodes/Metricool/AdvertisingOperations.d.ts +3 -0
- package/dist/nodes/Metricool/AdvertisingOperations.js +112 -0
- package/dist/nodes/Metricool/AdvertisingOperations.js.map +1 -0
- package/dist/nodes/Metricool/AnalyticsOperations.d.ts +4 -0
- package/dist/nodes/Metricool/AnalyticsOperations.d.ts.map +1 -0
- package/dist/nodes/Metricool/AnalyticsOperations.js +163 -0
- package/dist/nodes/Metricool/AnalyticsOperations.js.map +1 -0
- package/dist/nodes/Metricool/BlueskyOperations.d.ts +3 -0
- package/dist/nodes/Metricool/BlueskyOperations.js +78 -0
- package/dist/nodes/Metricool/BlueskyOperations.js.map +1 -0
- package/dist/nodes/Metricool/BrandOperations.d.ts +4 -0
- package/dist/nodes/Metricool/BrandOperations.d.ts.map +1 -0
- package/dist/nodes/Metricool/BrandOperations.js +33 -0
- package/dist/nodes/Metricool/BrandOperations.js.map +1 -0
- package/dist/nodes/Metricool/CompetitorOperations.d.ts +3 -0
- package/dist/nodes/Metricool/CompetitorOperations.js +136 -0
- package/dist/nodes/Metricool/CompetitorOperations.js.map +1 -0
- package/dist/nodes/Metricool/FacebookOperations.d.ts +3 -0
- package/dist/nodes/Metricool/FacebookOperations.js +112 -0
- package/dist/nodes/Metricool/FacebookOperations.js.map +1 -0
- package/dist/nodes/Metricool/InstagramOperations.d.ts +4 -0
- package/dist/nodes/Metricool/InstagramOperations.d.ts.map +1 -0
- package/dist/nodes/Metricool/InstagramOperations.js +79 -0
- package/dist/nodes/Metricool/InstagramOperations.js.map +1 -0
- package/dist/nodes/Metricool/LinkedinOperations.d.ts +3 -0
- package/dist/nodes/Metricool/LinkedinOperations.js +78 -0
- package/dist/nodes/Metricool/LinkedinOperations.js.map +1 -0
- package/dist/nodes/Metricool/Metricool.node.d.ts +6 -0
- package/dist/nodes/Metricool/Metricool.node.d.ts.map +1 -0
- package/dist/nodes/Metricool/Metricool.node.js +215 -0
- package/dist/nodes/Metricool/Metricool.node.js.map +1 -0
- package/dist/nodes/Metricool/Metricool.node.json +18 -0
- package/dist/nodes/Metricool/MetricoolResources.d.ts +2 -0
- package/dist/nodes/Metricool/MetricoolResources.js +66 -0
- package/dist/nodes/Metricool/MetricoolResources.js.map +1 -0
- package/dist/nodes/Metricool/PinterestOperations.d.ts +3 -0
- package/dist/nodes/Metricool/PinterestOperations.js +78 -0
- package/dist/nodes/Metricool/PinterestOperations.js.map +1 -0
- package/dist/nodes/Metricool/PostOperations.d.ts +4 -0
- package/dist/nodes/Metricool/PostOperations.d.ts.map +1 -0
- package/dist/nodes/Metricool/PostOperations.js +299 -0
- package/dist/nodes/Metricool/PostOperations.js.map +1 -0
- package/dist/nodes/Metricool/ThreadsOperations.d.ts +3 -0
- package/dist/nodes/Metricool/ThreadsOperations.js +78 -0
- package/dist/nodes/Metricool/ThreadsOperations.js.map +1 -0
- package/dist/nodes/Metricool/TiktokOperations.d.ts +3 -0
- package/dist/nodes/Metricool/TiktokOperations.js +78 -0
- package/dist/nodes/Metricool/TiktokOperations.js.map +1 -0
- package/dist/nodes/Metricool/TwitchOperations.d.ts +3 -0
- package/dist/nodes/Metricool/TwitchOperations.js +78 -0
- package/dist/nodes/Metricool/TwitchOperations.js.map +1 -0
- package/dist/nodes/Metricool/TwitterOperations.d.ts +3 -0
- package/dist/nodes/Metricool/TwitterOperations.js +78 -0
- package/dist/nodes/Metricool/TwitterOperations.js.map +1 -0
- package/dist/nodes/Metricool/YoutubeOperations.d.ts +3 -0
- package/dist/nodes/Metricool/YoutubeOperations.js +78 -0
- package/dist/nodes/Metricool/YoutubeOperations.js.map +1 -0
- package/dist/nodes/Metricool/metricool.svg +3 -0
- package/dist/package.json +56 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +54 -0
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.postFields = exports.postOperations = void 0;
|
|
4
|
+
exports.postOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['post'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Schedule Post',
|
|
18
|
+
value: 'schedulePost',
|
|
19
|
+
description: 'Schedule a post to social media platforms',
|
|
20
|
+
action: 'Schedule a post',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Scheduled Posts',
|
|
24
|
+
value: 'getScheduledPosts',
|
|
25
|
+
description: 'Get scheduled posts for a specific date range',
|
|
26
|
+
action: 'Get scheduled posts',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Update Scheduled Post',
|
|
30
|
+
value: 'updateScheduledPost',
|
|
31
|
+
description: 'Update an existing scheduled post',
|
|
32
|
+
action: 'Update a scheduled post',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get Best Time to Post',
|
|
36
|
+
value: 'getBestTimeToPost',
|
|
37
|
+
description: 'Get optimal posting times for a specific platform',
|
|
38
|
+
action: 'Get best time to post',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
default: 'schedulePost',
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
exports.postFields = [
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Blog ID',
|
|
47
|
+
name: 'blogId',
|
|
48
|
+
type: 'number',
|
|
49
|
+
required: true,
|
|
50
|
+
displayOptions: {
|
|
51
|
+
show: {
|
|
52
|
+
resource: ['post'],
|
|
53
|
+
operation: [
|
|
54
|
+
'schedulePost',
|
|
55
|
+
'getScheduledPosts',
|
|
56
|
+
'updateScheduledPost',
|
|
57
|
+
'getBestTimeToPost',
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
default: 0,
|
|
62
|
+
description: 'The blog ID of the Metricool brand account',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Post Text',
|
|
66
|
+
name: 'text',
|
|
67
|
+
type: 'string',
|
|
68
|
+
required: true,
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: {
|
|
71
|
+
resource: ['post'],
|
|
72
|
+
operation: ['schedulePost', 'updateScheduledPost'],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
default: '',
|
|
76
|
+
description: 'The text content of the post',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Platforms',
|
|
80
|
+
name: 'platforms',
|
|
81
|
+
type: 'multiOptions',
|
|
82
|
+
required: true,
|
|
83
|
+
displayOptions: {
|
|
84
|
+
show: {
|
|
85
|
+
resource: ['post'],
|
|
86
|
+
operation: ['schedulePost', 'updateScheduledPost'],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
options: [
|
|
90
|
+
{
|
|
91
|
+
name: 'Bluesky',
|
|
92
|
+
value: 'bluesky',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'Facebook',
|
|
96
|
+
value: 'facebook',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'Instagram',
|
|
100
|
+
value: 'instagram',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'LinkedIn',
|
|
104
|
+
value: 'linkedin',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'Pinterest',
|
|
108
|
+
value: 'pinterest',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'Threads',
|
|
112
|
+
value: 'threads',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'TikTok',
|
|
116
|
+
value: 'tiktok',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: 'Twitter/X',
|
|
120
|
+
value: 'twitter',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'YouTube',
|
|
124
|
+
value: 'youtube',
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
default: [],
|
|
128
|
+
description: 'Select the platforms to post to',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
displayName: 'Scheduled Date',
|
|
132
|
+
name: 'scheduledDate',
|
|
133
|
+
type: 'dateTime',
|
|
134
|
+
required: true,
|
|
135
|
+
displayOptions: {
|
|
136
|
+
show: {
|
|
137
|
+
resource: ['post'],
|
|
138
|
+
operation: ['schedulePost', 'updateScheduledPost'],
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
default: '',
|
|
142
|
+
description: 'Date and time to publish the post (format: YYYY-MM-DDTHH:mm:ss)',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
displayName: 'Media URLs',
|
|
146
|
+
name: 'mediaUrls',
|
|
147
|
+
type: 'string',
|
|
148
|
+
typeOptions: {
|
|
149
|
+
multipleValues: true,
|
|
150
|
+
},
|
|
151
|
+
displayOptions: {
|
|
152
|
+
show: {
|
|
153
|
+
resource: ['post'],
|
|
154
|
+
operation: ['schedulePost', 'updateScheduledPost'],
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
default: [],
|
|
158
|
+
description: 'URLs of media files to include in the post',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
displayName: 'Start Date',
|
|
162
|
+
name: 'startDate',
|
|
163
|
+
type: 'dateTime',
|
|
164
|
+
required: true,
|
|
165
|
+
displayOptions: {
|
|
166
|
+
show: {
|
|
167
|
+
resource: ['post'],
|
|
168
|
+
operation: ['getScheduledPosts'],
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
default: '',
|
|
172
|
+
description: 'Start date for retrieving scheduled posts (format: YYYY-MM-DD)',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
displayName: 'End Date',
|
|
176
|
+
name: 'endDate',
|
|
177
|
+
type: 'dateTime',
|
|
178
|
+
required: true,
|
|
179
|
+
displayOptions: {
|
|
180
|
+
show: {
|
|
181
|
+
resource: ['post'],
|
|
182
|
+
operation: ['getScheduledPosts'],
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
default: '',
|
|
186
|
+
description: 'End date for retrieving scheduled posts (format: YYYY-MM-DD)',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
displayName: 'Timezone',
|
|
190
|
+
name: 'timezone',
|
|
191
|
+
type: 'string',
|
|
192
|
+
required: true,
|
|
193
|
+
displayOptions: {
|
|
194
|
+
show: {
|
|
195
|
+
resource: ['post'],
|
|
196
|
+
operation: ['getScheduledPosts'],
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
default: 'Europe/Madrid',
|
|
200
|
+
description: 'Timezone for the date range (format: Europe/Madrid)',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
displayName: 'Post ID',
|
|
204
|
+
name: 'postId',
|
|
205
|
+
type: 'string',
|
|
206
|
+
required: true,
|
|
207
|
+
displayOptions: {
|
|
208
|
+
show: {
|
|
209
|
+
resource: ['post'],
|
|
210
|
+
operation: ['updateScheduledPost'],
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
default: '',
|
|
214
|
+
description: 'ID of the scheduled post to update',
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
displayName: 'Provider',
|
|
218
|
+
name: 'provider',
|
|
219
|
+
type: 'options',
|
|
220
|
+
required: true,
|
|
221
|
+
displayOptions: {
|
|
222
|
+
show: {
|
|
223
|
+
resource: ['post'],
|
|
224
|
+
operation: ['getBestTimeToPost'],
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
options: [
|
|
228
|
+
{
|
|
229
|
+
name: 'Facebook',
|
|
230
|
+
value: 'facebook',
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
name: 'Instagram',
|
|
234
|
+
value: 'instagram',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: 'LinkedIn',
|
|
238
|
+
value: 'linkedin',
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
name: 'TikTok',
|
|
242
|
+
value: 'tiktok',
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
name: 'Twitter',
|
|
246
|
+
value: 'twitter',
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: 'YouTube',
|
|
250
|
+
value: 'youtube',
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
default: 'instagram',
|
|
254
|
+
description: 'Social media platform to get optimal posting times for',
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
displayName: 'Start Date',
|
|
258
|
+
name: 'startDate',
|
|
259
|
+
type: 'dateTime',
|
|
260
|
+
required: true,
|
|
261
|
+
displayOptions: {
|
|
262
|
+
show: {
|
|
263
|
+
resource: ['post'],
|
|
264
|
+
operation: ['getBestTimeToPost'],
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
default: '',
|
|
268
|
+
description: 'Start date for analysis period (format: YYYY-MM-DD)',
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
displayName: 'End Date',
|
|
272
|
+
name: 'endDate',
|
|
273
|
+
type: 'dateTime',
|
|
274
|
+
required: true,
|
|
275
|
+
displayOptions: {
|
|
276
|
+
show: {
|
|
277
|
+
resource: ['post'],
|
|
278
|
+
operation: ['getBestTimeToPost'],
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
default: '',
|
|
282
|
+
description: 'End date for analysis period (format: YYYY-MM-DD)',
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
displayName: 'Timezone',
|
|
286
|
+
name: 'timezone',
|
|
287
|
+
type: 'string',
|
|
288
|
+
required: true,
|
|
289
|
+
displayOptions: {
|
|
290
|
+
show: {
|
|
291
|
+
resource: ['post'],
|
|
292
|
+
operation: ['getBestTimeToPost'],
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
default: 'Europe/Madrid',
|
|
296
|
+
description: 'Timezone for the analysis (format: Europe/Madrid)',
|
|
297
|
+
},
|
|
298
|
+
];
|
|
299
|
+
//# sourceMappingURL=PostOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostOperations.js","sourceRoot":"","sources":["../../../nodes/Metricool/PostOperations.ts"],"names":[],"mappings":";;;AAIa,QAAA,cAAc,GAAsB;IAC7C;QACI,WAAW,EAAE,WAAW;QAC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IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,mBAAmB,CAAC;aACnC;SACJ;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,mDAAmD;KACnE;IACD;QACI,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,mBAAmB,CAAC;aACnC;SACJ;QACD,OAAO,EAAE,eAAe;QACxB,WAAW,EAAE,mDAAmD;KACnE;CACJ,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.threadsFields = exports.threadsOperations = void 0;
|
|
4
|
+
exports.threadsOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['threads'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get Posts',
|
|
18
|
+
value: 'getPosts',
|
|
19
|
+
description: 'Get Threads posts from your Metricool brand account',
|
|
20
|
+
action: 'Get threads posts',
|
|
21
|
+
routing: {
|
|
22
|
+
request: {
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '=/threads/posts',
|
|
25
|
+
qs: {
|
|
26
|
+
blog_id: '={{$parameter.blogId}}',
|
|
27
|
+
init_date: '={{$parameter.startDate}}',
|
|
28
|
+
end_date: '={{$parameter.endDate}}',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
default: 'getPosts',
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
exports.threadsFields = [
|
|
38
|
+
{
|
|
39
|
+
displayName: 'Blog ID',
|
|
40
|
+
name: 'blogId',
|
|
41
|
+
type: 'number',
|
|
42
|
+
required: true,
|
|
43
|
+
displayOptions: {
|
|
44
|
+
show: {
|
|
45
|
+
resource: ['threads'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
default: 0,
|
|
49
|
+
description: 'The blog ID of the Metricool brand account',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Start Date',
|
|
53
|
+
name: 'startDate',
|
|
54
|
+
type: 'dateTime',
|
|
55
|
+
required: true,
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: {
|
|
58
|
+
resource: ['threads'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
default: '',
|
|
62
|
+
description: 'Start date for retrieving posts (format: YYYY-MM-DD)',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'End Date',
|
|
66
|
+
name: 'endDate',
|
|
67
|
+
type: 'dateTime',
|
|
68
|
+
required: true,
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: {
|
|
71
|
+
resource: ['threads'],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
default: '',
|
|
75
|
+
description: 'End date for retrieving posts (format: YYYY-MM-DD)',
|
|
76
|
+
},
|
|
77
|
+
];
|
|
78
|
+
//# sourceMappingURL=ThreadsOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThreadsOperations.js","sourceRoot":"","sources":["../../../nodes/Metricool/ThreadsOperations.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE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;KACjE;CACD,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tiktokFields = exports.tiktokOperations = void 0;
|
|
4
|
+
exports.tiktokOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['tiktok'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get Videos',
|
|
18
|
+
value: 'getVideos',
|
|
19
|
+
description: 'Get TikTok videos from your Metricool account',
|
|
20
|
+
action: 'Get tik tok videos',
|
|
21
|
+
routing: {
|
|
22
|
+
request: {
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '=/tiktok/videos',
|
|
25
|
+
qs: {
|
|
26
|
+
blog_id: '={{$parameter.blogId}}',
|
|
27
|
+
init_date: '={{$parameter.startDate}}',
|
|
28
|
+
end_date: '={{$parameter.endDate}}',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
default: 'getVideos',
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
exports.tiktokFields = [
|
|
38
|
+
{
|
|
39
|
+
displayName: 'Blog ID',
|
|
40
|
+
name: 'blogId',
|
|
41
|
+
type: 'number',
|
|
42
|
+
required: true,
|
|
43
|
+
displayOptions: {
|
|
44
|
+
show: {
|
|
45
|
+
resource: ['tiktok'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
default: 0,
|
|
49
|
+
description: 'The blog ID of the Metricool brand account',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Start Date',
|
|
53
|
+
name: 'startDate',
|
|
54
|
+
type: 'dateTime',
|
|
55
|
+
required: true,
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: {
|
|
58
|
+
resource: ['tiktok'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
default: '',
|
|
62
|
+
description: 'Start date for retrieving videos (format: YYYY-MM-DD)',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'End Date',
|
|
66
|
+
name: 'endDate',
|
|
67
|
+
type: 'dateTime',
|
|
68
|
+
required: true,
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: {
|
|
71
|
+
resource: ['tiktok'],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
default: '',
|
|
75
|
+
description: 'End date for retrieving videos (format: YYYY-MM-DD)',
|
|
76
|
+
},
|
|
77
|
+
];
|
|
78
|
+
//# sourceMappingURL=TiktokOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TiktokOperations.js","sourceRoot":"","sources":["../../../nodes/Metricool/TiktokOperations.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IAClD;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,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,+CAA+C;gBAC5D,MAAM,EAAE,oBAAoB;gBAC5B,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,iBAAiB;wBACtB,EAAE,EAAE;4BACH,OAAO,EAAE,wBAAwB;4BACjC,SAAS,EAAE,2BAA2B;4BACtC,QAAQ,EAAE,yBAAyB;yBACnC;qBACD;iBACD;aACD;SACD;QACD,OAAO,EAAE,WAAW;KACpB;CACD,CAAC;AAEW,QAAA,YAAY,GAAsB;IAC9C;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,4CAA4C;KACzD;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,uDAAuD;KACpE;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,qDAAqD;KAClE;CACD,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.twitchFields = exports.twitchOperations = void 0;
|
|
4
|
+
exports.twitchOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['twitch'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get Videos',
|
|
18
|
+
value: 'getVideos',
|
|
19
|
+
description: 'Get Twitch videos from your Metricool account',
|
|
20
|
+
action: 'Get twitch videos',
|
|
21
|
+
routing: {
|
|
22
|
+
request: {
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '=/twitch/videos',
|
|
25
|
+
qs: {
|
|
26
|
+
blog_id: '={{$parameter.blogId}}',
|
|
27
|
+
init_date: '={{$parameter.startDate}}',
|
|
28
|
+
end_date: '={{$parameter.endDate}}',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
default: 'getVideos',
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
exports.twitchFields = [
|
|
38
|
+
{
|
|
39
|
+
displayName: 'Blog ID',
|
|
40
|
+
name: 'blogId',
|
|
41
|
+
type: 'number',
|
|
42
|
+
required: true,
|
|
43
|
+
displayOptions: {
|
|
44
|
+
show: {
|
|
45
|
+
resource: ['twitch'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
default: 0,
|
|
49
|
+
description: 'The blog ID of the Metricool brand account',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Start Date',
|
|
53
|
+
name: 'startDate',
|
|
54
|
+
type: 'dateTime',
|
|
55
|
+
required: true,
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: {
|
|
58
|
+
resource: ['twitch'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
default: '',
|
|
62
|
+
description: 'Start date for retrieving videos (format: YYYY-MM-DD)',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'End Date',
|
|
66
|
+
name: 'endDate',
|
|
67
|
+
type: 'dateTime',
|
|
68
|
+
required: true,
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: {
|
|
71
|
+
resource: ['twitch'],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
default: '',
|
|
75
|
+
description: 'End date for retrieving videos (format: YYYY-MM-DD)',
|
|
76
|
+
},
|
|
77
|
+
];
|
|
78
|
+
//# sourceMappingURL=TwitchOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TwitchOperations.js","sourceRoot":"","sources":["../../../nodes/Metricool/TwitchOperations.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IAClD;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,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,+CAA+C;gBAC5D,MAAM,EAAE,mBAAmB;gBAC3B,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,iBAAiB;wBACtB,EAAE,EAAE;4BACH,OAAO,EAAE,wBAAwB;4BACjC,SAAS,EAAE,2BAA2B;4BACtC,QAAQ,EAAE,yBAAyB;yBACnC;qBACD;iBACD;aACD;SACD;QACD,OAAO,EAAE,WAAW;KACpB;CACD,CAAC;AAEW,QAAA,YAAY,GAAsB;IAC9C;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,4CAA4C;KACzD;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,uDAAuD;KACpE;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,qDAAqD;KAClE;CACD,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.twitterFields = exports.twitterOperations = void 0;
|
|
4
|
+
exports.twitterOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['twitter'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get Posts',
|
|
18
|
+
value: 'getPosts',
|
|
19
|
+
description: 'Get X (Twitter) posts from your Metricool account',
|
|
20
|
+
action: 'Get x twitter posts',
|
|
21
|
+
routing: {
|
|
22
|
+
request: {
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '=/x/posts',
|
|
25
|
+
qs: {
|
|
26
|
+
blog_id: '={{$parameter.blogId}}',
|
|
27
|
+
init_date: '={{$parameter.startDate}}',
|
|
28
|
+
end_date: '={{$parameter.endDate}}',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
default: 'getPosts',
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
exports.twitterFields = [
|
|
38
|
+
{
|
|
39
|
+
displayName: 'Blog ID',
|
|
40
|
+
name: 'blogId',
|
|
41
|
+
type: 'number',
|
|
42
|
+
required: true,
|
|
43
|
+
displayOptions: {
|
|
44
|
+
show: {
|
|
45
|
+
resource: ['twitter'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
default: 0,
|
|
49
|
+
description: 'The blog ID of the Metricool brand account',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Start Date',
|
|
53
|
+
name: 'startDate',
|
|
54
|
+
type: 'dateTime',
|
|
55
|
+
required: true,
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: {
|
|
58
|
+
resource: ['twitter'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
default: '',
|
|
62
|
+
description: 'Start date for retrieving posts (format: YYYY-MM-DD)',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'End Date',
|
|
66
|
+
name: 'endDate',
|
|
67
|
+
type: 'dateTime',
|
|
68
|
+
required: true,
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: {
|
|
71
|
+
resource: ['twitter'],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
default: '',
|
|
75
|
+
description: 'End date for retrieving posts (format: YYYY-MM-DD)',
|
|
76
|
+
},
|
|
77
|
+
];
|
|
78
|
+
//# sourceMappingURL=TwitterOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TwitterOperations.js","sourceRoot":"","sources":["../../../nodes/Metricool/TwitterOperations.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;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,SAAS,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,mDAAmD;gBAChE,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