@smartico/public-api 0.0.439 → 0.0.440

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.
@@ -364,6 +364,7 @@ var SAWGameType;
364
364
  SAWGameType[SAWGameType["Plinko"] = 11] = "Plinko";
365
365
  SAWGameType[SAWGameType["CoinFlip"] = 12] = "CoinFlip";
366
366
  SAWGameType[SAWGameType["CustomMinigame"] = 13] = "CustomMinigame";
367
+ SAWGameType[SAWGameType["Bingo"] = 14] = "Bingo";
367
368
  })(SAWGameType || (SAWGameType = {}));
368
369
  var SAWGameTypeName;
369
370
  (function (SAWGameTypeName) {
@@ -380,6 +381,7 @@ var SAWGameTypeName;
380
381
  SAWGameTypeName["Plinko"] = "plinko";
381
382
  SAWGameTypeName["CoinFlip"] = "coin_flip";
382
383
  SAWGameTypeName["CustomMinigame"] = "custom_minigame";
384
+ SAWGameTypeName["Bingo"] = "bingo";
383
385
  SAWGameTypeName["Unknown"] = "unknown";
384
386
  })(SAWGameTypeName || (SAWGameTypeName = {}));
385
387
  /** @hidden */
@@ -397,7 +399,8 @@ const SAWGameTypeNamed = type => {
397
399
  [SAWGameType.Voyager]: SAWGameTypeName.Voyager,
398
400
  [SAWGameType.Plinko]: SAWGameTypeName.Plinko,
399
401
  [SAWGameType.CoinFlip]: SAWGameTypeName.CoinFlip,
400
- [SAWGameType.CustomMinigame]: SAWGameTypeName.CustomMinigame
402
+ [SAWGameType.CustomMinigame]: SAWGameTypeName.CustomMinigame,
403
+ [SAWGameType.Bingo]: SAWGameTypeName.Bingo
401
404
  }[type] || SAWGameTypeName.Unknown;
402
405
  };
403
406
 
@@ -6955,14 +6958,14 @@ class WSAPIMiniGames extends WSAPIRaffles {
6955
6958
  * substitution at fetch time.
6956
6959
  *
6957
6960
  * **Game-type variants**
6958
- * All twelve `SAWGameType` values (`SpinAWheel`, `ScratchCard`,
6961
+ * All `SAWGameType` values (`SpinAWheel`, `ScratchCard`,
6959
6962
  * `MatchX`, `GiftBox`, `PrizeDrop`, `Quiz`, `LootboxWeekdays`,
6960
6963
  * `LootboxCalendarDays`, `TreasureHunt`, `Voyager`, `Plinko`,
6961
- * `CoinFlip`) surface through the same template shape. Most are
6964
+ * `CoinFlip`, `CustomMinigame`, `Bingo`) surface through the same template shape. Most are
6962
6965
  * played via {@link playMiniGame}; the exceptions are:
6963
6966
  * - `PrizeDrop` — server-push only; the consumer does NOT call
6964
6967
  * `playMiniGame`. Prizes arrive via the prize-drop push channel.
6965
- * - `MatchX` / `Quiz` — predictions are submitted via a separate
6968
+ * - `MatchX` / `Quiz` / `Bingo` — predictions are submitted via a separate
6966
6969
  * games server (not this SDK); the SAW spin is fired
6967
6970
  * server-internally to deduct the buy-in.
6968
6971
  *
@@ -7128,7 +7131,7 @@ class WSAPIMiniGames extends WSAPIRaffles {
7128
7131
  * Works for all `SAWGameType` values EXCEPT:
7129
7132
  * - `PrizeDrop` — prizes arrive server-pushed; do NOT call
7130
7133
  * `playMiniGame` for this type.
7131
- * - `MatchX` / `Quiz` — prediction submission goes through a
7134
+ * - `MatchX` / `Quiz` / `Bingo` — prediction submission goes through a
7132
7135
  * separate games server; `playMiniGame` is not the entry point.
7133
7136
  *
7134
7137
  * @remarks
@@ -8023,7 +8026,7 @@ class WSAPIAvatars extends WSAPIMiniGames {
8023
8026
  /** @group GamePick */
8024
8027
  class WSAPIGamePick extends WSAPIAvatars {
8025
8028
  /**
8026
- * Returns every open round for a MatchX or Quiz game template, with the full
8029
+ * Returns every open round for a MatchX, Quiz or Bingo game template, with the full
8027
8030
  * event list (matches / questions) and the current user's selections per event.
8028
8031
  *
8029
8032
  * Use to power the rounds-lobby screen — typically a list of round cards a user
@@ -8033,7 +8036,7 @@ class WSAPIGamePick extends WSAPIAvatars {
8033
8036
  * @remarks
8034
8037
  * **Preconditions**
8035
8038
  * - User must be authenticated.
8036
- * - `saw_template_id` must reference a MatchX or Quiz game template. The SDK
8039
+ * - `saw_template_id` must reference a MatchX, Quiz or Bingo game template. The SDK
8037
8040
  * throws synchronously if it's missing.
8038
8041
  *
8039
8042
  * **Transport**
@@ -8066,7 +8069,7 @@ class WSAPIGamePick extends WSAPIAvatars {
8066
8069
  *
8067
8070
  * **UI guidance**: see [UI Guide — `gamePickGetActiveRounds`](../../docs/ui/gamepick/UIGuide_gamePickGetActiveRounds.md).
8068
8071
  *
8069
- * @param props.saw_template_id ID of the MatchX or Quiz game template.
8072
+ * @param props.saw_template_id ID of the MatchX, Quiz or Bingo game template.
8070
8073
  * @returns Wrapped {@link GamesApiResponse} of {@link GamePickRound} array.
8071
8074
  *
8072
8075
  * @example
@@ -8091,7 +8094,7 @@ class WSAPIGamePick extends WSAPIAvatars {
8091
8094
  }
8092
8095
  /**
8093
8096
  * Returns a single round (events, user selections, scoring rules) for a
8094
- * MatchX or Quiz game. Use to power the round-detail / prediction-input
8097
+ * MatchX, Quiz or Bingo game. Use to power the round-detail / prediction-input
8095
8098
  * screen the user lands on after picking a round from the lobby.
8096
8099
  *
8097
8100
  * Same shape as one entry of {@link gamePickGetActiveRounds}; cheaper when the
@@ -8123,7 +8126,7 @@ class WSAPIGamePick extends WSAPIAvatars {
8123
8126
  *
8124
8127
  * **UI guidance**: see [UI Guide — `gamePickGetActiveRound`](../../docs/ui/gamepick/UIGuide_gamePickGetActiveRound.md).
8125
8128
  *
8126
- * @param props.saw_template_id ID of the MatchX or Quiz game template.
8129
+ * @param props.saw_template_id ID of the MatchX, Quiz or Bingo game template.
8127
8130
  * @param props.round_id ID of the round to fetch.
8128
8131
  * @returns Wrapped {@link GamesApiResponse} of a single {@link GamePickRound}.
8129
8132
  *
@@ -8151,7 +8154,7 @@ class WSAPIGamePick extends WSAPIAvatars {
8151
8154
  return this.api.gpGetActiveRound(props.saw_template_id, props.round_id);
8152
8155
  }
8153
8156
  /**
8154
- * Returns the full round history (active + resolved) for a MatchX or Quiz game
8157
+ * Returns the full round history (active + resolved) for a MatchX, Quiz or Bingo game
8155
8158
  * template, newest-first. Each round carries the user's predictions plus the
8156
8159
  * server-resolved outcome on each event.
8157
8160
  *
@@ -8185,7 +8188,7 @@ class WSAPIGamePick extends WSAPIAvatars {
8185
8188
  *
8186
8189
  * **UI guidance**: see [UI Guide — `gamePickGetHistory`](../../docs/ui/gamepick/UIGuide_gamePickGetHistory.md).
8187
8190
  *
8188
- * @param props.saw_template_id ID of the MatchX or Quiz game template.
8191
+ * @param props.saw_template_id ID of the MatchX, Quiz or Bingo game template.
8189
8192
  * @returns Wrapped {@link GamesApiResponse} of {@link GamePickRound} array,
8190
8193
  * newest-first.
8191
8194
  *
@@ -8205,7 +8208,7 @@ class WSAPIGamePick extends WSAPIAvatars {
8205
8208
  return this.api.gpGetGamesHistory(props.saw_template_id);
8206
8209
  }
8207
8210
  /**
8208
- * Returns the leaderboard for a MatchX or Quiz game round — ranked list of
8211
+ * Returns the leaderboard for a MatchX, Quiz or Bingo game round — ranked list of
8209
8212
  * players plus the current user's entry (`my_user`). Pass `round_id: -1` for
8210
8213
  * the season / overall leaderboard across every round in the template.
8211
8214
  *
@@ -8245,7 +8248,7 @@ class WSAPIGamePick extends WSAPIAvatars {
8245
8248
  *
8246
8249
  * **UI guidance**: see [UI Guide — `gamePickGetBoard`](../../docs/ui/gamepick/UIGuide_gamePickGetBoard.md).
8247
8250
  *
8248
- * @param props.saw_template_id ID of the MatchX or Quiz game template.
8251
+ * @param props.saw_template_id ID of the MatchX, Quiz or Bingo game template.
8249
8252
  * @param props.round_id Round ID, or `-1` for the season leaderboard.
8250
8253
  * @returns Wrapped {@link GamesApiResponse} of {@link GamePickRoundBoard}.
8251
8254
  *
@@ -8512,7 +8515,7 @@ class WSAPIGamePick extends WSAPIAvatars {
8512
8515
  *
8513
8516
  * **UI guidance**: see [UI Guide — `gamePickGetUserInfo`](../../docs/ui/gamepick/UIGuide_gamePickGetUserInfo.md).
8514
8517
  *
8515
- * @param props.saw_template_id ID of the MatchX or Quiz game template.
8518
+ * @param props.saw_template_id ID of the MatchX, Quiz or Bingo game template.
8516
8519
  * @returns Wrapped {@link GamesApiResponse} of {@link GamePickUserInfo}.
8517
8520
  *
8518
8521
  * @example
@@ -8569,7 +8572,7 @@ class WSAPIGamePick extends WSAPIAvatars {
8569
8572
  *
8570
8573
  * **UI guidance**: see [UI Guide — `gamePickGetGameInfo`](../../docs/ui/gamepick/UIGuide_gamePickGetGameInfo.md).
8571
8574
  *
8572
- * @param props.saw_template_id ID of the MatchX or Quiz game template.
8575
+ * @param props.saw_template_id ID of the MatchX, Quiz or Bingo game template.
8573
8576
  * @returns Wrapped {@link GamesApiResponse} of {@link GamePickGameInfo}.
8574
8577
  *
8575
8578
  * @example
@@ -8629,7 +8632,7 @@ class WSAPIGamePick extends WSAPIAvatars {
8629
8632
  *
8630
8633
  * **UI guidance**: see [UI Guide — `gamePickGetRoundInfoForUser`](../../docs/ui/gamepick/UIGuide_gamePickGetRoundInfoForUser.md).
8631
8634
  *
8632
- * @param props.saw_template_id ID of the MatchX or Quiz game template.
8635
+ * @param props.saw_template_id ID of the MatchX, Quiz or Bingo game template.
8633
8636
  * @param props.round_id ID of the round to inspect.
8634
8637
  * @param props.int_user_id Internal user ID from
8635
8638
  * `gamePickGetBoard.users[].int_user_id`.