@pumper/server-sdk 1.0.9 → 1.0.11
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.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +12 -4
- package/dist/index.mjs +12 -4
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { ZodType, output } from 'zod';
|
|
3
3
|
|
|
4
|
-
declare const bonusKinds: readonly ["admin:credit", "admin:tip", "affiliate:commission", "affiliate:leaderboard", "affiliate:reload", "community:battle", "community:case", "game:double-jackpot", "giveaway:discord", "giveaway:kick", "giveaway:telegram", "giveaway:twitter", "offer:signup-cases", "promocode:discord", "promocode:kick", "race:payout", "raffle:payout", "rain:payout", "rakeback:daily-case", "rakeback:daily", "rakeback:quick", "rakeback:level", "rakeback:monthly", "rakeback:weekly", "vip:bonus", "vip:lossback"];
|
|
4
|
+
declare const bonusKinds: readonly ["admin:credit", "admin:tip", "affiliate:commission", "affiliate:leaderboard", "affiliate:reload", "community:battle", "community:case", "faucet:claim", "game:double-jackpot", "giveaway:discord", "giveaway:kick", "giveaway:telegram", "giveaway:twitter", "offer:signup-cases", "promocode:discord", "promocode:kick", "race:payout", "raffle:payout", "rain:payout", "rakeback:daily-case", "rakeback:daily", "rakeback:quick", "rakeback:level", "rakeback:monthly", "rakeback:weekly", "vip:bonus", "vip:lossback"];
|
|
5
5
|
type BonusKind = (typeof bonusKinds)[number];
|
|
6
6
|
|
|
7
7
|
declare const depositKinds: readonly ("crypto:ADA" | "crypto:BCH" | "crypto:BNB" | "crypto:BTC" | "crypto:DOGE" | "crypto:ETH" | "crypto:LTC" | "crypto:POL" | "crypto:SOL" | "crypto:TON" | "crypto:TRX" | "crypto:XRP" | "crypto:ZEC" | "crypto:DAI_ERC-20" | "crypto:ETH_BASE" | "crypto:LINK_ERC-20" | "crypto:PYUSD_ERC-20" | "crypto:SHIB_ERC-20" | "crypto:USDC_BASE" | "crypto:USDC_ERC-20" | "crypto:USDC_SPL" | "crypto:USDT_BEP-20" | "crypto:USDT_ERC-20" | "crypto:USDT_SPL" | "crypto:USDT_TRC-20" | "fiat:meld" | "fiat:softkeys" | "fiat:swapped" | "fiat:zen" | "giftcard:difmark" | "giftcard:g2a" | "giftcard:kinguin" | "giftcard:pulse" | "item:skindeck" | "item:skinify" | "item:skinsback")[];
|
|
@@ -24,8 +24,9 @@ declare class PumpClient {
|
|
|
24
24
|
constructor(options: ClientOptions);
|
|
25
25
|
bonus: (data: {
|
|
26
26
|
playerId: string;
|
|
27
|
+
role: "user" | "influencer" | "staff";
|
|
27
28
|
txId: string;
|
|
28
|
-
kind: "admin:credit" | "admin:tip" | "affiliate:commission" | "affiliate:leaderboard" | "affiliate:reload" | "community:battle" | "community:case" | "game:double-jackpot" | "giveaway:discord" | "giveaway:kick" | "giveaway:telegram" | "giveaway:twitter" | "offer:signup-cases" | "promocode:discord" | "promocode:kick" | "race:payout" | "raffle:payout" | "rain:payout" | "rakeback:daily-case" | "rakeback:daily" | "rakeback:quick" | "rakeback:level" | "rakeback:monthly" | "rakeback:weekly" | "vip:bonus" | "vip:lossback";
|
|
29
|
+
kind: "admin:credit" | "admin:tip" | "affiliate:commission" | "affiliate:leaderboard" | "affiliate:reload" | "community:battle" | "community:case" | "faucet:claim" | "game:double-jackpot" | "giveaway:discord" | "giveaway:kick" | "giveaway:telegram" | "giveaway:twitter" | "offer:signup-cases" | "promocode:discord" | "promocode:kick" | "race:payout" | "raffle:payout" | "rain:payout" | "rakeback:daily-case" | "rakeback:daily" | "rakeback:quick" | "rakeback:level" | "rakeback:monthly" | "rakeback:weekly" | "vip:bonus" | "vip:lossback";
|
|
29
30
|
amountUSD: string;
|
|
30
31
|
timestamp: Date;
|
|
31
32
|
}) => Promise<{
|
|
@@ -33,6 +34,7 @@ declare class PumpClient {
|
|
|
33
34
|
}>;
|
|
34
35
|
deposit: (data: {
|
|
35
36
|
playerId: string;
|
|
37
|
+
role: "user" | "influencer" | "staff";
|
|
36
38
|
txId: string;
|
|
37
39
|
kind: "crypto:ADA" | "crypto:BCH" | "crypto:BNB" | "crypto:BTC" | "crypto:DOGE" | "crypto:ETH" | "crypto:LTC" | "crypto:POL" | "crypto:SOL" | "crypto:TON" | "crypto:TRX" | "crypto:XRP" | "crypto:ZEC" | "crypto:DAI_ERC-20" | "crypto:ETH_BASE" | "crypto:LINK_ERC-20" | "crypto:PYUSD_ERC-20" | "crypto:SHIB_ERC-20" | "crypto:USDC_BASE" | "crypto:USDC_ERC-20" | "crypto:USDC_SPL" | "crypto:USDT_BEP-20" | "crypto:USDT_ERC-20" | "crypto:USDT_SPL" | "crypto:USDT_TRC-20" | "fiat:meld" | "fiat:softkeys" | "fiat:swapped" | "fiat:zen" | "giftcard:difmark" | "giftcard:g2a" | "giftcard:kinguin" | "giftcard:pulse" | "item:skindeck" | "item:skinify" | "item:skinsback";
|
|
38
40
|
amountUSD: string;
|
|
@@ -42,6 +44,7 @@ declare class PumpClient {
|
|
|
42
44
|
}>;
|
|
43
45
|
game: (data: {
|
|
44
46
|
playerId: string;
|
|
47
|
+
role: "user" | "influencer" | "staff";
|
|
45
48
|
txId: string;
|
|
46
49
|
kind: "battles" | "blackjack" | "cases" | "dice" | "double" | "keno" | "limbo" | "mines" | "plinko" | "slots" | "upgrader";
|
|
47
50
|
wagerUSD: string;
|
|
@@ -53,6 +56,7 @@ declare class PumpClient {
|
|
|
53
56
|
}>;
|
|
54
57
|
withdraw: (data: {
|
|
55
58
|
playerId: string;
|
|
59
|
+
role: "user" | "influencer" | "staff";
|
|
56
60
|
txId: string;
|
|
57
61
|
kind: "crypto:ADA" | "crypto:BCH" | "crypto:BNB" | "crypto:BTC" | "crypto:DOGE" | "crypto:ETH" | "crypto:LTC" | "crypto:POL" | "crypto:SOL" | "crypto:TON" | "crypto:TRX" | "crypto:XRP" | "crypto:ZEC" | "crypto:DAI_ERC-20" | "crypto:ETH_BASE" | "crypto:LINK_ERC-20" | "crypto:PYUSD_ERC-20" | "crypto:SHIB_ERC-20" | "crypto:USDC_BASE" | "crypto:USDC_ERC-20" | "crypto:USDC_SPL" | "crypto:USDT_BEP-20" | "crypto:USDT_ERC-20" | "crypto:USDT_SPL" | "crypto:USDT_TRC-20" | "item:skindeck" | "item:skinify" | "item:skinsback";
|
|
58
62
|
amountUSD: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { ZodType, output } from 'zod';
|
|
3
3
|
|
|
4
|
-
declare const bonusKinds: readonly ["admin:credit", "admin:tip", "affiliate:commission", "affiliate:leaderboard", "affiliate:reload", "community:battle", "community:case", "game:double-jackpot", "giveaway:discord", "giveaway:kick", "giveaway:telegram", "giveaway:twitter", "offer:signup-cases", "promocode:discord", "promocode:kick", "race:payout", "raffle:payout", "rain:payout", "rakeback:daily-case", "rakeback:daily", "rakeback:quick", "rakeback:level", "rakeback:monthly", "rakeback:weekly", "vip:bonus", "vip:lossback"];
|
|
4
|
+
declare const bonusKinds: readonly ["admin:credit", "admin:tip", "affiliate:commission", "affiliate:leaderboard", "affiliate:reload", "community:battle", "community:case", "faucet:claim", "game:double-jackpot", "giveaway:discord", "giveaway:kick", "giveaway:telegram", "giveaway:twitter", "offer:signup-cases", "promocode:discord", "promocode:kick", "race:payout", "raffle:payout", "rain:payout", "rakeback:daily-case", "rakeback:daily", "rakeback:quick", "rakeback:level", "rakeback:monthly", "rakeback:weekly", "vip:bonus", "vip:lossback"];
|
|
5
5
|
type BonusKind = (typeof bonusKinds)[number];
|
|
6
6
|
|
|
7
7
|
declare const depositKinds: readonly ("crypto:ADA" | "crypto:BCH" | "crypto:BNB" | "crypto:BTC" | "crypto:DOGE" | "crypto:ETH" | "crypto:LTC" | "crypto:POL" | "crypto:SOL" | "crypto:TON" | "crypto:TRX" | "crypto:XRP" | "crypto:ZEC" | "crypto:DAI_ERC-20" | "crypto:ETH_BASE" | "crypto:LINK_ERC-20" | "crypto:PYUSD_ERC-20" | "crypto:SHIB_ERC-20" | "crypto:USDC_BASE" | "crypto:USDC_ERC-20" | "crypto:USDC_SPL" | "crypto:USDT_BEP-20" | "crypto:USDT_ERC-20" | "crypto:USDT_SPL" | "crypto:USDT_TRC-20" | "fiat:meld" | "fiat:softkeys" | "fiat:swapped" | "fiat:zen" | "giftcard:difmark" | "giftcard:g2a" | "giftcard:kinguin" | "giftcard:pulse" | "item:skindeck" | "item:skinify" | "item:skinsback")[];
|
|
@@ -24,8 +24,9 @@ declare class PumpClient {
|
|
|
24
24
|
constructor(options: ClientOptions);
|
|
25
25
|
bonus: (data: {
|
|
26
26
|
playerId: string;
|
|
27
|
+
role: "user" | "influencer" | "staff";
|
|
27
28
|
txId: string;
|
|
28
|
-
kind: "admin:credit" | "admin:tip" | "affiliate:commission" | "affiliate:leaderboard" | "affiliate:reload" | "community:battle" | "community:case" | "game:double-jackpot" | "giveaway:discord" | "giveaway:kick" | "giveaway:telegram" | "giveaway:twitter" | "offer:signup-cases" | "promocode:discord" | "promocode:kick" | "race:payout" | "raffle:payout" | "rain:payout" | "rakeback:daily-case" | "rakeback:daily" | "rakeback:quick" | "rakeback:level" | "rakeback:monthly" | "rakeback:weekly" | "vip:bonus" | "vip:lossback";
|
|
29
|
+
kind: "admin:credit" | "admin:tip" | "affiliate:commission" | "affiliate:leaderboard" | "affiliate:reload" | "community:battle" | "community:case" | "faucet:claim" | "game:double-jackpot" | "giveaway:discord" | "giveaway:kick" | "giveaway:telegram" | "giveaway:twitter" | "offer:signup-cases" | "promocode:discord" | "promocode:kick" | "race:payout" | "raffle:payout" | "rain:payout" | "rakeback:daily-case" | "rakeback:daily" | "rakeback:quick" | "rakeback:level" | "rakeback:monthly" | "rakeback:weekly" | "vip:bonus" | "vip:lossback";
|
|
29
30
|
amountUSD: string;
|
|
30
31
|
timestamp: Date;
|
|
31
32
|
}) => Promise<{
|
|
@@ -33,6 +34,7 @@ declare class PumpClient {
|
|
|
33
34
|
}>;
|
|
34
35
|
deposit: (data: {
|
|
35
36
|
playerId: string;
|
|
37
|
+
role: "user" | "influencer" | "staff";
|
|
36
38
|
txId: string;
|
|
37
39
|
kind: "crypto:ADA" | "crypto:BCH" | "crypto:BNB" | "crypto:BTC" | "crypto:DOGE" | "crypto:ETH" | "crypto:LTC" | "crypto:POL" | "crypto:SOL" | "crypto:TON" | "crypto:TRX" | "crypto:XRP" | "crypto:ZEC" | "crypto:DAI_ERC-20" | "crypto:ETH_BASE" | "crypto:LINK_ERC-20" | "crypto:PYUSD_ERC-20" | "crypto:SHIB_ERC-20" | "crypto:USDC_BASE" | "crypto:USDC_ERC-20" | "crypto:USDC_SPL" | "crypto:USDT_BEP-20" | "crypto:USDT_ERC-20" | "crypto:USDT_SPL" | "crypto:USDT_TRC-20" | "fiat:meld" | "fiat:softkeys" | "fiat:swapped" | "fiat:zen" | "giftcard:difmark" | "giftcard:g2a" | "giftcard:kinguin" | "giftcard:pulse" | "item:skindeck" | "item:skinify" | "item:skinsback";
|
|
38
40
|
amountUSD: string;
|
|
@@ -42,6 +44,7 @@ declare class PumpClient {
|
|
|
42
44
|
}>;
|
|
43
45
|
game: (data: {
|
|
44
46
|
playerId: string;
|
|
47
|
+
role: "user" | "influencer" | "staff";
|
|
45
48
|
txId: string;
|
|
46
49
|
kind: "battles" | "blackjack" | "cases" | "dice" | "double" | "keno" | "limbo" | "mines" | "plinko" | "slots" | "upgrader";
|
|
47
50
|
wagerUSD: string;
|
|
@@ -53,6 +56,7 @@ declare class PumpClient {
|
|
|
53
56
|
}>;
|
|
54
57
|
withdraw: (data: {
|
|
55
58
|
playerId: string;
|
|
59
|
+
role: "user" | "influencer" | "staff";
|
|
56
60
|
txId: string;
|
|
57
61
|
kind: "crypto:ADA" | "crypto:BCH" | "crypto:BNB" | "crypto:BTC" | "crypto:DOGE" | "crypto:ETH" | "crypto:LTC" | "crypto:POL" | "crypto:SOL" | "crypto:TON" | "crypto:TRX" | "crypto:XRP" | "crypto:ZEC" | "crypto:DAI_ERC-20" | "crypto:ETH_BASE" | "crypto:LINK_ERC-20" | "crypto:PYUSD_ERC-20" | "crypto:SHIB_ERC-20" | "crypto:USDC_BASE" | "crypto:USDC_ERC-20" | "crypto:USDC_SPL" | "crypto:USDT_BEP-20" | "crypto:USDT_ERC-20" | "crypto:USDT_SPL" | "crypto:USDT_TRC-20" | "item:skindeck" | "item:skinify" | "item:skinsback";
|
|
58
62
|
amountUSD: string;
|
package/dist/index.js
CHANGED
|
@@ -100,6 +100,7 @@ var bonusKinds = [
|
|
|
100
100
|
"affiliate:reload",
|
|
101
101
|
"community:battle",
|
|
102
102
|
"community:case",
|
|
103
|
+
"faucet:claim",
|
|
103
104
|
"game:double-jackpot",
|
|
104
105
|
"giveaway:discord",
|
|
105
106
|
"giveaway:kick",
|
|
@@ -121,16 +122,20 @@ var bonusKinds = [
|
|
|
121
122
|
"vip:lossback"
|
|
122
123
|
];
|
|
123
124
|
|
|
125
|
+
// ../shared-core/src/types/products/player.ts
|
|
126
|
+
var playerRoles = ["user", "influencer", "staff"];
|
|
127
|
+
|
|
124
128
|
// ../shared-product/src/schema/events/bonus.ts
|
|
125
129
|
var bonusSchema = createContract({
|
|
126
130
|
method: "POST",
|
|
127
131
|
path: "/events/bonus",
|
|
128
132
|
req: v_exports.object({
|
|
129
133
|
playerId: v_exports.string(),
|
|
134
|
+
role: v_exports.enum(playerRoles),
|
|
130
135
|
txId: v_exports.string(),
|
|
131
136
|
kind: v_exports.enum(bonusKinds),
|
|
132
137
|
amountUSD: v_exports.string(),
|
|
133
|
-
timestamp: v_exports.date()
|
|
138
|
+
timestamp: v_exports.coerce.date()
|
|
134
139
|
}),
|
|
135
140
|
res: v_exports.custom()
|
|
136
141
|
});
|
|
@@ -192,10 +197,11 @@ var depositSchema = createContract({
|
|
|
192
197
|
path: "/events/deposit",
|
|
193
198
|
req: v_exports.object({
|
|
194
199
|
playerId: v_exports.string(),
|
|
200
|
+
role: v_exports.enum(playerRoles),
|
|
195
201
|
txId: v_exports.string(),
|
|
196
202
|
kind: v_exports.enum(depositKinds),
|
|
197
203
|
amountUSD: v_exports.string(),
|
|
198
|
-
timestamp: v_exports.date()
|
|
204
|
+
timestamp: v_exports.coerce.date()
|
|
199
205
|
}),
|
|
200
206
|
res: v_exports.custom()
|
|
201
207
|
});
|
|
@@ -221,12 +227,13 @@ var gameSchema = createContract({
|
|
|
221
227
|
path: "/events/game",
|
|
222
228
|
req: v_exports.object({
|
|
223
229
|
playerId: v_exports.string(),
|
|
230
|
+
role: v_exports.enum(playerRoles),
|
|
224
231
|
txId: v_exports.string(),
|
|
225
232
|
kind: v_exports.enum(gameKinds),
|
|
226
233
|
wagerUSD: v_exports.string(),
|
|
227
234
|
wonUSD: v_exports.string(),
|
|
228
235
|
evUSD: v_exports.string(),
|
|
229
|
-
timestamp: v_exports.date()
|
|
236
|
+
timestamp: v_exports.coerce.date()
|
|
230
237
|
}),
|
|
231
238
|
res: v_exports.custom()
|
|
232
239
|
});
|
|
@@ -243,10 +250,11 @@ var withdrawSchema = createContract({
|
|
|
243
250
|
path: "/events/withdraw",
|
|
244
251
|
req: v_exports.object({
|
|
245
252
|
playerId: v_exports.string(),
|
|
253
|
+
role: v_exports.enum(playerRoles),
|
|
246
254
|
txId: v_exports.string(),
|
|
247
255
|
kind: v_exports.enum(withdrawKinds),
|
|
248
256
|
amountUSD: v_exports.string(),
|
|
249
|
-
timestamp: v_exports.date()
|
|
257
|
+
timestamp: v_exports.coerce.date()
|
|
250
258
|
}),
|
|
251
259
|
res: v_exports.custom()
|
|
252
260
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -82,6 +82,7 @@ var bonusKinds = [
|
|
|
82
82
|
"affiliate:reload",
|
|
83
83
|
"community:battle",
|
|
84
84
|
"community:case",
|
|
85
|
+
"faucet:claim",
|
|
85
86
|
"game:double-jackpot",
|
|
86
87
|
"giveaway:discord",
|
|
87
88
|
"giveaway:kick",
|
|
@@ -103,16 +104,20 @@ var bonusKinds = [
|
|
|
103
104
|
"vip:lossback"
|
|
104
105
|
];
|
|
105
106
|
|
|
107
|
+
// ../shared-core/src/types/products/player.ts
|
|
108
|
+
var playerRoles = ["user", "influencer", "staff"];
|
|
109
|
+
|
|
106
110
|
// ../shared-product/src/schema/events/bonus.ts
|
|
107
111
|
var bonusSchema = createContract({
|
|
108
112
|
method: "POST",
|
|
109
113
|
path: "/events/bonus",
|
|
110
114
|
req: v_exports.object({
|
|
111
115
|
playerId: v_exports.string(),
|
|
116
|
+
role: v_exports.enum(playerRoles),
|
|
112
117
|
txId: v_exports.string(),
|
|
113
118
|
kind: v_exports.enum(bonusKinds),
|
|
114
119
|
amountUSD: v_exports.string(),
|
|
115
|
-
timestamp: v_exports.date()
|
|
120
|
+
timestamp: v_exports.coerce.date()
|
|
116
121
|
}),
|
|
117
122
|
res: v_exports.custom()
|
|
118
123
|
});
|
|
@@ -174,10 +179,11 @@ var depositSchema = createContract({
|
|
|
174
179
|
path: "/events/deposit",
|
|
175
180
|
req: v_exports.object({
|
|
176
181
|
playerId: v_exports.string(),
|
|
182
|
+
role: v_exports.enum(playerRoles),
|
|
177
183
|
txId: v_exports.string(),
|
|
178
184
|
kind: v_exports.enum(depositKinds),
|
|
179
185
|
amountUSD: v_exports.string(),
|
|
180
|
-
timestamp: v_exports.date()
|
|
186
|
+
timestamp: v_exports.coerce.date()
|
|
181
187
|
}),
|
|
182
188
|
res: v_exports.custom()
|
|
183
189
|
});
|
|
@@ -203,12 +209,13 @@ var gameSchema = createContract({
|
|
|
203
209
|
path: "/events/game",
|
|
204
210
|
req: v_exports.object({
|
|
205
211
|
playerId: v_exports.string(),
|
|
212
|
+
role: v_exports.enum(playerRoles),
|
|
206
213
|
txId: v_exports.string(),
|
|
207
214
|
kind: v_exports.enum(gameKinds),
|
|
208
215
|
wagerUSD: v_exports.string(),
|
|
209
216
|
wonUSD: v_exports.string(),
|
|
210
217
|
evUSD: v_exports.string(),
|
|
211
|
-
timestamp: v_exports.date()
|
|
218
|
+
timestamp: v_exports.coerce.date()
|
|
212
219
|
}),
|
|
213
220
|
res: v_exports.custom()
|
|
214
221
|
});
|
|
@@ -225,10 +232,11 @@ var withdrawSchema = createContract({
|
|
|
225
232
|
path: "/events/withdraw",
|
|
226
233
|
req: v_exports.object({
|
|
227
234
|
playerId: v_exports.string(),
|
|
235
|
+
role: v_exports.enum(playerRoles),
|
|
228
236
|
txId: v_exports.string(),
|
|
229
237
|
kind: v_exports.enum(withdrawKinds),
|
|
230
238
|
amountUSD: v_exports.string(),
|
|
231
|
-
timestamp: v_exports.date()
|
|
239
|
+
timestamp: v_exports.coerce.date()
|
|
232
240
|
}),
|
|
233
241
|
res: v_exports.custom()
|
|
234
242
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pumper/server-sdk",
|
|
3
3
|
"description": "The Official TypeScript SDK for PumpTech",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.11",
|
|
5
5
|
"files": ["dist"],
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"keywords": [
|
|
38
38
|
"pumptech",
|
|
39
39
|
"sdk",
|
|
40
|
+
|
|
40
41
|
"typescript",
|
|
41
42
|
"node"
|
|
42
43
|
],
|