@stripchatdev/ext-helper 0.1.14 → 0.1.15
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 +35 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -300,7 +300,7 @@ export declare type TV1ExtUser = {
|
|
|
300
300
|
|
|
301
301
|
export declare type TV1Genders = 'male' | 'female' | 'group' | 'tranny';
|
|
302
302
|
|
|
303
|
-
export declare type TV1Methods = TV1ExtMethods & TV1SystemMethods & TV1PaymentMethods & TV1ModelMethods & TV1ChatMethods & TV1PrivateMethods & TV1MonitoringMethods & TV1StorageMethods;
|
|
303
|
+
export declare type TV1Methods = TV1ExtMethods & TV1SystemMethods & TV1PaymentMethods & TV1ModelMethods & TV1ChatMethods & TV1PrivateMethods & TV1MonitoringMethods & TV1StorageMethods & TV1TipMethods;
|
|
304
304
|
|
|
305
305
|
declare type TV1ModelEvents = {
|
|
306
306
|
'v1.model.ext.settings.set.requested': null;
|
|
@@ -604,12 +604,46 @@ export declare type TV1TipData = {
|
|
|
604
604
|
};
|
|
605
605
|
|
|
606
606
|
declare type TV1TipEvents = {
|
|
607
|
+
/** Fired when the tip menu has been updated.*/
|
|
608
|
+
'v1.tipMenu.updated': {
|
|
609
|
+
/** The current tip menu data. */
|
|
610
|
+
tipMenu: TV1TipMenu;
|
|
611
|
+
};
|
|
607
612
|
/** Fired on every tip in chat for both model and user. Doesn't fire on private tips during public shows */
|
|
608
613
|
'v1.tokens.spent': {
|
|
609
614
|
tipData: TV1TipData;
|
|
610
615
|
};
|
|
611
616
|
};
|
|
612
617
|
|
|
618
|
+
/** Tip menu data */
|
|
619
|
+
export declare type TV1TipMenu = {
|
|
620
|
+
/** Whether tip menu is enabled or not. If it's disabled, the `items` array will be empty. */
|
|
621
|
+
isEnabled: boolean;
|
|
622
|
+
/** The list of tip menu items sorted by the model. */
|
|
623
|
+
items: TV1TipMenuItem[];
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
/** Tip menu item defined by the model. */
|
|
627
|
+
export declare type TV1TipMenuItem = {
|
|
628
|
+
/** Activity name */
|
|
629
|
+
activity: string;
|
|
630
|
+
/** Price of the activity for the current user applying all discounts.
|
|
631
|
+
* Discounds can be applied based on the user's fan club memberhip.
|
|
632
|
+
* */
|
|
633
|
+
price: number;
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
declare type TV1TipMethods = {
|
|
637
|
+
/** Get the current tip menu. Tip menu data might change during the broadcast, so subscribe to `v1.tipMenu.updated` to listen to these changes. */
|
|
638
|
+
'v1.tipMenu.get': {
|
|
639
|
+
params: null;
|
|
640
|
+
result: {
|
|
641
|
+
/** The current tip menu data. */
|
|
642
|
+
tipMenu: TV1TipMenu;
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
|
|
613
647
|
/** Source of the tip. Could be one of the following:
|
|
614
648
|
*
|
|
615
649
|
* `console` - tip was sent using / command
|