News.ts 1.4 KB

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