@smartico/public-api 0.0.5 → 0.0.7
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 +53 -4
- package/dist/Inbox/GetInboxMessagesRequest.d.ts +5 -0
- package/dist/Inbox/GetInboxMessagesResponse.d.ts +5 -0
- package/dist/Inbox/InboxMessage.d.ts +14 -0
- package/dist/Inbox/InboxMessageType.d.ts +11 -0
- package/dist/Inbox/index.d.ts +5 -0
- package/dist/Leaderboard/GetLeaderBoardsRequest.d.ts +7 -0
- package/dist/Leaderboard/GetLeaderBoardsResponse.d.ts +7 -0
- package/dist/Leaderboard/LeaderBoardDetails.d.ts +13 -0
- package/dist/Leaderboard/LeaderBoardPeriodType.d.ts +5 -0
- package/dist/Leaderboard/LeaderBoardPosition.d.ts +10 -0
- package/dist/Leaderboard/LeaderBoardPublicMeta.d.ts +5 -0
- package/dist/Leaderboard/index.d.ts +7 -0
- package/dist/Missions/AchievementOptinRequest.d.ts +4 -0
- package/dist/Missions/AchievementOptinResponse.d.ts +3 -0
- package/dist/Missions/AchievementPublicMeta.d.ts +15 -0
- package/dist/Missions/AchievementStatus.d.ts +8 -0
- package/dist/Missions/AchievementTaskPublicMeta.d.ts +3 -0
- package/dist/Missions/AchievementTaskType.d.ts +4 -0
- package/dist/Missions/AchievementType.d.ts +4 -0
- package/dist/Missions/GetAchievementMapRequest.d.ts +3 -0
- package/dist/Missions/GetAchievementMapResponse.d.ts +5 -0
- package/dist/Missions/ReloadAchievementsEvent.d.ts +3 -0
- package/dist/Missions/UserAchievement.d.ts +21 -0
- package/dist/Missions/UserAchievementTask.d.ts +14 -0
- package/dist/Missions/index.d.ts +13 -0
- package/dist/NodeCache.d.ts +9 -0
- package/dist/SmarticoAPI.d.ts +2 -0
- package/dist/Store/BuyShopItemErrorCode.d.ts +10 -0
- package/dist/Store/BuyShopItemRequest.d.ts +4 -0
- package/dist/Store/BuyShopItemResponse.d.ts +4 -0
- package/dist/Store/GetCategoriesShopResponse.d.ts +5 -0
- package/dist/Store/GetShopItemsResponse.d.ts +5 -0
- package/dist/Store/ShopCategory.d.ts +5 -0
- package/dist/Store/ShopCategoryPublicMeta.d.ts +4 -0
- package/dist/Store/ShopItem.d.ts +9 -0
- package/dist/Store/ShopItemPublicMeta.d.ts +10 -0
- package/dist/Store/ShopItemType.d.ts +4 -0
- package/dist/Store/index.d.ts +11 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +178 -16
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +164 -14
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +6 -4
- package/src/Base/ClassId.ts +64 -6
- package/src/Base/ProtocolMessage.ts +6 -1
- package/src/Inbox/GetInboxMessagesRequest.ts +7 -0
- package/src/Inbox/GetInboxMessagesResponse.ts +7 -0
- package/src/Inbox/InboxMessage.ts +16 -0
- package/src/Inbox/InboxMessageType.ts +13 -0
- package/src/Inbox/index.ts +11 -0
- package/src/Leaderboard/GetLeaderBoardsRequest.ts +11 -0
- package/src/Leaderboard/GetLeaderBoardsResponse.ts +8 -0
- package/src/Leaderboard/LeaderBoardDetails.ts +15 -0
- package/src/Leaderboard/LeaderBoardPeriodType.ts +5 -0
- package/src/Leaderboard/LeaderBoardPosition.ts +12 -0
- package/src/Leaderboard/LeaderBoardPublicMeta.ts +6 -0
- package/src/Leaderboard/index.ts +17 -0
- package/src/Missions/AchievementOptinRequest.ts +7 -0
- package/src/Missions/AchievementOptinResponse.ts +5 -0
- package/src/Missions/AchievementPublicMeta.ts +17 -0
- package/src/Missions/AchievementStatus.ts +9 -0
- package/src/Missions/AchievementTaskPublicMeta.ts +4 -0
- package/src/Missions/AchievementTaskType.ts +4 -0
- package/src/Missions/AchievementType.ts +5 -0
- package/src/Missions/GetAchievementMapRequest.ts +5 -0
- package/src/Missions/GetAchievementMapResponse.ts +8 -0
- package/src/Missions/ReloadAchievementsEvent.ts +5 -0
- package/src/Missions/UserAchievement.ts +25 -0
- package/src/Missions/UserAchievementTask.ts +17 -0
- package/src/Missions/index.ts +28 -0
- package/src/NodeCache.ts +45 -0
- package/src/OCache.ts +3 -2
- package/src/SmarticoAPI.ts +18 -4
- package/src/Store/BuyShopItemErrorCode.ts +10 -0
- package/src/Store/BuyShopItemRequest.ts +5 -0
- package/src/Store/BuyShopItemResponse.ts +6 -0
- package/src/Store/GetCategoriesShopResponse.ts +11 -0
- package/src/Store/GetShopItemsResponse.ts +7 -0
- package/src/Store/ShopCategory.ts +7 -0
- package/src/Store/ShopCategoryPublicMeta.ts +5 -0
- package/src/Store/ShopItem.ts +10 -0
- package/src/Store/ShopItemPublicMeta.ts +10 -0
- package/src/Store/ShopItemType.ts +5 -0
- package/src/Store/index.ts +25 -0
- package/src/index.ts +6 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { InboxMessageType } from "./InboxMessageType";
|
|
2
|
+
|
|
3
|
+
export interface InboxMessage {
|
|
4
|
+
|
|
5
|
+
createDate: string;
|
|
6
|
+
body: {
|
|
7
|
+
action: string;
|
|
8
|
+
body: string;
|
|
9
|
+
type: InboxMessageType;
|
|
10
|
+
image: string;
|
|
11
|
+
title: string;
|
|
12
|
+
html_body: string;
|
|
13
|
+
};
|
|
14
|
+
engagement_uuid: string;
|
|
15
|
+
ff: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GetInboxMessagesRequest } from "./GetInboxMessagesRequest";
|
|
2
|
+
import { GetInboxMessagesResponse } from "./GetInboxMessagesResponse";
|
|
3
|
+
import { InboxMessage } from "./InboxMessage";
|
|
4
|
+
import { InboxMessageType } from "./InboxMessageType";
|
|
5
|
+
|
|
6
|
+
export {
|
|
7
|
+
InboxMessage,
|
|
8
|
+
InboxMessageType,
|
|
9
|
+
GetInboxMessagesRequest,
|
|
10
|
+
GetInboxMessagesResponse,
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
import { LeaderBoardPeriodType } from "./LeaderBoardPeriodType";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export interface GetLeaderBoardsRequest extends ProtocolMessage {
|
|
6
|
+
// if not set will return all boards
|
|
7
|
+
period_type_id?: LeaderBoardPeriodType;
|
|
8
|
+
// can be >=1, if set will return snapshot for the previous period (1), or period before previous (2) etc
|
|
9
|
+
snapshot_offset?: number;
|
|
10
|
+
include_users?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LeaderBoardPeriodType } from "./LeaderBoardPeriodType";
|
|
2
|
+
import { LeaderBoardPosition } from "./LeaderBoardPosition";
|
|
3
|
+
import { LeaderBoardPublicMeta } from "./LeaderBoardPublicMeta";
|
|
4
|
+
|
|
5
|
+
export interface LeaderBoardDetails {
|
|
6
|
+
|
|
7
|
+
board_id: number;
|
|
8
|
+
period_type_id: LeaderBoardPeriodType;
|
|
9
|
+
create_date?: number; // 0 for the current
|
|
10
|
+
versiod_id: number; // 0 for the current
|
|
11
|
+
reward_points: number[];
|
|
12
|
+
board_public_meta: LeaderBoardPublicMeta;
|
|
13
|
+
positions: LeaderBoardPosition[];
|
|
14
|
+
userPosition: LeaderBoardPosition;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface LeaderBoardPosition {
|
|
2
|
+
|
|
3
|
+
public_username?: string;
|
|
4
|
+
user_alt_name: string; // TODO Need remove it in future
|
|
5
|
+
position_in_board: number;
|
|
6
|
+
points_accumulated: number;
|
|
7
|
+
is_me: boolean;
|
|
8
|
+
level_id: number;
|
|
9
|
+
avatar_id: string;
|
|
10
|
+
|
|
11
|
+
avatar_url?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GetLeaderBoardsRequest } from "./GetLeaderBoardsRequest";
|
|
2
|
+
import { GetLeaderBoardsResponse } from "./GetLeaderBoardsResponse";
|
|
3
|
+
import { LeaderBoardDetails } from "./LeaderBoardDetails";
|
|
4
|
+
import { LeaderBoardPeriodType } from "./LeaderBoardPeriodType";
|
|
5
|
+
import { LeaderBoardPosition } from "./LeaderBoardPosition";
|
|
6
|
+
import { LeaderBoardPublicMeta } from "./LeaderBoardPublicMeta";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
GetLeaderBoardsRequest,
|
|
11
|
+
GetLeaderBoardsResponse,
|
|
12
|
+
LeaderBoardDetails,
|
|
13
|
+
LeaderBoardPeriodType,
|
|
14
|
+
LeaderBoardPosition,
|
|
15
|
+
LeaderBoardPublicMeta,
|
|
16
|
+
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface AchievementPublicMeta {
|
|
2
|
+
|
|
3
|
+
description?: string;
|
|
4
|
+
unlock_mission_description?: string;
|
|
5
|
+
cta_text?: string;
|
|
6
|
+
cta_action?: string;
|
|
7
|
+
label_tag?: string;
|
|
8
|
+
reward?: string;
|
|
9
|
+
image_url?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
position?: number;
|
|
12
|
+
hide_tasks?: boolean;
|
|
13
|
+
hide_locked_mission?: boolean;
|
|
14
|
+
custom_section_id?: number;
|
|
15
|
+
only_in_custom_section?: boolean;
|
|
16
|
+
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
import { AchievementPublicMeta } from "./AchievementPublicMeta";
|
|
3
|
+
import { AchievementStatus } from "./AchievementStatus";
|
|
4
|
+
import { AchievementType } from "./AchievementType";
|
|
5
|
+
import { UserAchievementTask } from "./UserAchievementTask";
|
|
6
|
+
|
|
7
|
+
export interface UserAchievement {
|
|
8
|
+
|
|
9
|
+
ach_id?: number;
|
|
10
|
+
ach_type_id?: AchievementType;
|
|
11
|
+
ach_public_meta?: AchievementPublicMeta;
|
|
12
|
+
isCompleted?: boolean;
|
|
13
|
+
isLocked?: boolean;
|
|
14
|
+
requiresOptin?: boolean;
|
|
15
|
+
isOptedIn?: boolean;
|
|
16
|
+
start_date?: string; // time when mission unlocked or opted-in. Needed to calculated "remaining time" in case time_limit_ms is set
|
|
17
|
+
time_limit_ms?: number;
|
|
18
|
+
progress?: number;
|
|
19
|
+
complete_date?: string;
|
|
20
|
+
unlock_date?: string;
|
|
21
|
+
completed_tasks?: number;
|
|
22
|
+
achievementTasks?: UserAchievementTask[];
|
|
23
|
+
ach_status_id?: AchievementStatus;
|
|
24
|
+
}
|
|
25
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AchievementTaskPublicMeta } from "./AchievementTaskPublicMeta";
|
|
2
|
+
import { AchievementTaskType } from "./AchievementTaskType";
|
|
3
|
+
|
|
4
|
+
export interface UserAchievementTask {
|
|
5
|
+
|
|
6
|
+
task_id?: number;
|
|
7
|
+
task_public_meta?: AchievementTaskPublicMeta;
|
|
8
|
+
points_reward?: number;
|
|
9
|
+
task_type_id: AchievementTaskType;
|
|
10
|
+
isCompleted?: boolean;
|
|
11
|
+
userExecutedCount?: number;
|
|
12
|
+
userProgress?: number;
|
|
13
|
+
lastExecutionDate: string;
|
|
14
|
+
unlocked_by_mission_id?: number;
|
|
15
|
+
unlocked_by_level_id?: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AchievementOptinRequest } from "./AchievementOptinRequest";
|
|
2
|
+
import { AchievementOptinResponse } from "./AchievementOptinResponse";
|
|
3
|
+
import { AchievementPublicMeta } from "./AchievementPublicMeta";
|
|
4
|
+
import { AchievementStatus } from "./AchievementStatus";
|
|
5
|
+
import { AchievementTaskPublicMeta } from "./AchievementTaskPublicMeta";
|
|
6
|
+
import { AchievementTaskType } from "./AchievementTaskType";
|
|
7
|
+
import { AchievementType } from "./AchievementType";
|
|
8
|
+
import { GetAchievementMapRequest } from "./GetAchievementMapRequest";
|
|
9
|
+
import { GetAchievementMapResponse } from "./GetAchievementMapResponse";
|
|
10
|
+
import { ReloadAchievementsEvent } from "./ReloadAchievementsEvent";
|
|
11
|
+
import { UserAchievement } from "./UserAchievement";
|
|
12
|
+
import { UserAchievementTask } from "./UserAchievementTask";
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
AchievementOptinRequest,
|
|
17
|
+
AchievementOptinResponse,
|
|
18
|
+
AchievementPublicMeta,
|
|
19
|
+
AchievementStatus,
|
|
20
|
+
AchievementTaskPublicMeta,
|
|
21
|
+
AchievementTaskType,
|
|
22
|
+
AchievementType,
|
|
23
|
+
GetAchievementMapRequest,
|
|
24
|
+
GetAchievementMapResponse,
|
|
25
|
+
ReloadAchievementsEvent,
|
|
26
|
+
UserAchievement,
|
|
27
|
+
UserAchievementTask,
|
|
28
|
+
}
|
package/src/NodeCache.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
class NodeCache {
|
|
3
|
+
|
|
4
|
+
private static ttlChecker: NodeJS.Timeout;
|
|
5
|
+
|
|
6
|
+
private static cache: { [key: string] : any } = {};
|
|
7
|
+
|
|
8
|
+
constructor() {
|
|
9
|
+
if (NodeCache.ttlChecker === undefined) {
|
|
10
|
+
NodeCache.ttlChecker = setInterval(() => {
|
|
11
|
+
const now = new Date().getTime();
|
|
12
|
+
for (const key in NodeCache.cache) {
|
|
13
|
+
if (NodeCache.cache.hasOwnProperty(key)) {
|
|
14
|
+
const o = NodeCache.cache[key];
|
|
15
|
+
if (o.ttl < now) {
|
|
16
|
+
delete NodeCache.cache[key];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}, 1000);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
public get(key: string): any {
|
|
25
|
+
const o = NodeCache.cache[key];
|
|
26
|
+
if (o !== undefined && o.ttl > new Date().getTime()) {
|
|
27
|
+
return o.value;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public set(key: string, value: any, ttlSeconds: number = 60) {
|
|
32
|
+
NodeCache.cache[key] = {
|
|
33
|
+
value,
|
|
34
|
+
ttl: new Date().getTime() + ttlSeconds * 1000
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public flushAll() {
|
|
39
|
+
NodeCache.cache = {};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
export { NodeCache }
|
package/src/OCache.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import NodeCache from
|
|
1
|
+
import { NodeCache } from "./NodeCache";
|
|
2
|
+
|
|
2
3
|
|
|
3
4
|
export enum ECacheContext {
|
|
4
5
|
Translations,
|
|
@@ -18,7 +19,7 @@ export class OCache {
|
|
|
18
19
|
const key = cacheContext.toString() + '_' + JSON.stringify(oKey);
|
|
19
20
|
|
|
20
21
|
if (this.cache[cacheContext] === undefined) {
|
|
21
|
-
this.cache[cacheContext] = new NodeCache(
|
|
22
|
+
this.cache[cacheContext] = new NodeCache( );
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
return this.cache[cacheContext].get(key);
|
package/src/SmarticoAPI.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { ECacheContext, OCache } from './OCache';
|
|
|
12
12
|
import { GetTranslationsRequest, GetTranslationsResponse, ResponseIdentify, TranslationArea } from './Core';
|
|
13
13
|
import { GetLabelInfoResponse } from './Core/GetLabelInfoResponse';
|
|
14
14
|
import { GetLabelInfoRequest } from './Core/GetLabelInfoRequest';
|
|
15
|
+
import { GetInboxMessagesRequest, GetInboxMessagesResponse } from './Inbox';
|
|
15
16
|
|
|
16
17
|
const PUBLIC_API_URL = 'https://papi{ENV_ID}.smartico.ai/services/public';
|
|
17
18
|
const AVATAR_DOMAIN = 'https://img{ENV_ID}.smr.vc';
|
|
@@ -182,9 +183,9 @@ class SmarticoAPI {
|
|
|
182
183
|
|
|
183
184
|
return OCache.use<GetLabelInfoResponse>(`${this.label_api_key} - ${this.brand_api_key}`, ECacheContext.LabelInfo, async () => {
|
|
184
185
|
|
|
185
|
-
const message = this.buildMessage<GetLabelInfoResponse, GetLabelInfoRequest>(user_ext_id, ClassId.
|
|
186
|
+
const message = this.buildMessage<GetLabelInfoResponse, GetLabelInfoRequest>(user_ext_id, ClassId.INIT);
|
|
186
187
|
|
|
187
|
-
return this.send<GetLabelInfoResponse>(message, ClassId.
|
|
188
|
+
return this.send<GetLabelInfoResponse>(message, ClassId.INIT_RESPONSE)
|
|
188
189
|
|
|
189
190
|
}, cacheSec);
|
|
190
191
|
|
|
@@ -207,11 +208,11 @@ class SmarticoAPI {
|
|
|
207
208
|
|
|
208
209
|
public async coreChangeUsername(user_ext_id: string, public_username_custom: string): Promise<{ public_username_custom: string }> {
|
|
209
210
|
|
|
210
|
-
const message = this.buildMessage<any, any>(user_ext_id, ClassId.
|
|
211
|
+
const message = this.buildMessage<any, any>(user_ext_id, ClassId.CLIENT_SET_CUSTOM_USERNAME_REQUEST, {
|
|
211
212
|
public_username_custom
|
|
212
213
|
});
|
|
213
214
|
|
|
214
|
-
return this.send(message, ClassId.
|
|
215
|
+
return this.send(message, ClassId.CLIENT_SET_CUSTOM_USERNAME_RESPONSE);
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
|
|
@@ -291,6 +292,19 @@ class SmarticoAPI {
|
|
|
291
292
|
return spinAttemptResponse;
|
|
292
293
|
}
|
|
293
294
|
|
|
295
|
+
public async inboxGetMessages(user_ext_id: string, limit: number = 10, offset: number = 0): Promise<GetInboxMessagesResponse> {
|
|
296
|
+
|
|
297
|
+
const message = this.buildMessage<GetInboxMessagesRequest, GetInboxMessagesResponse>(user_ext_id, ClassId.GET_ACTIVITY_LOG_REQUEST, {
|
|
298
|
+
limit,
|
|
299
|
+
offset
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
const response = await this.send<GetInboxMessagesResponse>(message);
|
|
303
|
+
|
|
304
|
+
return response;
|
|
305
|
+
|
|
306
|
+
}
|
|
307
|
+
|
|
294
308
|
}
|
|
295
309
|
|
|
296
310
|
export { SmarticoAPI }
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export enum BuyShopItemErrorCode {
|
|
2
|
+
FAILED_TO_BUY_SHOP_ITEM = 121,
|
|
3
|
+
SHOP_NO_BALANCE = 11000,
|
|
4
|
+
SHOP_WRONG_LABEL = 11001,
|
|
5
|
+
SHOP_FAILED_TO_BUY_BONUS = 11002, // remote product restriction
|
|
6
|
+
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION = 11003, // when not visible but trying to buy. Shoudnt happen
|
|
7
|
+
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION_PURSHASE = 11004, // when visible but not matching to purchase segment
|
|
8
|
+
SHOP_FAILED_TO_BUY_MATCHING_BONUS = 11005,
|
|
9
|
+
SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ShopItemPublicMeta } from "./ShopItemPublicMeta";
|
|
2
|
+
import { ShopItemType } from "./ShopItemType";
|
|
3
|
+
|
|
4
|
+
export interface ShopItem {
|
|
5
|
+
id: number;
|
|
6
|
+
itemTypeId: ShopItemType;
|
|
7
|
+
itemPublicMeta: ShopItemPublicMeta;
|
|
8
|
+
categoryIds?: number[];
|
|
9
|
+
canBuy?: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BuyShopItemErrorCode } from "./BuyShopItemErrorCode";
|
|
2
|
+
import { BuyShopItemRequest } from "./BuyShopItemRequest";
|
|
3
|
+
import { BuyShopItemResponse } from "./BuyShopItemResponse";
|
|
4
|
+
import { GetCategoriesShopResponse } from "./GetCategoriesShopResponse";
|
|
5
|
+
import { GetShopItemsResponse } from "./GetShopItemsResponse";
|
|
6
|
+
import { ShopCategory } from "./ShopCategory";
|
|
7
|
+
import { ShopCategoryPublicMeta } from "./ShopCategoryPublicMeta";
|
|
8
|
+
import { ShopItem } from "./ShopItem";
|
|
9
|
+
import { ShopItemPublicMeta } from "./ShopItemPublicMeta";
|
|
10
|
+
import { ShopItemType } from "./ShopItemType";
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
BuyShopItemErrorCode,
|
|
15
|
+
BuyShopItemRequest,
|
|
16
|
+
BuyShopItemResponse,
|
|
17
|
+
GetCategoriesShopResponse,
|
|
18
|
+
GetShopItemsResponse,
|
|
19
|
+
ShopCategory,
|
|
20
|
+
ShopCategoryPublicMeta,
|
|
21
|
+
ShopItem,
|
|
22
|
+
ShopItemPublicMeta,
|
|
23
|
+
ShopItemType,
|
|
24
|
+
|
|
25
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -2,8 +2,13 @@ import { ClassId } from './Base/ClassId'
|
|
|
2
2
|
import { ILogger } from './ILogger';
|
|
3
3
|
import { SmarticoAPI } from './SmarticoAPI'
|
|
4
4
|
|
|
5
|
-
export * from './MiniGames';
|
|
6
5
|
export * from './Core';
|
|
6
|
+
export * from './Inbox';
|
|
7
|
+
export * from './Leaderboard';
|
|
8
|
+
export * from './MiniGames';
|
|
9
|
+
export * from './Missions';
|
|
10
|
+
export * from './Store';
|
|
11
|
+
|
|
7
12
|
|
|
8
13
|
export {
|
|
9
14
|
SmarticoAPI,
|