@fctc/interface-logic 5.0.3 → 5.0.5
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 +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/constants.mjs +1 -0
- package/dist/hooks.d.mts +39 -1
- package/dist/hooks.d.ts +39 -1
- package/dist/hooks.js +207 -3
- package/dist/hooks.mjs +202 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +212 -3
- package/dist/index.mjs +207 -3
- package/dist/provider.d.mts +6 -1
- package/dist/provider.d.ts +6 -1
- package/dist/provider.js +223 -24
- package/dist/provider.mjs +212 -13
- package/dist/services.d.mts +38 -0
- package/dist/services.d.ts +38 -0
- package/dist/services.js +257 -98
- package/dist/services.mjs +254 -95
- 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 useCallback67 } from "react";
|
|
3
3
|
|
|
4
4
|
// src/constants/api/uri-constant.ts
|
|
5
5
|
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
@@ -34,6 +34,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
34
34
|
UriConstants2["TOKEN_BY_CODE"] = "/token";
|
|
35
35
|
UriConstants2["LOGOUT"] = "/logout";
|
|
36
36
|
UriConstants2["SUPABASE_LOGIN_PATH"] = "/api/v2/auth/login";
|
|
37
|
+
UriConstants2["SUPABASE_CURRENT_USER"] = "/api/v2/auth/me";
|
|
37
38
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
38
39
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
39
40
|
UriConstants2["CREATE_PATH"] = "/create";
|
|
@@ -5296,6 +5297,144 @@ var getPartnerTitlesSupabaseService = () => {
|
|
|
5296
5297
|
};
|
|
5297
5298
|
};
|
|
5298
5299
|
|
|
5300
|
+
// src/services/pos-service/supabase/get-supa-current-user.ts
|
|
5301
|
+
import { useCallback as useCallback62 } from "react";
|
|
5302
|
+
var getSupaCurrentUser = (env) => {
|
|
5303
|
+
const getSupaCurrentUser2 = useCallback62(
|
|
5304
|
+
({ tenantId }) => {
|
|
5305
|
+
return env?.requests.get("/api/v2/auth/me" /* SUPABASE_CURRENT_USER */, {
|
|
5306
|
+
headers: {
|
|
5307
|
+
"Content-Type": "application/json",
|
|
5308
|
+
"x-tenant-id": tenantId
|
|
5309
|
+
}
|
|
5310
|
+
});
|
|
5311
|
+
},
|
|
5312
|
+
[env]
|
|
5313
|
+
);
|
|
5314
|
+
return {
|
|
5315
|
+
getSupaCurrentUser: getSupaCurrentUser2
|
|
5316
|
+
};
|
|
5317
|
+
};
|
|
5318
|
+
|
|
5319
|
+
// src/services/pos-service/supabase/update-category.ts
|
|
5320
|
+
import { useCallback as useCallback63 } from "react";
|
|
5321
|
+
var updateCategorySupabaseService = () => {
|
|
5322
|
+
const supabase = useSupabaseOptional();
|
|
5323
|
+
const updateCategorySupabase = useCallback63(
|
|
5324
|
+
async (values) => {
|
|
5325
|
+
if (!supabase) {
|
|
5326
|
+
console.error("Supabase client not initialized");
|
|
5327
|
+
return null;
|
|
5328
|
+
}
|
|
5329
|
+
try {
|
|
5330
|
+
const { category_id, ...rest } = values;
|
|
5331
|
+
const { data, error } = await supabase.from("pos_categories" /* POS_CATEGORIES */).update(rest).eq("id", category_id).select("id").single();
|
|
5332
|
+
if (error) {
|
|
5333
|
+
console.error("Error updating category:", error);
|
|
5334
|
+
return null;
|
|
5335
|
+
}
|
|
5336
|
+
return [data.id];
|
|
5337
|
+
} catch (error) {
|
|
5338
|
+
console.error("Error updating category:", error);
|
|
5339
|
+
return null;
|
|
5340
|
+
}
|
|
5341
|
+
},
|
|
5342
|
+
[supabase]
|
|
5343
|
+
);
|
|
5344
|
+
return {
|
|
5345
|
+
updateCategorySupabase
|
|
5346
|
+
};
|
|
5347
|
+
};
|
|
5348
|
+
|
|
5349
|
+
// src/services/pos-service/supabase/delete-category.ts
|
|
5350
|
+
import { useCallback as useCallback64 } from "react";
|
|
5351
|
+
var deleteCategorySupabaseService = () => {
|
|
5352
|
+
const supabase = useSupabaseOptional();
|
|
5353
|
+
const deleteCategorySupabase = useCallback64(
|
|
5354
|
+
async (values) => {
|
|
5355
|
+
if (!supabase) {
|
|
5356
|
+
console.error("Supabase client not initialized");
|
|
5357
|
+
return null;
|
|
5358
|
+
}
|
|
5359
|
+
try {
|
|
5360
|
+
const { error } = await supabase.from("pos_categories" /* POS_CATEGORIES */).delete().eq("id", values.category_id);
|
|
5361
|
+
if (error) {
|
|
5362
|
+
console.error("Error deleting category:", error);
|
|
5363
|
+
return null;
|
|
5364
|
+
}
|
|
5365
|
+
return [values.category_id];
|
|
5366
|
+
} catch (error) {
|
|
5367
|
+
console.error("Error deleting category:", error);
|
|
5368
|
+
return null;
|
|
5369
|
+
}
|
|
5370
|
+
},
|
|
5371
|
+
[supabase]
|
|
5372
|
+
);
|
|
5373
|
+
return {
|
|
5374
|
+
deleteCategorySupabase
|
|
5375
|
+
};
|
|
5376
|
+
};
|
|
5377
|
+
|
|
5378
|
+
// src/services/pos-service/supabase/update-product.ts
|
|
5379
|
+
import { useCallback as useCallback65 } from "react";
|
|
5380
|
+
var updateProductSupabaseService = () => {
|
|
5381
|
+
const supabase = useSupabaseOptional();
|
|
5382
|
+
const updateProductSupabase = useCallback65(
|
|
5383
|
+
async (values) => {
|
|
5384
|
+
if (!supabase) {
|
|
5385
|
+
console.error("Supabase client not initialized");
|
|
5386
|
+
return null;
|
|
5387
|
+
}
|
|
5388
|
+
try {
|
|
5389
|
+
const { product_id, ...rest } = values;
|
|
5390
|
+
const updateData = cleanObject(rest);
|
|
5391
|
+
const { data, error } = await supabase.from("products" /* PRODUCTS */).update(updateData).eq("id", product_id).select("id").single();
|
|
5392
|
+
if (error) {
|
|
5393
|
+
console.error("Error updating product:", error);
|
|
5394
|
+
return null;
|
|
5395
|
+
}
|
|
5396
|
+
return [data.id];
|
|
5397
|
+
} catch (error) {
|
|
5398
|
+
console.error("Error updating product:", error);
|
|
5399
|
+
return null;
|
|
5400
|
+
}
|
|
5401
|
+
},
|
|
5402
|
+
[supabase]
|
|
5403
|
+
);
|
|
5404
|
+
return {
|
|
5405
|
+
updateProductSupabase
|
|
5406
|
+
};
|
|
5407
|
+
};
|
|
5408
|
+
|
|
5409
|
+
// src/services/pos-service/supabase/delete-product.ts
|
|
5410
|
+
import { useCallback as useCallback66 } from "react";
|
|
5411
|
+
var deleteProductSupabaseService = () => {
|
|
5412
|
+
const supabase = useSupabaseOptional();
|
|
5413
|
+
const deleteProductSupabase = useCallback66(
|
|
5414
|
+
async (values) => {
|
|
5415
|
+
if (!supabase) {
|
|
5416
|
+
console.error("Supabase client not initialized");
|
|
5417
|
+
return null;
|
|
5418
|
+
}
|
|
5419
|
+
try {
|
|
5420
|
+
const { error } = await supabase.from("products" /* PRODUCTS */).delete().eq("id", values.product_id);
|
|
5421
|
+
if (error) {
|
|
5422
|
+
console.error("Error deleting product:", error);
|
|
5423
|
+
return null;
|
|
5424
|
+
}
|
|
5425
|
+
return [values.product_id];
|
|
5426
|
+
} catch (error) {
|
|
5427
|
+
console.error("Error deleting product:", error);
|
|
5428
|
+
return null;
|
|
5429
|
+
}
|
|
5430
|
+
},
|
|
5431
|
+
[supabase]
|
|
5432
|
+
);
|
|
5433
|
+
return {
|
|
5434
|
+
deleteProductSupabase
|
|
5435
|
+
};
|
|
5436
|
+
};
|
|
5437
|
+
|
|
5299
5438
|
// src/services/pos-service/index.ts
|
|
5300
5439
|
var serviceFactories = [
|
|
5301
5440
|
addEntityService,
|
|
@@ -5356,7 +5495,12 @@ var serviceFactories = [
|
|
|
5356
5495
|
assignRoleService,
|
|
5357
5496
|
getStatesSupabaseService,
|
|
5358
5497
|
getWardsSupabaseService,
|
|
5359
|
-
getPartnerTitlesSupabaseService
|
|
5498
|
+
getPartnerTitlesSupabaseService,
|
|
5499
|
+
getSupaCurrentUser,
|
|
5500
|
+
updateCategorySupabaseService,
|
|
5501
|
+
deleteCategorySupabaseService,
|
|
5502
|
+
updateProductSupabaseService,
|
|
5503
|
+
deleteProductSupabaseService
|
|
5360
5504
|
];
|
|
5361
5505
|
var usePosService = () => {
|
|
5362
5506
|
const { env } = useEnv();
|
|
@@ -5554,6 +5698,21 @@ import { useMutation as useMutation113 } from "@tanstack/react-query";
|
|
|
5554
5698
|
// src/hooks/pos/supabase/use-assign-role.ts
|
|
5555
5699
|
import { useMutation as useMutation114 } from "@tanstack/react-query";
|
|
5556
5700
|
|
|
5701
|
+
// src/hooks/pos/supabase/use-get-supa-current-user.ts
|
|
5702
|
+
import { useMutation as useMutation115 } from "@tanstack/react-query";
|
|
5703
|
+
|
|
5704
|
+
// src/hooks/pos/supabase/use-update-category.ts
|
|
5705
|
+
import { useMutation as useMutation116 } from "@tanstack/react-query";
|
|
5706
|
+
|
|
5707
|
+
// src/hooks/pos/supabase/use-delete-category.ts
|
|
5708
|
+
import { useMutation as useMutation117 } from "@tanstack/react-query";
|
|
5709
|
+
|
|
5710
|
+
// src/hooks/pos/supabase/use-update-product.ts
|
|
5711
|
+
import { useMutation as useMutation118 } from "@tanstack/react-query";
|
|
5712
|
+
|
|
5713
|
+
// src/hooks/pos/supabase/use-delete-product.ts
|
|
5714
|
+
import { useMutation as useMutation119 } from "@tanstack/react-query";
|
|
5715
|
+
|
|
5557
5716
|
// src/provider/service-provider.tsx
|
|
5558
5717
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
5559
5718
|
var ServiceContext = createContext3(null);
|
|
@@ -5565,7 +5724,7 @@ import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
|
|
|
5565
5724
|
// src/services/action-service/index.ts
|
|
5566
5725
|
function useActionService() {
|
|
5567
5726
|
const { env } = useEnv();
|
|
5568
|
-
const loadAction =
|
|
5727
|
+
const loadAction = useCallback67(
|
|
5569
5728
|
async ({
|
|
5570
5729
|
idAction,
|
|
5571
5730
|
context,
|
|
@@ -5589,7 +5748,7 @@ function useActionService() {
|
|
|
5589
5748
|
},
|
|
5590
5749
|
[env]
|
|
5591
5750
|
);
|
|
5592
|
-
const callButton =
|
|
5751
|
+
const callButton = useCallback67(
|
|
5593
5752
|
async ({
|
|
5594
5753
|
model,
|
|
5595
5754
|
ids = [],
|
|
@@ -5623,7 +5782,7 @@ function useActionService() {
|
|
|
5623
5782
|
},
|
|
5624
5783
|
[env]
|
|
5625
5784
|
);
|
|
5626
|
-
const removeRows =
|
|
5785
|
+
const removeRows = useCallback67(
|
|
5627
5786
|
async ({
|
|
5628
5787
|
model,
|
|
5629
5788
|
ids,
|
|
@@ -5649,7 +5808,7 @@ function useActionService() {
|
|
|
5649
5808
|
},
|
|
5650
5809
|
[env]
|
|
5651
5810
|
);
|
|
5652
|
-
const duplicateRecord =
|
|
5811
|
+
const duplicateRecord = useCallback67(
|
|
5653
5812
|
async ({
|
|
5654
5813
|
model,
|
|
5655
5814
|
id,
|
|
@@ -5675,7 +5834,7 @@ function useActionService() {
|
|
|
5675
5834
|
},
|
|
5676
5835
|
[env]
|
|
5677
5836
|
);
|
|
5678
|
-
const getPrintReportName =
|
|
5837
|
+
const getPrintReportName = useCallback67(
|
|
5679
5838
|
async ({ id }) => {
|
|
5680
5839
|
const jsonData = {
|
|
5681
5840
|
model: "ir.actions.report",
|
|
@@ -5693,7 +5852,7 @@ function useActionService() {
|
|
|
5693
5852
|
},
|
|
5694
5853
|
[env]
|
|
5695
5854
|
);
|
|
5696
|
-
const print =
|
|
5855
|
+
const print = useCallback67(
|
|
5697
5856
|
async ({ id, report, db }) => {
|
|
5698
5857
|
const jsonData = {
|
|
5699
5858
|
report,
|
|
@@ -5711,7 +5870,7 @@ function useActionService() {
|
|
|
5711
5870
|
},
|
|
5712
5871
|
[env]
|
|
5713
5872
|
);
|
|
5714
|
-
const runAction =
|
|
5873
|
+
const runAction = useCallback67(
|
|
5715
5874
|
async ({
|
|
5716
5875
|
idAction,
|
|
5717
5876
|
context,
|
|
@@ -5738,7 +5897,7 @@ function useActionService() {
|
|
|
5738
5897
|
},
|
|
5739
5898
|
[env]
|
|
5740
5899
|
);
|
|
5741
|
-
const generateSerialNumber =
|
|
5900
|
+
const generateSerialNumber = useCallback67(
|
|
5742
5901
|
async ({
|
|
5743
5902
|
kwargs,
|
|
5744
5903
|
context,
|
|
@@ -5763,7 +5922,7 @@ function useActionService() {
|
|
|
5763
5922
|
},
|
|
5764
5923
|
[env]
|
|
5765
5924
|
);
|
|
5766
|
-
const actionServerHome =
|
|
5925
|
+
const actionServerHome = useCallback67(async () => {
|
|
5767
5926
|
return env?.requests?.get("/action_server_home" /* ACTION_SERVER_HOME */);
|
|
5768
5927
|
}, [env]);
|
|
5769
5928
|
return {
|
|
@@ -5780,11 +5939,11 @@ function useActionService() {
|
|
|
5780
5939
|
}
|
|
5781
5940
|
|
|
5782
5941
|
// src/services/auth-service/index.ts
|
|
5783
|
-
import { useCallback as
|
|
5942
|
+
import { useCallback as useCallback68 } from "react";
|
|
5784
5943
|
function useAuthService() {
|
|
5785
5944
|
const { env } = useEnv();
|
|
5786
5945
|
const supabase = useSupabaseOptional();
|
|
5787
|
-
const login =
|
|
5946
|
+
const login = useCallback68(
|
|
5788
5947
|
async (body) => {
|
|
5789
5948
|
const payload = Object.fromEntries(
|
|
5790
5949
|
Object.entries({
|
|
@@ -5809,7 +5968,7 @@ function useAuthService() {
|
|
|
5809
5968
|
},
|
|
5810
5969
|
[env]
|
|
5811
5970
|
);
|
|
5812
|
-
const loginTenantUser =
|
|
5971
|
+
const loginTenantUser = useCallback68(
|
|
5813
5972
|
async (body) => {
|
|
5814
5973
|
const payload = {
|
|
5815
5974
|
email: body.email,
|
|
@@ -5824,7 +5983,7 @@ function useAuthService() {
|
|
|
5824
5983
|
},
|
|
5825
5984
|
[env]
|
|
5826
5985
|
);
|
|
5827
|
-
const forgotPassword =
|
|
5986
|
+
const forgotPassword = useCallback68(
|
|
5828
5987
|
async (email) => {
|
|
5829
5988
|
const bodyData = {
|
|
5830
5989
|
login: email,
|
|
@@ -5838,7 +5997,7 @@ function useAuthService() {
|
|
|
5838
5997
|
},
|
|
5839
5998
|
[env]
|
|
5840
5999
|
);
|
|
5841
|
-
const forgotPasswordSSO =
|
|
6000
|
+
const forgotPasswordSSO = useCallback68(
|
|
5842
6001
|
async ({
|
|
5843
6002
|
email,
|
|
5844
6003
|
with_context,
|
|
@@ -5861,7 +6020,7 @@ function useAuthService() {
|
|
|
5861
6020
|
},
|
|
5862
6021
|
[env]
|
|
5863
6022
|
);
|
|
5864
|
-
const resetPassword =
|
|
6023
|
+
const resetPassword = useCallback68(
|
|
5865
6024
|
async (data, token) => {
|
|
5866
6025
|
const bodyData = {
|
|
5867
6026
|
token,
|
|
@@ -5876,7 +6035,7 @@ function useAuthService() {
|
|
|
5876
6035
|
},
|
|
5877
6036
|
[env]
|
|
5878
6037
|
);
|
|
5879
|
-
const resetPasswordSSO =
|
|
6038
|
+
const resetPasswordSSO = useCallback68(
|
|
5880
6039
|
async ({
|
|
5881
6040
|
method,
|
|
5882
6041
|
password,
|
|
@@ -5899,7 +6058,7 @@ function useAuthService() {
|
|
|
5899
6058
|
},
|
|
5900
6059
|
[env]
|
|
5901
6060
|
);
|
|
5902
|
-
const updatePassword =
|
|
6061
|
+
const updatePassword = useCallback68(
|
|
5903
6062
|
async (data, token) => {
|
|
5904
6063
|
const bodyData = {
|
|
5905
6064
|
token,
|
|
@@ -5914,7 +6073,7 @@ function useAuthService() {
|
|
|
5914
6073
|
},
|
|
5915
6074
|
[env]
|
|
5916
6075
|
);
|
|
5917
|
-
const isValidToken =
|
|
6076
|
+
const isValidToken = useCallback68(
|
|
5918
6077
|
async (token) => {
|
|
5919
6078
|
const bodyData = {
|
|
5920
6079
|
token
|
|
@@ -5927,7 +6086,7 @@ function useAuthService() {
|
|
|
5927
6086
|
},
|
|
5928
6087
|
[env]
|
|
5929
6088
|
);
|
|
5930
|
-
const isValidActionToken =
|
|
6089
|
+
const isValidActionToken = useCallback68(
|
|
5931
6090
|
async (actionToken) => {
|
|
5932
6091
|
const bodyData = {};
|
|
5933
6092
|
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
@@ -5940,7 +6099,7 @@ function useAuthService() {
|
|
|
5940
6099
|
},
|
|
5941
6100
|
[env]
|
|
5942
6101
|
);
|
|
5943
|
-
const loginSocial =
|
|
6102
|
+
const loginSocial = useCallback68(
|
|
5944
6103
|
async ({
|
|
5945
6104
|
db,
|
|
5946
6105
|
state,
|
|
@@ -5958,13 +6117,13 @@ function useAuthService() {
|
|
|
5958
6117
|
},
|
|
5959
6118
|
[env]
|
|
5960
6119
|
);
|
|
5961
|
-
const getProviders =
|
|
6120
|
+
const getProviders = useCallback68(
|
|
5962
6121
|
async (db) => {
|
|
5963
6122
|
return env?.requests?.get("/oauth/providers", { params: { db } });
|
|
5964
6123
|
},
|
|
5965
6124
|
[env]
|
|
5966
6125
|
);
|
|
5967
|
-
const getAccessByCode =
|
|
6126
|
+
const getAccessByCode = useCallback68(
|
|
5968
6127
|
async (code) => {
|
|
5969
6128
|
const data = new URLSearchParams();
|
|
5970
6129
|
data.append("code", code);
|
|
@@ -5984,7 +6143,7 @@ function useAuthService() {
|
|
|
5984
6143
|
},
|
|
5985
6144
|
[env]
|
|
5986
6145
|
);
|
|
5987
|
-
const logout =
|
|
6146
|
+
const logout = useCallback68(
|
|
5988
6147
|
async (service) => {
|
|
5989
6148
|
return env?.requests?.post(
|
|
5990
6149
|
"/logout" /* LOGOUT */,
|
|
@@ -6001,7 +6160,7 @@ function useAuthService() {
|
|
|
6001
6160
|
},
|
|
6002
6161
|
[env]
|
|
6003
6162
|
);
|
|
6004
|
-
const getTenantMapping =
|
|
6163
|
+
const getTenantMapping = useCallback68(
|
|
6005
6164
|
async ({ shortName, service }) => {
|
|
6006
6165
|
const bodyData = {
|
|
6007
6166
|
short_name: shortName
|
|
@@ -6019,7 +6178,7 @@ function useAuthService() {
|
|
|
6019
6178
|
},
|
|
6020
6179
|
[env]
|
|
6021
6180
|
);
|
|
6022
|
-
const getToken =
|
|
6181
|
+
const getToken = useCallback68(
|
|
6023
6182
|
async ({
|
|
6024
6183
|
phone,
|
|
6025
6184
|
name,
|
|
@@ -6064,10 +6223,10 @@ function useAuthService() {
|
|
|
6064
6223
|
}
|
|
6065
6224
|
|
|
6066
6225
|
// src/services/company-service/index.ts
|
|
6067
|
-
import { useCallback as
|
|
6226
|
+
import { useCallback as useCallback69 } from "react";
|
|
6068
6227
|
function useCompanyService() {
|
|
6069
6228
|
const { env } = useEnv();
|
|
6070
|
-
const getCurrentCompany =
|
|
6229
|
+
const getCurrentCompany = useCallback69(
|
|
6071
6230
|
async (service, extraHeaders) => {
|
|
6072
6231
|
return await env.requests.get(
|
|
6073
6232
|
"/company" /* COMPANY_PATH */,
|
|
@@ -6084,7 +6243,7 @@ function useCompanyService() {
|
|
|
6084
6243
|
},
|
|
6085
6244
|
[env]
|
|
6086
6245
|
);
|
|
6087
|
-
const getInfoCompany =
|
|
6246
|
+
const getInfoCompany = useCallback69(
|
|
6088
6247
|
async (id, service) => {
|
|
6089
6248
|
const jsonData = {
|
|
6090
6249
|
ids: [id],
|
|
@@ -6120,10 +6279,10 @@ function useCompanyService() {
|
|
|
6120
6279
|
}
|
|
6121
6280
|
|
|
6122
6281
|
// src/services/excel-service/index.ts
|
|
6123
|
-
import { useCallback as
|
|
6282
|
+
import { useCallback as useCallback70 } from "react";
|
|
6124
6283
|
function useExcelService() {
|
|
6125
6284
|
const { env } = useEnv();
|
|
6126
|
-
const uploadFileExcel =
|
|
6285
|
+
const uploadFileExcel = useCallback70(
|
|
6127
6286
|
async ({
|
|
6128
6287
|
formData,
|
|
6129
6288
|
service,
|
|
@@ -6140,7 +6299,7 @@ function useExcelService() {
|
|
|
6140
6299
|
},
|
|
6141
6300
|
[env]
|
|
6142
6301
|
);
|
|
6143
|
-
const uploadIdFile =
|
|
6302
|
+
const uploadIdFile = useCallback70(
|
|
6144
6303
|
async ({
|
|
6145
6304
|
formData,
|
|
6146
6305
|
service,
|
|
@@ -6157,7 +6316,7 @@ function useExcelService() {
|
|
|
6157
6316
|
},
|
|
6158
6317
|
[env]
|
|
6159
6318
|
);
|
|
6160
|
-
const parsePreview =
|
|
6319
|
+
const parsePreview = useCallback70(
|
|
6161
6320
|
async ({
|
|
6162
6321
|
id,
|
|
6163
6322
|
selectedSheet,
|
|
@@ -6206,7 +6365,7 @@ function useExcelService() {
|
|
|
6206
6365
|
},
|
|
6207
6366
|
[env]
|
|
6208
6367
|
);
|
|
6209
|
-
const executeImport =
|
|
6368
|
+
const executeImport = useCallback70(
|
|
6210
6369
|
async ({
|
|
6211
6370
|
columns,
|
|
6212
6371
|
fields,
|
|
@@ -6240,7 +6399,7 @@ function useExcelService() {
|
|
|
6240
6399
|
},
|
|
6241
6400
|
[env]
|
|
6242
6401
|
);
|
|
6243
|
-
const getFileExcel =
|
|
6402
|
+
const getFileExcel = useCallback70(
|
|
6244
6403
|
async ({
|
|
6245
6404
|
model,
|
|
6246
6405
|
service,
|
|
@@ -6264,7 +6423,7 @@ function useExcelService() {
|
|
|
6264
6423
|
},
|
|
6265
6424
|
[env]
|
|
6266
6425
|
);
|
|
6267
|
-
const getFieldExport =
|
|
6426
|
+
const getFieldExport = useCallback70(
|
|
6268
6427
|
async ({
|
|
6269
6428
|
ids,
|
|
6270
6429
|
model,
|
|
@@ -6304,7 +6463,7 @@ function useExcelService() {
|
|
|
6304
6463
|
},
|
|
6305
6464
|
[env]
|
|
6306
6465
|
);
|
|
6307
|
-
const exportExcel =
|
|
6466
|
+
const exportExcel = useCallback70(
|
|
6308
6467
|
async ({
|
|
6309
6468
|
model,
|
|
6310
6469
|
domain,
|
|
@@ -6352,10 +6511,10 @@ function useExcelService() {
|
|
|
6352
6511
|
}
|
|
6353
6512
|
|
|
6354
6513
|
// src/services/form-service/index.ts
|
|
6355
|
-
import { useCallback as
|
|
6514
|
+
import { useCallback as useCallback71 } from "react";
|
|
6356
6515
|
function useFormService() {
|
|
6357
6516
|
const { env } = useEnv();
|
|
6358
|
-
const getComment =
|
|
6517
|
+
const getComment = useCallback71(
|
|
6359
6518
|
async ({ data }) => {
|
|
6360
6519
|
const jsonData = {
|
|
6361
6520
|
thread_id: data.thread_id,
|
|
@@ -6373,7 +6532,7 @@ function useFormService() {
|
|
|
6373
6532
|
},
|
|
6374
6533
|
[env]
|
|
6375
6534
|
);
|
|
6376
|
-
const getThreadData =
|
|
6535
|
+
const getThreadData = useCallback71(
|
|
6377
6536
|
async ({
|
|
6378
6537
|
data,
|
|
6379
6538
|
xNode,
|
|
@@ -6400,7 +6559,7 @@ function useFormService() {
|
|
|
6400
6559
|
},
|
|
6401
6560
|
[env]
|
|
6402
6561
|
);
|
|
6403
|
-
const getThreadMessages =
|
|
6562
|
+
const getThreadMessages = useCallback71(
|
|
6404
6563
|
async ({
|
|
6405
6564
|
data,
|
|
6406
6565
|
xNode,
|
|
@@ -6426,7 +6585,7 @@ function useFormService() {
|
|
|
6426
6585
|
},
|
|
6427
6586
|
[env]
|
|
6428
6587
|
);
|
|
6429
|
-
const sentComment =
|
|
6588
|
+
const sentComment = useCallback71(
|
|
6430
6589
|
async ({ data }) => {
|
|
6431
6590
|
const jsonData = {
|
|
6432
6591
|
context: {
|
|
@@ -6454,7 +6613,7 @@ function useFormService() {
|
|
|
6454
6613
|
},
|
|
6455
6614
|
[env]
|
|
6456
6615
|
);
|
|
6457
|
-
const deleteComment =
|
|
6616
|
+
const deleteComment = useCallback71(
|
|
6458
6617
|
async ({ data }) => {
|
|
6459
6618
|
const jsonData = {
|
|
6460
6619
|
attachment_ids: [],
|
|
@@ -6470,7 +6629,7 @@ function useFormService() {
|
|
|
6470
6629
|
},
|
|
6471
6630
|
[env]
|
|
6472
6631
|
);
|
|
6473
|
-
const getImage =
|
|
6632
|
+
const getImage = useCallback71(
|
|
6474
6633
|
async ({ data }) => {
|
|
6475
6634
|
return env.requests.get(
|
|
6476
6635
|
`${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
|
|
@@ -6483,7 +6642,7 @@ function useFormService() {
|
|
|
6483
6642
|
},
|
|
6484
6643
|
[env]
|
|
6485
6644
|
);
|
|
6486
|
-
const uploadImage =
|
|
6645
|
+
const uploadImage = useCallback71(
|
|
6487
6646
|
async ({
|
|
6488
6647
|
formData,
|
|
6489
6648
|
service,
|
|
@@ -6502,7 +6661,7 @@ function useFormService() {
|
|
|
6502
6661
|
},
|
|
6503
6662
|
[env]
|
|
6504
6663
|
);
|
|
6505
|
-
const uploadFile =
|
|
6664
|
+
const uploadFile = useCallback71(
|
|
6506
6665
|
async ({
|
|
6507
6666
|
formData,
|
|
6508
6667
|
service,
|
|
@@ -6522,7 +6681,7 @@ function useFormService() {
|
|
|
6522
6681
|
},
|
|
6523
6682
|
[env]
|
|
6524
6683
|
);
|
|
6525
|
-
const getFormView =
|
|
6684
|
+
const getFormView = useCallback71(
|
|
6526
6685
|
async ({ data }) => {
|
|
6527
6686
|
const jsonData = {
|
|
6528
6687
|
model: data.model,
|
|
@@ -6538,7 +6697,7 @@ function useFormService() {
|
|
|
6538
6697
|
},
|
|
6539
6698
|
[env]
|
|
6540
6699
|
);
|
|
6541
|
-
const changeStatus =
|
|
6700
|
+
const changeStatus = useCallback71(
|
|
6542
6701
|
async ({ data }) => {
|
|
6543
6702
|
const vals = {
|
|
6544
6703
|
[data.name]: data.stage_id
|
|
@@ -6567,7 +6726,7 @@ function useFormService() {
|
|
|
6567
6726
|
},
|
|
6568
6727
|
[env]
|
|
6569
6728
|
);
|
|
6570
|
-
const getExternalTab =
|
|
6729
|
+
const getExternalTab = useCallback71(
|
|
6571
6730
|
async ({ method, context, service, xNode }) => {
|
|
6572
6731
|
return env?.requests?.post(
|
|
6573
6732
|
"/call" /* CALL_PATH */,
|
|
@@ -6602,10 +6761,10 @@ function useFormService() {
|
|
|
6602
6761
|
}
|
|
6603
6762
|
|
|
6604
6763
|
// src/services/kanban-service/index.ts
|
|
6605
|
-
import { useCallback as
|
|
6764
|
+
import { useCallback as useCallback72 } from "react";
|
|
6606
6765
|
function useKanbanService() {
|
|
6607
6766
|
const { env } = useEnv();
|
|
6608
|
-
const getGroups =
|
|
6767
|
+
const getGroups = useCallback72(
|
|
6609
6768
|
async ({ model, width_context }) => {
|
|
6610
6769
|
const jsonData = {
|
|
6611
6770
|
model,
|
|
@@ -6625,7 +6784,7 @@ function useKanbanService() {
|
|
|
6625
6784
|
},
|
|
6626
6785
|
[env]
|
|
6627
6786
|
);
|
|
6628
|
-
const getProgressBar =
|
|
6787
|
+
const getProgressBar = useCallback72(
|
|
6629
6788
|
async ({ field, color, model, width_context }) => {
|
|
6630
6789
|
const jsonData = {
|
|
6631
6790
|
model,
|
|
@@ -6655,10 +6814,10 @@ function useKanbanService() {
|
|
|
6655
6814
|
}
|
|
6656
6815
|
|
|
6657
6816
|
// src/services/model-service/index.ts
|
|
6658
|
-
import { useCallback as
|
|
6817
|
+
import { useCallback as useCallback73 } from "react";
|
|
6659
6818
|
function useModelService() {
|
|
6660
6819
|
const { env } = useEnv();
|
|
6661
|
-
const getListMyBankAccount =
|
|
6820
|
+
const getListMyBankAccount = useCallback73(
|
|
6662
6821
|
async ({
|
|
6663
6822
|
domain,
|
|
6664
6823
|
spectification,
|
|
@@ -6682,7 +6841,7 @@ function useModelService() {
|
|
|
6682
6841
|
},
|
|
6683
6842
|
[env]
|
|
6684
6843
|
);
|
|
6685
|
-
const getCurrency =
|
|
6844
|
+
const getCurrency = useCallback73(async () => {
|
|
6686
6845
|
const jsonData = {
|
|
6687
6846
|
model: "res.currency",
|
|
6688
6847
|
method: "web_search_read",
|
|
@@ -6702,7 +6861,7 @@ function useModelService() {
|
|
|
6702
6861
|
}
|
|
6703
6862
|
});
|
|
6704
6863
|
}, [env]);
|
|
6705
|
-
const getConversionRate =
|
|
6864
|
+
const getConversionRate = useCallback73(async () => {
|
|
6706
6865
|
const jsonData = {
|
|
6707
6866
|
model: "res.currency",
|
|
6708
6867
|
method: "web_search_read",
|
|
@@ -6728,7 +6887,7 @@ function useModelService() {
|
|
|
6728
6887
|
}
|
|
6729
6888
|
});
|
|
6730
6889
|
}, [env]);
|
|
6731
|
-
const getAll =
|
|
6890
|
+
const getAll = useCallback73(
|
|
6732
6891
|
async ({
|
|
6733
6892
|
data,
|
|
6734
6893
|
service,
|
|
@@ -6770,7 +6929,7 @@ function useModelService() {
|
|
|
6770
6929
|
},
|
|
6771
6930
|
[env]
|
|
6772
6931
|
);
|
|
6773
|
-
const getListCalendar =
|
|
6932
|
+
const getListCalendar = useCallback73(
|
|
6774
6933
|
async ({ data }) => {
|
|
6775
6934
|
const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
6776
6935
|
fields: data.fields,
|
|
@@ -6801,7 +6960,7 @@ function useModelService() {
|
|
|
6801
6960
|
},
|
|
6802
6961
|
[env]
|
|
6803
6962
|
);
|
|
6804
|
-
const getList =
|
|
6963
|
+
const getList = useCallback73(
|
|
6805
6964
|
async ({
|
|
6806
6965
|
model,
|
|
6807
6966
|
ids = [],
|
|
@@ -6833,7 +6992,7 @@ function useModelService() {
|
|
|
6833
6992
|
},
|
|
6834
6993
|
[env]
|
|
6835
6994
|
);
|
|
6836
|
-
const getDetail =
|
|
6995
|
+
const getDetail = useCallback73(
|
|
6837
6996
|
async ({
|
|
6838
6997
|
ids = [],
|
|
6839
6998
|
model,
|
|
@@ -6865,7 +7024,7 @@ function useModelService() {
|
|
|
6865
7024
|
},
|
|
6866
7025
|
[env]
|
|
6867
7026
|
);
|
|
6868
|
-
const save =
|
|
7027
|
+
const save = useCallback73(
|
|
6869
7028
|
async ({
|
|
6870
7029
|
model,
|
|
6871
7030
|
ids = [],
|
|
@@ -6900,7 +7059,7 @@ function useModelService() {
|
|
|
6900
7059
|
},
|
|
6901
7060
|
[env]
|
|
6902
7061
|
);
|
|
6903
|
-
const deleteApi =
|
|
7062
|
+
const deleteApi = useCallback73(
|
|
6904
7063
|
async ({ ids = [], model, service }) => {
|
|
6905
7064
|
const jsonData = {
|
|
6906
7065
|
model,
|
|
@@ -6920,7 +7079,7 @@ function useModelService() {
|
|
|
6920
7079
|
},
|
|
6921
7080
|
[env]
|
|
6922
7081
|
);
|
|
6923
|
-
const onChange =
|
|
7082
|
+
const onChange = useCallback73(
|
|
6924
7083
|
async ({
|
|
6925
7084
|
ids = [],
|
|
6926
7085
|
model,
|
|
@@ -6956,7 +7115,7 @@ function useModelService() {
|
|
|
6956
7115
|
},
|
|
6957
7116
|
[env]
|
|
6958
7117
|
);
|
|
6959
|
-
const getListFieldsOnchange =
|
|
7118
|
+
const getListFieldsOnchange = useCallback73(
|
|
6960
7119
|
async ({
|
|
6961
7120
|
model,
|
|
6962
7121
|
service,
|
|
@@ -6980,7 +7139,7 @@ function useModelService() {
|
|
|
6980
7139
|
},
|
|
6981
7140
|
[env]
|
|
6982
7141
|
);
|
|
6983
|
-
const parseORMOdoo =
|
|
7142
|
+
const parseORMOdoo = useCallback73((data) => {
|
|
6984
7143
|
for (const key in data) {
|
|
6985
7144
|
if (key === "display_name") {
|
|
6986
7145
|
delete data[key];
|
|
@@ -6991,7 +7150,7 @@ function useModelService() {
|
|
|
6991
7150
|
}
|
|
6992
7151
|
return { ...data };
|
|
6993
7152
|
}, []);
|
|
6994
|
-
const toDataJS =
|
|
7153
|
+
const toDataJS = useCallback73(
|
|
6995
7154
|
(data, viewData, model) => {
|
|
6996
7155
|
for (const key in data) {
|
|
6997
7156
|
if (data[key] === false) {
|
|
@@ -7049,10 +7208,10 @@ function useModelService() {
|
|
|
7049
7208
|
}
|
|
7050
7209
|
|
|
7051
7210
|
// src/services/user-service/index.ts
|
|
7052
|
-
import { useCallback as
|
|
7211
|
+
import { useCallback as useCallback74 } from "react";
|
|
7053
7212
|
function useUserService() {
|
|
7054
7213
|
const { env } = useEnv();
|
|
7055
|
-
const getProfile =
|
|
7214
|
+
const getProfile = useCallback74(
|
|
7056
7215
|
async (service, path, extraHeaders) => {
|
|
7057
7216
|
return env?.requests?.get(
|
|
7058
7217
|
path || "/userinfo" /* PROFILE_PATH */,
|
|
@@ -7069,7 +7228,7 @@ function useUserService() {
|
|
|
7069
7228
|
},
|
|
7070
7229
|
[env]
|
|
7071
7230
|
);
|
|
7072
|
-
const getUser =
|
|
7231
|
+
const getUser = useCallback74(
|
|
7073
7232
|
async ({ context, id }) => {
|
|
7074
7233
|
const jsonData = {
|
|
7075
7234
|
model: "res.users",
|
|
@@ -7107,7 +7266,7 @@ function useUserService() {
|
|
|
7107
7266
|
},
|
|
7108
7267
|
[env]
|
|
7109
7268
|
);
|
|
7110
|
-
const switchUserLocale =
|
|
7269
|
+
const switchUserLocale = useCallback74(
|
|
7111
7270
|
async ({ id, values, service }) => {
|
|
7112
7271
|
const jsonData = {
|
|
7113
7272
|
model: "res.users",
|
|
@@ -7135,10 +7294,10 @@ function useUserService() {
|
|
|
7135
7294
|
}
|
|
7136
7295
|
|
|
7137
7296
|
// src/services/view-service/index.ts
|
|
7138
|
-
import { useCallback as
|
|
7297
|
+
import { useCallback as useCallback75 } from "react";
|
|
7139
7298
|
function useViewService() {
|
|
7140
7299
|
const { env } = useEnv();
|
|
7141
|
-
const getView =
|
|
7300
|
+
const getView = useCallback75(
|
|
7142
7301
|
async ({
|
|
7143
7302
|
model,
|
|
7144
7303
|
views,
|
|
@@ -7178,7 +7337,7 @@ function useViewService() {
|
|
|
7178
7337
|
},
|
|
7179
7338
|
[env]
|
|
7180
7339
|
);
|
|
7181
|
-
const getMenu =
|
|
7340
|
+
const getMenu = useCallback75(
|
|
7182
7341
|
async (context, specification, domain, service) => {
|
|
7183
7342
|
const jsonData = {
|
|
7184
7343
|
model: "ir.ui.menu" /* MENU */,
|
|
@@ -7209,7 +7368,7 @@ function useViewService() {
|
|
|
7209
7368
|
},
|
|
7210
7369
|
[env]
|
|
7211
7370
|
);
|
|
7212
|
-
const getActionDetail =
|
|
7371
|
+
const getActionDetail = useCallback75(
|
|
7213
7372
|
async (aid, context) => {
|
|
7214
7373
|
const jsonData = {
|
|
7215
7374
|
model: "ir.actions.act_window" /* WINDOW_ACTION */,
|
|
@@ -7239,7 +7398,7 @@ function useViewService() {
|
|
|
7239
7398
|
},
|
|
7240
7399
|
[env]
|
|
7241
7400
|
);
|
|
7242
|
-
const getResequence =
|
|
7401
|
+
const getResequence = useCallback75(
|
|
7243
7402
|
async ({
|
|
7244
7403
|
model,
|
|
7245
7404
|
ids,
|
|
@@ -7269,7 +7428,7 @@ function useViewService() {
|
|
|
7269
7428
|
},
|
|
7270
7429
|
[env]
|
|
7271
7430
|
);
|
|
7272
|
-
const getSelectionItem =
|
|
7431
|
+
const getSelectionItem = useCallback75(
|
|
7273
7432
|
async ({
|
|
7274
7433
|
data,
|
|
7275
7434
|
service,
|
|
@@ -7306,7 +7465,7 @@ function useViewService() {
|
|
|
7306
7465
|
},
|
|
7307
7466
|
[env]
|
|
7308
7467
|
);
|
|
7309
|
-
const loadMessages =
|
|
7468
|
+
const loadMessages = useCallback75(async () => {
|
|
7310
7469
|
return env.requests.post(
|
|
7311
7470
|
"/load_message_failures" /* LOAD_MESSAGE */,
|
|
7312
7471
|
{},
|
|
@@ -7317,14 +7476,14 @@ function useViewService() {
|
|
|
7317
7476
|
}
|
|
7318
7477
|
);
|
|
7319
7478
|
}, [env]);
|
|
7320
|
-
const getVersion =
|
|
7479
|
+
const getVersion = useCallback75(async () => {
|
|
7321
7480
|
return env?.requests?.get("", {
|
|
7322
7481
|
headers: {
|
|
7323
7482
|
"Content-Type": "application/json"
|
|
7324
7483
|
}
|
|
7325
7484
|
});
|
|
7326
7485
|
}, [env]);
|
|
7327
|
-
const grantAccess =
|
|
7486
|
+
const grantAccess = useCallback75(
|
|
7328
7487
|
async ({
|
|
7329
7488
|
redirect_uri,
|
|
7330
7489
|
state,
|
|
@@ -7351,7 +7510,7 @@ function useViewService() {
|
|
|
7351
7510
|
},
|
|
7352
7511
|
[env]
|
|
7353
7512
|
);
|
|
7354
|
-
const removeTotpSetUp =
|
|
7513
|
+
const removeTotpSetUp = useCallback75(
|
|
7355
7514
|
async ({ method, token }) => {
|
|
7356
7515
|
const jsonData = {
|
|
7357
7516
|
method,
|
|
@@ -7372,7 +7531,7 @@ function useViewService() {
|
|
|
7372
7531
|
},
|
|
7373
7532
|
[env]
|
|
7374
7533
|
);
|
|
7375
|
-
const requestSetupTotp =
|
|
7534
|
+
const requestSetupTotp = useCallback75(
|
|
7376
7535
|
async ({ method, token }) => {
|
|
7377
7536
|
const jsonData = {
|
|
7378
7537
|
method,
|
|
@@ -7391,7 +7550,7 @@ function useViewService() {
|
|
|
7391
7550
|
},
|
|
7392
7551
|
[env]
|
|
7393
7552
|
);
|
|
7394
|
-
const settingsWebRead2fa =
|
|
7553
|
+
const settingsWebRead2fa = useCallback75(
|
|
7395
7554
|
async ({
|
|
7396
7555
|
method,
|
|
7397
7556
|
model,
|
|
@@ -7419,7 +7578,7 @@ function useViewService() {
|
|
|
7419
7578
|
},
|
|
7420
7579
|
[env]
|
|
7421
7580
|
);
|
|
7422
|
-
const signInSSO =
|
|
7581
|
+
const signInSSO = useCallback75(
|
|
7423
7582
|
async ({
|
|
7424
7583
|
redirect_uri,
|
|
7425
7584
|
state,
|
|
@@ -7451,7 +7610,7 @@ function useViewService() {
|
|
|
7451
7610
|
},
|
|
7452
7611
|
[env]
|
|
7453
7612
|
);
|
|
7454
|
-
const verify2FA =
|
|
7613
|
+
const verify2FA = useCallback75(
|
|
7455
7614
|
({
|
|
7456
7615
|
method,
|
|
7457
7616
|
with_context,
|
|
@@ -7484,7 +7643,7 @@ function useViewService() {
|
|
|
7484
7643
|
},
|
|
7485
7644
|
[env]
|
|
7486
7645
|
);
|
|
7487
|
-
const get2FAMethods =
|
|
7646
|
+
const get2FAMethods = useCallback75(
|
|
7488
7647
|
({ method, with_context }) => {
|
|
7489
7648
|
const jsonData = {
|
|
7490
7649
|
method,
|
|
@@ -7503,7 +7662,7 @@ function useViewService() {
|
|
|
7503
7662
|
},
|
|
7504
7663
|
[env]
|
|
7505
7664
|
);
|
|
7506
|
-
const verifyTotp =
|
|
7665
|
+
const verifyTotp = useCallback75(
|
|
7507
7666
|
({
|
|
7508
7667
|
method,
|
|
7509
7668
|
action_token,
|
|
@@ -7528,7 +7687,7 @@ function useViewService() {
|
|
|
7528
7687
|
},
|
|
7529
7688
|
[env]
|
|
7530
7689
|
);
|
|
7531
|
-
const getNotifications =
|
|
7690
|
+
const getNotifications = useCallback75(
|
|
7532
7691
|
async ({
|
|
7533
7692
|
service,
|
|
7534
7693
|
xNode,
|
|
@@ -7548,7 +7707,7 @@ function useViewService() {
|
|
|
7548
7707
|
},
|
|
7549
7708
|
[env]
|
|
7550
7709
|
);
|
|
7551
|
-
const getCountry =
|
|
7710
|
+
const getCountry = useCallback75(
|
|
7552
7711
|
async ({
|
|
7553
7712
|
service,
|
|
7554
7713
|
xNode,
|
|
@@ -7575,7 +7734,7 @@ function useViewService() {
|
|
|
7575
7734
|
},
|
|
7576
7735
|
[env]
|
|
7577
7736
|
);
|
|
7578
|
-
const getCity =
|
|
7737
|
+
const getCity = useCallback75(
|
|
7579
7738
|
async ({
|
|
7580
7739
|
service,
|
|
7581
7740
|
xNode,
|
|
@@ -7602,7 +7761,7 @@ function useViewService() {
|
|
|
7602
7761
|
},
|
|
7603
7762
|
[env]
|
|
7604
7763
|
);
|
|
7605
|
-
const getWard =
|
|
7764
|
+
const getWard = useCallback75(
|
|
7606
7765
|
async ({
|
|
7607
7766
|
service,
|
|
7608
7767
|
xNode,
|
|
@@ -7627,7 +7786,7 @@ function useViewService() {
|
|
|
7627
7786
|
},
|
|
7628
7787
|
[env]
|
|
7629
7788
|
);
|
|
7630
|
-
const getPartnerTitle =
|
|
7789
|
+
const getPartnerTitle = useCallback75(
|
|
7631
7790
|
async ({
|
|
7632
7791
|
service,
|
|
7633
7792
|
xNode,
|
|
@@ -7679,10 +7838,10 @@ function useViewService() {
|
|
|
7679
7838
|
}
|
|
7680
7839
|
|
|
7681
7840
|
// src/services/dashboard-service/index.ts
|
|
7682
|
-
import { useCallback as
|
|
7841
|
+
import { useCallback as useCallback76 } from "react";
|
|
7683
7842
|
function useDashboardService() {
|
|
7684
7843
|
const { env } = useEnv();
|
|
7685
|
-
const readGroup =
|
|
7844
|
+
const readGroup = useCallback76(
|
|
7686
7845
|
async ({
|
|
7687
7846
|
service,
|
|
7688
7847
|
xNode,
|
|
@@ -7699,7 +7858,7 @@ function useDashboardService() {
|
|
|
7699
7858
|
},
|
|
7700
7859
|
[env]
|
|
7701
7860
|
);
|
|
7702
|
-
const getDataChart =
|
|
7861
|
+
const getDataChart = useCallback76(
|
|
7703
7862
|
async ({
|
|
7704
7863
|
service,
|
|
7705
7864
|
xNode,
|