@yuniruyuni/n8n-nodes-twitch 0.1.5 → 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.
Files changed (203) hide show
  1. package/dist/nodes/{TwitchBans/TwitchBans.node.d.ts → Twitch/Twitch.node.d.ts} +1 -1
  2. package/dist/nodes/Twitch/Twitch.node.js +145 -0
  3. package/dist/nodes/Twitch/Twitch.node.js.map +1 -0
  4. package/dist/nodes/Twitch/resources/Announcement.d.ts +3 -0
  5. package/dist/nodes/Twitch/resources/Announcement.js +146 -0
  6. package/dist/nodes/Twitch/resources/Announcement.js.map +1 -0
  7. package/dist/nodes/Twitch/resources/Ban.d.ts +3 -0
  8. package/dist/nodes/Twitch/resources/Ban.js +324 -0
  9. package/dist/nodes/Twitch/resources/Ban.js.map +1 -0
  10. package/dist/nodes/Twitch/resources/BitsLeaderboard.d.ts +3 -0
  11. package/dist/nodes/Twitch/resources/BitsLeaderboard.js +152 -0
  12. package/dist/nodes/Twitch/resources/BitsLeaderboard.js.map +1 -0
  13. package/dist/nodes/Twitch/resources/Channel.d.ts +3 -0
  14. package/dist/nodes/Twitch/resources/Channel.js +78 -0
  15. package/dist/nodes/Twitch/resources/Channel.js.map +1 -0
  16. package/dist/nodes/Twitch/resources/ChatMessage.d.ts +3 -0
  17. package/dist/nodes/Twitch/resources/ChatMessage.js +110 -0
  18. package/dist/nodes/Twitch/resources/ChatMessage.js.map +1 -0
  19. package/dist/nodes/Twitch/resources/Chatter.d.ts +3 -0
  20. package/dist/nodes/Twitch/resources/Chatter.js +109 -0
  21. package/dist/nodes/Twitch/resources/Chatter.js.map +1 -0
  22. package/dist/nodes/Twitch/resources/Cheermote.d.ts +3 -0
  23. package/dist/nodes/Twitch/resources/Cheermote.js +73 -0
  24. package/dist/nodes/Twitch/resources/Cheermote.js.map +1 -0
  25. package/dist/nodes/Twitch/resources/Clip.d.ts +3 -0
  26. package/dist/nodes/Twitch/resources/Clip.js +273 -0
  27. package/dist/nodes/Twitch/resources/Clip.js.map +1 -0
  28. package/dist/nodes/Twitch/resources/CustomReward.d.ts +3 -0
  29. package/dist/nodes/Twitch/resources/CustomReward.js +564 -0
  30. package/dist/nodes/Twitch/resources/CustomReward.js.map +1 -0
  31. package/dist/nodes/Twitch/resources/Emote.d.ts +3 -0
  32. package/dist/nodes/Twitch/resources/Emote.js +72 -0
  33. package/dist/nodes/Twitch/resources/Emote.js.map +1 -0
  34. package/dist/nodes/Twitch/resources/Game.d.ts +3 -0
  35. package/dist/nodes/Twitch/resources/Game.js +209 -0
  36. package/dist/nodes/Twitch/resources/Game.js.map +1 -0
  37. package/dist/nodes/Twitch/resources/Moderator.d.ts +3 -0
  38. package/dist/nodes/Twitch/resources/Moderator.js +268 -0
  39. package/dist/nodes/Twitch/resources/Moderator.js.map +1 -0
  40. package/dist/nodes/Twitch/resources/Poll.d.ts +3 -0
  41. package/dist/nodes/Twitch/resources/Poll.js +411 -0
  42. package/dist/nodes/Twitch/resources/Poll.js.map +1 -0
  43. package/dist/nodes/Twitch/resources/Prediction.d.ts +3 -0
  44. package/dist/nodes/Twitch/resources/Prediction.js +367 -0
  45. package/dist/nodes/Twitch/resources/Prediction.js.map +1 -0
  46. package/dist/nodes/Twitch/resources/Raid.d.ts +3 -0
  47. package/dist/nodes/Twitch/resources/Raid.js +161 -0
  48. package/dist/nodes/Twitch/resources/Raid.js.map +1 -0
  49. package/dist/nodes/Twitch/resources/Redemption.d.ts +3 -0
  50. package/dist/nodes/Twitch/resources/Redemption.js +260 -0
  51. package/dist/nodes/Twitch/resources/Redemption.js.map +1 -0
  52. package/dist/nodes/Twitch/resources/Schedule.d.ts +3 -0
  53. package/dist/nodes/Twitch/resources/Schedule.js +415 -0
  54. package/dist/nodes/Twitch/resources/Schedule.js.map +1 -0
  55. package/dist/nodes/Twitch/resources/Search.d.ts +3 -0
  56. package/dist/nodes/Twitch/resources/Search.js +108 -0
  57. package/dist/nodes/Twitch/resources/Search.js.map +1 -0
  58. package/dist/nodes/Twitch/resources/Stream.d.ts +3 -0
  59. package/dist/nodes/Twitch/resources/Stream.js +68 -0
  60. package/dist/nodes/Twitch/resources/Stream.js.map +1 -0
  61. package/dist/nodes/Twitch/resources/Subscription.d.ts +3 -0
  62. package/dist/nodes/Twitch/resources/Subscription.js +190 -0
  63. package/dist/nodes/Twitch/resources/Subscription.js.map +1 -0
  64. package/dist/nodes/Twitch/resources/Team.d.ts +3 -0
  65. package/dist/nodes/Twitch/resources/Team.js +168 -0
  66. package/dist/nodes/Twitch/resources/Team.js.map +1 -0
  67. package/dist/nodes/Twitch/resources/User.d.ts +3 -0
  68. package/dist/nodes/Twitch/resources/User.js +68 -0
  69. package/dist/nodes/Twitch/resources/User.js.map +1 -0
  70. package/dist/nodes/Twitch/resources/Video.d.ts +3 -0
  71. package/dist/nodes/Twitch/resources/Video.js +323 -0
  72. package/dist/nodes/Twitch/resources/Video.js.map +1 -0
  73. package/dist/nodes/Twitch/resources/Whisper.d.ts +3 -0
  74. package/dist/nodes/Twitch/resources/Whisper.js +78 -0
  75. package/dist/nodes/Twitch/resources/Whisper.js.map +1 -0
  76. package/dist/nodes/Twitch/shared/userIdConverter.js.map +1 -0
  77. package/dist/nodes/TwitchTrigger/TwitchTrigger.node.js +1 -1
  78. package/dist/nodes/TwitchTrigger/TwitchTrigger.node.js.map +1 -1
  79. package/dist/package.json +3 -26
  80. package/dist/tsconfig.tsbuildinfo +1 -1
  81. package/package.json +3 -26
  82. package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.d.ts +0 -4
  83. package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.js +0 -169
  84. package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.js.map +0 -1
  85. package/dist/nodes/TwitchBans/TwitchBans.node.js +0 -340
  86. package/dist/nodes/TwitchBans/TwitchBans.node.js.map +0 -1
  87. package/dist/nodes/TwitchBans/twitch.dark.svg +0 -1
  88. package/dist/nodes/TwitchBans/twitch.svg +0 -1
  89. package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.d.ts +0 -4
  90. package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.js +0 -174
  91. package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.js.map +0 -1
  92. package/dist/nodes/TwitchBitsLeaderboard/twitch.dark.svg +0 -1
  93. package/dist/nodes/TwitchBitsLeaderboard/twitch.svg +0 -1
  94. package/dist/nodes/TwitchChannels/TwitchChannels.node.d.ts +0 -4
  95. package/dist/nodes/TwitchChannels/TwitchChannels.node.js +0 -104
  96. package/dist/nodes/TwitchChannels/TwitchChannels.node.js.map +0 -1
  97. package/dist/nodes/TwitchChannels/twitch.dark.svg +0 -1
  98. package/dist/nodes/TwitchChannels/twitch.svg +0 -1
  99. package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.d.ts +0 -4
  100. package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.js +0 -133
  101. package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.js.map +0 -1
  102. package/dist/nodes/TwitchChatMessages/twitch.dark.svg +0 -1
  103. package/dist/nodes/TwitchChatMessages/twitch.svg +0 -1
  104. package/dist/nodes/TwitchChatters/TwitchChatters.node.d.ts +0 -4
  105. package/dist/nodes/TwitchChatters/TwitchChatters.node.js +0 -133
  106. package/dist/nodes/TwitchChatters/TwitchChatters.node.js.map +0 -1
  107. package/dist/nodes/TwitchChatters/twitch.dark.svg +0 -1
  108. package/dist/nodes/TwitchChatters/twitch.svg +0 -1
  109. package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.d.ts +0 -4
  110. package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.js +0 -99
  111. package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.js.map +0 -1
  112. package/dist/nodes/TwitchCheermotes/twitch.dark.svg +0 -1
  113. package/dist/nodes/TwitchCheermotes/twitch.svg +0 -1
  114. package/dist/nodes/TwitchClips/TwitchClips.node.d.ts +0 -4
  115. package/dist/nodes/TwitchClips/TwitchClips.node.js +0 -291
  116. package/dist/nodes/TwitchClips/TwitchClips.node.js.map +0 -1
  117. package/dist/nodes/TwitchClips/twitch.dark.svg +0 -1
  118. package/dist/nodes/TwitchClips/twitch.svg +0 -1
  119. package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.d.ts +0 -4
  120. package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.js +0 -581
  121. package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.js.map +0 -1
  122. package/dist/nodes/TwitchCustomRewards/twitch.dark.svg +0 -1
  123. package/dist/nodes/TwitchCustomRewards/twitch.svg +0 -1
  124. package/dist/nodes/TwitchEmotes/TwitchEmotes.node.d.ts +0 -4
  125. package/dist/nodes/TwitchEmotes/TwitchEmotes.node.js +0 -97
  126. package/dist/nodes/TwitchEmotes/TwitchEmotes.node.js.map +0 -1
  127. package/dist/nodes/TwitchEmotes/twitch.dark.svg +0 -1
  128. package/dist/nodes/TwitchEmotes/twitch.svg +0 -1
  129. package/dist/nodes/TwitchGames/TwitchGames.node.d.ts +0 -4
  130. package/dist/nodes/TwitchGames/TwitchGames.node.js +0 -230
  131. package/dist/nodes/TwitchGames/TwitchGames.node.js.map +0 -1
  132. package/dist/nodes/TwitchGames/twitch.dark.svg +0 -1
  133. package/dist/nodes/TwitchGames/twitch.svg +0 -1
  134. package/dist/nodes/TwitchModerators/TwitchModerators.node.d.ts +0 -4
  135. package/dist/nodes/TwitchModerators/TwitchModerators.node.js +0 -287
  136. package/dist/nodes/TwitchModerators/TwitchModerators.node.js.map +0 -1
  137. package/dist/nodes/TwitchModerators/twitch.dark.svg +0 -1
  138. package/dist/nodes/TwitchModerators/twitch.svg +0 -1
  139. package/dist/nodes/TwitchPolls/TwitchPolls.node.d.ts +0 -4
  140. package/dist/nodes/TwitchPolls/TwitchPolls.node.js +0 -426
  141. package/dist/nodes/TwitchPolls/TwitchPolls.node.js.map +0 -1
  142. package/dist/nodes/TwitchPolls/twitch.dark.svg +0 -1
  143. package/dist/nodes/TwitchPolls/twitch.svg +0 -1
  144. package/dist/nodes/TwitchPredictions/TwitchPredictions.node.d.ts +0 -4
  145. package/dist/nodes/TwitchPredictions/TwitchPredictions.node.js +0 -382
  146. package/dist/nodes/TwitchPredictions/TwitchPredictions.node.js.map +0 -1
  147. package/dist/nodes/TwitchPredictions/twitch.dark.svg +0 -1
  148. package/dist/nodes/TwitchPredictions/twitch.svg +0 -1
  149. package/dist/nodes/TwitchRaids/TwitchRaids.node.d.ts +0 -4
  150. package/dist/nodes/TwitchRaids/TwitchRaids.node.js +0 -183
  151. package/dist/nodes/TwitchRaids/TwitchRaids.node.js.map +0 -1
  152. package/dist/nodes/TwitchRaids/twitch.dark.svg +0 -1
  153. package/dist/nodes/TwitchRaids/twitch.svg +0 -1
  154. package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.d.ts +0 -4
  155. package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.js +0 -274
  156. package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.js.map +0 -1
  157. package/dist/nodes/TwitchRedemptions/twitch.dark.svg +0 -1
  158. package/dist/nodes/TwitchRedemptions/twitch.svg +0 -1
  159. package/dist/nodes/TwitchSchedule/TwitchSchedule.node.d.ts +0 -4
  160. package/dist/nodes/TwitchSchedule/TwitchSchedule.node.js +0 -432
  161. package/dist/nodes/TwitchSchedule/TwitchSchedule.node.js.map +0 -1
  162. package/dist/nodes/TwitchSchedule/twitch.dark.svg +0 -1
  163. package/dist/nodes/TwitchSchedule/twitch.svg +0 -1
  164. package/dist/nodes/TwitchSearch/TwitchSearch.node.d.ts +0 -4
  165. package/dist/nodes/TwitchSearch/TwitchSearch.node.js +0 -134
  166. package/dist/nodes/TwitchSearch/TwitchSearch.node.js.map +0 -1
  167. package/dist/nodes/TwitchSearch/twitch.dark.svg +0 -1
  168. package/dist/nodes/TwitchSearch/twitch.svg +0 -1
  169. package/dist/nodes/TwitchStreams/TwitchStreams.node.d.ts +0 -4
  170. package/dist/nodes/TwitchStreams/TwitchStreams.node.js +0 -94
  171. package/dist/nodes/TwitchStreams/TwitchStreams.node.js.map +0 -1
  172. package/dist/nodes/TwitchStreams/twitch.dark.svg +0 -1
  173. package/dist/nodes/TwitchStreams/twitch.svg +0 -1
  174. package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.d.ts +0 -4
  175. package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.js +0 -208
  176. package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.js.map +0 -1
  177. package/dist/nodes/TwitchSubscriptions/twitch.dark.svg +0 -1
  178. package/dist/nodes/TwitchSubscriptions/twitch.svg +0 -1
  179. package/dist/nodes/TwitchTeams/TwitchTeams.node.d.ts +0 -4
  180. package/dist/nodes/TwitchTeams/TwitchTeams.node.js +0 -191
  181. package/dist/nodes/TwitchTeams/TwitchTeams.node.js.map +0 -1
  182. package/dist/nodes/TwitchTeams/twitch.dark.svg +0 -1
  183. package/dist/nodes/TwitchTeams/twitch.svg +0 -1
  184. package/dist/nodes/TwitchUsers/TwitchUsers.node.d.ts +0 -4
  185. package/dist/nodes/TwitchUsers/TwitchUsers.node.js +0 -94
  186. package/dist/nodes/TwitchUsers/TwitchUsers.node.js.map +0 -1
  187. package/dist/nodes/TwitchUsers/twitch.dark.svg +0 -1
  188. package/dist/nodes/TwitchUsers/twitch.svg +0 -1
  189. package/dist/nodes/TwitchVideos/TwitchVideos.node.d.ts +0 -4
  190. package/dist/nodes/TwitchVideos/TwitchVideos.node.js +0 -343
  191. package/dist/nodes/TwitchVideos/TwitchVideos.node.js.map +0 -1
  192. package/dist/nodes/TwitchVideos/twitch.dark.svg +0 -1
  193. package/dist/nodes/TwitchVideos/twitch.svg +0 -1
  194. package/dist/nodes/TwitchWhispers/TwitchWhispers.node.d.ts +0 -4
  195. package/dist/nodes/TwitchWhispers/TwitchWhispers.node.js +0 -105
  196. package/dist/nodes/TwitchWhispers/TwitchWhispers.node.js.map +0 -1
  197. package/dist/nodes/TwitchWhispers/twitch.dark.svg +0 -1
  198. package/dist/nodes/TwitchWhispers/twitch.svg +0 -1
  199. package/dist/nodes/shared/userIdConverter.js.map +0 -1
  200. /package/dist/nodes/{shared → Twitch/shared}/userIdConverter.d.ts +0 -0
  201. /package/dist/nodes/{shared → Twitch/shared}/userIdConverter.js +0 -0
  202. /package/dist/nodes/{TwitchAnnouncements → Twitch}/twitch.dark.svg +0 -0
  203. /package/dist/nodes/{TwitchAnnouncements → Twitch}/twitch.svg +0 -0
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bitsLeaderboardFields = exports.bitsLeaderboardOperations = void 0;
4
+ const userIdConverter_1 = require("../shared/userIdConverter");
5
+ exports.bitsLeaderboardOperations = [
6
+ {
7
+ displayName: 'Operation',
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['bitsLeaderboard'],
14
+ },
15
+ },
16
+ options: [
17
+ {
18
+ name: 'Get',
19
+ value: 'get',
20
+ action: 'Get bits leaderboard',
21
+ description: 'Get the Bits leaderboard for a Twitch channel',
22
+ routing: {
23
+ request: {
24
+ method: 'GET',
25
+ url: '/bits/leaderboard',
26
+ },
27
+ send: {
28
+ preSend: [
29
+ async function (requestOptions) {
30
+ const count = this.getNodeParameter('count', 0);
31
+ const period = this.getNodeParameter('period', 0);
32
+ const startedAt = this.getNodeParameter('startedAt', 0);
33
+ const userIdInput = this.getNodeParameter('userId', 0);
34
+ const qs = {};
35
+ if (count) {
36
+ qs.count = count;
37
+ }
38
+ if (period) {
39
+ qs.period = period;
40
+ }
41
+ if (startedAt && startedAt.trim() !== '') {
42
+ qs.started_at = startedAt.trim();
43
+ }
44
+ if (userIdInput && userIdInput.trim() !== '') {
45
+ const userId = await userIdConverter_1.resolveUserIdOrUsername.call(this, userIdInput.trim());
46
+ qs.user_id = userId;
47
+ }
48
+ requestOptions.qs = qs;
49
+ return requestOptions;
50
+ },
51
+ ],
52
+ },
53
+ output: {
54
+ postReceive: [
55
+ {
56
+ type: 'rootProperty',
57
+ properties: {
58
+ property: 'data',
59
+ },
60
+ },
61
+ ],
62
+ },
63
+ },
64
+ },
65
+ ],
66
+ default: 'get',
67
+ }
68
+ ];
69
+ exports.bitsLeaderboardFields = [
70
+ {
71
+ displayName: 'Count',
72
+ name: 'count',
73
+ type: 'number',
74
+ default: 10,
75
+ typeOptions: {
76
+ minValue: 1,
77
+ maxValue: 100,
78
+ },
79
+ placeholder: 'e.g. 10',
80
+ description: 'Number of results to return (1-100)',
81
+ displayOptions: {
82
+ show: {
83
+ resource: ['bitsLeaderboard'],
84
+ operation: ['get'],
85
+ },
86
+ },
87
+ },
88
+ {
89
+ displayName: 'Period',
90
+ name: 'period',
91
+ type: 'options',
92
+ options: [
93
+ {
94
+ name: 'All',
95
+ value: 'all',
96
+ },
97
+ {
98
+ name: 'Day',
99
+ value: 'day',
100
+ },
101
+ {
102
+ name: 'Month',
103
+ value: 'month',
104
+ },
105
+ {
106
+ name: 'Week',
107
+ value: 'week',
108
+ },
109
+ {
110
+ name: 'Year',
111
+ value: 'year',
112
+ },
113
+ ],
114
+ default: 'all',
115
+ description: 'Time period for the leaderboard',
116
+ displayOptions: {
117
+ show: {
118
+ resource: ['bitsLeaderboard'],
119
+ operation: ['get'],
120
+ },
121
+ },
122
+ },
123
+ {
124
+ displayName: 'Started At',
125
+ name: 'startedAt',
126
+ type: 'dateTime',
127
+ default: '',
128
+ placeholder: 'e.g. 2024-01-01T00:00:00Z',
129
+ description: 'Timestamp for the period start (RFC3339 format)',
130
+ displayOptions: {
131
+ show: {
132
+ resource: ['bitsLeaderboard'],
133
+ operation: ['get'],
134
+ },
135
+ },
136
+ },
137
+ {
138
+ displayName: 'User ID or Username',
139
+ name: 'userId',
140
+ type: 'string',
141
+ default: '',
142
+ placeholder: 'e.g. 123456789 or username',
143
+ description: 'Filter results to a specific user ID or username. If a username is provided, it will be automatically converted to user ID.',
144
+ displayOptions: {
145
+ show: {
146
+ resource: ['bitsLeaderboard'],
147
+ operation: ['get'],
148
+ },
149
+ },
150
+ },
151
+ ];
152
+ //# sourceMappingURL=BitsLeaderboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BitsLeaderboard.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/BitsLeaderboard.ts"],"names":[],"mappings":";;;AACA,+DAAoE;AAEvD,QAAA,yBAAyB,GAAsB;IAC3D;QACG,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACxB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,iBAAiB,CAAC;aAC7B;SACD;QACC,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,sBAAsB;gBAC9B,WAAW,EAAE,+CAA+C;gBAC5D,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,mBAAmB;qBACxB;oBACD,IAAI,EAAE;wBACL,OAAO,EAAE;4BACR,KAAK,WAAiB,cAAc;gCACnC,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAW,CAAC;gCAC1D,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAW,CAAC;gCAC5D,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;gCAClE,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAW,CAAC;gCAEjE,MAAM,EAAE,GAAgB,EAAE,CAAC;gCAE3B,IAAI,KAAK,EAAE,CAAC;oCACX,EAAE,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d,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;aACZ;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;aACZ;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;aACd;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;aACb;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;aACb;SACD;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,iCAAiC;QAC9C,cAAc,EAAE;YACf,IAAI,EAAE;gBACP,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC3B,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;KACD;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,2BAA2B;QACxC,WAAW,EAAE,iDAAiD;QAC9D,cAAc,EAAE;YACf,IAAI,EAAE;gBACP,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC3B,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;KACD;IACD;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,WAAW,EAAE,6HAA6H;QAC1I,cAAc,EAAE;YACf,IAAI,EAAE;gBACP,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC3B,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;KACD;CACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const channelOperations: INodeProperties[];
3
+ export declare const channelFields: INodeProperties[];
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.channelFields = exports.channelOperations = void 0;
4
+ const userIdConverter_1 = require("../shared/userIdConverter");
5
+ exports.channelOperations = [
6
+ {
7
+ displayName: 'Operation',
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['channel'],
14
+ },
15
+ },
16
+ options: [
17
+ {
18
+ name: 'Get Information',
19
+ value: 'getInfo',
20
+ action: 'Get channel information',
21
+ description: 'Get information about a channel',
22
+ routing: {
23
+ request: {
24
+ method: 'GET',
25
+ url: '/channels',
26
+ },
27
+ send: {
28
+ preSend: [
29
+ async function (requestOptions) {
30
+ const broadcasterIdInput = this.getNodeParameter('broadcasterId');
31
+ const broadcasterId = await userIdConverter_1.resolveUserIdOrUsername.call(this, broadcasterIdInput);
32
+ requestOptions.qs = {
33
+ broadcaster_id: broadcasterId,
34
+ };
35
+ return requestOptions;
36
+ },
37
+ ],
38
+ },
39
+ output: {
40
+ postReceive: [
41
+ {
42
+ type: 'rootProperty',
43
+ properties: {
44
+ property: 'data',
45
+ },
46
+ },
47
+ {
48
+ type: 'setKeyValue',
49
+ properties: {
50
+ index: 0,
51
+ },
52
+ },
53
+ ],
54
+ },
55
+ },
56
+ },
57
+ ],
58
+ default: 'getInfo',
59
+ },
60
+ ];
61
+ exports.channelFields = [
62
+ {
63
+ displayName: 'Broadcaster ID or Username',
64
+ name: 'broadcasterId',
65
+ type: 'string',
66
+ displayOptions: {
67
+ show: {
68
+ resource: ['channel'],
69
+ operation: ['getInfo'],
70
+ },
71
+ },
72
+ default: '',
73
+ required: true,
74
+ placeholder: 'e.g. 123456789 or username',
75
+ description: 'The broadcaster user ID or username. If a username is provided, it will be automatically converted to user ID.',
76
+ },
77
+ ];
78
+ //# sourceMappingURL=Channel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Channel.ts"],"names":[],"mappings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,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,4BAA4B;QACzC,WAAW,EAAE,gHAAgH;KAC7H;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const chatMessageOperations: INodeProperties[];
3
+ export declare const chatMessageFields: INodeProperties[];
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chatMessageFields = exports.chatMessageOperations = void 0;
4
+ const userIdConverter_1 = require("../shared/userIdConverter");
5
+ exports.chatMessageOperations = [
6
+ {
7
+ displayName: 'Operation',
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['chatMessage'],
14
+ },
15
+ },
16
+ options: [
17
+ {
18
+ name: 'Send Message',
19
+ value: 'sendMessage',
20
+ action: 'Send a message',
21
+ description: 'Send a message to a Twitch chat',
22
+ routing: {
23
+ request: {
24
+ method: 'POST',
25
+ url: '/chat/messages',
26
+ },
27
+ send: {
28
+ preSend: [
29
+ async function (requestOptions) {
30
+ const broadcasterIdInput = this.getNodeParameter('broadcasterId');
31
+ const senderIdInput = this.getNodeParameter('senderId');
32
+ const message = this.getNodeParameter('message');
33
+ const broadcasterId = await userIdConverter_1.resolveUserIdOrUsername.call(this, broadcasterIdInput);
34
+ const senderId = await userIdConverter_1.resolveUserIdOrUsername.call(this, senderIdInput);
35
+ requestOptions.body = {
36
+ broadcaster_id: broadcasterId,
37
+ sender_id: senderId,
38
+ message: message,
39
+ };
40
+ return requestOptions;
41
+ },
42
+ ],
43
+ },
44
+ output: {
45
+ postReceive: [
46
+ {
47
+ type: 'rootProperty',
48
+ properties: {
49
+ property: 'data',
50
+ },
51
+ },
52
+ ],
53
+ },
54
+ },
55
+ },
56
+ ],
57
+ default: 'sendMessage',
58
+ }
59
+ ];
60
+ exports.chatMessageFields = [
61
+ {
62
+ displayName: 'Broadcaster ID or Username',
63
+ name: 'broadcasterId',
64
+ type: 'string',
65
+ displayOptions: {
66
+ show: {
67
+ resource: ['chatMessage'],
68
+ operation: ['sendMessage'],
69
+ },
70
+ },
71
+ default: '',
72
+ required: true,
73
+ placeholder: 'e.g. 123456789 or username',
74
+ description: 'The broadcaster user ID or username. If a username is provided, it will be automatically converted to user ID.',
75
+ },
76
+ {
77
+ displayName: 'Sender ID or Username',
78
+ name: 'senderId',
79
+ type: 'string',
80
+ displayOptions: {
81
+ show: {
82
+ resource: ['chatMessage'],
83
+ operation: ['sendMessage'],
84
+ },
85
+ },
86
+ default: '',
87
+ required: true,
88
+ placeholder: 'e.g. 987654321 or username',
89
+ description: 'The sender user ID or username (must match the user access token). If a username is provided, it will be automatically converted to user ID.',
90
+ },
91
+ {
92
+ displayName: 'Message',
93
+ name: 'message',
94
+ type: 'string',
95
+ displayOptions: {
96
+ show: {
97
+ resource: ['chatMessage'],
98
+ operation: ['sendMessage'],
99
+ },
100
+ },
101
+ default: '',
102
+ required: true,
103
+ placeholder: 'e.g. Hello, Twitch!',
104
+ description: 'The message to send. Maximum length: 500 characters.',
105
+ typeOptions: {
106
+ maxValue: 500,
107
+ },
108
+ },
109
+ ];
110
+ //# sourceMappingURL=ChatMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatMessage.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/ChatMessage.ts"],"names":[],"mappings":";;;AACA,+DAAoE;AAEvD,QAAA,qBAAqB,GAAsB;IACvD;QACG,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACxB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,aAAa,CAAC;aACzB;SACD;QACC,OAAO,EAAE;YACR;gBACC,IA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AC1B;SACD;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,4BAA4B;QACzC,WAAW,EAAE,gHAAgH;KAC7H;IACD;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACP,QAAQ,EAAE,CAAC,aAAa,CAAC;gBACvB,SAAS,EAAE,CAAC,aAAa,CAAC;aAC1B;SACD;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,4BAA4B;QACzC,WAAW,EAAE,8IAA8I;KAC3J;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACP,QAAQ,EAAE,CAAC,aAAa,CAAC;gBACvB,SAAS,EAAE,CAAC,aAAa,CAAC;aAC1B;SACD;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,qBAAqB;QAClC,WAAW,EAAE,sDAAsD;QACnE,WAAW,EAAE;YACZ,QAAQ,EAAE,GAAG;SACb;KACD;CACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const chatterOperations: INodeProperties[];
3
+ export declare const chatterFields: INodeProperties[];
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chatterFields = exports.chatterOperations = void 0;
4
+ const userIdConverter_1 = require("../shared/userIdConverter");
5
+ exports.chatterOperations = [
6
+ {
7
+ displayName: 'Operation',
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['chatter'],
14
+ },
15
+ },
16
+ options: [
17
+ {
18
+ name: 'Get',
19
+ value: 'get',
20
+ action: 'Get chatters',
21
+ description: 'Get the list of users that are connected to the broadcaster\'s chat session',
22
+ routing: {
23
+ request: {
24
+ method: 'GET',
25
+ url: '/chat/chatters',
26
+ },
27
+ send: {
28
+ preSend: [
29
+ async function (requestOptions) {
30
+ const broadcasterIdInput = this.getNodeParameter('broadcasterId');
31
+ const moderatorIdInput = this.getNodeParameter('moderatorId');
32
+ const first = this.getNodeParameter('first');
33
+ const broadcasterId = await userIdConverter_1.resolveUserIdOrUsername.call(this, broadcasterIdInput);
34
+ const moderatorId = await userIdConverter_1.resolveUserIdOrUsername.call(this, moderatorIdInput);
35
+ requestOptions.qs = {
36
+ broadcaster_id: broadcasterId,
37
+ moderator_id: moderatorId,
38
+ first: first,
39
+ };
40
+ return requestOptions;
41
+ },
42
+ ],
43
+ },
44
+ output: {
45
+ postReceive: [
46
+ {
47
+ type: 'rootProperty',
48
+ properties: {
49
+ property: 'data',
50
+ },
51
+ },
52
+ ],
53
+ },
54
+ },
55
+ },
56
+ ],
57
+ default: 'get',
58
+ }
59
+ ];
60
+ exports.chatterFields = [
61
+ {
62
+ displayName: 'Broadcaster ID or Username',
63
+ name: 'broadcasterId',
64
+ type: 'string',
65
+ displayOptions: {
66
+ show: {
67
+ resource: ['chatter'],
68
+ operation: ['get'],
69
+ },
70
+ },
71
+ default: '',
72
+ required: true,
73
+ placeholder: 'e.g. 123456789 or username',
74
+ description: 'The broadcaster user ID or username. If a username is provided, it will be automatically converted to user ID.',
75
+ },
76
+ {
77
+ displayName: 'Moderator ID or Username',
78
+ name: 'moderatorId',
79
+ type: 'string',
80
+ displayOptions: {
81
+ show: {
82
+ resource: ['chatter'],
83
+ operation: ['get'],
84
+ },
85
+ },
86
+ default: '',
87
+ required: true,
88
+ placeholder: 'e.g. 987654321 or username',
89
+ description: 'The moderator user ID or username. If a username is provided, it will be automatically converted to user ID.',
90
+ },
91
+ {
92
+ displayName: 'First',
93
+ name: 'first',
94
+ type: 'number',
95
+ displayOptions: {
96
+ show: {
97
+ resource: ['chatter'],
98
+ operation: ['get'],
99
+ },
100
+ },
101
+ default: 100,
102
+ description: 'The maximum number of items to return (1-1000)',
103
+ typeOptions: {
104
+ minValue: 1,
105
+ maxValue: 1000,
106
+ },
107
+ },
108
+ ];
109
+ //# sourceMappingURL=Chatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chatter.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Chatter.ts"],"names":[],"mappings":";;;AACA,+DAAoE;AAEvD,QAAA,iBAAiB,GAAsB;IACnD;QACG,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACxB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;aACrB;SACD;QACC,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,cAAc;gBACtB,WAAW,EAAE,6EAA6E;gBAC1F,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,gBAAgB;qBACrB;oBACD,IAAI,EAAE;wBACL,OAAO,EAAE;4BACR,KAAK,WAAiB,cAAc;gCACnC,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAW,CAAC;gCAC5E,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAW,CAAC;gCACxE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAW,CAAC;gCAGvD,MAAM,aAAa,GAAG,MAAM,yCAAuB,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;gCACnF,MAAM,WAAW,GAAG,MAAM,yCAAuB,CAAC,IAAI,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;gCAE/E,cAAc,CAAC,EAAE,GAAG;oCACnB,cAAc,EAAE,aAA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C;YACX,QAAQ,EAAE,IAAI;SACd;KACD;CACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const cheermoteOperations: INodeProperties[];
3
+ export declare const cheermoteFields: INodeProperties[];
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cheermoteFields = exports.cheermoteOperations = void 0;
4
+ const userIdConverter_1 = require("../shared/userIdConverter");
5
+ exports.cheermoteOperations = [
6
+ {
7
+ displayName: 'Operation',
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['cheermote'],
14
+ },
15
+ },
16
+ options: [
17
+ {
18
+ name: 'Get',
19
+ value: 'get',
20
+ action: 'Get cheermotes',
21
+ description: 'Get the list of Cheermotes (animated emotes used with Bits)',
22
+ routing: {
23
+ request: {
24
+ method: 'GET',
25
+ url: '/bits/cheermotes',
26
+ },
27
+ send: {
28
+ preSend: [
29
+ async function (requestOptions) {
30
+ const broadcasterIdInput = this.getNodeParameter('broadcasterId', '');
31
+ if (broadcasterIdInput) {
32
+ const broadcasterId = await userIdConverter_1.resolveUserIdOrUsername.call(this, broadcasterIdInput);
33
+ requestOptions.qs = {
34
+ broadcaster_id: broadcasterId,
35
+ };
36
+ }
37
+ return requestOptions;
38
+ },
39
+ ],
40
+ },
41
+ output: {
42
+ postReceive: [
43
+ {
44
+ type: 'rootProperty',
45
+ properties: {
46
+ property: 'data',
47
+ },
48
+ },
49
+ ],
50
+ },
51
+ },
52
+ },
53
+ ],
54
+ default: 'get',
55
+ }
56
+ ];
57
+ exports.cheermoteFields = [
58
+ {
59
+ displayName: 'Broadcaster ID or Username',
60
+ name: 'broadcasterId',
61
+ type: 'string',
62
+ displayOptions: {
63
+ show: {
64
+ resource: ['cheermote'],
65
+ operation: ['get'],
66
+ },
67
+ },
68
+ default: '',
69
+ placeholder: 'e.g. 123456789 or username',
70
+ description: 'The broadcaster user ID or username. If omitted, returns global cheermotes. If a username is provided, it will be automatically converted to user ID.',
71
+ },
72
+ ];
73
+ //# sourceMappingURL=Cheermote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cheermote.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Cheermote.ts"],"names":[],"mappings":";;;AACA,+DAAoE;AAEvD,QAAA,mBAAmB,GAAsB;IACrD;QACG,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACxB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,WAAW,CAAC;aACvB;SACD;QACC,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,gBAAgB;gBACxB,WAAW,EAAE,6DAA6D;gBAC1E,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,kBAAkB;qBACvB;oBACD,IAAI,EAAE;wBACL,OAAO,EAAE;4BACR,KAAK,WAAiB,cAAc;gCACnC,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,EAAE,CAAW,CAAC;gCAEhF,IAAI,kBAAkB,EAAE,CAAC;oCACxB,MAAM,aAAa,GAAG,MAAM,yCAAuB,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;oCACnF,cAAc,CAAC,EAAE,GAAG;wCACnB,cAAc,EAAE,aAAa;qCAC7B,CAAC;gCACH,CAAC;gCAED,OAAO,cAAc,CAAC;4BACvB,CAAC;yBACD;qBACD;oBACD,MAAM,EAAE;wBACP,WAAW,EAAE;4BACZ;gCACC,IAAI,EAAE,cAAc;gCACpB,UAAU,EAAE;oCACX,QAAQ,EAAE,MAAM;iCAChB;6BACD;yBACD;qBACD;iBACD;aACD;SACD;QACD,OAAO,EAAE,KAAK;KACd;CACH,CAAC;AAEW,QAAA,eAAe,GAAsB;IAC/C;QACC,WAAW,EAAE,4BAA4B;QACzC,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACP,QAAQ,EAAE,CAAC,WAAW,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,WAAW,EAAE,uJAAuJ;KACpK;CACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const clipOperations: INodeProperties[];
3
+ export declare const clipFields: INodeProperties[];