import { ColorScheme, GetCurrentUserQuery } from '~/generated/graphql';

type MockedUser = GetCurrentUserQuery['currentUser'];

export const avatarUrl =
  'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAYABgAAD/4QCMRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABgAAAAAQAAAGAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABSgAwAEAAAAAQAAABQAAAAA/8AAEQgAFAAUAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMACwgICggHCwoJCg0MCw0RHBIRDw8RIhkaFBwpJCsqKCQnJy0yQDctMD0wJyc4TDk9Q0VISUgrNk9VTkZUQEdIRf/bAEMBDA0NEQ8RIRISIUUuJy5FRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFR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1AO7J3ZopkQCQj7Ar1FeRChCJRJzVapX6DKNIfSc1Ax+wtQWQ55h6bH8FWDfYV4fO3wlwDr0C/BcADYiTPCxHqIEA2QsCZAkAKnRGkMbKN/sTX5YHPQ1e7SkAAAAASUVORK5CYII=';

export const mockedUsersData: Array<MockedUser> = [
  {
    id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6d',
    __typename: 'User',
    email: 'charles@test.com',
    displayName: 'Charles Test',
    firstName: 'Charles',
    lastName: 'Test',
    avatarUrl: null,
    canImpersonate: false,
    supportUserHash: '',
    workspaceMember: {
      __typename: 'WorkspaceMember',
      id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
      allowImpersonation: true,
      workspace: {
        __typename: 'Workspace',
        id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
        displayName: 'Twenty',
        domainName: 'twenty.com',
        inviteHash: 'twenty.com-invite-hash',
        logo: workspaceLogoUrl,
      },
    },
    settings: {
      id: '7dfbc3f7-6e5e-4128-957e-8d86808cde9y',
      __typename: 'UserSettings',
      locale: 'en',
      colorScheme: ColorScheme.System,
    },
  },
  {
    id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6c',
    __typename: 'User',
    email: 'felix@test.com',
    displayName: 'Felix Test',
    firstName: 'Felix',
    lastName: 'Test',
    canImpersonate: false,
    supportUserHash: '',
    workspaceMember: {
      __typename: 'WorkspaceMember',
      id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
      allowImpersonation: true,
      workspace: {
        __typename: 'Workspace',
        id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
        displayName: 'Twenty',
        domainName: 'twenty.com',
        inviteHash: 'twenty.com-invite-hash',
        logo: workspaceLogoUrl,
      },
    },
    settings: {
      id: '7dfbc3f7-6e5e-4128-957e-8d86808cdt7a',
      __typename: 'UserSettings',
      locale: 'en',
      colorScheme: ColorScheme.System,
    },
  },
];

export const mockedOnboardingUsersData: Array<MockedUser> = [
  {
    id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6d',
    __typename: 'User',
    email: 'workspace-onboarding@test.com',
    displayName: '',
    firstName: '',
    lastName: '',
    avatarUrl: null,
    canImpersonate: false,
    supportUserHash: '',
    workspaceMember: {
      __typename: 'WorkspaceMember',
      id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
      allowImpersonation: true,
      workspace: {
        __typename: 'Workspace',
        id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
        displayName: '',
        domainName: '',
        inviteHash: 'twenty.com-invite-hash-1',
        logo: '',
      },
    },
    settings: {
      id: '7dfbc3f7-6e5e-4128-957e-8d86808cde9y',
      __typename: 'UserSettings',
      locale: 'en',
      colorScheme: ColorScheme.System,
    },
  },
  {
    id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6d',
    __typename: 'User',
    email: 'profile-onboarding@test.com',
    displayName: '',
    firstName: '',
    lastName: '',
    avatarUrl: null,
    canImpersonate: false,
    supportUserHash: '',
    workspaceMember: {
      __typename: 'WorkspaceMember',
      id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
      allowImpersonation: true,
      workspace: {
        __typename: 'Workspace',
        id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
        displayName: 'Test',
        domainName: 'test.com',
        inviteHash: 'twenty.com-invite-hash-2',
        logo: '',
      },
    },
    settings: {
      id: '7dfbc3f7-6e5e-4128-957e-8d86808cde9y',
      __typename: 'UserSettings',
      locale: 'en',
      colorScheme: ColorScheme.System,
    },
  },
];
