mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
42 lines
1013 B
TypeScript
42 lines
1013 B
TypeScript
import type {User} from 'sentry/types';
|
|
|
|
export function UserFixture(params: Partial<User> = {}): User {
|
|
return {
|
|
id: '1',
|
|
username: '[email protected]',
|
|
email: '[email protected]',
|
|
name: 'Foo Bar',
|
|
isAuthenticated: true,
|
|
options: {
|
|
clock24Hours: false,
|
|
timezone: 'UTC',
|
|
language: 'en',
|
|
theme: 'system',
|
|
defaultIssueEvent: 'recommended',
|
|
avatarType: 'letter_avatar',
|
|
stacktraceOrder: -1,
|
|
issueDetailsNewExperienceQ42023: false,
|
|
},
|
|
ip_address: '127.0.0.1',
|
|
hasPasswordAuth: true,
|
|
authenticators: [],
|
|
canReset2fa: false,
|
|
dateJoined: '2020-01-01T00:00:00.000Z',
|
|
emails: [],
|
|
experiments: [],
|
|
has2fa: false,
|
|
identities: [],
|
|
isActive: false,
|
|
isManaged: false,
|
|
isStaff: false,
|
|
isSuperuser: false,
|
|
lastActive: '2020-01-01T00:00:00.000Z',
|
|
lastLogin: '2020-01-01T00:00:00.000Z',
|
|
permissions: new Set(),
|
|
flags: {
|
|
newsletter_consent_prompt: false,
|
|
},
|
|
...params,
|
|
};
|
|
}
|