@stanterprise/protobuf 0.0.21 → 0.1.1
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-XWJCF6BO.mjs → chunk-34GQCWQN.mjs} +3 -3
- package/dist/{chunk-Q4ZGL32L.mjs → chunk-4YJNHYW7.mjs} +33 -32
- package/dist/{chunk-Q4ZGL32L.mjs.map → chunk-4YJNHYW7.mjs.map} +1 -1
- package/dist/{chunk-X3JXEIL7.mjs → chunk-BR7Z6N5S.mjs} +8 -8
- package/dist/{chunk-YUDCZY2W.mjs → chunk-EMALOWTT.mjs} +4 -1
- package/dist/{chunk-YUDCZY2W.mjs.map → chunk-EMALOWTT.mjs.map} +1 -1
- package/dist/{chunk-WRPZRLMU.mjs → chunk-FBR2J74U.mjs} +3 -3
- package/dist/{chunk-6LZLCU56.mjs → chunk-WBCHUWL7.mjs} +2 -2
- package/dist/{chunk-WYXRRQPZ.mjs → chunk-WHGMBNCF.mjs} +2 -2
- package/dist/{chunk-L6UHOMOP.mjs → chunk-XIP55YQC.mjs} +29 -3
- package/dist/{chunk-L6UHOMOP.mjs.map → chunk-XIP55YQC.mjs.map} +1 -1
- package/dist/{chunk-LQLPOAWU.mjs → chunk-XYL4P7DJ.mjs} +3 -3
- package/dist/index.js +56 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/testsystem/v1/events/events.d.ts +9 -0
- package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -1
- package/dist/testsystem/index.js +56 -28
- package/dist/testsystem/index.js.map +1 -1
- package/dist/testsystem/index.mjs +9 -9
- package/dist/testsystem/v1/common/index.mjs +2 -2
- package/dist/testsystem/v1/entities/index.mjs +3 -3
- package/dist/testsystem/v1/events/index.js +26 -0
- package/dist/testsystem/v1/events/index.js.map +1 -1
- package/dist/testsystem/v1/events/index.mjs +4 -4
- package/dist/testsystem/v1/index.js +56 -28
- package/dist/testsystem/v1/index.js.map +1 -1
- package/dist/testsystem/v1/index.mjs +11 -11
- package/dist/testsystem/v1/observer/index.js +56 -28
- package/dist/testsystem/v1/observer/index.js.map +1 -1
- package/dist/testsystem/v1/observer/index.mjs +5 -5
- package/lib/testsystem/v1/events/events.ts +33 -0
- package/package.json +1 -1
- /package/dist/{chunk-XWJCF6BO.mjs.map → chunk-34GQCWQN.mjs.map} +0 -0
- /package/dist/{chunk-X3JXEIL7.mjs.map → chunk-BR7Z6N5S.mjs.map} +0 -0
- /package/dist/{chunk-WRPZRLMU.mjs.map → chunk-FBR2J74U.mjs.map} +0 -0
- /package/dist/{chunk-6LZLCU56.mjs.map → chunk-WBCHUWL7.mjs.map} +0 -0
- /package/dist/{chunk-WYXRRQPZ.mjs.map → chunk-WHGMBNCF.mjs.map} +0 -0
- /package/dist/{chunk-LQLPOAWU.mjs.map → chunk-XYL4P7DJ.mjs.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AckResponse,
|
|
3
3
|
TestEventCollectorClient
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
4
|
+
} from "../../../chunk-FBR2J74U.mjs";
|
|
5
|
+
import "../../../chunk-4YJNHYW7.mjs";
|
|
6
|
+
import "../../../chunk-XIP55YQC.mjs";
|
|
7
|
+
import "../../../chunk-WBCHUWL7.mjs";
|
|
8
|
+
import "../../../chunk-EMALOWTT.mjs";
|
|
9
9
|
export {
|
|
10
10
|
AckResponse,
|
|
11
11
|
TestEventCollectorClient
|
|
@@ -1485,6 +1485,7 @@ export namespace testsystem.v1.events {
|
|
|
1485
1485
|
final_status?: dependency_2.testsystem.v1.common.TestStatus;
|
|
1486
1486
|
start_time?: dependency_1.google.protobuf.Timestamp;
|
|
1487
1487
|
duration?: dependency_5.google.protobuf.Duration;
|
|
1488
|
+
metadata?: Map<string, string>;
|
|
1488
1489
|
}) {
|
|
1489
1490
|
super();
|
|
1490
1491
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
@@ -1501,7 +1502,12 @@ export namespace testsystem.v1.events {
|
|
|
1501
1502
|
if ("duration" in data && data.duration != undefined) {
|
|
1502
1503
|
this.duration = data.duration;
|
|
1503
1504
|
}
|
|
1505
|
+
if ("metadata" in data && data.metadata != undefined) {
|
|
1506
|
+
this.metadata = data.metadata;
|
|
1507
|
+
}
|
|
1504
1508
|
}
|
|
1509
|
+
if (!this.metadata)
|
|
1510
|
+
this.metadata = new Map();
|
|
1505
1511
|
}
|
|
1506
1512
|
get run_id() {
|
|
1507
1513
|
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
@@ -1533,11 +1539,20 @@ export namespace testsystem.v1.events {
|
|
|
1533
1539
|
get has_duration() {
|
|
1534
1540
|
return pb_1.Message.getField(this, 4) != null;
|
|
1535
1541
|
}
|
|
1542
|
+
get metadata() {
|
|
1543
|
+
return pb_1.Message.getField(this, 5) as any as Map<string, string>;
|
|
1544
|
+
}
|
|
1545
|
+
set metadata(value: Map<string, string>) {
|
|
1546
|
+
pb_1.Message.setField(this, 5, value as any);
|
|
1547
|
+
}
|
|
1536
1548
|
static fromObject(data: {
|
|
1537
1549
|
run_id?: string;
|
|
1538
1550
|
final_status?: dependency_2.testsystem.v1.common.TestStatus;
|
|
1539
1551
|
start_time?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
1540
1552
|
duration?: ReturnType<typeof dependency_5.google.protobuf.Duration.prototype.toObject>;
|
|
1553
|
+
metadata?: {
|
|
1554
|
+
[key: string]: string;
|
|
1555
|
+
};
|
|
1541
1556
|
}): TestRunEndEventRequest {
|
|
1542
1557
|
const message = new TestRunEndEventRequest({});
|
|
1543
1558
|
if (data.run_id != null) {
|
|
@@ -1552,6 +1567,9 @@ export namespace testsystem.v1.events {
|
|
|
1552
1567
|
if (data.duration != null) {
|
|
1553
1568
|
message.duration = dependency_5.google.protobuf.Duration.fromObject(data.duration);
|
|
1554
1569
|
}
|
|
1570
|
+
if (typeof data.metadata == "object") {
|
|
1571
|
+
message.metadata = new Map(Object.entries(data.metadata));
|
|
1572
|
+
}
|
|
1555
1573
|
return message;
|
|
1556
1574
|
}
|
|
1557
1575
|
toObject() {
|
|
@@ -1560,6 +1578,9 @@ export namespace testsystem.v1.events {
|
|
|
1560
1578
|
final_status?: dependency_2.testsystem.v1.common.TestStatus;
|
|
1561
1579
|
start_time?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
1562
1580
|
duration?: ReturnType<typeof dependency_5.google.protobuf.Duration.prototype.toObject>;
|
|
1581
|
+
metadata?: {
|
|
1582
|
+
[key: string]: string;
|
|
1583
|
+
};
|
|
1563
1584
|
} = {};
|
|
1564
1585
|
if (this.run_id != null) {
|
|
1565
1586
|
data.run_id = this.run_id;
|
|
@@ -1573,6 +1594,9 @@ export namespace testsystem.v1.events {
|
|
|
1573
1594
|
if (this.duration != null) {
|
|
1574
1595
|
data.duration = this.duration.toObject();
|
|
1575
1596
|
}
|
|
1597
|
+
if (this.metadata != null) {
|
|
1598
|
+
data.metadata = (Object.fromEntries)(this.metadata);
|
|
1599
|
+
}
|
|
1576
1600
|
return data;
|
|
1577
1601
|
}
|
|
1578
1602
|
serialize(): Uint8Array;
|
|
@@ -1587,6 +1611,12 @@ export namespace testsystem.v1.events {
|
|
|
1587
1611
|
writer.writeMessage(3, this.start_time, () => this.start_time.serialize(writer));
|
|
1588
1612
|
if (this.has_duration)
|
|
1589
1613
|
writer.writeMessage(4, this.duration, () => this.duration.serialize(writer));
|
|
1614
|
+
for (const [key, value] of this.metadata) {
|
|
1615
|
+
writer.writeMessage(5, this.metadata, () => {
|
|
1616
|
+
writer.writeString(1, key);
|
|
1617
|
+
writer.writeString(2, value);
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1590
1620
|
if (!w)
|
|
1591
1621
|
return writer.getResultBuffer();
|
|
1592
1622
|
}
|
|
@@ -1608,6 +1638,9 @@ export namespace testsystem.v1.events {
|
|
|
1608
1638
|
case 4:
|
|
1609
1639
|
reader.readMessage(message.duration, () => message.duration = dependency_5.google.protobuf.Duration.deserialize(reader));
|
|
1610
1640
|
break;
|
|
1641
|
+
case 5:
|
|
1642
|
+
reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.metadata as any, reader, reader.readString, reader.readString));
|
|
1643
|
+
break;
|
|
1611
1644
|
default: reader.skipField();
|
|
1612
1645
|
}
|
|
1613
1646
|
}
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|