@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.
- package/dist/Clans/JoinClanErrorCode.d.ts +22 -0
- package/dist/Clans/JoinClanResponse.d.ts +2 -1
- package/dist/Clans/index.d.ts +1 -0
- package/dist/CustomSections/UICustomSection.d.ts +1 -0
- package/dist/WSAPI/WSAPITypes.d.ts +2 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +30 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/interfaces/SAWTemplateUI.md +13 -0
- package/docs/api/interfaces/TUICustomSection.md +8 -0
- package/docs/api/interfaces/UICustomSection.md +6 -0
- package/package.json +1 -1
- package/src/Clans/JoinClanErrorCode.ts +26 -0
- package/src/Clans/JoinClanResponse.ts +2 -1
- package/src/Clans/index.ts +1 -0
- package/src/CustomSections/UICustomSection.ts +2 -0
- package/src/WSAPI/WSAPITypes.ts +2 -0
|
@@ -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)[]
|
package/package.json
CHANGED
|
@@ -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
|
+
}
|
package/src/Clans/index.ts
CHANGED
|
@@ -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
|
? {
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -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 */
|