@aldiokta/protocgen 1.0.19 → 1.0.20

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 (73) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/core/auth/auth.pb.go +998 -0
  3. package/prisca/v1/core/auth/auth_grpc.pb.go +427 -0
  4. package/prisca/v1/core/company/company.pb.go +965 -0
  5. package/prisca/v1/core/company/company_grpc.pb.go +273 -0
  6. package/prisca/v1/core/department_material/department_material.pb.go +776 -0
  7. package/prisca/v1/core/department_material/department_material_grpc.pb.go +236 -0
  8. package/prisca/v1/core/job_grade/job_grade.pb.go +887 -0
  9. package/prisca/v1/core/job_grade/job_grade_grpc.pb.go +273 -0
  10. package/prisca/v1/core/job_position/job_position.pb.go +1196 -0
  11. package/prisca/v1/core/job_position/job_position_grpc.pb.go +273 -0
  12. package/prisca/v1/core/job_title/job_title.pb.go +986 -0
  13. package/prisca/v1/core/job_title/job_title_grpc.pb.go +273 -0
  14. package/prisca/v1/core/line_of_approval/line_of_approval.pb.go +913 -0
  15. package/prisca/v1/core/line_of_approval/line_of_approval_grpc.pb.go +273 -0
  16. package/prisca/v1/core/location/location.pb.go +1397 -0
  17. package/prisca/v1/core/location/location_grpc.pb.go +387 -0
  18. package/prisca/v1/core/material/material.pb.go +1366 -0
  19. package/prisca/v1/core/material/material_grpc.pb.go +273 -0
  20. package/prisca/v1/core/material_group/material_group.pb.go +911 -0
  21. package/prisca/v1/core/material_group/material_group_grpc.pb.go +273 -0
  22. package/prisca/v1/core/material_type/material_type.pb.go +827 -0
  23. package/prisca/v1/core/material_type/material_type_grpc.pb.go +239 -0
  24. package/prisca/v1/core/number_range/number_range.pb.go +916 -0
  25. package/prisca/v1/core/number_range/number_range_grpc.pb.go +273 -0
  26. package/prisca/v1/core/organization/organization.pb.go +1039 -0
  27. package/prisca/v1/core/organization/organization_grpc.pb.go +273 -0
  28. package/prisca/v1/core/organization_level/organization_level.pb.go +853 -0
  29. package/prisca/v1/core/organization_level/organization_level_grpc.pb.go +274 -0
  30. package/prisca/v1/core/procurement/procurement.pb.go +622 -0
  31. package/prisca/v1/core/procurement/procurement_grpc.pb.go +275 -0
  32. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.pb.go +1550 -0
  33. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc.pb.go +388 -0
  34. package/prisca/v1/core/recipient_roles/recipient_roles.pb.go +141 -0
  35. package/prisca/v1/core/role/role.pb.go +797 -0
  36. package/prisca/v1/core/role/role_grpc.pb.go +273 -0
  37. package/prisca/v1/core/transaction_builder/transaction_builder.pb.go +3217 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder_grpc.pb.go +656 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.pb.go +973 -0
  40. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc.pb.go +278 -0
  41. package/prisca/v1/core/users/users.pb.go +281 -0
  42. package/prisca/v1/core/users_role/users_role.pb.go +813 -0
  43. package/prisca/v1/core/users_role/users_role_grpc.pb.go +273 -0
  44. package/prisca/v1/core/work_location/work_location.pb.go +995 -0
  45. package/prisca/v1/core/work_location/work_location_grpc.pb.go +273 -0
  46. package/prisca/v1/core/work_locations/work_locations.pb.go +184 -0
  47. package/prisca/v1/core/work_locations/work_locations_grpc.pb.go +76 -0
  48. package/prisca/v1/core/workflow/workflow.pb.go +2057 -0
  49. package/prisca/v1/core/workflow/workflow_grpc.pb.go +273 -0
  50. package/prisca/v1/global/meta/meta.pb.go +446 -0
  51. package/prisca/v1/core/auth/auth.proto +0 -100
  52. package/prisca/v1/core/company/company.proto +0 -86
  53. package/prisca/v1/core/department_material/department_material.proto +0 -69
  54. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  55. package/prisca/v1/core/job_position/job_position.proto +0 -107
  56. package/prisca/v1/core/job_title/job_title.proto +0 -88
  57. package/prisca/v1/core/location/location.proto +0 -124
  58. package/prisca/v1/core/material/material.proto +0 -127
  59. package/prisca/v1/core/material_group/material_group.proto +0 -79
  60. package/prisca/v1/core/material_type/material_type.proto +0 -77
  61. package/prisca/v1/core/number_range/number_range.proto +0 -81
  62. package/prisca/v1/core/organization/organization.proto +0 -93
  63. package/prisca/v1/core/organization_level/organization_level.proto +0 -73
  64. package/prisca/v1/core/procurement/procurement.proto +0 -54
  65. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +0 -131
  66. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  67. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -278
  68. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  69. package/prisca/v1/core/users/users.proto +0 -22
  70. package/prisca/v1/core/users_role/users_role.proto +0 -72
  71. package/prisca/v1/core/work_location/work_location.proto +0 -88
  72. package/prisca/v1/core/workflow/workflow.proto +0 -191
  73. package/prisca/v1/global/meta/meta.proto +0 -57
@@ -0,0 +1,275 @@
1
+ // protoc --go_out=. --go-grpc_out=. proto/prisca/procurement/v1/private/*.proto
2
+
3
+ // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
4
+ // versions:
5
+ // - protoc-gen-go-grpc v1.5.1
6
+ // - protoc (unknown)
7
+ // source: prisca/v1/core/procurement/procurement.proto
8
+
9
+ package procurement
10
+
11
+ import (
12
+ context "context"
13
+ grpc "google.golang.org/grpc"
14
+ codes "google.golang.org/grpc/codes"
15
+ status "google.golang.org/grpc/status"
16
+ )
17
+
18
+ // This is a compile-time assertion to ensure that this generated file
19
+ // is compatible with the grpc package it is being compiled against.
20
+ // Requires gRPC-Go v1.64.0 or later.
21
+ const _ = grpc.SupportPackageIsVersion9
22
+
23
+ const (
24
+ ProcurementService_Create_FullMethodName = "/ProcurementService/Create"
25
+ ProcurementService_Update_FullMethodName = "/ProcurementService/Update"
26
+ ProcurementService_Get_FullMethodName = "/ProcurementService/Get"
27
+ ProcurementService_GetSingle_FullMethodName = "/ProcurementService/GetSingle"
28
+ ProcurementService_Delete_FullMethodName = "/ProcurementService/Delete"
29
+ )
30
+
31
+ // ProcurementServiceClient is the client API for ProcurementService service.
32
+ //
33
+ // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
34
+ type ProcurementServiceClient interface {
35
+ Create(ctx context.Context, in *CreatePRRequest, opts ...grpc.CallOption) (*PRDetailResponse, error)
36
+ Update(ctx context.Context, in *UpdatePRRequest, opts ...grpc.CallOption) (*PRDetailResponse, error)
37
+ Get(ctx context.Context, in *GetPRRequest, opts ...grpc.CallOption) (*PRListResponse, error)
38
+ GetSingle(ctx context.Context, in *GetSinglePRRequest, opts ...grpc.CallOption) (*PRDetailResponse, error)
39
+ Delete(ctx context.Context, in *GetSinglePRRequest, opts ...grpc.CallOption) (*SuccessResponse, error)
40
+ }
41
+
42
+ type procurementServiceClient struct {
43
+ cc grpc.ClientConnInterface
44
+ }
45
+
46
+ func NewProcurementServiceClient(cc grpc.ClientConnInterface) ProcurementServiceClient {
47
+ return &procurementServiceClient{cc}
48
+ }
49
+
50
+ func (c *procurementServiceClient) Create(ctx context.Context, in *CreatePRRequest, opts ...grpc.CallOption) (*PRDetailResponse, error) {
51
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
52
+ out := new(PRDetailResponse)
53
+ err := c.cc.Invoke(ctx, ProcurementService_Create_FullMethodName, in, out, cOpts...)
54
+ if err != nil {
55
+ return nil, err
56
+ }
57
+ return out, nil
58
+ }
59
+
60
+ func (c *procurementServiceClient) Update(ctx context.Context, in *UpdatePRRequest, opts ...grpc.CallOption) (*PRDetailResponse, error) {
61
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
62
+ out := new(PRDetailResponse)
63
+ err := c.cc.Invoke(ctx, ProcurementService_Update_FullMethodName, in, out, cOpts...)
64
+ if err != nil {
65
+ return nil, err
66
+ }
67
+ return out, nil
68
+ }
69
+
70
+ func (c *procurementServiceClient) Get(ctx context.Context, in *GetPRRequest, opts ...grpc.CallOption) (*PRListResponse, error) {
71
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
72
+ out := new(PRListResponse)
73
+ err := c.cc.Invoke(ctx, ProcurementService_Get_FullMethodName, in, out, cOpts...)
74
+ if err != nil {
75
+ return nil, err
76
+ }
77
+ return out, nil
78
+ }
79
+
80
+ func (c *procurementServiceClient) GetSingle(ctx context.Context, in *GetSinglePRRequest, opts ...grpc.CallOption) (*PRDetailResponse, error) {
81
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
82
+ out := new(PRDetailResponse)
83
+ err := c.cc.Invoke(ctx, ProcurementService_GetSingle_FullMethodName, in, out, cOpts...)
84
+ if err != nil {
85
+ return nil, err
86
+ }
87
+ return out, nil
88
+ }
89
+
90
+ func (c *procurementServiceClient) Delete(ctx context.Context, in *GetSinglePRRequest, opts ...grpc.CallOption) (*SuccessResponse, error) {
91
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
92
+ out := new(SuccessResponse)
93
+ err := c.cc.Invoke(ctx, ProcurementService_Delete_FullMethodName, in, out, cOpts...)
94
+ if err != nil {
95
+ return nil, err
96
+ }
97
+ return out, nil
98
+ }
99
+
100
+ // ProcurementServiceServer is the server API for ProcurementService service.
101
+ // All implementations must embed UnimplementedProcurementServiceServer
102
+ // for forward compatibility.
103
+ type ProcurementServiceServer interface {
104
+ Create(context.Context, *CreatePRRequest) (*PRDetailResponse, error)
105
+ Update(context.Context, *UpdatePRRequest) (*PRDetailResponse, error)
106
+ Get(context.Context, *GetPRRequest) (*PRListResponse, error)
107
+ GetSingle(context.Context, *GetSinglePRRequest) (*PRDetailResponse, error)
108
+ Delete(context.Context, *GetSinglePRRequest) (*SuccessResponse, error)
109
+ mustEmbedUnimplementedProcurementServiceServer()
110
+ }
111
+
112
+ // UnimplementedProcurementServiceServer must be embedded to have
113
+ // forward compatible implementations.
114
+ //
115
+ // NOTE: this should be embedded by value instead of pointer to avoid a nil
116
+ // pointer dereference when methods are called.
117
+ type UnimplementedProcurementServiceServer struct{}
118
+
119
+ func (UnimplementedProcurementServiceServer) Create(context.Context, *CreatePRRequest) (*PRDetailResponse, error) {
120
+ return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
121
+ }
122
+ func (UnimplementedProcurementServiceServer) Update(context.Context, *UpdatePRRequest) (*PRDetailResponse, error) {
123
+ return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
124
+ }
125
+ func (UnimplementedProcurementServiceServer) Get(context.Context, *GetPRRequest) (*PRListResponse, error) {
126
+ return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
127
+ }
128
+ func (UnimplementedProcurementServiceServer) GetSingle(context.Context, *GetSinglePRRequest) (*PRDetailResponse, error) {
129
+ return nil, status.Errorf(codes.Unimplemented, "method GetSingle not implemented")
130
+ }
131
+ func (UnimplementedProcurementServiceServer) Delete(context.Context, *GetSinglePRRequest) (*SuccessResponse, error) {
132
+ return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
133
+ }
134
+ func (UnimplementedProcurementServiceServer) mustEmbedUnimplementedProcurementServiceServer() {}
135
+ func (UnimplementedProcurementServiceServer) testEmbeddedByValue() {}
136
+
137
+ // UnsafeProcurementServiceServer may be embedded to opt out of forward compatibility for this service.
138
+ // Use of this interface is not recommended, as added methods to ProcurementServiceServer will
139
+ // result in compilation errors.
140
+ type UnsafeProcurementServiceServer interface {
141
+ mustEmbedUnimplementedProcurementServiceServer()
142
+ }
143
+
144
+ func RegisterProcurementServiceServer(s grpc.ServiceRegistrar, srv ProcurementServiceServer) {
145
+ // If the following call pancis, it indicates UnimplementedProcurementServiceServer was
146
+ // embedded by pointer and is nil. This will cause panics if an
147
+ // unimplemented method is ever invoked, so we test this at initialization
148
+ // time to prevent it from happening at runtime later due to I/O.
149
+ if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
150
+ t.testEmbeddedByValue()
151
+ }
152
+ s.RegisterService(&ProcurementService_ServiceDesc, srv)
153
+ }
154
+
155
+ func _ProcurementService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
156
+ in := new(CreatePRRequest)
157
+ if err := dec(in); err != nil {
158
+ return nil, err
159
+ }
160
+ if interceptor == nil {
161
+ return srv.(ProcurementServiceServer).Create(ctx, in)
162
+ }
163
+ info := &grpc.UnaryServerInfo{
164
+ Server: srv,
165
+ FullMethod: ProcurementService_Create_FullMethodName,
166
+ }
167
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
168
+ return srv.(ProcurementServiceServer).Create(ctx, req.(*CreatePRRequest))
169
+ }
170
+ return interceptor(ctx, in, info, handler)
171
+ }
172
+
173
+ func _ProcurementService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
174
+ in := new(UpdatePRRequest)
175
+ if err := dec(in); err != nil {
176
+ return nil, err
177
+ }
178
+ if interceptor == nil {
179
+ return srv.(ProcurementServiceServer).Update(ctx, in)
180
+ }
181
+ info := &grpc.UnaryServerInfo{
182
+ Server: srv,
183
+ FullMethod: ProcurementService_Update_FullMethodName,
184
+ }
185
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
186
+ return srv.(ProcurementServiceServer).Update(ctx, req.(*UpdatePRRequest))
187
+ }
188
+ return interceptor(ctx, in, info, handler)
189
+ }
190
+
191
+ func _ProcurementService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
192
+ in := new(GetPRRequest)
193
+ if err := dec(in); err != nil {
194
+ return nil, err
195
+ }
196
+ if interceptor == nil {
197
+ return srv.(ProcurementServiceServer).Get(ctx, in)
198
+ }
199
+ info := &grpc.UnaryServerInfo{
200
+ Server: srv,
201
+ FullMethod: ProcurementService_Get_FullMethodName,
202
+ }
203
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
204
+ return srv.(ProcurementServiceServer).Get(ctx, req.(*GetPRRequest))
205
+ }
206
+ return interceptor(ctx, in, info, handler)
207
+ }
208
+
209
+ func _ProcurementService_GetSingle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
210
+ in := new(GetSinglePRRequest)
211
+ if err := dec(in); err != nil {
212
+ return nil, err
213
+ }
214
+ if interceptor == nil {
215
+ return srv.(ProcurementServiceServer).GetSingle(ctx, in)
216
+ }
217
+ info := &grpc.UnaryServerInfo{
218
+ Server: srv,
219
+ FullMethod: ProcurementService_GetSingle_FullMethodName,
220
+ }
221
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
222
+ return srv.(ProcurementServiceServer).GetSingle(ctx, req.(*GetSinglePRRequest))
223
+ }
224
+ return interceptor(ctx, in, info, handler)
225
+ }
226
+
227
+ func _ProcurementService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
228
+ in := new(GetSinglePRRequest)
229
+ if err := dec(in); err != nil {
230
+ return nil, err
231
+ }
232
+ if interceptor == nil {
233
+ return srv.(ProcurementServiceServer).Delete(ctx, in)
234
+ }
235
+ info := &grpc.UnaryServerInfo{
236
+ Server: srv,
237
+ FullMethod: ProcurementService_Delete_FullMethodName,
238
+ }
239
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
240
+ return srv.(ProcurementServiceServer).Delete(ctx, req.(*GetSinglePRRequest))
241
+ }
242
+ return interceptor(ctx, in, info, handler)
243
+ }
244
+
245
+ // ProcurementService_ServiceDesc is the grpc.ServiceDesc for ProcurementService service.
246
+ // It's only intended for direct use with grpc.RegisterService,
247
+ // and not to be introspected or modified (even as a copy)
248
+ var ProcurementService_ServiceDesc = grpc.ServiceDesc{
249
+ ServiceName: "ProcurementService",
250
+ HandlerType: (*ProcurementServiceServer)(nil),
251
+ Methods: []grpc.MethodDesc{
252
+ {
253
+ MethodName: "Create",
254
+ Handler: _ProcurementService_Create_Handler,
255
+ },
256
+ {
257
+ MethodName: "Update",
258
+ Handler: _ProcurementService_Update_Handler,
259
+ },
260
+ {
261
+ MethodName: "Get",
262
+ Handler: _ProcurementService_Get_Handler,
263
+ },
264
+ {
265
+ MethodName: "GetSingle",
266
+ Handler: _ProcurementService_GetSingle_Handler,
267
+ },
268
+ {
269
+ MethodName: "Delete",
270
+ Handler: _ProcurementService_Delete_Handler,
271
+ },
272
+ },
273
+ Streams: []grpc.StreamDesc{},
274
+ Metadata: "prisca/v1/core/procurement/procurement.proto",
275
+ }