45 lines
1,018 B
Python
45 lines
1,018 B
Python
from abc import ABC, abstractmethod
|
|
|
|
import schemas
|
|
|
|
|
|
class BaseCollaboration(ABC):
|
|
@classmethod
|
|
@abstractmethod
|
|
def add(cls, tenant_id, data: schemas.AddCollaborationSchema):
|
|
pass
|
|
|
|
@classmethod
|
|
@abstractmethod
|
|
def say_hello(cls, url):
|
|
pass
|
|
|
|
@classmethod
|
|
@abstractmethod
|
|
def send_raw(cls, tenant_id, webhook_id, body):
|
|
pass
|
|
|
|
@classmethod
|
|
@abstractmethod
|
|
def send_batch(cls, tenant_id, webhook_id, attachments):
|
|
pass
|
|
|
|
@classmethod
|
|
@abstractmethod
|
|
def __share(cls, tenant_id, integration_id, attachments):
|
|
pass
|
|
|
|
@classmethod
|
|
@abstractmethod
|
|
def share_session(cls, tenant_id, project_id, session_id, user, comment, integration_id=None):
|
|
pass
|
|
|
|
@classmethod
|
|
@abstractmethod
|
|
def share_error(cls, tenant_id, project_id, error_id, user, comment, integration_id=None):
|
|
pass
|
|
|
|
@classmethod
|
|
@abstractmethod
|
|
def get_integration(cls, tenant_id, integration_id=None):
|
|
pass
|