protobuf-platform 1.2.79 → 1.2.80
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.
|
@@ -19,6 +19,7 @@ service Notification {
|
|
|
19
19
|
rpc deleteSingleMailTemplate(GetMailTemplateRequest) returns (MailTemplateStatusResponse);
|
|
20
20
|
rpc readListMailTemplates(PaginationRequest) returns (MailTemplateItemsResponse);
|
|
21
21
|
rpc updateMailTemplatesInBunch(ItemsBunchRequest) returns (MailTemplateStatusResponse);
|
|
22
|
+
rpc getMailTypes(PaginationRequest) returns (MailTypesResponse);
|
|
22
23
|
//Users
|
|
23
24
|
rpc sendNotificationToUsers(SendNotificationRequest) returns (NotificationStatusResponse);
|
|
24
25
|
rpc getNotificationForParticularUser(PaginationRequest) returns (UserNotificationItemsResponse);
|
|
@@ -166,4 +167,7 @@ message MailTemplateItemsResponse {
|
|
|
166
167
|
repeated MailTemplateItem items = 1;
|
|
167
168
|
optional int32 total_pages = 2;
|
|
168
169
|
optional int32 total_items = 3;
|
|
170
|
+
}
|
|
171
|
+
message MailTypesResponse {
|
|
172
|
+
repeated string types = 1;
|
|
169
173
|
}
|
|
@@ -103,6 +103,17 @@ function deserialize_notification_MailTemplateStatusResponse(buffer_arg) {
|
|
|
103
103
|
return notification_pb.MailTemplateStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
function serialize_notification_MailTypesResponse(arg) {
|
|
107
|
+
if (!(arg instanceof notification_pb.MailTypesResponse)) {
|
|
108
|
+
throw new Error('Expected argument of type notification.MailTypesResponse');
|
|
109
|
+
}
|
|
110
|
+
return Buffer.from(arg.serializeBinary());
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function deserialize_notification_MailTypesResponse(buffer_arg) {
|
|
114
|
+
return notification_pb.MailTypesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
115
|
+
}
|
|
116
|
+
|
|
106
117
|
function serialize_notification_NotificationItemsResponse(arg) {
|
|
107
118
|
if (!(arg instanceof notification_pb.NotificationItemsResponse)) {
|
|
108
119
|
throw new Error('Expected argument of type notification.NotificationItemsResponse');
|
|
@@ -382,6 +393,17 @@ createSingleMailTemplate: {
|
|
|
382
393
|
responseSerialize: serialize_notification_MailTemplateStatusResponse,
|
|
383
394
|
responseDeserialize: deserialize_notification_MailTemplateStatusResponse,
|
|
384
395
|
},
|
|
396
|
+
getMailTypes: {
|
|
397
|
+
path: '/notification.Notification/getMailTypes',
|
|
398
|
+
requestStream: false,
|
|
399
|
+
responseStream: false,
|
|
400
|
+
requestType: notification_pb.PaginationRequest,
|
|
401
|
+
responseType: notification_pb.MailTypesResponse,
|
|
402
|
+
requestSerialize: serialize_notification_PaginationRequest,
|
|
403
|
+
requestDeserialize: deserialize_notification_PaginationRequest,
|
|
404
|
+
responseSerialize: serialize_notification_MailTypesResponse,
|
|
405
|
+
responseDeserialize: deserialize_notification_MailTypesResponse,
|
|
406
|
+
},
|
|
385
407
|
// Users
|
|
386
408
|
sendNotificationToUsers: {
|
|
387
409
|
path: '/notification.Notification/sendNotificationToUsers',
|
|
@@ -34,6 +34,7 @@ goog.exportSymbol('proto.notification.MailTemplateItemsResponse', null, global);
|
|
|
34
34
|
goog.exportSymbol('proto.notification.MailTemplateResponse', null, global);
|
|
35
35
|
goog.exportSymbol('proto.notification.MailTemplateSearchRequest', null, global);
|
|
36
36
|
goog.exportSymbol('proto.notification.MailTemplateStatusResponse', null, global);
|
|
37
|
+
goog.exportSymbol('proto.notification.MailTypesResponse', null, global);
|
|
37
38
|
goog.exportSymbol('proto.notification.NotificationItem', null, global);
|
|
38
39
|
goog.exportSymbol('proto.notification.NotificationItemsResponse', null, global);
|
|
39
40
|
goog.exportSymbol('proto.notification.NotificationRequest', null, global);
|
|
@@ -594,6 +595,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
594
595
|
*/
|
|
595
596
|
proto.notification.MailTemplateItemsResponse.displayName = 'proto.notification.MailTemplateItemsResponse';
|
|
596
597
|
}
|
|
598
|
+
/**
|
|
599
|
+
* Generated by JsPbCodeGenerator.
|
|
600
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
601
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
602
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
603
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
604
|
+
* valid.
|
|
605
|
+
* @extends {jspb.Message}
|
|
606
|
+
* @constructor
|
|
607
|
+
*/
|
|
608
|
+
proto.notification.MailTypesResponse = function(opt_data) {
|
|
609
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.notification.MailTypesResponse.repeatedFields_, null);
|
|
610
|
+
};
|
|
611
|
+
goog.inherits(proto.notification.MailTypesResponse, jspb.Message);
|
|
612
|
+
if (goog.DEBUG && !COMPILED) {
|
|
613
|
+
/**
|
|
614
|
+
* @public
|
|
615
|
+
* @override
|
|
616
|
+
*/
|
|
617
|
+
proto.notification.MailTypesResponse.displayName = 'proto.notification.MailTypesResponse';
|
|
618
|
+
}
|
|
597
619
|
|
|
598
620
|
|
|
599
621
|
|
|
@@ -6865,4 +6887,160 @@ proto.notification.MailTemplateItemsResponse.prototype.hasTotalItems = function(
|
|
|
6865
6887
|
};
|
|
6866
6888
|
|
|
6867
6889
|
|
|
6890
|
+
|
|
6891
|
+
/**
|
|
6892
|
+
* List of repeated fields within this message type.
|
|
6893
|
+
* @private {!Array<number>}
|
|
6894
|
+
* @const
|
|
6895
|
+
*/
|
|
6896
|
+
proto.notification.MailTypesResponse.repeatedFields_ = [1];
|
|
6897
|
+
|
|
6898
|
+
|
|
6899
|
+
|
|
6900
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6901
|
+
/**
|
|
6902
|
+
* Creates an object representation of this proto.
|
|
6903
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6904
|
+
* Optional fields that are not set will be set to undefined.
|
|
6905
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6906
|
+
* For the list of reserved names please see:
|
|
6907
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6908
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6909
|
+
* JSPB instance for transitional soy proto support:
|
|
6910
|
+
* http://goto/soy-param-migration
|
|
6911
|
+
* @return {!Object}
|
|
6912
|
+
*/
|
|
6913
|
+
proto.notification.MailTypesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6914
|
+
return proto.notification.MailTypesResponse.toObject(opt_includeInstance, this);
|
|
6915
|
+
};
|
|
6916
|
+
|
|
6917
|
+
|
|
6918
|
+
/**
|
|
6919
|
+
* Static version of the {@see toObject} method.
|
|
6920
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6921
|
+
* the JSPB instance for transitional soy proto support:
|
|
6922
|
+
* http://goto/soy-param-migration
|
|
6923
|
+
* @param {!proto.notification.MailTypesResponse} msg The msg instance to transform.
|
|
6924
|
+
* @return {!Object}
|
|
6925
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6926
|
+
*/
|
|
6927
|
+
proto.notification.MailTypesResponse.toObject = function(includeInstance, msg) {
|
|
6928
|
+
var f, obj = {
|
|
6929
|
+
typesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
6930
|
+
};
|
|
6931
|
+
|
|
6932
|
+
if (includeInstance) {
|
|
6933
|
+
obj.$jspbMessageInstance = msg;
|
|
6934
|
+
}
|
|
6935
|
+
return obj;
|
|
6936
|
+
};
|
|
6937
|
+
}
|
|
6938
|
+
|
|
6939
|
+
|
|
6940
|
+
/**
|
|
6941
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6942
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6943
|
+
* @return {!proto.notification.MailTypesResponse}
|
|
6944
|
+
*/
|
|
6945
|
+
proto.notification.MailTypesResponse.deserializeBinary = function(bytes) {
|
|
6946
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6947
|
+
var msg = new proto.notification.MailTypesResponse;
|
|
6948
|
+
return proto.notification.MailTypesResponse.deserializeBinaryFromReader(msg, reader);
|
|
6949
|
+
};
|
|
6950
|
+
|
|
6951
|
+
|
|
6952
|
+
/**
|
|
6953
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6954
|
+
* given reader into the given message object.
|
|
6955
|
+
* @param {!proto.notification.MailTypesResponse} msg The message object to deserialize into.
|
|
6956
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6957
|
+
* @return {!proto.notification.MailTypesResponse}
|
|
6958
|
+
*/
|
|
6959
|
+
proto.notification.MailTypesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
6960
|
+
while (reader.nextField()) {
|
|
6961
|
+
if (reader.isEndGroup()) {
|
|
6962
|
+
break;
|
|
6963
|
+
}
|
|
6964
|
+
var field = reader.getFieldNumber();
|
|
6965
|
+
switch (field) {
|
|
6966
|
+
case 1:
|
|
6967
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6968
|
+
msg.addTypes(value);
|
|
6969
|
+
break;
|
|
6970
|
+
default:
|
|
6971
|
+
reader.skipField();
|
|
6972
|
+
break;
|
|
6973
|
+
}
|
|
6974
|
+
}
|
|
6975
|
+
return msg;
|
|
6976
|
+
};
|
|
6977
|
+
|
|
6978
|
+
|
|
6979
|
+
/**
|
|
6980
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6981
|
+
* @return {!Uint8Array}
|
|
6982
|
+
*/
|
|
6983
|
+
proto.notification.MailTypesResponse.prototype.serializeBinary = function() {
|
|
6984
|
+
var writer = new jspb.BinaryWriter();
|
|
6985
|
+
proto.notification.MailTypesResponse.serializeBinaryToWriter(this, writer);
|
|
6986
|
+
return writer.getResultBuffer();
|
|
6987
|
+
};
|
|
6988
|
+
|
|
6989
|
+
|
|
6990
|
+
/**
|
|
6991
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6992
|
+
* format), writing to the given BinaryWriter.
|
|
6993
|
+
* @param {!proto.notification.MailTypesResponse} message
|
|
6994
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6995
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6996
|
+
*/
|
|
6997
|
+
proto.notification.MailTypesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
6998
|
+
var f = undefined;
|
|
6999
|
+
f = message.getTypesList();
|
|
7000
|
+
if (f.length > 0) {
|
|
7001
|
+
writer.writeRepeatedString(
|
|
7002
|
+
1,
|
|
7003
|
+
f
|
|
7004
|
+
);
|
|
7005
|
+
}
|
|
7006
|
+
};
|
|
7007
|
+
|
|
7008
|
+
|
|
7009
|
+
/**
|
|
7010
|
+
* repeated string types = 1;
|
|
7011
|
+
* @return {!Array<string>}
|
|
7012
|
+
*/
|
|
7013
|
+
proto.notification.MailTypesResponse.prototype.getTypesList = function() {
|
|
7014
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
7015
|
+
};
|
|
7016
|
+
|
|
7017
|
+
|
|
7018
|
+
/**
|
|
7019
|
+
* @param {!Array<string>} value
|
|
7020
|
+
* @return {!proto.notification.MailTypesResponse} returns this
|
|
7021
|
+
*/
|
|
7022
|
+
proto.notification.MailTypesResponse.prototype.setTypesList = function(value) {
|
|
7023
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
7024
|
+
};
|
|
7025
|
+
|
|
7026
|
+
|
|
7027
|
+
/**
|
|
7028
|
+
* @param {string} value
|
|
7029
|
+
* @param {number=} opt_index
|
|
7030
|
+
* @return {!proto.notification.MailTypesResponse} returns this
|
|
7031
|
+
*/
|
|
7032
|
+
proto.notification.MailTypesResponse.prototype.addTypes = function(value, opt_index) {
|
|
7033
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
7034
|
+
};
|
|
7035
|
+
|
|
7036
|
+
|
|
7037
|
+
/**
|
|
7038
|
+
* Clears the list making it empty but non-null.
|
|
7039
|
+
* @return {!proto.notification.MailTypesResponse} returns this
|
|
7040
|
+
*/
|
|
7041
|
+
proto.notification.MailTypesResponse.prototype.clearTypesList = function() {
|
|
7042
|
+
return this.setTypesList([]);
|
|
7043
|
+
};
|
|
7044
|
+
|
|
7045
|
+
|
|
6868
7046
|
goog.object.extend(exports, proto.notification);
|