protobuf-platform 1.2.654 → 1.2.656

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/bonus/bonus.proto CHANGED
@@ -347,6 +347,13 @@ message GetBonusSnapshotsByIdsRequest {
347
347
  repeated int32 ids = 1;
348
348
  optional string locale = 2;
349
349
  }
350
+ // Display quantity for one bonus reward. Amount is the existing config value used on cards
351
+ // (freespins totalAmount, freebet amount, points, or deposit value). Internal execution fields stay omitted.
352
+ message BonusRewardPresentation {
353
+ string type = 1;
354
+ optional string amount = 2;
355
+ optional string currency = 3;
356
+ }
350
357
  message BonusSnapshotItem {
351
358
  int32 id = 1;
352
359
  optional string title = 2;
@@ -362,6 +369,9 @@ message BonusSnapshotItem {
362
369
  optional string finished_at = 12;
363
370
  optional string portrait_image = 13;
364
371
  optional string portrait_image_cdn = 14;
372
+ optional string type = 15;
373
+ optional string cadence = 16;
374
+ repeated BonusRewardPresentation rewards = 17;
365
375
  }
366
376
  message BonusSnapshotItemsResponse {
367
377
  repeated BonusSnapshotItem items = 1;
package/bonus/bonus_pb.js CHANGED
@@ -40,6 +40,7 @@ goog.exportSymbol('proto.bonus.BonusRequest', null, global);
40
40
  goog.exportSymbol('proto.bonus.BonusRequest.RequestCase', null, global);
41
41
  goog.exportSymbol('proto.bonus.BonusResponse', null, global);
42
42
  goog.exportSymbol('proto.bonus.BonusReward', null, global);
43
+ goog.exportSymbol('proto.bonus.BonusRewardPresentation', null, global);
43
44
  goog.exportSymbol('proto.bonus.BonusRewardWriteItem', null, global);
44
45
  goog.exportSymbol('proto.bonus.BonusRewardsRequest', null, global);
45
46
  goog.exportSymbol('proto.bonus.BonusSnapshotItem', null, global);
@@ -735,9 +736,30 @@ if (goog.DEBUG && !COMPILED) {
735
736
  * @extends {jspb.Message}
736
737
  * @constructor
737
738
  */
738
- proto.bonus.BonusSnapshotItem = function(opt_data) {
739
+ proto.bonus.BonusRewardPresentation = function(opt_data) {
739
740
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
740
741
  };
742
+ goog.inherits(proto.bonus.BonusRewardPresentation, jspb.Message);
743
+ if (goog.DEBUG && !COMPILED) {
744
+ /**
745
+ * @public
746
+ * @override
747
+ */
748
+ proto.bonus.BonusRewardPresentation.displayName = 'proto.bonus.BonusRewardPresentation';
749
+ }
750
+ /**
751
+ * Generated by JsPbCodeGenerator.
752
+ * @param {Array=} opt_data Optional initial data array, typically from a
753
+ * server response, or constructed directly in Javascript. The array is used
754
+ * in place and becomes part of the constructed object. It is not cloned.
755
+ * If no data is provided, the constructed object will be empty, but still
756
+ * valid.
757
+ * @extends {jspb.Message}
758
+ * @constructor
759
+ */
760
+ proto.bonus.BonusSnapshotItem = function(opt_data) {
761
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.BonusSnapshotItem.repeatedFields_, null);
762
+ };
741
763
  goog.inherits(proto.bonus.BonusSnapshotItem, jspb.Message);
742
764
  if (goog.DEBUG && !COMPILED) {
743
765
  /**
@@ -14024,6 +14046,239 @@ proto.bonus.GetBonusSnapshotsByIdsRequest.prototype.hasLocale = function() {
14024
14046
 
14025
14047
 
14026
14048
 
14049
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14050
+ /**
14051
+ * Creates an object representation of this proto.
14052
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14053
+ * Optional fields that are not set will be set to undefined.
14054
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14055
+ * For the list of reserved names please see:
14056
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14057
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14058
+ * JSPB instance for transitional soy proto support:
14059
+ * http://goto/soy-param-migration
14060
+ * @return {!Object}
14061
+ */
14062
+ proto.bonus.BonusRewardPresentation.prototype.toObject = function(opt_includeInstance) {
14063
+ return proto.bonus.BonusRewardPresentation.toObject(opt_includeInstance, this);
14064
+ };
14065
+
14066
+
14067
+ /**
14068
+ * Static version of the {@see toObject} method.
14069
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14070
+ * the JSPB instance for transitional soy proto support:
14071
+ * http://goto/soy-param-migration
14072
+ * @param {!proto.bonus.BonusRewardPresentation} msg The msg instance to transform.
14073
+ * @return {!Object}
14074
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14075
+ */
14076
+ proto.bonus.BonusRewardPresentation.toObject = function(includeInstance, msg) {
14077
+ var f, obj = {
14078
+ type: jspb.Message.getFieldWithDefault(msg, 1, ""),
14079
+ amount: jspb.Message.getFieldWithDefault(msg, 2, ""),
14080
+ currency: jspb.Message.getFieldWithDefault(msg, 3, "")
14081
+ };
14082
+
14083
+ if (includeInstance) {
14084
+ obj.$jspbMessageInstance = msg;
14085
+ }
14086
+ return obj;
14087
+ };
14088
+ }
14089
+
14090
+
14091
+ /**
14092
+ * Deserializes binary data (in protobuf wire format).
14093
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14094
+ * @return {!proto.bonus.BonusRewardPresentation}
14095
+ */
14096
+ proto.bonus.BonusRewardPresentation.deserializeBinary = function(bytes) {
14097
+ var reader = new jspb.BinaryReader(bytes);
14098
+ var msg = new proto.bonus.BonusRewardPresentation;
14099
+ return proto.bonus.BonusRewardPresentation.deserializeBinaryFromReader(msg, reader);
14100
+ };
14101
+
14102
+
14103
+ /**
14104
+ * Deserializes binary data (in protobuf wire format) from the
14105
+ * given reader into the given message object.
14106
+ * @param {!proto.bonus.BonusRewardPresentation} msg The message object to deserialize into.
14107
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14108
+ * @return {!proto.bonus.BonusRewardPresentation}
14109
+ */
14110
+ proto.bonus.BonusRewardPresentation.deserializeBinaryFromReader = function(msg, reader) {
14111
+ while (reader.nextField()) {
14112
+ if (reader.isEndGroup()) {
14113
+ break;
14114
+ }
14115
+ var field = reader.getFieldNumber();
14116
+ switch (field) {
14117
+ case 1:
14118
+ var value = /** @type {string} */ (reader.readString());
14119
+ msg.setType(value);
14120
+ break;
14121
+ case 2:
14122
+ var value = /** @type {string} */ (reader.readString());
14123
+ msg.setAmount(value);
14124
+ break;
14125
+ case 3:
14126
+ var value = /** @type {string} */ (reader.readString());
14127
+ msg.setCurrency(value);
14128
+ break;
14129
+ default:
14130
+ reader.skipField();
14131
+ break;
14132
+ }
14133
+ }
14134
+ return msg;
14135
+ };
14136
+
14137
+
14138
+ /**
14139
+ * Serializes the message to binary data (in protobuf wire format).
14140
+ * @return {!Uint8Array}
14141
+ */
14142
+ proto.bonus.BonusRewardPresentation.prototype.serializeBinary = function() {
14143
+ var writer = new jspb.BinaryWriter();
14144
+ proto.bonus.BonusRewardPresentation.serializeBinaryToWriter(this, writer);
14145
+ return writer.getResultBuffer();
14146
+ };
14147
+
14148
+
14149
+ /**
14150
+ * Serializes the given message to binary data (in protobuf wire
14151
+ * format), writing to the given BinaryWriter.
14152
+ * @param {!proto.bonus.BonusRewardPresentation} message
14153
+ * @param {!jspb.BinaryWriter} writer
14154
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14155
+ */
14156
+ proto.bonus.BonusRewardPresentation.serializeBinaryToWriter = function(message, writer) {
14157
+ var f = undefined;
14158
+ f = message.getType();
14159
+ if (f.length > 0) {
14160
+ writer.writeString(
14161
+ 1,
14162
+ f
14163
+ );
14164
+ }
14165
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
14166
+ if (f != null) {
14167
+ writer.writeString(
14168
+ 2,
14169
+ f
14170
+ );
14171
+ }
14172
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
14173
+ if (f != null) {
14174
+ writer.writeString(
14175
+ 3,
14176
+ f
14177
+ );
14178
+ }
14179
+ };
14180
+
14181
+
14182
+ /**
14183
+ * optional string type = 1;
14184
+ * @return {string}
14185
+ */
14186
+ proto.bonus.BonusRewardPresentation.prototype.getType = function() {
14187
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
14188
+ };
14189
+
14190
+
14191
+ /**
14192
+ * @param {string} value
14193
+ * @return {!proto.bonus.BonusRewardPresentation} returns this
14194
+ */
14195
+ proto.bonus.BonusRewardPresentation.prototype.setType = function(value) {
14196
+ return jspb.Message.setProto3StringField(this, 1, value);
14197
+ };
14198
+
14199
+
14200
+ /**
14201
+ * optional string amount = 2;
14202
+ * @return {string}
14203
+ */
14204
+ proto.bonus.BonusRewardPresentation.prototype.getAmount = function() {
14205
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
14206
+ };
14207
+
14208
+
14209
+ /**
14210
+ * @param {string} value
14211
+ * @return {!proto.bonus.BonusRewardPresentation} returns this
14212
+ */
14213
+ proto.bonus.BonusRewardPresentation.prototype.setAmount = function(value) {
14214
+ return jspb.Message.setField(this, 2, value);
14215
+ };
14216
+
14217
+
14218
+ /**
14219
+ * Clears the field making it undefined.
14220
+ * @return {!proto.bonus.BonusRewardPresentation} returns this
14221
+ */
14222
+ proto.bonus.BonusRewardPresentation.prototype.clearAmount = function() {
14223
+ return jspb.Message.setField(this, 2, undefined);
14224
+ };
14225
+
14226
+
14227
+ /**
14228
+ * Returns whether this field is set.
14229
+ * @return {boolean}
14230
+ */
14231
+ proto.bonus.BonusRewardPresentation.prototype.hasAmount = function() {
14232
+ return jspb.Message.getField(this, 2) != null;
14233
+ };
14234
+
14235
+
14236
+ /**
14237
+ * optional string currency = 3;
14238
+ * @return {string}
14239
+ */
14240
+ proto.bonus.BonusRewardPresentation.prototype.getCurrency = function() {
14241
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
14242
+ };
14243
+
14244
+
14245
+ /**
14246
+ * @param {string} value
14247
+ * @return {!proto.bonus.BonusRewardPresentation} returns this
14248
+ */
14249
+ proto.bonus.BonusRewardPresentation.prototype.setCurrency = function(value) {
14250
+ return jspb.Message.setField(this, 3, value);
14251
+ };
14252
+
14253
+
14254
+ /**
14255
+ * Clears the field making it undefined.
14256
+ * @return {!proto.bonus.BonusRewardPresentation} returns this
14257
+ */
14258
+ proto.bonus.BonusRewardPresentation.prototype.clearCurrency = function() {
14259
+ return jspb.Message.setField(this, 3, undefined);
14260
+ };
14261
+
14262
+
14263
+ /**
14264
+ * Returns whether this field is set.
14265
+ * @return {boolean}
14266
+ */
14267
+ proto.bonus.BonusRewardPresentation.prototype.hasCurrency = function() {
14268
+ return jspb.Message.getField(this, 3) != null;
14269
+ };
14270
+
14271
+
14272
+
14273
+ /**
14274
+ * List of repeated fields within this message type.
14275
+ * @private {!Array<number>}
14276
+ * @const
14277
+ */
14278
+ proto.bonus.BonusSnapshotItem.repeatedFields_ = [17];
14279
+
14280
+
14281
+
14027
14282
  if (jspb.Message.GENERATE_TO_OBJECT) {
14028
14283
  /**
14029
14284
  * Creates an object representation of this proto.
@@ -14066,7 +14321,11 @@ proto.bonus.BonusSnapshotItem.toObject = function(includeInstance, msg) {
14066
14321
  startedAt: jspb.Message.getFieldWithDefault(msg, 11, ""),
14067
14322
  finishedAt: jspb.Message.getFieldWithDefault(msg, 12, ""),
14068
14323
  portraitImage: jspb.Message.getFieldWithDefault(msg, 13, ""),
14069
- portraitImageCdn: jspb.Message.getFieldWithDefault(msg, 14, "")
14324
+ portraitImageCdn: jspb.Message.getFieldWithDefault(msg, 14, ""),
14325
+ type: jspb.Message.getFieldWithDefault(msg, 15, ""),
14326
+ cadence: jspb.Message.getFieldWithDefault(msg, 16, ""),
14327
+ rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
14328
+ proto.bonus.BonusRewardPresentation.toObject, includeInstance)
14070
14329
  };
14071
14330
 
14072
14331
  if (includeInstance) {
@@ -14159,6 +14418,19 @@ proto.bonus.BonusSnapshotItem.deserializeBinaryFromReader = function(msg, reader
14159
14418
  var value = /** @type {string} */ (reader.readString());
14160
14419
  msg.setPortraitImageCdn(value);
14161
14420
  break;
14421
+ case 15:
14422
+ var value = /** @type {string} */ (reader.readString());
14423
+ msg.setType(value);
14424
+ break;
14425
+ case 16:
14426
+ var value = /** @type {string} */ (reader.readString());
14427
+ msg.setCadence(value);
14428
+ break;
14429
+ case 17:
14430
+ var value = new proto.bonus.BonusRewardPresentation;
14431
+ reader.readMessage(value,proto.bonus.BonusRewardPresentation.deserializeBinaryFromReader);
14432
+ msg.addRewards(value);
14433
+ break;
14162
14434
  default:
14163
14435
  reader.skipField();
14164
14436
  break;
@@ -14286,6 +14558,28 @@ proto.bonus.BonusSnapshotItem.serializeBinaryToWriter = function(message, writer
14286
14558
  f
14287
14559
  );
14288
14560
  }
14561
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
14562
+ if (f != null) {
14563
+ writer.writeString(
14564
+ 15,
14565
+ f
14566
+ );
14567
+ }
14568
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
14569
+ if (f != null) {
14570
+ writer.writeString(
14571
+ 16,
14572
+ f
14573
+ );
14574
+ }
14575
+ f = message.getRewardsList();
14576
+ if (f.length > 0) {
14577
+ writer.writeRepeatedMessage(
14578
+ 17,
14579
+ f,
14580
+ proto.bonus.BonusRewardPresentation.serializeBinaryToWriter
14581
+ );
14582
+ }
14289
14583
  };
14290
14584
 
14291
14585
 
@@ -14775,6 +15069,116 @@ proto.bonus.BonusSnapshotItem.prototype.hasPortraitImageCdn = function() {
14775
15069
  };
14776
15070
 
14777
15071
 
15072
+ /**
15073
+ * optional string type = 15;
15074
+ * @return {string}
15075
+ */
15076
+ proto.bonus.BonusSnapshotItem.prototype.getType = function() {
15077
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
15078
+ };
15079
+
15080
+
15081
+ /**
15082
+ * @param {string} value
15083
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
15084
+ */
15085
+ proto.bonus.BonusSnapshotItem.prototype.setType = function(value) {
15086
+ return jspb.Message.setField(this, 15, value);
15087
+ };
15088
+
15089
+
15090
+ /**
15091
+ * Clears the field making it undefined.
15092
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
15093
+ */
15094
+ proto.bonus.BonusSnapshotItem.prototype.clearType = function() {
15095
+ return jspb.Message.setField(this, 15, undefined);
15096
+ };
15097
+
15098
+
15099
+ /**
15100
+ * Returns whether this field is set.
15101
+ * @return {boolean}
15102
+ */
15103
+ proto.bonus.BonusSnapshotItem.prototype.hasType = function() {
15104
+ return jspb.Message.getField(this, 15) != null;
15105
+ };
15106
+
15107
+
15108
+ /**
15109
+ * optional string cadence = 16;
15110
+ * @return {string}
15111
+ */
15112
+ proto.bonus.BonusSnapshotItem.prototype.getCadence = function() {
15113
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
15114
+ };
15115
+
15116
+
15117
+ /**
15118
+ * @param {string} value
15119
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
15120
+ */
15121
+ proto.bonus.BonusSnapshotItem.prototype.setCadence = function(value) {
15122
+ return jspb.Message.setField(this, 16, value);
15123
+ };
15124
+
15125
+
15126
+ /**
15127
+ * Clears the field making it undefined.
15128
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
15129
+ */
15130
+ proto.bonus.BonusSnapshotItem.prototype.clearCadence = function() {
15131
+ return jspb.Message.setField(this, 16, undefined);
15132
+ };
15133
+
15134
+
15135
+ /**
15136
+ * Returns whether this field is set.
15137
+ * @return {boolean}
15138
+ */
15139
+ proto.bonus.BonusSnapshotItem.prototype.hasCadence = function() {
15140
+ return jspb.Message.getField(this, 16) != null;
15141
+ };
15142
+
15143
+
15144
+ /**
15145
+ * repeated BonusRewardPresentation rewards = 17;
15146
+ * @return {!Array<!proto.bonus.BonusRewardPresentation>}
15147
+ */
15148
+ proto.bonus.BonusSnapshotItem.prototype.getRewardsList = function() {
15149
+ return /** @type{!Array<!proto.bonus.BonusRewardPresentation>} */ (
15150
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.BonusRewardPresentation, 17));
15151
+ };
15152
+
15153
+
15154
+ /**
15155
+ * @param {!Array<!proto.bonus.BonusRewardPresentation>} value
15156
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
15157
+ */
15158
+ proto.bonus.BonusSnapshotItem.prototype.setRewardsList = function(value) {
15159
+ return jspb.Message.setRepeatedWrapperField(this, 17, value);
15160
+ };
15161
+
15162
+
15163
+ /**
15164
+ * @param {!proto.bonus.BonusRewardPresentation=} opt_value
15165
+ * @param {number=} opt_index
15166
+ * @return {!proto.bonus.BonusRewardPresentation}
15167
+ */
15168
+ proto.bonus.BonusSnapshotItem.prototype.addRewards = function(opt_value, opt_index) {
15169
+ return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.bonus.BonusRewardPresentation, opt_index);
15170
+ };
15171
+
15172
+
15173
+ /**
15174
+ * Clears the list making it empty but non-null.
15175
+ * @return {!proto.bonus.BonusSnapshotItem} returns this
15176
+ */
15177
+ proto.bonus.BonusSnapshotItem.prototype.clearRewardsList = function() {
15178
+ return this.setRewardsList([]);
15179
+ };
15180
+
15181
+
14778
15182
 
14779
15183
  /**
14780
15184
  * List of repeated fields within this message type.
@@ -78,6 +78,8 @@ message LevelItem {
78
78
  optional string portrait_image = 14;
79
79
  optional string portrait_image_cdn = 15;
80
80
  optional int32 points_required = 16;
81
+ // Display-only card amount. It does not grant rewards.
82
+ optional string total_level_up_amount = 17;
81
83
  }
82
84
  message LevelRewardTranslationItem {
83
85
  string locale = 1;
@@ -87,6 +89,16 @@ message LevelRewardCashback {
87
89
  optional float percentage = 1;
88
90
  optional string currency = 2;
89
91
  }
92
+ message LevelRewardBonusReward {
93
+ string type = 1;
94
+ optional string amount = 2;
95
+ optional string currency = 3;
96
+ }
97
+ message LevelRewardBonus {
98
+ optional string type = 1;
99
+ optional string cadence = 2;
100
+ repeated LevelRewardBonusReward rewards = 3;
101
+ }
90
102
  message LevelRewardItem {
91
103
  optional int32 id = 1;
92
104
  string type = 2;
@@ -101,6 +113,7 @@ message LevelRewardItem {
101
113
  optional string amount = 11;
102
114
  optional bool is_available = 12;
103
115
  optional LevelRewardCashback cashback = 13;
116
+ optional LevelRewardBonus bonus = 14;
104
117
  }
105
118
  message LevelRewardRequest {
106
119
  string type = 1;
@@ -134,6 +147,7 @@ message LevelItemRequest {
134
147
  optional bool remove_mobile_image = 10;
135
148
  optional bool remove_portrait_image = 11;
136
149
  optional int32 points_required = 12;
150
+ optional string total_level_up_amount = 13;
137
151
  }
138
152
  message GetLevelRequest {
139
153
  int32 id = 1;
@@ -272,6 +286,7 @@ message UserLoyaltyResponse {
272
286
  optional string next_image = 15;
273
287
  optional string next_image_cdn = 16;
274
288
  repeated LevelRewardItem rewards = 17;
289
+ optional string total_level_up_amount = 18;
275
290
  }
276
291
  message UserLoyaltyPoint {
277
292
  int32 user_point_id = 1;