@aldiokta/protocgen 1.0.28 → 1.0.30

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldiokta/protocgen",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -355,12 +355,16 @@ alias: jspb.Message.getFieldWithDefault(msg, 3, ""),
355
355
  costCenterCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
356
356
  parentReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
357
357
  parent: (f = msg.getParent()) && proto.BaseJobPositionParent.toObject(includeInstance, f),
358
+ organizationReferencesId: jspb.Message.getFieldWithDefault(msg, 7, ""),
358
359
  organizations: (f = msg.getOrganizations()) && prisca_v1_core_organization_organization_pb.BaseOrganization.toObject(includeInstance, f),
360
+ workLocationReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
359
361
  workLocations: (f = msg.getWorkLocations()) && prisca_v1_core_work_location_work_location_pb.WorkLocation.toObject(includeInstance, f),
360
- description: jspb.Message.getFieldWithDefault(msg, 9, ""),
362
+ description: jspb.Message.getFieldWithDefault(msg, 11, ""),
363
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 12, ""),
361
364
  companies: (f = msg.getCompanies()) && prisca_v1_core_company_company_pb.BaseCompanyParent.toObject(includeInstance, f),
365
+ usersRoleReferencesId: jspb.Message.getFieldWithDefault(msg, 14, ""),
362
366
  role: (f = msg.getRole()) && prisca_v1_core_users_role_users_role_pb.BaseUsersRole.toObject(includeInstance, f),
363
- referencesId: jspb.Message.getFieldWithDefault(msg, 12, "")
367
+ referencesId: jspb.Message.getFieldWithDefault(msg, 16, "")
364
368
  };
365
369
 
366
370
  if (includeInstance) {
@@ -423,30 +427,46 @@ proto.BaseJobPosition.deserializeBinaryFromReader = function(msg, reader) {
423
427
  msg.setParent(value);
424
428
  break;
425
429
  case 7:
430
+ var value = /** @type {string} */ (reader.readString());
431
+ msg.setOrganizationReferencesId(value);
432
+ break;
433
+ case 8:
426
434
  var value = new prisca_v1_core_organization_organization_pb.BaseOrganization;
427
435
  reader.readMessage(value,prisca_v1_core_organization_organization_pb.BaseOrganization.deserializeBinaryFromReader);
428
436
  msg.setOrganizations(value);
429
437
  break;
430
- case 8:
438
+ case 9:
439
+ var value = /** @type {string} */ (reader.readString());
440
+ msg.setWorkLocationReferencesId(value);
441
+ break;
442
+ case 10:
431
443
  var value = new prisca_v1_core_work_location_work_location_pb.WorkLocation;
432
444
  reader.readMessage(value,prisca_v1_core_work_location_work_location_pb.WorkLocation.deserializeBinaryFromReader);
433
445
  msg.setWorkLocations(value);
434
446
  break;
435
- case 9:
447
+ case 11:
436
448
  var value = /** @type {string} */ (reader.readString());
437
449
  msg.setDescription(value);
438
450
  break;
439
- case 10:
451
+ case 12:
452
+ var value = /** @type {string} */ (reader.readString());
453
+ msg.setCompaniesReferencesId(value);
454
+ break;
455
+ case 13:
440
456
  var value = new prisca_v1_core_company_company_pb.BaseCompanyParent;
441
457
  reader.readMessage(value,prisca_v1_core_company_company_pb.BaseCompanyParent.deserializeBinaryFromReader);
442
458
  msg.setCompanies(value);
443
459
  break;
444
- case 11:
460
+ case 14:
461
+ var value = /** @type {string} */ (reader.readString());
462
+ msg.setUsersRoleReferencesId(value);
463
+ break;
464
+ case 15:
445
465
  var value = new prisca_v1_core_users_role_users_role_pb.BaseUsersRole;
446
466
  reader.readMessage(value,prisca_v1_core_users_role_users_role_pb.BaseUsersRole.deserializeBinaryFromReader);
447
467
  msg.setRole(value);
448
468
  break;
449
- case 12:
469
+ case 16:
450
470
  var value = /** @type {string} */ (reader.readString());
451
471
  msg.setReferencesId(value);
452
472
  break;
@@ -522,18 +542,32 @@ proto.BaseJobPosition.serializeBinaryToWriter = function(message, writer) {
522
542
  proto.BaseJobPositionParent.serializeBinaryToWriter
523
543
  );
524
544
  }
545
+ f = message.getOrganizationReferencesId();
546
+ if (f.length > 0) {
547
+ writer.writeString(
548
+ 7,
549
+ f
550
+ );
551
+ }
525
552
  f = message.getOrganizations();
526
553
  if (f != null) {
527
554
  writer.writeMessage(
528
- 7,
555
+ 8,
529
556
  f,
530
557
  prisca_v1_core_organization_organization_pb.BaseOrganization.serializeBinaryToWriter
531
558
  );
532
559
  }
560
+ f = message.getWorkLocationReferencesId();
561
+ if (f.length > 0) {
562
+ writer.writeString(
563
+ 9,
564
+ f
565
+ );
566
+ }
533
567
  f = message.getWorkLocations();
534
568
  if (f != null) {
535
569
  writer.writeMessage(
536
- 8,
570
+ 10,
537
571
  f,
538
572
  prisca_v1_core_work_location_work_location_pb.WorkLocation.serializeBinaryToWriter
539
573
  );
@@ -541,22 +575,36 @@ proto.BaseJobPosition.serializeBinaryToWriter = function(message, writer) {
541
575
  f = message.getDescription();
542
576
  if (f.length > 0) {
543
577
  writer.writeString(
544
- 9,
578
+ 11,
579
+ f
580
+ );
581
+ }
582
+ f = message.getCompaniesReferencesId();
583
+ if (f.length > 0) {
584
+ writer.writeString(
585
+ 12,
545
586
  f
546
587
  );
547
588
  }
548
589
  f = message.getCompanies();
549
590
  if (f != null) {
550
591
  writer.writeMessage(
551
- 10,
592
+ 13,
552
593
  f,
553
594
  prisca_v1_core_company_company_pb.BaseCompanyParent.serializeBinaryToWriter
554
595
  );
555
596
  }
597
+ f = message.getUsersRoleReferencesId();
598
+ if (f.length > 0) {
599
+ writer.writeString(
600
+ 14,
601
+ f
602
+ );
603
+ }
556
604
  f = message.getRole();
557
605
  if (f != null) {
558
606
  writer.writeMessage(
559
- 11,
607
+ 15,
560
608
  f,
561
609
  prisca_v1_core_users_role_users_role_pb.BaseUsersRole.serializeBinaryToWriter
562
610
  );
@@ -564,7 +612,7 @@ proto.BaseJobPosition.serializeBinaryToWriter = function(message, writer) {
564
612
  f = message.getReferencesId();
565
613
  if (f.length > 0) {
566
614
  writer.writeString(
567
- 12,
615
+ 16,
568
616
  f
569
617
  );
570
618
  }
@@ -699,12 +747,30 @@ proto.BaseJobPosition.prototype.hasParent = function() {
699
747
 
700
748
 
701
749
  /**
702
- * optional BaseOrganization organizations = 7;
750
+ * optional string organization_references_id = 7;
751
+ * @return {string}
752
+ */
753
+ proto.BaseJobPosition.prototype.getOrganizationReferencesId = function() {
754
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
755
+ };
756
+
757
+
758
+ /**
759
+ * @param {string} value
760
+ * @return {!proto.BaseJobPosition} returns this
761
+ */
762
+ proto.BaseJobPosition.prototype.setOrganizationReferencesId = function(value) {
763
+ return jspb.Message.setProto3StringField(this, 7, value);
764
+ };
765
+
766
+
767
+ /**
768
+ * optional BaseOrganization organizations = 8;
703
769
  * @return {?proto.BaseOrganization}
704
770
  */
705
771
  proto.BaseJobPosition.prototype.getOrganizations = function() {
706
772
  return /** @type{?proto.BaseOrganization} */ (
707
- jspb.Message.getWrapperField(this, prisca_v1_core_organization_organization_pb.BaseOrganization, 7));
773
+ jspb.Message.getWrapperField(this, prisca_v1_core_organization_organization_pb.BaseOrganization, 8));
708
774
  };
709
775
 
710
776
 
@@ -713,7 +779,7 @@ proto.BaseJobPosition.prototype.getOrganizations = function() {
713
779
  * @return {!proto.BaseJobPosition} returns this
714
780
  */
715
781
  proto.BaseJobPosition.prototype.setOrganizations = function(value) {
716
- return jspb.Message.setWrapperField(this, 7, value);
782
+ return jspb.Message.setWrapperField(this, 8, value);
717
783
  };
718
784
 
719
785
 
@@ -731,17 +797,35 @@ proto.BaseJobPosition.prototype.clearOrganizations = function() {
731
797
  * @return {boolean}
732
798
  */
733
799
  proto.BaseJobPosition.prototype.hasOrganizations = function() {
734
- return jspb.Message.getField(this, 7) != null;
800
+ return jspb.Message.getField(this, 8) != null;
735
801
  };
736
802
 
737
803
 
738
804
  /**
739
- * optional WorkLocation work_locations = 8;
805
+ * optional string work_location_references_id = 9;
806
+ * @return {string}
807
+ */
808
+ proto.BaseJobPosition.prototype.getWorkLocationReferencesId = function() {
809
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
810
+ };
811
+
812
+
813
+ /**
814
+ * @param {string} value
815
+ * @return {!proto.BaseJobPosition} returns this
816
+ */
817
+ proto.BaseJobPosition.prototype.setWorkLocationReferencesId = function(value) {
818
+ return jspb.Message.setProto3StringField(this, 9, value);
819
+ };
820
+
821
+
822
+ /**
823
+ * optional WorkLocation work_locations = 10;
740
824
  * @return {?proto.WorkLocation}
741
825
  */
742
826
  proto.BaseJobPosition.prototype.getWorkLocations = function() {
743
827
  return /** @type{?proto.WorkLocation} */ (
744
- jspb.Message.getWrapperField(this, prisca_v1_core_work_location_work_location_pb.WorkLocation, 8));
828
+ jspb.Message.getWrapperField(this, prisca_v1_core_work_location_work_location_pb.WorkLocation, 10));
745
829
  };
746
830
 
747
831
 
@@ -750,7 +834,7 @@ proto.BaseJobPosition.prototype.getWorkLocations = function() {
750
834
  * @return {!proto.BaseJobPosition} returns this
751
835
  */
752
836
  proto.BaseJobPosition.prototype.setWorkLocations = function(value) {
753
- return jspb.Message.setWrapperField(this, 8, value);
837
+ return jspb.Message.setWrapperField(this, 10, value);
754
838
  };
755
839
 
756
840
 
@@ -768,16 +852,16 @@ proto.BaseJobPosition.prototype.clearWorkLocations = function() {
768
852
  * @return {boolean}
769
853
  */
770
854
  proto.BaseJobPosition.prototype.hasWorkLocations = function() {
771
- return jspb.Message.getField(this, 8) != null;
855
+ return jspb.Message.getField(this, 10) != null;
772
856
  };
773
857
 
774
858
 
775
859
  /**
776
- * optional string description = 9;
860
+ * optional string description = 11;
777
861
  * @return {string}
778
862
  */
779
863
  proto.BaseJobPosition.prototype.getDescription = function() {
780
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
864
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
781
865
  };
782
866
 
783
867
 
@@ -786,17 +870,35 @@ proto.BaseJobPosition.prototype.getDescription = function() {
786
870
  * @return {!proto.BaseJobPosition} returns this
787
871
  */
788
872
  proto.BaseJobPosition.prototype.setDescription = function(value) {
789
- return jspb.Message.setProto3StringField(this, 9, value);
873
+ return jspb.Message.setProto3StringField(this, 11, value);
790
874
  };
791
875
 
792
876
 
793
877
  /**
794
- * optional BaseCompanyParent companies = 10;
878
+ * optional string companies_references_id = 12;
879
+ * @return {string}
880
+ */
881
+ proto.BaseJobPosition.prototype.getCompaniesReferencesId = function() {
882
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
883
+ };
884
+
885
+
886
+ /**
887
+ * @param {string} value
888
+ * @return {!proto.BaseJobPosition} returns this
889
+ */
890
+ proto.BaseJobPosition.prototype.setCompaniesReferencesId = function(value) {
891
+ return jspb.Message.setProto3StringField(this, 12, value);
892
+ };
893
+
894
+
895
+ /**
896
+ * optional BaseCompanyParent companies = 13;
795
897
  * @return {?proto.BaseCompanyParent}
796
898
  */
797
899
  proto.BaseJobPosition.prototype.getCompanies = function() {
798
900
  return /** @type{?proto.BaseCompanyParent} */ (
799
- jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.BaseCompanyParent, 10));
901
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.BaseCompanyParent, 13));
800
902
  };
801
903
 
802
904
 
@@ -805,7 +907,7 @@ proto.BaseJobPosition.prototype.getCompanies = function() {
805
907
  * @return {!proto.BaseJobPosition} returns this
806
908
  */
807
909
  proto.BaseJobPosition.prototype.setCompanies = function(value) {
808
- return jspb.Message.setWrapperField(this, 10, value);
910
+ return jspb.Message.setWrapperField(this, 13, value);
809
911
  };
810
912
 
811
913
 
@@ -823,17 +925,35 @@ proto.BaseJobPosition.prototype.clearCompanies = function() {
823
925
  * @return {boolean}
824
926
  */
825
927
  proto.BaseJobPosition.prototype.hasCompanies = function() {
826
- return jspb.Message.getField(this, 10) != null;
928
+ return jspb.Message.getField(this, 13) != null;
827
929
  };
828
930
 
829
931
 
830
932
  /**
831
- * optional BaseUsersRole role = 11;
933
+ * optional string users_role_references_id = 14;
934
+ * @return {string}
935
+ */
936
+ proto.BaseJobPosition.prototype.getUsersRoleReferencesId = function() {
937
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
938
+ };
939
+
940
+
941
+ /**
942
+ * @param {string} value
943
+ * @return {!proto.BaseJobPosition} returns this
944
+ */
945
+ proto.BaseJobPosition.prototype.setUsersRoleReferencesId = function(value) {
946
+ return jspb.Message.setProto3StringField(this, 14, value);
947
+ };
948
+
949
+
950
+ /**
951
+ * optional BaseUsersRole role = 15;
832
952
  * @return {?proto.BaseUsersRole}
833
953
  */
834
954
  proto.BaseJobPosition.prototype.getRole = function() {
835
955
  return /** @type{?proto.BaseUsersRole} */ (
836
- jspb.Message.getWrapperField(this, prisca_v1_core_users_role_users_role_pb.BaseUsersRole, 11));
956
+ jspb.Message.getWrapperField(this, prisca_v1_core_users_role_users_role_pb.BaseUsersRole, 15));
837
957
  };
838
958
 
839
959
 
@@ -842,7 +962,7 @@ proto.BaseJobPosition.prototype.getRole = function() {
842
962
  * @return {!proto.BaseJobPosition} returns this
843
963
  */
844
964
  proto.BaseJobPosition.prototype.setRole = function(value) {
845
- return jspb.Message.setWrapperField(this, 11, value);
965
+ return jspb.Message.setWrapperField(this, 15, value);
846
966
  };
847
967
 
848
968
 
@@ -860,16 +980,16 @@ proto.BaseJobPosition.prototype.clearRole = function() {
860
980
  * @return {boolean}
861
981
  */
862
982
  proto.BaseJobPosition.prototype.hasRole = function() {
863
- return jspb.Message.getField(this, 11) != null;
983
+ return jspb.Message.getField(this, 15) != null;
864
984
  };
865
985
 
866
986
 
867
987
  /**
868
- * optional string references_id = 12;
988
+ * optional string references_id = 16;
869
989
  * @return {string}
870
990
  */
871
991
  proto.BaseJobPosition.prototype.getReferencesId = function() {
872
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
992
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
873
993
  };
874
994
 
875
995
 
@@ -878,7 +998,7 @@ proto.BaseJobPosition.prototype.getReferencesId = function() {
878
998
  * @return {!proto.BaseJobPosition} returns this
879
999
  */
880
1000
  proto.BaseJobPosition.prototype.setReferencesId = function(value) {
881
- return jspb.Message.setProto3StringField(this, 12, value);
1001
+ return jspb.Message.setProto3StringField(this, 16, value);
882
1002
  };
883
1003
 
884
1004
 
@@ -8513,7 +8513,7 @@ proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.prototype.toO
8513
8513
  */
8514
8514
  proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.toObject = function(includeInstance, msg) {
8515
8515
  var f, obj = {
8516
- transactionFields: (f = msg.getTransactionFields()) && proto.prisca.v1.core.transaction_builder.TransactionBuilderFields.toObject(includeInstance, f),
8516
+ transactionField: (f = msg.getTransactionField()) && proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsBase.toObject(includeInstance, f),
8517
8517
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
8518
8518
  };
8519
8519
 
@@ -8552,9 +8552,9 @@ proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.deserializeBi
8552
8552
  var field = reader.getFieldNumber();
8553
8553
  switch (field) {
8554
8554
  case 1:
8555
- var value = new proto.prisca.v1.core.transaction_builder.TransactionBuilderFields;
8556
- reader.readMessage(value,proto.prisca.v1.core.transaction_builder.TransactionBuilderFields.deserializeBinaryFromReader);
8557
- msg.setTransactionFields(value);
8555
+ var value = new proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsBase;
8556
+ reader.readMessage(value,proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsBase.deserializeBinaryFromReader);
8557
+ msg.setTransactionField(value);
8558
8558
  break;
8559
8559
  case 2:
8560
8560
  var value = new prisca_v1_global_meta_meta_pb.Meta;
@@ -8590,12 +8590,12 @@ proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.prototype.ser
8590
8590
  */
8591
8591
  proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.serializeBinaryToWriter = function(message, writer) {
8592
8592
  var f = undefined;
8593
- f = message.getTransactionFields();
8593
+ f = message.getTransactionField();
8594
8594
  if (f != null) {
8595
8595
  writer.writeMessage(
8596
8596
  1,
8597
8597
  f,
8598
- proto.prisca.v1.core.transaction_builder.TransactionBuilderFields.serializeBinaryToWriter
8598
+ proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsBase.serializeBinaryToWriter
8599
8599
  );
8600
8600
  }
8601
8601
  f = message.getMeta();
@@ -8610,20 +8610,20 @@ proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.serializeBina
8610
8610
 
8611
8611
 
8612
8612
  /**
8613
- * optional TransactionBuilderFields transaction_fields = 1;
8614
- * @return {?proto.prisca.v1.core.transaction_builder.TransactionBuilderFields}
8613
+ * optional TransactionBuilderFieldsBase transaction_field = 1;
8614
+ * @return {?proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsBase}
8615
8615
  */
8616
- proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.prototype.getTransactionFields = function() {
8617
- return /** @type{?proto.prisca.v1.core.transaction_builder.TransactionBuilderFields} */ (
8618
- jspb.Message.getWrapperField(this, proto.prisca.v1.core.transaction_builder.TransactionBuilderFields, 1));
8616
+ proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.prototype.getTransactionField = function() {
8617
+ return /** @type{?proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsBase} */ (
8618
+ jspb.Message.getWrapperField(this, proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsBase, 1));
8619
8619
  };
8620
8620
 
8621
8621
 
8622
8622
  /**
8623
- * @param {?proto.prisca.v1.core.transaction_builder.TransactionBuilderFields|undefined} value
8623
+ * @param {?proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsBase|undefined} value
8624
8624
  * @return {!proto.prisca.v1.core.transaction_builder.ResponseTransactionFields} returns this
8625
8625
  */
8626
- proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.prototype.setTransactionFields = function(value) {
8626
+ proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.prototype.setTransactionField = function(value) {
8627
8627
  return jspb.Message.setWrapperField(this, 1, value);
8628
8628
  };
8629
8629
 
@@ -8632,8 +8632,8 @@ proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.prototype.set
8632
8632
  * Clears the message field making it undefined.
8633
8633
  * @return {!proto.prisca.v1.core.transaction_builder.ResponseTransactionFields} returns this
8634
8634
  */
8635
- proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.prototype.clearTransactionFields = function() {
8636
- return this.setTransactionFields(undefined);
8635
+ proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.prototype.clearTransactionField = function() {
8636
+ return this.setTransactionField(undefined);
8637
8637
  };
8638
8638
 
8639
8639
 
@@ -8641,7 +8641,7 @@ proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.prototype.cle
8641
8641
  * Returns whether this field is set.
8642
8642
  * @return {boolean}
8643
8643
  */
8644
- proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.prototype.hasTransactionFields = function() {
8644
+ proto.prisca.v1.core.transaction_builder.ResponseTransactionFields.prototype.hasTransactionField = function() {
8645
8645
  return jspb.Message.getField(this, 1) != null;
8646
8646
  };
8647
8647