protobuf-platform 1.0.69 → 1.0.71

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/game/game.proto CHANGED
@@ -19,7 +19,7 @@ service Game {
19
19
  rpc readListCollections(PaginationRequest) returns (CollectionItemsResponse);
20
20
  rpc addGamesToCollection(CollectionGamesRequest) returns (CollectionStatusResponse);
21
21
  rpc removeGamesFromCollection(CollectionGamesRequest) returns (CollectionStatusResponse);
22
- rpc updateGamesPriorityInCollection(CollectionGamesPriorityRequest) returns (CollectionStatusResponse);
22
+ rpc updateGamesPriorityInCollection(GamesPriorityRequest) returns (CollectionStatusResponse);
23
23
  //Tags
24
24
  rpc createSingleTag(stream TagRequest) returns (TagResponse);
25
25
  rpc readSingleTag(GetTagRequest) returns (TagResponse);
@@ -28,7 +28,7 @@ service Game {
28
28
  rpc readListTags(PaginationRequest) returns (TagItemsResponse);
29
29
  rpc addGamesToTag(TagGamesRequest) returns (TagStatusResponse);
30
30
  rpc removeGamesFromTag(TagGamesRequest) returns (TagStatusResponse);
31
- rpc updateGamesPriorityInTag(TagGamesPriorityRequest) returns (TagStatusResponse);
31
+ rpc updateGamesPriorityInTag(GamesPriorityRequest) returns (TagStatusResponse);
32
32
  //Providers
33
33
  rpc createSingleProvider(stream ProviderRequest) returns (ProviderResponse);
34
34
  rpc readSingleProvider(GetProviderRequest) returns (ProviderResponse);
@@ -43,6 +43,8 @@ service Game {
43
43
  rpc readListGames(PaginationRequest) returns (GameItemsResponse);
44
44
  rpc searchGamesByCollections(SearchGamesIntoCollectionsRequest) returns (GameItemsResponse);
45
45
  rpc searchGamesByTags(SearchGamesIntoTagsRequest) returns (GameItemsResponse);
46
+ rpc initGameSession(InitGameSessionRequest) returns (InitGameSessionResponse);
47
+ rpc initDemoGameSession(InitDemoGameSessionRequest) returns (InitGameSessionResponse);
46
48
  }
47
49
 
48
50
  message PingRequest { string ping = 1; }
@@ -139,11 +141,6 @@ message CollectionGamesRequest {
139
141
  string game_ids = 2;
140
142
  optional string geo = 3;
141
143
  }
142
- message CollectionGamesPriorityRequest {
143
- int32 id = 1;
144
- string game_priorities = 2;
145
- optional string geo = 3;
146
- }
147
144
 
148
145
  //Tag CRUD
149
146
  message TagItem {
@@ -190,11 +187,6 @@ message TagGamesRequest {
190
187
  string game_ids = 2;
191
188
  optional string geo = 3;
192
189
  }
193
- message TagGamesPriorityRequest {
194
- int32 id = 1;
195
- string game_priorities = 2;
196
- optional string geo = 3;
197
- }
198
190
 
199
191
  //Provider CRUD
200
192
  message ProviderItem {
@@ -301,4 +293,32 @@ message SearchGamesIntoTagsRequest {
301
293
  optional string geo = 2;
302
294
  optional int32 limit = 3;
303
295
  optional int32 offset = 4;
296
+ }
297
+ message GamesPriorityRequest {
298
+ int32 id = 1;
299
+ string game_priorities = 2;
300
+ optional string geo = 3;
301
+ }
302
+ message InitGameSessionRequest {
303
+ string game_uuid = 1;
304
+ string player_id = 2;
305
+ string player_name = 3;
306
+ string currency = 4;
307
+ optional int32 has_lobby = 5;
308
+ optional string return_url = 6;
309
+ optional string language = 7;
310
+ }
311
+ message InitDemoGameSessionRequest {
312
+ string game_uuid = 1;
313
+ optional string return_url = 2;
314
+ optional string language = 3;
315
+ }
316
+ message InitGameSessionResponse {
317
+ string game_url = 1;
318
+ string game_uuid = 2;
319
+ string game_title = 3;
320
+ string game_image = 4;
321
+ string game_slug = 5;
322
+ string provider_title = 6;
323
+ string provider_slug = 7;
304
324
  }
@@ -48,17 +48,6 @@ function deserialize_game_CategoryStatusResponse(buffer_arg) {
48
48
  return game_pb.CategoryStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
49
  }
50
50
 
51
- function serialize_game_CollectionGamesPriorityRequest(arg) {
52
- if (!(arg instanceof game_pb.CollectionGamesPriorityRequest)) {
53
- throw new Error('Expected argument of type game.CollectionGamesPriorityRequest');
54
- }
55
- return Buffer.from(arg.serializeBinary());
56
- }
57
-
58
- function deserialize_game_CollectionGamesPriorityRequest(buffer_arg) {
59
- return game_pb.CollectionGamesPriorityRequest.deserializeBinary(new Uint8Array(buffer_arg));
60
- }
61
-
62
51
  function serialize_game_CollectionGamesRequest(arg) {
63
52
  if (!(arg instanceof game_pb.CollectionGamesRequest)) {
64
53
  throw new Error('Expected argument of type game.CollectionGamesRequest');
@@ -169,6 +158,17 @@ function deserialize_game_GameStatusResponse(buffer_arg) {
169
158
  return game_pb.GameStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
170
159
  }
171
160
 
161
+ function serialize_game_GamesPriorityRequest(arg) {
162
+ if (!(arg instanceof game_pb.GamesPriorityRequest)) {
163
+ throw new Error('Expected argument of type game.GamesPriorityRequest');
164
+ }
165
+ return Buffer.from(arg.serializeBinary());
166
+ }
167
+
168
+ function deserialize_game_GamesPriorityRequest(buffer_arg) {
169
+ return game_pb.GamesPriorityRequest.deserializeBinary(new Uint8Array(buffer_arg));
170
+ }
171
+
172
172
  function serialize_game_GetCategoryRequest(arg) {
173
173
  if (!(arg instanceof game_pb.GetCategoryRequest)) {
174
174
  throw new Error('Expected argument of type game.GetCategoryRequest');
@@ -235,6 +235,39 @@ function deserialize_game_GetTagRequest(buffer_arg) {
235
235
  return game_pb.GetTagRequest.deserializeBinary(new Uint8Array(buffer_arg));
236
236
  }
237
237
 
238
+ function serialize_game_InitDemoGameSessionRequest(arg) {
239
+ if (!(arg instanceof game_pb.InitDemoGameSessionRequest)) {
240
+ throw new Error('Expected argument of type game.InitDemoGameSessionRequest');
241
+ }
242
+ return Buffer.from(arg.serializeBinary());
243
+ }
244
+
245
+ function deserialize_game_InitDemoGameSessionRequest(buffer_arg) {
246
+ return game_pb.InitDemoGameSessionRequest.deserializeBinary(new Uint8Array(buffer_arg));
247
+ }
248
+
249
+ function serialize_game_InitGameSessionRequest(arg) {
250
+ if (!(arg instanceof game_pb.InitGameSessionRequest)) {
251
+ throw new Error('Expected argument of type game.InitGameSessionRequest');
252
+ }
253
+ return Buffer.from(arg.serializeBinary());
254
+ }
255
+
256
+ function deserialize_game_InitGameSessionRequest(buffer_arg) {
257
+ return game_pb.InitGameSessionRequest.deserializeBinary(new Uint8Array(buffer_arg));
258
+ }
259
+
260
+ function serialize_game_InitGameSessionResponse(arg) {
261
+ if (!(arg instanceof game_pb.InitGameSessionResponse)) {
262
+ throw new Error('Expected argument of type game.InitGameSessionResponse');
263
+ }
264
+ return Buffer.from(arg.serializeBinary());
265
+ }
266
+
267
+ function deserialize_game_InitGameSessionResponse(buffer_arg) {
268
+ return game_pb.InitGameSessionResponse.deserializeBinary(new Uint8Array(buffer_arg));
269
+ }
270
+
238
271
  function serialize_game_PaginationRequest(arg) {
239
272
  if (!(arg instanceof game_pb.PaginationRequest)) {
240
273
  throw new Error('Expected argument of type game.PaginationRequest');
@@ -356,17 +389,6 @@ function deserialize_game_SearchGamesIntoTagsRequest(buffer_arg) {
356
389
  return game_pb.SearchGamesIntoTagsRequest.deserializeBinary(new Uint8Array(buffer_arg));
357
390
  }
358
391
 
359
- function serialize_game_TagGamesPriorityRequest(arg) {
360
- if (!(arg instanceof game_pb.TagGamesPriorityRequest)) {
361
- throw new Error('Expected argument of type game.TagGamesPriorityRequest');
362
- }
363
- return Buffer.from(arg.serializeBinary());
364
- }
365
-
366
- function deserialize_game_TagGamesPriorityRequest(buffer_arg) {
367
- return game_pb.TagGamesPriorityRequest.deserializeBinary(new Uint8Array(buffer_arg));
368
- }
369
-
370
392
  function serialize_game_TagGamesRequest(arg) {
371
393
  if (!(arg instanceof game_pb.TagGamesRequest)) {
372
394
  throw new Error('Expected argument of type game.TagGamesRequest');
@@ -584,10 +606,10 @@ createSingleCollection: {
584
606
  path: '/game.Game/updateGamesPriorityInCollection',
585
607
  requestStream: false,
586
608
  responseStream: false,
587
- requestType: game_pb.CollectionGamesPriorityRequest,
609
+ requestType: game_pb.GamesPriorityRequest,
588
610
  responseType: game_pb.CollectionStatusResponse,
589
- requestSerialize: serialize_game_CollectionGamesPriorityRequest,
590
- requestDeserialize: deserialize_game_CollectionGamesPriorityRequest,
611
+ requestSerialize: serialize_game_GamesPriorityRequest,
612
+ requestDeserialize: deserialize_game_GamesPriorityRequest,
591
613
  responseSerialize: serialize_game_CollectionStatusResponse,
592
614
  responseDeserialize: deserialize_game_CollectionStatusResponse,
593
615
  },
@@ -673,10 +695,10 @@ createSingleTag: {
673
695
  path: '/game.Game/updateGamesPriorityInTag',
674
696
  requestStream: false,
675
697
  responseStream: false,
676
- requestType: game_pb.TagGamesPriorityRequest,
698
+ requestType: game_pb.GamesPriorityRequest,
677
699
  responseType: game_pb.TagStatusResponse,
678
- requestSerialize: serialize_game_TagGamesPriorityRequest,
679
- requestDeserialize: deserialize_game_TagGamesPriorityRequest,
700
+ requestSerialize: serialize_game_GamesPriorityRequest,
701
+ requestDeserialize: deserialize_game_GamesPriorityRequest,
680
702
  responseSerialize: serialize_game_TagStatusResponse,
681
703
  responseDeserialize: deserialize_game_TagStatusResponse,
682
704
  },
@@ -814,6 +836,28 @@ parseGames: {
814
836
  responseSerialize: serialize_game_GameItemsResponse,
815
837
  responseDeserialize: deserialize_game_GameItemsResponse,
816
838
  },
839
+ initGameSession: {
840
+ path: '/game.Game/initGameSession',
841
+ requestStream: false,
842
+ responseStream: false,
843
+ requestType: game_pb.InitGameSessionRequest,
844
+ responseType: game_pb.InitGameSessionResponse,
845
+ requestSerialize: serialize_game_InitGameSessionRequest,
846
+ requestDeserialize: deserialize_game_InitGameSessionRequest,
847
+ responseSerialize: serialize_game_InitGameSessionResponse,
848
+ responseDeserialize: deserialize_game_InitGameSessionResponse,
849
+ },
850
+ initDemoGameSession: {
851
+ path: '/game.Game/initDemoGameSession',
852
+ requestStream: false,
853
+ responseStream: false,
854
+ requestType: game_pb.InitDemoGameSessionRequest,
855
+ responseType: game_pb.InitGameSessionResponse,
856
+ requestSerialize: serialize_game_InitDemoGameSessionRequest,
857
+ requestDeserialize: deserialize_game_InitDemoGameSessionRequest,
858
+ responseSerialize: serialize_game_InitGameSessionResponse,
859
+ responseDeserialize: deserialize_game_InitGameSessionResponse,
860
+ },
817
861
  };
818
862
 
819
863
  exports.GameClient = grpc.makeGenericClientConstructor(GameService);