@stanterprise/protobuf 0.0.18 → 0.0.20
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-2XDGK4PE.mjs → chunk-4SR4H5H3.mjs} +3 -3
- package/dist/{chunk-NAR56EZC.mjs → chunk-6LZLCU56.mjs} +45 -24
- package/dist/chunk-6LZLCU56.mjs.map +1 -0
- package/dist/{chunk-AOE34GC6.mjs → chunk-7ZKHPRD4.mjs} +6 -6
- package/dist/{chunk-LJC4OR2K.mjs → chunk-AEDC4CB5.mjs} +8 -8
- package/dist/chunk-AEDC4CB5.mjs.map +1 -0
- package/dist/{chunk-5DJKNU7K.mjs → chunk-B3U6NKBI.mjs} +6 -6
- package/dist/{chunk-5DJKNU7K.mjs.map → chunk-B3U6NKBI.mjs.map} +1 -1
- package/dist/{chunk-VZW7JSLB.mjs → chunk-ULRGJR5R.mjs} +9 -9
- package/dist/{chunk-VZW7JSLB.mjs.map → chunk-ULRGJR5R.mjs.map} +1 -1
- package/dist/{chunk-S5P2S67H.mjs → chunk-WYXRRQPZ.mjs} +2 -2
- package/dist/{chunk-3VVXARSH.mjs → chunk-XWJCF6BO.mjs} +3 -3
- package/dist/{chunk-VBR2HXFF.mjs → chunk-YUDCZY2W.mjs} +3 -1
- package/dist/chunk-YUDCZY2W.mjs.map +1 -0
- package/dist/index.js +56 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/testsystem/v1/common/common.d.ts +3 -1
- package/dist/lib/testsystem/v1/common/common.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/entities/test_case.d.ts +15 -10
- package/dist/lib/testsystem/v1/entities/test_case.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts +2 -1
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/events/events.d.ts +4 -4
- package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/observer/observer.d.ts +5 -5
- package/dist/lib/testsystem/v1/observer/observer.d.ts.map +1 -1
- package/dist/testsystem/index.js +58 -35
- package/dist/testsystem/index.js.map +1 -1
- package/dist/testsystem/index.mjs +9 -9
- package/dist/testsystem/v1/common/index.js +2 -0
- package/dist/testsystem/v1/common/index.js.map +1 -1
- package/dist/testsystem/v1/common/index.mjs +2 -2
- package/dist/testsystem/v1/entities/index.js +45 -22
- package/dist/testsystem/v1/entities/index.js.map +1 -1
- package/dist/testsystem/v1/entities/index.mjs +3 -3
- package/dist/testsystem/v1/events/index.d.ts +2 -2
- package/dist/testsystem/v1/events/index.d.ts.map +1 -1
- package/dist/testsystem/v1/events/index.js +54 -31
- package/dist/testsystem/v1/events/index.js.map +1 -1
- package/dist/testsystem/v1/events/index.mjs +6 -6
- package/dist/testsystem/v1/index.js +58 -35
- package/dist/testsystem/v1/index.js.map +1 -1
- package/dist/testsystem/v1/index.mjs +9 -9
- package/dist/testsystem/v1/observer/index.js +56 -33
- package/dist/testsystem/v1/observer/index.js.map +1 -1
- package/dist/testsystem/v1/observer/index.mjs +5 -5
- package/lib/testsystem/v1/common/common.ts +3 -1
- package/lib/testsystem/v1/entities/test_case.ts +51 -28
- package/lib/testsystem/v1/entities/test_suite.ts +2 -1
- package/lib/testsystem/v1/events/events.ts +7 -7
- package/lib/testsystem/v1/observer/observer.ts +7 -7
- package/package.json +1 -1
- package/dist/chunk-LJC4OR2K.mjs.map +0 -1
- package/dist/chunk-NAR56EZC.mjs.map +0 -1
- package/dist/chunk-VBR2HXFF.mjs.map +0 -1
- /package/dist/{chunk-2XDGK4PE.mjs.map → chunk-4SR4H5H3.mjs.map} +0 -0
- /package/dist/{chunk-AOE34GC6.mjs.map → chunk-7ZKHPRD4.mjs.map} +0 -0
- /package/dist/{chunk-S5P2S67H.mjs.map → chunk-WYXRRQPZ.mjs.map} +0 -0
- /package/dist/{chunk-3VVXARSH.mjs.map → chunk-XWJCF6BO.mjs.map} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
v1_exports
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-7ZKHPRD4.mjs";
|
|
4
|
+
import "../chunk-WYXRRQPZ.mjs";
|
|
5
|
+
import "../chunk-XWJCF6BO.mjs";
|
|
6
|
+
import "../chunk-B3U6NKBI.mjs";
|
|
7
|
+
import "../chunk-4SR4H5H3.mjs";
|
|
8
|
+
import "../chunk-AEDC4CB5.mjs";
|
|
9
|
+
import "../chunk-ULRGJR5R.mjs";
|
|
10
|
+
import "../chunk-6LZLCU56.mjs";
|
|
11
|
+
import "../chunk-YUDCZY2W.mjs";
|
|
12
12
|
export {
|
|
13
13
|
v1_exports as v1
|
|
14
14
|
};
|
|
@@ -59,6 +59,8 @@ var testsystem;
|
|
|
59
59
|
TestStatus3[TestStatus3["BROKEN"] = 4] = "BROKEN";
|
|
60
60
|
TestStatus3[TestStatus3["TIMEDOUT"] = 5] = "TIMEDOUT";
|
|
61
61
|
TestStatus3[TestStatus3["INTERRUPTED"] = 6] = "INTERRUPTED";
|
|
62
|
+
TestStatus3[TestStatus3["RUNNING"] = 7] = "RUNNING";
|
|
63
|
+
TestStatus3[TestStatus3["NOT_RUN"] = 8] = "NOT_RUN";
|
|
62
64
|
})(TestStatus2 = common2.TestStatus || (common2.TestStatus = {}));
|
|
63
65
|
const _Attachment = class _Attachment extends pb_1.Message {
|
|
64
66
|
constructor(data) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../testsystem/v1/common/index.ts","../../../../lib/testsystem/v1/common/common.ts"],"sourcesContent":["// Re-export individual classes for pattern: import { Attachment } from \"@stanterprise/protobuf/testsystem/v1/common\"\nimport { testsystem as commonNS } from '../../../lib/testsystem/v1/common/common';\n\n// Export enum\nexport type TestStatus = commonNS.v1.common.TestStatus;\nexport const TestStatus = commonNS.v1.common.TestStatus;\n\n// Export class\nexport type Attachment = commonNS.v1.common.Attachment;\nexport const Attachment = commonNS.v1.common.Attachment;\n","/**\n * Generated by the protoc-gen-ts. DO NOT EDIT!\n * compiler version: 3.19.1\n * source: testsystem/v1/common/common.proto\n * git: https://github.com/thesayyn/protoc-gen-ts */\nimport * as pb_1 from \"google-protobuf\";\nexport namespace testsystem.v1.common {\n export enum TestStatus {\n UNKNOWN = 0,\n PASSED = 1,\n FAILED = 2,\n SKIPPED = 3,\n BROKEN = 4,\n TIMEDOUT = 5,\n INTERRUPTED = 6\n }\n export class Attachment extends pb_1.Message {\n #one_of_decls: number[][] = [[3, 4]];\n constructor(data?: any[] | ({\n name?: string;\n mime_type?: string;\n } & (({\n content?: Uint8Array;\n uri?: never;\n } | {\n content?: never;\n uri?: string;\n })))) {\n super();\n pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);\n if (!Array.isArray(data) && typeof data == \"object\") {\n if (\"name\" in data && data.name != undefined) {\n this.name = data.name;\n }\n if (\"mime_type\" in data && data.mime_type != undefined) {\n this.mime_type = data.mime_type;\n }\n if (\"content\" in data && data.content != undefined) {\n this.content = data.content;\n }\n if (\"uri\" in data && data.uri != undefined) {\n this.uri = data.uri;\n }\n }\n }\n get name() {\n return pb_1.Message.getFieldWithDefault(this, 1, \"\") as string;\n }\n set name(value: string) {\n pb_1.Message.setField(this, 1, value);\n }\n get mime_type() {\n return pb_1.Message.getFieldWithDefault(this, 2, \"\") as string;\n }\n set mime_type(value: string) {\n pb_1.Message.setField(this, 2, value);\n }\n get content() {\n return pb_1.Message.getFieldWithDefault(this, 3, new Uint8Array(0)) as Uint8Array;\n }\n set content(value: Uint8Array) {\n pb_1.Message.setOneofField(this, 3, this.#one_of_decls[0], value);\n }\n get has_content() {\n return pb_1.Message.getField(this, 3) != null;\n }\n get uri() {\n return pb_1.Message.getFieldWithDefault(this, 4, \"\") as string;\n }\n set uri(value: string) {\n pb_1.Message.setOneofField(this, 4, this.#one_of_decls[0], value);\n }\n get has_uri() {\n return pb_1.Message.getField(this, 4) != null;\n }\n get payload() {\n const cases: {\n [index: number]: \"none\" | \"content\" | \"uri\";\n } = {\n 0: \"none\",\n 3: \"content\",\n 4: \"uri\"\n };\n return cases[pb_1.Message.computeOneofCase(this, [3, 4])];\n }\n static fromObject(data: {\n name?: string;\n mime_type?: string;\n content?: Uint8Array;\n uri?: string;\n }): Attachment {\n const message = new Attachment({});\n if (data.name != null) {\n message.name = data.name;\n }\n if (data.mime_type != null) {\n message.mime_type = data.mime_type;\n }\n if (data.content != null) {\n message.content = data.content;\n }\n if (data.uri != null) {\n message.uri = data.uri;\n }\n return message;\n }\n toObject() {\n const data: {\n name?: string;\n mime_type?: string;\n content?: Uint8Array;\n uri?: string;\n } = {};\n if (this.name != null) {\n data.name = this.name;\n }\n if (this.mime_type != null) {\n data.mime_type = this.mime_type;\n }\n if (this.content != null) {\n data.content = this.content;\n }\n if (this.uri != null) {\n data.uri = this.uri;\n }\n return data;\n }\n serialize(): Uint8Array;\n serialize(w: pb_1.BinaryWriter): void;\n serialize(w?: pb_1.BinaryWriter): Uint8Array | void {\n const writer = w || new pb_1.BinaryWriter();\n if (this.name.length)\n writer.writeString(1, this.name);\n if (this.mime_type.length)\n writer.writeString(2, this.mime_type);\n if (this.has_content)\n writer.writeBytes(3, this.content);\n if (this.has_uri)\n writer.writeString(4, this.uri);\n if (!w)\n return writer.getResultBuffer();\n }\n static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Attachment {\n const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Attachment();\n while (reader.nextField()) {\n if (reader.isEndGroup())\n break;\n switch (reader.getFieldNumber()) {\n case 1:\n message.name = reader.readString();\n break;\n case 2:\n message.mime_type = reader.readString();\n break;\n case 3:\n message.content = reader.readBytes();\n break;\n case 4:\n message.uri = reader.readString();\n break;\n default: reader.skipField();\n }\n }\n return message;\n }\n serializeBinary(): Uint8Array {\n return this.serialize();\n }\n static deserializeBinary(bytes: Uint8Array): Attachment {\n return Attachment.deserialize(bytes);\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKA,WAAsB;AACf,IAAU;AAAA,CAAV,CAAUA,gBAAV;AAAoB,MAAC;AAAD,IAACC,QAAD;AAAG,QAAC;AAAD,MAACC,YAAD;AAN9B;AAOW,UAAKC;AAAL,QAAKA,gBAAL;AACH,QAAAA,wBAAA,aAAU,KAAV;AACA,QAAAA,wBAAA,YAAS,KAAT;AACA,QAAAA,wBAAA,YAAS,KAAT;AACA,QAAAA,wBAAA,aAAU,KAAV;AACA,QAAAA,wBAAA,YAAS,KAAT;AACA,QAAAA,wBAAA,cAAW,KAAX;AACA,QAAAA,wBAAA,iBAAc,KAAd;AAAA,SAPQA,cAAAD,QAAA,eAAAA,QAAA;AASL,YAAM,cAAN,MAAM,oBAAwB,aAAQ;AAAA,QAEzC,YAAY,MASN;AACF,gBAAM;AAXV,4CAA4B,CAAC,CAAC,GAAG,CAAC,CAAC;AAY/B,UAAK,aAAQ,WAAW,MAAM,MAAM,QAAQ,IAAI,IAAI,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,mBAAK,cAAa;AAC5F,cAAI,CAAC,MAAM,QAAQ,IAAI,KAAK,OAAO,QAAQ,UAAU;AACjD,gBAAI,UAAU,QAAQ,KAAK,QAAQ,QAAW;AAC1C,mBAAK,OAAO,KAAK;AAAA,YACrB;AACA,gBAAI,eAAe,QAAQ,KAAK,aAAa,QAAW;AACpD,mBAAK,YAAY,KAAK;AAAA,YAC1B;AACA,gBAAI,aAAa,QAAQ,KAAK,WAAW,QAAW;AAChD,mBAA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AG;AAAA,cAC7B,KAAK;AACD,wBAAQ,OAAO,OAAO,WAAW;AACjC;AAAA,cACJ,KAAK;AACD,wBAAQ,YAAY,OAAO,WAAW;AACtC;AAAA,cACJ,KAAK;AACD,wBAAQ,UAAU,OAAO,UAAU;AACnC;AAAA,cACJ,KAAK;AACD,wBAAQ,MAAM,OAAO,WAAW;AAChC;AAAA,cACJ;AAAS,uBAAO,UAAU;AAAA,YAC9B;AAAA,UACJ;AACA,iBAAO;AAAA,QACX;AAAA,QACA,kBAA8B;AAC1B,iBAAO,KAAK,UAAU;AAAA,QAC1B;AAAA,QACA,OAAO,kBAAkB,OAA+B;AACpD,iBAAO,YAAW,YAAY,KAAK;AAAA,QACvC;AAAA,MACJ;AA1JI;AADG,UAAME,cAAN;AAAA,MAAAF,QAAM;AAAA,OAVc,SAAAD,IAAA,WAAAA,IAAA;AAAA,KAAH,KAAAD,YAAA,OAAAA,YAAA;AAAA,GAAX;;;ADDV,IAAM,aAAa,WAAS,GAAG,OAAO;AAItC,IAAM,aAAa,WAAS,GAAG,OAAO;","names":["testsystem","v1","common","TestStatus","Attachment"]}
|
|
1
|
+
{"version":3,"sources":["../../../../testsystem/v1/common/index.ts","../../../../lib/testsystem/v1/common/common.ts"],"sourcesContent":["// Re-export individual classes for pattern: import { Attachment } from \"@stanterprise/protobuf/testsystem/v1/common\"\nimport { testsystem as commonNS } from '../../../lib/testsystem/v1/common/common';\n\n// Export enum\nexport type TestStatus = commonNS.v1.common.TestStatus;\nexport const TestStatus = commonNS.v1.common.TestStatus;\n\n// Export class\nexport type Attachment = commonNS.v1.common.Attachment;\nexport const Attachment = commonNS.v1.common.Attachment;\n","/**\n * Generated by the protoc-gen-ts. DO NOT EDIT!\n * compiler version: 3.19.1\n * source: testsystem/v1/common/common.proto\n * git: https://github.com/thesayyn/protoc-gen-ts */\nimport * as pb_1 from \"google-protobuf\";\nexport namespace testsystem.v1.common {\n export enum TestStatus {\n UNKNOWN = 0,\n PASSED = 1,\n FAILED = 2,\n SKIPPED = 3,\n BROKEN = 4,\n TIMEDOUT = 5,\n INTERRUPTED = 6,\n RUNNING = 7,\n NOT_RUN = 8\n }\n export class Attachment extends pb_1.Message {\n #one_of_decls: number[][] = [[3, 4]];\n constructor(data?: any[] | ({\n name?: string;\n mime_type?: string;\n } & (({\n content?: Uint8Array;\n uri?: never;\n } | {\n content?: never;\n uri?: string;\n })))) {\n super();\n pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);\n if (!Array.isArray(data) && typeof data == \"object\") {\n if (\"name\" in data && data.name != undefined) {\n this.name = data.name;\n }\n if (\"mime_type\" in data && data.mime_type != undefined) {\n this.mime_type = data.mime_type;\n }\n if (\"content\" in data && data.content != undefined) {\n this.content = data.content;\n }\n if (\"uri\" in data && data.uri != undefined) {\n this.uri = data.uri;\n }\n }\n }\n get name() {\n return pb_1.Message.getFieldWithDefault(this, 1, \"\") as string;\n }\n set name(value: string) {\n pb_1.Message.setField(this, 1, value);\n }\n get mime_type() {\n return pb_1.Message.getFieldWithDefault(this, 2, \"\") as string;\n }\n set mime_type(value: string) {\n pb_1.Message.setField(this, 2, value);\n }\n get content() {\n return pb_1.Message.getFieldWithDefault(this, 3, new Uint8Array(0)) as Uint8Array;\n }\n set content(value: Uint8Array) {\n pb_1.Message.setOneofField(this, 3, this.#one_of_decls[0], value);\n }\n get has_content() {\n return pb_1.Message.getField(this, 3) != null;\n }\n get uri() {\n return pb_1.Message.getFieldWithDefault(this, 4, \"\") as string;\n }\n set uri(value: string) {\n pb_1.Message.setOneofField(this, 4, this.#one_of_decls[0], value);\n }\n get has_uri() {\n return pb_1.Message.getField(this, 4) != null;\n }\n get payload() {\n const cases: {\n [index: number]: \"none\" | \"content\" | \"uri\";\n } = {\n 0: \"none\",\n 3: \"content\",\n 4: \"uri\"\n };\n return cases[pb_1.Message.computeOneofCase(this, [3, 4])];\n }\n static fromObject(data: {\n name?: string;\n mime_type?: string;\n content?: Uint8Array;\n uri?: string;\n }): Attachment {\n const message = new Attachment({});\n if (data.name != null) {\n message.name = data.name;\n }\n if (data.mime_type != null) {\n message.mime_type = data.mime_type;\n }\n if (data.content != null) {\n message.content = data.content;\n }\n if (data.uri != null) {\n message.uri = data.uri;\n }\n return message;\n }\n toObject() {\n const data: {\n name?: string;\n mime_type?: string;\n content?: Uint8Array;\n uri?: string;\n } = {};\n if (this.name != null) {\n data.name = this.name;\n }\n if (this.mime_type != null) {\n data.mime_type = this.mime_type;\n }\n if (this.content != null) {\n data.content = this.content;\n }\n if (this.uri != null) {\n data.uri = this.uri;\n }\n return data;\n }\n serialize(): Uint8Array;\n serialize(w: pb_1.BinaryWriter): void;\n serialize(w?: pb_1.BinaryWriter): Uint8Array | void {\n const writer = w || new pb_1.BinaryWriter();\n if (this.name.length)\n writer.writeString(1, this.name);\n if (this.mime_type.length)\n writer.writeString(2, this.mime_type);\n if (this.has_content)\n writer.writeBytes(3, this.content);\n if (this.has_uri)\n writer.writeString(4, this.uri);\n if (!w)\n return writer.getResultBuffer();\n }\n static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Attachment {\n const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Attachment();\n while (reader.nextField()) {\n if (reader.isEndGroup())\n break;\n switch (reader.getFieldNumber()) {\n case 1:\n message.name = reader.readString();\n break;\n case 2:\n message.mime_type = reader.readString();\n break;\n case 3:\n message.content = reader.readBytes();\n break;\n case 4:\n message.uri = reader.readString();\n break;\n default: reader.skipField();\n }\n }\n return message;\n }\n serializeBinary(): Uint8Array {\n return this.serialize();\n }\n static deserializeBinary(bytes: Uint8Array): Attachment {\n return Attachment.deserialize(bytes);\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKA,WAAsB;AACf,IAAU;AAAA,CAAV,CAAUA,gBAAV;AAAoB,MAAC;AAAD,IAACC,QAAD;AAAG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C1B,iBAAO,KAAK,UAAU;AAAA,QAC1B;AAAA,QACA,OAAO,kBAAkB,OAA+B;AACpD,iBAAO,YAAW,YAAY,KAAK;AAAA,QACvC;AAAA,MACJ;AA1JI;AADG,UAAME,cAAN;AAAA,MAAAF,QAAM;AAAA,OAZc,SAAAD,IAAA,WAAAA,IAAA;AAAA,KAAH,KAAAD,YAAA,OAAAA,YAAA;AAAA,GAAX;;;ADDV,IAAM,aAAa,WAAS,GAAG,OAAO;AAItC,IAAM,aAAa,WAAS,GAAG,OAAO;","names":["testsystem","v1","common","TestStatus","Attachment"]}
|
|
@@ -61,6 +61,8 @@ var testsystem;
|
|
|
61
61
|
TestStatus2[TestStatus2["BROKEN"] = 4] = "BROKEN";
|
|
62
62
|
TestStatus2[TestStatus2["TIMEDOUT"] = 5] = "TIMEDOUT";
|
|
63
63
|
TestStatus2[TestStatus2["INTERRUPTED"] = 6] = "INTERRUPTED";
|
|
64
|
+
TestStatus2[TestStatus2["RUNNING"] = 7] = "RUNNING";
|
|
65
|
+
TestStatus2[TestStatus2["NOT_RUN"] = 8] = "NOT_RUN";
|
|
64
66
|
})(TestStatus = common2.TestStatus || (common2.TestStatus = {}));
|
|
65
67
|
const _Attachment = class _Attachment extends pb_1.Message {
|
|
66
68
|
constructor(data) {
|
|
@@ -416,8 +418,8 @@ var testsystem2;
|
|
|
416
418
|
if ("run_id" in data && data.run_id != void 0) {
|
|
417
419
|
this.run_id = data.run_id;
|
|
418
420
|
}
|
|
419
|
-
if ("
|
|
420
|
-
this.
|
|
421
|
+
if ("test_suite_id" in data && data.test_suite_id != void 0) {
|
|
422
|
+
this.test_suite_id = data.test_suite_id;
|
|
421
423
|
}
|
|
422
424
|
if ("status" in data && data.status != void 0) {
|
|
423
425
|
this.status = data.status;
|
|
@@ -489,10 +491,10 @@ var testsystem2;
|
|
|
489
491
|
set run_id(value) {
|
|
490
492
|
pb_14.Message.setField(this, 4, value);
|
|
491
493
|
}
|
|
492
|
-
get
|
|
494
|
+
get test_suite_id() {
|
|
493
495
|
return pb_14.Message.getFieldWithDefault(this, 5, "");
|
|
494
496
|
}
|
|
495
|
-
set
|
|
497
|
+
set test_suite_id(value) {
|
|
496
498
|
pb_14.Message.setField(this, 5, value);
|
|
497
499
|
}
|
|
498
500
|
get status() {
|
|
@@ -602,8 +604,8 @@ var testsystem2;
|
|
|
602
604
|
if (data.run_id != null) {
|
|
603
605
|
message.run_id = data.run_id;
|
|
604
606
|
}
|
|
605
|
-
if (data.
|
|
606
|
-
message.
|
|
607
|
+
if (data.test_suite_id != null) {
|
|
608
|
+
message.test_suite_id = data.test_suite_id;
|
|
607
609
|
}
|
|
608
610
|
if (data.status != null) {
|
|
609
611
|
message.status = data.status;
|
|
@@ -663,8 +665,8 @@ var testsystem2;
|
|
|
663
665
|
if (this.run_id != null) {
|
|
664
666
|
data.run_id = this.run_id;
|
|
665
667
|
}
|
|
666
|
-
if (this.
|
|
667
|
-
data.
|
|
668
|
+
if (this.test_suite_id != null) {
|
|
669
|
+
data.test_suite_id = this.test_suite_id;
|
|
668
670
|
}
|
|
669
671
|
if (this.status != null) {
|
|
670
672
|
data.status = this.status;
|
|
@@ -720,8 +722,8 @@ var testsystem2;
|
|
|
720
722
|
writer.writeString(3, this.description);
|
|
721
723
|
if (this.run_id.length)
|
|
722
724
|
writer.writeString(4, this.run_id);
|
|
723
|
-
if (this.
|
|
724
|
-
writer.writeString(5, this.
|
|
725
|
+
if (this.test_suite_id.length)
|
|
726
|
+
writer.writeString(5, this.test_suite_id);
|
|
725
727
|
if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
726
728
|
writer.writeEnum(6, this.status);
|
|
727
729
|
if (this.has_start_time)
|
|
@@ -776,7 +778,7 @@ var testsystem2;
|
|
|
776
778
|
message.run_id = reader.readString();
|
|
777
779
|
break;
|
|
778
780
|
case 5:
|
|
779
|
-
message.
|
|
781
|
+
message.test_suite_id = reader.readString();
|
|
780
782
|
break;
|
|
781
783
|
case 6:
|
|
782
784
|
message.status = reader.readEnum();
|
|
@@ -848,8 +850,8 @@ var testsystem2;
|
|
|
848
850
|
if ("run_id" in data && data.run_id != void 0) {
|
|
849
851
|
this.run_id = data.run_id;
|
|
850
852
|
}
|
|
851
|
-
if ("
|
|
852
|
-
this.
|
|
853
|
+
if ("test_case_id" in data && data.test_case_id != void 0) {
|
|
854
|
+
this.test_case_id = data.test_case_id;
|
|
853
855
|
}
|
|
854
856
|
if ("title" in data && data.title != void 0) {
|
|
855
857
|
this.title = data.title;
|
|
@@ -890,6 +892,9 @@ var testsystem2;
|
|
|
890
892
|
if ("category" in data && data.category != void 0) {
|
|
891
893
|
this.category = data.category;
|
|
892
894
|
}
|
|
895
|
+
if ("retry_index" in data && data.retry_index != void 0) {
|
|
896
|
+
this.retry_index = data.retry_index;
|
|
897
|
+
}
|
|
893
898
|
}
|
|
894
899
|
if (!this.metadata)
|
|
895
900
|
this.metadata = /* @__PURE__ */ new Map();
|
|
@@ -906,10 +911,10 @@ var testsystem2;
|
|
|
906
911
|
set run_id(value) {
|
|
907
912
|
pb_14.Message.setField(this, 2, value);
|
|
908
913
|
}
|
|
909
|
-
get
|
|
914
|
+
get test_case_id() {
|
|
910
915
|
return pb_14.Message.getFieldWithDefault(this, 3, "");
|
|
911
916
|
}
|
|
912
|
-
set
|
|
917
|
+
set test_case_id(value) {
|
|
913
918
|
pb_14.Message.setField(this, 3, value);
|
|
914
919
|
}
|
|
915
920
|
get title() {
|
|
@@ -996,6 +1001,12 @@ var testsystem2;
|
|
|
996
1001
|
set category(value) {
|
|
997
1002
|
pb_14.Message.setField(this, 16, value);
|
|
998
1003
|
}
|
|
1004
|
+
get retry_index() {
|
|
1005
|
+
return pb_14.Message.getFieldWithDefault(this, 17, 0);
|
|
1006
|
+
}
|
|
1007
|
+
set retry_index(value) {
|
|
1008
|
+
pb_14.Message.setField(this, 17, value);
|
|
1009
|
+
}
|
|
999
1010
|
static fromObject(data) {
|
|
1000
1011
|
const message = new _StepRun({});
|
|
1001
1012
|
if (data.id != null) {
|
|
@@ -1004,8 +1015,8 @@ var testsystem2;
|
|
|
1004
1015
|
if (data.run_id != null) {
|
|
1005
1016
|
message.run_id = data.run_id;
|
|
1006
1017
|
}
|
|
1007
|
-
if (data.
|
|
1008
|
-
message.
|
|
1018
|
+
if (data.test_case_id != null) {
|
|
1019
|
+
message.test_case_id = data.test_case_id;
|
|
1009
1020
|
}
|
|
1010
1021
|
if (data.title != null) {
|
|
1011
1022
|
message.title = data.title;
|
|
@@ -1046,6 +1057,9 @@ var testsystem2;
|
|
|
1046
1057
|
if (data.category != null) {
|
|
1047
1058
|
message.category = data.category;
|
|
1048
1059
|
}
|
|
1060
|
+
if (data.retry_index != null) {
|
|
1061
|
+
message.retry_index = data.retry_index;
|
|
1062
|
+
}
|
|
1049
1063
|
return message;
|
|
1050
1064
|
}
|
|
1051
1065
|
toObject() {
|
|
@@ -1056,8 +1070,8 @@ var testsystem2;
|
|
|
1056
1070
|
if (this.run_id != null) {
|
|
1057
1071
|
data.run_id = this.run_id;
|
|
1058
1072
|
}
|
|
1059
|
-
if (this.
|
|
1060
|
-
data.
|
|
1073
|
+
if (this.test_case_id != null) {
|
|
1074
|
+
data.test_case_id = this.test_case_id;
|
|
1061
1075
|
}
|
|
1062
1076
|
if (this.title != null) {
|
|
1063
1077
|
data.title = this.title;
|
|
@@ -1098,6 +1112,9 @@ var testsystem2;
|
|
|
1098
1112
|
if (this.category != null) {
|
|
1099
1113
|
data.category = this.category;
|
|
1100
1114
|
}
|
|
1115
|
+
if (this.retry_index != null) {
|
|
1116
|
+
data.retry_index = this.retry_index;
|
|
1117
|
+
}
|
|
1101
1118
|
return data;
|
|
1102
1119
|
}
|
|
1103
1120
|
serialize(w) {
|
|
@@ -1106,8 +1123,8 @@ var testsystem2;
|
|
|
1106
1123
|
writer.writeString(1, this.id);
|
|
1107
1124
|
if (this.run_id.length)
|
|
1108
1125
|
writer.writeString(2, this.run_id);
|
|
1109
|
-
if (this.
|
|
1110
|
-
writer.writeString(3, this.
|
|
1126
|
+
if (this.test_case_id.length)
|
|
1127
|
+
writer.writeString(3, this.test_case_id);
|
|
1111
1128
|
if (this.title.length)
|
|
1112
1129
|
writer.writeString(4, this.title);
|
|
1113
1130
|
if (this.description.length)
|
|
@@ -1138,6 +1155,8 @@ var testsystem2;
|
|
|
1138
1155
|
writer.writeString(15, this.location);
|
|
1139
1156
|
if (this.category.length)
|
|
1140
1157
|
writer.writeString(16, this.category);
|
|
1158
|
+
if (this.retry_index != 0)
|
|
1159
|
+
writer.writeInt32(17, this.retry_index);
|
|
1141
1160
|
if (!w)
|
|
1142
1161
|
return writer.getResultBuffer();
|
|
1143
1162
|
}
|
|
@@ -1154,7 +1173,7 @@ var testsystem2;
|
|
|
1154
1173
|
message.run_id = reader.readString();
|
|
1155
1174
|
break;
|
|
1156
1175
|
case 3:
|
|
1157
|
-
message.
|
|
1176
|
+
message.test_case_id = reader.readString();
|
|
1158
1177
|
break;
|
|
1159
1178
|
case 4:
|
|
1160
1179
|
message.title = reader.readString();
|
|
@@ -1195,6 +1214,9 @@ var testsystem2;
|
|
|
1195
1214
|
case 16:
|
|
1196
1215
|
message.category = reader.readString();
|
|
1197
1216
|
break;
|
|
1217
|
+
case 17:
|
|
1218
|
+
message.retry_index = reader.readInt32();
|
|
1219
|
+
break;
|
|
1198
1220
|
default:
|
|
1199
1221
|
reader.skipField();
|
|
1200
1222
|
}
|
|
@@ -1229,6 +1251,7 @@ var testsystem3;
|
|
|
1229
1251
|
SuiteType3[SuiteType3["ROOT"] = 0] = "ROOT";
|
|
1230
1252
|
SuiteType3[SuiteType3["PROJECT"] = 1] = "PROJECT";
|
|
1231
1253
|
SuiteType3[SuiteType3["SUBSUITE"] = 2] = "SUBSUITE";
|
|
1254
|
+
SuiteType3[SuiteType3["FILE"] = 3] = "FILE";
|
|
1232
1255
|
})(SuiteType2 = entities2.SuiteType || (entities2.SuiteType = {}));
|
|
1233
1256
|
const _TestSuiteRun = class _TestSuiteRun extends pb_15.Message {
|
|
1234
1257
|
constructor(data) {
|