@lumiastream/lumia-types 3.1.8 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -252,6 +252,8 @@ export declare enum LumiaAlertValues {
252
252
  TWITCH_AD_STARTED = "twitch-adStarted",
253
253
  /** Ad break ended */
254
254
  TWITCH_AD_STOPPED = "twitch-adStopped",
255
+ /** Watch streak milestone */
256
+ TWITCH_WATCH_STREAK = "twitch-watchStreak",
255
257
  /** Power-ups used */
256
258
  TWITCH_POWERUPS = "twitch-powerups",
257
259
  /** Power-up points earned */
@@ -607,6 +609,7 @@ export declare const LumiaAlertFriendlyValues: {
607
609
  "twitch-shoutoutReceive": string;
608
610
  "twitch-adStarted": string;
609
611
  "twitch-adStopped": string;
612
+ "twitch-watchStreak": string;
610
613
  "twitch-powerups": string;
611
614
  "twitch-powerupsPoints": string;
612
615
  "youtube-streamLive": string;
@@ -267,6 +267,8 @@ var LumiaAlertValues;
267
267
  LumiaAlertValues["TWITCH_AD_STARTED"] = "twitch-adStarted";
268
268
  /** Ad break ended */
269
269
  LumiaAlertValues["TWITCH_AD_STOPPED"] = "twitch-adStopped";
270
+ /** Watch streak milestone */
271
+ LumiaAlertValues["TWITCH_WATCH_STREAK"] = "twitch-watchStreak";
270
272
  /** Power-ups used */
271
273
  LumiaAlertValues["TWITCH_POWERUPS"] = "twitch-powerups";
272
274
  /** Power-up points earned */
@@ -637,6 +639,7 @@ exports.LumiaAlertFriendlyValues = {
637
639
  [LumiaAlertValues.TWITCH_SHOUTOUT_RECEIVE]: 'Twitch Shoutout Receive',
638
640
  [LumiaAlertValues.TWITCH_AD_STARTED]: 'Twitch Ad Started',
639
641
  [LumiaAlertValues.TWITCH_AD_STOPPED]: 'Twitch Ad Stopped',
642
+ [LumiaAlertValues.TWITCH_WATCH_STREAK]: 'Twitch Watch Streak',
640
643
  [LumiaAlertValues.TWITCH_POWERUPS]: 'Twitch Powerups',
641
644
  [LumiaAlertValues.TWITCH_POWERUPS_POINTS]: 'Twitch Powerups points',
642
645
  [LumiaAlertValues.YOUTUBE_STREAM_LIVE]: 'Youtube Stream Live',
@@ -1574,6 +1574,68 @@ exports.LumiaAlertConfigs = {
1574
1574
  { type: LumiaVariationConditions.COUNT_IS_MULTIPLE_OF, description: 'Total Session Bit Count is a multiple of' },
1575
1575
  ],
1576
1576
  },
1577
+ [activity_types_1.LumiaAlertValues.TWITCH_WATCH_STREAK]: {
1578
+ connection: event_types_1.LumiaIntegrations.TWITCH,
1579
+ message: '{{username}} reached a watch streak of {{streak_count}} and earned {{amount}} points',
1580
+ eventlistMessage: 'Watch Streak',
1581
+ eventlistDetailedMessage: 'reached a watch streak of {{streak_count}} and earned {{amount}} points',
1582
+ acceptedVariables: variables_types_1.AllVariables.twitch.alerts.watchStreak,
1583
+ quickActions: [
1584
+ {
1585
+ label: '3 stream streak',
1586
+ dynamic: { value: 3, username: 'lumiastream' },
1587
+ extraSettings: {
1588
+ username: 'lumiastream',
1589
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
1590
+ streak_count: 3,
1591
+ channel_points_awarded: 300,
1592
+ amount: 300,
1593
+ },
1594
+ },
1595
+ {
1596
+ label: '10 stream streak',
1597
+ dynamic: { value: 10, username: 'lumiastream' },
1598
+ extraSettings: {
1599
+ username: 'lumiastream',
1600
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
1601
+ streak_count: 10,
1602
+ channel_points_awarded: 1000,
1603
+ amount: 1000,
1604
+ },
1605
+ },
1606
+ ],
1607
+ inputFields: [
1608
+ {
1609
+ type: 'text',
1610
+ label: 'Username',
1611
+ variableField: 'username',
1612
+ required: false,
1613
+ default: 'lumiastream',
1614
+ },
1615
+ {
1616
+ type: 'number',
1617
+ label: 'Streak count',
1618
+ dynamicField: 'value',
1619
+ variableField: 'streak_count',
1620
+ required: true,
1621
+ default: 3,
1622
+ },
1623
+ {
1624
+ type: 'number',
1625
+ label: 'Points awarded',
1626
+ variableField: 'amount',
1627
+ required: true,
1628
+ default: 300,
1629
+ },
1630
+ ],
1631
+ LumiaVariationConditions: [
1632
+ { type: LumiaVariationConditions.RANDOM },
1633
+ { type: LumiaVariationConditions.EQUAL_USERNAME },
1634
+ { type: LumiaVariationConditions.EQUAL_NUMBER, description: 'Watch Streak Count' },
1635
+ { type: LumiaVariationConditions.GREATER_NUMBER, description: 'Watch Streak Count Greater Than' },
1636
+ { type: LumiaVariationConditions.EQUAL_VARIABLE },
1637
+ ],
1638
+ },
1577
1639
  [activity_types_1.LumiaAlertValues.TWITCH_POWERUPS]: {
1578
1640
  connection: event_types_1.LumiaIntegrations.TWITCH,
1579
1641
  message: '{{username}} redeemed {{type}} and cheered {{amount}} bits. They said {{message}}',
@@ -522,6 +522,8 @@ export declare enum LumiaAlertValues {
522
522
  TWITCH_AD_STARTED = "twitch-adStarted",
523
523
  /** Ad break ended */
524
524
  TWITCH_AD_STOPPED = "twitch-adStopped",
525
+ /** Watch streak milestone */
526
+ TWITCH_WATCH_STREAK = "twitch-watchStreak",
525
527
  /** Power-ups used */
526
528
  TWITCH_POWERUPS = "twitch-powerups",
527
529
  /** Power-up points earned */
@@ -522,6 +522,8 @@ export declare enum LumiaAlertValues {
522
522
  TWITCH_AD_STARTED = "twitch-adStarted",
523
523
  /** Ad break ended */
524
524
  TWITCH_AD_STOPPED = "twitch-adStopped",
525
+ /** Watch streak milestone */
526
+ TWITCH_WATCH_STREAK = "twitch-watchStreak",
525
527
  /** Power-ups used */
526
528
  TWITCH_POWERUPS = "twitch-powerups",
527
529
  /** Power-up points earned */
@@ -107,6 +107,7 @@ export declare const LumiaMapAlertTypeToEventListType: {
107
107
  "twitch-charityDonation": LumiaEventListTypes;
108
108
  "twitch-adStarted": LumiaEventListTypes;
109
109
  "twitch-adStopped": LumiaEventListTypes;
110
+ "twitch-watchStreak": LumiaEventListTypes;
110
111
  "twitter-follower": LumiaEventListTypes;
111
112
  "twitter-like": LumiaEventListTypes;
112
113
  "twitter-retweet": LumiaEventListTypes;
@@ -112,6 +112,7 @@ exports.LumiaMapAlertTypeToEventListType = {
112
112
  [activity_types_1.LumiaAlertValues.TWITCH_CHARITY_DONATION]: LumiaEventListTypes.DONATION,
113
113
  [activity_types_1.LumiaAlertValues.TWITCH_AD_STARTED]: LumiaEventListTypes.OTHERS,
114
114
  [activity_types_1.LumiaAlertValues.TWITCH_AD_STOPPED]: LumiaEventListTypes.OTHERS,
115
+ [activity_types_1.LumiaAlertValues.TWITCH_WATCH_STREAK]: LumiaEventListTypes.OTHERS,
115
116
  [activity_types_1.LumiaAlertValues.TWITTER_FOLLOWER]: LumiaEventListTypes.FOLLOWER,
116
117
  [activity_types_1.LumiaAlertValues.TWITTER_LIKE]: LumiaEventListTypes.LIKES,
117
118
  [activity_types_1.LumiaAlertValues.TWITTER_RETWEET]: LumiaEventListTypes.RETWEETS,
@@ -978,6 +978,7 @@ export declare const AllVariables: {
978
978
  shoutoutReceive: string[];
979
979
  adStarted: string[];
980
980
  adStopped: string[];
981
+ watchStreak: string[];
981
982
  powerups: string[];
982
983
  powerupsPoints: string[];
983
984
  };
@@ -1878,7 +1878,8 @@ exports.AllVariables = {
1878
1878
  shoutoutReceive: ['username', 'userId', 'displayname', 'avatar', 'viewer_count', 'started_at'],
1879
1879
  adStarted: ['length', 'is_automatic', 'started_at', 'twitch_next_ad'],
1880
1880
  adStopped: ['length', 'is_automatic', 'started_at', 'twitch_next_ad'],
1881
- powerups: ['username', 'avatar', 'type', 'amount', 'message'],
1881
+ watchStreak: ['username', 'userId', 'displayname', 'avatar', 'streak_count', 'channel_points_awarded', 'amount', 'message', 'system_message'],
1882
+ powerups: ['username', 'avatar', 'type', 'amount', 'message', 'reward_id', 'powerup_source'],
1882
1883
  powerupsPoints: ['username', 'avatar', 'type', 'amount', 'message'],
1883
1884
  },
1884
1885
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumiastream/lumia-types",
3
- "version": "3.1.8",
3
+ "version": "3.2.1",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "files": [