@aldiokta/protocgen 1.0.100 → 1.1.0

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 (36) hide show
  1. package/cherry/v1/core/access_manager/access_manager_grpc_pb.js +1 -0
  2. package/cherry/v1/core/access_manager/access_manager_pb.js +240 -0
  3. package/cherry/v1/core/attribute/attribute_grpc_pb.js +309 -0
  4. package/cherry/v1/core/attribute/attribute_pb.js +4432 -0
  5. package/cherry/v1/core/auth/auth_grpc_pb.js +364 -0
  6. package/cherry/v1/core/auth/auth_pb.js +3766 -0
  7. package/cherry/v1/core/company/company_grpc_pb.js +177 -0
  8. package/cherry/v1/core/company/company_pb.js +2875 -0
  9. package/cherry/v1/core/employee/employee_grpc_pb.js +206 -0
  10. package/cherry/v1/core/employee/employee_pb.js +4283 -0
  11. package/cherry/v1/core/employee_personal/employee_personal_grpc_pb.js +177 -0
  12. package/cherry/v1/core/employee_personal/employee_personal_pb.js +2961 -0
  13. package/cherry/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  14. package/cherry/v1/core/job_grade/job_grade_pb.js +2605 -0
  15. package/cherry/v1/core/job_position/job_position_grpc_pb.js +181 -0
  16. package/cherry/v1/core/job_position/job_position_pb.js +3762 -0
  17. package/cherry/v1/core/job_title/job_title_grpc_pb.js +178 -0
  18. package/cherry/v1/core/job_title/job_title_pb.js +2958 -0
  19. package/cherry/v1/core/link_data_source/link_data_source_grpc_pb.js +177 -0
  20. package/cherry/v1/core/link_data_source/link_data_source_pb.js +2642 -0
  21. package/cherry/v1/core/location/location_grpc_pb.js +837 -0
  22. package/cherry/v1/core/location/location_pb.js +10879 -0
  23. package/cherry/v1/core/organization/organization_grpc_pb.js +180 -0
  24. package/cherry/v1/core/organization/organization_pb.js +3032 -0
  25. package/cherry/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
  26. package/cherry/v1/core/organization_level/organization_level_pb.js +2545 -0
  27. package/cherry/v1/core/transaction_builder/transaction_builder_grpc_pb.js +254 -0
  28. package/cherry/v1/core/transaction_builder/transaction_builder_pb.js +7419 -0
  29. package/cherry/v1/core/users/users_grpc_pb.js +45 -0
  30. package/cherry/v1/core/users/users_pb.js +1246 -0
  31. package/cherry/v1/core/work_location/work_location_grpc_pb.js +179 -0
  32. package/cherry/v1/core/work_location/work_location_pb.js +3972 -0
  33. package/cherry/v1/global/meta/meta_grpc_pb.js +1 -0
  34. package/cherry/v1/global/meta/meta_pb.js +1179 -0
  35. package/package.json +1 -1
  36. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +122 -2
@@ -0,0 +1,364 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var cherry_v1_core_auth_auth_pb = require('../../../../cherry/v1/core/auth/auth_pb.js');
6
+ var cherry_v1_global_meta_meta_pb = require('../../../../cherry/v1/global/meta/meta_pb.js');
7
+
8
+ function serialize_AccessApiCredential(arg) {
9
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.AccessApiCredential)) {
10
+ throw new Error('Expected argument of type AccessApiCredential');
11
+ }
12
+ return Buffer.from(arg.serializeBinary());
13
+ }
14
+
15
+ function deserialize_AccessApiCredential(buffer_arg) {
16
+ return cherry_v1_core_auth_auth_pb.AccessApiCredential.deserializeBinary(new Uint8Array(buffer_arg));
17
+ }
18
+
19
+ function serialize_AccessApiManagersResponse(arg) {
20
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.AccessApiManagersResponse)) {
21
+ throw new Error('Expected argument of type AccessApiManagersResponse');
22
+ }
23
+ return Buffer.from(arg.serializeBinary());
24
+ }
25
+
26
+ function deserialize_AccessApiManagersResponse(buffer_arg) {
27
+ return cherry_v1_core_auth_auth_pb.AccessApiManagersResponse.deserializeBinary(new Uint8Array(buffer_arg));
28
+ }
29
+
30
+ function serialize_AccessCreateRequest(arg) {
31
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.AccessCreateRequest)) {
32
+ throw new Error('Expected argument of type AccessCreateRequest');
33
+ }
34
+ return Buffer.from(arg.serializeBinary());
35
+ }
36
+
37
+ function deserialize_AccessCreateRequest(buffer_arg) {
38
+ return cherry_v1_core_auth_auth_pb.AccessCreateRequest.deserializeBinary(new Uint8Array(buffer_arg));
39
+ }
40
+
41
+ function serialize_AccessResponse(arg) {
42
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.AccessResponse)) {
43
+ throw new Error('Expected argument of type AccessResponse');
44
+ }
45
+ return Buffer.from(arg.serializeBinary());
46
+ }
47
+
48
+ function deserialize_AccessResponse(buffer_arg) {
49
+ return cherry_v1_core_auth_auth_pb.AccessResponse.deserializeBinary(new Uint8Array(buffer_arg));
50
+ }
51
+
52
+ function serialize_AuthVerifyToken(arg) {
53
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.AuthVerifyToken)) {
54
+ throw new Error('Expected argument of type AuthVerifyToken');
55
+ }
56
+ return Buffer.from(arg.serializeBinary());
57
+ }
58
+
59
+ function deserialize_AuthVerifyToken(buffer_arg) {
60
+ return cherry_v1_core_auth_auth_pb.AuthVerifyToken.deserializeBinary(new Uint8Array(buffer_arg));
61
+ }
62
+
63
+ function serialize_ChangePasswordRequest(arg) {
64
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.ChangePasswordRequest)) {
65
+ throw new Error('Expected argument of type ChangePasswordRequest');
66
+ }
67
+ return Buffer.from(arg.serializeBinary());
68
+ }
69
+
70
+ function deserialize_ChangePasswordRequest(buffer_arg) {
71
+ return cherry_v1_core_auth_auth_pb.ChangePasswordRequest.deserializeBinary(new Uint8Array(buffer_arg));
72
+ }
73
+
74
+ function serialize_ChangePasswordResponse(arg) {
75
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.ChangePasswordResponse)) {
76
+ throw new Error('Expected argument of type ChangePasswordResponse');
77
+ }
78
+ return Buffer.from(arg.serializeBinary());
79
+ }
80
+
81
+ function deserialize_ChangePasswordResponse(buffer_arg) {
82
+ return cherry_v1_core_auth_auth_pb.ChangePasswordResponse.deserializeBinary(new Uint8Array(buffer_arg));
83
+ }
84
+
85
+ function serialize_CheckCompaniesRequest(arg) {
86
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.CheckCompaniesRequest)) {
87
+ throw new Error('Expected argument of type CheckCompaniesRequest');
88
+ }
89
+ return Buffer.from(arg.serializeBinary());
90
+ }
91
+
92
+ function deserialize_CheckCompaniesRequest(buffer_arg) {
93
+ return cherry_v1_core_auth_auth_pb.CheckCompaniesRequest.deserializeBinary(new Uint8Array(buffer_arg));
94
+ }
95
+
96
+ function serialize_CreateUserPayload(arg) {
97
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.CreateUserPayload)) {
98
+ throw new Error('Expected argument of type CreateUserPayload');
99
+ }
100
+ return Buffer.from(arg.serializeBinary());
101
+ }
102
+
103
+ function deserialize_CreateUserPayload(buffer_arg) {
104
+ return cherry_v1_core_auth_auth_pb.CreateUserPayload.deserializeBinary(new Uint8Array(buffer_arg));
105
+ }
106
+
107
+ function serialize_ForgotPassworReq(arg) {
108
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.ForgotPassworReq)) {
109
+ throw new Error('Expected argument of type ForgotPassworReq');
110
+ }
111
+ return Buffer.from(arg.serializeBinary());
112
+ }
113
+
114
+ function deserialize_ForgotPassworReq(buffer_arg) {
115
+ return cherry_v1_core_auth_auth_pb.ForgotPassworReq.deserializeBinary(new Uint8Array(buffer_arg));
116
+ }
117
+
118
+ function serialize_GetAccessByIdPayload(arg) {
119
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.GetAccessByIdPayload)) {
120
+ throw new Error('Expected argument of type GetAccessByIdPayload');
121
+ }
122
+ return Buffer.from(arg.serializeBinary());
123
+ }
124
+
125
+ function deserialize_GetAccessByIdPayload(buffer_arg) {
126
+ return cherry_v1_core_auth_auth_pb.GetAccessByIdPayload.deserializeBinary(new Uint8Array(buffer_arg));
127
+ }
128
+
129
+ function serialize_GetListAccessRequest(arg) {
130
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.GetListAccessRequest)) {
131
+ throw new Error('Expected argument of type GetListAccessRequest');
132
+ }
133
+ return Buffer.from(arg.serializeBinary());
134
+ }
135
+
136
+ function deserialize_GetListAccessRequest(buffer_arg) {
137
+ return cherry_v1_core_auth_auth_pb.GetListAccessRequest.deserializeBinary(new Uint8Array(buffer_arg));
138
+ }
139
+
140
+ function serialize_ListAccessResponse(arg) {
141
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.ListAccessResponse)) {
142
+ throw new Error('Expected argument of type ListAccessResponse');
143
+ }
144
+ return Buffer.from(arg.serializeBinary());
145
+ }
146
+
147
+ function deserialize_ListAccessResponse(buffer_arg) {
148
+ return cherry_v1_core_auth_auth_pb.ListAccessResponse.deserializeBinary(new Uint8Array(buffer_arg));
149
+ }
150
+
151
+ function serialize_LoginRequest(arg) {
152
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.LoginRequest)) {
153
+ throw new Error('Expected argument of type LoginRequest');
154
+ }
155
+ return Buffer.from(arg.serializeBinary());
156
+ }
157
+
158
+ function deserialize_LoginRequest(buffer_arg) {
159
+ return cherry_v1_core_auth_auth_pb.LoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
160
+ }
161
+
162
+ function serialize_RequestForgotPasswordReq(arg) {
163
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.RequestForgotPasswordReq)) {
164
+ throw new Error('Expected argument of type RequestForgotPasswordReq');
165
+ }
166
+ return Buffer.from(arg.serializeBinary());
167
+ }
168
+
169
+ function deserialize_RequestForgotPasswordReq(buffer_arg) {
170
+ return cherry_v1_core_auth_auth_pb.RequestForgotPasswordReq.deserializeBinary(new Uint8Array(buffer_arg));
171
+ }
172
+
173
+ function serialize_RequestForgotResponse(arg) {
174
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.RequestForgotResponse)) {
175
+ throw new Error('Expected argument of type RequestForgotResponse');
176
+ }
177
+ return Buffer.from(arg.serializeBinary());
178
+ }
179
+
180
+ function deserialize_RequestForgotResponse(buffer_arg) {
181
+ return cherry_v1_core_auth_auth_pb.RequestForgotResponse.deserializeBinary(new Uint8Array(buffer_arg));
182
+ }
183
+
184
+ function serialize_UpdateAccessPayload(arg) {
185
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.UpdateAccessPayload)) {
186
+ throw new Error('Expected argument of type UpdateAccessPayload');
187
+ }
188
+ return Buffer.from(arg.serializeBinary());
189
+ }
190
+
191
+ function deserialize_UpdateAccessPayload(buffer_arg) {
192
+ return cherry_v1_core_auth_auth_pb.UpdateAccessPayload.deserializeBinary(new Uint8Array(buffer_arg));
193
+ }
194
+
195
+ function serialize_UpdateUserPayload(arg) {
196
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.UpdateUserPayload)) {
197
+ throw new Error('Expected argument of type UpdateUserPayload');
198
+ }
199
+ return Buffer.from(arg.serializeBinary());
200
+ }
201
+
202
+ function deserialize_UpdateUserPayload(buffer_arg) {
203
+ return cherry_v1_core_auth_auth_pb.UpdateUserPayload.deserializeBinary(new Uint8Array(buffer_arg));
204
+ }
205
+
206
+ function serialize_UserResponse(arg) {
207
+ if (!(arg instanceof cherry_v1_core_auth_auth_pb.UserResponse)) {
208
+ throw new Error('Expected argument of type UserResponse');
209
+ }
210
+ return Buffer.from(arg.serializeBinary());
211
+ }
212
+
213
+ function deserialize_UserResponse(buffer_arg) {
214
+ return cherry_v1_core_auth_auth_pb.UserResponse.deserializeBinary(new Uint8Array(buffer_arg));
215
+ }
216
+
217
+
218
+ var AuthServiceService = exports.AuthServiceService = {
219
+ verifyToken: {
220
+ path: '/AuthService/VerifyToken',
221
+ requestStream: false,
222
+ responseStream: false,
223
+ requestType: cherry_v1_core_auth_auth_pb.AuthVerifyToken,
224
+ responseType: cherry_v1_core_auth_auth_pb.UserResponse,
225
+ requestSerialize: serialize_AuthVerifyToken,
226
+ requestDeserialize: deserialize_AuthVerifyToken,
227
+ responseSerialize: serialize_UserResponse,
228
+ responseDeserialize: deserialize_UserResponse,
229
+ },
230
+ loginUser: {
231
+ path: '/AuthService/LoginUser',
232
+ requestStream: false,
233
+ responseStream: false,
234
+ requestType: cherry_v1_core_auth_auth_pb.LoginRequest,
235
+ responseType: cherry_v1_core_auth_auth_pb.UserResponse,
236
+ requestSerialize: serialize_LoginRequest,
237
+ requestDeserialize: deserialize_LoginRequest,
238
+ responseSerialize: serialize_UserResponse,
239
+ responseDeserialize: deserialize_UserResponse,
240
+ },
241
+ createUser: {
242
+ path: '/AuthService/CreateUser',
243
+ requestStream: false,
244
+ responseStream: false,
245
+ requestType: cherry_v1_core_auth_auth_pb.CreateUserPayload,
246
+ responseType: cherry_v1_core_auth_auth_pb.UserResponse,
247
+ requestSerialize: serialize_CreateUserPayload,
248
+ requestDeserialize: deserialize_CreateUserPayload,
249
+ responseSerialize: serialize_UserResponse,
250
+ responseDeserialize: deserialize_UserResponse,
251
+ },
252
+ updateUser: {
253
+ path: '/AuthService/UpdateUser',
254
+ requestStream: false,
255
+ responseStream: false,
256
+ requestType: cherry_v1_core_auth_auth_pb.UpdateUserPayload,
257
+ responseType: cherry_v1_core_auth_auth_pb.UserResponse,
258
+ requestSerialize: serialize_UpdateUserPayload,
259
+ requestDeserialize: deserialize_UpdateUserPayload,
260
+ responseSerialize: serialize_UserResponse,
261
+ responseDeserialize: deserialize_UserResponse,
262
+ },
263
+ verifyAuthorization: {
264
+ path: '/AuthService/VerifyAuthorization',
265
+ requestStream: false,
266
+ responseStream: false,
267
+ requestType: cherry_v1_core_auth_auth_pb.AccessApiCredential,
268
+ responseType: cherry_v1_core_auth_auth_pb.AccessApiManagersResponse,
269
+ requestSerialize: serialize_AccessApiCredential,
270
+ requestDeserialize: deserialize_AccessApiCredential,
271
+ responseSerialize: serialize_AccessApiManagersResponse,
272
+ responseDeserialize: deserialize_AccessApiManagersResponse,
273
+ },
274
+ createAuthorization: {
275
+ path: '/AuthService/CreateAuthorization',
276
+ requestStream: false,
277
+ responseStream: false,
278
+ requestType: cherry_v1_core_auth_auth_pb.AccessCreateRequest,
279
+ responseType: cherry_v1_core_auth_auth_pb.AccessResponse,
280
+ requestSerialize: serialize_AccessCreateRequest,
281
+ requestDeserialize: deserialize_AccessCreateRequest,
282
+ responseSerialize: serialize_AccessResponse,
283
+ responseDeserialize: deserialize_AccessResponse,
284
+ },
285
+ getListAccess: {
286
+ path: '/AuthService/GetListAccess',
287
+ requestStream: false,
288
+ responseStream: false,
289
+ requestType: cherry_v1_core_auth_auth_pb.GetListAccessRequest,
290
+ responseType: cherry_v1_core_auth_auth_pb.ListAccessResponse,
291
+ requestSerialize: serialize_GetListAccessRequest,
292
+ requestDeserialize: deserialize_GetListAccessRequest,
293
+ responseSerialize: serialize_ListAccessResponse,
294
+ responseDeserialize: deserialize_ListAccessResponse,
295
+ },
296
+ updateAccess: {
297
+ path: '/AuthService/UpdateAccess',
298
+ requestStream: false,
299
+ responseStream: false,
300
+ requestType: cherry_v1_core_auth_auth_pb.UpdateAccessPayload,
301
+ responseType: cherry_v1_core_auth_auth_pb.AccessResponse,
302
+ requestSerialize: serialize_UpdateAccessPayload,
303
+ requestDeserialize: deserialize_UpdateAccessPayload,
304
+ responseSerialize: serialize_AccessResponse,
305
+ responseDeserialize: deserialize_AccessResponse,
306
+ },
307
+ getAccessById: {
308
+ path: '/AuthService/GetAccessById',
309
+ requestStream: false,
310
+ responseStream: false,
311
+ requestType: cherry_v1_core_auth_auth_pb.GetAccessByIdPayload,
312
+ responseType: cherry_v1_core_auth_auth_pb.AccessResponse,
313
+ requestSerialize: serialize_GetAccessByIdPayload,
314
+ requestDeserialize: deserialize_GetAccessByIdPayload,
315
+ responseSerialize: serialize_AccessResponse,
316
+ responseDeserialize: deserialize_AccessResponse,
317
+ },
318
+ checkCompanies: {
319
+ path: '/AuthService/CheckCompanies',
320
+ requestStream: false,
321
+ responseStream: false,
322
+ requestType: cherry_v1_core_auth_auth_pb.CheckCompaniesRequest,
323
+ responseType: cherry_v1_core_auth_auth_pb.UserResponse,
324
+ requestSerialize: serialize_CheckCompaniesRequest,
325
+ requestDeserialize: deserialize_CheckCompaniesRequest,
326
+ responseSerialize: serialize_UserResponse,
327
+ responseDeserialize: deserialize_UserResponse,
328
+ },
329
+ requestForgotPassword: {
330
+ path: '/AuthService/RequestForgotPassword',
331
+ requestStream: false,
332
+ responseStream: false,
333
+ requestType: cherry_v1_core_auth_auth_pb.RequestForgotPasswordReq,
334
+ responseType: cherry_v1_core_auth_auth_pb.RequestForgotResponse,
335
+ requestSerialize: serialize_RequestForgotPasswordReq,
336
+ requestDeserialize: deserialize_RequestForgotPasswordReq,
337
+ responseSerialize: serialize_RequestForgotResponse,
338
+ responseDeserialize: deserialize_RequestForgotResponse,
339
+ },
340
+ forgotPassword: {
341
+ path: '/AuthService/ForgotPassword',
342
+ requestStream: false,
343
+ responseStream: false,
344
+ requestType: cherry_v1_core_auth_auth_pb.ForgotPassworReq,
345
+ responseType: cherry_v1_core_auth_auth_pb.UserResponse,
346
+ requestSerialize: serialize_ForgotPassworReq,
347
+ requestDeserialize: deserialize_ForgotPassworReq,
348
+ responseSerialize: serialize_UserResponse,
349
+ responseDeserialize: deserialize_UserResponse,
350
+ },
351
+ changePassword: {
352
+ path: '/AuthService/ChangePassword',
353
+ requestStream: false,
354
+ responseStream: false,
355
+ requestType: cherry_v1_core_auth_auth_pb.ChangePasswordRequest,
356
+ responseType: cherry_v1_core_auth_auth_pb.ChangePasswordResponse,
357
+ requestSerialize: serialize_ChangePasswordRequest,
358
+ requestDeserialize: deserialize_ChangePasswordRequest,
359
+ responseSerialize: serialize_ChangePasswordResponse,
360
+ responseDeserialize: deserialize_ChangePasswordResponse,
361
+ },
362
+ };
363
+
364
+ exports.AuthServiceClient = grpc.makeGenericClientConstructor(AuthServiceService, 'AuthService');