@smartico/public-api 0.0.188 → 0.0.189
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/SAWSpinErrorCode.d.ts +2 -0
- package/dist/MiniGames/SAWTemplate.d.ts +3 -0
- package/dist/WSAPI/WSAPITypes.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +4 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/enums/SAWSpinErrorCode.md +8 -0
- package/docs/interfaces/TMiniGameTemplate.md +10 -0
- package/package.json +1 -1
- package/src/MiniGames/SAWSpinErrorCode.ts +2 -0
- package/src/MiniGames/SAWTemplate.ts +4 -0
- package/src/SmarticoAPI.ts +1 -0
- package/src/WSAPI/WSAPITypes.ts +3 -0
package/dist/index.modern.mjs
CHANGED
|
@@ -435,6 +435,8 @@ var SAWSpinErrorCode;
|
|
|
435
435
|
SAWSpinErrorCode[SAWSpinErrorCode["SAW_NOT_ENOUGH_POINTS"] = 40003] = "SAW_NOT_ENOUGH_POINTS";
|
|
436
436
|
/** User reached max number of game attempts defined in the BackOffice */
|
|
437
437
|
SAWSpinErrorCode[SAWSpinErrorCode["SAW_FAILED_MAX_SPINS_REACHED"] = 40004] = "SAW_FAILED_MAX_SPINS_REACHED";
|
|
438
|
+
/** User tries to play a template that is restricted by date */
|
|
439
|
+
SAWSpinErrorCode[SAWSpinErrorCode["SAW_TEMPLATE_NOT_ACTIVE"] = 40007] = "SAW_TEMPLATE_NOT_ACTIVE";
|
|
438
440
|
/** Special code for the 'visitor' mode */
|
|
439
441
|
SAWSpinErrorCode[SAWSpinErrorCode["SAW_VISITOR_STOP_SPIN_REQUEST"] = -40001] = "SAW_VISITOR_STOP_SPIN_REQUEST";
|
|
440
442
|
})(SAWSpinErrorCode || (SAWSpinErrorCode = {}));
|
|
@@ -2401,7 +2403,8 @@ class SmarticoAPI {
|
|
|
2401
2403
|
[SAWSpinErrorCode.SAW_NO_SPINS]: 'NO SPINS AVAILABLE',
|
|
2402
2404
|
[SAWSpinErrorCode.SAW_PRIZE_POOL_EMPTY]: 'PRIZE POOL IS EMPTY',
|
|
2403
2405
|
[SAWSpinErrorCode.SAW_NOT_ENOUGH_POINTS]: 'NOT ENOUGH POINTS',
|
|
2404
|
-
[SAWSpinErrorCode.SAW_FAILED_MAX_SPINS_REACHED]: 'MAX SPIN ATTEMPTS REACHED'
|
|
2406
|
+
[SAWSpinErrorCode.SAW_FAILED_MAX_SPINS_REACHED]: 'MAX SPIN ATTEMPTS REACHED',
|
|
2407
|
+
[SAWSpinErrorCode.SAW_TEMPLATE_NOT_ACTIVE]: "MINIGAME IS NOT IN ACTIVE PERIOD"
|
|
2405
2408
|
}[spinAttemptResponse.errCode] || 'OTHER';
|
|
2406
2409
|
await this.coreReportCustomEvent(user_ext_id, 'minigame_attempt', {
|
|
2407
2410
|
saw_template_id,
|