20 lines
772 B
TypeScript
20 lines
772 B
TypeScript
import { IJSONObject } from '@automatisch/types';
|
|
import NewRepository from './triggers/new-repository';
|
|
import NewOrganization from './triggers/new-organization';
|
|
import NewBranch from './triggers/new-branch';
|
|
import NewNotification from './triggers/new-notification';
|
|
|
|
export default class Triggers {
|
|
newRepository: NewRepository;
|
|
newOrganization: NewOrganization;
|
|
newBranch: NewBranch;
|
|
newNotification: NewNotification;
|
|
|
|
constructor(connectionData: IJSONObject, parameters: IJSONObject) {
|
|
this.newRepository = new NewRepository(connectionData);
|
|
this.newOrganization = new NewOrganization(connectionData);
|
|
this.newBranch = new NewBranch(connectionData, parameters);
|
|
this.newNotification = new NewNotification(connectionData, parameters);
|
|
}
|
|
}
|