@smartico/public-api 0.0.284 → 0.0.285

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 (60) hide show
  1. package/dist/MiniGames/SAWGameDifficulty.d.ts +12 -0
  2. package/dist/MiniGames/SAWTemplateUI.d.ts +2 -0
  3. package/dist/WSAPI/WSAPI.d.ts +37 -8
  4. package/dist/index.js +37 -8
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.modern.mjs +37 -8
  7. package/dist/index.modern.mjs.map +1 -1
  8. package/docs/classes/WSAPI.md +36 -8
  9. package/package.json +1 -1
  10. package/src/MiniGames/SAWGameDifficulty.ts +22 -0
  11. package/src/MiniGames/SAWTemplateUI.ts +2 -0
  12. package/src/WSAPI/WSAPI.ts +38 -8
  13. package/dist/Quiz/MarketsAnswersType.d.ts +0 -22
  14. package/dist/Raffle/GetDrawResponse.d.ts +0 -5
  15. package/dist/SmarticoPublicAPI.d.ts +0 -23
  16. package/dist/Store/BuyShopItemErrorCode.d.ts +0 -10
  17. package/dist/Store/BuyShopItemRequest.d.ts +0 -4
  18. package/dist/Store/BuyShopItemResponse.d.ts +0 -4
  19. package/dist/Store/GetCategoriesShopResponse.d.ts +0 -5
  20. package/dist/Store/GetShopItemsResponse.d.ts +0 -5
  21. package/dist/Store/ShopCategory.d.ts +0 -5
  22. package/dist/Store/ShopCategoryPublicMeta.d.ts +0 -4
  23. package/dist/Store/ShopItem.d.ts +0 -9
  24. package/dist/Store/ShopItemPublicMeta.d.ts +0 -10
  25. package/dist/Store/ShopItemType.d.ts +0 -4
  26. package/dist/Store/StorItemPruchased.d.ts +0 -6
  27. package/dist/service/index.d.ts +0 -5
  28. package/dist/service/types/ErrorCodes.d.ts +0 -13
  29. package/dist/service/types/GRequest.d.ts +0 -16
  30. package/dist/service/types/GResponse.d.ts +0 -10
  31. package/dist/service/types/Game/GameAttemptType.d.ts +0 -6
  32. package/dist/service/types/Game/GameCanPlayType.d.ts +0 -10
  33. package/dist/service/types/Game/GameExternalStatus.d.ts +0 -6
  34. package/dist/service/types/Game/GameInfo.d.ts +0 -9
  35. package/dist/service/types/Game/GamePick.d.ts +0 -90
  36. package/dist/service/types/Game/GameUtil.d.ts +0 -7
  37. package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +0 -7
  38. package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +0 -7
  39. package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +0 -5
  40. package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +0 -6
  41. package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +0 -5
  42. package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +0 -34
  43. package/dist/service/types/SmarticoProto/PublicProperties.d.ts +0 -11
  44. package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +0 -12
  45. package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +0 -5
  46. package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +0 -5
  47. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +0 -5
  48. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +0 -15
  49. package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +0 -10
  50. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +0 -3
  51. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +0 -5
  52. package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +0 -11
  53. package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +0 -8
  54. package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +0 -13
  55. package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +0 -21
  56. package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +0 -31
  57. package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +0 -12
  58. package/dist/service/types/SmarticoProto/TranslationArea.d.ts +0 -9
  59. package/dist/service/types/User/UserInfo.d.ts +0 -10
  60. package/dist/util/Util.d.ts +0 -51
@@ -1084,13 +1084,20 @@ The returned list of Raffles is cached for 30 seconds. But you can pass the onUp
1084
1084
  The onUpdate callback will be called on claiming prize. Updated Raffles will be passed to onUpdate callback.
1085
1085
 
1086
1086
  **Example**:
1087
+
1087
1088
  ```
1088
1089
  _smartico.api.getRaffles().then((result) => {
1089
1090
  console.log(result);
1090
1091
  });
1091
1092
  ```
1092
1093
 
1093
- **Visitor mode: not supported**
1094
+ **Example in the Visitor mode**:
1095
+
1096
+ ```
1097
+ _smartico.vapi('EN').getRaffles().then((result) => {
1098
+ console.log(result);
1099
+ });
1100
+ ```
1094
1101
 
1095
1102
  #### Parameters
1096
1103
 
@@ -1112,13 +1119,20 @@ ___
1112
1119
  Returns draw run for provided raffle_id and run_id
1113
1120
 
1114
1121
  **Example**:
1115
- ```
1116
- _smartico.api.getRaffleDrawRun({raffle_id:156, run_id: 145}).then((result) => {
1122
+
1123
+ ```javascript
1124
+ _smartico.api.getRaffleDrawRun({raffle_id: 156, run_id: 145}).then((result) => {
1117
1125
  console.log(result);
1118
1126
  });
1119
1127
  ```
1120
1128
 
1121
- **Visitor mode: not supported**
1129
+ **Example in the Visitor mode**:
1130
+
1131
+ ```javascript
1132
+ _smartico.vapi('EN').getRaffleDrawRun({ raffle_id: 156, run_id: 145 }).then((result) => {
1133
+ console.log(result);
1134
+ });
1135
+ ```
1122
1136
 
1123
1137
  #### Parameters
1124
1138
 
@@ -1141,13 +1155,20 @@ ___
1141
1155
  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
1142
1156
 
1143
1157
  **Example**:
1144
- ```
1158
+
1159
+ ```javascript
1145
1160
  _smartico.api.getRaffleDrawRunHistory({raffle_id:156, draw_id: 432}).then((result) => {
1146
1161
  console.log(result);
1147
1162
  });
1148
1163
  ```
1149
1164
 
1150
- **Visitor mode: not supported**
1165
+ **Example in the Visitor mode**:
1166
+
1167
+ ```javascript
1168
+ _smartico.vapi('EN').getRaffleDrawRunHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
1169
+ console.log(result);
1170
+ });
1171
+ ```
1151
1172
 
1152
1173
  #### Parameters
1153
1174
 
@@ -1170,13 +1191,20 @@ ___
1170
1191
  Returns error code, and error Message after calling the function, error message 0 - means that the request was successful
1171
1192
 
1172
1193
  **Example**:
1173
- ```
1194
+
1195
+ ```javascript
1174
1196
  _smartico.api.claimRafflePrize({won_id:251}).then((result) => {
1175
1197
  console.log(result);
1176
1198
  });
1177
1199
  ```
1178
1200
 
1179
- **Visitor mode: not supported**
1201
+ **Example in the Visitor mode**:
1202
+
1203
+ ```javascript
1204
+ _smartico.vapi('EN').claimRafflePrize({ won_id: 251 }).then((result) => {
1205
+ console.log(result);
1206
+ });
1207
+ ```
1180
1208
 
1181
1209
  #### Parameters
1182
1210
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.284",
3
+ "version": "0.0.285",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,22 @@
1
+ export enum SAWGameDifficultyType {
2
+ EASY = 1,
3
+ MEDIUM = 2,
4
+ HARD = 3,
5
+ }
6
+
7
+ export enum SAWGameDifficultyTypeName {
8
+ EASY = 'easy',
9
+ MEDIUM = 'medium',
10
+ HARD = 'hard',
11
+ }
12
+
13
+ /** @hidden */
14
+ export const SawGameDifficultyTypeNamed = (type: SAWGameDifficultyType): SAWGameDifficultyTypeName => {
15
+ return (
16
+ {
17
+ [SAWGameDifficultyType.EASY]: SAWGameDifficultyTypeName.EASY,
18
+ [SAWGameDifficultyType.MEDIUM]: SAWGameDifficultyTypeName.MEDIUM,
19
+ [SAWGameDifficultyType.HARD]: SAWGameDifficultyTypeName.HARD,
20
+ }[type]
21
+ );
22
+ };
@@ -1,4 +1,5 @@
1
1
  import { SAWAskForUsername } from './SAWAskForUsername';
2
+ import { SAWGameDifficultyType } from './SAWGameDifficulty';
2
3
  import { SAWGameLayout } from './SAWGameLayout';
3
4
  import { SAWWheelLayout } from './SAWWheelLayout';
4
5
 
@@ -63,4 +64,5 @@ export interface SAWTemplateUI {
63
64
 
64
65
  wheel_layout?: SAWWheelLayout;
65
66
  background_music_volume?: number;
67
+ game_difficulty: SAWGameDifficultyType;
66
68
  }
@@ -1166,13 +1166,20 @@ export class WSAPI {
1166
1166
  * The onUpdate callback will be called on claiming prize. Updated Raffles will be passed to onUpdate callback.
1167
1167
  *
1168
1168
  * **Example**:
1169
+ *
1169
1170
  * ```
1170
1171
  * _smartico.api.getRaffles().then((result) => {
1171
1172
  * console.log(result);
1172
1173
  * });
1173
1174
  * ```
1174
1175
  *
1175
- * **Visitor mode: not supported**
1176
+ * **Example in the Visitor mode**:
1177
+ *
1178
+ * ```
1179
+ * _smartico.vapi('EN').getRaffles().then((result) => {
1180
+ * console.log(result);
1181
+ * });
1182
+ * ```
1176
1183
  *
1177
1184
  */
1178
1185
 
@@ -1189,13 +1196,21 @@ export class WSAPI {
1189
1196
  *
1190
1197
  *
1191
1198
  * **Example**:
1192
- * ```
1193
- * _smartico.api.getRaffleDrawRun({raffle_id:156, run_id: 145}).then((result) => {
1199
+ *
1200
+ * ```javascript
1201
+ * _smartico.api.getRaffleDrawRun({raffle_id: 156, run_id: 145}).then((result) => {
1194
1202
  * console.log(result);
1195
1203
  * });
1196
1204
  * ```
1197
1205
  *
1198
- * **Visitor mode: not supported**
1206
+ * **Example in the Visitor mode**:
1207
+ *
1208
+ *
1209
+ * ```javascript
1210
+ * _smartico.vapi('EN').getRaffleDrawRun({ raffle_id: 156, run_id: 145 }).then((result) => {
1211
+ * console.log(result);
1212
+ * });
1213
+ * ```
1199
1214
  *
1200
1215
  */
1201
1216
 
@@ -1214,13 +1229,20 @@ export class WSAPI {
1214
1229
  *
1215
1230
  *
1216
1231
  * **Example**:
1217
- * ```
1232
+ *
1233
+ * ```javascript
1218
1234
  * _smartico.api.getRaffleDrawRunHistory({raffle_id:156, draw_id: 432}).then((result) => {
1219
1235
  * console.log(result);
1220
1236
  * });
1221
1237
  * ```
1222
1238
  *
1223
- * **Visitor mode: not supported**
1239
+ * **Example in the Visitor mode**:
1240
+ *
1241
+ * ```javascript
1242
+ * _smartico.vapi('EN').getRaffleDrawRunHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
1243
+ * console.log(result);
1244
+ * });
1245
+ * ```
1224
1246
  *
1225
1247
  */
1226
1248
 
@@ -1239,19 +1261,27 @@ export class WSAPI {
1239
1261
  *
1240
1262
  *
1241
1263
  * **Example**:
1242
- * ```
1264
+ *
1265
+ * ```javascript
1243
1266
  * _smartico.api.claimRafflePrize({won_id:251}).then((result) => {
1244
1267
  * console.log(result);
1245
1268
  * });
1246
1269
  * ```
1247
1270
  *
1248
- * **Visitor mode: not supported**
1271
+ * **Example in the Visitor mode**:
1272
+ *
1273
+ * ```javascript
1274
+ * _smartico.vapi('EN').claimRafflePrize({ won_id: 251 }).then((result) => {
1275
+ * console.log(result);
1276
+ * });
1277
+ * ```
1249
1278
  *
1250
1279
  */
1251
1280
  public async claimRafflePrize(props: { won_id: number }): Promise<TransformedRaffleClaimPrizeResponse> {
1252
1281
  if (!props.won_id) {
1253
1282
  throw new Error('won_id is required');
1254
1283
  }
1284
+
1255
1285
  const res = await this.api.claimRafflePrize(null, { won_id: props.won_id });
1256
1286
  return raffleClaimPrizeResponseTransform(res);
1257
1287
  }
@@ -1,22 +0,0 @@
1
- export declare enum MarketsValueType {
2
- HomeTeam = "1",
3
- AwayTeam = "2",
4
- Draw = "x",
5
- HomeTeamHomeTeam = "1/1",
6
- HomeTeamDraw = "1/x",
7
- HomeTeamAwayTeam = "1/2",
8
- DrawHomeTeam = "x/1",
9
- DrawDraw = "x/x",
10
- DrawAwayTeam = "x/2",
11
- AwayTeamHomeTeam = "2/1",
12
- AwayTeamDraw = "2/x",
13
- AwayTeamAwayTeam = "2/2",
14
- Yes = "yes",
15
- No = "no",
16
- Odd = "odd",
17
- Even = "even",
18
- HomeOdd = "1/odd",
19
- HomeEven = "1/even",
20
- AwayOdd = "2/odd",
21
- AwayEven = "2/even"
22
- }
@@ -1,5 +0,0 @@
1
- import { ProtocolResponse } from '../Base/ProtocolResponse';
2
- import { RaffleDraw } from './RaffleDraw';
3
- export interface GetDrawResponse extends ProtocolResponse {
4
- draw: RaffleDraw;
5
- }
@@ -1,23 +0,0 @@
1
- import { ClassId } from "./Base/ClassId";
2
- import { SAWGetTemplatesResponse } from './MiniGames/SAWGetTemplatesResponse';
3
- import { SAWTemplate } from './MiniGames/SAWTemplate';
4
- import { ILogger } from './ILogger';
5
- interface IOptions {
6
- logger?: ILogger;
7
- logCIDs?: ClassId[];
8
- logHTTPTiming?: boolean;
9
- }
10
- declare class SmarticoPublicApi {
11
- private label_api_key;
12
- private brand_api_key;
13
- private publicUrl;
14
- private logger;
15
- private logCIDs;
16
- private logHTTPTiming;
17
- constructor(label_api_key: string, brand_api_key: string, options?: IOptions);
18
- private send;
19
- private buildMessage;
20
- miniGamesGetTemplates(user_ext_id: string): Promise<SAWGetTemplatesResponse>;
21
- miniGamesFormatTemplatesForWidget(templates: SAWTemplate[], pointsBalance: number): any[];
22
- }
23
- export { SmarticoPublicApi };
@@ -1,10 +0,0 @@
1
- export declare enum BuyShopItemErrorCode {
2
- FAILED_TO_BUY_SHOP_ITEM = 121,
3
- SHOP_NO_BALANCE = 11000,
4
- SHOP_WRONG_LABEL = 11001,
5
- SHOP_FAILED_TO_BUY_BONUS = 11002,
6
- SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION = 11003,
7
- SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION_PURSHASE = 11004,
8
- SHOP_FAILED_TO_BUY_MATCHING_BONUS = 11005,
9
- SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006
10
- }
@@ -1,4 +0,0 @@
1
- import { ProtocolMessage } from "../Base/ProtocolMessage";
2
- export interface BuyShopItemRequest extends ProtocolMessage {
3
- itemId: number;
4
- }
@@ -1,4 +0,0 @@
1
- import { ProtocolResponse } from "../Base/ProtocolResponse";
2
- export interface BuyShopItemResponse extends ProtocolResponse {
3
- success?: boolean;
4
- }
@@ -1,5 +0,0 @@
1
- import { ProtocolResponse } from "../Base/ProtocolResponse";
2
- import { ShopCategory } from "./ShopCategory";
3
- export interface GetCategoriesShopResponse extends ProtocolResponse {
4
- categories: ShopCategory[];
5
- }
@@ -1,5 +0,0 @@
1
- import { ProtocolResponse } from "../Base/ProtocolResponse";
2
- import { ShopItem } from "./ShopItem";
3
- export interface GetShopItemsResponse extends ProtocolResponse {
4
- items: ShopItem[];
5
- }
@@ -1,5 +0,0 @@
1
- import { ShopCategoryPublicMeta } from "./ShopCategoryPublicMeta";
2
- export interface ShopCategory {
3
- id?: number;
4
- publicMeta?: ShopCategoryPublicMeta;
5
- }
@@ -1,4 +0,0 @@
1
- export interface ShopCategoryPublicMeta {
2
- name?: string;
3
- order?: number;
4
- }
@@ -1,9 +0,0 @@
1
- import { ShopItemPublicMeta } from "./ShopItemPublicMeta";
2
- import { ShopItemType } from "./ShopItemType";
3
- export interface ShopItem {
4
- id: number;
5
- itemTypeId: ShopItemType;
6
- itemPublicMeta: ShopItemPublicMeta;
7
- categoryIds?: number[];
8
- canBuy?: boolean;
9
- }
@@ -1,10 +0,0 @@
1
- export interface ShopItemPublicMeta {
2
- price: string;
3
- image_url: string;
4
- name: string;
5
- description: string;
6
- label_tag: string;
7
- limit_message: string;
8
- priority: number;
9
- related_items: number[];
10
- }
@@ -1,4 +0,0 @@
1
- export declare enum ShopItemType {
2
- Bonus = 1,
3
- Manual = 2
4
- }
@@ -1,6 +0,0 @@
1
- import { StoreItem } from "./StoreItem";
2
- interface StorItemPruchased extends StoreItem {
3
- purchase_ts: number;
4
- purchase_points_amount: number;
5
- }
6
- export { StorItemPruchased };
@@ -1,5 +0,0 @@
1
- import { ErrorCodes, ErrorCodesGame } from './types/ErrorCodes';
2
- import { GBaseRequest } from './types/GRequest';
3
- import { GResponseBase, GResponse } from './types/GResponse';
4
- import { SAWSpinErrorCode } from './types/SmarticoProto/SAW/SAWDoSpinResponse';
5
- export { ErrorCodes, ErrorCodesGame, SAWSpinErrorCode, GBaseRequest, GResponseBase, GResponse, };
@@ -1,13 +0,0 @@
1
- import { SAWSpinErrorCode } from "./SmarticoProto/SAW/SAWDoSpinResponse";
2
- export declare const ErrorCodes_FatalStartingRange = 100000;
3
- export declare enum ErrorCodesGame {
4
- OK = 0,
5
- NoBetsUpdatedOnSubmit = 3,
6
- RepeatRequest_Unhandled = 4,
7
- Fatal_NotValidHash,
8
- Fatal_WrongCustomerID,
9
- Fatal_TemplateNotFound,
10
- Fatal_NoOpenRounds,
11
- Fatal_Unhandled
12
- }
13
- export type ErrorCodes = SAWSpinErrorCode | ErrorCodesGame;
@@ -1,16 +0,0 @@
1
- interface GBaseRequest {
2
- customer_id: string;
3
- ext_user_id: string;
4
- int_user_id: number;
5
- smartico_ext_user_id: string;
6
- ext_game_id: number;
7
- lang: string;
8
- hash: string;
9
- zoom?: number;
10
- label_api_key?: string;
11
- brand_key?: string;
12
- bridgeId?: string;
13
- height?: 'auto' | string;
14
- theme?: string;
15
- }
16
- export { GBaseRequest };
@@ -1,10 +0,0 @@
1
- import { ErrorCodes } from "./ErrorCodes";
2
- interface GResponseBase {
3
- errCode: ErrorCodes;
4
- errMessage?: string;
5
- }
6
- interface GResponse<T> extends GResponseBase {
7
- data?: T;
8
- }
9
- declare const SMX = 1;
10
- export { GResponseBase, GResponse, SMX };
@@ -1,6 +0,0 @@
1
- declare enum GameAttemptType {
2
- Free = 1,
3
- Points = 2,
4
- Attempts = 3
5
- }
6
- export { GameAttemptType };
@@ -1,10 +0,0 @@
1
- declare enum GameCanPlayType {
2
- Yes = 1,
3
- NotEnoughPoints = 2,
4
- NotEnoughAttempts = 3,
5
- InactiveGame = 4,
6
- TimeRestrictions = 5,
7
- SegmentRestrictions = 6,
8
- GameNotFound = 7
9
- }
10
- export { GameCanPlayType };
@@ -1,6 +0,0 @@
1
- declare enum GameExternalStatus {
2
- Draft = 1,
3
- Active = 2,
4
- Archived = 3
5
- }
6
- export { GameExternalStatus };
@@ -1,9 +0,0 @@
1
- import { ResponseIdentifyLabelInfo } from "../SmarticoProto/PublicLabelInfo";
2
- import { GamePickRoundBase } from "./GamePick";
3
- import { SAWTemplate } from "../SmarticoProto/SAW/SAWTemplate";
4
- interface GameInfo {
5
- sawTemplate: SAWTemplate;
6
- allRounds: GamePickRoundBase[];
7
- labelInfo: ResponseIdentifyLabelInfo;
8
- }
9
- export { GameInfo };
@@ -1,90 +0,0 @@
1
- declare enum GamePickMarketType {
2
- Goals = 1,
3
- Winner = 2
4
- }
5
- declare enum GamePickResolutionType {
6
- None = 0,
7
- Lost = 2,
8
- PartialWin = 3,
9
- FullWin = 4
10
- }
11
- declare enum GPRoundStatus {
12
- Other = -1,
13
- NoEventsDefined = 1,
14
- NoMoreBetsAllowed = 2,
15
- AllEventsResolved_ButNotRound = 3,
16
- RoundResolved = 4
17
- }
18
- interface GamePickEventMeta {
19
- event_name?: string;
20
- team1_name: string;
21
- team1_image: string;
22
- team2_name: string;
23
- team2_image: string;
24
- team1_result?: number;
25
- team2_result?: number;
26
- }
27
- interface GamePickEvent {
28
- gp_event_id: number;
29
- event_resolution_date: number;
30
- match_date: number;
31
- market_type_id: GamePickMarketType;
32
- event_meta: GamePickEventMeta;
33
- user_placed_bet: boolean;
34
- team1_user_selection: number;
35
- team2_user_selection: number;
36
- resolution_type_id: GamePickResolutionType;
37
- resolution_score?: number;
38
- is_open_for_bets?: boolean;
39
- }
40
- interface GamePickRoundBase {
41
- round_id: number;
42
- round_row_id: number;
43
- round_name: string;
44
- round_description: string;
45
- open_date: number;
46
- last_bet_date: number;
47
- resolution_date: number;
48
- score_full_win: number;
49
- score_part_win: number;
50
- score_lost: number;
51
- is_active_now: boolean;
52
- is_resolved: boolean;
53
- round_status_id: GPRoundStatus;
54
- events_total: number;
55
- events_resolved: number;
56
- public_meta: {
57
- round_name: string;
58
- round_description: string;
59
- _translations: {
60
- [key: string]: {
61
- round_name: string;
62
- round_description: string;
63
- };
64
- };
65
- };
66
- next_round_open_date: number;
67
- }
68
- interface GamePickRoundBoard extends GamePickRoundBase {
69
- my_user: GamePickBoardUser;
70
- users: GamePickBoardUser[];
71
- }
72
- interface GamePickRound extends GamePickRoundBase {
73
- events: GamePickEvent[];
74
- user_score: number;
75
- user_placed_bet: boolean;
76
- has_open_for_bet_events?: boolean;
77
- has_not_submitted_changes?: boolean;
78
- }
79
- interface GamePickBoardUser {
80
- ext_user_id: string;
81
- int_user_id: number;
82
- public_username: string;
83
- avatar_url: string;
84
- gp_position: number;
85
- resolution_score: number;
86
- full_wins_count: number;
87
- part_wins_count: number;
88
- lost_count: number;
89
- }
90
- export { GamePickRoundBase, GamePickRound, GamePickEvent, GamePickMarketType, GamePickResolutionType, GamePickEventMeta, GPRoundStatus, GamePickRoundBoard, GamePickBoardUser };
@@ -1,7 +0,0 @@
1
- import { GameInfo } from "./GameInfo";
2
- import { GamePickRound, GamePickRoundBase } from "./GamePick";
3
- declare class GameUtil {
4
- static getRoundName(round: GamePickRoundBase, gameInfo: GameInfo): string;
5
- static getRoundDescription(round: GamePickRound, gameInfo: GameInfo): string;
6
- }
7
- export { GameUtil };
@@ -1,7 +0,0 @@
1
- import { ProtocolRequest } from "./ProtocolRequest";
2
- import { TranslationArea } from "./TranslationArea";
3
- export interface GetTranslationsRequest extends ProtocolRequest {
4
- hash_code: number;
5
- areas: TranslationArea[];
6
- lang_code: string;
7
- }
@@ -1,7 +0,0 @@
1
- import { ProtocolResponse } from "./ProtocolResponse";
2
- export interface GetTranslationsResponse extends ProtocolResponse {
3
- hash_code: number;
4
- translations: {
5
- [key: string]: string;
6
- };
7
- }
@@ -1,5 +0,0 @@
1
- export interface ProtocolMessage {
2
- cid: number;
3
- ts?: number;
4
- uuid?: string;
5
- }
@@ -1,6 +0,0 @@
1
- import { ProtocolMessage } from "./ProtocolMessage";
2
- export interface ProtocolRequest extends ProtocolMessage {
3
- api_key: string;
4
- brand_key: string;
5
- ext_user_id: string;
6
- }
@@ -1,5 +0,0 @@
1
- import { ProtocolMessage } from "./ProtocolMessage";
2
- export interface ProtocolResponse extends ProtocolMessage {
3
- errCode?: number;
4
- errMsg?: string;
5
- }
@@ -1,34 +0,0 @@
1
- export declare enum PublicLabelSettings {
2
- FCM_SENDER_ID = "FCM_SENDER_ID",
3
- PUBLIC_API_URL = "PUBLIC_API_URL",
4
- FCM_SW_URL = "FCM_SW_URL",
5
- RECORDING_ENABLED_FOR_ALL_USERS = "RECORDING_ENABLED_FOR_ALL_USERS",
6
- JS_INJECTION = "JS_INJECTION",
7
- GAMIFICATION_UI_MAIN = "GAMIFICATION_UI_MAIN",
8
- GAMIFICATION_UI_WIDGET = "GAMIFICATION_UI_WIDGET",
9
- GAMIFICATION_UI_MINI_GAME = "GAMIFICATION_UI_MINI_GAME",
10
- GAMIFICATION_UI_SETTINGS = "GAMIFICATION_UI_SETTINGS",
11
- GAMIFICATION_UI_MAIN_TEST = "GAMIFICATION_UI_MAIN_TEST",
12
- GAMIFICATION_UI_WIDGET_TEST = "GAMIFICATION_UI_WIDGET_TEST",
13
- GAMIFICATION_UI_SETTINGS_TEST = "GAMIFICATION_UI_SETTINGS_TEST",
14
- FRONT_END_ALLOWED_LANGUAGES = "FRONT_END_ALLOWED_LANGUAGES",
15
- FRONT_END_ALLOW_DOMAINS = "FRONT_END_ALLOW_DOMAINS",
16
- DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS = "DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS",
17
- SHADOW_LABEL_PUBLIC_KEY = "SHADOW_LABEL_PUBLIC_KEY",
18
- DYNAMIC_IMAGE_DOMAIN = "DYNAMIC_IMAGE_DOMAIN",
19
- GAMIFICATION_UI_LEVEL_ENABLED = "GAMIFICATION_UI_LEVEL_ENABLED",
20
- GAMIFICATION_UI_LEVEL_IMAGE_MOB = "GAMIFICATION_UI_LEVEL_IMAGE_MOB",
21
- GAMIFICATION_UI_LEVEL_IMAGE_DESK = "GAMIFICATION_UI_LEVEL_IMAGE_DESK",
22
- GAMIFICATION_LEVELS_LOGIC2 = "GAMIFICATION_LEVELS_LOGIC2",
23
- AVATAR_CUSTOM_IMAGE_MAX_ID = "AVATAR_CUSTOM_IMAGE_MAX_ID",
24
- AVATAR_CUSTOM_IMAGE_FOLDER = "AVATAR_CUSTOM_IMAGE_FOLDER",
25
- RETENTION_GAMES_CUSTOMER_ID = "RETENTION_GAMES_CUSTOMER_ID",
26
- GAMIFICATION_SHOW_POWERED_BY = "GAMIFICATION_SHOW_POWERED_BY",
27
- _system_leader_board_mask_username = "_system_leader_board_mask_username"
28
- }
29
- export interface ResponseIdentifyLabelInfo {
30
- settings: {
31
- [key: string]: string;
32
- };
33
- label_id: string;
34
- }
@@ -1,11 +0,0 @@
1
- export interface PublicProperties {
2
- core_user_language?: string;
3
- ach_points_balance?: number;
4
- ach_points_ever?: number;
5
- ach_points_board_period_type_1?: number;
6
- ach_points_board_period_type_2?: number;
7
- ach_level_current_id?: number;
8
- ach_level_current?: string;
9
- core_is_test_account?: boolean;
10
- ach_gamification_in_control_group?: boolean;
11
- }
@@ -1,12 +0,0 @@
1
- import { ProtocolResponse } from "./ProtocolResponse";
2
- import { PublicProperties } from "./PublicProperties";
3
- interface ResponseIdentify extends ProtocolResponse {
4
- user_id: number;
5
- ext_user_id: string;
6
- public_username: string;
7
- avatar_id: string;
8
- job: boolean;
9
- props?: PublicProperties;
10
- pubic_username_set: boolean;
11
- }
12
- export { ResponseIdentify };