feat: move external metadata to embeded
All checks were successful
/ deploy_site (push) Successful in 2m24s
All checks were successful
/ deploy_site (push) Successful in 2m24s
This commit is contained in:
31
src/types.d.ts
vendored
31
src/types.d.ts
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user