Skip to main content

vantage_sdk.support_ticket.crud

Support ticket CRUD operations using GraphQL API.

Classes

SupportTicketSDK()

SDK for support ticket operations.

Methods

  • add_comment(self, ctx: typer.models.Context, ticket_id: str, text: str, mentions: List[str] | None = None) -> vantage_sdk.support_ticket.schema.Comment: Add a comment to a support ticket.
  • create_ticket(self, ctx: typer.models.Context, title: str, description: str, priority: str | None = 'MEDIUM') -> vantage_sdk.support_ticket.schema.SupportTicket: Create a new support ticket.
  • delete_comment(self, ctx: typer.models.Context, comment_id: str) -> bool: Delete a comment.
  • delete_ticket(self, ctx: typer.models.Context, ticket_id: str) -> bool: Delete a support ticket.
  • get_ticket(self, ctx: typer.models.Context, ticket_id: str) -> vantage_sdk.support_ticket.schema.SupportTicket | None: Get a specific support ticket by ID.
  • list_comments(self, ctx: typer.models.Context, ticket_id: str | None = None, limit: int | None = None) -> List[vantage_sdk.support_ticket.schema.Comment]: List comments for a ticket or all comments.
  • list_tickets(self, ctx: typer.models.Context, status: str | None = None, priority: str | None = None, limit: int | None = None) -> List[vantage_sdk.support_ticket.schema.SupportTicket]: List all support tickets.
  • update_comment(self, ctx: typer.models.Context, comment_id: str, text: str, mentions: List[str] | None = None) -> vantage_sdk.support_ticket.schema.Comment: Update a comment's text.
  • update_ticket(self, ctx: typer.models.Context, ticket_id: str, title: str | None = None, description: str | None = None, status: str | None = None, priority: str | None = None) -> vantage_sdk.support_ticket.schema.SupportTicket: Update an existing support ticket.