weave-typescript 0.12.0 → 0.14.0

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