@fctc/interface-logic 4.7.7 → 4.7.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/hooks.d.mts +22 -1
- package/dist/hooks.d.ts +22 -1
- package/dist/hooks.js +119 -15
- package/dist/hooks.mjs +117 -15
- package/dist/provider.d.mts +3 -1
- package/dist/provider.d.ts +3 -1
- package/dist/provider.js +139 -37
- package/dist/provider.mjs +128 -26
- package/dist/services.d.mts +21 -0
- package/dist/services.d.ts +21 -0
- package/dist/services.js +189 -103
- package/dist/services.mjs +186 -100
- package/package.json +1 -1
package/dist/services.js
CHANGED
|
@@ -45,7 +45,7 @@ __export(services_exports, {
|
|
|
45
45
|
module.exports = __toCommonJS(services_exports);
|
|
46
46
|
|
|
47
47
|
// src/services/action-service/index.ts
|
|
48
|
-
var
|
|
48
|
+
var import_react54 = require("react");
|
|
49
49
|
|
|
50
50
|
// src/constants/api/uri-constant.ts
|
|
51
51
|
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
@@ -2955,7 +2955,7 @@ function useEnv() {
|
|
|
2955
2955
|
}
|
|
2956
2956
|
|
|
2957
2957
|
// src/provider/service-provider.tsx
|
|
2958
|
-
var
|
|
2958
|
+
var import_react52 = require("react");
|
|
2959
2959
|
|
|
2960
2960
|
// src/hooks/auth/use-forgot-password.ts
|
|
2961
2961
|
var import_react_query3 = require("@tanstack/react-query");
|
|
@@ -4833,6 +4833,84 @@ var deleteOrderLineSupabaseService = () => {
|
|
|
4833
4833
|
};
|
|
4834
4834
|
};
|
|
4835
4835
|
|
|
4836
|
+
// src/services/pos-service/supabase/add-category.ts
|
|
4837
|
+
var import_react50 = require("react");
|
|
4838
|
+
var addCategorySupabaseService = () => {
|
|
4839
|
+
const supabase = useSupabaseOptional();
|
|
4840
|
+
const addCategorySupabase = (0, import_react50.useCallback)(
|
|
4841
|
+
async (values) => {
|
|
4842
|
+
if (!supabase) {
|
|
4843
|
+
console.error("Supabase client not initialized");
|
|
4844
|
+
return null;
|
|
4845
|
+
}
|
|
4846
|
+
try {
|
|
4847
|
+
const { data, error } = await supabase.from("pos_categories" /* POS_CATEGORIES */).insert({
|
|
4848
|
+
name: values.name
|
|
4849
|
+
}).select("id, name").single();
|
|
4850
|
+
if (error) {
|
|
4851
|
+
console.error("Error adding Category:", error);
|
|
4852
|
+
return null;
|
|
4853
|
+
}
|
|
4854
|
+
return [[data.id, data.name]];
|
|
4855
|
+
} catch (error) {
|
|
4856
|
+
console.error("Error adding Category:", error);
|
|
4857
|
+
return null;
|
|
4858
|
+
}
|
|
4859
|
+
},
|
|
4860
|
+
[supabase]
|
|
4861
|
+
);
|
|
4862
|
+
return {
|
|
4863
|
+
addCategorySupabase
|
|
4864
|
+
};
|
|
4865
|
+
};
|
|
4866
|
+
|
|
4867
|
+
// src/services/pos-service/supabase/add-product.ts
|
|
4868
|
+
var import_react51 = require("react");
|
|
4869
|
+
var addProductSupabaseService = () => {
|
|
4870
|
+
const supabase = useSupabaseOptional();
|
|
4871
|
+
const addProductSupabase = (0, import_react51.useCallback)(
|
|
4872
|
+
async (values) => {
|
|
4873
|
+
if (!supabase) {
|
|
4874
|
+
console.error("Supabase client not initialized");
|
|
4875
|
+
return null;
|
|
4876
|
+
}
|
|
4877
|
+
const insertData = Object.fromEntries(
|
|
4878
|
+
Object.entries({
|
|
4879
|
+
name: values.name,
|
|
4880
|
+
product_tmpl_id: values.product_tmpl_id,
|
|
4881
|
+
product_template_variant_value_ids: values.product_template_variant_value_ids ?? [],
|
|
4882
|
+
combo_ids: values.combo_ids ?? [],
|
|
4883
|
+
categ_id: values.categ_id,
|
|
4884
|
+
pos_categ_ids: values.pos_categ_ids ?? [],
|
|
4885
|
+
display_name: values.display_name || values.name,
|
|
4886
|
+
default_code: values.default_code ?? "",
|
|
4887
|
+
description_sale: values.description_sale ?? "",
|
|
4888
|
+
lst_price: values.lst_price ?? 0,
|
|
4889
|
+
standard_price: values.standard_price ?? 0,
|
|
4890
|
+
barcode: values.barcode ?? "",
|
|
4891
|
+
image_url: values.image_url ?? "",
|
|
4892
|
+
active: values.active ?? true
|
|
4893
|
+
}).filter(([_, v]) => v !== void 0)
|
|
4894
|
+
);
|
|
4895
|
+
try {
|
|
4896
|
+
const { data, error } = await supabase.from("products" /* PRODUCTS */).insert(insertData).select("id, name").single();
|
|
4897
|
+
if (error) {
|
|
4898
|
+
console.error("Error adding product:", error);
|
|
4899
|
+
return null;
|
|
4900
|
+
}
|
|
4901
|
+
return [[data.id, data.name]];
|
|
4902
|
+
} catch (error) {
|
|
4903
|
+
console.error("Error adding product:", error);
|
|
4904
|
+
return null;
|
|
4905
|
+
}
|
|
4906
|
+
},
|
|
4907
|
+
[supabase]
|
|
4908
|
+
);
|
|
4909
|
+
return {
|
|
4910
|
+
addProductSupabase
|
|
4911
|
+
};
|
|
4912
|
+
};
|
|
4913
|
+
|
|
4836
4914
|
// src/services/pos-service/index.ts
|
|
4837
4915
|
var serviceFactories = [
|
|
4838
4916
|
addEntityService,
|
|
@@ -4871,13 +4949,15 @@ var serviceFactories = [
|
|
|
4871
4949
|
updateTableSupabaseService,
|
|
4872
4950
|
deleteFloorSupabaseService,
|
|
4873
4951
|
deleteTableSupabaseService,
|
|
4952
|
+
addCategorySupabaseService,
|
|
4874
4953
|
createOrderSupabaseService,
|
|
4875
4954
|
addProductToOrderSupabaseService,
|
|
4876
4955
|
updateOrderTotalAmountSupabaseService,
|
|
4877
4956
|
updateOrderLineSupabaseService,
|
|
4878
4957
|
updateOrderSupabaseService,
|
|
4879
4958
|
deleteOrderSupabaseService,
|
|
4880
|
-
deleteOrderLineSupabaseService
|
|
4959
|
+
deleteOrderLineSupabaseService,
|
|
4960
|
+
addProductSupabaseService
|
|
4881
4961
|
];
|
|
4882
4962
|
var usePosService = () => {
|
|
4883
4963
|
const { env } = useEnv();
|
|
@@ -4997,36 +5077,42 @@ var import_react_query120 = require("@tanstack/react-query");
|
|
|
4997
5077
|
// src/hooks/pos/supabase/use-create-order.ts
|
|
4998
5078
|
var import_react_query121 = require("@tanstack/react-query");
|
|
4999
5079
|
|
|
5000
|
-
// src/hooks/pos/supabase/use-add-
|
|
5080
|
+
// src/hooks/pos/supabase/use-add-category.ts
|
|
5001
5081
|
var import_react_query122 = require("@tanstack/react-query");
|
|
5002
5082
|
|
|
5003
|
-
// src/hooks/pos/supabase/use-
|
|
5083
|
+
// src/hooks/pos/supabase/use-add-product-to-order.ts
|
|
5004
5084
|
var import_react_query123 = require("@tanstack/react-query");
|
|
5005
5085
|
|
|
5006
|
-
// src/hooks/pos/supabase/use-update-order-
|
|
5086
|
+
// src/hooks/pos/supabase/use-update-order-total-amount.ts
|
|
5007
5087
|
var import_react_query124 = require("@tanstack/react-query");
|
|
5008
5088
|
|
|
5009
|
-
// src/hooks/pos/supabase/use-update-order.ts
|
|
5089
|
+
// src/hooks/pos/supabase/use-update-order-line.ts
|
|
5010
5090
|
var import_react_query125 = require("@tanstack/react-query");
|
|
5011
5091
|
|
|
5012
|
-
// src/hooks/pos/supabase/use-
|
|
5092
|
+
// src/hooks/pos/supabase/use-update-order.ts
|
|
5013
5093
|
var import_react_query126 = require("@tanstack/react-query");
|
|
5014
5094
|
|
|
5015
|
-
// src/hooks/pos/supabase/use-delete-order
|
|
5095
|
+
// src/hooks/pos/supabase/use-delete-order.ts
|
|
5016
5096
|
var import_react_query127 = require("@tanstack/react-query");
|
|
5017
5097
|
|
|
5098
|
+
// src/hooks/pos/supabase/use-delete-order-line.ts
|
|
5099
|
+
var import_react_query128 = require("@tanstack/react-query");
|
|
5100
|
+
|
|
5101
|
+
// src/hooks/pos/supabase/use-add-product.ts
|
|
5102
|
+
var import_react_query129 = require("@tanstack/react-query");
|
|
5103
|
+
|
|
5018
5104
|
// src/provider/service-provider.tsx
|
|
5019
5105
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
5020
|
-
var ServiceContext = (0,
|
|
5106
|
+
var ServiceContext = (0, import_react52.createContext)(null);
|
|
5021
5107
|
|
|
5022
5108
|
// src/provider/meta-provider.tsx
|
|
5023
|
-
var
|
|
5109
|
+
var import_react53 = require("react");
|
|
5024
5110
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
5025
5111
|
|
|
5026
5112
|
// src/services/action-service/index.ts
|
|
5027
5113
|
function useActionService() {
|
|
5028
5114
|
const { env } = useEnv();
|
|
5029
|
-
const loadAction = (0,
|
|
5115
|
+
const loadAction = (0, import_react54.useCallback)(
|
|
5030
5116
|
async ({
|
|
5031
5117
|
idAction,
|
|
5032
5118
|
context,
|
|
@@ -5050,7 +5136,7 @@ function useActionService() {
|
|
|
5050
5136
|
},
|
|
5051
5137
|
[env]
|
|
5052
5138
|
);
|
|
5053
|
-
const callButton = (0,
|
|
5139
|
+
const callButton = (0, import_react54.useCallback)(
|
|
5054
5140
|
async ({
|
|
5055
5141
|
model,
|
|
5056
5142
|
ids = [],
|
|
@@ -5084,7 +5170,7 @@ function useActionService() {
|
|
|
5084
5170
|
},
|
|
5085
5171
|
[env]
|
|
5086
5172
|
);
|
|
5087
|
-
const removeRows = (0,
|
|
5173
|
+
const removeRows = (0, import_react54.useCallback)(
|
|
5088
5174
|
async ({
|
|
5089
5175
|
model,
|
|
5090
5176
|
ids,
|
|
@@ -5110,7 +5196,7 @@ function useActionService() {
|
|
|
5110
5196
|
},
|
|
5111
5197
|
[env]
|
|
5112
5198
|
);
|
|
5113
|
-
const duplicateRecord = (0,
|
|
5199
|
+
const duplicateRecord = (0, import_react54.useCallback)(
|
|
5114
5200
|
async ({
|
|
5115
5201
|
model,
|
|
5116
5202
|
id,
|
|
@@ -5136,7 +5222,7 @@ function useActionService() {
|
|
|
5136
5222
|
},
|
|
5137
5223
|
[env]
|
|
5138
5224
|
);
|
|
5139
|
-
const getPrintReportName = (0,
|
|
5225
|
+
const getPrintReportName = (0, import_react54.useCallback)(
|
|
5140
5226
|
async ({ id }) => {
|
|
5141
5227
|
const jsonData = {
|
|
5142
5228
|
model: "ir.actions.report",
|
|
@@ -5154,7 +5240,7 @@ function useActionService() {
|
|
|
5154
5240
|
},
|
|
5155
5241
|
[env]
|
|
5156
5242
|
);
|
|
5157
|
-
const print = (0,
|
|
5243
|
+
const print = (0, import_react54.useCallback)(
|
|
5158
5244
|
async ({ id, report, db }) => {
|
|
5159
5245
|
const jsonData = {
|
|
5160
5246
|
report,
|
|
@@ -5172,7 +5258,7 @@ function useActionService() {
|
|
|
5172
5258
|
},
|
|
5173
5259
|
[env]
|
|
5174
5260
|
);
|
|
5175
|
-
const runAction = (0,
|
|
5261
|
+
const runAction = (0, import_react54.useCallback)(
|
|
5176
5262
|
async ({
|
|
5177
5263
|
idAction,
|
|
5178
5264
|
context,
|
|
@@ -5199,7 +5285,7 @@ function useActionService() {
|
|
|
5199
5285
|
},
|
|
5200
5286
|
[env]
|
|
5201
5287
|
);
|
|
5202
|
-
const generateSerialNumber = (0,
|
|
5288
|
+
const generateSerialNumber = (0, import_react54.useCallback)(
|
|
5203
5289
|
async ({
|
|
5204
5290
|
kwargs,
|
|
5205
5291
|
context,
|
|
@@ -5237,11 +5323,11 @@ function useActionService() {
|
|
|
5237
5323
|
}
|
|
5238
5324
|
|
|
5239
5325
|
// src/services/auth-service/index.ts
|
|
5240
|
-
var
|
|
5326
|
+
var import_react55 = require("react");
|
|
5241
5327
|
function useAuthService() {
|
|
5242
5328
|
const { env } = useEnv();
|
|
5243
5329
|
const supabase = useSupabaseOptional();
|
|
5244
|
-
const login = (0,
|
|
5330
|
+
const login = (0, import_react55.useCallback)(
|
|
5245
5331
|
async (body) => {
|
|
5246
5332
|
const payload = Object.fromEntries(
|
|
5247
5333
|
Object.entries({
|
|
@@ -5266,7 +5352,7 @@ function useAuthService() {
|
|
|
5266
5352
|
},
|
|
5267
5353
|
[env]
|
|
5268
5354
|
);
|
|
5269
|
-
const loginSupabase = (0,
|
|
5355
|
+
const loginSupabase = (0, import_react55.useCallback)(
|
|
5270
5356
|
async (body) => {
|
|
5271
5357
|
if (!supabase) {
|
|
5272
5358
|
return {
|
|
@@ -5282,7 +5368,7 @@ function useAuthService() {
|
|
|
5282
5368
|
},
|
|
5283
5369
|
[supabase]
|
|
5284
5370
|
);
|
|
5285
|
-
const forgotPassword = (0,
|
|
5371
|
+
const forgotPassword = (0, import_react55.useCallback)(
|
|
5286
5372
|
async (email) => {
|
|
5287
5373
|
const bodyData = {
|
|
5288
5374
|
login: email,
|
|
@@ -5296,7 +5382,7 @@ function useAuthService() {
|
|
|
5296
5382
|
},
|
|
5297
5383
|
[env]
|
|
5298
5384
|
);
|
|
5299
|
-
const forgotPasswordSSO = (0,
|
|
5385
|
+
const forgotPasswordSSO = (0, import_react55.useCallback)(
|
|
5300
5386
|
async ({
|
|
5301
5387
|
email,
|
|
5302
5388
|
with_context,
|
|
@@ -5319,7 +5405,7 @@ function useAuthService() {
|
|
|
5319
5405
|
},
|
|
5320
5406
|
[env]
|
|
5321
5407
|
);
|
|
5322
|
-
const resetPassword = (0,
|
|
5408
|
+
const resetPassword = (0, import_react55.useCallback)(
|
|
5323
5409
|
async (data, token) => {
|
|
5324
5410
|
const bodyData = {
|
|
5325
5411
|
token,
|
|
@@ -5334,7 +5420,7 @@ function useAuthService() {
|
|
|
5334
5420
|
},
|
|
5335
5421
|
[env]
|
|
5336
5422
|
);
|
|
5337
|
-
const resetPasswordSSO = (0,
|
|
5423
|
+
const resetPasswordSSO = (0, import_react55.useCallback)(
|
|
5338
5424
|
async ({
|
|
5339
5425
|
method,
|
|
5340
5426
|
password,
|
|
@@ -5357,7 +5443,7 @@ function useAuthService() {
|
|
|
5357
5443
|
},
|
|
5358
5444
|
[env]
|
|
5359
5445
|
);
|
|
5360
|
-
const updatePassword = (0,
|
|
5446
|
+
const updatePassword = (0, import_react55.useCallback)(
|
|
5361
5447
|
async (data, token) => {
|
|
5362
5448
|
const bodyData = {
|
|
5363
5449
|
token,
|
|
@@ -5372,7 +5458,7 @@ function useAuthService() {
|
|
|
5372
5458
|
},
|
|
5373
5459
|
[env]
|
|
5374
5460
|
);
|
|
5375
|
-
const isValidToken = (0,
|
|
5461
|
+
const isValidToken = (0, import_react55.useCallback)(
|
|
5376
5462
|
async (token) => {
|
|
5377
5463
|
const bodyData = {
|
|
5378
5464
|
token
|
|
@@ -5385,7 +5471,7 @@ function useAuthService() {
|
|
|
5385
5471
|
},
|
|
5386
5472
|
[env]
|
|
5387
5473
|
);
|
|
5388
|
-
const isValidActionToken = (0,
|
|
5474
|
+
const isValidActionToken = (0, import_react55.useCallback)(
|
|
5389
5475
|
async (actionToken) => {
|
|
5390
5476
|
const bodyData = {};
|
|
5391
5477
|
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
@@ -5398,7 +5484,7 @@ function useAuthService() {
|
|
|
5398
5484
|
},
|
|
5399
5485
|
[env]
|
|
5400
5486
|
);
|
|
5401
|
-
const loginSocial = (0,
|
|
5487
|
+
const loginSocial = (0, import_react55.useCallback)(
|
|
5402
5488
|
async ({
|
|
5403
5489
|
db,
|
|
5404
5490
|
state,
|
|
@@ -5416,13 +5502,13 @@ function useAuthService() {
|
|
|
5416
5502
|
},
|
|
5417
5503
|
[env]
|
|
5418
5504
|
);
|
|
5419
|
-
const getProviders = (0,
|
|
5505
|
+
const getProviders = (0, import_react55.useCallback)(
|
|
5420
5506
|
async (db) => {
|
|
5421
5507
|
return env?.requests?.get("/oauth/providers", { params: { db } });
|
|
5422
5508
|
},
|
|
5423
5509
|
[env]
|
|
5424
5510
|
);
|
|
5425
|
-
const getAccessByCode = (0,
|
|
5511
|
+
const getAccessByCode = (0, import_react55.useCallback)(
|
|
5426
5512
|
async (code) => {
|
|
5427
5513
|
const data = new URLSearchParams();
|
|
5428
5514
|
data.append("code", code);
|
|
@@ -5442,7 +5528,7 @@ function useAuthService() {
|
|
|
5442
5528
|
},
|
|
5443
5529
|
[env]
|
|
5444
5530
|
);
|
|
5445
|
-
const logout = (0,
|
|
5531
|
+
const logout = (0, import_react55.useCallback)(
|
|
5446
5532
|
async (service) => {
|
|
5447
5533
|
return env?.requests?.post(
|
|
5448
5534
|
"/logout" /* LOGOUT */,
|
|
@@ -5459,7 +5545,7 @@ function useAuthService() {
|
|
|
5459
5545
|
},
|
|
5460
5546
|
[env]
|
|
5461
5547
|
);
|
|
5462
|
-
const getTenantMapping = (0,
|
|
5548
|
+
const getTenantMapping = (0, import_react55.useCallback)(
|
|
5463
5549
|
async ({ shortName, service }) => {
|
|
5464
5550
|
const bodyData = {
|
|
5465
5551
|
short_name: shortName
|
|
@@ -5477,7 +5563,7 @@ function useAuthService() {
|
|
|
5477
5563
|
},
|
|
5478
5564
|
[env]
|
|
5479
5565
|
);
|
|
5480
|
-
const getToken = (0,
|
|
5566
|
+
const getToken = (0, import_react55.useCallback)(
|
|
5481
5567
|
async ({
|
|
5482
5568
|
phone,
|
|
5483
5569
|
name,
|
|
@@ -5522,10 +5608,10 @@ function useAuthService() {
|
|
|
5522
5608
|
}
|
|
5523
5609
|
|
|
5524
5610
|
// src/services/company-service/index.ts
|
|
5525
|
-
var
|
|
5611
|
+
var import_react56 = require("react");
|
|
5526
5612
|
function useCompanyService() {
|
|
5527
5613
|
const { env } = useEnv();
|
|
5528
|
-
const getCurrentCompany = (0,
|
|
5614
|
+
const getCurrentCompany = (0, import_react56.useCallback)(
|
|
5529
5615
|
async (service, extraHeaders) => {
|
|
5530
5616
|
return await env.requests.get(
|
|
5531
5617
|
"/company" /* COMPANY_PATH */,
|
|
@@ -5542,7 +5628,7 @@ function useCompanyService() {
|
|
|
5542
5628
|
},
|
|
5543
5629
|
[env]
|
|
5544
5630
|
);
|
|
5545
|
-
const getInfoCompany = (0,
|
|
5631
|
+
const getInfoCompany = (0, import_react56.useCallback)(
|
|
5546
5632
|
async (id, service) => {
|
|
5547
5633
|
const jsonData = {
|
|
5548
5634
|
ids: [id],
|
|
@@ -5578,10 +5664,10 @@ function useCompanyService() {
|
|
|
5578
5664
|
}
|
|
5579
5665
|
|
|
5580
5666
|
// src/services/excel-service/index.ts
|
|
5581
|
-
var
|
|
5667
|
+
var import_react57 = require("react");
|
|
5582
5668
|
function useExcelService() {
|
|
5583
5669
|
const { env } = useEnv();
|
|
5584
|
-
const uploadFileExcel = (0,
|
|
5670
|
+
const uploadFileExcel = (0, import_react57.useCallback)(
|
|
5585
5671
|
async ({
|
|
5586
5672
|
formData,
|
|
5587
5673
|
service,
|
|
@@ -5598,7 +5684,7 @@ function useExcelService() {
|
|
|
5598
5684
|
},
|
|
5599
5685
|
[env]
|
|
5600
5686
|
);
|
|
5601
|
-
const uploadIdFile = (0,
|
|
5687
|
+
const uploadIdFile = (0, import_react57.useCallback)(
|
|
5602
5688
|
async ({
|
|
5603
5689
|
formData,
|
|
5604
5690
|
service,
|
|
@@ -5615,7 +5701,7 @@ function useExcelService() {
|
|
|
5615
5701
|
},
|
|
5616
5702
|
[env]
|
|
5617
5703
|
);
|
|
5618
|
-
const parsePreview = (0,
|
|
5704
|
+
const parsePreview = (0, import_react57.useCallback)(
|
|
5619
5705
|
async ({
|
|
5620
5706
|
id,
|
|
5621
5707
|
selectedSheet,
|
|
@@ -5664,7 +5750,7 @@ function useExcelService() {
|
|
|
5664
5750
|
},
|
|
5665
5751
|
[env]
|
|
5666
5752
|
);
|
|
5667
|
-
const executeImport = (0,
|
|
5753
|
+
const executeImport = (0, import_react57.useCallback)(
|
|
5668
5754
|
async ({
|
|
5669
5755
|
columns,
|
|
5670
5756
|
fields,
|
|
@@ -5698,7 +5784,7 @@ function useExcelService() {
|
|
|
5698
5784
|
},
|
|
5699
5785
|
[env]
|
|
5700
5786
|
);
|
|
5701
|
-
const getFileExcel = (0,
|
|
5787
|
+
const getFileExcel = (0, import_react57.useCallback)(
|
|
5702
5788
|
async ({
|
|
5703
5789
|
model,
|
|
5704
5790
|
service,
|
|
@@ -5722,7 +5808,7 @@ function useExcelService() {
|
|
|
5722
5808
|
},
|
|
5723
5809
|
[env]
|
|
5724
5810
|
);
|
|
5725
|
-
const getFieldExport = (0,
|
|
5811
|
+
const getFieldExport = (0, import_react57.useCallback)(
|
|
5726
5812
|
async ({
|
|
5727
5813
|
ids,
|
|
5728
5814
|
model,
|
|
@@ -5762,7 +5848,7 @@ function useExcelService() {
|
|
|
5762
5848
|
},
|
|
5763
5849
|
[env]
|
|
5764
5850
|
);
|
|
5765
|
-
const exportExcel = (0,
|
|
5851
|
+
const exportExcel = (0, import_react57.useCallback)(
|
|
5766
5852
|
async ({
|
|
5767
5853
|
model,
|
|
5768
5854
|
domain,
|
|
@@ -5810,10 +5896,10 @@ function useExcelService() {
|
|
|
5810
5896
|
}
|
|
5811
5897
|
|
|
5812
5898
|
// src/services/form-service/index.ts
|
|
5813
|
-
var
|
|
5899
|
+
var import_react58 = require("react");
|
|
5814
5900
|
function useFormService() {
|
|
5815
5901
|
const { env } = useEnv();
|
|
5816
|
-
const getComment = (0,
|
|
5902
|
+
const getComment = (0, import_react58.useCallback)(
|
|
5817
5903
|
async ({ data }) => {
|
|
5818
5904
|
const jsonData = {
|
|
5819
5905
|
thread_id: data.thread_id,
|
|
@@ -5831,7 +5917,7 @@ function useFormService() {
|
|
|
5831
5917
|
},
|
|
5832
5918
|
[env]
|
|
5833
5919
|
);
|
|
5834
|
-
const getThreadData = (0,
|
|
5920
|
+
const getThreadData = (0, import_react58.useCallback)(
|
|
5835
5921
|
async ({
|
|
5836
5922
|
data,
|
|
5837
5923
|
xNode,
|
|
@@ -5858,7 +5944,7 @@ function useFormService() {
|
|
|
5858
5944
|
},
|
|
5859
5945
|
[env]
|
|
5860
5946
|
);
|
|
5861
|
-
const getThreadMessages = (0,
|
|
5947
|
+
const getThreadMessages = (0, import_react58.useCallback)(
|
|
5862
5948
|
async ({
|
|
5863
5949
|
data,
|
|
5864
5950
|
xNode,
|
|
@@ -5884,7 +5970,7 @@ function useFormService() {
|
|
|
5884
5970
|
},
|
|
5885
5971
|
[env]
|
|
5886
5972
|
);
|
|
5887
|
-
const sentComment = (0,
|
|
5973
|
+
const sentComment = (0, import_react58.useCallback)(
|
|
5888
5974
|
async ({ data }) => {
|
|
5889
5975
|
const jsonData = {
|
|
5890
5976
|
context: {
|
|
@@ -5912,7 +5998,7 @@ function useFormService() {
|
|
|
5912
5998
|
},
|
|
5913
5999
|
[env]
|
|
5914
6000
|
);
|
|
5915
|
-
const deleteComment = (0,
|
|
6001
|
+
const deleteComment = (0, import_react58.useCallback)(
|
|
5916
6002
|
async ({ data }) => {
|
|
5917
6003
|
const jsonData = {
|
|
5918
6004
|
attachment_ids: [],
|
|
@@ -5928,7 +6014,7 @@ function useFormService() {
|
|
|
5928
6014
|
},
|
|
5929
6015
|
[env]
|
|
5930
6016
|
);
|
|
5931
|
-
const getImage = (0,
|
|
6017
|
+
const getImage = (0, import_react58.useCallback)(
|
|
5932
6018
|
async ({ data }) => {
|
|
5933
6019
|
return env.requests.get(
|
|
5934
6020
|
`${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
|
|
@@ -5941,7 +6027,7 @@ function useFormService() {
|
|
|
5941
6027
|
},
|
|
5942
6028
|
[env]
|
|
5943
6029
|
);
|
|
5944
|
-
const uploadImage = (0,
|
|
6030
|
+
const uploadImage = (0, import_react58.useCallback)(
|
|
5945
6031
|
async ({
|
|
5946
6032
|
formData,
|
|
5947
6033
|
service,
|
|
@@ -5960,7 +6046,7 @@ function useFormService() {
|
|
|
5960
6046
|
},
|
|
5961
6047
|
[env]
|
|
5962
6048
|
);
|
|
5963
|
-
const uploadFile = (0,
|
|
6049
|
+
const uploadFile = (0, import_react58.useCallback)(
|
|
5964
6050
|
async ({
|
|
5965
6051
|
formData,
|
|
5966
6052
|
service,
|
|
@@ -5980,7 +6066,7 @@ function useFormService() {
|
|
|
5980
6066
|
},
|
|
5981
6067
|
[env]
|
|
5982
6068
|
);
|
|
5983
|
-
const getFormView = (0,
|
|
6069
|
+
const getFormView = (0, import_react58.useCallback)(
|
|
5984
6070
|
async ({ data }) => {
|
|
5985
6071
|
const jsonData = {
|
|
5986
6072
|
model: data.model,
|
|
@@ -5996,7 +6082,7 @@ function useFormService() {
|
|
|
5996
6082
|
},
|
|
5997
6083
|
[env]
|
|
5998
6084
|
);
|
|
5999
|
-
const changeStatus = (0,
|
|
6085
|
+
const changeStatus = (0, import_react58.useCallback)(
|
|
6000
6086
|
async ({ data }) => {
|
|
6001
6087
|
const vals = {
|
|
6002
6088
|
[data.name]: data.stage_id
|
|
@@ -6025,7 +6111,7 @@ function useFormService() {
|
|
|
6025
6111
|
},
|
|
6026
6112
|
[env]
|
|
6027
6113
|
);
|
|
6028
|
-
const getExternalTab = (0,
|
|
6114
|
+
const getExternalTab = (0, import_react58.useCallback)(
|
|
6029
6115
|
async ({ method, context, service, xNode }) => {
|
|
6030
6116
|
return env?.requests?.post(
|
|
6031
6117
|
"/call" /* CALL_PATH */,
|
|
@@ -6060,10 +6146,10 @@ function useFormService() {
|
|
|
6060
6146
|
}
|
|
6061
6147
|
|
|
6062
6148
|
// src/services/kanban-service/index.ts
|
|
6063
|
-
var
|
|
6149
|
+
var import_react59 = require("react");
|
|
6064
6150
|
function useKanbanService() {
|
|
6065
6151
|
const { env } = useEnv();
|
|
6066
|
-
const getGroups = (0,
|
|
6152
|
+
const getGroups = (0, import_react59.useCallback)(
|
|
6067
6153
|
async ({ model, width_context }) => {
|
|
6068
6154
|
const jsonData = {
|
|
6069
6155
|
model,
|
|
@@ -6083,7 +6169,7 @@ function useKanbanService() {
|
|
|
6083
6169
|
},
|
|
6084
6170
|
[env]
|
|
6085
6171
|
);
|
|
6086
|
-
const getProgressBar = (0,
|
|
6172
|
+
const getProgressBar = (0, import_react59.useCallback)(
|
|
6087
6173
|
async ({ field, color, model, width_context }) => {
|
|
6088
6174
|
const jsonData = {
|
|
6089
6175
|
model,
|
|
@@ -6113,10 +6199,10 @@ function useKanbanService() {
|
|
|
6113
6199
|
}
|
|
6114
6200
|
|
|
6115
6201
|
// src/services/model-service/index.ts
|
|
6116
|
-
var
|
|
6202
|
+
var import_react60 = require("react");
|
|
6117
6203
|
function useModelService() {
|
|
6118
6204
|
const { env } = useEnv();
|
|
6119
|
-
const getListMyBankAccount = (0,
|
|
6205
|
+
const getListMyBankAccount = (0, import_react60.useCallback)(
|
|
6120
6206
|
async ({
|
|
6121
6207
|
domain,
|
|
6122
6208
|
spectification,
|
|
@@ -6140,7 +6226,7 @@ function useModelService() {
|
|
|
6140
6226
|
},
|
|
6141
6227
|
[env]
|
|
6142
6228
|
);
|
|
6143
|
-
const getCurrency = (0,
|
|
6229
|
+
const getCurrency = (0, import_react60.useCallback)(async () => {
|
|
6144
6230
|
const jsonData = {
|
|
6145
6231
|
model: "res.currency",
|
|
6146
6232
|
method: "web_search_read",
|
|
@@ -6160,7 +6246,7 @@ function useModelService() {
|
|
|
6160
6246
|
}
|
|
6161
6247
|
});
|
|
6162
6248
|
}, [env]);
|
|
6163
|
-
const getConversionRate = (0,
|
|
6249
|
+
const getConversionRate = (0, import_react60.useCallback)(async () => {
|
|
6164
6250
|
const jsonData = {
|
|
6165
6251
|
model: "res.currency",
|
|
6166
6252
|
method: "web_search_read",
|
|
@@ -6186,7 +6272,7 @@ function useModelService() {
|
|
|
6186
6272
|
}
|
|
6187
6273
|
});
|
|
6188
6274
|
}, [env]);
|
|
6189
|
-
const getAll = (0,
|
|
6275
|
+
const getAll = (0, import_react60.useCallback)(
|
|
6190
6276
|
async ({
|
|
6191
6277
|
data,
|
|
6192
6278
|
service,
|
|
@@ -6228,7 +6314,7 @@ function useModelService() {
|
|
|
6228
6314
|
},
|
|
6229
6315
|
[env]
|
|
6230
6316
|
);
|
|
6231
|
-
const getListCalendar = (0,
|
|
6317
|
+
const getListCalendar = (0, import_react60.useCallback)(
|
|
6232
6318
|
async ({ data }) => {
|
|
6233
6319
|
const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
6234
6320
|
fields: data.fields,
|
|
@@ -6259,7 +6345,7 @@ function useModelService() {
|
|
|
6259
6345
|
},
|
|
6260
6346
|
[env]
|
|
6261
6347
|
);
|
|
6262
|
-
const getList = (0,
|
|
6348
|
+
const getList = (0, import_react60.useCallback)(
|
|
6263
6349
|
async ({
|
|
6264
6350
|
model,
|
|
6265
6351
|
ids = [],
|
|
@@ -6291,7 +6377,7 @@ function useModelService() {
|
|
|
6291
6377
|
},
|
|
6292
6378
|
[env]
|
|
6293
6379
|
);
|
|
6294
|
-
const getDetail = (0,
|
|
6380
|
+
const getDetail = (0, import_react60.useCallback)(
|
|
6295
6381
|
async ({
|
|
6296
6382
|
ids = [],
|
|
6297
6383
|
model,
|
|
@@ -6323,7 +6409,7 @@ function useModelService() {
|
|
|
6323
6409
|
},
|
|
6324
6410
|
[env]
|
|
6325
6411
|
);
|
|
6326
|
-
const save = (0,
|
|
6412
|
+
const save = (0, import_react60.useCallback)(
|
|
6327
6413
|
async ({
|
|
6328
6414
|
model,
|
|
6329
6415
|
ids = [],
|
|
@@ -6358,7 +6444,7 @@ function useModelService() {
|
|
|
6358
6444
|
},
|
|
6359
6445
|
[env]
|
|
6360
6446
|
);
|
|
6361
|
-
const deleteApi = (0,
|
|
6447
|
+
const deleteApi = (0, import_react60.useCallback)(
|
|
6362
6448
|
async ({ ids = [], model, service }) => {
|
|
6363
6449
|
const jsonData = {
|
|
6364
6450
|
model,
|
|
@@ -6378,7 +6464,7 @@ function useModelService() {
|
|
|
6378
6464
|
},
|
|
6379
6465
|
[env]
|
|
6380
6466
|
);
|
|
6381
|
-
const onChange = (0,
|
|
6467
|
+
const onChange = (0, import_react60.useCallback)(
|
|
6382
6468
|
async ({
|
|
6383
6469
|
ids = [],
|
|
6384
6470
|
model,
|
|
@@ -6414,7 +6500,7 @@ function useModelService() {
|
|
|
6414
6500
|
},
|
|
6415
6501
|
[env]
|
|
6416
6502
|
);
|
|
6417
|
-
const getListFieldsOnchange = (0,
|
|
6503
|
+
const getListFieldsOnchange = (0, import_react60.useCallback)(
|
|
6418
6504
|
async ({
|
|
6419
6505
|
model,
|
|
6420
6506
|
service,
|
|
@@ -6438,7 +6524,7 @@ function useModelService() {
|
|
|
6438
6524
|
},
|
|
6439
6525
|
[env]
|
|
6440
6526
|
);
|
|
6441
|
-
const parseORMOdoo = (0,
|
|
6527
|
+
const parseORMOdoo = (0, import_react60.useCallback)((data) => {
|
|
6442
6528
|
for (const key in data) {
|
|
6443
6529
|
if (key === "display_name") {
|
|
6444
6530
|
delete data[key];
|
|
@@ -6449,7 +6535,7 @@ function useModelService() {
|
|
|
6449
6535
|
}
|
|
6450
6536
|
return { ...data };
|
|
6451
6537
|
}, []);
|
|
6452
|
-
const toDataJS = (0,
|
|
6538
|
+
const toDataJS = (0, import_react60.useCallback)(
|
|
6453
6539
|
(data, viewData, model) => {
|
|
6454
6540
|
for (const key in data) {
|
|
6455
6541
|
if (data[key] === false) {
|
|
@@ -6507,10 +6593,10 @@ function useModelService() {
|
|
|
6507
6593
|
}
|
|
6508
6594
|
|
|
6509
6595
|
// src/services/user-service/index.ts
|
|
6510
|
-
var
|
|
6596
|
+
var import_react61 = require("react");
|
|
6511
6597
|
function useUserService() {
|
|
6512
6598
|
const { env } = useEnv();
|
|
6513
|
-
const getProfile = (0,
|
|
6599
|
+
const getProfile = (0, import_react61.useCallback)(
|
|
6514
6600
|
async (service, path, extraHeaders) => {
|
|
6515
6601
|
return env?.requests?.get(
|
|
6516
6602
|
path || "/userinfo" /* PROFILE_PATH */,
|
|
@@ -6527,7 +6613,7 @@ function useUserService() {
|
|
|
6527
6613
|
},
|
|
6528
6614
|
[env]
|
|
6529
6615
|
);
|
|
6530
|
-
const getUser = (0,
|
|
6616
|
+
const getUser = (0, import_react61.useCallback)(
|
|
6531
6617
|
async ({ context, id }) => {
|
|
6532
6618
|
const jsonData = {
|
|
6533
6619
|
model: "res.users",
|
|
@@ -6565,7 +6651,7 @@ function useUserService() {
|
|
|
6565
6651
|
},
|
|
6566
6652
|
[env]
|
|
6567
6653
|
);
|
|
6568
|
-
const switchUserLocale = (0,
|
|
6654
|
+
const switchUserLocale = (0, import_react61.useCallback)(
|
|
6569
6655
|
async ({ id, values, service }) => {
|
|
6570
6656
|
const jsonData = {
|
|
6571
6657
|
model: "res.users",
|
|
@@ -6593,10 +6679,10 @@ function useUserService() {
|
|
|
6593
6679
|
}
|
|
6594
6680
|
|
|
6595
6681
|
// src/services/view-service/index.ts
|
|
6596
|
-
var
|
|
6682
|
+
var import_react62 = require("react");
|
|
6597
6683
|
function useViewService() {
|
|
6598
6684
|
const { env } = useEnv();
|
|
6599
|
-
const getView = (0,
|
|
6685
|
+
const getView = (0, import_react62.useCallback)(
|
|
6600
6686
|
async ({
|
|
6601
6687
|
model,
|
|
6602
6688
|
views,
|
|
@@ -6636,7 +6722,7 @@ function useViewService() {
|
|
|
6636
6722
|
},
|
|
6637
6723
|
[env]
|
|
6638
6724
|
);
|
|
6639
|
-
const getMenu = (0,
|
|
6725
|
+
const getMenu = (0, import_react62.useCallback)(
|
|
6640
6726
|
async (context, specification, domain, service) => {
|
|
6641
6727
|
const jsonData = {
|
|
6642
6728
|
model: "ir.ui.menu" /* MENU */,
|
|
@@ -6667,7 +6753,7 @@ function useViewService() {
|
|
|
6667
6753
|
},
|
|
6668
6754
|
[env]
|
|
6669
6755
|
);
|
|
6670
|
-
const getActionDetail = (0,
|
|
6756
|
+
const getActionDetail = (0, import_react62.useCallback)(
|
|
6671
6757
|
async (aid, context) => {
|
|
6672
6758
|
const jsonData = {
|
|
6673
6759
|
model: "ir.actions.act_window" /* WINDOW_ACTION */,
|
|
@@ -6697,7 +6783,7 @@ function useViewService() {
|
|
|
6697
6783
|
},
|
|
6698
6784
|
[env]
|
|
6699
6785
|
);
|
|
6700
|
-
const getResequence = (0,
|
|
6786
|
+
const getResequence = (0, import_react62.useCallback)(
|
|
6701
6787
|
async ({
|
|
6702
6788
|
model,
|
|
6703
6789
|
ids,
|
|
@@ -6727,7 +6813,7 @@ function useViewService() {
|
|
|
6727
6813
|
},
|
|
6728
6814
|
[env]
|
|
6729
6815
|
);
|
|
6730
|
-
const getSelectionItem = (0,
|
|
6816
|
+
const getSelectionItem = (0, import_react62.useCallback)(
|
|
6731
6817
|
async ({
|
|
6732
6818
|
data,
|
|
6733
6819
|
service,
|
|
@@ -6764,7 +6850,7 @@ function useViewService() {
|
|
|
6764
6850
|
},
|
|
6765
6851
|
[env]
|
|
6766
6852
|
);
|
|
6767
|
-
const loadMessages = (0,
|
|
6853
|
+
const loadMessages = (0, import_react62.useCallback)(async () => {
|
|
6768
6854
|
return env.requests.post(
|
|
6769
6855
|
"/load_message_failures" /* LOAD_MESSAGE */,
|
|
6770
6856
|
{},
|
|
@@ -6775,14 +6861,14 @@ function useViewService() {
|
|
|
6775
6861
|
}
|
|
6776
6862
|
);
|
|
6777
6863
|
}, [env]);
|
|
6778
|
-
const getVersion = (0,
|
|
6864
|
+
const getVersion = (0, import_react62.useCallback)(async () => {
|
|
6779
6865
|
return env?.requests?.get("", {
|
|
6780
6866
|
headers: {
|
|
6781
6867
|
"Content-Type": "application/json"
|
|
6782
6868
|
}
|
|
6783
6869
|
});
|
|
6784
6870
|
}, [env]);
|
|
6785
|
-
const grantAccess = (0,
|
|
6871
|
+
const grantAccess = (0, import_react62.useCallback)(
|
|
6786
6872
|
async ({
|
|
6787
6873
|
redirect_uri,
|
|
6788
6874
|
state,
|
|
@@ -6809,7 +6895,7 @@ function useViewService() {
|
|
|
6809
6895
|
},
|
|
6810
6896
|
[env]
|
|
6811
6897
|
);
|
|
6812
|
-
const removeTotpSetUp = (0,
|
|
6898
|
+
const removeTotpSetUp = (0, import_react62.useCallback)(
|
|
6813
6899
|
async ({ method, token }) => {
|
|
6814
6900
|
const jsonData = {
|
|
6815
6901
|
method,
|
|
@@ -6830,7 +6916,7 @@ function useViewService() {
|
|
|
6830
6916
|
},
|
|
6831
6917
|
[env]
|
|
6832
6918
|
);
|
|
6833
|
-
const requestSetupTotp = (0,
|
|
6919
|
+
const requestSetupTotp = (0, import_react62.useCallback)(
|
|
6834
6920
|
async ({ method, token }) => {
|
|
6835
6921
|
const jsonData = {
|
|
6836
6922
|
method,
|
|
@@ -6849,7 +6935,7 @@ function useViewService() {
|
|
|
6849
6935
|
},
|
|
6850
6936
|
[env]
|
|
6851
6937
|
);
|
|
6852
|
-
const settingsWebRead2fa = (0,
|
|
6938
|
+
const settingsWebRead2fa = (0, import_react62.useCallback)(
|
|
6853
6939
|
async ({
|
|
6854
6940
|
method,
|
|
6855
6941
|
model,
|
|
@@ -6877,7 +6963,7 @@ function useViewService() {
|
|
|
6877
6963
|
},
|
|
6878
6964
|
[env]
|
|
6879
6965
|
);
|
|
6880
|
-
const signInSSO = (0,
|
|
6966
|
+
const signInSSO = (0, import_react62.useCallback)(
|
|
6881
6967
|
async ({
|
|
6882
6968
|
redirect_uri,
|
|
6883
6969
|
state,
|
|
@@ -6909,7 +6995,7 @@ function useViewService() {
|
|
|
6909
6995
|
},
|
|
6910
6996
|
[env]
|
|
6911
6997
|
);
|
|
6912
|
-
const verify2FA = (0,
|
|
6998
|
+
const verify2FA = (0, import_react62.useCallback)(
|
|
6913
6999
|
({
|
|
6914
7000
|
method,
|
|
6915
7001
|
with_context,
|
|
@@ -6942,7 +7028,7 @@ function useViewService() {
|
|
|
6942
7028
|
},
|
|
6943
7029
|
[env]
|
|
6944
7030
|
);
|
|
6945
|
-
const get2FAMethods = (0,
|
|
7031
|
+
const get2FAMethods = (0, import_react62.useCallback)(
|
|
6946
7032
|
({ method, with_context }) => {
|
|
6947
7033
|
const jsonData = {
|
|
6948
7034
|
method,
|
|
@@ -6961,7 +7047,7 @@ function useViewService() {
|
|
|
6961
7047
|
},
|
|
6962
7048
|
[env]
|
|
6963
7049
|
);
|
|
6964
|
-
const verifyTotp = (0,
|
|
7050
|
+
const verifyTotp = (0, import_react62.useCallback)(
|
|
6965
7051
|
({
|
|
6966
7052
|
method,
|
|
6967
7053
|
action_token,
|
|
@@ -6986,7 +7072,7 @@ function useViewService() {
|
|
|
6986
7072
|
},
|
|
6987
7073
|
[env]
|
|
6988
7074
|
);
|
|
6989
|
-
const getNotifications = (0,
|
|
7075
|
+
const getNotifications = (0, import_react62.useCallback)(
|
|
6990
7076
|
async ({
|
|
6991
7077
|
service,
|
|
6992
7078
|
xNode,
|
|
@@ -7006,7 +7092,7 @@ function useViewService() {
|
|
|
7006
7092
|
},
|
|
7007
7093
|
[env]
|
|
7008
7094
|
);
|
|
7009
|
-
const getCountry = (0,
|
|
7095
|
+
const getCountry = (0, import_react62.useCallback)(
|
|
7010
7096
|
async ({
|
|
7011
7097
|
service,
|
|
7012
7098
|
xNode,
|
|
@@ -7033,7 +7119,7 @@ function useViewService() {
|
|
|
7033
7119
|
},
|
|
7034
7120
|
[env]
|
|
7035
7121
|
);
|
|
7036
|
-
const getCity = (0,
|
|
7122
|
+
const getCity = (0, import_react62.useCallback)(
|
|
7037
7123
|
async ({
|
|
7038
7124
|
service,
|
|
7039
7125
|
xNode,
|
|
@@ -7060,7 +7146,7 @@ function useViewService() {
|
|
|
7060
7146
|
},
|
|
7061
7147
|
[env]
|
|
7062
7148
|
);
|
|
7063
|
-
const getWard = (0,
|
|
7149
|
+
const getWard = (0, import_react62.useCallback)(
|
|
7064
7150
|
async ({
|
|
7065
7151
|
service,
|
|
7066
7152
|
xNode,
|
|
@@ -7085,7 +7171,7 @@ function useViewService() {
|
|
|
7085
7171
|
},
|
|
7086
7172
|
[env]
|
|
7087
7173
|
);
|
|
7088
|
-
const getPartnerTitle = (0,
|
|
7174
|
+
const getPartnerTitle = (0, import_react62.useCallback)(
|
|
7089
7175
|
async ({
|
|
7090
7176
|
service,
|
|
7091
7177
|
xNode,
|
|
@@ -7137,10 +7223,10 @@ function useViewService() {
|
|
|
7137
7223
|
}
|
|
7138
7224
|
|
|
7139
7225
|
// src/services/dashboard-service/index.ts
|
|
7140
|
-
var
|
|
7226
|
+
var import_react63 = require("react");
|
|
7141
7227
|
function useDashboardService() {
|
|
7142
7228
|
const { env } = useEnv();
|
|
7143
|
-
const readGroup = (0,
|
|
7229
|
+
const readGroup = (0, import_react63.useCallback)(
|
|
7144
7230
|
async ({
|
|
7145
7231
|
service,
|
|
7146
7232
|
xNode,
|
|
@@ -7157,7 +7243,7 @@ function useDashboardService() {
|
|
|
7157
7243
|
},
|
|
7158
7244
|
[env]
|
|
7159
7245
|
);
|
|
7160
|
-
const getDataChart = (0,
|
|
7246
|
+
const getDataChart = (0, import_react63.useCallback)(
|
|
7161
7247
|
async ({
|
|
7162
7248
|
service,
|
|
7163
7249
|
xNode,
|