Skip to content
Snippets Groups Projects
Unverified Commit 8621d8cb authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

chore: simplify package types (#20598)

parent eb8a02c3
No related merge requests found
...@@ -73,32 +73,6 @@ export interface PackageFile<T = Record<string, any>> ...@@ -73,32 +73,6 @@ export interface PackageFile<T = Record<string, any>>
packageFile: string; packageFile: string;
} }
export interface Package<T> extends ManagerData<T> {
currentValue?: string | null;
currentDigest?: string;
depName?: string;
depType?: string;
fileReplacePosition?: number;
groupName?: string;
lineNumber?: number;
packageName?: string | null;
target?: string;
versioning?: string;
dataType?: string;
enabled?: boolean;
// npm manager
bumpVersion?: ReleaseType | string;
npmPackageAlias?: boolean;
packageFileVersion?: string;
gitRef?: boolean;
sourceUrl?: string | null;
pinDigests?: boolean;
currentRawValue?: string;
major?: { enabled?: boolean };
prettyDepType?: string;
}
export interface LookupUpdate { export interface LookupUpdate {
bucket?: string; bucket?: string;
branchName?: string; branchName?: string;
...@@ -127,7 +101,29 @@ export interface LookupUpdate { ...@@ -127,7 +101,29 @@ export interface LookupUpdate {
registryUrl?: string; registryUrl?: string;
} }
export interface PackageDependency<T = Record<string, any>> extends Package<T> { export interface PackageDependency<T = Record<string, any>>
extends ManagerData<T> {
currentValue?: string | null;
currentDigest?: string;
depName?: string;
depType?: string;
fileReplacePosition?: number;
groupName?: string;
lineNumber?: number;
packageName?: string | null;
target?: string;
versioning?: string;
dataType?: string;
enabled?: boolean;
bumpVersion?: ReleaseType | string;
npmPackageAlias?: boolean;
packageFileVersion?: string;
gitRef?: boolean;
sourceUrl?: string | null;
pinDigests?: boolean;
currentRawValue?: string;
major?: { enabled?: boolean };
prettyDepType?: string;
newValue?: string; newValue?: string;
warnings?: ValidationMessage[]; warnings?: ValidationMessage[];
commitMessageTopic?: string; commitMessageTopic?: string;
...@@ -155,7 +151,7 @@ export interface PackageDependency<T = Record<string, any>> extends Package<T> { ...@@ -155,7 +151,7 @@ export interface PackageDependency<T = Record<string, any>> extends Package<T> {
variableName?: string; variableName?: string;
} }
export interface Upgrade<T = Record<string, any>> extends Package<T> { export interface Upgrade<T = Record<string, any>> extends PackageDependency<T> {
isLockfileUpdate?: boolean; isLockfileUpdate?: boolean;
currentRawValue?: any; currentRawValue?: any;
depGroup?: string; depGroup?: string;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment