protobuf-platform 1.2.283 → 1.2.284

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.283",
3
+ "version": "1.2.284",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/poker/poker.proto CHANGED
@@ -1,19 +1,9 @@
1
1
  syntax = "proto3";
2
2
 
3
- package sport;
3
+ package poker;
4
4
 
5
- service Sport {
5
+ service Poker {
6
6
  rpc checkConnection(PingRequest) returns (PongResponse);
7
- // Launch Betby sportsbook widget for user or guest.
8
- rpc launchBetby(LaunchBetbyRequest) returns (LaunchBetbyResponse);
9
- rpc runSelfValidationBetby(selfValidationBetbyRequest) returns (selfValidationBetbyResponse);
10
- rpc checkSelfValidationBetby(selfValidationBetbyRequest) returns (selfValidationBetbyResponse);
11
- // Vendor callback.
12
- rpc processedVendorActionCallback(VendorActionRequest) returns (VendorActionResponse);
13
-
14
- // Sport meta
15
- rpc getSportCategoriesByIds(SportCategoriesIds) returns (SportCategoriesResponse);
16
- rpc getSportTypesByIds(SportTypesIds) returns (SportTypesResponse);
17
7
  }
18
8
 
19
9
  message PingRequest { string ping = 1; }
@@ -23,91 +13,4 @@ message PaginationRequest {
23
13
  int32 limit = 1;
24
14
  int32 offset = 2;
25
15
  optional string order = 3;
26
- }
27
-
28
- // Launch request for Betby sportsbook.
29
- message LaunchBetbyRequest {
30
- // Optional: internal user identifier, empty for guest.
31
- optional int32 user_id = 1;
32
- optional string user_public_id = 2;
33
-
34
- // Player currency, e.g. "EUR".
35
- optional string currency = 3;
36
-
37
- // Player language, e.g. "en-US".
38
- optional string language = 4;
39
-
40
- // URL to return player after sportsbook session end.
41
- optional string return_url = 5;
42
-
43
- // Client IP address for Betby (X-Client-Ip).
44
- optional string client_ip = 6;
45
-
46
- optional string player_name = 7;
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;
51
- }
52
-
53
- // Launch response with rendered Betby widget.
54
- message LaunchBetbyResponse {
55
- // Rendered HTML snippet to inject on frontend.
56
- string html = 1;
57
-
58
- // Launch mode: "guest" or "player".
59
- optional string mode = 2;
60
- }
61
-
62
- // Vendor
63
- message VendorActionRequest {
64
- string data = 1;
65
- }
66
-
67
- message VendorActionResponse {
68
- string data = 1;
69
- }
70
-
71
- // Self validation Betby
72
- message selfValidationBetbyRequest {
73
- optional string session_id = 1;
74
- optional string player_id = 2;
75
- optional string currency = 3;
76
- optional string task_id = 4;
77
- }
78
-
79
- message selfValidationBetbyResponse {
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;
113
16
  }
@@ -4,220 +4,41 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var poker_pb = require('./poker_pb.js');
6
6
 
7
- function serialize_sport_LaunchBetbyRequest(arg) {
8
- if (!(arg instanceof poker_pb.LaunchBetbyRequest)) {
9
- throw new Error('Expected argument of type sport.LaunchBetbyRequest');
10
- }
11
- return Buffer.from(arg.serializeBinary());
12
- }
13
-
14
- function deserialize_sport_LaunchBetbyRequest(buffer_arg) {
15
- return poker_pb.LaunchBetbyRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
- }
17
-
18
- function serialize_sport_LaunchBetbyResponse(arg) {
19
- if (!(arg instanceof poker_pb.LaunchBetbyResponse)) {
20
- throw new Error('Expected argument of type sport.LaunchBetbyResponse');
21
- }
22
- return Buffer.from(arg.serializeBinary());
23
- }
24
-
25
- function deserialize_sport_LaunchBetbyResponse(buffer_arg) {
26
- return poker_pb.LaunchBetbyResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
- }
28
-
29
- function serialize_sport_PingRequest(arg) {
7
+ function serialize_poker_PingRequest(arg) {
30
8
  if (!(arg instanceof poker_pb.PingRequest)) {
31
- throw new Error('Expected argument of type sport.PingRequest');
9
+ throw new Error('Expected argument of type poker.PingRequest');
32
10
  }
33
11
  return Buffer.from(arg.serializeBinary());
34
12
  }
35
13
 
36
- function deserialize_sport_PingRequest(buffer_arg) {
14
+ function deserialize_poker_PingRequest(buffer_arg) {
37
15
  return poker_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
38
16
  }
39
17
 
40
- function serialize_sport_PongResponse(arg) {
18
+ function serialize_poker_PongResponse(arg) {
41
19
  if (!(arg instanceof poker_pb.PongResponse)) {
42
- throw new Error('Expected argument of type sport.PongResponse');
20
+ throw new Error('Expected argument of type poker.PongResponse');
43
21
  }
44
22
  return Buffer.from(arg.serializeBinary());
45
23
  }
46
24
 
47
- function deserialize_sport_PongResponse(buffer_arg) {
25
+ function deserialize_poker_PongResponse(buffer_arg) {
48
26
  return poker_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
27
  }
50
28
 
51
- function serialize_sport_SportCategoriesIds(arg) {
52
- if (!(arg instanceof poker_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 poker_pb.SportCategoriesIds.deserializeBinary(new Uint8Array(buffer_arg));
60
- }
61
-
62
- function serialize_sport_SportCategoriesResponse(arg) {
63
- if (!(arg instanceof poker_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 poker_pb.SportCategoriesResponse.deserializeBinary(new Uint8Array(buffer_arg));
71
- }
72
-
73
- function serialize_sport_SportTypesIds(arg) {
74
- if (!(arg instanceof poker_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 poker_pb.SportTypesIds.deserializeBinary(new Uint8Array(buffer_arg));
82
- }
83
-
84
- function serialize_sport_SportTypesResponse(arg) {
85
- if (!(arg instanceof poker_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 poker_pb.SportTypesResponse.deserializeBinary(new Uint8Array(buffer_arg));
93
- }
94
-
95
- function serialize_sport_VendorActionRequest(arg) {
96
- if (!(arg instanceof poker_pb.VendorActionRequest)) {
97
- throw new Error('Expected argument of type sport.VendorActionRequest');
98
- }
99
- return Buffer.from(arg.serializeBinary());
100
- }
101
-
102
- function deserialize_sport_VendorActionRequest(buffer_arg) {
103
- return poker_pb.VendorActionRequest.deserializeBinary(new Uint8Array(buffer_arg));
104
- }
105
-
106
- function serialize_sport_VendorActionResponse(arg) {
107
- if (!(arg instanceof poker_pb.VendorActionResponse)) {
108
- throw new Error('Expected argument of type sport.VendorActionResponse');
109
- }
110
- return Buffer.from(arg.serializeBinary());
111
- }
112
-
113
- function deserialize_sport_VendorActionResponse(buffer_arg) {
114
- return poker_pb.VendorActionResponse.deserializeBinary(new Uint8Array(buffer_arg));
115
- }
116
-
117
- function serialize_sport_selfValidationBetbyRequest(arg) {
118
- if (!(arg instanceof poker_pb.selfValidationBetbyRequest)) {
119
- throw new Error('Expected argument of type sport.selfValidationBetbyRequest');
120
- }
121
- return Buffer.from(arg.serializeBinary());
122
- }
123
-
124
- function deserialize_sport_selfValidationBetbyRequest(buffer_arg) {
125
- return poker_pb.selfValidationBetbyRequest.deserializeBinary(new Uint8Array(buffer_arg));
126
- }
127
-
128
- function serialize_sport_selfValidationBetbyResponse(arg) {
129
- if (!(arg instanceof poker_pb.selfValidationBetbyResponse)) {
130
- throw new Error('Expected argument of type sport.selfValidationBetbyResponse');
131
- }
132
- return Buffer.from(arg.serializeBinary());
133
- }
134
-
135
- function deserialize_sport_selfValidationBetbyResponse(buffer_arg) {
136
- return poker_pb.selfValidationBetbyResponse.deserializeBinary(new Uint8Array(buffer_arg));
137
- }
138
29
 
139
-
140
- var SportService = exports.SportService = {
30
+ var PokerService = exports.PokerService = {
141
31
  checkConnection: {
142
- path: '/sport.Sport/checkConnection',
32
+ path: '/poker.Poker/checkConnection',
143
33
  requestStream: false,
144
34
  responseStream: false,
145
35
  requestType: poker_pb.PingRequest,
146
36
  responseType: poker_pb.PongResponse,
147
- requestSerialize: serialize_sport_PingRequest,
148
- requestDeserialize: deserialize_sport_PingRequest,
149
- responseSerialize: serialize_sport_PongResponse,
150
- responseDeserialize: deserialize_sport_PongResponse,
151
- },
152
- // Launch Betby sportsbook widget for user or guest.
153
- launchBetby: {
154
- path: '/sport.Sport/launchBetby',
155
- requestStream: false,
156
- responseStream: false,
157
- requestType: poker_pb.LaunchBetbyRequest,
158
- responseType: poker_pb.LaunchBetbyResponse,
159
- requestSerialize: serialize_sport_LaunchBetbyRequest,
160
- requestDeserialize: deserialize_sport_LaunchBetbyRequest,
161
- responseSerialize: serialize_sport_LaunchBetbyResponse,
162
- responseDeserialize: deserialize_sport_LaunchBetbyResponse,
163
- },
164
- runSelfValidationBetby: {
165
- path: '/sport.Sport/runSelfValidationBetby',
166
- requestStream: false,
167
- responseStream: false,
168
- requestType: poker_pb.selfValidationBetbyRequest,
169
- responseType: poker_pb.selfValidationBetbyResponse,
170
- requestSerialize: serialize_sport_selfValidationBetbyRequest,
171
- requestDeserialize: deserialize_sport_selfValidationBetbyRequest,
172
- responseSerialize: serialize_sport_selfValidationBetbyResponse,
173
- responseDeserialize: deserialize_sport_selfValidationBetbyResponse,
174
- },
175
- checkSelfValidationBetby: {
176
- path: '/sport.Sport/checkSelfValidationBetby',
177
- requestStream: false,
178
- responseStream: false,
179
- requestType: poker_pb.selfValidationBetbyRequest,
180
- responseType: poker_pb.selfValidationBetbyResponse,
181
- requestSerialize: serialize_sport_selfValidationBetbyRequest,
182
- requestDeserialize: deserialize_sport_selfValidationBetbyRequest,
183
- responseSerialize: serialize_sport_selfValidationBetbyResponse,
184
- responseDeserialize: deserialize_sport_selfValidationBetbyResponse,
185
- },
186
- // Vendor callback.
187
- processedVendorActionCallback: {
188
- path: '/sport.Sport/processedVendorActionCallback',
189
- requestStream: false,
190
- responseStream: false,
191
- requestType: poker_pb.VendorActionRequest,
192
- responseType: poker_pb.VendorActionResponse,
193
- requestSerialize: serialize_sport_VendorActionRequest,
194
- requestDeserialize: deserialize_sport_VendorActionRequest,
195
- responseSerialize: serialize_sport_VendorActionResponse,
196
- responseDeserialize: deserialize_sport_VendorActionResponse,
197
- },
198
- // Sport meta
199
- getSportCategoriesByIds: {
200
- path: '/sport.Sport/getSportCategoriesByIds',
201
- requestStream: false,
202
- responseStream: false,
203
- requestType: poker_pb.SportCategoriesIds,
204
- responseType: poker_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: poker_pb.SportTypesIds,
215
- responseType: poker_pb.SportTypesResponse,
216
- requestSerialize: serialize_sport_SportTypesIds,
217
- requestDeserialize: deserialize_sport_SportTypesIds,
218
- responseSerialize: serialize_sport_SportTypesResponse,
219
- responseDeserialize: deserialize_sport_SportTypesResponse,
37
+ requestSerialize: serialize_poker_PingRequest,
38
+ requestDeserialize: deserialize_poker_PingRequest,
39
+ responseSerialize: serialize_poker_PongResponse,
40
+ responseDeserialize: deserialize_poker_PongResponse,
220
41
  },
221
42
  };
222
43
 
223
- exports.SportClient = grpc.makeGenericClientConstructor(SportService, 'Sport');
44
+ exports.PokerClient = grpc.makeGenericClientConstructor(PokerService, 'Poker');