weave-typescript 0.11.14 → 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 +54 -0
- package/dist/weaveapi/data/v1/data.pb.js +411 -0
- package/dist/weaveapi/data/v1/service.pb.d.ts +296 -0
- package/dist/weaveapi/data/v1/service.pb.js +2779 -0
- package/dist/weaveapi/input/v1/input.pb.d.ts +77 -0
- package/dist/weaveapi/input/v1/input.pb.js +632 -0
- package/dist/weaveapi/input/v1/service.pb.d.ts +390 -0
- package/dist/weaveapi/input/v1/service.pb.js +3612 -0
- package/dist/weaveapi/integration/v1/integration.pb.d.ts +67 -0
- package/dist/weaveapi/integration/v1/integration.pb.js +486 -0
- package/dist/weaveapi/integration/v1/service.pb.d.ts +318 -0
- package/dist/weaveapi/integration/v1/service.pb.js +2994 -0
- 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 +81 -0
- package/dist/weaveapi/report/v1/report.pb.js +678 -0
- package/dist/weaveapi/report/v1/service.pb.d.ts +194 -0
- package/dist/weaveapi/report/v1/service.pb.js +1925 -0
- package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +70 -0
- package/dist/weaveapi/requirement/v1/requirement.pb.js +570 -0
- package/dist/weaveapi/requirement/v1/service.pb.d.ts +390 -0
- package/dist/weaveapi/requirement/v1/service.pb.js +3638 -0
- package/dist/weaveapi/run/v1/run.pb.d.ts +117 -0
- package/dist/weaveapi/run/v1/run.pb.js +1155 -0
- package/dist/weaveapi/run/v1/service.pb.d.ts +229 -0
- package/dist/weaveapi/run/v1/service.pb.js +2428 -0
- package/dist/weaveapi/script/v1/script.pb.d.ts +102 -0
- package/dist/weaveapi/script/v1/script.pb.js +1025 -0
- package/dist/weaveapi/script/v1/service.pb.d.ts +502 -0
- package/dist/weaveapi/script/v1/service.pb.js +4873 -0
- package/dist/weaveapi/storage/v1/service.pb.d.ts +4 -0
- package/dist/weaveapi/storage/v1/service.pb.js +50 -7
- package/dist/weaveapi/storage/v1/storage.pb.d.ts +2 -0
- package/dist/weaveapi/storage/v1/storage.pb.js +23 -0
- package/dist/weaveapi/storage/v1/vcs.pb.d.ts +75 -0
- package/dist/weaveapi/storage/v1/vcs.pb.js +864 -0
- package/dist/weaveapi/suite/v1/service.pb.d.ts +539 -0
- package/dist/weaveapi/suite/v1/service.pb.js +5281 -0
- package/dist/weaveapi/suite/v1/suite.pb.d.ts +92 -0
- package/dist/weaveapi/suite/v1/suite.pb.js +876 -0
- package/dist/weaveapi/testcase/v1/service.pb.d.ts +498 -0
- package/dist/weaveapi/testcase/v1/service.pb.js +4730 -0
- package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +91 -0
- package/dist/weaveapi/testcase/v1/testcase.pb.js +794 -0
- 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 +206 -0
- package/dist/weavesql/weavedb/data_asset_sql.js +335 -0
- package/dist/weavesql/weavedb/input_sql.d.ts +293 -0
- package/dist/weavesql/weavedb/input_sql.js +500 -0
- package/dist/weavesql/weavedb/integration_sql.d.ts +236 -0
- package/dist/weavesql/weavedb/integration_sql.js +377 -0
- 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 +192 -0
- package/dist/weavesql/weavedb/report_sql.js +308 -0
- package/dist/weavesql/weavedb/requirement_sql.d.ts +231 -0
- package/dist/weavesql/weavedb/requirement_sql.js +399 -0
- package/dist/weavesql/weavedb/run_sql.d.ts +283 -0
- package/dist/weavesql/weavedb/run_sql.js +462 -0
- package/dist/weavesql/weavedb/suite_sql.d.ts +354 -0
- package/dist/weavesql/weavedb/suite_sql.js +631 -0
- package/dist/weavesql/weavedb/test_case_sql.d.ts +325 -0
- package/dist/weavesql/weavedb/test_case_sql.js +563 -0
- package/dist/weavesql/weavedb/test_script_sql.d.ts +354 -0
- package/dist/weavesql/weavedb/test_script_sql.js +605 -0
- package/dist/weavesql/weavedb/traceability_sql.d.ts +117 -0
- package/dist/weavesql/weavedb/traceability_sql.js +363 -0
- package/dist/weavesql/weavedb/workflow_sql.d.ts +30 -5
- package/dist/weavesql/weavedb/workflow_sql.js +76 -38
- package/package.json +1 -1
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { QueryArrayConfig, QueryArrayResult } from "pg";
|
|
2
|
+
interface Client {
|
|
3
|
+
query: (config: QueryArrayConfig) => Promise<QueryArrayResult>;
|
|
4
|
+
}
|
|
5
|
+
export declare const createTestCaseQuery = "-- name: CreateTestCase :one\nINSERT INTO weave_v1.test_case (\n id,\n project_id,\n key,\n title,\n description,\n type,\n status,\n priority,\n metadata\n)\nVALUES (\n $1,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7,\n $8,\n $9\n)\nRETURNING id, project_id, key, title, description, type, status, priority, current_version_id, metadata, created_at, updated_at, archived_at";
|
|
6
|
+
export interface CreateTestCaseArgs {
|
|
7
|
+
id: string;
|
|
8
|
+
projectId: string;
|
|
9
|
+
key: string;
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
type: string;
|
|
13
|
+
status: string;
|
|
14
|
+
priority: string;
|
|
15
|
+
metadata: any;
|
|
16
|
+
}
|
|
17
|
+
export interface CreateTestCaseRow {
|
|
18
|
+
id: string;
|
|
19
|
+
projectId: string;
|
|
20
|
+
key: string;
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
type: string;
|
|
24
|
+
status: string;
|
|
25
|
+
priority: string;
|
|
26
|
+
currentVersionId: string | null;
|
|
27
|
+
metadata: any;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
updatedAt: Date;
|
|
30
|
+
archivedAt: Date | null;
|
|
31
|
+
}
|
|
32
|
+
export declare function createTestCase(client: Client, args: CreateTestCaseArgs): Promise<CreateTestCaseRow | null>;
|
|
33
|
+
export declare const getTestCaseQuery = "-- name: GetTestCase :one\nSELECT id, project_id, key, title, description, type, status, priority, current_version_id, metadata, created_at, updated_at, archived_at\nFROM weave_v1.test_case\nWHERE id = $1\n AND project_id = $2";
|
|
34
|
+
export interface GetTestCaseArgs {
|
|
35
|
+
id: string;
|
|
36
|
+
projectId: string;
|
|
37
|
+
}
|
|
38
|
+
export interface GetTestCaseRow {
|
|
39
|
+
id: string;
|
|
40
|
+
projectId: string;
|
|
41
|
+
key: string;
|
|
42
|
+
title: string;
|
|
43
|
+
description: string;
|
|
44
|
+
type: string;
|
|
45
|
+
status: string;
|
|
46
|
+
priority: string;
|
|
47
|
+
currentVersionId: string | null;
|
|
48
|
+
metadata: any;
|
|
49
|
+
createdAt: Date;
|
|
50
|
+
updatedAt: Date;
|
|
51
|
+
archivedAt: Date | null;
|
|
52
|
+
}
|
|
53
|
+
export declare function getTestCase(client: Client, args: GetTestCaseArgs): Promise<GetTestCaseRow | null>;
|
|
54
|
+
export declare const listTestCasesByProjectQuery = "-- name: ListTestCasesByProject :many\nSELECT id, project_id, key, title, description, type, status, priority, current_version_id, metadata, created_at, updated_at, archived_at\nFROM weave_v1.test_case\nWHERE project_id = $1\n AND ($2::BOOLEAN OR archived_at IS NULL)\nORDER BY updated_at DESC\nLIMIT $4\nOFFSET $3";
|
|
55
|
+
export interface ListTestCasesByProjectArgs {
|
|
56
|
+
projectId: string;
|
|
57
|
+
includeArchived: boolean;
|
|
58
|
+
pageOffset: string;
|
|
59
|
+
pageSize: string;
|
|
60
|
+
}
|
|
61
|
+
export interface ListTestCasesByProjectRow {
|
|
62
|
+
id: string;
|
|
63
|
+
projectId: string;
|
|
64
|
+
key: string;
|
|
65
|
+
title: string;
|
|
66
|
+
description: string;
|
|
67
|
+
type: string;
|
|
68
|
+
status: string;
|
|
69
|
+
priority: string;
|
|
70
|
+
currentVersionId: string | null;
|
|
71
|
+
metadata: any;
|
|
72
|
+
createdAt: Date;
|
|
73
|
+
updatedAt: Date;
|
|
74
|
+
archivedAt: Date | null;
|
|
75
|
+
}
|
|
76
|
+
export declare function listTestCasesByProject(client: Client, args: ListTestCasesByProjectArgs): Promise<ListTestCasesByProjectRow[]>;
|
|
77
|
+
export declare const listTestCasesByWorkflowQuery = "-- name: ListTestCasesByWorkflow :many\nSELECT c.id, c.project_id, c.key, c.title, c.description, c.type, c.status, c.priority, c.current_version_id, c.metadata, c.created_at, c.updated_at, c.archived_at\nFROM weave_v1.test_case c\n INNER JOIN weave_v1.workflow_test_case b\n ON b.test_case_id = c.id\n AND b.project_id = c.project_id\nWHERE b.project_id = $1\n AND b.workflow_id = $2\n AND ($3::BOOLEAN OR c.archived_at IS NULL)\nORDER BY c.updated_at DESC\nLIMIT $5\nOFFSET $4";
|
|
78
|
+
export interface ListTestCasesByWorkflowArgs {
|
|
79
|
+
projectId: string;
|
|
80
|
+
workflowId: string;
|
|
81
|
+
includeArchived: boolean;
|
|
82
|
+
pageOffset: string;
|
|
83
|
+
pageSize: string;
|
|
84
|
+
}
|
|
85
|
+
export interface ListTestCasesByWorkflowRow {
|
|
86
|
+
id: string;
|
|
87
|
+
projectId: string;
|
|
88
|
+
key: string;
|
|
89
|
+
title: string;
|
|
90
|
+
description: string;
|
|
91
|
+
type: string;
|
|
92
|
+
status: string;
|
|
93
|
+
priority: string;
|
|
94
|
+
currentVersionId: string | null;
|
|
95
|
+
metadata: any;
|
|
96
|
+
createdAt: Date;
|
|
97
|
+
updatedAt: Date;
|
|
98
|
+
archivedAt: Date | null;
|
|
99
|
+
}
|
|
100
|
+
export declare function listTestCasesByWorkflow(client: Client, args: ListTestCasesByWorkflowArgs): Promise<ListTestCasesByWorkflowRow[]>;
|
|
101
|
+
export declare const updateTestCaseQuery = "-- name: UpdateTestCase :one\nUPDATE weave_v1.test_case\nSET key = $1,\n title = $2,\n description = $3,\n type = $4,\n status = $5,\n priority = $6,\n metadata = $7,\n updated_at = NOW()\nWHERE id = $8\n AND project_id = $9\nRETURNING id, project_id, key, title, description, type, status, priority, current_version_id, metadata, created_at, updated_at, archived_at";
|
|
102
|
+
export interface UpdateTestCaseArgs {
|
|
103
|
+
key: string;
|
|
104
|
+
title: string;
|
|
105
|
+
description: string;
|
|
106
|
+
type: string;
|
|
107
|
+
status: string;
|
|
108
|
+
priority: string;
|
|
109
|
+
metadata: any;
|
|
110
|
+
id: string;
|
|
111
|
+
projectId: string;
|
|
112
|
+
}
|
|
113
|
+
export interface UpdateTestCaseRow {
|
|
114
|
+
id: string;
|
|
115
|
+
projectId: string;
|
|
116
|
+
key: string;
|
|
117
|
+
title: string;
|
|
118
|
+
description: string;
|
|
119
|
+
type: string;
|
|
120
|
+
status: string;
|
|
121
|
+
priority: string;
|
|
122
|
+
currentVersionId: string | null;
|
|
123
|
+
metadata: any;
|
|
124
|
+
createdAt: Date;
|
|
125
|
+
updatedAt: Date;
|
|
126
|
+
archivedAt: Date | null;
|
|
127
|
+
}
|
|
128
|
+
export declare function updateTestCase(client: Client, args: UpdateTestCaseArgs): Promise<UpdateTestCaseRow | null>;
|
|
129
|
+
export declare const archiveTestCaseQuery = "-- name: ArchiveTestCase :one\nUPDATE weave_v1.test_case\nSET status = 'archived',\n archived_at = NOW(),\n updated_at = NOW()\nWHERE id = $1\n AND project_id = $2\nRETURNING id, project_id, key, title, description, type, status, priority, current_version_id, metadata, created_at, updated_at, archived_at";
|
|
130
|
+
export interface ArchiveTestCaseArgs {
|
|
131
|
+
id: string;
|
|
132
|
+
projectId: string;
|
|
133
|
+
}
|
|
134
|
+
export interface ArchiveTestCaseRow {
|
|
135
|
+
id: string;
|
|
136
|
+
projectId: string;
|
|
137
|
+
key: string;
|
|
138
|
+
title: string;
|
|
139
|
+
description: string;
|
|
140
|
+
type: string;
|
|
141
|
+
status: string;
|
|
142
|
+
priority: string;
|
|
143
|
+
currentVersionId: string | null;
|
|
144
|
+
metadata: any;
|
|
145
|
+
createdAt: Date;
|
|
146
|
+
updatedAt: Date;
|
|
147
|
+
archivedAt: Date | null;
|
|
148
|
+
}
|
|
149
|
+
export declare function archiveTestCase(client: Client, args: ArchiveTestCaseArgs): Promise<ArchiveTestCaseRow | null>;
|
|
150
|
+
export declare const deleteTestCaseQuery = "-- name: DeleteTestCase :exec\nDELETE\nFROM weave_v1.test_case\nWHERE id = $1\n AND project_id = $2";
|
|
151
|
+
export interface DeleteTestCaseArgs {
|
|
152
|
+
id: string;
|
|
153
|
+
projectId: string;
|
|
154
|
+
}
|
|
155
|
+
export declare function deleteTestCase(client: Client, args: DeleteTestCaseArgs): Promise<void>;
|
|
156
|
+
export declare const attachTestCaseToWorkflowQuery = "-- name: AttachTestCaseToWorkflow :one\nINSERT INTO weave_v1.workflow_test_case (\n project_id,\n workflow_id,\n test_case_id,\n attached_by,\n metadata\n)\nVALUES (\n $1,\n $2,\n $3,\n $4,\n $5\n)\nON CONFLICT (workflow_id, test_case_id) DO UPDATE\nSET attached_by = EXCLUDED.attached_by,\n metadata = EXCLUDED.metadata,\n attached_at = NOW()\nRETURNING project_id, workflow_id, test_case_id, attached_by, metadata, attached_at";
|
|
157
|
+
export interface AttachTestCaseToWorkflowArgs {
|
|
158
|
+
projectId: string;
|
|
159
|
+
workflowId: string;
|
|
160
|
+
testCaseId: string;
|
|
161
|
+
attachedBy: string;
|
|
162
|
+
metadata: any;
|
|
163
|
+
}
|
|
164
|
+
export interface AttachTestCaseToWorkflowRow {
|
|
165
|
+
projectId: string;
|
|
166
|
+
workflowId: string;
|
|
167
|
+
testCaseId: string;
|
|
168
|
+
attachedBy: string;
|
|
169
|
+
metadata: any;
|
|
170
|
+
attachedAt: Date;
|
|
171
|
+
}
|
|
172
|
+
export declare function attachTestCaseToWorkflow(client: Client, args: AttachTestCaseToWorkflowArgs): Promise<AttachTestCaseToWorkflowRow | null>;
|
|
173
|
+
export declare const detachTestCaseFromWorkflowQuery = "-- name: DetachTestCaseFromWorkflow :exec\nDELETE\nFROM weave_v1.workflow_test_case\nWHERE project_id = $1\n AND workflow_id = $2\n AND test_case_id = $3";
|
|
174
|
+
export interface DetachTestCaseFromWorkflowArgs {
|
|
175
|
+
projectId: string;
|
|
176
|
+
workflowId: string;
|
|
177
|
+
testCaseId: string;
|
|
178
|
+
}
|
|
179
|
+
export declare function detachTestCaseFromWorkflow(client: Client, args: DetachTestCaseFromWorkflowArgs): Promise<void>;
|
|
180
|
+
export declare const listWorkflowTestCaseBindingsQuery = "-- name: ListWorkflowTestCaseBindings :many\nSELECT project_id, workflow_id, test_case_id, attached_by, metadata, attached_at\nFROM weave_v1.workflow_test_case\nWHERE project_id = $1\n AND workflow_id = $2\nORDER BY attached_at DESC\nLIMIT $4\nOFFSET $3";
|
|
181
|
+
export interface ListWorkflowTestCaseBindingsArgs {
|
|
182
|
+
projectId: string;
|
|
183
|
+
workflowId: string;
|
|
184
|
+
pageOffset: string;
|
|
185
|
+
pageSize: string;
|
|
186
|
+
}
|
|
187
|
+
export interface ListWorkflowTestCaseBindingsRow {
|
|
188
|
+
projectId: string;
|
|
189
|
+
workflowId: string;
|
|
190
|
+
testCaseId: string;
|
|
191
|
+
attachedBy: string;
|
|
192
|
+
metadata: any;
|
|
193
|
+
attachedAt: Date;
|
|
194
|
+
}
|
|
195
|
+
export declare function listWorkflowTestCaseBindings(client: Client, args: ListWorkflowTestCaseBindingsArgs): Promise<ListWorkflowTestCaseBindingsRow[]>;
|
|
196
|
+
export declare const createTestCaseVersionQuery = "-- name: CreateTestCaseVersion :one\nINSERT INTO weave_v1.test_case_version (\n id,\n test_case_id,\n version_number,\n objective,\n preconditions,\n steps,\n expected_results,\n metadata,\n prompt_version\n)\nVALUES (\n $1,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7,\n $8,\n $9\n)\nRETURNING id, test_case_id, version_number, objective, preconditions, steps, expected_results, metadata, prompt_version, created_at";
|
|
197
|
+
export interface CreateTestCaseVersionArgs {
|
|
198
|
+
id: string;
|
|
199
|
+
testCaseId: string;
|
|
200
|
+
versionNumber: number;
|
|
201
|
+
objective: string;
|
|
202
|
+
preconditions: any;
|
|
203
|
+
steps: any;
|
|
204
|
+
expectedResults: any;
|
|
205
|
+
metadata: any;
|
|
206
|
+
promptVersion: string;
|
|
207
|
+
}
|
|
208
|
+
export interface CreateTestCaseVersionRow {
|
|
209
|
+
id: string;
|
|
210
|
+
testCaseId: string;
|
|
211
|
+
versionNumber: number;
|
|
212
|
+
objective: string;
|
|
213
|
+
preconditions: any;
|
|
214
|
+
steps: any;
|
|
215
|
+
expectedResults: any;
|
|
216
|
+
metadata: any;
|
|
217
|
+
promptVersion: string;
|
|
218
|
+
createdAt: Date;
|
|
219
|
+
}
|
|
220
|
+
export declare function createTestCaseVersion(client: Client, args: CreateTestCaseVersionArgs): Promise<CreateTestCaseVersionRow | null>;
|
|
221
|
+
export declare const getTestCaseVersionQuery = "-- name: GetTestCaseVersion :one\nSELECT cv.id, cv.test_case_id, cv.version_number, cv.objective, cv.preconditions, cv.steps, cv.expected_results, cv.metadata, cv.prompt_version, cv.created_at\nFROM weave_v1.test_case_version cv\n INNER JOIN weave_v1.test_case c ON c.id = cv.test_case_id\nWHERE cv.id = $1\n AND cv.test_case_id = $2\n AND c.project_id = $3";
|
|
222
|
+
export interface GetTestCaseVersionArgs {
|
|
223
|
+
id: string;
|
|
224
|
+
testCaseId: string;
|
|
225
|
+
projectId: string;
|
|
226
|
+
}
|
|
227
|
+
export interface GetTestCaseVersionRow {
|
|
228
|
+
id: string;
|
|
229
|
+
testCaseId: string;
|
|
230
|
+
versionNumber: number;
|
|
231
|
+
objective: string;
|
|
232
|
+
preconditions: any;
|
|
233
|
+
steps: any;
|
|
234
|
+
expectedResults: any;
|
|
235
|
+
metadata: any;
|
|
236
|
+
promptVersion: string;
|
|
237
|
+
createdAt: Date;
|
|
238
|
+
}
|
|
239
|
+
export declare function getTestCaseVersion(client: Client, args: GetTestCaseVersionArgs): Promise<GetTestCaseVersionRow | null>;
|
|
240
|
+
export declare const listTestCaseVersionsQuery = "-- name: ListTestCaseVersions :many\nSELECT cv.id, cv.test_case_id, cv.version_number, cv.objective, cv.preconditions, cv.steps, cv.expected_results, cv.metadata, cv.prompt_version, cv.created_at\nFROM weave_v1.test_case_version cv\n INNER JOIN weave_v1.test_case c ON c.id = cv.test_case_id\nWHERE cv.test_case_id = $1\n AND c.project_id = $2\nORDER BY cv.version_number DESC\nLIMIT $4\nOFFSET $3";
|
|
241
|
+
export interface ListTestCaseVersionsArgs {
|
|
242
|
+
testCaseId: string;
|
|
243
|
+
projectId: string;
|
|
244
|
+
pageOffset: string;
|
|
245
|
+
pageSize: string;
|
|
246
|
+
}
|
|
247
|
+
export interface ListTestCaseVersionsRow {
|
|
248
|
+
id: string;
|
|
249
|
+
testCaseId: string;
|
|
250
|
+
versionNumber: number;
|
|
251
|
+
objective: string;
|
|
252
|
+
preconditions: any;
|
|
253
|
+
steps: any;
|
|
254
|
+
expectedResults: any;
|
|
255
|
+
metadata: any;
|
|
256
|
+
promptVersion: string;
|
|
257
|
+
createdAt: Date;
|
|
258
|
+
}
|
|
259
|
+
export declare function listTestCaseVersions(client: Client, args: ListTestCaseVersionsArgs): Promise<ListTestCaseVersionsRow[]>;
|
|
260
|
+
export declare const getNextTestCaseVersionNumberQuery = "-- name: GetNextTestCaseVersionNumber :one\nSELECT COALESCE(MAX(version_number), 0)::INTEGER + 1 AS version_number\nFROM weave_v1.test_case_version\nWHERE test_case_id = $1";
|
|
261
|
+
export interface GetNextTestCaseVersionNumberArgs {
|
|
262
|
+
testCaseId: string;
|
|
263
|
+
}
|
|
264
|
+
export interface GetNextTestCaseVersionNumberRow {
|
|
265
|
+
versionNumber: string;
|
|
266
|
+
}
|
|
267
|
+
export declare function getNextTestCaseVersionNumber(client: Client, args: GetNextTestCaseVersionNumberArgs): Promise<GetNextTestCaseVersionNumberRow | null>;
|
|
268
|
+
export declare const setCurrentTestCaseVersionQuery = "-- name: SetCurrentTestCaseVersion :one\nUPDATE weave_v1.test_case\nSET current_version_id = $1,\n updated_at = NOW()\nWHERE id = $2\n AND project_id = $3\nRETURNING id, project_id, key, title, description, type, status, priority, current_version_id, metadata, created_at, updated_at, archived_at";
|
|
269
|
+
export interface SetCurrentTestCaseVersionArgs {
|
|
270
|
+
currentVersionId: string | null;
|
|
271
|
+
id: string;
|
|
272
|
+
projectId: string;
|
|
273
|
+
}
|
|
274
|
+
export interface SetCurrentTestCaseVersionRow {
|
|
275
|
+
id: string;
|
|
276
|
+
projectId: string;
|
|
277
|
+
key: string;
|
|
278
|
+
title: string;
|
|
279
|
+
description: string;
|
|
280
|
+
type: string;
|
|
281
|
+
status: string;
|
|
282
|
+
priority: string;
|
|
283
|
+
currentVersionId: string | null;
|
|
284
|
+
metadata: any;
|
|
285
|
+
createdAt: Date;
|
|
286
|
+
updatedAt: Date;
|
|
287
|
+
archivedAt: Date | null;
|
|
288
|
+
}
|
|
289
|
+
export declare function setCurrentTestCaseVersion(client: Client, args: SetCurrentTestCaseVersionArgs): Promise<SetCurrentTestCaseVersionRow | null>;
|
|
290
|
+
export declare const upsertTestCaseRequirementLinkQuery = "-- name: UpsertTestCaseRequirementLink :one\nINSERT INTO weave_v1.test_case_requirement (\n test_case_id,\n requirement_id,\n coverage_type,\n confidence\n)\nVALUES (\n $1,\n $2,\n $3,\n $4\n)\nON CONFLICT (test_case_id, requirement_id) DO UPDATE\nSET coverage_type = EXCLUDED.coverage_type,\n confidence = EXCLUDED.confidence\nRETURNING test_case_id, requirement_id, coverage_type, confidence, created_at";
|
|
291
|
+
export interface UpsertTestCaseRequirementLinkArgs {
|
|
292
|
+
testCaseId: string;
|
|
293
|
+
requirementId: string;
|
|
294
|
+
coverageType: string;
|
|
295
|
+
confidence: string;
|
|
296
|
+
}
|
|
297
|
+
export interface UpsertTestCaseRequirementLinkRow {
|
|
298
|
+
testCaseId: string;
|
|
299
|
+
requirementId: string;
|
|
300
|
+
coverageType: string;
|
|
301
|
+
confidence: string;
|
|
302
|
+
createdAt: Date;
|
|
303
|
+
}
|
|
304
|
+
export declare function upsertTestCaseRequirementLink(client: Client, args: UpsertTestCaseRequirementLinkArgs): Promise<UpsertTestCaseRequirementLinkRow | null>;
|
|
305
|
+
export declare const deleteTestCaseRequirementLinkQuery = "-- name: DeleteTestCaseRequirementLink :exec\nDELETE\nFROM weave_v1.test_case_requirement cr\nUSING weave_v1.test_case c\nWHERE cr.test_case_id = $1\n AND cr.requirement_id = $2\n AND cr.test_case_id = c.id\n AND c.project_id = $3";
|
|
306
|
+
export interface DeleteTestCaseRequirementLinkArgs {
|
|
307
|
+
testCaseId: string;
|
|
308
|
+
requirementId: string;
|
|
309
|
+
projectId: string;
|
|
310
|
+
}
|
|
311
|
+
export declare function deleteTestCaseRequirementLink(client: Client, args: DeleteTestCaseRequirementLinkArgs): Promise<void>;
|
|
312
|
+
export declare const listTestCaseRequirementLinksQuery = "-- name: ListTestCaseRequirementLinks :many\nSELECT cr.test_case_id, cr.requirement_id, cr.coverage_type, cr.confidence, cr.created_at\nFROM weave_v1.test_case_requirement cr\n INNER JOIN weave_v1.test_case c ON c.id = cr.test_case_id\nWHERE cr.test_case_id = $1\n AND c.project_id = $2\nORDER BY cr.created_at DESC";
|
|
313
|
+
export interface ListTestCaseRequirementLinksArgs {
|
|
314
|
+
testCaseId: string;
|
|
315
|
+
projectId: string;
|
|
316
|
+
}
|
|
317
|
+
export interface ListTestCaseRequirementLinksRow {
|
|
318
|
+
testCaseId: string;
|
|
319
|
+
requirementId: string;
|
|
320
|
+
coverageType: string;
|
|
321
|
+
confidence: string;
|
|
322
|
+
createdAt: Date;
|
|
323
|
+
}
|
|
324
|
+
export declare function listTestCaseRequirementLinks(client: Client, args: ListTestCaseRequirementLinksArgs): Promise<ListTestCaseRequirementLinksRow[]>;
|
|
325
|
+
export {};
|