protobuf-platform 1.2.128 → 1.2.132

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.2.128",
3
+ "version": "1.2.132",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/sport/sport.proto CHANGED
@@ -8,16 +8,23 @@ service Sport {
8
8
  rpc launchBetby(LaunchBetbyRequest) returns (LaunchBetbyResponse);
9
9
  rpc runSelfValidationBetby(selfValidationBetbyRequest) returns (selfValidationBetbyResponse);
10
10
  rpc checkSelfValidationBetby(selfValidationBetbyRequest) returns (selfValidationBetbyResponse);
11
- //Vendor
11
+ // Vendor callback.
12
12
  rpc processedVendorActionCallback(VendorActionRequest) returns (VendorActionResponse);
13
+
14
+ // Sport meta
15
+ rpc getSportCategoriesByIds(SportCategoriesIds) returns (SportCategoriesResponse);
16
+ rpc getSportTypesByIds(SportTypesIds) returns (SportTypesResponse);
13
17
  }
18
+
14
19
  message PingRequest { string ping = 1; }
15
20
  message PongResponse { string pong = 1; }
21
+
16
22
  message PaginationRequest {
17
23
  int32 limit = 1;
18
24
  int32 offset = 2;
19
25
  optional string order = 3;
20
26
  }
27
+
21
28
  // Launch request for Betby sportsbook.
22
29
  message LaunchBetbyRequest {
23
30
  // Optional: internal user identifier, empty for guest.
@@ -38,6 +45,9 @@ message LaunchBetbyRequest {
38
45
 
39
46
  optional string player_name = 7;
40
47
  optional string session_id = 8;
48
+ optional int32 sticky_top = 9;
49
+ optional int32 bet_slip_offset_top = 10;
50
+ optional int32 bet_slip_offset_bottom = 11;
41
51
  }
42
52
 
43
53
  // Launch response with rendered Betby widget.
@@ -48,20 +58,56 @@ message LaunchBetbyResponse {
48
58
  // Launch mode: "guest" or "player".
49
59
  optional string mode = 2;
50
60
  }
51
- //Vendor
61
+
62
+ // Vendor
52
63
  message VendorActionRequest {
53
64
  string data = 1;
54
65
  }
66
+
55
67
  message VendorActionResponse {
56
68
  string data = 1;
57
69
  }
58
- //Self validation BetBy
70
+
71
+ // Self validation Betby
59
72
  message selfValidationBetbyRequest {
60
73
  optional string session_id = 1;
61
74
  optional string player_id = 2;
62
75
  optional string currency = 3;
63
76
  optional string task_id = 4;
64
77
  }
78
+
65
79
  message selfValidationBetbyResponse {
66
80
  string result = 1;
81
+ }
82
+
83
+ // Sport meta: categories
84
+ message SportCategoryItem {
85
+ int32 id = 1;
86
+ string title = 2;
87
+ optional string group = 3;
88
+ optional bool is_live_supported = 4;
89
+ }
90
+
91
+ message SportCategoriesIds {
92
+ repeated int32 ids = 1;
93
+ }
94
+
95
+ message SportCategoriesResponse {
96
+ repeated SportCategoryItem items = 1;
97
+ }
98
+
99
+ // Sport meta: types
100
+ message SportTypeItem {
101
+ int32 id = 1;
102
+ string title = 2;
103
+ optional int32 sport_category_id = 3;
104
+ optional string market_group = 4;
105
+ }
106
+
107
+ message SportTypesIds {
108
+ repeated int32 ids = 1;
109
+ }
110
+
111
+ message SportTypesResponse {
112
+ repeated SportTypeItem items = 1;
67
113
  }
@@ -48,6 +48,50 @@ function deserialize_sport_PongResponse(buffer_arg) {
48
48
  return sport_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
49
  }
50
50
 
51
+ function serialize_sport_SportCategoriesIds(arg) {
52
+ if (!(arg instanceof sport_pb.SportCategoriesIds)) {
53
+ throw new Error('Expected argument of type sport.SportCategoriesIds');
54
+ }
55
+ return Buffer.from(arg.serializeBinary());
56
+ }
57
+
58
+ function deserialize_sport_SportCategoriesIds(buffer_arg) {
59
+ return sport_pb.SportCategoriesIds.deserializeBinary(new Uint8Array(buffer_arg));
60
+ }
61
+
62
+ function serialize_sport_SportCategoriesResponse(arg) {
63
+ if (!(arg instanceof sport_pb.SportCategoriesResponse)) {
64
+ throw new Error('Expected argument of type sport.SportCategoriesResponse');
65
+ }
66
+ return Buffer.from(arg.serializeBinary());
67
+ }
68
+
69
+ function deserialize_sport_SportCategoriesResponse(buffer_arg) {
70
+ return sport_pb.SportCategoriesResponse.deserializeBinary(new Uint8Array(buffer_arg));
71
+ }
72
+
73
+ function serialize_sport_SportTypesIds(arg) {
74
+ if (!(arg instanceof sport_pb.SportTypesIds)) {
75
+ throw new Error('Expected argument of type sport.SportTypesIds');
76
+ }
77
+ return Buffer.from(arg.serializeBinary());
78
+ }
79
+
80
+ function deserialize_sport_SportTypesIds(buffer_arg) {
81
+ return sport_pb.SportTypesIds.deserializeBinary(new Uint8Array(buffer_arg));
82
+ }
83
+
84
+ function serialize_sport_SportTypesResponse(arg) {
85
+ if (!(arg instanceof sport_pb.SportTypesResponse)) {
86
+ throw new Error('Expected argument of type sport.SportTypesResponse');
87
+ }
88
+ return Buffer.from(arg.serializeBinary());
89
+ }
90
+
91
+ function deserialize_sport_SportTypesResponse(buffer_arg) {
92
+ return sport_pb.SportTypesResponse.deserializeBinary(new Uint8Array(buffer_arg));
93
+ }
94
+
51
95
  function serialize_sport_VendorActionRequest(arg) {
52
96
  if (!(arg instanceof sport_pb.VendorActionRequest)) {
53
97
  throw new Error('Expected argument of type sport.VendorActionRequest');
@@ -139,7 +183,7 @@ launchBetby: {
139
183
  responseSerialize: serialize_sport_selfValidationBetbyResponse,
140
184
  responseDeserialize: deserialize_sport_selfValidationBetbyResponse,
141
185
  },
142
- // Vendor
186
+ // Vendor callback.
143
187
  processedVendorActionCallback: {
144
188
  path: '/sport.Sport/processedVendorActionCallback',
145
189
  requestStream: false,
@@ -151,6 +195,29 @@ processedVendorActionCallback: {
151
195
  responseSerialize: serialize_sport_VendorActionResponse,
152
196
  responseDeserialize: deserialize_sport_VendorActionResponse,
153
197
  },
198
+ // Sport meta
199
+ getSportCategoriesByIds: {
200
+ path: '/sport.Sport/getSportCategoriesByIds',
201
+ requestStream: false,
202
+ responseStream: false,
203
+ requestType: sport_pb.SportCategoriesIds,
204
+ responseType: sport_pb.SportCategoriesResponse,
205
+ requestSerialize: serialize_sport_SportCategoriesIds,
206
+ requestDeserialize: deserialize_sport_SportCategoriesIds,
207
+ responseSerialize: serialize_sport_SportCategoriesResponse,
208
+ responseDeserialize: deserialize_sport_SportCategoriesResponse,
209
+ },
210
+ getSportTypesByIds: {
211
+ path: '/sport.Sport/getSportTypesByIds',
212
+ requestStream: false,
213
+ responseStream: false,
214
+ requestType: sport_pb.SportTypesIds,
215
+ responseType: sport_pb.SportTypesResponse,
216
+ requestSerialize: serialize_sport_SportTypesIds,
217
+ requestDeserialize: deserialize_sport_SportTypesIds,
218
+ responseSerialize: serialize_sport_SportTypesResponse,
219
+ responseDeserialize: deserialize_sport_SportTypesResponse,
220
+ },
154
221
  };
155
222
 
156
223
  exports.SportClient = grpc.makeGenericClientConstructor(SportService, 'Sport');