@smartico/public-api 0.0.354 → 0.0.356

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 (55) hide show
  1. package/dist/SmarticoAPI.d.ts +2 -2
  2. package/dist/WSAPI/WSAPI.d.ts +1 -30
  3. package/dist/WSAPI/WSAPITypes.d.ts +515 -32
  4. package/dist/index.d.ts +0 -1
  5. package/dist/index.js +78 -211
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.modern.mjs +13 -139
  8. package/dist/index.modern.mjs.map +1 -1
  9. package/docs/api/README.md +27 -0
  10. package/docs/api/classes/WSAPI.md +27 -47
  11. package/docs/api/enums/GPRoundStatus.md +43 -0
  12. package/docs/api/enums/GamePickMarketType.md +19 -0
  13. package/docs/api/enums/GamePickResolutionType.md +35 -0
  14. package/docs/api/enums/GamePickScoreType.md +19 -0
  15. package/docs/api/enums/GamePickSportType.md +375 -0
  16. package/docs/api/enums/GameRoundOrderType.md +35 -0
  17. package/docs/api/enums/PointChangeSourceType.md +6 -0
  18. package/docs/api/interfaces/AchRelatedGame-1.md +1 -1
  19. package/docs/api/interfaces/BonusTemplateMetaMap.md +1 -1
  20. package/docs/api/interfaces/GamePickBoardUser.md +75 -0
  21. package/docs/api/interfaces/GamePickEvent.md +121 -0
  22. package/docs/api/interfaces/GamePickEventMeta.md +181 -0
  23. package/docs/api/interfaces/GamePickGameInfo.md +27 -0
  24. package/docs/api/interfaces/GamePickRequestParams.md +41 -0
  25. package/docs/api/interfaces/GamePickRound.md +385 -0
  26. package/docs/api/interfaces/GamePickRoundBase.md +235 -0
  27. package/docs/api/interfaces/GamePickRoundBoard.md +361 -0
  28. package/docs/api/interfaces/GamePickRoundPublicMeta.md +103 -0
  29. package/docs/api/interfaces/GamePickRoundRequestParams.md +65 -0
  30. package/docs/api/interfaces/GamePickUserInfo.md +107 -0
  31. package/docs/api/interfaces/GamesApiResponse.md +33 -0
  32. package/docs/api/interfaces/QuizEventMeta.md +41 -0
  33. package/docs/api/interfaces/TInboxMessageBody.md +1 -1
  34. package/docs/api/interfaces/TLevel.md +1 -1
  35. package/docs/api/interfaces/TLevelCurrent.md +1 -1
  36. package/docs/api/interfaces/TMiniGamePrize.md +1 -1
  37. package/docs/api/interfaces/TMiniGameTemplate.md +2 -2
  38. package/docs/api/interfaces/TMissionOrBadge.md +2 -2
  39. package/docs/api/interfaces/TRaffle.md +2 -2
  40. package/docs/api/interfaces/TRaffleDraw.md +14 -2
  41. package/docs/api/interfaces/TRaffleDrawRun.md +20 -0
  42. package/docs/api/interfaces/TRafflePrize.md +1 -1
  43. package/docs/api/interfaces/TStoreItem.md +3 -3
  44. package/docs/api/interfaces/TTournament.md +4 -4
  45. package/docs/api/interfaces/TTournamentDetailed.md +4 -4
  46. package/docs/api/interfaces/TUICustomSection.md +1 -1
  47. package/package.json +6 -6
  48. package/src/SmarticoAPI.ts +15 -7
  49. package/src/WSAPI/WSAPI.ts +1 -37
  50. package/src/WSAPI/WSAPITypes.ts +525 -32
  51. package/src/index.ts +1 -2
  52. package/dist/GamePick/GPTypes.d.ts +0 -268
  53. package/dist/GamePick/index.d.ts +0 -1
  54. package/src/GamePick/GPTypes.ts +0 -277
  55. package/src/GamePick/index.ts +0 -1
@@ -39,8 +39,6 @@ import {
39
39
  TLevelCurrent,
40
40
  TActivityLog,
41
41
  TRaffleOptinResponse,
42
- } from './WSAPITypes';
43
- import {
44
42
  GamesApiResponse,
45
43
  GamePickRound,
46
44
  GamePickRoundBoard,
@@ -48,7 +46,7 @@ import {
48
46
  GamePickGameInfo,
49
47
  GamePickRequestParams,
50
48
  GamePickRoundRequestParams,
51
- } from '../GamePick';
49
+ } from './WSAPITypes';
52
50
  import { LeaderBoardPeriodType } from '../Leaderboard';
53
51
  import {
54
52
  JackpotDetails,
@@ -1403,40 +1401,6 @@ export class WSAPI {
1403
1401
  return this.api.gpGetGameInfo(props.saw_template_id);
1404
1402
  }
1405
1403
 
1406
- /**
1407
- * Returns translations for the MatchX/Quiz game UI.
1408
- * Translations are returned as a key-value map for the Gamification and RetentionGames areas,
1409
- * resolved to the current user's language.
1410
- *
1411
- * @param props.saw_template_id - The ID of the MatchX or Quiz game template
1412
- *
1413
- * **Response** `GamesApiResponse<any>`:
1414
- * - `errCode` - 0 on success
1415
- * - `data`:
1416
- * - `translations` - Key-value map of translation strings (e.g. `rgSubmitSelection`, `rgLeaderboardTitle`, `quizConfirmAnswer`, etc.)
1417
- * - `hash_code` - Hash for cache invalidation
1418
- * - `lang_code` - Resolved language code (e.g. 'EN')
1419
- *
1420
- * **Example**:
1421
- * ```
1422
- * _smartico.api.getGamePickTranslations({
1423
- * saw_template_id: 1083,
1424
- * }).then((result) => {
1425
- * const tr = result.data.translations;
1426
- * console.log(tr.rgSubmitSelection); // "Submit selection"
1427
- * console.log(tr.rgLeaderboardTitle); // "Leaderboard"
1428
- * });
1429
- * ```
1430
- *
1431
- * **Visitor mode: not supported**
1432
- */
1433
- public async getGamePickTranslations(props: GamePickRequestParams): Promise<GamesApiResponse<any>> {
1434
- if (!props.saw_template_id) {
1435
- throw new Error('saw_template_id is required');
1436
- }
1437
- return this.api.gpGetTranslations(props.saw_template_id);
1438
- }
1439
-
1440
1404
  /**
1441
1405
  * Returns round data with events and picks for a specific user (identified by their internal user ID).
1442
1406
  * Useful for viewing another user's predictions from the leaderboard.