protobuf-platform 1.2.55 → 1.2.57

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.
@@ -34,6 +34,7 @@ goog.exportSymbol('proto.payment.GetFileRequest', null, global);
34
34
  goog.exportSymbol('proto.payment.GetMethodRequest', null, global);
35
35
  goog.exportSymbol('proto.payment.GetProviderRequest', null, global);
36
36
  goog.exportSymbol('proto.payment.GetUserPaymentsInfoRequest', null, global);
37
+ goog.exportSymbol('proto.payment.ItemsBunchRequest', null, global);
37
38
  goog.exportSymbol('proto.payment.MethodItem', null, global);
38
39
  goog.exportSymbol('proto.payment.MethodItemRequest', null, global);
39
40
  goog.exportSymbol('proto.payment.MethodItemsResponse', null, global);
@@ -188,6 +189,27 @@ if (goog.DEBUG && !COMPILED) {
188
189
  */
189
190
  proto.payment.PaymentSearchRequest.displayName = 'proto.payment.PaymentSearchRequest';
190
191
  }
192
+ /**
193
+ * Generated by JsPbCodeGenerator.
194
+ * @param {Array=} opt_data Optional initial data array, typically from a
195
+ * server response, or constructed directly in Javascript. The array is used
196
+ * in place and becomes part of the constructed object. It is not cloned.
197
+ * If no data is provided, the constructed object will be empty, but still
198
+ * valid.
199
+ * @extends {jspb.Message}
200
+ * @constructor
201
+ */
202
+ proto.payment.ItemsBunchRequest = function(opt_data) {
203
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.ItemsBunchRequest.repeatedFields_, null);
204
+ };
205
+ goog.inherits(proto.payment.ItemsBunchRequest, jspb.Message);
206
+ if (goog.DEBUG && !COMPILED) {
207
+ /**
208
+ * @public
209
+ * @override
210
+ */
211
+ proto.payment.ItemsBunchRequest.displayName = 'proto.payment.ItemsBunchRequest';
212
+ }
191
213
  /**
192
214
  * Generated by JsPbCodeGenerator.
193
215
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2556,6 +2578,212 @@ proto.payment.PaymentSearchRequest.prototype.hasIsActive = function() {
2556
2578
 
2557
2579
 
2558
2580
 
2581
+ /**
2582
+ * List of repeated fields within this message type.
2583
+ * @private {!Array<number>}
2584
+ * @const
2585
+ */
2586
+ proto.payment.ItemsBunchRequest.repeatedFields_ = [1];
2587
+
2588
+
2589
+
2590
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2591
+ /**
2592
+ * Creates an object representation of this proto.
2593
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2594
+ * Optional fields that are not set will be set to undefined.
2595
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2596
+ * For the list of reserved names please see:
2597
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2598
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2599
+ * JSPB instance for transitional soy proto support:
2600
+ * http://goto/soy-param-migration
2601
+ * @return {!Object}
2602
+ */
2603
+ proto.payment.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
2604
+ return proto.payment.ItemsBunchRequest.toObject(opt_includeInstance, this);
2605
+ };
2606
+
2607
+
2608
+ /**
2609
+ * Static version of the {@see toObject} method.
2610
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2611
+ * the JSPB instance for transitional soy proto support:
2612
+ * http://goto/soy-param-migration
2613
+ * @param {!proto.payment.ItemsBunchRequest} msg The msg instance to transform.
2614
+ * @return {!Object}
2615
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2616
+ */
2617
+ proto.payment.ItemsBunchRequest.toObject = function(includeInstance, msg) {
2618
+ var f, obj = {
2619
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2620
+ isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
2621
+ };
2622
+
2623
+ if (includeInstance) {
2624
+ obj.$jspbMessageInstance = msg;
2625
+ }
2626
+ return obj;
2627
+ };
2628
+ }
2629
+
2630
+
2631
+ /**
2632
+ * Deserializes binary data (in protobuf wire format).
2633
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2634
+ * @return {!proto.payment.ItemsBunchRequest}
2635
+ */
2636
+ proto.payment.ItemsBunchRequest.deserializeBinary = function(bytes) {
2637
+ var reader = new jspb.BinaryReader(bytes);
2638
+ var msg = new proto.payment.ItemsBunchRequest;
2639
+ return proto.payment.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
2640
+ };
2641
+
2642
+
2643
+ /**
2644
+ * Deserializes binary data (in protobuf wire format) from the
2645
+ * given reader into the given message object.
2646
+ * @param {!proto.payment.ItemsBunchRequest} msg The message object to deserialize into.
2647
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2648
+ * @return {!proto.payment.ItemsBunchRequest}
2649
+ */
2650
+ proto.payment.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
2651
+ while (reader.nextField()) {
2652
+ if (reader.isEndGroup()) {
2653
+ break;
2654
+ }
2655
+ var field = reader.getFieldNumber();
2656
+ switch (field) {
2657
+ case 1:
2658
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
2659
+ for (var i = 0; i < values.length; i++) {
2660
+ msg.addIds(values[i]);
2661
+ }
2662
+ break;
2663
+ case 2:
2664
+ var value = /** @type {number} */ (reader.readInt32());
2665
+ msg.setIsActive(value);
2666
+ break;
2667
+ default:
2668
+ reader.skipField();
2669
+ break;
2670
+ }
2671
+ }
2672
+ return msg;
2673
+ };
2674
+
2675
+
2676
+ /**
2677
+ * Serializes the message to binary data (in protobuf wire format).
2678
+ * @return {!Uint8Array}
2679
+ */
2680
+ proto.payment.ItemsBunchRequest.prototype.serializeBinary = function() {
2681
+ var writer = new jspb.BinaryWriter();
2682
+ proto.payment.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
2683
+ return writer.getResultBuffer();
2684
+ };
2685
+
2686
+
2687
+ /**
2688
+ * Serializes the given message to binary data (in protobuf wire
2689
+ * format), writing to the given BinaryWriter.
2690
+ * @param {!proto.payment.ItemsBunchRequest} message
2691
+ * @param {!jspb.BinaryWriter} writer
2692
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2693
+ */
2694
+ proto.payment.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
2695
+ var f = undefined;
2696
+ f = message.getIdsList();
2697
+ if (f.length > 0) {
2698
+ writer.writePackedInt32(
2699
+ 1,
2700
+ f
2701
+ );
2702
+ }
2703
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
2704
+ if (f != null) {
2705
+ writer.writeInt32(
2706
+ 2,
2707
+ f
2708
+ );
2709
+ }
2710
+ };
2711
+
2712
+
2713
+ /**
2714
+ * repeated int32 ids = 1;
2715
+ * @return {!Array<number>}
2716
+ */
2717
+ proto.payment.ItemsBunchRequest.prototype.getIdsList = function() {
2718
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
2719
+ };
2720
+
2721
+
2722
+ /**
2723
+ * @param {!Array<number>} value
2724
+ * @return {!proto.payment.ItemsBunchRequest} returns this
2725
+ */
2726
+ proto.payment.ItemsBunchRequest.prototype.setIdsList = function(value) {
2727
+ return jspb.Message.setField(this, 1, value || []);
2728
+ };
2729
+
2730
+
2731
+ /**
2732
+ * @param {number} value
2733
+ * @param {number=} opt_index
2734
+ * @return {!proto.payment.ItemsBunchRequest} returns this
2735
+ */
2736
+ proto.payment.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
2737
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2738
+ };
2739
+
2740
+
2741
+ /**
2742
+ * Clears the list making it empty but non-null.
2743
+ * @return {!proto.payment.ItemsBunchRequest} returns this
2744
+ */
2745
+ proto.payment.ItemsBunchRequest.prototype.clearIdsList = function() {
2746
+ return this.setIdsList([]);
2747
+ };
2748
+
2749
+
2750
+ /**
2751
+ * optional int32 is_active = 2;
2752
+ * @return {number}
2753
+ */
2754
+ proto.payment.ItemsBunchRequest.prototype.getIsActive = function() {
2755
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2756
+ };
2757
+
2758
+
2759
+ /**
2760
+ * @param {number} value
2761
+ * @return {!proto.payment.ItemsBunchRequest} returns this
2762
+ */
2763
+ proto.payment.ItemsBunchRequest.prototype.setIsActive = function(value) {
2764
+ return jspb.Message.setField(this, 2, value);
2765
+ };
2766
+
2767
+
2768
+ /**
2769
+ * Clears the field making it undefined.
2770
+ * @return {!proto.payment.ItemsBunchRequest} returns this
2771
+ */
2772
+ proto.payment.ItemsBunchRequest.prototype.clearIsActive = function() {
2773
+ return jspb.Message.setField(this, 2, undefined);
2774
+ };
2775
+
2776
+
2777
+ /**
2778
+ * Returns whether this field is set.
2779
+ * @return {boolean}
2780
+ */
2781
+ proto.payment.ItemsBunchRequest.prototype.hasIsActive = function() {
2782
+ return jspb.Message.getField(this, 2) != null;
2783
+ };
2784
+
2785
+
2786
+
2559
2787
  /**
2560
2788
  * List of repeated fields within this message type.
2561
2789
  * @private {!Array<number>}
@@ -10,6 +10,7 @@ service Promocode {
10
10
  rpc updateSingleCode(CodeRequest) returns (CodeResponse);
11
11
  rpc deleteSingleCode(GetCodeRequest) returns (CodeStatusResponse);
12
12
  rpc readListCodes(PaginationRequest) returns (CodeItemsResponse);
13
+ rpc updateCodesInBunch(ItemsBunchRequest) returns (CodeStatusResponse);
13
14
  }
14
15
  message PingRequest { string ping = 1; }
15
16
  message PongResponse { string pong = 1; }
@@ -30,6 +31,10 @@ message SearchRequest {
30
31
  optional string code = 2;
31
32
  optional int32 is_active = 3;
32
33
  }
34
+ message ItemsBunchRequest {
35
+ repeated int32 ids = 1;
36
+ optional int32 is_active = 2;
37
+ }
33
38
  //Main CRUD
34
39
  message GetCodeRequest {
35
40
  int32 id = 1;
@@ -59,6 +59,17 @@ function deserialize_promocode_GetCodeRequest(buffer_arg) {
59
59
  return promocode_pb.GetCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
60
60
  }
61
61
 
62
+ function serialize_promocode_ItemsBunchRequest(arg) {
63
+ if (!(arg instanceof promocode_pb.ItemsBunchRequest)) {
64
+ throw new Error('Expected argument of type promocode.ItemsBunchRequest');
65
+ }
66
+ return Buffer.from(arg.serializeBinary());
67
+ }
68
+
69
+ function deserialize_promocode_ItemsBunchRequest(buffer_arg) {
70
+ return promocode_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
71
+ }
72
+
62
73
  function serialize_promocode_PaginationRequest(arg) {
63
74
  if (!(arg instanceof promocode_pb.PaginationRequest)) {
64
75
  throw new Error('Expected argument of type promocode.PaginationRequest');
@@ -161,6 +172,17 @@ createSingleCode: {
161
172
  responseSerialize: serialize_promocode_CodeItemsResponse,
162
173
  responseDeserialize: deserialize_promocode_CodeItemsResponse,
163
174
  },
175
+ updateCodesInBunch: {
176
+ path: '/promocode.Promocode/updateCodesInBunch',
177
+ requestStream: false,
178
+ responseStream: false,
179
+ requestType: promocode_pb.ItemsBunchRequest,
180
+ responseType: promocode_pb.CodeStatusResponse,
181
+ requestSerialize: serialize_promocode_ItemsBunchRequest,
182
+ requestDeserialize: deserialize_promocode_ItemsBunchRequest,
183
+ responseSerialize: serialize_promocode_CodeStatusResponse,
184
+ responseDeserialize: deserialize_promocode_CodeStatusResponse,
185
+ },
164
186
  };
165
187
 
166
188
  exports.PromocodeClient = grpc.makeGenericClientConstructor(PromocodeService, 'Promocode');
@@ -27,6 +27,7 @@ goog.exportSymbol('proto.promocode.CodeRequest', null, global);
27
27
  goog.exportSymbol('proto.promocode.CodeResponse', null, global);
28
28
  goog.exportSymbol('proto.promocode.CodeStatusResponse', null, global);
29
29
  goog.exportSymbol('proto.promocode.GetCodeRequest', null, global);
30
+ goog.exportSymbol('proto.promocode.ItemsBunchRequest', null, global);
30
31
  goog.exportSymbol('proto.promocode.PaginationRequest', null, global);
31
32
  goog.exportSymbol('proto.promocode.PingRequest', null, global);
32
33
  goog.exportSymbol('proto.promocode.PongResponse', null, global);
@@ -137,6 +138,27 @@ if (goog.DEBUG && !COMPILED) {
137
138
  */
138
139
  proto.promocode.SearchRequest.displayName = 'proto.promocode.SearchRequest';
139
140
  }
141
+ /**
142
+ * Generated by JsPbCodeGenerator.
143
+ * @param {Array=} opt_data Optional initial data array, typically from a
144
+ * server response, or constructed directly in Javascript. The array is used
145
+ * in place and becomes part of the constructed object. It is not cloned.
146
+ * If no data is provided, the constructed object will be empty, but still
147
+ * valid.
148
+ * @extends {jspb.Message}
149
+ * @constructor
150
+ */
151
+ proto.promocode.ItemsBunchRequest = function(opt_data) {
152
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.promocode.ItemsBunchRequest.repeatedFields_, null);
153
+ };
154
+ goog.inherits(proto.promocode.ItemsBunchRequest, jspb.Message);
155
+ if (goog.DEBUG && !COMPILED) {
156
+ /**
157
+ * @public
158
+ * @override
159
+ */
160
+ proto.promocode.ItemsBunchRequest.displayName = 'proto.promocode.ItemsBunchRequest';
161
+ }
140
162
  /**
141
163
  * Generated by JsPbCodeGenerator.
142
164
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1322,6 +1344,212 @@ proto.promocode.SearchRequest.prototype.hasIsActive = function() {
1322
1344
 
1323
1345
 
1324
1346
 
1347
+ /**
1348
+ * List of repeated fields within this message type.
1349
+ * @private {!Array<number>}
1350
+ * @const
1351
+ */
1352
+ proto.promocode.ItemsBunchRequest.repeatedFields_ = [1];
1353
+
1354
+
1355
+
1356
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1357
+ /**
1358
+ * Creates an object representation of this proto.
1359
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1360
+ * Optional fields that are not set will be set to undefined.
1361
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1362
+ * For the list of reserved names please see:
1363
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1364
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1365
+ * JSPB instance for transitional soy proto support:
1366
+ * http://goto/soy-param-migration
1367
+ * @return {!Object}
1368
+ */
1369
+ proto.promocode.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
1370
+ return proto.promocode.ItemsBunchRequest.toObject(opt_includeInstance, this);
1371
+ };
1372
+
1373
+
1374
+ /**
1375
+ * Static version of the {@see toObject} method.
1376
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1377
+ * the JSPB instance for transitional soy proto support:
1378
+ * http://goto/soy-param-migration
1379
+ * @param {!proto.promocode.ItemsBunchRequest} msg The msg instance to transform.
1380
+ * @return {!Object}
1381
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1382
+ */
1383
+ proto.promocode.ItemsBunchRequest.toObject = function(includeInstance, msg) {
1384
+ var f, obj = {
1385
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
1386
+ isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
1387
+ };
1388
+
1389
+ if (includeInstance) {
1390
+ obj.$jspbMessageInstance = msg;
1391
+ }
1392
+ return obj;
1393
+ };
1394
+ }
1395
+
1396
+
1397
+ /**
1398
+ * Deserializes binary data (in protobuf wire format).
1399
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1400
+ * @return {!proto.promocode.ItemsBunchRequest}
1401
+ */
1402
+ proto.promocode.ItemsBunchRequest.deserializeBinary = function(bytes) {
1403
+ var reader = new jspb.BinaryReader(bytes);
1404
+ var msg = new proto.promocode.ItemsBunchRequest;
1405
+ return proto.promocode.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
1406
+ };
1407
+
1408
+
1409
+ /**
1410
+ * Deserializes binary data (in protobuf wire format) from the
1411
+ * given reader into the given message object.
1412
+ * @param {!proto.promocode.ItemsBunchRequest} msg The message object to deserialize into.
1413
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1414
+ * @return {!proto.promocode.ItemsBunchRequest}
1415
+ */
1416
+ proto.promocode.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
1417
+ while (reader.nextField()) {
1418
+ if (reader.isEndGroup()) {
1419
+ break;
1420
+ }
1421
+ var field = reader.getFieldNumber();
1422
+ switch (field) {
1423
+ case 1:
1424
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
1425
+ for (var i = 0; i < values.length; i++) {
1426
+ msg.addIds(values[i]);
1427
+ }
1428
+ break;
1429
+ case 2:
1430
+ var value = /** @type {number} */ (reader.readInt32());
1431
+ msg.setIsActive(value);
1432
+ break;
1433
+ default:
1434
+ reader.skipField();
1435
+ break;
1436
+ }
1437
+ }
1438
+ return msg;
1439
+ };
1440
+
1441
+
1442
+ /**
1443
+ * Serializes the message to binary data (in protobuf wire format).
1444
+ * @return {!Uint8Array}
1445
+ */
1446
+ proto.promocode.ItemsBunchRequest.prototype.serializeBinary = function() {
1447
+ var writer = new jspb.BinaryWriter();
1448
+ proto.promocode.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
1449
+ return writer.getResultBuffer();
1450
+ };
1451
+
1452
+
1453
+ /**
1454
+ * Serializes the given message to binary data (in protobuf wire
1455
+ * format), writing to the given BinaryWriter.
1456
+ * @param {!proto.promocode.ItemsBunchRequest} message
1457
+ * @param {!jspb.BinaryWriter} writer
1458
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1459
+ */
1460
+ proto.promocode.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
1461
+ var f = undefined;
1462
+ f = message.getIdsList();
1463
+ if (f.length > 0) {
1464
+ writer.writePackedInt32(
1465
+ 1,
1466
+ f
1467
+ );
1468
+ }
1469
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
1470
+ if (f != null) {
1471
+ writer.writeInt32(
1472
+ 2,
1473
+ f
1474
+ );
1475
+ }
1476
+ };
1477
+
1478
+
1479
+ /**
1480
+ * repeated int32 ids = 1;
1481
+ * @return {!Array<number>}
1482
+ */
1483
+ proto.promocode.ItemsBunchRequest.prototype.getIdsList = function() {
1484
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
1485
+ };
1486
+
1487
+
1488
+ /**
1489
+ * @param {!Array<number>} value
1490
+ * @return {!proto.promocode.ItemsBunchRequest} returns this
1491
+ */
1492
+ proto.promocode.ItemsBunchRequest.prototype.setIdsList = function(value) {
1493
+ return jspb.Message.setField(this, 1, value || []);
1494
+ };
1495
+
1496
+
1497
+ /**
1498
+ * @param {number} value
1499
+ * @param {number=} opt_index
1500
+ * @return {!proto.promocode.ItemsBunchRequest} returns this
1501
+ */
1502
+ proto.promocode.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
1503
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1504
+ };
1505
+
1506
+
1507
+ /**
1508
+ * Clears the list making it empty but non-null.
1509
+ * @return {!proto.promocode.ItemsBunchRequest} returns this
1510
+ */
1511
+ proto.promocode.ItemsBunchRequest.prototype.clearIdsList = function() {
1512
+ return this.setIdsList([]);
1513
+ };
1514
+
1515
+
1516
+ /**
1517
+ * optional int32 is_active = 2;
1518
+ * @return {number}
1519
+ */
1520
+ proto.promocode.ItemsBunchRequest.prototype.getIsActive = function() {
1521
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1522
+ };
1523
+
1524
+
1525
+ /**
1526
+ * @param {number} value
1527
+ * @return {!proto.promocode.ItemsBunchRequest} returns this
1528
+ */
1529
+ proto.promocode.ItemsBunchRequest.prototype.setIsActive = function(value) {
1530
+ return jspb.Message.setField(this, 2, value);
1531
+ };
1532
+
1533
+
1534
+ /**
1535
+ * Clears the field making it undefined.
1536
+ * @return {!proto.promocode.ItemsBunchRequest} returns this
1537
+ */
1538
+ proto.promocode.ItemsBunchRequest.prototype.clearIsActive = function() {
1539
+ return jspb.Message.setField(this, 2, undefined);
1540
+ };
1541
+
1542
+
1543
+ /**
1544
+ * Returns whether this field is set.
1545
+ * @return {boolean}
1546
+ */
1547
+ proto.promocode.ItemsBunchRequest.prototype.hasIsActive = function() {
1548
+ return jspb.Message.getField(this, 2) != null;
1549
+ };
1550
+
1551
+
1552
+
1325
1553
 
1326
1554
 
1327
1555
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -17,6 +17,7 @@ service Tournament {
17
17
  rpc setTournamentContent(TournamentContentRequest) returns (TournamentStatusResponse);
18
18
  rpc addGamesIntoTournament(TournamentGamesRequest) returns (TournamentStatusResponse);
19
19
  rpc removeGamesFromTournament(TournamentGamesRequest) returns (TournamentStatusResponse);
20
+ rpc updateTournamentsInBunch(ItemsBunchRequest) returns (TournamentStatusResponse);
20
21
  //Tournament Statuses
21
22
  rpc readListTournamentStatuses(PaginationRequest) returns (TournamentStatusItemsResponse);
22
23
  rpc getTournamentsForUser(PaginationRequest) returns (UserTournamentItemsResponse);
@@ -48,6 +49,10 @@ message SearchRequest {
48
49
  optional int32 is_active = 3;
49
50
  repeated string currencies = 4;
50
51
  }
52
+ message ItemsBunchRequest {
53
+ repeated int32 ids = 1;
54
+ optional int32 is_active = 2;
55
+ }
51
56
  //Tournament CRUD | Requests
52
57
  message TournamentItem {
53
58
  optional int32 id = 1;
@@ -37,6 +37,17 @@ function deserialize_tournament_GetTournamentRequest(buffer_arg) {
37
37
  return tournament_pb.GetTournamentRequest.deserializeBinary(new Uint8Array(buffer_arg));
38
38
  }
39
39
 
40
+ function serialize_tournament_ItemsBunchRequest(arg) {
41
+ if (!(arg instanceof tournament_pb.ItemsBunchRequest)) {
42
+ throw new Error('Expected argument of type tournament.ItemsBunchRequest');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_tournament_ItemsBunchRequest(buffer_arg) {
48
+ return tournament_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
40
51
  function serialize_tournament_PaginationRequest(arg) {
41
52
  if (!(arg instanceof tournament_pb.PaginationRequest)) {
42
53
  throw new Error('Expected argument of type tournament.PaginationRequest');
@@ -359,6 +370,17 @@ createSingleTournament: {
359
370
  responseSerialize: serialize_tournament_TournamentStatusResponse,
360
371
  responseDeserialize: deserialize_tournament_TournamentStatusResponse,
361
372
  },
373
+ updateTournamentsInBunch: {
374
+ path: '/tournament.Tournament/updateTournamentsInBunch',
375
+ requestStream: false,
376
+ responseStream: false,
377
+ requestType: tournament_pb.ItemsBunchRequest,
378
+ responseType: tournament_pb.TournamentStatusResponse,
379
+ requestSerialize: serialize_tournament_ItemsBunchRequest,
380
+ requestDeserialize: deserialize_tournament_ItemsBunchRequest,
381
+ responseSerialize: serialize_tournament_TournamentStatusResponse,
382
+ responseDeserialize: deserialize_tournament_TournamentStatusResponse,
383
+ },
362
384
  // Tournament Statuses
363
385
  readListTournamentStatuses: {
364
386
  path: '/tournament.Tournament/readListTournamentStatuses',