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
|
@@ -2,10 +2,10 @@ import { QueryArrayConfig, QueryArrayResult } from "pg";
|
|
|
2
2
|
interface Client {
|
|
3
3
|
query: (config: QueryArrayConfig) => Promise<QueryArrayResult>;
|
|
4
4
|
}
|
|
5
|
-
export declare const createTestSuiteQuery = "-- name: CreateTestSuite :one\nINSERT INTO weave_v1.test_suite (\n id,\n
|
|
5
|
+
export declare const createTestSuiteQuery = "-- name: CreateTestSuite :one\nINSERT INTO weave_v1.test_suite (\n id,\n project_id,\n name,\n description,\n status,\n goal,\n current_version,\n execution_profile,\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, name, description, status, goal, current_version, execution_profile, metadata, created_at, updated_at, archived_at";
|
|
6
6
|
export interface CreateTestSuiteArgs {
|
|
7
7
|
id: string;
|
|
8
|
-
|
|
8
|
+
projectId: string;
|
|
9
9
|
name: string;
|
|
10
10
|
description: string;
|
|
11
11
|
status: string;
|
|
@@ -16,7 +16,7 @@ export interface CreateTestSuiteArgs {
|
|
|
16
16
|
}
|
|
17
17
|
export interface CreateTestSuiteRow {
|
|
18
18
|
id: string;
|
|
19
|
-
|
|
19
|
+
projectId: string;
|
|
20
20
|
name: string;
|
|
21
21
|
description: string;
|
|
22
22
|
status: string;
|
|
@@ -29,14 +29,14 @@ export interface CreateTestSuiteRow {
|
|
|
29
29
|
archivedAt: Date | null;
|
|
30
30
|
}
|
|
31
31
|
export declare function createTestSuite(client: Client, args: CreateTestSuiteArgs): Promise<CreateTestSuiteRow | null>;
|
|
32
|
-
export declare const getTestSuiteQuery = "-- name: GetTestSuite :one\nSELECT id,
|
|
32
|
+
export declare const getTestSuiteQuery = "-- name: GetTestSuite :one\nSELECT id, project_id, name, description, status, goal, current_version, execution_profile, metadata, created_at, updated_at, archived_at\nFROM weave_v1.test_suite\nWHERE id = $1\n AND project_id = $2";
|
|
33
33
|
export interface GetTestSuiteArgs {
|
|
34
34
|
id: string;
|
|
35
|
-
|
|
35
|
+
projectId: string;
|
|
36
36
|
}
|
|
37
37
|
export interface GetTestSuiteRow {
|
|
38
38
|
id: string;
|
|
39
|
-
|
|
39
|
+
projectId: string;
|
|
40
40
|
name: string;
|
|
41
41
|
description: string;
|
|
42
42
|
status: string;
|
|
@@ -49,8 +49,31 @@ export interface GetTestSuiteRow {
|
|
|
49
49
|
archivedAt: Date | null;
|
|
50
50
|
}
|
|
51
51
|
export declare function getTestSuite(client: Client, args: GetTestSuiteArgs): Promise<GetTestSuiteRow | null>;
|
|
52
|
-
export declare const
|
|
52
|
+
export declare const listTestSuitesByProjectQuery = "-- name: ListTestSuitesByProject :many\nSELECT id, project_id, name, description, status, goal, current_version, execution_profile, metadata, created_at, updated_at, archived_at\nFROM weave_v1.test_suite\nWHERE project_id = $1\n AND ($2::BOOLEAN OR archived_at IS NULL)\nORDER BY updated_at DESC\nLIMIT $4\nOFFSET $3";
|
|
53
|
+
export interface ListTestSuitesByProjectArgs {
|
|
54
|
+
projectId: string;
|
|
55
|
+
includeArchived: boolean;
|
|
56
|
+
pageOffset: string;
|
|
57
|
+
pageSize: string;
|
|
58
|
+
}
|
|
59
|
+
export interface ListTestSuitesByProjectRow {
|
|
60
|
+
id: string;
|
|
61
|
+
projectId: string;
|
|
62
|
+
name: string;
|
|
63
|
+
description: string;
|
|
64
|
+
status: string;
|
|
65
|
+
goal: string;
|
|
66
|
+
currentVersion: number;
|
|
67
|
+
executionProfile: any;
|
|
68
|
+
metadata: any;
|
|
69
|
+
createdAt: Date;
|
|
70
|
+
updatedAt: Date;
|
|
71
|
+
archivedAt: Date | null;
|
|
72
|
+
}
|
|
73
|
+
export declare function listTestSuitesByProject(client: Client, args: ListTestSuitesByProjectArgs): Promise<ListTestSuitesByProjectRow[]>;
|
|
74
|
+
export declare const listTestSuitesByWorkflowQuery = "-- name: ListTestSuitesByWorkflow :many\nSELECT s.id, s.project_id, s.name, s.description, s.status, s.goal, s.current_version, s.execution_profile, s.metadata, s.created_at, s.updated_at, s.archived_at\nFROM weave_v1.test_suite s\n INNER JOIN weave_v1.workflow_test_suite b\n ON b.test_suite_id = s.id\n AND b.project_id = s.project_id\nWHERE b.project_id = $1\n AND b.workflow_id = $2\n AND ($3::BOOLEAN OR s.archived_at IS NULL)\nORDER BY s.updated_at DESC\nLIMIT $5\nOFFSET $4";
|
|
53
75
|
export interface ListTestSuitesByWorkflowArgs {
|
|
76
|
+
projectId: string;
|
|
54
77
|
workflowId: string;
|
|
55
78
|
includeArchived: boolean;
|
|
56
79
|
pageOffset: string;
|
|
@@ -58,7 +81,7 @@ export interface ListTestSuitesByWorkflowArgs {
|
|
|
58
81
|
}
|
|
59
82
|
export interface ListTestSuitesByWorkflowRow {
|
|
60
83
|
id: string;
|
|
61
|
-
|
|
84
|
+
projectId: string;
|
|
62
85
|
name: string;
|
|
63
86
|
description: string;
|
|
64
87
|
status: string;
|
|
@@ -71,7 +94,7 @@ export interface ListTestSuitesByWorkflowRow {
|
|
|
71
94
|
archivedAt: Date | null;
|
|
72
95
|
}
|
|
73
96
|
export declare function listTestSuitesByWorkflow(client: Client, args: ListTestSuitesByWorkflowArgs): Promise<ListTestSuitesByWorkflowRow[]>;
|
|
74
|
-
export declare const updateTestSuiteQuery = "-- name: UpdateTestSuite :one\nUPDATE weave_v1.test_suite\nSET name = $1,\n description = $2,\n status = $3,\n goal = $4,\n current_version = $5,\n execution_profile = $6,\n metadata = $7,\n updated_at = NOW()\nWHERE id = $8\n AND
|
|
97
|
+
export declare const updateTestSuiteQuery = "-- name: UpdateTestSuite :one\nUPDATE weave_v1.test_suite\nSET name = $1,\n description = $2,\n status = $3,\n goal = $4,\n current_version = $5,\n execution_profile = $6,\n metadata = $7,\n updated_at = NOW()\nWHERE id = $8\n AND project_id = $9\nRETURNING id, project_id, name, description, status, goal, current_version, execution_profile, metadata, created_at, updated_at, archived_at";
|
|
75
98
|
export interface UpdateTestSuiteArgs {
|
|
76
99
|
name: string;
|
|
77
100
|
description: string;
|
|
@@ -81,11 +104,11 @@ export interface UpdateTestSuiteArgs {
|
|
|
81
104
|
executionProfile: any;
|
|
82
105
|
metadata: any;
|
|
83
106
|
id: string;
|
|
84
|
-
|
|
107
|
+
projectId: string;
|
|
85
108
|
}
|
|
86
109
|
export interface UpdateTestSuiteRow {
|
|
87
110
|
id: string;
|
|
88
|
-
|
|
111
|
+
projectId: string;
|
|
89
112
|
name: string;
|
|
90
113
|
description: string;
|
|
91
114
|
status: string;
|
|
@@ -98,14 +121,14 @@ export interface UpdateTestSuiteRow {
|
|
|
98
121
|
archivedAt: Date | null;
|
|
99
122
|
}
|
|
100
123
|
export declare function updateTestSuite(client: Client, args: UpdateTestSuiteArgs): Promise<UpdateTestSuiteRow | null>;
|
|
101
|
-
export declare const archiveTestSuiteQuery = "-- name: ArchiveTestSuite :one\nUPDATE weave_v1.test_suite\nSET status = 'archived',\n archived_at = NOW(),\n updated_at = NOW()\nWHERE id = $1\n AND
|
|
124
|
+
export declare const archiveTestSuiteQuery = "-- name: ArchiveTestSuite :one\nUPDATE weave_v1.test_suite\nSET status = 'archived',\n archived_at = NOW(),\n updated_at = NOW()\nWHERE id = $1\n AND project_id = $2\nRETURNING id, project_id, name, description, status, goal, current_version, execution_profile, metadata, created_at, updated_at, archived_at";
|
|
102
125
|
export interface ArchiveTestSuiteArgs {
|
|
103
126
|
id: string;
|
|
104
|
-
|
|
127
|
+
projectId: string;
|
|
105
128
|
}
|
|
106
129
|
export interface ArchiveTestSuiteRow {
|
|
107
130
|
id: string;
|
|
108
|
-
|
|
131
|
+
projectId: string;
|
|
109
132
|
name: string;
|
|
110
133
|
description: string;
|
|
111
134
|
status: string;
|
|
@@ -118,12 +141,52 @@ export interface ArchiveTestSuiteRow {
|
|
|
118
141
|
archivedAt: Date | null;
|
|
119
142
|
}
|
|
120
143
|
export declare function archiveTestSuite(client: Client, args: ArchiveTestSuiteArgs): Promise<ArchiveTestSuiteRow | null>;
|
|
121
|
-
export declare const deleteTestSuiteQuery = "-- name: DeleteTestSuite :exec\nDELETE\nFROM weave_v1.test_suite\nWHERE id = $1\n AND
|
|
144
|
+
export declare const deleteTestSuiteQuery = "-- name: DeleteTestSuite :exec\nDELETE\nFROM weave_v1.test_suite\nWHERE id = $1\n AND project_id = $2";
|
|
122
145
|
export interface DeleteTestSuiteArgs {
|
|
123
146
|
id: string;
|
|
124
|
-
|
|
147
|
+
projectId: string;
|
|
125
148
|
}
|
|
126
149
|
export declare function deleteTestSuite(client: Client, args: DeleteTestSuiteArgs): Promise<void>;
|
|
150
|
+
export declare const attachTestSuiteToWorkflowQuery = "-- name: AttachTestSuiteToWorkflow :one\nINSERT INTO weave_v1.workflow_test_suite (\n project_id,\n workflow_id,\n test_suite_id,\n attached_by,\n metadata\n)\nVALUES (\n $1,\n $2,\n $3,\n $4,\n $5\n)\nON CONFLICT (workflow_id, test_suite_id) DO UPDATE\nSET attached_by = EXCLUDED.attached_by,\n metadata = EXCLUDED.metadata,\n attached_at = NOW()\nRETURNING project_id, workflow_id, test_suite_id, attached_by, metadata, attached_at";
|
|
151
|
+
export interface AttachTestSuiteToWorkflowArgs {
|
|
152
|
+
projectId: string;
|
|
153
|
+
workflowId: string;
|
|
154
|
+
testSuiteId: string;
|
|
155
|
+
attachedBy: string;
|
|
156
|
+
metadata: any;
|
|
157
|
+
}
|
|
158
|
+
export interface AttachTestSuiteToWorkflowRow {
|
|
159
|
+
projectId: string;
|
|
160
|
+
workflowId: string;
|
|
161
|
+
testSuiteId: string;
|
|
162
|
+
attachedBy: string;
|
|
163
|
+
metadata: any;
|
|
164
|
+
attachedAt: Date;
|
|
165
|
+
}
|
|
166
|
+
export declare function attachTestSuiteToWorkflow(client: Client, args: AttachTestSuiteToWorkflowArgs): Promise<AttachTestSuiteToWorkflowRow | null>;
|
|
167
|
+
export declare const detachTestSuiteFromWorkflowQuery = "-- name: DetachTestSuiteFromWorkflow :exec\nDELETE\nFROM weave_v1.workflow_test_suite\nWHERE project_id = $1\n AND workflow_id = $2\n AND test_suite_id = $3";
|
|
168
|
+
export interface DetachTestSuiteFromWorkflowArgs {
|
|
169
|
+
projectId: string;
|
|
170
|
+
workflowId: string;
|
|
171
|
+
testSuiteId: string;
|
|
172
|
+
}
|
|
173
|
+
export declare function detachTestSuiteFromWorkflow(client: Client, args: DetachTestSuiteFromWorkflowArgs): Promise<void>;
|
|
174
|
+
export declare const listWorkflowTestSuiteBindingsQuery = "-- name: ListWorkflowTestSuiteBindings :many\nSELECT project_id, workflow_id, test_suite_id, attached_by, metadata, attached_at\nFROM weave_v1.workflow_test_suite\nWHERE project_id = $1\n AND workflow_id = $2\nORDER BY attached_at DESC\nLIMIT $4\nOFFSET $3";
|
|
175
|
+
export interface ListWorkflowTestSuiteBindingsArgs {
|
|
176
|
+
projectId: string;
|
|
177
|
+
workflowId: string;
|
|
178
|
+
pageOffset: string;
|
|
179
|
+
pageSize: string;
|
|
180
|
+
}
|
|
181
|
+
export interface ListWorkflowTestSuiteBindingsRow {
|
|
182
|
+
projectId: string;
|
|
183
|
+
workflowId: string;
|
|
184
|
+
testSuiteId: string;
|
|
185
|
+
attachedBy: string;
|
|
186
|
+
metadata: any;
|
|
187
|
+
attachedAt: Date;
|
|
188
|
+
}
|
|
189
|
+
export declare function listWorkflowTestSuiteBindings(client: Client, args: ListWorkflowTestSuiteBindingsArgs): Promise<ListWorkflowTestSuiteBindingsRow[]>;
|
|
127
190
|
export declare const upsertTestSuiteItemQuery = "-- name: UpsertTestSuiteItem :one\nINSERT INTO weave_v1.test_suite_item (\n id,\n test_suite_id,\n test_case_id,\n test_script_id,\n position,\n is_required,\n metadata\n)\nVALUES (\n $1,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7\n)\nON CONFLICT (test_suite_id, position) DO UPDATE\nSET test_case_id = EXCLUDED.test_case_id,\n test_script_id = EXCLUDED.test_script_id,\n is_required = EXCLUDED.is_required,\n metadata = EXCLUDED.metadata,\n updated_at = NOW()\nRETURNING id, test_suite_id, test_case_id, test_script_id, position, is_required, metadata, created_at, updated_at";
|
|
128
191
|
export interface UpsertTestSuiteItemArgs {
|
|
129
192
|
id: string;
|
|
@@ -146,10 +209,10 @@ export interface UpsertTestSuiteItemRow {
|
|
|
146
209
|
updatedAt: Date;
|
|
147
210
|
}
|
|
148
211
|
export declare function upsertTestSuiteItem(client: Client, args: UpsertTestSuiteItemArgs): Promise<UpsertTestSuiteItemRow | null>;
|
|
149
|
-
export declare const listTestSuiteItemsQuery = "-- name: ListTestSuiteItems :many\nSELECT si.id, si.test_suite_id, si.test_case_id, si.test_script_id, si.position, si.is_required, si.metadata, si.created_at, si.updated_at\nFROM weave_v1.test_suite_item si\n INNER JOIN weave_v1.test_suite s ON s.id = si.test_suite_id\nWHERE si.test_suite_id = $1\n AND s.
|
|
212
|
+
export declare const listTestSuiteItemsQuery = "-- name: ListTestSuiteItems :many\nSELECT si.id, si.test_suite_id, si.test_case_id, si.test_script_id, si.position, si.is_required, si.metadata, si.created_at, si.updated_at\nFROM weave_v1.test_suite_item si\n INNER JOIN weave_v1.test_suite s ON s.id = si.test_suite_id\nWHERE si.test_suite_id = $1\n AND s.project_id = $2\nORDER BY si.position";
|
|
150
213
|
export interface ListTestSuiteItemsArgs {
|
|
151
214
|
testSuiteId: string;
|
|
152
|
-
|
|
215
|
+
projectId: string;
|
|
153
216
|
}
|
|
154
217
|
export interface ListTestSuiteItemsRow {
|
|
155
218
|
id: string;
|
|
@@ -163,17 +226,17 @@ export interface ListTestSuiteItemsRow {
|
|
|
163
226
|
updatedAt: Date;
|
|
164
227
|
}
|
|
165
228
|
export declare function listTestSuiteItems(client: Client, args: ListTestSuiteItemsArgs): Promise<ListTestSuiteItemsRow[]>;
|
|
166
|
-
export declare const deleteTestSuiteItemQuery = "-- name: DeleteTestSuiteItem :exec\nDELETE\nFROM weave_v1.test_suite_item si\nUSING weave_v1.test_suite s\nWHERE si.id = $1\n AND si.test_suite_id = $2\n AND s.id = si.test_suite_id\n AND s.
|
|
229
|
+
export declare const deleteTestSuiteItemQuery = "-- name: DeleteTestSuiteItem :exec\nDELETE\nFROM weave_v1.test_suite_item si\nUSING weave_v1.test_suite s\nWHERE si.id = $1\n AND si.test_suite_id = $2\n AND s.id = si.test_suite_id\n AND s.project_id = $3";
|
|
167
230
|
export interface DeleteTestSuiteItemArgs {
|
|
168
231
|
id: string;
|
|
169
232
|
testSuiteId: string;
|
|
170
|
-
|
|
233
|
+
projectId: string;
|
|
171
234
|
}
|
|
172
235
|
export declare function deleteTestSuiteItem(client: Client, args: DeleteTestSuiteItemArgs): Promise<void>;
|
|
173
|
-
export declare const upsertDataBindingTemplateQuery = "-- name: UpsertDataBindingTemplate :one\nINSERT INTO weave_v1.data_binding_template (\n id,\n
|
|
236
|
+
export declare const upsertDataBindingTemplateQuery = "-- name: UpsertDataBindingTemplate :one\nINSERT INTO weave_v1.data_binding_template (\n id,\n project_id,\n name,\n description,\n target_scope,\n test_script_id,\n test_suite_id,\n binding_spec,\n metadata\n)\nVALUES (\n $1,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7,\n $8,\n $9\n)\nON CONFLICT (id) DO UPDATE\nSET name = EXCLUDED.name,\n description = EXCLUDED.description,\n target_scope = EXCLUDED.target_scope,\n test_script_id = EXCLUDED.test_script_id,\n test_suite_id = EXCLUDED.test_suite_id,\n binding_spec = EXCLUDED.binding_spec,\n metadata = EXCLUDED.metadata,\n updated_at = NOW()\nRETURNING id, project_id, name, description, target_scope, test_script_id, test_suite_id, binding_spec, metadata, created_at, updated_at, archived_at";
|
|
174
237
|
export interface UpsertDataBindingTemplateArgs {
|
|
175
238
|
id: string;
|
|
176
|
-
|
|
239
|
+
projectId: string;
|
|
177
240
|
name: string;
|
|
178
241
|
description: string;
|
|
179
242
|
targetScope: string;
|
|
@@ -184,7 +247,7 @@ export interface UpsertDataBindingTemplateArgs {
|
|
|
184
247
|
}
|
|
185
248
|
export interface UpsertDataBindingTemplateRow {
|
|
186
249
|
id: string;
|
|
187
|
-
|
|
250
|
+
projectId: string;
|
|
188
251
|
name: string;
|
|
189
252
|
description: string;
|
|
190
253
|
targetScope: string;
|
|
@@ -197,16 +260,39 @@ export interface UpsertDataBindingTemplateRow {
|
|
|
197
260
|
archivedAt: Date | null;
|
|
198
261
|
}
|
|
199
262
|
export declare function upsertDataBindingTemplate(client: Client, args: UpsertDataBindingTemplateArgs): Promise<UpsertDataBindingTemplateRow | null>;
|
|
200
|
-
export declare const
|
|
201
|
-
export interface
|
|
202
|
-
|
|
263
|
+
export declare const listDataBindingTemplatesByProjectQuery = "-- name: ListDataBindingTemplatesByProject :many\nSELECT id, project_id, name, description, target_scope, test_script_id, test_suite_id, binding_spec, metadata, created_at, updated_at, archived_at\nFROM weave_v1.data_binding_template\nWHERE project_id = $1\n AND ($2::BOOLEAN OR archived_at IS NULL)\nORDER BY updated_at DESC\nLIMIT $4\nOFFSET $3";
|
|
264
|
+
export interface ListDataBindingTemplatesByProjectArgs {
|
|
265
|
+
projectId: string;
|
|
203
266
|
includeArchived: boolean;
|
|
204
267
|
pageOffset: string;
|
|
205
268
|
pageSize: string;
|
|
206
269
|
}
|
|
207
|
-
export interface
|
|
270
|
+
export interface ListDataBindingTemplatesByProjectRow {
|
|
208
271
|
id: string;
|
|
272
|
+
projectId: string;
|
|
273
|
+
name: string;
|
|
274
|
+
description: string;
|
|
275
|
+
targetScope: string;
|
|
276
|
+
testScriptId: string | null;
|
|
277
|
+
testSuiteId: string | null;
|
|
278
|
+
bindingSpec: any;
|
|
279
|
+
metadata: any;
|
|
280
|
+
createdAt: Date;
|
|
281
|
+
updatedAt: Date;
|
|
282
|
+
archivedAt: Date | null;
|
|
283
|
+
}
|
|
284
|
+
export declare function listDataBindingTemplatesByProject(client: Client, args: ListDataBindingTemplatesByProjectArgs): Promise<ListDataBindingTemplatesByProjectRow[]>;
|
|
285
|
+
export declare const listDataBindingTemplatesByWorkflowQuery = "-- name: ListDataBindingTemplatesByWorkflow :many\nSELECT t.id, t.project_id, t.name, t.description, t.target_scope, t.test_script_id, t.test_suite_id, t.binding_spec, t.metadata, t.created_at, t.updated_at, t.archived_at\nFROM weave_v1.data_binding_template t\n INNER JOIN weave_v1.workflow_data_binding_template b\n ON b.data_binding_template_id = t.id\n AND b.project_id = t.project_id\nWHERE b.project_id = $1\n AND b.workflow_id = $2\n AND ($3::BOOLEAN OR t.archived_at IS NULL)\nORDER BY t.updated_at DESC\nLIMIT $5\nOFFSET $4";
|
|
286
|
+
export interface ListDataBindingTemplatesByWorkflowArgs {
|
|
287
|
+
projectId: string;
|
|
209
288
|
workflowId: string;
|
|
289
|
+
includeArchived: boolean;
|
|
290
|
+
pageOffset: string;
|
|
291
|
+
pageSize: string;
|
|
292
|
+
}
|
|
293
|
+
export interface ListDataBindingTemplatesByWorkflowRow {
|
|
294
|
+
id: string;
|
|
295
|
+
projectId: string;
|
|
210
296
|
name: string;
|
|
211
297
|
description: string;
|
|
212
298
|
targetScope: string;
|
|
@@ -218,11 +304,51 @@ export interface ListDataBindingTemplatesRow {
|
|
|
218
304
|
updatedAt: Date;
|
|
219
305
|
archivedAt: Date | null;
|
|
220
306
|
}
|
|
221
|
-
export declare function
|
|
222
|
-
export declare const
|
|
307
|
+
export declare function listDataBindingTemplatesByWorkflow(client: Client, args: ListDataBindingTemplatesByWorkflowArgs): Promise<ListDataBindingTemplatesByWorkflowRow[]>;
|
|
308
|
+
export declare const attachDataBindingTemplateToWorkflowQuery = "-- name: AttachDataBindingTemplateToWorkflow :one\nINSERT INTO weave_v1.workflow_data_binding_template (\n project_id,\n workflow_id,\n data_binding_template_id,\n attached_by,\n metadata\n)\nVALUES (\n $1,\n $2,\n $3,\n $4,\n $5\n)\nON CONFLICT (workflow_id, data_binding_template_id) DO UPDATE\nSET attached_by = EXCLUDED.attached_by,\n metadata = EXCLUDED.metadata,\n attached_at = NOW()\nRETURNING project_id, workflow_id, data_binding_template_id, attached_by, metadata, attached_at";
|
|
309
|
+
export interface AttachDataBindingTemplateToWorkflowArgs {
|
|
310
|
+
projectId: string;
|
|
311
|
+
workflowId: string;
|
|
312
|
+
dataBindingTemplateId: string;
|
|
313
|
+
attachedBy: string;
|
|
314
|
+
metadata: any;
|
|
315
|
+
}
|
|
316
|
+
export interface AttachDataBindingTemplateToWorkflowRow {
|
|
317
|
+
projectId: string;
|
|
318
|
+
workflowId: string;
|
|
319
|
+
dataBindingTemplateId: string;
|
|
320
|
+
attachedBy: string;
|
|
321
|
+
metadata: any;
|
|
322
|
+
attachedAt: Date;
|
|
323
|
+
}
|
|
324
|
+
export declare function attachDataBindingTemplateToWorkflow(client: Client, args: AttachDataBindingTemplateToWorkflowArgs): Promise<AttachDataBindingTemplateToWorkflowRow | null>;
|
|
325
|
+
export declare const detachDataBindingTemplateFromWorkflowQuery = "-- name: DetachDataBindingTemplateFromWorkflow :exec\nDELETE\nFROM weave_v1.workflow_data_binding_template\nWHERE project_id = $1\n AND workflow_id = $2\n AND data_binding_template_id = $3";
|
|
326
|
+
export interface DetachDataBindingTemplateFromWorkflowArgs {
|
|
327
|
+
projectId: string;
|
|
328
|
+
workflowId: string;
|
|
329
|
+
dataBindingTemplateId: string;
|
|
330
|
+
}
|
|
331
|
+
export declare function detachDataBindingTemplateFromWorkflow(client: Client, args: DetachDataBindingTemplateFromWorkflowArgs): Promise<void>;
|
|
332
|
+
export declare const listWorkflowDataBindingTemplateBindingsQuery = "-- name: ListWorkflowDataBindingTemplateBindings :many\nSELECT project_id, workflow_id, data_binding_template_id, attached_by, metadata, attached_at\nFROM weave_v1.workflow_data_binding_template\nWHERE project_id = $1\n AND workflow_id = $2\nORDER BY attached_at DESC\nLIMIT $4\nOFFSET $3";
|
|
333
|
+
export interface ListWorkflowDataBindingTemplateBindingsArgs {
|
|
334
|
+
projectId: string;
|
|
335
|
+
workflowId: string;
|
|
336
|
+
pageOffset: string;
|
|
337
|
+
pageSize: string;
|
|
338
|
+
}
|
|
339
|
+
export interface ListWorkflowDataBindingTemplateBindingsRow {
|
|
340
|
+
projectId: string;
|
|
341
|
+
workflowId: string;
|
|
342
|
+
dataBindingTemplateId: string;
|
|
343
|
+
attachedBy: string;
|
|
344
|
+
metadata: any;
|
|
345
|
+
attachedAt: Date;
|
|
346
|
+
}
|
|
347
|
+
export declare function listWorkflowDataBindingTemplateBindings(client: Client, args: ListWorkflowDataBindingTemplateBindingsArgs): Promise<ListWorkflowDataBindingTemplateBindingsRow[]>;
|
|
348
|
+
export declare const deleteDataBindingTemplateQuery = "-- name: DeleteDataBindingTemplate :exec\nDELETE\nFROM weave_v1.data_binding_template\nWHERE id = $1\n AND project_id = $2";
|
|
223
349
|
export interface DeleteDataBindingTemplateArgs {
|
|
224
350
|
id: string;
|
|
225
|
-
|
|
351
|
+
projectId: string;
|
|
226
352
|
}
|
|
227
353
|
export declare function deleteDataBindingTemplate(client: Client, args: DeleteDataBindingTemplateArgs): Promise<void>;
|
|
228
354
|
export {};
|