@yuniruyuni/n8n-nodes-twitch 0.1.6 → 0.1.8
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/dist/credentials/TwitchOAuth2Api.credentials.js +3 -9
- package/dist/credentials/TwitchOAuth2Api.credentials.js.map +1 -1
- package/dist/nodes/Twitch/resources/Announcement.js +43 -81
- package/dist/nodes/Twitch/resources/Announcement.js.map +1 -1
- package/dist/nodes/Twitch/resources/Ban.js +36 -169
- package/dist/nodes/Twitch/resources/Ban.js.map +1 -1
- package/dist/nodes/Twitch/resources/BitsLeaderboard.js +54 -82
- package/dist/nodes/Twitch/resources/BitsLeaderboard.js.map +1 -1
- package/dist/nodes/Twitch/resources/Channel.js +13 -15
- package/dist/nodes/Twitch/resources/Channel.js.map +1 -1
- package/dist/nodes/Twitch/resources/ChatMessage.js +26 -49
- package/dist/nodes/Twitch/resources/ChatMessage.js.map +1 -1
- package/dist/nodes/Twitch/resources/Chatter.js +1 -49
- package/dist/nodes/Twitch/resources/Chatter.js.map +1 -1
- package/dist/nodes/Twitch/resources/Cheermote.js +1 -16
- package/dist/nodes/Twitch/resources/Cheermote.js.map +1 -1
- package/dist/nodes/Twitch/resources/Clip.js +91 -153
- package/dist/nodes/Twitch/resources/Clip.js.map +1 -1
- package/dist/nodes/Twitch/resources/CustomReward.js +309 -296
- package/dist/nodes/Twitch/resources/CustomReward.js.map +1 -1
- package/dist/nodes/Twitch/resources/Emote.js +1 -17
- package/dist/nodes/Twitch/resources/Emote.js.map +1 -1
- package/dist/nodes/Twitch/resources/Game.js +68 -92
- package/dist/nodes/Twitch/resources/Game.js.map +1 -1
- package/dist/nodes/Twitch/resources/Moderator.js +75 -108
- package/dist/nodes/Twitch/resources/Moderator.js.map +1 -1
- package/dist/nodes/Twitch/resources/Poll.js +174 -229
- package/dist/nodes/Twitch/resources/Poll.js.map +1 -1
- package/dist/nodes/Twitch/resources/Prediction.js +143 -201
- package/dist/nodes/Twitch/resources/Prediction.js.map +1 -1
- package/dist/nodes/Twitch/resources/Raid.js +48 -71
- package/dist/nodes/Twitch/resources/Raid.js.map +1 -1
- package/dist/nodes/Twitch/resources/Redemption.js +136 -139
- package/dist/nodes/Twitch/resources/Redemption.js.map +1 -1
- package/dist/nodes/Twitch/resources/Schedule.js +226 -213
- package/dist/nodes/Twitch/resources/Schedule.js.map +1 -1
- package/dist/nodes/Twitch/resources/Search.js +24 -34
- package/dist/nodes/Twitch/resources/Search.js.map +1 -1
- package/dist/nodes/Twitch/resources/Stream.js +13 -15
- package/dist/nodes/Twitch/resources/Stream.js.map +1 -1
- package/dist/nodes/Twitch/resources/Subscription.js +61 -75
- package/dist/nodes/Twitch/resources/Subscription.js.map +1 -1
- package/dist/nodes/Twitch/resources/Team.js +63 -72
- package/dist/nodes/Twitch/resources/Team.js.map +1 -1
- package/dist/nodes/Twitch/resources/User.js +13 -15
- package/dist/nodes/Twitch/resources/User.js.map +1 -1
- package/dist/nodes/Twitch/resources/Video.js +106 -129
- package/dist/nodes/Twitch/resources/Video.js.map +1 -1
- package/dist/nodes/Twitch/resources/Whisper.js +32 -28
- package/dist/nodes/Twitch/resources/Whisper.js.map +1 -1
- package/dist/nodes/Twitch/shared/updateDisplayOptions.d.ts +2 -0
- package/dist/nodes/Twitch/shared/updateDisplayOptions.js +12 -0
- package/dist/nodes/Twitch/shared/updateDisplayOptions.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,227 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.scheduleFields = exports.scheduleOperations = void 0;
|
|
4
4
|
const userIdConverter_1 = require("../shared/userIdConverter");
|
|
5
|
+
const updateDisplayOptions_1 = require("../shared/updateDisplayOptions");
|
|
6
|
+
const getScheduleFields = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Broadcaster ID or Username',
|
|
9
|
+
name: 'broadcasterId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
default: '',
|
|
12
|
+
required: true,
|
|
13
|
+
placeholder: 'e.g. 123456789 or username',
|
|
14
|
+
description: 'The broadcaster user ID or username. If a username is provided, it will be automatically converted to user ID.',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
displayName: 'Segment IDs',
|
|
18
|
+
name: 'id',
|
|
19
|
+
type: 'string',
|
|
20
|
+
default: '',
|
|
21
|
+
placeholder: 'e.g. 123,456,789',
|
|
22
|
+
description: 'Segment IDs (comma-separated)',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
displayName: 'Start Time',
|
|
26
|
+
name: 'startTime',
|
|
27
|
+
type: 'string',
|
|
28
|
+
default: '',
|
|
29
|
+
placeholder: 'e.g. 2024-01-01T00:00:00Z',
|
|
30
|
+
description: 'Start time (RFC3339 format)',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'UTC Offset',
|
|
34
|
+
name: 'utcOffset',
|
|
35
|
+
type: 'string',
|
|
36
|
+
default: '',
|
|
37
|
+
placeholder: 'e.g. -480',
|
|
38
|
+
description: 'UTC offset in minutes',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
displayName: 'First',
|
|
42
|
+
name: 'first',
|
|
43
|
+
type: 'number',
|
|
44
|
+
default: 20,
|
|
45
|
+
typeOptions: {
|
|
46
|
+
minValue: 1,
|
|
47
|
+
maxValue: 100,
|
|
48
|
+
},
|
|
49
|
+
description: 'Maximum number of items to return',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'After',
|
|
53
|
+
name: 'after',
|
|
54
|
+
type: 'string',
|
|
55
|
+
default: '',
|
|
56
|
+
placeholder: 'e.g. eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6MjB9fQ',
|
|
57
|
+
description: 'Pagination cursor',
|
|
58
|
+
},
|
|
59
|
+
];
|
|
60
|
+
const createSegmentFields = [
|
|
61
|
+
{
|
|
62
|
+
displayName: 'Broadcaster ID or Username',
|
|
63
|
+
name: 'broadcasterId',
|
|
64
|
+
type: 'string',
|
|
65
|
+
default: '',
|
|
66
|
+
required: true,
|
|
67
|
+
placeholder: 'e.g. 123456789 or username',
|
|
68
|
+
description: 'The broadcaster user ID or username. If a username is provided, it will be automatically converted to user ID.',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
displayName: 'Start Time',
|
|
72
|
+
name: 'segmentStartTime',
|
|
73
|
+
type: 'string',
|
|
74
|
+
required: true,
|
|
75
|
+
default: '',
|
|
76
|
+
placeholder: 'e.g. 2024-01-01T00:00:00Z',
|
|
77
|
+
description: 'Start time (RFC3339 format)',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: 'Timezone',
|
|
81
|
+
name: 'timezone',
|
|
82
|
+
type: 'string',
|
|
83
|
+
required: true,
|
|
84
|
+
default: '',
|
|
85
|
+
placeholder: 'e.g. America/New_York',
|
|
86
|
+
description: 'Timezone (e.g. "America/New_York")',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
displayName: 'Duration',
|
|
90
|
+
name: 'duration',
|
|
91
|
+
type: 'string',
|
|
92
|
+
required: true,
|
|
93
|
+
default: '',
|
|
94
|
+
placeholder: 'e.g. 240',
|
|
95
|
+
description: 'Duration in minutes',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
displayName: 'Additional Fields',
|
|
99
|
+
name: 'additionalFields',
|
|
100
|
+
type: 'collection',
|
|
101
|
+
placeholder: 'Add Field',
|
|
102
|
+
default: {},
|
|
103
|
+
options: [
|
|
104
|
+
{
|
|
105
|
+
displayName: 'Category ID',
|
|
106
|
+
name: 'categoryId',
|
|
107
|
+
type: 'string',
|
|
108
|
+
default: '',
|
|
109
|
+
placeholder: 'e.g. 509658',
|
|
110
|
+
description: 'Game/category ID',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
displayName: 'Is Recurring',
|
|
114
|
+
name: 'isRecurring',
|
|
115
|
+
type: 'boolean',
|
|
116
|
+
default: false,
|
|
117
|
+
description: 'Whether the segment is recurring',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
displayName: 'Title',
|
|
121
|
+
name: 'title',
|
|
122
|
+
type: 'string',
|
|
123
|
+
default: '',
|
|
124
|
+
placeholder: 'e.g. My Stream Title',
|
|
125
|
+
description: 'Title of the segment',
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
];
|
|
130
|
+
const updateSegmentFields = [
|
|
131
|
+
{
|
|
132
|
+
displayName: 'Broadcaster ID or Username',
|
|
133
|
+
name: 'broadcasterId',
|
|
134
|
+
type: 'string',
|
|
135
|
+
default: '',
|
|
136
|
+
required: true,
|
|
137
|
+
placeholder: 'e.g. 123456789 or username',
|
|
138
|
+
description: 'The broadcaster user ID or username. If a username is provided, it will be automatically converted to user ID.',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
displayName: 'Segment ID',
|
|
142
|
+
name: 'segmentId',
|
|
143
|
+
type: 'string',
|
|
144
|
+
required: true,
|
|
145
|
+
default: '',
|
|
146
|
+
placeholder: 'e.g. eyJzZWdtZW50SUQiOiI...',
|
|
147
|
+
description: 'The ID of the segment',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
displayName: 'Additional Fields',
|
|
151
|
+
name: 'additionalFields',
|
|
152
|
+
type: 'collection',
|
|
153
|
+
placeholder: 'Add Field',
|
|
154
|
+
default: {},
|
|
155
|
+
options: [
|
|
156
|
+
{
|
|
157
|
+
displayName: 'Category ID',
|
|
158
|
+
name: 'categoryId',
|
|
159
|
+
type: 'string',
|
|
160
|
+
default: '',
|
|
161
|
+
placeholder: 'e.g. 509658',
|
|
162
|
+
description: 'Game/category ID',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
displayName: 'Duration',
|
|
166
|
+
name: 'duration',
|
|
167
|
+
type: 'string',
|
|
168
|
+
default: '',
|
|
169
|
+
placeholder: 'e.g. 240',
|
|
170
|
+
description: 'Duration in minutes',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
displayName: 'Is Canceled',
|
|
174
|
+
name: 'isCanceled',
|
|
175
|
+
type: 'boolean',
|
|
176
|
+
default: false,
|
|
177
|
+
description: 'Whether the segment is canceled',
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
displayName: 'Start Time',
|
|
181
|
+
name: 'startTime',
|
|
182
|
+
type: 'string',
|
|
183
|
+
default: '',
|
|
184
|
+
placeholder: 'e.g. 2024-01-01T00:00:00Z',
|
|
185
|
+
description: 'Start time (RFC3339 format)',
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
displayName: 'Timezone',
|
|
189
|
+
name: 'timezone',
|
|
190
|
+
type: 'string',
|
|
191
|
+
default: '',
|
|
192
|
+
placeholder: 'e.g. America/New_York',
|
|
193
|
+
description: 'Timezone (e.g. "America/New_York")',
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
displayName: 'Title',
|
|
197
|
+
name: 'title',
|
|
198
|
+
type: 'string',
|
|
199
|
+
default: '',
|
|
200
|
+
placeholder: 'e.g. My Stream Title',
|
|
201
|
+
description: 'Title of the segment',
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
},
|
|
205
|
+
];
|
|
206
|
+
const deleteSegmentFields = [
|
|
207
|
+
{
|
|
208
|
+
displayName: 'Broadcaster ID or Username',
|
|
209
|
+
name: 'broadcasterId',
|
|
210
|
+
type: 'string',
|
|
211
|
+
default: '',
|
|
212
|
+
required: true,
|
|
213
|
+
placeholder: 'e.g. 123456789 or username',
|
|
214
|
+
description: 'The broadcaster user ID or username. If a username is provided, it will be automatically converted to user ID.',
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
displayName: 'Segment ID',
|
|
218
|
+
name: 'segmentId',
|
|
219
|
+
type: 'string',
|
|
220
|
+
required: true,
|
|
221
|
+
default: '',
|
|
222
|
+
placeholder: 'e.g. eyJzZWdtZW50SUQiOiI...',
|
|
223
|
+
description: 'The ID of the segment',
|
|
224
|
+
},
|
|
225
|
+
];
|
|
5
226
|
exports.scheduleOperations = [
|
|
6
227
|
{
|
|
7
228
|
displayName: 'Operation',
|
|
@@ -196,220 +417,12 @@ exports.scheduleOperations = [
|
|
|
196
417
|
},
|
|
197
418
|
],
|
|
198
419
|
default: 'getSchedule',
|
|
199
|
-
}
|
|
420
|
+
},
|
|
200
421
|
];
|
|
201
422
|
exports.scheduleFields = [
|
|
202
|
-
{
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
required: true,
|
|
207
|
-
default: '',
|
|
208
|
-
placeholder: 'e.g. 123456789 or username',
|
|
209
|
-
description: 'The broadcaster user ID or username. If a username is provided, it will be automatically converted to user ID.',
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
displayName: 'Segment IDs',
|
|
213
|
-
name: 'id',
|
|
214
|
-
type: 'string',
|
|
215
|
-
default: '',
|
|
216
|
-
placeholder: 'e.g. 123,456,789',
|
|
217
|
-
description: 'Segment IDs (comma-separated)',
|
|
218
|
-
displayOptions: {
|
|
219
|
-
show: {
|
|
220
|
-
resource: ['schedule'],
|
|
221
|
-
operation: ['getSchedule'],
|
|
222
|
-
},
|
|
223
|
-
},
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
displayName: 'Start Time',
|
|
227
|
-
name: 'startTime',
|
|
228
|
-
type: 'string',
|
|
229
|
-
default: '',
|
|
230
|
-
placeholder: 'e.g. 2024-01-01T00:00:00Z',
|
|
231
|
-
description: 'Start time (RFC3339 format)',
|
|
232
|
-
displayOptions: {
|
|
233
|
-
show: {
|
|
234
|
-
resource: ['schedule'],
|
|
235
|
-
operation: ['getSchedule'],
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
displayName: 'UTC Offset',
|
|
241
|
-
name: 'utcOffset',
|
|
242
|
-
type: 'string',
|
|
243
|
-
default: '',
|
|
244
|
-
placeholder: 'e.g. -480',
|
|
245
|
-
description: 'UTC offset in minutes',
|
|
246
|
-
displayOptions: {
|
|
247
|
-
show: {
|
|
248
|
-
resource: ['schedule'],
|
|
249
|
-
operation: ['getSchedule'],
|
|
250
|
-
},
|
|
251
|
-
},
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
displayName: 'First',
|
|
255
|
-
name: 'first',
|
|
256
|
-
type: 'number',
|
|
257
|
-
default: 20,
|
|
258
|
-
typeOptions: {
|
|
259
|
-
minValue: 1,
|
|
260
|
-
maxValue: 25,
|
|
261
|
-
},
|
|
262
|
-
placeholder: 'e.g. 20',
|
|
263
|
-
description: 'Number of segments (1-25)',
|
|
264
|
-
displayOptions: {
|
|
265
|
-
show: {
|
|
266
|
-
resource: ['schedule'],
|
|
267
|
-
operation: ['getSchedule'],
|
|
268
|
-
},
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
displayName: 'After',
|
|
273
|
-
name: 'after',
|
|
274
|
-
type: 'string',
|
|
275
|
-
default: '',
|
|
276
|
-
placeholder: 'e.g. eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6MjB9fQ',
|
|
277
|
-
description: 'Pagination cursor',
|
|
278
|
-
displayOptions: {
|
|
279
|
-
show: {
|
|
280
|
-
resource: ['schedule'],
|
|
281
|
-
operation: ['getSchedule'],
|
|
282
|
-
},
|
|
283
|
-
},
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
displayName: 'Start Time',
|
|
287
|
-
name: 'segmentStartTime',
|
|
288
|
-
type: 'string',
|
|
289
|
-
required: true,
|
|
290
|
-
default: '',
|
|
291
|
-
placeholder: 'e.g. 2024-01-01T00:00:00Z',
|
|
292
|
-
description: 'Start time (RFC3339 format)',
|
|
293
|
-
displayOptions: {
|
|
294
|
-
show: {
|
|
295
|
-
resource: ['schedule'],
|
|
296
|
-
operation: ['createSegment'],
|
|
297
|
-
},
|
|
298
|
-
},
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
displayName: 'Timezone',
|
|
302
|
-
name: 'timezone',
|
|
303
|
-
type: 'string',
|
|
304
|
-
required: true,
|
|
305
|
-
default: '',
|
|
306
|
-
placeholder: 'e.g. America/New_York',
|
|
307
|
-
description: 'Timezone (e.g. "America/New_York")',
|
|
308
|
-
displayOptions: {
|
|
309
|
-
show: {
|
|
310
|
-
resource: ['schedule'],
|
|
311
|
-
operation: ['createSegment'],
|
|
312
|
-
},
|
|
313
|
-
},
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
displayName: 'Duration',
|
|
317
|
-
name: 'duration',
|
|
318
|
-
type: 'string',
|
|
319
|
-
required: true,
|
|
320
|
-
default: '',
|
|
321
|
-
placeholder: 'e.g. 240',
|
|
322
|
-
description: 'Duration in minutes',
|
|
323
|
-
displayOptions: {
|
|
324
|
-
show: {
|
|
325
|
-
resource: ['schedule'],
|
|
326
|
-
operation: ['createSegment'],
|
|
327
|
-
},
|
|
328
|
-
},
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
displayName: 'Segment ID',
|
|
332
|
-
name: 'segmentId',
|
|
333
|
-
type: 'string',
|
|
334
|
-
required: true,
|
|
335
|
-
default: '',
|
|
336
|
-
placeholder: 'e.g. eyJzZWdtZW50SUQiOiI...',
|
|
337
|
-
description: 'The ID of the segment',
|
|
338
|
-
displayOptions: {
|
|
339
|
-
show: {
|
|
340
|
-
resource: ['schedule'],
|
|
341
|
-
operation: ['updateSegment', 'deleteSegment'],
|
|
342
|
-
},
|
|
343
|
-
},
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
displayName: 'Additional Fields',
|
|
347
|
-
name: 'additionalFields',
|
|
348
|
-
type: 'collection',
|
|
349
|
-
placeholder: 'Add Field',
|
|
350
|
-
default: {},
|
|
351
|
-
displayOptions: {
|
|
352
|
-
show: {
|
|
353
|
-
resource: ['schedule'],
|
|
354
|
-
operation: ['createSegment', 'updateSegment'],
|
|
355
|
-
},
|
|
356
|
-
},
|
|
357
|
-
options: [
|
|
358
|
-
{
|
|
359
|
-
displayName: 'Category ID',
|
|
360
|
-
name: 'categoryId',
|
|
361
|
-
type: 'string',
|
|
362
|
-
default: '',
|
|
363
|
-
placeholder: 'e.g. 509658',
|
|
364
|
-
description: 'Game/category ID',
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
displayName: 'Duration',
|
|
368
|
-
name: 'duration',
|
|
369
|
-
type: 'string',
|
|
370
|
-
default: '',
|
|
371
|
-
placeholder: 'e.g. 240',
|
|
372
|
-
description: 'Duration in minutes',
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
displayName: 'Is Canceled',
|
|
376
|
-
name: 'isCanceled',
|
|
377
|
-
type: 'boolean',
|
|
378
|
-
default: false,
|
|
379
|
-
description: 'Whether the segment is canceled',
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
displayName: 'Is Recurring',
|
|
383
|
-
name: 'isRecurring',
|
|
384
|
-
type: 'boolean',
|
|
385
|
-
default: false,
|
|
386
|
-
description: 'Whether the segment is recurring',
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
displayName: 'Start Time',
|
|
390
|
-
name: 'startTime',
|
|
391
|
-
type: 'string',
|
|
392
|
-
default: '',
|
|
393
|
-
placeholder: 'e.g. 2024-01-01T00:00:00Z',
|
|
394
|
-
description: 'Start time (RFC3339 format)',
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
displayName: 'Timezone',
|
|
398
|
-
name: 'timezone',
|
|
399
|
-
type: 'string',
|
|
400
|
-
default: '',
|
|
401
|
-
placeholder: 'e.g. America/New_York',
|
|
402
|
-
description: 'Timezone (e.g. "America/New_York")',
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
displayName: 'Title',
|
|
406
|
-
name: 'title',
|
|
407
|
-
type: 'string',
|
|
408
|
-
default: '',
|
|
409
|
-
placeholder: 'e.g. My Stream Title',
|
|
410
|
-
description: 'Title of the segment',
|
|
411
|
-
},
|
|
412
|
-
],
|
|
413
|
-
},
|
|
423
|
+
...(0, updateDisplayOptions_1.updateDisplayOptions)({ show: { resource: ['schedule'], operation: ['getSchedule'] } }, getScheduleFields),
|
|
424
|
+
...(0, updateDisplayOptions_1.updateDisplayOptions)({ show: { resource: ['schedule'], operation: ['createSegment'] } }, createSegmentFields),
|
|
425
|
+
...(0, updateDisplayOptions_1.updateDisplayOptions)({ show: { resource: ['schedule'], operation: ['updateSegment'] } }, updateSegmentFields),
|
|
426
|
+
...(0, updateDisplayOptions_1.updateDisplayOptions)({ show: { resource: ['schedule'], operation: ['deleteSegment'] } }, deleteSegmentFields),
|
|
414
427
|
];
|
|
415
428
|
//# sourceMappingURL=Schedule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schedule.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Schedule.ts"],"names":[],"mappings":";;;AACA,+DAAoE;
|
|
1
|
+
{"version":3,"file":"Schedule.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Schedule.ts"],"names":[],"mappings":";;;AACA,+DAAoE;AACpE,yEAAsE;AAGtE,MAAM,iBAAiB,GAAsB;IAC5C;QACC,WAAW,EAAE,4BAA4B;QACzC,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,4BAA4B;QACzC,WAAW,EAAE,gHAAgH;KAC7H;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kBAAkB;QAC/B,WAAW,EAAE,+BAA+B;KAC5C;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,2BAA2B;QACxC,W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C,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC,eAAe,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC;IAChH,GAAG,IAAA,2CAAoB,EAAC,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC,eAAe,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC;CAChH,CAAC"}
|
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.searchFields = exports.searchOperations = void 0;
|
|
4
|
+
const updateDisplayOptions_1 = require("../shared/updateDisplayOptions");
|
|
5
|
+
const searchCommonFields = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Query',
|
|
8
|
+
name: 'query',
|
|
9
|
+
type: 'string',
|
|
10
|
+
default: '',
|
|
11
|
+
required: true,
|
|
12
|
+
placeholder: 'e.g. starcraft',
|
|
13
|
+
description: 'The search query',
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
const searchChannelsFields = [
|
|
17
|
+
{
|
|
18
|
+
displayName: 'Live Only',
|
|
19
|
+
name: 'liveOnly',
|
|
20
|
+
type: 'boolean',
|
|
21
|
+
default: false,
|
|
22
|
+
description: 'Whether to only return channels that are currently live',
|
|
23
|
+
},
|
|
24
|
+
];
|
|
4
25
|
exports.searchOperations = [
|
|
5
26
|
{
|
|
6
27
|
displayName: 'Operation',
|
|
@@ -68,41 +89,10 @@ exports.searchOperations = [
|
|
|
68
89
|
},
|
|
69
90
|
],
|
|
70
91
|
default: 'searchChannels',
|
|
71
|
-
}
|
|
92
|
+
},
|
|
72
93
|
];
|
|
73
94
|
exports.searchFields = [
|
|
74
|
-
{
|
|
75
|
-
|
|
76
|
-
name: 'query',
|
|
77
|
-
type: 'string',
|
|
78
|
-
default: '',
|
|
79
|
-
required: true,
|
|
80
|
-
placeholder: 'e.g. starcraft',
|
|
81
|
-
description: 'The search query',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
displayName: 'First',
|
|
85
|
-
name: 'first',
|
|
86
|
-
type: 'number',
|
|
87
|
-
default: 20,
|
|
88
|
-
description: 'Maximum number of objects to return. Maximum: 100. Default: 20.',
|
|
89
|
-
typeOptions: {
|
|
90
|
-
minValue: 1,
|
|
91
|
-
maxValue: 100,
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
displayName: 'Live Only',
|
|
96
|
-
name: 'liveOnly',
|
|
97
|
-
type: 'boolean',
|
|
98
|
-
displayOptions: {
|
|
99
|
-
show: {
|
|
100
|
-
resource: ['search'],
|
|
101
|
-
operation: ['searchChannels'],
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
default: false,
|
|
105
|
-
description: 'Whether to only return channels that are currently live',
|
|
106
|
-
},
|
|
95
|
+
...(0, updateDisplayOptions_1.updateDisplayOptions)({ show: { resource: ['search'] } }, searchCommonFields),
|
|
96
|
+
...(0, updateDisplayOptions_1.updateDisplayOptions)({ show: { resource: ['search'], operation: ['searchChannels'] } }, searchChannelsFields),
|
|
107
97
|
];
|
|
108
98
|
//# sourceMappingURL=Search.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Search.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Search.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Search.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Search.ts"],"names":[],"mappings":";;;AACA,yEAAsE;AAGtE,MAAM,kBAAkB,GAAsB;IAC7C;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,gBAAgB;QAC7B,WAAW,EAAE,kBAAkB;KAC/B;CACD,CAAC;AAEF,MAAM,oBAAoB,GAAsB;IAC/C;QACC,WAAW,EA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;iCAChB;6BACD;yBACD;qBACD;iBACD;aACD;SACD;QACD,OAAO,EAAE,gBAAgB;KACzB;CACD,CAAC;AAEW,QAAA,YAAY,GAAsB;IAC9C,GAAG,IAAA,2CAAoB,EAAC,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC;IAC/E,GAAG,IAAA,2CAAoB,EAAC,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,gBAAgB,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC;CAChH,CAAC"}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.streamFields = exports.streamOperations = void 0;
|
|
4
|
+
const updateDisplayOptions_1 = require("../shared/updateDisplayOptions");
|
|
5
|
+
const getFields = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'User Login',
|
|
8
|
+
name: 'streamUserLogin',
|
|
9
|
+
type: 'string',
|
|
10
|
+
default: '',
|
|
11
|
+
required: true,
|
|
12
|
+
placeholder: 'e.g. username',
|
|
13
|
+
description: 'The user login name',
|
|
14
|
+
},
|
|
15
|
+
];
|
|
4
16
|
exports.streamOperations = [
|
|
5
17
|
{
|
|
6
18
|
displayName: 'Operation',
|
|
@@ -49,20 +61,6 @@ exports.streamOperations = [
|
|
|
49
61
|
},
|
|
50
62
|
];
|
|
51
63
|
exports.streamFields = [
|
|
52
|
-
{
|
|
53
|
-
displayName: 'User Login',
|
|
54
|
-
name: 'streamUserLogin',
|
|
55
|
-
type: 'string',
|
|
56
|
-
displayOptions: {
|
|
57
|
-
show: {
|
|
58
|
-
resource: ['stream'],
|
|
59
|
-
operation: ['get'],
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
default: '',
|
|
63
|
-
required: true,
|
|
64
|
-
placeholder: 'e.g. username',
|
|
65
|
-
description: 'The user login name',
|
|
66
|
-
},
|
|
64
|
+
...(0, updateDisplayOptions_1.updateDisplayOptions)({ show: { resource: ['stream'], operation: ['get'] } }, getFields),
|
|
67
65
|
];
|
|
68
66
|
//# sourceMappingURL=Stream.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stream.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Stream.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Stream.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Stream.ts"],"names":[],"mappings":";;;AACA,yEAAsE;AAGtE,MAAM,SAAS,GAAsB;IACpC;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,eAAe;QAC5B,WAAW,EAAE,qBAAqB;KAClC;CACD,CAAC;AAEW,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,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,wBAAwB;gBAChC,WAAW,EAAE,qCAAqC;gBAClD,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,UAAU;wBACf,EAAE,EAAE;4BACH,UAAU,EAAE,iCAAiC;yBAC7C;qBACD;oBACD,MAAM,EAAE;wBACP,WAAW,EAAE;4BACZ;gCACC,IAAI,EAAE,cAAc;gCACpB,UAAU,EAAE;oCACX,QAAQ,EAAE,MAAM;iCAChB;6BACD;4BACD;gCACC,IA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