News.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import { Uid, Str, Bool, Attr } from 'pinia-orm/dist/decorators'
  2. import ApiModel from '~/models/ApiModel'
  3. /**
  4. * Maestro Model : News
  5. *
  6. * @see https://gitlab.2iopenservice.com/opentalent/maestro/-/blob/master/src/Entity/News/News.php?ref_type=heads
  7. */
  8. export default class News extends ApiModel {
  9. static entity = 'public/news'
  10. @Uid()
  11. declare id: number | string
  12. @Str(null)
  13. declare type: string | null
  14. @Str(null)
  15. declare title: string | null
  16. @Str(null)
  17. declare leadText: string | null
  18. @Str(null)
  19. declare bodyText: string | null
  20. @Bool(false)
  21. declare featured: boolean
  22. @Bool(false)
  23. declare favorite: boolean
  24. @Attr({})
  25. declare attachmentFile: object
  26. @Str(null)
  27. declare attachment: string | null
  28. @Str(null)
  29. declare startPublication: string | null
  30. @Str(null)
  31. declare updatedAt: string | null
  32. @Str(null)
  33. declare endPublication: string | null
  34. @Str(null)
  35. declare domainType: string | null
  36. @Str(null)
  37. declare eventType: string | null
  38. @Str(null)
  39. declare categoryType: string | null
  40. @Str(null)
  41. declare productType: string | null
  42. @Str(null)
  43. declare optionsType: string | null
  44. @Str(null)
  45. declare subOptionsType: string | null
  46. @Attr([])
  47. declare tags: string[]
  48. @Bool(false)
  49. declare visible: boolean
  50. @Str(null)
  51. declare linkButton: string
  52. }