@bun913/mcp-testrail 0.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +101 -0
  3. package/dist/client/api/baseClient.d.ts +39 -0
  4. package/dist/client/api/baseClient.js +103 -0
  5. package/dist/client/api/baseClient.js.map +1 -0
  6. package/dist/client/api/cases.d.ts +102 -0
  7. package/dist/client/api/cases.js +200 -0
  8. package/dist/client/api/cases.js.map +1 -0
  9. package/dist/client/api/index.d.ts +39 -0
  10. package/dist/client/api/index.js +50 -0
  11. package/dist/client/api/index.js.map +1 -0
  12. package/dist/client/api/milestones.d.ts +12 -0
  13. package/dist/client/api/milestones.js +22 -0
  14. package/dist/client/api/milestones.js.map +1 -0
  15. package/dist/client/api/plans.d.ts +12 -0
  16. package/dist/client/api/plans.js +20 -0
  17. package/dist/client/api/plans.js.map +1 -0
  18. package/dist/client/api/projects.d.ts +12 -0
  19. package/dist/client/api/projects.js +31 -0
  20. package/dist/client/api/projects.js.map +1 -0
  21. package/dist/client/api/results.d.ts +56 -0
  22. package/dist/client/api/results.js +125 -0
  23. package/dist/client/api/results.js.map +1 -0
  24. package/dist/client/api/runs.d.ts +40 -0
  25. package/dist/client/api/runs.js +79 -0
  26. package/dist/client/api/runs.js.map +1 -0
  27. package/dist/client/api/sections.d.ts +40 -0
  28. package/dist/client/api/sections.js +89 -0
  29. package/dist/client/api/sections.js.map +1 -0
  30. package/dist/client/api/sharedSteps.d.ts +11 -0
  31. package/dist/client/api/sharedSteps.js +20 -0
  32. package/dist/client/api/sharedSteps.js.map +1 -0
  33. package/dist/client/api/suites.d.ts +36 -0
  34. package/dist/client/api/suites.js +63 -0
  35. package/dist/client/api/suites.js.map +1 -0
  36. package/dist/client/api/tests.d.ts +32 -0
  37. package/dist/client/api/tests.js +47 -0
  38. package/dist/client/api/tests.js.map +1 -0
  39. package/dist/client/api/utils.d.ts +7 -0
  40. package/dist/client/api/utils.js +24 -0
  41. package/dist/client/api/utils.js.map +1 -0
  42. package/dist/index.d.ts +1 -0
  43. package/dist/index.js +5 -0
  44. package/dist/index.js.map +1 -0
  45. package/dist/server/api/cases.d.ts +8 -0
  46. package/dist/server/api/cases.js +431 -0
  47. package/dist/server/api/cases.js.map +1 -0
  48. package/dist/server/api/index.d.ts +18 -0
  49. package/dist/server/api/index.js +40 -0
  50. package/dist/server/api/index.js.map +1 -0
  51. package/dist/server/api/milestones.d.ts +8 -0
  52. package/dist/server/api/milestones.js +29 -0
  53. package/dist/server/api/milestones.js.map +1 -0
  54. package/dist/server/api/plans.d.ts +8 -0
  55. package/dist/server/api/plans.js +29 -0
  56. package/dist/server/api/plans.js.map +1 -0
  57. package/dist/server/api/projects.d.ts +8 -0
  58. package/dist/server/api/projects.js +51 -0
  59. package/dist/server/api/projects.js.map +1 -0
  60. package/dist/server/api/results.d.ts +8 -0
  61. package/dist/server/api/results.js +164 -0
  62. package/dist/server/api/results.js.map +1 -0
  63. package/dist/server/api/runs.d.ts +8 -0
  64. package/dist/server/api/runs.js +113 -0
  65. package/dist/server/api/runs.js.map +1 -0
  66. package/dist/server/api/sections.d.ts +8 -0
  67. package/dist/server/api/sections.js +138 -0
  68. package/dist/server/api/sections.js.map +1 -0
  69. package/dist/server/api/sharedSteps.d.ts +8 -0
  70. package/dist/server/api/sharedSteps.js +26 -0
  71. package/dist/server/api/sharedSteps.js.map +1 -0
  72. package/dist/server/api/suites.d.ts +8 -0
  73. package/dist/server/api/suites.js +111 -0
  74. package/dist/server/api/suites.js.map +1 -0
  75. package/dist/server/api/tests.d.ts +8 -0
  76. package/dist/server/api/tests.js +68 -0
  77. package/dist/server/api/tests.js.map +1 -0
  78. package/dist/server/api/utils.d.ts +7 -0
  79. package/dist/server/api/utils.js +25 -0
  80. package/dist/server/api/utils.js.map +1 -0
  81. package/dist/server/server.d.ts +2 -0
  82. package/dist/server/server.js +70 -0
  83. package/dist/server/server.js.map +1 -0
  84. package/dist/server/templates.d.ts +8 -0
  85. package/dist/server/templates.js +43 -0
  86. package/dist/server/templates.js.map +1 -0
  87. package/dist/shared/schemas/cases.d.ts +668 -0
  88. package/dist/shared/schemas/cases.js +178 -0
  89. package/dist/shared/schemas/cases.js.map +1 -0
  90. package/dist/shared/schemas/common.d.ts +117 -0
  91. package/dist/shared/schemas/common.js +50 -0
  92. package/dist/shared/schemas/common.js.map +1 -0
  93. package/dist/shared/schemas/index.d.ts +10 -0
  94. package/dist/shared/schemas/index.js +23 -0
  95. package/dist/shared/schemas/index.js.map +1 -0
  96. package/dist/shared/schemas/milestones.d.ts +59 -0
  97. package/dist/shared/schemas/milestones.js +26 -0
  98. package/dist/shared/schemas/milestones.js.map +1 -0
  99. package/dist/shared/schemas/plans.d.ts +416 -0
  100. package/dist/shared/schemas/plans.js +43 -0
  101. package/dist/shared/schemas/plans.js.map +1 -0
  102. package/dist/shared/schemas/projects.d.ts +135 -0
  103. package/dist/shared/schemas/projects.js +61 -0
  104. package/dist/shared/schemas/projects.js.map +1 -0
  105. package/dist/shared/schemas/results.d.ts +407 -0
  106. package/dist/shared/schemas/results.js +178 -0
  107. package/dist/shared/schemas/results.js.map +1 -0
  108. package/dist/shared/schemas/runs.d.ts +267 -0
  109. package/dist/shared/schemas/runs.js +133 -0
  110. package/dist/shared/schemas/runs.js.map +1 -0
  111. package/dist/shared/schemas/sections.d.ts +136 -0
  112. package/dist/shared/schemas/sections.js +68 -0
  113. package/dist/shared/schemas/sections.js.map +1 -0
  114. package/dist/shared/schemas/sharedSteps.d.ts +135 -0
  115. package/dist/shared/schemas/sharedSteps.js +65 -0
  116. package/dist/shared/schemas/sharedSteps.js.map +1 -0
  117. package/dist/shared/schemas/suites.d.ts +120 -0
  118. package/dist/shared/schemas/suites.js +44 -0
  119. package/dist/shared/schemas/suites.js.map +1 -0
  120. package/dist/shared/schemas/tests.d.ts +87 -0
  121. package/dist/shared/schemas/tests.js +52 -0
  122. package/dist/shared/schemas/tests.js.map +1 -0
  123. package/dist/sse.d.ts +1 -0
  124. package/dist/sse.js +5 -0
  125. package/dist/sse.js.map +1 -0
  126. package/dist/stdio.d.ts +1 -0
  127. package/dist/stdio.js +52 -0
  128. package/dist/stdio.js.map +1 -0
  129. package/package.json +48 -0
@@ -0,0 +1,668 @@
1
+ import { z } from "zod";
2
+ export declare const getTestCaseSchema: z.ZodObject<{
3
+ caseId: z.ZodNumber;
4
+ }, "strip", z.ZodTypeAny, {
5
+ caseId: number;
6
+ }, {
7
+ caseId: number;
8
+ }>;
9
+ export declare const getTestCasesSchema: z.ZodObject<{
10
+ projectId: z.ZodNumber;
11
+ suiteId: z.ZodNumber;
12
+ }, "strip", z.ZodTypeAny, {
13
+ projectId: number;
14
+ suiteId: number;
15
+ }, {
16
+ projectId: number;
17
+ suiteId: number;
18
+ }>;
19
+ export declare const addTestCaseSchema: z.ZodObject<{
20
+ sectionId: z.ZodNumber;
21
+ title: z.ZodString;
22
+ typeId: z.ZodOptional<z.ZodNumber>;
23
+ priorityId: z.ZodOptional<z.ZodNumber>;
24
+ estimate: z.ZodOptional<z.ZodString>;
25
+ milestoneId: z.ZodOptional<z.ZodNumber>;
26
+ refs: z.ZodOptional<z.ZodString>;
27
+ customPrerequisites: z.ZodOptional<z.ZodString>;
28
+ customSteps: z.ZodOptional<z.ZodString>;
29
+ customExpected: z.ZodOptional<z.ZodString>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ sectionId: number;
32
+ title: string;
33
+ refs?: string | undefined;
34
+ typeId?: number | undefined;
35
+ priorityId?: number | undefined;
36
+ estimate?: string | undefined;
37
+ milestoneId?: number | undefined;
38
+ customPrerequisites?: string | undefined;
39
+ customSteps?: string | undefined;
40
+ customExpected?: string | undefined;
41
+ }, {
42
+ sectionId: number;
43
+ title: string;
44
+ refs?: string | undefined;
45
+ typeId?: number | undefined;
46
+ priorityId?: number | undefined;
47
+ estimate?: string | undefined;
48
+ milestoneId?: number | undefined;
49
+ customPrerequisites?: string | undefined;
50
+ customSteps?: string | undefined;
51
+ customExpected?: string | undefined;
52
+ }>;
53
+ export declare const updateTestCaseSchema: z.ZodObject<{
54
+ caseId: z.ZodNumber;
55
+ title: z.ZodOptional<z.ZodString>;
56
+ typeId: z.ZodOptional<z.ZodNumber>;
57
+ priorityId: z.ZodOptional<z.ZodNumber>;
58
+ estimate: z.ZodOptional<z.ZodString>;
59
+ milestoneId: z.ZodOptional<z.ZodNumber>;
60
+ refs: z.ZodOptional<z.ZodString>;
61
+ customPrerequisites: z.ZodOptional<z.ZodString>;
62
+ customSteps: z.ZodOptional<z.ZodString>;
63
+ customExpected: z.ZodOptional<z.ZodString>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ caseId: number;
66
+ refs?: string | undefined;
67
+ title?: string | undefined;
68
+ typeId?: number | undefined;
69
+ priorityId?: number | undefined;
70
+ estimate?: string | undefined;
71
+ milestoneId?: number | undefined;
72
+ customPrerequisites?: string | undefined;
73
+ customSteps?: string | undefined;
74
+ customExpected?: string | undefined;
75
+ }, {
76
+ caseId: number;
77
+ refs?: string | undefined;
78
+ title?: string | undefined;
79
+ typeId?: number | undefined;
80
+ priorityId?: number | undefined;
81
+ estimate?: string | undefined;
82
+ milestoneId?: number | undefined;
83
+ customPrerequisites?: string | undefined;
84
+ customSteps?: string | undefined;
85
+ customExpected?: string | undefined;
86
+ }>;
87
+ export declare const deleteTestCaseSchema: z.ZodObject<{
88
+ caseId: z.ZodNumber;
89
+ }, "strip", z.ZodTypeAny, {
90
+ caseId: number;
91
+ }, {
92
+ caseId: number;
93
+ }>;
94
+ export declare const getTestCaseTypesSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
95
+ export declare const getTestCaseFieldsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
96
+ export declare const copyTestCasesToSectionSchema: z.ZodObject<{
97
+ caseIds: z.ZodArray<z.ZodNumber, "many">;
98
+ sectionId: z.ZodNumber;
99
+ }, "strip", z.ZodTypeAny, {
100
+ sectionId: number;
101
+ caseIds: number[];
102
+ }, {
103
+ sectionId: number;
104
+ caseIds: number[];
105
+ }>;
106
+ export declare const moveTestCasesToSectionSchema: z.ZodObject<{
107
+ caseIds: z.ZodArray<z.ZodNumber, "many">;
108
+ sectionId: z.ZodNumber;
109
+ }, "strip", z.ZodTypeAny, {
110
+ sectionId: number;
111
+ caseIds: number[];
112
+ }, {
113
+ sectionId: number;
114
+ caseIds: number[];
115
+ }>;
116
+ export declare const getTestCaseHistorySchema: z.ZodObject<{
117
+ caseId: z.ZodNumber;
118
+ }, "strip", z.ZodTypeAny, {
119
+ caseId: number;
120
+ }, {
121
+ caseId: number;
122
+ }>;
123
+ export declare const updateTestCasesSchema: z.ZodObject<{
124
+ projectId: z.ZodNumber;
125
+ suiteId: z.ZodNumber;
126
+ caseIds: z.ZodArray<z.ZodNumber, "many">;
127
+ title: z.ZodOptional<z.ZodString>;
128
+ typeId: z.ZodOptional<z.ZodNumber>;
129
+ priorityId: z.ZodOptional<z.ZodNumber>;
130
+ estimate: z.ZodOptional<z.ZodString>;
131
+ milestoneId: z.ZodOptional<z.ZodNumber>;
132
+ refs: z.ZodOptional<z.ZodString>;
133
+ customPrerequisites: z.ZodOptional<z.ZodString>;
134
+ customSteps: z.ZodOptional<z.ZodString>;
135
+ customExpected: z.ZodOptional<z.ZodString>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ projectId: number;
138
+ suiteId: number;
139
+ caseIds: number[];
140
+ refs?: string | undefined;
141
+ title?: string | undefined;
142
+ typeId?: number | undefined;
143
+ priorityId?: number | undefined;
144
+ estimate?: string | undefined;
145
+ milestoneId?: number | undefined;
146
+ customPrerequisites?: string | undefined;
147
+ customSteps?: string | undefined;
148
+ customExpected?: string | undefined;
149
+ }, {
150
+ projectId: number;
151
+ suiteId: number;
152
+ caseIds: number[];
153
+ refs?: string | undefined;
154
+ title?: string | undefined;
155
+ typeId?: number | undefined;
156
+ priorityId?: number | undefined;
157
+ estimate?: string | undefined;
158
+ milestoneId?: number | undefined;
159
+ customPrerequisites?: string | undefined;
160
+ customSteps?: string | undefined;
161
+ customExpected?: string | undefined;
162
+ }>;
163
+ export declare const getTestCaseInputSchema: z.ZodObject<{
164
+ caseId: z.ZodNumber;
165
+ }, "strip", z.ZodTypeAny, {
166
+ caseId: number;
167
+ }, {
168
+ caseId: number;
169
+ }>;
170
+ export declare const getTestCasesInputSchema: z.ZodObject<{
171
+ projectId: z.ZodNumber;
172
+ suiteId: z.ZodNumber;
173
+ }, "strip", z.ZodTypeAny, {
174
+ projectId: number;
175
+ suiteId: number;
176
+ }, {
177
+ projectId: number;
178
+ suiteId: number;
179
+ }>;
180
+ export declare const addTestCaseInputSchema: z.ZodObject<{
181
+ sectionId: z.ZodNumber;
182
+ title: z.ZodString;
183
+ typeId: z.ZodOptional<z.ZodNumber>;
184
+ priorityId: z.ZodOptional<z.ZodNumber>;
185
+ estimate: z.ZodOptional<z.ZodString>;
186
+ milestoneId: z.ZodOptional<z.ZodNumber>;
187
+ refs: z.ZodOptional<z.ZodString>;
188
+ customPrerequisites: z.ZodOptional<z.ZodString>;
189
+ customSteps: z.ZodOptional<z.ZodString>;
190
+ customExpected: z.ZodOptional<z.ZodString>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ sectionId: number;
193
+ title: string;
194
+ refs?: string | undefined;
195
+ typeId?: number | undefined;
196
+ priorityId?: number | undefined;
197
+ estimate?: string | undefined;
198
+ milestoneId?: number | undefined;
199
+ customPrerequisites?: string | undefined;
200
+ customSteps?: string | undefined;
201
+ customExpected?: string | undefined;
202
+ }, {
203
+ sectionId: number;
204
+ title: string;
205
+ refs?: string | undefined;
206
+ typeId?: number | undefined;
207
+ priorityId?: number | undefined;
208
+ estimate?: string | undefined;
209
+ milestoneId?: number | undefined;
210
+ customPrerequisites?: string | undefined;
211
+ customSteps?: string | undefined;
212
+ customExpected?: string | undefined;
213
+ }>;
214
+ export declare const updateTestCaseInputSchema: z.ZodObject<{
215
+ caseId: z.ZodNumber;
216
+ title: z.ZodOptional<z.ZodString>;
217
+ typeId: z.ZodOptional<z.ZodNumber>;
218
+ priorityId: z.ZodOptional<z.ZodNumber>;
219
+ estimate: z.ZodOptional<z.ZodString>;
220
+ milestoneId: z.ZodOptional<z.ZodNumber>;
221
+ refs: z.ZodOptional<z.ZodString>;
222
+ customPrerequisites: z.ZodOptional<z.ZodString>;
223
+ customSteps: z.ZodOptional<z.ZodString>;
224
+ customExpected: z.ZodOptional<z.ZodString>;
225
+ }, "strip", z.ZodTypeAny, {
226
+ caseId: number;
227
+ refs?: string | undefined;
228
+ title?: string | undefined;
229
+ typeId?: number | undefined;
230
+ priorityId?: number | undefined;
231
+ estimate?: string | undefined;
232
+ milestoneId?: number | undefined;
233
+ customPrerequisites?: string | undefined;
234
+ customSteps?: string | undefined;
235
+ customExpected?: string | undefined;
236
+ }, {
237
+ caseId: number;
238
+ refs?: string | undefined;
239
+ title?: string | undefined;
240
+ typeId?: number | undefined;
241
+ priorityId?: number | undefined;
242
+ estimate?: string | undefined;
243
+ milestoneId?: number | undefined;
244
+ customPrerequisites?: string | undefined;
245
+ customSteps?: string | undefined;
246
+ customExpected?: string | undefined;
247
+ }>;
248
+ export declare const deleteTestCaseInputSchema: z.ZodObject<{
249
+ caseId: z.ZodNumber;
250
+ }, "strip", z.ZodTypeAny, {
251
+ caseId: number;
252
+ }, {
253
+ caseId: number;
254
+ }>;
255
+ export declare const getTestCaseTypesInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
256
+ export declare const getTestCaseFieldsInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
257
+ export declare const copyTestCasesToSectionInputSchema: z.ZodObject<{
258
+ caseIds: z.ZodArray<z.ZodNumber, "many">;
259
+ sectionId: z.ZodNumber;
260
+ }, "strip", z.ZodTypeAny, {
261
+ sectionId: number;
262
+ caseIds: number[];
263
+ }, {
264
+ sectionId: number;
265
+ caseIds: number[];
266
+ }>;
267
+ export declare const moveTestCasesToSectionInputSchema: z.ZodObject<{
268
+ caseIds: z.ZodArray<z.ZodNumber, "many">;
269
+ sectionId: z.ZodNumber;
270
+ }, "strip", z.ZodTypeAny, {
271
+ sectionId: number;
272
+ caseIds: number[];
273
+ }, {
274
+ sectionId: number;
275
+ caseIds: number[];
276
+ }>;
277
+ export declare const getTestCaseHistoryInputSchema: z.ZodObject<{
278
+ caseId: z.ZodNumber;
279
+ }, "strip", z.ZodTypeAny, {
280
+ caseId: number;
281
+ }, {
282
+ caseId: number;
283
+ }>;
284
+ export declare const updateTestCasesInputSchema: z.ZodObject<{
285
+ projectId: z.ZodNumber;
286
+ suiteId: z.ZodNumber;
287
+ caseIds: z.ZodArray<z.ZodNumber, "many">;
288
+ title: z.ZodOptional<z.ZodString>;
289
+ typeId: z.ZodOptional<z.ZodNumber>;
290
+ priorityId: z.ZodOptional<z.ZodNumber>;
291
+ estimate: z.ZodOptional<z.ZodString>;
292
+ milestoneId: z.ZodOptional<z.ZodNumber>;
293
+ refs: z.ZodOptional<z.ZodString>;
294
+ customPrerequisites: z.ZodOptional<z.ZodString>;
295
+ customSteps: z.ZodOptional<z.ZodString>;
296
+ customExpected: z.ZodOptional<z.ZodString>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ projectId: number;
299
+ suiteId: number;
300
+ caseIds: number[];
301
+ refs?: string | undefined;
302
+ title?: string | undefined;
303
+ typeId?: number | undefined;
304
+ priorityId?: number | undefined;
305
+ estimate?: string | undefined;
306
+ milestoneId?: number | undefined;
307
+ customPrerequisites?: string | undefined;
308
+ customSteps?: string | undefined;
309
+ customExpected?: string | undefined;
310
+ }, {
311
+ projectId: number;
312
+ suiteId: number;
313
+ caseIds: number[];
314
+ refs?: string | undefined;
315
+ title?: string | undefined;
316
+ typeId?: number | undefined;
317
+ priorityId?: number | undefined;
318
+ estimate?: string | undefined;
319
+ milestoneId?: number | undefined;
320
+ customPrerequisites?: string | undefined;
321
+ customSteps?: string | undefined;
322
+ customExpected?: string | undefined;
323
+ }>;
324
+ export type GetTestCaseInput = z.infer<typeof getTestCaseInputSchema>;
325
+ export type GetTestCasesInput = z.infer<typeof getTestCasesInputSchema>;
326
+ export type AddTestCaseInput = z.infer<typeof addTestCaseInputSchema>;
327
+ export type UpdateTestCaseInput = z.infer<typeof updateTestCaseInputSchema>;
328
+ export type DeleteTestCaseInput = z.infer<typeof deleteTestCaseInputSchema>;
329
+ export type GetTestCaseTypesInput = z.infer<typeof getTestCaseTypesInputSchema>;
330
+ export type GetTestCaseFieldsInput = z.infer<typeof getTestCaseFieldsInputSchema>;
331
+ export type CopyTestCasesToSectionInput = z.infer<typeof copyTestCasesToSectionInputSchema>;
332
+ export type MoveTestCasesToSectionInput = z.infer<typeof moveTestCasesToSectionInputSchema>;
333
+ export type GetTestCaseHistoryInput = z.infer<typeof getTestCaseHistoryInputSchema>;
334
+ export type UpdateTestCasesInput = z.infer<typeof updateTestCasesInputSchema>;
335
+ /**
336
+ * TestRail API Response for Step
337
+ */
338
+ export declare const TestRailStepSchema: z.ZodObject<{
339
+ content: z.ZodString;
340
+ expected: z.ZodString;
341
+ }, "strip", z.ZodTypeAny, {
342
+ expected: string;
343
+ content: string;
344
+ }, {
345
+ expected: string;
346
+ content: string;
347
+ }>;
348
+ export type TestRailStep = z.infer<typeof TestRailStepSchema>;
349
+ /**
350
+ * TestRail API Response for Case
351
+ */
352
+ export declare const TestRailCaseSchema: z.ZodObject<{
353
+ id: z.ZodNumber;
354
+ title: z.ZodString;
355
+ section_id: z.ZodNumber;
356
+ template_id: z.ZodNumber;
357
+ type_id: z.ZodNumber;
358
+ priority_id: z.ZodNumber;
359
+ milestone_id: z.ZodNullable<z.ZodNumber>;
360
+ refs: z.ZodNullable<z.ZodString>;
361
+ created_by: z.ZodNumber;
362
+ created_on: z.ZodNumber;
363
+ updated_by: z.ZodNullable<z.ZodNumber>;
364
+ updated_on: z.ZodNullable<z.ZodNumber>;
365
+ estimate: z.ZodNullable<z.ZodString>;
366
+ estimate_forecast: z.ZodNullable<z.ZodString>;
367
+ suite_id: z.ZodNumber;
368
+ display_order: z.ZodNumber;
369
+ is_deleted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
370
+ status_id: z.ZodOptional<z.ZodNumber>;
371
+ custom_preconds: z.ZodOptional<z.ZodNullable<z.ZodString>>;
372
+ custom_steps: z.ZodOptional<z.ZodNullable<z.ZodString>>;
373
+ custom_expected: z.ZodOptional<z.ZodNullable<z.ZodString>>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ id: number;
376
+ suite_id: number;
377
+ display_order: number;
378
+ refs: string | null;
379
+ title: string;
380
+ created_by: number;
381
+ created_on: number;
382
+ updated_by: number | null;
383
+ updated_on: number | null;
384
+ estimate: string | null;
385
+ section_id: number;
386
+ template_id: number;
387
+ type_id: number;
388
+ priority_id: number;
389
+ milestone_id: number | null;
390
+ estimate_forecast: string | null;
391
+ is_deleted?: boolean | undefined;
392
+ status_id?: number | undefined;
393
+ custom_preconds?: string | null | undefined;
394
+ custom_steps?: string | null | undefined;
395
+ custom_expected?: string | null | undefined;
396
+ }, {
397
+ id: number;
398
+ suite_id: number;
399
+ display_order: number;
400
+ refs: string | null;
401
+ title: string;
402
+ created_by: number;
403
+ created_on: number;
404
+ updated_by: number | null;
405
+ updated_on: number | null;
406
+ estimate: string | null;
407
+ section_id: number;
408
+ template_id: number;
409
+ type_id: number;
410
+ priority_id: number;
411
+ milestone_id: number | null;
412
+ estimate_forecast: string | null;
413
+ is_deleted?: boolean | undefined;
414
+ status_id?: number | undefined;
415
+ custom_preconds?: string | null | undefined;
416
+ custom_steps?: string | null | undefined;
417
+ custom_expected?: string | null | undefined;
418
+ }>;
419
+ export type TestRailCase = z.infer<typeof TestRailCaseSchema>;
420
+ /**
421
+ * TestRail API Response for Case Type
422
+ */
423
+ export declare const TestRailCaseTypeSchema: z.ZodObject<{
424
+ id: z.ZodNumber;
425
+ name: z.ZodString;
426
+ is_default: z.ZodBoolean;
427
+ }, "strip", z.ZodTypeAny, {
428
+ name: string;
429
+ id: number;
430
+ is_default: boolean;
431
+ }, {
432
+ name: string;
433
+ id: number;
434
+ is_default: boolean;
435
+ }>;
436
+ export type TestRailCaseType = z.infer<typeof TestRailCaseTypeSchema>;
437
+ /**
438
+ * TestRail API Response for Case Field Config
439
+ */
440
+ export declare const TestRailCaseFieldConfigSchema: z.ZodObject<{
441
+ id: z.ZodString;
442
+ context: z.ZodObject<{
443
+ is_global: z.ZodBoolean;
444
+ project_ids: z.ZodArray<z.ZodNumber, "many">;
445
+ }, "strip", z.ZodTypeAny, {
446
+ is_global: boolean;
447
+ project_ids: number[];
448
+ }, {
449
+ is_global: boolean;
450
+ project_ids: number[];
451
+ }>;
452
+ options: z.ZodObject<{
453
+ default_value: z.ZodString;
454
+ format: z.ZodString;
455
+ is_required: z.ZodBoolean;
456
+ rows: z.ZodString;
457
+ items: z.ZodString;
458
+ }, "strip", z.ZodTypeAny, {
459
+ default_value: string;
460
+ format: string;
461
+ is_required: boolean;
462
+ rows: string;
463
+ items: string;
464
+ }, {
465
+ default_value: string;
466
+ format: string;
467
+ is_required: boolean;
468
+ rows: string;
469
+ items: string;
470
+ }>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ options: {
473
+ default_value: string;
474
+ format: string;
475
+ is_required: boolean;
476
+ rows: string;
477
+ items: string;
478
+ };
479
+ id: string;
480
+ context: {
481
+ is_global: boolean;
482
+ project_ids: number[];
483
+ };
484
+ }, {
485
+ options: {
486
+ default_value: string;
487
+ format: string;
488
+ is_required: boolean;
489
+ rows: string;
490
+ items: string;
491
+ };
492
+ id: string;
493
+ context: {
494
+ is_global: boolean;
495
+ project_ids: number[];
496
+ };
497
+ }>;
498
+ export type TestRailCaseFieldConfig = z.infer<typeof TestRailCaseFieldConfigSchema>;
499
+ /**
500
+ * TestRail API Response for Case Field
501
+ */
502
+ export declare const TestRailCaseFieldSchema: z.ZodObject<{
503
+ id: z.ZodNumber;
504
+ type_id: z.ZodNumber;
505
+ name: z.ZodString;
506
+ system_name: z.ZodString;
507
+ label: z.ZodString;
508
+ description: z.ZodString;
509
+ configs: z.ZodArray<z.ZodObject<{
510
+ id: z.ZodString;
511
+ context: z.ZodObject<{
512
+ is_global: z.ZodBoolean;
513
+ project_ids: z.ZodArray<z.ZodNumber, "many">;
514
+ }, "strip", z.ZodTypeAny, {
515
+ is_global: boolean;
516
+ project_ids: number[];
517
+ }, {
518
+ is_global: boolean;
519
+ project_ids: number[];
520
+ }>;
521
+ options: z.ZodObject<{
522
+ default_value: z.ZodString;
523
+ format: z.ZodString;
524
+ is_required: z.ZodBoolean;
525
+ rows: z.ZodString;
526
+ items: z.ZodString;
527
+ }, "strip", z.ZodTypeAny, {
528
+ default_value: string;
529
+ format: string;
530
+ is_required: boolean;
531
+ rows: string;
532
+ items: string;
533
+ }, {
534
+ default_value: string;
535
+ format: string;
536
+ is_required: boolean;
537
+ rows: string;
538
+ items: string;
539
+ }>;
540
+ }, "strip", z.ZodTypeAny, {
541
+ options: {
542
+ default_value: string;
543
+ format: string;
544
+ is_required: boolean;
545
+ rows: string;
546
+ items: string;
547
+ };
548
+ id: string;
549
+ context: {
550
+ is_global: boolean;
551
+ project_ids: number[];
552
+ };
553
+ }, {
554
+ options: {
555
+ default_value: string;
556
+ format: string;
557
+ is_required: boolean;
558
+ rows: string;
559
+ items: string;
560
+ };
561
+ id: string;
562
+ context: {
563
+ is_global: boolean;
564
+ project_ids: number[];
565
+ };
566
+ }>, "many">;
567
+ display_order: z.ZodNumber;
568
+ include_all: z.ZodBoolean;
569
+ template_ids: z.ZodArray<z.ZodNumber, "many">;
570
+ is_active: z.ZodBoolean;
571
+ status_id: z.ZodNumber;
572
+ }, "strip", z.ZodTypeAny, {
573
+ name: string;
574
+ id: number;
575
+ description: string;
576
+ display_order: number;
577
+ type_id: number;
578
+ status_id: number;
579
+ system_name: string;
580
+ label: string;
581
+ configs: {
582
+ options: {
583
+ default_value: string;
584
+ format: string;
585
+ is_required: boolean;
586
+ rows: string;
587
+ items: string;
588
+ };
589
+ id: string;
590
+ context: {
591
+ is_global: boolean;
592
+ project_ids: number[];
593
+ };
594
+ }[];
595
+ include_all: boolean;
596
+ template_ids: number[];
597
+ is_active: boolean;
598
+ }, {
599
+ name: string;
600
+ id: number;
601
+ description: string;
602
+ display_order: number;
603
+ type_id: number;
604
+ status_id: number;
605
+ system_name: string;
606
+ label: string;
607
+ configs: {
608
+ options: {
609
+ default_value: string;
610
+ format: string;
611
+ is_required: boolean;
612
+ rows: string;
613
+ items: string;
614
+ };
615
+ id: string;
616
+ context: {
617
+ is_global: boolean;
618
+ project_ids: number[];
619
+ };
620
+ }[];
621
+ include_all: boolean;
622
+ template_ids: number[];
623
+ is_active: boolean;
624
+ }>;
625
+ export type TestRailCaseField = z.infer<typeof TestRailCaseFieldSchema>;
626
+ /**
627
+ * TestRail API Response for Case History
628
+ */
629
+ export declare const TestRailCaseHistorySchema: z.ZodObject<{
630
+ id: z.ZodNumber;
631
+ case_id: z.ZodNumber;
632
+ user_id: z.ZodNumber;
633
+ timestamp: z.ZodNumber;
634
+ changes: z.ZodArray<z.ZodObject<{
635
+ field: z.ZodString;
636
+ old_value: z.ZodNullable<z.ZodString>;
637
+ new_value: z.ZodNullable<z.ZodString>;
638
+ }, "strip", z.ZodTypeAny, {
639
+ field: string;
640
+ old_value: string | null;
641
+ new_value: string | null;
642
+ }, {
643
+ field: string;
644
+ old_value: string | null;
645
+ new_value: string | null;
646
+ }>, "many">;
647
+ }, "strip", z.ZodTypeAny, {
648
+ id: number;
649
+ case_id: number;
650
+ user_id: number;
651
+ timestamp: number;
652
+ changes: {
653
+ field: string;
654
+ old_value: string | null;
655
+ new_value: string | null;
656
+ }[];
657
+ }, {
658
+ id: number;
659
+ case_id: number;
660
+ user_id: number;
661
+ timestamp: number;
662
+ changes: {
663
+ field: string;
664
+ old_value: string | null;
665
+ new_value: string | null;
666
+ }[];
667
+ }>;
668
+ export type TestRailCaseHistory = z.infer<typeof TestRailCaseHistorySchema>;