@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.
Files changed (205) hide show
  1. package/dist/credentials/TwitchOAuth2Api.credentials.d.ts +2 -1
  2. package/dist/credentials/TwitchOAuth2Api.credentials.js +8 -0
  3. package/dist/credentials/TwitchOAuth2Api.credentials.js.map +1 -1
  4. package/dist/nodes/{TwitchBans/TwitchBans.node.d.ts → Twitch/Twitch.node.d.ts} +1 -1
  5. package/dist/nodes/Twitch/Twitch.node.js +145 -0
  6. package/dist/nodes/Twitch/Twitch.node.js.map +1 -0
  7. package/dist/nodes/Twitch/resources/Announcement.d.ts +3 -0
  8. package/dist/nodes/Twitch/resources/Announcement.js +146 -0
  9. package/dist/nodes/Twitch/resources/Announcement.js.map +1 -0
  10. package/dist/nodes/Twitch/resources/Ban.d.ts +3 -0
  11. package/dist/nodes/Twitch/resources/Ban.js +324 -0
  12. package/dist/nodes/Twitch/resources/Ban.js.map +1 -0
  13. package/dist/nodes/Twitch/resources/BitsLeaderboard.d.ts +3 -0
  14. package/dist/nodes/Twitch/resources/BitsLeaderboard.js +152 -0
  15. package/dist/nodes/Twitch/resources/BitsLeaderboard.js.map +1 -0
  16. package/dist/nodes/Twitch/resources/Channel.d.ts +3 -0
  17. package/dist/nodes/Twitch/resources/Channel.js +78 -0
  18. package/dist/nodes/Twitch/resources/Channel.js.map +1 -0
  19. package/dist/nodes/Twitch/resources/ChatMessage.d.ts +3 -0
  20. package/dist/nodes/Twitch/resources/ChatMessage.js +110 -0
  21. package/dist/nodes/Twitch/resources/ChatMessage.js.map +1 -0
  22. package/dist/nodes/Twitch/resources/Chatter.d.ts +3 -0
  23. package/dist/nodes/Twitch/resources/Chatter.js +109 -0
  24. package/dist/nodes/Twitch/resources/Chatter.js.map +1 -0
  25. package/dist/nodes/Twitch/resources/Cheermote.d.ts +3 -0
  26. package/dist/nodes/Twitch/resources/Cheermote.js +73 -0
  27. package/dist/nodes/Twitch/resources/Cheermote.js.map +1 -0
  28. package/dist/nodes/Twitch/resources/Clip.d.ts +3 -0
  29. package/dist/nodes/Twitch/resources/Clip.js +273 -0
  30. package/dist/nodes/Twitch/resources/Clip.js.map +1 -0
  31. package/dist/nodes/Twitch/resources/CustomReward.d.ts +3 -0
  32. package/dist/nodes/Twitch/resources/CustomReward.js +564 -0
  33. package/dist/nodes/Twitch/resources/CustomReward.js.map +1 -0
  34. package/dist/nodes/Twitch/resources/Emote.d.ts +3 -0
  35. package/dist/nodes/Twitch/resources/Emote.js +72 -0
  36. package/dist/nodes/Twitch/resources/Emote.js.map +1 -0
  37. package/dist/nodes/Twitch/resources/Game.d.ts +3 -0
  38. package/dist/nodes/Twitch/resources/Game.js +209 -0
  39. package/dist/nodes/Twitch/resources/Game.js.map +1 -0
  40. package/dist/nodes/Twitch/resources/Moderator.d.ts +3 -0
  41. package/dist/nodes/Twitch/resources/Moderator.js +268 -0
  42. package/dist/nodes/Twitch/resources/Moderator.js.map +1 -0
  43. package/dist/nodes/Twitch/resources/Poll.d.ts +3 -0
  44. package/dist/nodes/Twitch/resources/Poll.js +411 -0
  45. package/dist/nodes/Twitch/resources/Poll.js.map +1 -0
  46. package/dist/nodes/Twitch/resources/Prediction.d.ts +3 -0
  47. package/dist/nodes/Twitch/resources/Prediction.js +367 -0
  48. package/dist/nodes/Twitch/resources/Prediction.js.map +1 -0
  49. package/dist/nodes/Twitch/resources/Raid.d.ts +3 -0
  50. package/dist/nodes/Twitch/resources/Raid.js +161 -0
  51. package/dist/nodes/Twitch/resources/Raid.js.map +1 -0
  52. package/dist/nodes/Twitch/resources/Redemption.d.ts +3 -0
  53. package/dist/nodes/Twitch/resources/Redemption.js +260 -0
  54. package/dist/nodes/Twitch/resources/Redemption.js.map +1 -0
  55. package/dist/nodes/Twitch/resources/Schedule.d.ts +3 -0
  56. package/dist/nodes/Twitch/resources/Schedule.js +415 -0
  57. package/dist/nodes/Twitch/resources/Schedule.js.map +1 -0
  58. package/dist/nodes/Twitch/resources/Search.d.ts +3 -0
  59. package/dist/nodes/Twitch/resources/Search.js +108 -0
  60. package/dist/nodes/Twitch/resources/Search.js.map +1 -0
  61. package/dist/nodes/Twitch/resources/Stream.d.ts +3 -0
  62. package/dist/nodes/Twitch/resources/Stream.js +68 -0
  63. package/dist/nodes/Twitch/resources/Stream.js.map +1 -0
  64. package/dist/nodes/Twitch/resources/Subscription.d.ts +3 -0
  65. package/dist/nodes/Twitch/resources/Subscription.js +190 -0
  66. package/dist/nodes/Twitch/resources/Subscription.js.map +1 -0
  67. package/dist/nodes/Twitch/resources/Team.d.ts +3 -0
  68. package/dist/nodes/Twitch/resources/Team.js +168 -0
  69. package/dist/nodes/Twitch/resources/Team.js.map +1 -0
  70. package/dist/nodes/Twitch/resources/User.d.ts +3 -0
  71. package/dist/nodes/Twitch/resources/User.js +68 -0
  72. package/dist/nodes/Twitch/resources/User.js.map +1 -0
  73. package/dist/nodes/Twitch/resources/Video.d.ts +3 -0
  74. package/dist/nodes/Twitch/resources/Video.js +323 -0
  75. package/dist/nodes/Twitch/resources/Video.js.map +1 -0
  76. package/dist/nodes/Twitch/resources/Whisper.d.ts +3 -0
  77. package/dist/nodes/Twitch/resources/Whisper.js +78 -0
  78. package/dist/nodes/Twitch/resources/Whisper.js.map +1 -0
  79. package/dist/nodes/Twitch/shared/userIdConverter.d.ts +2 -0
  80. package/dist/nodes/Twitch/shared/userIdConverter.js +32 -0
  81. package/dist/nodes/Twitch/shared/userIdConverter.js.map +1 -0
  82. package/dist/nodes/TwitchTrigger/TwitchTrigger.node.js +6 -4
  83. package/dist/nodes/TwitchTrigger/TwitchTrigger.node.js.map +1 -1
  84. package/dist/package.json +3 -26
  85. package/dist/tsconfig.tsbuildinfo +1 -1
  86. package/package.json +3 -26
  87. package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.d.ts +0 -4
  88. package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.js +0 -166
  89. package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.js.map +0 -1
  90. package/dist/nodes/TwitchBans/TwitchBans.node.js +0 -324
  91. package/dist/nodes/TwitchBans/TwitchBans.node.js.map +0 -1
  92. package/dist/nodes/TwitchBans/twitch.dark.svg +0 -1
  93. package/dist/nodes/TwitchBans/twitch.svg +0 -1
  94. package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.d.ts +0 -4
  95. package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.js +0 -172
  96. package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.js.map +0 -1
  97. package/dist/nodes/TwitchBitsLeaderboard/twitch.dark.svg +0 -1
  98. package/dist/nodes/TwitchBitsLeaderboard/twitch.svg +0 -1
  99. package/dist/nodes/TwitchChannels/TwitchChannels.node.d.ts +0 -4
  100. package/dist/nodes/TwitchChannels/TwitchChannels.node.js +0 -94
  101. package/dist/nodes/TwitchChannels/TwitchChannels.node.js.map +0 -1
  102. package/dist/nodes/TwitchChannels/twitch.dark.svg +0 -1
  103. package/dist/nodes/TwitchChannels/twitch.svg +0 -1
  104. package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.d.ts +0 -4
  105. package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.js +0 -130
  106. package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.js.map +0 -1
  107. package/dist/nodes/TwitchChatMessages/twitch.dark.svg +0 -1
  108. package/dist/nodes/TwitchChatMessages/twitch.svg +0 -1
  109. package/dist/nodes/TwitchChatters/TwitchChatters.node.d.ts +0 -4
  110. package/dist/nodes/TwitchChatters/TwitchChatters.node.js +0 -118
  111. package/dist/nodes/TwitchChatters/TwitchChatters.node.js.map +0 -1
  112. package/dist/nodes/TwitchChatters/twitch.dark.svg +0 -1
  113. package/dist/nodes/TwitchChatters/twitch.svg +0 -1
  114. package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.d.ts +0 -4
  115. package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.js +0 -83
  116. package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.js.map +0 -1
  117. package/dist/nodes/TwitchCheermotes/twitch.dark.svg +0 -1
  118. package/dist/nodes/TwitchCheermotes/twitch.svg +0 -1
  119. package/dist/nodes/TwitchClips/TwitchClips.node.d.ts +0 -4
  120. package/dist/nodes/TwitchClips/TwitchClips.node.js +0 -278
  121. package/dist/nodes/TwitchClips/TwitchClips.node.js.map +0 -1
  122. package/dist/nodes/TwitchClips/twitch.dark.svg +0 -1
  123. package/dist/nodes/TwitchClips/twitch.svg +0 -1
  124. package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.d.ts +0 -4
  125. package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.js +0 -576
  126. package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.js.map +0 -1
  127. package/dist/nodes/TwitchCustomRewards/twitch.dark.svg +0 -1
  128. package/dist/nodes/TwitchCustomRewards/twitch.svg +0 -1
  129. package/dist/nodes/TwitchEmotes/TwitchEmotes.node.d.ts +0 -4
  130. package/dist/nodes/TwitchEmotes/TwitchEmotes.node.js +0 -95
  131. package/dist/nodes/TwitchEmotes/TwitchEmotes.node.js.map +0 -1
  132. package/dist/nodes/TwitchEmotes/twitch.dark.svg +0 -1
  133. package/dist/nodes/TwitchEmotes/twitch.svg +0 -1
  134. package/dist/nodes/TwitchGames/TwitchGames.node.d.ts +0 -4
  135. package/dist/nodes/TwitchGames/TwitchGames.node.js +0 -230
  136. package/dist/nodes/TwitchGames/TwitchGames.node.js.map +0 -1
  137. package/dist/nodes/TwitchGames/twitch.dark.svg +0 -1
  138. package/dist/nodes/TwitchGames/twitch.svg +0 -1
  139. package/dist/nodes/TwitchModerators/TwitchModerators.node.d.ts +0 -4
  140. package/dist/nodes/TwitchModerators/TwitchModerators.node.js +0 -280
  141. package/dist/nodes/TwitchModerators/TwitchModerators.node.js.map +0 -1
  142. package/dist/nodes/TwitchModerators/twitch.dark.svg +0 -1
  143. package/dist/nodes/TwitchModerators/twitch.svg +0 -1
  144. package/dist/nodes/TwitchPolls/TwitchPolls.node.d.ts +0 -4
  145. package/dist/nodes/TwitchPolls/TwitchPolls.node.js +0 -422
  146. package/dist/nodes/TwitchPolls/TwitchPolls.node.js.map +0 -1
  147. package/dist/nodes/TwitchPolls/twitch.dark.svg +0 -1
  148. package/dist/nodes/TwitchPolls/twitch.svg +0 -1
  149. package/dist/nodes/TwitchPredictions/TwitchPredictions.node.d.ts +0 -4
  150. package/dist/nodes/TwitchPredictions/TwitchPredictions.node.js +0 -378
  151. package/dist/nodes/TwitchPredictions/TwitchPredictions.node.js.map +0 -1
  152. package/dist/nodes/TwitchPredictions/twitch.dark.svg +0 -1
  153. package/dist/nodes/TwitchPredictions/twitch.svg +0 -1
  154. package/dist/nodes/TwitchRaids/TwitchRaids.node.d.ts +0 -4
  155. package/dist/nodes/TwitchRaids/TwitchRaids.node.js +0 -162
  156. package/dist/nodes/TwitchRaids/TwitchRaids.node.js.map +0 -1
  157. package/dist/nodes/TwitchRaids/twitch.dark.svg +0 -1
  158. package/dist/nodes/TwitchRaids/twitch.svg +0 -1
  159. package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.d.ts +0 -4
  160. package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.js +0 -271
  161. package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.js.map +0 -1
  162. package/dist/nodes/TwitchRedemptions/twitch.dark.svg +0 -1
  163. package/dist/nodes/TwitchRedemptions/twitch.svg +0 -1
  164. package/dist/nodes/TwitchSchedule/TwitchSchedule.node.d.ts +0 -4
  165. package/dist/nodes/TwitchSchedule/TwitchSchedule.node.js +0 -427
  166. package/dist/nodes/TwitchSchedule/TwitchSchedule.node.js.map +0 -1
  167. package/dist/nodes/TwitchSchedule/twitch.dark.svg +0 -1
  168. package/dist/nodes/TwitchSchedule/twitch.svg +0 -1
  169. package/dist/nodes/TwitchSearch/TwitchSearch.node.d.ts +0 -4
  170. package/dist/nodes/TwitchSearch/TwitchSearch.node.js +0 -134
  171. package/dist/nodes/TwitchSearch/TwitchSearch.node.js.map +0 -1
  172. package/dist/nodes/TwitchSearch/twitch.dark.svg +0 -1
  173. package/dist/nodes/TwitchSearch/twitch.svg +0 -1
  174. package/dist/nodes/TwitchStreams/TwitchStreams.node.d.ts +0 -4
  175. package/dist/nodes/TwitchStreams/TwitchStreams.node.js +0 -94
  176. package/dist/nodes/TwitchStreams/TwitchStreams.node.js.map +0 -1
  177. package/dist/nodes/TwitchStreams/twitch.dark.svg +0 -1
  178. package/dist/nodes/TwitchStreams/twitch.svg +0 -1
  179. package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.d.ts +0 -4
  180. package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.js +0 -202
  181. package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.js.map +0 -1
  182. package/dist/nodes/TwitchSubscriptions/twitch.dark.svg +0 -1
  183. package/dist/nodes/TwitchSubscriptions/twitch.svg +0 -1
  184. package/dist/nodes/TwitchTeams/TwitchTeams.node.d.ts +0 -4
  185. package/dist/nodes/TwitchTeams/TwitchTeams.node.js +0 -189
  186. package/dist/nodes/TwitchTeams/TwitchTeams.node.js.map +0 -1
  187. package/dist/nodes/TwitchTeams/twitch.dark.svg +0 -1
  188. package/dist/nodes/TwitchTeams/twitch.svg +0 -1
  189. package/dist/nodes/TwitchUsers/TwitchUsers.node.d.ts +0 -4
  190. package/dist/nodes/TwitchUsers/TwitchUsers.node.js +0 -94
  191. package/dist/nodes/TwitchUsers/TwitchUsers.node.js.map +0 -1
  192. package/dist/nodes/TwitchUsers/twitch.dark.svg +0 -1
  193. package/dist/nodes/TwitchUsers/twitch.svg +0 -1
  194. package/dist/nodes/TwitchVideos/TwitchVideos.node.d.ts +0 -4
  195. package/dist/nodes/TwitchVideos/TwitchVideos.node.js +0 -341
  196. package/dist/nodes/TwitchVideos/TwitchVideos.node.js.map +0 -1
  197. package/dist/nodes/TwitchVideos/twitch.dark.svg +0 -1
  198. package/dist/nodes/TwitchVideos/twitch.svg +0 -1
  199. package/dist/nodes/TwitchWhispers/TwitchWhispers.node.d.ts +0 -4
  200. package/dist/nodes/TwitchWhispers/TwitchWhispers.node.js +0 -105
  201. package/dist/nodes/TwitchWhispers/TwitchWhispers.node.js.map +0 -1
  202. package/dist/nodes/TwitchWhispers/twitch.dark.svg +0 -1
  203. package/dist/nodes/TwitchWhispers/twitch.svg +0 -1
  204. /package/dist/nodes/{TwitchAnnouncements → Twitch}/twitch.dark.svg +0 -0
  205. /package/dist/nodes/{TwitchAnnouncements → Twitch}/twitch.svg +0 -0
@@ -1,94 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TwitchStreams = void 0;
4
- const n8n_workflow_1 = require("n8n-workflow");
5
- class TwitchStreams {
6
- constructor() {
7
- this.description = {
8
- displayName: 'Twitch Streams',
9
- name: 'twitchStreams',
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 Streams API',
15
- defaults: {
16
- name: 'Twitch Streams',
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 stream information',
45
- description: 'Get information about a live stream',
46
- routing: {
47
- request: {
48
- method: 'GET',
49
- url: '/streams',
50
- qs: {
51
- user_login: '={{$parameter.streamUserLogin}}',
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: 'get',
74
- },
75
- {
76
- displayName: 'User Login',
77
- name: 'streamUserLogin',
78
- type: 'string',
79
- displayOptions: {
80
- show: {
81
- operation: ['get'],
82
- },
83
- },
84
- default: '',
85
- required: true,
86
- placeholder: 'e.g. username',
87
- description: 'The user login name',
88
- },
89
- ],
90
- };
91
- }
92
- }
93
- exports.TwitchStreams = TwitchStreams;
94
- //# sourceMappingURL=TwitchStreams.node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TwitchStreams.node.js","sourceRoot":"","sources":["../../../nodes/TwitchStreams/TwitchStreams.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAE9F,MAAa,aAAa;IAA1B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,eAAe;YACrB,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,kCAAkC;YAC/C,QAAQ,EAAE;gBACT,IAAI,EAAE,gBAAgB;aACtB;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,wBAAwB;4BAChC,WAAW,EAAE,qCAAqC;4BAClD,OAAO,EAAE;gCACR,OAAO,EAAE;oCACR,MAAM,EAAE,KAAK;oCACb,GAAG,EAAE,UAAU;oCACf,EAAE,EAAE;wCACH,UAAU,EAAE,iCAAiC;qCAC7C;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,KAAK;iBACd;gBACD;oBACC,WAAW,EAAE,YAAY;oBACzB,IAAI,EAAE,iBAAiB;oBACvB,IAAI,EAAE,QAAQ;oBACd,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,KAAK,CAAC;yBAClB;qBACD;oBACD,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,eAAe;oBAC5B,WAAW,EAAE,qBAAqB;iBAClC;aACD;SACD,CAAC;IACH,CAAC;CAAA;AArFD,sCAqFC"}
@@ -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,4 +0,0 @@
1
- import { type INodeType, type INodeTypeDescription } from 'n8n-workflow';
2
- export declare class TwitchSubscriptions implements INodeType {
3
- description: INodeTypeDescription;
4
- }
@@ -1,202 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TwitchSubscriptions = void 0;
4
- const n8n_workflow_1 = require("n8n-workflow");
5
- class TwitchSubscriptions {
6
- constructor() {
7
- this.description = {
8
- displayName: 'Twitch Subscriptions',
9
- name: 'twitchSubscriptions',
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 Subscriptions API',
15
- defaults: {
16
- name: 'Twitch Subscriptions',
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 Broadcaster Subscriptions',
43
- value: 'getBroadcasterSubscriptions',
44
- action: 'Get broadcaster subscriptions',
45
- description: 'Get a list of broadcaster subscriptions',
46
- routing: {
47
- request: {
48
- method: 'GET',
49
- url: '/subscriptions',
50
- },
51
- send: {
52
- preSend: [
53
- async function (requestOptions) {
54
- const broadcasterId = this.getNodeParameter('broadcasterId', 0);
55
- const userId = this.getNodeParameter('userId', 0);
56
- const first = this.getNodeParameter('first', 0);
57
- const after = this.getNodeParameter('after', 0);
58
- const qs = {
59
- broadcaster_id: broadcasterId,
60
- };
61
- if (userId) {
62
- const userIds = userId.split(',').map((id) => id.trim()).filter((id) => id);
63
- if (userIds.length > 0) {
64
- qs.user_id = userIds;
65
- }
66
- }
67
- if (first)
68
- qs.first = first;
69
- if (after)
70
- qs.after = after;
71
- requestOptions.qs = qs;
72
- return requestOptions;
73
- },
74
- ],
75
- },
76
- output: {
77
- postReceive: [
78
- {
79
- type: 'rootProperty',
80
- properties: {
81
- property: 'data',
82
- },
83
- },
84
- ],
85
- },
86
- },
87
- },
88
- {
89
- name: 'Check User Subscription',
90
- value: 'checkUserSubscription',
91
- action: 'Check user subscription',
92
- description: 'Check if a user is subscribed to a broadcaster',
93
- routing: {
94
- request: {
95
- method: 'GET',
96
- url: '/subscriptions/user',
97
- },
98
- send: {
99
- preSend: [
100
- async function (requestOptions) {
101
- const broadcasterId = this.getNodeParameter('broadcasterId', 0);
102
- const userId = this.getNodeParameter('checkUserId', 0);
103
- requestOptions.qs = {
104
- broadcaster_id: broadcasterId,
105
- user_id: userId,
106
- };
107
- return requestOptions;
108
- },
109
- ],
110
- },
111
- output: {
112
- postReceive: [
113
- {
114
- type: 'rootProperty',
115
- properties: {
116
- property: 'data',
117
- },
118
- },
119
- {
120
- type: 'setKeyValue',
121
- properties: {
122
- index: 0,
123
- },
124
- },
125
- ],
126
- },
127
- },
128
- },
129
- ],
130
- default: 'getBroadcasterSubscriptions',
131
- },
132
- {
133
- displayName: 'Broadcaster ID',
134
- name: 'broadcasterId',
135
- type: 'string',
136
- required: true,
137
- default: '',
138
- placeholder: 'e.g. 123456789',
139
- },
140
- {
141
- displayName: 'User IDs',
142
- name: 'userId',
143
- type: 'string',
144
- default: '',
145
- placeholder: 'e.g. 123456789,987654321',
146
- description: 'Filter by user IDs (comma-separated)',
147
- displayOptions: {
148
- show: {
149
- operation: ['getBroadcasterSubscriptions'],
150
- },
151
- },
152
- },
153
- {
154
- displayName: 'User ID',
155
- name: 'checkUserId',
156
- type: 'string',
157
- required: true,
158
- default: '',
159
- placeholder: 'e.g. 123456789',
160
- description: 'The user ID to check',
161
- displayOptions: {
162
- show: {
163
- operation: ['checkUserSubscription'],
164
- },
165
- },
166
- },
167
- {
168
- displayName: 'First',
169
- name: 'first',
170
- type: 'number',
171
- default: 20,
172
- typeOptions: {
173
- minValue: 1,
174
- maxValue: 100,
175
- },
176
- placeholder: 'e.g. 20',
177
- description: 'Number of results (1-100)',
178
- displayOptions: {
179
- show: {
180
- operation: ['getBroadcasterSubscriptions'],
181
- },
182
- },
183
- },
184
- {
185
- displayName: 'After',
186
- name: 'after',
187
- type: 'string',
188
- default: '',
189
- placeholder: 'e.g. eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6MjB9fQ',
190
- description: 'Pagination cursor',
191
- displayOptions: {
192
- show: {
193
- operation: ['getBroadcasterSubscriptions'],
194
- },
195
- },
196
- },
197
- ],
198
- };
199
- }
200
- }
201
- exports.TwitchSubscriptions = TwitchSubscriptions;
202
- //# sourceMappingURL=TwitchSubscriptions.node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TwitchSubscriptions.node.js","sourceRoot":"","sources":["../../../nodes/TwitchSubscriptions/TwitchSubscriptions.node.ts"],"names":[],"mappings":";;;AAAA,+CAAgH;AAEhH,MAAa,mBAAmB;IAAhC;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,E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AAO;oBACb,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE;wBACZ,QAAQ,EAAE,CAAC;wBACX,QAAQ,EAAE,GAAG;qBACb;oBACD,WAAW,EAAE,SAAS;oBACtB,WAAW,EAAE,2BAA2B;oBACxC,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,6BAA6B,CAAC;yBAC1C;qBACD;iBACD;gBACD;oBACC,WAAW,EAAE,OAAO;oBACpB,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,6CAA6C;oBAC1D,WAAW,EAAE,mBAAmB;oBAChC,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,6BAA6B,CAAC;yBAC1C;qBACD;iBACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AArMD,kDAqMC"}
@@ -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,4 +0,0 @@
1
- import { type INodeType, type INodeTypeDescription } from 'n8n-workflow';
2
- export declare class TwitchTeams implements INodeType {
3
- description: INodeTypeDescription;
4
- }
@@ -1,189 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TwitchTeams = void 0;
4
- const n8n_workflow_1 = require("n8n-workflow");
5
- class TwitchTeams {
6
- constructor() {
7
- this.description = {
8
- displayName: 'Twitch Teams',
9
- name: 'twitchTeams',
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 Teams API',
15
- defaults: {
16
- name: 'Twitch Teams',
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 Channel Teams',
43
- value: 'getChannelTeams',
44
- action: 'Get channel teams',
45
- description: 'Get all teams that a broadcaster is a member of',
46
- routing: {
47
- request: {
48
- method: 'GET',
49
- url: '/teams/channel',
50
- },
51
- send: {
52
- preSend: [
53
- async function (requestOptions) {
54
- const broadcasterId = this.getNodeParameter('broadcasterId', 0);
55
- requestOptions.qs = {
56
- broadcaster_id: broadcasterId,
57
- };
58
- return requestOptions;
59
- },
60
- ],
61
- },
62
- output: {
63
- postReceive: [
64
- {
65
- type: 'rootProperty',
66
- properties: {
67
- property: 'data',
68
- },
69
- },
70
- ],
71
- },
72
- },
73
- },
74
- {
75
- name: 'Get Team',
76
- value: 'getTeam',
77
- action: 'Get team',
78
- description: 'Get information about a specific team',
79
- routing: {
80
- request: {
81
- method: 'GET',
82
- url: '/teams',
83
- },
84
- send: {
85
- preSend: [
86
- async function (requestOptions) {
87
- const searchBy = this.getNodeParameter('searchBy', 0);
88
- const searchValue = this.getNodeParameter(searchBy, 0);
89
- requestOptions.qs = {
90
- [searchBy]: searchValue,
91
- };
92
- return requestOptions;
93
- },
94
- ],
95
- },
96
- output: {
97
- postReceive: [
98
- {
99
- type: 'rootProperty',
100
- properties: {
101
- property: 'data',
102
- },
103
- },
104
- {
105
- type: 'setKeyValue',
106
- properties: {
107
- index: 0,
108
- },
109
- },
110
- ],
111
- },
112
- },
113
- },
114
- ],
115
- default: 'getChannelTeams',
116
- },
117
- {
118
- displayName: 'Broadcaster ID',
119
- name: 'broadcasterId',
120
- type: 'string',
121
- required: true,
122
- default: '',
123
- placeholder: 'e.g. 123456789',
124
- description: 'The ID of the broadcaster',
125
- displayOptions: {
126
- show: {
127
- operation: ['getChannelTeams'],
128
- },
129
- },
130
- },
131
- {
132
- displayName: 'Search By',
133
- name: 'searchBy',
134
- type: 'options',
135
- required: true,
136
- options: [
137
- {
138
- name: 'Name',
139
- value: 'name',
140
- },
141
- {
142
- name: 'ID',
143
- value: 'id',
144
- },
145
- ],
146
- default: 'name',
147
- description: 'Search team by name or ID',
148
- displayOptions: {
149
- show: {
150
- operation: ['getTeam'],
151
- },
152
- },
153
- },
154
- {
155
- displayName: 'Team Name',
156
- name: 'name',
157
- type: 'string',
158
- required: true,
159
- default: '',
160
- placeholder: 'e.g. staff',
161
- description: 'The name of the team',
162
- displayOptions: {
163
- show: {
164
- operation: ['getTeam'],
165
- searchBy: ['name'],
166
- },
167
- },
168
- },
169
- {
170
- displayName: 'Team ID',
171
- name: 'id',
172
- type: 'string',
173
- required: true,
174
- default: '',
175
- placeholder: 'e.g. 123456',
176
- description: 'The ID of the team',
177
- displayOptions: {
178
- show: {
179
- operation: ['getTeam'],
180
- searchBy: ['id'],
181
- },
182
- },
183
- },
184
- ],
185
- };
186
- }
187
- }
188
- exports.TwitchTeams = TwitchTeams;
189
- //# sourceMappingURL=TwitchTeams.node.js.map
@@ -1 +0,0 @@
1
- {"version":3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ACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AAxLD,kCAwLC"}
@@ -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,4 +0,0 @@
1
- import { type INodeType, type INodeTypeDescription } from 'n8n-workflow';
2
- export declare class TwitchUsers implements INodeType {
3
- description: INodeTypeDescription;
4
- }
@@ -1,94 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TwitchUsers = void 0;
4
- const n8n_workflow_1 = require("n8n-workflow");
5
- class TwitchUsers {
6
- constructor() {
7
- this.description = {
8
- displayName: 'Twitch Users',
9
- name: 'twitchUsers',
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 Users API',
15
- defaults: {
16
- name: 'Twitch Users',
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 a user',
45
- description: 'Get information about a user',
46
- routing: {
47
- request: {
48
- method: 'GET',
49
- url: '/users',
50
- qs: {
51
- login: '={{$parameter.userLogin}}',
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: 'get',
74
- },
75
- {
76
- displayName: 'User Login',
77
- name: 'userLogin',
78
- type: 'string',
79
- displayOptions: {
80
- show: {
81
- operation: ['get'],
82
- },
83
- },
84
- default: '',
85
- required: true,
86
- placeholder: 'e.g. username',
87
- description: 'The user login name',
88
- },
89
- ],
90
- };
91
- }
92
- }
93
- exports.TwitchUsers = TwitchUsers;
94
- //# sourceMappingURL=TwitchUsers.node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TwitchUsers.node.js","sourceRoot":"","sources":["../../../nodes/TwitchUsers/TwitchUsers.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAE9F,MAAa,WAAW;IAAxB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,sBAAsB,EAAE;YAChE,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE;gBACT,IAAI,EAAE,cAAc;aACpB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCA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AClC;aACD;SACD,CAAC;IACH,CAAC;CAAA;AArFD,kCAqFC"}
@@ -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>