This commit is contained in:
32
index.d.ts
vendored
32
index.d.ts
vendored
@@ -68,6 +68,35 @@ interface PostHookData {
|
||||
data?: CollectionDocument
|
||||
}
|
||||
|
||||
interface JobConfig {
|
||||
/**
|
||||
* meta object
|
||||
*/
|
||||
meta?: any
|
||||
|
||||
/**
|
||||
* cron job interval specification
|
||||
*/
|
||||
cron?: string
|
||||
|
||||
/**
|
||||
* job program type
|
||||
*/
|
||||
type: "javascript"
|
||||
|
||||
/**
|
||||
* jobs program file
|
||||
*/
|
||||
file?: string
|
||||
}
|
||||
|
||||
interface JobData {
|
||||
/**
|
||||
* job is object of job config
|
||||
*/
|
||||
job?: JobConfig
|
||||
}
|
||||
|
||||
interface DbPackage {
|
||||
/**
|
||||
* read results from a collection
|
||||
@@ -529,7 +558,8 @@ interface PdfPackage {
|
||||
export interface HookContext
|
||||
extends GetHookData,
|
||||
GetHookGetOnlyData,
|
||||
PostHookData {
|
||||
PostHookData,
|
||||
JobData {
|
||||
request(): {
|
||||
method: string
|
||||
remoteAddr: string
|
||||
|
||||
Reference in New Issue
Block a user