@smartico/public-api 0.0.126 → 0.0.128
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/Jackpots/GetJackpotsRequest.d.ts +1 -0
- package/dist/Jackpots/GetJackpotsResponse.d.ts +1 -1
- package/dist/Jackpots/JackpotHtmlTemplate.d.ts +5 -0
- package/dist/Jackpots/JackpotPublicMeta.d.ts +3 -0
- package/dist/Jackpots/index.d.ts +1 -0
- package/dist/NodeCache.d.ts +1 -0
- package/dist/OCache.d.ts +2 -1
- package/dist/SmarticoAPI.d.ts +14 -0
- package/dist/SmarticoLib/index.d.ts +2013 -0
- package/dist/WSAPI/WSAPI.d.ts +13 -0
- package/dist/index.js +288 -126
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +88 -3
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Jackpots/GetJackpotsRequest.ts +1 -0
- package/src/Jackpots/GetJackpotsResponse.ts +1 -1
- package/src/Jackpots/JackpotHtmlTemplate.ts +6 -0
- package/src/Jackpots/JackpotPot.ts +0 -1
- package/src/Jackpots/JackpotPublicMeta.ts +3 -0
- package/src/Jackpots/index.ts +2 -1
- package/src/NodeCache.ts +7 -0
- package/src/OCache.ts +9 -1
- package/src/SmarticoAPI.ts +24 -1
- package/src/SmarticoLib/index.ts +2019 -0
- package/src/WSAPI/WSAPI.ts +88 -4
package/dist/WSAPI/WSAPI.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { SmarticoAPI } from "../SmarticoAPI";
|
|
2
2
|
import { InboxMarkMessageAction, LeaderBoardDetailsT, TAchCategory, TBuyStoreItemResult, TGetTranslations, TInboxMessage, TInboxMessageBody, TLevel, TMiniGamePlayResult, TMiniGameTemplate, TMissionClaimRewardResult, TMissionOptInResult, TMissionOrBadge, TSegmentCheckResult, TStoreCategory, TStoreItem, TTournament, TTournamentDetailed, TTournamentRegistrationResult, TUserProfile, UserLevelExtraCountersT } from "./WSAPITypes";
|
|
3
3
|
import { LeaderBoardPeriodType } from "../Leaderboard";
|
|
4
|
+
import { JackpotDetails, JackpotsOptinResponse, JackpotsOptoutResponse } from "src/Jackpots";
|
|
4
5
|
/** @group General API */
|
|
5
6
|
export declare class WSAPI {
|
|
6
7
|
private api;
|
|
7
8
|
private onUpdateCallback;
|
|
9
|
+
private jackpotGetSignature;
|
|
8
10
|
/** @private */
|
|
9
11
|
constructor(api: SmarticoAPI);
|
|
10
12
|
/** Returns information about current user
|
|
@@ -176,4 +178,15 @@ export declare class WSAPI {
|
|
|
176
178
|
private updateTournamentsOnRegistration;
|
|
177
179
|
private updateInboxMessages;
|
|
178
180
|
private updateEntity;
|
|
181
|
+
private jackpotClearCache;
|
|
182
|
+
jackpotGet(filter?: {
|
|
183
|
+
related_game_id?: string;
|
|
184
|
+
jp_template_id?: number;
|
|
185
|
+
}): Promise<JackpotDetails[]>;
|
|
186
|
+
jackpotOptIn(filter: {
|
|
187
|
+
jp_template_id: number;
|
|
188
|
+
}): Promise<JackpotsOptinResponse>;
|
|
189
|
+
jackpotOptOut(filter: {
|
|
190
|
+
jp_template_id: number;
|
|
191
|
+
}): Promise<JackpotsOptoutResponse>;
|
|
179
192
|
}
|