@fctc/interface-logic 3.7.2 → 3.7.4
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 +78 -21
- package/dist/hooks.mjs +77 -21
- package/dist/provider.d.mts +2 -1
- package/dist/provider.d.ts +2 -1
- package/dist/provider.js +78 -22
- package/dist/provider.mjs +78 -22
- package/dist/services.d.mts +6 -0
- package/dist/services.d.ts +6 -0
- package/dist/services.js +61 -21
- package/dist/services.mjs +61 -21
- 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,
|
|
@@ -4726,12 +4727,17 @@ function useViewService() {
|
|
|
4726
4727
|
client_id,
|
|
4727
4728
|
scopes
|
|
4728
4729
|
};
|
|
4729
|
-
return env?.requests.post(
|
|
4730
|
-
|
|
4731
|
-
|
|
4730
|
+
return env?.requests.post(
|
|
4731
|
+
"/grant-access" /* GRANT_ACCESS */,
|
|
4732
|
+
jsonData,
|
|
4733
|
+
{
|
|
4734
|
+
headers: {
|
|
4735
|
+
"Content-Type": "application/json"
|
|
4736
|
+
},
|
|
4737
|
+
withCredentials: true
|
|
4732
4738
|
},
|
|
4733
|
-
|
|
4734
|
-
|
|
4739
|
+
"id"
|
|
4740
|
+
);
|
|
4735
4741
|
},
|
|
4736
4742
|
[env]
|
|
4737
4743
|
);
|
|
@@ -4743,11 +4749,16 @@ function useViewService() {
|
|
|
4743
4749
|
token
|
|
4744
4750
|
}
|
|
4745
4751
|
};
|
|
4746
|
-
return env?.requests.post(
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4752
|
+
return env?.requests.post(
|
|
4753
|
+
"/call" /* CALL_PATH */,
|
|
4754
|
+
jsonData,
|
|
4755
|
+
{
|
|
4756
|
+
headers: {
|
|
4757
|
+
"Content-Type": "application/json"
|
|
4758
|
+
}
|
|
4759
|
+
},
|
|
4760
|
+
"id"
|
|
4761
|
+
);
|
|
4751
4762
|
},
|
|
4752
4763
|
[env]
|
|
4753
4764
|
);
|
|
@@ -4757,11 +4768,16 @@ function useViewService() {
|
|
|
4757
4768
|
method,
|
|
4758
4769
|
with_context: { token }
|
|
4759
4770
|
};
|
|
4760
|
-
return env?.requests.post(
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4771
|
+
return env?.requests.post(
|
|
4772
|
+
"/call" /* CALL_PATH */,
|
|
4773
|
+
jsonData,
|
|
4774
|
+
{
|
|
4775
|
+
headers: {
|
|
4776
|
+
"Content-Type": "application/json"
|
|
4777
|
+
}
|
|
4778
|
+
},
|
|
4779
|
+
"id"
|
|
4780
|
+
);
|
|
4765
4781
|
},
|
|
4766
4782
|
[env]
|
|
4767
4783
|
);
|
|
@@ -4812,12 +4828,16 @@ function useViewService() {
|
|
|
4812
4828
|
scope
|
|
4813
4829
|
)}`;
|
|
4814
4830
|
const url = `${path}?${queryString}`;
|
|
4815
|
-
return env?.requests.get(
|
|
4816
|
-
|
|
4817
|
-
|
|
4831
|
+
return env?.requests.get(
|
|
4832
|
+
url,
|
|
4833
|
+
{
|
|
4834
|
+
headers: {
|
|
4835
|
+
"Content-Type": "application/json"
|
|
4836
|
+
},
|
|
4837
|
+
withCredentials: true
|
|
4818
4838
|
},
|
|
4819
|
-
|
|
4820
|
-
|
|
4839
|
+
"id"
|
|
4840
|
+
);
|
|
4821
4841
|
},
|
|
4822
4842
|
[env]
|
|
4823
4843
|
);
|
|
@@ -5830,7 +5850,25 @@ function useDashboardService() {
|
|
|
5830
5850
|
},
|
|
5831
5851
|
[env]
|
|
5832
5852
|
);
|
|
5833
|
-
|
|
5853
|
+
const getDataChart = (0, import_react15.useCallback)(
|
|
5854
|
+
async ({
|
|
5855
|
+
service,
|
|
5856
|
+
xNode,
|
|
5857
|
+
body,
|
|
5858
|
+
path
|
|
5859
|
+
}) => {
|
|
5860
|
+
return env.requests.post(
|
|
5861
|
+
path,
|
|
5862
|
+
body,
|
|
5863
|
+
{
|
|
5864
|
+
headers: { "Content-Type": "application/json", "X-Node": xNode }
|
|
5865
|
+
},
|
|
5866
|
+
service
|
|
5867
|
+
);
|
|
5868
|
+
},
|
|
5869
|
+
[env]
|
|
5870
|
+
);
|
|
5871
|
+
return { readGroup, getDataChart };
|
|
5834
5872
|
}
|
|
5835
5873
|
|
|
5836
5874
|
// src/hooks/auth/use-forgot-password.ts
|
|
@@ -8019,6 +8057,24 @@ var useReadGroup = (services, xNode, body, enabled) => {
|
|
|
8019
8057
|
});
|
|
8020
8058
|
};
|
|
8021
8059
|
var use_read_group_default = useReadGroup;
|
|
8060
|
+
|
|
8061
|
+
// src/hooks/chart/use-get-data-chart.ts
|
|
8062
|
+
var import_react_query105 = require("@tanstack/react-query");
|
|
8063
|
+
var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
8064
|
+
const { getDataChart } = useDashboardService();
|
|
8065
|
+
return (0, import_react_query105.useQuery)({
|
|
8066
|
+
queryKey: [body],
|
|
8067
|
+
queryFn: () => getDataChart({
|
|
8068
|
+
service: services,
|
|
8069
|
+
xNode,
|
|
8070
|
+
body,
|
|
8071
|
+
path
|
|
8072
|
+
}),
|
|
8073
|
+
refetchOnWindowFocus: false,
|
|
8074
|
+
enabled
|
|
8075
|
+
});
|
|
8076
|
+
};
|
|
8077
|
+
var use_get_data_chart_default = useGetDataChart;
|
|
8022
8078
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8023
8079
|
0 && (module.exports = {
|
|
8024
8080
|
useAddEntity,
|
|
@@ -8050,6 +8106,7 @@ var use_read_group_default = useReadGroup;
|
|
|
8050
8106
|
useGetConversionRate,
|
|
8051
8107
|
useGetCurrency,
|
|
8052
8108
|
useGetCurrentCompany,
|
|
8109
|
+
useGetDataChart,
|
|
8053
8110
|
useGetDetail,
|
|
8054
8111
|
useGetExternalTabs,
|
|
8055
8112
|
useGetFieldExport,
|
package/dist/hooks.mjs
CHANGED
|
@@ -4587,12 +4587,17 @@ function useViewService() {
|
|
|
4587
4587
|
client_id,
|
|
4588
4588
|
scopes
|
|
4589
4589
|
};
|
|
4590
|
-
return env?.requests.post(
|
|
4591
|
-
|
|
4592
|
-
|
|
4590
|
+
return env?.requests.post(
|
|
4591
|
+
"/grant-access" /* GRANT_ACCESS */,
|
|
4592
|
+
jsonData,
|
|
4593
|
+
{
|
|
4594
|
+
headers: {
|
|
4595
|
+
"Content-Type": "application/json"
|
|
4596
|
+
},
|
|
4597
|
+
withCredentials: true
|
|
4593
4598
|
},
|
|
4594
|
-
|
|
4595
|
-
|
|
4599
|
+
"id"
|
|
4600
|
+
);
|
|
4596
4601
|
},
|
|
4597
4602
|
[env]
|
|
4598
4603
|
);
|
|
@@ -4604,11 +4609,16 @@ function useViewService() {
|
|
|
4604
4609
|
token
|
|
4605
4610
|
}
|
|
4606
4611
|
};
|
|
4607
|
-
return env?.requests.post(
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
+
return env?.requests.post(
|
|
4613
|
+
"/call" /* CALL_PATH */,
|
|
4614
|
+
jsonData,
|
|
4615
|
+
{
|
|
4616
|
+
headers: {
|
|
4617
|
+
"Content-Type": "application/json"
|
|
4618
|
+
}
|
|
4619
|
+
},
|
|
4620
|
+
"id"
|
|
4621
|
+
);
|
|
4612
4622
|
},
|
|
4613
4623
|
[env]
|
|
4614
4624
|
);
|
|
@@ -4618,11 +4628,16 @@ function useViewService() {
|
|
|
4618
4628
|
method,
|
|
4619
4629
|
with_context: { token }
|
|
4620
4630
|
};
|
|
4621
|
-
return env?.requests.post(
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4631
|
+
return env?.requests.post(
|
|
4632
|
+
"/call" /* CALL_PATH */,
|
|
4633
|
+
jsonData,
|
|
4634
|
+
{
|
|
4635
|
+
headers: {
|
|
4636
|
+
"Content-Type": "application/json"
|
|
4637
|
+
}
|
|
4638
|
+
},
|
|
4639
|
+
"id"
|
|
4640
|
+
);
|
|
4626
4641
|
},
|
|
4627
4642
|
[env]
|
|
4628
4643
|
);
|
|
@@ -4673,12 +4688,16 @@ function useViewService() {
|
|
|
4673
4688
|
scope
|
|
4674
4689
|
)}`;
|
|
4675
4690
|
const url = `${path}?${queryString}`;
|
|
4676
|
-
return env?.requests.get(
|
|
4677
|
-
|
|
4678
|
-
|
|
4691
|
+
return env?.requests.get(
|
|
4692
|
+
url,
|
|
4693
|
+
{
|
|
4694
|
+
headers: {
|
|
4695
|
+
"Content-Type": "application/json"
|
|
4696
|
+
},
|
|
4697
|
+
withCredentials: true
|
|
4679
4698
|
},
|
|
4680
|
-
|
|
4681
|
-
|
|
4699
|
+
"id"
|
|
4700
|
+
);
|
|
4682
4701
|
},
|
|
4683
4702
|
[env]
|
|
4684
4703
|
);
|
|
@@ -5691,7 +5710,25 @@ function useDashboardService() {
|
|
|
5691
5710
|
},
|
|
5692
5711
|
[env]
|
|
5693
5712
|
);
|
|
5694
|
-
|
|
5713
|
+
const getDataChart = useCallback11(
|
|
5714
|
+
async ({
|
|
5715
|
+
service,
|
|
5716
|
+
xNode,
|
|
5717
|
+
body,
|
|
5718
|
+
path
|
|
5719
|
+
}) => {
|
|
5720
|
+
return env.requests.post(
|
|
5721
|
+
path,
|
|
5722
|
+
body,
|
|
5723
|
+
{
|
|
5724
|
+
headers: { "Content-Type": "application/json", "X-Node": xNode }
|
|
5725
|
+
},
|
|
5726
|
+
service
|
|
5727
|
+
);
|
|
5728
|
+
},
|
|
5729
|
+
[env]
|
|
5730
|
+
);
|
|
5731
|
+
return { readGroup, getDataChart };
|
|
5695
5732
|
}
|
|
5696
5733
|
|
|
5697
5734
|
// src/hooks/auth/use-forgot-password.ts
|
|
@@ -7880,6 +7917,24 @@ var useReadGroup = (services, xNode, body, enabled) => {
|
|
|
7880
7917
|
});
|
|
7881
7918
|
};
|
|
7882
7919
|
var use_read_group_default = useReadGroup;
|
|
7920
|
+
|
|
7921
|
+
// src/hooks/chart/use-get-data-chart.ts
|
|
7922
|
+
import { useQuery as useQuery26 } from "@tanstack/react-query";
|
|
7923
|
+
var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
7924
|
+
const { getDataChart } = useDashboardService();
|
|
7925
|
+
return useQuery26({
|
|
7926
|
+
queryKey: [body],
|
|
7927
|
+
queryFn: () => getDataChart({
|
|
7928
|
+
service: services,
|
|
7929
|
+
xNode,
|
|
7930
|
+
body,
|
|
7931
|
+
path
|
|
7932
|
+
}),
|
|
7933
|
+
refetchOnWindowFocus: false,
|
|
7934
|
+
enabled
|
|
7935
|
+
});
|
|
7936
|
+
};
|
|
7937
|
+
var use_get_data_chart_default = useGetDataChart;
|
|
7883
7938
|
export {
|
|
7884
7939
|
use_add_entity_default as useAddEntity,
|
|
7885
7940
|
use_button_default as useButton,
|
|
@@ -7910,6 +7965,7 @@ export {
|
|
|
7910
7965
|
use_get_conversion_rate_default as useGetConversionRate,
|
|
7911
7966
|
use_get_currency_default as useGetCurrency,
|
|
7912
7967
|
use_get_current_company_default as useGetCurrentCompany,
|
|
7968
|
+
use_get_data_chart_default as useGetDataChart,
|
|
7913
7969
|
use_get_detail_default as useGetDetail,
|
|
7914
7970
|
use_get_external_tabs_default as useGetExternalTabs,
|
|
7915
7971
|
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
|
@@ -4716,12 +4716,17 @@ function useViewService() {
|
|
|
4716
4716
|
client_id,
|
|
4717
4717
|
scopes
|
|
4718
4718
|
};
|
|
4719
|
-
return env?.requests.post(
|
|
4720
|
-
|
|
4721
|
-
|
|
4719
|
+
return env?.requests.post(
|
|
4720
|
+
"/grant-access" /* GRANT_ACCESS */,
|
|
4721
|
+
jsonData,
|
|
4722
|
+
{
|
|
4723
|
+
headers: {
|
|
4724
|
+
"Content-Type": "application/json"
|
|
4725
|
+
},
|
|
4726
|
+
withCredentials: true
|
|
4722
4727
|
},
|
|
4723
|
-
|
|
4724
|
-
|
|
4728
|
+
"id"
|
|
4729
|
+
);
|
|
4725
4730
|
},
|
|
4726
4731
|
[env]
|
|
4727
4732
|
);
|
|
@@ -4733,11 +4738,16 @@ function useViewService() {
|
|
|
4733
4738
|
token
|
|
4734
4739
|
}
|
|
4735
4740
|
};
|
|
4736
|
-
return env?.requests.post(
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
+
return env?.requests.post(
|
|
4742
|
+
"/call" /* CALL_PATH */,
|
|
4743
|
+
jsonData,
|
|
4744
|
+
{
|
|
4745
|
+
headers: {
|
|
4746
|
+
"Content-Type": "application/json"
|
|
4747
|
+
}
|
|
4748
|
+
},
|
|
4749
|
+
"id"
|
|
4750
|
+
);
|
|
4741
4751
|
},
|
|
4742
4752
|
[env]
|
|
4743
4753
|
);
|
|
@@ -4747,11 +4757,16 @@ function useViewService() {
|
|
|
4747
4757
|
method,
|
|
4748
4758
|
with_context: { token }
|
|
4749
4759
|
};
|
|
4750
|
-
return env?.requests.post(
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4760
|
+
return env?.requests.post(
|
|
4761
|
+
"/call" /* CALL_PATH */,
|
|
4762
|
+
jsonData,
|
|
4763
|
+
{
|
|
4764
|
+
headers: {
|
|
4765
|
+
"Content-Type": "application/json"
|
|
4766
|
+
}
|
|
4767
|
+
},
|
|
4768
|
+
"id"
|
|
4769
|
+
);
|
|
4755
4770
|
},
|
|
4756
4771
|
[env]
|
|
4757
4772
|
);
|
|
@@ -4802,12 +4817,16 @@ function useViewService() {
|
|
|
4802
4817
|
scope
|
|
4803
4818
|
)}`;
|
|
4804
4819
|
const url = `${path}?${queryString}`;
|
|
4805
|
-
return env?.requests.get(
|
|
4806
|
-
|
|
4807
|
-
|
|
4820
|
+
return env?.requests.get(
|
|
4821
|
+
url,
|
|
4822
|
+
{
|
|
4823
|
+
headers: {
|
|
4824
|
+
"Content-Type": "application/json"
|
|
4825
|
+
},
|
|
4826
|
+
withCredentials: true
|
|
4808
4827
|
},
|
|
4809
|
-
|
|
4810
|
-
|
|
4828
|
+
"id"
|
|
4829
|
+
);
|
|
4811
4830
|
},
|
|
4812
4831
|
[env]
|
|
4813
4832
|
);
|
|
@@ -5820,7 +5839,25 @@ function useDashboardService() {
|
|
|
5820
5839
|
},
|
|
5821
5840
|
[env]
|
|
5822
5841
|
);
|
|
5823
|
-
|
|
5842
|
+
const getDataChart = (0, import_react11.useCallback)(
|
|
5843
|
+
async ({
|
|
5844
|
+
service,
|
|
5845
|
+
xNode,
|
|
5846
|
+
body,
|
|
5847
|
+
path
|
|
5848
|
+
}) => {
|
|
5849
|
+
return env.requests.post(
|
|
5850
|
+
path,
|
|
5851
|
+
body,
|
|
5852
|
+
{
|
|
5853
|
+
headers: { "Content-Type": "application/json", "X-Node": xNode }
|
|
5854
|
+
},
|
|
5855
|
+
service
|
|
5856
|
+
);
|
|
5857
|
+
},
|
|
5858
|
+
[env]
|
|
5859
|
+
);
|
|
5860
|
+
return { readGroup, getDataChart };
|
|
5824
5861
|
}
|
|
5825
5862
|
|
|
5826
5863
|
// src/provider/version-gate-provider.tsx
|
|
@@ -8400,6 +8437,24 @@ var useReadGroup = (services, xNode, body, enabled) => {
|
|
|
8400
8437
|
};
|
|
8401
8438
|
var use_read_group_default = useReadGroup;
|
|
8402
8439
|
|
|
8440
|
+
// src/hooks/chart/use-get-data-chart.ts
|
|
8441
|
+
var import_react_query105 = require("@tanstack/react-query");
|
|
8442
|
+
var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
8443
|
+
const { getDataChart } = useDashboardService();
|
|
8444
|
+
return (0, import_react_query105.useQuery)({
|
|
8445
|
+
queryKey: [body],
|
|
8446
|
+
queryFn: () => getDataChart({
|
|
8447
|
+
service: services,
|
|
8448
|
+
xNode,
|
|
8449
|
+
body,
|
|
8450
|
+
path
|
|
8451
|
+
}),
|
|
8452
|
+
refetchOnWindowFocus: false,
|
|
8453
|
+
enabled
|
|
8454
|
+
});
|
|
8455
|
+
};
|
|
8456
|
+
var use_get_data_chart_default = useGetDataChart;
|
|
8457
|
+
|
|
8403
8458
|
// src/provider/service-provider.tsx
|
|
8404
8459
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
8405
8460
|
var ServiceContext = (0, import_react14.createContext)(null);
|
|
@@ -8510,7 +8565,8 @@ var ServiceProvider = ({
|
|
|
8510
8565
|
useSavePinCode: use_save_pin_code_default,
|
|
8511
8566
|
useGetPinCode: use_get_pin_code_default,
|
|
8512
8567
|
useReadGroup: use_read_group_default,
|
|
8513
|
-
useGetNotifications: use_get_notifications_default
|
|
8568
|
+
useGetNotifications: use_get_notifications_default,
|
|
8569
|
+
useGetDataChart: use_get_data_chart_default
|
|
8514
8570
|
};
|
|
8515
8571
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ServiceContext.Provider, { value: services, children });
|
|
8516
8572
|
};
|
package/dist/provider.mjs
CHANGED
|
@@ -4673,12 +4673,17 @@ function useViewService() {
|
|
|
4673
4673
|
client_id,
|
|
4674
4674
|
scopes
|
|
4675
4675
|
};
|
|
4676
|
-
return env?.requests.post(
|
|
4677
|
-
|
|
4678
|
-
|
|
4676
|
+
return env?.requests.post(
|
|
4677
|
+
"/grant-access" /* GRANT_ACCESS */,
|
|
4678
|
+
jsonData,
|
|
4679
|
+
{
|
|
4680
|
+
headers: {
|
|
4681
|
+
"Content-Type": "application/json"
|
|
4682
|
+
},
|
|
4683
|
+
withCredentials: true
|
|
4679
4684
|
},
|
|
4680
|
-
|
|
4681
|
-
|
|
4685
|
+
"id"
|
|
4686
|
+
);
|
|
4682
4687
|
},
|
|
4683
4688
|
[env]
|
|
4684
4689
|
);
|
|
@@ -4690,11 +4695,16 @@ function useViewService() {
|
|
|
4690
4695
|
token
|
|
4691
4696
|
}
|
|
4692
4697
|
};
|
|
4693
|
-
return env?.requests.post(
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
+
return env?.requests.post(
|
|
4699
|
+
"/call" /* CALL_PATH */,
|
|
4700
|
+
jsonData,
|
|
4701
|
+
{
|
|
4702
|
+
headers: {
|
|
4703
|
+
"Content-Type": "application/json"
|
|
4704
|
+
}
|
|
4705
|
+
},
|
|
4706
|
+
"id"
|
|
4707
|
+
);
|
|
4698
4708
|
},
|
|
4699
4709
|
[env]
|
|
4700
4710
|
);
|
|
@@ -4704,11 +4714,16 @@ function useViewService() {
|
|
|
4704
4714
|
method,
|
|
4705
4715
|
with_context: { token }
|
|
4706
4716
|
};
|
|
4707
|
-
return env?.requests.post(
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4717
|
+
return env?.requests.post(
|
|
4718
|
+
"/call" /* CALL_PATH */,
|
|
4719
|
+
jsonData,
|
|
4720
|
+
{
|
|
4721
|
+
headers: {
|
|
4722
|
+
"Content-Type": "application/json"
|
|
4723
|
+
}
|
|
4724
|
+
},
|
|
4725
|
+
"id"
|
|
4726
|
+
);
|
|
4712
4727
|
},
|
|
4713
4728
|
[env]
|
|
4714
4729
|
);
|
|
@@ -4759,12 +4774,16 @@ function useViewService() {
|
|
|
4759
4774
|
scope
|
|
4760
4775
|
)}`;
|
|
4761
4776
|
const url = `${path}?${queryString}`;
|
|
4762
|
-
return env?.requests.get(
|
|
4763
|
-
|
|
4764
|
-
|
|
4777
|
+
return env?.requests.get(
|
|
4778
|
+
url,
|
|
4779
|
+
{
|
|
4780
|
+
headers: {
|
|
4781
|
+
"Content-Type": "application/json"
|
|
4782
|
+
},
|
|
4783
|
+
withCredentials: true
|
|
4765
4784
|
},
|
|
4766
|
-
|
|
4767
|
-
|
|
4785
|
+
"id"
|
|
4786
|
+
);
|
|
4768
4787
|
},
|
|
4769
4788
|
[env]
|
|
4770
4789
|
);
|
|
@@ -5777,7 +5796,25 @@ function useDashboardService() {
|
|
|
5777
5796
|
},
|
|
5778
5797
|
[env]
|
|
5779
5798
|
);
|
|
5780
|
-
|
|
5799
|
+
const getDataChart = useCallback10(
|
|
5800
|
+
async ({
|
|
5801
|
+
service,
|
|
5802
|
+
xNode,
|
|
5803
|
+
body,
|
|
5804
|
+
path
|
|
5805
|
+
}) => {
|
|
5806
|
+
return env.requests.post(
|
|
5807
|
+
path,
|
|
5808
|
+
body,
|
|
5809
|
+
{
|
|
5810
|
+
headers: { "Content-Type": "application/json", "X-Node": xNode }
|
|
5811
|
+
},
|
|
5812
|
+
service
|
|
5813
|
+
);
|
|
5814
|
+
},
|
|
5815
|
+
[env]
|
|
5816
|
+
);
|
|
5817
|
+
return { readGroup, getDataChart };
|
|
5781
5818
|
}
|
|
5782
5819
|
|
|
5783
5820
|
// src/provider/version-gate-provider.tsx
|
|
@@ -8357,6 +8394,24 @@ var useReadGroup = (services, xNode, body, enabled) => {
|
|
|
8357
8394
|
};
|
|
8358
8395
|
var use_read_group_default = useReadGroup;
|
|
8359
8396
|
|
|
8397
|
+
// src/hooks/chart/use-get-data-chart.ts
|
|
8398
|
+
import { useQuery as useQuery26 } from "@tanstack/react-query";
|
|
8399
|
+
var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
8400
|
+
const { getDataChart } = useDashboardService();
|
|
8401
|
+
return useQuery26({
|
|
8402
|
+
queryKey: [body],
|
|
8403
|
+
queryFn: () => getDataChart({
|
|
8404
|
+
service: services,
|
|
8405
|
+
xNode,
|
|
8406
|
+
body,
|
|
8407
|
+
path
|
|
8408
|
+
}),
|
|
8409
|
+
refetchOnWindowFocus: false,
|
|
8410
|
+
enabled
|
|
8411
|
+
});
|
|
8412
|
+
};
|
|
8413
|
+
var use_get_data_chart_default = useGetDataChart;
|
|
8414
|
+
|
|
8360
8415
|
// src/provider/service-provider.tsx
|
|
8361
8416
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
8362
8417
|
var ServiceContext = createContext2(null);
|
|
@@ -8467,7 +8522,8 @@ var ServiceProvider = ({
|
|
|
8467
8522
|
useSavePinCode: use_save_pin_code_default,
|
|
8468
8523
|
useGetPinCode: use_get_pin_code_default,
|
|
8469
8524
|
useReadGroup: use_read_group_default,
|
|
8470
|
-
useGetNotifications: use_get_notifications_default
|
|
8525
|
+
useGetNotifications: use_get_notifications_default,
|
|
8526
|
+
useGetDataChart: use_get_data_chart_default
|
|
8471
8527
|
};
|
|
8472
8528
|
return /* @__PURE__ */ jsx6(ServiceContext.Provider, { value: services, children });
|
|
8473
8529
|
};
|
package/dist/services.d.mts
CHANGED
|
@@ -519,6 +519,12 @@ declare function useDashboardService(): {
|
|
|
519
519
|
xNode?: string;
|
|
520
520
|
body?: any;
|
|
521
521
|
}) => Promise<any>;
|
|
522
|
+
getDataChart: ({ service, xNode, body, path, }: {
|
|
523
|
+
service?: string;
|
|
524
|
+
xNode?: string;
|
|
525
|
+
body?: any;
|
|
526
|
+
path?: string;
|
|
527
|
+
}) => Promise<any>;
|
|
522
528
|
};
|
|
523
529
|
|
|
524
530
|
export { useActionService, useAuthService, useCompanyService, useDashboardService, useExcelService, useFormService, useKanbanService, useModelService, useUserService, useViewService };
|
package/dist/services.d.ts
CHANGED
|
@@ -519,6 +519,12 @@ declare function useDashboardService(): {
|
|
|
519
519
|
xNode?: string;
|
|
520
520
|
body?: any;
|
|
521
521
|
}) => Promise<any>;
|
|
522
|
+
getDataChart: ({ service, xNode, body, path, }: {
|
|
523
|
+
service?: string;
|
|
524
|
+
xNode?: string;
|
|
525
|
+
body?: any;
|
|
526
|
+
path?: string;
|
|
527
|
+
}) => Promise<any>;
|
|
522
528
|
};
|
|
523
529
|
|
|
524
530
|
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);
|
|
@@ -4915,12 +4918,17 @@ function useViewService() {
|
|
|
4915
4918
|
client_id,
|
|
4916
4919
|
scopes
|
|
4917
4920
|
};
|
|
4918
|
-
return env?.requests.post(
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
+
return env?.requests.post(
|
|
4922
|
+
"/grant-access" /* GRANT_ACCESS */,
|
|
4923
|
+
jsonData,
|
|
4924
|
+
{
|
|
4925
|
+
headers: {
|
|
4926
|
+
"Content-Type": "application/json"
|
|
4927
|
+
},
|
|
4928
|
+
withCredentials: true
|
|
4921
4929
|
},
|
|
4922
|
-
|
|
4923
|
-
|
|
4930
|
+
"id"
|
|
4931
|
+
);
|
|
4924
4932
|
},
|
|
4925
4933
|
[env]
|
|
4926
4934
|
);
|
|
@@ -4932,11 +4940,16 @@ function useViewService() {
|
|
|
4932
4940
|
token
|
|
4933
4941
|
}
|
|
4934
4942
|
};
|
|
4935
|
-
return env?.requests.post(
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4943
|
+
return env?.requests.post(
|
|
4944
|
+
"/call" /* CALL_PATH */,
|
|
4945
|
+
jsonData,
|
|
4946
|
+
{
|
|
4947
|
+
headers: {
|
|
4948
|
+
"Content-Type": "application/json"
|
|
4949
|
+
}
|
|
4950
|
+
},
|
|
4951
|
+
"id"
|
|
4952
|
+
);
|
|
4940
4953
|
},
|
|
4941
4954
|
[env]
|
|
4942
4955
|
);
|
|
@@ -4946,11 +4959,16 @@ function useViewService() {
|
|
|
4946
4959
|
method,
|
|
4947
4960
|
with_context: { token }
|
|
4948
4961
|
};
|
|
4949
|
-
return env?.requests.post(
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4962
|
+
return env?.requests.post(
|
|
4963
|
+
"/call" /* CALL_PATH */,
|
|
4964
|
+
jsonData,
|
|
4965
|
+
{
|
|
4966
|
+
headers: {
|
|
4967
|
+
"Content-Type": "application/json"
|
|
4968
|
+
}
|
|
4969
|
+
},
|
|
4970
|
+
"id"
|
|
4971
|
+
);
|
|
4954
4972
|
},
|
|
4955
4973
|
[env]
|
|
4956
4974
|
);
|
|
@@ -5001,12 +5019,16 @@ function useViewService() {
|
|
|
5001
5019
|
scope
|
|
5002
5020
|
)}`;
|
|
5003
5021
|
const url = `${path}?${queryString}`;
|
|
5004
|
-
return env?.requests.get(
|
|
5005
|
-
|
|
5006
|
-
|
|
5022
|
+
return env?.requests.get(
|
|
5023
|
+
url,
|
|
5024
|
+
{
|
|
5025
|
+
headers: {
|
|
5026
|
+
"Content-Type": "application/json"
|
|
5027
|
+
},
|
|
5028
|
+
withCredentials: true
|
|
5007
5029
|
},
|
|
5008
|
-
|
|
5009
|
-
|
|
5030
|
+
"id"
|
|
5031
|
+
);
|
|
5010
5032
|
},
|
|
5011
5033
|
[env]
|
|
5012
5034
|
);
|
|
@@ -6019,7 +6041,25 @@ function useDashboardService() {
|
|
|
6019
6041
|
},
|
|
6020
6042
|
[env]
|
|
6021
6043
|
);
|
|
6022
|
-
|
|
6044
|
+
const getDataChart = (0, import_react15.useCallback)(
|
|
6045
|
+
async ({
|
|
6046
|
+
service,
|
|
6047
|
+
xNode,
|
|
6048
|
+
body,
|
|
6049
|
+
path
|
|
6050
|
+
}) => {
|
|
6051
|
+
return env.requests.post(
|
|
6052
|
+
path,
|
|
6053
|
+
body,
|
|
6054
|
+
{
|
|
6055
|
+
headers: { "Content-Type": "application/json", "X-Node": xNode }
|
|
6056
|
+
},
|
|
6057
|
+
service
|
|
6058
|
+
);
|
|
6059
|
+
},
|
|
6060
|
+
[env]
|
|
6061
|
+
);
|
|
6062
|
+
return { readGroup, getDataChart };
|
|
6023
6063
|
}
|
|
6024
6064
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6025
6065
|
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);
|
|
@@ -4870,12 +4873,17 @@ function useViewService() {
|
|
|
4870
4873
|
client_id,
|
|
4871
4874
|
scopes
|
|
4872
4875
|
};
|
|
4873
|
-
return env?.requests.post(
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
+
return env?.requests.post(
|
|
4877
|
+
"/grant-access" /* GRANT_ACCESS */,
|
|
4878
|
+
jsonData,
|
|
4879
|
+
{
|
|
4880
|
+
headers: {
|
|
4881
|
+
"Content-Type": "application/json"
|
|
4882
|
+
},
|
|
4883
|
+
withCredentials: true
|
|
4876
4884
|
},
|
|
4877
|
-
|
|
4878
|
-
|
|
4885
|
+
"id"
|
|
4886
|
+
);
|
|
4879
4887
|
},
|
|
4880
4888
|
[env]
|
|
4881
4889
|
);
|
|
@@ -4887,11 +4895,16 @@ function useViewService() {
|
|
|
4887
4895
|
token
|
|
4888
4896
|
}
|
|
4889
4897
|
};
|
|
4890
|
-
return env?.requests.post(
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4898
|
+
return env?.requests.post(
|
|
4899
|
+
"/call" /* CALL_PATH */,
|
|
4900
|
+
jsonData,
|
|
4901
|
+
{
|
|
4902
|
+
headers: {
|
|
4903
|
+
"Content-Type": "application/json"
|
|
4904
|
+
}
|
|
4905
|
+
},
|
|
4906
|
+
"id"
|
|
4907
|
+
);
|
|
4895
4908
|
},
|
|
4896
4909
|
[env]
|
|
4897
4910
|
);
|
|
@@ -4901,11 +4914,16 @@ function useViewService() {
|
|
|
4901
4914
|
method,
|
|
4902
4915
|
with_context: { token }
|
|
4903
4916
|
};
|
|
4904
|
-
return env?.requests.post(
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4917
|
+
return env?.requests.post(
|
|
4918
|
+
"/call" /* CALL_PATH */,
|
|
4919
|
+
jsonData,
|
|
4920
|
+
{
|
|
4921
|
+
headers: {
|
|
4922
|
+
"Content-Type": "application/json"
|
|
4923
|
+
}
|
|
4924
|
+
},
|
|
4925
|
+
"id"
|
|
4926
|
+
);
|
|
4909
4927
|
},
|
|
4910
4928
|
[env]
|
|
4911
4929
|
);
|
|
@@ -4956,12 +4974,16 @@ function useViewService() {
|
|
|
4956
4974
|
scope
|
|
4957
4975
|
)}`;
|
|
4958
4976
|
const url = `${path}?${queryString}`;
|
|
4959
|
-
return env?.requests.get(
|
|
4960
|
-
|
|
4961
|
-
|
|
4977
|
+
return env?.requests.get(
|
|
4978
|
+
url,
|
|
4979
|
+
{
|
|
4980
|
+
headers: {
|
|
4981
|
+
"Content-Type": "application/json"
|
|
4982
|
+
},
|
|
4983
|
+
withCredentials: true
|
|
4962
4984
|
},
|
|
4963
|
-
|
|
4964
|
-
|
|
4985
|
+
"id"
|
|
4986
|
+
);
|
|
4965
4987
|
},
|
|
4966
4988
|
[env]
|
|
4967
4989
|
);
|
|
@@ -5974,7 +5996,25 @@ function useDashboardService() {
|
|
|
5974
5996
|
},
|
|
5975
5997
|
[env]
|
|
5976
5998
|
);
|
|
5977
|
-
|
|
5999
|
+
const getDataChart = useCallback11(
|
|
6000
|
+
async ({
|
|
6001
|
+
service,
|
|
6002
|
+
xNode,
|
|
6003
|
+
body,
|
|
6004
|
+
path
|
|
6005
|
+
}) => {
|
|
6006
|
+
return env.requests.post(
|
|
6007
|
+
path,
|
|
6008
|
+
body,
|
|
6009
|
+
{
|
|
6010
|
+
headers: { "Content-Type": "application/json", "X-Node": xNode }
|
|
6011
|
+
},
|
|
6012
|
+
service
|
|
6013
|
+
);
|
|
6014
|
+
},
|
|
6015
|
+
[env]
|
|
6016
|
+
);
|
|
6017
|
+
return { readGroup, getDataChart };
|
|
5978
6018
|
}
|
|
5979
6019
|
export {
|
|
5980
6020
|
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.4",
|
|
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
|
+
}
|