@smartico/public-api 0.0.183 → 0.0.185
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/SAWGameLayout.d.ts +4 -0
- package/dist/MiniGames/SAWPrize.d.ts +1 -2
- package/dist/MiniGames/SAWPrizeUI.d.ts +1 -1
- package/dist/MiniGames/SAWTemplateUI.d.ts +2 -0
- package/dist/WSAPI/WSAPI.d.ts +1 -1
- package/dist/WSAPI/WSAPITypes.d.ts +1 -2
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +3 -4
- package/dist/index.modern.mjs.map +1 -1
- package/docs/classes/WSAPI.md +1 -1
- package/docs/enums/SAWGameTypeName.md +12 -0
- package/docs/interfaces/TMiniGamePrize.md +24 -0
- package/package.json +1 -1
- package/src/MiniGames/SAWGameLayout.ts +4 -0
- package/src/MiniGames/SAWGetTemplatesResponse.ts +1 -2
- package/src/MiniGames/SAWPrize.ts +1 -2
- package/src/MiniGames/SAWPrizeUI.ts +1 -1
- package/src/MiniGames/SAWTemplateUI.ts +2 -0
- package/src/SmarticoAPI.ts +1 -1
- package/src/WSAPI/WSAPI.ts +1 -1
- package/src/WSAPI/WSAPITypes.ts +2 -4
package/docs/classes/WSAPI.md
CHANGED
|
@@ -38,6 +38,18 @@ ___
|
|
|
38
38
|
|
|
39
39
|
___
|
|
40
40
|
|
|
41
|
+
### LootboxWeekdays
|
|
42
|
+
|
|
43
|
+
• **LootboxWeekdays** = ``"lootbox_weekdays"``
|
|
44
|
+
|
|
45
|
+
___
|
|
46
|
+
|
|
47
|
+
### LootboxCalendarDays
|
|
48
|
+
|
|
49
|
+
• **LootboxCalendarDays** = ``"lootbox_calendar_days"``
|
|
50
|
+
|
|
51
|
+
___
|
|
52
|
+
|
|
41
53
|
### Unknown
|
|
42
54
|
|
|
43
55
|
• **Unknown** = ``"unknown"``
|
|
@@ -66,6 +66,12 @@ ___
|
|
|
66
66
|
|
|
67
67
|
___
|
|
68
68
|
|
|
69
|
+
### acknowledge\_type
|
|
70
|
+
|
|
71
|
+
• **acknowledge\_type**: `SAWAcknowledgeTypeName`
|
|
72
|
+
|
|
73
|
+
___
|
|
74
|
+
|
|
69
75
|
### aknowledge\_message
|
|
70
76
|
|
|
71
77
|
• **aknowledge\_message**: `string`
|
|
@@ -84,6 +90,18 @@ ___
|
|
|
84
90
|
|
|
85
91
|
___
|
|
86
92
|
|
|
93
|
+
### acknowledge\_dp\_additional
|
|
94
|
+
|
|
95
|
+
• `Optional` **acknowledge\_dp\_additional**: `string`
|
|
96
|
+
|
|
97
|
+
___
|
|
98
|
+
|
|
99
|
+
### acknowledge\_action\_title\_additional
|
|
100
|
+
|
|
101
|
+
• `Optional` **acknowledge\_action\_title\_additional**: `string`
|
|
102
|
+
|
|
103
|
+
___
|
|
104
|
+
|
|
87
105
|
### pool
|
|
88
106
|
|
|
89
107
|
• `Optional` **pool**: `number`
|
|
@@ -117,3 +135,9 @@ ___
|
|
|
117
135
|
### active\_till\_ts
|
|
118
136
|
|
|
119
137
|
• `Optional` **active\_till\_ts**: `number`
|
|
138
|
+
|
|
139
|
+
___
|
|
140
|
+
|
|
141
|
+
### relative\_period\_timezone
|
|
142
|
+
|
|
143
|
+
• `Optional` **relative\_period\_timezone**: `number`
|
package/package.json
CHANGED
|
@@ -60,8 +60,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
|
|
|
60
60
|
weekdays: p.weekdays,
|
|
61
61
|
active_from_ts: p.active_from_ts,
|
|
62
62
|
active_till_ts: p.active_till_ts,
|
|
63
|
-
|
|
64
|
-
active_till: p.active_till,
|
|
63
|
+
relative_period_timezone: p.relative_period_timezone,
|
|
65
64
|
};
|
|
66
65
|
return y;
|
|
67
66
|
}),
|
|
@@ -4,7 +4,7 @@ import { SAWWinSoundType } from './SAWWinSoundType';
|
|
|
4
4
|
export interface SAWPrizeUI {
|
|
5
5
|
position?: number; // for scratch card defines position of prize in the list
|
|
6
6
|
name: string;
|
|
7
|
-
name_original
|
|
7
|
+
name_original?: string; // keeps original name, how it came from the servers. This is needed for the Jackpot value replacemenet
|
|
8
8
|
aknowledge_message?: string;
|
|
9
9
|
sectors?: number[];
|
|
10
10
|
acknowledge_type?: SAWAcknowledgeType;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SAWAskForUsername } from './SAWAskForUsername';
|
|
2
|
+
import { SAWGameLayout } from './SAWGameLayout';
|
|
2
3
|
|
|
3
4
|
export interface SAWTemplateUI {
|
|
4
5
|
skin: string;
|
|
@@ -48,4 +49,5 @@ export interface SAWTemplateUI {
|
|
|
48
49
|
id: string;
|
|
49
50
|
content: string;
|
|
50
51
|
};
|
|
52
|
+
game_layout?: SAWGameLayout;
|
|
51
53
|
}
|
package/src/SmarticoAPI.ts
CHANGED
|
@@ -868,7 +868,7 @@ class SmarticoAPI {
|
|
|
868
868
|
response.userPosition.avatar_url = CoreUtils.avatarUrl(response.userPosition.avatar_id, this.avatarDomain);
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
if (response.tournamentInfo
|
|
871
|
+
if (response.tournamentInfo?.players?.length) {
|
|
872
872
|
response.tournamentInfo.players.forEach((p) => {
|
|
873
873
|
p.avatar_url = CoreUtils.avatarUrl(p.avatar_id, this.avatarDomain);
|
|
874
874
|
});
|
package/src/WSAPI/WSAPI.ts
CHANGED
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -53,10 +53,8 @@ export interface TMiniGamePrize {
|
|
|
53
53
|
active_from_ts?: number;
|
|
54
54
|
/* Holds time till which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp) */
|
|
55
55
|
active_till_ts?: number;
|
|
56
|
-
/*
|
|
57
|
-
|
|
58
|
-
/* Holds time till which prize will become available, for the prizes that are targeted to be available from specific date */
|
|
59
|
-
active_till?: string;
|
|
56
|
+
/* Time zone to ensure each day aligns with your local midnight. */
|
|
57
|
+
relative_period_timezone?: number;
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
/**
|