@stanterprise/protobuf 0.0.4 → 0.0.6
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/README.md +129 -1
- package/dist/index.d.ts +2 -407
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1315 -737
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1300 -727
- package/dist/index.mjs.map +1 -1
- package/dist/lib/google/protobuf/timestamp.d.ts +33 -0
- package/dist/lib/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/lib/index.d.ts +6 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/testsystem/v1/common/common.d.ts +57 -0
- package/dist/lib/testsystem/v1/common/common.d.ts.map +1 -0
- package/dist/lib/testsystem/v1/entities/entities.d.ts +108 -0
- package/dist/lib/testsystem/v1/entities/entities.d.ts.map +1 -0
- package/dist/lib/testsystem/v1/events/events.d.ts +154 -0
- package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -0
- package/dist/lib/testsystem/v1/observer/observer.d.ts +92 -0
- package/dist/lib/testsystem/v1/observer/observer.d.ts.map +1 -0
- package/lib/google/protobuf/timestamp.ts +98 -0
- package/lib/index.ts +5 -0
- package/lib/testsystem/v1/common/common.ts +171 -0
- package/lib/testsystem/v1/entities/entities.ts +405 -0
- package/lib/testsystem/v1/events/events.ts +573 -0
- package/lib/testsystem/v1/observer/observer.ts +209 -0
- package/package.json +22 -11
- package/dist/index.d.mts +0 -407
package/dist/index.mjs
CHANGED
|
@@ -1,747 +1,1320 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
4
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
5
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
6
|
-
var TestStatus = /* @__PURE__ */ ((TestStatus2) => {
|
|
7
|
-
TestStatus2[TestStatus2["UNKNOWN"] = 0] = "UNKNOWN";
|
|
8
|
-
TestStatus2[TestStatus2["PASSED"] = 1] = "PASSED";
|
|
9
|
-
TestStatus2[TestStatus2["FAILED"] = 2] = "FAILED";
|
|
10
|
-
TestStatus2[TestStatus2["SKIPPED"] = 3] = "SKIPPED";
|
|
11
|
-
TestStatus2[TestStatus2["BROKEN"] = 4] = "BROKEN";
|
|
12
|
-
return TestStatus2;
|
|
13
|
-
})(TestStatus || {});
|
|
14
|
-
var Attachment$Type = class extends MessageType {
|
|
15
|
-
constructor() {
|
|
16
|
-
super("testsystem.common.Attachment", [
|
|
17
|
-
{
|
|
18
|
-
no: 1,
|
|
19
|
-
name: "name",
|
|
20
|
-
kind: "scalar",
|
|
21
|
-
T: 9
|
|
22
|
-
/*ScalarType.STRING*/
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
no: 2,
|
|
26
|
-
name: "mime_type",
|
|
27
|
-
kind: "scalar",
|
|
28
|
-
T: 9
|
|
29
|
-
/*ScalarType.STRING*/
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
no: 3,
|
|
33
|
-
name: "content",
|
|
34
|
-
kind: "scalar",
|
|
35
|
-
T: 12
|
|
36
|
-
/*ScalarType.BYTES*/
|
|
37
|
-
}
|
|
38
|
-
]);
|
|
39
|
-
}
|
|
40
|
-
create(value) {
|
|
41
|
-
const message = globalThis.Object.create(this.messagePrototype);
|
|
42
|
-
message.name = "";
|
|
43
|
-
message.mimeType = "";
|
|
44
|
-
message.content = new Uint8Array(0);
|
|
45
|
-
if (value !== void 0)
|
|
46
|
-
reflectionMergePartial(this, message, value);
|
|
47
|
-
return message;
|
|
48
|
-
}
|
|
49
|
-
internalBinaryRead(reader, length, options, target) {
|
|
50
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
51
|
-
while (reader.pos < end) {
|
|
52
|
-
let [fieldNo, wireType] = reader.tag();
|
|
53
|
-
switch (fieldNo) {
|
|
54
|
-
case /* string name */
|
|
55
|
-
1:
|
|
56
|
-
message.name = reader.string();
|
|
57
|
-
break;
|
|
58
|
-
case /* string mime_type */
|
|
59
|
-
2:
|
|
60
|
-
message.mimeType = reader.string();
|
|
61
|
-
break;
|
|
62
|
-
case /* bytes content */
|
|
63
|
-
3:
|
|
64
|
-
message.content = reader.bytes();
|
|
65
|
-
break;
|
|
66
|
-
default:
|
|
67
|
-
let u = options.readUnknownField;
|
|
68
|
-
if (u === "throw")
|
|
69
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
70
|
-
let d = reader.skip(wireType);
|
|
71
|
-
if (u !== false)
|
|
72
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return message;
|
|
76
|
-
}
|
|
77
|
-
internalBinaryWrite(message, writer, options) {
|
|
78
|
-
if (message.name !== "")
|
|
79
|
-
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
80
|
-
if (message.mimeType !== "")
|
|
81
|
-
writer.tag(2, WireType.LengthDelimited).string(message.mimeType);
|
|
82
|
-
if (message.content.length)
|
|
83
|
-
writer.tag(3, WireType.LengthDelimited).bytes(message.content);
|
|
84
|
-
let u = options.writeUnknownFields;
|
|
85
|
-
if (u !== false)
|
|
86
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
87
|
-
return writer;
|
|
88
|
-
}
|
|
1
|
+
var __typeError = (msg) => {
|
|
2
|
+
throw TypeError(msg);
|
|
89
3
|
};
|
|
90
|
-
var
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
import { WireType as WireType3 } from "@protobuf-ts/runtime";
|
|
94
|
-
import { UnknownFieldHandler as UnknownFieldHandler3 } from "@protobuf-ts/runtime";
|
|
95
|
-
import { reflectionMergePartial as reflectionMergePartial3 } from "@protobuf-ts/runtime";
|
|
96
|
-
import { MessageType as MessageType3 } from "@protobuf-ts/runtime";
|
|
4
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
5
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
6
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
97
7
|
|
|
98
8
|
// lib/google/protobuf/timestamp.ts
|
|
99
|
-
import
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
kind: "scalar",
|
|
119
|
-
T: 5
|
|
120
|
-
/*ScalarType.INT32*/
|
|
9
|
+
import * as pb_1 from "google-protobuf";
|
|
10
|
+
var google;
|
|
11
|
+
((google2) => {
|
|
12
|
+
let protobuf;
|
|
13
|
+
((protobuf2) => {
|
|
14
|
+
var _one_of_decls;
|
|
15
|
+
const _Timestamp = class _Timestamp extends pb_1.Message {
|
|
16
|
+
constructor(data) {
|
|
17
|
+
super();
|
|
18
|
+
__privateAdd(this, _one_of_decls, []);
|
|
19
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls));
|
|
20
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
21
|
+
if ("seconds" in data && data.seconds != void 0) {
|
|
22
|
+
this.seconds = data.seconds;
|
|
23
|
+
}
|
|
24
|
+
if ("nanos" in data && data.nanos != void 0) {
|
|
25
|
+
this.nanos = data.nanos;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
121
28
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Creates a new `Timestamp` for the current time.
|
|
126
|
-
*/
|
|
127
|
-
now() {
|
|
128
|
-
const msg = this.create();
|
|
129
|
-
const ms = Date.now();
|
|
130
|
-
msg.seconds = PbLong.from(Math.floor(ms / 1e3)).toString();
|
|
131
|
-
msg.nanos = ms % 1e3 * 1e6;
|
|
132
|
-
return msg;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Converts a `Timestamp` to a JavaScript Date.
|
|
136
|
-
*/
|
|
137
|
-
toDate(message) {
|
|
138
|
-
return new Date(PbLong.from(message.seconds).toNumber() * 1e3 + Math.ceil(message.nanos / 1e6));
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Converts a JavaScript Date to a `Timestamp`.
|
|
142
|
-
*/
|
|
143
|
-
fromDate(date) {
|
|
144
|
-
const msg = this.create();
|
|
145
|
-
const ms = date.getTime();
|
|
146
|
-
msg.seconds = PbLong.from(Math.floor(ms / 1e3)).toString();
|
|
147
|
-
msg.nanos = (ms % 1e3 + (ms < 0 && ms % 1e3 !== 0 ? 1e3 : 0)) * 1e6;
|
|
148
|
-
return msg;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* In JSON format, the `Timestamp` type is encoded as a string
|
|
152
|
-
* in the RFC 3339 format.
|
|
153
|
-
*/
|
|
154
|
-
internalJsonWrite(message, options) {
|
|
155
|
-
let ms = PbLong.from(message.seconds).toNumber() * 1e3;
|
|
156
|
-
if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
|
|
157
|
-
throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
|
|
158
|
-
if (message.nanos < 0)
|
|
159
|
-
throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");
|
|
160
|
-
let z = "Z";
|
|
161
|
-
if (message.nanos > 0) {
|
|
162
|
-
let nanosStr = (message.nanos + 1e9).toString().substring(1);
|
|
163
|
-
if (nanosStr.substring(3) === "000000")
|
|
164
|
-
z = "." + nanosStr.substring(0, 3) + "Z";
|
|
165
|
-
else if (nanosStr.substring(6) === "000")
|
|
166
|
-
z = "." + nanosStr.substring(0, 6) + "Z";
|
|
167
|
-
else
|
|
168
|
-
z = "." + nanosStr + "Z";
|
|
169
|
-
}
|
|
170
|
-
return new Date(ms).toISOString().replace(".000Z", z);
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* In JSON format, the `Timestamp` type is encoded as a string
|
|
174
|
-
* in the RFC 3339 format.
|
|
175
|
-
*/
|
|
176
|
-
internalJsonRead(json, options, target) {
|
|
177
|
-
if (typeof json !== "string")
|
|
178
|
-
throw new Error("Unable to parse Timestamp from JSON " + typeofJsonValue(json) + ".");
|
|
179
|
-
let matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
|
|
180
|
-
if (!matches)
|
|
181
|
-
throw new Error("Unable to parse Timestamp from JSON. Invalid format.");
|
|
182
|
-
let ms = Date.parse(matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z"));
|
|
183
|
-
if (Number.isNaN(ms))
|
|
184
|
-
throw new Error("Unable to parse Timestamp from JSON. Invalid value.");
|
|
185
|
-
if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
|
|
186
|
-
throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
|
|
187
|
-
if (!target)
|
|
188
|
-
target = this.create();
|
|
189
|
-
target.seconds = PbLong.from(ms / 1e3).toString();
|
|
190
|
-
target.nanos = 0;
|
|
191
|
-
if (matches[7])
|
|
192
|
-
target.nanos = parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - 1e9;
|
|
193
|
-
return target;
|
|
194
|
-
}
|
|
195
|
-
create(value) {
|
|
196
|
-
const message = globalThis.Object.create(this.messagePrototype);
|
|
197
|
-
message.seconds = "0";
|
|
198
|
-
message.nanos = 0;
|
|
199
|
-
if (value !== void 0)
|
|
200
|
-
reflectionMergePartial2(this, message, value);
|
|
201
|
-
return message;
|
|
202
|
-
}
|
|
203
|
-
internalBinaryRead(reader, length, options, target) {
|
|
204
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
205
|
-
while (reader.pos < end) {
|
|
206
|
-
let [fieldNo, wireType] = reader.tag();
|
|
207
|
-
switch (fieldNo) {
|
|
208
|
-
case /* int64 seconds */
|
|
209
|
-
1:
|
|
210
|
-
message.seconds = reader.int64().toString();
|
|
211
|
-
break;
|
|
212
|
-
case /* int32 nanos */
|
|
213
|
-
2:
|
|
214
|
-
message.nanos = reader.int32();
|
|
215
|
-
break;
|
|
216
|
-
default:
|
|
217
|
-
let u = options.readUnknownField;
|
|
218
|
-
if (u === "throw")
|
|
219
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
220
|
-
let d = reader.skip(wireType);
|
|
221
|
-
if (u !== false)
|
|
222
|
-
(u === true ? UnknownFieldHandler2.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
29
|
+
get seconds() {
|
|
30
|
+
return pb_1.Message.getFieldWithDefault(this, 1, 0);
|
|
223
31
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
}
|
|
227
|
-
internalBinaryWrite(message, writer, options) {
|
|
228
|
-
if (message.seconds !== "0")
|
|
229
|
-
writer.tag(1, WireType2.Varint).int64(message.seconds);
|
|
230
|
-
if (message.nanos !== 0)
|
|
231
|
-
writer.tag(2, WireType2.Varint).int32(message.nanos);
|
|
232
|
-
let u = options.writeUnknownFields;
|
|
233
|
-
if (u !== false)
|
|
234
|
-
(u == true ? UnknownFieldHandler2.onWrite : u)(this.typeName, message, writer);
|
|
235
|
-
return writer;
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
var Timestamp = new Timestamp$Type();
|
|
239
|
-
|
|
240
|
-
// lib/events.ts
|
|
241
|
-
var TestStartEvent$Type = class extends MessageType3 {
|
|
242
|
-
constructor() {
|
|
243
|
-
super("testsystem.events.TestStartEvent", [
|
|
244
|
-
{
|
|
245
|
-
no: 1,
|
|
246
|
-
name: "test_id",
|
|
247
|
-
kind: "scalar",
|
|
248
|
-
T: 9
|
|
249
|
-
/*ScalarType.STRING*/
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
no: 2,
|
|
253
|
-
name: "test_name",
|
|
254
|
-
kind: "scalar",
|
|
255
|
-
T: 9
|
|
256
|
-
/*ScalarType.STRING*/
|
|
257
|
-
},
|
|
258
|
-
{ no: 3, name: "start_time", kind: "message", T: () => Timestamp },
|
|
259
|
-
{ no: 4, name: "metadata", kind: "map", K: 9, V: {
|
|
260
|
-
kind: "scalar",
|
|
261
|
-
T: 9
|
|
262
|
-
/*ScalarType.STRING*/
|
|
263
|
-
} }
|
|
264
|
-
]);
|
|
265
|
-
}
|
|
266
|
-
create(value) {
|
|
267
|
-
const message = globalThis.Object.create(this.messagePrototype);
|
|
268
|
-
message.testId = "";
|
|
269
|
-
message.testName = "";
|
|
270
|
-
message.metadata = {};
|
|
271
|
-
if (value !== void 0)
|
|
272
|
-
reflectionMergePartial3(this, message, value);
|
|
273
|
-
return message;
|
|
274
|
-
}
|
|
275
|
-
internalBinaryRead(reader, length, options, target) {
|
|
276
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
277
|
-
while (reader.pos < end) {
|
|
278
|
-
let [fieldNo, wireType] = reader.tag();
|
|
279
|
-
switch (fieldNo) {
|
|
280
|
-
case /* string test_id */
|
|
281
|
-
1:
|
|
282
|
-
message.testId = reader.string();
|
|
283
|
-
break;
|
|
284
|
-
case /* string test_name */
|
|
285
|
-
2:
|
|
286
|
-
message.testName = reader.string();
|
|
287
|
-
break;
|
|
288
|
-
case /* google.protobuf.Timestamp start_time */
|
|
289
|
-
3:
|
|
290
|
-
message.startTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.startTime);
|
|
291
|
-
break;
|
|
292
|
-
case /* map<string, string> metadata */
|
|
293
|
-
4:
|
|
294
|
-
this.binaryReadMap4(message.metadata, reader, options);
|
|
295
|
-
break;
|
|
296
|
-
default:
|
|
297
|
-
let u = options.readUnknownField;
|
|
298
|
-
if (u === "throw")
|
|
299
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
300
|
-
let d = reader.skip(wireType);
|
|
301
|
-
if (u !== false)
|
|
302
|
-
(u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
32
|
+
set seconds(value) {
|
|
33
|
+
pb_1.Message.setField(this, 1, value);
|
|
303
34
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}
|
|
307
|
-
binaryReadMap4(map, reader, options) {
|
|
308
|
-
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
309
|
-
while (reader.pos < end) {
|
|
310
|
-
let [fieldNo, wireType] = reader.tag();
|
|
311
|
-
switch (fieldNo) {
|
|
312
|
-
case 1:
|
|
313
|
-
key = reader.string();
|
|
314
|
-
break;
|
|
315
|
-
case 2:
|
|
316
|
-
val = reader.string();
|
|
317
|
-
break;
|
|
318
|
-
default:
|
|
319
|
-
throw new globalThis.Error("unknown map entry field for testsystem.events.TestStartEvent.metadata");
|
|
35
|
+
get nanos() {
|
|
36
|
+
return pb_1.Message.getFieldWithDefault(this, 2, 0);
|
|
320
37
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
324
|
-
internalBinaryWrite(message, writer, options) {
|
|
325
|
-
if (message.testId !== "")
|
|
326
|
-
writer.tag(1, WireType3.LengthDelimited).string(message.testId);
|
|
327
|
-
if (message.testName !== "")
|
|
328
|
-
writer.tag(2, WireType3.LengthDelimited).string(message.testName);
|
|
329
|
-
if (message.startTime)
|
|
330
|
-
Timestamp.internalBinaryWrite(message.startTime, writer.tag(3, WireType3.LengthDelimited).fork(), options).join();
|
|
331
|
-
for (let k of globalThis.Object.keys(message.metadata))
|
|
332
|
-
writer.tag(4, WireType3.LengthDelimited).fork().tag(1, WireType3.LengthDelimited).string(k).tag(2, WireType3.LengthDelimited).string(message.metadata[k]).join();
|
|
333
|
-
let u = options.writeUnknownFields;
|
|
334
|
-
if (u !== false)
|
|
335
|
-
(u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
|
|
336
|
-
return writer;
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
var TestStartEvent = new TestStartEvent$Type();
|
|
340
|
-
var TestFinishEvent$Type = class extends MessageType3 {
|
|
341
|
-
constructor() {
|
|
342
|
-
super("testsystem.events.TestFinishEvent", [
|
|
343
|
-
{
|
|
344
|
-
no: 1,
|
|
345
|
-
name: "test_id",
|
|
346
|
-
kind: "scalar",
|
|
347
|
-
T: 9
|
|
348
|
-
/*ScalarType.STRING*/
|
|
349
|
-
},
|
|
350
|
-
{ no: 2, name: "status", kind: "enum", T: () => ["testsystem.common.TestStatus", TestStatus] },
|
|
351
|
-
{ no: 3, name: "end_time", kind: "message", T: () => Timestamp },
|
|
352
|
-
{ no: 4, name: "attachments", kind: "message", repeat: 2, T: () => Attachment },
|
|
353
|
-
{
|
|
354
|
-
no: 5,
|
|
355
|
-
name: "error_message",
|
|
356
|
-
kind: "scalar",
|
|
357
|
-
T: 9
|
|
358
|
-
/*ScalarType.STRING*/
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
no: 6,
|
|
362
|
-
name: "stack_trace",
|
|
363
|
-
kind: "scalar",
|
|
364
|
-
T: 9
|
|
365
|
-
/*ScalarType.STRING*/
|
|
38
|
+
set nanos(value) {
|
|
39
|
+
pb_1.Message.setField(this, 2, value);
|
|
366
40
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
if (value !== void 0)
|
|
377
|
-
reflectionMergePartial3(this, message, value);
|
|
378
|
-
return message;
|
|
379
|
-
}
|
|
380
|
-
internalBinaryRead(reader, length, options, target) {
|
|
381
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
382
|
-
while (reader.pos < end) {
|
|
383
|
-
let [fieldNo, wireType] = reader.tag();
|
|
384
|
-
switch (fieldNo) {
|
|
385
|
-
case /* string test_id */
|
|
386
|
-
1:
|
|
387
|
-
message.testId = reader.string();
|
|
388
|
-
break;
|
|
389
|
-
case /* testsystem.common.TestStatus status */
|
|
390
|
-
2:
|
|
391
|
-
message.status = reader.int32();
|
|
392
|
-
break;
|
|
393
|
-
case /* google.protobuf.Timestamp end_time */
|
|
394
|
-
3:
|
|
395
|
-
message.endTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.endTime);
|
|
396
|
-
break;
|
|
397
|
-
case /* repeated testsystem.common.Attachment attachments */
|
|
398
|
-
4:
|
|
399
|
-
message.attachments.push(Attachment.internalBinaryRead(reader, reader.uint32(), options));
|
|
400
|
-
break;
|
|
401
|
-
case /* string error_message */
|
|
402
|
-
5:
|
|
403
|
-
message.errorMessage = reader.string();
|
|
404
|
-
break;
|
|
405
|
-
case /* string stack_trace */
|
|
406
|
-
6:
|
|
407
|
-
message.stackTrace = reader.string();
|
|
408
|
-
break;
|
|
409
|
-
default:
|
|
410
|
-
let u = options.readUnknownField;
|
|
411
|
-
if (u === "throw")
|
|
412
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
413
|
-
let d = reader.skip(wireType);
|
|
414
|
-
if (u !== false)
|
|
415
|
-
(u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
41
|
+
static fromObject(data) {
|
|
42
|
+
const message = new _Timestamp({});
|
|
43
|
+
if (data.seconds != null) {
|
|
44
|
+
message.seconds = data.seconds;
|
|
45
|
+
}
|
|
46
|
+
if (data.nanos != null) {
|
|
47
|
+
message.nanos = data.nanos;
|
|
48
|
+
}
|
|
49
|
+
return message;
|
|
416
50
|
}
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
Timestamp.internalBinaryWrite(message.endTime, writer.tag(3, WireType3.LengthDelimited).fork(), options).join();
|
|
427
|
-
for (let i = 0; i < message.attachments.length; i++)
|
|
428
|
-
Attachment.internalBinaryWrite(message.attachments[i], writer.tag(4, WireType3.LengthDelimited).fork(), options).join();
|
|
429
|
-
if (message.errorMessage !== "")
|
|
430
|
-
writer.tag(5, WireType3.LengthDelimited).string(message.errorMessage);
|
|
431
|
-
if (message.stackTrace !== "")
|
|
432
|
-
writer.tag(6, WireType3.LengthDelimited).string(message.stackTrace);
|
|
433
|
-
let u = options.writeUnknownFields;
|
|
434
|
-
if (u !== false)
|
|
435
|
-
(u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
|
|
436
|
-
return writer;
|
|
437
|
-
}
|
|
438
|
-
};
|
|
439
|
-
var TestFinishEvent = new TestFinishEvent$Type();
|
|
440
|
-
var TestStep$Type = class extends MessageType3 {
|
|
441
|
-
constructor() {
|
|
442
|
-
super("testsystem.events.TestStep", [
|
|
443
|
-
{
|
|
444
|
-
no: 1,
|
|
445
|
-
name: "description",
|
|
446
|
-
kind: "scalar",
|
|
447
|
-
T: 9
|
|
448
|
-
/*ScalarType.STRING*/
|
|
449
|
-
},
|
|
450
|
-
{ no: 2, name: "timestamp", kind: "message", T: () => Timestamp },
|
|
451
|
-
{ no: 3, name: "status", kind: "enum", T: () => ["testsystem.common.TestStatus", TestStatus] },
|
|
452
|
-
{ no: 4, name: "attachments", kind: "message", repeat: 2, T: () => Attachment }
|
|
453
|
-
]);
|
|
454
|
-
}
|
|
455
|
-
create(value) {
|
|
456
|
-
const message = globalThis.Object.create(this.messagePrototype);
|
|
457
|
-
message.description = "";
|
|
458
|
-
message.status = 0;
|
|
459
|
-
message.attachments = [];
|
|
460
|
-
if (value !== void 0)
|
|
461
|
-
reflectionMergePartial3(this, message, value);
|
|
462
|
-
return message;
|
|
463
|
-
}
|
|
464
|
-
internalBinaryRead(reader, length, options, target) {
|
|
465
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
466
|
-
while (reader.pos < end) {
|
|
467
|
-
let [fieldNo, wireType] = reader.tag();
|
|
468
|
-
switch (fieldNo) {
|
|
469
|
-
case /* string description */
|
|
470
|
-
1:
|
|
471
|
-
message.description = reader.string();
|
|
472
|
-
break;
|
|
473
|
-
case /* google.protobuf.Timestamp timestamp */
|
|
474
|
-
2:
|
|
475
|
-
message.timestamp = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.timestamp);
|
|
476
|
-
break;
|
|
477
|
-
case /* testsystem.common.TestStatus status */
|
|
478
|
-
3:
|
|
479
|
-
message.status = reader.int32();
|
|
480
|
-
break;
|
|
481
|
-
case /* repeated testsystem.common.Attachment attachments */
|
|
482
|
-
4:
|
|
483
|
-
message.attachments.push(Attachment.internalBinaryRead(reader, reader.uint32(), options));
|
|
484
|
-
break;
|
|
485
|
-
default:
|
|
486
|
-
let u = options.readUnknownField;
|
|
487
|
-
if (u === "throw")
|
|
488
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
489
|
-
let d = reader.skip(wireType);
|
|
490
|
-
if (u !== false)
|
|
491
|
-
(u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
51
|
+
toObject() {
|
|
52
|
+
const data = {};
|
|
53
|
+
if (this.seconds != null) {
|
|
54
|
+
data.seconds = this.seconds;
|
|
55
|
+
}
|
|
56
|
+
if (this.nanos != null) {
|
|
57
|
+
data.nanos = this.nanos;
|
|
58
|
+
}
|
|
59
|
+
return data;
|
|
492
60
|
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
if (message.status !== 0)
|
|
502
|
-
writer.tag(3, WireType3.Varint).int32(message.status);
|
|
503
|
-
for (let i = 0; i < message.attachments.length; i++)
|
|
504
|
-
Attachment.internalBinaryWrite(message.attachments[i], writer.tag(4, WireType3.LengthDelimited).fork(), options).join();
|
|
505
|
-
let u = options.writeUnknownFields;
|
|
506
|
-
if (u !== false)
|
|
507
|
-
(u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
|
|
508
|
-
return writer;
|
|
509
|
-
}
|
|
510
|
-
};
|
|
511
|
-
var TestStep = new TestStep$Type();
|
|
512
|
-
var TestStepEvent$Type = class extends MessageType3 {
|
|
513
|
-
constructor() {
|
|
514
|
-
super("testsystem.events.TestStepEvent", [
|
|
515
|
-
{
|
|
516
|
-
no: 1,
|
|
517
|
-
name: "test_id",
|
|
518
|
-
kind: "scalar",
|
|
519
|
-
T: 9
|
|
520
|
-
/*ScalarType.STRING*/
|
|
521
|
-
},
|
|
522
|
-
{ no: 2, name: "steps", kind: "message", repeat: 2, T: () => TestStep }
|
|
523
|
-
]);
|
|
524
|
-
}
|
|
525
|
-
create(value) {
|
|
526
|
-
const message = globalThis.Object.create(this.messagePrototype);
|
|
527
|
-
message.testId = "";
|
|
528
|
-
message.steps = [];
|
|
529
|
-
if (value !== void 0)
|
|
530
|
-
reflectionMergePartial3(this, message, value);
|
|
531
|
-
return message;
|
|
532
|
-
}
|
|
533
|
-
internalBinaryRead(reader, length, options, target) {
|
|
534
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
535
|
-
while (reader.pos < end) {
|
|
536
|
-
let [fieldNo, wireType] = reader.tag();
|
|
537
|
-
switch (fieldNo) {
|
|
538
|
-
case /* string test_id */
|
|
539
|
-
1:
|
|
540
|
-
message.testId = reader.string();
|
|
541
|
-
break;
|
|
542
|
-
case /* repeated testsystem.events.TestStep steps */
|
|
543
|
-
2:
|
|
544
|
-
message.steps.push(TestStep.internalBinaryRead(reader, reader.uint32(), options));
|
|
545
|
-
break;
|
|
546
|
-
default:
|
|
547
|
-
let u = options.readUnknownField;
|
|
548
|
-
if (u === "throw")
|
|
549
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
550
|
-
let d = reader.skip(wireType);
|
|
551
|
-
if (u !== false)
|
|
552
|
-
(u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
61
|
+
serialize(w) {
|
|
62
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
63
|
+
if (this.seconds != 0)
|
|
64
|
+
writer.writeInt64(1, this.seconds);
|
|
65
|
+
if (this.nanos != 0)
|
|
66
|
+
writer.writeInt32(2, this.nanos);
|
|
67
|
+
if (!w)
|
|
68
|
+
return writer.getResultBuffer();
|
|
553
69
|
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
70
|
+
static deserialize(bytes) {
|
|
71
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new _Timestamp();
|
|
72
|
+
while (reader.nextField()) {
|
|
73
|
+
if (reader.isEndGroup())
|
|
74
|
+
break;
|
|
75
|
+
switch (reader.getFieldNumber()) {
|
|
76
|
+
case 1:
|
|
77
|
+
message.seconds = reader.readInt64();
|
|
78
|
+
break;
|
|
79
|
+
case 2:
|
|
80
|
+
message.nanos = reader.readInt32();
|
|
81
|
+
break;
|
|
82
|
+
default:
|
|
83
|
+
reader.skipField();
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return message;
|
|
87
|
+
}
|
|
88
|
+
serializeBinary() {
|
|
89
|
+
return this.serialize();
|
|
90
|
+
}
|
|
91
|
+
static deserializeBinary(bytes) {
|
|
92
|
+
return _Timestamp.deserialize(bytes);
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
_one_of_decls = new WeakMap();
|
|
96
|
+
let Timestamp = _Timestamp;
|
|
97
|
+
protobuf2.Timestamp = _Timestamp;
|
|
98
|
+
})(protobuf = google2.protobuf || (google2.protobuf = {}));
|
|
99
|
+
})(google || (google = {}));
|
|
569
100
|
|
|
570
|
-
//
|
|
571
|
-
import
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
let
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
101
|
+
// lib/testsystem/v1/common/common.ts
|
|
102
|
+
import * as pb_12 from "google-protobuf";
|
|
103
|
+
var testsystem;
|
|
104
|
+
((testsystem5) => {
|
|
105
|
+
let v1;
|
|
106
|
+
((v12) => {
|
|
107
|
+
let common;
|
|
108
|
+
((common2) => {
|
|
109
|
+
var _one_of_decls;
|
|
110
|
+
let TestStatus;
|
|
111
|
+
((TestStatus2) => {
|
|
112
|
+
TestStatus2[TestStatus2["UNKNOWN"] = 0] = "UNKNOWN";
|
|
113
|
+
TestStatus2[TestStatus2["PASSED"] = 1] = "PASSED";
|
|
114
|
+
TestStatus2[TestStatus2["FAILED"] = 2] = "FAILED";
|
|
115
|
+
TestStatus2[TestStatus2["SKIPPED"] = 3] = "SKIPPED";
|
|
116
|
+
TestStatus2[TestStatus2["BROKEN"] = 4] = "BROKEN";
|
|
117
|
+
})(TestStatus = common2.TestStatus || (common2.TestStatus = {}));
|
|
118
|
+
const _Attachment = class _Attachment extends pb_12.Message {
|
|
119
|
+
constructor(data) {
|
|
120
|
+
super();
|
|
121
|
+
__privateAdd(this, _one_of_decls, [[3, 4]]);
|
|
122
|
+
pb_12.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls));
|
|
123
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
124
|
+
if ("name" in data && data.name != void 0) {
|
|
125
|
+
this.name = data.name;
|
|
126
|
+
}
|
|
127
|
+
if ("mime_type" in data && data.mime_type != void 0) {
|
|
128
|
+
this.mime_type = data.mime_type;
|
|
129
|
+
}
|
|
130
|
+
if ("content" in data && data.content != void 0) {
|
|
131
|
+
this.content = data.content;
|
|
132
|
+
}
|
|
133
|
+
if ("uri" in data && data.uri != void 0) {
|
|
134
|
+
this.uri = data.uri;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
get name() {
|
|
139
|
+
return pb_12.Message.getFieldWithDefault(this, 1, "");
|
|
140
|
+
}
|
|
141
|
+
set name(value) {
|
|
142
|
+
pb_12.Message.setField(this, 1, value);
|
|
143
|
+
}
|
|
144
|
+
get mime_type() {
|
|
145
|
+
return pb_12.Message.getFieldWithDefault(this, 2, "");
|
|
146
|
+
}
|
|
147
|
+
set mime_type(value) {
|
|
148
|
+
pb_12.Message.setField(this, 2, value);
|
|
149
|
+
}
|
|
150
|
+
get content() {
|
|
151
|
+
return pb_12.Message.getFieldWithDefault(this, 3, new Uint8Array(0));
|
|
152
|
+
}
|
|
153
|
+
set content(value) {
|
|
154
|
+
pb_12.Message.setOneofField(this, 3, __privateGet(this, _one_of_decls)[0], value);
|
|
155
|
+
}
|
|
156
|
+
get has_content() {
|
|
157
|
+
return pb_12.Message.getField(this, 3) != null;
|
|
158
|
+
}
|
|
159
|
+
get uri() {
|
|
160
|
+
return pb_12.Message.getFieldWithDefault(this, 4, "");
|
|
161
|
+
}
|
|
162
|
+
set uri(value) {
|
|
163
|
+
pb_12.Message.setOneofField(this, 4, __privateGet(this, _one_of_decls)[0], value);
|
|
164
|
+
}
|
|
165
|
+
get has_uri() {
|
|
166
|
+
return pb_12.Message.getField(this, 4) != null;
|
|
167
|
+
}
|
|
168
|
+
get payload() {
|
|
169
|
+
const cases = {
|
|
170
|
+
0: "none",
|
|
171
|
+
3: "content",
|
|
172
|
+
4: "uri"
|
|
173
|
+
};
|
|
174
|
+
return cases[pb_12.Message.computeOneofCase(this, [3, 4])];
|
|
175
|
+
}
|
|
176
|
+
static fromObject(data) {
|
|
177
|
+
const message = new _Attachment({});
|
|
178
|
+
if (data.name != null) {
|
|
179
|
+
message.name = data.name;
|
|
180
|
+
}
|
|
181
|
+
if (data.mime_type != null) {
|
|
182
|
+
message.mime_type = data.mime_type;
|
|
183
|
+
}
|
|
184
|
+
if (data.content != null) {
|
|
185
|
+
message.content = data.content;
|
|
186
|
+
}
|
|
187
|
+
if (data.uri != null) {
|
|
188
|
+
message.uri = data.uri;
|
|
189
|
+
}
|
|
190
|
+
return message;
|
|
191
|
+
}
|
|
192
|
+
toObject() {
|
|
193
|
+
const data = {};
|
|
194
|
+
if (this.name != null) {
|
|
195
|
+
data.name = this.name;
|
|
196
|
+
}
|
|
197
|
+
if (this.mime_type != null) {
|
|
198
|
+
data.mime_type = this.mime_type;
|
|
199
|
+
}
|
|
200
|
+
if (this.content != null) {
|
|
201
|
+
data.content = this.content;
|
|
202
|
+
}
|
|
203
|
+
if (this.uri != null) {
|
|
204
|
+
data.uri = this.uri;
|
|
205
|
+
}
|
|
206
|
+
return data;
|
|
207
|
+
}
|
|
208
|
+
serialize(w) {
|
|
209
|
+
const writer = w || new pb_12.BinaryWriter();
|
|
210
|
+
if (this.name.length)
|
|
211
|
+
writer.writeString(1, this.name);
|
|
212
|
+
if (this.mime_type.length)
|
|
213
|
+
writer.writeString(2, this.mime_type);
|
|
214
|
+
if (this.has_content)
|
|
215
|
+
writer.writeBytes(3, this.content);
|
|
216
|
+
if (this.has_uri)
|
|
217
|
+
writer.writeString(4, this.uri);
|
|
218
|
+
if (!w)
|
|
219
|
+
return writer.getResultBuffer();
|
|
220
|
+
}
|
|
221
|
+
static deserialize(bytes) {
|
|
222
|
+
const reader = bytes instanceof pb_12.BinaryReader ? bytes : new pb_12.BinaryReader(bytes), message = new _Attachment();
|
|
223
|
+
while (reader.nextField()) {
|
|
224
|
+
if (reader.isEndGroup())
|
|
225
|
+
break;
|
|
226
|
+
switch (reader.getFieldNumber()) {
|
|
227
|
+
case 1:
|
|
228
|
+
message.name = reader.readString();
|
|
229
|
+
break;
|
|
230
|
+
case 2:
|
|
231
|
+
message.mime_type = reader.readString();
|
|
232
|
+
break;
|
|
233
|
+
case 3:
|
|
234
|
+
message.content = reader.readBytes();
|
|
235
|
+
break;
|
|
236
|
+
case 4:
|
|
237
|
+
message.uri = reader.readString();
|
|
238
|
+
break;
|
|
239
|
+
default:
|
|
240
|
+
reader.skipField();
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return message;
|
|
244
|
+
}
|
|
245
|
+
serializeBinary() {
|
|
246
|
+
return this.serialize();
|
|
247
|
+
}
|
|
248
|
+
static deserializeBinary(bytes) {
|
|
249
|
+
return _Attachment.deserialize(bytes);
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
_one_of_decls = new WeakMap();
|
|
253
|
+
let Attachment = _Attachment;
|
|
254
|
+
common2.Attachment = _Attachment;
|
|
255
|
+
})(common = v12.common || (v12.common = {}));
|
|
256
|
+
})(v1 = testsystem5.v1 || (testsystem5.v1 = {}));
|
|
257
|
+
})(testsystem || (testsystem = {}));
|
|
583
258
|
|
|
584
|
-
//
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
259
|
+
// lib/testsystem/v1/entities/entities.ts
|
|
260
|
+
import * as pb_13 from "google-protobuf";
|
|
261
|
+
var testsystem2;
|
|
262
|
+
((testsystem5) => {
|
|
263
|
+
let v1;
|
|
264
|
+
((v12) => {
|
|
265
|
+
let entities;
|
|
266
|
+
((entities2) => {
|
|
267
|
+
var _one_of_decls, _one_of_decls2;
|
|
268
|
+
const _TestScript = class _TestScript extends pb_13.Message {
|
|
269
|
+
constructor(data) {
|
|
270
|
+
super();
|
|
271
|
+
__privateAdd(this, _one_of_decls, [[6]]);
|
|
272
|
+
pb_13.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4], __privateGet(this, _one_of_decls));
|
|
273
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
274
|
+
if ("id" in data && data.id != void 0) {
|
|
275
|
+
this.id = data.id;
|
|
276
|
+
}
|
|
277
|
+
if ("name" in data && data.name != void 0) {
|
|
278
|
+
this.name = data.name;
|
|
279
|
+
}
|
|
280
|
+
if ("description" in data && data.description != void 0) {
|
|
281
|
+
this.description = data.description;
|
|
282
|
+
}
|
|
283
|
+
if ("steps" in data && data.steps != void 0) {
|
|
284
|
+
this.steps = data.steps;
|
|
285
|
+
}
|
|
286
|
+
if ("metadata" in data && data.metadata != void 0) {
|
|
287
|
+
this.metadata = data.metadata;
|
|
288
|
+
}
|
|
289
|
+
if ("is_active" in data && data.is_active != void 0) {
|
|
290
|
+
this.is_active = data.is_active;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
if (!this.metadata)
|
|
294
|
+
this.metadata = /* @__PURE__ */ new Map();
|
|
295
|
+
}
|
|
296
|
+
get id() {
|
|
297
|
+
return pb_13.Message.getFieldWithDefault(this, 1, "");
|
|
298
|
+
}
|
|
299
|
+
set id(value) {
|
|
300
|
+
pb_13.Message.setField(this, 1, value);
|
|
301
|
+
}
|
|
302
|
+
get name() {
|
|
303
|
+
return pb_13.Message.getFieldWithDefault(this, 2, "");
|
|
304
|
+
}
|
|
305
|
+
set name(value) {
|
|
306
|
+
pb_13.Message.setField(this, 2, value);
|
|
307
|
+
}
|
|
308
|
+
get description() {
|
|
309
|
+
return pb_13.Message.getFieldWithDefault(this, 3, "");
|
|
310
|
+
}
|
|
311
|
+
set description(value) {
|
|
312
|
+
pb_13.Message.setField(this, 3, value);
|
|
313
|
+
}
|
|
314
|
+
get steps() {
|
|
315
|
+
return pb_13.Message.getFieldWithDefault(this, 4, []);
|
|
316
|
+
}
|
|
317
|
+
set steps(value) {
|
|
318
|
+
pb_13.Message.setField(this, 4, value);
|
|
319
|
+
}
|
|
320
|
+
get metadata() {
|
|
321
|
+
return pb_13.Message.getField(this, 5);
|
|
322
|
+
}
|
|
323
|
+
set metadata(value) {
|
|
324
|
+
pb_13.Message.setField(this, 5, value);
|
|
325
|
+
}
|
|
326
|
+
get is_active() {
|
|
327
|
+
return pb_13.Message.getFieldWithDefault(this, 6, false);
|
|
328
|
+
}
|
|
329
|
+
set is_active(value) {
|
|
330
|
+
pb_13.Message.setOneofField(this, 6, __privateGet(this, _one_of_decls)[0], value);
|
|
331
|
+
}
|
|
332
|
+
get has_is_active() {
|
|
333
|
+
return pb_13.Message.getField(this, 6) != null;
|
|
334
|
+
}
|
|
335
|
+
get _is_active() {
|
|
336
|
+
const cases = {
|
|
337
|
+
0: "none",
|
|
338
|
+
6: "is_active"
|
|
339
|
+
};
|
|
340
|
+
return cases[pb_13.Message.computeOneofCase(this, [6])];
|
|
341
|
+
}
|
|
342
|
+
static fromObject(data) {
|
|
343
|
+
const message = new _TestScript({});
|
|
344
|
+
if (data.id != null) {
|
|
345
|
+
message.id = data.id;
|
|
346
|
+
}
|
|
347
|
+
if (data.name != null) {
|
|
348
|
+
message.name = data.name;
|
|
349
|
+
}
|
|
350
|
+
if (data.description != null) {
|
|
351
|
+
message.description = data.description;
|
|
352
|
+
}
|
|
353
|
+
if (data.steps != null) {
|
|
354
|
+
message.steps = data.steps;
|
|
355
|
+
}
|
|
356
|
+
if (typeof data.metadata == "object") {
|
|
357
|
+
message.metadata = new Map(Object.entries(data.metadata));
|
|
358
|
+
}
|
|
359
|
+
if (data.is_active != null) {
|
|
360
|
+
message.is_active = data.is_active;
|
|
361
|
+
}
|
|
362
|
+
return message;
|
|
363
|
+
}
|
|
364
|
+
toObject() {
|
|
365
|
+
const data = {};
|
|
366
|
+
if (this.id != null) {
|
|
367
|
+
data.id = this.id;
|
|
368
|
+
}
|
|
369
|
+
if (this.name != null) {
|
|
370
|
+
data.name = this.name;
|
|
371
|
+
}
|
|
372
|
+
if (this.description != null) {
|
|
373
|
+
data.description = this.description;
|
|
374
|
+
}
|
|
375
|
+
if (this.steps != null) {
|
|
376
|
+
data.steps = this.steps;
|
|
377
|
+
}
|
|
378
|
+
if (this.metadata != null) {
|
|
379
|
+
data.metadata = Object.fromEntries(this.metadata);
|
|
380
|
+
}
|
|
381
|
+
if (this.is_active != null) {
|
|
382
|
+
data.is_active = this.is_active;
|
|
383
|
+
}
|
|
384
|
+
return data;
|
|
385
|
+
}
|
|
386
|
+
serialize(w) {
|
|
387
|
+
const writer = w || new pb_13.BinaryWriter();
|
|
388
|
+
if (this.id.length)
|
|
389
|
+
writer.writeString(1, this.id);
|
|
390
|
+
if (this.name.length)
|
|
391
|
+
writer.writeString(2, this.name);
|
|
392
|
+
if (this.description.length)
|
|
393
|
+
writer.writeString(3, this.description);
|
|
394
|
+
if (this.steps.length)
|
|
395
|
+
writer.writeRepeatedString(4, this.steps);
|
|
396
|
+
for (const [key, value] of this.metadata) {
|
|
397
|
+
writer.writeMessage(5, this.metadata, () => {
|
|
398
|
+
writer.writeString(1, key);
|
|
399
|
+
writer.writeString(2, value);
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
if (this.has_is_active)
|
|
403
|
+
writer.writeBool(6, this.is_active);
|
|
404
|
+
if (!w)
|
|
405
|
+
return writer.getResultBuffer();
|
|
406
|
+
}
|
|
407
|
+
static deserialize(bytes) {
|
|
408
|
+
const reader = bytes instanceof pb_13.BinaryReader ? bytes : new pb_13.BinaryReader(bytes), message = new _TestScript();
|
|
409
|
+
while (reader.nextField()) {
|
|
410
|
+
if (reader.isEndGroup())
|
|
411
|
+
break;
|
|
412
|
+
switch (reader.getFieldNumber()) {
|
|
413
|
+
case 1:
|
|
414
|
+
message.id = reader.readString();
|
|
415
|
+
break;
|
|
416
|
+
case 2:
|
|
417
|
+
message.name = reader.readString();
|
|
418
|
+
break;
|
|
419
|
+
case 3:
|
|
420
|
+
message.description = reader.readString();
|
|
421
|
+
break;
|
|
422
|
+
case 4:
|
|
423
|
+
pb_13.Message.addToRepeatedField(message, 4, reader.readString());
|
|
424
|
+
break;
|
|
425
|
+
case 5:
|
|
426
|
+
reader.readMessage(message, () => pb_13.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
|
|
427
|
+
break;
|
|
428
|
+
case 6:
|
|
429
|
+
message.is_active = reader.readBool();
|
|
430
|
+
break;
|
|
431
|
+
default:
|
|
432
|
+
reader.skipField();
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
return message;
|
|
436
|
+
}
|
|
437
|
+
serializeBinary() {
|
|
438
|
+
return this.serialize();
|
|
439
|
+
}
|
|
440
|
+
static deserializeBinary(bytes) {
|
|
441
|
+
return _TestScript.deserialize(bytes);
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
_one_of_decls = new WeakMap();
|
|
445
|
+
let TestScript = _TestScript;
|
|
446
|
+
entities2.TestScript = _TestScript;
|
|
447
|
+
const _TestSuite = class _TestSuite extends pb_13.Message {
|
|
448
|
+
constructor(data) {
|
|
449
|
+
super();
|
|
450
|
+
__privateAdd(this, _one_of_decls2, []);
|
|
451
|
+
pb_13.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 6], __privateGet(this, _one_of_decls2));
|
|
452
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
453
|
+
if ("id" in data && data.id != void 0) {
|
|
454
|
+
this.id = data.id;
|
|
455
|
+
}
|
|
456
|
+
if ("name" in data && data.name != void 0) {
|
|
457
|
+
this.name = data.name;
|
|
458
|
+
}
|
|
459
|
+
if ("scripts" in data && data.scripts != void 0) {
|
|
460
|
+
this.scripts = data.scripts;
|
|
461
|
+
}
|
|
462
|
+
if ("description" in data && data.description != void 0) {
|
|
463
|
+
this.description = data.description;
|
|
464
|
+
}
|
|
465
|
+
if ("metadata" in data && data.metadata != void 0) {
|
|
466
|
+
this.metadata = data.metadata;
|
|
467
|
+
}
|
|
468
|
+
if ("sub_suites" in data && data.sub_suites != void 0) {
|
|
469
|
+
this.sub_suites = data.sub_suites;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
if (!this.metadata)
|
|
473
|
+
this.metadata = /* @__PURE__ */ new Map();
|
|
474
|
+
}
|
|
475
|
+
get id() {
|
|
476
|
+
return pb_13.Message.getFieldWithDefault(this, 1, "");
|
|
477
|
+
}
|
|
478
|
+
set id(value) {
|
|
479
|
+
pb_13.Message.setField(this, 1, value);
|
|
480
|
+
}
|
|
481
|
+
get name() {
|
|
482
|
+
return pb_13.Message.getFieldWithDefault(this, 2, "");
|
|
483
|
+
}
|
|
484
|
+
set name(value) {
|
|
485
|
+
pb_13.Message.setField(this, 2, value);
|
|
486
|
+
}
|
|
487
|
+
get scripts() {
|
|
488
|
+
return pb_13.Message.getRepeatedWrapperField(this, TestScript, 3);
|
|
489
|
+
}
|
|
490
|
+
set scripts(value) {
|
|
491
|
+
pb_13.Message.setRepeatedWrapperField(this, 3, value);
|
|
492
|
+
}
|
|
493
|
+
get description() {
|
|
494
|
+
return pb_13.Message.getFieldWithDefault(this, 4, "");
|
|
495
|
+
}
|
|
496
|
+
set description(value) {
|
|
497
|
+
pb_13.Message.setField(this, 4, value);
|
|
498
|
+
}
|
|
499
|
+
get metadata() {
|
|
500
|
+
return pb_13.Message.getField(this, 5);
|
|
501
|
+
}
|
|
502
|
+
set metadata(value) {
|
|
503
|
+
pb_13.Message.setField(this, 5, value);
|
|
504
|
+
}
|
|
505
|
+
get sub_suites() {
|
|
506
|
+
return pb_13.Message.getRepeatedWrapperField(this, _TestSuite, 6);
|
|
507
|
+
}
|
|
508
|
+
set sub_suites(value) {
|
|
509
|
+
pb_13.Message.setRepeatedWrapperField(this, 6, value);
|
|
510
|
+
}
|
|
511
|
+
static fromObject(data) {
|
|
512
|
+
const message = new _TestSuite({});
|
|
513
|
+
if (data.id != null) {
|
|
514
|
+
message.id = data.id;
|
|
515
|
+
}
|
|
516
|
+
if (data.name != null) {
|
|
517
|
+
message.name = data.name;
|
|
518
|
+
}
|
|
519
|
+
if (data.scripts != null) {
|
|
520
|
+
message.scripts = data.scripts.map((item) => TestScript.fromObject(item));
|
|
521
|
+
}
|
|
522
|
+
if (data.description != null) {
|
|
523
|
+
message.description = data.description;
|
|
524
|
+
}
|
|
525
|
+
if (typeof data.metadata == "object") {
|
|
526
|
+
message.metadata = new Map(Object.entries(data.metadata));
|
|
527
|
+
}
|
|
528
|
+
if (data.sub_suites != null) {
|
|
529
|
+
message.sub_suites = data.sub_suites.map((item) => _TestSuite.fromObject(item));
|
|
530
|
+
}
|
|
531
|
+
return message;
|
|
532
|
+
}
|
|
533
|
+
toObject() {
|
|
534
|
+
const data = {};
|
|
535
|
+
if (this.id != null) {
|
|
536
|
+
data.id = this.id;
|
|
537
|
+
}
|
|
538
|
+
if (this.name != null) {
|
|
539
|
+
data.name = this.name;
|
|
540
|
+
}
|
|
541
|
+
if (this.scripts != null) {
|
|
542
|
+
data.scripts = this.scripts.map((item) => item.toObject());
|
|
543
|
+
}
|
|
544
|
+
if (this.description != null) {
|
|
545
|
+
data.description = this.description;
|
|
546
|
+
}
|
|
547
|
+
if (this.metadata != null) {
|
|
548
|
+
data.metadata = Object.fromEntries(this.metadata);
|
|
549
|
+
}
|
|
550
|
+
if (this.sub_suites != null) {
|
|
551
|
+
data.sub_suites = this.sub_suites.map((item) => item.toObject());
|
|
552
|
+
}
|
|
553
|
+
return data;
|
|
554
|
+
}
|
|
555
|
+
serialize(w) {
|
|
556
|
+
const writer = w || new pb_13.BinaryWriter();
|
|
557
|
+
if (this.id.length)
|
|
558
|
+
writer.writeString(1, this.id);
|
|
559
|
+
if (this.name.length)
|
|
560
|
+
writer.writeString(2, this.name);
|
|
561
|
+
if (this.scripts.length)
|
|
562
|
+
writer.writeRepeatedMessage(3, this.scripts, (item) => item.serialize(writer));
|
|
563
|
+
if (this.description.length)
|
|
564
|
+
writer.writeString(4, this.description);
|
|
565
|
+
for (const [key, value] of this.metadata) {
|
|
566
|
+
writer.writeMessage(5, this.metadata, () => {
|
|
567
|
+
writer.writeString(1, key);
|
|
568
|
+
writer.writeString(2, value);
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
if (this.sub_suites.length)
|
|
572
|
+
writer.writeRepeatedMessage(6, this.sub_suites, (item) => item.serialize(writer));
|
|
573
|
+
if (!w)
|
|
574
|
+
return writer.getResultBuffer();
|
|
575
|
+
}
|
|
576
|
+
static deserialize(bytes) {
|
|
577
|
+
const reader = bytes instanceof pb_13.BinaryReader ? bytes : new pb_13.BinaryReader(bytes), message = new _TestSuite();
|
|
578
|
+
while (reader.nextField()) {
|
|
579
|
+
if (reader.isEndGroup())
|
|
580
|
+
break;
|
|
581
|
+
switch (reader.getFieldNumber()) {
|
|
582
|
+
case 1:
|
|
583
|
+
message.id = reader.readString();
|
|
584
|
+
break;
|
|
585
|
+
case 2:
|
|
586
|
+
message.name = reader.readString();
|
|
587
|
+
break;
|
|
588
|
+
case 3:
|
|
589
|
+
reader.readMessage(message.scripts, () => pb_13.Message.addToRepeatedWrapperField(message, 3, TestScript.deserialize(reader), TestScript));
|
|
590
|
+
break;
|
|
591
|
+
case 4:
|
|
592
|
+
message.description = reader.readString();
|
|
593
|
+
break;
|
|
594
|
+
case 5:
|
|
595
|
+
reader.readMessage(message, () => pb_13.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
|
|
596
|
+
break;
|
|
597
|
+
case 6:
|
|
598
|
+
reader.readMessage(message.sub_suites, () => pb_13.Message.addToRepeatedWrapperField(message, 6, _TestSuite.deserialize(reader), _TestSuite));
|
|
599
|
+
break;
|
|
600
|
+
default:
|
|
601
|
+
reader.skipField();
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
return message;
|
|
605
|
+
}
|
|
606
|
+
serializeBinary() {
|
|
607
|
+
return this.serialize();
|
|
608
|
+
}
|
|
609
|
+
static deserializeBinary(bytes) {
|
|
610
|
+
return _TestSuite.deserialize(bytes);
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
_one_of_decls2 = new WeakMap();
|
|
614
|
+
let TestSuite = _TestSuite;
|
|
615
|
+
entities2.TestSuite = _TestSuite;
|
|
616
|
+
})(entities = v12.entities || (v12.entities = {}));
|
|
617
|
+
})(v1 = testsystem5.v1 || (testsystem5.v1 = {}));
|
|
618
|
+
})(testsystem2 || (testsystem2 = {}));
|
|
592
619
|
|
|
593
|
-
//
|
|
594
|
-
import
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
620
|
+
// lib/testsystem/v1/events/events.ts
|
|
621
|
+
import * as pb_14 from "google-protobuf";
|
|
622
|
+
var testsystem3;
|
|
623
|
+
((testsystem5) => {
|
|
624
|
+
let v1;
|
|
625
|
+
((v12) => {
|
|
626
|
+
let events;
|
|
627
|
+
((events2) => {
|
|
628
|
+
var _one_of_decls, _one_of_decls2, _one_of_decls3, _one_of_decls4;
|
|
629
|
+
const _TestStartEventRequest = class _TestStartEventRequest extends pb_14.Message {
|
|
630
|
+
constructor(data) {
|
|
631
|
+
super();
|
|
632
|
+
__privateAdd(this, _one_of_decls, []);
|
|
633
|
+
pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls));
|
|
634
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
635
|
+
if ("test_id" in data && data.test_id != void 0) {
|
|
636
|
+
this.test_id = data.test_id;
|
|
637
|
+
}
|
|
638
|
+
if ("test_name" in data && data.test_name != void 0) {
|
|
639
|
+
this.test_name = data.test_name;
|
|
640
|
+
}
|
|
641
|
+
if ("start_time" in data && data.start_time != void 0) {
|
|
642
|
+
this.start_time = data.start_time;
|
|
643
|
+
}
|
|
644
|
+
if ("metadata" in data && data.metadata != void 0) {
|
|
645
|
+
this.metadata = data.metadata;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
if (!this.metadata)
|
|
649
|
+
this.metadata = /* @__PURE__ */ new Map();
|
|
650
|
+
}
|
|
651
|
+
get test_id() {
|
|
652
|
+
return pb_14.Message.getFieldWithDefault(this, 1, "");
|
|
653
|
+
}
|
|
654
|
+
set test_id(value) {
|
|
655
|
+
pb_14.Message.setField(this, 1, value);
|
|
656
|
+
}
|
|
657
|
+
get test_name() {
|
|
658
|
+
return pb_14.Message.getFieldWithDefault(this, 2, "");
|
|
659
|
+
}
|
|
660
|
+
set test_name(value) {
|
|
661
|
+
pb_14.Message.setField(this, 2, value);
|
|
662
|
+
}
|
|
663
|
+
get start_time() {
|
|
664
|
+
return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 3);
|
|
665
|
+
}
|
|
666
|
+
set start_time(value) {
|
|
667
|
+
pb_14.Message.setWrapperField(this, 3, value);
|
|
668
|
+
}
|
|
669
|
+
get has_start_time() {
|
|
670
|
+
return pb_14.Message.getField(this, 3) != null;
|
|
671
|
+
}
|
|
672
|
+
get metadata() {
|
|
673
|
+
return pb_14.Message.getField(this, 4);
|
|
674
|
+
}
|
|
675
|
+
set metadata(value) {
|
|
676
|
+
pb_14.Message.setField(this, 4, value);
|
|
677
|
+
}
|
|
678
|
+
static fromObject(data) {
|
|
679
|
+
const message = new _TestStartEventRequest({});
|
|
680
|
+
if (data.test_id != null) {
|
|
681
|
+
message.test_id = data.test_id;
|
|
682
|
+
}
|
|
683
|
+
if (data.test_name != null) {
|
|
684
|
+
message.test_name = data.test_name;
|
|
685
|
+
}
|
|
686
|
+
if (data.start_time != null) {
|
|
687
|
+
message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
|
|
688
|
+
}
|
|
689
|
+
if (typeof data.metadata == "object") {
|
|
690
|
+
message.metadata = new Map(Object.entries(data.metadata));
|
|
691
|
+
}
|
|
692
|
+
return message;
|
|
693
|
+
}
|
|
694
|
+
toObject() {
|
|
695
|
+
const data = {};
|
|
696
|
+
if (this.test_id != null) {
|
|
697
|
+
data.test_id = this.test_id;
|
|
698
|
+
}
|
|
699
|
+
if (this.test_name != null) {
|
|
700
|
+
data.test_name = this.test_name;
|
|
701
|
+
}
|
|
702
|
+
if (this.start_time != null) {
|
|
703
|
+
data.start_time = this.start_time.toObject();
|
|
704
|
+
}
|
|
705
|
+
if (this.metadata != null) {
|
|
706
|
+
data.metadata = Object.fromEntries(this.metadata);
|
|
707
|
+
}
|
|
708
|
+
return data;
|
|
709
|
+
}
|
|
710
|
+
serialize(w) {
|
|
711
|
+
const writer = w || new pb_14.BinaryWriter();
|
|
712
|
+
if (this.test_id.length)
|
|
713
|
+
writer.writeString(1, this.test_id);
|
|
714
|
+
if (this.test_name.length)
|
|
715
|
+
writer.writeString(2, this.test_name);
|
|
716
|
+
if (this.has_start_time)
|
|
717
|
+
writer.writeMessage(3, this.start_time, () => this.start_time.serialize(writer));
|
|
718
|
+
for (const [key, value] of this.metadata) {
|
|
719
|
+
writer.writeMessage(4, this.metadata, () => {
|
|
720
|
+
writer.writeString(1, key);
|
|
721
|
+
writer.writeString(2, value);
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
if (!w)
|
|
725
|
+
return writer.getResultBuffer();
|
|
726
|
+
}
|
|
727
|
+
static deserialize(bytes) {
|
|
728
|
+
const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _TestStartEventRequest();
|
|
729
|
+
while (reader.nextField()) {
|
|
730
|
+
if (reader.isEndGroup())
|
|
731
|
+
break;
|
|
732
|
+
switch (reader.getFieldNumber()) {
|
|
733
|
+
case 1:
|
|
734
|
+
message.test_id = reader.readString();
|
|
735
|
+
break;
|
|
736
|
+
case 2:
|
|
737
|
+
message.test_name = reader.readString();
|
|
738
|
+
break;
|
|
739
|
+
case 3:
|
|
740
|
+
reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
|
|
741
|
+
break;
|
|
742
|
+
case 4:
|
|
743
|
+
reader.readMessage(message, () => pb_14.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
|
|
744
|
+
break;
|
|
745
|
+
default:
|
|
746
|
+
reader.skipField();
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
return message;
|
|
750
|
+
}
|
|
751
|
+
serializeBinary() {
|
|
752
|
+
return this.serialize();
|
|
753
|
+
}
|
|
754
|
+
static deserializeBinary(bytes) {
|
|
755
|
+
return _TestStartEventRequest.deserialize(bytes);
|
|
756
|
+
}
|
|
757
|
+
};
|
|
758
|
+
_one_of_decls = new WeakMap();
|
|
759
|
+
let TestStartEventRequest = _TestStartEventRequest;
|
|
760
|
+
events2.TestStartEventRequest = _TestStartEventRequest;
|
|
761
|
+
const _TestFinishEventRequest = class _TestFinishEventRequest extends pb_14.Message {
|
|
762
|
+
constructor(data) {
|
|
763
|
+
super();
|
|
764
|
+
__privateAdd(this, _one_of_decls2, []);
|
|
765
|
+
pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4], __privateGet(this, _one_of_decls2));
|
|
766
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
767
|
+
if ("test_id" in data && data.test_id != void 0) {
|
|
768
|
+
this.test_id = data.test_id;
|
|
769
|
+
}
|
|
770
|
+
if ("status" in data && data.status != void 0) {
|
|
771
|
+
this.status = data.status;
|
|
772
|
+
}
|
|
773
|
+
if ("end_time" in data && data.end_time != void 0) {
|
|
774
|
+
this.end_time = data.end_time;
|
|
775
|
+
}
|
|
776
|
+
if ("attachments" in data && data.attachments != void 0) {
|
|
777
|
+
this.attachments = data.attachments;
|
|
778
|
+
}
|
|
779
|
+
if ("error_message" in data && data.error_message != void 0) {
|
|
780
|
+
this.error_message = data.error_message;
|
|
781
|
+
}
|
|
782
|
+
if ("stack_trace" in data && data.stack_trace != void 0) {
|
|
783
|
+
this.stack_trace = data.stack_trace;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
get test_id() {
|
|
788
|
+
return pb_14.Message.getFieldWithDefault(this, 1, "");
|
|
789
|
+
}
|
|
790
|
+
set test_id(value) {
|
|
791
|
+
pb_14.Message.setField(this, 1, value);
|
|
792
|
+
}
|
|
793
|
+
get status() {
|
|
794
|
+
return pb_14.Message.getFieldWithDefault(this, 2, testsystem.v1.common.TestStatus.UNKNOWN);
|
|
795
|
+
}
|
|
796
|
+
set status(value) {
|
|
797
|
+
pb_14.Message.setField(this, 2, value);
|
|
798
|
+
}
|
|
799
|
+
get end_time() {
|
|
800
|
+
return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 3);
|
|
801
|
+
}
|
|
802
|
+
set end_time(value) {
|
|
803
|
+
pb_14.Message.setWrapperField(this, 3, value);
|
|
804
|
+
}
|
|
805
|
+
get has_end_time() {
|
|
806
|
+
return pb_14.Message.getField(this, 3) != null;
|
|
807
|
+
}
|
|
808
|
+
get attachments() {
|
|
809
|
+
return pb_14.Message.getRepeatedWrapperField(this, testsystem.v1.common.Attachment, 4);
|
|
810
|
+
}
|
|
811
|
+
set attachments(value) {
|
|
812
|
+
pb_14.Message.setRepeatedWrapperField(this, 4, value);
|
|
813
|
+
}
|
|
814
|
+
get error_message() {
|
|
815
|
+
return pb_14.Message.getFieldWithDefault(this, 5, "");
|
|
816
|
+
}
|
|
817
|
+
set error_message(value) {
|
|
818
|
+
pb_14.Message.setField(this, 5, value);
|
|
819
|
+
}
|
|
820
|
+
get stack_trace() {
|
|
821
|
+
return pb_14.Message.getFieldWithDefault(this, 6, "");
|
|
822
|
+
}
|
|
823
|
+
set stack_trace(value) {
|
|
824
|
+
pb_14.Message.setField(this, 6, value);
|
|
825
|
+
}
|
|
826
|
+
static fromObject(data) {
|
|
827
|
+
const message = new _TestFinishEventRequest({});
|
|
828
|
+
if (data.test_id != null) {
|
|
829
|
+
message.test_id = data.test_id;
|
|
830
|
+
}
|
|
831
|
+
if (data.status != null) {
|
|
832
|
+
message.status = data.status;
|
|
833
|
+
}
|
|
834
|
+
if (data.end_time != null) {
|
|
835
|
+
message.end_time = google.protobuf.Timestamp.fromObject(data.end_time);
|
|
836
|
+
}
|
|
837
|
+
if (data.attachments != null) {
|
|
838
|
+
message.attachments = data.attachments.map((item) => testsystem.v1.common.Attachment.fromObject(item));
|
|
839
|
+
}
|
|
840
|
+
if (data.error_message != null) {
|
|
841
|
+
message.error_message = data.error_message;
|
|
842
|
+
}
|
|
843
|
+
if (data.stack_trace != null) {
|
|
844
|
+
message.stack_trace = data.stack_trace;
|
|
845
|
+
}
|
|
846
|
+
return message;
|
|
847
|
+
}
|
|
848
|
+
toObject() {
|
|
849
|
+
const data = {};
|
|
850
|
+
if (this.test_id != null) {
|
|
851
|
+
data.test_id = this.test_id;
|
|
852
|
+
}
|
|
853
|
+
if (this.status != null) {
|
|
854
|
+
data.status = this.status;
|
|
855
|
+
}
|
|
856
|
+
if (this.end_time != null) {
|
|
857
|
+
data.end_time = this.end_time.toObject();
|
|
858
|
+
}
|
|
859
|
+
if (this.attachments != null) {
|
|
860
|
+
data.attachments = this.attachments.map((item) => item.toObject());
|
|
861
|
+
}
|
|
862
|
+
if (this.error_message != null) {
|
|
863
|
+
data.error_message = this.error_message;
|
|
864
|
+
}
|
|
865
|
+
if (this.stack_trace != null) {
|
|
866
|
+
data.stack_trace = this.stack_trace;
|
|
867
|
+
}
|
|
868
|
+
return data;
|
|
869
|
+
}
|
|
870
|
+
serialize(w) {
|
|
871
|
+
const writer = w || new pb_14.BinaryWriter();
|
|
872
|
+
if (this.test_id.length)
|
|
873
|
+
writer.writeString(1, this.test_id);
|
|
874
|
+
if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
875
|
+
writer.writeEnum(2, this.status);
|
|
876
|
+
if (this.has_end_time)
|
|
877
|
+
writer.writeMessage(3, this.end_time, () => this.end_time.serialize(writer));
|
|
878
|
+
if (this.attachments.length)
|
|
879
|
+
writer.writeRepeatedMessage(4, this.attachments, (item) => item.serialize(writer));
|
|
880
|
+
if (this.error_message.length)
|
|
881
|
+
writer.writeString(5, this.error_message);
|
|
882
|
+
if (this.stack_trace.length)
|
|
883
|
+
writer.writeString(6, this.stack_trace);
|
|
884
|
+
if (!w)
|
|
885
|
+
return writer.getResultBuffer();
|
|
886
|
+
}
|
|
887
|
+
static deserialize(bytes) {
|
|
888
|
+
const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _TestFinishEventRequest();
|
|
889
|
+
while (reader.nextField()) {
|
|
890
|
+
if (reader.isEndGroup())
|
|
891
|
+
break;
|
|
892
|
+
switch (reader.getFieldNumber()) {
|
|
893
|
+
case 1:
|
|
894
|
+
message.test_id = reader.readString();
|
|
895
|
+
break;
|
|
896
|
+
case 2:
|
|
897
|
+
message.status = reader.readEnum();
|
|
898
|
+
break;
|
|
899
|
+
case 3:
|
|
900
|
+
reader.readMessage(message.end_time, () => message.end_time = google.protobuf.Timestamp.deserialize(reader));
|
|
901
|
+
break;
|
|
902
|
+
case 4:
|
|
903
|
+
reader.readMessage(message.attachments, () => pb_14.Message.addToRepeatedWrapperField(message, 4, testsystem.v1.common.Attachment.deserialize(reader), testsystem.v1.common.Attachment));
|
|
904
|
+
break;
|
|
905
|
+
case 5:
|
|
906
|
+
message.error_message = reader.readString();
|
|
907
|
+
break;
|
|
908
|
+
case 6:
|
|
909
|
+
message.stack_trace = reader.readString();
|
|
910
|
+
break;
|
|
911
|
+
default:
|
|
912
|
+
reader.skipField();
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
return message;
|
|
916
|
+
}
|
|
917
|
+
serializeBinary() {
|
|
918
|
+
return this.serialize();
|
|
919
|
+
}
|
|
920
|
+
static deserializeBinary(bytes) {
|
|
921
|
+
return _TestFinishEventRequest.deserialize(bytes);
|
|
922
|
+
}
|
|
923
|
+
};
|
|
924
|
+
_one_of_decls2 = new WeakMap();
|
|
925
|
+
let TestFinishEventRequest = _TestFinishEventRequest;
|
|
926
|
+
events2.TestFinishEventRequest = _TestFinishEventRequest;
|
|
927
|
+
const _TestStepRequest = class _TestStepRequest extends pb_14.Message {
|
|
928
|
+
constructor(data) {
|
|
929
|
+
super();
|
|
930
|
+
__privateAdd(this, _one_of_decls3, []);
|
|
931
|
+
pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4], __privateGet(this, _one_of_decls3));
|
|
932
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
933
|
+
if ("description" in data && data.description != void 0) {
|
|
934
|
+
this.description = data.description;
|
|
935
|
+
}
|
|
936
|
+
if ("timestamp" in data && data.timestamp != void 0) {
|
|
937
|
+
this.timestamp = data.timestamp;
|
|
938
|
+
}
|
|
939
|
+
if ("status" in data && data.status != void 0) {
|
|
940
|
+
this.status = data.status;
|
|
941
|
+
}
|
|
942
|
+
if ("attachments" in data && data.attachments != void 0) {
|
|
943
|
+
this.attachments = data.attachments;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
get description() {
|
|
948
|
+
return pb_14.Message.getFieldWithDefault(this, 1, "");
|
|
949
|
+
}
|
|
950
|
+
set description(value) {
|
|
951
|
+
pb_14.Message.setField(this, 1, value);
|
|
952
|
+
}
|
|
953
|
+
get timestamp() {
|
|
954
|
+
return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 2);
|
|
955
|
+
}
|
|
956
|
+
set timestamp(value) {
|
|
957
|
+
pb_14.Message.setWrapperField(this, 2, value);
|
|
958
|
+
}
|
|
959
|
+
get has_timestamp() {
|
|
960
|
+
return pb_14.Message.getField(this, 2) != null;
|
|
961
|
+
}
|
|
962
|
+
get status() {
|
|
963
|
+
return pb_14.Message.getFieldWithDefault(this, 3, testsystem.v1.common.TestStatus.UNKNOWN);
|
|
964
|
+
}
|
|
965
|
+
set status(value) {
|
|
966
|
+
pb_14.Message.setField(this, 3, value);
|
|
967
|
+
}
|
|
968
|
+
get attachments() {
|
|
969
|
+
return pb_14.Message.getRepeatedWrapperField(this, testsystem.v1.common.Attachment, 4);
|
|
970
|
+
}
|
|
971
|
+
set attachments(value) {
|
|
972
|
+
pb_14.Message.setRepeatedWrapperField(this, 4, value);
|
|
973
|
+
}
|
|
974
|
+
static fromObject(data) {
|
|
975
|
+
const message = new _TestStepRequest({});
|
|
976
|
+
if (data.description != null) {
|
|
977
|
+
message.description = data.description;
|
|
978
|
+
}
|
|
979
|
+
if (data.timestamp != null) {
|
|
980
|
+
message.timestamp = google.protobuf.Timestamp.fromObject(data.timestamp);
|
|
981
|
+
}
|
|
982
|
+
if (data.status != null) {
|
|
983
|
+
message.status = data.status;
|
|
984
|
+
}
|
|
985
|
+
if (data.attachments != null) {
|
|
986
|
+
message.attachments = data.attachments.map((item) => testsystem.v1.common.Attachment.fromObject(item));
|
|
987
|
+
}
|
|
988
|
+
return message;
|
|
989
|
+
}
|
|
990
|
+
toObject() {
|
|
991
|
+
const data = {};
|
|
992
|
+
if (this.description != null) {
|
|
993
|
+
data.description = this.description;
|
|
994
|
+
}
|
|
995
|
+
if (this.timestamp != null) {
|
|
996
|
+
data.timestamp = this.timestamp.toObject();
|
|
997
|
+
}
|
|
998
|
+
if (this.status != null) {
|
|
999
|
+
data.status = this.status;
|
|
1000
|
+
}
|
|
1001
|
+
if (this.attachments != null) {
|
|
1002
|
+
data.attachments = this.attachments.map((item) => item.toObject());
|
|
1003
|
+
}
|
|
1004
|
+
return data;
|
|
1005
|
+
}
|
|
1006
|
+
serialize(w) {
|
|
1007
|
+
const writer = w || new pb_14.BinaryWriter();
|
|
1008
|
+
if (this.description.length)
|
|
1009
|
+
writer.writeString(1, this.description);
|
|
1010
|
+
if (this.has_timestamp)
|
|
1011
|
+
writer.writeMessage(2, this.timestamp, () => this.timestamp.serialize(writer));
|
|
1012
|
+
if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
1013
|
+
writer.writeEnum(3, this.status);
|
|
1014
|
+
if (this.attachments.length)
|
|
1015
|
+
writer.writeRepeatedMessage(4, this.attachments, (item) => item.serialize(writer));
|
|
1016
|
+
if (!w)
|
|
1017
|
+
return writer.getResultBuffer();
|
|
1018
|
+
}
|
|
1019
|
+
static deserialize(bytes) {
|
|
1020
|
+
const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _TestStepRequest();
|
|
1021
|
+
while (reader.nextField()) {
|
|
1022
|
+
if (reader.isEndGroup())
|
|
1023
|
+
break;
|
|
1024
|
+
switch (reader.getFieldNumber()) {
|
|
1025
|
+
case 1:
|
|
1026
|
+
message.description = reader.readString();
|
|
1027
|
+
break;
|
|
1028
|
+
case 2:
|
|
1029
|
+
reader.readMessage(message.timestamp, () => message.timestamp = google.protobuf.Timestamp.deserialize(reader));
|
|
1030
|
+
break;
|
|
1031
|
+
case 3:
|
|
1032
|
+
message.status = reader.readEnum();
|
|
1033
|
+
break;
|
|
1034
|
+
case 4:
|
|
1035
|
+
reader.readMessage(message.attachments, () => pb_14.Message.addToRepeatedWrapperField(message, 4, testsystem.v1.common.Attachment.deserialize(reader), testsystem.v1.common.Attachment));
|
|
1036
|
+
break;
|
|
1037
|
+
default:
|
|
1038
|
+
reader.skipField();
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
return message;
|
|
1042
|
+
}
|
|
1043
|
+
serializeBinary() {
|
|
1044
|
+
return this.serialize();
|
|
1045
|
+
}
|
|
1046
|
+
static deserializeBinary(bytes) {
|
|
1047
|
+
return _TestStepRequest.deserialize(bytes);
|
|
1048
|
+
}
|
|
1049
|
+
};
|
|
1050
|
+
_one_of_decls3 = new WeakMap();
|
|
1051
|
+
let TestStepRequest = _TestStepRequest;
|
|
1052
|
+
events2.TestStepRequest = _TestStepRequest;
|
|
1053
|
+
const _TestStepEventRequest = class _TestStepEventRequest extends pb_14.Message {
|
|
1054
|
+
constructor(data) {
|
|
1055
|
+
super();
|
|
1056
|
+
__privateAdd(this, _one_of_decls4, []);
|
|
1057
|
+
pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], __privateGet(this, _one_of_decls4));
|
|
1058
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1059
|
+
if ("test_id" in data && data.test_id != void 0) {
|
|
1060
|
+
this.test_id = data.test_id;
|
|
1061
|
+
}
|
|
1062
|
+
if ("steps" in data && data.steps != void 0) {
|
|
1063
|
+
this.steps = data.steps;
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
get test_id() {
|
|
1068
|
+
return pb_14.Message.getFieldWithDefault(this, 1, "");
|
|
1069
|
+
}
|
|
1070
|
+
set test_id(value) {
|
|
1071
|
+
pb_14.Message.setField(this, 1, value);
|
|
1072
|
+
}
|
|
1073
|
+
get steps() {
|
|
1074
|
+
return pb_14.Message.getRepeatedWrapperField(this, TestStepRequest, 2);
|
|
1075
|
+
}
|
|
1076
|
+
set steps(value) {
|
|
1077
|
+
pb_14.Message.setRepeatedWrapperField(this, 2, value);
|
|
1078
|
+
}
|
|
1079
|
+
static fromObject(data) {
|
|
1080
|
+
const message = new _TestStepEventRequest({});
|
|
1081
|
+
if (data.test_id != null) {
|
|
1082
|
+
message.test_id = data.test_id;
|
|
1083
|
+
}
|
|
1084
|
+
if (data.steps != null) {
|
|
1085
|
+
message.steps = data.steps.map((item) => TestStepRequest.fromObject(item));
|
|
1086
|
+
}
|
|
1087
|
+
return message;
|
|
1088
|
+
}
|
|
1089
|
+
toObject() {
|
|
1090
|
+
const data = {};
|
|
1091
|
+
if (this.test_id != null) {
|
|
1092
|
+
data.test_id = this.test_id;
|
|
1093
|
+
}
|
|
1094
|
+
if (this.steps != null) {
|
|
1095
|
+
data.steps = this.steps.map((item) => item.toObject());
|
|
1096
|
+
}
|
|
1097
|
+
return data;
|
|
1098
|
+
}
|
|
1099
|
+
serialize(w) {
|
|
1100
|
+
const writer = w || new pb_14.BinaryWriter();
|
|
1101
|
+
if (this.test_id.length)
|
|
1102
|
+
writer.writeString(1, this.test_id);
|
|
1103
|
+
if (this.steps.length)
|
|
1104
|
+
writer.writeRepeatedMessage(2, this.steps, (item) => item.serialize(writer));
|
|
1105
|
+
if (!w)
|
|
1106
|
+
return writer.getResultBuffer();
|
|
1107
|
+
}
|
|
1108
|
+
static deserialize(bytes) {
|
|
1109
|
+
const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _TestStepEventRequest();
|
|
1110
|
+
while (reader.nextField()) {
|
|
1111
|
+
if (reader.isEndGroup())
|
|
1112
|
+
break;
|
|
1113
|
+
switch (reader.getFieldNumber()) {
|
|
1114
|
+
case 1:
|
|
1115
|
+
message.test_id = reader.readString();
|
|
1116
|
+
break;
|
|
1117
|
+
case 2:
|
|
1118
|
+
reader.readMessage(message.steps, () => pb_14.Message.addToRepeatedWrapperField(message, 2, TestStepRequest.deserialize(reader), TestStepRequest));
|
|
1119
|
+
break;
|
|
1120
|
+
default:
|
|
1121
|
+
reader.skipField();
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
return message;
|
|
1125
|
+
}
|
|
1126
|
+
serializeBinary() {
|
|
1127
|
+
return this.serialize();
|
|
1128
|
+
}
|
|
1129
|
+
static deserializeBinary(bytes) {
|
|
1130
|
+
return _TestStepEventRequest.deserialize(bytes);
|
|
1131
|
+
}
|
|
1132
|
+
};
|
|
1133
|
+
_one_of_decls4 = new WeakMap();
|
|
1134
|
+
let TestStepEventRequest = _TestStepEventRequest;
|
|
1135
|
+
events2.TestStepEventRequest = _TestStepEventRequest;
|
|
1136
|
+
})(events = v12.events || (v12.events = {}));
|
|
1137
|
+
})(v1 = testsystem5.v1 || (testsystem5.v1 = {}));
|
|
1138
|
+
})(testsystem3 || (testsystem3 = {}));
|
|
631
1139
|
|
|
632
|
-
// lib/observer.ts
|
|
633
|
-
import
|
|
634
|
-
import
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
1140
|
+
// lib/testsystem/v1/observer/observer.ts
|
|
1141
|
+
import * as pb_15 from "google-protobuf";
|
|
1142
|
+
import * as grpc_1 from "@grpc/grpc-js";
|
|
1143
|
+
var testsystem4;
|
|
1144
|
+
((testsystem5) => {
|
|
1145
|
+
let v1;
|
|
1146
|
+
((v12) => {
|
|
1147
|
+
let observer;
|
|
1148
|
+
((observer2) => {
|
|
1149
|
+
var _one_of_decls;
|
|
1150
|
+
const _AckResponse = class _AckResponse extends pb_15.Message {
|
|
1151
|
+
constructor(data) {
|
|
1152
|
+
super();
|
|
1153
|
+
__privateAdd(this, _one_of_decls, [[3]]);
|
|
1154
|
+
pb_15.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls));
|
|
1155
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1156
|
+
if ("success" in data && data.success != void 0) {
|
|
1157
|
+
this.success = data.success;
|
|
1158
|
+
}
|
|
1159
|
+
if ("message" in data && data.message != void 0) {
|
|
1160
|
+
this.message = data.message;
|
|
1161
|
+
}
|
|
1162
|
+
if ("error_code" in data && data.error_code != void 0) {
|
|
1163
|
+
this.error_code = data.error_code;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
get success() {
|
|
1168
|
+
return pb_15.Message.getFieldWithDefault(this, 1, false);
|
|
1169
|
+
}
|
|
1170
|
+
set success(value) {
|
|
1171
|
+
pb_15.Message.setField(this, 1, value);
|
|
1172
|
+
}
|
|
1173
|
+
get message() {
|
|
1174
|
+
return pb_15.Message.getFieldWithDefault(this, 2, "");
|
|
1175
|
+
}
|
|
1176
|
+
set message(value) {
|
|
1177
|
+
pb_15.Message.setField(this, 2, value);
|
|
1178
|
+
}
|
|
1179
|
+
get error_code() {
|
|
1180
|
+
return pb_15.Message.getFieldWithDefault(this, 3, 0);
|
|
1181
|
+
}
|
|
1182
|
+
set error_code(value) {
|
|
1183
|
+
pb_15.Message.setOneofField(this, 3, __privateGet(this, _one_of_decls)[0], value);
|
|
1184
|
+
}
|
|
1185
|
+
get has_error_code() {
|
|
1186
|
+
return pb_15.Message.getField(this, 3) != null;
|
|
1187
|
+
}
|
|
1188
|
+
get _error_code() {
|
|
1189
|
+
const cases = {
|
|
1190
|
+
0: "none",
|
|
1191
|
+
3: "error_code"
|
|
1192
|
+
};
|
|
1193
|
+
return cases[pb_15.Message.computeOneofCase(this, [3])];
|
|
1194
|
+
}
|
|
1195
|
+
static fromObject(data) {
|
|
1196
|
+
const message = new _AckResponse({});
|
|
1197
|
+
if (data.success != null) {
|
|
1198
|
+
message.success = data.success;
|
|
1199
|
+
}
|
|
1200
|
+
if (data.message != null) {
|
|
1201
|
+
message.message = data.message;
|
|
1202
|
+
}
|
|
1203
|
+
if (data.error_code != null) {
|
|
1204
|
+
message.error_code = data.error_code;
|
|
1205
|
+
}
|
|
1206
|
+
return message;
|
|
1207
|
+
}
|
|
1208
|
+
toObject() {
|
|
1209
|
+
const data = {};
|
|
1210
|
+
if (this.success != null) {
|
|
1211
|
+
data.success = this.success;
|
|
1212
|
+
}
|
|
1213
|
+
if (this.message != null) {
|
|
1214
|
+
data.message = this.message;
|
|
1215
|
+
}
|
|
1216
|
+
if (this.error_code != null) {
|
|
1217
|
+
data.error_code = this.error_code;
|
|
1218
|
+
}
|
|
1219
|
+
return data;
|
|
1220
|
+
}
|
|
1221
|
+
serialize(w) {
|
|
1222
|
+
const writer = w || new pb_15.BinaryWriter();
|
|
1223
|
+
if (this.success != false)
|
|
1224
|
+
writer.writeBool(1, this.success);
|
|
1225
|
+
if (this.message.length)
|
|
1226
|
+
writer.writeString(2, this.message);
|
|
1227
|
+
if (this.has_error_code)
|
|
1228
|
+
writer.writeInt32(3, this.error_code);
|
|
1229
|
+
if (!w)
|
|
1230
|
+
return writer.getResultBuffer();
|
|
1231
|
+
}
|
|
1232
|
+
static deserialize(bytes) {
|
|
1233
|
+
const reader = bytes instanceof pb_15.BinaryReader ? bytes : new pb_15.BinaryReader(bytes), message = new _AckResponse();
|
|
1234
|
+
while (reader.nextField()) {
|
|
1235
|
+
if (reader.isEndGroup())
|
|
1236
|
+
break;
|
|
1237
|
+
switch (reader.getFieldNumber()) {
|
|
1238
|
+
case 1:
|
|
1239
|
+
message.success = reader.readBool();
|
|
1240
|
+
break;
|
|
1241
|
+
case 2:
|
|
1242
|
+
message.message = reader.readString();
|
|
1243
|
+
break;
|
|
1244
|
+
case 3:
|
|
1245
|
+
message.error_code = reader.readInt32();
|
|
1246
|
+
break;
|
|
1247
|
+
default:
|
|
1248
|
+
reader.skipField();
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
return message;
|
|
1252
|
+
}
|
|
1253
|
+
serializeBinary() {
|
|
1254
|
+
return this.serialize();
|
|
1255
|
+
}
|
|
1256
|
+
static deserializeBinary(bytes) {
|
|
1257
|
+
return _AckResponse.deserialize(bytes);
|
|
1258
|
+
}
|
|
1259
|
+
};
|
|
1260
|
+
_one_of_decls = new WeakMap();
|
|
1261
|
+
let AckResponse = _AckResponse;
|
|
1262
|
+
observer2.AckResponse = _AckResponse;
|
|
1263
|
+
class UnimplementedTestEventCollectorService {
|
|
653
1264
|
}
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
1265
|
+
UnimplementedTestEventCollectorService.definition = {
|
|
1266
|
+
ReportTestStart: {
|
|
1267
|
+
path: "/testsystem.v1.observer.TestEventCollector/ReportTestStart",
|
|
1268
|
+
requestStream: false,
|
|
1269
|
+
responseStream: false,
|
|
1270
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
1271
|
+
requestDeserialize: (bytes) => testsystem3.v1.events.TestStartEventRequest.deserialize(new Uint8Array(bytes)),
|
|
1272
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
1273
|
+
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
1274
|
+
},
|
|
1275
|
+
ReportTestFinish: {
|
|
1276
|
+
path: "/testsystem.v1.observer.TestEventCollector/ReportTestFinish",
|
|
1277
|
+
requestStream: false,
|
|
1278
|
+
responseStream: false,
|
|
1279
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
1280
|
+
requestDeserialize: (bytes) => testsystem3.v1.events.TestFinishEventRequest.deserialize(new Uint8Array(bytes)),
|
|
1281
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
1282
|
+
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
1283
|
+
},
|
|
1284
|
+
ReportTestStep: {
|
|
1285
|
+
path: "/testsystem.v1.observer.TestEventCollector/ReportTestStep",
|
|
1286
|
+
requestStream: false,
|
|
1287
|
+
responseStream: false,
|
|
1288
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
1289
|
+
requestDeserialize: (bytes) => testsystem3.v1.events.TestStepEventRequest.deserialize(new Uint8Array(bytes)),
|
|
1290
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
1291
|
+
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
1292
|
+
}
|
|
1293
|
+
};
|
|
1294
|
+
observer2.UnimplementedTestEventCollectorService = UnimplementedTestEventCollectorService;
|
|
1295
|
+
class TestEventCollectorClient extends grpc_1.makeGenericClientConstructor(UnimplementedTestEventCollectorService.definition, "TestEventCollector", {}) {
|
|
1296
|
+
constructor(address, credentials, options) {
|
|
1297
|
+
super(address, credentials, options);
|
|
1298
|
+
this.ReportTestStart = (message, metadata, options, callback) => {
|
|
1299
|
+
return super.ReportTestStart(message, metadata, options, callback);
|
|
1300
|
+
};
|
|
1301
|
+
this.ReportTestFinish = (message, metadata, options, callback) => {
|
|
1302
|
+
return super.ReportTestFinish(message, metadata, options, callback);
|
|
1303
|
+
};
|
|
1304
|
+
this.ReportTestStep = (message, metadata, options, callback) => {
|
|
1305
|
+
return super.ReportTestStep(message, metadata, options, callback);
|
|
1306
|
+
};
|
|
1307
|
+
}
|
|
684
1308
|
}
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
if (message.success !== false)
|
|
690
|
-
writer.tag(1, WireType4.Varint).bool(message.success);
|
|
691
|
-
if (message.message !== "")
|
|
692
|
-
writer.tag(2, WireType4.LengthDelimited).string(message.message);
|
|
693
|
-
let u = options.writeUnknownFields;
|
|
694
|
-
if (u !== false)
|
|
695
|
-
(u == true ? UnknownFieldHandler4.onWrite : u)(this.typeName, message, writer);
|
|
696
|
-
return writer;
|
|
697
|
-
}
|
|
698
|
-
};
|
|
699
|
-
var Ack = new Ack$Type();
|
|
700
|
-
var TestEventCollector = new ServiceType("testsystem.observer.TestEventCollector", [
|
|
701
|
-
{ name: "ReportTestStart", options: {}, I: TestStartEvent, O: Ack },
|
|
702
|
-
{ name: "ReportTestFinish", options: {}, I: TestFinishEvent, O: Ack },
|
|
703
|
-
{ name: "ReportTestStep", options: {}, I: TestStepEvent, O: Ack }
|
|
704
|
-
]);
|
|
705
|
-
|
|
706
|
-
// lib/observer.client.ts
|
|
707
|
-
var TestEventCollectorClient = class {
|
|
708
|
-
constructor(_transport) {
|
|
709
|
-
this._transport = _transport;
|
|
710
|
-
this.typeName = TestEventCollector.typeName;
|
|
711
|
-
this.methods = TestEventCollector.methods;
|
|
712
|
-
this.options = TestEventCollector.options;
|
|
713
|
-
}
|
|
714
|
-
/**
|
|
715
|
-
* @generated from protobuf rpc: ReportTestStart
|
|
716
|
-
*/
|
|
717
|
-
reportTestStart(input, options) {
|
|
718
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
719
|
-
return stackIntercept("unary", this._transport, method, opt, input);
|
|
720
|
-
}
|
|
721
|
-
/**
|
|
722
|
-
* @generated from protobuf rpc: ReportTestFinish
|
|
723
|
-
*/
|
|
724
|
-
reportTestFinish(input, options) {
|
|
725
|
-
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
726
|
-
return stackIntercept("unary", this._transport, method, opt, input);
|
|
727
|
-
}
|
|
728
|
-
/**
|
|
729
|
-
* @generated from protobuf rpc: ReportTestStep
|
|
730
|
-
*/
|
|
731
|
-
reportTestStep(input, options) {
|
|
732
|
-
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
733
|
-
return stackIntercept("unary", this._transport, method, opt, input);
|
|
734
|
-
}
|
|
735
|
-
};
|
|
1309
|
+
observer2.TestEventCollectorClient = TestEventCollectorClient;
|
|
1310
|
+
})(observer = v12.observer || (v12.observer = {}));
|
|
1311
|
+
})(v1 = testsystem5.v1 || (testsystem5.v1 = {}));
|
|
1312
|
+
})(testsystem4 || (testsystem4 = {}));
|
|
736
1313
|
export {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
TestStartEvent,
|
|
743
|
-
TestStatus,
|
|
744
|
-
TestStep,
|
|
745
|
-
TestStepEvent
|
|
1314
|
+
google as google_protobuf,
|
|
1315
|
+
testsystem as testsystem_v1_common,
|
|
1316
|
+
testsystem2 as testsystem_v1_entities,
|
|
1317
|
+
testsystem3 as testsystem_v1_events,
|
|
1318
|
+
testsystem4 as testsystem_v1_observer
|
|
746
1319
|
};
|
|
747
1320
|
//# sourceMappingURL=index.mjs.map
|