@aldiokta/protocgen 1.1.8 → 1.1.9
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 +55 -0
- package/prisca/v1/bidding/bidding_pb.js +769 -128
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +228 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +4989 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +42 -42
- package/prisca/v1/quotation/quotation_pb.js +31 -1
- package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +224 -0
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +6333 -0
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -266
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -4429
|
@@ -932,7 +932,7 @@ proto.PurchaseRequisitionTrx.toObject = function(includeInstance, msg) {
|
|
|
932
932
|
var f, obj = {
|
|
933
933
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
934
934
|
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
935
|
-
|
|
935
|
+
purchaseRequisitionTransactionNumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
936
936
|
itemCategoryRef: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
937
937
|
accountAssigmentRef: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
938
938
|
currencyRef: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
@@ -958,7 +958,7 @@ createdBy: jspb.Message.getFieldWithDefault(msg, 24, ""),
|
|
|
958
958
|
updatedBy: jspb.Message.getFieldWithDefault(msg, 25, ""),
|
|
959
959
|
justification: jspb.Message.getFieldWithDefault(msg, 26, ""),
|
|
960
960
|
filesList: jspb.Message.toObjectList(msg.getFilesList(),
|
|
961
|
-
prisca_v1_core_file_upload_file_upload_pb.
|
|
961
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance)
|
|
962
962
|
};
|
|
963
963
|
|
|
964
964
|
if (includeInstance) {
|
|
@@ -1005,7 +1005,7 @@ proto.PurchaseRequisitionTrx.deserializeBinaryFromReader = function(msg, reader)
|
|
|
1005
1005
|
break;
|
|
1006
1006
|
case 3:
|
|
1007
1007
|
var value = /** @type {string} */ (reader.readString());
|
|
1008
|
-
msg.
|
|
1008
|
+
msg.setPurchaseRequisitionTransactionNumber(value);
|
|
1009
1009
|
break;
|
|
1010
1010
|
case 4:
|
|
1011
1011
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -1102,8 +1102,8 @@ proto.PurchaseRequisitionTrx.deserializeBinaryFromReader = function(msg, reader)
|
|
|
1102
1102
|
msg.setJustification(value);
|
|
1103
1103
|
break;
|
|
1104
1104
|
case 27:
|
|
1105
|
-
var value = new prisca_v1_core_file_upload_file_upload_pb.
|
|
1106
|
-
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.
|
|
1105
|
+
var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
|
|
1106
|
+
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
|
|
1107
1107
|
msg.addFiles(value);
|
|
1108
1108
|
break;
|
|
1109
1109
|
default:
|
|
@@ -1149,7 +1149,7 @@ proto.PurchaseRequisitionTrx.serializeBinaryToWriter = function(message, writer)
|
|
|
1149
1149
|
f
|
|
1150
1150
|
);
|
|
1151
1151
|
}
|
|
1152
|
-
f = message.
|
|
1152
|
+
f = message.getPurchaseRequisitionTransactionNumber();
|
|
1153
1153
|
if (f.length > 0) {
|
|
1154
1154
|
writer.writeString(
|
|
1155
1155
|
3,
|
|
@@ -1324,7 +1324,7 @@ proto.PurchaseRequisitionTrx.serializeBinaryToWriter = function(message, writer)
|
|
|
1324
1324
|
writer.writeRepeatedMessage(
|
|
1325
1325
|
27,
|
|
1326
1326
|
f,
|
|
1327
|
-
prisca_v1_core_file_upload_file_upload_pb.
|
|
1327
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
|
|
1328
1328
|
);
|
|
1329
1329
|
}
|
|
1330
1330
|
};
|
|
@@ -1367,10 +1367,10 @@ proto.PurchaseRequisitionTrx.prototype.setTitle = function(value) {
|
|
|
1367
1367
|
|
|
1368
1368
|
|
|
1369
1369
|
/**
|
|
1370
|
-
* optional string
|
|
1370
|
+
* optional string purchase_requisition_transaction_number = 3;
|
|
1371
1371
|
* @return {string}
|
|
1372
1372
|
*/
|
|
1373
|
-
proto.PurchaseRequisitionTrx.prototype.
|
|
1373
|
+
proto.PurchaseRequisitionTrx.prototype.getPurchaseRequisitionTransactionNumber = function() {
|
|
1374
1374
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1375
1375
|
};
|
|
1376
1376
|
|
|
@@ -1379,7 +1379,7 @@ proto.PurchaseRequisitionTrx.prototype.getTransactionReferences = function() {
|
|
|
1379
1379
|
* @param {string} value
|
|
1380
1380
|
* @return {!proto.PurchaseRequisitionTrx} returns this
|
|
1381
1381
|
*/
|
|
1382
|
-
proto.PurchaseRequisitionTrx.prototype.
|
|
1382
|
+
proto.PurchaseRequisitionTrx.prototype.setPurchaseRequisitionTransactionNumber = function(value) {
|
|
1383
1383
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1384
1384
|
};
|
|
1385
1385
|
|
|
@@ -1838,17 +1838,17 @@ proto.PurchaseRequisitionTrx.prototype.setJustification = function(value) {
|
|
|
1838
1838
|
|
|
1839
1839
|
|
|
1840
1840
|
/**
|
|
1841
|
-
* repeated
|
|
1842
|
-
* @return {!Array<!proto.
|
|
1841
|
+
* repeated FileUploadReferencesReq files = 27;
|
|
1842
|
+
* @return {!Array<!proto.FileUploadReferencesReq>}
|
|
1843
1843
|
*/
|
|
1844
1844
|
proto.PurchaseRequisitionTrx.prototype.getFilesList = function() {
|
|
1845
|
-
return /** @type{!Array<!proto.
|
|
1846
|
-
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.
|
|
1845
|
+
return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
|
|
1846
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 27));
|
|
1847
1847
|
};
|
|
1848
1848
|
|
|
1849
1849
|
|
|
1850
1850
|
/**
|
|
1851
|
-
* @param {!Array<!proto.
|
|
1851
|
+
* @param {!Array<!proto.FileUploadReferencesReq>} value
|
|
1852
1852
|
* @return {!proto.PurchaseRequisitionTrx} returns this
|
|
1853
1853
|
*/
|
|
1854
1854
|
proto.PurchaseRequisitionTrx.prototype.setFilesList = function(value) {
|
|
@@ -1857,12 +1857,12 @@ proto.PurchaseRequisitionTrx.prototype.setFilesList = function(value) {
|
|
|
1857
1857
|
|
|
1858
1858
|
|
|
1859
1859
|
/**
|
|
1860
|
-
* @param {!proto.
|
|
1860
|
+
* @param {!proto.FileUploadReferencesReq=} opt_value
|
|
1861
1861
|
* @param {number=} opt_index
|
|
1862
|
-
* @return {!proto.
|
|
1862
|
+
* @return {!proto.FileUploadReferencesReq}
|
|
1863
1863
|
*/
|
|
1864
1864
|
proto.PurchaseRequisitionTrx.prototype.addFiles = function(opt_value, opt_index) {
|
|
1865
|
-
return jspb.Message.addToRepeatedWrapperField(this, 27, opt_value, proto.
|
|
1865
|
+
return jspb.Message.addToRepeatedWrapperField(this, 27, opt_value, proto.FileUploadReferencesReq, opt_index);
|
|
1866
1866
|
};
|
|
1867
1867
|
|
|
1868
1868
|
|
|
@@ -1933,7 +1933,7 @@ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
|
1933
1933
|
status: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
1934
1934
|
justification: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
1935
1935
|
filesList: jspb.Message.toObjectList(msg.getFilesList(),
|
|
1936
|
-
prisca_v1_core_file_upload_file_upload_pb.
|
|
1936
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance)
|
|
1937
1937
|
};
|
|
1938
1938
|
|
|
1939
1939
|
if (includeInstance) {
|
|
@@ -2040,8 +2040,8 @@ proto.BasePurchaseRequisitionTrx.deserializeBinaryFromReader = function(msg, rea
|
|
|
2040
2040
|
msg.setJustification(value);
|
|
2041
2041
|
break;
|
|
2042
2042
|
case 18:
|
|
2043
|
-
var value = new prisca_v1_core_file_upload_file_upload_pb.
|
|
2044
|
-
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.
|
|
2043
|
+
var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
|
|
2044
|
+
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
|
|
2045
2045
|
msg.addFiles(value);
|
|
2046
2046
|
break;
|
|
2047
2047
|
default:
|
|
@@ -2198,7 +2198,7 @@ proto.BasePurchaseRequisitionTrx.serializeBinaryToWriter = function(message, wri
|
|
|
2198
2198
|
writer.writeRepeatedMessage(
|
|
2199
2199
|
18,
|
|
2200
2200
|
f,
|
|
2201
|
-
prisca_v1_core_file_upload_file_upload_pb.
|
|
2201
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
|
|
2202
2202
|
);
|
|
2203
2203
|
}
|
|
2204
2204
|
};
|
|
@@ -2531,17 +2531,17 @@ proto.BasePurchaseRequisitionTrx.prototype.setJustification = function(value) {
|
|
|
2531
2531
|
|
|
2532
2532
|
|
|
2533
2533
|
/**
|
|
2534
|
-
* repeated
|
|
2535
|
-
* @return {!Array<!proto.
|
|
2534
|
+
* repeated FileUploadReferencesReq files = 18;
|
|
2535
|
+
* @return {!Array<!proto.FileUploadReferencesReq>}
|
|
2536
2536
|
*/
|
|
2537
2537
|
proto.BasePurchaseRequisitionTrx.prototype.getFilesList = function() {
|
|
2538
|
-
return /** @type{!Array<!proto.
|
|
2539
|
-
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.
|
|
2538
|
+
return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
|
|
2539
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 18));
|
|
2540
2540
|
};
|
|
2541
2541
|
|
|
2542
2542
|
|
|
2543
2543
|
/**
|
|
2544
|
-
* @param {!Array<!proto.
|
|
2544
|
+
* @param {!Array<!proto.FileUploadReferencesReq>} value
|
|
2545
2545
|
* @return {!proto.BasePurchaseRequisitionTrx} returns this
|
|
2546
2546
|
*/
|
|
2547
2547
|
proto.BasePurchaseRequisitionTrx.prototype.setFilesList = function(value) {
|
|
@@ -2550,12 +2550,12 @@ proto.BasePurchaseRequisitionTrx.prototype.setFilesList = function(value) {
|
|
|
2550
2550
|
|
|
2551
2551
|
|
|
2552
2552
|
/**
|
|
2553
|
-
* @param {!proto.
|
|
2553
|
+
* @param {!proto.FileUploadReferencesReq=} opt_value
|
|
2554
2554
|
* @param {number=} opt_index
|
|
2555
|
-
* @return {!proto.
|
|
2555
|
+
* @return {!proto.FileUploadReferencesReq}
|
|
2556
2556
|
*/
|
|
2557
2557
|
proto.BasePurchaseRequisitionTrx.prototype.addFiles = function(opt_value, opt_index) {
|
|
2558
|
-
return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.
|
|
2558
|
+
return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.FileUploadReferencesReq, opt_index);
|
|
2559
2559
|
};
|
|
2560
2560
|
|
|
2561
2561
|
|
|
@@ -2628,7 +2628,7 @@ referencesId: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
|
2628
2628
|
numberRangeSequence: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
2629
2629
|
justification: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
|
2630
2630
|
filesList: jspb.Message.toObjectList(msg.getFilesList(),
|
|
2631
|
-
prisca_v1_core_file_upload_file_upload_pb.
|
|
2631
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance)
|
|
2632
2632
|
};
|
|
2633
2633
|
|
|
2634
2634
|
if (includeInstance) {
|
|
@@ -2743,8 +2743,8 @@ proto.BaseUpdatePurchaseRequisitionTrx.deserializeBinaryFromReader = function(ms
|
|
|
2743
2743
|
msg.setJustification(value);
|
|
2744
2744
|
break;
|
|
2745
2745
|
case 20:
|
|
2746
|
-
var value = new prisca_v1_core_file_upload_file_upload_pb.
|
|
2747
|
-
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.
|
|
2746
|
+
var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
|
|
2747
|
+
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
|
|
2748
2748
|
msg.addFiles(value);
|
|
2749
2749
|
break;
|
|
2750
2750
|
default:
|
|
@@ -2915,7 +2915,7 @@ proto.BaseUpdatePurchaseRequisitionTrx.serializeBinaryToWriter = function(messag
|
|
|
2915
2915
|
writer.writeRepeatedMessage(
|
|
2916
2916
|
20,
|
|
2917
2917
|
f,
|
|
2918
|
-
prisca_v1_core_file_upload_file_upload_pb.
|
|
2918
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
|
|
2919
2919
|
);
|
|
2920
2920
|
}
|
|
2921
2921
|
};
|
|
@@ -3284,17 +3284,17 @@ proto.BaseUpdatePurchaseRequisitionTrx.prototype.setJustification = function(val
|
|
|
3284
3284
|
|
|
3285
3285
|
|
|
3286
3286
|
/**
|
|
3287
|
-
* repeated
|
|
3288
|
-
* @return {!Array<!proto.
|
|
3287
|
+
* repeated FileUploadReferencesReq files = 20;
|
|
3288
|
+
* @return {!Array<!proto.FileUploadReferencesReq>}
|
|
3289
3289
|
*/
|
|
3290
3290
|
proto.BaseUpdatePurchaseRequisitionTrx.prototype.getFilesList = function() {
|
|
3291
|
-
return /** @type{!Array<!proto.
|
|
3292
|
-
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.
|
|
3291
|
+
return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
|
|
3292
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 20));
|
|
3293
3293
|
};
|
|
3294
3294
|
|
|
3295
3295
|
|
|
3296
3296
|
/**
|
|
3297
|
-
* @param {!Array<!proto.
|
|
3297
|
+
* @param {!Array<!proto.FileUploadReferencesReq>} value
|
|
3298
3298
|
* @return {!proto.BaseUpdatePurchaseRequisitionTrx} returns this
|
|
3299
3299
|
*/
|
|
3300
3300
|
proto.BaseUpdatePurchaseRequisitionTrx.prototype.setFilesList = function(value) {
|
|
@@ -3303,12 +3303,12 @@ proto.BaseUpdatePurchaseRequisitionTrx.prototype.setFilesList = function(value)
|
|
|
3303
3303
|
|
|
3304
3304
|
|
|
3305
3305
|
/**
|
|
3306
|
-
* @param {!proto.
|
|
3306
|
+
* @param {!proto.FileUploadReferencesReq=} opt_value
|
|
3307
3307
|
* @param {number=} opt_index
|
|
3308
|
-
* @return {!proto.
|
|
3308
|
+
* @return {!proto.FileUploadReferencesReq}
|
|
3309
3309
|
*/
|
|
3310
3310
|
proto.BaseUpdatePurchaseRequisitionTrx.prototype.addFiles = function(opt_value, opt_index) {
|
|
3311
|
-
return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.
|
|
3311
|
+
return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.FileUploadReferencesReq, opt_index);
|
|
3312
3312
|
};
|
|
3313
3313
|
|
|
3314
3314
|
|
|
@@ -368,7 +368,8 @@ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
|
|
|
368
368
|
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
|
|
369
369
|
vendor: (f = msg.getVendor()) && prisca_v1_vendor_domain_vendor_domain_pb.Vendor.toObject(includeInstance, f),
|
|
370
370
|
createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
|
|
371
|
-
updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f)
|
|
371
|
+
updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
|
|
372
|
+
visible: jspb.Message.getBooleanFieldWithDefault(msg, 29, false)
|
|
372
373
|
};
|
|
373
374
|
|
|
374
375
|
if (includeInstance) {
|
|
@@ -521,6 +522,10 @@ proto.Quotation.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
521
522
|
reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
|
|
522
523
|
msg.setUpdatedByEmployee(value);
|
|
523
524
|
break;
|
|
525
|
+
case 29:
|
|
526
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
527
|
+
msg.setVisible(value);
|
|
528
|
+
break;
|
|
524
529
|
default:
|
|
525
530
|
reader.skipField();
|
|
526
531
|
break;
|
|
@@ -750,6 +755,13 @@ proto.Quotation.serializeBinaryToWriter = function(message, writer) {
|
|
|
750
755
|
prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
|
|
751
756
|
);
|
|
752
757
|
}
|
|
758
|
+
f = message.getVisible();
|
|
759
|
+
if (f) {
|
|
760
|
+
writer.writeBool(
|
|
761
|
+
29,
|
|
762
|
+
f
|
|
763
|
+
);
|
|
764
|
+
}
|
|
753
765
|
};
|
|
754
766
|
|
|
755
767
|
|
|
@@ -1334,6 +1346,24 @@ proto.Quotation.prototype.hasUpdatedByEmployee = function() {
|
|
|
1334
1346
|
};
|
|
1335
1347
|
|
|
1336
1348
|
|
|
1349
|
+
/**
|
|
1350
|
+
* optional bool visible = 29;
|
|
1351
|
+
* @return {boolean}
|
|
1352
|
+
*/
|
|
1353
|
+
proto.Quotation.prototype.getVisible = function() {
|
|
1354
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 29, false));
|
|
1355
|
+
};
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* @param {boolean} value
|
|
1360
|
+
* @return {!proto.Quotation} returns this
|
|
1361
|
+
*/
|
|
1362
|
+
proto.Quotation.prototype.setVisible = function(value) {
|
|
1363
|
+
return jspb.Message.setProto3BooleanField(this, 29, value);
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1366
|
+
|
|
1337
1367
|
|
|
1338
1368
|
/**
|
|
1339
1369
|
* List of repeated fields within this message type.
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var prisca_v1_vendor_domain_vendor_domain_pb = require('../../../prisca/v1/vendor_domain/vendor_domain_pb.js');
|
|
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');
|
|
8
|
+
var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
|
|
9
|
+
|
|
10
|
+
function serialize_CreateVendorRequest(arg) {
|
|
11
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.CreateVendorRequest)) {
|
|
12
|
+
throw new Error('Expected argument of type CreateVendorRequest');
|
|
13
|
+
}
|
|
14
|
+
return Buffer.from(arg.serializeBinary());
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function deserialize_CreateVendorRequest(buffer_arg) {
|
|
18
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.CreateVendorRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function serialize_CreateVendorResponse(arg) {
|
|
22
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.CreateVendorResponse)) {
|
|
23
|
+
throw new Error('Expected argument of type CreateVendorResponse');
|
|
24
|
+
}
|
|
25
|
+
return Buffer.from(arg.serializeBinary());
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function deserialize_CreateVendorResponse(buffer_arg) {
|
|
29
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.CreateVendorResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function serialize_DeleteVendorRequest(arg) {
|
|
33
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.DeleteVendorRequest)) {
|
|
34
|
+
throw new Error('Expected argument of type DeleteVendorRequest');
|
|
35
|
+
}
|
|
36
|
+
return Buffer.from(arg.serializeBinary());
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function deserialize_DeleteVendorRequest(buffer_arg) {
|
|
40
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.DeleteVendorRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function serialize_DeleteVendorResponse(arg) {
|
|
44
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.DeleteVendorResponse)) {
|
|
45
|
+
throw new Error('Expected argument of type DeleteVendorResponse');
|
|
46
|
+
}
|
|
47
|
+
return Buffer.from(arg.serializeBinary());
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function deserialize_DeleteVendorResponse(buffer_arg) {
|
|
51
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.DeleteVendorResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function serialize_GetListVendorRequest(arg) {
|
|
55
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.GetListVendorRequest)) {
|
|
56
|
+
throw new Error('Expected argument of type GetListVendorRequest');
|
|
57
|
+
}
|
|
58
|
+
return Buffer.from(arg.serializeBinary());
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function deserialize_GetListVendorRequest(buffer_arg) {
|
|
62
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.GetListVendorRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function serialize_GetListVendorResponse(arg) {
|
|
66
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.GetListVendorResponse)) {
|
|
67
|
+
throw new Error('Expected argument of type GetListVendorResponse');
|
|
68
|
+
}
|
|
69
|
+
return Buffer.from(arg.serializeBinary());
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function deserialize_GetListVendorResponse(buffer_arg) {
|
|
73
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.GetListVendorResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function serialize_GetVendorByIdRequest(arg) {
|
|
77
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.GetVendorByIdRequest)) {
|
|
78
|
+
throw new Error('Expected argument of type GetVendorByIdRequest');
|
|
79
|
+
}
|
|
80
|
+
return Buffer.from(arg.serializeBinary());
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function deserialize_GetVendorByIdRequest(buffer_arg) {
|
|
84
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.GetVendorByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function serialize_GetVendorByIdResponse(arg) {
|
|
88
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.GetVendorByIdResponse)) {
|
|
89
|
+
throw new Error('Expected argument of type GetVendorByIdResponse');
|
|
90
|
+
}
|
|
91
|
+
return Buffer.from(arg.serializeBinary());
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function deserialize_GetVendorByIdResponse(buffer_arg) {
|
|
95
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.GetVendorByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function serialize_GetVendorDetailResponse(arg) {
|
|
99
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.GetVendorDetailResponse)) {
|
|
100
|
+
throw new Error('Expected argument of type GetVendorDetailResponse');
|
|
101
|
+
}
|
|
102
|
+
return Buffer.from(arg.serializeBinary());
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function deserialize_GetVendorDetailResponse(buffer_arg) {
|
|
106
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.GetVendorDetailResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function serialize_GetVendorProfileRequest(arg) {
|
|
110
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.GetVendorProfileRequest)) {
|
|
111
|
+
throw new Error('Expected argument of type GetVendorProfileRequest');
|
|
112
|
+
}
|
|
113
|
+
return Buffer.from(arg.serializeBinary());
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function deserialize_GetVendorProfileRequest(buffer_arg) {
|
|
117
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.GetVendorProfileRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function serialize_UpdateVendorRequest(arg) {
|
|
121
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.UpdateVendorRequest)) {
|
|
122
|
+
throw new Error('Expected argument of type UpdateVendorRequest');
|
|
123
|
+
}
|
|
124
|
+
return Buffer.from(arg.serializeBinary());
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function deserialize_UpdateVendorRequest(buffer_arg) {
|
|
128
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.UpdateVendorRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function serialize_UpdateVendorResponse(arg) {
|
|
132
|
+
if (!(arg instanceof prisca_v1_vendor_domain_vendor_domain_pb.UpdateVendorResponse)) {
|
|
133
|
+
throw new Error('Expected argument of type UpdateVendorResponse');
|
|
134
|
+
}
|
|
135
|
+
return Buffer.from(arg.serializeBinary());
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function deserialize_UpdateVendorResponse(buffer_arg) {
|
|
139
|
+
return prisca_v1_vendor_domain_vendor_domain_pb.UpdateVendorResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
// Unit of Measurement Service
|
|
144
|
+
var VendorServiceService = exports.VendorServiceService = {
|
|
145
|
+
createVendor: {
|
|
146
|
+
path: '/VendorService/CreateVendor',
|
|
147
|
+
requestStream: false,
|
|
148
|
+
responseStream: false,
|
|
149
|
+
requestType: prisca_v1_vendor_domain_vendor_domain_pb.CreateVendorRequest,
|
|
150
|
+
responseType: prisca_v1_vendor_domain_vendor_domain_pb.CreateVendorResponse,
|
|
151
|
+
requestSerialize: serialize_CreateVendorRequest,
|
|
152
|
+
requestDeserialize: deserialize_CreateVendorRequest,
|
|
153
|
+
responseSerialize: serialize_CreateVendorResponse,
|
|
154
|
+
responseDeserialize: deserialize_CreateVendorResponse,
|
|
155
|
+
},
|
|
156
|
+
getVendorById: {
|
|
157
|
+
path: '/VendorService/GetVendorById',
|
|
158
|
+
requestStream: false,
|
|
159
|
+
responseStream: false,
|
|
160
|
+
requestType: prisca_v1_vendor_domain_vendor_domain_pb.GetVendorByIdRequest,
|
|
161
|
+
responseType: prisca_v1_vendor_domain_vendor_domain_pb.GetVendorByIdResponse,
|
|
162
|
+
requestSerialize: serialize_GetVendorByIdRequest,
|
|
163
|
+
requestDeserialize: deserialize_GetVendorByIdRequest,
|
|
164
|
+
responseSerialize: serialize_GetVendorByIdResponse,
|
|
165
|
+
responseDeserialize: deserialize_GetVendorByIdResponse,
|
|
166
|
+
},
|
|
167
|
+
getVendorByIdDetail: {
|
|
168
|
+
path: '/VendorService/GetVendorByIdDetail',
|
|
169
|
+
requestStream: false,
|
|
170
|
+
responseStream: false,
|
|
171
|
+
requestType: prisca_v1_vendor_domain_vendor_domain_pb.GetVendorByIdRequest,
|
|
172
|
+
responseType: prisca_v1_vendor_domain_vendor_domain_pb.GetVendorDetailResponse,
|
|
173
|
+
requestSerialize: serialize_GetVendorByIdRequest,
|
|
174
|
+
requestDeserialize: deserialize_GetVendorByIdRequest,
|
|
175
|
+
responseSerialize: serialize_GetVendorDetailResponse,
|
|
176
|
+
responseDeserialize: deserialize_GetVendorDetailResponse,
|
|
177
|
+
},
|
|
178
|
+
getVendorProfile: {
|
|
179
|
+
path: '/VendorService/GetVendorProfile',
|
|
180
|
+
requestStream: false,
|
|
181
|
+
responseStream: false,
|
|
182
|
+
requestType: prisca_v1_vendor_domain_vendor_domain_pb.GetVendorProfileRequest,
|
|
183
|
+
responseType: prisca_v1_vendor_domain_vendor_domain_pb.GetVendorByIdResponse,
|
|
184
|
+
requestSerialize: serialize_GetVendorProfileRequest,
|
|
185
|
+
requestDeserialize: deserialize_GetVendorProfileRequest,
|
|
186
|
+
responseSerialize: serialize_GetVendorByIdResponse,
|
|
187
|
+
responseDeserialize: deserialize_GetVendorByIdResponse,
|
|
188
|
+
},
|
|
189
|
+
getListVendors: {
|
|
190
|
+
path: '/VendorService/GetListVendors',
|
|
191
|
+
requestStream: false,
|
|
192
|
+
responseStream: false,
|
|
193
|
+
requestType: prisca_v1_vendor_domain_vendor_domain_pb.GetListVendorRequest,
|
|
194
|
+
responseType: prisca_v1_vendor_domain_vendor_domain_pb.GetListVendorResponse,
|
|
195
|
+
requestSerialize: serialize_GetListVendorRequest,
|
|
196
|
+
requestDeserialize: deserialize_GetListVendorRequest,
|
|
197
|
+
responseSerialize: serialize_GetListVendorResponse,
|
|
198
|
+
responseDeserialize: deserialize_GetListVendorResponse,
|
|
199
|
+
},
|
|
200
|
+
updateVendor: {
|
|
201
|
+
path: '/VendorService/UpdateVendor',
|
|
202
|
+
requestStream: false,
|
|
203
|
+
responseStream: false,
|
|
204
|
+
requestType: prisca_v1_vendor_domain_vendor_domain_pb.UpdateVendorRequest,
|
|
205
|
+
responseType: prisca_v1_vendor_domain_vendor_domain_pb.UpdateVendorResponse,
|
|
206
|
+
requestSerialize: serialize_UpdateVendorRequest,
|
|
207
|
+
requestDeserialize: deserialize_UpdateVendorRequest,
|
|
208
|
+
responseSerialize: serialize_UpdateVendorResponse,
|
|
209
|
+
responseDeserialize: deserialize_UpdateVendorResponse,
|
|
210
|
+
},
|
|
211
|
+
deleteVendor: {
|
|
212
|
+
path: '/VendorService/DeleteVendor',
|
|
213
|
+
requestStream: false,
|
|
214
|
+
responseStream: false,
|
|
215
|
+
requestType: prisca_v1_vendor_domain_vendor_domain_pb.DeleteVendorRequest,
|
|
216
|
+
responseType: prisca_v1_vendor_domain_vendor_domain_pb.DeleteVendorResponse,
|
|
217
|
+
requestSerialize: serialize_DeleteVendorRequest,
|
|
218
|
+
requestDeserialize: deserialize_DeleteVendorRequest,
|
|
219
|
+
responseSerialize: serialize_DeleteVendorResponse,
|
|
220
|
+
responseDeserialize: deserialize_DeleteVendorResponse,
|
|
221
|
+
},
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
exports.VendorServiceClient = grpc.makeGenericClientConstructor(VendorServiceService, 'VendorService');
|