@aldiokta/protocgen 1.0.62 → 1.0.64

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.
@@ -175,4 +175,4 @@ var PurchasingGroupServiceService = exports.PurchasingGroupServiceService = {
175
175
  },
176
176
  };
177
177
 
178
- exports.PurchasingGroupServiceClient = grpc.makeGenericClientConstructor(PurchasingGroupServiceService);
178
+ exports.PurchasingGroupServiceClient = grpc.makeGenericClientConstructor(PurchasingGroupServiceService, 'PurchasingGroupService');
@@ -142,4 +142,4 @@ var PurchasingOrganizationServiceService = exports.PurchasingOrganizationService
142
142
  },
143
143
  };
144
144
 
145
- exports.PurchasingOrganizationServiceClient = grpc.makeGenericClientConstructor(PurchasingOrganizationServiceService);
145
+ exports.PurchasingOrganizationServiceClient = grpc.makeGenericClientConstructor(PurchasingOrganizationServiceService, 'PurchasingOrganizationService');
@@ -143,4 +143,4 @@ var AssignPOrganizationServiceService = exports.AssignPOrganizationServiceServic
143
143
  },
144
144
  };
145
145
 
146
- exports.AssignPOrganizationServiceClient = grpc.makeGenericClientConstructor(AssignPOrganizationServiceService);
146
+ exports.AssignPOrganizationServiceClient = grpc.makeGenericClientConstructor(AssignPOrganizationServiceService, 'AssignPOrganizationService');
@@ -5,7 +5,6 @@ var grpc = require('@grpc/grpc-js');
5
5
  var prisca_v1_purchasing_organization_plant_purchasing_organization_plant_pb = require('../../../prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js');
6
6
  var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
7
7
  var prisca_v1_purchasing_organization_purchasing_organization_pb = require('../../../prisca/v1/purchasing_organization/purchasing_organization_pb.js');
8
- var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
9
8
 
10
9
  function serialize_CreatePlantPOrganizationRequest(arg) {
11
10
  if (!(arg instanceof prisca_v1_purchasing_organization_plant_purchasing_organization_plant_pb.CreatePlantPOrganizationRequest)) {
@@ -143,4 +142,4 @@ var PlantPOrganizationServiceService = exports.PlantPOrganizationServiceService
143
142
  },
144
143
  };
145
144
 
146
- exports.PlantPOrganizationServiceClient = grpc.makeGenericClientConstructor(PlantPOrganizationServiceService);
145
+ exports.PlantPOrganizationServiceClient = grpc.makeGenericClientConstructor(PlantPOrganizationServiceService, 'PlantPOrganizationService');
@@ -25,8 +25,6 @@ var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta
25
25
  goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
26
  var prisca_v1_purchasing_organization_purchasing_organization_pb = require('../../../prisca/v1/purchasing_organization/purchasing_organization_pb.js');
27
27
  goog.object.extend(proto, prisca_v1_purchasing_organization_purchasing_organization_pb);
28
- var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
29
- goog.object.extend(proto, prisca_v1_core_company_company_pb);
30
28
  goog.exportSymbol('proto.BasePlantPOrganization', null, global);
31
29
  goog.exportSymbol('proto.CreatePlantPOrganizationRequest', null, global);
32
30
  goog.exportSymbol('proto.CreatePlantPOrganizationResponse', null, global);
@@ -304,8 +302,7 @@ proto.PlantPOrganization.toObject = function(includeInstance, msg) {
304
302
  purchasingOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
305
303
  plantReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
306
304
  code: jspb.Message.getFieldWithDefault(msg, 3, ""),
307
- description: jspb.Message.getFieldWithDefault(msg, 4, ""),
308
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 5, "")
305
+ description: jspb.Message.getFieldWithDefault(msg, 4, "")
309
306
  };
310
307
 
311
308
  if (includeInstance) {
@@ -358,10 +355,6 @@ proto.PlantPOrganization.deserializeBinaryFromReader = function(msg, reader) {
358
355
  var value = /** @type {string} */ (reader.readString());
359
356
  msg.setDescription(value);
360
357
  break;
361
- case 5:
362
- var value = /** @type {string} */ (reader.readString());
363
- msg.setCompaniesReferencesId(value);
364
- break;
365
358
  default:
366
359
  reader.skipField();
367
360
  break;
@@ -419,13 +412,6 @@ proto.PlantPOrganization.serializeBinaryToWriter = function(message, writer) {
419
412
  f
420
413
  );
421
414
  }
422
- f = message.getCompaniesReferencesId();
423
- if (f.length > 0) {
424
- writer.writeString(
425
- 5,
426
- f
427
- );
428
- }
429
415
  };
430
416
 
431
417
 
@@ -501,24 +487,6 @@ proto.PlantPOrganization.prototype.setDescription = function(value) {
501
487
  };
502
488
 
503
489
 
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
-
522
490
 
523
491
 
524
492
 
@@ -554,9 +522,9 @@ proto.BasePlantPOrganization.toObject = function(includeInstance, msg) {
554
522
  referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
555
523
  plant: (f = msg.getPlant()) && proto.POWorkLocation.toObject(includeInstance, f),
556
524
  code: jspb.Message.getFieldWithDefault(msg, 3, ""),
557
- purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.toObject(includeInstance, f),
558
- company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
559
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 6, "")
525
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
526
+ purchasingOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
527
+ purchasingOrganizations: (f = msg.getPurchasingOrganizations()) && prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.toObject(includeInstance, f)
560
528
  };
561
529
 
562
530
  if (includeInstance) {
@@ -607,18 +575,17 @@ proto.BasePlantPOrganization.deserializeBinaryFromReader = function(msg, reader)
607
575
  msg.setCode(value);
608
576
  break;
609
577
  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);
578
+ var value = /** @type {string} */ (reader.readString());
579
+ msg.setDescription(value);
613
580
  break;
614
581
  case 5:
615
- var value = new prisca_v1_core_company_company_pb.Company;
616
- reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
617
- msg.setCompany(value);
582
+ var value = /** @type {string} */ (reader.readString());
583
+ msg.setPurchasingOrganizationReferencesId(value);
618
584
  break;
619
585
  case 6:
620
- var value = /** @type {string} */ (reader.readString());
621
- msg.setCompaniesReferencesId(value);
586
+ var value = new prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization;
587
+ reader.readMessage(value,prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.deserializeBinaryFromReader);
588
+ msg.setPurchasingOrganizations(value);
622
589
  break;
623
590
  default:
624
591
  reader.skipField();
@@ -671,27 +638,26 @@ proto.BasePlantPOrganization.serializeBinaryToWriter = function(message, writer)
671
638
  f
672
639
  );
673
640
  }
674
- f = message.getPurchasingOrganizations();
675
- if (f != null) {
676
- writer.writeMessage(
641
+ f = message.getDescription();
642
+ if (f.length > 0) {
643
+ writer.writeString(
677
644
  4,
678
- f,
679
- prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.serializeBinaryToWriter
645
+ f
680
646
  );
681
647
  }
682
- f = message.getCompany();
683
- if (f != null) {
684
- writer.writeMessage(
648
+ f = message.getPurchasingOrganizationReferencesId();
649
+ if (f.length > 0) {
650
+ writer.writeString(
685
651
  5,
686
- f,
687
- prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
652
+ f
688
653
  );
689
654
  }
690
- f = message.getCompaniesReferencesId();
691
- if (f.length > 0) {
692
- writer.writeString(
655
+ f = message.getPurchasingOrganizations();
656
+ if (f != null) {
657
+ writer.writeMessage(
693
658
  6,
694
- f
659
+ f,
660
+ prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization.serializeBinaryToWriter
695
661
  );
696
662
  }
697
663
  };
@@ -771,58 +737,57 @@ proto.BasePlantPOrganization.prototype.setCode = function(value) {
771
737
 
772
738
 
773
739
  /**
774
- * optional PurchasingOrganization purchasing_organizations = 4;
775
- * @return {?proto.PurchasingOrganization}
740
+ * optional string description = 4;
741
+ * @return {string}
776
742
  */
777
- proto.BasePlantPOrganization.prototype.getPurchasingOrganizations = function() {
778
- return /** @type{?proto.PurchasingOrganization} */ (
779
- jspb.Message.getWrapperField(this, prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization, 4));
743
+ proto.BasePlantPOrganization.prototype.getDescription = function() {
744
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
780
745
  };
781
746
 
782
747
 
783
748
  /**
784
- * @param {?proto.PurchasingOrganization|undefined} value
749
+ * @param {string} value
785
750
  * @return {!proto.BasePlantPOrganization} returns this
786
- */
787
- proto.BasePlantPOrganization.prototype.setPurchasingOrganizations = function(value) {
788
- return jspb.Message.setWrapperField(this, 4, value);
751
+ */
752
+ proto.BasePlantPOrganization.prototype.setDescription = function(value) {
753
+ return jspb.Message.setProto3StringField(this, 4, value);
789
754
  };
790
755
 
791
756
 
792
757
  /**
793
- * Clears the message field making it undefined.
794
- * @return {!proto.BasePlantPOrganization} returns this
758
+ * optional string purchasing_organization_references_id = 5;
759
+ * @return {string}
795
760
  */
796
- proto.BasePlantPOrganization.prototype.clearPurchasingOrganizations = function() {
797
- return this.setPurchasingOrganizations(undefined);
761
+ proto.BasePlantPOrganization.prototype.getPurchasingOrganizationReferencesId = function() {
762
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
798
763
  };
799
764
 
800
765
 
801
766
  /**
802
- * Returns whether this field is set.
803
- * @return {boolean}
767
+ * @param {string} value
768
+ * @return {!proto.BasePlantPOrganization} returns this
804
769
  */
805
- proto.BasePlantPOrganization.prototype.hasPurchasingOrganizations = function() {
806
- return jspb.Message.getField(this, 4) != null;
770
+ proto.BasePlantPOrganization.prototype.setPurchasingOrganizationReferencesId = function(value) {
771
+ return jspb.Message.setProto3StringField(this, 5, value);
807
772
  };
808
773
 
809
774
 
810
775
  /**
811
- * optional Company company = 5;
812
- * @return {?proto.Company}
776
+ * optional PurchasingOrganization purchasing_organizations = 6;
777
+ * @return {?proto.PurchasingOrganization}
813
778
  */
814
- proto.BasePlantPOrganization.prototype.getCompany = function() {
815
- return /** @type{?proto.Company} */ (
816
- jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 5));
779
+ proto.BasePlantPOrganization.prototype.getPurchasingOrganizations = function() {
780
+ return /** @type{?proto.PurchasingOrganization} */ (
781
+ jspb.Message.getWrapperField(this, prisca_v1_purchasing_organization_purchasing_organization_pb.PurchasingOrganization, 6));
817
782
  };
818
783
 
819
784
 
820
785
  /**
821
- * @param {?proto.Company|undefined} value
786
+ * @param {?proto.PurchasingOrganization|undefined} value
822
787
  * @return {!proto.BasePlantPOrganization} returns this
823
788
  */
824
- proto.BasePlantPOrganization.prototype.setCompany = function(value) {
825
- return jspb.Message.setWrapperField(this, 5, value);
789
+ proto.BasePlantPOrganization.prototype.setPurchasingOrganizations = function(value) {
790
+ return jspb.Message.setWrapperField(this, 6, value);
826
791
  };
827
792
 
828
793
 
@@ -830,8 +795,8 @@ proto.BasePlantPOrganization.prototype.setCompany = function(value) {
830
795
  * Clears the message field making it undefined.
831
796
  * @return {!proto.BasePlantPOrganization} returns this
832
797
  */
833
- proto.BasePlantPOrganization.prototype.clearCompany = function() {
834
- return this.setCompany(undefined);
798
+ proto.BasePlantPOrganization.prototype.clearPurchasingOrganizations = function() {
799
+ return this.setPurchasingOrganizations(undefined);
835
800
  };
836
801
 
837
802
 
@@ -839,26 +804,8 @@ proto.BasePlantPOrganization.prototype.clearCompany = function() {
839
804
  * Returns whether this field is set.
840
805
  * @return {boolean}
841
806
  */
842
- proto.BasePlantPOrganization.prototype.hasCompany = function() {
843
- return jspb.Message.getField(this, 5) != null;
844
- };
845
-
846
-
847
- /**
848
- * optional string companies_references_id = 6;
849
- * @return {string}
850
- */
851
- proto.BasePlantPOrganization.prototype.getCompaniesReferencesId = function() {
852
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
853
- };
854
-
855
-
856
- /**
857
- * @param {string} value
858
- * @return {!proto.BasePlantPOrganization} returns this
859
- */
860
- proto.BasePlantPOrganization.prototype.setCompaniesReferencesId = function(value) {
861
- return jspb.Message.setProto3StringField(this, 6, value);
807
+ proto.BasePlantPOrganization.prototype.hasPurchasingOrganizations = function() {
808
+ return jspb.Message.getField(this, 6) != null;
862
809
  };
863
810
 
864
811