@qawolf/api-contracts 0.130.0 → 0.133.0
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/v1/activity/wait.d.ts +2 -2
- package/dist/v1/agent/get.d.ts +1 -1
- package/dist/v1/agent/send.d.ts +1 -1
- package/dist/v1/agent/status.d.ts +1 -1
- package/dist/v1/attempt/get.d.ts +14 -14
- package/dist/v1/deployment/verdict.d.ts +7 -7
- package/dist/v1/deployment/verdictParts.d.ts +2 -2
- package/dist/v1/environment/find.d.ts +2 -0
- package/dist/v1/environment/find.d.ts.map +1 -1
- package/dist/v1/environment/find.js +14 -1
- package/dist/v1/environment/find.js.map +1 -1
- package/dist/v1/environment/promote.d.ts +45 -0
- package/dist/v1/environment/promote.d.ts.map +1 -1
- package/dist/v1/flow/getHistory.d.ts +1 -1
- package/dist/v1/ids.d.ts +2 -0
- package/dist/v1/ids.d.ts.map +1 -1
- package/dist/v1/ids.js +4 -0
- package/dist/v1/ids.js.map +1 -1
- package/dist/v1/index.d.ts +1236 -247
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +3 -0
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/investigation/get.d.ts +1 -1
- package/dist/v1/investigation/index.d.ts +1 -1
- package/dist/v1/issue/comment.d.ts +3 -0
- package/dist/v1/issue/comment.d.ts.map +1 -1
- package/dist/v1/issue/commentResource.d.ts +3 -0
- package/dist/v1/issue/commentResource.d.ts.map +1 -1
- package/dist/v1/issue/commentResource.js +8 -1
- package/dist/v1/issue/commentResource.js.map +1 -1
- package/dist/v1/issue/contracts.d.ts +6 -74
- package/dist/v1/issue/contracts.d.ts.map +1 -1
- package/dist/v1/issue/contracts.js +0 -2
- package/dist/v1/issue/contracts.js.map +1 -1
- package/dist/v1/issue/listComments.d.ts +3 -0
- package/dist/v1/issue/listComments.d.ts.map +1 -1
- package/dist/v1/narratedRecording/get.d.ts +1 -1
- package/dist/v1/promotion/decision.d.ts +51 -0
- package/dist/v1/promotion/decision.d.ts.map +1 -0
- package/dist/v1/promotion/decision.js +32 -0
- package/dist/v1/promotion/decision.js.map +1 -0
- package/dist/v1/promotion/find.d.ts +45 -0
- package/dist/v1/promotion/find.d.ts.map +1 -1
- package/dist/v1/promotion/get.d.ts +45 -0
- package/dist/v1/promotion/get.d.ts.map +1 -1
- package/dist/v1/promotion/index.d.ts +271 -1
- package/dist/v1/promotion/index.d.ts.map +1 -1
- package/dist/v1/promotion/index.js +3 -0
- package/dist/v1/promotion/index.js.map +1 -1
- package/dist/v1/promotion/needsPerson.d.ts +25 -0
- package/dist/v1/promotion/needsPerson.d.ts.map +1 -0
- package/dist/v1/promotion/needsPerson.js +20 -0
- package/dist/v1/promotion/needsPerson.js.map +1 -0
- package/dist/v1/promotion/reportDecision.d.ts +142 -0
- package/dist/v1/promotion/reportDecision.d.ts.map +1 -0
- package/dist/v1/promotion/reportDecision.js +72 -0
- package/dist/v1/promotion/reportDecision.js.map +1 -0
- package/dist/v1/promotion/resolve.d.ts +46 -1
- package/dist/v1/promotion/resolve.d.ts.map +1 -1
- package/dist/v1/promotion/resolve.js +1 -1
- package/dist/v1/promotion/resolve.js.map +1 -1
- package/dist/v1/promotion/resource.d.ts +45 -0
- package/dist/v1/promotion/resource.d.ts.map +1 -1
- package/dist/v1/promotion/resource.js +9 -0
- package/dist/v1/promotion/resource.js.map +1 -1
- package/dist/v1/promotion/validationRun.d.ts +2 -0
- package/dist/v1/promotion/validationRun.d.ts.map +1 -1
- package/dist/v1/promotion/validationRun.js +2 -2
- package/dist/v1/promotion/validationRun.js.map +1 -1
- package/dist/v1/run/alertNotifications.d.ts +28 -0
- package/dist/v1/run/alertNotifications.d.ts.map +1 -0
- package/dist/v1/run/alertNotifications.js +33 -0
- package/dist/v1/run/alertNotifications.js.map +1 -0
- package/dist/v1/run/find.d.ts +1 -1
- package/dist/v1/run/get.d.ts +16 -3
- package/dist/v1/run/get.d.ts.map +1 -1
- package/dist/v1/run/get.js +3 -1
- package/dist/v1/run/get.js.map +1 -1
- package/dist/v1/run/index.d.ts +1 -0
- package/dist/v1/run/index.d.ts.map +1 -1
- package/dist/v1/run/index.js +1 -1
- package/dist/v1/run/index.js.map +1 -1
- package/dist/v1/run/summary.d.ts +1 -1
- package/dist/v1/runEventsWebhook/index.d.ts +10 -10
- package/dist/v1/runner/journal.d.ts +1 -1
- package/dist/v1/runner/journal.d.ts.map +1 -1
- package/dist/v1/runner/journal.js +1 -0
- package/dist/v1/runner/journal.js.map +1 -1
- package/dist/v1/suggestion/decide.d.ts +90 -0
- package/dist/v1/suggestion/decide.d.ts.map +1 -0
- package/dist/v1/suggestion/decide.js +35 -0
- package/dist/v1/suggestion/decide.js.map +1 -0
- package/dist/v1/suggestion/find.d.ts +87 -0
- package/dist/v1/suggestion/find.d.ts.map +1 -0
- package/dist/v1/suggestion/find.js +40 -0
- package/dist/v1/suggestion/find.js.map +1 -0
- package/dist/v1/suggestion/get.d.ts +78 -0
- package/dist/v1/suggestion/get.d.ts.map +1 -0
- package/dist/v1/suggestion/get.js +27 -0
- package/dist/v1/suggestion/get.js.map +1 -0
- package/dist/v1/suggestion/index.d.ts +240 -0
- package/dist/v1/suggestion/index.d.ts.map +1 -0
- package/dist/v1/suggestion/index.js +9 -0
- package/dist/v1/suggestion/index.js.map +1 -0
- package/dist/v1/suggestion/resource.d.ts +70 -0
- package/dist/v1/suggestion/resource.d.ts.map +1 -0
- package/dist/v1/suggestion/resource.js +63 -0
- package/dist/v1/suggestion/resource.js.map +1 -0
- package/package.json +1 -1
- package/dist/v1/issue/decideSuggestion.d.ts +0 -82
- package/dist/v1/issue/decideSuggestion.d.ts.map +0 -1
- package/dist/v1/issue/decideSuggestion.js +0 -40
- package/dist/v1/issue/decideSuggestion.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal.js","sourceRoot":"","sources":["../../../src/v1/runner/journal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC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estionContract: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, IssueId extends PublicIdSchema>(ids: {
|
|
4
|
+
environment: EnvironmentId;
|
|
5
|
+
flow: FlowId;
|
|
6
|
+
issue: IssueId;
|
|
7
|
+
suggestion: PublicIdSchema;
|
|
8
|
+
}) => {
|
|
9
|
+
readonly annotationJustifications: {
|
|
10
|
+
readonly destructiveHint: "Every decision can be undone until the flow joins, and nothing is deleted.";
|
|
11
|
+
readonly openWorldHint: "An added suggestion writes its flow to the environment's flow code repository.";
|
|
12
|
+
readonly readOnlyHint: "Records a decision on a suggestion and changes its linked issue's status.";
|
|
13
|
+
};
|
|
14
|
+
readonly annotations: {
|
|
15
|
+
readonly destructiveHint: false;
|
|
16
|
+
readonly openWorldHint: true;
|
|
17
|
+
readonly readOnlyHint: false;
|
|
18
|
+
};
|
|
19
|
+
readonly description: string;
|
|
20
|
+
readonly input: z.ZodObject<{
|
|
21
|
+
decision: z.ZodEnum<{
|
|
22
|
+
add: "add";
|
|
23
|
+
report: "report";
|
|
24
|
+
skip: "skip";
|
|
25
|
+
undo: "undo";
|
|
26
|
+
activate: "activate";
|
|
27
|
+
}>;
|
|
28
|
+
skipReason: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
"not-worth-testing": "not-worth-testing";
|
|
30
|
+
"already-covered": "already-covered";
|
|
31
|
+
"feature-removed": "feature-removed";
|
|
32
|
+
}>>;
|
|
33
|
+
suggestionId: PublicIdSchema;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
readonly kind: "write";
|
|
36
|
+
readonly name: "suggestion.decide";
|
|
37
|
+
readonly output: z.ZodObject<{
|
|
38
|
+
suggestion: z.ZodObject<{
|
|
39
|
+
decidedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
40
|
+
decisions: z.ZodArray<z.ZodEnum<{
|
|
41
|
+
add: "add";
|
|
42
|
+
report: "report";
|
|
43
|
+
skip: "skip";
|
|
44
|
+
undo: "undo";
|
|
45
|
+
activate: "activate";
|
|
46
|
+
}>>;
|
|
47
|
+
environmentId: EnvironmentId;
|
|
48
|
+
environmentName: z.ZodString;
|
|
49
|
+
flow: z.ZodObject<{
|
|
50
|
+
flowId: z.ZodOptional<FlowId>;
|
|
51
|
+
path: z.ZodString;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
holdReason: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
"path-taken": "path-taken";
|
|
55
|
+
"not-proven-on-merged-commit": "not-proven-on-merged-commit";
|
|
56
|
+
"merge-conflicted": "merge-conflicted";
|
|
57
|
+
"undo-cleanup-failed": "undo-cleanup-failed";
|
|
58
|
+
}>>;
|
|
59
|
+
issue: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
issueId: IssueId;
|
|
61
|
+
type: z.ZodEnum<{
|
|
62
|
+
bug: "bug";
|
|
63
|
+
coverageRequest: "coverageRequest";
|
|
64
|
+
}>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
kind: z.ZodEnum<{
|
|
67
|
+
"new-flow": "new-flow";
|
|
68
|
+
"potential-bug": "potential-bug";
|
|
69
|
+
}>;
|
|
70
|
+
location: z.ZodString;
|
|
71
|
+
reason: z.ZodString;
|
|
72
|
+
skipReason: z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
"not-worth-testing": "not-worth-testing";
|
|
74
|
+
"already-covered": "already-covered";
|
|
75
|
+
"feature-removed": "feature-removed";
|
|
76
|
+
}>>;
|
|
77
|
+
state: z.ZodEnum<{
|
|
78
|
+
skipped: "skipped";
|
|
79
|
+
accepted: "accepted";
|
|
80
|
+
waiting: "waiting";
|
|
81
|
+
expired: "expired";
|
|
82
|
+
}>;
|
|
83
|
+
suggestedAt: z.ZodISODateTime;
|
|
84
|
+
suggestionId: PublicIdSchema;
|
|
85
|
+
title: z.ZodString;
|
|
86
|
+
url: z.ZodURL;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=decide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decide.d.ts","sourceRoot":"","sources":["../../../src/v1/suggestion/decide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,4BAA4B,GACvC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,cAAc,CAAC;CAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CA,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { makeSuggestionResourceSchema, suggestionDecisionSchema, suggestionSkipReasonSchema, } from "./resource.js";
|
|
3
|
+
export const makeDecideSuggestionContract = (ids) => {
|
|
4
|
+
const input = z
|
|
5
|
+
.object({
|
|
6
|
+
decision: suggestionDecisionSchema,
|
|
7
|
+
skipReason: suggestionSkipReasonSchema
|
|
8
|
+
.optional()
|
|
9
|
+
.describe("Why the suggestion is skipped. Required for skip."),
|
|
10
|
+
suggestionId: ids.suggestion.describe("The id of the coverage suggestion, from suggestion.find or a new suggestions notification."),
|
|
11
|
+
})
|
|
12
|
+
.refine(({ decision, skipReason }) => decision !== "skip" || skipReason !== undefined, { message: "skipReason is required when the decision is skip." });
|
|
13
|
+
const output = z.object({ suggestion: makeSuggestionResourceSchema(ids) });
|
|
14
|
+
return {
|
|
15
|
+
annotationJustifications: {
|
|
16
|
+
destructiveHint: "Every decision can be undone until the flow joins, and nothing is deleted.",
|
|
17
|
+
openWorldHint: "An added suggestion writes its flow to the environment's flow code repository.",
|
|
18
|
+
readOnlyHint: "Records a decision on a suggestion and changes its linked issue's status.",
|
|
19
|
+
},
|
|
20
|
+
annotations: {
|
|
21
|
+
destructiveHint: false,
|
|
22
|
+
openWorldHint: true,
|
|
23
|
+
readOnlyHint: false,
|
|
24
|
+
},
|
|
25
|
+
description: "Decide a coverage suggestion QA Wolf made while exploring an environment, as the signed-in person. " +
|
|
26
|
+
"Add turns on the suggested flow in the environment. Report files the potential bug. Skip declines the suggestion and needs a skipReason. " +
|
|
27
|
+
"Undo takes back a decision. Activate retries a held suggestion. Only the decisions suggestion.get lists take effect. " +
|
|
28
|
+
"Use this, not issue.update, to accept or skip a suggestion.",
|
|
29
|
+
input,
|
|
30
|
+
kind: "write",
|
|
31
|
+
name: "suggestion.decide",
|
|
32
|
+
output,
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=decide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decide.js","sourceRoot":"","sources":["../../../src/v1/suggestion/decide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAI1C,GAKD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC;SACZ,MAAM,CAAC;QACN,QAAQ,EAAE,wBAAwB;QAClC,UAAU,EAAE,0BAA0B;aACnC,QAAQ,EAAE;aACV,QAAQ,CAAC,mDAAmD,CAAC;QAChE,YAAY,EAAE,GAAG,CAAC,UAAU,CAAC,QAAQ,CACnC,4FAA4F,CAC7F;KACF,CAAC;SACD,MAAM,CACL,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,CAC3B,QAAQ,KAAK,MAAM,IAAI,UAAU,KAAK,SAAS,EACjD,EAAE,OAAO,EAAE,mDAAmD,EAAE,CACjE,CAAC;IACJ,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,4BAA4B,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAE3E,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,4EAA4E;YAC9E,aAAa,EACX,gFAAgF;YAClF,YAAY,EACV,2EAA2E;SAC9E;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,qGAAqG;YACrG,2IAA2I;YAC3I,uHAAuH;YACvH,6DAA6D;QAC/D,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,mBAAmB;QACzB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
+
export declare const makeFindSuggestionsContract: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, IssueId extends PublicIdSchema, WorkspaceId extends PublicIdSchema>(ids: {
|
|
4
|
+
environment: EnvironmentId;
|
|
5
|
+
flow: FlowId;
|
|
6
|
+
issue: IssueId;
|
|
7
|
+
suggestion: PublicIdSchema;
|
|
8
|
+
workspace: WorkspaceId;
|
|
9
|
+
}) => {
|
|
10
|
+
readonly annotationJustifications: {
|
|
11
|
+
readonly destructiveHint: "Does not decide or change any suggestion.";
|
|
12
|
+
readonly openWorldHint: "Reads QA Wolf suggestion records without changing external systems.";
|
|
13
|
+
readonly readOnlyHint: "Lists the workspace's coverage suggestions.";
|
|
14
|
+
};
|
|
15
|
+
readonly annotations: {
|
|
16
|
+
readonly destructiveHint: false;
|
|
17
|
+
readonly openWorldHint: false;
|
|
18
|
+
readonly readOnlyHint: true;
|
|
19
|
+
};
|
|
20
|
+
readonly description: string;
|
|
21
|
+
readonly input: z.ZodObject<{
|
|
22
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
23
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
24
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
skipped: "skipped";
|
|
26
|
+
accepted: "accepted";
|
|
27
|
+
waiting: "waiting";
|
|
28
|
+
}>>;
|
|
29
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
readonly kind: "read";
|
|
32
|
+
readonly name: "suggestion.find";
|
|
33
|
+
readonly output: z.ZodObject<{
|
|
34
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
35
|
+
suggestions: z.ZodArray<z.ZodObject<{
|
|
36
|
+
decidedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
37
|
+
decisions: z.ZodArray<z.ZodEnum<{
|
|
38
|
+
add: "add";
|
|
39
|
+
report: "report";
|
|
40
|
+
skip: "skip";
|
|
41
|
+
undo: "undo";
|
|
42
|
+
activate: "activate";
|
|
43
|
+
}>>;
|
|
44
|
+
environmentId: EnvironmentId;
|
|
45
|
+
environmentName: z.ZodString;
|
|
46
|
+
flow: z.ZodObject<{
|
|
47
|
+
flowId: z.ZodOptional<FlowId>;
|
|
48
|
+
path: z.ZodString;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
holdReason: z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
"path-taken": "path-taken";
|
|
52
|
+
"not-proven-on-merged-commit": "not-proven-on-merged-commit";
|
|
53
|
+
"merge-conflicted": "merge-conflicted";
|
|
54
|
+
"undo-cleanup-failed": "undo-cleanup-failed";
|
|
55
|
+
}>>;
|
|
56
|
+
issue: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
issueId: IssueId;
|
|
58
|
+
type: z.ZodEnum<{
|
|
59
|
+
bug: "bug";
|
|
60
|
+
coverageRequest: "coverageRequest";
|
|
61
|
+
}>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
kind: z.ZodEnum<{
|
|
64
|
+
"new-flow": "new-flow";
|
|
65
|
+
"potential-bug": "potential-bug";
|
|
66
|
+
}>;
|
|
67
|
+
location: z.ZodString;
|
|
68
|
+
reason: z.ZodString;
|
|
69
|
+
skipReason: z.ZodOptional<z.ZodEnum<{
|
|
70
|
+
"not-worth-testing": "not-worth-testing";
|
|
71
|
+
"already-covered": "already-covered";
|
|
72
|
+
"feature-removed": "feature-removed";
|
|
73
|
+
}>>;
|
|
74
|
+
state: z.ZodEnum<{
|
|
75
|
+
skipped: "skipped";
|
|
76
|
+
accepted: "accepted";
|
|
77
|
+
waiting: "waiting";
|
|
78
|
+
expired: "expired";
|
|
79
|
+
}>;
|
|
80
|
+
suggestedAt: z.ZodISODateTime;
|
|
81
|
+
suggestionId: PublicIdSchema;
|
|
82
|
+
title: z.ZodString;
|
|
83
|
+
url: z.ZodURL;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=find.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/v1/suggestion/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,2BAA2B,GACtC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,cAAc,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CA,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { makePaginationInputFields, nextCursorSchema } from "../pagination.js";
|
|
3
|
+
import { makeSuggestionResourceSchema } from "./resource.js";
|
|
4
|
+
export const makeFindSuggestionsContract = (ids) => {
|
|
5
|
+
const input = z.object({
|
|
6
|
+
state: z
|
|
7
|
+
.enum(["waiting", "accepted", "skipped"])
|
|
8
|
+
.optional()
|
|
9
|
+
.describe("Only list suggestions in this state. Use waiting to find the ones that need a decision. Omit to list all three."),
|
|
10
|
+
workspaceId: ids.workspace
|
|
11
|
+
.optional()
|
|
12
|
+
.describe("The workspace whose suggestions to list. Required when authenticating with an organization or user API key."),
|
|
13
|
+
...makePaginationInputFields({ defaultLimit: 20, maxLimit: 100 }),
|
|
14
|
+
});
|
|
15
|
+
const output = z.object({
|
|
16
|
+
nextCursor: nextCursorSchema,
|
|
17
|
+
suggestions: z
|
|
18
|
+
.array(makeSuggestionResourceSchema(ids))
|
|
19
|
+
.describe("The workspace's coverage suggestions, newest first."),
|
|
20
|
+
});
|
|
21
|
+
return {
|
|
22
|
+
annotationJustifications: {
|
|
23
|
+
destructiveHint: "Does not decide or change any suggestion.",
|
|
24
|
+
openWorldHint: "Reads QA Wolf suggestion records without changing external systems.",
|
|
25
|
+
readOnlyHint: "Lists the workspace's coverage suggestions.",
|
|
26
|
+
},
|
|
27
|
+
annotations: {
|
|
28
|
+
destructiveHint: false,
|
|
29
|
+
openWorldHint: false,
|
|
30
|
+
readOnlyHint: true,
|
|
31
|
+
},
|
|
32
|
+
description: "List the coverage QA Wolf suggested for a workspace, newest first: flows it wrote for missing coverage and potential bugs it found while exploring an environment. " +
|
|
33
|
+
"Use this, not issue.find, for QA Wolf's suggestions, such as the ones a new suggestions notification points to. Filter by state waiting to find the ones that need a decision.",
|
|
34
|
+
input,
|
|
35
|
+
kind: "read",
|
|
36
|
+
name: "suggestion.find",
|
|
37
|
+
output,
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=find.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../src/v1/suggestion/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAE7D,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAKzC,GAMD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,KAAK,EAAE,CAAC;aACL,IAAI,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;aACxC,QAAQ,EAAE;aACV,QAAQ,CACP,iHAAiH,CAClH;QACH,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CACP,6GAA6G,CAC9G;QACH,GAAG,yBAAyB,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;KAClE,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,UAAU,EAAE,gBAAgB;QAC5B,WAAW,EAAE,CAAC;aACX,KAAK,CAAC,4BAA4B,CAAC,GAAG,CAAC,CAAC;aACxC,QAAQ,CAAC,qDAAqD,CAAC;KACnE,CAAC,CAAC;IAEH,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EAAE,2CAA2C;YAC5D,aAAa,EACX,qEAAqE;YACvE,YAAY,EAAE,6CAA6C;SAC5D;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EACT,qKAAqK;YACrK,gLAAgL;QAClL,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,iBAAiB;QACvB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
+
export declare const makeGetSuggestionContract: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, IssueId extends PublicIdSchema>(ids: {
|
|
4
|
+
environment: EnvironmentId;
|
|
5
|
+
flow: FlowId;
|
|
6
|
+
issue: IssueId;
|
|
7
|
+
suggestion: PublicIdSchema;
|
|
8
|
+
}) => {
|
|
9
|
+
readonly annotationJustifications: {
|
|
10
|
+
readonly destructiveHint: "Does not decide or change the suggestion.";
|
|
11
|
+
readonly openWorldHint: "Reads a QA Wolf suggestion record without changing external systems.";
|
|
12
|
+
readonly readOnlyHint: "Retrieves one coverage suggestion.";
|
|
13
|
+
};
|
|
14
|
+
readonly annotations: {
|
|
15
|
+
readonly destructiveHint: false;
|
|
16
|
+
readonly openWorldHint: false;
|
|
17
|
+
readonly readOnlyHint: true;
|
|
18
|
+
};
|
|
19
|
+
readonly description: string;
|
|
20
|
+
readonly input: z.ZodObject<{
|
|
21
|
+
suggestionId: PublicIdSchema;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
readonly kind: "read";
|
|
24
|
+
readonly name: "suggestion.get";
|
|
25
|
+
readonly output: z.ZodObject<{
|
|
26
|
+
suggestion: z.ZodObject<{
|
|
27
|
+
decidedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
28
|
+
decisions: z.ZodArray<z.ZodEnum<{
|
|
29
|
+
add: "add";
|
|
30
|
+
report: "report";
|
|
31
|
+
skip: "skip";
|
|
32
|
+
undo: "undo";
|
|
33
|
+
activate: "activate";
|
|
34
|
+
}>>;
|
|
35
|
+
environmentId: EnvironmentId;
|
|
36
|
+
environmentName: z.ZodString;
|
|
37
|
+
flow: z.ZodObject<{
|
|
38
|
+
flowId: z.ZodOptional<FlowId>;
|
|
39
|
+
path: z.ZodString;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
holdReason: z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
"path-taken": "path-taken";
|
|
43
|
+
"not-proven-on-merged-commit": "not-proven-on-merged-commit";
|
|
44
|
+
"merge-conflicted": "merge-conflicted";
|
|
45
|
+
"undo-cleanup-failed": "undo-cleanup-failed";
|
|
46
|
+
}>>;
|
|
47
|
+
issue: z.ZodOptional<z.ZodObject<{
|
|
48
|
+
issueId: IssueId;
|
|
49
|
+
type: z.ZodEnum<{
|
|
50
|
+
bug: "bug";
|
|
51
|
+
coverageRequest: "coverageRequest";
|
|
52
|
+
}>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
kind: z.ZodEnum<{
|
|
55
|
+
"new-flow": "new-flow";
|
|
56
|
+
"potential-bug": "potential-bug";
|
|
57
|
+
}>;
|
|
58
|
+
location: z.ZodString;
|
|
59
|
+
reason: z.ZodString;
|
|
60
|
+
skipReason: z.ZodOptional<z.ZodEnum<{
|
|
61
|
+
"not-worth-testing": "not-worth-testing";
|
|
62
|
+
"already-covered": "already-covered";
|
|
63
|
+
"feature-removed": "feature-removed";
|
|
64
|
+
}>>;
|
|
65
|
+
state: z.ZodEnum<{
|
|
66
|
+
skipped: "skipped";
|
|
67
|
+
accepted: "accepted";
|
|
68
|
+
waiting: "waiting";
|
|
69
|
+
expired: "expired";
|
|
70
|
+
}>;
|
|
71
|
+
suggestedAt: z.ZodISODateTime;
|
|
72
|
+
suggestionId: PublicIdSchema;
|
|
73
|
+
title: z.ZodString;
|
|
74
|
+
url: z.ZodURL;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=get.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/suggestion/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,yBAAyB,GACpC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,cAAc,CAAC;CAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCA,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { makeSuggestionResourceSchema } from "./resource.js";
|
|
3
|
+
export const makeGetSuggestionContract = (ids) => {
|
|
4
|
+
const input = z.object({
|
|
5
|
+
suggestionId: ids.suggestion.describe("The id of the coverage suggestion, from suggestion.find or a new suggestions notification."),
|
|
6
|
+
});
|
|
7
|
+
const output = z.object({ suggestion: makeSuggestionResourceSchema(ids) });
|
|
8
|
+
return {
|
|
9
|
+
annotationJustifications: {
|
|
10
|
+
destructiveHint: "Does not decide or change the suggestion.",
|
|
11
|
+
openWorldHint: "Reads a QA Wolf suggestion record without changing external systems.",
|
|
12
|
+
readOnlyHint: "Retrieves one coverage suggestion.",
|
|
13
|
+
},
|
|
14
|
+
annotations: {
|
|
15
|
+
destructiveHint: false,
|
|
16
|
+
openWorldHint: false,
|
|
17
|
+
readOnlyHint: true,
|
|
18
|
+
},
|
|
19
|
+
description: "Read one coverage suggestion QA Wolf made while exploring an environment: its state, the flow it proposes, the bug report or coverage request behind it, and the decisions it takes now. " +
|
|
20
|
+
"Use this, not issue.get, for a suggestion id. A suggestion QA Wolf withdrew reads as not found.",
|
|
21
|
+
input,
|
|
22
|
+
kind: "read",
|
|
23
|
+
name: "suggestion.get",
|
|
24
|
+
output,
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/v1/suggestion/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAE7D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAIvC,GAKD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,YAAY,EAAE,GAAG,CAAC,UAAU,CAAC,QAAQ,CACnC,4FAA4F,CAC7F;KACF,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,4BAA4B,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAE3E,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EAAE,2CAA2C;YAC5D,aAAa,EACX,sEAAsE;YACxE,YAAY,EAAE,oCAAoC;SACnD;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EACT,2LAA2L;YAC3L,iGAAiG;QACnG,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,gBAAgB;QACtB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
2
|
+
export declare const makeSuggestionContracts: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, IssueId extends PublicIdSchema, WorkspaceId extends PublicIdSchema>(ids: {
|
|
3
|
+
environment: EnvironmentId;
|
|
4
|
+
flow: FlowId;
|
|
5
|
+
issue: IssueId;
|
|
6
|
+
suggestion: PublicIdSchema;
|
|
7
|
+
workspace: WorkspaceId;
|
|
8
|
+
}) => {
|
|
9
|
+
decide: {
|
|
10
|
+
readonly annotationJustifications: {
|
|
11
|
+
readonly destructiveHint: "Every decision can be undone until the flow joins, and nothing is deleted.";
|
|
12
|
+
readonly openWorldHint: "An added suggestion writes its flow to the environment's flow code repository.";
|
|
13
|
+
readonly readOnlyHint: "Records a decision on a suggestion and changes its linked issue's status.";
|
|
14
|
+
};
|
|
15
|
+
readonly annotations: {
|
|
16
|
+
readonly destructiveHint: false;
|
|
17
|
+
readonly openWorldHint: true;
|
|
18
|
+
readonly readOnlyHint: false;
|
|
19
|
+
};
|
|
20
|
+
readonly description: string;
|
|
21
|
+
readonly input: import("zod").ZodObject<{
|
|
22
|
+
decision: import("zod").ZodEnum<{
|
|
23
|
+
add: "add";
|
|
24
|
+
report: "report";
|
|
25
|
+
skip: "skip";
|
|
26
|
+
undo: "undo";
|
|
27
|
+
activate: "activate";
|
|
28
|
+
}>;
|
|
29
|
+
skipReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
30
|
+
"not-worth-testing": "not-worth-testing";
|
|
31
|
+
"already-covered": "already-covered";
|
|
32
|
+
"feature-removed": "feature-removed";
|
|
33
|
+
}>>;
|
|
34
|
+
suggestionId: PublicIdSchema;
|
|
35
|
+
}, import("zod/v4/core").$strip>;
|
|
36
|
+
readonly kind: "write";
|
|
37
|
+
readonly name: "suggestion.decide";
|
|
38
|
+
readonly output: import("zod").ZodObject<{
|
|
39
|
+
suggestion: import("zod").ZodObject<{
|
|
40
|
+
decidedAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
|
|
41
|
+
decisions: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
42
|
+
add: "add";
|
|
43
|
+
report: "report";
|
|
44
|
+
skip: "skip";
|
|
45
|
+
undo: "undo";
|
|
46
|
+
activate: "activate";
|
|
47
|
+
}>>;
|
|
48
|
+
environmentId: EnvironmentId;
|
|
49
|
+
environmentName: import("zod").ZodString;
|
|
50
|
+
flow: import("zod").ZodObject<{
|
|
51
|
+
flowId: import("zod").ZodOptional<FlowId>;
|
|
52
|
+
path: import("zod").ZodString;
|
|
53
|
+
}, import("zod/v4/core").$strip>;
|
|
54
|
+
holdReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
55
|
+
"path-taken": "path-taken";
|
|
56
|
+
"not-proven-on-merged-commit": "not-proven-on-merged-commit";
|
|
57
|
+
"merge-conflicted": "merge-conflicted";
|
|
58
|
+
"undo-cleanup-failed": "undo-cleanup-failed";
|
|
59
|
+
}>>;
|
|
60
|
+
issue: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
61
|
+
issueId: IssueId;
|
|
62
|
+
type: import("zod").ZodEnum<{
|
|
63
|
+
bug: "bug";
|
|
64
|
+
coverageRequest: "coverageRequest";
|
|
65
|
+
}>;
|
|
66
|
+
}, import("zod/v4/core").$strip>>;
|
|
67
|
+
kind: import("zod").ZodEnum<{
|
|
68
|
+
"new-flow": "new-flow";
|
|
69
|
+
"potential-bug": "potential-bug";
|
|
70
|
+
}>;
|
|
71
|
+
location: import("zod").ZodString;
|
|
72
|
+
reason: import("zod").ZodString;
|
|
73
|
+
skipReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
74
|
+
"not-worth-testing": "not-worth-testing";
|
|
75
|
+
"already-covered": "already-covered";
|
|
76
|
+
"feature-removed": "feature-removed";
|
|
77
|
+
}>>;
|
|
78
|
+
state: import("zod").ZodEnum<{
|
|
79
|
+
skipped: "skipped";
|
|
80
|
+
accepted: "accepted";
|
|
81
|
+
waiting: "waiting";
|
|
82
|
+
expired: "expired";
|
|
83
|
+
}>;
|
|
84
|
+
suggestedAt: import("zod").ZodISODateTime;
|
|
85
|
+
suggestionId: PublicIdSchema;
|
|
86
|
+
title: import("zod").ZodString;
|
|
87
|
+
url: import("zod").ZodURL;
|
|
88
|
+
}, import("zod/v4/core").$strip>;
|
|
89
|
+
}, import("zod/v4/core").$strip>;
|
|
90
|
+
};
|
|
91
|
+
find: {
|
|
92
|
+
readonly annotationJustifications: {
|
|
93
|
+
readonly destructiveHint: "Does not decide or change any suggestion.";
|
|
94
|
+
readonly openWorldHint: "Reads QA Wolf suggestion records without changing external systems.";
|
|
95
|
+
readonly readOnlyHint: "Lists the workspace's coverage suggestions.";
|
|
96
|
+
};
|
|
97
|
+
readonly annotations: {
|
|
98
|
+
readonly destructiveHint: false;
|
|
99
|
+
readonly openWorldHint: false;
|
|
100
|
+
readonly readOnlyHint: true;
|
|
101
|
+
};
|
|
102
|
+
readonly description: string;
|
|
103
|
+
readonly input: import("zod").ZodObject<{
|
|
104
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
105
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
106
|
+
state: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
107
|
+
skipped: "skipped";
|
|
108
|
+
accepted: "accepted";
|
|
109
|
+
waiting: "waiting";
|
|
110
|
+
}>>;
|
|
111
|
+
workspaceId: import("zod").ZodOptional<WorkspaceId>;
|
|
112
|
+
}, import("zod/v4/core").$strip>;
|
|
113
|
+
readonly kind: "read";
|
|
114
|
+
readonly name: "suggestion.find";
|
|
115
|
+
readonly output: import("zod").ZodObject<{
|
|
116
|
+
nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
117
|
+
suggestions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
118
|
+
decidedAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
|
|
119
|
+
decisions: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
120
|
+
add: "add";
|
|
121
|
+
report: "report";
|
|
122
|
+
skip: "skip";
|
|
123
|
+
undo: "undo";
|
|
124
|
+
activate: "activate";
|
|
125
|
+
}>>;
|
|
126
|
+
environmentId: EnvironmentId;
|
|
127
|
+
environmentName: import("zod").ZodString;
|
|
128
|
+
flow: import("zod").ZodObject<{
|
|
129
|
+
flowId: import("zod").ZodOptional<FlowId>;
|
|
130
|
+
path: import("zod").ZodString;
|
|
131
|
+
}, import("zod/v4/core").$strip>;
|
|
132
|
+
holdReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
133
|
+
"path-taken": "path-taken";
|
|
134
|
+
"not-proven-on-merged-commit": "not-proven-on-merged-commit";
|
|
135
|
+
"merge-conflicted": "merge-conflicted";
|
|
136
|
+
"undo-cleanup-failed": "undo-cleanup-failed";
|
|
137
|
+
}>>;
|
|
138
|
+
issue: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
139
|
+
issueId: IssueId;
|
|
140
|
+
type: import("zod").ZodEnum<{
|
|
141
|
+
bug: "bug";
|
|
142
|
+
coverageRequest: "coverageRequest";
|
|
143
|
+
}>;
|
|
144
|
+
}, import("zod/v4/core").$strip>>;
|
|
145
|
+
kind: import("zod").ZodEnum<{
|
|
146
|
+
"new-flow": "new-flow";
|
|
147
|
+
"potential-bug": "potential-bug";
|
|
148
|
+
}>;
|
|
149
|
+
location: import("zod").ZodString;
|
|
150
|
+
reason: import("zod").ZodString;
|
|
151
|
+
skipReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
152
|
+
"not-worth-testing": "not-worth-testing";
|
|
153
|
+
"already-covered": "already-covered";
|
|
154
|
+
"feature-removed": "feature-removed";
|
|
155
|
+
}>>;
|
|
156
|
+
state: import("zod").ZodEnum<{
|
|
157
|
+
skipped: "skipped";
|
|
158
|
+
accepted: "accepted";
|
|
159
|
+
waiting: "waiting";
|
|
160
|
+
expired: "expired";
|
|
161
|
+
}>;
|
|
162
|
+
suggestedAt: import("zod").ZodISODateTime;
|
|
163
|
+
suggestionId: PublicIdSchema;
|
|
164
|
+
title: import("zod").ZodString;
|
|
165
|
+
url: import("zod").ZodURL;
|
|
166
|
+
}, import("zod/v4/core").$strip>>;
|
|
167
|
+
}, import("zod/v4/core").$strip>;
|
|
168
|
+
};
|
|
169
|
+
get: {
|
|
170
|
+
readonly annotationJustifications: {
|
|
171
|
+
readonly destructiveHint: "Does not decide or change the suggestion.";
|
|
172
|
+
readonly openWorldHint: "Reads a QA Wolf suggestion record without changing external systems.";
|
|
173
|
+
readonly readOnlyHint: "Retrieves one coverage suggestion.";
|
|
174
|
+
};
|
|
175
|
+
readonly annotations: {
|
|
176
|
+
readonly destructiveHint: false;
|
|
177
|
+
readonly openWorldHint: false;
|
|
178
|
+
readonly readOnlyHint: true;
|
|
179
|
+
};
|
|
180
|
+
readonly description: string;
|
|
181
|
+
readonly input: import("zod").ZodObject<{
|
|
182
|
+
suggestionId: PublicIdSchema;
|
|
183
|
+
}, import("zod/v4/core").$strip>;
|
|
184
|
+
readonly kind: "read";
|
|
185
|
+
readonly name: "suggestion.get";
|
|
186
|
+
readonly output: import("zod").ZodObject<{
|
|
187
|
+
suggestion: import("zod").ZodObject<{
|
|
188
|
+
decidedAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
|
|
189
|
+
decisions: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
190
|
+
add: "add";
|
|
191
|
+
report: "report";
|
|
192
|
+
skip: "skip";
|
|
193
|
+
undo: "undo";
|
|
194
|
+
activate: "activate";
|
|
195
|
+
}>>;
|
|
196
|
+
environmentId: EnvironmentId;
|
|
197
|
+
environmentName: import("zod").ZodString;
|
|
198
|
+
flow: import("zod").ZodObject<{
|
|
199
|
+
flowId: import("zod").ZodOptional<FlowId>;
|
|
200
|
+
path: import("zod").ZodString;
|
|
201
|
+
}, import("zod/v4/core").$strip>;
|
|
202
|
+
holdReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
203
|
+
"path-taken": "path-taken";
|
|
204
|
+
"not-proven-on-merged-commit": "not-proven-on-merged-commit";
|
|
205
|
+
"merge-conflicted": "merge-conflicted";
|
|
206
|
+
"undo-cleanup-failed": "undo-cleanup-failed";
|
|
207
|
+
}>>;
|
|
208
|
+
issue: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
209
|
+
issueId: IssueId;
|
|
210
|
+
type: import("zod").ZodEnum<{
|
|
211
|
+
bug: "bug";
|
|
212
|
+
coverageRequest: "coverageRequest";
|
|
213
|
+
}>;
|
|
214
|
+
}, import("zod/v4/core").$strip>>;
|
|
215
|
+
kind: import("zod").ZodEnum<{
|
|
216
|
+
"new-flow": "new-flow";
|
|
217
|
+
"potential-bug": "potential-bug";
|
|
218
|
+
}>;
|
|
219
|
+
location: import("zod").ZodString;
|
|
220
|
+
reason: import("zod").ZodString;
|
|
221
|
+
skipReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
222
|
+
"not-worth-testing": "not-worth-testing";
|
|
223
|
+
"already-covered": "already-covered";
|
|
224
|
+
"feature-removed": "feature-removed";
|
|
225
|
+
}>>;
|
|
226
|
+
state: import("zod").ZodEnum<{
|
|
227
|
+
skipped: "skipped";
|
|
228
|
+
accepted: "accepted";
|
|
229
|
+
waiting: "waiting";
|
|
230
|
+
expired: "expired";
|
|
231
|
+
}>;
|
|
232
|
+
suggestedAt: import("zod").ZodISODateTime;
|
|
233
|
+
suggestionId: PublicIdSchema;
|
|
234
|
+
title: import("zod").ZodString;
|
|
235
|
+
url: import("zod").ZodURL;
|
|
236
|
+
}, import("zod/v4/core").$strip>;
|
|
237
|
+
}, import("zod/v4/core").$strip>;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/suggestion/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,cAAc,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIC,CAAC"}
|