protobuf-platform 1.2.81 → 1.2.82

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.
@@ -21,7 +21,7 @@ service Notification {
21
21
  rpc updateMailTemplatesInBunch(ItemsBunchRequest) returns (MailTemplateStatusResponse);
22
22
  rpc getMailTypes(PaginationRequest) returns (MailTypesResponse);
23
23
  rpc setMailTemplateTranslation(MailTemplateTranslationRequest) returns (MailTemplateStatusResponse);
24
- rpc getMailTemplateTranslation(GetMailTemplateTranslationRequest) returns (MailTemplateStatusResponse);
24
+ rpc getMailTemplateTranslation(GetMailTemplateTranslationRequest) returns (MailTemplateTranslationResponse);
25
25
  //Users
26
26
  rpc sendNotificationToUsers(SendNotificationRequest) returns (NotificationStatusResponse);
27
27
  rpc getNotificationForParticularUser(PaginationRequest) returns (UserNotificationItemsResponse);
@@ -183,4 +183,10 @@ message MailTemplateTranslationRequest {
183
183
  message GetMailTemplateTranslationRequest {
184
184
  int32 template_id = 1;
185
185
  string locale = 2;
186
+ }
187
+ message MailTemplateTranslationResponse {
188
+ optional string title = 1;
189
+ optional string content = 2;
190
+ optional int32 is_active = 3;
191
+ optional string locale = 4;
186
192
  }
@@ -125,6 +125,17 @@ function deserialize_notification_MailTemplateTranslationRequest(buffer_arg) {
125
125
  return notification_pb.MailTemplateTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
126
126
  }
127
127
 
128
+ function serialize_notification_MailTemplateTranslationResponse(arg) {
129
+ if (!(arg instanceof notification_pb.MailTemplateTranslationResponse)) {
130
+ throw new Error('Expected argument of type notification.MailTemplateTranslationResponse');
131
+ }
132
+ return Buffer.from(arg.serializeBinary());
133
+ }
134
+
135
+ function deserialize_notification_MailTemplateTranslationResponse(buffer_arg) {
136
+ return notification_pb.MailTemplateTranslationResponse.deserializeBinary(new Uint8Array(buffer_arg));
137
+ }
138
+
128
139
  function serialize_notification_MailTypesResponse(arg) {
129
140
  if (!(arg instanceof notification_pb.MailTypesResponse)) {
130
141
  throw new Error('Expected argument of type notification.MailTypesResponse');
@@ -442,11 +453,11 @@ createSingleMailTemplate: {
442
453
  requestStream: false,
443
454
  responseStream: false,
444
455
  requestType: notification_pb.GetMailTemplateTranslationRequest,
445
- responseType: notification_pb.MailTemplateStatusResponse,
456
+ responseType: notification_pb.MailTemplateTranslationResponse,
446
457
  requestSerialize: serialize_notification_GetMailTemplateTranslationRequest,
447
458
  requestDeserialize: deserialize_notification_GetMailTemplateTranslationRequest,
448
- responseSerialize: serialize_notification_MailTemplateStatusResponse,
449
- responseDeserialize: deserialize_notification_MailTemplateStatusResponse,
459
+ responseSerialize: serialize_notification_MailTemplateTranslationResponse,
460
+ responseDeserialize: deserialize_notification_MailTemplateTranslationResponse,
450
461
  },
451
462
  // Users
452
463
  sendNotificationToUsers: {
@@ -36,6 +36,7 @@ goog.exportSymbol('proto.notification.MailTemplateResponse', null, global);
36
36
  goog.exportSymbol('proto.notification.MailTemplateSearchRequest', null, global);
37
37
  goog.exportSymbol('proto.notification.MailTemplateStatusResponse', null, global);
38
38
  goog.exportSymbol('proto.notification.MailTemplateTranslationRequest', null, global);
39
+ goog.exportSymbol('proto.notification.MailTemplateTranslationResponse', null, global);
39
40
  goog.exportSymbol('proto.notification.MailTypesResponse', null, global);
40
41
  goog.exportSymbol('proto.notification.NotificationItem', null, global);
41
42
  goog.exportSymbol('proto.notification.NotificationItemsResponse', null, global);
@@ -660,6 +661,27 @@ if (goog.DEBUG && !COMPILED) {
660
661
  */
661
662
  proto.notification.GetMailTemplateTranslationRequest.displayName = 'proto.notification.GetMailTemplateTranslationRequest';
662
663
  }
664
+ /**
665
+ * Generated by JsPbCodeGenerator.
666
+ * @param {Array=} opt_data Optional initial data array, typically from a
667
+ * server response, or constructed directly in Javascript. The array is used
668
+ * in place and becomes part of the constructed object. It is not cloned.
669
+ * If no data is provided, the constructed object will be empty, but still
670
+ * valid.
671
+ * @extends {jspb.Message}
672
+ * @constructor
673
+ */
674
+ proto.notification.MailTemplateTranslationResponse = function(opt_data) {
675
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
676
+ };
677
+ goog.inherits(proto.notification.MailTemplateTranslationResponse, jspb.Message);
678
+ if (goog.DEBUG && !COMPILED) {
679
+ /**
680
+ * @public
681
+ * @override
682
+ */
683
+ proto.notification.MailTemplateTranslationResponse.displayName = 'proto.notification.MailTemplateTranslationResponse';
684
+ }
663
685
 
664
686
 
665
687
 
@@ -7587,4 +7609,296 @@ proto.notification.GetMailTemplateTranslationRequest.prototype.setLocale = funct
7587
7609
  };
7588
7610
 
7589
7611
 
7612
+
7613
+
7614
+
7615
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7616
+ /**
7617
+ * Creates an object representation of this proto.
7618
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7619
+ * Optional fields that are not set will be set to undefined.
7620
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7621
+ * For the list of reserved names please see:
7622
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7623
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7624
+ * JSPB instance for transitional soy proto support:
7625
+ * http://goto/soy-param-migration
7626
+ * @return {!Object}
7627
+ */
7628
+ proto.notification.MailTemplateTranslationResponse.prototype.toObject = function(opt_includeInstance) {
7629
+ return proto.notification.MailTemplateTranslationResponse.toObject(opt_includeInstance, this);
7630
+ };
7631
+
7632
+
7633
+ /**
7634
+ * Static version of the {@see toObject} method.
7635
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7636
+ * the JSPB instance for transitional soy proto support:
7637
+ * http://goto/soy-param-migration
7638
+ * @param {!proto.notification.MailTemplateTranslationResponse} msg The msg instance to transform.
7639
+ * @return {!Object}
7640
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7641
+ */
7642
+ proto.notification.MailTemplateTranslationResponse.toObject = function(includeInstance, msg) {
7643
+ var f, obj = {
7644
+ title: jspb.Message.getFieldWithDefault(msg, 1, ""),
7645
+ content: jspb.Message.getFieldWithDefault(msg, 2, ""),
7646
+ isActive: jspb.Message.getFieldWithDefault(msg, 3, 0),
7647
+ locale: jspb.Message.getFieldWithDefault(msg, 4, "")
7648
+ };
7649
+
7650
+ if (includeInstance) {
7651
+ obj.$jspbMessageInstance = msg;
7652
+ }
7653
+ return obj;
7654
+ };
7655
+ }
7656
+
7657
+
7658
+ /**
7659
+ * Deserializes binary data (in protobuf wire format).
7660
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7661
+ * @return {!proto.notification.MailTemplateTranslationResponse}
7662
+ */
7663
+ proto.notification.MailTemplateTranslationResponse.deserializeBinary = function(bytes) {
7664
+ var reader = new jspb.BinaryReader(bytes);
7665
+ var msg = new proto.notification.MailTemplateTranslationResponse;
7666
+ return proto.notification.MailTemplateTranslationResponse.deserializeBinaryFromReader(msg, reader);
7667
+ };
7668
+
7669
+
7670
+ /**
7671
+ * Deserializes binary data (in protobuf wire format) from the
7672
+ * given reader into the given message object.
7673
+ * @param {!proto.notification.MailTemplateTranslationResponse} msg The message object to deserialize into.
7674
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7675
+ * @return {!proto.notification.MailTemplateTranslationResponse}
7676
+ */
7677
+ proto.notification.MailTemplateTranslationResponse.deserializeBinaryFromReader = function(msg, reader) {
7678
+ while (reader.nextField()) {
7679
+ if (reader.isEndGroup()) {
7680
+ break;
7681
+ }
7682
+ var field = reader.getFieldNumber();
7683
+ switch (field) {
7684
+ case 1:
7685
+ var value = /** @type {string} */ (reader.readString());
7686
+ msg.setTitle(value);
7687
+ break;
7688
+ case 2:
7689
+ var value = /** @type {string} */ (reader.readString());
7690
+ msg.setContent(value);
7691
+ break;
7692
+ case 3:
7693
+ var value = /** @type {number} */ (reader.readInt32());
7694
+ msg.setIsActive(value);
7695
+ break;
7696
+ case 4:
7697
+ var value = /** @type {string} */ (reader.readString());
7698
+ msg.setLocale(value);
7699
+ break;
7700
+ default:
7701
+ reader.skipField();
7702
+ break;
7703
+ }
7704
+ }
7705
+ return msg;
7706
+ };
7707
+
7708
+
7709
+ /**
7710
+ * Serializes the message to binary data (in protobuf wire format).
7711
+ * @return {!Uint8Array}
7712
+ */
7713
+ proto.notification.MailTemplateTranslationResponse.prototype.serializeBinary = function() {
7714
+ var writer = new jspb.BinaryWriter();
7715
+ proto.notification.MailTemplateTranslationResponse.serializeBinaryToWriter(this, writer);
7716
+ return writer.getResultBuffer();
7717
+ };
7718
+
7719
+
7720
+ /**
7721
+ * Serializes the given message to binary data (in protobuf wire
7722
+ * format), writing to the given BinaryWriter.
7723
+ * @param {!proto.notification.MailTemplateTranslationResponse} message
7724
+ * @param {!jspb.BinaryWriter} writer
7725
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7726
+ */
7727
+ proto.notification.MailTemplateTranslationResponse.serializeBinaryToWriter = function(message, writer) {
7728
+ var f = undefined;
7729
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
7730
+ if (f != null) {
7731
+ writer.writeString(
7732
+ 1,
7733
+ f
7734
+ );
7735
+ }
7736
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
7737
+ if (f != null) {
7738
+ writer.writeString(
7739
+ 2,
7740
+ f
7741
+ );
7742
+ }
7743
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
7744
+ if (f != null) {
7745
+ writer.writeInt32(
7746
+ 3,
7747
+ f
7748
+ );
7749
+ }
7750
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
7751
+ if (f != null) {
7752
+ writer.writeString(
7753
+ 4,
7754
+ f
7755
+ );
7756
+ }
7757
+ };
7758
+
7759
+
7760
+ /**
7761
+ * optional string title = 1;
7762
+ * @return {string}
7763
+ */
7764
+ proto.notification.MailTemplateTranslationResponse.prototype.getTitle = function() {
7765
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7766
+ };
7767
+
7768
+
7769
+ /**
7770
+ * @param {string} value
7771
+ * @return {!proto.notification.MailTemplateTranslationResponse} returns this
7772
+ */
7773
+ proto.notification.MailTemplateTranslationResponse.prototype.setTitle = function(value) {
7774
+ return jspb.Message.setField(this, 1, value);
7775
+ };
7776
+
7777
+
7778
+ /**
7779
+ * Clears the field making it undefined.
7780
+ * @return {!proto.notification.MailTemplateTranslationResponse} returns this
7781
+ */
7782
+ proto.notification.MailTemplateTranslationResponse.prototype.clearTitle = function() {
7783
+ return jspb.Message.setField(this, 1, undefined);
7784
+ };
7785
+
7786
+
7787
+ /**
7788
+ * Returns whether this field is set.
7789
+ * @return {boolean}
7790
+ */
7791
+ proto.notification.MailTemplateTranslationResponse.prototype.hasTitle = function() {
7792
+ return jspb.Message.getField(this, 1) != null;
7793
+ };
7794
+
7795
+
7796
+ /**
7797
+ * optional string content = 2;
7798
+ * @return {string}
7799
+ */
7800
+ proto.notification.MailTemplateTranslationResponse.prototype.getContent = function() {
7801
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7802
+ };
7803
+
7804
+
7805
+ /**
7806
+ * @param {string} value
7807
+ * @return {!proto.notification.MailTemplateTranslationResponse} returns this
7808
+ */
7809
+ proto.notification.MailTemplateTranslationResponse.prototype.setContent = function(value) {
7810
+ return jspb.Message.setField(this, 2, value);
7811
+ };
7812
+
7813
+
7814
+ /**
7815
+ * Clears the field making it undefined.
7816
+ * @return {!proto.notification.MailTemplateTranslationResponse} returns this
7817
+ */
7818
+ proto.notification.MailTemplateTranslationResponse.prototype.clearContent = function() {
7819
+ return jspb.Message.setField(this, 2, undefined);
7820
+ };
7821
+
7822
+
7823
+ /**
7824
+ * Returns whether this field is set.
7825
+ * @return {boolean}
7826
+ */
7827
+ proto.notification.MailTemplateTranslationResponse.prototype.hasContent = function() {
7828
+ return jspb.Message.getField(this, 2) != null;
7829
+ };
7830
+
7831
+
7832
+ /**
7833
+ * optional int32 is_active = 3;
7834
+ * @return {number}
7835
+ */
7836
+ proto.notification.MailTemplateTranslationResponse.prototype.getIsActive = function() {
7837
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
7838
+ };
7839
+
7840
+
7841
+ /**
7842
+ * @param {number} value
7843
+ * @return {!proto.notification.MailTemplateTranslationResponse} returns this
7844
+ */
7845
+ proto.notification.MailTemplateTranslationResponse.prototype.setIsActive = function(value) {
7846
+ return jspb.Message.setField(this, 3, value);
7847
+ };
7848
+
7849
+
7850
+ /**
7851
+ * Clears the field making it undefined.
7852
+ * @return {!proto.notification.MailTemplateTranslationResponse} returns this
7853
+ */
7854
+ proto.notification.MailTemplateTranslationResponse.prototype.clearIsActive = function() {
7855
+ return jspb.Message.setField(this, 3, undefined);
7856
+ };
7857
+
7858
+
7859
+ /**
7860
+ * Returns whether this field is set.
7861
+ * @return {boolean}
7862
+ */
7863
+ proto.notification.MailTemplateTranslationResponse.prototype.hasIsActive = function() {
7864
+ return jspb.Message.getField(this, 3) != null;
7865
+ };
7866
+
7867
+
7868
+ /**
7869
+ * optional string locale = 4;
7870
+ * @return {string}
7871
+ */
7872
+ proto.notification.MailTemplateTranslationResponse.prototype.getLocale = function() {
7873
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7874
+ };
7875
+
7876
+
7877
+ /**
7878
+ * @param {string} value
7879
+ * @return {!proto.notification.MailTemplateTranslationResponse} returns this
7880
+ */
7881
+ proto.notification.MailTemplateTranslationResponse.prototype.setLocale = function(value) {
7882
+ return jspb.Message.setField(this, 4, value);
7883
+ };
7884
+
7885
+
7886
+ /**
7887
+ * Clears the field making it undefined.
7888
+ * @return {!proto.notification.MailTemplateTranslationResponse} returns this
7889
+ */
7890
+ proto.notification.MailTemplateTranslationResponse.prototype.clearLocale = function() {
7891
+ return jspb.Message.setField(this, 4, undefined);
7892
+ };
7893
+
7894
+
7895
+ /**
7896
+ * Returns whether this field is set.
7897
+ * @return {boolean}
7898
+ */
7899
+ proto.notification.MailTemplateTranslationResponse.prototype.hasLocale = function() {
7900
+ return jspb.Message.getField(this, 4) != null;
7901
+ };
7902
+
7903
+
7590
7904
  goog.object.extend(exports, proto.notification);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.81",
3
+ "version": "1.2.82",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {