@aldiokta/protocgen 1.1.49 → 1.1.50
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/file_upload/file_upload_pb.js +31 -1
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +1783 -593
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +1 -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 +31 -1
- package/prisca/v1/invoice/invoice_grpc_pb.js +11 -0
- package/prisca/v1/invoice/invoice_pb.js +55 -2
- 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 +3670 -2242
- 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 +1802 -0
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +224 -2
|
@@ -479,7 +479,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
479
479
|
* @private {!Array<number>}
|
|
480
480
|
* @const
|
|
481
481
|
*/
|
|
482
|
-
proto.BaseInvoice.repeatedFields_ = [8,9,14];
|
|
482
|
+
proto.BaseInvoice.repeatedFields_ = [8,9,14,39];
|
|
483
483
|
|
|
484
484
|
|
|
485
485
|
|
|
@@ -529,7 +529,9 @@ status: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
|
529
529
|
remarks: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
530
530
|
shippingFilesList: jspb.Message.toObjectList(msg.getShippingFilesList(),
|
|
531
531
|
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
|
|
532
|
-
customTransaction: jspb.Message.getFieldWithDefault(msg, 15, "")
|
|
532
|
+
customTransaction: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
533
|
+
invoiceConditionsList: jspb.Message.toObjectList(msg.getInvoiceConditionsList(),
|
|
534
|
+
prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.toObject, includeInstance)
|
|
533
535
|
};
|
|
534
536
|
|
|
535
537
|
if (includeInstance) {
|
|
@@ -629,6 +631,11 @@ proto.BaseInvoice.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
629
631
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
630
632
|
msg.setCustomTransaction(value);
|
|
631
633
|
break;
|
|
634
|
+
case 39:
|
|
635
|
+
var value = new prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition;
|
|
636
|
+
reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.deserializeBinaryFromReader);
|
|
637
|
+
msg.addInvoiceConditions(value);
|
|
638
|
+
break;
|
|
632
639
|
default:
|
|
633
640
|
reader.skipField();
|
|
634
641
|
break;
|
|
@@ -766,6 +773,14 @@ proto.BaseInvoice.serializeBinaryToWriter = function(message, writer) {
|
|
|
766
773
|
f
|
|
767
774
|
);
|
|
768
775
|
}
|
|
776
|
+
f = message.getInvoiceConditionsList();
|
|
777
|
+
if (f.length > 0) {
|
|
778
|
+
writer.writeRepeatedMessage(
|
|
779
|
+
39,
|
|
780
|
+
f,
|
|
781
|
+
prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.serializeBinaryToWriter
|
|
782
|
+
);
|
|
783
|
+
}
|
|
769
784
|
};
|
|
770
785
|
|
|
771
786
|
|
|
@@ -1099,6 +1114,44 @@ proto.BaseInvoice.prototype.setCustomTransaction = function(value) {
|
|
|
1099
1114
|
};
|
|
1100
1115
|
|
|
1101
1116
|
|
|
1117
|
+
/**
|
|
1118
|
+
* repeated InvoiceCondition invoice_conditions = 39;
|
|
1119
|
+
* @return {!Array<!proto.InvoiceCondition>}
|
|
1120
|
+
*/
|
|
1121
|
+
proto.BaseInvoice.prototype.getInvoiceConditionsList = function() {
|
|
1122
|
+
return /** @type{!Array<!proto.InvoiceCondition>} */ (
|
|
1123
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition, 39));
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* @param {!Array<!proto.InvoiceCondition>} value
|
|
1129
|
+
* @return {!proto.BaseInvoice} returns this
|
|
1130
|
+
*/
|
|
1131
|
+
proto.BaseInvoice.prototype.setInvoiceConditionsList = function(value) {
|
|
1132
|
+
return jspb.Message.setRepeatedWrapperField(this, 39, value);
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* @param {!proto.InvoiceCondition=} opt_value
|
|
1138
|
+
* @param {number=} opt_index
|
|
1139
|
+
* @return {!proto.InvoiceCondition}
|
|
1140
|
+
*/
|
|
1141
|
+
proto.BaseInvoice.prototype.addInvoiceConditions = function(opt_value, opt_index) {
|
|
1142
|
+
return jspb.Message.addToRepeatedWrapperField(this, 39, opt_value, proto.InvoiceCondition, opt_index);
|
|
1143
|
+
};
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
/**
|
|
1147
|
+
* Clears the list making it empty but non-null.
|
|
1148
|
+
* @return {!proto.BaseInvoice} returns this
|
|
1149
|
+
*/
|
|
1150
|
+
proto.BaseInvoice.prototype.clearInvoiceConditionsList = function() {
|
|
1151
|
+
return this.setInvoiceConditionsList([]);
|
|
1152
|
+
};
|
|
1153
|
+
|
|
1154
|
+
|
|
1102
1155
|
|
|
1103
1156
|
|
|
1104
1157
|
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var prisca_v1_invoice_type_invoice_type_pb = require('../../../prisca/v1/invoice_type/invoice_type_pb.js');
|
|
6
|
+
var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
|
+
var prisca_v1_core_item_transaction_item_transaction_pb = require('../../../prisca/v1/core/item_transaction/item_transaction_pb.js');
|
|
8
|
+
var prisca_v1_core_file_upload_file_upload_pb = require('../../../prisca/v1/core/file_upload/file_upload_pb.js');
|
|
9
|
+
var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
|
|
10
|
+
|
|
11
|
+
function serialize_CreateInvoiceTypeReq(arg) {
|
|
12
|
+
if (!(arg instanceof prisca_v1_invoice_type_invoice_type_pb.CreateInvoiceTypeReq)) {
|
|
13
|
+
throw new Error('Expected argument of type CreateInvoiceTypeReq');
|
|
14
|
+
}
|
|
15
|
+
return Buffer.from(arg.serializeBinary());
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function deserialize_CreateInvoiceTypeReq(buffer_arg) {
|
|
19
|
+
return prisca_v1_invoice_type_invoice_type_pb.CreateInvoiceTypeReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function serialize_CreateInvoiceTypeRes(arg) {
|
|
23
|
+
if (!(arg instanceof prisca_v1_invoice_type_invoice_type_pb.CreateInvoiceTypeRes)) {
|
|
24
|
+
throw new Error('Expected argument of type CreateInvoiceTypeRes');
|
|
25
|
+
}
|
|
26
|
+
return Buffer.from(arg.serializeBinary());
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function deserialize_CreateInvoiceTypeRes(buffer_arg) {
|
|
30
|
+
return prisca_v1_invoice_type_invoice_type_pb.CreateInvoiceTypeRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function serialize_DeleteInvoiceTypeRequest(arg) {
|
|
34
|
+
if (!(arg instanceof prisca_v1_invoice_type_invoice_type_pb.DeleteInvoiceTypeRequest)) {
|
|
35
|
+
throw new Error('Expected argument of type DeleteInvoiceTypeRequest');
|
|
36
|
+
}
|
|
37
|
+
return Buffer.from(arg.serializeBinary());
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function deserialize_DeleteInvoiceTypeRequest(buffer_arg) {
|
|
41
|
+
return prisca_v1_invoice_type_invoice_type_pb.DeleteInvoiceTypeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function serialize_DeleteInvoiceTypeResponse(arg) {
|
|
45
|
+
if (!(arg instanceof prisca_v1_invoice_type_invoice_type_pb.DeleteInvoiceTypeResponse)) {
|
|
46
|
+
throw new Error('Expected argument of type DeleteInvoiceTypeResponse');
|
|
47
|
+
}
|
|
48
|
+
return Buffer.from(arg.serializeBinary());
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function deserialize_DeleteInvoiceTypeResponse(buffer_arg) {
|
|
52
|
+
return prisca_v1_invoice_type_invoice_type_pb.DeleteInvoiceTypeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function serialize_GetInvoiceTypeByIdReq(arg) {
|
|
56
|
+
if (!(arg instanceof prisca_v1_invoice_type_invoice_type_pb.GetInvoiceTypeByIdReq)) {
|
|
57
|
+
throw new Error('Expected argument of type GetInvoiceTypeByIdReq');
|
|
58
|
+
}
|
|
59
|
+
return Buffer.from(arg.serializeBinary());
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function deserialize_GetInvoiceTypeByIdReq(buffer_arg) {
|
|
63
|
+
return prisca_v1_invoice_type_invoice_type_pb.GetInvoiceTypeByIdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function serialize_GetInvoiceTypeByIdRes(arg) {
|
|
67
|
+
if (!(arg instanceof prisca_v1_invoice_type_invoice_type_pb.GetInvoiceTypeByIdRes)) {
|
|
68
|
+
throw new Error('Expected argument of type GetInvoiceTypeByIdRes');
|
|
69
|
+
}
|
|
70
|
+
return Buffer.from(arg.serializeBinary());
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function deserialize_GetInvoiceTypeByIdRes(buffer_arg) {
|
|
74
|
+
return prisca_v1_invoice_type_invoice_type_pb.GetInvoiceTypeByIdRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function serialize_GetInvoiceTypeDetailRes(arg) {
|
|
78
|
+
if (!(arg instanceof prisca_v1_invoice_type_invoice_type_pb.GetInvoiceTypeDetailRes)) {
|
|
79
|
+
throw new Error('Expected argument of type GetInvoiceTypeDetailRes');
|
|
80
|
+
}
|
|
81
|
+
return Buffer.from(arg.serializeBinary());
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function deserialize_GetInvoiceTypeDetailRes(buffer_arg) {
|
|
85
|
+
return prisca_v1_invoice_type_invoice_type_pb.GetInvoiceTypeDetailRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function serialize_GetListInvoiceTypeReq(arg) {
|
|
89
|
+
if (!(arg instanceof prisca_v1_invoice_type_invoice_type_pb.GetListInvoiceTypeReq)) {
|
|
90
|
+
throw new Error('Expected argument of type GetListInvoiceTypeReq');
|
|
91
|
+
}
|
|
92
|
+
return Buffer.from(arg.serializeBinary());
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function deserialize_GetListInvoiceTypeReq(buffer_arg) {
|
|
96
|
+
return prisca_v1_invoice_type_invoice_type_pb.GetListInvoiceTypeReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function serialize_GetListInvoiceTypeRes(arg) {
|
|
100
|
+
if (!(arg instanceof prisca_v1_invoice_type_invoice_type_pb.GetListInvoiceTypeRes)) {
|
|
101
|
+
throw new Error('Expected argument of type GetListInvoiceTypeRes');
|
|
102
|
+
}
|
|
103
|
+
return Buffer.from(arg.serializeBinary());
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function deserialize_GetListInvoiceTypeRes(buffer_arg) {
|
|
107
|
+
return prisca_v1_invoice_type_invoice_type_pb.GetListInvoiceTypeRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function serialize_UpdateInvoiceTypeReq(arg) {
|
|
111
|
+
if (!(arg instanceof prisca_v1_invoice_type_invoice_type_pb.UpdateInvoiceTypeReq)) {
|
|
112
|
+
throw new Error('Expected argument of type UpdateInvoiceTypeReq');
|
|
113
|
+
}
|
|
114
|
+
return Buffer.from(arg.serializeBinary());
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function deserialize_UpdateInvoiceTypeReq(buffer_arg) {
|
|
118
|
+
return prisca_v1_invoice_type_invoice_type_pb.UpdateInvoiceTypeReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function serialize_UpdateInvoiceTypeRes(arg) {
|
|
122
|
+
if (!(arg instanceof prisca_v1_invoice_type_invoice_type_pb.UpdateInvoiceTypeRes)) {
|
|
123
|
+
throw new Error('Expected argument of type UpdateInvoiceTypeRes');
|
|
124
|
+
}
|
|
125
|
+
return Buffer.from(arg.serializeBinary());
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function deserialize_UpdateInvoiceTypeRes(buffer_arg) {
|
|
129
|
+
return prisca_v1_invoice_type_invoice_type_pb.UpdateInvoiceTypeRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
var InvoiceTypeServiceService = exports.InvoiceTypeServiceService = {
|
|
134
|
+
createInvoiceType: {
|
|
135
|
+
path: '/InvoiceTypeService/CreateInvoiceType',
|
|
136
|
+
requestStream: false,
|
|
137
|
+
responseStream: false,
|
|
138
|
+
requestType: prisca_v1_invoice_type_invoice_type_pb.CreateInvoiceTypeReq,
|
|
139
|
+
responseType: prisca_v1_invoice_type_invoice_type_pb.CreateInvoiceTypeRes,
|
|
140
|
+
requestSerialize: serialize_CreateInvoiceTypeReq,
|
|
141
|
+
requestDeserialize: deserialize_CreateInvoiceTypeReq,
|
|
142
|
+
responseSerialize: serialize_CreateInvoiceTypeRes,
|
|
143
|
+
responseDeserialize: deserialize_CreateInvoiceTypeRes,
|
|
144
|
+
},
|
|
145
|
+
updateInvoiceType: {
|
|
146
|
+
path: '/InvoiceTypeService/UpdateInvoiceType',
|
|
147
|
+
requestStream: false,
|
|
148
|
+
responseStream: false,
|
|
149
|
+
requestType: prisca_v1_invoice_type_invoice_type_pb.UpdateInvoiceTypeReq,
|
|
150
|
+
responseType: prisca_v1_invoice_type_invoice_type_pb.UpdateInvoiceTypeRes,
|
|
151
|
+
requestSerialize: serialize_UpdateInvoiceTypeReq,
|
|
152
|
+
requestDeserialize: deserialize_UpdateInvoiceTypeReq,
|
|
153
|
+
responseSerialize: serialize_UpdateInvoiceTypeRes,
|
|
154
|
+
responseDeserialize: deserialize_UpdateInvoiceTypeRes,
|
|
155
|
+
},
|
|
156
|
+
getInvoiceTypeById: {
|
|
157
|
+
path: '/InvoiceTypeService/GetInvoiceTypeById',
|
|
158
|
+
requestStream: false,
|
|
159
|
+
responseStream: false,
|
|
160
|
+
requestType: prisca_v1_invoice_type_invoice_type_pb.GetInvoiceTypeByIdReq,
|
|
161
|
+
responseType: prisca_v1_invoice_type_invoice_type_pb.GetInvoiceTypeByIdRes,
|
|
162
|
+
requestSerialize: serialize_GetInvoiceTypeByIdReq,
|
|
163
|
+
requestDeserialize: deserialize_GetInvoiceTypeByIdReq,
|
|
164
|
+
responseSerialize: serialize_GetInvoiceTypeByIdRes,
|
|
165
|
+
responseDeserialize: deserialize_GetInvoiceTypeByIdRes,
|
|
166
|
+
},
|
|
167
|
+
getInvoiceTypeByIdDetail: {
|
|
168
|
+
path: '/InvoiceTypeService/GetInvoiceTypeByIdDetail',
|
|
169
|
+
requestStream: false,
|
|
170
|
+
responseStream: false,
|
|
171
|
+
requestType: prisca_v1_invoice_type_invoice_type_pb.GetInvoiceTypeByIdReq,
|
|
172
|
+
responseType: prisca_v1_invoice_type_invoice_type_pb.GetInvoiceTypeDetailRes,
|
|
173
|
+
requestSerialize: serialize_GetInvoiceTypeByIdReq,
|
|
174
|
+
requestDeserialize: deserialize_GetInvoiceTypeByIdReq,
|
|
175
|
+
responseSerialize: serialize_GetInvoiceTypeDetailRes,
|
|
176
|
+
responseDeserialize: deserialize_GetInvoiceTypeDetailRes,
|
|
177
|
+
},
|
|
178
|
+
getListInvoiceTypes: {
|
|
179
|
+
path: '/InvoiceTypeService/GetListInvoiceTypes',
|
|
180
|
+
requestStream: false,
|
|
181
|
+
responseStream: false,
|
|
182
|
+
requestType: prisca_v1_invoice_type_invoice_type_pb.GetListInvoiceTypeReq,
|
|
183
|
+
responseType: prisca_v1_invoice_type_invoice_type_pb.GetListInvoiceTypeRes,
|
|
184
|
+
requestSerialize: serialize_GetListInvoiceTypeReq,
|
|
185
|
+
requestDeserialize: deserialize_GetListInvoiceTypeReq,
|
|
186
|
+
responseSerialize: serialize_GetListInvoiceTypeRes,
|
|
187
|
+
responseDeserialize: deserialize_GetListInvoiceTypeRes,
|
|
188
|
+
},
|
|
189
|
+
deleteInvoiceType: {
|
|
190
|
+
path: '/InvoiceTypeService/DeleteInvoiceType',
|
|
191
|
+
requestStream: false,
|
|
192
|
+
responseStream: false,
|
|
193
|
+
requestType: prisca_v1_invoice_type_invoice_type_pb.DeleteInvoiceTypeRequest,
|
|
194
|
+
responseType: prisca_v1_invoice_type_invoice_type_pb.DeleteInvoiceTypeResponse,
|
|
195
|
+
requestSerialize: serialize_DeleteInvoiceTypeRequest,
|
|
196
|
+
requestDeserialize: deserialize_DeleteInvoiceTypeRequest,
|
|
197
|
+
responseSerialize: serialize_DeleteInvoiceTypeResponse,
|
|
198
|
+
responseDeserialize: deserialize_DeleteInvoiceTypeResponse,
|
|
199
|
+
},
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
exports.InvoiceTypeServiceClient = grpc.makeGenericClientConstructor(InvoiceTypeServiceService, 'InvoiceTypeService');
|