@aldiokta/protocgen 1.1.41 → 1.1.42
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.
|
@@ -5,15 +5,15 @@ var grpc = require('@grpc/grpc-js');
|
|
|
5
5
|
var prisca_v1_core_messaging_notification_pb = require('../../../../prisca/v1/core/messaging/notification_pb.js');
|
|
6
6
|
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
7
|
|
|
8
|
-
function
|
|
9
|
-
if (!(arg instanceof prisca_v1_core_messaging_notification_pb.
|
|
10
|
-
throw new Error('Expected argument of type
|
|
8
|
+
function serialize_CountUnreadNotificationRes(arg) {
|
|
9
|
+
if (!(arg instanceof prisca_v1_core_messaging_notification_pb.CountUnreadNotificationRes)) {
|
|
10
|
+
throw new Error('Expected argument of type CountUnreadNotificationRes');
|
|
11
11
|
}
|
|
12
12
|
return Buffer.from(arg.serializeBinary());
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
function
|
|
16
|
-
return prisca_v1_core_messaging_notification_pb.
|
|
15
|
+
function deserialize_CountUnreadNotificationRes(buffer_arg) {
|
|
16
|
+
return prisca_v1_core_messaging_notification_pb.CountUnreadNotificationRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
function serialize_CreateNotificationReq(arg) {
|
|
@@ -60,6 +60,28 @@ function deserialize_DeleteNotificationEmployeeRes(buffer_arg) {
|
|
|
60
60
|
return prisca_v1_core_messaging_notification_pb.DeleteNotificationEmployeeRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
function serialize_DeleteNotificationVendorReq(arg) {
|
|
64
|
+
if (!(arg instanceof prisca_v1_core_messaging_notification_pb.DeleteNotificationVendorReq)) {
|
|
65
|
+
throw new Error('Expected argument of type DeleteNotificationVendorReq');
|
|
66
|
+
}
|
|
67
|
+
return Buffer.from(arg.serializeBinary());
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function deserialize_DeleteNotificationVendorReq(buffer_arg) {
|
|
71
|
+
return prisca_v1_core_messaging_notification_pb.DeleteNotificationVendorReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function serialize_DeleteNotificationVendorRes(arg) {
|
|
75
|
+
if (!(arg instanceof prisca_v1_core_messaging_notification_pb.DeleteNotificationVendorRes)) {
|
|
76
|
+
throw new Error('Expected argument of type DeleteNotificationVendorRes');
|
|
77
|
+
}
|
|
78
|
+
return Buffer.from(arg.serializeBinary());
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function deserialize_DeleteNotificationVendorRes(buffer_arg) {
|
|
82
|
+
return prisca_v1_core_messaging_notification_pb.DeleteNotificationVendorRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
83
|
+
}
|
|
84
|
+
|
|
63
85
|
function serialize_EmptyMessage(arg) {
|
|
64
86
|
if (!(arg instanceof prisca_v1_core_messaging_notification_pb.EmptyMessage)) {
|
|
65
87
|
throw new Error('Expected argument of type EmptyMessage');
|
|
@@ -93,6 +115,28 @@ function deserialize_GetListNotificationEmployeeRes(buffer_arg) {
|
|
|
93
115
|
return prisca_v1_core_messaging_notification_pb.GetListNotificationEmployeeRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
94
116
|
}
|
|
95
117
|
|
|
118
|
+
function serialize_GetListNotificationVendorReq(arg) {
|
|
119
|
+
if (!(arg instanceof prisca_v1_core_messaging_notification_pb.GetListNotificationVendorReq)) {
|
|
120
|
+
throw new Error('Expected argument of type GetListNotificationVendorReq');
|
|
121
|
+
}
|
|
122
|
+
return Buffer.from(arg.serializeBinary());
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function deserialize_GetListNotificationVendorReq(buffer_arg) {
|
|
126
|
+
return prisca_v1_core_messaging_notification_pb.GetListNotificationVendorReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function serialize_GetListNotificationVendorRes(arg) {
|
|
130
|
+
if (!(arg instanceof prisca_v1_core_messaging_notification_pb.GetListNotificationVendorRes)) {
|
|
131
|
+
throw new Error('Expected argument of type GetListNotificationVendorRes');
|
|
132
|
+
}
|
|
133
|
+
return Buffer.from(arg.serializeBinary());
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function deserialize_GetListNotificationVendorRes(buffer_arg) {
|
|
137
|
+
return prisca_v1_core_messaging_notification_pb.GetListNotificationVendorRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
138
|
+
}
|
|
139
|
+
|
|
96
140
|
function serialize_NotificationEmployeeItem(arg) {
|
|
97
141
|
if (!(arg instanceof prisca_v1_core_messaging_notification_pb.NotificationEmployeeItem)) {
|
|
98
142
|
throw new Error('Expected argument of type NotificationEmployeeItem');
|
|
@@ -104,6 +148,17 @@ function deserialize_NotificationEmployeeItem(buffer_arg) {
|
|
|
104
148
|
return prisca_v1_core_messaging_notification_pb.NotificationEmployeeItem.deserializeBinary(new Uint8Array(buffer_arg));
|
|
105
149
|
}
|
|
106
150
|
|
|
151
|
+
function serialize_NotificationVendorItem(arg) {
|
|
152
|
+
if (!(arg instanceof prisca_v1_core_messaging_notification_pb.NotificationVendorItem)) {
|
|
153
|
+
throw new Error('Expected argument of type NotificationVendorItem');
|
|
154
|
+
}
|
|
155
|
+
return Buffer.from(arg.serializeBinary());
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function deserialize_NotificationVendorItem(buffer_arg) {
|
|
159
|
+
return prisca_v1_core_messaging_notification_pb.NotificationVendorItem.deserializeBinary(new Uint8Array(buffer_arg));
|
|
160
|
+
}
|
|
161
|
+
|
|
107
162
|
function serialize_ReferenceId(arg) {
|
|
108
163
|
if (!(arg instanceof prisca_v1_core_messaging_notification_pb.ReferenceId)) {
|
|
109
164
|
throw new Error('Expected argument of type ReferenceId');
|
|
@@ -161,6 +216,28 @@ var NotificationServiceService = exports.NotificationServiceService = {
|
|
|
161
216
|
responseSerialize: serialize_EmptyMessage,
|
|
162
217
|
responseDeserialize: deserialize_EmptyMessage,
|
|
163
218
|
},
|
|
219
|
+
markAsReadNotificationVendor: {
|
|
220
|
+
path: '/NotificationService/MarkAsReadNotificationVendor',
|
|
221
|
+
requestStream: false,
|
|
222
|
+
responseStream: false,
|
|
223
|
+
requestType: prisca_v1_core_messaging_notification_pb.ReferenceIds,
|
|
224
|
+
responseType: prisca_v1_core_messaging_notification_pb.EmptyMessage,
|
|
225
|
+
requestSerialize: serialize_ReferenceIds,
|
|
226
|
+
requestDeserialize: deserialize_ReferenceIds,
|
|
227
|
+
responseSerialize: serialize_EmptyMessage,
|
|
228
|
+
responseDeserialize: deserialize_EmptyMessage,
|
|
229
|
+
},
|
|
230
|
+
markAsUnReadNotificationVendor: {
|
|
231
|
+
path: '/NotificationService/MarkAsUnReadNotificationVendor',
|
|
232
|
+
requestStream: false,
|
|
233
|
+
responseStream: false,
|
|
234
|
+
requestType: prisca_v1_core_messaging_notification_pb.ReferenceIds,
|
|
235
|
+
responseType: prisca_v1_core_messaging_notification_pb.EmptyMessage,
|
|
236
|
+
requestSerialize: serialize_ReferenceIds,
|
|
237
|
+
requestDeserialize: deserialize_ReferenceIds,
|
|
238
|
+
responseSerialize: serialize_EmptyMessage,
|
|
239
|
+
responseDeserialize: deserialize_EmptyMessage,
|
|
240
|
+
},
|
|
164
241
|
deleteNotificationEmployee: {
|
|
165
242
|
path: '/NotificationService/DeleteNotificationEmployee',
|
|
166
243
|
requestStream: false,
|
|
@@ -172,6 +249,17 @@ var NotificationServiceService = exports.NotificationServiceService = {
|
|
|
172
249
|
responseSerialize: serialize_DeleteNotificationEmployeeRes,
|
|
173
250
|
responseDeserialize: deserialize_DeleteNotificationEmployeeRes,
|
|
174
251
|
},
|
|
252
|
+
deleteNotificationVendor: {
|
|
253
|
+
path: '/NotificationService/DeleteNotificationVendor',
|
|
254
|
+
requestStream: false,
|
|
255
|
+
responseStream: false,
|
|
256
|
+
requestType: prisca_v1_core_messaging_notification_pb.DeleteNotificationVendorReq,
|
|
257
|
+
responseType: prisca_v1_core_messaging_notification_pb.DeleteNotificationVendorRes,
|
|
258
|
+
requestSerialize: serialize_DeleteNotificationVendorReq,
|
|
259
|
+
requestDeserialize: deserialize_DeleteNotificationVendorReq,
|
|
260
|
+
responseSerialize: serialize_DeleteNotificationVendorRes,
|
|
261
|
+
responseDeserialize: deserialize_DeleteNotificationVendorRes,
|
|
262
|
+
},
|
|
175
263
|
getListNotificationEmployee: {
|
|
176
264
|
path: '/NotificationService/GetListNotificationEmployee',
|
|
177
265
|
requestStream: false,
|
|
@@ -183,6 +271,17 @@ var NotificationServiceService = exports.NotificationServiceService = {
|
|
|
183
271
|
responseSerialize: serialize_GetListNotificationEmployeeRes,
|
|
184
272
|
responseDeserialize: deserialize_GetListNotificationEmployeeRes,
|
|
185
273
|
},
|
|
274
|
+
getListNotificationVendor: {
|
|
275
|
+
path: '/NotificationService/GetListNotificationVendor',
|
|
276
|
+
requestStream: false,
|
|
277
|
+
responseStream: false,
|
|
278
|
+
requestType: prisca_v1_core_messaging_notification_pb.GetListNotificationVendorReq,
|
|
279
|
+
responseType: prisca_v1_core_messaging_notification_pb.GetListNotificationVendorRes,
|
|
280
|
+
requestSerialize: serialize_GetListNotificationVendorReq,
|
|
281
|
+
requestDeserialize: deserialize_GetListNotificationVendorReq,
|
|
282
|
+
responseSerialize: serialize_GetListNotificationVendorRes,
|
|
283
|
+
responseDeserialize: deserialize_GetListNotificationVendorRes,
|
|
284
|
+
},
|
|
186
285
|
getNotificationEmployeeByReferenceId: {
|
|
187
286
|
path: '/NotificationService/GetNotificationEmployeeByReferenceId',
|
|
188
287
|
requestStream: false,
|
|
@@ -194,16 +293,38 @@ var NotificationServiceService = exports.NotificationServiceService = {
|
|
|
194
293
|
responseSerialize: serialize_NotificationEmployeeItem,
|
|
195
294
|
responseDeserialize: deserialize_NotificationEmployeeItem,
|
|
196
295
|
},
|
|
296
|
+
getNotificationVendorByReferenceId: {
|
|
297
|
+
path: '/NotificationService/GetNotificationVendorByReferenceId',
|
|
298
|
+
requestStream: false,
|
|
299
|
+
responseStream: false,
|
|
300
|
+
requestType: prisca_v1_core_messaging_notification_pb.ReferenceId,
|
|
301
|
+
responseType: prisca_v1_core_messaging_notification_pb.NotificationVendorItem,
|
|
302
|
+
requestSerialize: serialize_ReferenceId,
|
|
303
|
+
requestDeserialize: deserialize_ReferenceId,
|
|
304
|
+
responseSerialize: serialize_NotificationVendorItem,
|
|
305
|
+
responseDeserialize: deserialize_NotificationVendorItem,
|
|
306
|
+
},
|
|
197
307
|
countUnReadNotificationEmployee: {
|
|
198
308
|
path: '/NotificationService/CountUnReadNotificationEmployee',
|
|
199
309
|
requestStream: false,
|
|
200
310
|
responseStream: false,
|
|
201
311
|
requestType: prisca_v1_core_messaging_notification_pb.EmptyMessage,
|
|
202
|
-
responseType: prisca_v1_core_messaging_notification_pb.
|
|
312
|
+
responseType: prisca_v1_core_messaging_notification_pb.CountUnreadNotificationRes,
|
|
313
|
+
requestSerialize: serialize_EmptyMessage,
|
|
314
|
+
requestDeserialize: deserialize_EmptyMessage,
|
|
315
|
+
responseSerialize: serialize_CountUnreadNotificationRes,
|
|
316
|
+
responseDeserialize: deserialize_CountUnreadNotificationRes,
|
|
317
|
+
},
|
|
318
|
+
countUnReadNotificationVendor: {
|
|
319
|
+
path: '/NotificationService/CountUnReadNotificationVendor',
|
|
320
|
+
requestStream: false,
|
|
321
|
+
responseStream: false,
|
|
322
|
+
requestType: prisca_v1_core_messaging_notification_pb.EmptyMessage,
|
|
323
|
+
responseType: prisca_v1_core_messaging_notification_pb.CountUnreadNotificationRes,
|
|
203
324
|
requestSerialize: serialize_EmptyMessage,
|
|
204
325
|
requestDeserialize: deserialize_EmptyMessage,
|
|
205
|
-
responseSerialize:
|
|
206
|
-
responseDeserialize:
|
|
326
|
+
responseSerialize: serialize_CountUnreadNotificationRes,
|
|
327
|
+
responseDeserialize: deserialize_CountUnreadNotificationRes,
|
|
207
328
|
},
|
|
208
329
|
};
|
|
209
330
|
|