@pumper/server-sdk 1.0.9 → 1.0.10

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 CHANGED
@@ -24,6 +24,7 @@ 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
29
  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
30
  amountUSD: string;
@@ -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
@@ -24,6 +24,7 @@ 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
29
  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
30
  amountUSD: string;
@@ -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
@@ -121,12 +121,16 @@ var bonusKinds = [
121
121
  "vip:lossback"
122
122
  ];
123
123
 
124
+ // ../shared-core/src/types/products/player.ts
125
+ var playerRoles = ["user", "influencer", "staff"];
126
+
124
127
  // ../shared-product/src/schema/events/bonus.ts
125
128
  var bonusSchema = createContract({
126
129
  method: "POST",
127
130
  path: "/events/bonus",
128
131
  req: v_exports.object({
129
132
  playerId: v_exports.string(),
133
+ role: v_exports.enum(playerRoles),
130
134
  txId: v_exports.string(),
131
135
  kind: v_exports.enum(bonusKinds),
132
136
  amountUSD: v_exports.string(),
@@ -192,6 +196,7 @@ var depositSchema = createContract({
192
196
  path: "/events/deposit",
193
197
  req: v_exports.object({
194
198
  playerId: v_exports.string(),
199
+ role: v_exports.enum(playerRoles),
195
200
  txId: v_exports.string(),
196
201
  kind: v_exports.enum(depositKinds),
197
202
  amountUSD: v_exports.string(),
@@ -221,6 +226,7 @@ var gameSchema = createContract({
221
226
  path: "/events/game",
222
227
  req: v_exports.object({
223
228
  playerId: v_exports.string(),
229
+ role: v_exports.enum(playerRoles),
224
230
  txId: v_exports.string(),
225
231
  kind: v_exports.enum(gameKinds),
226
232
  wagerUSD: v_exports.string(),
@@ -243,6 +249,7 @@ var withdrawSchema = createContract({
243
249
  path: "/events/withdraw",
244
250
  req: v_exports.object({
245
251
  playerId: v_exports.string(),
252
+ role: v_exports.enum(playerRoles),
246
253
  txId: v_exports.string(),
247
254
  kind: v_exports.enum(withdrawKinds),
248
255
  amountUSD: v_exports.string(),
package/dist/index.mjs CHANGED
@@ -103,12 +103,16 @@ var bonusKinds = [
103
103
  "vip:lossback"
104
104
  ];
105
105
 
106
+ // ../shared-core/src/types/products/player.ts
107
+ var playerRoles = ["user", "influencer", "staff"];
108
+
106
109
  // ../shared-product/src/schema/events/bonus.ts
107
110
  var bonusSchema = createContract({
108
111
  method: "POST",
109
112
  path: "/events/bonus",
110
113
  req: v_exports.object({
111
114
  playerId: v_exports.string(),
115
+ role: v_exports.enum(playerRoles),
112
116
  txId: v_exports.string(),
113
117
  kind: v_exports.enum(bonusKinds),
114
118
  amountUSD: v_exports.string(),
@@ -174,6 +178,7 @@ var depositSchema = createContract({
174
178
  path: "/events/deposit",
175
179
  req: v_exports.object({
176
180
  playerId: v_exports.string(),
181
+ role: v_exports.enum(playerRoles),
177
182
  txId: v_exports.string(),
178
183
  kind: v_exports.enum(depositKinds),
179
184
  amountUSD: v_exports.string(),
@@ -203,6 +208,7 @@ var gameSchema = createContract({
203
208
  path: "/events/game",
204
209
  req: v_exports.object({
205
210
  playerId: v_exports.string(),
211
+ role: v_exports.enum(playerRoles),
206
212
  txId: v_exports.string(),
207
213
  kind: v_exports.enum(gameKinds),
208
214
  wagerUSD: v_exports.string(),
@@ -225,6 +231,7 @@ var withdrawSchema = createContract({
225
231
  path: "/events/withdraw",
226
232
  req: v_exports.object({
227
233
  playerId: v_exports.string(),
234
+ role: v_exports.enum(playerRoles),
228
235
  txId: v_exports.string(),
229
236
  kind: v_exports.enum(withdrawKinds),
230
237
  amountUSD: v_exports.string(),
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.9",
4
+ "version": "1.0.10",
5
5
  "files": ["dist"],
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",