import { addDays } from "date-fns";
export const mockSignature = [
    "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "onCoFcadHQoqpoie/XuS7ItuNOQ=",
    "onCoFcadHQoqpoie/XuS7ItuNOQ=",
    "0x1234",
];
const mockDocumentSignature = [
    "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "onCoFcadHQoqpoie/XuS7ItuNOQ=",
    "onCoFcadHQoqpoie/XuS7ItuNOQ=",
    "0x1234",
    "extra-signature-field",
];
export const mockOperation = {
    id: "6wYLICDhX5w1Hq7mIo6CRbXUV1I=",
    hash: "onCoFcadHQoqpoie/XuS7ItuNOQ=",
    index: 0,
    skip: 0,
    timestampUtcMs: "2024-06-13T14:39:12.936Z",
    error: undefined,
    action: {
        id: "411c010c-ecd5-4445-aafd-0b227b7781bd",
        timestampUtcMs: "2024-06-13T14:39:12.936Z",
        type: "EXAMPLE_OPERATION",
        input: {
            id: "6wYLICDhX5w1Hq7mIo6CRbXUV1I=",
            name: "Example input",
        },
        scope: "global",
        context: {
            signer: {
                user: {
                    address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                    chainId: 1,
                    networkId: "eip155:1",
                },
                app: {
                    name: "Connect",
                    key: "mock-key",
                },
                signatures: [mockDocumentSignature, mockDocumentSignature],
            },
        },
    },
};
export const mockOperations = [
    mockOperation,
    mockOperation,
    {
        ...mockOperation,
        error: "Data mismatch detected",
    },
    { ...mockOperation, skip: 3 },
    mockOperation,
    mockOperation,
    mockOperation,
    {
        ...mockOperation,
        action: { ...mockOperation.action, context: undefined },
    },
    mockOperation,
    {
        ...mockOperation,
        timestampUtcMs: "2024-06-14T14:39:12.936Z",
    },
    { ...mockOperation, timestampUtcMs: "2024-06-14T14:39:12.936Z" },
    { ...mockOperation, timestampUtcMs: "2024-06-14T14:39:12.936Z", skip: 2 },
    { ...mockOperation, timestampUtcMs: "2024-06-14T14:39:12.936Z" },
    { ...mockOperation, timestampUtcMs: "2024-06-14T14:39:12.936Z" },
    {
        ...mockOperation,
        timestampUtcMs: "2024-06-14T14:39:12.936Z",
    },
    { ...mockOperation, timestampUtcMs: "2024-06-15T14:39:12.936Z", skip: 1 },
    {
        ...mockOperation,
        timestampUtcMs: "2024-06-15T14:39:12.936Z",
        error: "Data mismatch detected",
    },
    {
        ...mockOperation,
        timestampUtcMs: "2024-06-15T14:39:12.936Z",
    },
    { ...mockOperation, timestampUtcMs: "2024-06-15T14:39:12.936Z" },
    ...Array.from({ length: 100 }, (_, index) => Array.from({ length: 5 }, () => ({
        ...mockOperation,
        timestampUtcMs: addDays(`2024-06-15T14:39:12.936Z`, index).toISOString(),
    }))).flat(),
].map((op, index) => ({
    ...op,
    index,
}));
export const globalOperations = mockOperations;
export const localOperations = mockOperations.map((op) => ({
    ...op,
    scope: "local",
}));
//# sourceMappingURL=mocks.js.map