protobuf-platform 1.2.26 → 1.2.27
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 +9 -0
- package/cms/cms_grpc_pb.js +22 -0
- package/cms/cms_pb.js +356 -0
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
@@ -32,6 +32,7 @@ service CMS {
|
|
32
32
|
rpc updateSinglePage(PageRequest) returns (PageResponse);
|
33
33
|
rpc deleteSinglePage(GetPageRequest) returns (PageStatusResponse);
|
34
34
|
rpc readListPages(PaginationRequest) returns (PagesItemsResponse);
|
35
|
+
rpc setPageTranslation(PageTranslationRequest) returns (PageStatusResponse);
|
35
36
|
//Pages
|
36
37
|
rpc createSinglePromo(stream PromoRequest) returns (PromoResponse);
|
37
38
|
rpc readSinglePromo(GetPromoRequest) returns (PromoResponse);
|
@@ -210,6 +211,14 @@ message GetPageRequest {
|
|
210
211
|
message PageStatusResponse {
|
211
212
|
string status = 1;
|
212
213
|
}
|
214
|
+
message PageTranslationRequest {
|
215
|
+
int32 page_id = 1;
|
216
|
+
string geo = 2;
|
217
|
+
string locale = 3;
|
218
|
+
optional string title = 4;
|
219
|
+
optional string content = 5;
|
220
|
+
optional int32 is_active = 6;
|
221
|
+
}
|
213
222
|
//Promo CRUD
|
214
223
|
message PromoRequest {
|
215
224
|
oneof request {
|
package/cms/cms_grpc_pb.js
CHANGED
@@ -257,6 +257,17 @@ function deserialize_cms_PageStatusResponse(buffer_arg) {
|
|
257
257
|
return cms_pb.PageStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
258
258
|
}
|
259
259
|
|
260
|
+
function serialize_cms_PageTranslationRequest(arg) {
|
261
|
+
if (!(arg instanceof cms_pb.PageTranslationRequest)) {
|
262
|
+
throw new Error('Expected argument of type cms.PageTranslationRequest');
|
263
|
+
}
|
264
|
+
return Buffer.from(arg.serializeBinary());
|
265
|
+
}
|
266
|
+
|
267
|
+
function deserialize_cms_PageTranslationRequest(buffer_arg) {
|
268
|
+
return cms_pb.PageTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
269
|
+
}
|
270
|
+
|
260
271
|
function serialize_cms_PagesItemsResponse(arg) {
|
261
272
|
if (!(arg instanceof cms_pb.PagesItemsResponse)) {
|
262
273
|
throw new Error('Expected argument of type cms.PagesItemsResponse');
|
@@ -648,6 +659,17 @@ createSinglePage: {
|
|
648
659
|
responseSerialize: serialize_cms_PagesItemsResponse,
|
649
660
|
responseDeserialize: deserialize_cms_PagesItemsResponse,
|
650
661
|
},
|
662
|
+
setPageTranslation: {
|
663
|
+
path: '/cms.CMS/setPageTranslation',
|
664
|
+
requestStream: false,
|
665
|
+
responseStream: false,
|
666
|
+
requestType: cms_pb.PageTranslationRequest,
|
667
|
+
responseType: cms_pb.PageStatusResponse,
|
668
|
+
requestSerialize: serialize_cms_PageTranslationRequest,
|
669
|
+
requestDeserialize: deserialize_cms_PageTranslationRequest,
|
670
|
+
responseSerialize: serialize_cms_PageStatusResponse,
|
671
|
+
responseDeserialize: deserialize_cms_PageStatusResponse,
|
672
|
+
},
|
651
673
|
// Pages
|
652
674
|
createSinglePromo: {
|
653
675
|
path: '/cms.CMS/createSinglePromo',
|
package/cms/cms_pb.js
CHANGED
@@ -50,6 +50,7 @@ goog.exportSymbol('proto.cms.PageItem', null, global);
|
|
50
50
|
goog.exportSymbol('proto.cms.PageRequest', null, global);
|
51
51
|
goog.exportSymbol('proto.cms.PageResponse', null, global);
|
52
52
|
goog.exportSymbol('proto.cms.PageStatusResponse', null, global);
|
53
|
+
goog.exportSymbol('proto.cms.PageTranslationRequest', null, global);
|
53
54
|
goog.exportSymbol('proto.cms.PagesItemsResponse', null, global);
|
54
55
|
goog.exportSymbol('proto.cms.PaginationRequest', null, global);
|
55
56
|
goog.exportSymbol('proto.cms.PingRequest', null, global);
|
@@ -778,6 +779,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
778
779
|
*/
|
779
780
|
proto.cms.PageStatusResponse.displayName = 'proto.cms.PageStatusResponse';
|
780
781
|
}
|
782
|
+
/**
|
783
|
+
* Generated by JsPbCodeGenerator.
|
784
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
785
|
+
* server response, or constructed directly in Javascript. The array is used
|
786
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
787
|
+
* If no data is provided, the constructed object will be empty, but still
|
788
|
+
* valid.
|
789
|
+
* @extends {jspb.Message}
|
790
|
+
* @constructor
|
791
|
+
*/
|
792
|
+
proto.cms.PageTranslationRequest = function(opt_data) {
|
793
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
794
|
+
};
|
795
|
+
goog.inherits(proto.cms.PageTranslationRequest, jspb.Message);
|
796
|
+
if (goog.DEBUG && !COMPILED) {
|
797
|
+
/**
|
798
|
+
* @public
|
799
|
+
* @override
|
800
|
+
*/
|
801
|
+
proto.cms.PageTranslationRequest.displayName = 'proto.cms.PageTranslationRequest';
|
802
|
+
}
|
781
803
|
/**
|
782
804
|
* Generated by JsPbCodeGenerator.
|
783
805
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -9156,6 +9178,340 @@ proto.cms.PageStatusResponse.prototype.setStatus = function(value) {
|
|
9156
9178
|
|
9157
9179
|
|
9158
9180
|
|
9181
|
+
|
9182
|
+
|
9183
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
9184
|
+
/**
|
9185
|
+
* Creates an object representation of this proto.
|
9186
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
9187
|
+
* Optional fields that are not set will be set to undefined.
|
9188
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
9189
|
+
* For the list of reserved names please see:
|
9190
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
9191
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
9192
|
+
* JSPB instance for transitional soy proto support:
|
9193
|
+
* http://goto/soy-param-migration
|
9194
|
+
* @return {!Object}
|
9195
|
+
*/
|
9196
|
+
proto.cms.PageTranslationRequest.prototype.toObject = function(opt_includeInstance) {
|
9197
|
+
return proto.cms.PageTranslationRequest.toObject(opt_includeInstance, this);
|
9198
|
+
};
|
9199
|
+
|
9200
|
+
|
9201
|
+
/**
|
9202
|
+
* Static version of the {@see toObject} method.
|
9203
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
9204
|
+
* the JSPB instance for transitional soy proto support:
|
9205
|
+
* http://goto/soy-param-migration
|
9206
|
+
* @param {!proto.cms.PageTranslationRequest} msg The msg instance to transform.
|
9207
|
+
* @return {!Object}
|
9208
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
9209
|
+
*/
|
9210
|
+
proto.cms.PageTranslationRequest.toObject = function(includeInstance, msg) {
|
9211
|
+
var f, obj = {
|
9212
|
+
pageId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
9213
|
+
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
9214
|
+
locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
9215
|
+
title: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
9216
|
+
content: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
9217
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
9218
|
+
};
|
9219
|
+
|
9220
|
+
if (includeInstance) {
|
9221
|
+
obj.$jspbMessageInstance = msg;
|
9222
|
+
}
|
9223
|
+
return obj;
|
9224
|
+
};
|
9225
|
+
}
|
9226
|
+
|
9227
|
+
|
9228
|
+
/**
|
9229
|
+
* Deserializes binary data (in protobuf wire format).
|
9230
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
9231
|
+
* @return {!proto.cms.PageTranslationRequest}
|
9232
|
+
*/
|
9233
|
+
proto.cms.PageTranslationRequest.deserializeBinary = function(bytes) {
|
9234
|
+
var reader = new jspb.BinaryReader(bytes);
|
9235
|
+
var msg = new proto.cms.PageTranslationRequest;
|
9236
|
+
return proto.cms.PageTranslationRequest.deserializeBinaryFromReader(msg, reader);
|
9237
|
+
};
|
9238
|
+
|
9239
|
+
|
9240
|
+
/**
|
9241
|
+
* Deserializes binary data (in protobuf wire format) from the
|
9242
|
+
* given reader into the given message object.
|
9243
|
+
* @param {!proto.cms.PageTranslationRequest} msg The message object to deserialize into.
|
9244
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
9245
|
+
* @return {!proto.cms.PageTranslationRequest}
|
9246
|
+
*/
|
9247
|
+
proto.cms.PageTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
9248
|
+
while (reader.nextField()) {
|
9249
|
+
if (reader.isEndGroup()) {
|
9250
|
+
break;
|
9251
|
+
}
|
9252
|
+
var field = reader.getFieldNumber();
|
9253
|
+
switch (field) {
|
9254
|
+
case 1:
|
9255
|
+
var value = /** @type {number} */ (reader.readInt32());
|
9256
|
+
msg.setPageId(value);
|
9257
|
+
break;
|
9258
|
+
case 2:
|
9259
|
+
var value = /** @type {string} */ (reader.readString());
|
9260
|
+
msg.setGeo(value);
|
9261
|
+
break;
|
9262
|
+
case 3:
|
9263
|
+
var value = /** @type {string} */ (reader.readString());
|
9264
|
+
msg.setLocale(value);
|
9265
|
+
break;
|
9266
|
+
case 4:
|
9267
|
+
var value = /** @type {string} */ (reader.readString());
|
9268
|
+
msg.setTitle(value);
|
9269
|
+
break;
|
9270
|
+
case 5:
|
9271
|
+
var value = /** @type {string} */ (reader.readString());
|
9272
|
+
msg.setContent(value);
|
9273
|
+
break;
|
9274
|
+
case 6:
|
9275
|
+
var value = /** @type {number} */ (reader.readInt32());
|
9276
|
+
msg.setIsActive(value);
|
9277
|
+
break;
|
9278
|
+
default:
|
9279
|
+
reader.skipField();
|
9280
|
+
break;
|
9281
|
+
}
|
9282
|
+
}
|
9283
|
+
return msg;
|
9284
|
+
};
|
9285
|
+
|
9286
|
+
|
9287
|
+
/**
|
9288
|
+
* Serializes the message to binary data (in protobuf wire format).
|
9289
|
+
* @return {!Uint8Array}
|
9290
|
+
*/
|
9291
|
+
proto.cms.PageTranslationRequest.prototype.serializeBinary = function() {
|
9292
|
+
var writer = new jspb.BinaryWriter();
|
9293
|
+
proto.cms.PageTranslationRequest.serializeBinaryToWriter(this, writer);
|
9294
|
+
return writer.getResultBuffer();
|
9295
|
+
};
|
9296
|
+
|
9297
|
+
|
9298
|
+
/**
|
9299
|
+
* Serializes the given message to binary data (in protobuf wire
|
9300
|
+
* format), writing to the given BinaryWriter.
|
9301
|
+
* @param {!proto.cms.PageTranslationRequest} message
|
9302
|
+
* @param {!jspb.BinaryWriter} writer
|
9303
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
9304
|
+
*/
|
9305
|
+
proto.cms.PageTranslationRequest.serializeBinaryToWriter = function(message, writer) {
|
9306
|
+
var f = undefined;
|
9307
|
+
f = message.getPageId();
|
9308
|
+
if (f !== 0) {
|
9309
|
+
writer.writeInt32(
|
9310
|
+
1,
|
9311
|
+
f
|
9312
|
+
);
|
9313
|
+
}
|
9314
|
+
f = message.getGeo();
|
9315
|
+
if (f.length > 0) {
|
9316
|
+
writer.writeString(
|
9317
|
+
2,
|
9318
|
+
f
|
9319
|
+
);
|
9320
|
+
}
|
9321
|
+
f = message.getLocale();
|
9322
|
+
if (f.length > 0) {
|
9323
|
+
writer.writeString(
|
9324
|
+
3,
|
9325
|
+
f
|
9326
|
+
);
|
9327
|
+
}
|
9328
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
9329
|
+
if (f != null) {
|
9330
|
+
writer.writeString(
|
9331
|
+
4,
|
9332
|
+
f
|
9333
|
+
);
|
9334
|
+
}
|
9335
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
9336
|
+
if (f != null) {
|
9337
|
+
writer.writeString(
|
9338
|
+
5,
|
9339
|
+
f
|
9340
|
+
);
|
9341
|
+
}
|
9342
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
9343
|
+
if (f != null) {
|
9344
|
+
writer.writeInt32(
|
9345
|
+
6,
|
9346
|
+
f
|
9347
|
+
);
|
9348
|
+
}
|
9349
|
+
};
|
9350
|
+
|
9351
|
+
|
9352
|
+
/**
|
9353
|
+
* optional int32 page_id = 1;
|
9354
|
+
* @return {number}
|
9355
|
+
*/
|
9356
|
+
proto.cms.PageTranslationRequest.prototype.getPageId = function() {
|
9357
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
9358
|
+
};
|
9359
|
+
|
9360
|
+
|
9361
|
+
/**
|
9362
|
+
* @param {number} value
|
9363
|
+
* @return {!proto.cms.PageTranslationRequest} returns this
|
9364
|
+
*/
|
9365
|
+
proto.cms.PageTranslationRequest.prototype.setPageId = function(value) {
|
9366
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
9367
|
+
};
|
9368
|
+
|
9369
|
+
|
9370
|
+
/**
|
9371
|
+
* optional string geo = 2;
|
9372
|
+
* @return {string}
|
9373
|
+
*/
|
9374
|
+
proto.cms.PageTranslationRequest.prototype.getGeo = function() {
|
9375
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
9376
|
+
};
|
9377
|
+
|
9378
|
+
|
9379
|
+
/**
|
9380
|
+
* @param {string} value
|
9381
|
+
* @return {!proto.cms.PageTranslationRequest} returns this
|
9382
|
+
*/
|
9383
|
+
proto.cms.PageTranslationRequest.prototype.setGeo = function(value) {
|
9384
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
9385
|
+
};
|
9386
|
+
|
9387
|
+
|
9388
|
+
/**
|
9389
|
+
* optional string locale = 3;
|
9390
|
+
* @return {string}
|
9391
|
+
*/
|
9392
|
+
proto.cms.PageTranslationRequest.prototype.getLocale = function() {
|
9393
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
9394
|
+
};
|
9395
|
+
|
9396
|
+
|
9397
|
+
/**
|
9398
|
+
* @param {string} value
|
9399
|
+
* @return {!proto.cms.PageTranslationRequest} returns this
|
9400
|
+
*/
|
9401
|
+
proto.cms.PageTranslationRequest.prototype.setLocale = function(value) {
|
9402
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
9403
|
+
};
|
9404
|
+
|
9405
|
+
|
9406
|
+
/**
|
9407
|
+
* optional string title = 4;
|
9408
|
+
* @return {string}
|
9409
|
+
*/
|
9410
|
+
proto.cms.PageTranslationRequest.prototype.getTitle = function() {
|
9411
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
9412
|
+
};
|
9413
|
+
|
9414
|
+
|
9415
|
+
/**
|
9416
|
+
* @param {string} value
|
9417
|
+
* @return {!proto.cms.PageTranslationRequest} returns this
|
9418
|
+
*/
|
9419
|
+
proto.cms.PageTranslationRequest.prototype.setTitle = function(value) {
|
9420
|
+
return jspb.Message.setField(this, 4, value);
|
9421
|
+
};
|
9422
|
+
|
9423
|
+
|
9424
|
+
/**
|
9425
|
+
* Clears the field making it undefined.
|
9426
|
+
* @return {!proto.cms.PageTranslationRequest} returns this
|
9427
|
+
*/
|
9428
|
+
proto.cms.PageTranslationRequest.prototype.clearTitle = function() {
|
9429
|
+
return jspb.Message.setField(this, 4, undefined);
|
9430
|
+
};
|
9431
|
+
|
9432
|
+
|
9433
|
+
/**
|
9434
|
+
* Returns whether this field is set.
|
9435
|
+
* @return {boolean}
|
9436
|
+
*/
|
9437
|
+
proto.cms.PageTranslationRequest.prototype.hasTitle = function() {
|
9438
|
+
return jspb.Message.getField(this, 4) != null;
|
9439
|
+
};
|
9440
|
+
|
9441
|
+
|
9442
|
+
/**
|
9443
|
+
* optional string content = 5;
|
9444
|
+
* @return {string}
|
9445
|
+
*/
|
9446
|
+
proto.cms.PageTranslationRequest.prototype.getContent = function() {
|
9447
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
9448
|
+
};
|
9449
|
+
|
9450
|
+
|
9451
|
+
/**
|
9452
|
+
* @param {string} value
|
9453
|
+
* @return {!proto.cms.PageTranslationRequest} returns this
|
9454
|
+
*/
|
9455
|
+
proto.cms.PageTranslationRequest.prototype.setContent = function(value) {
|
9456
|
+
return jspb.Message.setField(this, 5, value);
|
9457
|
+
};
|
9458
|
+
|
9459
|
+
|
9460
|
+
/**
|
9461
|
+
* Clears the field making it undefined.
|
9462
|
+
* @return {!proto.cms.PageTranslationRequest} returns this
|
9463
|
+
*/
|
9464
|
+
proto.cms.PageTranslationRequest.prototype.clearContent = function() {
|
9465
|
+
return jspb.Message.setField(this, 5, undefined);
|
9466
|
+
};
|
9467
|
+
|
9468
|
+
|
9469
|
+
/**
|
9470
|
+
* Returns whether this field is set.
|
9471
|
+
* @return {boolean}
|
9472
|
+
*/
|
9473
|
+
proto.cms.PageTranslationRequest.prototype.hasContent = function() {
|
9474
|
+
return jspb.Message.getField(this, 5) != null;
|
9475
|
+
};
|
9476
|
+
|
9477
|
+
|
9478
|
+
/**
|
9479
|
+
* optional int32 is_active = 6;
|
9480
|
+
* @return {number}
|
9481
|
+
*/
|
9482
|
+
proto.cms.PageTranslationRequest.prototype.getIsActive = function() {
|
9483
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
9484
|
+
};
|
9485
|
+
|
9486
|
+
|
9487
|
+
/**
|
9488
|
+
* @param {number} value
|
9489
|
+
* @return {!proto.cms.PageTranslationRequest} returns this
|
9490
|
+
*/
|
9491
|
+
proto.cms.PageTranslationRequest.prototype.setIsActive = function(value) {
|
9492
|
+
return jspb.Message.setField(this, 6, value);
|
9493
|
+
};
|
9494
|
+
|
9495
|
+
|
9496
|
+
/**
|
9497
|
+
* Clears the field making it undefined.
|
9498
|
+
* @return {!proto.cms.PageTranslationRequest} returns this
|
9499
|
+
*/
|
9500
|
+
proto.cms.PageTranslationRequest.prototype.clearIsActive = function() {
|
9501
|
+
return jspb.Message.setField(this, 6, undefined);
|
9502
|
+
};
|
9503
|
+
|
9504
|
+
|
9505
|
+
/**
|
9506
|
+
* Returns whether this field is set.
|
9507
|
+
* @return {boolean}
|
9508
|
+
*/
|
9509
|
+
proto.cms.PageTranslationRequest.prototype.hasIsActive = function() {
|
9510
|
+
return jspb.Message.getField(this, 6) != null;
|
9511
|
+
};
|
9512
|
+
|
9513
|
+
|
9514
|
+
|
9159
9515
|
/**
|
9160
9516
|
* Oneof group definitions for this message. Each group defines the field
|
9161
9517
|
* numbers belonging to that group. When of these fields' value is set, all
|