UserSearchItem.ts 764 B

123456789101112131415161718192021222324252627282930
  1. import { Num, Uid, Attr, Str } from 'pinia-orm/dist/decorators'
  2. import type { Historical } from '~/types/interfaces'
  3. import Person from '~/models/Person/Person'
  4. import ApiModel from '~/models/ApiModel'
  5. import { IriEncoded } from '~/models/decorators'
  6. import Organization from '~/models/Organization/Organization'
  7. /**
  8. * AP2i Model : UserSearchItem
  9. *
  10. * @see https://gitlab.2iopenservice.com/opentalent/ap2i/-/blob/develop/src/Entity/Custom/Search/UserSearchItem.php
  11. */
  12. export default class UserSearchItem extends ApiModel {
  13. static override entity = 'search/users'
  14. @Uid()
  15. declare id: number | string
  16. @Str('')
  17. declare username: string
  18. @Str('')
  19. declare name: string
  20. @Str('')
  21. declare givenName: string
  22. @Str('')
  23. declare fullName: string
  24. }