@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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum JoinClanErrorCode {
|
|
2
|
+
/** No error, join completed */
|
|
3
|
+
JOIN_CLAN_OK = 0,
|
|
4
|
+
/** Invalid parameters */
|
|
5
|
+
JOIN_CLAN_INVALID_PARAMETERS = 1000,
|
|
6
|
+
/** clan_id doesn't exist for this label */
|
|
7
|
+
JOIN_CLAN_NOT_FOUND = 1001,
|
|
8
|
+
/** members_count >= capacity_limit */
|
|
9
|
+
JOIN_CLAN_FULL = 1002,
|
|
10
|
+
/** Not enough Points / Gems / Diamonds for entry fee */
|
|
11
|
+
JOIN_CLAN_INSUFFICIENT_FUNDS = 1003,
|
|
12
|
+
/** User doesn't satisfy entry_conditions / entry_segment_id */
|
|
13
|
+
JOIN_CLAN_SEGMENT_MISMATCH = 1004,
|
|
14
|
+
/** User is not in a clan */
|
|
15
|
+
JOIN_CLAN_USER_IS_NOT_IN_CLAN = 1005,
|
|
16
|
+
/** User is within the CLAN_COOLDOWN_DAYS window */
|
|
17
|
+
JOIN_CLAN_COOLDOWN_ACTIVE = 1006,
|
|
18
|
+
/** clan_status_id != 1 (clan is archived) */
|
|
19
|
+
JOIN_CLAN_ARCHIVED = 1007,
|
|
20
|
+
/** Clan joined after tournament start */
|
|
21
|
+
JOIN_CLAN_JOINED_AFTER_TOURNAMENT_START = 1011
|
|
22
|
+
}
|
package/dist/Clans/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface UICustomSection {
|
|
|
12
12
|
mission_tabs_options?: AchMissionsTabsOptions;
|
|
13
13
|
overview_missions_filter?: AchOverviewMissionsFilter;
|
|
14
14
|
overview_missions_count?: number;
|
|
15
|
+
url_or_dp?: string;
|
|
15
16
|
liquid_entity_data?: LiquidEntityData[];
|
|
16
17
|
ach_tournament_id?: number;
|
|
17
18
|
raffle_id?: number;
|
|
@@ -998,6 +998,8 @@ export interface TUICustomSection {
|
|
|
998
998
|
overview_missions_filter?: AchOverviewMissionsFilter;
|
|
999
999
|
/** Quantity of missions to be shown in overview */
|
|
1000
1000
|
overview_missions_count?: number;
|
|
1001
|
+
/** URL or DP to be used for custom section */
|
|
1002
|
+
url_or_dp?: string;
|
|
1001
1003
|
/** Data to be used for Liquid templates */
|
|
1002
1004
|
liquid_entity_data?: LiquidEntityData[];
|
|
1003
1005
|
/** Tournament ID to be used for Liquid templates */
|
package/dist/index.js
CHANGED
|
@@ -4685,6 +4685,7 @@ var UICustomSectionTransform = function UICustomSectionTransform(response) {
|
|
|
4685
4685
|
mission_tabs_options: r.mission_tabs_options,
|
|
4686
4686
|
overview_missions_count: r.overview_missions_count,
|
|
4687
4687
|
overview_missions_filter: r.overview_missions_filter,
|
|
4688
|
+
url_or_dp: r.url_or_dp,
|
|
4688
4689
|
theme: r.theme
|
|
4689
4690
|
}, r.section_type_id === exports.AchCustomSectionType.LEVELS ? {
|
|
4690
4691
|
liquid_entity_data: r.liquid_entity_data,
|
|
@@ -7051,6 +7052,34 @@ exports.AvatarCustomizeErrorCode = void 0;
|
|
|
7051
7052
|
})(exports.AvatarCustomizeErrorCode || (exports.AvatarCustomizeErrorCode = {}));
|
|
7052
7053
|
var AvatarCustomizeErrorMessage = (_AvatarCustomizeError = {}, _AvatarCustomizeError[exports.AvatarCustomizeErrorCode.AVATAR_USER_LIMIT] = 'You have exceeded number of custom avatars creation, please try later', _AvatarCustomizeError[exports.AvatarCustomizeErrorCode.AVATAR_LABEL_LIMIT] = 'The custom avatars are not available, please try again later', _AvatarCustomizeError);
|
|
7053
7054
|
|
|
7055
|
+
/*
|
|
7056
|
+
* Possible error codes returned in JOIN_CLAN_RESPONSE.errCode (cid: 575).
|
|
7057
|
+
* Clan-protocol-specific numeric codes defined in the handler spec.
|
|
7058
|
+
*/
|
|
7059
|
+
exports.JoinClanErrorCode = void 0;
|
|
7060
|
+
(function (JoinClanErrorCode) {
|
|
7061
|
+
/** No error, join completed */
|
|
7062
|
+
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_OK"] = 0] = "JOIN_CLAN_OK";
|
|
7063
|
+
/** Invalid parameters */
|
|
7064
|
+
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_INVALID_PARAMETERS"] = 1000] = "JOIN_CLAN_INVALID_PARAMETERS";
|
|
7065
|
+
/** clan_id doesn't exist for this label */
|
|
7066
|
+
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_NOT_FOUND"] = 1001] = "JOIN_CLAN_NOT_FOUND";
|
|
7067
|
+
/** members_count >= capacity_limit */
|
|
7068
|
+
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_FULL"] = 1002] = "JOIN_CLAN_FULL";
|
|
7069
|
+
/** Not enough Points / Gems / Diamonds for entry fee */
|
|
7070
|
+
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_INSUFFICIENT_FUNDS"] = 1003] = "JOIN_CLAN_INSUFFICIENT_FUNDS";
|
|
7071
|
+
/** User doesn't satisfy entry_conditions / entry_segment_id */
|
|
7072
|
+
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_SEGMENT_MISMATCH"] = 1004] = "JOIN_CLAN_SEGMENT_MISMATCH";
|
|
7073
|
+
/** User is not in a clan */
|
|
7074
|
+
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_USER_IS_NOT_IN_CLAN"] = 1005] = "JOIN_CLAN_USER_IS_NOT_IN_CLAN";
|
|
7075
|
+
/** User is within the CLAN_COOLDOWN_DAYS window */
|
|
7076
|
+
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_COOLDOWN_ACTIVE"] = 1006] = "JOIN_CLAN_COOLDOWN_ACTIVE";
|
|
7077
|
+
/** clan_status_id != 1 (clan is archived) */
|
|
7078
|
+
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_ARCHIVED"] = 1007] = "JOIN_CLAN_ARCHIVED";
|
|
7079
|
+
/** Clan joined after tournament start */
|
|
7080
|
+
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_JOINED_AFTER_TOURNAMENT_START"] = 1011] = "JOIN_CLAN_JOINED_AFTER_TOURNAMENT_START";
|
|
7081
|
+
})(exports.JoinClanErrorCode || (exports.JoinClanErrorCode = {}));
|
|
7082
|
+
|
|
7054
7083
|
exports.AchCategoryTransform = AchCategoryTransform;
|
|
7055
7084
|
exports.ActivityLogTransform = ActivityLogTransform;
|
|
7056
7085
|
exports.AvatarCustomizeErrorMessage = AvatarCustomizeErrorMessage;
|