@smartico/public-api 0.0.335 → 0.0.336
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/Raffle/RaffleDraw.d.ts +4 -0
- package/dist/WSAPI/WSAPITypes.d.ts +4 -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/RaffleDraw.md +8 -0
- package/docs/interfaces/TRaffleDraw.md +8 -0
- package/docs/interfaces/TStoreItem.md +1 -1
- package/package.json +1 -1
- package/src/Raffle/GetDrawRunResponse.ts +1 -0
- package/src/Raffle/GetRafflesResponse.ts +1 -0
- package/src/Raffle/RaffleDraw.ts +4 -0
- package/src/WSAPI/WSAPITypes.ts +4 -0
|
@@ -91,6 +91,10 @@ interface RaffleDraw {
|
|
|
91
91
|
* If true, the user needs to opt-in to the raffle before they can participate.
|
|
92
92
|
*/
|
|
93
93
|
requires_optin: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* If true, the draw is active and can be participated in.
|
|
96
|
+
*/
|
|
97
|
+
is_active: boolean;
|
|
94
98
|
/**
|
|
95
99
|
* The number of winners to return
|
|
96
100
|
*/
|
|
@@ -1146,6 +1146,10 @@ export interface TRaffleDraw {
|
|
|
1146
1146
|
* If true, the user needs to opt-in to the raffle before they can participate.
|
|
1147
1147
|
*/
|
|
1148
1148
|
requires_optin: boolean;
|
|
1149
|
+
/**
|
|
1150
|
+
* If true, the draw is active and can be participated in.
|
|
1151
|
+
*/
|
|
1152
|
+
is_active: boolean;
|
|
1149
1153
|
/**
|
|
1150
1154
|
* The number of winners to return
|
|
1151
1155
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1980,6 +1980,7 @@ var drawTransform = function drawTransform(items) {
|
|
|
1980
1980
|
my_last_tickets: ticketsTransform(item.my_last_tickets),
|
|
1981
1981
|
user_opted_in: Boolean(item.user_opted_in),
|
|
1982
1982
|
requires_optin: Boolean(item.requires_optin),
|
|
1983
|
+
is_active: Boolean(item.is_active),
|
|
1983
1984
|
winners_limit: item.winners_limit,
|
|
1984
1985
|
winners_offset: item.winners_offset,
|
|
1985
1986
|
winners_total: item.winners_total
|
|
@@ -2033,6 +2034,7 @@ var drawRunTransform = function drawRunTransform(res) {
|
|
|
2033
2034
|
my_last_tickets: ticketsTransform(res.draw.my_last_tickets),
|
|
2034
2035
|
user_opted_in: Boolean(res.draw.user_opted_in),
|
|
2035
2036
|
requires_optin: Boolean(res.draw.requires_optin),
|
|
2037
|
+
is_active: Boolean(res.draw.is_active),
|
|
2036
2038
|
winners_limit: res.draw.winners_limit,
|
|
2037
2039
|
winners_offset: res.draw.winners_offset,
|
|
2038
2040
|
winners_total: res.draw.winners_total
|