weave-typescript 0.11.14 → 0.11.15

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.
Files changed (63) hide show
  1. package/dist/weaveapi/data/v1/data.pb.d.ts +54 -0
  2. package/dist/weaveapi/data/v1/data.pb.js +411 -0
  3. package/dist/weaveapi/data/v1/service.pb.d.ts +213 -0
  4. package/dist/weaveapi/data/v1/service.pb.js +1948 -0
  5. package/dist/weaveapi/input/v1/input.pb.d.ts +77 -0
  6. package/dist/weaveapi/input/v1/input.pb.js +632 -0
  7. package/dist/weaveapi/input/v1/service.pb.d.ts +311 -0
  8. package/dist/weaveapi/input/v1/service.pb.js +3001 -0
  9. package/dist/weaveapi/integration/v1/integration.pb.d.ts +67 -0
  10. package/dist/weaveapi/integration/v1/integration.pb.js +486 -0
  11. package/dist/weaveapi/integration/v1/service.pb.d.ts +236 -0
  12. package/dist/weaveapi/integration/v1/service.pb.js +2220 -0
  13. package/dist/weaveapi/report/v1/report.pb.d.ts +79 -0
  14. package/dist/weaveapi/report/v1/report.pb.js +638 -0
  15. package/dist/weaveapi/report/v1/service.pb.d.ts +194 -0
  16. package/dist/weaveapi/report/v1/service.pb.js +1630 -0
  17. package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +70 -0
  18. package/dist/weaveapi/requirement/v1/requirement.pb.js +570 -0
  19. package/dist/weaveapi/requirement/v1/service.pb.d.ts +310 -0
  20. package/dist/weaveapi/requirement/v1/service.pb.js +2978 -0
  21. package/dist/weaveapi/run/v1/run.pb.d.ts +116 -0
  22. package/dist/weaveapi/run/v1/run.pb.js +1135 -0
  23. package/dist/weaveapi/run/v1/service.pb.d.ts +229 -0
  24. package/dist/weaveapi/run/v1/service.pb.js +2106 -0
  25. package/dist/weaveapi/script/v1/script.pb.d.ts +102 -0
  26. package/dist/weaveapi/script/v1/script.pb.js +1025 -0
  27. package/dist/weaveapi/script/v1/service.pb.d.ts +426 -0
  28. package/dist/weaveapi/script/v1/service.pb.js +4399 -0
  29. package/dist/weaveapi/storage/v1/service.pb.d.ts +4 -0
  30. package/dist/weaveapi/storage/v1/service.pb.js +50 -7
  31. package/dist/weaveapi/storage/v1/storage.pb.d.ts +2 -0
  32. package/dist/weaveapi/storage/v1/storage.pb.js +23 -0
  33. package/dist/weaveapi/storage/v1/vcs.pb.d.ts +75 -0
  34. package/dist/weaveapi/storage/v1/vcs.pb.js +864 -0
  35. package/dist/weaveapi/suite/v1/service.pb.d.ts +373 -0
  36. package/dist/weaveapi/suite/v1/service.pb.js +3629 -0
  37. package/dist/weaveapi/suite/v1/suite.pb.d.ts +92 -0
  38. package/dist/weaveapi/suite/v1/suite.pb.js +876 -0
  39. package/dist/weaveapi/testcase/v1/service.pb.d.ts +422 -0
  40. package/dist/weaveapi/testcase/v1/service.pb.js +4254 -0
  41. package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +91 -0
  42. package/dist/weaveapi/testcase/v1/testcase.pb.js +794 -0
  43. package/dist/weavesql/weavedb/data_asset_sql.d.ts +141 -0
  44. package/dist/weavesql/weavedb/data_asset_sql.js +217 -0
  45. package/dist/weavesql/weavedb/input_sql.d.ts +230 -0
  46. package/dist/weavesql/weavedb/input_sql.js +384 -0
  47. package/dist/weavesql/weavedb/integration_sql.d.ts +170 -0
  48. package/dist/weavesql/weavedb/integration_sql.js +258 -0
  49. package/dist/weavesql/weavedb/report_sql.d.ts +138 -0
  50. package/dist/weavesql/weavedb/report_sql.js +232 -0
  51. package/dist/weavesql/weavedb/requirement_sql.d.ts +168 -0
  52. package/dist/weavesql/weavedb/requirement_sql.js +283 -0
  53. package/dist/weavesql/weavedb/run_sql.d.ts +247 -0
  54. package/dist/weavesql/weavedb/run_sql.js +415 -0
  55. package/dist/weavesql/weavedb/suite_sql.d.ts +228 -0
  56. package/dist/weavesql/weavedb/suite_sql.js +399 -0
  57. package/dist/weavesql/weavedb/test_case_sql.d.ts +261 -0
  58. package/dist/weavesql/weavedb/test_case_sql.js +446 -0
  59. package/dist/weavesql/weavedb/test_script_sql.d.ts +290 -0
  60. package/dist/weavesql/weavedb/test_script_sql.js +488 -0
  61. package/dist/weavesql/weavedb/traceability_sql.d.ts +59 -0
  62. package/dist/weavesql/weavedb/traceability_sql.js +155 -0
  63. package/package.json +1 -1
@@ -0,0 +1,1135 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc unknown
6
+ // source: weaveapi/run/v1/run.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.TestRunArtifact = exports.TestRunCaseResult = exports.TestRun = exports.ArtifactType = exports.RunCaseStatus = exports.RunStatus = exports.protobufPackage = void 0;
9
+ exports.runStatusFromJSON = runStatusFromJSON;
10
+ exports.runStatusToJSON = runStatusToJSON;
11
+ exports.runCaseStatusFromJSON = runCaseStatusFromJSON;
12
+ exports.runCaseStatusToJSON = runCaseStatusToJSON;
13
+ exports.artifactTypeFromJSON = artifactTypeFromJSON;
14
+ exports.artifactTypeToJSON = artifactTypeToJSON;
15
+ /* eslint-disable */
16
+ const wire_1 = require("@bufbuild/protobuf/wire");
17
+ const struct_pb_1 = require("../../../google/protobuf/struct.pb");
18
+ const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
19
+ exports.protobufPackage = "weaveapi.run.v1";
20
+ var RunStatus;
21
+ (function (RunStatus) {
22
+ RunStatus[RunStatus["RUN_STATUS_UNSPECIFIED"] = 0] = "RUN_STATUS_UNSPECIFIED";
23
+ RunStatus[RunStatus["RUN_STATUS_QUEUED"] = 1] = "RUN_STATUS_QUEUED";
24
+ RunStatus[RunStatus["RUN_STATUS_RUNNING"] = 2] = "RUN_STATUS_RUNNING";
25
+ RunStatus[RunStatus["RUN_STATUS_PASSED"] = 3] = "RUN_STATUS_PASSED";
26
+ RunStatus[RunStatus["RUN_STATUS_FAILED"] = 4] = "RUN_STATUS_FAILED";
27
+ RunStatus[RunStatus["RUN_STATUS_CANCELED"] = 5] = "RUN_STATUS_CANCELED";
28
+ RunStatus[RunStatus["RUN_STATUS_TIMED_OUT"] = 6] = "RUN_STATUS_TIMED_OUT";
29
+ RunStatus[RunStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
30
+ })(RunStatus || (exports.RunStatus = RunStatus = {}));
31
+ function runStatusFromJSON(object) {
32
+ switch (object) {
33
+ case 0:
34
+ case "RUN_STATUS_UNSPECIFIED":
35
+ return RunStatus.RUN_STATUS_UNSPECIFIED;
36
+ case 1:
37
+ case "RUN_STATUS_QUEUED":
38
+ return RunStatus.RUN_STATUS_QUEUED;
39
+ case 2:
40
+ case "RUN_STATUS_RUNNING":
41
+ return RunStatus.RUN_STATUS_RUNNING;
42
+ case 3:
43
+ case "RUN_STATUS_PASSED":
44
+ return RunStatus.RUN_STATUS_PASSED;
45
+ case 4:
46
+ case "RUN_STATUS_FAILED":
47
+ return RunStatus.RUN_STATUS_FAILED;
48
+ case 5:
49
+ case "RUN_STATUS_CANCELED":
50
+ return RunStatus.RUN_STATUS_CANCELED;
51
+ case 6:
52
+ case "RUN_STATUS_TIMED_OUT":
53
+ return RunStatus.RUN_STATUS_TIMED_OUT;
54
+ case -1:
55
+ case "UNRECOGNIZED":
56
+ default:
57
+ return RunStatus.UNRECOGNIZED;
58
+ }
59
+ }
60
+ function runStatusToJSON(object) {
61
+ switch (object) {
62
+ case RunStatus.RUN_STATUS_UNSPECIFIED:
63
+ return "RUN_STATUS_UNSPECIFIED";
64
+ case RunStatus.RUN_STATUS_QUEUED:
65
+ return "RUN_STATUS_QUEUED";
66
+ case RunStatus.RUN_STATUS_RUNNING:
67
+ return "RUN_STATUS_RUNNING";
68
+ case RunStatus.RUN_STATUS_PASSED:
69
+ return "RUN_STATUS_PASSED";
70
+ case RunStatus.RUN_STATUS_FAILED:
71
+ return "RUN_STATUS_FAILED";
72
+ case RunStatus.RUN_STATUS_CANCELED:
73
+ return "RUN_STATUS_CANCELED";
74
+ case RunStatus.RUN_STATUS_TIMED_OUT:
75
+ return "RUN_STATUS_TIMED_OUT";
76
+ case RunStatus.UNRECOGNIZED:
77
+ default:
78
+ return "UNRECOGNIZED";
79
+ }
80
+ }
81
+ var RunCaseStatus;
82
+ (function (RunCaseStatus) {
83
+ RunCaseStatus[RunCaseStatus["RUN_CASE_STATUS_UNSPECIFIED"] = 0] = "RUN_CASE_STATUS_UNSPECIFIED";
84
+ RunCaseStatus[RunCaseStatus["RUN_CASE_STATUS_PENDING"] = 1] = "RUN_CASE_STATUS_PENDING";
85
+ RunCaseStatus[RunCaseStatus["RUN_CASE_STATUS_RUNNING"] = 2] = "RUN_CASE_STATUS_RUNNING";
86
+ RunCaseStatus[RunCaseStatus["RUN_CASE_STATUS_PASSED"] = 3] = "RUN_CASE_STATUS_PASSED";
87
+ RunCaseStatus[RunCaseStatus["RUN_CASE_STATUS_FAILED"] = 4] = "RUN_CASE_STATUS_FAILED";
88
+ RunCaseStatus[RunCaseStatus["RUN_CASE_STATUS_SKIPPED"] = 5] = "RUN_CASE_STATUS_SKIPPED";
89
+ RunCaseStatus[RunCaseStatus["RUN_CASE_STATUS_ERROR"] = 6] = "RUN_CASE_STATUS_ERROR";
90
+ RunCaseStatus[RunCaseStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
91
+ })(RunCaseStatus || (exports.RunCaseStatus = RunCaseStatus = {}));
92
+ function runCaseStatusFromJSON(object) {
93
+ switch (object) {
94
+ case 0:
95
+ case "RUN_CASE_STATUS_UNSPECIFIED":
96
+ return RunCaseStatus.RUN_CASE_STATUS_UNSPECIFIED;
97
+ case 1:
98
+ case "RUN_CASE_STATUS_PENDING":
99
+ return RunCaseStatus.RUN_CASE_STATUS_PENDING;
100
+ case 2:
101
+ case "RUN_CASE_STATUS_RUNNING":
102
+ return RunCaseStatus.RUN_CASE_STATUS_RUNNING;
103
+ case 3:
104
+ case "RUN_CASE_STATUS_PASSED":
105
+ return RunCaseStatus.RUN_CASE_STATUS_PASSED;
106
+ case 4:
107
+ case "RUN_CASE_STATUS_FAILED":
108
+ return RunCaseStatus.RUN_CASE_STATUS_FAILED;
109
+ case 5:
110
+ case "RUN_CASE_STATUS_SKIPPED":
111
+ return RunCaseStatus.RUN_CASE_STATUS_SKIPPED;
112
+ case 6:
113
+ case "RUN_CASE_STATUS_ERROR":
114
+ return RunCaseStatus.RUN_CASE_STATUS_ERROR;
115
+ case -1:
116
+ case "UNRECOGNIZED":
117
+ default:
118
+ return RunCaseStatus.UNRECOGNIZED;
119
+ }
120
+ }
121
+ function runCaseStatusToJSON(object) {
122
+ switch (object) {
123
+ case RunCaseStatus.RUN_CASE_STATUS_UNSPECIFIED:
124
+ return "RUN_CASE_STATUS_UNSPECIFIED";
125
+ case RunCaseStatus.RUN_CASE_STATUS_PENDING:
126
+ return "RUN_CASE_STATUS_PENDING";
127
+ case RunCaseStatus.RUN_CASE_STATUS_RUNNING:
128
+ return "RUN_CASE_STATUS_RUNNING";
129
+ case RunCaseStatus.RUN_CASE_STATUS_PASSED:
130
+ return "RUN_CASE_STATUS_PASSED";
131
+ case RunCaseStatus.RUN_CASE_STATUS_FAILED:
132
+ return "RUN_CASE_STATUS_FAILED";
133
+ case RunCaseStatus.RUN_CASE_STATUS_SKIPPED:
134
+ return "RUN_CASE_STATUS_SKIPPED";
135
+ case RunCaseStatus.RUN_CASE_STATUS_ERROR:
136
+ return "RUN_CASE_STATUS_ERROR";
137
+ case RunCaseStatus.UNRECOGNIZED:
138
+ default:
139
+ return "UNRECOGNIZED";
140
+ }
141
+ }
142
+ var ArtifactType;
143
+ (function (ArtifactType) {
144
+ ArtifactType[ArtifactType["ARTIFACT_TYPE_UNSPECIFIED"] = 0] = "ARTIFACT_TYPE_UNSPECIFIED";
145
+ ArtifactType[ArtifactType["ARTIFACT_TYPE_LOG"] = 1] = "ARTIFACT_TYPE_LOG";
146
+ ArtifactType[ArtifactType["ARTIFACT_TYPE_SCREENSHOT"] = 2] = "ARTIFACT_TYPE_SCREENSHOT";
147
+ ArtifactType[ArtifactType["ARTIFACT_TYPE_VIDEO"] = 3] = "ARTIFACT_TYPE_VIDEO";
148
+ ArtifactType[ArtifactType["ARTIFACT_TYPE_TRACE"] = 4] = "ARTIFACT_TYPE_TRACE";
149
+ ArtifactType[ArtifactType["ARTIFACT_TYPE_ALLURE_RESULT"] = 5] = "ARTIFACT_TYPE_ALLURE_RESULT";
150
+ ArtifactType[ArtifactType["ARTIFACT_TYPE_ALLURE_REPORT"] = 6] = "ARTIFACT_TYPE_ALLURE_REPORT";
151
+ ArtifactType[ArtifactType["ARTIFACT_TYPE_RAW_OUTPUT"] = 7] = "ARTIFACT_TYPE_RAW_OUTPUT";
152
+ ArtifactType[ArtifactType["ARTIFACT_TYPE_OTHER"] = 8] = "ARTIFACT_TYPE_OTHER";
153
+ ArtifactType[ArtifactType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
154
+ })(ArtifactType || (exports.ArtifactType = ArtifactType = {}));
155
+ function artifactTypeFromJSON(object) {
156
+ switch (object) {
157
+ case 0:
158
+ case "ARTIFACT_TYPE_UNSPECIFIED":
159
+ return ArtifactType.ARTIFACT_TYPE_UNSPECIFIED;
160
+ case 1:
161
+ case "ARTIFACT_TYPE_LOG":
162
+ return ArtifactType.ARTIFACT_TYPE_LOG;
163
+ case 2:
164
+ case "ARTIFACT_TYPE_SCREENSHOT":
165
+ return ArtifactType.ARTIFACT_TYPE_SCREENSHOT;
166
+ case 3:
167
+ case "ARTIFACT_TYPE_VIDEO":
168
+ return ArtifactType.ARTIFACT_TYPE_VIDEO;
169
+ case 4:
170
+ case "ARTIFACT_TYPE_TRACE":
171
+ return ArtifactType.ARTIFACT_TYPE_TRACE;
172
+ case 5:
173
+ case "ARTIFACT_TYPE_ALLURE_RESULT":
174
+ return ArtifactType.ARTIFACT_TYPE_ALLURE_RESULT;
175
+ case 6:
176
+ case "ARTIFACT_TYPE_ALLURE_REPORT":
177
+ return ArtifactType.ARTIFACT_TYPE_ALLURE_REPORT;
178
+ case 7:
179
+ case "ARTIFACT_TYPE_RAW_OUTPUT":
180
+ return ArtifactType.ARTIFACT_TYPE_RAW_OUTPUT;
181
+ case 8:
182
+ case "ARTIFACT_TYPE_OTHER":
183
+ return ArtifactType.ARTIFACT_TYPE_OTHER;
184
+ case -1:
185
+ case "UNRECOGNIZED":
186
+ default:
187
+ return ArtifactType.UNRECOGNIZED;
188
+ }
189
+ }
190
+ function artifactTypeToJSON(object) {
191
+ switch (object) {
192
+ case ArtifactType.ARTIFACT_TYPE_UNSPECIFIED:
193
+ return "ARTIFACT_TYPE_UNSPECIFIED";
194
+ case ArtifactType.ARTIFACT_TYPE_LOG:
195
+ return "ARTIFACT_TYPE_LOG";
196
+ case ArtifactType.ARTIFACT_TYPE_SCREENSHOT:
197
+ return "ARTIFACT_TYPE_SCREENSHOT";
198
+ case ArtifactType.ARTIFACT_TYPE_VIDEO:
199
+ return "ARTIFACT_TYPE_VIDEO";
200
+ case ArtifactType.ARTIFACT_TYPE_TRACE:
201
+ return "ARTIFACT_TYPE_TRACE";
202
+ case ArtifactType.ARTIFACT_TYPE_ALLURE_RESULT:
203
+ return "ARTIFACT_TYPE_ALLURE_RESULT";
204
+ case ArtifactType.ARTIFACT_TYPE_ALLURE_REPORT:
205
+ return "ARTIFACT_TYPE_ALLURE_REPORT";
206
+ case ArtifactType.ARTIFACT_TYPE_RAW_OUTPUT:
207
+ return "ARTIFACT_TYPE_RAW_OUTPUT";
208
+ case ArtifactType.ARTIFACT_TYPE_OTHER:
209
+ return "ARTIFACT_TYPE_OTHER";
210
+ case ArtifactType.UNRECOGNIZED:
211
+ default:
212
+ return "UNRECOGNIZED";
213
+ }
214
+ }
215
+ function createBaseTestRun() {
216
+ return {
217
+ testRunId: "",
218
+ workflowId: "",
219
+ testSuiteId: "",
220
+ status: 0,
221
+ environment: "",
222
+ triggeredBy: "",
223
+ traceId: "",
224
+ runtimeConfig: undefined,
225
+ summary: undefined,
226
+ queuedAt: undefined,
227
+ startedAt: undefined,
228
+ finishedAt: undefined,
229
+ createdAt: undefined,
230
+ updatedAt: undefined,
231
+ };
232
+ }
233
+ exports.TestRun = {
234
+ encode(message, writer = new wire_1.BinaryWriter()) {
235
+ if (message.testRunId !== "") {
236
+ writer.uint32(10).string(message.testRunId);
237
+ }
238
+ if (message.workflowId !== "") {
239
+ writer.uint32(18).string(message.workflowId);
240
+ }
241
+ if (message.testSuiteId !== "") {
242
+ writer.uint32(26).string(message.testSuiteId);
243
+ }
244
+ if (message.status !== 0) {
245
+ writer.uint32(32).int32(message.status);
246
+ }
247
+ if (message.environment !== "") {
248
+ writer.uint32(42).string(message.environment);
249
+ }
250
+ if (message.triggeredBy !== "") {
251
+ writer.uint32(50).string(message.triggeredBy);
252
+ }
253
+ if (message.traceId !== "") {
254
+ writer.uint32(58).string(message.traceId);
255
+ }
256
+ if (message.runtimeConfig !== undefined) {
257
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.runtimeConfig), writer.uint32(66).fork()).join();
258
+ }
259
+ if (message.summary !== undefined) {
260
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.summary), writer.uint32(74).fork()).join();
261
+ }
262
+ if (message.queuedAt !== undefined) {
263
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.queuedAt), writer.uint32(82).fork()).join();
264
+ }
265
+ if (message.startedAt !== undefined) {
266
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.startedAt), writer.uint32(90).fork()).join();
267
+ }
268
+ if (message.finishedAt !== undefined) {
269
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.finishedAt), writer.uint32(98).fork()).join();
270
+ }
271
+ if (message.createdAt !== undefined) {
272
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(106).fork()).join();
273
+ }
274
+ if (message.updatedAt !== undefined) {
275
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(114).fork()).join();
276
+ }
277
+ return writer;
278
+ },
279
+ decode(input, length) {
280
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
281
+ const end = length === undefined ? reader.len : reader.pos + length;
282
+ const message = createBaseTestRun();
283
+ while (reader.pos < end) {
284
+ const tag = reader.uint32();
285
+ switch (tag >>> 3) {
286
+ case 1: {
287
+ if (tag !== 10) {
288
+ break;
289
+ }
290
+ message.testRunId = reader.string();
291
+ continue;
292
+ }
293
+ case 2: {
294
+ if (tag !== 18) {
295
+ break;
296
+ }
297
+ message.workflowId = reader.string();
298
+ continue;
299
+ }
300
+ case 3: {
301
+ if (tag !== 26) {
302
+ break;
303
+ }
304
+ message.testSuiteId = reader.string();
305
+ continue;
306
+ }
307
+ case 4: {
308
+ if (tag !== 32) {
309
+ break;
310
+ }
311
+ message.status = reader.int32();
312
+ continue;
313
+ }
314
+ case 5: {
315
+ if (tag !== 42) {
316
+ break;
317
+ }
318
+ message.environment = reader.string();
319
+ continue;
320
+ }
321
+ case 6: {
322
+ if (tag !== 50) {
323
+ break;
324
+ }
325
+ message.triggeredBy = reader.string();
326
+ continue;
327
+ }
328
+ case 7: {
329
+ if (tag !== 58) {
330
+ break;
331
+ }
332
+ message.traceId = reader.string();
333
+ continue;
334
+ }
335
+ case 8: {
336
+ if (tag !== 66) {
337
+ break;
338
+ }
339
+ message.runtimeConfig = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
340
+ continue;
341
+ }
342
+ case 9: {
343
+ if (tag !== 74) {
344
+ break;
345
+ }
346
+ message.summary = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
347
+ continue;
348
+ }
349
+ case 10: {
350
+ if (tag !== 82) {
351
+ break;
352
+ }
353
+ message.queuedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
354
+ continue;
355
+ }
356
+ case 11: {
357
+ if (tag !== 90) {
358
+ break;
359
+ }
360
+ message.startedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
361
+ continue;
362
+ }
363
+ case 12: {
364
+ if (tag !== 98) {
365
+ break;
366
+ }
367
+ message.finishedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
368
+ continue;
369
+ }
370
+ case 13: {
371
+ if (tag !== 106) {
372
+ break;
373
+ }
374
+ message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
375
+ continue;
376
+ }
377
+ case 14: {
378
+ if (tag !== 114) {
379
+ break;
380
+ }
381
+ message.updatedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
382
+ continue;
383
+ }
384
+ }
385
+ if ((tag & 7) === 4 || tag === 0) {
386
+ break;
387
+ }
388
+ reader.skip(tag & 7);
389
+ }
390
+ return message;
391
+ },
392
+ fromJSON(object) {
393
+ return {
394
+ testRunId: isSet(object.testRunId)
395
+ ? globalThis.String(object.testRunId)
396
+ : isSet(object.test_run_id)
397
+ ? globalThis.String(object.test_run_id)
398
+ : "",
399
+ workflowId: isSet(object.workflowId)
400
+ ? globalThis.String(object.workflowId)
401
+ : isSet(object.workflow_id)
402
+ ? globalThis.String(object.workflow_id)
403
+ : "",
404
+ testSuiteId: isSet(object.testSuiteId)
405
+ ? globalThis.String(object.testSuiteId)
406
+ : isSet(object.test_suite_id)
407
+ ? globalThis.String(object.test_suite_id)
408
+ : "",
409
+ status: isSet(object.status) ? runStatusFromJSON(object.status) : 0,
410
+ environment: isSet(object.environment) ? globalThis.String(object.environment) : "",
411
+ triggeredBy: isSet(object.triggeredBy)
412
+ ? globalThis.String(object.triggeredBy)
413
+ : isSet(object.triggered_by)
414
+ ? globalThis.String(object.triggered_by)
415
+ : "",
416
+ traceId: isSet(object.traceId)
417
+ ? globalThis.String(object.traceId)
418
+ : isSet(object.trace_id)
419
+ ? globalThis.String(object.trace_id)
420
+ : "",
421
+ runtimeConfig: isObject(object.runtimeConfig)
422
+ ? object.runtimeConfig
423
+ : isObject(object.runtime_config)
424
+ ? object.runtime_config
425
+ : undefined,
426
+ summary: isObject(object.summary) ? object.summary : undefined,
427
+ queuedAt: isSet(object.queuedAt)
428
+ ? fromJsonTimestamp(object.queuedAt)
429
+ : isSet(object.queued_at)
430
+ ? fromJsonTimestamp(object.queued_at)
431
+ : undefined,
432
+ startedAt: isSet(object.startedAt)
433
+ ? fromJsonTimestamp(object.startedAt)
434
+ : isSet(object.started_at)
435
+ ? fromJsonTimestamp(object.started_at)
436
+ : undefined,
437
+ finishedAt: isSet(object.finishedAt)
438
+ ? fromJsonTimestamp(object.finishedAt)
439
+ : isSet(object.finished_at)
440
+ ? fromJsonTimestamp(object.finished_at)
441
+ : undefined,
442
+ createdAt: isSet(object.createdAt)
443
+ ? fromJsonTimestamp(object.createdAt)
444
+ : isSet(object.created_at)
445
+ ? fromJsonTimestamp(object.created_at)
446
+ : undefined,
447
+ updatedAt: isSet(object.updatedAt)
448
+ ? fromJsonTimestamp(object.updatedAt)
449
+ : isSet(object.updated_at)
450
+ ? fromJsonTimestamp(object.updated_at)
451
+ : undefined,
452
+ };
453
+ },
454
+ toJSON(message) {
455
+ const obj = {};
456
+ if (message.testRunId !== "") {
457
+ obj.testRunId = message.testRunId;
458
+ }
459
+ if (message.workflowId !== "") {
460
+ obj.workflowId = message.workflowId;
461
+ }
462
+ if (message.testSuiteId !== "") {
463
+ obj.testSuiteId = message.testSuiteId;
464
+ }
465
+ if (message.status !== 0) {
466
+ obj.status = runStatusToJSON(message.status);
467
+ }
468
+ if (message.environment !== "") {
469
+ obj.environment = message.environment;
470
+ }
471
+ if (message.triggeredBy !== "") {
472
+ obj.triggeredBy = message.triggeredBy;
473
+ }
474
+ if (message.traceId !== "") {
475
+ obj.traceId = message.traceId;
476
+ }
477
+ if (message.runtimeConfig !== undefined) {
478
+ obj.runtimeConfig = message.runtimeConfig;
479
+ }
480
+ if (message.summary !== undefined) {
481
+ obj.summary = message.summary;
482
+ }
483
+ if (message.queuedAt !== undefined) {
484
+ obj.queuedAt = message.queuedAt.toISOString();
485
+ }
486
+ if (message.startedAt !== undefined) {
487
+ obj.startedAt = message.startedAt.toISOString();
488
+ }
489
+ if (message.finishedAt !== undefined) {
490
+ obj.finishedAt = message.finishedAt.toISOString();
491
+ }
492
+ if (message.createdAt !== undefined) {
493
+ obj.createdAt = message.createdAt.toISOString();
494
+ }
495
+ if (message.updatedAt !== undefined) {
496
+ obj.updatedAt = message.updatedAt.toISOString();
497
+ }
498
+ return obj;
499
+ },
500
+ create(base) {
501
+ return exports.TestRun.fromPartial(base !== null && base !== void 0 ? base : {});
502
+ },
503
+ fromPartial(object) {
504
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
505
+ const message = createBaseTestRun();
506
+ message.testRunId = (_a = object.testRunId) !== null && _a !== void 0 ? _a : "";
507
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
508
+ message.testSuiteId = (_c = object.testSuiteId) !== null && _c !== void 0 ? _c : "";
509
+ message.status = (_d = object.status) !== null && _d !== void 0 ? _d : 0;
510
+ message.environment = (_e = object.environment) !== null && _e !== void 0 ? _e : "";
511
+ message.triggeredBy = (_f = object.triggeredBy) !== null && _f !== void 0 ? _f : "";
512
+ message.traceId = (_g = object.traceId) !== null && _g !== void 0 ? _g : "";
513
+ message.runtimeConfig = (_h = object.runtimeConfig) !== null && _h !== void 0 ? _h : undefined;
514
+ message.summary = (_j = object.summary) !== null && _j !== void 0 ? _j : undefined;
515
+ message.queuedAt = (_k = object.queuedAt) !== null && _k !== void 0 ? _k : undefined;
516
+ message.startedAt = (_l = object.startedAt) !== null && _l !== void 0 ? _l : undefined;
517
+ message.finishedAt = (_m = object.finishedAt) !== null && _m !== void 0 ? _m : undefined;
518
+ message.createdAt = (_o = object.createdAt) !== null && _o !== void 0 ? _o : undefined;
519
+ message.updatedAt = (_p = object.updatedAt) !== null && _p !== void 0 ? _p : undefined;
520
+ return message;
521
+ },
522
+ };
523
+ function createBaseTestRunCaseResult() {
524
+ return {
525
+ testRunCaseResultId: "",
526
+ testRunId: "",
527
+ testCaseId: "",
528
+ testScriptId: "",
529
+ status: 0,
530
+ durationMs: 0,
531
+ errorSummary: "",
532
+ assertionCount: 0,
533
+ failedAssertionCount: 0,
534
+ details: undefined,
535
+ startedAt: undefined,
536
+ finishedAt: undefined,
537
+ createdAt: undefined,
538
+ updatedAt: undefined,
539
+ };
540
+ }
541
+ exports.TestRunCaseResult = {
542
+ encode(message, writer = new wire_1.BinaryWriter()) {
543
+ if (message.testRunCaseResultId !== "") {
544
+ writer.uint32(10).string(message.testRunCaseResultId);
545
+ }
546
+ if (message.testRunId !== "") {
547
+ writer.uint32(18).string(message.testRunId);
548
+ }
549
+ if (message.testCaseId !== "") {
550
+ writer.uint32(26).string(message.testCaseId);
551
+ }
552
+ if (message.testScriptId !== "") {
553
+ writer.uint32(34).string(message.testScriptId);
554
+ }
555
+ if (message.status !== 0) {
556
+ writer.uint32(40).int32(message.status);
557
+ }
558
+ if (message.durationMs !== 0) {
559
+ writer.uint32(48).int64(message.durationMs);
560
+ }
561
+ if (message.errorSummary !== "") {
562
+ writer.uint32(58).string(message.errorSummary);
563
+ }
564
+ if (message.assertionCount !== 0) {
565
+ writer.uint32(64).int32(message.assertionCount);
566
+ }
567
+ if (message.failedAssertionCount !== 0) {
568
+ writer.uint32(72).int32(message.failedAssertionCount);
569
+ }
570
+ if (message.details !== undefined) {
571
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.details), writer.uint32(82).fork()).join();
572
+ }
573
+ if (message.startedAt !== undefined) {
574
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.startedAt), writer.uint32(90).fork()).join();
575
+ }
576
+ if (message.finishedAt !== undefined) {
577
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.finishedAt), writer.uint32(98).fork()).join();
578
+ }
579
+ if (message.createdAt !== undefined) {
580
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(106).fork()).join();
581
+ }
582
+ if (message.updatedAt !== undefined) {
583
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(114).fork()).join();
584
+ }
585
+ return writer;
586
+ },
587
+ decode(input, length) {
588
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
589
+ const end = length === undefined ? reader.len : reader.pos + length;
590
+ const message = createBaseTestRunCaseResult();
591
+ while (reader.pos < end) {
592
+ const tag = reader.uint32();
593
+ switch (tag >>> 3) {
594
+ case 1: {
595
+ if (tag !== 10) {
596
+ break;
597
+ }
598
+ message.testRunCaseResultId = reader.string();
599
+ continue;
600
+ }
601
+ case 2: {
602
+ if (tag !== 18) {
603
+ break;
604
+ }
605
+ message.testRunId = reader.string();
606
+ continue;
607
+ }
608
+ case 3: {
609
+ if (tag !== 26) {
610
+ break;
611
+ }
612
+ message.testCaseId = reader.string();
613
+ continue;
614
+ }
615
+ case 4: {
616
+ if (tag !== 34) {
617
+ break;
618
+ }
619
+ message.testScriptId = reader.string();
620
+ continue;
621
+ }
622
+ case 5: {
623
+ if (tag !== 40) {
624
+ break;
625
+ }
626
+ message.status = reader.int32();
627
+ continue;
628
+ }
629
+ case 6: {
630
+ if (tag !== 48) {
631
+ break;
632
+ }
633
+ message.durationMs = longToNumber(reader.int64());
634
+ continue;
635
+ }
636
+ case 7: {
637
+ if (tag !== 58) {
638
+ break;
639
+ }
640
+ message.errorSummary = reader.string();
641
+ continue;
642
+ }
643
+ case 8: {
644
+ if (tag !== 64) {
645
+ break;
646
+ }
647
+ message.assertionCount = reader.int32();
648
+ continue;
649
+ }
650
+ case 9: {
651
+ if (tag !== 72) {
652
+ break;
653
+ }
654
+ message.failedAssertionCount = reader.int32();
655
+ continue;
656
+ }
657
+ case 10: {
658
+ if (tag !== 82) {
659
+ break;
660
+ }
661
+ message.details = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
662
+ continue;
663
+ }
664
+ case 11: {
665
+ if (tag !== 90) {
666
+ break;
667
+ }
668
+ message.startedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
669
+ continue;
670
+ }
671
+ case 12: {
672
+ if (tag !== 98) {
673
+ break;
674
+ }
675
+ message.finishedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
676
+ continue;
677
+ }
678
+ case 13: {
679
+ if (tag !== 106) {
680
+ break;
681
+ }
682
+ message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
683
+ continue;
684
+ }
685
+ case 14: {
686
+ if (tag !== 114) {
687
+ break;
688
+ }
689
+ message.updatedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
690
+ continue;
691
+ }
692
+ }
693
+ if ((tag & 7) === 4 || tag === 0) {
694
+ break;
695
+ }
696
+ reader.skip(tag & 7);
697
+ }
698
+ return message;
699
+ },
700
+ fromJSON(object) {
701
+ return {
702
+ testRunCaseResultId: isSet(object.testRunCaseResultId)
703
+ ? globalThis.String(object.testRunCaseResultId)
704
+ : isSet(object.test_run_case_result_id)
705
+ ? globalThis.String(object.test_run_case_result_id)
706
+ : "",
707
+ testRunId: isSet(object.testRunId)
708
+ ? globalThis.String(object.testRunId)
709
+ : isSet(object.test_run_id)
710
+ ? globalThis.String(object.test_run_id)
711
+ : "",
712
+ testCaseId: isSet(object.testCaseId)
713
+ ? globalThis.String(object.testCaseId)
714
+ : isSet(object.test_case_id)
715
+ ? globalThis.String(object.test_case_id)
716
+ : "",
717
+ testScriptId: isSet(object.testScriptId)
718
+ ? globalThis.String(object.testScriptId)
719
+ : isSet(object.test_script_id)
720
+ ? globalThis.String(object.test_script_id)
721
+ : "",
722
+ status: isSet(object.status) ? runCaseStatusFromJSON(object.status) : 0,
723
+ durationMs: isSet(object.durationMs)
724
+ ? globalThis.Number(object.durationMs)
725
+ : isSet(object.duration_ms)
726
+ ? globalThis.Number(object.duration_ms)
727
+ : 0,
728
+ errorSummary: isSet(object.errorSummary)
729
+ ? globalThis.String(object.errorSummary)
730
+ : isSet(object.error_summary)
731
+ ? globalThis.String(object.error_summary)
732
+ : "",
733
+ assertionCount: isSet(object.assertionCount)
734
+ ? globalThis.Number(object.assertionCount)
735
+ : isSet(object.assertion_count)
736
+ ? globalThis.Number(object.assertion_count)
737
+ : 0,
738
+ failedAssertionCount: isSet(object.failedAssertionCount)
739
+ ? globalThis.Number(object.failedAssertionCount)
740
+ : isSet(object.failed_assertion_count)
741
+ ? globalThis.Number(object.failed_assertion_count)
742
+ : 0,
743
+ details: isObject(object.details) ? object.details : undefined,
744
+ startedAt: isSet(object.startedAt)
745
+ ? fromJsonTimestamp(object.startedAt)
746
+ : isSet(object.started_at)
747
+ ? fromJsonTimestamp(object.started_at)
748
+ : undefined,
749
+ finishedAt: isSet(object.finishedAt)
750
+ ? fromJsonTimestamp(object.finishedAt)
751
+ : isSet(object.finished_at)
752
+ ? fromJsonTimestamp(object.finished_at)
753
+ : undefined,
754
+ createdAt: isSet(object.createdAt)
755
+ ? fromJsonTimestamp(object.createdAt)
756
+ : isSet(object.created_at)
757
+ ? fromJsonTimestamp(object.created_at)
758
+ : undefined,
759
+ updatedAt: isSet(object.updatedAt)
760
+ ? fromJsonTimestamp(object.updatedAt)
761
+ : isSet(object.updated_at)
762
+ ? fromJsonTimestamp(object.updated_at)
763
+ : undefined,
764
+ };
765
+ },
766
+ toJSON(message) {
767
+ const obj = {};
768
+ if (message.testRunCaseResultId !== "") {
769
+ obj.testRunCaseResultId = message.testRunCaseResultId;
770
+ }
771
+ if (message.testRunId !== "") {
772
+ obj.testRunId = message.testRunId;
773
+ }
774
+ if (message.testCaseId !== "") {
775
+ obj.testCaseId = message.testCaseId;
776
+ }
777
+ if (message.testScriptId !== "") {
778
+ obj.testScriptId = message.testScriptId;
779
+ }
780
+ if (message.status !== 0) {
781
+ obj.status = runCaseStatusToJSON(message.status);
782
+ }
783
+ if (message.durationMs !== 0) {
784
+ obj.durationMs = Math.round(message.durationMs);
785
+ }
786
+ if (message.errorSummary !== "") {
787
+ obj.errorSummary = message.errorSummary;
788
+ }
789
+ if (message.assertionCount !== 0) {
790
+ obj.assertionCount = Math.round(message.assertionCount);
791
+ }
792
+ if (message.failedAssertionCount !== 0) {
793
+ obj.failedAssertionCount = Math.round(message.failedAssertionCount);
794
+ }
795
+ if (message.details !== undefined) {
796
+ obj.details = message.details;
797
+ }
798
+ if (message.startedAt !== undefined) {
799
+ obj.startedAt = message.startedAt.toISOString();
800
+ }
801
+ if (message.finishedAt !== undefined) {
802
+ obj.finishedAt = message.finishedAt.toISOString();
803
+ }
804
+ if (message.createdAt !== undefined) {
805
+ obj.createdAt = message.createdAt.toISOString();
806
+ }
807
+ if (message.updatedAt !== undefined) {
808
+ obj.updatedAt = message.updatedAt.toISOString();
809
+ }
810
+ return obj;
811
+ },
812
+ create(base) {
813
+ return exports.TestRunCaseResult.fromPartial(base !== null && base !== void 0 ? base : {});
814
+ },
815
+ fromPartial(object) {
816
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
817
+ const message = createBaseTestRunCaseResult();
818
+ message.testRunCaseResultId = (_a = object.testRunCaseResultId) !== null && _a !== void 0 ? _a : "";
819
+ message.testRunId = (_b = object.testRunId) !== null && _b !== void 0 ? _b : "";
820
+ message.testCaseId = (_c = object.testCaseId) !== null && _c !== void 0 ? _c : "";
821
+ message.testScriptId = (_d = object.testScriptId) !== null && _d !== void 0 ? _d : "";
822
+ message.status = (_e = object.status) !== null && _e !== void 0 ? _e : 0;
823
+ message.durationMs = (_f = object.durationMs) !== null && _f !== void 0 ? _f : 0;
824
+ message.errorSummary = (_g = object.errorSummary) !== null && _g !== void 0 ? _g : "";
825
+ message.assertionCount = (_h = object.assertionCount) !== null && _h !== void 0 ? _h : 0;
826
+ message.failedAssertionCount = (_j = object.failedAssertionCount) !== null && _j !== void 0 ? _j : 0;
827
+ message.details = (_k = object.details) !== null && _k !== void 0 ? _k : undefined;
828
+ message.startedAt = (_l = object.startedAt) !== null && _l !== void 0 ? _l : undefined;
829
+ message.finishedAt = (_m = object.finishedAt) !== null && _m !== void 0 ? _m : undefined;
830
+ message.createdAt = (_o = object.createdAt) !== null && _o !== void 0 ? _o : undefined;
831
+ message.updatedAt = (_p = object.updatedAt) !== null && _p !== void 0 ? _p : undefined;
832
+ return message;
833
+ },
834
+ };
835
+ function createBaseTestRunArtifact() {
836
+ return {
837
+ testRunArtifactId: "",
838
+ testRunId: "",
839
+ testRunCaseResultId: "",
840
+ artifactType: 0,
841
+ name: "",
842
+ storageConnectionId: "",
843
+ uri: "",
844
+ contentType: "",
845
+ sizeBytes: 0,
846
+ checksum: "",
847
+ metadata: undefined,
848
+ createdAt: undefined,
849
+ };
850
+ }
851
+ exports.TestRunArtifact = {
852
+ encode(message, writer = new wire_1.BinaryWriter()) {
853
+ if (message.testRunArtifactId !== "") {
854
+ writer.uint32(10).string(message.testRunArtifactId);
855
+ }
856
+ if (message.testRunId !== "") {
857
+ writer.uint32(18).string(message.testRunId);
858
+ }
859
+ if (message.testRunCaseResultId !== "") {
860
+ writer.uint32(26).string(message.testRunCaseResultId);
861
+ }
862
+ if (message.artifactType !== 0) {
863
+ writer.uint32(32).int32(message.artifactType);
864
+ }
865
+ if (message.name !== "") {
866
+ writer.uint32(42).string(message.name);
867
+ }
868
+ if (message.storageConnectionId !== "") {
869
+ writer.uint32(50).string(message.storageConnectionId);
870
+ }
871
+ if (message.uri !== "") {
872
+ writer.uint32(58).string(message.uri);
873
+ }
874
+ if (message.contentType !== "") {
875
+ writer.uint32(66).string(message.contentType);
876
+ }
877
+ if (message.sizeBytes !== 0) {
878
+ writer.uint32(72).int64(message.sizeBytes);
879
+ }
880
+ if (message.checksum !== "") {
881
+ writer.uint32(82).string(message.checksum);
882
+ }
883
+ if (message.metadata !== undefined) {
884
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(90).fork()).join();
885
+ }
886
+ if (message.createdAt !== undefined) {
887
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(98).fork()).join();
888
+ }
889
+ return writer;
890
+ },
891
+ decode(input, length) {
892
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
893
+ const end = length === undefined ? reader.len : reader.pos + length;
894
+ const message = createBaseTestRunArtifact();
895
+ while (reader.pos < end) {
896
+ const tag = reader.uint32();
897
+ switch (tag >>> 3) {
898
+ case 1: {
899
+ if (tag !== 10) {
900
+ break;
901
+ }
902
+ message.testRunArtifactId = reader.string();
903
+ continue;
904
+ }
905
+ case 2: {
906
+ if (tag !== 18) {
907
+ break;
908
+ }
909
+ message.testRunId = reader.string();
910
+ continue;
911
+ }
912
+ case 3: {
913
+ if (tag !== 26) {
914
+ break;
915
+ }
916
+ message.testRunCaseResultId = reader.string();
917
+ continue;
918
+ }
919
+ case 4: {
920
+ if (tag !== 32) {
921
+ break;
922
+ }
923
+ message.artifactType = reader.int32();
924
+ continue;
925
+ }
926
+ case 5: {
927
+ if (tag !== 42) {
928
+ break;
929
+ }
930
+ message.name = reader.string();
931
+ continue;
932
+ }
933
+ case 6: {
934
+ if (tag !== 50) {
935
+ break;
936
+ }
937
+ message.storageConnectionId = reader.string();
938
+ continue;
939
+ }
940
+ case 7: {
941
+ if (tag !== 58) {
942
+ break;
943
+ }
944
+ message.uri = reader.string();
945
+ continue;
946
+ }
947
+ case 8: {
948
+ if (tag !== 66) {
949
+ break;
950
+ }
951
+ message.contentType = reader.string();
952
+ continue;
953
+ }
954
+ case 9: {
955
+ if (tag !== 72) {
956
+ break;
957
+ }
958
+ message.sizeBytes = longToNumber(reader.int64());
959
+ continue;
960
+ }
961
+ case 10: {
962
+ if (tag !== 82) {
963
+ break;
964
+ }
965
+ message.checksum = reader.string();
966
+ continue;
967
+ }
968
+ case 11: {
969
+ if (tag !== 90) {
970
+ break;
971
+ }
972
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
973
+ continue;
974
+ }
975
+ case 12: {
976
+ if (tag !== 98) {
977
+ break;
978
+ }
979
+ message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
980
+ continue;
981
+ }
982
+ }
983
+ if ((tag & 7) === 4 || tag === 0) {
984
+ break;
985
+ }
986
+ reader.skip(tag & 7);
987
+ }
988
+ return message;
989
+ },
990
+ fromJSON(object) {
991
+ return {
992
+ testRunArtifactId: isSet(object.testRunArtifactId)
993
+ ? globalThis.String(object.testRunArtifactId)
994
+ : isSet(object.test_run_artifact_id)
995
+ ? globalThis.String(object.test_run_artifact_id)
996
+ : "",
997
+ testRunId: isSet(object.testRunId)
998
+ ? globalThis.String(object.testRunId)
999
+ : isSet(object.test_run_id)
1000
+ ? globalThis.String(object.test_run_id)
1001
+ : "",
1002
+ testRunCaseResultId: isSet(object.testRunCaseResultId)
1003
+ ? globalThis.String(object.testRunCaseResultId)
1004
+ : isSet(object.test_run_case_result_id)
1005
+ ? globalThis.String(object.test_run_case_result_id)
1006
+ : "",
1007
+ artifactType: isSet(object.artifactType)
1008
+ ? artifactTypeFromJSON(object.artifactType)
1009
+ : isSet(object.artifact_type)
1010
+ ? artifactTypeFromJSON(object.artifact_type)
1011
+ : 0,
1012
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
1013
+ storageConnectionId: isSet(object.storageConnectionId)
1014
+ ? globalThis.String(object.storageConnectionId)
1015
+ : isSet(object.storage_connection_id)
1016
+ ? globalThis.String(object.storage_connection_id)
1017
+ : "",
1018
+ uri: isSet(object.uri) ? globalThis.String(object.uri) : "",
1019
+ contentType: isSet(object.contentType)
1020
+ ? globalThis.String(object.contentType)
1021
+ : isSet(object.content_type)
1022
+ ? globalThis.String(object.content_type)
1023
+ : "",
1024
+ sizeBytes: isSet(object.sizeBytes)
1025
+ ? globalThis.Number(object.sizeBytes)
1026
+ : isSet(object.size_bytes)
1027
+ ? globalThis.Number(object.size_bytes)
1028
+ : 0,
1029
+ checksum: isSet(object.checksum) ? globalThis.String(object.checksum) : "",
1030
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
1031
+ createdAt: isSet(object.createdAt)
1032
+ ? fromJsonTimestamp(object.createdAt)
1033
+ : isSet(object.created_at)
1034
+ ? fromJsonTimestamp(object.created_at)
1035
+ : undefined,
1036
+ };
1037
+ },
1038
+ toJSON(message) {
1039
+ const obj = {};
1040
+ if (message.testRunArtifactId !== "") {
1041
+ obj.testRunArtifactId = message.testRunArtifactId;
1042
+ }
1043
+ if (message.testRunId !== "") {
1044
+ obj.testRunId = message.testRunId;
1045
+ }
1046
+ if (message.testRunCaseResultId !== "") {
1047
+ obj.testRunCaseResultId = message.testRunCaseResultId;
1048
+ }
1049
+ if (message.artifactType !== 0) {
1050
+ obj.artifactType = artifactTypeToJSON(message.artifactType);
1051
+ }
1052
+ if (message.name !== "") {
1053
+ obj.name = message.name;
1054
+ }
1055
+ if (message.storageConnectionId !== "") {
1056
+ obj.storageConnectionId = message.storageConnectionId;
1057
+ }
1058
+ if (message.uri !== "") {
1059
+ obj.uri = message.uri;
1060
+ }
1061
+ if (message.contentType !== "") {
1062
+ obj.contentType = message.contentType;
1063
+ }
1064
+ if (message.sizeBytes !== 0) {
1065
+ obj.sizeBytes = Math.round(message.sizeBytes);
1066
+ }
1067
+ if (message.checksum !== "") {
1068
+ obj.checksum = message.checksum;
1069
+ }
1070
+ if (message.metadata !== undefined) {
1071
+ obj.metadata = message.metadata;
1072
+ }
1073
+ if (message.createdAt !== undefined) {
1074
+ obj.createdAt = message.createdAt.toISOString();
1075
+ }
1076
+ return obj;
1077
+ },
1078
+ create(base) {
1079
+ return exports.TestRunArtifact.fromPartial(base !== null && base !== void 0 ? base : {});
1080
+ },
1081
+ fromPartial(object) {
1082
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1083
+ const message = createBaseTestRunArtifact();
1084
+ message.testRunArtifactId = (_a = object.testRunArtifactId) !== null && _a !== void 0 ? _a : "";
1085
+ message.testRunId = (_b = object.testRunId) !== null && _b !== void 0 ? _b : "";
1086
+ message.testRunCaseResultId = (_c = object.testRunCaseResultId) !== null && _c !== void 0 ? _c : "";
1087
+ message.artifactType = (_d = object.artifactType) !== null && _d !== void 0 ? _d : 0;
1088
+ message.name = (_e = object.name) !== null && _e !== void 0 ? _e : "";
1089
+ message.storageConnectionId = (_f = object.storageConnectionId) !== null && _f !== void 0 ? _f : "";
1090
+ message.uri = (_g = object.uri) !== null && _g !== void 0 ? _g : "";
1091
+ message.contentType = (_h = object.contentType) !== null && _h !== void 0 ? _h : "";
1092
+ message.sizeBytes = (_j = object.sizeBytes) !== null && _j !== void 0 ? _j : 0;
1093
+ message.checksum = (_k = object.checksum) !== null && _k !== void 0 ? _k : "";
1094
+ message.metadata = (_l = object.metadata) !== null && _l !== void 0 ? _l : undefined;
1095
+ message.createdAt = (_m = object.createdAt) !== null && _m !== void 0 ? _m : undefined;
1096
+ return message;
1097
+ },
1098
+ };
1099
+ function toTimestamp(date) {
1100
+ const seconds = Math.trunc(date.getTime() / 1000);
1101
+ const nanos = (date.getTime() % 1000) * 1000000;
1102
+ return { seconds, nanos };
1103
+ }
1104
+ function fromTimestamp(t) {
1105
+ let millis = (t.seconds || 0) * 1000;
1106
+ millis += (t.nanos || 0) / 1000000;
1107
+ return new globalThis.Date(millis);
1108
+ }
1109
+ function fromJsonTimestamp(o) {
1110
+ if (o instanceof globalThis.Date) {
1111
+ return o;
1112
+ }
1113
+ else if (typeof o === "string") {
1114
+ return new globalThis.Date(o);
1115
+ }
1116
+ else {
1117
+ return fromTimestamp(timestamp_pb_1.Timestamp.fromJSON(o));
1118
+ }
1119
+ }
1120
+ function longToNumber(int64) {
1121
+ const num = globalThis.Number(int64.toString());
1122
+ if (num > globalThis.Number.MAX_SAFE_INTEGER) {
1123
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
1124
+ }
1125
+ if (num < globalThis.Number.MIN_SAFE_INTEGER) {
1126
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
1127
+ }
1128
+ return num;
1129
+ }
1130
+ function isObject(value) {
1131
+ return typeof value === "object" && value !== null;
1132
+ }
1133
+ function isSet(value) {
1134
+ return value !== null && value !== undefined;
1135
+ }