protobuf-platform 1.2.353 → 1.2.355
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 +2 -0
- package/cms/cms_pb.js +98 -2
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
|
@@ -662,6 +662,7 @@ message CustomWidgetRow {
|
|
|
662
662
|
optional int32 priority_order = 2;
|
|
663
663
|
optional string config = 3; // JSON string; item-type-specific settings
|
|
664
664
|
optional string item_key = 4; // stable row id; backend-generated when missing
|
|
665
|
+
optional string data = 5; // JSON string; CMS-enriched payload, separate from config
|
|
665
666
|
}
|
|
666
667
|
message CustomWidgetItem {
|
|
667
668
|
optional int32 id = 1;
|
|
@@ -685,6 +686,7 @@ message GetCustomWidgetForUserRequest {
|
|
|
685
686
|
optional string geo = 2;
|
|
686
687
|
optional string locale = 3;
|
|
687
688
|
optional bool is_mobile = 4;
|
|
689
|
+
optional bool admin_side = 5;
|
|
688
690
|
}
|
|
689
691
|
message CustomWidgetsItemsResponse {
|
|
690
692
|
repeated CustomWidgetItem items = 1;
|
package/cms/cms_pb.js
CHANGED
|
@@ -27956,7 +27956,8 @@ proto.cms.CustomWidgetRow.toObject = function(includeInstance, msg) {
|
|
|
27956
27956
|
itemType: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
27957
27957
|
priorityOrder: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
27958
27958
|
config: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
27959
|
-
itemKey: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
27959
|
+
itemKey: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
27960
|
+
data: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
27960
27961
|
};
|
|
27961
27962
|
|
|
27962
27963
|
if (includeInstance) {
|
|
@@ -28009,6 +28010,10 @@ proto.cms.CustomWidgetRow.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
28009
28010
|
var value = /** @type {string} */ (reader.readString());
|
|
28010
28011
|
msg.setItemKey(value);
|
|
28011
28012
|
break;
|
|
28013
|
+
case 5:
|
|
28014
|
+
var value = /** @type {string} */ (reader.readString());
|
|
28015
|
+
msg.setData(value);
|
|
28016
|
+
break;
|
|
28012
28017
|
default:
|
|
28013
28018
|
reader.skipField();
|
|
28014
28019
|
break;
|
|
@@ -28066,6 +28071,13 @@ proto.cms.CustomWidgetRow.serializeBinaryToWriter = function(message, writer) {
|
|
|
28066
28071
|
f
|
|
28067
28072
|
);
|
|
28068
28073
|
}
|
|
28074
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
28075
|
+
if (f != null) {
|
|
28076
|
+
writer.writeString(
|
|
28077
|
+
5,
|
|
28078
|
+
f
|
|
28079
|
+
);
|
|
28080
|
+
}
|
|
28069
28081
|
};
|
|
28070
28082
|
|
|
28071
28083
|
|
|
@@ -28213,6 +28225,42 @@ proto.cms.CustomWidgetRow.prototype.hasItemKey = function() {
|
|
|
28213
28225
|
};
|
|
28214
28226
|
|
|
28215
28227
|
|
|
28228
|
+
/**
|
|
28229
|
+
* optional string data = 5;
|
|
28230
|
+
* @return {string}
|
|
28231
|
+
*/
|
|
28232
|
+
proto.cms.CustomWidgetRow.prototype.getData = function() {
|
|
28233
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
28234
|
+
};
|
|
28235
|
+
|
|
28236
|
+
|
|
28237
|
+
/**
|
|
28238
|
+
* @param {string} value
|
|
28239
|
+
* @return {!proto.cms.CustomWidgetRow} returns this
|
|
28240
|
+
*/
|
|
28241
|
+
proto.cms.CustomWidgetRow.prototype.setData = function(value) {
|
|
28242
|
+
return jspb.Message.setField(this, 5, value);
|
|
28243
|
+
};
|
|
28244
|
+
|
|
28245
|
+
|
|
28246
|
+
/**
|
|
28247
|
+
* Clears the field making it undefined.
|
|
28248
|
+
* @return {!proto.cms.CustomWidgetRow} returns this
|
|
28249
|
+
*/
|
|
28250
|
+
proto.cms.CustomWidgetRow.prototype.clearData = function() {
|
|
28251
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
28252
|
+
};
|
|
28253
|
+
|
|
28254
|
+
|
|
28255
|
+
/**
|
|
28256
|
+
* Returns whether this field is set.
|
|
28257
|
+
* @return {boolean}
|
|
28258
|
+
*/
|
|
28259
|
+
proto.cms.CustomWidgetRow.prototype.hasData = function() {
|
|
28260
|
+
return jspb.Message.getField(this, 5) != null;
|
|
28261
|
+
};
|
|
28262
|
+
|
|
28263
|
+
|
|
28216
28264
|
|
|
28217
28265
|
/**
|
|
28218
28266
|
* List of repeated fields within this message type.
|
|
@@ -29074,7 +29122,8 @@ proto.cms.GetCustomWidgetForUserRequest.toObject = function(includeInstance, msg
|
|
|
29074
29122
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
29075
29123
|
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
29076
29124
|
locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
29077
|
-
isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
|
29125
|
+
isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
29126
|
+
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
29078
29127
|
};
|
|
29079
29128
|
|
|
29080
29129
|
if (includeInstance) {
|
|
@@ -29127,6 +29176,10 @@ proto.cms.GetCustomWidgetForUserRequest.deserializeBinaryFromReader = function(m
|
|
|
29127
29176
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
29128
29177
|
msg.setIsMobile(value);
|
|
29129
29178
|
break;
|
|
29179
|
+
case 5:
|
|
29180
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
29181
|
+
msg.setAdminSide(value);
|
|
29182
|
+
break;
|
|
29130
29183
|
default:
|
|
29131
29184
|
reader.skipField();
|
|
29132
29185
|
break;
|
|
@@ -29184,6 +29237,13 @@ proto.cms.GetCustomWidgetForUserRequest.serializeBinaryToWriter = function(messa
|
|
|
29184
29237
|
f
|
|
29185
29238
|
);
|
|
29186
29239
|
}
|
|
29240
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
|
|
29241
|
+
if (f != null) {
|
|
29242
|
+
writer.writeBool(
|
|
29243
|
+
5,
|
|
29244
|
+
f
|
|
29245
|
+
);
|
|
29246
|
+
}
|
|
29187
29247
|
};
|
|
29188
29248
|
|
|
29189
29249
|
|
|
@@ -29313,6 +29373,42 @@ proto.cms.GetCustomWidgetForUserRequest.prototype.hasIsMobile = function() {
|
|
|
29313
29373
|
};
|
|
29314
29374
|
|
|
29315
29375
|
|
|
29376
|
+
/**
|
|
29377
|
+
* optional bool admin_side = 5;
|
|
29378
|
+
* @return {boolean}
|
|
29379
|
+
*/
|
|
29380
|
+
proto.cms.GetCustomWidgetForUserRequest.prototype.getAdminSide = function() {
|
|
29381
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
29382
|
+
};
|
|
29383
|
+
|
|
29384
|
+
|
|
29385
|
+
/**
|
|
29386
|
+
* @param {boolean} value
|
|
29387
|
+
* @return {!proto.cms.GetCustomWidgetForUserRequest} returns this
|
|
29388
|
+
*/
|
|
29389
|
+
proto.cms.GetCustomWidgetForUserRequest.prototype.setAdminSide = function(value) {
|
|
29390
|
+
return jspb.Message.setField(this, 5, value);
|
|
29391
|
+
};
|
|
29392
|
+
|
|
29393
|
+
|
|
29394
|
+
/**
|
|
29395
|
+
* Clears the field making it undefined.
|
|
29396
|
+
* @return {!proto.cms.GetCustomWidgetForUserRequest} returns this
|
|
29397
|
+
*/
|
|
29398
|
+
proto.cms.GetCustomWidgetForUserRequest.prototype.clearAdminSide = function() {
|
|
29399
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
29400
|
+
};
|
|
29401
|
+
|
|
29402
|
+
|
|
29403
|
+
/**
|
|
29404
|
+
* Returns whether this field is set.
|
|
29405
|
+
* @return {boolean}
|
|
29406
|
+
*/
|
|
29407
|
+
proto.cms.GetCustomWidgetForUserRequest.prototype.hasAdminSide = function() {
|
|
29408
|
+
return jspb.Message.getField(this, 5) != null;
|
|
29409
|
+
};
|
|
29410
|
+
|
|
29411
|
+
|
|
29316
29412
|
|
|
29317
29413
|
/**
|
|
29318
29414
|
* List of repeated fields within this message type.
|