@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,172 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TwitchBitsLeaderboard = void 0;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
class TwitchBitsLeaderboard {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.description = {
|
|
8
|
-
displayName: 'Twitch Bits Leaderboard',
|
|
9
|
-
name: 'twitchBitsLeaderboard',
|
|
10
|
-
icon: { light: 'file:twitch.svg', dark: 'file:twitch.dark.svg' },
|
|
11
|
-
group: ['output'],
|
|
12
|
-
version: 1,
|
|
13
|
-
description: 'Get the Bits leaderboard for a Twitch channel',
|
|
14
|
-
defaults: {
|
|
15
|
-
name: 'Twitch Bits Leaderboard',
|
|
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',
|
|
42
|
-
value: 'get',
|
|
43
|
-
action: 'Get bits leaderboard',
|
|
44
|
-
description: 'Get the Bits leaderboard for a Twitch channel',
|
|
45
|
-
routing: {
|
|
46
|
-
request: {
|
|
47
|
-
method: 'GET',
|
|
48
|
-
url: '/bits/leaderboard',
|
|
49
|
-
},
|
|
50
|
-
send: {
|
|
51
|
-
preSend: [
|
|
52
|
-
async function (requestOptions) {
|
|
53
|
-
const count = this.getNodeParameter('count', 0);
|
|
54
|
-
const period = this.getNodeParameter('period', 0);
|
|
55
|
-
const startedAt = this.getNodeParameter('startedAt', 0);
|
|
56
|
-
const userId = this.getNodeParameter('userId', 0);
|
|
57
|
-
const qs = {};
|
|
58
|
-
if (count) {
|
|
59
|
-
qs.count = count;
|
|
60
|
-
}
|
|
61
|
-
if (period) {
|
|
62
|
-
qs.period = period;
|
|
63
|
-
}
|
|
64
|
-
if (startedAt && startedAt.trim() !== '') {
|
|
65
|
-
qs.started_at = startedAt.trim();
|
|
66
|
-
}
|
|
67
|
-
if (userId && userId.trim() !== '') {
|
|
68
|
-
qs.user_id = userId.trim();
|
|
69
|
-
}
|
|
70
|
-
requestOptions.qs = qs;
|
|
71
|
-
return requestOptions;
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
},
|
|
75
|
-
output: {
|
|
76
|
-
postReceive: [
|
|
77
|
-
{
|
|
78
|
-
type: 'rootProperty',
|
|
79
|
-
properties: {
|
|
80
|
-
property: 'data',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
default: 'get',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
displayName: 'Count',
|
|
92
|
-
name: 'count',
|
|
93
|
-
type: 'number',
|
|
94
|
-
default: 10,
|
|
95
|
-
typeOptions: {
|
|
96
|
-
minValue: 1,
|
|
97
|
-
maxValue: 100,
|
|
98
|
-
},
|
|
99
|
-
placeholder: 'e.g. 10',
|
|
100
|
-
description: 'Number of results to return (1-100)',
|
|
101
|
-
displayOptions: {
|
|
102
|
-
show: {
|
|
103
|
-
operation: ['get'],
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
displayName: 'Period',
|
|
109
|
-
name: 'period',
|
|
110
|
-
type: 'options',
|
|
111
|
-
options: [
|
|
112
|
-
{
|
|
113
|
-
name: 'All',
|
|
114
|
-
value: 'all',
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: 'Day',
|
|
118
|
-
value: 'day',
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
name: 'Month',
|
|
122
|
-
value: 'month',
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
name: 'Week',
|
|
126
|
-
value: 'week',
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
name: 'Year',
|
|
130
|
-
value: 'year',
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
default: 'all',
|
|
134
|
-
description: 'Time period for the leaderboard',
|
|
135
|
-
displayOptions: {
|
|
136
|
-
show: {
|
|
137
|
-
operation: ['get'],
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
displayName: 'Started At',
|
|
143
|
-
name: 'startedAt',
|
|
144
|
-
type: 'dateTime',
|
|
145
|
-
default: '',
|
|
146
|
-
placeholder: 'e.g. 2024-01-01T00:00:00Z',
|
|
147
|
-
description: 'Timestamp for the period start (RFC3339 format)',
|
|
148
|
-
displayOptions: {
|
|
149
|
-
show: {
|
|
150
|
-
operation: ['get'],
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
displayName: 'User ID',
|
|
156
|
-
name: 'userId',
|
|
157
|
-
type: 'string',
|
|
158
|
-
default: '',
|
|
159
|
-
placeholder: 'e.g. 123456789',
|
|
160
|
-
description: 'Filter results to a specific user ID',
|
|
161
|
-
displayOptions: {
|
|
162
|
-
show: {
|
|
163
|
-
operation: ['get'],
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
|
-
},
|
|
167
|
-
],
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
exports.TwitchBitsLeaderboard = TwitchBitsLeaderboard;
|
|
172
|
-
//# sourceMappingURL=TwitchBitsLeaderboard.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TwitchBitsLeaderboard.node.js","sourceRoot":"","sources":["../../../nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.ts"],"names":[],"mappings":";;;AAAA,+CAAgH;AAEhH,MAAa,qBAAqB;IAAlC;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,uBAAuB;YAC7B,IAAI,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,sBAAsB,EAAE;YAChE,KAAK,EAAE,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,+CAA+C;YAC5D,QAAQ,EAAE;gBACT,IAAI,EAAE,yBAAyB;aAC/B;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;4BACZ,MAAM,EAAE,sBAAsB;4BAC9B,WAAW,EAAE,+CAA+C;4BAC5D,OAAO,EAAE;gCACR,OAAO,EAAE;oCACR,MAAM,EAAE,KAAK;oCACb,GAAG,EAAE,mBAAmB;iCACxB;gCAC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,sCAAsC;oBACnD,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,KAAK,CAAC;yBAClB;qBACD;iBACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AAtKD,sDAsKC"}
|
|
@@ -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,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TwitchChannels = void 0;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
class TwitchChannels {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.description = {
|
|
8
|
-
displayName: 'Twitch Channels',
|
|
9
|
-
name: 'twitchChannels',
|
|
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 Channels API',
|
|
15
|
-
defaults: {
|
|
16
|
-
name: 'Twitch Channels',
|
|
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 Information',
|
|
43
|
-
value: 'getInfo',
|
|
44
|
-
action: 'Get channel information',
|
|
45
|
-
description: 'Get information about a channel',
|
|
46
|
-
routing: {
|
|
47
|
-
request: {
|
|
48
|
-
method: 'GET',
|
|
49
|
-
url: '/channels',
|
|
50
|
-
qs: {
|
|
51
|
-
broadcaster_id: '={{$parameter.broadcasterId}}',
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
output: {
|
|
55
|
-
postReceive: [
|
|
56
|
-
{
|
|
57
|
-
type: 'rootProperty',
|
|
58
|
-
properties: {
|
|
59
|
-
property: 'data',
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
type: 'setKeyValue',
|
|
64
|
-
properties: {
|
|
65
|
-
index: 0,
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
default: 'getInfo',
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
displayName: 'Broadcaster ID',
|
|
77
|
-
name: 'broadcasterId',
|
|
78
|
-
type: 'string',
|
|
79
|
-
displayOptions: {
|
|
80
|
-
show: {
|
|
81
|
-
operation: ['getInfo'],
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
default: '',
|
|
85
|
-
required: true,
|
|
86
|
-
placeholder: 'e.g. 123456789',
|
|
87
|
-
description: 'The broadcaster user ID',
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
exports.TwitchChannels = TwitchChannels;
|
|
94
|
-
//# sourceMappingURL=TwitchChannels.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TwitchChannels.node.js","sourceRoot":"","sources":["../../../nodes/TwitchChannels/TwitchChannels.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAE9F,MAAa,cAAc;IAA3B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,gBAAgB;YACtB,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,mCAAmC;YAChD,QAAQ,EAAE;gBACT,IAAI,EAAE,iBAAiB;aACvB;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,iBAAiB;4BACvB,KAAK,EAAE,SAAS;4BAChB,MAAM,EAAE,yBAAyB;4BACjC,WAAW,EAAE,iCAAiC;4BAC9C,OAAO,EAAE;gCACR,OAAO,EAAE;oCACR,MAAM,EAAE,KAAK;oCACb,GAAG,EAAE,WAAW;oCAChB,EAAE,EAAE;wCACH,cAAc,EAAE,+BAA+B;qCAC/C;iCACD;gCACD,MAAM,EAAE;oCACP,WAAW,EAAE;wCACZ;4CACC,IAAI,EAAE,cAAc;4CACpB,UAAU,EAAE;gDACX,QAAQ,EAAE,MAAM;6CAChB;yCACD;wCACD;4CACC,IAAI,EAAE,aAAa;4CACnB,UAAU,EAAE;gDACX,KAAK,EAAE,CAAC;6CACR;yCACD;qCACD;iCACD;6BACD;yBACD;qBACD;oBACD,OAAO,EAAE,SAAS;iBAClB;gBACD;oBACC,WAAW,EAAE,gBAAgB;oBAC7B,IAAI,EAAE,eAAe;oBACrB,IAAI,EAAE,QAAQ;oBACd,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,SAAS,CAAC;yBACtB;qBACD;oBACD,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,gBAAgB;oBAC7B,WAAW,EAAE,yBAAyB;iBACtC;aACD;SACD,CAAC;IACH,CAAC;CAAA;AArFD,wCAqFC"}
|
|
@@ -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,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TwitchChatMessages = void 0;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
class TwitchChatMessages {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.description = {
|
|
8
|
-
displayName: 'Twitch Chat Messages',
|
|
9
|
-
name: 'twitchChatMessages',
|
|
10
|
-
icon: { light: 'file:twitch.svg', dark: 'file:twitch.dark.svg' },
|
|
11
|
-
group: ['output'],
|
|
12
|
-
version: 1,
|
|
13
|
-
description: 'Send messages in a Twitch chat',
|
|
14
|
-
defaults: {
|
|
15
|
-
name: 'Twitch Chat Messages',
|
|
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: 'Send Message',
|
|
42
|
-
value: 'sendMessage',
|
|
43
|
-
action: 'Send a message',
|
|
44
|
-
description: 'Send a message to a Twitch chat',
|
|
45
|
-
routing: {
|
|
46
|
-
request: {
|
|
47
|
-
method: 'POST',
|
|
48
|
-
url: '/chat/messages',
|
|
49
|
-
},
|
|
50
|
-
send: {
|
|
51
|
-
preSend: [
|
|
52
|
-
async function (requestOptions) {
|
|
53
|
-
const broadcasterId = this.getNodeParameter('broadcasterId');
|
|
54
|
-
const senderId = this.getNodeParameter('senderId');
|
|
55
|
-
const message = this.getNodeParameter('message');
|
|
56
|
-
requestOptions.body = {
|
|
57
|
-
broadcaster_id: broadcasterId,
|
|
58
|
-
sender_id: senderId,
|
|
59
|
-
message: message,
|
|
60
|
-
};
|
|
61
|
-
return requestOptions;
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
},
|
|
65
|
-
output: {
|
|
66
|
-
postReceive: [
|
|
67
|
-
{
|
|
68
|
-
type: 'rootProperty',
|
|
69
|
-
properties: {
|
|
70
|
-
property: 'data',
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
],
|
|
78
|
-
default: 'sendMessage',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
displayName: 'Broadcaster ID',
|
|
82
|
-
name: 'broadcasterId',
|
|
83
|
-
type: 'string',
|
|
84
|
-
displayOptions: {
|
|
85
|
-
show: {
|
|
86
|
-
operation: ['sendMessage'],
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
default: '',
|
|
90
|
-
required: true,
|
|
91
|
-
placeholder: 'e.g. 123456789',
|
|
92
|
-
description: 'The ID of the broadcaster whose chat room you want to send a message to',
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
displayName: 'Sender ID',
|
|
96
|
-
name: 'senderId',
|
|
97
|
-
type: 'string',
|
|
98
|
-
displayOptions: {
|
|
99
|
-
show: {
|
|
100
|
-
operation: ['sendMessage'],
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
default: '',
|
|
104
|
-
required: true,
|
|
105
|
-
placeholder: 'e.g. 987654321',
|
|
106
|
-
description: 'The ID of the user sending the message. This ID must match the user ID in the user access token.',
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
displayName: 'Message',
|
|
110
|
-
name: 'message',
|
|
111
|
-
type: 'string',
|
|
112
|
-
displayOptions: {
|
|
113
|
-
show: {
|
|
114
|
-
operation: ['sendMessage'],
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
default: '',
|
|
118
|
-
required: true,
|
|
119
|
-
placeholder: 'e.g. Hello, Twitch!',
|
|
120
|
-
description: 'The message to send. Maximum length: 500 characters.',
|
|
121
|
-
typeOptions: {
|
|
122
|
-
maxValue: 500,
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
exports.TwitchChatMessages = TwitchChatMessages;
|
|
130
|
-
//# sourceMappingURL=TwitchChatMessages.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TwitchChatMessages.node.js","sourceRoot":"","sources":["../../../nodes/TwitchChatMessages/TwitchChatMessages.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAE9F,MAAa,kBAAkB;IAA/B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,oBAAoB;YAC1B,IAAI,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,sBAAsB,EAAE;YAChE,KAAK,EAAE,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE;gBACT,IAAI,EAAE,sBAAsB;aAC5B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ACX,QAAQ,EAAE,MAAM;6CAChB;yCACD;qCACD;iCACD;6BACD;yBACD;qBACD;oBACD,OAAO,EAAE,aAAa;iBACtB;gBACD;oBACC,WAAW,EAAE,gBAAgB;oBAC7B,IAAI,EAAE,eAAe;oBACrB,IAAI,EAAE,QAAQ;oBACd,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,aAAa,CAAC;yBAC1B;qBACD;oBACD,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,gBAAgB;oBAC7B,WAAW,EAAE,yEAAyE;iBACtF;gBACD;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,QAAQ;oBACd,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,aAAa,CAAC;yBAC1B;qBACD;oBACD,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,gBAAgB;oBAC7B,WAAW,EAAE,kGAAkG;iBAC/G;gBACD;oBACC,WAAW,EAAE,SAAS;oBACtB,IAAI,EAAE,SAAS;oBACf,IAAI,EAAE,QAAQ;oBACd,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,aAAa,CAAC;yBAC1B;qBACD;oBACD,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,qBAAqB;oBAClC,WAAW,EAAE,sDAAsD;oBACnE,WAAW,EAAE;wBACZ,QAAQ,EAAE,GAAG;qBACb;iBACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA3HD,gDA2HC"}
|
|
@@ -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,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TwitchChatters = void 0;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
class TwitchChatters {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.description = {
|
|
8
|
-
displayName: 'Twitch Chatters',
|
|
9
|
-
name: 'twitchChatters',
|
|
10
|
-
icon: { light: 'file:twitch.svg', dark: 'file:twitch.dark.svg' },
|
|
11
|
-
group: ['output'],
|
|
12
|
-
version: 1,
|
|
13
|
-
subtitle: '={{$parameter["operation"]}}',
|
|
14
|
-
description: 'Get chatters in a Twitch channel',
|
|
15
|
-
defaults: {
|
|
16
|
-
name: 'Twitch Chatters',
|
|
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 chatters',
|
|
45
|
-
description: 'Get the list of users that are connected to the broadcaster\'s chat session',
|
|
46
|
-
routing: {
|
|
47
|
-
request: {
|
|
48
|
-
method: 'GET',
|
|
49
|
-
url: '/chat/chatters',
|
|
50
|
-
qs: {
|
|
51
|
-
broadcaster_id: '={{$parameter.broadcasterId}}',
|
|
52
|
-
moderator_id: '={{$parameter.moderatorId}}',
|
|
53
|
-
first: '={{$parameter.first}}',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
output: {
|
|
57
|
-
postReceive: [
|
|
58
|
-
{
|
|
59
|
-
type: 'rootProperty',
|
|
60
|
-
properties: {
|
|
61
|
-
property: 'data',
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
default: 'get',
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
displayName: 'Broadcaster ID',
|
|
73
|
-
name: 'broadcasterId',
|
|
74
|
-
type: 'string',
|
|
75
|
-
displayOptions: {
|
|
76
|
-
show: {
|
|
77
|
-
operation: ['get'],
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
default: '',
|
|
81
|
-
required: true,
|
|
82
|
-
description: 'The ID of the broadcaster whose list of chatters you want to get',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
displayName: 'Moderator ID',
|
|
86
|
-
name: 'moderatorId',
|
|
87
|
-
type: 'string',
|
|
88
|
-
displayOptions: {
|
|
89
|
-
show: {
|
|
90
|
-
operation: ['get'],
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
default: '',
|
|
94
|
-
required: true,
|
|
95
|
-
description: 'The ID of the moderator requesting the list of chatters',
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
displayName: 'First',
|
|
99
|
-
name: 'first',
|
|
100
|
-
type: 'number',
|
|
101
|
-
displayOptions: {
|
|
102
|
-
show: {
|
|
103
|
-
operation: ['get'],
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
default: 100,
|
|
107
|
-
description: 'The maximum number of items to return (1-1000)',
|
|
108
|
-
typeOptions: {
|
|
109
|
-
minValue: 1,
|
|
110
|
-
maxValue: 1000,
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
exports.TwitchChatters = TwitchChatters;
|
|
118
|
-
//# sourceMappingURL=TwitchChatters.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TwitchChatters.node.js","sourceRoot":"","sources":["../../../nodes/TwitchChatters/TwitchChatters.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAE9F,MAAa,cAAc;IAA3B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,gBAAgB;YACtB,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,kCAAkC;YAC/C,QAAQ,EAAE;gBACT,IAAI,EAAE,iBAAiB;aACvB;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,EAA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E,EAAE;oBACX,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,yDAAyD;iBACtE;gBACD;oBACC,WAAW,EAAE,OAAO;oBACpB,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,QAAQ;oBACd,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,KAAK,CAAC;yBAClB;qBACD;oBACD,OAAO,EAAE,GAAG;oBACZ,WAAW,EAAE,gDAAgD;oBAC7D,WAAW,EAAE;wBACZ,QAAQ,EAAE,CAAC;wBACX,QAAQ,EAAE,IAAI;qBACd;iBACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA7GD,wCA6GC"}
|
|
@@ -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>
|