@smartico/public-api 0.0.381 → 0.0.383

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 (58) hide show
  1. package/dist/GamePick/GamePickTypes.d.ts +461 -0
  2. package/dist/GamePick/MarketsAnswers.d.ts +40 -0
  3. package/dist/GamePick/MarketsInfo.d.ts +14 -0
  4. package/dist/GamePick/MarketsPerSport.d.ts +6 -0
  5. package/dist/GamePick/MarketsType.d.ts +28 -0
  6. package/dist/GamePick/ScoreResultTypes.d.ts +28 -0
  7. package/dist/GamePick/SportTypes.d.ts +6 -0
  8. package/dist/GamePick/index.d.ts +7 -0
  9. package/dist/MiniGames/SAWGameType.d.ts +3 -1
  10. package/dist/MiniGames/SAWTemplateUI.d.ts +7 -0
  11. package/dist/SmarticoAPI.d.ts +1 -1
  12. package/dist/WSAPI/WSAPIGamePick.d.ts +1 -1
  13. package/dist/WSAPI/WSAPITypes.d.ts +2 -460
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.js +139 -1
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.modern.mjs +140 -2
  18. package/dist/index.modern.mjs.map +1 -1
  19. package/docs/api/README.md +2 -22
  20. package/docs/api/classes/WSAPIGamePick.md +42 -42
  21. package/docs/api/enumerations/SAWGameType.md +6 -0
  22. package/docs/api/enumerations/SAWGameTypeName.md +6 -0
  23. package/docs/api/interfaces/SAWTemplateUI.md +11 -0
  24. package/package.json +1 -1
  25. package/src/GamePick/GamePickTypes.ts +471 -0
  26. package/src/{Quiz → GamePick}/index.ts +1 -0
  27. package/src/MiniGames/SAWGameType.ts +3 -0
  28. package/src/MiniGames/SAWTemplateUI.ts +10 -0
  29. package/src/SmarticoAPI.ts +1 -7
  30. package/src/WSAPI/WSAPIGamePick.ts +1 -9
  31. package/src/WSAPI/WSAPITypes.ts +2 -471
  32. package/src/index.ts +1 -1
  33. package/docs/api/enumerations/GPRoundStatus.md +0 -43
  34. package/docs/api/enumerations/GamePickMarketType.md +0 -19
  35. package/docs/api/enumerations/GamePickResolutionType.md +0 -35
  36. package/docs/api/enumerations/GamePickScoreType.md +0 -19
  37. package/docs/api/enumerations/GamePickSportType.md +0 -375
  38. package/docs/api/enumerations/GameRoundOrderType.md +0 -35
  39. package/docs/api/interfaces/GamePickBoardUser.md +0 -75
  40. package/docs/api/interfaces/GamePickEvent.md +0 -123
  41. package/docs/api/interfaces/GamePickEventMeta.md +0 -201
  42. package/docs/api/interfaces/GamePickGameInfo.md +0 -27
  43. package/docs/api/interfaces/GamePickRequestParams.md +0 -39
  44. package/docs/api/interfaces/GamePickRound.md +0 -383
  45. package/docs/api/interfaces/GamePickRoundBase.md +0 -232
  46. package/docs/api/interfaces/GamePickRoundBoard.md +0 -359
  47. package/docs/api/interfaces/GamePickRoundPublicMeta.md +0 -103
  48. package/docs/api/interfaces/GamePickRoundRequestParams.md +0 -63
  49. package/docs/api/interfaces/GamePickUserInfo.md +0 -107
  50. package/docs/api/interfaces/GamesApiResponse.md +0 -33
  51. package/docs/api/interfaces/QuizEventMeta.md +0 -61
  52. package/docs/api/variables/AllRoundsGameBoardID.md +0 -5
  53. /package/src/{Quiz → GamePick}/MarketsAnswers.ts +0 -0
  54. /package/src/{Quiz → GamePick}/MarketsInfo.ts +0 -0
  55. /package/src/{Quiz → GamePick}/MarketsPerSport.ts +0 -0
  56. /package/src/{Quiz → GamePick}/MarketsType.ts +0 -0
  57. /package/src/{Quiz → GamePick}/ScoreResultTypes.ts +0 -0
  58. /package/src/{Quiz → GamePick}/SportTypes.ts +0 -0
@@ -1,63 +0,0 @@
1
- # Interface: GamePickRoundRequestParams
2
-
3
- GamePickRoundRequestParams extends base params with a specific round ID
4
-
5
- ## Extends
6
-
7
- - [`GamePickRequestParams`](GamePickRequestParams.md)
8
-
9
- ## Properties
10
-
11
- ### saw\_template\_id
12
-
13
- > **saw\_template\_id**: `number`
14
-
15
- ID of the MatchX or Quiz game template
16
-
17
- #### Inherited from
18
-
19
- [`GamePickRequestParams`](GamePickRequestParams.md).[`saw_template_id`](GamePickRequestParams.md#saw_template_id)
20
-
21
- ***
22
-
23
- ### ext\_user\_id
24
-
25
- > **ext\_user\_id**: `string`
26
-
27
- External user ID
28
-
29
- #### Inherited from
30
-
31
- [`GamePickRequestParams`](GamePickRequestParams.md).[`ext_user_id`](GamePickRequestParams.md#ext_user_id)
32
-
33
- ***
34
-
35
- ### smartico\_ext\_user\_id
36
-
37
- > **smartico\_ext\_user\_id**: `string`
38
-
39
- Smartico external user ID used for platform API calls
40
-
41
- #### Inherited from
42
-
43
- [`GamePickRequestParams`](GamePickRequestParams.md).[`smartico_ext_user_id`](GamePickRequestParams.md#smartico_ext_user_id)
44
-
45
- ***
46
-
47
- ### lang?
48
-
49
- > `optional` **lang?**: `string`
50
-
51
- Language code for translations (e.g. 'EN', 'DE')
52
-
53
- #### Inherited from
54
-
55
- [`GamePickRequestParams`](GamePickRequestParams.md).[`lang`](GamePickRequestParams.md#lang)
56
-
57
- ***
58
-
59
- ### round\_id
60
-
61
- > **round\_id**: `number`
62
-
63
- ID of the specific round
@@ -1,107 +0,0 @@
1
- # Interface: GamePickUserInfo
2
-
3
- GamePickUserInfo describes the current user's profile in the games system
4
-
5
- ## Properties
6
-
7
- ### ext\_user\_id
8
-
9
- > **ext\_user\_id**: `string`
10
-
11
- External user ID (Smartico numeric user ID)
12
-
13
- ***
14
-
15
- ### int\_user\_id
16
-
17
- > **int\_user\_id**: `number`
18
-
19
- Internal user ID within the games system
20
-
21
- ***
22
-
23
- ### public\_username
24
-
25
- > **public\_username**: `string`
26
-
27
- Display name
28
-
29
- ***
30
-
31
- ### avatar\_url
32
-
33
- > **avatar\_url**: `string`
34
-
35
- URL of the user's avatar image
36
-
37
- ***
38
-
39
- ### gp\_position?
40
-
41
- > `optional` **gp\_position?**: `number`
42
-
43
- User's leaderboard rank position
44
-
45
- ***
46
-
47
- ### full\_wins\_count?
48
-
49
- > `optional` **full\_wins\_count?**: `number`
50
-
51
- Number of fully correct predictions
52
-
53
- ***
54
-
55
- ### part\_wins\_count?
56
-
57
- > `optional` **part\_wins\_count?**: `number`
58
-
59
- Number of partially correct predictions
60
-
61
- ***
62
-
63
- ### resolution\_score?
64
-
65
- > `optional` **resolution\_score?**: `number`
66
-
67
- User's total score
68
-
69
- ***
70
-
71
- ### last\_wallet\_sync\_time?
72
-
73
- > `optional` **last\_wallet\_sync\_time?**: `Date`
74
-
75
- Last time the user's balance was synced from the Smartico platform
76
-
77
- ***
78
-
79
- ### ach\_points\_balance?
80
-
81
- > `optional` **ach\_points\_balance?**: `number`
82
-
83
- User's current points balance
84
-
85
- ***
86
-
87
- ### ach\_gems\_balance?
88
-
89
- > `optional` **ach\_gems\_balance?**: `number`
90
-
91
- User's current gems balance
92
-
93
- ***
94
-
95
- ### ach\_diamonds\_balance?
96
-
97
- > `optional` **ach\_diamonds\_balance?**: `number`
98
-
99
- User's current diamonds balance
100
-
101
- ***
102
-
103
- ### pubic\_username\_set?
104
-
105
- > `optional` **pubic\_username\_set?**: `boolean`
106
-
107
- Whether the user has set a custom public username
@@ -1,33 +0,0 @@
1
- # Interface: GamesApiResponse\<T\>
2
-
3
- GamesApiResponse is the standard response wrapper for all GamePick/Quiz API calls
4
-
5
- ## Type Parameters
6
-
7
- ### T
8
-
9
- `T`
10
-
11
- ## Properties
12
-
13
- ### errCode
14
-
15
- > **errCode**: `number`
16
-
17
- Error code: 0 on success, non-zero on failure
18
-
19
- ***
20
-
21
- ### errMessage?
22
-
23
- > `optional` **errMessage?**: `string`
24
-
25
- Human-readable error message when errCode is non-zero
26
-
27
- ***
28
-
29
- ### data?
30
-
31
- > `optional` **data?**: `T`
32
-
33
- Response payload, present on success
@@ -1,61 +0,0 @@
1
- # Interface: QuizEventMeta
2
-
3
- QuizEventMeta describes metadata for a quiz-type event (custom question with answer options)
4
-
5
- ## Extended by
6
-
7
- - [`GamePickEventMeta`](GamePickEventMeta.md)
8
-
9
- ## Properties
10
-
11
- ### answers?
12
-
13
- > `optional` **answers?**: `object`[]
14
-
15
- List of possible answer options for the quiz question
16
-
17
- #### value
18
-
19
- > **value**: `string`
20
-
21
- Answer identifier value sent on submission
22
-
23
- #### text
24
-
25
- > **text**: `string`
26
-
27
- Localized display text of the answer
28
-
29
- #### \_translations
30
-
31
- > **\_translations**: `object`
32
-
33
- Per-language overrides for the answer text
34
-
35
- ##### Index Signature
36
-
37
- \[`key`: `string`\]: `object`
38
-
39
- ***
40
-
41
- ### question\_image?
42
-
43
- > `optional` **question\_image?**: `string`
44
-
45
- URL of an image associated with the question
46
-
47
- ***
48
-
49
- ### result?
50
-
51
- > `optional` **result?**: [`QuizAnswersValueType`](../enumerations/QuizAnswersValueType.md)
52
-
53
- Correct answer value after resolution
54
-
55
- ***
56
-
57
- ### custom\_question
58
-
59
- > **custom\_question**: `string`
60
-
61
- Custom question text displayed to the user
@@ -1,5 +0,0 @@
1
- # Variable: AllRoundsGameBoardID
2
-
3
- > `const` **AllRoundsGameBoardID**: `-1` = `-1`
4
-
5
- Round ID constant used to request the overall/seasonal leaderboard across all rounds
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes