@lumiastream/lumia-types 2.0.0 → 2.0.2
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.
- package/dist/alert.types.d.ts +1 -1
- package/dist/alert.types.js +59 -73
- package/dist/variables.types.d.ts +1 -0
- package/dist/variables.types.js +2 -1
- package/package.json +1 -1
package/dist/alert.types.d.ts
CHANGED
|
@@ -100,7 +100,7 @@ export declare const LumiaAlertConfigs: Record<LumiaAlertValues | string, {
|
|
|
100
100
|
quickActions?: Array<{
|
|
101
101
|
label: string;
|
|
102
102
|
dynamic: LumiaDynamicCondition;
|
|
103
|
-
extraSettings?: Record<string, string | number | boolean
|
|
103
|
+
extraSettings?: Record<string, string | number | boolean | Array<any>>;
|
|
104
104
|
}>;
|
|
105
105
|
inputFields?: Array<{
|
|
106
106
|
type: 'text' | 'number' | 'selection' | 'check' | 'currency';
|
package/dist/alert.types.js
CHANGED
|
@@ -851,19 +851,29 @@ exports.LumiaAlertConfigs = {
|
|
|
851
851
|
},
|
|
852
852
|
},
|
|
853
853
|
{
|
|
854
|
-
label: '
|
|
855
|
-
dynamic: { value:
|
|
854
|
+
label: 'Tier 2 Sub',
|
|
855
|
+
dynamic: { value: 2000 },
|
|
856
856
|
extraSettings: {
|
|
857
|
-
|
|
857
|
+
username: 'lumiastream',
|
|
858
|
+
avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
|
|
858
859
|
message: 'Great Stream',
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
860
|
+
tier: 2000,
|
|
861
|
+
subMonths: 2,
|
|
862
|
+
subPlan: 2000,
|
|
863
|
+
subPlanName: 'Tier 2',
|
|
864
|
+
},
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
label: 'Tier 3 Sub',
|
|
868
|
+
dynamic: { value: 3000 },
|
|
869
|
+
extraSettings: {
|
|
870
|
+
username: 'lumiastream',
|
|
871
|
+
avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
|
|
872
|
+
message: 'Great Stream',
|
|
873
|
+
tier: 3000,
|
|
874
|
+
subMonths: 3,
|
|
875
|
+
subPlan: 3000,
|
|
876
|
+
subPlanName: 'Tier 3',
|
|
867
877
|
},
|
|
868
878
|
},
|
|
869
879
|
{
|
|
@@ -902,22 +912,6 @@ exports.LumiaAlertConfigs = {
|
|
|
902
912
|
required: false,
|
|
903
913
|
default: 'lumiastream',
|
|
904
914
|
},
|
|
905
|
-
{
|
|
906
|
-
type: 'check',
|
|
907
|
-
label: 'Is Gift',
|
|
908
|
-
dynamicField: 'isGift',
|
|
909
|
-
variableField: 'isGift',
|
|
910
|
-
default: false,
|
|
911
|
-
required: false,
|
|
912
|
-
},
|
|
913
|
-
{
|
|
914
|
-
type: 'text',
|
|
915
|
-
label: 'Gift Recipient',
|
|
916
|
-
variableField: 'recipient',
|
|
917
|
-
required: false,
|
|
918
|
-
default: 'worldlights',
|
|
919
|
-
showWhen: 'isGift',
|
|
920
|
-
},
|
|
921
915
|
{
|
|
922
916
|
type: 'number',
|
|
923
917
|
label: 'Months subscribed',
|
|
@@ -925,16 +919,6 @@ exports.LumiaAlertConfigs = {
|
|
|
925
919
|
variableField: 'subMonths',
|
|
926
920
|
required: false,
|
|
927
921
|
default: 1,
|
|
928
|
-
hideWhen: 'isGift',
|
|
929
|
-
},
|
|
930
|
-
{
|
|
931
|
-
type: 'number',
|
|
932
|
-
label: 'Gift amount',
|
|
933
|
-
dynamicField: 'giftAmount',
|
|
934
|
-
variableField: 'giftAmount',
|
|
935
|
-
required: false,
|
|
936
|
-
default: 1,
|
|
937
|
-
showWhen: 'isGift',
|
|
938
922
|
},
|
|
939
923
|
{
|
|
940
924
|
type: 'selection',
|
|
@@ -978,23 +962,14 @@ exports.LumiaAlertConfigs = {
|
|
|
978
962
|
{
|
|
979
963
|
type: LumiaVariationConditions.IS_PRIME,
|
|
980
964
|
},
|
|
981
|
-
{
|
|
982
|
-
type: LumiaVariationConditions.IS_GIFT,
|
|
983
|
-
},
|
|
984
|
-
{
|
|
985
|
-
type: LumiaVariationConditions.GIFT_SUB_EQUAL,
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
type: LumiaVariationConditions.GIFT_SUB_GREATER,
|
|
989
|
-
},
|
|
990
965
|
],
|
|
991
966
|
},
|
|
992
967
|
[activity_types_1.LumiaAlertValues.TWITCH_GIFT_SUBSCRIPTION]: {
|
|
993
968
|
connection: event_types_1.LumiaIntegrations.TWITCH,
|
|
994
969
|
message: '{{gifter}} gifted {{giftAmount}} subs!',
|
|
995
970
|
eventlistMessage: 'Gifted subscription',
|
|
996
|
-
eventlistDetailedMessage: 'gifted {{
|
|
997
|
-
acceptedVariables: variables_types_1.AllVariables.twitch.alerts.
|
|
971
|
+
eventlistDetailedMessage: 'gifted {{recipients}} a subscription',
|
|
972
|
+
acceptedVariables: variables_types_1.AllVariables.twitch.alerts.subscriptionGift,
|
|
998
973
|
quickActions: [
|
|
999
974
|
{
|
|
1000
975
|
label: 'Gift 1 Sub',
|
|
@@ -1004,7 +979,8 @@ exports.LumiaAlertConfigs = {
|
|
|
1004
979
|
avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
|
|
1005
980
|
gifter: 'lumiastream',
|
|
1006
981
|
message: 'Great Stream',
|
|
1007
|
-
|
|
982
|
+
recipients: 'worldlights',
|
|
983
|
+
recipientsRaw: [{ username: 'worldlights', avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures', userId: '123', userLevels: { subscriber: true } }],
|
|
1008
984
|
giftAmount: 1,
|
|
1009
985
|
totalGifts: 1,
|
|
1010
986
|
tier: 1000,
|
|
@@ -1021,7 +997,14 @@ exports.LumiaAlertConfigs = {
|
|
|
1021
997
|
avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
|
|
1022
998
|
gifter: 'lumiastream',
|
|
1023
999
|
message: 'Great Stream',
|
|
1024
|
-
|
|
1000
|
+
recipients: 'worldlights,lumiastream,lumiatwitch,lumiakick,rgblumia',
|
|
1001
|
+
recipientsRaw: [
|
|
1002
|
+
{ username: 'worldlights', avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures', userId: '123', userLevels: { subscriber: true } },
|
|
1003
|
+
{ username: 'lumiastream', avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures', userId: '123', userLevels: { subscriber: true } },
|
|
1004
|
+
{ username: 'lumiatwitch', avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures', userId: '123', userLevels: { subscriber: true } },
|
|
1005
|
+
{ username: 'worldlights', avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures', userId: '123', userLevels: { subscriber: true } },
|
|
1006
|
+
{ username: 'rgblumia', avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures', userId: '123', userLevels: { subscriber: true } },
|
|
1007
|
+
],
|
|
1025
1008
|
giftAmount: 5,
|
|
1026
1009
|
totalGifts: 5,
|
|
1027
1010
|
tier: 1000,
|
|
@@ -1030,23 +1013,6 @@ exports.LumiaAlertConfigs = {
|
|
|
1030
1013
|
subPlanName: 'Tier 1',
|
|
1031
1014
|
},
|
|
1032
1015
|
},
|
|
1033
|
-
{
|
|
1034
|
-
label: 'Gift 10 Subs',
|
|
1035
|
-
dynamic: { value: 1000, giftAmount: 10, isGift: true },
|
|
1036
|
-
extraSettings: {
|
|
1037
|
-
username: 'lumiastream',
|
|
1038
|
-
avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
|
|
1039
|
-
gifter: 'lumiastream',
|
|
1040
|
-
message: 'Great Stream',
|
|
1041
|
-
recipient: 'worldlights',
|
|
1042
|
-
giftAmount: 10,
|
|
1043
|
-
totalGifts: 10,
|
|
1044
|
-
tier: 1000,
|
|
1045
|
-
subMonths: 1,
|
|
1046
|
-
subPlan: 1000,
|
|
1047
|
-
subPlanName: 'Tier 1',
|
|
1048
|
-
},
|
|
1049
|
-
},
|
|
1050
1016
|
],
|
|
1051
1017
|
inputFields: [
|
|
1052
1018
|
{
|
|
@@ -1065,8 +1031,8 @@ exports.LumiaAlertConfigs = {
|
|
|
1065
1031
|
},
|
|
1066
1032
|
{
|
|
1067
1033
|
type: 'text',
|
|
1068
|
-
label: 'Gift
|
|
1069
|
-
variableField: '
|
|
1034
|
+
label: 'Gift Recipients',
|
|
1035
|
+
variableField: 'recipients',
|
|
1070
1036
|
required: true,
|
|
1071
1037
|
default: 'worldlights',
|
|
1072
1038
|
},
|
|
@@ -3467,12 +3433,22 @@ exports.LumiaAlertConfigs = {
|
|
|
3467
3433
|
{
|
|
3468
3434
|
label: '5 gifts',
|
|
3469
3435
|
dynamic: { value: 5, giftAmount: 5 },
|
|
3470
|
-
extraSettings: {
|
|
3436
|
+
extraSettings: {
|
|
3437
|
+
username: 'lumiastream',
|
|
3438
|
+
avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
|
|
3439
|
+
amount: 5,
|
|
3440
|
+
giftAmount: 5,
|
|
3441
|
+
},
|
|
3471
3442
|
},
|
|
3472
3443
|
{
|
|
3473
3444
|
label: '20 gifts',
|
|
3474
3445
|
dynamic: { value: 20, giftAmount: 20 },
|
|
3475
|
-
extraSettings: {
|
|
3446
|
+
extraSettings: {
|
|
3447
|
+
username: 'lumiastream',
|
|
3448
|
+
avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
|
|
3449
|
+
amount: 20,
|
|
3450
|
+
giftAmount: 20,
|
|
3451
|
+
},
|
|
3476
3452
|
},
|
|
3477
3453
|
],
|
|
3478
3454
|
inputFields: [
|
|
@@ -4002,12 +3978,22 @@ exports.LumiaAlertConfigs = {
|
|
|
4002
3978
|
{
|
|
4003
3979
|
label: '5 gifts',
|
|
4004
3980
|
dynamic: { value: 5, giftAmount: 5 },
|
|
4005
|
-
extraSettings: {
|
|
3981
|
+
extraSettings: {
|
|
3982
|
+
username: 'lumiastream',
|
|
3983
|
+
avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
|
|
3984
|
+
amount: 5,
|
|
3985
|
+
giftAmount: 5,
|
|
3986
|
+
},
|
|
4006
3987
|
},
|
|
4007
3988
|
{
|
|
4008
3989
|
label: '20 gifts',
|
|
4009
3990
|
dynamic: { value: 20, giftAmount: 20 },
|
|
4010
|
-
extraSettings: {
|
|
3991
|
+
extraSettings: {
|
|
3992
|
+
username: 'lumiastream',
|
|
3993
|
+
avatar: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png',
|
|
3994
|
+
amount: 20,
|
|
3995
|
+
giftAmount: 20,
|
|
3996
|
+
},
|
|
4011
3997
|
},
|
|
4012
3998
|
],
|
|
4013
3999
|
inputFields: [
|
package/dist/variables.types.js
CHANGED
|
@@ -1268,7 +1268,8 @@ exports.AllVariables = {
|
|
|
1268
1268
|
firstChatter: ['username', 'userId', 'displayname', 'avatar', 'first_count', 'message'],
|
|
1269
1269
|
entrance: ['username', 'userId', 'displayname', 'avatar', 'message'],
|
|
1270
1270
|
follower: ['username', 'avatar'],
|
|
1271
|
-
subscriber: ['username', 'avatar', 'tier', '
|
|
1271
|
+
subscriber: ['username', 'avatar', 'tier', 'recipient', 'subMonths', 'streakMonths', 'message', 'subPlan', 'subPlanName'],
|
|
1272
|
+
subscriptionGift: ['username', 'avatar', 'tier', 'giftAmount', 'recipients', 'recipientsRaw', 'gifter', 'totalGifts', 'subMonths', 'streakMonths', 'message', 'subPlan', 'subPlanName'],
|
|
1272
1273
|
bits: ['username', 'avatar', 'amount', 'message', 'rawMessage', 'full_message'],
|
|
1273
1274
|
raid: ['username', 'avatar', 'viewers'],
|
|
1274
1275
|
hypetrainStarted: ['total', 'progress', 'goal'],
|