@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HeartbeatEventRequest,
|
|
3
|
-
|
|
3
|
+
ReportRunStartEventRequest,
|
|
4
4
|
StdErrorEventRequest,
|
|
5
5
|
StdOutputEventRequest,
|
|
6
6
|
StepBeginEventRequest,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
TestErrorEventRequest,
|
|
13
13
|
TestFailureEventRequest,
|
|
14
14
|
TestRunEndEventRequest
|
|
15
|
-
} from "../../../chunk-
|
|
16
|
-
import "../../../chunk-
|
|
17
|
-
import "../../../chunk-
|
|
18
|
-
import "../../../chunk-
|
|
15
|
+
} from "../../../chunk-B3U6NKBI.mjs";
|
|
16
|
+
import "../../../chunk-ULRGJR5R.mjs";
|
|
17
|
+
import "../../../chunk-6LZLCU56.mjs";
|
|
18
|
+
import "../../../chunk-YUDCZY2W.mjs";
|
|
19
19
|
export {
|
|
20
20
|
HeartbeatEventRequest,
|
|
21
|
-
|
|
21
|
+
ReportRunStartEventRequest,
|
|
22
22
|
StdErrorEventRequest,
|
|
23
23
|
StdOutputEventRequest,
|
|
24
24
|
StepBeginEventRequest,
|
|
@@ -70,6 +70,8 @@ var testsystem;
|
|
|
70
70
|
TestStatus3[TestStatus3["BROKEN"] = 4] = "BROKEN";
|
|
71
71
|
TestStatus3[TestStatus3["TIMEDOUT"] = 5] = "TIMEDOUT";
|
|
72
72
|
TestStatus3[TestStatus3["INTERRUPTED"] = 6] = "INTERRUPTED";
|
|
73
|
+
TestStatus3[TestStatus3["RUNNING"] = 7] = "RUNNING";
|
|
74
|
+
TestStatus3[TestStatus3["NOT_RUN"] = 8] = "NOT_RUN";
|
|
73
75
|
})(TestStatus2 = common2.TestStatus || (common2.TestStatus = {}));
|
|
74
76
|
const _Attachment = class _Attachment extends pb_1.Message {
|
|
75
77
|
constructor(data) {
|
|
@@ -425,8 +427,8 @@ var testsystem2;
|
|
|
425
427
|
if ("run_id" in data && data.run_id != void 0) {
|
|
426
428
|
this.run_id = data.run_id;
|
|
427
429
|
}
|
|
428
|
-
if ("
|
|
429
|
-
this.
|
|
430
|
+
if ("test_suite_id" in data && data.test_suite_id != void 0) {
|
|
431
|
+
this.test_suite_id = data.test_suite_id;
|
|
430
432
|
}
|
|
431
433
|
if ("status" in data && data.status != void 0) {
|
|
432
434
|
this.status = data.status;
|
|
@@ -498,10 +500,10 @@ var testsystem2;
|
|
|
498
500
|
set run_id(value) {
|
|
499
501
|
pb_14.Message.setField(this, 4, value);
|
|
500
502
|
}
|
|
501
|
-
get
|
|
503
|
+
get test_suite_id() {
|
|
502
504
|
return pb_14.Message.getFieldWithDefault(this, 5, "");
|
|
503
505
|
}
|
|
504
|
-
set
|
|
506
|
+
set test_suite_id(value) {
|
|
505
507
|
pb_14.Message.setField(this, 5, value);
|
|
506
508
|
}
|
|
507
509
|
get status() {
|
|
@@ -611,8 +613,8 @@ var testsystem2;
|
|
|
611
613
|
if (data.run_id != null) {
|
|
612
614
|
message.run_id = data.run_id;
|
|
613
615
|
}
|
|
614
|
-
if (data.
|
|
615
|
-
message.
|
|
616
|
+
if (data.test_suite_id != null) {
|
|
617
|
+
message.test_suite_id = data.test_suite_id;
|
|
616
618
|
}
|
|
617
619
|
if (data.status != null) {
|
|
618
620
|
message.status = data.status;
|
|
@@ -672,8 +674,8 @@ var testsystem2;
|
|
|
672
674
|
if (this.run_id != null) {
|
|
673
675
|
data.run_id = this.run_id;
|
|
674
676
|
}
|
|
675
|
-
if (this.
|
|
676
|
-
data.
|
|
677
|
+
if (this.test_suite_id != null) {
|
|
678
|
+
data.test_suite_id = this.test_suite_id;
|
|
677
679
|
}
|
|
678
680
|
if (this.status != null) {
|
|
679
681
|
data.status = this.status;
|
|
@@ -729,8 +731,8 @@ var testsystem2;
|
|
|
729
731
|
writer.writeString(3, this.description);
|
|
730
732
|
if (this.run_id.length)
|
|
731
733
|
writer.writeString(4, this.run_id);
|
|
732
|
-
if (this.
|
|
733
|
-
writer.writeString(5, this.
|
|
734
|
+
if (this.test_suite_id.length)
|
|
735
|
+
writer.writeString(5, this.test_suite_id);
|
|
734
736
|
if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
735
737
|
writer.writeEnum(6, this.status);
|
|
736
738
|
if (this.has_start_time)
|
|
@@ -785,7 +787,7 @@ var testsystem2;
|
|
|
785
787
|
message.run_id = reader.readString();
|
|
786
788
|
break;
|
|
787
789
|
case 5:
|
|
788
|
-
message.
|
|
790
|
+
message.test_suite_id = reader.readString();
|
|
789
791
|
break;
|
|
790
792
|
case 6:
|
|
791
793
|
message.status = reader.readEnum();
|
|
@@ -857,8 +859,8 @@ var testsystem2;
|
|
|
857
859
|
if ("run_id" in data && data.run_id != void 0) {
|
|
858
860
|
this.run_id = data.run_id;
|
|
859
861
|
}
|
|
860
|
-
if ("
|
|
861
|
-
this.
|
|
862
|
+
if ("test_case_id" in data && data.test_case_id != void 0) {
|
|
863
|
+
this.test_case_id = data.test_case_id;
|
|
862
864
|
}
|
|
863
865
|
if ("title" in data && data.title != void 0) {
|
|
864
866
|
this.title = data.title;
|
|
@@ -899,6 +901,9 @@ var testsystem2;
|
|
|
899
901
|
if ("category" in data && data.category != void 0) {
|
|
900
902
|
this.category = data.category;
|
|
901
903
|
}
|
|
904
|
+
if ("retry_index" in data && data.retry_index != void 0) {
|
|
905
|
+
this.retry_index = data.retry_index;
|
|
906
|
+
}
|
|
902
907
|
}
|
|
903
908
|
if (!this.metadata)
|
|
904
909
|
this.metadata = /* @__PURE__ */ new Map();
|
|
@@ -915,10 +920,10 @@ var testsystem2;
|
|
|
915
920
|
set run_id(value) {
|
|
916
921
|
pb_14.Message.setField(this, 2, value);
|
|
917
922
|
}
|
|
918
|
-
get
|
|
923
|
+
get test_case_id() {
|
|
919
924
|
return pb_14.Message.getFieldWithDefault(this, 3, "");
|
|
920
925
|
}
|
|
921
|
-
set
|
|
926
|
+
set test_case_id(value) {
|
|
922
927
|
pb_14.Message.setField(this, 3, value);
|
|
923
928
|
}
|
|
924
929
|
get title() {
|
|
@@ -1005,6 +1010,12 @@ var testsystem2;
|
|
|
1005
1010
|
set category(value) {
|
|
1006
1011
|
pb_14.Message.setField(this, 16, value);
|
|
1007
1012
|
}
|
|
1013
|
+
get retry_index() {
|
|
1014
|
+
return pb_14.Message.getFieldWithDefault(this, 17, 0);
|
|
1015
|
+
}
|
|
1016
|
+
set retry_index(value) {
|
|
1017
|
+
pb_14.Message.setField(this, 17, value);
|
|
1018
|
+
}
|
|
1008
1019
|
static fromObject(data) {
|
|
1009
1020
|
const message = new _StepRun({});
|
|
1010
1021
|
if (data.id != null) {
|
|
@@ -1013,8 +1024,8 @@ var testsystem2;
|
|
|
1013
1024
|
if (data.run_id != null) {
|
|
1014
1025
|
message.run_id = data.run_id;
|
|
1015
1026
|
}
|
|
1016
|
-
if (data.
|
|
1017
|
-
message.
|
|
1027
|
+
if (data.test_case_id != null) {
|
|
1028
|
+
message.test_case_id = data.test_case_id;
|
|
1018
1029
|
}
|
|
1019
1030
|
if (data.title != null) {
|
|
1020
1031
|
message.title = data.title;
|
|
@@ -1055,6 +1066,9 @@ var testsystem2;
|
|
|
1055
1066
|
if (data.category != null) {
|
|
1056
1067
|
message.category = data.category;
|
|
1057
1068
|
}
|
|
1069
|
+
if (data.retry_index != null) {
|
|
1070
|
+
message.retry_index = data.retry_index;
|
|
1071
|
+
}
|
|
1058
1072
|
return message;
|
|
1059
1073
|
}
|
|
1060
1074
|
toObject() {
|
|
@@ -1065,8 +1079,8 @@ var testsystem2;
|
|
|
1065
1079
|
if (this.run_id != null) {
|
|
1066
1080
|
data.run_id = this.run_id;
|
|
1067
1081
|
}
|
|
1068
|
-
if (this.
|
|
1069
|
-
data.
|
|
1082
|
+
if (this.test_case_id != null) {
|
|
1083
|
+
data.test_case_id = this.test_case_id;
|
|
1070
1084
|
}
|
|
1071
1085
|
if (this.title != null) {
|
|
1072
1086
|
data.title = this.title;
|
|
@@ -1107,6 +1121,9 @@ var testsystem2;
|
|
|
1107
1121
|
if (this.category != null) {
|
|
1108
1122
|
data.category = this.category;
|
|
1109
1123
|
}
|
|
1124
|
+
if (this.retry_index != null) {
|
|
1125
|
+
data.retry_index = this.retry_index;
|
|
1126
|
+
}
|
|
1110
1127
|
return data;
|
|
1111
1128
|
}
|
|
1112
1129
|
serialize(w) {
|
|
@@ -1115,8 +1132,8 @@ var testsystem2;
|
|
|
1115
1132
|
writer.writeString(1, this.id);
|
|
1116
1133
|
if (this.run_id.length)
|
|
1117
1134
|
writer.writeString(2, this.run_id);
|
|
1118
|
-
if (this.
|
|
1119
|
-
writer.writeString(3, this.
|
|
1135
|
+
if (this.test_case_id.length)
|
|
1136
|
+
writer.writeString(3, this.test_case_id);
|
|
1120
1137
|
if (this.title.length)
|
|
1121
1138
|
writer.writeString(4, this.title);
|
|
1122
1139
|
if (this.description.length)
|
|
@@ -1147,6 +1164,8 @@ var testsystem2;
|
|
|
1147
1164
|
writer.writeString(15, this.location);
|
|
1148
1165
|
if (this.category.length)
|
|
1149
1166
|
writer.writeString(16, this.category);
|
|
1167
|
+
if (this.retry_index != 0)
|
|
1168
|
+
writer.writeInt32(17, this.retry_index);
|
|
1150
1169
|
if (!w)
|
|
1151
1170
|
return writer.getResultBuffer();
|
|
1152
1171
|
}
|
|
@@ -1163,7 +1182,7 @@ var testsystem2;
|
|
|
1163
1182
|
message.run_id = reader.readString();
|
|
1164
1183
|
break;
|
|
1165
1184
|
case 3:
|
|
1166
|
-
message.
|
|
1185
|
+
message.test_case_id = reader.readString();
|
|
1167
1186
|
break;
|
|
1168
1187
|
case 4:
|
|
1169
1188
|
message.title = reader.readString();
|
|
@@ -1204,6 +1223,9 @@ var testsystem2;
|
|
|
1204
1223
|
case 16:
|
|
1205
1224
|
message.category = reader.readString();
|
|
1206
1225
|
break;
|
|
1226
|
+
case 17:
|
|
1227
|
+
message.retry_index = reader.readInt32();
|
|
1228
|
+
break;
|
|
1207
1229
|
default:
|
|
1208
1230
|
reader.skipField();
|
|
1209
1231
|
}
|
|
@@ -1238,6 +1260,7 @@ var testsystem3;
|
|
|
1238
1260
|
SuiteType3[SuiteType3["ROOT"] = 0] = "ROOT";
|
|
1239
1261
|
SuiteType3[SuiteType3["PROJECT"] = 1] = "PROJECT";
|
|
1240
1262
|
SuiteType3[SuiteType3["SUBSUITE"] = 2] = "SUBSUITE";
|
|
1263
|
+
SuiteType3[SuiteType3["FILE"] = 3] = "FILE";
|
|
1241
1264
|
})(SuiteType2 = entities2.SuiteType || (entities2.SuiteType = {}));
|
|
1242
1265
|
const _TestSuiteRun = class _TestSuiteRun extends pb_15.Message {
|
|
1243
1266
|
constructor(data) {
|
|
@@ -1711,7 +1734,7 @@ var SuiteType = testsystem3.v1.entities.SuiteType;
|
|
|
1711
1734
|
var events_exports = {};
|
|
1712
1735
|
__export(events_exports, {
|
|
1713
1736
|
HeartbeatEventRequest: () => HeartbeatEventRequest,
|
|
1714
|
-
|
|
1737
|
+
ReportRunStartEventRequest: () => ReportRunStartEventRequest,
|
|
1715
1738
|
StdErrorEventRequest: () => StdErrorEventRequest,
|
|
1716
1739
|
StdOutputEventRequest: () => StdOutputEventRequest,
|
|
1717
1740
|
StepBeginEventRequest: () => StepBeginEventRequest,
|
|
@@ -2840,7 +2863,7 @@ var testsystem4;
|
|
|
2840
2863
|
_one_of_decls11 = new WeakMap();
|
|
2841
2864
|
let HeartbeatEventRequest2 = _HeartbeatEventRequest;
|
|
2842
2865
|
events2.HeartbeatEventRequest = _HeartbeatEventRequest;
|
|
2843
|
-
const
|
|
2866
|
+
const _ReportRunStartEventRequest = class _ReportRunStartEventRequest extends pb_16.Message {
|
|
2844
2867
|
constructor(data) {
|
|
2845
2868
|
super();
|
|
2846
2869
|
__privateAdd(this, _one_of_decls12, []);
|
|
@@ -2896,7 +2919,7 @@ var testsystem4;
|
|
|
2896
2919
|
pb_16.Message.setField(this, 5, value);
|
|
2897
2920
|
}
|
|
2898
2921
|
static fromObject(data) {
|
|
2899
|
-
const message = new
|
|
2922
|
+
const message = new _ReportRunStartEventRequest({});
|
|
2900
2923
|
if (data.run_id != null) {
|
|
2901
2924
|
message.run_id = data.run_id;
|
|
2902
2925
|
}
|
|
@@ -2953,7 +2976,7 @@ var testsystem4;
|
|
|
2953
2976
|
return writer.getResultBuffer();
|
|
2954
2977
|
}
|
|
2955
2978
|
static deserialize(bytes) {
|
|
2956
|
-
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new
|
|
2979
|
+
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _ReportRunStartEventRequest();
|
|
2957
2980
|
while (reader.nextField()) {
|
|
2958
2981
|
if (reader.isEndGroup())
|
|
2959
2982
|
break;
|
|
@@ -2983,12 +3006,12 @@ var testsystem4;
|
|
|
2983
3006
|
return this.serialize();
|
|
2984
3007
|
}
|
|
2985
3008
|
static deserializeBinary(bytes) {
|
|
2986
|
-
return
|
|
3009
|
+
return _ReportRunStartEventRequest.deserialize(bytes);
|
|
2987
3010
|
}
|
|
2988
3011
|
};
|
|
2989
3012
|
_one_of_decls12 = new WeakMap();
|
|
2990
|
-
let
|
|
2991
|
-
events2.
|
|
3013
|
+
let ReportRunStartEventRequest2 = _ReportRunStartEventRequest;
|
|
3014
|
+
events2.ReportRunStartEventRequest = _ReportRunStartEventRequest;
|
|
2992
3015
|
const _TestRunEndEventRequest = class _TestRunEndEventRequest extends pb_16.Message {
|
|
2993
3016
|
constructor(data) {
|
|
2994
3017
|
super();
|
|
@@ -3134,7 +3157,7 @@ var StdOutputEventRequest = testsystem4.v1.events.StdOutputEventRequest;
|
|
|
3134
3157
|
var SuiteBeginEventRequest = testsystem4.v1.events.SuiteBeginEventRequest;
|
|
3135
3158
|
var SuiteEndEventRequest = testsystem4.v1.events.SuiteEndEventRequest;
|
|
3136
3159
|
var HeartbeatEventRequest = testsystem4.v1.events.HeartbeatEventRequest;
|
|
3137
|
-
var
|
|
3160
|
+
var ReportRunStartEventRequest = testsystem4.v1.events.ReportRunStartEventRequest;
|
|
3138
3161
|
var TestRunEndEventRequest = testsystem4.v1.events.TestRunEndEventRequest;
|
|
3139
3162
|
|
|
3140
3163
|
// testsystem/v1/common/index.ts
|
|
@@ -3279,12 +3302,12 @@ var testsystem5;
|
|
|
3279
3302
|
class UnimplementedTestEventCollectorService {
|
|
3280
3303
|
}
|
|
3281
3304
|
UnimplementedTestEventCollectorService.definition = {
|
|
3282
|
-
|
|
3283
|
-
path: "/testsystem.v1.observer.TestEventCollector/
|
|
3305
|
+
ReportRunStart: {
|
|
3306
|
+
path: "/testsystem.v1.observer.TestEventCollector/ReportRunStart",
|
|
3284
3307
|
requestStream: false,
|
|
3285
3308
|
responseStream: false,
|
|
3286
3309
|
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3287
|
-
requestDeserialize: (bytes) => testsystem4.v1.events.
|
|
3310
|
+
requestDeserialize: (bytes) => testsystem4.v1.events.ReportRunStartEventRequest.deserialize(new Uint8Array(bytes)),
|
|
3288
3311
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3289
3312
|
responseDeserialize: (bytes) => AckResponse2.deserialize(new Uint8Array(bytes))
|
|
3290
3313
|
},
|
|
@@ -3401,8 +3424,8 @@ var testsystem5;
|
|
|
3401
3424
|
class TestEventCollectorClient2 extends grpc_1.makeGenericClientConstructor(UnimplementedTestEventCollectorService.definition, "TestEventCollector", {}) {
|
|
3402
3425
|
constructor(address, credentials, options) {
|
|
3403
3426
|
super(address, credentials, options);
|
|
3404
|
-
this.
|
|
3405
|
-
return super.
|
|
3427
|
+
this.ReportRunStart = (message, metadata, options, callback) => {
|
|
3428
|
+
return super.ReportRunStart(message, metadata, options, callback);
|
|
3406
3429
|
};
|
|
3407
3430
|
this.ReportSuiteBegin = (message, metadata, options, callback) => {
|
|
3408
3431
|
return super.ReportSuiteBegin(message, metadata, options, callback);
|