openreplay/api/chalicelib/core/collaboration_base.py
Taha Yassine Kraiem 30eca5e8fb feat(chalice): msteams add
feat(chalice): msteams update
feat(chalice): msteams share session
feat(chalice): msteams share error
2022-11-17 19:28:45 +01:00

49 lines
1.1 KiB
Python

from abc import ABC, abstractmethod
import requests
from decouple import config
from datetime import datetime
import schemas
from chalicelib.core import webhook
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(cls, tenant_id, integration_id=None):
pass