@smartico/public-api 0.0.399 → 0.0.400

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.
@@ -6930,10 +6930,8 @@ class WSAPIMiniGames extends WSAPIRaffles {
6930
6930
  * Pass `acknowledge: false` to skip that automatic step.
6931
6931
  * `playMiniGame` then resolves as soon as the spin result is known,
6932
6932
  * without waiting for the win to be marked delivered. You finalise
6933
- * it later by calling {@link miniGameWinAcknowledgeRequest}. The
6934
- * result does NOT carry the spin's request id — obtain it as the
6935
- * `client_request_id` of the matching {@link getMiniGamesHistory}
6936
- * row (the spin appears there with `is_claimed: false`).
6933
+ * it later by calling {@link miniGameWinAcknowledgeRequest} with the
6934
+ * `request_id` returned on this result.
6937
6935
  *
6938
6936
  * What `acknowledge: false` does and does NOT defer:
6939
6937
  * - For STANDARD prizes the value is credited at spin time
@@ -7048,12 +7046,9 @@ class WSAPIMiniGames extends WSAPIRaffles {
7048
7046
  * // are credited only by the acknowledge below.
7049
7047
  * console.log('[smartico] prize won — show the result / Claim CTA, then finalise');
7050
7048
  *
7051
- * // The result has no request id — read it from history as client_request_id.
7052
- * const [row] = await window._smartico.api.getMiniGamesHistory({ saw_template_id: game.id, limit: 1 });
7053
- * if (row && !row.is_claimed) {
7054
- * await window._smartico.api.miniGameWinAcknowledgeRequest(row.client_request_id);
7055
- * console.log('[smartico] win finalised — refresh getUserProfile / getMiniGames to reflect it');
7056
- * }
7049
+ * // On the user's Claim click, finalise with the request_id from the result.
7050
+ * await window._smartico.api.miniGameWinAcknowledgeRequest(r.request_id);
7051
+ * console.log('[smartico] win finalised — refresh getUserProfile / getMiniGames to reflect it');
7057
7052
  * }
7058
7053
  * ```
7059
7054
  */
@@ -7071,7 +7066,8 @@ class WSAPIMiniGames extends WSAPIRaffles {
7071
7066
  const o = {
7072
7067
  err_code: r.errCode,
7073
7068
  err_message: r.errMsg,
7074
- prize_id: r.saw_prize_id
7069
+ prize_id: r.saw_prize_id,
7070
+ request_id: r.request_id
7075
7071
  };
7076
7072
  return o;
7077
7073
  }