@finema/finework-layer 2.0.8 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.10](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.9...2.0.10) (2026-07-07)
4
+
5
+ ## [2.0.9](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.8...2.0.9) (2026-07-07)
6
+
3
7
  ## [2.0.8](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.7...2.0.8) (2026-07-03)
4
8
 
5
9
  ## [2.0.7](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.6...2.0.7) (2026-07-03)
@@ -201,6 +201,17 @@ const getLink = (item: INotificationItem) => {
201
201
  }
202
202
  }
203
203
 
204
+ case 'RECRUIT':
205
+ {
206
+ switch (item.action_type) {
207
+ case 'RECRUIT_INTERVIEW_REVIEW_ASSIGNED':
208
+ return `/recruit/interview-reviews/${item.source_id}`
209
+
210
+ default:
211
+ return '#'
212
+ }
213
+ }
214
+
204
215
  default:
205
216
  return '#'
206
217
  }
@@ -225,6 +236,8 @@ const getImage = (item: INotificationItem): string | null => {
225
236
  return `/admin/cost-sheet.png`
226
237
  } else if (item.source_type?.startsWith('REQUEST')) {
227
238
  return `/admin/request.png`
239
+ } else if (item.source_type?.startsWith('RECRUIT')) {
240
+ return `/admin/recruit.png`
228
241
  }
229
242
 
230
243
  return null
@@ -392,7 +392,7 @@ const managementApps = computed(() => [
392
392
  },
393
393
  ]
394
394
  : []),
395
- ...(auth.hasPermission(UserModule.TOR, Permission.ADMIN, Permission.SUPER)
395
+ ...(auth.hasPermission(UserModule.TOR, Permission.USER, Permission.ADMIN, Permission.SUPER)
396
396
  ? [
397
397
  {
398
398
  name: 'tor',
@@ -404,16 +404,15 @@ const managementApps = computed(() => [
404
404
  },
405
405
  ]
406
406
  : []),
407
- ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
407
+ ...(auth.hasPermission(UserModule.SUPPORT, Permission.USER, Permission.ADMIN, Permission.SUPER)
408
408
  ? [
409
409
  {
410
410
  name: 'support',
411
411
  logo: '/admin/support.svg',
412
412
  label: 'Support',
413
413
  description: 'Heatmap Monitor & Report',
414
- // to: routes.support.support.to,
415
- to: '/',
416
- status: StatusPortal.DEVELOPING,
414
+ to: routes.support.home.to,
415
+ status: StatusPortal.ACTIVE,
417
416
  },
418
417
  ]
419
418
  : []),
@@ -558,7 +557,7 @@ const peopleApps = computed(() => [
558
557
  },
559
558
  ]
560
559
  : []),
561
- ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
560
+ ...(auth.hasPermission(UserModule.RECRUIT, Permission.ADMIN, Permission.SUPER)
562
561
  ? [
563
562
  {
564
563
  name: 'Recruit',
@@ -566,7 +565,7 @@ const peopleApps = computed(() => [
566
565
  label: 'Recruit',
567
566
  description: 'ระบบการสรรหาบุคลากร',
568
567
  to: '/',
569
- status: StatusPortal.DEVELOPING,
568
+ status: StatusPortal.ACTIVE,
570
569
  },
571
570
  ]
572
571
  : []),
@@ -255,7 +255,7 @@ export const routes = {
255
255
  },
256
256
  },
257
257
  support: {
258
- support: {
258
+ home: {
259
259
  label: 'Support',
260
260
  to: '/support',
261
261
  icon: 'ph:file-text',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.0.10",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",