@fctc/interface-logic 2.5.7 → 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/hooks.d.mts +25 -2
- package/dist/hooks.d.ts +25 -2
- package/dist/hooks.js +194 -1
- package/dist/hooks.mjs +191 -1
- package/dist/provider.d.mts +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +127 -1
- package/dist/provider.mjs +127 -1
- package/dist/services.d.mts +20 -0
- package/dist/services.d.ts +20 -0
- package/dist/services.js +127 -1
- package/dist/services.mjs +127 -1
- 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/hooks.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { R as useButton, w as useChangeStatus, D as useDelete, x as useDeleteComment, S as useDuplicateRecord, o as useExecuteImport, p as useExportExcel, u as useForgotPassword, a as useForgotPasswordSSO, T as useGet2FAMethods, j as useGetAccessByCode, U as useGetActionDetail, E as useGetAll, V as useGetCalendar, y as useGetComment, l as useGetCompanyInfo, F as useGetConversionRate, G as useGetCurrency, m as useGetCurrentCompany, H as useGetDetail, q as useGetFieldExport, I as useGetFieldOnChange, r as useGetFileExcel, z as useGetFormView, W as useGetGroups, A as useGetImage, n as useGetListCompany, X as useGetListData, J as useGetListMyBankAccount, Y as useGetMenu, Z as useGetPrintReport, _ as useGetProGressBar, O as useGetProfile, b as useGetProvider, $ as useGetResequence, a0 as useGetSelection, P as useGetUser, a1 as useGetView, a9 as useGrantAccess, c as useIsValidToken, a2 as useLoadAction, a3 as useLoadMessage, d as useLoginCredential, e as useLoginSocial, i as useLogout, K as useModel, L as useOdooDataTransform, M as useOnChangeForm, s as useParsePreview, a4 as usePrint, a5 as useRemoveRow, aa as useRemoveTotpSetup, ab as useRequestSetupTotp, f as useResetPassword, g as useResetPasswordSSO, a6 as useRunAction, N as useSave, B as useSendComment, ac as useSettingsWebRead2fa, a7 as useSignInSSO, Q as useSwitchLocale, h as useUpdatePassword, ae as useUploadFile, t as useUploadFileExcel, v as useUploadIdFile, C as useUploadImage, k as useValidateActionToken, a8 as useVerify2FA, ad as useVerifyTotp } from './use-verify-totp-lA66gl-D.mjs';
|
|
2
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
3
|
import './view-type-xxw9OeSR.mjs';
|
|
4
4
|
import './base-model-type-DD8uZnDP.mjs';
|
|
@@ -46,4 +46,27 @@ declare const useCreateSession: () => _tanstack_react_query.UseMutationResult<un
|
|
|
46
46
|
xNode: string;
|
|
47
47
|
}, unknown>;
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
declare const useGetPos: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
50
|
+
model: string;
|
|
51
|
+
args: [];
|
|
52
|
+
domain: [];
|
|
53
|
+
service: string;
|
|
54
|
+
xNode: string;
|
|
55
|
+
}, unknown>;
|
|
56
|
+
|
|
57
|
+
declare const useCreateEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
58
|
+
model: string;
|
|
59
|
+
args: [];
|
|
60
|
+
service: string;
|
|
61
|
+
xNode: string;
|
|
62
|
+
}, unknown>;
|
|
63
|
+
|
|
64
|
+
declare const useGetList: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
65
|
+
model: string;
|
|
66
|
+
domain: [];
|
|
67
|
+
service: string;
|
|
68
|
+
xNode: string;
|
|
69
|
+
specification: any;
|
|
70
|
+
}, unknown>;
|
|
71
|
+
|
|
72
|
+
export { useCreateEntity, useCreateSession, useGetASession, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession };
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { R as useButton, w as useChangeStatus, D as useDelete, x as useDeleteComment, S as useDuplicateRecord, o as useExecuteImport, p as useExportExcel, u as useForgotPassword, a as useForgotPasswordSSO, T as useGet2FAMethods, j as useGetAccessByCode, U as useGetActionDetail, E as useGetAll, V as useGetCalendar, y as useGetComment, l as useGetCompanyInfo, F as useGetConversionRate, G as useGetCurrency, m as useGetCurrentCompany, H as useGetDetail, q as useGetFieldExport, I as useGetFieldOnChange, r as useGetFileExcel, z as useGetFormView, W as useGetGroups, A as useGetImage, n as useGetListCompany, X as useGetListData, J as useGetListMyBankAccount, Y as useGetMenu, Z as useGetPrintReport, _ as useGetProGressBar, O as useGetProfile, b as useGetProvider, $ as useGetResequence, a0 as useGetSelection, P as useGetUser, a1 as useGetView, a9 as useGrantAccess, c as useIsValidToken, a2 as useLoadAction, a3 as useLoadMessage, d as useLoginCredential, e as useLoginSocial, i as useLogout, K as useModel, L as useOdooDataTransform, M as useOnChangeForm, s as useParsePreview, a4 as usePrint, a5 as useRemoveRow, aa as useRemoveTotpSetup, ab as useRequestSetupTotp, f as useResetPassword, g as useResetPasswordSSO, a6 as useRunAction, N as useSave, B as useSendComment, ac as useSettingsWebRead2fa, a7 as useSignInSSO, Q as useSwitchLocale, h as useUpdatePassword, ae as useUploadFile, t as useUploadFileExcel, v as useUploadIdFile, C as useUploadImage, k as useValidateActionToken, a8 as useVerify2FA, ad as useVerifyTotp } from './use-verify-totp-wSSlNI9w.js';
|
|
2
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
3
|
import './view-type-xxw9OeSR.js';
|
|
4
4
|
import './base-model-type-DD8uZnDP.js';
|
|
@@ -46,4 +46,27 @@ declare const useCreateSession: () => _tanstack_react_query.UseMutationResult<un
|
|
|
46
46
|
xNode: string;
|
|
47
47
|
}, unknown>;
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
declare const useGetPos: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
50
|
+
model: string;
|
|
51
|
+
args: [];
|
|
52
|
+
domain: [];
|
|
53
|
+
service: string;
|
|
54
|
+
xNode: string;
|
|
55
|
+
}, unknown>;
|
|
56
|
+
|
|
57
|
+
declare const useCreateEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
58
|
+
model: string;
|
|
59
|
+
args: [];
|
|
60
|
+
service: string;
|
|
61
|
+
xNode: string;
|
|
62
|
+
}, unknown>;
|
|
63
|
+
|
|
64
|
+
declare const useGetList: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
65
|
+
model: string;
|
|
66
|
+
domain: [];
|
|
67
|
+
service: string;
|
|
68
|
+
xNode: string;
|
|
69
|
+
specification: any;
|
|
70
|
+
}, unknown>;
|
|
71
|
+
|
|
72
|
+
export { useCreateEntity, useCreateSession, useGetASession, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession };
|
package/dist/hooks.js
CHANGED
|
@@ -32,6 +32,7 @@ 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,
|
|
35
36
|
useCreateSession: () => use_create_session_default,
|
|
36
37
|
useDelete: () => use_delete_default,
|
|
37
38
|
useDeleteComment: () => use_delete_comment_default,
|
|
@@ -58,10 +59,12 @@ __export(hooks_exports, {
|
|
|
58
59
|
useGetFormView: () => use_get_form_view_default,
|
|
59
60
|
useGetGroups: () => use_get_groups_default,
|
|
60
61
|
useGetImage: () => use_get_image_default,
|
|
62
|
+
useGetList: () => use_get_list_default,
|
|
61
63
|
useGetListCompany: () => use_get_list_company_default,
|
|
62
64
|
useGetListData: () => use_get_list_data_default,
|
|
63
65
|
useGetListMyBankAccount: () => use_get_list_my_bank_account_default,
|
|
64
66
|
useGetMenu: () => use_get_menu_default,
|
|
67
|
+
useGetPos: () => use_get_pos_default,
|
|
65
68
|
useGetPrintReport: () => use_get_print_report_default,
|
|
66
69
|
useGetProGressBar: () => use_get_progress_bar_default,
|
|
67
70
|
useGetProfile: () => use_get_profile_default,
|
|
@@ -4729,6 +4732,120 @@ function useViewService() {
|
|
|
4729
4732
|
},
|
|
4730
4733
|
[env]
|
|
4731
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
|
+
);
|
|
4732
4849
|
return {
|
|
4733
4850
|
getView,
|
|
4734
4851
|
getMenu,
|
|
@@ -4749,7 +4866,10 @@ function useViewService() {
|
|
|
4749
4866
|
updateClosedSession,
|
|
4750
4867
|
manageSession,
|
|
4751
4868
|
handleClosingSession,
|
|
4752
|
-
createSession
|
|
4869
|
+
createSession,
|
|
4870
|
+
getPOS,
|
|
4871
|
+
createEntity,
|
|
4872
|
+
getList
|
|
4753
4873
|
};
|
|
4754
4874
|
}
|
|
4755
4875
|
|
|
@@ -6196,10 +6316,81 @@ var useCreateSession = () => {
|
|
|
6196
6316
|
});
|
|
6197
6317
|
};
|
|
6198
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;
|
|
6199
6389
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6200
6390
|
0 && (module.exports = {
|
|
6201
6391
|
useButton,
|
|
6202
6392
|
useChangeStatus,
|
|
6393
|
+
useCreateEntity,
|
|
6203
6394
|
useCreateSession,
|
|
6204
6395
|
useDelete,
|
|
6205
6396
|
useDeleteComment,
|
|
@@ -6226,10 +6417,12 @@ var use_create_session_default = useCreateSession;
|
|
|
6226
6417
|
useGetFormView,
|
|
6227
6418
|
useGetGroups,
|
|
6228
6419
|
useGetImage,
|
|
6420
|
+
useGetList,
|
|
6229
6421
|
useGetListCompany,
|
|
6230
6422
|
useGetListData,
|
|
6231
6423
|
useGetListMyBankAccount,
|
|
6232
6424
|
useGetMenu,
|
|
6425
|
+
useGetPos,
|
|
6233
6426
|
useGetPrintReport,
|
|
6234
6427
|
useGetProGressBar,
|
|
6235
6428
|
useGetProfile,
|
package/dist/hooks.mjs
CHANGED
|
@@ -4620,6 +4620,120 @@ function useViewService() {
|
|
|
4620
4620
|
},
|
|
4621
4621
|
[env]
|
|
4622
4622
|
);
|
|
4623
|
+
const getPOS = useCallback10(
|
|
4624
|
+
({
|
|
4625
|
+
model,
|
|
4626
|
+
args,
|
|
4627
|
+
domain,
|
|
4628
|
+
xNode,
|
|
4629
|
+
service
|
|
4630
|
+
}) => {
|
|
4631
|
+
const jsonData = {
|
|
4632
|
+
model,
|
|
4633
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4634
|
+
args,
|
|
4635
|
+
kwargs: {
|
|
4636
|
+
domain: [domain],
|
|
4637
|
+
specification: {
|
|
4638
|
+
cash_control: {},
|
|
4639
|
+
current_session_id: {
|
|
4640
|
+
fields: {
|
|
4641
|
+
display_name: {}
|
|
4642
|
+
}
|
|
4643
|
+
},
|
|
4644
|
+
current_session_state: {},
|
|
4645
|
+
pos_session_state: {},
|
|
4646
|
+
pos_session_duration: {},
|
|
4647
|
+
currency_id: {
|
|
4648
|
+
fields: {
|
|
4649
|
+
display_name: {}
|
|
4650
|
+
}
|
|
4651
|
+
},
|
|
4652
|
+
name: {},
|
|
4653
|
+
pos_session_username: {},
|
|
4654
|
+
last_session_closing_date: {},
|
|
4655
|
+
last_session_closing_cash: {},
|
|
4656
|
+
number_of_rescue_session: {},
|
|
4657
|
+
current_user_id: {
|
|
4658
|
+
fields: {
|
|
4659
|
+
display_name: {}
|
|
4660
|
+
}
|
|
4661
|
+
},
|
|
4662
|
+
customer_display_type: {},
|
|
4663
|
+
module_pos_restaurant: {}
|
|
4664
|
+
}
|
|
4665
|
+
}
|
|
4666
|
+
};
|
|
4667
|
+
return env?.requests.post(
|
|
4668
|
+
"/call" /* CALL_PATH */,
|
|
4669
|
+
jsonData,
|
|
4670
|
+
{
|
|
4671
|
+
headers: {
|
|
4672
|
+
"Content-Type": "application/json",
|
|
4673
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4674
|
+
}
|
|
4675
|
+
},
|
|
4676
|
+
service
|
|
4677
|
+
);
|
|
4678
|
+
},
|
|
4679
|
+
[env]
|
|
4680
|
+
);
|
|
4681
|
+
const createEntity = useCallback10(
|
|
4682
|
+
({
|
|
4683
|
+
model,
|
|
4684
|
+
args,
|
|
4685
|
+
xNode,
|
|
4686
|
+
service
|
|
4687
|
+
}) => {
|
|
4688
|
+
const jsonData = {
|
|
4689
|
+
model,
|
|
4690
|
+
method: "create" /* CREATE */,
|
|
4691
|
+
args
|
|
4692
|
+
};
|
|
4693
|
+
return env?.requests.post(
|
|
4694
|
+
"/call" /* CALL_PATH */,
|
|
4695
|
+
jsonData,
|
|
4696
|
+
{
|
|
4697
|
+
headers: {
|
|
4698
|
+
"Content-Type": "application/json",
|
|
4699
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4700
|
+
}
|
|
4701
|
+
},
|
|
4702
|
+
service
|
|
4703
|
+
);
|
|
4704
|
+
},
|
|
4705
|
+
[env]
|
|
4706
|
+
);
|
|
4707
|
+
const getList = useCallback10(
|
|
4708
|
+
({
|
|
4709
|
+
model,
|
|
4710
|
+
domain,
|
|
4711
|
+
xNode,
|
|
4712
|
+
service,
|
|
4713
|
+
specification
|
|
4714
|
+
}) => {
|
|
4715
|
+
const jsonData = {
|
|
4716
|
+
model,
|
|
4717
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4718
|
+
kwargs: {
|
|
4719
|
+
domain,
|
|
4720
|
+
specification
|
|
4721
|
+
}
|
|
4722
|
+
};
|
|
4723
|
+
return env?.requests.post(
|
|
4724
|
+
"/call" /* CALL_PATH */,
|
|
4725
|
+
jsonData,
|
|
4726
|
+
{
|
|
4727
|
+
headers: {
|
|
4728
|
+
"Content-Type": "application/json",
|
|
4729
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4730
|
+
}
|
|
4731
|
+
},
|
|
4732
|
+
service
|
|
4733
|
+
);
|
|
4734
|
+
},
|
|
4735
|
+
[env]
|
|
4736
|
+
);
|
|
4623
4737
|
return {
|
|
4624
4738
|
getView,
|
|
4625
4739
|
getMenu,
|
|
@@ -4640,7 +4754,10 @@ function useViewService() {
|
|
|
4640
4754
|
updateClosedSession,
|
|
4641
4755
|
manageSession,
|
|
4642
4756
|
handleClosingSession,
|
|
4643
|
-
createSession
|
|
4757
|
+
createSession,
|
|
4758
|
+
getPOS,
|
|
4759
|
+
createEntity,
|
|
4760
|
+
getList
|
|
4644
4761
|
};
|
|
4645
4762
|
}
|
|
4646
4763
|
|
|
@@ -6087,9 +6204,80 @@ var useCreateSession = () => {
|
|
|
6087
6204
|
});
|
|
6088
6205
|
};
|
|
6089
6206
|
var use_create_session_default = useCreateSession;
|
|
6207
|
+
|
|
6208
|
+
// src/hooks/view/use-get-pos.ts
|
|
6209
|
+
import { useMutation as useMutation53 } from "@tanstack/react-query";
|
|
6210
|
+
var useGetPos = () => {
|
|
6211
|
+
const { getPOS } = useViewService();
|
|
6212
|
+
return useMutation53({
|
|
6213
|
+
mutationFn: ({
|
|
6214
|
+
model,
|
|
6215
|
+
args,
|
|
6216
|
+
domain,
|
|
6217
|
+
service,
|
|
6218
|
+
xNode
|
|
6219
|
+
}) => {
|
|
6220
|
+
return getPOS({
|
|
6221
|
+
model,
|
|
6222
|
+
args,
|
|
6223
|
+
domain,
|
|
6224
|
+
service,
|
|
6225
|
+
xNode
|
|
6226
|
+
});
|
|
6227
|
+
}
|
|
6228
|
+
});
|
|
6229
|
+
};
|
|
6230
|
+
var use_get_pos_default = useGetPos;
|
|
6231
|
+
|
|
6232
|
+
// src/hooks/view/use-create-entity.ts
|
|
6233
|
+
import { useMutation as useMutation54 } from "@tanstack/react-query";
|
|
6234
|
+
var useCreateEntity = () => {
|
|
6235
|
+
const { createEntity } = useViewService();
|
|
6236
|
+
return useMutation54({
|
|
6237
|
+
mutationFn: ({
|
|
6238
|
+
model,
|
|
6239
|
+
args,
|
|
6240
|
+
xNode,
|
|
6241
|
+
service
|
|
6242
|
+
}) => {
|
|
6243
|
+
return createEntity({
|
|
6244
|
+
model,
|
|
6245
|
+
args,
|
|
6246
|
+
xNode,
|
|
6247
|
+
service
|
|
6248
|
+
});
|
|
6249
|
+
}
|
|
6250
|
+
});
|
|
6251
|
+
};
|
|
6252
|
+
var use_create_entity_default = useCreateEntity;
|
|
6253
|
+
|
|
6254
|
+
// src/hooks/view/use-get-list.ts
|
|
6255
|
+
import { useMutation as useMutation55 } from "@tanstack/react-query";
|
|
6256
|
+
var useGetList = () => {
|
|
6257
|
+
const { getList } = useViewService();
|
|
6258
|
+
return useMutation55({
|
|
6259
|
+
mutationFn: ({
|
|
6260
|
+
model,
|
|
6261
|
+
domain,
|
|
6262
|
+
xNode,
|
|
6263
|
+
service,
|
|
6264
|
+
specification
|
|
6265
|
+
}) => {
|
|
6266
|
+
return getList({
|
|
6267
|
+
model,
|
|
6268
|
+
domain,
|
|
6269
|
+
service,
|
|
6270
|
+
xNode,
|
|
6271
|
+
specification
|
|
6272
|
+
});
|
|
6273
|
+
}
|
|
6274
|
+
});
|
|
6275
|
+
};
|
|
6276
|
+
var use_get_list_default = useGetList;
|
|
6090
6277
|
export {
|
|
6091
6278
|
use_button_default as useButton,
|
|
6092
6279
|
use_change_status_default as useChangeStatus,
|
|
6280
|
+
use_create_entity_default as useCreateEntity,
|
|
6093
6281
|
use_create_session_default as useCreateSession,
|
|
6094
6282
|
use_delete_default as useDelete,
|
|
6095
6283
|
use_delete_comment_default as useDeleteComment,
|
|
@@ -6116,10 +6304,12 @@ export {
|
|
|
6116
6304
|
use_get_form_view_default as useGetFormView,
|
|
6117
6305
|
use_get_groups_default as useGetGroups,
|
|
6118
6306
|
use_get_image_default as useGetImage,
|
|
6307
|
+
use_get_list_default as useGetList,
|
|
6119
6308
|
use_get_list_company_default as useGetListCompany,
|
|
6120
6309
|
use_get_list_data_default as useGetListData,
|
|
6121
6310
|
use_get_list_my_bank_account_default as useGetListMyBankAccount,
|
|
6122
6311
|
use_get_menu_default as useGetMenu,
|
|
6312
|
+
use_get_pos_default as useGetPos,
|
|
6123
6313
|
use_get_print_report_default as useGetPrintReport,
|
|
6124
6314
|
use_get_progress_bar_default as useGetProGressBar,
|
|
6125
6315
|
use_get_profile_default as useGetProfile,
|
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, S as SessionStorageUtilsType } from './session-storage-ARp_lhTD.mjs';
|
|
4
|
-
import {
|
|
4
|
+
import { u as useForgotPassword, a as useForgotPasswordSSO, b as useGetProvider, c as useIsValidToken, d as useLoginCredential, e as useLoginSocial, f as useResetPassword, g as useResetPasswordSSO, h as useUpdatePassword, i as useLogout, j as useGetAccessByCode, k as useValidateActionToken, l as useGetCompanyInfo, m as useGetCurrentCompany, n as useGetListCompany, o as useExecuteImport, p as useExportExcel, q as useGetFieldExport, r as useGetFileExcel, s as useParsePreview, t as useUploadFileExcel, v as useUploadIdFile, w as useChangeStatus, x as useDeleteComment, y as useGetComment, z as useGetFormView, A as useGetImage, B as useSendComment, C as useUploadImage, D as useDelete, E as useGetAll, F as useGetConversionRate, G as useGetCurrency, H as useGetDetail, I as useGetFieldOnChange, J as useGetListMyBankAccount, K as useModel, L as useOdooDataTransform, M as useOnChangeForm, N as useSave, O as useGetProfile, P as useGetUser, Q as useSwitchLocale, R as useButton, S as useDuplicateRecord, T as useGet2FAMethods, U as useGetActionDetail, V as useGetCalendar, W as useGetGroups, X as useGetListData, Y as useGetMenu, Z as useGetPrintReport, _ as useGetProGressBar, $ as useGetResequence, a0 as useGetSelection, a1 as useGetView, a2 as useLoadAction, a3 as useLoadMessage, a4 as usePrint, a5 as useRemoveRow, a6 as useRunAction, a7 as useSignInSSO, a8 as useVerify2FA, a9 as useGrantAccess, aa as useRemoveTotpSetup, ab as useRequestSetupTotp, ac as useSettingsWebRead2fa, ad as useVerifyTotp, ae as useUploadFile } from './use-verify-totp-lA66gl-D.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-xxw9OeSR.mjs';
|
|
7
7
|
import './base-model-type-DD8uZnDP.mjs';
|
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, S as SessionStorageUtilsType } from './session-storage-ARp_lhTD.js';
|
|
4
|
-
import {
|
|
4
|
+
import { u as useForgotPassword, a as useForgotPasswordSSO, b as useGetProvider, c as useIsValidToken, d as useLoginCredential, e as useLoginSocial, f as useResetPassword, g as useResetPasswordSSO, h as useUpdatePassword, i as useLogout, j as useGetAccessByCode, k as useValidateActionToken, l as useGetCompanyInfo, m as useGetCurrentCompany, n as useGetListCompany, o as useExecuteImport, p as useExportExcel, q as useGetFieldExport, r as useGetFileExcel, s as useParsePreview, t as useUploadFileExcel, v as useUploadIdFile, w as useChangeStatus, x as useDeleteComment, y as useGetComment, z as useGetFormView, A as useGetImage, B as useSendComment, C as useUploadImage, D as useDelete, E as useGetAll, F as useGetConversionRate, G as useGetCurrency, H as useGetDetail, I as useGetFieldOnChange, J as useGetListMyBankAccount, K as useModel, L as useOdooDataTransform, M as useOnChangeForm, N as useSave, O as useGetProfile, P as useGetUser, Q as useSwitchLocale, R as useButton, S as useDuplicateRecord, T as useGet2FAMethods, U as useGetActionDetail, V as useGetCalendar, W as useGetGroups, X as useGetListData, Y as useGetMenu, Z as useGetPrintReport, _ as useGetProGressBar, $ as useGetResequence, a0 as useGetSelection, a1 as useGetView, a2 as useLoadAction, a3 as useLoadMessage, a4 as usePrint, a5 as useRemoveRow, a6 as useRunAction, a7 as useSignInSSO, a8 as useVerify2FA, a9 as useGrantAccess, aa as useRemoveTotpSetup, ab as useRequestSetupTotp, ac as useSettingsWebRead2fa, ad as useVerifyTotp, ae as useUploadFile } from './use-verify-totp-wSSlNI9w.js';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-xxw9OeSR.js';
|
|
7
7
|
import './base-model-type-DD8uZnDP.js';
|
package/dist/provider.js
CHANGED
|
@@ -4672,6 +4672,120 @@ function useViewService() {
|
|
|
4672
4672
|
},
|
|
4673
4673
|
[env]
|
|
4674
4674
|
);
|
|
4675
|
+
const getPOS = (0, import_react10.useCallback)(
|
|
4676
|
+
({
|
|
4677
|
+
model,
|
|
4678
|
+
args,
|
|
4679
|
+
domain,
|
|
4680
|
+
xNode,
|
|
4681
|
+
service
|
|
4682
|
+
}) => {
|
|
4683
|
+
const jsonData = {
|
|
4684
|
+
model,
|
|
4685
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4686
|
+
args,
|
|
4687
|
+
kwargs: {
|
|
4688
|
+
domain: [domain],
|
|
4689
|
+
specification: {
|
|
4690
|
+
cash_control: {},
|
|
4691
|
+
current_session_id: {
|
|
4692
|
+
fields: {
|
|
4693
|
+
display_name: {}
|
|
4694
|
+
}
|
|
4695
|
+
},
|
|
4696
|
+
current_session_state: {},
|
|
4697
|
+
pos_session_state: {},
|
|
4698
|
+
pos_session_duration: {},
|
|
4699
|
+
currency_id: {
|
|
4700
|
+
fields: {
|
|
4701
|
+
display_name: {}
|
|
4702
|
+
}
|
|
4703
|
+
},
|
|
4704
|
+
name: {},
|
|
4705
|
+
pos_session_username: {},
|
|
4706
|
+
last_session_closing_date: {},
|
|
4707
|
+
last_session_closing_cash: {},
|
|
4708
|
+
number_of_rescue_session: {},
|
|
4709
|
+
current_user_id: {
|
|
4710
|
+
fields: {
|
|
4711
|
+
display_name: {}
|
|
4712
|
+
}
|
|
4713
|
+
},
|
|
4714
|
+
customer_display_type: {},
|
|
4715
|
+
module_pos_restaurant: {}
|
|
4716
|
+
}
|
|
4717
|
+
}
|
|
4718
|
+
};
|
|
4719
|
+
return env?.requests.post(
|
|
4720
|
+
"/call" /* CALL_PATH */,
|
|
4721
|
+
jsonData,
|
|
4722
|
+
{
|
|
4723
|
+
headers: {
|
|
4724
|
+
"Content-Type": "application/json",
|
|
4725
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4726
|
+
}
|
|
4727
|
+
},
|
|
4728
|
+
service
|
|
4729
|
+
);
|
|
4730
|
+
},
|
|
4731
|
+
[env]
|
|
4732
|
+
);
|
|
4733
|
+
const createEntity = (0, import_react10.useCallback)(
|
|
4734
|
+
({
|
|
4735
|
+
model,
|
|
4736
|
+
args,
|
|
4737
|
+
xNode,
|
|
4738
|
+
service
|
|
4739
|
+
}) => {
|
|
4740
|
+
const jsonData = {
|
|
4741
|
+
model,
|
|
4742
|
+
method: "create" /* CREATE */,
|
|
4743
|
+
args
|
|
4744
|
+
};
|
|
4745
|
+
return env?.requests.post(
|
|
4746
|
+
"/call" /* CALL_PATH */,
|
|
4747
|
+
jsonData,
|
|
4748
|
+
{
|
|
4749
|
+
headers: {
|
|
4750
|
+
"Content-Type": "application/json",
|
|
4751
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4752
|
+
}
|
|
4753
|
+
},
|
|
4754
|
+
service
|
|
4755
|
+
);
|
|
4756
|
+
},
|
|
4757
|
+
[env]
|
|
4758
|
+
);
|
|
4759
|
+
const getList = (0, import_react10.useCallback)(
|
|
4760
|
+
({
|
|
4761
|
+
model,
|
|
4762
|
+
domain,
|
|
4763
|
+
xNode,
|
|
4764
|
+
service,
|
|
4765
|
+
specification
|
|
4766
|
+
}) => {
|
|
4767
|
+
const jsonData = {
|
|
4768
|
+
model,
|
|
4769
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4770
|
+
kwargs: {
|
|
4771
|
+
domain,
|
|
4772
|
+
specification
|
|
4773
|
+
}
|
|
4774
|
+
};
|
|
4775
|
+
return env?.requests.post(
|
|
4776
|
+
"/call" /* CALL_PATH */,
|
|
4777
|
+
jsonData,
|
|
4778
|
+
{
|
|
4779
|
+
headers: {
|
|
4780
|
+
"Content-Type": "application/json",
|
|
4781
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4782
|
+
}
|
|
4783
|
+
},
|
|
4784
|
+
service
|
|
4785
|
+
);
|
|
4786
|
+
},
|
|
4787
|
+
[env]
|
|
4788
|
+
);
|
|
4675
4789
|
return {
|
|
4676
4790
|
getView,
|
|
4677
4791
|
getMenu,
|
|
@@ -4692,7 +4806,10 @@ function useViewService() {
|
|
|
4692
4806
|
updateClosedSession,
|
|
4693
4807
|
manageSession,
|
|
4694
4808
|
handleClosingSession,
|
|
4695
|
-
createSession
|
|
4809
|
+
createSession,
|
|
4810
|
+
getPOS,
|
|
4811
|
+
createEntity,
|
|
4812
|
+
getList
|
|
4696
4813
|
};
|
|
4697
4814
|
}
|
|
4698
4815
|
|
|
@@ -6449,6 +6566,15 @@ var import_react_query73 = require("@tanstack/react-query");
|
|
|
6449
6566
|
// src/hooks/view/use-create-session.ts
|
|
6450
6567
|
var import_react_query74 = require("@tanstack/react-query");
|
|
6451
6568
|
|
|
6569
|
+
// src/hooks/view/use-get-pos.ts
|
|
6570
|
+
var import_react_query75 = require("@tanstack/react-query");
|
|
6571
|
+
|
|
6572
|
+
// src/hooks/view/use-create-entity.ts
|
|
6573
|
+
var import_react_query76 = require("@tanstack/react-query");
|
|
6574
|
+
|
|
6575
|
+
// src/hooks/view/use-get-list.ts
|
|
6576
|
+
var import_react_query77 = require("@tanstack/react-query");
|
|
6577
|
+
|
|
6452
6578
|
// src/provider/service-provider.tsx
|
|
6453
6579
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
6454
6580
|
var ServiceContext = (0, import_react13.createContext)(null);
|
package/dist/provider.mjs
CHANGED
|
@@ -4629,6 +4629,120 @@ function useViewService() {
|
|
|
4629
4629
|
},
|
|
4630
4630
|
[env]
|
|
4631
4631
|
);
|
|
4632
|
+
const getPOS = useCallback9(
|
|
4633
|
+
({
|
|
4634
|
+
model,
|
|
4635
|
+
args,
|
|
4636
|
+
domain,
|
|
4637
|
+
xNode,
|
|
4638
|
+
service
|
|
4639
|
+
}) => {
|
|
4640
|
+
const jsonData = {
|
|
4641
|
+
model,
|
|
4642
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4643
|
+
args,
|
|
4644
|
+
kwargs: {
|
|
4645
|
+
domain: [domain],
|
|
4646
|
+
specification: {
|
|
4647
|
+
cash_control: {},
|
|
4648
|
+
current_session_id: {
|
|
4649
|
+
fields: {
|
|
4650
|
+
display_name: {}
|
|
4651
|
+
}
|
|
4652
|
+
},
|
|
4653
|
+
current_session_state: {},
|
|
4654
|
+
pos_session_state: {},
|
|
4655
|
+
pos_session_duration: {},
|
|
4656
|
+
currency_id: {
|
|
4657
|
+
fields: {
|
|
4658
|
+
display_name: {}
|
|
4659
|
+
}
|
|
4660
|
+
},
|
|
4661
|
+
name: {},
|
|
4662
|
+
pos_session_username: {},
|
|
4663
|
+
last_session_closing_date: {},
|
|
4664
|
+
last_session_closing_cash: {},
|
|
4665
|
+
number_of_rescue_session: {},
|
|
4666
|
+
current_user_id: {
|
|
4667
|
+
fields: {
|
|
4668
|
+
display_name: {}
|
|
4669
|
+
}
|
|
4670
|
+
},
|
|
4671
|
+
customer_display_type: {},
|
|
4672
|
+
module_pos_restaurant: {}
|
|
4673
|
+
}
|
|
4674
|
+
}
|
|
4675
|
+
};
|
|
4676
|
+
return env?.requests.post(
|
|
4677
|
+
"/call" /* CALL_PATH */,
|
|
4678
|
+
jsonData,
|
|
4679
|
+
{
|
|
4680
|
+
headers: {
|
|
4681
|
+
"Content-Type": "application/json",
|
|
4682
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4683
|
+
}
|
|
4684
|
+
},
|
|
4685
|
+
service
|
|
4686
|
+
);
|
|
4687
|
+
},
|
|
4688
|
+
[env]
|
|
4689
|
+
);
|
|
4690
|
+
const createEntity = useCallback9(
|
|
4691
|
+
({
|
|
4692
|
+
model,
|
|
4693
|
+
args,
|
|
4694
|
+
xNode,
|
|
4695
|
+
service
|
|
4696
|
+
}) => {
|
|
4697
|
+
const jsonData = {
|
|
4698
|
+
model,
|
|
4699
|
+
method: "create" /* CREATE */,
|
|
4700
|
+
args
|
|
4701
|
+
};
|
|
4702
|
+
return env?.requests.post(
|
|
4703
|
+
"/call" /* CALL_PATH */,
|
|
4704
|
+
jsonData,
|
|
4705
|
+
{
|
|
4706
|
+
headers: {
|
|
4707
|
+
"Content-Type": "application/json",
|
|
4708
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4709
|
+
}
|
|
4710
|
+
},
|
|
4711
|
+
service
|
|
4712
|
+
);
|
|
4713
|
+
},
|
|
4714
|
+
[env]
|
|
4715
|
+
);
|
|
4716
|
+
const getList = useCallback9(
|
|
4717
|
+
({
|
|
4718
|
+
model,
|
|
4719
|
+
domain,
|
|
4720
|
+
xNode,
|
|
4721
|
+
service,
|
|
4722
|
+
specification
|
|
4723
|
+
}) => {
|
|
4724
|
+
const jsonData = {
|
|
4725
|
+
model,
|
|
4726
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4727
|
+
kwargs: {
|
|
4728
|
+
domain,
|
|
4729
|
+
specification
|
|
4730
|
+
}
|
|
4731
|
+
};
|
|
4732
|
+
return env?.requests.post(
|
|
4733
|
+
"/call" /* CALL_PATH */,
|
|
4734
|
+
jsonData,
|
|
4735
|
+
{
|
|
4736
|
+
headers: {
|
|
4737
|
+
"Content-Type": "application/json",
|
|
4738
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4739
|
+
}
|
|
4740
|
+
},
|
|
4741
|
+
service
|
|
4742
|
+
);
|
|
4743
|
+
},
|
|
4744
|
+
[env]
|
|
4745
|
+
);
|
|
4632
4746
|
return {
|
|
4633
4747
|
getView,
|
|
4634
4748
|
getMenu,
|
|
@@ -4649,7 +4763,10 @@ function useViewService() {
|
|
|
4649
4763
|
updateClosedSession,
|
|
4650
4764
|
manageSession,
|
|
4651
4765
|
handleClosingSession,
|
|
4652
|
-
createSession
|
|
4766
|
+
createSession,
|
|
4767
|
+
getPOS,
|
|
4768
|
+
createEntity,
|
|
4769
|
+
getList
|
|
4653
4770
|
};
|
|
4654
4771
|
}
|
|
4655
4772
|
|
|
@@ -6406,6 +6523,15 @@ import { useMutation as useMutation51 } from "@tanstack/react-query";
|
|
|
6406
6523
|
// src/hooks/view/use-create-session.ts
|
|
6407
6524
|
import { useMutation as useMutation52 } from "@tanstack/react-query";
|
|
6408
6525
|
|
|
6526
|
+
// src/hooks/view/use-get-pos.ts
|
|
6527
|
+
import { useMutation as useMutation53 } from "@tanstack/react-query";
|
|
6528
|
+
|
|
6529
|
+
// src/hooks/view/use-create-entity.ts
|
|
6530
|
+
import { useMutation as useMutation54 } from "@tanstack/react-query";
|
|
6531
|
+
|
|
6532
|
+
// src/hooks/view/use-get-list.ts
|
|
6533
|
+
import { useMutation as useMutation55 } from "@tanstack/react-query";
|
|
6534
|
+
|
|
6409
6535
|
// src/provider/service-provider.tsx
|
|
6410
6536
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
6411
6537
|
var ServiceContext = createContext2(null);
|
package/dist/services.d.mts
CHANGED
|
@@ -309,6 +309,26 @@ declare function useViewService(): {
|
|
|
309
309
|
service: string;
|
|
310
310
|
xNode: string;
|
|
311
311
|
}) => any;
|
|
312
|
+
getPOS: ({ model, args, domain, xNode, service, }: {
|
|
313
|
+
model: string;
|
|
314
|
+
args: [];
|
|
315
|
+
domain: [];
|
|
316
|
+
service: string;
|
|
317
|
+
xNode: string;
|
|
318
|
+
}) => any;
|
|
319
|
+
createEntity: ({ model, args, xNode, service, }: {
|
|
320
|
+
model: string;
|
|
321
|
+
args: [];
|
|
322
|
+
service: string;
|
|
323
|
+
xNode: string;
|
|
324
|
+
}) => any;
|
|
325
|
+
getList: ({ model, domain, xNode, service, specification, }: {
|
|
326
|
+
model: string;
|
|
327
|
+
domain: [];
|
|
328
|
+
service: string;
|
|
329
|
+
xNode: string;
|
|
330
|
+
specification: any;
|
|
331
|
+
}) => any;
|
|
312
332
|
};
|
|
313
333
|
|
|
314
334
|
export { useActionService, useAuthService, useCompanyService, useExcelService, useFormService, useKanbanService, useModelService, useUserService, useViewService };
|
package/dist/services.d.ts
CHANGED
|
@@ -309,6 +309,26 @@ declare function useViewService(): {
|
|
|
309
309
|
service: string;
|
|
310
310
|
xNode: string;
|
|
311
311
|
}) => any;
|
|
312
|
+
getPOS: ({ model, args, domain, xNode, service, }: {
|
|
313
|
+
model: string;
|
|
314
|
+
args: [];
|
|
315
|
+
domain: [];
|
|
316
|
+
service: string;
|
|
317
|
+
xNode: string;
|
|
318
|
+
}) => any;
|
|
319
|
+
createEntity: ({ model, args, xNode, service, }: {
|
|
320
|
+
model: string;
|
|
321
|
+
args: [];
|
|
322
|
+
service: string;
|
|
323
|
+
xNode: string;
|
|
324
|
+
}) => any;
|
|
325
|
+
getList: ({ model, domain, xNode, service, specification, }: {
|
|
326
|
+
model: string;
|
|
327
|
+
domain: [];
|
|
328
|
+
service: string;
|
|
329
|
+
xNode: string;
|
|
330
|
+
specification: any;
|
|
331
|
+
}) => any;
|
|
312
332
|
};
|
|
313
333
|
|
|
314
334
|
export { useActionService, useAuthService, useCompanyService, useExcelService, useFormService, useKanbanService, useModelService, useUserService, useViewService };
|
package/dist/services.js
CHANGED
|
@@ -3065,6 +3065,15 @@ var import_react_query73 = require("@tanstack/react-query");
|
|
|
3065
3065
|
// src/hooks/view/use-create-session.ts
|
|
3066
3066
|
var import_react_query74 = require("@tanstack/react-query");
|
|
3067
3067
|
|
|
3068
|
+
// src/hooks/view/use-get-pos.ts
|
|
3069
|
+
var import_react_query75 = require("@tanstack/react-query");
|
|
3070
|
+
|
|
3071
|
+
// src/hooks/view/use-create-entity.ts
|
|
3072
|
+
var import_react_query76 = require("@tanstack/react-query");
|
|
3073
|
+
|
|
3074
|
+
// src/hooks/view/use-get-list.ts
|
|
3075
|
+
var import_react_query77 = require("@tanstack/react-query");
|
|
3076
|
+
|
|
3068
3077
|
// src/provider/service-provider.tsx
|
|
3069
3078
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
3070
3079
|
var ServiceContext = (0, import_react4.createContext)(null);
|
|
@@ -4857,6 +4866,120 @@ function useViewService() {
|
|
|
4857
4866
|
},
|
|
4858
4867
|
[env]
|
|
4859
4868
|
);
|
|
4869
|
+
const getPOS = (0, import_react14.useCallback)(
|
|
4870
|
+
({
|
|
4871
|
+
model,
|
|
4872
|
+
args,
|
|
4873
|
+
domain,
|
|
4874
|
+
xNode,
|
|
4875
|
+
service
|
|
4876
|
+
}) => {
|
|
4877
|
+
const jsonData = {
|
|
4878
|
+
model,
|
|
4879
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4880
|
+
args,
|
|
4881
|
+
kwargs: {
|
|
4882
|
+
domain: [domain],
|
|
4883
|
+
specification: {
|
|
4884
|
+
cash_control: {},
|
|
4885
|
+
current_session_id: {
|
|
4886
|
+
fields: {
|
|
4887
|
+
display_name: {}
|
|
4888
|
+
}
|
|
4889
|
+
},
|
|
4890
|
+
current_session_state: {},
|
|
4891
|
+
pos_session_state: {},
|
|
4892
|
+
pos_session_duration: {},
|
|
4893
|
+
currency_id: {
|
|
4894
|
+
fields: {
|
|
4895
|
+
display_name: {}
|
|
4896
|
+
}
|
|
4897
|
+
},
|
|
4898
|
+
name: {},
|
|
4899
|
+
pos_session_username: {},
|
|
4900
|
+
last_session_closing_date: {},
|
|
4901
|
+
last_session_closing_cash: {},
|
|
4902
|
+
number_of_rescue_session: {},
|
|
4903
|
+
current_user_id: {
|
|
4904
|
+
fields: {
|
|
4905
|
+
display_name: {}
|
|
4906
|
+
}
|
|
4907
|
+
},
|
|
4908
|
+
customer_display_type: {},
|
|
4909
|
+
module_pos_restaurant: {}
|
|
4910
|
+
}
|
|
4911
|
+
}
|
|
4912
|
+
};
|
|
4913
|
+
return env?.requests.post(
|
|
4914
|
+
"/call" /* CALL_PATH */,
|
|
4915
|
+
jsonData,
|
|
4916
|
+
{
|
|
4917
|
+
headers: {
|
|
4918
|
+
"Content-Type": "application/json",
|
|
4919
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4920
|
+
}
|
|
4921
|
+
},
|
|
4922
|
+
service
|
|
4923
|
+
);
|
|
4924
|
+
},
|
|
4925
|
+
[env]
|
|
4926
|
+
);
|
|
4927
|
+
const createEntity = (0, import_react14.useCallback)(
|
|
4928
|
+
({
|
|
4929
|
+
model,
|
|
4930
|
+
args,
|
|
4931
|
+
xNode,
|
|
4932
|
+
service
|
|
4933
|
+
}) => {
|
|
4934
|
+
const jsonData = {
|
|
4935
|
+
model,
|
|
4936
|
+
method: "create" /* CREATE */,
|
|
4937
|
+
args
|
|
4938
|
+
};
|
|
4939
|
+
return env?.requests.post(
|
|
4940
|
+
"/call" /* CALL_PATH */,
|
|
4941
|
+
jsonData,
|
|
4942
|
+
{
|
|
4943
|
+
headers: {
|
|
4944
|
+
"Content-Type": "application/json",
|
|
4945
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4946
|
+
}
|
|
4947
|
+
},
|
|
4948
|
+
service
|
|
4949
|
+
);
|
|
4950
|
+
},
|
|
4951
|
+
[env]
|
|
4952
|
+
);
|
|
4953
|
+
const getList = (0, import_react14.useCallback)(
|
|
4954
|
+
({
|
|
4955
|
+
model,
|
|
4956
|
+
domain,
|
|
4957
|
+
xNode,
|
|
4958
|
+
service,
|
|
4959
|
+
specification
|
|
4960
|
+
}) => {
|
|
4961
|
+
const jsonData = {
|
|
4962
|
+
model,
|
|
4963
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4964
|
+
kwargs: {
|
|
4965
|
+
domain,
|
|
4966
|
+
specification
|
|
4967
|
+
}
|
|
4968
|
+
};
|
|
4969
|
+
return env?.requests.post(
|
|
4970
|
+
"/call" /* CALL_PATH */,
|
|
4971
|
+
jsonData,
|
|
4972
|
+
{
|
|
4973
|
+
headers: {
|
|
4974
|
+
"Content-Type": "application/json",
|
|
4975
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4976
|
+
}
|
|
4977
|
+
},
|
|
4978
|
+
service
|
|
4979
|
+
);
|
|
4980
|
+
},
|
|
4981
|
+
[env]
|
|
4982
|
+
);
|
|
4860
4983
|
return {
|
|
4861
4984
|
getView,
|
|
4862
4985
|
getMenu,
|
|
@@ -4877,7 +5000,10 @@ function useViewService() {
|
|
|
4877
5000
|
updateClosedSession,
|
|
4878
5001
|
manageSession,
|
|
4879
5002
|
handleClosingSession,
|
|
4880
|
-
createSession
|
|
5003
|
+
createSession,
|
|
5004
|
+
getPOS,
|
|
5005
|
+
createEntity,
|
|
5006
|
+
getList
|
|
4881
5007
|
};
|
|
4882
5008
|
}
|
|
4883
5009
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/services.mjs
CHANGED
|
@@ -3021,6 +3021,15 @@ 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
|
+
|
|
3024
3033
|
// src/provider/service-provider.tsx
|
|
3025
3034
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
3026
3035
|
var ServiceContext = createContext2(null);
|
|
@@ -4813,6 +4822,120 @@ function useViewService() {
|
|
|
4813
4822
|
},
|
|
4814
4823
|
[env]
|
|
4815
4824
|
);
|
|
4825
|
+
const getPOS = useCallback10(
|
|
4826
|
+
({
|
|
4827
|
+
model,
|
|
4828
|
+
args,
|
|
4829
|
+
domain,
|
|
4830
|
+
xNode,
|
|
4831
|
+
service
|
|
4832
|
+
}) => {
|
|
4833
|
+
const jsonData = {
|
|
4834
|
+
model,
|
|
4835
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4836
|
+
args,
|
|
4837
|
+
kwargs: {
|
|
4838
|
+
domain: [domain],
|
|
4839
|
+
specification: {
|
|
4840
|
+
cash_control: {},
|
|
4841
|
+
current_session_id: {
|
|
4842
|
+
fields: {
|
|
4843
|
+
display_name: {}
|
|
4844
|
+
}
|
|
4845
|
+
},
|
|
4846
|
+
current_session_state: {},
|
|
4847
|
+
pos_session_state: {},
|
|
4848
|
+
pos_session_duration: {},
|
|
4849
|
+
currency_id: {
|
|
4850
|
+
fields: {
|
|
4851
|
+
display_name: {}
|
|
4852
|
+
}
|
|
4853
|
+
},
|
|
4854
|
+
name: {},
|
|
4855
|
+
pos_session_username: {},
|
|
4856
|
+
last_session_closing_date: {},
|
|
4857
|
+
last_session_closing_cash: {},
|
|
4858
|
+
number_of_rescue_session: {},
|
|
4859
|
+
current_user_id: {
|
|
4860
|
+
fields: {
|
|
4861
|
+
display_name: {}
|
|
4862
|
+
}
|
|
4863
|
+
},
|
|
4864
|
+
customer_display_type: {},
|
|
4865
|
+
module_pos_restaurant: {}
|
|
4866
|
+
}
|
|
4867
|
+
}
|
|
4868
|
+
};
|
|
4869
|
+
return env?.requests.post(
|
|
4870
|
+
"/call" /* CALL_PATH */,
|
|
4871
|
+
jsonData,
|
|
4872
|
+
{
|
|
4873
|
+
headers: {
|
|
4874
|
+
"Content-Type": "application/json",
|
|
4875
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4876
|
+
}
|
|
4877
|
+
},
|
|
4878
|
+
service
|
|
4879
|
+
);
|
|
4880
|
+
},
|
|
4881
|
+
[env]
|
|
4882
|
+
);
|
|
4883
|
+
const createEntity = useCallback10(
|
|
4884
|
+
({
|
|
4885
|
+
model,
|
|
4886
|
+
args,
|
|
4887
|
+
xNode,
|
|
4888
|
+
service
|
|
4889
|
+
}) => {
|
|
4890
|
+
const jsonData = {
|
|
4891
|
+
model,
|
|
4892
|
+
method: "create" /* CREATE */,
|
|
4893
|
+
args
|
|
4894
|
+
};
|
|
4895
|
+
return env?.requests.post(
|
|
4896
|
+
"/call" /* CALL_PATH */,
|
|
4897
|
+
jsonData,
|
|
4898
|
+
{
|
|
4899
|
+
headers: {
|
|
4900
|
+
"Content-Type": "application/json",
|
|
4901
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4902
|
+
}
|
|
4903
|
+
},
|
|
4904
|
+
service
|
|
4905
|
+
);
|
|
4906
|
+
},
|
|
4907
|
+
[env]
|
|
4908
|
+
);
|
|
4909
|
+
const getList = useCallback10(
|
|
4910
|
+
({
|
|
4911
|
+
model,
|
|
4912
|
+
domain,
|
|
4913
|
+
xNode,
|
|
4914
|
+
service,
|
|
4915
|
+
specification
|
|
4916
|
+
}) => {
|
|
4917
|
+
const jsonData = {
|
|
4918
|
+
model,
|
|
4919
|
+
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
4920
|
+
kwargs: {
|
|
4921
|
+
domain,
|
|
4922
|
+
specification
|
|
4923
|
+
}
|
|
4924
|
+
};
|
|
4925
|
+
return env?.requests.post(
|
|
4926
|
+
"/call" /* CALL_PATH */,
|
|
4927
|
+
jsonData,
|
|
4928
|
+
{
|
|
4929
|
+
headers: {
|
|
4930
|
+
"Content-Type": "application/json",
|
|
4931
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4932
|
+
}
|
|
4933
|
+
},
|
|
4934
|
+
service
|
|
4935
|
+
);
|
|
4936
|
+
},
|
|
4937
|
+
[env]
|
|
4938
|
+
);
|
|
4816
4939
|
return {
|
|
4817
4940
|
getView,
|
|
4818
4941
|
getMenu,
|
|
@@ -4833,7 +4956,10 @@ function useViewService() {
|
|
|
4833
4956
|
updateClosedSession,
|
|
4834
4957
|
manageSession,
|
|
4835
4958
|
handleClosingSession,
|
|
4836
|
-
createSession
|
|
4959
|
+
createSession,
|
|
4960
|
+
getPOS,
|
|
4961
|
+
createEntity,
|
|
4962
|
+
getList
|
|
4837
4963
|
};
|
|
4838
4964
|
}
|
|
4839
4965
|
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 };
|