protobuf-platform 1.2.392 → 1.2.394

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
@@ -125,6 +125,10 @@ service Game {
125
125
  rpc readSEOInstanceAttributes(SEOInstanceRequest) returns (SEOInstanceResponse);
126
126
  //Segmentation
127
127
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
128
+ // Lightweight batch read for notification CTA target enrichment.
129
+ rpc getGameSnapshotsByIds(GetGameSnapshotsByIdsRequest) returns (GameSnapshotItemsResponse);
130
+ rpc getCollectionSnapshotsByIds(GetCollectionSnapshotsByIdsRequest) returns (CollectionSnapshotItemsResponse);
131
+ rpc getTagSnapshotsByIds(GetTagSnapshotsByIdsRequest) returns (TagSnapshotItemsResponse);
128
132
  }
129
133
 
130
134
  message PingRequest { string ping = 1; }
@@ -1028,4 +1032,55 @@ message GeoRestrictionStatusResponse {
1028
1032
  }
1029
1033
  message GeoRestrictionResponse {
1030
1034
  repeated string geo = 1;
1035
+ }
1036
+ // Lightweight batch snapshots for notification CTA target enrichment.
1037
+ message GetGameSnapshotsByIdsRequest {
1038
+ repeated int32 ids = 1;
1039
+ optional string locale = 2;
1040
+ }
1041
+ message GameSnapshotItem {
1042
+ int32 id = 1;
1043
+ optional string title = 2;
1044
+ optional string slug = 3;
1045
+ optional string image = 4;
1046
+ optional string image_cdn = 5;
1047
+ optional string provider_title = 6;
1048
+ optional string provider_slug = 7;
1049
+ optional string status = 8;
1050
+ optional int32 status_id = 9;
1051
+ }
1052
+ message GameSnapshotItemsResponse {
1053
+ repeated GameSnapshotItem items = 1;
1054
+ }
1055
+ message GetCollectionSnapshotsByIdsRequest {
1056
+ repeated int32 ids = 1;
1057
+ optional string locale = 2;
1058
+ }
1059
+ message CollectionSnapshotItem {
1060
+ int32 id = 1;
1061
+ optional string title = 2;
1062
+ optional string slug = 3;
1063
+ optional string image = 4;
1064
+ optional string image_cdn = 5;
1065
+ optional int32 count_of_games = 6;
1066
+ optional int32 is_active = 7;
1067
+ }
1068
+ message CollectionSnapshotItemsResponse {
1069
+ repeated CollectionSnapshotItem items = 1;
1070
+ }
1071
+ message GetTagSnapshotsByIdsRequest {
1072
+ repeated int32 ids = 1;
1073
+ optional string locale = 2;
1074
+ }
1075
+ message TagSnapshotItem {
1076
+ int32 id = 1;
1077
+ optional string title = 2;
1078
+ optional string slug = 3;
1079
+ optional string image = 4;
1080
+ optional string image_cdn = 5;
1081
+ optional int32 count_of_games = 6;
1082
+ optional int32 is_active = 7;
1083
+ }
1084
+ message TagSnapshotItemsResponse {
1085
+ repeated TagSnapshotItem items = 1;
1031
1086
  }
@@ -202,6 +202,17 @@ function deserialize_game_CollectionResponse(buffer_arg) {
202
202
  return game_pb.CollectionResponse.deserializeBinary(new Uint8Array(buffer_arg));
203
203
  }
204
204
 
205
+ function serialize_game_CollectionSnapshotItemsResponse(arg) {
206
+ if (!(arg instanceof game_pb.CollectionSnapshotItemsResponse)) {
207
+ throw new Error('Expected argument of type game.CollectionSnapshotItemsResponse');
208
+ }
209
+ return Buffer.from(arg.serializeBinary());
210
+ }
211
+
212
+ function deserialize_game_CollectionSnapshotItemsResponse(buffer_arg) {
213
+ return game_pb.CollectionSnapshotItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
214
+ }
215
+
205
216
  function serialize_game_CollectionStatusResponse(arg) {
206
217
  if (!(arg instanceof game_pb.CollectionStatusResponse)) {
207
218
  throw new Error('Expected argument of type game.CollectionStatusResponse');
@@ -400,6 +411,17 @@ function deserialize_game_GameResponse(buffer_arg) {
400
411
  return game_pb.GameResponse.deserializeBinary(new Uint8Array(buffer_arg));
401
412
  }
402
413
 
414
+ function serialize_game_GameSnapshotItemsResponse(arg) {
415
+ if (!(arg instanceof game_pb.GameSnapshotItemsResponse)) {
416
+ throw new Error('Expected argument of type game.GameSnapshotItemsResponse');
417
+ }
418
+ return Buffer.from(arg.serializeBinary());
419
+ }
420
+
421
+ function deserialize_game_GameSnapshotItemsResponse(buffer_arg) {
422
+ return game_pb.GameSnapshotItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
423
+ }
424
+
403
425
  function serialize_game_GameStatusResponse(arg) {
404
426
  if (!(arg instanceof game_pb.GameStatusResponse)) {
405
427
  throw new Error('Expected argument of type game.GameStatusResponse');
@@ -521,6 +543,17 @@ function deserialize_game_GetCollectionRequest(buffer_arg) {
521
543
  return game_pb.GetCollectionRequest.deserializeBinary(new Uint8Array(buffer_arg));
522
544
  }
523
545
 
546
+ function serialize_game_GetCollectionSnapshotsByIdsRequest(arg) {
547
+ if (!(arg instanceof game_pb.GetCollectionSnapshotsByIdsRequest)) {
548
+ throw new Error('Expected argument of type game.GetCollectionSnapshotsByIdsRequest');
549
+ }
550
+ return Buffer.from(arg.serializeBinary());
551
+ }
552
+
553
+ function deserialize_game_GetCollectionSnapshotsByIdsRequest(buffer_arg) {
554
+ return game_pb.GetCollectionSnapshotsByIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
555
+ }
556
+
524
557
  function serialize_game_GetFileRequest(arg) {
525
558
  if (!(arg instanceof game_pb.GetFileRequest)) {
526
559
  throw new Error('Expected argument of type game.GetFileRequest');
@@ -554,6 +587,17 @@ function deserialize_game_GetGameRequest(buffer_arg) {
554
587
  return game_pb.GetGameRequest.deserializeBinary(new Uint8Array(buffer_arg));
555
588
  }
556
589
 
590
+ function serialize_game_GetGameSnapshotsByIdsRequest(arg) {
591
+ if (!(arg instanceof game_pb.GetGameSnapshotsByIdsRequest)) {
592
+ throw new Error('Expected argument of type game.GetGameSnapshotsByIdsRequest');
593
+ }
594
+ return Buffer.from(arg.serializeBinary());
595
+ }
596
+
597
+ function deserialize_game_GetGameSnapshotsByIdsRequest(buffer_arg) {
598
+ return game_pb.GetGameSnapshotsByIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
599
+ }
600
+
557
601
  function serialize_game_GetProviderRequest(arg) {
558
602
  if (!(arg instanceof game_pb.GetProviderRequest)) {
559
603
  throw new Error('Expected argument of type game.GetProviderRequest');
@@ -576,6 +620,17 @@ function deserialize_game_GetTagRequest(buffer_arg) {
576
620
  return game_pb.GetTagRequest.deserializeBinary(new Uint8Array(buffer_arg));
577
621
  }
578
622
 
623
+ function serialize_game_GetTagSnapshotsByIdsRequest(arg) {
624
+ if (!(arg instanceof game_pb.GetTagSnapshotsByIdsRequest)) {
625
+ throw new Error('Expected argument of type game.GetTagSnapshotsByIdsRequest');
626
+ }
627
+ return Buffer.from(arg.serializeBinary());
628
+ }
629
+
630
+ function deserialize_game_GetTagSnapshotsByIdsRequest(buffer_arg) {
631
+ return game_pb.GetTagSnapshotsByIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
632
+ }
633
+
579
634
  function serialize_game_GetWagerListRequest(arg) {
580
635
  if (!(arg instanceof game_pb.GetWagerListRequest)) {
581
636
  throw new Error('Expected argument of type game.GetWagerListRequest');
@@ -1082,6 +1137,17 @@ function deserialize_game_TagResponse(buffer_arg) {
1082
1137
  return game_pb.TagResponse.deserializeBinary(new Uint8Array(buffer_arg));
1083
1138
  }
1084
1139
 
1140
+ function serialize_game_TagSnapshotItemsResponse(arg) {
1141
+ if (!(arg instanceof game_pb.TagSnapshotItemsResponse)) {
1142
+ throw new Error('Expected argument of type game.TagSnapshotItemsResponse');
1143
+ }
1144
+ return Buffer.from(arg.serializeBinary());
1145
+ }
1146
+
1147
+ function deserialize_game_TagSnapshotItemsResponse(buffer_arg) {
1148
+ return game_pb.TagSnapshotItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
1149
+ }
1150
+
1085
1151
  function serialize_game_TagStatusResponse(arg) {
1086
1152
  if (!(arg instanceof game_pb.TagStatusResponse)) {
1087
1153
  throw new Error('Expected argument of type game.TagStatusResponse');
@@ -2387,6 +2453,40 @@ getSegmentedUsers: {
2387
2453
  responseSerialize: serialize_game_SegmentedUserResponse,
2388
2454
  responseDeserialize: deserialize_game_SegmentedUserResponse,
2389
2455
  },
2456
+ // Lightweight batch read for notification CTA target enrichment.
2457
+ getGameSnapshotsByIds: {
2458
+ path: '/game.Game/getGameSnapshotsByIds',
2459
+ requestStream: false,
2460
+ responseStream: false,
2461
+ requestType: game_pb.GetGameSnapshotsByIdsRequest,
2462
+ responseType: game_pb.GameSnapshotItemsResponse,
2463
+ requestSerialize: serialize_game_GetGameSnapshotsByIdsRequest,
2464
+ requestDeserialize: deserialize_game_GetGameSnapshotsByIdsRequest,
2465
+ responseSerialize: serialize_game_GameSnapshotItemsResponse,
2466
+ responseDeserialize: deserialize_game_GameSnapshotItemsResponse,
2467
+ },
2468
+ getCollectionSnapshotsByIds: {
2469
+ path: '/game.Game/getCollectionSnapshotsByIds',
2470
+ requestStream: false,
2471
+ responseStream: false,
2472
+ requestType: game_pb.GetCollectionSnapshotsByIdsRequest,
2473
+ responseType: game_pb.CollectionSnapshotItemsResponse,
2474
+ requestSerialize: serialize_game_GetCollectionSnapshotsByIdsRequest,
2475
+ requestDeserialize: deserialize_game_GetCollectionSnapshotsByIdsRequest,
2476
+ responseSerialize: serialize_game_CollectionSnapshotItemsResponse,
2477
+ responseDeserialize: deserialize_game_CollectionSnapshotItemsResponse,
2478
+ },
2479
+ getTagSnapshotsByIds: {
2480
+ path: '/game.Game/getTagSnapshotsByIds',
2481
+ requestStream: false,
2482
+ responseStream: false,
2483
+ requestType: game_pb.GetTagSnapshotsByIdsRequest,
2484
+ responseType: game_pb.TagSnapshotItemsResponse,
2485
+ requestSerialize: serialize_game_GetTagSnapshotsByIdsRequest,
2486
+ requestDeserialize: deserialize_game_GetTagSnapshotsByIdsRequest,
2487
+ responseSerialize: serialize_game_TagSnapshotItemsResponse,
2488
+ responseDeserialize: deserialize_game_TagSnapshotItemsResponse,
2489
+ },
2390
2490
  };
2391
2491
 
2392
2492
  exports.GameClient = grpc.makeGenericClientConstructor(GameService, 'Game');