@lumiastream/lumia-types 3.2.9 → 3.3.0

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.
@@ -287,6 +287,10 @@ export declare enum LumiaAlertValues {
287
287
  YOUTUBE_SUPERSTICKER = "youtube-supersticker",
288
288
  /** YouTube session superstickers */
289
289
  YOUTUBE_SESSION_SUPERSTICKERS = "youtube-sessionSuperstickers",
290
+ /** YouTube gift event (jewel-based) */
291
+ YOUTUBE_GIFTS = "youtube-gifts",
292
+ /** YouTube session gifts */
293
+ YOUTUBE_SESSION_GIFTS = "youtube-sessionGifts",
290
294
  /** YouTube total likes */
291
295
  YOUTUBE_LIKE = "youtube-like",
292
296
  /** YouTube total views */
@@ -622,6 +626,8 @@ export declare const LumiaAlertFriendlyValues: {
622
626
  "youtube-subscriber": string;
623
627
  "youtube-superchat": string;
624
628
  "youtube-supersticker": string;
629
+ "youtube-gifts": string;
630
+ "youtube-sessionGifts": string;
625
631
  "youtube-entrance": string;
626
632
  "youtube-like": string;
627
633
  "youtube-viewers": string;
@@ -303,6 +303,10 @@ var LumiaAlertValues;
303
303
  LumiaAlertValues["YOUTUBE_SUPERSTICKER"] = "youtube-supersticker";
304
304
  /** YouTube session superstickers */
305
305
  LumiaAlertValues["YOUTUBE_SESSION_SUPERSTICKERS"] = "youtube-sessionSuperstickers";
306
+ /** YouTube gift event (jewel-based) */
307
+ LumiaAlertValues["YOUTUBE_GIFTS"] = "youtube-gifts";
308
+ /** YouTube session gifts */
309
+ LumiaAlertValues["YOUTUBE_SESSION_GIFTS"] = "youtube-sessionGifts";
306
310
  /** YouTube total likes */
307
311
  LumiaAlertValues["YOUTUBE_LIKE"] = "youtube-like";
308
312
  /** YouTube total views */
@@ -652,6 +656,8 @@ exports.LumiaAlertFriendlyValues = {
652
656
  [LumiaAlertValues.YOUTUBE_SUBSCRIBER]: 'Youtube Subscriber',
653
657
  [LumiaAlertValues.YOUTUBE_SUPERCHAT]: 'Youtube Superchat',
654
658
  [LumiaAlertValues.YOUTUBE_SUPERSTICKER]: 'Youtube Supersticker',
659
+ [LumiaAlertValues.YOUTUBE_GIFTS]: 'Youtube Gifts',
660
+ [LumiaAlertValues.YOUTUBE_SESSION_GIFTS]: 'Youtube Session Gifts',
655
661
  [LumiaAlertValues.YOUTUBE_ENTRANCE]: 'Youtube Entrance',
656
662
  [LumiaAlertValues.YOUTUBE_LIKE]: 'Youtube Like',
657
663
  [LumiaAlertValues.YOUTUBE_VIEWERS]: 'Youtube Viewers',
@@ -3906,6 +3906,152 @@ exports.LumiaAlertConfigs = {
3906
3906
  { type: LumiaVariationConditions.COUNT_IS_MULTIPLE_OF, description: 'Total Session Gift Member Count is a multiple of' },
3907
3907
  ],
3908
3908
  },
3909
+ [activity_types_1.LumiaAlertValues.YOUTUBE_GIFTS]: {
3910
+ connection: event_types_1.LumiaIntegrations.YOUTUBE,
3911
+ message: '{{username}} sent x{{comboCount}} {{giftName}} ({{jewelsAmount}} jewels)',
3912
+ eventlistMessage: 'Gift',
3913
+ eventlistDetailedMessage: 'sent x{{comboCount}} {{giftName}} worth {{jewelsAmount}} jewels',
3914
+ acceptedVariables: variables_types_1.AllVariables.youtube.alerts.gifts,
3915
+ quickActions: [
3916
+ {
3917
+ label: '10 Jewels',
3918
+ dynamic: { value: 10, name: 'Heart' },
3919
+ extraSettings: {
3920
+ username: 'lumiastream',
3921
+ displayname: 'LumiaStream',
3922
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
3923
+ giftName: 'Heart',
3924
+ jewelsAmount: 10,
3925
+ totalJewels: 10,
3926
+ comboCount: 1,
3927
+ hasVisualEffect: false,
3928
+ },
3929
+ },
3930
+ {
3931
+ label: '100 Jewels',
3932
+ dynamic: { value: 100, name: 'Rose' },
3933
+ extraSettings: {
3934
+ username: 'lumiastream',
3935
+ displayname: 'LumiaStream',
3936
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
3937
+ giftName: 'Rose',
3938
+ jewelsAmount: 100,
3939
+ totalJewels: 100,
3940
+ comboCount: 1,
3941
+ hasVisualEffect: true,
3942
+ },
3943
+ },
3944
+ {
3945
+ label: '500 Jewels Combo',
3946
+ dynamic: { value: 500, name: 'Star' },
3947
+ extraSettings: {
3948
+ username: 'lumiastream',
3949
+ displayname: 'LumiaStream',
3950
+ avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
3951
+ giftName: 'Star',
3952
+ jewelsAmount: 500,
3953
+ totalJewels: 500,
3954
+ comboCount: 5,
3955
+ hasVisualEffect: true,
3956
+ },
3957
+ },
3958
+ ],
3959
+ inputFields: [
3960
+ {
3961
+ type: 'text',
3962
+ label: 'Username',
3963
+ variableField: 'username',
3964
+ required: false,
3965
+ default: 'lumiastream',
3966
+ },
3967
+ {
3968
+ type: 'text',
3969
+ label: 'Gift Name',
3970
+ variableField: 'giftName',
3971
+ required: false,
3972
+ default: 'Rose',
3973
+ },
3974
+ {
3975
+ type: 'number',
3976
+ label: 'Jewels Amount',
3977
+ dynamicField: 'value',
3978
+ variableField: 'jewelsAmount',
3979
+ required: true,
3980
+ default: 100,
3981
+ },
3982
+ {
3983
+ type: 'number',
3984
+ label: 'Combo Count',
3985
+ variableField: 'comboCount',
3986
+ required: false,
3987
+ default: 1,
3988
+ },
3989
+ ],
3990
+ LumiaVariationConditions: [
3991
+ { type: LumiaVariationConditions.RANDOM },
3992
+ {
3993
+ type: LumiaVariationConditions.EQUAL_STRING,
3994
+ description: 'Gift Name is equal to',
3995
+ },
3996
+ {
3997
+ type: LumiaVariationConditions.EQUAL_NUMBER,
3998
+ description: 'Jewels is equal to',
3999
+ },
4000
+ {
4001
+ type: LumiaVariationConditions.GREATER_NUMBER,
4002
+ description: 'Jewels is greater than',
4003
+ },
4004
+ { type: LumiaVariationConditions.EQUAL_USERNAME },
4005
+ { type: LumiaVariationConditions.EQUAL_VARIABLE },
4006
+ ],
4007
+ },
4008
+ [activity_types_1.LumiaAlertValues.YOUTUBE_SESSION_GIFTS]: {
4009
+ connection: event_types_1.LumiaIntegrations.YOUTUBE,
4010
+ message: 'Reached {{total}} jewels this session',
4011
+ eventlistMessage: 'Total Gifts {{total}}',
4012
+ eventlistDetailedMessage: 'reached {{total}} jewels',
4013
+ acceptedVariables: variables_types_1.AllVariables.youtube.alerts.sessionGifts,
4014
+ eventlistSpecialUsername: 'Total Gifts',
4015
+ quickActions: [
4016
+ {
4017
+ label: '100 Total Jewels',
4018
+ dynamic: { value: 100, total: 100, previousTotal: 50 },
4019
+ extraSettings: { total: 100, previousTotal: 50 },
4020
+ },
4021
+ {
4022
+ label: '500 Total Jewels',
4023
+ dynamic: { value: 500, total: 500, previousTotal: 100 },
4024
+ extraSettings: { total: 500, previousTotal: 100 },
4025
+ },
4026
+ {
4027
+ label: '1000 Total Jewels',
4028
+ dynamic: { value: 1000, total: 1000, previousTotal: 500 },
4029
+ extraSettings: { total: 1000, previousTotal: 500 },
4030
+ },
4031
+ ],
4032
+ inputFields: [
4033
+ {
4034
+ type: 'number',
4035
+ label: 'Total Jewels',
4036
+ dynamicField: 'value',
4037
+ variableField: 'total',
4038
+ required: true,
4039
+ default: 100,
4040
+ },
4041
+ {
4042
+ type: 'number',
4043
+ label: 'Previous Total',
4044
+ dynamicField: 'previousTotal',
4045
+ variableField: 'previousTotal',
4046
+ required: false,
4047
+ default: 0,
4048
+ },
4049
+ ],
4050
+ LumiaVariationConditions: [
4051
+ { type: LumiaVariationConditions.GREATER_NUMBER, description: 'Total Session Jewels Greater Than' },
4052
+ { type: LumiaVariationConditions.COUNT_IS_MULTIPLE_OF, description: 'Total Session Jewels is a multiple of' },
4053
+ ],
4054
+ },
3909
4055
  [activity_types_1.LumiaAlertValues.YOUTUBE_SUPERCHAT]: {
3910
4056
  connection: event_types_1.LumiaIntegrations.YOUTUBE,
3911
4057
  message: '{{username}} just super chatted with {{currencySymbol}}{{amount}}. They said {{message}}',
@@ -575,6 +575,10 @@ export declare enum LumiaAlertValues {
575
575
  YOUTUBE_SUPERSTICKER = "youtube-supersticker",
576
576
  /** YouTube session superstickers */
577
577
  YOUTUBE_SESSION_SUPERSTICKERS = "youtube-sessionSuperstickers",
578
+ /** YouTube gift event (jewel-based) */
579
+ YOUTUBE_GIFTS = "youtube-gifts",
580
+ /** YouTube session gifts */
581
+ YOUTUBE_SESSION_GIFTS = "youtube-sessionGifts",
578
582
  /** YouTube total likes */
579
583
  YOUTUBE_LIKE = "youtube-like",
580
584
  /** YouTube total views */
@@ -1210,6 +1214,16 @@ export declare enum SystemVariables {
1210
1214
  YOUTUBE_LAST_GIFT_MEMBER = "youtube_last_gift_member",
1211
1215
  /** Session gift members (list). Use as {{youtube_session_gift_members}}. */
1212
1216
  YOUTUBE_SESSION_GIFT_MEMBERS = "youtube_session_gift_members",
1217
+ /** Lifetime jewels count. Use as {{youtube_total_jewels_count}}. */
1218
+ YOUTUBE_TOTAL_JEWELS_COUNT = "youtube_total_jewels_count",
1219
+ /** Session jewels count. Use as {{youtube_session_jewels_count}}. */
1220
+ YOUTUBE_SESSION_JEWELS_COUNT = "youtube_session_jewels_count",
1221
+ /** Last jewel amount. Use as {{youtube_last_jewels}}. */
1222
+ YOUTUBE_LAST_JEWELS = "youtube_last_jewels",
1223
+ /** Last user that sent jewels. Use as {{youtube_last_jewels_user}}. */
1224
+ YOUTUBE_LAST_JEWELS_USER = "youtube_last_jewels_user",
1225
+ /** Session jewel gifters (list). Use as {{youtube_session_jewels_gifters}}. */
1226
+ YOUTUBE_SESSION_JEWELS_GIFTERS = "youtube_session_jewels_gifters",
1213
1227
  /** Last subscriber. Use as {{youtube_last_subscriber}}. */
1214
1228
  YOUTUBE_LAST_SUBSCRIBER = "youtube_last_subscriber",
1215
1229
  /** Total uploaded videos. Use as {{youtube_total_video_count}}. */
@@ -575,6 +575,10 @@ export declare enum LumiaAlertValues {
575
575
  YOUTUBE_SUPERSTICKER = "youtube-supersticker",
576
576
  /** YouTube session superstickers */
577
577
  YOUTUBE_SESSION_SUPERSTICKERS = "youtube-sessionSuperstickers",
578
+ /** YouTube gift event (jewel-based) */
579
+ YOUTUBE_GIFTS = "youtube-gifts",
580
+ /** YouTube session gifts */
581
+ YOUTUBE_SESSION_GIFTS = "youtube-sessionGifts",
578
582
  /** YouTube total likes */
579
583
  YOUTUBE_LIKE = "youtube-like",
580
584
  /** YouTube total views */
@@ -1210,6 +1214,16 @@ export declare enum SystemVariables {
1210
1214
  YOUTUBE_LAST_GIFT_MEMBER = "youtube_last_gift_member",
1211
1215
  /** Session gift members (list). Use as {{youtube_session_gift_members}}. */
1212
1216
  YOUTUBE_SESSION_GIFT_MEMBERS = "youtube_session_gift_members",
1217
+ /** Lifetime jewels count. Use as {{youtube_total_jewels_count}}. */
1218
+ YOUTUBE_TOTAL_JEWELS_COUNT = "youtube_total_jewels_count",
1219
+ /** Session jewels count. Use as {{youtube_session_jewels_count}}. */
1220
+ YOUTUBE_SESSION_JEWELS_COUNT = "youtube_session_jewels_count",
1221
+ /** Last jewel amount. Use as {{youtube_last_jewels}}. */
1222
+ YOUTUBE_LAST_JEWELS = "youtube_last_jewels",
1223
+ /** Last user that sent jewels. Use as {{youtube_last_jewels_user}}. */
1224
+ YOUTUBE_LAST_JEWELS_USER = "youtube_last_jewels_user",
1225
+ /** Session jewel gifters (list). Use as {{youtube_session_jewels_gifters}}. */
1226
+ YOUTUBE_SESSION_JEWELS_GIFTERS = "youtube_session_jewels_gifters",
1213
1227
  /** Last subscriber. Use as {{youtube_last_subscriber}}. */
1214
1228
  YOUTUBE_LAST_SUBSCRIBER = "youtube_last_subscriber",
1215
1229
  /** Total uploaded videos. Use as {{youtube_total_video_count}}. */
@@ -116,6 +116,7 @@ export declare const LumiaMapAlertTypeToEventListType: {
116
116
  "youtube-subscriber": LumiaEventListTypes;
117
117
  "youtube-superchat": LumiaEventListTypes;
118
118
  "youtube-supersticker": LumiaEventListTypes;
119
+ "youtube-gifts": LumiaEventListTypes;
119
120
  "youtube-like": LumiaEventListTypes;
120
121
  "youtube-viewers": LumiaEventListTypes;
121
122
  "crowdcontrol-effect": LumiaEventListTypes;
@@ -121,6 +121,7 @@ exports.LumiaMapAlertTypeToEventListType = {
121
121
  [activity_types_1.LumiaAlertValues.YOUTUBE_SUBSCRIBER]: LumiaEventListTypes.FOLLOWER,
122
122
  [activity_types_1.LumiaAlertValues.YOUTUBE_SUPERCHAT]: LumiaEventListTypes.SUPERCHATS,
123
123
  [activity_types_1.LumiaAlertValues.YOUTUBE_SUPERSTICKER]: LumiaEventListTypes.SUPERSTICKERS,
124
+ [activity_types_1.LumiaAlertValues.YOUTUBE_GIFTS]: LumiaEventListTypes.GIFTS,
124
125
  [activity_types_1.LumiaAlertValues.YOUTUBE_LIKE]: LumiaEventListTypes.LIKES,
125
126
  [activity_types_1.LumiaAlertValues.YOUTUBE_VIEWERS]: LumiaEventListTypes.OTHERS,
126
127
  [activity_types_1.LumiaAlertValues.CROWDCONTROL_EFFECT]: LumiaEventListTypes.OTHERS,
@@ -367,6 +367,16 @@ export declare enum SystemVariables {
367
367
  YOUTUBE_LAST_GIFT_MEMBER = "youtube_last_gift_member",
368
368
  /** Session gift members (list). Use as {{youtube_session_gift_members}}. */
369
369
  YOUTUBE_SESSION_GIFT_MEMBERS = "youtube_session_gift_members",
370
+ /** Lifetime jewels count. Use as {{youtube_total_jewels_count}}. */
371
+ YOUTUBE_TOTAL_JEWELS_COUNT = "youtube_total_jewels_count",
372
+ /** Session jewels count. Use as {{youtube_session_jewels_count}}. */
373
+ YOUTUBE_SESSION_JEWELS_COUNT = "youtube_session_jewels_count",
374
+ /** Last jewel amount. Use as {{youtube_last_jewels}}. */
375
+ YOUTUBE_LAST_JEWELS = "youtube_last_jewels",
376
+ /** Last user that sent jewels. Use as {{youtube_last_jewels_user}}. */
377
+ YOUTUBE_LAST_JEWELS_USER = "youtube_last_jewels_user",
378
+ /** Session jewel gifters (list). Use as {{youtube_session_jewels_gifters}}. */
379
+ YOUTUBE_SESSION_JEWELS_GIFTERS = "youtube_session_jewels_gifters",
370
380
  /** Last subscriber. Use as {{youtube_last_subscriber}}. */
371
381
  YOUTUBE_LAST_SUBSCRIBER = "youtube_last_subscriber",
372
382
  /** Total uploaded videos. Use as {{youtube_total_video_count}}. */
@@ -1039,6 +1049,8 @@ export declare const AllVariables: {
1039
1049
  sessionMembers: string[];
1040
1050
  giftMembers: string[];
1041
1051
  sessionGiftMembers: string[];
1052
+ gifts: string[];
1053
+ sessionGifts: string[];
1042
1054
  superchat: string[];
1043
1055
  sessionSuperchats: string[];
1044
1056
  supersticker: string[];
@@ -381,6 +381,16 @@ var SystemVariables;
381
381
  SystemVariables["YOUTUBE_LAST_GIFT_MEMBER"] = "youtube_last_gift_member";
382
382
  /** Session gift members (list). Use as {{youtube_session_gift_members}}. */
383
383
  SystemVariables["YOUTUBE_SESSION_GIFT_MEMBERS"] = "youtube_session_gift_members";
384
+ /** Lifetime jewels count. Use as {{youtube_total_jewels_count}}. */
385
+ SystemVariables["YOUTUBE_TOTAL_JEWELS_COUNT"] = "youtube_total_jewels_count";
386
+ /** Session jewels count. Use as {{youtube_session_jewels_count}}. */
387
+ SystemVariables["YOUTUBE_SESSION_JEWELS_COUNT"] = "youtube_session_jewels_count";
388
+ /** Last jewel amount. Use as {{youtube_last_jewels}}. */
389
+ SystemVariables["YOUTUBE_LAST_JEWELS"] = "youtube_last_jewels";
390
+ /** Last user that sent jewels. Use as {{youtube_last_jewels_user}}. */
391
+ SystemVariables["YOUTUBE_LAST_JEWELS_USER"] = "youtube_last_jewels_user";
392
+ /** Session jewel gifters (list). Use as {{youtube_session_jewels_gifters}}. */
393
+ SystemVariables["YOUTUBE_SESSION_JEWELS_GIFTERS"] = "youtube_session_jewels_gifters";
384
394
  /** Last subscriber. Use as {{youtube_last_subscriber}}. */
385
395
  SystemVariables["YOUTUBE_LAST_SUBSCRIBER"] = "youtube_last_subscriber";
386
396
  /** Total uploaded videos. Use as {{youtube_total_video_count}}. */
@@ -2011,6 +2021,11 @@ exports.AllVariables = {
2011
2021
  'youtube_session_gift_members_count',
2012
2022
  'youtube_last_gift_member',
2013
2023
  'youtube_session_gift_members',
2024
+ 'youtube_total_jewels_count',
2025
+ 'youtube_session_jewels_count',
2026
+ 'youtube_last_jewels',
2027
+ 'youtube_last_jewels_user',
2028
+ 'youtube_session_jewels_gifters',
2014
2029
  'youtube_total_video_count',
2015
2030
  'youtube_total_view_count',
2016
2031
  ],
@@ -2040,6 +2055,22 @@ exports.AllVariables = {
2040
2055
  'subPlanName',
2041
2056
  ],
2042
2057
  sessionGiftMembers: ['total', 'previousTotal'],
2058
+ gifts: [
2059
+ 'username',
2060
+ 'displayname',
2061
+ 'avatar',
2062
+ 'userId',
2063
+ 'jewelsAmount',
2064
+ 'totalJewels',
2065
+ 'comboCount',
2066
+ 'giftName',
2067
+ 'giftUrl',
2068
+ 'hasVisualEffect',
2069
+ 'altText',
2070
+ 'language',
2071
+ 'message',
2072
+ ],
2073
+ sessionGifts: ['total', 'previousTotal'],
2043
2074
  superchat: ['username', 'displayname', 'currency', 'currencySymbol', 'amount', 'message'],
2044
2075
  sessionSuperchats: ['total', 'previousTotal', 'currency', 'currencySymbol'],
2045
2076
  supersticker: ['username', 'displayname', 'stickerId', 'stickerName', 'amount', 'currency', 'currencySymbol', 'imageUrl'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumiastream/lumia-types",
3
- "version": "3.2.9",
3
+ "version": "3.3.0",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "files": [