@aldiokta/protocgen 1.1.51 → 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 (45) 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/employee/employee_grpc_pb.js +14 -3
  17. package/prisca/v1/core/employee/employee_pb.js +203 -0
  18. package/prisca/v1/core/identity_provider/identity_provider_grpc_pb.js +156 -0
  19. package/prisca/v1/core/identity_provider/identity_provider_pb.js +2018 -0
  20. package/prisca/v1/core/item_transaction/item_transaction_pb.js +62 -2
  21. package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_pb.js +65 -35
  22. package/prisca/v1/core/material/material_grpc_pb.js +2 -0
  23. package/prisca/v1/core/material/material_pb.js +420 -2
  24. package/prisca/v1/core/messaging/email_template_grpc_pb.js +33 -0
  25. package/prisca/v1/core/messaging/email_template_pb.js +385 -0
  26. package/prisca/v1/core/number_range/number_range_grpc_pb.js +33 -0
  27. package/prisca/v1/core/number_range/number_range_pb.js +385 -0
  28. package/prisca/v1/core/report/report_pb.js +31 -1
  29. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +33 -0
  30. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +364 -0
  31. package/prisca/v1/core/users/users_grpc_pb.js +1 -0
  32. package/prisca/v1/core/users/users_pb.js +2 -0
  33. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +33 -0
  34. package/prisca/v1/delivery_order/delivery_order_pb.js +31 -1
  35. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +33 -0
  36. package/prisca/v1/good_receipt/good_receipt_pb.js +36 -6
  37. package/prisca/v1/invoice/invoice_grpc_pb.js +33 -0
  38. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +33 -0
  39. package/prisca/v1/purchase_order/purchase_order_pb.js +717 -29
  40. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +35 -0
  41. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +112 -57
  42. package/prisca/v1/quotation/quotation_pb.js +55 -2
  43. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -123
  44. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +34 -0
  45. package/prisca/v1/vendor_domain/vendor_domain_pb.js +1365 -0
@@ -34,6 +34,8 @@ goog.object.extend(proto, prisca_v1_core_company_company_pb);
34
34
  var prisca_v1_document_type_document_type_pb = require('../../../prisca/v1/document_type/document_type_pb.js');
35
35
  goog.object.extend(proto, prisca_v1_document_type_document_type_pb);
36
36
  goog.exportSymbol('proto.BasePurchaseOrderRequest', null, global);
37
+ goog.exportSymbol('proto.CheckAvailableReq', null, global);
38
+ goog.exportSymbol('proto.CheckAvailableRes', null, global);
37
39
  goog.exportSymbol('proto.CreatePurchaseOrderRequest', null, global);
38
40
  goog.exportSymbol('proto.CreatePurchaseOrderResponse', null, global);
39
41
  goog.exportSymbol('proto.DeletePurchaseOrderRequest', null, global);
@@ -59,6 +61,48 @@ goog.exportSymbol('proto.UpdatePurchaseOrderFileRequest', null, global);
59
61
  goog.exportSymbol('proto.UpdatePurchaseOrderRequest', null, global);
60
62
  goog.exportSymbol('proto.UpdatePurchaseOrderResponse', null, global);
61
63
  goog.exportSymbol('proto.UpdatePurchaseOrderStatusRequest', null, global);
64
+ /**
65
+ * Generated by JsPbCodeGenerator.
66
+ * @param {Array=} opt_data Optional initial data array, typically from a
67
+ * server response, or constructed directly in Javascript. The array is used
68
+ * in place and becomes part of the constructed object. It is not cloned.
69
+ * If no data is provided, the constructed object will be empty, but still
70
+ * valid.
71
+ * @extends {jspb.Message}
72
+ * @constructor
73
+ */
74
+ proto.CheckAvailableReq = function(opt_data) {
75
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
76
+ };
77
+ goog.inherits(proto.CheckAvailableReq, jspb.Message);
78
+ if (goog.DEBUG && !COMPILED) {
79
+ /**
80
+ * @public
81
+ * @override
82
+ */
83
+ proto.CheckAvailableReq.displayName = 'proto.CheckAvailableReq';
84
+ }
85
+ /**
86
+ * Generated by JsPbCodeGenerator.
87
+ * @param {Array=} opt_data Optional initial data array, typically from a
88
+ * server response, or constructed directly in Javascript. The array is used
89
+ * in place and becomes part of the constructed object. It is not cloned.
90
+ * If no data is provided, the constructed object will be empty, but still
91
+ * valid.
92
+ * @extends {jspb.Message}
93
+ * @constructor
94
+ */
95
+ proto.CheckAvailableRes = function(opt_data) {
96
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
97
+ };
98
+ goog.inherits(proto.CheckAvailableRes, jspb.Message);
99
+ if (goog.DEBUG && !COMPILED) {
100
+ /**
101
+ * @public
102
+ * @override
103
+ */
104
+ proto.CheckAvailableRes.displayName = 'proto.CheckAvailableRes';
105
+ }
62
106
  /**
63
107
  * Generated by JsPbCodeGenerator.
64
108
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -608,6 +652,266 @@ if (goog.DEBUG && !COMPILED) {
608
652
 
609
653
 
610
654
 
655
+ if (jspb.Message.GENERATE_TO_OBJECT) {
656
+ /**
657
+ * Creates an object representation of this proto.
658
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
659
+ * Optional fields that are not set will be set to undefined.
660
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
661
+ * For the list of reserved names please see:
662
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
663
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
664
+ * JSPB instance for transitional soy proto support:
665
+ * http://goto/soy-param-migration
666
+ * @return {!Object}
667
+ */
668
+ proto.CheckAvailableReq.prototype.toObject = function(opt_includeInstance) {
669
+ return proto.CheckAvailableReq.toObject(opt_includeInstance, this);
670
+ };
671
+
672
+
673
+ /**
674
+ * Static version of the {@see toObject} method.
675
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
676
+ * the JSPB instance for transitional soy proto support:
677
+ * http://goto/soy-param-migration
678
+ * @param {!proto.CheckAvailableReq} msg The msg instance to transform.
679
+ * @return {!Object}
680
+ * @suppress {unusedLocalVariables} f is only used for nested messages
681
+ */
682
+ proto.CheckAvailableReq.toObject = function(includeInstance, msg) {
683
+ var f, obj = {
684
+ referencesid: jspb.Message.getFieldWithDefault(msg, 1, "")
685
+ };
686
+
687
+ if (includeInstance) {
688
+ obj.$jspbMessageInstance = msg;
689
+ }
690
+ return obj;
691
+ };
692
+ }
693
+
694
+
695
+ /**
696
+ * Deserializes binary data (in protobuf wire format).
697
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
698
+ * @return {!proto.CheckAvailableReq}
699
+ */
700
+ proto.CheckAvailableReq.deserializeBinary = function(bytes) {
701
+ var reader = new jspb.BinaryReader(bytes);
702
+ var msg = new proto.CheckAvailableReq;
703
+ return proto.CheckAvailableReq.deserializeBinaryFromReader(msg, reader);
704
+ };
705
+
706
+
707
+ /**
708
+ * Deserializes binary data (in protobuf wire format) from the
709
+ * given reader into the given message object.
710
+ * @param {!proto.CheckAvailableReq} msg The message object to deserialize into.
711
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
712
+ * @return {!proto.CheckAvailableReq}
713
+ */
714
+ proto.CheckAvailableReq.deserializeBinaryFromReader = function(msg, reader) {
715
+ while (reader.nextField()) {
716
+ if (reader.isEndGroup()) {
717
+ break;
718
+ }
719
+ var field = reader.getFieldNumber();
720
+ switch (field) {
721
+ case 1:
722
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
723
+ msg.setReferencesid(value);
724
+ break;
725
+ default:
726
+ reader.skipField();
727
+ break;
728
+ }
729
+ }
730
+ return msg;
731
+ };
732
+
733
+
734
+ /**
735
+ * Serializes the message to binary data (in protobuf wire format).
736
+ * @return {!Uint8Array}
737
+ */
738
+ proto.CheckAvailableReq.prototype.serializeBinary = function() {
739
+ var writer = new jspb.BinaryWriter();
740
+ proto.CheckAvailableReq.serializeBinaryToWriter(this, writer);
741
+ return writer.getResultBuffer();
742
+ };
743
+
744
+
745
+ /**
746
+ * Serializes the given message to binary data (in protobuf wire
747
+ * format), writing to the given BinaryWriter.
748
+ * @param {!proto.CheckAvailableReq} message
749
+ * @param {!jspb.BinaryWriter} writer
750
+ * @suppress {unusedLocalVariables} f is only used for nested messages
751
+ */
752
+ proto.CheckAvailableReq.serializeBinaryToWriter = function(message, writer) {
753
+ var f = undefined;
754
+ f = message.getReferencesid();
755
+ if (f.length > 0) {
756
+ writer.writeString(
757
+ 1,
758
+ f
759
+ );
760
+ }
761
+ };
762
+
763
+
764
+ /**
765
+ * optional string ReferencesId = 1;
766
+ * @return {string}
767
+ */
768
+ proto.CheckAvailableReq.prototype.getReferencesid = function() {
769
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
770
+ };
771
+
772
+
773
+ /**
774
+ * @param {string} value
775
+ * @return {!proto.CheckAvailableReq} returns this
776
+ */
777
+ proto.CheckAvailableReq.prototype.setReferencesid = function(value) {
778
+ return jspb.Message.setProto3StringField(this, 1, value);
779
+ };
780
+
781
+
782
+
783
+
784
+
785
+ if (jspb.Message.GENERATE_TO_OBJECT) {
786
+ /**
787
+ * Creates an object representation of this proto.
788
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
789
+ * Optional fields that are not set will be set to undefined.
790
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
791
+ * For the list of reserved names please see:
792
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
793
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
794
+ * JSPB instance for transitional soy proto support:
795
+ * http://goto/soy-param-migration
796
+ * @return {!Object}
797
+ */
798
+ proto.CheckAvailableRes.prototype.toObject = function(opt_includeInstance) {
799
+ return proto.CheckAvailableRes.toObject(opt_includeInstance, this);
800
+ };
801
+
802
+
803
+ /**
804
+ * Static version of the {@see toObject} method.
805
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
806
+ * the JSPB instance for transitional soy proto support:
807
+ * http://goto/soy-param-migration
808
+ * @param {!proto.CheckAvailableRes} msg The msg instance to transform.
809
+ * @return {!Object}
810
+ * @suppress {unusedLocalVariables} f is only used for nested messages
811
+ */
812
+ proto.CheckAvailableRes.toObject = function(includeInstance, msg) {
813
+ var f, obj = {
814
+ available: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
815
+ };
816
+
817
+ if (includeInstance) {
818
+ obj.$jspbMessageInstance = msg;
819
+ }
820
+ return obj;
821
+ };
822
+ }
823
+
824
+
825
+ /**
826
+ * Deserializes binary data (in protobuf wire format).
827
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
828
+ * @return {!proto.CheckAvailableRes}
829
+ */
830
+ proto.CheckAvailableRes.deserializeBinary = function(bytes) {
831
+ var reader = new jspb.BinaryReader(bytes);
832
+ var msg = new proto.CheckAvailableRes;
833
+ return proto.CheckAvailableRes.deserializeBinaryFromReader(msg, reader);
834
+ };
835
+
836
+
837
+ /**
838
+ * Deserializes binary data (in protobuf wire format) from the
839
+ * given reader into the given message object.
840
+ * @param {!proto.CheckAvailableRes} msg The message object to deserialize into.
841
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
842
+ * @return {!proto.CheckAvailableRes}
843
+ */
844
+ proto.CheckAvailableRes.deserializeBinaryFromReader = function(msg, reader) {
845
+ while (reader.nextField()) {
846
+ if (reader.isEndGroup()) {
847
+ break;
848
+ }
849
+ var field = reader.getFieldNumber();
850
+ switch (field) {
851
+ case 1:
852
+ var value = /** @type {boolean} */ (reader.readBool());
853
+ msg.setAvailable(value);
854
+ break;
855
+ default:
856
+ reader.skipField();
857
+ break;
858
+ }
859
+ }
860
+ return msg;
861
+ };
862
+
863
+
864
+ /**
865
+ * Serializes the message to binary data (in protobuf wire format).
866
+ * @return {!Uint8Array}
867
+ */
868
+ proto.CheckAvailableRes.prototype.serializeBinary = function() {
869
+ var writer = new jspb.BinaryWriter();
870
+ proto.CheckAvailableRes.serializeBinaryToWriter(this, writer);
871
+ return writer.getResultBuffer();
872
+ };
873
+
874
+
875
+ /**
876
+ * Serializes the given message to binary data (in protobuf wire
877
+ * format), writing to the given BinaryWriter.
878
+ * @param {!proto.CheckAvailableRes} message
879
+ * @param {!jspb.BinaryWriter} writer
880
+ * @suppress {unusedLocalVariables} f is only used for nested messages
881
+ */
882
+ proto.CheckAvailableRes.serializeBinaryToWriter = function(message, writer) {
883
+ var f = undefined;
884
+ f = message.getAvailable();
885
+ if (f) {
886
+ writer.writeBool(
887
+ 1,
888
+ f
889
+ );
890
+ }
891
+ };
892
+
893
+
894
+ /**
895
+ * optional bool available = 1;
896
+ * @return {boolean}
897
+ */
898
+ proto.CheckAvailableRes.prototype.getAvailable = function() {
899
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
900
+ };
901
+
902
+
903
+ /**
904
+ * @param {boolean} value
905
+ * @return {!proto.CheckAvailableRes} returns this
906
+ */
907
+ proto.CheckAvailableRes.prototype.setAvailable = function(value) {
908
+ return jspb.Message.setProto3BooleanField(this, 1, value);
909
+ };
910
+
911
+
912
+
913
+
914
+
611
915
  if (jspb.Message.GENERATE_TO_OBJECT) {
612
916
  /**
613
917
  * Creates an object representation of this proto.
@@ -1442,7 +1746,9 @@ createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_e
1442
1746
  updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
1443
1747
  documentReferences: jspb.Message.getFieldWithDefault(msg, 29, ""),
1444
1748
  documentType: (f = msg.getDocumentType()) && prisca_v1_document_type_document_type_pb.DocumentType.toObject(includeInstance, f),
1445
- customTransaction: jspb.Message.getFieldWithDefault(msg, 31, "")
1749
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 31, ""),
1750
+ requestedBy: jspb.Message.getFieldWithDefault(msg, 32, ""),
1751
+ requestor: (f = msg.getRequestor()) && prisca_v1_global_meta_meta_pb.Creator.toObject(includeInstance, f)
1446
1752
  };
1447
1753
 
1448
1754
  if (includeInstance) {
@@ -1611,6 +1917,15 @@ proto.DeliveryOrder.deserializeBinaryFromReader = function(msg, reader) {
1611
1917
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1612
1918
  msg.setCustomTransaction(value);
1613
1919
  break;
1920
+ case 32:
1921
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1922
+ msg.setRequestedBy(value);
1923
+ break;
1924
+ case 33:
1925
+ var value = new prisca_v1_global_meta_meta_pb.Creator;
1926
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Creator.deserializeBinaryFromReader);
1927
+ msg.setRequestor(value);
1928
+ break;
1614
1929
  default:
1615
1930
  reader.skipField();
1616
1931
  break;
@@ -1865,6 +2180,21 @@ proto.DeliveryOrder.serializeBinaryToWriter = function(message, writer) {
1865
2180
  f
1866
2181
  );
1867
2182
  }
2183
+ f = message.getRequestedBy();
2184
+ if (f.length > 0) {
2185
+ writer.writeString(
2186
+ 32,
2187
+ f
2188
+ );
2189
+ }
2190
+ f = message.getRequestor();
2191
+ if (f != null) {
2192
+ writer.writeMessage(
2193
+ 33,
2194
+ f,
2195
+ prisca_v1_global_meta_meta_pb.Creator.serializeBinaryToWriter
2196
+ );
2197
+ }
1868
2198
  };
1869
2199
 
1870
2200
 
@@ -2539,8 +2869,81 @@ proto.DeliveryOrder.prototype.getDocumentType = function() {
2539
2869
  * @param {?proto.DocumentType|undefined} value
2540
2870
  * @return {!proto.DeliveryOrder} returns this
2541
2871
  */
2542
- proto.DeliveryOrder.prototype.setDocumentType = function(value) {
2543
- return jspb.Message.setWrapperField(this, 30, value);
2872
+ proto.DeliveryOrder.prototype.setDocumentType = function(value) {
2873
+ return jspb.Message.setWrapperField(this, 30, value);
2874
+ };
2875
+
2876
+
2877
+ /**
2878
+ * Clears the message field making it undefined.
2879
+ * @return {!proto.DeliveryOrder} returns this
2880
+ */
2881
+ proto.DeliveryOrder.prototype.clearDocumentType = function() {
2882
+ return this.setDocumentType(undefined);
2883
+ };
2884
+
2885
+
2886
+ /**
2887
+ * Returns whether this field is set.
2888
+ * @return {boolean}
2889
+ */
2890
+ proto.DeliveryOrder.prototype.hasDocumentType = function() {
2891
+ return jspb.Message.getField(this, 30) != null;
2892
+ };
2893
+
2894
+
2895
+ /**
2896
+ * optional string custom_transaction = 31;
2897
+ * @return {string}
2898
+ */
2899
+ proto.DeliveryOrder.prototype.getCustomTransaction = function() {
2900
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 31, ""));
2901
+ };
2902
+
2903
+
2904
+ /**
2905
+ * @param {string} value
2906
+ * @return {!proto.DeliveryOrder} returns this
2907
+ */
2908
+ proto.DeliveryOrder.prototype.setCustomTransaction = function(value) {
2909
+ return jspb.Message.setProto3StringField(this, 31, value);
2910
+ };
2911
+
2912
+
2913
+ /**
2914
+ * optional string requested_by = 32;
2915
+ * @return {string}
2916
+ */
2917
+ proto.DeliveryOrder.prototype.getRequestedBy = function() {
2918
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 32, ""));
2919
+ };
2920
+
2921
+
2922
+ /**
2923
+ * @param {string} value
2924
+ * @return {!proto.DeliveryOrder} returns this
2925
+ */
2926
+ proto.DeliveryOrder.prototype.setRequestedBy = function(value) {
2927
+ return jspb.Message.setProto3StringField(this, 32, value);
2928
+ };
2929
+
2930
+
2931
+ /**
2932
+ * optional prisca.v1.global.meta.Creator requestor = 33;
2933
+ * @return {?proto.prisca.v1.global.meta.Creator}
2934
+ */
2935
+ proto.DeliveryOrder.prototype.getRequestor = function() {
2936
+ return /** @type{?proto.prisca.v1.global.meta.Creator} */ (
2937
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Creator, 33));
2938
+ };
2939
+
2940
+
2941
+ /**
2942
+ * @param {?proto.prisca.v1.global.meta.Creator|undefined} value
2943
+ * @return {!proto.DeliveryOrder} returns this
2944
+ */
2945
+ proto.DeliveryOrder.prototype.setRequestor = function(value) {
2946
+ return jspb.Message.setWrapperField(this, 33, value);
2544
2947
  };
2545
2948
 
2546
2949
 
@@ -2548,8 +2951,8 @@ proto.DeliveryOrder.prototype.setDocumentType = function(value) {
2548
2951
  * Clears the message field making it undefined.
2549
2952
  * @return {!proto.DeliveryOrder} returns this
2550
2953
  */
2551
- proto.DeliveryOrder.prototype.clearDocumentType = function() {
2552
- return this.setDocumentType(undefined);
2954
+ proto.DeliveryOrder.prototype.clearRequestor = function() {
2955
+ return this.setRequestor(undefined);
2553
2956
  };
2554
2957
 
2555
2958
 
@@ -2557,26 +2960,8 @@ proto.DeliveryOrder.prototype.clearDocumentType = function() {
2557
2960
  * Returns whether this field is set.
2558
2961
  * @return {boolean}
2559
2962
  */
2560
- proto.DeliveryOrder.prototype.hasDocumentType = function() {
2561
- return jspb.Message.getField(this, 30) != null;
2562
- };
2563
-
2564
-
2565
- /**
2566
- * optional string custom_transaction = 31;
2567
- * @return {string}
2568
- */
2569
- proto.DeliveryOrder.prototype.getCustomTransaction = function() {
2570
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 31, ""));
2571
- };
2572
-
2573
-
2574
- /**
2575
- * @param {string} value
2576
- * @return {!proto.DeliveryOrder} returns this
2577
- */
2578
- proto.DeliveryOrder.prototype.setCustomTransaction = function(value) {
2579
- return jspb.Message.setProto3StringField(this, 31, value);
2963
+ proto.DeliveryOrder.prototype.hasRequestor = function() {
2964
+ return jspb.Message.getField(this, 33) != null;
2580
2965
  };
2581
2966
 
2582
2967
 
@@ -2652,7 +3037,9 @@ deliveryOrderNumber: jspb.Message.getFieldWithDefault(msg, 28, ""),
2652
3037
  deliveryOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 29, ""),
2653
3038
  deliveryOrderDate: jspb.Message.getFieldWithDefault(msg, 30, ""),
2654
3039
  deliveryOrder: (f = msg.getDeliveryOrder()) && proto.DeliveryOrder.toObject(includeInstance, f),
2655
- customTransaction: jspb.Message.getFieldWithDefault(msg, 32, "")
3040
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 32, ""),
3041
+ requestedBy: jspb.Message.getFieldWithDefault(msg, 33, ""),
3042
+ requestor: (f = msg.getRequestor()) && prisca_v1_global_meta_meta_pb.Creator.toObject(includeInstance, f)
2656
3043
  };
2657
3044
 
2658
3045
  if (includeInstance) {
@@ -2824,6 +3211,15 @@ proto.GoodReceipt.deserializeBinaryFromReader = function(msg, reader) {
2824
3211
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2825
3212
  msg.setCustomTransaction(value);
2826
3213
  break;
3214
+ case 33:
3215
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3216
+ msg.setRequestedBy(value);
3217
+ break;
3218
+ case 34:
3219
+ var value = new prisca_v1_global_meta_meta_pb.Creator;
3220
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Creator.deserializeBinaryFromReader);
3221
+ msg.setRequestor(value);
3222
+ break;
2827
3223
  default:
2828
3224
  reader.skipField();
2829
3225
  break;
@@ -3084,6 +3480,21 @@ proto.GoodReceipt.serializeBinaryToWriter = function(message, writer) {
3084
3480
  f
3085
3481
  );
3086
3482
  }
3483
+ f = message.getRequestedBy();
3484
+ if (f.length > 0) {
3485
+ writer.writeString(
3486
+ 33,
3487
+ f
3488
+ );
3489
+ }
3490
+ f = message.getRequestor();
3491
+ if (f != null) {
3492
+ writer.writeMessage(
3493
+ 34,
3494
+ f,
3495
+ prisca_v1_global_meta_meta_pb.Creator.serializeBinaryToWriter
3496
+ );
3497
+ }
3087
3498
  };
3088
3499
 
3089
3500
 
@@ -3798,6 +4209,61 @@ proto.GoodReceipt.prototype.setCustomTransaction = function(value) {
3798
4209
  };
3799
4210
 
3800
4211
 
4212
+ /**
4213
+ * optional string requested_by = 33;
4214
+ * @return {string}
4215
+ */
4216
+ proto.GoodReceipt.prototype.getRequestedBy = function() {
4217
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 33, ""));
4218
+ };
4219
+
4220
+
4221
+ /**
4222
+ * @param {string} value
4223
+ * @return {!proto.GoodReceipt} returns this
4224
+ */
4225
+ proto.GoodReceipt.prototype.setRequestedBy = function(value) {
4226
+ return jspb.Message.setProto3StringField(this, 33, value);
4227
+ };
4228
+
4229
+
4230
+ /**
4231
+ * optional prisca.v1.global.meta.Creator requestor = 34;
4232
+ * @return {?proto.prisca.v1.global.meta.Creator}
4233
+ */
4234
+ proto.GoodReceipt.prototype.getRequestor = function() {
4235
+ return /** @type{?proto.prisca.v1.global.meta.Creator} */ (
4236
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Creator, 34));
4237
+ };
4238
+
4239
+
4240
+ /**
4241
+ * @param {?proto.prisca.v1.global.meta.Creator|undefined} value
4242
+ * @return {!proto.GoodReceipt} returns this
4243
+ */
4244
+ proto.GoodReceipt.prototype.setRequestor = function(value) {
4245
+ return jspb.Message.setWrapperField(this, 34, value);
4246
+ };
4247
+
4248
+
4249
+ /**
4250
+ * Clears the message field making it undefined.
4251
+ * @return {!proto.GoodReceipt} returns this
4252
+ */
4253
+ proto.GoodReceipt.prototype.clearRequestor = function() {
4254
+ return this.setRequestor(undefined);
4255
+ };
4256
+
4257
+
4258
+ /**
4259
+ * Returns whether this field is set.
4260
+ * @return {boolean}
4261
+ */
4262
+ proto.GoodReceipt.prototype.hasRequestor = function() {
4263
+ return jspb.Message.getField(this, 34) != null;
4264
+ };
4265
+
4266
+
3801
4267
 
3802
4268
  /**
3803
4269
  * List of repeated fields within this message type.
@@ -3880,7 +4346,10 @@ dueDate: jspb.Message.getFieldWithDefault(msg, 36, ""),
3880
4346
  createdByUser: (f = msg.getCreatedByUser()) && prisca_v1_global_meta_meta_pb.Creator.toObject(includeInstance, f),
3881
4347
  updatedByUser: (f = msg.getUpdatedByUser()) && prisca_v1_global_meta_meta_pb.Creator.toObject(includeInstance, f),
3882
4348
  invoiceConditionsList: jspb.Message.toObjectList(msg.getInvoiceConditionsList(),
3883
- proto.InvoiceCondition.toObject, includeInstance)
4349
+ proto.InvoiceCondition.toObject, includeInstance),
4350
+ requestedBy: jspb.Message.getFieldWithDefault(msg, 40, ""),
4351
+ requestor: (f = msg.getRequestor()) && prisca_v1_global_meta_meta_pb.Creator.toObject(includeInstance, f),
4352
+ isFromGr: jspb.Message.getBooleanFieldWithDefault(msg, 42, false)
3884
4353
  };
3885
4354
 
3886
4355
  if (includeInstance) {
@@ -4083,6 +4552,19 @@ proto.Invoice.deserializeBinaryFromReader = function(msg, reader) {
4083
4552
  reader.readMessage(value,proto.InvoiceCondition.deserializeBinaryFromReader);
4084
4553
  msg.addInvoiceConditions(value);
4085
4554
  break;
4555
+ case 40:
4556
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4557
+ msg.setRequestedBy(value);
4558
+ break;
4559
+ case 41:
4560
+ var value = new prisca_v1_global_meta_meta_pb.Creator;
4561
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Creator.deserializeBinaryFromReader);
4562
+ msg.setRequestor(value);
4563
+ break;
4564
+ case 42:
4565
+ var value = /** @type {boolean} */ (reader.readBool());
4566
+ msg.setIsFromGr(value);
4567
+ break;
4086
4568
  default:
4087
4569
  reader.skipField();
4088
4570
  break;
@@ -4395,6 +4877,28 @@ proto.Invoice.serializeBinaryToWriter = function(message, writer) {
4395
4877
  proto.InvoiceCondition.serializeBinaryToWriter
4396
4878
  );
4397
4879
  }
4880
+ f = message.getRequestedBy();
4881
+ if (f.length > 0) {
4882
+ writer.writeString(
4883
+ 40,
4884
+ f
4885
+ );
4886
+ }
4887
+ f = message.getRequestor();
4888
+ if (f != null) {
4889
+ writer.writeMessage(
4890
+ 41,
4891
+ f,
4892
+ prisca_v1_global_meta_meta_pb.Creator.serializeBinaryToWriter
4893
+ );
4894
+ }
4895
+ f = message.getIsFromGr();
4896
+ if (f) {
4897
+ writer.writeBool(
4898
+ 42,
4899
+ f
4900
+ );
4901
+ }
4398
4902
  };
4399
4903
 
4400
4904
 
@@ -5295,6 +5799,79 @@ proto.Invoice.prototype.clearInvoiceConditionsList = function() {
5295
5799
  };
5296
5800
 
5297
5801
 
5802
+ /**
5803
+ * optional string requested_by = 40;
5804
+ * @return {string}
5805
+ */
5806
+ proto.Invoice.prototype.getRequestedBy = function() {
5807
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 40, ""));
5808
+ };
5809
+
5810
+
5811
+ /**
5812
+ * @param {string} value
5813
+ * @return {!proto.Invoice} returns this
5814
+ */
5815
+ proto.Invoice.prototype.setRequestedBy = function(value) {
5816
+ return jspb.Message.setProto3StringField(this, 40, value);
5817
+ };
5818
+
5819
+
5820
+ /**
5821
+ * optional prisca.v1.global.meta.Creator requestor = 41;
5822
+ * @return {?proto.prisca.v1.global.meta.Creator}
5823
+ */
5824
+ proto.Invoice.prototype.getRequestor = function() {
5825
+ return /** @type{?proto.prisca.v1.global.meta.Creator} */ (
5826
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Creator, 41));
5827
+ };
5828
+
5829
+
5830
+ /**
5831
+ * @param {?proto.prisca.v1.global.meta.Creator|undefined} value
5832
+ * @return {!proto.Invoice} returns this
5833
+ */
5834
+ proto.Invoice.prototype.setRequestor = function(value) {
5835
+ return jspb.Message.setWrapperField(this, 41, value);
5836
+ };
5837
+
5838
+
5839
+ /**
5840
+ * Clears the message field making it undefined.
5841
+ * @return {!proto.Invoice} returns this
5842
+ */
5843
+ proto.Invoice.prototype.clearRequestor = function() {
5844
+ return this.setRequestor(undefined);
5845
+ };
5846
+
5847
+
5848
+ /**
5849
+ * Returns whether this field is set.
5850
+ * @return {boolean}
5851
+ */
5852
+ proto.Invoice.prototype.hasRequestor = function() {
5853
+ return jspb.Message.getField(this, 41) != null;
5854
+ };
5855
+
5856
+
5857
+ /**
5858
+ * optional bool is_from_gr = 42;
5859
+ * @return {boolean}
5860
+ */
5861
+ proto.Invoice.prototype.getIsFromGr = function() {
5862
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 42, false));
5863
+ };
5864
+
5865
+
5866
+ /**
5867
+ * @param {boolean} value
5868
+ * @return {!proto.Invoice} returns this
5869
+ */
5870
+ proto.Invoice.prototype.setIsFromGr = function(value) {
5871
+ return jspb.Message.setProto3BooleanField(this, 42, value);
5872
+ };
5873
+
5874
+
5298
5875
 
5299
5876
 
5300
5877
 
@@ -5812,7 +6389,9 @@ goodReceiptsList: jspb.Message.toObjectList(msg.getGoodReceiptsList(),
5812
6389
  proto.GoodReceipt.toObject, includeInstance),
5813
6390
  documentType: (f = msg.getDocumentType()) && prisca_v1_document_type_document_type_pb.DocumentType.toObject(includeInstance, f),
5814
6391
  documentTypeReferences: jspb.Message.getFieldWithDefault(msg, 44, ""),
5815
- customTransaction: jspb.Message.getFieldWithDefault(msg, 45, "")
6392
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 45, ""),
6393
+ requestedBy: jspb.Message.getFieldWithDefault(msg, 46, ""),
6394
+ requestor: (f = msg.getRequestor()) && prisca_v1_global_meta_meta_pb.Creator.toObject(includeInstance, f)
5816
6395
  };
5817
6396
 
5818
6397
  if (includeInstance) {
@@ -6038,6 +6617,15 @@ proto.PurchaseOrder.deserializeBinaryFromReader = function(msg, reader) {
6038
6617
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
6039
6618
  msg.setCustomTransaction(value);
6040
6619
  break;
6620
+ case 46:
6621
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6622
+ msg.setRequestedBy(value);
6623
+ break;
6624
+ case 47:
6625
+ var value = new prisca_v1_global_meta_meta_pb.Creator;
6626
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Creator.deserializeBinaryFromReader);
6627
+ msg.setRequestor(value);
6628
+ break;
6041
6629
  default:
6042
6630
  reader.skipField();
6043
6631
  break;
@@ -6391,6 +6979,21 @@ proto.PurchaseOrder.serializeBinaryToWriter = function(message, writer) {
6391
6979
  f
6392
6980
  );
6393
6981
  }
6982
+ f = message.getRequestedBy();
6983
+ if (f.length > 0) {
6984
+ writer.writeString(
6985
+ 46,
6986
+ f
6987
+ );
6988
+ }
6989
+ f = message.getRequestor();
6990
+ if (f != null) {
6991
+ writer.writeMessage(
6992
+ 47,
6993
+ f,
6994
+ prisca_v1_global_meta_meta_pb.Creator.serializeBinaryToWriter
6995
+ );
6996
+ }
6394
6997
  };
6395
6998
 
6396
6999
 
@@ -7379,6 +7982,61 @@ proto.PurchaseOrder.prototype.setCustomTransaction = function(value) {
7379
7982
  };
7380
7983
 
7381
7984
 
7985
+ /**
7986
+ * optional string requested_by = 46;
7987
+ * @return {string}
7988
+ */
7989
+ proto.PurchaseOrder.prototype.getRequestedBy = function() {
7990
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 46, ""));
7991
+ };
7992
+
7993
+
7994
+ /**
7995
+ * @param {string} value
7996
+ * @return {!proto.PurchaseOrder} returns this
7997
+ */
7998
+ proto.PurchaseOrder.prototype.setRequestedBy = function(value) {
7999
+ return jspb.Message.setProto3StringField(this, 46, value);
8000
+ };
8001
+
8002
+
8003
+ /**
8004
+ * optional prisca.v1.global.meta.Creator requestor = 47;
8005
+ * @return {?proto.prisca.v1.global.meta.Creator}
8006
+ */
8007
+ proto.PurchaseOrder.prototype.getRequestor = function() {
8008
+ return /** @type{?proto.prisca.v1.global.meta.Creator} */ (
8009
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Creator, 47));
8010
+ };
8011
+
8012
+
8013
+ /**
8014
+ * @param {?proto.prisca.v1.global.meta.Creator|undefined} value
8015
+ * @return {!proto.PurchaseOrder} returns this
8016
+ */
8017
+ proto.PurchaseOrder.prototype.setRequestor = function(value) {
8018
+ return jspb.Message.setWrapperField(this, 47, value);
8019
+ };
8020
+
8021
+
8022
+ /**
8023
+ * Clears the message field making it undefined.
8024
+ * @return {!proto.PurchaseOrder} returns this
8025
+ */
8026
+ proto.PurchaseOrder.prototype.clearRequestor = function() {
8027
+ return this.setRequestor(undefined);
8028
+ };
8029
+
8030
+
8031
+ /**
8032
+ * Returns whether this field is set.
8033
+ * @return {boolean}
8034
+ */
8035
+ proto.PurchaseOrder.prototype.hasRequestor = function() {
8036
+ return jspb.Message.getField(this, 47) != null;
8037
+ };
8038
+
8039
+
7382
8040
 
7383
8041
  /**
7384
8042
  * List of repeated fields within this message type.
@@ -7449,7 +8107,8 @@ biddingReferences: jspb.Message.getFieldWithDefault(msg, 26, ""),
7449
8107
  biddingNumber: jspb.Message.getFieldWithDefault(msg, 27, ""),
7450
8108
  purchaseRequisitionReferences: jspb.Message.getFieldWithDefault(msg, 28, ""),
7451
8109
  purchaseRequisitionNumber: jspb.Message.getFieldWithDefault(msg, 29, ""),
7452
- customTransaction: jspb.Message.getFieldWithDefault(msg, 31, "")
8110
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 31, ""),
8111
+ requestedBy: jspb.Message.getFieldWithDefault(msg, 32, "")
7453
8112
  };
7454
8113
 
7455
8114
  if (includeInstance) {
@@ -7609,6 +8268,10 @@ proto.BasePurchaseOrderRequest.deserializeBinaryFromReader = function(msg, reade
7609
8268
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
7610
8269
  msg.setCustomTransaction(value);
7611
8270
  break;
8271
+ case 32:
8272
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
8273
+ msg.setRequestedBy(value);
8274
+ break;
7612
8275
  default:
7613
8276
  reader.skipField();
7614
8277
  break;
@@ -7851,6 +8514,13 @@ proto.BasePurchaseOrderRequest.serializeBinaryToWriter = function(message, write
7851
8514
  f
7852
8515
  );
7853
8516
  }
8517
+ f = message.getRequestedBy();
8518
+ if (f.length > 0) {
8519
+ writer.writeString(
8520
+ 32,
8521
+ f
8522
+ );
8523
+ }
7854
8524
  };
7855
8525
 
7856
8526
 
@@ -8453,6 +9123,24 @@ proto.BasePurchaseOrderRequest.prototype.setCustomTransaction = function(value)
8453
9123
  };
8454
9124
 
8455
9125
 
9126
+ /**
9127
+ * optional string requested_by = 32;
9128
+ * @return {string}
9129
+ */
9130
+ proto.BasePurchaseOrderRequest.prototype.getRequestedBy = function() {
9131
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 32, ""));
9132
+ };
9133
+
9134
+
9135
+ /**
9136
+ * @param {string} value
9137
+ * @return {!proto.BasePurchaseOrderRequest} returns this
9138
+ */
9139
+ proto.BasePurchaseOrderRequest.prototype.setRequestedBy = function(value) {
9140
+ return jspb.Message.setProto3StringField(this, 32, value);
9141
+ };
9142
+
9143
+
8456
9144
 
8457
9145
 
8458
9146