protobuf-platform 1.0.86 → 1.0.88

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/bet/bet.proto CHANGED
@@ -18,15 +18,16 @@ message UserSearchRequest {
18
18
  }
19
19
  //User info
20
20
  message UserBetItem {
21
- string game_title = 1;
22
- string action = 2;
23
- string balance_type = 3;
24
- float amount = 4;
25
- optional string currency = 5;
26
- optional string transaction_id = 6;
27
- optional string session_id = 7;
28
- optional string round_id = 8;
29
- optional string created = 9;
21
+ int32 id = 1;
22
+ string game_title = 2;
23
+ string action = 3;
24
+ string balance_type = 4;
25
+ float amount = 5;
26
+ optional string currency = 6;
27
+ optional string transaction_id = 7;
28
+ optional string session_id = 8;
29
+ optional string round_id = 9;
30
+ optional string created = 10;
30
31
  }
31
32
  message BetsHistoryResponse {
32
33
  repeated UserBetItem items = 1;
package/bet/bet_pb.js CHANGED
@@ -900,15 +900,16 @@ proto.bet.UserBetItem.prototype.toObject = function(opt_includeInstance) {
900
900
  */
901
901
  proto.bet.UserBetItem.toObject = function(includeInstance, msg) {
902
902
  var f, obj = {
903
- gameTitle: jspb.Message.getFieldWithDefault(msg, 1, ""),
904
- action: jspb.Message.getFieldWithDefault(msg, 2, ""),
905
- balanceType: jspb.Message.getFieldWithDefault(msg, 3, ""),
906
- amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
907
- currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
908
- transactionId: jspb.Message.getFieldWithDefault(msg, 6, ""),
909
- sessionId: jspb.Message.getFieldWithDefault(msg, 7, ""),
910
- roundId: jspb.Message.getFieldWithDefault(msg, 8, ""),
911
- created: jspb.Message.getFieldWithDefault(msg, 9, "")
903
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
904
+ gameTitle: jspb.Message.getFieldWithDefault(msg, 2, ""),
905
+ action: jspb.Message.getFieldWithDefault(msg, 3, ""),
906
+ balanceType: jspb.Message.getFieldWithDefault(msg, 4, ""),
907
+ amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
908
+ currency: jspb.Message.getFieldWithDefault(msg, 6, ""),
909
+ transactionId: jspb.Message.getFieldWithDefault(msg, 7, ""),
910
+ sessionId: jspb.Message.getFieldWithDefault(msg, 8, ""),
911
+ roundId: jspb.Message.getFieldWithDefault(msg, 9, ""),
912
+ created: jspb.Message.getFieldWithDefault(msg, 10, "")
912
913
  };
913
914
 
914
915
  if (includeInstance) {
@@ -946,38 +947,42 @@ proto.bet.UserBetItem.deserializeBinaryFromReader = function(msg, reader) {
946
947
  var field = reader.getFieldNumber();
947
948
  switch (field) {
948
949
  case 1:
950
+ var value = /** @type {number} */ (reader.readInt32());
951
+ msg.setId(value);
952
+ break;
953
+ case 2:
949
954
  var value = /** @type {string} */ (reader.readString());
950
955
  msg.setGameTitle(value);
951
956
  break;
952
- case 2:
957
+ case 3:
953
958
  var value = /** @type {string} */ (reader.readString());
954
959
  msg.setAction(value);
955
960
  break;
956
- case 3:
961
+ case 4:
957
962
  var value = /** @type {string} */ (reader.readString());
958
963
  msg.setBalanceType(value);
959
964
  break;
960
- case 4:
965
+ case 5:
961
966
  var value = /** @type {number} */ (reader.readFloat());
962
967
  msg.setAmount(value);
963
968
  break;
964
- case 5:
969
+ case 6:
965
970
  var value = /** @type {string} */ (reader.readString());
966
971
  msg.setCurrency(value);
967
972
  break;
968
- case 6:
973
+ case 7:
969
974
  var value = /** @type {string} */ (reader.readString());
970
975
  msg.setTransactionId(value);
971
976
  break;
972
- case 7:
977
+ case 8:
973
978
  var value = /** @type {string} */ (reader.readString());
974
979
  msg.setSessionId(value);
975
980
  break;
976
- case 8:
981
+ case 9:
977
982
  var value = /** @type {string} */ (reader.readString());
978
983
  msg.setRoundId(value);
979
984
  break;
980
- case 9:
985
+ case 10:
981
986
  var value = /** @type {string} */ (reader.readString());
982
987
  msg.setCreated(value);
983
988
  break;
@@ -1010,37 +1015,37 @@ proto.bet.UserBetItem.prototype.serializeBinary = function() {
1010
1015
  */
1011
1016
  proto.bet.UserBetItem.serializeBinaryToWriter = function(message, writer) {
1012
1017
  var f = undefined;
1018
+ f = message.getId();
1019
+ if (f !== 0) {
1020
+ writer.writeInt32(
1021
+ 1,
1022
+ f
1023
+ );
1024
+ }
1013
1025
  f = message.getGameTitle();
1014
1026
  if (f.length > 0) {
1015
1027
  writer.writeString(
1016
- 1,
1028
+ 2,
1017
1029
  f
1018
1030
  );
1019
1031
  }
1020
1032
  f = message.getAction();
1021
1033
  if (f.length > 0) {
1022
1034
  writer.writeString(
1023
- 2,
1035
+ 3,
1024
1036
  f
1025
1037
  );
1026
1038
  }
1027
1039
  f = message.getBalanceType();
1028
1040
  if (f.length > 0) {
1029
1041
  writer.writeString(
1030
- 3,
1042
+ 4,
1031
1043
  f
1032
1044
  );
1033
1045
  }
1034
1046
  f = message.getAmount();
1035
1047
  if (f !== 0.0) {
1036
1048
  writer.writeFloat(
1037
- 4,
1038
- f
1039
- );
1040
- }
1041
- f = /** @type {string} */ (jspb.Message.getField(message, 5));
1042
- if (f != null) {
1043
- writer.writeString(
1044
1049
  5,
1045
1050
  f
1046
1051
  );
@@ -1073,15 +1078,40 @@ proto.bet.UserBetItem.serializeBinaryToWriter = function(message, writer) {
1073
1078
  f
1074
1079
  );
1075
1080
  }
1081
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
1082
+ if (f != null) {
1083
+ writer.writeString(
1084
+ 10,
1085
+ f
1086
+ );
1087
+ }
1088
+ };
1089
+
1090
+
1091
+ /**
1092
+ * optional int32 id = 1;
1093
+ * @return {number}
1094
+ */
1095
+ proto.bet.UserBetItem.prototype.getId = function() {
1096
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1097
+ };
1098
+
1099
+
1100
+ /**
1101
+ * @param {number} value
1102
+ * @return {!proto.bet.UserBetItem} returns this
1103
+ */
1104
+ proto.bet.UserBetItem.prototype.setId = function(value) {
1105
+ return jspb.Message.setProto3IntField(this, 1, value);
1076
1106
  };
1077
1107
 
1078
1108
 
1079
1109
  /**
1080
- * optional string game_title = 1;
1110
+ * optional string game_title = 2;
1081
1111
  * @return {string}
1082
1112
  */
1083
1113
  proto.bet.UserBetItem.prototype.getGameTitle = function() {
1084
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1114
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1085
1115
  };
1086
1116
 
1087
1117
 
@@ -1090,16 +1120,16 @@ proto.bet.UserBetItem.prototype.getGameTitle = function() {
1090
1120
  * @return {!proto.bet.UserBetItem} returns this
1091
1121
  */
1092
1122
  proto.bet.UserBetItem.prototype.setGameTitle = function(value) {
1093
- return jspb.Message.setProto3StringField(this, 1, value);
1123
+ return jspb.Message.setProto3StringField(this, 2, value);
1094
1124
  };
1095
1125
 
1096
1126
 
1097
1127
  /**
1098
- * optional string action = 2;
1128
+ * optional string action = 3;
1099
1129
  * @return {string}
1100
1130
  */
1101
1131
  proto.bet.UserBetItem.prototype.getAction = function() {
1102
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1132
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1103
1133
  };
1104
1134
 
1105
1135
 
@@ -1108,16 +1138,16 @@ proto.bet.UserBetItem.prototype.getAction = function() {
1108
1138
  * @return {!proto.bet.UserBetItem} returns this
1109
1139
  */
1110
1140
  proto.bet.UserBetItem.prototype.setAction = function(value) {
1111
- return jspb.Message.setProto3StringField(this, 2, value);
1141
+ return jspb.Message.setProto3StringField(this, 3, value);
1112
1142
  };
1113
1143
 
1114
1144
 
1115
1145
  /**
1116
- * optional string balance_type = 3;
1146
+ * optional string balance_type = 4;
1117
1147
  * @return {string}
1118
1148
  */
1119
1149
  proto.bet.UserBetItem.prototype.getBalanceType = function() {
1120
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1150
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1121
1151
  };
1122
1152
 
1123
1153
 
@@ -1126,16 +1156,16 @@ proto.bet.UserBetItem.prototype.getBalanceType = function() {
1126
1156
  * @return {!proto.bet.UserBetItem} returns this
1127
1157
  */
1128
1158
  proto.bet.UserBetItem.prototype.setBalanceType = function(value) {
1129
- return jspb.Message.setProto3StringField(this, 3, value);
1159
+ return jspb.Message.setProto3StringField(this, 4, value);
1130
1160
  };
1131
1161
 
1132
1162
 
1133
1163
  /**
1134
- * optional float amount = 4;
1164
+ * optional float amount = 5;
1135
1165
  * @return {number}
1136
1166
  */
1137
1167
  proto.bet.UserBetItem.prototype.getAmount = function() {
1138
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
1168
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
1139
1169
  };
1140
1170
 
1141
1171
 
@@ -1144,16 +1174,16 @@ proto.bet.UserBetItem.prototype.getAmount = function() {
1144
1174
  * @return {!proto.bet.UserBetItem} returns this
1145
1175
  */
1146
1176
  proto.bet.UserBetItem.prototype.setAmount = function(value) {
1147
- return jspb.Message.setProto3FloatField(this, 4, value);
1177
+ return jspb.Message.setProto3FloatField(this, 5, value);
1148
1178
  };
1149
1179
 
1150
1180
 
1151
1181
  /**
1152
- * optional string currency = 5;
1182
+ * optional string currency = 6;
1153
1183
  * @return {string}
1154
1184
  */
1155
1185
  proto.bet.UserBetItem.prototype.getCurrency = function() {
1156
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1186
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1157
1187
  };
1158
1188
 
1159
1189
 
@@ -1162,7 +1192,7 @@ proto.bet.UserBetItem.prototype.getCurrency = function() {
1162
1192
  * @return {!proto.bet.UserBetItem} returns this
1163
1193
  */
1164
1194
  proto.bet.UserBetItem.prototype.setCurrency = function(value) {
1165
- return jspb.Message.setField(this, 5, value);
1195
+ return jspb.Message.setField(this, 6, value);
1166
1196
  };
1167
1197
 
1168
1198
 
@@ -1171,7 +1201,7 @@ proto.bet.UserBetItem.prototype.setCurrency = function(value) {
1171
1201
  * @return {!proto.bet.UserBetItem} returns this
1172
1202
  */
1173
1203
  proto.bet.UserBetItem.prototype.clearCurrency = function() {
1174
- return jspb.Message.setField(this, 5, undefined);
1204
+ return jspb.Message.setField(this, 6, undefined);
1175
1205
  };
1176
1206
 
1177
1207
 
@@ -1180,16 +1210,16 @@ proto.bet.UserBetItem.prototype.clearCurrency = function() {
1180
1210
  * @return {boolean}
1181
1211
  */
1182
1212
  proto.bet.UserBetItem.prototype.hasCurrency = function() {
1183
- return jspb.Message.getField(this, 5) != null;
1213
+ return jspb.Message.getField(this, 6) != null;
1184
1214
  };
1185
1215
 
1186
1216
 
1187
1217
  /**
1188
- * optional string transaction_id = 6;
1218
+ * optional string transaction_id = 7;
1189
1219
  * @return {string}
1190
1220
  */
1191
1221
  proto.bet.UserBetItem.prototype.getTransactionId = function() {
1192
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1222
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1193
1223
  };
1194
1224
 
1195
1225
 
@@ -1198,7 +1228,7 @@ proto.bet.UserBetItem.prototype.getTransactionId = function() {
1198
1228
  * @return {!proto.bet.UserBetItem} returns this
1199
1229
  */
1200
1230
  proto.bet.UserBetItem.prototype.setTransactionId = function(value) {
1201
- return jspb.Message.setField(this, 6, value);
1231
+ return jspb.Message.setField(this, 7, value);
1202
1232
  };
1203
1233
 
1204
1234
 
@@ -1207,7 +1237,7 @@ proto.bet.UserBetItem.prototype.setTransactionId = function(value) {
1207
1237
  * @return {!proto.bet.UserBetItem} returns this
1208
1238
  */
1209
1239
  proto.bet.UserBetItem.prototype.clearTransactionId = function() {
1210
- return jspb.Message.setField(this, 6, undefined);
1240
+ return jspb.Message.setField(this, 7, undefined);
1211
1241
  };
1212
1242
 
1213
1243
 
@@ -1216,16 +1246,16 @@ proto.bet.UserBetItem.prototype.clearTransactionId = function() {
1216
1246
  * @return {boolean}
1217
1247
  */
1218
1248
  proto.bet.UserBetItem.prototype.hasTransactionId = function() {
1219
- return jspb.Message.getField(this, 6) != null;
1249
+ return jspb.Message.getField(this, 7) != null;
1220
1250
  };
1221
1251
 
1222
1252
 
1223
1253
  /**
1224
- * optional string session_id = 7;
1254
+ * optional string session_id = 8;
1225
1255
  * @return {string}
1226
1256
  */
1227
1257
  proto.bet.UserBetItem.prototype.getSessionId = function() {
1228
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1258
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1229
1259
  };
1230
1260
 
1231
1261
 
@@ -1234,7 +1264,7 @@ proto.bet.UserBetItem.prototype.getSessionId = function() {
1234
1264
  * @return {!proto.bet.UserBetItem} returns this
1235
1265
  */
1236
1266
  proto.bet.UserBetItem.prototype.setSessionId = function(value) {
1237
- return jspb.Message.setField(this, 7, value);
1267
+ return jspb.Message.setField(this, 8, value);
1238
1268
  };
1239
1269
 
1240
1270
 
@@ -1243,7 +1273,7 @@ proto.bet.UserBetItem.prototype.setSessionId = function(value) {
1243
1273
  * @return {!proto.bet.UserBetItem} returns this
1244
1274
  */
1245
1275
  proto.bet.UserBetItem.prototype.clearSessionId = function() {
1246
- return jspb.Message.setField(this, 7, undefined);
1276
+ return jspb.Message.setField(this, 8, undefined);
1247
1277
  };
1248
1278
 
1249
1279
 
@@ -1252,16 +1282,16 @@ proto.bet.UserBetItem.prototype.clearSessionId = function() {
1252
1282
  * @return {boolean}
1253
1283
  */
1254
1284
  proto.bet.UserBetItem.prototype.hasSessionId = function() {
1255
- return jspb.Message.getField(this, 7) != null;
1285
+ return jspb.Message.getField(this, 8) != null;
1256
1286
  };
1257
1287
 
1258
1288
 
1259
1289
  /**
1260
- * optional string round_id = 8;
1290
+ * optional string round_id = 9;
1261
1291
  * @return {string}
1262
1292
  */
1263
1293
  proto.bet.UserBetItem.prototype.getRoundId = function() {
1264
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1294
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1265
1295
  };
1266
1296
 
1267
1297
 
@@ -1270,7 +1300,7 @@ proto.bet.UserBetItem.prototype.getRoundId = function() {
1270
1300
  * @return {!proto.bet.UserBetItem} returns this
1271
1301
  */
1272
1302
  proto.bet.UserBetItem.prototype.setRoundId = function(value) {
1273
- return jspb.Message.setField(this, 8, value);
1303
+ return jspb.Message.setField(this, 9, value);
1274
1304
  };
1275
1305
 
1276
1306
 
@@ -1279,7 +1309,7 @@ proto.bet.UserBetItem.prototype.setRoundId = function(value) {
1279
1309
  * @return {!proto.bet.UserBetItem} returns this
1280
1310
  */
1281
1311
  proto.bet.UserBetItem.prototype.clearRoundId = function() {
1282
- return jspb.Message.setField(this, 8, undefined);
1312
+ return jspb.Message.setField(this, 9, undefined);
1283
1313
  };
1284
1314
 
1285
1315
 
@@ -1288,16 +1318,16 @@ proto.bet.UserBetItem.prototype.clearRoundId = function() {
1288
1318
  * @return {boolean}
1289
1319
  */
1290
1320
  proto.bet.UserBetItem.prototype.hasRoundId = function() {
1291
- return jspb.Message.getField(this, 8) != null;
1321
+ return jspb.Message.getField(this, 9) != null;
1292
1322
  };
1293
1323
 
1294
1324
 
1295
1325
  /**
1296
- * optional string created = 9;
1326
+ * optional string created = 10;
1297
1327
  * @return {string}
1298
1328
  */
1299
1329
  proto.bet.UserBetItem.prototype.getCreated = function() {
1300
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1330
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1301
1331
  };
1302
1332
 
1303
1333
 
@@ -1306,7 +1336,7 @@ proto.bet.UserBetItem.prototype.getCreated = function() {
1306
1336
  * @return {!proto.bet.UserBetItem} returns this
1307
1337
  */
1308
1338
  proto.bet.UserBetItem.prototype.setCreated = function(value) {
1309
- return jspb.Message.setField(this, 9, value);
1339
+ return jspb.Message.setField(this, 10, value);
1310
1340
  };
1311
1341
 
1312
1342
 
@@ -1315,7 +1345,7 @@ proto.bet.UserBetItem.prototype.setCreated = function(value) {
1315
1345
  * @return {!proto.bet.UserBetItem} returns this
1316
1346
  */
1317
1347
  proto.bet.UserBetItem.prototype.clearCreated = function() {
1318
- return jspb.Message.setField(this, 9, undefined);
1348
+ return jspb.Message.setField(this, 10, undefined);
1319
1349
  };
1320
1350
 
1321
1351
 
@@ -1324,7 +1354,7 @@ proto.bet.UserBetItem.prototype.clearCreated = function() {
1324
1354
  * @return {boolean}
1325
1355
  */
1326
1356
  proto.bet.UserBetItem.prototype.hasCreated = function() {
1327
- return jspb.Message.getField(this, 9) != null;
1357
+ return jspb.Message.getField(this, 10) != null;
1328
1358
  };
1329
1359
 
1330
1360
 
package/game/game.proto CHANGED
@@ -264,6 +264,7 @@ message GameItem {
264
264
  optional int32 has_free_spins = 10;
265
265
  optional string collections = 11;
266
266
  optional string tags = 12;
267
+ optional string uuid = 13;
267
268
  }
268
269
  //Game CRUD | Requests
269
270
  message GameRequest {
package/game/game_pb.js CHANGED
@@ -10733,7 +10733,8 @@ proto.game.GameItem.toObject = function(includeInstance, msg) {
10733
10733
  isMobile: jspb.Message.getFieldWithDefault(msg, 9, 0),
10734
10734
  hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 10, 0),
10735
10735
  collections: jspb.Message.getFieldWithDefault(msg, 11, ""),
10736
- tags: jspb.Message.getFieldWithDefault(msg, 12, "")
10736
+ tags: jspb.Message.getFieldWithDefault(msg, 12, ""),
10737
+ uuid: jspb.Message.getFieldWithDefault(msg, 13, "")
10737
10738
  };
10738
10739
 
10739
10740
  if (includeInstance) {
@@ -10819,6 +10820,10 @@ proto.game.GameItem.deserializeBinaryFromReader = function(msg, reader) {
10819
10820
  var value = /** @type {string} */ (reader.readString());
10820
10821
  msg.setTags(value);
10821
10822
  break;
10823
+ case 13:
10824
+ var value = /** @type {string} */ (reader.readString());
10825
+ msg.setUuid(value);
10826
+ break;
10822
10827
  default:
10823
10828
  reader.skipField();
10824
10829
  break;
@@ -10933,6 +10938,13 @@ proto.game.GameItem.serializeBinaryToWriter = function(message, writer) {
10933
10938
  f
10934
10939
  );
10935
10940
  }
10941
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
10942
+ if (f != null) {
10943
+ writer.writeString(
10944
+ 13,
10945
+ f
10946
+ );
10947
+ }
10936
10948
  };
10937
10949
 
10938
10950
 
@@ -11369,6 +11381,42 @@ proto.game.GameItem.prototype.hasTags = function() {
11369
11381
  };
11370
11382
 
11371
11383
 
11384
+ /**
11385
+ * optional string uuid = 13;
11386
+ * @return {string}
11387
+ */
11388
+ proto.game.GameItem.prototype.getUuid = function() {
11389
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
11390
+ };
11391
+
11392
+
11393
+ /**
11394
+ * @param {string} value
11395
+ * @return {!proto.game.GameItem} returns this
11396
+ */
11397
+ proto.game.GameItem.prototype.setUuid = function(value) {
11398
+ return jspb.Message.setField(this, 13, value);
11399
+ };
11400
+
11401
+
11402
+ /**
11403
+ * Clears the field making it undefined.
11404
+ * @return {!proto.game.GameItem} returns this
11405
+ */
11406
+ proto.game.GameItem.prototype.clearUuid = function() {
11407
+ return jspb.Message.setField(this, 13, undefined);
11408
+ };
11409
+
11410
+
11411
+ /**
11412
+ * Returns whether this field is set.
11413
+ * @return {boolean}
11414
+ */
11415
+ proto.game.GameItem.prototype.hasUuid = function() {
11416
+ return jspb.Message.getField(this, 13) != null;
11417
+ };
11418
+
11419
+
11372
11420
 
11373
11421
  /**
11374
11422
  * Oneof group definitions for this message. Each group defines the field
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.86",
3
+ "version": "1.0.88",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {