@lumiastream/lumia-types 3.5.2 → 3.5.4
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 +0 -3
- package/dist/activity.types.js +0 -3
- package/dist/alert.types.js +181 -202
- package/dist/custom-overlays/custom-overlays.d.ts +12 -2
- package/dist/custom-overlays.d.ts +12 -2
- package/dist/emulate.helpers.d.ts +8 -0
- package/dist/emulate.helpers.js +124 -0
- package/dist/esm/activity.types.js +0 -3
- package/dist/esm/alert.types.js +181 -202
- package/dist/esm/emulate.helpers.js +117 -0
- package/dist/esm/eventlist.types.js +0 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/overlay_template.types.js +1 -0
- package/dist/esm/variables.types.js +17 -2
- package/dist/esm/viewer_profile_achievements.js +164 -0
- package/dist/eventlist.types.js +0 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +9 -1
- package/dist/overlay_template.types.d.ts +25 -0
- package/dist/overlay_template.types.js +4 -0
- package/dist/variables.types.d.ts +12 -1
- package/dist/variables.types.js +17 -2
- package/dist/viewer_profile_achievements.d.ts +1 -1
- package/dist/viewer_profile_achievements.js +164 -0
- package/dist/wire.types.d.ts +1 -16
- package/package.json +2 -1
|
@@ -16,8 +16,12 @@ const getViewerProfileAchievementSourceKeys = (metric) => {
|
|
|
16
16
|
case 'uniqueAlerts':
|
|
17
17
|
case 'totalBitsSpent':
|
|
18
18
|
case 'totalKicksSpent':
|
|
19
|
+
case 'totalJewelsSpent':
|
|
20
|
+
case 'totalDiamondsSpent':
|
|
21
|
+
case 'totalStarsSpent':
|
|
19
22
|
case 'totalGiftSubscriptions':
|
|
20
23
|
case 'totalMoneySpent':
|
|
24
|
+
case 'totalCharitySpent':
|
|
21
25
|
return ['alerts'];
|
|
22
26
|
case 'totalCommandsAndAlerts':
|
|
23
27
|
case 'allRounder':
|
|
@@ -321,6 +325,129 @@ const VIEWER_PROFILE_ACHIEVEMENT_DEFINITIONS = [
|
|
|
321
325
|
icon: 'LocalFireDepartment',
|
|
322
326
|
color: 'gold',
|
|
323
327
|
},
|
|
328
|
+
// ───────── YouTube Jewels ─────────
|
|
329
|
+
{
|
|
330
|
+
id: 'jewels-spark',
|
|
331
|
+
label: 'Jewels Spark',
|
|
332
|
+
description: 'Sent 100 jewels.',
|
|
333
|
+
metric: 'totalJewelsSpent',
|
|
334
|
+
threshold: 100,
|
|
335
|
+
connectionKeys: ['youtube'],
|
|
336
|
+
icon: 'Diamond',
|
|
337
|
+
color: 'rose',
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
id: 'jewels-glow',
|
|
341
|
+
label: 'Jewels Glow',
|
|
342
|
+
description: 'Sent 500 jewels.',
|
|
343
|
+
metric: 'totalJewelsSpent',
|
|
344
|
+
threshold: 500,
|
|
345
|
+
connectionKeys: ['youtube'],
|
|
346
|
+
icon: 'Diamond',
|
|
347
|
+
color: 'violet',
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
id: 'jewels-beam',
|
|
351
|
+
label: 'Jewels Beam',
|
|
352
|
+
description: 'Sent 2,500 jewels.',
|
|
353
|
+
metric: 'totalJewelsSpent',
|
|
354
|
+
threshold: 2500,
|
|
355
|
+
connectionKeys: ['youtube'],
|
|
356
|
+
icon: 'Diamond',
|
|
357
|
+
color: 'cyan',
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
id: 'jewels-supernova',
|
|
361
|
+
label: 'Jewels Supernova',
|
|
362
|
+
description: 'Sent 10,000 jewels.',
|
|
363
|
+
metric: 'totalJewelsSpent',
|
|
364
|
+
threshold: 10000,
|
|
365
|
+
connectionKeys: ['youtube'],
|
|
366
|
+
icon: 'Diamond',
|
|
367
|
+
color: 'gold',
|
|
368
|
+
},
|
|
369
|
+
// ───────── TikTok Diamonds ─────────
|
|
370
|
+
{
|
|
371
|
+
id: 'diamonds-spark',
|
|
372
|
+
label: 'Diamonds Spark',
|
|
373
|
+
description: 'Sent 100 diamonds.',
|
|
374
|
+
metric: 'totalDiamondsSpent',
|
|
375
|
+
threshold: 100,
|
|
376
|
+
connectionKeys: ['tiktok'],
|
|
377
|
+
icon: 'Diamond',
|
|
378
|
+
color: 'cyan',
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
id: 'diamonds-glow',
|
|
382
|
+
label: 'Diamonds Glow',
|
|
383
|
+
description: 'Sent 1,000 diamonds.',
|
|
384
|
+
metric: 'totalDiamondsSpent',
|
|
385
|
+
threshold: 1000,
|
|
386
|
+
connectionKeys: ['tiktok'],
|
|
387
|
+
icon: 'Diamond',
|
|
388
|
+
color: 'sky',
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
id: 'diamonds-beam',
|
|
392
|
+
label: 'Diamonds Beam',
|
|
393
|
+
description: 'Sent 5,000 diamonds.',
|
|
394
|
+
metric: 'totalDiamondsSpent',
|
|
395
|
+
threshold: 5000,
|
|
396
|
+
connectionKeys: ['tiktok'],
|
|
397
|
+
icon: 'Diamond',
|
|
398
|
+
color: 'violet',
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
id: 'diamonds-supernova',
|
|
402
|
+
label: 'Diamonds Supernova',
|
|
403
|
+
description: 'Sent 25,000 diamonds.',
|
|
404
|
+
metric: 'totalDiamondsSpent',
|
|
405
|
+
threshold: 25000,
|
|
406
|
+
connectionKeys: ['tiktok'],
|
|
407
|
+
icon: 'Diamond',
|
|
408
|
+
color: 'gold',
|
|
409
|
+
},
|
|
410
|
+
// ───────── Facebook Stars ─────────
|
|
411
|
+
{
|
|
412
|
+
id: 'stars-spark',
|
|
413
|
+
label: 'Stars Spark',
|
|
414
|
+
description: 'Sent 100 stars.',
|
|
415
|
+
metric: 'totalStarsSpent',
|
|
416
|
+
threshold: 100,
|
|
417
|
+
connectionKeys: ['facebook'],
|
|
418
|
+
icon: 'Star',
|
|
419
|
+
color: 'sky',
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
id: 'stars-glow',
|
|
423
|
+
label: 'Stars Glow',
|
|
424
|
+
description: 'Sent 500 stars.',
|
|
425
|
+
metric: 'totalStarsSpent',
|
|
426
|
+
threshold: 500,
|
|
427
|
+
connectionKeys: ['facebook'],
|
|
428
|
+
icon: 'Star',
|
|
429
|
+
color: 'teal',
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
id: 'stars-beam',
|
|
433
|
+
label: 'Stars Beam',
|
|
434
|
+
description: 'Sent 2,500 stars.',
|
|
435
|
+
metric: 'totalStarsSpent',
|
|
436
|
+
threshold: 2500,
|
|
437
|
+
connectionKeys: ['facebook'],
|
|
438
|
+
icon: 'Star',
|
|
439
|
+
color: 'amber',
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
id: 'stars-supernova',
|
|
443
|
+
label: 'Stars Supernova',
|
|
444
|
+
description: 'Sent 10,000 stars.',
|
|
445
|
+
metric: 'totalStarsSpent',
|
|
446
|
+
threshold: 10000,
|
|
447
|
+
connectionKeys: ['facebook'],
|
|
448
|
+
icon: 'Star',
|
|
449
|
+
color: 'gold',
|
|
450
|
+
},
|
|
324
451
|
// ───────── Donations ─────────
|
|
325
452
|
{
|
|
326
453
|
id: 'light-supporter',
|
|
@@ -367,6 +494,43 @@ const VIEWER_PROFILE_ACHIEVEMENT_DEFINITIONS = [
|
|
|
367
494
|
icon: 'MonetizationOn',
|
|
368
495
|
color: 'gold',
|
|
369
496
|
},
|
|
497
|
+
// ───────── Charity ─────────
|
|
498
|
+
{
|
|
499
|
+
id: 'charity-helper',
|
|
500
|
+
label: 'Charity Helper',
|
|
501
|
+
description: 'Gave 10 to charity in your default currency.',
|
|
502
|
+
metric: 'totalCharitySpent',
|
|
503
|
+
threshold: 10,
|
|
504
|
+
icon: 'Favorite',
|
|
505
|
+
color: 'rose',
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
id: 'charity-advocate',
|
|
509
|
+
label: 'Charity Advocate',
|
|
510
|
+
description: 'Gave 50 to charity in your default currency.',
|
|
511
|
+
metric: 'totalCharitySpent',
|
|
512
|
+
threshold: 50,
|
|
513
|
+
icon: 'Favorite',
|
|
514
|
+
color: 'rose',
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
id: 'charity-champion',
|
|
518
|
+
label: 'Charity Champion',
|
|
519
|
+
description: 'Gave 250 to charity in your default currency.',
|
|
520
|
+
metric: 'totalCharitySpent',
|
|
521
|
+
threshold: 250,
|
|
522
|
+
icon: 'VolunteerActivism',
|
|
523
|
+
color: 'amber',
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
id: 'charity-hero',
|
|
527
|
+
label: 'Charity Hero',
|
|
528
|
+
description: 'Gave 1,000 to charity in your default currency.',
|
|
529
|
+
metric: 'totalCharitySpent',
|
|
530
|
+
threshold: 1000,
|
|
531
|
+
icon: 'VolunteerActivism',
|
|
532
|
+
color: 'gold',
|
|
533
|
+
},
|
|
370
534
|
// ───────── Gift Subscriptions ─────────
|
|
371
535
|
{
|
|
372
536
|
id: 'gift-spark',
|
package/dist/wire.types.d.ts
CHANGED
|
@@ -447,17 +447,6 @@ export interface TwitchPowerupsExtraSettings {
|
|
|
447
447
|
type: string;
|
|
448
448
|
platform: 'twitch';
|
|
449
449
|
}
|
|
450
|
-
export interface TwitchPowerupsPointsExtraSettings {
|
|
451
|
-
username: string;
|
|
452
|
-
displayname: string;
|
|
453
|
-
avatar?: string;
|
|
454
|
-
userId: string | number;
|
|
455
|
-
amount: number;
|
|
456
|
-
value: number;
|
|
457
|
-
points: number;
|
|
458
|
-
type: string;
|
|
459
|
-
platform: 'twitch';
|
|
460
|
-
}
|
|
461
450
|
export interface TwitchRedemptionDynamic {
|
|
462
451
|
value: string;
|
|
463
452
|
username: string;
|
|
@@ -788,10 +777,6 @@ export type AlertEventInputMap = {
|
|
|
788
777
|
dynamic: TwitchPowerupsDynamic;
|
|
789
778
|
extraSettings: TwitchPowerupsExtraSettings;
|
|
790
779
|
};
|
|
791
|
-
[LumiaAlertValues.TWITCH_POWERUPS_POINTS]: {
|
|
792
|
-
dynamic: TwitchPowerupsDynamic;
|
|
793
|
-
extraSettings: TwitchPowerupsPointsExtraSettings;
|
|
794
|
-
};
|
|
795
780
|
[LumiaAlertValues.TWITCH_REDEMPTION]: {
|
|
796
781
|
dynamic: TwitchRedemptionDynamic;
|
|
797
782
|
extraSettings: TwitchRedemptionExtraSettings;
|
|
@@ -865,4 +850,4 @@ export type AlertEventInputMap = {
|
|
|
865
850
|
extraSettings: SessionAggregateExtraSettings;
|
|
866
851
|
};
|
|
867
852
|
};
|
|
868
|
-
export type AlertEventUnion = IAlertEvent<TwitchFollowerDynamic, TwitchFollowerExtraSettings> | IAlertEvent<TwitchSubscriberDynamic, TwitchSubscriberExtraSettings> | IAlertEvent<TwitchGiftSubscriptionDynamic, TwitchGiftSubscriptionExtraSettings> | IAlertEvent<TwitchBitsDynamic, TwitchBitsExtraSettings> | IAlertEvent<TwitchBitsComboDynamic, TwitchBitsComboExtraSettings> | IAlertEvent<TwitchRaidDynamic, TwitchRaidExtraSettings> | IAlertEvent<TwitchRaidOutDynamic, TwitchRaidOutExtraSettings> | IAlertEvent<TwitchChannelJoinDynamic, TwitchChannelJoinExtraSettings> | IAlertEvent<TwitchChannelLeaveDynamic, TwitchChannelLeaveExtraSettings> | IAlertEvent<TwitchFirstChatterDynamic, TwitchFirstChatterExtraSettings> | IAlertEvent<TwitchEntranceDynamic, TwitchEntranceExtraSettings> | IAlertEvent<TwitchTimeoutDynamic, TwitchTimeoutExtraSettings> | IAlertEvent<TwitchTimeoutOverDynamic, TwitchTimeoutOverExtraSettings> | IAlertEvent<TwitchBannedDynamic, TwitchBannedExtraSettings> | IAlertEvent<TwitchClipDynamic, TwitchClipExtraSettings> | IAlertEvent<TwitchCategoryDynamic, TwitchCategoryExtraSettings> | IAlertEvent<TwitchHypeTrainDynamic, TwitchHypeTrainExtraSettings> | IAlertEvent<TwitchPollDynamic, TwitchPollExtraSettings> | IAlertEvent<TwitchPredictionDynamic, TwitchPredictionExtraSettings> | IAlertEvent<TwitchGoalDynamic, TwitchGoalExtraSettings> | IAlertEvent<TwitchCharityDonationDynamic, TwitchCharityDonationExtraSettings> | IAlertEvent<TwitchCharityCampaignDynamic, TwitchCharityCampaignExtraSettings> | IAlertEvent<TwitchShoutoutReceiveDynamic, TwitchShoutoutReceiveExtraSettings> | IAlertEvent<TwitchAdDynamic, TwitchAdStartedExtraSettings> | IAlertEvent<TwitchAdDynamic, TwitchAdStoppedExtraSettings> | IAlertEvent<TwitchStreamLiveDynamic, TwitchStreamLiveExtraSettings> | IAlertEvent<TwitchStreamOfflineDynamic, TwitchStreamOfflineExtraSettings> | IAlertEvent<TwitchWatchStreakDynamic, TwitchWatchStreakExtraSettings> | IAlertEvent<TwitchPowerupsDynamic, TwitchPowerupsExtraSettings> | IAlertEvent<
|
|
853
|
+
export type AlertEventUnion = IAlertEvent<TwitchFollowerDynamic, TwitchFollowerExtraSettings> | IAlertEvent<TwitchSubscriberDynamic, TwitchSubscriberExtraSettings> | IAlertEvent<TwitchGiftSubscriptionDynamic, TwitchGiftSubscriptionExtraSettings> | IAlertEvent<TwitchBitsDynamic, TwitchBitsExtraSettings> | IAlertEvent<TwitchBitsComboDynamic, TwitchBitsComboExtraSettings> | IAlertEvent<TwitchRaidDynamic, TwitchRaidExtraSettings> | IAlertEvent<TwitchRaidOutDynamic, TwitchRaidOutExtraSettings> | IAlertEvent<TwitchChannelJoinDynamic, TwitchChannelJoinExtraSettings> | IAlertEvent<TwitchChannelLeaveDynamic, TwitchChannelLeaveExtraSettings> | IAlertEvent<TwitchFirstChatterDynamic, TwitchFirstChatterExtraSettings> | IAlertEvent<TwitchEntranceDynamic, TwitchEntranceExtraSettings> | IAlertEvent<TwitchTimeoutDynamic, TwitchTimeoutExtraSettings> | IAlertEvent<TwitchTimeoutOverDynamic, TwitchTimeoutOverExtraSettings> | IAlertEvent<TwitchBannedDynamic, TwitchBannedExtraSettings> | IAlertEvent<TwitchClipDynamic, TwitchClipExtraSettings> | IAlertEvent<TwitchCategoryDynamic, TwitchCategoryExtraSettings> | IAlertEvent<TwitchHypeTrainDynamic, TwitchHypeTrainExtraSettings> | IAlertEvent<TwitchPollDynamic, TwitchPollExtraSettings> | IAlertEvent<TwitchPredictionDynamic, TwitchPredictionExtraSettings> | IAlertEvent<TwitchGoalDynamic, TwitchGoalExtraSettings> | IAlertEvent<TwitchCharityDonationDynamic, TwitchCharityDonationExtraSettings> | IAlertEvent<TwitchCharityCampaignDynamic, TwitchCharityCampaignExtraSettings> | IAlertEvent<TwitchShoutoutReceiveDynamic, TwitchShoutoutReceiveExtraSettings> | IAlertEvent<TwitchAdDynamic, TwitchAdStartedExtraSettings> | IAlertEvent<TwitchAdDynamic, TwitchAdStoppedExtraSettings> | IAlertEvent<TwitchStreamLiveDynamic, TwitchStreamLiveExtraSettings> | IAlertEvent<TwitchStreamOfflineDynamic, TwitchStreamOfflineExtraSettings> | IAlertEvent<TwitchWatchStreakDynamic, TwitchWatchStreakExtraSettings> | IAlertEvent<TwitchPowerupsDynamic, TwitchPowerupsExtraSettings> | IAlertEvent<TwitchRedemptionDynamic, TwitchRedemptionExtraSettings> | IAlertEvent<SessionAggregateDynamic, SessionAggregateExtraSettings> | IAlertEvent<KickFollowerDynamic, KickFollowerExtraSettings> | IAlertEvent<KickSubscriberDynamic, KickSubscriberExtraSettings> | IAlertEvent<KickGiftSubscriptionDynamic, KickGiftSubscriptionExtraSettings> | IAlertEvent<KickKicksDynamic, KickKicksExtraSettings> | IAlertEvent<KickHostDynamic, KickHostExtraSettings> | IAlertEvent<KickBannedDynamic, KickBannedExtraSettings> | IAlertEvent<KickUnbannedDynamic, KickUnbannedExtraSettings> | IAlertEvent<KickFirstChatterDynamic, KickFirstChatterExtraSettings> | IAlertEvent<KickEntranceDynamic, KickEntranceExtraSettings>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumiastream/lumia-types",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig.esm.json && npm run sync:custom-overlays && npm run sync:custom-code && node ./scripts/finalize-esm-build.mjs",
|
|
34
|
+
"watch": "node ./scripts/watch.mjs",
|
|
34
35
|
"test": "node ./scripts/check-eventlist-alert-invariant.mjs",
|
|
35
36
|
"prepublishOnly": "npm run build && npm test",
|
|
36
37
|
"lint": "tslint --project tsconfig.json \"src/**/*.ts\"",
|