export interface ShopEventDto {
    id: string
    shopId: string
    seq: bigint | string
    type: string
    entity?: string
    entityId?: string
    revision?: number
    payload: Record<string, any>
    actorUserId?: string | null
    deviceId?: string | null
    createdAt: string
    dispatchedAt?: string | null
}

export interface ShopEventListResponse {
    events: ShopEventDto[]
    from: bigint | string
    to: bigint | string
    hasMore: boolean
}

// Indique que l'historique d'événements demandé est trop ancien
export interface ShopEventGoneResponse {
    status: 410
    message: string
    action: "SNAPSHOT_REQUIRED"
}

