AddressesField.ts 587 B

1234567891011121314151617181920212223
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { faker } from '@faker-js/faker'
  3. import type { AddressesField } from '#shared/graphql/types.ts'
  4. import type { DeepPartial } from '#shared/types/utils.ts'
  5. export default (): DeepPartial<AddressesField> => {
  6. const email = faker.internet.email()
  7. const name = faker.person.fullName()
  8. const raw = `${name} <${email}>`
  9. return {
  10. parsed: [
  11. {
  12. __typename: 'EmailAddressParsed',
  13. emailAddress: email,
  14. isSystemAddress: false,
  15. name,
  16. },
  17. ],
  18. raw,
  19. }
  20. }