@finema/finework-layer 0.2.108 → 0.2.110

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.110](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.109...0.2.110) (2026-01-21)
4
+
5
+ ### Bug Fixes
6
+
7
+ * update permission check for financeApps to use UserModule.SETTING ([770b1eb](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/770b1eb41668e4ccd8b1e60dd005f20f7b16e69f))
8
+
9
+ ## [0.2.109](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.108...0.2.109) (2026-01-21)
10
+
11
+ ### Features
12
+
13
+ * add purchase module with permissions to PortalApp ([8ea5718](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/8ea5718b11ee02ed86cc8903c0b8490186c78412))
14
+
3
15
  ## [0.2.108](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.107...0.2.108) (2026-01-19)
4
16
 
5
17
  ### Bug Fixes
@@ -321,6 +321,18 @@ const financeApps = computed(() => [
321
321
  },
322
322
  ]
323
323
  : []),
324
+ ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
325
+ ? [
326
+ {
327
+ name: 'Purchase',
328
+ logo: '/admin/purchase.png',
329
+ label: 'purchase',
330
+ description: 'จัดการเอกสารการจ่ายงวด',
331
+ to: '/',
332
+ status: StatusPortal.DEVELOPING,
333
+ },
334
+ ]
335
+ : []),
324
336
  ])
325
337
 
326
338
  const peopleApps = computed(() => [
@@ -99,6 +99,7 @@ export enum UserModule {
99
99
  RECRUIT = 'recruit',
100
100
  BIDBOND = 'bidbond',
101
101
  EFACTORING = 'efactoring',
102
+ PURCHASE = 'purchase',
102
103
  }
103
104
 
104
105
  export interface IUserAccessLevel {
@@ -119,6 +120,7 @@ export interface IUserAccessLevel {
119
120
  recruit: Permission
120
121
  bidbond: Permission
121
122
  efactoring: Permission
123
+ purchase: Permission
122
124
  }
123
125
 
124
126
  export const useAuth = () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "0.2.108",
4
+ "version": "0.2.110",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",