@stripchatdev/ext-helper 0.1.2 → 0.1.3
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/index.d.ts +56 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -100,7 +100,7 @@ declare type TV1ChatMethods = {
|
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
export declare type TV1Events = TV1ExtEvents & TV1PaymentEvents & TV1ModelEvents;
|
|
103
|
+
export declare type TV1Events = TV1ExtEvents & TV1PaymentEvents & TV1ModelEvents & TV1TipEvents;
|
|
104
104
|
|
|
105
105
|
export declare type TV1ExtContext = {
|
|
106
106
|
model?: TV1ExtModel;
|
|
@@ -324,6 +324,61 @@ declare type TV1SystemMethods = {
|
|
|
324
324
|
};
|
|
325
325
|
};
|
|
326
326
|
|
|
327
|
+
export declare type TV1TipData = {
|
|
328
|
+
/** Amount of tokens spent */
|
|
329
|
+
amount: number;
|
|
330
|
+
/** Is anonymous tip or not */
|
|
331
|
+
isAnonymous: boolean;
|
|
332
|
+
/** Is tip sent from the current user or not */
|
|
333
|
+
isFromTheCurrentUser: boolean;
|
|
334
|
+
/** Is tip sent from the current extension or not */
|
|
335
|
+
isOriginalSource: boolean;
|
|
336
|
+
/** Message that was sent with the tip. Empty string if no message was sent */
|
|
337
|
+
message?: string;
|
|
338
|
+
/** Source of the tip. Could be one of the following:
|
|
339
|
+
*
|
|
340
|
+
* `console` - tip was sent using / command
|
|
341
|
+
* `tipMenu` - tip was sent using tip menu
|
|
342
|
+
* `goal` - tip was sent via goal button
|
|
343
|
+
* `epicGoal` - tip was sent to epic goal
|
|
344
|
+
* `fullscreen` - tip was sent from the fullscreen view
|
|
345
|
+
* `interactiveToy` - tip was sent from the interactive toy
|
|
346
|
+
* `privateChat` - tip was sent from the private chat, in any type of show
|
|
347
|
+
* `publicChat` - tip was sent using publich chat, either in public or group show.
|
|
348
|
+
* `extension` - tip was sent from one of the extensions
|
|
349
|
+
* `sendTipButton` - tip was sent using send tip button
|
|
350
|
+
* `feed` - tip was sent from the feed
|
|
351
|
+
* */
|
|
352
|
+
source: TV1TipSource;
|
|
353
|
+
/** Determins whether tip was sent in public or private chat */
|
|
354
|
+
type: 'private' | 'public';
|
|
355
|
+
/** User who sent the tip. Can be null in case of anonymous tip */
|
|
356
|
+
user?: TV1ExtUser | null;
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
declare type TV1TipEvents = {
|
|
360
|
+
/** Fired on every tip in chat for both model and user. Doesn't fire on private tips during public shows */
|
|
361
|
+
'v1.tokens.spent': {
|
|
362
|
+
tipData: TV1TipData;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
/** Source of the tip. Could be one of the following:
|
|
367
|
+
*
|
|
368
|
+
* `console` - tip was sent using / command
|
|
369
|
+
* `tipMenu` - tip was sent using tip menu
|
|
370
|
+
* `goal` - tip was sent via goal button
|
|
371
|
+
* `epicGoal` - tip was sent to epic goal
|
|
372
|
+
* `fullscreen` - tip was sent from the fullscreen view
|
|
373
|
+
* `interactiveToy` - tip was sent from the interactive toy
|
|
374
|
+
* `privateChat` - tip was sent from the private chat, in any type of show
|
|
375
|
+
* `publicChat` - tip was sent using publich chat, either in public or group show.
|
|
376
|
+
* `extension` - tip was sent from one of the extensions
|
|
377
|
+
* `sendTipButton` - tip was sent using send tip button
|
|
378
|
+
* `feed` - tip was sent from the feed
|
|
379
|
+
*/
|
|
380
|
+
declare type TV1TipSource = 'console' | 'tipMenu' | 'goal' | 'epicGoal' | 'fullscreen' | 'interactiveToy' | 'publicChat' | 'privateChat' | 'extension' | 'sendTipButton' | 'feed';
|
|
381
|
+
|
|
327
382
|
export declare type TV1TokenSpendData = TUnknownDictionary;
|
|
328
383
|
|
|
329
384
|
/**
|