/** What Recomaze last answered to the shop link's calls. */ export type TShopLinkAnswer = | 'ok' | 'off' | 'unauthorized' | 'failing' | 'not_connected' | 'unknown'; /** GET recomaze/v1/shop-link/status: counts and dates, never an email or a token. */ export interface IShopLinkStatus { /** Whether the plugin is signed in to Recomaze. */ connected: boolean; /** Recomaze's last answer to a shop-link call. */ answer: TShopLinkAnswer; /** When it came, ISO 8601, or null. */ answered_at: string | null; clients: { /** When the invited clients were last read, ISO 8601, or null. */ read_at: string | null; /** How many are invited. */ count: number; /** How many of them still have earlier orders to send. */ history_pending: number; }; sends: { /** Order sends waiting in the queue. */ pending: number; /** Orders whose last sends failed and are retried. */ failing: number; /** Orders Recomaze refused. */ refused: number; }; }