@yuniruyuni/n8n-nodes-twitch 0.1.4 → 0.1.6
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.d.ts +2 -1
- package/dist/credentials/TwitchOAuth2Api.credentials.js +8 -0
- package/dist/credentials/TwitchOAuth2Api.credentials.js.map +1 -1
- package/dist/nodes/{TwitchBans/TwitchBans.node.d.ts → Twitch/Twitch.node.d.ts} +1 -1
- package/dist/nodes/Twitch/Twitch.node.js +145 -0
- package/dist/nodes/Twitch/Twitch.node.js.map +1 -0
- package/dist/nodes/Twitch/resources/Announcement.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Announcement.js +146 -0
- package/dist/nodes/Twitch/resources/Announcement.js.map +1 -0
- package/dist/nodes/Twitch/resources/Ban.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Ban.js +324 -0
- package/dist/nodes/Twitch/resources/Ban.js.map +1 -0
- package/dist/nodes/Twitch/resources/BitsLeaderboard.d.ts +3 -0
- package/dist/nodes/Twitch/resources/BitsLeaderboard.js +152 -0
- package/dist/nodes/Twitch/resources/BitsLeaderboard.js.map +1 -0
- package/dist/nodes/Twitch/resources/Channel.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Channel.js +78 -0
- package/dist/nodes/Twitch/resources/Channel.js.map +1 -0
- package/dist/nodes/Twitch/resources/ChatMessage.d.ts +3 -0
- package/dist/nodes/Twitch/resources/ChatMessage.js +110 -0
- package/dist/nodes/Twitch/resources/ChatMessage.js.map +1 -0
- package/dist/nodes/Twitch/resources/Chatter.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Chatter.js +109 -0
- package/dist/nodes/Twitch/resources/Chatter.js.map +1 -0
- package/dist/nodes/Twitch/resources/Cheermote.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Cheermote.js +73 -0
- package/dist/nodes/Twitch/resources/Cheermote.js.map +1 -0
- package/dist/nodes/Twitch/resources/Clip.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Clip.js +273 -0
- package/dist/nodes/Twitch/resources/Clip.js.map +1 -0
- package/dist/nodes/Twitch/resources/CustomReward.d.ts +3 -0
- package/dist/nodes/Twitch/resources/CustomReward.js +564 -0
- package/dist/nodes/Twitch/resources/CustomReward.js.map +1 -0
- package/dist/nodes/Twitch/resources/Emote.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Emote.js +72 -0
- package/dist/nodes/Twitch/resources/Emote.js.map +1 -0
- package/dist/nodes/Twitch/resources/Game.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Game.js +209 -0
- package/dist/nodes/Twitch/resources/Game.js.map +1 -0
- package/dist/nodes/Twitch/resources/Moderator.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Moderator.js +268 -0
- package/dist/nodes/Twitch/resources/Moderator.js.map +1 -0
- package/dist/nodes/Twitch/resources/Poll.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Poll.js +411 -0
- package/dist/nodes/Twitch/resources/Poll.js.map +1 -0
- package/dist/nodes/Twitch/resources/Prediction.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Prediction.js +367 -0
- package/dist/nodes/Twitch/resources/Prediction.js.map +1 -0
- package/dist/nodes/Twitch/resources/Raid.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Raid.js +161 -0
- package/dist/nodes/Twitch/resources/Raid.js.map +1 -0
- package/dist/nodes/Twitch/resources/Redemption.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Redemption.js +260 -0
- package/dist/nodes/Twitch/resources/Redemption.js.map +1 -0
- package/dist/nodes/Twitch/resources/Schedule.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Schedule.js +415 -0
- package/dist/nodes/Twitch/resources/Schedule.js.map +1 -0
- package/dist/nodes/Twitch/resources/Search.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Search.js +108 -0
- package/dist/nodes/Twitch/resources/Search.js.map +1 -0
- package/dist/nodes/Twitch/resources/Stream.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Stream.js +68 -0
- package/dist/nodes/Twitch/resources/Stream.js.map +1 -0
- package/dist/nodes/Twitch/resources/Subscription.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Subscription.js +190 -0
- package/dist/nodes/Twitch/resources/Subscription.js.map +1 -0
- package/dist/nodes/Twitch/resources/Team.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Team.js +168 -0
- package/dist/nodes/Twitch/resources/Team.js.map +1 -0
- package/dist/nodes/Twitch/resources/User.d.ts +3 -0
- package/dist/nodes/Twitch/resources/User.js +68 -0
- package/dist/nodes/Twitch/resources/User.js.map +1 -0
- package/dist/nodes/Twitch/resources/Video.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Video.js +323 -0
- package/dist/nodes/Twitch/resources/Video.js.map +1 -0
- package/dist/nodes/Twitch/resources/Whisper.d.ts +3 -0
- package/dist/nodes/Twitch/resources/Whisper.js +78 -0
- package/dist/nodes/Twitch/resources/Whisper.js.map +1 -0
- package/dist/nodes/Twitch/shared/userIdConverter.d.ts +2 -0
- package/dist/nodes/Twitch/shared/userIdConverter.js +32 -0
- package/dist/nodes/Twitch/shared/userIdConverter.js.map +1 -0
- package/dist/nodes/TwitchTrigger/TwitchTrigger.node.js +6 -4
- package/dist/nodes/TwitchTrigger/TwitchTrigger.node.js.map +1 -1
- package/dist/package.json +3 -26
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -26
- package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.d.ts +0 -4
- package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.js +0 -166
- package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.js.map +0 -1
- package/dist/nodes/TwitchBans/TwitchBans.node.js +0 -324
- package/dist/nodes/TwitchBans/TwitchBans.node.js.map +0 -1
- package/dist/nodes/TwitchBans/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchBans/twitch.svg +0 -1
- package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.d.ts +0 -4
- package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.js +0 -172
- package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.js.map +0 -1
- package/dist/nodes/TwitchBitsLeaderboard/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchBitsLeaderboard/twitch.svg +0 -1
- package/dist/nodes/TwitchChannels/TwitchChannels.node.d.ts +0 -4
- package/dist/nodes/TwitchChannels/TwitchChannels.node.js +0 -94
- package/dist/nodes/TwitchChannels/TwitchChannels.node.js.map +0 -1
- package/dist/nodes/TwitchChannels/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchChannels/twitch.svg +0 -1
- package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.d.ts +0 -4
- package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.js +0 -130
- package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.js.map +0 -1
- package/dist/nodes/TwitchChatMessages/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchChatMessages/twitch.svg +0 -1
- package/dist/nodes/TwitchChatters/TwitchChatters.node.d.ts +0 -4
- package/dist/nodes/TwitchChatters/TwitchChatters.node.js +0 -118
- package/dist/nodes/TwitchChatters/TwitchChatters.node.js.map +0 -1
- package/dist/nodes/TwitchChatters/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchChatters/twitch.svg +0 -1
- package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.d.ts +0 -4
- package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.js +0 -83
- package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.js.map +0 -1
- package/dist/nodes/TwitchCheermotes/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchCheermotes/twitch.svg +0 -1
- package/dist/nodes/TwitchClips/TwitchClips.node.d.ts +0 -4
- package/dist/nodes/TwitchClips/TwitchClips.node.js +0 -278
- package/dist/nodes/TwitchClips/TwitchClips.node.js.map +0 -1
- package/dist/nodes/TwitchClips/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchClips/twitch.svg +0 -1
- package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.d.ts +0 -4
- package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.js +0 -576
- package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.js.map +0 -1
- package/dist/nodes/TwitchCustomRewards/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchCustomRewards/twitch.svg +0 -1
- package/dist/nodes/TwitchEmotes/TwitchEmotes.node.d.ts +0 -4
- package/dist/nodes/TwitchEmotes/TwitchEmotes.node.js +0 -95
- package/dist/nodes/TwitchEmotes/TwitchEmotes.node.js.map +0 -1
- package/dist/nodes/TwitchEmotes/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchEmotes/twitch.svg +0 -1
- package/dist/nodes/TwitchGames/TwitchGames.node.d.ts +0 -4
- package/dist/nodes/TwitchGames/TwitchGames.node.js +0 -230
- package/dist/nodes/TwitchGames/TwitchGames.node.js.map +0 -1
- package/dist/nodes/TwitchGames/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchGames/twitch.svg +0 -1
- package/dist/nodes/TwitchModerators/TwitchModerators.node.d.ts +0 -4
- package/dist/nodes/TwitchModerators/TwitchModerators.node.js +0 -280
- package/dist/nodes/TwitchModerators/TwitchModerators.node.js.map +0 -1
- package/dist/nodes/TwitchModerators/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchModerators/twitch.svg +0 -1
- package/dist/nodes/TwitchPolls/TwitchPolls.node.d.ts +0 -4
- package/dist/nodes/TwitchPolls/TwitchPolls.node.js +0 -422
- package/dist/nodes/TwitchPolls/TwitchPolls.node.js.map +0 -1
- package/dist/nodes/TwitchPolls/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchPolls/twitch.svg +0 -1
- package/dist/nodes/TwitchPredictions/TwitchPredictions.node.d.ts +0 -4
- package/dist/nodes/TwitchPredictions/TwitchPredictions.node.js +0 -378
- package/dist/nodes/TwitchPredictions/TwitchPredictions.node.js.map +0 -1
- package/dist/nodes/TwitchPredictions/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchPredictions/twitch.svg +0 -1
- package/dist/nodes/TwitchRaids/TwitchRaids.node.d.ts +0 -4
- package/dist/nodes/TwitchRaids/TwitchRaids.node.js +0 -162
- package/dist/nodes/TwitchRaids/TwitchRaids.node.js.map +0 -1
- package/dist/nodes/TwitchRaids/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchRaids/twitch.svg +0 -1
- package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.d.ts +0 -4
- package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.js +0 -271
- package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.js.map +0 -1
- package/dist/nodes/TwitchRedemptions/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchRedemptions/twitch.svg +0 -1
- package/dist/nodes/TwitchSchedule/TwitchSchedule.node.d.ts +0 -4
- package/dist/nodes/TwitchSchedule/TwitchSchedule.node.js +0 -427
- package/dist/nodes/TwitchSchedule/TwitchSchedule.node.js.map +0 -1
- package/dist/nodes/TwitchSchedule/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchSchedule/twitch.svg +0 -1
- package/dist/nodes/TwitchSearch/TwitchSearch.node.d.ts +0 -4
- package/dist/nodes/TwitchSearch/TwitchSearch.node.js +0 -134
- package/dist/nodes/TwitchSearch/TwitchSearch.node.js.map +0 -1
- package/dist/nodes/TwitchSearch/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchSearch/twitch.svg +0 -1
- package/dist/nodes/TwitchStreams/TwitchStreams.node.d.ts +0 -4
- package/dist/nodes/TwitchStreams/TwitchStreams.node.js +0 -94
- package/dist/nodes/TwitchStreams/TwitchStreams.node.js.map +0 -1
- package/dist/nodes/TwitchStreams/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchStreams/twitch.svg +0 -1
- package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.d.ts +0 -4
- package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.js +0 -202
- package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.js.map +0 -1
- package/dist/nodes/TwitchSubscriptions/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchSubscriptions/twitch.svg +0 -1
- package/dist/nodes/TwitchTeams/TwitchTeams.node.d.ts +0 -4
- package/dist/nodes/TwitchTeams/TwitchTeams.node.js +0 -189
- package/dist/nodes/TwitchTeams/TwitchTeams.node.js.map +0 -1
- package/dist/nodes/TwitchTeams/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchTeams/twitch.svg +0 -1
- package/dist/nodes/TwitchUsers/TwitchUsers.node.d.ts +0 -4
- package/dist/nodes/TwitchUsers/TwitchUsers.node.js +0 -94
- package/dist/nodes/TwitchUsers/TwitchUsers.node.js.map +0 -1
- package/dist/nodes/TwitchUsers/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchUsers/twitch.svg +0 -1
- package/dist/nodes/TwitchVideos/TwitchVideos.node.d.ts +0 -4
- package/dist/nodes/TwitchVideos/TwitchVideos.node.js +0 -341
- package/dist/nodes/TwitchVideos/TwitchVideos.node.js.map +0 -1
- package/dist/nodes/TwitchVideos/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchVideos/twitch.svg +0 -1
- package/dist/nodes/TwitchWhispers/TwitchWhispers.node.d.ts +0 -4
- package/dist/nodes/TwitchWhispers/TwitchWhispers.node.js +0 -105
- package/dist/nodes/TwitchWhispers/TwitchWhispers.node.js.map +0 -1
- package/dist/nodes/TwitchWhispers/twitch.dark.svg +0 -1
- package/dist/nodes/TwitchWhispers/twitch.svg +0 -1
- /package/dist/nodes/{TwitchAnnouncements → Twitch}/twitch.dark.svg +0 -0
- /package/dist/nodes/{TwitchAnnouncements → Twitch}/twitch.svg +0 -0
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TwitchEmotes = void 0;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
class TwitchEmotes {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.description = {
|
|
8
|
-
displayName: 'Twitch Emotes',
|
|
9
|
-
name: 'twitchEmotes',
|
|
10
|
-
icon: { light: 'file:twitch.svg', dark: 'file:twitch.dark.svg' },
|
|
11
|
-
group: ['output'],
|
|
12
|
-
version: 1,
|
|
13
|
-
description: 'Get emotes for a Twitch channel',
|
|
14
|
-
defaults: {
|
|
15
|
-
name: 'Twitch Emotes',
|
|
16
|
-
},
|
|
17
|
-
usableAsTool: true,
|
|
18
|
-
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
19
|
-
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
20
|
-
credentials: [
|
|
21
|
-
{
|
|
22
|
-
name: 'twitchOAuth2Api',
|
|
23
|
-
required: true,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
requestDefaults: {
|
|
27
|
-
baseURL: 'https://api.twitch.tv/helix',
|
|
28
|
-
headers: {
|
|
29
|
-
Accept: 'application/json',
|
|
30
|
-
'Content-Type': 'application/json',
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
properties: [
|
|
34
|
-
{
|
|
35
|
-
displayName: 'Operation',
|
|
36
|
-
name: 'operation',
|
|
37
|
-
type: 'options',
|
|
38
|
-
noDataExpression: true,
|
|
39
|
-
options: [
|
|
40
|
-
{
|
|
41
|
-
name: 'Get Channel Emotes',
|
|
42
|
-
value: 'getChannelEmotes',
|
|
43
|
-
action: 'Get channel emotes',
|
|
44
|
-
description: 'Get emotes for a specific Twitch channel',
|
|
45
|
-
routing: {
|
|
46
|
-
request: {
|
|
47
|
-
method: 'GET',
|
|
48
|
-
url: '/chat/emotes',
|
|
49
|
-
},
|
|
50
|
-
send: {
|
|
51
|
-
preSend: [
|
|
52
|
-
async function (requestOptions) {
|
|
53
|
-
const broadcasterId = this.getNodeParameter('broadcasterId');
|
|
54
|
-
requestOptions.qs = {
|
|
55
|
-
broadcaster_id: broadcasterId,
|
|
56
|
-
};
|
|
57
|
-
return requestOptions;
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
output: {
|
|
62
|
-
postReceive: [
|
|
63
|
-
{
|
|
64
|
-
type: 'rootProperty',
|
|
65
|
-
properties: {
|
|
66
|
-
property: 'data',
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
default: 'getChannelEmotes',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
displayName: 'Broadcaster ID',
|
|
78
|
-
name: 'broadcasterId',
|
|
79
|
-
type: 'string',
|
|
80
|
-
displayOptions: {
|
|
81
|
-
show: {
|
|
82
|
-
operation: ['getChannelEmotes'],
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
default: '',
|
|
86
|
-
required: true,
|
|
87
|
-
placeholder: 'e.g. 123456789',
|
|
88
|
-
description: 'The broadcaster user ID whose emotes you want to get',
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
exports.TwitchEmotes = TwitchEmotes;
|
|
95
|
-
//# sourceMappingURL=TwitchEmotes.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TwitchEmotes.node.js","sourceRoot":"","sources":["../../../nodes/TwitchEmotes/TwitchEmotes.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAE9F,MAAa,YAAY;IAAzB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,sBAAsB,EAAE;YAChE,KAAK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BACD,OAAO,EAAE,kBAAkB;iBAC3B;gBACD;oBACC,WAAW,EAAE,gBAAgB;oBAC7B,IAAI,EAAE,eAAe;oBACrB,IAAI,EAAE,QAAQ;oBACd,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,kBAAkB,CAAC;yBAC/B;qBACD;oBACD,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,gBAAgB;oBAC7B,WAAW,EAAE,sDAAsD;iBACnE;aACD;SACD,CAAC;IACH,CAAC;CAAA;AAtFD,oCAsFC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Twitch</title><path fill="#FFFFFF" d="M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Twitch</title><path d="M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"/></svg>
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TwitchGames = void 0;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
class TwitchGames {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.description = {
|
|
8
|
-
displayName: 'Twitch Games',
|
|
9
|
-
name: 'twitchGames',
|
|
10
|
-
icon: { light: 'file:twitch.svg', dark: 'file:twitch.dark.svg' },
|
|
11
|
-
group: ['transform'],
|
|
12
|
-
version: 1,
|
|
13
|
-
subtitle: '={{$parameter["operation"]}}',
|
|
14
|
-
description: 'Interact with Twitch Games API',
|
|
15
|
-
defaults: {
|
|
16
|
-
name: 'Twitch Games',
|
|
17
|
-
},
|
|
18
|
-
usableAsTool: true,
|
|
19
|
-
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
20
|
-
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
21
|
-
credentials: [
|
|
22
|
-
{
|
|
23
|
-
name: 'twitchOAuth2Api',
|
|
24
|
-
required: true,
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
requestDefaults: {
|
|
28
|
-
baseURL: 'https://api.twitch.tv/helix',
|
|
29
|
-
headers: {
|
|
30
|
-
Accept: 'application/json',
|
|
31
|
-
'Content-Type': 'application/json',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
properties: [
|
|
35
|
-
{
|
|
36
|
-
displayName: 'Operation',
|
|
37
|
-
name: 'operation',
|
|
38
|
-
type: 'options',
|
|
39
|
-
noDataExpression: true,
|
|
40
|
-
options: [
|
|
41
|
-
{
|
|
42
|
-
name: 'Get Games',
|
|
43
|
-
value: 'getGames',
|
|
44
|
-
action: 'Get games by ID or name',
|
|
45
|
-
description: 'Get games by ID, name, or IGDB ID',
|
|
46
|
-
routing: {
|
|
47
|
-
request: {
|
|
48
|
-
method: 'GET',
|
|
49
|
-
url: '/games',
|
|
50
|
-
},
|
|
51
|
-
send: {
|
|
52
|
-
preSend: [
|
|
53
|
-
async function (requestOptions) {
|
|
54
|
-
const searchBy = this.getNodeParameter('searchBy', 0);
|
|
55
|
-
const searchValue = this.getNodeParameter('searchValue', 0);
|
|
56
|
-
if (!searchValue || searchValue.trim() === '') {
|
|
57
|
-
throw new n8n_workflow_1.ApplicationError('Search value is required');
|
|
58
|
-
}
|
|
59
|
-
const values = searchValue.split(',').map((v) => v.trim()).filter((v) => v !== '');
|
|
60
|
-
if (values.length === 0) {
|
|
61
|
-
throw new n8n_workflow_1.ApplicationError('At least one search value is required');
|
|
62
|
-
}
|
|
63
|
-
const qs = {};
|
|
64
|
-
if (searchBy === 'id') {
|
|
65
|
-
qs.id = values;
|
|
66
|
-
}
|
|
67
|
-
else if (searchBy === 'name') {
|
|
68
|
-
qs.name = values;
|
|
69
|
-
}
|
|
70
|
-
else if (searchBy === 'igdb_id') {
|
|
71
|
-
qs.igdb_id = values;
|
|
72
|
-
}
|
|
73
|
-
requestOptions.qs = qs;
|
|
74
|
-
return requestOptions;
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
output: {
|
|
79
|
-
postReceive: [
|
|
80
|
-
{
|
|
81
|
-
type: 'rootProperty',
|
|
82
|
-
properties: {
|
|
83
|
-
property: 'data',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: 'Get Top Games',
|
|
92
|
-
value: 'getTopGames',
|
|
93
|
-
action: 'Get top games by viewer count',
|
|
94
|
-
description: 'Get top games sorted by viewer count',
|
|
95
|
-
routing: {
|
|
96
|
-
request: {
|
|
97
|
-
method: 'GET',
|
|
98
|
-
url: '/games/top',
|
|
99
|
-
},
|
|
100
|
-
send: {
|
|
101
|
-
preSend: [
|
|
102
|
-
async function (requestOptions) {
|
|
103
|
-
const first = this.getNodeParameter('first', 0);
|
|
104
|
-
const after = this.getNodeParameter('after', 0);
|
|
105
|
-
const before = this.getNodeParameter('before', 0);
|
|
106
|
-
const qs = {};
|
|
107
|
-
if (first) {
|
|
108
|
-
if (first < 1 || first > 100) {
|
|
109
|
-
throw new n8n_workflow_1.ApplicationError('First parameter must be between 1 and 100');
|
|
110
|
-
}
|
|
111
|
-
qs.first = first;
|
|
112
|
-
}
|
|
113
|
-
if (after && after.trim() !== '') {
|
|
114
|
-
qs.after = after.trim();
|
|
115
|
-
}
|
|
116
|
-
if (before && before.trim() !== '') {
|
|
117
|
-
qs.before = before.trim();
|
|
118
|
-
}
|
|
119
|
-
requestOptions.qs = qs;
|
|
120
|
-
return requestOptions;
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
},
|
|
124
|
-
output: {
|
|
125
|
-
postReceive: [
|
|
126
|
-
{
|
|
127
|
-
type: 'rootProperty',
|
|
128
|
-
properties: {
|
|
129
|
-
property: 'data',
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
default: 'getGames',
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
displayName: 'Search By',
|
|
141
|
-
name: 'searchBy',
|
|
142
|
-
type: 'options',
|
|
143
|
-
displayOptions: {
|
|
144
|
-
show: {
|
|
145
|
-
operation: ['getGames'],
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
options: [
|
|
149
|
-
{
|
|
150
|
-
name: 'Game ID',
|
|
151
|
-
value: 'id',
|
|
152
|
-
description: 'Search by Twitch game ID',
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
name: 'Game Name',
|
|
156
|
-
value: 'name',
|
|
157
|
-
description: 'Search by game name',
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
name: 'IGDB ID',
|
|
161
|
-
value: 'igdb_id',
|
|
162
|
-
description: 'Search by IGDB (Internet Game Database) ID',
|
|
163
|
-
},
|
|
164
|
-
],
|
|
165
|
-
default: 'name',
|
|
166
|
-
description: 'The field to search games by',
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
displayName: 'Search Value',
|
|
170
|
-
name: 'searchValue',
|
|
171
|
-
type: 'string',
|
|
172
|
-
displayOptions: {
|
|
173
|
-
show: {
|
|
174
|
-
operation: ['getGames'],
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
default: '',
|
|
178
|
-
required: true,
|
|
179
|
-
placeholder: 'e.g. Fortnite or 33214,493057',
|
|
180
|
-
description: 'The value to search for. Supports multiple values separated by commas (max 100).',
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
displayName: 'First',
|
|
184
|
-
name: 'first',
|
|
185
|
-
type: 'number',
|
|
186
|
-
displayOptions: {
|
|
187
|
-
show: {
|
|
188
|
-
operation: ['getTopGames'],
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
default: 20,
|
|
192
|
-
typeOptions: {
|
|
193
|
-
minValue: 1,
|
|
194
|
-
maxValue: 100,
|
|
195
|
-
},
|
|
196
|
-
placeholder: 'e.g. 20',
|
|
197
|
-
description: 'Maximum number of games to return (1-100). Default is 20.',
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
displayName: 'After',
|
|
201
|
-
name: 'after',
|
|
202
|
-
type: 'string',
|
|
203
|
-
displayOptions: {
|
|
204
|
-
show: {
|
|
205
|
-
operation: ['getTopGames'],
|
|
206
|
-
},
|
|
207
|
-
},
|
|
208
|
-
default: '',
|
|
209
|
-
placeholder: 'e.g. eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6MjB9fQ',
|
|
210
|
-
description: 'Cursor for forward pagination. Get this from the pagination object in the previous response.',
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
displayName: 'Before',
|
|
214
|
-
name: 'before',
|
|
215
|
-
type: 'string',
|
|
216
|
-
displayOptions: {
|
|
217
|
-
show: {
|
|
218
|
-
operation: ['getTopGames'],
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
default: '',
|
|
222
|
-
placeholder: 'e.g. eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6MjB9fQ',
|
|
223
|
-
description: 'Cursor for backward pagination. Get this from the pagination object in the previous response.',
|
|
224
|
-
},
|
|
225
|
-
],
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
exports.TwitchGames = TwitchGames;
|
|
230
|
-
//# sourceMappingURL=TwitchGames.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TwitchGames.node.js","sourceRoot":"","sources":["../../../nodes/TwitchGames/TwitchGames.node.ts"],"names":[],"mappings":";;;AAAA,+CAAgH;AAEhH,MAAa,WAAW;IAAxB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,sBAAsB,EAAE;YAChE,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE;gBACT,IAAI,EAAE,cAAc;aACpB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,iBAAiB;oBACvB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,6BAA6B;gBACtC,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,WAAW;4BACjB,KAAK,EAAE,UAAU;4BACjB,MAAM,EAAE,yBAAyB;4BACjC,WAAW,EAAE,mCAAmC;4BAChD,OAAO,EAAE;gCACR,OAAO,EAAE;oCACR,MAAM,EAAE,KAAK;oCACb,GAAG,EAAE,QAAQ;iCACb;gCACD,IAAI,EAAE;oCACL,OAAO,EAAE;wCACR,KAAK,WA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tB,WAAW,EAAE,2DAA2D;iBACxE;gBACD;oBACC,WAAW,EAAE,OAAO;oBACpB,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,QAAQ;oBACd,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,aAAa,CAAC;yBAC1B;qBACD;oBACD,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,6CAA6C;oBAC1D,WAAW,EAAE,8FAA8F;iBAC3G;gBACD;oBACC,WAAW,EAAE,QAAQ;oBACrB,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,QAAQ;oBACd,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,aAAa,CAAC;yBAC1B;qBACD;oBACD,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,6CAA6C;oBAC1D,WAAW,EAAE,+FAA+F;iBAC5G;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA7OD,kCA6OC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Twitch</title><path fill="#FFFFFF" d="M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Twitch</title><path d="M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"/></svg>
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TwitchModerators = void 0;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
class TwitchModerators {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.description = {
|
|
8
|
-
displayName: 'Twitch Moderators',
|
|
9
|
-
name: 'twitchModerators',
|
|
10
|
-
icon: { light: 'file:twitch.svg', dark: 'file:twitch.dark.svg' },
|
|
11
|
-
group: ['output'],
|
|
12
|
-
version: 1,
|
|
13
|
-
subtitle: '={{$parameter["operation"]}}',
|
|
14
|
-
description: 'Manage moderators in a Twitch channel',
|
|
15
|
-
defaults: {
|
|
16
|
-
name: 'Twitch Moderators',
|
|
17
|
-
},
|
|
18
|
-
usableAsTool: true,
|
|
19
|
-
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
20
|
-
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
21
|
-
credentials: [
|
|
22
|
-
{
|
|
23
|
-
name: 'twitchOAuth2Api',
|
|
24
|
-
required: true,
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
requestDefaults: {
|
|
28
|
-
baseURL: 'https://api.twitch.tv/helix',
|
|
29
|
-
headers: {
|
|
30
|
-
Accept: 'application/json',
|
|
31
|
-
'Content-Type': 'application/json',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
properties: [
|
|
35
|
-
{
|
|
36
|
-
displayName: 'Operation',
|
|
37
|
-
name: 'operation',
|
|
38
|
-
type: 'options',
|
|
39
|
-
noDataExpression: true,
|
|
40
|
-
options: [
|
|
41
|
-
{
|
|
42
|
-
name: 'Get',
|
|
43
|
-
value: 'get',
|
|
44
|
-
action: 'Get moderators in a channel',
|
|
45
|
-
description: 'Get all moderators in a broadcaster\'s channel',
|
|
46
|
-
routing: {
|
|
47
|
-
request: {
|
|
48
|
-
method: 'GET',
|
|
49
|
-
url: '/moderation/moderators',
|
|
50
|
-
},
|
|
51
|
-
send: {
|
|
52
|
-
preSend: [
|
|
53
|
-
async function (requestOptions) {
|
|
54
|
-
const broadcasterId = this.getNodeParameter('broadcasterId', 0);
|
|
55
|
-
const userIds = this.getNodeParameter('userIds', 0);
|
|
56
|
-
const first = this.getNodeParameter('first', 0);
|
|
57
|
-
if (!broadcasterId || broadcasterId.trim() === '') {
|
|
58
|
-
throw new n8n_workflow_1.ApplicationError('Broadcaster ID is required');
|
|
59
|
-
}
|
|
60
|
-
if (first < 1 || first > 100) {
|
|
61
|
-
throw new n8n_workflow_1.ApplicationError('First parameter must be between 1 and 100');
|
|
62
|
-
}
|
|
63
|
-
const qs = {
|
|
64
|
-
broadcaster_id: broadcasterId.trim(),
|
|
65
|
-
first,
|
|
66
|
-
};
|
|
67
|
-
if (userIds && userIds.trim() !== '') {
|
|
68
|
-
const userIdList = userIds.split(',').map((v) => v.trim()).filter((v) => v !== '');
|
|
69
|
-
if (userIdList.length > 0) {
|
|
70
|
-
qs.user_id = userIdList;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
requestOptions.qs = qs;
|
|
74
|
-
return requestOptions;
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
output: {
|
|
79
|
-
postReceive: [
|
|
80
|
-
{
|
|
81
|
-
type: 'rootProperty',
|
|
82
|
-
properties: {
|
|
83
|
-
property: 'data',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: 'Add',
|
|
92
|
-
value: 'add',
|
|
93
|
-
action: 'Add a moderator to a channel',
|
|
94
|
-
description: 'Add a moderator to the broadcaster\'s chat room',
|
|
95
|
-
routing: {
|
|
96
|
-
request: {
|
|
97
|
-
method: 'POST',
|
|
98
|
-
url: '/moderation/moderators',
|
|
99
|
-
},
|
|
100
|
-
send: {
|
|
101
|
-
preSend: [
|
|
102
|
-
async function (requestOptions) {
|
|
103
|
-
const broadcasterId = this.getNodeParameter('broadcasterId', 0);
|
|
104
|
-
const userId = this.getNodeParameter('userId', 0);
|
|
105
|
-
if (!broadcasterId || broadcasterId.trim() === '') {
|
|
106
|
-
throw new n8n_workflow_1.ApplicationError('Broadcaster ID is required');
|
|
107
|
-
}
|
|
108
|
-
if (!userId || userId.trim() === '') {
|
|
109
|
-
throw new n8n_workflow_1.ApplicationError('User ID is required');
|
|
110
|
-
}
|
|
111
|
-
requestOptions.qs = {
|
|
112
|
-
broadcaster_id: broadcasterId.trim(),
|
|
113
|
-
user_id: userId.trim(),
|
|
114
|
-
};
|
|
115
|
-
return requestOptions;
|
|
116
|
-
},
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
output: {
|
|
120
|
-
postReceive: [
|
|
121
|
-
{
|
|
122
|
-
type: 'set',
|
|
123
|
-
properties: {
|
|
124
|
-
value: '={{ { "success": true } }}',
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
],
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
name: 'Remove',
|
|
133
|
-
value: 'remove',
|
|
134
|
-
action: 'Remove a moderator from a channel',
|
|
135
|
-
description: 'Remove a moderator from the broadcaster\'s chat room',
|
|
136
|
-
routing: {
|
|
137
|
-
request: {
|
|
138
|
-
method: 'DELETE',
|
|
139
|
-
url: '/moderation/moderators',
|
|
140
|
-
},
|
|
141
|
-
send: {
|
|
142
|
-
preSend: [
|
|
143
|
-
async function (requestOptions) {
|
|
144
|
-
const broadcasterId = this.getNodeParameter('broadcasterId', 0);
|
|
145
|
-
const userId = this.getNodeParameter('userId', 0);
|
|
146
|
-
if (!broadcasterId || broadcasterId.trim() === '') {
|
|
147
|
-
throw new n8n_workflow_1.ApplicationError('Broadcaster ID is required');
|
|
148
|
-
}
|
|
149
|
-
if (!userId || userId.trim() === '') {
|
|
150
|
-
throw new n8n_workflow_1.ApplicationError('User ID is required');
|
|
151
|
-
}
|
|
152
|
-
requestOptions.qs = {
|
|
153
|
-
broadcaster_id: broadcasterId.trim(),
|
|
154
|
-
user_id: userId.trim(),
|
|
155
|
-
};
|
|
156
|
-
return requestOptions;
|
|
157
|
-
},
|
|
158
|
-
],
|
|
159
|
-
},
|
|
160
|
-
output: {
|
|
161
|
-
postReceive: [
|
|
162
|
-
{
|
|
163
|
-
type: 'set',
|
|
164
|
-
properties: {
|
|
165
|
-
value: '={{ { "success": true } }}',
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
],
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
],
|
|
173
|
-
default: 'get',
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
displayName: 'Broadcaster ID',
|
|
177
|
-
name: 'broadcasterId',
|
|
178
|
-
type: 'string',
|
|
179
|
-
displayOptions: {
|
|
180
|
-
show: {
|
|
181
|
-
operation: ['get'],
|
|
182
|
-
},
|
|
183
|
-
},
|
|
184
|
-
default: '',
|
|
185
|
-
required: true,
|
|
186
|
-
placeholder: 'e.g. 141981764',
|
|
187
|
-
description: 'The ID of the broadcaster whose list of moderators you want to get',
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
displayName: 'User IDs',
|
|
191
|
-
name: 'userIds',
|
|
192
|
-
type: 'string',
|
|
193
|
-
displayOptions: {
|
|
194
|
-
show: {
|
|
195
|
-
operation: ['get'],
|
|
196
|
-
},
|
|
197
|
-
},
|
|
198
|
-
default: '',
|
|
199
|
-
placeholder: 'e.g. 123456,789012',
|
|
200
|
-
description: 'Filters the list for specific moderators. Comma-separated list of user IDs. Maximum 100.',
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
displayName: 'First',
|
|
204
|
-
name: 'first',
|
|
205
|
-
type: 'number',
|
|
206
|
-
displayOptions: {
|
|
207
|
-
show: {
|
|
208
|
-
operation: ['get'],
|
|
209
|
-
},
|
|
210
|
-
},
|
|
211
|
-
default: 20,
|
|
212
|
-
typeOptions: {
|
|
213
|
-
minValue: 1,
|
|
214
|
-
maxValue: 100,
|
|
215
|
-
},
|
|
216
|
-
placeholder: 'e.g. 20',
|
|
217
|
-
description: 'Maximum number of moderators to return (1-100). Default is 20.',
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
displayName: 'Broadcaster ID',
|
|
221
|
-
name: 'broadcasterId',
|
|
222
|
-
type: 'string',
|
|
223
|
-
displayOptions: {
|
|
224
|
-
show: {
|
|
225
|
-
operation: ['add'],
|
|
226
|
-
},
|
|
227
|
-
},
|
|
228
|
-
default: '',
|
|
229
|
-
required: true,
|
|
230
|
-
placeholder: 'e.g. 141981764',
|
|
231
|
-
description: 'The ID of the broadcaster that owns the chat room',
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
displayName: 'User ID',
|
|
235
|
-
name: 'userId',
|
|
236
|
-
type: 'string',
|
|
237
|
-
displayOptions: {
|
|
238
|
-
show: {
|
|
239
|
-
operation: ['add'],
|
|
240
|
-
},
|
|
241
|
-
},
|
|
242
|
-
default: '',
|
|
243
|
-
required: true,
|
|
244
|
-
placeholder: 'e.g. 123456',
|
|
245
|
-
description: 'The ID of the user to add as a moderator',
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
displayName: 'Broadcaster ID',
|
|
249
|
-
name: 'broadcasterId',
|
|
250
|
-
type: 'string',
|
|
251
|
-
displayOptions: {
|
|
252
|
-
show: {
|
|
253
|
-
operation: ['remove'],
|
|
254
|
-
},
|
|
255
|
-
},
|
|
256
|
-
default: '',
|
|
257
|
-
required: true,
|
|
258
|
-
placeholder: 'e.g. 141981764',
|
|
259
|
-
description: 'The ID of the broadcaster that owns the chat room',
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
displayName: 'User ID',
|
|
263
|
-
name: 'userId',
|
|
264
|
-
type: 'string',
|
|
265
|
-
displayOptions: {
|
|
266
|
-
show: {
|
|
267
|
-
operation: ['remove'],
|
|
268
|
-
},
|
|
269
|
-
},
|
|
270
|
-
default: '',
|
|
271
|
-
required: true,
|
|
272
|
-
placeholder: 'e.g. 123456',
|
|
273
|
-
description: 'The ID of the user to remove as a moderator',
|
|
274
|
-
},
|
|
275
|
-
],
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
exports.TwitchModerators = TwitchModerators;
|
|
280
|
-
//# sourceMappingURL=TwitchModerators.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TwitchModerators.node.js","sourceRoot":"","sources":["../../../nodes/TwitchModerators/TwitchModerators.node.ts"],"names":[],"mappings":";;;AAAA,+CAAgH;AAEhH,MAAa,gBAAgB;IAA7B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,sBAAsB,EAAE;YAChE,KAAK,EAAE,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE;gBACT,IAAI,EAAE,mBAAmB;aACzB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,iBAAiB;oBACvB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,6BAA6B;gBACtC,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,KAAK;4BACX,KAAK,EAAE,KAAK;4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