26 lines
630 B
TypeScript
26 lines
630 B
TypeScript
import {
|
|
IService,
|
|
IAuthentication,
|
|
IApp,
|
|
IJSONObject,
|
|
} from '@automatisch/types';
|
|
import Authentication from './authentication';
|
|
import Triggers from './triggers';
|
|
import Data from './data';
|
|
|
|
export default class Github implements IService {
|
|
authenticationClient: IAuthentication;
|
|
triggers: Triggers;
|
|
data: Data;
|
|
|
|
constructor(
|
|
appData: IApp,
|
|
connectionData: IJSONObject,
|
|
parameters: IJSONObject
|
|
) {
|
|
this.authenticationClient = new Authentication(appData, connectionData);
|
|
this.data = new Data(connectionData, parameters);
|
|
this.triggers = new Triggers(connectionData, parameters);
|
|
}
|
|
}
|