@smartico/public-api 0.0.283 → 0.0.285
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/Jackpots/JackpotPublicMeta.d.ts +1 -1
- package/dist/MiniGames/SAWGameDifficulty.d.ts +12 -0
- package/dist/MiniGames/SAWPrizeUI.d.ts +1 -0
- package/dist/MiniGames/SAWTemplateUI.d.ts +2 -0
- package/dist/Raffle/Raffle.d.ts +1 -1
- package/dist/Raffle/RaffleDraw.d.ts +16 -11
- package/dist/Raffle/RafflePrize.d.ts +15 -14
- package/dist/Raffle/RaffleTicket.d.ts +6 -0
- package/dist/WSAPI/WSAPI.d.ts +37 -8
- package/dist/WSAPI/WSAPITypes.d.ts +11 -0
- package/dist/index.js +39 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +39 -8
- package/dist/index.modern.mjs.map +1 -1
- package/docs/classes/WSAPI.md +36 -8
- package/docs/interfaces/JackpotPublicMeta.md +1 -1
- package/docs/interfaces/RaffleDraw.md +13 -10
- package/docs/interfaces/RafflePrize.md +18 -16
- package/docs/interfaces/RafflePublicMeta.md +1 -1
- package/docs/interfaces/RaffleTicket.md +4 -0
- package/docs/interfaces/SAWPrizeUI.md +6 -0
- package/docs/interfaces/TMiniGameTemplate.md +18 -0
- package/docs/interfaces/TRaffleTicket.md +4 -0
- package/package.json +1 -1
- package/src/Jackpots/JackpotPublicMeta.ts +1 -1
- package/src/MiniGames/SAWGameDifficulty.ts +22 -0
- package/src/MiniGames/SAWGetTemplatesResponse.ts +2 -0
- package/src/MiniGames/SAWPrizeUI.ts +1 -0
- package/src/MiniGames/SAWTemplateUI.ts +2 -0
- package/src/Raffle/Raffle.ts +1 -1
- package/src/Raffle/RaffleClaimPrizeResponse.ts +1 -4
- package/src/Raffle/RaffleDraw.ts +17 -15
- package/src/Raffle/RafflePrize.ts +18 -17
- package/src/Raffle/RaffleTicket.ts +6 -2
- package/src/WSAPI/WSAPI.ts +38 -8
- package/src/WSAPI/WSAPITypes.ts +11 -3
package/dist/index.modern.mjs
CHANGED
|
@@ -446,6 +446,8 @@ const SAWTemplatesTransform = items => {
|
|
|
446
446
|
custom_section_id: r.saw_template_ui_definition.custom_section_id,
|
|
447
447
|
saw_template_ui_definition: r.saw_template_ui_definition,
|
|
448
448
|
show_prize_history: r.show_prize_history,
|
|
449
|
+
max_number_of_attempts: r.maxSpinsCount,
|
|
450
|
+
max_spins_period_ms: r.maxSpinsPediodMs,
|
|
449
451
|
prizes: r.prizes.map(p => {
|
|
450
452
|
var _p$saw_prize_ui_defin;
|
|
451
453
|
const y = {
|
|
@@ -2763,13 +2765,20 @@ class WSAPI {
|
|
|
2763
2765
|
* The onUpdate callback will be called on claiming prize. Updated Raffles will be passed to onUpdate callback.
|
|
2764
2766
|
*
|
|
2765
2767
|
* **Example**:
|
|
2768
|
+
*
|
|
2766
2769
|
* ```
|
|
2767
2770
|
* _smartico.api.getRaffles().then((result) => {
|
|
2768
2771
|
* console.log(result);
|
|
2769
2772
|
* });
|
|
2770
2773
|
* ```
|
|
2771
2774
|
*
|
|
2772
|
-
* **Visitor mode
|
|
2775
|
+
* **Example in the Visitor mode**:
|
|
2776
|
+
*
|
|
2777
|
+
* ```
|
|
2778
|
+
* _smartico.vapi('EN').getRaffles().then((result) => {
|
|
2779
|
+
* console.log(result);
|
|
2780
|
+
* });
|
|
2781
|
+
* ```
|
|
2773
2782
|
*
|
|
2774
2783
|
*/
|
|
2775
2784
|
async getRaffles({
|
|
@@ -2785,13 +2794,21 @@ class WSAPI {
|
|
|
2785
2794
|
*
|
|
2786
2795
|
*
|
|
2787
2796
|
* **Example**:
|
|
2788
|
-
*
|
|
2789
|
-
*
|
|
2797
|
+
*
|
|
2798
|
+
* ```javascript
|
|
2799
|
+
* _smartico.api.getRaffleDrawRun({raffle_id: 156, run_id: 145}).then((result) => {
|
|
2790
2800
|
* console.log(result);
|
|
2791
2801
|
* });
|
|
2792
2802
|
* ```
|
|
2793
2803
|
*
|
|
2794
|
-
* **Visitor mode
|
|
2804
|
+
* **Example in the Visitor mode**:
|
|
2805
|
+
*
|
|
2806
|
+
*
|
|
2807
|
+
* ```javascript
|
|
2808
|
+
* _smartico.vapi('EN').getRaffleDrawRun({ raffle_id: 156, run_id: 145 }).then((result) => {
|
|
2809
|
+
* console.log(result);
|
|
2810
|
+
* });
|
|
2811
|
+
* ```
|
|
2795
2812
|
*
|
|
2796
2813
|
*/
|
|
2797
2814
|
async getRaffleDrawRun(props) {
|
|
@@ -2806,13 +2823,20 @@ class WSAPI {
|
|
|
2806
2823
|
*
|
|
2807
2824
|
*
|
|
2808
2825
|
* **Example**:
|
|
2809
|
-
*
|
|
2826
|
+
*
|
|
2827
|
+
* ```javascript
|
|
2810
2828
|
* _smartico.api.getRaffleDrawRunHistory({raffle_id:156, draw_id: 432}).then((result) => {
|
|
2811
2829
|
* console.log(result);
|
|
2812
2830
|
* });
|
|
2813
2831
|
* ```
|
|
2814
2832
|
*
|
|
2815
|
-
* **Visitor mode
|
|
2833
|
+
* **Example in the Visitor mode**:
|
|
2834
|
+
*
|
|
2835
|
+
* ```javascript
|
|
2836
|
+
* _smartico.vapi('EN').getRaffleDrawRunHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
|
|
2837
|
+
* console.log(result);
|
|
2838
|
+
* });
|
|
2839
|
+
* ```
|
|
2816
2840
|
*
|
|
2817
2841
|
*/
|
|
2818
2842
|
async getRaffleDrawRunsHistory(props) {
|
|
@@ -2827,13 +2851,20 @@ class WSAPI {
|
|
|
2827
2851
|
*
|
|
2828
2852
|
*
|
|
2829
2853
|
* **Example**:
|
|
2830
|
-
*
|
|
2854
|
+
*
|
|
2855
|
+
* ```javascript
|
|
2831
2856
|
* _smartico.api.claimRafflePrize({won_id:251}).then((result) => {
|
|
2832
2857
|
* console.log(result);
|
|
2833
2858
|
* });
|
|
2834
2859
|
* ```
|
|
2835
2860
|
*
|
|
2836
|
-
* **Visitor mode
|
|
2861
|
+
* **Example in the Visitor mode**:
|
|
2862
|
+
*
|
|
2863
|
+
* ```javascript
|
|
2864
|
+
* _smartico.vapi('EN').claimRafflePrize({ won_id: 251 }).then((result) => {
|
|
2865
|
+
* console.log(result);
|
|
2866
|
+
* });
|
|
2867
|
+
* ```
|
|
2837
2868
|
*
|
|
2838
2869
|
*/
|
|
2839
2870
|
async claimRafflePrize(props) {
|