@code-pushup/models 0.49.0 → 0.50.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/index.js CHANGED
@@ -676,6 +676,8 @@ var auditResultSchema = scorableWithPluginMetaSchema.merge(
676
676
  );
677
677
  var reportsDiffSchema = z15.object({
678
678
  commits: makeComparisonSchema(commitSchema).nullable().describe("Commits identifying compared reports"),
679
+ portalUrl: urlSchema.optional().describe("Link to comparison page in Code PushUp portal"),
680
+ label: z15.string().optional().describe("Label (e.g. project name)"),
679
681
  categories: makeArraysComparisonSchema(
680
682
  categoryDiffSchema,
681
683
  categoryResultSchema,
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@code-pushup/models",
3
- "version": "0.49.0",
3
+ "version": "0.50.0",
4
4
  "license": "MIT",
5
+ "description": "Model definitions and validators for the Code PushUp CLI",
5
6
  "dependencies": {
6
7
  "zod": "^3.22.1",
7
8
  "vscode-material-icons": "^0.1.0"
8
9
  },
9
- "homepage": "https://github.com/code-pushup/cli#readme",
10
+ "homepage": "https://github.com/code-pushup/cli/tree/main/packages/models#readme",
10
11
  "bugs": {
11
12
  "url": "https://github.com/code-pushup/cli/issues"
12
13
  },
@@ -15,33 +16,6 @@
15
16
  "url": "git+https://github.com/code-pushup/cli.git",
16
17
  "directory": "packages/models"
17
18
  },
18
- "contributors": [
19
- {
20
- "name": "Igor Katsuba",
21
- "email": "igor@katsuba.dev",
22
- "url": "https://katsuba.dev"
23
- },
24
- {
25
- "name": "Kateřina Pilátová",
26
- "email": "katerina.pilatova@flowup.cz",
27
- "url": "https://github.com/Tlacenka"
28
- },
29
- {
30
- "name": "Matěj Chalk",
31
- "email": "matej.chalk@flowup.cz",
32
- "url": "https://github.com/matejchalk"
33
- },
34
- {
35
- "name": "Michael Hladky",
36
- "email": "michael.hladky@push-based.io",
37
- "url": "https://push-based.io"
38
- },
39
- {
40
- "name": "Michael Seredenko",
41
- "email": "misha.seredenko@push-based.io",
42
- "url": "https://github.com/MishaSeredenkoPushBased"
43
- }
44
- ],
45
19
  "type": "module",
46
20
  "main": "./index.js",
47
21
  "types": "./src/index.d.ts"
package/src/index.d.ts CHANGED
@@ -1,20 +1,20 @@
1
- export { TableCellValue, tableCellValueSchema, } from './lib/implementation/schemas';
2
- export { Audit, auditSchema } from './lib/audit';
3
- export { AuditDetails, AuditOutput, AuditOutputs, auditDetailsSchema, auditOutputSchema, auditOutputsSchema, } from './lib/audit-output';
4
- export { CategoryConfig, CategoryRef, categoryConfigSchema, categoryRefSchema, } from './lib/category-config';
5
- export { Commit, commitSchema } from './lib/commit';
6
- export { CoreConfig, coreConfigSchema } from './lib/core-config';
7
- export { Group, GroupRef, groupRefSchema, groupSchema } from './lib/group';
1
+ export { type TableCellValue, tableCellValueSchema, } from './lib/implementation/schemas';
2
+ export { type Audit, auditSchema } from './lib/audit';
3
+ export { type AuditDetails, type AuditOutput, type AuditOutputs, auditDetailsSchema, auditOutputSchema, auditOutputsSchema, } from './lib/audit-output';
4
+ export { type CategoryConfig, type CategoryRef, categoryConfigSchema, categoryRefSchema, } from './lib/category-config';
5
+ export { type Commit, commitSchema } from './lib/commit';
6
+ export { type CoreConfig, coreConfigSchema } from './lib/core-config';
7
+ export { type Group, type GroupRef, groupRefSchema, groupSchema, } from './lib/group';
8
8
  export { CONFIG_FILE_NAME, SUPPORTED_CONFIG_FILE_FORMATS, } from './lib/implementation/configuration';
9
9
  export { DEFAULT_PERSIST_FILENAME, DEFAULT_PERSIST_FORMAT, DEFAULT_PERSIST_OUTPUT_DIR, } from './lib/implementation/constants';
10
10
  export { MAX_DESCRIPTION_LENGTH, MAX_ISSUE_MESSAGE_LENGTH, MAX_SLUG_LENGTH, MAX_TITLE_LENGTH, } from './lib/implementation/limits';
11
- export { MaterialIcon, materialIconSchema } from './lib/implementation/schemas';
11
+ export { type MaterialIcon, materialIconSchema, } from './lib/implementation/schemas';
12
12
  export { exists } from './lib/implementation/utils';
13
- export { TableAlignment, tableAlignmentSchema, TableRowPrimitive, tableRowPrimitiveSchema, TableRowObject, tableRowObjectSchema, TableColumnPrimitive, tableColumnPrimitiveSchema, TableColumnObject, tableColumnObjectSchema, Table, tableSchema, } from './lib/table';
14
- export { Issue, IssueSeverity, issueSchema, issueSeveritySchema, } from './lib/issue';
15
- export { Format, PersistConfig, formatSchema, persistConfigSchema, } from './lib/persist-config';
16
- export { PluginConfig, PluginMeta, pluginConfigSchema, pluginMetaSchema, } from './lib/plugin-config';
17
- export { AuditReport, PluginReport, Report, auditReportSchema, pluginReportSchema, reportSchema, } from './lib/report';
18
- export { AuditDiff, AuditResult, CategoryDiff, CategoryResult, GroupDiff, GroupResult, ReportsDiff, auditDiffSchema, auditResultSchema, categoryDiffSchema, categoryResultSchema, groupDiffSchema, groupResultSchema, reportsDiffSchema, } from './lib/reports-diff';
19
- export { OnProgress, RunnerConfig, RunnerFunction, onProgressSchema, runnerConfigSchema, runnerFunctionSchema, } from './lib/runner-config';
20
- export { UploadConfig, uploadConfigSchema } from './lib/upload-config';
13
+ export { type TableAlignment, tableAlignmentSchema, type TableRowPrimitive, tableRowPrimitiveSchema, type TableRowObject, tableRowObjectSchema, type TableColumnPrimitive, tableColumnPrimitiveSchema, type TableColumnObject, tableColumnObjectSchema, type Table, tableSchema, } from './lib/table';
14
+ export { type Issue, type IssueSeverity, issueSchema, issueSeveritySchema, } from './lib/issue';
15
+ export { type Format, type PersistConfig, formatSchema, persistConfigSchema, } from './lib/persist-config';
16
+ export { type PluginConfig, type PluginMeta, pluginConfigSchema, pluginMetaSchema, } from './lib/plugin-config';
17
+ export { type AuditReport, type PluginReport, type Report, auditReportSchema, pluginReportSchema, reportSchema, } from './lib/report';
18
+ export { type AuditDiff, type AuditResult, type CategoryDiff, type CategoryResult, type GroupDiff, type GroupResult, type ReportsDiff, auditDiffSchema, auditResultSchema, categoryDiffSchema, categoryResultSchema, groupDiffSchema, groupResultSchema, reportsDiffSchema, } from './lib/reports-diff';
19
+ export { type OnProgress, type RunnerConfig, type RunnerFunction, onProgressSchema, runnerConfigSchema, runnerFunctionSchema, } from './lib/runner-config';
20
+ export { type UploadConfig, uploadConfigSchema } from './lib/upload-config';
@@ -1,4 +1,4 @@
1
- import { Format } from '../persist-config';
1
+ import type { Format } from '../persist-config';
2
2
  export declare const DEFAULT_PERSIST_OUTPUT_DIR = ".code-pushup";
3
3
  export declare const DEFAULT_PERSIST_FILENAME = "report";
4
4
  export declare const DEFAULT_PERSIST_FORMAT: Format[];
@@ -1,4 +1,4 @@
1
- import { ZodObject, ZodOptional, ZodString, z } from 'zod';
1
+ import { type ZodObject, type ZodOptional, type ZodString, z } from 'zod';
2
2
  export declare const tableCellValueSchema: z.ZodDefault<z.ZodUnion<[ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
3
3
  export type TableCellValue = z.infer<typeof tableCellValueSchema>;
4
4
  /**
@@ -575,6 +575,8 @@ export declare const reportsDiffSchema: z.ZodObject<z.objectUtil.extendShape<z.o
575
575
  author: string;
576
576
  };
577
577
  }>>;
578
+ portalUrl: z.ZodOptional<z.ZodString>;
579
+ label: z.ZodOptional<z.ZodString>;
578
580
  categories: z.ZodObject<{
579
581
  changed: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
580
582
  slug: z.ZodString;
@@ -2112,6 +2114,8 @@ export declare const reportsDiffSchema: z.ZodObject<z.objectUtil.extendShape<z.o
2112
2114
  author: string;
2113
2115
  };
2114
2116
  } | null;
2117
+ label?: string | undefined;
2118
+ portalUrl?: string | undefined;
2115
2119
  }, {
2116
2120
  date: string;
2117
2121
  packageName: string;
@@ -2276,5 +2280,7 @@ export declare const reportsDiffSchema: z.ZodObject<z.objectUtil.extendShape<z.o
2276
2280
  author: string;
2277
2281
  };
2278
2282
  } | null;
2283
+ label?: string | undefined;
2284
+ portalUrl?: string | undefined;
2279
2285
  }>;
2280
2286
  export type ReportsDiff = z.infer<typeof reportsDiffSchema>;