protobuf-platform 1.1.68 → 1.1.70
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/cashback/cashback.proto +3 -2
- package/cashback/cashback_pb.js +59 -11
- package/package.json +1 -1
- package/promocode/promocode.proto +3 -2
- package/promocode/promocode_pb.js +59 -11
package/cashback/cashback.proto
CHANGED
@@ -26,8 +26,9 @@ message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
|
26
26
|
message PaginationRequest {
|
27
27
|
int32 limit = 1;
|
28
28
|
int32 offset = 2;
|
29
|
-
optional
|
30
|
-
optional
|
29
|
+
optional string order = 3;
|
30
|
+
optional UserSearchRequest user_search_params = 4;
|
31
|
+
optional SearchRequest additional_search_params = 5;
|
31
32
|
}
|
32
33
|
message UserSearchRequest {
|
33
34
|
optional int32 user_id = 1;
|
package/cashback/cashback_pb.js
CHANGED
@@ -1144,6 +1144,7 @@ proto.cashback.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
1144
1144
|
var f, obj = {
|
1145
1145
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1146
1146
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1147
|
+
order: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1147
1148
|
userSearchParams: (f = msg.getUserSearchParams()) && proto.cashback.UserSearchRequest.toObject(includeInstance, f),
|
1148
1149
|
additionalSearchParams: (f = msg.getAdditionalSearchParams()) && proto.cashback.SearchRequest.toObject(includeInstance, f)
|
1149
1150
|
};
|
@@ -1191,11 +1192,15 @@ proto.cashback.PaginationRequest.deserializeBinaryFromReader = function(msg, rea
|
|
1191
1192
|
msg.setOffset(value);
|
1192
1193
|
break;
|
1193
1194
|
case 3:
|
1195
|
+
var value = /** @type {string} */ (reader.readString());
|
1196
|
+
msg.setOrder(value);
|
1197
|
+
break;
|
1198
|
+
case 4:
|
1194
1199
|
var value = new proto.cashback.UserSearchRequest;
|
1195
1200
|
reader.readMessage(value,proto.cashback.UserSearchRequest.deserializeBinaryFromReader);
|
1196
1201
|
msg.setUserSearchParams(value);
|
1197
1202
|
break;
|
1198
|
-
case
|
1203
|
+
case 5:
|
1199
1204
|
var value = new proto.cashback.SearchRequest;
|
1200
1205
|
reader.readMessage(value,proto.cashback.SearchRequest.deserializeBinaryFromReader);
|
1201
1206
|
msg.setAdditionalSearchParams(value);
|
@@ -1243,10 +1248,17 @@ proto.cashback.PaginationRequest.serializeBinaryToWriter = function(message, wri
|
|
1243
1248
|
f
|
1244
1249
|
);
|
1245
1250
|
}
|
1251
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
1252
|
+
if (f != null) {
|
1253
|
+
writer.writeString(
|
1254
|
+
3,
|
1255
|
+
f
|
1256
|
+
);
|
1257
|
+
}
|
1246
1258
|
f = message.getUserSearchParams();
|
1247
1259
|
if (f != null) {
|
1248
1260
|
writer.writeMessage(
|
1249
|
-
|
1261
|
+
4,
|
1250
1262
|
f,
|
1251
1263
|
proto.cashback.UserSearchRequest.serializeBinaryToWriter
|
1252
1264
|
);
|
@@ -1254,7 +1266,7 @@ proto.cashback.PaginationRequest.serializeBinaryToWriter = function(message, wri
|
|
1254
1266
|
f = message.getAdditionalSearchParams();
|
1255
1267
|
if (f != null) {
|
1256
1268
|
writer.writeMessage(
|
1257
|
-
|
1269
|
+
5,
|
1258
1270
|
f,
|
1259
1271
|
proto.cashback.SearchRequest.serializeBinaryToWriter
|
1260
1272
|
);
|
@@ -1299,12 +1311,48 @@ proto.cashback.PaginationRequest.prototype.setOffset = function(value) {
|
|
1299
1311
|
|
1300
1312
|
|
1301
1313
|
/**
|
1302
|
-
* optional
|
1314
|
+
* optional string order = 3;
|
1315
|
+
* @return {string}
|
1316
|
+
*/
|
1317
|
+
proto.cashback.PaginationRequest.prototype.getOrder = function() {
|
1318
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1319
|
+
};
|
1320
|
+
|
1321
|
+
|
1322
|
+
/**
|
1323
|
+
* @param {string} value
|
1324
|
+
* @return {!proto.cashback.PaginationRequest} returns this
|
1325
|
+
*/
|
1326
|
+
proto.cashback.PaginationRequest.prototype.setOrder = function(value) {
|
1327
|
+
return jspb.Message.setField(this, 3, value);
|
1328
|
+
};
|
1329
|
+
|
1330
|
+
|
1331
|
+
/**
|
1332
|
+
* Clears the field making it undefined.
|
1333
|
+
* @return {!proto.cashback.PaginationRequest} returns this
|
1334
|
+
*/
|
1335
|
+
proto.cashback.PaginationRequest.prototype.clearOrder = function() {
|
1336
|
+
return jspb.Message.setField(this, 3, undefined);
|
1337
|
+
};
|
1338
|
+
|
1339
|
+
|
1340
|
+
/**
|
1341
|
+
* Returns whether this field is set.
|
1342
|
+
* @return {boolean}
|
1343
|
+
*/
|
1344
|
+
proto.cashback.PaginationRequest.prototype.hasOrder = function() {
|
1345
|
+
return jspb.Message.getField(this, 3) != null;
|
1346
|
+
};
|
1347
|
+
|
1348
|
+
|
1349
|
+
/**
|
1350
|
+
* optional UserSearchRequest user_search_params = 4;
|
1303
1351
|
* @return {?proto.cashback.UserSearchRequest}
|
1304
1352
|
*/
|
1305
1353
|
proto.cashback.PaginationRequest.prototype.getUserSearchParams = function() {
|
1306
1354
|
return /** @type{?proto.cashback.UserSearchRequest} */ (
|
1307
|
-
jspb.Message.getWrapperField(this, proto.cashback.UserSearchRequest,
|
1355
|
+
jspb.Message.getWrapperField(this, proto.cashback.UserSearchRequest, 4));
|
1308
1356
|
};
|
1309
1357
|
|
1310
1358
|
|
@@ -1313,7 +1361,7 @@ proto.cashback.PaginationRequest.prototype.getUserSearchParams = function() {
|
|
1313
1361
|
* @return {!proto.cashback.PaginationRequest} returns this
|
1314
1362
|
*/
|
1315
1363
|
proto.cashback.PaginationRequest.prototype.setUserSearchParams = function(value) {
|
1316
|
-
return jspb.Message.setWrapperField(this,
|
1364
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
1317
1365
|
};
|
1318
1366
|
|
1319
1367
|
|
@@ -1331,17 +1379,17 @@ proto.cashback.PaginationRequest.prototype.clearUserSearchParams = function() {
|
|
1331
1379
|
* @return {boolean}
|
1332
1380
|
*/
|
1333
1381
|
proto.cashback.PaginationRequest.prototype.hasUserSearchParams = function() {
|
1334
|
-
return jspb.Message.getField(this,
|
1382
|
+
return jspb.Message.getField(this, 4) != null;
|
1335
1383
|
};
|
1336
1384
|
|
1337
1385
|
|
1338
1386
|
/**
|
1339
|
-
* optional SearchRequest additional_search_params =
|
1387
|
+
* optional SearchRequest additional_search_params = 5;
|
1340
1388
|
* @return {?proto.cashback.SearchRequest}
|
1341
1389
|
*/
|
1342
1390
|
proto.cashback.PaginationRequest.prototype.getAdditionalSearchParams = function() {
|
1343
1391
|
return /** @type{?proto.cashback.SearchRequest} */ (
|
1344
|
-
jspb.Message.getWrapperField(this, proto.cashback.SearchRequest,
|
1392
|
+
jspb.Message.getWrapperField(this, proto.cashback.SearchRequest, 5));
|
1345
1393
|
};
|
1346
1394
|
|
1347
1395
|
|
@@ -1350,7 +1398,7 @@ proto.cashback.PaginationRequest.prototype.getAdditionalSearchParams = function(
|
|
1350
1398
|
* @return {!proto.cashback.PaginationRequest} returns this
|
1351
1399
|
*/
|
1352
1400
|
proto.cashback.PaginationRequest.prototype.setAdditionalSearchParams = function(value) {
|
1353
|
-
return jspb.Message.setWrapperField(this,
|
1401
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
1354
1402
|
};
|
1355
1403
|
|
1356
1404
|
|
@@ -1368,7 +1416,7 @@ proto.cashback.PaginationRequest.prototype.clearAdditionalSearchParams = functio
|
|
1368
1416
|
* @return {boolean}
|
1369
1417
|
*/
|
1370
1418
|
proto.cashback.PaginationRequest.prototype.hasAdditionalSearchParams = function() {
|
1371
|
-
return jspb.Message.getField(this,
|
1419
|
+
return jspb.Message.getField(this, 5) != null;
|
1372
1420
|
};
|
1373
1421
|
|
1374
1422
|
|
package/package.json
CHANGED
@@ -16,8 +16,9 @@ message PongResponse { string pong = 1; }
|
|
16
16
|
message PaginationRequest {
|
17
17
|
int32 limit = 1;
|
18
18
|
int32 offset = 2;
|
19
|
-
optional
|
20
|
-
optional
|
19
|
+
optional string order = 3;
|
20
|
+
optional UserSearchRequest user_search_params = 4;
|
21
|
+
optional SearchRequest additional_search_params = 5;
|
21
22
|
}
|
22
23
|
message UserSearchRequest {
|
23
24
|
optional int32 user_id = 1;
|
@@ -557,6 +557,7 @@ proto.promocode.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
557
557
|
var f, obj = {
|
558
558
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
559
559
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
560
|
+
order: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
560
561
|
userSearchParams: (f = msg.getUserSearchParams()) && proto.promocode.UserSearchRequest.toObject(includeInstance, f),
|
561
562
|
additionalSearchParams: (f = msg.getAdditionalSearchParams()) && proto.promocode.SearchRequest.toObject(includeInstance, f)
|
562
563
|
};
|
@@ -604,11 +605,15 @@ proto.promocode.PaginationRequest.deserializeBinaryFromReader = function(msg, re
|
|
604
605
|
msg.setOffset(value);
|
605
606
|
break;
|
606
607
|
case 3:
|
608
|
+
var value = /** @type {string} */ (reader.readString());
|
609
|
+
msg.setOrder(value);
|
610
|
+
break;
|
611
|
+
case 4:
|
607
612
|
var value = new proto.promocode.UserSearchRequest;
|
608
613
|
reader.readMessage(value,proto.promocode.UserSearchRequest.deserializeBinaryFromReader);
|
609
614
|
msg.setUserSearchParams(value);
|
610
615
|
break;
|
611
|
-
case
|
616
|
+
case 5:
|
612
617
|
var value = new proto.promocode.SearchRequest;
|
613
618
|
reader.readMessage(value,proto.promocode.SearchRequest.deserializeBinaryFromReader);
|
614
619
|
msg.setAdditionalSearchParams(value);
|
@@ -656,10 +661,17 @@ proto.promocode.PaginationRequest.serializeBinaryToWriter = function(message, wr
|
|
656
661
|
f
|
657
662
|
);
|
658
663
|
}
|
664
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
665
|
+
if (f != null) {
|
666
|
+
writer.writeString(
|
667
|
+
3,
|
668
|
+
f
|
669
|
+
);
|
670
|
+
}
|
659
671
|
f = message.getUserSearchParams();
|
660
672
|
if (f != null) {
|
661
673
|
writer.writeMessage(
|
662
|
-
|
674
|
+
4,
|
663
675
|
f,
|
664
676
|
proto.promocode.UserSearchRequest.serializeBinaryToWriter
|
665
677
|
);
|
@@ -667,7 +679,7 @@ proto.promocode.PaginationRequest.serializeBinaryToWriter = function(message, wr
|
|
667
679
|
f = message.getAdditionalSearchParams();
|
668
680
|
if (f != null) {
|
669
681
|
writer.writeMessage(
|
670
|
-
|
682
|
+
5,
|
671
683
|
f,
|
672
684
|
proto.promocode.SearchRequest.serializeBinaryToWriter
|
673
685
|
);
|
@@ -712,12 +724,48 @@ proto.promocode.PaginationRequest.prototype.setOffset = function(value) {
|
|
712
724
|
|
713
725
|
|
714
726
|
/**
|
715
|
-
* optional
|
727
|
+
* optional string order = 3;
|
728
|
+
* @return {string}
|
729
|
+
*/
|
730
|
+
proto.promocode.PaginationRequest.prototype.getOrder = function() {
|
731
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
732
|
+
};
|
733
|
+
|
734
|
+
|
735
|
+
/**
|
736
|
+
* @param {string} value
|
737
|
+
* @return {!proto.promocode.PaginationRequest} returns this
|
738
|
+
*/
|
739
|
+
proto.promocode.PaginationRequest.prototype.setOrder = function(value) {
|
740
|
+
return jspb.Message.setField(this, 3, value);
|
741
|
+
};
|
742
|
+
|
743
|
+
|
744
|
+
/**
|
745
|
+
* Clears the field making it undefined.
|
746
|
+
* @return {!proto.promocode.PaginationRequest} returns this
|
747
|
+
*/
|
748
|
+
proto.promocode.PaginationRequest.prototype.clearOrder = function() {
|
749
|
+
return jspb.Message.setField(this, 3, undefined);
|
750
|
+
};
|
751
|
+
|
752
|
+
|
753
|
+
/**
|
754
|
+
* Returns whether this field is set.
|
755
|
+
* @return {boolean}
|
756
|
+
*/
|
757
|
+
proto.promocode.PaginationRequest.prototype.hasOrder = function() {
|
758
|
+
return jspb.Message.getField(this, 3) != null;
|
759
|
+
};
|
760
|
+
|
761
|
+
|
762
|
+
/**
|
763
|
+
* optional UserSearchRequest user_search_params = 4;
|
716
764
|
* @return {?proto.promocode.UserSearchRequest}
|
717
765
|
*/
|
718
766
|
proto.promocode.PaginationRequest.prototype.getUserSearchParams = function() {
|
719
767
|
return /** @type{?proto.promocode.UserSearchRequest} */ (
|
720
|
-
jspb.Message.getWrapperField(this, proto.promocode.UserSearchRequest,
|
768
|
+
jspb.Message.getWrapperField(this, proto.promocode.UserSearchRequest, 4));
|
721
769
|
};
|
722
770
|
|
723
771
|
|
@@ -726,7 +774,7 @@ proto.promocode.PaginationRequest.prototype.getUserSearchParams = function() {
|
|
726
774
|
* @return {!proto.promocode.PaginationRequest} returns this
|
727
775
|
*/
|
728
776
|
proto.promocode.PaginationRequest.prototype.setUserSearchParams = function(value) {
|
729
|
-
return jspb.Message.setWrapperField(this,
|
777
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
730
778
|
};
|
731
779
|
|
732
780
|
|
@@ -744,17 +792,17 @@ proto.promocode.PaginationRequest.prototype.clearUserSearchParams = function() {
|
|
744
792
|
* @return {boolean}
|
745
793
|
*/
|
746
794
|
proto.promocode.PaginationRequest.prototype.hasUserSearchParams = function() {
|
747
|
-
return jspb.Message.getField(this,
|
795
|
+
return jspb.Message.getField(this, 4) != null;
|
748
796
|
};
|
749
797
|
|
750
798
|
|
751
799
|
/**
|
752
|
-
* optional SearchRequest additional_search_params =
|
800
|
+
* optional SearchRequest additional_search_params = 5;
|
753
801
|
* @return {?proto.promocode.SearchRequest}
|
754
802
|
*/
|
755
803
|
proto.promocode.PaginationRequest.prototype.getAdditionalSearchParams = function() {
|
756
804
|
return /** @type{?proto.promocode.SearchRequest} */ (
|
757
|
-
jspb.Message.getWrapperField(this, proto.promocode.SearchRequest,
|
805
|
+
jspb.Message.getWrapperField(this, proto.promocode.SearchRequest, 5));
|
758
806
|
};
|
759
807
|
|
760
808
|
|
@@ -763,7 +811,7 @@ proto.promocode.PaginationRequest.prototype.getAdditionalSearchParams = function
|
|
763
811
|
* @return {!proto.promocode.PaginationRequest} returns this
|
764
812
|
*/
|
765
813
|
proto.promocode.PaginationRequest.prototype.setAdditionalSearchParams = function(value) {
|
766
|
-
return jspb.Message.setWrapperField(this,
|
814
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
767
815
|
};
|
768
816
|
|
769
817
|
|
@@ -781,7 +829,7 @@ proto.promocode.PaginationRequest.prototype.clearAdditionalSearchParams = functi
|
|
781
829
|
* @return {boolean}
|
782
830
|
*/
|
783
831
|
proto.promocode.PaginationRequest.prototype.hasAdditionalSearchParams = function() {
|
784
|
-
return jspb.Message.getField(this,
|
832
|
+
return jspb.Message.getField(this, 5) != null;
|
785
833
|
};
|
786
834
|
|
787
835
|
|