Application Load

ICustomerTicketsResponse

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

ICustomerTicketsResponse

Customer tickets, pagination and optional first-page open/closed counts.

src/lib/interfaces/orionplace/tickets/ICustomerTicketApi.ts
TypeScript
export interface ICustomerTicketsResponse {
  // Field and general errors.
  form_errors: Record<string, ApiFormError[]> | null;
  // Success message or null.
  success_message: string | null;
  // `page_data` contains `data`, `rpag` and optional first-page `counts`. A
  // ticket can additionally refer to a purchased order item, an option or a
  // paid subscription.
  page_data: {
    // The user’s tickets, newest ID first. Empty results return an empty array.
    data: ICustomerTicket[];
    // Pagination metadata.
    rpag: IApiPagination;
    // Open and closed ticket counts before the selected filters are applied.
    // Included only when `paginate.page` is explicitly `1`.
    counts?: {
      // Value of c_opened.
      c_opened: number;
      // Value of c_closed.
      c_closed: number;
    };
  } | null;
}