@stanterprise/protobuf 0.0.9 → 0.0.10

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.
@@ -239,6 +239,10 @@ export namespace testsystem.v1.entities {
239
239
  metadata?: Map<string, string>;
240
240
  errors?: string[];
241
241
  actual_tags?: string[];
242
+ duration?: dependency_3.google.protobuf.Duration;
243
+ retry_count?: number;
244
+ retry_index?: number;
245
+ timeout?: number;
242
246
  }) {
243
247
  super();
244
248
  pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [8, 12, 13], this.#one_of_decls);
@@ -282,6 +286,18 @@ export namespace testsystem.v1.entities {
282
286
  if ("actual_tags" in data && data.actual_tags != undefined) {
283
287
  this.actual_tags = data.actual_tags;
284
288
  }
289
+ if ("duration" in data && data.duration != undefined) {
290
+ this.duration = data.duration;
291
+ }
292
+ if ("retry_count" in data && data.retry_count != undefined) {
293
+ this.retry_count = data.retry_count;
294
+ }
295
+ if ("retry_index" in data && data.retry_index != undefined) {
296
+ this.retry_index = data.retry_index;
297
+ }
298
+ if ("timeout" in data && data.timeout != undefined) {
299
+ this.timeout = data.timeout;
300
+ }
285
301
  }
286
302
  if (!this.metadata)
287
303
  this.metadata = new Map();
@@ -367,6 +383,33 @@ export namespace testsystem.v1.entities {
367
383
  set actual_tags(value: string[]) {
368
384
  pb_1.Message.setField(this, 13, value);
369
385
  }
386
+ get duration() {
387
+ return pb_1.Message.getWrapperField(this, dependency_3.google.protobuf.Duration, 14) as dependency_3.google.protobuf.Duration;
388
+ }
389
+ set duration(value: dependency_3.google.protobuf.Duration) {
390
+ pb_1.Message.setWrapperField(this, 14, value);
391
+ }
392
+ get has_duration() {
393
+ return pb_1.Message.getField(this, 14) != null;
394
+ }
395
+ get retry_count() {
396
+ return pb_1.Message.getFieldWithDefault(this, 15, 0) as number;
397
+ }
398
+ set retry_count(value: number) {
399
+ pb_1.Message.setField(this, 15, value);
400
+ }
401
+ get retry_index() {
402
+ return pb_1.Message.getFieldWithDefault(this, 16, 0) as number;
403
+ }
404
+ set retry_index(value: number) {
405
+ pb_1.Message.setField(this, 16, value);
406
+ }
407
+ get timeout() {
408
+ return pb_1.Message.getFieldWithDefault(this, 17, 0) as number;
409
+ }
410
+ set timeout(value: number) {
411
+ pb_1.Message.setField(this, 17, value);
412
+ }
370
413
  static fromObject(data: {
371
414
  id?: string;
372
415
  test_id?: string;
@@ -383,6 +426,10 @@ export namespace testsystem.v1.entities {
383
426
  };
384
427
  errors?: string[];
385
428
  actual_tags?: string[];
429
+ duration?: ReturnType<typeof dependency_3.google.protobuf.Duration.prototype.toObject>;
430
+ retry_count?: number;
431
+ retry_index?: number;
432
+ timeout?: number;
386
433
  }): TestCaseRun {
387
434
  const message = new TestCaseRun({});
388
435
  if (data.id != null) {
@@ -424,6 +471,18 @@ export namespace testsystem.v1.entities {
424
471
  if (data.actual_tags != null) {
425
472
  message.actual_tags = data.actual_tags;
426
473
  }
474
+ if (data.duration != null) {
475
+ message.duration = dependency_3.google.protobuf.Duration.fromObject(data.duration);
476
+ }
477
+ if (data.retry_count != null) {
478
+ message.retry_count = data.retry_count;
479
+ }
480
+ if (data.retry_index != null) {
481
+ message.retry_index = data.retry_index;
482
+ }
483
+ if (data.timeout != null) {
484
+ message.timeout = data.timeout;
485
+ }
427
486
  return message;
428
487
  }
429
488
  toObject() {
@@ -443,6 +502,10 @@ export namespace testsystem.v1.entities {
443
502
  };
444
503
  errors?: string[];
445
504
  actual_tags?: string[];
505
+ duration?: ReturnType<typeof dependency_3.google.protobuf.Duration.prototype.toObject>;
506
+ retry_count?: number;
507
+ retry_index?: number;
508
+ timeout?: number;
446
509
  } = {};
447
510
  if (this.id != null) {
448
511
  data.id = this.id;
@@ -483,6 +546,18 @@ export namespace testsystem.v1.entities {
483
546
  if (this.actual_tags != null) {
484
547
  data.actual_tags = this.actual_tags;
485
548
  }
549
+ if (this.duration != null) {
550
+ data.duration = this.duration.toObject();
551
+ }
552
+ if (this.retry_count != null) {
553
+ data.retry_count = this.retry_count;
554
+ }
555
+ if (this.retry_index != null) {
556
+ data.retry_index = this.retry_index;
557
+ }
558
+ if (this.timeout != null) {
559
+ data.timeout = this.timeout;
560
+ }
486
561
  return data;
487
562
  }
488
563
  serialize(): Uint8Array;
@@ -519,6 +594,14 @@ export namespace testsystem.v1.entities {
519
594
  writer.writeRepeatedString(12, this.errors);
520
595
  if (this.actual_tags.length)
521
596
  writer.writeRepeatedString(13, this.actual_tags);
597
+ if (this.has_duration)
598
+ writer.writeMessage(14, this.duration, () => this.duration.serialize(writer));
599
+ if (this.retry_count != 0)
600
+ writer.writeInt32(15, this.retry_count);
601
+ if (this.retry_index != 0)
602
+ writer.writeInt32(16, this.retry_index);
603
+ if (this.timeout != 0)
604
+ writer.writeInt32(17, this.timeout);
522
605
  if (!w)
523
606
  return writer.getResultBuffer();
524
607
  }
@@ -567,6 +650,18 @@ export namespace testsystem.v1.entities {
567
650
  case 13:
568
651
  pb_1.Message.addToRepeatedField(message, 13, reader.readString());
569
652
  break;
653
+ case 14:
654
+ reader.readMessage(message.duration, () => message.duration = dependency_3.google.protobuf.Duration.deserialize(reader));
655
+ break;
656
+ case 15:
657
+ message.retry_count = reader.readInt32();
658
+ break;
659
+ case 16:
660
+ message.retry_index = reader.readInt32();
661
+ break;
662
+ case 17:
663
+ message.timeout = reader.readInt32();
664
+ break;
570
665
  default: reader.skipField();
571
666
  }
572
667
  }
@@ -597,6 +692,7 @@ export namespace testsystem.v1.entities {
597
692
  error?: string;
598
693
  errors?: string[];
599
694
  location?: string;
695
+ category?: string;
600
696
  }) {
601
697
  super();
602
698
  pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [14], this.#one_of_decls);
@@ -646,6 +742,9 @@ export namespace testsystem.v1.entities {
646
742
  if ("location" in data && data.location != undefined) {
647
743
  this.location = data.location;
648
744
  }
745
+ if ("category" in data && data.category != undefined) {
746
+ this.category = data.category;
747
+ }
649
748
  }
650
749
  if (!this.metadata)
651
750
  this.metadata = new Map();
@@ -746,6 +845,12 @@ export namespace testsystem.v1.entities {
746
845
  set location(value: string) {
747
846
  pb_1.Message.setField(this, 15, value);
748
847
  }
848
+ get category() {
849
+ return pb_1.Message.getFieldWithDefault(this, 16, "") as string;
850
+ }
851
+ set category(value: string) {
852
+ pb_1.Message.setField(this, 16, value);
853
+ }
749
854
  static fromObject(data: {
750
855
  id?: string;
751
856
  run_id?: string;
@@ -764,6 +869,7 @@ export namespace testsystem.v1.entities {
764
869
  error?: string;
765
870
  errors?: string[];
766
871
  location?: string;
872
+ category?: string;
767
873
  }): StepRun {
768
874
  const message = new StepRun({});
769
875
  if (data.id != null) {
@@ -811,6 +917,9 @@ export namespace testsystem.v1.entities {
811
917
  if (data.location != null) {
812
918
  message.location = data.location;
813
919
  }
920
+ if (data.category != null) {
921
+ message.category = data.category;
922
+ }
814
923
  return message;
815
924
  }
816
925
  toObject() {
@@ -832,6 +941,7 @@ export namespace testsystem.v1.entities {
832
941
  error?: string;
833
942
  errors?: string[];
834
943
  location?: string;
944
+ category?: string;
835
945
  } = {};
836
946
  if (this.id != null) {
837
947
  data.id = this.id;
@@ -878,6 +988,9 @@ export namespace testsystem.v1.entities {
878
988
  if (this.location != null) {
879
989
  data.location = this.location;
880
990
  }
991
+ if (this.category != null) {
992
+ data.category = this.category;
993
+ }
881
994
  return data;
882
995
  }
883
996
  serialize(): Uint8Array;
@@ -918,6 +1031,8 @@ export namespace testsystem.v1.entities {
918
1031
  writer.writeRepeatedString(14, this.errors);
919
1032
  if (this.location.length)
920
1033
  writer.writeString(15, this.location);
1034
+ if (this.category.length)
1035
+ writer.writeString(16, this.category);
921
1036
  if (!w)
922
1037
  return writer.getResultBuffer();
923
1038
  }
@@ -972,6 +1087,9 @@ export namespace testsystem.v1.entities {
972
1087
  case 15:
973
1088
  message.location = reader.readString();
974
1089
  break;
1090
+ case 16:
1091
+ message.category = reader.readString();
1092
+ break;
975
1093
  default: reader.skipField();
976
1094
  }
977
1095
  }
@@ -26,6 +26,7 @@ export namespace testsystem.v1.entities {
26
26
  metadata?: Map<string, string>;
27
27
  test_suite_spec_id?: string;
28
28
  initiated_by?: string;
29
+ project_name?: string;
29
30
  }) {
30
31
  super();
31
32
  pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
@@ -60,6 +61,9 @@ export namespace testsystem.v1.entities {
60
61
  if ("initiated_by" in data && data.initiated_by != undefined) {
61
62
  this.initiated_by = data.initiated_by;
62
63
  }
64
+ if ("project_name" in data && data.project_name != undefined) {
65
+ this.project_name = data.project_name;
66
+ }
63
67
  }
64
68
  if (!this.metadata)
65
69
  this.metadata = new Map();
@@ -133,6 +137,12 @@ export namespace testsystem.v1.entities {
133
137
  set initiated_by(value: string) {
134
138
  pb_1.Message.setField(this, 10, value);
135
139
  }
140
+ get project_name() {
141
+ return pb_1.Message.getFieldWithDefault(this, 11, "") as string;
142
+ }
143
+ set project_name(value: string) {
144
+ pb_1.Message.setField(this, 11, value);
145
+ }
136
146
  static fromObject(data: {
137
147
  id?: string;
138
148
  name?: string;
@@ -146,6 +156,7 @@ export namespace testsystem.v1.entities {
146
156
  };
147
157
  test_suite_spec_id?: string;
148
158
  initiated_by?: string;
159
+ project_name?: string;
149
160
  }): TestSuiteRun {
150
161
  const message = new TestSuiteRun({});
151
162
  if (data.id != null) {
@@ -178,6 +189,9 @@ export namespace testsystem.v1.entities {
178
189
  if (data.initiated_by != null) {
179
190
  message.initiated_by = data.initiated_by;
180
191
  }
192
+ if (data.project_name != null) {
193
+ message.project_name = data.project_name;
194
+ }
181
195
  return message;
182
196
  }
183
197
  toObject() {
@@ -194,6 +208,7 @@ export namespace testsystem.v1.entities {
194
208
  };
195
209
  test_suite_spec_id?: string;
196
210
  initiated_by?: string;
211
+ project_name?: string;
197
212
  } = {};
198
213
  if (this.id != null) {
199
214
  data.id = this.id;
@@ -225,6 +240,9 @@ export namespace testsystem.v1.entities {
225
240
  if (this.initiated_by != null) {
226
241
  data.initiated_by = this.initiated_by;
227
242
  }
243
+ if (this.project_name != null) {
244
+ data.project_name = this.project_name;
245
+ }
228
246
  return data;
229
247
  }
230
248
  serialize(): Uint8Array;
@@ -255,6 +273,8 @@ export namespace testsystem.v1.entities {
255
273
  writer.writeString(9, this.test_suite_spec_id);
256
274
  if (this.initiated_by.length)
257
275
  writer.writeString(10, this.initiated_by);
276
+ if (this.project_name.length)
277
+ writer.writeString(11, this.project_name);
258
278
  if (!w)
259
279
  return writer.getResultBuffer();
260
280
  }
@@ -294,6 +314,9 @@ export namespace testsystem.v1.entities {
294
314
  case 10:
295
315
  message.initiated_by = reader.readString();
296
316
  break;
317
+ case 11:
318
+ message.project_name = reader.readString();
319
+ break;
297
320
  default: reader.skipField();
298
321
  }
299
322
  }
@@ -321,6 +344,7 @@ export namespace testsystem.v1.entities {
321
344
  parent_suite_id?: string;
322
345
  author?: string;
323
346
  owner?: string;
347
+ project?: string;
324
348
  }) {
325
349
  super();
326
350
  pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4, 5], this.#one_of_decls);
@@ -361,6 +385,9 @@ export namespace testsystem.v1.entities {
361
385
  if ("owner" in data && data.owner != undefined) {
362
386
  this.owner = data.owner;
363
387
  }
388
+ if ("project" in data && data.project != undefined) {
389
+ this.project = data.project;
390
+ }
364
391
  }
365
392
  if (!this.metadata)
366
393
  this.metadata = new Map();
@@ -437,6 +464,12 @@ export namespace testsystem.v1.entities {
437
464
  set owner(value: string) {
438
465
  pb_1.Message.setField(this, 12, value);
439
466
  }
467
+ get project() {
468
+ return pb_1.Message.getFieldWithDefault(this, 13, "") as string;
469
+ }
470
+ set project(value: string) {
471
+ pb_1.Message.setField(this, 13, value);
472
+ }
440
473
  static fromObject(data: {
441
474
  id?: string;
442
475
  name?: string;
@@ -452,6 +485,7 @@ export namespace testsystem.v1.entities {
452
485
  parent_suite_id?: string;
453
486
  author?: string;
454
487
  owner?: string;
488
+ project?: string;
455
489
  }): TestSuiteSpec {
456
490
  const message = new TestSuiteSpec({});
457
491
  if (data.id != null) {
@@ -490,6 +524,9 @@ export namespace testsystem.v1.entities {
490
524
  if (data.owner != null) {
491
525
  message.owner = data.owner;
492
526
  }
527
+ if (data.project != null) {
528
+ message.project = data.project;
529
+ }
493
530
  return message;
494
531
  }
495
532
  toObject() {
@@ -508,6 +545,7 @@ export namespace testsystem.v1.entities {
508
545
  parent_suite_id?: string;
509
546
  author?: string;
510
547
  owner?: string;
548
+ project?: string;
511
549
  } = {};
512
550
  if (this.id != null) {
513
551
  data.id = this.id;
@@ -545,6 +583,9 @@ export namespace testsystem.v1.entities {
545
583
  if (this.owner != null) {
546
584
  data.owner = this.owner;
547
585
  }
586
+ if (this.project != null) {
587
+ data.project = this.project;
588
+ }
548
589
  return data;
549
590
  }
550
591
  serialize(): Uint8Array;
@@ -579,6 +620,8 @@ export namespace testsystem.v1.entities {
579
620
  writer.writeString(11, this.author);
580
621
  if (this.owner.length)
581
622
  writer.writeString(12, this.owner);
623
+ if (this.project.length)
624
+ writer.writeString(13, this.project);
582
625
  if (!w)
583
626
  return writer.getResultBuffer();
584
627
  }
@@ -624,6 +667,9 @@ export namespace testsystem.v1.entities {
624
667
  case 12:
625
668
  message.owner = reader.readString();
626
669
  break;
670
+ case 13:
671
+ message.project = reader.readString();
672
+ break;
627
673
  default: reader.skipField();
628
674
  }
629
675
  }
@@ -619,6 +619,7 @@ export namespace testsystem.v1.events {
619
619
  test_id?: string;
620
620
  message?: string;
621
621
  timestamp?: dependency_1.google.protobuf.Timestamp;
622
+ test_case_run_id?: string;
622
623
  }) {
623
624
  super();
624
625
  pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
@@ -632,6 +633,9 @@ export namespace testsystem.v1.events {
632
633
  if ("timestamp" in data && data.timestamp != undefined) {
633
634
  this.timestamp = data.timestamp;
634
635
  }
636
+ if ("test_case_run_id" in data && data.test_case_run_id != undefined) {
637
+ this.test_case_run_id = data.test_case_run_id;
638
+ }
635
639
  }
636
640
  }
637
641
  get test_id() {
@@ -655,10 +659,17 @@ export namespace testsystem.v1.events {
655
659
  get has_timestamp() {
656
660
  return pb_1.Message.getField(this, 3) != null;
657
661
  }
662
+ get test_case_run_id() {
663
+ return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
664
+ }
665
+ set test_case_run_id(value: string) {
666
+ pb_1.Message.setField(this, 4, value);
667
+ }
658
668
  static fromObject(data: {
659
669
  test_id?: string;
660
670
  message?: string;
661
671
  timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
672
+ test_case_run_id?: string;
662
673
  }): StdErrorEventRequest {
663
674
  const message = new StdErrorEventRequest({});
664
675
  if (data.test_id != null) {
@@ -670,6 +681,9 @@ export namespace testsystem.v1.events {
670
681
  if (data.timestamp != null) {
671
682
  message.timestamp = dependency_1.google.protobuf.Timestamp.fromObject(data.timestamp);
672
683
  }
684
+ if (data.test_case_run_id != null) {
685
+ message.test_case_run_id = data.test_case_run_id;
686
+ }
673
687
  return message;
674
688
  }
675
689
  toObject() {
@@ -677,6 +691,7 @@ export namespace testsystem.v1.events {
677
691
  test_id?: string;
678
692
  message?: string;
679
693
  timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
694
+ test_case_run_id?: string;
680
695
  } = {};
681
696
  if (this.test_id != null) {
682
697
  data.test_id = this.test_id;
@@ -687,6 +702,9 @@ export namespace testsystem.v1.events {
687
702
  if (this.timestamp != null) {
688
703
  data.timestamp = this.timestamp.toObject();
689
704
  }
705
+ if (this.test_case_run_id != null) {
706
+ data.test_case_run_id = this.test_case_run_id;
707
+ }
690
708
  return data;
691
709
  }
692
710
  serialize(): Uint8Array;
@@ -699,6 +717,8 @@ export namespace testsystem.v1.events {
699
717
  writer.writeString(2, this.message);
700
718
  if (this.has_timestamp)
701
719
  writer.writeMessage(3, this.timestamp, () => this.timestamp.serialize(writer));
720
+ if (this.test_case_run_id.length)
721
+ writer.writeString(4, this.test_case_run_id);
702
722
  if (!w)
703
723
  return writer.getResultBuffer();
704
724
  }
@@ -717,6 +737,9 @@ export namespace testsystem.v1.events {
717
737
  case 3:
718
738
  reader.readMessage(message.timestamp, () => message.timestamp = dependency_1.google.protobuf.Timestamp.deserialize(reader));
719
739
  break;
740
+ case 4:
741
+ message.test_case_run_id = reader.readString();
742
+ break;
720
743
  default: reader.skipField();
721
744
  }
722
745
  }
@@ -735,6 +758,7 @@ export namespace testsystem.v1.events {
735
758
  test_id?: string;
736
759
  message?: string;
737
760
  timestamp?: dependency_1.google.protobuf.Timestamp;
761
+ test_case_run_id?: string;
738
762
  }) {
739
763
  super();
740
764
  pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
@@ -748,6 +772,9 @@ export namespace testsystem.v1.events {
748
772
  if ("timestamp" in data && data.timestamp != undefined) {
749
773
  this.timestamp = data.timestamp;
750
774
  }
775
+ if ("test_case_run_id" in data && data.test_case_run_id != undefined) {
776
+ this.test_case_run_id = data.test_case_run_id;
777
+ }
751
778
  }
752
779
  }
753
780
  get test_id() {
@@ -771,10 +798,17 @@ export namespace testsystem.v1.events {
771
798
  get has_timestamp() {
772
799
  return pb_1.Message.getField(this, 3) != null;
773
800
  }
801
+ get test_case_run_id() {
802
+ return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
803
+ }
804
+ set test_case_run_id(value: string) {
805
+ pb_1.Message.setField(this, 4, value);
806
+ }
774
807
  static fromObject(data: {
775
808
  test_id?: string;
776
809
  message?: string;
777
810
  timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
811
+ test_case_run_id?: string;
778
812
  }): StdOutputEventRequest {
779
813
  const message = new StdOutputEventRequest({});
780
814
  if (data.test_id != null) {
@@ -786,6 +820,9 @@ export namespace testsystem.v1.events {
786
820
  if (data.timestamp != null) {
787
821
  message.timestamp = dependency_1.google.protobuf.Timestamp.fromObject(data.timestamp);
788
822
  }
823
+ if (data.test_case_run_id != null) {
824
+ message.test_case_run_id = data.test_case_run_id;
825
+ }
789
826
  return message;
790
827
  }
791
828
  toObject() {
@@ -793,6 +830,7 @@ export namespace testsystem.v1.events {
793
830
  test_id?: string;
794
831
  message?: string;
795
832
  timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
833
+ test_case_run_id?: string;
796
834
  } = {};
797
835
  if (this.test_id != null) {
798
836
  data.test_id = this.test_id;
@@ -803,6 +841,9 @@ export namespace testsystem.v1.events {
803
841
  if (this.timestamp != null) {
804
842
  data.timestamp = this.timestamp.toObject();
805
843
  }
844
+ if (this.test_case_run_id != null) {
845
+ data.test_case_run_id = this.test_case_run_id;
846
+ }
806
847
  return data;
807
848
  }
808
849
  serialize(): Uint8Array;
@@ -815,6 +856,8 @@ export namespace testsystem.v1.events {
815
856
  writer.writeString(2, this.message);
816
857
  if (this.has_timestamp)
817
858
  writer.writeMessage(3, this.timestamp, () => this.timestamp.serialize(writer));
859
+ if (this.test_case_run_id.length)
860
+ writer.writeString(4, this.test_case_run_id);
818
861
  if (!w)
819
862
  return writer.getResultBuffer();
820
863
  }
@@ -833,6 +876,9 @@ export namespace testsystem.v1.events {
833
876
  case 3:
834
877
  reader.readMessage(message.timestamp, () => message.timestamp = dependency_1.google.protobuf.Timestamp.deserialize(reader));
835
878
  break;
879
+ case 4:
880
+ message.test_case_run_id = reader.readString();
881
+ break;
836
882
  default: reader.skipField();
837
883
  }
838
884
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stanterprise/protobuf",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Generated Protobuf code",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",