@aldiokta/protocgen 1.0.24 → 1.0.26
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 +71 -41
- package/prisca/v1/core/organization_level/organization_level_pb.js +9 -9
- package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
- package/prisca/v1/core/tax_code/tax_code_pb.js +2582 -0
- package/prisca/v1/core/workflow/workflow_pb.js +319 -211
package/package.json
CHANGED
|
@@ -353,13 +353,14 @@ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
353
353
|
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
354
354
|
alias: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
355
355
|
costCenterCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
356
|
+
parentReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
356
357
|
parent: (f = msg.getParent()) && proto.BaseJobPositionParent.toObject(includeInstance, f),
|
|
357
358
|
organizations: (f = msg.getOrganizations()) && prisca_v1_core_organization_organization_pb.BaseOrganization.toObject(includeInstance, f),
|
|
358
359
|
workLocations: (f = msg.getWorkLocations()) && prisca_v1_core_work_location_work_location_pb.WorkLocation.toObject(includeInstance, f),
|
|
359
|
-
description: jspb.Message.getFieldWithDefault(msg,
|
|
360
|
+
description: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
360
361
|
companies: (f = msg.getCompanies()) && prisca_v1_core_company_company_pb.BaseCompanyParent.toObject(includeInstance, f),
|
|
361
362
|
role: (f = msg.getRole()) && prisca_v1_core_users_role_users_role_pb.BaseUsersRole.toObject(includeInstance, f),
|
|
362
|
-
referencesId: jspb.Message.getFieldWithDefault(msg,
|
|
363
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 12, "")
|
|
363
364
|
};
|
|
364
365
|
|
|
365
366
|
if (includeInstance) {
|
|
@@ -413,35 +414,39 @@ proto.BaseJobPosition.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
413
414
|
msg.setCostCenterCode(value);
|
|
414
415
|
break;
|
|
415
416
|
case 5:
|
|
417
|
+
var value = /** @type {string} */ (reader.readString());
|
|
418
|
+
msg.setParentReferencesId(value);
|
|
419
|
+
break;
|
|
420
|
+
case 6:
|
|
416
421
|
var value = new proto.BaseJobPositionParent;
|
|
417
422
|
reader.readMessage(value,proto.BaseJobPositionParent.deserializeBinaryFromReader);
|
|
418
423
|
msg.setParent(value);
|
|
419
424
|
break;
|
|
420
|
-
case
|
|
425
|
+
case 7:
|
|
421
426
|
var value = new prisca_v1_core_organization_organization_pb.BaseOrganization;
|
|
422
427
|
reader.readMessage(value,prisca_v1_core_organization_organization_pb.BaseOrganization.deserializeBinaryFromReader);
|
|
423
428
|
msg.setOrganizations(value);
|
|
424
429
|
break;
|
|
425
|
-
case
|
|
430
|
+
case 8:
|
|
426
431
|
var value = new prisca_v1_core_work_location_work_location_pb.WorkLocation;
|
|
427
432
|
reader.readMessage(value,prisca_v1_core_work_location_work_location_pb.WorkLocation.deserializeBinaryFromReader);
|
|
428
433
|
msg.setWorkLocations(value);
|
|
429
434
|
break;
|
|
430
|
-
case
|
|
435
|
+
case 9:
|
|
431
436
|
var value = /** @type {string} */ (reader.readString());
|
|
432
437
|
msg.setDescription(value);
|
|
433
438
|
break;
|
|
434
|
-
case
|
|
439
|
+
case 10:
|
|
435
440
|
var value = new prisca_v1_core_company_company_pb.BaseCompanyParent;
|
|
436
441
|
reader.readMessage(value,prisca_v1_core_company_company_pb.BaseCompanyParent.deserializeBinaryFromReader);
|
|
437
442
|
msg.setCompanies(value);
|
|
438
443
|
break;
|
|
439
|
-
case
|
|
444
|
+
case 11:
|
|
440
445
|
var value = new prisca_v1_core_users_role_users_role_pb.BaseUsersRole;
|
|
441
446
|
reader.readMessage(value,prisca_v1_core_users_role_users_role_pb.BaseUsersRole.deserializeBinaryFromReader);
|
|
442
447
|
msg.setRole(value);
|
|
443
448
|
break;
|
|
444
|
-
case
|
|
449
|
+
case 12:
|
|
445
450
|
var value = /** @type {string} */ (reader.readString());
|
|
446
451
|
msg.setReferencesId(value);
|
|
447
452
|
break;
|
|
@@ -502,10 +507,17 @@ proto.BaseJobPosition.serializeBinaryToWriter = function(message, writer) {
|
|
|
502
507
|
f
|
|
503
508
|
);
|
|
504
509
|
}
|
|
510
|
+
f = message.getParentReferencesId();
|
|
511
|
+
if (f.length > 0) {
|
|
512
|
+
writer.writeString(
|
|
513
|
+
5,
|
|
514
|
+
f
|
|
515
|
+
);
|
|
516
|
+
}
|
|
505
517
|
f = message.getParent();
|
|
506
518
|
if (f != null) {
|
|
507
519
|
writer.writeMessage(
|
|
508
|
-
|
|
520
|
+
6,
|
|
509
521
|
f,
|
|
510
522
|
proto.BaseJobPositionParent.serializeBinaryToWriter
|
|
511
523
|
);
|
|
@@ -513,7 +525,7 @@ proto.BaseJobPosition.serializeBinaryToWriter = function(message, writer) {
|
|
|
513
525
|
f = message.getOrganizations();
|
|
514
526
|
if (f != null) {
|
|
515
527
|
writer.writeMessage(
|
|
516
|
-
|
|
528
|
+
7,
|
|
517
529
|
f,
|
|
518
530
|
prisca_v1_core_organization_organization_pb.BaseOrganization.serializeBinaryToWriter
|
|
519
531
|
);
|
|
@@ -521,7 +533,7 @@ proto.BaseJobPosition.serializeBinaryToWriter = function(message, writer) {
|
|
|
521
533
|
f = message.getWorkLocations();
|
|
522
534
|
if (f != null) {
|
|
523
535
|
writer.writeMessage(
|
|
524
|
-
|
|
536
|
+
8,
|
|
525
537
|
f,
|
|
526
538
|
prisca_v1_core_work_location_work_location_pb.WorkLocation.serializeBinaryToWriter
|
|
527
539
|
);
|
|
@@ -529,14 +541,14 @@ proto.BaseJobPosition.serializeBinaryToWriter = function(message, writer) {
|
|
|
529
541
|
f = message.getDescription();
|
|
530
542
|
if (f.length > 0) {
|
|
531
543
|
writer.writeString(
|
|
532
|
-
|
|
544
|
+
9,
|
|
533
545
|
f
|
|
534
546
|
);
|
|
535
547
|
}
|
|
536
548
|
f = message.getCompanies();
|
|
537
549
|
if (f != null) {
|
|
538
550
|
writer.writeMessage(
|
|
539
|
-
|
|
551
|
+
10,
|
|
540
552
|
f,
|
|
541
553
|
prisca_v1_core_company_company_pb.BaseCompanyParent.serializeBinaryToWriter
|
|
542
554
|
);
|
|
@@ -544,7 +556,7 @@ proto.BaseJobPosition.serializeBinaryToWriter = function(message, writer) {
|
|
|
544
556
|
f = message.getRole();
|
|
545
557
|
if (f != null) {
|
|
546
558
|
writer.writeMessage(
|
|
547
|
-
|
|
559
|
+
11,
|
|
548
560
|
f,
|
|
549
561
|
prisca_v1_core_users_role_users_role_pb.BaseUsersRole.serializeBinaryToWriter
|
|
550
562
|
);
|
|
@@ -552,7 +564,7 @@ proto.BaseJobPosition.serializeBinaryToWriter = function(message, writer) {
|
|
|
552
564
|
f = message.getReferencesId();
|
|
553
565
|
if (f.length > 0) {
|
|
554
566
|
writer.writeString(
|
|
555
|
-
|
|
567
|
+
12,
|
|
556
568
|
f
|
|
557
569
|
);
|
|
558
570
|
}
|
|
@@ -632,12 +644,30 @@ proto.BaseJobPosition.prototype.setCostCenterCode = function(value) {
|
|
|
632
644
|
|
|
633
645
|
|
|
634
646
|
/**
|
|
635
|
-
* optional
|
|
647
|
+
* optional string parent_references_id = 5;
|
|
648
|
+
* @return {string}
|
|
649
|
+
*/
|
|
650
|
+
proto.BaseJobPosition.prototype.getParentReferencesId = function() {
|
|
651
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* @param {string} value
|
|
657
|
+
* @return {!proto.BaseJobPosition} returns this
|
|
658
|
+
*/
|
|
659
|
+
proto.BaseJobPosition.prototype.setParentReferencesId = function(value) {
|
|
660
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* optional BaseJobPositionParent parent = 6;
|
|
636
666
|
* @return {?proto.BaseJobPositionParent}
|
|
637
667
|
*/
|
|
638
668
|
proto.BaseJobPosition.prototype.getParent = function() {
|
|
639
669
|
return /** @type{?proto.BaseJobPositionParent} */ (
|
|
640
|
-
jspb.Message.getWrapperField(this, proto.BaseJobPositionParent,
|
|
670
|
+
jspb.Message.getWrapperField(this, proto.BaseJobPositionParent, 6));
|
|
641
671
|
};
|
|
642
672
|
|
|
643
673
|
|
|
@@ -646,7 +676,7 @@ proto.BaseJobPosition.prototype.getParent = function() {
|
|
|
646
676
|
* @return {!proto.BaseJobPosition} returns this
|
|
647
677
|
*/
|
|
648
678
|
proto.BaseJobPosition.prototype.setParent = function(value) {
|
|
649
|
-
return jspb.Message.setWrapperField(this,
|
|
679
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
650
680
|
};
|
|
651
681
|
|
|
652
682
|
|
|
@@ -664,17 +694,17 @@ proto.BaseJobPosition.prototype.clearParent = function() {
|
|
|
664
694
|
* @return {boolean}
|
|
665
695
|
*/
|
|
666
696
|
proto.BaseJobPosition.prototype.hasParent = function() {
|
|
667
|
-
return jspb.Message.getField(this,
|
|
697
|
+
return jspb.Message.getField(this, 6) != null;
|
|
668
698
|
};
|
|
669
699
|
|
|
670
700
|
|
|
671
701
|
/**
|
|
672
|
-
* optional BaseOrganization organizations =
|
|
702
|
+
* optional BaseOrganization organizations = 7;
|
|
673
703
|
* @return {?proto.BaseOrganization}
|
|
674
704
|
*/
|
|
675
705
|
proto.BaseJobPosition.prototype.getOrganizations = function() {
|
|
676
706
|
return /** @type{?proto.BaseOrganization} */ (
|
|
677
|
-
jspb.Message.getWrapperField(this, prisca_v1_core_organization_organization_pb.BaseOrganization,
|
|
707
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_organization_organization_pb.BaseOrganization, 7));
|
|
678
708
|
};
|
|
679
709
|
|
|
680
710
|
|
|
@@ -683,7 +713,7 @@ proto.BaseJobPosition.prototype.getOrganizations = function() {
|
|
|
683
713
|
* @return {!proto.BaseJobPosition} returns this
|
|
684
714
|
*/
|
|
685
715
|
proto.BaseJobPosition.prototype.setOrganizations = function(value) {
|
|
686
|
-
return jspb.Message.setWrapperField(this,
|
|
716
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
687
717
|
};
|
|
688
718
|
|
|
689
719
|
|
|
@@ -701,17 +731,17 @@ proto.BaseJobPosition.prototype.clearOrganizations = function() {
|
|
|
701
731
|
* @return {boolean}
|
|
702
732
|
*/
|
|
703
733
|
proto.BaseJobPosition.prototype.hasOrganizations = function() {
|
|
704
|
-
return jspb.Message.getField(this,
|
|
734
|
+
return jspb.Message.getField(this, 7) != null;
|
|
705
735
|
};
|
|
706
736
|
|
|
707
737
|
|
|
708
738
|
/**
|
|
709
|
-
* optional WorkLocation work_locations =
|
|
739
|
+
* optional WorkLocation work_locations = 8;
|
|
710
740
|
* @return {?proto.WorkLocation}
|
|
711
741
|
*/
|
|
712
742
|
proto.BaseJobPosition.prototype.getWorkLocations = function() {
|
|
713
743
|
return /** @type{?proto.WorkLocation} */ (
|
|
714
|
-
jspb.Message.getWrapperField(this, prisca_v1_core_work_location_work_location_pb.WorkLocation,
|
|
744
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_work_location_work_location_pb.WorkLocation, 8));
|
|
715
745
|
};
|
|
716
746
|
|
|
717
747
|
|
|
@@ -720,7 +750,7 @@ proto.BaseJobPosition.prototype.getWorkLocations = function() {
|
|
|
720
750
|
* @return {!proto.BaseJobPosition} returns this
|
|
721
751
|
*/
|
|
722
752
|
proto.BaseJobPosition.prototype.setWorkLocations = function(value) {
|
|
723
|
-
return jspb.Message.setWrapperField(this,
|
|
753
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
724
754
|
};
|
|
725
755
|
|
|
726
756
|
|
|
@@ -738,16 +768,16 @@ proto.BaseJobPosition.prototype.clearWorkLocations = function() {
|
|
|
738
768
|
* @return {boolean}
|
|
739
769
|
*/
|
|
740
770
|
proto.BaseJobPosition.prototype.hasWorkLocations = function() {
|
|
741
|
-
return jspb.Message.getField(this,
|
|
771
|
+
return jspb.Message.getField(this, 8) != null;
|
|
742
772
|
};
|
|
743
773
|
|
|
744
774
|
|
|
745
775
|
/**
|
|
746
|
-
* optional string description =
|
|
776
|
+
* optional string description = 9;
|
|
747
777
|
* @return {string}
|
|
748
778
|
*/
|
|
749
779
|
proto.BaseJobPosition.prototype.getDescription = function() {
|
|
750
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
780
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
751
781
|
};
|
|
752
782
|
|
|
753
783
|
|
|
@@ -756,17 +786,17 @@ proto.BaseJobPosition.prototype.getDescription = function() {
|
|
|
756
786
|
* @return {!proto.BaseJobPosition} returns this
|
|
757
787
|
*/
|
|
758
788
|
proto.BaseJobPosition.prototype.setDescription = function(value) {
|
|
759
|
-
return jspb.Message.setProto3StringField(this,
|
|
789
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
760
790
|
};
|
|
761
791
|
|
|
762
792
|
|
|
763
793
|
/**
|
|
764
|
-
* optional BaseCompanyParent companies =
|
|
794
|
+
* optional BaseCompanyParent companies = 10;
|
|
765
795
|
* @return {?proto.BaseCompanyParent}
|
|
766
796
|
*/
|
|
767
797
|
proto.BaseJobPosition.prototype.getCompanies = function() {
|
|
768
798
|
return /** @type{?proto.BaseCompanyParent} */ (
|
|
769
|
-
jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.BaseCompanyParent,
|
|
799
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.BaseCompanyParent, 10));
|
|
770
800
|
};
|
|
771
801
|
|
|
772
802
|
|
|
@@ -775,7 +805,7 @@ proto.BaseJobPosition.prototype.getCompanies = function() {
|
|
|
775
805
|
* @return {!proto.BaseJobPosition} returns this
|
|
776
806
|
*/
|
|
777
807
|
proto.BaseJobPosition.prototype.setCompanies = function(value) {
|
|
778
|
-
return jspb.Message.setWrapperField(this,
|
|
808
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
779
809
|
};
|
|
780
810
|
|
|
781
811
|
|
|
@@ -793,17 +823,17 @@ proto.BaseJobPosition.prototype.clearCompanies = function() {
|
|
|
793
823
|
* @return {boolean}
|
|
794
824
|
*/
|
|
795
825
|
proto.BaseJobPosition.prototype.hasCompanies = function() {
|
|
796
|
-
return jspb.Message.getField(this,
|
|
826
|
+
return jspb.Message.getField(this, 10) != null;
|
|
797
827
|
};
|
|
798
828
|
|
|
799
829
|
|
|
800
830
|
/**
|
|
801
|
-
* optional BaseUsersRole role =
|
|
831
|
+
* optional BaseUsersRole role = 11;
|
|
802
832
|
* @return {?proto.BaseUsersRole}
|
|
803
833
|
*/
|
|
804
834
|
proto.BaseJobPosition.prototype.getRole = function() {
|
|
805
835
|
return /** @type{?proto.BaseUsersRole} */ (
|
|
806
|
-
jspb.Message.getWrapperField(this, prisca_v1_core_users_role_users_role_pb.BaseUsersRole,
|
|
836
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_users_role_users_role_pb.BaseUsersRole, 11));
|
|
807
837
|
};
|
|
808
838
|
|
|
809
839
|
|
|
@@ -812,7 +842,7 @@ proto.BaseJobPosition.prototype.getRole = function() {
|
|
|
812
842
|
* @return {!proto.BaseJobPosition} returns this
|
|
813
843
|
*/
|
|
814
844
|
proto.BaseJobPosition.prototype.setRole = function(value) {
|
|
815
|
-
return jspb.Message.setWrapperField(this,
|
|
845
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
816
846
|
};
|
|
817
847
|
|
|
818
848
|
|
|
@@ -830,16 +860,16 @@ proto.BaseJobPosition.prototype.clearRole = function() {
|
|
|
830
860
|
* @return {boolean}
|
|
831
861
|
*/
|
|
832
862
|
proto.BaseJobPosition.prototype.hasRole = function() {
|
|
833
|
-
return jspb.Message.getField(this,
|
|
863
|
+
return jspb.Message.getField(this, 11) != null;
|
|
834
864
|
};
|
|
835
865
|
|
|
836
866
|
|
|
837
867
|
/**
|
|
838
|
-
* optional string references_id =
|
|
868
|
+
* optional string references_id = 12;
|
|
839
869
|
* @return {string}
|
|
840
870
|
*/
|
|
841
871
|
proto.BaseJobPosition.prototype.getReferencesId = function() {
|
|
842
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
872
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
843
873
|
};
|
|
844
874
|
|
|
845
875
|
|
|
@@ -848,7 +878,7 @@ proto.BaseJobPosition.prototype.getReferencesId = function() {
|
|
|
848
878
|
* @return {!proto.BaseJobPosition} returns this
|
|
849
879
|
*/
|
|
850
880
|
proto.BaseJobPosition.prototype.setReferencesId = function(value) {
|
|
851
|
-
return jspb.Message.setProto3StringField(this,
|
|
881
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
852
882
|
};
|
|
853
883
|
|
|
854
884
|
|
|
@@ -799,7 +799,7 @@ proto.OrganizationLevelGetByIdResponse.prototype.toObject = function(opt_include
|
|
|
799
799
|
*/
|
|
800
800
|
proto.OrganizationLevelGetByIdResponse.toObject = function(includeInstance, msg) {
|
|
801
801
|
var f, obj = {
|
|
802
|
-
organizationLevel: (f = msg.getOrganizationLevel()) && proto.
|
|
802
|
+
organizationLevel: (f = msg.getOrganizationLevel()) && proto.BaseOrganizationLevel.toObject(includeInstance, f),
|
|
803
803
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
804
804
|
};
|
|
805
805
|
|
|
@@ -838,8 +838,8 @@ proto.OrganizationLevelGetByIdResponse.deserializeBinaryFromReader = function(ms
|
|
|
838
838
|
var field = reader.getFieldNumber();
|
|
839
839
|
switch (field) {
|
|
840
840
|
case 1:
|
|
841
|
-
var value = new proto.
|
|
842
|
-
reader.readMessage(value,proto.
|
|
841
|
+
var value = new proto.BaseOrganizationLevel;
|
|
842
|
+
reader.readMessage(value,proto.BaseOrganizationLevel.deserializeBinaryFromReader);
|
|
843
843
|
msg.setOrganizationLevel(value);
|
|
844
844
|
break;
|
|
845
845
|
case 2:
|
|
@@ -881,7 +881,7 @@ proto.OrganizationLevelGetByIdResponse.serializeBinaryToWriter = function(messag
|
|
|
881
881
|
writer.writeMessage(
|
|
882
882
|
1,
|
|
883
883
|
f,
|
|
884
|
-
proto.
|
|
884
|
+
proto.BaseOrganizationLevel.serializeBinaryToWriter
|
|
885
885
|
);
|
|
886
886
|
}
|
|
887
887
|
f = message.getMeta();
|
|
@@ -896,17 +896,17 @@ proto.OrganizationLevelGetByIdResponse.serializeBinaryToWriter = function(messag
|
|
|
896
896
|
|
|
897
897
|
|
|
898
898
|
/**
|
|
899
|
-
* optional
|
|
900
|
-
* @return {?proto.
|
|
899
|
+
* optional BaseOrganizationLevel organization_level = 1;
|
|
900
|
+
* @return {?proto.BaseOrganizationLevel}
|
|
901
901
|
*/
|
|
902
902
|
proto.OrganizationLevelGetByIdResponse.prototype.getOrganizationLevel = function() {
|
|
903
|
-
return /** @type{?proto.
|
|
904
|
-
jspb.Message.getWrapperField(this, proto.
|
|
903
|
+
return /** @type{?proto.BaseOrganizationLevel} */ (
|
|
904
|
+
jspb.Message.getWrapperField(this, proto.BaseOrganizationLevel, 1));
|
|
905
905
|
};
|
|
906
906
|
|
|
907
907
|
|
|
908
908
|
/**
|
|
909
|
-
* @param {?proto.
|
|
909
|
+
* @param {?proto.BaseOrganizationLevel|undefined} value
|
|
910
910
|
* @return {!proto.OrganizationLevelGetByIdResponse} returns this
|
|
911
911
|
*/
|
|
912
912
|
proto.OrganizationLevelGetByIdResponse.prototype.setOrganizationLevel = function(value) {
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var prisca_v1_core_tax_code_tax_code_pb = require('../../../../prisca/v1/core/tax_code/tax_code_pb.js');
|
|
6
|
+
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
|
+
|
|
8
|
+
function serialize_prisca_v1_core_tax_code_CreateTaxCodeRequest(arg) {
|
|
9
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.CreateTaxCodeRequest)) {
|
|
10
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.CreateTaxCodeRequest');
|
|
11
|
+
}
|
|
12
|
+
return Buffer.from(arg.serializeBinary());
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function deserialize_prisca_v1_core_tax_code_CreateTaxCodeRequest(buffer_arg) {
|
|
16
|
+
return prisca_v1_core_tax_code_tax_code_pb.CreateTaxCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function serialize_prisca_v1_core_tax_code_CreateTaxCodeResponse(arg) {
|
|
20
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.CreateTaxCodeResponse)) {
|
|
21
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.CreateTaxCodeResponse');
|
|
22
|
+
}
|
|
23
|
+
return Buffer.from(arg.serializeBinary());
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function deserialize_prisca_v1_core_tax_code_CreateTaxCodeResponse(buffer_arg) {
|
|
27
|
+
return prisca_v1_core_tax_code_tax_code_pb.CreateTaxCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function serialize_prisca_v1_core_tax_code_DeleteTaxCodeRequest(arg) {
|
|
31
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.DeleteTaxCodeRequest)) {
|
|
32
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.DeleteTaxCodeRequest');
|
|
33
|
+
}
|
|
34
|
+
return Buffer.from(arg.serializeBinary());
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function deserialize_prisca_v1_core_tax_code_DeleteTaxCodeRequest(buffer_arg) {
|
|
38
|
+
return prisca_v1_core_tax_code_tax_code_pb.DeleteTaxCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function serialize_prisca_v1_core_tax_code_DeleteTaxCodeResponse(arg) {
|
|
42
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.DeleteTaxCodeResponse)) {
|
|
43
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.DeleteTaxCodeResponse');
|
|
44
|
+
}
|
|
45
|
+
return Buffer.from(arg.serializeBinary());
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function deserialize_prisca_v1_core_tax_code_DeleteTaxCodeResponse(buffer_arg) {
|
|
49
|
+
return prisca_v1_core_tax_code_tax_code_pb.DeleteTaxCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function serialize_prisca_v1_core_tax_code_GetListTaxCodeRequest(arg) {
|
|
53
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.GetListTaxCodeRequest)) {
|
|
54
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.GetListTaxCodeRequest');
|
|
55
|
+
}
|
|
56
|
+
return Buffer.from(arg.serializeBinary());
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function deserialize_prisca_v1_core_tax_code_GetListTaxCodeRequest(buffer_arg) {
|
|
60
|
+
return prisca_v1_core_tax_code_tax_code_pb.GetListTaxCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function serialize_prisca_v1_core_tax_code_GetListTaxCodeResponse(arg) {
|
|
64
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.GetListTaxCodeResponse)) {
|
|
65
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.GetListTaxCodeResponse');
|
|
66
|
+
}
|
|
67
|
+
return Buffer.from(arg.serializeBinary());
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function deserialize_prisca_v1_core_tax_code_GetListTaxCodeResponse(buffer_arg) {
|
|
71
|
+
return prisca_v1_core_tax_code_tax_code_pb.GetListTaxCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function serialize_prisca_v1_core_tax_code_GetTaxCodeByIdRequest(arg) {
|
|
75
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.GetTaxCodeByIdRequest)) {
|
|
76
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.GetTaxCodeByIdRequest');
|
|
77
|
+
}
|
|
78
|
+
return Buffer.from(arg.serializeBinary());
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function deserialize_prisca_v1_core_tax_code_GetTaxCodeByIdRequest(buffer_arg) {
|
|
82
|
+
return prisca_v1_core_tax_code_tax_code_pb.GetTaxCodeByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function serialize_prisca_v1_core_tax_code_GetTaxCodeByIdResponse(arg) {
|
|
86
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.GetTaxCodeByIdResponse)) {
|
|
87
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.GetTaxCodeByIdResponse');
|
|
88
|
+
}
|
|
89
|
+
return Buffer.from(arg.serializeBinary());
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function deserialize_prisca_v1_core_tax_code_GetTaxCodeByIdResponse(buffer_arg) {
|
|
93
|
+
return prisca_v1_core_tax_code_tax_code_pb.GetTaxCodeByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function serialize_prisca_v1_core_tax_code_UpdateTaxCodeRequest(arg) {
|
|
97
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.UpdateTaxCodeRequest)) {
|
|
98
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.UpdateTaxCodeRequest');
|
|
99
|
+
}
|
|
100
|
+
return Buffer.from(arg.serializeBinary());
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function deserialize_prisca_v1_core_tax_code_UpdateTaxCodeRequest(buffer_arg) {
|
|
104
|
+
return prisca_v1_core_tax_code_tax_code_pb.UpdateTaxCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function serialize_prisca_v1_core_tax_code_UpdateTaxCodeResponse(arg) {
|
|
108
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.UpdateTaxCodeResponse)) {
|
|
109
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.UpdateTaxCodeResponse');
|
|
110
|
+
}
|
|
111
|
+
return Buffer.from(arg.serializeBinary());
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function deserialize_prisca_v1_core_tax_code_UpdateTaxCodeResponse(buffer_arg) {
|
|
115
|
+
return prisca_v1_core_tax_code_tax_code_pb.UpdateTaxCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
var TaxCodeServiceService = exports.TaxCodeServiceService = {
|
|
120
|
+
createTaxCode: {
|
|
121
|
+
path: '/prisca.v1.core.tax_code.TaxCodeService/CreateTaxCode',
|
|
122
|
+
requestStream: false,
|
|
123
|
+
responseStream: false,
|
|
124
|
+
requestType: prisca_v1_core_tax_code_tax_code_pb.CreateTaxCodeRequest,
|
|
125
|
+
responseType: prisca_v1_core_tax_code_tax_code_pb.CreateTaxCodeResponse,
|
|
126
|
+
requestSerialize: serialize_prisca_v1_core_tax_code_CreateTaxCodeRequest,
|
|
127
|
+
requestDeserialize: deserialize_prisca_v1_core_tax_code_CreateTaxCodeRequest,
|
|
128
|
+
responseSerialize: serialize_prisca_v1_core_tax_code_CreateTaxCodeResponse,
|
|
129
|
+
responseDeserialize: deserialize_prisca_v1_core_tax_code_CreateTaxCodeResponse,
|
|
130
|
+
},
|
|
131
|
+
updateTaxCode: {
|
|
132
|
+
path: '/prisca.v1.core.tax_code.TaxCodeService/UpdateTaxCode',
|
|
133
|
+
requestStream: false,
|
|
134
|
+
responseStream: false,
|
|
135
|
+
requestType: prisca_v1_core_tax_code_tax_code_pb.UpdateTaxCodeRequest,
|
|
136
|
+
responseType: prisca_v1_core_tax_code_tax_code_pb.UpdateTaxCodeResponse,
|
|
137
|
+
requestSerialize: serialize_prisca_v1_core_tax_code_UpdateTaxCodeRequest,
|
|
138
|
+
requestDeserialize: deserialize_prisca_v1_core_tax_code_UpdateTaxCodeRequest,
|
|
139
|
+
responseSerialize: serialize_prisca_v1_core_tax_code_UpdateTaxCodeResponse,
|
|
140
|
+
responseDeserialize: deserialize_prisca_v1_core_tax_code_UpdateTaxCodeResponse,
|
|
141
|
+
},
|
|
142
|
+
getTaxCodeById: {
|
|
143
|
+
path: '/prisca.v1.core.tax_code.TaxCodeService/GetTaxCodeById',
|
|
144
|
+
requestStream: false,
|
|
145
|
+
responseStream: false,
|
|
146
|
+
requestType: prisca_v1_core_tax_code_tax_code_pb.GetTaxCodeByIdRequest,
|
|
147
|
+
responseType: prisca_v1_core_tax_code_tax_code_pb.GetTaxCodeByIdResponse,
|
|
148
|
+
requestSerialize: serialize_prisca_v1_core_tax_code_GetTaxCodeByIdRequest,
|
|
149
|
+
requestDeserialize: deserialize_prisca_v1_core_tax_code_GetTaxCodeByIdRequest,
|
|
150
|
+
responseSerialize: serialize_prisca_v1_core_tax_code_GetTaxCodeByIdResponse,
|
|
151
|
+
responseDeserialize: deserialize_prisca_v1_core_tax_code_GetTaxCodeByIdResponse,
|
|
152
|
+
},
|
|
153
|
+
getListTaxCode: {
|
|
154
|
+
path: '/prisca.v1.core.tax_code.TaxCodeService/GetListTaxCode',
|
|
155
|
+
requestStream: false,
|
|
156
|
+
responseStream: false,
|
|
157
|
+
requestType: prisca_v1_core_tax_code_tax_code_pb.GetListTaxCodeRequest,
|
|
158
|
+
responseType: prisca_v1_core_tax_code_tax_code_pb.GetListTaxCodeResponse,
|
|
159
|
+
requestSerialize: serialize_prisca_v1_core_tax_code_GetListTaxCodeRequest,
|
|
160
|
+
requestDeserialize: deserialize_prisca_v1_core_tax_code_GetListTaxCodeRequest,
|
|
161
|
+
responseSerialize: serialize_prisca_v1_core_tax_code_GetListTaxCodeResponse,
|
|
162
|
+
responseDeserialize: deserialize_prisca_v1_core_tax_code_GetListTaxCodeResponse,
|
|
163
|
+
},
|
|
164
|
+
deleteTaxCode: {
|
|
165
|
+
path: '/prisca.v1.core.tax_code.TaxCodeService/DeleteTaxCode',
|
|
166
|
+
requestStream: false,
|
|
167
|
+
responseStream: false,
|
|
168
|
+
requestType: prisca_v1_core_tax_code_tax_code_pb.DeleteTaxCodeRequest,
|
|
169
|
+
responseType: prisca_v1_core_tax_code_tax_code_pb.DeleteTaxCodeResponse,
|
|
170
|
+
requestSerialize: serialize_prisca_v1_core_tax_code_DeleteTaxCodeRequest,
|
|
171
|
+
requestDeserialize: deserialize_prisca_v1_core_tax_code_DeleteTaxCodeRequest,
|
|
172
|
+
responseSerialize: serialize_prisca_v1_core_tax_code_DeleteTaxCodeResponse,
|
|
173
|
+
responseDeserialize: deserialize_prisca_v1_core_tax_code_DeleteTaxCodeResponse,
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
exports.TaxCodeServiceClient = grpc.makeGenericClientConstructor(TaxCodeServiceService);
|