weave-typescript 0.11.15 → 0.11.17

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 (69) hide show
  1. package/dist/weaveapi/data/v1/data.pb.d.ts +1 -1
  2. package/dist/weaveapi/data/v1/data.pb.js +11 -11
  3. package/dist/weaveapi/data/v1/service.pb.d.ts +89 -6
  4. package/dist/weaveapi/data/v1/service.pb.js +1195 -364
  5. package/dist/weaveapi/input/v1/input.pb.d.ts +1 -1
  6. package/dist/weaveapi/input/v1/input.pb.js +11 -11
  7. package/dist/weaveapi/input/v1/service.pb.d.ts +89 -10
  8. package/dist/weaveapi/input/v1/service.pb.js +1253 -642
  9. package/dist/weaveapi/integration/v1/integration.pb.d.ts +1 -1
  10. package/dist/weaveapi/integration/v1/integration.pb.js +11 -11
  11. package/dist/weaveapi/integration/v1/service.pb.d.ts +89 -7
  12. package/dist/weaveapi/integration/v1/service.pb.js +1164 -390
  13. package/dist/weaveapi/project/v1/project.pb.d.ts +1 -0
  14. package/dist/weaveapi/project/v1/project.pb.js +17 -1
  15. package/dist/weaveapi/project/v1/service.pb.d.ts +25 -0
  16. package/dist/weaveapi/project/v1/service.pb.js +248 -5
  17. package/dist/weaveapi/report/v1/report.pb.d.ts +2 -0
  18. package/dist/weaveapi/report/v1/report.pb.js +42 -2
  19. package/dist/weaveapi/report/v1/service.pb.d.ts +6 -6
  20. package/dist/weaveapi/report/v1/service.pb.js +416 -121
  21. package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +1 -1
  22. package/dist/weaveapi/requirement/v1/requirement.pb.js +11 -11
  23. package/dist/weaveapi/requirement/v1/service.pb.d.ts +90 -10
  24. package/dist/weaveapi/requirement/v1/service.pb.js +1261 -601
  25. package/dist/weaveapi/run/v1/run.pb.d.ts +1 -0
  26. package/dist/weaveapi/run/v1/run.pb.js +21 -1
  27. package/dist/weaveapi/run/v1/service.pb.d.ts +6 -6
  28. package/dist/weaveapi/run/v1/service.pb.js +448 -126
  29. package/dist/weaveapi/script/v1/script.pb.d.ts +1 -1
  30. package/dist/weaveapi/script/v1/script.pb.js +11 -11
  31. package/dist/weaveapi/script/v1/service.pb.d.ts +90 -14
  32. package/dist/weaveapi/script/v1/service.pb.js +1404 -930
  33. package/dist/weaveapi/suite/v1/service.pb.d.ts +178 -12
  34. package/dist/weaveapi/suite/v1/service.pb.js +2631 -979
  35. package/dist/weaveapi/suite/v1/suite.pb.d.ts +2 -2
  36. package/dist/weaveapi/suite/v1/suite.pb.js +22 -22
  37. package/dist/weaveapi/testcase/v1/service.pb.d.ts +90 -14
  38. package/dist/weaveapi/testcase/v1/service.pb.js +1332 -856
  39. package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +1 -1
  40. package/dist/weaveapi/testcase/v1/testcase.pb.js +11 -11
  41. package/dist/weaveapi/workflow/v1/service.pb.d.ts +26 -0
  42. package/dist/weaveapi/workflow/v1/service.pb.js +293 -5
  43. package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +1 -0
  44. package/dist/weaveapi/workflow/v1/workflow.pb.js +17 -1
  45. package/dist/weavesql/weavedb/data_asset_sql.d.ts +81 -16
  46. package/dist/weavesql/weavedb/data_asset_sql.js +142 -24
  47. package/dist/weavesql/weavedb/input_sql.d.ts +88 -25
  48. package/dist/weavesql/weavedb/input_sql.js +150 -34
  49. package/dist/weavesql/weavedb/integration_sql.d.ts +85 -19
  50. package/dist/weavesql/weavedb/integration_sql.js +147 -28
  51. package/dist/weavesql/weavedb/project_sql.d.ts +29 -5
  52. package/dist/weavesql/weavedb/project_sql.js +73 -37
  53. package/dist/weavesql/weavedb/report_sql.d.ts +61 -7
  54. package/dist/weavesql/weavedb/report_sql.js +157 -81
  55. package/dist/weavesql/weavedb/requirement_sql.d.ts +83 -20
  56. package/dist/weavesql/weavedb/requirement_sql.js +144 -28
  57. package/dist/weavesql/weavedb/run_sql.d.ts +44 -8
  58. package/dist/weavesql/weavedb/run_sql.js +140 -93
  59. package/dist/weavesql/weavedb/suite_sql.d.ts +156 -30
  60. package/dist/weavesql/weavedb/suite_sql.js +274 -42
  61. package/dist/weavesql/weavedb/test_case_sql.d.ts +91 -27
  62. package/dist/weavesql/weavedb/test_case_sql.js +153 -36
  63. package/dist/weavesql/weavedb/test_script_sql.d.ts +91 -27
  64. package/dist/weavesql/weavedb/test_script_sql.js +153 -36
  65. package/dist/weavesql/weavedb/traceability_sql.d.ts +62 -4
  66. package/dist/weavesql/weavedb/traceability_sql.js +245 -37
  67. package/dist/weavesql/weavedb/workflow_sql.d.ts +30 -5
  68. package/dist/weavesql/weavedb/workflow_sql.js +76 -38
  69. package/package.json +1 -1
@@ -5,16 +5,16 @@
5
5
  // protoc unknown
6
6
  // source: weaveapi/suite/v1/service.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.SuiteServiceDefinition = exports.SuiteServiceClientImpl = exports.SuiteServiceServiceName = exports.DeleteDataBindingTemplateResponse = exports.DeleteDataBindingTemplateRequest = exports.ListDataBindingTemplatesResponse = exports.ListDataBindingTemplatesRequest = exports.UpsertDataBindingTemplateResponse = exports.UpsertDataBindingTemplateRequest = exports.DeleteTestSuiteItemResponse = exports.DeleteTestSuiteItemRequest = exports.ListTestSuiteItemsResponse = exports.ListTestSuiteItemsRequest = exports.UpsertTestSuiteItemResponse = exports.UpsertTestSuiteItemRequest = exports.DeleteTestSuiteResponse = exports.DeleteTestSuiteRequest = exports.ArchiveTestSuiteResponse = exports.ArchiveTestSuiteRequest = exports.UpdateTestSuiteResponse = exports.UpdateTestSuiteRequest = exports.ListTestSuitesResponse = exports.ListTestSuitesRequest = exports.GetTestSuiteResponse = exports.GetTestSuiteRequest = exports.CreateTestSuiteResponse = exports.CreateTestSuiteRequest = exports.protobufPackage = void 0;
8
+ exports.SuiteServiceDefinition = exports.SuiteServiceClientImpl = exports.SuiteServiceServiceName = exports.WorkflowDataBindingTemplateBinding = exports.ListWorkflowDataBindingTemplateBindingsResponse = exports.ListWorkflowDataBindingTemplateBindingsRequest = exports.DetachDataBindingTemplateFromWorkflowResponse = exports.DetachDataBindingTemplateFromWorkflowRequest = exports.AttachDataBindingTemplateToWorkflowResponse = exports.AttachDataBindingTemplateToWorkflowRequest = exports.DeleteDataBindingTemplateResponse = exports.DeleteDataBindingTemplateRequest = exports.ListDataBindingTemplatesResponse = exports.ListDataBindingTemplatesRequest = exports.UpsertDataBindingTemplateResponse = exports.UpsertDataBindingTemplateRequest = exports.DeleteTestSuiteItemResponse = exports.DeleteTestSuiteItemRequest = exports.ListTestSuiteItemsResponse = exports.ListTestSuiteItemsRequest = exports.UpsertTestSuiteItemResponse = exports.UpsertTestSuiteItemRequest = exports.WorkflowTestSuiteBinding = exports.ListWorkflowTestSuiteBindingsResponse = exports.ListWorkflowTestSuiteBindingsRequest = exports.DetachTestSuiteFromWorkflowResponse = exports.DetachTestSuiteFromWorkflowRequest = exports.AttachTestSuiteToWorkflowResponse = exports.AttachTestSuiteToWorkflowRequest = exports.DeleteTestSuiteResponse = exports.DeleteTestSuiteRequest = exports.ArchiveTestSuiteResponse = exports.ArchiveTestSuiteRequest = exports.UpdateTestSuiteResponse = exports.UpdateTestSuiteRequest = exports.ListTestSuitesResponse = exports.ListTestSuitesRequest = exports.GetTestSuiteResponse = exports.GetTestSuiteRequest = exports.CreateTestSuiteResponse = exports.CreateTestSuiteRequest = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
10
10
  const wire_1 = require("@bufbuild/protobuf/wire");
11
11
  const struct_pb_1 = require("../../../google/protobuf/struct.pb");
12
+ const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
12
13
  const suite_pb_1 = require("./suite.pb");
13
14
  exports.protobufPackage = "weaveapi.suite.v1";
14
15
  function createBaseCreateTestSuiteRequest() {
15
16
  return {
16
17
  projectId: "",
17
- workflowId: "",
18
18
  name: "",
19
19
  description: "",
20
20
  status: 0,
@@ -28,26 +28,23 @@ exports.CreateTestSuiteRequest = {
28
28
  if (message.projectId !== "") {
29
29
  writer.uint32(10).string(message.projectId);
30
30
  }
31
- if (message.workflowId !== "") {
32
- writer.uint32(18).string(message.workflowId);
33
- }
34
31
  if (message.name !== "") {
35
- writer.uint32(26).string(message.name);
32
+ writer.uint32(18).string(message.name);
36
33
  }
37
34
  if (message.description !== "") {
38
- writer.uint32(34).string(message.description);
35
+ writer.uint32(26).string(message.description);
39
36
  }
40
37
  if (message.status !== 0) {
41
- writer.uint32(40).int32(message.status);
38
+ writer.uint32(32).int32(message.status);
42
39
  }
43
40
  if (message.goal !== "") {
44
- writer.uint32(50).string(message.goal);
41
+ writer.uint32(42).string(message.goal);
45
42
  }
46
43
  if (message.executionProfile !== undefined) {
47
- struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.executionProfile), writer.uint32(58).fork()).join();
44
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.executionProfile), writer.uint32(50).fork()).join();
48
45
  }
49
46
  if (message.metadata !== undefined) {
50
- struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(66).fork()).join();
47
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(58).fork()).join();
51
48
  }
52
49
  return writer;
53
50
  },
@@ -69,48 +66,41 @@ exports.CreateTestSuiteRequest = {
69
66
  if (tag !== 18) {
70
67
  break;
71
68
  }
72
- message.workflowId = reader.string();
69
+ message.name = reader.string();
73
70
  continue;
74
71
  }
75
72
  case 3: {
76
73
  if (tag !== 26) {
77
74
  break;
78
75
  }
79
- message.name = reader.string();
76
+ message.description = reader.string();
80
77
  continue;
81
78
  }
82
79
  case 4: {
83
- if (tag !== 34) {
80
+ if (tag !== 32) {
84
81
  break;
85
82
  }
86
- message.description = reader.string();
83
+ message.status = reader.int32();
87
84
  continue;
88
85
  }
89
86
  case 5: {
90
- if (tag !== 40) {
87
+ if (tag !== 42) {
91
88
  break;
92
89
  }
93
- message.status = reader.int32();
90
+ message.goal = reader.string();
94
91
  continue;
95
92
  }
96
93
  case 6: {
97
94
  if (tag !== 50) {
98
95
  break;
99
96
  }
100
- message.goal = reader.string();
97
+ message.executionProfile = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
101
98
  continue;
102
99
  }
103
100
  case 7: {
104
101
  if (tag !== 58) {
105
102
  break;
106
103
  }
107
- message.executionProfile = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
108
- continue;
109
- }
110
- case 8: {
111
- if (tag !== 66) {
112
- break;
113
- }
114
104
  message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
115
105
  continue;
116
106
  }
@@ -129,11 +119,6 @@ exports.CreateTestSuiteRequest = {
129
119
  : isSet(object.project_id)
130
120
  ? globalThis.String(object.project_id)
131
121
  : "",
132
- workflowId: isSet(object.workflowId)
133
- ? globalThis.String(object.workflowId)
134
- : isSet(object.workflow_id)
135
- ? globalThis.String(object.workflow_id)
136
- : "",
137
122
  name: isSet(object.name) ? globalThis.String(object.name) : "",
138
123
  description: isSet(object.description) ? globalThis.String(object.description) : "",
139
124
  status: isSet(object.status) ? (0, suite_pb_1.suiteStatusFromJSON)(object.status) : 0,
@@ -151,9 +136,6 @@ exports.CreateTestSuiteRequest = {
151
136
  if (message.projectId !== "") {
152
137
  obj.projectId = message.projectId;
153
138
  }
154
- if (message.workflowId !== "") {
155
- obj.workflowId = message.workflowId;
156
- }
157
139
  if (message.name !== "") {
158
140
  obj.name = message.name;
159
141
  }
@@ -178,16 +160,15 @@ exports.CreateTestSuiteRequest = {
178
160
  return exports.CreateTestSuiteRequest.fromPartial(base !== null && base !== void 0 ? base : {});
179
161
  },
180
162
  fromPartial(object) {
181
- var _a, _b, _c, _d, _e, _f, _g, _h;
163
+ var _a, _b, _c, _d, _e, _f, _g;
182
164
  const message = createBaseCreateTestSuiteRequest();
183
165
  message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
184
- message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
185
- message.name = (_c = object.name) !== null && _c !== void 0 ? _c : "";
186
- message.description = (_d = object.description) !== null && _d !== void 0 ? _d : "";
187
- message.status = (_e = object.status) !== null && _e !== void 0 ? _e : 0;
188
- message.goal = (_f = object.goal) !== null && _f !== void 0 ? _f : "";
189
- message.executionProfile = (_g = object.executionProfile) !== null && _g !== void 0 ? _g : undefined;
190
- message.metadata = (_h = object.metadata) !== null && _h !== void 0 ? _h : undefined;
166
+ message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
167
+ message.description = (_c = object.description) !== null && _c !== void 0 ? _c : "";
168
+ message.status = (_d = object.status) !== null && _d !== void 0 ? _d : 0;
169
+ message.goal = (_e = object.goal) !== null && _e !== void 0 ? _e : "";
170
+ message.executionProfile = (_f = object.executionProfile) !== null && _f !== void 0 ? _f : undefined;
171
+ message.metadata = (_g = object.metadata) !== null && _g !== void 0 ? _g : undefined;
191
172
  return message;
192
173
  },
193
174
  };
@@ -251,18 +232,15 @@ exports.CreateTestSuiteResponse = {
251
232
  },
252
233
  };
253
234
  function createBaseGetTestSuiteRequest() {
254
- return { projectId: "", workflowId: "", testSuiteId: "" };
235
+ return { projectId: "", testSuiteId: "" };
255
236
  }
256
237
  exports.GetTestSuiteRequest = {
257
238
  encode(message, writer = new wire_1.BinaryWriter()) {
258
239
  if (message.projectId !== "") {
259
240
  writer.uint32(10).string(message.projectId);
260
241
  }
261
- if (message.workflowId !== "") {
262
- writer.uint32(18).string(message.workflowId);
263
- }
264
242
  if (message.testSuiteId !== "") {
265
- writer.uint32(26).string(message.testSuiteId);
243
+ writer.uint32(18).string(message.testSuiteId);
266
244
  }
267
245
  return writer;
268
246
  },
@@ -284,13 +262,6 @@ exports.GetTestSuiteRequest = {
284
262
  if (tag !== 18) {
285
263
  break;
286
264
  }
287
- message.workflowId = reader.string();
288
- continue;
289
- }
290
- case 3: {
291
- if (tag !== 26) {
292
- break;
293
- }
294
265
  message.testSuiteId = reader.string();
295
266
  continue;
296
267
  }
@@ -309,11 +280,6 @@ exports.GetTestSuiteRequest = {
309
280
  : isSet(object.project_id)
310
281
  ? globalThis.String(object.project_id)
311
282
  : "",
312
- workflowId: isSet(object.workflowId)
313
- ? globalThis.String(object.workflowId)
314
- : isSet(object.workflow_id)
315
- ? globalThis.String(object.workflow_id)
316
- : "",
317
283
  testSuiteId: isSet(object.testSuiteId)
318
284
  ? globalThis.String(object.testSuiteId)
319
285
  : isSet(object.test_suite_id)
@@ -326,9 +292,6 @@ exports.GetTestSuiteRequest = {
326
292
  if (message.projectId !== "") {
327
293
  obj.projectId = message.projectId;
328
294
  }
329
- if (message.workflowId !== "") {
330
- obj.workflowId = message.workflowId;
331
- }
332
295
  if (message.testSuiteId !== "") {
333
296
  obj.testSuiteId = message.testSuiteId;
334
297
  }
@@ -338,11 +301,10 @@ exports.GetTestSuiteRequest = {
338
301
  return exports.GetTestSuiteRequest.fromPartial(base !== null && base !== void 0 ? base : {});
339
302
  },
340
303
  fromPartial(object) {
341
- var _a, _b, _c;
304
+ var _a, _b;
342
305
  const message = createBaseGetTestSuiteRequest();
343
306
  message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
344
- message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
345
- message.testSuiteId = (_c = object.testSuiteId) !== null && _c !== void 0 ? _c : "";
307
+ message.testSuiteId = (_b = object.testSuiteId) !== null && _b !== void 0 ? _b : "";
346
308
  return message;
347
309
  },
348
310
  };
@@ -406,24 +368,24 @@ exports.GetTestSuiteResponse = {
406
368
  },
407
369
  };
408
370
  function createBaseListTestSuitesRequest() {
409
- return { projectId: "", workflowId: "", includeArchived: false, pageSize: 0, pageToken: "" };
371
+ return { projectId: "", includeArchived: false, pageSize: 0, pageToken: "", workflowId: "" };
410
372
  }
411
373
  exports.ListTestSuitesRequest = {
412
374
  encode(message, writer = new wire_1.BinaryWriter()) {
413
375
  if (message.projectId !== "") {
414
376
  writer.uint32(10).string(message.projectId);
415
377
  }
416
- if (message.workflowId !== "") {
417
- writer.uint32(18).string(message.workflowId);
418
- }
419
378
  if (message.includeArchived !== false) {
420
- writer.uint32(24).bool(message.includeArchived);
379
+ writer.uint32(16).bool(message.includeArchived);
421
380
  }
422
381
  if (message.pageSize !== 0) {
423
- writer.uint32(32).int32(message.pageSize);
382
+ writer.uint32(24).int32(message.pageSize);
424
383
  }
425
384
  if (message.pageToken !== "") {
426
- writer.uint32(42).string(message.pageToken);
385
+ writer.uint32(34).string(message.pageToken);
386
+ }
387
+ if (message.workflowId !== "") {
388
+ writer.uint32(42).string(message.workflowId);
427
389
  }
428
390
  return writer;
429
391
  },
@@ -442,31 +404,31 @@ exports.ListTestSuitesRequest = {
442
404
  continue;
443
405
  }
444
406
  case 2: {
445
- if (tag !== 18) {
407
+ if (tag !== 16) {
446
408
  break;
447
409
  }
448
- message.workflowId = reader.string();
410
+ message.includeArchived = reader.bool();
449
411
  continue;
450
412
  }
451
413
  case 3: {
452
414
  if (tag !== 24) {
453
415
  break;
454
416
  }
455
- message.includeArchived = reader.bool();
417
+ message.pageSize = reader.int32();
456
418
  continue;
457
419
  }
458
420
  case 4: {
459
- if (tag !== 32) {
421
+ if (tag !== 34) {
460
422
  break;
461
423
  }
462
- message.pageSize = reader.int32();
424
+ message.pageToken = reader.string();
463
425
  continue;
464
426
  }
465
427
  case 5: {
466
428
  if (tag !== 42) {
467
429
  break;
468
430
  }
469
- message.pageToken = reader.string();
431
+ message.workflowId = reader.string();
470
432
  continue;
471
433
  }
472
434
  }
@@ -484,11 +446,6 @@ exports.ListTestSuitesRequest = {
484
446
  : isSet(object.project_id)
485
447
  ? globalThis.String(object.project_id)
486
448
  : "",
487
- workflowId: isSet(object.workflowId)
488
- ? globalThis.String(object.workflowId)
489
- : isSet(object.workflow_id)
490
- ? globalThis.String(object.workflow_id)
491
- : "",
492
449
  includeArchived: isSet(object.includeArchived)
493
450
  ? globalThis.Boolean(object.includeArchived)
494
451
  : isSet(object.include_archived)
@@ -504,6 +461,11 @@ exports.ListTestSuitesRequest = {
504
461
  : isSet(object.page_token)
505
462
  ? globalThis.String(object.page_token)
506
463
  : "",
464
+ workflowId: isSet(object.workflowId)
465
+ ? globalThis.String(object.workflowId)
466
+ : isSet(object.workflow_id)
467
+ ? globalThis.String(object.workflow_id)
468
+ : "",
507
469
  };
508
470
  },
509
471
  toJSON(message) {
@@ -511,9 +473,6 @@ exports.ListTestSuitesRequest = {
511
473
  if (message.projectId !== "") {
512
474
  obj.projectId = message.projectId;
513
475
  }
514
- if (message.workflowId !== "") {
515
- obj.workflowId = message.workflowId;
516
- }
517
476
  if (message.includeArchived !== false) {
518
477
  obj.includeArchived = message.includeArchived;
519
478
  }
@@ -523,6 +482,9 @@ exports.ListTestSuitesRequest = {
523
482
  if (message.pageToken !== "") {
524
483
  obj.pageToken = message.pageToken;
525
484
  }
485
+ if (message.workflowId !== "") {
486
+ obj.workflowId = message.workflowId;
487
+ }
526
488
  return obj;
527
489
  },
528
490
  create(base) {
@@ -532,10 +494,10 @@ exports.ListTestSuitesRequest = {
532
494
  var _a, _b, _c, _d, _e;
533
495
  const message = createBaseListTestSuitesRequest();
534
496
  message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
535
- message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
536
- message.includeArchived = (_c = object.includeArchived) !== null && _c !== void 0 ? _c : false;
537
- message.pageSize = (_d = object.pageSize) !== null && _d !== void 0 ? _d : 0;
538
- message.pageToken = (_e = object.pageToken) !== null && _e !== void 0 ? _e : "";
497
+ message.includeArchived = (_b = object.includeArchived) !== null && _b !== void 0 ? _b : false;
498
+ message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
499
+ message.pageToken = (_d = object.pageToken) !== null && _d !== void 0 ? _d : "";
500
+ message.workflowId = (_e = object.workflowId) !== null && _e !== void 0 ? _e : "";
539
501
  return message;
540
502
  },
541
503
  };
@@ -621,7 +583,6 @@ exports.ListTestSuitesResponse = {
621
583
  function createBaseUpdateTestSuiteRequest() {
622
584
  return {
623
585
  projectId: "",
624
- workflowId: "",
625
586
  testSuiteId: "",
626
587
  name: "",
627
588
  description: "",
@@ -637,32 +598,29 @@ exports.UpdateTestSuiteRequest = {
637
598
  if (message.projectId !== "") {
638
599
  writer.uint32(10).string(message.projectId);
639
600
  }
640
- if (message.workflowId !== "") {
641
- writer.uint32(18).string(message.workflowId);
642
- }
643
601
  if (message.testSuiteId !== "") {
644
- writer.uint32(26).string(message.testSuiteId);
602
+ writer.uint32(18).string(message.testSuiteId);
645
603
  }
646
604
  if (message.name !== "") {
647
- writer.uint32(34).string(message.name);
605
+ writer.uint32(26).string(message.name);
648
606
  }
649
607
  if (message.description !== "") {
650
- writer.uint32(42).string(message.description);
608
+ writer.uint32(34).string(message.description);
651
609
  }
652
610
  if (message.status !== 0) {
653
- writer.uint32(48).int32(message.status);
611
+ writer.uint32(40).int32(message.status);
654
612
  }
655
613
  if (message.goal !== "") {
656
- writer.uint32(58).string(message.goal);
614
+ writer.uint32(50).string(message.goal);
657
615
  }
658
616
  if (message.currentVersion !== 0) {
659
- writer.uint32(64).int32(message.currentVersion);
617
+ writer.uint32(56).int32(message.currentVersion);
660
618
  }
661
619
  if (message.executionProfile !== undefined) {
662
- struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.executionProfile), writer.uint32(74).fork()).join();
620
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.executionProfile), writer.uint32(66).fork()).join();
663
621
  }
664
622
  if (message.metadata !== undefined) {
665
- struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(82).fork()).join();
623
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(74).fork()).join();
666
624
  }
667
625
  return writer;
668
626
  },
@@ -684,62 +642,55 @@ exports.UpdateTestSuiteRequest = {
684
642
  if (tag !== 18) {
685
643
  break;
686
644
  }
687
- message.workflowId = reader.string();
645
+ message.testSuiteId = reader.string();
688
646
  continue;
689
647
  }
690
648
  case 3: {
691
649
  if (tag !== 26) {
692
650
  break;
693
651
  }
694
- message.testSuiteId = reader.string();
652
+ message.name = reader.string();
695
653
  continue;
696
654
  }
697
655
  case 4: {
698
656
  if (tag !== 34) {
699
657
  break;
700
658
  }
701
- message.name = reader.string();
659
+ message.description = reader.string();
702
660
  continue;
703
661
  }
704
662
  case 5: {
705
- if (tag !== 42) {
663
+ if (tag !== 40) {
706
664
  break;
707
665
  }
708
- message.description = reader.string();
666
+ message.status = reader.int32();
709
667
  continue;
710
668
  }
711
669
  case 6: {
712
- if (tag !== 48) {
670
+ if (tag !== 50) {
713
671
  break;
714
672
  }
715
- message.status = reader.int32();
673
+ message.goal = reader.string();
716
674
  continue;
717
675
  }
718
676
  case 7: {
719
- if (tag !== 58) {
677
+ if (tag !== 56) {
720
678
  break;
721
679
  }
722
- message.goal = reader.string();
680
+ message.currentVersion = reader.int32();
723
681
  continue;
724
682
  }
725
683
  case 8: {
726
- if (tag !== 64) {
684
+ if (tag !== 66) {
727
685
  break;
728
686
  }
729
- message.currentVersion = reader.int32();
687
+ message.executionProfile = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
730
688
  continue;
731
689
  }
732
690
  case 9: {
733
691
  if (tag !== 74) {
734
692
  break;
735
693
  }
736
- message.executionProfile = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
737
- continue;
738
- }
739
- case 10: {
740
- if (tag !== 82) {
741
- break;
742
- }
743
694
  message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
744
695
  continue;
745
696
  }
@@ -758,11 +709,6 @@ exports.UpdateTestSuiteRequest = {
758
709
  : isSet(object.project_id)
759
710
  ? globalThis.String(object.project_id)
760
711
  : "",
761
- workflowId: isSet(object.workflowId)
762
- ? globalThis.String(object.workflowId)
763
- : isSet(object.workflow_id)
764
- ? globalThis.String(object.workflow_id)
765
- : "",
766
712
  testSuiteId: isSet(object.testSuiteId)
767
713
  ? globalThis.String(object.testSuiteId)
768
714
  : isSet(object.test_suite_id)
@@ -790,9 +736,6 @@ exports.UpdateTestSuiteRequest = {
790
736
  if (message.projectId !== "") {
791
737
  obj.projectId = message.projectId;
792
738
  }
793
- if (message.workflowId !== "") {
794
- obj.workflowId = message.workflowId;
795
- }
796
739
  if (message.testSuiteId !== "") {
797
740
  obj.testSuiteId = message.testSuiteId;
798
741
  }
@@ -823,18 +766,17 @@ exports.UpdateTestSuiteRequest = {
823
766
  return exports.UpdateTestSuiteRequest.fromPartial(base !== null && base !== void 0 ? base : {});
824
767
  },
825
768
  fromPartial(object) {
826
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
769
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
827
770
  const message = createBaseUpdateTestSuiteRequest();
828
771
  message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
829
- message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
830
- message.testSuiteId = (_c = object.testSuiteId) !== null && _c !== void 0 ? _c : "";
831
- message.name = (_d = object.name) !== null && _d !== void 0 ? _d : "";
832
- message.description = (_e = object.description) !== null && _e !== void 0 ? _e : "";
833
- message.status = (_f = object.status) !== null && _f !== void 0 ? _f : 0;
834
- message.goal = (_g = object.goal) !== null && _g !== void 0 ? _g : "";
835
- message.currentVersion = (_h = object.currentVersion) !== null && _h !== void 0 ? _h : 0;
836
- message.executionProfile = (_j = object.executionProfile) !== null && _j !== void 0 ? _j : undefined;
837
- message.metadata = (_k = object.metadata) !== null && _k !== void 0 ? _k : undefined;
772
+ message.testSuiteId = (_b = object.testSuiteId) !== null && _b !== void 0 ? _b : "";
773
+ message.name = (_c = object.name) !== null && _c !== void 0 ? _c : "";
774
+ message.description = (_d = object.description) !== null && _d !== void 0 ? _d : "";
775
+ message.status = (_e = object.status) !== null && _e !== void 0 ? _e : 0;
776
+ message.goal = (_f = object.goal) !== null && _f !== void 0 ? _f : "";
777
+ message.currentVersion = (_g = object.currentVersion) !== null && _g !== void 0 ? _g : 0;
778
+ message.executionProfile = (_h = object.executionProfile) !== null && _h !== void 0 ? _h : undefined;
779
+ message.metadata = (_j = object.metadata) !== null && _j !== void 0 ? _j : undefined;
838
780
  return message;
839
781
  },
840
782
  };
@@ -898,18 +840,15 @@ exports.UpdateTestSuiteResponse = {
898
840
  },
899
841
  };
900
842
  function createBaseArchiveTestSuiteRequest() {
901
- return { projectId: "", workflowId: "", testSuiteId: "" };
843
+ return { projectId: "", testSuiteId: "" };
902
844
  }
903
845
  exports.ArchiveTestSuiteRequest = {
904
846
  encode(message, writer = new wire_1.BinaryWriter()) {
905
847
  if (message.projectId !== "") {
906
848
  writer.uint32(10).string(message.projectId);
907
849
  }
908
- if (message.workflowId !== "") {
909
- writer.uint32(18).string(message.workflowId);
910
- }
911
850
  if (message.testSuiteId !== "") {
912
- writer.uint32(26).string(message.testSuiteId);
851
+ writer.uint32(18).string(message.testSuiteId);
913
852
  }
914
853
  return writer;
915
854
  },
@@ -931,13 +870,6 @@ exports.ArchiveTestSuiteRequest = {
931
870
  if (tag !== 18) {
932
871
  break;
933
872
  }
934
- message.workflowId = reader.string();
935
- continue;
936
- }
937
- case 3: {
938
- if (tag !== 26) {
939
- break;
940
- }
941
873
  message.testSuiteId = reader.string();
942
874
  continue;
943
875
  }
@@ -956,11 +888,6 @@ exports.ArchiveTestSuiteRequest = {
956
888
  : isSet(object.project_id)
957
889
  ? globalThis.String(object.project_id)
958
890
  : "",
959
- workflowId: isSet(object.workflowId)
960
- ? globalThis.String(object.workflowId)
961
- : isSet(object.workflow_id)
962
- ? globalThis.String(object.workflow_id)
963
- : "",
964
891
  testSuiteId: isSet(object.testSuiteId)
965
892
  ? globalThis.String(object.testSuiteId)
966
893
  : isSet(object.test_suite_id)
@@ -973,9 +900,6 @@ exports.ArchiveTestSuiteRequest = {
973
900
  if (message.projectId !== "") {
974
901
  obj.projectId = message.projectId;
975
902
  }
976
- if (message.workflowId !== "") {
977
- obj.workflowId = message.workflowId;
978
- }
979
903
  if (message.testSuiteId !== "") {
980
904
  obj.testSuiteId = message.testSuiteId;
981
905
  }
@@ -985,11 +909,10 @@ exports.ArchiveTestSuiteRequest = {
985
909
  return exports.ArchiveTestSuiteRequest.fromPartial(base !== null && base !== void 0 ? base : {});
986
910
  },
987
911
  fromPartial(object) {
988
- var _a, _b, _c;
912
+ var _a, _b;
989
913
  const message = createBaseArchiveTestSuiteRequest();
990
914
  message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
991
- message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
992
- message.testSuiteId = (_c = object.testSuiteId) !== null && _c !== void 0 ? _c : "";
915
+ message.testSuiteId = (_b = object.testSuiteId) !== null && _b !== void 0 ? _b : "";
993
916
  return message;
994
917
  },
995
918
  };
@@ -1053,18 +976,15 @@ exports.ArchiveTestSuiteResponse = {
1053
976
  },
1054
977
  };
1055
978
  function createBaseDeleteTestSuiteRequest() {
1056
- return { projectId: "", workflowId: "", testSuiteId: "" };
979
+ return { projectId: "", testSuiteId: "" };
1057
980
  }
1058
981
  exports.DeleteTestSuiteRequest = {
1059
982
  encode(message, writer = new wire_1.BinaryWriter()) {
1060
983
  if (message.projectId !== "") {
1061
984
  writer.uint32(10).string(message.projectId);
1062
985
  }
1063
- if (message.workflowId !== "") {
1064
- writer.uint32(18).string(message.workflowId);
1065
- }
1066
986
  if (message.testSuiteId !== "") {
1067
- writer.uint32(26).string(message.testSuiteId);
987
+ writer.uint32(18).string(message.testSuiteId);
1068
988
  }
1069
989
  return writer;
1070
990
  },
@@ -1086,13 +1006,6 @@ exports.DeleteTestSuiteRequest = {
1086
1006
  if (tag !== 18) {
1087
1007
  break;
1088
1008
  }
1089
- message.workflowId = reader.string();
1090
- continue;
1091
- }
1092
- case 3: {
1093
- if (tag !== 26) {
1094
- break;
1095
- }
1096
1009
  message.testSuiteId = reader.string();
1097
1010
  continue;
1098
1011
  }
@@ -1111,11 +1024,6 @@ exports.DeleteTestSuiteRequest = {
1111
1024
  : isSet(object.project_id)
1112
1025
  ? globalThis.String(object.project_id)
1113
1026
  : "",
1114
- workflowId: isSet(object.workflowId)
1115
- ? globalThis.String(object.workflowId)
1116
- : isSet(object.workflow_id)
1117
- ? globalThis.String(object.workflow_id)
1118
- : "",
1119
1027
  testSuiteId: isSet(object.testSuiteId)
1120
1028
  ? globalThis.String(object.testSuiteId)
1121
1029
  : isSet(object.test_suite_id)
@@ -1128,9 +1036,6 @@ exports.DeleteTestSuiteRequest = {
1128
1036
  if (message.projectId !== "") {
1129
1037
  obj.projectId = message.projectId;
1130
1038
  }
1131
- if (message.workflowId !== "") {
1132
- obj.workflowId = message.workflowId;
1133
- }
1134
1039
  if (message.testSuiteId !== "") {
1135
1040
  obj.testSuiteId = message.testSuiteId;
1136
1041
  }
@@ -1140,11 +1045,10 @@ exports.DeleteTestSuiteRequest = {
1140
1045
  return exports.DeleteTestSuiteRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1141
1046
  },
1142
1047
  fromPartial(object) {
1143
- var _a, _b, _c;
1048
+ var _a, _b;
1144
1049
  const message = createBaseDeleteTestSuiteRequest();
1145
1050
  message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1146
- message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
1147
- message.testSuiteId = (_c = object.testSuiteId) !== null && _c !== void 0 ? _c : "";
1051
+ message.testSuiteId = (_b = object.testSuiteId) !== null && _b !== void 0 ? _b : "";
1148
1052
  return message;
1149
1053
  },
1150
1054
  };
@@ -1185,20 +1089,10 @@ exports.DeleteTestSuiteResponse = {
1185
1089
  return message;
1186
1090
  },
1187
1091
  };
1188
- function createBaseUpsertTestSuiteItemRequest() {
1189
- return {
1190
- projectId: "",
1191
- workflowId: "",
1192
- testSuiteId: "",
1193
- testSuiteItemId: "",
1194
- testCaseId: "",
1195
- testScriptId: "",
1196
- position: 0,
1197
- isRequired: false,
1198
- metadata: undefined,
1199
- };
1092
+ function createBaseAttachTestSuiteToWorkflowRequest() {
1093
+ return { projectId: "", workflowId: "", testSuiteId: "", attachedBy: "", metadata: undefined };
1200
1094
  }
1201
- exports.UpsertTestSuiteItemRequest = {
1095
+ exports.AttachTestSuiteToWorkflowRequest = {
1202
1096
  encode(message, writer = new wire_1.BinaryWriter()) {
1203
1097
  if (message.projectId !== "") {
1204
1098
  writer.uint32(10).string(message.projectId);
@@ -1209,30 +1103,18 @@ exports.UpsertTestSuiteItemRequest = {
1209
1103
  if (message.testSuiteId !== "") {
1210
1104
  writer.uint32(26).string(message.testSuiteId);
1211
1105
  }
1212
- if (message.testSuiteItemId !== "") {
1213
- writer.uint32(34).string(message.testSuiteItemId);
1214
- }
1215
- if (message.testCaseId !== "") {
1216
- writer.uint32(42).string(message.testCaseId);
1217
- }
1218
- if (message.testScriptId !== "") {
1219
- writer.uint32(50).string(message.testScriptId);
1220
- }
1221
- if (message.position !== 0) {
1222
- writer.uint32(56).int32(message.position);
1223
- }
1224
- if (message.isRequired !== false) {
1225
- writer.uint32(64).bool(message.isRequired);
1106
+ if (message.attachedBy !== "") {
1107
+ writer.uint32(34).string(message.attachedBy);
1226
1108
  }
1227
1109
  if (message.metadata !== undefined) {
1228
- struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(74).fork()).join();
1110
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(42).fork()).join();
1229
1111
  }
1230
1112
  return writer;
1231
1113
  },
1232
1114
  decode(input, length) {
1233
1115
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1234
1116
  const end = length === undefined ? reader.len : reader.pos + length;
1235
- const message = createBaseUpsertTestSuiteItemRequest();
1117
+ const message = createBaseAttachTestSuiteToWorkflowRequest();
1236
1118
  while (reader.pos < end) {
1237
1119
  const tag = reader.uint32();
1238
1120
  switch (tag >>> 3) {
@@ -1261,41 +1143,13 @@ exports.UpsertTestSuiteItemRequest = {
1261
1143
  if (tag !== 34) {
1262
1144
  break;
1263
1145
  }
1264
- message.testSuiteItemId = reader.string();
1146
+ message.attachedBy = reader.string();
1265
1147
  continue;
1266
1148
  }
1267
1149
  case 5: {
1268
1150
  if (tag !== 42) {
1269
1151
  break;
1270
1152
  }
1271
- message.testCaseId = reader.string();
1272
- continue;
1273
- }
1274
- case 6: {
1275
- if (tag !== 50) {
1276
- break;
1277
- }
1278
- message.testScriptId = reader.string();
1279
- continue;
1280
- }
1281
- case 7: {
1282
- if (tag !== 56) {
1283
- break;
1284
- }
1285
- message.position = reader.int32();
1286
- continue;
1287
- }
1288
- case 8: {
1289
- if (tag !== 64) {
1290
- break;
1291
- }
1292
- message.isRequired = reader.bool();
1293
- continue;
1294
- }
1295
- case 9: {
1296
- if (tag !== 74) {
1297
- break;
1298
- }
1299
1153
  message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
1300
1154
  continue;
1301
1155
  }
@@ -1324,27 +1178,11 @@ exports.UpsertTestSuiteItemRequest = {
1324
1178
  : isSet(object.test_suite_id)
1325
1179
  ? globalThis.String(object.test_suite_id)
1326
1180
  : "",
1327
- testSuiteItemId: isSet(object.testSuiteItemId)
1328
- ? globalThis.String(object.testSuiteItemId)
1329
- : isSet(object.test_suite_item_id)
1330
- ? globalThis.String(object.test_suite_item_id)
1181
+ attachedBy: isSet(object.attachedBy)
1182
+ ? globalThis.String(object.attachedBy)
1183
+ : isSet(object.attached_by)
1184
+ ? globalThis.String(object.attached_by)
1331
1185
  : "",
1332
- testCaseId: isSet(object.testCaseId)
1333
- ? globalThis.String(object.testCaseId)
1334
- : isSet(object.test_case_id)
1335
- ? globalThis.String(object.test_case_id)
1336
- : "",
1337
- testScriptId: isSet(object.testScriptId)
1338
- ? globalThis.String(object.testScriptId)
1339
- : isSet(object.test_script_id)
1340
- ? globalThis.String(object.test_script_id)
1341
- : "",
1342
- position: isSet(object.position) ? globalThis.Number(object.position) : 0,
1343
- isRequired: isSet(object.isRequired)
1344
- ? globalThis.Boolean(object.isRequired)
1345
- : isSet(object.is_required)
1346
- ? globalThis.Boolean(object.is_required)
1347
- : false,
1348
1186
  metadata: isObject(object.metadata) ? object.metadata : undefined,
1349
1187
  };
1350
1188
  },
@@ -1359,20 +1197,8 @@ exports.UpsertTestSuiteItemRequest = {
1359
1197
  if (message.testSuiteId !== "") {
1360
1198
  obj.testSuiteId = message.testSuiteId;
1361
1199
  }
1362
- if (message.testSuiteItemId !== "") {
1363
- obj.testSuiteItemId = message.testSuiteItemId;
1364
- }
1365
- if (message.testCaseId !== "") {
1366
- obj.testCaseId = message.testCaseId;
1367
- }
1368
- if (message.testScriptId !== "") {
1369
- obj.testScriptId = message.testScriptId;
1370
- }
1371
- if (message.position !== 0) {
1372
- obj.position = Math.round(message.position);
1373
- }
1374
- if (message.isRequired !== false) {
1375
- obj.isRequired = message.isRequired;
1200
+ if (message.attachedBy !== "") {
1201
+ obj.attachedBy = message.attachedBy;
1376
1202
  }
1377
1203
  if (message.metadata !== undefined) {
1378
1204
  obj.metadata = message.metadata;
@@ -1380,37 +1206,33 @@ exports.UpsertTestSuiteItemRequest = {
1380
1206
  return obj;
1381
1207
  },
1382
1208
  create(base) {
1383
- return exports.UpsertTestSuiteItemRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1209
+ return exports.AttachTestSuiteToWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1384
1210
  },
1385
1211
  fromPartial(object) {
1386
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1387
- const message = createBaseUpsertTestSuiteItemRequest();
1212
+ var _a, _b, _c, _d, _e;
1213
+ const message = createBaseAttachTestSuiteToWorkflowRequest();
1388
1214
  message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1389
1215
  message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
1390
1216
  message.testSuiteId = (_c = object.testSuiteId) !== null && _c !== void 0 ? _c : "";
1391
- message.testSuiteItemId = (_d = object.testSuiteItemId) !== null && _d !== void 0 ? _d : "";
1392
- message.testCaseId = (_e = object.testCaseId) !== null && _e !== void 0 ? _e : "";
1393
- message.testScriptId = (_f = object.testScriptId) !== null && _f !== void 0 ? _f : "";
1394
- message.position = (_g = object.position) !== null && _g !== void 0 ? _g : 0;
1395
- message.isRequired = (_h = object.isRequired) !== null && _h !== void 0 ? _h : false;
1396
- message.metadata = (_j = object.metadata) !== null && _j !== void 0 ? _j : undefined;
1217
+ message.attachedBy = (_d = object.attachedBy) !== null && _d !== void 0 ? _d : "";
1218
+ message.metadata = (_e = object.metadata) !== null && _e !== void 0 ? _e : undefined;
1397
1219
  return message;
1398
1220
  },
1399
1221
  };
1400
- function createBaseUpsertTestSuiteItemResponse() {
1401
- return { testSuiteItem: undefined };
1222
+ function createBaseAttachTestSuiteToWorkflowResponse() {
1223
+ return { binding: undefined };
1402
1224
  }
1403
- exports.UpsertTestSuiteItemResponse = {
1225
+ exports.AttachTestSuiteToWorkflowResponse = {
1404
1226
  encode(message, writer = new wire_1.BinaryWriter()) {
1405
- if (message.testSuiteItem !== undefined) {
1406
- suite_pb_1.TestSuiteItem.encode(message.testSuiteItem, writer.uint32(10).fork()).join();
1227
+ if (message.binding !== undefined) {
1228
+ exports.WorkflowTestSuiteBinding.encode(message.binding, writer.uint32(10).fork()).join();
1407
1229
  }
1408
1230
  return writer;
1409
1231
  },
1410
1232
  decode(input, length) {
1411
1233
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1412
1234
  const end = length === undefined ? reader.len : reader.pos + length;
1413
- const message = createBaseUpsertTestSuiteItemResponse();
1235
+ const message = createBaseAttachTestSuiteToWorkflowResponse();
1414
1236
  while (reader.pos < end) {
1415
1237
  const tag = reader.uint32();
1416
1238
  switch (tag >>> 3) {
@@ -1418,7 +1240,7 @@ exports.UpsertTestSuiteItemResponse = {
1418
1240
  if (tag !== 10) {
1419
1241
  break;
1420
1242
  }
1421
- message.testSuiteItem = suite_pb_1.TestSuiteItem.decode(reader, reader.uint32());
1243
+ message.binding = exports.WorkflowTestSuiteBinding.decode(reader, reader.uint32());
1422
1244
  continue;
1423
1245
  }
1424
1246
  }
@@ -1430,36 +1252,30 @@ exports.UpsertTestSuiteItemResponse = {
1430
1252
  return message;
1431
1253
  },
1432
1254
  fromJSON(object) {
1433
- return {
1434
- testSuiteItem: isSet(object.testSuiteItem)
1435
- ? suite_pb_1.TestSuiteItem.fromJSON(object.testSuiteItem)
1436
- : isSet(object.test_suite_item)
1437
- ? suite_pb_1.TestSuiteItem.fromJSON(object.test_suite_item)
1438
- : undefined,
1439
- };
1255
+ return { binding: isSet(object.binding) ? exports.WorkflowTestSuiteBinding.fromJSON(object.binding) : undefined };
1440
1256
  },
1441
1257
  toJSON(message) {
1442
1258
  const obj = {};
1443
- if (message.testSuiteItem !== undefined) {
1444
- obj.testSuiteItem = suite_pb_1.TestSuiteItem.toJSON(message.testSuiteItem);
1259
+ if (message.binding !== undefined) {
1260
+ obj.binding = exports.WorkflowTestSuiteBinding.toJSON(message.binding);
1445
1261
  }
1446
1262
  return obj;
1447
1263
  },
1448
1264
  create(base) {
1449
- return exports.UpsertTestSuiteItemResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1265
+ return exports.AttachTestSuiteToWorkflowResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1450
1266
  },
1451
1267
  fromPartial(object) {
1452
- const message = createBaseUpsertTestSuiteItemResponse();
1453
- message.testSuiteItem = (object.testSuiteItem !== undefined && object.testSuiteItem !== null)
1454
- ? suite_pb_1.TestSuiteItem.fromPartial(object.testSuiteItem)
1268
+ const message = createBaseAttachTestSuiteToWorkflowResponse();
1269
+ message.binding = (object.binding !== undefined && object.binding !== null)
1270
+ ? exports.WorkflowTestSuiteBinding.fromPartial(object.binding)
1455
1271
  : undefined;
1456
1272
  return message;
1457
1273
  },
1458
1274
  };
1459
- function createBaseListTestSuiteItemsRequest() {
1275
+ function createBaseDetachTestSuiteFromWorkflowRequest() {
1460
1276
  return { projectId: "", workflowId: "", testSuiteId: "" };
1461
1277
  }
1462
- exports.ListTestSuiteItemsRequest = {
1278
+ exports.DetachTestSuiteFromWorkflowRequest = {
1463
1279
  encode(message, writer = new wire_1.BinaryWriter()) {
1464
1280
  if (message.projectId !== "") {
1465
1281
  writer.uint32(10).string(message.projectId);
@@ -1475,7 +1291,7 @@ exports.ListTestSuiteItemsRequest = {
1475
1291
  decode(input, length) {
1476
1292
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1477
1293
  const end = length === undefined ? reader.len : reader.pos + length;
1478
- const message = createBaseListTestSuiteItemsRequest();
1294
+ const message = createBaseDetachTestSuiteFromWorkflowRequest();
1479
1295
  while (reader.pos < end) {
1480
1296
  const tag = reader.uint32();
1481
1297
  switch (tag >>> 3) {
@@ -1541,41 +1357,31 @@ exports.ListTestSuiteItemsRequest = {
1541
1357
  return obj;
1542
1358
  },
1543
1359
  create(base) {
1544
- return exports.ListTestSuiteItemsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1360
+ return exports.DetachTestSuiteFromWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1545
1361
  },
1546
1362
  fromPartial(object) {
1547
1363
  var _a, _b, _c;
1548
- const message = createBaseListTestSuiteItemsRequest();
1364
+ const message = createBaseDetachTestSuiteFromWorkflowRequest();
1549
1365
  message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1550
1366
  message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
1551
1367
  message.testSuiteId = (_c = object.testSuiteId) !== null && _c !== void 0 ? _c : "";
1552
1368
  return message;
1553
1369
  },
1554
1370
  };
1555
- function createBaseListTestSuiteItemsResponse() {
1556
- return { testSuiteItems: [] };
1371
+ function createBaseDetachTestSuiteFromWorkflowResponse() {
1372
+ return {};
1557
1373
  }
1558
- exports.ListTestSuiteItemsResponse = {
1559
- encode(message, writer = new wire_1.BinaryWriter()) {
1560
- for (const v of message.testSuiteItems) {
1561
- suite_pb_1.TestSuiteItem.encode(v, writer.uint32(10).fork()).join();
1562
- }
1374
+ exports.DetachTestSuiteFromWorkflowResponse = {
1375
+ encode(_, writer = new wire_1.BinaryWriter()) {
1563
1376
  return writer;
1564
1377
  },
1565
1378
  decode(input, length) {
1566
1379
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1567
1380
  const end = length === undefined ? reader.len : reader.pos + length;
1568
- const message = createBaseListTestSuiteItemsResponse();
1381
+ const message = createBaseDetachTestSuiteFromWorkflowResponse();
1569
1382
  while (reader.pos < end) {
1570
1383
  const tag = reader.uint32();
1571
1384
  switch (tag >>> 3) {
1572
- case 1: {
1573
- if (tag !== 10) {
1574
- break;
1575
- }
1576
- message.testSuiteItems.push(suite_pb_1.TestSuiteItem.decode(reader, reader.uint32()));
1577
- continue;
1578
- }
1579
1385
  }
1580
1386
  if ((tag & 7) === 4 || tag === 0) {
1581
1387
  break;
@@ -1584,37 +1390,25 @@ exports.ListTestSuiteItemsResponse = {
1584
1390
  }
1585
1391
  return message;
1586
1392
  },
1587
- fromJSON(object) {
1588
- return {
1589
- testSuiteItems: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.testSuiteItems)
1590
- ? object.testSuiteItems.map((e) => suite_pb_1.TestSuiteItem.fromJSON(e))
1591
- : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.test_suite_items)
1592
- ? object.test_suite_items.map((e) => suite_pb_1.TestSuiteItem.fromJSON(e))
1593
- : [],
1594
- };
1393
+ fromJSON(_) {
1394
+ return {};
1595
1395
  },
1596
- toJSON(message) {
1597
- var _a;
1396
+ toJSON(_) {
1598
1397
  const obj = {};
1599
- if ((_a = message.testSuiteItems) === null || _a === void 0 ? void 0 : _a.length) {
1600
- obj.testSuiteItems = message.testSuiteItems.map((e) => suite_pb_1.TestSuiteItem.toJSON(e));
1601
- }
1602
1398
  return obj;
1603
1399
  },
1604
1400
  create(base) {
1605
- return exports.ListTestSuiteItemsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1401
+ return exports.DetachTestSuiteFromWorkflowResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1606
1402
  },
1607
- fromPartial(object) {
1608
- var _a;
1609
- const message = createBaseListTestSuiteItemsResponse();
1610
- message.testSuiteItems = ((_a = object.testSuiteItems) === null || _a === void 0 ? void 0 : _a.map((e) => suite_pb_1.TestSuiteItem.fromPartial(e))) || [];
1403
+ fromPartial(_) {
1404
+ const message = createBaseDetachTestSuiteFromWorkflowResponse();
1611
1405
  return message;
1612
1406
  },
1613
1407
  };
1614
- function createBaseDeleteTestSuiteItemRequest() {
1615
- return { projectId: "", workflowId: "", testSuiteId: "", testSuiteItemId: "" };
1408
+ function createBaseListWorkflowTestSuiteBindingsRequest() {
1409
+ return { projectId: "", workflowId: "", pageSize: 0, pageToken: "" };
1616
1410
  }
1617
- exports.DeleteTestSuiteItemRequest = {
1411
+ exports.ListWorkflowTestSuiteBindingsRequest = {
1618
1412
  encode(message, writer = new wire_1.BinaryWriter()) {
1619
1413
  if (message.projectId !== "") {
1620
1414
  writer.uint32(10).string(message.projectId);
@@ -1622,18 +1416,18 @@ exports.DeleteTestSuiteItemRequest = {
1622
1416
  if (message.workflowId !== "") {
1623
1417
  writer.uint32(18).string(message.workflowId);
1624
1418
  }
1625
- if (message.testSuiteId !== "") {
1626
- writer.uint32(26).string(message.testSuiteId);
1419
+ if (message.pageSize !== 0) {
1420
+ writer.uint32(24).int32(message.pageSize);
1627
1421
  }
1628
- if (message.testSuiteItemId !== "") {
1629
- writer.uint32(34).string(message.testSuiteItemId);
1422
+ if (message.pageToken !== "") {
1423
+ writer.uint32(34).string(message.pageToken);
1630
1424
  }
1631
1425
  return writer;
1632
1426
  },
1633
1427
  decode(input, length) {
1634
1428
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1635
1429
  const end = length === undefined ? reader.len : reader.pos + length;
1636
- const message = createBaseDeleteTestSuiteItemRequest();
1430
+ const message = createBaseListWorkflowTestSuiteBindingsRequest();
1637
1431
  while (reader.pos < end) {
1638
1432
  const tag = reader.uint32();
1639
1433
  switch (tag >>> 3) {
@@ -1652,17 +1446,17 @@ exports.DeleteTestSuiteItemRequest = {
1652
1446
  continue;
1653
1447
  }
1654
1448
  case 3: {
1655
- if (tag !== 26) {
1449
+ if (tag !== 24) {
1656
1450
  break;
1657
1451
  }
1658
- message.testSuiteId = reader.string();
1452
+ message.pageSize = reader.int32();
1659
1453
  continue;
1660
1454
  }
1661
1455
  case 4: {
1662
1456
  if (tag !== 34) {
1663
1457
  break;
1664
1458
  }
1665
- message.testSuiteItemId = reader.string();
1459
+ message.pageToken = reader.string();
1666
1460
  continue;
1667
1461
  }
1668
1462
  }
@@ -1685,15 +1479,15 @@ exports.DeleteTestSuiteItemRequest = {
1685
1479
  : isSet(object.workflow_id)
1686
1480
  ? globalThis.String(object.workflow_id)
1687
1481
  : "",
1688
- testSuiteId: isSet(object.testSuiteId)
1689
- ? globalThis.String(object.testSuiteId)
1690
- : isSet(object.test_suite_id)
1691
- ? globalThis.String(object.test_suite_id)
1692
- : "",
1693
- testSuiteItemId: isSet(object.testSuiteItemId)
1694
- ? globalThis.String(object.testSuiteItemId)
1695
- : isSet(object.test_suite_item_id)
1696
- ? globalThis.String(object.test_suite_item_id)
1482
+ pageSize: isSet(object.pageSize)
1483
+ ? globalThis.Number(object.pageSize)
1484
+ : isSet(object.page_size)
1485
+ ? globalThis.Number(object.page_size)
1486
+ : 0,
1487
+ pageToken: isSet(object.pageToken)
1488
+ ? globalThis.String(object.pageToken)
1489
+ : isSet(object.page_token)
1490
+ ? globalThis.String(object.page_token)
1697
1491
  : "",
1698
1492
  };
1699
1493
  },
@@ -1705,41 +1499,61 @@ exports.DeleteTestSuiteItemRequest = {
1705
1499
  if (message.workflowId !== "") {
1706
1500
  obj.workflowId = message.workflowId;
1707
1501
  }
1708
- if (message.testSuiteId !== "") {
1709
- obj.testSuiteId = message.testSuiteId;
1502
+ if (message.pageSize !== 0) {
1503
+ obj.pageSize = Math.round(message.pageSize);
1710
1504
  }
1711
- if (message.testSuiteItemId !== "") {
1712
- obj.testSuiteItemId = message.testSuiteItemId;
1505
+ if (message.pageToken !== "") {
1506
+ obj.pageToken = message.pageToken;
1713
1507
  }
1714
1508
  return obj;
1715
1509
  },
1716
1510
  create(base) {
1717
- return exports.DeleteTestSuiteItemRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1511
+ return exports.ListWorkflowTestSuiteBindingsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1718
1512
  },
1719
1513
  fromPartial(object) {
1720
1514
  var _a, _b, _c, _d;
1721
- const message = createBaseDeleteTestSuiteItemRequest();
1515
+ const message = createBaseListWorkflowTestSuiteBindingsRequest();
1722
1516
  message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1723
1517
  message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
1724
- message.testSuiteId = (_c = object.testSuiteId) !== null && _c !== void 0 ? _c : "";
1725
- message.testSuiteItemId = (_d = object.testSuiteItemId) !== null && _d !== void 0 ? _d : "";
1518
+ message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
1519
+ message.pageToken = (_d = object.pageToken) !== null && _d !== void 0 ? _d : "";
1726
1520
  return message;
1727
1521
  },
1728
1522
  };
1729
- function createBaseDeleteTestSuiteItemResponse() {
1730
- return {};
1523
+ function createBaseListWorkflowTestSuiteBindingsResponse() {
1524
+ return { bindings: [], nextPageToken: "" };
1731
1525
  }
1732
- exports.DeleteTestSuiteItemResponse = {
1733
- encode(_, writer = new wire_1.BinaryWriter()) {
1526
+ exports.ListWorkflowTestSuiteBindingsResponse = {
1527
+ encode(message, writer = new wire_1.BinaryWriter()) {
1528
+ for (const v of message.bindings) {
1529
+ exports.WorkflowTestSuiteBinding.encode(v, writer.uint32(10).fork()).join();
1530
+ }
1531
+ if (message.nextPageToken !== "") {
1532
+ writer.uint32(18).string(message.nextPageToken);
1533
+ }
1734
1534
  return writer;
1735
1535
  },
1736
1536
  decode(input, length) {
1737
1537
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1738
1538
  const end = length === undefined ? reader.len : reader.pos + length;
1739
- const message = createBaseDeleteTestSuiteItemResponse();
1539
+ const message = createBaseListWorkflowTestSuiteBindingsResponse();
1740
1540
  while (reader.pos < end) {
1741
1541
  const tag = reader.uint32();
1742
1542
  switch (tag >>> 3) {
1543
+ case 1: {
1544
+ if (tag !== 10) {
1545
+ break;
1546
+ }
1547
+ message.bindings.push(exports.WorkflowTestSuiteBinding.decode(reader, reader.uint32()));
1548
+ continue;
1549
+ }
1550
+ case 2: {
1551
+ if (tag !== 18) {
1552
+ break;
1553
+ }
1554
+ message.nextPageToken = reader.string();
1555
+ continue;
1556
+ }
1743
1557
  }
1744
1558
  if ((tag & 7) === 4 || tag === 0) {
1745
1559
  break;
@@ -1748,36 +1562,45 @@ exports.DeleteTestSuiteItemResponse = {
1748
1562
  }
1749
1563
  return message;
1750
1564
  },
1751
- fromJSON(_) {
1752
- return {};
1565
+ fromJSON(object) {
1566
+ return {
1567
+ bindings: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.bindings)
1568
+ ? object.bindings.map((e) => exports.WorkflowTestSuiteBinding.fromJSON(e))
1569
+ : [],
1570
+ nextPageToken: isSet(object.nextPageToken)
1571
+ ? globalThis.String(object.nextPageToken)
1572
+ : isSet(object.next_page_token)
1573
+ ? globalThis.String(object.next_page_token)
1574
+ : "",
1575
+ };
1753
1576
  },
1754
- toJSON(_) {
1577
+ toJSON(message) {
1578
+ var _a;
1755
1579
  const obj = {};
1580
+ if ((_a = message.bindings) === null || _a === void 0 ? void 0 : _a.length) {
1581
+ obj.bindings = message.bindings.map((e) => exports.WorkflowTestSuiteBinding.toJSON(e));
1582
+ }
1583
+ if (message.nextPageToken !== "") {
1584
+ obj.nextPageToken = message.nextPageToken;
1585
+ }
1756
1586
  return obj;
1757
1587
  },
1758
1588
  create(base) {
1759
- return exports.DeleteTestSuiteItemResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1589
+ return exports.ListWorkflowTestSuiteBindingsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1760
1590
  },
1761
- fromPartial(_) {
1762
- const message = createBaseDeleteTestSuiteItemResponse();
1591
+ fromPartial(object) {
1592
+ var _a;
1593
+ var _b;
1594
+ const message = createBaseListWorkflowTestSuiteBindingsResponse();
1595
+ message.bindings = ((_a = object.bindings) === null || _a === void 0 ? void 0 : _a.map((e) => exports.WorkflowTestSuiteBinding.fromPartial(e))) || [];
1596
+ message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
1763
1597
  return message;
1764
1598
  },
1765
1599
  };
1766
- function createBaseUpsertDataBindingTemplateRequest() {
1767
- return {
1768
- projectId: "",
1769
- workflowId: "",
1770
- dataBindingTemplateId: "",
1771
- name: "",
1772
- description: "",
1773
- targetScope: 0,
1774
- testScriptId: "",
1775
- testSuiteId: "",
1776
- bindingSpec: undefined,
1777
- metadata: undefined,
1778
- };
1600
+ function createBaseWorkflowTestSuiteBinding() {
1601
+ return { projectId: "", workflowId: "", testSuiteId: "", attachedBy: "", metadata: undefined, attachedAt: undefined };
1779
1602
  }
1780
- exports.UpsertDataBindingTemplateRequest = {
1603
+ exports.WorkflowTestSuiteBinding = {
1781
1604
  encode(message, writer = new wire_1.BinaryWriter()) {
1782
1605
  if (message.projectId !== "") {
1783
1606
  writer.uint32(10).string(message.projectId);
@@ -1785,36 +1608,24 @@ exports.UpsertDataBindingTemplateRequest = {
1785
1608
  if (message.workflowId !== "") {
1786
1609
  writer.uint32(18).string(message.workflowId);
1787
1610
  }
1788
- if (message.dataBindingTemplateId !== "") {
1789
- writer.uint32(26).string(message.dataBindingTemplateId);
1790
- }
1791
- if (message.name !== "") {
1792
- writer.uint32(34).string(message.name);
1793
- }
1794
- if (message.description !== "") {
1795
- writer.uint32(42).string(message.description);
1796
- }
1797
- if (message.targetScope !== 0) {
1798
- writer.uint32(48).int32(message.targetScope);
1799
- }
1800
- if (message.testScriptId !== "") {
1801
- writer.uint32(58).string(message.testScriptId);
1802
- }
1803
1611
  if (message.testSuiteId !== "") {
1804
- writer.uint32(66).string(message.testSuiteId);
1612
+ writer.uint32(26).string(message.testSuiteId);
1805
1613
  }
1806
- if (message.bindingSpec !== undefined) {
1807
- struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.bindingSpec), writer.uint32(74).fork()).join();
1614
+ if (message.attachedBy !== "") {
1615
+ writer.uint32(34).string(message.attachedBy);
1808
1616
  }
1809
1617
  if (message.metadata !== undefined) {
1810
- struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(82).fork()).join();
1618
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(42).fork()).join();
1619
+ }
1620
+ if (message.attachedAt !== undefined) {
1621
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.attachedAt), writer.uint32(50).fork()).join();
1811
1622
  }
1812
1623
  return writer;
1813
1624
  },
1814
1625
  decode(input, length) {
1815
1626
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1816
1627
  const end = length === undefined ? reader.len : reader.pos + length;
1817
- const message = createBaseUpsertDataBindingTemplateRequest();
1628
+ const message = createBaseWorkflowTestSuiteBinding();
1818
1629
  while (reader.pos < end) {
1819
1630
  const tag = reader.uint32();
1820
1631
  switch (tag >>> 3) {
@@ -1836,56 +1647,28 @@ exports.UpsertDataBindingTemplateRequest = {
1836
1647
  if (tag !== 26) {
1837
1648
  break;
1838
1649
  }
1839
- message.dataBindingTemplateId = reader.string();
1650
+ message.testSuiteId = reader.string();
1840
1651
  continue;
1841
1652
  }
1842
1653
  case 4: {
1843
1654
  if (tag !== 34) {
1844
1655
  break;
1845
1656
  }
1846
- message.name = reader.string();
1657
+ message.attachedBy = reader.string();
1847
1658
  continue;
1848
1659
  }
1849
1660
  case 5: {
1850
1661
  if (tag !== 42) {
1851
1662
  break;
1852
1663
  }
1853
- message.description = reader.string();
1664
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
1854
1665
  continue;
1855
1666
  }
1856
1667
  case 6: {
1857
- if (tag !== 48) {
1858
- break;
1859
- }
1860
- message.targetScope = reader.int32();
1861
- continue;
1862
- }
1863
- case 7: {
1864
- if (tag !== 58) {
1865
- break;
1866
- }
1867
- message.testScriptId = reader.string();
1868
- continue;
1869
- }
1870
- case 8: {
1871
- if (tag !== 66) {
1872
- break;
1873
- }
1874
- message.testSuiteId = reader.string();
1875
- continue;
1876
- }
1877
- case 9: {
1878
- if (tag !== 74) {
1879
- break;
1880
- }
1881
- message.bindingSpec = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
1882
- continue;
1883
- }
1884
- case 10: {
1885
- if (tag !== 82) {
1668
+ if (tag !== 50) {
1886
1669
  break;
1887
1670
  }
1888
- message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
1671
+ message.attachedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
1889
1672
  continue;
1890
1673
  }
1891
1674
  }
@@ -1908,34 +1691,22 @@ exports.UpsertDataBindingTemplateRequest = {
1908
1691
  : isSet(object.workflow_id)
1909
1692
  ? globalThis.String(object.workflow_id)
1910
1693
  : "",
1911
- dataBindingTemplateId: isSet(object.dataBindingTemplateId)
1912
- ? globalThis.String(object.dataBindingTemplateId)
1913
- : isSet(object.data_binding_template_id)
1914
- ? globalThis.String(object.data_binding_template_id)
1915
- : "",
1916
- name: isSet(object.name) ? globalThis.String(object.name) : "",
1917
- description: isSet(object.description) ? globalThis.String(object.description) : "",
1918
- targetScope: isSet(object.targetScope)
1919
- ? (0, suite_pb_1.dataBindingScopeFromJSON)(object.targetScope)
1920
- : isSet(object.target_scope)
1921
- ? (0, suite_pb_1.dataBindingScopeFromJSON)(object.target_scope)
1922
- : 0,
1923
- testScriptId: isSet(object.testScriptId)
1924
- ? globalThis.String(object.testScriptId)
1925
- : isSet(object.test_script_id)
1926
- ? globalThis.String(object.test_script_id)
1927
- : "",
1928
1694
  testSuiteId: isSet(object.testSuiteId)
1929
1695
  ? globalThis.String(object.testSuiteId)
1930
1696
  : isSet(object.test_suite_id)
1931
1697
  ? globalThis.String(object.test_suite_id)
1932
1698
  : "",
1933
- bindingSpec: isObject(object.bindingSpec)
1934
- ? object.bindingSpec
1935
- : isObject(object.binding_spec)
1936
- ? object.binding_spec
1937
- : undefined,
1699
+ attachedBy: isSet(object.attachedBy)
1700
+ ? globalThis.String(object.attachedBy)
1701
+ : isSet(object.attached_by)
1702
+ ? globalThis.String(object.attached_by)
1703
+ : "",
1938
1704
  metadata: isObject(object.metadata) ? object.metadata : undefined,
1705
+ attachedAt: isSet(object.attachedAt)
1706
+ ? fromJsonTimestamp(object.attachedAt)
1707
+ : isSet(object.attached_at)
1708
+ ? fromJsonTimestamp(object.attached_at)
1709
+ : undefined,
1939
1710
  };
1940
1711
  },
1941
1712
  toJSON(message) {
@@ -1946,136 +1717,79 @@ exports.UpsertDataBindingTemplateRequest = {
1946
1717
  if (message.workflowId !== "") {
1947
1718
  obj.workflowId = message.workflowId;
1948
1719
  }
1949
- if (message.dataBindingTemplateId !== "") {
1950
- obj.dataBindingTemplateId = message.dataBindingTemplateId;
1951
- }
1952
- if (message.name !== "") {
1953
- obj.name = message.name;
1954
- }
1955
- if (message.description !== "") {
1956
- obj.description = message.description;
1957
- }
1958
- if (message.targetScope !== 0) {
1959
- obj.targetScope = (0, suite_pb_1.dataBindingScopeToJSON)(message.targetScope);
1960
- }
1961
- if (message.testScriptId !== "") {
1962
- obj.testScriptId = message.testScriptId;
1963
- }
1964
1720
  if (message.testSuiteId !== "") {
1965
1721
  obj.testSuiteId = message.testSuiteId;
1966
1722
  }
1967
- if (message.bindingSpec !== undefined) {
1968
- obj.bindingSpec = message.bindingSpec;
1723
+ if (message.attachedBy !== "") {
1724
+ obj.attachedBy = message.attachedBy;
1969
1725
  }
1970
1726
  if (message.metadata !== undefined) {
1971
1727
  obj.metadata = message.metadata;
1972
1728
  }
1729
+ if (message.attachedAt !== undefined) {
1730
+ obj.attachedAt = message.attachedAt.toISOString();
1731
+ }
1973
1732
  return obj;
1974
1733
  },
1975
1734
  create(base) {
1976
- return exports.UpsertDataBindingTemplateRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1735
+ return exports.WorkflowTestSuiteBinding.fromPartial(base !== null && base !== void 0 ? base : {});
1977
1736
  },
1978
1737
  fromPartial(object) {
1979
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1980
- const message = createBaseUpsertDataBindingTemplateRequest();
1738
+ var _a, _b, _c, _d, _e, _f;
1739
+ const message = createBaseWorkflowTestSuiteBinding();
1981
1740
  message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1982
1741
  message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
1983
- message.dataBindingTemplateId = (_c = object.dataBindingTemplateId) !== null && _c !== void 0 ? _c : "";
1984
- message.name = (_d = object.name) !== null && _d !== void 0 ? _d : "";
1985
- message.description = (_e = object.description) !== null && _e !== void 0 ? _e : "";
1986
- message.targetScope = (_f = object.targetScope) !== null && _f !== void 0 ? _f : 0;
1987
- message.testScriptId = (_g = object.testScriptId) !== null && _g !== void 0 ? _g : "";
1988
- message.testSuiteId = (_h = object.testSuiteId) !== null && _h !== void 0 ? _h : "";
1989
- message.bindingSpec = (_j = object.bindingSpec) !== null && _j !== void 0 ? _j : undefined;
1990
- message.metadata = (_k = object.metadata) !== null && _k !== void 0 ? _k : undefined;
1742
+ message.testSuiteId = (_c = object.testSuiteId) !== null && _c !== void 0 ? _c : "";
1743
+ message.attachedBy = (_d = object.attachedBy) !== null && _d !== void 0 ? _d : "";
1744
+ message.metadata = (_e = object.metadata) !== null && _e !== void 0 ? _e : undefined;
1745
+ message.attachedAt = (_f = object.attachedAt) !== null && _f !== void 0 ? _f : undefined;
1991
1746
  return message;
1992
1747
  },
1993
1748
  };
1994
- function createBaseUpsertDataBindingTemplateResponse() {
1995
- return { dataBindingTemplate: undefined };
1749
+ function createBaseUpsertTestSuiteItemRequest() {
1750
+ return {
1751
+ projectId: "",
1752
+ testSuiteId: "",
1753
+ testSuiteItemId: "",
1754
+ testCaseId: "",
1755
+ testScriptId: "",
1756
+ position: 0,
1757
+ isRequired: false,
1758
+ metadata: undefined,
1759
+ };
1996
1760
  }
1997
- exports.UpsertDataBindingTemplateResponse = {
1761
+ exports.UpsertTestSuiteItemRequest = {
1998
1762
  encode(message, writer = new wire_1.BinaryWriter()) {
1999
- if (message.dataBindingTemplate !== undefined) {
2000
- suite_pb_1.DataBindingTemplate.encode(message.dataBindingTemplate, writer.uint32(10).fork()).join();
1763
+ if (message.projectId !== "") {
1764
+ writer.uint32(10).string(message.projectId);
2001
1765
  }
2002
- return writer;
2003
- },
2004
- decode(input, length) {
2005
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2006
- const end = length === undefined ? reader.len : reader.pos + length;
2007
- const message = createBaseUpsertDataBindingTemplateResponse();
2008
- while (reader.pos < end) {
2009
- const tag = reader.uint32();
2010
- switch (tag >>> 3) {
2011
- case 1: {
2012
- if (tag !== 10) {
2013
- break;
2014
- }
2015
- message.dataBindingTemplate = suite_pb_1.DataBindingTemplate.decode(reader, reader.uint32());
2016
- continue;
2017
- }
2018
- }
2019
- if ((tag & 7) === 4 || tag === 0) {
2020
- break;
2021
- }
2022
- reader.skip(tag & 7);
1766
+ if (message.testSuiteId !== "") {
1767
+ writer.uint32(18).string(message.testSuiteId);
2023
1768
  }
2024
- return message;
2025
- },
2026
- fromJSON(object) {
2027
- return {
2028
- dataBindingTemplate: isSet(object.dataBindingTemplate)
2029
- ? suite_pb_1.DataBindingTemplate.fromJSON(object.dataBindingTemplate)
2030
- : isSet(object.data_binding_template)
2031
- ? suite_pb_1.DataBindingTemplate.fromJSON(object.data_binding_template)
2032
- : undefined,
2033
- };
2034
- },
2035
- toJSON(message) {
2036
- const obj = {};
2037
- if (message.dataBindingTemplate !== undefined) {
2038
- obj.dataBindingTemplate = suite_pb_1.DataBindingTemplate.toJSON(message.dataBindingTemplate);
1769
+ if (message.testSuiteItemId !== "") {
1770
+ writer.uint32(26).string(message.testSuiteItemId);
2039
1771
  }
2040
- return obj;
2041
- },
2042
- create(base) {
2043
- return exports.UpsertDataBindingTemplateResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2044
- },
2045
- fromPartial(object) {
2046
- const message = createBaseUpsertDataBindingTemplateResponse();
2047
- message.dataBindingTemplate = (object.dataBindingTemplate !== undefined && object.dataBindingTemplate !== null)
2048
- ? suite_pb_1.DataBindingTemplate.fromPartial(object.dataBindingTemplate)
2049
- : undefined;
2050
- return message;
2051
- },
2052
- };
2053
- function createBaseListDataBindingTemplatesRequest() {
2054
- return { projectId: "", workflowId: "", includeArchived: false, pageSize: 0, pageToken: "" };
2055
- }
2056
- exports.ListDataBindingTemplatesRequest = {
2057
- encode(message, writer = new wire_1.BinaryWriter()) {
2058
- if (message.projectId !== "") {
2059
- writer.uint32(10).string(message.projectId);
1772
+ if (message.testCaseId !== "") {
1773
+ writer.uint32(34).string(message.testCaseId);
2060
1774
  }
2061
- if (message.workflowId !== "") {
2062
- writer.uint32(18).string(message.workflowId);
1775
+ if (message.testScriptId !== "") {
1776
+ writer.uint32(42).string(message.testScriptId);
2063
1777
  }
2064
- if (message.includeArchived !== false) {
2065
- writer.uint32(24).bool(message.includeArchived);
1778
+ if (message.position !== 0) {
1779
+ writer.uint32(48).int32(message.position);
2066
1780
  }
2067
- if (message.pageSize !== 0) {
2068
- writer.uint32(32).int32(message.pageSize);
1781
+ if (message.isRequired !== false) {
1782
+ writer.uint32(56).bool(message.isRequired);
2069
1783
  }
2070
- if (message.pageToken !== "") {
2071
- writer.uint32(42).string(message.pageToken);
1784
+ if (message.metadata !== undefined) {
1785
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(66).fork()).join();
2072
1786
  }
2073
1787
  return writer;
2074
1788
  },
2075
1789
  decode(input, length) {
2076
1790
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2077
1791
  const end = length === undefined ? reader.len : reader.pos + length;
2078
- const message = createBaseListDataBindingTemplatesRequest();
1792
+ const message = createBaseUpsertTestSuiteItemRequest();
2079
1793
  while (reader.pos < end) {
2080
1794
  const tag = reader.uint32();
2081
1795
  switch (tag >>> 3) {
@@ -2090,28 +1804,49 @@ exports.ListDataBindingTemplatesRequest = {
2090
1804
  if (tag !== 18) {
2091
1805
  break;
2092
1806
  }
2093
- message.workflowId = reader.string();
1807
+ message.testSuiteId = reader.string();
2094
1808
  continue;
2095
1809
  }
2096
1810
  case 3: {
2097
- if (tag !== 24) {
1811
+ if (tag !== 26) {
2098
1812
  break;
2099
1813
  }
2100
- message.includeArchived = reader.bool();
1814
+ message.testSuiteItemId = reader.string();
2101
1815
  continue;
2102
1816
  }
2103
1817
  case 4: {
2104
- if (tag !== 32) {
1818
+ if (tag !== 34) {
2105
1819
  break;
2106
1820
  }
2107
- message.pageSize = reader.int32();
1821
+ message.testCaseId = reader.string();
2108
1822
  continue;
2109
1823
  }
2110
1824
  case 5: {
2111
1825
  if (tag !== 42) {
2112
1826
  break;
2113
1827
  }
2114
- message.pageToken = reader.string();
1828
+ message.testScriptId = reader.string();
1829
+ continue;
1830
+ }
1831
+ case 6: {
1832
+ if (tag !== 48) {
1833
+ break;
1834
+ }
1835
+ message.position = reader.int32();
1836
+ continue;
1837
+ }
1838
+ case 7: {
1839
+ if (tag !== 56) {
1840
+ break;
1841
+ }
1842
+ message.isRequired = reader.bool();
1843
+ continue;
1844
+ }
1845
+ case 8: {
1846
+ if (tag !== 66) {
1847
+ break;
1848
+ }
1849
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
2115
1850
  continue;
2116
1851
  }
2117
1852
  }
@@ -2129,26 +1864,33 @@ exports.ListDataBindingTemplatesRequest = {
2129
1864
  : isSet(object.project_id)
2130
1865
  ? globalThis.String(object.project_id)
2131
1866
  : "",
2132
- workflowId: isSet(object.workflowId)
2133
- ? globalThis.String(object.workflowId)
2134
- : isSet(object.workflow_id)
2135
- ? globalThis.String(object.workflow_id)
1867
+ testSuiteId: isSet(object.testSuiteId)
1868
+ ? globalThis.String(object.testSuiteId)
1869
+ : isSet(object.test_suite_id)
1870
+ ? globalThis.String(object.test_suite_id)
2136
1871
  : "",
2137
- includeArchived: isSet(object.includeArchived)
2138
- ? globalThis.Boolean(object.includeArchived)
2139
- : isSet(object.include_archived)
2140
- ? globalThis.Boolean(object.include_archived)
2141
- : false,
2142
- pageSize: isSet(object.pageSize)
2143
- ? globalThis.Number(object.pageSize)
2144
- : isSet(object.page_size)
2145
- ? globalThis.Number(object.page_size)
2146
- : 0,
2147
- pageToken: isSet(object.pageToken)
2148
- ? globalThis.String(object.pageToken)
2149
- : isSet(object.page_token)
2150
- ? globalThis.String(object.page_token)
1872
+ testSuiteItemId: isSet(object.testSuiteItemId)
1873
+ ? globalThis.String(object.testSuiteItemId)
1874
+ : isSet(object.test_suite_item_id)
1875
+ ? globalThis.String(object.test_suite_item_id)
1876
+ : "",
1877
+ testCaseId: isSet(object.testCaseId)
1878
+ ? globalThis.String(object.testCaseId)
1879
+ : isSet(object.test_case_id)
1880
+ ? globalThis.String(object.test_case_id)
1881
+ : "",
1882
+ testScriptId: isSet(object.testScriptId)
1883
+ ? globalThis.String(object.testScriptId)
1884
+ : isSet(object.test_script_id)
1885
+ ? globalThis.String(object.test_script_id)
2151
1886
  : "",
1887
+ position: isSet(object.position) ? globalThis.Number(object.position) : 0,
1888
+ isRequired: isSet(object.isRequired)
1889
+ ? globalThis.Boolean(object.isRequired)
1890
+ : isSet(object.is_required)
1891
+ ? globalThis.Boolean(object.is_required)
1892
+ : false,
1893
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
2152
1894
  };
2153
1895
  },
2154
1896
  toJSON(message) {
@@ -2156,51 +1898,60 @@ exports.ListDataBindingTemplatesRequest = {
2156
1898
  if (message.projectId !== "") {
2157
1899
  obj.projectId = message.projectId;
2158
1900
  }
2159
- if (message.workflowId !== "") {
2160
- obj.workflowId = message.workflowId;
1901
+ if (message.testSuiteId !== "") {
1902
+ obj.testSuiteId = message.testSuiteId;
2161
1903
  }
2162
- if (message.includeArchived !== false) {
2163
- obj.includeArchived = message.includeArchived;
1904
+ if (message.testSuiteItemId !== "") {
1905
+ obj.testSuiteItemId = message.testSuiteItemId;
2164
1906
  }
2165
- if (message.pageSize !== 0) {
2166
- obj.pageSize = Math.round(message.pageSize);
1907
+ if (message.testCaseId !== "") {
1908
+ obj.testCaseId = message.testCaseId;
2167
1909
  }
2168
- if (message.pageToken !== "") {
2169
- obj.pageToken = message.pageToken;
1910
+ if (message.testScriptId !== "") {
1911
+ obj.testScriptId = message.testScriptId;
1912
+ }
1913
+ if (message.position !== 0) {
1914
+ obj.position = Math.round(message.position);
1915
+ }
1916
+ if (message.isRequired !== false) {
1917
+ obj.isRequired = message.isRequired;
1918
+ }
1919
+ if (message.metadata !== undefined) {
1920
+ obj.metadata = message.metadata;
2170
1921
  }
2171
1922
  return obj;
2172
1923
  },
2173
1924
  create(base) {
2174
- return exports.ListDataBindingTemplatesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1925
+ return exports.UpsertTestSuiteItemRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2175
1926
  },
2176
1927
  fromPartial(object) {
2177
- var _a, _b, _c, _d, _e;
2178
- const message = createBaseListDataBindingTemplatesRequest();
1928
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1929
+ const message = createBaseUpsertTestSuiteItemRequest();
2179
1930
  message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
2180
- message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
2181
- message.includeArchived = (_c = object.includeArchived) !== null && _c !== void 0 ? _c : false;
2182
- message.pageSize = (_d = object.pageSize) !== null && _d !== void 0 ? _d : 0;
2183
- message.pageToken = (_e = object.pageToken) !== null && _e !== void 0 ? _e : "";
1931
+ message.testSuiteId = (_b = object.testSuiteId) !== null && _b !== void 0 ? _b : "";
1932
+ message.testSuiteItemId = (_c = object.testSuiteItemId) !== null && _c !== void 0 ? _c : "";
1933
+ message.testCaseId = (_d = object.testCaseId) !== null && _d !== void 0 ? _d : "";
1934
+ message.testScriptId = (_e = object.testScriptId) !== null && _e !== void 0 ? _e : "";
1935
+ message.position = (_f = object.position) !== null && _f !== void 0 ? _f : 0;
1936
+ message.isRequired = (_g = object.isRequired) !== null && _g !== void 0 ? _g : false;
1937
+ message.metadata = (_h = object.metadata) !== null && _h !== void 0 ? _h : undefined;
2184
1938
  return message;
2185
1939
  },
2186
1940
  };
2187
- function createBaseListDataBindingTemplatesResponse() {
2188
- return { dataBindingTemplates: [], nextPageToken: "" };
1941
+ function createBaseUpsertTestSuiteItemResponse() {
1942
+ return { testSuiteItem: undefined };
2189
1943
  }
2190
- exports.ListDataBindingTemplatesResponse = {
1944
+ exports.UpsertTestSuiteItemResponse = {
2191
1945
  encode(message, writer = new wire_1.BinaryWriter()) {
2192
- for (const v of message.dataBindingTemplates) {
2193
- suite_pb_1.DataBindingTemplate.encode(v, writer.uint32(10).fork()).join();
2194
- }
2195
- if (message.nextPageToken !== "") {
2196
- writer.uint32(18).string(message.nextPageToken);
1946
+ if (message.testSuiteItem !== undefined) {
1947
+ suite_pb_1.TestSuiteItem.encode(message.testSuiteItem, writer.uint32(10).fork()).join();
2197
1948
  }
2198
1949
  return writer;
2199
1950
  },
2200
1951
  decode(input, length) {
2201
1952
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2202
1953
  const end = length === undefined ? reader.len : reader.pos + length;
2203
- const message = createBaseListDataBindingTemplatesResponse();
1954
+ const message = createBaseUpsertTestSuiteItemResponse();
2204
1955
  while (reader.pos < end) {
2205
1956
  const tag = reader.uint32();
2206
1957
  switch (tag >>> 3) {
@@ -2208,14 +1959,76 @@ exports.ListDataBindingTemplatesResponse = {
2208
1959
  if (tag !== 10) {
2209
1960
  break;
2210
1961
  }
2211
- message.dataBindingTemplates.push(suite_pb_1.DataBindingTemplate.decode(reader, reader.uint32()));
1962
+ message.testSuiteItem = suite_pb_1.TestSuiteItem.decode(reader, reader.uint32());
1963
+ continue;
1964
+ }
1965
+ }
1966
+ if ((tag & 7) === 4 || tag === 0) {
1967
+ break;
1968
+ }
1969
+ reader.skip(tag & 7);
1970
+ }
1971
+ return message;
1972
+ },
1973
+ fromJSON(object) {
1974
+ return {
1975
+ testSuiteItem: isSet(object.testSuiteItem)
1976
+ ? suite_pb_1.TestSuiteItem.fromJSON(object.testSuiteItem)
1977
+ : isSet(object.test_suite_item)
1978
+ ? suite_pb_1.TestSuiteItem.fromJSON(object.test_suite_item)
1979
+ : undefined,
1980
+ };
1981
+ },
1982
+ toJSON(message) {
1983
+ const obj = {};
1984
+ if (message.testSuiteItem !== undefined) {
1985
+ obj.testSuiteItem = suite_pb_1.TestSuiteItem.toJSON(message.testSuiteItem);
1986
+ }
1987
+ return obj;
1988
+ },
1989
+ create(base) {
1990
+ return exports.UpsertTestSuiteItemResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1991
+ },
1992
+ fromPartial(object) {
1993
+ const message = createBaseUpsertTestSuiteItemResponse();
1994
+ message.testSuiteItem = (object.testSuiteItem !== undefined && object.testSuiteItem !== null)
1995
+ ? suite_pb_1.TestSuiteItem.fromPartial(object.testSuiteItem)
1996
+ : undefined;
1997
+ return message;
1998
+ },
1999
+ };
2000
+ function createBaseListTestSuiteItemsRequest() {
2001
+ return { projectId: "", testSuiteId: "" };
2002
+ }
2003
+ exports.ListTestSuiteItemsRequest = {
2004
+ encode(message, writer = new wire_1.BinaryWriter()) {
2005
+ if (message.projectId !== "") {
2006
+ writer.uint32(10).string(message.projectId);
2007
+ }
2008
+ if (message.testSuiteId !== "") {
2009
+ writer.uint32(18).string(message.testSuiteId);
2010
+ }
2011
+ return writer;
2012
+ },
2013
+ decode(input, length) {
2014
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2015
+ const end = length === undefined ? reader.len : reader.pos + length;
2016
+ const message = createBaseListTestSuiteItemsRequest();
2017
+ while (reader.pos < end) {
2018
+ const tag = reader.uint32();
2019
+ switch (tag >>> 3) {
2020
+ case 1: {
2021
+ if (tag !== 10) {
2022
+ break;
2023
+ }
2024
+ message.projectId = reader.string();
2212
2025
  continue;
2213
2026
  }
2214
2027
  case 2: {
2215
2028
  if (tag !== 18) {
2216
2029
  break;
2217
2030
  }
2218
- message.nextPageToken = reader.string();
2031
+ message.testSuiteId = reader.string();
2219
2032
  continue;
2220
2033
  }
2221
2034
  }
@@ -2228,61 +2041,118 @@ exports.ListDataBindingTemplatesResponse = {
2228
2041
  },
2229
2042
  fromJSON(object) {
2230
2043
  return {
2231
- dataBindingTemplates: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.dataBindingTemplates)
2232
- ? object.dataBindingTemplates.map((e) => suite_pb_1.DataBindingTemplate.fromJSON(e))
2233
- : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.data_binding_templates)
2234
- ? object.data_binding_templates.map((e) => suite_pb_1.DataBindingTemplate.fromJSON(e))
2235
- : [],
2236
- nextPageToken: isSet(object.nextPageToken)
2237
- ? globalThis.String(object.nextPageToken)
2238
- : isSet(object.next_page_token)
2239
- ? globalThis.String(object.next_page_token)
2044
+ projectId: isSet(object.projectId)
2045
+ ? globalThis.String(object.projectId)
2046
+ : isSet(object.project_id)
2047
+ ? globalThis.String(object.project_id)
2048
+ : "",
2049
+ testSuiteId: isSet(object.testSuiteId)
2050
+ ? globalThis.String(object.testSuiteId)
2051
+ : isSet(object.test_suite_id)
2052
+ ? globalThis.String(object.test_suite_id)
2240
2053
  : "",
2241
2054
  };
2242
2055
  },
2243
2056
  toJSON(message) {
2244
- var _a;
2245
2057
  const obj = {};
2246
- if ((_a = message.dataBindingTemplates) === null || _a === void 0 ? void 0 : _a.length) {
2247
- obj.dataBindingTemplates = message.dataBindingTemplates.map((e) => suite_pb_1.DataBindingTemplate.toJSON(e));
2058
+ if (message.projectId !== "") {
2059
+ obj.projectId = message.projectId;
2248
2060
  }
2249
- if (message.nextPageToken !== "") {
2250
- obj.nextPageToken = message.nextPageToken;
2061
+ if (message.testSuiteId !== "") {
2062
+ obj.testSuiteId = message.testSuiteId;
2251
2063
  }
2252
2064
  return obj;
2253
2065
  },
2254
2066
  create(base) {
2255
- return exports.ListDataBindingTemplatesResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2067
+ return exports.ListTestSuiteItemsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2068
+ },
2069
+ fromPartial(object) {
2070
+ var _a, _b;
2071
+ const message = createBaseListTestSuiteItemsRequest();
2072
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
2073
+ message.testSuiteId = (_b = object.testSuiteId) !== null && _b !== void 0 ? _b : "";
2074
+ return message;
2075
+ },
2076
+ };
2077
+ function createBaseListTestSuiteItemsResponse() {
2078
+ return { testSuiteItems: [] };
2079
+ }
2080
+ exports.ListTestSuiteItemsResponse = {
2081
+ encode(message, writer = new wire_1.BinaryWriter()) {
2082
+ for (const v of message.testSuiteItems) {
2083
+ suite_pb_1.TestSuiteItem.encode(v, writer.uint32(10).fork()).join();
2084
+ }
2085
+ return writer;
2086
+ },
2087
+ decode(input, length) {
2088
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2089
+ const end = length === undefined ? reader.len : reader.pos + length;
2090
+ const message = createBaseListTestSuiteItemsResponse();
2091
+ while (reader.pos < end) {
2092
+ const tag = reader.uint32();
2093
+ switch (tag >>> 3) {
2094
+ case 1: {
2095
+ if (tag !== 10) {
2096
+ break;
2097
+ }
2098
+ message.testSuiteItems.push(suite_pb_1.TestSuiteItem.decode(reader, reader.uint32()));
2099
+ continue;
2100
+ }
2101
+ }
2102
+ if ((tag & 7) === 4 || tag === 0) {
2103
+ break;
2104
+ }
2105
+ reader.skip(tag & 7);
2106
+ }
2107
+ return message;
2108
+ },
2109
+ fromJSON(object) {
2110
+ return {
2111
+ testSuiteItems: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.testSuiteItems)
2112
+ ? object.testSuiteItems.map((e) => suite_pb_1.TestSuiteItem.fromJSON(e))
2113
+ : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.test_suite_items)
2114
+ ? object.test_suite_items.map((e) => suite_pb_1.TestSuiteItem.fromJSON(e))
2115
+ : [],
2116
+ };
2117
+ },
2118
+ toJSON(message) {
2119
+ var _a;
2120
+ const obj = {};
2121
+ if ((_a = message.testSuiteItems) === null || _a === void 0 ? void 0 : _a.length) {
2122
+ obj.testSuiteItems = message.testSuiteItems.map((e) => suite_pb_1.TestSuiteItem.toJSON(e));
2123
+ }
2124
+ return obj;
2125
+ },
2126
+ create(base) {
2127
+ return exports.ListTestSuiteItemsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2256
2128
  },
2257
2129
  fromPartial(object) {
2258
2130
  var _a;
2259
- var _b;
2260
- const message = createBaseListDataBindingTemplatesResponse();
2261
- message.dataBindingTemplates = ((_a = object.dataBindingTemplates) === null || _a === void 0 ? void 0 : _a.map((e) => suite_pb_1.DataBindingTemplate.fromPartial(e))) || [];
2262
- message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
2131
+ const message = createBaseListTestSuiteItemsResponse();
2132
+ message.testSuiteItems = ((_a = object.testSuiteItems) === null || _a === void 0 ? void 0 : _a.map((e) => suite_pb_1.TestSuiteItem.fromPartial(e))) || [];
2263
2133
  return message;
2264
2134
  },
2265
2135
  };
2266
- function createBaseDeleteDataBindingTemplateRequest() {
2267
- return { projectId: "", workflowId: "", dataBindingTemplateId: "" };
2136
+ function createBaseDeleteTestSuiteItemRequest() {
2137
+ return { projectId: "", testSuiteId: "", testSuiteItemId: "" };
2268
2138
  }
2269
- exports.DeleteDataBindingTemplateRequest = {
2139
+ exports.DeleteTestSuiteItemRequest = {
2270
2140
  encode(message, writer = new wire_1.BinaryWriter()) {
2271
2141
  if (message.projectId !== "") {
2272
2142
  writer.uint32(10).string(message.projectId);
2273
2143
  }
2274
- if (message.workflowId !== "") {
2275
- writer.uint32(18).string(message.workflowId);
2144
+ if (message.testSuiteId !== "") {
2145
+ writer.uint32(18).string(message.testSuiteId);
2276
2146
  }
2277
- if (message.dataBindingTemplateId !== "") {
2278
- writer.uint32(26).string(message.dataBindingTemplateId);
2147
+ if (message.testSuiteItemId !== "") {
2148
+ writer.uint32(26).string(message.testSuiteItemId);
2279
2149
  }
2280
2150
  return writer;
2281
2151
  },
2282
2152
  decode(input, length) {
2283
2153
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2284
2154
  const end = length === undefined ? reader.len : reader.pos + length;
2285
- const message = createBaseDeleteDataBindingTemplateRequest();
2155
+ const message = createBaseDeleteTestSuiteItemRequest();
2286
2156
  while (reader.pos < end) {
2287
2157
  const tag = reader.uint32();
2288
2158
  switch (tag >>> 3) {
@@ -2297,14 +2167,14 @@ exports.DeleteDataBindingTemplateRequest = {
2297
2167
  if (tag !== 18) {
2298
2168
  break;
2299
2169
  }
2300
- message.workflowId = reader.string();
2170
+ message.testSuiteId = reader.string();
2301
2171
  continue;
2302
2172
  }
2303
2173
  case 3: {
2304
2174
  if (tag !== 26) {
2305
2175
  break;
2306
2176
  }
2307
- message.dataBindingTemplateId = reader.string();
2177
+ message.testSuiteItemId = reader.string();
2308
2178
  continue;
2309
2179
  }
2310
2180
  }
@@ -2322,15 +2192,15 @@ exports.DeleteDataBindingTemplateRequest = {
2322
2192
  : isSet(object.project_id)
2323
2193
  ? globalThis.String(object.project_id)
2324
2194
  : "",
2325
- workflowId: isSet(object.workflowId)
2326
- ? globalThis.String(object.workflowId)
2327
- : isSet(object.workflow_id)
2328
- ? globalThis.String(object.workflow_id)
2195
+ testSuiteId: isSet(object.testSuiteId)
2196
+ ? globalThis.String(object.testSuiteId)
2197
+ : isSet(object.test_suite_id)
2198
+ ? globalThis.String(object.test_suite_id)
2329
2199
  : "",
2330
- dataBindingTemplateId: isSet(object.dataBindingTemplateId)
2331
- ? globalThis.String(object.dataBindingTemplateId)
2332
- : isSet(object.data_binding_template_id)
2333
- ? globalThis.String(object.data_binding_template_id)
2200
+ testSuiteItemId: isSet(object.testSuiteItemId)
2201
+ ? globalThis.String(object.testSuiteItemId)
2202
+ : isSet(object.test_suite_item_id)
2203
+ ? globalThis.String(object.test_suite_item_id)
2334
2204
  : "",
2335
2205
  };
2336
2206
  },
@@ -2339,37 +2209,37 @@ exports.DeleteDataBindingTemplateRequest = {
2339
2209
  if (message.projectId !== "") {
2340
2210
  obj.projectId = message.projectId;
2341
2211
  }
2342
- if (message.workflowId !== "") {
2343
- obj.workflowId = message.workflowId;
2212
+ if (message.testSuiteId !== "") {
2213
+ obj.testSuiteId = message.testSuiteId;
2344
2214
  }
2345
- if (message.dataBindingTemplateId !== "") {
2346
- obj.dataBindingTemplateId = message.dataBindingTemplateId;
2215
+ if (message.testSuiteItemId !== "") {
2216
+ obj.testSuiteItemId = message.testSuiteItemId;
2347
2217
  }
2348
2218
  return obj;
2349
2219
  },
2350
2220
  create(base) {
2351
- return exports.DeleteDataBindingTemplateRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2221
+ return exports.DeleteTestSuiteItemRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2352
2222
  },
2353
2223
  fromPartial(object) {
2354
2224
  var _a, _b, _c;
2355
- const message = createBaseDeleteDataBindingTemplateRequest();
2225
+ const message = createBaseDeleteTestSuiteItemRequest();
2356
2226
  message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
2357
- message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
2358
- message.dataBindingTemplateId = (_c = object.dataBindingTemplateId) !== null && _c !== void 0 ? _c : "";
2227
+ message.testSuiteId = (_b = object.testSuiteId) !== null && _b !== void 0 ? _b : "";
2228
+ message.testSuiteItemId = (_c = object.testSuiteItemId) !== null && _c !== void 0 ? _c : "";
2359
2229
  return message;
2360
2230
  },
2361
2231
  };
2362
- function createBaseDeleteDataBindingTemplateResponse() {
2232
+ function createBaseDeleteTestSuiteItemResponse() {
2363
2233
  return {};
2364
2234
  }
2365
- exports.DeleteDataBindingTemplateResponse = {
2235
+ exports.DeleteTestSuiteItemResponse = {
2366
2236
  encode(_, writer = new wire_1.BinaryWriter()) {
2367
2237
  return writer;
2368
2238
  },
2369
2239
  decode(input, length) {
2370
2240
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2371
2241
  const end = length === undefined ? reader.len : reader.pos + length;
2372
- const message = createBaseDeleteDataBindingTemplateResponse();
2242
+ const message = createBaseDeleteTestSuiteItemResponse();
2373
2243
  while (reader.pos < end) {
2374
2244
  const tag = reader.uint32();
2375
2245
  switch (tag >>> 3) {
@@ -2389,55 +2259,1319 @@ exports.DeleteDataBindingTemplateResponse = {
2389
2259
  return obj;
2390
2260
  },
2391
2261
  create(base) {
2392
- return exports.DeleteDataBindingTemplateResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2262
+ return exports.DeleteTestSuiteItemResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2393
2263
  },
2394
2264
  fromPartial(_) {
2395
- const message = createBaseDeleteDataBindingTemplateResponse();
2265
+ const message = createBaseDeleteTestSuiteItemResponse();
2396
2266
  return message;
2397
2267
  },
2398
2268
  };
2399
- exports.SuiteServiceServiceName = "weaveapi.suite.v1.SuiteService";
2400
- class SuiteServiceClientImpl {
2401
- rpc;
2402
- service;
2403
- constructor(rpc, opts) {
2404
- this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.SuiteServiceServiceName;
2405
- this.rpc = rpc;
2406
- this.CreateTestSuite = this.CreateTestSuite.bind(this);
2407
- this.GetTestSuite = this.GetTestSuite.bind(this);
2408
- this.ListTestSuites = this.ListTestSuites.bind(this);
2409
- this.UpdateTestSuite = this.UpdateTestSuite.bind(this);
2410
- this.ArchiveTestSuite = this.ArchiveTestSuite.bind(this);
2411
- this.DeleteTestSuite = this.DeleteTestSuite.bind(this);
2412
- this.UpsertTestSuiteItem = this.UpsertTestSuiteItem.bind(this);
2413
- this.ListTestSuiteItems = this.ListTestSuiteItems.bind(this);
2414
- this.DeleteTestSuiteItem = this.DeleteTestSuiteItem.bind(this);
2415
- this.UpsertDataBindingTemplate = this.UpsertDataBindingTemplate.bind(this);
2416
- this.ListDataBindingTemplates = this.ListDataBindingTemplates.bind(this);
2417
- this.DeleteDataBindingTemplate = this.DeleteDataBindingTemplate.bind(this);
2418
- }
2419
- CreateTestSuite(request) {
2420
- const data = exports.CreateTestSuiteRequest.encode(request).finish();
2421
- const promise = this.rpc.request(this.service, "CreateTestSuite", data);
2422
- return promise.then((data) => exports.CreateTestSuiteResponse.decode(new wire_1.BinaryReader(data)));
2423
- }
2424
- GetTestSuite(request) {
2425
- const data = exports.GetTestSuiteRequest.encode(request).finish();
2426
- const promise = this.rpc.request(this.service, "GetTestSuite", data);
2427
- return promise.then((data) => exports.GetTestSuiteResponse.decode(new wire_1.BinaryReader(data)));
2428
- }
2429
- ListTestSuites(request) {
2430
- const data = exports.ListTestSuitesRequest.encode(request).finish();
2431
- const promise = this.rpc.request(this.service, "ListTestSuites", data);
2432
- return promise.then((data) => exports.ListTestSuitesResponse.decode(new wire_1.BinaryReader(data)));
2433
- }
2434
- UpdateTestSuite(request) {
2435
- const data = exports.UpdateTestSuiteRequest.encode(request).finish();
2436
- const promise = this.rpc.request(this.service, "UpdateTestSuite", data);
2437
- return promise.then((data) => exports.UpdateTestSuiteResponse.decode(new wire_1.BinaryReader(data)));
2438
- }
2439
- ArchiveTestSuite(request) {
2440
- const data = exports.ArchiveTestSuiteRequest.encode(request).finish();
2269
+ function createBaseUpsertDataBindingTemplateRequest() {
2270
+ return {
2271
+ projectId: "",
2272
+ dataBindingTemplateId: "",
2273
+ name: "",
2274
+ description: "",
2275
+ targetScope: 0,
2276
+ testScriptId: "",
2277
+ testSuiteId: "",
2278
+ bindingSpec: undefined,
2279
+ metadata: undefined,
2280
+ };
2281
+ }
2282
+ exports.UpsertDataBindingTemplateRequest = {
2283
+ encode(message, writer = new wire_1.BinaryWriter()) {
2284
+ if (message.projectId !== "") {
2285
+ writer.uint32(10).string(message.projectId);
2286
+ }
2287
+ if (message.dataBindingTemplateId !== "") {
2288
+ writer.uint32(18).string(message.dataBindingTemplateId);
2289
+ }
2290
+ if (message.name !== "") {
2291
+ writer.uint32(26).string(message.name);
2292
+ }
2293
+ if (message.description !== "") {
2294
+ writer.uint32(34).string(message.description);
2295
+ }
2296
+ if (message.targetScope !== 0) {
2297
+ writer.uint32(40).int32(message.targetScope);
2298
+ }
2299
+ if (message.testScriptId !== "") {
2300
+ writer.uint32(50).string(message.testScriptId);
2301
+ }
2302
+ if (message.testSuiteId !== "") {
2303
+ writer.uint32(58).string(message.testSuiteId);
2304
+ }
2305
+ if (message.bindingSpec !== undefined) {
2306
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.bindingSpec), writer.uint32(66).fork()).join();
2307
+ }
2308
+ if (message.metadata !== undefined) {
2309
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(74).fork()).join();
2310
+ }
2311
+ return writer;
2312
+ },
2313
+ decode(input, length) {
2314
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2315
+ const end = length === undefined ? reader.len : reader.pos + length;
2316
+ const message = createBaseUpsertDataBindingTemplateRequest();
2317
+ while (reader.pos < end) {
2318
+ const tag = reader.uint32();
2319
+ switch (tag >>> 3) {
2320
+ case 1: {
2321
+ if (tag !== 10) {
2322
+ break;
2323
+ }
2324
+ message.projectId = reader.string();
2325
+ continue;
2326
+ }
2327
+ case 2: {
2328
+ if (tag !== 18) {
2329
+ break;
2330
+ }
2331
+ message.dataBindingTemplateId = reader.string();
2332
+ continue;
2333
+ }
2334
+ case 3: {
2335
+ if (tag !== 26) {
2336
+ break;
2337
+ }
2338
+ message.name = reader.string();
2339
+ continue;
2340
+ }
2341
+ case 4: {
2342
+ if (tag !== 34) {
2343
+ break;
2344
+ }
2345
+ message.description = reader.string();
2346
+ continue;
2347
+ }
2348
+ case 5: {
2349
+ if (tag !== 40) {
2350
+ break;
2351
+ }
2352
+ message.targetScope = reader.int32();
2353
+ continue;
2354
+ }
2355
+ case 6: {
2356
+ if (tag !== 50) {
2357
+ break;
2358
+ }
2359
+ message.testScriptId = reader.string();
2360
+ continue;
2361
+ }
2362
+ case 7: {
2363
+ if (tag !== 58) {
2364
+ break;
2365
+ }
2366
+ message.testSuiteId = reader.string();
2367
+ continue;
2368
+ }
2369
+ case 8: {
2370
+ if (tag !== 66) {
2371
+ break;
2372
+ }
2373
+ message.bindingSpec = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
2374
+ continue;
2375
+ }
2376
+ case 9: {
2377
+ if (tag !== 74) {
2378
+ break;
2379
+ }
2380
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
2381
+ continue;
2382
+ }
2383
+ }
2384
+ if ((tag & 7) === 4 || tag === 0) {
2385
+ break;
2386
+ }
2387
+ reader.skip(tag & 7);
2388
+ }
2389
+ return message;
2390
+ },
2391
+ fromJSON(object) {
2392
+ return {
2393
+ projectId: isSet(object.projectId)
2394
+ ? globalThis.String(object.projectId)
2395
+ : isSet(object.project_id)
2396
+ ? globalThis.String(object.project_id)
2397
+ : "",
2398
+ dataBindingTemplateId: isSet(object.dataBindingTemplateId)
2399
+ ? globalThis.String(object.dataBindingTemplateId)
2400
+ : isSet(object.data_binding_template_id)
2401
+ ? globalThis.String(object.data_binding_template_id)
2402
+ : "",
2403
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
2404
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
2405
+ targetScope: isSet(object.targetScope)
2406
+ ? (0, suite_pb_1.dataBindingScopeFromJSON)(object.targetScope)
2407
+ : isSet(object.target_scope)
2408
+ ? (0, suite_pb_1.dataBindingScopeFromJSON)(object.target_scope)
2409
+ : 0,
2410
+ testScriptId: isSet(object.testScriptId)
2411
+ ? globalThis.String(object.testScriptId)
2412
+ : isSet(object.test_script_id)
2413
+ ? globalThis.String(object.test_script_id)
2414
+ : "",
2415
+ testSuiteId: isSet(object.testSuiteId)
2416
+ ? globalThis.String(object.testSuiteId)
2417
+ : isSet(object.test_suite_id)
2418
+ ? globalThis.String(object.test_suite_id)
2419
+ : "",
2420
+ bindingSpec: isObject(object.bindingSpec)
2421
+ ? object.bindingSpec
2422
+ : isObject(object.binding_spec)
2423
+ ? object.binding_spec
2424
+ : undefined,
2425
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
2426
+ };
2427
+ },
2428
+ toJSON(message) {
2429
+ const obj = {};
2430
+ if (message.projectId !== "") {
2431
+ obj.projectId = message.projectId;
2432
+ }
2433
+ if (message.dataBindingTemplateId !== "") {
2434
+ obj.dataBindingTemplateId = message.dataBindingTemplateId;
2435
+ }
2436
+ if (message.name !== "") {
2437
+ obj.name = message.name;
2438
+ }
2439
+ if (message.description !== "") {
2440
+ obj.description = message.description;
2441
+ }
2442
+ if (message.targetScope !== 0) {
2443
+ obj.targetScope = (0, suite_pb_1.dataBindingScopeToJSON)(message.targetScope);
2444
+ }
2445
+ if (message.testScriptId !== "") {
2446
+ obj.testScriptId = message.testScriptId;
2447
+ }
2448
+ if (message.testSuiteId !== "") {
2449
+ obj.testSuiteId = message.testSuiteId;
2450
+ }
2451
+ if (message.bindingSpec !== undefined) {
2452
+ obj.bindingSpec = message.bindingSpec;
2453
+ }
2454
+ if (message.metadata !== undefined) {
2455
+ obj.metadata = message.metadata;
2456
+ }
2457
+ return obj;
2458
+ },
2459
+ create(base) {
2460
+ return exports.UpsertDataBindingTemplateRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2461
+ },
2462
+ fromPartial(object) {
2463
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
2464
+ const message = createBaseUpsertDataBindingTemplateRequest();
2465
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
2466
+ message.dataBindingTemplateId = (_b = object.dataBindingTemplateId) !== null && _b !== void 0 ? _b : "";
2467
+ message.name = (_c = object.name) !== null && _c !== void 0 ? _c : "";
2468
+ message.description = (_d = object.description) !== null && _d !== void 0 ? _d : "";
2469
+ message.targetScope = (_e = object.targetScope) !== null && _e !== void 0 ? _e : 0;
2470
+ message.testScriptId = (_f = object.testScriptId) !== null && _f !== void 0 ? _f : "";
2471
+ message.testSuiteId = (_g = object.testSuiteId) !== null && _g !== void 0 ? _g : "";
2472
+ message.bindingSpec = (_h = object.bindingSpec) !== null && _h !== void 0 ? _h : undefined;
2473
+ message.metadata = (_j = object.metadata) !== null && _j !== void 0 ? _j : undefined;
2474
+ return message;
2475
+ },
2476
+ };
2477
+ function createBaseUpsertDataBindingTemplateResponse() {
2478
+ return { dataBindingTemplate: undefined };
2479
+ }
2480
+ exports.UpsertDataBindingTemplateResponse = {
2481
+ encode(message, writer = new wire_1.BinaryWriter()) {
2482
+ if (message.dataBindingTemplate !== undefined) {
2483
+ suite_pb_1.DataBindingTemplate.encode(message.dataBindingTemplate, writer.uint32(10).fork()).join();
2484
+ }
2485
+ return writer;
2486
+ },
2487
+ decode(input, length) {
2488
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2489
+ const end = length === undefined ? reader.len : reader.pos + length;
2490
+ const message = createBaseUpsertDataBindingTemplateResponse();
2491
+ while (reader.pos < end) {
2492
+ const tag = reader.uint32();
2493
+ switch (tag >>> 3) {
2494
+ case 1: {
2495
+ if (tag !== 10) {
2496
+ break;
2497
+ }
2498
+ message.dataBindingTemplate = suite_pb_1.DataBindingTemplate.decode(reader, reader.uint32());
2499
+ continue;
2500
+ }
2501
+ }
2502
+ if ((tag & 7) === 4 || tag === 0) {
2503
+ break;
2504
+ }
2505
+ reader.skip(tag & 7);
2506
+ }
2507
+ return message;
2508
+ },
2509
+ fromJSON(object) {
2510
+ return {
2511
+ dataBindingTemplate: isSet(object.dataBindingTemplate)
2512
+ ? suite_pb_1.DataBindingTemplate.fromJSON(object.dataBindingTemplate)
2513
+ : isSet(object.data_binding_template)
2514
+ ? suite_pb_1.DataBindingTemplate.fromJSON(object.data_binding_template)
2515
+ : undefined,
2516
+ };
2517
+ },
2518
+ toJSON(message) {
2519
+ const obj = {};
2520
+ if (message.dataBindingTemplate !== undefined) {
2521
+ obj.dataBindingTemplate = suite_pb_1.DataBindingTemplate.toJSON(message.dataBindingTemplate);
2522
+ }
2523
+ return obj;
2524
+ },
2525
+ create(base) {
2526
+ return exports.UpsertDataBindingTemplateResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2527
+ },
2528
+ fromPartial(object) {
2529
+ const message = createBaseUpsertDataBindingTemplateResponse();
2530
+ message.dataBindingTemplate = (object.dataBindingTemplate !== undefined && object.dataBindingTemplate !== null)
2531
+ ? suite_pb_1.DataBindingTemplate.fromPartial(object.dataBindingTemplate)
2532
+ : undefined;
2533
+ return message;
2534
+ },
2535
+ };
2536
+ function createBaseListDataBindingTemplatesRequest() {
2537
+ return { projectId: "", includeArchived: false, pageSize: 0, pageToken: "", workflowId: "" };
2538
+ }
2539
+ exports.ListDataBindingTemplatesRequest = {
2540
+ encode(message, writer = new wire_1.BinaryWriter()) {
2541
+ if (message.projectId !== "") {
2542
+ writer.uint32(10).string(message.projectId);
2543
+ }
2544
+ if (message.includeArchived !== false) {
2545
+ writer.uint32(16).bool(message.includeArchived);
2546
+ }
2547
+ if (message.pageSize !== 0) {
2548
+ writer.uint32(24).int32(message.pageSize);
2549
+ }
2550
+ if (message.pageToken !== "") {
2551
+ writer.uint32(34).string(message.pageToken);
2552
+ }
2553
+ if (message.workflowId !== "") {
2554
+ writer.uint32(42).string(message.workflowId);
2555
+ }
2556
+ return writer;
2557
+ },
2558
+ decode(input, length) {
2559
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2560
+ const end = length === undefined ? reader.len : reader.pos + length;
2561
+ const message = createBaseListDataBindingTemplatesRequest();
2562
+ while (reader.pos < end) {
2563
+ const tag = reader.uint32();
2564
+ switch (tag >>> 3) {
2565
+ case 1: {
2566
+ if (tag !== 10) {
2567
+ break;
2568
+ }
2569
+ message.projectId = reader.string();
2570
+ continue;
2571
+ }
2572
+ case 2: {
2573
+ if (tag !== 16) {
2574
+ break;
2575
+ }
2576
+ message.includeArchived = reader.bool();
2577
+ continue;
2578
+ }
2579
+ case 3: {
2580
+ if (tag !== 24) {
2581
+ break;
2582
+ }
2583
+ message.pageSize = reader.int32();
2584
+ continue;
2585
+ }
2586
+ case 4: {
2587
+ if (tag !== 34) {
2588
+ break;
2589
+ }
2590
+ message.pageToken = reader.string();
2591
+ continue;
2592
+ }
2593
+ case 5: {
2594
+ if (tag !== 42) {
2595
+ break;
2596
+ }
2597
+ message.workflowId = reader.string();
2598
+ continue;
2599
+ }
2600
+ }
2601
+ if ((tag & 7) === 4 || tag === 0) {
2602
+ break;
2603
+ }
2604
+ reader.skip(tag & 7);
2605
+ }
2606
+ return message;
2607
+ },
2608
+ fromJSON(object) {
2609
+ return {
2610
+ projectId: isSet(object.projectId)
2611
+ ? globalThis.String(object.projectId)
2612
+ : isSet(object.project_id)
2613
+ ? globalThis.String(object.project_id)
2614
+ : "",
2615
+ includeArchived: isSet(object.includeArchived)
2616
+ ? globalThis.Boolean(object.includeArchived)
2617
+ : isSet(object.include_archived)
2618
+ ? globalThis.Boolean(object.include_archived)
2619
+ : false,
2620
+ pageSize: isSet(object.pageSize)
2621
+ ? globalThis.Number(object.pageSize)
2622
+ : isSet(object.page_size)
2623
+ ? globalThis.Number(object.page_size)
2624
+ : 0,
2625
+ pageToken: isSet(object.pageToken)
2626
+ ? globalThis.String(object.pageToken)
2627
+ : isSet(object.page_token)
2628
+ ? globalThis.String(object.page_token)
2629
+ : "",
2630
+ workflowId: isSet(object.workflowId)
2631
+ ? globalThis.String(object.workflowId)
2632
+ : isSet(object.workflow_id)
2633
+ ? globalThis.String(object.workflow_id)
2634
+ : "",
2635
+ };
2636
+ },
2637
+ toJSON(message) {
2638
+ const obj = {};
2639
+ if (message.projectId !== "") {
2640
+ obj.projectId = message.projectId;
2641
+ }
2642
+ if (message.includeArchived !== false) {
2643
+ obj.includeArchived = message.includeArchived;
2644
+ }
2645
+ if (message.pageSize !== 0) {
2646
+ obj.pageSize = Math.round(message.pageSize);
2647
+ }
2648
+ if (message.pageToken !== "") {
2649
+ obj.pageToken = message.pageToken;
2650
+ }
2651
+ if (message.workflowId !== "") {
2652
+ obj.workflowId = message.workflowId;
2653
+ }
2654
+ return obj;
2655
+ },
2656
+ create(base) {
2657
+ return exports.ListDataBindingTemplatesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2658
+ },
2659
+ fromPartial(object) {
2660
+ var _a, _b, _c, _d, _e;
2661
+ const message = createBaseListDataBindingTemplatesRequest();
2662
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
2663
+ message.includeArchived = (_b = object.includeArchived) !== null && _b !== void 0 ? _b : false;
2664
+ message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
2665
+ message.pageToken = (_d = object.pageToken) !== null && _d !== void 0 ? _d : "";
2666
+ message.workflowId = (_e = object.workflowId) !== null && _e !== void 0 ? _e : "";
2667
+ return message;
2668
+ },
2669
+ };
2670
+ function createBaseListDataBindingTemplatesResponse() {
2671
+ return { dataBindingTemplates: [], nextPageToken: "" };
2672
+ }
2673
+ exports.ListDataBindingTemplatesResponse = {
2674
+ encode(message, writer = new wire_1.BinaryWriter()) {
2675
+ for (const v of message.dataBindingTemplates) {
2676
+ suite_pb_1.DataBindingTemplate.encode(v, writer.uint32(10).fork()).join();
2677
+ }
2678
+ if (message.nextPageToken !== "") {
2679
+ writer.uint32(18).string(message.nextPageToken);
2680
+ }
2681
+ return writer;
2682
+ },
2683
+ decode(input, length) {
2684
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2685
+ const end = length === undefined ? reader.len : reader.pos + length;
2686
+ const message = createBaseListDataBindingTemplatesResponse();
2687
+ while (reader.pos < end) {
2688
+ const tag = reader.uint32();
2689
+ switch (tag >>> 3) {
2690
+ case 1: {
2691
+ if (tag !== 10) {
2692
+ break;
2693
+ }
2694
+ message.dataBindingTemplates.push(suite_pb_1.DataBindingTemplate.decode(reader, reader.uint32()));
2695
+ continue;
2696
+ }
2697
+ case 2: {
2698
+ if (tag !== 18) {
2699
+ break;
2700
+ }
2701
+ message.nextPageToken = reader.string();
2702
+ continue;
2703
+ }
2704
+ }
2705
+ if ((tag & 7) === 4 || tag === 0) {
2706
+ break;
2707
+ }
2708
+ reader.skip(tag & 7);
2709
+ }
2710
+ return message;
2711
+ },
2712
+ fromJSON(object) {
2713
+ return {
2714
+ dataBindingTemplates: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.dataBindingTemplates)
2715
+ ? object.dataBindingTemplates.map((e) => suite_pb_1.DataBindingTemplate.fromJSON(e))
2716
+ : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.data_binding_templates)
2717
+ ? object.data_binding_templates.map((e) => suite_pb_1.DataBindingTemplate.fromJSON(e))
2718
+ : [],
2719
+ nextPageToken: isSet(object.nextPageToken)
2720
+ ? globalThis.String(object.nextPageToken)
2721
+ : isSet(object.next_page_token)
2722
+ ? globalThis.String(object.next_page_token)
2723
+ : "",
2724
+ };
2725
+ },
2726
+ toJSON(message) {
2727
+ var _a;
2728
+ const obj = {};
2729
+ if ((_a = message.dataBindingTemplates) === null || _a === void 0 ? void 0 : _a.length) {
2730
+ obj.dataBindingTemplates = message.dataBindingTemplates.map((e) => suite_pb_1.DataBindingTemplate.toJSON(e));
2731
+ }
2732
+ if (message.nextPageToken !== "") {
2733
+ obj.nextPageToken = message.nextPageToken;
2734
+ }
2735
+ return obj;
2736
+ },
2737
+ create(base) {
2738
+ return exports.ListDataBindingTemplatesResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2739
+ },
2740
+ fromPartial(object) {
2741
+ var _a;
2742
+ var _b;
2743
+ const message = createBaseListDataBindingTemplatesResponse();
2744
+ message.dataBindingTemplates = ((_a = object.dataBindingTemplates) === null || _a === void 0 ? void 0 : _a.map((e) => suite_pb_1.DataBindingTemplate.fromPartial(e))) || [];
2745
+ message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
2746
+ return message;
2747
+ },
2748
+ };
2749
+ function createBaseDeleteDataBindingTemplateRequest() {
2750
+ return { projectId: "", dataBindingTemplateId: "" };
2751
+ }
2752
+ exports.DeleteDataBindingTemplateRequest = {
2753
+ encode(message, writer = new wire_1.BinaryWriter()) {
2754
+ if (message.projectId !== "") {
2755
+ writer.uint32(10).string(message.projectId);
2756
+ }
2757
+ if (message.dataBindingTemplateId !== "") {
2758
+ writer.uint32(18).string(message.dataBindingTemplateId);
2759
+ }
2760
+ return writer;
2761
+ },
2762
+ decode(input, length) {
2763
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2764
+ const end = length === undefined ? reader.len : reader.pos + length;
2765
+ const message = createBaseDeleteDataBindingTemplateRequest();
2766
+ while (reader.pos < end) {
2767
+ const tag = reader.uint32();
2768
+ switch (tag >>> 3) {
2769
+ case 1: {
2770
+ if (tag !== 10) {
2771
+ break;
2772
+ }
2773
+ message.projectId = reader.string();
2774
+ continue;
2775
+ }
2776
+ case 2: {
2777
+ if (tag !== 18) {
2778
+ break;
2779
+ }
2780
+ message.dataBindingTemplateId = reader.string();
2781
+ continue;
2782
+ }
2783
+ }
2784
+ if ((tag & 7) === 4 || tag === 0) {
2785
+ break;
2786
+ }
2787
+ reader.skip(tag & 7);
2788
+ }
2789
+ return message;
2790
+ },
2791
+ fromJSON(object) {
2792
+ return {
2793
+ projectId: isSet(object.projectId)
2794
+ ? globalThis.String(object.projectId)
2795
+ : isSet(object.project_id)
2796
+ ? globalThis.String(object.project_id)
2797
+ : "",
2798
+ dataBindingTemplateId: isSet(object.dataBindingTemplateId)
2799
+ ? globalThis.String(object.dataBindingTemplateId)
2800
+ : isSet(object.data_binding_template_id)
2801
+ ? globalThis.String(object.data_binding_template_id)
2802
+ : "",
2803
+ };
2804
+ },
2805
+ toJSON(message) {
2806
+ const obj = {};
2807
+ if (message.projectId !== "") {
2808
+ obj.projectId = message.projectId;
2809
+ }
2810
+ if (message.dataBindingTemplateId !== "") {
2811
+ obj.dataBindingTemplateId = message.dataBindingTemplateId;
2812
+ }
2813
+ return obj;
2814
+ },
2815
+ create(base) {
2816
+ return exports.DeleteDataBindingTemplateRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2817
+ },
2818
+ fromPartial(object) {
2819
+ var _a, _b;
2820
+ const message = createBaseDeleteDataBindingTemplateRequest();
2821
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
2822
+ message.dataBindingTemplateId = (_b = object.dataBindingTemplateId) !== null && _b !== void 0 ? _b : "";
2823
+ return message;
2824
+ },
2825
+ };
2826
+ function createBaseDeleteDataBindingTemplateResponse() {
2827
+ return {};
2828
+ }
2829
+ exports.DeleteDataBindingTemplateResponse = {
2830
+ encode(_, writer = new wire_1.BinaryWriter()) {
2831
+ return writer;
2832
+ },
2833
+ decode(input, length) {
2834
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2835
+ const end = length === undefined ? reader.len : reader.pos + length;
2836
+ const message = createBaseDeleteDataBindingTemplateResponse();
2837
+ while (reader.pos < end) {
2838
+ const tag = reader.uint32();
2839
+ switch (tag >>> 3) {
2840
+ }
2841
+ if ((tag & 7) === 4 || tag === 0) {
2842
+ break;
2843
+ }
2844
+ reader.skip(tag & 7);
2845
+ }
2846
+ return message;
2847
+ },
2848
+ fromJSON(_) {
2849
+ return {};
2850
+ },
2851
+ toJSON(_) {
2852
+ const obj = {};
2853
+ return obj;
2854
+ },
2855
+ create(base) {
2856
+ return exports.DeleteDataBindingTemplateResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2857
+ },
2858
+ fromPartial(_) {
2859
+ const message = createBaseDeleteDataBindingTemplateResponse();
2860
+ return message;
2861
+ },
2862
+ };
2863
+ function createBaseAttachDataBindingTemplateToWorkflowRequest() {
2864
+ return { projectId: "", workflowId: "", dataBindingTemplateId: "", attachedBy: "", metadata: undefined };
2865
+ }
2866
+ exports.AttachDataBindingTemplateToWorkflowRequest = {
2867
+ encode(message, writer = new wire_1.BinaryWriter()) {
2868
+ if (message.projectId !== "") {
2869
+ writer.uint32(10).string(message.projectId);
2870
+ }
2871
+ if (message.workflowId !== "") {
2872
+ writer.uint32(18).string(message.workflowId);
2873
+ }
2874
+ if (message.dataBindingTemplateId !== "") {
2875
+ writer.uint32(26).string(message.dataBindingTemplateId);
2876
+ }
2877
+ if (message.attachedBy !== "") {
2878
+ writer.uint32(34).string(message.attachedBy);
2879
+ }
2880
+ if (message.metadata !== undefined) {
2881
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(42).fork()).join();
2882
+ }
2883
+ return writer;
2884
+ },
2885
+ decode(input, length) {
2886
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2887
+ const end = length === undefined ? reader.len : reader.pos + length;
2888
+ const message = createBaseAttachDataBindingTemplateToWorkflowRequest();
2889
+ while (reader.pos < end) {
2890
+ const tag = reader.uint32();
2891
+ switch (tag >>> 3) {
2892
+ case 1: {
2893
+ if (tag !== 10) {
2894
+ break;
2895
+ }
2896
+ message.projectId = reader.string();
2897
+ continue;
2898
+ }
2899
+ case 2: {
2900
+ if (tag !== 18) {
2901
+ break;
2902
+ }
2903
+ message.workflowId = reader.string();
2904
+ continue;
2905
+ }
2906
+ case 3: {
2907
+ if (tag !== 26) {
2908
+ break;
2909
+ }
2910
+ message.dataBindingTemplateId = reader.string();
2911
+ continue;
2912
+ }
2913
+ case 4: {
2914
+ if (tag !== 34) {
2915
+ break;
2916
+ }
2917
+ message.attachedBy = reader.string();
2918
+ continue;
2919
+ }
2920
+ case 5: {
2921
+ if (tag !== 42) {
2922
+ break;
2923
+ }
2924
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
2925
+ continue;
2926
+ }
2927
+ }
2928
+ if ((tag & 7) === 4 || tag === 0) {
2929
+ break;
2930
+ }
2931
+ reader.skip(tag & 7);
2932
+ }
2933
+ return message;
2934
+ },
2935
+ fromJSON(object) {
2936
+ return {
2937
+ projectId: isSet(object.projectId)
2938
+ ? globalThis.String(object.projectId)
2939
+ : isSet(object.project_id)
2940
+ ? globalThis.String(object.project_id)
2941
+ : "",
2942
+ workflowId: isSet(object.workflowId)
2943
+ ? globalThis.String(object.workflowId)
2944
+ : isSet(object.workflow_id)
2945
+ ? globalThis.String(object.workflow_id)
2946
+ : "",
2947
+ dataBindingTemplateId: isSet(object.dataBindingTemplateId)
2948
+ ? globalThis.String(object.dataBindingTemplateId)
2949
+ : isSet(object.data_binding_template_id)
2950
+ ? globalThis.String(object.data_binding_template_id)
2951
+ : "",
2952
+ attachedBy: isSet(object.attachedBy)
2953
+ ? globalThis.String(object.attachedBy)
2954
+ : isSet(object.attached_by)
2955
+ ? globalThis.String(object.attached_by)
2956
+ : "",
2957
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
2958
+ };
2959
+ },
2960
+ toJSON(message) {
2961
+ const obj = {};
2962
+ if (message.projectId !== "") {
2963
+ obj.projectId = message.projectId;
2964
+ }
2965
+ if (message.workflowId !== "") {
2966
+ obj.workflowId = message.workflowId;
2967
+ }
2968
+ if (message.dataBindingTemplateId !== "") {
2969
+ obj.dataBindingTemplateId = message.dataBindingTemplateId;
2970
+ }
2971
+ if (message.attachedBy !== "") {
2972
+ obj.attachedBy = message.attachedBy;
2973
+ }
2974
+ if (message.metadata !== undefined) {
2975
+ obj.metadata = message.metadata;
2976
+ }
2977
+ return obj;
2978
+ },
2979
+ create(base) {
2980
+ return exports.AttachDataBindingTemplateToWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2981
+ },
2982
+ fromPartial(object) {
2983
+ var _a, _b, _c, _d, _e;
2984
+ const message = createBaseAttachDataBindingTemplateToWorkflowRequest();
2985
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
2986
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
2987
+ message.dataBindingTemplateId = (_c = object.dataBindingTemplateId) !== null && _c !== void 0 ? _c : "";
2988
+ message.attachedBy = (_d = object.attachedBy) !== null && _d !== void 0 ? _d : "";
2989
+ message.metadata = (_e = object.metadata) !== null && _e !== void 0 ? _e : undefined;
2990
+ return message;
2991
+ },
2992
+ };
2993
+ function createBaseAttachDataBindingTemplateToWorkflowResponse() {
2994
+ return { binding: undefined };
2995
+ }
2996
+ exports.AttachDataBindingTemplateToWorkflowResponse = {
2997
+ encode(message, writer = new wire_1.BinaryWriter()) {
2998
+ if (message.binding !== undefined) {
2999
+ exports.WorkflowDataBindingTemplateBinding.encode(message.binding, writer.uint32(10).fork()).join();
3000
+ }
3001
+ return writer;
3002
+ },
3003
+ decode(input, length) {
3004
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3005
+ const end = length === undefined ? reader.len : reader.pos + length;
3006
+ const message = createBaseAttachDataBindingTemplateToWorkflowResponse();
3007
+ while (reader.pos < end) {
3008
+ const tag = reader.uint32();
3009
+ switch (tag >>> 3) {
3010
+ case 1: {
3011
+ if (tag !== 10) {
3012
+ break;
3013
+ }
3014
+ message.binding = exports.WorkflowDataBindingTemplateBinding.decode(reader, reader.uint32());
3015
+ continue;
3016
+ }
3017
+ }
3018
+ if ((tag & 7) === 4 || tag === 0) {
3019
+ break;
3020
+ }
3021
+ reader.skip(tag & 7);
3022
+ }
3023
+ return message;
3024
+ },
3025
+ fromJSON(object) {
3026
+ return { binding: isSet(object.binding) ? exports.WorkflowDataBindingTemplateBinding.fromJSON(object.binding) : undefined };
3027
+ },
3028
+ toJSON(message) {
3029
+ const obj = {};
3030
+ if (message.binding !== undefined) {
3031
+ obj.binding = exports.WorkflowDataBindingTemplateBinding.toJSON(message.binding);
3032
+ }
3033
+ return obj;
3034
+ },
3035
+ create(base) {
3036
+ return exports.AttachDataBindingTemplateToWorkflowResponse.fromPartial(base !== null && base !== void 0 ? base : {});
3037
+ },
3038
+ fromPartial(object) {
3039
+ const message = createBaseAttachDataBindingTemplateToWorkflowResponse();
3040
+ message.binding = (object.binding !== undefined && object.binding !== null)
3041
+ ? exports.WorkflowDataBindingTemplateBinding.fromPartial(object.binding)
3042
+ : undefined;
3043
+ return message;
3044
+ },
3045
+ };
3046
+ function createBaseDetachDataBindingTemplateFromWorkflowRequest() {
3047
+ return { projectId: "", workflowId: "", dataBindingTemplateId: "" };
3048
+ }
3049
+ exports.DetachDataBindingTemplateFromWorkflowRequest = {
3050
+ encode(message, writer = new wire_1.BinaryWriter()) {
3051
+ if (message.projectId !== "") {
3052
+ writer.uint32(10).string(message.projectId);
3053
+ }
3054
+ if (message.workflowId !== "") {
3055
+ writer.uint32(18).string(message.workflowId);
3056
+ }
3057
+ if (message.dataBindingTemplateId !== "") {
3058
+ writer.uint32(26).string(message.dataBindingTemplateId);
3059
+ }
3060
+ return writer;
3061
+ },
3062
+ decode(input, length) {
3063
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3064
+ const end = length === undefined ? reader.len : reader.pos + length;
3065
+ const message = createBaseDetachDataBindingTemplateFromWorkflowRequest();
3066
+ while (reader.pos < end) {
3067
+ const tag = reader.uint32();
3068
+ switch (tag >>> 3) {
3069
+ case 1: {
3070
+ if (tag !== 10) {
3071
+ break;
3072
+ }
3073
+ message.projectId = reader.string();
3074
+ continue;
3075
+ }
3076
+ case 2: {
3077
+ if (tag !== 18) {
3078
+ break;
3079
+ }
3080
+ message.workflowId = reader.string();
3081
+ continue;
3082
+ }
3083
+ case 3: {
3084
+ if (tag !== 26) {
3085
+ break;
3086
+ }
3087
+ message.dataBindingTemplateId = reader.string();
3088
+ continue;
3089
+ }
3090
+ }
3091
+ if ((tag & 7) === 4 || tag === 0) {
3092
+ break;
3093
+ }
3094
+ reader.skip(tag & 7);
3095
+ }
3096
+ return message;
3097
+ },
3098
+ fromJSON(object) {
3099
+ return {
3100
+ projectId: isSet(object.projectId)
3101
+ ? globalThis.String(object.projectId)
3102
+ : isSet(object.project_id)
3103
+ ? globalThis.String(object.project_id)
3104
+ : "",
3105
+ workflowId: isSet(object.workflowId)
3106
+ ? globalThis.String(object.workflowId)
3107
+ : isSet(object.workflow_id)
3108
+ ? globalThis.String(object.workflow_id)
3109
+ : "",
3110
+ dataBindingTemplateId: isSet(object.dataBindingTemplateId)
3111
+ ? globalThis.String(object.dataBindingTemplateId)
3112
+ : isSet(object.data_binding_template_id)
3113
+ ? globalThis.String(object.data_binding_template_id)
3114
+ : "",
3115
+ };
3116
+ },
3117
+ toJSON(message) {
3118
+ const obj = {};
3119
+ if (message.projectId !== "") {
3120
+ obj.projectId = message.projectId;
3121
+ }
3122
+ if (message.workflowId !== "") {
3123
+ obj.workflowId = message.workflowId;
3124
+ }
3125
+ if (message.dataBindingTemplateId !== "") {
3126
+ obj.dataBindingTemplateId = message.dataBindingTemplateId;
3127
+ }
3128
+ return obj;
3129
+ },
3130
+ create(base) {
3131
+ return exports.DetachDataBindingTemplateFromWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
3132
+ },
3133
+ fromPartial(object) {
3134
+ var _a, _b, _c;
3135
+ const message = createBaseDetachDataBindingTemplateFromWorkflowRequest();
3136
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
3137
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
3138
+ message.dataBindingTemplateId = (_c = object.dataBindingTemplateId) !== null && _c !== void 0 ? _c : "";
3139
+ return message;
3140
+ },
3141
+ };
3142
+ function createBaseDetachDataBindingTemplateFromWorkflowResponse() {
3143
+ return {};
3144
+ }
3145
+ exports.DetachDataBindingTemplateFromWorkflowResponse = {
3146
+ encode(_, writer = new wire_1.BinaryWriter()) {
3147
+ return writer;
3148
+ },
3149
+ decode(input, length) {
3150
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3151
+ const end = length === undefined ? reader.len : reader.pos + length;
3152
+ const message = createBaseDetachDataBindingTemplateFromWorkflowResponse();
3153
+ while (reader.pos < end) {
3154
+ const tag = reader.uint32();
3155
+ switch (tag >>> 3) {
3156
+ }
3157
+ if ((tag & 7) === 4 || tag === 0) {
3158
+ break;
3159
+ }
3160
+ reader.skip(tag & 7);
3161
+ }
3162
+ return message;
3163
+ },
3164
+ fromJSON(_) {
3165
+ return {};
3166
+ },
3167
+ toJSON(_) {
3168
+ const obj = {};
3169
+ return obj;
3170
+ },
3171
+ create(base) {
3172
+ return exports.DetachDataBindingTemplateFromWorkflowResponse.fromPartial(base !== null && base !== void 0 ? base : {});
3173
+ },
3174
+ fromPartial(_) {
3175
+ const message = createBaseDetachDataBindingTemplateFromWorkflowResponse();
3176
+ return message;
3177
+ },
3178
+ };
3179
+ function createBaseListWorkflowDataBindingTemplateBindingsRequest() {
3180
+ return { projectId: "", workflowId: "", pageSize: 0, pageToken: "" };
3181
+ }
3182
+ exports.ListWorkflowDataBindingTemplateBindingsRequest = {
3183
+ encode(message, writer = new wire_1.BinaryWriter()) {
3184
+ if (message.projectId !== "") {
3185
+ writer.uint32(10).string(message.projectId);
3186
+ }
3187
+ if (message.workflowId !== "") {
3188
+ writer.uint32(18).string(message.workflowId);
3189
+ }
3190
+ if (message.pageSize !== 0) {
3191
+ writer.uint32(24).int32(message.pageSize);
3192
+ }
3193
+ if (message.pageToken !== "") {
3194
+ writer.uint32(34).string(message.pageToken);
3195
+ }
3196
+ return writer;
3197
+ },
3198
+ decode(input, length) {
3199
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3200
+ const end = length === undefined ? reader.len : reader.pos + length;
3201
+ const message = createBaseListWorkflowDataBindingTemplateBindingsRequest();
3202
+ while (reader.pos < end) {
3203
+ const tag = reader.uint32();
3204
+ switch (tag >>> 3) {
3205
+ case 1: {
3206
+ if (tag !== 10) {
3207
+ break;
3208
+ }
3209
+ message.projectId = reader.string();
3210
+ continue;
3211
+ }
3212
+ case 2: {
3213
+ if (tag !== 18) {
3214
+ break;
3215
+ }
3216
+ message.workflowId = reader.string();
3217
+ continue;
3218
+ }
3219
+ case 3: {
3220
+ if (tag !== 24) {
3221
+ break;
3222
+ }
3223
+ message.pageSize = reader.int32();
3224
+ continue;
3225
+ }
3226
+ case 4: {
3227
+ if (tag !== 34) {
3228
+ break;
3229
+ }
3230
+ message.pageToken = reader.string();
3231
+ continue;
3232
+ }
3233
+ }
3234
+ if ((tag & 7) === 4 || tag === 0) {
3235
+ break;
3236
+ }
3237
+ reader.skip(tag & 7);
3238
+ }
3239
+ return message;
3240
+ },
3241
+ fromJSON(object) {
3242
+ return {
3243
+ projectId: isSet(object.projectId)
3244
+ ? globalThis.String(object.projectId)
3245
+ : isSet(object.project_id)
3246
+ ? globalThis.String(object.project_id)
3247
+ : "",
3248
+ workflowId: isSet(object.workflowId)
3249
+ ? globalThis.String(object.workflowId)
3250
+ : isSet(object.workflow_id)
3251
+ ? globalThis.String(object.workflow_id)
3252
+ : "",
3253
+ pageSize: isSet(object.pageSize)
3254
+ ? globalThis.Number(object.pageSize)
3255
+ : isSet(object.page_size)
3256
+ ? globalThis.Number(object.page_size)
3257
+ : 0,
3258
+ pageToken: isSet(object.pageToken)
3259
+ ? globalThis.String(object.pageToken)
3260
+ : isSet(object.page_token)
3261
+ ? globalThis.String(object.page_token)
3262
+ : "",
3263
+ };
3264
+ },
3265
+ toJSON(message) {
3266
+ const obj = {};
3267
+ if (message.projectId !== "") {
3268
+ obj.projectId = message.projectId;
3269
+ }
3270
+ if (message.workflowId !== "") {
3271
+ obj.workflowId = message.workflowId;
3272
+ }
3273
+ if (message.pageSize !== 0) {
3274
+ obj.pageSize = Math.round(message.pageSize);
3275
+ }
3276
+ if (message.pageToken !== "") {
3277
+ obj.pageToken = message.pageToken;
3278
+ }
3279
+ return obj;
3280
+ },
3281
+ create(base) {
3282
+ return exports.ListWorkflowDataBindingTemplateBindingsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
3283
+ },
3284
+ fromPartial(object) {
3285
+ var _a, _b, _c, _d;
3286
+ const message = createBaseListWorkflowDataBindingTemplateBindingsRequest();
3287
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
3288
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
3289
+ message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
3290
+ message.pageToken = (_d = object.pageToken) !== null && _d !== void 0 ? _d : "";
3291
+ return message;
3292
+ },
3293
+ };
3294
+ function createBaseListWorkflowDataBindingTemplateBindingsResponse() {
3295
+ return { bindings: [], nextPageToken: "" };
3296
+ }
3297
+ exports.ListWorkflowDataBindingTemplateBindingsResponse = {
3298
+ encode(message, writer = new wire_1.BinaryWriter()) {
3299
+ for (const v of message.bindings) {
3300
+ exports.WorkflowDataBindingTemplateBinding.encode(v, writer.uint32(10).fork()).join();
3301
+ }
3302
+ if (message.nextPageToken !== "") {
3303
+ writer.uint32(18).string(message.nextPageToken);
3304
+ }
3305
+ return writer;
3306
+ },
3307
+ decode(input, length) {
3308
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3309
+ const end = length === undefined ? reader.len : reader.pos + length;
3310
+ const message = createBaseListWorkflowDataBindingTemplateBindingsResponse();
3311
+ while (reader.pos < end) {
3312
+ const tag = reader.uint32();
3313
+ switch (tag >>> 3) {
3314
+ case 1: {
3315
+ if (tag !== 10) {
3316
+ break;
3317
+ }
3318
+ message.bindings.push(exports.WorkflowDataBindingTemplateBinding.decode(reader, reader.uint32()));
3319
+ continue;
3320
+ }
3321
+ case 2: {
3322
+ if (tag !== 18) {
3323
+ break;
3324
+ }
3325
+ message.nextPageToken = reader.string();
3326
+ continue;
3327
+ }
3328
+ }
3329
+ if ((tag & 7) === 4 || tag === 0) {
3330
+ break;
3331
+ }
3332
+ reader.skip(tag & 7);
3333
+ }
3334
+ return message;
3335
+ },
3336
+ fromJSON(object) {
3337
+ return {
3338
+ bindings: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.bindings)
3339
+ ? object.bindings.map((e) => exports.WorkflowDataBindingTemplateBinding.fromJSON(e))
3340
+ : [],
3341
+ nextPageToken: isSet(object.nextPageToken)
3342
+ ? globalThis.String(object.nextPageToken)
3343
+ : isSet(object.next_page_token)
3344
+ ? globalThis.String(object.next_page_token)
3345
+ : "",
3346
+ };
3347
+ },
3348
+ toJSON(message) {
3349
+ var _a;
3350
+ const obj = {};
3351
+ if ((_a = message.bindings) === null || _a === void 0 ? void 0 : _a.length) {
3352
+ obj.bindings = message.bindings.map((e) => exports.WorkflowDataBindingTemplateBinding.toJSON(e));
3353
+ }
3354
+ if (message.nextPageToken !== "") {
3355
+ obj.nextPageToken = message.nextPageToken;
3356
+ }
3357
+ return obj;
3358
+ },
3359
+ create(base) {
3360
+ return exports.ListWorkflowDataBindingTemplateBindingsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
3361
+ },
3362
+ fromPartial(object) {
3363
+ var _a;
3364
+ var _b;
3365
+ const message = createBaseListWorkflowDataBindingTemplateBindingsResponse();
3366
+ message.bindings = ((_a = object.bindings) === null || _a === void 0 ? void 0 : _a.map((e) => exports.WorkflowDataBindingTemplateBinding.fromPartial(e))) || [];
3367
+ message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
3368
+ return message;
3369
+ },
3370
+ };
3371
+ function createBaseWorkflowDataBindingTemplateBinding() {
3372
+ return {
3373
+ projectId: "",
3374
+ workflowId: "",
3375
+ dataBindingTemplateId: "",
3376
+ attachedBy: "",
3377
+ metadata: undefined,
3378
+ attachedAt: undefined,
3379
+ };
3380
+ }
3381
+ exports.WorkflowDataBindingTemplateBinding = {
3382
+ encode(message, writer = new wire_1.BinaryWriter()) {
3383
+ if (message.projectId !== "") {
3384
+ writer.uint32(10).string(message.projectId);
3385
+ }
3386
+ if (message.workflowId !== "") {
3387
+ writer.uint32(18).string(message.workflowId);
3388
+ }
3389
+ if (message.dataBindingTemplateId !== "") {
3390
+ writer.uint32(26).string(message.dataBindingTemplateId);
3391
+ }
3392
+ if (message.attachedBy !== "") {
3393
+ writer.uint32(34).string(message.attachedBy);
3394
+ }
3395
+ if (message.metadata !== undefined) {
3396
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(42).fork()).join();
3397
+ }
3398
+ if (message.attachedAt !== undefined) {
3399
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.attachedAt), writer.uint32(50).fork()).join();
3400
+ }
3401
+ return writer;
3402
+ },
3403
+ decode(input, length) {
3404
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3405
+ const end = length === undefined ? reader.len : reader.pos + length;
3406
+ const message = createBaseWorkflowDataBindingTemplateBinding();
3407
+ while (reader.pos < end) {
3408
+ const tag = reader.uint32();
3409
+ switch (tag >>> 3) {
3410
+ case 1: {
3411
+ if (tag !== 10) {
3412
+ break;
3413
+ }
3414
+ message.projectId = reader.string();
3415
+ continue;
3416
+ }
3417
+ case 2: {
3418
+ if (tag !== 18) {
3419
+ break;
3420
+ }
3421
+ message.workflowId = reader.string();
3422
+ continue;
3423
+ }
3424
+ case 3: {
3425
+ if (tag !== 26) {
3426
+ break;
3427
+ }
3428
+ message.dataBindingTemplateId = reader.string();
3429
+ continue;
3430
+ }
3431
+ case 4: {
3432
+ if (tag !== 34) {
3433
+ break;
3434
+ }
3435
+ message.attachedBy = reader.string();
3436
+ continue;
3437
+ }
3438
+ case 5: {
3439
+ if (tag !== 42) {
3440
+ break;
3441
+ }
3442
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
3443
+ continue;
3444
+ }
3445
+ case 6: {
3446
+ if (tag !== 50) {
3447
+ break;
3448
+ }
3449
+ message.attachedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
3450
+ continue;
3451
+ }
3452
+ }
3453
+ if ((tag & 7) === 4 || tag === 0) {
3454
+ break;
3455
+ }
3456
+ reader.skip(tag & 7);
3457
+ }
3458
+ return message;
3459
+ },
3460
+ fromJSON(object) {
3461
+ return {
3462
+ projectId: isSet(object.projectId)
3463
+ ? globalThis.String(object.projectId)
3464
+ : isSet(object.project_id)
3465
+ ? globalThis.String(object.project_id)
3466
+ : "",
3467
+ workflowId: isSet(object.workflowId)
3468
+ ? globalThis.String(object.workflowId)
3469
+ : isSet(object.workflow_id)
3470
+ ? globalThis.String(object.workflow_id)
3471
+ : "",
3472
+ dataBindingTemplateId: isSet(object.dataBindingTemplateId)
3473
+ ? globalThis.String(object.dataBindingTemplateId)
3474
+ : isSet(object.data_binding_template_id)
3475
+ ? globalThis.String(object.data_binding_template_id)
3476
+ : "",
3477
+ attachedBy: isSet(object.attachedBy)
3478
+ ? globalThis.String(object.attachedBy)
3479
+ : isSet(object.attached_by)
3480
+ ? globalThis.String(object.attached_by)
3481
+ : "",
3482
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
3483
+ attachedAt: isSet(object.attachedAt)
3484
+ ? fromJsonTimestamp(object.attachedAt)
3485
+ : isSet(object.attached_at)
3486
+ ? fromJsonTimestamp(object.attached_at)
3487
+ : undefined,
3488
+ };
3489
+ },
3490
+ toJSON(message) {
3491
+ const obj = {};
3492
+ if (message.projectId !== "") {
3493
+ obj.projectId = message.projectId;
3494
+ }
3495
+ if (message.workflowId !== "") {
3496
+ obj.workflowId = message.workflowId;
3497
+ }
3498
+ if (message.dataBindingTemplateId !== "") {
3499
+ obj.dataBindingTemplateId = message.dataBindingTemplateId;
3500
+ }
3501
+ if (message.attachedBy !== "") {
3502
+ obj.attachedBy = message.attachedBy;
3503
+ }
3504
+ if (message.metadata !== undefined) {
3505
+ obj.metadata = message.metadata;
3506
+ }
3507
+ if (message.attachedAt !== undefined) {
3508
+ obj.attachedAt = message.attachedAt.toISOString();
3509
+ }
3510
+ return obj;
3511
+ },
3512
+ create(base) {
3513
+ return exports.WorkflowDataBindingTemplateBinding.fromPartial(base !== null && base !== void 0 ? base : {});
3514
+ },
3515
+ fromPartial(object) {
3516
+ var _a, _b, _c, _d, _e, _f;
3517
+ const message = createBaseWorkflowDataBindingTemplateBinding();
3518
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
3519
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
3520
+ message.dataBindingTemplateId = (_c = object.dataBindingTemplateId) !== null && _c !== void 0 ? _c : "";
3521
+ message.attachedBy = (_d = object.attachedBy) !== null && _d !== void 0 ? _d : "";
3522
+ message.metadata = (_e = object.metadata) !== null && _e !== void 0 ? _e : undefined;
3523
+ message.attachedAt = (_f = object.attachedAt) !== null && _f !== void 0 ? _f : undefined;
3524
+ return message;
3525
+ },
3526
+ };
3527
+ exports.SuiteServiceServiceName = "weaveapi.suite.v1.SuiteService";
3528
+ class SuiteServiceClientImpl {
3529
+ rpc;
3530
+ service;
3531
+ constructor(rpc, opts) {
3532
+ this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.SuiteServiceServiceName;
3533
+ this.rpc = rpc;
3534
+ this.CreateTestSuite = this.CreateTestSuite.bind(this);
3535
+ this.GetTestSuite = this.GetTestSuite.bind(this);
3536
+ this.ListTestSuites = this.ListTestSuites.bind(this);
3537
+ this.UpdateTestSuite = this.UpdateTestSuite.bind(this);
3538
+ this.ArchiveTestSuite = this.ArchiveTestSuite.bind(this);
3539
+ this.DeleteTestSuite = this.DeleteTestSuite.bind(this);
3540
+ this.AttachTestSuiteToWorkflow = this.AttachTestSuiteToWorkflow.bind(this);
3541
+ this.DetachTestSuiteFromWorkflow = this.DetachTestSuiteFromWorkflow.bind(this);
3542
+ this.ListWorkflowTestSuiteBindings = this.ListWorkflowTestSuiteBindings.bind(this);
3543
+ this.UpsertTestSuiteItem = this.UpsertTestSuiteItem.bind(this);
3544
+ this.ListTestSuiteItems = this.ListTestSuiteItems.bind(this);
3545
+ this.DeleteTestSuiteItem = this.DeleteTestSuiteItem.bind(this);
3546
+ this.UpsertDataBindingTemplate = this.UpsertDataBindingTemplate.bind(this);
3547
+ this.ListDataBindingTemplates = this.ListDataBindingTemplates.bind(this);
3548
+ this.DeleteDataBindingTemplate = this.DeleteDataBindingTemplate.bind(this);
3549
+ this.AttachDataBindingTemplateToWorkflow = this.AttachDataBindingTemplateToWorkflow.bind(this);
3550
+ this.DetachDataBindingTemplateFromWorkflow = this.DetachDataBindingTemplateFromWorkflow.bind(this);
3551
+ this.ListWorkflowDataBindingTemplateBindings = this.ListWorkflowDataBindingTemplateBindings.bind(this);
3552
+ }
3553
+ CreateTestSuite(request) {
3554
+ const data = exports.CreateTestSuiteRequest.encode(request).finish();
3555
+ const promise = this.rpc.request(this.service, "CreateTestSuite", data);
3556
+ return promise.then((data) => exports.CreateTestSuiteResponse.decode(new wire_1.BinaryReader(data)));
3557
+ }
3558
+ GetTestSuite(request) {
3559
+ const data = exports.GetTestSuiteRequest.encode(request).finish();
3560
+ const promise = this.rpc.request(this.service, "GetTestSuite", data);
3561
+ return promise.then((data) => exports.GetTestSuiteResponse.decode(new wire_1.BinaryReader(data)));
3562
+ }
3563
+ ListTestSuites(request) {
3564
+ const data = exports.ListTestSuitesRequest.encode(request).finish();
3565
+ const promise = this.rpc.request(this.service, "ListTestSuites", data);
3566
+ return promise.then((data) => exports.ListTestSuitesResponse.decode(new wire_1.BinaryReader(data)));
3567
+ }
3568
+ UpdateTestSuite(request) {
3569
+ const data = exports.UpdateTestSuiteRequest.encode(request).finish();
3570
+ const promise = this.rpc.request(this.service, "UpdateTestSuite", data);
3571
+ return promise.then((data) => exports.UpdateTestSuiteResponse.decode(new wire_1.BinaryReader(data)));
3572
+ }
3573
+ ArchiveTestSuite(request) {
3574
+ const data = exports.ArchiveTestSuiteRequest.encode(request).finish();
2441
3575
  const promise = this.rpc.request(this.service, "ArchiveTestSuite", data);
2442
3576
  return promise.then((data) => exports.ArchiveTestSuiteResponse.decode(new wire_1.BinaryReader(data)));
2443
3577
  }
@@ -2446,6 +3580,21 @@ class SuiteServiceClientImpl {
2446
3580
  const promise = this.rpc.request(this.service, "DeleteTestSuite", data);
2447
3581
  return promise.then((data) => exports.DeleteTestSuiteResponse.decode(new wire_1.BinaryReader(data)));
2448
3582
  }
3583
+ AttachTestSuiteToWorkflow(request) {
3584
+ const data = exports.AttachTestSuiteToWorkflowRequest.encode(request).finish();
3585
+ const promise = this.rpc.request(this.service, "AttachTestSuiteToWorkflow", data);
3586
+ return promise.then((data) => exports.AttachTestSuiteToWorkflowResponse.decode(new wire_1.BinaryReader(data)));
3587
+ }
3588
+ DetachTestSuiteFromWorkflow(request) {
3589
+ const data = exports.DetachTestSuiteFromWorkflowRequest.encode(request).finish();
3590
+ const promise = this.rpc.request(this.service, "DetachTestSuiteFromWorkflow", data);
3591
+ return promise.then((data) => exports.DetachTestSuiteFromWorkflowResponse.decode(new wire_1.BinaryReader(data)));
3592
+ }
3593
+ ListWorkflowTestSuiteBindings(request) {
3594
+ const data = exports.ListWorkflowTestSuiteBindingsRequest.encode(request).finish();
3595
+ const promise = this.rpc.request(this.service, "ListWorkflowTestSuiteBindings", data);
3596
+ return promise.then((data) => exports.ListWorkflowTestSuiteBindingsResponse.decode(new wire_1.BinaryReader(data)));
3597
+ }
2449
3598
  UpsertTestSuiteItem(request) {
2450
3599
  const data = exports.UpsertTestSuiteItemRequest.encode(request).finish();
2451
3600
  const promise = this.rpc.request(this.service, "UpsertTestSuiteItem", data);
@@ -2476,6 +3625,21 @@ class SuiteServiceClientImpl {
2476
3625
  const promise = this.rpc.request(this.service, "DeleteDataBindingTemplate", data);
2477
3626
  return promise.then((data) => exports.DeleteDataBindingTemplateResponse.decode(new wire_1.BinaryReader(data)));
2478
3627
  }
3628
+ AttachDataBindingTemplateToWorkflow(request) {
3629
+ const data = exports.AttachDataBindingTemplateToWorkflowRequest.encode(request).finish();
3630
+ const promise = this.rpc.request(this.service, "AttachDataBindingTemplateToWorkflow", data);
3631
+ return promise.then((data) => exports.AttachDataBindingTemplateToWorkflowResponse.decode(new wire_1.BinaryReader(data)));
3632
+ }
3633
+ DetachDataBindingTemplateFromWorkflow(request) {
3634
+ const data = exports.DetachDataBindingTemplateFromWorkflowRequest.encode(request).finish();
3635
+ const promise = this.rpc.request(this.service, "DetachDataBindingTemplateFromWorkflow", data);
3636
+ return promise.then((data) => exports.DetachDataBindingTemplateFromWorkflowResponse.decode(new wire_1.BinaryReader(data)));
3637
+ }
3638
+ ListWorkflowDataBindingTemplateBindings(request) {
3639
+ const data = exports.ListWorkflowDataBindingTemplateBindingsRequest.encode(request).finish();
3640
+ const promise = this.rpc.request(this.service, "ListWorkflowDataBindingTemplateBindings", data);
3641
+ return promise.then((data) => exports.ListWorkflowDataBindingTemplateBindingsResponse.decode(new wire_1.BinaryReader(data)));
3642
+ }
2479
3643
  }
2480
3644
  exports.SuiteServiceClientImpl = SuiteServiceClientImpl;
2481
3645
  exports.SuiteServiceDefinition = {
@@ -2486,7 +3650,305 @@ exports.SuiteServiceDefinition = {
2486
3650
  name: "CreateTestSuite",
2487
3651
  requestType: exports.CreateTestSuiteRequest,
2488
3652
  requestStream: false,
2489
- responseType: exports.CreateTestSuiteResponse,
3653
+ responseType: exports.CreateTestSuiteResponse,
3654
+ responseStream: false,
3655
+ options: {
3656
+ _unknownFields: {
3657
+ 578365826: [
3658
+ new Uint8Array([
3659
+ 37,
3660
+ 58,
3661
+ 1,
3662
+ 42,
3663
+ 34,
3664
+ 32,
3665
+ 47,
3666
+ 118,
3667
+ 49,
3668
+ 47,
3669
+ 112,
3670
+ 114,
3671
+ 111,
3672
+ 106,
3673
+ 101,
3674
+ 99,
3675
+ 116,
3676
+ 115,
3677
+ 47,
3678
+ 123,
3679
+ 112,
3680
+ 114,
3681
+ 111,
3682
+ 106,
3683
+ 101,
3684
+ 99,
3685
+ 116,
3686
+ 95,
3687
+ 105,
3688
+ 100,
3689
+ 125,
3690
+ 47,
3691
+ 115,
3692
+ 117,
3693
+ 105,
3694
+ 116,
3695
+ 101,
3696
+ 115,
3697
+ ]),
3698
+ ],
3699
+ },
3700
+ },
3701
+ },
3702
+ getTestSuite: {
3703
+ name: "GetTestSuite",
3704
+ requestType: exports.GetTestSuiteRequest,
3705
+ requestStream: false,
3706
+ responseType: exports.GetTestSuiteResponse,
3707
+ responseStream: false,
3708
+ options: {
3709
+ _unknownFields: {
3710
+ 578365826: [
3711
+ new Uint8Array([
3712
+ 50,
3713
+ 18,
3714
+ 48,
3715
+ 47,
3716
+ 118,
3717
+ 49,
3718
+ 47,
3719
+ 112,
3720
+ 114,
3721
+ 111,
3722
+ 106,
3723
+ 101,
3724
+ 99,
3725
+ 116,
3726
+ 115,
3727
+ 47,
3728
+ 123,
3729
+ 112,
3730
+ 114,
3731
+ 111,
3732
+ 106,
3733
+ 101,
3734
+ 99,
3735
+ 116,
3736
+ 95,
3737
+ 105,
3738
+ 100,
3739
+ 125,
3740
+ 47,
3741
+ 115,
3742
+ 117,
3743
+ 105,
3744
+ 116,
3745
+ 101,
3746
+ 115,
3747
+ 47,
3748
+ 123,
3749
+ 116,
3750
+ 101,
3751
+ 115,
3752
+ 116,
3753
+ 95,
3754
+ 115,
3755
+ 117,
3756
+ 105,
3757
+ 116,
3758
+ 101,
3759
+ 95,
3760
+ 105,
3761
+ 100,
3762
+ 125,
3763
+ ]),
3764
+ ],
3765
+ },
3766
+ },
3767
+ },
3768
+ listTestSuites: {
3769
+ name: "ListTestSuites",
3770
+ requestType: exports.ListTestSuitesRequest,
3771
+ requestStream: false,
3772
+ responseType: exports.ListTestSuitesResponse,
3773
+ responseStream: false,
3774
+ options: {
3775
+ _unknownFields: {
3776
+ 578365826: [
3777
+ new Uint8Array([
3778
+ 94,
3779
+ 90,
3780
+ 58,
3781
+ 18,
3782
+ 56,
3783
+ 47,
3784
+ 118,
3785
+ 49,
3786
+ 47,
3787
+ 112,
3788
+ 114,
3789
+ 111,
3790
+ 106,
3791
+ 101,
3792
+ 99,
3793
+ 116,
3794
+ 115,
3795
+ 47,
3796
+ 123,
3797
+ 112,
3798
+ 114,
3799
+ 111,
3800
+ 106,
3801
+ 101,
3802
+ 99,
3803
+ 116,
3804
+ 95,
3805
+ 105,
3806
+ 100,
3807
+ 125,
3808
+ 47,
3809
+ 119,
3810
+ 111,
3811
+ 114,
3812
+ 107,
3813
+ 102,
3814
+ 108,
3815
+ 111,
3816
+ 119,
3817
+ 115,
3818
+ 47,
3819
+ 123,
3820
+ 119,
3821
+ 111,
3822
+ 114,
3823
+ 107,
3824
+ 102,
3825
+ 108,
3826
+ 111,
3827
+ 119,
3828
+ 95,
3829
+ 105,
3830
+ 100,
3831
+ 125,
3832
+ 47,
3833
+ 115,
3834
+ 117,
3835
+ 105,
3836
+ 116,
3837
+ 101,
3838
+ 115,
3839
+ 18,
3840
+ 32,
3841
+ 47,
3842
+ 118,
3843
+ 49,
3844
+ 47,
3845
+ 112,
3846
+ 114,
3847
+ 111,
3848
+ 106,
3849
+ 101,
3850
+ 99,
3851
+ 116,
3852
+ 115,
3853
+ 47,
3854
+ 123,
3855
+ 112,
3856
+ 114,
3857
+ 111,
3858
+ 106,
3859
+ 101,
3860
+ 99,
3861
+ 116,
3862
+ 95,
3863
+ 105,
3864
+ 100,
3865
+ 125,
3866
+ 47,
3867
+ 115,
3868
+ 117,
3869
+ 105,
3870
+ 116,
3871
+ 101,
3872
+ 115,
3873
+ ]),
3874
+ ],
3875
+ },
3876
+ },
3877
+ },
3878
+ updateTestSuite: {
3879
+ name: "UpdateTestSuite",
3880
+ requestType: exports.UpdateTestSuiteRequest,
3881
+ requestStream: false,
3882
+ responseType: exports.UpdateTestSuiteResponse,
3883
+ responseStream: false,
3884
+ options: {
3885
+ _unknownFields: {
3886
+ 578365826: [
3887
+ new Uint8Array([
3888
+ 53,
3889
+ 58,
3890
+ 1,
3891
+ 42,
3892
+ 50,
3893
+ 48,
3894
+ 47,
3895
+ 118,
3896
+ 49,
3897
+ 47,
3898
+ 112,
3899
+ 114,
3900
+ 111,
3901
+ 106,
3902
+ 101,
3903
+ 99,
3904
+ 116,
3905
+ 115,
3906
+ 47,
3907
+ 123,
3908
+ 112,
3909
+ 114,
3910
+ 111,
3911
+ 106,
3912
+ 101,
3913
+ 99,
3914
+ 116,
3915
+ 95,
3916
+ 105,
3917
+ 100,
3918
+ 125,
3919
+ 47,
3920
+ 115,
3921
+ 117,
3922
+ 105,
3923
+ 116,
3924
+ 101,
3925
+ 115,
3926
+ 47,
3927
+ 123,
3928
+ 116,
3929
+ 101,
3930
+ 115,
3931
+ 116,
3932
+ 95,
3933
+ 115,
3934
+ 117,
3935
+ 105,
3936
+ 116,
3937
+ 101,
3938
+ 95,
3939
+ 105,
3940
+ 100,
3941
+ 125,
3942
+ ]),
3943
+ ],
3944
+ },
3945
+ },
3946
+ },
3947
+ archiveTestSuite: {
3948
+ name: "ArchiveTestSuite",
3949
+ requestType: exports.ArchiveTestSuiteRequest,
3950
+ requestStream: false,
3951
+ responseType: exports.ArchiveTestSuiteResponse,
2490
3952
  responseStream: false,
2491
3953
  options: {
2492
3954
  _unknownFields: {
@@ -2524,6 +3986,149 @@ exports.SuiteServiceDefinition = {
2524
3986
  100,
2525
3987
  125,
2526
3988
  47,
3989
+ 115,
3990
+ 117,
3991
+ 105,
3992
+ 116,
3993
+ 101,
3994
+ 115,
3995
+ 47,
3996
+ 123,
3997
+ 116,
3998
+ 101,
3999
+ 115,
4000
+ 116,
4001
+ 95,
4002
+ 115,
4003
+ 117,
4004
+ 105,
4005
+ 116,
4006
+ 101,
4007
+ 95,
4008
+ 105,
4009
+ 100,
4010
+ 125,
4011
+ 58,
4012
+ 97,
4013
+ 114,
4014
+ 99,
4015
+ 104,
4016
+ 105,
4017
+ 118,
4018
+ 101,
4019
+ ]),
4020
+ ],
4021
+ },
4022
+ },
4023
+ },
4024
+ deleteTestSuite: {
4025
+ name: "DeleteTestSuite",
4026
+ requestType: exports.DeleteTestSuiteRequest,
4027
+ requestStream: false,
4028
+ responseType: exports.DeleteTestSuiteResponse,
4029
+ responseStream: false,
4030
+ options: {
4031
+ _unknownFields: {
4032
+ 578365826: [
4033
+ new Uint8Array([
4034
+ 50,
4035
+ 42,
4036
+ 48,
4037
+ 47,
4038
+ 118,
4039
+ 49,
4040
+ 47,
4041
+ 112,
4042
+ 114,
4043
+ 111,
4044
+ 106,
4045
+ 101,
4046
+ 99,
4047
+ 116,
4048
+ 115,
4049
+ 47,
4050
+ 123,
4051
+ 112,
4052
+ 114,
4053
+ 111,
4054
+ 106,
4055
+ 101,
4056
+ 99,
4057
+ 116,
4058
+ 95,
4059
+ 105,
4060
+ 100,
4061
+ 125,
4062
+ 47,
4063
+ 115,
4064
+ 117,
4065
+ 105,
4066
+ 116,
4067
+ 101,
4068
+ 115,
4069
+ 47,
4070
+ 123,
4071
+ 116,
4072
+ 101,
4073
+ 115,
4074
+ 116,
4075
+ 95,
4076
+ 115,
4077
+ 117,
4078
+ 105,
4079
+ 116,
4080
+ 101,
4081
+ 95,
4082
+ 105,
4083
+ 100,
4084
+ 125,
4085
+ ]),
4086
+ ],
4087
+ },
4088
+ },
4089
+ },
4090
+ attachTestSuiteToWorkflow: {
4091
+ name: "AttachTestSuiteToWorkflow",
4092
+ requestType: exports.AttachTestSuiteToWorkflowRequest,
4093
+ requestStream: false,
4094
+ responseType: exports.AttachTestSuiteToWorkflowResponse,
4095
+ responseStream: false,
4096
+ options: {
4097
+ _unknownFields: {
4098
+ 578365826: [
4099
+ new Uint8Array([
4100
+ 84,
4101
+ 58,
4102
+ 1,
4103
+ 42,
4104
+ 34,
4105
+ 79,
4106
+ 47,
4107
+ 118,
4108
+ 49,
4109
+ 47,
4110
+ 112,
4111
+ 114,
4112
+ 111,
4113
+ 106,
4114
+ 101,
4115
+ 99,
4116
+ 116,
4117
+ 115,
4118
+ 47,
4119
+ 123,
4120
+ 112,
4121
+ 114,
4122
+ 111,
4123
+ 106,
4124
+ 101,
4125
+ 99,
4126
+ 116,
4127
+ 95,
4128
+ 105,
4129
+ 100,
4130
+ 125,
4131
+ 47,
2527
4132
  119,
2528
4133
  111,
2529
4134
  114,
@@ -2554,23 +4159,46 @@ exports.SuiteServiceDefinition = {
2554
4159
  116,
2555
4160
  101,
2556
4161
  115,
4162
+ 47,
4163
+ 123,
4164
+ 116,
4165
+ 101,
4166
+ 115,
4167
+ 116,
4168
+ 95,
4169
+ 115,
4170
+ 117,
4171
+ 105,
4172
+ 116,
4173
+ 101,
4174
+ 95,
4175
+ 105,
4176
+ 100,
4177
+ 125,
4178
+ 58,
4179
+ 97,
4180
+ 116,
4181
+ 116,
4182
+ 97,
4183
+ 99,
4184
+ 104,
2557
4185
  ]),
2558
4186
  ],
2559
4187
  },
2560
4188
  },
2561
4189
  },
2562
- getTestSuite: {
2563
- name: "GetTestSuite",
2564
- requestType: exports.GetTestSuiteRequest,
4190
+ detachTestSuiteFromWorkflow: {
4191
+ name: "DetachTestSuiteFromWorkflow",
4192
+ requestType: exports.DetachTestSuiteFromWorkflowRequest,
2565
4193
  requestStream: false,
2566
- responseType: exports.GetTestSuiteResponse,
4194
+ responseType: exports.DetachTestSuiteFromWorkflowResponse,
2567
4195
  responseStream: false,
2568
4196
  options: {
2569
4197
  _unknownFields: {
2570
4198
  578365826: [
2571
4199
  new Uint8Array([
2572
4200
  74,
2573
- 18,
4201
+ 42,
2574
4202
  72,
2575
4203
  47,
2576
4204
  118,
@@ -2649,19 +4277,19 @@ exports.SuiteServiceDefinition = {
2649
4277
  },
2650
4278
  },
2651
4279
  },
2652
- listTestSuites: {
2653
- name: "ListTestSuites",
2654
- requestType: exports.ListTestSuitesRequest,
4280
+ listWorkflowTestSuiteBindings: {
4281
+ name: "ListWorkflowTestSuiteBindings",
4282
+ requestType: exports.ListWorkflowTestSuiteBindingsRequest,
2655
4283
  requestStream: false,
2656
- responseType: exports.ListTestSuitesResponse,
4284
+ responseType: exports.ListWorkflowTestSuiteBindingsResponse,
2657
4285
  responseStream: false,
2658
4286
  options: {
2659
4287
  _unknownFields: {
2660
4288
  578365826: [
2661
4289
  new Uint8Array([
2662
- 58,
4290
+ 71,
2663
4291
  18,
2664
- 56,
4292
+ 69,
2665
4293
  47,
2666
4294
  118,
2667
4295
  49,
@@ -2712,33 +4340,46 @@ exports.SuiteServiceDefinition = {
2712
4340
  100,
2713
4341
  125,
2714
4342
  47,
4343
+ 116,
4344
+ 101,
4345
+ 115,
4346
+ 116,
4347
+ 45,
2715
4348
  115,
2716
4349
  117,
2717
4350
  105,
2718
4351
  116,
2719
4352
  101,
4353
+ 45,
4354
+ 98,
4355
+ 105,
4356
+ 110,
4357
+ 100,
4358
+ 105,
4359
+ 110,
4360
+ 103,
2720
4361
  115,
2721
4362
  ]),
2722
4363
  ],
2723
4364
  },
2724
4365
  },
2725
4366
  },
2726
- updateTestSuite: {
2727
- name: "UpdateTestSuite",
2728
- requestType: exports.UpdateTestSuiteRequest,
4367
+ upsertTestSuiteItem: {
4368
+ name: "UpsertTestSuiteItem",
4369
+ requestType: exports.UpsertTestSuiteItemRequest,
2729
4370
  requestStream: false,
2730
- responseType: exports.UpdateTestSuiteResponse,
4371
+ responseType: exports.UpsertTestSuiteItemResponse,
2731
4372
  responseStream: false,
2732
4373
  options: {
2733
4374
  _unknownFields: {
2734
4375
  578365826: [
2735
4376
  new Uint8Array([
2736
- 77,
4377
+ 59,
2737
4378
  58,
2738
4379
  1,
2739
4380
  42,
2740
- 50,
2741
- 72,
4381
+ 34,
4382
+ 54,
2742
4383
  47,
2743
4384
  118,
2744
4385
  49,
@@ -2765,30 +4406,6 @@ exports.SuiteServiceDefinition = {
2765
4406
  100,
2766
4407
  125,
2767
4408
  47,
2768
- 119,
2769
- 111,
2770
- 114,
2771
- 107,
2772
- 102,
2773
- 108,
2774
- 111,
2775
- 119,
2776
- 115,
2777
- 47,
2778
- 123,
2779
- 119,
2780
- 111,
2781
- 114,
2782
- 107,
2783
- 102,
2784
- 108,
2785
- 111,
2786
- 119,
2787
- 95,
2788
- 105,
2789
- 100,
2790
- 125,
2791
- 47,
2792
4409
  115,
2793
4410
  117,
2794
4411
  105,
@@ -2811,27 +4428,30 @@ exports.SuiteServiceDefinition = {
2811
4428
  105,
2812
4429
  100,
2813
4430
  125,
4431
+ 47,
4432
+ 105,
4433
+ 116,
4434
+ 101,
4435
+ 109,
4436
+ 115,
2814
4437
  ]),
2815
4438
  ],
2816
4439
  },
2817
4440
  },
2818
4441
  },
2819
- archiveTestSuite: {
2820
- name: "ArchiveTestSuite",
2821
- requestType: exports.ArchiveTestSuiteRequest,
4442
+ listTestSuiteItems: {
4443
+ name: "ListTestSuiteItems",
4444
+ requestType: exports.ListTestSuiteItemsRequest,
2822
4445
  requestStream: false,
2823
- responseType: exports.ArchiveTestSuiteResponse,
4446
+ responseType: exports.ListTestSuiteItemsResponse,
2824
4447
  responseStream: false,
2825
4448
  options: {
2826
4449
  _unknownFields: {
2827
4450
  578365826: [
2828
4451
  new Uint8Array([
2829
- 85,
2830
- 58,
2831
- 1,
2832
- 42,
2833
- 34,
2834
- 80,
4452
+ 56,
4453
+ 18,
4454
+ 54,
2835
4455
  47,
2836
4456
  118,
2837
4457
  49,
@@ -2858,30 +4478,6 @@ exports.SuiteServiceDefinition = {
2858
4478
  100,
2859
4479
  125,
2860
4480
  47,
2861
- 119,
2862
- 111,
2863
- 114,
2864
- 107,
2865
- 102,
2866
- 108,
2867
- 111,
2868
- 119,
2869
- 115,
2870
- 47,
2871
- 123,
2872
- 119,
2873
- 111,
2874
- 114,
2875
- 107,
2876
- 102,
2877
- 108,
2878
- 111,
2879
- 119,
2880
- 95,
2881
- 105,
2882
- 100,
2883
- 125,
2884
- 47,
2885
4481
  115,
2886
4482
  117,
2887
4483
  105,
@@ -2904,32 +4500,30 @@ exports.SuiteServiceDefinition = {
2904
4500
  105,
2905
4501
  100,
2906
4502
  125,
2907
- 58,
2908
- 97,
2909
- 114,
2910
- 99,
2911
- 104,
4503
+ 47,
2912
4504
  105,
2913
- 118,
4505
+ 116,
2914
4506
  101,
4507
+ 109,
4508
+ 115,
2915
4509
  ]),
2916
4510
  ],
2917
4511
  },
2918
4512
  },
2919
4513
  },
2920
- deleteTestSuite: {
2921
- name: "DeleteTestSuite",
2922
- requestType: exports.DeleteTestSuiteRequest,
4514
+ deleteTestSuiteItem: {
4515
+ name: "DeleteTestSuiteItem",
4516
+ requestType: exports.DeleteTestSuiteItemRequest,
2923
4517
  requestStream: false,
2924
- responseType: exports.DeleteTestSuiteResponse,
4518
+ responseType: exports.DeleteTestSuiteItemResponse,
2925
4519
  responseStream: false,
2926
4520
  options: {
2927
4521
  _unknownFields: {
2928
4522
  578365826: [
2929
4523
  new Uint8Array([
2930
- 74,
4524
+ 77,
2931
4525
  42,
2932
- 72,
4526
+ 75,
2933
4527
  47,
2934
4528
  118,
2935
4529
  49,
@@ -2956,35 +4550,33 @@ exports.SuiteServiceDefinition = {
2956
4550
  100,
2957
4551
  125,
2958
4552
  47,
2959
- 119,
2960
- 111,
2961
- 114,
2962
- 107,
2963
- 102,
2964
- 108,
2965
- 111,
2966
- 119,
4553
+ 115,
4554
+ 117,
4555
+ 105,
4556
+ 116,
4557
+ 101,
2967
4558
  115,
2968
4559
  47,
2969
4560
  123,
2970
- 119,
2971
- 111,
2972
- 114,
2973
- 107,
2974
- 102,
2975
- 108,
2976
- 111,
2977
- 119,
4561
+ 116,
4562
+ 101,
4563
+ 115,
4564
+ 116,
4565
+ 95,
4566
+ 115,
4567
+ 117,
4568
+ 105,
4569
+ 116,
4570
+ 101,
2978
4571
  95,
2979
4572
  105,
2980
4573
  100,
2981
4574
  125,
2982
4575
  47,
2983
- 115,
2984
- 117,
2985
4576
  105,
2986
4577
  116,
2987
4578
  101,
4579
+ 109,
2988
4580
  115,
2989
4581
  47,
2990
4582
  123,
@@ -3000,6 +4592,11 @@ exports.SuiteServiceDefinition = {
3000
4592
  101,
3001
4593
  95,
3002
4594
  105,
4595
+ 116,
4596
+ 101,
4597
+ 109,
4598
+ 95,
4599
+ 105,
3003
4600
  100,
3004
4601
  125,
3005
4602
  ]),
@@ -3007,22 +4604,22 @@ exports.SuiteServiceDefinition = {
3007
4604
  },
3008
4605
  },
3009
4606
  },
3010
- upsertTestSuiteItem: {
3011
- name: "UpsertTestSuiteItem",
3012
- requestType: exports.UpsertTestSuiteItemRequest,
4607
+ upsertDataBindingTemplate: {
4608
+ name: "UpsertDataBindingTemplate",
4609
+ requestType: exports.UpsertDataBindingTemplateRequest,
3013
4610
  requestStream: false,
3014
- responseType: exports.UpsertTestSuiteItemResponse,
4611
+ responseType: exports.UpsertDataBindingTemplateResponse,
3015
4612
  responseStream: false,
3016
4613
  options: {
3017
4614
  _unknownFields: {
3018
4615
  578365826: [
3019
4616
  new Uint8Array([
3020
- 83,
4617
+ 53,
3021
4618
  58,
3022
4619
  1,
3023
4620
  42,
3024
4621
  34,
3025
- 78,
4622
+ 48,
3026
4623
  47,
3027
4624
  118,
3028
4625
  49,
@@ -3049,76 +4646,48 @@ exports.SuiteServiceDefinition = {
3049
4646
  100,
3050
4647
  125,
3051
4648
  47,
3052
- 119,
3053
- 111,
3054
- 114,
3055
- 107,
3056
- 102,
3057
- 108,
3058
- 111,
3059
- 119,
3060
- 115,
3061
- 47,
3062
- 123,
3063
- 119,
3064
- 111,
3065
- 114,
3066
- 107,
3067
- 102,
3068
- 108,
3069
- 111,
3070
- 119,
3071
- 95,
3072
- 105,
3073
4649
  100,
3074
- 125,
3075
- 47,
3076
- 115,
3077
- 117,
3078
- 105,
3079
- 116,
3080
- 101,
3081
- 115,
3082
- 47,
3083
- 123,
3084
- 116,
3085
- 101,
3086
- 115,
3087
- 116,
3088
- 95,
3089
- 115,
3090
- 117,
3091
- 105,
4650
+ 97,
3092
4651
  116,
3093
- 101,
3094
- 95,
4652
+ 97,
4653
+ 45,
4654
+ 98,
3095
4655
  105,
4656
+ 110,
3096
4657
  100,
3097
- 125,
3098
- 47,
3099
4658
  105,
4659
+ 110,
4660
+ 103,
4661
+ 45,
3100
4662
  116,
3101
4663
  101,
3102
4664
  109,
4665
+ 112,
4666
+ 108,
4667
+ 97,
4668
+ 116,
4669
+ 101,
3103
4670
  115,
3104
4671
  ]),
3105
4672
  ],
3106
4673
  },
3107
4674
  },
3108
4675
  },
3109
- listTestSuiteItems: {
3110
- name: "ListTestSuiteItems",
3111
- requestType: exports.ListTestSuiteItemsRequest,
4676
+ listDataBindingTemplates: {
4677
+ name: "ListDataBindingTemplates",
4678
+ requestType: exports.ListDataBindingTemplatesRequest,
3112
4679
  requestStream: false,
3113
- responseType: exports.ListTestSuiteItemsResponse,
4680
+ responseType: exports.ListDataBindingTemplatesResponse,
3114
4681
  responseStream: false,
3115
4682
  options: {
3116
4683
  _unknownFields: {
3117
4684
  578365826: [
3118
4685
  new Uint8Array([
3119
- 80,
4686
+ 126,
4687
+ 90,
4688
+ 74,
3120
4689
  18,
3121
- 78,
4690
+ 72,
3122
4691
  47,
3123
4692
  118,
3124
4693
  49,
@@ -3169,52 +4738,96 @@ exports.SuiteServiceDefinition = {
3169
4738
  100,
3170
4739
  125,
3171
4740
  47,
3172
- 115,
3173
- 117,
4741
+ 100,
4742
+ 97,
4743
+ 116,
4744
+ 97,
4745
+ 45,
4746
+ 98,
4747
+ 105,
4748
+ 110,
4749
+ 100,
3174
4750
  105,
4751
+ 110,
4752
+ 103,
4753
+ 45,
3175
4754
  116,
3176
4755
  101,
3177
- 115,
3178
- 47,
3179
- 123,
4756
+ 109,
4757
+ 112,
4758
+ 108,
4759
+ 97,
3180
4760
  116,
3181
4761
  101,
3182
4762
  115,
4763
+ 18,
4764
+ 48,
4765
+ 47,
4766
+ 118,
4767
+ 49,
4768
+ 47,
4769
+ 112,
4770
+ 114,
4771
+ 111,
4772
+ 106,
4773
+ 101,
4774
+ 99,
3183
4775
  116,
3184
- 95,
3185
4776
  115,
3186
- 117,
3187
- 105,
3188
- 116,
4777
+ 47,
4778
+ 123,
4779
+ 112,
4780
+ 114,
4781
+ 111,
4782
+ 106,
3189
4783
  101,
4784
+ 99,
4785
+ 116,
3190
4786
  95,
3191
4787
  105,
3192
4788
  100,
3193
4789
  125,
3194
4790
  47,
4791
+ 100,
4792
+ 97,
4793
+ 116,
4794
+ 97,
4795
+ 45,
4796
+ 98,
4797
+ 105,
4798
+ 110,
4799
+ 100,
3195
4800
  105,
4801
+ 110,
4802
+ 103,
4803
+ 45,
3196
4804
  116,
3197
4805
  101,
3198
4806
  109,
4807
+ 112,
4808
+ 108,
4809
+ 97,
4810
+ 116,
4811
+ 101,
3199
4812
  115,
3200
4813
  ]),
3201
4814
  ],
3202
4815
  },
3203
4816
  },
3204
4817
  },
3205
- deleteTestSuiteItem: {
3206
- name: "DeleteTestSuiteItem",
3207
- requestType: exports.DeleteTestSuiteItemRequest,
4818
+ deleteDataBindingTemplate: {
4819
+ name: "DeleteDataBindingTemplate",
4820
+ requestType: exports.DeleteDataBindingTemplateRequest,
3208
4821
  requestStream: false,
3209
- responseType: exports.DeleteTestSuiteItemResponse,
4822
+ responseType: exports.DeleteDataBindingTemplateResponse,
3210
4823
  responseStream: false,
3211
4824
  options: {
3212
4825
  _unknownFields: {
3213
4826
  578365826: [
3214
4827
  new Uint8Array([
3215
- 101,
4828
+ 77,
3216
4829
  42,
3217
- 99,
4830
+ 75,
3218
4831
  47,
3219
4832
  118,
3220
4833
  49,
@@ -3241,75 +4854,51 @@ exports.SuiteServiceDefinition = {
3241
4854
  100,
3242
4855
  125,
3243
4856
  47,
3244
- 119,
3245
- 111,
3246
- 114,
3247
- 107,
3248
- 102,
3249
- 108,
3250
- 111,
3251
- 119,
3252
- 115,
3253
- 47,
3254
- 123,
3255
- 119,
3256
- 111,
3257
- 114,
3258
- 107,
3259
- 102,
3260
- 108,
3261
- 111,
3262
- 119,
3263
- 95,
3264
- 105,
3265
4857
  100,
3266
- 125,
3267
- 47,
3268
- 115,
3269
- 117,
3270
- 105,
3271
- 116,
3272
- 101,
3273
- 115,
3274
- 47,
3275
- 123,
3276
- 116,
3277
- 101,
3278
- 115,
3279
- 116,
3280
- 95,
3281
- 115,
3282
- 117,
3283
- 105,
4858
+ 97,
3284
4859
  116,
3285
- 101,
3286
- 95,
4860
+ 97,
4861
+ 45,
4862
+ 98,
3287
4863
  105,
4864
+ 110,
3288
4865
  100,
3289
- 125,
3290
- 47,
3291
4866
  105,
4867
+ 110,
4868
+ 103,
4869
+ 45,
3292
4870
  116,
3293
4871
  101,
3294
4872
  109,
3295
- 115,
3296
- 47,
3297
- 123,
4873
+ 112,
4874
+ 108,
4875
+ 97,
3298
4876
  116,
3299
4877
  101,
3300
4878
  115,
4879
+ 47,
4880
+ 123,
4881
+ 100,
4882
+ 97,
3301
4883
  116,
4884
+ 97,
3302
4885
  95,
3303
- 115,
3304
- 117,
4886
+ 98,
3305
4887
  105,
3306
- 116,
3307
- 101,
3308
- 95,
4888
+ 110,
4889
+ 100,
3309
4890
  105,
4891
+ 110,
4892
+ 103,
4893
+ 95,
3310
4894
  116,
3311
4895
  101,
3312
4896
  109,
4897
+ 112,
4898
+ 108,
4899
+ 97,
4900
+ 116,
4901
+ 101,
3313
4902
  95,
3314
4903
  105,
3315
4904
  100,
@@ -3319,22 +4908,22 @@ exports.SuiteServiceDefinition = {
3319
4908
  },
3320
4909
  },
3321
4910
  },
3322
- upsertDataBindingTemplate: {
3323
- name: "UpsertDataBindingTemplate",
3324
- requestType: exports.UpsertDataBindingTemplateRequest,
4911
+ attachDataBindingTemplateToWorkflow: {
4912
+ name: "AttachDataBindingTemplateToWorkflow",
4913
+ requestType: exports.AttachDataBindingTemplateToWorkflowRequest,
3325
4914
  requestStream: false,
3326
- responseType: exports.UpsertDataBindingTemplateResponse,
4915
+ responseType: exports.AttachDataBindingTemplateToWorkflowResponse,
3327
4916
  responseStream: false,
3328
4917
  options: {
3329
4918
  _unknownFields: {
3330
4919
  578365826: [
3331
4920
  new Uint8Array([
3332
- 77,
4921
+ 111,
3333
4922
  58,
3334
4923
  1,
3335
4924
  42,
3336
4925
  34,
3337
- 72,
4926
+ 106,
3338
4927
  47,
3339
4928
  118,
3340
4929
  49,
@@ -3407,24 +4996,58 @@ exports.SuiteServiceDefinition = {
3407
4996
  116,
3408
4997
  101,
3409
4998
  115,
4999
+ 47,
5000
+ 123,
5001
+ 100,
5002
+ 97,
5003
+ 116,
5004
+ 97,
5005
+ 95,
5006
+ 98,
5007
+ 105,
5008
+ 110,
5009
+ 100,
5010
+ 105,
5011
+ 110,
5012
+ 103,
5013
+ 95,
5014
+ 116,
5015
+ 101,
5016
+ 109,
5017
+ 112,
5018
+ 108,
5019
+ 97,
5020
+ 116,
5021
+ 101,
5022
+ 95,
5023
+ 105,
5024
+ 100,
5025
+ 125,
5026
+ 58,
5027
+ 97,
5028
+ 116,
5029
+ 116,
5030
+ 97,
5031
+ 99,
5032
+ 104,
3410
5033
  ]),
3411
5034
  ],
3412
5035
  },
3413
5036
  },
3414
5037
  },
3415
- listDataBindingTemplates: {
3416
- name: "ListDataBindingTemplates",
3417
- requestType: exports.ListDataBindingTemplatesRequest,
5038
+ detachDataBindingTemplateFromWorkflow: {
5039
+ name: "DetachDataBindingTemplateFromWorkflow",
5040
+ requestType: exports.DetachDataBindingTemplateFromWorkflowRequest,
3418
5041
  requestStream: false,
3419
- responseType: exports.ListDataBindingTemplatesResponse,
5042
+ responseType: exports.DetachDataBindingTemplateFromWorkflowResponse,
3420
5043
  responseStream: false,
3421
5044
  options: {
3422
5045
  _unknownFields: {
3423
5046
  578365826: [
3424
5047
  new Uint8Array([
3425
- 74,
3426
- 18,
3427
- 72,
5048
+ 101,
5049
+ 42,
5050
+ 99,
3428
5051
  47,
3429
5052
  118,
3430
5053
  49,
@@ -3497,24 +5120,51 @@ exports.SuiteServiceDefinition = {
3497
5120
  116,
3498
5121
  101,
3499
5122
  115,
5123
+ 47,
5124
+ 123,
5125
+ 100,
5126
+ 97,
5127
+ 116,
5128
+ 97,
5129
+ 95,
5130
+ 98,
5131
+ 105,
5132
+ 110,
5133
+ 100,
5134
+ 105,
5135
+ 110,
5136
+ 103,
5137
+ 95,
5138
+ 116,
5139
+ 101,
5140
+ 109,
5141
+ 112,
5142
+ 108,
5143
+ 97,
5144
+ 116,
5145
+ 101,
5146
+ 95,
5147
+ 105,
5148
+ 100,
5149
+ 125,
3500
5150
  ]),
3501
5151
  ],
3502
5152
  },
3503
5153
  },
3504
5154
  },
3505
- deleteDataBindingTemplate: {
3506
- name: "DeleteDataBindingTemplate",
3507
- requestType: exports.DeleteDataBindingTemplateRequest,
5155
+ listWorkflowDataBindingTemplateBindings: {
5156
+ name: "ListWorkflowDataBindingTemplateBindings",
5157
+ requestType: exports.ListWorkflowDataBindingTemplateBindingsRequest,
3508
5158
  requestStream: false,
3509
- responseType: exports.DeleteDataBindingTemplateResponse,
5159
+ responseType: exports.ListWorkflowDataBindingTemplateBindingsResponse,
3510
5160
  responseStream: false,
3511
5161
  options: {
3512
5162
  _unknownFields: {
3513
5163
  578365826: [
3514
5164
  new Uint8Array([
3515
- 101,
3516
- 42,
3517
- 99,
5165
+ 82,
5166
+ 18,
5167
+ 80,
3518
5168
  47,
3519
5169
  118,
3520
5170
  49,
@@ -3586,14 +5236,7 @@ exports.SuiteServiceDefinition = {
3586
5236
  97,
3587
5237
  116,
3588
5238
  101,
3589
- 115,
3590
- 47,
3591
- 123,
3592
- 100,
3593
- 97,
3594
- 116,
3595
- 97,
3596
- 95,
5239
+ 45,
3597
5240
  98,
3598
5241
  105,
3599
5242
  110,
@@ -3601,19 +5244,7 @@ exports.SuiteServiceDefinition = {
3601
5244
  105,
3602
5245
  110,
3603
5246
  103,
3604
- 95,
3605
- 116,
3606
- 101,
3607
- 109,
3608
- 112,
3609
- 108,
3610
- 97,
3611
- 116,
3612
- 101,
3613
- 95,
3614
- 105,
3615
- 100,
3616
- 125,
5247
+ 115,
3617
5248
  ]),
3618
5249
  ],
3619
5250
  },
@@ -3621,6 +5252,27 @@ exports.SuiteServiceDefinition = {
3621
5252
  },
3622
5253
  },
3623
5254
  };
5255
+ function toTimestamp(date) {
5256
+ const seconds = Math.trunc(date.getTime() / 1000);
5257
+ const nanos = (date.getTime() % 1000) * 1000000;
5258
+ return { seconds, nanos };
5259
+ }
5260
+ function fromTimestamp(t) {
5261
+ let millis = (t.seconds || 0) * 1000;
5262
+ millis += (t.nanos || 0) / 1000000;
5263
+ return new globalThis.Date(millis);
5264
+ }
5265
+ function fromJsonTimestamp(o) {
5266
+ if (o instanceof globalThis.Date) {
5267
+ return o;
5268
+ }
5269
+ else if (typeof o === "string") {
5270
+ return new globalThis.Date(o);
5271
+ }
5272
+ else {
5273
+ return fromTimestamp(timestamp_pb_1.Timestamp.fromJSON(o));
5274
+ }
5275
+ }
3624
5276
  function isObject(value) {
3625
5277
  return typeof value === "object" && value !== null;
3626
5278
  }