@elisra-devops/docgen-data-provider 1.75.0 → 1.76.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.
@@ -0,0 +1,138 @@
1
+ export type MewpRunStatus = 'Pass' | 'Fail' | 'Not Run';
2
+
3
+ export interface MewpExternalFileRef {
4
+ url?: string;
5
+ text?: string;
6
+ name?: string;
7
+ bucketName?: string;
8
+ objectName?: string;
9
+ etag?: string;
10
+ contentType?: string;
11
+ sizeBytes?: number;
12
+ sourceType?: 'mewpExternalIngestion' | 'generic';
13
+ }
14
+
15
+ export interface MewpCoverageRequestOptions {
16
+ useRelFallback?: boolean;
17
+ externalBugsFile?: MewpExternalFileRef | null;
18
+ externalL3L4File?: MewpExternalFileRef | null;
19
+ mergeDuplicateL2Cells?: boolean;
20
+ }
21
+
22
+ export interface MewpInternalValidationRequestOptions {
23
+ useRelFallback?: boolean;
24
+ }
25
+
26
+ export interface MewpRequirementStepSummary {
27
+ passed: number;
28
+ failed: number;
29
+ notRun: number;
30
+ }
31
+
32
+ export interface MewpL2RequirementWorkItem {
33
+ workItemId: number;
34
+ requirementId: string;
35
+ baseKey: string;
36
+ title: string;
37
+ subSystem: string;
38
+ responsibility: string;
39
+ linkedTestCaseIds: number[];
40
+ relatedWorkItemIds: number[];
41
+ areaPath: string;
42
+ }
43
+
44
+ export interface MewpL2RequirementFamily {
45
+ requirementId: string;
46
+ baseKey: string;
47
+ title: string;
48
+ subSystem: string;
49
+ responsibility: string;
50
+ linkedTestCaseIds: number[];
51
+ }
52
+
53
+ export interface MewpLinkedRequirementEntry {
54
+ baseKeys: Set<string>;
55
+ fullCodes: Set<string>;
56
+ bugIds: Set<number>;
57
+ }
58
+
59
+ export type MewpLinkedRequirementsByTestCase = Map<number, MewpLinkedRequirementEntry>;
60
+ export type MewpRequirementIndex = Map<string, Map<number, MewpRequirementStepSummary>>;
61
+
62
+ export interface MewpBugLink {
63
+ id: number;
64
+ title: string;
65
+ responsibility: string;
66
+ requirementBaseKey?: string;
67
+ }
68
+
69
+ export interface MewpL3L4Link {
70
+ id: string;
71
+ title: string;
72
+ level: 'L3' | 'L4';
73
+ }
74
+
75
+ export interface MewpCoverageBugCell {
76
+ id: number | '';
77
+ title: string;
78
+ responsibility: string;
79
+ }
80
+
81
+ export interface MewpCoverageL3L4Cell {
82
+ l3Id: string;
83
+ l3Title: string;
84
+ l4Id: string;
85
+ l4Title: string;
86
+ }
87
+
88
+ export interface MewpCoverageRow {
89
+ 'L2 REQ ID': string;
90
+ 'L2 REQ Title': string;
91
+ 'L2 SubSystem': string;
92
+ 'L2 Run Status': MewpRunStatus;
93
+ 'Bug ID': number | '';
94
+ 'Bug Title': string;
95
+ 'Bug Responsibility': string;
96
+ 'L3 REQ ID': string;
97
+ 'L3 REQ Title': string;
98
+ 'L4 REQ ID': string;
99
+ 'L4 REQ Title': string;
100
+ }
101
+
102
+ export interface MewpCoverageFlatPayload {
103
+ sheetName: string;
104
+ columnOrder: string[];
105
+ rows: MewpCoverageRow[];
106
+ }
107
+
108
+ export interface MewpInternalValidationRow {
109
+ 'Test Case ID': number;
110
+ 'Test Case Title': string;
111
+ 'Mentioned but Not Linked': string;
112
+ 'Linked but Not Mentioned': string;
113
+ 'Validation Status': 'Pass' | 'Fail';
114
+ }
115
+
116
+ export interface MewpInternalValidationFlatPayload {
117
+ sheetName: string;
118
+ columnOrder: string[];
119
+ rows: MewpInternalValidationRow[];
120
+ }
121
+
122
+ export interface MewpExternalTableValidationResult {
123
+ tableType: 'bugs' | 'l3l4';
124
+ sourceName: string;
125
+ valid: boolean;
126
+ headerRow: 'A3' | 'A1' | '';
127
+ matchedRequiredColumns: number;
128
+ totalRequiredColumns: number;
129
+ missingRequiredColumns: string[];
130
+ rowCount: number;
131
+ message: string;
132
+ }
133
+
134
+ export interface MewpExternalFilesValidationResponse {
135
+ valid: boolean;
136
+ bugs?: MewpExternalTableValidationResult;
137
+ l3l4?: MewpExternalTableValidationResult;
138
+ }