@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
package/dist/index.modern.mjs
CHANGED
|
@@ -409,8 +409,7 @@ const SAWTemplatesTransform = items => {
|
|
|
409
409
|
weekdays: p.weekdays,
|
|
410
410
|
active_from_ts: p.active_from_ts,
|
|
411
411
|
active_till_ts: p.active_till_ts,
|
|
412
|
-
|
|
413
|
-
active_till: p.active_till
|
|
412
|
+
relative_period_timezone: p.relative_period_timezone
|
|
414
413
|
};
|
|
415
414
|
return y;
|
|
416
415
|
})
|
|
@@ -1259,7 +1258,7 @@ class WSAPI {
|
|
|
1259
1258
|
*
|
|
1260
1259
|
* **Example**:
|
|
1261
1260
|
* ```
|
|
1262
|
-
* _smartico.api.getUserProfile(
|
|
1261
|
+
* _smartico.api.getUserProfile(result => {
|
|
1263
1262
|
* console.log(result);
|
|
1264
1263
|
* });
|
|
1265
1264
|
* ```
|
|
@@ -2599,7 +2598,7 @@ class SmarticoAPI {
|
|
|
2599
2598
|
if ((_response$userPositio = response.userPosition) != null && _response$userPositio.avatar_id) {
|
|
2600
2599
|
response.userPosition.avatar_url = CoreUtils.avatarUrl(response.userPosition.avatar_id, this.avatarDomain);
|
|
2601
2600
|
}
|
|
2602
|
-
if ((_response$tournamentI = response.tournamentInfo.players) != null && _response$tournamentI.length) {
|
|
2601
|
+
if ((_response$tournamentI = response.tournamentInfo) != null && (_response$tournamentI = _response$tournamentI.players) != null && _response$tournamentI.length) {
|
|
2603
2602
|
response.tournamentInfo.players.forEach(p => {
|
|
2604
2603
|
p.avatar_url = CoreUtils.avatarUrl(p.avatar_id, this.avatarDomain);
|
|
2605
2604
|
});
|