@code-pushup/models 0.57.0 → 0.58.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.
@@ -606,6 +606,14 @@ export declare const outputTransformSchema: z.ZodFunction<z.ZodTuple<[z.ZodUnkno
606
606
  } | undefined;
607
607
  } | undefined;
608
608
  }[]>>]>>;
609
+ /**
610
+ * Type Definition: `OutputTransform`
611
+ *
612
+ * This type is derived from a Zod schema and represents
613
+ * the validated structure of `OutputTransform` used within the application.
614
+ *
615
+ * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#outputtransform}
616
+ */
609
617
  export type OutputTransform = z.infer<typeof outputTransformSchema>;
610
618
  export declare const runnerConfigSchema: z.ZodObject<{
611
619
  command: z.ZodString;
@@ -1218,6 +1226,7 @@ export declare const runnerConfigSchema: z.ZodObject<{
1218
1226
  } | undefined;
1219
1227
  } | undefined;
1220
1228
  }[]>>]>>>;
1229
+ configFile: z.ZodOptional<z.ZodString>;
1221
1230
  }, "strip", z.ZodTypeAny, {
1222
1231
  command: string;
1223
1232
  outputFile: string;
@@ -1289,6 +1298,7 @@ export declare const runnerConfigSchema: z.ZodObject<{
1289
1298
  } | undefined;
1290
1299
  } | undefined;
1291
1300
  }[]>) | undefined;
1301
+ configFile?: string | undefined;
1292
1302
  }, {
1293
1303
  command: string;
1294
1304
  outputFile: string;
@@ -1360,9 +1370,26 @@ export declare const runnerConfigSchema: z.ZodObject<{
1360
1370
  } | undefined;
1361
1371
  } | undefined;
1362
1372
  }[]>) | undefined;
1373
+ configFile?: string | undefined;
1363
1374
  }>;
1375
+ /**
1376
+ * Type Definition: `RunnerConfig`
1377
+ *
1378
+ * This type is derived from a Zod schema and represents
1379
+ * the validated structure of `RunnerConfig` used within the application.
1380
+ *
1381
+ * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#runnerconfig}
1382
+ */
1364
1383
  export type RunnerConfig = z.infer<typeof runnerConfigSchema>;
1365
1384
  export declare const onProgressSchema: z.ZodFunction<z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodVoid>;
1385
+ /**
1386
+ * Type Definition: `OnProgress`
1387
+ *
1388
+ * This type is derived from a Zod schema and represents
1389
+ * the validated structure of `OnProgress` used within the application.
1390
+ *
1391
+ * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#onprogress}
1392
+ */
1366
1393
  export type OnProgress = z.infer<typeof onProgressSchema>;
1367
1394
  export declare const runnerFunctionSchema: z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodUnknown], z.ZodUnknown>, z.ZodVoid>>], z.ZodUnknown>, z.ZodUnion<[z.ZodEffects<z.ZodArray<z.ZodObject<{
1368
1395
  slug: z.ZodString;
@@ -1971,4 +1998,31 @@ export declare const runnerFunctionSchema: z.ZodFunction<z.ZodTuple<[z.ZodOption
1971
1998
  } | undefined;
1972
1999
  } | undefined;
1973
2000
  }[]>>]>>;
2001
+ /**
2002
+ * Type Definition: `RunnerFunction`
2003
+ *
2004
+ * This type is derived from a Zod schema and represents
2005
+ * the validated structure of `RunnerFunction` used within the application.
2006
+ *
2007
+ * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#runnerfunction}
2008
+ */
1974
2009
  export type RunnerFunction = z.infer<typeof runnerFunctionSchema>;
2010
+ export declare const runnerFilesPathsSchema: z.ZodObject<{
2011
+ runnerConfigPath: z.ZodString;
2012
+ runnerOutputPath: z.ZodString;
2013
+ }, "strip", z.ZodTypeAny, {
2014
+ runnerConfigPath: string;
2015
+ runnerOutputPath: string;
2016
+ }, {
2017
+ runnerConfigPath: string;
2018
+ runnerOutputPath: string;
2019
+ }>;
2020
+ /**
2021
+ * Type Definition: `RunnerFilesPaths`
2022
+ *
2023
+ * This type is derived from a Zod schema and represents
2024
+ * the validated structure of `RunnerFilesPaths` used within the application.
2025
+ *
2026
+ * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#runnerfilespaths}
2027
+ */
2028
+ export type RunnerFilesPaths = z.infer<typeof runnerFilesPathsSchema>;
@@ -10,8 +10,9 @@ export const runnerConfigSchema = z.object({
10
10
  description: 'Shell command to execute',
11
11
  }),
12
12
  args: z.array(z.string({ description: 'Command arguments' })).optional(),
13
- outputFile: filePathSchema.describe('Output path'),
13
+ outputFile: filePathSchema.describe('Runner output path'),
14
14
  outputTransform: outputTransformSchema.optional(),
15
+ configFile: filePathSchema.describe('Runner config path').optional(),
15
16
  }, {
16
17
  description: 'How to execute runner',
17
18
  });
@@ -23,4 +24,8 @@ export const runnerFunctionSchema = z
23
24
  .function()
24
25
  .args(onProgressSchema.optional())
25
26
  .returns(z.union([auditOutputsSchema, z.promise(auditOutputsSchema)]));
27
+ export const runnerFilesPathsSchema = z.object({
28
+ runnerConfigPath: filePathSchema.describe('Runner config path'),
29
+ runnerOutputPath: filePathSchema.describe('Runner output path'),
30
+ });
26
31
  //# sourceMappingURL=runner-config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"runner-config.js","sourceRoot":"","sources":["../../../../../packages/models/src/lib/runner-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KACnC,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;KACjB,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AAIzE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CACxC;IACE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QACh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GAAG,CAAC,CAAC,MAAM,CACxC;IACE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB,WAAW,EAAE,0BAA0B;KACxC,CAAC;IACF,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxE,UAAU,EAAE,cAAc,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IACzD,eAAe,EAAE,qBAAqB,CAAC,QAAQ,EAAE;IACjD,UAAU,EAAE,cAAc,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC,QAAQ,EAAE;CACrE,EACD;IACE,WAAW,EAAE,uBAAuB;CACrC,CACF,CAAC;AAIF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;KACjB,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAGrB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,QAAQ,EAAE;KACV,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC;KACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AAIzE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,gBAAgB,EAAE,cAAc,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/D,gBAAgB,EAAE,cAAc,CAAC,QAAQ,CAAC,oBAAoB,CAAC;CAChE,CAAC,CAAC"}
@@ -34,4 +34,12 @@ export declare const sourceFileLocationSchema: z.ZodObject<{
34
34
  endColumn?: number | undefined;
35
35
  } | undefined;
36
36
  }>;
37
+ /**
38
+ * Type Definition: `SourceFileLocation`
39
+ *
40
+ * This type is derived from a Zod schema and represents
41
+ * the validated structure of `SourceFileLocation` used within the application.
42
+ *
43
+ * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#sourcefilelocation}
44
+ */
37
45
  export type SourceFileLocation = z.infer<typeof sourceFileLocationSchema>;
@@ -1,7 +1,23 @@
1
1
  import { z } from 'zod';
2
2
  export declare const tableAlignmentSchema: z.ZodEnum<["left", "center", "right"]>;
3
+ /**
4
+ * Type Definition: `TableAlignment`
5
+ *
6
+ * This type is derived from a Zod schema and represents
7
+ * the validated structure of `TableAlignment` used within the application.
8
+ *
9
+ * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#tablealignment}
10
+ */
3
11
  export type TableAlignment = z.infer<typeof tableAlignmentSchema>;
4
12
  export declare const tableColumnPrimitiveSchema: z.ZodEnum<["left", "center", "right"]>;
13
+ /**
14
+ * Type Definition: `TableColumnPrimitive`
15
+ *
16
+ * This type is derived from a Zod schema and represents
17
+ * the validated structure of `TableColumnPrimitive` used within the application.
18
+ *
19
+ * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#tablecolumnprimitive}
20
+ */
5
21
  export type TableColumnPrimitive = z.infer<typeof tableColumnPrimitiveSchema>;
6
22
  export declare const tableColumnObjectSchema: z.ZodObject<{
7
23
  key: z.ZodString;
@@ -16,10 +32,34 @@ export declare const tableColumnObjectSchema: z.ZodObject<{
16
32
  label?: string | undefined;
17
33
  align?: "left" | "center" | "right" | undefined;
18
34
  }>;
35
+ /**
36
+ * Type Definition: `TableColumnObject`
37
+ *
38
+ * This type is derived from a Zod schema and represents
39
+ * the validated structure of `TableColumnObject` used within the application.
40
+ *
41
+ * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#tablecolumnobject}
42
+ */
19
43
  export type TableColumnObject = z.infer<typeof tableColumnObjectSchema>;
20
44
  export declare const tableRowObjectSchema: z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
45
+ /**
46
+ * Type Definition: `TableRowObject`
47
+ *
48
+ * This type is derived from a Zod schema and represents
49
+ * the validated structure of `TableRowObject` used within the application.
50
+ *
51
+ * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#tablerowobject}
52
+ */
21
53
  export type TableRowObject = z.infer<typeof tableRowObjectSchema>;
22
54
  export declare const tableRowPrimitiveSchema: z.ZodArray<z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">;
55
+ /**
56
+ * Type Definition: `TableRowPrimitive`
57
+ *
58
+ * This type is derived from a Zod schema and represents
59
+ * the validated structure of `TableRowPrimitive` used within the application.
60
+ *
61
+ * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#tablerowprimitive}
62
+ */
23
63
  export type TableRowPrimitive = z.infer<typeof tableRowPrimitiveSchema>;
24
64
  export declare const tableSchema: (description?: string) => z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
25
65
  title: z.ZodOptional<z.ZodString>;
@@ -68,4 +108,12 @@ export declare const tableSchema: (description?: string) => z.ZodUnion<[z.ZodObj
68
108
  align?: "left" | "center" | "right" | undefined;
69
109
  }[] | undefined;
70
110
  }>]>;
111
+ /**
112
+ * Type Definition: `Table`
113
+ *
114
+ * This type is derived from a Zod schema and represents
115
+ * the validated structure of `Table` used within the application.
116
+ *
117
+ * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#table}
118
+ */
71
119
  export type Table = z.infer<ReturnType<typeof tableSchema>>;
@@ -18,4 +18,12 @@ export declare const uploadConfigSchema: z.ZodObject<{
18
18
  project: string;
19
19
  timeout?: number | undefined;
20
20
  }>;
21
+ /**
22
+ * Type Definition: `UploadConfig`
23
+ *
24
+ * This type is derived from a Zod schema and represents
25
+ * the validated structure of `UploadConfig` used within the application.
26
+ *
27
+ * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#uploadconfig}
28
+ */
21
29
  export type UploadConfig = z.infer<typeof uploadConfigSchema>;