@stanterprise/protobuf 0.0.16 → 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-ZQTVNKCI.mjs → chunk-2XDGK4PE.mjs} +2 -2
- package/dist/{chunk-O6ANB3BZ.mjs → chunk-3VVXARSH.mjs} +2 -2
- package/dist/{chunk-OJ7GAR77.mjs → chunk-HQ5G6E3D.mjs} +4 -4
- package/dist/{chunk-OGQKS5OT.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-AUREWCVS.mjs → chunk-OCVNUP7T.mjs} +2 -2
- package/dist/{chunk-3RZUJDZJ.mjs → chunk-VZW7JSLB.mjs} +133 -3
- package/dist/chunk-VZW7JSLB.mjs.map +1 -0
- package/dist/index.js +142 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/lib/testsystem/v1/events/events.d.ts +37 -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 +142 -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 +130 -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 +142 -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 +142 -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 +143 -0
- package/lib/testsystem/v1/observer/observer.ts +13 -0
- package/package.json +1 -1
- package/dist/chunk-3RZUJDZJ.mjs.map +0 -1
- package/dist/chunk-OGQKS5OT.mjs.map +0 -1
- /package/dist/{chunk-ZQTVNKCI.mjs.map → chunk-2XDGK4PE.mjs.map} +0 -0
- /package/dist/{chunk-O6ANB3BZ.mjs.map → chunk-3VVXARSH.mjs.map} +0 -0
- /package/dist/{chunk-OJ7GAR77.mjs.map → chunk-HQ5G6E3D.mjs.map} +0 -0
- /package/dist/{chunk-4NKV5THZ.mjs.map → chunk-NAR56EZC.mjs.map} +0 -0
- /package/dist/{chunk-AUREWCVS.mjs.map → chunk-OCVNUP7T.mjs.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1707,7 +1707,7 @@ var testsystem4;
|
|
|
1707
1707
|
((v12) => {
|
|
1708
1708
|
let events;
|
|
1709
1709
|
((events2) => {
|
|
1710
|
-
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;
|
|
1710
|
+
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;
|
|
1711
1711
|
const _TestBeginEventRequest = class _TestBeginEventRequest extends pb_16.Message {
|
|
1712
1712
|
constructor(data) {
|
|
1713
1713
|
super();
|
|
@@ -2963,6 +2963,135 @@ var testsystem4;
|
|
|
2963
2963
|
_one_of_decls12 = new WeakMap();
|
|
2964
2964
|
let MapTestRunEventRequest = _MapTestRunEventRequest;
|
|
2965
2965
|
events2.MapTestRunEventRequest = _MapTestRunEventRequest;
|
|
2966
|
+
const _TestRunEndEventRequest = class _TestRunEndEventRequest extends pb_16.Message {
|
|
2967
|
+
constructor(data) {
|
|
2968
|
+
super();
|
|
2969
|
+
__privateAdd(this, _one_of_decls13, []);
|
|
2970
|
+
pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls13));
|
|
2971
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2972
|
+
if ("run_id" in data && data.run_id != void 0) {
|
|
2973
|
+
this.run_id = data.run_id;
|
|
2974
|
+
}
|
|
2975
|
+
if ("final_status" in data && data.final_status != void 0) {
|
|
2976
|
+
this.final_status = data.final_status;
|
|
2977
|
+
}
|
|
2978
|
+
if ("start_time" in data && data.start_time != void 0) {
|
|
2979
|
+
this.start_time = data.start_time;
|
|
2980
|
+
}
|
|
2981
|
+
if ("duration" in data && data.duration != void 0) {
|
|
2982
|
+
this.duration = data.duration;
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
get run_id() {
|
|
2987
|
+
return pb_16.Message.getFieldWithDefault(this, 1, "");
|
|
2988
|
+
}
|
|
2989
|
+
set run_id(value) {
|
|
2990
|
+
pb_16.Message.setField(this, 1, value);
|
|
2991
|
+
}
|
|
2992
|
+
get final_status() {
|
|
2993
|
+
return pb_16.Message.getFieldWithDefault(this, 2, testsystem.v1.common.TestStatus.UNKNOWN);
|
|
2994
|
+
}
|
|
2995
|
+
set final_status(value) {
|
|
2996
|
+
pb_16.Message.setField(this, 2, value);
|
|
2997
|
+
}
|
|
2998
|
+
get start_time() {
|
|
2999
|
+
return pb_16.Message.getWrapperField(this, google.protobuf.Timestamp, 3);
|
|
3000
|
+
}
|
|
3001
|
+
set start_time(value) {
|
|
3002
|
+
pb_16.Message.setWrapperField(this, 3, value);
|
|
3003
|
+
}
|
|
3004
|
+
get has_start_time() {
|
|
3005
|
+
return pb_16.Message.getField(this, 3) != null;
|
|
3006
|
+
}
|
|
3007
|
+
get duration() {
|
|
3008
|
+
return pb_16.Message.getWrapperField(this, google2.protobuf.Duration, 4);
|
|
3009
|
+
}
|
|
3010
|
+
set duration(value) {
|
|
3011
|
+
pb_16.Message.setWrapperField(this, 4, value);
|
|
3012
|
+
}
|
|
3013
|
+
get has_duration() {
|
|
3014
|
+
return pb_16.Message.getField(this, 4) != null;
|
|
3015
|
+
}
|
|
3016
|
+
static fromObject(data) {
|
|
3017
|
+
const message = new _TestRunEndEventRequest({});
|
|
3018
|
+
if (data.run_id != null) {
|
|
3019
|
+
message.run_id = data.run_id;
|
|
3020
|
+
}
|
|
3021
|
+
if (data.final_status != null) {
|
|
3022
|
+
message.final_status = data.final_status;
|
|
3023
|
+
}
|
|
3024
|
+
if (data.start_time != null) {
|
|
3025
|
+
message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
|
|
3026
|
+
}
|
|
3027
|
+
if (data.duration != null) {
|
|
3028
|
+
message.duration = google2.protobuf.Duration.fromObject(data.duration);
|
|
3029
|
+
}
|
|
3030
|
+
return message;
|
|
3031
|
+
}
|
|
3032
|
+
toObject() {
|
|
3033
|
+
const data = {};
|
|
3034
|
+
if (this.run_id != null) {
|
|
3035
|
+
data.run_id = this.run_id;
|
|
3036
|
+
}
|
|
3037
|
+
if (this.final_status != null) {
|
|
3038
|
+
data.final_status = this.final_status;
|
|
3039
|
+
}
|
|
3040
|
+
if (this.start_time != null) {
|
|
3041
|
+
data.start_time = this.start_time.toObject();
|
|
3042
|
+
}
|
|
3043
|
+
if (this.duration != null) {
|
|
3044
|
+
data.duration = this.duration.toObject();
|
|
3045
|
+
}
|
|
3046
|
+
return data;
|
|
3047
|
+
}
|
|
3048
|
+
serialize(w) {
|
|
3049
|
+
const writer = w || new pb_16.BinaryWriter();
|
|
3050
|
+
if (this.run_id.length)
|
|
3051
|
+
writer.writeString(1, this.run_id);
|
|
3052
|
+
if (this.final_status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
3053
|
+
writer.writeEnum(2, this.final_status);
|
|
3054
|
+
if (this.has_start_time)
|
|
3055
|
+
writer.writeMessage(3, this.start_time, () => this.start_time.serialize(writer));
|
|
3056
|
+
if (this.has_duration)
|
|
3057
|
+
writer.writeMessage(4, this.duration, () => this.duration.serialize(writer));
|
|
3058
|
+
if (!w)
|
|
3059
|
+
return writer.getResultBuffer();
|
|
3060
|
+
}
|
|
3061
|
+
static deserialize(bytes) {
|
|
3062
|
+
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _TestRunEndEventRequest();
|
|
3063
|
+
while (reader.nextField()) {
|
|
3064
|
+
if (reader.isEndGroup())
|
|
3065
|
+
break;
|
|
3066
|
+
switch (reader.getFieldNumber()) {
|
|
3067
|
+
case 1:
|
|
3068
|
+
message.run_id = reader.readString();
|
|
3069
|
+
break;
|
|
3070
|
+
case 2:
|
|
3071
|
+
message.final_status = reader.readEnum();
|
|
3072
|
+
break;
|
|
3073
|
+
case 3:
|
|
3074
|
+
reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
|
|
3075
|
+
break;
|
|
3076
|
+
case 4:
|
|
3077
|
+
reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
|
|
3078
|
+
break;
|
|
3079
|
+
default:
|
|
3080
|
+
reader.skipField();
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
return message;
|
|
3084
|
+
}
|
|
3085
|
+
serializeBinary() {
|
|
3086
|
+
return this.serialize();
|
|
3087
|
+
}
|
|
3088
|
+
static deserializeBinary(bytes) {
|
|
3089
|
+
return _TestRunEndEventRequest.deserialize(bytes);
|
|
3090
|
+
}
|
|
3091
|
+
};
|
|
3092
|
+
_one_of_decls13 = new WeakMap();
|
|
3093
|
+
let TestRunEndEventRequest = _TestRunEndEventRequest;
|
|
3094
|
+
events2.TestRunEndEventRequest = _TestRunEndEventRequest;
|
|
2966
3095
|
})(events = v12.events || (v12.events = {}));
|
|
2967
3096
|
})(v1 = testsystem7.v1 || (testsystem7.v1 = {}));
|
|
2968
3097
|
})(testsystem4 || (testsystem4 = {}));
|
|
@@ -3192,6 +3321,15 @@ var testsystem5;
|
|
|
3192
3321
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3193
3322
|
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
3194
3323
|
},
|
|
3324
|
+
ReportRunEnd: {
|
|
3325
|
+
path: "/testsystem.v1.observer.TestEventCollector/ReportRunEnd",
|
|
3326
|
+
requestStream: false,
|
|
3327
|
+
responseStream: false,
|
|
3328
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3329
|
+
requestDeserialize: (bytes) => testsystem4.v1.events.TestRunEndEventRequest.deserialize(new Uint8Array(bytes)),
|
|
3330
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3331
|
+
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
3332
|
+
},
|
|
3195
3333
|
Heartbeat: {
|
|
3196
3334
|
path: "/testsystem.v1.observer.TestEventCollector/Heartbeat",
|
|
3197
3335
|
requestStream: false,
|
|
@@ -3239,6 +3377,9 @@ var testsystem5;
|
|
|
3239
3377
|
this.ReportStdOutput = (message, metadata, options, callback) => {
|
|
3240
3378
|
return super.ReportStdOutput(message, metadata, options, callback);
|
|
3241
3379
|
};
|
|
3380
|
+
this.ReportRunEnd = (message, metadata, options, callback) => {
|
|
3381
|
+
return super.ReportRunEnd(message, metadata, options, callback);
|
|
3382
|
+
};
|
|
3242
3383
|
this.Heartbeat = (message, metadata, options, callback) => {
|
|
3243
3384
|
return super.Heartbeat(message, metadata, options, callback);
|
|
3244
3385
|
};
|