@smartico/public-api 0.0.284 → 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/MiniGames/SAWGameDifficulty.d.ts +12 -0
- package/dist/MiniGames/SAWTemplateUI.d.ts +2 -0
- package/dist/WSAPI/WSAPI.d.ts +37 -8
- package/dist/index.js +37 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +37 -8
- package/dist/index.modern.mjs.map +1 -1
- package/docs/classes/WSAPI.md +36 -8
- package/package.json +1 -1
- package/src/MiniGames/SAWGameDifficulty.ts +22 -0
- package/src/MiniGames/SAWTemplateUI.ts +2 -0
- package/src/WSAPI/WSAPI.ts +38 -8
- package/dist/Quiz/MarketsAnswersType.d.ts +0 -22
- package/dist/Raffle/GetDrawResponse.d.ts +0 -5
- package/dist/SmarticoPublicAPI.d.ts +0 -23
- package/dist/Store/BuyShopItemErrorCode.d.ts +0 -10
- package/dist/Store/BuyShopItemRequest.d.ts +0 -4
- package/dist/Store/BuyShopItemResponse.d.ts +0 -4
- package/dist/Store/GetCategoriesShopResponse.d.ts +0 -5
- package/dist/Store/GetShopItemsResponse.d.ts +0 -5
- package/dist/Store/ShopCategory.d.ts +0 -5
- package/dist/Store/ShopCategoryPublicMeta.d.ts +0 -4
- package/dist/Store/ShopItem.d.ts +0 -9
- package/dist/Store/ShopItemPublicMeta.d.ts +0 -10
- package/dist/Store/ShopItemType.d.ts +0 -4
- package/dist/Store/StorItemPruchased.d.ts +0 -6
- package/dist/service/index.d.ts +0 -5
- package/dist/service/types/ErrorCodes.d.ts +0 -13
- package/dist/service/types/GRequest.d.ts +0 -16
- package/dist/service/types/GResponse.d.ts +0 -10
- package/dist/service/types/Game/GameAttemptType.d.ts +0 -6
- package/dist/service/types/Game/GameCanPlayType.d.ts +0 -10
- package/dist/service/types/Game/GameExternalStatus.d.ts +0 -6
- package/dist/service/types/Game/GameInfo.d.ts +0 -9
- package/dist/service/types/Game/GamePick.d.ts +0 -90
- package/dist/service/types/Game/GameUtil.d.ts +0 -7
- package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +0 -7
- package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +0 -7
- package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +0 -5
- package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +0 -6
- package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +0 -5
- package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +0 -34
- package/dist/service/types/SmarticoProto/PublicProperties.d.ts +0 -11
- package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +0 -12
- package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +0 -15
- package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +0 -10
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +0 -3
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +0 -11
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +0 -8
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +0 -13
- package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +0 -21
- package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +0 -31
- package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +0 -12
- package/dist/service/types/SmarticoProto/TranslationArea.d.ts +0 -9
- package/dist/service/types/User/UserInfo.d.ts +0 -10
- package/dist/util/Util.d.ts +0 -51
package/dist/index.modern.mjs
CHANGED
|
@@ -2765,13 +2765,20 @@ class WSAPI {
|
|
|
2765
2765
|
* The onUpdate callback will be called on claiming prize. Updated Raffles will be passed to onUpdate callback.
|
|
2766
2766
|
*
|
|
2767
2767
|
* **Example**:
|
|
2768
|
+
*
|
|
2768
2769
|
* ```
|
|
2769
2770
|
* _smartico.api.getRaffles().then((result) => {
|
|
2770
2771
|
* console.log(result);
|
|
2771
2772
|
* });
|
|
2772
2773
|
* ```
|
|
2773
2774
|
*
|
|
2774
|
-
* **Visitor mode
|
|
2775
|
+
* **Example in the Visitor mode**:
|
|
2776
|
+
*
|
|
2777
|
+
* ```
|
|
2778
|
+
* _smartico.vapi('EN').getRaffles().then((result) => {
|
|
2779
|
+
* console.log(result);
|
|
2780
|
+
* });
|
|
2781
|
+
* ```
|
|
2775
2782
|
*
|
|
2776
2783
|
*/
|
|
2777
2784
|
async getRaffles({
|
|
@@ -2787,13 +2794,21 @@ class WSAPI {
|
|
|
2787
2794
|
*
|
|
2788
2795
|
*
|
|
2789
2796
|
* **Example**:
|
|
2790
|
-
*
|
|
2791
|
-
*
|
|
2797
|
+
*
|
|
2798
|
+
* ```javascript
|
|
2799
|
+
* _smartico.api.getRaffleDrawRun({raffle_id: 156, run_id: 145}).then((result) => {
|
|
2792
2800
|
* console.log(result);
|
|
2793
2801
|
* });
|
|
2794
2802
|
* ```
|
|
2795
2803
|
*
|
|
2796
|
-
* **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
|
+
* ```
|
|
2797
2812
|
*
|
|
2798
2813
|
*/
|
|
2799
2814
|
async getRaffleDrawRun(props) {
|
|
@@ -2808,13 +2823,20 @@ class WSAPI {
|
|
|
2808
2823
|
*
|
|
2809
2824
|
*
|
|
2810
2825
|
* **Example**:
|
|
2811
|
-
*
|
|
2826
|
+
*
|
|
2827
|
+
* ```javascript
|
|
2812
2828
|
* _smartico.api.getRaffleDrawRunHistory({raffle_id:156, draw_id: 432}).then((result) => {
|
|
2813
2829
|
* console.log(result);
|
|
2814
2830
|
* });
|
|
2815
2831
|
* ```
|
|
2816
2832
|
*
|
|
2817
|
-
* **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
|
+
* ```
|
|
2818
2840
|
*
|
|
2819
2841
|
*/
|
|
2820
2842
|
async getRaffleDrawRunsHistory(props) {
|
|
@@ -2829,13 +2851,20 @@ class WSAPI {
|
|
|
2829
2851
|
*
|
|
2830
2852
|
*
|
|
2831
2853
|
* **Example**:
|
|
2832
|
-
*
|
|
2854
|
+
*
|
|
2855
|
+
* ```javascript
|
|
2833
2856
|
* _smartico.api.claimRafflePrize({won_id:251}).then((result) => {
|
|
2834
2857
|
* console.log(result);
|
|
2835
2858
|
* });
|
|
2836
2859
|
* ```
|
|
2837
2860
|
*
|
|
2838
|
-
* **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
|
+
* ```
|
|
2839
2868
|
*
|
|
2840
2869
|
*/
|
|
2841
2870
|
async claimRafflePrize(props) {
|