@fctc/interface-logic 5.0.4 → 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/hooks.d.mts +35 -1
- package/dist/hooks.d.ts +35 -1
- package/dist/hooks.js +174 -3
- package/dist/hooks.mjs +170 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +178 -3
- package/dist/index.mjs +174 -3
- package/dist/provider.d.mts +5 -1
- package/dist/provider.d.ts +5 -1
- package/dist/provider.js +191 -24
- package/dist/provider.mjs +180 -13
- package/dist/services.d.mts +34 -0
- package/dist/services.d.ts +34 -0
- package/dist/services.js +233 -98
- package/dist/services.mjs +230 -95
- 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_react73 = require("react");
|
|
49
49
|
|
|
50
50
|
// src/constants/api/uri-constant.ts
|
|
51
51
|
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
@@ -2968,7 +2968,7 @@ function useEnv() {
|
|
|
2968
2968
|
}
|
|
2969
2969
|
|
|
2970
2970
|
// src/provider/service-provider.tsx
|
|
2971
|
-
var
|
|
2971
|
+
var import_react71 = require("react");
|
|
2972
2972
|
|
|
2973
2973
|
// src/hooks/auth/use-forgot-password.ts
|
|
2974
2974
|
var import_react_query3 = require("@tanstack/react-query");
|
|
@@ -5362,6 +5362,125 @@ var getSupaCurrentUser = (env) => {
|
|
|
5362
5362
|
};
|
|
5363
5363
|
};
|
|
5364
5364
|
|
|
5365
|
+
// src/services/pos-service/supabase/update-category.ts
|
|
5366
|
+
var import_react67 = require("react");
|
|
5367
|
+
var updateCategorySupabaseService = () => {
|
|
5368
|
+
const supabase = useSupabaseOptional();
|
|
5369
|
+
const updateCategorySupabase = (0, import_react67.useCallback)(
|
|
5370
|
+
async (values) => {
|
|
5371
|
+
if (!supabase) {
|
|
5372
|
+
console.error("Supabase client not initialized");
|
|
5373
|
+
return null;
|
|
5374
|
+
}
|
|
5375
|
+
try {
|
|
5376
|
+
const { category_id, ...rest } = values;
|
|
5377
|
+
const { data, error } = await supabase.from("pos_categories" /* POS_CATEGORIES */).update(rest).eq("id", category_id).select("id").single();
|
|
5378
|
+
if (error) {
|
|
5379
|
+
console.error("Error updating category:", error);
|
|
5380
|
+
return null;
|
|
5381
|
+
}
|
|
5382
|
+
return [data.id];
|
|
5383
|
+
} catch (error) {
|
|
5384
|
+
console.error("Error updating category:", error);
|
|
5385
|
+
return null;
|
|
5386
|
+
}
|
|
5387
|
+
},
|
|
5388
|
+
[supabase]
|
|
5389
|
+
);
|
|
5390
|
+
return {
|
|
5391
|
+
updateCategorySupabase
|
|
5392
|
+
};
|
|
5393
|
+
};
|
|
5394
|
+
|
|
5395
|
+
// src/services/pos-service/supabase/delete-category.ts
|
|
5396
|
+
var import_react68 = require("react");
|
|
5397
|
+
var deleteCategorySupabaseService = () => {
|
|
5398
|
+
const supabase = useSupabaseOptional();
|
|
5399
|
+
const deleteCategorySupabase = (0, import_react68.useCallback)(
|
|
5400
|
+
async (values) => {
|
|
5401
|
+
if (!supabase) {
|
|
5402
|
+
console.error("Supabase client not initialized");
|
|
5403
|
+
return null;
|
|
5404
|
+
}
|
|
5405
|
+
try {
|
|
5406
|
+
const { error } = await supabase.from("pos_categories" /* POS_CATEGORIES */).delete().eq("id", values.category_id);
|
|
5407
|
+
if (error) {
|
|
5408
|
+
console.error("Error deleting category:", error);
|
|
5409
|
+
return null;
|
|
5410
|
+
}
|
|
5411
|
+
return [values.category_id];
|
|
5412
|
+
} catch (error) {
|
|
5413
|
+
console.error("Error deleting category:", error);
|
|
5414
|
+
return null;
|
|
5415
|
+
}
|
|
5416
|
+
},
|
|
5417
|
+
[supabase]
|
|
5418
|
+
);
|
|
5419
|
+
return {
|
|
5420
|
+
deleteCategorySupabase
|
|
5421
|
+
};
|
|
5422
|
+
};
|
|
5423
|
+
|
|
5424
|
+
// src/services/pos-service/supabase/update-product.ts
|
|
5425
|
+
var import_react69 = require("react");
|
|
5426
|
+
var updateProductSupabaseService = () => {
|
|
5427
|
+
const supabase = useSupabaseOptional();
|
|
5428
|
+
const updateProductSupabase = (0, import_react69.useCallback)(
|
|
5429
|
+
async (values) => {
|
|
5430
|
+
if (!supabase) {
|
|
5431
|
+
console.error("Supabase client not initialized");
|
|
5432
|
+
return null;
|
|
5433
|
+
}
|
|
5434
|
+
try {
|
|
5435
|
+
const { product_id, ...rest } = values;
|
|
5436
|
+
const updateData = cleanObject(rest);
|
|
5437
|
+
const { data, error } = await supabase.from("products" /* PRODUCTS */).update(updateData).eq("id", product_id).select("id").single();
|
|
5438
|
+
if (error) {
|
|
5439
|
+
console.error("Error updating product:", error);
|
|
5440
|
+
return null;
|
|
5441
|
+
}
|
|
5442
|
+
return [data.id];
|
|
5443
|
+
} catch (error) {
|
|
5444
|
+
console.error("Error updating product:", error);
|
|
5445
|
+
return null;
|
|
5446
|
+
}
|
|
5447
|
+
},
|
|
5448
|
+
[supabase]
|
|
5449
|
+
);
|
|
5450
|
+
return {
|
|
5451
|
+
updateProductSupabase
|
|
5452
|
+
};
|
|
5453
|
+
};
|
|
5454
|
+
|
|
5455
|
+
// src/services/pos-service/supabase/delete-product.ts
|
|
5456
|
+
var import_react70 = require("react");
|
|
5457
|
+
var deleteProductSupabaseService = () => {
|
|
5458
|
+
const supabase = useSupabaseOptional();
|
|
5459
|
+
const deleteProductSupabase = (0, import_react70.useCallback)(
|
|
5460
|
+
async (values) => {
|
|
5461
|
+
if (!supabase) {
|
|
5462
|
+
console.error("Supabase client not initialized");
|
|
5463
|
+
return null;
|
|
5464
|
+
}
|
|
5465
|
+
try {
|
|
5466
|
+
const { error } = await supabase.from("products" /* PRODUCTS */).delete().eq("id", values.product_id);
|
|
5467
|
+
if (error) {
|
|
5468
|
+
console.error("Error deleting product:", error);
|
|
5469
|
+
return null;
|
|
5470
|
+
}
|
|
5471
|
+
return [values.product_id];
|
|
5472
|
+
} catch (error) {
|
|
5473
|
+
console.error("Error deleting product:", error);
|
|
5474
|
+
return null;
|
|
5475
|
+
}
|
|
5476
|
+
},
|
|
5477
|
+
[supabase]
|
|
5478
|
+
);
|
|
5479
|
+
return {
|
|
5480
|
+
deleteProductSupabase
|
|
5481
|
+
};
|
|
5482
|
+
};
|
|
5483
|
+
|
|
5365
5484
|
// src/services/pos-service/index.ts
|
|
5366
5485
|
var serviceFactories = [
|
|
5367
5486
|
addEntityService,
|
|
@@ -5423,7 +5542,11 @@ var serviceFactories = [
|
|
|
5423
5542
|
getStatesSupabaseService,
|
|
5424
5543
|
getWardsSupabaseService,
|
|
5425
5544
|
getPartnerTitlesSupabaseService,
|
|
5426
|
-
getSupaCurrentUser
|
|
5545
|
+
getSupaCurrentUser,
|
|
5546
|
+
updateCategorySupabaseService,
|
|
5547
|
+
deleteCategorySupabaseService,
|
|
5548
|
+
updateProductSupabaseService,
|
|
5549
|
+
deleteProductSupabaseService
|
|
5427
5550
|
];
|
|
5428
5551
|
var usePosService = () => {
|
|
5429
5552
|
const { env } = useEnv();
|
|
@@ -5624,18 +5747,30 @@ var import_react_query141 = require("@tanstack/react-query");
|
|
|
5624
5747
|
// src/hooks/pos/supabase/use-get-supa-current-user.ts
|
|
5625
5748
|
var import_react_query142 = require("@tanstack/react-query");
|
|
5626
5749
|
|
|
5750
|
+
// src/hooks/pos/supabase/use-update-category.ts
|
|
5751
|
+
var import_react_query143 = require("@tanstack/react-query");
|
|
5752
|
+
|
|
5753
|
+
// src/hooks/pos/supabase/use-delete-category.ts
|
|
5754
|
+
var import_react_query144 = require("@tanstack/react-query");
|
|
5755
|
+
|
|
5756
|
+
// src/hooks/pos/supabase/use-update-product.ts
|
|
5757
|
+
var import_react_query145 = require("@tanstack/react-query");
|
|
5758
|
+
|
|
5759
|
+
// src/hooks/pos/supabase/use-delete-product.ts
|
|
5760
|
+
var import_react_query146 = require("@tanstack/react-query");
|
|
5761
|
+
|
|
5627
5762
|
// src/provider/service-provider.tsx
|
|
5628
5763
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
5629
|
-
var ServiceContext = (0,
|
|
5764
|
+
var ServiceContext = (0, import_react71.createContext)(null);
|
|
5630
5765
|
|
|
5631
5766
|
// src/provider/meta-provider.tsx
|
|
5632
|
-
var
|
|
5767
|
+
var import_react72 = require("react");
|
|
5633
5768
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
5634
5769
|
|
|
5635
5770
|
// src/services/action-service/index.ts
|
|
5636
5771
|
function useActionService() {
|
|
5637
5772
|
const { env } = useEnv();
|
|
5638
|
-
const loadAction = (0,
|
|
5773
|
+
const loadAction = (0, import_react73.useCallback)(
|
|
5639
5774
|
async ({
|
|
5640
5775
|
idAction,
|
|
5641
5776
|
context,
|
|
@@ -5659,7 +5794,7 @@ function useActionService() {
|
|
|
5659
5794
|
},
|
|
5660
5795
|
[env]
|
|
5661
5796
|
);
|
|
5662
|
-
const callButton = (0,
|
|
5797
|
+
const callButton = (0, import_react73.useCallback)(
|
|
5663
5798
|
async ({
|
|
5664
5799
|
model,
|
|
5665
5800
|
ids = [],
|
|
@@ -5693,7 +5828,7 @@ function useActionService() {
|
|
|
5693
5828
|
},
|
|
5694
5829
|
[env]
|
|
5695
5830
|
);
|
|
5696
|
-
const removeRows = (0,
|
|
5831
|
+
const removeRows = (0, import_react73.useCallback)(
|
|
5697
5832
|
async ({
|
|
5698
5833
|
model,
|
|
5699
5834
|
ids,
|
|
@@ -5719,7 +5854,7 @@ function useActionService() {
|
|
|
5719
5854
|
},
|
|
5720
5855
|
[env]
|
|
5721
5856
|
);
|
|
5722
|
-
const duplicateRecord = (0,
|
|
5857
|
+
const duplicateRecord = (0, import_react73.useCallback)(
|
|
5723
5858
|
async ({
|
|
5724
5859
|
model,
|
|
5725
5860
|
id,
|
|
@@ -5745,7 +5880,7 @@ function useActionService() {
|
|
|
5745
5880
|
},
|
|
5746
5881
|
[env]
|
|
5747
5882
|
);
|
|
5748
|
-
const getPrintReportName = (0,
|
|
5883
|
+
const getPrintReportName = (0, import_react73.useCallback)(
|
|
5749
5884
|
async ({ id }) => {
|
|
5750
5885
|
const jsonData = {
|
|
5751
5886
|
model: "ir.actions.report",
|
|
@@ -5763,7 +5898,7 @@ function useActionService() {
|
|
|
5763
5898
|
},
|
|
5764
5899
|
[env]
|
|
5765
5900
|
);
|
|
5766
|
-
const print = (0,
|
|
5901
|
+
const print = (0, import_react73.useCallback)(
|
|
5767
5902
|
async ({ id, report, db }) => {
|
|
5768
5903
|
const jsonData = {
|
|
5769
5904
|
report,
|
|
@@ -5781,7 +5916,7 @@ function useActionService() {
|
|
|
5781
5916
|
},
|
|
5782
5917
|
[env]
|
|
5783
5918
|
);
|
|
5784
|
-
const runAction = (0,
|
|
5919
|
+
const runAction = (0, import_react73.useCallback)(
|
|
5785
5920
|
async ({
|
|
5786
5921
|
idAction,
|
|
5787
5922
|
context,
|
|
@@ -5808,7 +5943,7 @@ function useActionService() {
|
|
|
5808
5943
|
},
|
|
5809
5944
|
[env]
|
|
5810
5945
|
);
|
|
5811
|
-
const generateSerialNumber = (0,
|
|
5946
|
+
const generateSerialNumber = (0, import_react73.useCallback)(
|
|
5812
5947
|
async ({
|
|
5813
5948
|
kwargs,
|
|
5814
5949
|
context,
|
|
@@ -5833,7 +5968,7 @@ function useActionService() {
|
|
|
5833
5968
|
},
|
|
5834
5969
|
[env]
|
|
5835
5970
|
);
|
|
5836
|
-
const actionServerHome = (0,
|
|
5971
|
+
const actionServerHome = (0, import_react73.useCallback)(async () => {
|
|
5837
5972
|
return env?.requests?.get("/action_server_home" /* ACTION_SERVER_HOME */);
|
|
5838
5973
|
}, [env]);
|
|
5839
5974
|
return {
|
|
@@ -5850,11 +5985,11 @@ function useActionService() {
|
|
|
5850
5985
|
}
|
|
5851
5986
|
|
|
5852
5987
|
// src/services/auth-service/index.ts
|
|
5853
|
-
var
|
|
5988
|
+
var import_react74 = require("react");
|
|
5854
5989
|
function useAuthService() {
|
|
5855
5990
|
const { env } = useEnv();
|
|
5856
5991
|
const supabase = useSupabaseOptional();
|
|
5857
|
-
const login = (0,
|
|
5992
|
+
const login = (0, import_react74.useCallback)(
|
|
5858
5993
|
async (body) => {
|
|
5859
5994
|
const payload = Object.fromEntries(
|
|
5860
5995
|
Object.entries({
|
|
@@ -5879,7 +6014,7 @@ function useAuthService() {
|
|
|
5879
6014
|
},
|
|
5880
6015
|
[env]
|
|
5881
6016
|
);
|
|
5882
|
-
const loginTenantUser = (0,
|
|
6017
|
+
const loginTenantUser = (0, import_react74.useCallback)(
|
|
5883
6018
|
async (body) => {
|
|
5884
6019
|
const payload = {
|
|
5885
6020
|
email: body.email,
|
|
@@ -5894,7 +6029,7 @@ function useAuthService() {
|
|
|
5894
6029
|
},
|
|
5895
6030
|
[env]
|
|
5896
6031
|
);
|
|
5897
|
-
const forgotPassword = (0,
|
|
6032
|
+
const forgotPassword = (0, import_react74.useCallback)(
|
|
5898
6033
|
async (email) => {
|
|
5899
6034
|
const bodyData = {
|
|
5900
6035
|
login: email,
|
|
@@ -5908,7 +6043,7 @@ function useAuthService() {
|
|
|
5908
6043
|
},
|
|
5909
6044
|
[env]
|
|
5910
6045
|
);
|
|
5911
|
-
const forgotPasswordSSO = (0,
|
|
6046
|
+
const forgotPasswordSSO = (0, import_react74.useCallback)(
|
|
5912
6047
|
async ({
|
|
5913
6048
|
email,
|
|
5914
6049
|
with_context,
|
|
@@ -5931,7 +6066,7 @@ function useAuthService() {
|
|
|
5931
6066
|
},
|
|
5932
6067
|
[env]
|
|
5933
6068
|
);
|
|
5934
|
-
const resetPassword = (0,
|
|
6069
|
+
const resetPassword = (0, import_react74.useCallback)(
|
|
5935
6070
|
async (data, token) => {
|
|
5936
6071
|
const bodyData = {
|
|
5937
6072
|
token,
|
|
@@ -5946,7 +6081,7 @@ function useAuthService() {
|
|
|
5946
6081
|
},
|
|
5947
6082
|
[env]
|
|
5948
6083
|
);
|
|
5949
|
-
const resetPasswordSSO = (0,
|
|
6084
|
+
const resetPasswordSSO = (0, import_react74.useCallback)(
|
|
5950
6085
|
async ({
|
|
5951
6086
|
method,
|
|
5952
6087
|
password,
|
|
@@ -5969,7 +6104,7 @@ function useAuthService() {
|
|
|
5969
6104
|
},
|
|
5970
6105
|
[env]
|
|
5971
6106
|
);
|
|
5972
|
-
const updatePassword = (0,
|
|
6107
|
+
const updatePassword = (0, import_react74.useCallback)(
|
|
5973
6108
|
async (data, token) => {
|
|
5974
6109
|
const bodyData = {
|
|
5975
6110
|
token,
|
|
@@ -5984,7 +6119,7 @@ function useAuthService() {
|
|
|
5984
6119
|
},
|
|
5985
6120
|
[env]
|
|
5986
6121
|
);
|
|
5987
|
-
const isValidToken = (0,
|
|
6122
|
+
const isValidToken = (0, import_react74.useCallback)(
|
|
5988
6123
|
async (token) => {
|
|
5989
6124
|
const bodyData = {
|
|
5990
6125
|
token
|
|
@@ -5997,7 +6132,7 @@ function useAuthService() {
|
|
|
5997
6132
|
},
|
|
5998
6133
|
[env]
|
|
5999
6134
|
);
|
|
6000
|
-
const isValidActionToken = (0,
|
|
6135
|
+
const isValidActionToken = (0, import_react74.useCallback)(
|
|
6001
6136
|
async (actionToken) => {
|
|
6002
6137
|
const bodyData = {};
|
|
6003
6138
|
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
@@ -6010,7 +6145,7 @@ function useAuthService() {
|
|
|
6010
6145
|
},
|
|
6011
6146
|
[env]
|
|
6012
6147
|
);
|
|
6013
|
-
const loginSocial = (0,
|
|
6148
|
+
const loginSocial = (0, import_react74.useCallback)(
|
|
6014
6149
|
async ({
|
|
6015
6150
|
db,
|
|
6016
6151
|
state,
|
|
@@ -6028,13 +6163,13 @@ function useAuthService() {
|
|
|
6028
6163
|
},
|
|
6029
6164
|
[env]
|
|
6030
6165
|
);
|
|
6031
|
-
const getProviders = (0,
|
|
6166
|
+
const getProviders = (0, import_react74.useCallback)(
|
|
6032
6167
|
async (db) => {
|
|
6033
6168
|
return env?.requests?.get("/oauth/providers", { params: { db } });
|
|
6034
6169
|
},
|
|
6035
6170
|
[env]
|
|
6036
6171
|
);
|
|
6037
|
-
const getAccessByCode = (0,
|
|
6172
|
+
const getAccessByCode = (0, import_react74.useCallback)(
|
|
6038
6173
|
async (code) => {
|
|
6039
6174
|
const data = new URLSearchParams();
|
|
6040
6175
|
data.append("code", code);
|
|
@@ -6054,7 +6189,7 @@ function useAuthService() {
|
|
|
6054
6189
|
},
|
|
6055
6190
|
[env]
|
|
6056
6191
|
);
|
|
6057
|
-
const logout = (0,
|
|
6192
|
+
const logout = (0, import_react74.useCallback)(
|
|
6058
6193
|
async (service) => {
|
|
6059
6194
|
return env?.requests?.post(
|
|
6060
6195
|
"/logout" /* LOGOUT */,
|
|
@@ -6071,7 +6206,7 @@ function useAuthService() {
|
|
|
6071
6206
|
},
|
|
6072
6207
|
[env]
|
|
6073
6208
|
);
|
|
6074
|
-
const getTenantMapping = (0,
|
|
6209
|
+
const getTenantMapping = (0, import_react74.useCallback)(
|
|
6075
6210
|
async ({ shortName, service }) => {
|
|
6076
6211
|
const bodyData = {
|
|
6077
6212
|
short_name: shortName
|
|
@@ -6089,7 +6224,7 @@ function useAuthService() {
|
|
|
6089
6224
|
},
|
|
6090
6225
|
[env]
|
|
6091
6226
|
);
|
|
6092
|
-
const getToken = (0,
|
|
6227
|
+
const getToken = (0, import_react74.useCallback)(
|
|
6093
6228
|
async ({
|
|
6094
6229
|
phone,
|
|
6095
6230
|
name,
|
|
@@ -6134,10 +6269,10 @@ function useAuthService() {
|
|
|
6134
6269
|
}
|
|
6135
6270
|
|
|
6136
6271
|
// src/services/company-service/index.ts
|
|
6137
|
-
var
|
|
6272
|
+
var import_react75 = require("react");
|
|
6138
6273
|
function useCompanyService() {
|
|
6139
6274
|
const { env } = useEnv();
|
|
6140
|
-
const getCurrentCompany = (0,
|
|
6275
|
+
const getCurrentCompany = (0, import_react75.useCallback)(
|
|
6141
6276
|
async (service, extraHeaders) => {
|
|
6142
6277
|
return await env.requests.get(
|
|
6143
6278
|
"/company" /* COMPANY_PATH */,
|
|
@@ -6154,7 +6289,7 @@ function useCompanyService() {
|
|
|
6154
6289
|
},
|
|
6155
6290
|
[env]
|
|
6156
6291
|
);
|
|
6157
|
-
const getInfoCompany = (0,
|
|
6292
|
+
const getInfoCompany = (0, import_react75.useCallback)(
|
|
6158
6293
|
async (id, service) => {
|
|
6159
6294
|
const jsonData = {
|
|
6160
6295
|
ids: [id],
|
|
@@ -6190,10 +6325,10 @@ function useCompanyService() {
|
|
|
6190
6325
|
}
|
|
6191
6326
|
|
|
6192
6327
|
// src/services/excel-service/index.ts
|
|
6193
|
-
var
|
|
6328
|
+
var import_react76 = require("react");
|
|
6194
6329
|
function useExcelService() {
|
|
6195
6330
|
const { env } = useEnv();
|
|
6196
|
-
const uploadFileExcel = (0,
|
|
6331
|
+
const uploadFileExcel = (0, import_react76.useCallback)(
|
|
6197
6332
|
async ({
|
|
6198
6333
|
formData,
|
|
6199
6334
|
service,
|
|
@@ -6210,7 +6345,7 @@ function useExcelService() {
|
|
|
6210
6345
|
},
|
|
6211
6346
|
[env]
|
|
6212
6347
|
);
|
|
6213
|
-
const uploadIdFile = (0,
|
|
6348
|
+
const uploadIdFile = (0, import_react76.useCallback)(
|
|
6214
6349
|
async ({
|
|
6215
6350
|
formData,
|
|
6216
6351
|
service,
|
|
@@ -6227,7 +6362,7 @@ function useExcelService() {
|
|
|
6227
6362
|
},
|
|
6228
6363
|
[env]
|
|
6229
6364
|
);
|
|
6230
|
-
const parsePreview = (0,
|
|
6365
|
+
const parsePreview = (0, import_react76.useCallback)(
|
|
6231
6366
|
async ({
|
|
6232
6367
|
id,
|
|
6233
6368
|
selectedSheet,
|
|
@@ -6276,7 +6411,7 @@ function useExcelService() {
|
|
|
6276
6411
|
},
|
|
6277
6412
|
[env]
|
|
6278
6413
|
);
|
|
6279
|
-
const executeImport = (0,
|
|
6414
|
+
const executeImport = (0, import_react76.useCallback)(
|
|
6280
6415
|
async ({
|
|
6281
6416
|
columns,
|
|
6282
6417
|
fields,
|
|
@@ -6310,7 +6445,7 @@ function useExcelService() {
|
|
|
6310
6445
|
},
|
|
6311
6446
|
[env]
|
|
6312
6447
|
);
|
|
6313
|
-
const getFileExcel = (0,
|
|
6448
|
+
const getFileExcel = (0, import_react76.useCallback)(
|
|
6314
6449
|
async ({
|
|
6315
6450
|
model,
|
|
6316
6451
|
service,
|
|
@@ -6334,7 +6469,7 @@ function useExcelService() {
|
|
|
6334
6469
|
},
|
|
6335
6470
|
[env]
|
|
6336
6471
|
);
|
|
6337
|
-
const getFieldExport = (0,
|
|
6472
|
+
const getFieldExport = (0, import_react76.useCallback)(
|
|
6338
6473
|
async ({
|
|
6339
6474
|
ids,
|
|
6340
6475
|
model,
|
|
@@ -6374,7 +6509,7 @@ function useExcelService() {
|
|
|
6374
6509
|
},
|
|
6375
6510
|
[env]
|
|
6376
6511
|
);
|
|
6377
|
-
const exportExcel = (0,
|
|
6512
|
+
const exportExcel = (0, import_react76.useCallback)(
|
|
6378
6513
|
async ({
|
|
6379
6514
|
model,
|
|
6380
6515
|
domain,
|
|
@@ -6422,10 +6557,10 @@ function useExcelService() {
|
|
|
6422
6557
|
}
|
|
6423
6558
|
|
|
6424
6559
|
// src/services/form-service/index.ts
|
|
6425
|
-
var
|
|
6560
|
+
var import_react77 = require("react");
|
|
6426
6561
|
function useFormService() {
|
|
6427
6562
|
const { env } = useEnv();
|
|
6428
|
-
const getComment = (0,
|
|
6563
|
+
const getComment = (0, import_react77.useCallback)(
|
|
6429
6564
|
async ({ data }) => {
|
|
6430
6565
|
const jsonData = {
|
|
6431
6566
|
thread_id: data.thread_id,
|
|
@@ -6443,7 +6578,7 @@ function useFormService() {
|
|
|
6443
6578
|
},
|
|
6444
6579
|
[env]
|
|
6445
6580
|
);
|
|
6446
|
-
const getThreadData = (0,
|
|
6581
|
+
const getThreadData = (0, import_react77.useCallback)(
|
|
6447
6582
|
async ({
|
|
6448
6583
|
data,
|
|
6449
6584
|
xNode,
|
|
@@ -6470,7 +6605,7 @@ function useFormService() {
|
|
|
6470
6605
|
},
|
|
6471
6606
|
[env]
|
|
6472
6607
|
);
|
|
6473
|
-
const getThreadMessages = (0,
|
|
6608
|
+
const getThreadMessages = (0, import_react77.useCallback)(
|
|
6474
6609
|
async ({
|
|
6475
6610
|
data,
|
|
6476
6611
|
xNode,
|
|
@@ -6496,7 +6631,7 @@ function useFormService() {
|
|
|
6496
6631
|
},
|
|
6497
6632
|
[env]
|
|
6498
6633
|
);
|
|
6499
|
-
const sentComment = (0,
|
|
6634
|
+
const sentComment = (0, import_react77.useCallback)(
|
|
6500
6635
|
async ({ data }) => {
|
|
6501
6636
|
const jsonData = {
|
|
6502
6637
|
context: {
|
|
@@ -6524,7 +6659,7 @@ function useFormService() {
|
|
|
6524
6659
|
},
|
|
6525
6660
|
[env]
|
|
6526
6661
|
);
|
|
6527
|
-
const deleteComment = (0,
|
|
6662
|
+
const deleteComment = (0, import_react77.useCallback)(
|
|
6528
6663
|
async ({ data }) => {
|
|
6529
6664
|
const jsonData = {
|
|
6530
6665
|
attachment_ids: [],
|
|
@@ -6540,7 +6675,7 @@ function useFormService() {
|
|
|
6540
6675
|
},
|
|
6541
6676
|
[env]
|
|
6542
6677
|
);
|
|
6543
|
-
const getImage = (0,
|
|
6678
|
+
const getImage = (0, import_react77.useCallback)(
|
|
6544
6679
|
async ({ data }) => {
|
|
6545
6680
|
return env.requests.get(
|
|
6546
6681
|
`${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
|
|
@@ -6553,7 +6688,7 @@ function useFormService() {
|
|
|
6553
6688
|
},
|
|
6554
6689
|
[env]
|
|
6555
6690
|
);
|
|
6556
|
-
const uploadImage = (0,
|
|
6691
|
+
const uploadImage = (0, import_react77.useCallback)(
|
|
6557
6692
|
async ({
|
|
6558
6693
|
formData,
|
|
6559
6694
|
service,
|
|
@@ -6572,7 +6707,7 @@ function useFormService() {
|
|
|
6572
6707
|
},
|
|
6573
6708
|
[env]
|
|
6574
6709
|
);
|
|
6575
|
-
const uploadFile = (0,
|
|
6710
|
+
const uploadFile = (0, import_react77.useCallback)(
|
|
6576
6711
|
async ({
|
|
6577
6712
|
formData,
|
|
6578
6713
|
service,
|
|
@@ -6592,7 +6727,7 @@ function useFormService() {
|
|
|
6592
6727
|
},
|
|
6593
6728
|
[env]
|
|
6594
6729
|
);
|
|
6595
|
-
const getFormView = (0,
|
|
6730
|
+
const getFormView = (0, import_react77.useCallback)(
|
|
6596
6731
|
async ({ data }) => {
|
|
6597
6732
|
const jsonData = {
|
|
6598
6733
|
model: data.model,
|
|
@@ -6608,7 +6743,7 @@ function useFormService() {
|
|
|
6608
6743
|
},
|
|
6609
6744
|
[env]
|
|
6610
6745
|
);
|
|
6611
|
-
const changeStatus = (0,
|
|
6746
|
+
const changeStatus = (0, import_react77.useCallback)(
|
|
6612
6747
|
async ({ data }) => {
|
|
6613
6748
|
const vals = {
|
|
6614
6749
|
[data.name]: data.stage_id
|
|
@@ -6637,7 +6772,7 @@ function useFormService() {
|
|
|
6637
6772
|
},
|
|
6638
6773
|
[env]
|
|
6639
6774
|
);
|
|
6640
|
-
const getExternalTab = (0,
|
|
6775
|
+
const getExternalTab = (0, import_react77.useCallback)(
|
|
6641
6776
|
async ({ method, context, service, xNode }) => {
|
|
6642
6777
|
return env?.requests?.post(
|
|
6643
6778
|
"/call" /* CALL_PATH */,
|
|
@@ -6672,10 +6807,10 @@ function useFormService() {
|
|
|
6672
6807
|
}
|
|
6673
6808
|
|
|
6674
6809
|
// src/services/kanban-service/index.ts
|
|
6675
|
-
var
|
|
6810
|
+
var import_react78 = require("react");
|
|
6676
6811
|
function useKanbanService() {
|
|
6677
6812
|
const { env } = useEnv();
|
|
6678
|
-
const getGroups = (0,
|
|
6813
|
+
const getGroups = (0, import_react78.useCallback)(
|
|
6679
6814
|
async ({ model, width_context }) => {
|
|
6680
6815
|
const jsonData = {
|
|
6681
6816
|
model,
|
|
@@ -6695,7 +6830,7 @@ function useKanbanService() {
|
|
|
6695
6830
|
},
|
|
6696
6831
|
[env]
|
|
6697
6832
|
);
|
|
6698
|
-
const getProgressBar = (0,
|
|
6833
|
+
const getProgressBar = (0, import_react78.useCallback)(
|
|
6699
6834
|
async ({ field, color, model, width_context }) => {
|
|
6700
6835
|
const jsonData = {
|
|
6701
6836
|
model,
|
|
@@ -6725,10 +6860,10 @@ function useKanbanService() {
|
|
|
6725
6860
|
}
|
|
6726
6861
|
|
|
6727
6862
|
// src/services/model-service/index.ts
|
|
6728
|
-
var
|
|
6863
|
+
var import_react79 = require("react");
|
|
6729
6864
|
function useModelService() {
|
|
6730
6865
|
const { env } = useEnv();
|
|
6731
|
-
const getListMyBankAccount = (0,
|
|
6866
|
+
const getListMyBankAccount = (0, import_react79.useCallback)(
|
|
6732
6867
|
async ({
|
|
6733
6868
|
domain,
|
|
6734
6869
|
spectification,
|
|
@@ -6752,7 +6887,7 @@ function useModelService() {
|
|
|
6752
6887
|
},
|
|
6753
6888
|
[env]
|
|
6754
6889
|
);
|
|
6755
|
-
const getCurrency = (0,
|
|
6890
|
+
const getCurrency = (0, import_react79.useCallback)(async () => {
|
|
6756
6891
|
const jsonData = {
|
|
6757
6892
|
model: "res.currency",
|
|
6758
6893
|
method: "web_search_read",
|
|
@@ -6772,7 +6907,7 @@ function useModelService() {
|
|
|
6772
6907
|
}
|
|
6773
6908
|
});
|
|
6774
6909
|
}, [env]);
|
|
6775
|
-
const getConversionRate = (0,
|
|
6910
|
+
const getConversionRate = (0, import_react79.useCallback)(async () => {
|
|
6776
6911
|
const jsonData = {
|
|
6777
6912
|
model: "res.currency",
|
|
6778
6913
|
method: "web_search_read",
|
|
@@ -6798,7 +6933,7 @@ function useModelService() {
|
|
|
6798
6933
|
}
|
|
6799
6934
|
});
|
|
6800
6935
|
}, [env]);
|
|
6801
|
-
const getAll = (0,
|
|
6936
|
+
const getAll = (0, import_react79.useCallback)(
|
|
6802
6937
|
async ({
|
|
6803
6938
|
data,
|
|
6804
6939
|
service,
|
|
@@ -6840,7 +6975,7 @@ function useModelService() {
|
|
|
6840
6975
|
},
|
|
6841
6976
|
[env]
|
|
6842
6977
|
);
|
|
6843
|
-
const getListCalendar = (0,
|
|
6978
|
+
const getListCalendar = (0, import_react79.useCallback)(
|
|
6844
6979
|
async ({ data }) => {
|
|
6845
6980
|
const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
6846
6981
|
fields: data.fields,
|
|
@@ -6871,7 +7006,7 @@ function useModelService() {
|
|
|
6871
7006
|
},
|
|
6872
7007
|
[env]
|
|
6873
7008
|
);
|
|
6874
|
-
const getList = (0,
|
|
7009
|
+
const getList = (0, import_react79.useCallback)(
|
|
6875
7010
|
async ({
|
|
6876
7011
|
model,
|
|
6877
7012
|
ids = [],
|
|
@@ -6903,7 +7038,7 @@ function useModelService() {
|
|
|
6903
7038
|
},
|
|
6904
7039
|
[env]
|
|
6905
7040
|
);
|
|
6906
|
-
const getDetail = (0,
|
|
7041
|
+
const getDetail = (0, import_react79.useCallback)(
|
|
6907
7042
|
async ({
|
|
6908
7043
|
ids = [],
|
|
6909
7044
|
model,
|
|
@@ -6935,7 +7070,7 @@ function useModelService() {
|
|
|
6935
7070
|
},
|
|
6936
7071
|
[env]
|
|
6937
7072
|
);
|
|
6938
|
-
const save = (0,
|
|
7073
|
+
const save = (0, import_react79.useCallback)(
|
|
6939
7074
|
async ({
|
|
6940
7075
|
model,
|
|
6941
7076
|
ids = [],
|
|
@@ -6970,7 +7105,7 @@ function useModelService() {
|
|
|
6970
7105
|
},
|
|
6971
7106
|
[env]
|
|
6972
7107
|
);
|
|
6973
|
-
const deleteApi = (0,
|
|
7108
|
+
const deleteApi = (0, import_react79.useCallback)(
|
|
6974
7109
|
async ({ ids = [], model, service }) => {
|
|
6975
7110
|
const jsonData = {
|
|
6976
7111
|
model,
|
|
@@ -6990,7 +7125,7 @@ function useModelService() {
|
|
|
6990
7125
|
},
|
|
6991
7126
|
[env]
|
|
6992
7127
|
);
|
|
6993
|
-
const onChange = (0,
|
|
7128
|
+
const onChange = (0, import_react79.useCallback)(
|
|
6994
7129
|
async ({
|
|
6995
7130
|
ids = [],
|
|
6996
7131
|
model,
|
|
@@ -7026,7 +7161,7 @@ function useModelService() {
|
|
|
7026
7161
|
},
|
|
7027
7162
|
[env]
|
|
7028
7163
|
);
|
|
7029
|
-
const getListFieldsOnchange = (0,
|
|
7164
|
+
const getListFieldsOnchange = (0, import_react79.useCallback)(
|
|
7030
7165
|
async ({
|
|
7031
7166
|
model,
|
|
7032
7167
|
service,
|
|
@@ -7050,7 +7185,7 @@ function useModelService() {
|
|
|
7050
7185
|
},
|
|
7051
7186
|
[env]
|
|
7052
7187
|
);
|
|
7053
|
-
const parseORMOdoo = (0,
|
|
7188
|
+
const parseORMOdoo = (0, import_react79.useCallback)((data) => {
|
|
7054
7189
|
for (const key in data) {
|
|
7055
7190
|
if (key === "display_name") {
|
|
7056
7191
|
delete data[key];
|
|
@@ -7061,7 +7196,7 @@ function useModelService() {
|
|
|
7061
7196
|
}
|
|
7062
7197
|
return { ...data };
|
|
7063
7198
|
}, []);
|
|
7064
|
-
const toDataJS = (0,
|
|
7199
|
+
const toDataJS = (0, import_react79.useCallback)(
|
|
7065
7200
|
(data, viewData, model) => {
|
|
7066
7201
|
for (const key in data) {
|
|
7067
7202
|
if (data[key] === false) {
|
|
@@ -7119,10 +7254,10 @@ function useModelService() {
|
|
|
7119
7254
|
}
|
|
7120
7255
|
|
|
7121
7256
|
// src/services/user-service/index.ts
|
|
7122
|
-
var
|
|
7257
|
+
var import_react80 = require("react");
|
|
7123
7258
|
function useUserService() {
|
|
7124
7259
|
const { env } = useEnv();
|
|
7125
|
-
const getProfile = (0,
|
|
7260
|
+
const getProfile = (0, import_react80.useCallback)(
|
|
7126
7261
|
async (service, path, extraHeaders) => {
|
|
7127
7262
|
return env?.requests?.get(
|
|
7128
7263
|
path || "/userinfo" /* PROFILE_PATH */,
|
|
@@ -7139,7 +7274,7 @@ function useUserService() {
|
|
|
7139
7274
|
},
|
|
7140
7275
|
[env]
|
|
7141
7276
|
);
|
|
7142
|
-
const getUser = (0,
|
|
7277
|
+
const getUser = (0, import_react80.useCallback)(
|
|
7143
7278
|
async ({ context, id }) => {
|
|
7144
7279
|
const jsonData = {
|
|
7145
7280
|
model: "res.users",
|
|
@@ -7177,7 +7312,7 @@ function useUserService() {
|
|
|
7177
7312
|
},
|
|
7178
7313
|
[env]
|
|
7179
7314
|
);
|
|
7180
|
-
const switchUserLocale = (0,
|
|
7315
|
+
const switchUserLocale = (0, import_react80.useCallback)(
|
|
7181
7316
|
async ({ id, values, service }) => {
|
|
7182
7317
|
const jsonData = {
|
|
7183
7318
|
model: "res.users",
|
|
@@ -7205,10 +7340,10 @@ function useUserService() {
|
|
|
7205
7340
|
}
|
|
7206
7341
|
|
|
7207
7342
|
// src/services/view-service/index.ts
|
|
7208
|
-
var
|
|
7343
|
+
var import_react81 = require("react");
|
|
7209
7344
|
function useViewService() {
|
|
7210
7345
|
const { env } = useEnv();
|
|
7211
|
-
const getView = (0,
|
|
7346
|
+
const getView = (0, import_react81.useCallback)(
|
|
7212
7347
|
async ({
|
|
7213
7348
|
model,
|
|
7214
7349
|
views,
|
|
@@ -7248,7 +7383,7 @@ function useViewService() {
|
|
|
7248
7383
|
},
|
|
7249
7384
|
[env]
|
|
7250
7385
|
);
|
|
7251
|
-
const getMenu = (0,
|
|
7386
|
+
const getMenu = (0, import_react81.useCallback)(
|
|
7252
7387
|
async (context, specification, domain, service) => {
|
|
7253
7388
|
const jsonData = {
|
|
7254
7389
|
model: "ir.ui.menu" /* MENU */,
|
|
@@ -7279,7 +7414,7 @@ function useViewService() {
|
|
|
7279
7414
|
},
|
|
7280
7415
|
[env]
|
|
7281
7416
|
);
|
|
7282
|
-
const getActionDetail = (0,
|
|
7417
|
+
const getActionDetail = (0, import_react81.useCallback)(
|
|
7283
7418
|
async (aid, context) => {
|
|
7284
7419
|
const jsonData = {
|
|
7285
7420
|
model: "ir.actions.act_window" /* WINDOW_ACTION */,
|
|
@@ -7309,7 +7444,7 @@ function useViewService() {
|
|
|
7309
7444
|
},
|
|
7310
7445
|
[env]
|
|
7311
7446
|
);
|
|
7312
|
-
const getResequence = (0,
|
|
7447
|
+
const getResequence = (0, import_react81.useCallback)(
|
|
7313
7448
|
async ({
|
|
7314
7449
|
model,
|
|
7315
7450
|
ids,
|
|
@@ -7339,7 +7474,7 @@ function useViewService() {
|
|
|
7339
7474
|
},
|
|
7340
7475
|
[env]
|
|
7341
7476
|
);
|
|
7342
|
-
const getSelectionItem = (0,
|
|
7477
|
+
const getSelectionItem = (0, import_react81.useCallback)(
|
|
7343
7478
|
async ({
|
|
7344
7479
|
data,
|
|
7345
7480
|
service,
|
|
@@ -7376,7 +7511,7 @@ function useViewService() {
|
|
|
7376
7511
|
},
|
|
7377
7512
|
[env]
|
|
7378
7513
|
);
|
|
7379
|
-
const loadMessages = (0,
|
|
7514
|
+
const loadMessages = (0, import_react81.useCallback)(async () => {
|
|
7380
7515
|
return env.requests.post(
|
|
7381
7516
|
"/load_message_failures" /* LOAD_MESSAGE */,
|
|
7382
7517
|
{},
|
|
@@ -7387,14 +7522,14 @@ function useViewService() {
|
|
|
7387
7522
|
}
|
|
7388
7523
|
);
|
|
7389
7524
|
}, [env]);
|
|
7390
|
-
const getVersion = (0,
|
|
7525
|
+
const getVersion = (0, import_react81.useCallback)(async () => {
|
|
7391
7526
|
return env?.requests?.get("", {
|
|
7392
7527
|
headers: {
|
|
7393
7528
|
"Content-Type": "application/json"
|
|
7394
7529
|
}
|
|
7395
7530
|
});
|
|
7396
7531
|
}, [env]);
|
|
7397
|
-
const grantAccess = (0,
|
|
7532
|
+
const grantAccess = (0, import_react81.useCallback)(
|
|
7398
7533
|
async ({
|
|
7399
7534
|
redirect_uri,
|
|
7400
7535
|
state,
|
|
@@ -7421,7 +7556,7 @@ function useViewService() {
|
|
|
7421
7556
|
},
|
|
7422
7557
|
[env]
|
|
7423
7558
|
);
|
|
7424
|
-
const removeTotpSetUp = (0,
|
|
7559
|
+
const removeTotpSetUp = (0, import_react81.useCallback)(
|
|
7425
7560
|
async ({ method, token }) => {
|
|
7426
7561
|
const jsonData = {
|
|
7427
7562
|
method,
|
|
@@ -7442,7 +7577,7 @@ function useViewService() {
|
|
|
7442
7577
|
},
|
|
7443
7578
|
[env]
|
|
7444
7579
|
);
|
|
7445
|
-
const requestSetupTotp = (0,
|
|
7580
|
+
const requestSetupTotp = (0, import_react81.useCallback)(
|
|
7446
7581
|
async ({ method, token }) => {
|
|
7447
7582
|
const jsonData = {
|
|
7448
7583
|
method,
|
|
@@ -7461,7 +7596,7 @@ function useViewService() {
|
|
|
7461
7596
|
},
|
|
7462
7597
|
[env]
|
|
7463
7598
|
);
|
|
7464
|
-
const settingsWebRead2fa = (0,
|
|
7599
|
+
const settingsWebRead2fa = (0, import_react81.useCallback)(
|
|
7465
7600
|
async ({
|
|
7466
7601
|
method,
|
|
7467
7602
|
model,
|
|
@@ -7489,7 +7624,7 @@ function useViewService() {
|
|
|
7489
7624
|
},
|
|
7490
7625
|
[env]
|
|
7491
7626
|
);
|
|
7492
|
-
const signInSSO = (0,
|
|
7627
|
+
const signInSSO = (0, import_react81.useCallback)(
|
|
7493
7628
|
async ({
|
|
7494
7629
|
redirect_uri,
|
|
7495
7630
|
state,
|
|
@@ -7521,7 +7656,7 @@ function useViewService() {
|
|
|
7521
7656
|
},
|
|
7522
7657
|
[env]
|
|
7523
7658
|
);
|
|
7524
|
-
const verify2FA = (0,
|
|
7659
|
+
const verify2FA = (0, import_react81.useCallback)(
|
|
7525
7660
|
({
|
|
7526
7661
|
method,
|
|
7527
7662
|
with_context,
|
|
@@ -7554,7 +7689,7 @@ function useViewService() {
|
|
|
7554
7689
|
},
|
|
7555
7690
|
[env]
|
|
7556
7691
|
);
|
|
7557
|
-
const get2FAMethods = (0,
|
|
7692
|
+
const get2FAMethods = (0, import_react81.useCallback)(
|
|
7558
7693
|
({ method, with_context }) => {
|
|
7559
7694
|
const jsonData = {
|
|
7560
7695
|
method,
|
|
@@ -7573,7 +7708,7 @@ function useViewService() {
|
|
|
7573
7708
|
},
|
|
7574
7709
|
[env]
|
|
7575
7710
|
);
|
|
7576
|
-
const verifyTotp = (0,
|
|
7711
|
+
const verifyTotp = (0, import_react81.useCallback)(
|
|
7577
7712
|
({
|
|
7578
7713
|
method,
|
|
7579
7714
|
action_token,
|
|
@@ -7598,7 +7733,7 @@ function useViewService() {
|
|
|
7598
7733
|
},
|
|
7599
7734
|
[env]
|
|
7600
7735
|
);
|
|
7601
|
-
const getNotifications = (0,
|
|
7736
|
+
const getNotifications = (0, import_react81.useCallback)(
|
|
7602
7737
|
async ({
|
|
7603
7738
|
service,
|
|
7604
7739
|
xNode,
|
|
@@ -7618,7 +7753,7 @@ function useViewService() {
|
|
|
7618
7753
|
},
|
|
7619
7754
|
[env]
|
|
7620
7755
|
);
|
|
7621
|
-
const getCountry = (0,
|
|
7756
|
+
const getCountry = (0, import_react81.useCallback)(
|
|
7622
7757
|
async ({
|
|
7623
7758
|
service,
|
|
7624
7759
|
xNode,
|
|
@@ -7645,7 +7780,7 @@ function useViewService() {
|
|
|
7645
7780
|
},
|
|
7646
7781
|
[env]
|
|
7647
7782
|
);
|
|
7648
|
-
const getCity = (0,
|
|
7783
|
+
const getCity = (0, import_react81.useCallback)(
|
|
7649
7784
|
async ({
|
|
7650
7785
|
service,
|
|
7651
7786
|
xNode,
|
|
@@ -7672,7 +7807,7 @@ function useViewService() {
|
|
|
7672
7807
|
},
|
|
7673
7808
|
[env]
|
|
7674
7809
|
);
|
|
7675
|
-
const getWard = (0,
|
|
7810
|
+
const getWard = (0, import_react81.useCallback)(
|
|
7676
7811
|
async ({
|
|
7677
7812
|
service,
|
|
7678
7813
|
xNode,
|
|
@@ -7697,7 +7832,7 @@ function useViewService() {
|
|
|
7697
7832
|
},
|
|
7698
7833
|
[env]
|
|
7699
7834
|
);
|
|
7700
|
-
const getPartnerTitle = (0,
|
|
7835
|
+
const getPartnerTitle = (0, import_react81.useCallback)(
|
|
7701
7836
|
async ({
|
|
7702
7837
|
service,
|
|
7703
7838
|
xNode,
|
|
@@ -7749,10 +7884,10 @@ function useViewService() {
|
|
|
7749
7884
|
}
|
|
7750
7885
|
|
|
7751
7886
|
// src/services/dashboard-service/index.ts
|
|
7752
|
-
var
|
|
7887
|
+
var import_react82 = require("react");
|
|
7753
7888
|
function useDashboardService() {
|
|
7754
7889
|
const { env } = useEnv();
|
|
7755
|
-
const readGroup = (0,
|
|
7890
|
+
const readGroup = (0, import_react82.useCallback)(
|
|
7756
7891
|
async ({
|
|
7757
7892
|
service,
|
|
7758
7893
|
xNode,
|
|
@@ -7769,7 +7904,7 @@ function useDashboardService() {
|
|
|
7769
7904
|
},
|
|
7770
7905
|
[env]
|
|
7771
7906
|
);
|
|
7772
|
-
const getDataChart = (0,
|
|
7907
|
+
const getDataChart = (0, import_react82.useCallback)(
|
|
7773
7908
|
async ({
|
|
7774
7909
|
service,
|
|
7775
7910
|
xNode,
|