@smartico/public-api 0.0.431 → 0.0.432

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.
@@ -137,6 +137,8 @@ export declare enum ClassId {
137
137
  BNR_GET_BANNER_PLACEMENTS_RESPONSE = 951,
138
138
  BNR_GET_BANNER_CONTENT_REQUEST = 952,
139
139
  BNR_GET_BANNER_CONTENT_RESPONSE = 953,
140
+ TERMS_AND_CONDITIONS_REQUEST = 954,
141
+ TERMS_AND_CONDITIONS_RESPONSE = 955,
140
142
  REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ = 1003,
141
143
  REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP = 2003,
142
144
  FORM_SHOW_PUSH = 1050,
@@ -0,0 +1,12 @@
1
+ import { ProtocolMessage } from '../Base/ProtocolMessage';
2
+ /**
3
+ * Asks for the label's widget disclaimer ("additional T&C") text with any
4
+ * personalisation placeholders already resolved for the current player.
5
+ *
6
+ * Requires an identified session — the text is resolved against the player's
7
+ * own state, so it cannot be requested before identification.
8
+ */
9
+ export interface TermsAndConditionsRequest extends ProtocolMessage {
10
+ /** Overrides the session language used to resolve the text. Defaults to the player's language. */
11
+ force_language?: string;
12
+ }
@@ -0,0 +1,14 @@
1
+ import { ProtocolResponse } from '../Base/ProtocolResponse';
2
+ /**
3
+ * The label's widget disclaimer ("additional T&C") text, resolved for the
4
+ * current player.
5
+ *
6
+ * The value is the configured disclaimer with its personalisation placeholders
7
+ * substituted. Placeholders that cannot be resolved are left as-is rather than
8
+ * blanked. May be `null` or an empty string when no disclaimer is configured,
9
+ * in which case nothing should be rendered. The text may contain HTML.
10
+ */
11
+ export interface TermsAndConditionsResponse extends ProtocolResponse {
12
+ /** The resolved disclaimer text, or `null` / `''` when none is configured. */
13
+ widget_disclaimer_text?: string;
14
+ }
@@ -6,5 +6,7 @@ export * from './GetTranslationsRequest';
6
6
  export * from './GetTranslationsResponse';
7
7
  export * from './PublicLabelSettings';
8
8
  export * from './PublicProperties';
9
+ export * from './TermsAndConditionsRequest';
10
+ export * from './TermsAndConditionsResponse';
9
11
  export * from './ResponseIdentify';
10
12
  export * from './TranslationArea';
@@ -116,6 +116,7 @@ export interface PublicProperties {
116
116
  core_registration_date?: number;
117
117
  core_recommended_deposit_amount?: number;
118
118
  core_recommended_casino_bet_amount?: number;
119
+ core_recommended_sport_bet_amount?: number;
119
120
  }
120
121
  declare enum ClassId {
121
122
  PING = 1,
@@ -831,6 +832,8 @@ export interface TUserProfile {
831
832
  core_recommended_deposit_amount?: number;
832
833
  /** The recommended casino bet amount for the user */
833
834
  core_recommended_casino_bet_amount?: number;
835
+ /** The recommended sport bet amount for the user */
836
+ core_recommended_sport_bet_amount?: number;
834
837
  }
835
838
  /**
836
839
  * TLevel describes the information of each level defined in the system
@@ -260,6 +260,9 @@ export interface TUserProfile {
260
260
  /** AI-recommended casino bet amount for this user. Undefined when no
261
261
  * recommendation is currently available. */
262
262
  core_recommended_casino_bet_amount?: number;
263
+ /** AI-recommended sport bet amount for this user. Undefined when no
264
+ * recommendation is currently available. */
265
+ core_recommended_sport_bet_amount?: number;
263
266
  /** Display name of the user's current level (e.g. `"Silver"`); resolve the id via `getCurrentLevel()`. */
264
267
  ach_level_current?: string;
265
268
  /** `true` when the user is in the gamification A/B control group (gamification UI suppressed). */
package/dist/index.js CHANGED
@@ -166,6 +166,8 @@ exports.ClassId = void 0;
166
166
  ClassId[ClassId["BNR_GET_BANNER_PLACEMENTS_RESPONSE"] = 951] = "BNR_GET_BANNER_PLACEMENTS_RESPONSE";
167
167
  ClassId[ClassId["BNR_GET_BANNER_CONTENT_REQUEST"] = 952] = "BNR_GET_BANNER_CONTENT_REQUEST";
168
168
  ClassId[ClassId["BNR_GET_BANNER_CONTENT_RESPONSE"] = 953] = "BNR_GET_BANNER_CONTENT_RESPONSE";
169
+ ClassId[ClassId["TERMS_AND_CONDITIONS_REQUEST"] = 954] = "TERMS_AND_CONDITIONS_REQUEST";
170
+ ClassId[ClassId["TERMS_AND_CONDITIONS_RESPONSE"] = 955] = "TERMS_AND_CONDITIONS_RESPONSE";
169
171
  /*
170
172
  !Important, if adding new messages that are 'acting' on behalf of the client,
171
173
  you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
@@ -1325,7 +1327,7 @@ exports.BadgesTimeLimitStates = void 0;
1325
1327
 
1326
1328
  var _MissionUtils;
1327
1329
  var USER_STATE_PARAMS_KEYS_GAMES = ['core_fav_game_top3', 'core_fav_game_type_top3', 'core_fav_game_provider_top3'];
1328
- var USER_STATE_PARAMS_KEYS_BET_AMOUNT = ['core_recommended_deposit_amount', 'core_recommended_casino_bet_amount'];
1330
+ var USER_STATE_PARAMS_KEYS_BET_AMOUNT = ['core_recommended_deposit_amount', 'core_recommended_casino_bet_amount', 'core_recommended_sport_bet_amount'];
1329
1331
  var MINOR_WORDS = new Set(['of', 'at', 'in', 'on', 'to', 'up', 'as', 'by', 'for', 'from', 'into', 'onto', 'with', 'upon', 'via', 'and', 'but', 'or', 'nor', 'so', 'yet', 'vs', 'v', 'a', 'an', 'the']);
1330
1332
  function toGameTitleCase(raw) {
1331
1333
  if (!raw) return raw;