weave-typescript 0.11.13 → 0.11.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/weaveapi/data/v1/data.pb.d.ts +54 -0
  2. package/dist/weaveapi/data/v1/data.pb.js +411 -0
  3. package/dist/weaveapi/data/v1/service.pb.d.ts +213 -0
  4. package/dist/weaveapi/data/v1/service.pb.js +1948 -0
  5. package/dist/weaveapi/input/v1/input.pb.d.ts +77 -0
  6. package/dist/weaveapi/input/v1/input.pb.js +632 -0
  7. package/dist/weaveapi/input/v1/service.pb.d.ts +311 -0
  8. package/dist/weaveapi/input/v1/service.pb.js +3001 -0
  9. package/dist/weaveapi/integration/v1/integration.pb.d.ts +67 -0
  10. package/dist/weaveapi/integration/v1/integration.pb.js +486 -0
  11. package/dist/weaveapi/integration/v1/service.pb.d.ts +236 -0
  12. package/dist/weaveapi/integration/v1/service.pb.js +2220 -0
  13. package/dist/weaveapi/report/v1/report.pb.d.ts +79 -0
  14. package/dist/weaveapi/report/v1/report.pb.js +638 -0
  15. package/dist/weaveapi/report/v1/service.pb.d.ts +194 -0
  16. package/dist/weaveapi/report/v1/service.pb.js +1630 -0
  17. package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +70 -0
  18. package/dist/weaveapi/requirement/v1/requirement.pb.js +570 -0
  19. package/dist/weaveapi/requirement/v1/service.pb.d.ts +310 -0
  20. package/dist/weaveapi/requirement/v1/service.pb.js +2978 -0
  21. package/dist/weaveapi/run/v1/run.pb.d.ts +116 -0
  22. package/dist/weaveapi/run/v1/run.pb.js +1135 -0
  23. package/dist/weaveapi/run/v1/service.pb.d.ts +229 -0
  24. package/dist/weaveapi/run/v1/service.pb.js +2106 -0
  25. package/dist/weaveapi/script/v1/script.pb.d.ts +102 -0
  26. package/dist/weaveapi/script/v1/script.pb.js +1025 -0
  27. package/dist/weaveapi/script/v1/service.pb.d.ts +426 -0
  28. package/dist/weaveapi/script/v1/service.pb.js +4399 -0
  29. package/dist/weaveapi/storage/v1/service.pb.d.ts +4 -0
  30. package/dist/weaveapi/storage/v1/service.pb.js +50 -7
  31. package/dist/weaveapi/storage/v1/storage.pb.d.ts +2 -0
  32. package/dist/weaveapi/storage/v1/storage.pb.js +23 -0
  33. package/dist/weaveapi/storage/v1/vcs.pb.d.ts +75 -0
  34. package/dist/weaveapi/storage/v1/vcs.pb.js +864 -0
  35. package/dist/weaveapi/suite/v1/service.pb.d.ts +373 -0
  36. package/dist/weaveapi/suite/v1/service.pb.js +3629 -0
  37. package/dist/weaveapi/suite/v1/suite.pb.d.ts +92 -0
  38. package/dist/weaveapi/suite/v1/suite.pb.js +876 -0
  39. package/dist/weaveapi/testcase/v1/service.pb.d.ts +422 -0
  40. package/dist/weaveapi/testcase/v1/service.pb.js +4254 -0
  41. package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +91 -0
  42. package/dist/weaveapi/testcase/v1/testcase.pb.js +794 -0
  43. package/dist/weavesql/weavedb/data_asset_sql.d.ts +141 -0
  44. package/dist/weavesql/weavedb/data_asset_sql.js +217 -0
  45. package/dist/weavesql/weavedb/input_sql.d.ts +230 -0
  46. package/dist/weavesql/weavedb/input_sql.js +384 -0
  47. package/dist/weavesql/weavedb/integration_sql.d.ts +170 -0
  48. package/dist/weavesql/weavedb/integration_sql.js +258 -0
  49. package/dist/weavesql/weavedb/report_sql.d.ts +138 -0
  50. package/dist/weavesql/weavedb/report_sql.js +232 -0
  51. package/dist/weavesql/weavedb/requirement_sql.d.ts +168 -0
  52. package/dist/weavesql/weavedb/requirement_sql.js +283 -0
  53. package/dist/weavesql/weavedb/run_sql.d.ts +247 -0
  54. package/dist/weavesql/weavedb/run_sql.js +415 -0
  55. package/dist/weavesql/weavedb/suite_sql.d.ts +228 -0
  56. package/dist/weavesql/weavedb/suite_sql.js +399 -0
  57. package/dist/weavesql/weavedb/test_case_sql.d.ts +261 -0
  58. package/dist/weavesql/weavedb/test_case_sql.js +446 -0
  59. package/dist/weavesql/weavedb/test_script_sql.d.ts +290 -0
  60. package/dist/weavesql/weavedb/test_script_sql.js +488 -0
  61. package/dist/weavesql/weavedb/traceability_sql.d.ts +59 -0
  62. package/dist/weavesql/weavedb/traceability_sql.js +155 -0
  63. package/package.json +1 -1
@@ -0,0 +1,384 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getInputSourceActiveVersionQuery = exports.setInputSourceActiveVersionQuery = exports.getNextInputVersionNumberQuery = exports.listInputVersionsBySourceQuery = exports.getInputVersionQuery = exports.createInputVersionQuery = exports.deleteInputSourceQuery = exports.archiveInputSourceQuery = exports.updateInputSourceQuery = exports.listInputSourcesByWorkflowQuery = exports.getInputSourceQuery = exports.createInputSourceQuery = void 0;
4
+ exports.createInputSource = createInputSource;
5
+ exports.getInputSource = getInputSource;
6
+ exports.listInputSourcesByWorkflow = listInputSourcesByWorkflow;
7
+ exports.updateInputSource = updateInputSource;
8
+ exports.archiveInputSource = archiveInputSource;
9
+ exports.deleteInputSource = deleteInputSource;
10
+ exports.createInputVersion = createInputVersion;
11
+ exports.getInputVersion = getInputVersion;
12
+ exports.listInputVersionsBySource = listInputVersionsBySource;
13
+ exports.getNextInputVersionNumber = getNextInputVersionNumber;
14
+ exports.setInputSourceActiveVersion = setInputSourceActiveVersion;
15
+ exports.getInputSourceActiveVersion = getInputSourceActiveVersion;
16
+ exports.createInputSourceQuery = `-- name: CreateInputSource :one
17
+ INSERT INTO weave_v1.input_source (
18
+ id,
19
+ workflow_id,
20
+ source_type,
21
+ name,
22
+ description,
23
+ origin_uri,
24
+ status,
25
+ metadata
26
+ )
27
+ VALUES (
28
+ $1,
29
+ $2,
30
+ $3,
31
+ $4,
32
+ $5,
33
+ $6,
34
+ $7,
35
+ $8
36
+ )
37
+ RETURNING id, workflow_id, source_type, name, description, origin_uri, status, metadata, active_version_id, created_at, updated_at, archived_at`;
38
+ async function createInputSource(client, args) {
39
+ const result = await client.query({
40
+ text: exports.createInputSourceQuery,
41
+ values: [args.id, args.workflowId, args.sourceType, args.name, args.description, args.originUri, args.status, args.metadata],
42
+ rowMode: "array"
43
+ });
44
+ if (result.rows.length !== 1) {
45
+ return null;
46
+ }
47
+ const row = result.rows[0];
48
+ return {
49
+ id: row[0],
50
+ workflowId: row[1],
51
+ sourceType: row[2],
52
+ name: row[3],
53
+ description: row[4],
54
+ originUri: row[5],
55
+ status: row[6],
56
+ metadata: row[7],
57
+ activeVersionId: row[8],
58
+ createdAt: row[9],
59
+ updatedAt: row[10],
60
+ archivedAt: row[11]
61
+ };
62
+ }
63
+ exports.getInputSourceQuery = `-- name: GetInputSource :one
64
+ SELECT id, workflow_id, source_type, name, description, origin_uri, status, metadata, active_version_id, created_at, updated_at, archived_at
65
+ FROM weave_v1.input_source
66
+ WHERE id = $1
67
+ AND workflow_id = $2`;
68
+ async function getInputSource(client, args) {
69
+ const result = await client.query({
70
+ text: exports.getInputSourceQuery,
71
+ values: [args.id, args.workflowId],
72
+ rowMode: "array"
73
+ });
74
+ if (result.rows.length !== 1) {
75
+ return null;
76
+ }
77
+ const row = result.rows[0];
78
+ return {
79
+ id: row[0],
80
+ workflowId: row[1],
81
+ sourceType: row[2],
82
+ name: row[3],
83
+ description: row[4],
84
+ originUri: row[5],
85
+ status: row[6],
86
+ metadata: row[7],
87
+ activeVersionId: row[8],
88
+ createdAt: row[9],
89
+ updatedAt: row[10],
90
+ archivedAt: row[11]
91
+ };
92
+ }
93
+ exports.listInputSourcesByWorkflowQuery = `-- name: ListInputSourcesByWorkflow :many
94
+ SELECT id, workflow_id, source_type, name, description, origin_uri, status, metadata, active_version_id, created_at, updated_at, archived_at
95
+ FROM weave_v1.input_source
96
+ WHERE workflow_id = $1
97
+ AND ($2::BOOLEAN OR archived_at IS NULL)
98
+ ORDER BY updated_at DESC
99
+ LIMIT $4
100
+ OFFSET $3`;
101
+ async function listInputSourcesByWorkflow(client, args) {
102
+ const result = await client.query({
103
+ text: exports.listInputSourcesByWorkflowQuery,
104
+ values: [args.workflowId, args.includeArchived, args.pageOffset, args.pageSize],
105
+ rowMode: "array"
106
+ });
107
+ return result.rows.map(row => {
108
+ return {
109
+ id: row[0],
110
+ workflowId: row[1],
111
+ sourceType: row[2],
112
+ name: row[3],
113
+ description: row[4],
114
+ originUri: row[5],
115
+ status: row[6],
116
+ metadata: row[7],
117
+ activeVersionId: row[8],
118
+ createdAt: row[9],
119
+ updatedAt: row[10],
120
+ archivedAt: row[11]
121
+ };
122
+ });
123
+ }
124
+ exports.updateInputSourceQuery = `-- name: UpdateInputSource :one
125
+ UPDATE weave_v1.input_source
126
+ SET name = $1,
127
+ description = $2,
128
+ origin_uri = $3,
129
+ status = $4,
130
+ metadata = $5,
131
+ updated_at = NOW()
132
+ WHERE id = $6
133
+ AND workflow_id = $7
134
+ RETURNING id, workflow_id, source_type, name, description, origin_uri, status, metadata, active_version_id, created_at, updated_at, archived_at`;
135
+ async function updateInputSource(client, args) {
136
+ const result = await client.query({
137
+ text: exports.updateInputSourceQuery,
138
+ values: [args.name, args.description, args.originUri, args.status, args.metadata, args.id, args.workflowId],
139
+ rowMode: "array"
140
+ });
141
+ if (result.rows.length !== 1) {
142
+ return null;
143
+ }
144
+ const row = result.rows[0];
145
+ return {
146
+ id: row[0],
147
+ workflowId: row[1],
148
+ sourceType: row[2],
149
+ name: row[3],
150
+ description: row[4],
151
+ originUri: row[5],
152
+ status: row[6],
153
+ metadata: row[7],
154
+ activeVersionId: row[8],
155
+ createdAt: row[9],
156
+ updatedAt: row[10],
157
+ archivedAt: row[11]
158
+ };
159
+ }
160
+ exports.archiveInputSourceQuery = `-- name: ArchiveInputSource :one
161
+ UPDATE weave_v1.input_source
162
+ SET status = 'archived',
163
+ archived_at = NOW(),
164
+ updated_at = NOW()
165
+ WHERE id = $1
166
+ AND workflow_id = $2
167
+ RETURNING id, workflow_id, source_type, name, description, origin_uri, status, metadata, active_version_id, created_at, updated_at, archived_at`;
168
+ async function archiveInputSource(client, args) {
169
+ const result = await client.query({
170
+ text: exports.archiveInputSourceQuery,
171
+ values: [args.id, args.workflowId],
172
+ rowMode: "array"
173
+ });
174
+ if (result.rows.length !== 1) {
175
+ return null;
176
+ }
177
+ const row = result.rows[0];
178
+ return {
179
+ id: row[0],
180
+ workflowId: row[1],
181
+ sourceType: row[2],
182
+ name: row[3],
183
+ description: row[4],
184
+ originUri: row[5],
185
+ status: row[6],
186
+ metadata: row[7],
187
+ activeVersionId: row[8],
188
+ createdAt: row[9],
189
+ updatedAt: row[10],
190
+ archivedAt: row[11]
191
+ };
192
+ }
193
+ exports.deleteInputSourceQuery = `-- name: DeleteInputSource :exec
194
+ DELETE
195
+ FROM weave_v1.input_source
196
+ WHERE id = $1
197
+ AND workflow_id = $2`;
198
+ async function deleteInputSource(client, args) {
199
+ await client.query({
200
+ text: exports.deleteInputSourceQuery,
201
+ values: [args.id, args.workflowId],
202
+ rowMode: "array"
203
+ });
204
+ }
205
+ exports.createInputVersionQuery = `-- name: CreateInputVersion :one
206
+ INSERT INTO weave_v1.input_version (
207
+ id,
208
+ input_source_id,
209
+ version_number,
210
+ checksum,
211
+ content_uri,
212
+ status,
213
+ parsed_summary,
214
+ metadata
215
+ )
216
+ VALUES (
217
+ $1,
218
+ $2,
219
+ $3,
220
+ $4,
221
+ $5,
222
+ $6,
223
+ $7,
224
+ $8
225
+ )
226
+ RETURNING id, input_source_id, version_number, checksum, content_uri, status, parsed_summary, metadata, created_at`;
227
+ async function createInputVersion(client, args) {
228
+ const result = await client.query({
229
+ text: exports.createInputVersionQuery,
230
+ values: [args.id, args.inputSourceId, args.versionNumber, args.checksum, args.contentUri, args.status, args.parsedSummary, args.metadata],
231
+ rowMode: "array"
232
+ });
233
+ if (result.rows.length !== 1) {
234
+ return null;
235
+ }
236
+ const row = result.rows[0];
237
+ return {
238
+ id: row[0],
239
+ inputSourceId: row[1],
240
+ versionNumber: row[2],
241
+ checksum: row[3],
242
+ contentUri: row[4],
243
+ status: row[5],
244
+ parsedSummary: row[6],
245
+ metadata: row[7],
246
+ createdAt: row[8]
247
+ };
248
+ }
249
+ exports.getInputVersionQuery = `-- name: GetInputVersion :one
250
+ SELECT v.id, v.input_source_id, v.version_number, v.checksum, v.content_uri, v.status, v.parsed_summary, v.metadata, v.created_at
251
+ FROM weave_v1.input_version v
252
+ INNER JOIN weave_v1.input_source s ON s.id = v.input_source_id
253
+ WHERE v.id = $1
254
+ AND v.input_source_id = $2
255
+ AND s.workflow_id = $3`;
256
+ async function getInputVersion(client, args) {
257
+ const result = await client.query({
258
+ text: exports.getInputVersionQuery,
259
+ values: [args.id, args.inputSourceId, args.workflowId],
260
+ rowMode: "array"
261
+ });
262
+ if (result.rows.length !== 1) {
263
+ return null;
264
+ }
265
+ const row = result.rows[0];
266
+ return {
267
+ id: row[0],
268
+ inputSourceId: row[1],
269
+ versionNumber: row[2],
270
+ checksum: row[3],
271
+ contentUri: row[4],
272
+ status: row[5],
273
+ parsedSummary: row[6],
274
+ metadata: row[7],
275
+ createdAt: row[8]
276
+ };
277
+ }
278
+ exports.listInputVersionsBySourceQuery = `-- name: ListInputVersionsBySource :many
279
+ SELECT v.id, v.input_source_id, v.version_number, v.checksum, v.content_uri, v.status, v.parsed_summary, v.metadata, v.created_at
280
+ FROM weave_v1.input_version v
281
+ INNER JOIN weave_v1.input_source s ON s.id = v.input_source_id
282
+ WHERE v.input_source_id = $1
283
+ AND s.workflow_id = $2
284
+ ORDER BY v.version_number DESC
285
+ LIMIT $4
286
+ OFFSET $3`;
287
+ async function listInputVersionsBySource(client, args) {
288
+ const result = await client.query({
289
+ text: exports.listInputVersionsBySourceQuery,
290
+ values: [args.inputSourceId, args.workflowId, args.pageOffset, args.pageSize],
291
+ rowMode: "array"
292
+ });
293
+ return result.rows.map(row => {
294
+ return {
295
+ id: row[0],
296
+ inputSourceId: row[1],
297
+ versionNumber: row[2],
298
+ checksum: row[3],
299
+ contentUri: row[4],
300
+ status: row[5],
301
+ parsedSummary: row[6],
302
+ metadata: row[7],
303
+ createdAt: row[8]
304
+ };
305
+ });
306
+ }
307
+ exports.getNextInputVersionNumberQuery = `-- name: GetNextInputVersionNumber :one
308
+ SELECT COALESCE(MAX(version_number), 0)::INTEGER + 1 AS version_number
309
+ FROM weave_v1.input_version
310
+ WHERE input_source_id = $1`;
311
+ async function getNextInputVersionNumber(client, args) {
312
+ const result = await client.query({
313
+ text: exports.getNextInputVersionNumberQuery,
314
+ values: [args.inputSourceId],
315
+ rowMode: "array"
316
+ });
317
+ if (result.rows.length !== 1) {
318
+ return null;
319
+ }
320
+ const row = result.rows[0];
321
+ return {
322
+ versionNumber: row[0]
323
+ };
324
+ }
325
+ exports.setInputSourceActiveVersionQuery = `-- name: SetInputSourceActiveVersion :one
326
+ UPDATE weave_v1.input_source
327
+ SET active_version_id = $1,
328
+ updated_at = NOW()
329
+ WHERE id = $2
330
+ AND workflow_id = $3
331
+ RETURNING id, workflow_id, source_type, name, description, origin_uri, status, metadata, active_version_id, created_at, updated_at, archived_at`;
332
+ async function setInputSourceActiveVersion(client, args) {
333
+ const result = await client.query({
334
+ text: exports.setInputSourceActiveVersionQuery,
335
+ values: [args.activeVersionId, args.id, args.workflowId],
336
+ rowMode: "array"
337
+ });
338
+ if (result.rows.length !== 1) {
339
+ return null;
340
+ }
341
+ const row = result.rows[0];
342
+ return {
343
+ id: row[0],
344
+ workflowId: row[1],
345
+ sourceType: row[2],
346
+ name: row[3],
347
+ description: row[4],
348
+ originUri: row[5],
349
+ status: row[6],
350
+ metadata: row[7],
351
+ activeVersionId: row[8],
352
+ createdAt: row[9],
353
+ updatedAt: row[10],
354
+ archivedAt: row[11]
355
+ };
356
+ }
357
+ exports.getInputSourceActiveVersionQuery = `-- name: GetInputSourceActiveVersion :one
358
+ SELECT v.id, v.input_source_id, v.version_number, v.checksum, v.content_uri, v.status, v.parsed_summary, v.metadata, v.created_at
359
+ FROM weave_v1.input_source s
360
+ INNER JOIN weave_v1.input_version v ON v.id = s.active_version_id
361
+ WHERE s.id = $1
362
+ AND s.workflow_id = $2`;
363
+ async function getInputSourceActiveVersion(client, args) {
364
+ const result = await client.query({
365
+ text: exports.getInputSourceActiveVersionQuery,
366
+ values: [args.id, args.workflowId],
367
+ rowMode: "array"
368
+ });
369
+ if (result.rows.length !== 1) {
370
+ return null;
371
+ }
372
+ const row = result.rows[0];
373
+ return {
374
+ id: row[0],
375
+ inputSourceId: row[1],
376
+ versionNumber: row[2],
377
+ checksum: row[3],
378
+ contentUri: row[4],
379
+ status: row[5],
380
+ parsedSummary: row[6],
381
+ metadata: row[7],
382
+ createdAt: row[8]
383
+ };
384
+ }
@@ -0,0 +1,170 @@
1
+ import { QueryArrayConfig, QueryArrayResult } from "pg";
2
+ interface Client {
3
+ query: (config: QueryArrayConfig) => Promise<QueryArrayResult>;
4
+ }
5
+ export declare const createIntegrationEndpointQuery = "-- name: CreateIntegrationEndpoint :one\nINSERT INTO weave_v1.integration_endpoint (\n id,\n workflow_id,\n name,\n description,\n type,\n status,\n target_uri,\n auth_reference,\n config,\n metadata\n)\nVALUES (\n $1,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7,\n $8,\n $9,\n $10\n)\nRETURNING id, workflow_id, name, description, type, status, target_uri, auth_reference, config, metadata, last_checked_at, last_error, created_at, updated_at, archived_at";
6
+ export interface CreateIntegrationEndpointArgs {
7
+ id: string;
8
+ workflowId: string;
9
+ name: string;
10
+ description: string;
11
+ type: string;
12
+ status: string;
13
+ targetUri: string;
14
+ authReference: string;
15
+ config: any;
16
+ metadata: any;
17
+ }
18
+ export interface CreateIntegrationEndpointRow {
19
+ id: string;
20
+ workflowId: string;
21
+ name: string;
22
+ description: string;
23
+ type: string;
24
+ status: string;
25
+ targetUri: string;
26
+ authReference: string;
27
+ config: any;
28
+ metadata: any;
29
+ lastCheckedAt: Date | null;
30
+ lastError: string;
31
+ createdAt: Date;
32
+ updatedAt: Date;
33
+ archivedAt: Date | null;
34
+ }
35
+ export declare function createIntegrationEndpoint(client: Client, args: CreateIntegrationEndpointArgs): Promise<CreateIntegrationEndpointRow | null>;
36
+ export declare const getIntegrationEndpointQuery = "-- name: GetIntegrationEndpoint :one\nSELECT id, workflow_id, name, description, type, status, target_uri, auth_reference, config, metadata, last_checked_at, last_error, created_at, updated_at, archived_at\nFROM weave_v1.integration_endpoint\nWHERE id = $1\n AND workflow_id = $2";
37
+ export interface GetIntegrationEndpointArgs {
38
+ id: string;
39
+ workflowId: string;
40
+ }
41
+ export interface GetIntegrationEndpointRow {
42
+ id: string;
43
+ workflowId: string;
44
+ name: string;
45
+ description: string;
46
+ type: string;
47
+ status: string;
48
+ targetUri: string;
49
+ authReference: string;
50
+ config: any;
51
+ metadata: any;
52
+ lastCheckedAt: Date | null;
53
+ lastError: string;
54
+ createdAt: Date;
55
+ updatedAt: Date;
56
+ archivedAt: Date | null;
57
+ }
58
+ export declare function getIntegrationEndpoint(client: Client, args: GetIntegrationEndpointArgs): Promise<GetIntegrationEndpointRow | null>;
59
+ export declare const listIntegrationEndpointsByWorkflowQuery = "-- name: ListIntegrationEndpointsByWorkflow :many\nSELECT id, workflow_id, name, description, type, status, target_uri, auth_reference, config, metadata, last_checked_at, last_error, created_at, updated_at, archived_at\nFROM weave_v1.integration_endpoint\nWHERE workflow_id = $1\n AND ($2::BOOLEAN OR archived_at IS NULL)\nORDER BY updated_at DESC\nLIMIT $4\nOFFSET $3";
60
+ export interface ListIntegrationEndpointsByWorkflowArgs {
61
+ workflowId: string;
62
+ includeArchived: boolean;
63
+ pageOffset: string;
64
+ pageSize: string;
65
+ }
66
+ export interface ListIntegrationEndpointsByWorkflowRow {
67
+ id: string;
68
+ workflowId: string;
69
+ name: string;
70
+ description: string;
71
+ type: string;
72
+ status: string;
73
+ targetUri: string;
74
+ authReference: string;
75
+ config: any;
76
+ metadata: any;
77
+ lastCheckedAt: Date | null;
78
+ lastError: string;
79
+ createdAt: Date;
80
+ updatedAt: Date;
81
+ archivedAt: Date | null;
82
+ }
83
+ export declare function listIntegrationEndpointsByWorkflow(client: Client, args: ListIntegrationEndpointsByWorkflowArgs): Promise<ListIntegrationEndpointsByWorkflowRow[]>;
84
+ export declare const updateIntegrationEndpointQuery = "-- name: UpdateIntegrationEndpoint :one\nUPDATE weave_v1.integration_endpoint\nSET name = $1,\n description = $2,\n type = $3,\n status = $4,\n target_uri = $5,\n auth_reference = $6,\n config = $7,\n metadata = $8,\n updated_at = NOW()\nWHERE id = $9\n AND workflow_id = $10\nRETURNING id, workflow_id, name, description, type, status, target_uri, auth_reference, config, metadata, last_checked_at, last_error, created_at, updated_at, archived_at";
85
+ export interface UpdateIntegrationEndpointArgs {
86
+ name: string;
87
+ description: string;
88
+ type: string;
89
+ status: string;
90
+ targetUri: string;
91
+ authReference: string;
92
+ config: any;
93
+ metadata: any;
94
+ id: string;
95
+ workflowId: string;
96
+ }
97
+ export interface UpdateIntegrationEndpointRow {
98
+ id: string;
99
+ workflowId: string;
100
+ name: string;
101
+ description: string;
102
+ type: string;
103
+ status: string;
104
+ targetUri: string;
105
+ authReference: string;
106
+ config: any;
107
+ metadata: any;
108
+ lastCheckedAt: Date | null;
109
+ lastError: string;
110
+ createdAt: Date;
111
+ updatedAt: Date;
112
+ archivedAt: Date | null;
113
+ }
114
+ export declare function updateIntegrationEndpoint(client: Client, args: UpdateIntegrationEndpointArgs): Promise<UpdateIntegrationEndpointRow | null>;
115
+ export declare const setIntegrationEndpointValidationResultQuery = "-- name: SetIntegrationEndpointValidationResult :one\nUPDATE weave_v1.integration_endpoint\nSET status = $1,\n last_checked_at = $2,\n last_error = $3,\n updated_at = NOW()\nWHERE id = $4\n AND workflow_id = $5\nRETURNING id, workflow_id, name, description, type, status, target_uri, auth_reference, config, metadata, last_checked_at, last_error, created_at, updated_at, archived_at";
116
+ export interface SetIntegrationEndpointValidationResultArgs {
117
+ status: string;
118
+ lastCheckedAt: Date | null;
119
+ lastError: string;
120
+ id: string;
121
+ workflowId: string;
122
+ }
123
+ export interface SetIntegrationEndpointValidationResultRow {
124
+ id: string;
125
+ workflowId: string;
126
+ name: string;
127
+ description: string;
128
+ type: string;
129
+ status: string;
130
+ targetUri: string;
131
+ authReference: string;
132
+ config: any;
133
+ metadata: any;
134
+ lastCheckedAt: Date | null;
135
+ lastError: string;
136
+ createdAt: Date;
137
+ updatedAt: Date;
138
+ archivedAt: Date | null;
139
+ }
140
+ export declare function setIntegrationEndpointValidationResult(client: Client, args: SetIntegrationEndpointValidationResultArgs): Promise<SetIntegrationEndpointValidationResultRow | null>;
141
+ export declare const archiveIntegrationEndpointQuery = "-- name: ArchiveIntegrationEndpoint :one\nUPDATE weave_v1.integration_endpoint\nSET status = 'archived',\n archived_at = NOW(),\n updated_at = NOW()\nWHERE id = $1\n AND workflow_id = $2\nRETURNING id, workflow_id, name, description, type, status, target_uri, auth_reference, config, metadata, last_checked_at, last_error, created_at, updated_at, archived_at";
142
+ export interface ArchiveIntegrationEndpointArgs {
143
+ id: string;
144
+ workflowId: string;
145
+ }
146
+ export interface ArchiveIntegrationEndpointRow {
147
+ id: string;
148
+ workflowId: string;
149
+ name: string;
150
+ description: string;
151
+ type: string;
152
+ status: string;
153
+ targetUri: string;
154
+ authReference: string;
155
+ config: any;
156
+ metadata: any;
157
+ lastCheckedAt: Date | null;
158
+ lastError: string;
159
+ createdAt: Date;
160
+ updatedAt: Date;
161
+ archivedAt: Date | null;
162
+ }
163
+ export declare function archiveIntegrationEndpoint(client: Client, args: ArchiveIntegrationEndpointArgs): Promise<ArchiveIntegrationEndpointRow | null>;
164
+ export declare const deleteIntegrationEndpointQuery = "-- name: DeleteIntegrationEndpoint :exec\nDELETE\nFROM weave_v1.integration_endpoint\nWHERE id = $1\n AND workflow_id = $2";
165
+ export interface DeleteIntegrationEndpointArgs {
166
+ id: string;
167
+ workflowId: string;
168
+ }
169
+ export declare function deleteIntegrationEndpoint(client: Client, args: DeleteIntegrationEndpointArgs): Promise<void>;
170
+ export {};