@smartico/public-api 0.0.252 → 0.0.254

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 (102) hide show
  1. package/.github/workflows/semgrep.yml +26 -0
  2. package/dist/Base/ClassId.d.ts +4 -0
  3. package/dist/Jackpots/GetJackpotEligibleGamesRequest.d.ts +4 -0
  4. package/dist/Jackpots/GetJackpotEligibleGamesResponse.d.ts +34 -0
  5. package/dist/Jackpots/GetJackpotWinnersRequest.d.ts +10 -0
  6. package/dist/Jackpots/GetJackpotWinnersResponse.d.ts +20 -0
  7. package/dist/Jackpots/index.d.ts +4 -0
  8. package/dist/Raffle/GetDrawRunResponse.d.ts +2 -0
  9. package/dist/Raffle/GetRaffleDrawRunsHistoryResponse.d.ts +2 -0
  10. package/dist/Raffle/GetRafflesResponse.d.ts +10 -0
  11. package/dist/Raffle/RaffleClaimPrizeResponse.d.ts +4 -0
  12. package/dist/Raffle/RaffleDraw.d.ts +2 -2
  13. package/dist/SmarticoAPI.d.ts +20 -5
  14. package/dist/WSAPI/WSAPI.d.ts +112 -8
  15. package/dist/WSAPI/WSAPITypes.d.ts +272 -0
  16. package/dist/index.js +635 -199
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.modern.mjs +379 -14
  19. package/dist/index.modern.mjs.map +1 -1
  20. package/docs/README.md +144 -0
  21. package/docs/classes/WSAPI.md +131 -12
  22. package/docs/enums/RaffleDrawInstanceState.md +25 -0
  23. package/docs/enums/RaffleDrawTypeExecution.md +27 -0
  24. package/docs/interfaces/GetJackpotEligibleGamesRequest.md +43 -0
  25. package/docs/interfaces/GetJackpotEligibleGamesResponse.md +63 -0
  26. package/docs/interfaces/GetJackpotWinnersRequest.md +91 -0
  27. package/docs/interfaces/GetJackpotWinnersResponse.md +73 -0
  28. package/docs/interfaces/JackpotEligibleGame.md +71 -0
  29. package/docs/interfaces/JackpotWinnerHistory.md +25 -0
  30. package/docs/interfaces/RaffleClaimPrizeResponse.md +3 -3
  31. package/docs/interfaces/RaffleDraw.md +2 -2
  32. package/docs/interfaces/TGetJackpotEligibleGamesResponse.md +7 -0
  33. package/docs/interfaces/TRaffle.md +101 -0
  34. package/docs/interfaces/TRaffleDraw.md +181 -0
  35. package/docs/interfaces/TRaffleDrawRun.md +125 -0
  36. package/docs/interfaces/TRafflePrize.md +159 -0
  37. package/docs/interfaces/TRafflePrizeWinner.md +50 -0
  38. package/docs/interfaces/TRaffleTicket.md +13 -0
  39. package/docs/interfaces/TransformedRaffleClaimPrizeResponse.md +17 -0
  40. package/package.json +1 -1
  41. package/src/Base/ClassId.ts +4 -0
  42. package/src/Jackpots/GetJackpotEligibleGamesRequest.ts +5 -0
  43. package/src/Jackpots/GetJackpotEligibleGamesResponse.ts +50 -0
  44. package/src/Jackpots/GetJackpotWinnersRequest.ts +12 -0
  45. package/src/Jackpots/GetJackpotWinnersResponse.ts +33 -0
  46. package/src/Jackpots/index.ts +4 -0
  47. package/src/Raffle/GetDrawRunResponse.ts +30 -0
  48. package/src/Raffle/GetRaffleDrawRunsHistoryResponse.ts +23 -0
  49. package/src/Raffle/GetRafflesResponse.ts +97 -0
  50. package/src/Raffle/RaffleClaimPrizeResponse.ts +16 -1
  51. package/src/Raffle/RaffleDraw.ts +2 -2
  52. package/src/SmarticoAPI.ts +61 -26
  53. package/src/WSAPI/WSAPI.ts +174 -9
  54. package/src/WSAPI/WSAPITypes.ts +307 -0
  55. package/dist/Quiz/MarketsAnswersType.d.ts +0 -22
  56. package/dist/Raffle/GetDrawResponse.d.ts +0 -5
  57. package/dist/SmarticoPublicAPI.d.ts +0 -23
  58. package/dist/Store/BuyShopItemErrorCode.d.ts +0 -10
  59. package/dist/Store/BuyShopItemRequest.d.ts +0 -4
  60. package/dist/Store/BuyShopItemResponse.d.ts +0 -4
  61. package/dist/Store/GetCategoriesShopResponse.d.ts +0 -5
  62. package/dist/Store/GetShopItemsResponse.d.ts +0 -5
  63. package/dist/Store/ShopCategory.d.ts +0 -5
  64. package/dist/Store/ShopCategoryPublicMeta.d.ts +0 -4
  65. package/dist/Store/ShopItem.d.ts +0 -9
  66. package/dist/Store/ShopItemPublicMeta.d.ts +0 -10
  67. package/dist/Store/ShopItemType.d.ts +0 -4
  68. package/dist/Store/StorItemPruchased.d.ts +0 -6
  69. package/dist/service/index.d.ts +0 -5
  70. package/dist/service/types/ErrorCodes.d.ts +0 -13
  71. package/dist/service/types/GRequest.d.ts +0 -16
  72. package/dist/service/types/GResponse.d.ts +0 -10
  73. package/dist/service/types/Game/GameAttemptType.d.ts +0 -6
  74. package/dist/service/types/Game/GameCanPlayType.d.ts +0 -10
  75. package/dist/service/types/Game/GameExternalStatus.d.ts +0 -6
  76. package/dist/service/types/Game/GameInfo.d.ts +0 -9
  77. package/dist/service/types/Game/GamePick.d.ts +0 -90
  78. package/dist/service/types/Game/GameUtil.d.ts +0 -7
  79. package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +0 -7
  80. package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +0 -7
  81. package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +0 -5
  82. package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +0 -6
  83. package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +0 -5
  84. package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +0 -34
  85. package/dist/service/types/SmarticoProto/PublicProperties.d.ts +0 -11
  86. package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +0 -12
  87. package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +0 -5
  88. package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +0 -5
  89. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +0 -5
  90. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +0 -15
  91. package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +0 -10
  92. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +0 -3
  93. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +0 -5
  94. package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +0 -11
  95. package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +0 -8
  96. package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +0 -13
  97. package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +0 -21
  98. package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +0 -31
  99. package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +0 -12
  100. package/dist/service/types/SmarticoProto/TranslationArea.d.ts +0 -9
  101. package/dist/service/types/User/UserInfo.d.ts +0 -10
  102. package/dist/util/Util.d.ts +0 -51
package/docs/README.md CHANGED
@@ -10,6 +10,8 @@
10
10
  - [MiniGamePrizeTypeName](enums/MiniGamePrizeTypeName.md)
11
11
  - [SAWSpinErrorCode](enums/SAWSpinErrorCode.md)
12
12
  - [AchievementAvailabilityStatus](enums/AchievementAvailabilityStatus.md)
13
+ - [RaffleDrawInstanceState](enums/RaffleDrawInstanceState.md)
14
+ - [RaffleDrawTypeExecution](enums/RaffleDrawTypeExecution.md)
13
15
  - [BuyStoreItemErrorCode](enums/BuyStoreItemErrorCode.md)
14
16
  - [TournamentRegistrationError](enums/TournamentRegistrationError.md)
15
17
  - [TournamentRegistrationStatusName](enums/TournamentRegistrationStatusName.md)
@@ -17,6 +19,13 @@
17
19
  ## Interfaces
18
20
 
19
21
  - [AchRelatedGame](interfaces/AchRelatedGame.md)
22
+ - [GetJackpotEligibleGamesRequest](interfaces/GetJackpotEligibleGamesRequest.md)
23
+ - [GetJackpotEligibleGamesResponse](interfaces/GetJackpotEligibleGamesResponse.md)
24
+ - [TGetJackpotEligibleGamesResponse](interfaces/TGetJackpotEligibleGamesResponse.md)
25
+ - [JackpotEligibleGame](interfaces/JackpotEligibleGame.md)
26
+ - [GetJackpotWinnersRequest](interfaces/GetJackpotWinnersRequest.md)
27
+ - [GetJackpotWinnersResponse](interfaces/GetJackpotWinnersResponse.md)
28
+ - [JackpotWinnerHistory](interfaces/JackpotWinnerHistory.md)
20
29
  - [GetJackpotsPotsRequest](interfaces/GetJackpotsPotsRequest.md)
21
30
  - [GetJackpotsPotsResponse](interfaces/GetJackpotsPotsResponse.md)
22
31
  - [GetJackpotsRequest](interfaces/GetJackpotsRequest.md)
@@ -76,6 +85,13 @@
76
85
  - [TBonus](interfaces/TBonus.md)
77
86
  - [TClaimBonusResult](interfaces/TClaimBonusResult.md)
78
87
  - [TSawHistory](interfaces/TSawHistory.md)
88
+ - [TRaffle](interfaces/TRaffle.md)
89
+ - [TRaffleTicket](interfaces/TRaffleTicket.md)
90
+ - [TRafflePrize](interfaces/TRafflePrize.md)
91
+ - [TRafflePrizeWinner](interfaces/TRafflePrizeWinner.md)
92
+ - [TRaffleDraw](interfaces/TRaffleDraw.md)
93
+ - [TRaffleDrawRun](interfaces/TRaffleDrawRun.md)
94
+ - [TransformedRaffleClaimPrizeResponse](interfaces/TransformedRaffleClaimPrizeResponse.md)
79
95
 
80
96
  ## General API
81
97
 
@@ -86,3 +102,131 @@
86
102
  ### TournamentRegistrationTypeName
87
103
 
88
104
  Ƭ **TournamentRegistrationTypeName**: ``"AUTO"`` \| ``"OPT_IN"`` \| ``"BUY_IN_POINTS"`` \| ``"MANUAL_APPROVAL"`` \| ``"REQUIRES_QUALIFICATION"`` \| ``"UNKNOWN"``
105
+
106
+ ## Functions
107
+
108
+ ### drawRunTransform
109
+
110
+ ▸ **drawRunTransform**(`res`): [`TRaffleDraw`](interfaces/TRaffleDraw.md)
111
+
112
+ #### Parameters
113
+
114
+ | Name | Type |
115
+ | :------ | :------ |
116
+ | `res` | [`GetDrawRunResponse`](interfaces/GetDrawRunResponse.md) |
117
+
118
+ #### Returns
119
+
120
+ [`TRaffleDraw`](interfaces/TRaffleDraw.md)
121
+
122
+ ___
123
+
124
+ ### drawRunHistoryTransform
125
+
126
+ ▸ **drawRunHistoryTransform**(`res`): [`TRaffleDrawRun`](interfaces/TRaffleDrawRun.md)[]
127
+
128
+ #### Parameters
129
+
130
+ | Name | Type |
131
+ | :------ | :------ |
132
+ | `res` | [`GetRaffleDrawRunsHistoryResponse`](interfaces/GetRaffleDrawRunsHistoryResponse.md) |
133
+
134
+ #### Returns
135
+
136
+ [`TRaffleDrawRun`](interfaces/TRaffleDrawRun.md)[]
137
+
138
+ ___
139
+
140
+ ### ticketsTransform
141
+
142
+ ▸ **ticketsTransform**(`items`): [`TRaffleTicket`](interfaces/TRaffleTicket.md)[]
143
+
144
+ #### Parameters
145
+
146
+ | Name | Type |
147
+ | :------ | :------ |
148
+ | `items` | [`RaffleTicket`](interfaces/RaffleTicket.md)[] |
149
+
150
+ #### Returns
151
+
152
+ [`TRaffleTicket`](interfaces/TRaffleTicket.md)[]
153
+
154
+ ___
155
+
156
+ ### winnersTransform
157
+
158
+ ▸ **winnersTransform**(`items`): [`TRafflePrizeWinner`](interfaces/TRafflePrizeWinner.md)[]
159
+
160
+ #### Parameters
161
+
162
+ | Name | Type |
163
+ | :------ | :------ |
164
+ | `items` | [`RafflePrizeWinner`](interfaces/RafflePrizeWinner.md)[] |
165
+
166
+ #### Returns
167
+
168
+ [`TRafflePrizeWinner`](interfaces/TRafflePrizeWinner.md)[]
169
+
170
+ ___
171
+
172
+ ### prizeTransform
173
+
174
+ ▸ **prizeTransform**(`items`): [`TRafflePrize`](interfaces/TRafflePrize.md)[]
175
+
176
+ #### Parameters
177
+
178
+ | Name | Type |
179
+ | :------ | :------ |
180
+ | `items` | [`RafflePrize`](interfaces/RafflePrize.md)[] |
181
+
182
+ #### Returns
183
+
184
+ [`TRafflePrize`](interfaces/TRafflePrize.md)[]
185
+
186
+ ___
187
+
188
+ ### drawTransform
189
+
190
+ ▸ **drawTransform**(`items`): [`TRaffleDraw`](interfaces/TRaffleDraw.md)[]
191
+
192
+ #### Parameters
193
+
194
+ | Name | Type |
195
+ | :------ | :------ |
196
+ | `items` | [`RaffleDraw`](interfaces/RaffleDraw.md)[] |
197
+
198
+ #### Returns
199
+
200
+ [`TRaffleDraw`](interfaces/TRaffleDraw.md)[]
201
+
202
+ ___
203
+
204
+ ### raffleTransform
205
+
206
+ ▸ **raffleTransform**(`items`): [`TRaffle`](interfaces/TRaffle.md)[]
207
+
208
+ #### Parameters
209
+
210
+ | Name | Type |
211
+ | :------ | :------ |
212
+ | `items` | [`Raffle`](interfaces/Raffle.md)[] |
213
+
214
+ #### Returns
215
+
216
+ [`TRaffle`](interfaces/TRaffle.md)[]
217
+
218
+ ___
219
+
220
+ ### raffleClaimPrizeResponseTransform
221
+
222
+ ▸ **raffleClaimPrizeResponseTransform**(`info`): [`TransformedRaffleClaimPrizeResponse`](interfaces/TransformedRaffleClaimPrizeResponse.md)
223
+
224
+ #### Parameters
225
+
226
+ | Name | Type |
227
+ | :------ | :------ |
228
+ | `info` | [`RaffleClaimPrizeResponse`](interfaces/RaffleClaimPrizeResponse.md) |
229
+
230
+ #### Returns
231
+
232
+ [`TransformedRaffleClaimPrizeResponse`](interfaces/TransformedRaffleClaimPrizeResponse.md)
@@ -957,6 +957,67 @@ _smartico.api.jackpotOptOut({ jp_template_id: 123 }).then((result) => {
957
957
 
958
958
  ___
959
959
 
960
+ ### getJackpotWinners
961
+
962
+ ▸ **getJackpotWinners**(`«destructured»`): `Promise`\<[`JackpotWinnerHistory`](../interfaces/JackpotWinnerHistory.md)[]\>
963
+
964
+ Returns the winners of the jackpot with the specified jp_template_id.
965
+
966
+ **Example**:
967
+ ```
968
+ _smartico.api.getJackpotWinners({
969
+ jp_template_id: 123,
970
+ }).then((result) => {
971
+ console.log(result);
972
+ });
973
+ ```
974
+
975
+ **Visitor mode: not supported**
976
+
977
+ #### Parameters
978
+
979
+ | Name | Type |
980
+ | :------ | :------ |
981
+ | `«destructured»` | `Object` |
982
+ | › `limit?` | `number` |
983
+ | › `offset?` | `number` |
984
+ | › `jp_template_id?` | `number` |
985
+
986
+ #### Returns
987
+
988
+ `Promise`\<[`JackpotWinnerHistory`](../interfaces/JackpotWinnerHistory.md)[]\>
989
+
990
+ ___
991
+
992
+ ### getJackpotEligibleGames
993
+
994
+ ▸ **getJackpotEligibleGames**(`«destructured»`): `Promise`\<[`TGetJackpotEligibleGamesResponse`](../interfaces/TGetJackpotEligibleGamesResponse.md)\>
995
+
996
+ Returns the eligible games for the jackpot with the specified jp_template_id.
997
+
998
+ **Example**:
999
+ ```
1000
+ _smartico.api.getJackpotEligibleGames({ jp_template_id: 123 }).then((result) => {
1001
+ console.log(result);
1002
+ });
1003
+ ```
1004
+
1005
+ **Visitor mode: not supported**
1006
+
1007
+ #### Parameters
1008
+
1009
+ | Name | Type |
1010
+ | :------ | :------ |
1011
+ | `«destructured»` | `Object` |
1012
+ | › `jp_template_id` | `number` |
1013
+ | › `onUpdate?` | () => `void` |
1014
+
1015
+ #### Returns
1016
+
1017
+ `Promise`\<[`TGetJackpotEligibleGamesResponse`](../interfaces/TGetJackpotEligibleGamesResponse.md)\>
1018
+
1019
+ ___
1020
+
960
1021
  ### getRelatedItemsForGame
961
1022
 
962
1023
  ▸ **getRelatedItemsForGame**(`related_game_id`): `Promise`\<`GetRelatedAchTourResponse`\>
@@ -992,56 +1053,114 @@ ___
992
1053
 
993
1054
  ### getRaffles
994
1055
 
995
- ▸ **getRaffles**(): `Promise`\<[`GetRafflesResponse`](../interfaces/GetRafflesResponse.md)\>
1056
+ ▸ **getRaffles**(`«destructured»?`): `Promise`\<[`TRaffle`](../interfaces/TRaffle.md)[]\>
1057
+
1058
+ Returns the list of Raffles available for user
1059
+ The returned list of Raffles is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getRaffles with a new onUpdate callback, the old one will be overwritten by the new one.
1060
+ The onUpdate callback will be called on claiming prize. Updated Raffles will be passed to onUpdate callback.
1061
+
1062
+ **Example**:
1063
+ ```
1064
+ _smartico.api.getRaffles().then((result) => {
1065
+ console.log(result);
1066
+ });
1067
+ ```
1068
+
1069
+ **Visitor mode: not supported**
1070
+
1071
+ #### Parameters
1072
+
1073
+ | Name | Type |
1074
+ | :------ | :------ |
1075
+ | `«destructured»` | `Object` |
1076
+ | › `onUpdate?` | (`data`: [`TRaffle`](../interfaces/TRaffle.md)[]) => `void` |
996
1077
 
997
1078
  #### Returns
998
1079
 
999
- `Promise`\<[`GetRafflesResponse`](../interfaces/GetRafflesResponse.md)\>
1080
+ `Promise`\<[`TRaffle`](../interfaces/TRaffle.md)[]\>
1000
1081
 
1001
1082
  ___
1002
1083
 
1003
- ### getDrawRun
1084
+ ### getRaffleDrawRun
1085
+
1086
+ ▸ **getRaffleDrawRun**(`props`): `Promise`\<[`TRaffleDraw`](../interfaces/TRaffleDraw.md)\>
1087
+
1088
+ Returns draw run for provided raffle_id and run_id
1089
+
1090
+ **Example**:
1091
+ ```
1092
+ _smartico.api.getRaffleDrawRun({raffle_id:156, run_id: 145}).then((result) => {
1093
+ console.log(result);
1094
+ });
1095
+ ```
1004
1096
 
1005
- **getDrawRun**(`payload`): `Promise`\<[`GetDrawRunResponse`](../interfaces/GetDrawRunResponse.md)\>
1097
+ **Visitor mode: not supported**
1006
1098
 
1007
1099
  #### Parameters
1008
1100
 
1009
1101
  | Name | Type |
1010
1102
  | :------ | :------ |
1011
- | `payload` | [`GetDrawRunRequest`](../interfaces/GetDrawRunRequest.md) |
1103
+ | `props` | `Object` |
1104
+ | `props.raffle_id` | `number` |
1105
+ | `props.run_id` | `number` |
1012
1106
 
1013
1107
  #### Returns
1014
1108
 
1015
- `Promise`\<[`GetDrawRunResponse`](../interfaces/GetDrawRunResponse.md)\>
1109
+ `Promise`\<[`TRaffleDraw`](../interfaces/TRaffleDraw.md)\>
1016
1110
 
1017
1111
  ___
1018
1112
 
1019
1113
  ### getRaffleDrawRunsHistory
1020
1114
 
1021
- ▸ **getRaffleDrawRunsHistory**(`payload`): `Promise`\<[`GetRaffleDrawRunsHistoryResponse`](../interfaces/GetRaffleDrawRunsHistoryResponse.md)\>
1115
+ ▸ **getRaffleDrawRunsHistory**(`props`): `Promise`\<[`TRaffleDrawRun`](../interfaces/TRaffleDrawRun.md)[]\>
1116
+
1117
+ Returns history of draw runs for the provided raffle_id and draw_id, if the draw_id is not provided will return history of all the draws for the provided raffle_id
1118
+
1119
+ **Example**:
1120
+ ```
1121
+ _smartico.api.getRaffleDrawRunHistory({raffle_id:156, draw_id: 432}).then((result) => {
1122
+ console.log(result);
1123
+ });
1124
+ ```
1125
+
1126
+ **Visitor mode: not supported**
1022
1127
 
1023
1128
  #### Parameters
1024
1129
 
1025
1130
  | Name | Type |
1026
1131
  | :------ | :------ |
1027
- | `payload` | [`GetRaffleDrawRunsHistoryRequest`](../interfaces/GetRaffleDrawRunsHistoryRequest.md) |
1132
+ | `props` | `Object` |
1133
+ | `props.raffle_id` | `number` |
1134
+ | `props.draw_id?` | `number` |
1028
1135
 
1029
1136
  #### Returns
1030
1137
 
1031
- `Promise`\<[`GetRaffleDrawRunsHistoryResponse`](../interfaces/GetRaffleDrawRunsHistoryResponse.md)\>
1138
+ `Promise`\<[`TRaffleDrawRun`](../interfaces/TRaffleDrawRun.md)[]\>
1032
1139
 
1033
1140
  ___
1034
1141
 
1035
1142
  ### claimRafflePrize
1036
1143
 
1037
- ▸ **claimRafflePrize**(`payload`): `Promise`\<[`RaffleClaimPrizeResponse`](../interfaces/RaffleClaimPrizeResponse.md)\>
1144
+ ▸ **claimRafflePrize**(`props`): `Promise`\<[`TransformedRaffleClaimPrizeResponse`](../interfaces/TransformedRaffleClaimPrizeResponse.md)\>
1145
+
1146
+ Returns error code, and error Message after calling the function, error message 0 - means that the request was successful
1147
+
1148
+ **Example**:
1149
+ ```
1150
+ _smartico.api.claimRafflePrize({won_id:251}).then((result) => {
1151
+ console.log(result);
1152
+ });
1153
+ ```
1154
+
1155
+ **Visitor mode: not supported**
1038
1156
 
1039
1157
  #### Parameters
1040
1158
 
1041
1159
  | Name | Type |
1042
1160
  | :------ | :------ |
1043
- | `payload` | [`RaffleClaimPrizeRequest`](../interfaces/RaffleClaimPrizeRequest.md) |
1161
+ | `props` | `Object` |
1162
+ | `props.won_id` | `number` |
1044
1163
 
1045
1164
  #### Returns
1046
1165
 
1047
- `Promise`\<[`RaffleClaimPrizeResponse`](../interfaces/RaffleClaimPrizeResponse.md)\>
1166
+ `Promise`\<[`TransformedRaffleClaimPrizeResponse`](../interfaces/TransformedRaffleClaimPrizeResponse.md)\>
@@ -0,0 +1,25 @@
1
+ # Enumeration: RaffleDrawInstanceState
2
+
3
+ ## Enumeration Members
4
+
5
+ ### Open
6
+
7
+ • **Open** = ``1``
8
+
9
+ Draw is open for the tickets collection
10
+
11
+ ___
12
+
13
+ ### WinnerSelection
14
+
15
+ • **WinnerSelection** = ``2``
16
+
17
+ Winner selection is in progress
18
+
19
+ ___
20
+
21
+ ### Executed
22
+
23
+ • **Executed** = ``3``
24
+
25
+ Draw is executed and the winners are selected
@@ -0,0 +1,27 @@
1
+ # Enumeration: RaffleDrawTypeExecution
2
+
3
+ ## Enumeration Members
4
+
5
+ ### ExecDate
6
+
7
+ • **ExecDate** = ``0``
8
+
9
+ Draw is executed only once
10
+
11
+ ___
12
+
13
+ ### Recurring
14
+
15
+ • **Recurring** = ``1``
16
+
17
+ Draw is executed on a recurring basis
18
+
19
+ ___
20
+
21
+ ### Grand
22
+
23
+ • **Grand** = ``2``
24
+
25
+ Draw is executed once and is marked as grand.
26
+ This means it is a special or significant draw,
27
+ often with larger prizes or more importance.
@@ -0,0 +1,43 @@
1
+ # Interface: GetJackpotEligibleGamesRequest
2
+
3
+ ## Hierarchy
4
+
5
+ - `ProtocolMessage`
6
+
7
+ ↳ **`GetJackpotEligibleGamesRequest`**
8
+
9
+ ## Properties
10
+
11
+ ### cid
12
+
13
+ • **cid**: `number`
14
+
15
+ #### Inherited from
16
+
17
+ ProtocolMessage.cid
18
+
19
+ ___
20
+
21
+ ### ts
22
+
23
+ • `Optional` **ts**: `number`
24
+
25
+ #### Inherited from
26
+
27
+ ProtocolMessage.ts
28
+
29
+ ___
30
+
31
+ ### uuid
32
+
33
+ • `Optional` **uuid**: `string`
34
+
35
+ #### Inherited from
36
+
37
+ ProtocolMessage.uuid
38
+
39
+ ___
40
+
41
+ ### jp\_template\_id
42
+
43
+ • **jp\_template\_id**: `number`
@@ -0,0 +1,63 @@
1
+ # Interface: GetJackpotEligibleGamesResponse
2
+
3
+ ## Hierarchy
4
+
5
+ - `ProtocolResponse`
6
+
7
+ ↳ **`GetJackpotEligibleGamesResponse`**
8
+
9
+ ## Properties
10
+
11
+ ### cid
12
+
13
+ • **cid**: `number`
14
+
15
+ #### Inherited from
16
+
17
+ ProtocolResponse.cid
18
+
19
+ ___
20
+
21
+ ### ts
22
+
23
+ • `Optional` **ts**: `number`
24
+
25
+ #### Inherited from
26
+
27
+ ProtocolResponse.ts
28
+
29
+ ___
30
+
31
+ ### uuid
32
+
33
+ • `Optional` **uuid**: `string`
34
+
35
+ #### Inherited from
36
+
37
+ ProtocolResponse.uuid
38
+
39
+ ___
40
+
41
+ ### errCode
42
+
43
+ • `Optional` **errCode**: `number`
44
+
45
+ #### Inherited from
46
+
47
+ ProtocolResponse.errCode
48
+
49
+ ___
50
+
51
+ ### errMsg
52
+
53
+ • `Optional` **errMsg**: `string`
54
+
55
+ #### Inherited from
56
+
57
+ ProtocolResponse.errMsg
58
+
59
+ ___
60
+
61
+ ### eligible\_games
62
+
63
+ • **eligible\_games**: [`AchRelatedGame`](AchRelatedGame.md)[]
@@ -0,0 +1,91 @@
1
+ # Interface: GetJackpotWinnersRequest
2
+
3
+ ## Hierarchy
4
+
5
+ - `ProtocolRequest`
6
+
7
+ ↳ **`GetJackpotWinnersRequest`**
8
+
9
+ ## Properties
10
+
11
+ ### cid
12
+
13
+ • **cid**: `number`
14
+
15
+ #### Inherited from
16
+
17
+ ProtocolRequest.cid
18
+
19
+ ___
20
+
21
+ ### ts
22
+
23
+ • `Optional` **ts**: `number`
24
+
25
+ #### Inherited from
26
+
27
+ ProtocolRequest.ts
28
+
29
+ ___
30
+
31
+ ### uuid
32
+
33
+ • `Optional` **uuid**: `string`
34
+
35
+ #### Inherited from
36
+
37
+ ProtocolRequest.uuid
38
+
39
+ ___
40
+
41
+ ### api\_key
42
+
43
+ • **api\_key**: `string`
44
+
45
+ #### Inherited from
46
+
47
+ ProtocolRequest.api\_key
48
+
49
+ ___
50
+
51
+ ### brand\_key
52
+
53
+ • **brand\_key**: `string`
54
+
55
+ #### Inherited from
56
+
57
+ ProtocolRequest.brand\_key
58
+
59
+ ___
60
+
61
+ ### ext\_user\_id
62
+
63
+ • **ext\_user\_id**: `string`
64
+
65
+ #### Inherited from
66
+
67
+ ProtocolRequest.ext\_user\_id
68
+
69
+ ___
70
+
71
+ ### jp\_template\_id
72
+
73
+ • **jp\_template\_id**: `number`
74
+
75
+ The ID of the jackpot template
76
+
77
+ ___
78
+
79
+ ### limit
80
+
81
+ • **limit**: `number`
82
+
83
+ The number of winners to return
84
+
85
+ ___
86
+
87
+ ### offset
88
+
89
+ • **offset**: `number`
90
+
91
+ The offset of the winners to return
@@ -0,0 +1,73 @@
1
+ # Interface: GetJackpotWinnersResponse
2
+
3
+ ## Hierarchy
4
+
5
+ - `ProtocolResponse`
6
+
7
+ ↳ **`GetJackpotWinnersResponse`**
8
+
9
+ ## Properties
10
+
11
+ ### cid
12
+
13
+ • **cid**: `number`
14
+
15
+ #### Inherited from
16
+
17
+ ProtocolResponse.cid
18
+
19
+ ___
20
+
21
+ ### ts
22
+
23
+ • `Optional` **ts**: `number`
24
+
25
+ #### Inherited from
26
+
27
+ ProtocolResponse.ts
28
+
29
+ ___
30
+
31
+ ### uuid
32
+
33
+ • `Optional` **uuid**: `string`
34
+
35
+ #### Inherited from
36
+
37
+ ProtocolResponse.uuid
38
+
39
+ ___
40
+
41
+ ### errCode
42
+
43
+ • `Optional` **errCode**: `number`
44
+
45
+ #### Inherited from
46
+
47
+ ProtocolResponse.errCode
48
+
49
+ ___
50
+
51
+ ### errMsg
52
+
53
+ • `Optional` **errMsg**: `string`
54
+
55
+ #### Inherited from
56
+
57
+ ProtocolResponse.errMsg
58
+
59
+ ___
60
+
61
+ ### winners
62
+
63
+ • **winners**: [`JackpotWinnerHistory`](JackpotWinnerHistory.md)[]
64
+
65
+ The list of jackpot winners
66
+
67
+ ___
68
+
69
+ ### has\_more
70
+
71
+ • **has\_more**: `boolean`
72
+
73
+ Whether there are more winners to fetch