zklighter-perps 1.0.128 → 1.0.130
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/models/ReferralPointEntry.ts +9 -0
- package/models/ReferralPoints.ts +0 -18
- package/openapi.json +6 -13
- package/package.json +1 -1
|
@@ -49,6 +49,12 @@ export interface ReferralPointEntry {
|
|
|
49
49
|
* @memberof ReferralPointEntry
|
|
50
50
|
*/
|
|
51
51
|
week_reward_points: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ReferralPointEntry
|
|
56
|
+
*/
|
|
57
|
+
reward_point_multiplier: string;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
/**
|
|
@@ -60,6 +66,7 @@ export function instanceOfReferralPointEntry(value: object): value is ReferralPo
|
|
|
60
66
|
if (!('week_points' in value) || value['week_points'] === undefined) return false;
|
|
61
67
|
if (!('total_reward_points' in value) || value['total_reward_points'] === undefined) return false;
|
|
62
68
|
if (!('week_reward_points' in value) || value['week_reward_points'] === undefined) return false;
|
|
69
|
+
if (!('reward_point_multiplier' in value) || value['reward_point_multiplier'] === undefined) return false;
|
|
63
70
|
return true;
|
|
64
71
|
}
|
|
65
72
|
|
|
@@ -78,6 +85,7 @@ export function ReferralPointEntryFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
78
85
|
'week_points': json['week_points'],
|
|
79
86
|
'total_reward_points': json['total_reward_points'],
|
|
80
87
|
'week_reward_points': json['week_reward_points'],
|
|
88
|
+
'reward_point_multiplier': json['reward_point_multiplier'],
|
|
81
89
|
};
|
|
82
90
|
}
|
|
83
91
|
|
|
@@ -92,6 +100,7 @@ export function ReferralPointEntryToJSON(value?: ReferralPointEntry | null): any
|
|
|
92
100
|
'week_points': value['week_points'],
|
|
93
101
|
'total_reward_points': value['total_reward_points'],
|
|
94
102
|
'week_reward_points': value['week_reward_points'],
|
|
103
|
+
'reward_point_multiplier': value['reward_point_multiplier'],
|
|
95
104
|
};
|
|
96
105
|
}
|
|
97
106
|
|
package/models/ReferralPoints.ts
CHANGED
|
@@ -56,18 +56,6 @@ export interface ReferralPoints {
|
|
|
56
56
|
* @memberof ReferralPoints
|
|
57
57
|
*/
|
|
58
58
|
user_last_week_referral_reward_points: number;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {number}
|
|
62
|
-
* @memberof ReferralPoints
|
|
63
|
-
*/
|
|
64
|
-
all_referral_count: number;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {number}
|
|
68
|
-
* @memberof ReferralPoints
|
|
69
|
-
*/
|
|
70
|
-
referral_with_account_count: number;
|
|
71
59
|
/**
|
|
72
60
|
*
|
|
73
61
|
* @type {string}
|
|
@@ -85,8 +73,6 @@ export function instanceOfReferralPoints(value: object): value is ReferralPoints
|
|
|
85
73
|
if (!('user_last_week_points' in value) || value['user_last_week_points'] === undefined) return false;
|
|
86
74
|
if (!('user_total_referral_reward_points' in value) || value['user_total_referral_reward_points'] === undefined) return false;
|
|
87
75
|
if (!('user_last_week_referral_reward_points' in value) || value['user_last_week_referral_reward_points'] === undefined) return false;
|
|
88
|
-
if (!('all_referral_count' in value) || value['all_referral_count'] === undefined) return false;
|
|
89
|
-
if (!('referral_with_account_count' in value) || value['referral_with_account_count'] === undefined) return false;
|
|
90
76
|
if (!('reward_point_multiplier' in value) || value['reward_point_multiplier'] === undefined) return false;
|
|
91
77
|
return true;
|
|
92
78
|
}
|
|
@@ -106,8 +92,6 @@ export function ReferralPointsFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
106
92
|
'user_last_week_points': json['user_last_week_points'],
|
|
107
93
|
'user_total_referral_reward_points': json['user_total_referral_reward_points'],
|
|
108
94
|
'user_last_week_referral_reward_points': json['user_last_week_referral_reward_points'],
|
|
109
|
-
'all_referral_count': json['all_referral_count'],
|
|
110
|
-
'referral_with_account_count': json['referral_with_account_count'],
|
|
111
95
|
'reward_point_multiplier': json['reward_point_multiplier'],
|
|
112
96
|
};
|
|
113
97
|
}
|
|
@@ -123,8 +107,6 @@ export function ReferralPointsToJSON(value?: ReferralPoints | null): any {
|
|
|
123
107
|
'user_last_week_points': value['user_last_week_points'],
|
|
124
108
|
'user_total_referral_reward_points': value['user_total_referral_reward_points'],
|
|
125
109
|
'user_last_week_referral_reward_points': value['user_last_week_referral_reward_points'],
|
|
126
|
-
'all_referral_count': value['all_referral_count'],
|
|
127
|
-
'referral_with_account_count': value['referral_with_account_count'],
|
|
128
110
|
'reward_point_multiplier': value['reward_point_multiplier'],
|
|
129
111
|
};
|
|
130
112
|
}
|
package/openapi.json
CHANGED
|
@@ -5790,6 +5790,10 @@
|
|
|
5790
5790
|
"type": "integer",
|
|
5791
5791
|
"format": "int64",
|
|
5792
5792
|
"example": "200"
|
|
5793
|
+
},
|
|
5794
|
+
"reward_point_multiplier": {
|
|
5795
|
+
"type": "string",
|
|
5796
|
+
"example": "0.1"
|
|
5793
5797
|
}
|
|
5794
5798
|
},
|
|
5795
5799
|
"title": "ReferralPointEntry",
|
|
@@ -5798,7 +5802,8 @@
|
|
|
5798
5802
|
"total_points",
|
|
5799
5803
|
"week_points",
|
|
5800
5804
|
"total_reward_points",
|
|
5801
|
-
"week_reward_points"
|
|
5805
|
+
"week_reward_points",
|
|
5806
|
+
"reward_point_multiplier"
|
|
5802
5807
|
]
|
|
5803
5808
|
},
|
|
5804
5809
|
"ReferralPoints": {
|
|
@@ -5830,16 +5835,6 @@
|
|
|
5830
5835
|
"format": "int64",
|
|
5831
5836
|
"example": "1000"
|
|
5832
5837
|
},
|
|
5833
|
-
"all_referral_count": {
|
|
5834
|
-
"type": "integer",
|
|
5835
|
-
"format": "int32",
|
|
5836
|
-
"example": "100"
|
|
5837
|
-
},
|
|
5838
|
-
"referral_with_account_count": {
|
|
5839
|
-
"type": "integer",
|
|
5840
|
-
"format": "int32",
|
|
5841
|
-
"example": "100"
|
|
5842
|
-
},
|
|
5843
5838
|
"reward_point_multiplier": {
|
|
5844
5839
|
"type": "string",
|
|
5845
5840
|
"example": "0.1"
|
|
@@ -5852,8 +5847,6 @@
|
|
|
5852
5847
|
"user_last_week_points",
|
|
5853
5848
|
"user_total_referral_reward_points",
|
|
5854
5849
|
"user_last_week_referral_reward_points",
|
|
5855
|
-
"all_referral_count",
|
|
5856
|
-
"referral_with_account_count",
|
|
5857
5850
|
"reward_point_multiplier"
|
|
5858
5851
|
]
|
|
5859
5852
|
},
|