@lumiastream/lumia-types 1.0.5 → 1.0.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.
@@ -139,6 +139,7 @@ export declare enum LumiaAlertValues {
139
139
  TWITCH_SHOUTOUT_RECEIVE = "twitch-shoutoutReceive",
140
140
  TWITCH_AD_STARTED = "twitch-adStarted",
141
141
  TWITCH_AD_STOPPED = "twitch-adStopped",
142
+ TWITCH_POWERUPS = "twitch-powerups",
142
143
  YOUTUBE_STREAM_LIVE = "youtube-streamLive",
143
144
  YOUTUBE_STREAM_OFFLINE = "youtube-streamOffline",
144
145
  YOUTUBE_FIRST_CHATTER = "youtube-firstChatter",
@@ -310,6 +311,7 @@ export declare const LumiaAlertFriendlyValues: {
310
311
  "twitch-shoutoutReceive": string;
311
312
  "twitch-adStarted": string;
312
313
  "twitch-adStopped": string;
314
+ "twitch-powerups": string;
313
315
  "youtube-streamLive": string;
314
316
  "youtube-streamOffline": string;
315
317
  "youtube-firstChatter": string;
@@ -150,6 +150,7 @@ var LumiaAlertValues;
150
150
  LumiaAlertValues["TWITCH_SHOUTOUT_RECEIVE"] = "twitch-shoutoutReceive";
151
151
  LumiaAlertValues["TWITCH_AD_STARTED"] = "twitch-adStarted";
152
152
  LumiaAlertValues["TWITCH_AD_STOPPED"] = "twitch-adStopped";
153
+ LumiaAlertValues["TWITCH_POWERUPS"] = "twitch-powerups";
153
154
  LumiaAlertValues["YOUTUBE_STREAM_LIVE"] = "youtube-streamLive";
154
155
  LumiaAlertValues["YOUTUBE_STREAM_OFFLINE"] = "youtube-streamOffline";
155
156
  LumiaAlertValues["YOUTUBE_FIRST_CHATTER"] = "youtube-firstChatter";
@@ -323,6 +324,7 @@ exports.LumiaAlertFriendlyValues = {
323
324
  [LumiaAlertValues.TWITCH_SHOUTOUT_RECEIVE]: 'Twitch Shoutout Receive',
324
325
  [LumiaAlertValues.TWITCH_AD_STARTED]: 'Twitch Ad Started',
325
326
  [LumiaAlertValues.TWITCH_AD_STOPPED]: 'Twitch Ad Stopped',
327
+ [LumiaAlertValues.TWITCH_POWERUPS]: 'Twitch Powerups',
326
328
  [LumiaAlertValues.YOUTUBE_STREAM_LIVE]: 'Youtube Stream Live',
327
329
  [LumiaAlertValues.YOUTUBE_STREAM_OFFLINE]: 'Youtube Stream Offline',
328
330
  [LumiaAlertValues.YOUTUBE_FIRST_CHATTER]: 'Youtube First Chatter',
@@ -1149,6 +1149,74 @@ exports.LumiaAlertConfigs = {
1149
1149
  },
1150
1150
  ],
1151
1151
  },
1152
+ [activity_types_1.LumiaAlertValues.TWITCH_POWERUPS]: {
1153
+ connection: event_types_1.LumiaIntegrations.TWITCH,
1154
+ message: '{{username}} redeemed {{type}} and cheered {{amount}} bits. They said {{message}}',
1155
+ eventlistMessage: 'Powerups',
1156
+ eventlistDetailedMessage: 'redeemed {{type}} for {{amount}} bits',
1157
+ acceptedVariables: ['username', 'avatar', 'type', 'amount', 'message', 'rawMessage', 'full_message'],
1158
+ quickActions: [
1159
+ {
1160
+ label: 'Gigantify powerup',
1161
+ dynamic: { value: 100, name: 'gigantify_an_emote' },
1162
+ extraSettings: {
1163
+ username: 'lumiastream',
1164
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
1165
+ type: 'gigantify_an_emote',
1166
+ amount: 100,
1167
+ },
1168
+ },
1169
+ {
1170
+ label: 'Celebration powerup',
1171
+ dynamic: { value: 500, name: 'celebration' },
1172
+ extraSettings: {
1173
+ username: 'lumiastream',
1174
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
1175
+ type: 'celebration',
1176
+ amount: 500,
1177
+ },
1178
+ },
1179
+ ],
1180
+ inputFields: [
1181
+ {
1182
+ type: 'text',
1183
+ label: 'Username',
1184
+ variableField: 'username',
1185
+ required: false,
1186
+ default: 'lumiastream',
1187
+ },
1188
+ {
1189
+ type: 'text',
1190
+ label: 'Type of powerup',
1191
+ dynamicField: 'value',
1192
+ variableField: 'type',
1193
+ required: true,
1194
+ default: 'celebration',
1195
+ },
1196
+ {
1197
+ type: 'number',
1198
+ label: 'Amount of bits',
1199
+ variableField: 'amount',
1200
+ required: true,
1201
+ default: 100,
1202
+ },
1203
+ ],
1204
+ LumiaVariationConditions: [
1205
+ { type: LumiaVariationConditions.RANDOM },
1206
+ {
1207
+ type: LumiaVariationConditions.EQUAL_USERNAME,
1208
+ },
1209
+ {
1210
+ type: LumiaVariationConditions.EQUAL_STRING,
1211
+ },
1212
+ {
1213
+ type: LumiaVariationConditions.EQUAL_NUMBER,
1214
+ },
1215
+ {
1216
+ type: LumiaVariationConditions.GREATER_NUMBER,
1217
+ },
1218
+ ],
1219
+ },
1152
1220
  [activity_types_1.LumiaAlertValues.TWITCH_RAID]: {
1153
1221
  connection: event_types_1.LumiaIntegrations.TWITCH,
1154
1222
  message: '{{username}} raided with {{viewers}} viewers',
@@ -70,6 +70,7 @@ export declare const LumiaMapAlertTypeToEventListType: {
70
70
  "trovo-spell": LumiaEventListTypes;
71
71
  "trovo-subscriber": LumiaEventListTypes;
72
72
  "twitch-bits": LumiaEventListTypes;
73
+ "twitch-powerups": LumiaEventListTypes;
73
74
  "twitch-clip": LumiaEventListTypes;
74
75
  "twitch-extension": LumiaEventListTypes;
75
76
  "twitch-follower": LumiaEventListTypes;
@@ -75,6 +75,7 @@ exports.LumiaMapAlertTypeToEventListType = {
75
75
  [activity_types_1.LumiaAlertValues.TROVO_SPELL]: LumiaEventListTypes.SPELLS,
76
76
  [activity_types_1.LumiaAlertValues.TROVO_SUBSCRIBER]: LumiaEventListTypes.SUBSCRIBERS,
77
77
  [activity_types_1.LumiaAlertValues.TWITCH_BITS]: LumiaEventListTypes.BITS,
78
+ [activity_types_1.LumiaAlertValues.TWITCH_POWERUPS]: LumiaEventListTypes.BITS,
78
79
  [activity_types_1.LumiaAlertValues.TWITCH_CLIP]: LumiaEventListTypes.OTHERS,
79
80
  [activity_types_1.LumiaAlertValues.TWITCH_EXTENSION]: LumiaEventListTypes.EXTENSION,
80
81
  [activity_types_1.LumiaAlertValues.TWITCH_FOLLOWER]: LumiaEventListTypes.FOLLOWER,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumiastream/lumia-types",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "files": [