@aldiokta/protocgen 1.1.39 → 1.1.41
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 +31 -1
- package/prisca/v1/core/access_manager/access_manager_pb.js +221 -142
- package/prisca/v1/core/auth/auth_pb.js +18 -14
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +231 -7
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +33 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +407 -0
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +22 -0
- package/prisca/v1/good_receipt/good_receipt_pb.js +370 -23
- package/prisca/v1/invoice/invoice_grpc_pb.js +55 -0
- package/prisca/v1/invoice/invoice_pb.js +778 -16
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +22 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +370 -23
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +55 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +673 -1
- package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +55 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +674 -2
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +9911 -2373
|
@@ -43,6 +43,7 @@ goog.exportSymbol('proto.GetGoodReceiptItemDetailPreload', null, global);
|
|
|
43
43
|
goog.exportSymbol('proto.GetGoodReceiptItemPreload', null, global);
|
|
44
44
|
goog.exportSymbol('proto.GetListGoodReceiptReq', null, global);
|
|
45
45
|
goog.exportSymbol('proto.GetListGoodReceiptRes', null, global);
|
|
46
|
+
goog.exportSymbol('proto.UpdateGoodReceiptFileReq', null, global);
|
|
46
47
|
goog.exportSymbol('proto.UpdateGoodReceiptReq', null, global);
|
|
47
48
|
goog.exportSymbol('proto.UpdateGoodReceiptRes', null, global);
|
|
48
49
|
goog.exportSymbol('proto.UpdateGoodReceiptStatusReq', null, global);
|
|
@@ -130,6 +131,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
130
131
|
*/
|
|
131
132
|
proto.UpdateGoodReceiptStatusReq.displayName = 'proto.UpdateGoodReceiptStatusReq';
|
|
132
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* Generated by JsPbCodeGenerator.
|
|
136
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
137
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
138
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
139
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
140
|
+
* valid.
|
|
141
|
+
* @extends {jspb.Message}
|
|
142
|
+
* @constructor
|
|
143
|
+
*/
|
|
144
|
+
proto.UpdateGoodReceiptFileReq = function(opt_data) {
|
|
145
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.UpdateGoodReceiptFileReq.repeatedFields_, null);
|
|
146
|
+
};
|
|
147
|
+
goog.inherits(proto.UpdateGoodReceiptFileReq, jspb.Message);
|
|
148
|
+
if (goog.DEBUG && !COMPILED) {
|
|
149
|
+
/**
|
|
150
|
+
* @public
|
|
151
|
+
* @override
|
|
152
|
+
*/
|
|
153
|
+
proto.UpdateGoodReceiptFileReq.displayName = 'proto.UpdateGoodReceiptFileReq';
|
|
154
|
+
}
|
|
133
155
|
/**
|
|
134
156
|
* Generated by JsPbCodeGenerator.
|
|
135
157
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -267,7 +289,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
267
289
|
* @constructor
|
|
268
290
|
*/
|
|
269
291
|
proto.DeleteGoodReceiptRequest = function(opt_data) {
|
|
270
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
292
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteGoodReceiptRequest.repeatedFields_, null);
|
|
271
293
|
};
|
|
272
294
|
goog.inherits(proto.DeleteGoodReceiptRequest, jspb.Message);
|
|
273
295
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -351,7 +373,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
351
373
|
* @constructor
|
|
352
374
|
*/
|
|
353
375
|
proto.DeleteGoodReceiptResponse = function(opt_data) {
|
|
354
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
376
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteGoodReceiptResponse.repeatedFields_, null);
|
|
355
377
|
};
|
|
356
378
|
goog.inherits(proto.DeleteGoodReceiptResponse, jspb.Message);
|
|
357
379
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -417,7 +439,8 @@ filesList: jspb.Message.toObjectList(msg.getFilesList(),
|
|
|
417
439
|
groupReferences: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
418
440
|
deliveryOrder: (f = msg.getDeliveryOrder()) && prisca_v1_purchase_order_purchase_order_pb.DeliveryOrder.toObject(includeInstance, f),
|
|
419
441
|
deliveryOrderNumber: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
420
|
-
deliveryOrderDate: jspb.Message.getFieldWithDefault(msg, 16, "")
|
|
442
|
+
deliveryOrderDate: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
443
|
+
purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 17, "")
|
|
421
444
|
};
|
|
422
445
|
|
|
423
446
|
if (includeInstance) {
|
|
@@ -523,6 +546,10 @@ proto.BaseGoodReceipt.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
523
546
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
524
547
|
msg.setDeliveryOrderDate(value);
|
|
525
548
|
break;
|
|
549
|
+
case 17:
|
|
550
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
551
|
+
msg.setPurchaseOrderNumber(value);
|
|
552
|
+
break;
|
|
526
553
|
default:
|
|
527
554
|
reader.skipField();
|
|
528
555
|
break;
|
|
@@ -669,6 +696,13 @@ proto.BaseGoodReceipt.serializeBinaryToWriter = function(message, writer) {
|
|
|
669
696
|
f
|
|
670
697
|
);
|
|
671
698
|
}
|
|
699
|
+
f = message.getPurchaseOrderNumber();
|
|
700
|
+
if (f.length > 0) {
|
|
701
|
+
writer.writeString(
|
|
702
|
+
17,
|
|
703
|
+
f
|
|
704
|
+
);
|
|
705
|
+
}
|
|
672
706
|
};
|
|
673
707
|
|
|
674
708
|
|
|
@@ -1057,6 +1091,24 @@ proto.BaseGoodReceipt.prototype.setDeliveryOrderDate = function(value) {
|
|
|
1057
1091
|
};
|
|
1058
1092
|
|
|
1059
1093
|
|
|
1094
|
+
/**
|
|
1095
|
+
* optional string purchase_order_number = 17;
|
|
1096
|
+
* @return {string}
|
|
1097
|
+
*/
|
|
1098
|
+
proto.BaseGoodReceipt.prototype.getPurchaseOrderNumber = function() {
|
|
1099
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
|
|
1100
|
+
};
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* @param {string} value
|
|
1105
|
+
* @return {!proto.BaseGoodReceipt} returns this
|
|
1106
|
+
*/
|
|
1107
|
+
proto.BaseGoodReceipt.prototype.setPurchaseOrderNumber = function(value) {
|
|
1108
|
+
return jspb.Message.setProto3StringField(this, 17, value);
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
|
|
1060
1112
|
|
|
1061
1113
|
|
|
1062
1114
|
|
|
@@ -1550,6 +1602,249 @@ proto.UpdateGoodReceiptStatusReq.prototype.setReferencesId = function(value) {
|
|
|
1550
1602
|
|
|
1551
1603
|
|
|
1552
1604
|
|
|
1605
|
+
/**
|
|
1606
|
+
* List of repeated fields within this message type.
|
|
1607
|
+
* @private {!Array<number>}
|
|
1608
|
+
* @const
|
|
1609
|
+
*/
|
|
1610
|
+
proto.UpdateGoodReceiptFileReq.repeatedFields_ = [2,3];
|
|
1611
|
+
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1615
|
+
/**
|
|
1616
|
+
* Creates an object representation of this proto.
|
|
1617
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1618
|
+
* Optional fields that are not set will be set to undefined.
|
|
1619
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1620
|
+
* For the list of reserved names please see:
|
|
1621
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1622
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1623
|
+
* JSPB instance for transitional soy proto support:
|
|
1624
|
+
* http://goto/soy-param-migration
|
|
1625
|
+
* @return {!Object}
|
|
1626
|
+
*/
|
|
1627
|
+
proto.UpdateGoodReceiptFileReq.prototype.toObject = function(opt_includeInstance) {
|
|
1628
|
+
return proto.UpdateGoodReceiptFileReq.toObject(opt_includeInstance, this);
|
|
1629
|
+
};
|
|
1630
|
+
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
* Static version of the {@see toObject} method.
|
|
1634
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1635
|
+
* the JSPB instance for transitional soy proto support:
|
|
1636
|
+
* http://goto/soy-param-migration
|
|
1637
|
+
* @param {!proto.UpdateGoodReceiptFileReq} msg The msg instance to transform.
|
|
1638
|
+
* @return {!Object}
|
|
1639
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1640
|
+
*/
|
|
1641
|
+
proto.UpdateGoodReceiptFileReq.toObject = function(includeInstance, msg) {
|
|
1642
|
+
var f, obj = {
|
|
1643
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1644
|
+
filesList: jspb.Message.toObjectList(msg.getFilesList(),
|
|
1645
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
|
|
1646
|
+
itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
|
|
1647
|
+
prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.toObject, includeInstance)
|
|
1648
|
+
};
|
|
1649
|
+
|
|
1650
|
+
if (includeInstance) {
|
|
1651
|
+
obj.$jspbMessageInstance = msg;
|
|
1652
|
+
}
|
|
1653
|
+
return obj;
|
|
1654
|
+
};
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1660
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1661
|
+
* @return {!proto.UpdateGoodReceiptFileReq}
|
|
1662
|
+
*/
|
|
1663
|
+
proto.UpdateGoodReceiptFileReq.deserializeBinary = function(bytes) {
|
|
1664
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1665
|
+
var msg = new proto.UpdateGoodReceiptFileReq;
|
|
1666
|
+
return proto.UpdateGoodReceiptFileReq.deserializeBinaryFromReader(msg, reader);
|
|
1667
|
+
};
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1672
|
+
* given reader into the given message object.
|
|
1673
|
+
* @param {!proto.UpdateGoodReceiptFileReq} msg The message object to deserialize into.
|
|
1674
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1675
|
+
* @return {!proto.UpdateGoodReceiptFileReq}
|
|
1676
|
+
*/
|
|
1677
|
+
proto.UpdateGoodReceiptFileReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
1678
|
+
while (reader.nextField()) {
|
|
1679
|
+
if (reader.isEndGroup()) {
|
|
1680
|
+
break;
|
|
1681
|
+
}
|
|
1682
|
+
var field = reader.getFieldNumber();
|
|
1683
|
+
switch (field) {
|
|
1684
|
+
case 1:
|
|
1685
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1686
|
+
msg.setReferencesId(value);
|
|
1687
|
+
break;
|
|
1688
|
+
case 2:
|
|
1689
|
+
var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
|
|
1690
|
+
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
|
|
1691
|
+
msg.addFiles(value);
|
|
1692
|
+
break;
|
|
1693
|
+
case 3:
|
|
1694
|
+
var value = new prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction;
|
|
1695
|
+
reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.deserializeBinaryFromReader);
|
|
1696
|
+
msg.addItemTransactions(value);
|
|
1697
|
+
break;
|
|
1698
|
+
default:
|
|
1699
|
+
reader.skipField();
|
|
1700
|
+
break;
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
return msg;
|
|
1704
|
+
};
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1709
|
+
* @return {!Uint8Array}
|
|
1710
|
+
*/
|
|
1711
|
+
proto.UpdateGoodReceiptFileReq.prototype.serializeBinary = function() {
|
|
1712
|
+
var writer = new jspb.BinaryWriter();
|
|
1713
|
+
proto.UpdateGoodReceiptFileReq.serializeBinaryToWriter(this, writer);
|
|
1714
|
+
return writer.getResultBuffer();
|
|
1715
|
+
};
|
|
1716
|
+
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1720
|
+
* format), writing to the given BinaryWriter.
|
|
1721
|
+
* @param {!proto.UpdateGoodReceiptFileReq} message
|
|
1722
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1723
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1724
|
+
*/
|
|
1725
|
+
proto.UpdateGoodReceiptFileReq.serializeBinaryToWriter = function(message, writer) {
|
|
1726
|
+
var f = undefined;
|
|
1727
|
+
f = message.getReferencesId();
|
|
1728
|
+
if (f.length > 0) {
|
|
1729
|
+
writer.writeString(
|
|
1730
|
+
1,
|
|
1731
|
+
f
|
|
1732
|
+
);
|
|
1733
|
+
}
|
|
1734
|
+
f = message.getFilesList();
|
|
1735
|
+
if (f.length > 0) {
|
|
1736
|
+
writer.writeRepeatedMessage(
|
|
1737
|
+
2,
|
|
1738
|
+
f,
|
|
1739
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
|
|
1740
|
+
);
|
|
1741
|
+
}
|
|
1742
|
+
f = message.getItemTransactionsList();
|
|
1743
|
+
if (f.length > 0) {
|
|
1744
|
+
writer.writeRepeatedMessage(
|
|
1745
|
+
3,
|
|
1746
|
+
f,
|
|
1747
|
+
prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.serializeBinaryToWriter
|
|
1748
|
+
);
|
|
1749
|
+
}
|
|
1750
|
+
};
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
/**
|
|
1754
|
+
* optional string references_id = 1;
|
|
1755
|
+
* @return {string}
|
|
1756
|
+
*/
|
|
1757
|
+
proto.UpdateGoodReceiptFileReq.prototype.getReferencesId = function() {
|
|
1758
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1759
|
+
};
|
|
1760
|
+
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* @param {string} value
|
|
1764
|
+
* @return {!proto.UpdateGoodReceiptFileReq} returns this
|
|
1765
|
+
*/
|
|
1766
|
+
proto.UpdateGoodReceiptFileReq.prototype.setReferencesId = function(value) {
|
|
1767
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1768
|
+
};
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* repeated FileUploadReferencesReq files = 2;
|
|
1773
|
+
* @return {!Array<!proto.FileUploadReferencesReq>}
|
|
1774
|
+
*/
|
|
1775
|
+
proto.UpdateGoodReceiptFileReq.prototype.getFilesList = function() {
|
|
1776
|
+
return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
|
|
1777
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 2));
|
|
1778
|
+
};
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* @param {!Array<!proto.FileUploadReferencesReq>} value
|
|
1783
|
+
* @return {!proto.UpdateGoodReceiptFileReq} returns this
|
|
1784
|
+
*/
|
|
1785
|
+
proto.UpdateGoodReceiptFileReq.prototype.setFilesList = function(value) {
|
|
1786
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
1787
|
+
};
|
|
1788
|
+
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* @param {!proto.FileUploadReferencesReq=} opt_value
|
|
1792
|
+
* @param {number=} opt_index
|
|
1793
|
+
* @return {!proto.FileUploadReferencesReq}
|
|
1794
|
+
*/
|
|
1795
|
+
proto.UpdateGoodReceiptFileReq.prototype.addFiles = function(opt_value, opt_index) {
|
|
1796
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.FileUploadReferencesReq, opt_index);
|
|
1797
|
+
};
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* Clears the list making it empty but non-null.
|
|
1802
|
+
* @return {!proto.UpdateGoodReceiptFileReq} returns this
|
|
1803
|
+
*/
|
|
1804
|
+
proto.UpdateGoodReceiptFileReq.prototype.clearFilesList = function() {
|
|
1805
|
+
return this.setFilesList([]);
|
|
1806
|
+
};
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
/**
|
|
1810
|
+
* repeated BaseItemTransaction item_transactions = 3;
|
|
1811
|
+
* @return {!Array<!proto.BaseItemTransaction>}
|
|
1812
|
+
*/
|
|
1813
|
+
proto.UpdateGoodReceiptFileReq.prototype.getItemTransactionsList = function() {
|
|
1814
|
+
return /** @type{!Array<!proto.BaseItemTransaction>} */ (
|
|
1815
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction, 3));
|
|
1816
|
+
};
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* @param {!Array<!proto.BaseItemTransaction>} value
|
|
1821
|
+
* @return {!proto.UpdateGoodReceiptFileReq} returns this
|
|
1822
|
+
*/
|
|
1823
|
+
proto.UpdateGoodReceiptFileReq.prototype.setItemTransactionsList = function(value) {
|
|
1824
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
1825
|
+
};
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* @param {!proto.BaseItemTransaction=} opt_value
|
|
1830
|
+
* @param {number=} opt_index
|
|
1831
|
+
* @return {!proto.BaseItemTransaction}
|
|
1832
|
+
*/
|
|
1833
|
+
proto.UpdateGoodReceiptFileReq.prototype.addItemTransactions = function(opt_value, opt_index) {
|
|
1834
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.BaseItemTransaction, opt_index);
|
|
1835
|
+
};
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Clears the list making it empty but non-null.
|
|
1840
|
+
* @return {!proto.UpdateGoodReceiptFileReq} returns this
|
|
1841
|
+
*/
|
|
1842
|
+
proto.UpdateGoodReceiptFileReq.prototype.clearItemTransactionsList = function() {
|
|
1843
|
+
return this.setItemTransactionsList([]);
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
|
|
1553
1848
|
|
|
1554
1849
|
|
|
1555
1850
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2699,6 +2994,13 @@ proto.GetListGoodReceiptRes.prototype.hasMeta = function() {
|
|
|
2699
2994
|
|
|
2700
2995
|
|
|
2701
2996
|
|
|
2997
|
+
/**
|
|
2998
|
+
* List of repeated fields within this message type.
|
|
2999
|
+
* @private {!Array<number>}
|
|
3000
|
+
* @const
|
|
3001
|
+
*/
|
|
3002
|
+
proto.DeleteGoodReceiptRequest.repeatedFields_ = [1];
|
|
3003
|
+
|
|
2702
3004
|
|
|
2703
3005
|
|
|
2704
3006
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2730,7 +3032,7 @@ proto.DeleteGoodReceiptRequest.prototype.toObject = function(opt_includeInstance
|
|
|
2730
3032
|
*/
|
|
2731
3033
|
proto.DeleteGoodReceiptRequest.toObject = function(includeInstance, msg) {
|
|
2732
3034
|
var f, obj = {
|
|
2733
|
-
|
|
3035
|
+
referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
2734
3036
|
};
|
|
2735
3037
|
|
|
2736
3038
|
if (includeInstance) {
|
|
@@ -2769,7 +3071,7 @@ proto.DeleteGoodReceiptRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
2769
3071
|
switch (field) {
|
|
2770
3072
|
case 1:
|
|
2771
3073
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2772
|
-
msg.
|
|
3074
|
+
msg.addReferenceIds(value);
|
|
2773
3075
|
break;
|
|
2774
3076
|
default:
|
|
2775
3077
|
reader.skipField();
|
|
@@ -2800,9 +3102,9 @@ proto.DeleteGoodReceiptRequest.prototype.serializeBinary = function() {
|
|
|
2800
3102
|
*/
|
|
2801
3103
|
proto.DeleteGoodReceiptRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2802
3104
|
var f = undefined;
|
|
2803
|
-
f = message.
|
|
3105
|
+
f = message.getReferenceIdsList();
|
|
2804
3106
|
if (f.length > 0) {
|
|
2805
|
-
writer.
|
|
3107
|
+
writer.writeRepeatedString(
|
|
2806
3108
|
1,
|
|
2807
3109
|
f
|
|
2808
3110
|
);
|
|
@@ -2811,20 +3113,39 @@ proto.DeleteGoodReceiptRequest.serializeBinaryToWriter = function(message, write
|
|
|
2811
3113
|
|
|
2812
3114
|
|
|
2813
3115
|
/**
|
|
2814
|
-
*
|
|
2815
|
-
* @return {string}
|
|
3116
|
+
* repeated string reference_ids = 1;
|
|
3117
|
+
* @return {!Array<string>}
|
|
2816
3118
|
*/
|
|
2817
|
-
proto.DeleteGoodReceiptRequest.prototype.
|
|
2818
|
-
return /** @type {string} */ (jspb.Message.
|
|
3119
|
+
proto.DeleteGoodReceiptRequest.prototype.getReferenceIdsList = function() {
|
|
3120
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
3121
|
+
};
|
|
3122
|
+
|
|
3123
|
+
|
|
3124
|
+
/**
|
|
3125
|
+
* @param {!Array<string>} value
|
|
3126
|
+
* @return {!proto.DeleteGoodReceiptRequest} returns this
|
|
3127
|
+
*/
|
|
3128
|
+
proto.DeleteGoodReceiptRequest.prototype.setReferenceIdsList = function(value) {
|
|
3129
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
2819
3130
|
};
|
|
2820
3131
|
|
|
2821
3132
|
|
|
2822
3133
|
/**
|
|
2823
3134
|
* @param {string} value
|
|
3135
|
+
* @param {number=} opt_index
|
|
2824
3136
|
* @return {!proto.DeleteGoodReceiptRequest} returns this
|
|
2825
3137
|
*/
|
|
2826
|
-
proto.DeleteGoodReceiptRequest.prototype.
|
|
2827
|
-
return jspb.Message.
|
|
3138
|
+
proto.DeleteGoodReceiptRequest.prototype.addReferenceIds = function(value, opt_index) {
|
|
3139
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
3140
|
+
};
|
|
3141
|
+
|
|
3142
|
+
|
|
3143
|
+
/**
|
|
3144
|
+
* Clears the list making it empty but non-null.
|
|
3145
|
+
* @return {!proto.DeleteGoodReceiptRequest} returns this
|
|
3146
|
+
*/
|
|
3147
|
+
proto.DeleteGoodReceiptRequest.prototype.clearReferenceIdsList = function() {
|
|
3148
|
+
return this.setReferenceIdsList([]);
|
|
2828
3149
|
};
|
|
2829
3150
|
|
|
2830
3151
|
|
|
@@ -3415,6 +3736,13 @@ proto.GetGoodReceiptItemDetailPreload.prototype.clearTransactionBuilderItemDetai
|
|
|
3415
3736
|
|
|
3416
3737
|
|
|
3417
3738
|
|
|
3739
|
+
/**
|
|
3740
|
+
* List of repeated fields within this message type.
|
|
3741
|
+
* @private {!Array<number>}
|
|
3742
|
+
* @const
|
|
3743
|
+
*/
|
|
3744
|
+
proto.DeleteGoodReceiptResponse.repeatedFields_ = [1];
|
|
3745
|
+
|
|
3418
3746
|
|
|
3419
3747
|
|
|
3420
3748
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -3446,7 +3774,7 @@ proto.DeleteGoodReceiptResponse.prototype.toObject = function(opt_includeInstanc
|
|
|
3446
3774
|
*/
|
|
3447
3775
|
proto.DeleteGoodReceiptResponse.toObject = function(includeInstance, msg) {
|
|
3448
3776
|
var f, obj = {
|
|
3449
|
-
|
|
3777
|
+
referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
3450
3778
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
3451
3779
|
};
|
|
3452
3780
|
|
|
@@ -3486,7 +3814,7 @@ proto.DeleteGoodReceiptResponse.deserializeBinaryFromReader = function(msg, read
|
|
|
3486
3814
|
switch (field) {
|
|
3487
3815
|
case 1:
|
|
3488
3816
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3489
|
-
msg.
|
|
3817
|
+
msg.addReferenceIds(value);
|
|
3490
3818
|
break;
|
|
3491
3819
|
case 2:
|
|
3492
3820
|
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
@@ -3522,9 +3850,9 @@ proto.DeleteGoodReceiptResponse.prototype.serializeBinary = function() {
|
|
|
3522
3850
|
*/
|
|
3523
3851
|
proto.DeleteGoodReceiptResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3524
3852
|
var f = undefined;
|
|
3525
|
-
f = message.
|
|
3853
|
+
f = message.getReferenceIdsList();
|
|
3526
3854
|
if (f.length > 0) {
|
|
3527
|
-
writer.
|
|
3855
|
+
writer.writeRepeatedString(
|
|
3528
3856
|
1,
|
|
3529
3857
|
f
|
|
3530
3858
|
);
|
|
@@ -3541,20 +3869,39 @@ proto.DeleteGoodReceiptResponse.serializeBinaryToWriter = function(message, writ
|
|
|
3541
3869
|
|
|
3542
3870
|
|
|
3543
3871
|
/**
|
|
3544
|
-
*
|
|
3545
|
-
* @return {string}
|
|
3872
|
+
* repeated string reference_ids = 1;
|
|
3873
|
+
* @return {!Array<string>}
|
|
3546
3874
|
*/
|
|
3547
|
-
proto.DeleteGoodReceiptResponse.prototype.
|
|
3548
|
-
return /** @type {string} */ (jspb.Message.
|
|
3875
|
+
proto.DeleteGoodReceiptResponse.prototype.getReferenceIdsList = function() {
|
|
3876
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
3877
|
+
};
|
|
3878
|
+
|
|
3879
|
+
|
|
3880
|
+
/**
|
|
3881
|
+
* @param {!Array<string>} value
|
|
3882
|
+
* @return {!proto.DeleteGoodReceiptResponse} returns this
|
|
3883
|
+
*/
|
|
3884
|
+
proto.DeleteGoodReceiptResponse.prototype.setReferenceIdsList = function(value) {
|
|
3885
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
3549
3886
|
};
|
|
3550
3887
|
|
|
3551
3888
|
|
|
3552
3889
|
/**
|
|
3553
3890
|
* @param {string} value
|
|
3891
|
+
* @param {number=} opt_index
|
|
3554
3892
|
* @return {!proto.DeleteGoodReceiptResponse} returns this
|
|
3555
3893
|
*/
|
|
3556
|
-
proto.DeleteGoodReceiptResponse.prototype.
|
|
3557
|
-
return jspb.Message.
|
|
3894
|
+
proto.DeleteGoodReceiptResponse.prototype.addReferenceIds = function(value, opt_index) {
|
|
3895
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
3896
|
+
};
|
|
3897
|
+
|
|
3898
|
+
|
|
3899
|
+
/**
|
|
3900
|
+
* Clears the list making it empty but non-null.
|
|
3901
|
+
* @return {!proto.DeleteGoodReceiptResponse} returns this
|
|
3902
|
+
*/
|
|
3903
|
+
proto.DeleteGoodReceiptResponse.prototype.clearReferenceIdsList = function() {
|
|
3904
|
+
return this.setReferenceIdsList([]);
|
|
3558
3905
|
};
|
|
3559
3906
|
|
|
3560
3907
|
|
|
@@ -35,6 +35,28 @@ function deserialize_CreateInvoiceRes(buffer_arg) {
|
|
|
35
35
|
return prisca_v1_invoice_invoice_pb.CreateInvoiceRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
function serialize_DeleteInvoiceRequest(arg) {
|
|
39
|
+
if (!(arg instanceof prisca_v1_invoice_invoice_pb.DeleteInvoiceRequest)) {
|
|
40
|
+
throw new Error('Expected argument of type DeleteInvoiceRequest');
|
|
41
|
+
}
|
|
42
|
+
return Buffer.from(arg.serializeBinary());
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function deserialize_DeleteInvoiceRequest(buffer_arg) {
|
|
46
|
+
return prisca_v1_invoice_invoice_pb.DeleteInvoiceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function serialize_DeleteInvoiceResponse(arg) {
|
|
50
|
+
if (!(arg instanceof prisca_v1_invoice_invoice_pb.DeleteInvoiceResponse)) {
|
|
51
|
+
throw new Error('Expected argument of type DeleteInvoiceResponse');
|
|
52
|
+
}
|
|
53
|
+
return Buffer.from(arg.serializeBinary());
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function deserialize_DeleteInvoiceResponse(buffer_arg) {
|
|
57
|
+
return prisca_v1_invoice_invoice_pb.DeleteInvoiceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
58
|
+
}
|
|
59
|
+
|
|
38
60
|
function serialize_GetInvoiceByIdReq(arg) {
|
|
39
61
|
if (!(arg instanceof prisca_v1_invoice_invoice_pb.GetInvoiceByIdReq)) {
|
|
40
62
|
throw new Error('Expected argument of type GetInvoiceByIdReq');
|
|
@@ -90,6 +112,17 @@ function deserialize_GetListInvoiceRes(buffer_arg) {
|
|
|
90
112
|
return prisca_v1_invoice_invoice_pb.GetListInvoiceRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
91
113
|
}
|
|
92
114
|
|
|
115
|
+
function serialize_UpdateInvoiceFileReq(arg) {
|
|
116
|
+
if (!(arg instanceof prisca_v1_invoice_invoice_pb.UpdateInvoiceFileReq)) {
|
|
117
|
+
throw new Error('Expected argument of type UpdateInvoiceFileReq');
|
|
118
|
+
}
|
|
119
|
+
return Buffer.from(arg.serializeBinary());
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function deserialize_UpdateInvoiceFileReq(buffer_arg) {
|
|
123
|
+
return prisca_v1_invoice_invoice_pb.UpdateInvoiceFileReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
124
|
+
}
|
|
125
|
+
|
|
93
126
|
function serialize_UpdateInvoiceForCompanyReq(arg) {
|
|
94
127
|
if (!(arg instanceof prisca_v1_invoice_invoice_pb.UpdateInvoiceForCompanyReq)) {
|
|
95
128
|
throw new Error('Expected argument of type UpdateInvoiceForCompanyReq');
|
|
@@ -180,6 +213,17 @@ var InvoiceServiceService = exports.InvoiceServiceService = {
|
|
|
180
213
|
responseSerialize: serialize_UpdateInvoiceRes,
|
|
181
214
|
responseDeserialize: deserialize_UpdateInvoiceRes,
|
|
182
215
|
},
|
|
216
|
+
updateInvoiceFile: {
|
|
217
|
+
path: '/InvoiceService/UpdateInvoiceFile',
|
|
218
|
+
requestStream: false,
|
|
219
|
+
responseStream: false,
|
|
220
|
+
requestType: prisca_v1_invoice_invoice_pb.UpdateInvoiceFileReq,
|
|
221
|
+
responseType: prisca_v1_invoice_invoice_pb.UpdateInvoiceRes,
|
|
222
|
+
requestSerialize: serialize_UpdateInvoiceFileReq,
|
|
223
|
+
requestDeserialize: deserialize_UpdateInvoiceFileReq,
|
|
224
|
+
responseSerialize: serialize_UpdateInvoiceRes,
|
|
225
|
+
responseDeserialize: deserialize_UpdateInvoiceRes,
|
|
226
|
+
},
|
|
183
227
|
getInvoiceById: {
|
|
184
228
|
path: '/InvoiceService/GetInvoiceById',
|
|
185
229
|
requestStream: false,
|
|
@@ -213,6 +257,17 @@ var InvoiceServiceService = exports.InvoiceServiceService = {
|
|
|
213
257
|
responseSerialize: serialize_GetListInvoiceRes,
|
|
214
258
|
responseDeserialize: deserialize_GetListInvoiceRes,
|
|
215
259
|
},
|
|
260
|
+
deleteInvoice: {
|
|
261
|
+
path: '/InvoiceService/DeleteInvoice',
|
|
262
|
+
requestStream: false,
|
|
263
|
+
responseStream: false,
|
|
264
|
+
requestType: prisca_v1_invoice_invoice_pb.DeleteInvoiceRequest,
|
|
265
|
+
responseType: prisca_v1_invoice_invoice_pb.DeleteInvoiceResponse,
|
|
266
|
+
requestSerialize: serialize_DeleteInvoiceRequest,
|
|
267
|
+
requestDeserialize: deserialize_DeleteInvoiceRequest,
|
|
268
|
+
responseSerialize: serialize_DeleteInvoiceResponse,
|
|
269
|
+
responseDeserialize: deserialize_DeleteInvoiceResponse,
|
|
270
|
+
},
|
|
216
271
|
};
|
|
217
272
|
|
|
218
273
|
exports.InvoiceServiceClient = grpc.makeGenericClientConstructor(InvoiceServiceService, 'InvoiceService');
|