mirror of
https://github.com/FlipsideCrypto/sdk.git
synced 2026-02-06 10:46:43 +00:00
27 lines
730 B
Python
27 lines
730 B
Python
from typing import Any, List, Optional, Union
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
from .api_response import ApiResponse
|
|
|
|
|
|
class QueryResultJson(BaseModel):
|
|
queryId: Optional[str] = Field(None, description="The id of the query.")
|
|
status: str
|
|
results: Optional[List[Any]]
|
|
startedAt: Optional[str]
|
|
endedAt: Optional[str]
|
|
columnLabels: Optional[List[str]]
|
|
columnTypes: Optional[List[str]]
|
|
message: Optional[str]
|
|
errors: Optional[str]
|
|
pageNumber: Optional[int]
|
|
pageSize: Optional[int]
|
|
|
|
|
|
class QueryResultResp(ApiResponse):
|
|
data: Union[QueryResultJson, None] = Field(
|
|
False,
|
|
description="The data payload result after attempting to retrieve the query results.",
|
|
)
|