@smartico/public-api 0.0.174 → 0.0.175

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.
@@ -417,7 +417,7 @@ ___
417
417
 
418
418
  ### getMiniGamesHistory
419
419
 
420
- ▸ **getMiniGamesHistory**(`«destructured»?`): `Promise`\<[`TSawHistory`](../interfaces/TSawHistory.md)[]\>
420
+ ▸ **getMiniGamesHistory**(`«destructured»`): `Promise`\<[`TSawHistory`](../interfaces/TSawHistory.md)[]\>
421
421
 
422
422
  Returns the list of mini-games based on the provided parameters. "Limit" and "offset" indicate the range of items to be fetched.
423
423
  The maximum number of items per request is limited to 20.
@@ -441,7 +441,7 @@ _smartico.api.getMiniGamesHistory().then((result) => {
441
441
  | `«destructured»` | `Object` |
442
442
  | › `limit?` | `number` |
443
443
  | › `offset?` | `number` |
444
- | › `saw_template_id?` | `number` |
444
+ | › `saw_template_id?` | `number` |
445
445
  | › `onUpdate?` | (`data`: [`TMiniGameTemplate`](../interfaces/TMiniGameTemplate.md)[]) => `void` |
446
446
 
447
447
  #### Returns
@@ -450,7 +450,6 @@ _smartico.api.getMiniGamesHistory().then((result) => {
450
450
 
451
451
  ___
452
452
 
453
-
454
453
  ### playMiniGame
455
454
 
456
455
  ▸ **playMiniGame**(`template_id`, `«destructured»?`): `Promise`\<[`TMiniGamePlayResult`](../interfaces/TMiniGamePlayResult.md)\>
@@ -5,3 +5,9 @@
5
5
  ### Main
6
6
 
7
7
  • **Main** = ``1``
8
+
9
+ ___
10
+
11
+ ### Personal
12
+
13
+ • **Personal** = ``2``
@@ -16,7 +16,7 @@ ___
16
16
 
17
17
  ### jp\_type\_id
18
18
 
19
- • **jp\_type\_id**: [`Main`](../enums/JackpotType.md#main)
19
+ • **jp\_type\_id**: [`JackpotType`](../enums/JackpotType.md)
20
20
 
21
21
  type of jackpot logic
22
22
 
@@ -99,3 +99,21 @@ ___
99
99
  ### wins\_count
100
100
 
101
101
  • `Optional` **wins\_count**: `number`
102
+
103
+ ___
104
+
105
+ ### weekdays
106
+
107
+ • `Optional` **weekdays**: `number`[]
108
+
109
+ ___
110
+
111
+ ### active\_from\_ts
112
+
113
+ • `Optional` **active\_from\_ts**: `number`
114
+
115
+ ___
116
+
117
+ ### active\_till\_ts
118
+
119
+ • `Optional` **active\_till\_ts**: `number`
@@ -1,53 +1,49 @@
1
1
  # Interface: TSawHistory
2
2
 
3
- TSawHistory describes the information of the history of mini-games.
4
-
5
3
  ## Properties
6
4
 
7
5
  ### template
8
6
 
9
7
  • **template**: `SAWTemplate`
10
8
 
11
- The initial information about mini-game.
9
+ The initial information about mini-game
12
10
 
13
11
  ___
14
12
 
15
- ### saw_template_id
13
+ ### saw\_template\_id
16
14
 
17
- • **saw_template_id**: `number`
15
+ • **saw\_template\_id**: `number`
18
16
 
19
- ID of the mini-game template.
17
+ ID of the mini-game template
20
18
 
21
19
  ___
22
20
 
23
- ### saw_prize_id
21
+ ### saw\_prize\_id
24
22
 
25
- • **saw_prize_id**: `number`
23
+ • **saw\_prize\_id**: `number`
26
24
 
27
- The saw_prize_id that user won, details of the prize can be found in the mini-game definition.
25
+ The saw_prize_id that user won, details of the prize can be found in the mini-game definition
28
26
 
29
27
  ___
30
28
 
31
- ### prize_amount
29
+ ### prize\_amount
32
30
 
33
- • **prize_amount**: `number`
31
+ • **prize\_amount**: `number`
34
32
 
35
- Amount of prizes in stock.
33
+ Amount of prizes in stock
36
34
 
37
35
  ___
38
36
 
39
- ### client_request_id
37
+ ### client\_request\_id
40
38
 
41
- • **client_request_id**: `string`
39
+ • **client\_request\_id**: `string`
42
40
 
43
- Request ID that client is sending to show history.
41
+ Request ID that client is sending to show history
44
42
 
45
43
  ___
46
44
 
47
- ### is_claimed
48
-
49
- • **is_claimed**: `boolean`
45
+ ### is\_claimed
50
46
 
51
- Flag indicating to show whether prize in the mini-game claimed or not.
47
+ **is\_claimed**: `boolean`
52
48
 
53
- ___
49
+ Flag indicating to show whether prize in the mini-game claimed or not
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.174",
3
+ "version": "0.0.175",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +1,6 @@
1
1
  enum JackpotType {
2
2
  Main = 1,
3
+ Personal = 2,
3
4
  }
4
5
 
5
6
  export { JackpotType };
@@ -2,5 +2,4 @@ import { ProtocolMessage } from '../Base/ProtocolMessage';
2
2
 
3
3
  export interface GetRelatedAchTourRequest extends ProtocolMessage {
4
4
  related_game_id?: string;
5
- force_language?: string;
6
5
  }
@@ -1093,7 +1093,7 @@ class SmarticoAPI {
1093
1093
  return new WSAPI(this);
1094
1094
  }
1095
1095
 
1096
- public async getRelatedItemsForGame(user_ext_id: string, related_game_id: string, force_language?: string,): Promise<GetRelatedAchTourResponse> {
1096
+ public async getRelatedItemsForGame(user_ext_id: string, related_game_id: string,): Promise<GetRelatedAchTourResponse> {
1097
1097
  const message = this.buildMessage< GetRelatedAchTourRequest, GetRelatedAchTourResponse>(
1098
1098
  user_ext_id,
1099
1099
  ClassId.GET_RELATED_ACH_N_TOURNAMENTS_REQUEST,
@@ -1102,7 +1102,7 @@ class SmarticoAPI {
1102
1102
  }
1103
1103
  );
1104
1104
 
1105
- return await this.send<GetRelatedAchTourResponse>(message, ClassId.GET_RELATED_ACH_N_TOURNAMENTS_RESPONSE, force_language);
1105
+ return await this.send<GetRelatedAchTourResponse>(message, ClassId.GET_RELATED_ACH_N_TOURNAMENTS_RESPONSE);
1106
1106
 
1107
1107
  }
1108
1108
  }
@@ -93,6 +93,7 @@ export class WSAPI {
93
93
  on(ClassId.IDENTIFY_RESPONSE, () => OCache.clearContext(ECacheContext.WSAPI));
94
94
  on(ClassId.JP_WIN_PUSH, (data: JackpotWinPush) => this.jackpotClearCache());
95
95
  on(ClassId.JP_OPTOUT_RESPONSE, (data: JackpotsOptoutRequest) => this.jackpotClearCache());
96
+ on(ClassId.JP_OPTIN_RESPONSE, (data: JackpotsOptinResponse) => this.jackpotClearCache());
96
97
  on(ClassId.CLAIM_BONUS_RESPONSE, () => this.updateBonuses());
97
98
  on(ClassId.SAW_DO_SPIN_BATCH_RESPONSE, () => this.updateOnAddSpin());
98
99
  }
@@ -1001,9 +1002,9 @@ export class WSAPI {
1001
1002
  * });
1002
1003
  * ```
1003
1004
  */
1004
- public async getRelatedItemsForGame(related_game_id: string, force_language?: string): Promise<GetAchievementMapResponse> {
1005
+ public async getRelatedItemsForGame(related_game_id: string): Promise<GetAchievementMapResponse> {
1005
1006
 
1006
- const result = await this.api.getRelatedItemsForGame(null, related_game_id, force_language);
1007
+ const result = await this.api.getRelatedItemsForGame(null, related_game_id);
1007
1008
  return result;
1008
1009
 
1009
1010
  }