@lumiastream/lumia-types 3.1.6 → 3.1.8
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/activity.types.d.ts +9 -0
- package/dist/activity.types.js +9 -0
- package/dist/alert.types.js +60 -0
- package/dist/custom-overlays/custom-overlays.d.ts +24 -0
- package/dist/custom-overlays.d.ts +24 -0
- package/dist/eventlist.types.d.ts +3 -0
- package/dist/eventlist.types.js +3 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/tiktok_gifts.d.ts +9 -0
- package/dist/tiktok_gifts.js +3632 -0
- package/dist/variables.types.d.ts +21 -0
- package/dist/variables.types.js +40 -0
- package/dist/viewer_profile_achievements.d.ts +12 -0
- package/dist/viewer_profile_achievements.js +33 -1
- package/package.json +1 -1
|
@@ -169,6 +169,24 @@ export declare enum SystemVariables {
|
|
|
169
169
|
RAFFLE_WINNER_AVATAR = "raffle_winner_avatar",
|
|
170
170
|
/** Command used to enter the raffle (e.g., !join). Use as {{raffle_entry_command}}. */
|
|
171
171
|
RAFFLE_ENTRY_COMMAND = "raffle_entry_command",
|
|
172
|
+
/** Tournament title. Use as {{tournament_title}}. */
|
|
173
|
+
TOURNAMENT_TITLE = "tournament_title",
|
|
174
|
+
/** Tournament description. Use as {{tournament_description}}. */
|
|
175
|
+
TOURNAMENT_DESCRIPTION = "tournament_description",
|
|
176
|
+
/** Tournament game. Use as {{tournament_game}}. */
|
|
177
|
+
TOURNAMENT_GAME = "tournament_game",
|
|
178
|
+
/** Tournament format. Use as {{tournament_format}}. */
|
|
179
|
+
TOURNAMENT_FORMAT = "tournament_format",
|
|
180
|
+
/** Tournament state. Use as {{tournament_state}}. */
|
|
181
|
+
TOURNAMENT_STATE = "tournament_state",
|
|
182
|
+
/** Tournament participants count. Use as {{tournament_participants_count}}. */
|
|
183
|
+
TOURNAMENT_PARTICIPANTS_COUNT = "tournament_participants_count",
|
|
184
|
+
/** Tournament entry command (e.g., !tournament). Use as {{tournament_entry_command}}. */
|
|
185
|
+
TOURNAMENT_ENTRY_COMMAND = "tournament_entry_command",
|
|
186
|
+
/** Tournament winner. Use as {{tournament_winner}}. */
|
|
187
|
+
TOURNAMENT_WINNER = "tournament_winner",
|
|
188
|
+
/** Tournament winner avatar URL. Use as {{tournament_winner_avatar}}. */
|
|
189
|
+
TOURNAMENT_WINNER_AVATAR = "tournament_winner_avatar",
|
|
172
190
|
/** Viewer queue title. Use as {{viewerqueue_title}}. */
|
|
173
191
|
VIEWERQUEUE_TITLE = "viewerqueue_title",
|
|
174
192
|
/** Viewer queue entry command (e.g., !joinq). Use as {{viewerqueue_entry_command}}. */
|
|
@@ -697,6 +715,9 @@ export declare const AllVariables: {
|
|
|
697
715
|
raffleStart: string[];
|
|
698
716
|
raffleStop: string[];
|
|
699
717
|
raffleWinner: string[];
|
|
718
|
+
tournamentStart: string[];
|
|
719
|
+
tournamentEnd: string[];
|
|
720
|
+
tournamentWinner: string[];
|
|
700
721
|
pollStarted: string[];
|
|
701
722
|
pollProgressed: string[];
|
|
702
723
|
pollEnded: string[];
|
package/dist/variables.types.js
CHANGED
|
@@ -181,6 +181,24 @@ var SystemVariables;
|
|
|
181
181
|
SystemVariables["RAFFLE_WINNER_AVATAR"] = "raffle_winner_avatar";
|
|
182
182
|
/** Command used to enter the raffle (e.g., !join). Use as {{raffle_entry_command}}. */
|
|
183
183
|
SystemVariables["RAFFLE_ENTRY_COMMAND"] = "raffle_entry_command";
|
|
184
|
+
/** Tournament title. Use as {{tournament_title}}. */
|
|
185
|
+
SystemVariables["TOURNAMENT_TITLE"] = "tournament_title";
|
|
186
|
+
/** Tournament description. Use as {{tournament_description}}. */
|
|
187
|
+
SystemVariables["TOURNAMENT_DESCRIPTION"] = "tournament_description";
|
|
188
|
+
/** Tournament game. Use as {{tournament_game}}. */
|
|
189
|
+
SystemVariables["TOURNAMENT_GAME"] = "tournament_game";
|
|
190
|
+
/** Tournament format. Use as {{tournament_format}}. */
|
|
191
|
+
SystemVariables["TOURNAMENT_FORMAT"] = "tournament_format";
|
|
192
|
+
/** Tournament state. Use as {{tournament_state}}. */
|
|
193
|
+
SystemVariables["TOURNAMENT_STATE"] = "tournament_state";
|
|
194
|
+
/** Tournament participants count. Use as {{tournament_participants_count}}. */
|
|
195
|
+
SystemVariables["TOURNAMENT_PARTICIPANTS_COUNT"] = "tournament_participants_count";
|
|
196
|
+
/** Tournament entry command (e.g., !tournament). Use as {{tournament_entry_command}}. */
|
|
197
|
+
SystemVariables["TOURNAMENT_ENTRY_COMMAND"] = "tournament_entry_command";
|
|
198
|
+
/** Tournament winner. Use as {{tournament_winner}}. */
|
|
199
|
+
SystemVariables["TOURNAMENT_WINNER"] = "tournament_winner";
|
|
200
|
+
/** Tournament winner avatar URL. Use as {{tournament_winner_avatar}}. */
|
|
201
|
+
SystemVariables["TOURNAMENT_WINNER_AVATAR"] = "tournament_winner_avatar";
|
|
184
202
|
/** Viewer queue title. Use as {{viewerqueue_title}}. */
|
|
185
203
|
SystemVariables["VIEWERQUEUE_TITLE"] = "viewerqueue_title";
|
|
186
204
|
/** Viewer queue entry command (e.g., !joinq). Use as {{viewerqueue_entry_command}}. */
|
|
@@ -875,6 +893,15 @@ exports.AllVariables = {
|
|
|
875
893
|
'raffle_winner',
|
|
876
894
|
'raffle_winner_avatar',
|
|
877
895
|
'raffle_entry_command',
|
|
896
|
+
'tournament_title',
|
|
897
|
+
'tournament_description',
|
|
898
|
+
'tournament_game',
|
|
899
|
+
'tournament_format',
|
|
900
|
+
'tournament_state',
|
|
901
|
+
'tournament_participants_count',
|
|
902
|
+
'tournament_entry_command',
|
|
903
|
+
'tournament_winner',
|
|
904
|
+
'tournament_winner_avatar',
|
|
878
905
|
'viewerqueue_title',
|
|
879
906
|
'viewerqueue_entry_command',
|
|
880
907
|
'viewerqueue_entries',
|
|
@@ -1306,6 +1333,19 @@ exports.AllVariables = {
|
|
|
1306
1333
|
'duration',
|
|
1307
1334
|
'raffle_generated_number',
|
|
1308
1335
|
],
|
|
1336
|
+
tournamentStart: ['tournament_title', 'tournament_description', 'tournament_game', 'tournament_format', 'tournament_state', 'tournament_participants_count', 'tournament_entry_command'],
|
|
1337
|
+
tournamentEnd: ['tournament_title', 'tournament_description', 'tournament_game', 'tournament_format', 'tournament_state', 'tournament_participants_count', 'tournament_entry_command'],
|
|
1338
|
+
tournamentWinner: [
|
|
1339
|
+
'tournament_title',
|
|
1340
|
+
'tournament_description',
|
|
1341
|
+
'tournament_game',
|
|
1342
|
+
'tournament_format',
|
|
1343
|
+
'tournament_state',
|
|
1344
|
+
'tournament_participants_count',
|
|
1345
|
+
'tournament_entry_command',
|
|
1346
|
+
'tournament_winner',
|
|
1347
|
+
'tournament_winner_avatar',
|
|
1348
|
+
],
|
|
1309
1349
|
pollStarted: ['poll_title', 'poll_id', 'poll_choices'],
|
|
1310
1350
|
pollProgressed: ['poll_title', 'poll_id', 'poll_choices', 'poll_winning_title', 'poll_winning_id', 'poll_winning_votes', 'poll_total_votes'],
|
|
1311
1351
|
pollEnded: ['poll_id', 'poll_title', 'poll_choices', 'poll_winning_title', 'poll_winning_id', 'poll_winning_votes', 'poll_total_votes'],
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
export type ViewerProfileAchievementMetric = 'totalCommands' | 'uniqueCommands' | 'totalChatbotCommands' | 'totalFirstChatters' | 'totalPointsCommands' | 'totalPointsSpent' | 'totalTwitchExtensionsCommands' | 'totalBitsSpent' | 'totalKicksSpent' | 'totalGiftSubscriptions' | 'totalMoneySpent' | 'totalAlerts' | 'uniqueAlerts' | 'totalCommandsAndAlerts' | 'daysActive' | 'allRounder';
|
|
2
|
+
export type ViewerProfileCollectionSource = 'commands' | 'alerts' | 'firstChatters';
|
|
3
|
+
export type ViewerProfileCollectionMode = 'all' | 'none' | 'selected';
|
|
4
|
+
export type ViewerProfileCollectionRule = {
|
|
5
|
+
mode?: ViewerProfileCollectionMode;
|
|
6
|
+
selectedKeys?: string[];
|
|
7
|
+
};
|
|
8
|
+
export type ViewerProfileCollectionSettings = {
|
|
9
|
+
commands?: ViewerProfileCollectionRule;
|
|
10
|
+
alerts?: ViewerProfileCollectionRule;
|
|
11
|
+
firstChatters?: ViewerProfileCollectionRule;
|
|
12
|
+
};
|
|
2
13
|
export type ViewerProfileAchievementColor = 'gold' | 'amber' | 'emerald' | 'sky' | 'rose' | 'orange' | 'teal' | 'cyan' | 'violet' | 'slate';
|
|
3
14
|
export type ViewerProfileAchievementDefinition = {
|
|
4
15
|
id: string;
|
|
@@ -6,6 +17,7 @@ export type ViewerProfileAchievementDefinition = {
|
|
|
6
17
|
description: string;
|
|
7
18
|
metric: ViewerProfileAchievementMetric;
|
|
8
19
|
threshold: number;
|
|
20
|
+
sourceKeys?: ViewerProfileCollectionSource[];
|
|
9
21
|
connectionKeys?: string[];
|
|
10
22
|
icon: string;
|
|
11
23
|
color: ViewerProfileAchievementColor;
|
|
@@ -1,7 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VIEWER_PROFILE_ACHIEVEMENTS = void 0;
|
|
4
|
-
|
|
4
|
+
const getViewerProfileAchievementSourceKeys = (metric) => {
|
|
5
|
+
switch (metric) {
|
|
6
|
+
case 'totalCommands':
|
|
7
|
+
case 'uniqueCommands':
|
|
8
|
+
case 'totalChatbotCommands':
|
|
9
|
+
case 'totalPointsCommands':
|
|
10
|
+
case 'totalPointsSpent':
|
|
11
|
+
case 'totalTwitchExtensionsCommands':
|
|
12
|
+
return ['commands'];
|
|
13
|
+
case 'totalFirstChatters':
|
|
14
|
+
return ['firstChatters'];
|
|
15
|
+
case 'totalAlerts':
|
|
16
|
+
case 'uniqueAlerts':
|
|
17
|
+
case 'totalBitsSpent':
|
|
18
|
+
case 'totalKicksSpent':
|
|
19
|
+
case 'totalGiftSubscriptions':
|
|
20
|
+
case 'totalMoneySpent':
|
|
21
|
+
return ['alerts'];
|
|
22
|
+
case 'totalCommandsAndAlerts':
|
|
23
|
+
case 'allRounder':
|
|
24
|
+
return ['commands', 'alerts'];
|
|
25
|
+
default:
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const VIEWER_PROFILE_ACHIEVEMENT_DEFINITIONS = [
|
|
5
30
|
// ───────── Command Usage ─────────
|
|
6
31
|
{
|
|
7
32
|
id: 'commands-regular',
|
|
@@ -455,3 +480,10 @@ exports.VIEWER_PROFILE_ACHIEVEMENTS = [
|
|
|
455
480
|
color: 'gold',
|
|
456
481
|
},
|
|
457
482
|
];
|
|
483
|
+
exports.VIEWER_PROFILE_ACHIEVEMENTS = VIEWER_PROFILE_ACHIEVEMENT_DEFINITIONS.map((definition) => {
|
|
484
|
+
var _a;
|
|
485
|
+
return ({
|
|
486
|
+
...definition,
|
|
487
|
+
sourceKeys: (_a = definition.sourceKeys) !== null && _a !== void 0 ? _a : getViewerProfileAchievementSourceKeys(definition.metric),
|
|
488
|
+
});
|
|
489
|
+
});
|