Parameters.ts 3.0 KB

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