diff options
Diffstat (limited to 'server/models/job-interface.ts')
-rw-r--r-- | server/models/job-interface.ts | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/server/models/job-interface.ts b/server/models/job-interface.ts deleted file mode 100644 index ab6678257..000000000 --- a/server/models/job-interface.ts +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | import * as Sequelize from 'sequelize' | ||
2 | |||
3 | export namespace JobMethods { | ||
4 | export type ListWithLimitCallback = (err: Error, jobInstances: JobInstance[]) => void | ||
5 | export type ListWithLimit = (limit: number, state: string, callback: ListWithLimitCallback) => void | ||
6 | } | ||
7 | |||
8 | export interface JobClass { | ||
9 | listWithLimit: JobMethods.ListWithLimit | ||
10 | } | ||
11 | |||
12 | export interface JobAttributes { | ||
13 | state: string | ||
14 | handlerName: string | ||
15 | handlerInputData: object | ||
16 | } | ||
17 | |||
18 | export interface JobInstance extends JobClass, JobAttributes, Sequelize.Instance<JobAttributes> { | ||
19 | id: number | ||
20 | createdAt: Date | ||
21 | updatedAt: Date | ||
22 | } | ||
23 | |||
24 | export interface JobModel extends JobClass, Sequelize.Model<JobInstance, JobAttributes> {} | ||