@fctc/interface-logic 4.4.7 → 4.4.9
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/constants.d.mts +71 -1
- package/dist/constants.d.ts +71 -1
- package/dist/constants.js +96 -0
- package/dist/constants.mjs +93 -0
- package/dist/hooks.d.mts +21 -1
- package/dist/hooks.d.ts +21 -1
- package/dist/hooks.js +146 -68
- package/dist/hooks.mjs +144 -68
- package/dist/provider.d.mts +3 -1
- package/dist/provider.d.ts +3 -1
- package/dist/provider.js +150 -74
- package/dist/provider.mjs +145 -69
- package/dist/services.d.mts +6 -2
- package/dist/services.d.ts +6 -2
- package/dist/services.js +161 -164
- package/dist/services.mjs +158 -161
- 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 useCallback35 } from "react";
|
|
3
3
|
|
|
4
4
|
// src/constants/api/uri-constant.ts
|
|
5
5
|
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
@@ -102,6 +102,25 @@ var LoadDataModel = /* @__PURE__ */ ((LoadDataModel2) => {
|
|
|
102
102
|
LoadDataModel2["POS_MAKE_PAYMENT"] = "pos.make.payment";
|
|
103
103
|
return LoadDataModel2;
|
|
104
104
|
})(LoadDataModel || {});
|
|
105
|
+
var MODEL_TO_TABLE = {
|
|
106
|
+
["account.tax" /* ACCOUNT_TAX */]: "account_taxes" /* ACCOUNT_TAXES */,
|
|
107
|
+
["res.company" /* RES_COMPANY */]: "companies" /* COMPANIES */,
|
|
108
|
+
["res.partner" /* RES_PARTNER */]: "customers" /* CUSTOMERS */,
|
|
109
|
+
["res.users" /* RES_USERS */]: "employees" /* EMPLOYEES */,
|
|
110
|
+
["loyalty.program" /* LOYALTY_PROGRAM */]: "loyalty_programs" /* LOYALTY_PROGRAMS */,
|
|
111
|
+
["loyalty.rule" /* LOYALTY_RULE */]: "loyalty_rules" /* LOYALTY_RULES */,
|
|
112
|
+
["loyalty.reward" /* LOYALTY_REWARD */]: "loyalty_rewards" /* LOYALTY_REWARDS */,
|
|
113
|
+
["pos.config" /* POS_CONFIG */]: "pos_configs" /* POS_CONFIGS */,
|
|
114
|
+
["pos.session" /* POS_SESSION */]: "pos_sessions" /* POS_SESSIONS */,
|
|
115
|
+
["pos.order.line" /* POS_ORDER_LINE */]: "order_lines" /* ORDER_LINES */,
|
|
116
|
+
["pos.order" /* POS_ORDER */]: "orders" /* ORDERS */,
|
|
117
|
+
["pos.payment.method" /* POS_PAYMENT_METHOD */]: "payment_methods" /* PAYMENT_METHODS */,
|
|
118
|
+
["pos.payment" /* POS_PAYMENT */]: "payments" /* PAYMENTS */,
|
|
119
|
+
["pos.category" /* POS_CATEGORY */]: "product_categories" /* PRODUCT_CATEGORIES */,
|
|
120
|
+
["product.product" /* PRODUCT_PRODUCT */]: "products" /* PRODUCTS */,
|
|
121
|
+
["restaurant.floor" /* RESTAURANT_FLOOR */]: "restaurant_floors" /* RESTAURANT_FLOORS */,
|
|
122
|
+
["restaurant.table" /* RESTAURANT_TABLE */]: "restaurant_tables" /* RESTAURANT_TABLES */
|
|
123
|
+
};
|
|
105
124
|
|
|
106
125
|
// src/utils/domain/py_tokenizer.ts
|
|
107
126
|
var TokenizerError = class extends Error {
|
|
@@ -3204,8 +3223,13 @@ var addEntityService = (env) => {
|
|
|
3204
3223
|
values,
|
|
3205
3224
|
xNode,
|
|
3206
3225
|
service,
|
|
3207
|
-
isCreateEndpoint = false
|
|
3226
|
+
isCreateEndpoint = false,
|
|
3227
|
+
isSupa = false,
|
|
3228
|
+
supaCallback
|
|
3208
3229
|
}) => {
|
|
3230
|
+
if (isSupa && supaCallback) {
|
|
3231
|
+
return supaCallback(values);
|
|
3232
|
+
}
|
|
3209
3233
|
const jsonData = {
|
|
3210
3234
|
model,
|
|
3211
3235
|
values
|
|
@@ -3349,8 +3373,13 @@ var createEntityService = (env) => {
|
|
|
3349
3373
|
model,
|
|
3350
3374
|
args,
|
|
3351
3375
|
xNode,
|
|
3352
|
-
service
|
|
3376
|
+
service,
|
|
3377
|
+
isSupa = false,
|
|
3378
|
+
supaCallback
|
|
3353
3379
|
}) => {
|
|
3380
|
+
if (isSupa && supaCallback) {
|
|
3381
|
+
return supaCallback(args);
|
|
3382
|
+
}
|
|
3354
3383
|
const jsonData = {
|
|
3355
3384
|
model,
|
|
3356
3385
|
method: "create" /* CREATE */,
|
|
@@ -3927,25 +3956,12 @@ var useSupabaseOptional = () => {
|
|
|
3927
3956
|
};
|
|
3928
3957
|
|
|
3929
3958
|
// src/services/pos-service/load-data-pos-session.ts
|
|
3930
|
-
var
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
["loyalty.rule" /* LOYALTY_RULE */]: "loyalty_rules",
|
|
3937
|
-
["loyalty.reward" /* LOYALTY_REWARD */]: "loyalty_rewards",
|
|
3938
|
-
["pos.config" /* POS_CONFIG */]: "pos_configs",
|
|
3939
|
-
["pos.session" /* POS_SESSION */]: "pos_sessions",
|
|
3940
|
-
["pos.order.line" /* POS_ORDER_LINE */]: "order_lines",
|
|
3941
|
-
["pos.order" /* POS_ORDER */]: "orders",
|
|
3942
|
-
["pos.payment.method" /* POS_PAYMENT_METHOD */]: "payment_methods",
|
|
3943
|
-
["pos.payment" /* POS_PAYMENT */]: "payments",
|
|
3944
|
-
["pos.category" /* POS_CATEGORY */]: "product_categories",
|
|
3945
|
-
["product.product" /* PRODUCT_PRODUCT */]: "products",
|
|
3946
|
-
["restaurant.floor" /* RESTAURANT_FLOOR */]: "restaurant_floors",
|
|
3947
|
-
["restaurant.table" /* RESTAURANT_TABLE */]: "restaurant_tables"
|
|
3948
|
-
};
|
|
3959
|
+
var createModelResult = (modelName, data = []) => ({
|
|
3960
|
+
modelName,
|
|
3961
|
+
data,
|
|
3962
|
+
fields: {},
|
|
3963
|
+
relations: {}
|
|
3964
|
+
});
|
|
3949
3965
|
var loadDataPosSessionService = (env) => {
|
|
3950
3966
|
const supabase = useSupabaseOptional();
|
|
3951
3967
|
const loadDataPosSession = useCallback23(
|
|
@@ -3987,56 +4003,25 @@ var loadDataPosSessionService = (env) => {
|
|
|
3987
4003
|
[env]
|
|
3988
4004
|
);
|
|
3989
4005
|
const loadDataPosSessionSupabase = useCallback23(async () => {
|
|
4006
|
+
if (!supabase) return {};
|
|
3990
4007
|
try {
|
|
3991
4008
|
const allModels = Object.values(LoadDataModel);
|
|
3992
|
-
const
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
return
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
}
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
return {
|
|
4004
|
-
modelName,
|
|
4005
|
-
data: [],
|
|
4006
|
-
fields: {},
|
|
4007
|
-
relations: {}
|
|
4008
|
-
};
|
|
4009
|
-
}
|
|
4010
|
-
const { data, error } = await supabase.from(tableName).select("*");
|
|
4011
|
-
if (error) {
|
|
4012
|
-
console.error(`Error loading ${modelName}:`, error);
|
|
4013
|
-
return {
|
|
4014
|
-
modelName,
|
|
4015
|
-
data: [],
|
|
4016
|
-
fields: {},
|
|
4017
|
-
relations: {}
|
|
4018
|
-
};
|
|
4019
|
-
}
|
|
4020
|
-
return {
|
|
4021
|
-
modelName,
|
|
4022
|
-
data: data || [],
|
|
4023
|
-
fields: {},
|
|
4024
|
-
relations: {}
|
|
4025
|
-
};
|
|
4026
|
-
});
|
|
4027
|
-
const results = await Promise.all(promises);
|
|
4028
|
-
const response = results.reduce(
|
|
4029
|
-
(acc, { modelName, data, fields, relations }) => {
|
|
4030
|
-
acc[modelName] = {
|
|
4031
|
-
data,
|
|
4032
|
-
fields,
|
|
4033
|
-
relations
|
|
4034
|
-
};
|
|
4035
|
-
return acc;
|
|
4036
|
-
},
|
|
4037
|
-
{}
|
|
4009
|
+
const results = await Promise.all(
|
|
4010
|
+
allModels.map(async (modelName) => {
|
|
4011
|
+
const tableName = MODEL_TO_TABLE[modelName];
|
|
4012
|
+
if (!tableName) return createModelResult(modelName);
|
|
4013
|
+
const { data, error } = await supabase.from(tableName).select("*");
|
|
4014
|
+
if (error) {
|
|
4015
|
+
console.error(`Error loading ${modelName}:`, error);
|
|
4016
|
+
return createModelResult(modelName);
|
|
4017
|
+
}
|
|
4018
|
+
return createModelResult(modelName, data || []);
|
|
4019
|
+
})
|
|
4038
4020
|
);
|
|
4039
|
-
return
|
|
4021
|
+
return results.reduce((acc, { modelName, ...rest }) => {
|
|
4022
|
+
acc[modelName] = rest;
|
|
4023
|
+
return acc;
|
|
4024
|
+
}, {});
|
|
4040
4025
|
} catch (error) {
|
|
4041
4026
|
console.error("Error loading data from Supabase:", error);
|
|
4042
4027
|
return {};
|
|
@@ -4505,6 +4490,18 @@ import { useMutation as useMutation86 } from "@tanstack/react-query";
|
|
|
4505
4490
|
// src/hooks/pos/use-complete-current-stage.ts
|
|
4506
4491
|
import { useMutation as useMutation87 } from "@tanstack/react-query";
|
|
4507
4492
|
|
|
4493
|
+
// src/hooks/pos/supabase/use-add-floor.ts
|
|
4494
|
+
import { useMutation as useMutation88 } from "@tanstack/react-query";
|
|
4495
|
+
|
|
4496
|
+
// src/services/pos-service/supabase/add-floor.ts
|
|
4497
|
+
import { useCallback as useCallback33 } from "react";
|
|
4498
|
+
|
|
4499
|
+
// src/services/pos-service/supabase/add-table.ts
|
|
4500
|
+
import { useCallback as useCallback34 } from "react";
|
|
4501
|
+
|
|
4502
|
+
// src/hooks/pos/supabase/use-add-table.ts
|
|
4503
|
+
import { useMutation as useMutation89 } from "@tanstack/react-query";
|
|
4504
|
+
|
|
4508
4505
|
// src/provider/service-provider.tsx
|
|
4509
4506
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
4510
4507
|
var ServiceContext = createContext3(null);
|
|
@@ -4516,7 +4513,7 @@ import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
|
|
|
4516
4513
|
// src/services/action-service/index.ts
|
|
4517
4514
|
function useActionService() {
|
|
4518
4515
|
const { env } = useEnv();
|
|
4519
|
-
const loadAction =
|
|
4516
|
+
const loadAction = useCallback35(
|
|
4520
4517
|
async ({
|
|
4521
4518
|
idAction,
|
|
4522
4519
|
context,
|
|
@@ -4540,7 +4537,7 @@ function useActionService() {
|
|
|
4540
4537
|
},
|
|
4541
4538
|
[env]
|
|
4542
4539
|
);
|
|
4543
|
-
const callButton =
|
|
4540
|
+
const callButton = useCallback35(
|
|
4544
4541
|
async ({
|
|
4545
4542
|
model,
|
|
4546
4543
|
ids = [],
|
|
@@ -4574,7 +4571,7 @@ function useActionService() {
|
|
|
4574
4571
|
},
|
|
4575
4572
|
[env]
|
|
4576
4573
|
);
|
|
4577
|
-
const removeRows =
|
|
4574
|
+
const removeRows = useCallback35(
|
|
4578
4575
|
async ({
|
|
4579
4576
|
model,
|
|
4580
4577
|
ids,
|
|
@@ -4600,7 +4597,7 @@ function useActionService() {
|
|
|
4600
4597
|
},
|
|
4601
4598
|
[env]
|
|
4602
4599
|
);
|
|
4603
|
-
const duplicateRecord =
|
|
4600
|
+
const duplicateRecord = useCallback35(
|
|
4604
4601
|
async ({
|
|
4605
4602
|
model,
|
|
4606
4603
|
id,
|
|
@@ -4626,7 +4623,7 @@ function useActionService() {
|
|
|
4626
4623
|
},
|
|
4627
4624
|
[env]
|
|
4628
4625
|
);
|
|
4629
|
-
const getPrintReportName =
|
|
4626
|
+
const getPrintReportName = useCallback35(
|
|
4630
4627
|
async ({ id }) => {
|
|
4631
4628
|
const jsonData = {
|
|
4632
4629
|
model: "ir.actions.report",
|
|
@@ -4644,7 +4641,7 @@ function useActionService() {
|
|
|
4644
4641
|
},
|
|
4645
4642
|
[env]
|
|
4646
4643
|
);
|
|
4647
|
-
const print =
|
|
4644
|
+
const print = useCallback35(
|
|
4648
4645
|
async ({ id, report, db }) => {
|
|
4649
4646
|
const jsonData = {
|
|
4650
4647
|
report,
|
|
@@ -4662,7 +4659,7 @@ function useActionService() {
|
|
|
4662
4659
|
},
|
|
4663
4660
|
[env]
|
|
4664
4661
|
);
|
|
4665
|
-
const runAction =
|
|
4662
|
+
const runAction = useCallback35(
|
|
4666
4663
|
async ({
|
|
4667
4664
|
idAction,
|
|
4668
4665
|
context,
|
|
@@ -4689,7 +4686,7 @@ function useActionService() {
|
|
|
4689
4686
|
},
|
|
4690
4687
|
[env]
|
|
4691
4688
|
);
|
|
4692
|
-
const generateSerialNumber =
|
|
4689
|
+
const generateSerialNumber = useCallback35(
|
|
4693
4690
|
async ({
|
|
4694
4691
|
kwargs,
|
|
4695
4692
|
context,
|
|
@@ -4727,11 +4724,11 @@ function useActionService() {
|
|
|
4727
4724
|
}
|
|
4728
4725
|
|
|
4729
4726
|
// src/services/auth-service/index.ts
|
|
4730
|
-
import { useCallback as
|
|
4727
|
+
import { useCallback as useCallback36 } from "react";
|
|
4731
4728
|
function useAuthService() {
|
|
4732
4729
|
const { env } = useEnv();
|
|
4733
4730
|
const supabase = useSupabaseOptional();
|
|
4734
|
-
const login =
|
|
4731
|
+
const login = useCallback36(
|
|
4735
4732
|
async (body) => {
|
|
4736
4733
|
const payload = Object.fromEntries(
|
|
4737
4734
|
Object.entries({
|
|
@@ -4756,7 +4753,7 @@ function useAuthService() {
|
|
|
4756
4753
|
},
|
|
4757
4754
|
[env]
|
|
4758
4755
|
);
|
|
4759
|
-
const loginSupabase =
|
|
4756
|
+
const loginSupabase = useCallback36(
|
|
4760
4757
|
async (body) => {
|
|
4761
4758
|
if (!supabase) {
|
|
4762
4759
|
return {
|
|
@@ -4772,7 +4769,7 @@ function useAuthService() {
|
|
|
4772
4769
|
},
|
|
4773
4770
|
[supabase]
|
|
4774
4771
|
);
|
|
4775
|
-
const forgotPassword =
|
|
4772
|
+
const forgotPassword = useCallback36(
|
|
4776
4773
|
async (email) => {
|
|
4777
4774
|
const bodyData = {
|
|
4778
4775
|
login: email,
|
|
@@ -4786,7 +4783,7 @@ function useAuthService() {
|
|
|
4786
4783
|
},
|
|
4787
4784
|
[env]
|
|
4788
4785
|
);
|
|
4789
|
-
const forgotPasswordSSO =
|
|
4786
|
+
const forgotPasswordSSO = useCallback36(
|
|
4790
4787
|
async ({
|
|
4791
4788
|
email,
|
|
4792
4789
|
with_context,
|
|
@@ -4809,7 +4806,7 @@ function useAuthService() {
|
|
|
4809
4806
|
},
|
|
4810
4807
|
[env]
|
|
4811
4808
|
);
|
|
4812
|
-
const resetPassword =
|
|
4809
|
+
const resetPassword = useCallback36(
|
|
4813
4810
|
async (data, token) => {
|
|
4814
4811
|
const bodyData = {
|
|
4815
4812
|
token,
|
|
@@ -4824,7 +4821,7 @@ function useAuthService() {
|
|
|
4824
4821
|
},
|
|
4825
4822
|
[env]
|
|
4826
4823
|
);
|
|
4827
|
-
const resetPasswordSSO =
|
|
4824
|
+
const resetPasswordSSO = useCallback36(
|
|
4828
4825
|
async ({
|
|
4829
4826
|
method,
|
|
4830
4827
|
password,
|
|
@@ -4847,7 +4844,7 @@ function useAuthService() {
|
|
|
4847
4844
|
},
|
|
4848
4845
|
[env]
|
|
4849
4846
|
);
|
|
4850
|
-
const updatePassword =
|
|
4847
|
+
const updatePassword = useCallback36(
|
|
4851
4848
|
async (data, token) => {
|
|
4852
4849
|
const bodyData = {
|
|
4853
4850
|
token,
|
|
@@ -4862,7 +4859,7 @@ function useAuthService() {
|
|
|
4862
4859
|
},
|
|
4863
4860
|
[env]
|
|
4864
4861
|
);
|
|
4865
|
-
const isValidToken =
|
|
4862
|
+
const isValidToken = useCallback36(
|
|
4866
4863
|
async (token) => {
|
|
4867
4864
|
const bodyData = {
|
|
4868
4865
|
token
|
|
@@ -4875,7 +4872,7 @@ function useAuthService() {
|
|
|
4875
4872
|
},
|
|
4876
4873
|
[env]
|
|
4877
4874
|
);
|
|
4878
|
-
const isValidActionToken =
|
|
4875
|
+
const isValidActionToken = useCallback36(
|
|
4879
4876
|
async (actionToken) => {
|
|
4880
4877
|
const bodyData = {};
|
|
4881
4878
|
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
@@ -4888,7 +4885,7 @@ function useAuthService() {
|
|
|
4888
4885
|
},
|
|
4889
4886
|
[env]
|
|
4890
4887
|
);
|
|
4891
|
-
const loginSocial =
|
|
4888
|
+
const loginSocial = useCallback36(
|
|
4892
4889
|
async ({
|
|
4893
4890
|
db,
|
|
4894
4891
|
state,
|
|
@@ -4906,13 +4903,13 @@ function useAuthService() {
|
|
|
4906
4903
|
},
|
|
4907
4904
|
[env]
|
|
4908
4905
|
);
|
|
4909
|
-
const getProviders =
|
|
4906
|
+
const getProviders = useCallback36(
|
|
4910
4907
|
async (db) => {
|
|
4911
4908
|
return env?.requests?.get("/oauth/providers", { params: { db } });
|
|
4912
4909
|
},
|
|
4913
4910
|
[env]
|
|
4914
4911
|
);
|
|
4915
|
-
const getAccessByCode =
|
|
4912
|
+
const getAccessByCode = useCallback36(
|
|
4916
4913
|
async (code) => {
|
|
4917
4914
|
const data = new URLSearchParams();
|
|
4918
4915
|
data.append("code", code);
|
|
@@ -4932,7 +4929,7 @@ function useAuthService() {
|
|
|
4932
4929
|
},
|
|
4933
4930
|
[env]
|
|
4934
4931
|
);
|
|
4935
|
-
const logout =
|
|
4932
|
+
const logout = useCallback36(
|
|
4936
4933
|
async (service) => {
|
|
4937
4934
|
return env?.requests?.post(
|
|
4938
4935
|
"/logout" /* LOGOUT */,
|
|
@@ -4949,7 +4946,7 @@ function useAuthService() {
|
|
|
4949
4946
|
},
|
|
4950
4947
|
[env]
|
|
4951
4948
|
);
|
|
4952
|
-
const getTenantMapping =
|
|
4949
|
+
const getTenantMapping = useCallback36(
|
|
4953
4950
|
async ({ shortName, service }) => {
|
|
4954
4951
|
const bodyData = {
|
|
4955
4952
|
short_name: shortName
|
|
@@ -4967,7 +4964,7 @@ function useAuthService() {
|
|
|
4967
4964
|
},
|
|
4968
4965
|
[env]
|
|
4969
4966
|
);
|
|
4970
|
-
const getToken =
|
|
4967
|
+
const getToken = useCallback36(
|
|
4971
4968
|
async ({
|
|
4972
4969
|
phone,
|
|
4973
4970
|
name,
|
|
@@ -5012,10 +5009,10 @@ function useAuthService() {
|
|
|
5012
5009
|
}
|
|
5013
5010
|
|
|
5014
5011
|
// src/services/company-service/index.ts
|
|
5015
|
-
import { useCallback as
|
|
5012
|
+
import { useCallback as useCallback37 } from "react";
|
|
5016
5013
|
function useCompanyService() {
|
|
5017
5014
|
const { env } = useEnv();
|
|
5018
|
-
const getCurrentCompany =
|
|
5015
|
+
const getCurrentCompany = useCallback37(
|
|
5019
5016
|
async (service, extraHeaders) => {
|
|
5020
5017
|
return await env.requests.get(
|
|
5021
5018
|
"/company" /* COMPANY_PATH */,
|
|
@@ -5032,7 +5029,7 @@ function useCompanyService() {
|
|
|
5032
5029
|
},
|
|
5033
5030
|
[env]
|
|
5034
5031
|
);
|
|
5035
|
-
const getInfoCompany =
|
|
5032
|
+
const getInfoCompany = useCallback37(
|
|
5036
5033
|
async (id, service) => {
|
|
5037
5034
|
const jsonData = {
|
|
5038
5035
|
ids: [id],
|
|
@@ -5068,10 +5065,10 @@ function useCompanyService() {
|
|
|
5068
5065
|
}
|
|
5069
5066
|
|
|
5070
5067
|
// src/services/excel-service/index.ts
|
|
5071
|
-
import { useCallback as
|
|
5068
|
+
import { useCallback as useCallback38 } from "react";
|
|
5072
5069
|
function useExcelService() {
|
|
5073
5070
|
const { env } = useEnv();
|
|
5074
|
-
const uploadFileExcel =
|
|
5071
|
+
const uploadFileExcel = useCallback38(
|
|
5075
5072
|
async ({
|
|
5076
5073
|
formData,
|
|
5077
5074
|
service,
|
|
@@ -5088,7 +5085,7 @@ function useExcelService() {
|
|
|
5088
5085
|
},
|
|
5089
5086
|
[env]
|
|
5090
5087
|
);
|
|
5091
|
-
const uploadIdFile =
|
|
5088
|
+
const uploadIdFile = useCallback38(
|
|
5092
5089
|
async ({
|
|
5093
5090
|
formData,
|
|
5094
5091
|
service,
|
|
@@ -5105,7 +5102,7 @@ function useExcelService() {
|
|
|
5105
5102
|
},
|
|
5106
5103
|
[env]
|
|
5107
5104
|
);
|
|
5108
|
-
const parsePreview =
|
|
5105
|
+
const parsePreview = useCallback38(
|
|
5109
5106
|
async ({
|
|
5110
5107
|
id,
|
|
5111
5108
|
selectedSheet,
|
|
@@ -5154,7 +5151,7 @@ function useExcelService() {
|
|
|
5154
5151
|
},
|
|
5155
5152
|
[env]
|
|
5156
5153
|
);
|
|
5157
|
-
const executeImport =
|
|
5154
|
+
const executeImport = useCallback38(
|
|
5158
5155
|
async ({
|
|
5159
5156
|
columns,
|
|
5160
5157
|
fields,
|
|
@@ -5188,7 +5185,7 @@ function useExcelService() {
|
|
|
5188
5185
|
},
|
|
5189
5186
|
[env]
|
|
5190
5187
|
);
|
|
5191
|
-
const getFileExcel =
|
|
5188
|
+
const getFileExcel = useCallback38(
|
|
5192
5189
|
async ({
|
|
5193
5190
|
model,
|
|
5194
5191
|
service,
|
|
@@ -5212,7 +5209,7 @@ function useExcelService() {
|
|
|
5212
5209
|
},
|
|
5213
5210
|
[env]
|
|
5214
5211
|
);
|
|
5215
|
-
const getFieldExport =
|
|
5212
|
+
const getFieldExport = useCallback38(
|
|
5216
5213
|
async ({
|
|
5217
5214
|
ids,
|
|
5218
5215
|
model,
|
|
@@ -5252,7 +5249,7 @@ function useExcelService() {
|
|
|
5252
5249
|
},
|
|
5253
5250
|
[env]
|
|
5254
5251
|
);
|
|
5255
|
-
const exportExcel =
|
|
5252
|
+
const exportExcel = useCallback38(
|
|
5256
5253
|
async ({
|
|
5257
5254
|
model,
|
|
5258
5255
|
domain,
|
|
@@ -5300,10 +5297,10 @@ function useExcelService() {
|
|
|
5300
5297
|
}
|
|
5301
5298
|
|
|
5302
5299
|
// src/services/form-service/index.ts
|
|
5303
|
-
import { useCallback as
|
|
5300
|
+
import { useCallback as useCallback39 } from "react";
|
|
5304
5301
|
function useFormService() {
|
|
5305
5302
|
const { env } = useEnv();
|
|
5306
|
-
const getComment =
|
|
5303
|
+
const getComment = useCallback39(
|
|
5307
5304
|
async ({ data }) => {
|
|
5308
5305
|
const jsonData = {
|
|
5309
5306
|
thread_id: data.thread_id,
|
|
@@ -5321,7 +5318,7 @@ function useFormService() {
|
|
|
5321
5318
|
},
|
|
5322
5319
|
[env]
|
|
5323
5320
|
);
|
|
5324
|
-
const getThreadData =
|
|
5321
|
+
const getThreadData = useCallback39(
|
|
5325
5322
|
async ({
|
|
5326
5323
|
data,
|
|
5327
5324
|
xNode,
|
|
@@ -5348,7 +5345,7 @@ function useFormService() {
|
|
|
5348
5345
|
},
|
|
5349
5346
|
[env]
|
|
5350
5347
|
);
|
|
5351
|
-
const getThreadMessages =
|
|
5348
|
+
const getThreadMessages = useCallback39(
|
|
5352
5349
|
async ({
|
|
5353
5350
|
data,
|
|
5354
5351
|
xNode,
|
|
@@ -5374,7 +5371,7 @@ function useFormService() {
|
|
|
5374
5371
|
},
|
|
5375
5372
|
[env]
|
|
5376
5373
|
);
|
|
5377
|
-
const sentComment =
|
|
5374
|
+
const sentComment = useCallback39(
|
|
5378
5375
|
async ({ data }) => {
|
|
5379
5376
|
const jsonData = {
|
|
5380
5377
|
context: {
|
|
@@ -5402,7 +5399,7 @@ function useFormService() {
|
|
|
5402
5399
|
},
|
|
5403
5400
|
[env]
|
|
5404
5401
|
);
|
|
5405
|
-
const deleteComment =
|
|
5402
|
+
const deleteComment = useCallback39(
|
|
5406
5403
|
async ({ data }) => {
|
|
5407
5404
|
const jsonData = {
|
|
5408
5405
|
attachment_ids: [],
|
|
@@ -5418,7 +5415,7 @@ function useFormService() {
|
|
|
5418
5415
|
},
|
|
5419
5416
|
[env]
|
|
5420
5417
|
);
|
|
5421
|
-
const getImage =
|
|
5418
|
+
const getImage = useCallback39(
|
|
5422
5419
|
async ({ data }) => {
|
|
5423
5420
|
return env.requests.get(
|
|
5424
5421
|
`${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
|
|
@@ -5431,7 +5428,7 @@ function useFormService() {
|
|
|
5431
5428
|
},
|
|
5432
5429
|
[env]
|
|
5433
5430
|
);
|
|
5434
|
-
const uploadImage =
|
|
5431
|
+
const uploadImage = useCallback39(
|
|
5435
5432
|
async ({
|
|
5436
5433
|
formData,
|
|
5437
5434
|
service,
|
|
@@ -5450,7 +5447,7 @@ function useFormService() {
|
|
|
5450
5447
|
},
|
|
5451
5448
|
[env]
|
|
5452
5449
|
);
|
|
5453
|
-
const uploadFile =
|
|
5450
|
+
const uploadFile = useCallback39(
|
|
5454
5451
|
async ({
|
|
5455
5452
|
formData,
|
|
5456
5453
|
service,
|
|
@@ -5470,7 +5467,7 @@ function useFormService() {
|
|
|
5470
5467
|
},
|
|
5471
5468
|
[env]
|
|
5472
5469
|
);
|
|
5473
|
-
const getFormView =
|
|
5470
|
+
const getFormView = useCallback39(
|
|
5474
5471
|
async ({ data }) => {
|
|
5475
5472
|
const jsonData = {
|
|
5476
5473
|
model: data.model,
|
|
@@ -5486,7 +5483,7 @@ function useFormService() {
|
|
|
5486
5483
|
},
|
|
5487
5484
|
[env]
|
|
5488
5485
|
);
|
|
5489
|
-
const changeStatus =
|
|
5486
|
+
const changeStatus = useCallback39(
|
|
5490
5487
|
async ({ data }) => {
|
|
5491
5488
|
const vals = {
|
|
5492
5489
|
[data.name]: data.stage_id
|
|
@@ -5515,7 +5512,7 @@ function useFormService() {
|
|
|
5515
5512
|
},
|
|
5516
5513
|
[env]
|
|
5517
5514
|
);
|
|
5518
|
-
const getExternalTab =
|
|
5515
|
+
const getExternalTab = useCallback39(
|
|
5519
5516
|
async ({ method, context, service, xNode }) => {
|
|
5520
5517
|
return env?.requests?.post(
|
|
5521
5518
|
"/call" /* CALL_PATH */,
|
|
@@ -5550,10 +5547,10 @@ function useFormService() {
|
|
|
5550
5547
|
}
|
|
5551
5548
|
|
|
5552
5549
|
// src/services/kanban-service/index.ts
|
|
5553
|
-
import { useCallback as
|
|
5550
|
+
import { useCallback as useCallback40 } from "react";
|
|
5554
5551
|
function useKanbanService() {
|
|
5555
5552
|
const { env } = useEnv();
|
|
5556
|
-
const getGroups =
|
|
5553
|
+
const getGroups = useCallback40(
|
|
5557
5554
|
async ({ model, width_context }) => {
|
|
5558
5555
|
const jsonData = {
|
|
5559
5556
|
model,
|
|
@@ -5573,7 +5570,7 @@ function useKanbanService() {
|
|
|
5573
5570
|
},
|
|
5574
5571
|
[env]
|
|
5575
5572
|
);
|
|
5576
|
-
const getProgressBar =
|
|
5573
|
+
const getProgressBar = useCallback40(
|
|
5577
5574
|
async ({ field, color, model, width_context }) => {
|
|
5578
5575
|
const jsonData = {
|
|
5579
5576
|
model,
|
|
@@ -5603,10 +5600,10 @@ function useKanbanService() {
|
|
|
5603
5600
|
}
|
|
5604
5601
|
|
|
5605
5602
|
// src/services/model-service/index.ts
|
|
5606
|
-
import { useCallback as
|
|
5603
|
+
import { useCallback as useCallback41 } from "react";
|
|
5607
5604
|
function useModelService() {
|
|
5608
5605
|
const { env } = useEnv();
|
|
5609
|
-
const getListMyBankAccount =
|
|
5606
|
+
const getListMyBankAccount = useCallback41(
|
|
5610
5607
|
async ({
|
|
5611
5608
|
domain,
|
|
5612
5609
|
spectification,
|
|
@@ -5630,7 +5627,7 @@ function useModelService() {
|
|
|
5630
5627
|
},
|
|
5631
5628
|
[env]
|
|
5632
5629
|
);
|
|
5633
|
-
const getCurrency =
|
|
5630
|
+
const getCurrency = useCallback41(async () => {
|
|
5634
5631
|
const jsonData = {
|
|
5635
5632
|
model: "res.currency",
|
|
5636
5633
|
method: "web_search_read",
|
|
@@ -5650,7 +5647,7 @@ function useModelService() {
|
|
|
5650
5647
|
}
|
|
5651
5648
|
});
|
|
5652
5649
|
}, [env]);
|
|
5653
|
-
const getConversionRate =
|
|
5650
|
+
const getConversionRate = useCallback41(async () => {
|
|
5654
5651
|
const jsonData = {
|
|
5655
5652
|
model: "res.currency",
|
|
5656
5653
|
method: "web_search_read",
|
|
@@ -5676,7 +5673,7 @@ function useModelService() {
|
|
|
5676
5673
|
}
|
|
5677
5674
|
});
|
|
5678
5675
|
}, [env]);
|
|
5679
|
-
const getAll =
|
|
5676
|
+
const getAll = useCallback41(
|
|
5680
5677
|
async ({
|
|
5681
5678
|
data,
|
|
5682
5679
|
service,
|
|
@@ -5718,7 +5715,7 @@ function useModelService() {
|
|
|
5718
5715
|
},
|
|
5719
5716
|
[env]
|
|
5720
5717
|
);
|
|
5721
|
-
const getListCalendar =
|
|
5718
|
+
const getListCalendar = useCallback41(
|
|
5722
5719
|
async ({ data }) => {
|
|
5723
5720
|
const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
5724
5721
|
fields: data.fields,
|
|
@@ -5749,7 +5746,7 @@ function useModelService() {
|
|
|
5749
5746
|
},
|
|
5750
5747
|
[env]
|
|
5751
5748
|
);
|
|
5752
|
-
const getList =
|
|
5749
|
+
const getList = useCallback41(
|
|
5753
5750
|
async ({
|
|
5754
5751
|
model,
|
|
5755
5752
|
ids = [],
|
|
@@ -5781,7 +5778,7 @@ function useModelService() {
|
|
|
5781
5778
|
},
|
|
5782
5779
|
[env]
|
|
5783
5780
|
);
|
|
5784
|
-
const getDetail =
|
|
5781
|
+
const getDetail = useCallback41(
|
|
5785
5782
|
async ({
|
|
5786
5783
|
ids = [],
|
|
5787
5784
|
model,
|
|
@@ -5813,7 +5810,7 @@ function useModelService() {
|
|
|
5813
5810
|
},
|
|
5814
5811
|
[env]
|
|
5815
5812
|
);
|
|
5816
|
-
const save =
|
|
5813
|
+
const save = useCallback41(
|
|
5817
5814
|
async ({
|
|
5818
5815
|
model,
|
|
5819
5816
|
ids = [],
|
|
@@ -5848,7 +5845,7 @@ function useModelService() {
|
|
|
5848
5845
|
},
|
|
5849
5846
|
[env]
|
|
5850
5847
|
);
|
|
5851
|
-
const deleteApi =
|
|
5848
|
+
const deleteApi = useCallback41(
|
|
5852
5849
|
async ({ ids = [], model, service }) => {
|
|
5853
5850
|
const jsonData = {
|
|
5854
5851
|
model,
|
|
@@ -5868,7 +5865,7 @@ function useModelService() {
|
|
|
5868
5865
|
},
|
|
5869
5866
|
[env]
|
|
5870
5867
|
);
|
|
5871
|
-
const onChange =
|
|
5868
|
+
const onChange = useCallback41(
|
|
5872
5869
|
async ({
|
|
5873
5870
|
ids = [],
|
|
5874
5871
|
model,
|
|
@@ -5904,7 +5901,7 @@ function useModelService() {
|
|
|
5904
5901
|
},
|
|
5905
5902
|
[env]
|
|
5906
5903
|
);
|
|
5907
|
-
const getListFieldsOnchange =
|
|
5904
|
+
const getListFieldsOnchange = useCallback41(
|
|
5908
5905
|
async ({
|
|
5909
5906
|
model,
|
|
5910
5907
|
service,
|
|
@@ -5928,7 +5925,7 @@ function useModelService() {
|
|
|
5928
5925
|
},
|
|
5929
5926
|
[env]
|
|
5930
5927
|
);
|
|
5931
|
-
const parseORMOdoo =
|
|
5928
|
+
const parseORMOdoo = useCallback41((data) => {
|
|
5932
5929
|
for (const key in data) {
|
|
5933
5930
|
if (key === "display_name") {
|
|
5934
5931
|
delete data[key];
|
|
@@ -5939,7 +5936,7 @@ function useModelService() {
|
|
|
5939
5936
|
}
|
|
5940
5937
|
return { ...data };
|
|
5941
5938
|
}, []);
|
|
5942
|
-
const toDataJS =
|
|
5939
|
+
const toDataJS = useCallback41(
|
|
5943
5940
|
(data, viewData, model) => {
|
|
5944
5941
|
for (const key in data) {
|
|
5945
5942
|
if (data[key] === false) {
|
|
@@ -5997,10 +5994,10 @@ function useModelService() {
|
|
|
5997
5994
|
}
|
|
5998
5995
|
|
|
5999
5996
|
// src/services/user-service/index.ts
|
|
6000
|
-
import { useCallback as
|
|
5997
|
+
import { useCallback as useCallback42 } from "react";
|
|
6001
5998
|
function useUserService() {
|
|
6002
5999
|
const { env } = useEnv();
|
|
6003
|
-
const getProfile =
|
|
6000
|
+
const getProfile = useCallback42(
|
|
6004
6001
|
async (service, path, extraHeaders) => {
|
|
6005
6002
|
return env?.requests?.get(
|
|
6006
6003
|
path || "/userinfo" /* PROFILE_PATH */,
|
|
@@ -6017,7 +6014,7 @@ function useUserService() {
|
|
|
6017
6014
|
},
|
|
6018
6015
|
[env]
|
|
6019
6016
|
);
|
|
6020
|
-
const getUser =
|
|
6017
|
+
const getUser = useCallback42(
|
|
6021
6018
|
async ({ context, id }) => {
|
|
6022
6019
|
const jsonData = {
|
|
6023
6020
|
model: "res.users",
|
|
@@ -6055,7 +6052,7 @@ function useUserService() {
|
|
|
6055
6052
|
},
|
|
6056
6053
|
[env]
|
|
6057
6054
|
);
|
|
6058
|
-
const switchUserLocale =
|
|
6055
|
+
const switchUserLocale = useCallback42(
|
|
6059
6056
|
async ({ id, values, service }) => {
|
|
6060
6057
|
const jsonData = {
|
|
6061
6058
|
model: "res.users",
|
|
@@ -6083,10 +6080,10 @@ function useUserService() {
|
|
|
6083
6080
|
}
|
|
6084
6081
|
|
|
6085
6082
|
// src/services/view-service/index.ts
|
|
6086
|
-
import { useCallback as
|
|
6083
|
+
import { useCallback as useCallback43 } from "react";
|
|
6087
6084
|
function useViewService() {
|
|
6088
6085
|
const { env } = useEnv();
|
|
6089
|
-
const getView =
|
|
6086
|
+
const getView = useCallback43(
|
|
6090
6087
|
async ({
|
|
6091
6088
|
model,
|
|
6092
6089
|
views,
|
|
@@ -6126,7 +6123,7 @@ function useViewService() {
|
|
|
6126
6123
|
},
|
|
6127
6124
|
[env]
|
|
6128
6125
|
);
|
|
6129
|
-
const getMenu =
|
|
6126
|
+
const getMenu = useCallback43(
|
|
6130
6127
|
async (context, specification, domain, service) => {
|
|
6131
6128
|
const jsonData = {
|
|
6132
6129
|
model: "ir.ui.menu" /* MENU */,
|
|
@@ -6157,7 +6154,7 @@ function useViewService() {
|
|
|
6157
6154
|
},
|
|
6158
6155
|
[env]
|
|
6159
6156
|
);
|
|
6160
|
-
const getActionDetail =
|
|
6157
|
+
const getActionDetail = useCallback43(
|
|
6161
6158
|
async (aid, context) => {
|
|
6162
6159
|
const jsonData = {
|
|
6163
6160
|
model: "ir.actions.act_window" /* WINDOW_ACTION */,
|
|
@@ -6187,7 +6184,7 @@ function useViewService() {
|
|
|
6187
6184
|
},
|
|
6188
6185
|
[env]
|
|
6189
6186
|
);
|
|
6190
|
-
const getResequence =
|
|
6187
|
+
const getResequence = useCallback43(
|
|
6191
6188
|
async ({
|
|
6192
6189
|
model,
|
|
6193
6190
|
ids,
|
|
@@ -6217,7 +6214,7 @@ function useViewService() {
|
|
|
6217
6214
|
},
|
|
6218
6215
|
[env]
|
|
6219
6216
|
);
|
|
6220
|
-
const getSelectionItem =
|
|
6217
|
+
const getSelectionItem = useCallback43(
|
|
6221
6218
|
async ({
|
|
6222
6219
|
data,
|
|
6223
6220
|
service,
|
|
@@ -6254,7 +6251,7 @@ function useViewService() {
|
|
|
6254
6251
|
},
|
|
6255
6252
|
[env]
|
|
6256
6253
|
);
|
|
6257
|
-
const loadMessages =
|
|
6254
|
+
const loadMessages = useCallback43(async () => {
|
|
6258
6255
|
return env.requests.post(
|
|
6259
6256
|
"/load_message_failures" /* LOAD_MESSAGE */,
|
|
6260
6257
|
{},
|
|
@@ -6265,14 +6262,14 @@ function useViewService() {
|
|
|
6265
6262
|
}
|
|
6266
6263
|
);
|
|
6267
6264
|
}, [env]);
|
|
6268
|
-
const getVersion =
|
|
6265
|
+
const getVersion = useCallback43(async () => {
|
|
6269
6266
|
return env?.requests?.get("", {
|
|
6270
6267
|
headers: {
|
|
6271
6268
|
"Content-Type": "application/json"
|
|
6272
6269
|
}
|
|
6273
6270
|
});
|
|
6274
6271
|
}, [env]);
|
|
6275
|
-
const grantAccess =
|
|
6272
|
+
const grantAccess = useCallback43(
|
|
6276
6273
|
async ({
|
|
6277
6274
|
redirect_uri,
|
|
6278
6275
|
state,
|
|
@@ -6299,7 +6296,7 @@ function useViewService() {
|
|
|
6299
6296
|
},
|
|
6300
6297
|
[env]
|
|
6301
6298
|
);
|
|
6302
|
-
const removeTotpSetUp =
|
|
6299
|
+
const removeTotpSetUp = useCallback43(
|
|
6303
6300
|
async ({ method, token }) => {
|
|
6304
6301
|
const jsonData = {
|
|
6305
6302
|
method,
|
|
@@ -6320,7 +6317,7 @@ function useViewService() {
|
|
|
6320
6317
|
},
|
|
6321
6318
|
[env]
|
|
6322
6319
|
);
|
|
6323
|
-
const requestSetupTotp =
|
|
6320
|
+
const requestSetupTotp = useCallback43(
|
|
6324
6321
|
async ({ method, token }) => {
|
|
6325
6322
|
const jsonData = {
|
|
6326
6323
|
method,
|
|
@@ -6339,7 +6336,7 @@ function useViewService() {
|
|
|
6339
6336
|
},
|
|
6340
6337
|
[env]
|
|
6341
6338
|
);
|
|
6342
|
-
const settingsWebRead2fa =
|
|
6339
|
+
const settingsWebRead2fa = useCallback43(
|
|
6343
6340
|
async ({
|
|
6344
6341
|
method,
|
|
6345
6342
|
model,
|
|
@@ -6367,7 +6364,7 @@ function useViewService() {
|
|
|
6367
6364
|
},
|
|
6368
6365
|
[env]
|
|
6369
6366
|
);
|
|
6370
|
-
const signInSSO =
|
|
6367
|
+
const signInSSO = useCallback43(
|
|
6371
6368
|
async ({
|
|
6372
6369
|
redirect_uri,
|
|
6373
6370
|
state,
|
|
@@ -6399,7 +6396,7 @@ function useViewService() {
|
|
|
6399
6396
|
},
|
|
6400
6397
|
[env]
|
|
6401
6398
|
);
|
|
6402
|
-
const verify2FA =
|
|
6399
|
+
const verify2FA = useCallback43(
|
|
6403
6400
|
({
|
|
6404
6401
|
method,
|
|
6405
6402
|
with_context,
|
|
@@ -6432,7 +6429,7 @@ function useViewService() {
|
|
|
6432
6429
|
},
|
|
6433
6430
|
[env]
|
|
6434
6431
|
);
|
|
6435
|
-
const get2FAMethods =
|
|
6432
|
+
const get2FAMethods = useCallback43(
|
|
6436
6433
|
({ method, with_context }) => {
|
|
6437
6434
|
const jsonData = {
|
|
6438
6435
|
method,
|
|
@@ -6451,7 +6448,7 @@ function useViewService() {
|
|
|
6451
6448
|
},
|
|
6452
6449
|
[env]
|
|
6453
6450
|
);
|
|
6454
|
-
const verifyTotp =
|
|
6451
|
+
const verifyTotp = useCallback43(
|
|
6455
6452
|
({
|
|
6456
6453
|
method,
|
|
6457
6454
|
action_token,
|
|
@@ -6476,7 +6473,7 @@ function useViewService() {
|
|
|
6476
6473
|
},
|
|
6477
6474
|
[env]
|
|
6478
6475
|
);
|
|
6479
|
-
const getNotifications =
|
|
6476
|
+
const getNotifications = useCallback43(
|
|
6480
6477
|
async ({
|
|
6481
6478
|
service,
|
|
6482
6479
|
xNode,
|
|
@@ -6496,7 +6493,7 @@ function useViewService() {
|
|
|
6496
6493
|
},
|
|
6497
6494
|
[env]
|
|
6498
6495
|
);
|
|
6499
|
-
const getCountry =
|
|
6496
|
+
const getCountry = useCallback43(
|
|
6500
6497
|
async ({
|
|
6501
6498
|
service,
|
|
6502
6499
|
xNode,
|
|
@@ -6523,7 +6520,7 @@ function useViewService() {
|
|
|
6523
6520
|
},
|
|
6524
6521
|
[env]
|
|
6525
6522
|
);
|
|
6526
|
-
const getCity =
|
|
6523
|
+
const getCity = useCallback43(
|
|
6527
6524
|
async ({
|
|
6528
6525
|
service,
|
|
6529
6526
|
xNode,
|
|
@@ -6550,7 +6547,7 @@ function useViewService() {
|
|
|
6550
6547
|
},
|
|
6551
6548
|
[env]
|
|
6552
6549
|
);
|
|
6553
|
-
const getWard =
|
|
6550
|
+
const getWard = useCallback43(
|
|
6554
6551
|
async ({
|
|
6555
6552
|
service,
|
|
6556
6553
|
xNode,
|
|
@@ -6575,7 +6572,7 @@ function useViewService() {
|
|
|
6575
6572
|
},
|
|
6576
6573
|
[env]
|
|
6577
6574
|
);
|
|
6578
|
-
const getPartnerTitle =
|
|
6575
|
+
const getPartnerTitle = useCallback43(
|
|
6579
6576
|
async ({
|
|
6580
6577
|
service,
|
|
6581
6578
|
xNode,
|
|
@@ -6627,10 +6624,10 @@ function useViewService() {
|
|
|
6627
6624
|
}
|
|
6628
6625
|
|
|
6629
6626
|
// src/services/dashboard-service/index.ts
|
|
6630
|
-
import { useCallback as
|
|
6627
|
+
import { useCallback as useCallback44 } from "react";
|
|
6631
6628
|
function useDashboardService() {
|
|
6632
6629
|
const { env } = useEnv();
|
|
6633
|
-
const readGroup =
|
|
6630
|
+
const readGroup = useCallback44(
|
|
6634
6631
|
async ({
|
|
6635
6632
|
service,
|
|
6636
6633
|
xNode,
|
|
@@ -6647,7 +6644,7 @@ function useDashboardService() {
|
|
|
6647
6644
|
},
|
|
6648
6645
|
[env]
|
|
6649
6646
|
);
|
|
6650
|
-
const getDataChart =
|
|
6647
|
+
const getDataChart = useCallback44(
|
|
6651
6648
|
async ({
|
|
6652
6649
|
service,
|
|
6653
6650
|
xNode,
|