@aldiokta/protocgen 1.0.50 → 1.0.52
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/messaging/email_template_grpc_pb.js +177 -0
- package/prisca/v1/core/messaging/email_template_pb.js +2552 -0
- package/prisca/v1/core/messaging/messaging_grpc_pb.js +45 -0
- package/prisca/v1/core/messaging/messaging_pb.js +896 -0
- package/prisca/v1/purchasing_group/purchasing_group_pb.js +173 -53
- package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +44 -226
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +9 -9
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +95 -35
|
@@ -303,8 +303,9 @@ proto.PlantPOrganization.toObject = function(includeInstance, msg) {
|
|
|
303
303
|
var f, obj = {
|
|
304
304
|
purchasingOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
305
305
|
plantReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
code: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
307
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
308
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
308
309
|
};
|
|
309
310
|
|
|
310
311
|
if (includeInstance) {
|
|
@@ -351,9 +352,13 @@ proto.PlantPOrganization.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
351
352
|
break;
|
|
352
353
|
case 3:
|
|
353
354
|
var value = /** @type {string} */ (reader.readString());
|
|
354
|
-
msg.
|
|
355
|
+
msg.setCode(value);
|
|
355
356
|
break;
|
|
356
357
|
case 4:
|
|
358
|
+
var value = /** @type {string} */ (reader.readString());
|
|
359
|
+
msg.setDescription(value);
|
|
360
|
+
break;
|
|
361
|
+
case 5:
|
|
357
362
|
var value = /** @type {string} */ (reader.readString());
|
|
358
363
|
msg.setCompaniesReferencesId(value);
|
|
359
364
|
break;
|
|
@@ -400,20 +405,27 @@ proto.PlantPOrganization.serializeBinaryToWriter = function(message, writer) {
|
|
|
400
405
|
f
|
|
401
406
|
);
|
|
402
407
|
}
|
|
403
|
-
f = message.
|
|
408
|
+
f = message.getCode();
|
|
404
409
|
if (f.length > 0) {
|
|
405
410
|
writer.writeString(
|
|
406
411
|
3,
|
|
407
412
|
f
|
|
408
413
|
);
|
|
409
414
|
}
|
|
410
|
-
f = message.
|
|
415
|
+
f = message.getDescription();
|
|
411
416
|
if (f.length > 0) {
|
|
412
417
|
writer.writeString(
|
|
413
418
|
4,
|
|
414
419
|
f
|
|
415
420
|
);
|
|
416
421
|
}
|
|
422
|
+
f = message.getCompaniesReferencesId();
|
|
423
|
+
if (f.length > 0) {
|
|
424
|
+
writer.writeString(
|
|
425
|
+
5,
|
|
426
|
+
f
|
|
427
|
+
);
|
|
428
|
+
}
|
|
417
429
|
};
|
|
418
430
|
|
|
419
431
|
|
|
@@ -454,10 +466,10 @@ proto.PlantPOrganization.prototype.setPlantReferencesId = function(value) {
|
|
|
454
466
|
|
|
455
467
|
|
|
456
468
|
/**
|
|
457
|
-
* optional string
|
|
469
|
+
* optional string code = 3;
|
|
458
470
|
* @return {string}
|
|
459
471
|
*/
|
|
460
|
-
proto.PlantPOrganization.prototype.
|
|
472
|
+
proto.PlantPOrganization.prototype.getCode = function() {
|
|
461
473
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
462
474
|
};
|
|
463
475
|
|
|
@@ -466,16 +478,16 @@ proto.PlantPOrganization.prototype.getDescription = function() {
|
|
|
466
478
|
* @param {string} value
|
|
467
479
|
* @return {!proto.PlantPOrganization} returns this
|
|
468
480
|
*/
|
|
469
|
-
proto.PlantPOrganization.prototype.
|
|
481
|
+
proto.PlantPOrganization.prototype.setCode = function(value) {
|
|
470
482
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
471
483
|
};
|
|
472
484
|
|
|
473
485
|
|
|
474
486
|
/**
|
|
475
|
-
* optional string
|
|
487
|
+
* optional string description = 4;
|
|
476
488
|
* @return {string}
|
|
477
489
|
*/
|
|
478
|
-
proto.PlantPOrganization.prototype.
|
|
490
|
+
proto.PlantPOrganization.prototype.getDescription = function() {
|
|
479
491
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
480
492
|
};
|
|
481
493
|
|
|
@@ -484,11 +496,29 @@ proto.PlantPOrganization.prototype.getCompaniesReferencesId = function() {
|
|
|
484
496
|
* @param {string} value
|
|
485
497
|
* @return {!proto.PlantPOrganization} returns this
|
|
486
498
|
*/
|
|
487
|
-
proto.PlantPOrganization.prototype.
|
|
499
|
+
proto.PlantPOrganization.prototype.setDescription = function(value) {
|
|
488
500
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
489
501
|
};
|
|
490
502
|
|
|
491
503
|
|
|
504
|
+
/**
|
|
505
|
+
* optional string companies_references_id = 5;
|
|
506
|
+
* @return {string}
|
|
507
|
+
*/
|
|
508
|
+
proto.PlantPOrganization.prototype.getCompaniesReferencesId = function() {
|
|
509
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* @param {string} value
|
|
515
|
+
* @return {!proto.PlantPOrganization} returns this
|
|
516
|
+
*/
|
|
517
|
+
proto.PlantPOrganization.prototype.setCompaniesReferencesId = function(value) {
|
|
518
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
|
|
492
522
|
|
|
493
523
|
|
|
494
524
|
|
|
@@ -523,9 +553,10 @@ proto.BasePlantPOrganization.toObject = function(includeInstance, msg) {
|
|
|
523
553
|
var f, obj = {
|
|
524
554
|
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
525
555
|
plant: (f = msg.getPlant()) && proto.POWorkLocation.toObject(includeInstance, f),
|
|
526
|
-
|
|
556
|
+
code: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
557
|
+
purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.toObject(includeInstance, f),
|
|
527
558
|
company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
|
|
528
|
-
companiesReferencesId: jspb.Message.getFieldWithDefault(msg,
|
|
559
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
529
560
|
};
|
|
530
561
|
|
|
531
562
|
if (includeInstance) {
|
|
@@ -572,16 +603,20 @@ proto.BasePlantPOrganization.deserializeBinaryFromReader = function(msg, reader)
|
|
|
572
603
|
msg.setPlant(value);
|
|
573
604
|
break;
|
|
574
605
|
case 3:
|
|
575
|
-
var value =
|
|
576
|
-
|
|
577
|
-
msg.setPurchasingOrganizations(value);
|
|
606
|
+
var value = /** @type {string} */ (reader.readString());
|
|
607
|
+
msg.setCode(value);
|
|
578
608
|
break;
|
|
579
609
|
case 4:
|
|
610
|
+
var value = new prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization;
|
|
611
|
+
reader.readMessage(value,prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.deserializeBinaryFromReader);
|
|
612
|
+
msg.setPurchasingOrganizations(value);
|
|
613
|
+
break;
|
|
614
|
+
case 5:
|
|
580
615
|
var value = new prisca_v1_core_company_company_pb.Company;
|
|
581
616
|
reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
|
|
582
617
|
msg.setCompany(value);
|
|
583
618
|
break;
|
|
584
|
-
case
|
|
619
|
+
case 6:
|
|
585
620
|
var value = /** @type {string} */ (reader.readString());
|
|
586
621
|
msg.setCompaniesReferencesId(value);
|
|
587
622
|
break;
|
|
@@ -629,18 +664,25 @@ proto.BasePlantPOrganization.serializeBinaryToWriter = function(message, writer)
|
|
|
629
664
|
proto.POWorkLocation.serializeBinaryToWriter
|
|
630
665
|
);
|
|
631
666
|
}
|
|
667
|
+
f = message.getCode();
|
|
668
|
+
if (f.length > 0) {
|
|
669
|
+
writer.writeString(
|
|
670
|
+
3,
|
|
671
|
+
f
|
|
672
|
+
);
|
|
673
|
+
}
|
|
632
674
|
f = message.getPurchasingOrganizations();
|
|
633
675
|
if (f != null) {
|
|
634
676
|
writer.writeMessage(
|
|
635
|
-
|
|
677
|
+
4,
|
|
636
678
|
f,
|
|
637
|
-
prisca_v1_purchasing_organization_purchasing_organization_pb.
|
|
679
|
+
prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.serializeBinaryToWriter
|
|
638
680
|
);
|
|
639
681
|
}
|
|
640
682
|
f = message.getCompany();
|
|
641
683
|
if (f != null) {
|
|
642
684
|
writer.writeMessage(
|
|
643
|
-
|
|
685
|
+
5,
|
|
644
686
|
f,
|
|
645
687
|
prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
|
|
646
688
|
);
|
|
@@ -648,7 +690,7 @@ proto.BasePlantPOrganization.serializeBinaryToWriter = function(message, writer)
|
|
|
648
690
|
f = message.getCompaniesReferencesId();
|
|
649
691
|
if (f.length > 0) {
|
|
650
692
|
writer.writeString(
|
|
651
|
-
|
|
693
|
+
6,
|
|
652
694
|
f
|
|
653
695
|
);
|
|
654
696
|
}
|
|
@@ -711,21 +753,39 @@ proto.BasePlantPOrganization.prototype.hasPlant = function() {
|
|
|
711
753
|
|
|
712
754
|
|
|
713
755
|
/**
|
|
714
|
-
* optional
|
|
715
|
-
* @return {
|
|
756
|
+
* optional string code = 3;
|
|
757
|
+
* @return {string}
|
|
758
|
+
*/
|
|
759
|
+
proto.BasePlantPOrganization.prototype.getCode = function() {
|
|
760
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
761
|
+
};
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* @param {string} value
|
|
766
|
+
* @return {!proto.BasePlantPOrganization} returns this
|
|
767
|
+
*/
|
|
768
|
+
proto.BasePlantPOrganization.prototype.setCode = function(value) {
|
|
769
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* optional PurchasingOrganization purchasing_organizations = 4;
|
|
775
|
+
* @return {?proto.PurchasingOrganization}
|
|
716
776
|
*/
|
|
717
777
|
proto.BasePlantPOrganization.prototype.getPurchasingOrganizations = function() {
|
|
718
|
-
return /** @type{?proto.
|
|
719
|
-
jspb.Message.getWrapperField(this, prisca_v1_purchasing_organization_purchasing_organization_pb.
|
|
778
|
+
return /** @type{?proto.PurchasingOrganization} */ (
|
|
779
|
+
jspb.Message.getWrapperField(this, prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization, 4));
|
|
720
780
|
};
|
|
721
781
|
|
|
722
782
|
|
|
723
783
|
/**
|
|
724
|
-
* @param {?proto.
|
|
784
|
+
* @param {?proto.PurchasingOrganization|undefined} value
|
|
725
785
|
* @return {!proto.BasePlantPOrganization} returns this
|
|
726
786
|
*/
|
|
727
787
|
proto.BasePlantPOrganization.prototype.setPurchasingOrganizations = function(value) {
|
|
728
|
-
return jspb.Message.setWrapperField(this,
|
|
788
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
729
789
|
};
|
|
730
790
|
|
|
731
791
|
|
|
@@ -743,17 +803,17 @@ proto.BasePlantPOrganization.prototype.clearPurchasingOrganizations = function()
|
|
|
743
803
|
* @return {boolean}
|
|
744
804
|
*/
|
|
745
805
|
proto.BasePlantPOrganization.prototype.hasPurchasingOrganizations = function() {
|
|
746
|
-
return jspb.Message.getField(this,
|
|
806
|
+
return jspb.Message.getField(this, 4) != null;
|
|
747
807
|
};
|
|
748
808
|
|
|
749
809
|
|
|
750
810
|
/**
|
|
751
|
-
* optional Company company =
|
|
811
|
+
* optional Company company = 5;
|
|
752
812
|
* @return {?proto.Company}
|
|
753
813
|
*/
|
|
754
814
|
proto.BasePlantPOrganization.prototype.getCompany = function() {
|
|
755
815
|
return /** @type{?proto.Company} */ (
|
|
756
|
-
jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company,
|
|
816
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 5));
|
|
757
817
|
};
|
|
758
818
|
|
|
759
819
|
|
|
@@ -762,7 +822,7 @@ proto.BasePlantPOrganization.prototype.getCompany = function() {
|
|
|
762
822
|
* @return {!proto.BasePlantPOrganization} returns this
|
|
763
823
|
*/
|
|
764
824
|
proto.BasePlantPOrganization.prototype.setCompany = function(value) {
|
|
765
|
-
return jspb.Message.setWrapperField(this,
|
|
825
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
766
826
|
};
|
|
767
827
|
|
|
768
828
|
|
|
@@ -780,16 +840,16 @@ proto.BasePlantPOrganization.prototype.clearCompany = function() {
|
|
|
780
840
|
* @return {boolean}
|
|
781
841
|
*/
|
|
782
842
|
proto.BasePlantPOrganization.prototype.hasCompany = function() {
|
|
783
|
-
return jspb.Message.getField(this,
|
|
843
|
+
return jspb.Message.getField(this, 5) != null;
|
|
784
844
|
};
|
|
785
845
|
|
|
786
846
|
|
|
787
847
|
/**
|
|
788
|
-
* optional string companies_references_id =
|
|
848
|
+
* optional string companies_references_id = 6;
|
|
789
849
|
* @return {string}
|
|
790
850
|
*/
|
|
791
851
|
proto.BasePlantPOrganization.prototype.getCompaniesReferencesId = function() {
|
|
792
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
852
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
793
853
|
};
|
|
794
854
|
|
|
795
855
|
|
|
@@ -798,7 +858,7 @@ proto.BasePlantPOrganization.prototype.getCompaniesReferencesId = function() {
|
|
|
798
858
|
* @return {!proto.BasePlantPOrganization} returns this
|
|
799
859
|
*/
|
|
800
860
|
proto.BasePlantPOrganization.prototype.setCompaniesReferencesId = function(value) {
|
|
801
|
-
return jspb.Message.setProto3StringField(this,
|
|
861
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
802
862
|
};
|
|
803
863
|
|
|
804
864
|
|