@aldiokta/protocgen 1.1.50 → 1.1.52
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_grpc_pb.js +23 -0
- package/prisca/v1/bidding/bidding_pb.js +463 -2
- package/prisca/v1/business_fields/business_fields_grpc_pb.js +33 -0
- package/prisca/v1/business_fields/business_fields_pb.js +356 -0
- package/prisca/v1/core/access_api/access_api_grpc_pb.js +204 -0
- package/prisca/v1/core/access_api/access_api_pb.js +3024 -0
- package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +66 -0
- package/prisca/v1/core/access_manager/access_manager_pb.js +1346 -2
- package/prisca/v1/core/attribute/attribute_grpc_pb.js +474 -0
- package/prisca/v1/core/attribute/attribute_pb.js +6550 -0
- package/prisca/v1/core/auth/auth_grpc_pb.js +22 -0
- package/prisca/v1/core/auth/auth_pb.js +152 -0
- package/prisca/v1/core/commodity/commodity_grpc_pb.js +156 -0
- package/prisca/v1/core/commodity/commodity_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 +25 -3
- package/prisca/v1/core/employee/employee_pb.js +203 -0
- package/prisca/v1/core/identity_provider/identity_provider_grpc_pb.js +156 -0
- package/prisca/v1/core/identity_provider/identity_provider_pb.js +2018 -0
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +2362 -1022
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +11 -0
- package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_pb.js +65 -35
- package/prisca/v1/core/material/material_grpc_pb.js +2 -0
- package/prisca/v1/core/material/material_pb.js +420 -2
- package/prisca/v1/core/messaging/email_template_grpc_pb.js +33 -0
- package/prisca/v1/core/messaging/email_template_pb.js +385 -0
- package/prisca/v1/core/number_range/number_range_grpc_pb.js +33 -0
- package/prisca/v1/core/number_range/number_range_pb.js +385 -0
- package/prisca/v1/core/report/report_pb.js +31 -1
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +33 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +364 -0
- package/prisca/v1/core/users/users_grpc_pb.js +1 -0
- package/prisca/v1/core/users/users_pb.js +2 -0
- package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +33 -0
- package/prisca/v1/delivery_order/delivery_order_pb.js +31 -1
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +33 -0
- package/prisca/v1/good_receipt/good_receipt_pb.js +273 -8
- package/prisca/v1/invoice/invoice_grpc_pb.js +33 -0
- package/prisca/v1/invoice/invoice_pb.js +237 -2
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +33 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +935 -12
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +35 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +527 -66
- package/prisca/v1/quotation/quotation_pb.js +55 -2
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -123
- package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +34 -0
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +1365 -0
|
@@ -43,6 +43,7 @@ goog.exportSymbol('proto.GetInvoiceByIdRes', null, global);
|
|
|
43
43
|
goog.exportSymbol('proto.GetInvoiceDetailRes', null, global);
|
|
44
44
|
goog.exportSymbol('proto.GetInvoiceItemDetailPreload', null, global);
|
|
45
45
|
goog.exportSymbol('proto.GetInvoiceItemPreload', null, global);
|
|
46
|
+
goog.exportSymbol('proto.GetInvoiceItemServicePreload', null, global);
|
|
46
47
|
goog.exportSymbol('proto.GetListInvoiceReq', null, global);
|
|
47
48
|
goog.exportSymbol('proto.GetListInvoiceRes', null, global);
|
|
48
49
|
goog.exportSymbol('proto.ItemGoodReceipt', null, global);
|
|
@@ -410,6 +411,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
410
411
|
*/
|
|
411
412
|
proto.GetInvoiceItemDetailPreload.displayName = 'proto.GetInvoiceItemDetailPreload';
|
|
412
413
|
}
|
|
414
|
+
/**
|
|
415
|
+
* Generated by JsPbCodeGenerator.
|
|
416
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
417
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
418
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
419
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
420
|
+
* valid.
|
|
421
|
+
* @extends {jspb.Message}
|
|
422
|
+
* @constructor
|
|
423
|
+
*/
|
|
424
|
+
proto.GetInvoiceItemServicePreload = function(opt_data) {
|
|
425
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.GetInvoiceItemServicePreload.repeatedFields_, null);
|
|
426
|
+
};
|
|
427
|
+
goog.inherits(proto.GetInvoiceItemServicePreload, jspb.Message);
|
|
428
|
+
if (goog.DEBUG && !COMPILED) {
|
|
429
|
+
/**
|
|
430
|
+
* @public
|
|
431
|
+
* @override
|
|
432
|
+
*/
|
|
433
|
+
proto.GetInvoiceItemServicePreload.displayName = 'proto.GetInvoiceItemServicePreload';
|
|
434
|
+
}
|
|
413
435
|
/**
|
|
414
436
|
* Generated by JsPbCodeGenerator.
|
|
415
437
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4727,7 +4749,7 @@ proto.ItemGoodReceipt.prototype.setPriceBeforeTax = function(value) {
|
|
|
4727
4749
|
* @private {!Array<number>}
|
|
4728
4750
|
* @const
|
|
4729
4751
|
*/
|
|
4730
|
-
proto.GetInvoiceItemPreload.repeatedFields_ = [1,2];
|
|
4752
|
+
proto.GetInvoiceItemPreload.repeatedFields_ = [1,2,3];
|
|
4731
4753
|
|
|
4732
4754
|
|
|
4733
4755
|
|
|
@@ -4763,7 +4785,9 @@ proto.GetInvoiceItemPreload.toObject = function(includeInstance, msg) {
|
|
|
4763
4785
|
transactionBuilderItemList: jspb.Message.toObjectList(msg.getTransactionBuilderItemList(),
|
|
4764
4786
|
prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
|
|
4765
4787
|
transactionBuilderItemDetailsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailsList(),
|
|
4766
|
-
proto.GetInvoiceItemDetailPreload.toObject, includeInstance)
|
|
4788
|
+
proto.GetInvoiceItemDetailPreload.toObject, includeInstance),
|
|
4789
|
+
transactionBuilderItemServicesList: jspb.Message.toObjectList(msg.getTransactionBuilderItemServicesList(),
|
|
4790
|
+
proto.GetInvoiceItemServicePreload.toObject, includeInstance)
|
|
4767
4791
|
};
|
|
4768
4792
|
|
|
4769
4793
|
if (includeInstance) {
|
|
@@ -4810,6 +4834,11 @@ proto.GetInvoiceItemPreload.deserializeBinaryFromReader = function(msg, reader)
|
|
|
4810
4834
|
reader.readMessage(value,proto.GetInvoiceItemDetailPreload.deserializeBinaryFromReader);
|
|
4811
4835
|
msg.addTransactionBuilderItemDetails(value);
|
|
4812
4836
|
break;
|
|
4837
|
+
case 3:
|
|
4838
|
+
var value = new proto.GetInvoiceItemServicePreload;
|
|
4839
|
+
reader.readMessage(value,proto.GetInvoiceItemServicePreload.deserializeBinaryFromReader);
|
|
4840
|
+
msg.addTransactionBuilderItemServices(value);
|
|
4841
|
+
break;
|
|
4813
4842
|
default:
|
|
4814
4843
|
reader.skipField();
|
|
4815
4844
|
break;
|
|
@@ -4855,6 +4884,14 @@ proto.GetInvoiceItemPreload.serializeBinaryToWriter = function(message, writer)
|
|
|
4855
4884
|
proto.GetInvoiceItemDetailPreload.serializeBinaryToWriter
|
|
4856
4885
|
);
|
|
4857
4886
|
}
|
|
4887
|
+
f = message.getTransactionBuilderItemServicesList();
|
|
4888
|
+
if (f.length > 0) {
|
|
4889
|
+
writer.writeRepeatedMessage(
|
|
4890
|
+
3,
|
|
4891
|
+
f,
|
|
4892
|
+
proto.GetInvoiceItemServicePreload.serializeBinaryToWriter
|
|
4893
|
+
);
|
|
4894
|
+
}
|
|
4858
4895
|
};
|
|
4859
4896
|
|
|
4860
4897
|
|
|
@@ -4934,6 +4971,44 @@ proto.GetInvoiceItemPreload.prototype.clearTransactionBuilderItemDetailsList = f
|
|
|
4934
4971
|
};
|
|
4935
4972
|
|
|
4936
4973
|
|
|
4974
|
+
/**
|
|
4975
|
+
* repeated GetInvoiceItemServicePreload transaction_builder_item_services = 3;
|
|
4976
|
+
* @return {!Array<!proto.GetInvoiceItemServicePreload>}
|
|
4977
|
+
*/
|
|
4978
|
+
proto.GetInvoiceItemPreload.prototype.getTransactionBuilderItemServicesList = function() {
|
|
4979
|
+
return /** @type{!Array<!proto.GetInvoiceItemServicePreload>} */ (
|
|
4980
|
+
jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceItemServicePreload, 3));
|
|
4981
|
+
};
|
|
4982
|
+
|
|
4983
|
+
|
|
4984
|
+
/**
|
|
4985
|
+
* @param {!Array<!proto.GetInvoiceItemServicePreload>} value
|
|
4986
|
+
* @return {!proto.GetInvoiceItemPreload} returns this
|
|
4987
|
+
*/
|
|
4988
|
+
proto.GetInvoiceItemPreload.prototype.setTransactionBuilderItemServicesList = function(value) {
|
|
4989
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
4990
|
+
};
|
|
4991
|
+
|
|
4992
|
+
|
|
4993
|
+
/**
|
|
4994
|
+
* @param {!proto.GetInvoiceItemServicePreload=} opt_value
|
|
4995
|
+
* @param {number=} opt_index
|
|
4996
|
+
* @return {!proto.GetInvoiceItemServicePreload}
|
|
4997
|
+
*/
|
|
4998
|
+
proto.GetInvoiceItemPreload.prototype.addTransactionBuilderItemServices = function(opt_value, opt_index) {
|
|
4999
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.GetInvoiceItemServicePreload, opt_index);
|
|
5000
|
+
};
|
|
5001
|
+
|
|
5002
|
+
|
|
5003
|
+
/**
|
|
5004
|
+
* Clears the list making it empty but non-null.
|
|
5005
|
+
* @return {!proto.GetInvoiceItemPreload} returns this
|
|
5006
|
+
*/
|
|
5007
|
+
proto.GetInvoiceItemPreload.prototype.clearTransactionBuilderItemServicesList = function() {
|
|
5008
|
+
return this.setTransactionBuilderItemServicesList([]);
|
|
5009
|
+
};
|
|
5010
|
+
|
|
5011
|
+
|
|
4937
5012
|
|
|
4938
5013
|
/**
|
|
4939
5014
|
* List of repeated fields within this message type.
|
|
@@ -5095,6 +5170,166 @@ proto.GetInvoiceItemDetailPreload.prototype.clearTransactionBuilderItemDetailLis
|
|
|
5095
5170
|
|
|
5096
5171
|
|
|
5097
5172
|
|
|
5173
|
+
/**
|
|
5174
|
+
* List of repeated fields within this message type.
|
|
5175
|
+
* @private {!Array<number>}
|
|
5176
|
+
* @const
|
|
5177
|
+
*/
|
|
5178
|
+
proto.GetInvoiceItemServicePreload.repeatedFields_ = [1];
|
|
5179
|
+
|
|
5180
|
+
|
|
5181
|
+
|
|
5182
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5183
|
+
/**
|
|
5184
|
+
* Creates an object representation of this proto.
|
|
5185
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5186
|
+
* Optional fields that are not set will be set to undefined.
|
|
5187
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5188
|
+
* For the list of reserved names please see:
|
|
5189
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5190
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5191
|
+
* JSPB instance for transitional soy proto support:
|
|
5192
|
+
* http://goto/soy-param-migration
|
|
5193
|
+
* @return {!Object}
|
|
5194
|
+
*/
|
|
5195
|
+
proto.GetInvoiceItemServicePreload.prototype.toObject = function(opt_includeInstance) {
|
|
5196
|
+
return proto.GetInvoiceItemServicePreload.toObject(opt_includeInstance, this);
|
|
5197
|
+
};
|
|
5198
|
+
|
|
5199
|
+
|
|
5200
|
+
/**
|
|
5201
|
+
* Static version of the {@see toObject} method.
|
|
5202
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5203
|
+
* the JSPB instance for transitional soy proto support:
|
|
5204
|
+
* http://goto/soy-param-migration
|
|
5205
|
+
* @param {!proto.GetInvoiceItemServicePreload} msg The msg instance to transform.
|
|
5206
|
+
* @return {!Object}
|
|
5207
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5208
|
+
*/
|
|
5209
|
+
proto.GetInvoiceItemServicePreload.toObject = function(includeInstance, msg) {
|
|
5210
|
+
var f, obj = {
|
|
5211
|
+
transactionBuilderItemServiceList: jspb.Message.toObjectList(msg.getTransactionBuilderItemServiceList(),
|
|
5212
|
+
prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance)
|
|
5213
|
+
};
|
|
5214
|
+
|
|
5215
|
+
if (includeInstance) {
|
|
5216
|
+
obj.$jspbMessageInstance = msg;
|
|
5217
|
+
}
|
|
5218
|
+
return obj;
|
|
5219
|
+
};
|
|
5220
|
+
}
|
|
5221
|
+
|
|
5222
|
+
|
|
5223
|
+
/**
|
|
5224
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5225
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5226
|
+
* @return {!proto.GetInvoiceItemServicePreload}
|
|
5227
|
+
*/
|
|
5228
|
+
proto.GetInvoiceItemServicePreload.deserializeBinary = function(bytes) {
|
|
5229
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5230
|
+
var msg = new proto.GetInvoiceItemServicePreload;
|
|
5231
|
+
return proto.GetInvoiceItemServicePreload.deserializeBinaryFromReader(msg, reader);
|
|
5232
|
+
};
|
|
5233
|
+
|
|
5234
|
+
|
|
5235
|
+
/**
|
|
5236
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5237
|
+
* given reader into the given message object.
|
|
5238
|
+
* @param {!proto.GetInvoiceItemServicePreload} msg The message object to deserialize into.
|
|
5239
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5240
|
+
* @return {!proto.GetInvoiceItemServicePreload}
|
|
5241
|
+
*/
|
|
5242
|
+
proto.GetInvoiceItemServicePreload.deserializeBinaryFromReader = function(msg, reader) {
|
|
5243
|
+
while (reader.nextField()) {
|
|
5244
|
+
if (reader.isEndGroup()) {
|
|
5245
|
+
break;
|
|
5246
|
+
}
|
|
5247
|
+
var field = reader.getFieldNumber();
|
|
5248
|
+
switch (field) {
|
|
5249
|
+
case 1:
|
|
5250
|
+
var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
|
|
5251
|
+
reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
|
|
5252
|
+
msg.addTransactionBuilderItemService(value);
|
|
5253
|
+
break;
|
|
5254
|
+
default:
|
|
5255
|
+
reader.skipField();
|
|
5256
|
+
break;
|
|
5257
|
+
}
|
|
5258
|
+
}
|
|
5259
|
+
return msg;
|
|
5260
|
+
};
|
|
5261
|
+
|
|
5262
|
+
|
|
5263
|
+
/**
|
|
5264
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5265
|
+
* @return {!Uint8Array}
|
|
5266
|
+
*/
|
|
5267
|
+
proto.GetInvoiceItemServicePreload.prototype.serializeBinary = function() {
|
|
5268
|
+
var writer = new jspb.BinaryWriter();
|
|
5269
|
+
proto.GetInvoiceItemServicePreload.serializeBinaryToWriter(this, writer);
|
|
5270
|
+
return writer.getResultBuffer();
|
|
5271
|
+
};
|
|
5272
|
+
|
|
5273
|
+
|
|
5274
|
+
/**
|
|
5275
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5276
|
+
* format), writing to the given BinaryWriter.
|
|
5277
|
+
* @param {!proto.GetInvoiceItemServicePreload} message
|
|
5278
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5279
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5280
|
+
*/
|
|
5281
|
+
proto.GetInvoiceItemServicePreload.serializeBinaryToWriter = function(message, writer) {
|
|
5282
|
+
var f = undefined;
|
|
5283
|
+
f = message.getTransactionBuilderItemServiceList();
|
|
5284
|
+
if (f.length > 0) {
|
|
5285
|
+
writer.writeRepeatedMessage(
|
|
5286
|
+
1,
|
|
5287
|
+
f,
|
|
5288
|
+
prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
|
|
5289
|
+
);
|
|
5290
|
+
}
|
|
5291
|
+
};
|
|
5292
|
+
|
|
5293
|
+
|
|
5294
|
+
/**
|
|
5295
|
+
* repeated TransactionBuilderFieldsDetail transaction_builder_item_service = 1;
|
|
5296
|
+
* @return {!Array<!proto.TransactionBuilderFieldsDetail>}
|
|
5297
|
+
*/
|
|
5298
|
+
proto.GetInvoiceItemServicePreload.prototype.getTransactionBuilderItemServiceList = function() {
|
|
5299
|
+
return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
|
|
5300
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
|
|
5301
|
+
};
|
|
5302
|
+
|
|
5303
|
+
|
|
5304
|
+
/**
|
|
5305
|
+
* @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
|
|
5306
|
+
* @return {!proto.GetInvoiceItemServicePreload} returns this
|
|
5307
|
+
*/
|
|
5308
|
+
proto.GetInvoiceItemServicePreload.prototype.setTransactionBuilderItemServiceList = function(value) {
|
|
5309
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
5310
|
+
};
|
|
5311
|
+
|
|
5312
|
+
|
|
5313
|
+
/**
|
|
5314
|
+
* @param {!proto.TransactionBuilderFieldsDetail=} opt_value
|
|
5315
|
+
* @param {number=} opt_index
|
|
5316
|
+
* @return {!proto.TransactionBuilderFieldsDetail}
|
|
5317
|
+
*/
|
|
5318
|
+
proto.GetInvoiceItemServicePreload.prototype.addTransactionBuilderItemService = function(opt_value, opt_index) {
|
|
5319
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
|
|
5320
|
+
};
|
|
5321
|
+
|
|
5322
|
+
|
|
5323
|
+
/**
|
|
5324
|
+
* Clears the list making it empty but non-null.
|
|
5325
|
+
* @return {!proto.GetInvoiceItemServicePreload} returns this
|
|
5326
|
+
*/
|
|
5327
|
+
proto.GetInvoiceItemServicePreload.prototype.clearTransactionBuilderItemServiceList = function() {
|
|
5328
|
+
return this.setTransactionBuilderItemServiceList([]);
|
|
5329
|
+
};
|
|
5330
|
+
|
|
5331
|
+
|
|
5332
|
+
|
|
5098
5333
|
|
|
5099
5334
|
|
|
5100
5335
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -13,6 +13,28 @@ var prisca_v1_core_users_users_pb = require('../../../prisca/v1/core/users/users
|
|
|
13
13
|
var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
|
|
14
14
|
var prisca_v1_document_type_document_type_pb = require('../../../prisca/v1/document_type/document_type_pb.js');
|
|
15
15
|
|
|
16
|
+
function serialize_CheckAvailableReq(arg) {
|
|
17
|
+
if (!(arg instanceof prisca_v1_purchase_order_purchase_order_pb.CheckAvailableReq)) {
|
|
18
|
+
throw new Error('Expected argument of type CheckAvailableReq');
|
|
19
|
+
}
|
|
20
|
+
return Buffer.from(arg.serializeBinary());
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function deserialize_CheckAvailableReq(buffer_arg) {
|
|
24
|
+
return prisca_v1_purchase_order_purchase_order_pb.CheckAvailableReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function serialize_CheckAvailableRes(arg) {
|
|
28
|
+
if (!(arg instanceof prisca_v1_purchase_order_purchase_order_pb.CheckAvailableRes)) {
|
|
29
|
+
throw new Error('Expected argument of type CheckAvailableRes');
|
|
30
|
+
}
|
|
31
|
+
return Buffer.from(arg.serializeBinary());
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function deserialize_CheckAvailableRes(buffer_arg) {
|
|
35
|
+
return prisca_v1_purchase_order_purchase_order_pb.CheckAvailableRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
36
|
+
}
|
|
37
|
+
|
|
16
38
|
function serialize_CreatePurchaseOrderRequest(arg) {
|
|
17
39
|
if (!(arg instanceof prisca_v1_purchase_order_purchase_order_pb.CreatePurchaseOrderRequest)) {
|
|
18
40
|
throw new Error('Expected argument of type CreatePurchaseOrderRequest');
|
|
@@ -335,6 +357,17 @@ var PurchaseOrderServiceService = exports.PurchaseOrderServiceService = {
|
|
|
335
357
|
responseSerialize: serialize_SetDownPaymentResponse,
|
|
336
358
|
responseDeserialize: deserialize_SetDownPaymentResponse,
|
|
337
359
|
},
|
|
360
|
+
checkAvailable: {
|
|
361
|
+
path: '/PurchaseOrderService/CheckAvailable',
|
|
362
|
+
requestStream: false,
|
|
363
|
+
responseStream: false,
|
|
364
|
+
requestType: prisca_v1_purchase_order_purchase_order_pb.CheckAvailableReq,
|
|
365
|
+
responseType: prisca_v1_purchase_order_purchase_order_pb.CheckAvailableRes,
|
|
366
|
+
requestSerialize: serialize_CheckAvailableReq,
|
|
367
|
+
requestDeserialize: deserialize_CheckAvailableReq,
|
|
368
|
+
responseSerialize: serialize_CheckAvailableRes,
|
|
369
|
+
responseDeserialize: deserialize_CheckAvailableRes,
|
|
370
|
+
},
|
|
338
371
|
};
|
|
339
372
|
|
|
340
373
|
exports.PurchaseOrderServiceClient = grpc.makeGenericClientConstructor(PurchaseOrderServiceService, 'PurchaseOrderService');
|