import { UserAdmin } from 'src/database';
import { UserStatus } from 'src/enum';
import { authStub } from 'test/fixtures/auth.stub';

export const userStub = {
  admin: <UserAdmin>{
    ...authStub.admin.user,
    status: UserStatus.Active,
    profileChangedAt: new Date('2021-01-01'),
    name: 'admin_name',
    id: 'admin_id',
    storageLabel: 'admin',
    oauthId: '',
    shouldChangePassword: false,
    avatarColor: null,
    profileImagePath: '',
    createdAt: new Date('2021-01-01'),
    deletedAt: null,
    updatedAt: new Date('2021-01-01'),
    metadata: [],
    quotaSizeInBytes: null,
    quotaUsageInBytes: 0,
  },
  user1: <UserAdmin>{
    ...authStub.user1.user,
    status: UserStatus.Active,
    profileChangedAt: new Date('2021-01-01'),
    name: 'immich_name',
    storageLabel: null,
    oauthId: '',
    shouldChangePassword: false,
    avatarColor: null,
    profileImagePath: '',
    createdAt: new Date('2021-01-01'),
    deletedAt: null,
    updatedAt: new Date('2021-01-01'),
    metadata: [],
    quotaSizeInBytes: null,
    quotaUsageInBytes: 0,
  },
};
