UserSearchItem.ts 545 B

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