Skip to main content

hook

@codebolt/codeboltjs


Variable: hook

const hook: {
create: (config: HookConfig) => Promise<HookResponse>;
delete: (hookId: string) => Promise<HookDeleteResponse>;
disable: (hookId: string) => Promise<HookResponse>;
enable: (hookId: string) => Promise<HookResponse>;
get: (hookId: string) => Promise<HookResponse>;
initialize: (projectPath: string) => Promise<HookInitializeResponse>;
list: () => Promise<HookListResponse>;
update: (hookId: string, config: Partial<HookConfig>) => Promise<HookResponse>;
};

Defined in: packages/codeboltjs/src/modules/hook.ts:16

Type Declaration

NameTypeDescriptionDefined in
create()(config: HookConfig) => Promise<HookResponse>Create a new hookpackages/codeboltjs/src/modules/hook.ts:37
delete()(hookId: string) => Promise<HookDeleteResponse>Delete a hookpackages/codeboltjs/src/modules/hook.ts:70
disable()(hookId: string) => Promise<HookResponse>Disable a hookpackages/codeboltjs/src/modules/hook.ts:133
enable()(hookId: string) => Promise<HookResponse>Enable a hookpackages/codeboltjs/src/modules/hook.ts:117
get()(hookId: string) => Promise<HookResponse>Get a hook by IDpackages/codeboltjs/src/modules/hook.ts:101
initialize()(projectPath: string) => Promise<HookInitializeResponse>Initialize the hook manager for a projectpackages/codeboltjs/src/modules/hook.ts:21
list()() => Promise<HookListResponse>List all hookspackages/codeboltjs/src/modules/hook.ts:85
update()(hookId: string, config: Partial<HookConfig>) => Promise<HookResponse>Update an existing hookpackages/codeboltjs/src/modules/hook.ts:54