@smartico/public-api 0.0.245 → 0.0.246

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.
Files changed (62) hide show
  1. package/dist/Quiz/MarketsAnswersType.d.ts +22 -0
  2. package/dist/Raffle/GetDrawResponse.d.ts +5 -0
  3. package/dist/Raffle/RafflePrizeWinner.d.ts +1 -1
  4. package/dist/SmarticoAPI.d.ts +2 -1
  5. package/dist/SmarticoPublicAPI.d.ts +23 -0
  6. package/dist/Store/BuyShopItemErrorCode.d.ts +10 -0
  7. package/dist/Store/BuyShopItemRequest.d.ts +4 -0
  8. package/dist/Store/BuyShopItemResponse.d.ts +4 -0
  9. package/dist/Store/GetCategoriesShopResponse.d.ts +5 -0
  10. package/dist/Store/GetShopItemsResponse.d.ts +5 -0
  11. package/dist/Store/ShopCategory.d.ts +5 -0
  12. package/dist/Store/ShopCategoryPublicMeta.d.ts +4 -0
  13. package/dist/Store/ShopItem.d.ts +9 -0
  14. package/dist/Store/ShopItemPublicMeta.d.ts +10 -0
  15. package/dist/Store/ShopItemType.d.ts +4 -0
  16. package/dist/Store/StorItemPruchased.d.ts +6 -0
  17. package/dist/WSAPI/WSAPI.d.ts +2 -1
  18. package/dist/index.js +17 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.modern.mjs +7 -0
  21. package/dist/index.modern.mjs.map +1 -1
  22. package/dist/service/index.d.ts +5 -0
  23. package/dist/service/types/ErrorCodes.d.ts +13 -0
  24. package/dist/service/types/GRequest.d.ts +16 -0
  25. package/dist/service/types/GResponse.d.ts +10 -0
  26. package/dist/service/types/Game/GameAttemptType.d.ts +6 -0
  27. package/dist/service/types/Game/GameCanPlayType.d.ts +10 -0
  28. package/dist/service/types/Game/GameExternalStatus.d.ts +6 -0
  29. package/dist/service/types/Game/GameInfo.d.ts +9 -0
  30. package/dist/service/types/Game/GamePick.d.ts +90 -0
  31. package/dist/service/types/Game/GameUtil.d.ts +7 -0
  32. package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +7 -0
  33. package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +7 -0
  34. package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +5 -0
  35. package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +6 -0
  36. package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +5 -0
  37. package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +34 -0
  38. package/dist/service/types/SmarticoProto/PublicProperties.d.ts +11 -0
  39. package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +12 -0
  40. package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +5 -0
  41. package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +5 -0
  42. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +5 -0
  43. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +15 -0
  44. package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +10 -0
  45. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +3 -0
  46. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +5 -0
  47. package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +11 -0
  48. package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +8 -0
  49. package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +13 -0
  50. package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +21 -0
  51. package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +31 -0
  52. package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +12 -0
  53. package/dist/service/types/SmarticoProto/TranslationArea.d.ts +9 -0
  54. package/dist/service/types/User/UserInfo.d.ts +10 -0
  55. package/dist/util/Util.d.ts +51 -0
  56. package/docs/classes/WSAPI.md +17 -1
  57. package/docs/interfaces/RafflePrizeWinner.md +2 -2
  58. package/docs/interfaces/TStoreItem.md +8 -0
  59. package/package.json +1 -1
  60. package/src/Raffle/RafflePrizeWinner.ts +1 -1
  61. package/src/SmarticoAPI.ts +11 -1
  62. package/src/WSAPI/WSAPI.ts +24 -11
@@ -53,7 +53,14 @@ import { GetAchievementMapResponse } from '../Missions';
53
53
  import { GetRelatedAchTourResponse } from '../Missions/GetRelatedAchTourResponse';
54
54
  import { GetRafflesResponse } from '../Raffle/GetRafflesResponse';
55
55
  import { InboxCategories } from '../Inbox/InboxCategories';
56
- import { GetDrawRunRequest, GetDrawRunResponse, GetRaffleDrawRunsHistoryRequest, GetRaffleDrawRunsHistoryResponse } from '../Raffle';
56
+ import {
57
+ GetDrawRunRequest,
58
+ GetDrawRunResponse,
59
+ GetRaffleDrawRunsHistoryRequest,
60
+ GetRaffleDrawRunsHistoryResponse,
61
+ RaffleClaimPrizeRequest,
62
+ RaffleClaimPrizeResponse,
63
+ } from '../Raffle';
57
64
  import { IntUtils } from '../IntUtils';
58
65
 
59
66
  /** @hidden */
@@ -558,9 +565,8 @@ export class WSAPI {
558
565
  return o;
559
566
  }
560
567
 
561
-
562
568
  /**
563
- * Sends the acknowledge request with specific client_request_id from minigame history in order to claim prize
569
+ * Sends the acknowledge request with specific client_request_id from minigame history in order to claim prize
564
570
  * **Example**:
565
571
  * ```
566
572
  * _smartico.api.miniGameWinAcknowledgeRequest('2a189322-31bb-4119-b943-bx7868ff8dc3').then((result) => {
@@ -568,7 +574,7 @@ export class WSAPI {
568
574
  * });
569
575
  * ```
570
576
  */
571
- public async miniGameWinAcknowledgeRequest (request_id: string) {
577
+ public async miniGameWinAcknowledgeRequest(request_id: string) {
572
578
  return this.api.doAcknowledgeRequest(null, request_id);
573
579
  }
574
580
 
@@ -763,9 +769,13 @@ export class WSAPI {
763
769
  onlyFavorite,
764
770
  categoryId,
765
771
  onUpdate,
766
- }: { from?: number; to?: number; onlyFavorite?: boolean; categoryId?: InboxCategories, onUpdate?: (data: TInboxMessage[]) => void } = {}): Promise<
767
- TInboxMessage[]
768
- > {
772
+ }: {
773
+ from?: number;
774
+ to?: number;
775
+ onlyFavorite?: boolean;
776
+ categoryId?: InboxCategories;
777
+ onUpdate?: (data: TInboxMessage[]) => void;
778
+ } = {}): Promise<TInboxMessage[]> {
769
779
  if (onUpdate) {
770
780
  this.onUpdateCallback.set(onUpdateContextKey.InboxMessages, onUpdate);
771
781
  }
@@ -1053,16 +1063,19 @@ export class WSAPI {
1053
1063
  return result;
1054
1064
  }
1055
1065
 
1056
-
1057
1066
  public async getRaffles(): Promise<GetRafflesResponse> {
1058
1067
  return await this.api.getRaffles(null);
1059
1068
  }
1060
1069
 
1061
- public async getDrawRun(payload: GetDrawRunRequest): Promise<GetDrawRunResponse>{
1070
+ public async getDrawRun(payload: GetDrawRunRequest): Promise<GetDrawRunResponse> {
1062
1071
  return await this.api.getDrawRun(null, payload);
1063
1072
  }
1064
-
1065
- public async getRaffleDrawRunsHistory(payload: GetRaffleDrawRunsHistoryRequest): Promise<GetRaffleDrawRunsHistoryResponse>{
1073
+
1074
+ public async getRaffleDrawRunsHistory(payload: GetRaffleDrawRunsHistoryRequest): Promise<GetRaffleDrawRunsHistoryResponse> {
1066
1075
  return await this.api.getRaffleDrawRunsHistory(null, payload);
1067
1076
  }
1077
+
1078
+ public async claimRafflePrize(payload: RaffleClaimPrizeRequest): Promise<RaffleClaimPrizeResponse> {
1079
+ return await this.api.claimRafflePrize(null, payload);
1080
+ }
1068
1081
  }