@anlyx/core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +5 -0
- package/dist/config.d.ts +208 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +143 -0
- package/dist/config.js.map +1 -0
- package/dist/fixture-validation.d.ts +17 -0
- package/dist/fixture-validation.d.ts.map +1 -0
- package/dist/fixture-validation.js +121 -0
- package/dist/fixture-validation.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/report-aggregation.d.ts +23 -0
- package/dist/report-aggregation.d.ts.map +1 -0
- package/dist/report-aggregation.js +168 -0
- package/dist/report-aggregation.js.map +1 -0
- package/dist/schema.d.ts +628 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +155 -0
- package/dist/schema.js.map +1 -0
- package/package.json +38 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 suhannoh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare class ConfigValidationError extends Error {
|
|
3
|
+
constructor(message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const viewportConfigSchema: z.ZodObject<{
|
|
6
|
+
width: z.ZodNumber;
|
|
7
|
+
height: z.ZodNumber;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
export declare const captureConfigSchema: z.ZodObject<{
|
|
10
|
+
mode: z.ZodOptional<z.ZodLiteral<"segments">>;
|
|
11
|
+
segmentHeight: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
storageState: z.ZodOptional<z.ZodString>;
|
|
13
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
export declare const springBackendConfigSchema: z.ZodObject<{
|
|
16
|
+
type: z.ZodLiteral<"spring">;
|
|
17
|
+
sourceDir: z.ZodString;
|
|
18
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
19
|
+
openApiUrl: z.ZodOptional<z.ZodString>;
|
|
20
|
+
actuatorMappingsUrl: z.ZodOptional<z.ZodString>;
|
|
21
|
+
maxMainDepth: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
maxSubDepth: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
includeUtilities: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
export declare const openApiBackendConfigSchema: z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<"openapi">;
|
|
27
|
+
openApiUrl: z.ZodString;
|
|
28
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
export declare const backendConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
+
type: z.ZodLiteral<"spring">;
|
|
32
|
+
sourceDir: z.ZodString;
|
|
33
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
34
|
+
openApiUrl: z.ZodOptional<z.ZodString>;
|
|
35
|
+
actuatorMappingsUrl: z.ZodOptional<z.ZodString>;
|
|
36
|
+
maxMainDepth: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
maxSubDepth: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
includeUtilities: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40
|
+
type: z.ZodLiteral<"openapi">;
|
|
41
|
+
openApiUrl: z.ZodString;
|
|
42
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strict>], "type">;
|
|
44
|
+
export declare const nextFrontendConfigSchema: z.ZodObject<{
|
|
45
|
+
type: z.ZodLiteral<"next">;
|
|
46
|
+
sourceDir: z.ZodString;
|
|
47
|
+
baseUrl: z.ZodString;
|
|
48
|
+
router: z.ZodLiteral<"app">;
|
|
49
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
width: z.ZodNumber;
|
|
51
|
+
height: z.ZodNumber;
|
|
52
|
+
}, z.core.$strict>>;
|
|
53
|
+
capture: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
mode: z.ZodOptional<z.ZodLiteral<"segments">>;
|
|
55
|
+
segmentHeight: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
storageState: z.ZodOptional<z.ZodString>;
|
|
57
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
}, z.core.$strict>>;
|
|
59
|
+
sampleParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
60
|
+
}, z.core.$strict>;
|
|
61
|
+
export declare const manualFrontendConfigSchema: z.ZodObject<{
|
|
62
|
+
type: z.ZodLiteral<"manual">;
|
|
63
|
+
baseUrl: z.ZodString;
|
|
64
|
+
urls: z.ZodArray<z.ZodString>;
|
|
65
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
width: z.ZodNumber;
|
|
67
|
+
height: z.ZodNumber;
|
|
68
|
+
}, z.core.$strict>>;
|
|
69
|
+
capture: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
mode: z.ZodOptional<z.ZodLiteral<"segments">>;
|
|
71
|
+
segmentHeight: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
storageState: z.ZodOptional<z.ZodString>;
|
|
73
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
}, z.core.$strict>>;
|
|
75
|
+
}, z.core.$strict>;
|
|
76
|
+
export declare const frontendConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
77
|
+
type: z.ZodLiteral<"next">;
|
|
78
|
+
sourceDir: z.ZodString;
|
|
79
|
+
baseUrl: z.ZodString;
|
|
80
|
+
router: z.ZodLiteral<"app">;
|
|
81
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
82
|
+
width: z.ZodNumber;
|
|
83
|
+
height: z.ZodNumber;
|
|
84
|
+
}, z.core.$strict>>;
|
|
85
|
+
capture: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
mode: z.ZodOptional<z.ZodLiteral<"segments">>;
|
|
87
|
+
segmentHeight: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
storageState: z.ZodOptional<z.ZodString>;
|
|
89
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
}, z.core.$strict>>;
|
|
91
|
+
sampleParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
92
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
93
|
+
type: z.ZodLiteral<"manual">;
|
|
94
|
+
baseUrl: z.ZodString;
|
|
95
|
+
urls: z.ZodArray<z.ZodString>;
|
|
96
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
width: z.ZodNumber;
|
|
98
|
+
height: z.ZodNumber;
|
|
99
|
+
}, z.core.$strict>>;
|
|
100
|
+
capture: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
mode: z.ZodOptional<z.ZodLiteral<"segments">>;
|
|
102
|
+
segmentHeight: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
storageState: z.ZodOptional<z.ZodString>;
|
|
104
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
}, z.core.$strict>>;
|
|
106
|
+
}, z.core.$strict>], "type">;
|
|
107
|
+
export declare const serverConfigSchema: z.ZodObject<{
|
|
108
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
openBrowser: z.ZodOptional<z.ZodBoolean>;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
export declare const anlyxConfigSchema: z.ZodObject<{
|
|
112
|
+
projectName: z.ZodString;
|
|
113
|
+
backend: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
114
|
+
type: z.ZodLiteral<"spring">;
|
|
115
|
+
sourceDir: z.ZodString;
|
|
116
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
117
|
+
openApiUrl: z.ZodOptional<z.ZodString>;
|
|
118
|
+
actuatorMappingsUrl: z.ZodOptional<z.ZodString>;
|
|
119
|
+
maxMainDepth: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
maxSubDepth: z.ZodOptional<z.ZodNumber>;
|
|
121
|
+
includeUtilities: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
123
|
+
type: z.ZodLiteral<"openapi">;
|
|
124
|
+
openApiUrl: z.ZodString;
|
|
125
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, z.core.$strict>], "type">;
|
|
127
|
+
frontend: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
128
|
+
type: z.ZodLiteral<"next">;
|
|
129
|
+
sourceDir: z.ZodString;
|
|
130
|
+
baseUrl: z.ZodString;
|
|
131
|
+
router: z.ZodLiteral<"app">;
|
|
132
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
width: z.ZodNumber;
|
|
134
|
+
height: z.ZodNumber;
|
|
135
|
+
}, z.core.$strict>>;
|
|
136
|
+
capture: z.ZodOptional<z.ZodObject<{
|
|
137
|
+
mode: z.ZodOptional<z.ZodLiteral<"segments">>;
|
|
138
|
+
segmentHeight: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
storageState: z.ZodOptional<z.ZodString>;
|
|
140
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
}, z.core.$strict>>;
|
|
142
|
+
sampleParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
143
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
144
|
+
type: z.ZodLiteral<"manual">;
|
|
145
|
+
baseUrl: z.ZodString;
|
|
146
|
+
urls: z.ZodArray<z.ZodString>;
|
|
147
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
width: z.ZodNumber;
|
|
149
|
+
height: z.ZodNumber;
|
|
150
|
+
}, z.core.$strict>>;
|
|
151
|
+
capture: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
mode: z.ZodOptional<z.ZodLiteral<"segments">>;
|
|
153
|
+
segmentHeight: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
storageState: z.ZodOptional<z.ZodString>;
|
|
155
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
156
|
+
}, z.core.$strict>>;
|
|
157
|
+
}, z.core.$strict>], "type">;
|
|
158
|
+
server: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
160
|
+
openBrowser: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
+
}, z.core.$strict>>;
|
|
162
|
+
}, z.core.$strict>;
|
|
163
|
+
export type ViewportConfig = z.infer<typeof viewportConfigSchema>;
|
|
164
|
+
export type CaptureConfig = z.infer<typeof captureConfigSchema>;
|
|
165
|
+
export type SpringBackendConfig = z.infer<typeof springBackendConfigSchema>;
|
|
166
|
+
export type OpenApiBackendConfig = z.infer<typeof openApiBackendConfigSchema>;
|
|
167
|
+
export type BackendConfig = z.infer<typeof backendConfigSchema>;
|
|
168
|
+
export type NextFrontendConfig = z.infer<typeof nextFrontendConfigSchema>;
|
|
169
|
+
export type ManualFrontendConfig = z.infer<typeof manualFrontendConfigSchema>;
|
|
170
|
+
export type FrontendConfig = z.infer<typeof frontendConfigSchema>;
|
|
171
|
+
export type ServerConfig = z.infer<typeof serverConfigSchema>;
|
|
172
|
+
export type AnlyxConfig = z.infer<typeof anlyxConfigSchema>;
|
|
173
|
+
export type NormalizedCaptureConfig = {
|
|
174
|
+
mode: "segments";
|
|
175
|
+
segmentHeight: number;
|
|
176
|
+
storageState?: string;
|
|
177
|
+
timeoutMs?: number;
|
|
178
|
+
};
|
|
179
|
+
export type NormalizedServerConfig = {
|
|
180
|
+
port: number;
|
|
181
|
+
openBrowser: boolean;
|
|
182
|
+
};
|
|
183
|
+
export type NormalizedSpringBackendConfig = SpringBackendConfig & {
|
|
184
|
+
maxMainDepth: number;
|
|
185
|
+
maxSubDepth: number;
|
|
186
|
+
includeUtilities: boolean;
|
|
187
|
+
};
|
|
188
|
+
export type NormalizedOpenApiBackendConfig = OpenApiBackendConfig;
|
|
189
|
+
export type NormalizedBackendConfig = NormalizedSpringBackendConfig | NormalizedOpenApiBackendConfig;
|
|
190
|
+
export type NormalizedNextFrontendConfig = Omit<NextFrontendConfig, "viewport" | "capture"> & {
|
|
191
|
+
viewport: ViewportConfig;
|
|
192
|
+
capture: NormalizedCaptureConfig;
|
|
193
|
+
};
|
|
194
|
+
export type NormalizedManualFrontendConfig = Omit<ManualFrontendConfig, "viewport" | "capture"> & {
|
|
195
|
+
viewport: ViewportConfig;
|
|
196
|
+
capture: NormalizedCaptureConfig;
|
|
197
|
+
};
|
|
198
|
+
export type NormalizedFrontendConfig = NormalizedNextFrontendConfig | NormalizedManualFrontendConfig;
|
|
199
|
+
export type NormalizedAnlyxConfig = {
|
|
200
|
+
projectName: string;
|
|
201
|
+
backend: NormalizedBackendConfig;
|
|
202
|
+
frontend: NormalizedFrontendConfig;
|
|
203
|
+
server: NormalizedServerConfig;
|
|
204
|
+
};
|
|
205
|
+
export declare function defineConfig<const TConfig extends AnlyxConfig>(config: TConfig): TConfig;
|
|
206
|
+
export declare function parseConfig(value: unknown): AnlyxConfig;
|
|
207
|
+
export declare function normalizeConfig(value: unknown): NormalizedAnlyxConfig;
|
|
208
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,qBAAa,qBAAsB,SAAQ,KAAK;gBAClC,OAAO,EAAE,MAAM;CAI5B;AAED,eAAO,MAAM,oBAAoB;;;kBAKtB,CAAC;AAEZ,eAAO,MAAM,mBAAmB;;;;;kBAOrB,CAAC;AAEZ,eAAO,MAAM,yBAAyB;;;;;;;;;kBAW3B,CAAC;AAEZ,eAAO,MAAM,0BAA0B;;;;kBAM5B,CAAC;AAEZ,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;4BAG9B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;kBAU1B,CAAC;AAEZ,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;kBAQ5B,CAAC;AA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
export class ConfigValidationError extends Error {
|
|
3
|
+
constructor(message) {
|
|
4
|
+
super(message);
|
|
5
|
+
this.name = "ConfigValidationError";
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export const viewportConfigSchema = z
|
|
9
|
+
.object({
|
|
10
|
+
width: z.number(),
|
|
11
|
+
height: z.number()
|
|
12
|
+
})
|
|
13
|
+
.strict();
|
|
14
|
+
export const captureConfigSchema = z
|
|
15
|
+
.object({
|
|
16
|
+
mode: z.literal("segments").optional(),
|
|
17
|
+
segmentHeight: z.number().optional(),
|
|
18
|
+
storageState: z.string().optional(),
|
|
19
|
+
timeoutMs: z.number().optional()
|
|
20
|
+
})
|
|
21
|
+
.strict();
|
|
22
|
+
export const springBackendConfigSchema = z
|
|
23
|
+
.object({
|
|
24
|
+
type: z.literal("spring"),
|
|
25
|
+
sourceDir: z.string(),
|
|
26
|
+
baseUrl: z.string().optional(),
|
|
27
|
+
openApiUrl: z.string().optional(),
|
|
28
|
+
actuatorMappingsUrl: z.string().optional(),
|
|
29
|
+
maxMainDepth: z.number().optional(),
|
|
30
|
+
maxSubDepth: z.number().optional(),
|
|
31
|
+
includeUtilities: z.boolean().optional()
|
|
32
|
+
})
|
|
33
|
+
.strict();
|
|
34
|
+
export const openApiBackendConfigSchema = z
|
|
35
|
+
.object({
|
|
36
|
+
type: z.literal("openapi"),
|
|
37
|
+
openApiUrl: z.string(),
|
|
38
|
+
baseUrl: z.string().optional()
|
|
39
|
+
})
|
|
40
|
+
.strict();
|
|
41
|
+
export const backendConfigSchema = z.discriminatedUnion("type", [
|
|
42
|
+
springBackendConfigSchema,
|
|
43
|
+
openApiBackendConfigSchema
|
|
44
|
+
]);
|
|
45
|
+
export const nextFrontendConfigSchema = z
|
|
46
|
+
.object({
|
|
47
|
+
type: z.literal("next"),
|
|
48
|
+
sourceDir: z.string(),
|
|
49
|
+
baseUrl: z.string(),
|
|
50
|
+
router: z.literal("app"),
|
|
51
|
+
viewport: viewportConfigSchema.optional(),
|
|
52
|
+
capture: captureConfigSchema.optional(),
|
|
53
|
+
sampleParams: z.record(z.string(), z.record(z.string(), z.string())).optional()
|
|
54
|
+
})
|
|
55
|
+
.strict();
|
|
56
|
+
export const manualFrontendConfigSchema = z
|
|
57
|
+
.object({
|
|
58
|
+
type: z.literal("manual"),
|
|
59
|
+
baseUrl: z.string(),
|
|
60
|
+
urls: z.array(z.string()),
|
|
61
|
+
viewport: viewportConfigSchema.optional(),
|
|
62
|
+
capture: captureConfigSchema.optional()
|
|
63
|
+
})
|
|
64
|
+
.strict();
|
|
65
|
+
export const frontendConfigSchema = z.discriminatedUnion("type", [
|
|
66
|
+
nextFrontendConfigSchema,
|
|
67
|
+
manualFrontendConfigSchema
|
|
68
|
+
]);
|
|
69
|
+
export const serverConfigSchema = z
|
|
70
|
+
.object({
|
|
71
|
+
port: z.number().optional(),
|
|
72
|
+
openBrowser: z.boolean().optional()
|
|
73
|
+
})
|
|
74
|
+
.strict();
|
|
75
|
+
export const anlyxConfigSchema = z
|
|
76
|
+
.object({
|
|
77
|
+
projectName: z.string(),
|
|
78
|
+
backend: backendConfigSchema,
|
|
79
|
+
frontend: frontendConfigSchema,
|
|
80
|
+
server: serverConfigSchema.optional()
|
|
81
|
+
})
|
|
82
|
+
.strict();
|
|
83
|
+
export function defineConfig(config) {
|
|
84
|
+
return config;
|
|
85
|
+
}
|
|
86
|
+
export function parseConfig(value) {
|
|
87
|
+
const result = anlyxConfigSchema.safeParse(value);
|
|
88
|
+
if (!result.success) {
|
|
89
|
+
throw new ConfigValidationError(formatConfigIssues(result.error.issues));
|
|
90
|
+
}
|
|
91
|
+
return result.data;
|
|
92
|
+
}
|
|
93
|
+
export function normalizeConfig(value) {
|
|
94
|
+
const config = parseConfig(value);
|
|
95
|
+
return {
|
|
96
|
+
projectName: config.projectName,
|
|
97
|
+
backend: normalizeBackendConfig(config.backend),
|
|
98
|
+
frontend: normalizeFrontendConfig(config.frontend),
|
|
99
|
+
server: {
|
|
100
|
+
port: config.server?.port ?? 4777,
|
|
101
|
+
openBrowser: config.server?.openBrowser ?? true
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function normalizeBackendConfig(backend) {
|
|
106
|
+
if (backend.type === "spring") {
|
|
107
|
+
return {
|
|
108
|
+
...backend,
|
|
109
|
+
maxMainDepth: backend.maxMainDepth ?? 4,
|
|
110
|
+
maxSubDepth: backend.maxSubDepth ?? 1,
|
|
111
|
+
includeUtilities: backend.includeUtilities ?? false
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
return backend;
|
|
115
|
+
}
|
|
116
|
+
function normalizeFrontendConfig(frontend) {
|
|
117
|
+
return {
|
|
118
|
+
...frontend,
|
|
119
|
+
viewport: frontend.viewport ?? { width: 1440, height: 900 },
|
|
120
|
+
capture: normalizeCaptureConfig(frontend.capture)
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function normalizeCaptureConfig(capture) {
|
|
124
|
+
const normalized = {
|
|
125
|
+
mode: capture?.mode ?? "segments",
|
|
126
|
+
segmentHeight: capture?.segmentHeight ?? 900
|
|
127
|
+
};
|
|
128
|
+
if (capture?.storageState !== undefined) {
|
|
129
|
+
normalized.storageState = capture.storageState;
|
|
130
|
+
}
|
|
131
|
+
if (capture?.timeoutMs !== undefined) {
|
|
132
|
+
normalized.timeoutMs = capture.timeoutMs;
|
|
133
|
+
}
|
|
134
|
+
return normalized;
|
|
135
|
+
}
|
|
136
|
+
function formatConfigIssues(issues) {
|
|
137
|
+
const details = issues.map((issue) => {
|
|
138
|
+
const path = issue.path.length > 0 ? issue.path.join(".") : "config";
|
|
139
|
+
return `${path}: ${issue.message}`;
|
|
140
|
+
});
|
|
141
|
+
return `Invalid Anlyx config: ${details.join("; ")}`;
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":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,UAAU,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAC3C,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,kBAAkB,CAAC,MAA0B;IACpD,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACnC,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;QACrE,OAAO,GAAG,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,OAAO,yBAAyB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type FixtureValidationIssue = {
|
|
2
|
+
code: string;
|
|
3
|
+
message: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
};
|
|
6
|
+
export type FixtureValidationResult = {
|
|
7
|
+
ok: boolean;
|
|
8
|
+
issues: FixtureValidationIssue[];
|
|
9
|
+
};
|
|
10
|
+
export type FixtureExpectedData = {
|
|
11
|
+
endpoints: unknown;
|
|
12
|
+
flows: unknown;
|
|
13
|
+
pages: unknown;
|
|
14
|
+
reportData: unknown;
|
|
15
|
+
};
|
|
16
|
+
export declare function validateFixtureExpectedData(data: FixtureExpectedData): FixtureValidationResult;
|
|
17
|
+
//# sourceMappingURL=fixture-validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixture-validation.d.ts","sourceRoot":"","sources":["../src/fixture-validation.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,sBAAsB,EAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,mBAAmB,GAAG,uBAAuB,CAgB9F"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { endpointFlowSchema, endpointSchema, pageStoryboardSchema, scanResultSchema } from "./schema.js";
|
|
2
|
+
export function validateFixtureExpectedData(data) {
|
|
3
|
+
const issues = [];
|
|
4
|
+
const endpoints = parsePart("endpoints", data.endpoints, endpointSchema.array(), issues);
|
|
5
|
+
const flows = parsePart("flows", data.flows, endpointFlowSchema.array(), issues);
|
|
6
|
+
const pages = parsePart("pages", data.pages, pageStoryboardSchema.array(), issues);
|
|
7
|
+
const reportData = parsePart("reportData", data.reportData, scanResultSchema, issues);
|
|
8
|
+
if (!endpoints || !flows || !pages || !reportData) {
|
|
9
|
+
return toResult(issues);
|
|
10
|
+
}
|
|
11
|
+
validateAggregateEquality({ endpoints, flows, pages, reportData }, issues);
|
|
12
|
+
validateFlowReferences({ endpoints, flows }, issues);
|
|
13
|
+
validatePageReferences({ endpoints, pages }, issues);
|
|
14
|
+
return toResult(issues);
|
|
15
|
+
}
|
|
16
|
+
function parsePart(partName, value, schema, issues) {
|
|
17
|
+
const result = schema.safeParse(value);
|
|
18
|
+
if (result.success) {
|
|
19
|
+
return result.data;
|
|
20
|
+
}
|
|
21
|
+
issues.push({
|
|
22
|
+
code: `${partName === "reportData" ? "report_data" : partName}_schema_invalid`,
|
|
23
|
+
message: `${partName} does not match the Anlyx data contract.`,
|
|
24
|
+
path: partName
|
|
25
|
+
});
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
function validateAggregateEquality(data, issues) {
|
|
29
|
+
if (!deepEqual(data.reportData.endpoints, data.endpoints)) {
|
|
30
|
+
issues.push({
|
|
31
|
+
code: "report_endpoints_mismatch",
|
|
32
|
+
message: "report-data.json endpoints must match endpoints.json.",
|
|
33
|
+
path: "reportData.endpoints"
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
if (!deepEqual(data.reportData.flows, data.flows)) {
|
|
37
|
+
issues.push({
|
|
38
|
+
code: "report_flows_mismatch",
|
|
39
|
+
message: "report-data.json flows must match flows.json.",
|
|
40
|
+
path: "reportData.flows"
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
if (!deepEqual(data.reportData.pages, data.pages)) {
|
|
44
|
+
issues.push({
|
|
45
|
+
code: "report_pages_mismatch",
|
|
46
|
+
message: "report-data.json pages must match pages.json.",
|
|
47
|
+
path: "reportData.pages"
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function validateFlowReferences(data, issues) {
|
|
52
|
+
const endpointIds = new Set(data.endpoints.map((endpoint) => endpoint.id));
|
|
53
|
+
data.flows.forEach((flow, flowIndex) => {
|
|
54
|
+
if (!endpointIds.has(flow.endpointId)) {
|
|
55
|
+
issues.push({
|
|
56
|
+
code: "flow_endpoint_missing",
|
|
57
|
+
message: `Flow references missing endpointId: ${flow.endpointId}.`,
|
|
58
|
+
path: `flows.${flowIndex}.endpointId`
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
const nodeIds = new Set(flow.nodes.map((node) => node.id));
|
|
62
|
+
flow.mainPath.forEach((nodeId, nodeIndex) => {
|
|
63
|
+
if (!nodeIds.has(nodeId)) {
|
|
64
|
+
issues.push({
|
|
65
|
+
code: "flow_main_path_node_missing",
|
|
66
|
+
message: `Flow mainPath references missing node: ${nodeId}.`,
|
|
67
|
+
path: `flows.${flowIndex}.mainPath.${nodeIndex}`
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
flow.edges.forEach((edge, edgeIndex) => {
|
|
72
|
+
if (!nodeIds.has(edge.from)) {
|
|
73
|
+
issues.push({
|
|
74
|
+
code: "flow_edge_node_missing",
|
|
75
|
+
message: `Flow edge references missing from node: ${edge.from}.`,
|
|
76
|
+
path: `flows.${flowIndex}.edges.${edgeIndex}.from`
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
if (!nodeIds.has(edge.to)) {
|
|
80
|
+
issues.push({
|
|
81
|
+
code: "flow_edge_node_missing",
|
|
82
|
+
message: `Flow edge references missing to node: ${edge.to}.`,
|
|
83
|
+
path: `flows.${flowIndex}.edges.${edgeIndex}.to`
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
flow.subFlows.forEach((subFlow, subFlowIndex) => {
|
|
88
|
+
if (!nodeIds.has(subFlow.parentNodeId)) {
|
|
89
|
+
issues.push({
|
|
90
|
+
code: "subflow_parent_node_missing",
|
|
91
|
+
message: `SubFlow references missing parentNodeId: ${subFlow.parentNodeId}.`,
|
|
92
|
+
path: `flows.${flowIndex}.subFlows.${subFlowIndex}.parentNodeId`
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
function validatePageReferences(data, issues) {
|
|
99
|
+
const endpointIds = new Set(data.endpoints.map((endpoint) => endpoint.id));
|
|
100
|
+
data.pages.forEach((page, pageIndex) => {
|
|
101
|
+
page.apiCalls.forEach((apiCall, apiCallIndex) => {
|
|
102
|
+
if (apiCall.endpointId && !endpointIds.has(apiCall.endpointId)) {
|
|
103
|
+
issues.push({
|
|
104
|
+
code: "page_api_call_endpoint_missing",
|
|
105
|
+
message: `Page apiCall references missing endpointId: ${apiCall.endpointId}.`,
|
|
106
|
+
path: `pages.${pageIndex}.apiCalls.${apiCallIndex}.endpointId`
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function deepEqual(left, right) {
|
|
113
|
+
return JSON.stringify(left) === JSON.stringify(right);
|
|
114
|
+
}
|
|
115
|
+
function toResult(issues) {
|
|
116
|
+
return {
|
|
117
|
+
ok: issues.length === 0,
|
|
118
|
+
issues
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=fixture-validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixture-validation.js","sourceRoot":"","sources":["../src/fixture-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAKjB,MAAM,aAAa,CAAC;AAoBrB,MAAM,UAAU,2BAA2B,CAAC,IAAyB;IACnE,MAAM,MAAM,GAA6B,EAAE,CAAC;IAC5C,MAAM,SAAS,GAAG,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC;IACzF,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,kBAAkB,CAAC,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC;IACjF,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,oBAAoB,CAAC,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC;IACnF,MAAM,UAAU,GAAG,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,EAAE,gBAAgB,EAAE,MAAM,CAAC,CAAC;IAEtF,IAAI,CAAC,SAAS,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC;QAClD,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC1B,CAAC;IAED,yBAAyB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,MA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QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAE3E,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE;QACrC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE;YAC9C,IAAI,OAAO,CAAC,UAAU,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;gBAC/D,MAAM,CAAC,IAAI,CAAC;oBACV,IAAI,EAAE,gCAAgC;oBACtC,OAAO,EAAE,+CAA+C,OAAO,CAAC,UAAU,GAAG;oBAC7E,IAAI,EAAE,SAAS,SAAS,aAAa,YAAY,aAAa;iBAC/D,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,SAAS,CAAC,IAAa,EAAE,KAAc;IAC9C,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAS,QAAQ,CAAC,MAAgC;IAChD,OAAO;QACL,EAAE,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC;QACvB,MAAM;KACP,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type { AnlyxConfig, BackendConfig, CaptureConfig, FrontendConfig, ManualFrontendConfig, NextFrontendConfig, NormalizedAnlyxConfig, NormalizedBackendConfig, NormalizedCaptureConfig, NormalizedFrontendConfig, NormalizedManualFrontendConfig, NormalizedNextFrontendConfig, NormalizedOpenApiBackendConfig, NormalizedServerConfig, NormalizedSpringBackendConfig, OpenApiBackendConfig, ServerConfig, SpringBackendConfig, ViewportConfig } from "./config.js";
|
|
2
|
+
export type { FixtureExpectedData, FixtureValidationIssue, FixtureValidationResult } from "./fixture-validation.js";
|
|
3
|
+
export type { AggregateReportDataInput, ReportAggregationIssue, ReportAggregationResult, ReportAggregationWarning } from "./report-aggregation.js";
|
|
4
|
+
export type { ApiCall, CaptureResult, CaptureStatus, ConfidenceLevel, Endpoint, EndpointFlow, FlowEdge, FlowNode, HttpMethod, PageStoryboard, ScanResult, ScreenshotSegment, SubFlow, SupportLevel, Viewport } from "./schema.js";
|
|
5
|
+
export { ConfigValidationError, anlyxConfigSchema, backendConfigSchema, captureConfigSchema, defineConfig, frontendConfigSchema, manualFrontendConfigSchema, nextFrontendConfigSchema, normalizeConfig, openApiBackendConfigSchema, parseConfig, serverConfigSchema, springBackendConfigSchema, viewportConfigSchema } from "./config.js";
|
|
6
|
+
export { validateFixtureExpectedData } from "./fixture-validation.js";
|
|
7
|
+
export { aggregateReportData, matchApiCallToEndpoint } from "./report-aggregation.js";
|
|
8
|
+
export { apiCallSchema, captureResultSchema, captureStatusSchema, confidenceLevelSchema, endpointFlowSchema, endpointSchema, flowEdgeSchema, flowNodeSchema, httpMethodSchema, pageStoryboardSchema, parseCaptureResult, parseEndpoint, parseEndpointFlow, parsePageStoryboard, parseScanResult, scanResultSchema, screenshotSegmentSchema, subFlowSchema, supportLevelSchema, viewportSchema } from "./schema.js";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,8BAA8B,EAC9B,4BAA4B,EAC5B,8BAA8B,EAC9B,sBAAsB,EACtB,6BAA6B,EAC7B,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACf,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,OAAO,EACP,aAAa,EACb,aAAa,EACb,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,QAAQ,EACT,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,eAAe,EACf,0BAA0B,EAC1B,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEtF,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,aAAa,EACb,kBAAkB,EAClB,cAAc,EACf,MAAM,aAAa,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ConfigValidationError, anlyxConfigSchema, backendConfigSchema, captureConfigSchema, defineConfig, frontendConfigSchema, manualFrontendConfigSchema, nextFrontendConfigSchema, normalizeConfig, openApiBackendConfigSchema, parseConfig, serverConfigSchema, springBackendConfigSchema, viewportConfigSchema } from "./config.js";
|
|
2
|
+
export { validateFixtureExpectedData } from "./fixture-validation.js";
|
|
3
|
+
export { aggregateReportData, matchApiCallToEndpoint } from "./report-aggregation.js";
|
|
4
|
+
export { apiCallSchema, captureResultSchema, captureStatusSchema, confidenceLevelSchema, endpointFlowSchema, endpointSchema, flowEdgeSchema, flowNodeSchema, httpMethodSchema, pageStoryboardSchema, parseCaptureResult, parseEndpoint, parseEndpointFlow, parsePageStoryboard, parseScanResult, scanResultSchema, screenshotSegmentSchema, subFlowSchema, supportLevelSchema, viewportSchema } from "./schema.js";
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAqDA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,eAAe,EACf,0BAA0B,EAC1B,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEtF,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,aAAa,EACb,kBAAkB,EAClB,cAAc,EACf,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ApiCall, type CaptureResult, type Endpoint, type EndpointFlow, type PageStoryboard, type ScanResult } from "./schema.js";
|
|
2
|
+
export type ReportAggregationIssue = {
|
|
3
|
+
code: string;
|
|
4
|
+
message: string;
|
|
5
|
+
path?: string;
|
|
6
|
+
};
|
|
7
|
+
export type ReportAggregationWarning = ScanResult["warnings"][number];
|
|
8
|
+
export type AggregateReportDataInput = {
|
|
9
|
+
projectName?: string;
|
|
10
|
+
generatedAt?: string;
|
|
11
|
+
endpoints: Endpoint[];
|
|
12
|
+
flows: EndpointFlow[];
|
|
13
|
+
pages: PageStoryboard[];
|
|
14
|
+
capture?: CaptureResult;
|
|
15
|
+
warnings?: ReportAggregationWarning[];
|
|
16
|
+
};
|
|
17
|
+
export type ReportAggregationResult = {
|
|
18
|
+
scanResult: ScanResult;
|
|
19
|
+
issues: ReportAggregationIssue[];
|
|
20
|
+
};
|
|
21
|
+
export declare function aggregateReportData(input: AggregateReportDataInput): ReportAggregationResult;
|
|
22
|
+
export declare function matchApiCallToEndpoint(apiCall: ApiCall, endpoints: Endpoint[]): Endpoint | null;
|
|
23
|
+
//# sourceMappingURL=report-aggregation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-aggregation.d.ts","sourceRoot":"","sources":["../src/report-aggregation.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,UAAU,EAChB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,QAAQ,CAAC,EAAE,wBAAwB,EAAE,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,sBAAsB,EAAE,CAAC;CAClC,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,GAAG,uBAAuB,CAmC5F;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,QAAQ,GAAG,IAAI,CAY/F"}
|