@aldiokta/protocgen 1.1.29 → 1.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisca/v1/bidding/bidding_grpc_pb.js +1 -0
- package/prisca/v1/bidding/bidding_pb.js +206 -3
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +316 -16
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +61 -1
- package/prisca/v1/core/messaging/notification_grpc_pb.js +22 -0
- package/prisca/v1/core/messaging/notification_pb.js +425 -42
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +31 -1
- package/prisca/v1/delivery_order/delivery_order_pb.js +20 -1140
- package/prisca/v1/document_type/document_type_grpc_pb.js +22 -0
- package/prisca/v1/document_type/document_type_pb.js +214 -2
- package/prisca/v1/good_receipt/good_receipt_pb.js +25 -1235
- package/prisca/v1/invoice/invoice_pb.js +1615 -1559
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +1 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +4186 -21
- package/prisca/v1/quotation/quotation_grpc_pb.js +33 -0
- package/prisca/v1/quotation/quotation_pb.js +381 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +31 -1
|
@@ -50,6 +50,17 @@ function deserialize_DeleteDocumentTypeResponse(buffer_arg) {
|
|
|
50
50
|
return prisca_v1_document_type_document_type_pb.DeleteDocumentTypeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
function serialize_FindWithReferencesId(arg) {
|
|
54
|
+
if (!(arg instanceof prisca_v1_document_type_document_type_pb.FindWithReferencesId)) {
|
|
55
|
+
throw new Error('Expected argument of type FindWithReferencesId');
|
|
56
|
+
}
|
|
57
|
+
return Buffer.from(arg.serializeBinary());
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function deserialize_FindWithReferencesId(buffer_arg) {
|
|
61
|
+
return prisca_v1_document_type_document_type_pb.FindWithReferencesId.deserializeBinary(new Uint8Array(buffer_arg));
|
|
62
|
+
}
|
|
63
|
+
|
|
53
64
|
function serialize_GetDocumentTypeByIdRequest(arg) {
|
|
54
65
|
if (!(arg instanceof prisca_v1_document_type_document_type_pb.GetDocumentTypeByIdRequest)) {
|
|
55
66
|
throw new Error('Expected argument of type GetDocumentTypeByIdRequest');
|
|
@@ -173,6 +184,17 @@ var DocumentTypeServiceService = exports.DocumentTypeServiceService = {
|
|
|
173
184
|
responseSerialize: serialize_DeleteDocumentTypeResponse,
|
|
174
185
|
responseDeserialize: deserialize_DeleteDocumentTypeResponse,
|
|
175
186
|
},
|
|
187
|
+
findDocumentByPurchaseRequisition: {
|
|
188
|
+
path: '/DocumentTypeService/FindDocumentByPurchaseRequisition',
|
|
189
|
+
requestStream: false,
|
|
190
|
+
responseStream: false,
|
|
191
|
+
requestType: prisca_v1_document_type_document_type_pb.FindWithReferencesId,
|
|
192
|
+
responseType: prisca_v1_document_type_document_type_pb.GetDocumentTypeByIdResponse,
|
|
193
|
+
requestSerialize: serialize_FindWithReferencesId,
|
|
194
|
+
requestDeserialize: deserialize_FindWithReferencesId,
|
|
195
|
+
responseSerialize: serialize_GetDocumentTypeByIdResponse,
|
|
196
|
+
responseDeserialize: deserialize_GetDocumentTypeByIdResponse,
|
|
197
|
+
},
|
|
176
198
|
};
|
|
177
199
|
|
|
178
200
|
exports.DocumentTypeServiceClient = grpc.makeGenericClientConstructor(DocumentTypeServiceService, 'DocumentTypeService');
|
|
@@ -31,6 +31,7 @@ goog.exportSymbol('proto.CreateDocumentTypeResponse', null, global);
|
|
|
31
31
|
goog.exportSymbol('proto.DeleteDocumentTypeRequest', null, global);
|
|
32
32
|
goog.exportSymbol('proto.DeleteDocumentTypeResponse', null, global);
|
|
33
33
|
goog.exportSymbol('proto.DocumentType', null, global);
|
|
34
|
+
goog.exportSymbol('proto.FindWithReferencesId', null, global);
|
|
34
35
|
goog.exportSymbol('proto.GetDocumentTypeByIdRequest', null, global);
|
|
35
36
|
goog.exportSymbol('proto.GetDocumentTypeByIdResponse', null, global);
|
|
36
37
|
goog.exportSymbol('proto.GetListDocumentTypeRequest', null, global);
|
|
@@ -79,6 +80,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
79
80
|
*/
|
|
80
81
|
proto.BaseDocumentType.displayName = 'proto.BaseDocumentType';
|
|
81
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Generated by JsPbCodeGenerator.
|
|
85
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
86
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
87
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
88
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
89
|
+
* valid.
|
|
90
|
+
* @extends {jspb.Message}
|
|
91
|
+
* @constructor
|
|
92
|
+
*/
|
|
93
|
+
proto.FindWithReferencesId = function(opt_data) {
|
|
94
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
95
|
+
};
|
|
96
|
+
goog.inherits(proto.FindWithReferencesId, jspb.Message);
|
|
97
|
+
if (goog.DEBUG && !COMPILED) {
|
|
98
|
+
/**
|
|
99
|
+
* @public
|
|
100
|
+
* @override
|
|
101
|
+
*/
|
|
102
|
+
proto.FindWithReferencesId.displayName = 'proto.FindWithReferencesId';
|
|
103
|
+
}
|
|
82
104
|
/**
|
|
83
105
|
* Generated by JsPbCodeGenerator.
|
|
84
106
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -329,7 +351,8 @@ integerIncrement: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
|
329
351
|
numberRangeRef: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
330
352
|
createdAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
331
353
|
updatedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
332
|
-
numberRange: (f = msg.getNumberRange()) && prisca_v1_core_number_range_number_range_pb.NumberRange.toObject(includeInstance, f)
|
|
354
|
+
numberRange: (f = msg.getNumberRange()) && prisca_v1_core_number_range_number_range_pb.NumberRange.toObject(includeInstance, f),
|
|
355
|
+
parentReferences: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
333
356
|
};
|
|
334
357
|
|
|
335
358
|
if (includeInstance) {
|
|
@@ -403,6 +426,10 @@ proto.DocumentType.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
403
426
|
reader.readMessage(value,prisca_v1_core_number_range_number_range_pb.NumberRange.deserializeBinaryFromReader);
|
|
404
427
|
msg.setNumberRange(value);
|
|
405
428
|
break;
|
|
429
|
+
case 10:
|
|
430
|
+
var value = /** @type {string} */ (reader.readString());
|
|
431
|
+
msg.setParentReferences(value);
|
|
432
|
+
break;
|
|
406
433
|
default:
|
|
407
434
|
reader.skipField();
|
|
408
435
|
break;
|
|
@@ -496,6 +523,13 @@ proto.DocumentType.serializeBinaryToWriter = function(message, writer) {
|
|
|
496
523
|
prisca_v1_core_number_range_number_range_pb.NumberRange.serializeBinaryToWriter
|
|
497
524
|
);
|
|
498
525
|
}
|
|
526
|
+
f = message.getParentReferences();
|
|
527
|
+
if (f.length > 0) {
|
|
528
|
+
writer.writeString(
|
|
529
|
+
10,
|
|
530
|
+
f
|
|
531
|
+
);
|
|
532
|
+
}
|
|
499
533
|
};
|
|
500
534
|
|
|
501
535
|
|
|
@@ -680,6 +714,24 @@ proto.DocumentType.prototype.hasNumberRange = function() {
|
|
|
680
714
|
};
|
|
681
715
|
|
|
682
716
|
|
|
717
|
+
/**
|
|
718
|
+
* optional string parent_references = 10;
|
|
719
|
+
* @return {string}
|
|
720
|
+
*/
|
|
721
|
+
proto.DocumentType.prototype.getParentReferences = function() {
|
|
722
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* @param {string} value
|
|
728
|
+
* @return {!proto.DocumentType} returns this
|
|
729
|
+
*/
|
|
730
|
+
proto.DocumentType.prototype.setParentReferences = function(value) {
|
|
731
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
|
|
683
735
|
|
|
684
736
|
|
|
685
737
|
|
|
@@ -715,7 +767,8 @@ proto.BaseDocumentType.toObject = function(includeInstance, msg) {
|
|
|
715
767
|
code: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
716
768
|
codeDescription: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
717
769
|
integerIncrement: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
718
|
-
numberRangeRef: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
770
|
+
numberRangeRef: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
771
|
+
parentReferences: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
719
772
|
};
|
|
720
773
|
|
|
721
774
|
if (includeInstance) {
|
|
@@ -768,6 +821,10 @@ proto.BaseDocumentType.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
768
821
|
var value = /** @type {string} */ (reader.readString());
|
|
769
822
|
msg.setNumberRangeRef(value);
|
|
770
823
|
break;
|
|
824
|
+
case 5:
|
|
825
|
+
var value = /** @type {string} */ (reader.readString());
|
|
826
|
+
msg.setParentReferences(value);
|
|
827
|
+
break;
|
|
771
828
|
default:
|
|
772
829
|
reader.skipField();
|
|
773
830
|
break;
|
|
@@ -825,6 +882,13 @@ proto.BaseDocumentType.serializeBinaryToWriter = function(message, writer) {
|
|
|
825
882
|
f
|
|
826
883
|
);
|
|
827
884
|
}
|
|
885
|
+
f = message.getParentReferences();
|
|
886
|
+
if (f.length > 0) {
|
|
887
|
+
writer.writeString(
|
|
888
|
+
5,
|
|
889
|
+
f
|
|
890
|
+
);
|
|
891
|
+
}
|
|
828
892
|
};
|
|
829
893
|
|
|
830
894
|
|
|
@@ -900,6 +964,154 @@ proto.BaseDocumentType.prototype.setNumberRangeRef = function(value) {
|
|
|
900
964
|
};
|
|
901
965
|
|
|
902
966
|
|
|
967
|
+
/**
|
|
968
|
+
* optional string parent_references = 5;
|
|
969
|
+
* @return {string}
|
|
970
|
+
*/
|
|
971
|
+
proto.BaseDocumentType.prototype.getParentReferences = function() {
|
|
972
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
973
|
+
};
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* @param {string} value
|
|
978
|
+
* @return {!proto.BaseDocumentType} returns this
|
|
979
|
+
*/
|
|
980
|
+
proto.BaseDocumentType.prototype.setParentReferences = function(value) {
|
|
981
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
989
|
+
/**
|
|
990
|
+
* Creates an object representation of this proto.
|
|
991
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
992
|
+
* Optional fields that are not set will be set to undefined.
|
|
993
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
994
|
+
* For the list of reserved names please see:
|
|
995
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
996
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
997
|
+
* JSPB instance for transitional soy proto support:
|
|
998
|
+
* http://goto/soy-param-migration
|
|
999
|
+
* @return {!Object}
|
|
1000
|
+
*/
|
|
1001
|
+
proto.FindWithReferencesId.prototype.toObject = function(opt_includeInstance) {
|
|
1002
|
+
return proto.FindWithReferencesId.toObject(opt_includeInstance, this);
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* Static version of the {@see toObject} method.
|
|
1008
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1009
|
+
* the JSPB instance for transitional soy proto support:
|
|
1010
|
+
* http://goto/soy-param-migration
|
|
1011
|
+
* @param {!proto.FindWithReferencesId} msg The msg instance to transform.
|
|
1012
|
+
* @return {!Object}
|
|
1013
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1014
|
+
*/
|
|
1015
|
+
proto.FindWithReferencesId.toObject = function(includeInstance, msg) {
|
|
1016
|
+
var f, obj = {
|
|
1017
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1018
|
+
};
|
|
1019
|
+
|
|
1020
|
+
if (includeInstance) {
|
|
1021
|
+
obj.$jspbMessageInstance = msg;
|
|
1022
|
+
}
|
|
1023
|
+
return obj;
|
|
1024
|
+
};
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1030
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1031
|
+
* @return {!proto.FindWithReferencesId}
|
|
1032
|
+
*/
|
|
1033
|
+
proto.FindWithReferencesId.deserializeBinary = function(bytes) {
|
|
1034
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1035
|
+
var msg = new proto.FindWithReferencesId;
|
|
1036
|
+
return proto.FindWithReferencesId.deserializeBinaryFromReader(msg, reader);
|
|
1037
|
+
};
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1042
|
+
* given reader into the given message object.
|
|
1043
|
+
* @param {!proto.FindWithReferencesId} msg The message object to deserialize into.
|
|
1044
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1045
|
+
* @return {!proto.FindWithReferencesId}
|
|
1046
|
+
*/
|
|
1047
|
+
proto.FindWithReferencesId.deserializeBinaryFromReader = function(msg, reader) {
|
|
1048
|
+
while (reader.nextField()) {
|
|
1049
|
+
if (reader.isEndGroup()) {
|
|
1050
|
+
break;
|
|
1051
|
+
}
|
|
1052
|
+
var field = reader.getFieldNumber();
|
|
1053
|
+
switch (field) {
|
|
1054
|
+
case 1:
|
|
1055
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1056
|
+
msg.setReferencesId(value);
|
|
1057
|
+
break;
|
|
1058
|
+
default:
|
|
1059
|
+
reader.skipField();
|
|
1060
|
+
break;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
return msg;
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1069
|
+
* @return {!Uint8Array}
|
|
1070
|
+
*/
|
|
1071
|
+
proto.FindWithReferencesId.prototype.serializeBinary = function() {
|
|
1072
|
+
var writer = new jspb.BinaryWriter();
|
|
1073
|
+
proto.FindWithReferencesId.serializeBinaryToWriter(this, writer);
|
|
1074
|
+
return writer.getResultBuffer();
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1080
|
+
* format), writing to the given BinaryWriter.
|
|
1081
|
+
* @param {!proto.FindWithReferencesId} message
|
|
1082
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1083
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1084
|
+
*/
|
|
1085
|
+
proto.FindWithReferencesId.serializeBinaryToWriter = function(message, writer) {
|
|
1086
|
+
var f = undefined;
|
|
1087
|
+
f = message.getReferencesId();
|
|
1088
|
+
if (f.length > 0) {
|
|
1089
|
+
writer.writeString(
|
|
1090
|
+
1,
|
|
1091
|
+
f
|
|
1092
|
+
);
|
|
1093
|
+
}
|
|
1094
|
+
};
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* optional string references_id = 1;
|
|
1099
|
+
* @return {string}
|
|
1100
|
+
*/
|
|
1101
|
+
proto.FindWithReferencesId.prototype.getReferencesId = function() {
|
|
1102
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* @param {string} value
|
|
1108
|
+
* @return {!proto.FindWithReferencesId} returns this
|
|
1109
|
+
*/
|
|
1110
|
+
proto.FindWithReferencesId.prototype.setReferencesId = function(value) {
|
|
1111
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1112
|
+
};
|
|
1113
|
+
|
|
1114
|
+
|
|
903
1115
|
|
|
904
1116
|
|
|
905
1117
|
|