@stanterprise/protobuf 0.0.18 → 0.0.20
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-2XDGK4PE.mjs → chunk-4SR4H5H3.mjs} +3 -3
- package/dist/{chunk-NAR56EZC.mjs → chunk-6LZLCU56.mjs} +45 -24
- package/dist/chunk-6LZLCU56.mjs.map +1 -0
- package/dist/{chunk-AOE34GC6.mjs → chunk-7ZKHPRD4.mjs} +6 -6
- package/dist/{chunk-LJC4OR2K.mjs → chunk-AEDC4CB5.mjs} +8 -8
- package/dist/chunk-AEDC4CB5.mjs.map +1 -0
- package/dist/{chunk-5DJKNU7K.mjs → chunk-B3U6NKBI.mjs} +6 -6
- package/dist/{chunk-5DJKNU7K.mjs.map → chunk-B3U6NKBI.mjs.map} +1 -1
- package/dist/{chunk-VZW7JSLB.mjs → chunk-ULRGJR5R.mjs} +9 -9
- package/dist/{chunk-VZW7JSLB.mjs.map → chunk-ULRGJR5R.mjs.map} +1 -1
- package/dist/{chunk-S5P2S67H.mjs → chunk-WYXRRQPZ.mjs} +2 -2
- package/dist/{chunk-3VVXARSH.mjs → chunk-XWJCF6BO.mjs} +3 -3
- package/dist/{chunk-VBR2HXFF.mjs → chunk-YUDCZY2W.mjs} +3 -1
- package/dist/chunk-YUDCZY2W.mjs.map +1 -0
- package/dist/index.js +56 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- 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 +15 -10
- package/dist/lib/testsystem/v1/entities/test_case.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts +2 -1
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/events/events.d.ts +4 -4
- package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/observer/observer.d.ts +5 -5
- package/dist/lib/testsystem/v1/observer/observer.d.ts.map +1 -1
- package/dist/testsystem/index.js +58 -35
- package/dist/testsystem/index.js.map +1 -1
- package/dist/testsystem/index.mjs +9 -9
- package/dist/testsystem/v1/common/index.js +2 -0
- package/dist/testsystem/v1/common/index.js.map +1 -1
- package/dist/testsystem/v1/common/index.mjs +2 -2
- package/dist/testsystem/v1/entities/index.js +45 -22
- package/dist/testsystem/v1/entities/index.js.map +1 -1
- package/dist/testsystem/v1/entities/index.mjs +3 -3
- package/dist/testsystem/v1/events/index.d.ts +2 -2
- package/dist/testsystem/v1/events/index.d.ts.map +1 -1
- package/dist/testsystem/v1/events/index.js +54 -31
- package/dist/testsystem/v1/events/index.js.map +1 -1
- package/dist/testsystem/v1/events/index.mjs +6 -6
- package/dist/testsystem/v1/index.js +58 -35
- package/dist/testsystem/v1/index.js.map +1 -1
- package/dist/testsystem/v1/index.mjs +9 -9
- package/dist/testsystem/v1/observer/index.js +56 -33
- package/dist/testsystem/v1/observer/index.js.map +1 -1
- package/dist/testsystem/v1/observer/index.mjs +5 -5
- package/lib/testsystem/v1/common/common.ts +3 -1
- package/lib/testsystem/v1/entities/test_case.ts +51 -28
- package/lib/testsystem/v1/entities/test_suite.ts +2 -1
- package/lib/testsystem/v1/events/events.ts +7 -7
- package/lib/testsystem/v1/observer/observer.ts +7 -7
- package/package.json +1 -1
- package/dist/chunk-LJC4OR2K.mjs.map +0 -1
- package/dist/chunk-NAR56EZC.mjs.map +0 -1
- package/dist/chunk-VBR2HXFF.mjs.map +0 -1
- /package/dist/{chunk-2XDGK4PE.mjs.map → chunk-4SR4H5H3.mjs.map} +0 -0
- /package/dist/{chunk-AOE34GC6.mjs.map → chunk-7ZKHPRD4.mjs.map} +0 -0
- /package/dist/{chunk-S5P2S67H.mjs.map → chunk-WYXRRQPZ.mjs.map} +0 -0
- /package/dist/{chunk-3VVXARSH.mjs.map → chunk-XWJCF6BO.mjs.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -161,6 +161,8 @@ var testsystem;
|
|
|
161
161
|
TestStatus2[TestStatus2["BROKEN"] = 4] = "BROKEN";
|
|
162
162
|
TestStatus2[TestStatus2["TIMEDOUT"] = 5] = "TIMEDOUT";
|
|
163
163
|
TestStatus2[TestStatus2["INTERRUPTED"] = 6] = "INTERRUPTED";
|
|
164
|
+
TestStatus2[TestStatus2["RUNNING"] = 7] = "RUNNING";
|
|
165
|
+
TestStatus2[TestStatus2["NOT_RUN"] = 8] = "NOT_RUN";
|
|
164
166
|
})(TestStatus = common2.TestStatus || (common2.TestStatus = {}));
|
|
165
167
|
const _Attachment = class _Attachment extends pb_12.Message {
|
|
166
168
|
constructor(data) {
|
|
@@ -423,8 +425,8 @@ var testsystem2;
|
|
|
423
425
|
if ("run_id" in data && data.run_id != void 0) {
|
|
424
426
|
this.run_id = data.run_id;
|
|
425
427
|
}
|
|
426
|
-
if ("
|
|
427
|
-
this.
|
|
428
|
+
if ("test_suite_id" in data && data.test_suite_id != void 0) {
|
|
429
|
+
this.test_suite_id = data.test_suite_id;
|
|
428
430
|
}
|
|
429
431
|
if ("status" in data && data.status != void 0) {
|
|
430
432
|
this.status = data.status;
|
|
@@ -496,10 +498,10 @@ var testsystem2;
|
|
|
496
498
|
set run_id(value) {
|
|
497
499
|
pb_14.Message.setField(this, 4, value);
|
|
498
500
|
}
|
|
499
|
-
get
|
|
501
|
+
get test_suite_id() {
|
|
500
502
|
return pb_14.Message.getFieldWithDefault(this, 5, "");
|
|
501
503
|
}
|
|
502
|
-
set
|
|
504
|
+
set test_suite_id(value) {
|
|
503
505
|
pb_14.Message.setField(this, 5, value);
|
|
504
506
|
}
|
|
505
507
|
get status() {
|
|
@@ -609,8 +611,8 @@ var testsystem2;
|
|
|
609
611
|
if (data.run_id != null) {
|
|
610
612
|
message.run_id = data.run_id;
|
|
611
613
|
}
|
|
612
|
-
if (data.
|
|
613
|
-
message.
|
|
614
|
+
if (data.test_suite_id != null) {
|
|
615
|
+
message.test_suite_id = data.test_suite_id;
|
|
614
616
|
}
|
|
615
617
|
if (data.status != null) {
|
|
616
618
|
message.status = data.status;
|
|
@@ -670,8 +672,8 @@ var testsystem2;
|
|
|
670
672
|
if (this.run_id != null) {
|
|
671
673
|
data.run_id = this.run_id;
|
|
672
674
|
}
|
|
673
|
-
if (this.
|
|
674
|
-
data.
|
|
675
|
+
if (this.test_suite_id != null) {
|
|
676
|
+
data.test_suite_id = this.test_suite_id;
|
|
675
677
|
}
|
|
676
678
|
if (this.status != null) {
|
|
677
679
|
data.status = this.status;
|
|
@@ -727,8 +729,8 @@ var testsystem2;
|
|
|
727
729
|
writer.writeString(3, this.description);
|
|
728
730
|
if (this.run_id.length)
|
|
729
731
|
writer.writeString(4, this.run_id);
|
|
730
|
-
if (this.
|
|
731
|
-
writer.writeString(5, this.
|
|
732
|
+
if (this.test_suite_id.length)
|
|
733
|
+
writer.writeString(5, this.test_suite_id);
|
|
732
734
|
if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
733
735
|
writer.writeEnum(6, this.status);
|
|
734
736
|
if (this.has_start_time)
|
|
@@ -783,7 +785,7 @@ var testsystem2;
|
|
|
783
785
|
message.run_id = reader.readString();
|
|
784
786
|
break;
|
|
785
787
|
case 5:
|
|
786
|
-
message.
|
|
788
|
+
message.test_suite_id = reader.readString();
|
|
787
789
|
break;
|
|
788
790
|
case 6:
|
|
789
791
|
message.status = reader.readEnum();
|
|
@@ -855,8 +857,8 @@ var testsystem2;
|
|
|
855
857
|
if ("run_id" in data && data.run_id != void 0) {
|
|
856
858
|
this.run_id = data.run_id;
|
|
857
859
|
}
|
|
858
|
-
if ("
|
|
859
|
-
this.
|
|
860
|
+
if ("test_case_id" in data && data.test_case_id != void 0) {
|
|
861
|
+
this.test_case_id = data.test_case_id;
|
|
860
862
|
}
|
|
861
863
|
if ("title" in data && data.title != void 0) {
|
|
862
864
|
this.title = data.title;
|
|
@@ -897,6 +899,9 @@ var testsystem2;
|
|
|
897
899
|
if ("category" in data && data.category != void 0) {
|
|
898
900
|
this.category = data.category;
|
|
899
901
|
}
|
|
902
|
+
if ("retry_index" in data && data.retry_index != void 0) {
|
|
903
|
+
this.retry_index = data.retry_index;
|
|
904
|
+
}
|
|
900
905
|
}
|
|
901
906
|
if (!this.metadata)
|
|
902
907
|
this.metadata = /* @__PURE__ */ new Map();
|
|
@@ -913,10 +918,10 @@ var testsystem2;
|
|
|
913
918
|
set run_id(value) {
|
|
914
919
|
pb_14.Message.setField(this, 2, value);
|
|
915
920
|
}
|
|
916
|
-
get
|
|
921
|
+
get test_case_id() {
|
|
917
922
|
return pb_14.Message.getFieldWithDefault(this, 3, "");
|
|
918
923
|
}
|
|
919
|
-
set
|
|
924
|
+
set test_case_id(value) {
|
|
920
925
|
pb_14.Message.setField(this, 3, value);
|
|
921
926
|
}
|
|
922
927
|
get title() {
|
|
@@ -1003,6 +1008,12 @@ var testsystem2;
|
|
|
1003
1008
|
set category(value) {
|
|
1004
1009
|
pb_14.Message.setField(this, 16, value);
|
|
1005
1010
|
}
|
|
1011
|
+
get retry_index() {
|
|
1012
|
+
return pb_14.Message.getFieldWithDefault(this, 17, 0);
|
|
1013
|
+
}
|
|
1014
|
+
set retry_index(value) {
|
|
1015
|
+
pb_14.Message.setField(this, 17, value);
|
|
1016
|
+
}
|
|
1006
1017
|
static fromObject(data) {
|
|
1007
1018
|
const message = new _StepRun({});
|
|
1008
1019
|
if (data.id != null) {
|
|
@@ -1011,8 +1022,8 @@ var testsystem2;
|
|
|
1011
1022
|
if (data.run_id != null) {
|
|
1012
1023
|
message.run_id = data.run_id;
|
|
1013
1024
|
}
|
|
1014
|
-
if (data.
|
|
1015
|
-
message.
|
|
1025
|
+
if (data.test_case_id != null) {
|
|
1026
|
+
message.test_case_id = data.test_case_id;
|
|
1016
1027
|
}
|
|
1017
1028
|
if (data.title != null) {
|
|
1018
1029
|
message.title = data.title;
|
|
@@ -1053,6 +1064,9 @@ var testsystem2;
|
|
|
1053
1064
|
if (data.category != null) {
|
|
1054
1065
|
message.category = data.category;
|
|
1055
1066
|
}
|
|
1067
|
+
if (data.retry_index != null) {
|
|
1068
|
+
message.retry_index = data.retry_index;
|
|
1069
|
+
}
|
|
1056
1070
|
return message;
|
|
1057
1071
|
}
|
|
1058
1072
|
toObject() {
|
|
@@ -1063,8 +1077,8 @@ var testsystem2;
|
|
|
1063
1077
|
if (this.run_id != null) {
|
|
1064
1078
|
data.run_id = this.run_id;
|
|
1065
1079
|
}
|
|
1066
|
-
if (this.
|
|
1067
|
-
data.
|
|
1080
|
+
if (this.test_case_id != null) {
|
|
1081
|
+
data.test_case_id = this.test_case_id;
|
|
1068
1082
|
}
|
|
1069
1083
|
if (this.title != null) {
|
|
1070
1084
|
data.title = this.title;
|
|
@@ -1105,6 +1119,9 @@ var testsystem2;
|
|
|
1105
1119
|
if (this.category != null) {
|
|
1106
1120
|
data.category = this.category;
|
|
1107
1121
|
}
|
|
1122
|
+
if (this.retry_index != null) {
|
|
1123
|
+
data.retry_index = this.retry_index;
|
|
1124
|
+
}
|
|
1108
1125
|
return data;
|
|
1109
1126
|
}
|
|
1110
1127
|
serialize(w) {
|
|
@@ -1113,8 +1130,8 @@ var testsystem2;
|
|
|
1113
1130
|
writer.writeString(1, this.id);
|
|
1114
1131
|
if (this.run_id.length)
|
|
1115
1132
|
writer.writeString(2, this.run_id);
|
|
1116
|
-
if (this.
|
|
1117
|
-
writer.writeString(3, this.
|
|
1133
|
+
if (this.test_case_id.length)
|
|
1134
|
+
writer.writeString(3, this.test_case_id);
|
|
1118
1135
|
if (this.title.length)
|
|
1119
1136
|
writer.writeString(4, this.title);
|
|
1120
1137
|
if (this.description.length)
|
|
@@ -1145,6 +1162,8 @@ var testsystem2;
|
|
|
1145
1162
|
writer.writeString(15, this.location);
|
|
1146
1163
|
if (this.category.length)
|
|
1147
1164
|
writer.writeString(16, this.category);
|
|
1165
|
+
if (this.retry_index != 0)
|
|
1166
|
+
writer.writeInt32(17, this.retry_index);
|
|
1148
1167
|
if (!w)
|
|
1149
1168
|
return writer.getResultBuffer();
|
|
1150
1169
|
}
|
|
@@ -1161,7 +1180,7 @@ var testsystem2;
|
|
|
1161
1180
|
message.run_id = reader.readString();
|
|
1162
1181
|
break;
|
|
1163
1182
|
case 3:
|
|
1164
|
-
message.
|
|
1183
|
+
message.test_case_id = reader.readString();
|
|
1165
1184
|
break;
|
|
1166
1185
|
case 4:
|
|
1167
1186
|
message.title = reader.readString();
|
|
@@ -1202,6 +1221,9 @@ var testsystem2;
|
|
|
1202
1221
|
case 16:
|
|
1203
1222
|
message.category = reader.readString();
|
|
1204
1223
|
break;
|
|
1224
|
+
case 17:
|
|
1225
|
+
message.retry_index = reader.readInt32();
|
|
1226
|
+
break;
|
|
1205
1227
|
default:
|
|
1206
1228
|
reader.skipField();
|
|
1207
1229
|
}
|
|
@@ -1236,6 +1258,7 @@ var testsystem3;
|
|
|
1236
1258
|
SuiteType2[SuiteType2["ROOT"] = 0] = "ROOT";
|
|
1237
1259
|
SuiteType2[SuiteType2["PROJECT"] = 1] = "PROJECT";
|
|
1238
1260
|
SuiteType2[SuiteType2["SUBSUITE"] = 2] = "SUBSUITE";
|
|
1261
|
+
SuiteType2[SuiteType2["FILE"] = 3] = "FILE";
|
|
1239
1262
|
})(SuiteType = entities2.SuiteType || (entities2.SuiteType = {}));
|
|
1240
1263
|
const _TestSuiteRun = class _TestSuiteRun extends pb_15.Message {
|
|
1241
1264
|
constructor(data) {
|
|
@@ -2814,7 +2837,7 @@ var testsystem4;
|
|
|
2814
2837
|
_one_of_decls11 = new WeakMap();
|
|
2815
2838
|
let HeartbeatEventRequest = _HeartbeatEventRequest;
|
|
2816
2839
|
events2.HeartbeatEventRequest = _HeartbeatEventRequest;
|
|
2817
|
-
const
|
|
2840
|
+
const _ReportRunStartEventRequest = class _ReportRunStartEventRequest extends pb_16.Message {
|
|
2818
2841
|
constructor(data) {
|
|
2819
2842
|
super();
|
|
2820
2843
|
__privateAdd(this, _one_of_decls12, []);
|
|
@@ -2870,7 +2893,7 @@ var testsystem4;
|
|
|
2870
2893
|
pb_16.Message.setField(this, 5, value);
|
|
2871
2894
|
}
|
|
2872
2895
|
static fromObject(data) {
|
|
2873
|
-
const message = new
|
|
2896
|
+
const message = new _ReportRunStartEventRequest({});
|
|
2874
2897
|
if (data.run_id != null) {
|
|
2875
2898
|
message.run_id = data.run_id;
|
|
2876
2899
|
}
|
|
@@ -2927,7 +2950,7 @@ var testsystem4;
|
|
|
2927
2950
|
return writer.getResultBuffer();
|
|
2928
2951
|
}
|
|
2929
2952
|
static deserialize(bytes) {
|
|
2930
|
-
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new
|
|
2953
|
+
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _ReportRunStartEventRequest();
|
|
2931
2954
|
while (reader.nextField()) {
|
|
2932
2955
|
if (reader.isEndGroup())
|
|
2933
2956
|
break;
|
|
@@ -2957,12 +2980,12 @@ var testsystem4;
|
|
|
2957
2980
|
return this.serialize();
|
|
2958
2981
|
}
|
|
2959
2982
|
static deserializeBinary(bytes) {
|
|
2960
|
-
return
|
|
2983
|
+
return _ReportRunStartEventRequest.deserialize(bytes);
|
|
2961
2984
|
}
|
|
2962
2985
|
};
|
|
2963
2986
|
_one_of_decls12 = new WeakMap();
|
|
2964
|
-
let
|
|
2965
|
-
events2.
|
|
2987
|
+
let ReportRunStartEventRequest = _ReportRunStartEventRequest;
|
|
2988
|
+
events2.ReportRunStartEventRequest = _ReportRunStartEventRequest;
|
|
2966
2989
|
const _TestRunEndEventRequest = class _TestRunEndEventRequest extends pb_16.Message {
|
|
2967
2990
|
constructor(data) {
|
|
2968
2991
|
super();
|
|
@@ -3222,12 +3245,12 @@ var testsystem5;
|
|
|
3222
3245
|
class UnimplementedTestEventCollectorService {
|
|
3223
3246
|
}
|
|
3224
3247
|
UnimplementedTestEventCollectorService.definition = {
|
|
3225
|
-
|
|
3226
|
-
path: "/testsystem.v1.observer.TestEventCollector/
|
|
3248
|
+
ReportRunStart: {
|
|
3249
|
+
path: "/testsystem.v1.observer.TestEventCollector/ReportRunStart",
|
|
3227
3250
|
requestStream: false,
|
|
3228
3251
|
responseStream: false,
|
|
3229
3252
|
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3230
|
-
requestDeserialize: (bytes) => testsystem4.v1.events.
|
|
3253
|
+
requestDeserialize: (bytes) => testsystem4.v1.events.ReportRunStartEventRequest.deserialize(new Uint8Array(bytes)),
|
|
3231
3254
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3232
3255
|
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
3233
3256
|
},
|
|
@@ -3344,8 +3367,8 @@ var testsystem5;
|
|
|
3344
3367
|
class TestEventCollectorClient extends grpc_1.makeGenericClientConstructor(UnimplementedTestEventCollectorService.definition, "TestEventCollector", {}) {
|
|
3345
3368
|
constructor(address, credentials, options) {
|
|
3346
3369
|
super(address, credentials, options);
|
|
3347
|
-
this.
|
|
3348
|
-
return super.
|
|
3370
|
+
this.ReportRunStart = (message, metadata, options, callback) => {
|
|
3371
|
+
return super.ReportRunStart(message, metadata, options, callback);
|
|
3349
3372
|
};
|
|
3350
3373
|
this.ReportSuiteBegin = (message, metadata, options, callback) => {
|
|
3351
3374
|
return super.ReportSuiteBegin(message, metadata, options, callback);
|