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,1923 +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/service.proto
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.ReportServiceDefinition = exports.ReportServiceClientImpl = exports.ReportServiceServiceName = exports.ListWorkflowEventsResponse = exports.ListWorkflowEventsRequest = exports.DeleteReportResponse = exports.DeleteReportRequest = exports.ArchiveReportResponse = exports.ArchiveReportRequest = exports.ListReportsResponse = exports.ListReportsRequest = exports.GetReportResponse = exports.GetReportRequest = exports.BuildReportSummaryResponse = exports.BuildReportSummaryRequest = exports.protobufPackage = void 0;
9
- /* eslint-disable */
10
- const wire_1 = require("@bufbuild/protobuf/wire");
11
- const struct_pb_1 = require("../../../google/protobuf/struct.pb");
12
- const report_pb_1 = require("./report.pb");
13
- exports.protobufPackage = "weaveapi.report.v1";
14
- function createBaseBuildReportSummaryRequest() {
15
- return { projectId: "", testRunId: "", storageConnectionId: "", options: undefined, workflowId: "" };
16
- }
17
- exports.BuildReportSummaryRequest = {
18
- encode(message, writer = new wire_1.BinaryWriter()) {
19
- if (message.projectId !== "") {
20
- writer.uint32(10).string(message.projectId);
21
- }
22
- if (message.testRunId !== "") {
23
- writer.uint32(18).string(message.testRunId);
24
- }
25
- if (message.storageConnectionId !== "") {
26
- writer.uint32(26).string(message.storageConnectionId);
27
- }
28
- if (message.options !== undefined) {
29
- struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.options), writer.uint32(34).fork()).join();
30
- }
31
- if (message.workflowId !== "") {
32
- writer.uint32(42).string(message.workflowId);
33
- }
34
- return writer;
35
- },
36
- decode(input, length) {
37
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
38
- const end = length === undefined ? reader.len : reader.pos + length;
39
- const message = createBaseBuildReportSummaryRequest();
40
- while (reader.pos < end) {
41
- const tag = reader.uint32();
42
- switch (tag >>> 3) {
43
- case 1: {
44
- if (tag !== 10) {
45
- break;
46
- }
47
- message.projectId = reader.string();
48
- continue;
49
- }
50
- case 2: {
51
- if (tag !== 18) {
52
- break;
53
- }
54
- message.testRunId = reader.string();
55
- continue;
56
- }
57
- case 3: {
58
- if (tag !== 26) {
59
- break;
60
- }
61
- message.storageConnectionId = reader.string();
62
- continue;
63
- }
64
- case 4: {
65
- if (tag !== 34) {
66
- break;
67
- }
68
- message.options = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
69
- continue;
70
- }
71
- case 5: {
72
- if (tag !== 42) {
73
- break;
74
- }
75
- message.workflowId = reader.string();
76
- continue;
77
- }
78
- }
79
- if ((tag & 7) === 4 || tag === 0) {
80
- break;
81
- }
82
- reader.skip(tag & 7);
83
- }
84
- return message;
85
- },
86
- fromJSON(object) {
87
- return {
88
- projectId: isSet(object.projectId)
89
- ? globalThis.String(object.projectId)
90
- : isSet(object.project_id)
91
- ? globalThis.String(object.project_id)
92
- : "",
93
- testRunId: isSet(object.testRunId)
94
- ? globalThis.String(object.testRunId)
95
- : isSet(object.test_run_id)
96
- ? globalThis.String(object.test_run_id)
97
- : "",
98
- storageConnectionId: isSet(object.storageConnectionId)
99
- ? globalThis.String(object.storageConnectionId)
100
- : isSet(object.storage_connection_id)
101
- ? globalThis.String(object.storage_connection_id)
102
- : "",
103
- options: isObject(object.options) ? object.options : undefined,
104
- workflowId: isSet(object.workflowId)
105
- ? globalThis.String(object.workflowId)
106
- : isSet(object.workflow_id)
107
- ? globalThis.String(object.workflow_id)
108
- : "",
109
- };
110
- },
111
- toJSON(message) {
112
- const obj = {};
113
- if (message.projectId !== "") {
114
- obj.projectId = message.projectId;
115
- }
116
- if (message.testRunId !== "") {
117
- obj.testRunId = message.testRunId;
118
- }
119
- if (message.storageConnectionId !== "") {
120
- obj.storageConnectionId = message.storageConnectionId;
121
- }
122
- if (message.options !== undefined) {
123
- obj.options = message.options;
124
- }
125
- if (message.workflowId !== "") {
126
- obj.workflowId = message.workflowId;
127
- }
128
- return obj;
129
- },
130
- create(base) {
131
- return exports.BuildReportSummaryRequest.fromPartial(base !== null && base !== void 0 ? base : {});
132
- },
133
- fromPartial(object) {
134
- var _a, _b, _c, _d, _e;
135
- const message = createBaseBuildReportSummaryRequest();
136
- message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
137
- message.testRunId = (_b = object.testRunId) !== null && _b !== void 0 ? _b : "";
138
- message.storageConnectionId = (_c = object.storageConnectionId) !== null && _c !== void 0 ? _c : "";
139
- message.options = (_d = object.options) !== null && _d !== void 0 ? _d : undefined;
140
- message.workflowId = (_e = object.workflowId) !== null && _e !== void 0 ? _e : "";
141
- return message;
142
- },
143
- };
144
- function createBaseBuildReportSummaryResponse() {
145
- return { testReport: undefined };
146
- }
147
- exports.BuildReportSummaryResponse = {
148
- encode(message, writer = new wire_1.BinaryWriter()) {
149
- if (message.testReport !== undefined) {
150
- report_pb_1.TestReport.encode(message.testReport, writer.uint32(10).fork()).join();
151
- }
152
- return writer;
153
- },
154
- decode(input, length) {
155
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
156
- const end = length === undefined ? reader.len : reader.pos + length;
157
- const message = createBaseBuildReportSummaryResponse();
158
- while (reader.pos < end) {
159
- const tag = reader.uint32();
160
- switch (tag >>> 3) {
161
- case 1: {
162
- if (tag !== 10) {
163
- break;
164
- }
165
- message.testReport = report_pb_1.TestReport.decode(reader, reader.uint32());
166
- continue;
167
- }
168
- }
169
- if ((tag & 7) === 4 || tag === 0) {
170
- break;
171
- }
172
- reader.skip(tag & 7);
173
- }
174
- return message;
175
- },
176
- fromJSON(object) {
177
- return {
178
- testReport: isSet(object.testReport)
179
- ? report_pb_1.TestReport.fromJSON(object.testReport)
180
- : isSet(object.test_report)
181
- ? report_pb_1.TestReport.fromJSON(object.test_report)
182
- : undefined,
183
- };
184
- },
185
- toJSON(message) {
186
- const obj = {};
187
- if (message.testReport !== undefined) {
188
- obj.testReport = report_pb_1.TestReport.toJSON(message.testReport);
189
- }
190
- return obj;
191
- },
192
- create(base) {
193
- return exports.BuildReportSummaryResponse.fromPartial(base !== null && base !== void 0 ? base : {});
194
- },
195
- fromPartial(object) {
196
- const message = createBaseBuildReportSummaryResponse();
197
- message.testReport = (object.testReport !== undefined && object.testReport !== null)
198
- ? report_pb_1.TestReport.fromPartial(object.testReport)
199
- : undefined;
200
- return message;
201
- },
202
- };
203
- function createBaseGetReportRequest() {
204
- return { projectId: "", testReportId: "", workflowId: "" };
205
- }
206
- exports.GetReportRequest = {
207
- encode(message, writer = new wire_1.BinaryWriter()) {
208
- if (message.projectId !== "") {
209
- writer.uint32(10).string(message.projectId);
210
- }
211
- if (message.testReportId !== "") {
212
- writer.uint32(18).string(message.testReportId);
213
- }
214
- if (message.workflowId !== "") {
215
- writer.uint32(26).string(message.workflowId);
216
- }
217
- return writer;
218
- },
219
- decode(input, length) {
220
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
221
- const end = length === undefined ? reader.len : reader.pos + length;
222
- const message = createBaseGetReportRequest();
223
- while (reader.pos < end) {
224
- const tag = reader.uint32();
225
- switch (tag >>> 3) {
226
- case 1: {
227
- if (tag !== 10) {
228
- break;
229
- }
230
- message.projectId = reader.string();
231
- continue;
232
- }
233
- case 2: {
234
- if (tag !== 18) {
235
- break;
236
- }
237
- message.testReportId = reader.string();
238
- continue;
239
- }
240
- case 3: {
241
- if (tag !== 26) {
242
- break;
243
- }
244
- message.workflowId = reader.string();
245
- continue;
246
- }
247
- }
248
- if ((tag & 7) === 4 || tag === 0) {
249
- break;
250
- }
251
- reader.skip(tag & 7);
252
- }
253
- return message;
254
- },
255
- fromJSON(object) {
256
- return {
257
- projectId: isSet(object.projectId)
258
- ? globalThis.String(object.projectId)
259
- : isSet(object.project_id)
260
- ? globalThis.String(object.project_id)
261
- : "",
262
- testReportId: isSet(object.testReportId)
263
- ? globalThis.String(object.testReportId)
264
- : isSet(object.test_report_id)
265
- ? globalThis.String(object.test_report_id)
266
- : "",
267
- workflowId: isSet(object.workflowId)
268
- ? globalThis.String(object.workflowId)
269
- : isSet(object.workflow_id)
270
- ? globalThis.String(object.workflow_id)
271
- : "",
272
- };
273
- },
274
- toJSON(message) {
275
- const obj = {};
276
- if (message.projectId !== "") {
277
- obj.projectId = message.projectId;
278
- }
279
- if (message.testReportId !== "") {
280
- obj.testReportId = message.testReportId;
281
- }
282
- if (message.workflowId !== "") {
283
- obj.workflowId = message.workflowId;
284
- }
285
- return obj;
286
- },
287
- create(base) {
288
- return exports.GetReportRequest.fromPartial(base !== null && base !== void 0 ? base : {});
289
- },
290
- fromPartial(object) {
291
- var _a, _b, _c;
292
- const message = createBaseGetReportRequest();
293
- message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
294
- message.testReportId = (_b = object.testReportId) !== null && _b !== void 0 ? _b : "";
295
- message.workflowId = (_c = object.workflowId) !== null && _c !== void 0 ? _c : "";
296
- return message;
297
- },
298
- };
299
- function createBaseGetReportResponse() {
300
- return { testReport: undefined };
301
- }
302
- exports.GetReportResponse = {
303
- encode(message, writer = new wire_1.BinaryWriter()) {
304
- if (message.testReport !== undefined) {
305
- report_pb_1.TestReport.encode(message.testReport, writer.uint32(10).fork()).join();
306
- }
307
- return writer;
308
- },
309
- decode(input, length) {
310
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
311
- const end = length === undefined ? reader.len : reader.pos + length;
312
- const message = createBaseGetReportResponse();
313
- while (reader.pos < end) {
314
- const tag = reader.uint32();
315
- switch (tag >>> 3) {
316
- case 1: {
317
- if (tag !== 10) {
318
- break;
319
- }
320
- message.testReport = report_pb_1.TestReport.decode(reader, reader.uint32());
321
- continue;
322
- }
323
- }
324
- if ((tag & 7) === 4 || tag === 0) {
325
- break;
326
- }
327
- reader.skip(tag & 7);
328
- }
329
- return message;
330
- },
331
- fromJSON(object) {
332
- return {
333
- testReport: isSet(object.testReport)
334
- ? report_pb_1.TestReport.fromJSON(object.testReport)
335
- : isSet(object.test_report)
336
- ? report_pb_1.TestReport.fromJSON(object.test_report)
337
- : undefined,
338
- };
339
- },
340
- toJSON(message) {
341
- const obj = {};
342
- if (message.testReport !== undefined) {
343
- obj.testReport = report_pb_1.TestReport.toJSON(message.testReport);
344
- }
345
- return obj;
346
- },
347
- create(base) {
348
- return exports.GetReportResponse.fromPartial(base !== null && base !== void 0 ? base : {});
349
- },
350
- fromPartial(object) {
351
- const message = createBaseGetReportResponse();
352
- message.testReport = (object.testReport !== undefined && object.testReport !== null)
353
- ? report_pb_1.TestReport.fromPartial(object.testReport)
354
- : undefined;
355
- return message;
356
- },
357
- };
358
- function createBaseListReportsRequest() {
359
- return { projectId: "", includeArchived: false, pageSize: 0, pageToken: "", workflowId: "" };
360
- }
361
- exports.ListReportsRequest = {
362
- encode(message, writer = new wire_1.BinaryWriter()) {
363
- if (message.projectId !== "") {
364
- writer.uint32(10).string(message.projectId);
365
- }
366
- if (message.includeArchived !== false) {
367
- writer.uint32(16).bool(message.includeArchived);
368
- }
369
- if (message.pageSize !== 0) {
370
- writer.uint32(24).int32(message.pageSize);
371
- }
372
- if (message.pageToken !== "") {
373
- writer.uint32(34).string(message.pageToken);
374
- }
375
- if (message.workflowId !== "") {
376
- writer.uint32(42).string(message.workflowId);
377
- }
378
- return writer;
379
- },
380
- decode(input, length) {
381
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
382
- const end = length === undefined ? reader.len : reader.pos + length;
383
- const message = createBaseListReportsRequest();
384
- while (reader.pos < end) {
385
- const tag = reader.uint32();
386
- switch (tag >>> 3) {
387
- case 1: {
388
- if (tag !== 10) {
389
- break;
390
- }
391
- message.projectId = reader.string();
392
- continue;
393
- }
394
- case 2: {
395
- if (tag !== 16) {
396
- break;
397
- }
398
- message.includeArchived = reader.bool();
399
- continue;
400
- }
401
- case 3: {
402
- if (tag !== 24) {
403
- break;
404
- }
405
- message.pageSize = reader.int32();
406
- continue;
407
- }
408
- case 4: {
409
- if (tag !== 34) {
410
- break;
411
- }
412
- message.pageToken = reader.string();
413
- continue;
414
- }
415
- case 5: {
416
- if (tag !== 42) {
417
- break;
418
- }
419
- message.workflowId = reader.string();
420
- continue;
421
- }
422
- }
423
- if ((tag & 7) === 4 || tag === 0) {
424
- break;
425
- }
426
- reader.skip(tag & 7);
427
- }
428
- return message;
429
- },
430
- fromJSON(object) {
431
- return {
432
- projectId: isSet(object.projectId)
433
- ? globalThis.String(object.projectId)
434
- : isSet(object.project_id)
435
- ? globalThis.String(object.project_id)
436
- : "",
437
- includeArchived: isSet(object.includeArchived)
438
- ? globalThis.Boolean(object.includeArchived)
439
- : isSet(object.include_archived)
440
- ? globalThis.Boolean(object.include_archived)
441
- : false,
442
- pageSize: isSet(object.pageSize)
443
- ? globalThis.Number(object.pageSize)
444
- : isSet(object.page_size)
445
- ? globalThis.Number(object.page_size)
446
- : 0,
447
- pageToken: isSet(object.pageToken)
448
- ? globalThis.String(object.pageToken)
449
- : isSet(object.page_token)
450
- ? globalThis.String(object.page_token)
451
- : "",
452
- workflowId: isSet(object.workflowId)
453
- ? globalThis.String(object.workflowId)
454
- : isSet(object.workflow_id)
455
- ? globalThis.String(object.workflow_id)
456
- : "",
457
- };
458
- },
459
- toJSON(message) {
460
- const obj = {};
461
- if (message.projectId !== "") {
462
- obj.projectId = message.projectId;
463
- }
464
- if (message.includeArchived !== false) {
465
- obj.includeArchived = message.includeArchived;
466
- }
467
- if (message.pageSize !== 0) {
468
- obj.pageSize = Math.round(message.pageSize);
469
- }
470
- if (message.pageToken !== "") {
471
- obj.pageToken = message.pageToken;
472
- }
473
- if (message.workflowId !== "") {
474
- obj.workflowId = message.workflowId;
475
- }
476
- return obj;
477
- },
478
- create(base) {
479
- return exports.ListReportsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
480
- },
481
- fromPartial(object) {
482
- var _a, _b, _c, _d, _e;
483
- const message = createBaseListReportsRequest();
484
- message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
485
- message.includeArchived = (_b = object.includeArchived) !== null && _b !== void 0 ? _b : false;
486
- message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
487
- message.pageToken = (_d = object.pageToken) !== null && _d !== void 0 ? _d : "";
488
- message.workflowId = (_e = object.workflowId) !== null && _e !== void 0 ? _e : "";
489
- return message;
490
- },
491
- };
492
- function createBaseListReportsResponse() {
493
- return { testReports: [], nextPageToken: "" };
494
- }
495
- exports.ListReportsResponse = {
496
- encode(message, writer = new wire_1.BinaryWriter()) {
497
- for (const v of message.testReports) {
498
- report_pb_1.TestReport.encode(v, writer.uint32(10).fork()).join();
499
- }
500
- if (message.nextPageToken !== "") {
501
- writer.uint32(18).string(message.nextPageToken);
502
- }
503
- return writer;
504
- },
505
- decode(input, length) {
506
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
507
- const end = length === undefined ? reader.len : reader.pos + length;
508
- const message = createBaseListReportsResponse();
509
- while (reader.pos < end) {
510
- const tag = reader.uint32();
511
- switch (tag >>> 3) {
512
- case 1: {
513
- if (tag !== 10) {
514
- break;
515
- }
516
- message.testReports.push(report_pb_1.TestReport.decode(reader, reader.uint32()));
517
- continue;
518
- }
519
- case 2: {
520
- if (tag !== 18) {
521
- break;
522
- }
523
- message.nextPageToken = reader.string();
524
- continue;
525
- }
526
- }
527
- if ((tag & 7) === 4 || tag === 0) {
528
- break;
529
- }
530
- reader.skip(tag & 7);
531
- }
532
- return message;
533
- },
534
- fromJSON(object) {
535
- return {
536
- testReports: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.testReports)
537
- ? object.testReports.map((e) => report_pb_1.TestReport.fromJSON(e))
538
- : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.test_reports)
539
- ? object.test_reports.map((e) => report_pb_1.TestReport.fromJSON(e))
540
- : [],
541
- nextPageToken: isSet(object.nextPageToken)
542
- ? globalThis.String(object.nextPageToken)
543
- : isSet(object.next_page_token)
544
- ? globalThis.String(object.next_page_token)
545
- : "",
546
- };
547
- },
548
- toJSON(message) {
549
- var _a;
550
- const obj = {};
551
- if ((_a = message.testReports) === null || _a === void 0 ? void 0 : _a.length) {
552
- obj.testReports = message.testReports.map((e) => report_pb_1.TestReport.toJSON(e));
553
- }
554
- if (message.nextPageToken !== "") {
555
- obj.nextPageToken = message.nextPageToken;
556
- }
557
- return obj;
558
- },
559
- create(base) {
560
- return exports.ListReportsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
561
- },
562
- fromPartial(object) {
563
- var _a;
564
- var _b;
565
- const message = createBaseListReportsResponse();
566
- message.testReports = ((_a = object.testReports) === null || _a === void 0 ? void 0 : _a.map((e) => report_pb_1.TestReport.fromPartial(e))) || [];
567
- message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
568
- return message;
569
- },
570
- };
571
- function createBaseArchiveReportRequest() {
572
- return { projectId: "", testReportId: "", workflowId: "" };
573
- }
574
- exports.ArchiveReportRequest = {
575
- encode(message, writer = new wire_1.BinaryWriter()) {
576
- if (message.projectId !== "") {
577
- writer.uint32(10).string(message.projectId);
578
- }
579
- if (message.testReportId !== "") {
580
- writer.uint32(18).string(message.testReportId);
581
- }
582
- if (message.workflowId !== "") {
583
- writer.uint32(26).string(message.workflowId);
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 = createBaseArchiveReportRequest();
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.projectId = reader.string();
599
- continue;
600
- }
601
- case 2: {
602
- if (tag !== 18) {
603
- break;
604
- }
605
- message.testReportId = reader.string();
606
- continue;
607
- }
608
- case 3: {
609
- if (tag !== 26) {
610
- break;
611
- }
612
- message.workflowId = reader.string();
613
- continue;
614
- }
615
- }
616
- if ((tag & 7) === 4 || tag === 0) {
617
- break;
618
- }
619
- reader.skip(tag & 7);
620
- }
621
- return message;
622
- },
623
- fromJSON(object) {
624
- return {
625
- projectId: isSet(object.projectId)
626
- ? globalThis.String(object.projectId)
627
- : isSet(object.project_id)
628
- ? globalThis.String(object.project_id)
629
- : "",
630
- testReportId: isSet(object.testReportId)
631
- ? globalThis.String(object.testReportId)
632
- : isSet(object.test_report_id)
633
- ? globalThis.String(object.test_report_id)
634
- : "",
635
- workflowId: isSet(object.workflowId)
636
- ? globalThis.String(object.workflowId)
637
- : isSet(object.workflow_id)
638
- ? globalThis.String(object.workflow_id)
639
- : "",
640
- };
641
- },
642
- toJSON(message) {
643
- const obj = {};
644
- if (message.projectId !== "") {
645
- obj.projectId = message.projectId;
646
- }
647
- if (message.testReportId !== "") {
648
- obj.testReportId = message.testReportId;
649
- }
650
- if (message.workflowId !== "") {
651
- obj.workflowId = message.workflowId;
652
- }
653
- return obj;
654
- },
655
- create(base) {
656
- return exports.ArchiveReportRequest.fromPartial(base !== null && base !== void 0 ? base : {});
657
- },
658
- fromPartial(object) {
659
- var _a, _b, _c;
660
- const message = createBaseArchiveReportRequest();
661
- message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
662
- message.testReportId = (_b = object.testReportId) !== null && _b !== void 0 ? _b : "";
663
- message.workflowId = (_c = object.workflowId) !== null && _c !== void 0 ? _c : "";
664
- return message;
665
- },
666
- };
667
- function createBaseArchiveReportResponse() {
668
- return { testReport: undefined };
669
- }
670
- exports.ArchiveReportResponse = {
671
- encode(message, writer = new wire_1.BinaryWriter()) {
672
- if (message.testReport !== undefined) {
673
- report_pb_1.TestReport.encode(message.testReport, writer.uint32(10).fork()).join();
674
- }
675
- return writer;
676
- },
677
- decode(input, length) {
678
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
679
- const end = length === undefined ? reader.len : reader.pos + length;
680
- const message = createBaseArchiveReportResponse();
681
- while (reader.pos < end) {
682
- const tag = reader.uint32();
683
- switch (tag >>> 3) {
684
- case 1: {
685
- if (tag !== 10) {
686
- break;
687
- }
688
- message.testReport = report_pb_1.TestReport.decode(reader, reader.uint32());
689
- continue;
690
- }
691
- }
692
- if ((tag & 7) === 4 || tag === 0) {
693
- break;
694
- }
695
- reader.skip(tag & 7);
696
- }
697
- return message;
698
- },
699
- fromJSON(object) {
700
- return {
701
- testReport: isSet(object.testReport)
702
- ? report_pb_1.TestReport.fromJSON(object.testReport)
703
- : isSet(object.test_report)
704
- ? report_pb_1.TestReport.fromJSON(object.test_report)
705
- : undefined,
706
- };
707
- },
708
- toJSON(message) {
709
- const obj = {};
710
- if (message.testReport !== undefined) {
711
- obj.testReport = report_pb_1.TestReport.toJSON(message.testReport);
712
- }
713
- return obj;
714
- },
715
- create(base) {
716
- return exports.ArchiveReportResponse.fromPartial(base !== null && base !== void 0 ? base : {});
717
- },
718
- fromPartial(object) {
719
- const message = createBaseArchiveReportResponse();
720
- message.testReport = (object.testReport !== undefined && object.testReport !== null)
721
- ? report_pb_1.TestReport.fromPartial(object.testReport)
722
- : undefined;
723
- return message;
724
- },
725
- };
726
- function createBaseDeleteReportRequest() {
727
- return { projectId: "", testReportId: "", workflowId: "" };
728
- }
729
- exports.DeleteReportRequest = {
730
- encode(message, writer = new wire_1.BinaryWriter()) {
731
- if (message.projectId !== "") {
732
- writer.uint32(10).string(message.projectId);
733
- }
734
- if (message.testReportId !== "") {
735
- writer.uint32(18).string(message.testReportId);
736
- }
737
- if (message.workflowId !== "") {
738
- writer.uint32(26).string(message.workflowId);
739
- }
740
- return writer;
741
- },
742
- decode(input, length) {
743
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
744
- const end = length === undefined ? reader.len : reader.pos + length;
745
- const message = createBaseDeleteReportRequest();
746
- while (reader.pos < end) {
747
- const tag = reader.uint32();
748
- switch (tag >>> 3) {
749
- case 1: {
750
- if (tag !== 10) {
751
- break;
752
- }
753
- message.projectId = reader.string();
754
- continue;
755
- }
756
- case 2: {
757
- if (tag !== 18) {
758
- break;
759
- }
760
- message.testReportId = reader.string();
761
- continue;
762
- }
763
- case 3: {
764
- if (tag !== 26) {
765
- break;
766
- }
767
- message.workflowId = reader.string();
768
- continue;
769
- }
770
- }
771
- if ((tag & 7) === 4 || tag === 0) {
772
- break;
773
- }
774
- reader.skip(tag & 7);
775
- }
776
- return message;
777
- },
778
- fromJSON(object) {
779
- return {
780
- projectId: isSet(object.projectId)
781
- ? globalThis.String(object.projectId)
782
- : isSet(object.project_id)
783
- ? globalThis.String(object.project_id)
784
- : "",
785
- testReportId: isSet(object.testReportId)
786
- ? globalThis.String(object.testReportId)
787
- : isSet(object.test_report_id)
788
- ? globalThis.String(object.test_report_id)
789
- : "",
790
- workflowId: isSet(object.workflowId)
791
- ? globalThis.String(object.workflowId)
792
- : isSet(object.workflow_id)
793
- ? globalThis.String(object.workflow_id)
794
- : "",
795
- };
796
- },
797
- toJSON(message) {
798
- const obj = {};
799
- if (message.projectId !== "") {
800
- obj.projectId = message.projectId;
801
- }
802
- if (message.testReportId !== "") {
803
- obj.testReportId = message.testReportId;
804
- }
805
- if (message.workflowId !== "") {
806
- obj.workflowId = message.workflowId;
807
- }
808
- return obj;
809
- },
810
- create(base) {
811
- return exports.DeleteReportRequest.fromPartial(base !== null && base !== void 0 ? base : {});
812
- },
813
- fromPartial(object) {
814
- var _a, _b, _c;
815
- const message = createBaseDeleteReportRequest();
816
- message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
817
- message.testReportId = (_b = object.testReportId) !== null && _b !== void 0 ? _b : "";
818
- message.workflowId = (_c = object.workflowId) !== null && _c !== void 0 ? _c : "";
819
- return message;
820
- },
821
- };
822
- function createBaseDeleteReportResponse() {
823
- return {};
824
- }
825
- exports.DeleteReportResponse = {
826
- encode(_, writer = new wire_1.BinaryWriter()) {
827
- return writer;
828
- },
829
- decode(input, length) {
830
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
831
- const end = length === undefined ? reader.len : reader.pos + length;
832
- const message = createBaseDeleteReportResponse();
833
- while (reader.pos < end) {
834
- const tag = reader.uint32();
835
- switch (tag >>> 3) {
836
- }
837
- if ((tag & 7) === 4 || tag === 0) {
838
- break;
839
- }
840
- reader.skip(tag & 7);
841
- }
842
- return message;
843
- },
844
- fromJSON(_) {
845
- return {};
846
- },
847
- toJSON(_) {
848
- const obj = {};
849
- return obj;
850
- },
851
- create(base) {
852
- return exports.DeleteReportResponse.fromPartial(base !== null && base !== void 0 ? base : {});
853
- },
854
- fromPartial(_) {
855
- const message = createBaseDeleteReportResponse();
856
- return message;
857
- },
858
- };
859
- function createBaseListWorkflowEventsRequest() {
860
- return { projectId: "", pageSize: 0, pageToken: "", workflowId: "" };
861
- }
862
- exports.ListWorkflowEventsRequest = {
863
- encode(message, writer = new wire_1.BinaryWriter()) {
864
- if (message.projectId !== "") {
865
- writer.uint32(10).string(message.projectId);
866
- }
867
- if (message.pageSize !== 0) {
868
- writer.uint32(16).int32(message.pageSize);
869
- }
870
- if (message.pageToken !== "") {
871
- writer.uint32(26).string(message.pageToken);
872
- }
873
- if (message.workflowId !== "") {
874
- writer.uint32(34).string(message.workflowId);
875
- }
876
- return writer;
877
- },
878
- decode(input, length) {
879
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
880
- const end = length === undefined ? reader.len : reader.pos + length;
881
- const message = createBaseListWorkflowEventsRequest();
882
- while (reader.pos < end) {
883
- const tag = reader.uint32();
884
- switch (tag >>> 3) {
885
- case 1: {
886
- if (tag !== 10) {
887
- break;
888
- }
889
- message.projectId = reader.string();
890
- continue;
891
- }
892
- case 2: {
893
- if (tag !== 16) {
894
- break;
895
- }
896
- message.pageSize = reader.int32();
897
- continue;
898
- }
899
- case 3: {
900
- if (tag !== 26) {
901
- break;
902
- }
903
- message.pageToken = reader.string();
904
- continue;
905
- }
906
- case 4: {
907
- if (tag !== 34) {
908
- break;
909
- }
910
- message.workflowId = reader.string();
911
- continue;
912
- }
913
- }
914
- if ((tag & 7) === 4 || tag === 0) {
915
- break;
916
- }
917
- reader.skip(tag & 7);
918
- }
919
- return message;
920
- },
921
- fromJSON(object) {
922
- return {
923
- projectId: isSet(object.projectId)
924
- ? globalThis.String(object.projectId)
925
- : isSet(object.project_id)
926
- ? globalThis.String(object.project_id)
927
- : "",
928
- pageSize: isSet(object.pageSize)
929
- ? globalThis.Number(object.pageSize)
930
- : isSet(object.page_size)
931
- ? globalThis.Number(object.page_size)
932
- : 0,
933
- pageToken: isSet(object.pageToken)
934
- ? globalThis.String(object.pageToken)
935
- : isSet(object.page_token)
936
- ? globalThis.String(object.page_token)
937
- : "",
938
- workflowId: isSet(object.workflowId)
939
- ? globalThis.String(object.workflowId)
940
- : isSet(object.workflow_id)
941
- ? globalThis.String(object.workflow_id)
942
- : "",
943
- };
944
- },
945
- toJSON(message) {
946
- const obj = {};
947
- if (message.projectId !== "") {
948
- obj.projectId = message.projectId;
949
- }
950
- if (message.pageSize !== 0) {
951
- obj.pageSize = Math.round(message.pageSize);
952
- }
953
- if (message.pageToken !== "") {
954
- obj.pageToken = message.pageToken;
955
- }
956
- if (message.workflowId !== "") {
957
- obj.workflowId = message.workflowId;
958
- }
959
- return obj;
960
- },
961
- create(base) {
962
- return exports.ListWorkflowEventsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
963
- },
964
- fromPartial(object) {
965
- var _a, _b, _c, _d;
966
- const message = createBaseListWorkflowEventsRequest();
967
- message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
968
- message.pageSize = (_b = object.pageSize) !== null && _b !== void 0 ? _b : 0;
969
- message.pageToken = (_c = object.pageToken) !== null && _c !== void 0 ? _c : "";
970
- message.workflowId = (_d = object.workflowId) !== null && _d !== void 0 ? _d : "";
971
- return message;
972
- },
973
- };
974
- function createBaseListWorkflowEventsResponse() {
975
- return { workflowEvents: [], nextPageToken: "" };
976
- }
977
- exports.ListWorkflowEventsResponse = {
978
- encode(message, writer = new wire_1.BinaryWriter()) {
979
- for (const v of message.workflowEvents) {
980
- report_pb_1.WorkflowEvent.encode(v, writer.uint32(10).fork()).join();
981
- }
982
- if (message.nextPageToken !== "") {
983
- writer.uint32(18).string(message.nextPageToken);
984
- }
985
- return writer;
986
- },
987
- decode(input, length) {
988
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
989
- const end = length === undefined ? reader.len : reader.pos + length;
990
- const message = createBaseListWorkflowEventsResponse();
991
- while (reader.pos < end) {
992
- const tag = reader.uint32();
993
- switch (tag >>> 3) {
994
- case 1: {
995
- if (tag !== 10) {
996
- break;
997
- }
998
- message.workflowEvents.push(report_pb_1.WorkflowEvent.decode(reader, reader.uint32()));
999
- continue;
1000
- }
1001
- case 2: {
1002
- if (tag !== 18) {
1003
- break;
1004
- }
1005
- message.nextPageToken = reader.string();
1006
- continue;
1007
- }
1008
- }
1009
- if ((tag & 7) === 4 || tag === 0) {
1010
- break;
1011
- }
1012
- reader.skip(tag & 7);
1013
- }
1014
- return message;
1015
- },
1016
- fromJSON(object) {
1017
- return {
1018
- workflowEvents: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.workflowEvents)
1019
- ? object.workflowEvents.map((e) => report_pb_1.WorkflowEvent.fromJSON(e))
1020
- : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.workflow_events)
1021
- ? object.workflow_events.map((e) => report_pb_1.WorkflowEvent.fromJSON(e))
1022
- : [],
1023
- nextPageToken: isSet(object.nextPageToken)
1024
- ? globalThis.String(object.nextPageToken)
1025
- : isSet(object.next_page_token)
1026
- ? globalThis.String(object.next_page_token)
1027
- : "",
1028
- };
1029
- },
1030
- toJSON(message) {
1031
- var _a;
1032
- const obj = {};
1033
- if ((_a = message.workflowEvents) === null || _a === void 0 ? void 0 : _a.length) {
1034
- obj.workflowEvents = message.workflowEvents.map((e) => report_pb_1.WorkflowEvent.toJSON(e));
1035
- }
1036
- if (message.nextPageToken !== "") {
1037
- obj.nextPageToken = message.nextPageToken;
1038
- }
1039
- return obj;
1040
- },
1041
- create(base) {
1042
- return exports.ListWorkflowEventsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1043
- },
1044
- fromPartial(object) {
1045
- var _a;
1046
- var _b;
1047
- const message = createBaseListWorkflowEventsResponse();
1048
- message.workflowEvents = ((_a = object.workflowEvents) === null || _a === void 0 ? void 0 : _a.map((e) => report_pb_1.WorkflowEvent.fromPartial(e))) || [];
1049
- message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
1050
- return message;
1051
- },
1052
- };
1053
- exports.ReportServiceServiceName = "weaveapi.report.v1.ReportService";
1054
- class ReportServiceClientImpl {
1055
- constructor(rpc, opts) {
1056
- this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.ReportServiceServiceName;
1057
- this.rpc = rpc;
1058
- this.BuildReportSummary = this.BuildReportSummary.bind(this);
1059
- this.GetReport = this.GetReport.bind(this);
1060
- this.ListReports = this.ListReports.bind(this);
1061
- this.ArchiveReport = this.ArchiveReport.bind(this);
1062
- this.DeleteReport = this.DeleteReport.bind(this);
1063
- this.ListWorkflowEvents = this.ListWorkflowEvents.bind(this);
1064
- }
1065
- BuildReportSummary(request) {
1066
- const data = exports.BuildReportSummaryRequest.encode(request).finish();
1067
- const promise = this.rpc.request(this.service, "BuildReportSummary", data);
1068
- return promise.then((data) => exports.BuildReportSummaryResponse.decode(new wire_1.BinaryReader(data)));
1069
- }
1070
- GetReport(request) {
1071
- const data = exports.GetReportRequest.encode(request).finish();
1072
- const promise = this.rpc.request(this.service, "GetReport", data);
1073
- return promise.then((data) => exports.GetReportResponse.decode(new wire_1.BinaryReader(data)));
1074
- }
1075
- ListReports(request) {
1076
- const data = exports.ListReportsRequest.encode(request).finish();
1077
- const promise = this.rpc.request(this.service, "ListReports", data);
1078
- return promise.then((data) => exports.ListReportsResponse.decode(new wire_1.BinaryReader(data)));
1079
- }
1080
- ArchiveReport(request) {
1081
- const data = exports.ArchiveReportRequest.encode(request).finish();
1082
- const promise = this.rpc.request(this.service, "ArchiveReport", data);
1083
- return promise.then((data) => exports.ArchiveReportResponse.decode(new wire_1.BinaryReader(data)));
1084
- }
1085
- DeleteReport(request) {
1086
- const data = exports.DeleteReportRequest.encode(request).finish();
1087
- const promise = this.rpc.request(this.service, "DeleteReport", data);
1088
- return promise.then((data) => exports.DeleteReportResponse.decode(new wire_1.BinaryReader(data)));
1089
- }
1090
- ListWorkflowEvents(request) {
1091
- const data = exports.ListWorkflowEventsRequest.encode(request).finish();
1092
- const promise = this.rpc.request(this.service, "ListWorkflowEvents", data);
1093
- return promise.then((data) => exports.ListWorkflowEventsResponse.decode(new wire_1.BinaryReader(data)));
1094
- }
1095
- }
1096
- exports.ReportServiceClientImpl = ReportServiceClientImpl;
1097
- exports.ReportServiceDefinition = {
1098
- name: "ReportService",
1099
- fullName: "weaveapi.report.v1.ReportService",
1100
- methods: {
1101
- buildReportSummary: {
1102
- name: "BuildReportSummary",
1103
- requestType: exports.BuildReportSummaryRequest,
1104
- requestStream: false,
1105
- responseType: exports.BuildReportSummaryResponse,
1106
- responseStream: false,
1107
- options: {
1108
- _unknownFields: {
1109
- 578365826: [
1110
- new Uint8Array([
1111
- 114,
1112
- 58,
1113
- 1,
1114
- 42,
1115
- 90,
1116
- 68,
1117
- 58,
1118
- 1,
1119
- 42,
1120
- 34,
1121
- 63,
1122
- 47,
1123
- 118,
1124
- 49,
1125
- 47,
1126
- 112,
1127
- 114,
1128
- 111,
1129
- 106,
1130
- 101,
1131
- 99,
1132
- 116,
1133
- 115,
1134
- 47,
1135
- 123,
1136
- 112,
1137
- 114,
1138
- 111,
1139
- 106,
1140
- 101,
1141
- 99,
1142
- 116,
1143
- 95,
1144
- 105,
1145
- 100,
1146
- 125,
1147
- 47,
1148
- 119,
1149
- 111,
1150
- 114,
1151
- 107,
1152
- 102,
1153
- 108,
1154
- 111,
1155
- 119,
1156
- 115,
1157
- 47,
1158
- 123,
1159
- 119,
1160
- 111,
1161
- 114,
1162
- 107,
1163
- 102,
1164
- 108,
1165
- 111,
1166
- 119,
1167
- 95,
1168
- 105,
1169
- 100,
1170
- 125,
1171
- 47,
1172
- 114,
1173
- 101,
1174
- 112,
1175
- 111,
1176
- 114,
1177
- 116,
1178
- 115,
1179
- 58,
1180
- 98,
1181
- 117,
1182
- 105,
1183
- 108,
1184
- 100,
1185
- 34,
1186
- 39,
1187
- 47,
1188
- 118,
1189
- 49,
1190
- 47,
1191
- 112,
1192
- 114,
1193
- 111,
1194
- 106,
1195
- 101,
1196
- 99,
1197
- 116,
1198
- 115,
1199
- 47,
1200
- 123,
1201
- 112,
1202
- 114,
1203
- 111,
1204
- 106,
1205
- 101,
1206
- 99,
1207
- 116,
1208
- 95,
1209
- 105,
1210
- 100,
1211
- 125,
1212
- 47,
1213
- 114,
1214
- 101,
1215
- 112,
1216
- 111,
1217
- 114,
1218
- 116,
1219
- 115,
1220
- 58,
1221
- 98,
1222
- 117,
1223
- 105,
1224
- 108,
1225
- 100,
1226
- ]),
1227
- ],
1228
- },
1229
- },
1230
- },
1231
- getReport: {
1232
- name: "GetReport",
1233
- requestType: exports.GetReportRequest,
1234
- requestStream: false,
1235
- responseType: exports.GetReportResponse,
1236
- responseStream: false,
1237
- options: {
1238
- _unknownFields: {
1239
- 578365826: [
1240
- new Uint8Array([
1241
- 130,
1242
- 1,
1243
- 90,
1244
- 76,
1245
- 18,
1246
- 74,
1247
- 47,
1248
- 118,
1249
- 49,
1250
- 47,
1251
- 112,
1252
- 114,
1253
- 111,
1254
- 106,
1255
- 101,
1256
- 99,
1257
- 116,
1258
- 115,
1259
- 47,
1260
- 123,
1261
- 112,
1262
- 114,
1263
- 111,
1264
- 106,
1265
- 101,
1266
- 99,
1267
- 116,
1268
- 95,
1269
- 105,
1270
- 100,
1271
- 125,
1272
- 47,
1273
- 119,
1274
- 111,
1275
- 114,
1276
- 107,
1277
- 102,
1278
- 108,
1279
- 111,
1280
- 119,
1281
- 115,
1282
- 47,
1283
- 123,
1284
- 119,
1285
- 111,
1286
- 114,
1287
- 107,
1288
- 102,
1289
- 108,
1290
- 111,
1291
- 119,
1292
- 95,
1293
- 105,
1294
- 100,
1295
- 125,
1296
- 47,
1297
- 114,
1298
- 101,
1299
- 112,
1300
- 111,
1301
- 114,
1302
- 116,
1303
- 115,
1304
- 47,
1305
- 123,
1306
- 116,
1307
- 101,
1308
- 115,
1309
- 116,
1310
- 95,
1311
- 114,
1312
- 101,
1313
- 112,
1314
- 111,
1315
- 114,
1316
- 116,
1317
- 95,
1318
- 105,
1319
- 100,
1320
- 125,
1321
- 18,
1322
- 50,
1323
- 47,
1324
- 118,
1325
- 49,
1326
- 47,
1327
- 112,
1328
- 114,
1329
- 111,
1330
- 106,
1331
- 101,
1332
- 99,
1333
- 116,
1334
- 115,
1335
- 47,
1336
- 123,
1337
- 112,
1338
- 114,
1339
- 111,
1340
- 106,
1341
- 101,
1342
- 99,
1343
- 116,
1344
- 95,
1345
- 105,
1346
- 100,
1347
- 125,
1348
- 47,
1349
- 114,
1350
- 101,
1351
- 112,
1352
- 111,
1353
- 114,
1354
- 116,
1355
- 115,
1356
- 47,
1357
- 123,
1358
- 116,
1359
- 101,
1360
- 115,
1361
- 116,
1362
- 95,
1363
- 114,
1364
- 101,
1365
- 112,
1366
- 111,
1367
- 114,
1368
- 116,
1369
- 95,
1370
- 105,
1371
- 100,
1372
- 125,
1373
- ]),
1374
- ],
1375
- },
1376
- },
1377
- },
1378
- listReports: {
1379
- name: "ListReports",
1380
- requestType: exports.ListReportsRequest,
1381
- requestStream: false,
1382
- responseType: exports.ListReportsResponse,
1383
- responseStream: false,
1384
- options: {
1385
- _unknownFields: {
1386
- 578365826: [
1387
- new Uint8Array([
1388
- 96,
1389
- 90,
1390
- 59,
1391
- 18,
1392
- 57,
1393
- 47,
1394
- 118,
1395
- 49,
1396
- 47,
1397
- 112,
1398
- 114,
1399
- 111,
1400
- 106,
1401
- 101,
1402
- 99,
1403
- 116,
1404
- 115,
1405
- 47,
1406
- 123,
1407
- 112,
1408
- 114,
1409
- 111,
1410
- 106,
1411
- 101,
1412
- 99,
1413
- 116,
1414
- 95,
1415
- 105,
1416
- 100,
1417
- 125,
1418
- 47,
1419
- 119,
1420
- 111,
1421
- 114,
1422
- 107,
1423
- 102,
1424
- 108,
1425
- 111,
1426
- 119,
1427
- 115,
1428
- 47,
1429
- 123,
1430
- 119,
1431
- 111,
1432
- 114,
1433
- 107,
1434
- 102,
1435
- 108,
1436
- 111,
1437
- 119,
1438
- 95,
1439
- 105,
1440
- 100,
1441
- 125,
1442
- 47,
1443
- 114,
1444
- 101,
1445
- 112,
1446
- 111,
1447
- 114,
1448
- 116,
1449
- 115,
1450
- 18,
1451
- 33,
1452
- 47,
1453
- 118,
1454
- 49,
1455
- 47,
1456
- 112,
1457
- 114,
1458
- 111,
1459
- 106,
1460
- 101,
1461
- 99,
1462
- 116,
1463
- 115,
1464
- 47,
1465
- 123,
1466
- 112,
1467
- 114,
1468
- 111,
1469
- 106,
1470
- 101,
1471
- 99,
1472
- 116,
1473
- 95,
1474
- 105,
1475
- 100,
1476
- 125,
1477
- 47,
1478
- 114,
1479
- 101,
1480
- 112,
1481
- 111,
1482
- 114,
1483
- 116,
1484
- 115,
1485
- ]),
1486
- ],
1487
- },
1488
- },
1489
- },
1490
- archiveReport: {
1491
- name: "ArchiveReport",
1492
- requestType: exports.ArchiveReportRequest,
1493
- requestStream: false,
1494
- responseType: exports.ArchiveReportResponse,
1495
- responseStream: false,
1496
- options: {
1497
- _unknownFields: {
1498
- 578365826: [
1499
- new Uint8Array([
1500
- 152,
1501
- 1,
1502
- 58,
1503
- 1,
1504
- 42,
1505
- 90,
1506
- 87,
1507
- 58,
1508
- 1,
1509
- 42,
1510
- 34,
1511
- 82,
1512
- 47,
1513
- 118,
1514
- 49,
1515
- 47,
1516
- 112,
1517
- 114,
1518
- 111,
1519
- 106,
1520
- 101,
1521
- 99,
1522
- 116,
1523
- 115,
1524
- 47,
1525
- 123,
1526
- 112,
1527
- 114,
1528
- 111,
1529
- 106,
1530
- 101,
1531
- 99,
1532
- 116,
1533
- 95,
1534
- 105,
1535
- 100,
1536
- 125,
1537
- 47,
1538
- 119,
1539
- 111,
1540
- 114,
1541
- 107,
1542
- 102,
1543
- 108,
1544
- 111,
1545
- 119,
1546
- 115,
1547
- 47,
1548
- 123,
1549
- 119,
1550
- 111,
1551
- 114,
1552
- 107,
1553
- 102,
1554
- 108,
1555
- 111,
1556
- 119,
1557
- 95,
1558
- 105,
1559
- 100,
1560
- 125,
1561
- 47,
1562
- 114,
1563
- 101,
1564
- 112,
1565
- 111,
1566
- 114,
1567
- 116,
1568
- 115,
1569
- 47,
1570
- 123,
1571
- 116,
1572
- 101,
1573
- 115,
1574
- 116,
1575
- 95,
1576
- 114,
1577
- 101,
1578
- 112,
1579
- 111,
1580
- 114,
1581
- 116,
1582
- 95,
1583
- 105,
1584
- 100,
1585
- 125,
1586
- 58,
1587
- 97,
1588
- 114,
1589
- 99,
1590
- 104,
1591
- 105,
1592
- 118,
1593
- 101,
1594
- 34,
1595
- 58,
1596
- 47,
1597
- 118,
1598
- 49,
1599
- 47,
1600
- 112,
1601
- 114,
1602
- 111,
1603
- 106,
1604
- 101,
1605
- 99,
1606
- 116,
1607
- 115,
1608
- 47,
1609
- 123,
1610
- 112,
1611
- 114,
1612
- 111,
1613
- 106,
1614
- 101,
1615
- 99,
1616
- 116,
1617
- 95,
1618
- 105,
1619
- 100,
1620
- 125,
1621
- 47,
1622
- 114,
1623
- 101,
1624
- 112,
1625
- 111,
1626
- 114,
1627
- 116,
1628
- 115,
1629
- 47,
1630
- 123,
1631
- 116,
1632
- 101,
1633
- 115,
1634
- 116,
1635
- 95,
1636
- 114,
1637
- 101,
1638
- 112,
1639
- 111,
1640
- 114,
1641
- 116,
1642
- 95,
1643
- 105,
1644
- 100,
1645
- 125,
1646
- 58,
1647
- 97,
1648
- 114,
1649
- 99,
1650
- 104,
1651
- 105,
1652
- 118,
1653
- 101,
1654
- ]),
1655
- ],
1656
- },
1657
- },
1658
- },
1659
- deleteReport: {
1660
- name: "DeleteReport",
1661
- requestType: exports.DeleteReportRequest,
1662
- requestStream: false,
1663
- responseType: exports.DeleteReportResponse,
1664
- responseStream: false,
1665
- options: {
1666
- _unknownFields: {
1667
- 578365826: [
1668
- new Uint8Array([
1669
- 130,
1670
- 1,
1671
- 90,
1672
- 76,
1673
- 42,
1674
- 74,
1675
- 47,
1676
- 118,
1677
- 49,
1678
- 47,
1679
- 112,
1680
- 114,
1681
- 111,
1682
- 106,
1683
- 101,
1684
- 99,
1685
- 116,
1686
- 115,
1687
- 47,
1688
- 123,
1689
- 112,
1690
- 114,
1691
- 111,
1692
- 106,
1693
- 101,
1694
- 99,
1695
- 116,
1696
- 95,
1697
- 105,
1698
- 100,
1699
- 125,
1700
- 47,
1701
- 119,
1702
- 111,
1703
- 114,
1704
- 107,
1705
- 102,
1706
- 108,
1707
- 111,
1708
- 119,
1709
- 115,
1710
- 47,
1711
- 123,
1712
- 119,
1713
- 111,
1714
- 114,
1715
- 107,
1716
- 102,
1717
- 108,
1718
- 111,
1719
- 119,
1720
- 95,
1721
- 105,
1722
- 100,
1723
- 125,
1724
- 47,
1725
- 114,
1726
- 101,
1727
- 112,
1728
- 111,
1729
- 114,
1730
- 116,
1731
- 115,
1732
- 47,
1733
- 123,
1734
- 116,
1735
- 101,
1736
- 115,
1737
- 116,
1738
- 95,
1739
- 114,
1740
- 101,
1741
- 112,
1742
- 111,
1743
- 114,
1744
- 116,
1745
- 95,
1746
- 105,
1747
- 100,
1748
- 125,
1749
- 42,
1750
- 50,
1751
- 47,
1752
- 118,
1753
- 49,
1754
- 47,
1755
- 112,
1756
- 114,
1757
- 111,
1758
- 106,
1759
- 101,
1760
- 99,
1761
- 116,
1762
- 115,
1763
- 47,
1764
- 123,
1765
- 112,
1766
- 114,
1767
- 111,
1768
- 106,
1769
- 101,
1770
- 99,
1771
- 116,
1772
- 95,
1773
- 105,
1774
- 100,
1775
- 125,
1776
- 47,
1777
- 114,
1778
- 101,
1779
- 112,
1780
- 111,
1781
- 114,
1782
- 116,
1783
- 115,
1784
- 47,
1785
- 123,
1786
- 116,
1787
- 101,
1788
- 115,
1789
- 116,
1790
- 95,
1791
- 114,
1792
- 101,
1793
- 112,
1794
- 111,
1795
- 114,
1796
- 116,
1797
- 95,
1798
- 105,
1799
- 100,
1800
- 125,
1801
- ]),
1802
- ],
1803
- },
1804
- },
1805
- },
1806
- listWorkflowEvents: {
1807
- name: "ListWorkflowEvents",
1808
- requestType: exports.ListWorkflowEventsRequest,
1809
- requestStream: false,
1810
- responseType: exports.ListWorkflowEventsResponse,
1811
- responseStream: false,
1812
- options: {
1813
- _unknownFields: {
1814
- 578365826: [
1815
- new Uint8Array([
1816
- 94,
1817
- 90,
1818
- 58,
1819
- 18,
1820
- 56,
1821
- 47,
1822
- 118,
1823
- 49,
1824
- 47,
1825
- 112,
1826
- 114,
1827
- 111,
1828
- 106,
1829
- 101,
1830
- 99,
1831
- 116,
1832
- 115,
1833
- 47,
1834
- 123,
1835
- 112,
1836
- 114,
1837
- 111,
1838
- 106,
1839
- 101,
1840
- 99,
1841
- 116,
1842
- 95,
1843
- 105,
1844
- 100,
1845
- 125,
1846
- 47,
1847
- 119,
1848
- 111,
1849
- 114,
1850
- 107,
1851
- 102,
1852
- 108,
1853
- 111,
1854
- 119,
1855
- 115,
1856
- 47,
1857
- 123,
1858
- 119,
1859
- 111,
1860
- 114,
1861
- 107,
1862
- 102,
1863
- 108,
1864
- 111,
1865
- 119,
1866
- 95,
1867
- 105,
1868
- 100,
1869
- 125,
1870
- 47,
1871
- 101,
1872
- 118,
1873
- 101,
1874
- 110,
1875
- 116,
1876
- 115,
1877
- 18,
1878
- 32,
1879
- 47,
1880
- 118,
1881
- 49,
1882
- 47,
1883
- 112,
1884
- 114,
1885
- 111,
1886
- 106,
1887
- 101,
1888
- 99,
1889
- 116,
1890
- 115,
1891
- 47,
1892
- 123,
1893
- 112,
1894
- 114,
1895
- 111,
1896
- 106,
1897
- 101,
1898
- 99,
1899
- 116,
1900
- 95,
1901
- 105,
1902
- 100,
1903
- 125,
1904
- 47,
1905
- 101,
1906
- 118,
1907
- 101,
1908
- 110,
1909
- 116,
1910
- 115,
1911
- ]),
1912
- ],
1913
- },
1914
- },
1915
- },
1916
- },
1917
- };
1918
- function isObject(value) {
1919
- return typeof value === "object" && value !== null;
1920
- }
1921
- function isSet(value) {
1922
- return value !== null && value !== undefined;
1923
- }