@aldiokta/protocgen 1.0.16 → 1.0.18
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/company/company_pb.js +362 -99
- package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +1 -0
- package/prisca/v1/core/job_grade/job_grade_pb.js +157 -104
- package/prisca/v1/core/job_position/job_position_grpc_pb.js +4 -0
- package/prisca/v1/core/job_position/job_position_pb.js +955 -285
- package/prisca/v1/core/job_title/job_title_grpc_pb.js +1 -0
- package/prisca/v1/core/job_title/job_title_pb.js +417 -101
- package/prisca/v1/core/material/material_pb.js +159 -129
- package/prisca/v1/core/material_group/material_group_pb.js +39 -39
- package/prisca/v1/core/material_type/material_type_pb.js +55 -25
- package/prisca/v1/core/organization/organization_grpc_pb.js +3 -0
- package/prisca/v1/core/organization/organization_pb.js +831 -229
- package/prisca/v1/core/organization_level/organization_level_pb.js +40 -70
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +52 -52
- package/prisca/v1/core/users_role/users_role_grpc_pb.js +177 -0
- package/prisca/v1/core/users_role/users_role_pb.js +2372 -0
- package/prisca/v1/core/work_location/work_location_pb.js +221 -221
- package/prisca/v1/core/workflow/workflow_pb.js +59 -59
|
@@ -970,7 +970,7 @@ proto.UpdateMaterialGroupRequest.prototype.toObject = function(opt_includeInstan
|
|
|
970
970
|
*/
|
|
971
971
|
proto.UpdateMaterialGroupRequest.toObject = function(includeInstance, msg) {
|
|
972
972
|
var f, obj = {
|
|
973
|
-
|
|
973
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
974
974
|
baseMaterialGroup: (f = msg.getBaseMaterialGroup()) && proto.BaseMaterialGroupRequest.toObject(includeInstance, f)
|
|
975
975
|
};
|
|
976
976
|
|
|
@@ -1009,8 +1009,8 @@ proto.UpdateMaterialGroupRequest.deserializeBinaryFromReader = function(msg, rea
|
|
|
1009
1009
|
var field = reader.getFieldNumber();
|
|
1010
1010
|
switch (field) {
|
|
1011
1011
|
case 1:
|
|
1012
|
-
var value = /** @type {
|
|
1013
|
-
msg.
|
|
1012
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1013
|
+
msg.setReferencesId(value);
|
|
1014
1014
|
break;
|
|
1015
1015
|
case 2:
|
|
1016
1016
|
var value = new proto.BaseMaterialGroupRequest;
|
|
@@ -1046,9 +1046,9 @@ proto.UpdateMaterialGroupRequest.prototype.serializeBinary = function() {
|
|
|
1046
1046
|
*/
|
|
1047
1047
|
proto.UpdateMaterialGroupRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1048
1048
|
var f = undefined;
|
|
1049
|
-
f = message.
|
|
1050
|
-
if (f
|
|
1051
|
-
writer.
|
|
1049
|
+
f = message.getReferencesId();
|
|
1050
|
+
if (f.length > 0) {
|
|
1051
|
+
writer.writeString(
|
|
1052
1052
|
1,
|
|
1053
1053
|
f
|
|
1054
1054
|
);
|
|
@@ -1065,20 +1065,20 @@ proto.UpdateMaterialGroupRequest.serializeBinaryToWriter = function(message, wri
|
|
|
1065
1065
|
|
|
1066
1066
|
|
|
1067
1067
|
/**
|
|
1068
|
-
* optional
|
|
1069
|
-
* @return {
|
|
1068
|
+
* optional string references_id = 1;
|
|
1069
|
+
* @return {string}
|
|
1070
1070
|
*/
|
|
1071
|
-
proto.UpdateMaterialGroupRequest.prototype.
|
|
1072
|
-
return /** @type {
|
|
1071
|
+
proto.UpdateMaterialGroupRequest.prototype.getReferencesId = function() {
|
|
1072
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1073
1073
|
};
|
|
1074
1074
|
|
|
1075
1075
|
|
|
1076
1076
|
/**
|
|
1077
|
-
* @param {
|
|
1077
|
+
* @param {string} value
|
|
1078
1078
|
* @return {!proto.UpdateMaterialGroupRequest} returns this
|
|
1079
1079
|
*/
|
|
1080
|
-
proto.UpdateMaterialGroupRequest.prototype.
|
|
1081
|
-
return jspb.Message.
|
|
1080
|
+
proto.UpdateMaterialGroupRequest.prototype.setReferencesId = function(value) {
|
|
1081
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1082
1082
|
};
|
|
1083
1083
|
|
|
1084
1084
|
|
|
@@ -1281,7 +1281,7 @@ proto.GetMaterialGroupByIdRequest.prototype.toObject = function(opt_includeInsta
|
|
|
1281
1281
|
*/
|
|
1282
1282
|
proto.GetMaterialGroupByIdRequest.toObject = function(includeInstance, msg) {
|
|
1283
1283
|
var f, obj = {
|
|
1284
|
-
|
|
1284
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1285
1285
|
};
|
|
1286
1286
|
|
|
1287
1287
|
if (includeInstance) {
|
|
@@ -1319,8 +1319,8 @@ proto.GetMaterialGroupByIdRequest.deserializeBinaryFromReader = function(msg, re
|
|
|
1319
1319
|
var field = reader.getFieldNumber();
|
|
1320
1320
|
switch (field) {
|
|
1321
1321
|
case 1:
|
|
1322
|
-
var value = /** @type {
|
|
1323
|
-
msg.
|
|
1322
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1323
|
+
msg.setReferencesId(value);
|
|
1324
1324
|
break;
|
|
1325
1325
|
default:
|
|
1326
1326
|
reader.skipField();
|
|
@@ -1351,9 +1351,9 @@ proto.GetMaterialGroupByIdRequest.prototype.serializeBinary = function() {
|
|
|
1351
1351
|
*/
|
|
1352
1352
|
proto.GetMaterialGroupByIdRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1353
1353
|
var f = undefined;
|
|
1354
|
-
f = message.
|
|
1355
|
-
if (f
|
|
1356
|
-
writer.
|
|
1354
|
+
f = message.getReferencesId();
|
|
1355
|
+
if (f.length > 0) {
|
|
1356
|
+
writer.writeString(
|
|
1357
1357
|
1,
|
|
1358
1358
|
f
|
|
1359
1359
|
);
|
|
@@ -1362,20 +1362,20 @@ proto.GetMaterialGroupByIdRequest.serializeBinaryToWriter = function(message, wr
|
|
|
1362
1362
|
|
|
1363
1363
|
|
|
1364
1364
|
/**
|
|
1365
|
-
* optional
|
|
1366
|
-
* @return {
|
|
1365
|
+
* optional string references_id = 1;
|
|
1366
|
+
* @return {string}
|
|
1367
1367
|
*/
|
|
1368
|
-
proto.GetMaterialGroupByIdRequest.prototype.
|
|
1369
|
-
return /** @type {
|
|
1368
|
+
proto.GetMaterialGroupByIdRequest.prototype.getReferencesId = function() {
|
|
1369
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1370
1370
|
};
|
|
1371
1371
|
|
|
1372
1372
|
|
|
1373
1373
|
/**
|
|
1374
|
-
* @param {
|
|
1374
|
+
* @param {string} value
|
|
1375
1375
|
* @return {!proto.GetMaterialGroupByIdRequest} returns this
|
|
1376
1376
|
*/
|
|
1377
|
-
proto.GetMaterialGroupByIdRequest.prototype.
|
|
1378
|
-
return jspb.Message.
|
|
1377
|
+
proto.GetMaterialGroupByIdRequest.prototype.setReferencesId = function(value) {
|
|
1378
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1379
1379
|
};
|
|
1380
1380
|
|
|
1381
1381
|
|
|
@@ -2017,7 +2017,7 @@ proto.DeleteMaterialGroupResponse.prototype.toObject = function(opt_includeInsta
|
|
|
2017
2017
|
*/
|
|
2018
2018
|
proto.DeleteMaterialGroupResponse.toObject = function(includeInstance, msg) {
|
|
2019
2019
|
var f, obj = {
|
|
2020
|
-
|
|
2020
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2021
2021
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
2022
2022
|
};
|
|
2023
2023
|
|
|
@@ -2056,8 +2056,8 @@ proto.DeleteMaterialGroupResponse.deserializeBinaryFromReader = function(msg, re
|
|
|
2056
2056
|
var field = reader.getFieldNumber();
|
|
2057
2057
|
switch (field) {
|
|
2058
2058
|
case 1:
|
|
2059
|
-
var value = /** @type {
|
|
2060
|
-
msg.
|
|
2059
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2060
|
+
msg.setReferencesId(value);
|
|
2061
2061
|
break;
|
|
2062
2062
|
case 2:
|
|
2063
2063
|
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
@@ -2093,9 +2093,9 @@ proto.DeleteMaterialGroupResponse.prototype.serializeBinary = function() {
|
|
|
2093
2093
|
*/
|
|
2094
2094
|
proto.DeleteMaterialGroupResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2095
2095
|
var f = undefined;
|
|
2096
|
-
f = message.
|
|
2097
|
-
if (f
|
|
2098
|
-
writer.
|
|
2096
|
+
f = message.getReferencesId();
|
|
2097
|
+
if (f.length > 0) {
|
|
2098
|
+
writer.writeString(
|
|
2099
2099
|
1,
|
|
2100
2100
|
f
|
|
2101
2101
|
);
|
|
@@ -2112,20 +2112,20 @@ proto.DeleteMaterialGroupResponse.serializeBinaryToWriter = function(message, wr
|
|
|
2112
2112
|
|
|
2113
2113
|
|
|
2114
2114
|
/**
|
|
2115
|
-
* optional
|
|
2116
|
-
* @return {
|
|
2115
|
+
* optional string references_id = 1;
|
|
2116
|
+
* @return {string}
|
|
2117
2117
|
*/
|
|
2118
|
-
proto.DeleteMaterialGroupResponse.prototype.
|
|
2119
|
-
return /** @type {
|
|
2118
|
+
proto.DeleteMaterialGroupResponse.prototype.getReferencesId = function() {
|
|
2119
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2120
2120
|
};
|
|
2121
2121
|
|
|
2122
2122
|
|
|
2123
2123
|
/**
|
|
2124
|
-
* @param {
|
|
2124
|
+
* @param {string} value
|
|
2125
2125
|
* @return {!proto.DeleteMaterialGroupResponse} returns this
|
|
2126
2126
|
*/
|
|
2127
|
-
proto.DeleteMaterialGroupResponse.prototype.
|
|
2128
|
-
return jspb.Message.
|
|
2127
|
+
proto.DeleteMaterialGroupResponse.prototype.setReferencesId = function(value) {
|
|
2128
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2129
2129
|
};
|
|
2130
2130
|
|
|
2131
2131
|
|
|
@@ -1300,7 +1300,7 @@ proto.MaterialTypeGetByIdRequest.prototype.toObject = function(opt_includeInstan
|
|
|
1300
1300
|
*/
|
|
1301
1301
|
proto.MaterialTypeGetByIdRequest.toObject = function(includeInstance, msg) {
|
|
1302
1302
|
var f, obj = {
|
|
1303
|
-
|
|
1303
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1304
1304
|
};
|
|
1305
1305
|
|
|
1306
1306
|
if (includeInstance) {
|
|
@@ -1338,8 +1338,8 @@ proto.MaterialTypeGetByIdRequest.deserializeBinaryFromReader = function(msg, rea
|
|
|
1338
1338
|
var field = reader.getFieldNumber();
|
|
1339
1339
|
switch (field) {
|
|
1340
1340
|
case 1:
|
|
1341
|
-
var value = /** @type {
|
|
1342
|
-
msg.
|
|
1341
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1342
|
+
msg.setReferencesId(value);
|
|
1343
1343
|
break;
|
|
1344
1344
|
default:
|
|
1345
1345
|
reader.skipField();
|
|
@@ -1370,9 +1370,9 @@ proto.MaterialTypeGetByIdRequest.prototype.serializeBinary = function() {
|
|
|
1370
1370
|
*/
|
|
1371
1371
|
proto.MaterialTypeGetByIdRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1372
1372
|
var f = undefined;
|
|
1373
|
-
f = message.
|
|
1374
|
-
if (f
|
|
1375
|
-
writer.
|
|
1373
|
+
f = message.getReferencesId();
|
|
1374
|
+
if (f.length > 0) {
|
|
1375
|
+
writer.writeString(
|
|
1376
1376
|
1,
|
|
1377
1377
|
f
|
|
1378
1378
|
);
|
|
@@ -1381,20 +1381,20 @@ proto.MaterialTypeGetByIdRequest.serializeBinaryToWriter = function(message, wri
|
|
|
1381
1381
|
|
|
1382
1382
|
|
|
1383
1383
|
/**
|
|
1384
|
-
* optional
|
|
1385
|
-
* @return {
|
|
1384
|
+
* optional string references_id = 1;
|
|
1385
|
+
* @return {string}
|
|
1386
1386
|
*/
|
|
1387
|
-
proto.MaterialTypeGetByIdRequest.prototype.
|
|
1388
|
-
return /** @type {
|
|
1387
|
+
proto.MaterialTypeGetByIdRequest.prototype.getReferencesId = function() {
|
|
1388
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1389
1389
|
};
|
|
1390
1390
|
|
|
1391
1391
|
|
|
1392
1392
|
/**
|
|
1393
|
-
* @param {
|
|
1393
|
+
* @param {string} value
|
|
1394
1394
|
* @return {!proto.MaterialTypeGetByIdRequest} returns this
|
|
1395
1395
|
*/
|
|
1396
|
-
proto.MaterialTypeGetByIdRequest.prototype.
|
|
1397
|
-
return jspb.Message.
|
|
1396
|
+
proto.MaterialTypeGetByIdRequest.prototype.setReferencesId = function(value) {
|
|
1397
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1398
1398
|
};
|
|
1399
1399
|
|
|
1400
1400
|
|
|
@@ -1430,7 +1430,8 @@ proto.MaterialTypeUpdateRequest.prototype.toObject = function(opt_includeInstanc
|
|
|
1430
1430
|
*/
|
|
1431
1431
|
proto.MaterialTypeUpdateRequest.toObject = function(includeInstance, msg) {
|
|
1432
1432
|
var f, obj = {
|
|
1433
|
-
|
|
1433
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1434
|
+
materialType: (f = msg.getMaterialType()) && proto.BaseMaterial.toObject(includeInstance, f)
|
|
1434
1435
|
};
|
|
1435
1436
|
|
|
1436
1437
|
if (includeInstance) {
|
|
@@ -1468,8 +1469,12 @@ proto.MaterialTypeUpdateRequest.deserializeBinaryFromReader = function(msg, read
|
|
|
1468
1469
|
var field = reader.getFieldNumber();
|
|
1469
1470
|
switch (field) {
|
|
1470
1471
|
case 1:
|
|
1471
|
-
var value =
|
|
1472
|
-
|
|
1472
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1473
|
+
msg.setReferencesId(value);
|
|
1474
|
+
break;
|
|
1475
|
+
case 2:
|
|
1476
|
+
var value = new proto.BaseMaterial;
|
|
1477
|
+
reader.readMessage(value,proto.BaseMaterial.deserializeBinaryFromReader);
|
|
1473
1478
|
msg.setMaterialType(value);
|
|
1474
1479
|
break;
|
|
1475
1480
|
default:
|
|
@@ -1501,33 +1506,58 @@ proto.MaterialTypeUpdateRequest.prototype.serializeBinary = function() {
|
|
|
1501
1506
|
*/
|
|
1502
1507
|
proto.MaterialTypeUpdateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1503
1508
|
var f = undefined;
|
|
1509
|
+
f = message.getReferencesId();
|
|
1510
|
+
if (f.length > 0) {
|
|
1511
|
+
writer.writeString(
|
|
1512
|
+
1,
|
|
1513
|
+
f
|
|
1514
|
+
);
|
|
1515
|
+
}
|
|
1504
1516
|
f = message.getMaterialType();
|
|
1505
1517
|
if (f != null) {
|
|
1506
1518
|
writer.writeMessage(
|
|
1507
|
-
|
|
1519
|
+
2,
|
|
1508
1520
|
f,
|
|
1509
|
-
proto.
|
|
1521
|
+
proto.BaseMaterial.serializeBinaryToWriter
|
|
1510
1522
|
);
|
|
1511
1523
|
}
|
|
1512
1524
|
};
|
|
1513
1525
|
|
|
1514
1526
|
|
|
1515
1527
|
/**
|
|
1516
|
-
* optional
|
|
1517
|
-
* @return {
|
|
1528
|
+
* optional string references_id = 1;
|
|
1529
|
+
* @return {string}
|
|
1530
|
+
*/
|
|
1531
|
+
proto.MaterialTypeUpdateRequest.prototype.getReferencesId = function() {
|
|
1532
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1533
|
+
};
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* @param {string} value
|
|
1538
|
+
* @return {!proto.MaterialTypeUpdateRequest} returns this
|
|
1539
|
+
*/
|
|
1540
|
+
proto.MaterialTypeUpdateRequest.prototype.setReferencesId = function(value) {
|
|
1541
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* optional BaseMaterial material_type = 2;
|
|
1547
|
+
* @return {?proto.BaseMaterial}
|
|
1518
1548
|
*/
|
|
1519
1549
|
proto.MaterialTypeUpdateRequest.prototype.getMaterialType = function() {
|
|
1520
|
-
return /** @type{?proto.
|
|
1521
|
-
jspb.Message.getWrapperField(this, proto.
|
|
1550
|
+
return /** @type{?proto.BaseMaterial} */ (
|
|
1551
|
+
jspb.Message.getWrapperField(this, proto.BaseMaterial, 2));
|
|
1522
1552
|
};
|
|
1523
1553
|
|
|
1524
1554
|
|
|
1525
1555
|
/**
|
|
1526
|
-
* @param {?proto.
|
|
1556
|
+
* @param {?proto.BaseMaterial|undefined} value
|
|
1527
1557
|
* @return {!proto.MaterialTypeUpdateRequest} returns this
|
|
1528
1558
|
*/
|
|
1529
1559
|
proto.MaterialTypeUpdateRequest.prototype.setMaterialType = function(value) {
|
|
1530
|
-
return jspb.Message.setWrapperField(this,
|
|
1560
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1531
1561
|
};
|
|
1532
1562
|
|
|
1533
1563
|
|
|
@@ -1545,7 +1575,7 @@ proto.MaterialTypeUpdateRequest.prototype.clearMaterialType = function() {
|
|
|
1545
1575
|
* @return {boolean}
|
|
1546
1576
|
*/
|
|
1547
1577
|
proto.MaterialTypeUpdateRequest.prototype.hasMaterialType = function() {
|
|
1548
|
-
return jspb.Message.getField(this,
|
|
1578
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1549
1579
|
};
|
|
1550
1580
|
|
|
1551
1581
|
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var prisca_v1_core_organization_organization_pb = require('../../../../prisca/v1/core/organization/organization_pb.js');
|
|
6
6
|
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
|
+
var prisca_v1_core_company_company_pb = require('../../../../prisca/v1/core/company/company_pb.js');
|
|
8
|
+
var prisca_v1_core_work_location_work_location_pb = require('../../../../prisca/v1/core/work_location/work_location_pb.js');
|
|
9
|
+
var prisca_v1_core_organization_level_organization_level_pb = require('../../../../prisca/v1/core/organization_level/organization_level_pb.js');
|
|
7
10
|
|
|
8
11
|
function serialize_CreateOrganizationRequest(arg) {
|
|
9
12
|
if (!(arg instanceof prisca_v1_core_organization_organization_pb.CreateOrganizationRequest)) {
|