@fctc/interface-logic 3.0.4 → 3.0.6

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/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, service) => {
3405
3405
  const jsonData = {
3406
3406
  ids: [id],
3407
3407
  model: "res.company" /* COMPANY */,
@@ -3416,11 +3416,16 @@ function useCompanyService() {
3416
3416
  }
3417
3417
  }
3418
3418
  };
3419
- return await env.requests.post("/call" /* CALL_PATH */, jsonData, {
3420
- headers: {
3421
- "Content-Type": "application/json"
3422
- }
3423
- });
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
+ );
3424
3429
  },
3425
3430
  [env]
3426
3431
  );
@@ -4376,7 +4381,7 @@ function useViewService() {
4376
4381
  [env]
4377
4382
  );
4378
4383
  const getMenu = (0, import_react10.useCallback)(
4379
- async (context, specification, domain) => {
4384
+ async (context, specification, domain, service) => {
4380
4385
  const jsonData = {
4381
4386
  model: "ir.ui.menu" /* MENU */,
4382
4387
  method: "web_search_read" /* WEB_SEARCH_READ */,
@@ -4393,11 +4398,16 @@ function useViewService() {
4393
4398
  ]
4394
4399
  }
4395
4400
  };
4396
- return env?.requests?.post("/call" /* CALL_PATH */, jsonData, {
4397
- headers: {
4398
- "Content-Type": "application/json"
4399
- }
4400
- });
4401
+ return env?.requests?.post(
4402
+ "/call" /* CALL_PATH */,
4403
+ jsonData,
4404
+ {
4405
+ headers: {
4406
+ "Content-Type": "application/json"
4407
+ }
4408
+ },
4409
+ service
4410
+ );
4401
4411
  },
4402
4412
  [env]
4403
4413
  );
@@ -5223,6 +5233,61 @@ function useViewService() {
5223
5233
  },
5224
5234
  [env]
5225
5235
  );
5236
+ const getDataCloseSession = (0, import_react10.useCallback)(
5237
+ ({
5238
+ model,
5239
+ ids,
5240
+ xNode,
5241
+ service
5242
+ }) => {
5243
+ const jsonData = {
5244
+ model,
5245
+ ids,
5246
+ method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
5247
+ };
5248
+ return env?.requests.post(
5249
+ "/call" /* CALL_PATH */,
5250
+ jsonData,
5251
+ {
5252
+ headers: {
5253
+ "Content-Type": "application/json",
5254
+ ...xNode ? { "X-Node": xNode } : {}
5255
+ }
5256
+ },
5257
+ service
5258
+ );
5259
+ },
5260
+ [env]
5261
+ );
5262
+ const getDetailEntity = (0, import_react10.useCallback)(
5263
+ ({
5264
+ model,
5265
+ ids,
5266
+ method,
5267
+ xNode,
5268
+ service,
5269
+ kwargs
5270
+ }) => {
5271
+ const jsonData = {
5272
+ model,
5273
+ ids,
5274
+ method,
5275
+ kwargs
5276
+ };
5277
+ return env?.requests.post(
5278
+ "/call" /* CALL_PATH */,
5279
+ jsonData,
5280
+ {
5281
+ headers: {
5282
+ "Content-Type": "application/json",
5283
+ ...xNode ? { "X-Node": xNode } : {}
5284
+ }
5285
+ },
5286
+ service
5287
+ );
5288
+ },
5289
+ [env]
5290
+ );
5226
5291
  return {
5227
5292
  getView,
5228
5293
  getMenu,
@@ -5254,7 +5319,9 @@ function useViewService() {
5254
5319
  getOrderLine,
5255
5320
  getProductImage,
5256
5321
  addEntity,
5257
- checkPayment
5322
+ checkPayment,
5323
+ getDataCloseSession,
5324
+ getDetailEntity
5258
5325
  };
5259
5326
  }
5260
5327
 
@@ -5797,10 +5864,10 @@ var use_validate_action_token_default = useValidateActionToken;
5797
5864
 
5798
5865
  // src/hooks/company/use-get-company-info.ts
5799
5866
  var import_react_query15 = require("@tanstack/react-query");
5800
- var useGetCompanyInfo = () => {
5867
+ var useGetCompanyInfo = ({ service }) => {
5801
5868
  const { getInfoCompany } = useCompanyService();
5802
5869
  return (0, import_react_query15.useMutation)({
5803
- mutationFn: (id) => getInfoCompany(id)
5870
+ mutationFn: (id) => getInfoCompany(id, service)
5804
5871
  });
5805
5872
  };
5806
5873
  var use_get_company_info_default = useGetCompanyInfo;
@@ -6634,11 +6701,11 @@ var use_get_list_data_default = useGetListData;
6634
6701
 
6635
6702
  // src/hooks/view/use-get-menu.ts
6636
6703
  var import_react_query51 = require("@tanstack/react-query");
6637
- var useGetMenu = (context, specification, enabled, domain) => {
6704
+ var useGetMenu = (context, specification, enabled, domain, service) => {
6638
6705
  const { getMenu } = useViewService();
6639
6706
  return (0, import_react_query51.useQuery)({
6640
6707
  queryKey: ["menus" /* MENU */, context],
6641
- queryFn: () => getMenu(context, specification, domain).then((res) => {
6708
+ queryFn: () => getMenu(context, specification, domain, service).then((res) => {
6642
6709
  if (res && res?.records && res?.records?.length > 0) {
6643
6710
  return res?.records;
6644
6711
  }
@@ -7413,6 +7480,54 @@ var useCheckPayment = () => {
7413
7480
  };
7414
7481
  var use_check_payment_default = useCheckPayment;
7415
7482
 
7483
+ // src/hooks/view/use-get-data-close-session.ts
7484
+ var import_react_query87 = require("@tanstack/react-query");
7485
+ var useGetDataCloseSession = () => {
7486
+ const { getDataCloseSession } = useViewService();
7487
+ return (0, import_react_query87.useMutation)({
7488
+ mutationFn: ({
7489
+ model,
7490
+ ids,
7491
+ xNode,
7492
+ service
7493
+ }) => {
7494
+ return getDataCloseSession({
7495
+ model,
7496
+ ids,
7497
+ xNode,
7498
+ service
7499
+ });
7500
+ }
7501
+ });
7502
+ };
7503
+ var use_get_data_close_session_default = useGetDataCloseSession;
7504
+
7505
+ // src/hooks/view/use-get-detail-entity.ts
7506
+ var import_react_query88 = require("@tanstack/react-query");
7507
+ var useGetDetailEntity = () => {
7508
+ const { getDetailEntity } = useViewService();
7509
+ return (0, import_react_query88.useMutation)({
7510
+ mutationFn: ({
7511
+ model,
7512
+ ids,
7513
+ method,
7514
+ xNode,
7515
+ service,
7516
+ kwargs
7517
+ }) => {
7518
+ return getDetailEntity({
7519
+ model,
7520
+ ids,
7521
+ method,
7522
+ xNode,
7523
+ service,
7524
+ kwargs
7525
+ });
7526
+ }
7527
+ });
7528
+ };
7529
+ var use_get_detail_entity_default = useGetDetailEntity;
7530
+
7416
7531
  // src/provider/service-provider.tsx
7417
7532
  var import_jsx_runtime6 = require("react/jsx-runtime");
7418
7533
  var ServiceContext = (0, import_react13.createContext)(null);
@@ -7505,7 +7620,9 @@ var ServiceProvider = ({
7505
7620
  useGetOrderLine: use_get_order_line_default,
7506
7621
  useGetProductImage: use_get_product_image_default,
7507
7622
  useAddEntity: use_add_entity_default,
7508
- useCheckPayment: use_check_payment_default
7623
+ useCheckPayment: use_check_payment_default,
7624
+ useGetDataCloseSession: use_get_data_close_session_default,
7625
+ useGetDetailEntity: use_get_detail_entity_default
7509
7626
  };
7510
7627
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ServiceContext.Provider, { value: services, children });
7511
7628
  };
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, service) => {
3362
3362
  const jsonData = {
3363
3363
  ids: [id],
3364
3364
  model: "res.company" /* COMPANY */,
@@ -3373,11 +3373,16 @@ function useCompanyService() {
3373
3373
  }
3374
3374
  }
3375
3375
  };
3376
- return await env.requests.post("/call" /* CALL_PATH */, jsonData, {
3377
- headers: {
3378
- "Content-Type": "application/json"
3379
- }
3380
- });
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
+ );
3381
3386
  },
3382
3387
  [env]
3383
3388
  );
@@ -4333,7 +4338,7 @@ function useViewService() {
4333
4338
  [env]
4334
4339
  );
4335
4340
  const getMenu = useCallback9(
4336
- async (context, specification, domain) => {
4341
+ async (context, specification, domain, service) => {
4337
4342
  const jsonData = {
4338
4343
  model: "ir.ui.menu" /* MENU */,
4339
4344
  method: "web_search_read" /* WEB_SEARCH_READ */,
@@ -4350,11 +4355,16 @@ function useViewService() {
4350
4355
  ]
4351
4356
  }
4352
4357
  };
4353
- return env?.requests?.post("/call" /* CALL_PATH */, jsonData, {
4354
- headers: {
4355
- "Content-Type": "application/json"
4356
- }
4357
- });
4358
+ return env?.requests?.post(
4359
+ "/call" /* CALL_PATH */,
4360
+ jsonData,
4361
+ {
4362
+ headers: {
4363
+ "Content-Type": "application/json"
4364
+ }
4365
+ },
4366
+ service
4367
+ );
4358
4368
  },
4359
4369
  [env]
4360
4370
  );
@@ -5180,6 +5190,61 @@ function useViewService() {
5180
5190
  },
5181
5191
  [env]
5182
5192
  );
5193
+ const getDataCloseSession = useCallback9(
5194
+ ({
5195
+ model,
5196
+ ids,
5197
+ xNode,
5198
+ service
5199
+ }) => {
5200
+ const jsonData = {
5201
+ model,
5202
+ ids,
5203
+ method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
5204
+ };
5205
+ return env?.requests.post(
5206
+ "/call" /* CALL_PATH */,
5207
+ jsonData,
5208
+ {
5209
+ headers: {
5210
+ "Content-Type": "application/json",
5211
+ ...xNode ? { "X-Node": xNode } : {}
5212
+ }
5213
+ },
5214
+ service
5215
+ );
5216
+ },
5217
+ [env]
5218
+ );
5219
+ const getDetailEntity = useCallback9(
5220
+ ({
5221
+ model,
5222
+ ids,
5223
+ method,
5224
+ xNode,
5225
+ service,
5226
+ kwargs
5227
+ }) => {
5228
+ const jsonData = {
5229
+ model,
5230
+ ids,
5231
+ method,
5232
+ kwargs
5233
+ };
5234
+ return env?.requests.post(
5235
+ "/call" /* CALL_PATH */,
5236
+ jsonData,
5237
+ {
5238
+ headers: {
5239
+ "Content-Type": "application/json",
5240
+ ...xNode ? { "X-Node": xNode } : {}
5241
+ }
5242
+ },
5243
+ service
5244
+ );
5245
+ },
5246
+ [env]
5247
+ );
5183
5248
  return {
5184
5249
  getView,
5185
5250
  getMenu,
@@ -5211,7 +5276,9 @@ function useViewService() {
5211
5276
  getOrderLine,
5212
5277
  getProductImage,
5213
5278
  addEntity,
5214
- checkPayment
5279
+ checkPayment,
5280
+ getDataCloseSession,
5281
+ getDetailEntity
5215
5282
  };
5216
5283
  }
5217
5284
 
@@ -5754,10 +5821,10 @@ var use_validate_action_token_default = useValidateActionToken;
5754
5821
 
5755
5822
  // src/hooks/company/use-get-company-info.ts
5756
5823
  import { useMutation as useMutation13 } from "@tanstack/react-query";
5757
- var useGetCompanyInfo = () => {
5824
+ var useGetCompanyInfo = ({ service }) => {
5758
5825
  const { getInfoCompany } = useCompanyService();
5759
5826
  return useMutation13({
5760
- mutationFn: (id) => getInfoCompany(id)
5827
+ mutationFn: (id) => getInfoCompany(id, service)
5761
5828
  });
5762
5829
  };
5763
5830
  var use_get_company_info_default = useGetCompanyInfo;
@@ -6591,11 +6658,11 @@ var use_get_list_data_default = useGetListData;
6591
6658
 
6592
6659
  // src/hooks/view/use-get-menu.ts
6593
6660
  import { useQuery as useQuery15 } from "@tanstack/react-query";
6594
- var useGetMenu = (context, specification, enabled, domain) => {
6661
+ var useGetMenu = (context, specification, enabled, domain, service) => {
6595
6662
  const { getMenu } = useViewService();
6596
6663
  return useQuery15({
6597
6664
  queryKey: ["menus" /* MENU */, context],
6598
- queryFn: () => getMenu(context, specification, domain).then((res) => {
6665
+ queryFn: () => getMenu(context, specification, domain, service).then((res) => {
6599
6666
  if (res && res?.records && res?.records?.length > 0) {
6600
6667
  return res?.records;
6601
6668
  }
@@ -7370,6 +7437,54 @@ var useCheckPayment = () => {
7370
7437
  };
7371
7438
  var use_check_payment_default = useCheckPayment;
7372
7439
 
7440
+ // src/hooks/view/use-get-data-close-session.ts
7441
+ import { useMutation as useMutation65 } from "@tanstack/react-query";
7442
+ var useGetDataCloseSession = () => {
7443
+ const { getDataCloseSession } = useViewService();
7444
+ return useMutation65({
7445
+ mutationFn: ({
7446
+ model,
7447
+ ids,
7448
+ xNode,
7449
+ service
7450
+ }) => {
7451
+ return getDataCloseSession({
7452
+ model,
7453
+ ids,
7454
+ xNode,
7455
+ service
7456
+ });
7457
+ }
7458
+ });
7459
+ };
7460
+ var use_get_data_close_session_default = useGetDataCloseSession;
7461
+
7462
+ // src/hooks/view/use-get-detail-entity.ts
7463
+ import { useMutation as useMutation66 } from "@tanstack/react-query";
7464
+ var useGetDetailEntity = () => {
7465
+ const { getDetailEntity } = useViewService();
7466
+ return useMutation66({
7467
+ mutationFn: ({
7468
+ model,
7469
+ ids,
7470
+ method,
7471
+ xNode,
7472
+ service,
7473
+ kwargs
7474
+ }) => {
7475
+ return getDetailEntity({
7476
+ model,
7477
+ ids,
7478
+ method,
7479
+ xNode,
7480
+ service,
7481
+ kwargs
7482
+ });
7483
+ }
7484
+ });
7485
+ };
7486
+ var use_get_detail_entity_default = useGetDetailEntity;
7487
+
7373
7488
  // src/provider/service-provider.tsx
7374
7489
  import { jsx as jsx6 } from "react/jsx-runtime";
7375
7490
  var ServiceContext = createContext2(null);
@@ -7462,7 +7577,9 @@ var ServiceProvider = ({
7462
7577
  useGetOrderLine: use_get_order_line_default,
7463
7578
  useGetProductImage: use_get_product_image_default,
7464
7579
  useAddEntity: use_add_entity_default,
7465
- useCheckPayment: use_check_payment_default
7580
+ useCheckPayment: use_check_payment_default,
7581
+ useGetDataCloseSession: use_get_data_close_session_default,
7582
+ useGetDetailEntity: use_get_detail_entity_default
7466
7583
  };
7467
7584
  return /* @__PURE__ */ jsx6(ServiceContext.Provider, { value: services, children });
7468
7585
  };
@@ -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) => Promise<any>;
83
+ getInfoCompany: (id: number, service: any) => 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) => Promise<any>;
236
+ getMenu: (context: any, specification: any, domain: any, service?: string) => Promise<any>;
237
237
  getActionDetail: (aid: number, context: any) => Promise<any>;
238
238
  getResequence: ({ model, ids, context, offset, }: {
239
239
  model: string;
@@ -408,6 +408,20 @@ declare function useViewService(): {
408
408
  service: string;
409
409
  xNode: string;
410
410
  }) => any;
411
+ getDataCloseSession: ({ model, ids, xNode, service, }: {
412
+ model: string;
413
+ ids: any;
414
+ service: string;
415
+ xNode: string;
416
+ }) => any;
417
+ getDetailEntity: ({ model, ids, method, xNode, service, kwargs, }: {
418
+ model: string;
419
+ ids: any;
420
+ method: string;
421
+ service: string;
422
+ xNode: string;
423
+ kwargs: any;
424
+ }) => any;
411
425
  };
412
426
 
413
427
  export { useActionService, useAuthService, useCompanyService, useExcelService, useFormService, useKanbanService, useModelService, useUserService, useViewService };
@@ -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) => Promise<any>;
83
+ getInfoCompany: (id: number, service: any) => 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) => Promise<any>;
236
+ getMenu: (context: any, specification: any, domain: any, service?: string) => Promise<any>;
237
237
  getActionDetail: (aid: number, context: any) => Promise<any>;
238
238
  getResequence: ({ model, ids, context, offset, }: {
239
239
  model: string;
@@ -408,6 +408,20 @@ declare function useViewService(): {
408
408
  service: string;
409
409
  xNode: string;
410
410
  }) => any;
411
+ getDataCloseSession: ({ model, ids, xNode, service, }: {
412
+ model: string;
413
+ ids: any;
414
+ service: string;
415
+ xNode: string;
416
+ }) => any;
417
+ getDetailEntity: ({ model, ids, method, xNode, service, kwargs, }: {
418
+ model: string;
419
+ ids: any;
420
+ method: string;
421
+ service: string;
422
+ xNode: string;
423
+ kwargs: any;
424
+ }) => any;
411
425
  };
412
426
 
413
427
  export { useActionService, useAuthService, useCompanyService, useExcelService, useFormService, useKanbanService, useModelService, useUserService, useViewService };
package/dist/services.js CHANGED
@@ -3105,6 +3105,12 @@ 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
3109
+ var import_react_query87 = require("@tanstack/react-query");
3110
+
3111
+ // src/hooks/view/use-get-detail-entity.ts
3112
+ var import_react_query88 = require("@tanstack/react-query");
3113
+
3108
3114
  // src/provider/service-provider.tsx
3109
3115
  var import_jsx_runtime6 = require("react/jsx-runtime");
3110
3116
  var ServiceContext = (0, import_react4.createContext)(null);
@@ -3554,7 +3560,7 @@ function useCompanyService() {
3554
3560
  [env]
3555
3561
  );
3556
3562
  const getInfoCompany = (0, import_react8.useCallback)(
3557
- async (id) => {
3563
+ async (id, service) => {
3558
3564
  const jsonData = {
3559
3565
  ids: [id],
3560
3566
  model: "res.company" /* COMPANY */,
@@ -3569,11 +3575,16 @@ function useCompanyService() {
3569
3575
  }
3570
3576
  }
3571
3577
  };
3572
- return await env.requests.post("/call" /* CALL_PATH */, jsonData, {
3573
- headers: {
3574
- "Content-Type": "application/json"
3575
- }
3576
- });
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
+ );
3577
3588
  },
3578
3589
  [env]
3579
3590
  );
@@ -4529,7 +4540,7 @@ function useViewService() {
4529
4540
  [env]
4530
4541
  );
4531
4542
  const getMenu = (0, import_react14.useCallback)(
4532
- async (context, specification, domain) => {
4543
+ async (context, specification, domain, service) => {
4533
4544
  const jsonData = {
4534
4545
  model: "ir.ui.menu" /* MENU */,
4535
4546
  method: "web_search_read" /* WEB_SEARCH_READ */,
@@ -4546,11 +4557,16 @@ function useViewService() {
4546
4557
  ]
4547
4558
  }
4548
4559
  };
4549
- return env?.requests?.post("/call" /* CALL_PATH */, jsonData, {
4550
- headers: {
4551
- "Content-Type": "application/json"
4552
- }
4553
- });
4560
+ return env?.requests?.post(
4561
+ "/call" /* CALL_PATH */,
4562
+ jsonData,
4563
+ {
4564
+ headers: {
4565
+ "Content-Type": "application/json"
4566
+ }
4567
+ },
4568
+ service
4569
+ );
4554
4570
  },
4555
4571
  [env]
4556
4572
  );
@@ -5376,6 +5392,61 @@ function useViewService() {
5376
5392
  },
5377
5393
  [env]
5378
5394
  );
5395
+ const getDataCloseSession = (0, import_react14.useCallback)(
5396
+ ({
5397
+ model,
5398
+ ids,
5399
+ xNode,
5400
+ service
5401
+ }) => {
5402
+ const jsonData = {
5403
+ model,
5404
+ ids,
5405
+ method: "get_closing_control_data" /* GET_CLOSING_CONTROL_DATA */
5406
+ };
5407
+ return env?.requests.post(
5408
+ "/call" /* CALL_PATH */,
5409
+ jsonData,
5410
+ {
5411
+ headers: {
5412
+ "Content-Type": "application/json",
5413
+ ...xNode ? { "X-Node": xNode } : {}
5414
+ }
5415
+ },
5416
+ service
5417
+ );
5418
+ },
5419
+ [env]
5420
+ );
5421
+ const getDetailEntity = (0, import_react14.useCallback)(
5422
+ ({
5423
+ model,
5424
+ ids,
5425
+ method,
5426
+ xNode,
5427
+ service,
5428
+ kwargs
5429
+ }) => {
5430
+ const jsonData = {
5431
+ model,
5432
+ ids,
5433
+ method,
5434
+ kwargs
5435
+ };
5436
+ return env?.requests.post(
5437
+ "/call" /* CALL_PATH */,
5438
+ jsonData,
5439
+ {
5440
+ headers: {
5441
+ "Content-Type": "application/json",
5442
+ ...xNode ? { "X-Node": xNode } : {}
5443
+ }
5444
+ },
5445
+ service
5446
+ );
5447
+ },
5448
+ [env]
5449
+ );
5379
5450
  return {
5380
5451
  getView,
5381
5452
  getMenu,
@@ -5407,7 +5478,9 @@ function useViewService() {
5407
5478
  getOrderLine,
5408
5479
  getProductImage,
5409
5480
  addEntity,
5410
- checkPayment
5481
+ checkPayment,
5482
+ getDataCloseSession,
5483
+ getDetailEntity
5411
5484
  };
5412
5485
  }
5413
5486
  // Annotate the CommonJS export names for ESM import in node: