You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mockState.js 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. export const mockState = {
  2. technologies: {
  3. technologies: [
  4. {
  5. technologyId: 1,
  6. technologyType: "Backend",
  7. name: ".NET",
  8. isChecked:false
  9. },
  10. {
  11. technologyId: 2,
  12. technologyType: "Other",
  13. name: "Git",
  14. isChecked:false
  15. },
  16. {
  17. technologyId: 3,
  18. technologyType: "Frontend",
  19. name: "HTML/CSS",
  20. isChecked:false
  21. },
  22. ],
  23. fetchTecnologiesErrorMessage: "Server error",
  24. },
  25. candidates: {
  26. total: 2,
  27. items: [
  28. {
  29. applicantId: 1,
  30. firstName: "Dzenis",
  31. lastName: "Hadzifejzovic",
  32. position: ".NET Developer",
  33. dateOfApplication: "2022-02-11T00:00:00",
  34. cv: "link",
  35. email: "dzenis@gmail.com",
  36. phoneNumber: "774567",
  37. linkedlnLink: "link1",
  38. githubLink: "link2",
  39. bitBucketLink: null,
  40. experience: 1,
  41. applicationChannel: null,
  42. typeOfEmployment: "Posao",
  43. technologyApplicants: [
  44. {
  45. technology: {
  46. technologyId: 1,
  47. technologyType: "Backend",
  48. name: ".NET",
  49. },
  50. },
  51. ],
  52. comments: [],
  53. ads: [
  54. {
  55. id: 10,
  56. title: ".NET Intern",
  57. minimumExperience: 2,
  58. createdAt: "2022-11-14T08:23:00.772",
  59. expiredAt: "2024-12-06T09:53:42.439572",
  60. keyResponsibilities: "KR|KR|KR|KR",
  61. requirements: "RQ|RQ|RQ|RQ",
  62. offer: "OF|OF|OF|OF",
  63. technologies: [],
  64. workHour: "FullTime",
  65. employmentType: "Intership",
  66. },
  67. ],
  68. selectionProcesses: [],
  69. },
  70. {
  71. applicantId: 2,
  72. firstName: "Ermin",
  73. lastName: "Bronja",
  74. position: ".NET Developer",
  75. dateOfApplication: "2022-02-11T00:00:00",
  76. cv: "link",
  77. email: "ermin@gmail.com",
  78. phoneNumber: "342424",
  79. linkedlnLink: "link1",
  80. githubLink: "link2",
  81. bitBucketLink: null,
  82. experience: 3,
  83. applicationChannel: null,
  84. typeOfEmployment: "Posao",
  85. technologyApplicants: [
  86. {
  87. technology: {
  88. technologyId: 1,
  89. technologyType: "Backend",
  90. name: ".NET",
  91. },
  92. },
  93. ],
  94. comments: [],
  95. ads: [],
  96. selectionProcesses: [],
  97. },
  98. ],
  99. },
  100. users: {
  101. users: [
  102. {
  103. id: 1,
  104. firstName: "First",
  105. lastName: "User",
  106. email: "first@gmail.com",
  107. isEnabled: false,
  108. },
  109. {
  110. id: 2,
  111. firstName: "Second",
  112. lastName: "User",
  113. email: "second@gmail.com",
  114. isEnabled: true,
  115. },
  116. {
  117. id: 3,
  118. firstName: "Third",
  119. lastName: "User",
  120. email: "third@gmail.com",
  121. isEnabled: false,
  122. },
  123. ],
  124. selected: {},
  125. fetchUsersErrorMessage: "Server error",
  126. toggleEnableErrorMessage: "",
  127. },
  128. selections: {
  129. process: { doneProcess: false },
  130. processes: [
  131. {
  132. id: 1,
  133. name: "HR intervju",
  134. selectionProcesses: [
  135. {
  136. id: 1,
  137. name: "sel1",
  138. status: "Odrađen",
  139. date: new Date(2023, 1, 1, 12, 0),
  140. link: "http://google.com",
  141. selectionLevelId: 1,
  142. applicant: {
  143. applicantId: 1,
  144. firstName: "Dzenis",
  145. lastName: "Hadzifejzovic",
  146. },
  147. },
  148. {
  149. id: 2,
  150. name: "sel2",
  151. status: "Odrađen",
  152. date: new Date(2023, 1, 1, 13, 0),
  153. link: "http://google.com",
  154. selectionLevelId: 1,
  155. applicant: {
  156. applicantId: 2,
  157. firstName: "Meris",
  158. lastName: "Ahmatovic",
  159. },
  160. },
  161. {
  162. id: 3,
  163. name: "sel3",
  164. status: "Zakazan",
  165. date: new Date(2023, 1, 10, 12, 0),
  166. link: "http://google.com",
  167. selectionLevelId: 1,
  168. applicant: {
  169. applicantId: 3,
  170. firstName: "Ermin",
  171. lastName: "Bronja",
  172. },
  173. },
  174. ],
  175. },
  176. {
  177. id: 2,
  178. name: "Screening test",
  179. selectionProcesses: [
  180. {
  181. id: 4,
  182. name: "sel4",
  183. status: "Čeka na zakazivanje",
  184. date: new Date(2023, 1, 10, 12, 0),
  185. selectionLevelId: 2,
  186. applicant: {
  187. applicantId: 1,
  188. firstName: "Dzenis",
  189. lastName: "Hadzifejzovic",
  190. },
  191. },
  192. {
  193. id: 5,
  194. name: "sel5",
  195. status: "Odrađen",
  196. date: new Date(2023, 1, 3, 12, 0),
  197. link: "http://google.com",
  198. selectionLevelId: 1,
  199. applicant: {
  200. applicantId: 2,
  201. firstName: "Meris",
  202. lastName: "Ahmatovic",
  203. },
  204. },
  205. ],
  206. },
  207. {
  208. id: 3,
  209. name: "Tehnicki intervju",
  210. selectionProcesses: [
  211. {
  212. id: 6,
  213. name: "sel6",
  214. status: "Zakazan",
  215. date: new Date(2023, 1, 11, 10, 0),
  216. link: "http://google.com",
  217. selectionLevelId: 3,
  218. applicant: {
  219. applicantId: 2,
  220. firstName: "Meris",
  221. lastName: "Ahmatovic",
  222. },
  223. },
  224. ],
  225. },
  226. {
  227. id: 4,
  228. name: "Konacna odluka",
  229. selectionProcesses: [
  230. {
  231. id: 6,
  232. name: "sel6",
  233. status: "Zakazan",
  234. date: new Date(2023, 1, 11, 10, 0),
  235. link: "http://google.com",
  236. selectionLevelId: 3,
  237. applicant: {
  238. applicantId: 2,
  239. firstName: "Meris",
  240. lastName: "Ahmatovic",
  241. },
  242. },
  243. ],
  244. },
  245. ],
  246. selected: {},
  247. fetchSelectionsErrorMessage: "Server error",
  248. statuses: [
  249. { isChecked: false, name: "Zakazan" },
  250. { isChecked: false, name: "Odrađen" },
  251. { isChecked: false, name: "Čeka na zakazivanje" },
  252. { isChecked: false, name: "Čeka se odgovor" },
  253. ],
  254. },
  255. };