@stripchatdev/ext-helper 0.1.28 → 0.1.31
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 +11 -2
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -637,6 +637,8 @@ declare type TV1StorageMethods = {
|
|
|
637
637
|
*/
|
|
638
638
|
amount: string;
|
|
639
639
|
key: string;
|
|
640
|
+
/** An optional string saved for this increment from that user's latest event. */
|
|
641
|
+
meta?: string;
|
|
640
642
|
/**
|
|
641
643
|
* User id credited for this increment (appears in `top/get` top_users).
|
|
642
644
|
* @format int64
|
|
@@ -644,6 +646,8 @@ declare type TV1StorageMethods = {
|
|
|
644
646
|
userId: string;
|
|
645
647
|
};
|
|
646
648
|
result: {
|
|
649
|
+
/** An optional string saved for this increment from that user's latest event. */
|
|
650
|
+
meta?: string;
|
|
647
651
|
success: boolean;
|
|
648
652
|
/** Echo of request `userId`; `windowStats` apply to this user. */
|
|
649
653
|
/** @format int64 */
|
|
@@ -682,9 +686,12 @@ declare type TV1SystemMethods = {
|
|
|
682
686
|
};
|
|
683
687
|
};
|
|
684
688
|
|
|
689
|
+
/** Tokens spend tip data */
|
|
685
690
|
export declare type TV1TipData = {
|
|
686
691
|
/** Amount of tokens spent */
|
|
687
692
|
amount: number;
|
|
693
|
+
/** Tip id */
|
|
694
|
+
id: string;
|
|
688
695
|
/** Is anonymous tip or not */
|
|
689
696
|
isAnonymous: boolean;
|
|
690
697
|
/** Is tip sent from the current user or not */
|
|
@@ -708,7 +715,7 @@ export declare type TV1TipData = {
|
|
|
708
715
|
* `feed` - tip was sent from the feed
|
|
709
716
|
* */
|
|
710
717
|
source: TV1TipSource;
|
|
711
|
-
/**
|
|
718
|
+
/** Determines whether tip was sent in public or private chat */
|
|
712
719
|
type: 'private' | 'public';
|
|
713
720
|
/** User who sent the tip. Can be null in case of anonymous tip */
|
|
714
721
|
user?: TV1ExtUser | null;
|
|
@@ -739,7 +746,7 @@ export declare type TV1TipMenuItem = {
|
|
|
739
746
|
/** Activity name */
|
|
740
747
|
activity: string;
|
|
741
748
|
/** Price of the activity for the current user applying all discounts.
|
|
742
|
-
*
|
|
749
|
+
* Discounts can be applied based on the user's fan club memberhip.
|
|
743
750
|
* */
|
|
744
751
|
price: number;
|
|
745
752
|
};
|
|
@@ -786,6 +793,8 @@ export declare type TV1TopIncrementWindowStat = {
|
|
|
786
793
|
};
|
|
787
794
|
|
|
788
795
|
export declare type TV1TopUserEntry = {
|
|
796
|
+
/** An optional string saved for this increment from that user's latest event */
|
|
797
|
+
meta?: string;
|
|
789
798
|
/** Sum of increment amounts within the sliding window for this user. */
|
|
790
799
|
total: string;
|
|
791
800
|
/** User ID recorded as incrementer. */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripchatdev/ext-helper",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.31",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"module": "./dist/ext-helper.js",
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"NOTICE"
|
|
20
20
|
],
|
|
21
21
|
"publishConfig": {
|
|
22
|
-
"registry": "https://gitlab.stripchat.dev/api/v4/projects/1902/packages/npm/",
|
|
23
22
|
"access": "public"
|
|
24
23
|
},
|
|
25
24
|
"sideEffects": false,
|