@aldiokta/protocgen 1.1.25 → 1.1.27

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.
@@ -0,0 +1,188 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var prisca_v1_core_messaging_notification_pb = require('../../../../prisca/v1/core/messaging/notification_pb.js');
6
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
7
+
8
+ function serialize_CreateNotificationReq(arg) {
9
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.CreateNotificationReq)) {
10
+ throw new Error('Expected argument of type CreateNotificationReq');
11
+ }
12
+ return Buffer.from(arg.serializeBinary());
13
+ }
14
+
15
+ function deserialize_CreateNotificationReq(buffer_arg) {
16
+ return prisca_v1_core_messaging_notification_pb.CreateNotificationReq.deserializeBinary(new Uint8Array(buffer_arg));
17
+ }
18
+
19
+ function serialize_CreateNotificationRes(arg) {
20
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.CreateNotificationRes)) {
21
+ throw new Error('Expected argument of type CreateNotificationRes');
22
+ }
23
+ return Buffer.from(arg.serializeBinary());
24
+ }
25
+
26
+ function deserialize_CreateNotificationRes(buffer_arg) {
27
+ return prisca_v1_core_messaging_notification_pb.CreateNotificationRes.deserializeBinary(new Uint8Array(buffer_arg));
28
+ }
29
+
30
+ function serialize_DeleteNotificationEmployeeReq(arg) {
31
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.DeleteNotificationEmployeeReq)) {
32
+ throw new Error('Expected argument of type DeleteNotificationEmployeeReq');
33
+ }
34
+ return Buffer.from(arg.serializeBinary());
35
+ }
36
+
37
+ function deserialize_DeleteNotificationEmployeeReq(buffer_arg) {
38
+ return prisca_v1_core_messaging_notification_pb.DeleteNotificationEmployeeReq.deserializeBinary(new Uint8Array(buffer_arg));
39
+ }
40
+
41
+ function serialize_DeleteNotificationEmployeeRes(arg) {
42
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.DeleteNotificationEmployeeRes)) {
43
+ throw new Error('Expected argument of type DeleteNotificationEmployeeRes');
44
+ }
45
+ return Buffer.from(arg.serializeBinary());
46
+ }
47
+
48
+ function deserialize_DeleteNotificationEmployeeRes(buffer_arg) {
49
+ return prisca_v1_core_messaging_notification_pb.DeleteNotificationEmployeeRes.deserializeBinary(new Uint8Array(buffer_arg));
50
+ }
51
+
52
+ function serialize_EmptyMessage(arg) {
53
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.EmptyMessage)) {
54
+ throw new Error('Expected argument of type EmptyMessage');
55
+ }
56
+ return Buffer.from(arg.serializeBinary());
57
+ }
58
+
59
+ function deserialize_EmptyMessage(buffer_arg) {
60
+ return prisca_v1_core_messaging_notification_pb.EmptyMessage.deserializeBinary(new Uint8Array(buffer_arg));
61
+ }
62
+
63
+ function serialize_GetListNotificationEmployeeReq(arg) {
64
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.GetListNotificationEmployeeReq)) {
65
+ throw new Error('Expected argument of type GetListNotificationEmployeeReq');
66
+ }
67
+ return Buffer.from(arg.serializeBinary());
68
+ }
69
+
70
+ function deserialize_GetListNotificationEmployeeReq(buffer_arg) {
71
+ return prisca_v1_core_messaging_notification_pb.GetListNotificationEmployeeReq.deserializeBinary(new Uint8Array(buffer_arg));
72
+ }
73
+
74
+ function serialize_GetListNotificationEmployeeRes(arg) {
75
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.GetListNotificationEmployeeRes)) {
76
+ throw new Error('Expected argument of type GetListNotificationEmployeeRes');
77
+ }
78
+ return Buffer.from(arg.serializeBinary());
79
+ }
80
+
81
+ function deserialize_GetListNotificationEmployeeRes(buffer_arg) {
82
+ return prisca_v1_core_messaging_notification_pb.GetListNotificationEmployeeRes.deserializeBinary(new Uint8Array(buffer_arg));
83
+ }
84
+
85
+ function serialize_NotificationEmployeeItem(arg) {
86
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.NotificationEmployeeItem)) {
87
+ throw new Error('Expected argument of type NotificationEmployeeItem');
88
+ }
89
+ return Buffer.from(arg.serializeBinary());
90
+ }
91
+
92
+ function deserialize_NotificationEmployeeItem(buffer_arg) {
93
+ return prisca_v1_core_messaging_notification_pb.NotificationEmployeeItem.deserializeBinary(new Uint8Array(buffer_arg));
94
+ }
95
+
96
+ function serialize_ReferenceId(arg) {
97
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.ReferenceId)) {
98
+ throw new Error('Expected argument of type ReferenceId');
99
+ }
100
+ return Buffer.from(arg.serializeBinary());
101
+ }
102
+
103
+ function deserialize_ReferenceId(buffer_arg) {
104
+ return prisca_v1_core_messaging_notification_pb.ReferenceId.deserializeBinary(new Uint8Array(buffer_arg));
105
+ }
106
+
107
+ function serialize_ReferenceIds(arg) {
108
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.ReferenceIds)) {
109
+ throw new Error('Expected argument of type ReferenceIds');
110
+ }
111
+ return Buffer.from(arg.serializeBinary());
112
+ }
113
+
114
+ function deserialize_ReferenceIds(buffer_arg) {
115
+ return prisca_v1_core_messaging_notification_pb.ReferenceIds.deserializeBinary(new Uint8Array(buffer_arg));
116
+ }
117
+
118
+
119
+ var NotificationServiceService = exports.NotificationServiceService = {
120
+ createNotification: {
121
+ path: '/NotificationService/CreateNotification',
122
+ requestStream: false,
123
+ responseStream: false,
124
+ requestType: prisca_v1_core_messaging_notification_pb.CreateNotificationReq,
125
+ responseType: prisca_v1_core_messaging_notification_pb.CreateNotificationRes,
126
+ requestSerialize: serialize_CreateNotificationReq,
127
+ requestDeserialize: deserialize_CreateNotificationReq,
128
+ responseSerialize: serialize_CreateNotificationRes,
129
+ responseDeserialize: deserialize_CreateNotificationRes,
130
+ },
131
+ markAsReadNotificationEmployee: {
132
+ path: '/NotificationService/MarkAsReadNotificationEmployee',
133
+ requestStream: false,
134
+ responseStream: false,
135
+ requestType: prisca_v1_core_messaging_notification_pb.ReferenceIds,
136
+ responseType: prisca_v1_core_messaging_notification_pb.EmptyMessage,
137
+ requestSerialize: serialize_ReferenceIds,
138
+ requestDeserialize: deserialize_ReferenceIds,
139
+ responseSerialize: serialize_EmptyMessage,
140
+ responseDeserialize: deserialize_EmptyMessage,
141
+ },
142
+ markAsUnReadNotificationEmployee: {
143
+ path: '/NotificationService/MarkAsUnReadNotificationEmployee',
144
+ requestStream: false,
145
+ responseStream: false,
146
+ requestType: prisca_v1_core_messaging_notification_pb.ReferenceIds,
147
+ responseType: prisca_v1_core_messaging_notification_pb.EmptyMessage,
148
+ requestSerialize: serialize_ReferenceIds,
149
+ requestDeserialize: deserialize_ReferenceIds,
150
+ responseSerialize: serialize_EmptyMessage,
151
+ responseDeserialize: deserialize_EmptyMessage,
152
+ },
153
+ deleteNotificationEmployee: {
154
+ path: '/NotificationService/DeleteNotificationEmployee',
155
+ requestStream: false,
156
+ responseStream: false,
157
+ requestType: prisca_v1_core_messaging_notification_pb.DeleteNotificationEmployeeReq,
158
+ responseType: prisca_v1_core_messaging_notification_pb.DeleteNotificationEmployeeRes,
159
+ requestSerialize: serialize_DeleteNotificationEmployeeReq,
160
+ requestDeserialize: deserialize_DeleteNotificationEmployeeReq,
161
+ responseSerialize: serialize_DeleteNotificationEmployeeRes,
162
+ responseDeserialize: deserialize_DeleteNotificationEmployeeRes,
163
+ },
164
+ getListNotificationEmployee: {
165
+ path: '/NotificationService/GetListNotificationEmployee',
166
+ requestStream: false,
167
+ responseStream: false,
168
+ requestType: prisca_v1_core_messaging_notification_pb.GetListNotificationEmployeeReq,
169
+ responseType: prisca_v1_core_messaging_notification_pb.GetListNotificationEmployeeRes,
170
+ requestSerialize: serialize_GetListNotificationEmployeeReq,
171
+ requestDeserialize: deserialize_GetListNotificationEmployeeReq,
172
+ responseSerialize: serialize_GetListNotificationEmployeeRes,
173
+ responseDeserialize: deserialize_GetListNotificationEmployeeRes,
174
+ },
175
+ getNotificationEmployeeByReferenceId: {
176
+ path: '/NotificationService/GetNotificationEmployeeByReferenceId',
177
+ requestStream: false,
178
+ responseStream: false,
179
+ requestType: prisca_v1_core_messaging_notification_pb.ReferenceId,
180
+ responseType: prisca_v1_core_messaging_notification_pb.NotificationEmployeeItem,
181
+ requestSerialize: serialize_ReferenceId,
182
+ requestDeserialize: deserialize_ReferenceId,
183
+ responseSerialize: serialize_NotificationEmployeeItem,
184
+ responseDeserialize: deserialize_NotificationEmployeeItem,
185
+ },
186
+ };
187
+
188
+ exports.NotificationServiceClient = grpc.makeGenericClientConstructor(NotificationServiceService, 'NotificationService');