protobuf-platform 1.2.286 → 1.2.287

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.286",
3
+ "version": "1.2.287",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/poker/poker.proto CHANGED
@@ -4,6 +4,8 @@ package poker;
4
4
 
5
5
  service Poker {
6
6
  rpc checkConnection(PingRequest) returns (PongResponse);
7
+ rpc createSession(CreateSessionRequest) returns (CreateSessionResponse);
8
+ rpc processProviderCallback(ProcessProviderCallbackRequest) returns (ProcessProviderCallbackResponse);
7
9
  }
8
10
 
9
11
  message PingRequest { string ping = 1; }
@@ -13,4 +15,49 @@ message PaginationRequest {
13
15
  int32 limit = 1;
14
16
  int32 offset = 2;
15
17
  optional string order = 3;
16
- }
18
+ }
19
+
20
+ message CreateSessionRequest {
21
+ string user_id = 1;
22
+ string user_public_id = 2;
23
+ string nickname = 3;
24
+ string currency = 4;
25
+ string locale = 5;
26
+ string ip = 6;
27
+ string user_agent = 7;
28
+ string device_type = 8;
29
+ string platform = 9;
30
+ optional string session_id = 10;
31
+ optional string return_url = 11;
32
+ optional string game_code = 12;
33
+ }
34
+
35
+ message CreateSessionResponse {
36
+ bool status = 1;
37
+ optional string launch_url = 2;
38
+ optional string provider_session_id = 3;
39
+ optional string provider_user_id = 4;
40
+ optional string error = 5;
41
+ }
42
+
43
+ message CallbackHeader {
44
+ string key = 1;
45
+ string value = 2;
46
+ }
47
+
48
+ message ProcessProviderCallbackRequest {
49
+ string provider = 1;
50
+ string path = 2;
51
+ string method = 3;
52
+ string raw_body = 4;
53
+ repeated CallbackHeader headers = 5;
54
+ optional string remote_ip = 6;
55
+ optional string query_string = 7;
56
+ }
57
+
58
+ message ProcessProviderCallbackResponse {
59
+ int32 http_status = 1;
60
+ string body = 2;
61
+ optional string content_type = 3;
62
+ optional string error = 4;
63
+ }
@@ -4,6 +4,28 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var poker_pb = require('./poker_pb.js');
6
6
 
7
+ function serialize_poker_CreateSessionRequest(arg) {
8
+ if (!(arg instanceof poker_pb.CreateSessionRequest)) {
9
+ throw new Error('Expected argument of type poker.CreateSessionRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_poker_CreateSessionRequest(buffer_arg) {
15
+ return poker_pb.CreateSessionRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_poker_CreateSessionResponse(arg) {
19
+ if (!(arg instanceof poker_pb.CreateSessionResponse)) {
20
+ throw new Error('Expected argument of type poker.CreateSessionResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_poker_CreateSessionResponse(buffer_arg) {
26
+ return poker_pb.CreateSessionResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
7
29
  function serialize_poker_PingRequest(arg) {
8
30
  if (!(arg instanceof poker_pb.PingRequest)) {
9
31
  throw new Error('Expected argument of type poker.PingRequest');
@@ -26,6 +48,28 @@ function deserialize_poker_PongResponse(buffer_arg) {
26
48
  return poker_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
49
  }
28
50
 
51
+ function serialize_poker_ProcessProviderCallbackRequest(arg) {
52
+ if (!(arg instanceof poker_pb.ProcessProviderCallbackRequest)) {
53
+ throw new Error('Expected argument of type poker.ProcessProviderCallbackRequest');
54
+ }
55
+ return Buffer.from(arg.serializeBinary());
56
+ }
57
+
58
+ function deserialize_poker_ProcessProviderCallbackRequest(buffer_arg) {
59
+ return poker_pb.ProcessProviderCallbackRequest.deserializeBinary(new Uint8Array(buffer_arg));
60
+ }
61
+
62
+ function serialize_poker_ProcessProviderCallbackResponse(arg) {
63
+ if (!(arg instanceof poker_pb.ProcessProviderCallbackResponse)) {
64
+ throw new Error('Expected argument of type poker.ProcessProviderCallbackResponse');
65
+ }
66
+ return Buffer.from(arg.serializeBinary());
67
+ }
68
+
69
+ function deserialize_poker_ProcessProviderCallbackResponse(buffer_arg) {
70
+ return poker_pb.ProcessProviderCallbackResponse.deserializeBinary(new Uint8Array(buffer_arg));
71
+ }
72
+
29
73
 
30
74
  var PokerService = exports.PokerService = {
31
75
  checkConnection: {
@@ -39,6 +83,28 @@ var PokerService = exports.PokerService = {
39
83
  responseSerialize: serialize_poker_PongResponse,
40
84
  responseDeserialize: deserialize_poker_PongResponse,
41
85
  },
86
+ createSession: {
87
+ path: '/poker.Poker/createSession',
88
+ requestStream: false,
89
+ responseStream: false,
90
+ requestType: poker_pb.CreateSessionRequest,
91
+ responseType: poker_pb.CreateSessionResponse,
92
+ requestSerialize: serialize_poker_CreateSessionRequest,
93
+ requestDeserialize: deserialize_poker_CreateSessionRequest,
94
+ responseSerialize: serialize_poker_CreateSessionResponse,
95
+ responseDeserialize: deserialize_poker_CreateSessionResponse,
96
+ },
97
+ processProviderCallback: {
98
+ path: '/poker.Poker/processProviderCallback',
99
+ requestStream: false,
100
+ responseStream: false,
101
+ requestType: poker_pb.ProcessProviderCallbackRequest,
102
+ responseType: poker_pb.ProcessProviderCallbackResponse,
103
+ requestSerialize: serialize_poker_ProcessProviderCallbackRequest,
104
+ requestDeserialize: deserialize_poker_ProcessProviderCallbackRequest,
105
+ responseSerialize: serialize_poker_ProcessProviderCallbackResponse,
106
+ responseDeserialize: deserialize_poker_ProcessProviderCallbackResponse,
107
+ },
42
108
  };
43
109
 
44
110
  exports.PokerClient = grpc.makeGenericClientConstructor(PokerService, 'Poker');