@aldiokta/protocgen 1.1.64 → 1.1.65
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/core/auth/auth_grpc_pb.js +99 -0
- package/prisca/v1/core/auth/auth_pb.js +2347 -851
- package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +33 -0
- package/prisca/v1/core/file_upload/file_upload_pb.js +304 -0
- package/prisca/v1/valuation/valuation_pb.js +93 -3
- package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +66 -0
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +940 -0
|
@@ -4,6 +4,28 @@
|
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var prisca_v1_core_file_upload_file_upload_pb = require('../../../../prisca/v1/core/file_upload/file_upload_pb.js');
|
|
6
6
|
|
|
7
|
+
function serialize_DeleteFileReq(arg) {
|
|
8
|
+
if (!(arg instanceof prisca_v1_core_file_upload_file_upload_pb.DeleteFileReq)) {
|
|
9
|
+
throw new Error('Expected argument of type DeleteFileReq');
|
|
10
|
+
}
|
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function deserialize_DeleteFileReq(buffer_arg) {
|
|
15
|
+
return prisca_v1_core_file_upload_file_upload_pb.DeleteFileReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function serialize_DeleteFileRes(arg) {
|
|
19
|
+
if (!(arg instanceof prisca_v1_core_file_upload_file_upload_pb.DeleteFileRes)) {
|
|
20
|
+
throw new Error('Expected argument of type DeleteFileRes');
|
|
21
|
+
}
|
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function deserialize_DeleteFileRes(buffer_arg) {
|
|
26
|
+
return prisca_v1_core_file_upload_file_upload_pb.DeleteFileRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
|
+
}
|
|
28
|
+
|
|
7
29
|
function serialize_FileUploadReferencesReq(arg) {
|
|
8
30
|
if (!(arg instanceof prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq)) {
|
|
9
31
|
throw new Error('Expected argument of type FileUploadReferencesReq');
|
|
@@ -61,6 +83,17 @@ var UploadFileServiceService = exports.UploadFileServiceService = {
|
|
|
61
83
|
responseSerialize: serialize_FileUploadRes,
|
|
62
84
|
responseDeserialize: deserialize_FileUploadRes,
|
|
63
85
|
},
|
|
86
|
+
deleteFile: {
|
|
87
|
+
path: '/UploadFileService/DeleteFile',
|
|
88
|
+
requestStream: false,
|
|
89
|
+
responseStream: false,
|
|
90
|
+
requestType: prisca_v1_core_file_upload_file_upload_pb.DeleteFileReq,
|
|
91
|
+
responseType: prisca_v1_core_file_upload_file_upload_pb.DeleteFileRes,
|
|
92
|
+
requestSerialize: serialize_DeleteFileReq,
|
|
93
|
+
requestDeserialize: deserialize_DeleteFileReq,
|
|
94
|
+
responseSerialize: serialize_DeleteFileRes,
|
|
95
|
+
responseDeserialize: deserialize_DeleteFileRes,
|
|
96
|
+
},
|
|
64
97
|
};
|
|
65
98
|
|
|
66
99
|
exports.UploadFileServiceClient = grpc.makeGenericClientConstructor(UploadFileServiceService, 'UploadFileService');
|
|
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = globalThis;
|
|
17
17
|
|
|
18
|
+
goog.exportSymbol('proto.DeleteFileReq', null, global);
|
|
19
|
+
goog.exportSymbol('proto.DeleteFileRes', null, global);
|
|
18
20
|
goog.exportSymbol('proto.FileInfo', null, global);
|
|
19
21
|
goog.exportSymbol('proto.FileUploadReferencesReq', null, global);
|
|
20
22
|
goog.exportSymbol('proto.FileUploadReq', null, global);
|
|
@@ -83,6 +85,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
83
85
|
*/
|
|
84
86
|
proto.FileUploadReferencesReq.displayName = 'proto.FileUploadReferencesReq';
|
|
85
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Generated by JsPbCodeGenerator.
|
|
90
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
91
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
92
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
93
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
94
|
+
* valid.
|
|
95
|
+
* @extends {jspb.Message}
|
|
96
|
+
* @constructor
|
|
97
|
+
*/
|
|
98
|
+
proto.DeleteFileReq = function(opt_data) {
|
|
99
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
100
|
+
};
|
|
101
|
+
goog.inherits(proto.DeleteFileReq, jspb.Message);
|
|
102
|
+
if (goog.DEBUG && !COMPILED) {
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
* @override
|
|
106
|
+
*/
|
|
107
|
+
proto.DeleteFileReq.displayName = 'proto.DeleteFileReq';
|
|
108
|
+
}
|
|
86
109
|
/**
|
|
87
110
|
* Generated by JsPbCodeGenerator.
|
|
88
111
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -104,6 +127,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
104
127
|
*/
|
|
105
128
|
proto.FileUploadRes.displayName = 'proto.FileUploadRes';
|
|
106
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Generated by JsPbCodeGenerator.
|
|
132
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
133
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
134
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
135
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
136
|
+
* valid.
|
|
137
|
+
* @extends {jspb.Message}
|
|
138
|
+
* @constructor
|
|
139
|
+
*/
|
|
140
|
+
proto.DeleteFileRes = function(opt_data) {
|
|
141
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
142
|
+
};
|
|
143
|
+
goog.inherits(proto.DeleteFileRes, jspb.Message);
|
|
144
|
+
if (goog.DEBUG && !COMPILED) {
|
|
145
|
+
/**
|
|
146
|
+
* @public
|
|
147
|
+
* @override
|
|
148
|
+
*/
|
|
149
|
+
proto.DeleteFileRes.displayName = 'proto.DeleteFileRes';
|
|
150
|
+
}
|
|
107
151
|
|
|
108
152
|
|
|
109
153
|
|
|
@@ -886,6 +930,136 @@ proto.FileUploadReferencesReq.prototype.setDocumentType = function(value) {
|
|
|
886
930
|
|
|
887
931
|
|
|
888
932
|
|
|
933
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
934
|
+
/**
|
|
935
|
+
* Creates an object representation of this proto.
|
|
936
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
937
|
+
* Optional fields that are not set will be set to undefined.
|
|
938
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
939
|
+
* For the list of reserved names please see:
|
|
940
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
941
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
942
|
+
* JSPB instance for transitional soy proto support:
|
|
943
|
+
* http://goto/soy-param-migration
|
|
944
|
+
* @return {!Object}
|
|
945
|
+
*/
|
|
946
|
+
proto.DeleteFileReq.prototype.toObject = function(opt_includeInstance) {
|
|
947
|
+
return proto.DeleteFileReq.toObject(opt_includeInstance, this);
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* Static version of the {@see toObject} method.
|
|
953
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
954
|
+
* the JSPB instance for transitional soy proto support:
|
|
955
|
+
* http://goto/soy-param-migration
|
|
956
|
+
* @param {!proto.DeleteFileReq} msg The msg instance to transform.
|
|
957
|
+
* @return {!Object}
|
|
958
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
959
|
+
*/
|
|
960
|
+
proto.DeleteFileReq.toObject = function(includeInstance, msg) {
|
|
961
|
+
var f, obj = {
|
|
962
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
963
|
+
};
|
|
964
|
+
|
|
965
|
+
if (includeInstance) {
|
|
966
|
+
obj.$jspbMessageInstance = msg;
|
|
967
|
+
}
|
|
968
|
+
return obj;
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* Deserializes binary data (in protobuf wire format).
|
|
975
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
976
|
+
* @return {!proto.DeleteFileReq}
|
|
977
|
+
*/
|
|
978
|
+
proto.DeleteFileReq.deserializeBinary = function(bytes) {
|
|
979
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
980
|
+
var msg = new proto.DeleteFileReq;
|
|
981
|
+
return proto.DeleteFileReq.deserializeBinaryFromReader(msg, reader);
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
987
|
+
* given reader into the given message object.
|
|
988
|
+
* @param {!proto.DeleteFileReq} msg The message object to deserialize into.
|
|
989
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
990
|
+
* @return {!proto.DeleteFileReq}
|
|
991
|
+
*/
|
|
992
|
+
proto.DeleteFileReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
993
|
+
while (reader.nextField()) {
|
|
994
|
+
if (reader.isEndGroup()) {
|
|
995
|
+
break;
|
|
996
|
+
}
|
|
997
|
+
var field = reader.getFieldNumber();
|
|
998
|
+
switch (field) {
|
|
999
|
+
case 1:
|
|
1000
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1001
|
+
msg.setReferencesId(value);
|
|
1002
|
+
break;
|
|
1003
|
+
default:
|
|
1004
|
+
reader.skipField();
|
|
1005
|
+
break;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
return msg;
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1014
|
+
* @return {!Uint8Array}
|
|
1015
|
+
*/
|
|
1016
|
+
proto.DeleteFileReq.prototype.serializeBinary = function() {
|
|
1017
|
+
var writer = new jspb.BinaryWriter();
|
|
1018
|
+
proto.DeleteFileReq.serializeBinaryToWriter(this, writer);
|
|
1019
|
+
return writer.getResultBuffer();
|
|
1020
|
+
};
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1025
|
+
* format), writing to the given BinaryWriter.
|
|
1026
|
+
* @param {!proto.DeleteFileReq} message
|
|
1027
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1028
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1029
|
+
*/
|
|
1030
|
+
proto.DeleteFileReq.serializeBinaryToWriter = function(message, writer) {
|
|
1031
|
+
var f = undefined;
|
|
1032
|
+
f = message.getReferencesId();
|
|
1033
|
+
if (f.length > 0) {
|
|
1034
|
+
writer.writeString(
|
|
1035
|
+
1,
|
|
1036
|
+
f
|
|
1037
|
+
);
|
|
1038
|
+
}
|
|
1039
|
+
};
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* optional string references_id = 1;
|
|
1044
|
+
* @return {string}
|
|
1045
|
+
*/
|
|
1046
|
+
proto.DeleteFileReq.prototype.getReferencesId = function() {
|
|
1047
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* @param {string} value
|
|
1053
|
+
* @return {!proto.DeleteFileReq} returns this
|
|
1054
|
+
*/
|
|
1055
|
+
proto.DeleteFileReq.prototype.setReferencesId = function(value) {
|
|
1056
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
|
|
889
1063
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
890
1064
|
/**
|
|
891
1065
|
* Creates an object representation of this proto.
|
|
@@ -1163,4 +1337,134 @@ proto.FileUploadRes.prototype.setDocumentType = function(value) {
|
|
|
1163
1337
|
};
|
|
1164
1338
|
|
|
1165
1339
|
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
|
|
1343
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1344
|
+
/**
|
|
1345
|
+
* Creates an object representation of this proto.
|
|
1346
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1347
|
+
* Optional fields that are not set will be set to undefined.
|
|
1348
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1349
|
+
* For the list of reserved names please see:
|
|
1350
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1351
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1352
|
+
* JSPB instance for transitional soy proto support:
|
|
1353
|
+
* http://goto/soy-param-migration
|
|
1354
|
+
* @return {!Object}
|
|
1355
|
+
*/
|
|
1356
|
+
proto.DeleteFileRes.prototype.toObject = function(opt_includeInstance) {
|
|
1357
|
+
return proto.DeleteFileRes.toObject(opt_includeInstance, this);
|
|
1358
|
+
};
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* Static version of the {@see toObject} method.
|
|
1363
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1364
|
+
* the JSPB instance for transitional soy proto support:
|
|
1365
|
+
* http://goto/soy-param-migration
|
|
1366
|
+
* @param {!proto.DeleteFileRes} msg The msg instance to transform.
|
|
1367
|
+
* @return {!Object}
|
|
1368
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1369
|
+
*/
|
|
1370
|
+
proto.DeleteFileRes.toObject = function(includeInstance, msg) {
|
|
1371
|
+
var f, obj = {
|
|
1372
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1373
|
+
};
|
|
1374
|
+
|
|
1375
|
+
if (includeInstance) {
|
|
1376
|
+
obj.$jspbMessageInstance = msg;
|
|
1377
|
+
}
|
|
1378
|
+
return obj;
|
|
1379
|
+
};
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1385
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1386
|
+
* @return {!proto.DeleteFileRes}
|
|
1387
|
+
*/
|
|
1388
|
+
proto.DeleteFileRes.deserializeBinary = function(bytes) {
|
|
1389
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1390
|
+
var msg = new proto.DeleteFileRes;
|
|
1391
|
+
return proto.DeleteFileRes.deserializeBinaryFromReader(msg, reader);
|
|
1392
|
+
};
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1397
|
+
* given reader into the given message object.
|
|
1398
|
+
* @param {!proto.DeleteFileRes} msg The message object to deserialize into.
|
|
1399
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1400
|
+
* @return {!proto.DeleteFileRes}
|
|
1401
|
+
*/
|
|
1402
|
+
proto.DeleteFileRes.deserializeBinaryFromReader = function(msg, reader) {
|
|
1403
|
+
while (reader.nextField()) {
|
|
1404
|
+
if (reader.isEndGroup()) {
|
|
1405
|
+
break;
|
|
1406
|
+
}
|
|
1407
|
+
var field = reader.getFieldNumber();
|
|
1408
|
+
switch (field) {
|
|
1409
|
+
case 1:
|
|
1410
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1411
|
+
msg.setReferencesId(value);
|
|
1412
|
+
break;
|
|
1413
|
+
default:
|
|
1414
|
+
reader.skipField();
|
|
1415
|
+
break;
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
return msg;
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1424
|
+
* @return {!Uint8Array}
|
|
1425
|
+
*/
|
|
1426
|
+
proto.DeleteFileRes.prototype.serializeBinary = function() {
|
|
1427
|
+
var writer = new jspb.BinaryWriter();
|
|
1428
|
+
proto.DeleteFileRes.serializeBinaryToWriter(this, writer);
|
|
1429
|
+
return writer.getResultBuffer();
|
|
1430
|
+
};
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
/**
|
|
1434
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1435
|
+
* format), writing to the given BinaryWriter.
|
|
1436
|
+
* @param {!proto.DeleteFileRes} message
|
|
1437
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1438
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1439
|
+
*/
|
|
1440
|
+
proto.DeleteFileRes.serializeBinaryToWriter = function(message, writer) {
|
|
1441
|
+
var f = undefined;
|
|
1442
|
+
f = message.getReferencesId();
|
|
1443
|
+
if (f.length > 0) {
|
|
1444
|
+
writer.writeString(
|
|
1445
|
+
1,
|
|
1446
|
+
f
|
|
1447
|
+
);
|
|
1448
|
+
}
|
|
1449
|
+
};
|
|
1450
|
+
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* optional string references_id = 1;
|
|
1454
|
+
* @return {string}
|
|
1455
|
+
*/
|
|
1456
|
+
proto.DeleteFileRes.prototype.getReferencesId = function() {
|
|
1457
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
/**
|
|
1462
|
+
* @param {string} value
|
|
1463
|
+
* @return {!proto.DeleteFileRes} returns this
|
|
1464
|
+
*/
|
|
1465
|
+
proto.DeleteFileRes.prototype.setReferencesId = function(value) {
|
|
1466
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1467
|
+
};
|
|
1468
|
+
|
|
1469
|
+
|
|
1166
1470
|
goog.object.extend(exports, proto);
|
|
@@ -772,7 +772,8 @@ quotationReferencesId: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
|
772
772
|
valuationIndicatorReferencesId: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
773
773
|
valuationScaleReferencesId: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
774
774
|
valuationIndicator: (f = msg.getValuationIndicator()) && proto.ValuationIndicator.toObject(includeInstance, f),
|
|
775
|
-
valuationScale: (f = msg.getValuationScale()) && proto.ValuationScale.toObject(includeInstance, f)
|
|
775
|
+
valuationScale: (f = msg.getValuationScale()) && proto.ValuationScale.toObject(includeInstance, f),
|
|
776
|
+
comment: jspb.Message.getFieldWithDefault(msg, 17, "")
|
|
776
777
|
};
|
|
777
778
|
|
|
778
779
|
if (includeInstance) {
|
|
@@ -877,6 +878,10 @@ proto.Valuation.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
877
878
|
reader.readMessage(value,proto.ValuationScale.deserializeBinaryFromReader);
|
|
878
879
|
msg.setValuationScale(value);
|
|
879
880
|
break;
|
|
881
|
+
case 17:
|
|
882
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
883
|
+
msg.setComment(value);
|
|
884
|
+
break;
|
|
880
885
|
default:
|
|
881
886
|
reader.skipField();
|
|
882
887
|
break;
|
|
@@ -1022,6 +1027,13 @@ proto.Valuation.serializeBinaryToWriter = function(message, writer) {
|
|
|
1022
1027
|
proto.ValuationScale.serializeBinaryToWriter
|
|
1023
1028
|
);
|
|
1024
1029
|
}
|
|
1030
|
+
f = message.getComment();
|
|
1031
|
+
if (f.length > 0) {
|
|
1032
|
+
writer.writeString(
|
|
1033
|
+
17,
|
|
1034
|
+
f
|
|
1035
|
+
);
|
|
1036
|
+
}
|
|
1025
1037
|
};
|
|
1026
1038
|
|
|
1027
1039
|
|
|
@@ -1389,6 +1401,24 @@ proto.Valuation.prototype.hasValuationScale = function() {
|
|
|
1389
1401
|
};
|
|
1390
1402
|
|
|
1391
1403
|
|
|
1404
|
+
/**
|
|
1405
|
+
* optional string comment = 17;
|
|
1406
|
+
* @return {string}
|
|
1407
|
+
*/
|
|
1408
|
+
proto.Valuation.prototype.getComment = function() {
|
|
1409
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
|
|
1410
|
+
};
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* @param {string} value
|
|
1415
|
+
* @return {!proto.Valuation} returns this
|
|
1416
|
+
*/
|
|
1417
|
+
proto.Valuation.prototype.setComment = function(value) {
|
|
1418
|
+
return jspb.Message.setProto3StringField(this, 17, value);
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
|
|
1392
1422
|
|
|
1393
1423
|
|
|
1394
1424
|
|
|
@@ -1422,7 +1452,8 @@ proto.BaseValuationReq.prototype.toObject = function(opt_includeInstance) {
|
|
|
1422
1452
|
proto.BaseValuationReq.toObject = function(includeInstance, msg) {
|
|
1423
1453
|
var f, obj = {
|
|
1424
1454
|
valuationIndicatorReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1425
|
-
valuationScaleReferencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1455
|
+
valuationScaleReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1456
|
+
comment: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1426
1457
|
};
|
|
1427
1458
|
|
|
1428
1459
|
if (includeInstance) {
|
|
@@ -1467,6 +1498,10 @@ proto.BaseValuationReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
1467
1498
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1468
1499
|
msg.setValuationScaleReferencesId(value);
|
|
1469
1500
|
break;
|
|
1501
|
+
case 3:
|
|
1502
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1503
|
+
msg.setComment(value);
|
|
1504
|
+
break;
|
|
1470
1505
|
default:
|
|
1471
1506
|
reader.skipField();
|
|
1472
1507
|
break;
|
|
@@ -1510,6 +1545,13 @@ proto.BaseValuationReq.serializeBinaryToWriter = function(message, writer) {
|
|
|
1510
1545
|
f
|
|
1511
1546
|
);
|
|
1512
1547
|
}
|
|
1548
|
+
f = message.getComment();
|
|
1549
|
+
if (f.length > 0) {
|
|
1550
|
+
writer.writeString(
|
|
1551
|
+
3,
|
|
1552
|
+
f
|
|
1553
|
+
);
|
|
1554
|
+
}
|
|
1513
1555
|
};
|
|
1514
1556
|
|
|
1515
1557
|
|
|
@@ -1549,6 +1591,24 @@ proto.BaseValuationReq.prototype.setValuationScaleReferencesId = function(value)
|
|
|
1549
1591
|
};
|
|
1550
1592
|
|
|
1551
1593
|
|
|
1594
|
+
/**
|
|
1595
|
+
* optional string comment = 3;
|
|
1596
|
+
* @return {string}
|
|
1597
|
+
*/
|
|
1598
|
+
proto.BaseValuationReq.prototype.getComment = function() {
|
|
1599
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1600
|
+
};
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* @param {string} value
|
|
1605
|
+
* @return {!proto.BaseValuationReq} returns this
|
|
1606
|
+
*/
|
|
1607
|
+
proto.BaseValuationReq.prototype.setComment = function(value) {
|
|
1608
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1609
|
+
};
|
|
1610
|
+
|
|
1611
|
+
|
|
1552
1612
|
|
|
1553
1613
|
/**
|
|
1554
1614
|
* List of repeated fields within this message type.
|
|
@@ -1984,7 +2044,8 @@ proto.BaseValuationBuilder.toObject = function(includeInstance, msg) {
|
|
|
1984
2044
|
var f, obj = {
|
|
1985
2045
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1986
2046
|
indicatorReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1987
|
-
point: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
|
|
2047
|
+
point: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
2048
|
+
comment: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
1988
2049
|
};
|
|
1989
2050
|
|
|
1990
2051
|
if (includeInstance) {
|
|
@@ -2033,6 +2094,10 @@ proto.BaseValuationBuilder.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2033
2094
|
var value = /** @type {number} */ (reader.readFloat());
|
|
2034
2095
|
msg.setPoint(value);
|
|
2035
2096
|
break;
|
|
2097
|
+
case 4:
|
|
2098
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2099
|
+
msg.setComment(value);
|
|
2100
|
+
break;
|
|
2036
2101
|
default:
|
|
2037
2102
|
reader.skipField();
|
|
2038
2103
|
break;
|
|
@@ -2083,6 +2148,13 @@ proto.BaseValuationBuilder.serializeBinaryToWriter = function(message, writer) {
|
|
|
2083
2148
|
f
|
|
2084
2149
|
);
|
|
2085
2150
|
}
|
|
2151
|
+
f = message.getComment();
|
|
2152
|
+
if (f.length > 0) {
|
|
2153
|
+
writer.writeString(
|
|
2154
|
+
4,
|
|
2155
|
+
f
|
|
2156
|
+
);
|
|
2157
|
+
}
|
|
2086
2158
|
};
|
|
2087
2159
|
|
|
2088
2160
|
|
|
@@ -2140,6 +2212,24 @@ proto.BaseValuationBuilder.prototype.setPoint = function(value) {
|
|
|
2140
2212
|
};
|
|
2141
2213
|
|
|
2142
2214
|
|
|
2215
|
+
/**
|
|
2216
|
+
* optional string comment = 4;
|
|
2217
|
+
* @return {string}
|
|
2218
|
+
*/
|
|
2219
|
+
proto.BaseValuationBuilder.prototype.getComment = function() {
|
|
2220
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2221
|
+
};
|
|
2222
|
+
|
|
2223
|
+
|
|
2224
|
+
/**
|
|
2225
|
+
* @param {string} value
|
|
2226
|
+
* @return {!proto.BaseValuationBuilder} returns this
|
|
2227
|
+
*/
|
|
2228
|
+
proto.BaseValuationBuilder.prototype.setComment = function(value) {
|
|
2229
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2230
|
+
};
|
|
2231
|
+
|
|
2232
|
+
|
|
2143
2233
|
|
|
2144
2234
|
/**
|
|
2145
2235
|
* List of repeated fields within this message type.
|
|
@@ -118,6 +118,28 @@ function deserialize_GetVendorProfileRequest(buffer_arg) {
|
|
|
118
118
|
return prisca_v1_vendor_domain_vendor_domain_pb.GetVendorProfileRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
function serialize_ListVendorsPendingAccurateSyncRequest(arg) {
|
|
122
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.ListVendorsPendingAccurateSyncRequest)) {
|
|
123
|
+
throw new Error('Expected argument of type ListVendorsPendingAccurateSyncRequest');
|
|
124
|
+
}
|
|
125
|
+
return Buffer.from(arg.serializeBinary());
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function deserialize_ListVendorsPendingAccurateSyncRequest(buffer_arg) {
|
|
129
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.ListVendorsPendingAccurateSyncRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
function serialize_ListVendorsPendingAccurateSyncResponse(arg) {
|
|
133
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.ListVendorsPendingAccurateSyncResponse)) {
|
|
134
|
+
throw new Error('Expected argument of type ListVendorsPendingAccurateSyncResponse');
|
|
135
|
+
}
|
|
136
|
+
return Buffer.from(arg.serializeBinary());
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function deserialize_ListVendorsPendingAccurateSyncResponse(buffer_arg) {
|
|
140
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.ListVendorsPendingAccurateSyncResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
141
|
+
}
|
|
142
|
+
|
|
121
143
|
function serialize_RegisterVendorRequest(arg) {
|
|
122
144
|
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.RegisterVendorRequest)) {
|
|
123
145
|
throw new Error('Expected argument of type RegisterVendorRequest');
|
|
@@ -151,6 +173,28 @@ function deserialize_SalesDashboardResponse(buffer_arg) {
|
|
|
151
173
|
return prisca_v1_vendor_domain_vendor_domain_pb.SalesDashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
152
174
|
}
|
|
153
175
|
|
|
176
|
+
function serialize_SyncVendorToAccurateRequest(arg) {
|
|
177
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.SyncVendorToAccurateRequest)) {
|
|
178
|
+
throw new Error('Expected argument of type SyncVendorToAccurateRequest');
|
|
179
|
+
}
|
|
180
|
+
return Buffer.from(arg.serializeBinary());
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function deserialize_SyncVendorToAccurateRequest(buffer_arg) {
|
|
184
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.SyncVendorToAccurateRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
function serialize_SyncVendorToAccurateResponse(arg) {
|
|
188
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.SyncVendorToAccurateResponse)) {
|
|
189
|
+
throw new Error('Expected argument of type SyncVendorToAccurateResponse');
|
|
190
|
+
}
|
|
191
|
+
return Buffer.from(arg.serializeBinary());
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function deserialize_SyncVendorToAccurateResponse(buffer_arg) {
|
|
195
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.SyncVendorToAccurateResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
196
|
+
}
|
|
197
|
+
|
|
154
198
|
function serialize_UpdateVendorRequest(arg) {
|
|
155
199
|
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.UpdateVendorRequest)) {
|
|
156
200
|
throw new Error('Expected argument of type UpdateVendorRequest');
|
|
@@ -319,6 +363,28 @@ var VendorServiceService = exports.VendorServiceService = {
|
|
|
319
363
|
responseSerialize: serialize_SalesDashboardResponse,
|
|
320
364
|
responseDeserialize: deserialize_SalesDashboardResponse,
|
|
321
365
|
},
|
|
366
|
+
syncVendorToAccurate: {
|
|
367
|
+
path: '/VendorService/SyncVendorToAccurate',
|
|
368
|
+
requestStream: false,
|
|
369
|
+
responseStream: false,
|
|
370
|
+
requestType: prisca_v1_vendor_domain_vendor_domain_pb.SyncVendorToAccurateRequest,
|
|
371
|
+
responseType: prisca_v1_vendor_domain_vendor_domain_pb.SyncVendorToAccurateResponse,
|
|
372
|
+
requestSerialize: serialize_SyncVendorToAccurateRequest,
|
|
373
|
+
requestDeserialize: deserialize_SyncVendorToAccurateRequest,
|
|
374
|
+
responseSerialize: serialize_SyncVendorToAccurateResponse,
|
|
375
|
+
responseDeserialize: deserialize_SyncVendorToAccurateResponse,
|
|
376
|
+
},
|
|
377
|
+
listVendorsPendingAccurateSync: {
|
|
378
|
+
path: '/VendorService/ListVendorsPendingAccurateSync',
|
|
379
|
+
requestStream: false,
|
|
380
|
+
responseStream: false,
|
|
381
|
+
requestType: prisca_v1_vendor_domain_vendor_domain_pb.ListVendorsPendingAccurateSyncRequest,
|
|
382
|
+
responseType: prisca_v1_vendor_domain_vendor_domain_pb.ListVendorsPendingAccurateSyncResponse,
|
|
383
|
+
requestSerialize: serialize_ListVendorsPendingAccurateSyncRequest,
|
|
384
|
+
requestDeserialize: deserialize_ListVendorsPendingAccurateSyncRequest,
|
|
385
|
+
responseSerialize: serialize_ListVendorsPendingAccurateSyncResponse,
|
|
386
|
+
responseDeserialize: deserialize_ListVendorsPendingAccurateSyncResponse,
|
|
387
|
+
},
|
|
322
388
|
};
|
|
323
389
|
|
|
324
390
|
exports.VendorServiceClient = grpc.makeGenericClientConstructor(VendorServiceService, 'VendorService');
|