@smartico/public-api 0.0.224 → 0.0.226

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.
@@ -1,5 +1,6 @@
1
1
  import { SAWAskForUsername } from './SAWAskForUsername';
2
2
  import { SAWGameLayout } from './SAWGameLayout';
3
+ import { SAWWheelLayout } from './SAWWheelLayout';
3
4
  export interface SAWTemplateUI {
4
5
  skin: string;
5
6
  name: string;
@@ -48,4 +49,5 @@ export interface SAWTemplateUI {
48
49
  };
49
50
  game_layout?: SAWGameLayout;
50
51
  steps_to_finish_game?: number;
52
+ wheel_layout?: SAWWheelLayout;
51
53
  }
@@ -0,0 +1,6 @@
1
+ export declare enum SAWWheelLayout {
2
+ Centered = 1,
3
+ LeftAligned = 2,
4
+ RightAligned = 3,
5
+ BottomAligned = 4
6
+ }
@@ -26,3 +26,4 @@ export * from './SAWWinningHistoryRequest';
26
26
  export * from './SAWWinningHistoryResponse';
27
27
  export * from './SAWGameLayout';
28
28
  export * from './PrizeModifiers';
29
+ export * from './SAWWheelLayout';
@@ -11,6 +11,8 @@ interface RaffleDrawPublicMeta {
11
11
  icon_url: string;
12
12
  /** URL of the background image that will be used in the draw list item */
13
13
  background_image_url: string;
14
+ /** Show if the draw is grand and is marked as special */
15
+ is_grand: boolean;
14
16
  }
15
17
  declare enum RaffleDrawInstanceState {
16
18
  /** Draw is open for the tickets collection */
@@ -20,6 +22,18 @@ declare enum RaffleDrawInstanceState {
20
22
  /** Draw is executed and the winners are selected */
21
23
  Executed = 3
22
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
+ }
23
37
  interface RaffleDraw {
24
38
  /**
25
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
@@ -38,6 +52,13 @@ interface RaffleDraw {
38
52
  * Field indicates the ID of the latest instance/run of draw
39
53
  */
40
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;
41
62
  /** Date/time of the draw execution */
42
63
  execution_ts: number;
43
64
  /** Date of the previously executed draw (if there is such) */
package/dist/index.js CHANGED
@@ -531,6 +531,14 @@ exports.PrizeModifiers = void 0;
531
531
  })(exports.PrizeModifiers || (exports.PrizeModifiers = {}));
532
532
  var PrizeModifiersKeysNames = (_PrizeModifiersKeysNa = {}, _PrizeModifiersKeysNa[exports.PrizeModifiers['2x']] = '2x', _PrizeModifiersKeysNa[exports.PrizeModifiers['5x']] = '5x', _PrizeModifiersKeysNa[exports.PrizeModifiers['10x']] = '10x', _PrizeModifiersKeysNa[exports.PrizeModifiers['/2']] = '/2', _PrizeModifiersKeysNa[exports.PrizeModifiers['/5']] = '/5', _PrizeModifiersKeysNa[exports.PrizeModifiers['/10']] = '/10', _PrizeModifiersKeysNa[exports.PrizeModifiers['0x']] = '0', _PrizeModifiersKeysNa[exports.PrizeModifiers['reset']] = 'Reset to 0', _PrizeModifiersKeysNa);
533
533
 
534
+ exports.SAWWheelLayout = void 0;
535
+ (function (SAWWheelLayout) {
536
+ SAWWheelLayout[SAWWheelLayout["Centered"] = 1] = "Centered";
537
+ SAWWheelLayout[SAWWheelLayout["LeftAligned"] = 2] = "LeftAligned";
538
+ SAWWheelLayout[SAWWheelLayout["RightAligned"] = 3] = "RightAligned";
539
+ SAWWheelLayout[SAWWheelLayout["BottomAligned"] = 4] = "BottomAligned";
540
+ })(exports.SAWWheelLayout || (exports.SAWWheelLayout = {}));
541
+
534
542
  var NodeCache = /*#__PURE__*/function () {
535
543
  function NodeCache() {
536
544
  var _this = this;