feat: move external metadata to embeded
All checks were successful
/ deploy_site (push) Successful in 2m24s

This commit is contained in:
2025-01-02 20:11:14 +09:00
parent 6eb667a539
commit 2b0b862345
118 changed files with 11743 additions and 6820 deletions

31
src/types.d.ts vendored
View File

@ -7,22 +7,21 @@
* @author Minhyeok Park <pmh_only@pmh.codes>
*/
export interface BPSet {
check: () => Promise<{
compliantResources: string[]
nonCompliantResources: string[]
requiredParametersForFix: {
name: string
}[]
}>,
fix: (
nonCompliantResources: string[],
requiredParametersForFix: {
name: string,
value: string
}[]
) => Promise<void>
getMetadata: () => BPSetMetadata
getStats: () => BPSetStats
clearStats: () => void
check: () => Promise<void>
fix: BPSetFixFn
}
export type BPSetFixFn = (
nonCompliantResources: string[],
requiredParametersForFix: {
name: string,
value: string
}[]
) => Promise<void>
export interface BPSetMetadata {
name: string
description: string
@ -47,10 +46,12 @@ export interface BPSetMetadata {
reason: string
}[]
adviseBeforeFixFunction: string
}
export interface BPSetStats {
nonCompliantResources: string[]
compliantResources: string[]
status: 'LOADED' | 'CHECKING' | 'ERROR' | 'FINISHED'
idx: number
errorMessage: {
date: Date,
message: string