@tixyel/streamelements 4.3.2 → 4.4.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +83 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1124,7 +1124,7 @@ declare namespace StreamElements {
1124
1124
  type onEventReceived = Provider.Twitch.Events | Provider.YouTube.Events | Provider.StreamElements.Events;
1125
1125
  }
1126
1126
  namespace Session {
1127
- type Data = Tip & Host & Raid & Cheer & Merch & Purchase & Follower & Hypetrain & Superchat & Subscriber & CheerPurchase & ChannelPoints & CharityCampaignDonation;
1127
+ type Data = Tip & Host & Raid & Cheer & Merch & Purchase & Follower & Hypetrain & Superchat & Sponsor & Subscriber & CheerPurchase & ChannelPoints & CharityCampaignDonation;
1128
1128
  namespace Config {
1129
1129
  type Int = {
1130
1130
  type: 'int';
@@ -1154,6 +1154,71 @@ declare namespace StreamElements {
1154
1154
  type Data = Record<string, Category | undefined>;
1155
1155
  }
1156
1156
  }
1157
+ type Sponsor = {
1158
+ 'sponsor-latest': {
1159
+ amount: string;
1160
+ avatar: string;
1161
+ displayName: string;
1162
+ providerId: string;
1163
+ name: string;
1164
+ _id: string;
1165
+ sessionTop: boolean;
1166
+ type: 'sponsor';
1167
+ originalEventName: 'sponsor-latest';
1168
+ };
1169
+ 'sponsor-session': {
1170
+ count: number;
1171
+ };
1172
+ 'sponsor-week': {
1173
+ count: number;
1174
+ };
1175
+ 'sponsor-month': {
1176
+ count: number;
1177
+ };
1178
+ 'sponsor-goal': {
1179
+ amount: number;
1180
+ };
1181
+ 'sponsor-total': {
1182
+ count: number;
1183
+ };
1184
+ 'sponsor-gifted-session': {
1185
+ count: number;
1186
+ };
1187
+ 'sponsor-gifted-latest': {
1188
+ name: string;
1189
+ amount: number;
1190
+ tier: string;
1191
+ message: string;
1192
+ sender: string;
1193
+ };
1194
+ 'sponsor-recent': {
1195
+ amount: number;
1196
+ avatar: string;
1197
+ displayName: string;
1198
+ providerId: string;
1199
+ name: string;
1200
+ _id: string;
1201
+ sessionTop: boolean;
1202
+ type: 'sponsor';
1203
+ originalEventName: 'sponsor-recent';
1204
+ }[];
1205
+ };
1206
+ type SponsorCommunityGift = {
1207
+ 'community-gift-latest': {
1208
+ amount: number;
1209
+ name: string;
1210
+ tier: string;
1211
+ };
1212
+ 'communityGiftPurchase-latest': {
1213
+ amount: number;
1214
+ avatar: string;
1215
+ displayName: string;
1216
+ providerId: string;
1217
+ name: string;
1218
+ _id: string;
1219
+ sessionTop: boolean;
1220
+ };
1221
+ };
1157
1222
  type Follower = {
1158
1223
  'follower-latest': {
1159
1224
  name: string;
@@ -1413,12 +1478,20 @@ declare namespace StreamElements {
1413
1478
  }
1414
1479
  interface Superchat {
1415
1480
  'superchat-latest': {
1416
- name: string;
1417
1481
  amount: number;
1482
+ avatar: string;
1483
+ displayName: string;
1484
+ providerId: string;
1485
+ name: string;
1486
+ _id: string;
1487
+ sessionTop: boolean;
1488
+ type: 'superchat';
1489
+ originalEventName: 'superchat-latest';
1418
1490
  };
1419
1491
  'superchat-session-top-donation': {
1420
1492
  name: string;
1421
1493
  amount: number;
1494
+ _id: string;
1422
1495
  };
1423
1496
  'superchat-weekly-top-donation': {
1424
1497
  name: string;
@@ -1467,9 +1540,15 @@ declare namespace StreamElements {
1467
1540
  amount: number;
1468
1541
  };
1469
1542
  'superchat-recent': {
1470
- name: string;
1471
1543
  amount: number;
1472
- createdAt: string;
1544
+ avatar: string;
1545
+ displayName: string;
1546
+ providerId: string;
1547
+ name: string;
1548
+ _id: string;
1549
+ sessionTop: boolean;
1550
+ type: 'superchat';
1551
+ originalEventName: 'superchat-recent';
1473
1552
  }[];
1474
1553
  }
1475
1554
  interface Hypetrain {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tixyel/streamelements",
3
- "version": "4.3.2",
3
+ "version": "4.4.0",
4
4
  "description": "TypeScript/JavaScript helper library for StreamElements custom widgets with type safety and local development support",
5
5
  "keywords": [
6
6
  "streamelements",