@stanterprise/protobuf 0.0.15 → 0.0.17
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-YYTEIJXG.mjs → chunk-2XDGK4PE.mjs} +2 -2
- package/dist/{chunk-O6ANB3BZ.mjs → chunk-3VVXARSH.mjs} +2 -2
- package/dist/{chunk-VZMKFXBH.mjs → chunk-HQ5G6E3D.mjs} +4 -4
- package/dist/{chunk-F6CKBSG3.mjs → chunk-LJC4OR2K.mjs} +14 -2
- package/dist/chunk-LJC4OR2K.mjs.map +1 -0
- package/dist/{chunk-4NKV5THZ.mjs → chunk-NAR56EZC.mjs} +2 -1
- package/dist/{chunk-OYBN67JW.mjs → chunk-OCVNUP7T.mjs} +2 -2
- package/dist/{chunk-TJOHFA2M.mjs → chunk-VZW7JSLB.mjs} +199 -3
- package/dist/chunk-VZW7JSLB.mjs.map +1 -0
- package/dist/index.js +208 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/lib/testsystem/v1/events/events.d.ts +56 -0
- package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/observer/observer.d.ts +11 -0
- package/dist/lib/testsystem/v1/observer/observer.d.ts.map +1 -1
- package/dist/testsystem/index.js +208 -1
- package/dist/testsystem/index.js.map +1 -1
- package/dist/testsystem/index.mjs +7 -7
- package/dist/testsystem/v1/entities/index.mjs +2 -2
- package/dist/testsystem/v1/events/index.js +196 -1
- package/dist/testsystem/v1/events/index.js.map +1 -1
- package/dist/testsystem/v1/events/index.mjs +3 -3
- package/dist/testsystem/v1/index.js +208 -1
- package/dist/testsystem/v1/index.js.map +1 -1
- package/dist/testsystem/v1/index.mjs +7 -7
- package/dist/testsystem/v1/observer/index.js +208 -1
- package/dist/testsystem/v1/observer/index.js.map +1 -1
- package/dist/testsystem/v1/observer/index.mjs +4 -4
- package/lib/testsystem/v1/events/events.ts +222 -0
- package/lib/testsystem/v1/observer/observer.ts +13 -0
- package/package.json +1 -1
- package/dist/chunk-F6CKBSG3.mjs.map +0 -1
- package/dist/chunk-TJOHFA2M.mjs.map +0 -1
- /package/dist/{chunk-YYTEIJXG.mjs.map → chunk-2XDGK4PE.mjs.map} +0 -0
- /package/dist/{chunk-O6ANB3BZ.mjs.map → chunk-3VVXARSH.mjs.map} +0 -0
- /package/dist/{chunk-VZMKFXBH.mjs.map → chunk-HQ5G6E3D.mjs.map} +0 -0
- /package/dist/{chunk-4NKV5THZ.mjs.map → chunk-NAR56EZC.mjs.map} +0 -0
- /package/dist/{chunk-OYBN67JW.mjs.map → chunk-OCVNUP7T.mjs.map} +0 -0
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
TestEndEventRequest,
|
|
12
12
|
TestErrorEventRequest,
|
|
13
13
|
TestFailureEventRequest
|
|
14
|
-
} from "../../../chunk-
|
|
15
|
-
import "../../../chunk-
|
|
16
|
-
import "../../../chunk-
|
|
14
|
+
} from "../../../chunk-OCVNUP7T.mjs";
|
|
15
|
+
import "../../../chunk-VZW7JSLB.mjs";
|
|
16
|
+
import "../../../chunk-NAR56EZC.mjs";
|
|
17
17
|
import "../../../chunk-VBR2HXFF.mjs";
|
|
18
18
|
export {
|
|
19
19
|
HeartbeatEventRequest,
|
|
@@ -1732,7 +1732,7 @@ var testsystem4;
|
|
|
1732
1732
|
((v12) => {
|
|
1733
1733
|
let events;
|
|
1734
1734
|
((events2) => {
|
|
1735
|
-
var _one_of_decls, _one_of_decls2, _one_of_decls3, _one_of_decls4, _one_of_decls5, _one_of_decls6, _one_of_decls7, _one_of_decls8, _one_of_decls9, _one_of_decls10, _one_of_decls11, _one_of_decls12;
|
|
1735
|
+
var _one_of_decls, _one_of_decls2, _one_of_decls3, _one_of_decls4, _one_of_decls5, _one_of_decls6, _one_of_decls7, _one_of_decls8, _one_of_decls9, _one_of_decls10, _one_of_decls11, _one_of_decls12, _one_of_decls13;
|
|
1736
1736
|
const _TestBeginEventRequest = class _TestBeginEventRequest extends pb_16.Message {
|
|
1737
1737
|
constructor(data) {
|
|
1738
1738
|
super();
|
|
@@ -2851,7 +2851,18 @@ var testsystem4;
|
|
|
2851
2851
|
if ("test_suites" in data && data.test_suites != void 0) {
|
|
2852
2852
|
this.test_suites = data.test_suites;
|
|
2853
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
|
+
}
|
|
2854
2863
|
}
|
|
2864
|
+
if (!this.metadata)
|
|
2865
|
+
this.metadata = /* @__PURE__ */ new Map();
|
|
2855
2866
|
}
|
|
2856
2867
|
get run_id() {
|
|
2857
2868
|
return pb_16.Message.getFieldWithDefault(this, 1, "");
|
|
@@ -2865,6 +2876,24 @@ var testsystem4;
|
|
|
2865
2876
|
set test_suites(value) {
|
|
2866
2877
|
pb_16.Message.setRepeatedWrapperField(this, 2, value);
|
|
2867
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
|
+
}
|
|
2868
2897
|
static fromObject(data) {
|
|
2869
2898
|
const message = new _MapTestRunEventRequest({});
|
|
2870
2899
|
if (data.run_id != null) {
|
|
@@ -2873,6 +2902,15 @@ var testsystem4;
|
|
|
2873
2902
|
if (data.test_suites != null) {
|
|
2874
2903
|
message.test_suites = data.test_suites.map((item) => testsystem3.v1.entities.TestSuiteRun.fromObject(item));
|
|
2875
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
|
+
}
|
|
2876
2914
|
return message;
|
|
2877
2915
|
}
|
|
2878
2916
|
toObject() {
|
|
@@ -2883,6 +2921,15 @@ var testsystem4;
|
|
|
2883
2921
|
if (this.test_suites != null) {
|
|
2884
2922
|
data.test_suites = this.test_suites.map((item) => item.toObject());
|
|
2885
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
|
+
}
|
|
2886
2933
|
return data;
|
|
2887
2934
|
}
|
|
2888
2935
|
serialize(w) {
|
|
@@ -2891,6 +2938,16 @@ var testsystem4;
|
|
|
2891
2938
|
writer.writeString(1, this.run_id);
|
|
2892
2939
|
if (this.test_suites.length)
|
|
2893
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
|
+
}
|
|
2894
2951
|
if (!w)
|
|
2895
2952
|
return writer.getResultBuffer();
|
|
2896
2953
|
}
|
|
@@ -2906,6 +2963,15 @@ var testsystem4;
|
|
|
2906
2963
|
case 2:
|
|
2907
2964
|
reader.readMessage(message.test_suites, () => pb_16.Message.addToRepeatedWrapperField(message, 2, testsystem3.v1.entities.TestSuiteRun.deserialize(reader), testsystem3.v1.entities.TestSuiteRun));
|
|
2908
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;
|
|
2909
2975
|
default:
|
|
2910
2976
|
reader.skipField();
|
|
2911
2977
|
}
|
|
@@ -2922,6 +2988,135 @@ var testsystem4;
|
|
|
2922
2988
|
_one_of_decls12 = new WeakMap();
|
|
2923
2989
|
let MapTestRunEventRequest2 = _MapTestRunEventRequest;
|
|
2924
2990
|
events2.MapTestRunEventRequest = _MapTestRunEventRequest;
|
|
2991
|
+
const _TestRunEndEventRequest = class _TestRunEndEventRequest extends pb_16.Message {
|
|
2992
|
+
constructor(data) {
|
|
2993
|
+
super();
|
|
2994
|
+
__privateAdd(this, _one_of_decls13, []);
|
|
2995
|
+
pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls13));
|
|
2996
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2997
|
+
if ("run_id" in data && data.run_id != void 0) {
|
|
2998
|
+
this.run_id = data.run_id;
|
|
2999
|
+
}
|
|
3000
|
+
if ("final_status" in data && data.final_status != void 0) {
|
|
3001
|
+
this.final_status = data.final_status;
|
|
3002
|
+
}
|
|
3003
|
+
if ("start_time" in data && data.start_time != void 0) {
|
|
3004
|
+
this.start_time = data.start_time;
|
|
3005
|
+
}
|
|
3006
|
+
if ("duration" in data && data.duration != void 0) {
|
|
3007
|
+
this.duration = data.duration;
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
get run_id() {
|
|
3012
|
+
return pb_16.Message.getFieldWithDefault(this, 1, "");
|
|
3013
|
+
}
|
|
3014
|
+
set run_id(value) {
|
|
3015
|
+
pb_16.Message.setField(this, 1, value);
|
|
3016
|
+
}
|
|
3017
|
+
get final_status() {
|
|
3018
|
+
return pb_16.Message.getFieldWithDefault(this, 2, testsystem.v1.common.TestStatus.UNKNOWN);
|
|
3019
|
+
}
|
|
3020
|
+
set final_status(value) {
|
|
3021
|
+
pb_16.Message.setField(this, 2, value);
|
|
3022
|
+
}
|
|
3023
|
+
get start_time() {
|
|
3024
|
+
return pb_16.Message.getWrapperField(this, google.protobuf.Timestamp, 3);
|
|
3025
|
+
}
|
|
3026
|
+
set start_time(value) {
|
|
3027
|
+
pb_16.Message.setWrapperField(this, 3, value);
|
|
3028
|
+
}
|
|
3029
|
+
get has_start_time() {
|
|
3030
|
+
return pb_16.Message.getField(this, 3) != null;
|
|
3031
|
+
}
|
|
3032
|
+
get duration() {
|
|
3033
|
+
return pb_16.Message.getWrapperField(this, google2.protobuf.Duration, 4);
|
|
3034
|
+
}
|
|
3035
|
+
set duration(value) {
|
|
3036
|
+
pb_16.Message.setWrapperField(this, 4, value);
|
|
3037
|
+
}
|
|
3038
|
+
get has_duration() {
|
|
3039
|
+
return pb_16.Message.getField(this, 4) != null;
|
|
3040
|
+
}
|
|
3041
|
+
static fromObject(data) {
|
|
3042
|
+
const message = new _TestRunEndEventRequest({});
|
|
3043
|
+
if (data.run_id != null) {
|
|
3044
|
+
message.run_id = data.run_id;
|
|
3045
|
+
}
|
|
3046
|
+
if (data.final_status != null) {
|
|
3047
|
+
message.final_status = data.final_status;
|
|
3048
|
+
}
|
|
3049
|
+
if (data.start_time != null) {
|
|
3050
|
+
message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
|
|
3051
|
+
}
|
|
3052
|
+
if (data.duration != null) {
|
|
3053
|
+
message.duration = google2.protobuf.Duration.fromObject(data.duration);
|
|
3054
|
+
}
|
|
3055
|
+
return message;
|
|
3056
|
+
}
|
|
3057
|
+
toObject() {
|
|
3058
|
+
const data = {};
|
|
3059
|
+
if (this.run_id != null) {
|
|
3060
|
+
data.run_id = this.run_id;
|
|
3061
|
+
}
|
|
3062
|
+
if (this.final_status != null) {
|
|
3063
|
+
data.final_status = this.final_status;
|
|
3064
|
+
}
|
|
3065
|
+
if (this.start_time != null) {
|
|
3066
|
+
data.start_time = this.start_time.toObject();
|
|
3067
|
+
}
|
|
3068
|
+
if (this.duration != null) {
|
|
3069
|
+
data.duration = this.duration.toObject();
|
|
3070
|
+
}
|
|
3071
|
+
return data;
|
|
3072
|
+
}
|
|
3073
|
+
serialize(w) {
|
|
3074
|
+
const writer = w || new pb_16.BinaryWriter();
|
|
3075
|
+
if (this.run_id.length)
|
|
3076
|
+
writer.writeString(1, this.run_id);
|
|
3077
|
+
if (this.final_status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
3078
|
+
writer.writeEnum(2, this.final_status);
|
|
3079
|
+
if (this.has_start_time)
|
|
3080
|
+
writer.writeMessage(3, this.start_time, () => this.start_time.serialize(writer));
|
|
3081
|
+
if (this.has_duration)
|
|
3082
|
+
writer.writeMessage(4, this.duration, () => this.duration.serialize(writer));
|
|
3083
|
+
if (!w)
|
|
3084
|
+
return writer.getResultBuffer();
|
|
3085
|
+
}
|
|
3086
|
+
static deserialize(bytes) {
|
|
3087
|
+
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _TestRunEndEventRequest();
|
|
3088
|
+
while (reader.nextField()) {
|
|
3089
|
+
if (reader.isEndGroup())
|
|
3090
|
+
break;
|
|
3091
|
+
switch (reader.getFieldNumber()) {
|
|
3092
|
+
case 1:
|
|
3093
|
+
message.run_id = reader.readString();
|
|
3094
|
+
break;
|
|
3095
|
+
case 2:
|
|
3096
|
+
message.final_status = reader.readEnum();
|
|
3097
|
+
break;
|
|
3098
|
+
case 3:
|
|
3099
|
+
reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
|
|
3100
|
+
break;
|
|
3101
|
+
case 4:
|
|
3102
|
+
reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
|
|
3103
|
+
break;
|
|
3104
|
+
default:
|
|
3105
|
+
reader.skipField();
|
|
3106
|
+
}
|
|
3107
|
+
}
|
|
3108
|
+
return message;
|
|
3109
|
+
}
|
|
3110
|
+
serializeBinary() {
|
|
3111
|
+
return this.serialize();
|
|
3112
|
+
}
|
|
3113
|
+
static deserializeBinary(bytes) {
|
|
3114
|
+
return _TestRunEndEventRequest.deserialize(bytes);
|
|
3115
|
+
}
|
|
3116
|
+
};
|
|
3117
|
+
_one_of_decls13 = new WeakMap();
|
|
3118
|
+
let TestRunEndEventRequest = _TestRunEndEventRequest;
|
|
3119
|
+
events2.TestRunEndEventRequest = _TestRunEndEventRequest;
|
|
2925
3120
|
})(events = v12.events || (v12.events = {}));
|
|
2926
3121
|
})(v1 = testsystem6.v1 || (testsystem6.v1 = {}));
|
|
2927
3122
|
})(testsystem4 || (testsystem4 = {}));
|
|
@@ -3181,6 +3376,15 @@ var testsystem5;
|
|
|
3181
3376
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3182
3377
|
responseDeserialize: (bytes) => AckResponse2.deserialize(new Uint8Array(bytes))
|
|
3183
3378
|
},
|
|
3379
|
+
ReportRunEnd: {
|
|
3380
|
+
path: "/testsystem.v1.observer.TestEventCollector/ReportRunEnd",
|
|
3381
|
+
requestStream: false,
|
|
3382
|
+
responseStream: false,
|
|
3383
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3384
|
+
requestDeserialize: (bytes) => testsystem4.v1.events.TestRunEndEventRequest.deserialize(new Uint8Array(bytes)),
|
|
3385
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3386
|
+
responseDeserialize: (bytes) => AckResponse2.deserialize(new Uint8Array(bytes))
|
|
3387
|
+
},
|
|
3184
3388
|
Heartbeat: {
|
|
3185
3389
|
path: "/testsystem.v1.observer.TestEventCollector/Heartbeat",
|
|
3186
3390
|
requestStream: false,
|
|
@@ -3228,6 +3432,9 @@ var testsystem5;
|
|
|
3228
3432
|
this.ReportStdOutput = (message, metadata, options, callback) => {
|
|
3229
3433
|
return super.ReportStdOutput(message, metadata, options, callback);
|
|
3230
3434
|
};
|
|
3435
|
+
this.ReportRunEnd = (message, metadata, options, callback) => {
|
|
3436
|
+
return super.ReportRunEnd(message, metadata, options, callback);
|
|
3437
|
+
};
|
|
3231
3438
|
this.Heartbeat = (message, metadata, options, callback) => {
|
|
3232
3439
|
return super.Heartbeat(message, metadata, options, callback);
|
|
3233
3440
|
};
|