@smartico/public-api 0.0.223 → 0.0.225

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.
@@ -27,6 +27,7 @@ export interface SAWTemplateUI {
27
27
  promo_image?: string;
28
28
  promo_text?: string;
29
29
  matchx_banner?: string;
30
+ matchx_banner_mobile?: string;
30
31
  matchx_seasonal_ranking?: boolean;
31
32
  matchx_is_completed?: boolean;
32
33
  matchx_general_board_users_count?: number;
@@ -7,6 +7,12 @@ interface RaffleDrawPublicMeta {
7
7
  description: string;
8
8
  /** URL of the image that represents the draw */
9
9
  image_url: string;
10
+ /** URL of the icon that represents the draw */
11
+ icon_url: string;
12
+ /** URL of the background image that will be used in the draw list item */
13
+ background_image_url: string;
14
+ /** Show if the draw is grand and is marked as special */
15
+ is_grand: boolean;
10
16
  }
11
17
  declare enum RaffleDrawInstanceState {
12
18
  /** Draw is open for the tickets collection */
@@ -16,6 +22,18 @@ declare enum RaffleDrawInstanceState {
16
22
  /** Draw is executed and the winners are selected */
17
23
  Executed = 3
18
24
  }
25
+ declare enum RaffleDrawTypeExecution {
26
+ /** Draw is executed only once */
27
+ ExecDate = 0,
28
+ /** Draw is executed on a recurring basis */
29
+ Recurring = 1,
30
+ /**
31
+ * Draw is executed once and is marked as grand.
32
+ * This means it is a special or significant draw,
33
+ * often with larger prizes or more importance.
34
+ */
35
+ Grand = 2
36
+ }
19
37
  interface RaffleDraw {
20
38
  /**
21
39
  * Id of the Draw definition, for the repetative draws (e.g. daily), this number will be the same for all draws that are repeating daily
@@ -34,6 +52,13 @@ interface RaffleDraw {
34
52
  * Field indicates the ID of the latest instance/run of draw
35
53
  */
36
54
  run_id: number;
55
+ /**
56
+ * Type of the draw execution, indicating how and when the draw is executed.
57
+ * - ExecDate: Draw is executed only once at a specific date and time.
58
+ * - Recurring: Draw is executed on a recurring basis (e.g., daily, weekly).
59
+ * - Grand: Draw is executed once and is marked as grand, often with larger prizes or more importance.
60
+ */
61
+ execution_type: RaffleDrawTypeExecution;
37
62
  /** Date/time of the draw execution */
38
63
  execution_ts: number;
39
64
  /** Date of the previously executed draw (if there is such) */
@@ -43,6 +43,17 @@ Field indicates the ID of the latest instance/run of draw
43
43
 
44
44
  ___
45
45
 
46
+ ### execution\_type
47
+
48
+ • **execution\_type**: `RaffleDrawTypeExecution`
49
+
50
+ Type of the draw execution, indicating how and when the draw is executed.
51
+ - ExecDate: Draw is executed only once at a specific date and time.
52
+ - Recurring: Draw is executed on a recurring basis (e.g., daily, weekly).
53
+ - Grand: Draw is executed once and is marked as grand, often with larger prizes or more importance.
54
+
55
+ ___
56
+
46
57
  ### execution\_ts
47
58
 
48
59
  • **execution\_ts**: `number`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.223",
3
+ "version": "0.0.225",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,6 +29,7 @@ export interface SAWTemplateUI {
29
29
  promo_image?: string;
30
30
  promo_text?: string;
31
31
  matchx_banner?: string;
32
+ matchx_banner_mobile?: string;
32
33
  matchx_seasonal_ranking?: boolean;
33
34
  matchx_is_completed?: boolean;
34
35
  matchx_general_board_users_count?: number;
@@ -8,6 +8,12 @@ interface RaffleDrawPublicMeta {
8
8
  description: string;
9
9
  /** URL of the image that represents the draw */
10
10
  image_url: string;
11
+ /** URL of the icon that represents the draw */
12
+ icon_url: string;
13
+ /** URL of the background image that will be used in the draw list item */
14
+ background_image_url: string;
15
+ /** Show if the draw is grand and is marked as special */
16
+ is_grand: boolean;
11
17
  }
12
18
 
13
19
  enum RaffleDrawInstanceState {
@@ -19,6 +25,19 @@ enum RaffleDrawInstanceState {
19
25
  Executed = 3,
20
26
  }
21
27
 
28
+ enum RaffleDrawTypeExecution {
29
+ /** Draw is executed only once */
30
+ ExecDate = 0,
31
+ /** Draw is executed on a recurring basis */
32
+ Recurring = 1,
33
+ /**
34
+ * Draw is executed once and is marked as grand.
35
+ * This means it is a special or significant draw,
36
+ * often with larger prizes or more importance.
37
+ */
38
+ Grand = 2,
39
+ }
40
+
22
41
 
23
42
  interface RaffleDraw {
24
43
  /**
@@ -41,7 +60,15 @@ interface RaffleDraw {
41
60
  /**
42
61
  * Field indicates the ID of the latest instance/run of draw
43
62
  */
44
- run_id: number;
63
+ run_id: number;
64
+
65
+ /**
66
+ * Type of the draw execution, indicating how and when the draw is executed.
67
+ * - ExecDate: Draw is executed only once at a specific date and time.
68
+ * - Recurring: Draw is executed on a recurring basis (e.g., daily, weekly).
69
+ * - Grand: Draw is executed once and is marked as grand, often with larger prizes or more importance.
70
+ */
71
+ execution_type: RaffleDrawTypeExecution;
45
72
 
46
73
  /** Date/time of the draw execution */
47
74
  execution_ts: number;
@@ -475,6 +475,13 @@ declare enum TournamentRegistrationType {
475
475
  MANUAL_APPROVAL = 4,
476
476
  REQUIRES_QUALIFICATION = 5,
477
477
  }
478
+ /*
479
+ AUTO – The user is automatically registered upon their first qualifying action; no manual action is required.
480
+ OPT_IN – Free registration; the user simply needs to click "Join."
481
+ BUY_IN_POINTS – Registration requires points; the required amount is specified in the registration_cost_points field.
482
+ MANUAL_APPROVAL – The user must join, but the operator must approve the registration from the back office.
483
+ REQUIRES_QUALIFICATION – The user must join and complete the required qualification action specified for the tournament.
484
+ */
478
485
  export type TournamentRegistrationTypeName =
479
486
  | 'AUTO'
480
487
  | 'OPT_IN'