@fctc/interface-logic 3.0.5 → 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 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: ({ service }: {
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;
@@ -528,14 +526,15 @@ declare const useCheckPayment: () => _tanstack_react_query.UseMutationResult<unk
528
526
  xNode: string;
529
527
  }, unknown>;
530
528
 
531
- declare const useGetDataCloseSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
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 useGetDetailEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
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, useGetDataCloseSession, useGetDetail, useGetDetailEntity, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetOrderLine, useGetPos, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, 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 };
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: ({ service }: {
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;
@@ -528,14 +526,15 @@ declare const useCheckPayment: () => _tanstack_react_query.UseMutationResult<unk
528
526
  xNode: string;
529
527
  }, unknown>;
530
528
 
531
- declare const useGetDataCloseSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
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 useGetDetailEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
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, useGetDataCloseSession, useGetDetail, useGetDetailEntity, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetOrderLine, useGetPos, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, 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 };
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, service) => {
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
- "/call" /* CALL_PATH */,
3424
- jsonData,
3425
- {
3426
- headers: {
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
  );
@@ -5231,17 +5226,18 @@ function useViewService() {
5231
5226
  },
5232
5227
  [env]
5233
5228
  );
5234
- const getDataCloseSession = (0, import_react14.useCallback)(
5229
+ const handleCloseSession = (0, import_react14.useCallback)(
5235
5230
  ({
5236
5231
  model,
5237
5232
  ids,
5238
5233
  xNode,
5239
- service
5234
+ service,
5235
+ method
5240
5236
  }) => {
5241
5237
  const jsonData = {
5242
5238
  model,
5243
5239
  ids,
5244
- method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
5240
+ method
5245
5241
  };
5246
5242
  return env?.requests.post(
5247
5243
  "/call" /* CALL_PATH */,
@@ -5257,7 +5253,7 @@ function useViewService() {
5257
5253
  },
5258
5254
  [env]
5259
5255
  );
5260
- const getDetailEntity = (0, import_react14.useCallback)(
5256
+ const handleClosingDetailSession = (0, import_react14.useCallback)(
5261
5257
  ({
5262
5258
  model,
5263
5259
  ids,
@@ -5318,8 +5314,8 @@ function useViewService() {
5318
5314
  getProductImage,
5319
5315
  addEntity,
5320
5316
  checkPayment,
5321
- getDataCloseSession,
5322
- getDetailEntity
5317
+ handleCloseSession,
5318
+ handleClosingDetailSession
5323
5319
  };
5324
5320
  }
5325
5321
 
@@ -5480,10 +5476,10 @@ var use_validate_action_token_default = useValidateActionToken;
5480
5476
 
5481
5477
  // src/hooks/company/use-get-company-info.ts
5482
5478
  var import_react_query15 = require("@tanstack/react-query");
5483
- var useGetCompanyInfo = ({ service }) => {
5479
+ var useGetCompanyInfo = () => {
5484
5480
  const { getInfoCompany } = useCompanyService();
5485
5481
  return (0, import_react_query15.useMutation)({
5486
- mutationFn: (id) => getInfoCompany(id, service)
5482
+ mutationFn: (id) => getInfoCompany(id)
5487
5483
  });
5488
5484
  };
5489
5485
  var use_get_company_info_default = useGetCompanyInfo;
@@ -7096,32 +7092,34 @@ var useCheckPayment = () => {
7096
7092
  };
7097
7093
  var use_check_payment_default = useCheckPayment;
7098
7094
 
7099
- // src/hooks/view/use-get-data-close-session.ts
7095
+ // src/hooks/view/use-handle-close-session.ts
7100
7096
  var import_react_query87 = require("@tanstack/react-query");
7101
- var useGetDataCloseSession = () => {
7102
- const { getDataCloseSession } = useViewService();
7097
+ var useHandleCloseSession = () => {
7098
+ const { handleCloseSession } = useViewService();
7103
7099
  return (0, import_react_query87.useMutation)({
7104
7100
  mutationFn: ({
7105
7101
  model,
7106
7102
  ids,
7107
7103
  xNode,
7108
- service
7104
+ service,
7105
+ method
7109
7106
  }) => {
7110
- return getDataCloseSession({
7107
+ return handleCloseSession({
7111
7108
  model,
7112
7109
  ids,
7113
7110
  xNode,
7114
- service
7111
+ service,
7112
+ method
7115
7113
  });
7116
7114
  }
7117
7115
  });
7118
7116
  };
7119
- var use_get_data_close_session_default = useGetDataCloseSession;
7117
+ var use_handle_close_session_default = useHandleCloseSession;
7120
7118
 
7121
- // src/hooks/view/use-get-detail-entity.ts
7119
+ // src/hooks/view/use-handle-closing-detail-session.ts
7122
7120
  var import_react_query88 = require("@tanstack/react-query");
7123
- var useGetDetailEntity = () => {
7124
- const { getDetailEntity } = useViewService();
7121
+ var useHandleClosingDetailSession = () => {
7122
+ const { handleClosingDetailSession } = useViewService();
7125
7123
  return (0, import_react_query88.useMutation)({
7126
7124
  mutationFn: ({
7127
7125
  model,
@@ -7131,7 +7129,7 @@ var useGetDetailEntity = () => {
7131
7129
  service,
7132
7130
  kwargs
7133
7131
  }) => {
7134
- return getDetailEntity({
7132
+ return handleClosingDetailSession({
7135
7133
  model,
7136
7134
  ids,
7137
7135
  method,
@@ -7142,7 +7140,7 @@ var useGetDetailEntity = () => {
7142
7140
  }
7143
7141
  });
7144
7142
  };
7145
- var use_get_detail_entity_default = useGetDetailEntity;
7143
+ var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
7146
7144
  // Annotate the CommonJS export names for ESM import in node:
7147
7145
  0 && (module.exports = {
7148
7146
  useAddEntity,
@@ -7171,9 +7169,7 @@ var use_get_detail_entity_default = useGetDetailEntity;
7171
7169
  useGetConversionRate,
7172
7170
  useGetCurrency,
7173
7171
  useGetCurrentCompany,
7174
- useGetDataCloseSession,
7175
7172
  useGetDetail,
7176
- useGetDetailEntity,
7177
7173
  useGetFieldExport,
7178
7174
  useGetFieldOnChange,
7179
7175
  useGetFileExcel,
@@ -7197,6 +7193,8 @@ var use_get_detail_entity_default = useGetDetailEntity;
7197
7193
  useGetUser,
7198
7194
  useGetView,
7199
7195
  useGrantAccess,
7196
+ useHandleCloseSession,
7197
+ useHandleClosingDetailSession,
7200
7198
  useHandleClosingSession,
7201
7199
  useIsValidToken,
7202
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, service) => {
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
- "/call" /* CALL_PATH */,
3301
- jsonData,
3302
- {
3303
- headers: {
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
  );
@@ -5108,17 +5103,18 @@ function useViewService() {
5108
5103
  },
5109
5104
  [env]
5110
5105
  );
5111
- const getDataCloseSession = useCallback10(
5106
+ const handleCloseSession = useCallback10(
5112
5107
  ({
5113
5108
  model,
5114
5109
  ids,
5115
5110
  xNode,
5116
- service
5111
+ service,
5112
+ method
5117
5113
  }) => {
5118
5114
  const jsonData = {
5119
5115
  model,
5120
5116
  ids,
5121
- method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
5117
+ method
5122
5118
  };
5123
5119
  return env?.requests.post(
5124
5120
  "/call" /* CALL_PATH */,
@@ -5134,7 +5130,7 @@ function useViewService() {
5134
5130
  },
5135
5131
  [env]
5136
5132
  );
5137
- const getDetailEntity = useCallback10(
5133
+ const handleClosingDetailSession = useCallback10(
5138
5134
  ({
5139
5135
  model,
5140
5136
  ids,
@@ -5195,8 +5191,8 @@ function useViewService() {
5195
5191
  getProductImage,
5196
5192
  addEntity,
5197
5193
  checkPayment,
5198
- getDataCloseSession,
5199
- getDetailEntity
5194
+ handleCloseSession,
5195
+ handleClosingDetailSession
5200
5196
  };
5201
5197
  }
5202
5198
 
@@ -5357,10 +5353,10 @@ var use_validate_action_token_default = useValidateActionToken;
5357
5353
 
5358
5354
  // src/hooks/company/use-get-company-info.ts
5359
5355
  import { useMutation as useMutation13 } from "@tanstack/react-query";
5360
- var useGetCompanyInfo = ({ service }) => {
5356
+ var useGetCompanyInfo = () => {
5361
5357
  const { getInfoCompany } = useCompanyService();
5362
5358
  return useMutation13({
5363
- mutationFn: (id) => getInfoCompany(id, service)
5359
+ mutationFn: (id) => getInfoCompany(id)
5364
5360
  });
5365
5361
  };
5366
5362
  var use_get_company_info_default = useGetCompanyInfo;
@@ -6973,32 +6969,34 @@ var useCheckPayment = () => {
6973
6969
  };
6974
6970
  var use_check_payment_default = useCheckPayment;
6975
6971
 
6976
- // src/hooks/view/use-get-data-close-session.ts
6972
+ // src/hooks/view/use-handle-close-session.ts
6977
6973
  import { useMutation as useMutation65 } from "@tanstack/react-query";
6978
- var useGetDataCloseSession = () => {
6979
- const { getDataCloseSession } = useViewService();
6974
+ var useHandleCloseSession = () => {
6975
+ const { handleCloseSession } = useViewService();
6980
6976
  return useMutation65({
6981
6977
  mutationFn: ({
6982
6978
  model,
6983
6979
  ids,
6984
6980
  xNode,
6985
- service
6981
+ service,
6982
+ method
6986
6983
  }) => {
6987
- return getDataCloseSession({
6984
+ return handleCloseSession({
6988
6985
  model,
6989
6986
  ids,
6990
6987
  xNode,
6991
- service
6988
+ service,
6989
+ method
6992
6990
  });
6993
6991
  }
6994
6992
  });
6995
6993
  };
6996
- var use_get_data_close_session_default = useGetDataCloseSession;
6994
+ var use_handle_close_session_default = useHandleCloseSession;
6997
6995
 
6998
- // src/hooks/view/use-get-detail-entity.ts
6996
+ // src/hooks/view/use-handle-closing-detail-session.ts
6999
6997
  import { useMutation as useMutation66 } from "@tanstack/react-query";
7000
- var useGetDetailEntity = () => {
7001
- const { getDetailEntity } = useViewService();
6998
+ var useHandleClosingDetailSession = () => {
6999
+ const { handleClosingDetailSession } = useViewService();
7002
7000
  return useMutation66({
7003
7001
  mutationFn: ({
7004
7002
  model,
@@ -7008,7 +7006,7 @@ var useGetDetailEntity = () => {
7008
7006
  service,
7009
7007
  kwargs
7010
7008
  }) => {
7011
- return getDetailEntity({
7009
+ return handleClosingDetailSession({
7012
7010
  model,
7013
7011
  ids,
7014
7012
  method,
@@ -7019,7 +7017,7 @@ var useGetDetailEntity = () => {
7019
7017
  }
7020
7018
  });
7021
7019
  };
7022
- var use_get_detail_entity_default = useGetDetailEntity;
7020
+ var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
7023
7021
  export {
7024
7022
  use_add_entity_default as useAddEntity,
7025
7023
  use_button_default as useButton,
@@ -7047,9 +7045,7 @@ export {
7047
7045
  use_get_conversion_rate_default as useGetConversionRate,
7048
7046
  use_get_currency_default as useGetCurrency,
7049
7047
  use_get_current_company_default as useGetCurrentCompany,
7050
- use_get_data_close_session_default as useGetDataCloseSession,
7051
7048
  use_get_detail_default as useGetDetail,
7052
- use_get_detail_entity_default as useGetDetailEntity,
7053
7049
  use_get_field_export_default as useGetFieldExport,
7054
7050
  use_get_field_onchange_default as useGetFieldOnChange,
7055
7051
  use_get_file_excel_default as useGetFileExcel,
@@ -7073,6 +7069,8 @@ export {
7073
7069
  use_get_user_default as useGetUser,
7074
7070
  use_get_view_default as useGetView,
7075
7071
  use_grant_access_default as useGrantAccess,
7072
+ use_handle_close_session_default as useHandleCloseSession,
7073
+ use_handle_closing_detail_session_default as useHandleClosingDetailSession,
7076
7074
  use_handle_closing_session_default as useHandleClosingSession,
7077
7075
  use_isvalid_token_default as useIsValidToken,
7078
7076
  use_load_action_default as useLoadAction,
@@ -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, useGetDataCloseSession, useGetDetailEntity } from './hooks.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, 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
- useGetDataCloseSession: typeof useGetDataCloseSession;
155
- useGetDetailEntity: typeof useGetDetailEntity;
154
+ useHandleCloseSession: typeof useHandleCloseSession;
155
+ useHandleClosingDetailSession: typeof useHandleClosingDetailSession;
156
156
  }
157
157
  declare const ServiceProvider: ({ children, }: {
158
158
  children: React.ReactNode;
@@ -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, useGetDataCloseSession, useGetDetailEntity } from './hooks.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, 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
- useGetDataCloseSession: typeof useGetDataCloseSession;
155
- useGetDetailEntity: typeof useGetDetailEntity;
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, service) => {
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
- "/call" /* CALL_PATH */,
3421
- jsonData,
3422
- {
3423
- headers: {
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
  );
@@ -5228,17 +5223,18 @@ function useViewService() {
5228
5223
  },
5229
5224
  [env]
5230
5225
  );
5231
- const getDataCloseSession = (0, import_react10.useCallback)(
5226
+ const handleCloseSession = (0, import_react10.useCallback)(
5232
5227
  ({
5233
5228
  model,
5234
5229
  ids,
5235
5230
  xNode,
5236
- service
5231
+ service,
5232
+ method
5237
5233
  }) => {
5238
5234
  const jsonData = {
5239
5235
  model,
5240
5236
  ids,
5241
- method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
5237
+ method
5242
5238
  };
5243
5239
  return env?.requests.post(
5244
5240
  "/call" /* CALL_PATH */,
@@ -5254,7 +5250,7 @@ function useViewService() {
5254
5250
  },
5255
5251
  [env]
5256
5252
  );
5257
- const getDetailEntity = (0, import_react10.useCallback)(
5253
+ const handleClosingDetailSession = (0, import_react10.useCallback)(
5258
5254
  ({
5259
5255
  model,
5260
5256
  ids,
@@ -5315,8 +5311,8 @@ function useViewService() {
5315
5311
  getProductImage,
5316
5312
  addEntity,
5317
5313
  checkPayment,
5318
- getDataCloseSession,
5319
- getDetailEntity
5314
+ handleCloseSession,
5315
+ handleClosingDetailSession
5320
5316
  };
5321
5317
  }
5322
5318
 
@@ -5859,10 +5855,10 @@ var use_validate_action_token_default = useValidateActionToken;
5859
5855
 
5860
5856
  // src/hooks/company/use-get-company-info.ts
5861
5857
  var import_react_query15 = require("@tanstack/react-query");
5862
- var useGetCompanyInfo = ({ service }) => {
5858
+ var useGetCompanyInfo = () => {
5863
5859
  const { getInfoCompany } = useCompanyService();
5864
5860
  return (0, import_react_query15.useMutation)({
5865
- mutationFn: (id) => getInfoCompany(id, service)
5861
+ mutationFn: (id) => getInfoCompany(id)
5866
5862
  });
5867
5863
  };
5868
5864
  var use_get_company_info_default = useGetCompanyInfo;
@@ -7475,32 +7471,34 @@ var useCheckPayment = () => {
7475
7471
  };
7476
7472
  var use_check_payment_default = useCheckPayment;
7477
7473
 
7478
- // src/hooks/view/use-get-data-close-session.ts
7474
+ // src/hooks/view/use-handle-close-session.ts
7479
7475
  var import_react_query87 = require("@tanstack/react-query");
7480
- var useGetDataCloseSession = () => {
7481
- const { getDataCloseSession } = useViewService();
7476
+ var useHandleCloseSession = () => {
7477
+ const { handleCloseSession } = useViewService();
7482
7478
  return (0, import_react_query87.useMutation)({
7483
7479
  mutationFn: ({
7484
7480
  model,
7485
7481
  ids,
7486
7482
  xNode,
7487
- service
7483
+ service,
7484
+ method
7488
7485
  }) => {
7489
- return getDataCloseSession({
7486
+ return handleCloseSession({
7490
7487
  model,
7491
7488
  ids,
7492
7489
  xNode,
7493
- service
7490
+ service,
7491
+ method
7494
7492
  });
7495
7493
  }
7496
7494
  });
7497
7495
  };
7498
- var use_get_data_close_session_default = useGetDataCloseSession;
7496
+ var use_handle_close_session_default = useHandleCloseSession;
7499
7497
 
7500
- // src/hooks/view/use-get-detail-entity.ts
7498
+ // src/hooks/view/use-handle-closing-detail-session.ts
7501
7499
  var import_react_query88 = require("@tanstack/react-query");
7502
- var useGetDetailEntity = () => {
7503
- const { getDetailEntity } = useViewService();
7500
+ var useHandleClosingDetailSession = () => {
7501
+ const { handleClosingDetailSession } = useViewService();
7504
7502
  return (0, import_react_query88.useMutation)({
7505
7503
  mutationFn: ({
7506
7504
  model,
@@ -7510,7 +7508,7 @@ var useGetDetailEntity = () => {
7510
7508
  service,
7511
7509
  kwargs
7512
7510
  }) => {
7513
- return getDetailEntity({
7511
+ return handleClosingDetailSession({
7514
7512
  model,
7515
7513
  ids,
7516
7514
  method,
@@ -7521,7 +7519,7 @@ var useGetDetailEntity = () => {
7521
7519
  }
7522
7520
  });
7523
7521
  };
7524
- var use_get_detail_entity_default = useGetDetailEntity;
7522
+ var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
7525
7523
 
7526
7524
  // src/provider/service-provider.tsx
7527
7525
  var import_jsx_runtime6 = require("react/jsx-runtime");
@@ -7616,8 +7614,8 @@ var ServiceProvider = ({
7616
7614
  useGetProductImage: use_get_product_image_default,
7617
7615
  useAddEntity: use_add_entity_default,
7618
7616
  useCheckPayment: use_check_payment_default,
7619
- useGetDataCloseSession: use_get_data_close_session_default,
7620
- useGetDetailEntity: use_get_detail_entity_default
7617
+ useHandleCloseSession: use_handle_close_session_default,
7618
+ useHandleClosingDetailSession: use_handle_closing_detail_session_default
7621
7619
  };
7622
7620
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ServiceContext.Provider, { value: services, children });
7623
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, service) => {
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
- "/call" /* CALL_PATH */,
3378
- jsonData,
3379
- {
3380
- headers: {
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
  );
@@ -5185,17 +5180,18 @@ function useViewService() {
5185
5180
  },
5186
5181
  [env]
5187
5182
  );
5188
- const getDataCloseSession = useCallback9(
5183
+ const handleCloseSession = useCallback9(
5189
5184
  ({
5190
5185
  model,
5191
5186
  ids,
5192
5187
  xNode,
5193
- service
5188
+ service,
5189
+ method
5194
5190
  }) => {
5195
5191
  const jsonData = {
5196
5192
  model,
5197
5193
  ids,
5198
- method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
5194
+ method
5199
5195
  };
5200
5196
  return env?.requests.post(
5201
5197
  "/call" /* CALL_PATH */,
@@ -5211,7 +5207,7 @@ function useViewService() {
5211
5207
  },
5212
5208
  [env]
5213
5209
  );
5214
- const getDetailEntity = useCallback9(
5210
+ const handleClosingDetailSession = useCallback9(
5215
5211
  ({
5216
5212
  model,
5217
5213
  ids,
@@ -5272,8 +5268,8 @@ function useViewService() {
5272
5268
  getProductImage,
5273
5269
  addEntity,
5274
5270
  checkPayment,
5275
- getDataCloseSession,
5276
- getDetailEntity
5271
+ handleCloseSession,
5272
+ handleClosingDetailSession
5277
5273
  };
5278
5274
  }
5279
5275
 
@@ -5816,10 +5812,10 @@ var use_validate_action_token_default = useValidateActionToken;
5816
5812
 
5817
5813
  // src/hooks/company/use-get-company-info.ts
5818
5814
  import { useMutation as useMutation13 } from "@tanstack/react-query";
5819
- var useGetCompanyInfo = ({ service }) => {
5815
+ var useGetCompanyInfo = () => {
5820
5816
  const { getInfoCompany } = useCompanyService();
5821
5817
  return useMutation13({
5822
- mutationFn: (id) => getInfoCompany(id, service)
5818
+ mutationFn: (id) => getInfoCompany(id)
5823
5819
  });
5824
5820
  };
5825
5821
  var use_get_company_info_default = useGetCompanyInfo;
@@ -7432,32 +7428,34 @@ var useCheckPayment = () => {
7432
7428
  };
7433
7429
  var use_check_payment_default = useCheckPayment;
7434
7430
 
7435
- // src/hooks/view/use-get-data-close-session.ts
7431
+ // src/hooks/view/use-handle-close-session.ts
7436
7432
  import { useMutation as useMutation65 } from "@tanstack/react-query";
7437
- var useGetDataCloseSession = () => {
7438
- const { getDataCloseSession } = useViewService();
7433
+ var useHandleCloseSession = () => {
7434
+ const { handleCloseSession } = useViewService();
7439
7435
  return useMutation65({
7440
7436
  mutationFn: ({
7441
7437
  model,
7442
7438
  ids,
7443
7439
  xNode,
7444
- service
7440
+ service,
7441
+ method
7445
7442
  }) => {
7446
- return getDataCloseSession({
7443
+ return handleCloseSession({
7447
7444
  model,
7448
7445
  ids,
7449
7446
  xNode,
7450
- service
7447
+ service,
7448
+ method
7451
7449
  });
7452
7450
  }
7453
7451
  });
7454
7452
  };
7455
- var use_get_data_close_session_default = useGetDataCloseSession;
7453
+ var use_handle_close_session_default = useHandleCloseSession;
7456
7454
 
7457
- // src/hooks/view/use-get-detail-entity.ts
7455
+ // src/hooks/view/use-handle-closing-detail-session.ts
7458
7456
  import { useMutation as useMutation66 } from "@tanstack/react-query";
7459
- var useGetDetailEntity = () => {
7460
- const { getDetailEntity } = useViewService();
7457
+ var useHandleClosingDetailSession = () => {
7458
+ const { handleClosingDetailSession } = useViewService();
7461
7459
  return useMutation66({
7462
7460
  mutationFn: ({
7463
7461
  model,
@@ -7467,7 +7465,7 @@ var useGetDetailEntity = () => {
7467
7465
  service,
7468
7466
  kwargs
7469
7467
  }) => {
7470
- return getDetailEntity({
7468
+ return handleClosingDetailSession({
7471
7469
  model,
7472
7470
  ids,
7473
7471
  method,
@@ -7478,7 +7476,7 @@ var useGetDetailEntity = () => {
7478
7476
  }
7479
7477
  });
7480
7478
  };
7481
- var use_get_detail_entity_default = useGetDetailEntity;
7479
+ var use_handle_closing_detail_session_default = useHandleClosingDetailSession;
7482
7480
 
7483
7481
  // src/provider/service-provider.tsx
7484
7482
  import { jsx as jsx6 } from "react/jsx-runtime";
@@ -7573,8 +7571,8 @@ var ServiceProvider = ({
7573
7571
  useGetProductImage: use_get_product_image_default,
7574
7572
  useAddEntity: use_add_entity_default,
7575
7573
  useCheckPayment: use_check_payment_default,
7576
- useGetDataCloseSession: use_get_data_close_session_default,
7577
- useGetDetailEntity: use_get_detail_entity_default
7574
+ useHandleCloseSession: use_handle_close_session_default,
7575
+ useHandleClosingDetailSession: use_handle_closing_detail_session_default
7578
7576
  };
7579
7577
  return /* @__PURE__ */ jsx6(ServiceContext.Provider, { value: services, children });
7580
7578
  };
@@ -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, service: any) => Promise<any>;
83
+ getInfoCompany: (id: number) => Promise<any>;
84
84
  };
85
85
 
86
86
  declare function useExcelService(): {
@@ -408,13 +408,14 @@ declare function useViewService(): {
408
408
  service: string;
409
409
  xNode: string;
410
410
  }) => any;
411
- getDataCloseSession: ({ model, ids, xNode, service, }: {
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
- getDetailEntity: ({ model, ids, method, xNode, service, kwargs, }: {
418
+ handleClosingDetailSession: ({ model, ids, method, xNode, service, kwargs, }: {
418
419
  model: string;
419
420
  ids: any;
420
421
  method: string;
@@ -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, service: any) => Promise<any>;
83
+ getInfoCompany: (id: number) => Promise<any>;
84
84
  };
85
85
 
86
86
  declare function useExcelService(): {
@@ -408,13 +408,14 @@ declare function useViewService(): {
408
408
  service: string;
409
409
  xNode: string;
410
410
  }) => any;
411
- getDataCloseSession: ({ model, ids, xNode, service, }: {
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
- getDetailEntity: ({ model, ids, method, xNode, service, kwargs, }: {
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-get-data-close-session.ts
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-get-detail-entity.ts
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, service) => {
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
- "/call" /* CALL_PATH */,
3580
- jsonData,
3581
- {
3582
- headers: {
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
  );
@@ -5387,17 +5382,18 @@ function useViewService() {
5387
5382
  },
5388
5383
  [env]
5389
5384
  );
5390
- const getDataCloseSession = (0, import_react14.useCallback)(
5385
+ const handleCloseSession = (0, import_react14.useCallback)(
5391
5386
  ({
5392
5387
  model,
5393
5388
  ids,
5394
5389
  xNode,
5395
- service
5390
+ service,
5391
+ method
5396
5392
  }) => {
5397
5393
  const jsonData = {
5398
5394
  model,
5399
5395
  ids,
5400
- method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
5396
+ method
5401
5397
  };
5402
5398
  return env?.requests.post(
5403
5399
  "/call" /* CALL_PATH */,
@@ -5413,7 +5409,7 @@ function useViewService() {
5413
5409
  },
5414
5410
  [env]
5415
5411
  );
5416
- const getDetailEntity = (0, import_react14.useCallback)(
5412
+ const handleClosingDetailSession = (0, import_react14.useCallback)(
5417
5413
  ({
5418
5414
  model,
5419
5415
  ids,
@@ -5474,8 +5470,8 @@ function useViewService() {
5474
5470
  getProductImage,
5475
5471
  addEntity,
5476
5472
  checkPayment,
5477
- getDataCloseSession,
5478
- getDetailEntity
5473
+ handleCloseSession,
5474
+ handleClosingDetailSession
5479
5475
  };
5480
5476
  }
5481
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-get-data-close-session.ts
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-get-detail-entity.ts
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, service) => {
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
- "/call" /* CALL_PATH */,
3536
- jsonData,
3537
- {
3538
- headers: {
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
  );
@@ -5343,17 +5338,18 @@ function useViewService() {
5343
5338
  },
5344
5339
  [env]
5345
5340
  );
5346
- const getDataCloseSession = useCallback10(
5341
+ const handleCloseSession = useCallback10(
5347
5342
  ({
5348
5343
  model,
5349
5344
  ids,
5350
5345
  xNode,
5351
- service
5346
+ service,
5347
+ method
5352
5348
  }) => {
5353
5349
  const jsonData = {
5354
5350
  model,
5355
5351
  ids,
5356
- method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
5352
+ method
5357
5353
  };
5358
5354
  return env?.requests.post(
5359
5355
  "/call" /* CALL_PATH */,
@@ -5369,7 +5365,7 @@ function useViewService() {
5369
5365
  },
5370
5366
  [env]
5371
5367
  );
5372
- const getDetailEntity = useCallback10(
5368
+ const handleClosingDetailSession = useCallback10(
5373
5369
  ({
5374
5370
  model,
5375
5371
  ids,
@@ -5430,8 +5426,8 @@ function useViewService() {
5430
5426
  getProductImage,
5431
5427
  addEntity,
5432
5428
  checkPayment,
5433
- getDataCloseSession,
5434
- getDetailEntity
5429
+ handleCloseSession,
5430
+ handleClosingDetailSession
5435
5431
  };
5436
5432
  }
5437
5433
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",