protobuf-platform 1.1.18 → 1.1.20
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/package.json
CHANGED
@@ -21,6 +21,7 @@ service Tournament {
|
|
21
21
|
rpc readListTournamentStatuses(PaginationRequest) returns (TournamentStatusItemsResponse);
|
22
22
|
rpc getTournamentsForUser(PaginationRequest) returns (UserTournamentItemsResponse);
|
23
23
|
rpc getSingleTournamentForUser(UserTournamentRequest) returns (UserTournamentItem);
|
24
|
+
rpc attachUserToTournament(UserTournamentRequest) returns (TournamentStatusResponse);
|
24
25
|
}
|
25
26
|
//Technical
|
26
27
|
message PingRequest { string ping = 1; }
|
@@ -173,6 +174,7 @@ message UserTournamentItem {
|
|
173
174
|
repeated RewardItem rewards = 11;
|
174
175
|
optional string content = 12;
|
175
176
|
optional string slug = 13;
|
177
|
+
optional bool can_activated = 14;
|
176
178
|
}
|
177
179
|
message UserTournamentItemsResponse {
|
178
180
|
repeated UserTournamentItem items = 1;
|
@@ -184,4 +186,5 @@ message UserTournamentRequest {
|
|
184
186
|
optional string currency = 2;
|
185
187
|
optional string locale = 3;
|
186
188
|
optional int32 user_id = 4;
|
189
|
+
optional int32 tournament_id = 5;
|
187
190
|
}
|
@@ -393,6 +393,17 @@ readListTournamentStatuses: {
|
|
393
393
|
responseSerialize: serialize_tournament_UserTournamentItem,
|
394
394
|
responseDeserialize: deserialize_tournament_UserTournamentItem,
|
395
395
|
},
|
396
|
+
attachUserToTournament: {
|
397
|
+
path: '/tournament.Tournament/attachUserToTournament',
|
398
|
+
requestStream: false,
|
399
|
+
responseStream: false,
|
400
|
+
requestType: tournament_pb.UserTournamentRequest,
|
401
|
+
responseType: tournament_pb.TournamentStatusResponse,
|
402
|
+
requestSerialize: serialize_tournament_UserTournamentRequest,
|
403
|
+
requestDeserialize: deserialize_tournament_UserTournamentRequest,
|
404
|
+
responseSerialize: serialize_tournament_TournamentStatusResponse,
|
405
|
+
responseDeserialize: deserialize_tournament_TournamentStatusResponse,
|
406
|
+
},
|
396
407
|
};
|
397
408
|
|
398
409
|
exports.TournamentClient = grpc.makeGenericClientConstructor(TournamentService);
|
@@ -7560,7 +7560,8 @@ proto.tournament.UserTournamentItem.toObject = function(includeInstance, msg) {
|
|
7560
7560
|
rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
|
7561
7561
|
proto.tournament.RewardItem.toObject, includeInstance),
|
7562
7562
|
content: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
7563
|
-
slug: jspb.Message.getFieldWithDefault(msg, 13, "")
|
7563
|
+
slug: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
7564
|
+
canActivated: jspb.Message.getBooleanFieldWithDefault(msg, 14, false)
|
7564
7565
|
};
|
7565
7566
|
|
7566
7567
|
if (includeInstance) {
|
@@ -7651,6 +7652,10 @@ proto.tournament.UserTournamentItem.deserializeBinaryFromReader = function(msg,
|
|
7651
7652
|
var value = /** @type {string} */ (reader.readString());
|
7652
7653
|
msg.setSlug(value);
|
7653
7654
|
break;
|
7655
|
+
case 14:
|
7656
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
7657
|
+
msg.setCanActivated(value);
|
7658
|
+
break;
|
7654
7659
|
default:
|
7655
7660
|
reader.skipField();
|
7656
7661
|
break;
|
@@ -7773,6 +7778,13 @@ proto.tournament.UserTournamentItem.serializeBinaryToWriter = function(message,
|
|
7773
7778
|
f
|
7774
7779
|
);
|
7775
7780
|
}
|
7781
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 14));
|
7782
|
+
if (f != null) {
|
7783
|
+
writer.writeBool(
|
7784
|
+
14,
|
7785
|
+
f
|
7786
|
+
);
|
7787
|
+
}
|
7776
7788
|
};
|
7777
7789
|
|
7778
7790
|
|
@@ -8248,6 +8260,42 @@ proto.tournament.UserTournamentItem.prototype.hasSlug = function() {
|
|
8248
8260
|
};
|
8249
8261
|
|
8250
8262
|
|
8263
|
+
/**
|
8264
|
+
* optional bool can_activated = 14;
|
8265
|
+
* @return {boolean}
|
8266
|
+
*/
|
8267
|
+
proto.tournament.UserTournamentItem.prototype.getCanActivated = function() {
|
8268
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false));
|
8269
|
+
};
|
8270
|
+
|
8271
|
+
|
8272
|
+
/**
|
8273
|
+
* @param {boolean} value
|
8274
|
+
* @return {!proto.tournament.UserTournamentItem} returns this
|
8275
|
+
*/
|
8276
|
+
proto.tournament.UserTournamentItem.prototype.setCanActivated = function(value) {
|
8277
|
+
return jspb.Message.setField(this, 14, value);
|
8278
|
+
};
|
8279
|
+
|
8280
|
+
|
8281
|
+
/**
|
8282
|
+
* Clears the field making it undefined.
|
8283
|
+
* @return {!proto.tournament.UserTournamentItem} returns this
|
8284
|
+
*/
|
8285
|
+
proto.tournament.UserTournamentItem.prototype.clearCanActivated = function() {
|
8286
|
+
return jspb.Message.setField(this, 14, undefined);
|
8287
|
+
};
|
8288
|
+
|
8289
|
+
|
8290
|
+
/**
|
8291
|
+
* Returns whether this field is set.
|
8292
|
+
* @return {boolean}
|
8293
|
+
*/
|
8294
|
+
proto.tournament.UserTournamentItem.prototype.hasCanActivated = function() {
|
8295
|
+
return jspb.Message.getField(this, 14) != null;
|
8296
|
+
};
|
8297
|
+
|
8298
|
+
|
8251
8299
|
|
8252
8300
|
/**
|
8253
8301
|
* List of repeated fields within this message type.
|
@@ -8539,7 +8587,8 @@ proto.tournament.UserTournamentRequest.toObject = function(includeInstance, msg)
|
|
8539
8587
|
tournamentSlug: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
8540
8588
|
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
8541
8589
|
locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
8542
|
-
userId: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
8590
|
+
userId: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
8591
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
8543
8592
|
};
|
8544
8593
|
|
8545
8594
|
if (includeInstance) {
|
@@ -8592,6 +8641,10 @@ proto.tournament.UserTournamentRequest.deserializeBinaryFromReader = function(ms
|
|
8592
8641
|
var value = /** @type {number} */ (reader.readInt32());
|
8593
8642
|
msg.setUserId(value);
|
8594
8643
|
break;
|
8644
|
+
case 5:
|
8645
|
+
var value = /** @type {number} */ (reader.readInt32());
|
8646
|
+
msg.setTournamentId(value);
|
8647
|
+
break;
|
8595
8648
|
default:
|
8596
8649
|
reader.skipField();
|
8597
8650
|
break;
|
@@ -8649,6 +8702,13 @@ proto.tournament.UserTournamentRequest.serializeBinaryToWriter = function(messag
|
|
8649
8702
|
f
|
8650
8703
|
);
|
8651
8704
|
}
|
8705
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
8706
|
+
if (f != null) {
|
8707
|
+
writer.writeInt32(
|
8708
|
+
5,
|
8709
|
+
f
|
8710
|
+
);
|
8711
|
+
}
|
8652
8712
|
};
|
8653
8713
|
|
8654
8714
|
|
@@ -8778,4 +8838,40 @@ proto.tournament.UserTournamentRequest.prototype.hasUserId = function() {
|
|
8778
8838
|
};
|
8779
8839
|
|
8780
8840
|
|
8841
|
+
/**
|
8842
|
+
* optional int32 tournament_id = 5;
|
8843
|
+
* @return {number}
|
8844
|
+
*/
|
8845
|
+
proto.tournament.UserTournamentRequest.prototype.getTournamentId = function() {
|
8846
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
8847
|
+
};
|
8848
|
+
|
8849
|
+
|
8850
|
+
/**
|
8851
|
+
* @param {number} value
|
8852
|
+
* @return {!proto.tournament.UserTournamentRequest} returns this
|
8853
|
+
*/
|
8854
|
+
proto.tournament.UserTournamentRequest.prototype.setTournamentId = function(value) {
|
8855
|
+
return jspb.Message.setField(this, 5, value);
|
8856
|
+
};
|
8857
|
+
|
8858
|
+
|
8859
|
+
/**
|
8860
|
+
* Clears the field making it undefined.
|
8861
|
+
* @return {!proto.tournament.UserTournamentRequest} returns this
|
8862
|
+
*/
|
8863
|
+
proto.tournament.UserTournamentRequest.prototype.clearTournamentId = function() {
|
8864
|
+
return jspb.Message.setField(this, 5, undefined);
|
8865
|
+
};
|
8866
|
+
|
8867
|
+
|
8868
|
+
/**
|
8869
|
+
* Returns whether this field is set.
|
8870
|
+
* @return {boolean}
|
8871
|
+
*/
|
8872
|
+
proto.tournament.UserTournamentRequest.prototype.hasTournamentId = function() {
|
8873
|
+
return jspb.Message.getField(this, 5) != null;
|
8874
|
+
};
|
8875
|
+
|
8876
|
+
|
8781
8877
|
goog.object.extend(exports, proto.tournament);
|