@finema/finework-layer 1.0.25 → 1.0.27

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
+ ## [1.0.27](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.26...1.0.27) (2026-03-31)
4
+
5
+ ### Bug Fixes
6
+
7
+ * update resource route and permissions in PortalApp and useAuth ([256b442](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/256b4428f9817f2d50c435048349d9054ac929a6))
8
+
9
+ ## [1.0.26](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.25...1.0.26) (2026-03-27)
10
+
11
+ ### Bug Fixes
12
+
13
+ * update navigation routes for Request and Request Admin in PortalApp ([29fdda5](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/29fdda5e319f6cd290da76b3a706ef73e0fa31b3))
14
+
3
15
  ## [1.0.25](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.24...1.0.25) (2026-03-27)
4
16
 
5
17
  ### Bug Fixes
@@ -332,7 +332,7 @@ const dailyApps = computed(() => [
332
332
  logo: '/admin/request.png',
333
333
  label: 'Request',
334
334
  description: 'ระบบขอ ลา เบิก อนุมัติรายการต่างๆ',
335
- to: '/',
335
+ to: routes.request.myRequest.to,
336
336
  status: StatusPortal.ACTIVE,
337
337
  },
338
338
  ])
@@ -516,7 +516,7 @@ const peopleApps = computed(() => [
516
516
  logo: '/admin/resource.svg',
517
517
  label: 'Resource',
518
518
  description: 'ระบบจัดการทรัพยากรบุคคล',
519
- to: '/',
519
+ to: routes.resource.talentSearchAndCvBuilder.to,
520
520
  status: StatusPortal.ACTIVE,
521
521
  },
522
522
  ]
@@ -528,7 +528,7 @@ const peopleApps = computed(() => [
528
528
  logo: '/admin/request-admin.svg',
529
529
  label: 'Request Admin',
530
530
  description: 'ระบบจัดการคำขออนุมัติต่างๆ',
531
- to: '/',
531
+ to: routes.requestAdmin.dashboard.to,
532
532
  status: StatusPortal.ACTIVE,
533
533
  },
534
534
  ]
@@ -97,9 +97,8 @@ export enum UserModule {
97
97
  EMPLOYEE = 'employee',
98
98
  ASSET = 'asset',
99
99
  RECRUIT = 'recruit',
100
- BIDBOND = 'bidbond',
100
+ GUARANTEE = 'guarantee',
101
101
  EFACTORING = 'efactoring',
102
- PURCHASE = 'purchase',
103
102
  RESOURCE = 'resource',
104
103
  }
105
104
 
@@ -119,9 +118,8 @@ export interface IUserAccessLevel {
119
118
  employee: Permission
120
119
  asset: Permission
121
120
  recruit: Permission
122
- bidbond: Permission
121
+ guarantee: Permission
123
122
  efactoring: Permission
124
- purchase: Permission
125
123
  resource: Permission
126
124
  }
127
125
 
@@ -159,5 +159,31 @@ export const routes = {
159
159
  },
160
160
  },
161
161
  },
162
+ request: {
163
+ myRequest: {
164
+ requests: {
165
+ label: 'My Requests',
166
+ to: '/request',
167
+ icon: 'ph:clipboard',
168
+ permissions: ['request:USER'],
169
+ },
170
+ },
171
+ },
172
+ requestAdmin: {
173
+ dashboard: {
174
+ label: 'แดชบอร์ด',
175
+ to: '/request-admin',
176
+ icon: 'ph:grid-four',
177
+ permissions: ['request:USER', 'request:ADMIN', 'request:SUPER'],
178
+ },
179
+ },
180
+ resource: {
181
+ talentSearchAndCvBuilder: {
182
+ label: 'Talent Search & CV Builder',
183
+ to: '/resource/talent-search',
184
+ icon: 'ph:certificate',
185
+ permissions: ['resource:USER', 'resource:ADMIN', 'resource:SUPER'],
186
+ },
187
+ },
162
188
 
163
189
  } as const
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "1.0.25",
4
+ "version": "1.0.27",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",