@rbaileysr/zephyr-managed-api 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +618 -0
  2. package/dist/error-strategy.d.ts +69 -0
  3. package/dist/error-strategy.d.ts.map +1 -0
  4. package/dist/error-strategy.js +125 -0
  5. package/dist/groups/All.d.ts +90 -0
  6. package/dist/groups/All.d.ts.map +1 -0
  7. package/dist/groups/All.js +236 -0
  8. package/dist/groups/Automation.d.ts +75 -0
  9. package/dist/groups/Automation.d.ts.map +1 -0
  10. package/dist/groups/Automation.js +133 -0
  11. package/dist/groups/Environment.d.ts +73 -0
  12. package/dist/groups/Environment.d.ts.map +1 -0
  13. package/dist/groups/Environment.js +93 -0
  14. package/dist/groups/Folder.d.ts +55 -0
  15. package/dist/groups/Folder.d.ts.map +1 -0
  16. package/dist/groups/Folder.js +68 -0
  17. package/dist/groups/IssueLink.d.ts +59 -0
  18. package/dist/groups/IssueLink.d.ts.map +1 -0
  19. package/dist/groups/IssueLink.js +70 -0
  20. package/dist/groups/Link.d.ts +23 -0
  21. package/dist/groups/Link.d.ts.map +1 -0
  22. package/dist/groups/Link.js +34 -0
  23. package/dist/groups/Priority.d.ts +77 -0
  24. package/dist/groups/Priority.d.ts.map +1 -0
  25. package/dist/groups/Priority.js +97 -0
  26. package/dist/groups/Project.d.ts +36 -0
  27. package/dist/groups/Project.d.ts.map +1 -0
  28. package/dist/groups/Project.js +42 -0
  29. package/dist/groups/Status.d.ts +82 -0
  30. package/dist/groups/Status.d.ts.map +1 -0
  31. package/dist/groups/Status.js +102 -0
  32. package/dist/groups/TestCase.d.ts +254 -0
  33. package/dist/groups/TestCase.d.ts.map +1 -0
  34. package/dist/groups/TestCase.js +327 -0
  35. package/dist/groups/TestCycle.d.ts +127 -0
  36. package/dist/groups/TestCycle.d.ts.map +1 -0
  37. package/dist/groups/TestCycle.js +166 -0
  38. package/dist/groups/TestExecution.d.ts +176 -0
  39. package/dist/groups/TestExecution.d.ts.map +1 -0
  40. package/dist/groups/TestExecution.js +239 -0
  41. package/dist/groups/TestPlan.d.ts +103 -0
  42. package/dist/groups/TestPlan.d.ts.map +1 -0
  43. package/dist/groups/TestPlan.js +137 -0
  44. package/dist/index.d.ts +119 -0
  45. package/dist/index.d.ts.map +1 -0
  46. package/dist/index.js +124 -0
  47. package/dist/types.d.ts +1353 -0
  48. package/dist/types.d.ts.map +1 -0
  49. package/dist/types.js +7 -0
  50. package/dist/utils-api-call.d.ts +22 -0
  51. package/dist/utils-api-call.d.ts.map +1 -0
  52. package/dist/utils-api-call.js +80 -0
  53. package/dist/utils.d.ts +144 -0
  54. package/dist/utils.d.ts.map +1 -0
  55. package/dist/utils.js +432 -0
  56. package/package.json +54 -0
@@ -0,0 +1,1353 @@
1
+ /**
2
+ * Zephyr Cloud API Type Definitions
3
+ *
4
+ * Complete TypeScript type definitions extracted from Zephyr Cloud REST API v2 OpenAPI specification.
5
+ * All types are based on the official API schema.
6
+ */
7
+ /**
8
+ * Entity ID - minimum value 1
9
+ */
10
+ export type EntityId = number;
11
+ /**
12
+ * Entity name - non-empty string
13
+ */
14
+ export type EntityName = string;
15
+ /**
16
+ * Resource ID with self link
17
+ */
18
+ export interface ResourceId {
19
+ id: EntityId;
20
+ }
21
+ /**
22
+ * Link to resource endpoint
23
+ */
24
+ export interface Link {
25
+ self: string;
26
+ }
27
+ /**
28
+ * Project link (ID and self link)
29
+ */
30
+ export interface ProjectLink extends ResourceId, Link {
31
+ }
32
+ /**
33
+ * Created resource response
34
+ */
35
+ export interface CreatedResource {
36
+ id: EntityId;
37
+ self: string;
38
+ }
39
+ /**
40
+ * Created resource with key
41
+ */
42
+ export interface KeyedCreatedResource extends CreatedResource {
43
+ key: string;
44
+ }
45
+ /**
46
+ * Created on timestamp (read-only, ISO 8601 format)
47
+ */
48
+ export type CreatedOn = string;
49
+ /**
50
+ * Objective description
51
+ */
52
+ export type Objective = string | null;
53
+ /**
54
+ * Precondition description
55
+ */
56
+ export type Precondition = string | null;
57
+ /**
58
+ * Entity description
59
+ */
60
+ export type EntityDescription = string | null;
61
+ /**
62
+ * Labels array
63
+ */
64
+ export type Labels = string[];
65
+ /**
66
+ * Index value (minimum 0)
67
+ */
68
+ export type Index = number;
69
+ /**
70
+ * Entity color (hexadecimal format)
71
+ */
72
+ export type EntityColor = string;
73
+ /**
74
+ * Project key pattern: ([A-Z][A-Z_0-9]+)
75
+ */
76
+ export type ProjectKey = string;
77
+ /**
78
+ * Priority name (1-255 characters)
79
+ */
80
+ export type PriorityName = string;
81
+ /**
82
+ * Status name (1-255 characters)
83
+ */
84
+ export type StatusName = string;
85
+ /**
86
+ * Priority description (1-255 characters)
87
+ */
88
+ export type PriorityDescription = string;
89
+ /**
90
+ * Status description (1-255 characters)
91
+ */
92
+ export type StatusDescription = string;
93
+ /**
94
+ * Environment name (1-255 characters)
95
+ */
96
+ export type EnvironmentName = string;
97
+ /**
98
+ * Environment description (1-255 characters)
99
+ */
100
+ export type EnvironmentDescription = string;
101
+ /**
102
+ * Jira user account ID
103
+ */
104
+ export type JiraUserAccountId = string | null;
105
+ /**
106
+ * Jira component (ID and self link)
107
+ */
108
+ export interface JiraComponent extends ResourceId, Link {
109
+ }
110
+ /**
111
+ * Jira user link
112
+ */
113
+ export interface JiraUserLink {
114
+ accountId: JiraUserAccountId;
115
+ self: string;
116
+ }
117
+ /**
118
+ * Jira project version (ID and self link)
119
+ */
120
+ export interface JiraProjectVersion extends ResourceId, Link {
121
+ }
122
+ /**
123
+ * Jira project version ID (minimum 1)
124
+ */
125
+ export type JiraProjectVersionId = number;
126
+ /**
127
+ * Custom fields - flexible key-value pairs
128
+ * Multi-line text fields support HTML with <br> tags
129
+ * Dates should be in format 'yyyy-MM-dd'
130
+ * Users should have values of Jira User Account IDs
131
+ */
132
+ export type CustomFields = Record<string, unknown>;
133
+ /**
134
+ * Paginated list base structure
135
+ */
136
+ export interface PagedList {
137
+ next: string | null;
138
+ startAt: number;
139
+ maxResults: number;
140
+ total: number;
141
+ isLast: boolean;
142
+ }
143
+ /**
144
+ * Cursor-paginated list base structure
145
+ */
146
+ export interface CursorPagedList {
147
+ next: string | null;
148
+ nextStartAtId: number | null;
149
+ limit: number;
150
+ }
151
+ /**
152
+ * Pagination options for list operations
153
+ */
154
+ export interface PaginationOptions {
155
+ maxResults?: number;
156
+ startAt?: number;
157
+ limit?: number;
158
+ startAtId?: number;
159
+ }
160
+ /**
161
+ * Standard error response
162
+ */
163
+ export interface Error {
164
+ errorCode: number;
165
+ message: string;
166
+ }
167
+ /**
168
+ * Test result not found or user access error
169
+ */
170
+ export interface TestResultNotFoundOrUserAccessError {
171
+ errorCode: number;
172
+ message: string;
173
+ }
174
+ /**
175
+ * Test execution immutable error
176
+ */
177
+ export interface TestExecutionImmutableError {
178
+ errorCode: number;
179
+ message: string;
180
+ }
181
+ /**
182
+ * Test step number mismatch error
183
+ */
184
+ export interface TestStepNumberMismatchUnprocessableError {
185
+ errorCode: number;
186
+ message: string;
187
+ }
188
+ /**
189
+ * Test step test data unprocessable error
190
+ */
191
+ export interface TestStepTestDataUnprocessableError {
192
+ errorCode: number;
193
+ message: string;
194
+ }
195
+ /**
196
+ * Priority not found or user access error
197
+ */
198
+ export interface PriorityNotFoundOrUserAccessError {
199
+ errorCode: number;
200
+ message: string;
201
+ }
202
+ /**
203
+ * Status not found or user access error
204
+ */
205
+ export interface StatusNotFoundOrUserAccessError {
206
+ errorCode: number;
207
+ message: string;
208
+ }
209
+ /**
210
+ * Environment not found or user access error
211
+ */
212
+ export interface EnvironmentNotFoundOrUserAccessError {
213
+ errorCode: number;
214
+ message: string;
215
+ }
216
+ /**
217
+ * Duplicated name error
218
+ */
219
+ export interface DuplicatedNameError {
220
+ errorCode: number;
221
+ message: string;
222
+ }
223
+ /**
224
+ * Empty name error
225
+ */
226
+ export interface EmptyNameError {
227
+ errorCode: number;
228
+ message: string;
229
+ }
230
+ /**
231
+ * User access error
232
+ */
233
+ export interface UserAccessError {
234
+ errorCode: number;
235
+ message: string;
236
+ }
237
+ /**
238
+ * Project key mismatch error
239
+ */
240
+ export interface ProjectKeyMismatchError {
241
+ errorCode: number;
242
+ message: string;
243
+ }
244
+ /**
245
+ * Index value error
246
+ */
247
+ export interface IndexValueError {
248
+ errorCode: number;
249
+ message: string;
250
+ }
251
+ /**
252
+ * Link type enum
253
+ */
254
+ export type LinkType = 'COVERAGE' | 'BLOCKS' | 'RELATED';
255
+ /**
256
+ * Issue link input
257
+ */
258
+ export interface IssueLinkInput {
259
+ issueId: number;
260
+ }
261
+ /**
262
+ * Issue link
263
+ */
264
+ export interface IssueLink extends IssueLinkInput {
265
+ self: string;
266
+ id: EntityId;
267
+ target: string;
268
+ type: LinkType;
269
+ }
270
+ /**
271
+ * Issue link list
272
+ */
273
+ export type IssueLinkList = IssueLink[];
274
+ /**
275
+ * Web link input
276
+ */
277
+ export interface WebLinkInput {
278
+ url: string;
279
+ description?: string;
280
+ }
281
+ /**
282
+ * Web link input with mandatory description
283
+ */
284
+ export interface WebLinkInputWithMandatoryDescription extends WebLinkInput {
285
+ description: string;
286
+ url: string;
287
+ }
288
+ /**
289
+ * Web link
290
+ */
291
+ export interface WebLink extends WebLinkInput {
292
+ self: string;
293
+ id: EntityId;
294
+ type: LinkType;
295
+ }
296
+ /**
297
+ * Web link list
298
+ */
299
+ export type WebLinkList = WebLink[];
300
+ /**
301
+ * Priority link
302
+ */
303
+ export interface PriorityLink extends ResourceId, Link {
304
+ }
305
+ /**
306
+ * Status link
307
+ */
308
+ export interface StatusLink extends ResourceId, Link {
309
+ }
310
+ /**
311
+ * Folder link
312
+ */
313
+ export interface FolderLink extends ResourceId, Link {
314
+ }
315
+ /**
316
+ * Test case test script link
317
+ */
318
+ export interface TestCaseTestScriptLink extends Link {
319
+ }
320
+ /**
321
+ * Test case link list
322
+ */
323
+ export interface TestCaseLinkList extends Link {
324
+ issues: IssueLinkList;
325
+ webLinks: WebLinkList;
326
+ }
327
+ /**
328
+ * Test case
329
+ */
330
+ export interface TestCase {
331
+ id: EntityId;
332
+ key: string;
333
+ name: EntityName;
334
+ project: ProjectLink;
335
+ priority: PriorityLink;
336
+ status: StatusLink;
337
+ createdOn?: CreatedOn;
338
+ objective?: Objective;
339
+ precondition?: Precondition;
340
+ estimatedTime?: number | null;
341
+ labels?: Labels;
342
+ component?: JiraComponent;
343
+ folder?: FolderLink;
344
+ owner?: JiraUserLink;
345
+ testScript?: TestCaseTestScriptLink;
346
+ customFields?: CustomFields;
347
+ links?: TestCaseLinkList;
348
+ }
349
+ /**
350
+ * Test case list (paginated)
351
+ */
352
+ export interface TestCaseList extends PagedList {
353
+ values: TestCase[];
354
+ }
355
+ /**
356
+ * Cursor-paginated test case list
357
+ */
358
+ export interface CursorPagedTestCaseList extends CursorPagedList {
359
+ values: TestCase[];
360
+ }
361
+ /**
362
+ * Test case input (create)
363
+ */
364
+ export interface TestCaseInput {
365
+ projectKey: ProjectKey;
366
+ name: EntityName;
367
+ objective?: Objective;
368
+ precondition?: Precondition;
369
+ estimatedTime?: number;
370
+ componentId?: number;
371
+ priorityName?: PriorityName;
372
+ statusName?: StatusName;
373
+ folderId?: number;
374
+ ownerId?: JiraUserAccountId;
375
+ labels?: Labels;
376
+ customFields?: CustomFields;
377
+ }
378
+ /**
379
+ * Test case version link
380
+ */
381
+ export interface TestCaseVersionLink extends Link {
382
+ id: EntityId;
383
+ }
384
+ /**
385
+ * Test case version link list (paginated)
386
+ */
387
+ export interface TestCaseVersionLinkList extends PagedList {
388
+ values: TestCaseVersionLink[];
389
+ }
390
+ /**
391
+ * Test script type
392
+ */
393
+ export type TestScriptType = 'plain' | 'bdd';
394
+ /**
395
+ * Test script input
396
+ */
397
+ export interface TestScriptInput {
398
+ type: TestScriptType;
399
+ text: string;
400
+ }
401
+ /**
402
+ * Test script
403
+ */
404
+ export interface TestScript extends TestScriptInput {
405
+ id: EntityId;
406
+ }
407
+ /**
408
+ * Test step inline definition
409
+ */
410
+ export interface TestStepInline {
411
+ description: string;
412
+ testData?: string;
413
+ expectedResult: string;
414
+ customFields?: CustomFields;
415
+ reflectRef?: string;
416
+ }
417
+ /**
418
+ * Test step test case parameters
419
+ */
420
+ export interface TestStepTestCaseParameters {
421
+ name: string;
422
+ type: 'MANUAL_INPUT' | 'DEFAULT_VALUE';
423
+ value: string;
424
+ }
425
+ /**
426
+ * Test step test case
427
+ */
428
+ export interface TestStepTestCase extends Link {
429
+ testCaseKey: string;
430
+ parameters?: TestStepTestCaseParameters[];
431
+ }
432
+ /**
433
+ * Test step (inline or test case)
434
+ */
435
+ export interface TestStep {
436
+ inline?: TestStepInline;
437
+ testCase?: TestStepTestCase;
438
+ }
439
+ /**
440
+ * Test steps input mode
441
+ */
442
+ export type TestStepsInputMode = 'APPEND' | 'OVERWRITE';
443
+ /**
444
+ * Test steps input
445
+ */
446
+ export interface TestStepsInput {
447
+ mode: TestStepsInputMode;
448
+ items: TestStep[];
449
+ }
450
+ /**
451
+ * Test steps list (paginated)
452
+ */
453
+ export interface TestStepsList extends PagedList {
454
+ values: TestStep[];
455
+ }
456
+ /**
457
+ * Test case key and version
458
+ */
459
+ export interface TestCaseKeyAndVersion extends Link {
460
+ key: string;
461
+ version: number;
462
+ }
463
+ /**
464
+ * Test case key and version list
465
+ */
466
+ export type TestCaseKeyAndVersionList = TestCaseKeyAndVersion[];
467
+ /**
468
+ * Key and version
469
+ */
470
+ export interface KeyAndVersion {
471
+ key: string;
472
+ version: number;
473
+ }
474
+ /**
475
+ * Test cycle update planned start date
476
+ */
477
+ export type TestCycleUpdatePlannedStartDate = string | null;
478
+ /**
479
+ * Test cycle update planned end date
480
+ */
481
+ export type TestCycleUpdatePlannedEndDate = string | null;
482
+ /**
483
+ * Planned start date
484
+ */
485
+ export type PlannedStartDate = string;
486
+ /**
487
+ * Planned end date
488
+ */
489
+ export type PlannedEndDate = string;
490
+ /**
491
+ * Test cycle test plan link
492
+ */
493
+ export interface TestCycleTestPlanLink {
494
+ id: EntityId;
495
+ self: string;
496
+ testPlanId: number;
497
+ type: LinkType;
498
+ target: string;
499
+ }
500
+ /**
501
+ * Test cycle test plan link list
502
+ */
503
+ export type TestCycleTestPlanLinkList = TestCycleTestPlanLink[];
504
+ /**
505
+ * Test cycle link list
506
+ */
507
+ export interface TestCycleLinkList extends Link {
508
+ issues: IssueLinkList;
509
+ webLinks: WebLinkList;
510
+ testPlans?: TestCycleTestPlanLinkList;
511
+ }
512
+ /**
513
+ * Test cycle
514
+ */
515
+ export interface TestCycle {
516
+ id: EntityId;
517
+ key: string;
518
+ name: EntityName;
519
+ project: ProjectLink;
520
+ status: StatusLink;
521
+ jiraProjectVersion?: JiraProjectVersion;
522
+ folder?: FolderLink;
523
+ description?: EntityDescription;
524
+ plannedStartDate?: TestCycleUpdatePlannedStartDate;
525
+ plannedEndDate?: TestCycleUpdatePlannedEndDate;
526
+ owner?: JiraUserLink;
527
+ customFields?: CustomFields;
528
+ links?: TestCycleLinkList;
529
+ }
530
+ /**
531
+ * Test cycle list (paginated)
532
+ */
533
+ export interface TestCycleList extends PagedList {
534
+ values: TestCycle[];
535
+ }
536
+ /**
537
+ * Test cycle input (create)
538
+ */
539
+ export interface TestCycleInput {
540
+ projectKey: ProjectKey;
541
+ name: EntityName;
542
+ description?: EntityDescription;
543
+ plannedStartDate?: PlannedStartDate;
544
+ plannedEndDate?: PlannedEndDate;
545
+ jiraProjectVersion?: JiraProjectVersionId;
546
+ statusName?: StatusName;
547
+ folderId?: number;
548
+ ownerId?: JiraUserAccountId;
549
+ customFields?: CustomFields;
550
+ }
551
+ /**
552
+ * Test cycle link
553
+ */
554
+ export interface TestCycleLink extends Link {
555
+ id: EntityId;
556
+ }
557
+ /**
558
+ * Test cycle ID
559
+ */
560
+ export interface TestCycleId extends ResourceId, Link {
561
+ }
562
+ /**
563
+ * Test cycle ID list
564
+ */
565
+ export type TestCycleIdList = TestCycleId[];
566
+ /**
567
+ * Test plan test cycle link
568
+ */
569
+ export interface TestPlanTestCycleLink extends ResourceId, Link {
570
+ testCycleId: EntityId;
571
+ type: LinkType;
572
+ target: string;
573
+ }
574
+ /**
575
+ * Test plan cycle link list
576
+ */
577
+ export type TestPlanCycleLinkList = TestPlanTestCycleLink[];
578
+ /**
579
+ * Test plan link structure
580
+ */
581
+ export interface TestPlanLinks {
582
+ webLinks: WebLinkList;
583
+ issues: IssueLinkList;
584
+ testCycles: TestPlanCycleLinkList;
585
+ }
586
+ /**
587
+ * Test plan
588
+ */
589
+ export interface TestPlan {
590
+ id: EntityId;
591
+ key: string;
592
+ name: EntityName;
593
+ project: ProjectLink;
594
+ status: StatusLink;
595
+ objective?: Objective;
596
+ folder?: FolderLink;
597
+ owner?: JiraUserLink;
598
+ customFields?: CustomFields;
599
+ labels?: Labels;
600
+ links?: TestPlanLinks;
601
+ }
602
+ /**
603
+ * Test plan list (paginated)
604
+ */
605
+ export interface TestPlanList extends PagedList {
606
+ values: TestPlan[];
607
+ }
608
+ /**
609
+ * Test plan input (create)
610
+ */
611
+ export interface TestPlanInput {
612
+ projectKey: ProjectKey;
613
+ name: EntityName;
614
+ objective?: Objective;
615
+ folderId?: number;
616
+ statusName?: StatusName;
617
+ ownerId?: JiraUserAccountId;
618
+ labels?: Labels;
619
+ customFields?: CustomFields;
620
+ }
621
+ /**
622
+ * Test plan test cycle link input
623
+ */
624
+ export interface TestPlanTestCycleLinkInput {
625
+ testCycleIdOrKey: string;
626
+ }
627
+ /**
628
+ * Test plan ID
629
+ */
630
+ export interface TestPlanId extends ResourceId, Link {
631
+ }
632
+ /**
633
+ * Test plan ID list
634
+ */
635
+ export type TestPlanIdList = TestPlanId[];
636
+ /**
637
+ * Actual end date
638
+ */
639
+ export type ActualEndDate = string | null;
640
+ /**
641
+ * Comment
642
+ */
643
+ export type Comment = string | null;
644
+ /**
645
+ * Test execution link list
646
+ */
647
+ export interface TestExecutionLinkList extends Link {
648
+ issues: IssueLinkList;
649
+ }
650
+ /**
651
+ * Test execution
652
+ */
653
+ export interface TestExecution {
654
+ id: EntityId;
655
+ key?: string;
656
+ project: ProjectLink;
657
+ testCase: TestCaseVersionLink;
658
+ testExecutionStatus: StatusLink;
659
+ environment?: EnvironmentLink;
660
+ jiraProjectVersion?: JiraProjectVersion;
661
+ actualEndDate?: ActualEndDate;
662
+ estimatedTime?: number | null;
663
+ executionTime?: number | null;
664
+ executedById?: JiraUserAccountId;
665
+ assignedToId?: JiraUserAccountId;
666
+ comment?: Comment;
667
+ automated?: boolean;
668
+ testCycle?: TestCycleLink;
669
+ customFields?: CustomFields;
670
+ links?: TestExecutionLinkList;
671
+ }
672
+ /**
673
+ * Test execution list (paginated)
674
+ */
675
+ export interface TestExecutionList extends PagedList {
676
+ values: TestExecution[];
677
+ }
678
+ /**
679
+ * Cursor-paginated test execution list
680
+ */
681
+ export interface CursorPagedTestExecutionList extends CursorPagedList {
682
+ values: TestExecution[];
683
+ }
684
+ /**
685
+ * Test execution input (create)
686
+ */
687
+ export interface TestExecutionInput {
688
+ projectKey: ProjectKey;
689
+ testCaseKey: string;
690
+ testCycleKey: string;
691
+ statusName: StatusName;
692
+ testScriptResults?: TestScriptResultInput[];
693
+ environmentName?: string;
694
+ actualEndDate?: ActualEndDate;
695
+ executionTime?: number;
696
+ executedById?: JiraUserAccountId;
697
+ assignedToId?: JiraUserAccountId;
698
+ comment?: Comment;
699
+ customFields?: CustomFields;
700
+ }
701
+ /**
702
+ * Test script result input
703
+ */
704
+ export interface TestScriptResultInput {
705
+ statusName: StatusName;
706
+ actualEndDate?: ActualEndDate;
707
+ actualResult?: string;
708
+ }
709
+ /**
710
+ * Test execution update
711
+ */
712
+ export interface TestExecutionUpdate {
713
+ statusName?: StatusName;
714
+ environmentName?: string;
715
+ actualEndDate?: ActualEndDate;
716
+ executionTime?: number;
717
+ executedById?: JiraUserAccountId;
718
+ assignedToId?: JiraUserAccountId;
719
+ comment?: Comment;
720
+ }
721
+ /**
722
+ * Test execution step inline
723
+ */
724
+ export interface TestExecutionStepInline {
725
+ description: string;
726
+ testData?: string;
727
+ expectedResult: string;
728
+ actualResult?: string;
729
+ testDataRowNumber?: number;
730
+ reflectRef?: string;
731
+ status?: StatusLink;
732
+ }
733
+ /**
734
+ * Test execution step
735
+ */
736
+ export interface TestExecutionStep {
737
+ inline?: TestExecutionStepInline;
738
+ }
739
+ /**
740
+ * Test execution test steps list (paginated)
741
+ */
742
+ export interface TestExecutionTestStepsList extends PagedList {
743
+ values: TestExecutionStep[];
744
+ }
745
+ /**
746
+ * Actual result
747
+ */
748
+ export type ActualResult = string;
749
+ /**
750
+ * Test step update
751
+ */
752
+ export interface TestStepUpdate {
753
+ actualResult?: ActualResult;
754
+ statusName?: StatusName;
755
+ }
756
+ /**
757
+ * Test steps update
758
+ */
759
+ export interface TestStepsUpdate {
760
+ steps: TestStepUpdate[];
761
+ }
762
+ /**
763
+ * Test execution ID
764
+ */
765
+ export interface TestExecutionId extends ResourceId, Link {
766
+ }
767
+ /**
768
+ * Test execution ID list
769
+ */
770
+ export type TestExecutionIdList = TestExecutionId[];
771
+ /**
772
+ * Project
773
+ */
774
+ export interface Project {
775
+ id: number;
776
+ jiraProjectId: number;
777
+ key: string;
778
+ enabled: boolean;
779
+ }
780
+ /**
781
+ * Project list (paginated)
782
+ */
783
+ export interface ProjectList extends PagedList {
784
+ values: Project[];
785
+ }
786
+ /**
787
+ * Folder type
788
+ */
789
+ export type FolderType = 'TEST_CASE' | 'TEST_PLAN' | 'TEST_CYCLE';
790
+ /**
791
+ * Folder
792
+ */
793
+ export interface Folder {
794
+ id: EntityId;
795
+ parentId: EntityId;
796
+ name: EntityName;
797
+ index: Index;
798
+ folderType: FolderType;
799
+ project: ProjectLink;
800
+ }
801
+ /**
802
+ * Folder list (paginated)
803
+ */
804
+ export interface FolderList extends PagedList {
805
+ values: Folder[];
806
+ }
807
+ /**
808
+ * Folder input (create)
809
+ */
810
+ export interface FolderInput {
811
+ projectKey: ProjectKey;
812
+ name: string;
813
+ folderType: FolderType;
814
+ parentId?: number | null;
815
+ }
816
+ /**
817
+ * Option value base
818
+ */
819
+ export interface OptionValue {
820
+ id: EntityId;
821
+ project: ProjectLink;
822
+ name: EntityName;
823
+ description?: EntityDescription;
824
+ index: Index;
825
+ }
826
+ /**
827
+ * Priority
828
+ */
829
+ export interface Priority extends OptionValue {
830
+ color?: EntityColor;
831
+ default: boolean;
832
+ }
833
+ /**
834
+ * Priority list (paginated)
835
+ */
836
+ export interface PriorityList extends PagedList {
837
+ values: Priority[];
838
+ }
839
+ /**
840
+ * Create priority input
841
+ */
842
+ export interface CreatePriorityInput {
843
+ projectKey: ProjectKey;
844
+ name: PriorityName;
845
+ description?: PriorityDescription;
846
+ color?: EntityColor;
847
+ }
848
+ /**
849
+ * Update priority input
850
+ */
851
+ export interface UpdatePriorityInput {
852
+ id: EntityId;
853
+ project: ProjectLink;
854
+ name: PriorityName;
855
+ description?: PriorityDescription;
856
+ index: Index;
857
+ default: boolean;
858
+ color?: EntityColor;
859
+ }
860
+ /**
861
+ * Status type
862
+ */
863
+ export type StatusType = 'TEST_CASE' | 'TEST_PLAN' | 'TEST_CYCLE' | 'TEST_EXECUTION';
864
+ /**
865
+ * Status
866
+ */
867
+ export interface Status extends OptionValue {
868
+ color?: string;
869
+ archived: boolean;
870
+ default: boolean;
871
+ }
872
+ /**
873
+ * Status list (paginated)
874
+ */
875
+ export interface StatusList extends PagedList {
876
+ values: Status[];
877
+ }
878
+ /**
879
+ * Create status input
880
+ */
881
+ export interface CreateStatusInput {
882
+ projectKey: ProjectKey;
883
+ name: StatusName;
884
+ type: StatusType;
885
+ description?: StatusDescription;
886
+ color?: EntityColor;
887
+ }
888
+ /**
889
+ * Update status input
890
+ */
891
+ export interface UpdateStatusInput {
892
+ id: EntityId;
893
+ project: ProjectLink;
894
+ name: StatusName;
895
+ description?: StatusDescription;
896
+ index: Index;
897
+ archived: boolean;
898
+ default: boolean;
899
+ color?: EntityColor;
900
+ }
901
+ /**
902
+ * Environment link
903
+ */
904
+ export interface EnvironmentLink extends ResourceId, Link {
905
+ }
906
+ /**
907
+ * Environment
908
+ */
909
+ export interface Environment extends OptionValue {
910
+ archived: boolean;
911
+ }
912
+ /**
913
+ * Environment list (paginated)
914
+ */
915
+ export interface EnvironmentList extends PagedList {
916
+ values: Environment[];
917
+ }
918
+ /**
919
+ * Create environment input
920
+ */
921
+ export interface CreateEnvironmentInput {
922
+ projectKey: ProjectKey;
923
+ name: EnvironmentName;
924
+ description?: EnvironmentDescription;
925
+ }
926
+ /**
927
+ * Update environment input
928
+ */
929
+ export interface UpdateEnvironmentInput {
930
+ id: EntityId;
931
+ project: ProjectLink;
932
+ name: EnvironmentName;
933
+ description?: EnvironmentDescription;
934
+ index: Index;
935
+ }
936
+ /**
937
+ * Automation test cycle input
938
+ */
939
+ export interface AutomationTestCycleInput {
940
+ name?: EntityName;
941
+ description?: EntityDescription;
942
+ jiraProjectVersion?: JiraProjectVersionId;
943
+ folderId?: number;
944
+ customFields?: CustomFields;
945
+ }
946
+ /**
947
+ * Automation test cycle
948
+ */
949
+ export interface AutomationTestCycle {
950
+ id: number;
951
+ url: string;
952
+ key: string;
953
+ }
954
+ /**
955
+ * Automation result
956
+ */
957
+ export interface AutomationResult {
958
+ testCycle: AutomationTestCycle;
959
+ }
960
+ /**
961
+ * List test cases options
962
+ */
963
+ export interface ListTestCasesOptions extends PaginationOptions {
964
+ projectKey?: ProjectKey;
965
+ folderId?: number;
966
+ }
967
+ /**
968
+ * Get test case options
969
+ */
970
+ export interface GetTestCaseOptions {
971
+ testCaseKey: string;
972
+ }
973
+ /**
974
+ * Create test case request
975
+ */
976
+ export interface CreateTestCaseRequest {
977
+ body: TestCaseInput;
978
+ }
979
+ /**
980
+ * Update test case request
981
+ */
982
+ export interface UpdateTestCaseRequest {
983
+ testCaseKey: string;
984
+ body: TestCase;
985
+ }
986
+ /**
987
+ * List test case versions options
988
+ */
989
+ export interface ListTestCaseVersionsOptions extends PaginationOptions {
990
+ testCaseKey: string;
991
+ }
992
+ /**
993
+ * Get test case version options
994
+ */
995
+ export interface GetTestCaseVersionOptions {
996
+ testCaseKey: string;
997
+ version: number;
998
+ }
999
+ /**
1000
+ * Create test case test script request
1001
+ */
1002
+ export interface CreateTestCaseTestScriptRequest {
1003
+ testCaseKey: string;
1004
+ body: TestScriptInput;
1005
+ }
1006
+ /**
1007
+ * Create test case test steps request
1008
+ */
1009
+ export interface CreateTestCaseTestStepsRequest {
1010
+ testCaseKey: string;
1011
+ body: TestStepsInput;
1012
+ }
1013
+ /**
1014
+ * Create test case issue link request
1015
+ */
1016
+ export interface CreateTestCaseIssueLinkRequest {
1017
+ testCaseKey: string;
1018
+ body: IssueLinkInput;
1019
+ }
1020
+ /**
1021
+ * Create test case web link request
1022
+ */
1023
+ export interface CreateTestCaseWebLinkRequest {
1024
+ testCaseKey: string;
1025
+ body: WebLinkInput;
1026
+ }
1027
+ /**
1028
+ * List test cycles options
1029
+ */
1030
+ export interface ListTestCyclesOptions extends PaginationOptions {
1031
+ projectKey?: ProjectKey;
1032
+ folderId?: number;
1033
+ jiraProjectVersionId?: number;
1034
+ }
1035
+ /**
1036
+ * Get test cycle options
1037
+ */
1038
+ export interface GetTestCycleOptions {
1039
+ testCycleIdOrKey: string | number;
1040
+ }
1041
+ /**
1042
+ * Create test cycle request
1043
+ */
1044
+ export interface CreateTestCycleRequest {
1045
+ body: TestCycleInput;
1046
+ }
1047
+ /**
1048
+ * Update test cycle request
1049
+ */
1050
+ export interface UpdateTestCycleRequest {
1051
+ testCycleIdOrKey: string | number;
1052
+ body: TestCycle;
1053
+ }
1054
+ /**
1055
+ * Create test cycle issue link request
1056
+ */
1057
+ export interface CreateTestCycleIssueLinkRequest {
1058
+ testCycleIdOrKey: string | number;
1059
+ body: IssueLinkInput;
1060
+ }
1061
+ /**
1062
+ * Create test cycle web link request
1063
+ */
1064
+ export interface CreateTestCycleWebLinkRequest {
1065
+ testCycleIdOrKey: string | number;
1066
+ body: WebLinkInput;
1067
+ }
1068
+ /**
1069
+ * List test plans options
1070
+ */
1071
+ export interface ListTestPlansOptions extends PaginationOptions {
1072
+ projectKey?: ProjectKey;
1073
+ folderId?: number;
1074
+ }
1075
+ /**
1076
+ * Get test plan options
1077
+ */
1078
+ export interface GetTestPlanOptions {
1079
+ testPlanIdOrKey: string | number;
1080
+ }
1081
+ /**
1082
+ * Create test plan request
1083
+ */
1084
+ export interface CreateTestPlanRequest {
1085
+ body: TestPlanInput;
1086
+ }
1087
+ /**
1088
+ * Create test plan issue link request
1089
+ */
1090
+ export interface CreateTestPlanIssueLinkRequest {
1091
+ testPlanIdOrKey: string | number;
1092
+ body: IssueLinkInput;
1093
+ }
1094
+ /**
1095
+ * Create test plan web link request
1096
+ */
1097
+ export interface CreateTestPlanWebLinkRequest {
1098
+ testPlanIdOrKey: string | number;
1099
+ body: WebLinkInputWithMandatoryDescription;
1100
+ }
1101
+ /**
1102
+ * Create test plan test cycle link request
1103
+ */
1104
+ export interface CreateTestPlanTestCycleLinkRequest {
1105
+ testPlanIdOrKey: string | number;
1106
+ body: TestPlanTestCycleLinkInput;
1107
+ }
1108
+ /**
1109
+ * List test executions options
1110
+ */
1111
+ export interface ListTestExecutionsOptions extends PaginationOptions {
1112
+ projectKey?: ProjectKey;
1113
+ testCase?: string;
1114
+ testCycle?: string;
1115
+ actualEndDateAfter?: string;
1116
+ actualEndDateBefore?: string;
1117
+ includeStepLinks?: boolean;
1118
+ jiraProjectVersionId?: number;
1119
+ onlyLastExecutions?: boolean;
1120
+ statusName?: StatusName;
1121
+ assignedToId?: JiraUserAccountId;
1122
+ executedById?: JiraUserAccountId;
1123
+ }
1124
+ /**
1125
+ * List test executions nextgen options
1126
+ */
1127
+ export interface ListTestExecutionsNextgenOptions {
1128
+ projectKey?: ProjectKey;
1129
+ testCase?: string;
1130
+ testCycle?: string;
1131
+ actualEndDateAfter?: string;
1132
+ actualEndDateBefore?: string;
1133
+ includeStepLinks?: boolean;
1134
+ jiraProjectVersionId?: number;
1135
+ onlyLastExecutions?: boolean;
1136
+ limit?: number;
1137
+ startAtId?: number;
1138
+ }
1139
+ /**
1140
+ * Get test execution options
1141
+ */
1142
+ export interface GetTestExecutionOptions {
1143
+ testExecutionIdOrKey: string | number;
1144
+ includeStepLinks?: boolean;
1145
+ }
1146
+ /**
1147
+ * Create test execution request
1148
+ */
1149
+ export interface CreateTestExecutionRequest {
1150
+ body: TestExecutionInput;
1151
+ }
1152
+ /**
1153
+ * Update test execution request
1154
+ */
1155
+ export interface UpdateTestExecutionRequest {
1156
+ testExecutionIdOrKey: string | number;
1157
+ body: TestExecutionUpdate;
1158
+ }
1159
+ /**
1160
+ * Get test execution test steps options
1161
+ */
1162
+ export interface GetTestExecutionTestStepsOptions extends PaginationOptions {
1163
+ testExecutionIdOrKey: string | number;
1164
+ testDataRowNumber?: number;
1165
+ }
1166
+ /**
1167
+ * Put test execution test steps request
1168
+ */
1169
+ export interface PutTestExecutionTestStepsRequest {
1170
+ testExecutionIdOrKey: string | number;
1171
+ body: TestStepsUpdate;
1172
+ }
1173
+ /**
1174
+ * Sync test execution script request
1175
+ */
1176
+ export interface SyncTestExecutionScriptRequest {
1177
+ testExecutionIdOrKey: string | number;
1178
+ }
1179
+ /**
1180
+ * Create test execution issue link request
1181
+ */
1182
+ export interface CreateTestExecutionIssueLinkRequest {
1183
+ testExecutionIdOrKey: string | number;
1184
+ body: IssueLinkInput;
1185
+ }
1186
+ /**
1187
+ * List projects options
1188
+ */
1189
+ export interface ListProjectsOptions extends PaginationOptions {
1190
+ }
1191
+ /**
1192
+ * Get project options
1193
+ */
1194
+ export interface GetProjectOptions {
1195
+ projectIdOrKey: string | number;
1196
+ }
1197
+ /**
1198
+ * List folders options
1199
+ */
1200
+ export interface ListFoldersOptions extends PaginationOptions {
1201
+ projectKey: ProjectKey;
1202
+ folderType: FolderType;
1203
+ parentId?: number;
1204
+ }
1205
+ /**
1206
+ * Get folder options
1207
+ */
1208
+ export interface GetFolderOptions {
1209
+ folderId: number;
1210
+ }
1211
+ /**
1212
+ * Create folder request
1213
+ */
1214
+ export interface CreateFolderRequest {
1215
+ body: FolderInput;
1216
+ }
1217
+ /**
1218
+ * List priorities options
1219
+ */
1220
+ export interface ListPrioritiesOptions extends PaginationOptions {
1221
+ projectKey: ProjectKey;
1222
+ }
1223
+ /**
1224
+ * Get priority options
1225
+ */
1226
+ export interface GetPriorityOptions {
1227
+ priorityId: number;
1228
+ }
1229
+ /**
1230
+ * Create priority request
1231
+ */
1232
+ export interface CreatePriorityRequest {
1233
+ body: CreatePriorityInput;
1234
+ }
1235
+ /**
1236
+ * Update priority request
1237
+ */
1238
+ export interface UpdatePriorityRequest {
1239
+ priorityId: number;
1240
+ body: UpdatePriorityInput;
1241
+ }
1242
+ /**
1243
+ * List statuses options
1244
+ */
1245
+ export interface ListStatusesOptions extends PaginationOptions {
1246
+ projectKey: ProjectKey;
1247
+ type?: StatusType;
1248
+ }
1249
+ /**
1250
+ * Get status options
1251
+ */
1252
+ export interface GetStatusOptions {
1253
+ statusId: number;
1254
+ }
1255
+ /**
1256
+ * Create status request
1257
+ */
1258
+ export interface CreateStatusRequest {
1259
+ body: CreateStatusInput;
1260
+ }
1261
+ /**
1262
+ * Update status request
1263
+ */
1264
+ export interface UpdateStatusRequest {
1265
+ statusId: number;
1266
+ body: UpdateStatusInput;
1267
+ }
1268
+ /**
1269
+ * List environments options
1270
+ */
1271
+ export interface ListEnvironmentsOptions extends PaginationOptions {
1272
+ projectKey: ProjectKey;
1273
+ }
1274
+ /**
1275
+ * Get environment options
1276
+ */
1277
+ export interface GetEnvironmentOptions {
1278
+ environmentId: number;
1279
+ }
1280
+ /**
1281
+ * Create environment request
1282
+ */
1283
+ export interface CreateEnvironmentRequest {
1284
+ body: CreateEnvironmentInput;
1285
+ }
1286
+ /**
1287
+ * Update environment request
1288
+ */
1289
+ export interface UpdateEnvironmentRequest {
1290
+ environmentId: number;
1291
+ body: UpdateEnvironmentInput;
1292
+ }
1293
+ /**
1294
+ * Delete link options
1295
+ */
1296
+ export interface DeleteLinkOptions {
1297
+ linkId: number;
1298
+ }
1299
+ /**
1300
+ * Get issue link test cases options
1301
+ */
1302
+ export interface GetIssueLinkTestCasesOptions {
1303
+ issueKey: string;
1304
+ }
1305
+ /**
1306
+ * Get issue link test cycles options
1307
+ */
1308
+ export interface GetIssueLinkTestCyclesOptions {
1309
+ issueKey: string;
1310
+ }
1311
+ /**
1312
+ * Get issue link test plans options
1313
+ */
1314
+ export interface GetIssueLinkTestPlansOptions {
1315
+ issueKey: string;
1316
+ }
1317
+ /**
1318
+ * Get issue link executions options
1319
+ */
1320
+ export interface GetIssueLinkExecutionsOptions {
1321
+ issueKey: string;
1322
+ }
1323
+ /**
1324
+ * Create automation execution custom request
1325
+ */
1326
+ export interface CreateAutomationExecutionCustomRequest {
1327
+ projectKey: ProjectKey;
1328
+ body: FormData;
1329
+ autoCreateTestCases?: boolean;
1330
+ }
1331
+ /**
1332
+ * Create automation execution cucumber request
1333
+ */
1334
+ export interface CreateAutomationExecutionCucumberRequest {
1335
+ projectKey: ProjectKey;
1336
+ body: FormData;
1337
+ autoCreateTestCases?: boolean;
1338
+ }
1339
+ /**
1340
+ * Create automation execution junit request
1341
+ */
1342
+ export interface CreateAutomationExecutionJunitRequest {
1343
+ projectKey: ProjectKey;
1344
+ body: FormData;
1345
+ autoCreateTestCases?: boolean;
1346
+ }
1347
+ /**
1348
+ * Retrieve BDD test cases options
1349
+ */
1350
+ export interface RetrieveBDDTestCasesOptions {
1351
+ projectKey: ProjectKey;
1352
+ }
1353
+ //# sourceMappingURL=types.d.ts.map