protobuf-platform 1.2.52 → 1.2.53

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
@@ -15,6 +15,7 @@ service Game {
15
15
  rpc updateSingleCategory(stream CategoryRequest) returns (CategoryResponse);
16
16
  rpc deleteSingleCategory(GetCategoryRequest) returns (CategoryStatusResponse);
17
17
  rpc readListCategories(PaginationRequest) returns (CategoryItemsResponse);
18
+ rpc updateCategoriesInBunch(ItemsBunchRequest) returns (CategoryStatusResponse);
18
19
  //Collections
19
20
  rpc createSingleCollection(stream CollectionRequest) returns (CollectionResponse);
20
21
  rpc readSingleCollection(GetCollectionRequest) returns (CollectionResponse);
@@ -24,6 +25,7 @@ service Game {
24
25
  rpc addGamesToCollection(CollectionGamesRequest) returns (CollectionStatusResponse);
25
26
  rpc removeGamesFromCollection(CollectionGamesRequest) returns (CollectionStatusResponse);
26
27
  rpc updateGamesPriorityInCollection(GamesPriorityRequest) returns (CollectionStatusResponse);
28
+ rpc updateCollectionsInBunch(ItemsBunchRequest) returns (CollectionStatusResponse);
27
29
  //Tags
28
30
  rpc createSingleTag(stream TagRequest) returns (TagResponse);
29
31
  rpc readSingleTag(GetTagRequest) returns (TagResponse);
@@ -33,12 +35,14 @@ service Game {
33
35
  rpc addGamesToTag(TagGamesRequest) returns (TagStatusResponse);
34
36
  rpc removeGamesFromTag(TagGamesRequest) returns (TagStatusResponse);
35
37
  rpc updateGamesPriorityInTag(GamesPriorityRequest) returns (TagStatusResponse);
38
+ rpc updateTagsInBunch(ItemsBunchRequest) returns (TagStatusResponse);
36
39
  //Providers
37
40
  rpc createSingleProvider(stream ProviderRequest) returns (ProviderResponse);
38
41
  rpc readSingleProvider(GetProviderRequest) returns (ProviderResponse);
39
42
  rpc updateSingleProvider(stream ProviderRequest) returns (ProviderResponse);
40
43
  rpc deleteSingleProvider(GetProviderRequest) returns (ProviderStatusResponse);
41
44
  rpc readListProviders(PaginationRequest) returns (ProviderItemsResponse);
45
+ rpc updateProvidersInBunch(ItemsBunchRequest) returns (ProviderStatusResponse);
42
46
  //Games
43
47
  rpc parseGames(ParseGamesRequest) returns (ParseGamesResponse);
44
48
  rpc readSingleGame(GetGameRequest) returns (GameResponse);
@@ -169,6 +173,10 @@ message TagSearchRequest {
169
173
  optional string tag_title = 1;
170
174
  optional int32 is_active = 2;
171
175
  }
176
+ message ItemsBunchRequest {
177
+ repeated int32 ids = 1;
178
+ optional int32 is_active = 2;
179
+ }
172
180
  //Media
173
181
  message File { bytes media = 1; }
174
182
  message GetFileRequest { string file_name = 1; string instance_type = 2; }
@@ -565,6 +565,17 @@ function deserialize_game_IntegratorSettingsResponse(buffer_arg) {
565
565
  return game_pb.IntegratorSettingsResponse.deserializeBinary(new Uint8Array(buffer_arg));
566
566
  }
567
567
 
568
+ function serialize_game_ItemsBunchRequest(arg) {
569
+ if (!(arg instanceof game_pb.ItemsBunchRequest)) {
570
+ throw new Error('Expected argument of type game.ItemsBunchRequest');
571
+ }
572
+ return Buffer.from(arg.serializeBinary());
573
+ }
574
+
575
+ function deserialize_game_ItemsBunchRequest(buffer_arg) {
576
+ return game_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
577
+ }
578
+
568
579
  function serialize_game_PaginationRequest(arg) {
569
580
  if (!(arg instanceof game_pb.PaginationRequest)) {
570
581
  throw new Error('Expected argument of type game.PaginationRequest');
@@ -1043,6 +1054,17 @@ createSingleCategory: {
1043
1054
  responseSerialize: serialize_game_CategoryItemsResponse,
1044
1055
  responseDeserialize: deserialize_game_CategoryItemsResponse,
1045
1056
  },
1057
+ updateCategoriesInBunch: {
1058
+ path: '/game.Game/updateCategoriesInBunch',
1059
+ requestStream: false,
1060
+ responseStream: false,
1061
+ requestType: game_pb.ItemsBunchRequest,
1062
+ responseType: game_pb.CategoryStatusResponse,
1063
+ requestSerialize: serialize_game_ItemsBunchRequest,
1064
+ requestDeserialize: deserialize_game_ItemsBunchRequest,
1065
+ responseSerialize: serialize_game_CategoryStatusResponse,
1066
+ responseDeserialize: deserialize_game_CategoryStatusResponse,
1067
+ },
1046
1068
  // Collections
1047
1069
  createSingleCollection: {
1048
1070
  path: '/game.Game/createSingleCollection',
@@ -1132,6 +1154,17 @@ createSingleCollection: {
1132
1154
  responseSerialize: serialize_game_CollectionStatusResponse,
1133
1155
  responseDeserialize: deserialize_game_CollectionStatusResponse,
1134
1156
  },
1157
+ updateCollectionsInBunch: {
1158
+ path: '/game.Game/updateCollectionsInBunch',
1159
+ requestStream: false,
1160
+ responseStream: false,
1161
+ requestType: game_pb.ItemsBunchRequest,
1162
+ responseType: game_pb.CollectionStatusResponse,
1163
+ requestSerialize: serialize_game_ItemsBunchRequest,
1164
+ requestDeserialize: deserialize_game_ItemsBunchRequest,
1165
+ responseSerialize: serialize_game_CollectionStatusResponse,
1166
+ responseDeserialize: deserialize_game_CollectionStatusResponse,
1167
+ },
1135
1168
  // Tags
1136
1169
  createSingleTag: {
1137
1170
  path: '/game.Game/createSingleTag',
@@ -1221,6 +1254,17 @@ createSingleTag: {
1221
1254
  responseSerialize: serialize_game_TagStatusResponse,
1222
1255
  responseDeserialize: deserialize_game_TagStatusResponse,
1223
1256
  },
1257
+ updateTagsInBunch: {
1258
+ path: '/game.Game/updateTagsInBunch',
1259
+ requestStream: false,
1260
+ responseStream: false,
1261
+ requestType: game_pb.ItemsBunchRequest,
1262
+ responseType: game_pb.TagStatusResponse,
1263
+ requestSerialize: serialize_game_ItemsBunchRequest,
1264
+ requestDeserialize: deserialize_game_ItemsBunchRequest,
1265
+ responseSerialize: serialize_game_TagStatusResponse,
1266
+ responseDeserialize: deserialize_game_TagStatusResponse,
1267
+ },
1224
1268
  // Providers
1225
1269
  createSingleProvider: {
1226
1270
  path: '/game.Game/createSingleProvider',
@@ -1277,6 +1321,17 @@ createSingleProvider: {
1277
1321
  responseSerialize: serialize_game_ProviderItemsResponse,
1278
1322
  responseDeserialize: deserialize_game_ProviderItemsResponse,
1279
1323
  },
1324
+ updateProvidersInBunch: {
1325
+ path: '/game.Game/updateProvidersInBunch',
1326
+ requestStream: false,
1327
+ responseStream: false,
1328
+ requestType: game_pb.ItemsBunchRequest,
1329
+ responseType: game_pb.ProviderStatusResponse,
1330
+ requestSerialize: serialize_game_ItemsBunchRequest,
1331
+ requestDeserialize: deserialize_game_ItemsBunchRequest,
1332
+ responseSerialize: serialize_game_ProviderStatusResponse,
1333
+ responseDeserialize: deserialize_game_ProviderStatusResponse,
1334
+ },
1280
1335
  // Games
1281
1336
  parseGames: {
1282
1337
  path: '/game.Game/parseGames',
package/game/game_pb.js CHANGED
@@ -88,6 +88,7 @@ goog.exportSymbol('proto.game.IntegratorSelfValidationRequest', null, global);
88
88
  goog.exportSymbol('proto.game.IntegratorSelfValidationResponse', null, global);
89
89
  goog.exportSymbol('proto.game.IntegratorSettingsRequest', null, global);
90
90
  goog.exportSymbol('proto.game.IntegratorSettingsResponse', null, global);
91
+ goog.exportSymbol('proto.game.ItemsBunchRequest', null, global);
91
92
  goog.exportSymbol('proto.game.PaginationRequest', null, global);
92
93
  goog.exportSymbol('proto.game.ParseGamesRequest', null, global);
93
94
  goog.exportSymbol('proto.game.ParseGamesResponse', null, global);
@@ -365,6 +366,27 @@ if (goog.DEBUG && !COMPILED) {
365
366
  */
366
367
  proto.game.TagSearchRequest.displayName = 'proto.game.TagSearchRequest';
367
368
  }
369
+ /**
370
+ * Generated by JsPbCodeGenerator.
371
+ * @param {Array=} opt_data Optional initial data array, typically from a
372
+ * server response, or constructed directly in Javascript. The array is used
373
+ * in place and becomes part of the constructed object. It is not cloned.
374
+ * If no data is provided, the constructed object will be empty, but still
375
+ * valid.
376
+ * @extends {jspb.Message}
377
+ * @constructor
378
+ */
379
+ proto.game.ItemsBunchRequest = function(opt_data) {
380
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.ItemsBunchRequest.repeatedFields_, null);
381
+ };
382
+ goog.inherits(proto.game.ItemsBunchRequest, jspb.Message);
383
+ if (goog.DEBUG && !COMPILED) {
384
+ /**
385
+ * @public
386
+ * @override
387
+ */
388
+ proto.game.ItemsBunchRequest.displayName = 'proto.game.ItemsBunchRequest';
389
+ }
368
390
  /**
369
391
  * Generated by JsPbCodeGenerator.
370
392
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5857,6 +5879,212 @@ proto.game.TagSearchRequest.prototype.hasIsActive = function() {
5857
5879
 
5858
5880
 
5859
5881
 
5882
+ /**
5883
+ * List of repeated fields within this message type.
5884
+ * @private {!Array<number>}
5885
+ * @const
5886
+ */
5887
+ proto.game.ItemsBunchRequest.repeatedFields_ = [1];
5888
+
5889
+
5890
+
5891
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5892
+ /**
5893
+ * Creates an object representation of this proto.
5894
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5895
+ * Optional fields that are not set will be set to undefined.
5896
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5897
+ * For the list of reserved names please see:
5898
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5899
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5900
+ * JSPB instance for transitional soy proto support:
5901
+ * http://goto/soy-param-migration
5902
+ * @return {!Object}
5903
+ */
5904
+ proto.game.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
5905
+ return proto.game.ItemsBunchRequest.toObject(opt_includeInstance, this);
5906
+ };
5907
+
5908
+
5909
+ /**
5910
+ * Static version of the {@see toObject} method.
5911
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5912
+ * the JSPB instance for transitional soy proto support:
5913
+ * http://goto/soy-param-migration
5914
+ * @param {!proto.game.ItemsBunchRequest} msg The msg instance to transform.
5915
+ * @return {!Object}
5916
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5917
+ */
5918
+ proto.game.ItemsBunchRequest.toObject = function(includeInstance, msg) {
5919
+ var f, obj = {
5920
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
5921
+ isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
5922
+ };
5923
+
5924
+ if (includeInstance) {
5925
+ obj.$jspbMessageInstance = msg;
5926
+ }
5927
+ return obj;
5928
+ };
5929
+ }
5930
+
5931
+
5932
+ /**
5933
+ * Deserializes binary data (in protobuf wire format).
5934
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5935
+ * @return {!proto.game.ItemsBunchRequest}
5936
+ */
5937
+ proto.game.ItemsBunchRequest.deserializeBinary = function(bytes) {
5938
+ var reader = new jspb.BinaryReader(bytes);
5939
+ var msg = new proto.game.ItemsBunchRequest;
5940
+ return proto.game.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
5941
+ };
5942
+
5943
+
5944
+ /**
5945
+ * Deserializes binary data (in protobuf wire format) from the
5946
+ * given reader into the given message object.
5947
+ * @param {!proto.game.ItemsBunchRequest} msg The message object to deserialize into.
5948
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5949
+ * @return {!proto.game.ItemsBunchRequest}
5950
+ */
5951
+ proto.game.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
5952
+ while (reader.nextField()) {
5953
+ if (reader.isEndGroup()) {
5954
+ break;
5955
+ }
5956
+ var field = reader.getFieldNumber();
5957
+ switch (field) {
5958
+ case 1:
5959
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
5960
+ for (var i = 0; i < values.length; i++) {
5961
+ msg.addIds(values[i]);
5962
+ }
5963
+ break;
5964
+ case 2:
5965
+ var value = /** @type {number} */ (reader.readInt32());
5966
+ msg.setIsActive(value);
5967
+ break;
5968
+ default:
5969
+ reader.skipField();
5970
+ break;
5971
+ }
5972
+ }
5973
+ return msg;
5974
+ };
5975
+
5976
+
5977
+ /**
5978
+ * Serializes the message to binary data (in protobuf wire format).
5979
+ * @return {!Uint8Array}
5980
+ */
5981
+ proto.game.ItemsBunchRequest.prototype.serializeBinary = function() {
5982
+ var writer = new jspb.BinaryWriter();
5983
+ proto.game.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
5984
+ return writer.getResultBuffer();
5985
+ };
5986
+
5987
+
5988
+ /**
5989
+ * Serializes the given message to binary data (in protobuf wire
5990
+ * format), writing to the given BinaryWriter.
5991
+ * @param {!proto.game.ItemsBunchRequest} message
5992
+ * @param {!jspb.BinaryWriter} writer
5993
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5994
+ */
5995
+ proto.game.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
5996
+ var f = undefined;
5997
+ f = message.getIdsList();
5998
+ if (f.length > 0) {
5999
+ writer.writePackedInt32(
6000
+ 1,
6001
+ f
6002
+ );
6003
+ }
6004
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
6005
+ if (f != null) {
6006
+ writer.writeInt32(
6007
+ 2,
6008
+ f
6009
+ );
6010
+ }
6011
+ };
6012
+
6013
+
6014
+ /**
6015
+ * repeated int32 ids = 1;
6016
+ * @return {!Array<number>}
6017
+ */
6018
+ proto.game.ItemsBunchRequest.prototype.getIdsList = function() {
6019
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
6020
+ };
6021
+
6022
+
6023
+ /**
6024
+ * @param {!Array<number>} value
6025
+ * @return {!proto.game.ItemsBunchRequest} returns this
6026
+ */
6027
+ proto.game.ItemsBunchRequest.prototype.setIdsList = function(value) {
6028
+ return jspb.Message.setField(this, 1, value || []);
6029
+ };
6030
+
6031
+
6032
+ /**
6033
+ * @param {number} value
6034
+ * @param {number=} opt_index
6035
+ * @return {!proto.game.ItemsBunchRequest} returns this
6036
+ */
6037
+ proto.game.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
6038
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
6039
+ };
6040
+
6041
+
6042
+ /**
6043
+ * Clears the list making it empty but non-null.
6044
+ * @return {!proto.game.ItemsBunchRequest} returns this
6045
+ */
6046
+ proto.game.ItemsBunchRequest.prototype.clearIdsList = function() {
6047
+ return this.setIdsList([]);
6048
+ };
6049
+
6050
+
6051
+ /**
6052
+ * optional int32 is_active = 2;
6053
+ * @return {number}
6054
+ */
6055
+ proto.game.ItemsBunchRequest.prototype.getIsActive = function() {
6056
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
6057
+ };
6058
+
6059
+
6060
+ /**
6061
+ * @param {number} value
6062
+ * @return {!proto.game.ItemsBunchRequest} returns this
6063
+ */
6064
+ proto.game.ItemsBunchRequest.prototype.setIsActive = function(value) {
6065
+ return jspb.Message.setField(this, 2, value);
6066
+ };
6067
+
6068
+
6069
+ /**
6070
+ * Clears the field making it undefined.
6071
+ * @return {!proto.game.ItemsBunchRequest} returns this
6072
+ */
6073
+ proto.game.ItemsBunchRequest.prototype.clearIsActive = function() {
6074
+ return jspb.Message.setField(this, 2, undefined);
6075
+ };
6076
+
6077
+
6078
+ /**
6079
+ * Returns whether this field is set.
6080
+ * @return {boolean}
6081
+ */
6082
+ proto.game.ItemsBunchRequest.prototype.hasIsActive = function() {
6083
+ return jspb.Message.getField(this, 2) != null;
6084
+ };
6085
+
6086
+
6087
+
5860
6088
 
5861
6089
 
5862
6090
  if (jspb.Message.GENERATE_TO_OBJECT) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.52",
3
+ "version": "1.2.53",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {