@aldiokta/protocgen 1.0.6 → 1.0.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/core/job_position/job_position_pb.js +91 -61
- package/prisca/v1/core/organization/organization_pb.js +71 -41
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +22 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +3330 -1531
|
@@ -297,13 +297,14 @@ proto.Organization.prototype.toObject = function(opt_includeInstance) {
|
|
|
297
297
|
*/
|
|
298
298
|
proto.Organization.toObject = function(includeInstance, msg) {
|
|
299
299
|
var f, obj = {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
300
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
301
|
+
code: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
302
|
+
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
303
|
+
costCenterCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
304
|
+
parentRefId: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
305
|
+
organizationLevelRefId: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
306
|
+
workLocationRefId: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
307
|
+
description: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
307
308
|
};
|
|
308
309
|
|
|
309
310
|
if (includeInstance) {
|
|
@@ -341,30 +342,34 @@ proto.Organization.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
341
342
|
var field = reader.getFieldNumber();
|
|
342
343
|
switch (field) {
|
|
343
344
|
case 1:
|
|
345
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
346
|
+
msg.setId(value);
|
|
347
|
+
break;
|
|
348
|
+
case 2:
|
|
344
349
|
var value = /** @type {string} */ (reader.readString());
|
|
345
350
|
msg.setCode(value);
|
|
346
351
|
break;
|
|
347
|
-
case
|
|
352
|
+
case 3:
|
|
348
353
|
var value = /** @type {string} */ (reader.readString());
|
|
349
354
|
msg.setName(value);
|
|
350
355
|
break;
|
|
351
|
-
case
|
|
356
|
+
case 4:
|
|
352
357
|
var value = /** @type {string} */ (reader.readString());
|
|
353
358
|
msg.setCostCenterCode(value);
|
|
354
359
|
break;
|
|
355
|
-
case
|
|
360
|
+
case 5:
|
|
356
361
|
var value = /** @type {number} */ (reader.readInt64());
|
|
357
362
|
msg.setParentRefId(value);
|
|
358
363
|
break;
|
|
359
|
-
case
|
|
364
|
+
case 6:
|
|
360
365
|
var value = /** @type {number} */ (reader.readInt64());
|
|
361
366
|
msg.setOrganizationLevelRefId(value);
|
|
362
367
|
break;
|
|
363
|
-
case
|
|
368
|
+
case 7:
|
|
364
369
|
var value = /** @type {number} */ (reader.readInt64());
|
|
365
370
|
msg.setWorkLocationRefId(value);
|
|
366
371
|
break;
|
|
367
|
-
case
|
|
372
|
+
case 8:
|
|
368
373
|
var value = /** @type {string} */ (reader.readString());
|
|
369
374
|
msg.setDescription(value);
|
|
370
375
|
break;
|
|
@@ -397,52 +402,59 @@ proto.Organization.prototype.serializeBinary = function() {
|
|
|
397
402
|
*/
|
|
398
403
|
proto.Organization.serializeBinaryToWriter = function(message, writer) {
|
|
399
404
|
var f = undefined;
|
|
405
|
+
f = message.getId();
|
|
406
|
+
if (f !== 0) {
|
|
407
|
+
writer.writeInt64(
|
|
408
|
+
1,
|
|
409
|
+
f
|
|
410
|
+
);
|
|
411
|
+
}
|
|
400
412
|
f = message.getCode();
|
|
401
413
|
if (f.length > 0) {
|
|
402
414
|
writer.writeString(
|
|
403
|
-
|
|
415
|
+
2,
|
|
404
416
|
f
|
|
405
417
|
);
|
|
406
418
|
}
|
|
407
419
|
f = message.getName();
|
|
408
420
|
if (f.length > 0) {
|
|
409
421
|
writer.writeString(
|
|
410
|
-
|
|
422
|
+
3,
|
|
411
423
|
f
|
|
412
424
|
);
|
|
413
425
|
}
|
|
414
426
|
f = message.getCostCenterCode();
|
|
415
427
|
if (f.length > 0) {
|
|
416
428
|
writer.writeString(
|
|
417
|
-
|
|
429
|
+
4,
|
|
418
430
|
f
|
|
419
431
|
);
|
|
420
432
|
}
|
|
421
433
|
f = message.getParentRefId();
|
|
422
434
|
if (f !== 0) {
|
|
423
435
|
writer.writeInt64(
|
|
424
|
-
|
|
436
|
+
5,
|
|
425
437
|
f
|
|
426
438
|
);
|
|
427
439
|
}
|
|
428
440
|
f = message.getOrganizationLevelRefId();
|
|
429
441
|
if (f !== 0) {
|
|
430
442
|
writer.writeInt64(
|
|
431
|
-
|
|
443
|
+
6,
|
|
432
444
|
f
|
|
433
445
|
);
|
|
434
446
|
}
|
|
435
447
|
f = message.getWorkLocationRefId();
|
|
436
448
|
if (f !== 0) {
|
|
437
449
|
writer.writeInt64(
|
|
438
|
-
|
|
450
|
+
7,
|
|
439
451
|
f
|
|
440
452
|
);
|
|
441
453
|
}
|
|
442
454
|
f = message.getDescription();
|
|
443
455
|
if (f.length > 0) {
|
|
444
456
|
writer.writeString(
|
|
445
|
-
|
|
457
|
+
8,
|
|
446
458
|
f
|
|
447
459
|
);
|
|
448
460
|
}
|
|
@@ -450,11 +462,29 @@ proto.Organization.serializeBinaryToWriter = function(message, writer) {
|
|
|
450
462
|
|
|
451
463
|
|
|
452
464
|
/**
|
|
453
|
-
* optional
|
|
465
|
+
* optional int64 id = 1;
|
|
466
|
+
* @return {number}
|
|
467
|
+
*/
|
|
468
|
+
proto.Organization.prototype.getId = function() {
|
|
469
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* @param {number} value
|
|
475
|
+
* @return {!proto.Organization} returns this
|
|
476
|
+
*/
|
|
477
|
+
proto.Organization.prototype.setId = function(value) {
|
|
478
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* optional string code = 2;
|
|
454
484
|
* @return {string}
|
|
455
485
|
*/
|
|
456
486
|
proto.Organization.prototype.getCode = function() {
|
|
457
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
487
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
458
488
|
};
|
|
459
489
|
|
|
460
490
|
|
|
@@ -463,16 +493,16 @@ proto.Organization.prototype.getCode = function() {
|
|
|
463
493
|
* @return {!proto.Organization} returns this
|
|
464
494
|
*/
|
|
465
495
|
proto.Organization.prototype.setCode = function(value) {
|
|
466
|
-
return jspb.Message.setProto3StringField(this,
|
|
496
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
467
497
|
};
|
|
468
498
|
|
|
469
499
|
|
|
470
500
|
/**
|
|
471
|
-
* optional string name =
|
|
501
|
+
* optional string name = 3;
|
|
472
502
|
* @return {string}
|
|
473
503
|
*/
|
|
474
504
|
proto.Organization.prototype.getName = function() {
|
|
475
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
505
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
476
506
|
};
|
|
477
507
|
|
|
478
508
|
|
|
@@ -481,16 +511,16 @@ proto.Organization.prototype.getName = function() {
|
|
|
481
511
|
* @return {!proto.Organization} returns this
|
|
482
512
|
*/
|
|
483
513
|
proto.Organization.prototype.setName = function(value) {
|
|
484
|
-
return jspb.Message.setProto3StringField(this,
|
|
514
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
485
515
|
};
|
|
486
516
|
|
|
487
517
|
|
|
488
518
|
/**
|
|
489
|
-
* optional string cost_center_code =
|
|
519
|
+
* optional string cost_center_code = 4;
|
|
490
520
|
* @return {string}
|
|
491
521
|
*/
|
|
492
522
|
proto.Organization.prototype.getCostCenterCode = function() {
|
|
493
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
523
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
494
524
|
};
|
|
495
525
|
|
|
496
526
|
|
|
@@ -499,16 +529,16 @@ proto.Organization.prototype.getCostCenterCode = function() {
|
|
|
499
529
|
* @return {!proto.Organization} returns this
|
|
500
530
|
*/
|
|
501
531
|
proto.Organization.prototype.setCostCenterCode = function(value) {
|
|
502
|
-
return jspb.Message.setProto3StringField(this,
|
|
532
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
503
533
|
};
|
|
504
534
|
|
|
505
535
|
|
|
506
536
|
/**
|
|
507
|
-
* optional int64 parent_ref_id =
|
|
537
|
+
* optional int64 parent_ref_id = 5;
|
|
508
538
|
* @return {number}
|
|
509
539
|
*/
|
|
510
540
|
proto.Organization.prototype.getParentRefId = function() {
|
|
511
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
541
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
512
542
|
};
|
|
513
543
|
|
|
514
544
|
|
|
@@ -517,16 +547,16 @@ proto.Organization.prototype.getParentRefId = function() {
|
|
|
517
547
|
* @return {!proto.Organization} returns this
|
|
518
548
|
*/
|
|
519
549
|
proto.Organization.prototype.setParentRefId = function(value) {
|
|
520
|
-
return jspb.Message.setProto3IntField(this,
|
|
550
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
521
551
|
};
|
|
522
552
|
|
|
523
553
|
|
|
524
554
|
/**
|
|
525
|
-
* optional int64 organization_level_ref_id =
|
|
555
|
+
* optional int64 organization_level_ref_id = 6;
|
|
526
556
|
* @return {number}
|
|
527
557
|
*/
|
|
528
558
|
proto.Organization.prototype.getOrganizationLevelRefId = function() {
|
|
529
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
559
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
530
560
|
};
|
|
531
561
|
|
|
532
562
|
|
|
@@ -535,16 +565,16 @@ proto.Organization.prototype.getOrganizationLevelRefId = function() {
|
|
|
535
565
|
* @return {!proto.Organization} returns this
|
|
536
566
|
*/
|
|
537
567
|
proto.Organization.prototype.setOrganizationLevelRefId = function(value) {
|
|
538
|
-
return jspb.Message.setProto3IntField(this,
|
|
568
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
539
569
|
};
|
|
540
570
|
|
|
541
571
|
|
|
542
572
|
/**
|
|
543
|
-
* optional int64 work_location_ref_id =
|
|
573
|
+
* optional int64 work_location_ref_id = 7;
|
|
544
574
|
* @return {number}
|
|
545
575
|
*/
|
|
546
576
|
proto.Organization.prototype.getWorkLocationRefId = function() {
|
|
547
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this,
|
|
577
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
548
578
|
};
|
|
549
579
|
|
|
550
580
|
|
|
@@ -553,16 +583,16 @@ proto.Organization.prototype.getWorkLocationRefId = function() {
|
|
|
553
583
|
* @return {!proto.Organization} returns this
|
|
554
584
|
*/
|
|
555
585
|
proto.Organization.prototype.setWorkLocationRefId = function(value) {
|
|
556
|
-
return jspb.Message.setProto3IntField(this,
|
|
586
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
557
587
|
};
|
|
558
588
|
|
|
559
589
|
|
|
560
590
|
/**
|
|
561
|
-
* optional string description =
|
|
591
|
+
* optional string description = 8;
|
|
562
592
|
* @return {string}
|
|
563
593
|
*/
|
|
564
594
|
proto.Organization.prototype.getDescription = function() {
|
|
565
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
595
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
566
596
|
};
|
|
567
597
|
|
|
568
598
|
|
|
@@ -571,7 +601,7 @@ proto.Organization.prototype.getDescription = function() {
|
|
|
571
601
|
* @return {!proto.Organization} returns this
|
|
572
602
|
*/
|
|
573
603
|
proto.Organization.prototype.setDescription = function(value) {
|
|
574
|
-
return jspb.Message.setProto3StringField(this,
|
|
604
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
575
605
|
};
|
|
576
606
|
|
|
577
607
|
|
|
@@ -137,6 +137,17 @@ function deserialize_prisca_v1_core_transaction_builder_ResponseTransactionBuild
|
|
|
137
137
|
return prisca_v1_core_transaction_builder_transaction_builder_pb.ResponseTransactionBuilderWithDetail.deserializeBinary(new Uint8Array(buffer_arg));
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
+
function serialize_prisca_v1_core_transaction_builder_ResponseTransactionBuilderWithDetailOnlyTable(arg) {
|
|
141
|
+
if (!(arg instanceof prisca_v1_core_transaction_builder_transaction_builder_pb.ResponseTransactionBuilderWithDetailOnlyTable)) {
|
|
142
|
+
throw new Error('Expected argument of type prisca.v1.core.transaction_builder.ResponseTransactionBuilderWithDetailOnlyTable');
|
|
143
|
+
}
|
|
144
|
+
return Buffer.from(arg.serializeBinary());
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function deserialize_prisca_v1_core_transaction_builder_ResponseTransactionBuilderWithDetailOnlyTable(buffer_arg) {
|
|
148
|
+
return prisca_v1_core_transaction_builder_transaction_builder_pb.ResponseTransactionBuilderWithDetailOnlyTable.deserializeBinary(new Uint8Array(buffer_arg));
|
|
149
|
+
}
|
|
150
|
+
|
|
140
151
|
function serialize_prisca_v1_core_transaction_builder_ResponseTransactionConfig(arg) {
|
|
141
152
|
if (!(arg instanceof prisca_v1_core_transaction_builder_transaction_builder_pb.ResponseTransactionConfig)) {
|
|
142
153
|
throw new Error('Expected argument of type prisca.v1.core.transaction_builder.ResponseTransactionConfig');
|
|
@@ -305,6 +316,17 @@ createTransactionBuilder: {
|
|
|
305
316
|
responseSerialize: serialize_prisca_v1_core_transaction_builder_ResponseTransactionBuilderList,
|
|
306
317
|
responseDeserialize: deserialize_prisca_v1_core_transaction_builder_ResponseTransactionBuilderList,
|
|
307
318
|
},
|
|
319
|
+
getListTransactionBuilderTable: {
|
|
320
|
+
path: '/prisca.v1.core.transaction_builder.TransactionBuilderService/GetListTransactionBuilderTable',
|
|
321
|
+
requestStream: false,
|
|
322
|
+
responseStream: false,
|
|
323
|
+
requestType: prisca_v1_core_transaction_builder_transaction_builder_pb.GetTransactionFieldsById,
|
|
324
|
+
responseType: prisca_v1_core_transaction_builder_transaction_builder_pb.ResponseTransactionBuilderWithDetailOnlyTable,
|
|
325
|
+
requestSerialize: serialize_prisca_v1_core_transaction_builder_GetTransactionFieldsById,
|
|
326
|
+
requestDeserialize: deserialize_prisca_v1_core_transaction_builder_GetTransactionFieldsById,
|
|
327
|
+
responseSerialize: serialize_prisca_v1_core_transaction_builder_ResponseTransactionBuilderWithDetailOnlyTable,
|
|
328
|
+
responseDeserialize: deserialize_prisca_v1_core_transaction_builder_ResponseTransactionBuilderWithDetailOnlyTable,
|
|
329
|
+
},
|
|
308
330
|
getListTransactionConfig: {
|
|
309
331
|
path: '/prisca.v1.core.transaction_builder.TransactionBuilderService/GetListTransactionConfig',
|
|
310
332
|
requestStream: false,
|