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,678 +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/report/v1/report.proto
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.WorkflowEvent = exports.TestReport = exports.WorkflowEventType = exports.ReportStatus = exports.protobufPackage = void 0;
9
- exports.reportStatusFromJSON = reportStatusFromJSON;
10
- exports.reportStatusToJSON = reportStatusToJSON;
11
- exports.workflowEventTypeFromJSON = workflowEventTypeFromJSON;
12
- exports.workflowEventTypeToJSON = workflowEventTypeToJSON;
13
- /* eslint-disable */
14
- const wire_1 = require("@bufbuild/protobuf/wire");
15
- const struct_pb_1 = require("../../../google/protobuf/struct.pb");
16
- const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
17
- exports.protobufPackage = "weaveapi.report.v1";
18
- var ReportStatus;
19
- (function (ReportStatus) {
20
- ReportStatus[ReportStatus["REPORT_STATUS_UNSPECIFIED"] = 0] = "REPORT_STATUS_UNSPECIFIED";
21
- ReportStatus[ReportStatus["REPORT_STATUS_DRAFT"] = 1] = "REPORT_STATUS_DRAFT";
22
- ReportStatus[ReportStatus["REPORT_STATUS_READY"] = 2] = "REPORT_STATUS_READY";
23
- ReportStatus[ReportStatus["REPORT_STATUS_ARCHIVED"] = 3] = "REPORT_STATUS_ARCHIVED";
24
- ReportStatus[ReportStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
25
- })(ReportStatus || (exports.ReportStatus = ReportStatus = {}));
26
- function reportStatusFromJSON(object) {
27
- switch (object) {
28
- case 0:
29
- case "REPORT_STATUS_UNSPECIFIED":
30
- return ReportStatus.REPORT_STATUS_UNSPECIFIED;
31
- case 1:
32
- case "REPORT_STATUS_DRAFT":
33
- return ReportStatus.REPORT_STATUS_DRAFT;
34
- case 2:
35
- case "REPORT_STATUS_READY":
36
- return ReportStatus.REPORT_STATUS_READY;
37
- case 3:
38
- case "REPORT_STATUS_ARCHIVED":
39
- return ReportStatus.REPORT_STATUS_ARCHIVED;
40
- case -1:
41
- case "UNRECOGNIZED":
42
- default:
43
- return ReportStatus.UNRECOGNIZED;
44
- }
45
- }
46
- function reportStatusToJSON(object) {
47
- switch (object) {
48
- case ReportStatus.REPORT_STATUS_UNSPECIFIED:
49
- return "REPORT_STATUS_UNSPECIFIED";
50
- case ReportStatus.REPORT_STATUS_DRAFT:
51
- return "REPORT_STATUS_DRAFT";
52
- case ReportStatus.REPORT_STATUS_READY:
53
- return "REPORT_STATUS_READY";
54
- case ReportStatus.REPORT_STATUS_ARCHIVED:
55
- return "REPORT_STATUS_ARCHIVED";
56
- case ReportStatus.UNRECOGNIZED:
57
- default:
58
- return "UNRECOGNIZED";
59
- }
60
- }
61
- var WorkflowEventType;
62
- (function (WorkflowEventType) {
63
- WorkflowEventType[WorkflowEventType["WORKFLOW_EVENT_TYPE_UNSPECIFIED"] = 0] = "WORKFLOW_EVENT_TYPE_UNSPECIFIED";
64
- WorkflowEventType[WorkflowEventType["WORKFLOW_EVENT_TYPE_STAGE_CHANGED"] = 1] = "WORKFLOW_EVENT_TYPE_STAGE_CHANGED";
65
- WorkflowEventType[WorkflowEventType["WORKFLOW_EVENT_TYPE_INPUT_INGESTED"] = 2] = "WORKFLOW_EVENT_TYPE_INPUT_INGESTED";
66
- WorkflowEventType[WorkflowEventType["WORKFLOW_EVENT_TYPE_REQUIREMENTS_GENERATED"] = 3] = "WORKFLOW_EVENT_TYPE_REQUIREMENTS_GENERATED";
67
- WorkflowEventType[WorkflowEventType["WORKFLOW_EVENT_TYPE_TEST_CASES_GENERATED"] = 4] = "WORKFLOW_EVENT_TYPE_TEST_CASES_GENERATED";
68
- WorkflowEventType[WorkflowEventType["WORKFLOW_EVENT_TYPE_SCRIPTS_GENERATED"] = 5] = "WORKFLOW_EVENT_TYPE_SCRIPTS_GENERATED";
69
- WorkflowEventType[WorkflowEventType["WORKFLOW_EVENT_TYPE_SUITE_UPDATED"] = 6] = "WORKFLOW_EVENT_TYPE_SUITE_UPDATED";
70
- WorkflowEventType[WorkflowEventType["WORKFLOW_EVENT_TYPE_RUN_STARTED"] = 7] = "WORKFLOW_EVENT_TYPE_RUN_STARTED";
71
- WorkflowEventType[WorkflowEventType["WORKFLOW_EVENT_TYPE_RUN_FINISHED"] = 8] = "WORKFLOW_EVENT_TYPE_RUN_FINISHED";
72
- WorkflowEventType[WorkflowEventType["WORKFLOW_EVENT_TYPE_REPORT_GENERATED"] = 9] = "WORKFLOW_EVENT_TYPE_REPORT_GENERATED";
73
- WorkflowEventType[WorkflowEventType["WORKFLOW_EVENT_TYPE_APPROVAL_RECORDED"] = 10] = "WORKFLOW_EVENT_TYPE_APPROVAL_RECORDED";
74
- WorkflowEventType[WorkflowEventType["WORKFLOW_EVENT_TYPE_NOTE_ADDED"] = 11] = "WORKFLOW_EVENT_TYPE_NOTE_ADDED";
75
- WorkflowEventType[WorkflowEventType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
76
- })(WorkflowEventType || (exports.WorkflowEventType = WorkflowEventType = {}));
77
- function workflowEventTypeFromJSON(object) {
78
- switch (object) {
79
- case 0:
80
- case "WORKFLOW_EVENT_TYPE_UNSPECIFIED":
81
- return WorkflowEventType.WORKFLOW_EVENT_TYPE_UNSPECIFIED;
82
- case 1:
83
- case "WORKFLOW_EVENT_TYPE_STAGE_CHANGED":
84
- return WorkflowEventType.WORKFLOW_EVENT_TYPE_STAGE_CHANGED;
85
- case 2:
86
- case "WORKFLOW_EVENT_TYPE_INPUT_INGESTED":
87
- return WorkflowEventType.WORKFLOW_EVENT_TYPE_INPUT_INGESTED;
88
- case 3:
89
- case "WORKFLOW_EVENT_TYPE_REQUIREMENTS_GENERATED":
90
- return WorkflowEventType.WORKFLOW_EVENT_TYPE_REQUIREMENTS_GENERATED;
91
- case 4:
92
- case "WORKFLOW_EVENT_TYPE_TEST_CASES_GENERATED":
93
- return WorkflowEventType.WORKFLOW_EVENT_TYPE_TEST_CASES_GENERATED;
94
- case 5:
95
- case "WORKFLOW_EVENT_TYPE_SCRIPTS_GENERATED":
96
- return WorkflowEventType.WORKFLOW_EVENT_TYPE_SCRIPTS_GENERATED;
97
- case 6:
98
- case "WORKFLOW_EVENT_TYPE_SUITE_UPDATED":
99
- return WorkflowEventType.WORKFLOW_EVENT_TYPE_SUITE_UPDATED;
100
- case 7:
101
- case "WORKFLOW_EVENT_TYPE_RUN_STARTED":
102
- return WorkflowEventType.WORKFLOW_EVENT_TYPE_RUN_STARTED;
103
- case 8:
104
- case "WORKFLOW_EVENT_TYPE_RUN_FINISHED":
105
- return WorkflowEventType.WORKFLOW_EVENT_TYPE_RUN_FINISHED;
106
- case 9:
107
- case "WORKFLOW_EVENT_TYPE_REPORT_GENERATED":
108
- return WorkflowEventType.WORKFLOW_EVENT_TYPE_REPORT_GENERATED;
109
- case 10:
110
- case "WORKFLOW_EVENT_TYPE_APPROVAL_RECORDED":
111
- return WorkflowEventType.WORKFLOW_EVENT_TYPE_APPROVAL_RECORDED;
112
- case 11:
113
- case "WORKFLOW_EVENT_TYPE_NOTE_ADDED":
114
- return WorkflowEventType.WORKFLOW_EVENT_TYPE_NOTE_ADDED;
115
- case -1:
116
- case "UNRECOGNIZED":
117
- default:
118
- return WorkflowEventType.UNRECOGNIZED;
119
- }
120
- }
121
- function workflowEventTypeToJSON(object) {
122
- switch (object) {
123
- case WorkflowEventType.WORKFLOW_EVENT_TYPE_UNSPECIFIED:
124
- return "WORKFLOW_EVENT_TYPE_UNSPECIFIED";
125
- case WorkflowEventType.WORKFLOW_EVENT_TYPE_STAGE_CHANGED:
126
- return "WORKFLOW_EVENT_TYPE_STAGE_CHANGED";
127
- case WorkflowEventType.WORKFLOW_EVENT_TYPE_INPUT_INGESTED:
128
- return "WORKFLOW_EVENT_TYPE_INPUT_INGESTED";
129
- case WorkflowEventType.WORKFLOW_EVENT_TYPE_REQUIREMENTS_GENERATED:
130
- return "WORKFLOW_EVENT_TYPE_REQUIREMENTS_GENERATED";
131
- case WorkflowEventType.WORKFLOW_EVENT_TYPE_TEST_CASES_GENERATED:
132
- return "WORKFLOW_EVENT_TYPE_TEST_CASES_GENERATED";
133
- case WorkflowEventType.WORKFLOW_EVENT_TYPE_SCRIPTS_GENERATED:
134
- return "WORKFLOW_EVENT_TYPE_SCRIPTS_GENERATED";
135
- case WorkflowEventType.WORKFLOW_EVENT_TYPE_SUITE_UPDATED:
136
- return "WORKFLOW_EVENT_TYPE_SUITE_UPDATED";
137
- case WorkflowEventType.WORKFLOW_EVENT_TYPE_RUN_STARTED:
138
- return "WORKFLOW_EVENT_TYPE_RUN_STARTED";
139
- case WorkflowEventType.WORKFLOW_EVENT_TYPE_RUN_FINISHED:
140
- return "WORKFLOW_EVENT_TYPE_RUN_FINISHED";
141
- case WorkflowEventType.WORKFLOW_EVENT_TYPE_REPORT_GENERATED:
142
- return "WORKFLOW_EVENT_TYPE_REPORT_GENERATED";
143
- case WorkflowEventType.WORKFLOW_EVENT_TYPE_APPROVAL_RECORDED:
144
- return "WORKFLOW_EVENT_TYPE_APPROVAL_RECORDED";
145
- case WorkflowEventType.WORKFLOW_EVENT_TYPE_NOTE_ADDED:
146
- return "WORKFLOW_EVENT_TYPE_NOTE_ADDED";
147
- case WorkflowEventType.UNRECOGNIZED:
148
- default:
149
- return "UNRECOGNIZED";
150
- }
151
- }
152
- function createBaseTestReport() {
153
- return {
154
- testReportId: "",
155
- workflowId: "",
156
- testRunId: "",
157
- status: 0,
158
- storageConnectionId: "",
159
- allureUri: "",
160
- summary: undefined,
161
- metadata: undefined,
162
- generatedAt: undefined,
163
- createdAt: undefined,
164
- updatedAt: undefined,
165
- archivedAt: undefined,
166
- projectId: "",
167
- };
168
- }
169
- exports.TestReport = {
170
- encode(message, writer = new wire_1.BinaryWriter()) {
171
- if (message.testReportId !== "") {
172
- writer.uint32(10).string(message.testReportId);
173
- }
174
- if (message.workflowId !== "") {
175
- writer.uint32(18).string(message.workflowId);
176
- }
177
- if (message.testRunId !== "") {
178
- writer.uint32(26).string(message.testRunId);
179
- }
180
- if (message.status !== 0) {
181
- writer.uint32(32).int32(message.status);
182
- }
183
- if (message.storageConnectionId !== "") {
184
- writer.uint32(42).string(message.storageConnectionId);
185
- }
186
- if (message.allureUri !== "") {
187
- writer.uint32(50).string(message.allureUri);
188
- }
189
- if (message.summary !== undefined) {
190
- struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.summary), writer.uint32(58).fork()).join();
191
- }
192
- if (message.metadata !== undefined) {
193
- struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(66).fork()).join();
194
- }
195
- if (message.generatedAt !== undefined) {
196
- timestamp_pb_1.Timestamp.encode(toTimestamp(message.generatedAt), writer.uint32(74).fork()).join();
197
- }
198
- if (message.createdAt !== undefined) {
199
- timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(82).fork()).join();
200
- }
201
- if (message.updatedAt !== undefined) {
202
- timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(90).fork()).join();
203
- }
204
- if (message.archivedAt !== undefined) {
205
- timestamp_pb_1.Timestamp.encode(toTimestamp(message.archivedAt), writer.uint32(98).fork()).join();
206
- }
207
- if (message.projectId !== "") {
208
- writer.uint32(106).string(message.projectId);
209
- }
210
- return writer;
211
- },
212
- decode(input, length) {
213
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
214
- const end = length === undefined ? reader.len : reader.pos + length;
215
- const message = createBaseTestReport();
216
- while (reader.pos < end) {
217
- const tag = reader.uint32();
218
- switch (tag >>> 3) {
219
- case 1: {
220
- if (tag !== 10) {
221
- break;
222
- }
223
- message.testReportId = reader.string();
224
- continue;
225
- }
226
- case 2: {
227
- if (tag !== 18) {
228
- break;
229
- }
230
- message.workflowId = reader.string();
231
- continue;
232
- }
233
- case 3: {
234
- if (tag !== 26) {
235
- break;
236
- }
237
- message.testRunId = reader.string();
238
- continue;
239
- }
240
- case 4: {
241
- if (tag !== 32) {
242
- break;
243
- }
244
- message.status = reader.int32();
245
- continue;
246
- }
247
- case 5: {
248
- if (tag !== 42) {
249
- break;
250
- }
251
- message.storageConnectionId = reader.string();
252
- continue;
253
- }
254
- case 6: {
255
- if (tag !== 50) {
256
- break;
257
- }
258
- message.allureUri = reader.string();
259
- continue;
260
- }
261
- case 7: {
262
- if (tag !== 58) {
263
- break;
264
- }
265
- message.summary = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
266
- continue;
267
- }
268
- case 8: {
269
- if (tag !== 66) {
270
- break;
271
- }
272
- message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
273
- continue;
274
- }
275
- case 9: {
276
- if (tag !== 74) {
277
- break;
278
- }
279
- message.generatedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
280
- continue;
281
- }
282
- case 10: {
283
- if (tag !== 82) {
284
- break;
285
- }
286
- message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
287
- continue;
288
- }
289
- case 11: {
290
- if (tag !== 90) {
291
- break;
292
- }
293
- message.updatedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
294
- continue;
295
- }
296
- case 12: {
297
- if (tag !== 98) {
298
- break;
299
- }
300
- message.archivedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
301
- continue;
302
- }
303
- case 13: {
304
- if (tag !== 106) {
305
- break;
306
- }
307
- message.projectId = reader.string();
308
- continue;
309
- }
310
- }
311
- if ((tag & 7) === 4 || tag === 0) {
312
- break;
313
- }
314
- reader.skip(tag & 7);
315
- }
316
- return message;
317
- },
318
- fromJSON(object) {
319
- return {
320
- testReportId: isSet(object.testReportId)
321
- ? globalThis.String(object.testReportId)
322
- : isSet(object.test_report_id)
323
- ? globalThis.String(object.test_report_id)
324
- : "",
325
- workflowId: isSet(object.workflowId)
326
- ? globalThis.String(object.workflowId)
327
- : isSet(object.workflow_id)
328
- ? globalThis.String(object.workflow_id)
329
- : "",
330
- testRunId: isSet(object.testRunId)
331
- ? globalThis.String(object.testRunId)
332
- : isSet(object.test_run_id)
333
- ? globalThis.String(object.test_run_id)
334
- : "",
335
- status: isSet(object.status) ? reportStatusFromJSON(object.status) : 0,
336
- storageConnectionId: isSet(object.storageConnectionId)
337
- ? globalThis.String(object.storageConnectionId)
338
- : isSet(object.storage_connection_id)
339
- ? globalThis.String(object.storage_connection_id)
340
- : "",
341
- allureUri: isSet(object.allureUri)
342
- ? globalThis.String(object.allureUri)
343
- : isSet(object.allure_uri)
344
- ? globalThis.String(object.allure_uri)
345
- : "",
346
- summary: isObject(object.summary) ? object.summary : undefined,
347
- metadata: isObject(object.metadata) ? object.metadata : undefined,
348
- generatedAt: isSet(object.generatedAt)
349
- ? fromJsonTimestamp(object.generatedAt)
350
- : isSet(object.generated_at)
351
- ? fromJsonTimestamp(object.generated_at)
352
- : undefined,
353
- createdAt: isSet(object.createdAt)
354
- ? fromJsonTimestamp(object.createdAt)
355
- : isSet(object.created_at)
356
- ? fromJsonTimestamp(object.created_at)
357
- : undefined,
358
- updatedAt: isSet(object.updatedAt)
359
- ? fromJsonTimestamp(object.updatedAt)
360
- : isSet(object.updated_at)
361
- ? fromJsonTimestamp(object.updated_at)
362
- : undefined,
363
- archivedAt: isSet(object.archivedAt)
364
- ? fromJsonTimestamp(object.archivedAt)
365
- : isSet(object.archived_at)
366
- ? fromJsonTimestamp(object.archived_at)
367
- : undefined,
368
- projectId: isSet(object.projectId)
369
- ? globalThis.String(object.projectId)
370
- : isSet(object.project_id)
371
- ? globalThis.String(object.project_id)
372
- : "",
373
- };
374
- },
375
- toJSON(message) {
376
- const obj = {};
377
- if (message.testReportId !== "") {
378
- obj.testReportId = message.testReportId;
379
- }
380
- if (message.workflowId !== "") {
381
- obj.workflowId = message.workflowId;
382
- }
383
- if (message.testRunId !== "") {
384
- obj.testRunId = message.testRunId;
385
- }
386
- if (message.status !== 0) {
387
- obj.status = reportStatusToJSON(message.status);
388
- }
389
- if (message.storageConnectionId !== "") {
390
- obj.storageConnectionId = message.storageConnectionId;
391
- }
392
- if (message.allureUri !== "") {
393
- obj.allureUri = message.allureUri;
394
- }
395
- if (message.summary !== undefined) {
396
- obj.summary = message.summary;
397
- }
398
- if (message.metadata !== undefined) {
399
- obj.metadata = message.metadata;
400
- }
401
- if (message.generatedAt !== undefined) {
402
- obj.generatedAt = message.generatedAt.toISOString();
403
- }
404
- if (message.createdAt !== undefined) {
405
- obj.createdAt = message.createdAt.toISOString();
406
- }
407
- if (message.updatedAt !== undefined) {
408
- obj.updatedAt = message.updatedAt.toISOString();
409
- }
410
- if (message.archivedAt !== undefined) {
411
- obj.archivedAt = message.archivedAt.toISOString();
412
- }
413
- if (message.projectId !== "") {
414
- obj.projectId = message.projectId;
415
- }
416
- return obj;
417
- },
418
- create(base) {
419
- return exports.TestReport.fromPartial(base !== null && base !== void 0 ? base : {});
420
- },
421
- fromPartial(object) {
422
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
423
- const message = createBaseTestReport();
424
- message.testReportId = (_a = object.testReportId) !== null && _a !== void 0 ? _a : "";
425
- message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
426
- message.testRunId = (_c = object.testRunId) !== null && _c !== void 0 ? _c : "";
427
- message.status = (_d = object.status) !== null && _d !== void 0 ? _d : 0;
428
- message.storageConnectionId = (_e = object.storageConnectionId) !== null && _e !== void 0 ? _e : "";
429
- message.allureUri = (_f = object.allureUri) !== null && _f !== void 0 ? _f : "";
430
- message.summary = (_g = object.summary) !== null && _g !== void 0 ? _g : undefined;
431
- message.metadata = (_h = object.metadata) !== null && _h !== void 0 ? _h : undefined;
432
- message.generatedAt = (_j = object.generatedAt) !== null && _j !== void 0 ? _j : undefined;
433
- message.createdAt = (_k = object.createdAt) !== null && _k !== void 0 ? _k : undefined;
434
- message.updatedAt = (_l = object.updatedAt) !== null && _l !== void 0 ? _l : undefined;
435
- message.archivedAt = (_m = object.archivedAt) !== null && _m !== void 0 ? _m : undefined;
436
- message.projectId = (_o = object.projectId) !== null && _o !== void 0 ? _o : "";
437
- return message;
438
- },
439
- };
440
- function createBaseWorkflowEvent() {
441
- return {
442
- workflowEventId: "",
443
- workflowId: "",
444
- eventType: 0,
445
- actor: "",
446
- entityType: "",
447
- entityId: "",
448
- payload: undefined,
449
- createdAt: undefined,
450
- projectId: "",
451
- };
452
- }
453
- exports.WorkflowEvent = {
454
- encode(message, writer = new wire_1.BinaryWriter()) {
455
- if (message.workflowEventId !== "") {
456
- writer.uint32(10).string(message.workflowEventId);
457
- }
458
- if (message.workflowId !== "") {
459
- writer.uint32(18).string(message.workflowId);
460
- }
461
- if (message.eventType !== 0) {
462
- writer.uint32(24).int32(message.eventType);
463
- }
464
- if (message.actor !== "") {
465
- writer.uint32(34).string(message.actor);
466
- }
467
- if (message.entityType !== "") {
468
- writer.uint32(42).string(message.entityType);
469
- }
470
- if (message.entityId !== "") {
471
- writer.uint32(50).string(message.entityId);
472
- }
473
- if (message.payload !== undefined) {
474
- struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.payload), writer.uint32(58).fork()).join();
475
- }
476
- if (message.createdAt !== undefined) {
477
- timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(66).fork()).join();
478
- }
479
- if (message.projectId !== "") {
480
- writer.uint32(74).string(message.projectId);
481
- }
482
- return writer;
483
- },
484
- decode(input, length) {
485
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
486
- const end = length === undefined ? reader.len : reader.pos + length;
487
- const message = createBaseWorkflowEvent();
488
- while (reader.pos < end) {
489
- const tag = reader.uint32();
490
- switch (tag >>> 3) {
491
- case 1: {
492
- if (tag !== 10) {
493
- break;
494
- }
495
- message.workflowEventId = reader.string();
496
- continue;
497
- }
498
- case 2: {
499
- if (tag !== 18) {
500
- break;
501
- }
502
- message.workflowId = reader.string();
503
- continue;
504
- }
505
- case 3: {
506
- if (tag !== 24) {
507
- break;
508
- }
509
- message.eventType = reader.int32();
510
- continue;
511
- }
512
- case 4: {
513
- if (tag !== 34) {
514
- break;
515
- }
516
- message.actor = reader.string();
517
- continue;
518
- }
519
- case 5: {
520
- if (tag !== 42) {
521
- break;
522
- }
523
- message.entityType = reader.string();
524
- continue;
525
- }
526
- case 6: {
527
- if (tag !== 50) {
528
- break;
529
- }
530
- message.entityId = reader.string();
531
- continue;
532
- }
533
- case 7: {
534
- if (tag !== 58) {
535
- break;
536
- }
537
- message.payload = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
538
- continue;
539
- }
540
- case 8: {
541
- if (tag !== 66) {
542
- break;
543
- }
544
- message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
545
- continue;
546
- }
547
- case 9: {
548
- if (tag !== 74) {
549
- break;
550
- }
551
- message.projectId = reader.string();
552
- continue;
553
- }
554
- }
555
- if ((tag & 7) === 4 || tag === 0) {
556
- break;
557
- }
558
- reader.skip(tag & 7);
559
- }
560
- return message;
561
- },
562
- fromJSON(object) {
563
- return {
564
- workflowEventId: isSet(object.workflowEventId)
565
- ? globalThis.String(object.workflowEventId)
566
- : isSet(object.workflow_event_id)
567
- ? globalThis.String(object.workflow_event_id)
568
- : "",
569
- workflowId: isSet(object.workflowId)
570
- ? globalThis.String(object.workflowId)
571
- : isSet(object.workflow_id)
572
- ? globalThis.String(object.workflow_id)
573
- : "",
574
- eventType: isSet(object.eventType)
575
- ? workflowEventTypeFromJSON(object.eventType)
576
- : isSet(object.event_type)
577
- ? workflowEventTypeFromJSON(object.event_type)
578
- : 0,
579
- actor: isSet(object.actor) ? globalThis.String(object.actor) : "",
580
- entityType: isSet(object.entityType)
581
- ? globalThis.String(object.entityType)
582
- : isSet(object.entity_type)
583
- ? globalThis.String(object.entity_type)
584
- : "",
585
- entityId: isSet(object.entityId)
586
- ? globalThis.String(object.entityId)
587
- : isSet(object.entity_id)
588
- ? globalThis.String(object.entity_id)
589
- : "",
590
- payload: isObject(object.payload) ? object.payload : undefined,
591
- createdAt: isSet(object.createdAt)
592
- ? fromJsonTimestamp(object.createdAt)
593
- : isSet(object.created_at)
594
- ? fromJsonTimestamp(object.created_at)
595
- : undefined,
596
- projectId: isSet(object.projectId)
597
- ? globalThis.String(object.projectId)
598
- : isSet(object.project_id)
599
- ? globalThis.String(object.project_id)
600
- : "",
601
- };
602
- },
603
- toJSON(message) {
604
- const obj = {};
605
- if (message.workflowEventId !== "") {
606
- obj.workflowEventId = message.workflowEventId;
607
- }
608
- if (message.workflowId !== "") {
609
- obj.workflowId = message.workflowId;
610
- }
611
- if (message.eventType !== 0) {
612
- obj.eventType = workflowEventTypeToJSON(message.eventType);
613
- }
614
- if (message.actor !== "") {
615
- obj.actor = message.actor;
616
- }
617
- if (message.entityType !== "") {
618
- obj.entityType = message.entityType;
619
- }
620
- if (message.entityId !== "") {
621
- obj.entityId = message.entityId;
622
- }
623
- if (message.payload !== undefined) {
624
- obj.payload = message.payload;
625
- }
626
- if (message.createdAt !== undefined) {
627
- obj.createdAt = message.createdAt.toISOString();
628
- }
629
- if (message.projectId !== "") {
630
- obj.projectId = message.projectId;
631
- }
632
- return obj;
633
- },
634
- create(base) {
635
- return exports.WorkflowEvent.fromPartial(base !== null && base !== void 0 ? base : {});
636
- },
637
- fromPartial(object) {
638
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
639
- const message = createBaseWorkflowEvent();
640
- message.workflowEventId = (_a = object.workflowEventId) !== null && _a !== void 0 ? _a : "";
641
- message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
642
- message.eventType = (_c = object.eventType) !== null && _c !== void 0 ? _c : 0;
643
- message.actor = (_d = object.actor) !== null && _d !== void 0 ? _d : "";
644
- message.entityType = (_e = object.entityType) !== null && _e !== void 0 ? _e : "";
645
- message.entityId = (_f = object.entityId) !== null && _f !== void 0 ? _f : "";
646
- message.payload = (_g = object.payload) !== null && _g !== void 0 ? _g : undefined;
647
- message.createdAt = (_h = object.createdAt) !== null && _h !== void 0 ? _h : undefined;
648
- message.projectId = (_j = object.projectId) !== null && _j !== void 0 ? _j : "";
649
- return message;
650
- },
651
- };
652
- function toTimestamp(date) {
653
- const seconds = Math.trunc(date.getTime() / 1000);
654
- const nanos = (date.getTime() % 1000) * 1000000;
655
- return { seconds, nanos };
656
- }
657
- function fromTimestamp(t) {
658
- let millis = (t.seconds || 0) * 1000;
659
- millis += (t.nanos || 0) / 1000000;
660
- return new globalThis.Date(millis);
661
- }
662
- function fromJsonTimestamp(o) {
663
- if (o instanceof globalThis.Date) {
664
- return o;
665
- }
666
- else if (typeof o === "string") {
667
- return new globalThis.Date(o);
668
- }
669
- else {
670
- return fromTimestamp(timestamp_pb_1.Timestamp.fromJSON(o));
671
- }
672
- }
673
- function isObject(value) {
674
- return typeof value === "object" && value !== null;
675
- }
676
- function isSet(value) {
677
- return value !== null && value !== undefined;
678
- }