@yuniruyuni/n8n-nodes-twitch 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +19 -0
- package/README.ja.md +243 -0
- package/README.md +243 -0
- package/dist/credentials/TwitchApi.credentials.d.ts +10 -0
- package/dist/credentials/TwitchApi.credentials.js +47 -0
- package/dist/credentials/TwitchApi.credentials.js.map +1 -0
- package/dist/credentials/TwitchOAuth2Api.credentials.d.ts +10 -0
- package/dist/credentials/TwitchOAuth2Api.credentials.js +434 -0
- package/dist/credentials/TwitchOAuth2Api.credentials.js.map +1 -0
- package/dist/icons/twitch.dark.svg +1 -0
- package/dist/icons/twitch.svg +1 -0
- package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.d.ts +4 -0
- package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.js +196 -0
- package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.js.map +1 -0
- package/dist/nodes/TwitchAnnouncements/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchAnnouncements/twitch.svg +1 -0
- package/dist/nodes/TwitchBans/TwitchBans.node.d.ts +4 -0
- package/dist/nodes/TwitchBans/TwitchBans.node.js +354 -0
- package/dist/nodes/TwitchBans/TwitchBans.node.js.map +1 -0
- package/dist/nodes/TwitchBans/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchBans/twitch.svg +1 -0
- package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.d.ts +4 -0
- package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.js +202 -0
- package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.js.map +1 -0
- package/dist/nodes/TwitchBitsLeaderboard/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchBitsLeaderboard/twitch.svg +1 -0
- package/dist/nodes/TwitchChannels/TwitchChannels.node.d.ts +4 -0
- package/dist/nodes/TwitchChannels/TwitchChannels.node.js +124 -0
- package/dist/nodes/TwitchChannels/TwitchChannels.node.js.map +1 -0
- package/dist/nodes/TwitchChannels/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchChannels/twitch.svg +1 -0
- package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.d.ts +4 -0
- package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.js +160 -0
- package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.js.map +1 -0
- package/dist/nodes/TwitchChatMessages/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchChatMessages/twitch.svg +1 -0
- package/dist/nodes/TwitchChatters/TwitchChatters.node.d.ts +4 -0
- package/dist/nodes/TwitchChatters/TwitchChatters.node.js +148 -0
- package/dist/nodes/TwitchChatters/TwitchChatters.node.js.map +1 -0
- package/dist/nodes/TwitchChatters/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchChatters/twitch.svg +1 -0
- package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.d.ts +4 -0
- package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.js +113 -0
- package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.js.map +1 -0
- package/dist/nodes/TwitchCheermotes/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchCheermotes/twitch.svg +1 -0
- package/dist/nodes/TwitchClips/TwitchClips.node.d.ts +4 -0
- package/dist/nodes/TwitchClips/TwitchClips.node.js +308 -0
- package/dist/nodes/TwitchClips/TwitchClips.node.js.map +1 -0
- package/dist/nodes/TwitchClips/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchClips/twitch.svg +1 -0
- package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.d.ts +4 -0
- package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.js +606 -0
- package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.js.map +1 -0
- package/dist/nodes/TwitchCustomRewards/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchCustomRewards/twitch.svg +1 -0
- package/dist/nodes/TwitchEmotes/TwitchEmotes.node.d.ts +4 -0
- package/dist/nodes/TwitchEmotes/TwitchEmotes.node.js +125 -0
- package/dist/nodes/TwitchEmotes/TwitchEmotes.node.js.map +1 -0
- package/dist/nodes/TwitchEmotes/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchEmotes/twitch.svg +1 -0
- package/dist/nodes/TwitchGames/TwitchGames.node.d.ts +4 -0
- package/dist/nodes/TwitchGames/TwitchGames.node.js +260 -0
- package/dist/nodes/TwitchGames/TwitchGames.node.js.map +1 -0
- package/dist/nodes/TwitchGames/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchGames/twitch.svg +1 -0
- package/dist/nodes/TwitchModerators/TwitchModerators.node.d.ts +4 -0
- package/dist/nodes/TwitchModerators/TwitchModerators.node.js +310 -0
- package/dist/nodes/TwitchModerators/TwitchModerators.node.js.map +1 -0
- package/dist/nodes/TwitchModerators/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchModerators/twitch.svg +1 -0
- package/dist/nodes/TwitchPolls/TwitchPolls.node.d.ts +4 -0
- package/dist/nodes/TwitchPolls/TwitchPolls.node.js +452 -0
- package/dist/nodes/TwitchPolls/TwitchPolls.node.js.map +1 -0
- package/dist/nodes/TwitchPolls/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchPolls/twitch.svg +1 -0
- package/dist/nodes/TwitchPredictions/TwitchPredictions.node.d.ts +4 -0
- package/dist/nodes/TwitchPredictions/TwitchPredictions.node.js +408 -0
- package/dist/nodes/TwitchPredictions/TwitchPredictions.node.js.map +1 -0
- package/dist/nodes/TwitchPredictions/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchPredictions/twitch.svg +1 -0
- package/dist/nodes/TwitchRaids/TwitchRaids.node.d.ts +4 -0
- package/dist/nodes/TwitchRaids/TwitchRaids.node.js +192 -0
- package/dist/nodes/TwitchRaids/TwitchRaids.node.js.map +1 -0
- package/dist/nodes/TwitchRaids/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchRaids/twitch.svg +1 -0
- package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.d.ts +4 -0
- package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.js +301 -0
- package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.js.map +1 -0
- package/dist/nodes/TwitchRedemptions/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchRedemptions/twitch.svg +1 -0
- package/dist/nodes/TwitchSchedule/TwitchSchedule.node.d.ts +4 -0
- package/dist/nodes/TwitchSchedule/TwitchSchedule.node.js +457 -0
- package/dist/nodes/TwitchSchedule/TwitchSchedule.node.js.map +1 -0
- package/dist/nodes/TwitchSchedule/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchSchedule/twitch.svg +1 -0
- package/dist/nodes/TwitchSearch/TwitchSearch.node.d.ts +4 -0
- package/dist/nodes/TwitchSearch/TwitchSearch.node.js +164 -0
- package/dist/nodes/TwitchSearch/TwitchSearch.node.js.map +1 -0
- package/dist/nodes/TwitchSearch/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchSearch/twitch.svg +1 -0
- package/dist/nodes/TwitchStreams/TwitchStreams.node.d.ts +4 -0
- package/dist/nodes/TwitchStreams/TwitchStreams.node.js +124 -0
- package/dist/nodes/TwitchStreams/TwitchStreams.node.js.map +1 -0
- package/dist/nodes/TwitchStreams/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchStreams/twitch.svg +1 -0
- package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.d.ts +4 -0
- package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.js +232 -0
- package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.js.map +1 -0
- package/dist/nodes/TwitchSubscriptions/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchSubscriptions/twitch.svg +1 -0
- package/dist/nodes/TwitchTeams/TwitchTeams.node.d.ts +4 -0
- package/dist/nodes/TwitchTeams/TwitchTeams.node.js +219 -0
- package/dist/nodes/TwitchTeams/TwitchTeams.node.js.map +1 -0
- package/dist/nodes/TwitchTeams/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchTeams/twitch.svg +1 -0
- package/dist/nodes/TwitchTrigger/TwitchTrigger.node.d.ts +12 -0
- package/dist/nodes/TwitchTrigger/TwitchTrigger.node.js +418 -0
- package/dist/nodes/TwitchTrigger/TwitchTrigger.node.js.map +1 -0
- package/dist/nodes/TwitchTrigger/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchTrigger/twitch.svg +1 -0
- package/dist/nodes/TwitchUsers/TwitchUsers.node.d.ts +4 -0
- package/dist/nodes/TwitchUsers/TwitchUsers.node.js +124 -0
- package/dist/nodes/TwitchUsers/TwitchUsers.node.js.map +1 -0
- package/dist/nodes/TwitchUsers/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchUsers/twitch.svg +1 -0
- package/dist/nodes/TwitchVideos/TwitchVideos.node.d.ts +4 -0
- package/dist/nodes/TwitchVideos/TwitchVideos.node.js +371 -0
- package/dist/nodes/TwitchVideos/TwitchVideos.node.js.map +1 -0
- package/dist/nodes/TwitchVideos/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchVideos/twitch.svg +1 -0
- package/dist/nodes/TwitchWhispers/TwitchWhispers.node.d.ts +4 -0
- package/dist/nodes/TwitchWhispers/TwitchWhispers.node.js +105 -0
- package/dist/nodes/TwitchWhispers/TwitchWhispers.node.js.map +1 -0
- package/dist/nodes/TwitchWhispers/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchWhispers/twitch.svg +1 -0
- package/dist/package.json +86 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +86 -0
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TwitchCustomRewards = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
class TwitchCustomRewards {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.description = {
|
|
8
|
+
displayName: 'Twitch Custom Rewards',
|
|
9
|
+
name: 'twitchCustomRewards',
|
|
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 Custom Rewards API',
|
|
15
|
+
defaults: {
|
|
16
|
+
name: 'Twitch Custom Rewards',
|
|
17
|
+
},
|
|
18
|
+
usableAsTool: true,
|
|
19
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
20
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
21
|
+
credentials: [
|
|
22
|
+
{
|
|
23
|
+
name: 'twitchApi',
|
|
24
|
+
required: true,
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
authentication: ['clientCredentials'],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'twitchOAuth2Api',
|
|
33
|
+
required: true,
|
|
34
|
+
displayOptions: {
|
|
35
|
+
show: {
|
|
36
|
+
authentication: ['oAuth2'],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
requestDefaults: {
|
|
42
|
+
baseURL: 'https://api.twitch.tv/helix',
|
|
43
|
+
headers: {
|
|
44
|
+
Accept: 'application/json',
|
|
45
|
+
'Content-Type': 'application/json',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
properties: [
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Authentication',
|
|
51
|
+
name: 'authentication',
|
|
52
|
+
type: 'options',
|
|
53
|
+
options: [
|
|
54
|
+
{
|
|
55
|
+
name: 'Client Credentials',
|
|
56
|
+
value: 'clientCredentials',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'OAuth2',
|
|
60
|
+
value: 'oAuth2',
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
default: 'oAuth2',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Operation',
|
|
67
|
+
name: 'operation',
|
|
68
|
+
type: 'options',
|
|
69
|
+
noDataExpression: true,
|
|
70
|
+
options: [
|
|
71
|
+
{
|
|
72
|
+
name: 'Create',
|
|
73
|
+
value: 'create',
|
|
74
|
+
action: 'Create a custom reward',
|
|
75
|
+
description: 'Create a custom channel points reward',
|
|
76
|
+
routing: {
|
|
77
|
+
request: {
|
|
78
|
+
method: 'POST',
|
|
79
|
+
url: '/channel_points/custom_rewards',
|
|
80
|
+
},
|
|
81
|
+
send: {
|
|
82
|
+
preSend: [
|
|
83
|
+
async function (requestOptions) {
|
|
84
|
+
const broadcasterId = this.getNodeParameter('broadcasterId', 0);
|
|
85
|
+
requestOptions.qs = { broadcaster_id: broadcasterId };
|
|
86
|
+
const body = {
|
|
87
|
+
title: this.getNodeParameter('title', 0),
|
|
88
|
+
cost: this.getNodeParameter('cost', 0),
|
|
89
|
+
};
|
|
90
|
+
const additionalFields = this.getNodeParameter('additionalFields', 0, {});
|
|
91
|
+
if (additionalFields.prompt) {
|
|
92
|
+
body.prompt = additionalFields.prompt;
|
|
93
|
+
}
|
|
94
|
+
if (additionalFields.isEnabled !== undefined) {
|
|
95
|
+
body.is_enabled = additionalFields.isEnabled;
|
|
96
|
+
}
|
|
97
|
+
if (additionalFields.backgroundColor) {
|
|
98
|
+
body.background_color = additionalFields.backgroundColor;
|
|
99
|
+
}
|
|
100
|
+
if (additionalFields.isUserInputRequired !== undefined) {
|
|
101
|
+
body.is_user_input_required = additionalFields.isUserInputRequired;
|
|
102
|
+
}
|
|
103
|
+
if (additionalFields.isMaxPerStreamEnabled !== undefined) {
|
|
104
|
+
body.is_max_per_stream_enabled = additionalFields.isMaxPerStreamEnabled;
|
|
105
|
+
}
|
|
106
|
+
if (additionalFields.maxPerStream) {
|
|
107
|
+
body.max_per_stream = additionalFields.maxPerStream;
|
|
108
|
+
}
|
|
109
|
+
if (additionalFields.isMaxPerUserPerStreamEnabled !== undefined) {
|
|
110
|
+
body.is_max_per_user_per_stream_enabled = additionalFields.isMaxPerUserPerStreamEnabled;
|
|
111
|
+
}
|
|
112
|
+
if (additionalFields.maxPerUserPerStream) {
|
|
113
|
+
body.max_per_user_per_stream = additionalFields.maxPerUserPerStream;
|
|
114
|
+
}
|
|
115
|
+
if (additionalFields.isGlobalCooldownEnabled !== undefined) {
|
|
116
|
+
body.is_global_cooldown_enabled = additionalFields.isGlobalCooldownEnabled;
|
|
117
|
+
}
|
|
118
|
+
if (additionalFields.globalCooldownSeconds) {
|
|
119
|
+
body.global_cooldown_seconds = additionalFields.globalCooldownSeconds;
|
|
120
|
+
}
|
|
121
|
+
if (additionalFields.shouldRedemptionsSkipRequestQueue !== undefined) {
|
|
122
|
+
body.should_redemptions_skip_request_queue = additionalFields.shouldRedemptionsSkipRequestQueue;
|
|
123
|
+
}
|
|
124
|
+
requestOptions.body = body;
|
|
125
|
+
return requestOptions;
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
output: {
|
|
130
|
+
postReceive: [
|
|
131
|
+
{
|
|
132
|
+
type: 'rootProperty',
|
|
133
|
+
properties: {
|
|
134
|
+
property: 'data',
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
type: 'setKeyValue',
|
|
139
|
+
properties: {
|
|
140
|
+
index: 0,
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: 'Get',
|
|
149
|
+
value: 'get',
|
|
150
|
+
action: 'Get custom rewards',
|
|
151
|
+
description: 'Get custom channel points rewards for a broadcaster',
|
|
152
|
+
routing: {
|
|
153
|
+
request: {
|
|
154
|
+
method: 'GET',
|
|
155
|
+
url: '/channel_points/custom_rewards',
|
|
156
|
+
},
|
|
157
|
+
send: {
|
|
158
|
+
preSend: [
|
|
159
|
+
async function (requestOptions) {
|
|
160
|
+
const broadcasterId = this.getNodeParameter('broadcasterId', 0);
|
|
161
|
+
const qs = { broadcaster_id: broadcasterId };
|
|
162
|
+
const additionalFields = this.getNodeParameter('additionalFields', 0, {});
|
|
163
|
+
if (additionalFields.id) {
|
|
164
|
+
qs.id = additionalFields.id;
|
|
165
|
+
}
|
|
166
|
+
if (additionalFields.onlyManageableRewards !== undefined) {
|
|
167
|
+
qs.only_manageable_rewards = additionalFields.onlyManageableRewards;
|
|
168
|
+
}
|
|
169
|
+
requestOptions.qs = qs;
|
|
170
|
+
return requestOptions;
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
},
|
|
174
|
+
output: {
|
|
175
|
+
postReceive: [
|
|
176
|
+
{
|
|
177
|
+
type: 'rootProperty',
|
|
178
|
+
properties: {
|
|
179
|
+
property: 'data',
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: 'Update',
|
|
188
|
+
value: 'update',
|
|
189
|
+
action: 'Update a custom reward',
|
|
190
|
+
description: 'Update a custom channel points reward',
|
|
191
|
+
routing: {
|
|
192
|
+
request: {
|
|
193
|
+
method: 'PATCH',
|
|
194
|
+
url: '/channel_points/custom_rewards',
|
|
195
|
+
},
|
|
196
|
+
send: {
|
|
197
|
+
preSend: [
|
|
198
|
+
async function (requestOptions) {
|
|
199
|
+
const broadcasterId = this.getNodeParameter('broadcasterId', 0);
|
|
200
|
+
const id = this.getNodeParameter('rewardId', 0);
|
|
201
|
+
requestOptions.qs = { broadcaster_id: broadcasterId, id };
|
|
202
|
+
const body = {};
|
|
203
|
+
const updateFields = this.getNodeParameter('updateFields', 0, {});
|
|
204
|
+
if (updateFields.title) {
|
|
205
|
+
body.title = updateFields.title;
|
|
206
|
+
}
|
|
207
|
+
if (updateFields.cost) {
|
|
208
|
+
body.cost = updateFields.cost;
|
|
209
|
+
}
|
|
210
|
+
if (updateFields.prompt !== undefined) {
|
|
211
|
+
body.prompt = updateFields.prompt;
|
|
212
|
+
}
|
|
213
|
+
if (updateFields.isEnabled !== undefined) {
|
|
214
|
+
body.is_enabled = updateFields.isEnabled;
|
|
215
|
+
}
|
|
216
|
+
if (updateFields.backgroundColor) {
|
|
217
|
+
body.background_color = updateFields.backgroundColor;
|
|
218
|
+
}
|
|
219
|
+
if (updateFields.isUserInputRequired !== undefined) {
|
|
220
|
+
body.is_user_input_required = updateFields.isUserInputRequired;
|
|
221
|
+
}
|
|
222
|
+
if (updateFields.isMaxPerStreamEnabled !== undefined) {
|
|
223
|
+
body.is_max_per_stream_enabled = updateFields.isMaxPerStreamEnabled;
|
|
224
|
+
}
|
|
225
|
+
if (updateFields.maxPerStream) {
|
|
226
|
+
body.max_per_stream = updateFields.maxPerStream;
|
|
227
|
+
}
|
|
228
|
+
if (updateFields.isMaxPerUserPerStreamEnabled !== undefined) {
|
|
229
|
+
body.is_max_per_user_per_stream_enabled = updateFields.isMaxPerUserPerStreamEnabled;
|
|
230
|
+
}
|
|
231
|
+
if (updateFields.maxPerUserPerStream) {
|
|
232
|
+
body.max_per_user_per_stream = updateFields.maxPerUserPerStream;
|
|
233
|
+
}
|
|
234
|
+
if (updateFields.isGlobalCooldownEnabled !== undefined) {
|
|
235
|
+
body.is_global_cooldown_enabled = updateFields.isGlobalCooldownEnabled;
|
|
236
|
+
}
|
|
237
|
+
if (updateFields.globalCooldownSeconds) {
|
|
238
|
+
body.global_cooldown_seconds = updateFields.globalCooldownSeconds;
|
|
239
|
+
}
|
|
240
|
+
if (updateFields.isPaused !== undefined) {
|
|
241
|
+
body.is_paused = updateFields.isPaused;
|
|
242
|
+
}
|
|
243
|
+
if (updateFields.shouldRedemptionsSkipRequestQueue !== undefined) {
|
|
244
|
+
body.should_redemptions_skip_request_queue = updateFields.shouldRedemptionsSkipRequestQueue;
|
|
245
|
+
}
|
|
246
|
+
requestOptions.body = body;
|
|
247
|
+
return requestOptions;
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
},
|
|
251
|
+
output: {
|
|
252
|
+
postReceive: [
|
|
253
|
+
{
|
|
254
|
+
type: 'rootProperty',
|
|
255
|
+
properties: {
|
|
256
|
+
property: 'data',
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
type: 'setKeyValue',
|
|
261
|
+
properties: {
|
|
262
|
+
index: 0,
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
name: 'Delete',
|
|
271
|
+
value: 'delete',
|
|
272
|
+
action: 'Delete a custom reward',
|
|
273
|
+
description: 'Delete a custom channel points reward',
|
|
274
|
+
routing: {
|
|
275
|
+
request: {
|
|
276
|
+
method: 'DELETE',
|
|
277
|
+
url: '/channel_points/custom_rewards',
|
|
278
|
+
},
|
|
279
|
+
send: {
|
|
280
|
+
preSend: [
|
|
281
|
+
async function (requestOptions) {
|
|
282
|
+
const broadcasterId = this.getNodeParameter('broadcasterId', 0);
|
|
283
|
+
const id = this.getNodeParameter('rewardId', 0);
|
|
284
|
+
requestOptions.qs = { broadcaster_id: broadcasterId, id };
|
|
285
|
+
return requestOptions;
|
|
286
|
+
},
|
|
287
|
+
],
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
default: 'get',
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
displayName: 'Broadcaster ID',
|
|
296
|
+
name: 'broadcasterId',
|
|
297
|
+
type: 'string',
|
|
298
|
+
default: '',
|
|
299
|
+
required: true,
|
|
300
|
+
placeholder: 'e.g. 123456789',
|
|
301
|
+
description: 'The broadcaster user ID',
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
displayName: 'Title',
|
|
305
|
+
name: 'title',
|
|
306
|
+
type: 'string',
|
|
307
|
+
displayOptions: {
|
|
308
|
+
show: {
|
|
309
|
+
operation: ['create'],
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
default: '',
|
|
313
|
+
required: true,
|
|
314
|
+
placeholder: 'e.g. My Custom Reward',
|
|
315
|
+
description: 'The custom reward title (max 45 characters)',
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
displayName: 'Cost',
|
|
319
|
+
name: 'cost',
|
|
320
|
+
type: 'number',
|
|
321
|
+
displayOptions: {
|
|
322
|
+
show: {
|
|
323
|
+
operation: ['create'],
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
default: 100,
|
|
327
|
+
required: true,
|
|
328
|
+
typeOptions: {
|
|
329
|
+
minValue: 1,
|
|
330
|
+
},
|
|
331
|
+
description: 'The cost of the reward in channel points',
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
displayName: 'Additional Fields',
|
|
335
|
+
name: 'additionalFields',
|
|
336
|
+
type: 'collection',
|
|
337
|
+
placeholder: 'Add Field',
|
|
338
|
+
default: {},
|
|
339
|
+
displayOptions: {
|
|
340
|
+
show: {
|
|
341
|
+
operation: ['create', 'get'],
|
|
342
|
+
},
|
|
343
|
+
},
|
|
344
|
+
options: [
|
|
345
|
+
{
|
|
346
|
+
displayName: 'Background Color',
|
|
347
|
+
name: 'backgroundColor',
|
|
348
|
+
type: 'color',
|
|
349
|
+
default: '',
|
|
350
|
+
placeholder: 'e.g. #9147FF',
|
|
351
|
+
description: 'The background color to use for the reward (hex code)',
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
displayName: 'Global Cooldown Seconds',
|
|
355
|
+
name: 'globalCooldownSeconds',
|
|
356
|
+
type: 'number',
|
|
357
|
+
default: 60,
|
|
358
|
+
typeOptions: {
|
|
359
|
+
minValue: 1,
|
|
360
|
+
},
|
|
361
|
+
description: 'The cooldown in seconds',
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
displayName: 'Is Enabled',
|
|
365
|
+
name: 'isEnabled',
|
|
366
|
+
type: 'boolean',
|
|
367
|
+
default: true,
|
|
368
|
+
description: 'Whether the reward is enabled and can be redeemed',
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
displayName: 'Is Global Cooldown Enabled',
|
|
372
|
+
name: 'isGlobalCooldownEnabled',
|
|
373
|
+
type: 'boolean',
|
|
374
|
+
default: false,
|
|
375
|
+
description: 'Whether a cooldown is enabled',
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
displayName: 'Is Max Per Stream Enabled',
|
|
379
|
+
name: 'isMaxPerStreamEnabled',
|
|
380
|
+
type: 'boolean',
|
|
381
|
+
default: false,
|
|
382
|
+
description: 'Whether a maximum per stream is enabled',
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
displayName: 'Is Max Per User Per Stream Enabled',
|
|
386
|
+
name: 'isMaxPerUserPerStreamEnabled',
|
|
387
|
+
type: 'boolean',
|
|
388
|
+
default: false,
|
|
389
|
+
description: 'Whether a maximum per user per stream is enabled',
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
displayName: 'Is User Input Required',
|
|
393
|
+
name: 'isUserInputRequired',
|
|
394
|
+
type: 'boolean',
|
|
395
|
+
default: false,
|
|
396
|
+
description: 'Whether the user needs to enter text when redeeming the reward',
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
displayName: 'Max Per Stream',
|
|
400
|
+
name: 'maxPerStream',
|
|
401
|
+
type: 'number',
|
|
402
|
+
default: 1,
|
|
403
|
+
typeOptions: {
|
|
404
|
+
minValue: 1,
|
|
405
|
+
},
|
|
406
|
+
description: 'The maximum number of redemptions allowed per stream',
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
displayName: 'Max Per User Per Stream',
|
|
410
|
+
name: 'maxPerUserPerStream',
|
|
411
|
+
type: 'number',
|
|
412
|
+
default: 1,
|
|
413
|
+
typeOptions: {
|
|
414
|
+
minValue: 1,
|
|
415
|
+
},
|
|
416
|
+
description: 'The maximum number of redemptions allowed per user per stream',
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
displayName: 'Only Manageable Rewards',
|
|
420
|
+
name: 'onlyManageableRewards',
|
|
421
|
+
type: 'boolean',
|
|
422
|
+
default: false,
|
|
423
|
+
description: 'Whether to filter the results and only return custom rewards that the calling client_id can manage',
|
|
424
|
+
displayOptions: {
|
|
425
|
+
show: {
|
|
426
|
+
'/operation': ['get'],
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
displayName: 'Prompt',
|
|
432
|
+
name: 'prompt',
|
|
433
|
+
type: 'string',
|
|
434
|
+
default: '',
|
|
435
|
+
placeholder: 'e.g. Enter your message here',
|
|
436
|
+
description: 'The prompt shown to the viewer when redeeming the reward (max 200 characters)',
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
displayName: 'Reward ID',
|
|
440
|
+
name: 'id',
|
|
441
|
+
type: 'string',
|
|
442
|
+
default: '',
|
|
443
|
+
placeholder: 'e.g. 92af127c-7326-4483-a52b-b0da0be61c01',
|
|
444
|
+
description: 'The ID of the custom reward to get (if not specified, returns all rewards)',
|
|
445
|
+
displayOptions: {
|
|
446
|
+
show: {
|
|
447
|
+
'/operation': ['get'],
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
displayName: 'Should Redemptions Skip Request Queue',
|
|
453
|
+
name: 'shouldRedemptionsSkipRequestQueue',
|
|
454
|
+
type: 'boolean',
|
|
455
|
+
default: false,
|
|
456
|
+
description: 'Whether redemptions should be automatically fulfilled',
|
|
457
|
+
},
|
|
458
|
+
],
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
displayName: 'Reward ID',
|
|
462
|
+
name: 'rewardId',
|
|
463
|
+
type: 'string',
|
|
464
|
+
displayOptions: {
|
|
465
|
+
show: {
|
|
466
|
+
operation: ['update', 'delete'],
|
|
467
|
+
},
|
|
468
|
+
},
|
|
469
|
+
default: '',
|
|
470
|
+
required: true,
|
|
471
|
+
placeholder: 'e.g. 92af127c-7326-4483-a52b-b0da0be61c01',
|
|
472
|
+
description: 'The ID of the custom reward',
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
displayName: 'Update Fields',
|
|
476
|
+
name: 'updateFields',
|
|
477
|
+
type: 'collection',
|
|
478
|
+
placeholder: 'Add Field',
|
|
479
|
+
default: {},
|
|
480
|
+
displayOptions: {
|
|
481
|
+
show: {
|
|
482
|
+
operation: ['update'],
|
|
483
|
+
},
|
|
484
|
+
},
|
|
485
|
+
options: [
|
|
486
|
+
{
|
|
487
|
+
displayName: 'Background Color',
|
|
488
|
+
name: 'backgroundColor',
|
|
489
|
+
type: 'color',
|
|
490
|
+
default: '',
|
|
491
|
+
placeholder: 'e.g. #9147FF',
|
|
492
|
+
description: 'The background color to use for the reward (hex code)',
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
displayName: 'Cost',
|
|
496
|
+
name: 'cost',
|
|
497
|
+
type: 'number',
|
|
498
|
+
default: 100,
|
|
499
|
+
typeOptions: {
|
|
500
|
+
minValue: 1,
|
|
501
|
+
},
|
|
502
|
+
description: 'The cost of the reward in channel points',
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
displayName: 'Global Cooldown Seconds',
|
|
506
|
+
name: 'globalCooldownSeconds',
|
|
507
|
+
type: 'number',
|
|
508
|
+
default: 60,
|
|
509
|
+
typeOptions: {
|
|
510
|
+
minValue: 1,
|
|
511
|
+
},
|
|
512
|
+
description: 'The cooldown in seconds',
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
displayName: 'Is Enabled',
|
|
516
|
+
name: 'isEnabled',
|
|
517
|
+
type: 'boolean',
|
|
518
|
+
default: true,
|
|
519
|
+
description: 'Whether the reward is enabled and can be redeemed',
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
displayName: 'Is Global Cooldown Enabled',
|
|
523
|
+
name: 'isGlobalCooldownEnabled',
|
|
524
|
+
type: 'boolean',
|
|
525
|
+
default: false,
|
|
526
|
+
description: 'Whether a cooldown is enabled',
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
displayName: 'Is Max Per Stream Enabled',
|
|
530
|
+
name: 'isMaxPerStreamEnabled',
|
|
531
|
+
type: 'boolean',
|
|
532
|
+
default: false,
|
|
533
|
+
description: 'Whether a maximum per stream is enabled',
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
displayName: 'Is Max Per User Per Stream Enabled',
|
|
537
|
+
name: 'isMaxPerUserPerStreamEnabled',
|
|
538
|
+
type: 'boolean',
|
|
539
|
+
default: false,
|
|
540
|
+
description: 'Whether a maximum per user per stream is enabled',
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
displayName: 'Is Paused',
|
|
544
|
+
name: 'isPaused',
|
|
545
|
+
type: 'boolean',
|
|
546
|
+
default: false,
|
|
547
|
+
description: 'Whether the reward is currently paused',
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
displayName: 'Is User Input Required',
|
|
551
|
+
name: 'isUserInputRequired',
|
|
552
|
+
type: 'boolean',
|
|
553
|
+
default: false,
|
|
554
|
+
description: 'Whether the user needs to enter text when redeeming the reward',
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
displayName: 'Max Per Stream',
|
|
558
|
+
name: 'maxPerStream',
|
|
559
|
+
type: 'number',
|
|
560
|
+
default: 1,
|
|
561
|
+
typeOptions: {
|
|
562
|
+
minValue: 1,
|
|
563
|
+
},
|
|
564
|
+
description: 'The maximum number of redemptions allowed per stream',
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
displayName: 'Max Per User Per Stream',
|
|
568
|
+
name: 'maxPerUserPerStream',
|
|
569
|
+
type: 'number',
|
|
570
|
+
default: 1,
|
|
571
|
+
typeOptions: {
|
|
572
|
+
minValue: 1,
|
|
573
|
+
},
|
|
574
|
+
description: 'The maximum number of redemptions allowed per user per stream',
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
displayName: 'Prompt',
|
|
578
|
+
name: 'prompt',
|
|
579
|
+
type: 'string',
|
|
580
|
+
default: '',
|
|
581
|
+
placeholder: 'e.g. Enter your message here',
|
|
582
|
+
description: 'The prompt shown to the viewer when redeeming the reward (max 200 characters)',
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
displayName: 'Should Redemptions Skip Request Queue',
|
|
586
|
+
name: 'shouldRedemptionsSkipRequestQueue',
|
|
587
|
+
type: 'boolean',
|
|
588
|
+
default: false,
|
|
589
|
+
description: 'Whether redemptions should be automatically fulfilled',
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
displayName: 'Title',
|
|
593
|
+
name: 'title',
|
|
594
|
+
type: 'string',
|
|
595
|
+
default: '',
|
|
596
|
+
placeholder: 'e.g. Updated Reward Title',
|
|
597
|
+
description: 'The custom reward title (max 45 characters)',
|
|
598
|
+
},
|
|
599
|
+
],
|
|
600
|
+
},
|
|
601
|
+
],
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
exports.TwitchCustomRewards = TwitchCustomRewards;
|
|
606
|
+
//# sourceMappingURL=TwitchCustomRewards.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TwitchCustomRewards.node.js","sourceRoot":"","sources":["../../../nodes/TwitchCustomRewards/TwitchCustomRewards.node.ts"],"names":[],"mappings":";;;AAAA,+CAAgH;AAEhH,MAAa,mBAAmB;IAAhC;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,sBAAsB,EAAE;YAChE,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8B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,IAAI,EAAE,QAAQ;4BACd,OAAO,EAAE,EAAE;4BACX,WAAW,EAAE,8BAA8B;4BAC3C,WAAW,EAAE,+EAA+E;yBAC5F;wBACD;4BACC,WAAW,EAAE,uCAAuC;4BACpD,IAAI,EAAE,mCAAmC;4BACzC,IAAI,EAAE,SAAS;4BACf,OAAO,EAAE,KAAK;4BACd,WAAW,EAAE,uDAAuD;yBACpE;wBACD;4BACC,WAAW,EAAE,OAAO;4BACpB,IAAI,EAAE,OAAO;4BACb,IAAI,EAAE,QAAQ;4BACd,OAAO,EAAE,EAAE;4BACX,WAAW,EAAE,2BAA2B;4BACxC,WAAW,EAAE,6CAA6C;yBAC1D;qBACD;iBACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AAlmBD,kDAkmBC"}
|
|
@@ -0,0 +1 @@
|
|
|
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>
|
|
@@ -0,0 +1 @@
|
|
|
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>
|