Parameters.ts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. import { Bool, Num, Str, Uid, Attr } from 'pinia-orm/dist/decorators'
  2. import ApiModel from '~/models/ApiModel'
  3. import Access from '~/models/Access/Access'
  4. import { IriEncoded } from '~/models/decorators'
  5. import File from '~/models/Core/File'
  6. /**
  7. * AP2i Model : Parameters
  8. *
  9. * @see https://gitlab.2iopenservice.com/opentalent/ap2i/-/blob/develop/src/Entity/Organization/Parameters.php
  10. */
  11. export default class Parameters extends ApiModel {
  12. static entity = 'parameters'
  13. @Uid()
  14. declare id: number | string | null
  15. @Str(null)
  16. declare financialDate: string | null
  17. @Str(null)
  18. declare musicalDate: string | null
  19. @Str(null)
  20. declare startCourseDate: string | null
  21. @Str(null)
  22. declare endCourseDate: string | null
  23. @Bool(false, { notNullable: true })
  24. declare trackingValidation: boolean
  25. @Num(20)
  26. declare average: number
  27. @Bool(true, { notNullable: true })
  28. declare editCriteriaNotationByAdminOnly: boolean
  29. @Str(null)
  30. declare smsSenderName: string | null
  31. @Bool(true, { notNullable: true })
  32. declare logoDonorsMove: boolean
  33. @Str(null)
  34. declare otherWebsite: string | null
  35. @Str(null)
  36. declare customDomain: string | null
  37. @Bool(false, { notNullable: true })
  38. declare desactivateOpentalentSiteWeb: boolean
  39. @Attr([])
  40. @IriEncoded(Access)
  41. declare publicationDirectors: number[]
  42. @Str(null)
  43. declare bulletinPeriod: string | null
  44. @Bool(false, { notNullable: true })
  45. declare bulletinWithTeacher: boolean
  46. @Bool(false, { notNullable: true })
  47. declare bulletinPrintAddress: boolean
  48. @Bool(true, { notNullable: true })
  49. declare bulletinSignatureDirector: boolean
  50. @Bool(true, { notNullable: true })
  51. declare bulletinDisplayLevelAcquired: boolean
  52. @Bool(false, { notNullable: true })
  53. declare bulletinShowEducationWithoutEvaluation: boolean
  54. @Bool(false, { notNullable: true })
  55. declare bulletinViewTestResults: boolean
  56. @Bool(false, { notNullable: true })
  57. declare bulletinShowAbsences: boolean
  58. @Bool(true, { notNullable: true })
  59. declare bulletinShowAverages: boolean
  60. @Str(null)
  61. declare bulletinOutput: string | null
  62. @Bool(true, { notNullable: true })
  63. declare bulletinEditWithoutEvaluation: boolean
  64. @Str('STUDENTS_AND_THEIR_GUARDIANS')
  65. declare bulletinReceiver: string | null
  66. @Str('BY_CRITERIA_INSERT')
  67. declare bulletinCriteriaSort: string | null
  68. @Str(null)
  69. declare usernameSMS: string | null
  70. @Str(null)
  71. declare passwordSMS: string | null
  72. @Bool(true, { notNullable: true })
  73. declare showAdherentList: boolean
  74. @Bool(false, { notNullable: true })
  75. declare studentsAreAdherents: boolean
  76. @Attr(null)
  77. @IriEncoded(File)
  78. declare qrCode: number | null
  79. @Str('Europe/Paris')
  80. declare timezone: string | null
  81. @Str('ANNUAL')
  82. declare educationPeriodicity: string | null
  83. @Str('BY_EDUCATION')
  84. declare advancedEducationNotationType: string | null
  85. @Bool(false, { notNullable: true })
  86. declare sendAttendanceEmail: boolean
  87. @Bool(false, { notNullable: true })
  88. declare sendAttendanceSms: boolean
  89. @Attr([])
  90. declare subdomains: []
  91. @Bool(false, { notNullable: true })
  92. declare notifyAdministrationAbsence: boolean
  93. }