@smartico/public-api 0.0.371 → 0.0.375

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.
@@ -538,6 +538,19 @@ Back-Office label: _"Steps to finish game"_.
538
538
 
539
539
  ***
540
540
 
541
+ ### min\_steps\_to\_finish\_game?
542
+
543
+ > `optional` **min\_steps\_to\_finish\_game?**: `number`
544
+
545
+ Minimum number of path steps / collectible prizes a Voyager session
546
+ must include before the game can finish. Acts as a floor for the
547
+ randomly-chosen path length so that sessions cannot terminate after
548
+ only one or two prizes. When omitted, no minimum is enforced.
549
+ Must be `>= 1` and `<= steps_to_finish_game`.
550
+ Back-Office label: _"Min. number of prizes"_.
551
+
552
+ ***
553
+
541
554
  ### game\_difficulty?
542
555
 
543
556
  > `optional` **game\_difficulty?**: [`SAWGameDifficultyType`](../enumerations/SAWGameDifficultyType.md)
@@ -90,6 +90,14 @@ Quantity of missions to be shown in overview
90
90
 
91
91
  ***
92
92
 
93
+ ### url\_or\_dp?
94
+
95
+ > `optional` **url\_or\_dp?**: `string`
96
+
97
+ URL or DP to be used for custom section
98
+
99
+ ***
100
+
93
101
  ### liquid\_entity\_data?
94
102
 
95
103
  > `optional` **liquid\_entity\_data?**: [`LiquidEntityData`](../enumerations/LiquidEntityData.md)[]
@@ -62,6 +62,12 @@
62
62
 
63
63
  ***
64
64
 
65
+ ### url\_or\_dp?
66
+
67
+ > `optional` **url\_or\_dp?**: `string`
68
+
69
+ ***
70
+
65
71
  ### liquid\_entity\_data?
66
72
 
67
73
  > `optional` **liquid\_entity\_data?**: [`LiquidEntityData`](../enumerations/LiquidEntityData.md)[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.371",
3
+ "version": "0.0.375",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Possible error codes returned in JOIN_CLAN_RESPONSE.errCode (cid: 575).
3
+ * Clan-protocol-specific numeric codes defined in the handler spec.
4
+ */
5
+ export enum JoinClanErrorCode {
6
+ /** No error, join completed */
7
+ JOIN_CLAN_OK = 0,
8
+ /** Invalid parameters */
9
+ JOIN_CLAN_INVALID_PARAMETERS = 1000,
10
+ /** clan_id doesn't exist for this label */
11
+ JOIN_CLAN_NOT_FOUND = 1001,
12
+ /** members_count >= capacity_limit */
13
+ JOIN_CLAN_FULL = 1002,
14
+ /** Not enough Points / Gems / Diamonds for entry fee */
15
+ JOIN_CLAN_INSUFFICIENT_FUNDS = 1003,
16
+ /** User doesn't satisfy entry_conditions / entry_segment_id */
17
+ JOIN_CLAN_SEGMENT_MISMATCH = 1004,
18
+ /** User is not in a clan */
19
+ JOIN_CLAN_USER_IS_NOT_IN_CLAN = 1005,
20
+ /** User is within the CLAN_COOLDOWN_DAYS window */
21
+ JOIN_CLAN_COOLDOWN_ACTIVE = 1006,
22
+ /** clan_status_id != 1 (clan is archived) */
23
+ JOIN_CLAN_ARCHIVED = 1007,
24
+ /** Clan joined after tournament start */
25
+ JOIN_CLAN_JOINED_AFTER_TOURNAMENT_START = 1011,
26
+ }
@@ -1,6 +1,7 @@
1
1
  import { ProtocolResponse } from '../Base/ProtocolResponse';
2
+ import { JoinClanErrorCode } from './JoinClanErrorCode';
2
3
 
3
4
  export interface JoinClanResponse extends ProtocolResponse {
4
- errCode?: number;
5
+ errCode?: JoinClanErrorCode;
5
6
  errMsg?: string;
6
7
  }
@@ -5,3 +5,4 @@ export * from './GetClanInfoRequest';
5
5
  export * from './GetClanInfoResponse';
6
6
  export * from './JoinClanRequest';
7
7
  export * from './JoinClanResponse';
8
+ export * from './JoinClanErrorCode';
@@ -19,6 +19,7 @@ export interface UICustomSection {
19
19
  mission_tabs_options?: AchMissionsTabsOptions;
20
20
  overview_missions_filter?: AchOverviewMissionsFilter;
21
21
  overview_missions_count?: number;
22
+ url_or_dp?: string;
22
23
  liquid_entity_data?: LiquidEntityData[];
23
24
  ach_tournament_id?: number;
24
25
  raffle_id?: number;
@@ -47,6 +48,7 @@ export const UICustomSectionTransform = (response: GetCustomSectionsResponse): T
47
48
  mission_tabs_options: r.mission_tabs_options,
48
49
  overview_missions_count: r.overview_missions_count,
49
50
  overview_missions_filter: r.overview_missions_filter,
51
+ url_or_dp: r.url_or_dp,
50
52
  theme: r.theme,
51
53
  ...(r.section_type_id === AchCustomSectionType.LEVELS
52
54
  ? {
@@ -1067,6 +1067,8 @@ export interface TUICustomSection {
1067
1067
  overview_missions_filter?: AchOverviewMissionsFilter;
1068
1068
  /** Quantity of missions to be shown in overview */
1069
1069
  overview_missions_count?: number;
1070
+ /** URL or DP to be used for custom section */
1071
+ url_or_dp?: string;
1070
1072
  /** Data to be used for Liquid templates */
1071
1073
  liquid_entity_data?: LiquidEntityData[];
1072
1074
  /** Tournament ID to be used for Liquid templates */