@fctc/interface-logic 3.0.6 → 3.0.7
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 +6 -7
- package/dist/hooks.d.ts +6 -7
- package/dist/hooks.js +41 -48
- package/dist/hooks.mjs +39 -46
- package/dist/provider.d.mts +3 -3
- package/dist/provider.d.ts +3 -3
- package/dist/provider.js +39 -46
- package/dist/provider.mjs +39 -46
- package/dist/services.d.mts +5 -4
- package/dist/services.d.ts +5 -4
- package/dist/services.js +21 -30
- package/dist/services.mjs +21 -30
- package/package.json +1 -1
package/dist/hooks.d.mts
CHANGED
|
@@ -42,9 +42,7 @@ declare const useValidateActionToken: () => _tanstack_react_query.UseMutationRes
|
|
|
42
42
|
actionToken: string;
|
|
43
43
|
}, unknown>;
|
|
44
44
|
|
|
45
|
-
declare const useGetCompanyInfo: (
|
|
46
|
-
service?: string;
|
|
47
|
-
}) => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
|
|
45
|
+
declare const useGetCompanyInfo: () => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
|
|
48
46
|
|
|
49
47
|
declare const useGetCurrentCompany: ({ service }: {
|
|
50
48
|
service?: string;
|
|
@@ -278,7 +276,7 @@ declare const useGetGroups: ({ model, width_context, }: {
|
|
|
278
276
|
|
|
279
277
|
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string, xNode?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
280
278
|
|
|
281
|
-
declare const useGetMenu: (context: any, specification: any, enabled?: boolean, domain?: any
|
|
279
|
+
declare const useGetMenu: (context: any, specification: any, enabled?: boolean, domain?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
282
280
|
|
|
283
281
|
declare const useGetPrintReport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
284
282
|
id: number;
|
|
@@ -528,14 +526,15 @@ declare const useCheckPayment: () => _tanstack_react_query.UseMutationResult<unk
|
|
|
528
526
|
xNode: string;
|
|
529
527
|
}, unknown>;
|
|
530
528
|
|
|
531
|
-
declare const
|
|
529
|
+
declare const useHandleCloseSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
532
530
|
model: string;
|
|
533
531
|
ids: any;
|
|
534
532
|
service: string;
|
|
535
533
|
xNode: string;
|
|
534
|
+
method: string;
|
|
536
535
|
}, unknown>;
|
|
537
536
|
|
|
538
|
-
declare const
|
|
537
|
+
declare const useHandleClosingDetailSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
539
538
|
model: string;
|
|
540
539
|
ids: any;
|
|
541
540
|
method: string;
|
|
@@ -544,4 +543,4 @@ declare const useGetDetailEntity: () => _tanstack_react_query.UseMutationResult<
|
|
|
544
543
|
kwargs: any;
|
|
545
544
|
}, unknown>;
|
|
546
545
|
|
|
547
|
-
export { useAddEntity, useButton, useChangeStatus, useCheckPayment, useCreateEntity, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany,
|
|
546
|
+
export { useAddEntity, useButton, useChangeStatus, useCheckPayment, useCreateEntity, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetOrderLine, useGetPos, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
|
package/dist/hooks.d.ts
CHANGED
|
@@ -42,9 +42,7 @@ declare const useValidateActionToken: () => _tanstack_react_query.UseMutationRes
|
|
|
42
42
|
actionToken: string;
|
|
43
43
|
}, unknown>;
|
|
44
44
|
|
|
45
|
-
declare const useGetCompanyInfo: (
|
|
46
|
-
service?: string;
|
|
47
|
-
}) => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
|
|
45
|
+
declare const useGetCompanyInfo: () => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
|
|
48
46
|
|
|
49
47
|
declare const useGetCurrentCompany: ({ service }: {
|
|
50
48
|
service?: string;
|
|
@@ -278,7 +276,7 @@ declare const useGetGroups: ({ model, width_context, }: {
|
|
|
278
276
|
|
|
279
277
|
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string, xNode?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
280
278
|
|
|
281
|
-
declare const useGetMenu: (context: any, specification: any, enabled?: boolean, domain?: any
|
|
279
|
+
declare const useGetMenu: (context: any, specification: any, enabled?: boolean, domain?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
282
280
|
|
|
283
281
|
declare const useGetPrintReport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
284
282
|
id: number;
|
|
@@ -528,14 +526,15 @@ declare const useCheckPayment: () => _tanstack_react_query.UseMutationResult<unk
|
|
|
528
526
|
xNode: string;
|
|
529
527
|
}, unknown>;
|
|
530
528
|
|
|
531
|
-
declare const
|
|
529
|
+
declare const useHandleCloseSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
532
530
|
model: string;
|
|
533
531
|
ids: any;
|
|
534
532
|
service: string;
|
|
535
533
|
xNode: string;
|
|
534
|
+
method: string;
|
|
536
535
|
}, unknown>;
|
|
537
536
|
|
|
538
|
-
declare const
|
|
537
|
+
declare const useHandleClosingDetailSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
539
538
|
model: string;
|
|
540
539
|
ids: any;
|
|
541
540
|
method: string;
|
|
@@ -544,4 +543,4 @@ declare const useGetDetailEntity: () => _tanstack_react_query.UseMutationResult<
|
|
|
544
543
|
kwargs: any;
|
|
545
544
|
}, unknown>;
|
|
546
545
|
|
|
547
|
-
export { useAddEntity, useButton, useChangeStatus, useCheckPayment, useCreateEntity, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany,
|
|
546
|
+
export { useAddEntity, useButton, useChangeStatus, useCheckPayment, useCreateEntity, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetOrderLine, useGetPos, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
|
package/dist/hooks.js
CHANGED
|
@@ -56,9 +56,7 @@ __export(hooks_exports, {
|
|
|
56
56
|
useGetConversionRate: () => use_get_conversion_rate_default,
|
|
57
57
|
useGetCurrency: () => use_get_currency_default,
|
|
58
58
|
useGetCurrentCompany: () => use_get_current_company_default,
|
|
59
|
-
useGetDataCloseSession: () => use_get_data_close_session_default,
|
|
60
59
|
useGetDetail: () => use_get_detail_default,
|
|
61
|
-
useGetDetailEntity: () => use_get_detail_entity_default,
|
|
62
60
|
useGetFieldExport: () => use_get_field_export_default,
|
|
63
61
|
useGetFieldOnChange: () => use_get_field_onchange_default,
|
|
64
62
|
useGetFileExcel: () => use_get_file_excel_default,
|
|
@@ -82,6 +80,8 @@ __export(hooks_exports, {
|
|
|
82
80
|
useGetUser: () => use_get_user_default,
|
|
83
81
|
useGetView: () => use_get_view_default,
|
|
84
82
|
useGrantAccess: () => use_grant_access_default,
|
|
83
|
+
useHandleCloseSession: () => use_handle_close_session_default,
|
|
84
|
+
useHandleClosingDetailSession: () => use_handle_closing_detail_session_default,
|
|
85
85
|
useHandleClosingSession: () => use_handle_closing_session_default,
|
|
86
86
|
useIsValidToken: () => use_isvalid_token_default,
|
|
87
87
|
useLoadAction: () => use_load_action_default,
|
|
@@ -3404,7 +3404,7 @@ function useCompanyService() {
|
|
|
3404
3404
|
[env]
|
|
3405
3405
|
);
|
|
3406
3406
|
const getInfoCompany = (0, import_react8.useCallback)(
|
|
3407
|
-
async (id
|
|
3407
|
+
async (id) => {
|
|
3408
3408
|
const jsonData = {
|
|
3409
3409
|
ids: [id],
|
|
3410
3410
|
model: "res.company" /* COMPANY */,
|
|
@@ -3419,16 +3419,11 @@ function useCompanyService() {
|
|
|
3419
3419
|
}
|
|
3420
3420
|
}
|
|
3421
3421
|
};
|
|
3422
|
-
return await env.requests.post(
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
"Content-Type": "application/json"
|
|
3428
|
-
}
|
|
3429
|
-
},
|
|
3430
|
-
service
|
|
3431
|
-
);
|
|
3422
|
+
return await env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3423
|
+
headers: {
|
|
3424
|
+
"Content-Type": "application/json"
|
|
3425
|
+
}
|
|
3426
|
+
});
|
|
3432
3427
|
},
|
|
3433
3428
|
[env]
|
|
3434
3429
|
);
|
|
@@ -4384,7 +4379,7 @@ function useViewService() {
|
|
|
4384
4379
|
[env]
|
|
4385
4380
|
);
|
|
4386
4381
|
const getMenu = (0, import_react14.useCallback)(
|
|
4387
|
-
async (context, specification, domain
|
|
4382
|
+
async (context, specification, domain) => {
|
|
4388
4383
|
const jsonData = {
|
|
4389
4384
|
model: "ir.ui.menu" /* MENU */,
|
|
4390
4385
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4401,16 +4396,11 @@ function useViewService() {
|
|
|
4401
4396
|
]
|
|
4402
4397
|
}
|
|
4403
4398
|
};
|
|
4404
|
-
return env?.requests?.post(
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
"Content-Type": "application/json"
|
|
4410
|
-
}
|
|
4411
|
-
},
|
|
4412
|
-
service
|
|
4413
|
-
);
|
|
4399
|
+
return env?.requests?.post("/call" /* CALL_PATH */, jsonData, {
|
|
4400
|
+
headers: {
|
|
4401
|
+
"Content-Type": "application/json"
|
|
4402
|
+
}
|
|
4403
|
+
});
|
|
4414
4404
|
},
|
|
4415
4405
|
[env]
|
|
4416
4406
|
);
|
|
@@ -5236,17 +5226,18 @@ function useViewService() {
|
|
|
5236
5226
|
},
|
|
5237
5227
|
[env]
|
|
5238
5228
|
);
|
|
5239
|
-
const
|
|
5229
|
+
const handleCloseSession = (0, import_react14.useCallback)(
|
|
5240
5230
|
({
|
|
5241
5231
|
model,
|
|
5242
5232
|
ids,
|
|
5243
5233
|
xNode,
|
|
5244
|
-
service
|
|
5234
|
+
service,
|
|
5235
|
+
method
|
|
5245
5236
|
}) => {
|
|
5246
5237
|
const jsonData = {
|
|
5247
5238
|
model,
|
|
5248
5239
|
ids,
|
|
5249
|
-
method
|
|
5240
|
+
method
|
|
5250
5241
|
};
|
|
5251
5242
|
return env?.requests.post(
|
|
5252
5243
|
"/call" /* CALL_PATH */,
|
|
@@ -5262,7 +5253,7 @@ function useViewService() {
|
|
|
5262
5253
|
},
|
|
5263
5254
|
[env]
|
|
5264
5255
|
);
|
|
5265
|
-
const
|
|
5256
|
+
const handleClosingDetailSession = (0, import_react14.useCallback)(
|
|
5266
5257
|
({
|
|
5267
5258
|
model,
|
|
5268
5259
|
ids,
|
|
@@ -5323,8 +5314,8 @@ function useViewService() {
|
|
|
5323
5314
|
getProductImage,
|
|
5324
5315
|
addEntity,
|
|
5325
5316
|
checkPayment,
|
|
5326
|
-
|
|
5327
|
-
|
|
5317
|
+
handleCloseSession,
|
|
5318
|
+
handleClosingDetailSession
|
|
5328
5319
|
};
|
|
5329
5320
|
}
|
|
5330
5321
|
|
|
@@ -5485,10 +5476,10 @@ var use_validate_action_token_default = useValidateActionToken;
|
|
|
5485
5476
|
|
|
5486
5477
|
// src/hooks/company/use-get-company-info.ts
|
|
5487
5478
|
var import_react_query15 = require("@tanstack/react-query");
|
|
5488
|
-
var useGetCompanyInfo = (
|
|
5479
|
+
var useGetCompanyInfo = () => {
|
|
5489
5480
|
const { getInfoCompany } = useCompanyService();
|
|
5490
5481
|
return (0, import_react_query15.useMutation)({
|
|
5491
|
-
mutationFn: (id) => getInfoCompany(id
|
|
5482
|
+
mutationFn: (id) => getInfoCompany(id)
|
|
5492
5483
|
});
|
|
5493
5484
|
};
|
|
5494
5485
|
var use_get_company_info_default = useGetCompanyInfo;
|
|
@@ -6322,11 +6313,11 @@ var use_get_list_data_default = useGetListData;
|
|
|
6322
6313
|
|
|
6323
6314
|
// src/hooks/view/use-get-menu.ts
|
|
6324
6315
|
var import_react_query51 = require("@tanstack/react-query");
|
|
6325
|
-
var useGetMenu = (context, specification, enabled, domain
|
|
6316
|
+
var useGetMenu = (context, specification, enabled, domain) => {
|
|
6326
6317
|
const { getMenu } = useViewService();
|
|
6327
6318
|
return (0, import_react_query51.useQuery)({
|
|
6328
6319
|
queryKey: ["menus" /* MENU */, context],
|
|
6329
|
-
queryFn: () => getMenu(context, specification, domain
|
|
6320
|
+
queryFn: () => getMenu(context, specification, domain).then((res) => {
|
|
6330
6321
|
if (res && res?.records && res?.records?.length > 0) {
|
|
6331
6322
|
return res?.records;
|
|
6332
6323
|
}
|
|
@@ -7101,32 +7092,34 @@ var useCheckPayment = () => {
|
|
|
7101
7092
|
};
|
|
7102
7093
|
var use_check_payment_default = useCheckPayment;
|
|
7103
7094
|
|
|
7104
|
-
// src/hooks/view/use-
|
|
7095
|
+
// src/hooks/view/use-handle-close-session.ts
|
|
7105
7096
|
var import_react_query87 = require("@tanstack/react-query");
|
|
7106
|
-
var
|
|
7107
|
-
const {
|
|
7097
|
+
var useHandleCloseSession = () => {
|
|
7098
|
+
const { handleCloseSession } = useViewService();
|
|
7108
7099
|
return (0, import_react_query87.useMutation)({
|
|
7109
7100
|
mutationFn: ({
|
|
7110
7101
|
model,
|
|
7111
7102
|
ids,
|
|
7112
7103
|
xNode,
|
|
7113
|
-
service
|
|
7104
|
+
service,
|
|
7105
|
+
method
|
|
7114
7106
|
}) => {
|
|
7115
|
-
return
|
|
7107
|
+
return handleCloseSession({
|
|
7116
7108
|
model,
|
|
7117
7109
|
ids,
|
|
7118
7110
|
xNode,
|
|
7119
|
-
service
|
|
7111
|
+
service,
|
|
7112
|
+
method
|
|
7120
7113
|
});
|
|
7121
7114
|
}
|
|
7122
7115
|
});
|
|
7123
7116
|
};
|
|
7124
|
-
var
|
|
7117
|
+
var use_handle_close_session_default = useHandleCloseSession;
|
|
7125
7118
|
|
|
7126
|
-
// src/hooks/view/use-
|
|
7119
|
+
// src/hooks/view/use-handle-closing-detail-session.ts
|
|
7127
7120
|
var import_react_query88 = require("@tanstack/react-query");
|
|
7128
|
-
var
|
|
7129
|
-
const {
|
|
7121
|
+
var useHandleClosingDetailSession = () => {
|
|
7122
|
+
const { handleClosingDetailSession } = useViewService();
|
|
7130
7123
|
return (0, import_react_query88.useMutation)({
|
|
7131
7124
|
mutationFn: ({
|
|
7132
7125
|
model,
|
|
@@ -7136,7 +7129,7 @@ var useGetDetailEntity = () => {
|
|
|
7136
7129
|
service,
|
|
7137
7130
|
kwargs
|
|
7138
7131
|
}) => {
|
|
7139
|
-
return
|
|
7132
|
+
return handleClosingDetailSession({
|
|
7140
7133
|
model,
|
|
7141
7134
|
ids,
|
|
7142
7135
|
method,
|
|
@@ -7147,7 +7140,7 @@ var useGetDetailEntity = () => {
|
|
|
7147
7140
|
}
|
|
7148
7141
|
});
|
|
7149
7142
|
};
|
|
7150
|
-
var
|
|
7143
|
+
var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
|
|
7151
7144
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7152
7145
|
0 && (module.exports = {
|
|
7153
7146
|
useAddEntity,
|
|
@@ -7176,9 +7169,7 @@ var use_get_detail_entity_default = useGetDetailEntity;
|
|
|
7176
7169
|
useGetConversionRate,
|
|
7177
7170
|
useGetCurrency,
|
|
7178
7171
|
useGetCurrentCompany,
|
|
7179
|
-
useGetDataCloseSession,
|
|
7180
7172
|
useGetDetail,
|
|
7181
|
-
useGetDetailEntity,
|
|
7182
7173
|
useGetFieldExport,
|
|
7183
7174
|
useGetFieldOnChange,
|
|
7184
7175
|
useGetFileExcel,
|
|
@@ -7202,6 +7193,8 @@ var use_get_detail_entity_default = useGetDetailEntity;
|
|
|
7202
7193
|
useGetUser,
|
|
7203
7194
|
useGetView,
|
|
7204
7195
|
useGrantAccess,
|
|
7196
|
+
useHandleCloseSession,
|
|
7197
|
+
useHandleClosingDetailSession,
|
|
7205
7198
|
useHandleClosingSession,
|
|
7206
7199
|
useIsValidToken,
|
|
7207
7200
|
useLoadAction,
|
package/dist/hooks.mjs
CHANGED
|
@@ -3281,7 +3281,7 @@ function useCompanyService() {
|
|
|
3281
3281
|
[env]
|
|
3282
3282
|
);
|
|
3283
3283
|
const getInfoCompany = useCallback4(
|
|
3284
|
-
async (id
|
|
3284
|
+
async (id) => {
|
|
3285
3285
|
const jsonData = {
|
|
3286
3286
|
ids: [id],
|
|
3287
3287
|
model: "res.company" /* COMPANY */,
|
|
@@ -3296,16 +3296,11 @@ function useCompanyService() {
|
|
|
3296
3296
|
}
|
|
3297
3297
|
}
|
|
3298
3298
|
};
|
|
3299
|
-
return await env.requests.post(
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
"Content-Type": "application/json"
|
|
3305
|
-
}
|
|
3306
|
-
},
|
|
3307
|
-
service
|
|
3308
|
-
);
|
|
3299
|
+
return await env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3300
|
+
headers: {
|
|
3301
|
+
"Content-Type": "application/json"
|
|
3302
|
+
}
|
|
3303
|
+
});
|
|
3309
3304
|
},
|
|
3310
3305
|
[env]
|
|
3311
3306
|
);
|
|
@@ -4261,7 +4256,7 @@ function useViewService() {
|
|
|
4261
4256
|
[env]
|
|
4262
4257
|
);
|
|
4263
4258
|
const getMenu = useCallback10(
|
|
4264
|
-
async (context, specification, domain
|
|
4259
|
+
async (context, specification, domain) => {
|
|
4265
4260
|
const jsonData = {
|
|
4266
4261
|
model: "ir.ui.menu" /* MENU */,
|
|
4267
4262
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4278,16 +4273,11 @@ function useViewService() {
|
|
|
4278
4273
|
]
|
|
4279
4274
|
}
|
|
4280
4275
|
};
|
|
4281
|
-
return env?.requests?.post(
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
"Content-Type": "application/json"
|
|
4287
|
-
}
|
|
4288
|
-
},
|
|
4289
|
-
service
|
|
4290
|
-
);
|
|
4276
|
+
return env?.requests?.post("/call" /* CALL_PATH */, jsonData, {
|
|
4277
|
+
headers: {
|
|
4278
|
+
"Content-Type": "application/json"
|
|
4279
|
+
}
|
|
4280
|
+
});
|
|
4291
4281
|
},
|
|
4292
4282
|
[env]
|
|
4293
4283
|
);
|
|
@@ -5113,17 +5103,18 @@ function useViewService() {
|
|
|
5113
5103
|
},
|
|
5114
5104
|
[env]
|
|
5115
5105
|
);
|
|
5116
|
-
const
|
|
5106
|
+
const handleCloseSession = useCallback10(
|
|
5117
5107
|
({
|
|
5118
5108
|
model,
|
|
5119
5109
|
ids,
|
|
5120
5110
|
xNode,
|
|
5121
|
-
service
|
|
5111
|
+
service,
|
|
5112
|
+
method
|
|
5122
5113
|
}) => {
|
|
5123
5114
|
const jsonData = {
|
|
5124
5115
|
model,
|
|
5125
5116
|
ids,
|
|
5126
|
-
method
|
|
5117
|
+
method
|
|
5127
5118
|
};
|
|
5128
5119
|
return env?.requests.post(
|
|
5129
5120
|
"/call" /* CALL_PATH */,
|
|
@@ -5139,7 +5130,7 @@ function useViewService() {
|
|
|
5139
5130
|
},
|
|
5140
5131
|
[env]
|
|
5141
5132
|
);
|
|
5142
|
-
const
|
|
5133
|
+
const handleClosingDetailSession = useCallback10(
|
|
5143
5134
|
({
|
|
5144
5135
|
model,
|
|
5145
5136
|
ids,
|
|
@@ -5200,8 +5191,8 @@ function useViewService() {
|
|
|
5200
5191
|
getProductImage,
|
|
5201
5192
|
addEntity,
|
|
5202
5193
|
checkPayment,
|
|
5203
|
-
|
|
5204
|
-
|
|
5194
|
+
handleCloseSession,
|
|
5195
|
+
handleClosingDetailSession
|
|
5205
5196
|
};
|
|
5206
5197
|
}
|
|
5207
5198
|
|
|
@@ -5362,10 +5353,10 @@ var use_validate_action_token_default = useValidateActionToken;
|
|
|
5362
5353
|
|
|
5363
5354
|
// src/hooks/company/use-get-company-info.ts
|
|
5364
5355
|
import { useMutation as useMutation13 } from "@tanstack/react-query";
|
|
5365
|
-
var useGetCompanyInfo = (
|
|
5356
|
+
var useGetCompanyInfo = () => {
|
|
5366
5357
|
const { getInfoCompany } = useCompanyService();
|
|
5367
5358
|
return useMutation13({
|
|
5368
|
-
mutationFn: (id) => getInfoCompany(id
|
|
5359
|
+
mutationFn: (id) => getInfoCompany(id)
|
|
5369
5360
|
});
|
|
5370
5361
|
};
|
|
5371
5362
|
var use_get_company_info_default = useGetCompanyInfo;
|
|
@@ -6199,11 +6190,11 @@ var use_get_list_data_default = useGetListData;
|
|
|
6199
6190
|
|
|
6200
6191
|
// src/hooks/view/use-get-menu.ts
|
|
6201
6192
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
|
6202
|
-
var useGetMenu = (context, specification, enabled, domain
|
|
6193
|
+
var useGetMenu = (context, specification, enabled, domain) => {
|
|
6203
6194
|
const { getMenu } = useViewService();
|
|
6204
6195
|
return useQuery15({
|
|
6205
6196
|
queryKey: ["menus" /* MENU */, context],
|
|
6206
|
-
queryFn: () => getMenu(context, specification, domain
|
|
6197
|
+
queryFn: () => getMenu(context, specification, domain).then((res) => {
|
|
6207
6198
|
if (res && res?.records && res?.records?.length > 0) {
|
|
6208
6199
|
return res?.records;
|
|
6209
6200
|
}
|
|
@@ -6978,32 +6969,34 @@ var useCheckPayment = () => {
|
|
|
6978
6969
|
};
|
|
6979
6970
|
var use_check_payment_default = useCheckPayment;
|
|
6980
6971
|
|
|
6981
|
-
// src/hooks/view/use-
|
|
6972
|
+
// src/hooks/view/use-handle-close-session.ts
|
|
6982
6973
|
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
6983
|
-
var
|
|
6984
|
-
const {
|
|
6974
|
+
var useHandleCloseSession = () => {
|
|
6975
|
+
const { handleCloseSession } = useViewService();
|
|
6985
6976
|
return useMutation65({
|
|
6986
6977
|
mutationFn: ({
|
|
6987
6978
|
model,
|
|
6988
6979
|
ids,
|
|
6989
6980
|
xNode,
|
|
6990
|
-
service
|
|
6981
|
+
service,
|
|
6982
|
+
method
|
|
6991
6983
|
}) => {
|
|
6992
|
-
return
|
|
6984
|
+
return handleCloseSession({
|
|
6993
6985
|
model,
|
|
6994
6986
|
ids,
|
|
6995
6987
|
xNode,
|
|
6996
|
-
service
|
|
6988
|
+
service,
|
|
6989
|
+
method
|
|
6997
6990
|
});
|
|
6998
6991
|
}
|
|
6999
6992
|
});
|
|
7000
6993
|
};
|
|
7001
|
-
var
|
|
6994
|
+
var use_handle_close_session_default = useHandleCloseSession;
|
|
7002
6995
|
|
|
7003
|
-
// src/hooks/view/use-
|
|
6996
|
+
// src/hooks/view/use-handle-closing-detail-session.ts
|
|
7004
6997
|
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
7005
|
-
var
|
|
7006
|
-
const {
|
|
6998
|
+
var useHandleClosingDetailSession = () => {
|
|
6999
|
+
const { handleClosingDetailSession } = useViewService();
|
|
7007
7000
|
return useMutation66({
|
|
7008
7001
|
mutationFn: ({
|
|
7009
7002
|
model,
|
|
@@ -7013,7 +7006,7 @@ var useGetDetailEntity = () => {
|
|
|
7013
7006
|
service,
|
|
7014
7007
|
kwargs
|
|
7015
7008
|
}) => {
|
|
7016
|
-
return
|
|
7009
|
+
return handleClosingDetailSession({
|
|
7017
7010
|
model,
|
|
7018
7011
|
ids,
|
|
7019
7012
|
method,
|
|
@@ -7024,7 +7017,7 @@ var useGetDetailEntity = () => {
|
|
|
7024
7017
|
}
|
|
7025
7018
|
});
|
|
7026
7019
|
};
|
|
7027
|
-
var
|
|
7020
|
+
var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
|
|
7028
7021
|
export {
|
|
7029
7022
|
use_add_entity_default as useAddEntity,
|
|
7030
7023
|
use_button_default as useButton,
|
|
@@ -7052,9 +7045,7 @@ export {
|
|
|
7052
7045
|
use_get_conversion_rate_default as useGetConversionRate,
|
|
7053
7046
|
use_get_currency_default as useGetCurrency,
|
|
7054
7047
|
use_get_current_company_default as useGetCurrentCompany,
|
|
7055
|
-
use_get_data_close_session_default as useGetDataCloseSession,
|
|
7056
7048
|
use_get_detail_default as useGetDetail,
|
|
7057
|
-
use_get_detail_entity_default as useGetDetailEntity,
|
|
7058
7049
|
use_get_field_export_default as useGetFieldExport,
|
|
7059
7050
|
use_get_field_onchange_default as useGetFieldOnChange,
|
|
7060
7051
|
use_get_file_excel_default as useGetFileExcel,
|
|
@@ -7078,6 +7069,8 @@ export {
|
|
|
7078
7069
|
use_get_user_default as useGetUser,
|
|
7079
7070
|
use_get_view_default as useGetView,
|
|
7080
7071
|
use_grant_access_default as useGrantAccess,
|
|
7072
|
+
use_handle_close_session_default as useHandleCloseSession,
|
|
7073
|
+
use_handle_closing_detail_session_default as useHandleClosingDetailSession,
|
|
7081
7074
|
use_handle_closing_session_default as useHandleClosingSession,
|
|
7082
7075
|
use_isvalid_token_default as useIsValidToken,
|
|
7083
7076
|
use_load_action_default as useLoadAction,
|
package/dist/provider.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { L as LocalStorageUtilsType } from './local-storage-BPvoMGYJ.mjs';
|
|
4
|
-
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine, useGetProductImage, useAddEntity, useCheckPayment,
|
|
4
|
+
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine, useGetProductImage, useAddEntity, useCheckPayment, useHandleCloseSession, useHandleClosingDetailSession } from './hooks.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-xxw9OeSR.mjs';
|
|
7
7
|
import './base-model-type-DD8uZnDP.mjs';
|
|
@@ -151,8 +151,8 @@ interface ServiceContextType {
|
|
|
151
151
|
useGetProductImage: typeof useGetProductImage;
|
|
152
152
|
useAddEntity: typeof useAddEntity;
|
|
153
153
|
useCheckPayment: typeof useCheckPayment;
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
useHandleCloseSession: typeof useHandleCloseSession;
|
|
155
|
+
useHandleClosingDetailSession: typeof useHandleClosingDetailSession;
|
|
156
156
|
}
|
|
157
157
|
declare const ServiceProvider: ({ children, }: {
|
|
158
158
|
children: React.ReactNode;
|
package/dist/provider.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { L as LocalStorageUtilsType } from './local-storage-BPvoMGYJ.js';
|
|
4
|
-
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine, useGetProductImage, useAddEntity, useCheckPayment,
|
|
4
|
+
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine, useGetProductImage, useAddEntity, useCheckPayment, useHandleCloseSession, useHandleClosingDetailSession } from './hooks.js';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-xxw9OeSR.js';
|
|
7
7
|
import './base-model-type-DD8uZnDP.js';
|
|
@@ -151,8 +151,8 @@ interface ServiceContextType {
|
|
|
151
151
|
useGetProductImage: typeof useGetProductImage;
|
|
152
152
|
useAddEntity: typeof useAddEntity;
|
|
153
153
|
useCheckPayment: typeof useCheckPayment;
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
useHandleCloseSession: typeof useHandleCloseSession;
|
|
155
|
+
useHandleClosingDetailSession: typeof useHandleClosingDetailSession;
|
|
156
156
|
}
|
|
157
157
|
declare const ServiceProvider: ({ children, }: {
|
|
158
158
|
children: React.ReactNode;
|
package/dist/provider.js
CHANGED
|
@@ -3401,7 +3401,7 @@ function useCompanyService() {
|
|
|
3401
3401
|
[env]
|
|
3402
3402
|
);
|
|
3403
3403
|
const getInfoCompany = (0, import_react4.useCallback)(
|
|
3404
|
-
async (id
|
|
3404
|
+
async (id) => {
|
|
3405
3405
|
const jsonData = {
|
|
3406
3406
|
ids: [id],
|
|
3407
3407
|
model: "res.company" /* COMPANY */,
|
|
@@ -3416,16 +3416,11 @@ function useCompanyService() {
|
|
|
3416
3416
|
}
|
|
3417
3417
|
}
|
|
3418
3418
|
};
|
|
3419
|
-
return await env.requests.post(
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
"Content-Type": "application/json"
|
|
3425
|
-
}
|
|
3426
|
-
},
|
|
3427
|
-
service
|
|
3428
|
-
);
|
|
3419
|
+
return await env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3420
|
+
headers: {
|
|
3421
|
+
"Content-Type": "application/json"
|
|
3422
|
+
}
|
|
3423
|
+
});
|
|
3429
3424
|
},
|
|
3430
3425
|
[env]
|
|
3431
3426
|
);
|
|
@@ -4381,7 +4376,7 @@ function useViewService() {
|
|
|
4381
4376
|
[env]
|
|
4382
4377
|
);
|
|
4383
4378
|
const getMenu = (0, import_react10.useCallback)(
|
|
4384
|
-
async (context, specification, domain
|
|
4379
|
+
async (context, specification, domain) => {
|
|
4385
4380
|
const jsonData = {
|
|
4386
4381
|
model: "ir.ui.menu" /* MENU */,
|
|
4387
4382
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4398,16 +4393,11 @@ function useViewService() {
|
|
|
4398
4393
|
]
|
|
4399
4394
|
}
|
|
4400
4395
|
};
|
|
4401
|
-
return env?.requests?.post(
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
"Content-Type": "application/json"
|
|
4407
|
-
}
|
|
4408
|
-
},
|
|
4409
|
-
service
|
|
4410
|
-
);
|
|
4396
|
+
return env?.requests?.post("/call" /* CALL_PATH */, jsonData, {
|
|
4397
|
+
headers: {
|
|
4398
|
+
"Content-Type": "application/json"
|
|
4399
|
+
}
|
|
4400
|
+
});
|
|
4411
4401
|
},
|
|
4412
4402
|
[env]
|
|
4413
4403
|
);
|
|
@@ -5233,17 +5223,18 @@ function useViewService() {
|
|
|
5233
5223
|
},
|
|
5234
5224
|
[env]
|
|
5235
5225
|
);
|
|
5236
|
-
const
|
|
5226
|
+
const handleCloseSession = (0, import_react10.useCallback)(
|
|
5237
5227
|
({
|
|
5238
5228
|
model,
|
|
5239
5229
|
ids,
|
|
5240
5230
|
xNode,
|
|
5241
|
-
service
|
|
5231
|
+
service,
|
|
5232
|
+
method
|
|
5242
5233
|
}) => {
|
|
5243
5234
|
const jsonData = {
|
|
5244
5235
|
model,
|
|
5245
5236
|
ids,
|
|
5246
|
-
method
|
|
5237
|
+
method
|
|
5247
5238
|
};
|
|
5248
5239
|
return env?.requests.post(
|
|
5249
5240
|
"/call" /* CALL_PATH */,
|
|
@@ -5259,7 +5250,7 @@ function useViewService() {
|
|
|
5259
5250
|
},
|
|
5260
5251
|
[env]
|
|
5261
5252
|
);
|
|
5262
|
-
const
|
|
5253
|
+
const handleClosingDetailSession = (0, import_react10.useCallback)(
|
|
5263
5254
|
({
|
|
5264
5255
|
model,
|
|
5265
5256
|
ids,
|
|
@@ -5320,8 +5311,8 @@ function useViewService() {
|
|
|
5320
5311
|
getProductImage,
|
|
5321
5312
|
addEntity,
|
|
5322
5313
|
checkPayment,
|
|
5323
|
-
|
|
5324
|
-
|
|
5314
|
+
handleCloseSession,
|
|
5315
|
+
handleClosingDetailSession
|
|
5325
5316
|
};
|
|
5326
5317
|
}
|
|
5327
5318
|
|
|
@@ -5864,10 +5855,10 @@ var use_validate_action_token_default = useValidateActionToken;
|
|
|
5864
5855
|
|
|
5865
5856
|
// src/hooks/company/use-get-company-info.ts
|
|
5866
5857
|
var import_react_query15 = require("@tanstack/react-query");
|
|
5867
|
-
var useGetCompanyInfo = (
|
|
5858
|
+
var useGetCompanyInfo = () => {
|
|
5868
5859
|
const { getInfoCompany } = useCompanyService();
|
|
5869
5860
|
return (0, import_react_query15.useMutation)({
|
|
5870
|
-
mutationFn: (id) => getInfoCompany(id
|
|
5861
|
+
mutationFn: (id) => getInfoCompany(id)
|
|
5871
5862
|
});
|
|
5872
5863
|
};
|
|
5873
5864
|
var use_get_company_info_default = useGetCompanyInfo;
|
|
@@ -6701,11 +6692,11 @@ var use_get_list_data_default = useGetListData;
|
|
|
6701
6692
|
|
|
6702
6693
|
// src/hooks/view/use-get-menu.ts
|
|
6703
6694
|
var import_react_query51 = require("@tanstack/react-query");
|
|
6704
|
-
var useGetMenu = (context, specification, enabled, domain
|
|
6695
|
+
var useGetMenu = (context, specification, enabled, domain) => {
|
|
6705
6696
|
const { getMenu } = useViewService();
|
|
6706
6697
|
return (0, import_react_query51.useQuery)({
|
|
6707
6698
|
queryKey: ["menus" /* MENU */, context],
|
|
6708
|
-
queryFn: () => getMenu(context, specification, domain
|
|
6699
|
+
queryFn: () => getMenu(context, specification, domain).then((res) => {
|
|
6709
6700
|
if (res && res?.records && res?.records?.length > 0) {
|
|
6710
6701
|
return res?.records;
|
|
6711
6702
|
}
|
|
@@ -7480,32 +7471,34 @@ var useCheckPayment = () => {
|
|
|
7480
7471
|
};
|
|
7481
7472
|
var use_check_payment_default = useCheckPayment;
|
|
7482
7473
|
|
|
7483
|
-
// src/hooks/view/use-
|
|
7474
|
+
// src/hooks/view/use-handle-close-session.ts
|
|
7484
7475
|
var import_react_query87 = require("@tanstack/react-query");
|
|
7485
|
-
var
|
|
7486
|
-
const {
|
|
7476
|
+
var useHandleCloseSession = () => {
|
|
7477
|
+
const { handleCloseSession } = useViewService();
|
|
7487
7478
|
return (0, import_react_query87.useMutation)({
|
|
7488
7479
|
mutationFn: ({
|
|
7489
7480
|
model,
|
|
7490
7481
|
ids,
|
|
7491
7482
|
xNode,
|
|
7492
|
-
service
|
|
7483
|
+
service,
|
|
7484
|
+
method
|
|
7493
7485
|
}) => {
|
|
7494
|
-
return
|
|
7486
|
+
return handleCloseSession({
|
|
7495
7487
|
model,
|
|
7496
7488
|
ids,
|
|
7497
7489
|
xNode,
|
|
7498
|
-
service
|
|
7490
|
+
service,
|
|
7491
|
+
method
|
|
7499
7492
|
});
|
|
7500
7493
|
}
|
|
7501
7494
|
});
|
|
7502
7495
|
};
|
|
7503
|
-
var
|
|
7496
|
+
var use_handle_close_session_default = useHandleCloseSession;
|
|
7504
7497
|
|
|
7505
|
-
// src/hooks/view/use-
|
|
7498
|
+
// src/hooks/view/use-handle-closing-detail-session.ts
|
|
7506
7499
|
var import_react_query88 = require("@tanstack/react-query");
|
|
7507
|
-
var
|
|
7508
|
-
const {
|
|
7500
|
+
var useHandleClosingDetailSession = () => {
|
|
7501
|
+
const { handleClosingDetailSession } = useViewService();
|
|
7509
7502
|
return (0, import_react_query88.useMutation)({
|
|
7510
7503
|
mutationFn: ({
|
|
7511
7504
|
model,
|
|
@@ -7515,7 +7508,7 @@ var useGetDetailEntity = () => {
|
|
|
7515
7508
|
service,
|
|
7516
7509
|
kwargs
|
|
7517
7510
|
}) => {
|
|
7518
|
-
return
|
|
7511
|
+
return handleClosingDetailSession({
|
|
7519
7512
|
model,
|
|
7520
7513
|
ids,
|
|
7521
7514
|
method,
|
|
@@ -7526,7 +7519,7 @@ var useGetDetailEntity = () => {
|
|
|
7526
7519
|
}
|
|
7527
7520
|
});
|
|
7528
7521
|
};
|
|
7529
|
-
var
|
|
7522
|
+
var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
|
|
7530
7523
|
|
|
7531
7524
|
// src/provider/service-provider.tsx
|
|
7532
7525
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
@@ -7621,8 +7614,8 @@ var ServiceProvider = ({
|
|
|
7621
7614
|
useGetProductImage: use_get_product_image_default,
|
|
7622
7615
|
useAddEntity: use_add_entity_default,
|
|
7623
7616
|
useCheckPayment: use_check_payment_default,
|
|
7624
|
-
|
|
7625
|
-
|
|
7617
|
+
useHandleCloseSession: use_handle_close_session_default,
|
|
7618
|
+
useHandleClosingDetailSession: use_handle_closing_detail_session_default
|
|
7626
7619
|
};
|
|
7627
7620
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ServiceContext.Provider, { value: services, children });
|
|
7628
7621
|
};
|
package/dist/provider.mjs
CHANGED
|
@@ -3358,7 +3358,7 @@ function useCompanyService() {
|
|
|
3358
3358
|
[env]
|
|
3359
3359
|
);
|
|
3360
3360
|
const getInfoCompany = useCallback3(
|
|
3361
|
-
async (id
|
|
3361
|
+
async (id) => {
|
|
3362
3362
|
const jsonData = {
|
|
3363
3363
|
ids: [id],
|
|
3364
3364
|
model: "res.company" /* COMPANY */,
|
|
@@ -3373,16 +3373,11 @@ function useCompanyService() {
|
|
|
3373
3373
|
}
|
|
3374
3374
|
}
|
|
3375
3375
|
};
|
|
3376
|
-
return await env.requests.post(
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
"Content-Type": "application/json"
|
|
3382
|
-
}
|
|
3383
|
-
},
|
|
3384
|
-
service
|
|
3385
|
-
);
|
|
3376
|
+
return await env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3377
|
+
headers: {
|
|
3378
|
+
"Content-Type": "application/json"
|
|
3379
|
+
}
|
|
3380
|
+
});
|
|
3386
3381
|
},
|
|
3387
3382
|
[env]
|
|
3388
3383
|
);
|
|
@@ -4338,7 +4333,7 @@ function useViewService() {
|
|
|
4338
4333
|
[env]
|
|
4339
4334
|
);
|
|
4340
4335
|
const getMenu = useCallback9(
|
|
4341
|
-
async (context, specification, domain
|
|
4336
|
+
async (context, specification, domain) => {
|
|
4342
4337
|
const jsonData = {
|
|
4343
4338
|
model: "ir.ui.menu" /* MENU */,
|
|
4344
4339
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4355,16 +4350,11 @@ function useViewService() {
|
|
|
4355
4350
|
]
|
|
4356
4351
|
}
|
|
4357
4352
|
};
|
|
4358
|
-
return env?.requests?.post(
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
"Content-Type": "application/json"
|
|
4364
|
-
}
|
|
4365
|
-
},
|
|
4366
|
-
service
|
|
4367
|
-
);
|
|
4353
|
+
return env?.requests?.post("/call" /* CALL_PATH */, jsonData, {
|
|
4354
|
+
headers: {
|
|
4355
|
+
"Content-Type": "application/json"
|
|
4356
|
+
}
|
|
4357
|
+
});
|
|
4368
4358
|
},
|
|
4369
4359
|
[env]
|
|
4370
4360
|
);
|
|
@@ -5190,17 +5180,18 @@ function useViewService() {
|
|
|
5190
5180
|
},
|
|
5191
5181
|
[env]
|
|
5192
5182
|
);
|
|
5193
|
-
const
|
|
5183
|
+
const handleCloseSession = useCallback9(
|
|
5194
5184
|
({
|
|
5195
5185
|
model,
|
|
5196
5186
|
ids,
|
|
5197
5187
|
xNode,
|
|
5198
|
-
service
|
|
5188
|
+
service,
|
|
5189
|
+
method
|
|
5199
5190
|
}) => {
|
|
5200
5191
|
const jsonData = {
|
|
5201
5192
|
model,
|
|
5202
5193
|
ids,
|
|
5203
|
-
method
|
|
5194
|
+
method
|
|
5204
5195
|
};
|
|
5205
5196
|
return env?.requests.post(
|
|
5206
5197
|
"/call" /* CALL_PATH */,
|
|
@@ -5216,7 +5207,7 @@ function useViewService() {
|
|
|
5216
5207
|
},
|
|
5217
5208
|
[env]
|
|
5218
5209
|
);
|
|
5219
|
-
const
|
|
5210
|
+
const handleClosingDetailSession = useCallback9(
|
|
5220
5211
|
({
|
|
5221
5212
|
model,
|
|
5222
5213
|
ids,
|
|
@@ -5277,8 +5268,8 @@ function useViewService() {
|
|
|
5277
5268
|
getProductImage,
|
|
5278
5269
|
addEntity,
|
|
5279
5270
|
checkPayment,
|
|
5280
|
-
|
|
5281
|
-
|
|
5271
|
+
handleCloseSession,
|
|
5272
|
+
handleClosingDetailSession
|
|
5282
5273
|
};
|
|
5283
5274
|
}
|
|
5284
5275
|
|
|
@@ -5821,10 +5812,10 @@ var use_validate_action_token_default = useValidateActionToken;
|
|
|
5821
5812
|
|
|
5822
5813
|
// src/hooks/company/use-get-company-info.ts
|
|
5823
5814
|
import { useMutation as useMutation13 } from "@tanstack/react-query";
|
|
5824
|
-
var useGetCompanyInfo = (
|
|
5815
|
+
var useGetCompanyInfo = () => {
|
|
5825
5816
|
const { getInfoCompany } = useCompanyService();
|
|
5826
5817
|
return useMutation13({
|
|
5827
|
-
mutationFn: (id) => getInfoCompany(id
|
|
5818
|
+
mutationFn: (id) => getInfoCompany(id)
|
|
5828
5819
|
});
|
|
5829
5820
|
};
|
|
5830
5821
|
var use_get_company_info_default = useGetCompanyInfo;
|
|
@@ -6658,11 +6649,11 @@ var use_get_list_data_default = useGetListData;
|
|
|
6658
6649
|
|
|
6659
6650
|
// src/hooks/view/use-get-menu.ts
|
|
6660
6651
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
|
6661
|
-
var useGetMenu = (context, specification, enabled, domain
|
|
6652
|
+
var useGetMenu = (context, specification, enabled, domain) => {
|
|
6662
6653
|
const { getMenu } = useViewService();
|
|
6663
6654
|
return useQuery15({
|
|
6664
6655
|
queryKey: ["menus" /* MENU */, context],
|
|
6665
|
-
queryFn: () => getMenu(context, specification, domain
|
|
6656
|
+
queryFn: () => getMenu(context, specification, domain).then((res) => {
|
|
6666
6657
|
if (res && res?.records && res?.records?.length > 0) {
|
|
6667
6658
|
return res?.records;
|
|
6668
6659
|
}
|
|
@@ -7437,32 +7428,34 @@ var useCheckPayment = () => {
|
|
|
7437
7428
|
};
|
|
7438
7429
|
var use_check_payment_default = useCheckPayment;
|
|
7439
7430
|
|
|
7440
|
-
// src/hooks/view/use-
|
|
7431
|
+
// src/hooks/view/use-handle-close-session.ts
|
|
7441
7432
|
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
7442
|
-
var
|
|
7443
|
-
const {
|
|
7433
|
+
var useHandleCloseSession = () => {
|
|
7434
|
+
const { handleCloseSession } = useViewService();
|
|
7444
7435
|
return useMutation65({
|
|
7445
7436
|
mutationFn: ({
|
|
7446
7437
|
model,
|
|
7447
7438
|
ids,
|
|
7448
7439
|
xNode,
|
|
7449
|
-
service
|
|
7440
|
+
service,
|
|
7441
|
+
method
|
|
7450
7442
|
}) => {
|
|
7451
|
-
return
|
|
7443
|
+
return handleCloseSession({
|
|
7452
7444
|
model,
|
|
7453
7445
|
ids,
|
|
7454
7446
|
xNode,
|
|
7455
|
-
service
|
|
7447
|
+
service,
|
|
7448
|
+
method
|
|
7456
7449
|
});
|
|
7457
7450
|
}
|
|
7458
7451
|
});
|
|
7459
7452
|
};
|
|
7460
|
-
var
|
|
7453
|
+
var use_handle_close_session_default = useHandleCloseSession;
|
|
7461
7454
|
|
|
7462
|
-
// src/hooks/view/use-
|
|
7455
|
+
// src/hooks/view/use-handle-closing-detail-session.ts
|
|
7463
7456
|
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
7464
|
-
var
|
|
7465
|
-
const {
|
|
7457
|
+
var useHandleClosingDetailSession = () => {
|
|
7458
|
+
const { handleClosingDetailSession } = useViewService();
|
|
7466
7459
|
return useMutation66({
|
|
7467
7460
|
mutationFn: ({
|
|
7468
7461
|
model,
|
|
@@ -7472,7 +7465,7 @@ var useGetDetailEntity = () => {
|
|
|
7472
7465
|
service,
|
|
7473
7466
|
kwargs
|
|
7474
7467
|
}) => {
|
|
7475
|
-
return
|
|
7468
|
+
return handleClosingDetailSession({
|
|
7476
7469
|
model,
|
|
7477
7470
|
ids,
|
|
7478
7471
|
method,
|
|
@@ -7483,7 +7476,7 @@ var useGetDetailEntity = () => {
|
|
|
7483
7476
|
}
|
|
7484
7477
|
});
|
|
7485
7478
|
};
|
|
7486
|
-
var
|
|
7479
|
+
var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
|
|
7487
7480
|
|
|
7488
7481
|
// src/provider/service-provider.tsx
|
|
7489
7482
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
@@ -7578,8 +7571,8 @@ var ServiceProvider = ({
|
|
|
7578
7571
|
useGetProductImage: use_get_product_image_default,
|
|
7579
7572
|
useAddEntity: use_add_entity_default,
|
|
7580
7573
|
useCheckPayment: use_check_payment_default,
|
|
7581
|
-
|
|
7582
|
-
|
|
7574
|
+
useHandleCloseSession: use_handle_close_session_default,
|
|
7575
|
+
useHandleClosingDetailSession: use_handle_closing_detail_session_default
|
|
7583
7576
|
};
|
|
7584
7577
|
return /* @__PURE__ */ jsx6(ServiceContext.Provider, { value: services, children });
|
|
7585
7578
|
};
|
package/dist/services.d.mts
CHANGED
|
@@ -80,7 +80,7 @@ declare function useAuthService(): {
|
|
|
80
80
|
|
|
81
81
|
declare function useCompanyService(): {
|
|
82
82
|
getCurrentCompany: (service?: string) => Promise<any>;
|
|
83
|
-
getInfoCompany: (id: number
|
|
83
|
+
getInfoCompany: (id: number) => Promise<any>;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
declare function useExcelService(): {
|
|
@@ -233,7 +233,7 @@ declare function useUserService(): {
|
|
|
233
233
|
|
|
234
234
|
declare function useViewService(): {
|
|
235
235
|
getView: ({ model, views, context, options, aid, service, xNode, }: GetViewParams) => Promise<any>;
|
|
236
|
-
getMenu: (context: any, specification: any, domain: any
|
|
236
|
+
getMenu: (context: any, specification: any, domain: any) => Promise<any>;
|
|
237
237
|
getActionDetail: (aid: number, context: any) => Promise<any>;
|
|
238
238
|
getResequence: ({ model, ids, context, offset, }: {
|
|
239
239
|
model: string;
|
|
@@ -408,13 +408,14 @@ declare function useViewService(): {
|
|
|
408
408
|
service: string;
|
|
409
409
|
xNode: string;
|
|
410
410
|
}) => any;
|
|
411
|
-
|
|
411
|
+
handleCloseSession: ({ model, ids, xNode, service, method, }: {
|
|
412
412
|
model: string;
|
|
413
413
|
ids: any;
|
|
414
414
|
service: string;
|
|
415
415
|
xNode: string;
|
|
416
|
+
method: string;
|
|
416
417
|
}) => any;
|
|
417
|
-
|
|
418
|
+
handleClosingDetailSession: ({ model, ids, method, xNode, service, kwargs, }: {
|
|
418
419
|
model: string;
|
|
419
420
|
ids: any;
|
|
420
421
|
method: string;
|
package/dist/services.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ declare function useAuthService(): {
|
|
|
80
80
|
|
|
81
81
|
declare function useCompanyService(): {
|
|
82
82
|
getCurrentCompany: (service?: string) => Promise<any>;
|
|
83
|
-
getInfoCompany: (id: number
|
|
83
|
+
getInfoCompany: (id: number) => Promise<any>;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
declare function useExcelService(): {
|
|
@@ -233,7 +233,7 @@ declare function useUserService(): {
|
|
|
233
233
|
|
|
234
234
|
declare function useViewService(): {
|
|
235
235
|
getView: ({ model, views, context, options, aid, service, xNode, }: GetViewParams) => Promise<any>;
|
|
236
|
-
getMenu: (context: any, specification: any, domain: any
|
|
236
|
+
getMenu: (context: any, specification: any, domain: any) => Promise<any>;
|
|
237
237
|
getActionDetail: (aid: number, context: any) => Promise<any>;
|
|
238
238
|
getResequence: ({ model, ids, context, offset, }: {
|
|
239
239
|
model: string;
|
|
@@ -408,13 +408,14 @@ declare function useViewService(): {
|
|
|
408
408
|
service: string;
|
|
409
409
|
xNode: string;
|
|
410
410
|
}) => any;
|
|
411
|
-
|
|
411
|
+
handleCloseSession: ({ model, ids, xNode, service, method, }: {
|
|
412
412
|
model: string;
|
|
413
413
|
ids: any;
|
|
414
414
|
service: string;
|
|
415
415
|
xNode: string;
|
|
416
|
+
method: string;
|
|
416
417
|
}) => any;
|
|
417
|
-
|
|
418
|
+
handleClosingDetailSession: ({ model, ids, method, xNode, service, kwargs, }: {
|
|
418
419
|
model: string;
|
|
419
420
|
ids: any;
|
|
420
421
|
method: string;
|
package/dist/services.js
CHANGED
|
@@ -3105,10 +3105,10 @@ var import_react_query85 = require("@tanstack/react-query");
|
|
|
3105
3105
|
// src/hooks/view/use-check-payment.ts
|
|
3106
3106
|
var import_react_query86 = require("@tanstack/react-query");
|
|
3107
3107
|
|
|
3108
|
-
// src/hooks/view/use-
|
|
3108
|
+
// src/hooks/view/use-handle-close-session.ts
|
|
3109
3109
|
var import_react_query87 = require("@tanstack/react-query");
|
|
3110
3110
|
|
|
3111
|
-
// src/hooks/view/use-
|
|
3111
|
+
// src/hooks/view/use-handle-closing-detail-session.ts
|
|
3112
3112
|
var import_react_query88 = require("@tanstack/react-query");
|
|
3113
3113
|
|
|
3114
3114
|
// src/provider/service-provider.tsx
|
|
@@ -3560,7 +3560,7 @@ function useCompanyService() {
|
|
|
3560
3560
|
[env]
|
|
3561
3561
|
);
|
|
3562
3562
|
const getInfoCompany = (0, import_react8.useCallback)(
|
|
3563
|
-
async (id
|
|
3563
|
+
async (id) => {
|
|
3564
3564
|
const jsonData = {
|
|
3565
3565
|
ids: [id],
|
|
3566
3566
|
model: "res.company" /* COMPANY */,
|
|
@@ -3575,16 +3575,11 @@ function useCompanyService() {
|
|
|
3575
3575
|
}
|
|
3576
3576
|
}
|
|
3577
3577
|
};
|
|
3578
|
-
return await env.requests.post(
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
"Content-Type": "application/json"
|
|
3584
|
-
}
|
|
3585
|
-
},
|
|
3586
|
-
service
|
|
3587
|
-
);
|
|
3578
|
+
return await env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3579
|
+
headers: {
|
|
3580
|
+
"Content-Type": "application/json"
|
|
3581
|
+
}
|
|
3582
|
+
});
|
|
3588
3583
|
},
|
|
3589
3584
|
[env]
|
|
3590
3585
|
);
|
|
@@ -4540,7 +4535,7 @@ function useViewService() {
|
|
|
4540
4535
|
[env]
|
|
4541
4536
|
);
|
|
4542
4537
|
const getMenu = (0, import_react14.useCallback)(
|
|
4543
|
-
async (context, specification, domain
|
|
4538
|
+
async (context, specification, domain) => {
|
|
4544
4539
|
const jsonData = {
|
|
4545
4540
|
model: "ir.ui.menu" /* MENU */,
|
|
4546
4541
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4557,16 +4552,11 @@ function useViewService() {
|
|
|
4557
4552
|
]
|
|
4558
4553
|
}
|
|
4559
4554
|
};
|
|
4560
|
-
return env?.requests?.post(
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
"Content-Type": "application/json"
|
|
4566
|
-
}
|
|
4567
|
-
},
|
|
4568
|
-
service
|
|
4569
|
-
);
|
|
4555
|
+
return env?.requests?.post("/call" /* CALL_PATH */, jsonData, {
|
|
4556
|
+
headers: {
|
|
4557
|
+
"Content-Type": "application/json"
|
|
4558
|
+
}
|
|
4559
|
+
});
|
|
4570
4560
|
},
|
|
4571
4561
|
[env]
|
|
4572
4562
|
);
|
|
@@ -5392,17 +5382,18 @@ function useViewService() {
|
|
|
5392
5382
|
},
|
|
5393
5383
|
[env]
|
|
5394
5384
|
);
|
|
5395
|
-
const
|
|
5385
|
+
const handleCloseSession = (0, import_react14.useCallback)(
|
|
5396
5386
|
({
|
|
5397
5387
|
model,
|
|
5398
5388
|
ids,
|
|
5399
5389
|
xNode,
|
|
5400
|
-
service
|
|
5390
|
+
service,
|
|
5391
|
+
method
|
|
5401
5392
|
}) => {
|
|
5402
5393
|
const jsonData = {
|
|
5403
5394
|
model,
|
|
5404
5395
|
ids,
|
|
5405
|
-
method
|
|
5396
|
+
method
|
|
5406
5397
|
};
|
|
5407
5398
|
return env?.requests.post(
|
|
5408
5399
|
"/call" /* CALL_PATH */,
|
|
@@ -5418,7 +5409,7 @@ function useViewService() {
|
|
|
5418
5409
|
},
|
|
5419
5410
|
[env]
|
|
5420
5411
|
);
|
|
5421
|
-
const
|
|
5412
|
+
const handleClosingDetailSession = (0, import_react14.useCallback)(
|
|
5422
5413
|
({
|
|
5423
5414
|
model,
|
|
5424
5415
|
ids,
|
|
@@ -5479,8 +5470,8 @@ function useViewService() {
|
|
|
5479
5470
|
getProductImage,
|
|
5480
5471
|
addEntity,
|
|
5481
5472
|
checkPayment,
|
|
5482
|
-
|
|
5483
|
-
|
|
5473
|
+
handleCloseSession,
|
|
5474
|
+
handleClosingDetailSession
|
|
5484
5475
|
};
|
|
5485
5476
|
}
|
|
5486
5477
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/services.mjs
CHANGED
|
@@ -3061,10 +3061,10 @@ import { useMutation as useMutation63 } from "@tanstack/react-query";
|
|
|
3061
3061
|
// src/hooks/view/use-check-payment.ts
|
|
3062
3062
|
import { useMutation as useMutation64 } from "@tanstack/react-query";
|
|
3063
3063
|
|
|
3064
|
-
// src/hooks/view/use-
|
|
3064
|
+
// src/hooks/view/use-handle-close-session.ts
|
|
3065
3065
|
import { useMutation as useMutation65 } from "@tanstack/react-query";
|
|
3066
3066
|
|
|
3067
|
-
// src/hooks/view/use-
|
|
3067
|
+
// src/hooks/view/use-handle-closing-detail-session.ts
|
|
3068
3068
|
import { useMutation as useMutation66 } from "@tanstack/react-query";
|
|
3069
3069
|
|
|
3070
3070
|
// src/provider/service-provider.tsx
|
|
@@ -3516,7 +3516,7 @@ function useCompanyService() {
|
|
|
3516
3516
|
[env]
|
|
3517
3517
|
);
|
|
3518
3518
|
const getInfoCompany = useCallback4(
|
|
3519
|
-
async (id
|
|
3519
|
+
async (id) => {
|
|
3520
3520
|
const jsonData = {
|
|
3521
3521
|
ids: [id],
|
|
3522
3522
|
model: "res.company" /* COMPANY */,
|
|
@@ -3531,16 +3531,11 @@ function useCompanyService() {
|
|
|
3531
3531
|
}
|
|
3532
3532
|
}
|
|
3533
3533
|
};
|
|
3534
|
-
return await env.requests.post(
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
"Content-Type": "application/json"
|
|
3540
|
-
}
|
|
3541
|
-
},
|
|
3542
|
-
service
|
|
3543
|
-
);
|
|
3534
|
+
return await env.requests.post("/call" /* CALL_PATH */, jsonData, {
|
|
3535
|
+
headers: {
|
|
3536
|
+
"Content-Type": "application/json"
|
|
3537
|
+
}
|
|
3538
|
+
});
|
|
3544
3539
|
},
|
|
3545
3540
|
[env]
|
|
3546
3541
|
);
|
|
@@ -4496,7 +4491,7 @@ function useViewService() {
|
|
|
4496
4491
|
[env]
|
|
4497
4492
|
);
|
|
4498
4493
|
const getMenu = useCallback10(
|
|
4499
|
-
async (context, specification, domain
|
|
4494
|
+
async (context, specification, domain) => {
|
|
4500
4495
|
const jsonData = {
|
|
4501
4496
|
model: "ir.ui.menu" /* MENU */,
|
|
4502
4497
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4513,16 +4508,11 @@ function useViewService() {
|
|
|
4513
4508
|
]
|
|
4514
4509
|
}
|
|
4515
4510
|
};
|
|
4516
|
-
return env?.requests?.post(
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
"Content-Type": "application/json"
|
|
4522
|
-
}
|
|
4523
|
-
},
|
|
4524
|
-
service
|
|
4525
|
-
);
|
|
4511
|
+
return env?.requests?.post("/call" /* CALL_PATH */, jsonData, {
|
|
4512
|
+
headers: {
|
|
4513
|
+
"Content-Type": "application/json"
|
|
4514
|
+
}
|
|
4515
|
+
});
|
|
4526
4516
|
},
|
|
4527
4517
|
[env]
|
|
4528
4518
|
);
|
|
@@ -5348,17 +5338,18 @@ function useViewService() {
|
|
|
5348
5338
|
},
|
|
5349
5339
|
[env]
|
|
5350
5340
|
);
|
|
5351
|
-
const
|
|
5341
|
+
const handleCloseSession = useCallback10(
|
|
5352
5342
|
({
|
|
5353
5343
|
model,
|
|
5354
5344
|
ids,
|
|
5355
5345
|
xNode,
|
|
5356
|
-
service
|
|
5346
|
+
service,
|
|
5347
|
+
method
|
|
5357
5348
|
}) => {
|
|
5358
5349
|
const jsonData = {
|
|
5359
5350
|
model,
|
|
5360
5351
|
ids,
|
|
5361
|
-
method
|
|
5352
|
+
method
|
|
5362
5353
|
};
|
|
5363
5354
|
return env?.requests.post(
|
|
5364
5355
|
"/call" /* CALL_PATH */,
|
|
@@ -5374,7 +5365,7 @@ function useViewService() {
|
|
|
5374
5365
|
},
|
|
5375
5366
|
[env]
|
|
5376
5367
|
);
|
|
5377
|
-
const
|
|
5368
|
+
const handleClosingDetailSession = useCallback10(
|
|
5378
5369
|
({
|
|
5379
5370
|
model,
|
|
5380
5371
|
ids,
|
|
@@ -5435,8 +5426,8 @@ function useViewService() {
|
|
|
5435
5426
|
getProductImage,
|
|
5436
5427
|
addEntity,
|
|
5437
5428
|
checkPayment,
|
|
5438
|
-
|
|
5439
|
-
|
|
5429
|
+
handleCloseSession,
|
|
5430
|
+
handleClosingDetailSession
|
|
5440
5431
|
};
|
|
5441
5432
|
}
|
|
5442
5433
|
export {
|