aq-fe-framework 0.1.204 → 0.1.205
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/dist/{chunk-5X2EYQ3O.mjs → chunk-CUMGXY5T.mjs} +7 -7
- package/dist/{chunk-KUWSCD5R.mjs → chunk-DTTVAJG7.mjs} +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.mjs +1 -1
- package/dist/modules-features/index.mjs +2 -2
- package/package.json +1 -1
@@ -46,25 +46,25 @@ var useLoadConfig = () => {
|
|
46
46
|
};
|
47
47
|
|
48
48
|
// src/hooks/custom-hooks/createBaseApi.ts
|
49
|
-
function createBaseApi(baseUrl) {
|
49
|
+
function createBaseApi(baseUrl, axiosInstance) {
|
50
50
|
return {
|
51
51
|
getAll: () => {
|
52
|
-
return
|
52
|
+
return axiosInstance.get(`${baseUrl}/GetAll`);
|
53
53
|
},
|
54
54
|
getById: (id) => {
|
55
|
-
return
|
55
|
+
return axiosInstance.get(`${baseUrl}/${id}`);
|
56
56
|
},
|
57
57
|
create: (data) => {
|
58
|
-
return
|
58
|
+
return axiosInstance.post(`${baseUrl}/create`, data);
|
59
59
|
},
|
60
60
|
update: (data) => {
|
61
|
-
return
|
61
|
+
return axiosInstance.put(`${baseUrl}/update`, data);
|
62
62
|
},
|
63
63
|
createOrUpdate: (data) => {
|
64
|
-
return
|
64
|
+
return axiosInstance.put(`${baseUrl}/createOrUpdate`, data);
|
65
65
|
},
|
66
66
|
delete: (id) => {
|
67
|
-
return
|
67
|
+
return axiosInstance.post(`${baseUrl}/delete`, { id });
|
68
68
|
}
|
69
69
|
};
|
70
70
|
}
|
@@ -66,8 +66,8 @@ import {
|
|
66
66
|
useS_BasicAppShell,
|
67
67
|
useS_ButtonImport,
|
68
68
|
utils_layout_getItemsWithoutLinks
|
69
|
-
} from "../chunk-
|
70
|
-
import "../chunk-
|
69
|
+
} from "../chunk-DTTVAJG7.mjs";
|
70
|
+
import "../chunk-CUMGXY5T.mjs";
|
71
71
|
import "../chunk-Y3YGC5IH.mjs";
|
72
72
|
import "../chunk-5U2JSHSJ.mjs";
|
73
73
|
import "../chunk-7ZCOFATU.mjs";
|
package/dist/hooks/index.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as axios from 'axios';
|
2
|
-
import { AxiosResponse } from 'axios';
|
2
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
3
3
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
4
4
|
import { UseMutationOptions } from '@tanstack/react-query';
|
5
5
|
import { I as IAQModule } from '../IAQModule-XZYlbivW.mjs';
|
@@ -11,7 +11,7 @@ interface MyApiResponse<IRes> {
|
|
11
11
|
message: string;
|
12
12
|
data: IRes;
|
13
13
|
}
|
14
|
-
declare function createBaseApi<T>(baseUrl: string): {
|
14
|
+
declare function createBaseApi<T>(baseUrl: string, axiosInstance: AxiosInstance): {
|
15
15
|
getAll: () => Promise<axios.AxiosResponse<MyApiResponse<T[]>, any>>;
|
16
16
|
getById: (id: number | string) => Promise<axios.AxiosResponse<MyApiResponse<T>, any>>;
|
17
17
|
create: (data: Partial<T>) => Promise<axios.AxiosResponse<MyApiResponse<T>, any>>;
|
package/dist/hooks/index.mjs
CHANGED
@@ -25,12 +25,12 @@ import {
|
|
25
25
|
useS_BasicAppShell,
|
26
26
|
useS_authenticate,
|
27
27
|
utils_layout_getItemsWithoutLinks
|
28
|
-
} from "../chunk-
|
28
|
+
} from "../chunk-DTTVAJG7.mjs";
|
29
29
|
import {
|
30
30
|
baseAxios_default,
|
31
31
|
useQ_AQ_GetAQModule,
|
32
32
|
useQ_SkillCenter_GetAll
|
33
|
-
} from "../chunk-
|
33
|
+
} from "../chunk-CUMGXY5T.mjs";
|
34
34
|
import {
|
35
35
|
createGenericStore
|
36
36
|
} from "../chunk-Y3YGC5IH.mjs";
|