weave-typescript 0.11.15 → 0.11.16
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.
- package/dist/weaveapi/data/v1/data.pb.d.ts +1 -1
- package/dist/weaveapi/data/v1/data.pb.js +11 -11
- package/dist/weaveapi/data/v1/service.pb.d.ts +89 -6
- package/dist/weaveapi/data/v1/service.pb.js +1195 -364
- package/dist/weaveapi/input/v1/input.pb.d.ts +1 -1
- package/dist/weaveapi/input/v1/input.pb.js +11 -11
- package/dist/weaveapi/input/v1/service.pb.d.ts +89 -10
- package/dist/weaveapi/input/v1/service.pb.js +1253 -642
- package/dist/weaveapi/integration/v1/integration.pb.d.ts +1 -1
- package/dist/weaveapi/integration/v1/integration.pb.js +11 -11
- package/dist/weaveapi/integration/v1/service.pb.d.ts +89 -7
- package/dist/weaveapi/integration/v1/service.pb.js +1164 -390
- package/dist/weaveapi/project/v1/project.pb.d.ts +1 -0
- package/dist/weaveapi/project/v1/project.pb.js +17 -1
- package/dist/weaveapi/project/v1/service.pb.d.ts +25 -0
- package/dist/weaveapi/project/v1/service.pb.js +248 -5
- package/dist/weaveapi/report/v1/report.pb.d.ts +2 -0
- package/dist/weaveapi/report/v1/report.pb.js +42 -2
- package/dist/weaveapi/report/v1/service.pb.d.ts +6 -6
- package/dist/weaveapi/report/v1/service.pb.js +416 -121
- package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +1 -1
- package/dist/weaveapi/requirement/v1/requirement.pb.js +11 -11
- package/dist/weaveapi/requirement/v1/service.pb.d.ts +90 -10
- package/dist/weaveapi/requirement/v1/service.pb.js +1261 -601
- package/dist/weaveapi/run/v1/run.pb.d.ts +1 -0
- package/dist/weaveapi/run/v1/run.pb.js +21 -1
- package/dist/weaveapi/run/v1/service.pb.d.ts +6 -6
- package/dist/weaveapi/run/v1/service.pb.js +448 -126
- package/dist/weaveapi/script/v1/script.pb.d.ts +1 -1
- package/dist/weaveapi/script/v1/script.pb.js +11 -11
- package/dist/weaveapi/script/v1/service.pb.d.ts +90 -14
- package/dist/weaveapi/script/v1/service.pb.js +1404 -930
- package/dist/weaveapi/suite/v1/service.pb.d.ts +178 -12
- package/dist/weaveapi/suite/v1/service.pb.js +2631 -979
- package/dist/weaveapi/suite/v1/suite.pb.d.ts +2 -2
- package/dist/weaveapi/suite/v1/suite.pb.js +22 -22
- package/dist/weaveapi/testcase/v1/service.pb.d.ts +90 -14
- package/dist/weaveapi/testcase/v1/service.pb.js +1332 -856
- package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +1 -1
- package/dist/weaveapi/testcase/v1/testcase.pb.js +11 -11
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +26 -0
- package/dist/weaveapi/workflow/v1/service.pb.js +293 -5
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +1 -0
- package/dist/weaveapi/workflow/v1/workflow.pb.js +17 -1
- package/dist/weavesql/weavedb/data_asset_sql.d.ts +81 -16
- package/dist/weavesql/weavedb/data_asset_sql.js +142 -24
- package/dist/weavesql/weavedb/input_sql.d.ts +88 -25
- package/dist/weavesql/weavedb/input_sql.js +150 -34
- package/dist/weavesql/weavedb/integration_sql.d.ts +85 -19
- package/dist/weavesql/weavedb/integration_sql.js +147 -28
- package/dist/weavesql/weavedb/project_sql.d.ts +29 -5
- package/dist/weavesql/weavedb/project_sql.js +73 -37
- package/dist/weavesql/weavedb/report_sql.d.ts +61 -7
- package/dist/weavesql/weavedb/report_sql.js +157 -81
- package/dist/weavesql/weavedb/requirement_sql.d.ts +83 -20
- package/dist/weavesql/weavedb/requirement_sql.js +144 -28
- package/dist/weavesql/weavedb/run_sql.d.ts +44 -8
- package/dist/weavesql/weavedb/run_sql.js +140 -93
- package/dist/weavesql/weavedb/suite_sql.d.ts +156 -30
- package/dist/weavesql/weavedb/suite_sql.js +274 -42
- package/dist/weavesql/weavedb/test_case_sql.d.ts +91 -27
- package/dist/weavesql/weavedb/test_case_sql.js +153 -36
- package/dist/weavesql/weavedb/test_script_sql.d.ts +91 -27
- package/dist/weavesql/weavedb/test_script_sql.js +153 -36
- package/dist/weavesql/weavedb/traceability_sql.d.ts +62 -4
- package/dist/weavesql/weavedb/traceability_sql.js +245 -37
- package/dist/weavesql/weavedb/workflow_sql.d.ts +30 -5
- package/dist/weavesql/weavedb/workflow_sql.js +76 -38
- package/package.json +1 -1
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: weaveapi/script/v1/service.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ScriptServiceDefinition = exports.ScriptServiceClientImpl = exports.ScriptServiceServiceName = exports.GenerateTestScriptsResponse = exports.GenerateTestScriptsRequest = exports.DeleteScriptBindingResponse = exports.DeleteScriptBindingRequest = exports.ListScriptBindingsResponse = exports.ListScriptBindingsRequest = exports.UpsertScriptBindingResponse = exports.UpsertScriptBindingRequest = exports.SetCurrentTestScriptVersionResponse = exports.SetCurrentTestScriptVersionRequest = exports.ListTestScriptVersionsResponse = exports.ListTestScriptVersionsRequest = exports.GetTestScriptVersionResponse = exports.GetTestScriptVersionRequest = exports.CreateTestScriptVersionResponse = exports.CreateTestScriptVersionRequest = exports.DeleteTestScriptResponse = exports.DeleteTestScriptRequest = exports.ArchiveTestScriptResponse = exports.ArchiveTestScriptRequest = exports.UpdateTestScriptResponse = exports.UpdateTestScriptRequest = exports.ListTestScriptsResponse = exports.ListTestScriptsRequest = exports.GetTestScriptResponse = exports.GetTestScriptRequest = exports.CreateTestScriptResponse = exports.CreateTestScriptRequest = exports.protobufPackage = void 0;
|
|
8
|
+
exports.ScriptServiceDefinition = exports.ScriptServiceClientImpl = exports.ScriptServiceServiceName = exports.GenerateTestScriptsResponse = exports.GenerateTestScriptsRequest = exports.DeleteScriptBindingResponse = exports.DeleteScriptBindingRequest = exports.ListScriptBindingsResponse = exports.ListScriptBindingsRequest = exports.UpsertScriptBindingResponse = exports.UpsertScriptBindingRequest = exports.SetCurrentTestScriptVersionResponse = exports.SetCurrentTestScriptVersionRequest = exports.ListTestScriptVersionsResponse = exports.ListTestScriptVersionsRequest = exports.GetTestScriptVersionResponse = exports.GetTestScriptVersionRequest = exports.CreateTestScriptVersionResponse = exports.CreateTestScriptVersionRequest = exports.WorkflowTestScriptBinding = exports.ListWorkflowTestScriptBindingsResponse = exports.ListWorkflowTestScriptBindingsRequest = exports.DetachTestScriptFromWorkflowResponse = exports.DetachTestScriptFromWorkflowRequest = exports.AttachTestScriptToWorkflowResponse = exports.AttachTestScriptToWorkflowRequest = exports.DeleteTestScriptResponse = exports.DeleteTestScriptRequest = exports.ArchiveTestScriptResponse = exports.ArchiveTestScriptRequest = exports.UpdateTestScriptResponse = exports.UpdateTestScriptRequest = exports.ListTestScriptsResponse = exports.ListTestScriptsRequest = exports.GetTestScriptResponse = exports.GetTestScriptRequest = exports.CreateTestScriptResponse = exports.CreateTestScriptRequest = 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 script_pb_1 = require("./script.pb");
|
|
13
14
|
exports.protobufPackage = "weaveapi.script.v1";
|
|
14
15
|
function createBaseCreateTestScriptRequest() {
|
|
15
16
|
return {
|
|
16
17
|
projectId: "",
|
|
17
|
-
workflowId: "",
|
|
18
18
|
testCaseId: "",
|
|
19
19
|
name: "",
|
|
20
20
|
description: "",
|
|
@@ -29,29 +29,26 @@ exports.CreateTestScriptRequest = {
|
|
|
29
29
|
if (message.projectId !== "") {
|
|
30
30
|
writer.uint32(10).string(message.projectId);
|
|
31
31
|
}
|
|
32
|
-
if (message.workflowId !== "") {
|
|
33
|
-
writer.uint32(18).string(message.workflowId);
|
|
34
|
-
}
|
|
35
32
|
if (message.testCaseId !== "") {
|
|
36
|
-
writer.uint32(
|
|
33
|
+
writer.uint32(18).string(message.testCaseId);
|
|
37
34
|
}
|
|
38
35
|
if (message.name !== "") {
|
|
39
|
-
writer.uint32(
|
|
36
|
+
writer.uint32(26).string(message.name);
|
|
40
37
|
}
|
|
41
38
|
if (message.description !== "") {
|
|
42
|
-
writer.uint32(
|
|
39
|
+
writer.uint32(34).string(message.description);
|
|
43
40
|
}
|
|
44
41
|
if (message.language !== 0) {
|
|
45
|
-
writer.uint32(
|
|
42
|
+
writer.uint32(40).int32(message.language);
|
|
46
43
|
}
|
|
47
44
|
if (message.framework !== "") {
|
|
48
|
-
writer.uint32(
|
|
45
|
+
writer.uint32(50).string(message.framework);
|
|
49
46
|
}
|
|
50
47
|
if (message.status !== 0) {
|
|
51
|
-
writer.uint32(
|
|
48
|
+
writer.uint32(56).int32(message.status);
|
|
52
49
|
}
|
|
53
50
|
if (message.metadata !== undefined) {
|
|
54
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(
|
|
51
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(66).fork()).join();
|
|
55
52
|
}
|
|
56
53
|
return writer;
|
|
57
54
|
},
|
|
@@ -73,53 +70,46 @@ exports.CreateTestScriptRequest = {
|
|
|
73
70
|
if (tag !== 18) {
|
|
74
71
|
break;
|
|
75
72
|
}
|
|
76
|
-
message.
|
|
73
|
+
message.testCaseId = reader.string();
|
|
77
74
|
continue;
|
|
78
75
|
}
|
|
79
76
|
case 3: {
|
|
80
77
|
if (tag !== 26) {
|
|
81
78
|
break;
|
|
82
79
|
}
|
|
83
|
-
message.
|
|
80
|
+
message.name = reader.string();
|
|
84
81
|
continue;
|
|
85
82
|
}
|
|
86
83
|
case 4: {
|
|
87
84
|
if (tag !== 34) {
|
|
88
85
|
break;
|
|
89
86
|
}
|
|
90
|
-
message.name = reader.string();
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
case 5: {
|
|
94
|
-
if (tag !== 42) {
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
87
|
message.description = reader.string();
|
|
98
88
|
continue;
|
|
99
89
|
}
|
|
100
|
-
case
|
|
101
|
-
if (tag !==
|
|
90
|
+
case 5: {
|
|
91
|
+
if (tag !== 40) {
|
|
102
92
|
break;
|
|
103
93
|
}
|
|
104
94
|
message.language = reader.int32();
|
|
105
95
|
continue;
|
|
106
96
|
}
|
|
107
|
-
case
|
|
108
|
-
if (tag !==
|
|
97
|
+
case 6: {
|
|
98
|
+
if (tag !== 50) {
|
|
109
99
|
break;
|
|
110
100
|
}
|
|
111
101
|
message.framework = reader.string();
|
|
112
102
|
continue;
|
|
113
103
|
}
|
|
114
|
-
case
|
|
115
|
-
if (tag !==
|
|
104
|
+
case 7: {
|
|
105
|
+
if (tag !== 56) {
|
|
116
106
|
break;
|
|
117
107
|
}
|
|
118
108
|
message.status = reader.int32();
|
|
119
109
|
continue;
|
|
120
110
|
}
|
|
121
|
-
case
|
|
122
|
-
if (tag !==
|
|
111
|
+
case 8: {
|
|
112
|
+
if (tag !== 66) {
|
|
123
113
|
break;
|
|
124
114
|
}
|
|
125
115
|
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
@@ -140,11 +130,6 @@ exports.CreateTestScriptRequest = {
|
|
|
140
130
|
: isSet(object.project_id)
|
|
141
131
|
? globalThis.String(object.project_id)
|
|
142
132
|
: "",
|
|
143
|
-
workflowId: isSet(object.workflowId)
|
|
144
|
-
? globalThis.String(object.workflowId)
|
|
145
|
-
: isSet(object.workflow_id)
|
|
146
|
-
? globalThis.String(object.workflow_id)
|
|
147
|
-
: "",
|
|
148
133
|
testCaseId: isSet(object.testCaseId)
|
|
149
134
|
? globalThis.String(object.testCaseId)
|
|
150
135
|
: isSet(object.test_case_id)
|
|
@@ -163,9 +148,6 @@ exports.CreateTestScriptRequest = {
|
|
|
163
148
|
if (message.projectId !== "") {
|
|
164
149
|
obj.projectId = message.projectId;
|
|
165
150
|
}
|
|
166
|
-
if (message.workflowId !== "") {
|
|
167
|
-
obj.workflowId = message.workflowId;
|
|
168
|
-
}
|
|
169
151
|
if (message.testCaseId !== "") {
|
|
170
152
|
obj.testCaseId = message.testCaseId;
|
|
171
153
|
}
|
|
@@ -193,17 +175,16 @@ exports.CreateTestScriptRequest = {
|
|
|
193
175
|
return exports.CreateTestScriptRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
194
176
|
},
|
|
195
177
|
fromPartial(object) {
|
|
196
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
178
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
197
179
|
const message = createBaseCreateTestScriptRequest();
|
|
198
180
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
199
|
-
message.
|
|
200
|
-
message.
|
|
201
|
-
message.
|
|
202
|
-
message.
|
|
203
|
-
message.
|
|
204
|
-
message.
|
|
205
|
-
message.
|
|
206
|
-
message.metadata = (_j = object.metadata) !== null && _j !== void 0 ? _j : undefined;
|
|
181
|
+
message.testCaseId = (_b = object.testCaseId) !== null && _b !== void 0 ? _b : "";
|
|
182
|
+
message.name = (_c = object.name) !== null && _c !== void 0 ? _c : "";
|
|
183
|
+
message.description = (_d = object.description) !== null && _d !== void 0 ? _d : "";
|
|
184
|
+
message.language = (_e = object.language) !== null && _e !== void 0 ? _e : 0;
|
|
185
|
+
message.framework = (_f = object.framework) !== null && _f !== void 0 ? _f : "";
|
|
186
|
+
message.status = (_g = object.status) !== null && _g !== void 0 ? _g : 0;
|
|
187
|
+
message.metadata = (_h = object.metadata) !== null && _h !== void 0 ? _h : undefined;
|
|
207
188
|
return message;
|
|
208
189
|
},
|
|
209
190
|
};
|
|
@@ -267,18 +248,15 @@ exports.CreateTestScriptResponse = {
|
|
|
267
248
|
},
|
|
268
249
|
};
|
|
269
250
|
function createBaseGetTestScriptRequest() {
|
|
270
|
-
return { projectId: "",
|
|
251
|
+
return { projectId: "", testScriptId: "" };
|
|
271
252
|
}
|
|
272
253
|
exports.GetTestScriptRequest = {
|
|
273
254
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
274
255
|
if (message.projectId !== "") {
|
|
275
256
|
writer.uint32(10).string(message.projectId);
|
|
276
257
|
}
|
|
277
|
-
if (message.workflowId !== "") {
|
|
278
|
-
writer.uint32(18).string(message.workflowId);
|
|
279
|
-
}
|
|
280
258
|
if (message.testScriptId !== "") {
|
|
281
|
-
writer.uint32(
|
|
259
|
+
writer.uint32(18).string(message.testScriptId);
|
|
282
260
|
}
|
|
283
261
|
return writer;
|
|
284
262
|
},
|
|
@@ -300,13 +278,6 @@ exports.GetTestScriptRequest = {
|
|
|
300
278
|
if (tag !== 18) {
|
|
301
279
|
break;
|
|
302
280
|
}
|
|
303
|
-
message.workflowId = reader.string();
|
|
304
|
-
continue;
|
|
305
|
-
}
|
|
306
|
-
case 3: {
|
|
307
|
-
if (tag !== 26) {
|
|
308
|
-
break;
|
|
309
|
-
}
|
|
310
281
|
message.testScriptId = reader.string();
|
|
311
282
|
continue;
|
|
312
283
|
}
|
|
@@ -325,11 +296,6 @@ exports.GetTestScriptRequest = {
|
|
|
325
296
|
: isSet(object.project_id)
|
|
326
297
|
? globalThis.String(object.project_id)
|
|
327
298
|
: "",
|
|
328
|
-
workflowId: isSet(object.workflowId)
|
|
329
|
-
? globalThis.String(object.workflowId)
|
|
330
|
-
: isSet(object.workflow_id)
|
|
331
|
-
? globalThis.String(object.workflow_id)
|
|
332
|
-
: "",
|
|
333
299
|
testScriptId: isSet(object.testScriptId)
|
|
334
300
|
? globalThis.String(object.testScriptId)
|
|
335
301
|
: isSet(object.test_script_id)
|
|
@@ -342,9 +308,6 @@ exports.GetTestScriptRequest = {
|
|
|
342
308
|
if (message.projectId !== "") {
|
|
343
309
|
obj.projectId = message.projectId;
|
|
344
310
|
}
|
|
345
|
-
if (message.workflowId !== "") {
|
|
346
|
-
obj.workflowId = message.workflowId;
|
|
347
|
-
}
|
|
348
311
|
if (message.testScriptId !== "") {
|
|
349
312
|
obj.testScriptId = message.testScriptId;
|
|
350
313
|
}
|
|
@@ -354,11 +317,10 @@ exports.GetTestScriptRequest = {
|
|
|
354
317
|
return exports.GetTestScriptRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
355
318
|
},
|
|
356
319
|
fromPartial(object) {
|
|
357
|
-
var _a, _b
|
|
320
|
+
var _a, _b;
|
|
358
321
|
const message = createBaseGetTestScriptRequest();
|
|
359
322
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
360
|
-
message.
|
|
361
|
-
message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
|
|
323
|
+
message.testScriptId = (_b = object.testScriptId) !== null && _b !== void 0 ? _b : "";
|
|
362
324
|
return message;
|
|
363
325
|
},
|
|
364
326
|
};
|
|
@@ -422,24 +384,24 @@ exports.GetTestScriptResponse = {
|
|
|
422
384
|
},
|
|
423
385
|
};
|
|
424
386
|
function createBaseListTestScriptsRequest() {
|
|
425
|
-
return { projectId: "",
|
|
387
|
+
return { projectId: "", includeArchived: false, pageSize: 0, pageToken: "", workflowId: "" };
|
|
426
388
|
}
|
|
427
389
|
exports.ListTestScriptsRequest = {
|
|
428
390
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
429
391
|
if (message.projectId !== "") {
|
|
430
392
|
writer.uint32(10).string(message.projectId);
|
|
431
393
|
}
|
|
432
|
-
if (message.workflowId !== "") {
|
|
433
|
-
writer.uint32(18).string(message.workflowId);
|
|
434
|
-
}
|
|
435
394
|
if (message.includeArchived !== false) {
|
|
436
|
-
writer.uint32(
|
|
395
|
+
writer.uint32(16).bool(message.includeArchived);
|
|
437
396
|
}
|
|
438
397
|
if (message.pageSize !== 0) {
|
|
439
|
-
writer.uint32(
|
|
398
|
+
writer.uint32(24).int32(message.pageSize);
|
|
440
399
|
}
|
|
441
400
|
if (message.pageToken !== "") {
|
|
442
|
-
writer.uint32(
|
|
401
|
+
writer.uint32(34).string(message.pageToken);
|
|
402
|
+
}
|
|
403
|
+
if (message.workflowId !== "") {
|
|
404
|
+
writer.uint32(42).string(message.workflowId);
|
|
443
405
|
}
|
|
444
406
|
return writer;
|
|
445
407
|
},
|
|
@@ -458,31 +420,31 @@ exports.ListTestScriptsRequest = {
|
|
|
458
420
|
continue;
|
|
459
421
|
}
|
|
460
422
|
case 2: {
|
|
461
|
-
if (tag !==
|
|
423
|
+
if (tag !== 16) {
|
|
462
424
|
break;
|
|
463
425
|
}
|
|
464
|
-
message.
|
|
426
|
+
message.includeArchived = reader.bool();
|
|
465
427
|
continue;
|
|
466
428
|
}
|
|
467
429
|
case 3: {
|
|
468
430
|
if (tag !== 24) {
|
|
469
431
|
break;
|
|
470
432
|
}
|
|
471
|
-
message.
|
|
433
|
+
message.pageSize = reader.int32();
|
|
472
434
|
continue;
|
|
473
435
|
}
|
|
474
436
|
case 4: {
|
|
475
|
-
if (tag !==
|
|
437
|
+
if (tag !== 34) {
|
|
476
438
|
break;
|
|
477
439
|
}
|
|
478
|
-
message.
|
|
440
|
+
message.pageToken = reader.string();
|
|
479
441
|
continue;
|
|
480
442
|
}
|
|
481
443
|
case 5: {
|
|
482
444
|
if (tag !== 42) {
|
|
483
445
|
break;
|
|
484
446
|
}
|
|
485
|
-
message.
|
|
447
|
+
message.workflowId = reader.string();
|
|
486
448
|
continue;
|
|
487
449
|
}
|
|
488
450
|
}
|
|
@@ -500,11 +462,6 @@ exports.ListTestScriptsRequest = {
|
|
|
500
462
|
: isSet(object.project_id)
|
|
501
463
|
? globalThis.String(object.project_id)
|
|
502
464
|
: "",
|
|
503
|
-
workflowId: isSet(object.workflowId)
|
|
504
|
-
? globalThis.String(object.workflowId)
|
|
505
|
-
: isSet(object.workflow_id)
|
|
506
|
-
? globalThis.String(object.workflow_id)
|
|
507
|
-
: "",
|
|
508
465
|
includeArchived: isSet(object.includeArchived)
|
|
509
466
|
? globalThis.Boolean(object.includeArchived)
|
|
510
467
|
: isSet(object.include_archived)
|
|
@@ -520,6 +477,11 @@ exports.ListTestScriptsRequest = {
|
|
|
520
477
|
: isSet(object.page_token)
|
|
521
478
|
? globalThis.String(object.page_token)
|
|
522
479
|
: "",
|
|
480
|
+
workflowId: isSet(object.workflowId)
|
|
481
|
+
? globalThis.String(object.workflowId)
|
|
482
|
+
: isSet(object.workflow_id)
|
|
483
|
+
? globalThis.String(object.workflow_id)
|
|
484
|
+
: "",
|
|
523
485
|
};
|
|
524
486
|
},
|
|
525
487
|
toJSON(message) {
|
|
@@ -527,9 +489,6 @@ exports.ListTestScriptsRequest = {
|
|
|
527
489
|
if (message.projectId !== "") {
|
|
528
490
|
obj.projectId = message.projectId;
|
|
529
491
|
}
|
|
530
|
-
if (message.workflowId !== "") {
|
|
531
|
-
obj.workflowId = message.workflowId;
|
|
532
|
-
}
|
|
533
492
|
if (message.includeArchived !== false) {
|
|
534
493
|
obj.includeArchived = message.includeArchived;
|
|
535
494
|
}
|
|
@@ -539,6 +498,9 @@ exports.ListTestScriptsRequest = {
|
|
|
539
498
|
if (message.pageToken !== "") {
|
|
540
499
|
obj.pageToken = message.pageToken;
|
|
541
500
|
}
|
|
501
|
+
if (message.workflowId !== "") {
|
|
502
|
+
obj.workflowId = message.workflowId;
|
|
503
|
+
}
|
|
542
504
|
return obj;
|
|
543
505
|
},
|
|
544
506
|
create(base) {
|
|
@@ -548,10 +510,10 @@ exports.ListTestScriptsRequest = {
|
|
|
548
510
|
var _a, _b, _c, _d, _e;
|
|
549
511
|
const message = createBaseListTestScriptsRequest();
|
|
550
512
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
551
|
-
message.
|
|
552
|
-
message.
|
|
553
|
-
message.
|
|
554
|
-
message.
|
|
513
|
+
message.includeArchived = (_b = object.includeArchived) !== null && _b !== void 0 ? _b : false;
|
|
514
|
+
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
|
|
515
|
+
message.pageToken = (_d = object.pageToken) !== null && _d !== void 0 ? _d : "";
|
|
516
|
+
message.workflowId = (_e = object.workflowId) !== null && _e !== void 0 ? _e : "";
|
|
555
517
|
return message;
|
|
556
518
|
},
|
|
557
519
|
};
|
|
@@ -637,7 +599,6 @@ exports.ListTestScriptsResponse = {
|
|
|
637
599
|
function createBaseUpdateTestScriptRequest() {
|
|
638
600
|
return {
|
|
639
601
|
projectId: "",
|
|
640
|
-
workflowId: "",
|
|
641
602
|
testScriptId: "",
|
|
642
603
|
testCaseId: "",
|
|
643
604
|
name: "",
|
|
@@ -653,32 +614,29 @@ exports.UpdateTestScriptRequest = {
|
|
|
653
614
|
if (message.projectId !== "") {
|
|
654
615
|
writer.uint32(10).string(message.projectId);
|
|
655
616
|
}
|
|
656
|
-
if (message.workflowId !== "") {
|
|
657
|
-
writer.uint32(18).string(message.workflowId);
|
|
658
|
-
}
|
|
659
617
|
if (message.testScriptId !== "") {
|
|
660
|
-
writer.uint32(
|
|
618
|
+
writer.uint32(18).string(message.testScriptId);
|
|
661
619
|
}
|
|
662
620
|
if (message.testCaseId !== "") {
|
|
663
|
-
writer.uint32(
|
|
621
|
+
writer.uint32(26).string(message.testCaseId);
|
|
664
622
|
}
|
|
665
623
|
if (message.name !== "") {
|
|
666
|
-
writer.uint32(
|
|
624
|
+
writer.uint32(34).string(message.name);
|
|
667
625
|
}
|
|
668
626
|
if (message.description !== "") {
|
|
669
|
-
writer.uint32(
|
|
627
|
+
writer.uint32(42).string(message.description);
|
|
670
628
|
}
|
|
671
629
|
if (message.language !== 0) {
|
|
672
|
-
writer.uint32(
|
|
630
|
+
writer.uint32(48).int32(message.language);
|
|
673
631
|
}
|
|
674
632
|
if (message.framework !== "") {
|
|
675
|
-
writer.uint32(
|
|
633
|
+
writer.uint32(58).string(message.framework);
|
|
676
634
|
}
|
|
677
635
|
if (message.status !== 0) {
|
|
678
|
-
writer.uint32(
|
|
636
|
+
writer.uint32(64).int32(message.status);
|
|
679
637
|
}
|
|
680
638
|
if (message.metadata !== undefined) {
|
|
681
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(
|
|
639
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(74).fork()).join();
|
|
682
640
|
}
|
|
683
641
|
return writer;
|
|
684
642
|
},
|
|
@@ -700,60 +658,53 @@ exports.UpdateTestScriptRequest = {
|
|
|
700
658
|
if (tag !== 18) {
|
|
701
659
|
break;
|
|
702
660
|
}
|
|
703
|
-
message.
|
|
661
|
+
message.testScriptId = reader.string();
|
|
704
662
|
continue;
|
|
705
663
|
}
|
|
706
664
|
case 3: {
|
|
707
665
|
if (tag !== 26) {
|
|
708
666
|
break;
|
|
709
667
|
}
|
|
710
|
-
message.
|
|
668
|
+
message.testCaseId = reader.string();
|
|
711
669
|
continue;
|
|
712
670
|
}
|
|
713
671
|
case 4: {
|
|
714
672
|
if (tag !== 34) {
|
|
715
673
|
break;
|
|
716
674
|
}
|
|
717
|
-
message.
|
|
675
|
+
message.name = reader.string();
|
|
718
676
|
continue;
|
|
719
677
|
}
|
|
720
678
|
case 5: {
|
|
721
679
|
if (tag !== 42) {
|
|
722
680
|
break;
|
|
723
681
|
}
|
|
724
|
-
message.name = reader.string();
|
|
725
|
-
continue;
|
|
726
|
-
}
|
|
727
|
-
case 6: {
|
|
728
|
-
if (tag !== 50) {
|
|
729
|
-
break;
|
|
730
|
-
}
|
|
731
682
|
message.description = reader.string();
|
|
732
683
|
continue;
|
|
733
684
|
}
|
|
734
|
-
case
|
|
735
|
-
if (tag !==
|
|
685
|
+
case 6: {
|
|
686
|
+
if (tag !== 48) {
|
|
736
687
|
break;
|
|
737
688
|
}
|
|
738
689
|
message.language = reader.int32();
|
|
739
690
|
continue;
|
|
740
691
|
}
|
|
741
|
-
case
|
|
742
|
-
if (tag !==
|
|
692
|
+
case 7: {
|
|
693
|
+
if (tag !== 58) {
|
|
743
694
|
break;
|
|
744
695
|
}
|
|
745
696
|
message.framework = reader.string();
|
|
746
697
|
continue;
|
|
747
698
|
}
|
|
748
|
-
case
|
|
749
|
-
if (tag !==
|
|
699
|
+
case 8: {
|
|
700
|
+
if (tag !== 64) {
|
|
750
701
|
break;
|
|
751
702
|
}
|
|
752
703
|
message.status = reader.int32();
|
|
753
704
|
continue;
|
|
754
705
|
}
|
|
755
|
-
case
|
|
756
|
-
if (tag !==
|
|
706
|
+
case 9: {
|
|
707
|
+
if (tag !== 74) {
|
|
757
708
|
break;
|
|
758
709
|
}
|
|
759
710
|
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
@@ -774,11 +725,6 @@ exports.UpdateTestScriptRequest = {
|
|
|
774
725
|
: isSet(object.project_id)
|
|
775
726
|
? globalThis.String(object.project_id)
|
|
776
727
|
: "",
|
|
777
|
-
workflowId: isSet(object.workflowId)
|
|
778
|
-
? globalThis.String(object.workflowId)
|
|
779
|
-
: isSet(object.workflow_id)
|
|
780
|
-
? globalThis.String(object.workflow_id)
|
|
781
|
-
: "",
|
|
782
728
|
testScriptId: isSet(object.testScriptId)
|
|
783
729
|
? globalThis.String(object.testScriptId)
|
|
784
730
|
: isSet(object.test_script_id)
|
|
@@ -802,9 +748,6 @@ exports.UpdateTestScriptRequest = {
|
|
|
802
748
|
if (message.projectId !== "") {
|
|
803
749
|
obj.projectId = message.projectId;
|
|
804
750
|
}
|
|
805
|
-
if (message.workflowId !== "") {
|
|
806
|
-
obj.workflowId = message.workflowId;
|
|
807
|
-
}
|
|
808
751
|
if (message.testScriptId !== "") {
|
|
809
752
|
obj.testScriptId = message.testScriptId;
|
|
810
753
|
}
|
|
@@ -835,18 +778,17 @@ exports.UpdateTestScriptRequest = {
|
|
|
835
778
|
return exports.UpdateTestScriptRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
836
779
|
},
|
|
837
780
|
fromPartial(object) {
|
|
838
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
781
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
839
782
|
const message = createBaseUpdateTestScriptRequest();
|
|
840
783
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
841
|
-
message.
|
|
842
|
-
message.
|
|
843
|
-
message.
|
|
844
|
-
message.
|
|
845
|
-
message.
|
|
846
|
-
message.
|
|
847
|
-
message.
|
|
848
|
-
message.
|
|
849
|
-
message.metadata = (_k = object.metadata) !== null && _k !== void 0 ? _k : undefined;
|
|
784
|
+
message.testScriptId = (_b = object.testScriptId) !== null && _b !== void 0 ? _b : "";
|
|
785
|
+
message.testCaseId = (_c = object.testCaseId) !== null && _c !== void 0 ? _c : "";
|
|
786
|
+
message.name = (_d = object.name) !== null && _d !== void 0 ? _d : "";
|
|
787
|
+
message.description = (_e = object.description) !== null && _e !== void 0 ? _e : "";
|
|
788
|
+
message.language = (_f = object.language) !== null && _f !== void 0 ? _f : 0;
|
|
789
|
+
message.framework = (_g = object.framework) !== null && _g !== void 0 ? _g : "";
|
|
790
|
+
message.status = (_h = object.status) !== null && _h !== void 0 ? _h : 0;
|
|
791
|
+
message.metadata = (_j = object.metadata) !== null && _j !== void 0 ? _j : undefined;
|
|
850
792
|
return message;
|
|
851
793
|
},
|
|
852
794
|
};
|
|
@@ -910,18 +852,15 @@ exports.UpdateTestScriptResponse = {
|
|
|
910
852
|
},
|
|
911
853
|
};
|
|
912
854
|
function createBaseArchiveTestScriptRequest() {
|
|
913
|
-
return { projectId: "",
|
|
855
|
+
return { projectId: "", testScriptId: "" };
|
|
914
856
|
}
|
|
915
857
|
exports.ArchiveTestScriptRequest = {
|
|
916
858
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
917
859
|
if (message.projectId !== "") {
|
|
918
860
|
writer.uint32(10).string(message.projectId);
|
|
919
861
|
}
|
|
920
|
-
if (message.workflowId !== "") {
|
|
921
|
-
writer.uint32(18).string(message.workflowId);
|
|
922
|
-
}
|
|
923
862
|
if (message.testScriptId !== "") {
|
|
924
|
-
writer.uint32(
|
|
863
|
+
writer.uint32(18).string(message.testScriptId);
|
|
925
864
|
}
|
|
926
865
|
return writer;
|
|
927
866
|
},
|
|
@@ -943,13 +882,6 @@ exports.ArchiveTestScriptRequest = {
|
|
|
943
882
|
if (tag !== 18) {
|
|
944
883
|
break;
|
|
945
884
|
}
|
|
946
|
-
message.workflowId = reader.string();
|
|
947
|
-
continue;
|
|
948
|
-
}
|
|
949
|
-
case 3: {
|
|
950
|
-
if (tag !== 26) {
|
|
951
|
-
break;
|
|
952
|
-
}
|
|
953
885
|
message.testScriptId = reader.string();
|
|
954
886
|
continue;
|
|
955
887
|
}
|
|
@@ -968,11 +900,6 @@ exports.ArchiveTestScriptRequest = {
|
|
|
968
900
|
: isSet(object.project_id)
|
|
969
901
|
? globalThis.String(object.project_id)
|
|
970
902
|
: "",
|
|
971
|
-
workflowId: isSet(object.workflowId)
|
|
972
|
-
? globalThis.String(object.workflowId)
|
|
973
|
-
: isSet(object.workflow_id)
|
|
974
|
-
? globalThis.String(object.workflow_id)
|
|
975
|
-
: "",
|
|
976
903
|
testScriptId: isSet(object.testScriptId)
|
|
977
904
|
? globalThis.String(object.testScriptId)
|
|
978
905
|
: isSet(object.test_script_id)
|
|
@@ -985,9 +912,6 @@ exports.ArchiveTestScriptRequest = {
|
|
|
985
912
|
if (message.projectId !== "") {
|
|
986
913
|
obj.projectId = message.projectId;
|
|
987
914
|
}
|
|
988
|
-
if (message.workflowId !== "") {
|
|
989
|
-
obj.workflowId = message.workflowId;
|
|
990
|
-
}
|
|
991
915
|
if (message.testScriptId !== "") {
|
|
992
916
|
obj.testScriptId = message.testScriptId;
|
|
993
917
|
}
|
|
@@ -997,11 +921,10 @@ exports.ArchiveTestScriptRequest = {
|
|
|
997
921
|
return exports.ArchiveTestScriptRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
998
922
|
},
|
|
999
923
|
fromPartial(object) {
|
|
1000
|
-
var _a, _b
|
|
924
|
+
var _a, _b;
|
|
1001
925
|
const message = createBaseArchiveTestScriptRequest();
|
|
1002
926
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
1003
|
-
message.
|
|
1004
|
-
message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
|
|
927
|
+
message.testScriptId = (_b = object.testScriptId) !== null && _b !== void 0 ? _b : "";
|
|
1005
928
|
return message;
|
|
1006
929
|
},
|
|
1007
930
|
};
|
|
@@ -1065,18 +988,15 @@ exports.ArchiveTestScriptResponse = {
|
|
|
1065
988
|
},
|
|
1066
989
|
};
|
|
1067
990
|
function createBaseDeleteTestScriptRequest() {
|
|
1068
|
-
return { projectId: "",
|
|
991
|
+
return { projectId: "", testScriptId: "" };
|
|
1069
992
|
}
|
|
1070
993
|
exports.DeleteTestScriptRequest = {
|
|
1071
994
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1072
995
|
if (message.projectId !== "") {
|
|
1073
996
|
writer.uint32(10).string(message.projectId);
|
|
1074
997
|
}
|
|
1075
|
-
if (message.workflowId !== "") {
|
|
1076
|
-
writer.uint32(18).string(message.workflowId);
|
|
1077
|
-
}
|
|
1078
998
|
if (message.testScriptId !== "") {
|
|
1079
|
-
writer.uint32(
|
|
999
|
+
writer.uint32(18).string(message.testScriptId);
|
|
1080
1000
|
}
|
|
1081
1001
|
return writer;
|
|
1082
1002
|
},
|
|
@@ -1098,13 +1018,6 @@ exports.DeleteTestScriptRequest = {
|
|
|
1098
1018
|
if (tag !== 18) {
|
|
1099
1019
|
break;
|
|
1100
1020
|
}
|
|
1101
|
-
message.workflowId = reader.string();
|
|
1102
|
-
continue;
|
|
1103
|
-
}
|
|
1104
|
-
case 3: {
|
|
1105
|
-
if (tag !== 26) {
|
|
1106
|
-
break;
|
|
1107
|
-
}
|
|
1108
1021
|
message.testScriptId = reader.string();
|
|
1109
1022
|
continue;
|
|
1110
1023
|
}
|
|
@@ -1123,11 +1036,6 @@ exports.DeleteTestScriptRequest = {
|
|
|
1123
1036
|
: isSet(object.project_id)
|
|
1124
1037
|
? globalThis.String(object.project_id)
|
|
1125
1038
|
: "",
|
|
1126
|
-
workflowId: isSet(object.workflowId)
|
|
1127
|
-
? globalThis.String(object.workflowId)
|
|
1128
|
-
: isSet(object.workflow_id)
|
|
1129
|
-
? globalThis.String(object.workflow_id)
|
|
1130
|
-
: "",
|
|
1131
1039
|
testScriptId: isSet(object.testScriptId)
|
|
1132
1040
|
? globalThis.String(object.testScriptId)
|
|
1133
1041
|
: isSet(object.test_script_id)
|
|
@@ -1140,9 +1048,6 @@ exports.DeleteTestScriptRequest = {
|
|
|
1140
1048
|
if (message.projectId !== "") {
|
|
1141
1049
|
obj.projectId = message.projectId;
|
|
1142
1050
|
}
|
|
1143
|
-
if (message.workflowId !== "") {
|
|
1144
|
-
obj.workflowId = message.workflowId;
|
|
1145
|
-
}
|
|
1146
1051
|
if (message.testScriptId !== "") {
|
|
1147
1052
|
obj.testScriptId = message.testScriptId;
|
|
1148
1053
|
}
|
|
@@ -1152,11 +1057,10 @@ exports.DeleteTestScriptRequest = {
|
|
|
1152
1057
|
return exports.DeleteTestScriptRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1153
1058
|
},
|
|
1154
1059
|
fromPartial(object) {
|
|
1155
|
-
var _a, _b
|
|
1060
|
+
var _a, _b;
|
|
1156
1061
|
const message = createBaseDeleteTestScriptRequest();
|
|
1157
1062
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
1158
|
-
message.
|
|
1159
|
-
message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
|
|
1063
|
+
message.testScriptId = (_b = object.testScriptId) !== null && _b !== void 0 ? _b : "";
|
|
1160
1064
|
return message;
|
|
1161
1065
|
},
|
|
1162
1066
|
};
|
|
@@ -1197,23 +1101,10 @@ exports.DeleteTestScriptResponse = {
|
|
|
1197
1101
|
return message;
|
|
1198
1102
|
},
|
|
1199
1103
|
};
|
|
1200
|
-
function
|
|
1201
|
-
return {
|
|
1202
|
-
projectId: "",
|
|
1203
|
-
workflowId: "",
|
|
1204
|
-
testScriptId: "",
|
|
1205
|
-
sourceCode: "",
|
|
1206
|
-
promptVersion: "",
|
|
1207
|
-
metadata: undefined,
|
|
1208
|
-
sourceLocationType: 0,
|
|
1209
|
-
storageConnectionId: "",
|
|
1210
|
-
sourceUri: "",
|
|
1211
|
-
externalRevision: "",
|
|
1212
|
-
sourceChecksum: "",
|
|
1213
|
-
sourceSizeBytes: 0,
|
|
1214
|
-
};
|
|
1104
|
+
function createBaseAttachTestScriptToWorkflowRequest() {
|
|
1105
|
+
return { projectId: "", workflowId: "", testScriptId: "", attachedBy: "", metadata: undefined };
|
|
1215
1106
|
}
|
|
1216
|
-
exports.
|
|
1107
|
+
exports.AttachTestScriptToWorkflowRequest = {
|
|
1217
1108
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1218
1109
|
if (message.projectId !== "") {
|
|
1219
1110
|
writer.uint32(10).string(message.projectId);
|
|
@@ -1224,39 +1115,18 @@ exports.CreateTestScriptVersionRequest = {
|
|
|
1224
1115
|
if (message.testScriptId !== "") {
|
|
1225
1116
|
writer.uint32(26).string(message.testScriptId);
|
|
1226
1117
|
}
|
|
1227
|
-
if (message.
|
|
1228
|
-
writer.uint32(34).string(message.
|
|
1229
|
-
}
|
|
1230
|
-
if (message.promptVersion !== "") {
|
|
1231
|
-
writer.uint32(42).string(message.promptVersion);
|
|
1118
|
+
if (message.attachedBy !== "") {
|
|
1119
|
+
writer.uint32(34).string(message.attachedBy);
|
|
1232
1120
|
}
|
|
1233
1121
|
if (message.metadata !== undefined) {
|
|
1234
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(
|
|
1235
|
-
}
|
|
1236
|
-
if (message.sourceLocationType !== 0) {
|
|
1237
|
-
writer.uint32(56).int32(message.sourceLocationType);
|
|
1238
|
-
}
|
|
1239
|
-
if (message.storageConnectionId !== "") {
|
|
1240
|
-
writer.uint32(66).string(message.storageConnectionId);
|
|
1241
|
-
}
|
|
1242
|
-
if (message.sourceUri !== "") {
|
|
1243
|
-
writer.uint32(74).string(message.sourceUri);
|
|
1244
|
-
}
|
|
1245
|
-
if (message.externalRevision !== "") {
|
|
1246
|
-
writer.uint32(82).string(message.externalRevision);
|
|
1247
|
-
}
|
|
1248
|
-
if (message.sourceChecksum !== "") {
|
|
1249
|
-
writer.uint32(90).string(message.sourceChecksum);
|
|
1250
|
-
}
|
|
1251
|
-
if (message.sourceSizeBytes !== 0) {
|
|
1252
|
-
writer.uint32(96).int64(message.sourceSizeBytes);
|
|
1122
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(42).fork()).join();
|
|
1253
1123
|
}
|
|
1254
1124
|
return writer;
|
|
1255
1125
|
},
|
|
1256
1126
|
decode(input, length) {
|
|
1257
1127
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1258
1128
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1259
|
-
const message =
|
|
1129
|
+
const message = createBaseAttachTestScriptToWorkflowRequest();
|
|
1260
1130
|
while (reader.pos < end) {
|
|
1261
1131
|
const tag = reader.uint32();
|
|
1262
1132
|
switch (tag >>> 3) {
|
|
@@ -1285,63 +1155,14 @@ exports.CreateTestScriptVersionRequest = {
|
|
|
1285
1155
|
if (tag !== 34) {
|
|
1286
1156
|
break;
|
|
1287
1157
|
}
|
|
1288
|
-
message.
|
|
1158
|
+
message.attachedBy = reader.string();
|
|
1289
1159
|
continue;
|
|
1290
1160
|
}
|
|
1291
1161
|
case 5: {
|
|
1292
1162
|
if (tag !== 42) {
|
|
1293
1163
|
break;
|
|
1294
1164
|
}
|
|
1295
|
-
message.
|
|
1296
|
-
continue;
|
|
1297
|
-
}
|
|
1298
|
-
case 6: {
|
|
1299
|
-
if (tag !== 50) {
|
|
1300
|
-
break;
|
|
1301
|
-
}
|
|
1302
|
-
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
1303
|
-
continue;
|
|
1304
|
-
}
|
|
1305
|
-
case 7: {
|
|
1306
|
-
if (tag !== 56) {
|
|
1307
|
-
break;
|
|
1308
|
-
}
|
|
1309
|
-
message.sourceLocationType = reader.int32();
|
|
1310
|
-
continue;
|
|
1311
|
-
}
|
|
1312
|
-
case 8: {
|
|
1313
|
-
if (tag !== 66) {
|
|
1314
|
-
break;
|
|
1315
|
-
}
|
|
1316
|
-
message.storageConnectionId = reader.string();
|
|
1317
|
-
continue;
|
|
1318
|
-
}
|
|
1319
|
-
case 9: {
|
|
1320
|
-
if (tag !== 74) {
|
|
1321
|
-
break;
|
|
1322
|
-
}
|
|
1323
|
-
message.sourceUri = reader.string();
|
|
1324
|
-
continue;
|
|
1325
|
-
}
|
|
1326
|
-
case 10: {
|
|
1327
|
-
if (tag !== 82) {
|
|
1328
|
-
break;
|
|
1329
|
-
}
|
|
1330
|
-
message.externalRevision = reader.string();
|
|
1331
|
-
continue;
|
|
1332
|
-
}
|
|
1333
|
-
case 11: {
|
|
1334
|
-
if (tag !== 90) {
|
|
1335
|
-
break;
|
|
1336
|
-
}
|
|
1337
|
-
message.sourceChecksum = reader.string();
|
|
1338
|
-
continue;
|
|
1339
|
-
}
|
|
1340
|
-
case 12: {
|
|
1341
|
-
if (tag !== 96) {
|
|
1342
|
-
break;
|
|
1343
|
-
}
|
|
1344
|
-
message.sourceSizeBytes = longToNumber(reader.int64());
|
|
1165
|
+
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
1345
1166
|
continue;
|
|
1346
1167
|
}
|
|
1347
1168
|
}
|
|
@@ -1369,47 +1190,12 @@ exports.CreateTestScriptVersionRequest = {
|
|
|
1369
1190
|
: isSet(object.test_script_id)
|
|
1370
1191
|
? globalThis.String(object.test_script_id)
|
|
1371
1192
|
: "",
|
|
1372
|
-
|
|
1373
|
-
? globalThis.String(object.
|
|
1374
|
-
: isSet(object.
|
|
1375
|
-
? globalThis.String(object.
|
|
1376
|
-
: "",
|
|
1377
|
-
promptVersion: isSet(object.promptVersion)
|
|
1378
|
-
? globalThis.String(object.promptVersion)
|
|
1379
|
-
: isSet(object.prompt_version)
|
|
1380
|
-
? globalThis.String(object.prompt_version)
|
|
1193
|
+
attachedBy: isSet(object.attachedBy)
|
|
1194
|
+
? globalThis.String(object.attachedBy)
|
|
1195
|
+
: isSet(object.attached_by)
|
|
1196
|
+
? globalThis.String(object.attached_by)
|
|
1381
1197
|
: "",
|
|
1382
1198
|
metadata: isObject(object.metadata) ? object.metadata : undefined,
|
|
1383
|
-
sourceLocationType: isSet(object.sourceLocationType)
|
|
1384
|
-
? (0, script_pb_1.scriptSourceLocationTypeFromJSON)(object.sourceLocationType)
|
|
1385
|
-
: isSet(object.source_location_type)
|
|
1386
|
-
? (0, script_pb_1.scriptSourceLocationTypeFromJSON)(object.source_location_type)
|
|
1387
|
-
: 0,
|
|
1388
|
-
storageConnectionId: isSet(object.storageConnectionId)
|
|
1389
|
-
? globalThis.String(object.storageConnectionId)
|
|
1390
|
-
: isSet(object.storage_connection_id)
|
|
1391
|
-
? globalThis.String(object.storage_connection_id)
|
|
1392
|
-
: "",
|
|
1393
|
-
sourceUri: isSet(object.sourceUri)
|
|
1394
|
-
? globalThis.String(object.sourceUri)
|
|
1395
|
-
: isSet(object.source_uri)
|
|
1396
|
-
? globalThis.String(object.source_uri)
|
|
1397
|
-
: "",
|
|
1398
|
-
externalRevision: isSet(object.externalRevision)
|
|
1399
|
-
? globalThis.String(object.externalRevision)
|
|
1400
|
-
: isSet(object.external_revision)
|
|
1401
|
-
? globalThis.String(object.external_revision)
|
|
1402
|
-
: "",
|
|
1403
|
-
sourceChecksum: isSet(object.sourceChecksum)
|
|
1404
|
-
? globalThis.String(object.sourceChecksum)
|
|
1405
|
-
: isSet(object.source_checksum)
|
|
1406
|
-
? globalThis.String(object.source_checksum)
|
|
1407
|
-
: "",
|
|
1408
|
-
sourceSizeBytes: isSet(object.sourceSizeBytes)
|
|
1409
|
-
? globalThis.Number(object.sourceSizeBytes)
|
|
1410
|
-
: isSet(object.source_size_bytes)
|
|
1411
|
-
? globalThis.Number(object.source_size_bytes)
|
|
1412
|
-
: 0,
|
|
1413
1199
|
};
|
|
1414
1200
|
},
|
|
1415
1201
|
toJSON(message) {
|
|
@@ -1423,70 +1209,42 @@ exports.CreateTestScriptVersionRequest = {
|
|
|
1423
1209
|
if (message.testScriptId !== "") {
|
|
1424
1210
|
obj.testScriptId = message.testScriptId;
|
|
1425
1211
|
}
|
|
1426
|
-
if (message.
|
|
1427
|
-
obj.
|
|
1428
|
-
}
|
|
1429
|
-
if (message.promptVersion !== "") {
|
|
1430
|
-
obj.promptVersion = message.promptVersion;
|
|
1212
|
+
if (message.attachedBy !== "") {
|
|
1213
|
+
obj.attachedBy = message.attachedBy;
|
|
1431
1214
|
}
|
|
1432
1215
|
if (message.metadata !== undefined) {
|
|
1433
1216
|
obj.metadata = message.metadata;
|
|
1434
1217
|
}
|
|
1435
|
-
if (message.sourceLocationType !== 0) {
|
|
1436
|
-
obj.sourceLocationType = (0, script_pb_1.scriptSourceLocationTypeToJSON)(message.sourceLocationType);
|
|
1437
|
-
}
|
|
1438
|
-
if (message.storageConnectionId !== "") {
|
|
1439
|
-
obj.storageConnectionId = message.storageConnectionId;
|
|
1440
|
-
}
|
|
1441
|
-
if (message.sourceUri !== "") {
|
|
1442
|
-
obj.sourceUri = message.sourceUri;
|
|
1443
|
-
}
|
|
1444
|
-
if (message.externalRevision !== "") {
|
|
1445
|
-
obj.externalRevision = message.externalRevision;
|
|
1446
|
-
}
|
|
1447
|
-
if (message.sourceChecksum !== "") {
|
|
1448
|
-
obj.sourceChecksum = message.sourceChecksum;
|
|
1449
|
-
}
|
|
1450
|
-
if (message.sourceSizeBytes !== 0) {
|
|
1451
|
-
obj.sourceSizeBytes = Math.round(message.sourceSizeBytes);
|
|
1452
|
-
}
|
|
1453
1218
|
return obj;
|
|
1454
1219
|
},
|
|
1455
1220
|
create(base) {
|
|
1456
|
-
return exports.
|
|
1221
|
+
return exports.AttachTestScriptToWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1457
1222
|
},
|
|
1458
1223
|
fromPartial(object) {
|
|
1459
|
-
var _a, _b, _c, _d, _e
|
|
1460
|
-
const message =
|
|
1224
|
+
var _a, _b, _c, _d, _e;
|
|
1225
|
+
const message = createBaseAttachTestScriptToWorkflowRequest();
|
|
1461
1226
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
1462
1227
|
message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
|
|
1463
1228
|
message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
|
|
1464
|
-
message.
|
|
1465
|
-
message.
|
|
1466
|
-
message.metadata = (_f = object.metadata) !== null && _f !== void 0 ? _f : undefined;
|
|
1467
|
-
message.sourceLocationType = (_g = object.sourceLocationType) !== null && _g !== void 0 ? _g : 0;
|
|
1468
|
-
message.storageConnectionId = (_h = object.storageConnectionId) !== null && _h !== void 0 ? _h : "";
|
|
1469
|
-
message.sourceUri = (_j = object.sourceUri) !== null && _j !== void 0 ? _j : "";
|
|
1470
|
-
message.externalRevision = (_k = object.externalRevision) !== null && _k !== void 0 ? _k : "";
|
|
1471
|
-
message.sourceChecksum = (_l = object.sourceChecksum) !== null && _l !== void 0 ? _l : "";
|
|
1472
|
-
message.sourceSizeBytes = (_m = object.sourceSizeBytes) !== null && _m !== void 0 ? _m : 0;
|
|
1229
|
+
message.attachedBy = (_d = object.attachedBy) !== null && _d !== void 0 ? _d : "";
|
|
1230
|
+
message.metadata = (_e = object.metadata) !== null && _e !== void 0 ? _e : undefined;
|
|
1473
1231
|
return message;
|
|
1474
1232
|
},
|
|
1475
1233
|
};
|
|
1476
|
-
function
|
|
1477
|
-
return {
|
|
1234
|
+
function createBaseAttachTestScriptToWorkflowResponse() {
|
|
1235
|
+
return { binding: undefined };
|
|
1478
1236
|
}
|
|
1479
|
-
exports.
|
|
1237
|
+
exports.AttachTestScriptToWorkflowResponse = {
|
|
1480
1238
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1481
|
-
if (message.
|
|
1482
|
-
|
|
1239
|
+
if (message.binding !== undefined) {
|
|
1240
|
+
exports.WorkflowTestScriptBinding.encode(message.binding, writer.uint32(10).fork()).join();
|
|
1483
1241
|
}
|
|
1484
1242
|
return writer;
|
|
1485
1243
|
},
|
|
1486
1244
|
decode(input, length) {
|
|
1487
1245
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1488
1246
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1489
|
-
const message =
|
|
1247
|
+
const message = createBaseAttachTestScriptToWorkflowResponse();
|
|
1490
1248
|
while (reader.pos < end) {
|
|
1491
1249
|
const tag = reader.uint32();
|
|
1492
1250
|
switch (tag >>> 3) {
|
|
@@ -1494,7 +1252,7 @@ exports.CreateTestScriptVersionResponse = {
|
|
|
1494
1252
|
if (tag !== 10) {
|
|
1495
1253
|
break;
|
|
1496
1254
|
}
|
|
1497
|
-
message.
|
|
1255
|
+
message.binding = exports.WorkflowTestScriptBinding.decode(reader, reader.uint32());
|
|
1498
1256
|
continue;
|
|
1499
1257
|
}
|
|
1500
1258
|
}
|
|
@@ -1506,36 +1264,30 @@ exports.CreateTestScriptVersionResponse = {
|
|
|
1506
1264
|
return message;
|
|
1507
1265
|
},
|
|
1508
1266
|
fromJSON(object) {
|
|
1509
|
-
return {
|
|
1510
|
-
testScriptVersion: isSet(object.testScriptVersion)
|
|
1511
|
-
? script_pb_1.TestScriptVersion.fromJSON(object.testScriptVersion)
|
|
1512
|
-
: isSet(object.test_script_version)
|
|
1513
|
-
? script_pb_1.TestScriptVersion.fromJSON(object.test_script_version)
|
|
1514
|
-
: undefined,
|
|
1515
|
-
};
|
|
1267
|
+
return { binding: isSet(object.binding) ? exports.WorkflowTestScriptBinding.fromJSON(object.binding) : undefined };
|
|
1516
1268
|
},
|
|
1517
1269
|
toJSON(message) {
|
|
1518
1270
|
const obj = {};
|
|
1519
|
-
if (message.
|
|
1520
|
-
obj.
|
|
1271
|
+
if (message.binding !== undefined) {
|
|
1272
|
+
obj.binding = exports.WorkflowTestScriptBinding.toJSON(message.binding);
|
|
1521
1273
|
}
|
|
1522
1274
|
return obj;
|
|
1523
1275
|
},
|
|
1524
1276
|
create(base) {
|
|
1525
|
-
return exports.
|
|
1277
|
+
return exports.AttachTestScriptToWorkflowResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1526
1278
|
},
|
|
1527
1279
|
fromPartial(object) {
|
|
1528
|
-
const message =
|
|
1529
|
-
message.
|
|
1530
|
-
?
|
|
1280
|
+
const message = createBaseAttachTestScriptToWorkflowResponse();
|
|
1281
|
+
message.binding = (object.binding !== undefined && object.binding !== null)
|
|
1282
|
+
? exports.WorkflowTestScriptBinding.fromPartial(object.binding)
|
|
1531
1283
|
: undefined;
|
|
1532
1284
|
return message;
|
|
1533
1285
|
},
|
|
1534
1286
|
};
|
|
1535
|
-
function
|
|
1536
|
-
return { projectId: "", workflowId: "", testScriptId: ""
|
|
1287
|
+
function createBaseDetachTestScriptFromWorkflowRequest() {
|
|
1288
|
+
return { projectId: "", workflowId: "", testScriptId: "" };
|
|
1537
1289
|
}
|
|
1538
|
-
exports.
|
|
1290
|
+
exports.DetachTestScriptFromWorkflowRequest = {
|
|
1539
1291
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1540
1292
|
if (message.projectId !== "") {
|
|
1541
1293
|
writer.uint32(10).string(message.projectId);
|
|
@@ -1546,15 +1298,12 @@ exports.GetTestScriptVersionRequest = {
|
|
|
1546
1298
|
if (message.testScriptId !== "") {
|
|
1547
1299
|
writer.uint32(26).string(message.testScriptId);
|
|
1548
1300
|
}
|
|
1549
|
-
if (message.testScriptVersionId !== "") {
|
|
1550
|
-
writer.uint32(34).string(message.testScriptVersionId);
|
|
1551
|
-
}
|
|
1552
1301
|
return writer;
|
|
1553
1302
|
},
|
|
1554
1303
|
decode(input, length) {
|
|
1555
1304
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1556
1305
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1557
|
-
const message =
|
|
1306
|
+
const message = createBaseDetachTestScriptFromWorkflowRequest();
|
|
1558
1307
|
while (reader.pos < end) {
|
|
1559
1308
|
const tag = reader.uint32();
|
|
1560
1309
|
switch (tag >>> 3) {
|
|
@@ -1579,13 +1328,6 @@ exports.GetTestScriptVersionRequest = {
|
|
|
1579
1328
|
message.testScriptId = reader.string();
|
|
1580
1329
|
continue;
|
|
1581
1330
|
}
|
|
1582
|
-
case 4: {
|
|
1583
|
-
if (tag !== 34) {
|
|
1584
|
-
break;
|
|
1585
|
-
}
|
|
1586
|
-
message.testScriptVersionId = reader.string();
|
|
1587
|
-
continue;
|
|
1588
|
-
}
|
|
1589
1331
|
}
|
|
1590
1332
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1591
1333
|
break;
|
|
@@ -1611,11 +1353,6 @@ exports.GetTestScriptVersionRequest = {
|
|
|
1611
1353
|
: isSet(object.test_script_id)
|
|
1612
1354
|
? globalThis.String(object.test_script_id)
|
|
1613
1355
|
: "",
|
|
1614
|
-
testScriptVersionId: isSet(object.testScriptVersionId)
|
|
1615
|
-
? globalThis.String(object.testScriptVersionId)
|
|
1616
|
-
: isSet(object.test_script_version_id)
|
|
1617
|
-
? globalThis.String(object.test_script_version_id)
|
|
1618
|
-
: "",
|
|
1619
1356
|
};
|
|
1620
1357
|
},
|
|
1621
1358
|
toJSON(message) {
|
|
@@ -1629,48 +1366,34 @@ exports.GetTestScriptVersionRequest = {
|
|
|
1629
1366
|
if (message.testScriptId !== "") {
|
|
1630
1367
|
obj.testScriptId = message.testScriptId;
|
|
1631
1368
|
}
|
|
1632
|
-
if (message.testScriptVersionId !== "") {
|
|
1633
|
-
obj.testScriptVersionId = message.testScriptVersionId;
|
|
1634
|
-
}
|
|
1635
1369
|
return obj;
|
|
1636
1370
|
},
|
|
1637
1371
|
create(base) {
|
|
1638
|
-
return exports.
|
|
1372
|
+
return exports.DetachTestScriptFromWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1639
1373
|
},
|
|
1640
1374
|
fromPartial(object) {
|
|
1641
|
-
var _a, _b, _c
|
|
1642
|
-
const message =
|
|
1375
|
+
var _a, _b, _c;
|
|
1376
|
+
const message = createBaseDetachTestScriptFromWorkflowRequest();
|
|
1643
1377
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
1644
1378
|
message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
|
|
1645
1379
|
message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
|
|
1646
|
-
message.testScriptVersionId = (_d = object.testScriptVersionId) !== null && _d !== void 0 ? _d : "";
|
|
1647
1380
|
return message;
|
|
1648
1381
|
},
|
|
1649
1382
|
};
|
|
1650
|
-
function
|
|
1651
|
-
return {
|
|
1383
|
+
function createBaseDetachTestScriptFromWorkflowResponse() {
|
|
1384
|
+
return {};
|
|
1652
1385
|
}
|
|
1653
|
-
exports.
|
|
1654
|
-
encode(
|
|
1655
|
-
if (message.testScriptVersion !== undefined) {
|
|
1656
|
-
script_pb_1.TestScriptVersion.encode(message.testScriptVersion, writer.uint32(10).fork()).join();
|
|
1657
|
-
}
|
|
1386
|
+
exports.DetachTestScriptFromWorkflowResponse = {
|
|
1387
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1658
1388
|
return writer;
|
|
1659
1389
|
},
|
|
1660
1390
|
decode(input, length) {
|
|
1661
1391
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1662
1392
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1663
|
-
const message =
|
|
1393
|
+
const message = createBaseDetachTestScriptFromWorkflowResponse();
|
|
1664
1394
|
while (reader.pos < end) {
|
|
1665
1395
|
const tag = reader.uint32();
|
|
1666
1396
|
switch (tag >>> 3) {
|
|
1667
|
-
case 1: {
|
|
1668
|
-
if (tag !== 10) {
|
|
1669
|
-
break;
|
|
1670
|
-
}
|
|
1671
|
-
message.testScriptVersion = script_pb_1.TestScriptVersion.decode(reader, reader.uint32());
|
|
1672
|
-
continue;
|
|
1673
|
-
}
|
|
1674
1397
|
}
|
|
1675
1398
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1676
1399
|
break;
|
|
@@ -1679,37 +1402,25 @@ exports.GetTestScriptVersionResponse = {
|
|
|
1679
1402
|
}
|
|
1680
1403
|
return message;
|
|
1681
1404
|
},
|
|
1682
|
-
fromJSON(
|
|
1683
|
-
return {
|
|
1684
|
-
testScriptVersion: isSet(object.testScriptVersion)
|
|
1685
|
-
? script_pb_1.TestScriptVersion.fromJSON(object.testScriptVersion)
|
|
1686
|
-
: isSet(object.test_script_version)
|
|
1687
|
-
? script_pb_1.TestScriptVersion.fromJSON(object.test_script_version)
|
|
1688
|
-
: undefined,
|
|
1689
|
-
};
|
|
1405
|
+
fromJSON(_) {
|
|
1406
|
+
return {};
|
|
1690
1407
|
},
|
|
1691
|
-
toJSON(
|
|
1408
|
+
toJSON(_) {
|
|
1692
1409
|
const obj = {};
|
|
1693
|
-
if (message.testScriptVersion !== undefined) {
|
|
1694
|
-
obj.testScriptVersion = script_pb_1.TestScriptVersion.toJSON(message.testScriptVersion);
|
|
1695
|
-
}
|
|
1696
1410
|
return obj;
|
|
1697
1411
|
},
|
|
1698
1412
|
create(base) {
|
|
1699
|
-
return exports.
|
|
1413
|
+
return exports.DetachTestScriptFromWorkflowResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1700
1414
|
},
|
|
1701
|
-
fromPartial(
|
|
1702
|
-
const message =
|
|
1703
|
-
message.testScriptVersion = (object.testScriptVersion !== undefined && object.testScriptVersion !== null)
|
|
1704
|
-
? script_pb_1.TestScriptVersion.fromPartial(object.testScriptVersion)
|
|
1705
|
-
: undefined;
|
|
1415
|
+
fromPartial(_) {
|
|
1416
|
+
const message = createBaseDetachTestScriptFromWorkflowResponse();
|
|
1706
1417
|
return message;
|
|
1707
1418
|
},
|
|
1708
1419
|
};
|
|
1709
|
-
function
|
|
1710
|
-
return { projectId: "", workflowId: "",
|
|
1420
|
+
function createBaseListWorkflowTestScriptBindingsRequest() {
|
|
1421
|
+
return { projectId: "", workflowId: "", pageSize: 0, pageToken: "" };
|
|
1711
1422
|
}
|
|
1712
|
-
exports.
|
|
1423
|
+
exports.ListWorkflowTestScriptBindingsRequest = {
|
|
1713
1424
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1714
1425
|
if (message.projectId !== "") {
|
|
1715
1426
|
writer.uint32(10).string(message.projectId);
|
|
@@ -1717,21 +1428,18 @@ exports.ListTestScriptVersionsRequest = {
|
|
|
1717
1428
|
if (message.workflowId !== "") {
|
|
1718
1429
|
writer.uint32(18).string(message.workflowId);
|
|
1719
1430
|
}
|
|
1720
|
-
if (message.testScriptId !== "") {
|
|
1721
|
-
writer.uint32(26).string(message.testScriptId);
|
|
1722
|
-
}
|
|
1723
1431
|
if (message.pageSize !== 0) {
|
|
1724
|
-
writer.uint32(
|
|
1432
|
+
writer.uint32(24).int32(message.pageSize);
|
|
1725
1433
|
}
|
|
1726
1434
|
if (message.pageToken !== "") {
|
|
1727
|
-
writer.uint32(
|
|
1435
|
+
writer.uint32(34).string(message.pageToken);
|
|
1728
1436
|
}
|
|
1729
1437
|
return writer;
|
|
1730
1438
|
},
|
|
1731
1439
|
decode(input, length) {
|
|
1732
1440
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1733
1441
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1734
|
-
const message =
|
|
1442
|
+
const message = createBaseListWorkflowTestScriptBindingsRequest();
|
|
1735
1443
|
while (reader.pos < end) {
|
|
1736
1444
|
const tag = reader.uint32();
|
|
1737
1445
|
switch (tag >>> 3) {
|
|
@@ -1750,21 +1458,14 @@ exports.ListTestScriptVersionsRequest = {
|
|
|
1750
1458
|
continue;
|
|
1751
1459
|
}
|
|
1752
1460
|
case 3: {
|
|
1753
|
-
if (tag !==
|
|
1754
|
-
break;
|
|
1755
|
-
}
|
|
1756
|
-
message.testScriptId = reader.string();
|
|
1757
|
-
continue;
|
|
1758
|
-
}
|
|
1759
|
-
case 4: {
|
|
1760
|
-
if (tag !== 32) {
|
|
1461
|
+
if (tag !== 24) {
|
|
1761
1462
|
break;
|
|
1762
1463
|
}
|
|
1763
1464
|
message.pageSize = reader.int32();
|
|
1764
1465
|
continue;
|
|
1765
1466
|
}
|
|
1766
|
-
case
|
|
1767
|
-
if (tag !==
|
|
1467
|
+
case 4: {
|
|
1468
|
+
if (tag !== 34) {
|
|
1768
1469
|
break;
|
|
1769
1470
|
}
|
|
1770
1471
|
message.pageToken = reader.string();
|
|
@@ -1790,11 +1491,6 @@ exports.ListTestScriptVersionsRequest = {
|
|
|
1790
1491
|
: isSet(object.workflow_id)
|
|
1791
1492
|
? globalThis.String(object.workflow_id)
|
|
1792
1493
|
: "",
|
|
1793
|
-
testScriptId: isSet(object.testScriptId)
|
|
1794
|
-
? globalThis.String(object.testScriptId)
|
|
1795
|
-
: isSet(object.test_script_id)
|
|
1796
|
-
? globalThis.String(object.test_script_id)
|
|
1797
|
-
: "",
|
|
1798
1494
|
pageSize: isSet(object.pageSize)
|
|
1799
1495
|
? globalThis.Number(object.pageSize)
|
|
1800
1496
|
: isSet(object.page_size)
|
|
@@ -1815,9 +1511,6 @@ exports.ListTestScriptVersionsRequest = {
|
|
|
1815
1511
|
if (message.workflowId !== "") {
|
|
1816
1512
|
obj.workflowId = message.workflowId;
|
|
1817
1513
|
}
|
|
1818
|
-
if (message.testScriptId !== "") {
|
|
1819
|
-
obj.testScriptId = message.testScriptId;
|
|
1820
|
-
}
|
|
1821
1514
|
if (message.pageSize !== 0) {
|
|
1822
1515
|
obj.pageSize = Math.round(message.pageSize);
|
|
1823
1516
|
}
|
|
@@ -1827,26 +1520,25 @@ exports.ListTestScriptVersionsRequest = {
|
|
|
1827
1520
|
return obj;
|
|
1828
1521
|
},
|
|
1829
1522
|
create(base) {
|
|
1830
|
-
return exports.
|
|
1523
|
+
return exports.ListWorkflowTestScriptBindingsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1831
1524
|
},
|
|
1832
1525
|
fromPartial(object) {
|
|
1833
|
-
var _a, _b, _c, _d
|
|
1834
|
-
const message =
|
|
1526
|
+
var _a, _b, _c, _d;
|
|
1527
|
+
const message = createBaseListWorkflowTestScriptBindingsRequest();
|
|
1835
1528
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
1836
1529
|
message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
|
|
1837
|
-
message.
|
|
1838
|
-
message.
|
|
1839
|
-
message.pageToken = (_e = object.pageToken) !== null && _e !== void 0 ? _e : "";
|
|
1530
|
+
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
|
|
1531
|
+
message.pageToken = (_d = object.pageToken) !== null && _d !== void 0 ? _d : "";
|
|
1840
1532
|
return message;
|
|
1841
1533
|
},
|
|
1842
1534
|
};
|
|
1843
|
-
function
|
|
1844
|
-
return {
|
|
1535
|
+
function createBaseListWorkflowTestScriptBindingsResponse() {
|
|
1536
|
+
return { bindings: [], nextPageToken: "" };
|
|
1845
1537
|
}
|
|
1846
|
-
exports.
|
|
1538
|
+
exports.ListWorkflowTestScriptBindingsResponse = {
|
|
1847
1539
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1848
|
-
for (const v of message.
|
|
1849
|
-
|
|
1540
|
+
for (const v of message.bindings) {
|
|
1541
|
+
exports.WorkflowTestScriptBinding.encode(v, writer.uint32(10).fork()).join();
|
|
1850
1542
|
}
|
|
1851
1543
|
if (message.nextPageToken !== "") {
|
|
1852
1544
|
writer.uint32(18).string(message.nextPageToken);
|
|
@@ -1856,7 +1548,7 @@ exports.ListTestScriptVersionsResponse = {
|
|
|
1856
1548
|
decode(input, length) {
|
|
1857
1549
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1858
1550
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1859
|
-
const message =
|
|
1551
|
+
const message = createBaseListWorkflowTestScriptBindingsResponse();
|
|
1860
1552
|
while (reader.pos < end) {
|
|
1861
1553
|
const tag = reader.uint32();
|
|
1862
1554
|
switch (tag >>> 3) {
|
|
@@ -1864,7 +1556,7 @@ exports.ListTestScriptVersionsResponse = {
|
|
|
1864
1556
|
if (tag !== 10) {
|
|
1865
1557
|
break;
|
|
1866
1558
|
}
|
|
1867
|
-
message.
|
|
1559
|
+
message.bindings.push(exports.WorkflowTestScriptBinding.decode(reader, reader.uint32()));
|
|
1868
1560
|
continue;
|
|
1869
1561
|
}
|
|
1870
1562
|
case 2: {
|
|
@@ -1884,11 +1576,9 @@ exports.ListTestScriptVersionsResponse = {
|
|
|
1884
1576
|
},
|
|
1885
1577
|
fromJSON(object) {
|
|
1886
1578
|
return {
|
|
1887
|
-
|
|
1888
|
-
? object.
|
|
1889
|
-
:
|
|
1890
|
-
? object.test_script_versions.map((e) => script_pb_1.TestScriptVersion.fromJSON(e))
|
|
1891
|
-
: [],
|
|
1579
|
+
bindings: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.bindings)
|
|
1580
|
+
? object.bindings.map((e) => exports.WorkflowTestScriptBinding.fromJSON(e))
|
|
1581
|
+
: [],
|
|
1892
1582
|
nextPageToken: isSet(object.nextPageToken)
|
|
1893
1583
|
? globalThis.String(object.nextPageToken)
|
|
1894
1584
|
: isSet(object.next_page_token)
|
|
@@ -1899,8 +1589,8 @@ exports.ListTestScriptVersionsResponse = {
|
|
|
1899
1589
|
toJSON(message) {
|
|
1900
1590
|
var _a;
|
|
1901
1591
|
const obj = {};
|
|
1902
|
-
if ((_a = message.
|
|
1903
|
-
obj.
|
|
1592
|
+
if ((_a = message.bindings) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1593
|
+
obj.bindings = message.bindings.map((e) => exports.WorkflowTestScriptBinding.toJSON(e));
|
|
1904
1594
|
}
|
|
1905
1595
|
if (message.nextPageToken !== "") {
|
|
1906
1596
|
obj.nextPageToken = message.nextPageToken;
|
|
@@ -1908,21 +1598,28 @@ exports.ListTestScriptVersionsResponse = {
|
|
|
1908
1598
|
return obj;
|
|
1909
1599
|
},
|
|
1910
1600
|
create(base) {
|
|
1911
|
-
return exports.
|
|
1601
|
+
return exports.ListWorkflowTestScriptBindingsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1912
1602
|
},
|
|
1913
1603
|
fromPartial(object) {
|
|
1914
1604
|
var _a;
|
|
1915
1605
|
var _b;
|
|
1916
|
-
const message =
|
|
1917
|
-
message.
|
|
1606
|
+
const message = createBaseListWorkflowTestScriptBindingsResponse();
|
|
1607
|
+
message.bindings = ((_a = object.bindings) === null || _a === void 0 ? void 0 : _a.map((e) => exports.WorkflowTestScriptBinding.fromPartial(e))) || [];
|
|
1918
1608
|
message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
|
|
1919
1609
|
return message;
|
|
1920
1610
|
},
|
|
1921
1611
|
};
|
|
1922
|
-
function
|
|
1923
|
-
return {
|
|
1612
|
+
function createBaseWorkflowTestScriptBinding() {
|
|
1613
|
+
return {
|
|
1614
|
+
projectId: "",
|
|
1615
|
+
workflowId: "",
|
|
1616
|
+
testScriptId: "",
|
|
1617
|
+
attachedBy: "",
|
|
1618
|
+
metadata: undefined,
|
|
1619
|
+
attachedAt: undefined,
|
|
1620
|
+
};
|
|
1924
1621
|
}
|
|
1925
|
-
exports.
|
|
1622
|
+
exports.WorkflowTestScriptBinding = {
|
|
1926
1623
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1927
1624
|
if (message.projectId !== "") {
|
|
1928
1625
|
writer.uint32(10).string(message.projectId);
|
|
@@ -1933,15 +1630,21 @@ exports.SetCurrentTestScriptVersionRequest = {
|
|
|
1933
1630
|
if (message.testScriptId !== "") {
|
|
1934
1631
|
writer.uint32(26).string(message.testScriptId);
|
|
1935
1632
|
}
|
|
1936
|
-
if (message.
|
|
1937
|
-
writer.uint32(34).string(message.
|
|
1633
|
+
if (message.attachedBy !== "") {
|
|
1634
|
+
writer.uint32(34).string(message.attachedBy);
|
|
1635
|
+
}
|
|
1636
|
+
if (message.metadata !== undefined) {
|
|
1637
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(42).fork()).join();
|
|
1638
|
+
}
|
|
1639
|
+
if (message.attachedAt !== undefined) {
|
|
1640
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.attachedAt), writer.uint32(50).fork()).join();
|
|
1938
1641
|
}
|
|
1939
1642
|
return writer;
|
|
1940
1643
|
},
|
|
1941
1644
|
decode(input, length) {
|
|
1942
1645
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1943
1646
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1944
|
-
const message =
|
|
1647
|
+
const message = createBaseWorkflowTestScriptBinding();
|
|
1945
1648
|
while (reader.pos < end) {
|
|
1946
1649
|
const tag = reader.uint32();
|
|
1947
1650
|
switch (tag >>> 3) {
|
|
@@ -1970,12 +1673,809 @@ exports.SetCurrentTestScriptVersionRequest = {
|
|
|
1970
1673
|
if (tag !== 34) {
|
|
1971
1674
|
break;
|
|
1972
1675
|
}
|
|
1973
|
-
message.
|
|
1676
|
+
message.attachedBy = reader.string();
|
|
1974
1677
|
continue;
|
|
1975
1678
|
}
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1679
|
+
case 5: {
|
|
1680
|
+
if (tag !== 42) {
|
|
1681
|
+
break;
|
|
1682
|
+
}
|
|
1683
|
+
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
1684
|
+
continue;
|
|
1685
|
+
}
|
|
1686
|
+
case 6: {
|
|
1687
|
+
if (tag !== 50) {
|
|
1688
|
+
break;
|
|
1689
|
+
}
|
|
1690
|
+
message.attachedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
1691
|
+
continue;
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1695
|
+
break;
|
|
1696
|
+
}
|
|
1697
|
+
reader.skip(tag & 7);
|
|
1698
|
+
}
|
|
1699
|
+
return message;
|
|
1700
|
+
},
|
|
1701
|
+
fromJSON(object) {
|
|
1702
|
+
return {
|
|
1703
|
+
projectId: isSet(object.projectId)
|
|
1704
|
+
? globalThis.String(object.projectId)
|
|
1705
|
+
: isSet(object.project_id)
|
|
1706
|
+
? globalThis.String(object.project_id)
|
|
1707
|
+
: "",
|
|
1708
|
+
workflowId: isSet(object.workflowId)
|
|
1709
|
+
? globalThis.String(object.workflowId)
|
|
1710
|
+
: isSet(object.workflow_id)
|
|
1711
|
+
? globalThis.String(object.workflow_id)
|
|
1712
|
+
: "",
|
|
1713
|
+
testScriptId: isSet(object.testScriptId)
|
|
1714
|
+
? globalThis.String(object.testScriptId)
|
|
1715
|
+
: isSet(object.test_script_id)
|
|
1716
|
+
? globalThis.String(object.test_script_id)
|
|
1717
|
+
: "",
|
|
1718
|
+
attachedBy: isSet(object.attachedBy)
|
|
1719
|
+
? globalThis.String(object.attachedBy)
|
|
1720
|
+
: isSet(object.attached_by)
|
|
1721
|
+
? globalThis.String(object.attached_by)
|
|
1722
|
+
: "",
|
|
1723
|
+
metadata: isObject(object.metadata) ? object.metadata : undefined,
|
|
1724
|
+
attachedAt: isSet(object.attachedAt)
|
|
1725
|
+
? fromJsonTimestamp(object.attachedAt)
|
|
1726
|
+
: isSet(object.attached_at)
|
|
1727
|
+
? fromJsonTimestamp(object.attached_at)
|
|
1728
|
+
: undefined,
|
|
1729
|
+
};
|
|
1730
|
+
},
|
|
1731
|
+
toJSON(message) {
|
|
1732
|
+
const obj = {};
|
|
1733
|
+
if (message.projectId !== "") {
|
|
1734
|
+
obj.projectId = message.projectId;
|
|
1735
|
+
}
|
|
1736
|
+
if (message.workflowId !== "") {
|
|
1737
|
+
obj.workflowId = message.workflowId;
|
|
1738
|
+
}
|
|
1739
|
+
if (message.testScriptId !== "") {
|
|
1740
|
+
obj.testScriptId = message.testScriptId;
|
|
1741
|
+
}
|
|
1742
|
+
if (message.attachedBy !== "") {
|
|
1743
|
+
obj.attachedBy = message.attachedBy;
|
|
1744
|
+
}
|
|
1745
|
+
if (message.metadata !== undefined) {
|
|
1746
|
+
obj.metadata = message.metadata;
|
|
1747
|
+
}
|
|
1748
|
+
if (message.attachedAt !== undefined) {
|
|
1749
|
+
obj.attachedAt = message.attachedAt.toISOString();
|
|
1750
|
+
}
|
|
1751
|
+
return obj;
|
|
1752
|
+
},
|
|
1753
|
+
create(base) {
|
|
1754
|
+
return exports.WorkflowTestScriptBinding.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1755
|
+
},
|
|
1756
|
+
fromPartial(object) {
|
|
1757
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1758
|
+
const message = createBaseWorkflowTestScriptBinding();
|
|
1759
|
+
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
1760
|
+
message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
|
|
1761
|
+
message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
|
|
1762
|
+
message.attachedBy = (_d = object.attachedBy) !== null && _d !== void 0 ? _d : "";
|
|
1763
|
+
message.metadata = (_e = object.metadata) !== null && _e !== void 0 ? _e : undefined;
|
|
1764
|
+
message.attachedAt = (_f = object.attachedAt) !== null && _f !== void 0 ? _f : undefined;
|
|
1765
|
+
return message;
|
|
1766
|
+
},
|
|
1767
|
+
};
|
|
1768
|
+
function createBaseCreateTestScriptVersionRequest() {
|
|
1769
|
+
return {
|
|
1770
|
+
projectId: "",
|
|
1771
|
+
testScriptId: "",
|
|
1772
|
+
sourceCode: "",
|
|
1773
|
+
promptVersion: "",
|
|
1774
|
+
metadata: undefined,
|
|
1775
|
+
sourceLocationType: 0,
|
|
1776
|
+
storageConnectionId: "",
|
|
1777
|
+
sourceUri: "",
|
|
1778
|
+
externalRevision: "",
|
|
1779
|
+
sourceChecksum: "",
|
|
1780
|
+
sourceSizeBytes: 0,
|
|
1781
|
+
};
|
|
1782
|
+
}
|
|
1783
|
+
exports.CreateTestScriptVersionRequest = {
|
|
1784
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1785
|
+
if (message.projectId !== "") {
|
|
1786
|
+
writer.uint32(10).string(message.projectId);
|
|
1787
|
+
}
|
|
1788
|
+
if (message.testScriptId !== "") {
|
|
1789
|
+
writer.uint32(18).string(message.testScriptId);
|
|
1790
|
+
}
|
|
1791
|
+
if (message.sourceCode !== "") {
|
|
1792
|
+
writer.uint32(26).string(message.sourceCode);
|
|
1793
|
+
}
|
|
1794
|
+
if (message.promptVersion !== "") {
|
|
1795
|
+
writer.uint32(34).string(message.promptVersion);
|
|
1796
|
+
}
|
|
1797
|
+
if (message.metadata !== undefined) {
|
|
1798
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(42).fork()).join();
|
|
1799
|
+
}
|
|
1800
|
+
if (message.sourceLocationType !== 0) {
|
|
1801
|
+
writer.uint32(48).int32(message.sourceLocationType);
|
|
1802
|
+
}
|
|
1803
|
+
if (message.storageConnectionId !== "") {
|
|
1804
|
+
writer.uint32(58).string(message.storageConnectionId);
|
|
1805
|
+
}
|
|
1806
|
+
if (message.sourceUri !== "") {
|
|
1807
|
+
writer.uint32(66).string(message.sourceUri);
|
|
1808
|
+
}
|
|
1809
|
+
if (message.externalRevision !== "") {
|
|
1810
|
+
writer.uint32(74).string(message.externalRevision);
|
|
1811
|
+
}
|
|
1812
|
+
if (message.sourceChecksum !== "") {
|
|
1813
|
+
writer.uint32(82).string(message.sourceChecksum);
|
|
1814
|
+
}
|
|
1815
|
+
if (message.sourceSizeBytes !== 0) {
|
|
1816
|
+
writer.uint32(88).int64(message.sourceSizeBytes);
|
|
1817
|
+
}
|
|
1818
|
+
return writer;
|
|
1819
|
+
},
|
|
1820
|
+
decode(input, length) {
|
|
1821
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1822
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1823
|
+
const message = createBaseCreateTestScriptVersionRequest();
|
|
1824
|
+
while (reader.pos < end) {
|
|
1825
|
+
const tag = reader.uint32();
|
|
1826
|
+
switch (tag >>> 3) {
|
|
1827
|
+
case 1: {
|
|
1828
|
+
if (tag !== 10) {
|
|
1829
|
+
break;
|
|
1830
|
+
}
|
|
1831
|
+
message.projectId = reader.string();
|
|
1832
|
+
continue;
|
|
1833
|
+
}
|
|
1834
|
+
case 2: {
|
|
1835
|
+
if (tag !== 18) {
|
|
1836
|
+
break;
|
|
1837
|
+
}
|
|
1838
|
+
message.testScriptId = reader.string();
|
|
1839
|
+
continue;
|
|
1840
|
+
}
|
|
1841
|
+
case 3: {
|
|
1842
|
+
if (tag !== 26) {
|
|
1843
|
+
break;
|
|
1844
|
+
}
|
|
1845
|
+
message.sourceCode = reader.string();
|
|
1846
|
+
continue;
|
|
1847
|
+
}
|
|
1848
|
+
case 4: {
|
|
1849
|
+
if (tag !== 34) {
|
|
1850
|
+
break;
|
|
1851
|
+
}
|
|
1852
|
+
message.promptVersion = reader.string();
|
|
1853
|
+
continue;
|
|
1854
|
+
}
|
|
1855
|
+
case 5: {
|
|
1856
|
+
if (tag !== 42) {
|
|
1857
|
+
break;
|
|
1858
|
+
}
|
|
1859
|
+
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
1860
|
+
continue;
|
|
1861
|
+
}
|
|
1862
|
+
case 6: {
|
|
1863
|
+
if (tag !== 48) {
|
|
1864
|
+
break;
|
|
1865
|
+
}
|
|
1866
|
+
message.sourceLocationType = reader.int32();
|
|
1867
|
+
continue;
|
|
1868
|
+
}
|
|
1869
|
+
case 7: {
|
|
1870
|
+
if (tag !== 58) {
|
|
1871
|
+
break;
|
|
1872
|
+
}
|
|
1873
|
+
message.storageConnectionId = reader.string();
|
|
1874
|
+
continue;
|
|
1875
|
+
}
|
|
1876
|
+
case 8: {
|
|
1877
|
+
if (tag !== 66) {
|
|
1878
|
+
break;
|
|
1879
|
+
}
|
|
1880
|
+
message.sourceUri = reader.string();
|
|
1881
|
+
continue;
|
|
1882
|
+
}
|
|
1883
|
+
case 9: {
|
|
1884
|
+
if (tag !== 74) {
|
|
1885
|
+
break;
|
|
1886
|
+
}
|
|
1887
|
+
message.externalRevision = reader.string();
|
|
1888
|
+
continue;
|
|
1889
|
+
}
|
|
1890
|
+
case 10: {
|
|
1891
|
+
if (tag !== 82) {
|
|
1892
|
+
break;
|
|
1893
|
+
}
|
|
1894
|
+
message.sourceChecksum = reader.string();
|
|
1895
|
+
continue;
|
|
1896
|
+
}
|
|
1897
|
+
case 11: {
|
|
1898
|
+
if (tag !== 88) {
|
|
1899
|
+
break;
|
|
1900
|
+
}
|
|
1901
|
+
message.sourceSizeBytes = longToNumber(reader.int64());
|
|
1902
|
+
continue;
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1906
|
+
break;
|
|
1907
|
+
}
|
|
1908
|
+
reader.skip(tag & 7);
|
|
1909
|
+
}
|
|
1910
|
+
return message;
|
|
1911
|
+
},
|
|
1912
|
+
fromJSON(object) {
|
|
1913
|
+
return {
|
|
1914
|
+
projectId: isSet(object.projectId)
|
|
1915
|
+
? globalThis.String(object.projectId)
|
|
1916
|
+
: isSet(object.project_id)
|
|
1917
|
+
? globalThis.String(object.project_id)
|
|
1918
|
+
: "",
|
|
1919
|
+
testScriptId: isSet(object.testScriptId)
|
|
1920
|
+
? globalThis.String(object.testScriptId)
|
|
1921
|
+
: isSet(object.test_script_id)
|
|
1922
|
+
? globalThis.String(object.test_script_id)
|
|
1923
|
+
: "",
|
|
1924
|
+
sourceCode: isSet(object.sourceCode)
|
|
1925
|
+
? globalThis.String(object.sourceCode)
|
|
1926
|
+
: isSet(object.source_code)
|
|
1927
|
+
? globalThis.String(object.source_code)
|
|
1928
|
+
: "",
|
|
1929
|
+
promptVersion: isSet(object.promptVersion)
|
|
1930
|
+
? globalThis.String(object.promptVersion)
|
|
1931
|
+
: isSet(object.prompt_version)
|
|
1932
|
+
? globalThis.String(object.prompt_version)
|
|
1933
|
+
: "",
|
|
1934
|
+
metadata: isObject(object.metadata) ? object.metadata : undefined,
|
|
1935
|
+
sourceLocationType: isSet(object.sourceLocationType)
|
|
1936
|
+
? (0, script_pb_1.scriptSourceLocationTypeFromJSON)(object.sourceLocationType)
|
|
1937
|
+
: isSet(object.source_location_type)
|
|
1938
|
+
? (0, script_pb_1.scriptSourceLocationTypeFromJSON)(object.source_location_type)
|
|
1939
|
+
: 0,
|
|
1940
|
+
storageConnectionId: isSet(object.storageConnectionId)
|
|
1941
|
+
? globalThis.String(object.storageConnectionId)
|
|
1942
|
+
: isSet(object.storage_connection_id)
|
|
1943
|
+
? globalThis.String(object.storage_connection_id)
|
|
1944
|
+
: "",
|
|
1945
|
+
sourceUri: isSet(object.sourceUri)
|
|
1946
|
+
? globalThis.String(object.sourceUri)
|
|
1947
|
+
: isSet(object.source_uri)
|
|
1948
|
+
? globalThis.String(object.source_uri)
|
|
1949
|
+
: "",
|
|
1950
|
+
externalRevision: isSet(object.externalRevision)
|
|
1951
|
+
? globalThis.String(object.externalRevision)
|
|
1952
|
+
: isSet(object.external_revision)
|
|
1953
|
+
? globalThis.String(object.external_revision)
|
|
1954
|
+
: "",
|
|
1955
|
+
sourceChecksum: isSet(object.sourceChecksum)
|
|
1956
|
+
? globalThis.String(object.sourceChecksum)
|
|
1957
|
+
: isSet(object.source_checksum)
|
|
1958
|
+
? globalThis.String(object.source_checksum)
|
|
1959
|
+
: "",
|
|
1960
|
+
sourceSizeBytes: isSet(object.sourceSizeBytes)
|
|
1961
|
+
? globalThis.Number(object.sourceSizeBytes)
|
|
1962
|
+
: isSet(object.source_size_bytes)
|
|
1963
|
+
? globalThis.Number(object.source_size_bytes)
|
|
1964
|
+
: 0,
|
|
1965
|
+
};
|
|
1966
|
+
},
|
|
1967
|
+
toJSON(message) {
|
|
1968
|
+
const obj = {};
|
|
1969
|
+
if (message.projectId !== "") {
|
|
1970
|
+
obj.projectId = message.projectId;
|
|
1971
|
+
}
|
|
1972
|
+
if (message.testScriptId !== "") {
|
|
1973
|
+
obj.testScriptId = message.testScriptId;
|
|
1974
|
+
}
|
|
1975
|
+
if (message.sourceCode !== "") {
|
|
1976
|
+
obj.sourceCode = message.sourceCode;
|
|
1977
|
+
}
|
|
1978
|
+
if (message.promptVersion !== "") {
|
|
1979
|
+
obj.promptVersion = message.promptVersion;
|
|
1980
|
+
}
|
|
1981
|
+
if (message.metadata !== undefined) {
|
|
1982
|
+
obj.metadata = message.metadata;
|
|
1983
|
+
}
|
|
1984
|
+
if (message.sourceLocationType !== 0) {
|
|
1985
|
+
obj.sourceLocationType = (0, script_pb_1.scriptSourceLocationTypeToJSON)(message.sourceLocationType);
|
|
1986
|
+
}
|
|
1987
|
+
if (message.storageConnectionId !== "") {
|
|
1988
|
+
obj.storageConnectionId = message.storageConnectionId;
|
|
1989
|
+
}
|
|
1990
|
+
if (message.sourceUri !== "") {
|
|
1991
|
+
obj.sourceUri = message.sourceUri;
|
|
1992
|
+
}
|
|
1993
|
+
if (message.externalRevision !== "") {
|
|
1994
|
+
obj.externalRevision = message.externalRevision;
|
|
1995
|
+
}
|
|
1996
|
+
if (message.sourceChecksum !== "") {
|
|
1997
|
+
obj.sourceChecksum = message.sourceChecksum;
|
|
1998
|
+
}
|
|
1999
|
+
if (message.sourceSizeBytes !== 0) {
|
|
2000
|
+
obj.sourceSizeBytes = Math.round(message.sourceSizeBytes);
|
|
2001
|
+
}
|
|
2002
|
+
return obj;
|
|
2003
|
+
},
|
|
2004
|
+
create(base) {
|
|
2005
|
+
return exports.CreateTestScriptVersionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2006
|
+
},
|
|
2007
|
+
fromPartial(object) {
|
|
2008
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2009
|
+
const message = createBaseCreateTestScriptVersionRequest();
|
|
2010
|
+
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
2011
|
+
message.testScriptId = (_b = object.testScriptId) !== null && _b !== void 0 ? _b : "";
|
|
2012
|
+
message.sourceCode = (_c = object.sourceCode) !== null && _c !== void 0 ? _c : "";
|
|
2013
|
+
message.promptVersion = (_d = object.promptVersion) !== null && _d !== void 0 ? _d : "";
|
|
2014
|
+
message.metadata = (_e = object.metadata) !== null && _e !== void 0 ? _e : undefined;
|
|
2015
|
+
message.sourceLocationType = (_f = object.sourceLocationType) !== null && _f !== void 0 ? _f : 0;
|
|
2016
|
+
message.storageConnectionId = (_g = object.storageConnectionId) !== null && _g !== void 0 ? _g : "";
|
|
2017
|
+
message.sourceUri = (_h = object.sourceUri) !== null && _h !== void 0 ? _h : "";
|
|
2018
|
+
message.externalRevision = (_j = object.externalRevision) !== null && _j !== void 0 ? _j : "";
|
|
2019
|
+
message.sourceChecksum = (_k = object.sourceChecksum) !== null && _k !== void 0 ? _k : "";
|
|
2020
|
+
message.sourceSizeBytes = (_l = object.sourceSizeBytes) !== null && _l !== void 0 ? _l : 0;
|
|
2021
|
+
return message;
|
|
2022
|
+
},
|
|
2023
|
+
};
|
|
2024
|
+
function createBaseCreateTestScriptVersionResponse() {
|
|
2025
|
+
return { testScriptVersion: undefined };
|
|
2026
|
+
}
|
|
2027
|
+
exports.CreateTestScriptVersionResponse = {
|
|
2028
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2029
|
+
if (message.testScriptVersion !== undefined) {
|
|
2030
|
+
script_pb_1.TestScriptVersion.encode(message.testScriptVersion, writer.uint32(10).fork()).join();
|
|
2031
|
+
}
|
|
2032
|
+
return writer;
|
|
2033
|
+
},
|
|
2034
|
+
decode(input, length) {
|
|
2035
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2036
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2037
|
+
const message = createBaseCreateTestScriptVersionResponse();
|
|
2038
|
+
while (reader.pos < end) {
|
|
2039
|
+
const tag = reader.uint32();
|
|
2040
|
+
switch (tag >>> 3) {
|
|
2041
|
+
case 1: {
|
|
2042
|
+
if (tag !== 10) {
|
|
2043
|
+
break;
|
|
2044
|
+
}
|
|
2045
|
+
message.testScriptVersion = script_pb_1.TestScriptVersion.decode(reader, reader.uint32());
|
|
2046
|
+
continue;
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2050
|
+
break;
|
|
2051
|
+
}
|
|
2052
|
+
reader.skip(tag & 7);
|
|
2053
|
+
}
|
|
2054
|
+
return message;
|
|
2055
|
+
},
|
|
2056
|
+
fromJSON(object) {
|
|
2057
|
+
return {
|
|
2058
|
+
testScriptVersion: isSet(object.testScriptVersion)
|
|
2059
|
+
? script_pb_1.TestScriptVersion.fromJSON(object.testScriptVersion)
|
|
2060
|
+
: isSet(object.test_script_version)
|
|
2061
|
+
? script_pb_1.TestScriptVersion.fromJSON(object.test_script_version)
|
|
2062
|
+
: undefined,
|
|
2063
|
+
};
|
|
2064
|
+
},
|
|
2065
|
+
toJSON(message) {
|
|
2066
|
+
const obj = {};
|
|
2067
|
+
if (message.testScriptVersion !== undefined) {
|
|
2068
|
+
obj.testScriptVersion = script_pb_1.TestScriptVersion.toJSON(message.testScriptVersion);
|
|
2069
|
+
}
|
|
2070
|
+
return obj;
|
|
2071
|
+
},
|
|
2072
|
+
create(base) {
|
|
2073
|
+
return exports.CreateTestScriptVersionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2074
|
+
},
|
|
2075
|
+
fromPartial(object) {
|
|
2076
|
+
const message = createBaseCreateTestScriptVersionResponse();
|
|
2077
|
+
message.testScriptVersion = (object.testScriptVersion !== undefined && object.testScriptVersion !== null)
|
|
2078
|
+
? script_pb_1.TestScriptVersion.fromPartial(object.testScriptVersion)
|
|
2079
|
+
: undefined;
|
|
2080
|
+
return message;
|
|
2081
|
+
},
|
|
2082
|
+
};
|
|
2083
|
+
function createBaseGetTestScriptVersionRequest() {
|
|
2084
|
+
return { projectId: "", testScriptId: "", testScriptVersionId: "" };
|
|
2085
|
+
}
|
|
2086
|
+
exports.GetTestScriptVersionRequest = {
|
|
2087
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2088
|
+
if (message.projectId !== "") {
|
|
2089
|
+
writer.uint32(10).string(message.projectId);
|
|
2090
|
+
}
|
|
2091
|
+
if (message.testScriptId !== "") {
|
|
2092
|
+
writer.uint32(18).string(message.testScriptId);
|
|
2093
|
+
}
|
|
2094
|
+
if (message.testScriptVersionId !== "") {
|
|
2095
|
+
writer.uint32(26).string(message.testScriptVersionId);
|
|
2096
|
+
}
|
|
2097
|
+
return writer;
|
|
2098
|
+
},
|
|
2099
|
+
decode(input, length) {
|
|
2100
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2101
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2102
|
+
const message = createBaseGetTestScriptVersionRequest();
|
|
2103
|
+
while (reader.pos < end) {
|
|
2104
|
+
const tag = reader.uint32();
|
|
2105
|
+
switch (tag >>> 3) {
|
|
2106
|
+
case 1: {
|
|
2107
|
+
if (tag !== 10) {
|
|
2108
|
+
break;
|
|
2109
|
+
}
|
|
2110
|
+
message.projectId = reader.string();
|
|
2111
|
+
continue;
|
|
2112
|
+
}
|
|
2113
|
+
case 2: {
|
|
2114
|
+
if (tag !== 18) {
|
|
2115
|
+
break;
|
|
2116
|
+
}
|
|
2117
|
+
message.testScriptId = reader.string();
|
|
2118
|
+
continue;
|
|
2119
|
+
}
|
|
2120
|
+
case 3: {
|
|
2121
|
+
if (tag !== 26) {
|
|
2122
|
+
break;
|
|
2123
|
+
}
|
|
2124
|
+
message.testScriptVersionId = reader.string();
|
|
2125
|
+
continue;
|
|
2126
|
+
}
|
|
2127
|
+
}
|
|
2128
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2129
|
+
break;
|
|
2130
|
+
}
|
|
2131
|
+
reader.skip(tag & 7);
|
|
2132
|
+
}
|
|
2133
|
+
return message;
|
|
2134
|
+
},
|
|
2135
|
+
fromJSON(object) {
|
|
2136
|
+
return {
|
|
2137
|
+
projectId: isSet(object.projectId)
|
|
2138
|
+
? globalThis.String(object.projectId)
|
|
2139
|
+
: isSet(object.project_id)
|
|
2140
|
+
? globalThis.String(object.project_id)
|
|
2141
|
+
: "",
|
|
2142
|
+
testScriptId: isSet(object.testScriptId)
|
|
2143
|
+
? globalThis.String(object.testScriptId)
|
|
2144
|
+
: isSet(object.test_script_id)
|
|
2145
|
+
? globalThis.String(object.test_script_id)
|
|
2146
|
+
: "",
|
|
2147
|
+
testScriptVersionId: isSet(object.testScriptVersionId)
|
|
2148
|
+
? globalThis.String(object.testScriptVersionId)
|
|
2149
|
+
: isSet(object.test_script_version_id)
|
|
2150
|
+
? globalThis.String(object.test_script_version_id)
|
|
2151
|
+
: "",
|
|
2152
|
+
};
|
|
2153
|
+
},
|
|
2154
|
+
toJSON(message) {
|
|
2155
|
+
const obj = {};
|
|
2156
|
+
if (message.projectId !== "") {
|
|
2157
|
+
obj.projectId = message.projectId;
|
|
2158
|
+
}
|
|
2159
|
+
if (message.testScriptId !== "") {
|
|
2160
|
+
obj.testScriptId = message.testScriptId;
|
|
2161
|
+
}
|
|
2162
|
+
if (message.testScriptVersionId !== "") {
|
|
2163
|
+
obj.testScriptVersionId = message.testScriptVersionId;
|
|
2164
|
+
}
|
|
2165
|
+
return obj;
|
|
2166
|
+
},
|
|
2167
|
+
create(base) {
|
|
2168
|
+
return exports.GetTestScriptVersionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2169
|
+
},
|
|
2170
|
+
fromPartial(object) {
|
|
2171
|
+
var _a, _b, _c;
|
|
2172
|
+
const message = createBaseGetTestScriptVersionRequest();
|
|
2173
|
+
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
2174
|
+
message.testScriptId = (_b = object.testScriptId) !== null && _b !== void 0 ? _b : "";
|
|
2175
|
+
message.testScriptVersionId = (_c = object.testScriptVersionId) !== null && _c !== void 0 ? _c : "";
|
|
2176
|
+
return message;
|
|
2177
|
+
},
|
|
2178
|
+
};
|
|
2179
|
+
function createBaseGetTestScriptVersionResponse() {
|
|
2180
|
+
return { testScriptVersion: undefined };
|
|
2181
|
+
}
|
|
2182
|
+
exports.GetTestScriptVersionResponse = {
|
|
2183
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2184
|
+
if (message.testScriptVersion !== undefined) {
|
|
2185
|
+
script_pb_1.TestScriptVersion.encode(message.testScriptVersion, writer.uint32(10).fork()).join();
|
|
2186
|
+
}
|
|
2187
|
+
return writer;
|
|
2188
|
+
},
|
|
2189
|
+
decode(input, length) {
|
|
2190
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2191
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2192
|
+
const message = createBaseGetTestScriptVersionResponse();
|
|
2193
|
+
while (reader.pos < end) {
|
|
2194
|
+
const tag = reader.uint32();
|
|
2195
|
+
switch (tag >>> 3) {
|
|
2196
|
+
case 1: {
|
|
2197
|
+
if (tag !== 10) {
|
|
2198
|
+
break;
|
|
2199
|
+
}
|
|
2200
|
+
message.testScriptVersion = script_pb_1.TestScriptVersion.decode(reader, reader.uint32());
|
|
2201
|
+
continue;
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2205
|
+
break;
|
|
2206
|
+
}
|
|
2207
|
+
reader.skip(tag & 7);
|
|
2208
|
+
}
|
|
2209
|
+
return message;
|
|
2210
|
+
},
|
|
2211
|
+
fromJSON(object) {
|
|
2212
|
+
return {
|
|
2213
|
+
testScriptVersion: isSet(object.testScriptVersion)
|
|
2214
|
+
? script_pb_1.TestScriptVersion.fromJSON(object.testScriptVersion)
|
|
2215
|
+
: isSet(object.test_script_version)
|
|
2216
|
+
? script_pb_1.TestScriptVersion.fromJSON(object.test_script_version)
|
|
2217
|
+
: undefined,
|
|
2218
|
+
};
|
|
2219
|
+
},
|
|
2220
|
+
toJSON(message) {
|
|
2221
|
+
const obj = {};
|
|
2222
|
+
if (message.testScriptVersion !== undefined) {
|
|
2223
|
+
obj.testScriptVersion = script_pb_1.TestScriptVersion.toJSON(message.testScriptVersion);
|
|
2224
|
+
}
|
|
2225
|
+
return obj;
|
|
2226
|
+
},
|
|
2227
|
+
create(base) {
|
|
2228
|
+
return exports.GetTestScriptVersionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2229
|
+
},
|
|
2230
|
+
fromPartial(object) {
|
|
2231
|
+
const message = createBaseGetTestScriptVersionResponse();
|
|
2232
|
+
message.testScriptVersion = (object.testScriptVersion !== undefined && object.testScriptVersion !== null)
|
|
2233
|
+
? script_pb_1.TestScriptVersion.fromPartial(object.testScriptVersion)
|
|
2234
|
+
: undefined;
|
|
2235
|
+
return message;
|
|
2236
|
+
},
|
|
2237
|
+
};
|
|
2238
|
+
function createBaseListTestScriptVersionsRequest() {
|
|
2239
|
+
return { projectId: "", testScriptId: "", pageSize: 0, pageToken: "" };
|
|
2240
|
+
}
|
|
2241
|
+
exports.ListTestScriptVersionsRequest = {
|
|
2242
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2243
|
+
if (message.projectId !== "") {
|
|
2244
|
+
writer.uint32(10).string(message.projectId);
|
|
2245
|
+
}
|
|
2246
|
+
if (message.testScriptId !== "") {
|
|
2247
|
+
writer.uint32(18).string(message.testScriptId);
|
|
2248
|
+
}
|
|
2249
|
+
if (message.pageSize !== 0) {
|
|
2250
|
+
writer.uint32(24).int32(message.pageSize);
|
|
2251
|
+
}
|
|
2252
|
+
if (message.pageToken !== "") {
|
|
2253
|
+
writer.uint32(34).string(message.pageToken);
|
|
2254
|
+
}
|
|
2255
|
+
return writer;
|
|
2256
|
+
},
|
|
2257
|
+
decode(input, length) {
|
|
2258
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2259
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2260
|
+
const message = createBaseListTestScriptVersionsRequest();
|
|
2261
|
+
while (reader.pos < end) {
|
|
2262
|
+
const tag = reader.uint32();
|
|
2263
|
+
switch (tag >>> 3) {
|
|
2264
|
+
case 1: {
|
|
2265
|
+
if (tag !== 10) {
|
|
2266
|
+
break;
|
|
2267
|
+
}
|
|
2268
|
+
message.projectId = reader.string();
|
|
2269
|
+
continue;
|
|
2270
|
+
}
|
|
2271
|
+
case 2: {
|
|
2272
|
+
if (tag !== 18) {
|
|
2273
|
+
break;
|
|
2274
|
+
}
|
|
2275
|
+
message.testScriptId = reader.string();
|
|
2276
|
+
continue;
|
|
2277
|
+
}
|
|
2278
|
+
case 3: {
|
|
2279
|
+
if (tag !== 24) {
|
|
2280
|
+
break;
|
|
2281
|
+
}
|
|
2282
|
+
message.pageSize = reader.int32();
|
|
2283
|
+
continue;
|
|
2284
|
+
}
|
|
2285
|
+
case 4: {
|
|
2286
|
+
if (tag !== 34) {
|
|
2287
|
+
break;
|
|
2288
|
+
}
|
|
2289
|
+
message.pageToken = reader.string();
|
|
2290
|
+
continue;
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2294
|
+
break;
|
|
2295
|
+
}
|
|
2296
|
+
reader.skip(tag & 7);
|
|
2297
|
+
}
|
|
2298
|
+
return message;
|
|
2299
|
+
},
|
|
2300
|
+
fromJSON(object) {
|
|
2301
|
+
return {
|
|
2302
|
+
projectId: isSet(object.projectId)
|
|
2303
|
+
? globalThis.String(object.projectId)
|
|
2304
|
+
: isSet(object.project_id)
|
|
2305
|
+
? globalThis.String(object.project_id)
|
|
2306
|
+
: "",
|
|
2307
|
+
testScriptId: isSet(object.testScriptId)
|
|
2308
|
+
? globalThis.String(object.testScriptId)
|
|
2309
|
+
: isSet(object.test_script_id)
|
|
2310
|
+
? globalThis.String(object.test_script_id)
|
|
2311
|
+
: "",
|
|
2312
|
+
pageSize: isSet(object.pageSize)
|
|
2313
|
+
? globalThis.Number(object.pageSize)
|
|
2314
|
+
: isSet(object.page_size)
|
|
2315
|
+
? globalThis.Number(object.page_size)
|
|
2316
|
+
: 0,
|
|
2317
|
+
pageToken: isSet(object.pageToken)
|
|
2318
|
+
? globalThis.String(object.pageToken)
|
|
2319
|
+
: isSet(object.page_token)
|
|
2320
|
+
? globalThis.String(object.page_token)
|
|
2321
|
+
: "",
|
|
2322
|
+
};
|
|
2323
|
+
},
|
|
2324
|
+
toJSON(message) {
|
|
2325
|
+
const obj = {};
|
|
2326
|
+
if (message.projectId !== "") {
|
|
2327
|
+
obj.projectId = message.projectId;
|
|
2328
|
+
}
|
|
2329
|
+
if (message.testScriptId !== "") {
|
|
2330
|
+
obj.testScriptId = message.testScriptId;
|
|
2331
|
+
}
|
|
2332
|
+
if (message.pageSize !== 0) {
|
|
2333
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
2334
|
+
}
|
|
2335
|
+
if (message.pageToken !== "") {
|
|
2336
|
+
obj.pageToken = message.pageToken;
|
|
2337
|
+
}
|
|
2338
|
+
return obj;
|
|
2339
|
+
},
|
|
2340
|
+
create(base) {
|
|
2341
|
+
return exports.ListTestScriptVersionsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2342
|
+
},
|
|
2343
|
+
fromPartial(object) {
|
|
2344
|
+
var _a, _b, _c, _d;
|
|
2345
|
+
const message = createBaseListTestScriptVersionsRequest();
|
|
2346
|
+
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
2347
|
+
message.testScriptId = (_b = object.testScriptId) !== null && _b !== void 0 ? _b : "";
|
|
2348
|
+
message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
|
|
2349
|
+
message.pageToken = (_d = object.pageToken) !== null && _d !== void 0 ? _d : "";
|
|
2350
|
+
return message;
|
|
2351
|
+
},
|
|
2352
|
+
};
|
|
2353
|
+
function createBaseListTestScriptVersionsResponse() {
|
|
2354
|
+
return { testScriptVersions: [], nextPageToken: "" };
|
|
2355
|
+
}
|
|
2356
|
+
exports.ListTestScriptVersionsResponse = {
|
|
2357
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2358
|
+
for (const v of message.testScriptVersions) {
|
|
2359
|
+
script_pb_1.TestScriptVersion.encode(v, writer.uint32(10).fork()).join();
|
|
2360
|
+
}
|
|
2361
|
+
if (message.nextPageToken !== "") {
|
|
2362
|
+
writer.uint32(18).string(message.nextPageToken);
|
|
2363
|
+
}
|
|
2364
|
+
return writer;
|
|
2365
|
+
},
|
|
2366
|
+
decode(input, length) {
|
|
2367
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2368
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2369
|
+
const message = createBaseListTestScriptVersionsResponse();
|
|
2370
|
+
while (reader.pos < end) {
|
|
2371
|
+
const tag = reader.uint32();
|
|
2372
|
+
switch (tag >>> 3) {
|
|
2373
|
+
case 1: {
|
|
2374
|
+
if (tag !== 10) {
|
|
2375
|
+
break;
|
|
2376
|
+
}
|
|
2377
|
+
message.testScriptVersions.push(script_pb_1.TestScriptVersion.decode(reader, reader.uint32()));
|
|
2378
|
+
continue;
|
|
2379
|
+
}
|
|
2380
|
+
case 2: {
|
|
2381
|
+
if (tag !== 18) {
|
|
2382
|
+
break;
|
|
2383
|
+
}
|
|
2384
|
+
message.nextPageToken = reader.string();
|
|
2385
|
+
continue;
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2389
|
+
break;
|
|
2390
|
+
}
|
|
2391
|
+
reader.skip(tag & 7);
|
|
2392
|
+
}
|
|
2393
|
+
return message;
|
|
2394
|
+
},
|
|
2395
|
+
fromJSON(object) {
|
|
2396
|
+
return {
|
|
2397
|
+
testScriptVersions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.testScriptVersions)
|
|
2398
|
+
? object.testScriptVersions.map((e) => script_pb_1.TestScriptVersion.fromJSON(e))
|
|
2399
|
+
: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.test_script_versions)
|
|
2400
|
+
? object.test_script_versions.map((e) => script_pb_1.TestScriptVersion.fromJSON(e))
|
|
2401
|
+
: [],
|
|
2402
|
+
nextPageToken: isSet(object.nextPageToken)
|
|
2403
|
+
? globalThis.String(object.nextPageToken)
|
|
2404
|
+
: isSet(object.next_page_token)
|
|
2405
|
+
? globalThis.String(object.next_page_token)
|
|
2406
|
+
: "",
|
|
2407
|
+
};
|
|
2408
|
+
},
|
|
2409
|
+
toJSON(message) {
|
|
2410
|
+
var _a;
|
|
2411
|
+
const obj = {};
|
|
2412
|
+
if ((_a = message.testScriptVersions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2413
|
+
obj.testScriptVersions = message.testScriptVersions.map((e) => script_pb_1.TestScriptVersion.toJSON(e));
|
|
2414
|
+
}
|
|
2415
|
+
if (message.nextPageToken !== "") {
|
|
2416
|
+
obj.nextPageToken = message.nextPageToken;
|
|
2417
|
+
}
|
|
2418
|
+
return obj;
|
|
2419
|
+
},
|
|
2420
|
+
create(base) {
|
|
2421
|
+
return exports.ListTestScriptVersionsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2422
|
+
},
|
|
2423
|
+
fromPartial(object) {
|
|
2424
|
+
var _a;
|
|
2425
|
+
var _b;
|
|
2426
|
+
const message = createBaseListTestScriptVersionsResponse();
|
|
2427
|
+
message.testScriptVersions = ((_a = object.testScriptVersions) === null || _a === void 0 ? void 0 : _a.map((e) => script_pb_1.TestScriptVersion.fromPartial(e))) || [];
|
|
2428
|
+
message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
|
|
2429
|
+
return message;
|
|
2430
|
+
},
|
|
2431
|
+
};
|
|
2432
|
+
function createBaseSetCurrentTestScriptVersionRequest() {
|
|
2433
|
+
return { projectId: "", testScriptId: "", testScriptVersionId: "" };
|
|
2434
|
+
}
|
|
2435
|
+
exports.SetCurrentTestScriptVersionRequest = {
|
|
2436
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2437
|
+
if (message.projectId !== "") {
|
|
2438
|
+
writer.uint32(10).string(message.projectId);
|
|
2439
|
+
}
|
|
2440
|
+
if (message.testScriptId !== "") {
|
|
2441
|
+
writer.uint32(18).string(message.testScriptId);
|
|
2442
|
+
}
|
|
2443
|
+
if (message.testScriptVersionId !== "") {
|
|
2444
|
+
writer.uint32(26).string(message.testScriptVersionId);
|
|
2445
|
+
}
|
|
2446
|
+
return writer;
|
|
2447
|
+
},
|
|
2448
|
+
decode(input, length) {
|
|
2449
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2450
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2451
|
+
const message = createBaseSetCurrentTestScriptVersionRequest();
|
|
2452
|
+
while (reader.pos < end) {
|
|
2453
|
+
const tag = reader.uint32();
|
|
2454
|
+
switch (tag >>> 3) {
|
|
2455
|
+
case 1: {
|
|
2456
|
+
if (tag !== 10) {
|
|
2457
|
+
break;
|
|
2458
|
+
}
|
|
2459
|
+
message.projectId = reader.string();
|
|
2460
|
+
continue;
|
|
2461
|
+
}
|
|
2462
|
+
case 2: {
|
|
2463
|
+
if (tag !== 18) {
|
|
2464
|
+
break;
|
|
2465
|
+
}
|
|
2466
|
+
message.testScriptId = reader.string();
|
|
2467
|
+
continue;
|
|
2468
|
+
}
|
|
2469
|
+
case 3: {
|
|
2470
|
+
if (tag !== 26) {
|
|
2471
|
+
break;
|
|
2472
|
+
}
|
|
2473
|
+
message.testScriptVersionId = reader.string();
|
|
2474
|
+
continue;
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2478
|
+
break;
|
|
1979
2479
|
}
|
|
1980
2480
|
reader.skip(tag & 7);
|
|
1981
2481
|
}
|
|
@@ -1988,11 +2488,6 @@ exports.SetCurrentTestScriptVersionRequest = {
|
|
|
1988
2488
|
: isSet(object.project_id)
|
|
1989
2489
|
? globalThis.String(object.project_id)
|
|
1990
2490
|
: "",
|
|
1991
|
-
workflowId: isSet(object.workflowId)
|
|
1992
|
-
? globalThis.String(object.workflowId)
|
|
1993
|
-
: isSet(object.workflow_id)
|
|
1994
|
-
? globalThis.String(object.workflow_id)
|
|
1995
|
-
: "",
|
|
1996
2491
|
testScriptId: isSet(object.testScriptId)
|
|
1997
2492
|
? globalThis.String(object.testScriptId)
|
|
1998
2493
|
: isSet(object.test_script_id)
|
|
@@ -2010,9 +2505,6 @@ exports.SetCurrentTestScriptVersionRequest = {
|
|
|
2010
2505
|
if (message.projectId !== "") {
|
|
2011
2506
|
obj.projectId = message.projectId;
|
|
2012
2507
|
}
|
|
2013
|
-
if (message.workflowId !== "") {
|
|
2014
|
-
obj.workflowId = message.workflowId;
|
|
2015
|
-
}
|
|
2016
2508
|
if (message.testScriptId !== "") {
|
|
2017
2509
|
obj.testScriptId = message.testScriptId;
|
|
2018
2510
|
}
|
|
@@ -2025,12 +2517,11 @@ exports.SetCurrentTestScriptVersionRequest = {
|
|
|
2025
2517
|
return exports.SetCurrentTestScriptVersionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2026
2518
|
},
|
|
2027
2519
|
fromPartial(object) {
|
|
2028
|
-
var _a, _b, _c
|
|
2520
|
+
var _a, _b, _c;
|
|
2029
2521
|
const message = createBaseSetCurrentTestScriptVersionRequest();
|
|
2030
2522
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
2031
|
-
message.
|
|
2032
|
-
message.
|
|
2033
|
-
message.testScriptVersionId = (_d = object.testScriptVersionId) !== null && _d !== void 0 ? _d : "";
|
|
2523
|
+
message.testScriptId = (_b = object.testScriptId) !== null && _b !== void 0 ? _b : "";
|
|
2524
|
+
message.testScriptVersionId = (_c = object.testScriptVersionId) !== null && _c !== void 0 ? _c : "";
|
|
2034
2525
|
return message;
|
|
2035
2526
|
},
|
|
2036
2527
|
};
|
|
@@ -2096,7 +2587,6 @@ exports.SetCurrentTestScriptVersionResponse = {
|
|
|
2096
2587
|
function createBaseUpsertScriptBindingRequest() {
|
|
2097
2588
|
return {
|
|
2098
2589
|
projectId: "",
|
|
2099
|
-
workflowId: "",
|
|
2100
2590
|
testScriptId: "",
|
|
2101
2591
|
scriptBindingId: "",
|
|
2102
2592
|
bindingKey: "",
|
|
@@ -2113,35 +2603,32 @@ exports.UpsertScriptBindingRequest = {
|
|
|
2113
2603
|
if (message.projectId !== "") {
|
|
2114
2604
|
writer.uint32(10).string(message.projectId);
|
|
2115
2605
|
}
|
|
2116
|
-
if (message.workflowId !== "") {
|
|
2117
|
-
writer.uint32(18).string(message.workflowId);
|
|
2118
|
-
}
|
|
2119
2606
|
if (message.testScriptId !== "") {
|
|
2120
|
-
writer.uint32(
|
|
2607
|
+
writer.uint32(18).string(message.testScriptId);
|
|
2121
2608
|
}
|
|
2122
2609
|
if (message.scriptBindingId !== "") {
|
|
2123
|
-
writer.uint32(
|
|
2610
|
+
writer.uint32(26).string(message.scriptBindingId);
|
|
2124
2611
|
}
|
|
2125
2612
|
if (message.bindingKey !== "") {
|
|
2126
|
-
writer.uint32(
|
|
2613
|
+
writer.uint32(34).string(message.bindingKey);
|
|
2127
2614
|
}
|
|
2128
2615
|
if (message.bindingType !== "") {
|
|
2129
|
-
writer.uint32(
|
|
2616
|
+
writer.uint32(42).string(message.bindingType);
|
|
2130
2617
|
}
|
|
2131
2618
|
if (message.datasetId !== "") {
|
|
2132
|
-
writer.uint32(
|
|
2619
|
+
writer.uint32(50).string(message.datasetId);
|
|
2133
2620
|
}
|
|
2134
2621
|
if (message.columnName !== "") {
|
|
2135
|
-
writer.uint32(
|
|
2622
|
+
writer.uint32(58).string(message.columnName);
|
|
2136
2623
|
}
|
|
2137
2624
|
if (message.defaultValue !== "") {
|
|
2138
|
-
writer.uint32(
|
|
2625
|
+
writer.uint32(66).string(message.defaultValue);
|
|
2139
2626
|
}
|
|
2140
2627
|
if (message.isRequired !== false) {
|
|
2141
|
-
writer.uint32(
|
|
2628
|
+
writer.uint32(72).bool(message.isRequired);
|
|
2142
2629
|
}
|
|
2143
2630
|
if (message.metadata !== undefined) {
|
|
2144
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(
|
|
2631
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(82).fork()).join();
|
|
2145
2632
|
}
|
|
2146
2633
|
return writer;
|
|
2147
2634
|
},
|
|
@@ -2163,67 +2650,60 @@ exports.UpsertScriptBindingRequest = {
|
|
|
2163
2650
|
if (tag !== 18) {
|
|
2164
2651
|
break;
|
|
2165
2652
|
}
|
|
2166
|
-
message.
|
|
2653
|
+
message.testScriptId = reader.string();
|
|
2167
2654
|
continue;
|
|
2168
2655
|
}
|
|
2169
2656
|
case 3: {
|
|
2170
2657
|
if (tag !== 26) {
|
|
2171
2658
|
break;
|
|
2172
2659
|
}
|
|
2173
|
-
message.
|
|
2660
|
+
message.scriptBindingId = reader.string();
|
|
2174
2661
|
continue;
|
|
2175
2662
|
}
|
|
2176
2663
|
case 4: {
|
|
2177
2664
|
if (tag !== 34) {
|
|
2178
2665
|
break;
|
|
2179
2666
|
}
|
|
2180
|
-
message.
|
|
2667
|
+
message.bindingKey = reader.string();
|
|
2181
2668
|
continue;
|
|
2182
2669
|
}
|
|
2183
2670
|
case 5: {
|
|
2184
2671
|
if (tag !== 42) {
|
|
2185
2672
|
break;
|
|
2186
2673
|
}
|
|
2187
|
-
message.
|
|
2674
|
+
message.bindingType = reader.string();
|
|
2188
2675
|
continue;
|
|
2189
2676
|
}
|
|
2190
2677
|
case 6: {
|
|
2191
2678
|
if (tag !== 50) {
|
|
2192
2679
|
break;
|
|
2193
2680
|
}
|
|
2194
|
-
message.
|
|
2681
|
+
message.datasetId = reader.string();
|
|
2195
2682
|
continue;
|
|
2196
2683
|
}
|
|
2197
2684
|
case 7: {
|
|
2198
2685
|
if (tag !== 58) {
|
|
2199
2686
|
break;
|
|
2200
2687
|
}
|
|
2201
|
-
message.
|
|
2688
|
+
message.columnName = reader.string();
|
|
2202
2689
|
continue;
|
|
2203
2690
|
}
|
|
2204
2691
|
case 8: {
|
|
2205
2692
|
if (tag !== 66) {
|
|
2206
2693
|
break;
|
|
2207
2694
|
}
|
|
2208
|
-
message.columnName = reader.string();
|
|
2209
|
-
continue;
|
|
2210
|
-
}
|
|
2211
|
-
case 9: {
|
|
2212
|
-
if (tag !== 74) {
|
|
2213
|
-
break;
|
|
2214
|
-
}
|
|
2215
2695
|
message.defaultValue = reader.string();
|
|
2216
2696
|
continue;
|
|
2217
2697
|
}
|
|
2218
|
-
case
|
|
2219
|
-
if (tag !==
|
|
2698
|
+
case 9: {
|
|
2699
|
+
if (tag !== 72) {
|
|
2220
2700
|
break;
|
|
2221
2701
|
}
|
|
2222
2702
|
message.isRequired = reader.bool();
|
|
2223
2703
|
continue;
|
|
2224
2704
|
}
|
|
2225
|
-
case
|
|
2226
|
-
if (tag !==
|
|
2705
|
+
case 10: {
|
|
2706
|
+
if (tag !== 82) {
|
|
2227
2707
|
break;
|
|
2228
2708
|
}
|
|
2229
2709
|
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
@@ -2244,11 +2724,6 @@ exports.UpsertScriptBindingRequest = {
|
|
|
2244
2724
|
: isSet(object.project_id)
|
|
2245
2725
|
? globalThis.String(object.project_id)
|
|
2246
2726
|
: "",
|
|
2247
|
-
workflowId: isSet(object.workflowId)
|
|
2248
|
-
? globalThis.String(object.workflowId)
|
|
2249
|
-
: isSet(object.workflow_id)
|
|
2250
|
-
? globalThis.String(object.workflow_id)
|
|
2251
|
-
: "",
|
|
2252
2727
|
testScriptId: isSet(object.testScriptId)
|
|
2253
2728
|
? globalThis.String(object.testScriptId)
|
|
2254
2729
|
: isSet(object.test_script_id)
|
|
@@ -2297,9 +2772,6 @@ exports.UpsertScriptBindingRequest = {
|
|
|
2297
2772
|
if (message.projectId !== "") {
|
|
2298
2773
|
obj.projectId = message.projectId;
|
|
2299
2774
|
}
|
|
2300
|
-
if (message.workflowId !== "") {
|
|
2301
|
-
obj.workflowId = message.workflowId;
|
|
2302
|
-
}
|
|
2303
2775
|
if (message.testScriptId !== "") {
|
|
2304
2776
|
obj.testScriptId = message.testScriptId;
|
|
2305
2777
|
}
|
|
@@ -2333,19 +2805,18 @@ exports.UpsertScriptBindingRequest = {
|
|
|
2333
2805
|
return exports.UpsertScriptBindingRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2334
2806
|
},
|
|
2335
2807
|
fromPartial(object) {
|
|
2336
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
2808
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2337
2809
|
const message = createBaseUpsertScriptBindingRequest();
|
|
2338
2810
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
2339
|
-
message.
|
|
2340
|
-
message.
|
|
2341
|
-
message.
|
|
2342
|
-
message.
|
|
2343
|
-
message.
|
|
2344
|
-
message.
|
|
2345
|
-
message.
|
|
2346
|
-
message.
|
|
2347
|
-
message.
|
|
2348
|
-
message.metadata = (_l = object.metadata) !== null && _l !== void 0 ? _l : undefined;
|
|
2811
|
+
message.testScriptId = (_b = object.testScriptId) !== null && _b !== void 0 ? _b : "";
|
|
2812
|
+
message.scriptBindingId = (_c = object.scriptBindingId) !== null && _c !== void 0 ? _c : "";
|
|
2813
|
+
message.bindingKey = (_d = object.bindingKey) !== null && _d !== void 0 ? _d : "";
|
|
2814
|
+
message.bindingType = (_e = object.bindingType) !== null && _e !== void 0 ? _e : "";
|
|
2815
|
+
message.datasetId = (_f = object.datasetId) !== null && _f !== void 0 ? _f : "";
|
|
2816
|
+
message.columnName = (_g = object.columnName) !== null && _g !== void 0 ? _g : "";
|
|
2817
|
+
message.defaultValue = (_h = object.defaultValue) !== null && _h !== void 0 ? _h : "";
|
|
2818
|
+
message.isRequired = (_j = object.isRequired) !== null && _j !== void 0 ? _j : false;
|
|
2819
|
+
message.metadata = (_k = object.metadata) !== null && _k !== void 0 ? _k : undefined;
|
|
2349
2820
|
return message;
|
|
2350
2821
|
},
|
|
2351
2822
|
};
|
|
@@ -2409,18 +2880,15 @@ exports.UpsertScriptBindingResponse = {
|
|
|
2409
2880
|
},
|
|
2410
2881
|
};
|
|
2411
2882
|
function createBaseListScriptBindingsRequest() {
|
|
2412
|
-
return { projectId: "",
|
|
2883
|
+
return { projectId: "", testScriptId: "" };
|
|
2413
2884
|
}
|
|
2414
2885
|
exports.ListScriptBindingsRequest = {
|
|
2415
2886
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2416
2887
|
if (message.projectId !== "") {
|
|
2417
2888
|
writer.uint32(10).string(message.projectId);
|
|
2418
2889
|
}
|
|
2419
|
-
if (message.workflowId !== "") {
|
|
2420
|
-
writer.uint32(18).string(message.workflowId);
|
|
2421
|
-
}
|
|
2422
2890
|
if (message.testScriptId !== "") {
|
|
2423
|
-
writer.uint32(
|
|
2891
|
+
writer.uint32(18).string(message.testScriptId);
|
|
2424
2892
|
}
|
|
2425
2893
|
return writer;
|
|
2426
2894
|
},
|
|
@@ -2442,13 +2910,6 @@ exports.ListScriptBindingsRequest = {
|
|
|
2442
2910
|
if (tag !== 18) {
|
|
2443
2911
|
break;
|
|
2444
2912
|
}
|
|
2445
|
-
message.workflowId = reader.string();
|
|
2446
|
-
continue;
|
|
2447
|
-
}
|
|
2448
|
-
case 3: {
|
|
2449
|
-
if (tag !== 26) {
|
|
2450
|
-
break;
|
|
2451
|
-
}
|
|
2452
2913
|
message.testScriptId = reader.string();
|
|
2453
2914
|
continue;
|
|
2454
2915
|
}
|
|
@@ -2467,11 +2928,6 @@ exports.ListScriptBindingsRequest = {
|
|
|
2467
2928
|
: isSet(object.project_id)
|
|
2468
2929
|
? globalThis.String(object.project_id)
|
|
2469
2930
|
: "",
|
|
2470
|
-
workflowId: isSet(object.workflowId)
|
|
2471
|
-
? globalThis.String(object.workflowId)
|
|
2472
|
-
: isSet(object.workflow_id)
|
|
2473
|
-
? globalThis.String(object.workflow_id)
|
|
2474
|
-
: "",
|
|
2475
2931
|
testScriptId: isSet(object.testScriptId)
|
|
2476
2932
|
? globalThis.String(object.testScriptId)
|
|
2477
2933
|
: isSet(object.test_script_id)
|
|
@@ -2484,9 +2940,6 @@ exports.ListScriptBindingsRequest = {
|
|
|
2484
2940
|
if (message.projectId !== "") {
|
|
2485
2941
|
obj.projectId = message.projectId;
|
|
2486
2942
|
}
|
|
2487
|
-
if (message.workflowId !== "") {
|
|
2488
|
-
obj.workflowId = message.workflowId;
|
|
2489
|
-
}
|
|
2490
2943
|
if (message.testScriptId !== "") {
|
|
2491
2944
|
obj.testScriptId = message.testScriptId;
|
|
2492
2945
|
}
|
|
@@ -2496,11 +2949,10 @@ exports.ListScriptBindingsRequest = {
|
|
|
2496
2949
|
return exports.ListScriptBindingsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2497
2950
|
},
|
|
2498
2951
|
fromPartial(object) {
|
|
2499
|
-
var _a, _b
|
|
2952
|
+
var _a, _b;
|
|
2500
2953
|
const message = createBaseListScriptBindingsRequest();
|
|
2501
2954
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
2502
|
-
message.
|
|
2503
|
-
message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
|
|
2955
|
+
message.testScriptId = (_b = object.testScriptId) !== null && _b !== void 0 ? _b : "";
|
|
2504
2956
|
return message;
|
|
2505
2957
|
},
|
|
2506
2958
|
};
|
|
@@ -2564,21 +3016,18 @@ exports.ListScriptBindingsResponse = {
|
|
|
2564
3016
|
},
|
|
2565
3017
|
};
|
|
2566
3018
|
function createBaseDeleteScriptBindingRequest() {
|
|
2567
|
-
return { projectId: "",
|
|
3019
|
+
return { projectId: "", testScriptId: "", scriptBindingId: "" };
|
|
2568
3020
|
}
|
|
2569
3021
|
exports.DeleteScriptBindingRequest = {
|
|
2570
3022
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2571
3023
|
if (message.projectId !== "") {
|
|
2572
3024
|
writer.uint32(10).string(message.projectId);
|
|
2573
3025
|
}
|
|
2574
|
-
if (message.workflowId !== "") {
|
|
2575
|
-
writer.uint32(18).string(message.workflowId);
|
|
2576
|
-
}
|
|
2577
3026
|
if (message.testScriptId !== "") {
|
|
2578
|
-
writer.uint32(
|
|
3027
|
+
writer.uint32(18).string(message.testScriptId);
|
|
2579
3028
|
}
|
|
2580
3029
|
if (message.scriptBindingId !== "") {
|
|
2581
|
-
writer.uint32(
|
|
3030
|
+
writer.uint32(26).string(message.scriptBindingId);
|
|
2582
3031
|
}
|
|
2583
3032
|
return writer;
|
|
2584
3033
|
},
|
|
@@ -2600,20 +3049,13 @@ exports.DeleteScriptBindingRequest = {
|
|
|
2600
3049
|
if (tag !== 18) {
|
|
2601
3050
|
break;
|
|
2602
3051
|
}
|
|
2603
|
-
message.
|
|
3052
|
+
message.testScriptId = reader.string();
|
|
2604
3053
|
continue;
|
|
2605
3054
|
}
|
|
2606
3055
|
case 3: {
|
|
2607
3056
|
if (tag !== 26) {
|
|
2608
3057
|
break;
|
|
2609
3058
|
}
|
|
2610
|
-
message.testScriptId = reader.string();
|
|
2611
|
-
continue;
|
|
2612
|
-
}
|
|
2613
|
-
case 4: {
|
|
2614
|
-
if (tag !== 34) {
|
|
2615
|
-
break;
|
|
2616
|
-
}
|
|
2617
3059
|
message.scriptBindingId = reader.string();
|
|
2618
3060
|
continue;
|
|
2619
3061
|
}
|
|
@@ -2632,11 +3074,6 @@ exports.DeleteScriptBindingRequest = {
|
|
|
2632
3074
|
: isSet(object.project_id)
|
|
2633
3075
|
? globalThis.String(object.project_id)
|
|
2634
3076
|
: "",
|
|
2635
|
-
workflowId: isSet(object.workflowId)
|
|
2636
|
-
? globalThis.String(object.workflowId)
|
|
2637
|
-
: isSet(object.workflow_id)
|
|
2638
|
-
? globalThis.String(object.workflow_id)
|
|
2639
|
-
: "",
|
|
2640
3077
|
testScriptId: isSet(object.testScriptId)
|
|
2641
3078
|
? globalThis.String(object.testScriptId)
|
|
2642
3079
|
: isSet(object.test_script_id)
|
|
@@ -2654,9 +3091,6 @@ exports.DeleteScriptBindingRequest = {
|
|
|
2654
3091
|
if (message.projectId !== "") {
|
|
2655
3092
|
obj.projectId = message.projectId;
|
|
2656
3093
|
}
|
|
2657
|
-
if (message.workflowId !== "") {
|
|
2658
|
-
obj.workflowId = message.workflowId;
|
|
2659
|
-
}
|
|
2660
3094
|
if (message.testScriptId !== "") {
|
|
2661
3095
|
obj.testScriptId = message.testScriptId;
|
|
2662
3096
|
}
|
|
@@ -2669,12 +3103,11 @@ exports.DeleteScriptBindingRequest = {
|
|
|
2669
3103
|
return exports.DeleteScriptBindingRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2670
3104
|
},
|
|
2671
3105
|
fromPartial(object) {
|
|
2672
|
-
var _a, _b, _c
|
|
3106
|
+
var _a, _b, _c;
|
|
2673
3107
|
const message = createBaseDeleteScriptBindingRequest();
|
|
2674
3108
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
2675
|
-
message.
|
|
2676
|
-
message.
|
|
2677
|
-
message.scriptBindingId = (_d = object.scriptBindingId) !== null && _d !== void 0 ? _d : "";
|
|
3109
|
+
message.testScriptId = (_b = object.testScriptId) !== null && _b !== void 0 ? _b : "";
|
|
3110
|
+
message.scriptBindingId = (_c = object.scriptBindingId) !== null && _c !== void 0 ? _c : "";
|
|
2678
3111
|
return message;
|
|
2679
3112
|
},
|
|
2680
3113
|
};
|
|
@@ -2716,21 +3149,21 @@ exports.DeleteScriptBindingResponse = {
|
|
|
2716
3149
|
},
|
|
2717
3150
|
};
|
|
2718
3151
|
function createBaseGenerateTestScriptsRequest() {
|
|
2719
|
-
return { projectId: "",
|
|
3152
|
+
return { projectId: "", testCaseIds: [], options: undefined, targetWorkflowId: "" };
|
|
2720
3153
|
}
|
|
2721
3154
|
exports.GenerateTestScriptsRequest = {
|
|
2722
3155
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2723
3156
|
if (message.projectId !== "") {
|
|
2724
3157
|
writer.uint32(10).string(message.projectId);
|
|
2725
3158
|
}
|
|
2726
|
-
if (message.workflowId !== "") {
|
|
2727
|
-
writer.uint32(18).string(message.workflowId);
|
|
2728
|
-
}
|
|
2729
3159
|
for (const v of message.testCaseIds) {
|
|
2730
|
-
writer.uint32(
|
|
3160
|
+
writer.uint32(18).string(v);
|
|
2731
3161
|
}
|
|
2732
3162
|
if (message.options !== undefined) {
|
|
2733
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.options), writer.uint32(
|
|
3163
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.options), writer.uint32(26).fork()).join();
|
|
3164
|
+
}
|
|
3165
|
+
if (message.targetWorkflowId !== "") {
|
|
3166
|
+
writer.uint32(34).string(message.targetWorkflowId);
|
|
2734
3167
|
}
|
|
2735
3168
|
return writer;
|
|
2736
3169
|
},
|
|
@@ -2752,21 +3185,21 @@ exports.GenerateTestScriptsRequest = {
|
|
|
2752
3185
|
if (tag !== 18) {
|
|
2753
3186
|
break;
|
|
2754
3187
|
}
|
|
2755
|
-
message.
|
|
3188
|
+
message.testCaseIds.push(reader.string());
|
|
2756
3189
|
continue;
|
|
2757
3190
|
}
|
|
2758
3191
|
case 3: {
|
|
2759
3192
|
if (tag !== 26) {
|
|
2760
3193
|
break;
|
|
2761
3194
|
}
|
|
2762
|
-
message.
|
|
3195
|
+
message.options = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
2763
3196
|
continue;
|
|
2764
3197
|
}
|
|
2765
3198
|
case 4: {
|
|
2766
3199
|
if (tag !== 34) {
|
|
2767
3200
|
break;
|
|
2768
3201
|
}
|
|
2769
|
-
message.
|
|
3202
|
+
message.targetWorkflowId = reader.string();
|
|
2770
3203
|
continue;
|
|
2771
3204
|
}
|
|
2772
3205
|
}
|
|
@@ -2784,17 +3217,17 @@ exports.GenerateTestScriptsRequest = {
|
|
|
2784
3217
|
: isSet(object.project_id)
|
|
2785
3218
|
? globalThis.String(object.project_id)
|
|
2786
3219
|
: "",
|
|
2787
|
-
workflowId: isSet(object.workflowId)
|
|
2788
|
-
? globalThis.String(object.workflowId)
|
|
2789
|
-
: isSet(object.workflow_id)
|
|
2790
|
-
? globalThis.String(object.workflow_id)
|
|
2791
|
-
: "",
|
|
2792
3220
|
testCaseIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.testCaseIds)
|
|
2793
3221
|
? object.testCaseIds.map((e) => globalThis.String(e))
|
|
2794
3222
|
: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.test_case_ids)
|
|
2795
3223
|
? object.test_case_ids.map((e) => globalThis.String(e))
|
|
2796
3224
|
: [],
|
|
2797
3225
|
options: isObject(object.options) ? object.options : undefined,
|
|
3226
|
+
targetWorkflowId: isSet(object.targetWorkflowId)
|
|
3227
|
+
? globalThis.String(object.targetWorkflowId)
|
|
3228
|
+
: isSet(object.target_workflow_id)
|
|
3229
|
+
? globalThis.String(object.target_workflow_id)
|
|
3230
|
+
: "",
|
|
2798
3231
|
};
|
|
2799
3232
|
},
|
|
2800
3233
|
toJSON(message) {
|
|
@@ -2803,15 +3236,15 @@ exports.GenerateTestScriptsRequest = {
|
|
|
2803
3236
|
if (message.projectId !== "") {
|
|
2804
3237
|
obj.projectId = message.projectId;
|
|
2805
3238
|
}
|
|
2806
|
-
if (message.workflowId !== "") {
|
|
2807
|
-
obj.workflowId = message.workflowId;
|
|
2808
|
-
}
|
|
2809
3239
|
if ((_a = message.testCaseIds) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2810
3240
|
obj.testCaseIds = message.testCaseIds;
|
|
2811
3241
|
}
|
|
2812
3242
|
if (message.options !== undefined) {
|
|
2813
3243
|
obj.options = message.options;
|
|
2814
3244
|
}
|
|
3245
|
+
if (message.targetWorkflowId !== "") {
|
|
3246
|
+
obj.targetWorkflowId = message.targetWorkflowId;
|
|
3247
|
+
}
|
|
2815
3248
|
return obj;
|
|
2816
3249
|
},
|
|
2817
3250
|
create(base) {
|
|
@@ -2822,9 +3255,9 @@ exports.GenerateTestScriptsRequest = {
|
|
|
2822
3255
|
var _b, _c, _d;
|
|
2823
3256
|
const message = createBaseGenerateTestScriptsRequest();
|
|
2824
3257
|
message.projectId = (_b = object.projectId) !== null && _b !== void 0 ? _b : "";
|
|
2825
|
-
message.workflowId = (_c = object.workflowId) !== null && _c !== void 0 ? _c : "";
|
|
2826
3258
|
message.testCaseIds = ((_a = object.testCaseIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
2827
|
-
message.options = (
|
|
3259
|
+
message.options = (_c = object.options) !== null && _c !== void 0 ? _c : undefined;
|
|
3260
|
+
message.targetWorkflowId = (_d = object.targetWorkflowId) !== null && _d !== void 0 ? _d : "";
|
|
2828
3261
|
return message;
|
|
2829
3262
|
},
|
|
2830
3263
|
};
|
|
@@ -2900,6 +3333,9 @@ class ScriptServiceClientImpl {
|
|
|
2900
3333
|
this.UpdateTestScript = this.UpdateTestScript.bind(this);
|
|
2901
3334
|
this.ArchiveTestScript = this.ArchiveTestScript.bind(this);
|
|
2902
3335
|
this.DeleteTestScript = this.DeleteTestScript.bind(this);
|
|
3336
|
+
this.AttachTestScriptToWorkflow = this.AttachTestScriptToWorkflow.bind(this);
|
|
3337
|
+
this.DetachTestScriptFromWorkflow = this.DetachTestScriptFromWorkflow.bind(this);
|
|
3338
|
+
this.ListWorkflowTestScriptBindings = this.ListWorkflowTestScriptBindings.bind(this);
|
|
2903
3339
|
this.CreateTestScriptVersion = this.CreateTestScriptVersion.bind(this);
|
|
2904
3340
|
this.GetTestScriptVersion = this.GetTestScriptVersion.bind(this);
|
|
2905
3341
|
this.ListTestScriptVersions = this.ListTestScriptVersions.bind(this);
|
|
@@ -2939,6 +3375,21 @@ class ScriptServiceClientImpl {
|
|
|
2939
3375
|
const promise = this.rpc.request(this.service, "DeleteTestScript", data);
|
|
2940
3376
|
return promise.then((data) => exports.DeleteTestScriptResponse.decode(new wire_1.BinaryReader(data)));
|
|
2941
3377
|
}
|
|
3378
|
+
AttachTestScriptToWorkflow(request) {
|
|
3379
|
+
const data = exports.AttachTestScriptToWorkflowRequest.encode(request).finish();
|
|
3380
|
+
const promise = this.rpc.request(this.service, "AttachTestScriptToWorkflow", data);
|
|
3381
|
+
return promise.then((data) => exports.AttachTestScriptToWorkflowResponse.decode(new wire_1.BinaryReader(data)));
|
|
3382
|
+
}
|
|
3383
|
+
DetachTestScriptFromWorkflow(request) {
|
|
3384
|
+
const data = exports.DetachTestScriptFromWorkflowRequest.encode(request).finish();
|
|
3385
|
+
const promise = this.rpc.request(this.service, "DetachTestScriptFromWorkflow", data);
|
|
3386
|
+
return promise.then((data) => exports.DetachTestScriptFromWorkflowResponse.decode(new wire_1.BinaryReader(data)));
|
|
3387
|
+
}
|
|
3388
|
+
ListWorkflowTestScriptBindings(request) {
|
|
3389
|
+
const data = exports.ListWorkflowTestScriptBindingsRequest.encode(request).finish();
|
|
3390
|
+
const promise = this.rpc.request(this.service, "ListWorkflowTestScriptBindings", data);
|
|
3391
|
+
return promise.then((data) => exports.ListWorkflowTestScriptBindingsResponse.decode(new wire_1.BinaryReader(data)));
|
|
3392
|
+
}
|
|
2942
3393
|
CreateTestScriptVersion(request) {
|
|
2943
3394
|
const data = exports.CreateTestScriptVersionRequest.encode(request).finish();
|
|
2944
3395
|
const promise = this.rpc.request(this.service, "CreateTestScriptVersion", data);
|
|
@@ -2989,17 +3440,138 @@ exports.ScriptServiceDefinition = {
|
|
|
2989
3440
|
name: "CreateTestScript",
|
|
2990
3441
|
requestType: exports.CreateTestScriptRequest,
|
|
2991
3442
|
requestStream: false,
|
|
2992
|
-
responseType: exports.CreateTestScriptResponse,
|
|
3443
|
+
responseType: exports.CreateTestScriptResponse,
|
|
3444
|
+
responseStream: false,
|
|
3445
|
+
options: {
|
|
3446
|
+
_unknownFields: {
|
|
3447
|
+
578365826: [
|
|
3448
|
+
new Uint8Array([
|
|
3449
|
+
38,
|
|
3450
|
+
58,
|
|
3451
|
+
1,
|
|
3452
|
+
42,
|
|
3453
|
+
34,
|
|
3454
|
+
33,
|
|
3455
|
+
47,
|
|
3456
|
+
118,
|
|
3457
|
+
49,
|
|
3458
|
+
47,
|
|
3459
|
+
112,
|
|
3460
|
+
114,
|
|
3461
|
+
111,
|
|
3462
|
+
106,
|
|
3463
|
+
101,
|
|
3464
|
+
99,
|
|
3465
|
+
116,
|
|
3466
|
+
115,
|
|
3467
|
+
47,
|
|
3468
|
+
123,
|
|
3469
|
+
112,
|
|
3470
|
+
114,
|
|
3471
|
+
111,
|
|
3472
|
+
106,
|
|
3473
|
+
101,
|
|
3474
|
+
99,
|
|
3475
|
+
116,
|
|
3476
|
+
95,
|
|
3477
|
+
105,
|
|
3478
|
+
100,
|
|
3479
|
+
125,
|
|
3480
|
+
47,
|
|
3481
|
+
115,
|
|
3482
|
+
99,
|
|
3483
|
+
114,
|
|
3484
|
+
105,
|
|
3485
|
+
112,
|
|
3486
|
+
116,
|
|
3487
|
+
115,
|
|
3488
|
+
]),
|
|
3489
|
+
],
|
|
3490
|
+
},
|
|
3491
|
+
},
|
|
3492
|
+
},
|
|
3493
|
+
getTestScript: {
|
|
3494
|
+
name: "GetTestScript",
|
|
3495
|
+
requestType: exports.GetTestScriptRequest,
|
|
3496
|
+
requestStream: false,
|
|
3497
|
+
responseType: exports.GetTestScriptResponse,
|
|
3498
|
+
responseStream: false,
|
|
3499
|
+
options: {
|
|
3500
|
+
_unknownFields: {
|
|
3501
|
+
578365826: [
|
|
3502
|
+
new Uint8Array([
|
|
3503
|
+
52,
|
|
3504
|
+
18,
|
|
3505
|
+
50,
|
|
3506
|
+
47,
|
|
3507
|
+
118,
|
|
3508
|
+
49,
|
|
3509
|
+
47,
|
|
3510
|
+
112,
|
|
3511
|
+
114,
|
|
3512
|
+
111,
|
|
3513
|
+
106,
|
|
3514
|
+
101,
|
|
3515
|
+
99,
|
|
3516
|
+
116,
|
|
3517
|
+
115,
|
|
3518
|
+
47,
|
|
3519
|
+
123,
|
|
3520
|
+
112,
|
|
3521
|
+
114,
|
|
3522
|
+
111,
|
|
3523
|
+
106,
|
|
3524
|
+
101,
|
|
3525
|
+
99,
|
|
3526
|
+
116,
|
|
3527
|
+
95,
|
|
3528
|
+
105,
|
|
3529
|
+
100,
|
|
3530
|
+
125,
|
|
3531
|
+
47,
|
|
3532
|
+
115,
|
|
3533
|
+
99,
|
|
3534
|
+
114,
|
|
3535
|
+
105,
|
|
3536
|
+
112,
|
|
3537
|
+
116,
|
|
3538
|
+
115,
|
|
3539
|
+
47,
|
|
3540
|
+
123,
|
|
3541
|
+
116,
|
|
3542
|
+
101,
|
|
3543
|
+
115,
|
|
3544
|
+
116,
|
|
3545
|
+
95,
|
|
3546
|
+
115,
|
|
3547
|
+
99,
|
|
3548
|
+
114,
|
|
3549
|
+
105,
|
|
3550
|
+
112,
|
|
3551
|
+
116,
|
|
3552
|
+
95,
|
|
3553
|
+
105,
|
|
3554
|
+
100,
|
|
3555
|
+
125,
|
|
3556
|
+
]),
|
|
3557
|
+
],
|
|
3558
|
+
},
|
|
3559
|
+
},
|
|
3560
|
+
},
|
|
3561
|
+
listTestScripts: {
|
|
3562
|
+
name: "ListTestScripts",
|
|
3563
|
+
requestType: exports.ListTestScriptsRequest,
|
|
3564
|
+
requestStream: false,
|
|
3565
|
+
responseType: exports.ListTestScriptsResponse,
|
|
2993
3566
|
responseStream: false,
|
|
2994
3567
|
options: {
|
|
2995
3568
|
_unknownFields: {
|
|
2996
3569
|
578365826: [
|
|
2997
3570
|
new Uint8Array([
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
34,
|
|
3571
|
+
96,
|
|
3572
|
+
90,
|
|
3573
|
+
59,
|
|
3574
|
+
18,
|
|
3003
3575
|
57,
|
|
3004
3576
|
47,
|
|
3005
3577
|
118,
|
|
@@ -3058,24 +3630,62 @@ exports.ScriptServiceDefinition = {
|
|
|
3058
3630
|
112,
|
|
3059
3631
|
116,
|
|
3060
3632
|
115,
|
|
3633
|
+
18,
|
|
3634
|
+
33,
|
|
3635
|
+
47,
|
|
3636
|
+
118,
|
|
3637
|
+
49,
|
|
3638
|
+
47,
|
|
3639
|
+
112,
|
|
3640
|
+
114,
|
|
3641
|
+
111,
|
|
3642
|
+
106,
|
|
3643
|
+
101,
|
|
3644
|
+
99,
|
|
3645
|
+
116,
|
|
3646
|
+
115,
|
|
3647
|
+
47,
|
|
3648
|
+
123,
|
|
3649
|
+
112,
|
|
3650
|
+
114,
|
|
3651
|
+
111,
|
|
3652
|
+
106,
|
|
3653
|
+
101,
|
|
3654
|
+
99,
|
|
3655
|
+
116,
|
|
3656
|
+
95,
|
|
3657
|
+
105,
|
|
3658
|
+
100,
|
|
3659
|
+
125,
|
|
3660
|
+
47,
|
|
3661
|
+
115,
|
|
3662
|
+
99,
|
|
3663
|
+
114,
|
|
3664
|
+
105,
|
|
3665
|
+
112,
|
|
3666
|
+
116,
|
|
3667
|
+
115,
|
|
3061
3668
|
]),
|
|
3062
3669
|
],
|
|
3063
3670
|
},
|
|
3064
3671
|
},
|
|
3065
3672
|
},
|
|
3066
|
-
|
|
3067
|
-
name: "
|
|
3068
|
-
requestType: exports.
|
|
3673
|
+
updateTestScript: {
|
|
3674
|
+
name: "UpdateTestScript",
|
|
3675
|
+
requestType: exports.UpdateTestScriptRequest,
|
|
3069
3676
|
requestStream: false,
|
|
3070
|
-
responseType: exports.
|
|
3677
|
+
responseType: exports.UpdateTestScriptResponse,
|
|
3071
3678
|
responseStream: false,
|
|
3072
3679
|
options: {
|
|
3073
3680
|
_unknownFields: {
|
|
3074
3681
|
578365826: [
|
|
3075
3682
|
new Uint8Array([
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3683
|
+
55,
|
|
3684
|
+
58,
|
|
3685
|
+
1,
|
|
3686
|
+
42,
|
|
3687
|
+
50,
|
|
3688
|
+
50,
|
|
3079
3689
|
47,
|
|
3080
3690
|
118,
|
|
3081
3691
|
49,
|
|
@@ -3102,25 +3712,72 @@ exports.ScriptServiceDefinition = {
|
|
|
3102
3712
|
100,
|
|
3103
3713
|
125,
|
|
3104
3714
|
47,
|
|
3105
|
-
|
|
3106
|
-
|
|
3715
|
+
115,
|
|
3716
|
+
99,
|
|
3107
3717
|
114,
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
111,
|
|
3112
|
-
119,
|
|
3718
|
+
105,
|
|
3719
|
+
112,
|
|
3720
|
+
116,
|
|
3113
3721
|
115,
|
|
3114
3722
|
47,
|
|
3115
3723
|
123,
|
|
3116
|
-
|
|
3724
|
+
116,
|
|
3725
|
+
101,
|
|
3726
|
+
115,
|
|
3727
|
+
116,
|
|
3728
|
+
95,
|
|
3729
|
+
115,
|
|
3730
|
+
99,
|
|
3731
|
+
114,
|
|
3732
|
+
105,
|
|
3733
|
+
112,
|
|
3734
|
+
116,
|
|
3735
|
+
95,
|
|
3736
|
+
105,
|
|
3737
|
+
100,
|
|
3738
|
+
125,
|
|
3739
|
+
]),
|
|
3740
|
+
],
|
|
3741
|
+
},
|
|
3742
|
+
},
|
|
3743
|
+
},
|
|
3744
|
+
archiveTestScript: {
|
|
3745
|
+
name: "ArchiveTestScript",
|
|
3746
|
+
requestType: exports.ArchiveTestScriptRequest,
|
|
3747
|
+
requestStream: false,
|
|
3748
|
+
responseType: exports.ArchiveTestScriptResponse,
|
|
3749
|
+
responseStream: false,
|
|
3750
|
+
options: {
|
|
3751
|
+
_unknownFields: {
|
|
3752
|
+
578365826: [
|
|
3753
|
+
new Uint8Array([
|
|
3754
|
+
63,
|
|
3755
|
+
58,
|
|
3756
|
+
1,
|
|
3757
|
+
42,
|
|
3758
|
+
34,
|
|
3759
|
+
58,
|
|
3760
|
+
47,
|
|
3761
|
+
118,
|
|
3762
|
+
49,
|
|
3763
|
+
47,
|
|
3764
|
+
112,
|
|
3765
|
+
114,
|
|
3117
3766
|
111,
|
|
3767
|
+
106,
|
|
3768
|
+
101,
|
|
3769
|
+
99,
|
|
3770
|
+
116,
|
|
3771
|
+
115,
|
|
3772
|
+
47,
|
|
3773
|
+
123,
|
|
3774
|
+
112,
|
|
3118
3775
|
114,
|
|
3119
|
-
107,
|
|
3120
|
-
102,
|
|
3121
|
-
108,
|
|
3122
3776
|
111,
|
|
3123
|
-
|
|
3777
|
+
106,
|
|
3778
|
+
101,
|
|
3779
|
+
99,
|
|
3780
|
+
116,
|
|
3124
3781
|
95,
|
|
3125
3782
|
105,
|
|
3126
3783
|
100,
|
|
@@ -3150,24 +3807,32 @@ exports.ScriptServiceDefinition = {
|
|
|
3150
3807
|
105,
|
|
3151
3808
|
100,
|
|
3152
3809
|
125,
|
|
3810
|
+
58,
|
|
3811
|
+
97,
|
|
3812
|
+
114,
|
|
3813
|
+
99,
|
|
3814
|
+
104,
|
|
3815
|
+
105,
|
|
3816
|
+
118,
|
|
3817
|
+
101,
|
|
3153
3818
|
]),
|
|
3154
3819
|
],
|
|
3155
3820
|
},
|
|
3156
3821
|
},
|
|
3157
3822
|
},
|
|
3158
|
-
|
|
3159
|
-
name: "
|
|
3160
|
-
requestType: exports.
|
|
3823
|
+
deleteTestScript: {
|
|
3824
|
+
name: "DeleteTestScript",
|
|
3825
|
+
requestType: exports.DeleteTestScriptRequest,
|
|
3161
3826
|
requestStream: false,
|
|
3162
|
-
responseType: exports.
|
|
3827
|
+
responseType: exports.DeleteTestScriptResponse,
|
|
3163
3828
|
responseStream: false,
|
|
3164
3829
|
options: {
|
|
3165
3830
|
_unknownFields: {
|
|
3166
3831
|
578365826: [
|
|
3167
3832
|
new Uint8Array([
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3833
|
+
52,
|
|
3834
|
+
42,
|
|
3835
|
+
50,
|
|
3171
3836
|
47,
|
|
3172
3837
|
118,
|
|
3173
3838
|
49,
|
|
@@ -3194,58 +3859,51 @@ exports.ScriptServiceDefinition = {
|
|
|
3194
3859
|
100,
|
|
3195
3860
|
125,
|
|
3196
3861
|
47,
|
|
3197
|
-
|
|
3198
|
-
|
|
3862
|
+
115,
|
|
3863
|
+
99,
|
|
3199
3864
|
114,
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
111,
|
|
3204
|
-
119,
|
|
3865
|
+
105,
|
|
3866
|
+
112,
|
|
3867
|
+
116,
|
|
3205
3868
|
115,
|
|
3206
3869
|
47,
|
|
3207
3870
|
123,
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
102,
|
|
3213
|
-
108,
|
|
3214
|
-
111,
|
|
3215
|
-
119,
|
|
3871
|
+
116,
|
|
3872
|
+
101,
|
|
3873
|
+
115,
|
|
3874
|
+
116,
|
|
3216
3875
|
95,
|
|
3217
|
-
105,
|
|
3218
|
-
100,
|
|
3219
|
-
125,
|
|
3220
|
-
47,
|
|
3221
3876
|
115,
|
|
3222
3877
|
99,
|
|
3223
3878
|
114,
|
|
3224
3879
|
105,
|
|
3225
3880
|
112,
|
|
3226
3881
|
116,
|
|
3227
|
-
|
|
3882
|
+
95,
|
|
3883
|
+
105,
|
|
3884
|
+
100,
|
|
3885
|
+
125,
|
|
3228
3886
|
]),
|
|
3229
3887
|
],
|
|
3230
3888
|
},
|
|
3231
3889
|
},
|
|
3232
3890
|
},
|
|
3233
|
-
|
|
3234
|
-
name: "
|
|
3235
|
-
requestType: exports.
|
|
3891
|
+
attachTestScriptToWorkflow: {
|
|
3892
|
+
name: "AttachTestScriptToWorkflow",
|
|
3893
|
+
requestType: exports.AttachTestScriptToWorkflowRequest,
|
|
3236
3894
|
requestStream: false,
|
|
3237
|
-
responseType: exports.
|
|
3895
|
+
responseType: exports.AttachTestScriptToWorkflowResponse,
|
|
3238
3896
|
responseStream: false,
|
|
3239
3897
|
options: {
|
|
3240
3898
|
_unknownFields: {
|
|
3241
3899
|
578365826: [
|
|
3242
3900
|
new Uint8Array([
|
|
3243
|
-
|
|
3901
|
+
86,
|
|
3244
3902
|
58,
|
|
3245
3903
|
1,
|
|
3246
3904
|
42,
|
|
3247
|
-
|
|
3248
|
-
|
|
3905
|
+
34,
|
|
3906
|
+
81,
|
|
3249
3907
|
47,
|
|
3250
3908
|
118,
|
|
3251
3909
|
49,
|
|
@@ -3320,27 +3978,31 @@ exports.ScriptServiceDefinition = {
|
|
|
3320
3978
|
105,
|
|
3321
3979
|
100,
|
|
3322
3980
|
125,
|
|
3981
|
+
58,
|
|
3982
|
+
97,
|
|
3983
|
+
116,
|
|
3984
|
+
116,
|
|
3985
|
+
97,
|
|
3986
|
+
99,
|
|
3987
|
+
104,
|
|
3323
3988
|
]),
|
|
3324
3989
|
],
|
|
3325
3990
|
},
|
|
3326
3991
|
},
|
|
3327
|
-
},
|
|
3328
|
-
|
|
3329
|
-
name: "
|
|
3330
|
-
requestType: exports.
|
|
3992
|
+
},
|
|
3993
|
+
detachTestScriptFromWorkflow: {
|
|
3994
|
+
name: "DetachTestScriptFromWorkflow",
|
|
3995
|
+
requestType: exports.DetachTestScriptFromWorkflowRequest,
|
|
3331
3996
|
requestStream: false,
|
|
3332
|
-
responseType: exports.
|
|
3997
|
+
responseType: exports.DetachTestScriptFromWorkflowResponse,
|
|
3333
3998
|
responseStream: false,
|
|
3334
3999
|
options: {
|
|
3335
4000
|
_unknownFields: {
|
|
3336
4001
|
578365826: [
|
|
3337
4002
|
new Uint8Array([
|
|
3338
|
-
|
|
3339
|
-
58,
|
|
3340
|
-
1,
|
|
4003
|
+
76,
|
|
3341
4004
|
42,
|
|
3342
|
-
|
|
3343
|
-
82,
|
|
4005
|
+
74,
|
|
3344
4006
|
47,
|
|
3345
4007
|
118,
|
|
3346
4008
|
49,
|
|
@@ -3415,32 +4077,24 @@ exports.ScriptServiceDefinition = {
|
|
|
3415
4077
|
105,
|
|
3416
4078
|
100,
|
|
3417
4079
|
125,
|
|
3418
|
-
58,
|
|
3419
|
-
97,
|
|
3420
|
-
114,
|
|
3421
|
-
99,
|
|
3422
|
-
104,
|
|
3423
|
-
105,
|
|
3424
|
-
118,
|
|
3425
|
-
101,
|
|
3426
4080
|
]),
|
|
3427
4081
|
],
|
|
3428
4082
|
},
|
|
3429
4083
|
},
|
|
3430
4084
|
},
|
|
3431
|
-
|
|
3432
|
-
name: "
|
|
3433
|
-
requestType: exports.
|
|
4085
|
+
listWorkflowTestScriptBindings: {
|
|
4086
|
+
name: "ListWorkflowTestScriptBindings",
|
|
4087
|
+
requestType: exports.ListWorkflowTestScriptBindingsRequest,
|
|
3434
4088
|
requestStream: false,
|
|
3435
|
-
responseType: exports.
|
|
4089
|
+
responseType: exports.ListWorkflowTestScriptBindingsResponse,
|
|
3436
4090
|
responseStream: false,
|
|
3437
4091
|
options: {
|
|
3438
4092
|
_unknownFields: {
|
|
3439
4093
|
578365826: [
|
|
3440
4094
|
new Uint8Array([
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
4095
|
+
67,
|
|
4096
|
+
18,
|
|
4097
|
+
65,
|
|
3444
4098
|
47,
|
|
3445
4099
|
118,
|
|
3446
4100
|
49,
|
|
@@ -3497,24 +4151,15 @@ exports.ScriptServiceDefinition = {
|
|
|
3497
4151
|
105,
|
|
3498
4152
|
112,
|
|
3499
4153
|
116,
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
123,
|
|
3503
|
-
116,
|
|
3504
|
-
101,
|
|
3505
|
-
115,
|
|
3506
|
-
116,
|
|
3507
|
-
95,
|
|
3508
|
-
115,
|
|
3509
|
-
99,
|
|
3510
|
-
114,
|
|
3511
|
-
105,
|
|
3512
|
-
112,
|
|
3513
|
-
116,
|
|
3514
|
-
95,
|
|
4154
|
+
45,
|
|
4155
|
+
98,
|
|
3515
4156
|
105,
|
|
4157
|
+
110,
|
|
3516
4158
|
100,
|
|
3517
|
-
|
|
4159
|
+
105,
|
|
4160
|
+
110,
|
|
4161
|
+
103,
|
|
4162
|
+
115,
|
|
3518
4163
|
]),
|
|
3519
4164
|
],
|
|
3520
4165
|
},
|
|
@@ -3530,12 +4175,12 @@ exports.ScriptServiceDefinition = {
|
|
|
3530
4175
|
_unknownFields: {
|
|
3531
4176
|
578365826: [
|
|
3532
4177
|
new Uint8Array([
|
|
3533
|
-
|
|
4178
|
+
64,
|
|
3534
4179
|
58,
|
|
3535
4180
|
1,
|
|
3536
4181
|
42,
|
|
3537
4182
|
34,
|
|
3538
|
-
|
|
4183
|
+
59,
|
|
3539
4184
|
47,
|
|
3540
4185
|
118,
|
|
3541
4186
|
49,
|
|
@@ -3562,30 +4207,6 @@ exports.ScriptServiceDefinition = {
|
|
|
3562
4207
|
100,
|
|
3563
4208
|
125,
|
|
3564
4209
|
47,
|
|
3565
|
-
119,
|
|
3566
|
-
111,
|
|
3567
|
-
114,
|
|
3568
|
-
107,
|
|
3569
|
-
102,
|
|
3570
|
-
108,
|
|
3571
|
-
111,
|
|
3572
|
-
119,
|
|
3573
|
-
115,
|
|
3574
|
-
47,
|
|
3575
|
-
123,
|
|
3576
|
-
119,
|
|
3577
|
-
111,
|
|
3578
|
-
114,
|
|
3579
|
-
107,
|
|
3580
|
-
102,
|
|
3581
|
-
108,
|
|
3582
|
-
111,
|
|
3583
|
-
119,
|
|
3584
|
-
95,
|
|
3585
|
-
105,
|
|
3586
|
-
100,
|
|
3587
|
-
125,
|
|
3588
|
-
47,
|
|
3589
4210
|
115,
|
|
3590
4211
|
99,
|
|
3591
4212
|
114,
|
|
@@ -3634,9 +4255,9 @@ exports.ScriptServiceDefinition = {
|
|
|
3634
4255
|
_unknownFields: {
|
|
3635
4256
|
578365826: [
|
|
3636
4257
|
new Uint8Array([
|
|
3637
|
-
|
|
4258
|
+
86,
|
|
3638
4259
|
18,
|
|
3639
|
-
|
|
4260
|
+
84,
|
|
3640
4261
|
47,
|
|
3641
4262
|
118,
|
|
3642
4263
|
49,
|
|
@@ -3663,30 +4284,6 @@ exports.ScriptServiceDefinition = {
|
|
|
3663
4284
|
100,
|
|
3664
4285
|
125,
|
|
3665
4286
|
47,
|
|
3666
|
-
119,
|
|
3667
|
-
111,
|
|
3668
|
-
114,
|
|
3669
|
-
107,
|
|
3670
|
-
102,
|
|
3671
|
-
108,
|
|
3672
|
-
111,
|
|
3673
|
-
119,
|
|
3674
|
-
115,
|
|
3675
|
-
47,
|
|
3676
|
-
123,
|
|
3677
|
-
119,
|
|
3678
|
-
111,
|
|
3679
|
-
114,
|
|
3680
|
-
107,
|
|
3681
|
-
102,
|
|
3682
|
-
108,
|
|
3683
|
-
111,
|
|
3684
|
-
119,
|
|
3685
|
-
95,
|
|
3686
|
-
105,
|
|
3687
|
-
100,
|
|
3688
|
-
125,
|
|
3689
|
-
47,
|
|
3690
4287
|
115,
|
|
3691
4288
|
99,
|
|
3692
4289
|
114,
|
|
@@ -3760,9 +4357,9 @@ exports.ScriptServiceDefinition = {
|
|
|
3760
4357
|
_unknownFields: {
|
|
3761
4358
|
578365826: [
|
|
3762
4359
|
new Uint8Array([
|
|
3763
|
-
|
|
4360
|
+
61,
|
|
3764
4361
|
18,
|
|
3765
|
-
|
|
4362
|
+
59,
|
|
3766
4363
|
47,
|
|
3767
4364
|
118,
|
|
3768
4365
|
49,
|
|
@@ -3789,30 +4386,6 @@ exports.ScriptServiceDefinition = {
|
|
|
3789
4386
|
100,
|
|
3790
4387
|
125,
|
|
3791
4388
|
47,
|
|
3792
|
-
119,
|
|
3793
|
-
111,
|
|
3794
|
-
114,
|
|
3795
|
-
107,
|
|
3796
|
-
102,
|
|
3797
|
-
108,
|
|
3798
|
-
111,
|
|
3799
|
-
119,
|
|
3800
|
-
115,
|
|
3801
|
-
47,
|
|
3802
|
-
123,
|
|
3803
|
-
119,
|
|
3804
|
-
111,
|
|
3805
|
-
114,
|
|
3806
|
-
107,
|
|
3807
|
-
102,
|
|
3808
|
-
108,
|
|
3809
|
-
111,
|
|
3810
|
-
119,
|
|
3811
|
-
95,
|
|
3812
|
-
105,
|
|
3813
|
-
100,
|
|
3814
|
-
125,
|
|
3815
|
-
47,
|
|
3816
4389
|
115,
|
|
3817
4390
|
99,
|
|
3818
4391
|
114,
|
|
@@ -3861,12 +4434,12 @@ exports.ScriptServiceDefinition = {
|
|
|
3861
4434
|
_unknownFields: {
|
|
3862
4435
|
578365826: [
|
|
3863
4436
|
new Uint8Array([
|
|
3864
|
-
|
|
4437
|
+
75,
|
|
3865
4438
|
58,
|
|
3866
4439
|
1,
|
|
3867
4440
|
42,
|
|
3868
4441
|
34,
|
|
3869
|
-
|
|
4442
|
+
70,
|
|
3870
4443
|
47,
|
|
3871
4444
|
118,
|
|
3872
4445
|
49,
|
|
@@ -3893,30 +4466,6 @@ exports.ScriptServiceDefinition = {
|
|
|
3893
4466
|
100,
|
|
3894
4467
|
125,
|
|
3895
4468
|
47,
|
|
3896
|
-
119,
|
|
3897
|
-
111,
|
|
3898
|
-
114,
|
|
3899
|
-
107,
|
|
3900
|
-
102,
|
|
3901
|
-
108,
|
|
3902
|
-
111,
|
|
3903
|
-
119,
|
|
3904
|
-
115,
|
|
3905
|
-
47,
|
|
3906
|
-
123,
|
|
3907
|
-
119,
|
|
3908
|
-
111,
|
|
3909
|
-
114,
|
|
3910
|
-
107,
|
|
3911
|
-
102,
|
|
3912
|
-
108,
|
|
3913
|
-
111,
|
|
3914
|
-
119,
|
|
3915
|
-
95,
|
|
3916
|
-
105,
|
|
3917
|
-
100,
|
|
3918
|
-
125,
|
|
3919
|
-
47,
|
|
3920
4469
|
115,
|
|
3921
4470
|
99,
|
|
3922
4471
|
114,
|
|
@@ -3976,12 +4525,12 @@ exports.ScriptServiceDefinition = {
|
|
|
3976
4525
|
_unknownFields: {
|
|
3977
4526
|
578365826: [
|
|
3978
4527
|
new Uint8Array([
|
|
3979
|
-
|
|
4528
|
+
64,
|
|
3980
4529
|
58,
|
|
3981
4530
|
1,
|
|
3982
4531
|
42,
|
|
3983
4532
|
34,
|
|
3984
|
-
|
|
4533
|
+
59,
|
|
3985
4534
|
47,
|
|
3986
4535
|
118,
|
|
3987
4536
|
49,
|
|
@@ -4008,30 +4557,6 @@ exports.ScriptServiceDefinition = {
|
|
|
4008
4557
|
100,
|
|
4009
4558
|
125,
|
|
4010
4559
|
47,
|
|
4011
|
-
119,
|
|
4012
|
-
111,
|
|
4013
|
-
114,
|
|
4014
|
-
107,
|
|
4015
|
-
102,
|
|
4016
|
-
108,
|
|
4017
|
-
111,
|
|
4018
|
-
119,
|
|
4019
|
-
115,
|
|
4020
|
-
47,
|
|
4021
|
-
123,
|
|
4022
|
-
119,
|
|
4023
|
-
111,
|
|
4024
|
-
114,
|
|
4025
|
-
107,
|
|
4026
|
-
102,
|
|
4027
|
-
108,
|
|
4028
|
-
111,
|
|
4029
|
-
119,
|
|
4030
|
-
95,
|
|
4031
|
-
105,
|
|
4032
|
-
100,
|
|
4033
|
-
125,
|
|
4034
|
-
47,
|
|
4035
4560
|
115,
|
|
4036
4561
|
99,
|
|
4037
4562
|
114,
|
|
@@ -4080,9 +4605,9 @@ exports.ScriptServiceDefinition = {
|
|
|
4080
4605
|
_unknownFields: {
|
|
4081
4606
|
578365826: [
|
|
4082
4607
|
new Uint8Array([
|
|
4083
|
-
|
|
4608
|
+
61,
|
|
4084
4609
|
18,
|
|
4085
|
-
|
|
4610
|
+
59,
|
|
4086
4611
|
47,
|
|
4087
4612
|
118,
|
|
4088
4613
|
49,
|
|
@@ -4109,30 +4634,6 @@ exports.ScriptServiceDefinition = {
|
|
|
4109
4634
|
100,
|
|
4110
4635
|
125,
|
|
4111
4636
|
47,
|
|
4112
|
-
119,
|
|
4113
|
-
111,
|
|
4114
|
-
114,
|
|
4115
|
-
107,
|
|
4116
|
-
102,
|
|
4117
|
-
108,
|
|
4118
|
-
111,
|
|
4119
|
-
119,
|
|
4120
|
-
115,
|
|
4121
|
-
47,
|
|
4122
|
-
123,
|
|
4123
|
-
119,
|
|
4124
|
-
111,
|
|
4125
|
-
114,
|
|
4126
|
-
107,
|
|
4127
|
-
102,
|
|
4128
|
-
108,
|
|
4129
|
-
111,
|
|
4130
|
-
119,
|
|
4131
|
-
95,
|
|
4132
|
-
105,
|
|
4133
|
-
100,
|
|
4134
|
-
125,
|
|
4135
|
-
47,
|
|
4136
4637
|
115,
|
|
4137
4638
|
99,
|
|
4138
4639
|
114,
|
|
@@ -4181,9 +4682,9 @@ exports.ScriptServiceDefinition = {
|
|
|
4181
4682
|
_unknownFields: {
|
|
4182
4683
|
578365826: [
|
|
4183
4684
|
new Uint8Array([
|
|
4184
|
-
|
|
4685
|
+
81,
|
|
4185
4686
|
42,
|
|
4186
|
-
|
|
4687
|
+
79,
|
|
4187
4688
|
47,
|
|
4188
4689
|
118,
|
|
4189
4690
|
49,
|
|
@@ -4210,30 +4711,6 @@ exports.ScriptServiceDefinition = {
|
|
|
4210
4711
|
100,
|
|
4211
4712
|
125,
|
|
4212
4713
|
47,
|
|
4213
|
-
119,
|
|
4214
|
-
111,
|
|
4215
|
-
114,
|
|
4216
|
-
107,
|
|
4217
|
-
102,
|
|
4218
|
-
108,
|
|
4219
|
-
111,
|
|
4220
|
-
119,
|
|
4221
|
-
115,
|
|
4222
|
-
47,
|
|
4223
|
-
123,
|
|
4224
|
-
119,
|
|
4225
|
-
111,
|
|
4226
|
-
114,
|
|
4227
|
-
107,
|
|
4228
|
-
102,
|
|
4229
|
-
108,
|
|
4230
|
-
111,
|
|
4231
|
-
119,
|
|
4232
|
-
95,
|
|
4233
|
-
105,
|
|
4234
|
-
100,
|
|
4235
|
-
125,
|
|
4236
|
-
47,
|
|
4237
4714
|
115,
|
|
4238
4715
|
99,
|
|
4239
4716
|
114,
|
|
@@ -4302,12 +4779,12 @@ exports.ScriptServiceDefinition = {
|
|
|
4302
4779
|
_unknownFields: {
|
|
4303
4780
|
578365826: [
|
|
4304
4781
|
new Uint8Array([
|
|
4305
|
-
|
|
4782
|
+
47,
|
|
4306
4783
|
58,
|
|
4307
4784
|
1,
|
|
4308
4785
|
42,
|
|
4309
4786
|
34,
|
|
4310
|
-
|
|
4787
|
+
42,
|
|
4311
4788
|
47,
|
|
4312
4789
|
118,
|
|
4313
4790
|
49,
|
|
@@ -4334,30 +4811,6 @@ exports.ScriptServiceDefinition = {
|
|
|
4334
4811
|
100,
|
|
4335
4812
|
125,
|
|
4336
4813
|
47,
|
|
4337
|
-
119,
|
|
4338
|
-
111,
|
|
4339
|
-
114,
|
|
4340
|
-
107,
|
|
4341
|
-
102,
|
|
4342
|
-
108,
|
|
4343
|
-
111,
|
|
4344
|
-
119,
|
|
4345
|
-
115,
|
|
4346
|
-
47,
|
|
4347
|
-
123,
|
|
4348
|
-
119,
|
|
4349
|
-
111,
|
|
4350
|
-
114,
|
|
4351
|
-
107,
|
|
4352
|
-
102,
|
|
4353
|
-
108,
|
|
4354
|
-
111,
|
|
4355
|
-
119,
|
|
4356
|
-
95,
|
|
4357
|
-
105,
|
|
4358
|
-
100,
|
|
4359
|
-
125,
|
|
4360
|
-
47,
|
|
4361
4814
|
115,
|
|
4362
4815
|
99,
|
|
4363
4816
|
114,
|
|
@@ -4381,6 +4834,27 @@ exports.ScriptServiceDefinition = {
|
|
|
4381
4834
|
},
|
|
4382
4835
|
},
|
|
4383
4836
|
};
|
|
4837
|
+
function toTimestamp(date) {
|
|
4838
|
+
const seconds = Math.trunc(date.getTime() / 1000);
|
|
4839
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
4840
|
+
return { seconds, nanos };
|
|
4841
|
+
}
|
|
4842
|
+
function fromTimestamp(t) {
|
|
4843
|
+
let millis = (t.seconds || 0) * 1000;
|
|
4844
|
+
millis += (t.nanos || 0) / 1000000;
|
|
4845
|
+
return new globalThis.Date(millis);
|
|
4846
|
+
}
|
|
4847
|
+
function fromJsonTimestamp(o) {
|
|
4848
|
+
if (o instanceof globalThis.Date) {
|
|
4849
|
+
return o;
|
|
4850
|
+
}
|
|
4851
|
+
else if (typeof o === "string") {
|
|
4852
|
+
return new globalThis.Date(o);
|
|
4853
|
+
}
|
|
4854
|
+
else {
|
|
4855
|
+
return fromTimestamp(timestamp_pb_1.Timestamp.fromJSON(o));
|
|
4856
|
+
}
|
|
4857
|
+
}
|
|
4384
4858
|
function longToNumber(int64) {
|
|
4385
4859
|
const num = globalThis.Number(int64.toString());
|
|
4386
4860
|
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|