aq-fe-framework 0.1.216 → 0.1.218

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.
@@ -48,7 +48,7 @@ var useLoadConfig = () => {
48
48
  // src/hooks/custom-hooks/createBaseApi.ts
49
49
  function createBaseApi(baseUrl, axiosInstance) {
50
50
  return {
51
- getAll: ({ params = "" }) => {
51
+ getAll: ({ params = "" } = {}) => {
52
52
  return axiosInstance.get(`${baseUrl}/GetAll` + params);
53
53
  },
54
54
  create: (data) => {
@@ -57,7 +57,6 @@ function createBaseApi(baseUrl, axiosInstance) {
57
57
  update: (data) => {
58
58
  return axiosInstance.post(`${baseUrl}/update`, data);
59
59
  },
60
- // Delop lần
61
60
  createOrUpdate: (data) => {
62
61
  return axiosInstance.post(`${baseUrl}/createOrUpdate`, data);
63
62
  },
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  baseAxios_default,
3
3
  useQ_AQ_GetAQModule
4
- } from "./chunk-ZFQT5ML6.mjs";
4
+ } from "./chunk-JZNIYVST.mjs";
5
+ import {
6
+ createGenericStore
7
+ } from "./chunk-Y3YGC5IH.mjs";
5
8
  import {
6
9
  utils_pdf_download
7
10
  } from "./chunk-5U2JSHSJ.mjs";
8
11
  import {
9
12
  utils_notification_show
10
13
  } from "./chunk-7ZCOFATU.mjs";
11
- import {
12
- createGenericStore
13
- } from "./chunk-Y3YGC5IH.mjs";
14
14
  import {
15
15
  __objRest,
16
16
  __spreadProps,
@@ -65,11 +65,11 @@ import {
65
65
  useS_BasicAppShell,
66
66
  useS_ButtonImport,
67
67
  utils_layout_getItemsWithoutLinks
68
- } from "../chunk-EF6GAQ2S.mjs";
69
- import "../chunk-ZFQT5ML6.mjs";
68
+ } from "../chunk-OPXN7KYV.mjs";
69
+ import "../chunk-JZNIYVST.mjs";
70
+ import "../chunk-Y3YGC5IH.mjs";
70
71
  import "../chunk-5U2JSHSJ.mjs";
71
72
  import "../chunk-7ZCOFATU.mjs";
72
- import "../chunk-Y3YGC5IH.mjs";
73
73
  import "../chunk-FWCSY2DS.mjs";
74
74
  export {
75
75
  AQButtonCreateByImportFile,
@@ -12,7 +12,7 @@ interface MyApiResponse<IRes> {
12
12
  data: IRes;
13
13
  }
14
14
  declare function createBaseApi<T>(baseUrl: string, axiosInstance: AxiosInstance): {
15
- getAll: ({ params }: {
15
+ getAll: ({ params }?: {
16
16
  params?: string;
17
17
  }) => Promise<axios.AxiosResponse<MyApiResponse<T[]>, any>>;
18
18
  create: (data: Partial<T>) => Promise<axios.AxiosResponse<MyApiResponse<T>, any>>;
@@ -4,7 +4,7 @@ import {
4
4
  useMyReactMutation,
5
5
  useMyReactQuery,
6
6
  useQ_AQ_GetAQModule
7
- } from "../chunk-ZFQT5ML6.mjs";
7
+ } from "../chunk-JZNIYVST.mjs";
8
8
  import "../chunk-7ZCOFATU.mjs";
9
9
  import "../chunk-FWCSY2DS.mjs";
10
10
  export {
@@ -25,12 +25,15 @@ import {
25
25
  useS_BasicAppShell,
26
26
  useS_authenticate,
27
27
  utils_layout_getItemsWithoutLinks
28
- } from "../chunk-EF6GAQ2S.mjs";
28
+ } from "../chunk-OPXN7KYV.mjs";
29
29
  import {
30
30
  baseAxios_default,
31
31
  useQ_AQ_GetAQModule,
32
32
  useQ_SkillCenter_GetAll
33
- } from "../chunk-ZFQT5ML6.mjs";
33
+ } from "../chunk-JZNIYVST.mjs";
34
+ import {
35
+ createGenericStore
36
+ } from "../chunk-Y3YGC5IH.mjs";
34
37
  import {
35
38
  U0DateToDDMMYYYString,
36
39
  U0MyValidateEmail,
@@ -42,9 +45,6 @@ import "../chunk-5U2JSHSJ.mjs";
42
45
  import {
43
46
  utils_notification_show
44
47
  } from "../chunk-7ZCOFATU.mjs";
45
- import {
46
- createGenericStore
47
- } from "../chunk-Y3YGC5IH.mjs";
48
48
  import {
49
49
  __objRest,
50
50
  __spreadProps,
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "types": "./dist/hooks/index.d.mts"
23
23
  }
24
24
  },
25
- "version": "0.1.216",
25
+ "version": "0.1.218",
26
26
  "private": false,
27
27
  "files": [
28
28
  "dist"