@aldiokta/protocgen 1.1.6 → 1.1.8
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 +119 -0
- package/prisca/v1/bidding/bidding_pb.js +3152 -0
- package/prisca/v1/core/company/company_grpc_pb.js +1 -0
- package/prisca/v1/core/company/company_pb.js +175 -2
- package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +20 -42
- package/prisca/v1/core/file_upload/file_upload_pb.js +264 -256
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +1252 -74
- package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +20 -50
- package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +146 -0
- package/prisca/v1/core/price_condition/price_condition_pb.js +2654 -0
- package/prisca/v1/quotation/quotation_grpc_pb.js +151 -0
- package/prisca/v1/quotation/quotation_pb.js +3941 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +192 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +5703 -0
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var prisca_v1_core_company_company_pb = require('../../../../prisca/v1/core/company/company_pb.js');
|
|
6
6
|
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
|
+
var prisca_v1_core_file_upload_file_upload_pb = require('../../../../prisca/v1/core/file_upload/file_upload_pb.js');
|
|
7
8
|
|
|
8
9
|
function serialize_CompanyGetByIdRequest(arg) {
|
|
9
10
|
if (!(arg instanceof prisca_v1_core_company_company_pb.CompanyGetByIdRequest)) {
|
|
@@ -23,6 +23,8 @@ var global =
|
|
|
23
23
|
|
|
24
24
|
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
25
25
|
goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
|
|
26
|
+
var prisca_v1_core_file_upload_file_upload_pb = require('../../../../prisca/v1/core/file_upload/file_upload_pb.js');
|
|
27
|
+
goog.object.extend(proto, prisca_v1_core_file_upload_file_upload_pb);
|
|
26
28
|
goog.exportSymbol('proto.BaseCompany', null, global);
|
|
27
29
|
goog.exportSymbol('proto.BaseCompanyParent', null, global);
|
|
28
30
|
goog.exportSymbol('proto.Company', null, global);
|
|
@@ -345,7 +347,9 @@ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
345
347
|
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
346
348
|
currencyCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
347
349
|
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
348
|
-
parentReferencesId: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
350
|
+
parentReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
351
|
+
logo: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
352
|
+
termAndCondition: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
349
353
|
};
|
|
350
354
|
|
|
351
355
|
if (includeInstance) {
|
|
@@ -402,6 +406,14 @@ proto.Company.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
402
406
|
var value = /** @type {string} */ (reader.readString());
|
|
403
407
|
msg.setParentReferencesId(value);
|
|
404
408
|
break;
|
|
409
|
+
case 6:
|
|
410
|
+
var value = /** @type {string} */ (reader.readString());
|
|
411
|
+
msg.setLogo(value);
|
|
412
|
+
break;
|
|
413
|
+
case 7:
|
|
414
|
+
var value = /** @type {string} */ (reader.readString());
|
|
415
|
+
msg.setTermAndCondition(value);
|
|
416
|
+
break;
|
|
405
417
|
default:
|
|
406
418
|
reader.skipField();
|
|
407
419
|
break;
|
|
@@ -466,6 +478,20 @@ proto.Company.serializeBinaryToWriter = function(message, writer) {
|
|
|
466
478
|
f
|
|
467
479
|
);
|
|
468
480
|
}
|
|
481
|
+
f = message.getLogo();
|
|
482
|
+
if (f.length > 0) {
|
|
483
|
+
writer.writeString(
|
|
484
|
+
6,
|
|
485
|
+
f
|
|
486
|
+
);
|
|
487
|
+
}
|
|
488
|
+
f = message.getTermAndCondition();
|
|
489
|
+
if (f.length > 0) {
|
|
490
|
+
writer.writeString(
|
|
491
|
+
7,
|
|
492
|
+
f
|
|
493
|
+
);
|
|
494
|
+
}
|
|
469
495
|
};
|
|
470
496
|
|
|
471
497
|
|
|
@@ -559,6 +585,42 @@ proto.Company.prototype.setParentReferencesId = function(value) {
|
|
|
559
585
|
};
|
|
560
586
|
|
|
561
587
|
|
|
588
|
+
/**
|
|
589
|
+
* optional string logo = 6;
|
|
590
|
+
* @return {string}
|
|
591
|
+
*/
|
|
592
|
+
proto.Company.prototype.getLogo = function() {
|
|
593
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* @param {string} value
|
|
599
|
+
* @return {!proto.Company} returns this
|
|
600
|
+
*/
|
|
601
|
+
proto.Company.prototype.setLogo = function(value) {
|
|
602
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* optional string term_and_condition = 7;
|
|
608
|
+
* @return {string}
|
|
609
|
+
*/
|
|
610
|
+
proto.Company.prototype.getTermAndCondition = function() {
|
|
611
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* @param {string} value
|
|
617
|
+
* @return {!proto.Company} returns this
|
|
618
|
+
*/
|
|
619
|
+
proto.Company.prototype.setTermAndCondition = function(value) {
|
|
620
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
|
|
562
624
|
|
|
563
625
|
|
|
564
626
|
|
|
@@ -787,7 +849,10 @@ currencyCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
|
787
849
|
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
788
850
|
referencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
789
851
|
parentReferencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
790
|
-
parent: (f = msg.getParent()) && proto.BaseCompanyParent.toObject(includeInstance, f)
|
|
852
|
+
parent: (f = msg.getParent()) && proto.BaseCompanyParent.toObject(includeInstance, f),
|
|
853
|
+
logo: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
854
|
+
termAndCondition: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
855
|
+
logoImage: (f = msg.getLogoImage()) && prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject(includeInstance, f)
|
|
791
856
|
};
|
|
792
857
|
|
|
793
858
|
if (includeInstance) {
|
|
@@ -853,6 +918,19 @@ proto.BaseCompany.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
853
918
|
reader.readMessage(value,proto.BaseCompanyParent.deserializeBinaryFromReader);
|
|
854
919
|
msg.setParent(value);
|
|
855
920
|
break;
|
|
921
|
+
case 8:
|
|
922
|
+
var value = /** @type {string} */ (reader.readString());
|
|
923
|
+
msg.setLogo(value);
|
|
924
|
+
break;
|
|
925
|
+
case 9:
|
|
926
|
+
var value = /** @type {string} */ (reader.readString());
|
|
927
|
+
msg.setTermAndCondition(value);
|
|
928
|
+
break;
|
|
929
|
+
case 10:
|
|
930
|
+
var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
|
|
931
|
+
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
|
|
932
|
+
msg.setLogoImage(value);
|
|
933
|
+
break;
|
|
856
934
|
default:
|
|
857
935
|
reader.skipField();
|
|
858
936
|
break;
|
|
@@ -932,6 +1010,28 @@ proto.BaseCompany.serializeBinaryToWriter = function(message, writer) {
|
|
|
932
1010
|
proto.BaseCompanyParent.serializeBinaryToWriter
|
|
933
1011
|
);
|
|
934
1012
|
}
|
|
1013
|
+
f = message.getLogo();
|
|
1014
|
+
if (f.length > 0) {
|
|
1015
|
+
writer.writeString(
|
|
1016
|
+
8,
|
|
1017
|
+
f
|
|
1018
|
+
);
|
|
1019
|
+
}
|
|
1020
|
+
f = message.getTermAndCondition();
|
|
1021
|
+
if (f.length > 0) {
|
|
1022
|
+
writer.writeString(
|
|
1023
|
+
9,
|
|
1024
|
+
f
|
|
1025
|
+
);
|
|
1026
|
+
}
|
|
1027
|
+
f = message.getLogoImage();
|
|
1028
|
+
if (f != null) {
|
|
1029
|
+
writer.writeMessage(
|
|
1030
|
+
10,
|
|
1031
|
+
f,
|
|
1032
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
|
|
1033
|
+
);
|
|
1034
|
+
}
|
|
935
1035
|
};
|
|
936
1036
|
|
|
937
1037
|
|
|
@@ -1080,6 +1180,79 @@ proto.BaseCompany.prototype.hasParent = function() {
|
|
|
1080
1180
|
};
|
|
1081
1181
|
|
|
1082
1182
|
|
|
1183
|
+
/**
|
|
1184
|
+
* optional string logo = 8;
|
|
1185
|
+
* @return {string}
|
|
1186
|
+
*/
|
|
1187
|
+
proto.BaseCompany.prototype.getLogo = function() {
|
|
1188
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1189
|
+
};
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* @param {string} value
|
|
1194
|
+
* @return {!proto.BaseCompany} returns this
|
|
1195
|
+
*/
|
|
1196
|
+
proto.BaseCompany.prototype.setLogo = function(value) {
|
|
1197
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
1198
|
+
};
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* optional string term_and_condition = 9;
|
|
1203
|
+
* @return {string}
|
|
1204
|
+
*/
|
|
1205
|
+
proto.BaseCompany.prototype.getTermAndCondition = function() {
|
|
1206
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* @param {string} value
|
|
1212
|
+
* @return {!proto.BaseCompany} returns this
|
|
1213
|
+
*/
|
|
1214
|
+
proto.BaseCompany.prototype.setTermAndCondition = function(value) {
|
|
1215
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
1216
|
+
};
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* optional FileUploadReferencesReq logo_image = 10;
|
|
1221
|
+
* @return {?proto.FileUploadReferencesReq}
|
|
1222
|
+
*/
|
|
1223
|
+
proto.BaseCompany.prototype.getLogoImage = function() {
|
|
1224
|
+
return /** @type{?proto.FileUploadReferencesReq} */ (
|
|
1225
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 10));
|
|
1226
|
+
};
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* @param {?proto.FileUploadReferencesReq|undefined} value
|
|
1231
|
+
* @return {!proto.BaseCompany} returns this
|
|
1232
|
+
*/
|
|
1233
|
+
proto.BaseCompany.prototype.setLogoImage = function(value) {
|
|
1234
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
1235
|
+
};
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Clears the message field making it undefined.
|
|
1240
|
+
* @return {!proto.BaseCompany} returns this
|
|
1241
|
+
*/
|
|
1242
|
+
proto.BaseCompany.prototype.clearLogoImage = function() {
|
|
1243
|
+
return this.setLogoImage(undefined);
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* Returns whether this field is set.
|
|
1249
|
+
* @return {boolean}
|
|
1250
|
+
*/
|
|
1251
|
+
proto.BaseCompany.prototype.hasLogoImage = function() {
|
|
1252
|
+
return jspb.Message.getField(this, 10) != null;
|
|
1253
|
+
};
|
|
1254
|
+
|
|
1255
|
+
|
|
1083
1256
|
|
|
1084
1257
|
|
|
1085
1258
|
|
|
@@ -4,63 +4,41 @@
|
|
|
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
|
|
8
|
-
if (!(arg instanceof prisca_v1_core_file_upload_file_upload_pb.
|
|
9
|
-
throw new Error('Expected argument of type
|
|
7
|
+
function serialize_FileUploadReq(arg) {
|
|
8
|
+
if (!(arg instanceof prisca_v1_core_file_upload_file_upload_pb.FileUploadReq)) {
|
|
9
|
+
throw new Error('Expected argument of type FileUploadReq');
|
|
10
10
|
}
|
|
11
11
|
return Buffer.from(arg.serializeBinary());
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
function
|
|
15
|
-
return prisca_v1_core_file_upload_file_upload_pb.
|
|
14
|
+
function deserialize_FileUploadReq(buffer_arg) {
|
|
15
|
+
return prisca_v1_core_file_upload_file_upload_pb.FileUploadReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
function
|
|
19
|
-
if (!(arg instanceof prisca_v1_core_file_upload_file_upload_pb.
|
|
20
|
-
throw new Error('Expected argument of type
|
|
18
|
+
function serialize_FileUploadRes(arg) {
|
|
19
|
+
if (!(arg instanceof prisca_v1_core_file_upload_file_upload_pb.FileUploadRes)) {
|
|
20
|
+
throw new Error('Expected argument of type FileUploadRes');
|
|
21
21
|
}
|
|
22
22
|
return Buffer.from(arg.serializeBinary());
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
function
|
|
26
|
-
return prisca_v1_core_file_upload_file_upload_pb.
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function serialize_SaveFileRequest(arg) {
|
|
30
|
-
if (!(arg instanceof prisca_v1_core_file_upload_file_upload_pb.SaveFileRequest)) {
|
|
31
|
-
throw new Error('Expected argument of type SaveFileRequest');
|
|
32
|
-
}
|
|
33
|
-
return Buffer.from(arg.serializeBinary());
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function deserialize_SaveFileRequest(buffer_arg) {
|
|
37
|
-
return prisca_v1_core_file_upload_file_upload_pb.SaveFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
25
|
+
function deserialize_FileUploadRes(buffer_arg) {
|
|
26
|
+
return prisca_v1_core_file_upload_file_upload_pb.FileUploadRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
38
27
|
}
|
|
39
28
|
|
|
40
29
|
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
path: '/
|
|
30
|
+
var UploadFileServiceService = exports.UploadFileServiceService = {
|
|
31
|
+
uploadFile: {
|
|
32
|
+
path: '/UploadFileService/UploadFile',
|
|
44
33
|
requestStream: true,
|
|
45
34
|
responseStream: false,
|
|
46
|
-
requestType: prisca_v1_core_file_upload_file_upload_pb.
|
|
47
|
-
responseType: prisca_v1_core_file_upload_file_upload_pb.
|
|
48
|
-
requestSerialize:
|
|
49
|
-
requestDeserialize:
|
|
50
|
-
responseSerialize:
|
|
51
|
-
responseDeserialize:
|
|
52
|
-
},
|
|
53
|
-
saveFile: {
|
|
54
|
-
path: '/FileService/SaveFile',
|
|
55
|
-
requestStream: false,
|
|
56
|
-
responseStream: false,
|
|
57
|
-
requestType: prisca_v1_core_file_upload_file_upload_pb.SaveFileRequest,
|
|
58
|
-
responseType: prisca_v1_core_file_upload_file_upload_pb.FileUploadResponse,
|
|
59
|
-
requestSerialize: serialize_SaveFileRequest,
|
|
60
|
-
requestDeserialize: deserialize_SaveFileRequest,
|
|
61
|
-
responseSerialize: serialize_FileUploadResponse,
|
|
62
|
-
responseDeserialize: deserialize_FileUploadResponse,
|
|
35
|
+
requestType: prisca_v1_core_file_upload_file_upload_pb.FileUploadReq,
|
|
36
|
+
responseType: prisca_v1_core_file_upload_file_upload_pb.FileUploadRes,
|
|
37
|
+
requestSerialize: serialize_FileUploadReq,
|
|
38
|
+
requestDeserialize: deserialize_FileUploadReq,
|
|
39
|
+
responseSerialize: serialize_FileUploadRes,
|
|
40
|
+
responseDeserialize: deserialize_FileUploadRes,
|
|
63
41
|
},
|
|
64
42
|
};
|
|
65
43
|
|
|
66
|
-
exports.
|
|
44
|
+
exports.UploadFileServiceClient = grpc.makeGenericClientConstructor(UploadFileServiceService, 'UploadFileService');
|