2017-05-22 20:58:25 +02:00
|
|
|
import * as Sequelize from 'sequelize'
|
2017-07-05 13:26:25 +02:00
|
|
|
import * as Promise from 'bluebird'
|
|
|
|
|
|
|
|
import { AbstractRequestToPodClass } from './abstract-request-interface'
|
2017-05-22 20:58:25 +02:00
|
|
|
|
|
|
|
export namespace RequestToPodMethods {
|
2017-07-05 13:26:25 +02:00
|
|
|
export type RemoveByRequestIdsAndPod = (requestsIds: number[], podId: number) => Promise<number>
|
2017-05-22 20:58:25 +02:00
|
|
|
}
|
|
|
|
|
2017-07-05 13:26:25 +02:00
|
|
|
export interface RequestToPodClass extends AbstractRequestToPodClass {
|
2017-05-22 20:58:25 +02:00
|
|
|
removeByRequestIdsAndPod: RequestToPodMethods.RemoveByRequestIdsAndPod
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface RequestToPodAttributes {
|
|
|
|
}
|
|
|
|
|
2017-06-10 22:15:25 +02:00
|
|
|
export interface RequestToPodInstance extends RequestToPodClass, RequestToPodAttributes, Sequelize.Instance<RequestToPodAttributes> {
|
2017-05-22 20:58:25 +02:00
|
|
|
id: number
|
|
|
|
createdAt: Date
|
|
|
|
updatedAt: Date
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface RequestToPodModel extends RequestToPodClass, Sequelize.Model<RequestToPodInstance, RequestToPodAttributes> {}
|