@lumiastream/lumia-types 3.3.9 → 3.4.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.
- package/dist/custom-overlays/custom-overlays.d.ts +2 -0
- package/dist/custom-overlays.d.ts +2 -0
- package/dist/esm/eventlist.types.js +210 -195
- package/dist/esm/index.js +1 -1
- package/dist/esm/variables.types.js +33 -3
- package/dist/eventlist.types.d.ts +60 -24
- package/dist/eventlist.types.js +211 -196
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/variables.types.d.ts +2 -0
- package/dist/variables.types.js +33 -3
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SongRequestPlaybackTarget = exports.SongRequestProvider = exports.SongRequestSource = exports.SongRequestStatus = exports.VIEWER_PROFILE_ACHIEVEMENTS = exports.YoutubeSuperstickersData = exports.TiktokGiftsData = exports.KickKicksData = exports.formatCondition = exports.getAcceptedVariableNames = exports.getAcceptedVariableName = exports.AllVariables = exports.ReservedVariables = exports.SystemVariables = exports.LumiaMapAlertTypeToEventListType = exports.LumiaEventListTypes = exports.LumiaEventTypes = exports.LumiaIntegrations = exports.LumiaAlertConfigs = exports.LumiaRedemptionCurrencySymbol = exports.LumiaRedemptionCurrency = exports.VariationCurrencySymbol = exports.LumiaVariationCurrency = exports.LumiaVariationConditions = exports.LumiaActivityTestType = exports.LumiaActivityNoValueTypes = exports.LumiaActivityApiValueType = exports.LumiaActivityOriginTypes = exports.LumiaAlertFriendlyValues = exports.LumiaAlertValues = exports.LumiaExternalActivityCommandTypes = exports.LumiaActivityCommandTypes = exports.LumiaStreamingSites = void 0;
|
|
3
|
+
exports.SongRequestPlaybackTarget = exports.SongRequestProvider = exports.SongRequestSource = exports.SongRequestStatus = exports.VIEWER_PROFILE_ACHIEVEMENTS = exports.YoutubeSuperstickersData = exports.TiktokGiftsData = exports.KickKicksData = exports.formatCondition = exports.getAcceptedVariableNames = exports.getAcceptedVariableName = exports.AllVariables = exports.ReservedVariables = exports.SystemVariables = exports.PlatformsToFilter = exports.AlertsToFilter = exports.LumiaMapAlertTypeToEventListType = exports.LumiaEventListTypes = exports.LumiaEventTypes = exports.LumiaIntegrations = exports.LumiaAlertConfigs = exports.LumiaRedemptionCurrencySymbol = exports.LumiaRedemptionCurrency = exports.VariationCurrencySymbol = exports.LumiaVariationCurrency = exports.LumiaVariationConditions = exports.LumiaActivityTestType = exports.LumiaActivityNoValueTypes = exports.LumiaActivityApiValueType = exports.LumiaActivityOriginTypes = exports.LumiaAlertFriendlyValues = exports.LumiaAlertValues = exports.LumiaExternalActivityCommandTypes = exports.LumiaActivityCommandTypes = exports.LumiaStreamingSites = void 0;
|
|
4
4
|
var activity_types_1 = require("./activity.types");
|
|
5
5
|
Object.defineProperty(exports, "LumiaStreamingSites", { enumerable: true, get: function () { return activity_types_1.LumiaStreamingSites; } });
|
|
6
6
|
Object.defineProperty(exports, "LumiaActivityCommandTypes", { enumerable: true, get: function () { return activity_types_1.LumiaActivityCommandTypes; } });
|
|
@@ -24,6 +24,8 @@ Object.defineProperty(exports, "LumiaEventTypes", { enumerable: true, get: funct
|
|
|
24
24
|
var eventlist_types_1 = require("./eventlist.types");
|
|
25
25
|
Object.defineProperty(exports, "LumiaEventListTypes", { enumerable: true, get: function () { return eventlist_types_1.LumiaEventListTypes; } });
|
|
26
26
|
Object.defineProperty(exports, "LumiaMapAlertTypeToEventListType", { enumerable: true, get: function () { return eventlist_types_1.LumiaMapAlertTypeToEventListType; } });
|
|
27
|
+
Object.defineProperty(exports, "AlertsToFilter", { enumerable: true, get: function () { return eventlist_types_1.AlertsToFilter; } });
|
|
28
|
+
Object.defineProperty(exports, "PlatformsToFilter", { enumerable: true, get: function () { return eventlist_types_1.PlatformsToFilter; } });
|
|
27
29
|
var variables_types_1 = require("./variables.types");
|
|
28
30
|
Object.defineProperty(exports, "SystemVariables", { enumerable: true, get: function () { return variables_types_1.SystemVariables; } });
|
|
29
31
|
Object.defineProperty(exports, "ReservedVariables", { enumerable: true, get: function () { return variables_types_1.ReservedVariables; } });
|
|
@@ -76,6 +76,8 @@ export declare enum SystemVariables {
|
|
|
76
76
|
TRANSLATE = "translate",
|
|
77
77
|
/** Get the ai response from ai integration. Example: {{ai_prompt={{message}}}}. Use as {{ai_prompt}}. */
|
|
78
78
|
AI_PROMPT = "ai_prompt",
|
|
79
|
+
/** Current weather for a location via wttr.in. Returns a one-line summary like */
|
|
80
|
+
WEATHER = "weather",
|
|
79
81
|
/** Commands URL/page. Use in overlays as {{commands_url}}. */
|
|
80
82
|
COMMANDS_URL = "commands_url",
|
|
81
83
|
/** Session start time (ISO). Use as {{session_start_date}}. */
|
package/dist/variables.types.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// [AI] When SystemVariables is used, update custom-overlays.d.ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.AllVariables = exports.ReservedVariables = exports.SystemVariables = exports.getAcceptedVariableNames = exports.getAcceptedVariableName = void 0;
|
|
5
|
-
const getAcceptedVariableName = (entry) => typeof entry === 'string' ? entry : entry.name;
|
|
5
|
+
const getAcceptedVariableName = (entry) => (typeof entry === 'string' ? entry : entry.name);
|
|
6
6
|
exports.getAcceptedVariableName = getAcceptedVariableName;
|
|
7
7
|
const getAcceptedVariableNames = (entries) => entries.map(exports.getAcceptedVariableName);
|
|
8
8
|
exports.getAcceptedVariableNames = getAcceptedVariableNames;
|
|
@@ -78,6 +78,8 @@ var SystemVariables;
|
|
|
78
78
|
SystemVariables["TRANSLATE"] = "translate";
|
|
79
79
|
/** Get the ai response from ai integration. Example: {{ai_prompt={{message}}}}. Use as {{ai_prompt}}. */
|
|
80
80
|
SystemVariables["AI_PROMPT"] = "ai_prompt";
|
|
81
|
+
/** Current weather for a location via wttr.in. Returns a one-line summary like */
|
|
82
|
+
SystemVariables["WEATHER"] = "weather";
|
|
81
83
|
// ─────────────────────────────────── General Variables ───────────────────────
|
|
82
84
|
/** Commands URL/page. Use in overlays as {{commands_url}}. */
|
|
83
85
|
SystemVariables["COMMANDS_URL"] = "commands_url";
|
|
@@ -2104,7 +2106,21 @@ exports.AllVariables = {
|
|
|
2104
2106
|
sessionFollowers: ['total', 'previousTotal'],
|
|
2105
2107
|
subscriber: ['username', 'avatar', 'tier', 'recipient', 'subMonths', 'streakMonths', 'message', 'subPlan', 'subPlanName'],
|
|
2106
2108
|
sessionSubs: ['total', 'previousTotal'],
|
|
2107
|
-
subscriptionGift: [
|
|
2109
|
+
subscriptionGift: [
|
|
2110
|
+
'username',
|
|
2111
|
+
'avatar',
|
|
2112
|
+
'tier',
|
|
2113
|
+
'giftAmount',
|
|
2114
|
+
'recipients',
|
|
2115
|
+
KICK_RECIPIENTS_RAW_EXAMPLE,
|
|
2116
|
+
'gifter',
|
|
2117
|
+
'totalGifts',
|
|
2118
|
+
'subMonths',
|
|
2119
|
+
'streakMonths',
|
|
2120
|
+
'message',
|
|
2121
|
+
'subPlan',
|
|
2122
|
+
'subPlanName',
|
|
2123
|
+
],
|
|
2108
2124
|
sessionGiftSubscriptions: ['total', 'previousTotal'],
|
|
2109
2125
|
kicks: ['username', 'avatar', 'amount', 'name', 'type', 'tier', 'id', 'message'],
|
|
2110
2126
|
sessionKicks: ['total', 'previousTotal'],
|
|
@@ -2448,7 +2464,21 @@ exports.AllVariables = {
|
|
|
2448
2464
|
sessionFollowers: ['total', 'previousTotal'],
|
|
2449
2465
|
subscriber: ['username', 'avatar', 'tier', 'recipient', 'subMonths', 'streakMonths', 'message', 'subPlan', 'subPlanName'],
|
|
2450
2466
|
sessionSubs: ['total', 'previousTotal'],
|
|
2451
|
-
giftSubscription: [
|
|
2467
|
+
giftSubscription: [
|
|
2468
|
+
'username',
|
|
2469
|
+
'avatar',
|
|
2470
|
+
'tier',
|
|
2471
|
+
'giftAmount',
|
|
2472
|
+
'recipients',
|
|
2473
|
+
TWITCH_RECIPIENTS_RAW_EXAMPLE,
|
|
2474
|
+
'gifter',
|
|
2475
|
+
'totalGifts',
|
|
2476
|
+
'subMonths',
|
|
2477
|
+
'streakMonths',
|
|
2478
|
+
'message',
|
|
2479
|
+
'subPlan',
|
|
2480
|
+
'subPlanName',
|
|
2481
|
+
],
|
|
2452
2482
|
sessionGiftSubscriptions: ['total', 'previousTotal'],
|
|
2453
2483
|
bits: ['username', 'avatar', 'amount', 'message'],
|
|
2454
2484
|
bitsCombo: ['username', 'avatar', 'amount', 'bitsType', 'message'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumiastream/lumia-types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -31,7 +31,8 @@
|
|
|
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
|
-
"
|
|
34
|
+
"test": "node ./scripts/check-eventlist-alert-invariant.mjs",
|
|
35
|
+
"prepublishOnly": "npm run build && npm test",
|
|
35
36
|
"lint": "tslint --project tsconfig.json \"src/**/*.ts\"",
|
|
36
37
|
"lint:fix": "tslint --project tsconfig.json --fix \"src/**/*.ts\"",
|
|
37
38
|
"clean": "rm -rf dist",
|