@yuniruyuni/n8n-nodes-twitch 0.1.5 → 0.1.7

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 (206) 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 +147 -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 +116 -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 +202 -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 +138 -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 +62 -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 +95 -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 +61 -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 +58 -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 +224 -0
  27. package/dist/nodes/Twitch/resources/Clip.js.map +1 -0
  28. package/dist/nodes/Twitch/resources/CommonFields.d.ts +2 -0
  29. package/dist/nodes/Twitch/resources/CommonFields.js +241 -0
  30. package/dist/nodes/Twitch/resources/CommonFields.js.map +1 -0
  31. package/dist/nodes/Twitch/resources/CustomReward.d.ts +3 -0
  32. package/dist/nodes/Twitch/resources/CustomReward.js +550 -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 +56 -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 +191 -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 +175 -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 +349 -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 +305 -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 +146 -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 +235 -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 +388 -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 +97 -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 +144 -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 +153 -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 +296 -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.js.map +1 -0
  80. package/dist/nodes/TwitchTrigger/TwitchTrigger.node.js +1 -1
  81. package/dist/nodes/TwitchTrigger/TwitchTrigger.node.js.map +1 -1
  82. package/dist/package.json +3 -26
  83. package/dist/tsconfig.tsbuildinfo +1 -1
  84. package/package.json +3 -26
  85. package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.d.ts +0 -4
  86. package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.js +0 -169
  87. package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.js.map +0 -1
  88. package/dist/nodes/TwitchBans/TwitchBans.node.js +0 -340
  89. package/dist/nodes/TwitchBans/TwitchBans.node.js.map +0 -1
  90. package/dist/nodes/TwitchBans/twitch.dark.svg +0 -1
  91. package/dist/nodes/TwitchBans/twitch.svg +0 -1
  92. package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.d.ts +0 -4
  93. package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.js +0 -174
  94. package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.js.map +0 -1
  95. package/dist/nodes/TwitchBitsLeaderboard/twitch.dark.svg +0 -1
  96. package/dist/nodes/TwitchBitsLeaderboard/twitch.svg +0 -1
  97. package/dist/nodes/TwitchChannels/TwitchChannels.node.d.ts +0 -4
  98. package/dist/nodes/TwitchChannels/TwitchChannels.node.js +0 -104
  99. package/dist/nodes/TwitchChannels/TwitchChannels.node.js.map +0 -1
  100. package/dist/nodes/TwitchChannels/twitch.dark.svg +0 -1
  101. package/dist/nodes/TwitchChannels/twitch.svg +0 -1
  102. package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.d.ts +0 -4
  103. package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.js +0 -133
  104. package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.js.map +0 -1
  105. package/dist/nodes/TwitchChatMessages/twitch.dark.svg +0 -1
  106. package/dist/nodes/TwitchChatMessages/twitch.svg +0 -1
  107. package/dist/nodes/TwitchChatters/TwitchChatters.node.d.ts +0 -4
  108. package/dist/nodes/TwitchChatters/TwitchChatters.node.js +0 -133
  109. package/dist/nodes/TwitchChatters/TwitchChatters.node.js.map +0 -1
  110. package/dist/nodes/TwitchChatters/twitch.dark.svg +0 -1
  111. package/dist/nodes/TwitchChatters/twitch.svg +0 -1
  112. package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.d.ts +0 -4
  113. package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.js +0 -99
  114. package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.js.map +0 -1
  115. package/dist/nodes/TwitchCheermotes/twitch.dark.svg +0 -1
  116. package/dist/nodes/TwitchCheermotes/twitch.svg +0 -1
  117. package/dist/nodes/TwitchClips/TwitchClips.node.d.ts +0 -4
  118. package/dist/nodes/TwitchClips/TwitchClips.node.js +0 -291
  119. package/dist/nodes/TwitchClips/TwitchClips.node.js.map +0 -1
  120. package/dist/nodes/TwitchClips/twitch.dark.svg +0 -1
  121. package/dist/nodes/TwitchClips/twitch.svg +0 -1
  122. package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.d.ts +0 -4
  123. package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.js +0 -581
  124. package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.js.map +0 -1
  125. package/dist/nodes/TwitchCustomRewards/twitch.dark.svg +0 -1
  126. package/dist/nodes/TwitchCustomRewards/twitch.svg +0 -1
  127. package/dist/nodes/TwitchEmotes/TwitchEmotes.node.d.ts +0 -4
  128. package/dist/nodes/TwitchEmotes/TwitchEmotes.node.js +0 -97
  129. package/dist/nodes/TwitchEmotes/TwitchEmotes.node.js.map +0 -1
  130. package/dist/nodes/TwitchEmotes/twitch.dark.svg +0 -1
  131. package/dist/nodes/TwitchEmotes/twitch.svg +0 -1
  132. package/dist/nodes/TwitchGames/TwitchGames.node.d.ts +0 -4
  133. package/dist/nodes/TwitchGames/TwitchGames.node.js +0 -230
  134. package/dist/nodes/TwitchGames/TwitchGames.node.js.map +0 -1
  135. package/dist/nodes/TwitchGames/twitch.dark.svg +0 -1
  136. package/dist/nodes/TwitchGames/twitch.svg +0 -1
  137. package/dist/nodes/TwitchModerators/TwitchModerators.node.d.ts +0 -4
  138. package/dist/nodes/TwitchModerators/TwitchModerators.node.js +0 -287
  139. package/dist/nodes/TwitchModerators/TwitchModerators.node.js.map +0 -1
  140. package/dist/nodes/TwitchModerators/twitch.dark.svg +0 -1
  141. package/dist/nodes/TwitchModerators/twitch.svg +0 -1
  142. package/dist/nodes/TwitchPolls/TwitchPolls.node.d.ts +0 -4
  143. package/dist/nodes/TwitchPolls/TwitchPolls.node.js +0 -426
  144. package/dist/nodes/TwitchPolls/TwitchPolls.node.js.map +0 -1
  145. package/dist/nodes/TwitchPolls/twitch.dark.svg +0 -1
  146. package/dist/nodes/TwitchPolls/twitch.svg +0 -1
  147. package/dist/nodes/TwitchPredictions/TwitchPredictions.node.d.ts +0 -4
  148. package/dist/nodes/TwitchPredictions/TwitchPredictions.node.js +0 -382
  149. package/dist/nodes/TwitchPredictions/TwitchPredictions.node.js.map +0 -1
  150. package/dist/nodes/TwitchPredictions/twitch.dark.svg +0 -1
  151. package/dist/nodes/TwitchPredictions/twitch.svg +0 -1
  152. package/dist/nodes/TwitchRaids/TwitchRaids.node.d.ts +0 -4
  153. package/dist/nodes/TwitchRaids/TwitchRaids.node.js +0 -183
  154. package/dist/nodes/TwitchRaids/TwitchRaids.node.js.map +0 -1
  155. package/dist/nodes/TwitchRaids/twitch.dark.svg +0 -1
  156. package/dist/nodes/TwitchRaids/twitch.svg +0 -1
  157. package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.d.ts +0 -4
  158. package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.js +0 -274
  159. package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.js.map +0 -1
  160. package/dist/nodes/TwitchRedemptions/twitch.dark.svg +0 -1
  161. package/dist/nodes/TwitchRedemptions/twitch.svg +0 -1
  162. package/dist/nodes/TwitchSchedule/TwitchSchedule.node.d.ts +0 -4
  163. package/dist/nodes/TwitchSchedule/TwitchSchedule.node.js +0 -432
  164. package/dist/nodes/TwitchSchedule/TwitchSchedule.node.js.map +0 -1
  165. package/dist/nodes/TwitchSchedule/twitch.dark.svg +0 -1
  166. package/dist/nodes/TwitchSchedule/twitch.svg +0 -1
  167. package/dist/nodes/TwitchSearch/TwitchSearch.node.d.ts +0 -4
  168. package/dist/nodes/TwitchSearch/TwitchSearch.node.js +0 -134
  169. package/dist/nodes/TwitchSearch/TwitchSearch.node.js.map +0 -1
  170. package/dist/nodes/TwitchSearch/twitch.dark.svg +0 -1
  171. package/dist/nodes/TwitchSearch/twitch.svg +0 -1
  172. package/dist/nodes/TwitchStreams/TwitchStreams.node.d.ts +0 -4
  173. package/dist/nodes/TwitchStreams/TwitchStreams.node.js +0 -94
  174. package/dist/nodes/TwitchStreams/TwitchStreams.node.js.map +0 -1
  175. package/dist/nodes/TwitchStreams/twitch.dark.svg +0 -1
  176. package/dist/nodes/TwitchStreams/twitch.svg +0 -1
  177. package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.d.ts +0 -4
  178. package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.js +0 -208
  179. package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.js.map +0 -1
  180. package/dist/nodes/TwitchSubscriptions/twitch.dark.svg +0 -1
  181. package/dist/nodes/TwitchSubscriptions/twitch.svg +0 -1
  182. package/dist/nodes/TwitchTeams/TwitchTeams.node.d.ts +0 -4
  183. package/dist/nodes/TwitchTeams/TwitchTeams.node.js +0 -191
  184. package/dist/nodes/TwitchTeams/TwitchTeams.node.js.map +0 -1
  185. package/dist/nodes/TwitchTeams/twitch.dark.svg +0 -1
  186. package/dist/nodes/TwitchTeams/twitch.svg +0 -1
  187. package/dist/nodes/TwitchUsers/TwitchUsers.node.d.ts +0 -4
  188. package/dist/nodes/TwitchUsers/TwitchUsers.node.js +0 -94
  189. package/dist/nodes/TwitchUsers/TwitchUsers.node.js.map +0 -1
  190. package/dist/nodes/TwitchUsers/twitch.dark.svg +0 -1
  191. package/dist/nodes/TwitchUsers/twitch.svg +0 -1
  192. package/dist/nodes/TwitchVideos/TwitchVideos.node.d.ts +0 -4
  193. package/dist/nodes/TwitchVideos/TwitchVideos.node.js +0 -343
  194. package/dist/nodes/TwitchVideos/TwitchVideos.node.js.map +0 -1
  195. package/dist/nodes/TwitchVideos/twitch.dark.svg +0 -1
  196. package/dist/nodes/TwitchVideos/twitch.svg +0 -1
  197. package/dist/nodes/TwitchWhispers/TwitchWhispers.node.d.ts +0 -4
  198. package/dist/nodes/TwitchWhispers/TwitchWhispers.node.js +0 -105
  199. package/dist/nodes/TwitchWhispers/TwitchWhispers.node.js.map +0 -1
  200. package/dist/nodes/TwitchWhispers/twitch.dark.svg +0 -1
  201. package/dist/nodes/TwitchWhispers/twitch.svg +0 -1
  202. package/dist/nodes/shared/userIdConverter.js.map +0 -1
  203. /package/dist/nodes/{shared → Twitch/shared}/userIdConverter.d.ts +0 -0
  204. /package/dist/nodes/{shared → Twitch/shared}/userIdConverter.js +0 -0
  205. /package/dist/nodes/{TwitchAnnouncements → Twitch}/twitch.dark.svg +0 -0
  206. /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,208 +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
- const userIdConverter_1 = require("../shared/userIdConverter");
6
- class TwitchSubscriptions {
7
- constructor() {
8
- this.description = {
9
- displayName: 'Twitch Subscriptions',
10
- name: 'twitchSubscriptions',
11
- icon: { light: 'file:twitch.svg', dark: 'file:twitch.dark.svg' },
12
- group: ['transform'],
13
- version: 1,
14
- subtitle: '={{$parameter["operation"]}}',
15
- description: 'Interact with Twitch Subscriptions API',
16
- defaults: {
17
- name: 'Twitch Subscriptions',
18
- },
19
- usableAsTool: true,
20
- inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
21
- outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
22
- credentials: [
23
- {
24
- name: 'twitchOAuth2Api',
25
- required: true,
26
- },
27
- ],
28
- requestDefaults: {
29
- baseURL: 'https://api.twitch.tv/helix',
30
- headers: {
31
- Accept: 'application/json',
32
- 'Content-Type': 'application/json',
33
- },
34
- },
35
- properties: [
36
- {
37
- displayName: 'Operation',
38
- name: 'operation',
39
- type: 'options',
40
- noDataExpression: true,
41
- options: [
42
- {
43
- name: 'Get Broadcaster Subscriptions',
44
- value: 'getBroadcasterSubscriptions',
45
- action: 'Get broadcaster subscriptions',
46
- description: 'Get a list of broadcaster subscriptions',
47
- routing: {
48
- request: {
49
- method: 'GET',
50
- url: '/subscriptions',
51
- },
52
- send: {
53
- preSend: [
54
- async function (requestOptions) {
55
- const broadcasterIdInput = this.getNodeParameter('broadcasterId', 0);
56
- const userIdInput = this.getNodeParameter('userId', 0);
57
- const first = this.getNodeParameter('first', 0);
58
- const after = this.getNodeParameter('after', 0);
59
- const broadcasterId = await userIdConverter_1.resolveUserIdOrUsername.call(this, broadcasterIdInput);
60
- const qs = {
61
- broadcaster_id: broadcasterId,
62
- };
63
- if (userIdInput) {
64
- const userIds = userIdInput.split(',').map((id) => id.trim()).filter((id) => id);
65
- if (userIds.length > 0) {
66
- const resolvedUserIds = await Promise.all(userIds.map((id) => userIdConverter_1.resolveUserIdOrUsername.call(this, id)));
67
- qs.user_id = resolvedUserIds;
68
- }
69
- }
70
- if (first)
71
- qs.first = first;
72
- if (after)
73
- qs.after = after;
74
- requestOptions.qs = qs;
75
- return requestOptions;
76
- },
77
- ],
78
- },
79
- output: {
80
- postReceive: [
81
- {
82
- type: 'rootProperty',
83
- properties: {
84
- property: 'data',
85
- },
86
- },
87
- ],
88
- },
89
- },
90
- },
91
- {
92
- name: 'Check User Subscription',
93
- value: 'checkUserSubscription',
94
- action: 'Check user subscription',
95
- description: 'Check if a user is subscribed to a broadcaster',
96
- routing: {
97
- request: {
98
- method: 'GET',
99
- url: '/subscriptions/user',
100
- },
101
- send: {
102
- preSend: [
103
- async function (requestOptions) {
104
- const broadcasterIdInput = this.getNodeParameter('broadcasterId', 0);
105
- const userIdInput = this.getNodeParameter('checkUserId', 0);
106
- const broadcasterId = await userIdConverter_1.resolveUserIdOrUsername.call(this, broadcasterIdInput);
107
- const userId = await userIdConverter_1.resolveUserIdOrUsername.call(this, userIdInput);
108
- requestOptions.qs = {
109
- broadcaster_id: broadcasterId,
110
- user_id: userId,
111
- };
112
- return requestOptions;
113
- },
114
- ],
115
- },
116
- output: {
117
- postReceive: [
118
- {
119
- type: 'rootProperty',
120
- properties: {
121
- property: 'data',
122
- },
123
- },
124
- {
125
- type: 'setKeyValue',
126
- properties: {
127
- index: 0,
128
- },
129
- },
130
- ],
131
- },
132
- },
133
- },
134
- ],
135
- default: 'getBroadcasterSubscriptions',
136
- },
137
- {
138
- displayName: 'Broadcaster ID or Username',
139
- name: 'broadcasterId',
140
- type: 'string',
141
- required: true,
142
- default: '',
143
- placeholder: 'e.g. 123456789 or username',
144
- description: 'The broadcaster user ID or username. If a username is provided, it will be automatically converted to user ID.',
145
- },
146
- {
147
- displayName: 'User IDs or Usernames',
148
- name: 'userId',
149
- type: 'string',
150
- default: '',
151
- placeholder: 'e.g. 123456789,987654321 or username1,username2',
152
- description: 'Filter by user IDs or usernames (comma-separated)',
153
- displayOptions: {
154
- show: {
155
- operation: ['getBroadcasterSubscriptions'],
156
- },
157
- },
158
- },
159
- {
160
- displayName: 'User ID or Username',
161
- name: 'checkUserId',
162
- type: 'string',
163
- required: true,
164
- default: '',
165
- placeholder: 'e.g. 123456789 or username',
166
- description: 'The user ID or username to check. If a username is provided, it will be automatically converted to user ID.',
167
- displayOptions: {
168
- show: {
169
- operation: ['checkUserSubscription'],
170
- },
171
- },
172
- },
173
- {
174
- displayName: 'First',
175
- name: 'first',
176
- type: 'number',
177
- default: 20,
178
- typeOptions: {
179
- minValue: 1,
180
- maxValue: 100,
181
- },
182
- placeholder: 'e.g. 20',
183
- description: 'Number of results (1-100)',
184
- displayOptions: {
185
- show: {
186
- operation: ['getBroadcasterSubscriptions'],
187
- },
188
- },
189
- },
190
- {
191
- displayName: 'After',
192
- name: 'after',
193
- type: 'string',
194
- default: '',
195
- placeholder: 'e.g. eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6MjB9fQ',
196
- description: 'Pagination cursor',
197
- displayOptions: {
198
- show: {
199
- operation: ['getBroadcasterSubscriptions'],
200
- },
201
- },
202
- },
203
- ],
204
- };
205
- }
206
- }
207
- exports.TwitchSubscriptions = TwitchSubscriptions;
208
- //# 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;AAChH,+DAAoE;AAEpE,MAAa,mBAAmB;IAAhC;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,sBAAsB;YACnC,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,8BAA8B;YACxC,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE;gBACT,IAAI,EAAE,sBAAsB;aAC5B;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,+BAA+B;4BACrC,KAAK,EAAE,6BAA6B;4BACpC,MAAM,EAAE,+BAA+B;4B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BACD;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;AA/MD,kDA+MC"}
@@ -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,191 +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
- const userIdConverter_1 = require("../shared/userIdConverter");
6
- class TwitchTeams {
7
- constructor() {
8
- this.description = {
9
- displayName: 'Twitch Teams',
10
- name: 'twitchTeams',
11
- icon: { light: 'file:twitch.svg', dark: 'file:twitch.dark.svg' },
12
- group: ['transform'],
13
- version: 1,
14
- subtitle: '={{$parameter["operation"]}}',
15
- description: 'Interact with Twitch Teams API',
16
- defaults: {
17
- name: 'Twitch Teams',
18
- },
19
- usableAsTool: true,
20
- inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
21
- outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
22
- credentials: [
23
- {
24
- name: 'twitchOAuth2Api',
25
- required: true,
26
- },
27
- ],
28
- requestDefaults: {
29
- baseURL: 'https://api.twitch.tv/helix',
30
- headers: {
31
- Accept: 'application/json',
32
- 'Content-Type': 'application/json',
33
- },
34
- },
35
- properties: [
36
- {
37
- displayName: 'Operation',
38
- name: 'operation',
39
- type: 'options',
40
- noDataExpression: true,
41
- options: [
42
- {
43
- name: 'Get Channel Teams',
44
- value: 'getChannelTeams',
45
- action: 'Get channel teams',
46
- description: 'Get all teams that a broadcaster is a member of',
47
- routing: {
48
- request: {
49
- method: 'GET',
50
- url: '/teams/channel',
51
- },
52
- send: {
53
- preSend: [
54
- async function (requestOptions) {
55
- const broadcasterIdInput = this.getNodeParameter('broadcasterId', 0);
56
- const broadcasterId = await userIdConverter_1.resolveUserIdOrUsername.call(this, broadcasterIdInput);
57
- requestOptions.qs = {
58
- broadcaster_id: broadcasterId,
59
- };
60
- return requestOptions;
61
- },
62
- ],
63
- },
64
- output: {
65
- postReceive: [
66
- {
67
- type: 'rootProperty',
68
- properties: {
69
- property: 'data',
70
- },
71
- },
72
- ],
73
- },
74
- },
75
- },
76
- {
77
- name: 'Get Team',
78
- value: 'getTeam',
79
- action: 'Get team',
80
- description: 'Get information about a specific team',
81
- routing: {
82
- request: {
83
- method: 'GET',
84
- url: '/teams',
85
- },
86
- send: {
87
- preSend: [
88
- async function (requestOptions) {
89
- const searchBy = this.getNodeParameter('searchBy', 0);
90
- const searchValue = this.getNodeParameter(searchBy, 0);
91
- requestOptions.qs = {
92
- [searchBy]: searchValue,
93
- };
94
- return requestOptions;
95
- },
96
- ],
97
- },
98
- output: {
99
- postReceive: [
100
- {
101
- type: 'rootProperty',
102
- properties: {
103
- property: 'data',
104
- },
105
- },
106
- {
107
- type: 'setKeyValue',
108
- properties: {
109
- index: 0,
110
- },
111
- },
112
- ],
113
- },
114
- },
115
- },
116
- ],
117
- default: 'getChannelTeams',
118
- },
119
- {
120
- displayName: 'Broadcaster ID or Username',
121
- name: 'broadcasterId',
122
- type: 'string',
123
- required: true,
124
- default: '',
125
- placeholder: 'e.g. 123456789 or username',
126
- description: 'The broadcaster user ID or username. If a username is provided, it will be automatically converted to user ID.',
127
- displayOptions: {
128
- show: {
129
- operation: ['getChannelTeams'],
130
- },
131
- },
132
- },
133
- {
134
- displayName: 'Search By',
135
- name: 'searchBy',
136
- type: 'options',
137
- required: true,
138
- options: [
139
- {
140
- name: 'Name',
141
- value: 'name',
142
- },
143
- {
144
- name: 'ID',
145
- value: 'id',
146
- },
147
- ],
148
- default: 'name',
149
- description: 'Search team by name or ID',
150
- displayOptions: {
151
- show: {
152
- operation: ['getTeam'],
153
- },
154
- },
155
- },
156
- {
157
- displayName: 'Team Name',
158
- name: 'name',
159
- type: 'string',
160
- required: true,
161
- default: '',
162
- placeholder: 'e.g. staff',
163
- description: 'The name of the team',
164
- displayOptions: {
165
- show: {
166
- operation: ['getTeam'],
167
- searchBy: ['name'],
168
- },
169
- },
170
- },
171
- {
172
- displayName: 'Team ID',
173
- name: 'id',
174
- type: 'string',
175
- required: true,
176
- default: '',
177
- placeholder: 'e.g. 123456',
178
- description: 'The ID of the team',
179
- displayOptions: {
180
- show: {
181
- operation: ['getTeam'],
182
- searchBy: ['id'],
183
- },
184
- },
185
- },
186
- ],
187
- };
188
- }
189
- }
190
- exports.TwitchTeams = TwitchTeams;
191
- //# sourceMappingURL=TwitchTeams.node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TwitchTeams.node.js","sourceRoot":"","sources":["../../../nodes/TwitchTeams/TwitchTeams.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,+DAAoE;AAEpE,MAAa,WAAW;IAAxB;QACC,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LD,kCAyLC"}
@@ -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,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE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