protobuf-platform 1.2.274 → 1.2.276

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
@@ -52,7 +52,7 @@ service CMS {
52
52
  rpc updateSinglePageSeo(PageSeoRequest) returns (PageSeoResponse);
53
53
  rpc deleteSinglePageSeo(GetPageSeoRequest) returns (PageSeoStatusResponse);
54
54
  rpc readListPageSeo(PaginationRequest) returns (PageSeoItemsResponse);
55
- rpc setPageSeoAttributes(SetPageSeoAttributesRequest) returns (PageSeoStatusResponse);
55
+ rpc setPageSeoAttributes(SetPageSeoAttributesRequest) returns (PageSeoAttributesResponse);
56
56
  rpc getPageSeoAttributes(GetPageSeoAttributesRequest) returns (PageSeoAttributesResponse);
57
57
  //Promo
58
58
  rpc createSinglePromo(stream PromoRequest) returns (PromoResponse);
@@ -383,15 +383,13 @@ message PageSeoRequest {
383
383
  optional int32 id = 1;
384
384
  optional string title = 2;
385
385
  optional string type = 3;
386
- int32 entity_id = 4;
387
- optional int32 is_active = 5;
386
+ optional int32 is_active = 4;
388
387
  }
389
388
  message PageSeoItem {
390
389
  optional int32 id = 1;
391
390
  optional string title = 2;
392
391
  optional string type = 3;
393
- optional int32 entity_id = 4;
394
- optional int32 is_active = 5;
392
+ optional int32 is_active = 4;
395
393
  }
396
394
  message PageSeoResponse {
397
395
  PageSeoItem data = 1;
@@ -422,9 +420,10 @@ message SetPageSeoAttributesRequest {
422
420
  optional string full_description = 12;
423
421
  }
424
422
  message GetPageSeoAttributesRequest {
425
- int32 page_seo_id = 1;
426
- string geo = 2;
427
- string locale = 3;
423
+ string geo = 1;
424
+ string locale = 2;
425
+ optional int32 page_seo_id = 3;
426
+ optional string type = 4;
428
427
  }
429
428
  message PageSeoAttributesItem {
430
429
  int32 page_seo_id = 1;
@@ -1533,11 +1533,11 @@ createSinglePage: {
1533
1533
  requestStream: false,
1534
1534
  responseStream: false,
1535
1535
  requestType: cms_pb.SetPageSeoAttributesRequest,
1536
- responseType: cms_pb.PageSeoStatusResponse,
1536
+ responseType: cms_pb.PageSeoAttributesResponse,
1537
1537
  requestSerialize: serialize_cms_SetPageSeoAttributesRequest,
1538
1538
  requestDeserialize: deserialize_cms_SetPageSeoAttributesRequest,
1539
- responseSerialize: serialize_cms_PageSeoStatusResponse,
1540
- responseDeserialize: deserialize_cms_PageSeoStatusResponse,
1539
+ responseSerialize: serialize_cms_PageSeoAttributesResponse,
1540
+ responseDeserialize: deserialize_cms_PageSeoAttributesResponse,
1541
1541
  },
1542
1542
  getPageSeoAttributes: {
1543
1543
  path: '/cms.CMS/getPageSeoAttributes',
package/cms/cms_pb.js CHANGED
@@ -15679,8 +15679,7 @@ proto.cms.PageSeoRequest.toObject = function(includeInstance, msg) {
15679
15679
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
15680
15680
  title: jspb.Message.getFieldWithDefault(msg, 2, ""),
15681
15681
  type: jspb.Message.getFieldWithDefault(msg, 3, ""),
15682
- entityId: jspb.Message.getFieldWithDefault(msg, 4, 0),
15683
- isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
15682
+ isActive: jspb.Message.getFieldWithDefault(msg, 4, 0)
15684
15683
  };
15685
15684
 
15686
15685
  if (includeInstance) {
@@ -15730,10 +15729,6 @@ proto.cms.PageSeoRequest.deserializeBinaryFromReader = function(msg, reader) {
15730
15729
  msg.setType(value);
15731
15730
  break;
15732
15731
  case 4:
15733
- var value = /** @type {number} */ (reader.readInt32());
15734
- msg.setEntityId(value);
15735
- break;
15736
- case 5:
15737
15732
  var value = /** @type {number} */ (reader.readInt32());
15738
15733
  msg.setIsActive(value);
15739
15734
  break;
@@ -15787,17 +15782,10 @@ proto.cms.PageSeoRequest.serializeBinaryToWriter = function(message, writer) {
15787
15782
  f
15788
15783
  );
15789
15784
  }
15790
- f = message.getEntityId();
15791
- if (f !== 0) {
15792
- writer.writeInt32(
15793
- 4,
15794
- f
15795
- );
15796
- }
15797
- f = /** @type {number} */ (jspb.Message.getField(message, 5));
15785
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
15798
15786
  if (f != null) {
15799
15787
  writer.writeInt32(
15800
- 5,
15788
+ 4,
15801
15789
  f
15802
15790
  );
15803
15791
  }
@@ -15913,29 +15901,11 @@ proto.cms.PageSeoRequest.prototype.hasType = function() {
15913
15901
 
15914
15902
 
15915
15903
  /**
15916
- * optional int32 entity_id = 4;
15917
- * @return {number}
15918
- */
15919
- proto.cms.PageSeoRequest.prototype.getEntityId = function() {
15920
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
15921
- };
15922
-
15923
-
15924
- /**
15925
- * @param {number} value
15926
- * @return {!proto.cms.PageSeoRequest} returns this
15927
- */
15928
- proto.cms.PageSeoRequest.prototype.setEntityId = function(value) {
15929
- return jspb.Message.setProto3IntField(this, 4, value);
15930
- };
15931
-
15932
-
15933
- /**
15934
- * optional int32 is_active = 5;
15904
+ * optional int32 is_active = 4;
15935
15905
  * @return {number}
15936
15906
  */
15937
15907
  proto.cms.PageSeoRequest.prototype.getIsActive = function() {
15938
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
15908
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
15939
15909
  };
15940
15910
 
15941
15911
 
@@ -15944,7 +15914,7 @@ proto.cms.PageSeoRequest.prototype.getIsActive = function() {
15944
15914
  * @return {!proto.cms.PageSeoRequest} returns this
15945
15915
  */
15946
15916
  proto.cms.PageSeoRequest.prototype.setIsActive = function(value) {
15947
- return jspb.Message.setField(this, 5, value);
15917
+ return jspb.Message.setField(this, 4, value);
15948
15918
  };
15949
15919
 
15950
15920
 
@@ -15953,7 +15923,7 @@ proto.cms.PageSeoRequest.prototype.setIsActive = function(value) {
15953
15923
  * @return {!proto.cms.PageSeoRequest} returns this
15954
15924
  */
15955
15925
  proto.cms.PageSeoRequest.prototype.clearIsActive = function() {
15956
- return jspb.Message.setField(this, 5, undefined);
15926
+ return jspb.Message.setField(this, 4, undefined);
15957
15927
  };
15958
15928
 
15959
15929
 
@@ -15962,7 +15932,7 @@ proto.cms.PageSeoRequest.prototype.clearIsActive = function() {
15962
15932
  * @return {boolean}
15963
15933
  */
15964
15934
  proto.cms.PageSeoRequest.prototype.hasIsActive = function() {
15965
- return jspb.Message.getField(this, 5) != null;
15935
+ return jspb.Message.getField(this, 4) != null;
15966
15936
  };
15967
15937
 
15968
15938
 
@@ -16001,8 +15971,7 @@ proto.cms.PageSeoItem.toObject = function(includeInstance, msg) {
16001
15971
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
16002
15972
  title: jspb.Message.getFieldWithDefault(msg, 2, ""),
16003
15973
  type: jspb.Message.getFieldWithDefault(msg, 3, ""),
16004
- entityId: jspb.Message.getFieldWithDefault(msg, 4, 0),
16005
- isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
15974
+ isActive: jspb.Message.getFieldWithDefault(msg, 4, 0)
16006
15975
  };
16007
15976
 
16008
15977
  if (includeInstance) {
@@ -16052,10 +16021,6 @@ proto.cms.PageSeoItem.deserializeBinaryFromReader = function(msg, reader) {
16052
16021
  msg.setType(value);
16053
16022
  break;
16054
16023
  case 4:
16055
- var value = /** @type {number} */ (reader.readInt32());
16056
- msg.setEntityId(value);
16057
- break;
16058
- case 5:
16059
16024
  var value = /** @type {number} */ (reader.readInt32());
16060
16025
  msg.setIsActive(value);
16061
16026
  break;
@@ -16116,13 +16081,6 @@ proto.cms.PageSeoItem.serializeBinaryToWriter = function(message, writer) {
16116
16081
  f
16117
16082
  );
16118
16083
  }
16119
- f = /** @type {number} */ (jspb.Message.getField(message, 5));
16120
- if (f != null) {
16121
- writer.writeInt32(
16122
- 5,
16123
- f
16124
- );
16125
- }
16126
16084
  };
16127
16085
 
16128
16086
 
@@ -16235,47 +16193,11 @@ proto.cms.PageSeoItem.prototype.hasType = function() {
16235
16193
 
16236
16194
 
16237
16195
  /**
16238
- * optional int32 entity_id = 4;
16239
- * @return {number}
16240
- */
16241
- proto.cms.PageSeoItem.prototype.getEntityId = function() {
16242
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
16243
- };
16244
-
16245
-
16246
- /**
16247
- * @param {number} value
16248
- * @return {!proto.cms.PageSeoItem} returns this
16249
- */
16250
- proto.cms.PageSeoItem.prototype.setEntityId = function(value) {
16251
- return jspb.Message.setField(this, 4, value);
16252
- };
16253
-
16254
-
16255
- /**
16256
- * Clears the field making it undefined.
16257
- * @return {!proto.cms.PageSeoItem} returns this
16258
- */
16259
- proto.cms.PageSeoItem.prototype.clearEntityId = function() {
16260
- return jspb.Message.setField(this, 4, undefined);
16261
- };
16262
-
16263
-
16264
- /**
16265
- * Returns whether this field is set.
16266
- * @return {boolean}
16267
- */
16268
- proto.cms.PageSeoItem.prototype.hasEntityId = function() {
16269
- return jspb.Message.getField(this, 4) != null;
16270
- };
16271
-
16272
-
16273
- /**
16274
- * optional int32 is_active = 5;
16196
+ * optional int32 is_active = 4;
16275
16197
  * @return {number}
16276
16198
  */
16277
16199
  proto.cms.PageSeoItem.prototype.getIsActive = function() {
16278
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
16200
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
16279
16201
  };
16280
16202
 
16281
16203
 
@@ -16284,7 +16206,7 @@ proto.cms.PageSeoItem.prototype.getIsActive = function() {
16284
16206
  * @return {!proto.cms.PageSeoItem} returns this
16285
16207
  */
16286
16208
  proto.cms.PageSeoItem.prototype.setIsActive = function(value) {
16287
- return jspb.Message.setField(this, 5, value);
16209
+ return jspb.Message.setField(this, 4, value);
16288
16210
  };
16289
16211
 
16290
16212
 
@@ -16293,7 +16215,7 @@ proto.cms.PageSeoItem.prototype.setIsActive = function(value) {
16293
16215
  * @return {!proto.cms.PageSeoItem} returns this
16294
16216
  */
16295
16217
  proto.cms.PageSeoItem.prototype.clearIsActive = function() {
16296
- return jspb.Message.setField(this, 5, undefined);
16218
+ return jspb.Message.setField(this, 4, undefined);
16297
16219
  };
16298
16220
 
16299
16221
 
@@ -16302,7 +16224,7 @@ proto.cms.PageSeoItem.prototype.clearIsActive = function() {
16302
16224
  * @return {boolean}
16303
16225
  */
16304
16226
  proto.cms.PageSeoItem.prototype.hasIsActive = function() {
16305
- return jspb.Message.getField(this, 5) != null;
16227
+ return jspb.Message.getField(this, 4) != null;
16306
16228
  };
16307
16229
 
16308
16230
 
@@ -17645,9 +17567,10 @@ proto.cms.GetPageSeoAttributesRequest.prototype.toObject = function(opt_includeI
17645
17567
  */
17646
17568
  proto.cms.GetPageSeoAttributesRequest.toObject = function(includeInstance, msg) {
17647
17569
  var f, obj = {
17648
- pageSeoId: jspb.Message.getFieldWithDefault(msg, 1, 0),
17649
- geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
17650
- locale: jspb.Message.getFieldWithDefault(msg, 3, "")
17570
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
17571
+ locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
17572
+ pageSeoId: jspb.Message.getFieldWithDefault(msg, 3, 0),
17573
+ type: jspb.Message.getFieldWithDefault(msg, 4, "")
17651
17574
  };
17652
17575
 
17653
17576
  if (includeInstance) {
@@ -17685,16 +17608,20 @@ proto.cms.GetPageSeoAttributesRequest.deserializeBinaryFromReader = function(msg
17685
17608
  var field = reader.getFieldNumber();
17686
17609
  switch (field) {
17687
17610
  case 1:
17688
- var value = /** @type {number} */ (reader.readInt32());
17689
- msg.setPageSeoId(value);
17611
+ var value = /** @type {string} */ (reader.readString());
17612
+ msg.setGeo(value);
17690
17613
  break;
17691
17614
  case 2:
17692
17615
  var value = /** @type {string} */ (reader.readString());
17693
- msg.setGeo(value);
17616
+ msg.setLocale(value);
17694
17617
  break;
17695
17618
  case 3:
17619
+ var value = /** @type {number} */ (reader.readInt32());
17620
+ msg.setPageSeoId(value);
17621
+ break;
17622
+ case 4:
17696
17623
  var value = /** @type {string} */ (reader.readString());
17697
- msg.setLocale(value);
17624
+ msg.setType(value);
17698
17625
  break;
17699
17626
  default:
17700
17627
  reader.skipField();
@@ -17725,53 +17652,60 @@ proto.cms.GetPageSeoAttributesRequest.prototype.serializeBinary = function() {
17725
17652
  */
17726
17653
  proto.cms.GetPageSeoAttributesRequest.serializeBinaryToWriter = function(message, writer) {
17727
17654
  var f = undefined;
17728
- f = message.getPageSeoId();
17729
- if (f !== 0) {
17730
- writer.writeInt32(
17655
+ f = message.getGeo();
17656
+ if (f.length > 0) {
17657
+ writer.writeString(
17731
17658
  1,
17732
17659
  f
17733
17660
  );
17734
17661
  }
17735
- f = message.getGeo();
17662
+ f = message.getLocale();
17736
17663
  if (f.length > 0) {
17737
17664
  writer.writeString(
17738
17665
  2,
17739
17666
  f
17740
17667
  );
17741
17668
  }
17742
- f = message.getLocale();
17743
- if (f.length > 0) {
17744
- writer.writeString(
17669
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
17670
+ if (f != null) {
17671
+ writer.writeInt32(
17745
17672
  3,
17746
17673
  f
17747
17674
  );
17748
17675
  }
17676
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
17677
+ if (f != null) {
17678
+ writer.writeString(
17679
+ 4,
17680
+ f
17681
+ );
17682
+ }
17749
17683
  };
17750
17684
 
17751
17685
 
17752
17686
  /**
17753
- * optional int32 page_seo_id = 1;
17754
- * @return {number}
17687
+ * optional string geo = 1;
17688
+ * @return {string}
17755
17689
  */
17756
- proto.cms.GetPageSeoAttributesRequest.prototype.getPageSeoId = function() {
17757
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
17690
+ proto.cms.GetPageSeoAttributesRequest.prototype.getGeo = function() {
17691
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
17758
17692
  };
17759
17693
 
17760
17694
 
17761
17695
  /**
17762
- * @param {number} value
17696
+ * @param {string} value
17763
17697
  * @return {!proto.cms.GetPageSeoAttributesRequest} returns this
17764
17698
  */
17765
- proto.cms.GetPageSeoAttributesRequest.prototype.setPageSeoId = function(value) {
17766
- return jspb.Message.setProto3IntField(this, 1, value);
17699
+ proto.cms.GetPageSeoAttributesRequest.prototype.setGeo = function(value) {
17700
+ return jspb.Message.setProto3StringField(this, 1, value);
17767
17701
  };
17768
17702
 
17769
17703
 
17770
17704
  /**
17771
- * optional string geo = 2;
17705
+ * optional string locale = 2;
17772
17706
  * @return {string}
17773
17707
  */
17774
- proto.cms.GetPageSeoAttributesRequest.prototype.getGeo = function() {
17708
+ proto.cms.GetPageSeoAttributesRequest.prototype.getLocale = function() {
17775
17709
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
17776
17710
  };
17777
17711
 
@@ -17780,17 +17714,53 @@ proto.cms.GetPageSeoAttributesRequest.prototype.getGeo = function() {
17780
17714
  * @param {string} value
17781
17715
  * @return {!proto.cms.GetPageSeoAttributesRequest} returns this
17782
17716
  */
17783
- proto.cms.GetPageSeoAttributesRequest.prototype.setGeo = function(value) {
17717
+ proto.cms.GetPageSeoAttributesRequest.prototype.setLocale = function(value) {
17784
17718
  return jspb.Message.setProto3StringField(this, 2, value);
17785
17719
  };
17786
17720
 
17787
17721
 
17788
17722
  /**
17789
- * optional string locale = 3;
17723
+ * optional int32 page_seo_id = 3;
17724
+ * @return {number}
17725
+ */
17726
+ proto.cms.GetPageSeoAttributesRequest.prototype.getPageSeoId = function() {
17727
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
17728
+ };
17729
+
17730
+
17731
+ /**
17732
+ * @param {number} value
17733
+ * @return {!proto.cms.GetPageSeoAttributesRequest} returns this
17734
+ */
17735
+ proto.cms.GetPageSeoAttributesRequest.prototype.setPageSeoId = function(value) {
17736
+ return jspb.Message.setField(this, 3, value);
17737
+ };
17738
+
17739
+
17740
+ /**
17741
+ * Clears the field making it undefined.
17742
+ * @return {!proto.cms.GetPageSeoAttributesRequest} returns this
17743
+ */
17744
+ proto.cms.GetPageSeoAttributesRequest.prototype.clearPageSeoId = function() {
17745
+ return jspb.Message.setField(this, 3, undefined);
17746
+ };
17747
+
17748
+
17749
+ /**
17750
+ * Returns whether this field is set.
17751
+ * @return {boolean}
17752
+ */
17753
+ proto.cms.GetPageSeoAttributesRequest.prototype.hasPageSeoId = function() {
17754
+ return jspb.Message.getField(this, 3) != null;
17755
+ };
17756
+
17757
+
17758
+ /**
17759
+ * optional string type = 4;
17790
17760
  * @return {string}
17791
17761
  */
17792
- proto.cms.GetPageSeoAttributesRequest.prototype.getLocale = function() {
17793
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
17762
+ proto.cms.GetPageSeoAttributesRequest.prototype.getType = function() {
17763
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
17794
17764
  };
17795
17765
 
17796
17766
 
@@ -17798,8 +17768,26 @@ proto.cms.GetPageSeoAttributesRequest.prototype.getLocale = function() {
17798
17768
  * @param {string} value
17799
17769
  * @return {!proto.cms.GetPageSeoAttributesRequest} returns this
17800
17770
  */
17801
- proto.cms.GetPageSeoAttributesRequest.prototype.setLocale = function(value) {
17802
- return jspb.Message.setProto3StringField(this, 3, value);
17771
+ proto.cms.GetPageSeoAttributesRequest.prototype.setType = function(value) {
17772
+ return jspb.Message.setField(this, 4, value);
17773
+ };
17774
+
17775
+
17776
+ /**
17777
+ * Clears the field making it undefined.
17778
+ * @return {!proto.cms.GetPageSeoAttributesRequest} returns this
17779
+ */
17780
+ proto.cms.GetPageSeoAttributesRequest.prototype.clearType = function() {
17781
+ return jspb.Message.setField(this, 4, undefined);
17782
+ };
17783
+
17784
+
17785
+ /**
17786
+ * Returns whether this field is set.
17787
+ * @return {boolean}
17788
+ */
17789
+ proto.cms.GetPageSeoAttributesRequest.prototype.hasType = function() {
17790
+ return jspb.Message.getField(this, 4) != null;
17803
17791
  };
17804
17792
 
17805
17793
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.274",
3
+ "version": "1.2.276",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {