@finema/finework-layer 0.2.72 → 0.2.74

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.74](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.73...0.2.74) (2025-12-01)
4
+
5
+ ### Features
6
+
7
+ * file public ([61086f7](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/61086f782eec2c8bef272c3ba44f854e00d002ee))
8
+
9
+ ## [0.2.73](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.72...0.2.73) (2025-12-01)
10
+
11
+ ### Bug Fixes
12
+
13
+ * type IUser ([5a0738c](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/5a0738c32ba1a28bbaf7bbc14e706a638daee0b1))
14
+
3
15
  ## [0.2.72](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.71...0.2.72) (2025-11-28)
4
16
 
5
17
  ## [0.2.71](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.70...0.2.71) (2025-11-28)
package/app/app.config.ts CHANGED
@@ -17,7 +17,6 @@ export default defineAppConfig({
17
17
  ],
18
18
  },
19
19
  },
20
-
21
20
  card: {
22
21
  variants: {
23
22
  variant: {
@@ -35,6 +35,7 @@ export interface IUser {
35
35
  team_code: string
36
36
  avatar_url: string
37
37
  company: string
38
+ sig: string
38
39
  access_level: IUserAccessLevel
39
40
  is_active: boolean
40
41
  joined_date: string
@@ -41,10 +41,29 @@ export const useRequestOptions = () => {
41
41
  }
42
42
  }
43
43
 
44
+ const filePublic = (): Omit<AxiosRequestConfig, 'baseURL'> & {
45
+ baseURL: string
46
+ } => {
47
+ return {
48
+ baseURL: config.public.baseAPI + '/uploads',
49
+ headers: {
50
+ Authorization: `Bearer ${useAuth().token.value}`,
51
+ },
52
+ transformRequest: (data) => {
53
+ if (data instanceof FormData) {
54
+ data.append('is_public', 'true')
55
+ }
56
+
57
+ return data
58
+ },
59
+ }
60
+ }
61
+
44
62
  return {
45
63
  base,
46
64
  mock,
47
65
  auth,
48
66
  file,
67
+ filePublic,
49
68
  }
50
69
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "0.2.72",
4
+ "version": "0.2.74",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",