@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.
Files changed (39) hide show
  1. package/dist/{chunk-ZQTVNKCI.mjs → chunk-2XDGK4PE.mjs} +2 -2
  2. package/dist/{chunk-O6ANB3BZ.mjs → chunk-3VVXARSH.mjs} +2 -2
  3. package/dist/{chunk-OJ7GAR77.mjs → chunk-HQ5G6E3D.mjs} +4 -4
  4. package/dist/{chunk-OGQKS5OT.mjs → chunk-LJC4OR2K.mjs} +14 -2
  5. package/dist/chunk-LJC4OR2K.mjs.map +1 -0
  6. package/dist/{chunk-4NKV5THZ.mjs → chunk-NAR56EZC.mjs} +2 -1
  7. package/dist/{chunk-AUREWCVS.mjs → chunk-OCVNUP7T.mjs} +2 -2
  8. package/dist/{chunk-3RZUJDZJ.mjs → chunk-VZW7JSLB.mjs} +133 -3
  9. package/dist/chunk-VZW7JSLB.mjs.map +1 -0
  10. package/dist/index.js +142 -1
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.mjs +3 -3
  13. package/dist/lib/testsystem/v1/events/events.d.ts +37 -0
  14. package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -1
  15. package/dist/lib/testsystem/v1/observer/observer.d.ts +11 -0
  16. package/dist/lib/testsystem/v1/observer/observer.d.ts.map +1 -1
  17. package/dist/testsystem/index.js +142 -1
  18. package/dist/testsystem/index.js.map +1 -1
  19. package/dist/testsystem/index.mjs +7 -7
  20. package/dist/testsystem/v1/entities/index.mjs +2 -2
  21. package/dist/testsystem/v1/events/index.js +130 -1
  22. package/dist/testsystem/v1/events/index.js.map +1 -1
  23. package/dist/testsystem/v1/events/index.mjs +3 -3
  24. package/dist/testsystem/v1/index.js +142 -1
  25. package/dist/testsystem/v1/index.js.map +1 -1
  26. package/dist/testsystem/v1/index.mjs +7 -7
  27. package/dist/testsystem/v1/observer/index.js +142 -1
  28. package/dist/testsystem/v1/observer/index.js.map +1 -1
  29. package/dist/testsystem/v1/observer/index.mjs +4 -4
  30. package/lib/testsystem/v1/events/events.ts +143 -0
  31. package/lib/testsystem/v1/observer/observer.ts +13 -0
  32. package/package.json +1 -1
  33. package/dist/chunk-3RZUJDZJ.mjs.map +0 -1
  34. package/dist/chunk-OGQKS5OT.mjs.map +0 -1
  35. /package/dist/{chunk-ZQTVNKCI.mjs.map → chunk-2XDGK4PE.mjs.map} +0 -0
  36. /package/dist/{chunk-O6ANB3BZ.mjs.map → chunk-3VVXARSH.mjs.map} +0 -0
  37. /package/dist/{chunk-OJ7GAR77.mjs.map → chunk-HQ5G6E3D.mjs.map} +0 -0
  38. /package/dist/{chunk-4NKV5THZ.mjs.map → chunk-NAR56EZC.mjs.map} +0 -0
  39. /package/dist/{chunk-AUREWCVS.mjs.map → chunk-OCVNUP7T.mjs.map} +0 -0
@@ -1,19 +1,19 @@
1
- import "../../chunk-OJ7GAR77.mjs";
1
+ import "../../chunk-HQ5G6E3D.mjs";
2
2
  import {
3
3
  common_exports
4
4
  } from "../../chunk-S5P2S67H.mjs";
5
5
  import {
6
6
  entities_exports
7
- } from "../../chunk-O6ANB3BZ.mjs";
7
+ } from "../../chunk-3VVXARSH.mjs";
8
8
  import {
9
9
  events_exports
10
- } from "../../chunk-AUREWCVS.mjs";
10
+ } from "../../chunk-OCVNUP7T.mjs";
11
11
  import {
12
12
  observer_exports
13
- } from "../../chunk-ZQTVNKCI.mjs";
14
- import "../../chunk-OGQKS5OT.mjs";
15
- import "../../chunk-3RZUJDZJ.mjs";
16
- import "../../chunk-4NKV5THZ.mjs";
13
+ } from "../../chunk-2XDGK4PE.mjs";
14
+ import "../../chunk-LJC4OR2K.mjs";
15
+ import "../../chunk-VZW7JSLB.mjs";
16
+ import "../../chunk-NAR56EZC.mjs";
17
17
  import "../../chunk-VBR2HXFF.mjs";
18
18
  export {
19
19
  common_exports as common,
@@ -1698,7 +1698,7 @@ var testsystem4;
1698
1698
  ((v12) => {
1699
1699
  let events;
1700
1700
  ((events2) => {
1701
- 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;
1701
+ 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;
1702
1702
  const _TestBeginEventRequest = class _TestBeginEventRequest extends pb_16.Message {
1703
1703
  constructor(data) {
1704
1704
  super();
@@ -2954,6 +2954,135 @@ var testsystem4;
2954
2954
  _one_of_decls12 = new WeakMap();
2955
2955
  let MapTestRunEventRequest = _MapTestRunEventRequest;
2956
2956
  events2.MapTestRunEventRequest = _MapTestRunEventRequest;
2957
+ const _TestRunEndEventRequest = class _TestRunEndEventRequest extends pb_16.Message {
2958
+ constructor(data) {
2959
+ super();
2960
+ __privateAdd(this, _one_of_decls13, []);
2961
+ pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls13));
2962
+ if (!Array.isArray(data) && typeof data == "object") {
2963
+ if ("run_id" in data && data.run_id != void 0) {
2964
+ this.run_id = data.run_id;
2965
+ }
2966
+ if ("final_status" in data && data.final_status != void 0) {
2967
+ this.final_status = data.final_status;
2968
+ }
2969
+ if ("start_time" in data && data.start_time != void 0) {
2970
+ this.start_time = data.start_time;
2971
+ }
2972
+ if ("duration" in data && data.duration != void 0) {
2973
+ this.duration = data.duration;
2974
+ }
2975
+ }
2976
+ }
2977
+ get run_id() {
2978
+ return pb_16.Message.getFieldWithDefault(this, 1, "");
2979
+ }
2980
+ set run_id(value) {
2981
+ pb_16.Message.setField(this, 1, value);
2982
+ }
2983
+ get final_status() {
2984
+ return pb_16.Message.getFieldWithDefault(this, 2, testsystem.v1.common.TestStatus.UNKNOWN);
2985
+ }
2986
+ set final_status(value) {
2987
+ pb_16.Message.setField(this, 2, value);
2988
+ }
2989
+ get start_time() {
2990
+ return pb_16.Message.getWrapperField(this, google.protobuf.Timestamp, 3);
2991
+ }
2992
+ set start_time(value) {
2993
+ pb_16.Message.setWrapperField(this, 3, value);
2994
+ }
2995
+ get has_start_time() {
2996
+ return pb_16.Message.getField(this, 3) != null;
2997
+ }
2998
+ get duration() {
2999
+ return pb_16.Message.getWrapperField(this, google2.protobuf.Duration, 4);
3000
+ }
3001
+ set duration(value) {
3002
+ pb_16.Message.setWrapperField(this, 4, value);
3003
+ }
3004
+ get has_duration() {
3005
+ return pb_16.Message.getField(this, 4) != null;
3006
+ }
3007
+ static fromObject(data) {
3008
+ const message = new _TestRunEndEventRequest({});
3009
+ if (data.run_id != null) {
3010
+ message.run_id = data.run_id;
3011
+ }
3012
+ if (data.final_status != null) {
3013
+ message.final_status = data.final_status;
3014
+ }
3015
+ if (data.start_time != null) {
3016
+ message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
3017
+ }
3018
+ if (data.duration != null) {
3019
+ message.duration = google2.protobuf.Duration.fromObject(data.duration);
3020
+ }
3021
+ return message;
3022
+ }
3023
+ toObject() {
3024
+ const data = {};
3025
+ if (this.run_id != null) {
3026
+ data.run_id = this.run_id;
3027
+ }
3028
+ if (this.final_status != null) {
3029
+ data.final_status = this.final_status;
3030
+ }
3031
+ if (this.start_time != null) {
3032
+ data.start_time = this.start_time.toObject();
3033
+ }
3034
+ if (this.duration != null) {
3035
+ data.duration = this.duration.toObject();
3036
+ }
3037
+ return data;
3038
+ }
3039
+ serialize(w) {
3040
+ const writer = w || new pb_16.BinaryWriter();
3041
+ if (this.run_id.length)
3042
+ writer.writeString(1, this.run_id);
3043
+ if (this.final_status != testsystem.v1.common.TestStatus.UNKNOWN)
3044
+ writer.writeEnum(2, this.final_status);
3045
+ if (this.has_start_time)
3046
+ writer.writeMessage(3, this.start_time, () => this.start_time.serialize(writer));
3047
+ if (this.has_duration)
3048
+ writer.writeMessage(4, this.duration, () => this.duration.serialize(writer));
3049
+ if (!w)
3050
+ return writer.getResultBuffer();
3051
+ }
3052
+ static deserialize(bytes) {
3053
+ const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _TestRunEndEventRequest();
3054
+ while (reader.nextField()) {
3055
+ if (reader.isEndGroup())
3056
+ break;
3057
+ switch (reader.getFieldNumber()) {
3058
+ case 1:
3059
+ message.run_id = reader.readString();
3060
+ break;
3061
+ case 2:
3062
+ message.final_status = reader.readEnum();
3063
+ break;
3064
+ case 3:
3065
+ reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
3066
+ break;
3067
+ case 4:
3068
+ reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
3069
+ break;
3070
+ default:
3071
+ reader.skipField();
3072
+ }
3073
+ }
3074
+ return message;
3075
+ }
3076
+ serializeBinary() {
3077
+ return this.serialize();
3078
+ }
3079
+ static deserializeBinary(bytes) {
3080
+ return _TestRunEndEventRequest.deserialize(bytes);
3081
+ }
3082
+ };
3083
+ _one_of_decls13 = new WeakMap();
3084
+ let TestRunEndEventRequest = _TestRunEndEventRequest;
3085
+ events2.TestRunEndEventRequest = _TestRunEndEventRequest;
2957
3086
  })(events = v12.events || (v12.events = {}));
2958
3087
  })(v1 = testsystem6.v1 || (testsystem6.v1 = {}));
2959
3088
  })(testsystem4 || (testsystem4 = {}));
@@ -3183,6 +3312,15 @@ var testsystem5;
3183
3312
  responseSerialize: (message) => Buffer.from(message.serialize()),
3184
3313
  responseDeserialize: (bytes) => AckResponse2.deserialize(new Uint8Array(bytes))
3185
3314
  },
3315
+ ReportRunEnd: {
3316
+ path: "/testsystem.v1.observer.TestEventCollector/ReportRunEnd",
3317
+ requestStream: false,
3318
+ responseStream: false,
3319
+ requestSerialize: (message) => Buffer.from(message.serialize()),
3320
+ requestDeserialize: (bytes) => testsystem4.v1.events.TestRunEndEventRequest.deserialize(new Uint8Array(bytes)),
3321
+ responseSerialize: (message) => Buffer.from(message.serialize()),
3322
+ responseDeserialize: (bytes) => AckResponse2.deserialize(new Uint8Array(bytes))
3323
+ },
3186
3324
  Heartbeat: {
3187
3325
  path: "/testsystem.v1.observer.TestEventCollector/Heartbeat",
3188
3326
  requestStream: false,
@@ -3230,6 +3368,9 @@ var testsystem5;
3230
3368
  this.ReportStdOutput = (message, metadata, options, callback) => {
3231
3369
  return super.ReportStdOutput(message, metadata, options, callback);
3232
3370
  };
3371
+ this.ReportRunEnd = (message, metadata, options, callback) => {
3372
+ return super.ReportRunEnd(message, metadata, options, callback);
3373
+ };
3233
3374
  this.Heartbeat = (message, metadata, options, callback) => {
3234
3375
  return super.Heartbeat(message, metadata, options, callback);
3235
3376
  };