@fctc/interface-logic 4.7.2 → 4.7.4
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 +9 -5
- package/dist/hooks.d.ts +9 -5
- package/dist/hooks.js +122 -80
- package/dist/hooks.mjs +121 -80
- package/dist/provider.d.mts +2 -1
- package/dist/provider.d.ts +2 -1
- package/dist/provider.js +143 -102
- package/dist/provider.mjs +132 -91
- package/dist/services.d.mts +8 -4
- package/dist/services.d.ts +8 -4
- package/dist/services.js +172 -137
- package/dist/services.mjs +169 -134
- package/package.json +1 -1
package/dist/services.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/services/action-service/index.ts
|
|
2
|
-
import { useCallback as
|
|
2
|
+
import { useCallback as useCallback47 } from "react";
|
|
3
3
|
|
|
4
4
|
// src/constants/api/uri-constant.ts
|
|
5
5
|
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
@@ -4435,19 +4435,19 @@ var updateFloorSupabaseService = () => {
|
|
|
4435
4435
|
async (values) => {
|
|
4436
4436
|
if (!supabase) {
|
|
4437
4437
|
console.error("Supabase client not initialized");
|
|
4438
|
-
return
|
|
4438
|
+
return false;
|
|
4439
4439
|
}
|
|
4440
4440
|
try {
|
|
4441
4441
|
const { id, ...updateData } = values;
|
|
4442
|
-
const { error
|
|
4442
|
+
const { error } = await supabase.from("restaurant_floors" /* RESTAURANT_FLOORS */).update(updateData).eq("id", id);
|
|
4443
4443
|
if (error) {
|
|
4444
4444
|
console.error("Error updating floor:", error);
|
|
4445
|
-
return
|
|
4445
|
+
return false;
|
|
4446
4446
|
}
|
|
4447
|
-
return
|
|
4447
|
+
return true;
|
|
4448
4448
|
} catch (error) {
|
|
4449
4449
|
console.error("Error updating floor:", error);
|
|
4450
|
-
return
|
|
4450
|
+
return false;
|
|
4451
4451
|
}
|
|
4452
4452
|
},
|
|
4453
4453
|
[supabase]
|
|
@@ -4465,19 +4465,19 @@ var updateTableSupabaseService = () => {
|
|
|
4465
4465
|
async (values) => {
|
|
4466
4466
|
if (!supabase) {
|
|
4467
4467
|
console.error("Supabase client not initialized");
|
|
4468
|
-
return
|
|
4468
|
+
return false;
|
|
4469
4469
|
}
|
|
4470
4470
|
try {
|
|
4471
4471
|
const { id, ...updateData } = values;
|
|
4472
|
-
const { error
|
|
4472
|
+
const { error } = await supabase.from("restaurant_tables" /* RESTAURANT_TABLES */).update(updateData).eq("id", id);
|
|
4473
4473
|
if (error) {
|
|
4474
4474
|
console.error("Error updating table:", error);
|
|
4475
|
-
return
|
|
4475
|
+
return false;
|
|
4476
4476
|
}
|
|
4477
|
-
return
|
|
4477
|
+
return true;
|
|
4478
4478
|
} catch (error) {
|
|
4479
4479
|
console.error("Error updating table:", error);
|
|
4480
|
-
return
|
|
4480
|
+
return false;
|
|
4481
4481
|
}
|
|
4482
4482
|
},
|
|
4483
4483
|
[supabase]
|
|
@@ -4495,18 +4495,18 @@ var deleteFloorSupabaseService = () => {
|
|
|
4495
4495
|
async (values) => {
|
|
4496
4496
|
if (!supabase) {
|
|
4497
4497
|
console.error("Supabase client not initialized");
|
|
4498
|
-
return
|
|
4498
|
+
return false;
|
|
4499
4499
|
}
|
|
4500
4500
|
try {
|
|
4501
4501
|
const { error } = await supabase.from("restaurant_floors" /* RESTAURANT_FLOORS */).delete().eq("id", values.id);
|
|
4502
4502
|
if (error) {
|
|
4503
4503
|
console.error("Error deleting floor:", error);
|
|
4504
|
-
return
|
|
4504
|
+
return false;
|
|
4505
4505
|
}
|
|
4506
|
-
return
|
|
4506
|
+
return true;
|
|
4507
4507
|
} catch (error) {
|
|
4508
4508
|
console.error("Error deleting floor:", error);
|
|
4509
|
-
return
|
|
4509
|
+
return false;
|
|
4510
4510
|
}
|
|
4511
4511
|
},
|
|
4512
4512
|
[supabase]
|
|
@@ -4524,18 +4524,18 @@ var deleteTableSupabaseService = () => {
|
|
|
4524
4524
|
async (values) => {
|
|
4525
4525
|
if (!supabase) {
|
|
4526
4526
|
console.error("Supabase client not initialized");
|
|
4527
|
-
return
|
|
4527
|
+
return false;
|
|
4528
4528
|
}
|
|
4529
4529
|
try {
|
|
4530
|
-
const { error
|
|
4530
|
+
const { error } = await supabase.from("restaurant_tables" /* RESTAURANT_TABLES */).delete().eq("id", values.id);
|
|
4531
4531
|
if (error) {
|
|
4532
4532
|
console.error("Error deleting table:", error);
|
|
4533
|
-
return
|
|
4533
|
+
return false;
|
|
4534
4534
|
}
|
|
4535
|
-
return
|
|
4535
|
+
return true;
|
|
4536
4536
|
} catch (error) {
|
|
4537
4537
|
console.error("Error deleting table:", error);
|
|
4538
|
-
return
|
|
4538
|
+
return false;
|
|
4539
4539
|
}
|
|
4540
4540
|
},
|
|
4541
4541
|
[supabase]
|
|
@@ -4545,6 +4545,58 @@ var deleteTableSupabaseService = () => {
|
|
|
4545
4545
|
};
|
|
4546
4546
|
};
|
|
4547
4547
|
|
|
4548
|
+
// src/services/pos-service/supabase/create-order.ts
|
|
4549
|
+
import { useCallback as useCallback39 } from "react";
|
|
4550
|
+
|
|
4551
|
+
// src/services/pos-service/supabase/add-product-to-order.ts
|
|
4552
|
+
import { useCallback as useCallback40 } from "react";
|
|
4553
|
+
|
|
4554
|
+
// src/services/pos-service/supabase/update-order-total-amount.ts
|
|
4555
|
+
import { useCallback as useCallback41 } from "react";
|
|
4556
|
+
|
|
4557
|
+
// src/services/pos-service/supabase/update-order-line.ts
|
|
4558
|
+
import { useCallback as useCallback42 } from "react";
|
|
4559
|
+
|
|
4560
|
+
// src/services/pos-service/supabase/update-order.ts
|
|
4561
|
+
import { useCallback as useCallback43 } from "react";
|
|
4562
|
+
|
|
4563
|
+
// src/services/pos-service/supabase/delete-order.ts
|
|
4564
|
+
import { useCallback as useCallback44 } from "react";
|
|
4565
|
+
|
|
4566
|
+
// src/services/pos-service/supabase/delete-order-line.ts
|
|
4567
|
+
import { useCallback as useCallback45 } from "react";
|
|
4568
|
+
|
|
4569
|
+
// src/services/pos-service/supabase/add-category.ts
|
|
4570
|
+
import { useCallback as useCallback46 } from "react";
|
|
4571
|
+
var addCategorySupabaseService = () => {
|
|
4572
|
+
const supabase = useSupabaseOptional();
|
|
4573
|
+
const addCategorySupabase = useCallback46(
|
|
4574
|
+
async (values) => {
|
|
4575
|
+
if (!supabase) {
|
|
4576
|
+
console.error("Supabase client not initialized");
|
|
4577
|
+
return null;
|
|
4578
|
+
}
|
|
4579
|
+
try {
|
|
4580
|
+
const { data, error } = await supabase.from("pos_categories" /* POS_CATEGORIES */).insert({
|
|
4581
|
+
name: values.name
|
|
4582
|
+
}).select("id, name").single();
|
|
4583
|
+
if (error) {
|
|
4584
|
+
console.error("Error adding Category:", error);
|
|
4585
|
+
return null;
|
|
4586
|
+
}
|
|
4587
|
+
return [[data.id, data.name]];
|
|
4588
|
+
} catch (error) {
|
|
4589
|
+
console.error("Error adding Category:", error);
|
|
4590
|
+
return null;
|
|
4591
|
+
}
|
|
4592
|
+
},
|
|
4593
|
+
[supabase]
|
|
4594
|
+
);
|
|
4595
|
+
return {
|
|
4596
|
+
addCategorySupabase
|
|
4597
|
+
};
|
|
4598
|
+
};
|
|
4599
|
+
|
|
4548
4600
|
// src/services/pos-service/index.ts
|
|
4549
4601
|
var serviceFactories = [
|
|
4550
4602
|
addEntityService,
|
|
@@ -4582,7 +4634,8 @@ var serviceFactories = [
|
|
|
4582
4634
|
updateFloorSupabaseService,
|
|
4583
4635
|
updateTableSupabaseService,
|
|
4584
4636
|
deleteFloorSupabaseService,
|
|
4585
|
-
deleteTableSupabaseService
|
|
4637
|
+
deleteTableSupabaseService,
|
|
4638
|
+
addCategorySupabaseService
|
|
4586
4639
|
];
|
|
4587
4640
|
var usePosService = () => {
|
|
4588
4641
|
const { env } = useEnv();
|
|
@@ -4684,27 +4737,6 @@ import { useMutation as useMutation87 } from "@tanstack/react-query";
|
|
|
4684
4737
|
// src/hooks/pos/supabase/use-add-floor.ts
|
|
4685
4738
|
import { useMutation as useMutation88 } from "@tanstack/react-query";
|
|
4686
4739
|
|
|
4687
|
-
// src/services/pos-service/supabase/create-order.ts
|
|
4688
|
-
import { useCallback as useCallback39 } from "react";
|
|
4689
|
-
|
|
4690
|
-
// src/services/pos-service/supabase/add-product-to-order.ts
|
|
4691
|
-
import { useCallback as useCallback40 } from "react";
|
|
4692
|
-
|
|
4693
|
-
// src/services/pos-service/supabase/update-order-total-amount.ts
|
|
4694
|
-
import { useCallback as useCallback41 } from "react";
|
|
4695
|
-
|
|
4696
|
-
// src/services/pos-service/supabase/update-order-line.ts
|
|
4697
|
-
import { useCallback as useCallback42 } from "react";
|
|
4698
|
-
|
|
4699
|
-
// src/services/pos-service/supabase/update-order.ts
|
|
4700
|
-
import { useCallback as useCallback43 } from "react";
|
|
4701
|
-
|
|
4702
|
-
// src/services/pos-service/supabase/delete-order.ts
|
|
4703
|
-
import { useCallback as useCallback44 } from "react";
|
|
4704
|
-
|
|
4705
|
-
// src/services/pos-service/supabase/delete-order-line.ts
|
|
4706
|
-
import { useCallback as useCallback45 } from "react";
|
|
4707
|
-
|
|
4708
4740
|
// src/hooks/pos/supabase/use-add-table.ts
|
|
4709
4741
|
import { useMutation as useMutation89 } from "@tanstack/react-query";
|
|
4710
4742
|
|
|
@@ -4723,6 +4755,9 @@ import { useMutation as useMutation93 } from "@tanstack/react-query";
|
|
|
4723
4755
|
// src/hooks/pos/supabase/use-create-order.ts
|
|
4724
4756
|
import { useMutation as useMutation94 } from "@tanstack/react-query";
|
|
4725
4757
|
|
|
4758
|
+
// src/hooks/pos/supabase/use-add-category.ts
|
|
4759
|
+
import { useMutation as useMutation95 } from "@tanstack/react-query";
|
|
4760
|
+
|
|
4726
4761
|
// src/provider/service-provider.tsx
|
|
4727
4762
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
4728
4763
|
var ServiceContext = createContext3(null);
|
|
@@ -4734,7 +4769,7 @@ import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
|
|
|
4734
4769
|
// src/services/action-service/index.ts
|
|
4735
4770
|
function useActionService() {
|
|
4736
4771
|
const { env } = useEnv();
|
|
4737
|
-
const loadAction =
|
|
4772
|
+
const loadAction = useCallback47(
|
|
4738
4773
|
async ({
|
|
4739
4774
|
idAction,
|
|
4740
4775
|
context,
|
|
@@ -4758,7 +4793,7 @@ function useActionService() {
|
|
|
4758
4793
|
},
|
|
4759
4794
|
[env]
|
|
4760
4795
|
);
|
|
4761
|
-
const callButton =
|
|
4796
|
+
const callButton = useCallback47(
|
|
4762
4797
|
async ({
|
|
4763
4798
|
model,
|
|
4764
4799
|
ids = [],
|
|
@@ -4792,7 +4827,7 @@ function useActionService() {
|
|
|
4792
4827
|
},
|
|
4793
4828
|
[env]
|
|
4794
4829
|
);
|
|
4795
|
-
const removeRows =
|
|
4830
|
+
const removeRows = useCallback47(
|
|
4796
4831
|
async ({
|
|
4797
4832
|
model,
|
|
4798
4833
|
ids,
|
|
@@ -4818,7 +4853,7 @@ function useActionService() {
|
|
|
4818
4853
|
},
|
|
4819
4854
|
[env]
|
|
4820
4855
|
);
|
|
4821
|
-
const duplicateRecord =
|
|
4856
|
+
const duplicateRecord = useCallback47(
|
|
4822
4857
|
async ({
|
|
4823
4858
|
model,
|
|
4824
4859
|
id,
|
|
@@ -4844,7 +4879,7 @@ function useActionService() {
|
|
|
4844
4879
|
},
|
|
4845
4880
|
[env]
|
|
4846
4881
|
);
|
|
4847
|
-
const getPrintReportName =
|
|
4882
|
+
const getPrintReportName = useCallback47(
|
|
4848
4883
|
async ({ id }) => {
|
|
4849
4884
|
const jsonData = {
|
|
4850
4885
|
model: "ir.actions.report",
|
|
@@ -4862,7 +4897,7 @@ function useActionService() {
|
|
|
4862
4897
|
},
|
|
4863
4898
|
[env]
|
|
4864
4899
|
);
|
|
4865
|
-
const print =
|
|
4900
|
+
const print = useCallback47(
|
|
4866
4901
|
async ({ id, report, db }) => {
|
|
4867
4902
|
const jsonData = {
|
|
4868
4903
|
report,
|
|
@@ -4880,7 +4915,7 @@ function useActionService() {
|
|
|
4880
4915
|
},
|
|
4881
4916
|
[env]
|
|
4882
4917
|
);
|
|
4883
|
-
const runAction =
|
|
4918
|
+
const runAction = useCallback47(
|
|
4884
4919
|
async ({
|
|
4885
4920
|
idAction,
|
|
4886
4921
|
context,
|
|
@@ -4907,7 +4942,7 @@ function useActionService() {
|
|
|
4907
4942
|
},
|
|
4908
4943
|
[env]
|
|
4909
4944
|
);
|
|
4910
|
-
const generateSerialNumber =
|
|
4945
|
+
const generateSerialNumber = useCallback47(
|
|
4911
4946
|
async ({
|
|
4912
4947
|
kwargs,
|
|
4913
4948
|
context,
|
|
@@ -4945,11 +4980,11 @@ function useActionService() {
|
|
|
4945
4980
|
}
|
|
4946
4981
|
|
|
4947
4982
|
// src/services/auth-service/index.ts
|
|
4948
|
-
import { useCallback as
|
|
4983
|
+
import { useCallback as useCallback48 } from "react";
|
|
4949
4984
|
function useAuthService() {
|
|
4950
4985
|
const { env } = useEnv();
|
|
4951
4986
|
const supabase = useSupabaseOptional();
|
|
4952
|
-
const login =
|
|
4987
|
+
const login = useCallback48(
|
|
4953
4988
|
async (body) => {
|
|
4954
4989
|
const payload = Object.fromEntries(
|
|
4955
4990
|
Object.entries({
|
|
@@ -4974,7 +5009,7 @@ function useAuthService() {
|
|
|
4974
5009
|
},
|
|
4975
5010
|
[env]
|
|
4976
5011
|
);
|
|
4977
|
-
const loginSupabase =
|
|
5012
|
+
const loginSupabase = useCallback48(
|
|
4978
5013
|
async (body) => {
|
|
4979
5014
|
if (!supabase) {
|
|
4980
5015
|
return {
|
|
@@ -4990,7 +5025,7 @@ function useAuthService() {
|
|
|
4990
5025
|
},
|
|
4991
5026
|
[supabase]
|
|
4992
5027
|
);
|
|
4993
|
-
const forgotPassword =
|
|
5028
|
+
const forgotPassword = useCallback48(
|
|
4994
5029
|
async (email) => {
|
|
4995
5030
|
const bodyData = {
|
|
4996
5031
|
login: email,
|
|
@@ -5004,7 +5039,7 @@ function useAuthService() {
|
|
|
5004
5039
|
},
|
|
5005
5040
|
[env]
|
|
5006
5041
|
);
|
|
5007
|
-
const forgotPasswordSSO =
|
|
5042
|
+
const forgotPasswordSSO = useCallback48(
|
|
5008
5043
|
async ({
|
|
5009
5044
|
email,
|
|
5010
5045
|
with_context,
|
|
@@ -5027,7 +5062,7 @@ function useAuthService() {
|
|
|
5027
5062
|
},
|
|
5028
5063
|
[env]
|
|
5029
5064
|
);
|
|
5030
|
-
const resetPassword =
|
|
5065
|
+
const resetPassword = useCallback48(
|
|
5031
5066
|
async (data, token) => {
|
|
5032
5067
|
const bodyData = {
|
|
5033
5068
|
token,
|
|
@@ -5042,7 +5077,7 @@ function useAuthService() {
|
|
|
5042
5077
|
},
|
|
5043
5078
|
[env]
|
|
5044
5079
|
);
|
|
5045
|
-
const resetPasswordSSO =
|
|
5080
|
+
const resetPasswordSSO = useCallback48(
|
|
5046
5081
|
async ({
|
|
5047
5082
|
method,
|
|
5048
5083
|
password,
|
|
@@ -5065,7 +5100,7 @@ function useAuthService() {
|
|
|
5065
5100
|
},
|
|
5066
5101
|
[env]
|
|
5067
5102
|
);
|
|
5068
|
-
const updatePassword =
|
|
5103
|
+
const updatePassword = useCallback48(
|
|
5069
5104
|
async (data, token) => {
|
|
5070
5105
|
const bodyData = {
|
|
5071
5106
|
token,
|
|
@@ -5080,7 +5115,7 @@ function useAuthService() {
|
|
|
5080
5115
|
},
|
|
5081
5116
|
[env]
|
|
5082
5117
|
);
|
|
5083
|
-
const isValidToken =
|
|
5118
|
+
const isValidToken = useCallback48(
|
|
5084
5119
|
async (token) => {
|
|
5085
5120
|
const bodyData = {
|
|
5086
5121
|
token
|
|
@@ -5093,7 +5128,7 @@ function useAuthService() {
|
|
|
5093
5128
|
},
|
|
5094
5129
|
[env]
|
|
5095
5130
|
);
|
|
5096
|
-
const isValidActionToken =
|
|
5131
|
+
const isValidActionToken = useCallback48(
|
|
5097
5132
|
async (actionToken) => {
|
|
5098
5133
|
const bodyData = {};
|
|
5099
5134
|
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
@@ -5106,7 +5141,7 @@ function useAuthService() {
|
|
|
5106
5141
|
},
|
|
5107
5142
|
[env]
|
|
5108
5143
|
);
|
|
5109
|
-
const loginSocial =
|
|
5144
|
+
const loginSocial = useCallback48(
|
|
5110
5145
|
async ({
|
|
5111
5146
|
db,
|
|
5112
5147
|
state,
|
|
@@ -5124,13 +5159,13 @@ function useAuthService() {
|
|
|
5124
5159
|
},
|
|
5125
5160
|
[env]
|
|
5126
5161
|
);
|
|
5127
|
-
const getProviders =
|
|
5162
|
+
const getProviders = useCallback48(
|
|
5128
5163
|
async (db) => {
|
|
5129
5164
|
return env?.requests?.get("/oauth/providers", { params: { db } });
|
|
5130
5165
|
},
|
|
5131
5166
|
[env]
|
|
5132
5167
|
);
|
|
5133
|
-
const getAccessByCode =
|
|
5168
|
+
const getAccessByCode = useCallback48(
|
|
5134
5169
|
async (code) => {
|
|
5135
5170
|
const data = new URLSearchParams();
|
|
5136
5171
|
data.append("code", code);
|
|
@@ -5150,7 +5185,7 @@ function useAuthService() {
|
|
|
5150
5185
|
},
|
|
5151
5186
|
[env]
|
|
5152
5187
|
);
|
|
5153
|
-
const logout =
|
|
5188
|
+
const logout = useCallback48(
|
|
5154
5189
|
async (service) => {
|
|
5155
5190
|
return env?.requests?.post(
|
|
5156
5191
|
"/logout" /* LOGOUT */,
|
|
@@ -5167,7 +5202,7 @@ function useAuthService() {
|
|
|
5167
5202
|
},
|
|
5168
5203
|
[env]
|
|
5169
5204
|
);
|
|
5170
|
-
const getTenantMapping =
|
|
5205
|
+
const getTenantMapping = useCallback48(
|
|
5171
5206
|
async ({ shortName, service }) => {
|
|
5172
5207
|
const bodyData = {
|
|
5173
5208
|
short_name: shortName
|
|
@@ -5185,7 +5220,7 @@ function useAuthService() {
|
|
|
5185
5220
|
},
|
|
5186
5221
|
[env]
|
|
5187
5222
|
);
|
|
5188
|
-
const getToken =
|
|
5223
|
+
const getToken = useCallback48(
|
|
5189
5224
|
async ({
|
|
5190
5225
|
phone,
|
|
5191
5226
|
name,
|
|
@@ -5230,10 +5265,10 @@ function useAuthService() {
|
|
|
5230
5265
|
}
|
|
5231
5266
|
|
|
5232
5267
|
// src/services/company-service/index.ts
|
|
5233
|
-
import { useCallback as
|
|
5268
|
+
import { useCallback as useCallback49 } from "react";
|
|
5234
5269
|
function useCompanyService() {
|
|
5235
5270
|
const { env } = useEnv();
|
|
5236
|
-
const getCurrentCompany =
|
|
5271
|
+
const getCurrentCompany = useCallback49(
|
|
5237
5272
|
async (service, extraHeaders) => {
|
|
5238
5273
|
return await env.requests.get(
|
|
5239
5274
|
"/company" /* COMPANY_PATH */,
|
|
@@ -5250,7 +5285,7 @@ function useCompanyService() {
|
|
|
5250
5285
|
},
|
|
5251
5286
|
[env]
|
|
5252
5287
|
);
|
|
5253
|
-
const getInfoCompany =
|
|
5288
|
+
const getInfoCompany = useCallback49(
|
|
5254
5289
|
async (id, service) => {
|
|
5255
5290
|
const jsonData = {
|
|
5256
5291
|
ids: [id],
|
|
@@ -5286,10 +5321,10 @@ function useCompanyService() {
|
|
|
5286
5321
|
}
|
|
5287
5322
|
|
|
5288
5323
|
// src/services/excel-service/index.ts
|
|
5289
|
-
import { useCallback as
|
|
5324
|
+
import { useCallback as useCallback50 } from "react";
|
|
5290
5325
|
function useExcelService() {
|
|
5291
5326
|
const { env } = useEnv();
|
|
5292
|
-
const uploadFileExcel =
|
|
5327
|
+
const uploadFileExcel = useCallback50(
|
|
5293
5328
|
async ({
|
|
5294
5329
|
formData,
|
|
5295
5330
|
service,
|
|
@@ -5306,7 +5341,7 @@ function useExcelService() {
|
|
|
5306
5341
|
},
|
|
5307
5342
|
[env]
|
|
5308
5343
|
);
|
|
5309
|
-
const uploadIdFile =
|
|
5344
|
+
const uploadIdFile = useCallback50(
|
|
5310
5345
|
async ({
|
|
5311
5346
|
formData,
|
|
5312
5347
|
service,
|
|
@@ -5323,7 +5358,7 @@ function useExcelService() {
|
|
|
5323
5358
|
},
|
|
5324
5359
|
[env]
|
|
5325
5360
|
);
|
|
5326
|
-
const parsePreview =
|
|
5361
|
+
const parsePreview = useCallback50(
|
|
5327
5362
|
async ({
|
|
5328
5363
|
id,
|
|
5329
5364
|
selectedSheet,
|
|
@@ -5372,7 +5407,7 @@ function useExcelService() {
|
|
|
5372
5407
|
},
|
|
5373
5408
|
[env]
|
|
5374
5409
|
);
|
|
5375
|
-
const executeImport =
|
|
5410
|
+
const executeImport = useCallback50(
|
|
5376
5411
|
async ({
|
|
5377
5412
|
columns,
|
|
5378
5413
|
fields,
|
|
@@ -5406,7 +5441,7 @@ function useExcelService() {
|
|
|
5406
5441
|
},
|
|
5407
5442
|
[env]
|
|
5408
5443
|
);
|
|
5409
|
-
const getFileExcel =
|
|
5444
|
+
const getFileExcel = useCallback50(
|
|
5410
5445
|
async ({
|
|
5411
5446
|
model,
|
|
5412
5447
|
service,
|
|
@@ -5430,7 +5465,7 @@ function useExcelService() {
|
|
|
5430
5465
|
},
|
|
5431
5466
|
[env]
|
|
5432
5467
|
);
|
|
5433
|
-
const getFieldExport =
|
|
5468
|
+
const getFieldExport = useCallback50(
|
|
5434
5469
|
async ({
|
|
5435
5470
|
ids,
|
|
5436
5471
|
model,
|
|
@@ -5470,7 +5505,7 @@ function useExcelService() {
|
|
|
5470
5505
|
},
|
|
5471
5506
|
[env]
|
|
5472
5507
|
);
|
|
5473
|
-
const exportExcel =
|
|
5508
|
+
const exportExcel = useCallback50(
|
|
5474
5509
|
async ({
|
|
5475
5510
|
model,
|
|
5476
5511
|
domain,
|
|
@@ -5518,10 +5553,10 @@ function useExcelService() {
|
|
|
5518
5553
|
}
|
|
5519
5554
|
|
|
5520
5555
|
// src/services/form-service/index.ts
|
|
5521
|
-
import { useCallback as
|
|
5556
|
+
import { useCallback as useCallback51 } from "react";
|
|
5522
5557
|
function useFormService() {
|
|
5523
5558
|
const { env } = useEnv();
|
|
5524
|
-
const getComment =
|
|
5559
|
+
const getComment = useCallback51(
|
|
5525
5560
|
async ({ data }) => {
|
|
5526
5561
|
const jsonData = {
|
|
5527
5562
|
thread_id: data.thread_id,
|
|
@@ -5539,7 +5574,7 @@ function useFormService() {
|
|
|
5539
5574
|
},
|
|
5540
5575
|
[env]
|
|
5541
5576
|
);
|
|
5542
|
-
const getThreadData =
|
|
5577
|
+
const getThreadData = useCallback51(
|
|
5543
5578
|
async ({
|
|
5544
5579
|
data,
|
|
5545
5580
|
xNode,
|
|
@@ -5566,7 +5601,7 @@ function useFormService() {
|
|
|
5566
5601
|
},
|
|
5567
5602
|
[env]
|
|
5568
5603
|
);
|
|
5569
|
-
const getThreadMessages =
|
|
5604
|
+
const getThreadMessages = useCallback51(
|
|
5570
5605
|
async ({
|
|
5571
5606
|
data,
|
|
5572
5607
|
xNode,
|
|
@@ -5592,7 +5627,7 @@ function useFormService() {
|
|
|
5592
5627
|
},
|
|
5593
5628
|
[env]
|
|
5594
5629
|
);
|
|
5595
|
-
const sentComment =
|
|
5630
|
+
const sentComment = useCallback51(
|
|
5596
5631
|
async ({ data }) => {
|
|
5597
5632
|
const jsonData = {
|
|
5598
5633
|
context: {
|
|
@@ -5620,7 +5655,7 @@ function useFormService() {
|
|
|
5620
5655
|
},
|
|
5621
5656
|
[env]
|
|
5622
5657
|
);
|
|
5623
|
-
const deleteComment =
|
|
5658
|
+
const deleteComment = useCallback51(
|
|
5624
5659
|
async ({ data }) => {
|
|
5625
5660
|
const jsonData = {
|
|
5626
5661
|
attachment_ids: [],
|
|
@@ -5636,7 +5671,7 @@ function useFormService() {
|
|
|
5636
5671
|
},
|
|
5637
5672
|
[env]
|
|
5638
5673
|
);
|
|
5639
|
-
const getImage =
|
|
5674
|
+
const getImage = useCallback51(
|
|
5640
5675
|
async ({ data }) => {
|
|
5641
5676
|
return env.requests.get(
|
|
5642
5677
|
`${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
|
|
@@ -5649,7 +5684,7 @@ function useFormService() {
|
|
|
5649
5684
|
},
|
|
5650
5685
|
[env]
|
|
5651
5686
|
);
|
|
5652
|
-
const uploadImage =
|
|
5687
|
+
const uploadImage = useCallback51(
|
|
5653
5688
|
async ({
|
|
5654
5689
|
formData,
|
|
5655
5690
|
service,
|
|
@@ -5668,7 +5703,7 @@ function useFormService() {
|
|
|
5668
5703
|
},
|
|
5669
5704
|
[env]
|
|
5670
5705
|
);
|
|
5671
|
-
const uploadFile =
|
|
5706
|
+
const uploadFile = useCallback51(
|
|
5672
5707
|
async ({
|
|
5673
5708
|
formData,
|
|
5674
5709
|
service,
|
|
@@ -5688,7 +5723,7 @@ function useFormService() {
|
|
|
5688
5723
|
},
|
|
5689
5724
|
[env]
|
|
5690
5725
|
);
|
|
5691
|
-
const getFormView =
|
|
5726
|
+
const getFormView = useCallback51(
|
|
5692
5727
|
async ({ data }) => {
|
|
5693
5728
|
const jsonData = {
|
|
5694
5729
|
model: data.model,
|
|
@@ -5704,7 +5739,7 @@ function useFormService() {
|
|
|
5704
5739
|
},
|
|
5705
5740
|
[env]
|
|
5706
5741
|
);
|
|
5707
|
-
const changeStatus =
|
|
5742
|
+
const changeStatus = useCallback51(
|
|
5708
5743
|
async ({ data }) => {
|
|
5709
5744
|
const vals = {
|
|
5710
5745
|
[data.name]: data.stage_id
|
|
@@ -5733,7 +5768,7 @@ function useFormService() {
|
|
|
5733
5768
|
},
|
|
5734
5769
|
[env]
|
|
5735
5770
|
);
|
|
5736
|
-
const getExternalTab =
|
|
5771
|
+
const getExternalTab = useCallback51(
|
|
5737
5772
|
async ({ method, context, service, xNode }) => {
|
|
5738
5773
|
return env?.requests?.post(
|
|
5739
5774
|
"/call" /* CALL_PATH */,
|
|
@@ -5768,10 +5803,10 @@ function useFormService() {
|
|
|
5768
5803
|
}
|
|
5769
5804
|
|
|
5770
5805
|
// src/services/kanban-service/index.ts
|
|
5771
|
-
import { useCallback as
|
|
5806
|
+
import { useCallback as useCallback52 } from "react";
|
|
5772
5807
|
function useKanbanService() {
|
|
5773
5808
|
const { env } = useEnv();
|
|
5774
|
-
const getGroups =
|
|
5809
|
+
const getGroups = useCallback52(
|
|
5775
5810
|
async ({ model, width_context }) => {
|
|
5776
5811
|
const jsonData = {
|
|
5777
5812
|
model,
|
|
@@ -5791,7 +5826,7 @@ function useKanbanService() {
|
|
|
5791
5826
|
},
|
|
5792
5827
|
[env]
|
|
5793
5828
|
);
|
|
5794
|
-
const getProgressBar =
|
|
5829
|
+
const getProgressBar = useCallback52(
|
|
5795
5830
|
async ({ field, color, model, width_context }) => {
|
|
5796
5831
|
const jsonData = {
|
|
5797
5832
|
model,
|
|
@@ -5821,10 +5856,10 @@ function useKanbanService() {
|
|
|
5821
5856
|
}
|
|
5822
5857
|
|
|
5823
5858
|
// src/services/model-service/index.ts
|
|
5824
|
-
import { useCallback as
|
|
5859
|
+
import { useCallback as useCallback53 } from "react";
|
|
5825
5860
|
function useModelService() {
|
|
5826
5861
|
const { env } = useEnv();
|
|
5827
|
-
const getListMyBankAccount =
|
|
5862
|
+
const getListMyBankAccount = useCallback53(
|
|
5828
5863
|
async ({
|
|
5829
5864
|
domain,
|
|
5830
5865
|
spectification,
|
|
@@ -5848,7 +5883,7 @@ function useModelService() {
|
|
|
5848
5883
|
},
|
|
5849
5884
|
[env]
|
|
5850
5885
|
);
|
|
5851
|
-
const getCurrency =
|
|
5886
|
+
const getCurrency = useCallback53(async () => {
|
|
5852
5887
|
const jsonData = {
|
|
5853
5888
|
model: "res.currency",
|
|
5854
5889
|
method: "web_search_read",
|
|
@@ -5868,7 +5903,7 @@ function useModelService() {
|
|
|
5868
5903
|
}
|
|
5869
5904
|
});
|
|
5870
5905
|
}, [env]);
|
|
5871
|
-
const getConversionRate =
|
|
5906
|
+
const getConversionRate = useCallback53(async () => {
|
|
5872
5907
|
const jsonData = {
|
|
5873
5908
|
model: "res.currency",
|
|
5874
5909
|
method: "web_search_read",
|
|
@@ -5894,7 +5929,7 @@ function useModelService() {
|
|
|
5894
5929
|
}
|
|
5895
5930
|
});
|
|
5896
5931
|
}, [env]);
|
|
5897
|
-
const getAll =
|
|
5932
|
+
const getAll = useCallback53(
|
|
5898
5933
|
async ({
|
|
5899
5934
|
data,
|
|
5900
5935
|
service,
|
|
@@ -5936,7 +5971,7 @@ function useModelService() {
|
|
|
5936
5971
|
},
|
|
5937
5972
|
[env]
|
|
5938
5973
|
);
|
|
5939
|
-
const getListCalendar =
|
|
5974
|
+
const getListCalendar = useCallback53(
|
|
5940
5975
|
async ({ data }) => {
|
|
5941
5976
|
const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
5942
5977
|
fields: data.fields,
|
|
@@ -5967,7 +6002,7 @@ function useModelService() {
|
|
|
5967
6002
|
},
|
|
5968
6003
|
[env]
|
|
5969
6004
|
);
|
|
5970
|
-
const getList =
|
|
6005
|
+
const getList = useCallback53(
|
|
5971
6006
|
async ({
|
|
5972
6007
|
model,
|
|
5973
6008
|
ids = [],
|
|
@@ -5999,7 +6034,7 @@ function useModelService() {
|
|
|
5999
6034
|
},
|
|
6000
6035
|
[env]
|
|
6001
6036
|
);
|
|
6002
|
-
const getDetail =
|
|
6037
|
+
const getDetail = useCallback53(
|
|
6003
6038
|
async ({
|
|
6004
6039
|
ids = [],
|
|
6005
6040
|
model,
|
|
@@ -6031,7 +6066,7 @@ function useModelService() {
|
|
|
6031
6066
|
},
|
|
6032
6067
|
[env]
|
|
6033
6068
|
);
|
|
6034
|
-
const save =
|
|
6069
|
+
const save = useCallback53(
|
|
6035
6070
|
async ({
|
|
6036
6071
|
model,
|
|
6037
6072
|
ids = [],
|
|
@@ -6066,7 +6101,7 @@ function useModelService() {
|
|
|
6066
6101
|
},
|
|
6067
6102
|
[env]
|
|
6068
6103
|
);
|
|
6069
|
-
const deleteApi =
|
|
6104
|
+
const deleteApi = useCallback53(
|
|
6070
6105
|
async ({ ids = [], model, service }) => {
|
|
6071
6106
|
const jsonData = {
|
|
6072
6107
|
model,
|
|
@@ -6086,7 +6121,7 @@ function useModelService() {
|
|
|
6086
6121
|
},
|
|
6087
6122
|
[env]
|
|
6088
6123
|
);
|
|
6089
|
-
const onChange =
|
|
6124
|
+
const onChange = useCallback53(
|
|
6090
6125
|
async ({
|
|
6091
6126
|
ids = [],
|
|
6092
6127
|
model,
|
|
@@ -6122,7 +6157,7 @@ function useModelService() {
|
|
|
6122
6157
|
},
|
|
6123
6158
|
[env]
|
|
6124
6159
|
);
|
|
6125
|
-
const getListFieldsOnchange =
|
|
6160
|
+
const getListFieldsOnchange = useCallback53(
|
|
6126
6161
|
async ({
|
|
6127
6162
|
model,
|
|
6128
6163
|
service,
|
|
@@ -6146,7 +6181,7 @@ function useModelService() {
|
|
|
6146
6181
|
},
|
|
6147
6182
|
[env]
|
|
6148
6183
|
);
|
|
6149
|
-
const parseORMOdoo =
|
|
6184
|
+
const parseORMOdoo = useCallback53((data) => {
|
|
6150
6185
|
for (const key in data) {
|
|
6151
6186
|
if (key === "display_name") {
|
|
6152
6187
|
delete data[key];
|
|
@@ -6157,7 +6192,7 @@ function useModelService() {
|
|
|
6157
6192
|
}
|
|
6158
6193
|
return { ...data };
|
|
6159
6194
|
}, []);
|
|
6160
|
-
const toDataJS =
|
|
6195
|
+
const toDataJS = useCallback53(
|
|
6161
6196
|
(data, viewData, model) => {
|
|
6162
6197
|
for (const key in data) {
|
|
6163
6198
|
if (data[key] === false) {
|
|
@@ -6215,10 +6250,10 @@ function useModelService() {
|
|
|
6215
6250
|
}
|
|
6216
6251
|
|
|
6217
6252
|
// src/services/user-service/index.ts
|
|
6218
|
-
import { useCallback as
|
|
6253
|
+
import { useCallback as useCallback54 } from "react";
|
|
6219
6254
|
function useUserService() {
|
|
6220
6255
|
const { env } = useEnv();
|
|
6221
|
-
const getProfile =
|
|
6256
|
+
const getProfile = useCallback54(
|
|
6222
6257
|
async (service, path, extraHeaders) => {
|
|
6223
6258
|
return env?.requests?.get(
|
|
6224
6259
|
path || "/userinfo" /* PROFILE_PATH */,
|
|
@@ -6235,7 +6270,7 @@ function useUserService() {
|
|
|
6235
6270
|
},
|
|
6236
6271
|
[env]
|
|
6237
6272
|
);
|
|
6238
|
-
const getUser =
|
|
6273
|
+
const getUser = useCallback54(
|
|
6239
6274
|
async ({ context, id }) => {
|
|
6240
6275
|
const jsonData = {
|
|
6241
6276
|
model: "res.users",
|
|
@@ -6273,7 +6308,7 @@ function useUserService() {
|
|
|
6273
6308
|
},
|
|
6274
6309
|
[env]
|
|
6275
6310
|
);
|
|
6276
|
-
const switchUserLocale =
|
|
6311
|
+
const switchUserLocale = useCallback54(
|
|
6277
6312
|
async ({ id, values, service }) => {
|
|
6278
6313
|
const jsonData = {
|
|
6279
6314
|
model: "res.users",
|
|
@@ -6301,10 +6336,10 @@ function useUserService() {
|
|
|
6301
6336
|
}
|
|
6302
6337
|
|
|
6303
6338
|
// src/services/view-service/index.ts
|
|
6304
|
-
import { useCallback as
|
|
6339
|
+
import { useCallback as useCallback55 } from "react";
|
|
6305
6340
|
function useViewService() {
|
|
6306
6341
|
const { env } = useEnv();
|
|
6307
|
-
const getView =
|
|
6342
|
+
const getView = useCallback55(
|
|
6308
6343
|
async ({
|
|
6309
6344
|
model,
|
|
6310
6345
|
views,
|
|
@@ -6344,7 +6379,7 @@ function useViewService() {
|
|
|
6344
6379
|
},
|
|
6345
6380
|
[env]
|
|
6346
6381
|
);
|
|
6347
|
-
const getMenu =
|
|
6382
|
+
const getMenu = useCallback55(
|
|
6348
6383
|
async (context, specification, domain, service) => {
|
|
6349
6384
|
const jsonData = {
|
|
6350
6385
|
model: "ir.ui.menu" /* MENU */,
|
|
@@ -6375,7 +6410,7 @@ function useViewService() {
|
|
|
6375
6410
|
},
|
|
6376
6411
|
[env]
|
|
6377
6412
|
);
|
|
6378
|
-
const getActionDetail =
|
|
6413
|
+
const getActionDetail = useCallback55(
|
|
6379
6414
|
async (aid, context) => {
|
|
6380
6415
|
const jsonData = {
|
|
6381
6416
|
model: "ir.actions.act_window" /* WINDOW_ACTION */,
|
|
@@ -6405,7 +6440,7 @@ function useViewService() {
|
|
|
6405
6440
|
},
|
|
6406
6441
|
[env]
|
|
6407
6442
|
);
|
|
6408
|
-
const getResequence =
|
|
6443
|
+
const getResequence = useCallback55(
|
|
6409
6444
|
async ({
|
|
6410
6445
|
model,
|
|
6411
6446
|
ids,
|
|
@@ -6435,7 +6470,7 @@ function useViewService() {
|
|
|
6435
6470
|
},
|
|
6436
6471
|
[env]
|
|
6437
6472
|
);
|
|
6438
|
-
const getSelectionItem =
|
|
6473
|
+
const getSelectionItem = useCallback55(
|
|
6439
6474
|
async ({
|
|
6440
6475
|
data,
|
|
6441
6476
|
service,
|
|
@@ -6472,7 +6507,7 @@ function useViewService() {
|
|
|
6472
6507
|
},
|
|
6473
6508
|
[env]
|
|
6474
6509
|
);
|
|
6475
|
-
const loadMessages =
|
|
6510
|
+
const loadMessages = useCallback55(async () => {
|
|
6476
6511
|
return env.requests.post(
|
|
6477
6512
|
"/load_message_failures" /* LOAD_MESSAGE */,
|
|
6478
6513
|
{},
|
|
@@ -6483,14 +6518,14 @@ function useViewService() {
|
|
|
6483
6518
|
}
|
|
6484
6519
|
);
|
|
6485
6520
|
}, [env]);
|
|
6486
|
-
const getVersion =
|
|
6521
|
+
const getVersion = useCallback55(async () => {
|
|
6487
6522
|
return env?.requests?.get("", {
|
|
6488
6523
|
headers: {
|
|
6489
6524
|
"Content-Type": "application/json"
|
|
6490
6525
|
}
|
|
6491
6526
|
});
|
|
6492
6527
|
}, [env]);
|
|
6493
|
-
const grantAccess =
|
|
6528
|
+
const grantAccess = useCallback55(
|
|
6494
6529
|
async ({
|
|
6495
6530
|
redirect_uri,
|
|
6496
6531
|
state,
|
|
@@ -6517,7 +6552,7 @@ function useViewService() {
|
|
|
6517
6552
|
},
|
|
6518
6553
|
[env]
|
|
6519
6554
|
);
|
|
6520
|
-
const removeTotpSetUp =
|
|
6555
|
+
const removeTotpSetUp = useCallback55(
|
|
6521
6556
|
async ({ method, token }) => {
|
|
6522
6557
|
const jsonData = {
|
|
6523
6558
|
method,
|
|
@@ -6538,7 +6573,7 @@ function useViewService() {
|
|
|
6538
6573
|
},
|
|
6539
6574
|
[env]
|
|
6540
6575
|
);
|
|
6541
|
-
const requestSetupTotp =
|
|
6576
|
+
const requestSetupTotp = useCallback55(
|
|
6542
6577
|
async ({ method, token }) => {
|
|
6543
6578
|
const jsonData = {
|
|
6544
6579
|
method,
|
|
@@ -6557,7 +6592,7 @@ function useViewService() {
|
|
|
6557
6592
|
},
|
|
6558
6593
|
[env]
|
|
6559
6594
|
);
|
|
6560
|
-
const settingsWebRead2fa =
|
|
6595
|
+
const settingsWebRead2fa = useCallback55(
|
|
6561
6596
|
async ({
|
|
6562
6597
|
method,
|
|
6563
6598
|
model,
|
|
@@ -6585,7 +6620,7 @@ function useViewService() {
|
|
|
6585
6620
|
},
|
|
6586
6621
|
[env]
|
|
6587
6622
|
);
|
|
6588
|
-
const signInSSO =
|
|
6623
|
+
const signInSSO = useCallback55(
|
|
6589
6624
|
async ({
|
|
6590
6625
|
redirect_uri,
|
|
6591
6626
|
state,
|
|
@@ -6617,7 +6652,7 @@ function useViewService() {
|
|
|
6617
6652
|
},
|
|
6618
6653
|
[env]
|
|
6619
6654
|
);
|
|
6620
|
-
const verify2FA =
|
|
6655
|
+
const verify2FA = useCallback55(
|
|
6621
6656
|
({
|
|
6622
6657
|
method,
|
|
6623
6658
|
with_context,
|
|
@@ -6650,7 +6685,7 @@ function useViewService() {
|
|
|
6650
6685
|
},
|
|
6651
6686
|
[env]
|
|
6652
6687
|
);
|
|
6653
|
-
const get2FAMethods =
|
|
6688
|
+
const get2FAMethods = useCallback55(
|
|
6654
6689
|
({ method, with_context }) => {
|
|
6655
6690
|
const jsonData = {
|
|
6656
6691
|
method,
|
|
@@ -6669,7 +6704,7 @@ function useViewService() {
|
|
|
6669
6704
|
},
|
|
6670
6705
|
[env]
|
|
6671
6706
|
);
|
|
6672
|
-
const verifyTotp =
|
|
6707
|
+
const verifyTotp = useCallback55(
|
|
6673
6708
|
({
|
|
6674
6709
|
method,
|
|
6675
6710
|
action_token,
|
|
@@ -6694,7 +6729,7 @@ function useViewService() {
|
|
|
6694
6729
|
},
|
|
6695
6730
|
[env]
|
|
6696
6731
|
);
|
|
6697
|
-
const getNotifications =
|
|
6732
|
+
const getNotifications = useCallback55(
|
|
6698
6733
|
async ({
|
|
6699
6734
|
service,
|
|
6700
6735
|
xNode,
|
|
@@ -6714,7 +6749,7 @@ function useViewService() {
|
|
|
6714
6749
|
},
|
|
6715
6750
|
[env]
|
|
6716
6751
|
);
|
|
6717
|
-
const getCountry =
|
|
6752
|
+
const getCountry = useCallback55(
|
|
6718
6753
|
async ({
|
|
6719
6754
|
service,
|
|
6720
6755
|
xNode,
|
|
@@ -6741,7 +6776,7 @@ function useViewService() {
|
|
|
6741
6776
|
},
|
|
6742
6777
|
[env]
|
|
6743
6778
|
);
|
|
6744
|
-
const getCity =
|
|
6779
|
+
const getCity = useCallback55(
|
|
6745
6780
|
async ({
|
|
6746
6781
|
service,
|
|
6747
6782
|
xNode,
|
|
@@ -6768,7 +6803,7 @@ function useViewService() {
|
|
|
6768
6803
|
},
|
|
6769
6804
|
[env]
|
|
6770
6805
|
);
|
|
6771
|
-
const getWard =
|
|
6806
|
+
const getWard = useCallback55(
|
|
6772
6807
|
async ({
|
|
6773
6808
|
service,
|
|
6774
6809
|
xNode,
|
|
@@ -6793,7 +6828,7 @@ function useViewService() {
|
|
|
6793
6828
|
},
|
|
6794
6829
|
[env]
|
|
6795
6830
|
);
|
|
6796
|
-
const getPartnerTitle =
|
|
6831
|
+
const getPartnerTitle = useCallback55(
|
|
6797
6832
|
async ({
|
|
6798
6833
|
service,
|
|
6799
6834
|
xNode,
|
|
@@ -6845,10 +6880,10 @@ function useViewService() {
|
|
|
6845
6880
|
}
|
|
6846
6881
|
|
|
6847
6882
|
// src/services/dashboard-service/index.ts
|
|
6848
|
-
import { useCallback as
|
|
6883
|
+
import { useCallback as useCallback56 } from "react";
|
|
6849
6884
|
function useDashboardService() {
|
|
6850
6885
|
const { env } = useEnv();
|
|
6851
|
-
const readGroup =
|
|
6886
|
+
const readGroup = useCallback56(
|
|
6852
6887
|
async ({
|
|
6853
6888
|
service,
|
|
6854
6889
|
xNode,
|
|
@@ -6865,7 +6900,7 @@ function useDashboardService() {
|
|
|
6865
6900
|
},
|
|
6866
6901
|
[env]
|
|
6867
6902
|
);
|
|
6868
|
-
const getDataChart =
|
|
6903
|
+
const getDataChart = useCallback56(
|
|
6869
6904
|
async ({
|
|
6870
6905
|
service,
|
|
6871
6906
|
xNode,
|