@smartico/public-api 0.0.159 → 0.0.161
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/MiniGames/SAWEventSawPush.d.ts +1 -1
- package/dist/MiniGames/SAWPrize.d.ts +1 -0
- package/dist/WSAPI/WSAPITypes.d.ts +3 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +2 -0
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/TMiniGamePrize.md +6 -0
- package/docs/interfaces/TMissionOrBadge.md +8 -0
- package/package.json +1 -1
- package/src/MiniGames/SAWEventSawPush.ts +1 -1
- package/src/MiniGames/SAWGetTemplatesResponse.ts +1 -0
- package/src/MiniGames/SAWPrize.ts +1 -0
- package/src/Missions/UserAchievement.ts +1 -0
- package/src/WSAPI/WSAPITypes.ts +6 -0
|
@@ -101,6 +101,14 @@ The amount of time in milliseconds that user has to complete the mission
|
|
|
101
101
|
|
|
102
102
|
___
|
|
103
103
|
|
|
104
|
+
### active\_from\_ts
|
|
105
|
+
|
|
106
|
+
• **active\_from\_ts**: `number`
|
|
107
|
+
|
|
108
|
+
Holds time from which mission will become available, for the missions that are targeted to be available from specific date/time
|
|
109
|
+
|
|
110
|
+
___
|
|
111
|
+
|
|
104
112
|
### dt\_start
|
|
105
113
|
|
|
106
114
|
• **dt\_start**: `number`
|
package/package.json
CHANGED
|
@@ -50,6 +50,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
|
|
|
50
50
|
acknowledge_dp: p.saw_prize_ui_definition.acknowledge_dp,
|
|
51
51
|
acknowledge_action_title: p.saw_prize_ui_definition.acknowledge_action_title,
|
|
52
52
|
pool: p.pool,
|
|
53
|
+
pool_initial: p.pool_initial,
|
|
53
54
|
wins_count: p.wins_count,
|
|
54
55
|
};
|
|
55
56
|
return y;
|
|
@@ -62,6 +62,7 @@ export const UserAchievementTransform = (items: UserAchievement[]): TMissionOrBa
|
|
|
62
62
|
is_requires_optin: r.requiresOptin,
|
|
63
63
|
is_opted_in: r.isOptedIn,
|
|
64
64
|
time_limit_ms: r.time_limit_ms,
|
|
65
|
+
active_from_ts: r.active_from_ts,
|
|
65
66
|
dt_start: r.start_date_ts,
|
|
66
67
|
reward: r.ach_public_meta.reward,
|
|
67
68
|
progress: r.progress,
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -37,6 +37,8 @@ export interface TMiniGamePrize {
|
|
|
37
37
|
acknowledge_action_title: string;
|
|
38
38
|
/* Number of items in stock */
|
|
39
39
|
pool?: number;
|
|
40
|
+
/* Initial number of items in stock */
|
|
41
|
+
pool_initial?: number;
|
|
40
42
|
/* Number of wins in game */
|
|
41
43
|
wins_count?: number;
|
|
42
44
|
}
|
|
@@ -436,6 +438,10 @@ export interface TMissionOrBadge {
|
|
|
436
438
|
is_opted_in: boolean;
|
|
437
439
|
/** The amount of time in milliseconds that user has to complete the mission */
|
|
438
440
|
time_limit_ms: number;
|
|
441
|
+
|
|
442
|
+
/** Holds time from which mission will become available, for the missions that are targeted to be available from specific date/time */
|
|
443
|
+
active_from_ts: number;
|
|
444
|
+
|
|
439
445
|
/** The date when the mission was started, relevant for the time limited missions */
|
|
440
446
|
dt_start: number;
|
|
441
447
|
/** The progress of the mission in percents calculated as the aggregated relative percentage of all tasks */
|