@stanterprise/protobuf 0.0.9 → 0.0.11
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/dist/index.js +677 -785
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +681 -785
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.d.ts +13 -15
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/common/common.d.ts +3 -1
- package/dist/lib/testsystem/v1/common/common.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/entities/test_case.d.ts +56 -72
- package/dist/lib/testsystem/v1/entities/test_case.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts +64 -91
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/events/events.d.ts +10 -0
- package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -1
- package/lib/index.ts +39 -49
- package/lib/testsystem/v1/common/common.ts +3 -1
- package/lib/testsystem/v1/entities/test_case.ts +253 -301
- package/lib/testsystem/v1/entities/test_suite.ts +269 -368
- package/lib/testsystem/v1/events/events.ts +46 -0
- package/package.json +1 -1
|
@@ -619,6 +619,7 @@ export namespace testsystem.v1.events {
|
|
|
619
619
|
test_id?: string;
|
|
620
620
|
message?: string;
|
|
621
621
|
timestamp?: dependency_1.google.protobuf.Timestamp;
|
|
622
|
+
test_case_run_id?: string;
|
|
622
623
|
}) {
|
|
623
624
|
super();
|
|
624
625
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
@@ -632,6 +633,9 @@ export namespace testsystem.v1.events {
|
|
|
632
633
|
if ("timestamp" in data && data.timestamp != undefined) {
|
|
633
634
|
this.timestamp = data.timestamp;
|
|
634
635
|
}
|
|
636
|
+
if ("test_case_run_id" in data && data.test_case_run_id != undefined) {
|
|
637
|
+
this.test_case_run_id = data.test_case_run_id;
|
|
638
|
+
}
|
|
635
639
|
}
|
|
636
640
|
}
|
|
637
641
|
get test_id() {
|
|
@@ -655,10 +659,17 @@ export namespace testsystem.v1.events {
|
|
|
655
659
|
get has_timestamp() {
|
|
656
660
|
return pb_1.Message.getField(this, 3) != null;
|
|
657
661
|
}
|
|
662
|
+
get test_case_run_id() {
|
|
663
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
664
|
+
}
|
|
665
|
+
set test_case_run_id(value: string) {
|
|
666
|
+
pb_1.Message.setField(this, 4, value);
|
|
667
|
+
}
|
|
658
668
|
static fromObject(data: {
|
|
659
669
|
test_id?: string;
|
|
660
670
|
message?: string;
|
|
661
671
|
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
672
|
+
test_case_run_id?: string;
|
|
662
673
|
}): StdErrorEventRequest {
|
|
663
674
|
const message = new StdErrorEventRequest({});
|
|
664
675
|
if (data.test_id != null) {
|
|
@@ -670,6 +681,9 @@ export namespace testsystem.v1.events {
|
|
|
670
681
|
if (data.timestamp != null) {
|
|
671
682
|
message.timestamp = dependency_1.google.protobuf.Timestamp.fromObject(data.timestamp);
|
|
672
683
|
}
|
|
684
|
+
if (data.test_case_run_id != null) {
|
|
685
|
+
message.test_case_run_id = data.test_case_run_id;
|
|
686
|
+
}
|
|
673
687
|
return message;
|
|
674
688
|
}
|
|
675
689
|
toObject() {
|
|
@@ -677,6 +691,7 @@ export namespace testsystem.v1.events {
|
|
|
677
691
|
test_id?: string;
|
|
678
692
|
message?: string;
|
|
679
693
|
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
694
|
+
test_case_run_id?: string;
|
|
680
695
|
} = {};
|
|
681
696
|
if (this.test_id != null) {
|
|
682
697
|
data.test_id = this.test_id;
|
|
@@ -687,6 +702,9 @@ export namespace testsystem.v1.events {
|
|
|
687
702
|
if (this.timestamp != null) {
|
|
688
703
|
data.timestamp = this.timestamp.toObject();
|
|
689
704
|
}
|
|
705
|
+
if (this.test_case_run_id != null) {
|
|
706
|
+
data.test_case_run_id = this.test_case_run_id;
|
|
707
|
+
}
|
|
690
708
|
return data;
|
|
691
709
|
}
|
|
692
710
|
serialize(): Uint8Array;
|
|
@@ -699,6 +717,8 @@ export namespace testsystem.v1.events {
|
|
|
699
717
|
writer.writeString(2, this.message);
|
|
700
718
|
if (this.has_timestamp)
|
|
701
719
|
writer.writeMessage(3, this.timestamp, () => this.timestamp.serialize(writer));
|
|
720
|
+
if (this.test_case_run_id.length)
|
|
721
|
+
writer.writeString(4, this.test_case_run_id);
|
|
702
722
|
if (!w)
|
|
703
723
|
return writer.getResultBuffer();
|
|
704
724
|
}
|
|
@@ -717,6 +737,9 @@ export namespace testsystem.v1.events {
|
|
|
717
737
|
case 3:
|
|
718
738
|
reader.readMessage(message.timestamp, () => message.timestamp = dependency_1.google.protobuf.Timestamp.deserialize(reader));
|
|
719
739
|
break;
|
|
740
|
+
case 4:
|
|
741
|
+
message.test_case_run_id = reader.readString();
|
|
742
|
+
break;
|
|
720
743
|
default: reader.skipField();
|
|
721
744
|
}
|
|
722
745
|
}
|
|
@@ -735,6 +758,7 @@ export namespace testsystem.v1.events {
|
|
|
735
758
|
test_id?: string;
|
|
736
759
|
message?: string;
|
|
737
760
|
timestamp?: dependency_1.google.protobuf.Timestamp;
|
|
761
|
+
test_case_run_id?: string;
|
|
738
762
|
}) {
|
|
739
763
|
super();
|
|
740
764
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
@@ -748,6 +772,9 @@ export namespace testsystem.v1.events {
|
|
|
748
772
|
if ("timestamp" in data && data.timestamp != undefined) {
|
|
749
773
|
this.timestamp = data.timestamp;
|
|
750
774
|
}
|
|
775
|
+
if ("test_case_run_id" in data && data.test_case_run_id != undefined) {
|
|
776
|
+
this.test_case_run_id = data.test_case_run_id;
|
|
777
|
+
}
|
|
751
778
|
}
|
|
752
779
|
}
|
|
753
780
|
get test_id() {
|
|
@@ -771,10 +798,17 @@ export namespace testsystem.v1.events {
|
|
|
771
798
|
get has_timestamp() {
|
|
772
799
|
return pb_1.Message.getField(this, 3) != null;
|
|
773
800
|
}
|
|
801
|
+
get test_case_run_id() {
|
|
802
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
803
|
+
}
|
|
804
|
+
set test_case_run_id(value: string) {
|
|
805
|
+
pb_1.Message.setField(this, 4, value);
|
|
806
|
+
}
|
|
774
807
|
static fromObject(data: {
|
|
775
808
|
test_id?: string;
|
|
776
809
|
message?: string;
|
|
777
810
|
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
811
|
+
test_case_run_id?: string;
|
|
778
812
|
}): StdOutputEventRequest {
|
|
779
813
|
const message = new StdOutputEventRequest({});
|
|
780
814
|
if (data.test_id != null) {
|
|
@@ -786,6 +820,9 @@ export namespace testsystem.v1.events {
|
|
|
786
820
|
if (data.timestamp != null) {
|
|
787
821
|
message.timestamp = dependency_1.google.protobuf.Timestamp.fromObject(data.timestamp);
|
|
788
822
|
}
|
|
823
|
+
if (data.test_case_run_id != null) {
|
|
824
|
+
message.test_case_run_id = data.test_case_run_id;
|
|
825
|
+
}
|
|
789
826
|
return message;
|
|
790
827
|
}
|
|
791
828
|
toObject() {
|
|
@@ -793,6 +830,7 @@ export namespace testsystem.v1.events {
|
|
|
793
830
|
test_id?: string;
|
|
794
831
|
message?: string;
|
|
795
832
|
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
833
|
+
test_case_run_id?: string;
|
|
796
834
|
} = {};
|
|
797
835
|
if (this.test_id != null) {
|
|
798
836
|
data.test_id = this.test_id;
|
|
@@ -803,6 +841,9 @@ export namespace testsystem.v1.events {
|
|
|
803
841
|
if (this.timestamp != null) {
|
|
804
842
|
data.timestamp = this.timestamp.toObject();
|
|
805
843
|
}
|
|
844
|
+
if (this.test_case_run_id != null) {
|
|
845
|
+
data.test_case_run_id = this.test_case_run_id;
|
|
846
|
+
}
|
|
806
847
|
return data;
|
|
807
848
|
}
|
|
808
849
|
serialize(): Uint8Array;
|
|
@@ -815,6 +856,8 @@ export namespace testsystem.v1.events {
|
|
|
815
856
|
writer.writeString(2, this.message);
|
|
816
857
|
if (this.has_timestamp)
|
|
817
858
|
writer.writeMessage(3, this.timestamp, () => this.timestamp.serialize(writer));
|
|
859
|
+
if (this.test_case_run_id.length)
|
|
860
|
+
writer.writeString(4, this.test_case_run_id);
|
|
818
861
|
if (!w)
|
|
819
862
|
return writer.getResultBuffer();
|
|
820
863
|
}
|
|
@@ -833,6 +876,9 @@ export namespace testsystem.v1.events {
|
|
|
833
876
|
case 3:
|
|
834
877
|
reader.readMessage(message.timestamp, () => message.timestamp = dependency_1.google.protobuf.Timestamp.deserialize(reader));
|
|
835
878
|
break;
|
|
879
|
+
case 4:
|
|
880
|
+
message.test_case_run_id = reader.readString();
|
|
881
|
+
break;
|
|
836
882
|
default: reader.skipField();
|
|
837
883
|
}
|
|
838
884
|
}
|