@smartico/public-api 0.0.168 → 0.0.170
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/Quiz/MarketsType.d.ts +0 -1
- package/dist/UserProfile/UserProfile.d.ts +3 -0
- package/dist/UserProfile/index.d.ts +1 -0
- package/dist/WSAPI/WSAPI.d.ts +14 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +60 -39
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +60 -39
- package/dist/index.modern.mjs.map +1 -1
- package/docs/classes/WSAPI.md +14 -1
- package/package.json +1 -1
- package/src/Quiz/MarketsInfo.ts +40 -40
- package/src/Quiz/MarketsPerSport.ts +1 -1
- package/src/Quiz/MarketsType.ts +1 -1
- package/src/UserProfile/UserProfile.ts +5 -0
- package/src/UserProfile/index.ts +1 -0
- package/src/WSAPI/WSAPI.ts +15 -2
- package/src/index.ts +1 -0
package/docs/classes/WSAPI.md
CHANGED
|
@@ -421,6 +421,13 @@ ___
|
|
|
421
421
|
|
|
422
422
|
Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
|
|
423
423
|
|
|
424
|
+
**Example**:
|
|
425
|
+
```
|
|
426
|
+
_smartico.api.playMiniGame(55).then((result) => {
|
|
427
|
+
console.log(result);
|
|
428
|
+
});
|
|
429
|
+
```
|
|
430
|
+
|
|
424
431
|
**Visitor mode: not supported**
|
|
425
432
|
|
|
426
433
|
#### Parameters
|
|
@@ -439,8 +446,14 @@ ___
|
|
|
439
446
|
|
|
440
447
|
▸ **playMiniGameBatch**(`template_id`, `spin_count`): `Promise`\<[`TMiniGamePlayBatchResult`](../interfaces/TMiniGamePlayBatchResult.md)[]\>
|
|
441
448
|
|
|
442
|
-
Plays the specified by template_id mini-game on behalf of user
|
|
449
|
+
Plays the specified by template_id mini-game on behalf of user spin_count times and returns array of the prizes
|
|
443
450
|
|
|
451
|
+
**Example**:
|
|
452
|
+
```
|
|
453
|
+
_smartico.api.playMiniGameBatch(55, 10).then((result) => {
|
|
454
|
+
console.log(result);
|
|
455
|
+
});
|
|
456
|
+
```
|
|
444
457
|
**Visitor mode: not supported**
|
|
445
458
|
|
|
446
459
|
#### Parameters
|
package/package.json
CHANGED
package/src/Quiz/MarketsInfo.ts
CHANGED
|
@@ -36,46 +36,46 @@ export const marketsInfo = [
|
|
|
36
36
|
question: { text: 'Who will lead the first half of the match ?', trKey: 'quizQuestion_x2half' },
|
|
37
37
|
answers: homeAwayDrawAnswers,
|
|
38
38
|
},
|
|
39
|
-
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
},
|
|
39
|
+
// {
|
|
40
|
+
// type: SAWGPMarketType.HalftimeFulltime,
|
|
41
|
+
// name: 'Halftime / Fulltime',
|
|
42
|
+
// question: { text: 'Who will lead the first half and who will win the match ?', trKey: 'quizQuestion__HalftimeFulltime' },
|
|
43
|
+
// answers: [
|
|
44
|
+
// {
|
|
45
|
+
// text: `${quizAnswerHomeTeamReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
|
|
46
|
+
// value: QuizAnswersValueType.HomeTeamHomeTeam,
|
|
47
|
+
// },
|
|
48
|
+
// {
|
|
49
|
+
// text: `${quizAnswerHomeTeamReplacementText} / ${quizDrawReplacementText}`,
|
|
50
|
+
// value: QuizAnswersValueType.HomeTeamDraw,
|
|
51
|
+
// },
|
|
52
|
+
// {
|
|
53
|
+
// text: `${quizAnswerHomeTeamReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
|
|
54
|
+
// value: QuizAnswersValueType.HomeTeamAwayTeam,
|
|
55
|
+
// },
|
|
56
|
+
// {
|
|
57
|
+
// text: `${quizDrawReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
|
|
58
|
+
// value: QuizAnswersValueType.DrawHomeTeam,
|
|
59
|
+
// },
|
|
60
|
+
// { text: `${quizDrawReplacementText} / ${quizDrawReplacementText}`, value: QuizAnswersValueType.DrawDraw },
|
|
61
|
+
// {
|
|
62
|
+
// text: `${quizDrawReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
|
|
63
|
+
// value: QuizAnswersValueType.DrawAwayTeam,
|
|
64
|
+
// },
|
|
65
|
+
// {
|
|
66
|
+
// text: `${quizAnswerAwayTeamReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
|
|
67
|
+
// value: QuizAnswersValueType.AwayTeamHomeTeam,
|
|
68
|
+
// },
|
|
69
|
+
// {
|
|
70
|
+
// text: `${quizAnswerAwayTeamReplacementText} / ${quizDrawReplacementText}`,
|
|
71
|
+
// value: QuizAnswersValueType.AwayTeamDraw,
|
|
72
|
+
// },
|
|
73
|
+
// {
|
|
74
|
+
// text: `${quizAnswerAwayTeamReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
|
|
75
|
+
// value: QuizAnswersValueType.AwayTeamAwayTeam,
|
|
76
|
+
// },
|
|
77
|
+
// ],
|
|
78
|
+
// },
|
|
79
79
|
{
|
|
80
80
|
type: SAWGPMarketType.FirstGoal,
|
|
81
81
|
name: 'First Goal',
|
|
@@ -13,7 +13,7 @@ export const QuizMarketPerSport = {
|
|
|
13
13
|
[QuizSportType.Soccer]: [
|
|
14
14
|
SAWGPMarketType.OneXTwo,
|
|
15
15
|
SAWGPMarketType.OneXTwoHalftime,
|
|
16
|
-
SAWGPMarketType.HalftimeFulltime,
|
|
16
|
+
// SAWGPMarketType.HalftimeFulltime,
|
|
17
17
|
SAWGPMarketType.FirstGoal,
|
|
18
18
|
SAWGPMarketType.LastGoal,
|
|
19
19
|
SAWGPMarketType.DoubleChance,
|
package/src/Quiz/MarketsType.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UserProfile';
|
package/src/WSAPI/WSAPI.ts
CHANGED
|
@@ -456,6 +456,13 @@ export class WSAPI {
|
|
|
456
456
|
|
|
457
457
|
/**
|
|
458
458
|
* Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
|
|
459
|
+
*
|
|
460
|
+
* **Example**:
|
|
461
|
+
* ```
|
|
462
|
+
* _smartico.api.playMiniGame(55).then((result) => {
|
|
463
|
+
* console.log(result);
|
|
464
|
+
* });
|
|
465
|
+
* ```
|
|
459
466
|
*
|
|
460
467
|
* **Visitor mode: not supported**
|
|
461
468
|
*/
|
|
@@ -473,8 +480,14 @@ export class WSAPI {
|
|
|
473
480
|
}
|
|
474
481
|
|
|
475
482
|
/**
|
|
476
|
-
* Plays the specified by template_id mini-game on behalf of user
|
|
477
|
-
*
|
|
483
|
+
* Plays the specified by template_id mini-game on behalf of user spin_count times and returns array of the prizes
|
|
484
|
+
*
|
|
485
|
+
* **Example**:
|
|
486
|
+
* ```
|
|
487
|
+
* _smartico.api.playMiniGameBatch(55, 10).then((result) => {
|
|
488
|
+
* console.log(result);
|
|
489
|
+
* });
|
|
490
|
+
* ```
|
|
478
491
|
* **Visitor mode: not supported**
|
|
479
492
|
*/
|
|
480
493
|
public async playMiniGameBatch(template_id: number, spin_count: number): Promise<TMiniGamePlayBatchResult[]> {
|