protobuf-platform 1.0.202 → 1.0.203

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
@@ -11,6 +11,8 @@ service CMS {
11
11
  rpc getMainPageWidgetList(GetMainPageWidgetRequest) returns (MainPageWidgetResponse);
12
12
  rpc setBurgerMenuWidget(CommonWidgetRequest) returns (BurgerMenuWidgetItem);
13
13
  rpc getBurgerMenuWidget(GetBurgerMenuWidgetRequest) returns (BurgerMenuWidgetItem);
14
+ rpc setSignUpFormWidget(CommonWidgetRequest) returns (SignUpFormWidgetItem);
15
+ rpc getSignUpFormWidget(GetSignUpFormWidgetRequest) returns (SignUpFormWidgetItem);
14
16
  //Banners
15
17
  rpc createSingleBanner(stream BannerRequest) returns (BannerResponse);
16
18
  rpc readSingleBanner(GetBannerRequest) returns (BannerResponse);
@@ -65,6 +67,14 @@ message BurgerMenuWidgetItem {
65
67
  string geo = 1;
66
68
  string content = 2;
67
69
  }
70
+ message GetSignUpFormWidgetRequest {
71
+ optional string geo = 1;
72
+ optional bool admin_side = 4;
73
+ }
74
+ message SignUpFormWidgetItem {
75
+ string geo = 1;
76
+ string content = 2;
77
+ }
68
78
  //Banners CRUD
69
79
  message BannerRequest {
70
80
  oneof request {
@@ -169,6 +169,17 @@ function deserialize_cms_GetMainPageWidgetRequest(buffer_arg) {
169
169
  return cms_pb.GetMainPageWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
170
170
  }
171
171
 
172
+ function serialize_cms_GetSignUpFormWidgetRequest(arg) {
173
+ if (!(arg instanceof cms_pb.GetSignUpFormWidgetRequest)) {
174
+ throw new Error('Expected argument of type cms.GetSignUpFormWidgetRequest');
175
+ }
176
+ return Buffer.from(arg.serializeBinary());
177
+ }
178
+
179
+ function deserialize_cms_GetSignUpFormWidgetRequest(buffer_arg) {
180
+ return cms_pb.GetSignUpFormWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
181
+ }
182
+
172
183
  function serialize_cms_MainPageWidgetItem(arg) {
173
184
  if (!(arg instanceof cms_pb.MainPageWidgetItem)) {
174
185
  throw new Error('Expected argument of type cms.MainPageWidgetItem');
@@ -224,6 +235,17 @@ function deserialize_cms_PongResponse(buffer_arg) {
224
235
  return cms_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
225
236
  }
226
237
 
238
+ function serialize_cms_SignUpFormWidgetItem(arg) {
239
+ if (!(arg instanceof cms_pb.SignUpFormWidgetItem)) {
240
+ throw new Error('Expected argument of type cms.SignUpFormWidgetItem');
241
+ }
242
+ return Buffer.from(arg.serializeBinary());
243
+ }
244
+
245
+ function deserialize_cms_SignUpFormWidgetItem(buffer_arg) {
246
+ return cms_pb.SignUpFormWidgetItem.deserializeBinary(new Uint8Array(buffer_arg));
247
+ }
248
+
227
249
  function serialize_cms_UserBannerGroupResponse(arg) {
228
250
  if (!(arg instanceof cms_pb.UserBannerGroupResponse)) {
229
251
  throw new Error('Expected argument of type cms.UserBannerGroupResponse');
@@ -315,6 +337,28 @@ setMainPageWidget: {
315
337
  responseSerialize: serialize_cms_BurgerMenuWidgetItem,
316
338
  responseDeserialize: deserialize_cms_BurgerMenuWidgetItem,
317
339
  },
340
+ setSignUpFormWidget: {
341
+ path: '/cms.CMS/setSignUpFormWidget',
342
+ requestStream: false,
343
+ responseStream: false,
344
+ requestType: cms_pb.CommonWidgetRequest,
345
+ responseType: cms_pb.SignUpFormWidgetItem,
346
+ requestSerialize: serialize_cms_CommonWidgetRequest,
347
+ requestDeserialize: deserialize_cms_CommonWidgetRequest,
348
+ responseSerialize: serialize_cms_SignUpFormWidgetItem,
349
+ responseDeserialize: deserialize_cms_SignUpFormWidgetItem,
350
+ },
351
+ getSignUpFormWidget: {
352
+ path: '/cms.CMS/getSignUpFormWidget',
353
+ requestStream: false,
354
+ responseStream: false,
355
+ requestType: cms_pb.GetSignUpFormWidgetRequest,
356
+ responseType: cms_pb.SignUpFormWidgetItem,
357
+ requestSerialize: serialize_cms_GetSignUpFormWidgetRequest,
358
+ requestDeserialize: deserialize_cms_GetSignUpFormWidgetRequest,
359
+ responseSerialize: serialize_cms_SignUpFormWidgetItem,
360
+ responseDeserialize: deserialize_cms_SignUpFormWidgetItem,
361
+ },
318
362
  // Banners
319
363
  createSingleBanner: {
320
364
  path: '/cms.CMS/createSingleBanner',
package/cms/cms_pb.js CHANGED
@@ -41,11 +41,13 @@ goog.exportSymbol('proto.cms.GetBannerRequest', null, global);
41
41
  goog.exportSymbol('proto.cms.GetBurgerMenuWidgetRequest', null, global);
42
42
  goog.exportSymbol('proto.cms.GetFileRequest', null, global);
43
43
  goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
44
+ goog.exportSymbol('proto.cms.GetSignUpFormWidgetRequest', null, global);
44
45
  goog.exportSymbol('proto.cms.MainPageWidgetItem', null, global);
45
46
  goog.exportSymbol('proto.cms.MainPageWidgetResponse', null, global);
46
47
  goog.exportSymbol('proto.cms.PaginationRequest', null, global);
47
48
  goog.exportSymbol('proto.cms.PingRequest', null, global);
48
49
  goog.exportSymbol('proto.cms.PongResponse', null, global);
50
+ goog.exportSymbol('proto.cms.SignUpFormWidgetItem', null, global);
49
51
  goog.exportSymbol('proto.cms.UserBannerGroupResponse', null, global);
50
52
  goog.exportSymbol('proto.cms.UserBannerItem', null, global);
51
53
  /**
@@ -279,6 +281,48 @@ if (goog.DEBUG && !COMPILED) {
279
281
  */
280
282
  proto.cms.BurgerMenuWidgetItem.displayName = 'proto.cms.BurgerMenuWidgetItem';
281
283
  }
284
+ /**
285
+ * Generated by JsPbCodeGenerator.
286
+ * @param {Array=} opt_data Optional initial data array, typically from a
287
+ * server response, or constructed directly in Javascript. The array is used
288
+ * in place and becomes part of the constructed object. It is not cloned.
289
+ * If no data is provided, the constructed object will be empty, but still
290
+ * valid.
291
+ * @extends {jspb.Message}
292
+ * @constructor
293
+ */
294
+ proto.cms.GetSignUpFormWidgetRequest = function(opt_data) {
295
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
296
+ };
297
+ goog.inherits(proto.cms.GetSignUpFormWidgetRequest, jspb.Message);
298
+ if (goog.DEBUG && !COMPILED) {
299
+ /**
300
+ * @public
301
+ * @override
302
+ */
303
+ proto.cms.GetSignUpFormWidgetRequest.displayName = 'proto.cms.GetSignUpFormWidgetRequest';
304
+ }
305
+ /**
306
+ * Generated by JsPbCodeGenerator.
307
+ * @param {Array=} opt_data Optional initial data array, typically from a
308
+ * server response, or constructed directly in Javascript. The array is used
309
+ * in place and becomes part of the constructed object. It is not cloned.
310
+ * If no data is provided, the constructed object will be empty, but still
311
+ * valid.
312
+ * @extends {jspb.Message}
313
+ * @constructor
314
+ */
315
+ proto.cms.SignUpFormWidgetItem = function(opt_data) {
316
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
317
+ };
318
+ goog.inherits(proto.cms.SignUpFormWidgetItem, jspb.Message);
319
+ if (goog.DEBUG && !COMPILED) {
320
+ /**
321
+ * @public
322
+ * @override
323
+ */
324
+ proto.cms.SignUpFormWidgetItem.displayName = 'proto.cms.SignUpFormWidgetItem';
325
+ }
282
326
  /**
283
327
  * Generated by JsPbCodeGenerator.
284
328
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2727,6 +2771,362 @@ proto.cms.BurgerMenuWidgetItem.prototype.setContent = function(value) {
2727
2771
 
2728
2772
 
2729
2773
 
2774
+
2775
+
2776
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2777
+ /**
2778
+ * Creates an object representation of this proto.
2779
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2780
+ * Optional fields that are not set will be set to undefined.
2781
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2782
+ * For the list of reserved names please see:
2783
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2784
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2785
+ * JSPB instance for transitional soy proto support:
2786
+ * http://goto/soy-param-migration
2787
+ * @return {!Object}
2788
+ */
2789
+ proto.cms.GetSignUpFormWidgetRequest.prototype.toObject = function(opt_includeInstance) {
2790
+ return proto.cms.GetSignUpFormWidgetRequest.toObject(opt_includeInstance, this);
2791
+ };
2792
+
2793
+
2794
+ /**
2795
+ * Static version of the {@see toObject} method.
2796
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2797
+ * the JSPB instance for transitional soy proto support:
2798
+ * http://goto/soy-param-migration
2799
+ * @param {!proto.cms.GetSignUpFormWidgetRequest} msg The msg instance to transform.
2800
+ * @return {!Object}
2801
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2802
+ */
2803
+ proto.cms.GetSignUpFormWidgetRequest.toObject = function(includeInstance, msg) {
2804
+ var f, obj = {
2805
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
2806
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
2807
+ };
2808
+
2809
+ if (includeInstance) {
2810
+ obj.$jspbMessageInstance = msg;
2811
+ }
2812
+ return obj;
2813
+ };
2814
+ }
2815
+
2816
+
2817
+ /**
2818
+ * Deserializes binary data (in protobuf wire format).
2819
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2820
+ * @return {!proto.cms.GetSignUpFormWidgetRequest}
2821
+ */
2822
+ proto.cms.GetSignUpFormWidgetRequest.deserializeBinary = function(bytes) {
2823
+ var reader = new jspb.BinaryReader(bytes);
2824
+ var msg = new proto.cms.GetSignUpFormWidgetRequest;
2825
+ return proto.cms.GetSignUpFormWidgetRequest.deserializeBinaryFromReader(msg, reader);
2826
+ };
2827
+
2828
+
2829
+ /**
2830
+ * Deserializes binary data (in protobuf wire format) from the
2831
+ * given reader into the given message object.
2832
+ * @param {!proto.cms.GetSignUpFormWidgetRequest} msg The message object to deserialize into.
2833
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2834
+ * @return {!proto.cms.GetSignUpFormWidgetRequest}
2835
+ */
2836
+ proto.cms.GetSignUpFormWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
2837
+ while (reader.nextField()) {
2838
+ if (reader.isEndGroup()) {
2839
+ break;
2840
+ }
2841
+ var field = reader.getFieldNumber();
2842
+ switch (field) {
2843
+ case 1:
2844
+ var value = /** @type {string} */ (reader.readString());
2845
+ msg.setGeo(value);
2846
+ break;
2847
+ case 4:
2848
+ var value = /** @type {boolean} */ (reader.readBool());
2849
+ msg.setAdminSide(value);
2850
+ break;
2851
+ default:
2852
+ reader.skipField();
2853
+ break;
2854
+ }
2855
+ }
2856
+ return msg;
2857
+ };
2858
+
2859
+
2860
+ /**
2861
+ * Serializes the message to binary data (in protobuf wire format).
2862
+ * @return {!Uint8Array}
2863
+ */
2864
+ proto.cms.GetSignUpFormWidgetRequest.prototype.serializeBinary = function() {
2865
+ var writer = new jspb.BinaryWriter();
2866
+ proto.cms.GetSignUpFormWidgetRequest.serializeBinaryToWriter(this, writer);
2867
+ return writer.getResultBuffer();
2868
+ };
2869
+
2870
+
2871
+ /**
2872
+ * Serializes the given message to binary data (in protobuf wire
2873
+ * format), writing to the given BinaryWriter.
2874
+ * @param {!proto.cms.GetSignUpFormWidgetRequest} message
2875
+ * @param {!jspb.BinaryWriter} writer
2876
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2877
+ */
2878
+ proto.cms.GetSignUpFormWidgetRequest.serializeBinaryToWriter = function(message, writer) {
2879
+ var f = undefined;
2880
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
2881
+ if (f != null) {
2882
+ writer.writeString(
2883
+ 1,
2884
+ f
2885
+ );
2886
+ }
2887
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
2888
+ if (f != null) {
2889
+ writer.writeBool(
2890
+ 4,
2891
+ f
2892
+ );
2893
+ }
2894
+ };
2895
+
2896
+
2897
+ /**
2898
+ * optional string geo = 1;
2899
+ * @return {string}
2900
+ */
2901
+ proto.cms.GetSignUpFormWidgetRequest.prototype.getGeo = function() {
2902
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2903
+ };
2904
+
2905
+
2906
+ /**
2907
+ * @param {string} value
2908
+ * @return {!proto.cms.GetSignUpFormWidgetRequest} returns this
2909
+ */
2910
+ proto.cms.GetSignUpFormWidgetRequest.prototype.setGeo = function(value) {
2911
+ return jspb.Message.setField(this, 1, value);
2912
+ };
2913
+
2914
+
2915
+ /**
2916
+ * Clears the field making it undefined.
2917
+ * @return {!proto.cms.GetSignUpFormWidgetRequest} returns this
2918
+ */
2919
+ proto.cms.GetSignUpFormWidgetRequest.prototype.clearGeo = function() {
2920
+ return jspb.Message.setField(this, 1, undefined);
2921
+ };
2922
+
2923
+
2924
+ /**
2925
+ * Returns whether this field is set.
2926
+ * @return {boolean}
2927
+ */
2928
+ proto.cms.GetSignUpFormWidgetRequest.prototype.hasGeo = function() {
2929
+ return jspb.Message.getField(this, 1) != null;
2930
+ };
2931
+
2932
+
2933
+ /**
2934
+ * optional bool admin_side = 4;
2935
+ * @return {boolean}
2936
+ */
2937
+ proto.cms.GetSignUpFormWidgetRequest.prototype.getAdminSide = function() {
2938
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
2939
+ };
2940
+
2941
+
2942
+ /**
2943
+ * @param {boolean} value
2944
+ * @return {!proto.cms.GetSignUpFormWidgetRequest} returns this
2945
+ */
2946
+ proto.cms.GetSignUpFormWidgetRequest.prototype.setAdminSide = function(value) {
2947
+ return jspb.Message.setField(this, 4, value);
2948
+ };
2949
+
2950
+
2951
+ /**
2952
+ * Clears the field making it undefined.
2953
+ * @return {!proto.cms.GetSignUpFormWidgetRequest} returns this
2954
+ */
2955
+ proto.cms.GetSignUpFormWidgetRequest.prototype.clearAdminSide = function() {
2956
+ return jspb.Message.setField(this, 4, undefined);
2957
+ };
2958
+
2959
+
2960
+ /**
2961
+ * Returns whether this field is set.
2962
+ * @return {boolean}
2963
+ */
2964
+ proto.cms.GetSignUpFormWidgetRequest.prototype.hasAdminSide = function() {
2965
+ return jspb.Message.getField(this, 4) != null;
2966
+ };
2967
+
2968
+
2969
+
2970
+
2971
+
2972
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2973
+ /**
2974
+ * Creates an object representation of this proto.
2975
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2976
+ * Optional fields that are not set will be set to undefined.
2977
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2978
+ * For the list of reserved names please see:
2979
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2980
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2981
+ * JSPB instance for transitional soy proto support:
2982
+ * http://goto/soy-param-migration
2983
+ * @return {!Object}
2984
+ */
2985
+ proto.cms.SignUpFormWidgetItem.prototype.toObject = function(opt_includeInstance) {
2986
+ return proto.cms.SignUpFormWidgetItem.toObject(opt_includeInstance, this);
2987
+ };
2988
+
2989
+
2990
+ /**
2991
+ * Static version of the {@see toObject} method.
2992
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2993
+ * the JSPB instance for transitional soy proto support:
2994
+ * http://goto/soy-param-migration
2995
+ * @param {!proto.cms.SignUpFormWidgetItem} msg The msg instance to transform.
2996
+ * @return {!Object}
2997
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2998
+ */
2999
+ proto.cms.SignUpFormWidgetItem.toObject = function(includeInstance, msg) {
3000
+ var f, obj = {
3001
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
3002
+ content: jspb.Message.getFieldWithDefault(msg, 2, "")
3003
+ };
3004
+
3005
+ if (includeInstance) {
3006
+ obj.$jspbMessageInstance = msg;
3007
+ }
3008
+ return obj;
3009
+ };
3010
+ }
3011
+
3012
+
3013
+ /**
3014
+ * Deserializes binary data (in protobuf wire format).
3015
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3016
+ * @return {!proto.cms.SignUpFormWidgetItem}
3017
+ */
3018
+ proto.cms.SignUpFormWidgetItem.deserializeBinary = function(bytes) {
3019
+ var reader = new jspb.BinaryReader(bytes);
3020
+ var msg = new proto.cms.SignUpFormWidgetItem;
3021
+ return proto.cms.SignUpFormWidgetItem.deserializeBinaryFromReader(msg, reader);
3022
+ };
3023
+
3024
+
3025
+ /**
3026
+ * Deserializes binary data (in protobuf wire format) from the
3027
+ * given reader into the given message object.
3028
+ * @param {!proto.cms.SignUpFormWidgetItem} msg The message object to deserialize into.
3029
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3030
+ * @return {!proto.cms.SignUpFormWidgetItem}
3031
+ */
3032
+ proto.cms.SignUpFormWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
3033
+ while (reader.nextField()) {
3034
+ if (reader.isEndGroup()) {
3035
+ break;
3036
+ }
3037
+ var field = reader.getFieldNumber();
3038
+ switch (field) {
3039
+ case 1:
3040
+ var value = /** @type {string} */ (reader.readString());
3041
+ msg.setGeo(value);
3042
+ break;
3043
+ case 2:
3044
+ var value = /** @type {string} */ (reader.readString());
3045
+ msg.setContent(value);
3046
+ break;
3047
+ default:
3048
+ reader.skipField();
3049
+ break;
3050
+ }
3051
+ }
3052
+ return msg;
3053
+ };
3054
+
3055
+
3056
+ /**
3057
+ * Serializes the message to binary data (in protobuf wire format).
3058
+ * @return {!Uint8Array}
3059
+ */
3060
+ proto.cms.SignUpFormWidgetItem.prototype.serializeBinary = function() {
3061
+ var writer = new jspb.BinaryWriter();
3062
+ proto.cms.SignUpFormWidgetItem.serializeBinaryToWriter(this, writer);
3063
+ return writer.getResultBuffer();
3064
+ };
3065
+
3066
+
3067
+ /**
3068
+ * Serializes the given message to binary data (in protobuf wire
3069
+ * format), writing to the given BinaryWriter.
3070
+ * @param {!proto.cms.SignUpFormWidgetItem} message
3071
+ * @param {!jspb.BinaryWriter} writer
3072
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3073
+ */
3074
+ proto.cms.SignUpFormWidgetItem.serializeBinaryToWriter = function(message, writer) {
3075
+ var f = undefined;
3076
+ f = message.getGeo();
3077
+ if (f.length > 0) {
3078
+ writer.writeString(
3079
+ 1,
3080
+ f
3081
+ );
3082
+ }
3083
+ f = message.getContent();
3084
+ if (f.length > 0) {
3085
+ writer.writeString(
3086
+ 2,
3087
+ f
3088
+ );
3089
+ }
3090
+ };
3091
+
3092
+
3093
+ /**
3094
+ * optional string geo = 1;
3095
+ * @return {string}
3096
+ */
3097
+ proto.cms.SignUpFormWidgetItem.prototype.getGeo = function() {
3098
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3099
+ };
3100
+
3101
+
3102
+ /**
3103
+ * @param {string} value
3104
+ * @return {!proto.cms.SignUpFormWidgetItem} returns this
3105
+ */
3106
+ proto.cms.SignUpFormWidgetItem.prototype.setGeo = function(value) {
3107
+ return jspb.Message.setProto3StringField(this, 1, value);
3108
+ };
3109
+
3110
+
3111
+ /**
3112
+ * optional string content = 2;
3113
+ * @return {string}
3114
+ */
3115
+ proto.cms.SignUpFormWidgetItem.prototype.getContent = function() {
3116
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3117
+ };
3118
+
3119
+
3120
+ /**
3121
+ * @param {string} value
3122
+ * @return {!proto.cms.SignUpFormWidgetItem} returns this
3123
+ */
3124
+ proto.cms.SignUpFormWidgetItem.prototype.setContent = function(value) {
3125
+ return jspb.Message.setProto3StringField(this, 2, value);
3126
+ };
3127
+
3128
+
3129
+
2730
3130
  /**
2731
3131
  * Oneof group definitions for this message. Each group defines the field
2732
3132
  * numbers belonging to that group. When of these fields' value is set, all
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.202",
3
+ "version": "1.0.203",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {