package page

import "time"

// StatusResponse represents the sync status response
type StatusResponse struct {
	SiteID              string    `json:"site_id"`
	TotalPages          int64     `json:"total_pages"`
	PublishedPages      int64     `json:"published_pages"`
	DraftPages          int64     `json:"draft_pages"`
	LastSyncedAt        time.Time `json:"last_synced_at"`
	PagesIndexedMonth   int64     `json:"pages_indexed_month"`
	SearchRequestsMonth int64     `json:"search_requests_month"`
	LastResetAt         time.Time `json:"last_reset_at"`
	SearchIndexStatus   string    `json:"search_index_status"`
	SearchIndexDocCount int64     `json:"search_index_doc_count"`
}

// PageDetailsResponse represents the page details response
type PageDetailsResponse struct {
	PageID           string    `json:"page_id"`
	Title            string    `json:"title"`
	Excerpt          string    `json:"excerpt"`
	URL              string    `json:"url"`
	Status           string    `json:"status"`
	PostType         string    `json:"post_type"`
	Author           string    `json:"author"`
	PublishedAt      time.Time `json:"published_at"`
	ModifiedAt       time.Time `json:"modified_at"`
	IndexedAt        time.Time `json:"indexed_at"`
	MeilisearchDocID string    `json:"meilisearch_doc_id"`
	IsIndexed        bool      `json:"is_indexed"`
}
