protobuf-platform 1.2.312 → 1.2.315
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/notification/notification.proto +13 -0
- package/notification/notification_grpc_pb.js +66 -0
- package/notification/notification_pb.js +486 -0
- package/package.json +1 -1
- package/user/user.proto +4 -3
- package/user/user_pb.js +47 -17
|
@@ -27,6 +27,9 @@ service Notification {
|
|
|
27
27
|
rpc getNotificationForParticularUser(PaginationRequest) returns (UserNotificationItemsResponse);
|
|
28
28
|
rpc getNotificationsCountForUser(NotificationSearchRequest) returns (UserNotificationsCountResponse);
|
|
29
29
|
rpc markUserNotification(NotificationSearchRequest) returns (UserNotificationsCountResponse);
|
|
30
|
+
rpc readAllUserNotifications(ReadAllUserNotificationsRequest) returns (UserNotificationsCountResponse);
|
|
31
|
+
rpc deleteAllUserNotifications(DeleteAllUserNotificationsRequest) returns (NotificationStatusResponse);
|
|
32
|
+
rpc deleteUserNotificationById(DeleteUserNotificationByIdRequest) returns (NotificationStatusResponse);
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
message PingRequest { string ping = 1; }
|
|
@@ -112,6 +115,16 @@ message NotificationItemsResponse {
|
|
|
112
115
|
message UserNotificationsCountResponse {
|
|
113
116
|
int32 count = 1;
|
|
114
117
|
}
|
|
118
|
+
message ReadAllUserNotificationsRequest {
|
|
119
|
+
int32 user_id = 1;
|
|
120
|
+
}
|
|
121
|
+
message DeleteAllUserNotificationsRequest {
|
|
122
|
+
int32 user_id = 1;
|
|
123
|
+
}
|
|
124
|
+
message DeleteUserNotificationByIdRequest {
|
|
125
|
+
int32 user_id = 1;
|
|
126
|
+
int32 user_notification_id = 2;
|
|
127
|
+
}
|
|
115
128
|
/* ===== MailTemplates (email) ===== */
|
|
116
129
|
|
|
117
130
|
// Search filters for list endpoint
|
|
@@ -4,6 +4,28 @@
|
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var notification_pb = require('./notification_pb.js');
|
|
6
6
|
|
|
7
|
+
function serialize_notification_DeleteAllUserNotificationsRequest(arg) {
|
|
8
|
+
if (!(arg instanceof notification_pb.DeleteAllUserNotificationsRequest)) {
|
|
9
|
+
throw new Error('Expected argument of type notification.DeleteAllUserNotificationsRequest');
|
|
10
|
+
}
|
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function deserialize_notification_DeleteAllUserNotificationsRequest(buffer_arg) {
|
|
15
|
+
return notification_pb.DeleteAllUserNotificationsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function serialize_notification_DeleteUserNotificationByIdRequest(arg) {
|
|
19
|
+
if (!(arg instanceof notification_pb.DeleteUserNotificationByIdRequest)) {
|
|
20
|
+
throw new Error('Expected argument of type notification.DeleteUserNotificationByIdRequest');
|
|
21
|
+
}
|
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function deserialize_notification_DeleteUserNotificationByIdRequest(buffer_arg) {
|
|
26
|
+
return notification_pb.DeleteUserNotificationByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
|
+
}
|
|
28
|
+
|
|
7
29
|
function serialize_notification_File(arg) {
|
|
8
30
|
if (!(arg instanceof notification_pb.File)) {
|
|
9
31
|
throw new Error('Expected argument of type notification.File');
|
|
@@ -235,6 +257,17 @@ function deserialize_notification_PongResponse(buffer_arg) {
|
|
|
235
257
|
return notification_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
236
258
|
}
|
|
237
259
|
|
|
260
|
+
function serialize_notification_ReadAllUserNotificationsRequest(arg) {
|
|
261
|
+
if (!(arg instanceof notification_pb.ReadAllUserNotificationsRequest)) {
|
|
262
|
+
throw new Error('Expected argument of type notification.ReadAllUserNotificationsRequest');
|
|
263
|
+
}
|
|
264
|
+
return Buffer.from(arg.serializeBinary());
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
function deserialize_notification_ReadAllUserNotificationsRequest(buffer_arg) {
|
|
268
|
+
return notification_pb.ReadAllUserNotificationsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
269
|
+
}
|
|
270
|
+
|
|
238
271
|
function serialize_notification_SendNotificationRequest(arg) {
|
|
239
272
|
if (!(arg instanceof notification_pb.SendNotificationRequest)) {
|
|
240
273
|
throw new Error('Expected argument of type notification.SendNotificationRequest');
|
|
@@ -504,6 +537,39 @@ sendNotificationToUsers: {
|
|
|
504
537
|
responseSerialize: serialize_notification_UserNotificationsCountResponse,
|
|
505
538
|
responseDeserialize: deserialize_notification_UserNotificationsCountResponse,
|
|
506
539
|
},
|
|
540
|
+
readAllUserNotifications: {
|
|
541
|
+
path: '/notification.Notification/readAllUserNotifications',
|
|
542
|
+
requestStream: false,
|
|
543
|
+
responseStream: false,
|
|
544
|
+
requestType: notification_pb.ReadAllUserNotificationsRequest,
|
|
545
|
+
responseType: notification_pb.UserNotificationsCountResponse,
|
|
546
|
+
requestSerialize: serialize_notification_ReadAllUserNotificationsRequest,
|
|
547
|
+
requestDeserialize: deserialize_notification_ReadAllUserNotificationsRequest,
|
|
548
|
+
responseSerialize: serialize_notification_UserNotificationsCountResponse,
|
|
549
|
+
responseDeserialize: deserialize_notification_UserNotificationsCountResponse,
|
|
550
|
+
},
|
|
551
|
+
deleteAllUserNotifications: {
|
|
552
|
+
path: '/notification.Notification/deleteAllUserNotifications',
|
|
553
|
+
requestStream: false,
|
|
554
|
+
responseStream: false,
|
|
555
|
+
requestType: notification_pb.DeleteAllUserNotificationsRequest,
|
|
556
|
+
responseType: notification_pb.NotificationStatusResponse,
|
|
557
|
+
requestSerialize: serialize_notification_DeleteAllUserNotificationsRequest,
|
|
558
|
+
requestDeserialize: deserialize_notification_DeleteAllUserNotificationsRequest,
|
|
559
|
+
responseSerialize: serialize_notification_NotificationStatusResponse,
|
|
560
|
+
responseDeserialize: deserialize_notification_NotificationStatusResponse,
|
|
561
|
+
},
|
|
562
|
+
deleteUserNotificationById: {
|
|
563
|
+
path: '/notification.Notification/deleteUserNotificationById',
|
|
564
|
+
requestStream: false,
|
|
565
|
+
responseStream: false,
|
|
566
|
+
requestType: notification_pb.DeleteUserNotificationByIdRequest,
|
|
567
|
+
responseType: notification_pb.NotificationStatusResponse,
|
|
568
|
+
requestSerialize: serialize_notification_DeleteUserNotificationByIdRequest,
|
|
569
|
+
requestDeserialize: deserialize_notification_DeleteUserNotificationByIdRequest,
|
|
570
|
+
responseSerialize: serialize_notification_NotificationStatusResponse,
|
|
571
|
+
responseDeserialize: deserialize_notification_NotificationStatusResponse,
|
|
572
|
+
},
|
|
507
573
|
};
|
|
508
574
|
|
|
509
575
|
exports.NotificationClient = grpc.makeGenericClientConstructor(NotificationService, 'Notification');
|
|
@@ -21,6 +21,8 @@ var global = (function() {
|
|
|
21
21
|
return Function('return this')();
|
|
22
22
|
}.call(null));
|
|
23
23
|
|
|
24
|
+
goog.exportSymbol('proto.notification.DeleteAllUserNotificationsRequest', null, global);
|
|
25
|
+
goog.exportSymbol('proto.notification.DeleteUserNotificationByIdRequest', null, global);
|
|
24
26
|
goog.exportSymbol('proto.notification.File', null, global);
|
|
25
27
|
goog.exportSymbol('proto.notification.GetFileRequest', null, global);
|
|
26
28
|
goog.exportSymbol('proto.notification.GetMailTemplateRequest', null, global);
|
|
@@ -47,6 +49,7 @@ goog.exportSymbol('proto.notification.NotificationStatusResponse', null, global)
|
|
|
47
49
|
goog.exportSymbol('proto.notification.PaginationRequest', null, global);
|
|
48
50
|
goog.exportSymbol('proto.notification.PingRequest', null, global);
|
|
49
51
|
goog.exportSymbol('proto.notification.PongResponse', null, global);
|
|
52
|
+
goog.exportSymbol('proto.notification.ReadAllUserNotificationsRequest', null, global);
|
|
50
53
|
goog.exportSymbol('proto.notification.SendNotificationRequest', null, global);
|
|
51
54
|
goog.exportSymbol('proto.notification.UserNotificationItem', null, global);
|
|
52
55
|
goog.exportSymbol('proto.notification.UserNotificationItemsResponse', null, global);
|
|
@@ -430,6 +433,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
430
433
|
*/
|
|
431
434
|
proto.notification.UserNotificationsCountResponse.displayName = 'proto.notification.UserNotificationsCountResponse';
|
|
432
435
|
}
|
|
436
|
+
/**
|
|
437
|
+
* Generated by JsPbCodeGenerator.
|
|
438
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
439
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
440
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
441
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
442
|
+
* valid.
|
|
443
|
+
* @extends {jspb.Message}
|
|
444
|
+
* @constructor
|
|
445
|
+
*/
|
|
446
|
+
proto.notification.ReadAllUserNotificationsRequest = function(opt_data) {
|
|
447
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
448
|
+
};
|
|
449
|
+
goog.inherits(proto.notification.ReadAllUserNotificationsRequest, jspb.Message);
|
|
450
|
+
if (goog.DEBUG && !COMPILED) {
|
|
451
|
+
/**
|
|
452
|
+
* @public
|
|
453
|
+
* @override
|
|
454
|
+
*/
|
|
455
|
+
proto.notification.ReadAllUserNotificationsRequest.displayName = 'proto.notification.ReadAllUserNotificationsRequest';
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Generated by JsPbCodeGenerator.
|
|
459
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
460
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
461
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
462
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
463
|
+
* valid.
|
|
464
|
+
* @extends {jspb.Message}
|
|
465
|
+
* @constructor
|
|
466
|
+
*/
|
|
467
|
+
proto.notification.DeleteAllUserNotificationsRequest = function(opt_data) {
|
|
468
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
469
|
+
};
|
|
470
|
+
goog.inherits(proto.notification.DeleteAllUserNotificationsRequest, jspb.Message);
|
|
471
|
+
if (goog.DEBUG && !COMPILED) {
|
|
472
|
+
/**
|
|
473
|
+
* @public
|
|
474
|
+
* @override
|
|
475
|
+
*/
|
|
476
|
+
proto.notification.DeleteAllUserNotificationsRequest.displayName = 'proto.notification.DeleteAllUserNotificationsRequest';
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Generated by JsPbCodeGenerator.
|
|
480
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
481
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
482
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
483
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
484
|
+
* valid.
|
|
485
|
+
* @extends {jspb.Message}
|
|
486
|
+
* @constructor
|
|
487
|
+
*/
|
|
488
|
+
proto.notification.DeleteUserNotificationByIdRequest = function(opt_data) {
|
|
489
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
490
|
+
};
|
|
491
|
+
goog.inherits(proto.notification.DeleteUserNotificationByIdRequest, jspb.Message);
|
|
492
|
+
if (goog.DEBUG && !COMPILED) {
|
|
493
|
+
/**
|
|
494
|
+
* @public
|
|
495
|
+
* @override
|
|
496
|
+
*/
|
|
497
|
+
proto.notification.DeleteUserNotificationByIdRequest.displayName = 'proto.notification.DeleteUserNotificationByIdRequest';
|
|
498
|
+
}
|
|
433
499
|
/**
|
|
434
500
|
* Generated by JsPbCodeGenerator.
|
|
435
501
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4721,6 +4787,426 @@ proto.notification.UserNotificationsCountResponse.prototype.setCount = function(
|
|
|
4721
4787
|
|
|
4722
4788
|
|
|
4723
4789
|
|
|
4790
|
+
|
|
4791
|
+
|
|
4792
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4793
|
+
/**
|
|
4794
|
+
* Creates an object representation of this proto.
|
|
4795
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4796
|
+
* Optional fields that are not set will be set to undefined.
|
|
4797
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4798
|
+
* For the list of reserved names please see:
|
|
4799
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4800
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4801
|
+
* JSPB instance for transitional soy proto support:
|
|
4802
|
+
* http://goto/soy-param-migration
|
|
4803
|
+
* @return {!Object}
|
|
4804
|
+
*/
|
|
4805
|
+
proto.notification.ReadAllUserNotificationsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4806
|
+
return proto.notification.ReadAllUserNotificationsRequest.toObject(opt_includeInstance, this);
|
|
4807
|
+
};
|
|
4808
|
+
|
|
4809
|
+
|
|
4810
|
+
/**
|
|
4811
|
+
* Static version of the {@see toObject} method.
|
|
4812
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4813
|
+
* the JSPB instance for transitional soy proto support:
|
|
4814
|
+
* http://goto/soy-param-migration
|
|
4815
|
+
* @param {!proto.notification.ReadAllUserNotificationsRequest} msg The msg instance to transform.
|
|
4816
|
+
* @return {!Object}
|
|
4817
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4818
|
+
*/
|
|
4819
|
+
proto.notification.ReadAllUserNotificationsRequest.toObject = function(includeInstance, msg) {
|
|
4820
|
+
var f, obj = {
|
|
4821
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
4822
|
+
};
|
|
4823
|
+
|
|
4824
|
+
if (includeInstance) {
|
|
4825
|
+
obj.$jspbMessageInstance = msg;
|
|
4826
|
+
}
|
|
4827
|
+
return obj;
|
|
4828
|
+
};
|
|
4829
|
+
}
|
|
4830
|
+
|
|
4831
|
+
|
|
4832
|
+
/**
|
|
4833
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4834
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4835
|
+
* @return {!proto.notification.ReadAllUserNotificationsRequest}
|
|
4836
|
+
*/
|
|
4837
|
+
proto.notification.ReadAllUserNotificationsRequest.deserializeBinary = function(bytes) {
|
|
4838
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4839
|
+
var msg = new proto.notification.ReadAllUserNotificationsRequest;
|
|
4840
|
+
return proto.notification.ReadAllUserNotificationsRequest.deserializeBinaryFromReader(msg, reader);
|
|
4841
|
+
};
|
|
4842
|
+
|
|
4843
|
+
|
|
4844
|
+
/**
|
|
4845
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4846
|
+
* given reader into the given message object.
|
|
4847
|
+
* @param {!proto.notification.ReadAllUserNotificationsRequest} msg The message object to deserialize into.
|
|
4848
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4849
|
+
* @return {!proto.notification.ReadAllUserNotificationsRequest}
|
|
4850
|
+
*/
|
|
4851
|
+
proto.notification.ReadAllUserNotificationsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4852
|
+
while (reader.nextField()) {
|
|
4853
|
+
if (reader.isEndGroup()) {
|
|
4854
|
+
break;
|
|
4855
|
+
}
|
|
4856
|
+
var field = reader.getFieldNumber();
|
|
4857
|
+
switch (field) {
|
|
4858
|
+
case 1:
|
|
4859
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
4860
|
+
msg.setUserId(value);
|
|
4861
|
+
break;
|
|
4862
|
+
default:
|
|
4863
|
+
reader.skipField();
|
|
4864
|
+
break;
|
|
4865
|
+
}
|
|
4866
|
+
}
|
|
4867
|
+
return msg;
|
|
4868
|
+
};
|
|
4869
|
+
|
|
4870
|
+
|
|
4871
|
+
/**
|
|
4872
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4873
|
+
* @return {!Uint8Array}
|
|
4874
|
+
*/
|
|
4875
|
+
proto.notification.ReadAllUserNotificationsRequest.prototype.serializeBinary = function() {
|
|
4876
|
+
var writer = new jspb.BinaryWriter();
|
|
4877
|
+
proto.notification.ReadAllUserNotificationsRequest.serializeBinaryToWriter(this, writer);
|
|
4878
|
+
return writer.getResultBuffer();
|
|
4879
|
+
};
|
|
4880
|
+
|
|
4881
|
+
|
|
4882
|
+
/**
|
|
4883
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4884
|
+
* format), writing to the given BinaryWriter.
|
|
4885
|
+
* @param {!proto.notification.ReadAllUserNotificationsRequest} message
|
|
4886
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4887
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4888
|
+
*/
|
|
4889
|
+
proto.notification.ReadAllUserNotificationsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4890
|
+
var f = undefined;
|
|
4891
|
+
f = message.getUserId();
|
|
4892
|
+
if (f !== 0) {
|
|
4893
|
+
writer.writeInt32(
|
|
4894
|
+
1,
|
|
4895
|
+
f
|
|
4896
|
+
);
|
|
4897
|
+
}
|
|
4898
|
+
};
|
|
4899
|
+
|
|
4900
|
+
|
|
4901
|
+
/**
|
|
4902
|
+
* optional int32 user_id = 1;
|
|
4903
|
+
* @return {number}
|
|
4904
|
+
*/
|
|
4905
|
+
proto.notification.ReadAllUserNotificationsRequest.prototype.getUserId = function() {
|
|
4906
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
4907
|
+
};
|
|
4908
|
+
|
|
4909
|
+
|
|
4910
|
+
/**
|
|
4911
|
+
* @param {number} value
|
|
4912
|
+
* @return {!proto.notification.ReadAllUserNotificationsRequest} returns this
|
|
4913
|
+
*/
|
|
4914
|
+
proto.notification.ReadAllUserNotificationsRequest.prototype.setUserId = function(value) {
|
|
4915
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
4916
|
+
};
|
|
4917
|
+
|
|
4918
|
+
|
|
4919
|
+
|
|
4920
|
+
|
|
4921
|
+
|
|
4922
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4923
|
+
/**
|
|
4924
|
+
* Creates an object representation of this proto.
|
|
4925
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4926
|
+
* Optional fields that are not set will be set to undefined.
|
|
4927
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4928
|
+
* For the list of reserved names please see:
|
|
4929
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4930
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4931
|
+
* JSPB instance for transitional soy proto support:
|
|
4932
|
+
* http://goto/soy-param-migration
|
|
4933
|
+
* @return {!Object}
|
|
4934
|
+
*/
|
|
4935
|
+
proto.notification.DeleteAllUserNotificationsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4936
|
+
return proto.notification.DeleteAllUserNotificationsRequest.toObject(opt_includeInstance, this);
|
|
4937
|
+
};
|
|
4938
|
+
|
|
4939
|
+
|
|
4940
|
+
/**
|
|
4941
|
+
* Static version of the {@see toObject} method.
|
|
4942
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4943
|
+
* the JSPB instance for transitional soy proto support:
|
|
4944
|
+
* http://goto/soy-param-migration
|
|
4945
|
+
* @param {!proto.notification.DeleteAllUserNotificationsRequest} msg The msg instance to transform.
|
|
4946
|
+
* @return {!Object}
|
|
4947
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4948
|
+
*/
|
|
4949
|
+
proto.notification.DeleteAllUserNotificationsRequest.toObject = function(includeInstance, msg) {
|
|
4950
|
+
var f, obj = {
|
|
4951
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
4952
|
+
};
|
|
4953
|
+
|
|
4954
|
+
if (includeInstance) {
|
|
4955
|
+
obj.$jspbMessageInstance = msg;
|
|
4956
|
+
}
|
|
4957
|
+
return obj;
|
|
4958
|
+
};
|
|
4959
|
+
}
|
|
4960
|
+
|
|
4961
|
+
|
|
4962
|
+
/**
|
|
4963
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4964
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4965
|
+
* @return {!proto.notification.DeleteAllUserNotificationsRequest}
|
|
4966
|
+
*/
|
|
4967
|
+
proto.notification.DeleteAllUserNotificationsRequest.deserializeBinary = function(bytes) {
|
|
4968
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4969
|
+
var msg = new proto.notification.DeleteAllUserNotificationsRequest;
|
|
4970
|
+
return proto.notification.DeleteAllUserNotificationsRequest.deserializeBinaryFromReader(msg, reader);
|
|
4971
|
+
};
|
|
4972
|
+
|
|
4973
|
+
|
|
4974
|
+
/**
|
|
4975
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4976
|
+
* given reader into the given message object.
|
|
4977
|
+
* @param {!proto.notification.DeleteAllUserNotificationsRequest} msg The message object to deserialize into.
|
|
4978
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4979
|
+
* @return {!proto.notification.DeleteAllUserNotificationsRequest}
|
|
4980
|
+
*/
|
|
4981
|
+
proto.notification.DeleteAllUserNotificationsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4982
|
+
while (reader.nextField()) {
|
|
4983
|
+
if (reader.isEndGroup()) {
|
|
4984
|
+
break;
|
|
4985
|
+
}
|
|
4986
|
+
var field = reader.getFieldNumber();
|
|
4987
|
+
switch (field) {
|
|
4988
|
+
case 1:
|
|
4989
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
4990
|
+
msg.setUserId(value);
|
|
4991
|
+
break;
|
|
4992
|
+
default:
|
|
4993
|
+
reader.skipField();
|
|
4994
|
+
break;
|
|
4995
|
+
}
|
|
4996
|
+
}
|
|
4997
|
+
return msg;
|
|
4998
|
+
};
|
|
4999
|
+
|
|
5000
|
+
|
|
5001
|
+
/**
|
|
5002
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5003
|
+
* @return {!Uint8Array}
|
|
5004
|
+
*/
|
|
5005
|
+
proto.notification.DeleteAllUserNotificationsRequest.prototype.serializeBinary = function() {
|
|
5006
|
+
var writer = new jspb.BinaryWriter();
|
|
5007
|
+
proto.notification.DeleteAllUserNotificationsRequest.serializeBinaryToWriter(this, writer);
|
|
5008
|
+
return writer.getResultBuffer();
|
|
5009
|
+
};
|
|
5010
|
+
|
|
5011
|
+
|
|
5012
|
+
/**
|
|
5013
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5014
|
+
* format), writing to the given BinaryWriter.
|
|
5015
|
+
* @param {!proto.notification.DeleteAllUserNotificationsRequest} message
|
|
5016
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5017
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5018
|
+
*/
|
|
5019
|
+
proto.notification.DeleteAllUserNotificationsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5020
|
+
var f = undefined;
|
|
5021
|
+
f = message.getUserId();
|
|
5022
|
+
if (f !== 0) {
|
|
5023
|
+
writer.writeInt32(
|
|
5024
|
+
1,
|
|
5025
|
+
f
|
|
5026
|
+
);
|
|
5027
|
+
}
|
|
5028
|
+
};
|
|
5029
|
+
|
|
5030
|
+
|
|
5031
|
+
/**
|
|
5032
|
+
* optional int32 user_id = 1;
|
|
5033
|
+
* @return {number}
|
|
5034
|
+
*/
|
|
5035
|
+
proto.notification.DeleteAllUserNotificationsRequest.prototype.getUserId = function() {
|
|
5036
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
5037
|
+
};
|
|
5038
|
+
|
|
5039
|
+
|
|
5040
|
+
/**
|
|
5041
|
+
* @param {number} value
|
|
5042
|
+
* @return {!proto.notification.DeleteAllUserNotificationsRequest} returns this
|
|
5043
|
+
*/
|
|
5044
|
+
proto.notification.DeleteAllUserNotificationsRequest.prototype.setUserId = function(value) {
|
|
5045
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
5046
|
+
};
|
|
5047
|
+
|
|
5048
|
+
|
|
5049
|
+
|
|
5050
|
+
|
|
5051
|
+
|
|
5052
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5053
|
+
/**
|
|
5054
|
+
* Creates an object representation of this proto.
|
|
5055
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5056
|
+
* Optional fields that are not set will be set to undefined.
|
|
5057
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5058
|
+
* For the list of reserved names please see:
|
|
5059
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5060
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5061
|
+
* JSPB instance for transitional soy proto support:
|
|
5062
|
+
* http://goto/soy-param-migration
|
|
5063
|
+
* @return {!Object}
|
|
5064
|
+
*/
|
|
5065
|
+
proto.notification.DeleteUserNotificationByIdRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5066
|
+
return proto.notification.DeleteUserNotificationByIdRequest.toObject(opt_includeInstance, this);
|
|
5067
|
+
};
|
|
5068
|
+
|
|
5069
|
+
|
|
5070
|
+
/**
|
|
5071
|
+
* Static version of the {@see toObject} method.
|
|
5072
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5073
|
+
* the JSPB instance for transitional soy proto support:
|
|
5074
|
+
* http://goto/soy-param-migration
|
|
5075
|
+
* @param {!proto.notification.DeleteUserNotificationByIdRequest} msg The msg instance to transform.
|
|
5076
|
+
* @return {!Object}
|
|
5077
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5078
|
+
*/
|
|
5079
|
+
proto.notification.DeleteUserNotificationByIdRequest.toObject = function(includeInstance, msg) {
|
|
5080
|
+
var f, obj = {
|
|
5081
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
5082
|
+
userNotificationId: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
5083
|
+
};
|
|
5084
|
+
|
|
5085
|
+
if (includeInstance) {
|
|
5086
|
+
obj.$jspbMessageInstance = msg;
|
|
5087
|
+
}
|
|
5088
|
+
return obj;
|
|
5089
|
+
};
|
|
5090
|
+
}
|
|
5091
|
+
|
|
5092
|
+
|
|
5093
|
+
/**
|
|
5094
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5095
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5096
|
+
* @return {!proto.notification.DeleteUserNotificationByIdRequest}
|
|
5097
|
+
*/
|
|
5098
|
+
proto.notification.DeleteUserNotificationByIdRequest.deserializeBinary = function(bytes) {
|
|
5099
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5100
|
+
var msg = new proto.notification.DeleteUserNotificationByIdRequest;
|
|
5101
|
+
return proto.notification.DeleteUserNotificationByIdRequest.deserializeBinaryFromReader(msg, reader);
|
|
5102
|
+
};
|
|
5103
|
+
|
|
5104
|
+
|
|
5105
|
+
/**
|
|
5106
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5107
|
+
* given reader into the given message object.
|
|
5108
|
+
* @param {!proto.notification.DeleteUserNotificationByIdRequest} msg The message object to deserialize into.
|
|
5109
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5110
|
+
* @return {!proto.notification.DeleteUserNotificationByIdRequest}
|
|
5111
|
+
*/
|
|
5112
|
+
proto.notification.DeleteUserNotificationByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5113
|
+
while (reader.nextField()) {
|
|
5114
|
+
if (reader.isEndGroup()) {
|
|
5115
|
+
break;
|
|
5116
|
+
}
|
|
5117
|
+
var field = reader.getFieldNumber();
|
|
5118
|
+
switch (field) {
|
|
5119
|
+
case 1:
|
|
5120
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5121
|
+
msg.setUserId(value);
|
|
5122
|
+
break;
|
|
5123
|
+
case 2:
|
|
5124
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5125
|
+
msg.setUserNotificationId(value);
|
|
5126
|
+
break;
|
|
5127
|
+
default:
|
|
5128
|
+
reader.skipField();
|
|
5129
|
+
break;
|
|
5130
|
+
}
|
|
5131
|
+
}
|
|
5132
|
+
return msg;
|
|
5133
|
+
};
|
|
5134
|
+
|
|
5135
|
+
|
|
5136
|
+
/**
|
|
5137
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5138
|
+
* @return {!Uint8Array}
|
|
5139
|
+
*/
|
|
5140
|
+
proto.notification.DeleteUserNotificationByIdRequest.prototype.serializeBinary = function() {
|
|
5141
|
+
var writer = new jspb.BinaryWriter();
|
|
5142
|
+
proto.notification.DeleteUserNotificationByIdRequest.serializeBinaryToWriter(this, writer);
|
|
5143
|
+
return writer.getResultBuffer();
|
|
5144
|
+
};
|
|
5145
|
+
|
|
5146
|
+
|
|
5147
|
+
/**
|
|
5148
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5149
|
+
* format), writing to the given BinaryWriter.
|
|
5150
|
+
* @param {!proto.notification.DeleteUserNotificationByIdRequest} message
|
|
5151
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5152
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5153
|
+
*/
|
|
5154
|
+
proto.notification.DeleteUserNotificationByIdRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5155
|
+
var f = undefined;
|
|
5156
|
+
f = message.getUserId();
|
|
5157
|
+
if (f !== 0) {
|
|
5158
|
+
writer.writeInt32(
|
|
5159
|
+
1,
|
|
5160
|
+
f
|
|
5161
|
+
);
|
|
5162
|
+
}
|
|
5163
|
+
f = message.getUserNotificationId();
|
|
5164
|
+
if (f !== 0) {
|
|
5165
|
+
writer.writeInt32(
|
|
5166
|
+
2,
|
|
5167
|
+
f
|
|
5168
|
+
);
|
|
5169
|
+
}
|
|
5170
|
+
};
|
|
5171
|
+
|
|
5172
|
+
|
|
5173
|
+
/**
|
|
5174
|
+
* optional int32 user_id = 1;
|
|
5175
|
+
* @return {number}
|
|
5176
|
+
*/
|
|
5177
|
+
proto.notification.DeleteUserNotificationByIdRequest.prototype.getUserId = function() {
|
|
5178
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
5179
|
+
};
|
|
5180
|
+
|
|
5181
|
+
|
|
5182
|
+
/**
|
|
5183
|
+
* @param {number} value
|
|
5184
|
+
* @return {!proto.notification.DeleteUserNotificationByIdRequest} returns this
|
|
5185
|
+
*/
|
|
5186
|
+
proto.notification.DeleteUserNotificationByIdRequest.prototype.setUserId = function(value) {
|
|
5187
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
5188
|
+
};
|
|
5189
|
+
|
|
5190
|
+
|
|
5191
|
+
/**
|
|
5192
|
+
* optional int32 user_notification_id = 2;
|
|
5193
|
+
* @return {number}
|
|
5194
|
+
*/
|
|
5195
|
+
proto.notification.DeleteUserNotificationByIdRequest.prototype.getUserNotificationId = function() {
|
|
5196
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
5197
|
+
};
|
|
5198
|
+
|
|
5199
|
+
|
|
5200
|
+
/**
|
|
5201
|
+
* @param {number} value
|
|
5202
|
+
* @return {!proto.notification.DeleteUserNotificationByIdRequest} returns this
|
|
5203
|
+
*/
|
|
5204
|
+
proto.notification.DeleteUserNotificationByIdRequest.prototype.setUserNotificationId = function(value) {
|
|
5205
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
5206
|
+
};
|
|
5207
|
+
|
|
5208
|
+
|
|
5209
|
+
|
|
4724
5210
|
/**
|
|
4725
5211
|
* List of repeated fields within this message type.
|
|
4726
5212
|
* @private {!Array<number>}
|
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -770,9 +770,10 @@ message UpdateRiskPermissionMatrixLimitRequest {
|
|
|
770
770
|
string risk_level = 1;
|
|
771
771
|
string operation_type = 2;
|
|
772
772
|
int64 amount_minor = 3;
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
773
|
+
int64 amount_major = 4;
|
|
774
|
+
string currency = 5;
|
|
775
|
+
int32 currency_scale = 6;
|
|
776
|
+
bool is_active = 7;
|
|
776
777
|
}
|
|
777
778
|
message CategoryItem {
|
|
778
779
|
int32 id = 1;
|
package/user/user_pb.js
CHANGED
|
@@ -33028,9 +33028,10 @@ proto.user.UpdateRiskPermissionMatrixLimitRequest.toObject = function(includeIns
|
|
|
33028
33028
|
riskLevel: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
33029
33029
|
operationType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
33030
33030
|
amountMinor: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
33031
|
-
|
|
33032
|
-
|
|
33033
|
-
|
|
33031
|
+
amountMajor: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
33032
|
+
currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
33033
|
+
currencyScale: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
33034
|
+
isActive: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
33034
33035
|
};
|
|
33035
33036
|
|
|
33036
33037
|
if (includeInstance) {
|
|
@@ -33080,14 +33081,18 @@ proto.user.UpdateRiskPermissionMatrixLimitRequest.deserializeBinaryFromReader =
|
|
|
33080
33081
|
msg.setAmountMinor(value);
|
|
33081
33082
|
break;
|
|
33082
33083
|
case 4:
|
|
33084
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
33085
|
+
msg.setAmountMajor(value);
|
|
33086
|
+
break;
|
|
33087
|
+
case 5:
|
|
33083
33088
|
var value = /** @type {string} */ (reader.readString());
|
|
33084
33089
|
msg.setCurrency(value);
|
|
33085
33090
|
break;
|
|
33086
|
-
case
|
|
33091
|
+
case 6:
|
|
33087
33092
|
var value = /** @type {number} */ (reader.readInt32());
|
|
33088
33093
|
msg.setCurrencyScale(value);
|
|
33089
33094
|
break;
|
|
33090
|
-
case
|
|
33095
|
+
case 7:
|
|
33091
33096
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
33092
33097
|
msg.setIsActive(value);
|
|
33093
33098
|
break;
|
|
@@ -33141,24 +33146,31 @@ proto.user.UpdateRiskPermissionMatrixLimitRequest.serializeBinaryToWriter = func
|
|
|
33141
33146
|
f
|
|
33142
33147
|
);
|
|
33143
33148
|
}
|
|
33149
|
+
f = message.getAmountMajor();
|
|
33150
|
+
if (f !== 0) {
|
|
33151
|
+
writer.writeInt64(
|
|
33152
|
+
4,
|
|
33153
|
+
f
|
|
33154
|
+
);
|
|
33155
|
+
}
|
|
33144
33156
|
f = message.getCurrency();
|
|
33145
33157
|
if (f.length > 0) {
|
|
33146
33158
|
writer.writeString(
|
|
33147
|
-
|
|
33159
|
+
5,
|
|
33148
33160
|
f
|
|
33149
33161
|
);
|
|
33150
33162
|
}
|
|
33151
33163
|
f = message.getCurrencyScale();
|
|
33152
33164
|
if (f !== 0) {
|
|
33153
33165
|
writer.writeInt32(
|
|
33154
|
-
|
|
33166
|
+
6,
|
|
33155
33167
|
f
|
|
33156
33168
|
);
|
|
33157
33169
|
}
|
|
33158
33170
|
f = message.getIsActive();
|
|
33159
33171
|
if (f) {
|
|
33160
33172
|
writer.writeBool(
|
|
33161
|
-
|
|
33173
|
+
7,
|
|
33162
33174
|
f
|
|
33163
33175
|
);
|
|
33164
33176
|
}
|
|
@@ -33220,11 +33232,29 @@ proto.user.UpdateRiskPermissionMatrixLimitRequest.prototype.setAmountMinor = fun
|
|
|
33220
33232
|
|
|
33221
33233
|
|
|
33222
33234
|
/**
|
|
33223
|
-
* optional
|
|
33235
|
+
* optional int64 amount_major = 4;
|
|
33236
|
+
* @return {number}
|
|
33237
|
+
*/
|
|
33238
|
+
proto.user.UpdateRiskPermissionMatrixLimitRequest.prototype.getAmountMajor = function() {
|
|
33239
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
33240
|
+
};
|
|
33241
|
+
|
|
33242
|
+
|
|
33243
|
+
/**
|
|
33244
|
+
* @param {number} value
|
|
33245
|
+
* @return {!proto.user.UpdateRiskPermissionMatrixLimitRequest} returns this
|
|
33246
|
+
*/
|
|
33247
|
+
proto.user.UpdateRiskPermissionMatrixLimitRequest.prototype.setAmountMajor = function(value) {
|
|
33248
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
33249
|
+
};
|
|
33250
|
+
|
|
33251
|
+
|
|
33252
|
+
/**
|
|
33253
|
+
* optional string currency = 5;
|
|
33224
33254
|
* @return {string}
|
|
33225
33255
|
*/
|
|
33226
33256
|
proto.user.UpdateRiskPermissionMatrixLimitRequest.prototype.getCurrency = function() {
|
|
33227
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
33257
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
33228
33258
|
};
|
|
33229
33259
|
|
|
33230
33260
|
|
|
@@ -33233,16 +33263,16 @@ proto.user.UpdateRiskPermissionMatrixLimitRequest.prototype.getCurrency = functi
|
|
|
33233
33263
|
* @return {!proto.user.UpdateRiskPermissionMatrixLimitRequest} returns this
|
|
33234
33264
|
*/
|
|
33235
33265
|
proto.user.UpdateRiskPermissionMatrixLimitRequest.prototype.setCurrency = function(value) {
|
|
33236
|
-
return jspb.Message.setProto3StringField(this,
|
|
33266
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
33237
33267
|
};
|
|
33238
33268
|
|
|
33239
33269
|
|
|
33240
33270
|
/**
|
|
33241
|
-
* optional int32 currency_scale =
|
|
33271
|
+
* optional int32 currency_scale = 6;
|
|
33242
33272
|
* @return {number}
|
|
33243
33273
|
*/
|
|
33244
33274
|
proto.user.UpdateRiskPermissionMatrixLimitRequest.prototype.getCurrencyScale = function() {
|
|
33245
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
33275
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
33246
33276
|
};
|
|
33247
33277
|
|
|
33248
33278
|
|
|
@@ -33251,16 +33281,16 @@ proto.user.UpdateRiskPermissionMatrixLimitRequest.prototype.getCurrencyScale = f
|
|
|
33251
33281
|
* @return {!proto.user.UpdateRiskPermissionMatrixLimitRequest} returns this
|
|
33252
33282
|
*/
|
|
33253
33283
|
proto.user.UpdateRiskPermissionMatrixLimitRequest.prototype.setCurrencyScale = function(value) {
|
|
33254
|
-
return jspb.Message.setProto3IntField(this,
|
|
33284
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
33255
33285
|
};
|
|
33256
33286
|
|
|
33257
33287
|
|
|
33258
33288
|
/**
|
|
33259
|
-
* optional bool is_active =
|
|
33289
|
+
* optional bool is_active = 7;
|
|
33260
33290
|
* @return {boolean}
|
|
33261
33291
|
*/
|
|
33262
33292
|
proto.user.UpdateRiskPermissionMatrixLimitRequest.prototype.getIsActive = function() {
|
|
33263
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this,
|
|
33293
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
33264
33294
|
};
|
|
33265
33295
|
|
|
33266
33296
|
|
|
@@ -33269,7 +33299,7 @@ proto.user.UpdateRiskPermissionMatrixLimitRequest.prototype.getIsActive = functi
|
|
|
33269
33299
|
* @return {!proto.user.UpdateRiskPermissionMatrixLimitRequest} returns this
|
|
33270
33300
|
*/
|
|
33271
33301
|
proto.user.UpdateRiskPermissionMatrixLimitRequest.prototype.setIsActive = function(value) {
|
|
33272
|
-
return jspb.Message.setProto3BooleanField(this,
|
|
33302
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
33273
33303
|
};
|
|
33274
33304
|
|
|
33275
33305
|
|