@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.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/bidding/bidding_pb.js +62 -2
  3. package/prisca/v1/business_fields/business_fields_grpc_pb.js +180 -0
  4. package/prisca/v1/business_fields/business_fields_pb.js +4372 -0
  5. package/prisca/v1/core/bank/bank_grpc_pb.js +156 -0
  6. package/prisca/v1/core/bank/bank_pb.js +1988 -0
  7. package/prisca/v1/core/company/company_grpc_pb.js +11 -0
  8. package/prisca/v1/core/cron_monitor/cron_monitor_grpc_pb.js +221 -0
  9. package/prisca/v1/core/cron_monitor/cron_monitor_pb.js +2681 -0
  10. package/prisca/v1/core/employee/employee_grpc_pb.js +11 -0
  11. package/prisca/v1/core/file_upload/file_upload_pb.js +31 -1
  12. package/prisca/v1/core/item_transaction/item_transaction_pb.js +3400 -930
  13. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +12 -0
  14. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +102 -1
  15. package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_grpc_pb.js +180 -0
  16. package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_pb.js +3707 -0
  17. package/prisca/v1/core/plant/plant_grpc_pb.js +156 -0
  18. package/prisca/v1/core/plant/plant_pb.js +2078 -0
  19. package/prisca/v1/delivery_order/delivery_order_pb.js +31 -1
  20. package/prisca/v1/global/meta/meta_pb.js +452 -0
  21. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +11 -0
  22. package/prisca/v1/good_receipt/good_receipt_pb.js +268 -3
  23. package/prisca/v1/invoice/invoice_grpc_pb.js +11 -0
  24. package/prisca/v1/invoice/invoice_pb.js +292 -4
  25. package/prisca/v1/invoice_type/invoice_type_grpc_pb.js +202 -0
  26. package/prisca/v1/invoice_type/invoice_type_pb.js +3598 -0
  27. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +66 -0
  28. package/prisca/v1/purchase_order/purchase_order_pb.js +1986 -323
  29. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +44 -0
  30. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +2238 -30
  31. package/prisca/v1/vendor_domain/vendor_domain_pb.js +224 -2
@@ -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
@@ -479,7 +501,7 @@ if (goog.DEBUG && !COMPILED) {
479
501
  * @private {!Array<number>}
480
502
  * @const
481
503
  */
482
- proto.BaseInvoice.repeatedFields_ = [8,9,14];
504
+ proto.BaseInvoice.repeatedFields_ = [8,9,14,39];
483
505
 
484
506
 
485
507
 
@@ -529,7 +551,9 @@ status: jspb.Message.getFieldWithDefault(msg, 12, ""),
529
551
  remarks: jspb.Message.getFieldWithDefault(msg, 13, ""),
530
552
  shippingFilesList: jspb.Message.toObjectList(msg.getShippingFilesList(),
531
553
  prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
532
- customTransaction: jspb.Message.getFieldWithDefault(msg, 15, "")
554
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 15, ""),
555
+ invoiceConditionsList: jspb.Message.toObjectList(msg.getInvoiceConditionsList(),
556
+ prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.toObject, includeInstance)
533
557
  };
534
558
 
535
559
  if (includeInstance) {
@@ -629,6 +653,11 @@ proto.BaseInvoice.deserializeBinaryFromReader = function(msg, reader) {
629
653
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
630
654
  msg.setCustomTransaction(value);
631
655
  break;
656
+ case 39:
657
+ var value = new prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition;
658
+ reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.deserializeBinaryFromReader);
659
+ msg.addInvoiceConditions(value);
660
+ break;
632
661
  default:
633
662
  reader.skipField();
634
663
  break;
@@ -766,6 +795,14 @@ proto.BaseInvoice.serializeBinaryToWriter = function(message, writer) {
766
795
  f
767
796
  );
768
797
  }
798
+ f = message.getInvoiceConditionsList();
799
+ if (f.length > 0) {
800
+ writer.writeRepeatedMessage(
801
+ 39,
802
+ f,
803
+ prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.serializeBinaryToWriter
804
+ );
805
+ }
769
806
  };
770
807
 
771
808
 
@@ -1099,6 +1136,44 @@ proto.BaseInvoice.prototype.setCustomTransaction = function(value) {
1099
1136
  };
1100
1137
 
1101
1138
 
1139
+ /**
1140
+ * repeated InvoiceCondition invoice_conditions = 39;
1141
+ * @return {!Array<!proto.InvoiceCondition>}
1142
+ */
1143
+ proto.BaseInvoice.prototype.getInvoiceConditionsList = function() {
1144
+ return /** @type{!Array<!proto.InvoiceCondition>} */ (
1145
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition, 39));
1146
+ };
1147
+
1148
+
1149
+ /**
1150
+ * @param {!Array<!proto.InvoiceCondition>} value
1151
+ * @return {!proto.BaseInvoice} returns this
1152
+ */
1153
+ proto.BaseInvoice.prototype.setInvoiceConditionsList = function(value) {
1154
+ return jspb.Message.setRepeatedWrapperField(this, 39, value);
1155
+ };
1156
+
1157
+
1158
+ /**
1159
+ * @param {!proto.InvoiceCondition=} opt_value
1160
+ * @param {number=} opt_index
1161
+ * @return {!proto.InvoiceCondition}
1162
+ */
1163
+ proto.BaseInvoice.prototype.addInvoiceConditions = function(opt_value, opt_index) {
1164
+ return jspb.Message.addToRepeatedWrapperField(this, 39, opt_value, proto.InvoiceCondition, opt_index);
1165
+ };
1166
+
1167
+
1168
+ /**
1169
+ * Clears the list making it empty but non-null.
1170
+ * @return {!proto.BaseInvoice} returns this
1171
+ */
1172
+ proto.BaseInvoice.prototype.clearInvoiceConditionsList = function() {
1173
+ return this.setInvoiceConditionsList([]);
1174
+ };
1175
+
1176
+
1102
1177
 
1103
1178
 
1104
1179
 
@@ -4674,7 +4749,7 @@ proto.ItemGoodReceipt.prototype.setPriceBeforeTax = function(value) {
4674
4749
  * @private {!Array<number>}
4675
4750
  * @const
4676
4751
  */
4677
- proto.GetInvoiceItemPreload.repeatedFields_ = [1,2];
4752
+ proto.GetInvoiceItemPreload.repeatedFields_ = [1,2,3];
4678
4753
 
4679
4754
 
4680
4755
 
@@ -4710,7 +4785,9 @@ proto.GetInvoiceItemPreload.toObject = function(includeInstance, msg) {
4710
4785
  transactionBuilderItemList: jspb.Message.toObjectList(msg.getTransactionBuilderItemList(),
4711
4786
  prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
4712
4787
  transactionBuilderItemDetailsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailsList(),
4713
- proto.GetInvoiceItemDetailPreload.toObject, includeInstance)
4788
+ proto.GetInvoiceItemDetailPreload.toObject, includeInstance),
4789
+ transactionBuilderItemServicesList: jspb.Message.toObjectList(msg.getTransactionBuilderItemServicesList(),
4790
+ proto.GetInvoiceItemServicePreload.toObject, includeInstance)
4714
4791
  };
4715
4792
 
4716
4793
  if (includeInstance) {
@@ -4757,6 +4834,11 @@ proto.GetInvoiceItemPreload.deserializeBinaryFromReader = function(msg, reader)
4757
4834
  reader.readMessage(value,proto.GetInvoiceItemDetailPreload.deserializeBinaryFromReader);
4758
4835
  msg.addTransactionBuilderItemDetails(value);
4759
4836
  break;
4837
+ case 3:
4838
+ var value = new proto.GetInvoiceItemServicePreload;
4839
+ reader.readMessage(value,proto.GetInvoiceItemServicePreload.deserializeBinaryFromReader);
4840
+ msg.addTransactionBuilderItemServices(value);
4841
+ break;
4760
4842
  default:
4761
4843
  reader.skipField();
4762
4844
  break;
@@ -4802,6 +4884,14 @@ proto.GetInvoiceItemPreload.serializeBinaryToWriter = function(message, writer)
4802
4884
  proto.GetInvoiceItemDetailPreload.serializeBinaryToWriter
4803
4885
  );
4804
4886
  }
4887
+ f = message.getTransactionBuilderItemServicesList();
4888
+ if (f.length > 0) {
4889
+ writer.writeRepeatedMessage(
4890
+ 3,
4891
+ f,
4892
+ proto.GetInvoiceItemServicePreload.serializeBinaryToWriter
4893
+ );
4894
+ }
4805
4895
  };
4806
4896
 
4807
4897
 
@@ -4881,6 +4971,44 @@ proto.GetInvoiceItemPreload.prototype.clearTransactionBuilderItemDetailsList = f
4881
4971
  };
4882
4972
 
4883
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
+
4884
5012
 
4885
5013
  /**
4886
5014
  * List of repeated fields within this message type.
@@ -5042,6 +5170,166 @@ proto.GetInvoiceItemDetailPreload.prototype.clearTransactionBuilderItemDetailLis
5042
5170
 
5043
5171
 
5044
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
+
5045
5333
 
5046
5334
 
5047
5335
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -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');