@finema/finework-layer 1.0.4 → 1.0.5

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.5](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.4...1.0.5) (2026-03-06)
4
+
5
+ ### Bug Fixes
6
+
7
+ * update permissions for finance and eFactoring apps; add eFactoring route ([577f11f](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/577f11f4f2eea91c6e38a52958d60d3819fc5175))
8
+
3
9
  ## [1.0.4](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.3...1.0.4) (2026-02-27)
4
10
 
5
11
  ### Bug Fixes
@@ -374,7 +374,7 @@ const financeApps = computed(() => [
374
374
  },
375
375
  ]
376
376
  : []),
377
- ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
377
+ ...(auth.hasPermission(UserModule.COSTSHEET, Permission.USER, Permission.ADMIN, Permission.SUPER)
378
378
  ? [
379
379
  {
380
380
  name: 'Cost Sheet',
@@ -382,19 +382,19 @@ const financeApps = computed(() => [
382
382
  label: 'Cost Sheet',
383
383
  description: 'รายรับรายจ่ายงบประมาณโครงการ',
384
384
  to: routes.costSheet.overview.to,
385
- status: StatusPortal.DEVELOPING,
385
+ status: StatusPortal.ACTIVE,
386
386
  },
387
387
  ]
388
388
  : []),
389
- ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
389
+ ...(auth.hasPermission(UserModule.EFACTORING, Permission.USER, Permission.ADMIN, Permission.SUPER)
390
390
  ? [
391
391
  {
392
392
  name: 'eFactoring',
393
393
  logo: '/admin/efactoring.png',
394
394
  label: 'eFactoring',
395
395
  description: 'การเบิกเงินหมุนเวียนกับธนาคาร',
396
- to: '/',
397
- status: StatusPortal.DEVELOPING,
396
+ to: routes.efactoring.dashboard.to,
397
+ status: StatusPortal.ACTIVE,
398
398
  },
399
399
  ]
400
400
  : []),
@@ -89,6 +89,13 @@ export const routes = {
89
89
  icon: 'ph:stack',
90
90
  },
91
91
  },
92
+ efactoring: {
93
+ dashboard: {
94
+ label: 'Dashboard',
95
+ to: '/e-factoring/dashboard',
96
+ icon: 'humbleicons:pie-chart',
97
+ },
98
+ },
92
99
  legal: {
93
100
  dashboard: {
94
101
  label: 'Dashboard',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",