@pumper/server-sdk 1.0.0 → 1.0.2

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
@@ -1,6 +1,18 @@
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", "community:battle", "community:case", "giveaway:discord", "giveaway:kick", "giveaway:telegram", "giveaway:twitter", "offer:signup-cases", "promocode:discord", "promocode:kick", "race:payouts", "raffle:payouts", "rain:base", "rain:tips", "rain:tax", "rakeback:daily-case", "rakeback:daily", "rakeback:level", "rakeback:monthly", "rakeback:weekly", "vip:bonus", "vip:lossback"];
5
+ type BonusKind = (typeof bonusKinds)[number];
6
+
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_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")[];
8
+ type DepositKind = (typeof depositKinds)[number];
9
+
10
+ declare const gameKinds: readonly ["battles", "blackjack", "cases", "dice", "double", "keno", "limbo", "mines", "plinko", "slots", "upgrader"];
11
+ type GameKind = (typeof gameKinds)[number];
12
+
13
+ declare const withdrawKinds: 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_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")[];
14
+ type WithdrawKind = (typeof withdrawKinds)[number];
15
+
4
16
  interface ClientOptions {
5
17
  apiSitekey: string;
6
18
  apiSecret: string;
@@ -15,6 +27,7 @@ declare class PumpClient {
15
27
  txId: string;
16
28
  kind: "admin:credit" | "admin:tip" | "affiliate:commission" | "affiliate:leaderboard" | "community:battle" | "community:case" | "giveaway:discord" | "giveaway:kick" | "giveaway:telegram" | "giveaway:twitter" | "offer:signup-cases" | "promocode:discord" | "promocode:kick" | "race:payouts" | "raffle:payouts" | "rain:base" | "rain:tips" | "rain:tax" | "rakeback:daily-case" | "rakeback:daily" | "rakeback:level" | "rakeback:monthly" | "rakeback:weekly" | "vip:bonus" | "vip:lossback";
17
29
  amountUSD: number;
30
+ timestamp: Date;
18
31
  }) => Promise<{
19
32
  eventId: string;
20
33
  }>;
@@ -24,6 +37,7 @@ declare class PumpClient {
24
37
  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_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";
25
38
  amountUSD: string;
26
39
  feeUSD: string;
40
+ timestamp: Date;
27
41
  }) => Promise<{
28
42
  eventId: string;
29
43
  }>;
@@ -34,6 +48,7 @@ declare class PumpClient {
34
48
  wagerUSD: string;
35
49
  wonUSD: string;
36
50
  edgeRate: number;
51
+ timestamp: Date;
37
52
  }) => Promise<{
38
53
  eventId: string;
39
54
  }>;
@@ -43,6 +58,7 @@ declare class PumpClient {
43
58
  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_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";
44
59
  amountUSD: string;
45
60
  feeUSD: string;
61
+ timestamp: Date;
46
62
  }) => Promise<{
47
63
  eventId: string;
48
64
  }>;
@@ -57,4 +73,4 @@ declare class PumpClient {
57
73
  private getRequestError;
58
74
  }
59
75
 
60
- export { type ClientOptions, PumpClient };
76
+ export { type BonusKind, type ClientOptions, type DepositKind, type GameKind, PumpClient, type WithdrawKind };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,18 @@
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", "community:battle", "community:case", "giveaway:discord", "giveaway:kick", "giveaway:telegram", "giveaway:twitter", "offer:signup-cases", "promocode:discord", "promocode:kick", "race:payouts", "raffle:payouts", "rain:base", "rain:tips", "rain:tax", "rakeback:daily-case", "rakeback:daily", "rakeback:level", "rakeback:monthly", "rakeback:weekly", "vip:bonus", "vip:lossback"];
5
+ type BonusKind = (typeof bonusKinds)[number];
6
+
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_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")[];
8
+ type DepositKind = (typeof depositKinds)[number];
9
+
10
+ declare const gameKinds: readonly ["battles", "blackjack", "cases", "dice", "double", "keno", "limbo", "mines", "plinko", "slots", "upgrader"];
11
+ type GameKind = (typeof gameKinds)[number];
12
+
13
+ declare const withdrawKinds: 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_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")[];
14
+ type WithdrawKind = (typeof withdrawKinds)[number];
15
+
4
16
  interface ClientOptions {
5
17
  apiSitekey: string;
6
18
  apiSecret: string;
@@ -15,6 +27,7 @@ declare class PumpClient {
15
27
  txId: string;
16
28
  kind: "admin:credit" | "admin:tip" | "affiliate:commission" | "affiliate:leaderboard" | "community:battle" | "community:case" | "giveaway:discord" | "giveaway:kick" | "giveaway:telegram" | "giveaway:twitter" | "offer:signup-cases" | "promocode:discord" | "promocode:kick" | "race:payouts" | "raffle:payouts" | "rain:base" | "rain:tips" | "rain:tax" | "rakeback:daily-case" | "rakeback:daily" | "rakeback:level" | "rakeback:monthly" | "rakeback:weekly" | "vip:bonus" | "vip:lossback";
17
29
  amountUSD: number;
30
+ timestamp: Date;
18
31
  }) => Promise<{
19
32
  eventId: string;
20
33
  }>;
@@ -24,6 +37,7 @@ declare class PumpClient {
24
37
  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_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";
25
38
  amountUSD: string;
26
39
  feeUSD: string;
40
+ timestamp: Date;
27
41
  }) => Promise<{
28
42
  eventId: string;
29
43
  }>;
@@ -34,6 +48,7 @@ declare class PumpClient {
34
48
  wagerUSD: string;
35
49
  wonUSD: string;
36
50
  edgeRate: number;
51
+ timestamp: Date;
37
52
  }) => Promise<{
38
53
  eventId: string;
39
54
  }>;
@@ -43,6 +58,7 @@ declare class PumpClient {
43
58
  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_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";
44
59
  amountUSD: string;
45
60
  feeUSD: string;
61
+ timestamp: Date;
46
62
  }) => Promise<{
47
63
  eventId: string;
48
64
  }>;
@@ -57,4 +73,4 @@ declare class PumpClient {
57
73
  private getRequestError;
58
74
  }
59
75
 
60
- export { type ClientOptions, PumpClient };
76
+ export { type BonusKind, type ClientOptions, type DepositKind, type GameKind, PumpClient, type WithdrawKind };
package/dist/index.js CHANGED
@@ -128,7 +128,8 @@ var bonusSchema = createContract({
128
128
  playerId: v_exports.string(),
129
129
  txId: v_exports.string(),
130
130
  kind: v_exports.enum(bonusKinds),
131
- amountUSD: v_exports.number()
131
+ amountUSD: v_exports.number(),
132
+ timestamp: v_exports.date()
132
133
  }),
133
134
  res: v_exports.custom()
134
135
  });
@@ -192,7 +193,8 @@ var depositSchema = createContract({
192
193
  txId: v_exports.string(),
193
194
  kind: v_exports.enum(depositKinds),
194
195
  amountUSD: v_exports.string(),
195
- feeUSD: v_exports.string()
196
+ feeUSD: v_exports.string(),
197
+ timestamp: v_exports.date()
196
198
  }),
197
199
  res: v_exports.custom()
198
200
  });
@@ -222,7 +224,8 @@ var gameSchema = createContract({
222
224
  kind: v_exports.enum(gameKinds),
223
225
  wagerUSD: v_exports.string(),
224
226
  wonUSD: v_exports.string(),
225
- edgeRate: v_exports.number()
227
+ edgeRate: v_exports.number(),
228
+ timestamp: v_exports.date()
226
229
  }),
227
230
  res: v_exports.custom()
228
231
  });
@@ -242,7 +245,8 @@ var withdrawSchema = createContract({
242
245
  txId: v_exports.string(),
243
246
  kind: v_exports.enum(withdrawKinds),
244
247
  amountUSD: v_exports.string(),
245
- feeUSD: v_exports.string()
248
+ feeUSD: v_exports.string(),
249
+ timestamp: v_exports.date()
246
250
  }),
247
251
  res: v_exports.custom()
248
252
  });
package/dist/index.mjs CHANGED
@@ -110,7 +110,8 @@ var bonusSchema = createContract({
110
110
  playerId: v_exports.string(),
111
111
  txId: v_exports.string(),
112
112
  kind: v_exports.enum(bonusKinds),
113
- amountUSD: v_exports.number()
113
+ amountUSD: v_exports.number(),
114
+ timestamp: v_exports.date()
114
115
  }),
115
116
  res: v_exports.custom()
116
117
  });
@@ -174,7 +175,8 @@ var depositSchema = createContract({
174
175
  txId: v_exports.string(),
175
176
  kind: v_exports.enum(depositKinds),
176
177
  amountUSD: v_exports.string(),
177
- feeUSD: v_exports.string()
178
+ feeUSD: v_exports.string(),
179
+ timestamp: v_exports.date()
178
180
  }),
179
181
  res: v_exports.custom()
180
182
  });
@@ -204,7 +206,8 @@ var gameSchema = createContract({
204
206
  kind: v_exports.enum(gameKinds),
205
207
  wagerUSD: v_exports.string(),
206
208
  wonUSD: v_exports.string(),
207
- edgeRate: v_exports.number()
209
+ edgeRate: v_exports.number(),
210
+ timestamp: v_exports.date()
208
211
  }),
209
212
  res: v_exports.custom()
210
213
  });
@@ -224,7 +227,8 @@ var withdrawSchema = createContract({
224
227
  txId: v_exports.string(),
225
228
  kind: v_exports.enum(withdrawKinds),
226
229
  amountUSD: v_exports.string(),
227
- feeUSD: v_exports.string()
230
+ feeUSD: v_exports.string(),
231
+ timestamp: v_exports.date()
228
232
  }),
229
233
  res: v_exports.custom()
230
234
  });
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.0",
4
+ "version": "1.0.2",
5
5
  "files": ["dist"],
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",