weave-typescript 0.11.15 → 0.11.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -25,7 +25,7 @@ export declare function testCaseStatusFromJSON(object: any): TestCaseStatus;
|
|
|
25
25
|
export declare function testCaseStatusToJSON(object: TestCaseStatus): string;
|
|
26
26
|
export interface TestCase {
|
|
27
27
|
testCaseId: string;
|
|
28
|
-
|
|
28
|
+
projectId: string;
|
|
29
29
|
caseKey: string;
|
|
30
30
|
title: string;
|
|
31
31
|
description: string;
|
|
@@ -134,7 +134,7 @@ function testCaseStatusToJSON(object) {
|
|
|
134
134
|
function createBaseTestCase() {
|
|
135
135
|
return {
|
|
136
136
|
testCaseId: "",
|
|
137
|
-
|
|
137
|
+
projectId: "",
|
|
138
138
|
caseKey: "",
|
|
139
139
|
title: "",
|
|
140
140
|
description: "",
|
|
@@ -153,8 +153,8 @@ exports.TestCase = {
|
|
|
153
153
|
if (message.testCaseId !== "") {
|
|
154
154
|
writer.uint32(10).string(message.testCaseId);
|
|
155
155
|
}
|
|
156
|
-
if (message.
|
|
157
|
-
writer.uint32(18).string(message.
|
|
156
|
+
if (message.projectId !== "") {
|
|
157
|
+
writer.uint32(18).string(message.projectId);
|
|
158
158
|
}
|
|
159
159
|
if (message.caseKey !== "") {
|
|
160
160
|
writer.uint32(26).string(message.caseKey);
|
|
@@ -209,7 +209,7 @@ exports.TestCase = {
|
|
|
209
209
|
if (tag !== 18) {
|
|
210
210
|
break;
|
|
211
211
|
}
|
|
212
|
-
message.
|
|
212
|
+
message.projectId = reader.string();
|
|
213
213
|
continue;
|
|
214
214
|
}
|
|
215
215
|
case 3: {
|
|
@@ -304,10 +304,10 @@ exports.TestCase = {
|
|
|
304
304
|
: isSet(object.test_case_id)
|
|
305
305
|
? globalThis.String(object.test_case_id)
|
|
306
306
|
: "",
|
|
307
|
-
|
|
308
|
-
? globalThis.String(object.
|
|
309
|
-
: isSet(object.
|
|
310
|
-
? globalThis.String(object.
|
|
307
|
+
projectId: isSet(object.projectId)
|
|
308
|
+
? globalThis.String(object.projectId)
|
|
309
|
+
: isSet(object.project_id)
|
|
310
|
+
? globalThis.String(object.project_id)
|
|
311
311
|
: "",
|
|
312
312
|
caseKey: isSet(object.caseKey)
|
|
313
313
|
? globalThis.String(object.caseKey)
|
|
@@ -351,8 +351,8 @@ exports.TestCase = {
|
|
|
351
351
|
if (message.testCaseId !== "") {
|
|
352
352
|
obj.testCaseId = message.testCaseId;
|
|
353
353
|
}
|
|
354
|
-
if (message.
|
|
355
|
-
obj.
|
|
354
|
+
if (message.projectId !== "") {
|
|
355
|
+
obj.projectId = message.projectId;
|
|
356
356
|
}
|
|
357
357
|
if (message.caseKey !== "") {
|
|
358
358
|
obj.caseKey = message.caseKey;
|
|
@@ -396,7 +396,7 @@ exports.TestCase = {
|
|
|
396
396
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
397
397
|
const message = createBaseTestCase();
|
|
398
398
|
message.testCaseId = (_a = object.testCaseId) !== null && _a !== void 0 ? _a : "";
|
|
399
|
-
message.
|
|
399
|
+
message.projectId = (_b = object.projectId) !== null && _b !== void 0 ? _b : "";
|
|
400
400
|
message.caseKey = (_c = object.caseKey) !== null && _c !== void 0 ? _c : "";
|
|
401
401
|
message.title = (_d = object.title) !== null && _d !== void 0 ? _d : "";
|
|
402
402
|
message.description = (_e = object.description) !== null && _e !== void 0 ? _e : "";
|
|
@@ -5,6 +5,7 @@ export interface CreateWorkflowRequest {
|
|
|
5
5
|
projectId: string;
|
|
6
6
|
name: string;
|
|
7
7
|
description: string;
|
|
8
|
+
slug: string;
|
|
8
9
|
}
|
|
9
10
|
export interface CreateWorkflowResponse {
|
|
10
11
|
workflow: Workflow | undefined;
|
|
@@ -16,6 +17,14 @@ export interface GetWorkflowRequest {
|
|
|
16
17
|
export interface GetWorkflowResponse {
|
|
17
18
|
workflow: Workflow | undefined;
|
|
18
19
|
}
|
|
20
|
+
export interface GetWorkflowBySlugRequest {
|
|
21
|
+
organizationId: string;
|
|
22
|
+
projectSlug: string;
|
|
23
|
+
workflowSlug: string;
|
|
24
|
+
}
|
|
25
|
+
export interface GetWorkflowBySlugResponse {
|
|
26
|
+
workflow: Workflow | undefined;
|
|
27
|
+
}
|
|
19
28
|
export interface ListWorkflowsRequest {
|
|
20
29
|
projectId: string;
|
|
21
30
|
pageSize: number;
|
|
@@ -32,6 +41,7 @@ export interface UpdateWorkflowRequest {
|
|
|
32
41
|
name: string;
|
|
33
42
|
description: string;
|
|
34
43
|
status: WorkflowStatus;
|
|
44
|
+
slug: string;
|
|
35
45
|
}
|
|
36
46
|
export interface UpdateWorkflowResponse {
|
|
37
47
|
workflow: Workflow | undefined;
|
|
@@ -70,6 +80,8 @@ export declare const CreateWorkflowRequest: MessageFns<CreateWorkflowRequest>;
|
|
|
70
80
|
export declare const CreateWorkflowResponse: MessageFns<CreateWorkflowResponse>;
|
|
71
81
|
export declare const GetWorkflowRequest: MessageFns<GetWorkflowRequest>;
|
|
72
82
|
export declare const GetWorkflowResponse: MessageFns<GetWorkflowResponse>;
|
|
83
|
+
export declare const GetWorkflowBySlugRequest: MessageFns<GetWorkflowBySlugRequest>;
|
|
84
|
+
export declare const GetWorkflowBySlugResponse: MessageFns<GetWorkflowBySlugResponse>;
|
|
73
85
|
export declare const ListWorkflowsRequest: MessageFns<ListWorkflowsRequest>;
|
|
74
86
|
export declare const ListWorkflowsResponse: MessageFns<ListWorkflowsResponse>;
|
|
75
87
|
export declare const UpdateWorkflowRequest: MessageFns<UpdateWorkflowRequest>;
|
|
@@ -85,6 +97,7 @@ export declare const ListWorkflowStageStatesResponse: MessageFns<ListWorkflowSta
|
|
|
85
97
|
export interface WorkflowService {
|
|
86
98
|
CreateWorkflow(request: CreateWorkflowRequest): Promise<CreateWorkflowResponse>;
|
|
87
99
|
GetWorkflow(request: GetWorkflowRequest): Promise<GetWorkflowResponse>;
|
|
100
|
+
GetWorkflowBySlug(request: GetWorkflowBySlugRequest): Promise<GetWorkflowBySlugResponse>;
|
|
88
101
|
ListWorkflows(request: ListWorkflowsRequest): Promise<ListWorkflowsResponse>;
|
|
89
102
|
UpdateWorkflow(request: UpdateWorkflowRequest): Promise<UpdateWorkflowResponse>;
|
|
90
103
|
ArchiveWorkflow(request: ArchiveWorkflowRequest): Promise<ArchiveWorkflowResponse>;
|
|
@@ -101,6 +114,7 @@ export declare class WorkflowServiceClientImpl implements WorkflowService {
|
|
|
101
114
|
});
|
|
102
115
|
CreateWorkflow(request: CreateWorkflowRequest): Promise<CreateWorkflowResponse>;
|
|
103
116
|
GetWorkflow(request: GetWorkflowRequest): Promise<GetWorkflowResponse>;
|
|
117
|
+
GetWorkflowBySlug(request: GetWorkflowBySlugRequest): Promise<GetWorkflowBySlugResponse>;
|
|
104
118
|
ListWorkflows(request: ListWorkflowsRequest): Promise<ListWorkflowsResponse>;
|
|
105
119
|
UpdateWorkflow(request: UpdateWorkflowRequest): Promise<UpdateWorkflowResponse>;
|
|
106
120
|
ArchiveWorkflow(request: ArchiveWorkflowRequest): Promise<ArchiveWorkflowResponse>;
|
|
@@ -137,6 +151,18 @@ export declare const WorkflowServiceDefinition: {
|
|
|
137
151
|
};
|
|
138
152
|
};
|
|
139
153
|
};
|
|
154
|
+
readonly getWorkflowBySlug: {
|
|
155
|
+
readonly name: "GetWorkflowBySlug";
|
|
156
|
+
readonly requestType: MessageFns<GetWorkflowBySlugRequest>;
|
|
157
|
+
readonly requestStream: false;
|
|
158
|
+
readonly responseType: MessageFns<GetWorkflowBySlugResponse>;
|
|
159
|
+
readonly responseStream: false;
|
|
160
|
+
readonly options: {
|
|
161
|
+
readonly _unknownFields: {
|
|
162
|
+
readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
140
166
|
readonly listWorkflows: {
|
|
141
167
|
readonly name: "ListWorkflows";
|
|
142
168
|
readonly requestType: MessageFns<ListWorkflowsRequest>;
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: weaveapi/workflow/v1/service.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.WorkflowServiceDefinition = exports.WorkflowServiceClientImpl = exports.WorkflowServiceServiceName = exports.ListWorkflowStageStatesResponse = exports.ListWorkflowStageStatesRequest = exports.UpsertWorkflowStageStateResponse = exports.UpsertWorkflowStageStateRequest = exports.DeleteWorkflowResponse = exports.DeleteWorkflowRequest = exports.ArchiveWorkflowResponse = exports.ArchiveWorkflowRequest = exports.UpdateWorkflowResponse = exports.UpdateWorkflowRequest = exports.ListWorkflowsResponse = exports.ListWorkflowsRequest = exports.GetWorkflowResponse = exports.GetWorkflowRequest = exports.CreateWorkflowResponse = exports.CreateWorkflowRequest = exports.protobufPackage = void 0;
|
|
8
|
+
exports.WorkflowServiceDefinition = exports.WorkflowServiceClientImpl = exports.WorkflowServiceServiceName = exports.ListWorkflowStageStatesResponse = exports.ListWorkflowStageStatesRequest = exports.UpsertWorkflowStageStateResponse = exports.UpsertWorkflowStageStateRequest = exports.DeleteWorkflowResponse = exports.DeleteWorkflowRequest = exports.ArchiveWorkflowResponse = exports.ArchiveWorkflowRequest = exports.UpdateWorkflowResponse = exports.UpdateWorkflowRequest = exports.ListWorkflowsResponse = exports.ListWorkflowsRequest = exports.GetWorkflowBySlugResponse = exports.GetWorkflowBySlugRequest = exports.GetWorkflowResponse = exports.GetWorkflowRequest = exports.CreateWorkflowResponse = exports.CreateWorkflowRequest = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const workflow_pb_1 = require("./workflow.pb");
|
|
12
12
|
exports.protobufPackage = "weaveapi.workflow.v1";
|
|
13
13
|
function createBaseCreateWorkflowRequest() {
|
|
14
|
-
return { projectId: "", name: "", description: "" };
|
|
14
|
+
return { projectId: "", name: "", description: "", slug: "" };
|
|
15
15
|
}
|
|
16
16
|
exports.CreateWorkflowRequest = {
|
|
17
17
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -24,6 +24,9 @@ exports.CreateWorkflowRequest = {
|
|
|
24
24
|
if (message.description !== "") {
|
|
25
25
|
writer.uint32(26).string(message.description);
|
|
26
26
|
}
|
|
27
|
+
if (message.slug !== "") {
|
|
28
|
+
writer.uint32(34).string(message.slug);
|
|
29
|
+
}
|
|
27
30
|
return writer;
|
|
28
31
|
},
|
|
29
32
|
decode(input, length) {
|
|
@@ -54,6 +57,13 @@ exports.CreateWorkflowRequest = {
|
|
|
54
57
|
message.description = reader.string();
|
|
55
58
|
continue;
|
|
56
59
|
}
|
|
60
|
+
case 4: {
|
|
61
|
+
if (tag !== 34) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
message.slug = reader.string();
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
57
67
|
}
|
|
58
68
|
if ((tag & 7) === 4 || tag === 0) {
|
|
59
69
|
break;
|
|
@@ -71,6 +81,7 @@ exports.CreateWorkflowRequest = {
|
|
|
71
81
|
: "",
|
|
72
82
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
73
83
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
84
|
+
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
74
85
|
};
|
|
75
86
|
},
|
|
76
87
|
toJSON(message) {
|
|
@@ -84,17 +95,21 @@ exports.CreateWorkflowRequest = {
|
|
|
84
95
|
if (message.description !== "") {
|
|
85
96
|
obj.description = message.description;
|
|
86
97
|
}
|
|
98
|
+
if (message.slug !== "") {
|
|
99
|
+
obj.slug = message.slug;
|
|
100
|
+
}
|
|
87
101
|
return obj;
|
|
88
102
|
},
|
|
89
103
|
create(base) {
|
|
90
104
|
return exports.CreateWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
91
105
|
},
|
|
92
106
|
fromPartial(object) {
|
|
93
|
-
var _a, _b, _c;
|
|
107
|
+
var _a, _b, _c, _d;
|
|
94
108
|
const message = createBaseCreateWorkflowRequest();
|
|
95
109
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
96
110
|
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
97
111
|
message.description = (_c = object.description) !== null && _c !== void 0 ? _c : "";
|
|
112
|
+
message.slug = (_d = object.slug) !== null && _d !== void 0 ? _d : "";
|
|
98
113
|
return message;
|
|
99
114
|
},
|
|
100
115
|
};
|
|
@@ -281,6 +296,155 @@ exports.GetWorkflowResponse = {
|
|
|
281
296
|
return message;
|
|
282
297
|
},
|
|
283
298
|
};
|
|
299
|
+
function createBaseGetWorkflowBySlugRequest() {
|
|
300
|
+
return { organizationId: "", projectSlug: "", workflowSlug: "" };
|
|
301
|
+
}
|
|
302
|
+
exports.GetWorkflowBySlugRequest = {
|
|
303
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
304
|
+
if (message.organizationId !== "") {
|
|
305
|
+
writer.uint32(10).string(message.organizationId);
|
|
306
|
+
}
|
|
307
|
+
if (message.projectSlug !== "") {
|
|
308
|
+
writer.uint32(18).string(message.projectSlug);
|
|
309
|
+
}
|
|
310
|
+
if (message.workflowSlug !== "") {
|
|
311
|
+
writer.uint32(26).string(message.workflowSlug);
|
|
312
|
+
}
|
|
313
|
+
return writer;
|
|
314
|
+
},
|
|
315
|
+
decode(input, length) {
|
|
316
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
317
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
318
|
+
const message = createBaseGetWorkflowBySlugRequest();
|
|
319
|
+
while (reader.pos < end) {
|
|
320
|
+
const tag = reader.uint32();
|
|
321
|
+
switch (tag >>> 3) {
|
|
322
|
+
case 1: {
|
|
323
|
+
if (tag !== 10) {
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
message.organizationId = reader.string();
|
|
327
|
+
continue;
|
|
328
|
+
}
|
|
329
|
+
case 2: {
|
|
330
|
+
if (tag !== 18) {
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
message.projectSlug = reader.string();
|
|
334
|
+
continue;
|
|
335
|
+
}
|
|
336
|
+
case 3: {
|
|
337
|
+
if (tag !== 26) {
|
|
338
|
+
break;
|
|
339
|
+
}
|
|
340
|
+
message.workflowSlug = reader.string();
|
|
341
|
+
continue;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
345
|
+
break;
|
|
346
|
+
}
|
|
347
|
+
reader.skip(tag & 7);
|
|
348
|
+
}
|
|
349
|
+
return message;
|
|
350
|
+
},
|
|
351
|
+
fromJSON(object) {
|
|
352
|
+
return {
|
|
353
|
+
organizationId: isSet(object.organizationId)
|
|
354
|
+
? globalThis.String(object.organizationId)
|
|
355
|
+
: isSet(object.organization_id)
|
|
356
|
+
? globalThis.String(object.organization_id)
|
|
357
|
+
: "",
|
|
358
|
+
projectSlug: isSet(object.projectSlug)
|
|
359
|
+
? globalThis.String(object.projectSlug)
|
|
360
|
+
: isSet(object.project_slug)
|
|
361
|
+
? globalThis.String(object.project_slug)
|
|
362
|
+
: "",
|
|
363
|
+
workflowSlug: isSet(object.workflowSlug)
|
|
364
|
+
? globalThis.String(object.workflowSlug)
|
|
365
|
+
: isSet(object.workflow_slug)
|
|
366
|
+
? globalThis.String(object.workflow_slug)
|
|
367
|
+
: "",
|
|
368
|
+
};
|
|
369
|
+
},
|
|
370
|
+
toJSON(message) {
|
|
371
|
+
const obj = {};
|
|
372
|
+
if (message.organizationId !== "") {
|
|
373
|
+
obj.organizationId = message.organizationId;
|
|
374
|
+
}
|
|
375
|
+
if (message.projectSlug !== "") {
|
|
376
|
+
obj.projectSlug = message.projectSlug;
|
|
377
|
+
}
|
|
378
|
+
if (message.workflowSlug !== "") {
|
|
379
|
+
obj.workflowSlug = message.workflowSlug;
|
|
380
|
+
}
|
|
381
|
+
return obj;
|
|
382
|
+
},
|
|
383
|
+
create(base) {
|
|
384
|
+
return exports.GetWorkflowBySlugRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
385
|
+
},
|
|
386
|
+
fromPartial(object) {
|
|
387
|
+
var _a, _b, _c;
|
|
388
|
+
const message = createBaseGetWorkflowBySlugRequest();
|
|
389
|
+
message.organizationId = (_a = object.organizationId) !== null && _a !== void 0 ? _a : "";
|
|
390
|
+
message.projectSlug = (_b = object.projectSlug) !== null && _b !== void 0 ? _b : "";
|
|
391
|
+
message.workflowSlug = (_c = object.workflowSlug) !== null && _c !== void 0 ? _c : "";
|
|
392
|
+
return message;
|
|
393
|
+
},
|
|
394
|
+
};
|
|
395
|
+
function createBaseGetWorkflowBySlugResponse() {
|
|
396
|
+
return { workflow: undefined };
|
|
397
|
+
}
|
|
398
|
+
exports.GetWorkflowBySlugResponse = {
|
|
399
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
400
|
+
if (message.workflow !== undefined) {
|
|
401
|
+
workflow_pb_1.Workflow.encode(message.workflow, writer.uint32(10).fork()).join();
|
|
402
|
+
}
|
|
403
|
+
return writer;
|
|
404
|
+
},
|
|
405
|
+
decode(input, length) {
|
|
406
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
407
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
408
|
+
const message = createBaseGetWorkflowBySlugResponse();
|
|
409
|
+
while (reader.pos < end) {
|
|
410
|
+
const tag = reader.uint32();
|
|
411
|
+
switch (tag >>> 3) {
|
|
412
|
+
case 1: {
|
|
413
|
+
if (tag !== 10) {
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
message.workflow = workflow_pb_1.Workflow.decode(reader, reader.uint32());
|
|
417
|
+
continue;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
421
|
+
break;
|
|
422
|
+
}
|
|
423
|
+
reader.skip(tag & 7);
|
|
424
|
+
}
|
|
425
|
+
return message;
|
|
426
|
+
},
|
|
427
|
+
fromJSON(object) {
|
|
428
|
+
return { workflow: isSet(object.workflow) ? workflow_pb_1.Workflow.fromJSON(object.workflow) : undefined };
|
|
429
|
+
},
|
|
430
|
+
toJSON(message) {
|
|
431
|
+
const obj = {};
|
|
432
|
+
if (message.workflow !== undefined) {
|
|
433
|
+
obj.workflow = workflow_pb_1.Workflow.toJSON(message.workflow);
|
|
434
|
+
}
|
|
435
|
+
return obj;
|
|
436
|
+
},
|
|
437
|
+
create(base) {
|
|
438
|
+
return exports.GetWorkflowBySlugResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
439
|
+
},
|
|
440
|
+
fromPartial(object) {
|
|
441
|
+
const message = createBaseGetWorkflowBySlugResponse();
|
|
442
|
+
message.workflow = (object.workflow !== undefined && object.workflow !== null)
|
|
443
|
+
? workflow_pb_1.Workflow.fromPartial(object.workflow)
|
|
444
|
+
: undefined;
|
|
445
|
+
return message;
|
|
446
|
+
},
|
|
447
|
+
};
|
|
284
448
|
function createBaseListWorkflowsRequest() {
|
|
285
449
|
return { projectId: "", pageSize: 0, pageToken: "", includeArchived: false };
|
|
286
450
|
}
|
|
@@ -474,7 +638,7 @@ exports.ListWorkflowsResponse = {
|
|
|
474
638
|
},
|
|
475
639
|
};
|
|
476
640
|
function createBaseUpdateWorkflowRequest() {
|
|
477
|
-
return { projectId: "", workflowId: "", name: "", description: "", status: 0 };
|
|
641
|
+
return { projectId: "", workflowId: "", name: "", description: "", status: 0, slug: "" };
|
|
478
642
|
}
|
|
479
643
|
exports.UpdateWorkflowRequest = {
|
|
480
644
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -493,6 +657,9 @@ exports.UpdateWorkflowRequest = {
|
|
|
493
657
|
if (message.status !== 0) {
|
|
494
658
|
writer.uint32(40).int32(message.status);
|
|
495
659
|
}
|
|
660
|
+
if (message.slug !== "") {
|
|
661
|
+
writer.uint32(50).string(message.slug);
|
|
662
|
+
}
|
|
496
663
|
return writer;
|
|
497
664
|
},
|
|
498
665
|
decode(input, length) {
|
|
@@ -537,6 +704,13 @@ exports.UpdateWorkflowRequest = {
|
|
|
537
704
|
message.status = reader.int32();
|
|
538
705
|
continue;
|
|
539
706
|
}
|
|
707
|
+
case 6: {
|
|
708
|
+
if (tag !== 50) {
|
|
709
|
+
break;
|
|
710
|
+
}
|
|
711
|
+
message.slug = reader.string();
|
|
712
|
+
continue;
|
|
713
|
+
}
|
|
540
714
|
}
|
|
541
715
|
if ((tag & 7) === 4 || tag === 0) {
|
|
542
716
|
break;
|
|
@@ -560,6 +734,7 @@ exports.UpdateWorkflowRequest = {
|
|
|
560
734
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
561
735
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
562
736
|
status: isSet(object.status) ? (0, workflow_pb_1.workflowStatusFromJSON)(object.status) : 0,
|
|
737
|
+
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
563
738
|
};
|
|
564
739
|
},
|
|
565
740
|
toJSON(message) {
|
|
@@ -579,19 +754,23 @@ exports.UpdateWorkflowRequest = {
|
|
|
579
754
|
if (message.status !== 0) {
|
|
580
755
|
obj.status = (0, workflow_pb_1.workflowStatusToJSON)(message.status);
|
|
581
756
|
}
|
|
757
|
+
if (message.slug !== "") {
|
|
758
|
+
obj.slug = message.slug;
|
|
759
|
+
}
|
|
582
760
|
return obj;
|
|
583
761
|
},
|
|
584
762
|
create(base) {
|
|
585
763
|
return exports.UpdateWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
586
764
|
},
|
|
587
765
|
fromPartial(object) {
|
|
588
|
-
var _a, _b, _c, _d, _e;
|
|
766
|
+
var _a, _b, _c, _d, _e, _f;
|
|
589
767
|
const message = createBaseUpdateWorkflowRequest();
|
|
590
768
|
message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
|
|
591
769
|
message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
|
|
592
770
|
message.name = (_c = object.name) !== null && _c !== void 0 ? _c : "";
|
|
593
771
|
message.description = (_d = object.description) !== null && _d !== void 0 ? _d : "";
|
|
594
772
|
message.status = (_e = object.status) !== null && _e !== void 0 ? _e : 0;
|
|
773
|
+
message.slug = (_f = object.slug) !== null && _f !== void 0 ? _f : "";
|
|
595
774
|
return message;
|
|
596
775
|
},
|
|
597
776
|
};
|
|
@@ -1222,6 +1401,7 @@ class WorkflowServiceClientImpl {
|
|
|
1222
1401
|
this.rpc = rpc;
|
|
1223
1402
|
this.CreateWorkflow = this.CreateWorkflow.bind(this);
|
|
1224
1403
|
this.GetWorkflow = this.GetWorkflow.bind(this);
|
|
1404
|
+
this.GetWorkflowBySlug = this.GetWorkflowBySlug.bind(this);
|
|
1225
1405
|
this.ListWorkflows = this.ListWorkflows.bind(this);
|
|
1226
1406
|
this.UpdateWorkflow = this.UpdateWorkflow.bind(this);
|
|
1227
1407
|
this.ArchiveWorkflow = this.ArchiveWorkflow.bind(this);
|
|
@@ -1239,6 +1419,11 @@ class WorkflowServiceClientImpl {
|
|
|
1239
1419
|
const promise = this.rpc.request(this.service, "GetWorkflow", data);
|
|
1240
1420
|
return promise.then((data) => exports.GetWorkflowResponse.decode(new wire_1.BinaryReader(data)));
|
|
1241
1421
|
}
|
|
1422
|
+
GetWorkflowBySlug(request) {
|
|
1423
|
+
const data = exports.GetWorkflowBySlugRequest.encode(request).finish();
|
|
1424
|
+
const promise = this.rpc.request(this.service, "GetWorkflowBySlug", data);
|
|
1425
|
+
return promise.then((data) => exports.GetWorkflowBySlugResponse.decode(new wire_1.BinaryReader(data)));
|
|
1426
|
+
}
|
|
1242
1427
|
ListWorkflows(request) {
|
|
1243
1428
|
const data = exports.ListWorkflowsRequest.encode(request).finish();
|
|
1244
1429
|
const promise = this.rpc.request(this.service, "ListWorkflows", data);
|
|
@@ -1398,6 +1583,109 @@ exports.WorkflowServiceDefinition = {
|
|
|
1398
1583
|
},
|
|
1399
1584
|
},
|
|
1400
1585
|
},
|
|
1586
|
+
getWorkflowBySlug: {
|
|
1587
|
+
name: "GetWorkflowBySlug",
|
|
1588
|
+
requestType: exports.GetWorkflowBySlugRequest,
|
|
1589
|
+
requestStream: false,
|
|
1590
|
+
responseType: exports.GetWorkflowBySlugResponse,
|
|
1591
|
+
responseStream: false,
|
|
1592
|
+
options: {
|
|
1593
|
+
_unknownFields: {
|
|
1594
|
+
578365826: [
|
|
1595
|
+
new Uint8Array([
|
|
1596
|
+
87,
|
|
1597
|
+
18,
|
|
1598
|
+
85,
|
|
1599
|
+
47,
|
|
1600
|
+
118,
|
|
1601
|
+
49,
|
|
1602
|
+
47,
|
|
1603
|
+
111,
|
|
1604
|
+
114,
|
|
1605
|
+
103,
|
|
1606
|
+
97,
|
|
1607
|
+
110,
|
|
1608
|
+
105,
|
|
1609
|
+
122,
|
|
1610
|
+
97,
|
|
1611
|
+
116,
|
|
1612
|
+
105,
|
|
1613
|
+
111,
|
|
1614
|
+
110,
|
|
1615
|
+
115,
|
|
1616
|
+
47,
|
|
1617
|
+
123,
|
|
1618
|
+
111,
|
|
1619
|
+
114,
|
|
1620
|
+
103,
|
|
1621
|
+
97,
|
|
1622
|
+
110,
|
|
1623
|
+
105,
|
|
1624
|
+
122,
|
|
1625
|
+
97,
|
|
1626
|
+
116,
|
|
1627
|
+
105,
|
|
1628
|
+
111,
|
|
1629
|
+
110,
|
|
1630
|
+
95,
|
|
1631
|
+
105,
|
|
1632
|
+
100,
|
|
1633
|
+
125,
|
|
1634
|
+
47,
|
|
1635
|
+
112,
|
|
1636
|
+
114,
|
|
1637
|
+
111,
|
|
1638
|
+
106,
|
|
1639
|
+
101,
|
|
1640
|
+
99,
|
|
1641
|
+
116,
|
|
1642
|
+
115,
|
|
1643
|
+
47,
|
|
1644
|
+
123,
|
|
1645
|
+
112,
|
|
1646
|
+
114,
|
|
1647
|
+
111,
|
|
1648
|
+
106,
|
|
1649
|
+
101,
|
|
1650
|
+
99,
|
|
1651
|
+
116,
|
|
1652
|
+
95,
|
|
1653
|
+
115,
|
|
1654
|
+
108,
|
|
1655
|
+
117,
|
|
1656
|
+
103,
|
|
1657
|
+
125,
|
|
1658
|
+
47,
|
|
1659
|
+
119,
|
|
1660
|
+
111,
|
|
1661
|
+
114,
|
|
1662
|
+
107,
|
|
1663
|
+
102,
|
|
1664
|
+
108,
|
|
1665
|
+
111,
|
|
1666
|
+
119,
|
|
1667
|
+
115,
|
|
1668
|
+
47,
|
|
1669
|
+
123,
|
|
1670
|
+
119,
|
|
1671
|
+
111,
|
|
1672
|
+
114,
|
|
1673
|
+
107,
|
|
1674
|
+
102,
|
|
1675
|
+
108,
|
|
1676
|
+
111,
|
|
1677
|
+
119,
|
|
1678
|
+
95,
|
|
1679
|
+
115,
|
|
1680
|
+
108,
|
|
1681
|
+
117,
|
|
1682
|
+
103,
|
|
1683
|
+
125,
|
|
1684
|
+
]),
|
|
1685
|
+
],
|
|
1686
|
+
},
|
|
1687
|
+
},
|
|
1688
|
+
},
|
|
1401
1689
|
listWorkflows: {
|
|
1402
1690
|
name: "ListWorkflows",
|
|
1403
1691
|
requestType: exports.ListWorkflowsRequest,
|
|
@@ -209,6 +209,7 @@ function createBaseWorkflow() {
|
|
|
209
209
|
createdAt: undefined,
|
|
210
210
|
updatedAt: undefined,
|
|
211
211
|
archivedAt: undefined,
|
|
212
|
+
slug: "",
|
|
212
213
|
};
|
|
213
214
|
}
|
|
214
215
|
exports.Workflow = {
|
|
@@ -237,6 +238,9 @@ exports.Workflow = {
|
|
|
237
238
|
if (message.archivedAt !== undefined) {
|
|
238
239
|
timestamp_pb_1.Timestamp.encode(toTimestamp(message.archivedAt), writer.uint32(66).fork()).join();
|
|
239
240
|
}
|
|
241
|
+
if (message.slug !== "") {
|
|
242
|
+
writer.uint32(74).string(message.slug);
|
|
243
|
+
}
|
|
240
244
|
return writer;
|
|
241
245
|
},
|
|
242
246
|
decode(input, length) {
|
|
@@ -302,6 +306,13 @@ exports.Workflow = {
|
|
|
302
306
|
message.archivedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
303
307
|
continue;
|
|
304
308
|
}
|
|
309
|
+
case 9: {
|
|
310
|
+
if (tag !== 74) {
|
|
311
|
+
break;
|
|
312
|
+
}
|
|
313
|
+
message.slug = reader.string();
|
|
314
|
+
continue;
|
|
315
|
+
}
|
|
305
316
|
}
|
|
306
317
|
if ((tag & 7) === 4 || tag === 0) {
|
|
307
318
|
break;
|
|
@@ -340,6 +351,7 @@ exports.Workflow = {
|
|
|
340
351
|
: isSet(object.archived_at)
|
|
341
352
|
? fromJsonTimestamp(object.archived_at)
|
|
342
353
|
: undefined,
|
|
354
|
+
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
343
355
|
};
|
|
344
356
|
},
|
|
345
357
|
toJSON(message) {
|
|
@@ -368,13 +380,16 @@ exports.Workflow = {
|
|
|
368
380
|
if (message.archivedAt !== undefined) {
|
|
369
381
|
obj.archivedAt = message.archivedAt.toISOString();
|
|
370
382
|
}
|
|
383
|
+
if (message.slug !== "") {
|
|
384
|
+
obj.slug = message.slug;
|
|
385
|
+
}
|
|
371
386
|
return obj;
|
|
372
387
|
},
|
|
373
388
|
create(base) {
|
|
374
389
|
return exports.Workflow.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
375
390
|
},
|
|
376
391
|
fromPartial(object) {
|
|
377
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
392
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
378
393
|
const message = createBaseWorkflow();
|
|
379
394
|
message.workflowId = (_a = object.workflowId) !== null && _a !== void 0 ? _a : "";
|
|
380
395
|
message.projectId = (_b = object.projectId) !== null && _b !== void 0 ? _b : "";
|
|
@@ -384,6 +399,7 @@ exports.Workflow = {
|
|
|
384
399
|
message.createdAt = (_f = object.createdAt) !== null && _f !== void 0 ? _f : undefined;
|
|
385
400
|
message.updatedAt = (_g = object.updatedAt) !== null && _g !== void 0 ? _g : undefined;
|
|
386
401
|
message.archivedAt = (_h = object.archivedAt) !== null && _h !== void 0 ? _h : undefined;
|
|
402
|
+
message.slug = (_j = object.slug) !== null && _j !== void 0 ? _j : "";
|
|
387
403
|
return message;
|
|
388
404
|
},
|
|
389
405
|
};
|