@smartbear/mcp 0.14.0 → 0.14.1
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/package.json.js +1 -1
- package/dist/zephyr/common/rest-api-schemas.js +1496 -1821
- package/dist/zephyr/tool/environment/get-environments.js +4 -4
- package/dist/zephyr/tool/priority/get-priorities.js +4 -4
- package/dist/zephyr/tool/project/get-project.js +4 -4
- package/dist/zephyr/tool/project/get-projects.js +4 -4
- package/dist/zephyr/tool/status/get-statuses.js +4 -4
- package/dist/zephyr/tool/test-case/create-test-case.js +4 -4
- package/dist/zephyr/tool/test-case/create-web-link.js +6 -6
- package/dist/zephyr/tool/test-case/get-test-case.js +4 -4
- package/dist/zephyr/tool/test-case/get-test-cases.js +4 -4
- package/dist/zephyr/tool/test-case/update-test-case.js +5 -3
- package/dist/zephyr/tool/test-cycle/create-test-cycle.js +4 -4
- package/dist/zephyr/tool/test-cycle/get-test-cycle.js +4 -4
- package/dist/zephyr/tool/test-cycle/get-test-cycles.js +4 -4
- package/dist/zephyr/tool/test-cycle/update-test-cycle.js +5 -3
- package/dist/zephyr/tool/test-execution/create-test-execution.js +4 -4
- package/dist/zephyr/tool/test-execution/get-test-execution.js +4 -4
- package/dist/zephyr/tool/test-execution/get-test-executions.js +4 -4
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as zod from "zod";
|
|
2
2
|
const listTestCasesQueryProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
3
3
|
const listTestCasesQueryMaxResultsDefault = 10;
|
|
4
|
+
const listTestCasesQueryStartAtDefault = 0;
|
|
4
5
|
const listTestCasesQueryStartAtMin = 0;
|
|
5
6
|
const listTestCasesQueryStartAtMax = 1e6;
|
|
6
7
|
zod.object({
|
|
@@ -9,153 +10,128 @@ zod.object({
|
|
|
9
10
|
maxResults: zod.number().min(1).default(listTestCasesQueryMaxResultsDefault).describe(
|
|
10
11
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the maxResults value in the response to confirm how many results were actually returned.\n"
|
|
11
12
|
),
|
|
12
|
-
startAt: zod.number().min(listTestCasesQueryStartAtMin).max(listTestCasesQueryStartAtMax).
|
|
13
|
+
startAt: zod.number().min(listTestCasesQueryStartAtMin).max(listTestCasesQueryStartAtMax).default(listTestCasesQueryStartAtDefault).describe(
|
|
13
14
|
"Zero-indexed starting position. Should be a multiple of maxResults."
|
|
14
15
|
)
|
|
15
16
|
});
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
17
|
+
const listTestCases200ResponseOneStartAtMin = 0;
|
|
18
|
+
const listTestCases200ResponseOneTotalMin = 0;
|
|
19
|
+
const listTestCases200ResponseTwoValuesItemKeyRegExp = /.+-T[0-9]+/;
|
|
20
|
+
const listTestCases200ResponseTwoValuesItemNameMax = 255;
|
|
21
|
+
const listTestCases200ResponseTwoValuesItemNameRegExp = /^(?!\\s*$).+/;
|
|
22
|
+
const listTestCases200ResponseTwoValuesItemEstimatedTimeMin = 0;
|
|
23
|
+
const listTestCases200ResponseTwoValuesItemLabelsMax = 50;
|
|
24
|
+
const listTestCases200ResponseTwoValuesItemOwnerAccountIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
24
25
|
zod.object({
|
|
25
26
|
next: zod.string().url().nullish().describe(
|
|
26
27
|
"URL to the next page of results, or null if there are no more results."
|
|
27
28
|
),
|
|
28
|
-
startAt: zod.number().min(
|
|
29
|
+
startAt: zod.number().min(listTestCases200ResponseOneStartAtMin).describe(
|
|
29
30
|
"Indicates the index of the first item returned in the page of results."
|
|
30
31
|
),
|
|
31
32
|
maxResults: zod.number().min(1).describe(
|
|
32
33
|
"Indicates the maximum number of results in this response. Note that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints."
|
|
33
34
|
),
|
|
34
|
-
total: zod.number().min(
|
|
35
|
+
total: zod.number().min(listTestCases200ResponseOneTotalMin).optional().describe(
|
|
35
36
|
"Indicates the total number of items available across all pages."
|
|
36
37
|
),
|
|
37
|
-
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results.")
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
zod.
|
|
38
|
+
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results."),
|
|
39
|
+
values: zod.array(
|
|
40
|
+
zod.object({
|
|
41
|
+
id: zod.number().min(1),
|
|
42
|
+
key: zod.string().regex(listTestCases200ResponseTwoValuesItemKeyRegExp).describe("The test case key"),
|
|
43
|
+
name: zod.string().min(1).max(listTestCases200ResponseTwoValuesItemNameMax).regex(listTestCases200ResponseTwoValuesItemNameRegExp),
|
|
44
|
+
project: zod.object({
|
|
42
45
|
id: zod.number().min(1),
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
46
|
+
self: zod.string().url().optional().describe(
|
|
47
|
+
"The REST API endpoint to get more resource details."
|
|
48
|
+
)
|
|
49
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
50
|
+
createdOn: zod.string().datetime({}).optional().describe(
|
|
51
|
+
"Data and time test case was created. Format: yyyy-MM-dd'T'HH:mm:ss'Z'. This field is read-only, cannot be updated.\n"
|
|
52
|
+
),
|
|
53
|
+
objective: zod.string().nullish().describe("A description of the objective."),
|
|
54
|
+
precondition: zod.string().nullish().describe("Any conditions that need to be met."),
|
|
55
|
+
estimatedTime: zod.number().min(listTestCases200ResponseTwoValuesItemEstimatedTimeMin).nullish().describe("Estimated duration in milliseconds."),
|
|
56
|
+
labels: zod.array(zod.string()).max(listTestCases200ResponseTwoValuesItemLabelsMax).optional().describe("Array of labels associated to this entity."),
|
|
57
|
+
component: zod.object({
|
|
58
|
+
id: zod.number().min(1),
|
|
59
|
+
self: zod.string().url().optional().describe(
|
|
60
|
+
"The REST API endpoint to get more resource details."
|
|
61
|
+
)
|
|
62
|
+
}).strict().nullish(),
|
|
63
|
+
priority: zod.object({
|
|
64
|
+
id: zod.number().min(1),
|
|
65
|
+
self: zod.string().url().optional().describe(
|
|
66
|
+
"The REST API endpoint to get more resource details."
|
|
67
|
+
)
|
|
68
|
+
}).strict(),
|
|
69
|
+
status: zod.object({
|
|
70
|
+
id: zod.number().min(1),
|
|
71
|
+
self: zod.string().url().optional().describe(
|
|
72
|
+
"The REST API endpoint to get more resource details."
|
|
73
|
+
)
|
|
74
|
+
}).strict(),
|
|
75
|
+
folder: zod.object({
|
|
76
|
+
id: zod.number().min(1),
|
|
77
|
+
self: zod.string().url().optional().describe(
|
|
78
|
+
"The REST API endpoint to get more resource details."
|
|
79
|
+
)
|
|
80
|
+
}).strict().nullish(),
|
|
81
|
+
owner: zod.object({
|
|
82
|
+
accountId: zod.string().regex(
|
|
83
|
+
listTestCases200ResponseTwoValuesItemOwnerAccountIdRegExp
|
|
84
|
+
).nullable().describe("Atlassian Account ID of the Jira user."),
|
|
85
|
+
self: zod.string().url().optional().describe(
|
|
86
|
+
"The Jira REST API endpoint to get the full representation of the Jira user."
|
|
87
|
+
)
|
|
88
|
+
}).strict().nullish(),
|
|
89
|
+
testScript: zod.object({
|
|
90
|
+
self: zod.string().url().optional().describe(
|
|
91
|
+
"The REST API endpoint to get more resource details."
|
|
92
|
+
)
|
|
93
|
+
}).strict().optional(),
|
|
94
|
+
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
95
|
+
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
96
|
+
),
|
|
97
|
+
links: zod.object({
|
|
98
|
+
self: zod.string().url().optional().describe(
|
|
99
|
+
"The REST API endpoint to get more resource details."
|
|
78
100
|
),
|
|
79
|
-
|
|
80
|
-
id: zod.number().min(1)
|
|
81
|
-
}).describe("The ID of the resource").and(
|
|
101
|
+
issues: zod.array(
|
|
82
102
|
zod.object({
|
|
103
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
83
104
|
self: zod.string().url().optional().describe(
|
|
84
|
-
"The REST API endpoint to
|
|
85
|
-
)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
105
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
106
|
+
),
|
|
107
|
+
id: zod.number().min(1).optional().describe(
|
|
108
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
109
|
+
),
|
|
110
|
+
target: zod.string().url().optional().describe(
|
|
111
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
112
|
+
),
|
|
113
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
114
|
+
}).strict()
|
|
115
|
+
).optional().describe("A list of Jira issues linked to this entity"),
|
|
116
|
+
webLinks: zod.array(
|
|
91
117
|
zod.object({
|
|
118
|
+
description: zod.string().optional().describe("The web link description"),
|
|
119
|
+
url: zod.string().url().describe("The web link URL"),
|
|
92
120
|
self: zod.string().url().optional().describe(
|
|
93
|
-
"The REST API endpoint to
|
|
94
|
-
)
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
testScript: zod.object({
|
|
104
|
-
self: zod.string().url().optional().describe(
|
|
105
|
-
"The REST API endpoint to get more resource details."
|
|
106
|
-
)
|
|
107
|
-
}).optional(),
|
|
108
|
-
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
109
|
-
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
110
|
-
),
|
|
111
|
-
links: zod.object({
|
|
112
|
-
self: zod.string().url().optional().describe(
|
|
113
|
-
"The REST API endpoint to get more resource details."
|
|
114
|
-
)
|
|
115
|
-
}).and(
|
|
116
|
-
zod.object({
|
|
117
|
-
issues: zod.array(
|
|
118
|
-
zod.object({
|
|
119
|
-
issueId: zod.number().min(1).describe("The Jira issue ID")
|
|
120
|
-
}).and(
|
|
121
|
-
zod.object({
|
|
122
|
-
self: zod.string().url().optional().describe(
|
|
123
|
-
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
124
|
-
),
|
|
125
|
-
id: zod.number().min(1).optional().describe(
|
|
126
|
-
"The ID that represents the link between the entity and the Jira issue."
|
|
127
|
-
),
|
|
128
|
-
target: zod.string().url().optional().describe(
|
|
129
|
-
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
130
|
-
),
|
|
131
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
132
|
-
})
|
|
133
|
-
)
|
|
134
|
-
).optional().describe("A list of Jira issues linked to this entity"),
|
|
135
|
-
webLinks: zod.array(
|
|
136
|
-
zod.object({
|
|
137
|
-
description: zod.string().optional().describe("The web link description"),
|
|
138
|
-
url: zod.string().url().describe("The web link URL")
|
|
139
|
-
}).and(
|
|
140
|
-
zod.object({
|
|
141
|
-
self: zod.string().url().optional().describe(
|
|
142
|
-
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
143
|
-
),
|
|
144
|
-
id: zod.number().min(1).optional(),
|
|
145
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
146
|
-
})
|
|
147
|
-
)
|
|
148
|
-
).optional().describe("A list of web links for this entity")
|
|
149
|
-
})
|
|
150
|
-
).optional().describe("This property is ignored on updates.")
|
|
151
|
-
})
|
|
152
|
-
).optional()
|
|
153
|
-
})
|
|
154
|
-
);
|
|
121
|
+
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
122
|
+
),
|
|
123
|
+
id: zod.number().min(1).optional(),
|
|
124
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
125
|
+
}).strict()
|
|
126
|
+
).optional().describe("A list of web links for this entity")
|
|
127
|
+
}).strict().optional().describe("This property is ignored on updates.")
|
|
128
|
+
}).strict()
|
|
129
|
+
).optional()
|
|
130
|
+
}).strict();
|
|
155
131
|
zod.object({
|
|
156
132
|
errorCode: zod.number(),
|
|
157
133
|
message: zod.string()
|
|
158
|
-
});
|
|
134
|
+
}).strict();
|
|
159
135
|
const createTestCaseBodyProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
160
136
|
const createTestCaseBodyNameMax = 255;
|
|
161
137
|
const createTestCaseBodyNameRegExp = /^(?!\\s*$).+/;
|
|
@@ -165,7 +141,7 @@ const createTestCaseBodyPriorityNameMax = 255;
|
|
|
165
141
|
const createTestCaseBodyStatusNameMax = 255;
|
|
166
142
|
const createTestCaseBodyOwnerIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
167
143
|
const createTestCaseBodyLabelsMax = 50;
|
|
168
|
-
const
|
|
144
|
+
const CreateTestCaseBody = zod.object({
|
|
169
145
|
projectKey: zod.string().regex(createTestCaseBodyProjectKeyRegExp).describe("Jira project key."),
|
|
170
146
|
name: zod.string().min(1).max(createTestCaseBodyNameMax).regex(createTestCaseBodyNameRegExp),
|
|
171
147
|
objective: zod.string().nullish().describe("A description of the objective."),
|
|
@@ -181,171 +157,146 @@ const createTestCaseBody = zod.object({
|
|
|
181
157
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
182
158
|
)
|
|
183
159
|
});
|
|
184
|
-
const
|
|
160
|
+
const CreateTestCase201Response = zod.object({
|
|
185
161
|
id: zod.number().min(1).optional(),
|
|
186
|
-
self: zod.string().optional()
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
key: zod.string().optional()
|
|
190
|
-
})
|
|
191
|
-
);
|
|
162
|
+
self: zod.string().optional(),
|
|
163
|
+
key: zod.string().optional()
|
|
164
|
+
}).strict();
|
|
192
165
|
zod.object({
|
|
193
166
|
errorCode: zod.number(),
|
|
194
167
|
message: zod.string()
|
|
195
|
-
});
|
|
168
|
+
}).strict();
|
|
196
169
|
const listTestCasesCursorPaginatedQueryProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
197
170
|
const listTestCasesCursorPaginatedQueryLimitDefault = 10;
|
|
198
171
|
const listTestCasesCursorPaginatedQueryLimitMax = 1e3;
|
|
172
|
+
const listTestCasesCursorPaginatedQueryStartAtIdDefault = 0;
|
|
199
173
|
const listTestCasesCursorPaginatedQueryStartAtIdMin = 0;
|
|
200
|
-
const
|
|
174
|
+
const ListTestCasesCursorPaginatedQueryParams = zod.object({
|
|
201
175
|
projectKey: zod.string().regex(listTestCasesCursorPaginatedQueryProjectKeyRegExp).optional().describe("Jira project key filter"),
|
|
202
176
|
folderId: zod.number().min(1).optional().describe("Folder ID filter"),
|
|
203
177
|
limit: zod.number().min(1).max(listTestCasesCursorPaginatedQueryLimitMax).default(listTestCasesCursorPaginatedQueryLimitDefault).describe(
|
|
204
178
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the limit value in the response to confirm how many results were actually returned.\n"
|
|
205
179
|
),
|
|
206
|
-
startAtId: zod.number().min(listTestCasesCursorPaginatedQueryStartAtIdMin).
|
|
207
|
-
});
|
|
208
|
-
const
|
|
209
|
-
const
|
|
210
|
-
const
|
|
211
|
-
const
|
|
212
|
-
const
|
|
213
|
-
const
|
|
214
|
-
const
|
|
215
|
-
const
|
|
216
|
-
const
|
|
180
|
+
startAtId: zod.number().min(listTestCasesCursorPaginatedQueryStartAtIdMin).default(listTestCasesCursorPaginatedQueryStartAtIdDefault).describe("Zero-indexed starting position for ID-based pagination.")
|
|
181
|
+
});
|
|
182
|
+
const listTestCasesCursorPaginated200ResponseOneNextStartAtIdMin = 0;
|
|
183
|
+
const listTestCasesCursorPaginated200ResponseOneLimitMin = 0;
|
|
184
|
+
const listTestCasesCursorPaginated200ResponseTwoValuesItemKeyRegExp = /.+-T[0-9]+/;
|
|
185
|
+
const listTestCasesCursorPaginated200ResponseTwoValuesItemNameMax = 255;
|
|
186
|
+
const listTestCasesCursorPaginated200ResponseTwoValuesItemNameRegExp = /^(?!\\s*$).+/;
|
|
187
|
+
const listTestCasesCursorPaginated200ResponseTwoValuesItemEstimatedTimeMin = 0;
|
|
188
|
+
const listTestCasesCursorPaginated200ResponseTwoValuesItemLabelsMax = 50;
|
|
189
|
+
const listTestCasesCursorPaginated200ResponseTwoValuesItemOwnerAccountIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
190
|
+
const ListTestCasesCursorPaginated200Response = zod.object({
|
|
217
191
|
next: zod.string().url().nullish(),
|
|
218
|
-
nextStartAtId: zod.number().min(
|
|
219
|
-
limit: zod.number().min(
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
zod.
|
|
192
|
+
nextStartAtId: zod.number().min(listTestCasesCursorPaginated200ResponseOneNextStartAtIdMin).nullable(),
|
|
193
|
+
limit: zod.number().min(listTestCasesCursorPaginated200ResponseOneLimitMin),
|
|
194
|
+
values: zod.array(
|
|
195
|
+
zod.object({
|
|
196
|
+
id: zod.number().min(1),
|
|
197
|
+
key: zod.string().regex(
|
|
198
|
+
listTestCasesCursorPaginated200ResponseTwoValuesItemKeyRegExp
|
|
199
|
+
).describe("The test case key"),
|
|
200
|
+
name: zod.string().min(1).max(listTestCasesCursorPaginated200ResponseTwoValuesItemNameMax).regex(
|
|
201
|
+
listTestCasesCursorPaginated200ResponseTwoValuesItemNameRegExp
|
|
202
|
+
),
|
|
203
|
+
project: zod.object({
|
|
224
204
|
id: zod.number().min(1),
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
205
|
+
self: zod.string().url().optional().describe(
|
|
206
|
+
"The REST API endpoint to get more resource details."
|
|
207
|
+
)
|
|
208
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
209
|
+
createdOn: zod.string().datetime({}).optional().describe(
|
|
210
|
+
"Data and time test case was created. Format: yyyy-MM-dd'T'HH:mm:ss'Z'. This field is read-only, cannot be updated.\n"
|
|
211
|
+
),
|
|
212
|
+
objective: zod.string().nullish().describe("A description of the objective."),
|
|
213
|
+
precondition: zod.string().nullish().describe("Any conditions that need to be met."),
|
|
214
|
+
estimatedTime: zod.number().min(
|
|
215
|
+
listTestCasesCursorPaginated200ResponseTwoValuesItemEstimatedTimeMin
|
|
216
|
+
).nullish().describe("Estimated duration in milliseconds."),
|
|
217
|
+
labels: zod.array(zod.string()).max(
|
|
218
|
+
listTestCasesCursorPaginated200ResponseTwoValuesItemLabelsMax
|
|
219
|
+
).optional().describe("Array of labels associated to this entity."),
|
|
220
|
+
component: zod.object({
|
|
221
|
+
id: zod.number().min(1),
|
|
222
|
+
self: zod.string().url().optional().describe(
|
|
223
|
+
"The REST API endpoint to get more resource details."
|
|
224
|
+
)
|
|
225
|
+
}).strict().nullish(),
|
|
226
|
+
priority: zod.object({
|
|
227
|
+
id: zod.number().min(1),
|
|
228
|
+
self: zod.string().url().optional().describe(
|
|
229
|
+
"The REST API endpoint to get more resource details."
|
|
230
|
+
)
|
|
231
|
+
}).strict(),
|
|
232
|
+
status: zod.object({
|
|
233
|
+
id: zod.number().min(1),
|
|
234
|
+
self: zod.string().url().optional().describe(
|
|
235
|
+
"The REST API endpoint to get more resource details."
|
|
236
|
+
)
|
|
237
|
+
}).strict(),
|
|
238
|
+
folder: zod.object({
|
|
239
|
+
id: zod.number().min(1),
|
|
240
|
+
self: zod.string().url().optional().describe(
|
|
241
|
+
"The REST API endpoint to get more resource details."
|
|
242
|
+
)
|
|
243
|
+
}).strict().nullish(),
|
|
244
|
+
owner: zod.object({
|
|
245
|
+
accountId: zod.string().regex(
|
|
246
|
+
listTestCasesCursorPaginated200ResponseTwoValuesItemOwnerAccountIdRegExp
|
|
247
|
+
).nullable().describe("Atlassian Account ID of the Jira user."),
|
|
248
|
+
self: zod.string().url().optional().describe(
|
|
249
|
+
"The Jira REST API endpoint to get the full representation of the Jira user."
|
|
250
|
+
)
|
|
251
|
+
}).strict().nullish(),
|
|
252
|
+
testScript: zod.object({
|
|
253
|
+
self: zod.string().url().optional().describe(
|
|
254
|
+
"The REST API endpoint to get more resource details."
|
|
255
|
+
)
|
|
256
|
+
}).strict().optional(),
|
|
257
|
+
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
258
|
+
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
259
|
+
),
|
|
260
|
+
links: zod.object({
|
|
261
|
+
self: zod.string().url().optional().describe(
|
|
262
|
+
"The REST API endpoint to get more resource details."
|
|
264
263
|
),
|
|
265
|
-
|
|
266
|
-
id: zod.number().min(1)
|
|
267
|
-
}).describe("The ID of the resource").and(
|
|
264
|
+
issues: zod.array(
|
|
268
265
|
zod.object({
|
|
266
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
269
267
|
self: zod.string().url().optional().describe(
|
|
270
|
-
"The REST API endpoint to
|
|
271
|
-
)
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
268
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
269
|
+
),
|
|
270
|
+
id: zod.number().min(1).optional().describe(
|
|
271
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
272
|
+
),
|
|
273
|
+
target: zod.string().url().optional().describe(
|
|
274
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
275
|
+
),
|
|
276
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
277
|
+
}).strict()
|
|
278
|
+
).optional().describe("A list of Jira issues linked to this entity"),
|
|
279
|
+
webLinks: zod.array(
|
|
277
280
|
zod.object({
|
|
281
|
+
description: zod.string().optional().describe("The web link description"),
|
|
282
|
+
url: zod.string().url().describe("The web link URL"),
|
|
278
283
|
self: zod.string().url().optional().describe(
|
|
279
|
-
"The REST API endpoint to
|
|
280
|
-
)
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
)
|
|
290
|
-
}).nullish(),
|
|
291
|
-
testScript: zod.object({
|
|
292
|
-
self: zod.string().url().optional().describe(
|
|
293
|
-
"The REST API endpoint to get more resource details."
|
|
294
|
-
)
|
|
295
|
-
}).optional(),
|
|
296
|
-
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
297
|
-
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
298
|
-
),
|
|
299
|
-
links: zod.object({
|
|
300
|
-
self: zod.string().url().optional().describe(
|
|
301
|
-
"The REST API endpoint to get more resource details."
|
|
302
|
-
)
|
|
303
|
-
}).and(
|
|
304
|
-
zod.object({
|
|
305
|
-
issues: zod.array(
|
|
306
|
-
zod.object({
|
|
307
|
-
issueId: zod.number().min(1).describe("The Jira issue ID")
|
|
308
|
-
}).and(
|
|
309
|
-
zod.object({
|
|
310
|
-
self: zod.string().url().optional().describe(
|
|
311
|
-
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
312
|
-
),
|
|
313
|
-
id: zod.number().min(1).optional().describe(
|
|
314
|
-
"The ID that represents the link between the entity and the Jira issue."
|
|
315
|
-
),
|
|
316
|
-
target: zod.string().url().optional().describe(
|
|
317
|
-
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
318
|
-
),
|
|
319
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
320
|
-
})
|
|
321
|
-
)
|
|
322
|
-
).optional().describe("A list of Jira issues linked to this entity"),
|
|
323
|
-
webLinks: zod.array(
|
|
324
|
-
zod.object({
|
|
325
|
-
description: zod.string().optional().describe("The web link description"),
|
|
326
|
-
url: zod.string().url().describe("The web link URL")
|
|
327
|
-
}).and(
|
|
328
|
-
zod.object({
|
|
329
|
-
self: zod.string().url().optional().describe(
|
|
330
|
-
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
331
|
-
),
|
|
332
|
-
id: zod.number().min(1).optional(),
|
|
333
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
334
|
-
})
|
|
335
|
-
)
|
|
336
|
-
).optional().describe("A list of web links for this entity")
|
|
337
|
-
})
|
|
338
|
-
).optional().describe("This property is ignored on updates.")
|
|
339
|
-
})
|
|
340
|
-
).optional()
|
|
341
|
-
})
|
|
342
|
-
);
|
|
284
|
+
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
285
|
+
),
|
|
286
|
+
id: zod.number().min(1).optional(),
|
|
287
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
288
|
+
}).strict()
|
|
289
|
+
).optional().describe("A list of web links for this entity")
|
|
290
|
+
}).strict().optional().describe("This property is ignored on updates.")
|
|
291
|
+
}).strict()
|
|
292
|
+
).optional()
|
|
293
|
+
}).strict();
|
|
343
294
|
zod.object({
|
|
344
295
|
errorCode: zod.number(),
|
|
345
296
|
message: zod.string()
|
|
346
|
-
});
|
|
297
|
+
}).strict();
|
|
347
298
|
const getTestCasePathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
348
|
-
const
|
|
299
|
+
const GetTestCaseParams = zod.object({
|
|
349
300
|
testCaseKey: zod.string().regex(getTestCasePathTestCaseKeyRegExp).describe(
|
|
350
301
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
351
302
|
)
|
|
@@ -356,17 +307,14 @@ const getTestCase200ResponseNameRegExp = /^(?!\\s*$).+/;
|
|
|
356
307
|
const getTestCase200ResponseEstimatedTimeMin = 0;
|
|
357
308
|
const getTestCase200ResponseLabelsMax = 50;
|
|
358
309
|
const getTestCase200ResponseOwnerAccountIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
359
|
-
const
|
|
310
|
+
const GetTestCase200Response = zod.object({
|
|
360
311
|
id: zod.number().min(1),
|
|
361
312
|
key: zod.string().regex(getTestCase200ResponseKeyRegExp).describe("The test case key"),
|
|
362
313
|
name: zod.string().min(1).max(getTestCase200ResponseNameMax).regex(getTestCase200ResponseNameRegExp),
|
|
363
314
|
project: zod.object({
|
|
364
|
-
id: zod.number().min(1)
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
368
|
-
})
|
|
369
|
-
).describe("ID and link relative to Zephyr project."),
|
|
315
|
+
id: zod.number().min(1),
|
|
316
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
317
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
370
318
|
createdOn: zod.string().datetime({}).optional().describe(
|
|
371
319
|
"Data and time test case was created. Format: yyyy-MM-dd'T'HH:mm:ss'Z'. This field is read-only, cannot be updated.\n"
|
|
372
320
|
),
|
|
@@ -375,90 +323,69 @@ const getTestCase200Response = zod.object({
|
|
|
375
323
|
estimatedTime: zod.number().min(getTestCase200ResponseEstimatedTimeMin).nullish().describe("Estimated duration in milliseconds."),
|
|
376
324
|
labels: zod.array(zod.string()).max(getTestCase200ResponseLabelsMax).optional().describe("Array of labels associated to this entity."),
|
|
377
325
|
component: zod.object({
|
|
378
|
-
id: zod.number().min(1)
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
382
|
-
})
|
|
383
|
-
).nullish(),
|
|
326
|
+
id: zod.number().min(1),
|
|
327
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
328
|
+
}).strict().nullish(),
|
|
384
329
|
priority: zod.object({
|
|
385
|
-
id: zod.number().min(1)
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
389
|
-
})
|
|
390
|
-
),
|
|
330
|
+
id: zod.number().min(1),
|
|
331
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
332
|
+
}).strict(),
|
|
391
333
|
status: zod.object({
|
|
392
|
-
id: zod.number().min(1)
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
396
|
-
})
|
|
397
|
-
),
|
|
334
|
+
id: zod.number().min(1),
|
|
335
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
336
|
+
}).strict(),
|
|
398
337
|
folder: zod.object({
|
|
399
|
-
id: zod.number().min(1)
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
403
|
-
})
|
|
404
|
-
).nullish(),
|
|
338
|
+
id: zod.number().min(1),
|
|
339
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
340
|
+
}).strict().nullish(),
|
|
405
341
|
owner: zod.object({
|
|
406
342
|
accountId: zod.string().regex(getTestCase200ResponseOwnerAccountIdRegExp).nullable().describe("Atlassian Account ID of the Jira user."),
|
|
407
343
|
self: zod.string().url().optional().describe(
|
|
408
344
|
"The Jira REST API endpoint to get the full representation of the Jira user."
|
|
409
345
|
)
|
|
410
|
-
}).nullish(),
|
|
346
|
+
}).strict().nullish(),
|
|
411
347
|
testScript: zod.object({
|
|
412
348
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
413
|
-
}).optional(),
|
|
349
|
+
}).strict().optional(),
|
|
414
350
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
415
351
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
416
352
|
),
|
|
417
353
|
links: zod.object({
|
|
418
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
zod.
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
)
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
),
|
|
448
|
-
id: zod.number().min(1).optional(),
|
|
449
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
450
|
-
})
|
|
451
|
-
)
|
|
452
|
-
).optional().describe("A list of web links for this entity")
|
|
453
|
-
})
|
|
454
|
-
).optional().describe("This property is ignored on updates.")
|
|
455
|
-
});
|
|
354
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
355
|
+
issues: zod.array(
|
|
356
|
+
zod.object({
|
|
357
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
358
|
+
self: zod.string().url().optional().describe(
|
|
359
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
360
|
+
),
|
|
361
|
+
id: zod.number().min(1).optional().describe(
|
|
362
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
363
|
+
),
|
|
364
|
+
target: zod.string().url().optional().describe(
|
|
365
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
366
|
+
),
|
|
367
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
368
|
+
}).strict()
|
|
369
|
+
).optional().describe("A list of Jira issues linked to this entity"),
|
|
370
|
+
webLinks: zod.array(
|
|
371
|
+
zod.object({
|
|
372
|
+
description: zod.string().optional().describe("The web link description"),
|
|
373
|
+
url: zod.string().url().describe("The web link URL"),
|
|
374
|
+
self: zod.string().url().optional().describe(
|
|
375
|
+
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
376
|
+
),
|
|
377
|
+
id: zod.number().min(1).optional(),
|
|
378
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
379
|
+
}).strict()
|
|
380
|
+
).optional().describe("A list of web links for this entity")
|
|
381
|
+
}).strict().optional().describe("This property is ignored on updates.")
|
|
382
|
+
}).strict();
|
|
456
383
|
zod.object({
|
|
457
384
|
errorCode: zod.number(),
|
|
458
385
|
message: zod.string()
|
|
459
|
-
});
|
|
386
|
+
}).strict();
|
|
460
387
|
const updateTestCasePathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
461
|
-
const
|
|
388
|
+
const UpdateTestCaseParams = zod.object({
|
|
462
389
|
testCaseKey: zod.string().regex(updateTestCasePathTestCaseKeyRegExp).describe(
|
|
463
390
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
464
391
|
)
|
|
@@ -469,7 +396,7 @@ const updateTestCaseBodyNameRegExp = /^(?!\\s*$).+/;
|
|
|
469
396
|
const updateTestCaseBodyEstimatedTimeMin = 0;
|
|
470
397
|
const updateTestCaseBodyLabelsMax = 50;
|
|
471
398
|
const updateTestCaseBodyOwnerAccountIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
472
|
-
const
|
|
399
|
+
const UpdateTestCaseBody = zod.object({
|
|
473
400
|
id: zod.number().min(1),
|
|
474
401
|
key: zod.string().regex(updateTestCaseBodyKeyRegExp).describe("The test case key"),
|
|
475
402
|
name: zod.string().min(1).max(updateTestCaseBodyNameMax).regex(updateTestCaseBodyNameRegExp),
|
|
@@ -569,7 +496,7 @@ const updateTestCaseBody = zod.object({
|
|
|
569
496
|
zod.object({
|
|
570
497
|
errorCode: zod.number(),
|
|
571
498
|
message: zod.string()
|
|
572
|
-
});
|
|
499
|
+
}).strict();
|
|
573
500
|
const getTestCaseLinksPathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
574
501
|
zod.object({
|
|
575
502
|
testCaseKey: zod.string().regex(getTestCaseLinksPathTestCaseKeyRegExp).describe(
|
|
@@ -577,47 +504,38 @@ zod.object({
|
|
|
577
504
|
)
|
|
578
505
|
});
|
|
579
506
|
zod.object({
|
|
580
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
zod.
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
)
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
609
|
-
),
|
|
610
|
-
id: zod.number().min(1).optional(),
|
|
611
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
612
|
-
})
|
|
613
|
-
)
|
|
614
|
-
).optional().describe("A list of web links for this entity")
|
|
615
|
-
})
|
|
616
|
-
).describe("This property is ignored on updates.");
|
|
507
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
508
|
+
issues: zod.array(
|
|
509
|
+
zod.object({
|
|
510
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
511
|
+
self: zod.string().url().optional().describe(
|
|
512
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
513
|
+
),
|
|
514
|
+
id: zod.number().min(1).optional().describe(
|
|
515
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
516
|
+
),
|
|
517
|
+
target: zod.string().url().optional().describe(
|
|
518
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
519
|
+
),
|
|
520
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
521
|
+
}).strict()
|
|
522
|
+
).optional().describe("A list of Jira issues linked to this entity"),
|
|
523
|
+
webLinks: zod.array(
|
|
524
|
+
zod.object({
|
|
525
|
+
description: zod.string().optional().describe("The web link description"),
|
|
526
|
+
url: zod.string().url().describe("The web link URL"),
|
|
527
|
+
self: zod.string().url().optional().describe(
|
|
528
|
+
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
529
|
+
),
|
|
530
|
+
id: zod.number().min(1).optional(),
|
|
531
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
532
|
+
}).strict()
|
|
533
|
+
).optional().describe("A list of web links for this entity")
|
|
534
|
+
}).strict().describe("This property is ignored on updates.");
|
|
617
535
|
zod.object({
|
|
618
536
|
errorCode: zod.number(),
|
|
619
537
|
message: zod.string()
|
|
620
|
-
});
|
|
538
|
+
}).strict();
|
|
621
539
|
const createTestCaseIssueLinkPathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
622
540
|
zod.object({
|
|
623
541
|
testCaseKey: zod.string().regex(createTestCaseIssueLinkPathTestCaseKeyRegExp).describe(
|
|
@@ -630,29 +548,29 @@ zod.object({
|
|
|
630
548
|
zod.object({
|
|
631
549
|
id: zod.number().min(1).optional(),
|
|
632
550
|
self: zod.string().optional()
|
|
633
|
-
});
|
|
551
|
+
}).strict();
|
|
634
552
|
zod.object({
|
|
635
553
|
errorCode: zod.number(),
|
|
636
554
|
message: zod.string()
|
|
637
|
-
});
|
|
555
|
+
}).strict();
|
|
638
556
|
const createTestCaseWebLinkPathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
639
|
-
const
|
|
557
|
+
const CreateTestCaseWebLinkParams = zod.object({
|
|
640
558
|
testCaseKey: zod.string().regex(createTestCaseWebLinkPathTestCaseKeyRegExp).describe(
|
|
641
559
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
642
560
|
)
|
|
643
561
|
});
|
|
644
|
-
const
|
|
562
|
+
const CreateTestCaseWebLinkBody = zod.object({
|
|
645
563
|
description: zod.string().optional().describe("The web link description"),
|
|
646
564
|
url: zod.string().url().describe("The web link URL")
|
|
647
565
|
});
|
|
648
|
-
const
|
|
566
|
+
const CreateTestCaseWebLink201Response = zod.object({
|
|
649
567
|
id: zod.number().min(1).optional(),
|
|
650
568
|
self: zod.string().optional()
|
|
651
|
-
});
|
|
569
|
+
}).strict();
|
|
652
570
|
zod.object({
|
|
653
571
|
errorCode: zod.number(),
|
|
654
572
|
message: zod.string()
|
|
655
|
-
});
|
|
573
|
+
}).strict();
|
|
656
574
|
const listTestCaseVersionsPathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
657
575
|
zod.object({
|
|
658
576
|
testCaseKey: zod.string().regex(listTestCaseVersionsPathTestCaseKeyRegExp).describe(
|
|
@@ -660,51 +578,44 @@ zod.object({
|
|
|
660
578
|
)
|
|
661
579
|
});
|
|
662
580
|
const listTestCaseVersionsQueryMaxResultsDefault = 10;
|
|
581
|
+
const listTestCaseVersionsQueryStartAtDefault = 0;
|
|
663
582
|
const listTestCaseVersionsQueryStartAtMin = 0;
|
|
664
583
|
const listTestCaseVersionsQueryStartAtMax = 1e6;
|
|
665
584
|
zod.object({
|
|
666
585
|
maxResults: zod.number().min(1).default(listTestCaseVersionsQueryMaxResultsDefault).describe(
|
|
667
586
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the maxResults value in the response to confirm how many results were actually returned.\n"
|
|
668
587
|
),
|
|
669
|
-
startAt: zod.number().min(listTestCaseVersionsQueryStartAtMin).max(listTestCaseVersionsQueryStartAtMax).
|
|
588
|
+
startAt: zod.number().min(listTestCaseVersionsQueryStartAtMin).max(listTestCaseVersionsQueryStartAtMax).default(listTestCaseVersionsQueryStartAtDefault).describe(
|
|
670
589
|
"Zero-indexed starting position. Should be a multiple of maxResults."
|
|
671
590
|
)
|
|
672
591
|
});
|
|
673
|
-
const
|
|
674
|
-
const
|
|
592
|
+
const listTestCaseVersions200ResponseOneStartAtMin = 0;
|
|
593
|
+
const listTestCaseVersions200ResponseOneTotalMin = 0;
|
|
675
594
|
zod.object({
|
|
676
595
|
next: zod.string().url().nullish().describe(
|
|
677
596
|
"URL to the next page of results, or null if there are no more results."
|
|
678
597
|
),
|
|
679
|
-
startAt: zod.number().min(
|
|
598
|
+
startAt: zod.number().min(listTestCaseVersions200ResponseOneStartAtMin).describe(
|
|
680
599
|
"Indicates the index of the first item returned in the page of results."
|
|
681
600
|
),
|
|
682
601
|
maxResults: zod.number().min(1).describe(
|
|
683
602
|
"Indicates the maximum number of results in this response. Note that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints."
|
|
684
603
|
),
|
|
685
|
-
total: zod.number().min(
|
|
604
|
+
total: zod.number().min(listTestCaseVersions200ResponseOneTotalMin).optional().describe(
|
|
686
605
|
"Indicates the total number of items available across all pages."
|
|
687
606
|
),
|
|
688
|
-
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results.")
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
zod.
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
}).and(
|
|
697
|
-
zod.object({
|
|
698
|
-
id: zod.number().min(1).optional()
|
|
699
|
-
})
|
|
700
|
-
)
|
|
701
|
-
).optional().describe("A list of versions for a test case")
|
|
702
|
-
})
|
|
703
|
-
);
|
|
607
|
+
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results."),
|
|
608
|
+
values: zod.array(
|
|
609
|
+
zod.object({
|
|
610
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
611
|
+
id: zod.number().min(1).optional()
|
|
612
|
+
}).strict()
|
|
613
|
+
).optional().describe("A list of versions for a test case")
|
|
614
|
+
}).strict();
|
|
704
615
|
zod.object({
|
|
705
616
|
errorCode: zod.number(),
|
|
706
617
|
message: zod.string()
|
|
707
|
-
});
|
|
618
|
+
}).strict();
|
|
708
619
|
const getTestCaseVersionPathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
709
620
|
zod.object({
|
|
710
621
|
testCaseKey: zod.string().regex(getTestCaseVersionPathTestCaseKeyRegExp).describe(
|
|
@@ -723,12 +634,9 @@ zod.object({
|
|
|
723
634
|
key: zod.string().regex(getTestCaseVersion200ResponseKeyRegExp).describe("The test case key"),
|
|
724
635
|
name: zod.string().min(1).max(getTestCaseVersion200ResponseNameMax).regex(getTestCaseVersion200ResponseNameRegExp),
|
|
725
636
|
project: zod.object({
|
|
726
|
-
id: zod.number().min(1)
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
730
|
-
})
|
|
731
|
-
).describe("ID and link relative to Zephyr project."),
|
|
637
|
+
id: zod.number().min(1),
|
|
638
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
639
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
732
640
|
createdOn: zod.string().datetime({}).optional().describe(
|
|
733
641
|
"Data and time test case was created. Format: yyyy-MM-dd'T'HH:mm:ss'Z'. This field is read-only, cannot be updated.\n"
|
|
734
642
|
),
|
|
@@ -737,88 +645,67 @@ zod.object({
|
|
|
737
645
|
estimatedTime: zod.number().min(getTestCaseVersion200ResponseEstimatedTimeMin).nullish().describe("Estimated duration in milliseconds."),
|
|
738
646
|
labels: zod.array(zod.string()).max(getTestCaseVersion200ResponseLabelsMax).optional().describe("Array of labels associated to this entity."),
|
|
739
647
|
component: zod.object({
|
|
740
|
-
id: zod.number().min(1)
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
744
|
-
})
|
|
745
|
-
).nullish(),
|
|
648
|
+
id: zod.number().min(1),
|
|
649
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
650
|
+
}).strict().nullish(),
|
|
746
651
|
priority: zod.object({
|
|
747
|
-
id: zod.number().min(1)
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
751
|
-
})
|
|
752
|
-
),
|
|
652
|
+
id: zod.number().min(1),
|
|
653
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
654
|
+
}).strict(),
|
|
753
655
|
status: zod.object({
|
|
754
|
-
id: zod.number().min(1)
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
758
|
-
})
|
|
759
|
-
),
|
|
656
|
+
id: zod.number().min(1),
|
|
657
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
658
|
+
}).strict(),
|
|
760
659
|
folder: zod.object({
|
|
761
|
-
id: zod.number().min(1)
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
765
|
-
})
|
|
766
|
-
).nullish(),
|
|
660
|
+
id: zod.number().min(1),
|
|
661
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
662
|
+
}).strict().nullish(),
|
|
767
663
|
owner: zod.object({
|
|
768
664
|
accountId: zod.string().regex(getTestCaseVersion200ResponseOwnerAccountIdRegExp).nullable().describe("Atlassian Account ID of the Jira user."),
|
|
769
665
|
self: zod.string().url().optional().describe(
|
|
770
666
|
"The Jira REST API endpoint to get the full representation of the Jira user."
|
|
771
667
|
)
|
|
772
|
-
}).nullish(),
|
|
668
|
+
}).strict().nullish(),
|
|
773
669
|
testScript: zod.object({
|
|
774
670
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
775
|
-
}).optional(),
|
|
671
|
+
}).strict().optional(),
|
|
776
672
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
777
673
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
778
674
|
),
|
|
779
675
|
links: zod.object({
|
|
780
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
zod.
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
)
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
),
|
|
810
|
-
id: zod.number().min(1).optional(),
|
|
811
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
812
|
-
})
|
|
813
|
-
)
|
|
814
|
-
).optional().describe("A list of web links for this entity")
|
|
815
|
-
})
|
|
816
|
-
).optional().describe("This property is ignored on updates.")
|
|
817
|
-
});
|
|
676
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
677
|
+
issues: zod.array(
|
|
678
|
+
zod.object({
|
|
679
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
680
|
+
self: zod.string().url().optional().describe(
|
|
681
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
682
|
+
),
|
|
683
|
+
id: zod.number().min(1).optional().describe(
|
|
684
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
685
|
+
),
|
|
686
|
+
target: zod.string().url().optional().describe(
|
|
687
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
688
|
+
),
|
|
689
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
690
|
+
}).strict()
|
|
691
|
+
).optional().describe("A list of Jira issues linked to this entity"),
|
|
692
|
+
webLinks: zod.array(
|
|
693
|
+
zod.object({
|
|
694
|
+
description: zod.string().optional().describe("The web link description"),
|
|
695
|
+
url: zod.string().url().describe("The web link URL"),
|
|
696
|
+
self: zod.string().url().optional().describe(
|
|
697
|
+
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
698
|
+
),
|
|
699
|
+
id: zod.number().min(1).optional(),
|
|
700
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
701
|
+
}).strict()
|
|
702
|
+
).optional().describe("A list of web links for this entity")
|
|
703
|
+
}).strict().optional().describe("This property is ignored on updates.")
|
|
704
|
+
}).strict();
|
|
818
705
|
zod.object({
|
|
819
706
|
errorCode: zod.number(),
|
|
820
707
|
message: zod.string()
|
|
821
|
-
});
|
|
708
|
+
}).strict();
|
|
822
709
|
const getTestCaseTestScriptPathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
823
710
|
zod.object({
|
|
824
711
|
testCaseKey: zod.string().regex(getTestCaseTestScriptPathTestCaseKeyRegExp).describe(
|
|
@@ -829,16 +716,13 @@ zod.object({
|
|
|
829
716
|
type: zod.enum(["plain", "bdd"]).describe(
|
|
830
717
|
"Test scripts can be in plain text or bdd format. BDD type can support remote execution on a build system via API plugin. To create a step-by-step test script, you should first create a plain text test script then use the POST /testcases/{testCaseKey}/teststeps endpoint."
|
|
831
718
|
),
|
|
832
|
-
text: zod.string().min(1)
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
id: zod.number().min(1).optional()
|
|
836
|
-
})
|
|
837
|
-
).describe("Response body when retrieving test scripts");
|
|
719
|
+
text: zod.string().min(1),
|
|
720
|
+
id: zod.number().min(1).optional()
|
|
721
|
+
}).strict().describe("Response body when retrieving test scripts");
|
|
838
722
|
zod.object({
|
|
839
723
|
errorCode: zod.number(),
|
|
840
724
|
message: zod.string()
|
|
841
|
-
});
|
|
725
|
+
}).strict();
|
|
842
726
|
const createTestCaseTestScriptPathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
843
727
|
zod.object({
|
|
844
728
|
testCaseKey: zod.string().regex(createTestCaseTestScriptPathTestCaseKeyRegExp).describe(
|
|
@@ -854,11 +738,11 @@ zod.object({
|
|
|
854
738
|
zod.object({
|
|
855
739
|
id: zod.number().min(1).optional(),
|
|
856
740
|
self: zod.string().optional()
|
|
857
|
-
});
|
|
741
|
+
}).strict();
|
|
858
742
|
zod.object({
|
|
859
743
|
errorCode: zod.number(),
|
|
860
744
|
message: zod.string()
|
|
861
|
-
});
|
|
745
|
+
}).strict();
|
|
862
746
|
const getTestCaseTestStepsPathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
863
747
|
zod.object({
|
|
864
748
|
testCaseKey: zod.string().regex(getTestCaseTestStepsPathTestCaseKeyRegExp).describe(
|
|
@@ -866,91 +750,84 @@ zod.object({
|
|
|
866
750
|
)
|
|
867
751
|
});
|
|
868
752
|
const getTestCaseTestStepsQueryMaxResultsDefault = 10;
|
|
753
|
+
const getTestCaseTestStepsQueryStartAtDefault = 0;
|
|
869
754
|
const getTestCaseTestStepsQueryStartAtMin = 0;
|
|
870
755
|
const getTestCaseTestStepsQueryStartAtMax = 1e6;
|
|
871
756
|
zod.object({
|
|
872
757
|
maxResults: zod.number().min(1).default(getTestCaseTestStepsQueryMaxResultsDefault).describe(
|
|
873
758
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the maxResults value in the response to confirm how many results were actually returned.\n"
|
|
874
759
|
),
|
|
875
|
-
startAt: zod.number().min(getTestCaseTestStepsQueryStartAtMin).max(getTestCaseTestStepsQueryStartAtMax).
|
|
760
|
+
startAt: zod.number().min(getTestCaseTestStepsQueryStartAtMin).max(getTestCaseTestStepsQueryStartAtMax).default(getTestCaseTestStepsQueryStartAtDefault).describe(
|
|
876
761
|
"Zero-indexed starting position. Should be a multiple of maxResults."
|
|
877
762
|
)
|
|
878
763
|
});
|
|
879
|
-
const
|
|
880
|
-
const
|
|
881
|
-
const
|
|
764
|
+
const getTestCaseTestSteps200ResponseOneStartAtMin = 0;
|
|
765
|
+
const getTestCaseTestSteps200ResponseOneTotalMin = 0;
|
|
766
|
+
const getTestCaseTestSteps200ResponseTwoValuesItemTestCaseTwoTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
882
767
|
zod.object({
|
|
883
768
|
next: zod.string().url().nullish().describe(
|
|
884
769
|
"URL to the next page of results, or null if there are no more results."
|
|
885
770
|
),
|
|
886
|
-
startAt: zod.number().min(
|
|
771
|
+
startAt: zod.number().min(getTestCaseTestSteps200ResponseOneStartAtMin).describe(
|
|
887
772
|
"Indicates the index of the first item returned in the page of results."
|
|
888
773
|
),
|
|
889
774
|
maxResults: zod.number().min(1).describe(
|
|
890
775
|
"Indicates the maximum number of results in this response. Note that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints."
|
|
891
776
|
),
|
|
892
|
-
total: zod.number().min(
|
|
777
|
+
total: zod.number().min(getTestCaseTestSteps200ResponseOneTotalMin).optional().describe(
|
|
893
778
|
"Indicates the total number of items available across all pages."
|
|
894
779
|
),
|
|
895
|
-
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results.")
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
780
|
+
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results."),
|
|
781
|
+
values: zod.array(
|
|
782
|
+
zod.object({
|
|
783
|
+
inline: zod.object({
|
|
784
|
+
description: zod.string().optional().describe("The instruction to be followed"),
|
|
785
|
+
testData: zod.string().optional().describe(
|
|
786
|
+
"Any test data required to perform the instruction (optional). The fields values provided can be interpolated into the description."
|
|
787
|
+
),
|
|
788
|
+
expectedResult: zod.string().optional().describe(
|
|
789
|
+
"The expected outcome of executing the instruction"
|
|
790
|
+
),
|
|
791
|
+
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
792
|
+
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
793
|
+
),
|
|
794
|
+
reflectRef: zod.string().optional().describe("The AI reference. Zephyr only feature")
|
|
795
|
+
}).strict().optional(),
|
|
796
|
+
testCase: zod.object({
|
|
797
|
+
self: zod.string().url().optional().describe(
|
|
798
|
+
"The REST API endpoint to get more resource details."
|
|
799
|
+
),
|
|
800
|
+
testCaseKey: zod.string().regex(
|
|
801
|
+
getTestCaseTestSteps200ResponseTwoValuesItemTestCaseTwoTestCaseKeyRegExp
|
|
802
|
+
).optional().describe(
|
|
803
|
+
"The key of the other test case that the test step should delegate execution to. This cannot be the parent test case."
|
|
804
|
+
),
|
|
805
|
+
parameters: zod.array(
|
|
918
806
|
zod.object({
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
"The key of the other test case that the test step should delegate execution to. This cannot be the parent test case."
|
|
807
|
+
name: zod.string().optional().describe("Name of the parameter"),
|
|
808
|
+
type: zod.enum(["MANUAL_INPUT", "DEFAULT_VALUE"]).optional().describe(
|
|
809
|
+
"Type of the parameter. It is manual inputs for parameters or the default values."
|
|
923
810
|
),
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
"The list of parameters of the call to test step"
|
|
934
|
-
)
|
|
935
|
-
})
|
|
936
|
-
).optional()
|
|
937
|
-
}).describe(
|
|
938
|
-
"An instruction to be followed as part of a step-by-step test script. The test step can have either an inline definition, or delegate execution to another test case. One of these options must be specified."
|
|
939
|
-
)
|
|
940
|
-
).optional().describe("The list of test steps")
|
|
941
|
-
})
|
|
942
|
-
).describe("Response body when retrieving test steps");
|
|
811
|
+
value: zod.string().optional().describe("Value of the parameter")
|
|
812
|
+
}).strict()
|
|
813
|
+
).optional().describe("The list of parameters of the call to test step")
|
|
814
|
+
}).strict().optional()
|
|
815
|
+
}).strict().describe(
|
|
816
|
+
"An instruction to be followed as part of a step-by-step test script. The test step can have either an inline definition, or delegate execution to another test case. One of these options must be specified."
|
|
817
|
+
)
|
|
818
|
+
).optional().describe("The list of test steps")
|
|
819
|
+
}).strict().describe("Response body when retrieving test steps");
|
|
943
820
|
zod.object({
|
|
944
821
|
errorCode: zod.number(),
|
|
945
822
|
message: zod.string()
|
|
946
|
-
});
|
|
823
|
+
}).strict();
|
|
947
824
|
const createTestCaseTestStepsPathTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
948
825
|
zod.object({
|
|
949
826
|
testCaseKey: zod.string().regex(createTestCaseTestStepsPathTestCaseKeyRegExp).describe(
|
|
950
827
|
"The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+"
|
|
951
828
|
)
|
|
952
829
|
});
|
|
953
|
-
const
|
|
830
|
+
const createTestCaseTestStepsBodyItemsItemTestCaseTwoTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
954
831
|
zod.object({
|
|
955
832
|
mode: zod.string().describe(
|
|
956
833
|
'Valid values: `"APPEND"`, `"OVERWRITE"`. <br> `OVERWRITE` deletes and recreates the test steps and associated custom field values using the provided input. Attachments for existing steps are kept, but those for missing steps are deleted permanently <br> `APPEND` only adds extra steps to your test steps.\n'
|
|
@@ -977,7 +854,7 @@ zod.object({
|
|
|
977
854
|
}).and(
|
|
978
855
|
zod.object({
|
|
979
856
|
testCaseKey: zod.string().regex(
|
|
980
|
-
|
|
857
|
+
createTestCaseTestStepsBodyItemsItemTestCaseTwoTestCaseKeyRegExp
|
|
981
858
|
).optional().describe(
|
|
982
859
|
"The key of the other test case that the test step should delegate execution to. This cannot be the parent test case."
|
|
983
860
|
),
|
|
@@ -1006,16 +883,17 @@ zod.object({
|
|
|
1006
883
|
zod.object({
|
|
1007
884
|
id: zod.number().min(1).optional(),
|
|
1008
885
|
self: zod.string().optional()
|
|
1009
|
-
});
|
|
886
|
+
}).strict();
|
|
1010
887
|
zod.object({
|
|
1011
888
|
errorCode: zod.number(),
|
|
1012
889
|
message: zod.string()
|
|
1013
|
-
});
|
|
890
|
+
}).strict();
|
|
1014
891
|
const listTestCyclesQueryProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
1015
892
|
const listTestCyclesQueryMaxResultsDefault = 10;
|
|
893
|
+
const listTestCyclesQueryStartAtDefault = 0;
|
|
1016
894
|
const listTestCyclesQueryStartAtMin = 0;
|
|
1017
895
|
const listTestCyclesQueryStartAtMax = 1e6;
|
|
1018
|
-
const
|
|
896
|
+
const ListTestCyclesQueryParams = zod.object({
|
|
1019
897
|
projectKey: zod.string().regex(listTestCyclesQueryProjectKeyRegExp).optional().describe("Jira project key filter"),
|
|
1020
898
|
folderId: zod.number().min(1).optional().describe("Folder ID filter"),
|
|
1021
899
|
jiraProjectVersionId: zod.number().min(1).optional().describe(
|
|
@@ -1024,163 +902,139 @@ const listTestCyclesQueryParams = zod.object({
|
|
|
1024
902
|
maxResults: zod.number().min(1).default(listTestCyclesQueryMaxResultsDefault).describe(
|
|
1025
903
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the maxResults value in the response to confirm how many results were actually returned.\n"
|
|
1026
904
|
),
|
|
1027
|
-
startAt: zod.number().min(listTestCyclesQueryStartAtMin).max(listTestCyclesQueryStartAtMax).
|
|
905
|
+
startAt: zod.number().min(listTestCyclesQueryStartAtMin).max(listTestCyclesQueryStartAtMax).default(listTestCyclesQueryStartAtDefault).describe(
|
|
1028
906
|
"Zero-indexed starting position. Should be a multiple of maxResults."
|
|
1029
907
|
)
|
|
1030
908
|
});
|
|
1031
|
-
const
|
|
1032
|
-
const
|
|
1033
|
-
const
|
|
1034
|
-
const
|
|
1035
|
-
const
|
|
1036
|
-
const
|
|
909
|
+
const listTestCycles200ResponseOneStartAtMin = 0;
|
|
910
|
+
const listTestCycles200ResponseOneTotalMin = 0;
|
|
911
|
+
const listTestCycles200ResponseTwoValuesItemKeyRegExp = /([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
912
|
+
const listTestCycles200ResponseTwoValuesItemNameRegExp = /^(?!\s*$).+/;
|
|
913
|
+
const listTestCycles200ResponseTwoValuesItemOwnerAccountIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
914
|
+
const ListTestCycles200Response = zod.object({
|
|
1037
915
|
next: zod.string().url().nullish().describe(
|
|
1038
916
|
"URL to the next page of results, or null if there are no more results."
|
|
1039
917
|
),
|
|
1040
|
-
startAt: zod.number().min(
|
|
918
|
+
startAt: zod.number().min(listTestCycles200ResponseOneStartAtMin).describe(
|
|
1041
919
|
"Indicates the index of the first item returned in the page of results."
|
|
1042
920
|
),
|
|
1043
921
|
maxResults: zod.number().min(1).describe(
|
|
1044
922
|
"Indicates the maximum number of results in this response. Note that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints."
|
|
1045
923
|
),
|
|
1046
|
-
total: zod.number().min(
|
|
924
|
+
total: zod.number().min(listTestCycles200ResponseOneTotalMin).optional().describe(
|
|
1047
925
|
"Indicates the total number of items available across all pages."
|
|
1048
926
|
),
|
|
1049
|
-
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results.")
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
zod.
|
|
927
|
+
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results."),
|
|
928
|
+
values: zod.array(
|
|
929
|
+
zod.object({
|
|
930
|
+
id: zod.number().min(1),
|
|
931
|
+
key: zod.string().regex(listTestCycles200ResponseTwoValuesItemKeyRegExp).describe("Unique key of the test cycle"),
|
|
932
|
+
name: zod.string().regex(listTestCycles200ResponseTwoValuesItemNameRegExp).describe("Name of the Test Cycle"),
|
|
933
|
+
project: zod.object({
|
|
1054
934
|
id: zod.number().min(1),
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
935
|
+
self: zod.string().url().optional().describe(
|
|
936
|
+
"The REST API endpoint to get more resource details."
|
|
937
|
+
)
|
|
938
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
939
|
+
jiraProjectVersion: zod.object({
|
|
940
|
+
id: zod.number().min(1),
|
|
941
|
+
self: zod.string().url().optional().describe(
|
|
942
|
+
"The REST API endpoint to get more resource details."
|
|
943
|
+
)
|
|
944
|
+
}).strict().nullish().describe(
|
|
945
|
+
"ID and Link to fetch information about Jira Project version. Relates to 'Version' or 'Releases' in Jira projects."
|
|
946
|
+
),
|
|
947
|
+
status: zod.object({
|
|
948
|
+
id: zod.number().min(1),
|
|
949
|
+
self: zod.string().url().optional().describe(
|
|
950
|
+
"The REST API endpoint to get more resource details."
|
|
951
|
+
)
|
|
952
|
+
}).strict(),
|
|
953
|
+
folder: zod.object({
|
|
954
|
+
id: zod.number().min(1),
|
|
955
|
+
self: zod.string().url().optional().describe(
|
|
956
|
+
"The REST API endpoint to get more resource details."
|
|
957
|
+
)
|
|
958
|
+
}).strict().nullish(),
|
|
959
|
+
description: zod.string().nullish().describe("Description outlining the scope."),
|
|
960
|
+
plannedStartDate: zod.string().datetime({}).nullish().describe(
|
|
961
|
+
"Planned start date of the test cycle. This field cannot be blank. Setting it as null or excluding it from the request will leave the field values unchanged. ISO 8601 Format (i.e., yyyy-MM-dd'T'HH:mm:ss'Z')"
|
|
962
|
+
),
|
|
963
|
+
plannedEndDate: zod.string().datetime({}).nullish().describe(
|
|
964
|
+
"The planned end date of the test cycle. This field cannot be blank. Setting it as null or excluding it from the request will leave the field values unchanged. ISO 8601 Format (i.e., yyyy-MM-dd'T'HH:mm:ss'Z')"
|
|
965
|
+
),
|
|
966
|
+
owner: zod.object({
|
|
967
|
+
accountId: zod.string().regex(
|
|
968
|
+
listTestCycles200ResponseTwoValuesItemOwnerAccountIdRegExp
|
|
969
|
+
).nullable().describe("Atlassian Account ID of the Jira user."),
|
|
970
|
+
self: zod.string().url().optional().describe(
|
|
971
|
+
"The Jira REST API endpoint to get the full representation of the Jira user."
|
|
972
|
+
)
|
|
973
|
+
}).strict().nullish(),
|
|
974
|
+
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
975
|
+
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
976
|
+
),
|
|
977
|
+
links: zod.object({
|
|
978
|
+
self: zod.string().url().optional().describe(
|
|
979
|
+
"The REST API endpoint to get more resource details."
|
|
980
|
+
),
|
|
981
|
+
issues: zod.array(
|
|
1069
982
|
zod.object({
|
|
983
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
1070
984
|
self: zod.string().url().optional().describe(
|
|
1071
|
-
"The REST API endpoint to
|
|
1072
|
-
)
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
985
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
986
|
+
),
|
|
987
|
+
id: zod.number().min(1).optional().describe(
|
|
988
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
989
|
+
),
|
|
990
|
+
target: zod.string().url().optional().describe(
|
|
991
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
992
|
+
),
|
|
993
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
994
|
+
}).strict()
|
|
995
|
+
).optional().describe("A list of Jira issues linked to this entity"),
|
|
996
|
+
webLinks: zod.array(
|
|
1080
997
|
zod.object({
|
|
998
|
+
description: zod.string().optional().describe("The web link description"),
|
|
999
|
+
url: zod.string().url().describe("The web link URL"),
|
|
1081
1000
|
self: zod.string().url().optional().describe(
|
|
1082
|
-
"The REST API endpoint to
|
|
1083
|
-
)
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1001
|
+
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
1002
|
+
),
|
|
1003
|
+
id: zod.number().min(1).optional(),
|
|
1004
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1005
|
+
}).strict()
|
|
1006
|
+
).optional().describe("A list of web links for this entity"),
|
|
1007
|
+
testPlans: zod.array(
|
|
1089
1008
|
zod.object({
|
|
1009
|
+
id: zod.number().min(1).optional().describe(
|
|
1010
|
+
"The ID that represents the link between the Test Cycle and the Test Plan."
|
|
1011
|
+
),
|
|
1090
1012
|
self: zod.string().url().optional().describe(
|
|
1091
|
-
"The REST API endpoint to
|
|
1013
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1014
|
+
),
|
|
1015
|
+
testPlanId: zod.number().optional().describe("The ID of the test plan"),
|
|
1016
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type"),
|
|
1017
|
+
target: zod.string().url().optional().describe(
|
|
1018
|
+
"The Zephyr REST API endpoint to get the full representation of the test plan"
|
|
1092
1019
|
)
|
|
1093
|
-
})
|
|
1094
|
-
).
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
),
|
|
1102
|
-
owner: zod.object({
|
|
1103
|
-
accountId: zod.string().regex(
|
|
1104
|
-
listTestCycles200ResponseValuesItemOwnerAccountIdRegExp
|
|
1105
|
-
).nullable().describe("Atlassian Account ID of the Jira user."),
|
|
1106
|
-
self: zod.string().url().optional().describe(
|
|
1107
|
-
"The Jira REST API endpoint to get the full representation of the Jira user."
|
|
1108
|
-
)
|
|
1109
|
-
}).nullish(),
|
|
1110
|
-
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
1111
|
-
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
1112
|
-
),
|
|
1113
|
-
links: zod.object({
|
|
1114
|
-
self: zod.string().url().optional().describe(
|
|
1115
|
-
"The REST API endpoint to get more resource details."
|
|
1116
|
-
)
|
|
1117
|
-
}).and(
|
|
1118
|
-
zod.object({
|
|
1119
|
-
issues: zod.array(
|
|
1120
|
-
zod.object({
|
|
1121
|
-
issueId: zod.number().min(1).describe("The Jira issue ID")
|
|
1122
|
-
}).and(
|
|
1123
|
-
zod.object({
|
|
1124
|
-
self: zod.string().url().optional().describe(
|
|
1125
|
-
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1126
|
-
),
|
|
1127
|
-
id: zod.number().min(1).optional().describe(
|
|
1128
|
-
"The ID that represents the link between the entity and the Jira issue."
|
|
1129
|
-
),
|
|
1130
|
-
target: zod.string().url().optional().describe(
|
|
1131
|
-
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
1132
|
-
),
|
|
1133
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1134
|
-
})
|
|
1135
|
-
)
|
|
1136
|
-
).optional().describe("A list of Jira issues linked to this entity"),
|
|
1137
|
-
webLinks: zod.array(
|
|
1138
|
-
zod.object({
|
|
1139
|
-
description: zod.string().optional().describe("The web link description"),
|
|
1140
|
-
url: zod.string().url().describe("The web link URL")
|
|
1141
|
-
}).and(
|
|
1142
|
-
zod.object({
|
|
1143
|
-
self: zod.string().url().optional().describe(
|
|
1144
|
-
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
1145
|
-
),
|
|
1146
|
-
id: zod.number().min(1).optional(),
|
|
1147
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1148
|
-
})
|
|
1149
|
-
)
|
|
1150
|
-
).optional().describe("A list of web links for this entity"),
|
|
1151
|
-
testPlans: zod.array(
|
|
1152
|
-
zod.object({
|
|
1153
|
-
id: zod.number().min(1).optional().describe(
|
|
1154
|
-
"The ID that represents the link between the Test Cycle and the Test Plan."
|
|
1155
|
-
),
|
|
1156
|
-
self: zod.string().url().optional().describe(
|
|
1157
|
-
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1158
|
-
),
|
|
1159
|
-
testPlanId: zod.number().optional().describe("The ID of the test plan"),
|
|
1160
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type"),
|
|
1161
|
-
target: zod.string().url().optional().describe(
|
|
1162
|
-
"The Zephyr REST API endpoint to get the full representation of the test plan"
|
|
1163
|
-
)
|
|
1164
|
-
})
|
|
1165
|
-
).optional().describe("A list of test plans linked to a test cycle")
|
|
1166
|
-
})
|
|
1167
|
-
).optional().describe(
|
|
1168
|
-
"Represents all links that a Test Cycle has. This property is ignored on update operations."
|
|
1169
|
-
)
|
|
1170
|
-
}).describe("Details of a test cycle")
|
|
1171
|
-
).optional()
|
|
1172
|
-
})
|
|
1173
|
-
);
|
|
1020
|
+
}).strict()
|
|
1021
|
+
).optional().describe("A list of test plans linked to a test cycle")
|
|
1022
|
+
}).strict().optional().describe(
|
|
1023
|
+
"Represents all links that a Test Cycle has. This property is ignored on update operations."
|
|
1024
|
+
)
|
|
1025
|
+
}).strict().describe("Details of a test cycle")
|
|
1026
|
+
).optional()
|
|
1027
|
+
}).strict();
|
|
1174
1028
|
zod.object({
|
|
1175
1029
|
errorCode: zod.number(),
|
|
1176
1030
|
message: zod.string()
|
|
1177
|
-
});
|
|
1031
|
+
}).strict();
|
|
1178
1032
|
const createTestCycleBodyProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
1179
1033
|
const createTestCycleBodyNameMax = 255;
|
|
1180
1034
|
const createTestCycleBodyNameRegExp = /^(?!\\s*$).+/;
|
|
1181
1035
|
const createTestCycleBodyStatusNameMax = 255;
|
|
1182
1036
|
const createTestCycleBodyOwnerIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
1183
|
-
const
|
|
1037
|
+
const CreateTestCycleBody = zod.object({
|
|
1184
1038
|
projectKey: zod.string().regex(createTestCycleBodyProjectKeyRegExp).describe("Jira project key."),
|
|
1185
1039
|
name: zod.string().min(1).max(createTestCycleBodyNameMax).regex(createTestCycleBodyNameRegExp),
|
|
1186
1040
|
description: zod.string().nullish().describe("Description outlining the scope."),
|
|
@@ -1200,59 +1054,44 @@ const createTestCycleBody = zod.object({
|
|
|
1200
1054
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
1201
1055
|
)
|
|
1202
1056
|
});
|
|
1203
|
-
const
|
|
1057
|
+
const CreateTestCycle201Response = zod.object({
|
|
1204
1058
|
id: zod.number().min(1).optional(),
|
|
1205
|
-
self: zod.string().optional()
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
key: zod.string().optional()
|
|
1209
|
-
})
|
|
1210
|
-
);
|
|
1059
|
+
self: zod.string().optional(),
|
|
1060
|
+
key: zod.string().optional()
|
|
1061
|
+
}).strict();
|
|
1211
1062
|
zod.object({
|
|
1212
1063
|
errorCode: zod.number(),
|
|
1213
1064
|
message: zod.string()
|
|
1214
|
-
});
|
|
1065
|
+
}).strict();
|
|
1215
1066
|
const getTestCyclePathTestCycleIdOrKeyRegExp = /([0-9]+)|([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1216
|
-
const
|
|
1067
|
+
const GetTestCycleParams = zod.object({
|
|
1217
1068
|
testCycleIdOrKey: zod.string().regex(getTestCyclePathTestCycleIdOrKeyRegExp).describe("The ID or key of the test cycle.")
|
|
1218
1069
|
});
|
|
1219
1070
|
const getTestCycle200ResponseKeyRegExp = /([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1220
1071
|
const getTestCycle200ResponseNameRegExp = /^(?!\s*$).+/;
|
|
1221
1072
|
const getTestCycle200ResponseOwnerAccountIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
1222
|
-
const
|
|
1073
|
+
const GetTestCycle200Response = zod.object({
|
|
1223
1074
|
id: zod.number().min(1),
|
|
1224
1075
|
key: zod.string().regex(getTestCycle200ResponseKeyRegExp).describe("Unique key of the test cycle"),
|
|
1225
1076
|
name: zod.string().regex(getTestCycle200ResponseNameRegExp).describe("Name of the Test Cycle"),
|
|
1226
1077
|
project: zod.object({
|
|
1227
|
-
id: zod.number().min(1)
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
id: zod.number().min(1)
|
|
1235
|
-
}).describe("The ID of the resource").and(
|
|
1236
|
-
zod.object({
|
|
1237
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1238
|
-
})
|
|
1239
|
-
).nullish().describe(
|
|
1078
|
+
id: zod.number().min(1),
|
|
1079
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1080
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
1081
|
+
jiraProjectVersion: zod.object({
|
|
1082
|
+
id: zod.number().min(1),
|
|
1083
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1084
|
+
}).strict().nullish().describe(
|
|
1240
1085
|
"ID and Link to fetch information about Jira Project version. Relates to 'Version' or 'Releases' in Jira projects."
|
|
1241
1086
|
),
|
|
1242
1087
|
status: zod.object({
|
|
1243
|
-
id: zod.number().min(1)
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1247
|
-
})
|
|
1248
|
-
),
|
|
1088
|
+
id: zod.number().min(1),
|
|
1089
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1090
|
+
}).strict(),
|
|
1249
1091
|
folder: zod.object({
|
|
1250
|
-
id: zod.number().min(1)
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1254
|
-
})
|
|
1255
|
-
).nullish(),
|
|
1092
|
+
id: zod.number().min(1),
|
|
1093
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1094
|
+
}).strict().nullish(),
|
|
1256
1095
|
description: zod.string().nullish().describe("Description outlining the scope."),
|
|
1257
1096
|
plannedStartDate: zod.string().datetime({}).nullish().describe(
|
|
1258
1097
|
"Planned start date of the test cycle. This field cannot be blank. Setting it as null or excluding it from the request will leave the field values unchanged. ISO 8601 Format (i.e., yyyy-MM-dd'T'HH:mm:ss'Z')"
|
|
@@ -1265,78 +1104,69 @@ const getTestCycle200Response = zod.object({
|
|
|
1265
1104
|
self: zod.string().url().optional().describe(
|
|
1266
1105
|
"The Jira REST API endpoint to get the full representation of the Jira user."
|
|
1267
1106
|
)
|
|
1268
|
-
}).nullish(),
|
|
1107
|
+
}).strict().nullish(),
|
|
1269
1108
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
1270
1109
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
1271
1110
|
),
|
|
1272
1111
|
links: zod.object({
|
|
1273
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
zod.
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
)
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1112
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
1113
|
+
issues: zod.array(
|
|
1114
|
+
zod.object({
|
|
1115
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
1116
|
+
self: zod.string().url().optional().describe(
|
|
1117
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1118
|
+
),
|
|
1119
|
+
id: zod.number().min(1).optional().describe(
|
|
1120
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
1121
|
+
),
|
|
1122
|
+
target: zod.string().url().optional().describe(
|
|
1123
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
1124
|
+
),
|
|
1125
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1126
|
+
}).strict()
|
|
1127
|
+
).optional().describe("A list of Jira issues linked to this entity"),
|
|
1128
|
+
webLinks: zod.array(
|
|
1129
|
+
zod.object({
|
|
1130
|
+
description: zod.string().optional().describe("The web link description"),
|
|
1131
|
+
url: zod.string().url().describe("The web link URL"),
|
|
1132
|
+
self: zod.string().url().optional().describe(
|
|
1133
|
+
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
1134
|
+
),
|
|
1135
|
+
id: zod.number().min(1).optional(),
|
|
1136
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1137
|
+
}).strict()
|
|
1138
|
+
).optional().describe("A list of web links for this entity"),
|
|
1139
|
+
testPlans: zod.array(
|
|
1140
|
+
zod.object({
|
|
1141
|
+
id: zod.number().min(1).optional().describe(
|
|
1142
|
+
"The ID that represents the link between the Test Cycle and the Test Plan."
|
|
1143
|
+
),
|
|
1144
|
+
self: zod.string().url().optional().describe(
|
|
1145
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1146
|
+
),
|
|
1147
|
+
testPlanId: zod.number().optional().describe("The ID of the test plan"),
|
|
1148
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type"),
|
|
1149
|
+
target: zod.string().url().optional().describe(
|
|
1150
|
+
"The Zephyr REST API endpoint to get the full representation of the test plan"
|
|
1306
1151
|
)
|
|
1307
|
-
).
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
id: zod.number().min(1).optional().describe(
|
|
1311
|
-
"The ID that represents the link between the Test Cycle and the Test Plan."
|
|
1312
|
-
),
|
|
1313
|
-
self: zod.string().url().optional().describe(
|
|
1314
|
-
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1315
|
-
),
|
|
1316
|
-
testPlanId: zod.number().optional().describe("The ID of the test plan"),
|
|
1317
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type"),
|
|
1318
|
-
target: zod.string().url().optional().describe(
|
|
1319
|
-
"The Zephyr REST API endpoint to get the full representation of the test plan"
|
|
1320
|
-
)
|
|
1321
|
-
})
|
|
1322
|
-
).optional().describe("A list of test plans linked to a test cycle")
|
|
1323
|
-
})
|
|
1324
|
-
).optional().describe(
|
|
1152
|
+
}).strict()
|
|
1153
|
+
).optional().describe("A list of test plans linked to a test cycle")
|
|
1154
|
+
}).strict().optional().describe(
|
|
1325
1155
|
"Represents all links that a Test Cycle has. This property is ignored on update operations."
|
|
1326
1156
|
)
|
|
1327
|
-
}).describe("Details of a test cycle");
|
|
1157
|
+
}).strict().describe("Details of a test cycle");
|
|
1328
1158
|
zod.object({
|
|
1329
1159
|
errorCode: zod.number(),
|
|
1330
1160
|
message: zod.string()
|
|
1331
|
-
});
|
|
1161
|
+
}).strict();
|
|
1332
1162
|
const updateTestCyclePathTestCycleIdOrKeyRegExp = /([0-9]+)|([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1333
|
-
const
|
|
1163
|
+
const UpdateTestCycleParams = zod.object({
|
|
1334
1164
|
testCycleIdOrKey: zod.string().regex(updateTestCyclePathTestCycleIdOrKeyRegExp).describe("The ID or key of the test cycle.")
|
|
1335
1165
|
});
|
|
1336
1166
|
const updateTestCycleBodyKeyRegExp = /([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1337
1167
|
const updateTestCycleBodyNameRegExp = /^(?!\s*$).+/;
|
|
1338
1168
|
const updateTestCycleBodyOwnerAccountIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
1339
|
-
const
|
|
1169
|
+
const UpdateTestCycleBody = zod.object({
|
|
1340
1170
|
id: zod.number().min(1),
|
|
1341
1171
|
key: zod.string().regex(updateTestCycleBodyKeyRegExp).describe("Unique key of the test cycle"),
|
|
1342
1172
|
name: zod.string().regex(updateTestCycleBodyNameRegExp).describe("Name of the Test Cycle"),
|
|
@@ -1445,70 +1275,61 @@ const updateTestCycleBody = zod.object({
|
|
|
1445
1275
|
zod.object({
|
|
1446
1276
|
errorCode: zod.number(),
|
|
1447
1277
|
message: zod.string()
|
|
1448
|
-
});
|
|
1278
|
+
}).strict();
|
|
1449
1279
|
const getTestCycleLinksPathTestCycleIdOrKeyRegExp = /([0-9]+)|([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1450
1280
|
zod.object({
|
|
1451
1281
|
testCycleIdOrKey: zod.string().regex(getTestCycleLinksPathTestCycleIdOrKeyRegExp).describe("The ID or key of the test cycle.")
|
|
1452
1282
|
});
|
|
1453
1283
|
zod.object({
|
|
1454
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
zod.
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
)
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1284
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
1285
|
+
issues: zod.array(
|
|
1286
|
+
zod.object({
|
|
1287
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
1288
|
+
self: zod.string().url().optional().describe(
|
|
1289
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1290
|
+
),
|
|
1291
|
+
id: zod.number().min(1).optional().describe(
|
|
1292
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
1293
|
+
),
|
|
1294
|
+
target: zod.string().url().optional().describe(
|
|
1295
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
1296
|
+
),
|
|
1297
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1298
|
+
}).strict()
|
|
1299
|
+
).optional().describe("A list of Jira issues linked to this entity"),
|
|
1300
|
+
webLinks: zod.array(
|
|
1301
|
+
zod.object({
|
|
1302
|
+
description: zod.string().optional().describe("The web link description"),
|
|
1303
|
+
url: zod.string().url().describe("The web link URL"),
|
|
1304
|
+
self: zod.string().url().optional().describe(
|
|
1305
|
+
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
1306
|
+
),
|
|
1307
|
+
id: zod.number().min(1).optional(),
|
|
1308
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1309
|
+
}).strict()
|
|
1310
|
+
).optional().describe("A list of web links for this entity"),
|
|
1311
|
+
testPlans: zod.array(
|
|
1312
|
+
zod.object({
|
|
1313
|
+
id: zod.number().min(1).optional().describe(
|
|
1314
|
+
"The ID that represents the link between the Test Cycle and the Test Plan."
|
|
1315
|
+
),
|
|
1316
|
+
self: zod.string().url().optional().describe(
|
|
1317
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1318
|
+
),
|
|
1319
|
+
testPlanId: zod.number().optional().describe("The ID of the test plan"),
|
|
1320
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type"),
|
|
1321
|
+
target: zod.string().url().optional().describe(
|
|
1322
|
+
"The Zephyr REST API endpoint to get the full representation of the test plan"
|
|
1487
1323
|
)
|
|
1488
|
-
).
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
id: zod.number().min(1).optional().describe(
|
|
1492
|
-
"The ID that represents the link between the Test Cycle and the Test Plan."
|
|
1493
|
-
),
|
|
1494
|
-
self: zod.string().url().optional().describe(
|
|
1495
|
-
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1496
|
-
),
|
|
1497
|
-
testPlanId: zod.number().optional().describe("The ID of the test plan"),
|
|
1498
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type"),
|
|
1499
|
-
target: zod.string().url().optional().describe(
|
|
1500
|
-
"The Zephyr REST API endpoint to get the full representation of the test plan"
|
|
1501
|
-
)
|
|
1502
|
-
})
|
|
1503
|
-
).optional().describe("A list of test plans linked to a test cycle")
|
|
1504
|
-
})
|
|
1505
|
-
).describe(
|
|
1324
|
+
}).strict()
|
|
1325
|
+
).optional().describe("A list of test plans linked to a test cycle")
|
|
1326
|
+
}).strict().describe(
|
|
1506
1327
|
"Represents all links that a Test Cycle has. This property is ignored on update operations."
|
|
1507
1328
|
);
|
|
1508
1329
|
zod.object({
|
|
1509
1330
|
errorCode: zod.number(),
|
|
1510
1331
|
message: zod.string()
|
|
1511
|
-
});
|
|
1332
|
+
}).strict();
|
|
1512
1333
|
const createTestCycleIssueLinkPathTestCycleIdOrKeyRegExp = /([0-9]+)|([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1513
1334
|
zod.object({
|
|
1514
1335
|
testCycleIdOrKey: zod.string().regex(createTestCycleIssueLinkPathTestCycleIdOrKeyRegExp).describe("The ID or key of the test cycle.")
|
|
@@ -1519,7 +1340,7 @@ zod.object({
|
|
|
1519
1340
|
zod.object({
|
|
1520
1341
|
errorCode: zod.number(),
|
|
1521
1342
|
message: zod.string()
|
|
1522
|
-
});
|
|
1343
|
+
}).strict();
|
|
1523
1344
|
const createTestCycleWebLinkPathTestCycleIdOrKeyRegExp = /([0-9]+)|([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1524
1345
|
zod.object({
|
|
1525
1346
|
testCycleIdOrKey: zod.string().regex(createTestCycleWebLinkPathTestCycleIdOrKeyRegExp).describe("The ID or key of the test cycle.")
|
|
@@ -1531,9 +1352,10 @@ zod.object({
|
|
|
1531
1352
|
zod.object({
|
|
1532
1353
|
errorCode: zod.number(),
|
|
1533
1354
|
message: zod.string()
|
|
1534
|
-
});
|
|
1355
|
+
}).strict();
|
|
1535
1356
|
const listTestPlansQueryProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
1536
1357
|
const listTestPlansQueryMaxResultsDefault = 10;
|
|
1358
|
+
const listTestPlansQueryStartAtDefault = 0;
|
|
1537
1359
|
const listTestPlansQueryStartAtMin = 0;
|
|
1538
1360
|
const listTestPlansQueryStartAtMax = 1e6;
|
|
1539
1361
|
zod.object({
|
|
@@ -1541,135 +1363,113 @@ zod.object({
|
|
|
1541
1363
|
maxResults: zod.number().min(1).default(listTestPlansQueryMaxResultsDefault).describe(
|
|
1542
1364
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the maxResults value in the response to confirm how many results were actually returned.\n"
|
|
1543
1365
|
),
|
|
1544
|
-
startAt: zod.number().min(listTestPlansQueryStartAtMin).max(listTestPlansQueryStartAtMax).
|
|
1366
|
+
startAt: zod.number().min(listTestPlansQueryStartAtMin).max(listTestPlansQueryStartAtMax).default(listTestPlansQueryStartAtDefault).describe(
|
|
1545
1367
|
"Zero-indexed starting position. Should be a multiple of maxResults."
|
|
1546
1368
|
)
|
|
1547
1369
|
});
|
|
1548
|
-
const
|
|
1549
|
-
const
|
|
1550
|
-
const
|
|
1551
|
-
const
|
|
1552
|
-
const
|
|
1553
|
-
const
|
|
1554
|
-
const
|
|
1370
|
+
const listTestPlans200ResponseOneStartAtMin = 0;
|
|
1371
|
+
const listTestPlans200ResponseOneTotalMin = 0;
|
|
1372
|
+
const listTestPlans200ResponseTwoValuesItemKeyRegExp = /.+-P[0-9]+/;
|
|
1373
|
+
const listTestPlans200ResponseTwoValuesItemNameMax = 255;
|
|
1374
|
+
const listTestPlans200ResponseTwoValuesItemNameRegExp = /^(?!\\s*$).+/;
|
|
1375
|
+
const listTestPlans200ResponseTwoValuesItemOwnerAccountIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
1376
|
+
const listTestPlans200ResponseTwoValuesItemLabelsMax = 50;
|
|
1555
1377
|
zod.object({
|
|
1556
1378
|
next: zod.string().url().nullish().describe(
|
|
1557
1379
|
"URL to the next page of results, or null if there are no more results."
|
|
1558
1380
|
),
|
|
1559
|
-
startAt: zod.number().min(
|
|
1381
|
+
startAt: zod.number().min(listTestPlans200ResponseOneStartAtMin).describe(
|
|
1560
1382
|
"Indicates the index of the first item returned in the page of results."
|
|
1561
1383
|
),
|
|
1562
1384
|
maxResults: zod.number().min(1).describe(
|
|
1563
1385
|
"Indicates the maximum number of results in this response. Note that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints."
|
|
1564
1386
|
),
|
|
1565
|
-
total: zod.number().min(
|
|
1387
|
+
total: zod.number().min(listTestPlans200ResponseOneTotalMin).optional().describe(
|
|
1566
1388
|
"Indicates the total number of items available across all pages."
|
|
1567
1389
|
),
|
|
1568
|
-
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results.")
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
zod.
|
|
1390
|
+
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results."),
|
|
1391
|
+
values: zod.array(
|
|
1392
|
+
zod.object({
|
|
1393
|
+
id: zod.number().min(1),
|
|
1394
|
+
key: zod.string().regex(listTestPlans200ResponseTwoValuesItemKeyRegExp).describe("Key of the test plan"),
|
|
1395
|
+
name: zod.string().min(1).max(listTestPlans200ResponseTwoValuesItemNameMax).regex(listTestPlans200ResponseTwoValuesItemNameRegExp),
|
|
1396
|
+
objective: zod.string().nullish().describe("A description of the objective."),
|
|
1397
|
+
project: zod.object({
|
|
1398
|
+
id: zod.number().min(1),
|
|
1399
|
+
self: zod.string().url().optional().describe(
|
|
1400
|
+
"The REST API endpoint to get more resource details."
|
|
1401
|
+
)
|
|
1402
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
1403
|
+
status: zod.object({
|
|
1404
|
+
id: zod.number().min(1),
|
|
1405
|
+
self: zod.string().url().optional().describe(
|
|
1406
|
+
"The REST API endpoint to get more resource details."
|
|
1407
|
+
)
|
|
1408
|
+
}).strict(),
|
|
1409
|
+
folder: zod.object({
|
|
1573
1410
|
id: zod.number().min(1),
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1411
|
+
self: zod.string().url().optional().describe(
|
|
1412
|
+
"The REST API endpoint to get more resource details."
|
|
1413
|
+
)
|
|
1414
|
+
}).strict().nullish(),
|
|
1415
|
+
owner: zod.object({
|
|
1416
|
+
accountId: zod.string().regex(
|
|
1417
|
+
listTestPlans200ResponseTwoValuesItemOwnerAccountIdRegExp
|
|
1418
|
+
).nullable().describe("Atlassian Account ID of the Jira user."),
|
|
1419
|
+
self: zod.string().url().optional().describe(
|
|
1420
|
+
"The Jira REST API endpoint to get the full representation of the Jira user."
|
|
1421
|
+
)
|
|
1422
|
+
}).strict().nullish(),
|
|
1423
|
+
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
1424
|
+
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
1425
|
+
),
|
|
1426
|
+
labels: zod.array(zod.string()).max(listTestPlans200ResponseTwoValuesItemLabelsMax).optional().describe("Array of labels associated to this entity."),
|
|
1427
|
+
links: zod.object({
|
|
1428
|
+
webLinks: zod.array(
|
|
1580
1429
|
zod.object({
|
|
1430
|
+
description: zod.string().optional().describe("The web link description"),
|
|
1431
|
+
url: zod.string().url().describe("The web link URL"),
|
|
1581
1432
|
self: zod.string().url().optional().describe(
|
|
1582
|
-
"The REST API endpoint to
|
|
1583
|
-
)
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1433
|
+
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
1434
|
+
),
|
|
1435
|
+
id: zod.number().min(1).optional(),
|
|
1436
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1437
|
+
}).strict()
|
|
1438
|
+
).optional().describe("A list of web links for this entity"),
|
|
1439
|
+
issues: zod.array(
|
|
1589
1440
|
zod.object({
|
|
1441
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
1590
1442
|
self: zod.string().url().optional().describe(
|
|
1591
|
-
"The REST API endpoint to
|
|
1592
|
-
)
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1443
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1444
|
+
),
|
|
1445
|
+
id: zod.number().min(1).optional().describe(
|
|
1446
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
1447
|
+
),
|
|
1448
|
+
target: zod.string().url().optional().describe(
|
|
1449
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
1450
|
+
),
|
|
1451
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1452
|
+
}).strict()
|
|
1453
|
+
).optional().describe("A list of Jira issues linked to this entity"),
|
|
1454
|
+
testCycles: zod.array(
|
|
1598
1455
|
zod.object({
|
|
1456
|
+
id: zod.number().min(1),
|
|
1599
1457
|
self: zod.string().url().optional().describe(
|
|
1600
1458
|
"The REST API endpoint to get more resource details."
|
|
1601
|
-
)
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
1612
|
-
),
|
|
1613
|
-
labels: zod.array(zod.string()).max(listTestPlans200ResponseValuesItemLabelsMax).optional().describe("Array of labels associated to this entity."),
|
|
1614
|
-
links: zod.object({
|
|
1615
|
-
webLinks: zod.array(
|
|
1616
|
-
zod.object({
|
|
1617
|
-
description: zod.string().optional().describe("The web link description"),
|
|
1618
|
-
url: zod.string().url().describe("The web link URL")
|
|
1619
|
-
}).and(
|
|
1620
|
-
zod.object({
|
|
1621
|
-
self: zod.string().url().optional().describe(
|
|
1622
|
-
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
1623
|
-
),
|
|
1624
|
-
id: zod.number().min(1).optional(),
|
|
1625
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1626
|
-
})
|
|
1627
|
-
)
|
|
1628
|
-
).optional().describe("A list of web links for this entity"),
|
|
1629
|
-
issues: zod.array(
|
|
1630
|
-
zod.object({
|
|
1631
|
-
issueId: zod.number().min(1).describe("The Jira issue ID")
|
|
1632
|
-
}).and(
|
|
1633
|
-
zod.object({
|
|
1634
|
-
self: zod.string().url().optional().describe(
|
|
1635
|
-
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1636
|
-
),
|
|
1637
|
-
id: zod.number().min(1).optional().describe(
|
|
1638
|
-
"The ID that represents the link between the entity and the Jira issue."
|
|
1639
|
-
),
|
|
1640
|
-
target: zod.string().url().optional().describe(
|
|
1641
|
-
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
1642
|
-
),
|
|
1643
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1644
|
-
})
|
|
1645
|
-
)
|
|
1646
|
-
).optional().describe("A list of Jira issues linked to this entity"),
|
|
1647
|
-
testCycles: zod.array(
|
|
1648
|
-
zod.object({
|
|
1649
|
-
id: zod.number().min(1)
|
|
1650
|
-
}).describe("The ID of the resource").and(
|
|
1651
|
-
zod.object({
|
|
1652
|
-
self: zod.string().url().optional().describe(
|
|
1653
|
-
"The REST API endpoint to get more resource details."
|
|
1654
|
-
)
|
|
1655
|
-
})
|
|
1656
|
-
).and(
|
|
1657
|
-
zod.object({
|
|
1658
|
-
testCycleId: zod.number().min(1).optional(),
|
|
1659
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type"),
|
|
1660
|
-
target: zod.string().optional().describe("The test cycle resource")
|
|
1661
|
-
})
|
|
1662
|
-
)
|
|
1663
|
-
).optional().describe("A list of test cycle links for a test plan")
|
|
1664
|
-
}).optional()
|
|
1665
|
-
})
|
|
1666
|
-
).optional()
|
|
1667
|
-
})
|
|
1668
|
-
);
|
|
1459
|
+
),
|
|
1460
|
+
testCycleId: zod.number().min(1).optional(),
|
|
1461
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type"),
|
|
1462
|
+
target: zod.string().optional().describe("The test cycle resource")
|
|
1463
|
+
}).strict()
|
|
1464
|
+
).optional().describe("A list of test cycle links for a test plan")
|
|
1465
|
+
}).strict().optional()
|
|
1466
|
+
}).strict()
|
|
1467
|
+
).optional()
|
|
1468
|
+
}).strict();
|
|
1669
1469
|
zod.object({
|
|
1670
1470
|
errorCode: zod.number(),
|
|
1671
1471
|
message: zod.string()
|
|
1672
|
-
});
|
|
1472
|
+
}).strict();
|
|
1673
1473
|
const createTestPlanBodyProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
1674
1474
|
const createTestPlanBodyNameMax = 255;
|
|
1675
1475
|
const createTestPlanBodyNameRegExp = /^(?!\\s*$).+/;
|
|
@@ -1690,16 +1490,13 @@ zod.object({
|
|
|
1690
1490
|
});
|
|
1691
1491
|
zod.object({
|
|
1692
1492
|
id: zod.number().min(1).optional(),
|
|
1693
|
-
self: zod.string().optional()
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
key: zod.string().optional()
|
|
1697
|
-
})
|
|
1698
|
-
);
|
|
1493
|
+
self: zod.string().optional(),
|
|
1494
|
+
key: zod.string().optional()
|
|
1495
|
+
}).strict();
|
|
1699
1496
|
zod.object({
|
|
1700
1497
|
errorCode: zod.number(),
|
|
1701
1498
|
message: zod.string()
|
|
1702
|
-
});
|
|
1499
|
+
}).strict();
|
|
1703
1500
|
const getTestPlanPathTestPlanIdOrKeyRegExp = /([0-9]+)|(.+-P[0-9]+)/;
|
|
1704
1501
|
zod.object({
|
|
1705
1502
|
testPlanIdOrKey: zod.string().regex(getTestPlanPathTestPlanIdOrKeyRegExp).describe(
|
|
@@ -1717,92 +1514,71 @@ zod.object({
|
|
|
1717
1514
|
name: zod.string().min(1).max(getTestPlan200ResponseNameMax).regex(getTestPlan200ResponseNameRegExp),
|
|
1718
1515
|
objective: zod.string().nullish().describe("A description of the objective."),
|
|
1719
1516
|
project: zod.object({
|
|
1720
|
-
id: zod.number().min(1)
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1724
|
-
})
|
|
1725
|
-
).describe("ID and link relative to Zephyr project."),
|
|
1517
|
+
id: zod.number().min(1),
|
|
1518
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1519
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
1726
1520
|
status: zod.object({
|
|
1727
|
-
id: zod.number().min(1)
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1731
|
-
})
|
|
1732
|
-
),
|
|
1521
|
+
id: zod.number().min(1),
|
|
1522
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1523
|
+
}).strict(),
|
|
1733
1524
|
folder: zod.object({
|
|
1734
|
-
id: zod.number().min(1)
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1738
|
-
})
|
|
1739
|
-
).nullish(),
|
|
1525
|
+
id: zod.number().min(1),
|
|
1526
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1527
|
+
}).strict().nullish(),
|
|
1740
1528
|
owner: zod.object({
|
|
1741
1529
|
accountId: zod.string().regex(getTestPlan200ResponseOwnerAccountIdRegExp).nullable().describe("Atlassian Account ID of the Jira user."),
|
|
1742
1530
|
self: zod.string().url().optional().describe(
|
|
1743
1531
|
"The Jira REST API endpoint to get the full representation of the Jira user."
|
|
1744
1532
|
)
|
|
1745
|
-
}).nullish(),
|
|
1533
|
+
}).strict().nullish(),
|
|
1746
1534
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
1747
1535
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
1748
1536
|
),
|
|
1749
1537
|
labels: zod.array(zod.string()).max(getTestPlan200ResponseLabelsMax).optional().describe("Array of labels associated to this entity."),
|
|
1750
|
-
links: zod.object({
|
|
1751
|
-
webLinks: zod.array(
|
|
1752
|
-
zod.object({
|
|
1753
|
-
description: zod.string().optional().describe("The web link description"),
|
|
1754
|
-
url: zod.string().url().describe("The web link URL")
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
target: zod.string().url().optional().describe(
|
|
1777
|
-
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
1778
|
-
),
|
|
1779
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1780
|
-
})
|
|
1781
|
-
)
|
|
1538
|
+
links: zod.object({
|
|
1539
|
+
webLinks: zod.array(
|
|
1540
|
+
zod.object({
|
|
1541
|
+
description: zod.string().optional().describe("The web link description"),
|
|
1542
|
+
url: zod.string().url().describe("The web link URL"),
|
|
1543
|
+
self: zod.string().url().optional().describe(
|
|
1544
|
+
"The Zephyr REST API endpoint relative to the link between the entity and this web link."
|
|
1545
|
+
),
|
|
1546
|
+
id: zod.number().min(1).optional(),
|
|
1547
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1548
|
+
}).strict()
|
|
1549
|
+
).optional().describe("A list of web links for this entity"),
|
|
1550
|
+
issues: zod.array(
|
|
1551
|
+
zod.object({
|
|
1552
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
1553
|
+
self: zod.string().url().optional().describe(
|
|
1554
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1555
|
+
),
|
|
1556
|
+
id: zod.number().min(1).optional().describe(
|
|
1557
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
1558
|
+
),
|
|
1559
|
+
target: zod.string().url().optional().describe(
|
|
1560
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
1561
|
+
),
|
|
1562
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1563
|
+
}).strict()
|
|
1782
1564
|
).optional().describe("A list of Jira issues linked to this entity"),
|
|
1783
1565
|
testCycles: zod.array(
|
|
1784
1566
|
zod.object({
|
|
1785
|
-
id: zod.number().min(1)
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
).
|
|
1793
|
-
zod.object({
|
|
1794
|
-
testCycleId: zod.number().min(1).optional(),
|
|
1795
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type"),
|
|
1796
|
-
target: zod.string().optional().describe("The test cycle resource")
|
|
1797
|
-
})
|
|
1798
|
-
)
|
|
1567
|
+
id: zod.number().min(1),
|
|
1568
|
+
self: zod.string().url().optional().describe(
|
|
1569
|
+
"The REST API endpoint to get more resource details."
|
|
1570
|
+
),
|
|
1571
|
+
testCycleId: zod.number().min(1).optional(),
|
|
1572
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type"),
|
|
1573
|
+
target: zod.string().optional().describe("The test cycle resource")
|
|
1574
|
+
}).strict()
|
|
1799
1575
|
).optional().describe("A list of test cycle links for a test plan")
|
|
1800
|
-
}).optional()
|
|
1801
|
-
});
|
|
1576
|
+
}).strict().optional()
|
|
1577
|
+
}).strict();
|
|
1802
1578
|
zod.object({
|
|
1803
1579
|
errorCode: zod.number(),
|
|
1804
1580
|
message: zod.string()
|
|
1805
|
-
});
|
|
1581
|
+
}).strict();
|
|
1806
1582
|
const createTestPlanWebLinkPathTestPlanIdOrKeyRegExp = /([0-9]+)|(.+-P[0-9]+)/;
|
|
1807
1583
|
zod.object({
|
|
1808
1584
|
testPlanIdOrKey: zod.string().regex(createTestPlanWebLinkPathTestPlanIdOrKeyRegExp).describe(
|
|
@@ -1816,11 +1592,11 @@ zod.object({
|
|
|
1816
1592
|
zod.object({
|
|
1817
1593
|
id: zod.number().min(1).optional(),
|
|
1818
1594
|
self: zod.string().optional()
|
|
1819
|
-
});
|
|
1595
|
+
}).strict();
|
|
1820
1596
|
zod.object({
|
|
1821
1597
|
errorCode: zod.number(),
|
|
1822
1598
|
message: zod.string()
|
|
1823
|
-
});
|
|
1599
|
+
}).strict();
|
|
1824
1600
|
const createTestPlanIssueLinkPathTestPlanIdOrKeyRegExp = /([0-9]+)|(.+-P[0-9]+)/;
|
|
1825
1601
|
zod.object({
|
|
1826
1602
|
testPlanIdOrKey: zod.string().regex(createTestPlanIssueLinkPathTestPlanIdOrKeyRegExp).describe(
|
|
@@ -1833,11 +1609,11 @@ zod.object({
|
|
|
1833
1609
|
zod.object({
|
|
1834
1610
|
id: zod.number().min(1).optional(),
|
|
1835
1611
|
self: zod.string().optional()
|
|
1836
|
-
});
|
|
1612
|
+
}).strict();
|
|
1837
1613
|
zod.object({
|
|
1838
1614
|
errorCode: zod.number(),
|
|
1839
1615
|
message: zod.string()
|
|
1840
|
-
});
|
|
1616
|
+
}).strict();
|
|
1841
1617
|
const createTestPlanTestCycleLinkPathTestPlanIdOrKeyRegExp = /([0-9]+)|(.+-P[0-9]+)/;
|
|
1842
1618
|
zod.object({
|
|
1843
1619
|
testPlanIdOrKey: zod.string().regex(createTestPlanTestCycleLinkPathTestPlanIdOrKeyRegExp).describe(
|
|
@@ -1851,15 +1627,18 @@ zod.object({
|
|
|
1851
1627
|
zod.object({
|
|
1852
1628
|
id: zod.number().min(1).optional(),
|
|
1853
1629
|
self: zod.string().optional()
|
|
1854
|
-
});
|
|
1630
|
+
}).strict();
|
|
1855
1631
|
zod.object({
|
|
1856
1632
|
errorCode: zod.number(),
|
|
1857
1633
|
message: zod.string()
|
|
1858
|
-
});
|
|
1634
|
+
}).strict();
|
|
1859
1635
|
const listTestExecutionsQueryProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
1860
1636
|
const listTestExecutionsQueryTestCycleRegExp = /([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
1861
1637
|
const listTestExecutionsQueryTestCaseRegExp = /([0-9]+)|(.+-T[0-9]+)/;
|
|
1638
|
+
const listTestExecutionsQueryIncludeStepLinksDefault = false;
|
|
1639
|
+
const listTestExecutionsQueryOnlyLastExecutionsDefault = false;
|
|
1862
1640
|
const listTestExecutionsQueryMaxResultsDefault = 10;
|
|
1641
|
+
const listTestExecutionsQueryStartAtDefault = 0;
|
|
1863
1642
|
const listTestExecutionsQueryStartAtMin = 0;
|
|
1864
1643
|
const listTestExecutionsQueryStartAtMax = 1e6;
|
|
1865
1644
|
zod.object({
|
|
@@ -1872,153 +1651,130 @@ zod.object({
|
|
|
1872
1651
|
actualEndDateBefore: zod.string().datetime({}).optional().describe(
|
|
1873
1652
|
"Filter for 'Actual End Date' before the given time. Format: yyyy-MM-dd'T'HH:mm:ss'Z'"
|
|
1874
1653
|
),
|
|
1875
|
-
includeStepLinks: zod.boolean().
|
|
1654
|
+
includeStepLinks: zod.boolean().default(listTestExecutionsQueryIncludeStepLinksDefault).describe(
|
|
1876
1655
|
"If true, execution step issue links will be included in the response"
|
|
1877
1656
|
),
|
|
1878
1657
|
jiraProjectVersionId: zod.number().min(1).optional().describe(
|
|
1879
1658
|
"Jira Project Version ID. Relates to 'Version' or 'Releases' in Jira projects."
|
|
1880
1659
|
),
|
|
1881
|
-
onlyLastExecutions: zod.boolean().
|
|
1660
|
+
onlyLastExecutions: zod.boolean().default(listTestExecutionsQueryOnlyLastExecutionsDefault).describe(
|
|
1882
1661
|
"If true, includes only the last execution of each test cycle item (test case), and all ad-hoc test executions."
|
|
1883
1662
|
),
|
|
1884
1663
|
maxResults: zod.number().min(1).default(listTestExecutionsQueryMaxResultsDefault).describe(
|
|
1885
1664
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the maxResults value in the response to confirm how many results were actually returned.\n"
|
|
1886
1665
|
),
|
|
1887
|
-
startAt: zod.number().min(listTestExecutionsQueryStartAtMin).max(listTestExecutionsQueryStartAtMax).
|
|
1666
|
+
startAt: zod.number().min(listTestExecutionsQueryStartAtMin).max(listTestExecutionsQueryStartAtMax).default(listTestExecutionsQueryStartAtDefault).describe(
|
|
1888
1667
|
"Zero-indexed starting position. Should be a multiple of maxResults."
|
|
1889
1668
|
)
|
|
1890
1669
|
});
|
|
1891
|
-
const
|
|
1892
|
-
const
|
|
1893
|
-
const
|
|
1894
|
-
const
|
|
1895
|
-
const
|
|
1896
|
-
const
|
|
1897
|
-
const
|
|
1670
|
+
const listTestExecutions200ResponseOneStartAtMin = 0;
|
|
1671
|
+
const listTestExecutions200ResponseOneTotalMin = 0;
|
|
1672
|
+
const listTestExecutions200ResponseTwoValuesItemKeyRegExp = /.+-E[0-9]+/;
|
|
1673
|
+
const listTestExecutions200ResponseTwoValuesItemEstimatedTimeMin = 0;
|
|
1674
|
+
const listTestExecutions200ResponseTwoValuesItemExecutionTimeMin = 0;
|
|
1675
|
+
const listTestExecutions200ResponseTwoValuesItemExecutedByIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
1676
|
+
const listTestExecutions200ResponseTwoValuesItemAssignedToIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
1898
1677
|
zod.object({
|
|
1899
1678
|
next: zod.string().url().nullish().describe(
|
|
1900
1679
|
"URL to the next page of results, or null if there are no more results."
|
|
1901
1680
|
),
|
|
1902
|
-
startAt: zod.number().min(
|
|
1681
|
+
startAt: zod.number().min(listTestExecutions200ResponseOneStartAtMin).describe(
|
|
1903
1682
|
"Indicates the index of the first item returned in the page of results."
|
|
1904
1683
|
),
|
|
1905
1684
|
maxResults: zod.number().min(1).describe(
|
|
1906
1685
|
"Indicates the maximum number of results in this response. Note that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints."
|
|
1907
1686
|
),
|
|
1908
|
-
total: zod.number().min(
|
|
1687
|
+
total: zod.number().min(listTestExecutions200ResponseOneTotalMin).optional().describe(
|
|
1909
1688
|
"Indicates the total number of items available across all pages."
|
|
1910
1689
|
),
|
|
1911
|
-
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results.")
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
zod.
|
|
1690
|
+
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results."),
|
|
1691
|
+
values: zod.array(
|
|
1692
|
+
zod.object({
|
|
1693
|
+
id: zod.number().min(1),
|
|
1694
|
+
key: zod.string().regex(listTestExecutions200ResponseTwoValuesItemKeyRegExp).optional().describe("Test execution key"),
|
|
1695
|
+
project: zod.object({
|
|
1916
1696
|
id: zod.number().min(1),
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
)
|
|
1925
|
-
})
|
|
1926
|
-
).describe("ID and link relative to Zephyr project."),
|
|
1927
|
-
testCase: zod.object({
|
|
1928
|
-
self: zod.string().url().optional().describe(
|
|
1929
|
-
"The REST API endpoint to get more resource details."
|
|
1930
|
-
)
|
|
1931
|
-
}).and(
|
|
1932
|
-
zod.object({
|
|
1933
|
-
id: zod.number().min(1).optional()
|
|
1934
|
-
})
|
|
1935
|
-
),
|
|
1936
|
-
environment: zod.object({
|
|
1937
|
-
id: zod.number().min(1)
|
|
1938
|
-
}).describe("The ID of the resource").and(
|
|
1939
|
-
zod.object({
|
|
1940
|
-
self: zod.string().url().optional().describe(
|
|
1941
|
-
"The REST API endpoint to get more resource details."
|
|
1942
|
-
)
|
|
1943
|
-
})
|
|
1944
|
-
).nullish(),
|
|
1945
|
-
jiraProjectVersion: zod.object({
|
|
1946
|
-
id: zod.number().min(1)
|
|
1947
|
-
}).describe("The ID of the resource").and(
|
|
1948
|
-
zod.object({
|
|
1949
|
-
self: zod.string().url().optional().describe(
|
|
1950
|
-
"The REST API endpoint to get more resource details."
|
|
1951
|
-
)
|
|
1952
|
-
})
|
|
1953
|
-
).nullish().describe(
|
|
1954
|
-
"ID and Link to fetch information about Jira Project version. Relates to 'Version' or 'Releases' in Jira projects."
|
|
1955
|
-
),
|
|
1956
|
-
testExecutionStatus: zod.object({
|
|
1957
|
-
id: zod.number().min(1)
|
|
1958
|
-
}).describe("The ID of the resource").and(
|
|
1959
|
-
zod.object({
|
|
1960
|
-
self: zod.string().url().optional().describe(
|
|
1961
|
-
"The REST API endpoint to get more resource details."
|
|
1962
|
-
)
|
|
1963
|
-
})
|
|
1964
|
-
),
|
|
1965
|
-
actualEndDate: zod.string().datetime({}).optional().describe(
|
|
1966
|
-
"The actual end date of the test cycle. Format: yyyy-MM-dd'T'HH:mm:ss'Z'"
|
|
1697
|
+
self: zod.string().url().optional().describe(
|
|
1698
|
+
"The REST API endpoint to get more resource details."
|
|
1699
|
+
)
|
|
1700
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
1701
|
+
testCase: zod.object({
|
|
1702
|
+
self: zod.string().url().optional().describe(
|
|
1703
|
+
"The REST API endpoint to get more resource details."
|
|
1967
1704
|
),
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1705
|
+
id: zod.number().min(1).optional()
|
|
1706
|
+
}).strict(),
|
|
1707
|
+
environment: zod.object({
|
|
1708
|
+
id: zod.number().min(1),
|
|
1709
|
+
self: zod.string().url().optional().describe(
|
|
1710
|
+
"The REST API endpoint to get more resource details."
|
|
1711
|
+
)
|
|
1712
|
+
}).strict().nullish(),
|
|
1713
|
+
jiraProjectVersion: zod.object({
|
|
1714
|
+
id: zod.number().min(1),
|
|
1715
|
+
self: zod.string().url().optional().describe(
|
|
1716
|
+
"The REST API endpoint to get more resource details."
|
|
1717
|
+
)
|
|
1718
|
+
}).strict().nullish().describe(
|
|
1719
|
+
"ID and Link to fetch information about Jira Project version. Relates to 'Version' or 'Releases' in Jira projects."
|
|
1720
|
+
),
|
|
1721
|
+
testExecutionStatus: zod.object({
|
|
1722
|
+
id: zod.number().min(1),
|
|
1723
|
+
self: zod.string().url().optional().describe(
|
|
1724
|
+
"The REST API endpoint to get more resource details."
|
|
1725
|
+
)
|
|
1726
|
+
}).strict(),
|
|
1727
|
+
actualEndDate: zod.string().datetime({}).optional().describe(
|
|
1728
|
+
"The actual end date of the test cycle. Format: yyyy-MM-dd'T'HH:mm:ss'Z'"
|
|
1729
|
+
),
|
|
1730
|
+
estimatedTime: zod.number().min(listTestExecutions200ResponseTwoValuesItemEstimatedTimeMin).nullish().describe("Estimated duration in milliseconds."),
|
|
1731
|
+
executionTime: zod.number().min(listTestExecutions200ResponseTwoValuesItemExecutionTimeMin).nullish().describe("Actual test execution time in milliseconds."),
|
|
1732
|
+
executedById: zod.string().regex(
|
|
1733
|
+
listTestExecutions200ResponseTwoValuesItemExecutedByIdRegExp
|
|
1734
|
+
).nullish().describe("Atlassian Account ID of the Jira user."),
|
|
1735
|
+
assignedToId: zod.string().regex(
|
|
1736
|
+
listTestExecutions200ResponseTwoValuesItemAssignedToIdRegExp
|
|
1737
|
+
).nullish().describe("Atlassian Account ID of the Jira user."),
|
|
1738
|
+
comment: zod.string().nullish().describe("Comment added against overall test case execution."),
|
|
1739
|
+
automated: zod.boolean().optional().describe(
|
|
1740
|
+
"Indicates if the test execution was done manually or not."
|
|
1741
|
+
),
|
|
1742
|
+
testCycle: zod.object({
|
|
1743
|
+
self: zod.string().url().optional().describe(
|
|
1744
|
+
"The REST API endpoint to get more resource details."
|
|
1975
1745
|
),
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
).nullish(),
|
|
1985
|
-
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
1986
|
-
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
1746
|
+
id: zod.number().min(1).optional()
|
|
1747
|
+
}).strict().nullish(),
|
|
1748
|
+
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
1749
|
+
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
1750
|
+
),
|
|
1751
|
+
links: zod.object({
|
|
1752
|
+
self: zod.string().url().optional().describe(
|
|
1753
|
+
"The REST API endpoint to get more resource details."
|
|
1987
1754
|
),
|
|
1988
|
-
|
|
1989
|
-
self: zod.string().url().optional().describe(
|
|
1990
|
-
"The REST API endpoint to get more resource details."
|
|
1991
|
-
)
|
|
1992
|
-
}).and(
|
|
1755
|
+
issues: zod.array(
|
|
1993
1756
|
zod.object({
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
).optional().describe("A list of Jira issues linked to this entity")
|
|
2012
|
-
})
|
|
2013
|
-
).optional()
|
|
2014
|
-
})
|
|
2015
|
-
).optional()
|
|
2016
|
-
})
|
|
2017
|
-
);
|
|
1757
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
1758
|
+
self: zod.string().url().optional().describe(
|
|
1759
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1760
|
+
),
|
|
1761
|
+
id: zod.number().min(1).optional().describe(
|
|
1762
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
1763
|
+
),
|
|
1764
|
+
target: zod.string().url().optional().describe(
|
|
1765
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
1766
|
+
),
|
|
1767
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1768
|
+
}).strict()
|
|
1769
|
+
).optional().describe("A list of Jira issues linked to this entity")
|
|
1770
|
+
}).strict().optional()
|
|
1771
|
+
}).strict()
|
|
1772
|
+
).optional()
|
|
1773
|
+
}).strict();
|
|
2018
1774
|
zod.object({
|
|
2019
1775
|
errorCode: zod.number(),
|
|
2020
1776
|
message: zod.string()
|
|
2021
|
-
});
|
|
1777
|
+
}).strict();
|
|
2022
1778
|
const createTestExecutionBodyProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
2023
1779
|
const createTestExecutionBodyTestCaseKeyRegExp = /(.+-T[0-9]+)/;
|
|
2024
1780
|
const createTestExecutionBodyTestCycleKeyRegExp = /([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
@@ -2027,7 +1783,7 @@ const createTestExecutionBodyTestScriptResultsItemStatusNameMax = 255;
|
|
|
2027
1783
|
const createTestExecutionBodyExecutionTimeMin = 0;
|
|
2028
1784
|
const createTestExecutionBodyExecutedByIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
2029
1785
|
const createTestExecutionBodyAssignedToIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
2030
|
-
const
|
|
1786
|
+
const CreateTestExecutionBody = zod.object({
|
|
2031
1787
|
projectKey: zod.string().regex(createTestExecutionBodyProjectKeyRegExp).describe("Jira project key."),
|
|
2032
1788
|
testCaseKey: zod.string().regex(createTestExecutionBodyTestCaseKeyRegExp).describe(
|
|
2033
1789
|
"Key of test case the execution applies to. NOTE: Test cases with call to test, parameters and test data are not supported."
|
|
@@ -2057,21 +1813,24 @@ const createTestExecutionBody = zod.object({
|
|
|
2057
1813
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
2058
1814
|
)
|
|
2059
1815
|
});
|
|
2060
|
-
const
|
|
1816
|
+
const CreateTestExecution201Response = zod.object({
|
|
2061
1817
|
id: zod.number().min(1).optional(),
|
|
2062
1818
|
self: zod.string().optional()
|
|
2063
|
-
});
|
|
1819
|
+
}).strict();
|
|
2064
1820
|
zod.object({
|
|
2065
1821
|
errorCode: zod.number(),
|
|
2066
1822
|
message: zod.string()
|
|
2067
|
-
});
|
|
1823
|
+
}).strict();
|
|
2068
1824
|
const listTestExecutionsNextgenQueryProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
2069
1825
|
const listTestExecutionsNextgenQueryTestCycleRegExp = /([A-Z][A-Z_0-9]+-R[0-9]+)/;
|
|
2070
1826
|
const listTestExecutionsNextgenQueryTestCaseRegExp = /([0-9]+)|(.+-T[0-9]+)/;
|
|
1827
|
+
const listTestExecutionsNextgenQueryIncludeStepLinksDefault = false;
|
|
1828
|
+
const listTestExecutionsNextgenQueryOnlyLastExecutionsDefault = false;
|
|
2071
1829
|
const listTestExecutionsNextgenQueryLimitDefault = 10;
|
|
2072
1830
|
const listTestExecutionsNextgenQueryLimitMax = 1e3;
|
|
1831
|
+
const listTestExecutionsNextgenQueryStartAtIdDefault = 0;
|
|
2073
1832
|
const listTestExecutionsNextgenQueryStartAtIdMin = 0;
|
|
2074
|
-
const
|
|
1833
|
+
const ListTestExecutionsNextgenQueryParams = zod.object({
|
|
2075
1834
|
projectKey: zod.string().regex(listTestExecutionsNextgenQueryProjectKeyRegExp).optional().describe("Jira project key filter"),
|
|
2076
1835
|
testCycle: zod.string().regex(listTestExecutionsNextgenQueryTestCycleRegExp).optional().describe("Test cycle key filter."),
|
|
2077
1836
|
testCase: zod.string().regex(listTestExecutionsNextgenQueryTestCaseRegExp).optional().describe("Test case key filter."),
|
|
@@ -2081,157 +1840,131 @@ const listTestExecutionsNextgenQueryParams = zod.object({
|
|
|
2081
1840
|
actualEndDateBefore: zod.string().datetime({}).optional().describe(
|
|
2082
1841
|
"Filter for 'Actual End Date' before the given time. Format: yyyy-MM-dd'T'HH:mm:ss'Z'"
|
|
2083
1842
|
),
|
|
2084
|
-
includeStepLinks: zod.boolean().
|
|
1843
|
+
includeStepLinks: zod.boolean().default(listTestExecutionsNextgenQueryIncludeStepLinksDefault).describe(
|
|
2085
1844
|
"If true, execution step issue links will be included in the response"
|
|
2086
1845
|
),
|
|
2087
1846
|
jiraProjectVersionId: zod.number().min(1).optional().describe(
|
|
2088
1847
|
"Jira Project Version ID. Relates to 'Version' or 'Releases' in Jira projects."
|
|
2089
1848
|
),
|
|
2090
|
-
onlyLastExecutions: zod.boolean().
|
|
1849
|
+
onlyLastExecutions: zod.boolean().default(listTestExecutionsNextgenQueryOnlyLastExecutionsDefault).describe(
|
|
2091
1850
|
"If true, includes only the last execution of each test cycle item (test case), and all ad-hoc test executions."
|
|
2092
1851
|
),
|
|
2093
1852
|
limit: zod.number().min(1).max(listTestExecutionsNextgenQueryLimitMax).default(listTestExecutionsNextgenQueryLimitDefault).describe(
|
|
2094
1853
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the limit value in the response to confirm how many results were actually returned.\n"
|
|
2095
1854
|
),
|
|
2096
|
-
startAtId: zod.number().min(listTestExecutionsNextgenQueryStartAtIdMin).
|
|
1855
|
+
startAtId: zod.number().min(listTestExecutionsNextgenQueryStartAtIdMin).default(listTestExecutionsNextgenQueryStartAtIdDefault).describe("Zero-indexed starting position for ID-based pagination.")
|
|
2097
1856
|
});
|
|
2098
|
-
const
|
|
2099
|
-
const
|
|
2100
|
-
const
|
|
2101
|
-
const
|
|
2102
|
-
const
|
|
2103
|
-
const
|
|
2104
|
-
const
|
|
2105
|
-
const
|
|
1857
|
+
const listTestExecutionsNextgen200ResponseOneNextStartAtIdMin = 0;
|
|
1858
|
+
const listTestExecutionsNextgen200ResponseOneLimitMin = 0;
|
|
1859
|
+
const listTestExecutionsNextgen200ResponseTwoValuesItemKeyRegExp = /.+-E[0-9]+/;
|
|
1860
|
+
const listTestExecutionsNextgen200ResponseTwoValuesItemEstimatedTimeMin = 0;
|
|
1861
|
+
const listTestExecutionsNextgen200ResponseTwoValuesItemExecutionTimeMin = 0;
|
|
1862
|
+
const listTestExecutionsNextgen200ResponseTwoValuesItemExecutedByIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
1863
|
+
const listTestExecutionsNextgen200ResponseTwoValuesItemAssignedToIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
1864
|
+
const ListTestExecutionsNextgen200Response = zod.object({
|
|
2106
1865
|
next: zod.string().url().nullish(),
|
|
2107
|
-
nextStartAtId: zod.number().min(
|
|
2108
|
-
limit: zod.number().min(
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
zod.
|
|
1866
|
+
nextStartAtId: zod.number().min(listTestExecutionsNextgen200ResponseOneNextStartAtIdMin).nullable(),
|
|
1867
|
+
limit: zod.number().min(listTestExecutionsNextgen200ResponseOneLimitMin),
|
|
1868
|
+
values: zod.array(
|
|
1869
|
+
zod.object({
|
|
1870
|
+
id: zod.number().min(1),
|
|
1871
|
+
key: zod.string().regex(listTestExecutionsNextgen200ResponseTwoValuesItemKeyRegExp).optional().describe("Test execution key"),
|
|
1872
|
+
project: zod.object({
|
|
2113
1873
|
id: zod.number().min(1),
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
)
|
|
2122
|
-
})
|
|
2123
|
-
).describe("ID and link relative to Zephyr project."),
|
|
2124
|
-
testCase: zod.object({
|
|
2125
|
-
self: zod.string().url().optional().describe(
|
|
2126
|
-
"The REST API endpoint to get more resource details."
|
|
2127
|
-
)
|
|
2128
|
-
}).and(
|
|
2129
|
-
zod.object({
|
|
2130
|
-
id: zod.number().min(1).optional()
|
|
2131
|
-
})
|
|
2132
|
-
),
|
|
2133
|
-
environment: zod.object({
|
|
2134
|
-
id: zod.number().min(1)
|
|
2135
|
-
}).describe("The ID of the resource").and(
|
|
2136
|
-
zod.object({
|
|
2137
|
-
self: zod.string().url().optional().describe(
|
|
2138
|
-
"The REST API endpoint to get more resource details."
|
|
2139
|
-
)
|
|
2140
|
-
})
|
|
2141
|
-
).nullish(),
|
|
2142
|
-
jiraProjectVersion: zod.object({
|
|
2143
|
-
id: zod.number().min(1)
|
|
2144
|
-
}).describe("The ID of the resource").and(
|
|
2145
|
-
zod.object({
|
|
2146
|
-
self: zod.string().url().optional().describe(
|
|
2147
|
-
"The REST API endpoint to get more resource details."
|
|
2148
|
-
)
|
|
2149
|
-
})
|
|
2150
|
-
).nullish().describe(
|
|
2151
|
-
"ID and Link to fetch information about Jira Project version. Relates to 'Version' or 'Releases' in Jira projects."
|
|
2152
|
-
),
|
|
2153
|
-
testExecutionStatus: zod.object({
|
|
2154
|
-
id: zod.number().min(1)
|
|
2155
|
-
}).describe("The ID of the resource").and(
|
|
2156
|
-
zod.object({
|
|
2157
|
-
self: zod.string().url().optional().describe(
|
|
2158
|
-
"The REST API endpoint to get more resource details."
|
|
2159
|
-
)
|
|
2160
|
-
})
|
|
2161
|
-
),
|
|
2162
|
-
actualEndDate: zod.string().datetime({}).optional().describe(
|
|
2163
|
-
"The actual end date of the test cycle. Format: yyyy-MM-dd'T'HH:mm:ss'Z'"
|
|
1874
|
+
self: zod.string().url().optional().describe(
|
|
1875
|
+
"The REST API endpoint to get more resource details."
|
|
1876
|
+
)
|
|
1877
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
1878
|
+
testCase: zod.object({
|
|
1879
|
+
self: zod.string().url().optional().describe(
|
|
1880
|
+
"The REST API endpoint to get more resource details."
|
|
2164
1881
|
),
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
1882
|
+
id: zod.number().min(1).optional()
|
|
1883
|
+
}).strict(),
|
|
1884
|
+
environment: zod.object({
|
|
1885
|
+
id: zod.number().min(1),
|
|
1886
|
+
self: zod.string().url().optional().describe(
|
|
1887
|
+
"The REST API endpoint to get more resource details."
|
|
1888
|
+
)
|
|
1889
|
+
}).strict().nullish(),
|
|
1890
|
+
jiraProjectVersion: zod.object({
|
|
1891
|
+
id: zod.number().min(1),
|
|
1892
|
+
self: zod.string().url().optional().describe(
|
|
1893
|
+
"The REST API endpoint to get more resource details."
|
|
1894
|
+
)
|
|
1895
|
+
}).strict().nullish().describe(
|
|
1896
|
+
"ID and Link to fetch information about Jira Project version. Relates to 'Version' or 'Releases' in Jira projects."
|
|
1897
|
+
),
|
|
1898
|
+
testExecutionStatus: zod.object({
|
|
1899
|
+
id: zod.number().min(1),
|
|
1900
|
+
self: zod.string().url().optional().describe(
|
|
1901
|
+
"The REST API endpoint to get more resource details."
|
|
1902
|
+
)
|
|
1903
|
+
}).strict(),
|
|
1904
|
+
actualEndDate: zod.string().datetime({}).optional().describe(
|
|
1905
|
+
"The actual end date of the test cycle. Format: yyyy-MM-dd'T'HH:mm:ss'Z'"
|
|
1906
|
+
),
|
|
1907
|
+
estimatedTime: zod.number().min(
|
|
1908
|
+
listTestExecutionsNextgen200ResponseTwoValuesItemEstimatedTimeMin
|
|
1909
|
+
).nullish().describe("Estimated duration in milliseconds."),
|
|
1910
|
+
executionTime: zod.number().min(
|
|
1911
|
+
listTestExecutionsNextgen200ResponseTwoValuesItemExecutionTimeMin
|
|
1912
|
+
).nullish().describe("Actual test execution time in milliseconds."),
|
|
1913
|
+
executedById: zod.string().regex(
|
|
1914
|
+
listTestExecutionsNextgen200ResponseTwoValuesItemExecutedByIdRegExp
|
|
1915
|
+
).nullish().describe("Atlassian Account ID of the Jira user."),
|
|
1916
|
+
assignedToId: zod.string().regex(
|
|
1917
|
+
listTestExecutionsNextgen200ResponseTwoValuesItemAssignedToIdRegExp
|
|
1918
|
+
).nullish().describe("Atlassian Account ID of the Jira user."),
|
|
1919
|
+
comment: zod.string().nullish().describe("Comment added against overall test case execution."),
|
|
1920
|
+
automated: zod.boolean().optional().describe(
|
|
1921
|
+
"Indicates if the test execution was done manually or not."
|
|
1922
|
+
),
|
|
1923
|
+
testCycle: zod.object({
|
|
1924
|
+
self: zod.string().url().optional().describe(
|
|
1925
|
+
"The REST API endpoint to get more resource details."
|
|
2180
1926
|
),
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
).nullish(),
|
|
2190
|
-
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
2191
|
-
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
1927
|
+
id: zod.number().min(1).optional()
|
|
1928
|
+
}).strict().nullish(),
|
|
1929
|
+
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
1930
|
+
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
1931
|
+
),
|
|
1932
|
+
links: zod.object({
|
|
1933
|
+
self: zod.string().url().optional().describe(
|
|
1934
|
+
"The REST API endpoint to get more resource details."
|
|
2192
1935
|
),
|
|
2193
|
-
|
|
2194
|
-
self: zod.string().url().optional().describe(
|
|
2195
|
-
"The REST API endpoint to get more resource details."
|
|
2196
|
-
)
|
|
2197
|
-
}).and(
|
|
1936
|
+
issues: zod.array(
|
|
2198
1937
|
zod.object({
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
).optional().describe("A list of Jira issues linked to this entity")
|
|
2217
|
-
})
|
|
2218
|
-
).optional()
|
|
2219
|
-
})
|
|
2220
|
-
).optional()
|
|
2221
|
-
})
|
|
2222
|
-
);
|
|
1938
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
1939
|
+
self: zod.string().url().optional().describe(
|
|
1940
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
1941
|
+
),
|
|
1942
|
+
id: zod.number().min(1).optional().describe(
|
|
1943
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
1944
|
+
),
|
|
1945
|
+
target: zod.string().url().optional().describe(
|
|
1946
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
1947
|
+
),
|
|
1948
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
1949
|
+
}).strict()
|
|
1950
|
+
).optional().describe("A list of Jira issues linked to this entity")
|
|
1951
|
+
}).strict().optional()
|
|
1952
|
+
}).strict()
|
|
1953
|
+
).optional()
|
|
1954
|
+
}).strict();
|
|
2223
1955
|
zod.object({
|
|
2224
1956
|
errorCode: zod.number(),
|
|
2225
1957
|
message: zod.string()
|
|
2226
|
-
});
|
|
1958
|
+
}).strict();
|
|
2227
1959
|
const getTestExecutionPathTestExecutionIdOrKeyRegExp = /([0-9]+)|(.+-E[0-9]+)/;
|
|
2228
|
-
const
|
|
1960
|
+
const GetTestExecutionParams = zod.object({
|
|
2229
1961
|
testExecutionIdOrKey: zod.string().regex(getTestExecutionPathTestExecutionIdOrKeyRegExp).describe(
|
|
2230
1962
|
"The ID or key of the test execution. Test execution keys are of the format [A-Z]+-E[0-9]+"
|
|
2231
1963
|
)
|
|
2232
1964
|
});
|
|
1965
|
+
const getTestExecutionQueryIncludeStepLinksDefault = false;
|
|
2233
1966
|
zod.object({
|
|
2234
|
-
includeStepLinks: zod.boolean().
|
|
1967
|
+
includeStepLinks: zod.boolean().default(getTestExecutionQueryIncludeStepLinksDefault).describe(
|
|
2235
1968
|
"If true, execution step issue links will be included in the response"
|
|
2236
1969
|
)
|
|
2237
1970
|
});
|
|
@@ -2240,46 +1973,31 @@ const getTestExecution200ResponseEstimatedTimeMin = 0;
|
|
|
2240
1973
|
const getTestExecution200ResponseExecutionTimeMin = 0;
|
|
2241
1974
|
const getTestExecution200ResponseExecutedByIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
2242
1975
|
const getTestExecution200ResponseAssignedToIdRegExp = /^[-:a-zA-Z0-9]{1,128}$/;
|
|
2243
|
-
const
|
|
1976
|
+
const GetTestExecution200Response = zod.object({
|
|
2244
1977
|
id: zod.number().min(1),
|
|
2245
1978
|
key: zod.string().regex(getTestExecution200ResponseKeyRegExp).optional().describe("Test execution key"),
|
|
2246
1979
|
project: zod.object({
|
|
2247
|
-
id: zod.number().min(1)
|
|
2248
|
-
}).describe("The ID of the resource").and(
|
|
2249
|
-
zod.object({
|
|
2250
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2251
|
-
})
|
|
2252
|
-
).describe("ID and link relative to Zephyr project."),
|
|
2253
|
-
testCase: zod.object({
|
|
1980
|
+
id: zod.number().min(1),
|
|
2254
1981
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2255
|
-
}).and
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
),
|
|
1982
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
1983
|
+
testCase: zod.object({
|
|
1984
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
1985
|
+
id: zod.number().min(1).optional()
|
|
1986
|
+
}).strict(),
|
|
2260
1987
|
environment: zod.object({
|
|
2261
|
-
id: zod.number().min(1)
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2265
|
-
})
|
|
2266
|
-
).nullish(),
|
|
1988
|
+
id: zod.number().min(1),
|
|
1989
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1990
|
+
}).strict().nullish(),
|
|
2267
1991
|
jiraProjectVersion: zod.object({
|
|
2268
|
-
id: zod.number().min(1)
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2272
|
-
})
|
|
2273
|
-
).nullish().describe(
|
|
1992
|
+
id: zod.number().min(1),
|
|
1993
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
1994
|
+
}).strict().nullish().describe(
|
|
2274
1995
|
"ID and Link to fetch information about Jira Project version. Relates to 'Version' or 'Releases' in Jira projects."
|
|
2275
1996
|
),
|
|
2276
1997
|
testExecutionStatus: zod.object({
|
|
2277
|
-
id: zod.number().min(1)
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2281
|
-
})
|
|
2282
|
-
),
|
|
1998
|
+
id: zod.number().min(1),
|
|
1999
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2000
|
+
}).strict(),
|
|
2283
2001
|
actualEndDate: zod.string().datetime({}).optional().describe(
|
|
2284
2002
|
"The actual end date of the test cycle. Format: yyyy-MM-dd'T'HH:mm:ss'Z'"
|
|
2285
2003
|
),
|
|
@@ -2287,47 +2005,38 @@ const getTestExecution200Response = zod.object({
|
|
|
2287
2005
|
executionTime: zod.number().min(getTestExecution200ResponseExecutionTimeMin).nullish().describe("Actual test execution time in milliseconds."),
|
|
2288
2006
|
executedById: zod.string().regex(getTestExecution200ResponseExecutedByIdRegExp).nullish().describe("Atlassian Account ID of the Jira user."),
|
|
2289
2007
|
assignedToId: zod.string().regex(getTestExecution200ResponseAssignedToIdRegExp).nullish().describe("Atlassian Account ID of the Jira user."),
|
|
2290
|
-
comment: zod.string().nullish().describe("Comment added against overall test case execution."),
|
|
2291
|
-
automated: zod.boolean().optional().describe("Indicates if the test execution was done manually or not."),
|
|
2292
|
-
testCycle: zod.object({
|
|
2293
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
id: zod.number().min(1).optional()
|
|
2297
|
-
})
|
|
2298
|
-
).nullish(),
|
|
2008
|
+
comment: zod.string().nullish().describe("Comment added against overall test case execution."),
|
|
2009
|
+
automated: zod.boolean().optional().describe("Indicates if the test execution was done manually or not."),
|
|
2010
|
+
testCycle: zod.object({
|
|
2011
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
2012
|
+
id: zod.number().min(1).optional()
|
|
2013
|
+
}).strict().nullish(),
|
|
2299
2014
|
customFields: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
2300
2015
|
"Multi-line text fields support HTML and should denote new lines with the \\<br\\> tag.\nDates should be in the format 'yyyy-MM-dd'.\nUsers should have values of Jira User Account IDs.\n"
|
|
2301
2016
|
),
|
|
2302
2017
|
links: zod.object({
|
|
2303
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
zod.
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
})
|
|
2322
|
-
)
|
|
2323
|
-
).optional().describe("A list of Jira issues linked to this entity")
|
|
2324
|
-
})
|
|
2325
|
-
).optional()
|
|
2326
|
-
});
|
|
2018
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
2019
|
+
issues: zod.array(
|
|
2020
|
+
zod.object({
|
|
2021
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
2022
|
+
self: zod.string().url().optional().describe(
|
|
2023
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
2024
|
+
),
|
|
2025
|
+
id: zod.number().min(1).optional().describe(
|
|
2026
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
2027
|
+
),
|
|
2028
|
+
target: zod.string().url().optional().describe(
|
|
2029
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
2030
|
+
),
|
|
2031
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
2032
|
+
}).strict()
|
|
2033
|
+
).optional().describe("A list of Jira issues linked to this entity")
|
|
2034
|
+
}).strict().optional()
|
|
2035
|
+
}).strict();
|
|
2327
2036
|
zod.object({
|
|
2328
2037
|
errorCode: zod.number(),
|
|
2329
2038
|
message: zod.string()
|
|
2330
|
-
});
|
|
2039
|
+
}).strict();
|
|
2331
2040
|
const updateTestExecutionPathTestExecutionIdOrKeyRegExp = /([0-9]+)|(.+-E[0-9]+)/;
|
|
2332
2041
|
zod.object({
|
|
2333
2042
|
testExecutionIdOrKey: zod.string().regex(updateTestExecutionPathTestExecutionIdOrKeyRegExp).describe(
|
|
@@ -2352,7 +2061,7 @@ zod.object({
|
|
|
2352
2061
|
zod.object({
|
|
2353
2062
|
errorCode: zod.number(),
|
|
2354
2063
|
message: zod.string()
|
|
2355
|
-
});
|
|
2064
|
+
}).strict();
|
|
2356
2065
|
const getTestExecutionTestStepsPathTestExecutionIdOrKeyRegExp = /([0-9]+)|(.+-E[0-9]+)/;
|
|
2357
2066
|
zod.object({
|
|
2358
2067
|
testExecutionIdOrKey: zod.string().regex(getTestExecutionTestStepsPathTestExecutionIdOrKeyRegExp).describe(
|
|
@@ -2360,6 +2069,7 @@ zod.object({
|
|
|
2360
2069
|
)
|
|
2361
2070
|
});
|
|
2362
2071
|
const getTestExecutionTestStepsQueryMaxResultsDefault = 10;
|
|
2072
|
+
const getTestExecutionTestStepsQueryStartAtDefault = 0;
|
|
2363
2073
|
const getTestExecutionTestStepsQueryStartAtMin = 0;
|
|
2364
2074
|
const getTestExecutionTestStepsQueryStartAtMax = 1e6;
|
|
2365
2075
|
const getTestExecutionTestStepsQueryTestDataRowNumberMin = 0;
|
|
@@ -2367,58 +2077,50 @@ zod.object({
|
|
|
2367
2077
|
maxResults: zod.number().min(1).default(getTestExecutionTestStepsQueryMaxResultsDefault).describe(
|
|
2368
2078
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the maxResults value in the response to confirm how many results were actually returned.\n"
|
|
2369
2079
|
),
|
|
2370
|
-
startAt: zod.number().min(getTestExecutionTestStepsQueryStartAtMin).max(getTestExecutionTestStepsQueryStartAtMax).
|
|
2080
|
+
startAt: zod.number().min(getTestExecutionTestStepsQueryStartAtMin).max(getTestExecutionTestStepsQueryStartAtMax).default(getTestExecutionTestStepsQueryStartAtDefault).describe(
|
|
2371
2081
|
"Zero-indexed starting position. Should be a multiple of maxResults."
|
|
2372
2082
|
),
|
|
2373
2083
|
testDataRowNumber: zod.number().min(getTestExecutionTestStepsQueryTestDataRowNumberMin).optional().describe("The id of the test data row to retrieve.")
|
|
2374
2084
|
});
|
|
2375
|
-
const
|
|
2376
|
-
const
|
|
2085
|
+
const getTestExecutionTestSteps200ResponseOneStartAtMin = 0;
|
|
2086
|
+
const getTestExecutionTestSteps200ResponseOneTotalMin = 0;
|
|
2377
2087
|
zod.object({
|
|
2378
2088
|
next: zod.string().url().nullish().describe(
|
|
2379
2089
|
"URL to the next page of results, or null if there are no more results."
|
|
2380
2090
|
),
|
|
2381
|
-
startAt: zod.number().min(
|
|
2091
|
+
startAt: zod.number().min(getTestExecutionTestSteps200ResponseOneStartAtMin).describe(
|
|
2382
2092
|
"Indicates the index of the first item returned in the page of results."
|
|
2383
2093
|
),
|
|
2384
2094
|
maxResults: zod.number().min(1).describe(
|
|
2385
2095
|
"Indicates the maximum number of results in this response. Note that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints."
|
|
2386
2096
|
),
|
|
2387
|
-
total: zod.number().min(
|
|
2097
|
+
total: zod.number().min(getTestExecutionTestSteps200ResponseOneTotalMin).optional().describe(
|
|
2388
2098
|
"Indicates the total number of items available across all pages."
|
|
2389
2099
|
),
|
|
2390
|
-
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results.")
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
),
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
)
|
|
2415
|
-
})
|
|
2416
|
-
).optional()
|
|
2417
|
-
}).optional()
|
|
2418
|
-
}).describe("Inline test step")
|
|
2419
|
-
).optional().describe("The list of test steps")
|
|
2420
|
-
})
|
|
2421
|
-
).describe("Response body when retrieving test steps for a test execution");
|
|
2100
|
+
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results."),
|
|
2101
|
+
values: zod.array(
|
|
2102
|
+
zod.object({
|
|
2103
|
+
inline: zod.object({
|
|
2104
|
+
description: zod.string().optional().describe("The instruction to be followed"),
|
|
2105
|
+
testData: zod.string().optional().describe(
|
|
2106
|
+
"Any test data required to perform the instruction (optional). The fields values provided can be interpolated into the description."
|
|
2107
|
+
),
|
|
2108
|
+
expectedResult: zod.string().optional().describe(
|
|
2109
|
+
"The expected outcome of executing the instruction"
|
|
2110
|
+
),
|
|
2111
|
+
actualResult: zod.string().optional().describe("The actual outcome of executing the instruction"),
|
|
2112
|
+
testDataRowNumber: zod.number().optional().describe("The id of the test data row"),
|
|
2113
|
+
reflectRef: zod.string().optional().describe("The AI reference. Zephyr only feature"),
|
|
2114
|
+
status: zod.object({
|
|
2115
|
+
id: zod.number().min(1),
|
|
2116
|
+
self: zod.string().url().optional().describe(
|
|
2117
|
+
"The REST API endpoint to get more resource details."
|
|
2118
|
+
)
|
|
2119
|
+
}).strict().optional()
|
|
2120
|
+
}).strict().optional()
|
|
2121
|
+
}).strict().describe("Inline test step")
|
|
2122
|
+
).optional().describe("The list of test steps")
|
|
2123
|
+
}).strict().describe("Response body when retrieving test steps for a test execution");
|
|
2422
2124
|
const putTestExecutionTestStepsPathTestExecutionIdOrKeyRegExp = /([0-9]+)|(.+-E[0-9]+)/;
|
|
2423
2125
|
zod.object({
|
|
2424
2126
|
testExecutionIdOrKey: zod.string().regex(putTestExecutionTestStepsPathTestExecutionIdOrKeyRegExp).describe(
|
|
@@ -2437,25 +2139,25 @@ zod.object({
|
|
|
2437
2139
|
zod.object({
|
|
2438
2140
|
errorCode: zod.number(),
|
|
2439
2141
|
message: zod.string()
|
|
2440
|
-
});
|
|
2142
|
+
}).strict();
|
|
2441
2143
|
zod.object({
|
|
2442
2144
|
errorCode: zod.number(),
|
|
2443
2145
|
message: zod.string()
|
|
2444
|
-
});
|
|
2146
|
+
}).strict();
|
|
2445
2147
|
zod.union([
|
|
2446
2148
|
zod.object({
|
|
2447
2149
|
errorCode: zod.number(),
|
|
2448
2150
|
message: zod.string()
|
|
2449
|
-
}),
|
|
2151
|
+
}).strict(),
|
|
2450
2152
|
zod.object({
|
|
2451
2153
|
errorCode: zod.number(),
|
|
2452
2154
|
message: zod.string()
|
|
2453
|
-
})
|
|
2155
|
+
}).strict()
|
|
2454
2156
|
]);
|
|
2455
2157
|
zod.object({
|
|
2456
2158
|
errorCode: zod.number(),
|
|
2457
2159
|
message: zod.string()
|
|
2458
|
-
});
|
|
2160
|
+
}).strict();
|
|
2459
2161
|
const syncTestExecutionScriptPathTestExecutionIdOrKeyRegExp = /([0-9]+)|(.+-E[0-9]+)/;
|
|
2460
2162
|
zod.object({
|
|
2461
2163
|
testExecutionIdOrKey: zod.string().regex(syncTestExecutionScriptPathTestExecutionIdOrKeyRegExp).describe(
|
|
@@ -2464,19 +2166,19 @@ zod.object({
|
|
|
2464
2166
|
});
|
|
2465
2167
|
zod.object({
|
|
2466
2168
|
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2467
|
-
});
|
|
2169
|
+
}).strict();
|
|
2468
2170
|
zod.object({
|
|
2469
2171
|
errorCode: zod.number(),
|
|
2470
2172
|
message: zod.string()
|
|
2471
|
-
});
|
|
2173
|
+
}).strict();
|
|
2472
2174
|
zod.object({
|
|
2473
2175
|
errorCode: zod.number(),
|
|
2474
2176
|
message: zod.string()
|
|
2475
|
-
});
|
|
2177
|
+
}).strict();
|
|
2476
2178
|
zod.object({
|
|
2477
2179
|
errorCode: zod.number(),
|
|
2478
2180
|
message: zod.string()
|
|
2479
|
-
});
|
|
2181
|
+
}).strict();
|
|
2480
2182
|
const listTestExecutionLinksPathTestExecutionIdOrKeyRegExp = /([0-9]+)|(.+-E[0-9]+)/;
|
|
2481
2183
|
zod.object({
|
|
2482
2184
|
testExecutionIdOrKey: zod.string().regex(listTestExecutionLinksPathTestExecutionIdOrKeyRegExp).describe(
|
|
@@ -2484,33 +2186,27 @@ zod.object({
|
|
|
2484
2186
|
)
|
|
2485
2187
|
});
|
|
2486
2188
|
zod.object({
|
|
2487
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
zod.
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
2505
|
-
})
|
|
2506
|
-
)
|
|
2507
|
-
).optional().describe("A list of Jira issues linked to this entity")
|
|
2508
|
-
})
|
|
2509
|
-
);
|
|
2189
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details."),
|
|
2190
|
+
issues: zod.array(
|
|
2191
|
+
zod.object({
|
|
2192
|
+
issueId: zod.number().min(1).describe("The Jira issue ID"),
|
|
2193
|
+
self: zod.string().url().optional().describe(
|
|
2194
|
+
"The Zephyr REST API endpoint relative to the link between the entity and the Jira issue."
|
|
2195
|
+
),
|
|
2196
|
+
id: zod.number().min(1).optional().describe(
|
|
2197
|
+
"The ID that represents the link between the entity and the Jira issue."
|
|
2198
|
+
),
|
|
2199
|
+
target: zod.string().url().optional().describe(
|
|
2200
|
+
"The Jira Cloud REST API endpoint to get the full representation of the issue"
|
|
2201
|
+
),
|
|
2202
|
+
type: zod.enum(["COVERAGE", "BLOCKS", "RELATED"]).optional().describe("The link type")
|
|
2203
|
+
}).strict()
|
|
2204
|
+
).optional().describe("A list of Jira issues linked to this entity")
|
|
2205
|
+
}).strict();
|
|
2510
2206
|
zod.object({
|
|
2511
2207
|
errorCode: zod.number(),
|
|
2512
2208
|
message: zod.string()
|
|
2513
|
-
});
|
|
2209
|
+
}).strict();
|
|
2514
2210
|
const createTestExecutionIssueLinkPathTestExecutionIdOrKeyRegExp = /([0-9]+)|(.+-E[0-9]+)/;
|
|
2515
2211
|
zod.object({
|
|
2516
2212
|
testExecutionIdOrKey: zod.string().regex(createTestExecutionIssueLinkPathTestExecutionIdOrKeyRegExp).describe(
|
|
@@ -2523,67 +2219,66 @@ zod.object({
|
|
|
2523
2219
|
zod.object({
|
|
2524
2220
|
errorCode: zod.number(),
|
|
2525
2221
|
message: zod.string()
|
|
2526
|
-
});
|
|
2222
|
+
}).strict();
|
|
2527
2223
|
const listProjectsQueryMaxResultsDefault = 10;
|
|
2224
|
+
const listProjectsQueryStartAtDefault = 0;
|
|
2528
2225
|
const listProjectsQueryStartAtMin = 0;
|
|
2529
2226
|
const listProjectsQueryStartAtMax = 1e6;
|
|
2530
|
-
const
|
|
2227
|
+
const ListProjectsQueryParams = zod.object({
|
|
2531
2228
|
maxResults: zod.number().min(1).default(listProjectsQueryMaxResultsDefault).describe(
|
|
2532
2229
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the maxResults value in the response to confirm how many results were actually returned.\n"
|
|
2533
2230
|
),
|
|
2534
|
-
startAt: zod.number().min(listProjectsQueryStartAtMin).max(listProjectsQueryStartAtMax).
|
|
2231
|
+
startAt: zod.number().min(listProjectsQueryStartAtMin).max(listProjectsQueryStartAtMax).default(listProjectsQueryStartAtDefault).describe(
|
|
2535
2232
|
"Zero-indexed starting position. Should be a multiple of maxResults."
|
|
2536
2233
|
)
|
|
2537
2234
|
});
|
|
2538
|
-
const
|
|
2539
|
-
const
|
|
2540
|
-
const
|
|
2235
|
+
const listProjects200ResponseOneStartAtMin = 0;
|
|
2236
|
+
const listProjects200ResponseOneTotalMin = 0;
|
|
2237
|
+
const ListProjects200Response = zod.object({
|
|
2541
2238
|
next: zod.string().url().nullish().describe(
|
|
2542
2239
|
"URL to the next page of results, or null if there are no more results."
|
|
2543
2240
|
),
|
|
2544
|
-
startAt: zod.number().min(
|
|
2241
|
+
startAt: zod.number().min(listProjects200ResponseOneStartAtMin).describe(
|
|
2545
2242
|
"Indicates the index of the first item returned in the page of results."
|
|
2546
2243
|
),
|
|
2547
2244
|
maxResults: zod.number().min(1).describe(
|
|
2548
2245
|
"Indicates the maximum number of results in this response. Note that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints."
|
|
2549
2246
|
),
|
|
2550
|
-
total: zod.number().min(
|
|
2247
|
+
total: zod.number().min(listProjects200ResponseOneTotalMin).optional().describe(
|
|
2551
2248
|
"Indicates the total number of items available across all pages."
|
|
2552
2249
|
),
|
|
2553
|
-
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results.")
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
zod.
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
).optional()
|
|
2566
|
-
})
|
|
2567
|
-
);
|
|
2250
|
+
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results."),
|
|
2251
|
+
values: zod.array(
|
|
2252
|
+
zod.object({
|
|
2253
|
+
id: zod.number().describe("The ID of the project in Zephyr."),
|
|
2254
|
+
jiraProjectId: zod.number().describe("The ID of the project in Jira."),
|
|
2255
|
+
key: zod.string(),
|
|
2256
|
+
enabled: zod.boolean().describe(
|
|
2257
|
+
"Indicates whether the project has Zephyr enabled on it."
|
|
2258
|
+
)
|
|
2259
|
+
}).strict()
|
|
2260
|
+
).optional()
|
|
2261
|
+
}).strict();
|
|
2568
2262
|
zod.object({
|
|
2569
2263
|
errorCode: zod.number(),
|
|
2570
2264
|
message: zod.string()
|
|
2571
|
-
});
|
|
2265
|
+
}).strict();
|
|
2572
2266
|
const getProjectPathProjectIdOrKeyRegExp = /([0-9]+)|([A-Z][A-Z_0-9]+)/;
|
|
2573
|
-
const
|
|
2267
|
+
const GetProjectParams = zod.object({
|
|
2574
2268
|
projectIdOrKey: zod.string().regex(getProjectPathProjectIdOrKeyRegExp).describe("The Zephyr project ID or Jira project key")
|
|
2575
2269
|
});
|
|
2576
|
-
const
|
|
2270
|
+
const GetProject200Response = zod.object({
|
|
2577
2271
|
id: zod.number().describe("The ID of the project in Zephyr."),
|
|
2578
2272
|
jiraProjectId: zod.number().describe("The ID of the project in Jira."),
|
|
2579
2273
|
key: zod.string(),
|
|
2580
2274
|
enabled: zod.boolean().describe("Indicates whether the project has Zephyr enabled on it.")
|
|
2581
|
-
});
|
|
2275
|
+
}).strict();
|
|
2582
2276
|
zod.object({
|
|
2583
2277
|
errorCode: zod.number(),
|
|
2584
2278
|
message: zod.string()
|
|
2585
|
-
});
|
|
2279
|
+
}).strict();
|
|
2586
2280
|
const listFoldersQueryMaxResultsDefault = 10;
|
|
2281
|
+
const listFoldersQueryStartAtDefault = 0;
|
|
2587
2282
|
const listFoldersQueryStartAtMin = 0;
|
|
2588
2283
|
const listFoldersQueryStartAtMax = 1e6;
|
|
2589
2284
|
const listFoldersQueryProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
@@ -2591,7 +2286,7 @@ zod.object({
|
|
|
2591
2286
|
maxResults: zod.number().min(1).default(listFoldersQueryMaxResultsDefault).describe(
|
|
2592
2287
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the maxResults value in the response to confirm how many results were actually returned.\n"
|
|
2593
2288
|
),
|
|
2594
|
-
startAt: zod.number().min(listFoldersQueryStartAtMin).max(listFoldersQueryStartAtMax).
|
|
2289
|
+
startAt: zod.number().min(listFoldersQueryStartAtMin).max(listFoldersQueryStartAtMax).default(listFoldersQueryStartAtDefault).describe(
|
|
2595
2290
|
"Zero-indexed starting position. Should be a multiple of maxResults."
|
|
2596
2291
|
),
|
|
2597
2292
|
projectKey: zod.string().regex(listFoldersQueryProjectKeyRegExp).optional().describe("Jira project key filter"),
|
|
@@ -2599,53 +2294,47 @@ zod.object({
|
|
|
2599
2294
|
'Folder type filter. Either `"TEST_CASE"`, `"TEST_PLAN"` or `"TEST_CYCLE"`'
|
|
2600
2295
|
)
|
|
2601
2296
|
});
|
|
2602
|
-
const
|
|
2603
|
-
const
|
|
2604
|
-
const
|
|
2605
|
-
const
|
|
2606
|
-
const
|
|
2297
|
+
const listFolders200ResponseOneStartAtMin = 0;
|
|
2298
|
+
const listFolders200ResponseOneTotalMin = 0;
|
|
2299
|
+
const listFolders200ResponseTwoValuesItemNameMax = 255;
|
|
2300
|
+
const listFolders200ResponseTwoValuesItemNameRegExp = /^(?!\\s*$).+/;
|
|
2301
|
+
const listFolders200ResponseTwoValuesItemIndexMin = 0;
|
|
2607
2302
|
zod.object({
|
|
2608
2303
|
next: zod.string().url().nullish().describe(
|
|
2609
2304
|
"URL to the next page of results, or null if there are no more results."
|
|
2610
2305
|
),
|
|
2611
|
-
startAt: zod.number().min(
|
|
2306
|
+
startAt: zod.number().min(listFolders200ResponseOneStartAtMin).describe(
|
|
2612
2307
|
"Indicates the index of the first item returned in the page of results."
|
|
2613
2308
|
),
|
|
2614
2309
|
maxResults: zod.number().min(1).describe(
|
|
2615
2310
|
"Indicates the maximum number of results in this response. Note that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints."
|
|
2616
2311
|
),
|
|
2617
|
-
total: zod.number().min(
|
|
2312
|
+
total: zod.number().min(listFolders200ResponseOneTotalMin).optional().describe(
|
|
2618
2313
|
"Indicates the total number of items available across all pages."
|
|
2619
2314
|
),
|
|
2620
|
-
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results.")
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
zod.
|
|
2315
|
+
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results."),
|
|
2316
|
+
values: zod.array(
|
|
2317
|
+
zod.object({
|
|
2318
|
+
id: zod.number().min(1),
|
|
2319
|
+
parentId: zod.number().min(1),
|
|
2320
|
+
name: zod.string().min(1).max(listFolders200ResponseTwoValuesItemNameMax).regex(listFolders200ResponseTwoValuesItemNameRegExp),
|
|
2321
|
+
index: zod.number().min(listFolders200ResponseTwoValuesItemIndexMin),
|
|
2322
|
+
folderType: zod.string().describe(
|
|
2323
|
+
'Valid values: `"TEST_CASE"`, `"TEST_PLAN"`, `"TEST_CYCLE"`'
|
|
2324
|
+
),
|
|
2325
|
+
project: zod.object({
|
|
2625
2326
|
id: zod.number().min(1),
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
id: zod.number().min(1)
|
|
2634
|
-
}).describe("The ID of the resource").and(
|
|
2635
|
-
zod.object({
|
|
2636
|
-
self: zod.string().url().optional().describe(
|
|
2637
|
-
"The REST API endpoint to get more resource details."
|
|
2638
|
-
)
|
|
2639
|
-
})
|
|
2640
|
-
).optional().describe("ID and link relative to Zephyr project.")
|
|
2641
|
-
})
|
|
2642
|
-
).optional()
|
|
2643
|
-
})
|
|
2644
|
-
);
|
|
2327
|
+
self: zod.string().url().optional().describe(
|
|
2328
|
+
"The REST API endpoint to get more resource details."
|
|
2329
|
+
)
|
|
2330
|
+
}).strict().optional().describe("ID and link relative to Zephyr project.")
|
|
2331
|
+
}).strict()
|
|
2332
|
+
).optional()
|
|
2333
|
+
}).strict();
|
|
2645
2334
|
zod.object({
|
|
2646
2335
|
errorCode: zod.number(),
|
|
2647
2336
|
message: zod.string()
|
|
2648
|
-
});
|
|
2337
|
+
}).strict();
|
|
2649
2338
|
const createFolderBodyNameMax = 255;
|
|
2650
2339
|
const createFolderBodyProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
2651
2340
|
zod.object({
|
|
@@ -2659,11 +2348,11 @@ zod.object({
|
|
|
2659
2348
|
zod.object({
|
|
2660
2349
|
id: zod.number().min(1).optional(),
|
|
2661
2350
|
self: zod.string().optional()
|
|
2662
|
-
});
|
|
2351
|
+
}).strict();
|
|
2663
2352
|
zod.object({
|
|
2664
2353
|
errorCode: zod.number(),
|
|
2665
2354
|
message: zod.string()
|
|
2666
|
-
});
|
|
2355
|
+
}).strict();
|
|
2667
2356
|
zod.object({
|
|
2668
2357
|
folderId: zod.number().min(1).describe("Folder ID")
|
|
2669
2358
|
});
|
|
@@ -2677,80 +2366,70 @@ zod.object({
|
|
|
2677
2366
|
index: zod.number().min(getFolder200ResponseIndexMin),
|
|
2678
2367
|
folderType: zod.string().describe('Valid values: `"TEST_CASE"`, `"TEST_PLAN"`, `"TEST_CYCLE"`'),
|
|
2679
2368
|
project: zod.object({
|
|
2680
|
-
id: zod.number().min(1)
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
})
|
|
2685
|
-
).optional().describe("ID and link relative to Zephyr project.")
|
|
2686
|
-
});
|
|
2369
|
+
id: zod.number().min(1),
|
|
2370
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2371
|
+
}).strict().optional().describe("ID and link relative to Zephyr project.")
|
|
2372
|
+
}).strict();
|
|
2687
2373
|
zod.object({
|
|
2688
2374
|
errorCode: zod.number(),
|
|
2689
2375
|
message: zod.string()
|
|
2690
|
-
});
|
|
2376
|
+
}).strict();
|
|
2691
2377
|
const listPrioritiesQueryMaxResultsDefault = 10;
|
|
2378
|
+
const listPrioritiesQueryStartAtDefault = 0;
|
|
2692
2379
|
const listPrioritiesQueryStartAtMin = 0;
|
|
2693
2380
|
const listPrioritiesQueryStartAtMax = 1e6;
|
|
2694
2381
|
const listPrioritiesQueryProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
2695
|
-
const
|
|
2382
|
+
const ListPrioritiesQueryParams = zod.object({
|
|
2696
2383
|
maxResults: zod.number().min(1).default(listPrioritiesQueryMaxResultsDefault).describe(
|
|
2697
2384
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the maxResults value in the response to confirm how many results were actually returned.\n"
|
|
2698
2385
|
),
|
|
2699
|
-
startAt: zod.number().min(listPrioritiesQueryStartAtMin).max(listPrioritiesQueryStartAtMax).
|
|
2386
|
+
startAt: zod.number().min(listPrioritiesQueryStartAtMin).max(listPrioritiesQueryStartAtMax).default(listPrioritiesQueryStartAtDefault).describe(
|
|
2700
2387
|
"Zero-indexed starting position. Should be a multiple of maxResults."
|
|
2701
2388
|
),
|
|
2702
2389
|
projectKey: zod.string().regex(listPrioritiesQueryProjectKeyRegExp).optional().describe("Jira project key filter")
|
|
2703
2390
|
});
|
|
2704
|
-
const
|
|
2705
|
-
const
|
|
2706
|
-
const
|
|
2707
|
-
const
|
|
2708
|
-
const
|
|
2709
|
-
const
|
|
2710
|
-
const
|
|
2391
|
+
const listPriorities200ResponseOneStartAtMin = 0;
|
|
2392
|
+
const listPriorities200ResponseOneTotalMin = 0;
|
|
2393
|
+
const listPriorities200ResponseTwoValuesItemOneNameMax = 255;
|
|
2394
|
+
const listPriorities200ResponseTwoValuesItemOneNameRegExp = /^(?!\\s*$).+/;
|
|
2395
|
+
const listPriorities200ResponseTwoValuesItemOneIndexMin = 0;
|
|
2396
|
+
const listPriorities200ResponseTwoValuesItemTwoColorRegExp = /#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})/;
|
|
2397
|
+
const listPriorities200ResponseTwoValuesItemTwoDefaultDefault = false;
|
|
2398
|
+
const ListPriorities200Response = zod.object({
|
|
2711
2399
|
next: zod.string().url().nullish().describe(
|
|
2712
2400
|
"URL to the next page of results, or null if there are no more results."
|
|
2713
2401
|
),
|
|
2714
|
-
startAt: zod.number().min(
|
|
2402
|
+
startAt: zod.number().min(listPriorities200ResponseOneStartAtMin).describe(
|
|
2715
2403
|
"Indicates the index of the first item returned in the page of results."
|
|
2716
2404
|
),
|
|
2717
2405
|
maxResults: zod.number().min(1).describe(
|
|
2718
2406
|
"Indicates the maximum number of results in this response. Note that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints."
|
|
2719
2407
|
),
|
|
2720
|
-
total: zod.number().min(
|
|
2408
|
+
total: zod.number().min(listPriorities200ResponseOneTotalMin).optional().describe(
|
|
2721
2409
|
"Indicates the total number of items available across all pages."
|
|
2722
2410
|
),
|
|
2723
|
-
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results.")
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
zod.object({
|
|
2411
|
+
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results."),
|
|
2412
|
+
values: zod.array(
|
|
2413
|
+
zod.object({
|
|
2414
|
+
id: zod.number().min(1),
|
|
2415
|
+
project: zod.object({
|
|
2728
2416
|
id: zod.number().min(1),
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
}).and(
|
|
2742
|
-
zod.object({
|
|
2743
|
-
color: zod.string().regex(listPriorities200ResponseValuesItemColorRegExp).optional().describe("A color in hexadecimal format"),
|
|
2744
|
-
default: zod.boolean().optional()
|
|
2745
|
-
})
|
|
2746
|
-
)
|
|
2747
|
-
).optional()
|
|
2748
|
-
})
|
|
2749
|
-
);
|
|
2417
|
+
self: zod.string().url().optional().describe(
|
|
2418
|
+
"The REST API endpoint to get more resource details."
|
|
2419
|
+
)
|
|
2420
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
2421
|
+
name: zod.string().min(1).max(listPriorities200ResponseTwoValuesItemOneNameMax).regex(listPriorities200ResponseTwoValuesItemOneNameRegExp),
|
|
2422
|
+
description: zod.string().nullish().describe("Description outlining the scope."),
|
|
2423
|
+
index: zod.number().min(listPriorities200ResponseTwoValuesItemOneIndexMin),
|
|
2424
|
+
color: zod.string().regex(listPriorities200ResponseTwoValuesItemTwoColorRegExp).optional().describe("A color in hexadecimal format"),
|
|
2425
|
+
default: zod.boolean().default(listPriorities200ResponseTwoValuesItemTwoDefaultDefault)
|
|
2426
|
+
}).strict()
|
|
2427
|
+
).optional()
|
|
2428
|
+
}).strict();
|
|
2750
2429
|
zod.object({
|
|
2751
2430
|
errorCode: zod.number(),
|
|
2752
2431
|
message: zod.string()
|
|
2753
|
-
});
|
|
2432
|
+
}).strict();
|
|
2754
2433
|
const createPriorityBodyProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
2755
2434
|
const createPriorityBodyNameMax = 255;
|
|
2756
2435
|
const createPriorityBodyDescriptionMax = 255;
|
|
@@ -2764,44 +2443,39 @@ zod.object({
|
|
|
2764
2443
|
zod.object({
|
|
2765
2444
|
id: zod.number().min(1).optional(),
|
|
2766
2445
|
self: zod.string().optional()
|
|
2767
|
-
});
|
|
2446
|
+
}).strict();
|
|
2768
2447
|
zod.object({
|
|
2769
2448
|
errorCode: zod.number(),
|
|
2770
2449
|
message: zod.string()
|
|
2771
|
-
});
|
|
2450
|
+
}).strict();
|
|
2772
2451
|
zod.object({
|
|
2773
2452
|
priorityId: zod.number().min(1)
|
|
2774
2453
|
});
|
|
2775
|
-
const
|
|
2776
|
-
const
|
|
2777
|
-
const
|
|
2778
|
-
const
|
|
2454
|
+
const getPriority200ResponseOneNameMax = 255;
|
|
2455
|
+
const getPriority200ResponseOneNameRegExp = /^(?!\\s*$).+/;
|
|
2456
|
+
const getPriority200ResponseOneIndexMin = 0;
|
|
2457
|
+
const getPriority200ResponseTwoColorRegExp = /#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})/;
|
|
2458
|
+
const getPriority200ResponseTwoDefaultDefault = false;
|
|
2779
2459
|
zod.object({
|
|
2780
2460
|
id: zod.number().min(1),
|
|
2781
2461
|
project: zod.object({
|
|
2782
|
-
id: zod.number().min(1)
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
})
|
|
2787
|
-
).describe("ID and link relative to Zephyr project."),
|
|
2788
|
-
name: zod.string().min(1).max(getPriority200ResponseNameMax).regex(getPriority200ResponseNameRegExp),
|
|
2462
|
+
id: zod.number().min(1),
|
|
2463
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2464
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
2465
|
+
name: zod.string().min(1).max(getPriority200ResponseOneNameMax).regex(getPriority200ResponseOneNameRegExp),
|
|
2789
2466
|
description: zod.string().nullish().describe("Description outlining the scope."),
|
|
2790
|
-
index: zod.number().min(
|
|
2791
|
-
|
|
2792
|
-
zod.
|
|
2793
|
-
|
|
2794
|
-
default: zod.boolean().optional()
|
|
2795
|
-
})
|
|
2796
|
-
);
|
|
2467
|
+
index: zod.number().min(getPriority200ResponseOneIndexMin),
|
|
2468
|
+
color: zod.string().regex(getPriority200ResponseTwoColorRegExp).optional().describe("A color in hexadecimal format"),
|
|
2469
|
+
default: zod.boolean().default(getPriority200ResponseTwoDefaultDefault)
|
|
2470
|
+
}).strict();
|
|
2797
2471
|
zod.object({
|
|
2798
2472
|
errorCode: zod.number(),
|
|
2799
2473
|
message: zod.string()
|
|
2800
|
-
});
|
|
2474
|
+
}).strict();
|
|
2801
2475
|
zod.object({
|
|
2802
2476
|
errorCode: zod.number(),
|
|
2803
2477
|
message: zod.string()
|
|
2804
|
-
});
|
|
2478
|
+
}).strict();
|
|
2805
2479
|
zod.object({
|
|
2806
2480
|
priorityId: zod.number().min(1)
|
|
2807
2481
|
});
|
|
@@ -2827,73 +2501,67 @@ zod.object({
|
|
|
2827
2501
|
zod.object({
|
|
2828
2502
|
errorCode: zod.number(),
|
|
2829
2503
|
message: zod.string()
|
|
2830
|
-
});
|
|
2504
|
+
}).strict();
|
|
2831
2505
|
const listStatusesQueryMaxResultsDefault = 10;
|
|
2506
|
+
const listStatusesQueryStartAtDefault = 0;
|
|
2832
2507
|
const listStatusesQueryStartAtMin = 0;
|
|
2833
2508
|
const listStatusesQueryStartAtMax = 1e6;
|
|
2834
2509
|
const listStatusesQueryProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
2835
|
-
const
|
|
2510
|
+
const ListStatusesQueryParams = zod.object({
|
|
2836
2511
|
maxResults: zod.number().min(1).default(listStatusesQueryMaxResultsDefault).describe(
|
|
2837
2512
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the maxResults value in the response to confirm how many results were actually returned.\n"
|
|
2838
2513
|
),
|
|
2839
|
-
startAt: zod.number().min(listStatusesQueryStartAtMin).max(listStatusesQueryStartAtMax).
|
|
2514
|
+
startAt: zod.number().min(listStatusesQueryStartAtMin).max(listStatusesQueryStartAtMax).default(listStatusesQueryStartAtDefault).describe(
|
|
2840
2515
|
"Zero-indexed starting position. Should be a multiple of maxResults."
|
|
2841
2516
|
),
|
|
2842
2517
|
projectKey: zod.string().regex(listStatusesQueryProjectKeyRegExp).optional().describe("Jira project key filter"),
|
|
2843
2518
|
statusType: zod.enum(["TEST_CASE", "TEST_PLAN", "TEST_CYCLE", "TEST_EXECUTION"]).optional().describe("Determines which type of entity the status belongs to.")
|
|
2844
2519
|
});
|
|
2845
|
-
const
|
|
2846
|
-
const
|
|
2847
|
-
const
|
|
2848
|
-
const
|
|
2849
|
-
const
|
|
2850
|
-
const
|
|
2520
|
+
const listStatuses200ResponseOneStartAtMin = 0;
|
|
2521
|
+
const listStatuses200ResponseOneTotalMin = 0;
|
|
2522
|
+
const listStatuses200ResponseTwoValuesItemOneNameMax = 255;
|
|
2523
|
+
const listStatuses200ResponseTwoValuesItemOneNameRegExp = /^(?!\\s*$).+/;
|
|
2524
|
+
const listStatuses200ResponseTwoValuesItemOneIndexMin = 0;
|
|
2525
|
+
const listStatuses200ResponseTwoValuesItemTwoArchivedDefault = false;
|
|
2526
|
+
const listStatuses200ResponseTwoValuesItemTwoDefaultDefault = false;
|
|
2527
|
+
const ListStatuses200Response = zod.object({
|
|
2851
2528
|
next: zod.string().url().nullish().describe(
|
|
2852
2529
|
"URL to the next page of results, or null if there are no more results."
|
|
2853
2530
|
),
|
|
2854
|
-
startAt: zod.number().min(
|
|
2531
|
+
startAt: zod.number().min(listStatuses200ResponseOneStartAtMin).describe(
|
|
2855
2532
|
"Indicates the index of the first item returned in the page of results."
|
|
2856
2533
|
),
|
|
2857
2534
|
maxResults: zod.number().min(1).describe(
|
|
2858
2535
|
"Indicates the maximum number of results in this response. Note that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints."
|
|
2859
2536
|
),
|
|
2860
|
-
total: zod.number().min(
|
|
2537
|
+
total: zod.number().min(listStatuses200ResponseOneTotalMin).optional().describe(
|
|
2861
2538
|
"Indicates the total number of items available across all pages."
|
|
2862
2539
|
),
|
|
2863
|
-
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results.")
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
zod.object({
|
|
2540
|
+
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results."),
|
|
2541
|
+
values: zod.array(
|
|
2542
|
+
zod.object({
|
|
2543
|
+
id: zod.number().min(1),
|
|
2544
|
+
project: zod.object({
|
|
2868
2545
|
id: zod.number().min(1),
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
archived: zod.boolean().optional().describe(
|
|
2885
|
-
"Determines whether the status is archived. Archived statuses are read-only and cannot be assigned to entities."
|
|
2886
|
-
),
|
|
2887
|
-
default: zod.boolean().optional()
|
|
2888
|
-
})
|
|
2889
|
-
)
|
|
2890
|
-
).optional()
|
|
2891
|
-
})
|
|
2892
|
-
);
|
|
2546
|
+
self: zod.string().url().optional().describe(
|
|
2547
|
+
"The REST API endpoint to get more resource details."
|
|
2548
|
+
)
|
|
2549
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
2550
|
+
name: zod.string().min(1).max(listStatuses200ResponseTwoValuesItemOneNameMax).regex(listStatuses200ResponseTwoValuesItemOneNameRegExp),
|
|
2551
|
+
description: zod.string().nullish().describe("Description outlining the scope."),
|
|
2552
|
+
index: zod.number().min(listStatuses200ResponseTwoValuesItemOneIndexMin),
|
|
2553
|
+
color: zod.string().optional(),
|
|
2554
|
+
archived: zod.boolean().default(listStatuses200ResponseTwoValuesItemTwoArchivedDefault).describe(
|
|
2555
|
+
"Determines whether the status is archived. Archived statuses are read-only and cannot be assigned to entities."
|
|
2556
|
+
),
|
|
2557
|
+
default: zod.boolean().default(listStatuses200ResponseTwoValuesItemTwoDefaultDefault)
|
|
2558
|
+
}).strict()
|
|
2559
|
+
).optional()
|
|
2560
|
+
}).strict();
|
|
2893
2561
|
zod.object({
|
|
2894
2562
|
errorCode: zod.number(),
|
|
2895
2563
|
message: zod.string()
|
|
2896
|
-
});
|
|
2564
|
+
}).strict();
|
|
2897
2565
|
const createStatusBodyProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
2898
2566
|
const createStatusBodyNameMax = 255;
|
|
2899
2567
|
const createStatusBodyDescriptionMax = 255;
|
|
@@ -2908,46 +2576,42 @@ zod.object({
|
|
|
2908
2576
|
zod.object({
|
|
2909
2577
|
id: zod.number().min(1).optional(),
|
|
2910
2578
|
self: zod.string().optional()
|
|
2911
|
-
});
|
|
2579
|
+
}).strict();
|
|
2912
2580
|
zod.object({
|
|
2913
2581
|
errorCode: zod.number(),
|
|
2914
2582
|
message: zod.string()
|
|
2915
|
-
});
|
|
2583
|
+
}).strict();
|
|
2916
2584
|
zod.object({
|
|
2917
2585
|
statusId: zod.number().min(1)
|
|
2918
2586
|
});
|
|
2919
|
-
const
|
|
2920
|
-
const
|
|
2921
|
-
const
|
|
2587
|
+
const getStatus200ResponseOneNameMax = 255;
|
|
2588
|
+
const getStatus200ResponseOneNameRegExp = /^(?!\\s*$).+/;
|
|
2589
|
+
const getStatus200ResponseOneIndexMin = 0;
|
|
2590
|
+
const getStatus200ResponseTwoArchivedDefault = false;
|
|
2591
|
+
const getStatus200ResponseTwoDefaultDefault = false;
|
|
2922
2592
|
zod.object({
|
|
2923
2593
|
id: zod.number().min(1),
|
|
2924
2594
|
project: zod.object({
|
|
2925
|
-
id: zod.number().min(1)
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
})
|
|
2930
|
-
).describe("ID and link relative to Zephyr project."),
|
|
2931
|
-
name: zod.string().min(1).max(getStatus200ResponseNameMax).regex(getStatus200ResponseNameRegExp),
|
|
2595
|
+
id: zod.number().min(1),
|
|
2596
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2597
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
2598
|
+
name: zod.string().min(1).max(getStatus200ResponseOneNameMax).regex(getStatus200ResponseOneNameRegExp),
|
|
2932
2599
|
description: zod.string().nullish().describe("Description outlining the scope."),
|
|
2933
|
-
index: zod.number().min(
|
|
2934
|
-
|
|
2935
|
-
zod.
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
default: zod.boolean().optional()
|
|
2941
|
-
})
|
|
2942
|
-
);
|
|
2600
|
+
index: zod.number().min(getStatus200ResponseOneIndexMin),
|
|
2601
|
+
color: zod.string().optional(),
|
|
2602
|
+
archived: zod.boolean().default(getStatus200ResponseTwoArchivedDefault).describe(
|
|
2603
|
+
"Determines whether the status is archived. Archived statuses are read-only and cannot be assigned to entities."
|
|
2604
|
+
),
|
|
2605
|
+
default: zod.boolean().default(getStatus200ResponseTwoDefaultDefault)
|
|
2606
|
+
}).strict();
|
|
2943
2607
|
zod.object({
|
|
2944
2608
|
errorCode: zod.number(),
|
|
2945
2609
|
message: zod.string()
|
|
2946
|
-
});
|
|
2610
|
+
}).strict();
|
|
2947
2611
|
zod.object({
|
|
2948
2612
|
errorCode: zod.number(),
|
|
2949
2613
|
message: zod.string()
|
|
2950
|
-
});
|
|
2614
|
+
}).strict();
|
|
2951
2615
|
zod.object({
|
|
2952
2616
|
statusId: zod.number().min(1)
|
|
2953
2617
|
});
|
|
@@ -2974,68 +2638,63 @@ zod.object({
|
|
|
2974
2638
|
zod.object({
|
|
2975
2639
|
errorCode: zod.number(),
|
|
2976
2640
|
message: zod.string()
|
|
2977
|
-
});
|
|
2641
|
+
}).strict();
|
|
2978
2642
|
const listEnvironmentsQueryProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
2979
2643
|
const listEnvironmentsQueryMaxResultsDefault = 10;
|
|
2644
|
+
const listEnvironmentsQueryStartAtDefault = 0;
|
|
2980
2645
|
const listEnvironmentsQueryStartAtMin = 0;
|
|
2981
2646
|
const listEnvironmentsQueryStartAtMax = 1e6;
|
|
2982
|
-
const
|
|
2647
|
+
const ListEnvironmentsQueryParams = zod.object({
|
|
2983
2648
|
projectKey: zod.string().regex(listEnvironmentsQueryProjectKeyRegExp).optional().describe("Jira project key filter"),
|
|
2984
2649
|
maxResults: zod.number().min(1).default(listEnvironmentsQueryMaxResultsDefault).describe(
|
|
2985
2650
|
"Specifies the maximum number of results to return in a single call. The default value is 10, and the maximum value that can be requested is 1000.\n\nNote that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints. If this happens, the result set may be truncated. Always check the maxResults value in the response to confirm how many results were actually returned.\n"
|
|
2986
2651
|
),
|
|
2987
|
-
startAt: zod.number().min(listEnvironmentsQueryStartAtMin).max(listEnvironmentsQueryStartAtMax).
|
|
2652
|
+
startAt: zod.number().min(listEnvironmentsQueryStartAtMin).max(listEnvironmentsQueryStartAtMax).default(listEnvironmentsQueryStartAtDefault).describe(
|
|
2988
2653
|
"Zero-indexed starting position. Should be a multiple of maxResults."
|
|
2989
2654
|
)
|
|
2990
2655
|
});
|
|
2991
|
-
const
|
|
2992
|
-
const
|
|
2993
|
-
const
|
|
2994
|
-
const
|
|
2995
|
-
const
|
|
2996
|
-
const
|
|
2656
|
+
const listEnvironments200ResponseOneStartAtMin = 0;
|
|
2657
|
+
const listEnvironments200ResponseOneTotalMin = 0;
|
|
2658
|
+
const listEnvironments200ResponseTwoValuesItemOneNameMax = 255;
|
|
2659
|
+
const listEnvironments200ResponseTwoValuesItemOneNameRegExp = /^(?!\\s*$).+/;
|
|
2660
|
+
const listEnvironments200ResponseTwoValuesItemOneIndexMin = 0;
|
|
2661
|
+
const listEnvironments200ResponseTwoValuesItemTwoArchivedDefault = false;
|
|
2662
|
+
const ListEnvironments200Response = zod.object({
|
|
2997
2663
|
next: zod.string().url().nullish().describe(
|
|
2998
2664
|
"URL to the next page of results, or null if there are no more results."
|
|
2999
2665
|
),
|
|
3000
|
-
startAt: zod.number().min(
|
|
2666
|
+
startAt: zod.number().min(listEnvironments200ResponseOneStartAtMin).describe(
|
|
3001
2667
|
"Indicates the index of the first item returned in the page of results."
|
|
3002
2668
|
),
|
|
3003
2669
|
maxResults: zod.number().min(1).describe(
|
|
3004
2670
|
"Indicates the maximum number of results in this response. Note that the server may enforce a lower limit than requested, depending on resource availability or other internal constraints."
|
|
3005
2671
|
),
|
|
3006
|
-
total: zod.number().min(
|
|
2672
|
+
total: zod.number().min(listEnvironments200ResponseOneTotalMin).optional().describe(
|
|
3007
2673
|
"Indicates the total number of items available across all pages."
|
|
3008
2674
|
),
|
|
3009
|
-
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results.")
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
zod.object({
|
|
2675
|
+
isLast: zod.boolean().optional().describe("Indicates if this is the last page of results."),
|
|
2676
|
+
values: zod.array(
|
|
2677
|
+
zod.object({
|
|
2678
|
+
id: zod.number().min(1),
|
|
2679
|
+
project: zod.object({
|
|
3014
2680
|
id: zod.number().min(1),
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
name: zod.string().min(1).max(listEnvironments200ResponseValuesItemNameMax).regex(listEnvironments200ResponseValuesItemNameRegExp),
|
|
3025
|
-
description: zod.string().nullish().describe("Description outlining the scope."),
|
|
3026
|
-
index: zod.number().min(listEnvironments200ResponseValuesItemIndexMin)
|
|
3027
|
-
}).and(
|
|
3028
|
-
zod.object({
|
|
3029
|
-
archived: zod.boolean().optional()
|
|
3030
|
-
})
|
|
2681
|
+
self: zod.string().url().optional().describe(
|
|
2682
|
+
"The REST API endpoint to get more resource details."
|
|
2683
|
+
)
|
|
2684
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
2685
|
+
name: zod.string().min(1).max(listEnvironments200ResponseTwoValuesItemOneNameMax).regex(listEnvironments200ResponseTwoValuesItemOneNameRegExp),
|
|
2686
|
+
description: zod.string().nullish().describe("Description outlining the scope."),
|
|
2687
|
+
index: zod.number().min(listEnvironments200ResponseTwoValuesItemOneIndexMin),
|
|
2688
|
+
archived: zod.boolean().default(
|
|
2689
|
+
listEnvironments200ResponseTwoValuesItemTwoArchivedDefault
|
|
3031
2690
|
)
|
|
3032
|
-
).
|
|
3033
|
-
|
|
3034
|
-
);
|
|
2691
|
+
}).strict()
|
|
2692
|
+
).optional()
|
|
2693
|
+
}).strict();
|
|
3035
2694
|
zod.object({
|
|
3036
2695
|
errorCode: zod.number(),
|
|
3037
2696
|
message: zod.string()
|
|
3038
|
-
});
|
|
2697
|
+
}).strict();
|
|
3039
2698
|
const createEnvironmentBodyProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
3040
2699
|
const createEnvironmentBodyNameMax = 255;
|
|
3041
2700
|
const createEnvironmentBodyDescriptionMax = 255;
|
|
@@ -3047,60 +2706,55 @@ zod.object({
|
|
|
3047
2706
|
zod.object({
|
|
3048
2707
|
id: zod.number().min(1).optional(),
|
|
3049
2708
|
self: zod.string().optional()
|
|
3050
|
-
});
|
|
2709
|
+
}).strict();
|
|
3051
2710
|
zod.union([
|
|
3052
2711
|
zod.object({
|
|
3053
2712
|
errorCode: zod.number(),
|
|
3054
2713
|
message: zod.string()
|
|
3055
|
-
}),
|
|
2714
|
+
}).strict(),
|
|
3056
2715
|
zod.object({
|
|
3057
2716
|
errorCode: zod.number(),
|
|
3058
2717
|
message: zod.string()
|
|
3059
|
-
}),
|
|
2718
|
+
}).strict(),
|
|
3060
2719
|
zod.object({
|
|
3061
2720
|
errorCode: zod.number(),
|
|
3062
2721
|
message: zod.string()
|
|
3063
|
-
}),
|
|
2722
|
+
}).strict(),
|
|
3064
2723
|
zod.object({
|
|
3065
2724
|
errorCode: zod.number(),
|
|
3066
2725
|
message: zod.string()
|
|
3067
|
-
})
|
|
2726
|
+
}).strict()
|
|
3068
2727
|
]);
|
|
3069
2728
|
zod.object({
|
|
3070
2729
|
errorCode: zod.number(),
|
|
3071
2730
|
message: zod.string()
|
|
3072
|
-
});
|
|
2731
|
+
}).strict();
|
|
3073
2732
|
zod.object({
|
|
3074
2733
|
environmentId: zod.number().min(1)
|
|
3075
2734
|
});
|
|
3076
|
-
const
|
|
3077
|
-
const
|
|
3078
|
-
const
|
|
2735
|
+
const getEnvironment200ResponseOneNameMax = 255;
|
|
2736
|
+
const getEnvironment200ResponseOneNameRegExp = /^(?!\\s*$).+/;
|
|
2737
|
+
const getEnvironment200ResponseOneIndexMin = 0;
|
|
2738
|
+
const getEnvironment200ResponseTwoArchivedDefault = false;
|
|
3079
2739
|
zod.object({
|
|
3080
2740
|
id: zod.number().min(1),
|
|
3081
2741
|
project: zod.object({
|
|
3082
|
-
id: zod.number().min(1)
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
})
|
|
3087
|
-
).describe("ID and link relative to Zephyr project."),
|
|
3088
|
-
name: zod.string().min(1).max(getEnvironment200ResponseNameMax).regex(getEnvironment200ResponseNameRegExp),
|
|
2742
|
+
id: zod.number().min(1),
|
|
2743
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2744
|
+
}).strict().describe("ID and link relative to Zephyr project."),
|
|
2745
|
+
name: zod.string().min(1).max(getEnvironment200ResponseOneNameMax).regex(getEnvironment200ResponseOneNameRegExp),
|
|
3089
2746
|
description: zod.string().nullish().describe("Description outlining the scope."),
|
|
3090
|
-
index: zod.number().min(
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
archived: zod.boolean().optional()
|
|
3094
|
-
})
|
|
3095
|
-
);
|
|
2747
|
+
index: zod.number().min(getEnvironment200ResponseOneIndexMin),
|
|
2748
|
+
archived: zod.boolean().default(getEnvironment200ResponseTwoArchivedDefault)
|
|
2749
|
+
}).strict();
|
|
3096
2750
|
zod.object({
|
|
3097
2751
|
errorCode: zod.number(),
|
|
3098
2752
|
message: zod.string()
|
|
3099
|
-
});
|
|
2753
|
+
}).strict();
|
|
3100
2754
|
zod.object({
|
|
3101
2755
|
errorCode: zod.number(),
|
|
3102
2756
|
message: zod.string()
|
|
3103
|
-
});
|
|
2757
|
+
}).strict();
|
|
3104
2758
|
zod.object({
|
|
3105
2759
|
environmentId: zod.number().min(1)
|
|
3106
2760
|
});
|
|
@@ -3124,112 +2778,101 @@ zod.union([
|
|
|
3124
2778
|
zod.object({
|
|
3125
2779
|
errorCode: zod.number(),
|
|
3126
2780
|
message: zod.string()
|
|
3127
|
-
}),
|
|
2781
|
+
}).strict(),
|
|
3128
2782
|
zod.object({
|
|
3129
2783
|
errorCode: zod.number(),
|
|
3130
2784
|
message: zod.string()
|
|
3131
|
-
}),
|
|
2785
|
+
}).strict(),
|
|
3132
2786
|
zod.object({
|
|
3133
2787
|
errorCode: zod.number(),
|
|
3134
2788
|
message: zod.string()
|
|
3135
|
-
}),
|
|
2789
|
+
}).strict(),
|
|
3136
2790
|
zod.object({
|
|
3137
2791
|
errorCode: zod.number(),
|
|
3138
2792
|
message: zod.string()
|
|
3139
|
-
}),
|
|
2793
|
+
}).strict(),
|
|
3140
2794
|
zod.object({
|
|
3141
2795
|
errorCode: zod.number(),
|
|
3142
2796
|
message: zod.string()
|
|
3143
|
-
})
|
|
2797
|
+
}).strict()
|
|
3144
2798
|
]);
|
|
3145
2799
|
zod.object({
|
|
3146
2800
|
errorCode: zod.number(),
|
|
3147
2801
|
message: zod.string()
|
|
3148
|
-
});
|
|
2802
|
+
}).strict();
|
|
3149
2803
|
zod.object({
|
|
3150
2804
|
linkId: zod.number().min(1)
|
|
3151
2805
|
});
|
|
3152
2806
|
zod.object({
|
|
3153
2807
|
errorCode: zod.number(),
|
|
3154
2808
|
message: zod.string()
|
|
3155
|
-
});
|
|
2809
|
+
}).strict();
|
|
3156
2810
|
const getIssueLinkTestCasesPathIssueKeyRegExp = /.+-[0-9]+/;
|
|
3157
2811
|
zod.object({
|
|
3158
2812
|
issueKey: zod.string().regex(getIssueLinkTestCasesPathIssueKeyRegExp).describe("The key of the Jira issue")
|
|
3159
2813
|
});
|
|
3160
|
-
const
|
|
2814
|
+
const GetIssueLinkTestCases200ResponseItem = zod.object({
|
|
3161
2815
|
key: zod.string().optional(),
|
|
3162
|
-
version: zod.number().optional()
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
3166
|
-
})
|
|
3167
|
-
);
|
|
2816
|
+
version: zod.number().optional(),
|
|
2817
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2818
|
+
}).strict();
|
|
3168
2819
|
zod.array(
|
|
3169
|
-
|
|
2820
|
+
GetIssueLinkTestCases200ResponseItem
|
|
3170
2821
|
);
|
|
3171
2822
|
zod.object({
|
|
3172
2823
|
errorCode: zod.number(),
|
|
3173
2824
|
message: zod.string()
|
|
3174
|
-
});
|
|
2825
|
+
}).strict();
|
|
3175
2826
|
const getIssueLinkTestCyclesPathIssueKeyRegExp = /.+-[0-9]+/;
|
|
3176
2827
|
zod.object({
|
|
3177
2828
|
issueKey: zod.string().regex(getIssueLinkTestCyclesPathIssueKeyRegExp).describe("The key of the Jira issue")
|
|
3178
2829
|
});
|
|
3179
|
-
const
|
|
3180
|
-
id: zod.number().min(1)
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
3184
|
-
})
|
|
3185
|
-
);
|
|
2830
|
+
const GetIssueLinkTestCycles200ResponseItem = zod.object({
|
|
2831
|
+
id: zod.number().min(1),
|
|
2832
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2833
|
+
}).strict();
|
|
3186
2834
|
zod.array(
|
|
3187
|
-
|
|
2835
|
+
GetIssueLinkTestCycles200ResponseItem
|
|
3188
2836
|
);
|
|
3189
2837
|
zod.object({
|
|
3190
2838
|
errorCode: zod.number(),
|
|
3191
2839
|
message: zod.string()
|
|
3192
|
-
});
|
|
2840
|
+
}).strict();
|
|
3193
2841
|
const getIssueLinkTestPlansPathIssueKeyRegExp = /.+-[0-9]+/;
|
|
3194
2842
|
zod.object({
|
|
3195
2843
|
issueKey: zod.string().regex(getIssueLinkTestPlansPathIssueKeyRegExp).describe("The key of the Jira issue")
|
|
3196
2844
|
});
|
|
3197
|
-
const
|
|
3198
|
-
id: zod.number().min(1)
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
3202
|
-
})
|
|
3203
|
-
);
|
|
2845
|
+
const GetIssueLinkTestPlans200ResponseItem = zod.object({
|
|
2846
|
+
id: zod.number().min(1),
|
|
2847
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2848
|
+
}).strict();
|
|
3204
2849
|
zod.array(
|
|
3205
|
-
|
|
2850
|
+
GetIssueLinkTestPlans200ResponseItem
|
|
3206
2851
|
);
|
|
3207
2852
|
zod.object({
|
|
3208
2853
|
errorCode: zod.number(),
|
|
3209
2854
|
message: zod.string()
|
|
3210
|
-
});
|
|
2855
|
+
}).strict();
|
|
3211
2856
|
const getIssueLinkTestExecutionsPathIssueKeyRegExp = /.+-[0-9]+/;
|
|
3212
2857
|
zod.object({
|
|
3213
2858
|
issueKey: zod.string().regex(getIssueLinkTestExecutionsPathIssueKeyRegExp).describe("The key of the Jira issue")
|
|
3214
2859
|
});
|
|
3215
|
-
const
|
|
3216
|
-
id: zod.number().min(1)
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
3220
|
-
})
|
|
3221
|
-
);
|
|
2860
|
+
const GetIssueLinkTestExecutions200ResponseItem = zod.object({
|
|
2861
|
+
id: zod.number().min(1),
|
|
2862
|
+
self: zod.string().url().optional().describe("The REST API endpoint to get more resource details.")
|
|
2863
|
+
}).strict();
|
|
3222
2864
|
zod.array(
|
|
3223
|
-
|
|
2865
|
+
GetIssueLinkTestExecutions200ResponseItem
|
|
3224
2866
|
);
|
|
3225
2867
|
zod.object({
|
|
3226
2868
|
errorCode: zod.number(),
|
|
3227
2869
|
message: zod.string()
|
|
3228
|
-
});
|
|
2870
|
+
}).strict();
|
|
3229
2871
|
const createCustomExecutionsQueryProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
2872
|
+
const createCustomExecutionsQueryAutoCreateTestCasesDefault = false;
|
|
3230
2873
|
zod.object({
|
|
3231
2874
|
projectKey: zod.string().regex(createCustomExecutionsQueryProjectKeyRegExp).describe("Jira project key filter"),
|
|
3232
|
-
autoCreateTestCases: zod.boolean().
|
|
2875
|
+
autoCreateTestCases: zod.boolean().default(createCustomExecutionsQueryAutoCreateTestCasesDefault).describe("Indicate if test cases should be created if non existent.")
|
|
3233
2876
|
});
|
|
3234
2877
|
zod.object({
|
|
3235
2878
|
"content-length": zod.number().describe(
|
|
@@ -3260,16 +2903,17 @@ zod.object({
|
|
|
3260
2903
|
id: zod.number().min(1).optional().describe("The id of the newly created test cycle."),
|
|
3261
2904
|
url: zod.string().optional().describe("The URL pointing to the newly created test cycle."),
|
|
3262
2905
|
key: zod.string().regex(createCustomExecutions200ResponseTestCycleKeyRegExp).optional().describe("The key of the newly created test cycle.")
|
|
3263
|
-
}).optional()
|
|
3264
|
-
});
|
|
2906
|
+
}).strict().optional()
|
|
2907
|
+
}).strict();
|
|
3265
2908
|
zod.object({
|
|
3266
2909
|
errorCode: zod.number(),
|
|
3267
2910
|
message: zod.string()
|
|
3268
|
-
});
|
|
2911
|
+
}).strict();
|
|
3269
2912
|
const createCucumberExecutionsQueryProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
2913
|
+
const createCucumberExecutionsQueryAutoCreateTestCasesDefault = false;
|
|
3270
2914
|
zod.object({
|
|
3271
2915
|
projectKey: zod.string().regex(createCucumberExecutionsQueryProjectKeyRegExp).describe("Jira project key filter"),
|
|
3272
|
-
autoCreateTestCases: zod.boolean().
|
|
2916
|
+
autoCreateTestCases: zod.boolean().default(createCucumberExecutionsQueryAutoCreateTestCasesDefault).describe("Indicate if test cases should be created if non existent.")
|
|
3273
2917
|
});
|
|
3274
2918
|
zod.object({
|
|
3275
2919
|
"content-length": zod.number().describe(
|
|
@@ -3300,16 +2944,17 @@ zod.object({
|
|
|
3300
2944
|
id: zod.number().min(1).optional().describe("The id of the newly created test cycle."),
|
|
3301
2945
|
url: zod.string().optional().describe("The URL pointing to the newly created test cycle."),
|
|
3302
2946
|
key: zod.string().regex(createCucumberExecutions200ResponseTestCycleKeyRegExp).optional().describe("The key of the newly created test cycle.")
|
|
3303
|
-
}).optional()
|
|
3304
|
-
});
|
|
2947
|
+
}).strict().optional()
|
|
2948
|
+
}).strict();
|
|
3305
2949
|
zod.object({
|
|
3306
2950
|
errorCode: zod.number(),
|
|
3307
2951
|
message: zod.string()
|
|
3308
|
-
});
|
|
2952
|
+
}).strict();
|
|
3309
2953
|
const createJUnitExecutionsQueryProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
2954
|
+
const createJUnitExecutionsQueryAutoCreateTestCasesDefault = false;
|
|
3310
2955
|
zod.object({
|
|
3311
2956
|
projectKey: zod.string().regex(createJUnitExecutionsQueryProjectKeyRegExp).describe("Jira project key filter"),
|
|
3312
|
-
autoCreateTestCases: zod.boolean().
|
|
2957
|
+
autoCreateTestCases: zod.boolean().default(createJUnitExecutionsQueryAutoCreateTestCasesDefault).describe("Indicate if test cases should be created if non existent.")
|
|
3313
2958
|
});
|
|
3314
2959
|
zod.object({
|
|
3315
2960
|
"content-length": zod.number().describe(
|
|
@@ -3340,12 +2985,12 @@ zod.object({
|
|
|
3340
2985
|
id: zod.number().min(1).optional().describe("The id of the newly created test cycle."),
|
|
3341
2986
|
url: zod.string().optional().describe("The URL pointing to the newly created test cycle."),
|
|
3342
2987
|
key: zod.string().regex(createJUnitExecutions200ResponseTestCycleKeyRegExp).optional().describe("The key of the newly created test cycle.")
|
|
3343
|
-
}).optional()
|
|
3344
|
-
});
|
|
2988
|
+
}).strict().optional()
|
|
2989
|
+
}).strict();
|
|
3345
2990
|
zod.object({
|
|
3346
2991
|
errorCode: zod.number(),
|
|
3347
2992
|
message: zod.string()
|
|
3348
|
-
});
|
|
2993
|
+
}).strict();
|
|
3349
2994
|
const retrieveBDDTestCasesQueryProjectKeyRegExp = /([A-Z][A-Z_0-9]+)/;
|
|
3350
2995
|
zod.object({
|
|
3351
2996
|
projectKey: zod.string().regex(retrieveBDDTestCasesQueryProjectKeyRegExp).describe("Jira project key filter")
|
|
@@ -3356,19 +3001,60 @@ zod.object({
|
|
|
3356
3001
|
zod.object({
|
|
3357
3002
|
errorCode: zod.number(),
|
|
3358
3003
|
message: zod.string()
|
|
3359
|
-
});
|
|
3004
|
+
}).strict();
|
|
3360
3005
|
zod.object({
|
|
3361
3006
|
errorCode: zod.number(),
|
|
3362
3007
|
message: zod.string()
|
|
3363
|
-
});
|
|
3008
|
+
}).strict();
|
|
3364
3009
|
export {
|
|
3010
|
+
CreateTestCase201Response,
|
|
3011
|
+
CreateTestCaseBody,
|
|
3012
|
+
CreateTestCaseWebLink201Response,
|
|
3013
|
+
CreateTestCaseWebLinkBody,
|
|
3014
|
+
CreateTestCaseWebLinkParams,
|
|
3015
|
+
CreateTestCycle201Response,
|
|
3016
|
+
CreateTestCycleBody,
|
|
3017
|
+
CreateTestExecution201Response,
|
|
3018
|
+
CreateTestExecutionBody,
|
|
3019
|
+
GetIssueLinkTestCases200ResponseItem,
|
|
3020
|
+
GetIssueLinkTestCycles200ResponseItem,
|
|
3021
|
+
GetIssueLinkTestExecutions200ResponseItem,
|
|
3022
|
+
GetIssueLinkTestPlans200ResponseItem,
|
|
3023
|
+
GetProject200Response,
|
|
3024
|
+
GetProjectParams,
|
|
3025
|
+
GetTestCase200Response,
|
|
3026
|
+
GetTestCaseParams,
|
|
3027
|
+
GetTestCycle200Response,
|
|
3028
|
+
GetTestCycleParams,
|
|
3029
|
+
GetTestExecution200Response,
|
|
3030
|
+
GetTestExecutionParams,
|
|
3031
|
+
ListEnvironments200Response,
|
|
3032
|
+
ListEnvironmentsQueryParams,
|
|
3033
|
+
ListPriorities200Response,
|
|
3034
|
+
ListPrioritiesQueryParams,
|
|
3035
|
+
ListProjects200Response,
|
|
3036
|
+
ListProjectsQueryParams,
|
|
3037
|
+
ListStatuses200Response,
|
|
3038
|
+
ListStatusesQueryParams,
|
|
3039
|
+
ListTestCasesCursorPaginated200Response,
|
|
3040
|
+
ListTestCasesCursorPaginatedQueryParams,
|
|
3041
|
+
ListTestCycles200Response,
|
|
3042
|
+
ListTestCyclesQueryParams,
|
|
3043
|
+
ListTestExecutionsNextgen200Response,
|
|
3044
|
+
ListTestExecutionsNextgenQueryParams,
|
|
3045
|
+
UpdateTestCaseBody,
|
|
3046
|
+
UpdateTestCaseParams,
|
|
3047
|
+
UpdateTestCycleBody,
|
|
3048
|
+
UpdateTestCycleParams,
|
|
3365
3049
|
createCucumberExecutions200ResponseTestCycleKeyRegExp,
|
|
3366
3050
|
createCucumberExecutionsBodyTestCycleNameMax,
|
|
3367
3051
|
createCucumberExecutionsBodyTestCycleNameRegExp,
|
|
3052
|
+
createCucumberExecutionsQueryAutoCreateTestCasesDefault,
|
|
3368
3053
|
createCucumberExecutionsQueryProjectKeyRegExp,
|
|
3369
3054
|
createCustomExecutions200ResponseTestCycleKeyRegExp,
|
|
3370
3055
|
createCustomExecutionsBodyTestCycleNameMax,
|
|
3371
3056
|
createCustomExecutionsBodyTestCycleNameRegExp,
|
|
3057
|
+
createCustomExecutionsQueryAutoCreateTestCasesDefault,
|
|
3372
3058
|
createCustomExecutionsQueryProjectKeyRegExp,
|
|
3373
3059
|
createEnvironmentBodyDescriptionMax,
|
|
3374
3060
|
createEnvironmentBodyNameMax,
|
|
@@ -3378,6 +3064,7 @@ export {
|
|
|
3378
3064
|
createJUnitExecutions200ResponseTestCycleKeyRegExp,
|
|
3379
3065
|
createJUnitExecutionsBodyTestCycleNameMax,
|
|
3380
3066
|
createJUnitExecutionsBodyTestCycleNameRegExp,
|
|
3067
|
+
createJUnitExecutionsQueryAutoCreateTestCasesDefault,
|
|
3381
3068
|
createJUnitExecutionsQueryProjectKeyRegExp,
|
|
3382
3069
|
createPriorityBodyColorRegExp,
|
|
3383
3070
|
createPriorityBodyDescriptionMax,
|
|
@@ -3387,8 +3074,6 @@ export {
|
|
|
3387
3074
|
createStatusBodyDescriptionMax,
|
|
3388
3075
|
createStatusBodyNameMax,
|
|
3389
3076
|
createStatusBodyProjectKeyRegExp,
|
|
3390
|
-
createTestCase201Response,
|
|
3391
|
-
createTestCaseBody,
|
|
3392
3077
|
createTestCaseBodyComponentIdMin,
|
|
3393
3078
|
createTestCaseBodyEstimatedTimeMin,
|
|
3394
3079
|
createTestCaseBodyLabelsMax,
|
|
@@ -3400,14 +3085,9 @@ export {
|
|
|
3400
3085
|
createTestCaseBodyStatusNameMax,
|
|
3401
3086
|
createTestCaseIssueLinkPathTestCaseKeyRegExp,
|
|
3402
3087
|
createTestCaseTestScriptPathTestCaseKeyRegExp,
|
|
3403
|
-
|
|
3088
|
+
createTestCaseTestStepsBodyItemsItemTestCaseTwoTestCaseKeyRegExp,
|
|
3404
3089
|
createTestCaseTestStepsPathTestCaseKeyRegExp,
|
|
3405
|
-
createTestCaseWebLink201Response,
|
|
3406
|
-
createTestCaseWebLinkBody,
|
|
3407
|
-
createTestCaseWebLinkParams,
|
|
3408
3090
|
createTestCaseWebLinkPathTestCaseKeyRegExp,
|
|
3409
|
-
createTestCycle201Response,
|
|
3410
|
-
createTestCycleBody,
|
|
3411
3091
|
createTestCycleBodyNameMax,
|
|
3412
3092
|
createTestCycleBodyNameRegExp,
|
|
3413
3093
|
createTestCycleBodyOwnerIdRegExp,
|
|
@@ -3415,8 +3095,6 @@ export {
|
|
|
3415
3095
|
createTestCycleBodyStatusNameMax,
|
|
3416
3096
|
createTestCycleIssueLinkPathTestCycleIdOrKeyRegExp,
|
|
3417
3097
|
createTestCycleWebLinkPathTestCycleIdOrKeyRegExp,
|
|
3418
|
-
createTestExecution201Response,
|
|
3419
|
-
createTestExecutionBody,
|
|
3420
3098
|
createTestExecutionBodyAssignedToIdRegExp,
|
|
3421
3099
|
createTestExecutionBodyExecutedByIdRegExp,
|
|
3422
3100
|
createTestExecutionBodyExecutionTimeMin,
|
|
@@ -3436,31 +3114,28 @@ export {
|
|
|
3436
3114
|
createTestPlanTestCycleLinkBodyTestCycleIdOrKeyRegExp,
|
|
3437
3115
|
createTestPlanTestCycleLinkPathTestPlanIdOrKeyRegExp,
|
|
3438
3116
|
createTestPlanWebLinkPathTestPlanIdOrKeyRegExp,
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3117
|
+
getEnvironment200ResponseOneIndexMin,
|
|
3118
|
+
getEnvironment200ResponseOneNameMax,
|
|
3119
|
+
getEnvironment200ResponseOneNameRegExp,
|
|
3120
|
+
getEnvironment200ResponseTwoArchivedDefault,
|
|
3442
3121
|
getFolder200ResponseIndexMin,
|
|
3443
3122
|
getFolder200ResponseNameMax,
|
|
3444
3123
|
getFolder200ResponseNameRegExp,
|
|
3445
|
-
getIssueLinkTestCases200ResponseItem,
|
|
3446
3124
|
getIssueLinkTestCasesPathIssueKeyRegExp,
|
|
3447
|
-
getIssueLinkTestCycles200ResponseItem,
|
|
3448
3125
|
getIssueLinkTestCyclesPathIssueKeyRegExp,
|
|
3449
|
-
getIssueLinkTestExecutions200ResponseItem,
|
|
3450
3126
|
getIssueLinkTestExecutionsPathIssueKeyRegExp,
|
|
3451
|
-
getIssueLinkTestPlans200ResponseItem,
|
|
3452
3127
|
getIssueLinkTestPlansPathIssueKeyRegExp,
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
getProjectParams,
|
|
3128
|
+
getPriority200ResponseOneIndexMin,
|
|
3129
|
+
getPriority200ResponseOneNameMax,
|
|
3130
|
+
getPriority200ResponseOneNameRegExp,
|
|
3131
|
+
getPriority200ResponseTwoColorRegExp,
|
|
3132
|
+
getPriority200ResponseTwoDefaultDefault,
|
|
3459
3133
|
getProjectPathProjectIdOrKeyRegExp,
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3134
|
+
getStatus200ResponseOneIndexMin,
|
|
3135
|
+
getStatus200ResponseOneNameMax,
|
|
3136
|
+
getStatus200ResponseOneNameRegExp,
|
|
3137
|
+
getStatus200ResponseTwoArchivedDefault,
|
|
3138
|
+
getStatus200ResponseTwoDefaultDefault,
|
|
3464
3139
|
getTestCase200ResponseEstimatedTimeMin,
|
|
3465
3140
|
getTestCase200ResponseKeyRegExp,
|
|
3466
3141
|
getTestCase200ResponseLabelsMax,
|
|
@@ -3468,14 +3143,14 @@ export {
|
|
|
3468
3143
|
getTestCase200ResponseNameRegExp,
|
|
3469
3144
|
getTestCase200ResponseOwnerAccountIdRegExp,
|
|
3470
3145
|
getTestCaseLinksPathTestCaseKeyRegExp,
|
|
3471
|
-
getTestCaseParams,
|
|
3472
3146
|
getTestCasePathTestCaseKeyRegExp,
|
|
3473
3147
|
getTestCaseTestScriptPathTestCaseKeyRegExp,
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3148
|
+
getTestCaseTestSteps200ResponseOneStartAtMin,
|
|
3149
|
+
getTestCaseTestSteps200ResponseOneTotalMin,
|
|
3150
|
+
getTestCaseTestSteps200ResponseTwoValuesItemTestCaseTwoTestCaseKeyRegExp,
|
|
3477
3151
|
getTestCaseTestStepsPathTestCaseKeyRegExp,
|
|
3478
3152
|
getTestCaseTestStepsQueryMaxResultsDefault,
|
|
3153
|
+
getTestCaseTestStepsQueryStartAtDefault,
|
|
3479
3154
|
getTestCaseTestStepsQueryStartAtMax,
|
|
3480
3155
|
getTestCaseTestStepsQueryStartAtMin,
|
|
3481
3156
|
getTestCaseVersion200ResponseEstimatedTimeMin,
|
|
@@ -3485,25 +3160,23 @@ export {
|
|
|
3485
3160
|
getTestCaseVersion200ResponseNameRegExp,
|
|
3486
3161
|
getTestCaseVersion200ResponseOwnerAccountIdRegExp,
|
|
3487
3162
|
getTestCaseVersionPathTestCaseKeyRegExp,
|
|
3488
|
-
getTestCycle200Response,
|
|
3489
3163
|
getTestCycle200ResponseKeyRegExp,
|
|
3490
3164
|
getTestCycle200ResponseNameRegExp,
|
|
3491
3165
|
getTestCycle200ResponseOwnerAccountIdRegExp,
|
|
3492
3166
|
getTestCycleLinksPathTestCycleIdOrKeyRegExp,
|
|
3493
|
-
getTestCycleParams,
|
|
3494
3167
|
getTestCyclePathTestCycleIdOrKeyRegExp,
|
|
3495
|
-
getTestExecution200Response,
|
|
3496
3168
|
getTestExecution200ResponseAssignedToIdRegExp,
|
|
3497
3169
|
getTestExecution200ResponseEstimatedTimeMin,
|
|
3498
3170
|
getTestExecution200ResponseExecutedByIdRegExp,
|
|
3499
3171
|
getTestExecution200ResponseExecutionTimeMin,
|
|
3500
3172
|
getTestExecution200ResponseKeyRegExp,
|
|
3501
|
-
getTestExecutionParams,
|
|
3502
3173
|
getTestExecutionPathTestExecutionIdOrKeyRegExp,
|
|
3503
|
-
|
|
3504
|
-
|
|
3174
|
+
getTestExecutionQueryIncludeStepLinksDefault,
|
|
3175
|
+
getTestExecutionTestSteps200ResponseOneStartAtMin,
|
|
3176
|
+
getTestExecutionTestSteps200ResponseOneTotalMin,
|
|
3505
3177
|
getTestExecutionTestStepsPathTestExecutionIdOrKeyRegExp,
|
|
3506
3178
|
getTestExecutionTestStepsQueryMaxResultsDefault,
|
|
3179
|
+
getTestExecutionTestStepsQueryStartAtDefault,
|
|
3507
3180
|
getTestExecutionTestStepsQueryStartAtMax,
|
|
3508
3181
|
getTestExecutionTestStepsQueryStartAtMin,
|
|
3509
3182
|
getTestExecutionTestStepsQueryTestDataRowNumberMin,
|
|
@@ -3513,137 +3186,143 @@ export {
|
|
|
3513
3186
|
getTestPlan200ResponseNameRegExp,
|
|
3514
3187
|
getTestPlan200ResponseOwnerAccountIdRegExp,
|
|
3515
3188
|
getTestPlanPathTestPlanIdOrKeyRegExp,
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3189
|
+
listEnvironments200ResponseOneStartAtMin,
|
|
3190
|
+
listEnvironments200ResponseOneTotalMin,
|
|
3191
|
+
listEnvironments200ResponseTwoValuesItemOneIndexMin,
|
|
3192
|
+
listEnvironments200ResponseTwoValuesItemOneNameMax,
|
|
3193
|
+
listEnvironments200ResponseTwoValuesItemOneNameRegExp,
|
|
3194
|
+
listEnvironments200ResponseTwoValuesItemTwoArchivedDefault,
|
|
3522
3195
|
listEnvironmentsQueryMaxResultsDefault,
|
|
3523
|
-
listEnvironmentsQueryParams,
|
|
3524
3196
|
listEnvironmentsQueryProjectKeyRegExp,
|
|
3197
|
+
listEnvironmentsQueryStartAtDefault,
|
|
3525
3198
|
listEnvironmentsQueryStartAtMax,
|
|
3526
3199
|
listEnvironmentsQueryStartAtMin,
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3200
|
+
listFolders200ResponseOneStartAtMin,
|
|
3201
|
+
listFolders200ResponseOneTotalMin,
|
|
3202
|
+
listFolders200ResponseTwoValuesItemIndexMin,
|
|
3203
|
+
listFolders200ResponseTwoValuesItemNameMax,
|
|
3204
|
+
listFolders200ResponseTwoValuesItemNameRegExp,
|
|
3532
3205
|
listFoldersQueryMaxResultsDefault,
|
|
3533
3206
|
listFoldersQueryProjectKeyRegExp,
|
|
3207
|
+
listFoldersQueryStartAtDefault,
|
|
3534
3208
|
listFoldersQueryStartAtMax,
|
|
3535
3209
|
listFoldersQueryStartAtMin,
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3210
|
+
listPriorities200ResponseOneStartAtMin,
|
|
3211
|
+
listPriorities200ResponseOneTotalMin,
|
|
3212
|
+
listPriorities200ResponseTwoValuesItemOneIndexMin,
|
|
3213
|
+
listPriorities200ResponseTwoValuesItemOneNameMax,
|
|
3214
|
+
listPriorities200ResponseTwoValuesItemOneNameRegExp,
|
|
3215
|
+
listPriorities200ResponseTwoValuesItemTwoColorRegExp,
|
|
3216
|
+
listPriorities200ResponseTwoValuesItemTwoDefaultDefault,
|
|
3543
3217
|
listPrioritiesQueryMaxResultsDefault,
|
|
3544
|
-
listPrioritiesQueryParams,
|
|
3545
3218
|
listPrioritiesQueryProjectKeyRegExp,
|
|
3219
|
+
listPrioritiesQueryStartAtDefault,
|
|
3546
3220
|
listPrioritiesQueryStartAtMax,
|
|
3547
3221
|
listPrioritiesQueryStartAtMin,
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
listProjects200ResponseTotalMin,
|
|
3222
|
+
listProjects200ResponseOneStartAtMin,
|
|
3223
|
+
listProjects200ResponseOneTotalMin,
|
|
3551
3224
|
listProjectsQueryMaxResultsDefault,
|
|
3552
|
-
|
|
3225
|
+
listProjectsQueryStartAtDefault,
|
|
3553
3226
|
listProjectsQueryStartAtMax,
|
|
3554
3227
|
listProjectsQueryStartAtMin,
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3228
|
+
listStatuses200ResponseOneStartAtMin,
|
|
3229
|
+
listStatuses200ResponseOneTotalMin,
|
|
3230
|
+
listStatuses200ResponseTwoValuesItemOneIndexMin,
|
|
3231
|
+
listStatuses200ResponseTwoValuesItemOneNameMax,
|
|
3232
|
+
listStatuses200ResponseTwoValuesItemOneNameRegExp,
|
|
3233
|
+
listStatuses200ResponseTwoValuesItemTwoArchivedDefault,
|
|
3234
|
+
listStatuses200ResponseTwoValuesItemTwoDefaultDefault,
|
|
3561
3235
|
listStatusesQueryMaxResultsDefault,
|
|
3562
|
-
listStatusesQueryParams,
|
|
3563
3236
|
listStatusesQueryProjectKeyRegExp,
|
|
3237
|
+
listStatusesQueryStartAtDefault,
|
|
3564
3238
|
listStatusesQueryStartAtMax,
|
|
3565
3239
|
listStatusesQueryStartAtMin,
|
|
3566
|
-
|
|
3567
|
-
|
|
3240
|
+
listTestCaseVersions200ResponseOneStartAtMin,
|
|
3241
|
+
listTestCaseVersions200ResponseOneTotalMin,
|
|
3568
3242
|
listTestCaseVersionsPathTestCaseKeyRegExp,
|
|
3569
3243
|
listTestCaseVersionsQueryMaxResultsDefault,
|
|
3244
|
+
listTestCaseVersionsQueryStartAtDefault,
|
|
3570
3245
|
listTestCaseVersionsQueryStartAtMax,
|
|
3571
3246
|
listTestCaseVersionsQueryStartAtMin,
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
listTestCasesCursorPaginated200ResponseValuesItemOwnerAccountIdRegExp,
|
|
3247
|
+
listTestCases200ResponseOneStartAtMin,
|
|
3248
|
+
listTestCases200ResponseOneTotalMin,
|
|
3249
|
+
listTestCases200ResponseTwoValuesItemEstimatedTimeMin,
|
|
3250
|
+
listTestCases200ResponseTwoValuesItemKeyRegExp,
|
|
3251
|
+
listTestCases200ResponseTwoValuesItemLabelsMax,
|
|
3252
|
+
listTestCases200ResponseTwoValuesItemNameMax,
|
|
3253
|
+
listTestCases200ResponseTwoValuesItemNameRegExp,
|
|
3254
|
+
listTestCases200ResponseTwoValuesItemOwnerAccountIdRegExp,
|
|
3255
|
+
listTestCasesCursorPaginated200ResponseOneLimitMin,
|
|
3256
|
+
listTestCasesCursorPaginated200ResponseOneNextStartAtIdMin,
|
|
3257
|
+
listTestCasesCursorPaginated200ResponseTwoValuesItemEstimatedTimeMin,
|
|
3258
|
+
listTestCasesCursorPaginated200ResponseTwoValuesItemKeyRegExp,
|
|
3259
|
+
listTestCasesCursorPaginated200ResponseTwoValuesItemLabelsMax,
|
|
3260
|
+
listTestCasesCursorPaginated200ResponseTwoValuesItemNameMax,
|
|
3261
|
+
listTestCasesCursorPaginated200ResponseTwoValuesItemNameRegExp,
|
|
3262
|
+
listTestCasesCursorPaginated200ResponseTwoValuesItemOwnerAccountIdRegExp,
|
|
3589
3263
|
listTestCasesCursorPaginatedQueryLimitDefault,
|
|
3590
3264
|
listTestCasesCursorPaginatedQueryLimitMax,
|
|
3591
|
-
listTestCasesCursorPaginatedQueryParams,
|
|
3592
3265
|
listTestCasesCursorPaginatedQueryProjectKeyRegExp,
|
|
3266
|
+
listTestCasesCursorPaginatedQueryStartAtIdDefault,
|
|
3593
3267
|
listTestCasesCursorPaginatedQueryStartAtIdMin,
|
|
3594
3268
|
listTestCasesQueryMaxResultsDefault,
|
|
3595
3269
|
listTestCasesQueryProjectKeyRegExp,
|
|
3270
|
+
listTestCasesQueryStartAtDefault,
|
|
3596
3271
|
listTestCasesQueryStartAtMax,
|
|
3597
3272
|
listTestCasesQueryStartAtMin,
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
listTestCycles200ResponseValuesItemOwnerAccountIdRegExp,
|
|
3273
|
+
listTestCycles200ResponseOneStartAtMin,
|
|
3274
|
+
listTestCycles200ResponseOneTotalMin,
|
|
3275
|
+
listTestCycles200ResponseTwoValuesItemKeyRegExp,
|
|
3276
|
+
listTestCycles200ResponseTwoValuesItemNameRegExp,
|
|
3277
|
+
listTestCycles200ResponseTwoValuesItemOwnerAccountIdRegExp,
|
|
3604
3278
|
listTestCyclesQueryMaxResultsDefault,
|
|
3605
|
-
listTestCyclesQueryParams,
|
|
3606
3279
|
listTestCyclesQueryProjectKeyRegExp,
|
|
3280
|
+
listTestCyclesQueryStartAtDefault,
|
|
3607
3281
|
listTestCyclesQueryStartAtMax,
|
|
3608
3282
|
listTestCyclesQueryStartAtMin,
|
|
3609
3283
|
listTestExecutionLinksPathTestExecutionIdOrKeyRegExp,
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3284
|
+
listTestExecutions200ResponseOneStartAtMin,
|
|
3285
|
+
listTestExecutions200ResponseOneTotalMin,
|
|
3286
|
+
listTestExecutions200ResponseTwoValuesItemAssignedToIdRegExp,
|
|
3287
|
+
listTestExecutions200ResponseTwoValuesItemEstimatedTimeMin,
|
|
3288
|
+
listTestExecutions200ResponseTwoValuesItemExecutedByIdRegExp,
|
|
3289
|
+
listTestExecutions200ResponseTwoValuesItemExecutionTimeMin,
|
|
3290
|
+
listTestExecutions200ResponseTwoValuesItemKeyRegExp,
|
|
3291
|
+
listTestExecutionsNextgen200ResponseOneLimitMin,
|
|
3292
|
+
listTestExecutionsNextgen200ResponseOneNextStartAtIdMin,
|
|
3293
|
+
listTestExecutionsNextgen200ResponseTwoValuesItemAssignedToIdRegExp,
|
|
3294
|
+
listTestExecutionsNextgen200ResponseTwoValuesItemEstimatedTimeMin,
|
|
3295
|
+
listTestExecutionsNextgen200ResponseTwoValuesItemExecutedByIdRegExp,
|
|
3296
|
+
listTestExecutionsNextgen200ResponseTwoValuesItemExecutionTimeMin,
|
|
3297
|
+
listTestExecutionsNextgen200ResponseTwoValuesItemKeyRegExp,
|
|
3298
|
+
listTestExecutionsNextgenQueryIncludeStepLinksDefault,
|
|
3625
3299
|
listTestExecutionsNextgenQueryLimitDefault,
|
|
3626
3300
|
listTestExecutionsNextgenQueryLimitMax,
|
|
3627
|
-
|
|
3301
|
+
listTestExecutionsNextgenQueryOnlyLastExecutionsDefault,
|
|
3628
3302
|
listTestExecutionsNextgenQueryProjectKeyRegExp,
|
|
3303
|
+
listTestExecutionsNextgenQueryStartAtIdDefault,
|
|
3629
3304
|
listTestExecutionsNextgenQueryStartAtIdMin,
|
|
3630
3305
|
listTestExecutionsNextgenQueryTestCaseRegExp,
|
|
3631
3306
|
listTestExecutionsNextgenQueryTestCycleRegExp,
|
|
3307
|
+
listTestExecutionsQueryIncludeStepLinksDefault,
|
|
3632
3308
|
listTestExecutionsQueryMaxResultsDefault,
|
|
3309
|
+
listTestExecutionsQueryOnlyLastExecutionsDefault,
|
|
3633
3310
|
listTestExecutionsQueryProjectKeyRegExp,
|
|
3311
|
+
listTestExecutionsQueryStartAtDefault,
|
|
3634
3312
|
listTestExecutionsQueryStartAtMax,
|
|
3635
3313
|
listTestExecutionsQueryStartAtMin,
|
|
3636
3314
|
listTestExecutionsQueryTestCaseRegExp,
|
|
3637
3315
|
listTestExecutionsQueryTestCycleRegExp,
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3316
|
+
listTestPlans200ResponseOneStartAtMin,
|
|
3317
|
+
listTestPlans200ResponseOneTotalMin,
|
|
3318
|
+
listTestPlans200ResponseTwoValuesItemKeyRegExp,
|
|
3319
|
+
listTestPlans200ResponseTwoValuesItemLabelsMax,
|
|
3320
|
+
listTestPlans200ResponseTwoValuesItemNameMax,
|
|
3321
|
+
listTestPlans200ResponseTwoValuesItemNameRegExp,
|
|
3322
|
+
listTestPlans200ResponseTwoValuesItemOwnerAccountIdRegExp,
|
|
3645
3323
|
listTestPlansQueryMaxResultsDefault,
|
|
3646
3324
|
listTestPlansQueryProjectKeyRegExp,
|
|
3325
|
+
listTestPlansQueryStartAtDefault,
|
|
3647
3326
|
listTestPlansQueryStartAtMax,
|
|
3648
3327
|
listTestPlansQueryStartAtMin,
|
|
3649
3328
|
putTestExecutionTestStepsBodyStepsItemStatusNameMax,
|
|
@@ -3661,20 +3340,16 @@ export {
|
|
|
3661
3340
|
updateStatusBodyDescriptionMax,
|
|
3662
3341
|
updateStatusBodyIndexMin,
|
|
3663
3342
|
updateStatusBodyNameMax,
|
|
3664
|
-
updateTestCaseBody,
|
|
3665
3343
|
updateTestCaseBodyEstimatedTimeMin,
|
|
3666
3344
|
updateTestCaseBodyKeyRegExp,
|
|
3667
3345
|
updateTestCaseBodyLabelsMax,
|
|
3668
3346
|
updateTestCaseBodyNameMax,
|
|
3669
3347
|
updateTestCaseBodyNameRegExp,
|
|
3670
3348
|
updateTestCaseBodyOwnerAccountIdRegExp,
|
|
3671
|
-
updateTestCaseParams,
|
|
3672
3349
|
updateTestCasePathTestCaseKeyRegExp,
|
|
3673
|
-
updateTestCycleBody,
|
|
3674
3350
|
updateTestCycleBodyKeyRegExp,
|
|
3675
3351
|
updateTestCycleBodyNameRegExp,
|
|
3676
3352
|
updateTestCycleBodyOwnerAccountIdRegExp,
|
|
3677
|
-
updateTestCycleParams,
|
|
3678
3353
|
updateTestCyclePathTestCycleIdOrKeyRegExp,
|
|
3679
3354
|
updateTestExecutionBodyAssignedToIdRegExp,
|
|
3680
3355
|
updateTestExecutionBodyExecutedByIdRegExp,
|