@smartico/public-api 0.0.183 → 0.0.185
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/MiniGames/SAWGameLayout.d.ts +4 -0
- package/dist/MiniGames/SAWPrize.d.ts +1 -2
- package/dist/MiniGames/SAWPrizeUI.d.ts +1 -1
- package/dist/MiniGames/SAWTemplateUI.d.ts +2 -0
- package/dist/WSAPI/WSAPI.d.ts +1 -1
- package/dist/WSAPI/WSAPITypes.d.ts +1 -2
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +3 -4
- package/dist/index.modern.mjs.map +1 -1
- package/docs/classes/WSAPI.md +1 -1
- package/docs/enums/SAWGameTypeName.md +12 -0
- package/docs/interfaces/TMiniGamePrize.md +24 -0
- package/package.json +1 -1
- package/src/MiniGames/SAWGameLayout.ts +4 -0
- package/src/MiniGames/SAWGetTemplatesResponse.ts +1 -2
- package/src/MiniGames/SAWPrize.ts +1 -2
- package/src/MiniGames/SAWPrizeUI.ts +1 -1
- package/src/MiniGames/SAWTemplateUI.ts +2 -0
- package/src/SmarticoAPI.ts +1 -1
- package/src/WSAPI/WSAPI.ts +1 -1
- package/src/WSAPI/WSAPITypes.ts +2 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SAWAskForUsername } from './SAWAskForUsername';
|
|
2
|
+
import { SAWGameLayout } from './SAWGameLayout';
|
|
2
3
|
export interface SAWTemplateUI {
|
|
3
4
|
skin: string;
|
|
4
5
|
name: string;
|
|
@@ -42,4 +43,5 @@ export interface SAWTemplateUI {
|
|
|
42
43
|
id: string;
|
|
43
44
|
content: string;
|
|
44
45
|
};
|
|
46
|
+
game_layout?: SAWGameLayout;
|
|
45
47
|
}
|
package/dist/WSAPI/WSAPI.d.ts
CHANGED
|
@@ -36,8 +36,7 @@ export interface TMiniGamePrize {
|
|
|
36
36
|
weekdays?: number[];
|
|
37
37
|
active_from_ts?: number;
|
|
38
38
|
active_till_ts?: number;
|
|
39
|
-
|
|
40
|
-
active_till?: string;
|
|
39
|
+
relative_period_timezone?: number;
|
|
41
40
|
}
|
|
42
41
|
/**
|
|
43
42
|
* TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame(template_id) method
|
package/dist/index.js
CHANGED
|
@@ -421,8 +421,7 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
|
|
|
421
421
|
weekdays: p.weekdays,
|
|
422
422
|
active_from_ts: p.active_from_ts,
|
|
423
423
|
active_till_ts: p.active_till_ts,
|
|
424
|
-
|
|
425
|
-
active_till: p.active_till
|
|
424
|
+
relative_period_timezone: p.relative_period_timezone
|
|
426
425
|
};
|
|
427
426
|
return y;
|
|
428
427
|
})
|
|
@@ -1308,7 +1307,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1308
1307
|
*
|
|
1309
1308
|
* **Example**:
|
|
1310
1309
|
* ```
|
|
1311
|
-
* _smartico.api.getUserProfile(
|
|
1310
|
+
* _smartico.api.getUserProfile(result => {
|
|
1312
1311
|
* console.log(result);
|
|
1313
1312
|
* });
|
|
1314
1313
|
* ```
|
|
@@ -3305,7 +3304,7 @@ var SmarticoAPI = /*#__PURE__*/function () {
|
|
|
3305
3304
|
if ((_response$userPositio = response.userPosition) != null && _response$userPositio.avatar_id) {
|
|
3306
3305
|
response.userPosition.avatar_url = CoreUtils.avatarUrl(response.userPosition.avatar_id, _this44.avatarDomain);
|
|
3307
3306
|
}
|
|
3308
|
-
if ((_response$tournamentI = response.tournamentInfo.players) != null && _response$tournamentI.length) {
|
|
3307
|
+
if ((_response$tournamentI = response.tournamentInfo) != null && (_response$tournamentI = _response$tournamentI.players) != null && _response$tournamentI.length) {
|
|
3309
3308
|
response.tournamentInfo.players.forEach(function (p) {
|
|
3310
3309
|
p.avatar_url = CoreUtils.avatarUrl(p.avatar_id, _this44.avatarDomain);
|
|
3311
3310
|
});
|