@smartico/public-api 0.0.234 → 0.0.235
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.
|
@@ -71,7 +71,7 @@ interface RaffleDraw {
|
|
|
71
71
|
* Next draw is at 10:00, ticket_start_date is 9:00, so all tickets that are collected after 9:00 will participate in the draw at 10:00
|
|
72
72
|
* (internally this value is calculated as next_execute_ts - ticket_start_date)
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
ticket_start_ts: number;
|
|
75
75
|
/** Field is indicating if same ticket can win multiple prizes in the same draw
|
|
76
76
|
* For example there are 3 types of prizes in the draw - iPhone, iPad, MacBook
|
|
77
77
|
* If this field is true, then one ticket can win all 3 prizes (depending on the chances of course),
|
|
@@ -106,13 +106,15 @@ interface RaffleDrawRun {
|
|
|
106
106
|
public_meta: RaffleDrawPublicMeta;
|
|
107
107
|
/** Date/time of the draw execution */
|
|
108
108
|
execution_ts: number;
|
|
109
|
+
/** Actual Date/time of the draw execution */
|
|
110
|
+
actual_execution_ts: number;
|
|
109
111
|
/**
|
|
110
112
|
* Date/time starting from which the tickets will participate in the upcoming draw
|
|
111
113
|
* This value need to be taken into account with next_execute_ts field value, for example
|
|
112
114
|
* Next draw is at 10:00, ticket_start_date is 9:00, so all tickets that are collected after 9:00 will participate in the draw at 10:00
|
|
113
115
|
* (internally this value is calculated as next_execute_ts - ticket_start_date)
|
|
114
116
|
*/
|
|
115
|
-
|
|
117
|
+
ticket_start_ts: number;
|
|
116
118
|
/**
|
|
117
119
|
* Shows if user has won a prize in a current run
|
|
118
120
|
*/
|
package/package.json
CHANGED
package/src/Raffle/RaffleDraw.ts
CHANGED
|
@@ -85,7 +85,7 @@ interface RaffleDraw {
|
|
|
85
85
|
* Next draw is at 10:00, ticket_start_date is 9:00, so all tickets that are collected after 9:00 will participate in the draw at 10:00
|
|
86
86
|
* (internally this value is calculated as next_execute_ts - ticket_start_date)
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
ticket_start_ts: number;
|
|
89
89
|
|
|
90
90
|
/** Field is indicating if same ticket can win multiple prizes in the same draw
|
|
91
91
|
* For example there are 3 types of prizes in the draw - iPhone, iPad, MacBook
|
|
@@ -135,13 +135,16 @@ interface RaffleDrawRun {
|
|
|
135
135
|
/** Date/time of the draw execution */
|
|
136
136
|
execution_ts: number;
|
|
137
137
|
|
|
138
|
+
/** Actual Date/time of the draw execution */
|
|
139
|
+
actual_execution_ts: number;
|
|
140
|
+
|
|
138
141
|
/**
|
|
139
142
|
* Date/time starting from which the tickets will participate in the upcoming draw
|
|
140
143
|
* This value need to be taken into account with next_execute_ts field value, for example
|
|
141
144
|
* Next draw is at 10:00, ticket_start_date is 9:00, so all tickets that are collected after 9:00 will participate in the draw at 10:00
|
|
142
145
|
* (internally this value is calculated as next_execute_ts - ticket_start_date)
|
|
143
146
|
*/
|
|
144
|
-
|
|
147
|
+
ticket_start_ts: number;
|
|
145
148
|
|
|
146
149
|
/**
|
|
147
150
|
* Shows if user has won a prize in a current run
|