@stanterprise/protobuf 0.0.14 → 0.0.16
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/{chunk-TJOHFA2M.mjs → chunk-3RZUJDZJ.mjs} +67 -1
- package/dist/{chunk-TJOHFA2M.mjs.map → chunk-3RZUJDZJ.mjs.map} +1 -1
- package/dist/{chunk-OYBN67JW.mjs → chunk-AUREWCVS.mjs} +2 -2
- package/dist/{chunk-JOH5DJAY.mjs → chunk-O6ANB3BZ.mjs} +4 -1
- package/dist/{chunk-JOH5DJAY.mjs.map → chunk-O6ANB3BZ.mjs.map} +1 -1
- package/dist/{chunk-F6CKBSG3.mjs → chunk-OGQKS5OT.mjs} +2 -2
- package/dist/{chunk-BS6UMTC7.mjs → chunk-OJ7GAR77.mjs} +4 -4
- package/dist/{chunk-YYTEIJXG.mjs → chunk-ZQTVNKCI.mjs} +2 -2
- package/dist/index.js +66 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/lib/testsystem/v1/events/events.d.ts +19 -0
- package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -1
- package/dist/testsystem/index.js +74 -6
- package/dist/testsystem/index.js.map +1 -1
- package/dist/testsystem/index.mjs +6 -6
- package/dist/testsystem/v1/entities/index.d.ts +2 -0
- package/dist/testsystem/v1/entities/index.d.ts.map +1 -1
- package/dist/testsystem/v1/entities/index.js +9 -6
- package/dist/testsystem/v1/entities/index.js.map +1 -1
- package/dist/testsystem/v1/entities/index.mjs +3 -1
- package/dist/testsystem/v1/events/index.js +66 -0
- package/dist/testsystem/v1/events/index.js.map +1 -1
- package/dist/testsystem/v1/events/index.mjs +2 -2
- package/dist/testsystem/v1/index.js +74 -6
- package/dist/testsystem/v1/index.js.map +1 -1
- package/dist/testsystem/v1/index.mjs +6 -6
- package/dist/testsystem/v1/observer/index.js +66 -0
- package/dist/testsystem/v1/observer/index.js.map +1 -1
- package/dist/testsystem/v1/observer/index.mjs +3 -3
- package/lib/testsystem/v1/events/events.ts +79 -0
- package/package.json +1 -1
- /package/dist/{chunk-OYBN67JW.mjs.map → chunk-AUREWCVS.mjs.map} +0 -0
- /package/dist/{chunk-F6CKBSG3.mjs.map → chunk-OGQKS5OT.mjs.map} +0 -0
- /package/dist/{chunk-BS6UMTC7.mjs.map → chunk-OJ7GAR77.mjs.map} +0 -0
- /package/dist/{chunk-YYTEIJXG.mjs.map → chunk-ZQTVNKCI.mjs.map} +0 -0
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
TestEndEventRequest,
|
|
12
12
|
TestErrorEventRequest,
|
|
13
13
|
TestFailureEventRequest
|
|
14
|
-
} from "../../../chunk-
|
|
15
|
-
import "../../../chunk-
|
|
14
|
+
} from "../../../chunk-AUREWCVS.mjs";
|
|
15
|
+
import "../../../chunk-3RZUJDZJ.mjs";
|
|
16
16
|
import "../../../chunk-4NKV5THZ.mjs";
|
|
17
17
|
import "../../../chunk-VBR2HXFF.mjs";
|
|
18
18
|
export {
|
|
@@ -47,6 +47,7 @@ module.exports = __toCommonJS(v1_exports);
|
|
|
47
47
|
var entities_exports = {};
|
|
48
48
|
__export(entities_exports, {
|
|
49
49
|
StepRun: () => StepRun,
|
|
50
|
+
SuiteType: () => SuiteType,
|
|
50
51
|
TestCaseRun: () => TestCaseRun,
|
|
51
52
|
TestSuiteRun: () => TestSuiteRun
|
|
52
53
|
});
|
|
@@ -1232,12 +1233,12 @@ var testsystem3;
|
|
|
1232
1233
|
let entities;
|
|
1233
1234
|
((entities2) => {
|
|
1234
1235
|
var _one_of_decls;
|
|
1235
|
-
let
|
|
1236
|
-
((
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
})(
|
|
1236
|
+
let SuiteType2;
|
|
1237
|
+
((SuiteType3) => {
|
|
1238
|
+
SuiteType3[SuiteType3["ROOT"] = 0] = "ROOT";
|
|
1239
|
+
SuiteType3[SuiteType3["PROJECT"] = 1] = "PROJECT";
|
|
1240
|
+
SuiteType3[SuiteType3["SUBSUITE"] = 2] = "SUBSUITE";
|
|
1241
|
+
})(SuiteType2 = entities2.SuiteType || (entities2.SuiteType = {}));
|
|
1241
1242
|
const _TestSuiteRun = class _TestSuiteRun extends pb_15.Message {
|
|
1242
1243
|
constructor(data) {
|
|
1243
1244
|
super();
|
|
@@ -1704,6 +1705,7 @@ var testsystem3;
|
|
|
1704
1705
|
var TestCaseRun = testsystem2.v1.entities.TestCaseRun;
|
|
1705
1706
|
var StepRun = testsystem2.v1.entities.StepRun;
|
|
1706
1707
|
var TestSuiteRun = testsystem3.v1.entities.TestSuiteRun;
|
|
1708
|
+
var SuiteType = testsystem3.v1.entities.SuiteType;
|
|
1707
1709
|
|
|
1708
1710
|
// testsystem/v1/events/index.ts
|
|
1709
1711
|
var events_exports = {};
|
|
@@ -2849,7 +2851,18 @@ var testsystem4;
|
|
|
2849
2851
|
if ("test_suites" in data && data.test_suites != void 0) {
|
|
2850
2852
|
this.test_suites = data.test_suites;
|
|
2851
2853
|
}
|
|
2854
|
+
if ("total_tests" in data && data.total_tests != void 0) {
|
|
2855
|
+
this.total_tests = data.total_tests;
|
|
2856
|
+
}
|
|
2857
|
+
if ("name" in data && data.name != void 0) {
|
|
2858
|
+
this.name = data.name;
|
|
2859
|
+
}
|
|
2860
|
+
if ("metadata" in data && data.metadata != void 0) {
|
|
2861
|
+
this.metadata = data.metadata;
|
|
2862
|
+
}
|
|
2852
2863
|
}
|
|
2864
|
+
if (!this.metadata)
|
|
2865
|
+
this.metadata = /* @__PURE__ */ new Map();
|
|
2853
2866
|
}
|
|
2854
2867
|
get run_id() {
|
|
2855
2868
|
return pb_16.Message.getFieldWithDefault(this, 1, "");
|
|
@@ -2863,6 +2876,24 @@ var testsystem4;
|
|
|
2863
2876
|
set test_suites(value) {
|
|
2864
2877
|
pb_16.Message.setRepeatedWrapperField(this, 2, value);
|
|
2865
2878
|
}
|
|
2879
|
+
get total_tests() {
|
|
2880
|
+
return pb_16.Message.getFieldWithDefault(this, 3, 0);
|
|
2881
|
+
}
|
|
2882
|
+
set total_tests(value) {
|
|
2883
|
+
pb_16.Message.setField(this, 3, value);
|
|
2884
|
+
}
|
|
2885
|
+
get name() {
|
|
2886
|
+
return pb_16.Message.getFieldWithDefault(this, 4, "");
|
|
2887
|
+
}
|
|
2888
|
+
set name(value) {
|
|
2889
|
+
pb_16.Message.setField(this, 4, value);
|
|
2890
|
+
}
|
|
2891
|
+
get metadata() {
|
|
2892
|
+
return pb_16.Message.getField(this, 5);
|
|
2893
|
+
}
|
|
2894
|
+
set metadata(value) {
|
|
2895
|
+
pb_16.Message.setField(this, 5, value);
|
|
2896
|
+
}
|
|
2866
2897
|
static fromObject(data) {
|
|
2867
2898
|
const message = new _MapTestRunEventRequest({});
|
|
2868
2899
|
if (data.run_id != null) {
|
|
@@ -2871,6 +2902,15 @@ var testsystem4;
|
|
|
2871
2902
|
if (data.test_suites != null) {
|
|
2872
2903
|
message.test_suites = data.test_suites.map((item) => testsystem3.v1.entities.TestSuiteRun.fromObject(item));
|
|
2873
2904
|
}
|
|
2905
|
+
if (data.total_tests != null) {
|
|
2906
|
+
message.total_tests = data.total_tests;
|
|
2907
|
+
}
|
|
2908
|
+
if (data.name != null) {
|
|
2909
|
+
message.name = data.name;
|
|
2910
|
+
}
|
|
2911
|
+
if (typeof data.metadata == "object") {
|
|
2912
|
+
message.metadata = new Map(Object.entries(data.metadata));
|
|
2913
|
+
}
|
|
2874
2914
|
return message;
|
|
2875
2915
|
}
|
|
2876
2916
|
toObject() {
|
|
@@ -2881,6 +2921,15 @@ var testsystem4;
|
|
|
2881
2921
|
if (this.test_suites != null) {
|
|
2882
2922
|
data.test_suites = this.test_suites.map((item) => item.toObject());
|
|
2883
2923
|
}
|
|
2924
|
+
if (this.total_tests != null) {
|
|
2925
|
+
data.total_tests = this.total_tests;
|
|
2926
|
+
}
|
|
2927
|
+
if (this.name != null) {
|
|
2928
|
+
data.name = this.name;
|
|
2929
|
+
}
|
|
2930
|
+
if (this.metadata != null) {
|
|
2931
|
+
data.metadata = Object.fromEntries(this.metadata);
|
|
2932
|
+
}
|
|
2884
2933
|
return data;
|
|
2885
2934
|
}
|
|
2886
2935
|
serialize(w) {
|
|
@@ -2889,6 +2938,16 @@ var testsystem4;
|
|
|
2889
2938
|
writer.writeString(1, this.run_id);
|
|
2890
2939
|
if (this.test_suites.length)
|
|
2891
2940
|
writer.writeRepeatedMessage(2, this.test_suites, (item) => item.serialize(writer));
|
|
2941
|
+
if (this.total_tests != 0)
|
|
2942
|
+
writer.writeInt32(3, this.total_tests);
|
|
2943
|
+
if (this.name.length)
|
|
2944
|
+
writer.writeString(4, this.name);
|
|
2945
|
+
for (const [key, value] of this.metadata) {
|
|
2946
|
+
writer.writeMessage(5, this.metadata, () => {
|
|
2947
|
+
writer.writeString(1, key);
|
|
2948
|
+
writer.writeString(2, value);
|
|
2949
|
+
});
|
|
2950
|
+
}
|
|
2892
2951
|
if (!w)
|
|
2893
2952
|
return writer.getResultBuffer();
|
|
2894
2953
|
}
|
|
@@ -2904,6 +2963,15 @@ var testsystem4;
|
|
|
2904
2963
|
case 2:
|
|
2905
2964
|
reader.readMessage(message.test_suites, () => pb_16.Message.addToRepeatedWrapperField(message, 2, testsystem3.v1.entities.TestSuiteRun.deserialize(reader), testsystem3.v1.entities.TestSuiteRun));
|
|
2906
2965
|
break;
|
|
2966
|
+
case 3:
|
|
2967
|
+
message.total_tests = reader.readInt32();
|
|
2968
|
+
break;
|
|
2969
|
+
case 4:
|
|
2970
|
+
message.name = reader.readString();
|
|
2971
|
+
break;
|
|
2972
|
+
case 5:
|
|
2973
|
+
reader.readMessage(message, () => pb_16.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
|
|
2974
|
+
break;
|
|
2907
2975
|
default:
|
|
2908
2976
|
reader.skipField();
|
|
2909
2977
|
}
|