@smartico/public-api 0.0.216 → 0.0.217

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.
Files changed (45) hide show
  1. package/dist/Base/ClassId.d.ts +4 -0
  2. package/dist/Raffle/GetDrawResponse.d.ts +5 -0
  3. package/dist/Raffle/GetDrawRunRequest.d.ts +5 -0
  4. package/dist/Raffle/GetDrawRunResponse.d.ts +5 -0
  5. package/dist/Raffle/GetRafflesRequest.d.ts +4 -0
  6. package/dist/Raffle/GetRafflesResponse.d.ts +5 -0
  7. package/dist/Raffle/Raffle.d.ts +34 -0
  8. package/dist/Raffle/RaffleDraw.d.ts +70 -0
  9. package/dist/Raffle/RafflePrize.d.ts +97 -0
  10. package/dist/Raffle/RafflePrizeWinner.d.ts +9 -0
  11. package/dist/Raffle/RaffleTicket.d.ts +5 -0
  12. package/dist/Raffle/index.d.ts +9 -0
  13. package/dist/SmarticoAPI.d.ts +2 -0
  14. package/dist/WSAPI/WSAPI.d.ts +2 -0
  15. package/dist/index.js +28 -1
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.modern.mjs +18 -1
  18. package/dist/index.modern.mjs.map +1 -1
  19. package/docs/README.md +9 -0
  20. package/docs/classes/WSAPI.md +11 -1
  21. package/docs/interfaces/GetDrawRunRequest.md +49 -0
  22. package/docs/interfaces/GetDrawRunResponse.md +63 -0
  23. package/docs/interfaces/GetRafflesRequest.md +37 -0
  24. package/docs/interfaces/GetRafflesResponse.md +63 -0
  25. package/docs/interfaces/Raffle.md +59 -0
  26. package/docs/interfaces/RaffleDraw.md +124 -0
  27. package/docs/interfaces/RafflePrize.md +137 -0
  28. package/docs/interfaces/RafflePrizeWinner.md +31 -0
  29. package/docs/interfaces/RaffleTicket.md +13 -0
  30. package/package.json +1 -1
  31. package/src/Base/ClassId.ts +13 -0
  32. package/src/MiniGames/SAWGetTemplatesResponse.ts +1 -1
  33. package/src/Raffle/GetDrawRunRequest.ts +6 -0
  34. package/src/Raffle/GetDrawRunResponse.ts +6 -0
  35. package/src/Raffle/GetRafflesRequest.ts +5 -0
  36. package/src/Raffle/GetRafflesResponse.ts +6 -0
  37. package/src/Raffle/Raffle.ts +41 -0
  38. package/src/Raffle/RaffleDraw.ts +92 -0
  39. package/src/Raffle/RafflePrize.ts +117 -0
  40. package/src/Raffle/RafflePrizeWinner.ts +11 -0
  41. package/src/Raffle/RaffleTicket.ts +9 -0
  42. package/src/Raffle/index.ts +9 -0
  43. package/src/SmarticoAPI.ts +11 -0
  44. package/src/WSAPI/WSAPI.ts +6 -0
  45. package/tsconfig.json +1 -0
package/docs/README.md CHANGED
@@ -31,6 +31,15 @@
31
31
  - [JackpotsOptinResponse](interfaces/JackpotsOptinResponse.md)
32
32
  - [JackpotsOptoutRequest](interfaces/JackpotsOptoutRequest.md)
33
33
  - [JackpotsOptoutResponse](interfaces/JackpotsOptoutResponse.md)
34
+ - [GetDrawRunRequest](interfaces/GetDrawRunRequest.md)
35
+ - [GetDrawRunResponse](interfaces/GetDrawRunResponse.md)
36
+ - [GetRafflesRequest](interfaces/GetRafflesRequest.md)
37
+ - [GetRafflesResponse](interfaces/GetRafflesResponse.md)
38
+ - [Raffle](interfaces/Raffle.md)
39
+ - [RaffleDraw](interfaces/RaffleDraw.md)
40
+ - [RafflePrize](interfaces/RafflePrize.md)
41
+ - [RafflePrizeWinner](interfaces/RafflePrizeWinner.md)
42
+ - [RaffleTicket](interfaces/RaffleTicket.md)
34
43
  - [TMiniGamePrize](interfaces/TMiniGamePrize.md)
35
44
  - [TMiniGamePlayResult](interfaces/TMiniGamePlayResult.md)
36
45
  - [TMiniGamePlayBatchResult](interfaces/TMiniGamePlayBatchResult.md)
@@ -487,7 +487,7 @@ Sends the acknowledge request with specific client_request_id from minigame hist
487
487
  **Example**:
488
488
  ```
489
489
  _smartico.api.miniGameWinAcknowledgeRequest('2a189322-31bb-4119-b943-bx7868ff8dc3').then((result) => {
490
- console.log(result);
490
+ console.log(result);
491
491
  });
492
492
  ```
493
493
 
@@ -986,3 +986,13 @@ _smartico.vapi('EN').getRelatedItemsForGame('gold-slot2').then((result) => {
986
986
  #### Returns
987
987
 
988
988
  `Promise`\<`GetRelatedAchTourResponse`\>
989
+
990
+ ___
991
+
992
+ ### getRaffles
993
+
994
+ ▸ **getRaffles**(): `Promise`\<[`GetRafflesResponse`](../interfaces/GetRafflesResponse.md)\>
995
+
996
+ #### Returns
997
+
998
+ `Promise`\<[`GetRafflesResponse`](../interfaces/GetRafflesResponse.md)\>
@@ -0,0 +1,49 @@
1
+ # Interface: GetDrawRunRequest
2
+
3
+ ## Hierarchy
4
+
5
+ - `ProtocolMessage`
6
+
7
+ ↳ **`GetDrawRunRequest`**
8
+
9
+ ## Properties
10
+
11
+ ### cid
12
+
13
+ • **cid**: `number`
14
+
15
+ #### Inherited from
16
+
17
+ ProtocolMessage.cid
18
+
19
+ ___
20
+
21
+ ### ts
22
+
23
+ • `Optional` **ts**: `number`
24
+
25
+ #### Inherited from
26
+
27
+ ProtocolMessage.ts
28
+
29
+ ___
30
+
31
+ ### uuid
32
+
33
+ • `Optional` **uuid**: `string`
34
+
35
+ #### Inherited from
36
+
37
+ ProtocolMessage.uuid
38
+
39
+ ___
40
+
41
+ ### raffle\_id
42
+
43
+ • **raffle\_id**: `number`
44
+
45
+ ___
46
+
47
+ ### instance\_id
48
+
49
+ • **instance\_id**: `number`
@@ -0,0 +1,63 @@
1
+ # Interface: GetDrawRunResponse
2
+
3
+ ## Hierarchy
4
+
5
+ - `ProtocolResponse`
6
+
7
+ ↳ **`GetDrawRunResponse`**
8
+
9
+ ## Properties
10
+
11
+ ### cid
12
+
13
+ • **cid**: `number`
14
+
15
+ #### Inherited from
16
+
17
+ ProtocolResponse.cid
18
+
19
+ ___
20
+
21
+ ### ts
22
+
23
+ • `Optional` **ts**: `number`
24
+
25
+ #### Inherited from
26
+
27
+ ProtocolResponse.ts
28
+
29
+ ___
30
+
31
+ ### uuid
32
+
33
+ • `Optional` **uuid**: `string`
34
+
35
+ #### Inherited from
36
+
37
+ ProtocolResponse.uuid
38
+
39
+ ___
40
+
41
+ ### errCode
42
+
43
+ • `Optional` **errCode**: `number`
44
+
45
+ #### Inherited from
46
+
47
+ ProtocolResponse.errCode
48
+
49
+ ___
50
+
51
+ ### errMsg
52
+
53
+ • `Optional` **errMsg**: `string`
54
+
55
+ #### Inherited from
56
+
57
+ ProtocolResponse.errMsg
58
+
59
+ ___
60
+
61
+ ### draw
62
+
63
+ • **draw**: [`RaffleDraw`](RaffleDraw.md)
@@ -0,0 +1,37 @@
1
+ # Interface: GetRafflesRequest
2
+
3
+ ## Hierarchy
4
+
5
+ - `ProtocolMessage`
6
+
7
+ ↳ **`GetRafflesRequest`**
8
+
9
+ ## Properties
10
+
11
+ ### cid
12
+
13
+ • **cid**: `number`
14
+
15
+ #### Inherited from
16
+
17
+ ProtocolMessage.cid
18
+
19
+ ___
20
+
21
+ ### ts
22
+
23
+ • `Optional` **ts**: `number`
24
+
25
+ #### Inherited from
26
+
27
+ ProtocolMessage.ts
28
+
29
+ ___
30
+
31
+ ### uuid
32
+
33
+ • `Optional` **uuid**: `string`
34
+
35
+ #### Inherited from
36
+
37
+ ProtocolMessage.uuid
@@ -0,0 +1,63 @@
1
+ # Interface: GetRafflesResponse
2
+
3
+ ## Hierarchy
4
+
5
+ - `ProtocolResponse`
6
+
7
+ ↳ **`GetRafflesResponse`**
8
+
9
+ ## Properties
10
+
11
+ ### cid
12
+
13
+ • **cid**: `number`
14
+
15
+ #### Inherited from
16
+
17
+ ProtocolResponse.cid
18
+
19
+ ___
20
+
21
+ ### ts
22
+
23
+ • `Optional` **ts**: `number`
24
+
25
+ #### Inherited from
26
+
27
+ ProtocolResponse.ts
28
+
29
+ ___
30
+
31
+ ### uuid
32
+
33
+ • `Optional` **uuid**: `string`
34
+
35
+ #### Inherited from
36
+
37
+ ProtocolResponse.uuid
38
+
39
+ ___
40
+
41
+ ### errCode
42
+
43
+ • `Optional` **errCode**: `number`
44
+
45
+ #### Inherited from
46
+
47
+ ProtocolResponse.errCode
48
+
49
+ ___
50
+
51
+ ### errMsg
52
+
53
+ • `Optional` **errMsg**: `string`
54
+
55
+ #### Inherited from
56
+
57
+ ProtocolResponse.errMsg
58
+
59
+ ___
60
+
61
+ ### items
62
+
63
+ • **items**: [`Raffle`](Raffle.md)[]
@@ -0,0 +1,59 @@
1
+ # Interface: Raffle
2
+
3
+ ## Properties
4
+
5
+ ### raffle\_id
6
+
7
+ • **raffle\_id**: `number`
8
+
9
+ ID of the Raffle template
10
+
11
+ ___
12
+
13
+ ### public\_meta
14
+
15
+ • **public\_meta**: `RafflePublicMeta`
16
+
17
+ Meta information about raffle for the presentation on UI
18
+
19
+ ___
20
+
21
+ ### start\_date\_ts
22
+
23
+ • **start\_date\_ts**: `number`
24
+
25
+ Date of start
26
+
27
+ ___
28
+
29
+ ### end\_date\_ts
30
+
31
+ • **end\_date\_ts**: `number`
32
+
33
+ Date of end
34
+
35
+ ___
36
+
37
+ ### max\_tickets\_count
38
+
39
+ • **max\_tickets\_count**: `number`
40
+
41
+ Maximum numer of tickets that can be given to all users for the whole period of raffle
42
+
43
+ ___
44
+
45
+ ### current\_tickets\_count
46
+
47
+ • **current\_tickets\_count**: `number`
48
+
49
+ Number of tickets that are already given to all users for this raffle
50
+
51
+ ___
52
+
53
+ ### draws
54
+
55
+ • **draws**: [`RaffleDraw`](RaffleDraw.md)[]
56
+
57
+ List of draws that are available for this raffle.
58
+ For example, if the raffle is containg one hourly draw, one daily draw and one draw on fixed date like 01/01/2022,
59
+ Then the list will always return 3 draws, no matter if the draws are already executed or they are in the future.
@@ -0,0 +1,124 @@
1
+ # Interface: RaffleDraw
2
+
3
+ ## Properties
4
+
5
+ ### draw\_definition\_id
6
+
7
+ • **draw\_definition\_id**: `number`
8
+
9
+ Id of the Draw definition, for the repetative draws (e.g. daily), this number will be the same for all draws that are repeating daily
10
+ (internal name: schedule_id)
11
+
12
+ ___
13
+
14
+ ### public\_meta
15
+
16
+ • **public\_meta**: `RaffleDrawPublicMeta`
17
+
18
+ Meta information of the Draw for the presentaiton in UI
19
+
20
+ ___
21
+
22
+ ### prizes
23
+
24
+ • **prizes**: [`RafflePrize`](RafflePrize.md)[]
25
+
26
+ Information about prizes in the draw
27
+
28
+ ___
29
+
30
+ ### current\_state
31
+
32
+ • **current\_state**: `RaffleDrawInstanceState`
33
+
34
+ State of current instance of Draw
35
+
36
+ ___
37
+
38
+ ### current\_instance\_id
39
+
40
+ • `Optional` **current\_instance\_id**: `number`
41
+
42
+ If current draw is in State Executed, this field will contain the ID of instance
43
+ If current draw is in State Open or WinnerSelection, this field will be undefined
44
+
45
+ ___
46
+
47
+ ### current\_execution\_ts
48
+
49
+ • `Optional` **current\_execution\_ts**: `number`
50
+
51
+ Date/time of the draw execution if the draw is in the State Executed
52
+
53
+ ___
54
+
55
+ ### previous\_execution\_ts
56
+
57
+ • `Optional` **previous\_execution\_ts**: `number`
58
+
59
+ Date of the previously executed draw (if there is such)
60
+
61
+ ___
62
+
63
+ ### previous\_execution\_instance\_id
64
+
65
+ • `Optional` **previous\_execution\_instance\_id**: `number`
66
+
67
+ Unique ID of the previusly executed draw (if there is such)
68
+
69
+ ___
70
+
71
+ ### next\_execution\_ts
72
+
73
+ • `Optional` **next\_execution\_ts**: `number`
74
+
75
+ Date/time of the next draw (if there is such)
76
+
77
+ ___
78
+
79
+ ### tickets\_time\_back\_ts
80
+
81
+ • `Optional` **tickets\_time\_back\_ts**: `number`
82
+
83
+ Date/time starting from which the tickets will participate in the upcoming draw
84
+ This value need to be taken into account with next_execute_ts field value, for example
85
+ Next draw is at 10:00, tickets_time_back_ts is 9:00, so all tickets that are collected after 9:00 will participate in the draw at 10:00
86
+ If this value is not present, then all tickets that are collected ever for this raffle will participate in the next draw.
87
+ (internally this value is calculated as next_execute_ts - time_back_period_ms)
88
+
89
+ ___
90
+
91
+ ### allow\_multi\_prize\_per\_ticket
92
+
93
+ • **allow\_multi\_prize\_per\_ticket**: `boolean`
94
+
95
+ Field is indicating if same ticket can win multiple prizes in the same draw
96
+ For example there are 3 types of prizes in the draw - iPhone, iPad, MacBook
97
+ If this field is true, then one ticket can win all 3 prizes (depending on the chances of course),
98
+ if false, then one ticket can win only one prize.
99
+ The distribution of the prizes is start from top (assuming on top are the most valuable prizes) to bottom (less valuable prizes)
100
+ If specific prize has multiple values, e.g. we have 3 iPhones,
101
+ then the same ticket can win only one prize of a kind, but can win multiple prizes of different kind (if allow_multi_prize_per_ticket is true)
102
+
103
+ ___
104
+
105
+ ### total\_tickets\_count
106
+
107
+ • **total\_tickets\_count**: `number`
108
+
109
+ The number of tickets that are already given to all users for this instance of draw.
110
+ In other words tickets that are collected between tickets_time_back_ts and current time (or till current_execution_ts is the instance is executed).
111
+
112
+ ___
113
+
114
+ ### my\_tickets\_count
115
+
116
+ • **my\_tickets\_count**: `number`
117
+
118
+ The number of tickets collected by current user for this instance of draw.
119
+
120
+ ___
121
+
122
+ ### my\_last\_tickets
123
+
124
+ • **my\_last\_tickets**: [`RaffleTicket`](RaffleTicket.md)[]
@@ -0,0 +1,137 @@
1
+ # Interface: RafflePrize
2
+
3
+ Represents a prize in a draw.
4
+
5
+ ## Properties
6
+
7
+ ### prize\_id
8
+
9
+ • **prize\_id**: `string`
10
+
11
+ The unique identifier for the prize definition
12
+
13
+ ___
14
+
15
+ ### public\_meta
16
+
17
+ • **public\_meta**: `RafflePrizePublicMeta`
18
+
19
+ Meta information about the prize for presentation in the UI.
20
+
21
+ ___
22
+
23
+ ### prizes\_per\_run
24
+
25
+ • **prizes\_per\_run**: `number`
26
+
27
+ The number of prizes available per run of the draw.
28
+ E.g. if the draw is run daily, this is the number of prizes available each day, for example 3 iPhones.
29
+
30
+ ___
31
+
32
+ ### prizes\_per\_run\_actual
33
+
34
+ • **prizes\_per\_run\_actual**: `number`
35
+
36
+ The actual number of prizes for the current instance.
37
+ This value is taking into account follwing values:
38
+ - min_required_total_tickets,
39
+ - multiply_prizes_per_each_x_tickets
40
+ - stock_items_per_draw
41
+ - total_tickets_count (from Draw instance)
42
+ - cap_prizes_per_run
43
+ For example:
44
+ - prizes_per_run = 1
45
+ - min_required_total_tickets = 1000
46
+ - multiply_prizes_per_each_x_tickets = 1000
47
+ - stock_items_per_draw = 5
48
+ - total_tickets_count = 7000
49
+ - cap_prizes_per_run = 6
50
+ prizes_per_run_actual will be 5, because
51
+ 7000 tickets are collected, so 7 iPhones are available, but the cap is 6 and the stock is 5.
52
+
53
+ ___
54
+
55
+ ### chances\_to\_win\_perc
56
+
57
+ • **chances\_to\_win\_perc**: `number`
58
+
59
+ The chances to win the prize by current player.
60
+ Calculated as the ratio of the number of tickets collected by the current player to the
61
+ total number of tickets collected by all players and multiplied by number of actual prizes of this kind.
62
+
63
+ ___
64
+
65
+ ### min\_required\_total\_tickets
66
+
67
+ • `Optional` **min\_required\_total\_tickets**: `number`
68
+
69
+ The minimum number of total tickets collected during draw period required to unlock the prize.
70
+ If the number of tickets collected is less than this value, the prize is not available.
71
+ Under total tickets we understand the number of tickets collected by all users.
72
+ The 'draw period' is the time between the tickets_time_back_ts value of the draw and the current time.
73
+
74
+ ___
75
+
76
+ ### multiply\_prizes\_per\_each\_x\_tickets
77
+
78
+ • `Optional` **multiply\_prizes\_per\_each\_x\_tickets**: `number`
79
+
80
+ The number of additional prizes awarded for each multiple of a certain number of tickets.
81
+ E.g. if the prize is 1 iPhone and the value is set to 1000, then for every 1000 tickets collected, an additional iPhone is awarded.
82
+ If min_required_total_tickets is set to 1000, then next iPhone is awarded when 2000 tickets are collected, and so on.
83
+ If min_required_total_tickets is not set, then the next iPhone will be awarded when 1000 tickets are collected.
84
+
85
+ ___
86
+
87
+ ### requires\_claim
88
+
89
+ • **requires\_claim**: `boolean`
90
+
91
+ Indicates whether the prize requires a claim action from the user.
92
+
93
+ ___
94
+
95
+ ### min\_required\_tickets\_for\_user
96
+
97
+ • **min\_required\_tickets\_for\_user**: `number`
98
+
99
+ The minimum number of tickets a user must have to be eligible for the prize.
100
+ For example iPhone prize may require 10 tickets to be collected, only users with 10 or more tickets will be eligible for the prize.
101
+ More tickets are better, as they increase the chances of winning.
102
+
103
+ ___
104
+
105
+ ### cap\_prizes\_per\_run
106
+
107
+ • `Optional` **cap\_prizes\_per\_run**: `number`
108
+
109
+ The maximum number of prizes that can be given withing one instance/run of draw.
110
+ For example the prize is iPhone and multiply_prizes_per_each_x_tickets is set to 1000,
111
+ cap_prizes_per_run is set to 3, and the total number of tickets collected is 7000.
112
+ In this case, the prizes_per_run_actual will be limitted by 3
113
+
114
+ ___
115
+
116
+ ### priority
117
+
118
+ • **priority**: `number`
119
+
120
+ The priority of the prize. The low number means higher priority (e.g. 1 is higher priority than 2).
121
+ If there are multiple prizes available, the prize with the highest priority (lowest number) will be awarded first.
122
+
123
+ ___
124
+
125
+ ### stock\_items\_per\_draw
126
+
127
+ • `Optional` **stock\_items\_per\_draw**: `number`
128
+
129
+ Optional field that indicates total remaining number of the prize for all draws of the type.
130
+ For example, the Daily draw has 1 iPhone daily, and the total number of iPhones is 10.
131
+ the stock_items_per_draw will be decreasing by 1 each day (assuming there is enough tickets and it is won every day), and when it reaches 0, the prize is not available anymore.
132
+
133
+ ___
134
+
135
+ ### winners
136
+
137
+ • **winners**: [`RafflePrizeWinner`](RafflePrizeWinner.md)[]
@@ -0,0 +1,31 @@
1
+ # Interface: RafflePrizeWinner
2
+
3
+ ## Properties
4
+
5
+ ### user\_id
6
+
7
+ • **user\_id**: `number`
8
+
9
+ ___
10
+
11
+ ### public\_username
12
+
13
+ • `Optional` **public\_username**: `string`
14
+
15
+ ___
16
+
17
+ ### avatar\_id
18
+
19
+ • **avatar\_id**: `string`
20
+
21
+ ___
22
+
23
+ ### avatar\_url
24
+
25
+ • `Optional` **avatar\_url**: `string`
26
+
27
+ ___
28
+
29
+ ### ticket
30
+
31
+ • **ticket**: [`RaffleTicket`](RaffleTicket.md)
@@ -0,0 +1,13 @@
1
+ # Interface: RaffleTicket
2
+
3
+ ## Properties
4
+
5
+ ### id
6
+
7
+ • **id**: `number`
8
+
9
+ ___
10
+
11
+ ### s
12
+
13
+ • **s**: `string`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.216",
3
+ "version": "0.0.217",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -148,6 +148,19 @@ export enum ClassId {
148
148
 
149
149
  JP_WIN_PUSH = 808,
150
150
 
151
+
152
+ RAF_GET_RAFFLES_REQUEST = 900,
153
+ RAF_GET_RAFFLES_RESPONSE = 901,
154
+ RAF_GET_DRAW_REQUEST = 904,
155
+ RAF_GET_DRAW_RESPONSE = 905,
156
+
157
+ /*
158
+ RAF_GET_TICKETS_REQUEST = 902,
159
+ RAF_GET_TICKETS_RESPONSE = 903,
160
+
161
+ RAF_CLAIM_PRIZE_REQUEST = 906,
162
+ */
163
+
151
164
  /*
152
165
  !Important, if adding new messages that are 'acting' on behalf of the client,
153
166
  you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
@@ -71,7 +71,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
71
71
  relative_period_timezone: p.relative_period_timezone,
72
72
  is_surcharge: p.is_surcharge,
73
73
  is_deleted: p.is_deleted,
74
- custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
74
+ custom_data: IntUtils.JsonOrText(p.saw_prize_ui_definition?.custom_data),
75
75
  prize_modifiers: p.saw_prize_ui_definition.prize_modifiers,
76
76
  allow_split_decimal: p.saw_prize_ui_definition.allow_split_decimal,
77
77
  hide_prize_from_history: p.saw_prize_ui_definition.hide_prize_from_history
@@ -0,0 +1,6 @@
1
+ import { ProtocolMessage } from '../Base/ProtocolMessage';
2
+
3
+ export interface GetDrawRunRequest extends ProtocolMessage {
4
+ raffle_id: number;
5
+ run_id: number;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { ProtocolResponse } from '../Base/ProtocolResponse';
2
+ import { RaffleDraw } from './RaffleDraw';
3
+
4
+ export interface GetDrawRunResponse extends ProtocolResponse {
5
+ draw: RaffleDraw;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { ProtocolMessage } from '../Base/ProtocolMessage';
2
+
3
+ export interface GetRafflesRequest extends ProtocolMessage {
4
+ skip_public_meta?: boolean
5
+ }
@@ -0,0 +1,6 @@
1
+ import { ProtocolResponse } from '../Base/ProtocolResponse';
2
+ import { Raffle } from './Raffle';
3
+
4
+ export interface GetRafflesResponse extends ProtocolResponse {
5
+ items: Raffle[];
6
+ }