@fctc/interface-logic 2.5.6 → 2.5.8
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/constants.d.mts +4 -2
- package/dist/constants.d.ts +4 -2
- package/dist/constants.js +2 -0
- package/dist/constants.mjs +2 -0
- package/dist/hooks.d.mts +46 -348
- package/dist/hooks.d.ts +46 -348
- package/dist/hooks.js +494 -1
- package/dist/hooks.mjs +486 -1
- package/dist/provider.d.mts +8 -7
- package/dist/provider.d.ts +8 -7
- package/dist/provider.js +308 -1
- package/dist/provider.mjs +308 -1
- package/dist/services.d.mts +57 -0
- package/dist/services.d.ts +57 -0
- package/dist/services.js +308 -1
- package/dist/services.mjs +308 -1
- package/dist/use-verify-totp-lA66gl-D.d.mts +374 -0
- package/dist/use-verify-totp-wSSlNI9w.d.ts +374 -0
- package/package.json +90 -90
package/dist/hooks.js
CHANGED
|
@@ -32,6 +32,8 @@ var hooks_exports = {};
|
|
|
32
32
|
__export(hooks_exports, {
|
|
33
33
|
useButton: () => use_button_default,
|
|
34
34
|
useChangeStatus: () => use_change_status_default,
|
|
35
|
+
useCreateEntity: () => use_create_entity_default,
|
|
36
|
+
useCreateSession: () => use_create_session_default,
|
|
35
37
|
useDelete: () => use_delete_default,
|
|
36
38
|
useDeleteComment: () => use_delete_comment_default,
|
|
37
39
|
useDuplicateRecord: () => use_duplicate_record_default,
|
|
@@ -40,6 +42,7 @@ __export(hooks_exports, {
|
|
|
40
42
|
useForgotPassword: () => use_forgot_password_default,
|
|
41
43
|
useForgotPasswordSSO: () => use_forgotpassword_sso_default,
|
|
42
44
|
useGet2FAMethods: () => uset_get_2FA_method_default,
|
|
45
|
+
useGetASession: () => use_a_session_default,
|
|
43
46
|
useGetAccessByCode: () => use_get_access_by_code_default,
|
|
44
47
|
useGetActionDetail: () => use_get_action_detail_default,
|
|
45
48
|
useGetAll: () => use_get_all_default,
|
|
@@ -56,10 +59,12 @@ __export(hooks_exports, {
|
|
|
56
59
|
useGetFormView: () => use_get_form_view_default,
|
|
57
60
|
useGetGroups: () => use_get_groups_default,
|
|
58
61
|
useGetImage: () => use_get_image_default,
|
|
62
|
+
useGetList: () => use_get_list_default,
|
|
59
63
|
useGetListCompany: () => use_get_list_company_default,
|
|
60
64
|
useGetListData: () => use_get_list_data_default,
|
|
61
65
|
useGetListMyBankAccount: () => use_get_list_my_bank_account_default,
|
|
62
66
|
useGetMenu: () => use_get_menu_default,
|
|
67
|
+
useGetPos: () => use_get_pos_default,
|
|
63
68
|
useGetPrintReport: () => use_get_print_report_default,
|
|
64
69
|
useGetProGressBar: () => use_get_progress_bar_default,
|
|
65
70
|
useGetProfile: () => use_get_profile_default,
|
|
@@ -69,12 +74,14 @@ __export(hooks_exports, {
|
|
|
69
74
|
useGetUser: () => use_get_user_default,
|
|
70
75
|
useGetView: () => use_get_view_default,
|
|
71
76
|
useGrantAccess: () => use_grant_access_default,
|
|
77
|
+
useHandleClosingSession: () => use_handle_closing_session_default,
|
|
72
78
|
useIsValidToken: () => use_isvalid_token_default,
|
|
73
79
|
useLoadAction: () => use_load_action_default,
|
|
74
80
|
useLoadMessage: () => use_load_message_default,
|
|
75
81
|
useLoginCredential: () => use_login_credential_default,
|
|
76
82
|
useLoginSocial: () => use_login_socical_default,
|
|
77
83
|
useLogout: () => use_logout_default,
|
|
84
|
+
useManageSession: () => use_manage_session_default,
|
|
78
85
|
useModel: () => use_model_default,
|
|
79
86
|
useOdooDataTransform: () => use_odoo_data_transform_default,
|
|
80
87
|
useOnChangeForm: () => use_onchange_form_default,
|
|
@@ -91,6 +98,7 @@ __export(hooks_exports, {
|
|
|
91
98
|
useSettingsWebRead2fa: () => use_settings_web_read_2fa_default,
|
|
92
99
|
useSignInSSO: () => use_signin_sso_default,
|
|
93
100
|
useSwitchLocale: () => use_switch_locale_default,
|
|
101
|
+
useUpdateClosedSession: () => use_update_closed_session_default,
|
|
94
102
|
useUpdatePassword: () => use_update_password_default,
|
|
95
103
|
useUploadFile: () => use_upload_file_default,
|
|
96
104
|
useUploadFileExcel: () => use_upload_file_excel_default,
|
|
@@ -137,6 +145,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
137
145
|
UriConstants2["GRANT_ACCESS"] = "/grant-access";
|
|
138
146
|
UriConstants2["TOKEN_BY_CODE"] = "/token";
|
|
139
147
|
UriConstants2["LOGOUT"] = "/logout";
|
|
148
|
+
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
140
149
|
return UriConstants2;
|
|
141
150
|
})(UriConstants || {});
|
|
142
151
|
|
|
@@ -4563,6 +4572,280 @@ function useViewService() {
|
|
|
4563
4572
|
},
|
|
4564
4573
|
[env]
|
|
4565
4574
|
);
|
|
4575
|
+
const getASession = (0, import_react14.useCallback)(
|
|
4576
|
+
async ({
|
|
4577
|
+
model,
|
|
4578
|
+
args,
|
|
4579
|
+
domain,
|
|
4580
|
+
service,
|
|
4581
|
+
xNode
|
|
4582
|
+
}) => {
|
|
4583
|
+
const jsonData = {
|
|
4584
|
+
model,
|
|
4585
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4586
|
+
args,
|
|
4587
|
+
kwargs: {
|
|
4588
|
+
domain: [domain],
|
|
4589
|
+
specification: {
|
|
4590
|
+
name: {},
|
|
4591
|
+
user_id: {},
|
|
4592
|
+
config_id: {},
|
|
4593
|
+
start_at: {},
|
|
4594
|
+
stop_at: {},
|
|
4595
|
+
sequence_number: {},
|
|
4596
|
+
login_number: {},
|
|
4597
|
+
payment_method_ids: {},
|
|
4598
|
+
state: {},
|
|
4599
|
+
update_stock_at_closing: {},
|
|
4600
|
+
cash_register_balance_start: {}
|
|
4601
|
+
}
|
|
4602
|
+
}
|
|
4603
|
+
};
|
|
4604
|
+
return env?.requests.post(
|
|
4605
|
+
"/call" /* CALL_PATH */,
|
|
4606
|
+
jsonData,
|
|
4607
|
+
{
|
|
4608
|
+
headers: {
|
|
4609
|
+
"Content-Type": "application/json",
|
|
4610
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4611
|
+
}
|
|
4612
|
+
},
|
|
4613
|
+
service
|
|
4614
|
+
);
|
|
4615
|
+
},
|
|
4616
|
+
[env]
|
|
4617
|
+
);
|
|
4618
|
+
const updateClosedSession = (0, import_react14.useCallback)(
|
|
4619
|
+
({
|
|
4620
|
+
model,
|
|
4621
|
+
domain,
|
|
4622
|
+
values,
|
|
4623
|
+
service,
|
|
4624
|
+
xNode
|
|
4625
|
+
}) => {
|
|
4626
|
+
const jsonData = {
|
|
4627
|
+
model,
|
|
4628
|
+
domain,
|
|
4629
|
+
values
|
|
4630
|
+
};
|
|
4631
|
+
return env?.requests.post(
|
|
4632
|
+
"/create_update" /* CREATE_UPDATE */,
|
|
4633
|
+
jsonData,
|
|
4634
|
+
{
|
|
4635
|
+
headers: {
|
|
4636
|
+
"Content-Type": "application/json",
|
|
4637
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4638
|
+
}
|
|
4639
|
+
},
|
|
4640
|
+
service
|
|
4641
|
+
);
|
|
4642
|
+
},
|
|
4643
|
+
[env]
|
|
4644
|
+
);
|
|
4645
|
+
const manageSession = (0, import_react14.useCallback)(
|
|
4646
|
+
({
|
|
4647
|
+
model,
|
|
4648
|
+
method,
|
|
4649
|
+
ids,
|
|
4650
|
+
args,
|
|
4651
|
+
kwargs,
|
|
4652
|
+
xNode,
|
|
4653
|
+
service
|
|
4654
|
+
}) => {
|
|
4655
|
+
const jsonData = {
|
|
4656
|
+
model,
|
|
4657
|
+
method,
|
|
4658
|
+
ids,
|
|
4659
|
+
args,
|
|
4660
|
+
kwargs
|
|
4661
|
+
};
|
|
4662
|
+
return env?.requests.post(
|
|
4663
|
+
"/call" /* CALL_PATH */,
|
|
4664
|
+
jsonData,
|
|
4665
|
+
{
|
|
4666
|
+
headers: {
|
|
4667
|
+
"Content-Type": "application/json",
|
|
4668
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4669
|
+
}
|
|
4670
|
+
},
|
|
4671
|
+
service
|
|
4672
|
+
);
|
|
4673
|
+
},
|
|
4674
|
+
[env]
|
|
4675
|
+
);
|
|
4676
|
+
const handleClosingSession = (0, import_react14.useCallback)(
|
|
4677
|
+
({
|
|
4678
|
+
model,
|
|
4679
|
+
method,
|
|
4680
|
+
ids,
|
|
4681
|
+
kwargs,
|
|
4682
|
+
xNode,
|
|
4683
|
+
service
|
|
4684
|
+
}) => {
|
|
4685
|
+
const jsonData = {
|
|
4686
|
+
model,
|
|
4687
|
+
method,
|
|
4688
|
+
ids,
|
|
4689
|
+
kwargs
|
|
4690
|
+
};
|
|
4691
|
+
return env?.requests.post(
|
|
4692
|
+
"/call" /* CALL_PATH */,
|
|
4693
|
+
jsonData,
|
|
4694
|
+
{
|
|
4695
|
+
headers: {
|
|
4696
|
+
"Content-Type": "application/json",
|
|
4697
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4698
|
+
}
|
|
4699
|
+
},
|
|
4700
|
+
service
|
|
4701
|
+
);
|
|
4702
|
+
},
|
|
4703
|
+
[env]
|
|
4704
|
+
);
|
|
4705
|
+
const createSession = (0, import_react14.useCallback)(
|
|
4706
|
+
({
|
|
4707
|
+
model,
|
|
4708
|
+
configId,
|
|
4709
|
+
xNode,
|
|
4710
|
+
service
|
|
4711
|
+
}) => {
|
|
4712
|
+
const jsonData = {
|
|
4713
|
+
model,
|
|
4714
|
+
method: "create" /* CREATE */,
|
|
4715
|
+
args: [
|
|
4716
|
+
{
|
|
4717
|
+
config_id: configId
|
|
4718
|
+
}
|
|
4719
|
+
]
|
|
4720
|
+
};
|
|
4721
|
+
return env?.requests.post(
|
|
4722
|
+
"/call" /* CALL_PATH */,
|
|
4723
|
+
jsonData,
|
|
4724
|
+
{
|
|
4725
|
+
headers: {
|
|
4726
|
+
"Content-Type": "application/json",
|
|
4727
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4728
|
+
}
|
|
4729
|
+
},
|
|
4730
|
+
service
|
|
4731
|
+
);
|
|
4732
|
+
},
|
|
4733
|
+
[env]
|
|
4734
|
+
);
|
|
4735
|
+
const getPOS = (0, import_react14.useCallback)(
|
|
4736
|
+
({
|
|
4737
|
+
model,
|
|
4738
|
+
args,
|
|
4739
|
+
domain,
|
|
4740
|
+
xNode,
|
|
4741
|
+
service
|
|
4742
|
+
}) => {
|
|
4743
|
+
const jsonData = {
|
|
4744
|
+
model,
|
|
4745
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4746
|
+
args,
|
|
4747
|
+
kwargs: {
|
|
4748
|
+
domain: [domain],
|
|
4749
|
+
specification: {
|
|
4750
|
+
cash_control: {},
|
|
4751
|
+
current_session_id: {
|
|
4752
|
+
fields: {
|
|
4753
|
+
display_name: {}
|
|
4754
|
+
}
|
|
4755
|
+
},
|
|
4756
|
+
current_session_state: {},
|
|
4757
|
+
pos_session_state: {},
|
|
4758
|
+
pos_session_duration: {},
|
|
4759
|
+
currency_id: {
|
|
4760
|
+
fields: {
|
|
4761
|
+
display_name: {}
|
|
4762
|
+
}
|
|
4763
|
+
},
|
|
4764
|
+
name: {},
|
|
4765
|
+
pos_session_username: {},
|
|
4766
|
+
last_session_closing_date: {},
|
|
4767
|
+
last_session_closing_cash: {},
|
|
4768
|
+
number_of_rescue_session: {},
|
|
4769
|
+
current_user_id: {
|
|
4770
|
+
fields: {
|
|
4771
|
+
display_name: {}
|
|
4772
|
+
}
|
|
4773
|
+
},
|
|
4774
|
+
customer_display_type: {},
|
|
4775
|
+
module_pos_restaurant: {}
|
|
4776
|
+
}
|
|
4777
|
+
}
|
|
4778
|
+
};
|
|
4779
|
+
return env?.requests.post(
|
|
4780
|
+
"/call" /* CALL_PATH */,
|
|
4781
|
+
jsonData,
|
|
4782
|
+
{
|
|
4783
|
+
headers: {
|
|
4784
|
+
"Content-Type": "application/json",
|
|
4785
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4786
|
+
}
|
|
4787
|
+
},
|
|
4788
|
+
service
|
|
4789
|
+
);
|
|
4790
|
+
},
|
|
4791
|
+
[env]
|
|
4792
|
+
);
|
|
4793
|
+
const createEntity = (0, import_react14.useCallback)(
|
|
4794
|
+
({
|
|
4795
|
+
model,
|
|
4796
|
+
args,
|
|
4797
|
+
xNode,
|
|
4798
|
+
service
|
|
4799
|
+
}) => {
|
|
4800
|
+
const jsonData = {
|
|
4801
|
+
model,
|
|
4802
|
+
method: "create" /* CREATE */,
|
|
4803
|
+
args
|
|
4804
|
+
};
|
|
4805
|
+
return env?.requests.post(
|
|
4806
|
+
"/call" /* CALL_PATH */,
|
|
4807
|
+
jsonData,
|
|
4808
|
+
{
|
|
4809
|
+
headers: {
|
|
4810
|
+
"Content-Type": "application/json",
|
|
4811
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4812
|
+
}
|
|
4813
|
+
},
|
|
4814
|
+
service
|
|
4815
|
+
);
|
|
4816
|
+
},
|
|
4817
|
+
[env]
|
|
4818
|
+
);
|
|
4819
|
+
const getList = (0, import_react14.useCallback)(
|
|
4820
|
+
({
|
|
4821
|
+
model,
|
|
4822
|
+
domain,
|
|
4823
|
+
xNode,
|
|
4824
|
+
service,
|
|
4825
|
+
specification
|
|
4826
|
+
}) => {
|
|
4827
|
+
const jsonData = {
|
|
4828
|
+
model,
|
|
4829
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4830
|
+
kwargs: {
|
|
4831
|
+
domain,
|
|
4832
|
+
specification
|
|
4833
|
+
}
|
|
4834
|
+
};
|
|
4835
|
+
return env?.requests.post(
|
|
4836
|
+
"/call" /* CALL_PATH */,
|
|
4837
|
+
jsonData,
|
|
4838
|
+
{
|
|
4839
|
+
headers: {
|
|
4840
|
+
"Content-Type": "application/json",
|
|
4841
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4842
|
+
}
|
|
4843
|
+
},
|
|
4844
|
+
service
|
|
4845
|
+
);
|
|
4846
|
+
},
|
|
4847
|
+
[env]
|
|
4848
|
+
);
|
|
4566
4849
|
return {
|
|
4567
4850
|
getView,
|
|
4568
4851
|
getMenu,
|
|
@@ -4578,7 +4861,15 @@ function useViewService() {
|
|
|
4578
4861
|
signInSSO,
|
|
4579
4862
|
verify2FA,
|
|
4580
4863
|
get2FAMethods,
|
|
4581
|
-
verifyTotp
|
|
4864
|
+
verifyTotp,
|
|
4865
|
+
getASession,
|
|
4866
|
+
updateClosedSession,
|
|
4867
|
+
manageSession,
|
|
4868
|
+
handleClosingSession,
|
|
4869
|
+
createSession,
|
|
4870
|
+
getPOS,
|
|
4871
|
+
createEntity,
|
|
4872
|
+
getList
|
|
4582
4873
|
};
|
|
4583
4874
|
}
|
|
4584
4875
|
|
|
@@ -5901,10 +6192,206 @@ var useVerifyTotp = () => {
|
|
|
5901
6192
|
});
|
|
5902
6193
|
};
|
|
5903
6194
|
var use_verify_totp_default = useVerifyTotp;
|
|
6195
|
+
|
|
6196
|
+
// src/hooks/view/use-a-session.ts
|
|
6197
|
+
var import_react_query70 = require("@tanstack/react-query");
|
|
6198
|
+
var useGetASession = () => {
|
|
6199
|
+
const { getASession } = useViewService();
|
|
6200
|
+
return (0, import_react_query70.useMutation)({
|
|
6201
|
+
mutationFn: ({
|
|
6202
|
+
model,
|
|
6203
|
+
args,
|
|
6204
|
+
domain,
|
|
6205
|
+
service,
|
|
6206
|
+
xNode
|
|
6207
|
+
}) => {
|
|
6208
|
+
return getASession({
|
|
6209
|
+
model,
|
|
6210
|
+
args,
|
|
6211
|
+
domain,
|
|
6212
|
+
service,
|
|
6213
|
+
xNode
|
|
6214
|
+
});
|
|
6215
|
+
}
|
|
6216
|
+
});
|
|
6217
|
+
};
|
|
6218
|
+
var use_a_session_default = useGetASession;
|
|
6219
|
+
|
|
6220
|
+
// src/hooks/view/use-update-closed-session.ts
|
|
6221
|
+
var import_react_query71 = require("@tanstack/react-query");
|
|
6222
|
+
var useUpdateClosedSession = () => {
|
|
6223
|
+
const { updateClosedSession } = useViewService();
|
|
6224
|
+
return (0, import_react_query71.useMutation)({
|
|
6225
|
+
mutationFn: ({
|
|
6226
|
+
model,
|
|
6227
|
+
domain,
|
|
6228
|
+
values,
|
|
6229
|
+
service,
|
|
6230
|
+
xNode
|
|
6231
|
+
}) => {
|
|
6232
|
+
return updateClosedSession({
|
|
6233
|
+
model,
|
|
6234
|
+
domain,
|
|
6235
|
+
values,
|
|
6236
|
+
service,
|
|
6237
|
+
xNode
|
|
6238
|
+
});
|
|
6239
|
+
}
|
|
6240
|
+
});
|
|
6241
|
+
};
|
|
6242
|
+
var use_update_closed_session_default = useUpdateClosedSession;
|
|
6243
|
+
|
|
6244
|
+
// src/hooks/view/use-manage-session.ts
|
|
6245
|
+
var import_react_query72 = require("@tanstack/react-query");
|
|
6246
|
+
var useManageSession = () => {
|
|
6247
|
+
const { manageSession } = useViewService();
|
|
6248
|
+
return (0, import_react_query72.useMutation)({
|
|
6249
|
+
mutationFn: ({
|
|
6250
|
+
model,
|
|
6251
|
+
ids,
|
|
6252
|
+
args,
|
|
6253
|
+
kwargs,
|
|
6254
|
+
service,
|
|
6255
|
+
xNode,
|
|
6256
|
+
method
|
|
6257
|
+
}) => {
|
|
6258
|
+
return manageSession({
|
|
6259
|
+
model,
|
|
6260
|
+
method,
|
|
6261
|
+
ids,
|
|
6262
|
+
args,
|
|
6263
|
+
kwargs,
|
|
6264
|
+
service,
|
|
6265
|
+
xNode
|
|
6266
|
+
});
|
|
6267
|
+
}
|
|
6268
|
+
});
|
|
6269
|
+
};
|
|
6270
|
+
var use_manage_session_default = useManageSession;
|
|
6271
|
+
|
|
6272
|
+
// src/hooks/view/use-handle-closing-session.ts
|
|
6273
|
+
var import_react_query73 = require("@tanstack/react-query");
|
|
6274
|
+
var useHandleClosingSession = () => {
|
|
6275
|
+
const { handleClosingSession } = useViewService();
|
|
6276
|
+
return (0, import_react_query73.useMutation)({
|
|
6277
|
+
mutationFn: ({
|
|
6278
|
+
model,
|
|
6279
|
+
method,
|
|
6280
|
+
ids,
|
|
6281
|
+
kwargs,
|
|
6282
|
+
xNode,
|
|
6283
|
+
service
|
|
6284
|
+
}) => {
|
|
6285
|
+
return handleClosingSession({
|
|
6286
|
+
model,
|
|
6287
|
+
method,
|
|
6288
|
+
ids,
|
|
6289
|
+
kwargs,
|
|
6290
|
+
service,
|
|
6291
|
+
xNode
|
|
6292
|
+
});
|
|
6293
|
+
}
|
|
6294
|
+
});
|
|
6295
|
+
};
|
|
6296
|
+
var use_handle_closing_session_default = useHandleClosingSession;
|
|
6297
|
+
|
|
6298
|
+
// src/hooks/view/use-create-session.ts
|
|
6299
|
+
var import_react_query74 = require("@tanstack/react-query");
|
|
6300
|
+
var useCreateSession = () => {
|
|
6301
|
+
const { createSession } = useViewService();
|
|
6302
|
+
return (0, import_react_query74.useMutation)({
|
|
6303
|
+
mutationFn: ({
|
|
6304
|
+
model,
|
|
6305
|
+
configId,
|
|
6306
|
+
service,
|
|
6307
|
+
xNode
|
|
6308
|
+
}) => {
|
|
6309
|
+
return createSession({
|
|
6310
|
+
model,
|
|
6311
|
+
configId,
|
|
6312
|
+
service,
|
|
6313
|
+
xNode
|
|
6314
|
+
});
|
|
6315
|
+
}
|
|
6316
|
+
});
|
|
6317
|
+
};
|
|
6318
|
+
var use_create_session_default = useCreateSession;
|
|
6319
|
+
|
|
6320
|
+
// src/hooks/view/use-get-pos.ts
|
|
6321
|
+
var import_react_query75 = require("@tanstack/react-query");
|
|
6322
|
+
var useGetPos = () => {
|
|
6323
|
+
const { getPOS } = useViewService();
|
|
6324
|
+
return (0, import_react_query75.useMutation)({
|
|
6325
|
+
mutationFn: ({
|
|
6326
|
+
model,
|
|
6327
|
+
args,
|
|
6328
|
+
domain,
|
|
6329
|
+
service,
|
|
6330
|
+
xNode
|
|
6331
|
+
}) => {
|
|
6332
|
+
return getPOS({
|
|
6333
|
+
model,
|
|
6334
|
+
args,
|
|
6335
|
+
domain,
|
|
6336
|
+
service,
|
|
6337
|
+
xNode
|
|
6338
|
+
});
|
|
6339
|
+
}
|
|
6340
|
+
});
|
|
6341
|
+
};
|
|
6342
|
+
var use_get_pos_default = useGetPos;
|
|
6343
|
+
|
|
6344
|
+
// src/hooks/view/use-create-entity.ts
|
|
6345
|
+
var import_react_query76 = require("@tanstack/react-query");
|
|
6346
|
+
var useCreateEntity = () => {
|
|
6347
|
+
const { createEntity } = useViewService();
|
|
6348
|
+
return (0, import_react_query76.useMutation)({
|
|
6349
|
+
mutationFn: ({
|
|
6350
|
+
model,
|
|
6351
|
+
args,
|
|
6352
|
+
xNode,
|
|
6353
|
+
service
|
|
6354
|
+
}) => {
|
|
6355
|
+
return createEntity({
|
|
6356
|
+
model,
|
|
6357
|
+
args,
|
|
6358
|
+
xNode,
|
|
6359
|
+
service
|
|
6360
|
+
});
|
|
6361
|
+
}
|
|
6362
|
+
});
|
|
6363
|
+
};
|
|
6364
|
+
var use_create_entity_default = useCreateEntity;
|
|
6365
|
+
|
|
6366
|
+
// src/hooks/view/use-get-list.ts
|
|
6367
|
+
var import_react_query77 = require("@tanstack/react-query");
|
|
6368
|
+
var useGetList = () => {
|
|
6369
|
+
const { getList } = useViewService();
|
|
6370
|
+
return (0, import_react_query77.useMutation)({
|
|
6371
|
+
mutationFn: ({
|
|
6372
|
+
model,
|
|
6373
|
+
domain,
|
|
6374
|
+
xNode,
|
|
6375
|
+
service,
|
|
6376
|
+
specification
|
|
6377
|
+
}) => {
|
|
6378
|
+
return getList({
|
|
6379
|
+
model,
|
|
6380
|
+
domain,
|
|
6381
|
+
service,
|
|
6382
|
+
xNode,
|
|
6383
|
+
specification
|
|
6384
|
+
});
|
|
6385
|
+
}
|
|
6386
|
+
});
|
|
6387
|
+
};
|
|
6388
|
+
var use_get_list_default = useGetList;
|
|
5904
6389
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5905
6390
|
0 && (module.exports = {
|
|
5906
6391
|
useButton,
|
|
5907
6392
|
useChangeStatus,
|
|
6393
|
+
useCreateEntity,
|
|
6394
|
+
useCreateSession,
|
|
5908
6395
|
useDelete,
|
|
5909
6396
|
useDeleteComment,
|
|
5910
6397
|
useDuplicateRecord,
|
|
@@ -5913,6 +6400,7 @@ var use_verify_totp_default = useVerifyTotp;
|
|
|
5913
6400
|
useForgotPassword,
|
|
5914
6401
|
useForgotPasswordSSO,
|
|
5915
6402
|
useGet2FAMethods,
|
|
6403
|
+
useGetASession,
|
|
5916
6404
|
useGetAccessByCode,
|
|
5917
6405
|
useGetActionDetail,
|
|
5918
6406
|
useGetAll,
|
|
@@ -5929,10 +6417,12 @@ var use_verify_totp_default = useVerifyTotp;
|
|
|
5929
6417
|
useGetFormView,
|
|
5930
6418
|
useGetGroups,
|
|
5931
6419
|
useGetImage,
|
|
6420
|
+
useGetList,
|
|
5932
6421
|
useGetListCompany,
|
|
5933
6422
|
useGetListData,
|
|
5934
6423
|
useGetListMyBankAccount,
|
|
5935
6424
|
useGetMenu,
|
|
6425
|
+
useGetPos,
|
|
5936
6426
|
useGetPrintReport,
|
|
5937
6427
|
useGetProGressBar,
|
|
5938
6428
|
useGetProfile,
|
|
@@ -5942,12 +6432,14 @@ var use_verify_totp_default = useVerifyTotp;
|
|
|
5942
6432
|
useGetUser,
|
|
5943
6433
|
useGetView,
|
|
5944
6434
|
useGrantAccess,
|
|
6435
|
+
useHandleClosingSession,
|
|
5945
6436
|
useIsValidToken,
|
|
5946
6437
|
useLoadAction,
|
|
5947
6438
|
useLoadMessage,
|
|
5948
6439
|
useLoginCredential,
|
|
5949
6440
|
useLoginSocial,
|
|
5950
6441
|
useLogout,
|
|
6442
|
+
useManageSession,
|
|
5951
6443
|
useModel,
|
|
5952
6444
|
useOdooDataTransform,
|
|
5953
6445
|
useOnChangeForm,
|
|
@@ -5964,6 +6456,7 @@ var use_verify_totp_default = useVerifyTotp;
|
|
|
5964
6456
|
useSettingsWebRead2fa,
|
|
5965
6457
|
useSignInSSO,
|
|
5966
6458
|
useSwitchLocale,
|
|
6459
|
+
useUpdateClosedSession,
|
|
5967
6460
|
useUpdatePassword,
|
|
5968
6461
|
useUploadFile,
|
|
5969
6462
|
useUploadFileExcel,
|