@stanterprise/protobuf 0.0.11 → 0.0.13
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 +24 -0
- package/dist/chunk-4NKV5THZ.mjs +1507 -0
- package/dist/chunk-4NKV5THZ.mjs.map +1 -0
- package/dist/chunk-BS6UMTC7.mjs +29 -0
- package/dist/chunk-BS6UMTC7.mjs.map +1 -0
- package/dist/chunk-F6CKBSG3.mjs +294 -0
- package/dist/chunk-F6CKBSG3.mjs.map +1 -0
- package/dist/chunk-JOH5DJAY.mjs +26 -0
- package/dist/chunk-JOH5DJAY.mjs.map +1 -0
- package/dist/chunk-OYBN67JW.mjs +52 -0
- package/dist/chunk-OYBN67JW.mjs.map +1 -0
- package/dist/chunk-S5P2S67H.mjs +20 -0
- package/dist/chunk-S5P2S67H.mjs.map +1 -0
- package/dist/chunk-TJOHFA2M.mjs +1217 -0
- package/dist/chunk-TJOHFA2M.mjs.map +1 -0
- package/dist/chunk-VBR2HXFF.mjs +179 -0
- package/dist/chunk-VBR2HXFF.mjs.map +1 -0
- package/dist/chunk-YYTEIJXG.mjs +22 -0
- package/dist/chunk-YYTEIJXG.mjs.map +1 -0
- package/dist/index.js +176 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -2973
- package/dist/index.mjs.map +1 -1
- package/dist/lib/testsystem/v1/events/events.d.ts +44 -0
- package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/observer/observer.d.ts +11 -0
- package/dist/lib/testsystem/v1/observer/observer.d.ts.map +1 -1
- package/dist/testsystem/index.d.ts +2 -0
- package/dist/testsystem/index.d.ts.map +1 -0
- package/dist/testsystem/index.js +3252 -0
- package/dist/testsystem/index.js.map +1 -0
- package/dist/testsystem/index.mjs +15 -0
- package/dist/testsystem/index.mjs.map +1 -0
- package/dist/testsystem/v1/common/index.d.ts +6 -0
- package/dist/testsystem/v1/common/index.d.ts.map +1 -0
- package/dist/testsystem/v1/common/index.js +212 -0
- package/dist/testsystem/v1/common/index.js.map +1 -0
- package/dist/testsystem/v1/common/index.mjs +10 -0
- package/dist/testsystem/v1/common/index.mjs.map +1 -0
- package/dist/testsystem/v1/entities/index.d.ts +9 -0
- package/dist/testsystem/v1/entities/index.d.ts.map +1 -0
- package/dist/testsystem/v1/entities/index.js +1704 -0
- package/dist/testsystem/v1/entities/index.js.map +1 -0
- package/dist/testsystem/v1/entities/index.mjs +13 -0
- package/dist/testsystem/v1/entities/index.mjs.map +1 -0
- package/dist/testsystem/v1/events/index.d.ts +26 -0
- package/dist/testsystem/v1/events/index.d.ts.map +1 -0
- package/dist/testsystem/v1/events/index.js +2933 -0
- package/dist/testsystem/v1/events/index.js.map +1 -0
- package/dist/testsystem/v1/events/index.mjs +32 -0
- package/dist/testsystem/v1/events/index.mjs.map +1 -0
- package/dist/testsystem/v1/index.d.ts +5 -0
- package/dist/testsystem/v1/index.d.ts.map +1 -0
- package/dist/testsystem/v1/index.js +3249 -0
- package/dist/testsystem/v1/index.js.map +1 -0
- package/dist/testsystem/v1/index.mjs +24 -0
- package/dist/testsystem/v1/index.mjs.map +1 -0
- package/dist/testsystem/v1/observer/index.d.ts +6 -0
- package/dist/testsystem/v1/observer/index.d.ts.map +1 -0
- package/dist/testsystem/v1/observer/index.js +3185 -0
- package/dist/testsystem/v1/observer/index.js.map +1 -0
- package/dist/testsystem/v1/observer/index.mjs +13 -0
- package/dist/testsystem/v1/observer/index.mjs.map +1 -0
- package/lib/testsystem/v1/events/events.ts +182 -0
- package/lib/testsystem/v1/observer/observer.ts +13 -0
- package/package.json +31 -1
|
@@ -297,6 +297,7 @@ export namespace testsystem.v1.events {
|
|
|
297
297
|
stack_trace?: string;
|
|
298
298
|
timestamp?: dependency_1.google.protobuf.Timestamp;
|
|
299
299
|
attachments?: dependency_2.testsystem.v1.common.Attachment[];
|
|
300
|
+
run_id?: string;
|
|
300
301
|
}) {
|
|
301
302
|
super();
|
|
302
303
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], this.#one_of_decls);
|
|
@@ -316,6 +317,9 @@ export namespace testsystem.v1.events {
|
|
|
316
317
|
if ("attachments" in data && data.attachments != undefined) {
|
|
317
318
|
this.attachments = data.attachments;
|
|
318
319
|
}
|
|
320
|
+
if ("run_id" in data && data.run_id != undefined) {
|
|
321
|
+
this.run_id = data.run_id;
|
|
322
|
+
}
|
|
319
323
|
}
|
|
320
324
|
}
|
|
321
325
|
get test_id() {
|
|
@@ -351,12 +355,19 @@ export namespace testsystem.v1.events {
|
|
|
351
355
|
set attachments(value: dependency_2.testsystem.v1.common.Attachment[]) {
|
|
352
356
|
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
353
357
|
}
|
|
358
|
+
get run_id() {
|
|
359
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "") as string;
|
|
360
|
+
}
|
|
361
|
+
set run_id(value: string) {
|
|
362
|
+
pb_1.Message.setField(this, 6, value);
|
|
363
|
+
}
|
|
354
364
|
static fromObject(data: {
|
|
355
365
|
test_id?: string;
|
|
356
366
|
failure_message?: string;
|
|
357
367
|
stack_trace?: string;
|
|
358
368
|
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
359
369
|
attachments?: ReturnType<typeof dependency_2.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
370
|
+
run_id?: string;
|
|
360
371
|
}): TestFailureEventRequest {
|
|
361
372
|
const message = new TestFailureEventRequest({});
|
|
362
373
|
if (data.test_id != null) {
|
|
@@ -374,6 +385,9 @@ export namespace testsystem.v1.events {
|
|
|
374
385
|
if (data.attachments != null) {
|
|
375
386
|
message.attachments = data.attachments.map(item => dependency_2.testsystem.v1.common.Attachment.fromObject(item));
|
|
376
387
|
}
|
|
388
|
+
if (data.run_id != null) {
|
|
389
|
+
message.run_id = data.run_id;
|
|
390
|
+
}
|
|
377
391
|
return message;
|
|
378
392
|
}
|
|
379
393
|
toObject() {
|
|
@@ -383,6 +397,7 @@ export namespace testsystem.v1.events {
|
|
|
383
397
|
stack_trace?: string;
|
|
384
398
|
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
385
399
|
attachments?: ReturnType<typeof dependency_2.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
400
|
+
run_id?: string;
|
|
386
401
|
} = {};
|
|
387
402
|
if (this.test_id != null) {
|
|
388
403
|
data.test_id = this.test_id;
|
|
@@ -399,6 +414,9 @@ export namespace testsystem.v1.events {
|
|
|
399
414
|
if (this.attachments != null) {
|
|
400
415
|
data.attachments = this.attachments.map((item: dependency_2.testsystem.v1.common.Attachment) => item.toObject());
|
|
401
416
|
}
|
|
417
|
+
if (this.run_id != null) {
|
|
418
|
+
data.run_id = this.run_id;
|
|
419
|
+
}
|
|
402
420
|
return data;
|
|
403
421
|
}
|
|
404
422
|
serialize(): Uint8Array;
|
|
@@ -415,6 +433,8 @@ export namespace testsystem.v1.events {
|
|
|
415
433
|
writer.writeMessage(4, this.timestamp, () => this.timestamp.serialize(writer));
|
|
416
434
|
if (this.attachments.length)
|
|
417
435
|
writer.writeRepeatedMessage(5, this.attachments, (item: dependency_2.testsystem.v1.common.Attachment) => item.serialize(writer));
|
|
436
|
+
if (this.run_id.length)
|
|
437
|
+
writer.writeString(6, this.run_id);
|
|
418
438
|
if (!w)
|
|
419
439
|
return writer.getResultBuffer();
|
|
420
440
|
}
|
|
@@ -439,6 +459,9 @@ export namespace testsystem.v1.events {
|
|
|
439
459
|
case 5:
|
|
440
460
|
reader.readMessage(message.attachments, () => pb_1.Message.addToRepeatedWrapperField(message, 5, dependency_2.testsystem.v1.common.Attachment.deserialize(reader), dependency_2.testsystem.v1.common.Attachment));
|
|
441
461
|
break;
|
|
462
|
+
case 6:
|
|
463
|
+
message.run_id = reader.readString();
|
|
464
|
+
break;
|
|
442
465
|
default: reader.skipField();
|
|
443
466
|
}
|
|
444
467
|
}
|
|
@@ -459,6 +482,7 @@ export namespace testsystem.v1.events {
|
|
|
459
482
|
stack_trace?: string;
|
|
460
483
|
timestamp?: dependency_1.google.protobuf.Timestamp;
|
|
461
484
|
attachments?: dependency_2.testsystem.v1.common.Attachment[];
|
|
485
|
+
run_id?: string;
|
|
462
486
|
}) {
|
|
463
487
|
super();
|
|
464
488
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], this.#one_of_decls);
|
|
@@ -478,6 +502,9 @@ export namespace testsystem.v1.events {
|
|
|
478
502
|
if ("attachments" in data && data.attachments != undefined) {
|
|
479
503
|
this.attachments = data.attachments;
|
|
480
504
|
}
|
|
505
|
+
if ("run_id" in data && data.run_id != undefined) {
|
|
506
|
+
this.run_id = data.run_id;
|
|
507
|
+
}
|
|
481
508
|
}
|
|
482
509
|
}
|
|
483
510
|
get test_id() {
|
|
@@ -513,12 +540,19 @@ export namespace testsystem.v1.events {
|
|
|
513
540
|
set attachments(value: dependency_2.testsystem.v1.common.Attachment[]) {
|
|
514
541
|
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
515
542
|
}
|
|
543
|
+
get run_id() {
|
|
544
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "") as string;
|
|
545
|
+
}
|
|
546
|
+
set run_id(value: string) {
|
|
547
|
+
pb_1.Message.setField(this, 6, value);
|
|
548
|
+
}
|
|
516
549
|
static fromObject(data: {
|
|
517
550
|
test_id?: string;
|
|
518
551
|
error_message?: string;
|
|
519
552
|
stack_trace?: string;
|
|
520
553
|
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
521
554
|
attachments?: ReturnType<typeof dependency_2.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
555
|
+
run_id?: string;
|
|
522
556
|
}): TestErrorEventRequest {
|
|
523
557
|
const message = new TestErrorEventRequest({});
|
|
524
558
|
if (data.test_id != null) {
|
|
@@ -536,6 +570,9 @@ export namespace testsystem.v1.events {
|
|
|
536
570
|
if (data.attachments != null) {
|
|
537
571
|
message.attachments = data.attachments.map(item => dependency_2.testsystem.v1.common.Attachment.fromObject(item));
|
|
538
572
|
}
|
|
573
|
+
if (data.run_id != null) {
|
|
574
|
+
message.run_id = data.run_id;
|
|
575
|
+
}
|
|
539
576
|
return message;
|
|
540
577
|
}
|
|
541
578
|
toObject() {
|
|
@@ -545,6 +582,7 @@ export namespace testsystem.v1.events {
|
|
|
545
582
|
stack_trace?: string;
|
|
546
583
|
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
547
584
|
attachments?: ReturnType<typeof dependency_2.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
585
|
+
run_id?: string;
|
|
548
586
|
} = {};
|
|
549
587
|
if (this.test_id != null) {
|
|
550
588
|
data.test_id = this.test_id;
|
|
@@ -561,6 +599,9 @@ export namespace testsystem.v1.events {
|
|
|
561
599
|
if (this.attachments != null) {
|
|
562
600
|
data.attachments = this.attachments.map((item: dependency_2.testsystem.v1.common.Attachment) => item.toObject());
|
|
563
601
|
}
|
|
602
|
+
if (this.run_id != null) {
|
|
603
|
+
data.run_id = this.run_id;
|
|
604
|
+
}
|
|
564
605
|
return data;
|
|
565
606
|
}
|
|
566
607
|
serialize(): Uint8Array;
|
|
@@ -577,6 +618,8 @@ export namespace testsystem.v1.events {
|
|
|
577
618
|
writer.writeMessage(4, this.timestamp, () => this.timestamp.serialize(writer));
|
|
578
619
|
if (this.attachments.length)
|
|
579
620
|
writer.writeRepeatedMessage(5, this.attachments, (item: dependency_2.testsystem.v1.common.Attachment) => item.serialize(writer));
|
|
621
|
+
if (this.run_id.length)
|
|
622
|
+
writer.writeString(6, this.run_id);
|
|
580
623
|
if (!w)
|
|
581
624
|
return writer.getResultBuffer();
|
|
582
625
|
}
|
|
@@ -601,6 +644,9 @@ export namespace testsystem.v1.events {
|
|
|
601
644
|
case 5:
|
|
602
645
|
reader.readMessage(message.attachments, () => pb_1.Message.addToRepeatedWrapperField(message, 5, dependency_2.testsystem.v1.common.Attachment.deserialize(reader), dependency_2.testsystem.v1.common.Attachment));
|
|
603
646
|
break;
|
|
647
|
+
case 6:
|
|
648
|
+
message.run_id = reader.readString();
|
|
649
|
+
break;
|
|
604
650
|
default: reader.skipField();
|
|
605
651
|
}
|
|
606
652
|
}
|
|
@@ -620,6 +666,7 @@ export namespace testsystem.v1.events {
|
|
|
620
666
|
message?: string;
|
|
621
667
|
timestamp?: dependency_1.google.protobuf.Timestamp;
|
|
622
668
|
test_case_run_id?: string;
|
|
669
|
+
run_id?: string;
|
|
623
670
|
}) {
|
|
624
671
|
super();
|
|
625
672
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
@@ -636,6 +683,9 @@ export namespace testsystem.v1.events {
|
|
|
636
683
|
if ("test_case_run_id" in data && data.test_case_run_id != undefined) {
|
|
637
684
|
this.test_case_run_id = data.test_case_run_id;
|
|
638
685
|
}
|
|
686
|
+
if ("run_id" in data && data.run_id != undefined) {
|
|
687
|
+
this.run_id = data.run_id;
|
|
688
|
+
}
|
|
639
689
|
}
|
|
640
690
|
}
|
|
641
691
|
get test_id() {
|
|
@@ -665,11 +715,18 @@ export namespace testsystem.v1.events {
|
|
|
665
715
|
set test_case_run_id(value: string) {
|
|
666
716
|
pb_1.Message.setField(this, 4, value);
|
|
667
717
|
}
|
|
718
|
+
get run_id() {
|
|
719
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
720
|
+
}
|
|
721
|
+
set run_id(value: string) {
|
|
722
|
+
pb_1.Message.setField(this, 5, value);
|
|
723
|
+
}
|
|
668
724
|
static fromObject(data: {
|
|
669
725
|
test_id?: string;
|
|
670
726
|
message?: string;
|
|
671
727
|
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
672
728
|
test_case_run_id?: string;
|
|
729
|
+
run_id?: string;
|
|
673
730
|
}): StdErrorEventRequest {
|
|
674
731
|
const message = new StdErrorEventRequest({});
|
|
675
732
|
if (data.test_id != null) {
|
|
@@ -684,6 +741,9 @@ export namespace testsystem.v1.events {
|
|
|
684
741
|
if (data.test_case_run_id != null) {
|
|
685
742
|
message.test_case_run_id = data.test_case_run_id;
|
|
686
743
|
}
|
|
744
|
+
if (data.run_id != null) {
|
|
745
|
+
message.run_id = data.run_id;
|
|
746
|
+
}
|
|
687
747
|
return message;
|
|
688
748
|
}
|
|
689
749
|
toObject() {
|
|
@@ -692,6 +752,7 @@ export namespace testsystem.v1.events {
|
|
|
692
752
|
message?: string;
|
|
693
753
|
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
694
754
|
test_case_run_id?: string;
|
|
755
|
+
run_id?: string;
|
|
695
756
|
} = {};
|
|
696
757
|
if (this.test_id != null) {
|
|
697
758
|
data.test_id = this.test_id;
|
|
@@ -705,6 +766,9 @@ export namespace testsystem.v1.events {
|
|
|
705
766
|
if (this.test_case_run_id != null) {
|
|
706
767
|
data.test_case_run_id = this.test_case_run_id;
|
|
707
768
|
}
|
|
769
|
+
if (this.run_id != null) {
|
|
770
|
+
data.run_id = this.run_id;
|
|
771
|
+
}
|
|
708
772
|
return data;
|
|
709
773
|
}
|
|
710
774
|
serialize(): Uint8Array;
|
|
@@ -719,6 +783,8 @@ export namespace testsystem.v1.events {
|
|
|
719
783
|
writer.writeMessage(3, this.timestamp, () => this.timestamp.serialize(writer));
|
|
720
784
|
if (this.test_case_run_id.length)
|
|
721
785
|
writer.writeString(4, this.test_case_run_id);
|
|
786
|
+
if (this.run_id.length)
|
|
787
|
+
writer.writeString(5, this.run_id);
|
|
722
788
|
if (!w)
|
|
723
789
|
return writer.getResultBuffer();
|
|
724
790
|
}
|
|
@@ -740,6 +806,9 @@ export namespace testsystem.v1.events {
|
|
|
740
806
|
case 4:
|
|
741
807
|
message.test_case_run_id = reader.readString();
|
|
742
808
|
break;
|
|
809
|
+
case 5:
|
|
810
|
+
message.run_id = reader.readString();
|
|
811
|
+
break;
|
|
743
812
|
default: reader.skipField();
|
|
744
813
|
}
|
|
745
814
|
}
|
|
@@ -759,6 +828,7 @@ export namespace testsystem.v1.events {
|
|
|
759
828
|
message?: string;
|
|
760
829
|
timestamp?: dependency_1.google.protobuf.Timestamp;
|
|
761
830
|
test_case_run_id?: string;
|
|
831
|
+
run_id?: string;
|
|
762
832
|
}) {
|
|
763
833
|
super();
|
|
764
834
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
@@ -775,6 +845,9 @@ export namespace testsystem.v1.events {
|
|
|
775
845
|
if ("test_case_run_id" in data && data.test_case_run_id != undefined) {
|
|
776
846
|
this.test_case_run_id = data.test_case_run_id;
|
|
777
847
|
}
|
|
848
|
+
if ("run_id" in data && data.run_id != undefined) {
|
|
849
|
+
this.run_id = data.run_id;
|
|
850
|
+
}
|
|
778
851
|
}
|
|
779
852
|
}
|
|
780
853
|
get test_id() {
|
|
@@ -804,11 +877,18 @@ export namespace testsystem.v1.events {
|
|
|
804
877
|
set test_case_run_id(value: string) {
|
|
805
878
|
pb_1.Message.setField(this, 4, value);
|
|
806
879
|
}
|
|
880
|
+
get run_id() {
|
|
881
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
882
|
+
}
|
|
883
|
+
set run_id(value: string) {
|
|
884
|
+
pb_1.Message.setField(this, 5, value);
|
|
885
|
+
}
|
|
807
886
|
static fromObject(data: {
|
|
808
887
|
test_id?: string;
|
|
809
888
|
message?: string;
|
|
810
889
|
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
811
890
|
test_case_run_id?: string;
|
|
891
|
+
run_id?: string;
|
|
812
892
|
}): StdOutputEventRequest {
|
|
813
893
|
const message = new StdOutputEventRequest({});
|
|
814
894
|
if (data.test_id != null) {
|
|
@@ -823,6 +903,9 @@ export namespace testsystem.v1.events {
|
|
|
823
903
|
if (data.test_case_run_id != null) {
|
|
824
904
|
message.test_case_run_id = data.test_case_run_id;
|
|
825
905
|
}
|
|
906
|
+
if (data.run_id != null) {
|
|
907
|
+
message.run_id = data.run_id;
|
|
908
|
+
}
|
|
826
909
|
return message;
|
|
827
910
|
}
|
|
828
911
|
toObject() {
|
|
@@ -831,6 +914,7 @@ export namespace testsystem.v1.events {
|
|
|
831
914
|
message?: string;
|
|
832
915
|
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
833
916
|
test_case_run_id?: string;
|
|
917
|
+
run_id?: string;
|
|
834
918
|
} = {};
|
|
835
919
|
if (this.test_id != null) {
|
|
836
920
|
data.test_id = this.test_id;
|
|
@@ -844,6 +928,9 @@ export namespace testsystem.v1.events {
|
|
|
844
928
|
if (this.test_case_run_id != null) {
|
|
845
929
|
data.test_case_run_id = this.test_case_run_id;
|
|
846
930
|
}
|
|
931
|
+
if (this.run_id != null) {
|
|
932
|
+
data.run_id = this.run_id;
|
|
933
|
+
}
|
|
847
934
|
return data;
|
|
848
935
|
}
|
|
849
936
|
serialize(): Uint8Array;
|
|
@@ -858,6 +945,8 @@ export namespace testsystem.v1.events {
|
|
|
858
945
|
writer.writeMessage(3, this.timestamp, () => this.timestamp.serialize(writer));
|
|
859
946
|
if (this.test_case_run_id.length)
|
|
860
947
|
writer.writeString(4, this.test_case_run_id);
|
|
948
|
+
if (this.run_id.length)
|
|
949
|
+
writer.writeString(5, this.run_id);
|
|
861
950
|
if (!w)
|
|
862
951
|
return writer.getResultBuffer();
|
|
863
952
|
}
|
|
@@ -879,6 +968,9 @@ export namespace testsystem.v1.events {
|
|
|
879
968
|
case 4:
|
|
880
969
|
message.test_case_run_id = reader.readString();
|
|
881
970
|
break;
|
|
971
|
+
case 5:
|
|
972
|
+
message.run_id = reader.readString();
|
|
973
|
+
break;
|
|
882
974
|
default: reader.skipField();
|
|
883
975
|
}
|
|
884
976
|
}
|
|
@@ -1124,4 +1216,94 @@ export namespace testsystem.v1.events {
|
|
|
1124
1216
|
return HeartbeatEventRequest.deserialize(bytes);
|
|
1125
1217
|
}
|
|
1126
1218
|
}
|
|
1219
|
+
export class MapTestRunEventRequest extends pb_1.Message {
|
|
1220
|
+
#one_of_decls: number[][] = [];
|
|
1221
|
+
constructor(data?: any[] | {
|
|
1222
|
+
run_id?: string;
|
|
1223
|
+
test_suites?: dependency_4.testsystem.v1.entities.TestSuiteRun[];
|
|
1224
|
+
}) {
|
|
1225
|
+
super();
|
|
1226
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
|
|
1227
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1228
|
+
if ("run_id" in data && data.run_id != undefined) {
|
|
1229
|
+
this.run_id = data.run_id;
|
|
1230
|
+
}
|
|
1231
|
+
if ("test_suites" in data && data.test_suites != undefined) {
|
|
1232
|
+
this.test_suites = data.test_suites;
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
get run_id() {
|
|
1237
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
1238
|
+
}
|
|
1239
|
+
set run_id(value: string) {
|
|
1240
|
+
pb_1.Message.setField(this, 1, value);
|
|
1241
|
+
}
|
|
1242
|
+
get test_suites() {
|
|
1243
|
+
return pb_1.Message.getRepeatedWrapperField(this, dependency_4.testsystem.v1.entities.TestSuiteRun, 2) as dependency_4.testsystem.v1.entities.TestSuiteRun[];
|
|
1244
|
+
}
|
|
1245
|
+
set test_suites(value: dependency_4.testsystem.v1.entities.TestSuiteRun[]) {
|
|
1246
|
+
pb_1.Message.setRepeatedWrapperField(this, 2, value);
|
|
1247
|
+
}
|
|
1248
|
+
static fromObject(data: {
|
|
1249
|
+
run_id?: string;
|
|
1250
|
+
test_suites?: ReturnType<typeof dependency_4.testsystem.v1.entities.TestSuiteRun.prototype.toObject>[];
|
|
1251
|
+
}): MapTestRunEventRequest {
|
|
1252
|
+
const message = new MapTestRunEventRequest({});
|
|
1253
|
+
if (data.run_id != null) {
|
|
1254
|
+
message.run_id = data.run_id;
|
|
1255
|
+
}
|
|
1256
|
+
if (data.test_suites != null) {
|
|
1257
|
+
message.test_suites = data.test_suites.map(item => dependency_4.testsystem.v1.entities.TestSuiteRun.fromObject(item));
|
|
1258
|
+
}
|
|
1259
|
+
return message;
|
|
1260
|
+
}
|
|
1261
|
+
toObject() {
|
|
1262
|
+
const data: {
|
|
1263
|
+
run_id?: string;
|
|
1264
|
+
test_suites?: ReturnType<typeof dependency_4.testsystem.v1.entities.TestSuiteRun.prototype.toObject>[];
|
|
1265
|
+
} = {};
|
|
1266
|
+
if (this.run_id != null) {
|
|
1267
|
+
data.run_id = this.run_id;
|
|
1268
|
+
}
|
|
1269
|
+
if (this.test_suites != null) {
|
|
1270
|
+
data.test_suites = this.test_suites.map((item: dependency_4.testsystem.v1.entities.TestSuiteRun) => item.toObject());
|
|
1271
|
+
}
|
|
1272
|
+
return data;
|
|
1273
|
+
}
|
|
1274
|
+
serialize(): Uint8Array;
|
|
1275
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1276
|
+
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
1277
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1278
|
+
if (this.run_id.length)
|
|
1279
|
+
writer.writeString(1, this.run_id);
|
|
1280
|
+
if (this.test_suites.length)
|
|
1281
|
+
writer.writeRepeatedMessage(2, this.test_suites, (item: dependency_4.testsystem.v1.entities.TestSuiteRun) => item.serialize(writer));
|
|
1282
|
+
if (!w)
|
|
1283
|
+
return writer.getResultBuffer();
|
|
1284
|
+
}
|
|
1285
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MapTestRunEventRequest {
|
|
1286
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MapTestRunEventRequest();
|
|
1287
|
+
while (reader.nextField()) {
|
|
1288
|
+
if (reader.isEndGroup())
|
|
1289
|
+
break;
|
|
1290
|
+
switch (reader.getFieldNumber()) {
|
|
1291
|
+
case 1:
|
|
1292
|
+
message.run_id = reader.readString();
|
|
1293
|
+
break;
|
|
1294
|
+
case 2:
|
|
1295
|
+
reader.readMessage(message.test_suites, () => pb_1.Message.addToRepeatedWrapperField(message, 2, dependency_4.testsystem.v1.entities.TestSuiteRun.deserialize(reader), dependency_4.testsystem.v1.entities.TestSuiteRun));
|
|
1296
|
+
break;
|
|
1297
|
+
default: reader.skipField();
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
return message;
|
|
1301
|
+
}
|
|
1302
|
+
serializeBinary(): Uint8Array {
|
|
1303
|
+
return this.serialize();
|
|
1304
|
+
}
|
|
1305
|
+
static deserializeBinary(bytes: Uint8Array): MapTestRunEventRequest {
|
|
1306
|
+
return MapTestRunEventRequest.deserialize(bytes);
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1127
1309
|
}
|
|
@@ -159,6 +159,15 @@ export namespace testsystem.v1.observer {
|
|
|
159
159
|
}
|
|
160
160
|
export abstract class UnimplementedTestEventCollectorService {
|
|
161
161
|
static definition = {
|
|
162
|
+
MapTestRun: {
|
|
163
|
+
path: "/testsystem.v1.observer.TestEventCollector/MapTestRun",
|
|
164
|
+
requestStream: false,
|
|
165
|
+
responseStream: false,
|
|
166
|
+
requestSerialize: (message: dependency_1.testsystem.v1.events.MapTestRunEventRequest) => Buffer.from(message.serialize()),
|
|
167
|
+
requestDeserialize: (bytes: Buffer) => dependency_1.testsystem.v1.events.MapTestRunEventRequest.deserialize(new Uint8Array(bytes)),
|
|
168
|
+
responseSerialize: (message: AckResponse) => Buffer.from(message.serialize()),
|
|
169
|
+
responseDeserialize: (bytes: Buffer) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
170
|
+
},
|
|
162
171
|
ReportSuiteBegin: {
|
|
163
172
|
path: "/testsystem.v1.observer.TestEventCollector/ReportSuiteBegin",
|
|
164
173
|
requestStream: false,
|
|
@@ -260,6 +269,7 @@ export namespace testsystem.v1.observer {
|
|
|
260
269
|
}
|
|
261
270
|
};
|
|
262
271
|
[method: string]: grpc_1.UntypedHandleCall;
|
|
272
|
+
abstract MapTestRun(call: grpc_1.ServerUnaryCall<dependency_1.testsystem.v1.events.MapTestRunEventRequest, AckResponse>, callback: grpc_1.sendUnaryData<AckResponse>): void;
|
|
263
273
|
abstract ReportSuiteBegin(call: grpc_1.ServerUnaryCall<dependency_1.testsystem.v1.events.SuiteBeginEventRequest, AckResponse>, callback: grpc_1.sendUnaryData<AckResponse>): void;
|
|
264
274
|
abstract ReportSuiteEnd(call: grpc_1.ServerUnaryCall<dependency_1.testsystem.v1.events.SuiteEndEventRequest, AckResponse>, callback: grpc_1.sendUnaryData<AckResponse>): void;
|
|
265
275
|
abstract ReportTestBegin(call: grpc_1.ServerUnaryCall<dependency_1.testsystem.v1.events.TestBeginEventRequest, AckResponse>, callback: grpc_1.sendUnaryData<AckResponse>): void;
|
|
@@ -276,6 +286,9 @@ export namespace testsystem.v1.observer {
|
|
|
276
286
|
constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial<grpc_1.ChannelOptions>) {
|
|
277
287
|
super(address, credentials, options);
|
|
278
288
|
}
|
|
289
|
+
MapTestRun: GrpcUnaryServiceInterface<dependency_1.testsystem.v1.events.MapTestRunEventRequest, AckResponse> = (message: dependency_1.testsystem.v1.events.MapTestRunEventRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<AckResponse>, options?: grpc_1.CallOptions | grpc_1.requestCallback<AckResponse>, callback?: grpc_1.requestCallback<AckResponse>): grpc_1.ClientUnaryCall => {
|
|
290
|
+
return super.MapTestRun(message, metadata, options, callback);
|
|
291
|
+
};
|
|
279
292
|
ReportSuiteBegin: GrpcUnaryServiceInterface<dependency_1.testsystem.v1.events.SuiteBeginEventRequest, AckResponse> = (message: dependency_1.testsystem.v1.events.SuiteBeginEventRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<AckResponse>, options?: grpc_1.CallOptions | grpc_1.requestCallback<AckResponse>, callback?: grpc_1.requestCallback<AckResponse>): grpc_1.ClientUnaryCall => {
|
|
280
293
|
return super.ReportSuiteBegin(message, metadata, options, callback);
|
|
281
294
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stanterprise/protobuf",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Generated Protobuf code",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -10,6 +10,36 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"import": "./dist/index.mjs",
|
|
12
12
|
"require": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./testsystem": {
|
|
15
|
+
"types": "./dist/testsystem/index.d.ts",
|
|
16
|
+
"import": "./dist/testsystem/index.mjs",
|
|
17
|
+
"require": "./dist/testsystem/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./testsystem/v1": {
|
|
20
|
+
"types": "./dist/testsystem/v1/index.d.ts",
|
|
21
|
+
"import": "./dist/testsystem/v1/index.mjs",
|
|
22
|
+
"require": "./dist/testsystem/v1/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./testsystem/v1/entities": {
|
|
25
|
+
"types": "./dist/testsystem/v1/entities/index.d.ts",
|
|
26
|
+
"import": "./dist/testsystem/v1/entities/index.mjs",
|
|
27
|
+
"require": "./dist/testsystem/v1/entities/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./testsystem/v1/events": {
|
|
30
|
+
"types": "./dist/testsystem/v1/events/index.d.ts",
|
|
31
|
+
"import": "./dist/testsystem/v1/events/index.mjs",
|
|
32
|
+
"require": "./dist/testsystem/v1/events/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./testsystem/v1/common": {
|
|
35
|
+
"types": "./dist/testsystem/v1/common/index.d.ts",
|
|
36
|
+
"import": "./dist/testsystem/v1/common/index.mjs",
|
|
37
|
+
"require": "./dist/testsystem/v1/common/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./testsystem/v1/observer": {
|
|
40
|
+
"types": "./dist/testsystem/v1/observer/index.d.ts",
|
|
41
|
+
"import": "./dist/testsystem/v1/observer/index.mjs",
|
|
42
|
+
"require": "./dist/testsystem/v1/observer/index.js"
|
|
13
43
|
}
|
|
14
44
|
},
|
|
15
45
|
"files": [
|