@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.
- package/dist/WSAPI/WSAPIMiniGames.d.ts +5 -10
- package/dist/WSAPI/WSAPITypes.d.ts +5 -0
- package/dist/index.js +7 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +7 -11
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/WSAPI/WSAPIMiniGames.ts +6 -10
- package/src/WSAPI/WSAPITypes.ts +5 -0
package/dist/index.modern.mjs
CHANGED
|
@@ -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}
|
|
6934
|
-
*
|
|
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
|
-
* //
|
|
7052
|
-
*
|
|
7053
|
-
*
|
|
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
|
}
|