@smartico/public-api 0.0.276 → 0.0.277
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/Core/ActivityTypeLimited.d.ts +3 -0
- package/dist/MiniGames/SAWPrize.d.ts +3 -0
- package/dist/Tournaments/TournamentPrize.d.ts +2 -0
- package/dist/Tournaments/TournamentUtils.d.ts +2 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +11 -2
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Core/ActivityTypeLimited.ts +3 -0
- package/src/MiniGames/SAWPrize.ts +1 -0
- package/src/SmarticoAPI.ts +3 -0
- package/src/Tournaments/TournamentPrize.ts +2 -0
- package/src/Tournaments/TournamentUtils.ts +3 -0
package/package.json
CHANGED
package/src/SmarticoAPI.ts
CHANGED
|
@@ -621,6 +621,9 @@ class SmarticoAPI {
|
|
|
621
621
|
[SAWSpinErrorCode.SAW_NOT_ENOUGH_POINTS]: 'NOT ENOUGH POINTS',
|
|
622
622
|
[SAWSpinErrorCode.SAW_FAILED_MAX_SPINS_REACHED]: 'MAX SPIN ATTEMPTS REACHED',
|
|
623
623
|
[SAWSpinErrorCode.SAW_TEMPLATE_NOT_ACTIVE]: "MINIGAME IS NOT IN ACTIVE PERIOD",
|
|
624
|
+
[SAWSpinErrorCode.SAW_NOT_IN_SEGMENT]: "USER IS NOT IN SEGMENT",
|
|
625
|
+
[SAWSpinErrorCode.SAW_NO_BALANCE_GEMS]: "NOT ENOUGH GEMS",
|
|
626
|
+
[SAWSpinErrorCode.SAW_NO_BALANCE_DIAMONDS]: "NOT ENOUGH DIAMONDS",
|
|
624
627
|
}[spinAttemptResponse.errCode] || 'OTHER';
|
|
625
628
|
|
|
626
629
|
await this.coreReportCustomEvent(user_ext_id, 'minigame_attempt', {
|
|
@@ -14,6 +14,9 @@ const tournamentPrizeTypeToPrizeName = (type: ActivityTypeLimited) => {
|
|
|
14
14
|
[ActivityTypeLimited.ResetPoints]: 'POINTS_RESET',
|
|
15
15
|
[ActivityTypeLimited.MiniGameAttempt]: 'MINI_GAME_ATTEMPT',
|
|
16
16
|
[ActivityTypeLimited.Bonus]: 'BONUS',
|
|
17
|
+
[ActivityTypeLimited.AddGemsAndDiamonds]: 'GEMS_AND_DIAMONDS_ADD',
|
|
18
|
+
[ActivityTypeLimited.DeductGemsAndDiamonds]: 'GEMS_AND_DIAMONDS_DEDUCT',
|
|
19
|
+
[ActivityTypeLimited.ResetGemsAndDiamonds]: 'GEMS_AND_DIAMONDS_RESET',
|
|
17
20
|
}[type];
|
|
18
21
|
};
|
|
19
22
|
|