@fctc/interface-logic 3.7.4 → 3.7.6
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 +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +19 -4
- package/dist/hooks.mjs +19 -4
- package/dist/provider.js +19 -4
- package/dist/provider.mjs +19 -4
- package/dist/services.d.mts +2 -1
- package/dist/services.d.ts +2 -1
- package/dist/services.js +16 -2
- package/dist/services.mjs +16 -2
- package/package.json +1 -1
package/dist/hooks.d.mts
CHANGED
|
@@ -669,6 +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
|
-
declare const useGetDataChart: (services?: string, xNode?: any, body?: any, enabled?: boolean, path?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
672
|
+
declare const useGetDataChart: (services?: string, xNode?: any, body?: any, enabled?: boolean, path?: string, method?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
673
673
|
|
|
674
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,6 +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
|
-
declare const useGetDataChart: (services?: string, xNode?: any, body?: any, enabled?: boolean, path?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
672
|
+
declare const useGetDataChart: (services?: string, xNode?: any, body?: any, enabled?: boolean, path?: string, method?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
673
673
|
|
|
674
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
|
@@ -5855,13 +5855,27 @@ function useDashboardService() {
|
|
|
5855
5855
|
service,
|
|
5856
5856
|
xNode,
|
|
5857
5857
|
body,
|
|
5858
|
-
path
|
|
5858
|
+
path,
|
|
5859
|
+
method = "POST"
|
|
5859
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
|
+
}
|
|
5860
5874
|
return env.requests.post(
|
|
5861
5875
|
path,
|
|
5862
5876
|
body,
|
|
5863
5877
|
{
|
|
5864
|
-
headers
|
|
5878
|
+
headers
|
|
5865
5879
|
},
|
|
5866
5880
|
service
|
|
5867
5881
|
);
|
|
@@ -8060,7 +8074,7 @@ var use_read_group_default = useReadGroup;
|
|
|
8060
8074
|
|
|
8061
8075
|
// src/hooks/chart/use-get-data-chart.ts
|
|
8062
8076
|
var import_react_query105 = require("@tanstack/react-query");
|
|
8063
|
-
var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
8077
|
+
var useGetDataChart = (services, xNode, body, enabled, path, method) => {
|
|
8064
8078
|
const { getDataChart } = useDashboardService();
|
|
8065
8079
|
return (0, import_react_query105.useQuery)({
|
|
8066
8080
|
queryKey: [body],
|
|
@@ -8068,7 +8082,8 @@ var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
|
8068
8082
|
service: services,
|
|
8069
8083
|
xNode,
|
|
8070
8084
|
body,
|
|
8071
|
-
path
|
|
8085
|
+
path,
|
|
8086
|
+
method
|
|
8072
8087
|
}),
|
|
8073
8088
|
refetchOnWindowFocus: false,
|
|
8074
8089
|
enabled
|
package/dist/hooks.mjs
CHANGED
|
@@ -5715,13 +5715,27 @@ function useDashboardService() {
|
|
|
5715
5715
|
service,
|
|
5716
5716
|
xNode,
|
|
5717
5717
|
body,
|
|
5718
|
-
path
|
|
5718
|
+
path,
|
|
5719
|
+
method = "POST"
|
|
5719
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
|
+
}
|
|
5720
5734
|
return env.requests.post(
|
|
5721
5735
|
path,
|
|
5722
5736
|
body,
|
|
5723
5737
|
{
|
|
5724
|
-
headers
|
|
5738
|
+
headers
|
|
5725
5739
|
},
|
|
5726
5740
|
service
|
|
5727
5741
|
);
|
|
@@ -7920,7 +7934,7 @@ var use_read_group_default = useReadGroup;
|
|
|
7920
7934
|
|
|
7921
7935
|
// src/hooks/chart/use-get-data-chart.ts
|
|
7922
7936
|
import { useQuery as useQuery26 } from "@tanstack/react-query";
|
|
7923
|
-
var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
7937
|
+
var useGetDataChart = (services, xNode, body, enabled, path, method) => {
|
|
7924
7938
|
const { getDataChart } = useDashboardService();
|
|
7925
7939
|
return useQuery26({
|
|
7926
7940
|
queryKey: [body],
|
|
@@ -7928,7 +7942,8 @@ var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
|
7928
7942
|
service: services,
|
|
7929
7943
|
xNode,
|
|
7930
7944
|
body,
|
|
7931
|
-
path
|
|
7945
|
+
path,
|
|
7946
|
+
method
|
|
7932
7947
|
}),
|
|
7933
7948
|
refetchOnWindowFocus: false,
|
|
7934
7949
|
enabled
|
package/dist/provider.js
CHANGED
|
@@ -5844,13 +5844,27 @@ function useDashboardService() {
|
|
|
5844
5844
|
service,
|
|
5845
5845
|
xNode,
|
|
5846
5846
|
body,
|
|
5847
|
-
path
|
|
5847
|
+
path,
|
|
5848
|
+
method = "POST"
|
|
5848
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
|
+
}
|
|
5849
5863
|
return env.requests.post(
|
|
5850
5864
|
path,
|
|
5851
5865
|
body,
|
|
5852
5866
|
{
|
|
5853
|
-
headers
|
|
5867
|
+
headers
|
|
5854
5868
|
},
|
|
5855
5869
|
service
|
|
5856
5870
|
);
|
|
@@ -8439,7 +8453,7 @@ var use_read_group_default = useReadGroup;
|
|
|
8439
8453
|
|
|
8440
8454
|
// src/hooks/chart/use-get-data-chart.ts
|
|
8441
8455
|
var import_react_query105 = require("@tanstack/react-query");
|
|
8442
|
-
var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
8456
|
+
var useGetDataChart = (services, xNode, body, enabled, path, method) => {
|
|
8443
8457
|
const { getDataChart } = useDashboardService();
|
|
8444
8458
|
return (0, import_react_query105.useQuery)({
|
|
8445
8459
|
queryKey: [body],
|
|
@@ -8447,7 +8461,8 @@ var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
|
8447
8461
|
service: services,
|
|
8448
8462
|
xNode,
|
|
8449
8463
|
body,
|
|
8450
|
-
path
|
|
8464
|
+
path,
|
|
8465
|
+
method
|
|
8451
8466
|
}),
|
|
8452
8467
|
refetchOnWindowFocus: false,
|
|
8453
8468
|
enabled
|
package/dist/provider.mjs
CHANGED
|
@@ -5801,13 +5801,27 @@ function useDashboardService() {
|
|
|
5801
5801
|
service,
|
|
5802
5802
|
xNode,
|
|
5803
5803
|
body,
|
|
5804
|
-
path
|
|
5804
|
+
path,
|
|
5805
|
+
method = "POST"
|
|
5805
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
|
+
}
|
|
5806
5820
|
return env.requests.post(
|
|
5807
5821
|
path,
|
|
5808
5822
|
body,
|
|
5809
5823
|
{
|
|
5810
|
-
headers
|
|
5824
|
+
headers
|
|
5811
5825
|
},
|
|
5812
5826
|
service
|
|
5813
5827
|
);
|
|
@@ -8396,7 +8410,7 @@ var use_read_group_default = useReadGroup;
|
|
|
8396
8410
|
|
|
8397
8411
|
// src/hooks/chart/use-get-data-chart.ts
|
|
8398
8412
|
import { useQuery as useQuery26 } from "@tanstack/react-query";
|
|
8399
|
-
var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
8413
|
+
var useGetDataChart = (services, xNode, body, enabled, path, method) => {
|
|
8400
8414
|
const { getDataChart } = useDashboardService();
|
|
8401
8415
|
return useQuery26({
|
|
8402
8416
|
queryKey: [body],
|
|
@@ -8404,7 +8418,8 @@ var useGetDataChart = (services, xNode, body, enabled, path) => {
|
|
|
8404
8418
|
service: services,
|
|
8405
8419
|
xNode,
|
|
8406
8420
|
body,
|
|
8407
|
-
path
|
|
8421
|
+
path,
|
|
8422
|
+
method
|
|
8408
8423
|
}),
|
|
8409
8424
|
refetchOnWindowFocus: false,
|
|
8410
8425
|
enabled
|
package/dist/services.d.mts
CHANGED
|
@@ -519,11 +519,12 @@ declare function useDashboardService(): {
|
|
|
519
519
|
xNode?: string;
|
|
520
520
|
body?: any;
|
|
521
521
|
}) => Promise<any>;
|
|
522
|
-
getDataChart: ({ service, xNode, body, path, }: {
|
|
522
|
+
getDataChart: ({ service, xNode, body, path, method, }: {
|
|
523
523
|
service?: string;
|
|
524
524
|
xNode?: string;
|
|
525
525
|
body?: any;
|
|
526
526
|
path?: string;
|
|
527
|
+
method?: string;
|
|
527
528
|
}) => Promise<any>;
|
|
528
529
|
};
|
|
529
530
|
|
package/dist/services.d.ts
CHANGED
|
@@ -519,11 +519,12 @@ declare function useDashboardService(): {
|
|
|
519
519
|
xNode?: string;
|
|
520
520
|
body?: any;
|
|
521
521
|
}) => Promise<any>;
|
|
522
|
-
getDataChart: ({ service, xNode, body, path, }: {
|
|
522
|
+
getDataChart: ({ service, xNode, body, path, method, }: {
|
|
523
523
|
service?: string;
|
|
524
524
|
xNode?: string;
|
|
525
525
|
body?: any;
|
|
526
526
|
path?: string;
|
|
527
|
+
method?: string;
|
|
527
528
|
}) => Promise<any>;
|
|
528
529
|
};
|
|
529
530
|
|
package/dist/services.js
CHANGED
|
@@ -6046,13 +6046,27 @@ function useDashboardService() {
|
|
|
6046
6046
|
service,
|
|
6047
6047
|
xNode,
|
|
6048
6048
|
body,
|
|
6049
|
-
path
|
|
6049
|
+
path,
|
|
6050
|
+
method = "POST"
|
|
6050
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
|
+
}
|
|
6051
6065
|
return env.requests.post(
|
|
6052
6066
|
path,
|
|
6053
6067
|
body,
|
|
6054
6068
|
{
|
|
6055
|
-
headers
|
|
6069
|
+
headers
|
|
6056
6070
|
},
|
|
6057
6071
|
service
|
|
6058
6072
|
);
|
package/dist/services.mjs
CHANGED
|
@@ -6001,13 +6001,27 @@ function useDashboardService() {
|
|
|
6001
6001
|
service,
|
|
6002
6002
|
xNode,
|
|
6003
6003
|
body,
|
|
6004
|
-
path
|
|
6004
|
+
path,
|
|
6005
|
+
method = "POST"
|
|
6005
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
|
+
}
|
|
6006
6020
|
return env.requests.post(
|
|
6007
6021
|
path,
|
|
6008
6022
|
body,
|
|
6009
6023
|
{
|
|
6010
|
-
headers
|
|
6024
|
+
headers
|
|
6011
6025
|
},
|
|
6012
6026
|
service
|
|
6013
6027
|
);
|