@lumiastream/lumia-types 3.2.0 → 3.2.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.
@@ -134,6 +134,12 @@ export declare enum LumiaAlertValues {
134
134
  LUMIASTREAM_RAFFLE_STOP = "lumiastream-raffleStop",
135
135
  /** Raffle winner selected */
136
136
  LUMIASTREAM_RAFFLE_WINNER = "lumiastream-raffleWinner",
137
+ /** Tournament started */
138
+ LUMIASTREAM_TOURNAMENT_START = "lumiastream-tournamentStart",
139
+ /** Tournament ended */
140
+ LUMIASTREAM_TOURNAMENT_END = "lumiastream-tournamentEnd",
141
+ /** Tournament winner selected */
142
+ LUMIASTREAM_TOURNAMENT_WINNER = "lumiastream-tournamentWinner",
137
143
  /** Spin wheel winner selected */
138
144
  LUMIASTREAM_SPINWHEEL_WINNER = "lumiastream-spinwheelWinner",
139
145
  /** Poll started */
@@ -544,6 +550,9 @@ export declare const LumiaAlertFriendlyValues: {
544
550
  "lumiastream-raffleStart": string;
545
551
  "lumiastream-raffleStop": string;
546
552
  "lumiastream-raffleWinner": string;
553
+ "lumiastream-tournamentStart": string;
554
+ "lumiastream-tournamentEnd": string;
555
+ "lumiastream-tournamentWinner": string;
547
556
  "lumiastream-spinwheelWinner": string;
548
557
  "lumiastream-pollStarted": string;
549
558
  "lumiastream-pollProgressed": string;
@@ -148,6 +148,12 @@ var LumiaAlertValues;
148
148
  LumiaAlertValues["LUMIASTREAM_RAFFLE_STOP"] = "lumiastream-raffleStop";
149
149
  /** Raffle winner selected */
150
150
  LumiaAlertValues["LUMIASTREAM_RAFFLE_WINNER"] = "lumiastream-raffleWinner";
151
+ /** Tournament started */
152
+ LumiaAlertValues["LUMIASTREAM_TOURNAMENT_START"] = "lumiastream-tournamentStart";
153
+ /** Tournament ended */
154
+ LumiaAlertValues["LUMIASTREAM_TOURNAMENT_END"] = "lumiastream-tournamentEnd";
155
+ /** Tournament winner selected */
156
+ LumiaAlertValues["LUMIASTREAM_TOURNAMENT_WINNER"] = "lumiastream-tournamentWinner";
151
157
  /** Spin wheel winner selected */
152
158
  LumiaAlertValues["LUMIASTREAM_SPINWHEEL_WINNER"] = "lumiastream-spinwheelWinner";
153
159
  /** Poll started */
@@ -574,6 +580,9 @@ exports.LumiaAlertFriendlyValues = {
574
580
  [LumiaAlertValues.LUMIASTREAM_RAFFLE_START]: 'Raffle Start',
575
581
  [LumiaAlertValues.LUMIASTREAM_RAFFLE_STOP]: 'Raffle Stop',
576
582
  [LumiaAlertValues.LUMIASTREAM_RAFFLE_WINNER]: 'Raffle Winner',
583
+ [LumiaAlertValues.LUMIASTREAM_TOURNAMENT_START]: 'Tournament Start',
584
+ [LumiaAlertValues.LUMIASTREAM_TOURNAMENT_END]: 'Tournament End',
585
+ [LumiaAlertValues.LUMIASTREAM_TOURNAMENT_WINNER]: 'Tournament Winner',
577
586
  [LumiaAlertValues.LUMIASTREAM_SPINWHEEL_WINNER]: 'Spinwheel Winner',
578
587
  [LumiaAlertValues.LUMIASTREAM_POLL_STARTED]: 'Poll Started',
579
588
  [LumiaAlertValues.LUMIASTREAM_POLL_PROGRESSED]: 'Poll Progressed',
@@ -333,6 +333,64 @@ exports.LumiaAlertConfigs = {
333
333
  { type: LumiaVariationConditions.EQUAL_VARIABLE },
334
334
  ],
335
335
  },
336
+ [activity_types_1.LumiaAlertValues.LUMIASTREAM_TOURNAMENT_START]: {
337
+ connection: event_types_1.LumiaIntegrations.LUMIASTREAM,
338
+ message: '{{tournament_title}} started! Type {{tournament_entry_command}} to join the tournament',
339
+ eventlistMessage: 'Tournament Start',
340
+ eventlistDetailedMessage: '{{tournament_title}} started! Type {{tournament_entry_command}} to join the tournament',
341
+ acceptedVariables: variables_types_1.AllVariables.lumiastream.alerts.tournamentStart,
342
+ inputFields: [
343
+ {
344
+ type: 'text',
345
+ label: 'Tournament Title',
346
+ variableField: 'tournament_title',
347
+ required: false,
348
+ default: '',
349
+ },
350
+ ],
351
+ LumiaVariationConditions: [{ type: LumiaVariationConditions.RANDOM }, { type: LumiaVariationConditions.EQUAL_VARIABLE }],
352
+ },
353
+ [activity_types_1.LumiaAlertValues.LUMIASTREAM_TOURNAMENT_END]: {
354
+ connection: event_types_1.LumiaIntegrations.LUMIASTREAM,
355
+ message: '{{tournament_title}} has ended!',
356
+ eventlistMessage: 'Tournament End',
357
+ eventlistDetailedMessage: '{{tournament_title}} has ended!',
358
+ acceptedVariables: variables_types_1.AllVariables.lumiastream.alerts.tournamentEnd,
359
+ inputFields: [
360
+ {
361
+ type: 'text',
362
+ label: 'Tournament Title',
363
+ variableField: 'tournament_title',
364
+ required: false,
365
+ default: '',
366
+ },
367
+ ],
368
+ LumiaVariationConditions: [{ type: LumiaVariationConditions.RANDOM }, { type: LumiaVariationConditions.EQUAL_VARIABLE }],
369
+ },
370
+ [activity_types_1.LumiaAlertValues.LUMIASTREAM_TOURNAMENT_WINNER]: {
371
+ connection: event_types_1.LumiaIntegrations.LUMIASTREAM,
372
+ message: 'Congratulations {{tournament_winner}} for winning {{tournament_title}}!',
373
+ eventlistMessage: 'Tournament Winner',
374
+ eventlistDetailedMessage: 'Congratulations {{tournament_winner}} for winning {{tournament_title}}!',
375
+ acceptedVariables: variables_types_1.AllVariables.lumiastream.alerts.tournamentWinner,
376
+ inputFields: [
377
+ {
378
+ type: 'text',
379
+ label: 'Tournament Title',
380
+ variableField: 'tournament_title',
381
+ required: false,
382
+ default: '',
383
+ },
384
+ {
385
+ type: 'text',
386
+ label: 'Winner',
387
+ variableField: 'tournament_winner',
388
+ required: false,
389
+ default: '',
390
+ },
391
+ ],
392
+ LumiaVariationConditions: [{ type: LumiaVariationConditions.RANDOM }, { type: LumiaVariationConditions.EQUAL_USERNAME }, { type: LumiaVariationConditions.EQUAL_VARIABLE }],
393
+ },
336
394
  [activity_types_1.LumiaAlertValues.LUMIASTREAM_SPINWHEEL_WINNER]: {
337
395
  connection: event_types_1.LumiaIntegrations.LUMIASTREAM,
338
396
  message: 'Congratulations {{spinwheel_winner}} for winning {{spinwheel_item}}!',
@@ -404,6 +404,12 @@ export declare enum LumiaAlertValues {
404
404
  LUMIASTREAM_RAFFLE_STOP = "lumiastream-raffleStop",
405
405
  /** Raffle winner selected */
406
406
  LUMIASTREAM_RAFFLE_WINNER = "lumiastream-raffleWinner",
407
+ /** Tournament started */
408
+ LUMIASTREAM_TOURNAMENT_START = "lumiastream-tournamentStart",
409
+ /** Tournament ended */
410
+ LUMIASTREAM_TOURNAMENT_END = "lumiastream-tournamentEnd",
411
+ /** Tournament winner selected */
412
+ LUMIASTREAM_TOURNAMENT_WINNER = "lumiastream-tournamentWinner",
407
413
  /** Spin wheel winner selected */
408
414
  LUMIASTREAM_SPINWHEEL_WINNER = "lumiastream-spinwheelWinner",
409
415
  /** Poll started */
@@ -985,6 +991,24 @@ export declare enum SystemVariables {
985
991
  RAFFLE_WINNER_AVATAR = "raffle_winner_avatar",
986
992
  /** Command used to enter the raffle (e.g., !join). Use as {{raffle_entry_command}}. */
987
993
  RAFFLE_ENTRY_COMMAND = "raffle_entry_command",
994
+ /** Tournament title. Use as {{tournament_title}}. */
995
+ TOURNAMENT_TITLE = "tournament_title",
996
+ /** Tournament description. Use as {{tournament_description}}. */
997
+ TOURNAMENT_DESCRIPTION = "tournament_description",
998
+ /** Tournament game. Use as {{tournament_game}}. */
999
+ TOURNAMENT_GAME = "tournament_game",
1000
+ /** Tournament format. Use as {{tournament_format}}. */
1001
+ TOURNAMENT_FORMAT = "tournament_format",
1002
+ /** Tournament state. Use as {{tournament_state}}. */
1003
+ TOURNAMENT_STATE = "tournament_state",
1004
+ /** Tournament participants count. Use as {{tournament_participants_count}}. */
1005
+ TOURNAMENT_PARTICIPANTS_COUNT = "tournament_participants_count",
1006
+ /** Tournament entry command (e.g., !tournament). Use as {{tournament_entry_command}}. */
1007
+ TOURNAMENT_ENTRY_COMMAND = "tournament_entry_command",
1008
+ /** Tournament winner. Use as {{tournament_winner}}. */
1009
+ TOURNAMENT_WINNER = "tournament_winner",
1010
+ /** Tournament winner avatar URL. Use as {{tournament_winner_avatar}}. */
1011
+ TOURNAMENT_WINNER_AVATAR = "tournament_winner_avatar",
988
1012
  /** Viewer queue title. Use as {{viewerqueue_title}}. */
989
1013
  VIEWERQUEUE_TITLE = "viewerqueue_title",
990
1014
  /** Viewer queue entry command (e.g., !joinq). Use as {{viewerqueue_entry_command}}. */
@@ -404,6 +404,12 @@ export declare enum LumiaAlertValues {
404
404
  LUMIASTREAM_RAFFLE_STOP = "lumiastream-raffleStop",
405
405
  /** Raffle winner selected */
406
406
  LUMIASTREAM_RAFFLE_WINNER = "lumiastream-raffleWinner",
407
+ /** Tournament started */
408
+ LUMIASTREAM_TOURNAMENT_START = "lumiastream-tournamentStart",
409
+ /** Tournament ended */
410
+ LUMIASTREAM_TOURNAMENT_END = "lumiastream-tournamentEnd",
411
+ /** Tournament winner selected */
412
+ LUMIASTREAM_TOURNAMENT_WINNER = "lumiastream-tournamentWinner",
407
413
  /** Spin wheel winner selected */
408
414
  LUMIASTREAM_SPINWHEEL_WINNER = "lumiastream-spinwheelWinner",
409
415
  /** Poll started */
@@ -985,6 +991,24 @@ export declare enum SystemVariables {
985
991
  RAFFLE_WINNER_AVATAR = "raffle_winner_avatar",
986
992
  /** Command used to enter the raffle (e.g., !join). Use as {{raffle_entry_command}}. */
987
993
  RAFFLE_ENTRY_COMMAND = "raffle_entry_command",
994
+ /** Tournament title. Use as {{tournament_title}}. */
995
+ TOURNAMENT_TITLE = "tournament_title",
996
+ /** Tournament description. Use as {{tournament_description}}. */
997
+ TOURNAMENT_DESCRIPTION = "tournament_description",
998
+ /** Tournament game. Use as {{tournament_game}}. */
999
+ TOURNAMENT_GAME = "tournament_game",
1000
+ /** Tournament format. Use as {{tournament_format}}. */
1001
+ TOURNAMENT_FORMAT = "tournament_format",
1002
+ /** Tournament state. Use as {{tournament_state}}. */
1003
+ TOURNAMENT_STATE = "tournament_state",
1004
+ /** Tournament participants count. Use as {{tournament_participants_count}}. */
1005
+ TOURNAMENT_PARTICIPANTS_COUNT = "tournament_participants_count",
1006
+ /** Tournament entry command (e.g., !tournament). Use as {{tournament_entry_command}}. */
1007
+ TOURNAMENT_ENTRY_COMMAND = "tournament_entry_command",
1008
+ /** Tournament winner. Use as {{tournament_winner}}. */
1009
+ TOURNAMENT_WINNER = "tournament_winner",
1010
+ /** Tournament winner avatar URL. Use as {{tournament_winner_avatar}}. */
1011
+ TOURNAMENT_WINNER_AVATAR = "tournament_winner_avatar",
988
1012
  /** Viewer queue title. Use as {{viewerqueue_title}}. */
989
1013
  VIEWERQUEUE_TITLE = "viewerqueue_title",
990
1014
  /** Viewer queue entry command (e.g., !joinq). Use as {{viewerqueue_entry_command}}. */
@@ -30,6 +30,9 @@ export declare const LumiaMapAlertTypeToEventListType: {
30
30
  "lumiastream-raffleStart": LumiaEventListTypes;
31
31
  "lumiastream-raffleStop": LumiaEventListTypes;
32
32
  "lumiastream-raffleWinner": LumiaEventListTypes;
33
+ "lumiastream-tournamentStart": LumiaEventListTypes;
34
+ "lumiastream-tournamentEnd": LumiaEventListTypes;
35
+ "lumiastream-tournamentWinner": LumiaEventListTypes;
33
36
  "facebook-fan": LumiaEventListTypes;
34
37
  "facebook-follower": LumiaEventListTypes;
35
38
  "facebook-subscriptionGift": LumiaEventListTypes;
@@ -35,6 +35,9 @@ exports.LumiaMapAlertTypeToEventListType = {
35
35
  [activity_types_1.LumiaAlertValues.LUMIASTREAM_RAFFLE_START]: LumiaEventListTypes.RAFFLE,
36
36
  [activity_types_1.LumiaAlertValues.LUMIASTREAM_RAFFLE_STOP]: LumiaEventListTypes.RAFFLE,
37
37
  [activity_types_1.LumiaAlertValues.LUMIASTREAM_RAFFLE_WINNER]: LumiaEventListTypes.RAFFLE,
38
+ [activity_types_1.LumiaAlertValues.LUMIASTREAM_TOURNAMENT_START]: LumiaEventListTypes.OTHERS,
39
+ [activity_types_1.LumiaAlertValues.LUMIASTREAM_TOURNAMENT_END]: LumiaEventListTypes.OTHERS,
40
+ [activity_types_1.LumiaAlertValues.LUMIASTREAM_TOURNAMENT_WINNER]: LumiaEventListTypes.OTHERS,
38
41
  [activity_types_1.LumiaAlertValues.FACEBOOK_FAN]: LumiaEventListTypes.FANS,
39
42
  [activity_types_1.LumiaAlertValues.FACEBOOK_FOLLOWER]: LumiaEventListTypes.FOLLOWER,
40
43
  [activity_types_1.LumiaAlertValues.FACEBOOK_GIFT_SUBSCRIPTION]: LumiaEventListTypes.GIFTS,
@@ -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[];
@@ -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'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumiastream/lumia-types",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "files": [