π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
import { Injectable } from '@nestjs/common';
import { ThirdPartyRepository } from '@gitroom/nestjs-libraries/database/prisma/third-party/third-party.repository';
@Injectable()
export class ThirdPartyService {
constructor(private _thirdPartyRepository: ThirdPartyRepository) {}
getAllThirdPartiesByOrganization(org: string) {
return this._thirdPartyRepository.getAllThirdPartiesByOrganization(org);
}
deleteIntegration(org: string, id: string) {
return this._thirdPartyRepository.deleteIntegration(org, id);
}
getIntegrationById(org: string, id: string) {
return this._thirdPartyRepository.getIntegrationById(org, id);
}
saveIntegration(
org: string,
identifier: string,
apiKey: string,
data: { name: string; username: string; id: string }
) {
return this._thirdPartyRepository.saveIntegration(org, identifier, apiKey, data);
}
}