@smartico/public-api 0.0.382 → 0.0.384
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/GamePick/GamePickTypes.d.ts +461 -0
- package/dist/GamePick/MarketsAnswers.d.ts +40 -0
- package/dist/GamePick/MarketsInfo.d.ts +14 -0
- package/dist/GamePick/MarketsPerSport.d.ts +6 -0
- package/dist/GamePick/MarketsType.d.ts +28 -0
- package/dist/GamePick/ScoreResultTypes.d.ts +28 -0
- package/dist/GamePick/SportTypes.d.ts +6 -0
- package/dist/GamePick/index.d.ts +7 -0
- package/dist/SmarticoAPI.d.ts +1 -1
- package/dist/WSAPI/WSAPIGamePick.d.ts +1 -1
- package/dist/WSAPI/WSAPITypes.d.ts +2 -460
- package/dist/index.d.ts +1 -1
- package/dist/index.js +151 -15
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +151 -16
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/README.md +2 -22
- package/docs/api/classes/WSAPIGamePick.md +42 -42
- package/docs/api/enumerations/SAWGameType.md +6 -0
- package/docs/api/enumerations/SAWGameTypeName.md +6 -0
- package/docs/api/interfaces/SAWTemplateUI.md +11 -0
- package/package.json +1 -1
- package/src/GamePick/GamePickTypes.ts +471 -0
- package/src/{Quiz → GamePick}/index.ts +1 -0
- package/src/SmarticoAPI.ts +1 -7
- package/src/WSAPI/WSAPIBase.ts +1 -1
- package/src/WSAPI/WSAPIBonuses.ts +1 -1
- package/src/WSAPI/WSAPIClans.ts +1 -1
- package/src/WSAPI/WSAPIGamePick.ts +1 -9
- package/src/WSAPI/WSAPIInbox.ts +2 -2
- package/src/WSAPI/WSAPIJackpots.ts +1 -1
- package/src/WSAPI/WSAPIMiniGames.ts +3 -3
- package/src/WSAPI/WSAPIMissions.ts +1 -1
- package/src/WSAPI/WSAPIRaffles.ts +1 -1
- package/src/WSAPI/WSAPIStore.ts +2 -2
- package/src/WSAPI/WSAPITournaments.ts +1 -1
- package/src/WSAPI/WSAPITypes.ts +2 -471
- package/src/WSAPI/WSAPIUser.ts +1 -1
- package/src/index.ts +1 -1
- package/docs/api/enumerations/GPRoundStatus.md +0 -43
- package/docs/api/enumerations/GamePickMarketType.md +0 -19
- package/docs/api/enumerations/GamePickResolutionType.md +0 -35
- package/docs/api/enumerations/GamePickScoreType.md +0 -19
- package/docs/api/enumerations/GamePickSportType.md +0 -375
- package/docs/api/enumerations/GameRoundOrderType.md +0 -35
- package/docs/api/interfaces/GamePickBoardUser.md +0 -75
- package/docs/api/interfaces/GamePickEvent.md +0 -123
- package/docs/api/interfaces/GamePickEventMeta.md +0 -201
- package/docs/api/interfaces/GamePickGameInfo.md +0 -27
- package/docs/api/interfaces/GamePickRequestParams.md +0 -39
- package/docs/api/interfaces/GamePickRound.md +0 -383
- package/docs/api/interfaces/GamePickRoundBase.md +0 -232
- package/docs/api/interfaces/GamePickRoundBoard.md +0 -359
- package/docs/api/interfaces/GamePickRoundPublicMeta.md +0 -103
- package/docs/api/interfaces/GamePickRoundRequestParams.md +0 -63
- package/docs/api/interfaces/GamePickUserInfo.md +0 -107
- package/docs/api/interfaces/GamesApiResponse.md +0 -33
- package/docs/api/interfaces/QuizEventMeta.md +0 -61
- package/docs/api/variables/AllRoundsGameBoardID.md +0 -5
- /package/src/{Quiz → GamePick}/MarketsAnswers.ts +0 -0
- /package/src/{Quiz → GamePick}/MarketsInfo.ts +0 -0
- /package/src/{Quiz → GamePick}/MarketsPerSport.ts +0 -0
- /package/src/{Quiz → GamePick}/MarketsType.ts +0 -0
- /package/src/{Quiz → GamePick}/ScoreResultTypes.ts +0 -0
- /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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|