@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.
@@ -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 {count} times and returns prizes or err_code
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.168",
3
+ "version": "0.0.170",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
- 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
- },
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,
@@ -3,7 +3,7 @@ export enum SAWGPMarketType {
3
3
  RedCard = 2,
4
4
  OneXTwo = 3,
5
5
  OneXTwoHalftime = 4,
6
- HalftimeFulltime = 5,
6
+ // HalftimeFulltime = 5,
7
7
  FirstGoal = 6,
8
8
  DoubleChance = 7,
9
9
  OverUnder2_5 = 8,
@@ -0,0 +1,5 @@
1
+ import { TUserProfile } from "src/WSAPI/WSAPITypes";
2
+
3
+ export interface UserProfile extends TUserProfile {
4
+
5
+ }
@@ -0,0 +1 @@
1
+ export * from './UserProfile';
@@ -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 {count} times and returns prizes or err_code
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[]> {
package/src/index.ts CHANGED
@@ -4,6 +4,7 @@ export * from './SmarticoAPI';
4
4
  export * from './CookieStore';
5
5
 
6
6
  export * from './Core';
7
+ export * from './UserProfile';
7
8
  export * from './Inbox';
8
9
  export * from './Leaderboard';
9
10
  export * from './MiniGames';