2022-05-24 03:48:06 -04:00
|
|
|
import { UserEmailData } from '../../../../../types/user-email'
|
2022-05-31 05:08:49 -04:00
|
|
|
import { Affiliation } from '../../../../../types/affiliation'
|
2022-05-24 03:48:06 -04:00
|
|
|
|
|
|
|
export const confirmedUserData: UserEmailData = {
|
|
|
|
confirmedAt: '2022-03-10T10:59:44.139Z',
|
|
|
|
email: 'bar@overleaf.com',
|
|
|
|
default: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
export const unconfirmedUserData: UserEmailData = {
|
|
|
|
email: 'baz@overleaf.com',
|
|
|
|
default: false,
|
|
|
|
}
|
|
|
|
|
2022-05-31 05:08:49 -04:00
|
|
|
export const professionalUserData: UserEmailData & {
|
|
|
|
affiliation: Affiliation
|
|
|
|
} = {
|
2022-05-24 03:48:06 -04:00
|
|
|
affiliation: {
|
|
|
|
cachedConfirmedAt: null,
|
|
|
|
cachedEntitlement: null,
|
|
|
|
cachedLastDayToReconfirm: null,
|
|
|
|
cachedPastReconfirmDate: false,
|
|
|
|
cachedReconfirmedAt: null,
|
|
|
|
department: 'Art History',
|
|
|
|
institution: {
|
|
|
|
commonsAccount: false,
|
|
|
|
confirmed: true,
|
|
|
|
id: 1,
|
|
|
|
isUniversity: false,
|
|
|
|
maxConfirmationMonths: null,
|
|
|
|
name: 'Overleaf',
|
|
|
|
ssoEnabled: false,
|
|
|
|
ssoBeta: false,
|
|
|
|
},
|
|
|
|
inReconfirmNotificationPeriod: false,
|
|
|
|
inferred: false,
|
|
|
|
licence: 'pro_plus',
|
|
|
|
pastReconfirmDate: false,
|
|
|
|
portal: { slug: '', templates_count: 1 },
|
|
|
|
role: 'Reader',
|
|
|
|
},
|
|
|
|
confirmedAt: '2022-03-09T10:59:44.139Z',
|
|
|
|
email: 'foo@overleaf.com',
|
|
|
|
default: true,
|
|
|
|
}
|
|
|
|
|
2022-05-31 08:06:28 -04:00
|
|
|
export const ssoUserData: UserEmailData = {
|
|
|
|
affiliation: {
|
|
|
|
cachedConfirmedAt: '2022-02-03T11:46:28.249Z',
|
|
|
|
cachedEntitlement: null,
|
|
|
|
cachedLastDayToReconfirm: null,
|
|
|
|
cachedPastReconfirmDate: false,
|
|
|
|
cachedReconfirmedAt: null,
|
|
|
|
department: 'Art History',
|
|
|
|
institution: {
|
|
|
|
commonsAccount: true,
|
|
|
|
confirmed: true,
|
|
|
|
id: 2,
|
|
|
|
isUniversity: true,
|
|
|
|
maxConfirmationMonths: 12,
|
|
|
|
name: 'SSO University',
|
|
|
|
ssoEnabled: true,
|
|
|
|
ssoBeta: false,
|
|
|
|
},
|
|
|
|
inReconfirmNotificationPeriod: false,
|
|
|
|
inferred: false,
|
|
|
|
licence: 'pro_plus',
|
|
|
|
pastReconfirmDate: false,
|
|
|
|
portal: { slug: '', templates_count: 0 },
|
|
|
|
role: 'Prof',
|
|
|
|
},
|
|
|
|
confirmedAt: '2022-02-03T11:46:28.249Z',
|
|
|
|
email: 'sso-prof@sso-university.edu',
|
|
|
|
samlProviderId: 'sso-prof-saml-id',
|
|
|
|
default: false,
|
|
|
|
}
|
|
|
|
|
2022-05-24 03:48:06 -04:00
|
|
|
export const fakeUsersData = [
|
|
|
|
{ ...confirmedUserData },
|
|
|
|
{ ...unconfirmedUserData },
|
|
|
|
{ ...professionalUserData },
|
|
|
|
]
|