@aldiokta/protocgen 1.1.63 → 1.1.65

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.
Files changed (27) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/accurate_oauth/accurate_oauth_grpc_pb.js +210 -0
  3. package/prisca/v1/accurate_oauth/accurate_oauth_pb.js +2330 -0
  4. package/prisca/v1/bidding/bidding_pb.js +43 -13
  5. package/prisca/v1/core/auth/auth_grpc_pb.js +99 -0
  6. package/prisca/v1/core/auth/auth_pb.js +2347 -851
  7. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +33 -0
  8. package/prisca/v1/core/file_upload/file_upload_pb.js +304 -0
  9. package/prisca/v1/core/messaging/notification_event_grpc_pb.js +211 -0
  10. package/prisca/v1/core/messaging/notification_event_pb.js +3015 -0
  11. package/prisca/v1/core/user_device/user_device_grpc_pb.js +144 -0
  12. package/prisca/v1/core/user_device/user_device_pb.js +2255 -0
  13. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +41 -0
  14. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +991 -0
  15. package/prisca/v1/good_receipt/good_receipt_pb.js +61 -1
  16. package/prisca/v1/invoice/invoice_pb.js +61 -1
  17. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -1
  18. package/prisca/v1/purchase_order/purchase_order_pb.js +154 -138
  19. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -1
  20. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +18 -71
  21. package/prisca/v1/quotation/quotation_grpc_pb.js +33 -0
  22. package/prisca/v1/quotation/quotation_pb.js +1030 -131
  23. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +33 -0
  24. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +603 -4
  25. package/prisca/v1/valuation/valuation_pb.js +93 -3
  26. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +66 -0
  27. package/prisca/v1/vendor_domain/vendor_domain_pb.js +940 -0
@@ -4,6 +4,28 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var prisca_v1_core_file_upload_file_upload_pb = require('../../../../prisca/v1/core/file_upload/file_upload_pb.js');
6
6
 
7
+ function serialize_DeleteFileReq(arg) {
8
+ if (!(arg instanceof prisca_v1_core_file_upload_file_upload_pb.DeleteFileReq)) {
9
+ throw new Error('Expected argument of type DeleteFileReq');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_DeleteFileReq(buffer_arg) {
15
+ return prisca_v1_core_file_upload_file_upload_pb.DeleteFileReq.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_DeleteFileRes(arg) {
19
+ if (!(arg instanceof prisca_v1_core_file_upload_file_upload_pb.DeleteFileRes)) {
20
+ throw new Error('Expected argument of type DeleteFileRes');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_DeleteFileRes(buffer_arg) {
26
+ return prisca_v1_core_file_upload_file_upload_pb.DeleteFileRes.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
7
29
  function serialize_FileUploadReferencesReq(arg) {
8
30
  if (!(arg instanceof prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq)) {
9
31
  throw new Error('Expected argument of type FileUploadReferencesReq');
@@ -61,6 +83,17 @@ var UploadFileServiceService = exports.UploadFileServiceService = {
61
83
  responseSerialize: serialize_FileUploadRes,
62
84
  responseDeserialize: deserialize_FileUploadRes,
63
85
  },
86
+ deleteFile: {
87
+ path: '/UploadFileService/DeleteFile',
88
+ requestStream: false,
89
+ responseStream: false,
90
+ requestType: prisca_v1_core_file_upload_file_upload_pb.DeleteFileReq,
91
+ responseType: prisca_v1_core_file_upload_file_upload_pb.DeleteFileRes,
92
+ requestSerialize: serialize_DeleteFileReq,
93
+ requestDeserialize: deserialize_DeleteFileReq,
94
+ responseSerialize: serialize_DeleteFileRes,
95
+ responseDeserialize: deserialize_DeleteFileRes,
96
+ },
64
97
  };
65
98
 
66
99
  exports.UploadFileServiceClient = grpc.makeGenericClientConstructor(UploadFileServiceService, 'UploadFileService');
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
16
  var global = globalThis;
17
17
 
18
+ goog.exportSymbol('proto.DeleteFileReq', null, global);
19
+ goog.exportSymbol('proto.DeleteFileRes', null, global);
18
20
  goog.exportSymbol('proto.FileInfo', null, global);
19
21
  goog.exportSymbol('proto.FileUploadReferencesReq', null, global);
20
22
  goog.exportSymbol('proto.FileUploadReq', null, global);
@@ -83,6 +85,27 @@ if (goog.DEBUG && !COMPILED) {
83
85
  */
84
86
  proto.FileUploadReferencesReq.displayName = 'proto.FileUploadReferencesReq';
85
87
  }
88
+ /**
89
+ * Generated by JsPbCodeGenerator.
90
+ * @param {Array=} opt_data Optional initial data array, typically from a
91
+ * server response, or constructed directly in Javascript. The array is used
92
+ * in place and becomes part of the constructed object. It is not cloned.
93
+ * If no data is provided, the constructed object will be empty, but still
94
+ * valid.
95
+ * @extends {jspb.Message}
96
+ * @constructor
97
+ */
98
+ proto.DeleteFileReq = function(opt_data) {
99
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
100
+ };
101
+ goog.inherits(proto.DeleteFileReq, jspb.Message);
102
+ if (goog.DEBUG && !COMPILED) {
103
+ /**
104
+ * @public
105
+ * @override
106
+ */
107
+ proto.DeleteFileReq.displayName = 'proto.DeleteFileReq';
108
+ }
86
109
  /**
87
110
  * Generated by JsPbCodeGenerator.
88
111
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -104,6 +127,27 @@ if (goog.DEBUG && !COMPILED) {
104
127
  */
105
128
  proto.FileUploadRes.displayName = 'proto.FileUploadRes';
106
129
  }
130
+ /**
131
+ * Generated by JsPbCodeGenerator.
132
+ * @param {Array=} opt_data Optional initial data array, typically from a
133
+ * server response, or constructed directly in Javascript. The array is used
134
+ * in place and becomes part of the constructed object. It is not cloned.
135
+ * If no data is provided, the constructed object will be empty, but still
136
+ * valid.
137
+ * @extends {jspb.Message}
138
+ * @constructor
139
+ */
140
+ proto.DeleteFileRes = function(opt_data) {
141
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
142
+ };
143
+ goog.inherits(proto.DeleteFileRes, jspb.Message);
144
+ if (goog.DEBUG && !COMPILED) {
145
+ /**
146
+ * @public
147
+ * @override
148
+ */
149
+ proto.DeleteFileRes.displayName = 'proto.DeleteFileRes';
150
+ }
107
151
 
108
152
 
109
153
 
@@ -886,6 +930,136 @@ proto.FileUploadReferencesReq.prototype.setDocumentType = function(value) {
886
930
 
887
931
 
888
932
 
933
+ if (jspb.Message.GENERATE_TO_OBJECT) {
934
+ /**
935
+ * Creates an object representation of this proto.
936
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
937
+ * Optional fields that are not set will be set to undefined.
938
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
939
+ * For the list of reserved names please see:
940
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
941
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
942
+ * JSPB instance for transitional soy proto support:
943
+ * http://goto/soy-param-migration
944
+ * @return {!Object}
945
+ */
946
+ proto.DeleteFileReq.prototype.toObject = function(opt_includeInstance) {
947
+ return proto.DeleteFileReq.toObject(opt_includeInstance, this);
948
+ };
949
+
950
+
951
+ /**
952
+ * Static version of the {@see toObject} method.
953
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
954
+ * the JSPB instance for transitional soy proto support:
955
+ * http://goto/soy-param-migration
956
+ * @param {!proto.DeleteFileReq} msg The msg instance to transform.
957
+ * @return {!Object}
958
+ * @suppress {unusedLocalVariables} f is only used for nested messages
959
+ */
960
+ proto.DeleteFileReq.toObject = function(includeInstance, msg) {
961
+ var f, obj = {
962
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
963
+ };
964
+
965
+ if (includeInstance) {
966
+ obj.$jspbMessageInstance = msg;
967
+ }
968
+ return obj;
969
+ };
970
+ }
971
+
972
+
973
+ /**
974
+ * Deserializes binary data (in protobuf wire format).
975
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
976
+ * @return {!proto.DeleteFileReq}
977
+ */
978
+ proto.DeleteFileReq.deserializeBinary = function(bytes) {
979
+ var reader = new jspb.BinaryReader(bytes);
980
+ var msg = new proto.DeleteFileReq;
981
+ return proto.DeleteFileReq.deserializeBinaryFromReader(msg, reader);
982
+ };
983
+
984
+
985
+ /**
986
+ * Deserializes binary data (in protobuf wire format) from the
987
+ * given reader into the given message object.
988
+ * @param {!proto.DeleteFileReq} msg The message object to deserialize into.
989
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
990
+ * @return {!proto.DeleteFileReq}
991
+ */
992
+ proto.DeleteFileReq.deserializeBinaryFromReader = function(msg, reader) {
993
+ while (reader.nextField()) {
994
+ if (reader.isEndGroup()) {
995
+ break;
996
+ }
997
+ var field = reader.getFieldNumber();
998
+ switch (field) {
999
+ case 1:
1000
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1001
+ msg.setReferencesId(value);
1002
+ break;
1003
+ default:
1004
+ reader.skipField();
1005
+ break;
1006
+ }
1007
+ }
1008
+ return msg;
1009
+ };
1010
+
1011
+
1012
+ /**
1013
+ * Serializes the message to binary data (in protobuf wire format).
1014
+ * @return {!Uint8Array}
1015
+ */
1016
+ proto.DeleteFileReq.prototype.serializeBinary = function() {
1017
+ var writer = new jspb.BinaryWriter();
1018
+ proto.DeleteFileReq.serializeBinaryToWriter(this, writer);
1019
+ return writer.getResultBuffer();
1020
+ };
1021
+
1022
+
1023
+ /**
1024
+ * Serializes the given message to binary data (in protobuf wire
1025
+ * format), writing to the given BinaryWriter.
1026
+ * @param {!proto.DeleteFileReq} message
1027
+ * @param {!jspb.BinaryWriter} writer
1028
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1029
+ */
1030
+ proto.DeleteFileReq.serializeBinaryToWriter = function(message, writer) {
1031
+ var f = undefined;
1032
+ f = message.getReferencesId();
1033
+ if (f.length > 0) {
1034
+ writer.writeString(
1035
+ 1,
1036
+ f
1037
+ );
1038
+ }
1039
+ };
1040
+
1041
+
1042
+ /**
1043
+ * optional string references_id = 1;
1044
+ * @return {string}
1045
+ */
1046
+ proto.DeleteFileReq.prototype.getReferencesId = function() {
1047
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1048
+ };
1049
+
1050
+
1051
+ /**
1052
+ * @param {string} value
1053
+ * @return {!proto.DeleteFileReq} returns this
1054
+ */
1055
+ proto.DeleteFileReq.prototype.setReferencesId = function(value) {
1056
+ return jspb.Message.setProto3StringField(this, 1, value);
1057
+ };
1058
+
1059
+
1060
+
1061
+
1062
+
889
1063
  if (jspb.Message.GENERATE_TO_OBJECT) {
890
1064
  /**
891
1065
  * Creates an object representation of this proto.
@@ -1163,4 +1337,134 @@ proto.FileUploadRes.prototype.setDocumentType = function(value) {
1163
1337
  };
1164
1338
 
1165
1339
 
1340
+
1341
+
1342
+
1343
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1344
+ /**
1345
+ * Creates an object representation of this proto.
1346
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1347
+ * Optional fields that are not set will be set to undefined.
1348
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1349
+ * For the list of reserved names please see:
1350
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1351
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1352
+ * JSPB instance for transitional soy proto support:
1353
+ * http://goto/soy-param-migration
1354
+ * @return {!Object}
1355
+ */
1356
+ proto.DeleteFileRes.prototype.toObject = function(opt_includeInstance) {
1357
+ return proto.DeleteFileRes.toObject(opt_includeInstance, this);
1358
+ };
1359
+
1360
+
1361
+ /**
1362
+ * Static version of the {@see toObject} method.
1363
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1364
+ * the JSPB instance for transitional soy proto support:
1365
+ * http://goto/soy-param-migration
1366
+ * @param {!proto.DeleteFileRes} msg The msg instance to transform.
1367
+ * @return {!Object}
1368
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1369
+ */
1370
+ proto.DeleteFileRes.toObject = function(includeInstance, msg) {
1371
+ var f, obj = {
1372
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1373
+ };
1374
+
1375
+ if (includeInstance) {
1376
+ obj.$jspbMessageInstance = msg;
1377
+ }
1378
+ return obj;
1379
+ };
1380
+ }
1381
+
1382
+
1383
+ /**
1384
+ * Deserializes binary data (in protobuf wire format).
1385
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1386
+ * @return {!proto.DeleteFileRes}
1387
+ */
1388
+ proto.DeleteFileRes.deserializeBinary = function(bytes) {
1389
+ var reader = new jspb.BinaryReader(bytes);
1390
+ var msg = new proto.DeleteFileRes;
1391
+ return proto.DeleteFileRes.deserializeBinaryFromReader(msg, reader);
1392
+ };
1393
+
1394
+
1395
+ /**
1396
+ * Deserializes binary data (in protobuf wire format) from the
1397
+ * given reader into the given message object.
1398
+ * @param {!proto.DeleteFileRes} msg The message object to deserialize into.
1399
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1400
+ * @return {!proto.DeleteFileRes}
1401
+ */
1402
+ proto.DeleteFileRes.deserializeBinaryFromReader = function(msg, reader) {
1403
+ while (reader.nextField()) {
1404
+ if (reader.isEndGroup()) {
1405
+ break;
1406
+ }
1407
+ var field = reader.getFieldNumber();
1408
+ switch (field) {
1409
+ case 1:
1410
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1411
+ msg.setReferencesId(value);
1412
+ break;
1413
+ default:
1414
+ reader.skipField();
1415
+ break;
1416
+ }
1417
+ }
1418
+ return msg;
1419
+ };
1420
+
1421
+
1422
+ /**
1423
+ * Serializes the message to binary data (in protobuf wire format).
1424
+ * @return {!Uint8Array}
1425
+ */
1426
+ proto.DeleteFileRes.prototype.serializeBinary = function() {
1427
+ var writer = new jspb.BinaryWriter();
1428
+ proto.DeleteFileRes.serializeBinaryToWriter(this, writer);
1429
+ return writer.getResultBuffer();
1430
+ };
1431
+
1432
+
1433
+ /**
1434
+ * Serializes the given message to binary data (in protobuf wire
1435
+ * format), writing to the given BinaryWriter.
1436
+ * @param {!proto.DeleteFileRes} message
1437
+ * @param {!jspb.BinaryWriter} writer
1438
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1439
+ */
1440
+ proto.DeleteFileRes.serializeBinaryToWriter = function(message, writer) {
1441
+ var f = undefined;
1442
+ f = message.getReferencesId();
1443
+ if (f.length > 0) {
1444
+ writer.writeString(
1445
+ 1,
1446
+ f
1447
+ );
1448
+ }
1449
+ };
1450
+
1451
+
1452
+ /**
1453
+ * optional string references_id = 1;
1454
+ * @return {string}
1455
+ */
1456
+ proto.DeleteFileRes.prototype.getReferencesId = function() {
1457
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1458
+ };
1459
+
1460
+
1461
+ /**
1462
+ * @param {string} value
1463
+ * @return {!proto.DeleteFileRes} returns this
1464
+ */
1465
+ proto.DeleteFileRes.prototype.setReferencesId = function(value) {
1466
+ return jspb.Message.setProto3StringField(this, 1, value);
1467
+ };
1468
+
1469
+
1166
1470
  goog.object.extend(exports, proto);
@@ -0,0 +1,211 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var prisca_v1_core_messaging_notification_event_pb = require('../../../../prisca/v1/core/messaging/notification_event_pb.js');
6
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
7
+ var prisca_v1_core_messaging_notification_pb = require('../../../../prisca/v1/core/messaging/notification_pb.js');
8
+
9
+ function serialize_CreateNotificationEventReq(arg) {
10
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.CreateNotificationEventReq)) {
11
+ throw new Error('Expected argument of type CreateNotificationEventReq');
12
+ }
13
+ return Buffer.from(arg.serializeBinary());
14
+ }
15
+
16
+ function deserialize_CreateNotificationEventReq(buffer_arg) {
17
+ return prisca_v1_core_messaging_notification_event_pb.CreateNotificationEventReq.deserializeBinary(new Uint8Array(buffer_arg));
18
+ }
19
+
20
+ function serialize_EmptyMessage(arg) {
21
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.EmptyMessage)) {
22
+ throw new Error('Expected argument of type EmptyMessage');
23
+ }
24
+ return Buffer.from(arg.serializeBinary());
25
+ }
26
+
27
+ function deserialize_EmptyMessage(buffer_arg) {
28
+ return prisca_v1_core_messaging_notification_pb.EmptyMessage.deserializeBinary(new Uint8Array(buffer_arg));
29
+ }
30
+
31
+ function serialize_GetEventByCodeReq(arg) {
32
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.GetEventByCodeReq)) {
33
+ throw new Error('Expected argument of type GetEventByCodeReq');
34
+ }
35
+ return Buffer.from(arg.serializeBinary());
36
+ }
37
+
38
+ function deserialize_GetEventByCodeReq(buffer_arg) {
39
+ return prisca_v1_core_messaging_notification_event_pb.GetEventByCodeReq.deserializeBinary(new Uint8Array(buffer_arg));
40
+ }
41
+
42
+ function serialize_GetListNotificationEventsReq(arg) {
43
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.GetListNotificationEventsReq)) {
44
+ throw new Error('Expected argument of type GetListNotificationEventsReq');
45
+ }
46
+ return Buffer.from(arg.serializeBinary());
47
+ }
48
+
49
+ function deserialize_GetListNotificationEventsReq(buffer_arg) {
50
+ return prisca_v1_core_messaging_notification_event_pb.GetListNotificationEventsReq.deserializeBinary(new Uint8Array(buffer_arg));
51
+ }
52
+
53
+ function serialize_GetListNotificationEventsRes(arg) {
54
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.GetListNotificationEventsRes)) {
55
+ throw new Error('Expected argument of type GetListNotificationEventsRes');
56
+ }
57
+ return Buffer.from(arg.serializeBinary());
58
+ }
59
+
60
+ function deserialize_GetListNotificationEventsRes(buffer_arg) {
61
+ return prisca_v1_core_messaging_notification_event_pb.GetListNotificationEventsRes.deserializeBinary(new Uint8Array(buffer_arg));
62
+ }
63
+
64
+ function serialize_NotificationEventChannelItem(arg) {
65
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.NotificationEventChannelItem)) {
66
+ throw new Error('Expected argument of type NotificationEventChannelItem');
67
+ }
68
+ return Buffer.from(arg.serializeBinary());
69
+ }
70
+
71
+ function deserialize_NotificationEventChannelItem(buffer_arg) {
72
+ return prisca_v1_core_messaging_notification_event_pb.NotificationEventChannelItem.deserializeBinary(new Uint8Array(buffer_arg));
73
+ }
74
+
75
+ function serialize_NotificationEventDetailItem(arg) {
76
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.NotificationEventDetailItem)) {
77
+ throw new Error('Expected argument of type NotificationEventDetailItem');
78
+ }
79
+ return Buffer.from(arg.serializeBinary());
80
+ }
81
+
82
+ function deserialize_NotificationEventDetailItem(buffer_arg) {
83
+ return prisca_v1_core_messaging_notification_event_pb.NotificationEventDetailItem.deserializeBinary(new Uint8Array(buffer_arg));
84
+ }
85
+
86
+ function serialize_NotificationEventItem(arg) {
87
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.NotificationEventItem)) {
88
+ throw new Error('Expected argument of type NotificationEventItem');
89
+ }
90
+ return Buffer.from(arg.serializeBinary());
91
+ }
92
+
93
+ function deserialize_NotificationEventItem(buffer_arg) {
94
+ return prisca_v1_core_messaging_notification_event_pb.NotificationEventItem.deserializeBinary(new Uint8Array(buffer_arg));
95
+ }
96
+
97
+ function serialize_ReferenceId(arg) {
98
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.ReferenceId)) {
99
+ throw new Error('Expected argument of type ReferenceId');
100
+ }
101
+ return Buffer.from(arg.serializeBinary());
102
+ }
103
+
104
+ function deserialize_ReferenceId(buffer_arg) {
105
+ return prisca_v1_core_messaging_notification_pb.ReferenceId.deserializeBinary(new Uint8Array(buffer_arg));
106
+ }
107
+
108
+ function serialize_UpdateNotificationEventReq(arg) {
109
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.UpdateNotificationEventReq)) {
110
+ throw new Error('Expected argument of type UpdateNotificationEventReq');
111
+ }
112
+ return Buffer.from(arg.serializeBinary());
113
+ }
114
+
115
+ function deserialize_UpdateNotificationEventReq(buffer_arg) {
116
+ return prisca_v1_core_messaging_notification_event_pb.UpdateNotificationEventReq.deserializeBinary(new Uint8Array(buffer_arg));
117
+ }
118
+
119
+ function serialize_UpsertEventChannelReq(arg) {
120
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.UpsertEventChannelReq)) {
121
+ throw new Error('Expected argument of type UpsertEventChannelReq');
122
+ }
123
+ return Buffer.from(arg.serializeBinary());
124
+ }
125
+
126
+ function deserialize_UpsertEventChannelReq(buffer_arg) {
127
+ return prisca_v1_core_messaging_notification_event_pb.UpsertEventChannelReq.deserializeBinary(new Uint8Array(buffer_arg));
128
+ }
129
+
130
+
131
+ var NotificationEventServiceService = exports.NotificationEventServiceService = {
132
+ createEvent: {
133
+ path: '/NotificationEventService/CreateEvent',
134
+ requestStream: false,
135
+ responseStream: false,
136
+ requestType: prisca_v1_core_messaging_notification_event_pb.CreateNotificationEventReq,
137
+ responseType: prisca_v1_core_messaging_notification_event_pb.NotificationEventItem,
138
+ requestSerialize: serialize_CreateNotificationEventReq,
139
+ requestDeserialize: deserialize_CreateNotificationEventReq,
140
+ responseSerialize: serialize_NotificationEventItem,
141
+ responseDeserialize: deserialize_NotificationEventItem,
142
+ },
143
+ updateEvent: {
144
+ path: '/NotificationEventService/UpdateEvent',
145
+ requestStream: false,
146
+ responseStream: false,
147
+ requestType: prisca_v1_core_messaging_notification_event_pb.UpdateNotificationEventReq,
148
+ responseType: prisca_v1_core_messaging_notification_event_pb.NotificationEventItem,
149
+ requestSerialize: serialize_UpdateNotificationEventReq,
150
+ requestDeserialize: deserialize_UpdateNotificationEventReq,
151
+ responseSerialize: serialize_NotificationEventItem,
152
+ responseDeserialize: deserialize_NotificationEventItem,
153
+ },
154
+ getListEvents: {
155
+ path: '/NotificationEventService/GetListEvents',
156
+ requestStream: false,
157
+ responseStream: false,
158
+ requestType: prisca_v1_core_messaging_notification_event_pb.GetListNotificationEventsReq,
159
+ responseType: prisca_v1_core_messaging_notification_event_pb.GetListNotificationEventsRes,
160
+ requestSerialize: serialize_GetListNotificationEventsReq,
161
+ requestDeserialize: deserialize_GetListNotificationEventsReq,
162
+ responseSerialize: serialize_GetListNotificationEventsRes,
163
+ responseDeserialize: deserialize_GetListNotificationEventsRes,
164
+ },
165
+ getEventByCode: {
166
+ path: '/NotificationEventService/GetEventByCode',
167
+ requestStream: false,
168
+ responseStream: false,
169
+ requestType: prisca_v1_core_messaging_notification_event_pb.GetEventByCodeReq,
170
+ responseType: prisca_v1_core_messaging_notification_event_pb.NotificationEventDetailItem,
171
+ requestSerialize: serialize_GetEventByCodeReq,
172
+ requestDeserialize: deserialize_GetEventByCodeReq,
173
+ responseSerialize: serialize_NotificationEventDetailItem,
174
+ responseDeserialize: deserialize_NotificationEventDetailItem,
175
+ },
176
+ getEventByReferenceId: {
177
+ path: '/NotificationEventService/GetEventByReferenceId',
178
+ requestStream: false,
179
+ responseStream: false,
180
+ requestType: prisca_v1_core_messaging_notification_pb.ReferenceId,
181
+ responseType: prisca_v1_core_messaging_notification_event_pb.NotificationEventDetailItem,
182
+ requestSerialize: serialize_ReferenceId,
183
+ requestDeserialize: deserialize_ReferenceId,
184
+ responseSerialize: serialize_NotificationEventDetailItem,
185
+ responseDeserialize: deserialize_NotificationEventDetailItem,
186
+ },
187
+ deleteEvent: {
188
+ path: '/NotificationEventService/DeleteEvent',
189
+ requestStream: false,
190
+ responseStream: false,
191
+ requestType: prisca_v1_core_messaging_notification_pb.ReferenceId,
192
+ responseType: prisca_v1_core_messaging_notification_pb.EmptyMessage,
193
+ requestSerialize: serialize_ReferenceId,
194
+ requestDeserialize: deserialize_ReferenceId,
195
+ responseSerialize: serialize_EmptyMessage,
196
+ responseDeserialize: deserialize_EmptyMessage,
197
+ },
198
+ upsertEventChannel: {
199
+ path: '/NotificationEventService/UpsertEventChannel',
200
+ requestStream: false,
201
+ responseStream: false,
202
+ requestType: prisca_v1_core_messaging_notification_event_pb.UpsertEventChannelReq,
203
+ responseType: prisca_v1_core_messaging_notification_event_pb.NotificationEventChannelItem,
204
+ requestSerialize: serialize_UpsertEventChannelReq,
205
+ requestDeserialize: deserialize_UpsertEventChannelReq,
206
+ responseSerialize: serialize_NotificationEventChannelItem,
207
+ responseDeserialize: deserialize_NotificationEventChannelItem,
208
+ },
209
+ };
210
+
211
+ exports.NotificationEventServiceClient = grpc.makeGenericClientConstructor(NotificationEventServiceService, 'NotificationEventService');