@aldiokta/protocgen 1.0.70 → 1.0.71
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/material/material_grpc_pb.js +1 -0
- package/prisca/v1/core/material/material_pb.js +146 -72
- package/prisca/v1/core/material_group/material_group_grpc_pb.js +1 -0
- package/prisca/v1/core/material_group/material_group_pb.js +195 -1
- package/prisca/v1/core/material_type/material_type_grpc_pb.js +1 -0
- package/prisca/v1/core/material_type/material_type_pb.js +195 -1
- package/prisca/v1/core/messaging/email_template_pb.js +6 -6
- package/prisca/v1/core/number_range/number_range_grpc_pb.js +1 -0
- package/prisca/v1/core/number_range/number_range_pb.js +195 -1
- package/prisca/v1/core/report/report_pb.js +143 -83
- package/prisca/v1/core/workflow/workflow_pb.js +194 -2
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ var prisca_v1_core_material_type_material_type_pb = require('../../../../prisca/
|
|
|
8
8
|
var prisca_v1_core_material_group_material_group_pb = require('../../../../prisca/v1/core/material_group/material_group_pb.js');
|
|
9
9
|
var prisca_v1_core_work_location_work_location_pb = require('../../../../prisca/v1/core/work_location/work_location_pb.js');
|
|
10
10
|
var prisca_v1_core_unit_of_measurement_unit_of_measurement_pb = require('../../../../prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js');
|
|
11
|
+
var prisca_v1_core_employee_employee_pb = require('../../../../prisca/v1/core/employee/employee_pb.js');
|
|
11
12
|
|
|
12
13
|
function serialize_CreateMaterialRequest(arg) {
|
|
13
14
|
if (!(arg instanceof prisca_v1_core_material_material_pb.CreateMaterialRequest)) {
|
|
@@ -31,6 +31,8 @@ var prisca_v1_core_work_location_work_location_pb = require('../../../../prisca/
|
|
|
31
31
|
goog.object.extend(proto, prisca_v1_core_work_location_work_location_pb);
|
|
32
32
|
var prisca_v1_core_unit_of_measurement_unit_of_measurement_pb = require('../../../../prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js');
|
|
33
33
|
goog.object.extend(proto, prisca_v1_core_unit_of_measurement_unit_of_measurement_pb);
|
|
34
|
+
var prisca_v1_core_employee_employee_pb = require('../../../../prisca/v1/core/employee/employee_pb.js');
|
|
35
|
+
goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
|
|
34
36
|
goog.exportSymbol('proto.BaseMaterialRequest', null, global);
|
|
35
37
|
goog.exportSymbol('proto.CreateMaterialRequest', null, global);
|
|
36
38
|
goog.exportSymbol('proto.CreateMaterialResponse', null, global);
|
|
@@ -422,7 +424,10 @@ materialGroup: (f = msg.getMaterialGroup()) && prisca_v1_core_material_group_mat
|
|
|
422
424
|
materialPlantRef: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
423
425
|
materialPlant: (f = msg.getMaterialPlant()) && prisca_v1_core_work_location_work_location_pb.WorkLocation.toObject(includeInstance, f),
|
|
424
426
|
materialTypeCodeRef: jspb.Message.getFieldWithDefault(msg, 20, ""),
|
|
425
|
-
numberRangeSequence: jspb.Message.getFieldWithDefault(msg, 21, "")
|
|
427
|
+
numberRangeSequence: jspb.Message.getFieldWithDefault(msg, 21, ""),
|
|
428
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 22, ""),
|
|
429
|
+
createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
|
|
430
|
+
updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f)
|
|
426
431
|
};
|
|
427
432
|
|
|
428
433
|
if (includeInstance) {
|
|
@@ -549,6 +554,20 @@ proto.Material.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
549
554
|
var value = /** @type {string} */ (reader.readString());
|
|
550
555
|
msg.setNumberRangeSequence(value);
|
|
551
556
|
break;
|
|
557
|
+
case 22:
|
|
558
|
+
var value = /** @type {string} */ (reader.readString());
|
|
559
|
+
msg.setCompaniesReferencesId(value);
|
|
560
|
+
break;
|
|
561
|
+
case 23:
|
|
562
|
+
var value = new prisca_v1_core_employee_employee_pb.Employee;
|
|
563
|
+
reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
|
|
564
|
+
msg.setCreatedByEmployee(value);
|
|
565
|
+
break;
|
|
566
|
+
case 24:
|
|
567
|
+
var value = new prisca_v1_core_employee_employee_pb.Employee;
|
|
568
|
+
reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
|
|
569
|
+
msg.setUpdatedByEmployee(value);
|
|
570
|
+
break;
|
|
552
571
|
default:
|
|
553
572
|
reader.skipField();
|
|
554
573
|
break;
|
|
@@ -731,6 +750,29 @@ proto.Material.serializeBinaryToWriter = function(message, writer) {
|
|
|
731
750
|
f
|
|
732
751
|
);
|
|
733
752
|
}
|
|
753
|
+
f = message.getCompaniesReferencesId();
|
|
754
|
+
if (f.length > 0) {
|
|
755
|
+
writer.writeString(
|
|
756
|
+
22,
|
|
757
|
+
f
|
|
758
|
+
);
|
|
759
|
+
}
|
|
760
|
+
f = message.getCreatedByEmployee();
|
|
761
|
+
if (f != null) {
|
|
762
|
+
writer.writeMessage(
|
|
763
|
+
23,
|
|
764
|
+
f,
|
|
765
|
+
prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
|
|
766
|
+
);
|
|
767
|
+
}
|
|
768
|
+
f = message.getUpdatedByEmployee();
|
|
769
|
+
if (f != null) {
|
|
770
|
+
writer.writeMessage(
|
|
771
|
+
24,
|
|
772
|
+
f,
|
|
773
|
+
prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
|
|
774
|
+
);
|
|
775
|
+
}
|
|
734
776
|
};
|
|
735
777
|
|
|
736
778
|
|
|
@@ -1228,6 +1270,98 @@ proto.Material.prototype.setNumberRangeSequence = function(value) {
|
|
|
1228
1270
|
};
|
|
1229
1271
|
|
|
1230
1272
|
|
|
1273
|
+
/**
|
|
1274
|
+
* optional string companies_references_id = 22;
|
|
1275
|
+
* @return {string}
|
|
1276
|
+
*/
|
|
1277
|
+
proto.Material.prototype.getCompaniesReferencesId = function() {
|
|
1278
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
|
|
1279
|
+
};
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* @param {string} value
|
|
1284
|
+
* @return {!proto.Material} returns this
|
|
1285
|
+
*/
|
|
1286
|
+
proto.Material.prototype.setCompaniesReferencesId = function(value) {
|
|
1287
|
+
return jspb.Message.setProto3StringField(this, 22, value);
|
|
1288
|
+
};
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* optional Employee created_by_employee = 23;
|
|
1293
|
+
* @return {?proto.Employee}
|
|
1294
|
+
*/
|
|
1295
|
+
proto.Material.prototype.getCreatedByEmployee = function() {
|
|
1296
|
+
return /** @type{?proto.Employee} */ (
|
|
1297
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 23));
|
|
1298
|
+
};
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
/**
|
|
1302
|
+
* @param {?proto.Employee|undefined} value
|
|
1303
|
+
* @return {!proto.Material} returns this
|
|
1304
|
+
*/
|
|
1305
|
+
proto.Material.prototype.setCreatedByEmployee = function(value) {
|
|
1306
|
+
return jspb.Message.setWrapperField(this, 23, value);
|
|
1307
|
+
};
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
/**
|
|
1311
|
+
* Clears the message field making it undefined.
|
|
1312
|
+
* @return {!proto.Material} returns this
|
|
1313
|
+
*/
|
|
1314
|
+
proto.Material.prototype.clearCreatedByEmployee = function() {
|
|
1315
|
+
return this.setCreatedByEmployee(undefined);
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* Returns whether this field is set.
|
|
1321
|
+
* @return {boolean}
|
|
1322
|
+
*/
|
|
1323
|
+
proto.Material.prototype.hasCreatedByEmployee = function() {
|
|
1324
|
+
return jspb.Message.getField(this, 23) != null;
|
|
1325
|
+
};
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* optional Employee updated_by_employee = 24;
|
|
1330
|
+
* @return {?proto.Employee}
|
|
1331
|
+
*/
|
|
1332
|
+
proto.Material.prototype.getUpdatedByEmployee = function() {
|
|
1333
|
+
return /** @type{?proto.Employee} */ (
|
|
1334
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 24));
|
|
1335
|
+
};
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* @param {?proto.Employee|undefined} value
|
|
1340
|
+
* @return {!proto.Material} returns this
|
|
1341
|
+
*/
|
|
1342
|
+
proto.Material.prototype.setUpdatedByEmployee = function(value) {
|
|
1343
|
+
return jspb.Message.setWrapperField(this, 24, value);
|
|
1344
|
+
};
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* Clears the message field making it undefined.
|
|
1349
|
+
* @return {!proto.Material} returns this
|
|
1350
|
+
*/
|
|
1351
|
+
proto.Material.prototype.clearUpdatedByEmployee = function() {
|
|
1352
|
+
return this.setUpdatedByEmployee(undefined);
|
|
1353
|
+
};
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
/**
|
|
1357
|
+
* Returns whether this field is set.
|
|
1358
|
+
* @return {boolean}
|
|
1359
|
+
*/
|
|
1360
|
+
proto.Material.prototype.hasUpdatedByEmployee = function() {
|
|
1361
|
+
return jspb.Message.getField(this, 24) != null;
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
|
|
1231
1365
|
|
|
1232
1366
|
|
|
1233
1367
|
|
|
@@ -1847,10 +1981,8 @@ languageDescriptionList: jspb.Message.toObjectList(msg.getLanguageDescriptionLis
|
|
|
1847
1981
|
proto.MaterialLanguageDescription.toObject, includeInstance),
|
|
1848
1982
|
unitOfMeasureList: jspb.Message.toObjectList(msg.getUnitOfMeasureList(),
|
|
1849
1983
|
proto.MaterialUOMRequest.toObject, includeInstance),
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
materialPlantRef: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
1853
|
-
baseUnitOfMeasureRef: jspb.Message.getFieldWithDefault(msg, 12, "")
|
|
1984
|
+
materialPlantRef: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
1985
|
+
baseUnitOfMeasureRef: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
1854
1986
|
};
|
|
1855
1987
|
|
|
1856
1988
|
if (includeInstance) {
|
|
@@ -1922,18 +2054,10 @@ proto.BaseMaterialRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
1922
2054
|
msg.addUnitOfMeasure(value);
|
|
1923
2055
|
break;
|
|
1924
2056
|
case 9:
|
|
1925
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1926
|
-
msg.setCreatedBy(value);
|
|
1927
|
-
break;
|
|
1928
|
-
case 10:
|
|
1929
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1930
|
-
msg.setUpdatedBy(value);
|
|
1931
|
-
break;
|
|
1932
|
-
case 11:
|
|
1933
2057
|
var value = /** @type {string} */ (reader.readString());
|
|
1934
2058
|
msg.setMaterialPlantRef(value);
|
|
1935
2059
|
break;
|
|
1936
|
-
case
|
|
2060
|
+
case 10:
|
|
1937
2061
|
var value = /** @type {string} */ (reader.readString());
|
|
1938
2062
|
msg.setBaseUnitOfMeasureRef(value);
|
|
1939
2063
|
break;
|
|
@@ -2024,31 +2148,17 @@ proto.BaseMaterialRequest.serializeBinaryToWriter = function(message, writer) {
|
|
|
2024
2148
|
proto.MaterialUOMRequest.serializeBinaryToWriter
|
|
2025
2149
|
);
|
|
2026
2150
|
}
|
|
2027
|
-
f = message.getCreatedBy();
|
|
2028
|
-
if (f.length > 0) {
|
|
2029
|
-
writer.writeString(
|
|
2030
|
-
9,
|
|
2031
|
-
f
|
|
2032
|
-
);
|
|
2033
|
-
}
|
|
2034
|
-
f = message.getUpdatedBy();
|
|
2035
|
-
if (f.length > 0) {
|
|
2036
|
-
writer.writeString(
|
|
2037
|
-
10,
|
|
2038
|
-
f
|
|
2039
|
-
);
|
|
2040
|
-
}
|
|
2041
2151
|
f = message.getMaterialPlantRef();
|
|
2042
2152
|
if (f.length > 0) {
|
|
2043
2153
|
writer.writeString(
|
|
2044
|
-
|
|
2154
|
+
9,
|
|
2045
2155
|
f
|
|
2046
2156
|
);
|
|
2047
2157
|
}
|
|
2048
2158
|
f = message.getBaseUnitOfMeasureRef();
|
|
2049
2159
|
if (f.length > 0) {
|
|
2050
2160
|
writer.writeString(
|
|
2051
|
-
|
|
2161
|
+
10,
|
|
2052
2162
|
f
|
|
2053
2163
|
);
|
|
2054
2164
|
}
|
|
@@ -2240,47 +2350,11 @@ proto.BaseMaterialRequest.prototype.clearUnitOfMeasureList = function() {
|
|
|
2240
2350
|
|
|
2241
2351
|
|
|
2242
2352
|
/**
|
|
2243
|
-
* optional string
|
|
2244
|
-
* @return {string}
|
|
2245
|
-
*/
|
|
2246
|
-
proto.BaseMaterialRequest.prototype.getCreatedBy = function() {
|
|
2247
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
2248
|
-
};
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
/**
|
|
2252
|
-
* @param {string} value
|
|
2253
|
-
* @return {!proto.BaseMaterialRequest} returns this
|
|
2254
|
-
*/
|
|
2255
|
-
proto.BaseMaterialRequest.prototype.setCreatedBy = function(value) {
|
|
2256
|
-
return jspb.Message.setProto3StringField(this, 9, value);
|
|
2257
|
-
};
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
/**
|
|
2261
|
-
* optional string updated_by = 10;
|
|
2262
|
-
* @return {string}
|
|
2263
|
-
*/
|
|
2264
|
-
proto.BaseMaterialRequest.prototype.getUpdatedBy = function() {
|
|
2265
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
2266
|
-
};
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
/**
|
|
2270
|
-
* @param {string} value
|
|
2271
|
-
* @return {!proto.BaseMaterialRequest} returns this
|
|
2272
|
-
*/
|
|
2273
|
-
proto.BaseMaterialRequest.prototype.setUpdatedBy = function(value) {
|
|
2274
|
-
return jspb.Message.setProto3StringField(this, 10, value);
|
|
2275
|
-
};
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
/**
|
|
2279
|
-
* optional string material_plant_ref = 11;
|
|
2353
|
+
* optional string material_plant_ref = 9;
|
|
2280
2354
|
* @return {string}
|
|
2281
2355
|
*/
|
|
2282
2356
|
proto.BaseMaterialRequest.prototype.getMaterialPlantRef = function() {
|
|
2283
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
2357
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
2284
2358
|
};
|
|
2285
2359
|
|
|
2286
2360
|
|
|
@@ -2289,16 +2363,16 @@ proto.BaseMaterialRequest.prototype.getMaterialPlantRef = function() {
|
|
|
2289
2363
|
* @return {!proto.BaseMaterialRequest} returns this
|
|
2290
2364
|
*/
|
|
2291
2365
|
proto.BaseMaterialRequest.prototype.setMaterialPlantRef = function(value) {
|
|
2292
|
-
return jspb.Message.setProto3StringField(this,
|
|
2366
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
2293
2367
|
};
|
|
2294
2368
|
|
|
2295
2369
|
|
|
2296
2370
|
/**
|
|
2297
|
-
* optional string base_unit_of_measure_ref =
|
|
2371
|
+
* optional string base_unit_of_measure_ref = 10;
|
|
2298
2372
|
* @return {string}
|
|
2299
2373
|
*/
|
|
2300
2374
|
proto.BaseMaterialRequest.prototype.getBaseUnitOfMeasureRef = function() {
|
|
2301
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
2375
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
2302
2376
|
};
|
|
2303
2377
|
|
|
2304
2378
|
|
|
@@ -2307,7 +2381,7 @@ proto.BaseMaterialRequest.prototype.getBaseUnitOfMeasureRef = function() {
|
|
|
2307
2381
|
* @return {!proto.BaseMaterialRequest} returns this
|
|
2308
2382
|
*/
|
|
2309
2383
|
proto.BaseMaterialRequest.prototype.setBaseUnitOfMeasureRef = function(value) {
|
|
2310
|
-
return jspb.Message.setProto3StringField(this,
|
|
2384
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
2311
2385
|
};
|
|
2312
2386
|
|
|
2313
2387
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var prisca_v1_core_material_group_material_group_pb = require('../../../../prisca/v1/core/material_group/material_group_pb.js');
|
|
6
6
|
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
|
+
var prisca_v1_core_employee_employee_pb = require('../../../../prisca/v1/core/employee/employee_pb.js');
|
|
7
8
|
|
|
8
9
|
function serialize_CreateMaterialGroupRequest(arg) {
|
|
9
10
|
if (!(arg instanceof prisca_v1_core_material_group_material_group_pb.CreateMaterialGroupRequest)) {
|
|
@@ -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_employee_employee_pb = require('../../../../prisca/v1/core/employee/employee_pb.js');
|
|
27
|
+
goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
|
|
26
28
|
goog.exportSymbol('proto.BaseMaterialGroupRequest', null, global);
|
|
27
29
|
goog.exportSymbol('proto.CreateMaterialGroupRequest', null, global);
|
|
28
30
|
goog.exportSymbol('proto.CreateMaterialGroupResponse', null, global);
|
|
@@ -325,7 +327,12 @@ materialGroupDescription: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
|
325
327
|
materialGroupDescriptionExternal: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
326
328
|
referencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
327
329
|
createdAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
328
|
-
updatedAt: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
330
|
+
updatedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
331
|
+
createdBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
332
|
+
updatedBy: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
333
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
334
|
+
createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
|
|
335
|
+
updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f)
|
|
329
336
|
};
|
|
330
337
|
|
|
331
338
|
if (includeInstance) {
|
|
@@ -390,6 +397,28 @@ proto.MaterialGroup.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
390
397
|
var value = /** @type {string} */ (reader.readString());
|
|
391
398
|
msg.setUpdatedAt(value);
|
|
392
399
|
break;
|
|
400
|
+
case 8:
|
|
401
|
+
var value = /** @type {string} */ (reader.readString());
|
|
402
|
+
msg.setCreatedBy(value);
|
|
403
|
+
break;
|
|
404
|
+
case 9:
|
|
405
|
+
var value = /** @type {string} */ (reader.readString());
|
|
406
|
+
msg.setUpdatedBy(value);
|
|
407
|
+
break;
|
|
408
|
+
case 10:
|
|
409
|
+
var value = /** @type {string} */ (reader.readString());
|
|
410
|
+
msg.setCompaniesReferencesId(value);
|
|
411
|
+
break;
|
|
412
|
+
case 11:
|
|
413
|
+
var value = new prisca_v1_core_employee_employee_pb.Employee;
|
|
414
|
+
reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
|
|
415
|
+
msg.setCreatedByEmployee(value);
|
|
416
|
+
break;
|
|
417
|
+
case 12:
|
|
418
|
+
var value = new prisca_v1_core_employee_employee_pb.Employee;
|
|
419
|
+
reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
|
|
420
|
+
msg.setUpdatedByEmployee(value);
|
|
421
|
+
break;
|
|
393
422
|
default:
|
|
394
423
|
reader.skipField();
|
|
395
424
|
break;
|
|
@@ -468,6 +497,43 @@ proto.MaterialGroup.serializeBinaryToWriter = function(message, writer) {
|
|
|
468
497
|
f
|
|
469
498
|
);
|
|
470
499
|
}
|
|
500
|
+
f = message.getCreatedBy();
|
|
501
|
+
if (f.length > 0) {
|
|
502
|
+
writer.writeString(
|
|
503
|
+
8,
|
|
504
|
+
f
|
|
505
|
+
);
|
|
506
|
+
}
|
|
507
|
+
f = message.getUpdatedBy();
|
|
508
|
+
if (f.length > 0) {
|
|
509
|
+
writer.writeString(
|
|
510
|
+
9,
|
|
511
|
+
f
|
|
512
|
+
);
|
|
513
|
+
}
|
|
514
|
+
f = message.getCompaniesReferencesId();
|
|
515
|
+
if (f.length > 0) {
|
|
516
|
+
writer.writeString(
|
|
517
|
+
10,
|
|
518
|
+
f
|
|
519
|
+
);
|
|
520
|
+
}
|
|
521
|
+
f = message.getCreatedByEmployee();
|
|
522
|
+
if (f != null) {
|
|
523
|
+
writer.writeMessage(
|
|
524
|
+
11,
|
|
525
|
+
f,
|
|
526
|
+
prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
|
|
527
|
+
);
|
|
528
|
+
}
|
|
529
|
+
f = message.getUpdatedByEmployee();
|
|
530
|
+
if (f != null) {
|
|
531
|
+
writer.writeMessage(
|
|
532
|
+
12,
|
|
533
|
+
f,
|
|
534
|
+
prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
|
|
535
|
+
);
|
|
536
|
+
}
|
|
471
537
|
};
|
|
472
538
|
|
|
473
539
|
|
|
@@ -597,6 +663,134 @@ proto.MaterialGroup.prototype.setUpdatedAt = function(value) {
|
|
|
597
663
|
};
|
|
598
664
|
|
|
599
665
|
|
|
666
|
+
/**
|
|
667
|
+
* optional string created_by = 8;
|
|
668
|
+
* @return {string}
|
|
669
|
+
*/
|
|
670
|
+
proto.MaterialGroup.prototype.getCreatedBy = function() {
|
|
671
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* @param {string} value
|
|
677
|
+
* @return {!proto.MaterialGroup} returns this
|
|
678
|
+
*/
|
|
679
|
+
proto.MaterialGroup.prototype.setCreatedBy = function(value) {
|
|
680
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* optional string updated_by = 9;
|
|
686
|
+
* @return {string}
|
|
687
|
+
*/
|
|
688
|
+
proto.MaterialGroup.prototype.getUpdatedBy = function() {
|
|
689
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* @param {string} value
|
|
695
|
+
* @return {!proto.MaterialGroup} returns this
|
|
696
|
+
*/
|
|
697
|
+
proto.MaterialGroup.prototype.setUpdatedBy = function(value) {
|
|
698
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* optional string companies_references_id = 10;
|
|
704
|
+
* @return {string}
|
|
705
|
+
*/
|
|
706
|
+
proto.MaterialGroup.prototype.getCompaniesReferencesId = function() {
|
|
707
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* @param {string} value
|
|
713
|
+
* @return {!proto.MaterialGroup} returns this
|
|
714
|
+
*/
|
|
715
|
+
proto.MaterialGroup.prototype.setCompaniesReferencesId = function(value) {
|
|
716
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* optional Employee created_by_employee = 11;
|
|
722
|
+
* @return {?proto.Employee}
|
|
723
|
+
*/
|
|
724
|
+
proto.MaterialGroup.prototype.getCreatedByEmployee = function() {
|
|
725
|
+
return /** @type{?proto.Employee} */ (
|
|
726
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 11));
|
|
727
|
+
};
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* @param {?proto.Employee|undefined} value
|
|
732
|
+
* @return {!proto.MaterialGroup} returns this
|
|
733
|
+
*/
|
|
734
|
+
proto.MaterialGroup.prototype.setCreatedByEmployee = function(value) {
|
|
735
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* Clears the message field making it undefined.
|
|
741
|
+
* @return {!proto.MaterialGroup} returns this
|
|
742
|
+
*/
|
|
743
|
+
proto.MaterialGroup.prototype.clearCreatedByEmployee = function() {
|
|
744
|
+
return this.setCreatedByEmployee(undefined);
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Returns whether this field is set.
|
|
750
|
+
* @return {boolean}
|
|
751
|
+
*/
|
|
752
|
+
proto.MaterialGroup.prototype.hasCreatedByEmployee = function() {
|
|
753
|
+
return jspb.Message.getField(this, 11) != null;
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* optional Employee updated_by_employee = 12;
|
|
759
|
+
* @return {?proto.Employee}
|
|
760
|
+
*/
|
|
761
|
+
proto.MaterialGroup.prototype.getUpdatedByEmployee = function() {
|
|
762
|
+
return /** @type{?proto.Employee} */ (
|
|
763
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 12));
|
|
764
|
+
};
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* @param {?proto.Employee|undefined} value
|
|
769
|
+
* @return {!proto.MaterialGroup} returns this
|
|
770
|
+
*/
|
|
771
|
+
proto.MaterialGroup.prototype.setUpdatedByEmployee = function(value) {
|
|
772
|
+
return jspb.Message.setWrapperField(this, 12, value);
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* Clears the message field making it undefined.
|
|
778
|
+
* @return {!proto.MaterialGroup} returns this
|
|
779
|
+
*/
|
|
780
|
+
proto.MaterialGroup.prototype.clearUpdatedByEmployee = function() {
|
|
781
|
+
return this.setUpdatedByEmployee(undefined);
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Returns whether this field is set.
|
|
787
|
+
* @return {boolean}
|
|
788
|
+
*/
|
|
789
|
+
proto.MaterialGroup.prototype.hasUpdatedByEmployee = function() {
|
|
790
|
+
return jspb.Message.getField(this, 12) != null;
|
|
791
|
+
};
|
|
792
|
+
|
|
793
|
+
|
|
600
794
|
|
|
601
795
|
|
|
602
796
|
|
|
@@ -5,6 +5,7 @@ var grpc = require('@grpc/grpc-js');
|
|
|
5
5
|
var prisca_v1_core_material_type_material_type_pb = require('../../../../prisca/v1/core/material_type/material_type_pb.js');
|
|
6
6
|
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
7
|
var prisca_v1_core_number_range_number_range_pb = require('../../../../prisca/v1/core/number_range/number_range_pb.js');
|
|
8
|
+
var prisca_v1_core_employee_employee_pb = require('../../../../prisca/v1/core/employee/employee_pb.js');
|
|
8
9
|
|
|
9
10
|
function serialize_MaterialTypeGetByIdRequest(arg) {
|
|
10
11
|
if (!(arg instanceof prisca_v1_core_material_type_material_type_pb.MaterialTypeGetByIdRequest)) {
|