@smartico/public-api 0.0.284 → 0.0.286
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 +3 -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 +3 -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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum SAWGameDifficultyType {
|
|
2
|
+
EASY = 1,
|
|
3
|
+
MEDIUM = 2,
|
|
4
|
+
HARD = 3
|
|
5
|
+
}
|
|
6
|
+
export declare enum SAWGameDifficultyTypeName {
|
|
7
|
+
EASY = "easy",
|
|
8
|
+
MEDIUM = "medium",
|
|
9
|
+
HARD = "hard"
|
|
10
|
+
}
|
|
11
|
+
/** @hidden */
|
|
12
|
+
export declare const SawGameDifficultyTypeNamed: (type: SAWGameDifficultyType) => SAWGameDifficultyTypeName;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SAWAskForUsername } from './SAWAskForUsername';
|
|
2
|
+
import { SAWGameDifficultyType } from './SAWGameDifficulty';
|
|
2
3
|
import { SAWGameLayout } from './SAWGameLayout';
|
|
3
4
|
import { SAWWheelLayout } from './SAWWheelLayout';
|
|
4
5
|
export interface SAWTemplateUI {
|
|
@@ -52,4 +53,6 @@ export interface SAWTemplateUI {
|
|
|
52
53
|
steps_to_finish_game?: number;
|
|
53
54
|
wheel_layout?: SAWWheelLayout;
|
|
54
55
|
background_music_volume?: number;
|
|
56
|
+
/** Voyager specific */
|
|
57
|
+
game_difficulty?: SAWGameDifficultyType;
|
|
55
58
|
}
|
package/dist/WSAPI/WSAPI.d.ts
CHANGED
|
@@ -605,13 +605,20 @@ export declare class WSAPI {
|
|
|
605
605
|
* The onUpdate callback will be called on claiming prize. Updated Raffles will be passed to onUpdate callback.
|
|
606
606
|
*
|
|
607
607
|
* **Example**:
|
|
608
|
+
*
|
|
608
609
|
* ```
|
|
609
610
|
* _smartico.api.getRaffles().then((result) => {
|
|
610
611
|
* console.log(result);
|
|
611
612
|
* });
|
|
612
613
|
* ```
|
|
613
614
|
*
|
|
614
|
-
* **Visitor mode
|
|
615
|
+
* **Example in the Visitor mode**:
|
|
616
|
+
*
|
|
617
|
+
* ```
|
|
618
|
+
* _smartico.vapi('EN').getRaffles().then((result) => {
|
|
619
|
+
* console.log(result);
|
|
620
|
+
* });
|
|
621
|
+
* ```
|
|
615
622
|
*
|
|
616
623
|
*/
|
|
617
624
|
getRaffles({ onUpdate }?: {
|
|
@@ -622,13 +629,21 @@ export declare class WSAPI {
|
|
|
622
629
|
*
|
|
623
630
|
*
|
|
624
631
|
* **Example**:
|
|
625
|
-
*
|
|
626
|
-
*
|
|
632
|
+
*
|
|
633
|
+
* ```javascript
|
|
634
|
+
* _smartico.api.getRaffleDrawRun({raffle_id: 156, run_id: 145}).then((result) => {
|
|
627
635
|
* console.log(result);
|
|
628
636
|
* });
|
|
629
637
|
* ```
|
|
630
638
|
*
|
|
631
|
-
* **Visitor mode
|
|
639
|
+
* **Example in the Visitor mode**:
|
|
640
|
+
*
|
|
641
|
+
*
|
|
642
|
+
* ```javascript
|
|
643
|
+
* _smartico.vapi('EN').getRaffleDrawRun({ raffle_id: 156, run_id: 145 }).then((result) => {
|
|
644
|
+
* console.log(result);
|
|
645
|
+
* });
|
|
646
|
+
* ```
|
|
632
647
|
*
|
|
633
648
|
*/
|
|
634
649
|
getRaffleDrawRun(props: {
|
|
@@ -640,13 +655,20 @@ export declare class WSAPI {
|
|
|
640
655
|
*
|
|
641
656
|
*
|
|
642
657
|
* **Example**:
|
|
643
|
-
*
|
|
658
|
+
*
|
|
659
|
+
* ```javascript
|
|
644
660
|
* _smartico.api.getRaffleDrawRunHistory({raffle_id:156, draw_id: 432}).then((result) => {
|
|
645
661
|
* console.log(result);
|
|
646
662
|
* });
|
|
647
663
|
* ```
|
|
648
664
|
*
|
|
649
|
-
* **Visitor mode
|
|
665
|
+
* **Example in the Visitor mode**:
|
|
666
|
+
*
|
|
667
|
+
* ```javascript
|
|
668
|
+
* _smartico.vapi('EN').getRaffleDrawRunHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
|
|
669
|
+
* console.log(result);
|
|
670
|
+
* });
|
|
671
|
+
* ```
|
|
650
672
|
*
|
|
651
673
|
*/
|
|
652
674
|
getRaffleDrawRunsHistory(props: {
|
|
@@ -658,13 +680,20 @@ export declare class WSAPI {
|
|
|
658
680
|
*
|
|
659
681
|
*
|
|
660
682
|
* **Example**:
|
|
661
|
-
*
|
|
683
|
+
*
|
|
684
|
+
* ```javascript
|
|
662
685
|
* _smartico.api.claimRafflePrize({won_id:251}).then((result) => {
|
|
663
686
|
* console.log(result);
|
|
664
687
|
* });
|
|
665
688
|
* ```
|
|
666
689
|
*
|
|
667
|
-
* **Visitor mode
|
|
690
|
+
* **Example in the Visitor mode**:
|
|
691
|
+
*
|
|
692
|
+
* ```javascript
|
|
693
|
+
* _smartico.vapi('EN').claimRafflePrize({ won_id: 251 }).then((result) => {
|
|
694
|
+
* console.log(result);
|
|
695
|
+
* });
|
|
696
|
+
* ```
|
|
668
697
|
*
|
|
669
698
|
*/
|
|
670
699
|
claimRafflePrize(props: {
|
package/dist/index.js
CHANGED
|
@@ -3175,13 +3175,20 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
3175
3175
|
* The onUpdate callback will be called on claiming prize. Updated Raffles will be passed to onUpdate callback.
|
|
3176
3176
|
*
|
|
3177
3177
|
* **Example**:
|
|
3178
|
+
*
|
|
3178
3179
|
* ```
|
|
3179
3180
|
* _smartico.api.getRaffles().then((result) => {
|
|
3180
3181
|
* console.log(result);
|
|
3181
3182
|
* });
|
|
3182
3183
|
* ```
|
|
3183
3184
|
*
|
|
3184
|
-
* **Visitor mode
|
|
3185
|
+
* **Example in the Visitor mode**:
|
|
3186
|
+
*
|
|
3187
|
+
* ```
|
|
3188
|
+
* _smartico.vapi('EN').getRaffles().then((result) => {
|
|
3189
|
+
* console.log(result);
|
|
3190
|
+
* });
|
|
3191
|
+
* ```
|
|
3185
3192
|
*
|
|
3186
3193
|
*/
|
|
3187
3194
|
;
|
|
@@ -3205,13 +3212,21 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
3205
3212
|
*
|
|
3206
3213
|
*
|
|
3207
3214
|
* **Example**:
|
|
3208
|
-
*
|
|
3209
|
-
*
|
|
3215
|
+
*
|
|
3216
|
+
* ```javascript
|
|
3217
|
+
* _smartico.api.getRaffleDrawRun({raffle_id: 156, run_id: 145}).then((result) => {
|
|
3210
3218
|
* console.log(result);
|
|
3211
3219
|
* });
|
|
3212
3220
|
* ```
|
|
3213
3221
|
*
|
|
3214
|
-
* **Visitor mode
|
|
3222
|
+
* **Example in the Visitor mode**:
|
|
3223
|
+
*
|
|
3224
|
+
*
|
|
3225
|
+
* ```javascript
|
|
3226
|
+
* _smartico.vapi('EN').getRaffleDrawRun({ raffle_id: 156, run_id: 145 }).then((result) => {
|
|
3227
|
+
* console.log(result);
|
|
3228
|
+
* });
|
|
3229
|
+
* ```
|
|
3215
3230
|
*
|
|
3216
3231
|
*/
|
|
3217
3232
|
;
|
|
@@ -3233,13 +3248,20 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
3233
3248
|
*
|
|
3234
3249
|
*
|
|
3235
3250
|
* **Example**:
|
|
3236
|
-
*
|
|
3251
|
+
*
|
|
3252
|
+
* ```javascript
|
|
3237
3253
|
* _smartico.api.getRaffleDrawRunHistory({raffle_id:156, draw_id: 432}).then((result) => {
|
|
3238
3254
|
* console.log(result);
|
|
3239
3255
|
* });
|
|
3240
3256
|
* ```
|
|
3241
3257
|
*
|
|
3242
|
-
* **Visitor mode
|
|
3258
|
+
* **Example in the Visitor mode**:
|
|
3259
|
+
*
|
|
3260
|
+
* ```javascript
|
|
3261
|
+
* _smartico.vapi('EN').getRaffleDrawRunHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
|
|
3262
|
+
* console.log(result);
|
|
3263
|
+
* });
|
|
3264
|
+
* ```
|
|
3243
3265
|
*
|
|
3244
3266
|
*/
|
|
3245
3267
|
;
|
|
@@ -3261,13 +3283,20 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
3261
3283
|
*
|
|
3262
3284
|
*
|
|
3263
3285
|
* **Example**:
|
|
3264
|
-
*
|
|
3286
|
+
*
|
|
3287
|
+
* ```javascript
|
|
3265
3288
|
* _smartico.api.claimRafflePrize({won_id:251}).then((result) => {
|
|
3266
3289
|
* console.log(result);
|
|
3267
3290
|
* });
|
|
3268
3291
|
* ```
|
|
3269
3292
|
*
|
|
3270
|
-
* **Visitor mode
|
|
3293
|
+
* **Example in the Visitor mode**:
|
|
3294
|
+
*
|
|
3295
|
+
* ```javascript
|
|
3296
|
+
* _smartico.vapi('EN').claimRafflePrize({ won_id: 251 }).then((result) => {
|
|
3297
|
+
* console.log(result);
|
|
3298
|
+
* });
|
|
3299
|
+
* ```
|
|
3271
3300
|
*
|
|
3272
3301
|
*/
|
|
3273
3302
|
;
|