protobuf-platform 1.2.282 → 1.2.283
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/index.js +6 -0
- package/package.json +1 -1
- package/poker/poker.proto +113 -0
- package/poker/poker_grpc_pb.js +223 -0
- package/poker/poker_pb.js +3458 -0
- package/update_protobuf.sh +1 -0
package/index.js
CHANGED
|
@@ -35,6 +35,8 @@ const SchedulerService = require('./scheduler/scheduler_grpc_pb');
|
|
|
35
35
|
const SchedulerServiceMessages = require('./scheduler/scheduler_pb');
|
|
36
36
|
const SportService = require('./sport/sport_grpc_pb');
|
|
37
37
|
const SportServiceMessage = require('./sport/sport_pb');
|
|
38
|
+
const PokerService = require('./poker/poker_grpc_pb');
|
|
39
|
+
const PokerServiceMessage = require('./poker/poker_pb');
|
|
38
40
|
module.exports = {
|
|
39
41
|
gRPC: gRPC,
|
|
40
42
|
maxSendMessageLength: 10388608,
|
|
@@ -108,4 +110,8 @@ module.exports = {
|
|
|
108
110
|
service: SportService,
|
|
109
111
|
messages: SportServiceMessage
|
|
110
112
|
},
|
|
113
|
+
poker: {
|
|
114
|
+
service: PokerService,
|
|
115
|
+
messages: PokerServiceMessage
|
|
116
|
+
},
|
|
111
117
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package sport;
|
|
4
|
+
|
|
5
|
+
service Sport {
|
|
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
|
+
}
|
|
18
|
+
|
|
19
|
+
message PingRequest { string ping = 1; }
|
|
20
|
+
message PongResponse { string pong = 1; }
|
|
21
|
+
|
|
22
|
+
message PaginationRequest {
|
|
23
|
+
int32 limit = 1;
|
|
24
|
+
int32 offset = 2;
|
|
25
|
+
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
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var poker_pb = require('./poker_pb.js');
|
|
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) {
|
|
30
|
+
if (!(arg instanceof poker_pb.PingRequest)) {
|
|
31
|
+
throw new Error('Expected argument of type sport.PingRequest');
|
|
32
|
+
}
|
|
33
|
+
return Buffer.from(arg.serializeBinary());
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function deserialize_sport_PingRequest(buffer_arg) {
|
|
37
|
+
return poker_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function serialize_sport_PongResponse(arg) {
|
|
41
|
+
if (!(arg instanceof poker_pb.PongResponse)) {
|
|
42
|
+
throw new Error('Expected argument of type sport.PongResponse');
|
|
43
|
+
}
|
|
44
|
+
return Buffer.from(arg.serializeBinary());
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function deserialize_sport_PongResponse(buffer_arg) {
|
|
48
|
+
return poker_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
49
|
+
}
|
|
50
|
+
|
|
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
|
+
|
|
139
|
+
|
|
140
|
+
var SportService = exports.SportService = {
|
|
141
|
+
checkConnection: {
|
|
142
|
+
path: '/sport.Sport/checkConnection',
|
|
143
|
+
requestStream: false,
|
|
144
|
+
responseStream: false,
|
|
145
|
+
requestType: poker_pb.PingRequest,
|
|
146
|
+
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,
|
|
220
|
+
},
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
exports.SportClient = grpc.makeGenericClientConstructor(SportService, 'Sport');
|