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