@fctc/interface-logic 4.4.6 → 4.4.8
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 +19 -1
- package/dist/hooks.d.ts +19 -1
- package/dist/hooks.js +141 -64
- package/dist/hooks.mjs +139 -64
- package/dist/provider.d.mts +3 -1
- package/dist/provider.d.ts +3 -1
- package/dist/provider.js +145 -70
- package/dist/provider.mjs +140 -65
- package/dist/services.d.mts +3 -1
- package/dist/services.d.ts +3 -1
- package/dist/services.js +156 -160
- package/dist/services.mjs +153 -157
- 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) => {
|
|
@@ -96,11 +96,31 @@ var LoadDataModel = /* @__PURE__ */ ((LoadDataModel2) => {
|
|
|
96
96
|
LoadDataModel2["UOM_UOM"] = "uom.uom";
|
|
97
97
|
LoadDataModel2["LOYALTY_PROGRAM"] = "loyalty.program";
|
|
98
98
|
LoadDataModel2["LOYALTY_RULE"] = "loyalty.rule";
|
|
99
|
+
LoadDataModel2["LOYALTY_REWARD"] = "loyalty.reward";
|
|
99
100
|
LoadDataModel2["RESTAURANT_TABLE"] = "restaurant.table";
|
|
100
101
|
LoadDataModel2["RESTAURANT_FLOOR"] = "restaurant.floor";
|
|
101
102
|
LoadDataModel2["POS_MAKE_PAYMENT"] = "pos.make.payment";
|
|
102
103
|
return LoadDataModel2;
|
|
103
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
|
+
};
|
|
104
124
|
|
|
105
125
|
// src/utils/domain/py_tokenizer.ts
|
|
106
126
|
var TokenizerError = class extends Error {
|
|
@@ -3203,8 +3223,13 @@ var addEntityService = (env) => {
|
|
|
3203
3223
|
values,
|
|
3204
3224
|
xNode,
|
|
3205
3225
|
service,
|
|
3206
|
-
isCreateEndpoint = false
|
|
3226
|
+
isCreateEndpoint = false,
|
|
3227
|
+
isSupa = false,
|
|
3228
|
+
supaCallback
|
|
3207
3229
|
}) => {
|
|
3230
|
+
if (isSupa && supaCallback) {
|
|
3231
|
+
return supaCallback(values);
|
|
3232
|
+
}
|
|
3208
3233
|
const jsonData = {
|
|
3209
3234
|
model,
|
|
3210
3235
|
values
|
|
@@ -3926,22 +3951,12 @@ var useSupabaseOptional = () => {
|
|
|
3926
3951
|
};
|
|
3927
3952
|
|
|
3928
3953
|
// src/services/pos-service/load-data-pos-session.ts
|
|
3929
|
-
var
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
["loyalty.rule" /* LOYALTY_RULE */]: "loyalty_rules",
|
|
3936
|
-
["pos.order.line" /* POS_ORDER_LINE */]: "order_lines",
|
|
3937
|
-
["pos.order" /* POS_ORDER */]: "orders",
|
|
3938
|
-
["pos.payment.method" /* POS_PAYMENT_METHOD */]: "payment_methods",
|
|
3939
|
-
["pos.payment" /* POS_PAYMENT */]: "payments",
|
|
3940
|
-
["product.category" /* PRODUCT_CATEGORY */]: "product_categories",
|
|
3941
|
-
["product.product" /* PRODUCT_PRODUCT */]: "products",
|
|
3942
|
-
["restaurant.floor" /* RESTAURANT_FLOOR */]: "restaurant_floors",
|
|
3943
|
-
["restaurant.table" /* RESTAURANT_TABLE */]: "restaurant_tables"
|
|
3944
|
-
};
|
|
3954
|
+
var createModelResult = (modelName, data = []) => ({
|
|
3955
|
+
modelName,
|
|
3956
|
+
data,
|
|
3957
|
+
fields: {},
|
|
3958
|
+
relations: {}
|
|
3959
|
+
});
|
|
3945
3960
|
var loadDataPosSessionService = (env) => {
|
|
3946
3961
|
const supabase = useSupabaseOptional();
|
|
3947
3962
|
const loadDataPosSession = useCallback23(
|
|
@@ -3983,56 +3998,25 @@ var loadDataPosSessionService = (env) => {
|
|
|
3983
3998
|
[env]
|
|
3984
3999
|
);
|
|
3985
4000
|
const loadDataPosSessionSupabase = useCallback23(async () => {
|
|
4001
|
+
if (!supabase) return {};
|
|
3986
4002
|
try {
|
|
3987
4003
|
const allModels = Object.values(LoadDataModel);
|
|
3988
|
-
const
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
return
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
}
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
return {
|
|
4000
|
-
modelName,
|
|
4001
|
-
data: [],
|
|
4002
|
-
fields: {},
|
|
4003
|
-
relations: {}
|
|
4004
|
-
};
|
|
4005
|
-
}
|
|
4006
|
-
const { data, error } = await supabase.from(tableName).select("*");
|
|
4007
|
-
if (error) {
|
|
4008
|
-
console.error(`Error loading ${modelName}:`, error);
|
|
4009
|
-
return {
|
|
4010
|
-
modelName,
|
|
4011
|
-
data: [],
|
|
4012
|
-
fields: {},
|
|
4013
|
-
relations: {}
|
|
4014
|
-
};
|
|
4015
|
-
}
|
|
4016
|
-
return {
|
|
4017
|
-
modelName,
|
|
4018
|
-
data: data || [],
|
|
4019
|
-
fields: {},
|
|
4020
|
-
relations: {}
|
|
4021
|
-
};
|
|
4022
|
-
});
|
|
4023
|
-
const results = await Promise.all(promises);
|
|
4024
|
-
const response = results.reduce(
|
|
4025
|
-
(acc, { modelName, data, fields, relations }) => {
|
|
4026
|
-
acc[modelName] = {
|
|
4027
|
-
data,
|
|
4028
|
-
fields,
|
|
4029
|
-
relations
|
|
4030
|
-
};
|
|
4031
|
-
return acc;
|
|
4032
|
-
},
|
|
4033
|
-
{}
|
|
4004
|
+
const results = await Promise.all(
|
|
4005
|
+
allModels.map(async (modelName) => {
|
|
4006
|
+
const tableName = MODEL_TO_TABLE[modelName];
|
|
4007
|
+
if (!tableName) return createModelResult(modelName);
|
|
4008
|
+
const { data, error } = await supabase.from(tableName).select("*");
|
|
4009
|
+
if (error) {
|
|
4010
|
+
console.error(`Error loading ${modelName}:`, error);
|
|
4011
|
+
return createModelResult(modelName);
|
|
4012
|
+
}
|
|
4013
|
+
return createModelResult(modelName, data || []);
|
|
4014
|
+
})
|
|
4034
4015
|
);
|
|
4035
|
-
return
|
|
4016
|
+
return results.reduce((acc, { modelName, ...rest }) => {
|
|
4017
|
+
acc[modelName] = rest;
|
|
4018
|
+
return acc;
|
|
4019
|
+
}, {});
|
|
4036
4020
|
} catch (error) {
|
|
4037
4021
|
console.error("Error loading data from Supabase:", error);
|
|
4038
4022
|
return {};
|
|
@@ -4501,6 +4485,18 @@ import { useMutation as useMutation86 } from "@tanstack/react-query";
|
|
|
4501
4485
|
// src/hooks/pos/use-complete-current-stage.ts
|
|
4502
4486
|
import { useMutation as useMutation87 } from "@tanstack/react-query";
|
|
4503
4487
|
|
|
4488
|
+
// src/hooks/pos/supabase/use-add-floor.ts
|
|
4489
|
+
import { useMutation as useMutation88 } from "@tanstack/react-query";
|
|
4490
|
+
|
|
4491
|
+
// src/services/pos-service/supabase/add-floor.ts
|
|
4492
|
+
import { useCallback as useCallback33 } from "react";
|
|
4493
|
+
|
|
4494
|
+
// src/services/pos-service/supabase/add-table.ts
|
|
4495
|
+
import { useCallback as useCallback34 } from "react";
|
|
4496
|
+
|
|
4497
|
+
// src/hooks/pos/supabase/use-add-table.ts
|
|
4498
|
+
import { useMutation as useMutation89 } from "@tanstack/react-query";
|
|
4499
|
+
|
|
4504
4500
|
// src/provider/service-provider.tsx
|
|
4505
4501
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
4506
4502
|
var ServiceContext = createContext3(null);
|
|
@@ -4512,7 +4508,7 @@ import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
|
|
|
4512
4508
|
// src/services/action-service/index.ts
|
|
4513
4509
|
function useActionService() {
|
|
4514
4510
|
const { env } = useEnv();
|
|
4515
|
-
const loadAction =
|
|
4511
|
+
const loadAction = useCallback35(
|
|
4516
4512
|
async ({
|
|
4517
4513
|
idAction,
|
|
4518
4514
|
context,
|
|
@@ -4536,7 +4532,7 @@ function useActionService() {
|
|
|
4536
4532
|
},
|
|
4537
4533
|
[env]
|
|
4538
4534
|
);
|
|
4539
|
-
const callButton =
|
|
4535
|
+
const callButton = useCallback35(
|
|
4540
4536
|
async ({
|
|
4541
4537
|
model,
|
|
4542
4538
|
ids = [],
|
|
@@ -4570,7 +4566,7 @@ function useActionService() {
|
|
|
4570
4566
|
},
|
|
4571
4567
|
[env]
|
|
4572
4568
|
);
|
|
4573
|
-
const removeRows =
|
|
4569
|
+
const removeRows = useCallback35(
|
|
4574
4570
|
async ({
|
|
4575
4571
|
model,
|
|
4576
4572
|
ids,
|
|
@@ -4596,7 +4592,7 @@ function useActionService() {
|
|
|
4596
4592
|
},
|
|
4597
4593
|
[env]
|
|
4598
4594
|
);
|
|
4599
|
-
const duplicateRecord =
|
|
4595
|
+
const duplicateRecord = useCallback35(
|
|
4600
4596
|
async ({
|
|
4601
4597
|
model,
|
|
4602
4598
|
id,
|
|
@@ -4622,7 +4618,7 @@ function useActionService() {
|
|
|
4622
4618
|
},
|
|
4623
4619
|
[env]
|
|
4624
4620
|
);
|
|
4625
|
-
const getPrintReportName =
|
|
4621
|
+
const getPrintReportName = useCallback35(
|
|
4626
4622
|
async ({ id }) => {
|
|
4627
4623
|
const jsonData = {
|
|
4628
4624
|
model: "ir.actions.report",
|
|
@@ -4640,7 +4636,7 @@ function useActionService() {
|
|
|
4640
4636
|
},
|
|
4641
4637
|
[env]
|
|
4642
4638
|
);
|
|
4643
|
-
const print =
|
|
4639
|
+
const print = useCallback35(
|
|
4644
4640
|
async ({ id, report, db }) => {
|
|
4645
4641
|
const jsonData = {
|
|
4646
4642
|
report,
|
|
@@ -4658,7 +4654,7 @@ function useActionService() {
|
|
|
4658
4654
|
},
|
|
4659
4655
|
[env]
|
|
4660
4656
|
);
|
|
4661
|
-
const runAction =
|
|
4657
|
+
const runAction = useCallback35(
|
|
4662
4658
|
async ({
|
|
4663
4659
|
idAction,
|
|
4664
4660
|
context,
|
|
@@ -4685,7 +4681,7 @@ function useActionService() {
|
|
|
4685
4681
|
},
|
|
4686
4682
|
[env]
|
|
4687
4683
|
);
|
|
4688
|
-
const generateSerialNumber =
|
|
4684
|
+
const generateSerialNumber = useCallback35(
|
|
4689
4685
|
async ({
|
|
4690
4686
|
kwargs,
|
|
4691
4687
|
context,
|
|
@@ -4723,11 +4719,11 @@ function useActionService() {
|
|
|
4723
4719
|
}
|
|
4724
4720
|
|
|
4725
4721
|
// src/services/auth-service/index.ts
|
|
4726
|
-
import { useCallback as
|
|
4722
|
+
import { useCallback as useCallback36 } from "react";
|
|
4727
4723
|
function useAuthService() {
|
|
4728
4724
|
const { env } = useEnv();
|
|
4729
4725
|
const supabase = useSupabaseOptional();
|
|
4730
|
-
const login =
|
|
4726
|
+
const login = useCallback36(
|
|
4731
4727
|
async (body) => {
|
|
4732
4728
|
const payload = Object.fromEntries(
|
|
4733
4729
|
Object.entries({
|
|
@@ -4752,7 +4748,7 @@ function useAuthService() {
|
|
|
4752
4748
|
},
|
|
4753
4749
|
[env]
|
|
4754
4750
|
);
|
|
4755
|
-
const loginSupabase =
|
|
4751
|
+
const loginSupabase = useCallback36(
|
|
4756
4752
|
async (body) => {
|
|
4757
4753
|
if (!supabase) {
|
|
4758
4754
|
return {
|
|
@@ -4768,7 +4764,7 @@ function useAuthService() {
|
|
|
4768
4764
|
},
|
|
4769
4765
|
[supabase]
|
|
4770
4766
|
);
|
|
4771
|
-
const forgotPassword =
|
|
4767
|
+
const forgotPassword = useCallback36(
|
|
4772
4768
|
async (email) => {
|
|
4773
4769
|
const bodyData = {
|
|
4774
4770
|
login: email,
|
|
@@ -4782,7 +4778,7 @@ function useAuthService() {
|
|
|
4782
4778
|
},
|
|
4783
4779
|
[env]
|
|
4784
4780
|
);
|
|
4785
|
-
const forgotPasswordSSO =
|
|
4781
|
+
const forgotPasswordSSO = useCallback36(
|
|
4786
4782
|
async ({
|
|
4787
4783
|
email,
|
|
4788
4784
|
with_context,
|
|
@@ -4805,7 +4801,7 @@ function useAuthService() {
|
|
|
4805
4801
|
},
|
|
4806
4802
|
[env]
|
|
4807
4803
|
);
|
|
4808
|
-
const resetPassword =
|
|
4804
|
+
const resetPassword = useCallback36(
|
|
4809
4805
|
async (data, token) => {
|
|
4810
4806
|
const bodyData = {
|
|
4811
4807
|
token,
|
|
@@ -4820,7 +4816,7 @@ function useAuthService() {
|
|
|
4820
4816
|
},
|
|
4821
4817
|
[env]
|
|
4822
4818
|
);
|
|
4823
|
-
const resetPasswordSSO =
|
|
4819
|
+
const resetPasswordSSO = useCallback36(
|
|
4824
4820
|
async ({
|
|
4825
4821
|
method,
|
|
4826
4822
|
password,
|
|
@@ -4843,7 +4839,7 @@ function useAuthService() {
|
|
|
4843
4839
|
},
|
|
4844
4840
|
[env]
|
|
4845
4841
|
);
|
|
4846
|
-
const updatePassword =
|
|
4842
|
+
const updatePassword = useCallback36(
|
|
4847
4843
|
async (data, token) => {
|
|
4848
4844
|
const bodyData = {
|
|
4849
4845
|
token,
|
|
@@ -4858,7 +4854,7 @@ function useAuthService() {
|
|
|
4858
4854
|
},
|
|
4859
4855
|
[env]
|
|
4860
4856
|
);
|
|
4861
|
-
const isValidToken =
|
|
4857
|
+
const isValidToken = useCallback36(
|
|
4862
4858
|
async (token) => {
|
|
4863
4859
|
const bodyData = {
|
|
4864
4860
|
token
|
|
@@ -4871,7 +4867,7 @@ function useAuthService() {
|
|
|
4871
4867
|
},
|
|
4872
4868
|
[env]
|
|
4873
4869
|
);
|
|
4874
|
-
const isValidActionToken =
|
|
4870
|
+
const isValidActionToken = useCallback36(
|
|
4875
4871
|
async (actionToken) => {
|
|
4876
4872
|
const bodyData = {};
|
|
4877
4873
|
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
@@ -4884,7 +4880,7 @@ function useAuthService() {
|
|
|
4884
4880
|
},
|
|
4885
4881
|
[env]
|
|
4886
4882
|
);
|
|
4887
|
-
const loginSocial =
|
|
4883
|
+
const loginSocial = useCallback36(
|
|
4888
4884
|
async ({
|
|
4889
4885
|
db,
|
|
4890
4886
|
state,
|
|
@@ -4902,13 +4898,13 @@ function useAuthService() {
|
|
|
4902
4898
|
},
|
|
4903
4899
|
[env]
|
|
4904
4900
|
);
|
|
4905
|
-
const getProviders =
|
|
4901
|
+
const getProviders = useCallback36(
|
|
4906
4902
|
async (db) => {
|
|
4907
4903
|
return env?.requests?.get("/oauth/providers", { params: { db } });
|
|
4908
4904
|
},
|
|
4909
4905
|
[env]
|
|
4910
4906
|
);
|
|
4911
|
-
const getAccessByCode =
|
|
4907
|
+
const getAccessByCode = useCallback36(
|
|
4912
4908
|
async (code) => {
|
|
4913
4909
|
const data = new URLSearchParams();
|
|
4914
4910
|
data.append("code", code);
|
|
@@ -4928,7 +4924,7 @@ function useAuthService() {
|
|
|
4928
4924
|
},
|
|
4929
4925
|
[env]
|
|
4930
4926
|
);
|
|
4931
|
-
const logout =
|
|
4927
|
+
const logout = useCallback36(
|
|
4932
4928
|
async (service) => {
|
|
4933
4929
|
return env?.requests?.post(
|
|
4934
4930
|
"/logout" /* LOGOUT */,
|
|
@@ -4945,7 +4941,7 @@ function useAuthService() {
|
|
|
4945
4941
|
},
|
|
4946
4942
|
[env]
|
|
4947
4943
|
);
|
|
4948
|
-
const getTenantMapping =
|
|
4944
|
+
const getTenantMapping = useCallback36(
|
|
4949
4945
|
async ({ shortName, service }) => {
|
|
4950
4946
|
const bodyData = {
|
|
4951
4947
|
short_name: shortName
|
|
@@ -4963,7 +4959,7 @@ function useAuthService() {
|
|
|
4963
4959
|
},
|
|
4964
4960
|
[env]
|
|
4965
4961
|
);
|
|
4966
|
-
const getToken =
|
|
4962
|
+
const getToken = useCallback36(
|
|
4967
4963
|
async ({
|
|
4968
4964
|
phone,
|
|
4969
4965
|
name,
|
|
@@ -5008,10 +5004,10 @@ function useAuthService() {
|
|
|
5008
5004
|
}
|
|
5009
5005
|
|
|
5010
5006
|
// src/services/company-service/index.ts
|
|
5011
|
-
import { useCallback as
|
|
5007
|
+
import { useCallback as useCallback37 } from "react";
|
|
5012
5008
|
function useCompanyService() {
|
|
5013
5009
|
const { env } = useEnv();
|
|
5014
|
-
const getCurrentCompany =
|
|
5010
|
+
const getCurrentCompany = useCallback37(
|
|
5015
5011
|
async (service, extraHeaders) => {
|
|
5016
5012
|
return await env.requests.get(
|
|
5017
5013
|
"/company" /* COMPANY_PATH */,
|
|
@@ -5028,7 +5024,7 @@ function useCompanyService() {
|
|
|
5028
5024
|
},
|
|
5029
5025
|
[env]
|
|
5030
5026
|
);
|
|
5031
|
-
const getInfoCompany =
|
|
5027
|
+
const getInfoCompany = useCallback37(
|
|
5032
5028
|
async (id, service) => {
|
|
5033
5029
|
const jsonData = {
|
|
5034
5030
|
ids: [id],
|
|
@@ -5064,10 +5060,10 @@ function useCompanyService() {
|
|
|
5064
5060
|
}
|
|
5065
5061
|
|
|
5066
5062
|
// src/services/excel-service/index.ts
|
|
5067
|
-
import { useCallback as
|
|
5063
|
+
import { useCallback as useCallback38 } from "react";
|
|
5068
5064
|
function useExcelService() {
|
|
5069
5065
|
const { env } = useEnv();
|
|
5070
|
-
const uploadFileExcel =
|
|
5066
|
+
const uploadFileExcel = useCallback38(
|
|
5071
5067
|
async ({
|
|
5072
5068
|
formData,
|
|
5073
5069
|
service,
|
|
@@ -5084,7 +5080,7 @@ function useExcelService() {
|
|
|
5084
5080
|
},
|
|
5085
5081
|
[env]
|
|
5086
5082
|
);
|
|
5087
|
-
const uploadIdFile =
|
|
5083
|
+
const uploadIdFile = useCallback38(
|
|
5088
5084
|
async ({
|
|
5089
5085
|
formData,
|
|
5090
5086
|
service,
|
|
@@ -5101,7 +5097,7 @@ function useExcelService() {
|
|
|
5101
5097
|
},
|
|
5102
5098
|
[env]
|
|
5103
5099
|
);
|
|
5104
|
-
const parsePreview =
|
|
5100
|
+
const parsePreview = useCallback38(
|
|
5105
5101
|
async ({
|
|
5106
5102
|
id,
|
|
5107
5103
|
selectedSheet,
|
|
@@ -5150,7 +5146,7 @@ function useExcelService() {
|
|
|
5150
5146
|
},
|
|
5151
5147
|
[env]
|
|
5152
5148
|
);
|
|
5153
|
-
const executeImport =
|
|
5149
|
+
const executeImport = useCallback38(
|
|
5154
5150
|
async ({
|
|
5155
5151
|
columns,
|
|
5156
5152
|
fields,
|
|
@@ -5184,7 +5180,7 @@ function useExcelService() {
|
|
|
5184
5180
|
},
|
|
5185
5181
|
[env]
|
|
5186
5182
|
);
|
|
5187
|
-
const getFileExcel =
|
|
5183
|
+
const getFileExcel = useCallback38(
|
|
5188
5184
|
async ({
|
|
5189
5185
|
model,
|
|
5190
5186
|
service,
|
|
@@ -5208,7 +5204,7 @@ function useExcelService() {
|
|
|
5208
5204
|
},
|
|
5209
5205
|
[env]
|
|
5210
5206
|
);
|
|
5211
|
-
const getFieldExport =
|
|
5207
|
+
const getFieldExport = useCallback38(
|
|
5212
5208
|
async ({
|
|
5213
5209
|
ids,
|
|
5214
5210
|
model,
|
|
@@ -5248,7 +5244,7 @@ function useExcelService() {
|
|
|
5248
5244
|
},
|
|
5249
5245
|
[env]
|
|
5250
5246
|
);
|
|
5251
|
-
const exportExcel =
|
|
5247
|
+
const exportExcel = useCallback38(
|
|
5252
5248
|
async ({
|
|
5253
5249
|
model,
|
|
5254
5250
|
domain,
|
|
@@ -5296,10 +5292,10 @@ function useExcelService() {
|
|
|
5296
5292
|
}
|
|
5297
5293
|
|
|
5298
5294
|
// src/services/form-service/index.ts
|
|
5299
|
-
import { useCallback as
|
|
5295
|
+
import { useCallback as useCallback39 } from "react";
|
|
5300
5296
|
function useFormService() {
|
|
5301
5297
|
const { env } = useEnv();
|
|
5302
|
-
const getComment =
|
|
5298
|
+
const getComment = useCallback39(
|
|
5303
5299
|
async ({ data }) => {
|
|
5304
5300
|
const jsonData = {
|
|
5305
5301
|
thread_id: data.thread_id,
|
|
@@ -5317,7 +5313,7 @@ function useFormService() {
|
|
|
5317
5313
|
},
|
|
5318
5314
|
[env]
|
|
5319
5315
|
);
|
|
5320
|
-
const getThreadData =
|
|
5316
|
+
const getThreadData = useCallback39(
|
|
5321
5317
|
async ({
|
|
5322
5318
|
data,
|
|
5323
5319
|
xNode,
|
|
@@ -5344,7 +5340,7 @@ function useFormService() {
|
|
|
5344
5340
|
},
|
|
5345
5341
|
[env]
|
|
5346
5342
|
);
|
|
5347
|
-
const getThreadMessages =
|
|
5343
|
+
const getThreadMessages = useCallback39(
|
|
5348
5344
|
async ({
|
|
5349
5345
|
data,
|
|
5350
5346
|
xNode,
|
|
@@ -5370,7 +5366,7 @@ function useFormService() {
|
|
|
5370
5366
|
},
|
|
5371
5367
|
[env]
|
|
5372
5368
|
);
|
|
5373
|
-
const sentComment =
|
|
5369
|
+
const sentComment = useCallback39(
|
|
5374
5370
|
async ({ data }) => {
|
|
5375
5371
|
const jsonData = {
|
|
5376
5372
|
context: {
|
|
@@ -5398,7 +5394,7 @@ function useFormService() {
|
|
|
5398
5394
|
},
|
|
5399
5395
|
[env]
|
|
5400
5396
|
);
|
|
5401
|
-
const deleteComment =
|
|
5397
|
+
const deleteComment = useCallback39(
|
|
5402
5398
|
async ({ data }) => {
|
|
5403
5399
|
const jsonData = {
|
|
5404
5400
|
attachment_ids: [],
|
|
@@ -5414,7 +5410,7 @@ function useFormService() {
|
|
|
5414
5410
|
},
|
|
5415
5411
|
[env]
|
|
5416
5412
|
);
|
|
5417
|
-
const getImage =
|
|
5413
|
+
const getImage = useCallback39(
|
|
5418
5414
|
async ({ data }) => {
|
|
5419
5415
|
return env.requests.get(
|
|
5420
5416
|
`${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
|
|
@@ -5427,7 +5423,7 @@ function useFormService() {
|
|
|
5427
5423
|
},
|
|
5428
5424
|
[env]
|
|
5429
5425
|
);
|
|
5430
|
-
const uploadImage =
|
|
5426
|
+
const uploadImage = useCallback39(
|
|
5431
5427
|
async ({
|
|
5432
5428
|
formData,
|
|
5433
5429
|
service,
|
|
@@ -5446,7 +5442,7 @@ function useFormService() {
|
|
|
5446
5442
|
},
|
|
5447
5443
|
[env]
|
|
5448
5444
|
);
|
|
5449
|
-
const uploadFile =
|
|
5445
|
+
const uploadFile = useCallback39(
|
|
5450
5446
|
async ({
|
|
5451
5447
|
formData,
|
|
5452
5448
|
service,
|
|
@@ -5466,7 +5462,7 @@ function useFormService() {
|
|
|
5466
5462
|
},
|
|
5467
5463
|
[env]
|
|
5468
5464
|
);
|
|
5469
|
-
const getFormView =
|
|
5465
|
+
const getFormView = useCallback39(
|
|
5470
5466
|
async ({ data }) => {
|
|
5471
5467
|
const jsonData = {
|
|
5472
5468
|
model: data.model,
|
|
@@ -5482,7 +5478,7 @@ function useFormService() {
|
|
|
5482
5478
|
},
|
|
5483
5479
|
[env]
|
|
5484
5480
|
);
|
|
5485
|
-
const changeStatus =
|
|
5481
|
+
const changeStatus = useCallback39(
|
|
5486
5482
|
async ({ data }) => {
|
|
5487
5483
|
const vals = {
|
|
5488
5484
|
[data.name]: data.stage_id
|
|
@@ -5511,7 +5507,7 @@ function useFormService() {
|
|
|
5511
5507
|
},
|
|
5512
5508
|
[env]
|
|
5513
5509
|
);
|
|
5514
|
-
const getExternalTab =
|
|
5510
|
+
const getExternalTab = useCallback39(
|
|
5515
5511
|
async ({ method, context, service, xNode }) => {
|
|
5516
5512
|
return env?.requests?.post(
|
|
5517
5513
|
"/call" /* CALL_PATH */,
|
|
@@ -5546,10 +5542,10 @@ function useFormService() {
|
|
|
5546
5542
|
}
|
|
5547
5543
|
|
|
5548
5544
|
// src/services/kanban-service/index.ts
|
|
5549
|
-
import { useCallback as
|
|
5545
|
+
import { useCallback as useCallback40 } from "react";
|
|
5550
5546
|
function useKanbanService() {
|
|
5551
5547
|
const { env } = useEnv();
|
|
5552
|
-
const getGroups =
|
|
5548
|
+
const getGroups = useCallback40(
|
|
5553
5549
|
async ({ model, width_context }) => {
|
|
5554
5550
|
const jsonData = {
|
|
5555
5551
|
model,
|
|
@@ -5569,7 +5565,7 @@ function useKanbanService() {
|
|
|
5569
5565
|
},
|
|
5570
5566
|
[env]
|
|
5571
5567
|
);
|
|
5572
|
-
const getProgressBar =
|
|
5568
|
+
const getProgressBar = useCallback40(
|
|
5573
5569
|
async ({ field, color, model, width_context }) => {
|
|
5574
5570
|
const jsonData = {
|
|
5575
5571
|
model,
|
|
@@ -5599,10 +5595,10 @@ function useKanbanService() {
|
|
|
5599
5595
|
}
|
|
5600
5596
|
|
|
5601
5597
|
// src/services/model-service/index.ts
|
|
5602
|
-
import { useCallback as
|
|
5598
|
+
import { useCallback as useCallback41 } from "react";
|
|
5603
5599
|
function useModelService() {
|
|
5604
5600
|
const { env } = useEnv();
|
|
5605
|
-
const getListMyBankAccount =
|
|
5601
|
+
const getListMyBankAccount = useCallback41(
|
|
5606
5602
|
async ({
|
|
5607
5603
|
domain,
|
|
5608
5604
|
spectification,
|
|
@@ -5626,7 +5622,7 @@ function useModelService() {
|
|
|
5626
5622
|
},
|
|
5627
5623
|
[env]
|
|
5628
5624
|
);
|
|
5629
|
-
const getCurrency =
|
|
5625
|
+
const getCurrency = useCallback41(async () => {
|
|
5630
5626
|
const jsonData = {
|
|
5631
5627
|
model: "res.currency",
|
|
5632
5628
|
method: "web_search_read",
|
|
@@ -5646,7 +5642,7 @@ function useModelService() {
|
|
|
5646
5642
|
}
|
|
5647
5643
|
});
|
|
5648
5644
|
}, [env]);
|
|
5649
|
-
const getConversionRate =
|
|
5645
|
+
const getConversionRate = useCallback41(async () => {
|
|
5650
5646
|
const jsonData = {
|
|
5651
5647
|
model: "res.currency",
|
|
5652
5648
|
method: "web_search_read",
|
|
@@ -5672,7 +5668,7 @@ function useModelService() {
|
|
|
5672
5668
|
}
|
|
5673
5669
|
});
|
|
5674
5670
|
}, [env]);
|
|
5675
|
-
const getAll =
|
|
5671
|
+
const getAll = useCallback41(
|
|
5676
5672
|
async ({
|
|
5677
5673
|
data,
|
|
5678
5674
|
service,
|
|
@@ -5714,7 +5710,7 @@ function useModelService() {
|
|
|
5714
5710
|
},
|
|
5715
5711
|
[env]
|
|
5716
5712
|
);
|
|
5717
|
-
const getListCalendar =
|
|
5713
|
+
const getListCalendar = useCallback41(
|
|
5718
5714
|
async ({ data }) => {
|
|
5719
5715
|
const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
5720
5716
|
fields: data.fields,
|
|
@@ -5745,7 +5741,7 @@ function useModelService() {
|
|
|
5745
5741
|
},
|
|
5746
5742
|
[env]
|
|
5747
5743
|
);
|
|
5748
|
-
const getList =
|
|
5744
|
+
const getList = useCallback41(
|
|
5749
5745
|
async ({
|
|
5750
5746
|
model,
|
|
5751
5747
|
ids = [],
|
|
@@ -5777,7 +5773,7 @@ function useModelService() {
|
|
|
5777
5773
|
},
|
|
5778
5774
|
[env]
|
|
5779
5775
|
);
|
|
5780
|
-
const getDetail =
|
|
5776
|
+
const getDetail = useCallback41(
|
|
5781
5777
|
async ({
|
|
5782
5778
|
ids = [],
|
|
5783
5779
|
model,
|
|
@@ -5809,7 +5805,7 @@ function useModelService() {
|
|
|
5809
5805
|
},
|
|
5810
5806
|
[env]
|
|
5811
5807
|
);
|
|
5812
|
-
const save =
|
|
5808
|
+
const save = useCallback41(
|
|
5813
5809
|
async ({
|
|
5814
5810
|
model,
|
|
5815
5811
|
ids = [],
|
|
@@ -5844,7 +5840,7 @@ function useModelService() {
|
|
|
5844
5840
|
},
|
|
5845
5841
|
[env]
|
|
5846
5842
|
);
|
|
5847
|
-
const deleteApi =
|
|
5843
|
+
const deleteApi = useCallback41(
|
|
5848
5844
|
async ({ ids = [], model, service }) => {
|
|
5849
5845
|
const jsonData = {
|
|
5850
5846
|
model,
|
|
@@ -5864,7 +5860,7 @@ function useModelService() {
|
|
|
5864
5860
|
},
|
|
5865
5861
|
[env]
|
|
5866
5862
|
);
|
|
5867
|
-
const onChange =
|
|
5863
|
+
const onChange = useCallback41(
|
|
5868
5864
|
async ({
|
|
5869
5865
|
ids = [],
|
|
5870
5866
|
model,
|
|
@@ -5900,7 +5896,7 @@ function useModelService() {
|
|
|
5900
5896
|
},
|
|
5901
5897
|
[env]
|
|
5902
5898
|
);
|
|
5903
|
-
const getListFieldsOnchange =
|
|
5899
|
+
const getListFieldsOnchange = useCallback41(
|
|
5904
5900
|
async ({
|
|
5905
5901
|
model,
|
|
5906
5902
|
service,
|
|
@@ -5924,7 +5920,7 @@ function useModelService() {
|
|
|
5924
5920
|
},
|
|
5925
5921
|
[env]
|
|
5926
5922
|
);
|
|
5927
|
-
const parseORMOdoo =
|
|
5923
|
+
const parseORMOdoo = useCallback41((data) => {
|
|
5928
5924
|
for (const key in data) {
|
|
5929
5925
|
if (key === "display_name") {
|
|
5930
5926
|
delete data[key];
|
|
@@ -5935,7 +5931,7 @@ function useModelService() {
|
|
|
5935
5931
|
}
|
|
5936
5932
|
return { ...data };
|
|
5937
5933
|
}, []);
|
|
5938
|
-
const toDataJS =
|
|
5934
|
+
const toDataJS = useCallback41(
|
|
5939
5935
|
(data, viewData, model) => {
|
|
5940
5936
|
for (const key in data) {
|
|
5941
5937
|
if (data[key] === false) {
|
|
@@ -5993,10 +5989,10 @@ function useModelService() {
|
|
|
5993
5989
|
}
|
|
5994
5990
|
|
|
5995
5991
|
// src/services/user-service/index.ts
|
|
5996
|
-
import { useCallback as
|
|
5992
|
+
import { useCallback as useCallback42 } from "react";
|
|
5997
5993
|
function useUserService() {
|
|
5998
5994
|
const { env } = useEnv();
|
|
5999
|
-
const getProfile =
|
|
5995
|
+
const getProfile = useCallback42(
|
|
6000
5996
|
async (service, path, extraHeaders) => {
|
|
6001
5997
|
return env?.requests?.get(
|
|
6002
5998
|
path || "/userinfo" /* PROFILE_PATH */,
|
|
@@ -6013,7 +6009,7 @@ function useUserService() {
|
|
|
6013
6009
|
},
|
|
6014
6010
|
[env]
|
|
6015
6011
|
);
|
|
6016
|
-
const getUser =
|
|
6012
|
+
const getUser = useCallback42(
|
|
6017
6013
|
async ({ context, id }) => {
|
|
6018
6014
|
const jsonData = {
|
|
6019
6015
|
model: "res.users",
|
|
@@ -6051,7 +6047,7 @@ function useUserService() {
|
|
|
6051
6047
|
},
|
|
6052
6048
|
[env]
|
|
6053
6049
|
);
|
|
6054
|
-
const switchUserLocale =
|
|
6050
|
+
const switchUserLocale = useCallback42(
|
|
6055
6051
|
async ({ id, values, service }) => {
|
|
6056
6052
|
const jsonData = {
|
|
6057
6053
|
model: "res.users",
|
|
@@ -6079,10 +6075,10 @@ function useUserService() {
|
|
|
6079
6075
|
}
|
|
6080
6076
|
|
|
6081
6077
|
// src/services/view-service/index.ts
|
|
6082
|
-
import { useCallback as
|
|
6078
|
+
import { useCallback as useCallback43 } from "react";
|
|
6083
6079
|
function useViewService() {
|
|
6084
6080
|
const { env } = useEnv();
|
|
6085
|
-
const getView =
|
|
6081
|
+
const getView = useCallback43(
|
|
6086
6082
|
async ({
|
|
6087
6083
|
model,
|
|
6088
6084
|
views,
|
|
@@ -6122,7 +6118,7 @@ function useViewService() {
|
|
|
6122
6118
|
},
|
|
6123
6119
|
[env]
|
|
6124
6120
|
);
|
|
6125
|
-
const getMenu =
|
|
6121
|
+
const getMenu = useCallback43(
|
|
6126
6122
|
async (context, specification, domain, service) => {
|
|
6127
6123
|
const jsonData = {
|
|
6128
6124
|
model: "ir.ui.menu" /* MENU */,
|
|
@@ -6153,7 +6149,7 @@ function useViewService() {
|
|
|
6153
6149
|
},
|
|
6154
6150
|
[env]
|
|
6155
6151
|
);
|
|
6156
|
-
const getActionDetail =
|
|
6152
|
+
const getActionDetail = useCallback43(
|
|
6157
6153
|
async (aid, context) => {
|
|
6158
6154
|
const jsonData = {
|
|
6159
6155
|
model: "ir.actions.act_window" /* WINDOW_ACTION */,
|
|
@@ -6183,7 +6179,7 @@ function useViewService() {
|
|
|
6183
6179
|
},
|
|
6184
6180
|
[env]
|
|
6185
6181
|
);
|
|
6186
|
-
const getResequence =
|
|
6182
|
+
const getResequence = useCallback43(
|
|
6187
6183
|
async ({
|
|
6188
6184
|
model,
|
|
6189
6185
|
ids,
|
|
@@ -6213,7 +6209,7 @@ function useViewService() {
|
|
|
6213
6209
|
},
|
|
6214
6210
|
[env]
|
|
6215
6211
|
);
|
|
6216
|
-
const getSelectionItem =
|
|
6212
|
+
const getSelectionItem = useCallback43(
|
|
6217
6213
|
async ({
|
|
6218
6214
|
data,
|
|
6219
6215
|
service,
|
|
@@ -6250,7 +6246,7 @@ function useViewService() {
|
|
|
6250
6246
|
},
|
|
6251
6247
|
[env]
|
|
6252
6248
|
);
|
|
6253
|
-
const loadMessages =
|
|
6249
|
+
const loadMessages = useCallback43(async () => {
|
|
6254
6250
|
return env.requests.post(
|
|
6255
6251
|
"/load_message_failures" /* LOAD_MESSAGE */,
|
|
6256
6252
|
{},
|
|
@@ -6261,14 +6257,14 @@ function useViewService() {
|
|
|
6261
6257
|
}
|
|
6262
6258
|
);
|
|
6263
6259
|
}, [env]);
|
|
6264
|
-
const getVersion =
|
|
6260
|
+
const getVersion = useCallback43(async () => {
|
|
6265
6261
|
return env?.requests?.get("", {
|
|
6266
6262
|
headers: {
|
|
6267
6263
|
"Content-Type": "application/json"
|
|
6268
6264
|
}
|
|
6269
6265
|
});
|
|
6270
6266
|
}, [env]);
|
|
6271
|
-
const grantAccess =
|
|
6267
|
+
const grantAccess = useCallback43(
|
|
6272
6268
|
async ({
|
|
6273
6269
|
redirect_uri,
|
|
6274
6270
|
state,
|
|
@@ -6295,7 +6291,7 @@ function useViewService() {
|
|
|
6295
6291
|
},
|
|
6296
6292
|
[env]
|
|
6297
6293
|
);
|
|
6298
|
-
const removeTotpSetUp =
|
|
6294
|
+
const removeTotpSetUp = useCallback43(
|
|
6299
6295
|
async ({ method, token }) => {
|
|
6300
6296
|
const jsonData = {
|
|
6301
6297
|
method,
|
|
@@ -6316,7 +6312,7 @@ function useViewService() {
|
|
|
6316
6312
|
},
|
|
6317
6313
|
[env]
|
|
6318
6314
|
);
|
|
6319
|
-
const requestSetupTotp =
|
|
6315
|
+
const requestSetupTotp = useCallback43(
|
|
6320
6316
|
async ({ method, token }) => {
|
|
6321
6317
|
const jsonData = {
|
|
6322
6318
|
method,
|
|
@@ -6335,7 +6331,7 @@ function useViewService() {
|
|
|
6335
6331
|
},
|
|
6336
6332
|
[env]
|
|
6337
6333
|
);
|
|
6338
|
-
const settingsWebRead2fa =
|
|
6334
|
+
const settingsWebRead2fa = useCallback43(
|
|
6339
6335
|
async ({
|
|
6340
6336
|
method,
|
|
6341
6337
|
model,
|
|
@@ -6363,7 +6359,7 @@ function useViewService() {
|
|
|
6363
6359
|
},
|
|
6364
6360
|
[env]
|
|
6365
6361
|
);
|
|
6366
|
-
const signInSSO =
|
|
6362
|
+
const signInSSO = useCallback43(
|
|
6367
6363
|
async ({
|
|
6368
6364
|
redirect_uri,
|
|
6369
6365
|
state,
|
|
@@ -6395,7 +6391,7 @@ function useViewService() {
|
|
|
6395
6391
|
},
|
|
6396
6392
|
[env]
|
|
6397
6393
|
);
|
|
6398
|
-
const verify2FA =
|
|
6394
|
+
const verify2FA = useCallback43(
|
|
6399
6395
|
({
|
|
6400
6396
|
method,
|
|
6401
6397
|
with_context,
|
|
@@ -6428,7 +6424,7 @@ function useViewService() {
|
|
|
6428
6424
|
},
|
|
6429
6425
|
[env]
|
|
6430
6426
|
);
|
|
6431
|
-
const get2FAMethods =
|
|
6427
|
+
const get2FAMethods = useCallback43(
|
|
6432
6428
|
({ method, with_context }) => {
|
|
6433
6429
|
const jsonData = {
|
|
6434
6430
|
method,
|
|
@@ -6447,7 +6443,7 @@ function useViewService() {
|
|
|
6447
6443
|
},
|
|
6448
6444
|
[env]
|
|
6449
6445
|
);
|
|
6450
|
-
const verifyTotp =
|
|
6446
|
+
const verifyTotp = useCallback43(
|
|
6451
6447
|
({
|
|
6452
6448
|
method,
|
|
6453
6449
|
action_token,
|
|
@@ -6472,7 +6468,7 @@ function useViewService() {
|
|
|
6472
6468
|
},
|
|
6473
6469
|
[env]
|
|
6474
6470
|
);
|
|
6475
|
-
const getNotifications =
|
|
6471
|
+
const getNotifications = useCallback43(
|
|
6476
6472
|
async ({
|
|
6477
6473
|
service,
|
|
6478
6474
|
xNode,
|
|
@@ -6492,7 +6488,7 @@ function useViewService() {
|
|
|
6492
6488
|
},
|
|
6493
6489
|
[env]
|
|
6494
6490
|
);
|
|
6495
|
-
const getCountry =
|
|
6491
|
+
const getCountry = useCallback43(
|
|
6496
6492
|
async ({
|
|
6497
6493
|
service,
|
|
6498
6494
|
xNode,
|
|
@@ -6519,7 +6515,7 @@ function useViewService() {
|
|
|
6519
6515
|
},
|
|
6520
6516
|
[env]
|
|
6521
6517
|
);
|
|
6522
|
-
const getCity =
|
|
6518
|
+
const getCity = useCallback43(
|
|
6523
6519
|
async ({
|
|
6524
6520
|
service,
|
|
6525
6521
|
xNode,
|
|
@@ -6546,7 +6542,7 @@ function useViewService() {
|
|
|
6546
6542
|
},
|
|
6547
6543
|
[env]
|
|
6548
6544
|
);
|
|
6549
|
-
const getWard =
|
|
6545
|
+
const getWard = useCallback43(
|
|
6550
6546
|
async ({
|
|
6551
6547
|
service,
|
|
6552
6548
|
xNode,
|
|
@@ -6571,7 +6567,7 @@ function useViewService() {
|
|
|
6571
6567
|
},
|
|
6572
6568
|
[env]
|
|
6573
6569
|
);
|
|
6574
|
-
const getPartnerTitle =
|
|
6570
|
+
const getPartnerTitle = useCallback43(
|
|
6575
6571
|
async ({
|
|
6576
6572
|
service,
|
|
6577
6573
|
xNode,
|
|
@@ -6623,10 +6619,10 @@ function useViewService() {
|
|
|
6623
6619
|
}
|
|
6624
6620
|
|
|
6625
6621
|
// src/services/dashboard-service/index.ts
|
|
6626
|
-
import { useCallback as
|
|
6622
|
+
import { useCallback as useCallback44 } from "react";
|
|
6627
6623
|
function useDashboardService() {
|
|
6628
6624
|
const { env } = useEnv();
|
|
6629
|
-
const readGroup =
|
|
6625
|
+
const readGroup = useCallback44(
|
|
6630
6626
|
async ({
|
|
6631
6627
|
service,
|
|
6632
6628
|
xNode,
|
|
@@ -6643,7 +6639,7 @@ function useDashboardService() {
|
|
|
6643
6639
|
},
|
|
6644
6640
|
[env]
|
|
6645
6641
|
);
|
|
6646
|
-
const getDataChart =
|
|
6642
|
+
const getDataChart = useCallback44(
|
|
6647
6643
|
async ({
|
|
6648
6644
|
service,
|
|
6649
6645
|
xNode,
|