@stanterprise/protobuf 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-BR7Z6N5S.mjs → chunk-5Q7PEW7T.mjs} +6 -6
- package/dist/{chunk-XIP55YQC.mjs → chunk-5TUCVYG3.mjs} +122 -2
- package/dist/chunk-5TUCVYG3.mjs.map +1 -0
- package/dist/{chunk-WBCHUWL7.mjs → chunk-7T4DREEB.mjs} +82 -2
- package/dist/chunk-7T4DREEB.mjs.map +1 -0
- package/dist/{chunk-XYL4P7DJ.mjs → chunk-GXV2FWLZ.mjs} +2 -2
- package/dist/{chunk-FBR2J74U.mjs → chunk-QENINSQL.mjs} +2 -2
- package/dist/{chunk-34GQCWQN.mjs → chunk-RRKAEIBJ.mjs} +2 -2
- package/dist/{chunk-4YJNHYW7.mjs → chunk-ZLJNJSRC.mjs} +2 -2
- package/dist/index.js +201 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/lib/testsystem/v1/entities/test_case.d.ts +15 -0
- package/dist/lib/testsystem/v1/entities/test_case.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts +5 -0
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/events/events.d.ts +30 -0
- package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -1
- package/dist/testsystem/index.js +201 -1
- package/dist/testsystem/index.js.map +1 -1
- package/dist/testsystem/index.mjs +7 -7
- package/dist/testsystem/v1/entities/index.js +81 -1
- package/dist/testsystem/v1/entities/index.js.map +1 -1
- package/dist/testsystem/v1/entities/index.mjs +2 -2
- package/dist/testsystem/v1/events/index.js +201 -1
- package/dist/testsystem/v1/events/index.js.map +1 -1
- package/dist/testsystem/v1/events/index.mjs +3 -3
- package/dist/testsystem/v1/index.js +201 -1
- package/dist/testsystem/v1/index.js.map +1 -1
- package/dist/testsystem/v1/index.mjs +9 -9
- package/dist/testsystem/v1/observer/index.js +201 -1
- package/dist/testsystem/v1/observer/index.js.map +1 -1
- package/dist/testsystem/v1/observer/index.mjs +4 -4
- package/lib/testsystem/v1/entities/test_case.ts +70 -1
- package/lib/testsystem/v1/entities/test_suite.ts +23 -0
- package/lib/testsystem/v1/events/events.ts +138 -0
- package/package.json +1 -1
- package/dist/chunk-WBCHUWL7.mjs.map +0 -1
- package/dist/chunk-XIP55YQC.mjs.map +0 -1
- /package/dist/{chunk-BR7Z6N5S.mjs.map → chunk-5Q7PEW7T.mjs.map} +0 -0
- /package/dist/{chunk-XYL4P7DJ.mjs.map → chunk-GXV2FWLZ.mjs.map} +0 -0
- /package/dist/{chunk-FBR2J74U.mjs.map → chunk-QENINSQL.mjs.map} +0 -0
- /package/dist/{chunk-34GQCWQN.mjs.map → chunk-RRKAEIBJ.mjs.map} +0 -0
- /package/dist/{chunk-4YJNHYW7.mjs.map → chunk-ZLJNJSRC.mjs.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AckResponse,
|
|
3
3
|
TestEventCollectorClient
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
4
|
+
} from "../../../chunk-QENINSQL.mjs";
|
|
5
|
+
import "../../../chunk-ZLJNJSRC.mjs";
|
|
6
|
+
import "../../../chunk-5TUCVYG3.mjs";
|
|
7
|
+
import "../../../chunk-7T4DREEB.mjs";
|
|
8
8
|
import "../../../chunk-EMALOWTT.mjs";
|
|
9
9
|
export {
|
|
10
10
|
AckResponse,
|
|
@@ -30,6 +30,7 @@ export namespace testsystem.v1.entities {
|
|
|
30
30
|
retry_count?: number;
|
|
31
31
|
retry_index?: number;
|
|
32
32
|
timeout?: number;
|
|
33
|
+
execution_id?: string;
|
|
33
34
|
}) {
|
|
34
35
|
super();
|
|
35
36
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [10, 13, 15], this.#one_of_decls);
|
|
@@ -91,6 +92,9 @@ export namespace testsystem.v1.entities {
|
|
|
91
92
|
if ("timeout" in data && data.timeout != undefined) {
|
|
92
93
|
this.timeout = data.timeout;
|
|
93
94
|
}
|
|
95
|
+
if ("execution_id" in data && data.execution_id != undefined) {
|
|
96
|
+
this.execution_id = data.execution_id;
|
|
97
|
+
}
|
|
94
98
|
}
|
|
95
99
|
if (!this.metadata)
|
|
96
100
|
this.metadata = new Map();
|
|
@@ -218,6 +222,12 @@ export namespace testsystem.v1.entities {
|
|
|
218
222
|
set timeout(value: number) {
|
|
219
223
|
pb_1.Message.setField(this, 19, value);
|
|
220
224
|
}
|
|
225
|
+
get execution_id() {
|
|
226
|
+
return pb_1.Message.getFieldWithDefault(this, 20, "") as string;
|
|
227
|
+
}
|
|
228
|
+
set execution_id(value: string) {
|
|
229
|
+
pb_1.Message.setField(this, 20, value);
|
|
230
|
+
}
|
|
221
231
|
static fromObject(data: {
|
|
222
232
|
id?: string;
|
|
223
233
|
name?: string;
|
|
@@ -240,6 +250,7 @@ export namespace testsystem.v1.entities {
|
|
|
240
250
|
retry_count?: number;
|
|
241
251
|
retry_index?: number;
|
|
242
252
|
timeout?: number;
|
|
253
|
+
execution_id?: string;
|
|
243
254
|
}): TestCaseRun {
|
|
244
255
|
const message = new TestCaseRun({});
|
|
245
256
|
if (data.id != null) {
|
|
@@ -299,6 +310,9 @@ export namespace testsystem.v1.entities {
|
|
|
299
310
|
if (data.timeout != null) {
|
|
300
311
|
message.timeout = data.timeout;
|
|
301
312
|
}
|
|
313
|
+
if (data.execution_id != null) {
|
|
314
|
+
message.execution_id = data.execution_id;
|
|
315
|
+
}
|
|
302
316
|
return message;
|
|
303
317
|
}
|
|
304
318
|
toObject() {
|
|
@@ -324,6 +338,7 @@ export namespace testsystem.v1.entities {
|
|
|
324
338
|
retry_count?: number;
|
|
325
339
|
retry_index?: number;
|
|
326
340
|
timeout?: number;
|
|
341
|
+
execution_id?: string;
|
|
327
342
|
} = {};
|
|
328
343
|
if (this.id != null) {
|
|
329
344
|
data.id = this.id;
|
|
@@ -382,6 +397,9 @@ export namespace testsystem.v1.entities {
|
|
|
382
397
|
if (this.timeout != null) {
|
|
383
398
|
data.timeout = this.timeout;
|
|
384
399
|
}
|
|
400
|
+
if (this.execution_id != null) {
|
|
401
|
+
data.execution_id = this.execution_id;
|
|
402
|
+
}
|
|
385
403
|
return data;
|
|
386
404
|
}
|
|
387
405
|
serialize(): Uint8Array;
|
|
@@ -430,6 +448,8 @@ export namespace testsystem.v1.entities {
|
|
|
430
448
|
writer.writeInt32(18, this.retry_index);
|
|
431
449
|
if (this.timeout != 0)
|
|
432
450
|
writer.writeInt32(19, this.timeout);
|
|
451
|
+
if (this.execution_id.length)
|
|
452
|
+
writer.writeString(20, this.execution_id);
|
|
433
453
|
if (!w)
|
|
434
454
|
return writer.getResultBuffer();
|
|
435
455
|
}
|
|
@@ -496,6 +516,9 @@ export namespace testsystem.v1.entities {
|
|
|
496
516
|
case 19:
|
|
497
517
|
message.timeout = reader.readInt32();
|
|
498
518
|
break;
|
|
519
|
+
case 20:
|
|
520
|
+
message.execution_id = reader.readString();
|
|
521
|
+
break;
|
|
499
522
|
default: reader.skipField();
|
|
500
523
|
}
|
|
501
524
|
}
|
|
@@ -528,9 +551,11 @@ export namespace testsystem.v1.entities {
|
|
|
528
551
|
location?: string;
|
|
529
552
|
category?: string;
|
|
530
553
|
retry_index?: number;
|
|
554
|
+
attachments?: dependency_1.testsystem.v1.common.Attachment[];
|
|
555
|
+
execution_id?: string;
|
|
531
556
|
}) {
|
|
532
557
|
super();
|
|
533
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [14], this.#one_of_decls);
|
|
558
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [14, 18], this.#one_of_decls);
|
|
534
559
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
535
560
|
if ("id" in data && data.id != undefined) {
|
|
536
561
|
this.id = data.id;
|
|
@@ -583,6 +608,12 @@ export namespace testsystem.v1.entities {
|
|
|
583
608
|
if ("retry_index" in data && data.retry_index != undefined) {
|
|
584
609
|
this.retry_index = data.retry_index;
|
|
585
610
|
}
|
|
611
|
+
if ("attachments" in data && data.attachments != undefined) {
|
|
612
|
+
this.attachments = data.attachments;
|
|
613
|
+
}
|
|
614
|
+
if ("execution_id" in data && data.execution_id != undefined) {
|
|
615
|
+
this.execution_id = data.execution_id;
|
|
616
|
+
}
|
|
586
617
|
}
|
|
587
618
|
if (!this.metadata)
|
|
588
619
|
this.metadata = new Map();
|
|
@@ -695,6 +726,18 @@ export namespace testsystem.v1.entities {
|
|
|
695
726
|
set retry_index(value: number) {
|
|
696
727
|
pb_1.Message.setField(this, 17, value);
|
|
697
728
|
}
|
|
729
|
+
get attachments() {
|
|
730
|
+
return pb_1.Message.getRepeatedWrapperField(this, dependency_1.testsystem.v1.common.Attachment, 18) as dependency_1.testsystem.v1.common.Attachment[];
|
|
731
|
+
}
|
|
732
|
+
set attachments(value: dependency_1.testsystem.v1.common.Attachment[]) {
|
|
733
|
+
pb_1.Message.setRepeatedWrapperField(this, 18, value);
|
|
734
|
+
}
|
|
735
|
+
get execution_id() {
|
|
736
|
+
return pb_1.Message.getFieldWithDefault(this, 19, "") as string;
|
|
737
|
+
}
|
|
738
|
+
set execution_id(value: string) {
|
|
739
|
+
pb_1.Message.setField(this, 19, value);
|
|
740
|
+
}
|
|
698
741
|
static fromObject(data: {
|
|
699
742
|
id?: string;
|
|
700
743
|
run_id?: string;
|
|
@@ -715,6 +758,8 @@ export namespace testsystem.v1.entities {
|
|
|
715
758
|
location?: string;
|
|
716
759
|
category?: string;
|
|
717
760
|
retry_index?: number;
|
|
761
|
+
attachments?: ReturnType<typeof dependency_1.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
762
|
+
execution_id?: string;
|
|
718
763
|
}): StepRun {
|
|
719
764
|
const message = new StepRun({});
|
|
720
765
|
if (data.id != null) {
|
|
@@ -768,6 +813,12 @@ export namespace testsystem.v1.entities {
|
|
|
768
813
|
if (data.retry_index != null) {
|
|
769
814
|
message.retry_index = data.retry_index;
|
|
770
815
|
}
|
|
816
|
+
if (data.attachments != null) {
|
|
817
|
+
message.attachments = data.attachments.map(item => dependency_1.testsystem.v1.common.Attachment.fromObject(item));
|
|
818
|
+
}
|
|
819
|
+
if (data.execution_id != null) {
|
|
820
|
+
message.execution_id = data.execution_id;
|
|
821
|
+
}
|
|
771
822
|
return message;
|
|
772
823
|
}
|
|
773
824
|
toObject() {
|
|
@@ -791,6 +842,8 @@ export namespace testsystem.v1.entities {
|
|
|
791
842
|
location?: string;
|
|
792
843
|
category?: string;
|
|
793
844
|
retry_index?: number;
|
|
845
|
+
attachments?: ReturnType<typeof dependency_1.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
846
|
+
execution_id?: string;
|
|
794
847
|
} = {};
|
|
795
848
|
if (this.id != null) {
|
|
796
849
|
data.id = this.id;
|
|
@@ -843,6 +896,12 @@ export namespace testsystem.v1.entities {
|
|
|
843
896
|
if (this.retry_index != null) {
|
|
844
897
|
data.retry_index = this.retry_index;
|
|
845
898
|
}
|
|
899
|
+
if (this.attachments != null) {
|
|
900
|
+
data.attachments = this.attachments.map((item: dependency_1.testsystem.v1.common.Attachment) => item.toObject());
|
|
901
|
+
}
|
|
902
|
+
if (this.execution_id != null) {
|
|
903
|
+
data.execution_id = this.execution_id;
|
|
904
|
+
}
|
|
846
905
|
return data;
|
|
847
906
|
}
|
|
848
907
|
serialize(): Uint8Array;
|
|
@@ -887,6 +946,10 @@ export namespace testsystem.v1.entities {
|
|
|
887
946
|
writer.writeString(16, this.category);
|
|
888
947
|
if (this.retry_index != 0)
|
|
889
948
|
writer.writeInt32(17, this.retry_index);
|
|
949
|
+
if (this.attachments.length)
|
|
950
|
+
writer.writeRepeatedMessage(18, this.attachments, (item: dependency_1.testsystem.v1.common.Attachment) => item.serialize(writer));
|
|
951
|
+
if (this.execution_id.length)
|
|
952
|
+
writer.writeString(19, this.execution_id);
|
|
890
953
|
if (!w)
|
|
891
954
|
return writer.getResultBuffer();
|
|
892
955
|
}
|
|
@@ -947,6 +1010,12 @@ export namespace testsystem.v1.entities {
|
|
|
947
1010
|
case 17:
|
|
948
1011
|
message.retry_index = reader.readInt32();
|
|
949
1012
|
break;
|
|
1013
|
+
case 18:
|
|
1014
|
+
reader.readMessage(message.attachments, () => pb_1.Message.addToRepeatedWrapperField(message, 18, dependency_1.testsystem.v1.common.Attachment.deserialize(reader), dependency_1.testsystem.v1.common.Attachment));
|
|
1015
|
+
break;
|
|
1016
|
+
case 19:
|
|
1017
|
+
message.execution_id = reader.readString();
|
|
1018
|
+
break;
|
|
950
1019
|
default: reader.skipField();
|
|
951
1020
|
}
|
|
952
1021
|
}
|
|
@@ -38,6 +38,7 @@ export namespace testsystem.v1.entities {
|
|
|
38
38
|
owner?: string;
|
|
39
39
|
test_cases?: dependency_2.testsystem.v1.entities.TestCaseRun[];
|
|
40
40
|
sub_suites?: TestSuiteRun[];
|
|
41
|
+
execution_id?: string;
|
|
41
42
|
}) {
|
|
42
43
|
super();
|
|
43
44
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [13, 14, 19, 20], this.#one_of_decls);
|
|
@@ -102,6 +103,9 @@ export namespace testsystem.v1.entities {
|
|
|
102
103
|
if ("sub_suites" in data && data.sub_suites != undefined) {
|
|
103
104
|
this.sub_suites = data.sub_suites;
|
|
104
105
|
}
|
|
106
|
+
if ("execution_id" in data && data.execution_id != undefined) {
|
|
107
|
+
this.execution_id = data.execution_id;
|
|
108
|
+
}
|
|
105
109
|
}
|
|
106
110
|
if (!this.metadata)
|
|
107
111
|
this.metadata = new Map();
|
|
@@ -235,6 +239,12 @@ export namespace testsystem.v1.entities {
|
|
|
235
239
|
set sub_suites(value: TestSuiteRun[]) {
|
|
236
240
|
pb_1.Message.setRepeatedWrapperField(this, 20, value);
|
|
237
241
|
}
|
|
242
|
+
get execution_id() {
|
|
243
|
+
return pb_1.Message.getFieldWithDefault(this, 21, "") as string;
|
|
244
|
+
}
|
|
245
|
+
set execution_id(value: string) {
|
|
246
|
+
pb_1.Message.setField(this, 21, value);
|
|
247
|
+
}
|
|
238
248
|
static fromObject(data: {
|
|
239
249
|
id?: string;
|
|
240
250
|
name?: string;
|
|
@@ -258,6 +268,7 @@ export namespace testsystem.v1.entities {
|
|
|
258
268
|
owner?: string;
|
|
259
269
|
test_cases?: ReturnType<typeof dependency_2.testsystem.v1.entities.TestCaseRun.prototype.toObject>[];
|
|
260
270
|
sub_suites?: ReturnType<typeof TestSuiteRun.prototype.toObject>[];
|
|
271
|
+
execution_id?: string;
|
|
261
272
|
}): TestSuiteRun {
|
|
262
273
|
const message = new TestSuiteRun({});
|
|
263
274
|
if (data.id != null) {
|
|
@@ -320,6 +331,9 @@ export namespace testsystem.v1.entities {
|
|
|
320
331
|
if (data.sub_suites != null) {
|
|
321
332
|
message.sub_suites = data.sub_suites.map(item => TestSuiteRun.fromObject(item));
|
|
322
333
|
}
|
|
334
|
+
if (data.execution_id != null) {
|
|
335
|
+
message.execution_id = data.execution_id;
|
|
336
|
+
}
|
|
323
337
|
return message;
|
|
324
338
|
}
|
|
325
339
|
toObject() {
|
|
@@ -346,6 +360,7 @@ export namespace testsystem.v1.entities {
|
|
|
346
360
|
owner?: string;
|
|
347
361
|
test_cases?: ReturnType<typeof dependency_2.testsystem.v1.entities.TestCaseRun.prototype.toObject>[];
|
|
348
362
|
sub_suites?: ReturnType<typeof TestSuiteRun.prototype.toObject>[];
|
|
363
|
+
execution_id?: string;
|
|
349
364
|
} = {};
|
|
350
365
|
if (this.id != null) {
|
|
351
366
|
data.id = this.id;
|
|
@@ -407,6 +422,9 @@ export namespace testsystem.v1.entities {
|
|
|
407
422
|
if (this.sub_suites != null) {
|
|
408
423
|
data.sub_suites = this.sub_suites.map((item: TestSuiteRun) => item.toObject());
|
|
409
424
|
}
|
|
425
|
+
if (this.execution_id != null) {
|
|
426
|
+
data.execution_id = this.execution_id;
|
|
427
|
+
}
|
|
410
428
|
return data;
|
|
411
429
|
}
|
|
412
430
|
serialize(): Uint8Array;
|
|
@@ -457,6 +475,8 @@ export namespace testsystem.v1.entities {
|
|
|
457
475
|
writer.writeRepeatedMessage(19, this.test_cases, (item: dependency_2.testsystem.v1.entities.TestCaseRun) => item.serialize(writer));
|
|
458
476
|
if (this.sub_suites.length)
|
|
459
477
|
writer.writeRepeatedMessage(20, this.sub_suites, (item: TestSuiteRun) => item.serialize(writer));
|
|
478
|
+
if (this.execution_id.length)
|
|
479
|
+
writer.writeString(21, this.execution_id);
|
|
460
480
|
if (!w)
|
|
461
481
|
return writer.getResultBuffer();
|
|
462
482
|
}
|
|
@@ -526,6 +546,9 @@ export namespace testsystem.v1.entities {
|
|
|
526
546
|
case 20:
|
|
527
547
|
reader.readMessage(message.sub_suites, () => pb_1.Message.addToRepeatedWrapperField(message, 20, TestSuiteRun.deserialize(reader), TestSuiteRun));
|
|
528
548
|
break;
|
|
549
|
+
case 21:
|
|
550
|
+
message.execution_id = reader.readString();
|
|
551
|
+
break;
|
|
529
552
|
default: reader.skipField();
|
|
530
553
|
}
|
|
531
554
|
}
|