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