@fctc/interface-logic 3.7.3 → 3.7.5
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/hooks.d.mts +3 -1
- package/dist/hooks.d.ts +3 -1
- package/dist/hooks.js +53 -1
- package/dist/hooks.mjs +52 -1
- package/dist/provider.d.mts +2 -1
- package/dist/provider.d.ts +2 -1
- package/dist/provider.js +53 -2
- package/dist/provider.mjs +53 -2
- package/dist/services.d.mts +7 -0
- package/dist/services.d.ts +7 -0
- package/dist/services.js +36 -1
- package/dist/services.mjs +36 -1
- package/package.json +90 -90
package/dist/hooks.d.mts
CHANGED
|
@@ -669,4 +669,6 @@ declare const useGetNotifications: ({ service, xNode, body, queryKey, enabled, }
|
|
|
669
669
|
|
|
670
670
|
declare const useReadGroup: (services?: string, xNode?: any, body?: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
671
671
|
|
|
672
|
-
|
|
672
|
+
declare const useGetDataChart: (services?: string, xNode?: any, body?: any, enabled?: boolean, path?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
673
|
+
|
|
674
|
+
export { useAddEntity, useButton, useChangeOrderPreparationState as useChangeOrderPreparaionState, useChangeStatus, useCheckPayment, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDataChart, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetNotifications, useGetOrderLine, useGetPinCode, useGetPos, useGetPreparationDisplayData, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetTenantMapping, useGetThreadData, useGetThreadMessages, useGetToken, useGetUser, useGetView, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useProcessOrder, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSavePinCode, useSearchJournal, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdateOrderStatus, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
|
package/dist/hooks.d.ts
CHANGED
|
@@ -669,4 +669,6 @@ declare const useGetNotifications: ({ service, xNode, body, queryKey, enabled, }
|
|
|
669
669
|
|
|
670
670
|
declare const useReadGroup: (services?: string, xNode?: any, body?: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
671
671
|
|
|
672
|
-
|
|
672
|
+
declare const useGetDataChart: (services?: string, xNode?: any, body?: any, enabled?: boolean, path?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
673
|
+
|
|
674
|
+
export { useAddEntity, useButton, useChangeOrderPreparationState as useChangeOrderPreparaionState, useChangeStatus, useCheckPayment, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDataChart, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetNotifications, useGetOrderLine, useGetPinCode, useGetPos, useGetPreparationDisplayData, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetTenantMapping, useGetThreadData, useGetThreadMessages, useGetToken, useGetUser, useGetView, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useProcessOrder, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSavePinCode, useSearchJournal, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdateOrderStatus, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
|
package/dist/hooks.js
CHANGED
|
@@ -59,6 +59,7 @@ __export(hooks_exports, {
|
|
|
59
59
|
useGetConversionRate: () => use_get_conversion_rate_default,
|
|
60
60
|
useGetCurrency: () => use_get_currency_default,
|
|
61
61
|
useGetCurrentCompany: () => use_get_current_company_default,
|
|
62
|
+
useGetDataChart: () => use_get_data_chart_default,
|
|
62
63
|
useGetDetail: () => use_get_detail_default,
|
|
63
64
|
useGetExternalTabs: () => use_get_external_tabs_default,
|
|
64
65
|
useGetFieldExport: () => use_get_field_export_default,
|
|
@@ -5849,7 +5850,39 @@ function useDashboardService() {
|
|
|
5849
5850
|
},
|
|
5850
5851
|
[env]
|
|
5851
5852
|
);
|
|
5852
|
-
|
|
5853
|
+
const getDataChart = (0, import_react15.useCallback)(
|
|
5854
|
+
async ({
|
|
5855
|
+
service,
|
|
5856
|
+
xNode,
|
|
5857
|
+
body,
|
|
5858
|
+
path,
|
|
5859
|
+
method = "POST"
|
|
5860
|
+
}) => {
|
|
5861
|
+
const headers = {
|
|
5862
|
+
"Content-Type": "application/json",
|
|
5863
|
+
"X-Node": xNode
|
|
5864
|
+
};
|
|
5865
|
+
if (method === "GET") {
|
|
5866
|
+
return env.requests.get(
|
|
5867
|
+
path,
|
|
5868
|
+
{
|
|
5869
|
+
headers
|
|
5870
|
+
},
|
|
5871
|
+
service
|
|
5872
|
+
);
|
|
5873
|
+
}
|
|
5874
|
+
return env.requests.post(
|
|
5875
|
+
path,
|
|
5876
|
+
body,
|
|
5877
|
+
{
|
|
5878
|
+
headers
|
|
5879
|
+
},
|
|
5880
|
+
service
|
|
5881
|
+
);
|
|
5882
|
+
},
|
|
5883
|
+
[env]
|
|
5884
|
+
);
|
|
5885
|
+
return { readGroup, getDataChart };
|
|
5853
5886
|
}
|
|
5854
5887
|
|
|
5855
5888
|
// src/hooks/auth/use-forgot-password.ts
|
|
@@ -8038,6 +8071,24 @@ var useReadGroup = (services, xNode, body, enabled) => {
|
|
|
8038
8071
|
});
|
|
8039
8072
|
};
|
|
8040
8073
|
var use_read_group_default = useReadGroup;
|
|
8074
|
+
|
|
8075
|
+
// src/hooks/chart/use-get-data-chart.ts
|
|
8076
|
+
var import_react_query105 = require("@tanstack/react-query");
|
|
8077
|
+
var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
8078
|
+
const { getDataChart } = useDashboardService();
|
|
8079
|
+
return (0, import_react_query105.useQuery)({
|
|
8080
|
+
queryKey: [body],
|
|
8081
|
+
queryFn: () => getDataChart({
|
|
8082
|
+
service: services,
|
|
8083
|
+
xNode,
|
|
8084
|
+
body,
|
|
8085
|
+
path
|
|
8086
|
+
}),
|
|
8087
|
+
refetchOnWindowFocus: false,
|
|
8088
|
+
enabled
|
|
8089
|
+
});
|
|
8090
|
+
};
|
|
8091
|
+
var use_get_data_chart_default = useGetDataChart;
|
|
8041
8092
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8042
8093
|
0 && (module.exports = {
|
|
8043
8094
|
useAddEntity,
|
|
@@ -8069,6 +8120,7 @@ var use_read_group_default = useReadGroup;
|
|
|
8069
8120
|
useGetConversionRate,
|
|
8070
8121
|
useGetCurrency,
|
|
8071
8122
|
useGetCurrentCompany,
|
|
8123
|
+
useGetDataChart,
|
|
8072
8124
|
useGetDetail,
|
|
8073
8125
|
useGetExternalTabs,
|
|
8074
8126
|
useGetFieldExport,
|
package/dist/hooks.mjs
CHANGED
|
@@ -5710,7 +5710,39 @@ function useDashboardService() {
|
|
|
5710
5710
|
},
|
|
5711
5711
|
[env]
|
|
5712
5712
|
);
|
|
5713
|
-
|
|
5713
|
+
const getDataChart = useCallback11(
|
|
5714
|
+
async ({
|
|
5715
|
+
service,
|
|
5716
|
+
xNode,
|
|
5717
|
+
body,
|
|
5718
|
+
path,
|
|
5719
|
+
method = "POST"
|
|
5720
|
+
}) => {
|
|
5721
|
+
const headers = {
|
|
5722
|
+
"Content-Type": "application/json",
|
|
5723
|
+
"X-Node": xNode
|
|
5724
|
+
};
|
|
5725
|
+
if (method === "GET") {
|
|
5726
|
+
return env.requests.get(
|
|
5727
|
+
path,
|
|
5728
|
+
{
|
|
5729
|
+
headers
|
|
5730
|
+
},
|
|
5731
|
+
service
|
|
5732
|
+
);
|
|
5733
|
+
}
|
|
5734
|
+
return env.requests.post(
|
|
5735
|
+
path,
|
|
5736
|
+
body,
|
|
5737
|
+
{
|
|
5738
|
+
headers
|
|
5739
|
+
},
|
|
5740
|
+
service
|
|
5741
|
+
);
|
|
5742
|
+
},
|
|
5743
|
+
[env]
|
|
5744
|
+
);
|
|
5745
|
+
return { readGroup, getDataChart };
|
|
5714
5746
|
}
|
|
5715
5747
|
|
|
5716
5748
|
// src/hooks/auth/use-forgot-password.ts
|
|
@@ -7899,6 +7931,24 @@ var useReadGroup = (services, xNode, body, enabled) => {
|
|
|
7899
7931
|
});
|
|
7900
7932
|
};
|
|
7901
7933
|
var use_read_group_default = useReadGroup;
|
|
7934
|
+
|
|
7935
|
+
// src/hooks/chart/use-get-data-chart.ts
|
|
7936
|
+
import { useQuery as useQuery26 } from "@tanstack/react-query";
|
|
7937
|
+
var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
7938
|
+
const { getDataChart } = useDashboardService();
|
|
7939
|
+
return useQuery26({
|
|
7940
|
+
queryKey: [body],
|
|
7941
|
+
queryFn: () => getDataChart({
|
|
7942
|
+
service: services,
|
|
7943
|
+
xNode,
|
|
7944
|
+
body,
|
|
7945
|
+
path
|
|
7946
|
+
}),
|
|
7947
|
+
refetchOnWindowFocus: false,
|
|
7948
|
+
enabled
|
|
7949
|
+
});
|
|
7950
|
+
};
|
|
7951
|
+
var use_get_data_chart_default = useGetDataChart;
|
|
7902
7952
|
export {
|
|
7903
7953
|
use_add_entity_default as useAddEntity,
|
|
7904
7954
|
use_button_default as useButton,
|
|
@@ -7929,6 +7979,7 @@ export {
|
|
|
7929
7979
|
use_get_conversion_rate_default as useGetConversionRate,
|
|
7930
7980
|
use_get_currency_default as useGetCurrency,
|
|
7931
7981
|
use_get_current_company_default as useGetCurrentCompany,
|
|
7982
|
+
use_get_data_chart_default as useGetDataChart,
|
|
7932
7983
|
use_get_detail_default as useGetDetail,
|
|
7933
7984
|
use_get_external_tabs_default as useGetExternalTabs,
|
|
7934
7985
|
use_get_field_export_default as useGetFieldExport,
|
package/dist/provider.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { L as LocalStorageUtilsType } from './local-storage-BPvoMGYJ.mjs';
|
|
4
|
-
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine, useGetProductImage, useAddEntity, useCheckPayment, useHandleCloseSession, useHandleClosingDetailSession, useCreatePosConfig, useSearchJournal, useGetTenantMapping, useGetToken, useGetPreparationDisplayData, useChangeOrderPreparaionState as useChangeOrderPreparationState, useUpdateOrderStatus, useGetThreadData, useGetThreadMessages, useGetExternalTabs, useProcessOrder, useGeneratePaymentQrInfo, useSavePinCode, useGetPinCode, useReadGroup, useGetNotifications } from './hooks.mjs';
|
|
4
|
+
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine, useGetProductImage, useAddEntity, useCheckPayment, useHandleCloseSession, useHandleClosingDetailSession, useCreatePosConfig, useSearchJournal, useGetTenantMapping, useGetToken, useGetPreparationDisplayData, useChangeOrderPreparaionState as useChangeOrderPreparationState, useUpdateOrderStatus, useGetThreadData, useGetThreadMessages, useGetExternalTabs, useProcessOrder, useGeneratePaymentQrInfo, useSavePinCode, useGetPinCode, useReadGroup, useGetNotifications, useGetDataChart } from './hooks.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-DUiFtWlQ.mjs';
|
|
7
7
|
import './base-model-type-DD8uZnDP.mjs';
|
|
@@ -169,6 +169,7 @@ interface ServiceContextType {
|
|
|
169
169
|
useGetPinCode: typeof useGetPinCode;
|
|
170
170
|
useReadGroup: typeof useReadGroup;
|
|
171
171
|
useGetNotifications: typeof useGetNotifications;
|
|
172
|
+
useGetDataChart: typeof useGetDataChart;
|
|
172
173
|
}
|
|
173
174
|
declare const ServiceProvider: ({ children, }: {
|
|
174
175
|
children: React.ReactNode;
|
package/dist/provider.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { L as LocalStorageUtilsType } from './local-storage-BPvoMGYJ.js';
|
|
4
|
-
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine, useGetProductImage, useAddEntity, useCheckPayment, useHandleCloseSession, useHandleClosingDetailSession, useCreatePosConfig, useSearchJournal, useGetTenantMapping, useGetToken, useGetPreparationDisplayData, useChangeOrderPreparaionState as useChangeOrderPreparationState, useUpdateOrderStatus, useGetThreadData, useGetThreadMessages, useGetExternalTabs, useProcessOrder, useGeneratePaymentQrInfo, useSavePinCode, useGetPinCode, useReadGroup, useGetNotifications } from './hooks.js';
|
|
4
|
+
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine, useGetProductImage, useAddEntity, useCheckPayment, useHandleCloseSession, useHandleClosingDetailSession, useCreatePosConfig, useSearchJournal, useGetTenantMapping, useGetToken, useGetPreparationDisplayData, useChangeOrderPreparaionState as useChangeOrderPreparationState, useUpdateOrderStatus, useGetThreadData, useGetThreadMessages, useGetExternalTabs, useProcessOrder, useGeneratePaymentQrInfo, useSavePinCode, useGetPinCode, useReadGroup, useGetNotifications, useGetDataChart } from './hooks.js';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-DUiFtWlQ.js';
|
|
7
7
|
import './base-model-type-DD8uZnDP.js';
|
|
@@ -169,6 +169,7 @@ interface ServiceContextType {
|
|
|
169
169
|
useGetPinCode: typeof useGetPinCode;
|
|
170
170
|
useReadGroup: typeof useReadGroup;
|
|
171
171
|
useGetNotifications: typeof useGetNotifications;
|
|
172
|
+
useGetDataChart: typeof useGetDataChart;
|
|
172
173
|
}
|
|
173
174
|
declare const ServiceProvider: ({ children, }: {
|
|
174
175
|
children: React.ReactNode;
|
package/dist/provider.js
CHANGED
|
@@ -5839,7 +5839,39 @@ function useDashboardService() {
|
|
|
5839
5839
|
},
|
|
5840
5840
|
[env]
|
|
5841
5841
|
);
|
|
5842
|
-
|
|
5842
|
+
const getDataChart = (0, import_react11.useCallback)(
|
|
5843
|
+
async ({
|
|
5844
|
+
service,
|
|
5845
|
+
xNode,
|
|
5846
|
+
body,
|
|
5847
|
+
path,
|
|
5848
|
+
method = "POST"
|
|
5849
|
+
}) => {
|
|
5850
|
+
const headers = {
|
|
5851
|
+
"Content-Type": "application/json",
|
|
5852
|
+
"X-Node": xNode
|
|
5853
|
+
};
|
|
5854
|
+
if (method === "GET") {
|
|
5855
|
+
return env.requests.get(
|
|
5856
|
+
path,
|
|
5857
|
+
{
|
|
5858
|
+
headers
|
|
5859
|
+
},
|
|
5860
|
+
service
|
|
5861
|
+
);
|
|
5862
|
+
}
|
|
5863
|
+
return env.requests.post(
|
|
5864
|
+
path,
|
|
5865
|
+
body,
|
|
5866
|
+
{
|
|
5867
|
+
headers
|
|
5868
|
+
},
|
|
5869
|
+
service
|
|
5870
|
+
);
|
|
5871
|
+
},
|
|
5872
|
+
[env]
|
|
5873
|
+
);
|
|
5874
|
+
return { readGroup, getDataChart };
|
|
5843
5875
|
}
|
|
5844
5876
|
|
|
5845
5877
|
// src/provider/version-gate-provider.tsx
|
|
@@ -8419,6 +8451,24 @@ var useReadGroup = (services, xNode, body, enabled) => {
|
|
|
8419
8451
|
};
|
|
8420
8452
|
var use_read_group_default = useReadGroup;
|
|
8421
8453
|
|
|
8454
|
+
// src/hooks/chart/use-get-data-chart.ts
|
|
8455
|
+
var import_react_query105 = require("@tanstack/react-query");
|
|
8456
|
+
var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
8457
|
+
const { getDataChart } = useDashboardService();
|
|
8458
|
+
return (0, import_react_query105.useQuery)({
|
|
8459
|
+
queryKey: [body],
|
|
8460
|
+
queryFn: () => getDataChart({
|
|
8461
|
+
service: services,
|
|
8462
|
+
xNode,
|
|
8463
|
+
body,
|
|
8464
|
+
path
|
|
8465
|
+
}),
|
|
8466
|
+
refetchOnWindowFocus: false,
|
|
8467
|
+
enabled
|
|
8468
|
+
});
|
|
8469
|
+
};
|
|
8470
|
+
var use_get_data_chart_default = useGetDataChart;
|
|
8471
|
+
|
|
8422
8472
|
// src/provider/service-provider.tsx
|
|
8423
8473
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
8424
8474
|
var ServiceContext = (0, import_react14.createContext)(null);
|
|
@@ -8529,7 +8579,8 @@ var ServiceProvider = ({
|
|
|
8529
8579
|
useSavePinCode: use_save_pin_code_default,
|
|
8530
8580
|
useGetPinCode: use_get_pin_code_default,
|
|
8531
8581
|
useReadGroup: use_read_group_default,
|
|
8532
|
-
useGetNotifications: use_get_notifications_default
|
|
8582
|
+
useGetNotifications: use_get_notifications_default,
|
|
8583
|
+
useGetDataChart: use_get_data_chart_default
|
|
8533
8584
|
};
|
|
8534
8585
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ServiceContext.Provider, { value: services, children });
|
|
8535
8586
|
};
|
package/dist/provider.mjs
CHANGED
|
@@ -5796,7 +5796,39 @@ function useDashboardService() {
|
|
|
5796
5796
|
},
|
|
5797
5797
|
[env]
|
|
5798
5798
|
);
|
|
5799
|
-
|
|
5799
|
+
const getDataChart = useCallback10(
|
|
5800
|
+
async ({
|
|
5801
|
+
service,
|
|
5802
|
+
xNode,
|
|
5803
|
+
body,
|
|
5804
|
+
path,
|
|
5805
|
+
method = "POST"
|
|
5806
|
+
}) => {
|
|
5807
|
+
const headers = {
|
|
5808
|
+
"Content-Type": "application/json",
|
|
5809
|
+
"X-Node": xNode
|
|
5810
|
+
};
|
|
5811
|
+
if (method === "GET") {
|
|
5812
|
+
return env.requests.get(
|
|
5813
|
+
path,
|
|
5814
|
+
{
|
|
5815
|
+
headers
|
|
5816
|
+
},
|
|
5817
|
+
service
|
|
5818
|
+
);
|
|
5819
|
+
}
|
|
5820
|
+
return env.requests.post(
|
|
5821
|
+
path,
|
|
5822
|
+
body,
|
|
5823
|
+
{
|
|
5824
|
+
headers
|
|
5825
|
+
},
|
|
5826
|
+
service
|
|
5827
|
+
);
|
|
5828
|
+
},
|
|
5829
|
+
[env]
|
|
5830
|
+
);
|
|
5831
|
+
return { readGroup, getDataChart };
|
|
5800
5832
|
}
|
|
5801
5833
|
|
|
5802
5834
|
// src/provider/version-gate-provider.tsx
|
|
@@ -8376,6 +8408,24 @@ var useReadGroup = (services, xNode, body, enabled) => {
|
|
|
8376
8408
|
};
|
|
8377
8409
|
var use_read_group_default = useReadGroup;
|
|
8378
8410
|
|
|
8411
|
+
// src/hooks/chart/use-get-data-chart.ts
|
|
8412
|
+
import { useQuery as useQuery26 } from "@tanstack/react-query";
|
|
8413
|
+
var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
8414
|
+
const { getDataChart } = useDashboardService();
|
|
8415
|
+
return useQuery26({
|
|
8416
|
+
queryKey: [body],
|
|
8417
|
+
queryFn: () => getDataChart({
|
|
8418
|
+
service: services,
|
|
8419
|
+
xNode,
|
|
8420
|
+
body,
|
|
8421
|
+
path
|
|
8422
|
+
}),
|
|
8423
|
+
refetchOnWindowFocus: false,
|
|
8424
|
+
enabled
|
|
8425
|
+
});
|
|
8426
|
+
};
|
|
8427
|
+
var use_get_data_chart_default = useGetDataChart;
|
|
8428
|
+
|
|
8379
8429
|
// src/provider/service-provider.tsx
|
|
8380
8430
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
8381
8431
|
var ServiceContext = createContext2(null);
|
|
@@ -8486,7 +8536,8 @@ var ServiceProvider = ({
|
|
|
8486
8536
|
useSavePinCode: use_save_pin_code_default,
|
|
8487
8537
|
useGetPinCode: use_get_pin_code_default,
|
|
8488
8538
|
useReadGroup: use_read_group_default,
|
|
8489
|
-
useGetNotifications: use_get_notifications_default
|
|
8539
|
+
useGetNotifications: use_get_notifications_default,
|
|
8540
|
+
useGetDataChart: use_get_data_chart_default
|
|
8490
8541
|
};
|
|
8491
8542
|
return /* @__PURE__ */ jsx6(ServiceContext.Provider, { value: services, children });
|
|
8492
8543
|
};
|
package/dist/services.d.mts
CHANGED
|
@@ -519,6 +519,13 @@ declare function useDashboardService(): {
|
|
|
519
519
|
xNode?: string;
|
|
520
520
|
body?: any;
|
|
521
521
|
}) => Promise<any>;
|
|
522
|
+
getDataChart: ({ service, xNode, body, path, method, }: {
|
|
523
|
+
service?: string;
|
|
524
|
+
xNode?: string;
|
|
525
|
+
body?: any;
|
|
526
|
+
path?: string;
|
|
527
|
+
method?: "GET" | "POST";
|
|
528
|
+
}) => Promise<any>;
|
|
522
529
|
};
|
|
523
530
|
|
|
524
531
|
export { useActionService, useAuthService, useCompanyService, useDashboardService, useExcelService, useFormService, useKanbanService, useModelService, useUserService, useViewService };
|
package/dist/services.d.ts
CHANGED
|
@@ -519,6 +519,13 @@ declare function useDashboardService(): {
|
|
|
519
519
|
xNode?: string;
|
|
520
520
|
body?: any;
|
|
521
521
|
}) => Promise<any>;
|
|
522
|
+
getDataChart: ({ service, xNode, body, path, method, }: {
|
|
523
|
+
service?: string;
|
|
524
|
+
xNode?: string;
|
|
525
|
+
body?: any;
|
|
526
|
+
path?: string;
|
|
527
|
+
method?: "GET" | "POST";
|
|
528
|
+
}) => Promise<any>;
|
|
522
529
|
};
|
|
523
530
|
|
|
524
531
|
export { useActionService, useAuthService, useCompanyService, useDashboardService, useExcelService, useFormService, useKanbanService, useModelService, useUserService, useViewService };
|
package/dist/services.js
CHANGED
|
@@ -3178,6 +3178,9 @@ var import_react_query103 = require("@tanstack/react-query");
|
|
|
3178
3178
|
// src/hooks/chart/use-read-group.ts
|
|
3179
3179
|
var import_react_query104 = require("@tanstack/react-query");
|
|
3180
3180
|
|
|
3181
|
+
// src/hooks/chart/use-get-data-chart.ts
|
|
3182
|
+
var import_react_query105 = require("@tanstack/react-query");
|
|
3183
|
+
|
|
3181
3184
|
// src/provider/service-provider.tsx
|
|
3182
3185
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
3183
3186
|
var ServiceContext = (0, import_react4.createContext)(null);
|
|
@@ -6038,7 +6041,39 @@ function useDashboardService() {
|
|
|
6038
6041
|
},
|
|
6039
6042
|
[env]
|
|
6040
6043
|
);
|
|
6041
|
-
|
|
6044
|
+
const getDataChart = (0, import_react15.useCallback)(
|
|
6045
|
+
async ({
|
|
6046
|
+
service,
|
|
6047
|
+
xNode,
|
|
6048
|
+
body,
|
|
6049
|
+
path,
|
|
6050
|
+
method = "POST"
|
|
6051
|
+
}) => {
|
|
6052
|
+
const headers = {
|
|
6053
|
+
"Content-Type": "application/json",
|
|
6054
|
+
"X-Node": xNode
|
|
6055
|
+
};
|
|
6056
|
+
if (method === "GET") {
|
|
6057
|
+
return env.requests.get(
|
|
6058
|
+
path,
|
|
6059
|
+
{
|
|
6060
|
+
headers
|
|
6061
|
+
},
|
|
6062
|
+
service
|
|
6063
|
+
);
|
|
6064
|
+
}
|
|
6065
|
+
return env.requests.post(
|
|
6066
|
+
path,
|
|
6067
|
+
body,
|
|
6068
|
+
{
|
|
6069
|
+
headers
|
|
6070
|
+
},
|
|
6071
|
+
service
|
|
6072
|
+
);
|
|
6073
|
+
},
|
|
6074
|
+
[env]
|
|
6075
|
+
);
|
|
6076
|
+
return { readGroup, getDataChart };
|
|
6042
6077
|
}
|
|
6043
6078
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6044
6079
|
0 && (module.exports = {
|
package/dist/services.mjs
CHANGED
|
@@ -3133,6 +3133,9 @@ import { useQuery as useQuery24 } from "@tanstack/react-query";
|
|
|
3133
3133
|
// src/hooks/chart/use-read-group.ts
|
|
3134
3134
|
import { useQuery as useQuery25 } from "@tanstack/react-query";
|
|
3135
3135
|
|
|
3136
|
+
// src/hooks/chart/use-get-data-chart.ts
|
|
3137
|
+
import { useQuery as useQuery26 } from "@tanstack/react-query";
|
|
3138
|
+
|
|
3136
3139
|
// src/provider/service-provider.tsx
|
|
3137
3140
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
3138
3141
|
var ServiceContext = createContext2(null);
|
|
@@ -5993,7 +5996,39 @@ function useDashboardService() {
|
|
|
5993
5996
|
},
|
|
5994
5997
|
[env]
|
|
5995
5998
|
);
|
|
5996
|
-
|
|
5999
|
+
const getDataChart = useCallback11(
|
|
6000
|
+
async ({
|
|
6001
|
+
service,
|
|
6002
|
+
xNode,
|
|
6003
|
+
body,
|
|
6004
|
+
path,
|
|
6005
|
+
method = "POST"
|
|
6006
|
+
}) => {
|
|
6007
|
+
const headers = {
|
|
6008
|
+
"Content-Type": "application/json",
|
|
6009
|
+
"X-Node": xNode
|
|
6010
|
+
};
|
|
6011
|
+
if (method === "GET") {
|
|
6012
|
+
return env.requests.get(
|
|
6013
|
+
path,
|
|
6014
|
+
{
|
|
6015
|
+
headers
|
|
6016
|
+
},
|
|
6017
|
+
service
|
|
6018
|
+
);
|
|
6019
|
+
}
|
|
6020
|
+
return env.requests.post(
|
|
6021
|
+
path,
|
|
6022
|
+
body,
|
|
6023
|
+
{
|
|
6024
|
+
headers
|
|
6025
|
+
},
|
|
6026
|
+
service
|
|
6027
|
+
);
|
|
6028
|
+
},
|
|
6029
|
+
[env]
|
|
6030
|
+
);
|
|
6031
|
+
return { readGroup, getDataChart };
|
|
5997
6032
|
}
|
|
5998
6033
|
export {
|
|
5999
6034
|
useActionService,
|
package/package.json
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/interface-logic",
|
|
3
|
-
"version": "3.7.
|
|
4
|
-
"types": "dist/index.d.ts",
|
|
5
|
-
"main": "dist/index.cjs",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
12
|
-
},
|
|
13
|
-
"./configs": {
|
|
14
|
-
"types": "./dist/configs.d.ts",
|
|
15
|
-
"import": "./dist/configs.mjs",
|
|
16
|
-
"require": "./dist/configs.cjs"
|
|
17
|
-
},
|
|
18
|
-
"./constants": {
|
|
19
|
-
"types": "./dist/constants.d.ts",
|
|
20
|
-
"import": "./dist/constants.mjs",
|
|
21
|
-
"require": "./dist/constants.cjs"
|
|
22
|
-
},
|
|
23
|
-
"./environment": {
|
|
24
|
-
"types": "./dist/environment.d.ts",
|
|
25
|
-
"import": "./dist/environment.mjs",
|
|
26
|
-
"require": "./dist/environment.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./hooks": {
|
|
29
|
-
"types": "./dist/hooks.d.ts",
|
|
30
|
-
"import": "./dist/hooks.mjs",
|
|
31
|
-
"require": "./dist/hooks.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./provider": {
|
|
34
|
-
"types": "./dist/provider.d.ts",
|
|
35
|
-
"import": "./dist/provider.mjs",
|
|
36
|
-
"require": "./dist/provider.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./services": {
|
|
39
|
-
"types": "./dist/services.d.ts",
|
|
40
|
-
"import": "./dist/services.mjs",
|
|
41
|
-
"require": "./dist/services.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./store": {
|
|
44
|
-
"types": "./dist/store.d.ts",
|
|
45
|
-
"import": "./dist/store.mjs",
|
|
46
|
-
"require": "./dist/store.cjs"
|
|
47
|
-
},
|
|
48
|
-
"./utils": {
|
|
49
|
-
"types": "./dist/utils.d.ts",
|
|
50
|
-
"import": "./dist/utils.mjs",
|
|
51
|
-
"require": "./dist/utils.cjs"
|
|
52
|
-
},
|
|
53
|
-
"./types": {
|
|
54
|
-
"types": "./dist/types.d.ts",
|
|
55
|
-
"import": "./dist/types.mjs",
|
|
56
|
-
"require": "./dist/types.cjs"
|
|
57
|
-
},
|
|
58
|
-
"./models": {
|
|
59
|
-
"types": "./dist/models.d.ts",
|
|
60
|
-
"import": "./dist/models.mjs",
|
|
61
|
-
"require": "./dist/models.cjs"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"files": [
|
|
65
|
-
"dist"
|
|
66
|
-
],
|
|
67
|
-
"scripts": {
|
|
68
|
-
"build": "tsup",
|
|
69
|
-
"test": "jest"
|
|
70
|
-
},
|
|
71
|
-
"peerDependencies": {
|
|
72
|
-
"react": "18.0.0",
|
|
73
|
-
"@tanstack/react-query": "^5.83.0"
|
|
74
|
-
},
|
|
75
|
-
"dependencies": {
|
|
76
|
-
"@reduxjs/toolkit": "^2.8.2",
|
|
77
|
-
"@tanstack/react-query": "^5.83.0",
|
|
78
|
-
"axios": "^1.11.0",
|
|
79
|
-
"moment": "^2.30.1",
|
|
80
|
-
"react-redux": "^9.2.0"
|
|
81
|
-
},
|
|
82
|
-
"devDependencies": {
|
|
83
|
-
"@types/react": "^18.3.1",
|
|
84
|
-
"react": "18.0.0",
|
|
85
|
-
"jest": "^29.7.0",
|
|
86
|
-
"tsup": "^8.0.0",
|
|
87
|
-
"typescript": "^5.8.2"
|
|
88
|
-
},
|
|
89
|
-
"packageManager": "yarn@1.22.0"
|
|
90
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fctc/interface-logic",
|
|
3
|
+
"version": "3.7.5",
|
|
4
|
+
"types": "dist/index.d.ts",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./configs": {
|
|
14
|
+
"types": "./dist/configs.d.ts",
|
|
15
|
+
"import": "./dist/configs.mjs",
|
|
16
|
+
"require": "./dist/configs.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./constants": {
|
|
19
|
+
"types": "./dist/constants.d.ts",
|
|
20
|
+
"import": "./dist/constants.mjs",
|
|
21
|
+
"require": "./dist/constants.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./environment": {
|
|
24
|
+
"types": "./dist/environment.d.ts",
|
|
25
|
+
"import": "./dist/environment.mjs",
|
|
26
|
+
"require": "./dist/environment.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./hooks": {
|
|
29
|
+
"types": "./dist/hooks.d.ts",
|
|
30
|
+
"import": "./dist/hooks.mjs",
|
|
31
|
+
"require": "./dist/hooks.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./provider": {
|
|
34
|
+
"types": "./dist/provider.d.ts",
|
|
35
|
+
"import": "./dist/provider.mjs",
|
|
36
|
+
"require": "./dist/provider.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./services": {
|
|
39
|
+
"types": "./dist/services.d.ts",
|
|
40
|
+
"import": "./dist/services.mjs",
|
|
41
|
+
"require": "./dist/services.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./store": {
|
|
44
|
+
"types": "./dist/store.d.ts",
|
|
45
|
+
"import": "./dist/store.mjs",
|
|
46
|
+
"require": "./dist/store.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./utils": {
|
|
49
|
+
"types": "./dist/utils.d.ts",
|
|
50
|
+
"import": "./dist/utils.mjs",
|
|
51
|
+
"require": "./dist/utils.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./types": {
|
|
54
|
+
"types": "./dist/types.d.ts",
|
|
55
|
+
"import": "./dist/types.mjs",
|
|
56
|
+
"require": "./dist/types.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./models": {
|
|
59
|
+
"types": "./dist/models.d.ts",
|
|
60
|
+
"import": "./dist/models.mjs",
|
|
61
|
+
"require": "./dist/models.cjs"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"files": [
|
|
65
|
+
"dist"
|
|
66
|
+
],
|
|
67
|
+
"scripts": {
|
|
68
|
+
"build": "tsup",
|
|
69
|
+
"test": "jest"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"react": "18.0.0",
|
|
73
|
+
"@tanstack/react-query": "^5.83.0"
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"@reduxjs/toolkit": "^2.8.2",
|
|
77
|
+
"@tanstack/react-query": "^5.83.0",
|
|
78
|
+
"axios": "^1.11.0",
|
|
79
|
+
"moment": "^2.30.1",
|
|
80
|
+
"react-redux": "^9.2.0"
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@types/react": "^18.3.1",
|
|
84
|
+
"react": "18.0.0",
|
|
85
|
+
"jest": "^29.7.0",
|
|
86
|
+
"tsup": "^8.0.0",
|
|
87
|
+
"typescript": "^5.8.2"
|
|
88
|
+
},
|
|
89
|
+
"packageManager": "yarn@1.22.0"
|
|
90
|
+
}
|