protobuf-platform 1.2.309 → 1.2.311

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/cms/cms.proto CHANGED
@@ -501,6 +501,8 @@ message PromoItemRequest {
501
501
  optional int32 is_active = 6;
502
502
  optional string started_at = 7;
503
503
  optional string finished_at = 8;
504
+ optional string type = 9;
505
+ optional string promo_label = 10;
504
506
  }
505
507
  message PromoItem {
506
508
  optional int32 id = 1;
@@ -516,6 +518,9 @@ message PromoItem {
516
518
  optional string image_small = 11;
517
519
  optional string image_small_cdn = 12;
518
520
  repeated TranslationItem translations = 13;
521
+ optional string type = 14;
522
+ optional string promo_label = 15;
523
+ optional int64 finished_in_milliseconds = 16;
519
524
  }
520
525
  message PromoResponse {
521
526
  PromoItem data = 1;
@@ -541,6 +546,7 @@ message PromoTranslationRequest {
541
546
  optional string title = 4;
542
547
  optional string content = 5;
543
548
  optional int32 is_active = 6;
549
+ optional string promo_label = 7;
544
550
  }
545
551
  message GetPromoTranslationRequest {
546
552
  int32 promo_id = 1;
@@ -551,6 +557,7 @@ message PromoTranslationResponse {
551
557
  optional string title = 1;
552
558
  optional string content = 2;
553
559
  optional bool is_active = 3;
560
+ optional string promo_label = 4;
554
561
  }
555
562
  //Game Widget CRUD
556
563
  message GameWidgetRequest {
@@ -631,6 +638,7 @@ message TranslationItem {
631
638
  optional string title = 3;
632
639
  optional string content = 4;
633
640
  optional bool is_active = 5;
641
+ optional string promo_label = 6;
634
642
  }
635
643
  // ===== Footer: Partners CRUD (files-only uploads) =====
636
644
 
package/cms/cms_pb.js CHANGED
@@ -20575,7 +20575,9 @@ proto.cms.PromoItemRequest.toObject = function(includeInstance, msg) {
20575
20575
  anchor: jspb.Message.getFieldWithDefault(msg, 5, ""),
20576
20576
  isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
20577
20577
  startedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
20578
- finishedAt: jspb.Message.getFieldWithDefault(msg, 8, "")
20578
+ finishedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
20579
+ type: jspb.Message.getFieldWithDefault(msg, 9, ""),
20580
+ promoLabel: jspb.Message.getFieldWithDefault(msg, 10, "")
20579
20581
  };
20580
20582
 
20581
20583
  if (includeInstance) {
@@ -20644,6 +20646,14 @@ proto.cms.PromoItemRequest.deserializeBinaryFromReader = function(msg, reader) {
20644
20646
  var value = /** @type {string} */ (reader.readString());
20645
20647
  msg.setFinishedAt(value);
20646
20648
  break;
20649
+ case 9:
20650
+ var value = /** @type {string} */ (reader.readString());
20651
+ msg.setType(value);
20652
+ break;
20653
+ case 10:
20654
+ var value = /** @type {string} */ (reader.readString());
20655
+ msg.setPromoLabel(value);
20656
+ break;
20647
20657
  default:
20648
20658
  reader.skipField();
20649
20659
  break;
@@ -20729,6 +20739,20 @@ proto.cms.PromoItemRequest.serializeBinaryToWriter = function(message, writer) {
20729
20739
  f
20730
20740
  );
20731
20741
  }
20742
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
20743
+ if (f != null) {
20744
+ writer.writeString(
20745
+ 9,
20746
+ f
20747
+ );
20748
+ }
20749
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
20750
+ if (f != null) {
20751
+ writer.writeString(
20752
+ 10,
20753
+ f
20754
+ );
20755
+ }
20732
20756
  };
20733
20757
 
20734
20758
 
@@ -21020,6 +21044,78 @@ proto.cms.PromoItemRequest.prototype.hasFinishedAt = function() {
21020
21044
  };
21021
21045
 
21022
21046
 
21047
+ /**
21048
+ * optional string type = 9;
21049
+ * @return {string}
21050
+ */
21051
+ proto.cms.PromoItemRequest.prototype.getType = function() {
21052
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
21053
+ };
21054
+
21055
+
21056
+ /**
21057
+ * @param {string} value
21058
+ * @return {!proto.cms.PromoItemRequest} returns this
21059
+ */
21060
+ proto.cms.PromoItemRequest.prototype.setType = function(value) {
21061
+ return jspb.Message.setField(this, 9, value);
21062
+ };
21063
+
21064
+
21065
+ /**
21066
+ * Clears the field making it undefined.
21067
+ * @return {!proto.cms.PromoItemRequest} returns this
21068
+ */
21069
+ proto.cms.PromoItemRequest.prototype.clearType = function() {
21070
+ return jspb.Message.setField(this, 9, undefined);
21071
+ };
21072
+
21073
+
21074
+ /**
21075
+ * Returns whether this field is set.
21076
+ * @return {boolean}
21077
+ */
21078
+ proto.cms.PromoItemRequest.prototype.hasType = function() {
21079
+ return jspb.Message.getField(this, 9) != null;
21080
+ };
21081
+
21082
+
21083
+ /**
21084
+ * optional string promo_label = 10;
21085
+ * @return {string}
21086
+ */
21087
+ proto.cms.PromoItemRequest.prototype.getPromoLabel = function() {
21088
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
21089
+ };
21090
+
21091
+
21092
+ /**
21093
+ * @param {string} value
21094
+ * @return {!proto.cms.PromoItemRequest} returns this
21095
+ */
21096
+ proto.cms.PromoItemRequest.prototype.setPromoLabel = function(value) {
21097
+ return jspb.Message.setField(this, 10, value);
21098
+ };
21099
+
21100
+
21101
+ /**
21102
+ * Clears the field making it undefined.
21103
+ * @return {!proto.cms.PromoItemRequest} returns this
21104
+ */
21105
+ proto.cms.PromoItemRequest.prototype.clearPromoLabel = function() {
21106
+ return jspb.Message.setField(this, 10, undefined);
21107
+ };
21108
+
21109
+
21110
+ /**
21111
+ * Returns whether this field is set.
21112
+ * @return {boolean}
21113
+ */
21114
+ proto.cms.PromoItemRequest.prototype.hasPromoLabel = function() {
21115
+ return jspb.Message.getField(this, 10) != null;
21116
+ };
21117
+
21118
+
21023
21119
 
21024
21120
  /**
21025
21121
  * List of repeated fields within this message type.
@@ -21072,7 +21168,10 @@ proto.cms.PromoItem.toObject = function(includeInstance, msg) {
21072
21168
  imageSmall: jspb.Message.getFieldWithDefault(msg, 11, ""),
21073
21169
  imageSmallCdn: jspb.Message.getFieldWithDefault(msg, 12, ""),
21074
21170
  translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
21075
- proto.cms.TranslationItem.toObject, includeInstance)
21171
+ proto.cms.TranslationItem.toObject, includeInstance),
21172
+ type: jspb.Message.getFieldWithDefault(msg, 14, ""),
21173
+ promoLabel: jspb.Message.getFieldWithDefault(msg, 15, ""),
21174
+ finishedInMilliseconds: jspb.Message.getFieldWithDefault(msg, 16, 0)
21076
21175
  };
21077
21176
 
21078
21177
  if (includeInstance) {
@@ -21162,6 +21261,18 @@ proto.cms.PromoItem.deserializeBinaryFromReader = function(msg, reader) {
21162
21261
  reader.readMessage(value,proto.cms.TranslationItem.deserializeBinaryFromReader);
21163
21262
  msg.addTranslations(value);
21164
21263
  break;
21264
+ case 14:
21265
+ var value = /** @type {string} */ (reader.readString());
21266
+ msg.setType(value);
21267
+ break;
21268
+ case 15:
21269
+ var value = /** @type {string} */ (reader.readString());
21270
+ msg.setPromoLabel(value);
21271
+ break;
21272
+ case 16:
21273
+ var value = /** @type {number} */ (reader.readInt64());
21274
+ msg.setFinishedInMilliseconds(value);
21275
+ break;
21165
21276
  default:
21166
21277
  reader.skipField();
21167
21278
  break;
@@ -21283,6 +21394,27 @@ proto.cms.PromoItem.serializeBinaryToWriter = function(message, writer) {
21283
21394
  proto.cms.TranslationItem.serializeBinaryToWriter
21284
21395
  );
21285
21396
  }
21397
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
21398
+ if (f != null) {
21399
+ writer.writeString(
21400
+ 14,
21401
+ f
21402
+ );
21403
+ }
21404
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
21405
+ if (f != null) {
21406
+ writer.writeString(
21407
+ 15,
21408
+ f
21409
+ );
21410
+ }
21411
+ f = /** @type {number} */ (jspb.Message.getField(message, 16));
21412
+ if (f != null) {
21413
+ writer.writeInt64(
21414
+ 16,
21415
+ f
21416
+ );
21417
+ }
21286
21418
  };
21287
21419
 
21288
21420
 
@@ -21756,6 +21888,114 @@ proto.cms.PromoItem.prototype.clearTranslationsList = function() {
21756
21888
  };
21757
21889
 
21758
21890
 
21891
+ /**
21892
+ * optional string type = 14;
21893
+ * @return {string}
21894
+ */
21895
+ proto.cms.PromoItem.prototype.getType = function() {
21896
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
21897
+ };
21898
+
21899
+
21900
+ /**
21901
+ * @param {string} value
21902
+ * @return {!proto.cms.PromoItem} returns this
21903
+ */
21904
+ proto.cms.PromoItem.prototype.setType = function(value) {
21905
+ return jspb.Message.setField(this, 14, value);
21906
+ };
21907
+
21908
+
21909
+ /**
21910
+ * Clears the field making it undefined.
21911
+ * @return {!proto.cms.PromoItem} returns this
21912
+ */
21913
+ proto.cms.PromoItem.prototype.clearType = function() {
21914
+ return jspb.Message.setField(this, 14, undefined);
21915
+ };
21916
+
21917
+
21918
+ /**
21919
+ * Returns whether this field is set.
21920
+ * @return {boolean}
21921
+ */
21922
+ proto.cms.PromoItem.prototype.hasType = function() {
21923
+ return jspb.Message.getField(this, 14) != null;
21924
+ };
21925
+
21926
+
21927
+ /**
21928
+ * optional string promo_label = 15;
21929
+ * @return {string}
21930
+ */
21931
+ proto.cms.PromoItem.prototype.getPromoLabel = function() {
21932
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
21933
+ };
21934
+
21935
+
21936
+ /**
21937
+ * @param {string} value
21938
+ * @return {!proto.cms.PromoItem} returns this
21939
+ */
21940
+ proto.cms.PromoItem.prototype.setPromoLabel = function(value) {
21941
+ return jspb.Message.setField(this, 15, value);
21942
+ };
21943
+
21944
+
21945
+ /**
21946
+ * Clears the field making it undefined.
21947
+ * @return {!proto.cms.PromoItem} returns this
21948
+ */
21949
+ proto.cms.PromoItem.prototype.clearPromoLabel = function() {
21950
+ return jspb.Message.setField(this, 15, undefined);
21951
+ };
21952
+
21953
+
21954
+ /**
21955
+ * Returns whether this field is set.
21956
+ * @return {boolean}
21957
+ */
21958
+ proto.cms.PromoItem.prototype.hasPromoLabel = function() {
21959
+ return jspb.Message.getField(this, 15) != null;
21960
+ };
21961
+
21962
+
21963
+ /**
21964
+ * optional int64 finished_in_milliseconds = 16;
21965
+ * @return {number}
21966
+ */
21967
+ proto.cms.PromoItem.prototype.getFinishedInMilliseconds = function() {
21968
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
21969
+ };
21970
+
21971
+
21972
+ /**
21973
+ * @param {number} value
21974
+ * @return {!proto.cms.PromoItem} returns this
21975
+ */
21976
+ proto.cms.PromoItem.prototype.setFinishedInMilliseconds = function(value) {
21977
+ return jspb.Message.setField(this, 16, value);
21978
+ };
21979
+
21980
+
21981
+ /**
21982
+ * Clears the field making it undefined.
21983
+ * @return {!proto.cms.PromoItem} returns this
21984
+ */
21985
+ proto.cms.PromoItem.prototype.clearFinishedInMilliseconds = function() {
21986
+ return jspb.Message.setField(this, 16, undefined);
21987
+ };
21988
+
21989
+
21990
+ /**
21991
+ * Returns whether this field is set.
21992
+ * @return {boolean}
21993
+ */
21994
+ proto.cms.PromoItem.prototype.hasFinishedInMilliseconds = function() {
21995
+ return jspb.Message.getField(this, 16) != null;
21996
+ };
21997
+
21998
+
21759
21999
 
21760
22000
 
21761
22001
 
@@ -22622,7 +22862,8 @@ proto.cms.PromoTranslationRequest.toObject = function(includeInstance, msg) {
22622
22862
  locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
22623
22863
  title: jspb.Message.getFieldWithDefault(msg, 4, ""),
22624
22864
  content: jspb.Message.getFieldWithDefault(msg, 5, ""),
22625
- isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
22865
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
22866
+ promoLabel: jspb.Message.getFieldWithDefault(msg, 7, "")
22626
22867
  };
22627
22868
 
22628
22869
  if (includeInstance) {
@@ -22683,6 +22924,10 @@ proto.cms.PromoTranslationRequest.deserializeBinaryFromReader = function(msg, re
22683
22924
  var value = /** @type {number} */ (reader.readInt32());
22684
22925
  msg.setIsActive(value);
22685
22926
  break;
22927
+ case 7:
22928
+ var value = /** @type {string} */ (reader.readString());
22929
+ msg.setPromoLabel(value);
22930
+ break;
22686
22931
  default:
22687
22932
  reader.skipField();
22688
22933
  break;
@@ -22754,6 +22999,13 @@ proto.cms.PromoTranslationRequest.serializeBinaryToWriter = function(message, wr
22754
22999
  f
22755
23000
  );
22756
23001
  }
23002
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
23003
+ if (f != null) {
23004
+ writer.writeString(
23005
+ 7,
23006
+ f
23007
+ );
23008
+ }
22757
23009
  };
22758
23010
 
22759
23011
 
@@ -22919,6 +23171,42 @@ proto.cms.PromoTranslationRequest.prototype.hasIsActive = function() {
22919
23171
  };
22920
23172
 
22921
23173
 
23174
+ /**
23175
+ * optional string promo_label = 7;
23176
+ * @return {string}
23177
+ */
23178
+ proto.cms.PromoTranslationRequest.prototype.getPromoLabel = function() {
23179
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
23180
+ };
23181
+
23182
+
23183
+ /**
23184
+ * @param {string} value
23185
+ * @return {!proto.cms.PromoTranslationRequest} returns this
23186
+ */
23187
+ proto.cms.PromoTranslationRequest.prototype.setPromoLabel = function(value) {
23188
+ return jspb.Message.setField(this, 7, value);
23189
+ };
23190
+
23191
+
23192
+ /**
23193
+ * Clears the field making it undefined.
23194
+ * @return {!proto.cms.PromoTranslationRequest} returns this
23195
+ */
23196
+ proto.cms.PromoTranslationRequest.prototype.clearPromoLabel = function() {
23197
+ return jspb.Message.setField(this, 7, undefined);
23198
+ };
23199
+
23200
+
23201
+ /**
23202
+ * Returns whether this field is set.
23203
+ * @return {boolean}
23204
+ */
23205
+ proto.cms.PromoTranslationRequest.prototype.hasPromoLabel = function() {
23206
+ return jspb.Message.getField(this, 7) != null;
23207
+ };
23208
+
23209
+
22922
23210
 
22923
23211
 
22924
23212
 
@@ -23143,7 +23431,8 @@ proto.cms.PromoTranslationResponse.toObject = function(includeInstance, msg) {
23143
23431
  var f, obj = {
23144
23432
  title: jspb.Message.getFieldWithDefault(msg, 1, ""),
23145
23433
  content: jspb.Message.getFieldWithDefault(msg, 2, ""),
23146
- isActive: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
23434
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
23435
+ promoLabel: jspb.Message.getFieldWithDefault(msg, 4, "")
23147
23436
  };
23148
23437
 
23149
23438
  if (includeInstance) {
@@ -23192,6 +23481,10 @@ proto.cms.PromoTranslationResponse.deserializeBinaryFromReader = function(msg, r
23192
23481
  var value = /** @type {boolean} */ (reader.readBool());
23193
23482
  msg.setIsActive(value);
23194
23483
  break;
23484
+ case 4:
23485
+ var value = /** @type {string} */ (reader.readString());
23486
+ msg.setPromoLabel(value);
23487
+ break;
23195
23488
  default:
23196
23489
  reader.skipField();
23197
23490
  break;
@@ -23242,6 +23535,13 @@ proto.cms.PromoTranslationResponse.serializeBinaryToWriter = function(message, w
23242
23535
  f
23243
23536
  );
23244
23537
  }
23538
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
23539
+ if (f != null) {
23540
+ writer.writeString(
23541
+ 4,
23542
+ f
23543
+ );
23544
+ }
23245
23545
  };
23246
23546
 
23247
23547
 
@@ -23353,6 +23653,42 @@ proto.cms.PromoTranslationResponse.prototype.hasIsActive = function() {
23353
23653
  };
23354
23654
 
23355
23655
 
23656
+ /**
23657
+ * optional string promo_label = 4;
23658
+ * @return {string}
23659
+ */
23660
+ proto.cms.PromoTranslationResponse.prototype.getPromoLabel = function() {
23661
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
23662
+ };
23663
+
23664
+
23665
+ /**
23666
+ * @param {string} value
23667
+ * @return {!proto.cms.PromoTranslationResponse} returns this
23668
+ */
23669
+ proto.cms.PromoTranslationResponse.prototype.setPromoLabel = function(value) {
23670
+ return jspb.Message.setField(this, 4, value);
23671
+ };
23672
+
23673
+
23674
+ /**
23675
+ * Clears the field making it undefined.
23676
+ * @return {!proto.cms.PromoTranslationResponse} returns this
23677
+ */
23678
+ proto.cms.PromoTranslationResponse.prototype.clearPromoLabel = function() {
23679
+ return jspb.Message.setField(this, 4, undefined);
23680
+ };
23681
+
23682
+
23683
+ /**
23684
+ * Returns whether this field is set.
23685
+ * @return {boolean}
23686
+ */
23687
+ proto.cms.PromoTranslationResponse.prototype.hasPromoLabel = function() {
23688
+ return jspb.Message.getField(this, 4) != null;
23689
+ };
23690
+
23691
+
23356
23692
 
23357
23693
  /**
23358
23694
  * Oneof group definitions for this message. Each group defines the field
@@ -26635,7 +26971,8 @@ proto.cms.TranslationItem.toObject = function(includeInstance, msg) {
26635
26971
  locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
26636
26972
  title: jspb.Message.getFieldWithDefault(msg, 3, ""),
26637
26973
  content: jspb.Message.getFieldWithDefault(msg, 4, ""),
26638
- isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
26974
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
26975
+ promoLabel: jspb.Message.getFieldWithDefault(msg, 6, "")
26639
26976
  };
26640
26977
 
26641
26978
  if (includeInstance) {
@@ -26692,6 +27029,10 @@ proto.cms.TranslationItem.deserializeBinaryFromReader = function(msg, reader) {
26692
27029
  var value = /** @type {boolean} */ (reader.readBool());
26693
27030
  msg.setIsActive(value);
26694
27031
  break;
27032
+ case 6:
27033
+ var value = /** @type {string} */ (reader.readString());
27034
+ msg.setPromoLabel(value);
27035
+ break;
26695
27036
  default:
26696
27037
  reader.skipField();
26697
27038
  break;
@@ -26756,6 +27097,13 @@ proto.cms.TranslationItem.serializeBinaryToWriter = function(message, writer) {
26756
27097
  f
26757
27098
  );
26758
27099
  }
27100
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
27101
+ if (f != null) {
27102
+ writer.writeString(
27103
+ 6,
27104
+ f
27105
+ );
27106
+ }
26759
27107
  };
26760
27108
 
26761
27109
 
@@ -26939,6 +27287,42 @@ proto.cms.TranslationItem.prototype.hasIsActive = function() {
26939
27287
  };
26940
27288
 
26941
27289
 
27290
+ /**
27291
+ * optional string promo_label = 6;
27292
+ * @return {string}
27293
+ */
27294
+ proto.cms.TranslationItem.prototype.getPromoLabel = function() {
27295
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
27296
+ };
27297
+
27298
+
27299
+ /**
27300
+ * @param {string} value
27301
+ * @return {!proto.cms.TranslationItem} returns this
27302
+ */
27303
+ proto.cms.TranslationItem.prototype.setPromoLabel = function(value) {
27304
+ return jspb.Message.setField(this, 6, value);
27305
+ };
27306
+
27307
+
27308
+ /**
27309
+ * Clears the field making it undefined.
27310
+ * @return {!proto.cms.TranslationItem} returns this
27311
+ */
27312
+ proto.cms.TranslationItem.prototype.clearPromoLabel = function() {
27313
+ return jspb.Message.setField(this, 6, undefined);
27314
+ };
27315
+
27316
+
27317
+ /**
27318
+ * Returns whether this field is set.
27319
+ * @return {boolean}
27320
+ */
27321
+ proto.cms.TranslationItem.prototype.hasPromoLabel = function() {
27322
+ return jspb.Message.getField(this, 6) != null;
27323
+ };
27324
+
27325
+
26942
27326
 
26943
27327
  /**
26944
27328
  * 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.2.309",
3
+ "version": "1.2.311",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {