protobuf-platform 1.0.299 → 1.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.299",
3
+ "version": "1.1.0",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -84,12 +84,45 @@ message TournamentStatusItemsResponse {
84
84
  optional int32 total_pages = 2;
85
85
  optional int32 total_items = 3;
86
86
  }
87
+ message ActivationRuleItem {
88
+ optional int32 id = 1;
89
+ optional int32 tournament_id = 2;
90
+ optional string currency = 3;
91
+ optional int32 deposit_min_sum = 4;
92
+ optional int32 bets_min_count = 5;
93
+ optional int32 user_category_id = 6;
94
+ optional int32 email_confirmed = 7;
95
+ optional int32 phone_confirmed = 8;
96
+ optional int32 kyc_confirmed = 9;
97
+ optional int32 ranking_points = 10;
98
+ optional int32 loyalty_points = 11;
99
+ optional int32 coins = 12;
100
+ }
87
101
  message TournamentActivationRuleRequest {
88
-
102
+ repeated ActivationRuleItem items = 1;
103
+ }
104
+ message ScoringRule {
105
+ optional int32 id = 1;
106
+ optional int32 tournament_id = 2;
107
+ optional string metric = 3;
108
+ optional float multiplier = 4;
109
+ optional float min_value = 5;
110
+ optional float max_value = 6;
111
+ optional float weight = 7;
112
+ optional int32 is_active = 8;
89
113
  }
90
114
  message TournamentScoringRuleRequest {
91
-
115
+ repeated ScoringRule items = 1;
116
+ }
117
+ message RewardItem {
118
+ optional int32 id = 1;
119
+ optional int32 tournament_id = 2;
120
+ optional int32 place = 3;
121
+ optional int32 loyalty_points = 4;
122
+ optional int32 ranking_points = 5;
123
+ optional int32 coins = 6;
124
+ optional int32 bonus_id = 7;
92
125
  }
93
126
  message TournamentRewardsRequest {
94
-
127
+ repeated RewardItem items = 1;
95
128
  }