@fctc/interface-logic 2.5.7 → 2.5.9
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 +40 -2
- package/dist/hooks.d.ts +40 -2
- package/dist/hooks.js +302 -4
- package/dist/hooks.mjs +297 -4
- package/dist/provider.d.mts +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +189 -2
- package/dist/provider.mjs +189 -2
- package/dist/services.d.mts +33 -0
- package/dist/services.d.ts +33 -0
- package/dist/services.js +189 -2
- package/dist/services.mjs +189 -2
- package/dist/{use-verify-totp-BLzI9aQL.d.mts → use-verify-totp-lA66gl-D.d.mts} +1 -1
- package/dist/{use-verify-totp-lH2HZdt4.d.ts → use-verify-totp-wSSlNI9w.d.ts} +1 -1
- package/package.json +1 -1
package/dist/services.mjs
CHANGED
|
@@ -3006,7 +3006,7 @@ import { useMutation as useMutation46 } from "@tanstack/react-query";
|
|
|
3006
3006
|
// src/hooks/view/use-verify-totp.ts
|
|
3007
3007
|
import { useMutation as useMutation47 } from "@tanstack/react-query";
|
|
3008
3008
|
|
|
3009
|
-
// src/hooks/view/use-a-session.ts
|
|
3009
|
+
// src/hooks/view/use-get-a-session.ts
|
|
3010
3010
|
import { useMutation as useMutation48 } from "@tanstack/react-query";
|
|
3011
3011
|
|
|
3012
3012
|
// src/hooks/view/use-update-closed-session.ts
|
|
@@ -3021,6 +3021,21 @@ import { useMutation as useMutation51 } from "@tanstack/react-query";
|
|
|
3021
3021
|
// src/hooks/view/use-create-session.ts
|
|
3022
3022
|
import { useMutation as useMutation52 } from "@tanstack/react-query";
|
|
3023
3023
|
|
|
3024
|
+
// src/hooks/view/use-get-pos.ts
|
|
3025
|
+
import { useMutation as useMutation53 } from "@tanstack/react-query";
|
|
3026
|
+
|
|
3027
|
+
// src/hooks/view/use-create-entity.ts
|
|
3028
|
+
import { useMutation as useMutation54 } from "@tanstack/react-query";
|
|
3029
|
+
|
|
3030
|
+
// src/hooks/view/use-get-list.ts
|
|
3031
|
+
import { useMutation as useMutation55 } from "@tanstack/react-query";
|
|
3032
|
+
|
|
3033
|
+
// src/hooks/view/use-update-entity.ts
|
|
3034
|
+
import { useMutation as useMutation56 } from "@tanstack/react-query";
|
|
3035
|
+
|
|
3036
|
+
// src/hooks/view/use-delete-entity.ts
|
|
3037
|
+
import { useMutation as useMutation57 } from "@tanstack/react-query";
|
|
3038
|
+
|
|
3024
3039
|
// src/provider/service-provider.tsx
|
|
3025
3040
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
3026
3041
|
var ServiceContext = createContext2(null);
|
|
@@ -4813,6 +4828,173 @@ function useViewService() {
|
|
|
4813
4828
|
},
|
|
4814
4829
|
[env]
|
|
4815
4830
|
);
|
|
4831
|
+
const getPOS = useCallback10(
|
|
4832
|
+
({
|
|
4833
|
+
model,
|
|
4834
|
+
args,
|
|
4835
|
+
domain,
|
|
4836
|
+
xNode,
|
|
4837
|
+
service
|
|
4838
|
+
}) => {
|
|
4839
|
+
const jsonData = {
|
|
4840
|
+
model,
|
|
4841
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4842
|
+
args,
|
|
4843
|
+
kwargs: {
|
|
4844
|
+
domain: [domain],
|
|
4845
|
+
specification: {
|
|
4846
|
+
cash_control: {},
|
|
4847
|
+
current_session_id: {
|
|
4848
|
+
fields: {
|
|
4849
|
+
display_name: {}
|
|
4850
|
+
}
|
|
4851
|
+
},
|
|
4852
|
+
current_session_state: {},
|
|
4853
|
+
pos_session_state: {},
|
|
4854
|
+
pos_session_duration: {},
|
|
4855
|
+
currency_id: {
|
|
4856
|
+
fields: {
|
|
4857
|
+
display_name: {}
|
|
4858
|
+
}
|
|
4859
|
+
},
|
|
4860
|
+
name: {},
|
|
4861
|
+
pos_session_username: {},
|
|
4862
|
+
last_session_closing_date: {},
|
|
4863
|
+
last_session_closing_cash: {},
|
|
4864
|
+
number_of_rescue_session: {},
|
|
4865
|
+
current_user_id: {
|
|
4866
|
+
fields: {
|
|
4867
|
+
display_name: {}
|
|
4868
|
+
}
|
|
4869
|
+
},
|
|
4870
|
+
customer_display_type: {},
|
|
4871
|
+
module_pos_restaurant: {}
|
|
4872
|
+
}
|
|
4873
|
+
}
|
|
4874
|
+
};
|
|
4875
|
+
return env?.requests.post(
|
|
4876
|
+
"/call" /* CALL_PATH */,
|
|
4877
|
+
jsonData,
|
|
4878
|
+
{
|
|
4879
|
+
headers: {
|
|
4880
|
+
"Content-Type": "application/json",
|
|
4881
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4882
|
+
}
|
|
4883
|
+
},
|
|
4884
|
+
service
|
|
4885
|
+
);
|
|
4886
|
+
},
|
|
4887
|
+
[env]
|
|
4888
|
+
);
|
|
4889
|
+
const createEntity = useCallback10(
|
|
4890
|
+
({
|
|
4891
|
+
model,
|
|
4892
|
+
args,
|
|
4893
|
+
xNode,
|
|
4894
|
+
service
|
|
4895
|
+
}) => {
|
|
4896
|
+
const jsonData = {
|
|
4897
|
+
model,
|
|
4898
|
+
method: "create" /* CREATE */,
|
|
4899
|
+
args
|
|
4900
|
+
};
|
|
4901
|
+
return env?.requests.post(
|
|
4902
|
+
"/call" /* CALL_PATH */,
|
|
4903
|
+
jsonData,
|
|
4904
|
+
{
|
|
4905
|
+
headers: {
|
|
4906
|
+
"Content-Type": "application/json",
|
|
4907
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4908
|
+
}
|
|
4909
|
+
},
|
|
4910
|
+
service
|
|
4911
|
+
);
|
|
4912
|
+
},
|
|
4913
|
+
[env]
|
|
4914
|
+
);
|
|
4915
|
+
const getList = useCallback10(
|
|
4916
|
+
({
|
|
4917
|
+
model,
|
|
4918
|
+
domain,
|
|
4919
|
+
xNode,
|
|
4920
|
+
service,
|
|
4921
|
+
specification
|
|
4922
|
+
}) => {
|
|
4923
|
+
const jsonData = {
|
|
4924
|
+
model,
|
|
4925
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4926
|
+
kwargs: {
|
|
4927
|
+
domain,
|
|
4928
|
+
specification
|
|
4929
|
+
}
|
|
4930
|
+
};
|
|
4931
|
+
return env?.requests.post(
|
|
4932
|
+
"/call" /* CALL_PATH */,
|
|
4933
|
+
jsonData,
|
|
4934
|
+
{
|
|
4935
|
+
headers: {
|
|
4936
|
+
"Content-Type": "application/json",
|
|
4937
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4938
|
+
}
|
|
4939
|
+
},
|
|
4940
|
+
service
|
|
4941
|
+
);
|
|
4942
|
+
},
|
|
4943
|
+
[env]
|
|
4944
|
+
);
|
|
4945
|
+
const updateEntity = useCallback10(
|
|
4946
|
+
({
|
|
4947
|
+
model,
|
|
4948
|
+
domain,
|
|
4949
|
+
values,
|
|
4950
|
+
xNode,
|
|
4951
|
+
service
|
|
4952
|
+
}) => {
|
|
4953
|
+
const jsonData = {
|
|
4954
|
+
model,
|
|
4955
|
+
domain,
|
|
4956
|
+
values
|
|
4957
|
+
};
|
|
4958
|
+
return env?.requests.post(
|
|
4959
|
+
"/create_update" /* CREATE_UPDATE */,
|
|
4960
|
+
jsonData,
|
|
4961
|
+
{
|
|
4962
|
+
headers: {
|
|
4963
|
+
"Content-Type": "application/json",
|
|
4964
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4965
|
+
}
|
|
4966
|
+
},
|
|
4967
|
+
service
|
|
4968
|
+
);
|
|
4969
|
+
},
|
|
4970
|
+
[env]
|
|
4971
|
+
);
|
|
4972
|
+
const deleteEntity = useCallback10(
|
|
4973
|
+
({
|
|
4974
|
+
model,
|
|
4975
|
+
ids,
|
|
4976
|
+
xNode,
|
|
4977
|
+
service
|
|
4978
|
+
}) => {
|
|
4979
|
+
const jsonData = {
|
|
4980
|
+
model,
|
|
4981
|
+
ids,
|
|
4982
|
+
method: "unlink" /* UNLINK */
|
|
4983
|
+
};
|
|
4984
|
+
return env?.requests.post(
|
|
4985
|
+
"/call" /* CALL_PATH */,
|
|
4986
|
+
jsonData,
|
|
4987
|
+
{
|
|
4988
|
+
headers: {
|
|
4989
|
+
"Content-Type": "application/json",
|
|
4990
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4991
|
+
}
|
|
4992
|
+
},
|
|
4993
|
+
service
|
|
4994
|
+
);
|
|
4995
|
+
},
|
|
4996
|
+
[env]
|
|
4997
|
+
);
|
|
4816
4998
|
return {
|
|
4817
4999
|
getView,
|
|
4818
5000
|
getMenu,
|
|
@@ -4833,7 +5015,12 @@ function useViewService() {
|
|
|
4833
5015
|
updateClosedSession,
|
|
4834
5016
|
manageSession,
|
|
4835
5017
|
handleClosingSession,
|
|
4836
|
-
createSession
|
|
5018
|
+
createSession,
|
|
5019
|
+
getPOS,
|
|
5020
|
+
createEntity,
|
|
5021
|
+
getList,
|
|
5022
|
+
updateEntity,
|
|
5023
|
+
deleteEntity
|
|
4837
5024
|
};
|
|
4838
5025
|
}
|
|
4839
5026
|
export {
|
|
@@ -371,4 +371,4 @@ declare const useVerifyTotp: () => _tanstack_react_query.UseMutationResult<unkno
|
|
|
371
371
|
code: string;
|
|
372
372
|
}, unknown>;
|
|
373
373
|
|
|
374
|
-
export {
|
|
374
|
+
export { useGetResequence as $, useGetImage as A, useSendComment as B, useUploadImage as C, useDelete as D, useGetAll as E, useGetConversionRate as F, useGetCurrency as G, useGetDetail as H, useGetFieldOnChange as I, useGetListMyBankAccount as J, useModel as K, useOdooDataTransform as L, useOnChangeForm as M, useSave as N, useGetProfile as O, useGetUser as P, useSwitchLocale as Q, useButton as R, useDuplicateRecord as S, useGet2FAMethods as T, useGetActionDetail as U, useGetCalendar as V, useGetGroups as W, useGetListData as X, useGetMenu as Y, useGetPrintReport as Z, useGetProGressBar as _, useForgotPasswordSSO as a, useGetSelection as a0, useGetView as a1, useLoadAction as a2, useLoadMessage as a3, usePrint as a4, useRemoveRow as a5, useRunAction as a6, useSignInSSO as a7, useVerify2FA as a8, useGrantAccess as a9, useRemoveTotpSetup as aa, useRequestSetupTotp as ab, useSettingsWebRead2fa as ac, useVerifyTotp as ad, useUploadFile as ae, useGetProvider as b, useIsValidToken as c, useLoginCredential as d, useLoginSocial as e, useResetPassword as f, useResetPasswordSSO as g, useUpdatePassword as h, useLogout as i, useGetAccessByCode as j, useValidateActionToken as k, useGetCompanyInfo as l, useGetCurrentCompany as m, useGetListCompany as n, useExecuteImport as o, useExportExcel as p, useGetFieldExport as q, useGetFileExcel as r, useParsePreview as s, useUploadFileExcel as t, useForgotPassword as u, useUploadIdFile as v, useChangeStatus as w, useDeleteComment as x, useGetComment as y, useGetFormView as z };
|
|
@@ -371,4 +371,4 @@ declare const useVerifyTotp: () => _tanstack_react_query.UseMutationResult<unkno
|
|
|
371
371
|
code: string;
|
|
372
372
|
}, unknown>;
|
|
373
373
|
|
|
374
|
-
export {
|
|
374
|
+
export { useGetResequence as $, useGetImage as A, useSendComment as B, useUploadImage as C, useDelete as D, useGetAll as E, useGetConversionRate as F, useGetCurrency as G, useGetDetail as H, useGetFieldOnChange as I, useGetListMyBankAccount as J, useModel as K, useOdooDataTransform as L, useOnChangeForm as M, useSave as N, useGetProfile as O, useGetUser as P, useSwitchLocale as Q, useButton as R, useDuplicateRecord as S, useGet2FAMethods as T, useGetActionDetail as U, useGetCalendar as V, useGetGroups as W, useGetListData as X, useGetMenu as Y, useGetPrintReport as Z, useGetProGressBar as _, useForgotPasswordSSO as a, useGetSelection as a0, useGetView as a1, useLoadAction as a2, useLoadMessage as a3, usePrint as a4, useRemoveRow as a5, useRunAction as a6, useSignInSSO as a7, useVerify2FA as a8, useGrantAccess as a9, useRemoveTotpSetup as aa, useRequestSetupTotp as ab, useSettingsWebRead2fa as ac, useVerifyTotp as ad, useUploadFile as ae, useGetProvider as b, useIsValidToken as c, useLoginCredential as d, useLoginSocial as e, useResetPassword as f, useResetPasswordSSO as g, useUpdatePassword as h, useLogout as i, useGetAccessByCode as j, useValidateActionToken as k, useGetCompanyInfo as l, useGetCurrentCompany as m, useGetListCompany as n, useExecuteImport as o, useExportExcel as p, useGetFieldExport as q, useGetFileExcel as r, useParsePreview as s, useUploadFileExcel as t, useForgotPassword as u, useUploadIdFile as v, useChangeStatus as w, useDeleteComment as x, useGetComment as y, useGetFormView as z };
|