@smartico/public-api 0.0.13 → 0.0.14
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/Base/ClassId.d.ts +4 -0
- package/dist/Core/index.d.ts +9 -10
- package/dist/Inbox/GetInboxMessagesRequest.d.ts +1 -0
- package/dist/Inbox/InboxMessage.d.ts +3 -2
- package/dist/Inbox/MarkInboxMessageReadRequest.d.ts +5 -0
- package/dist/Inbox/MarkInboxMessageReadResponse.d.ts +4 -0
- package/dist/Inbox/MarkInboxMessageStarredRequest.d.ts +4 -0
- package/dist/Inbox/MarkInboxMessageStarredResponse.d.ts +4 -0
- package/dist/Inbox/index.d.ts +8 -5
- package/dist/Leaderboard/index.d.ts +6 -7
- package/dist/MiniGames/index.d.ts +16 -17
- package/dist/Missions/index.d.ts +12 -13
- package/dist/Store/index.d.ts +10 -11
- package/dist/Tournaments/index.d.ts +16 -17
- package/dist/index.d.ts +3 -4
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +19 -4
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Base/ClassId.ts +6 -0
- package/src/Core/CoreUtils.ts +1 -1
- package/src/Core/index.ts +9 -22
- package/src/Inbox/GetInboxMessagesRequest.ts +1 -0
- package/src/Inbox/InboxMessage.ts +5 -4
- package/src/Inbox/MarkInboxMessageReadRequest.ts +7 -0
- package/src/Inbox/MarkInboxMessageReadResponse.ts +6 -0
- package/src/Inbox/MarkInboxMessageStarredRequest.ts +6 -0
- package/src/Inbox/MarkInboxMessageStarredResponse.ts +6 -0
- package/src/Inbox/index.ts +8 -11
- package/src/Leaderboard/index.ts +6 -17
- package/src/MiniGames/index.ts +16 -35
- package/src/Missions/index.ts +12 -28
- package/src/SmarticoAPI.ts +2 -2
- package/src/Store/index.ts +10 -25
- package/src/Tournaments/index.ts +16 -35
- package/src/index.ts +5 -13
package/dist/Base/ClassId.d.ts
CHANGED
|
@@ -52,6 +52,10 @@ export declare enum ClassId {
|
|
|
52
52
|
MISSION_OPTIN_RESPONSE = 526,
|
|
53
53
|
GET_ACHIEVEMENT_USER_REQUEST = 527,
|
|
54
54
|
GET_ACHIEVEMENT_USER_RESPONSE = 528,
|
|
55
|
+
MARK_INBOX_READ_REQUEST = 529,
|
|
56
|
+
MARK_INBOX_READ_RESPONSE = 530,
|
|
57
|
+
MARK_INBOX_STARRED_REQUEST = 531,
|
|
58
|
+
MARK_INBOX_STARRED_RESPONSE = 532,
|
|
55
59
|
GET_BONUSES_REQUEST = 600,
|
|
56
60
|
GET_BONUSES_RESPONSE = 601,
|
|
57
61
|
CLAIM_BONUS_REQUEST = 602,
|
package/dist/Core/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export { GetTranslationsRequest, GetTranslationsResponse, GetLabelInfoRequest, GetLabelInfoResponse, TranslationArea, PublicLabelSettings, ResponseIdentify, ActivityTypeLimited, CoreUtils };
|
|
1
|
+
export * from './ActivityTypeLimited';
|
|
2
|
+
export * from './CoreUtils';
|
|
3
|
+
export * from './GetLabelInfoRequest';
|
|
4
|
+
export * from './GetLabelInfoResponse';
|
|
5
|
+
export * from './GetTranslationsRequest';
|
|
6
|
+
export * from './GetTranslationsResponse';
|
|
7
|
+
export * from './PublicLabelSettings';
|
|
8
|
+
export * from './ResponseIdentify';
|
|
9
|
+
export * from './TranslationArea';
|
package/dist/Inbox/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
1
|
+
export * from "./GetInboxMessagesRequest";
|
|
2
|
+
export * from "./GetInboxMessagesResponse";
|
|
3
|
+
export * from "./InboxMessage";
|
|
4
|
+
export * from "./InboxMessageType";
|
|
5
|
+
export * from "./MarkInboxMessageReadRequest";
|
|
6
|
+
export * from "./MarkInboxMessageReadResponse";
|
|
7
|
+
export * from "./MarkInboxMessageStarredRequest";
|
|
8
|
+
export * from "./MarkInboxMessageStarredResponse";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export { GetLeaderBoardsRequest, GetLeaderBoardsResponse, LeaderBoardDetails, LeaderBoardPeriodType, LeaderBoardPosition, LeaderBoardPublicMeta, };
|
|
1
|
+
export * from "./GetLeaderBoardsRequest";
|
|
2
|
+
export * from "./GetLeaderBoardsResponse";
|
|
3
|
+
export * from "./LeaderBoardDetails";
|
|
4
|
+
export * from "./LeaderBoardPeriodType";
|
|
5
|
+
export * from "./LeaderBoardPosition";
|
|
6
|
+
export * from "./LeaderBoardPublicMeta";
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export { SAWUtils, SAWAcknowledgeType, SAWBuyInType, SAWBuyInTypeName, SAWDoSpinRequest, SAWDoSpinResponse, SAWGameType, SAWGameTypeName, SAWGetTemplatesRequest, SAWGetTemplatesResponse, SAWPrize, SAWPrizeType, SAWPrizeUI, SAWTemplate, SAWTemplateUI, SAWWinSoundType, SAWWinSoundFiles, SAWAskForUsername, SAWSpinErrorCode };
|
|
1
|
+
export * from "./SAWUtils";
|
|
2
|
+
export * from "./SAWAcknowledgeType";
|
|
3
|
+
export * from "./SAWAskForUsername";
|
|
4
|
+
export * from "./SAWBuyInType";
|
|
5
|
+
export * from "./SAWDoSpinRequest";
|
|
6
|
+
export * from "./SAWDoSpinResponse";
|
|
7
|
+
export * from "./SAWGameType";
|
|
8
|
+
export * from "./SAWGetTemplatesRequest";
|
|
9
|
+
export * from "./SAWGetTemplatesResponse";
|
|
10
|
+
export * from "./SAWPrize";
|
|
11
|
+
export * from "./SAWPrizeType";
|
|
12
|
+
export * from "./SAWPrizeUI";
|
|
13
|
+
export * from "./SAWSpinErrorCode";
|
|
14
|
+
export * from "./SAWTemplate";
|
|
15
|
+
export * from "./SAWTemplateUI";
|
|
16
|
+
export * from "./SAWWinSoundType";
|
package/dist/Missions/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export { AchievementOptinRequest, AchievementOptinResponse, AchievementPublicMeta, AchievementStatus, AchievementTaskPublicMeta, AchievementTaskType, AchievementType, GetAchievementMapRequest, GetAchievementMapResponse, ReloadAchievementsEvent, UserAchievement, UserAchievementTask, };
|
|
1
|
+
export * from "./AchievementOptinRequest";
|
|
2
|
+
export * from "./AchievementOptinResponse";
|
|
3
|
+
export * from "./AchievementPublicMeta";
|
|
4
|
+
export * from "./AchievementStatus";
|
|
5
|
+
export * from "./AchievementTaskPublicMeta";
|
|
6
|
+
export * from "./AchievementTaskType";
|
|
7
|
+
export * from "./AchievementType";
|
|
8
|
+
export * from "./GetAchievementMapRequest";
|
|
9
|
+
export * from "./GetAchievementMapResponse";
|
|
10
|
+
export * from "./ReloadAchievementsEvent";
|
|
11
|
+
export * from "./UserAchievement";
|
|
12
|
+
export * from "./UserAchievementTask";
|
package/dist/Store/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { BuyStoreItemErrorCode, BuyStoreItemRequest, BuyStoreItemResponse, GetCategoriesStoreResponse, GetStoreItemsResponse, StoreCategory, StoreCategoryPublicMeta, StoreItem, StoreItemPublicMeta, StoreItemType, };
|
|
1
|
+
export * from "./BuyStoreItemErrorCode";
|
|
2
|
+
export * from "./BuyStoreItemRequest";
|
|
3
|
+
export * from "./BuyStoreItemResponse";
|
|
4
|
+
export * from "./GetCategoriesStoreResponse";
|
|
5
|
+
export * from "./GetStoreItemsResponse";
|
|
6
|
+
export * from "./StoreCategory";
|
|
7
|
+
export * from "./StoreCategoryPublicMeta";
|
|
8
|
+
export * from "./StoreItem";
|
|
9
|
+
export * from "./StoreItemPublicMeta";
|
|
10
|
+
export * from "./StoreItemType";
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export { GetTournamentInfoRequest, GetTournamentInfoResponse, GetTournamentsRequest, GetTournamentsResponse, Tournament, TournamentInstanceStatus, TournamentPlayer, TournamentPrize, TournamentPublicMeta, TournamentRegisterRequest, TournamentRegisterResponse, TournamentRegistrationError, TournamentRegistrationStatus, TournamentRegistrationType, TournamentType, TournamentUtils };
|
|
1
|
+
export * from "./GetTournamentInfoRequest";
|
|
2
|
+
export * from "./GetTournamentInfoResponse";
|
|
3
|
+
export * from "./GetTournamentsRequest";
|
|
4
|
+
export * from "./GetTournamentsResponse";
|
|
5
|
+
export * from "./Tournament";
|
|
6
|
+
export * from "./TournamentInstanceStatus";
|
|
7
|
+
export * from "./TournamentPlayer";
|
|
8
|
+
export * from "./TournamentPrize";
|
|
9
|
+
export * from "./TournamentPublicMeta";
|
|
10
|
+
export * from "./TournamentRegisterRequest";
|
|
11
|
+
export * from "./TournamentRegisterResponse";
|
|
12
|
+
export * from "./TournamentRegistrationError";
|
|
13
|
+
export * from "./TournamentRegistrationStatus";
|
|
14
|
+
export * from "./TournamentRegistrationType";
|
|
15
|
+
export * from "./TournamentType";
|
|
16
|
+
export * from "./TournamentUtils";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export * from './Base/ClassId';
|
|
2
|
+
export * from './ILogger';
|
|
3
|
+
export * from './SmarticoAPI';
|
|
4
4
|
export * from './Core';
|
|
5
5
|
export * from './Inbox';
|
|
6
6
|
export * from './Leaderboard';
|
|
@@ -8,4 +8,3 @@ export * from './MiniGames';
|
|
|
8
8
|
export * from './Missions';
|
|
9
9
|
export * from './Store';
|
|
10
10
|
export * from './Tournaments';
|
|
11
|
-
export { SmarticoAPI, MessageSender, ClassId, ILogger };
|
package/dist/index.js
CHANGED
|
@@ -54,6 +54,10 @@ exports.ClassId = void 0;
|
|
|
54
54
|
ClassId[ClassId["MISSION_OPTIN_RESPONSE"] = 526] = "MISSION_OPTIN_RESPONSE";
|
|
55
55
|
ClassId[ClassId["GET_ACHIEVEMENT_USER_REQUEST"] = 527] = "GET_ACHIEVEMENT_USER_REQUEST";
|
|
56
56
|
ClassId[ClassId["GET_ACHIEVEMENT_USER_RESPONSE"] = 528] = "GET_ACHIEVEMENT_USER_RESPONSE";
|
|
57
|
+
ClassId[ClassId["MARK_INBOX_READ_REQUEST"] = 529] = "MARK_INBOX_READ_REQUEST";
|
|
58
|
+
ClassId[ClassId["MARK_INBOX_READ_RESPONSE"] = 530] = "MARK_INBOX_READ_RESPONSE";
|
|
59
|
+
ClassId[ClassId["MARK_INBOX_STARRED_REQUEST"] = 531] = "MARK_INBOX_STARRED_REQUEST";
|
|
60
|
+
ClassId[ClassId["MARK_INBOX_STARRED_RESPONSE"] = 532] = "MARK_INBOX_STARRED_RESPONSE";
|
|
57
61
|
ClassId[ClassId["GET_BONUSES_REQUEST"] = 600] = "GET_BONUSES_REQUEST";
|
|
58
62
|
ClassId[ClassId["GET_BONUSES_RESPONSE"] = 601] = "GET_BONUSES_RESPONSE";
|
|
59
63
|
ClassId[ClassId["CLAIM_BONUS_REQUEST"] = 602] = "CLAIM_BONUS_REQUEST";
|
|
@@ -345,7 +349,7 @@ exports.ActivityTypeLimited = void 0;
|
|
|
345
349
|
|
|
346
350
|
var CoreUtils = function CoreUtils() {};
|
|
347
351
|
CoreUtils.avatarUrl = function (avatar_id, avatarDomain) {
|
|
348
|
-
if (!(avatar_id && avatar_id.startsWith('http'))) {
|
|
352
|
+
if (avatar_id !== null && avatar_id !== undefined && !(avatar_id.startsWith && avatar_id.startsWith('http'))) {
|
|
349
353
|
return avatarDomain + '/avatar/' + avatar_id;
|
|
350
354
|
} else {
|
|
351
355
|
return avatar_id;
|
|
@@ -734,11 +738,11 @@ var SmarticoAPI = /*#__PURE__*/function () {
|
|
|
734
738
|
return Promise.resolve(_this13.send(message)).then(function (response) {
|
|
735
739
|
var _response$userPositio, _response$tournamentI;
|
|
736
740
|
if ((_response$userPositio = response.userPosition) != null && _response$userPositio.avatar_id) {
|
|
737
|
-
response.userPosition.avatar_url = CoreUtils.avatarUrl(response.userPosition.
|
|
741
|
+
response.userPosition.avatar_url = CoreUtils.avatarUrl(response.userPosition.avatar_id, _this13.avatarDomain);
|
|
738
742
|
}
|
|
739
743
|
if ((_response$tournamentI = response.tournamentInfo.players) != null && _response$tournamentI.length) {
|
|
740
744
|
response.tournamentInfo.players.forEach(function (p) {
|
|
741
|
-
p.avatar_url = CoreUtils.avatarUrl(p.
|
|
745
|
+
p.avatar_url = CoreUtils.avatarUrl(p.avatar_id, _this13.avatarDomain);
|
|
742
746
|
});
|
|
743
747
|
}
|
|
744
748
|
return response;
|
|
@@ -848,6 +852,10 @@ exports.TournamentInstanceStatus = void 0;
|
|
|
848
852
|
TournamentInstanceStatus[TournamentInstanceStatus["FAILED"] = 6] = "FAILED";
|
|
849
853
|
TournamentInstanceStatus[TournamentInstanceStatus["FINALIZING"] = 7] = "FINALIZING";
|
|
850
854
|
})(exports.TournamentInstanceStatus || (exports.TournamentInstanceStatus = {}));
|
|
855
|
+
var TournamentInstanceStatusName = function TournamentInstanceStatusName(s) {
|
|
856
|
+
var _TournamentInstanceSt;
|
|
857
|
+
return (_TournamentInstanceSt = {}, _TournamentInstanceSt[exports.TournamentInstanceStatus.PUBLISHED] = "PUBLISHED", _TournamentInstanceSt[exports.TournamentInstanceStatus.REGISTER] = "REGISTER", _TournamentInstanceSt[exports.TournamentInstanceStatus.STARTED] = "STARTED", _TournamentInstanceSt[exports.TournamentInstanceStatus.FINISHED] = "FINISHED", _TournamentInstanceSt[exports.TournamentInstanceStatus.CANCELLED] = "CANCELLED", _TournamentInstanceSt[exports.TournamentInstanceStatus.FAILED] = "FAILED", _TournamentInstanceSt[exports.TournamentInstanceStatus.FINALIZING] = "FINALIZING", _TournamentInstanceSt)[s];
|
|
858
|
+
};
|
|
851
859
|
|
|
852
860
|
exports.TournamentRegistrationError = void 0;
|
|
853
861
|
(function (TournamentRegistrationError) {
|
|
@@ -937,5 +945,6 @@ exports.SAWGameTypeName = SAWGameTypeName;
|
|
|
937
945
|
exports.SAWUtils = SAWUtils;
|
|
938
946
|
exports.SAWWinSoundFiles = SAWWinSoundFiles;
|
|
939
947
|
exports.SmarticoAPI = SmarticoAPI;
|
|
948
|
+
exports.TournamentInstanceStatusName = TournamentInstanceStatusName;
|
|
940
949
|
exports.TournamentUtils = TournamentUtils;
|
|
941
950
|
//# sourceMappingURL=index.js.map
|