@aldiokta/protocgen 1.1.49 → 1.1.51
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.
- package/package.json +1 -1
- package/prisca/v1/bidding/bidding_pb.js +62 -2
- package/prisca/v1/business_fields/business_fields_grpc_pb.js +180 -0
- package/prisca/v1/business_fields/business_fields_pb.js +4372 -0
- package/prisca/v1/core/bank/bank_grpc_pb.js +156 -0
- package/prisca/v1/core/bank/bank_pb.js +1988 -0
- package/prisca/v1/core/company/company_grpc_pb.js +11 -0
- package/prisca/v1/core/cron_monitor/cron_monitor_grpc_pb.js +221 -0
- package/prisca/v1/core/cron_monitor/cron_monitor_pb.js +2681 -0
- package/prisca/v1/core/employee/employee_grpc_pb.js +11 -0
- package/prisca/v1/core/file_upload/file_upload_pb.js +31 -1
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +3400 -930
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +12 -0
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +102 -1
- package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_grpc_pb.js +180 -0
- package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_pb.js +3707 -0
- package/prisca/v1/core/plant/plant_grpc_pb.js +156 -0
- package/prisca/v1/core/plant/plant_pb.js +2078 -0
- package/prisca/v1/delivery_order/delivery_order_pb.js +31 -1
- package/prisca/v1/global/meta/meta_pb.js +452 -0
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +11 -0
- package/prisca/v1/good_receipt/good_receipt_pb.js +268 -3
- package/prisca/v1/invoice/invoice_grpc_pb.js +11 -0
- package/prisca/v1/invoice/invoice_pb.js +292 -4
- package/prisca/v1/invoice_type/invoice_type_grpc_pb.js +202 -0
- package/prisca/v1/invoice_type/invoice_type_pb.js +3598 -0
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +66 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +1986 -323
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +44 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +2238 -30
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +224 -2
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var prisca_v1_core_plant_plant_pb = require('../../../../prisca/v1/core/plant/plant_pb.js');
|
|
6
|
+
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
|
+
var prisca_v1_core_company_company_pb = require('../../../../prisca/v1/core/company/company_pb.js');
|
|
8
|
+
|
|
9
|
+
function serialize_CreatePlantRequest(arg) {
|
|
10
|
+
if (!(arg instanceof prisca_v1_core_plant_plant_pb.CreatePlantRequest)) {
|
|
11
|
+
throw new Error('Expected argument of type CreatePlantRequest');
|
|
12
|
+
}
|
|
13
|
+
return Buffer.from(arg.serializeBinary());
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function deserialize_CreatePlantRequest(buffer_arg) {
|
|
17
|
+
return prisca_v1_core_plant_plant_pb.CreatePlantRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function serialize_DeletePlantRequest(arg) {
|
|
21
|
+
if (!(arg instanceof prisca_v1_core_plant_plant_pb.DeletePlantRequest)) {
|
|
22
|
+
throw new Error('Expected argument of type DeletePlantRequest');
|
|
23
|
+
}
|
|
24
|
+
return Buffer.from(arg.serializeBinary());
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function deserialize_DeletePlantRequest(buffer_arg) {
|
|
28
|
+
return prisca_v1_core_plant_plant_pb.DeletePlantRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function serialize_DeletePlantResponse(arg) {
|
|
32
|
+
if (!(arg instanceof prisca_v1_core_plant_plant_pb.DeletePlantResponse)) {
|
|
33
|
+
throw new Error('Expected argument of type DeletePlantResponse');
|
|
34
|
+
}
|
|
35
|
+
return Buffer.from(arg.serializeBinary());
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function deserialize_DeletePlantResponse(buffer_arg) {
|
|
39
|
+
return prisca_v1_core_plant_plant_pb.DeletePlantResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function serialize_GetListPlantRequest(arg) {
|
|
43
|
+
if (!(arg instanceof prisca_v1_core_plant_plant_pb.GetListPlantRequest)) {
|
|
44
|
+
throw new Error('Expected argument of type GetListPlantRequest');
|
|
45
|
+
}
|
|
46
|
+
return Buffer.from(arg.serializeBinary());
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function deserialize_GetListPlantRequest(buffer_arg) {
|
|
50
|
+
return prisca_v1_core_plant_plant_pb.GetListPlantRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function serialize_GetListPlantResponse(arg) {
|
|
54
|
+
if (!(arg instanceof prisca_v1_core_plant_plant_pb.GetListPlantResponse)) {
|
|
55
|
+
throw new Error('Expected argument of type GetListPlantResponse');
|
|
56
|
+
}
|
|
57
|
+
return Buffer.from(arg.serializeBinary());
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function deserialize_GetListPlantResponse(buffer_arg) {
|
|
61
|
+
return prisca_v1_core_plant_plant_pb.GetListPlantResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function serialize_Plant(arg) {
|
|
65
|
+
if (!(arg instanceof prisca_v1_core_plant_plant_pb.Plant)) {
|
|
66
|
+
throw new Error('Expected argument of type Plant');
|
|
67
|
+
}
|
|
68
|
+
return Buffer.from(arg.serializeBinary());
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function deserialize_Plant(buffer_arg) {
|
|
72
|
+
return prisca_v1_core_plant_plant_pb.Plant.deserializeBinary(new Uint8Array(buffer_arg));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function serialize_PlantGetByIdRequest(arg) {
|
|
76
|
+
if (!(arg instanceof prisca_v1_core_plant_plant_pb.PlantGetByIdRequest)) {
|
|
77
|
+
throw new Error('Expected argument of type PlantGetByIdRequest');
|
|
78
|
+
}
|
|
79
|
+
return Buffer.from(arg.serializeBinary());
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function deserialize_PlantGetByIdRequest(buffer_arg) {
|
|
83
|
+
return prisca_v1_core_plant_plant_pb.PlantGetByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function serialize_UpdatePlantRequest(arg) {
|
|
87
|
+
if (!(arg instanceof prisca_v1_core_plant_plant_pb.UpdatePlantRequest)) {
|
|
88
|
+
throw new Error('Expected argument of type UpdatePlantRequest');
|
|
89
|
+
}
|
|
90
|
+
return Buffer.from(arg.serializeBinary());
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function deserialize_UpdatePlantRequest(buffer_arg) {
|
|
94
|
+
return prisca_v1_core_plant_plant_pb.UpdatePlantRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
var PlantServiceService = exports.PlantServiceService = {
|
|
99
|
+
createPlant: {
|
|
100
|
+
path: '/PlantService/CreatePlant',
|
|
101
|
+
requestStream: false,
|
|
102
|
+
responseStream: false,
|
|
103
|
+
requestType: prisca_v1_core_plant_plant_pb.CreatePlantRequest,
|
|
104
|
+
responseType: prisca_v1_core_plant_plant_pb.Plant,
|
|
105
|
+
requestSerialize: serialize_CreatePlantRequest,
|
|
106
|
+
requestDeserialize: deserialize_CreatePlantRequest,
|
|
107
|
+
responseSerialize: serialize_Plant,
|
|
108
|
+
responseDeserialize: deserialize_Plant,
|
|
109
|
+
},
|
|
110
|
+
getPlantById: {
|
|
111
|
+
path: '/PlantService/GetPlantById',
|
|
112
|
+
requestStream: false,
|
|
113
|
+
responseStream: false,
|
|
114
|
+
requestType: prisca_v1_core_plant_plant_pb.PlantGetByIdRequest,
|
|
115
|
+
responseType: prisca_v1_core_plant_plant_pb.Plant,
|
|
116
|
+
requestSerialize: serialize_PlantGetByIdRequest,
|
|
117
|
+
requestDeserialize: deserialize_PlantGetByIdRequest,
|
|
118
|
+
responseSerialize: serialize_Plant,
|
|
119
|
+
responseDeserialize: deserialize_Plant,
|
|
120
|
+
},
|
|
121
|
+
updatePlant: {
|
|
122
|
+
path: '/PlantService/UpdatePlant',
|
|
123
|
+
requestStream: false,
|
|
124
|
+
responseStream: false,
|
|
125
|
+
requestType: prisca_v1_core_plant_plant_pb.UpdatePlantRequest,
|
|
126
|
+
responseType: prisca_v1_core_plant_plant_pb.Plant,
|
|
127
|
+
requestSerialize: serialize_UpdatePlantRequest,
|
|
128
|
+
requestDeserialize: deserialize_UpdatePlantRequest,
|
|
129
|
+
responseSerialize: serialize_Plant,
|
|
130
|
+
responseDeserialize: deserialize_Plant,
|
|
131
|
+
},
|
|
132
|
+
deletePlant: {
|
|
133
|
+
path: '/PlantService/DeletePlant',
|
|
134
|
+
requestStream: false,
|
|
135
|
+
responseStream: false,
|
|
136
|
+
requestType: prisca_v1_core_plant_plant_pb.DeletePlantRequest,
|
|
137
|
+
responseType: prisca_v1_core_plant_plant_pb.DeletePlantResponse,
|
|
138
|
+
requestSerialize: serialize_DeletePlantRequest,
|
|
139
|
+
requestDeserialize: deserialize_DeletePlantRequest,
|
|
140
|
+
responseSerialize: serialize_DeletePlantResponse,
|
|
141
|
+
responseDeserialize: deserialize_DeletePlantResponse,
|
|
142
|
+
},
|
|
143
|
+
getListPlant: {
|
|
144
|
+
path: '/PlantService/GetListPlant',
|
|
145
|
+
requestStream: false,
|
|
146
|
+
responseStream: false,
|
|
147
|
+
requestType: prisca_v1_core_plant_plant_pb.GetListPlantRequest,
|
|
148
|
+
responseType: prisca_v1_core_plant_plant_pb.GetListPlantResponse,
|
|
149
|
+
requestSerialize: serialize_GetListPlantRequest,
|
|
150
|
+
requestDeserialize: deserialize_GetListPlantRequest,
|
|
151
|
+
responseSerialize: serialize_GetListPlantResponse,
|
|
152
|
+
responseDeserialize: deserialize_GetListPlantResponse,
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
exports.PlantServiceClient = grpc.makeGenericClientConstructor(PlantServiceService, 'PlantService');
|