@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.
Files changed (50) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/bidding/bidding_grpc_pb.js +23 -0
  3. package/prisca/v1/bidding/bidding_pb.js +463 -2
  4. package/prisca/v1/business_fields/business_fields_grpc_pb.js +33 -0
  5. package/prisca/v1/business_fields/business_fields_pb.js +356 -0
  6. package/prisca/v1/core/access_api/access_api_grpc_pb.js +204 -0
  7. package/prisca/v1/core/access_api/access_api_pb.js +3024 -0
  8. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +66 -0
  9. package/prisca/v1/core/access_manager/access_manager_pb.js +1346 -2
  10. package/prisca/v1/core/attribute/attribute_grpc_pb.js +474 -0
  11. package/prisca/v1/core/attribute/attribute_pb.js +6550 -0
  12. package/prisca/v1/core/auth/auth_grpc_pb.js +22 -0
  13. package/prisca/v1/core/auth/auth_pb.js +152 -0
  14. package/prisca/v1/core/commodity/commodity_grpc_pb.js +156 -0
  15. package/prisca/v1/core/commodity/commodity_pb.js +1988 -0
  16. package/prisca/v1/core/company/company_grpc_pb.js +11 -0
  17. package/prisca/v1/core/cron_monitor/cron_monitor_grpc_pb.js +221 -0
  18. package/prisca/v1/core/cron_monitor/cron_monitor_pb.js +2681 -0
  19. package/prisca/v1/core/employee/employee_grpc_pb.js +25 -3
  20. package/prisca/v1/core/employee/employee_pb.js +203 -0
  21. package/prisca/v1/core/identity_provider/identity_provider_grpc_pb.js +156 -0
  22. package/prisca/v1/core/identity_provider/identity_provider_pb.js +2018 -0
  23. package/prisca/v1/core/item_transaction/item_transaction_pb.js +2362 -1022
  24. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +11 -0
  25. package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_pb.js +65 -35
  26. package/prisca/v1/core/material/material_grpc_pb.js +2 -0
  27. package/prisca/v1/core/material/material_pb.js +420 -2
  28. package/prisca/v1/core/messaging/email_template_grpc_pb.js +33 -0
  29. package/prisca/v1/core/messaging/email_template_pb.js +385 -0
  30. package/prisca/v1/core/number_range/number_range_grpc_pb.js +33 -0
  31. package/prisca/v1/core/number_range/number_range_pb.js +385 -0
  32. package/prisca/v1/core/report/report_pb.js +31 -1
  33. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +33 -0
  34. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +364 -0
  35. package/prisca/v1/core/users/users_grpc_pb.js +1 -0
  36. package/prisca/v1/core/users/users_pb.js +2 -0
  37. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +33 -0
  38. package/prisca/v1/delivery_order/delivery_order_pb.js +31 -1
  39. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +33 -0
  40. package/prisca/v1/good_receipt/good_receipt_pb.js +273 -8
  41. package/prisca/v1/invoice/invoice_grpc_pb.js +33 -0
  42. package/prisca/v1/invoice/invoice_pb.js +237 -2
  43. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +33 -0
  44. package/prisca/v1/purchase_order/purchase_order_pb.js +935 -12
  45. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +35 -0
  46. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +527 -66
  47. package/prisca/v1/quotation/quotation_pb.js +55 -2
  48. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -123
  49. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +34 -0
  50. package/prisca/v1/vendor_domain/vendor_domain_pb.js +1365 -0
@@ -41,6 +41,7 @@ goog.exportSymbol('proto.GetGoodReceiptByIdResponse', null, global);
41
41
  goog.exportSymbol('proto.GetGoodReceiptDetailResponse', null, global);
42
42
  goog.exportSymbol('proto.GetGoodReceiptItemDetailPreload', null, global);
43
43
  goog.exportSymbol('proto.GetGoodReceiptItemPreload', null, global);
44
+ goog.exportSymbol('proto.GetGoodReceiptItemServicePreload', null, global);
44
45
  goog.exportSymbol('proto.GetListGoodReceiptReq', null, global);
45
46
  goog.exportSymbol('proto.GetListGoodReceiptRes', null, global);
46
47
  goog.exportSymbol('proto.UpdateGoodReceiptFileReq', null, global);
@@ -362,6 +363,27 @@ if (goog.DEBUG && !COMPILED) {
362
363
  */
363
364
  proto.GetGoodReceiptItemDetailPreload.displayName = 'proto.GetGoodReceiptItemDetailPreload';
364
365
  }
366
+ /**
367
+ * Generated by JsPbCodeGenerator.
368
+ * @param {Array=} opt_data Optional initial data array, typically from a
369
+ * server response, or constructed directly in Javascript. The array is used
370
+ * in place and becomes part of the constructed object. It is not cloned.
371
+ * If no data is provided, the constructed object will be empty, but still
372
+ * valid.
373
+ * @extends {jspb.Message}
374
+ * @constructor
375
+ */
376
+ proto.GetGoodReceiptItemServicePreload = function(opt_data) {
377
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetGoodReceiptItemServicePreload.repeatedFields_, null);
378
+ };
379
+ goog.inherits(proto.GetGoodReceiptItemServicePreload, jspb.Message);
380
+ if (goog.DEBUG && !COMPILED) {
381
+ /**
382
+ * @public
383
+ * @override
384
+ */
385
+ proto.GetGoodReceiptItemServicePreload.displayName = 'proto.GetGoodReceiptItemServicePreload';
386
+ }
365
387
  /**
366
388
  * Generated by JsPbCodeGenerator.
367
389
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -441,7 +463,8 @@ deliveryOrder: (f = msg.getDeliveryOrder()) && prisca_v1_purchase_order_purchase
441
463
  deliveryOrderNumber: jspb.Message.getFieldWithDefault(msg, 15, ""),
442
464
  deliveryOrderDate: jspb.Message.getFieldWithDefault(msg, 16, ""),
443
465
  purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 17, ""),
444
- customTransaction: jspb.Message.getFieldWithDefault(msg, 31, "")
466
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 18, ""),
467
+ requestedBy: jspb.Message.getFieldWithDefault(msg, 19, "")
445
468
  };
446
469
 
447
470
  if (includeInstance) {
@@ -551,10 +574,14 @@ proto.BaseGoodReceipt.deserializeBinaryFromReader = function(msg, reader) {
551
574
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
552
575
  msg.setPurchaseOrderNumber(value);
553
576
  break;
554
- case 31:
577
+ case 18:
555
578
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
556
579
  msg.setCustomTransaction(value);
557
580
  break;
581
+ case 19:
582
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
583
+ msg.setRequestedBy(value);
584
+ break;
558
585
  default:
559
586
  reader.skipField();
560
587
  break;
@@ -711,7 +738,14 @@ proto.BaseGoodReceipt.serializeBinaryToWriter = function(message, writer) {
711
738
  f = message.getCustomTransaction();
712
739
  if (f.length > 0) {
713
740
  writer.writeString(
714
- 31,
741
+ 18,
742
+ f
743
+ );
744
+ }
745
+ f = message.getRequestedBy();
746
+ if (f.length > 0) {
747
+ writer.writeString(
748
+ 19,
715
749
  f
716
750
  );
717
751
  }
@@ -1122,11 +1156,11 @@ proto.BaseGoodReceipt.prototype.setPurchaseOrderNumber = function(value) {
1122
1156
 
1123
1157
 
1124
1158
  /**
1125
- * optional string custom_transaction = 31;
1159
+ * optional string custom_transaction = 18;
1126
1160
  * @return {string}
1127
1161
  */
1128
1162
  proto.BaseGoodReceipt.prototype.getCustomTransaction = function() {
1129
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 31, ""));
1163
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
1130
1164
  };
1131
1165
 
1132
1166
 
@@ -1135,7 +1169,25 @@ proto.BaseGoodReceipt.prototype.getCustomTransaction = function() {
1135
1169
  * @return {!proto.BaseGoodReceipt} returns this
1136
1170
  */
1137
1171
  proto.BaseGoodReceipt.prototype.setCustomTransaction = function(value) {
1138
- return jspb.Message.setProto3StringField(this, 31, value);
1172
+ return jspb.Message.setProto3StringField(this, 18, value);
1173
+ };
1174
+
1175
+
1176
+ /**
1177
+ * optional string requested_by = 19;
1178
+ * @return {string}
1179
+ */
1180
+ proto.BaseGoodReceipt.prototype.getRequestedBy = function() {
1181
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
1182
+ };
1183
+
1184
+
1185
+ /**
1186
+ * @param {string} value
1187
+ * @return {!proto.BaseGoodReceipt} returns this
1188
+ */
1189
+ proto.BaseGoodReceipt.prototype.setRequestedBy = function(value) {
1190
+ return jspb.Message.setProto3StringField(this, 19, value);
1139
1191
  };
1140
1192
 
1141
1193
 
@@ -3398,7 +3450,7 @@ proto.GetGoodReceiptDetailResponse.prototype.clearTransactionBuilderItemsList =
3398
3450
  * @private {!Array<number>}
3399
3451
  * @const
3400
3452
  */
3401
- proto.GetGoodReceiptItemPreload.repeatedFields_ = [1,2];
3453
+ proto.GetGoodReceiptItemPreload.repeatedFields_ = [1,2,3];
3402
3454
 
3403
3455
 
3404
3456
 
@@ -3434,7 +3486,9 @@ proto.GetGoodReceiptItemPreload.toObject = function(includeInstance, msg) {
3434
3486
  transactionBuilderItemList: jspb.Message.toObjectList(msg.getTransactionBuilderItemList(),
3435
3487
  prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
3436
3488
  transactionBuilderItemDetailsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailsList(),
3437
- proto.GetGoodReceiptItemDetailPreload.toObject, includeInstance)
3489
+ proto.GetGoodReceiptItemDetailPreload.toObject, includeInstance),
3490
+ transactionBuilderItemServicesList: jspb.Message.toObjectList(msg.getTransactionBuilderItemServicesList(),
3491
+ proto.GetGoodReceiptItemServicePreload.toObject, includeInstance)
3438
3492
  };
3439
3493
 
3440
3494
  if (includeInstance) {
@@ -3481,6 +3535,11 @@ proto.GetGoodReceiptItemPreload.deserializeBinaryFromReader = function(msg, read
3481
3535
  reader.readMessage(value,proto.GetGoodReceiptItemDetailPreload.deserializeBinaryFromReader);
3482
3536
  msg.addTransactionBuilderItemDetails(value);
3483
3537
  break;
3538
+ case 3:
3539
+ var value = new proto.GetGoodReceiptItemServicePreload;
3540
+ reader.readMessage(value,proto.GetGoodReceiptItemServicePreload.deserializeBinaryFromReader);
3541
+ msg.addTransactionBuilderItemServices(value);
3542
+ break;
3484
3543
  default:
3485
3544
  reader.skipField();
3486
3545
  break;
@@ -3526,6 +3585,14 @@ proto.GetGoodReceiptItemPreload.serializeBinaryToWriter = function(message, writ
3526
3585
  proto.GetGoodReceiptItemDetailPreload.serializeBinaryToWriter
3527
3586
  );
3528
3587
  }
3588
+ f = message.getTransactionBuilderItemServicesList();
3589
+ if (f.length > 0) {
3590
+ writer.writeRepeatedMessage(
3591
+ 3,
3592
+ f,
3593
+ proto.GetGoodReceiptItemServicePreload.serializeBinaryToWriter
3594
+ );
3595
+ }
3529
3596
  };
3530
3597
 
3531
3598
 
@@ -3605,6 +3672,44 @@ proto.GetGoodReceiptItemPreload.prototype.clearTransactionBuilderItemDetailsList
3605
3672
  };
3606
3673
 
3607
3674
 
3675
+ /**
3676
+ * repeated GetGoodReceiptItemServicePreload transaction_builder_item_services = 3;
3677
+ * @return {!Array<!proto.GetGoodReceiptItemServicePreload>}
3678
+ */
3679
+ proto.GetGoodReceiptItemPreload.prototype.getTransactionBuilderItemServicesList = function() {
3680
+ return /** @type{!Array<!proto.GetGoodReceiptItemServicePreload>} */ (
3681
+ jspb.Message.getRepeatedWrapperField(this, proto.GetGoodReceiptItemServicePreload, 3));
3682
+ };
3683
+
3684
+
3685
+ /**
3686
+ * @param {!Array<!proto.GetGoodReceiptItemServicePreload>} value
3687
+ * @return {!proto.GetGoodReceiptItemPreload} returns this
3688
+ */
3689
+ proto.GetGoodReceiptItemPreload.prototype.setTransactionBuilderItemServicesList = function(value) {
3690
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
3691
+ };
3692
+
3693
+
3694
+ /**
3695
+ * @param {!proto.GetGoodReceiptItemServicePreload=} opt_value
3696
+ * @param {number=} opt_index
3697
+ * @return {!proto.GetGoodReceiptItemServicePreload}
3698
+ */
3699
+ proto.GetGoodReceiptItemPreload.prototype.addTransactionBuilderItemServices = function(opt_value, opt_index) {
3700
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.GetGoodReceiptItemServicePreload, opt_index);
3701
+ };
3702
+
3703
+
3704
+ /**
3705
+ * Clears the list making it empty but non-null.
3706
+ * @return {!proto.GetGoodReceiptItemPreload} returns this
3707
+ */
3708
+ proto.GetGoodReceiptItemPreload.prototype.clearTransactionBuilderItemServicesList = function() {
3709
+ return this.setTransactionBuilderItemServicesList([]);
3710
+ };
3711
+
3712
+
3608
3713
 
3609
3714
  /**
3610
3715
  * List of repeated fields within this message type.
@@ -3766,6 +3871,166 @@ proto.GetGoodReceiptItemDetailPreload.prototype.clearTransactionBuilderItemDetai
3766
3871
 
3767
3872
 
3768
3873
 
3874
+ /**
3875
+ * List of repeated fields within this message type.
3876
+ * @private {!Array<number>}
3877
+ * @const
3878
+ */
3879
+ proto.GetGoodReceiptItemServicePreload.repeatedFields_ = [1];
3880
+
3881
+
3882
+
3883
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3884
+ /**
3885
+ * Creates an object representation of this proto.
3886
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3887
+ * Optional fields that are not set will be set to undefined.
3888
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3889
+ * For the list of reserved names please see:
3890
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3891
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3892
+ * JSPB instance for transitional soy proto support:
3893
+ * http://goto/soy-param-migration
3894
+ * @return {!Object}
3895
+ */
3896
+ proto.GetGoodReceiptItemServicePreload.prototype.toObject = function(opt_includeInstance) {
3897
+ return proto.GetGoodReceiptItemServicePreload.toObject(opt_includeInstance, this);
3898
+ };
3899
+
3900
+
3901
+ /**
3902
+ * Static version of the {@see toObject} method.
3903
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3904
+ * the JSPB instance for transitional soy proto support:
3905
+ * http://goto/soy-param-migration
3906
+ * @param {!proto.GetGoodReceiptItemServicePreload} msg The msg instance to transform.
3907
+ * @return {!Object}
3908
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3909
+ */
3910
+ proto.GetGoodReceiptItemServicePreload.toObject = function(includeInstance, msg) {
3911
+ var f, obj = {
3912
+ transactionBuilderItemServiceList: jspb.Message.toObjectList(msg.getTransactionBuilderItemServiceList(),
3913
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance)
3914
+ };
3915
+
3916
+ if (includeInstance) {
3917
+ obj.$jspbMessageInstance = msg;
3918
+ }
3919
+ return obj;
3920
+ };
3921
+ }
3922
+
3923
+
3924
+ /**
3925
+ * Deserializes binary data (in protobuf wire format).
3926
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3927
+ * @return {!proto.GetGoodReceiptItemServicePreload}
3928
+ */
3929
+ proto.GetGoodReceiptItemServicePreload.deserializeBinary = function(bytes) {
3930
+ var reader = new jspb.BinaryReader(bytes);
3931
+ var msg = new proto.GetGoodReceiptItemServicePreload;
3932
+ return proto.GetGoodReceiptItemServicePreload.deserializeBinaryFromReader(msg, reader);
3933
+ };
3934
+
3935
+
3936
+ /**
3937
+ * Deserializes binary data (in protobuf wire format) from the
3938
+ * given reader into the given message object.
3939
+ * @param {!proto.GetGoodReceiptItemServicePreload} msg The message object to deserialize into.
3940
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3941
+ * @return {!proto.GetGoodReceiptItemServicePreload}
3942
+ */
3943
+ proto.GetGoodReceiptItemServicePreload.deserializeBinaryFromReader = function(msg, reader) {
3944
+ while (reader.nextField()) {
3945
+ if (reader.isEndGroup()) {
3946
+ break;
3947
+ }
3948
+ var field = reader.getFieldNumber();
3949
+ switch (field) {
3950
+ case 1:
3951
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
3952
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
3953
+ msg.addTransactionBuilderItemService(value);
3954
+ break;
3955
+ default:
3956
+ reader.skipField();
3957
+ break;
3958
+ }
3959
+ }
3960
+ return msg;
3961
+ };
3962
+
3963
+
3964
+ /**
3965
+ * Serializes the message to binary data (in protobuf wire format).
3966
+ * @return {!Uint8Array}
3967
+ */
3968
+ proto.GetGoodReceiptItemServicePreload.prototype.serializeBinary = function() {
3969
+ var writer = new jspb.BinaryWriter();
3970
+ proto.GetGoodReceiptItemServicePreload.serializeBinaryToWriter(this, writer);
3971
+ return writer.getResultBuffer();
3972
+ };
3973
+
3974
+
3975
+ /**
3976
+ * Serializes the given message to binary data (in protobuf wire
3977
+ * format), writing to the given BinaryWriter.
3978
+ * @param {!proto.GetGoodReceiptItemServicePreload} message
3979
+ * @param {!jspb.BinaryWriter} writer
3980
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3981
+ */
3982
+ proto.GetGoodReceiptItemServicePreload.serializeBinaryToWriter = function(message, writer) {
3983
+ var f = undefined;
3984
+ f = message.getTransactionBuilderItemServiceList();
3985
+ if (f.length > 0) {
3986
+ writer.writeRepeatedMessage(
3987
+ 1,
3988
+ f,
3989
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
3990
+ );
3991
+ }
3992
+ };
3993
+
3994
+
3995
+ /**
3996
+ * repeated TransactionBuilderFieldsDetail transaction_builder_item_service = 1;
3997
+ * @return {!Array<!proto.TransactionBuilderFieldsDetail>}
3998
+ */
3999
+ proto.GetGoodReceiptItemServicePreload.prototype.getTransactionBuilderItemServiceList = function() {
4000
+ return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
4001
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
4002
+ };
4003
+
4004
+
4005
+ /**
4006
+ * @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
4007
+ * @return {!proto.GetGoodReceiptItemServicePreload} returns this
4008
+ */
4009
+ proto.GetGoodReceiptItemServicePreload.prototype.setTransactionBuilderItemServiceList = function(value) {
4010
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
4011
+ };
4012
+
4013
+
4014
+ /**
4015
+ * @param {!proto.TransactionBuilderFieldsDetail=} opt_value
4016
+ * @param {number=} opt_index
4017
+ * @return {!proto.TransactionBuilderFieldsDetail}
4018
+ */
4019
+ proto.GetGoodReceiptItemServicePreload.prototype.addTransactionBuilderItemService = function(opt_value, opt_index) {
4020
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
4021
+ };
4022
+
4023
+
4024
+ /**
4025
+ * Clears the list making it empty but non-null.
4026
+ * @return {!proto.GetGoodReceiptItemServicePreload} returns this
4027
+ */
4028
+ proto.GetGoodReceiptItemServicePreload.prototype.clearTransactionBuilderItemServiceList = function() {
4029
+ return this.setTransactionBuilderItemServiceList([]);
4030
+ };
4031
+
4032
+
4033
+
3769
4034
  /**
3770
4035
  * List of repeated fields within this message type.
3771
4036
  * @private {!Array<number>}
@@ -13,6 +13,28 @@ var prisca_v1_good_receipt_good_receipt_pb = require('../../../prisca/v1/good_re
13
13
  var prisca_v1_core_file_upload_file_upload_pb = require('../../../prisca/v1/core/file_upload/file_upload_pb.js');
14
14
  var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_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_CreateInvoiceReq(arg) {
17
39
  if (!(arg instanceof prisca_v1_invoice_invoice_pb.CreateInvoiceReq)) {
18
40
  throw new Error('Expected argument of type CreateInvoiceReq');
@@ -279,6 +301,17 @@ var InvoiceServiceService = exports.InvoiceServiceService = {
279
301
  responseSerialize: serialize_DeleteInvoiceResponse,
280
302
  responseDeserialize: deserialize_DeleteInvoiceResponse,
281
303
  },
304
+ checkAvailable: {
305
+ path: '/InvoiceService/CheckAvailable',
306
+ requestStream: false,
307
+ responseStream: false,
308
+ requestType: prisca_v1_purchase_order_purchase_order_pb.CheckAvailableReq,
309
+ responseType: prisca_v1_purchase_order_purchase_order_pb.CheckAvailableRes,
310
+ requestSerialize: serialize_CheckAvailableReq,
311
+ requestDeserialize: deserialize_CheckAvailableReq,
312
+ responseSerialize: serialize_CheckAvailableRes,
313
+ responseDeserialize: deserialize_CheckAvailableRes,
314
+ },
282
315
  };
283
316
 
284
317
  exports.InvoiceServiceClient = grpc.makeGenericClientConstructor(InvoiceServiceService, 'InvoiceService');