@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.
@@ -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,