@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.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) => {
|
|
@@ -80,6 +80,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
80
80
|
UriConstants2["TOKEN_BY_CODE"] = "/token";
|
|
81
81
|
UriConstants2["LOGOUT"] = "/logout";
|
|
82
82
|
UriConstants2["SUPABASE_LOGIN_PATH"] = "/api/v2/auth/login";
|
|
83
|
+
UriConstants2["SUPABASE_CURRENT_USER"] = "/api/v2/auth/me";
|
|
83
84
|
UriConstants2["CREATE_UPDATE"] = "/create_update";
|
|
84
85
|
UriConstants2["SEARCH_READ"] = "/search_read";
|
|
85
86
|
UriConstants2["CREATE_PATH"] = "/create";
|
|
@@ -2967,7 +2968,7 @@ function useEnv() {
|
|
|
2967
2968
|
}
|
|
2968
2969
|
|
|
2969
2970
|
// src/provider/service-provider.tsx
|
|
2970
|
-
var
|
|
2971
|
+
var import_react71 = require("react");
|
|
2971
2972
|
|
|
2972
2973
|
// src/hooks/auth/use-forgot-password.ts
|
|
2973
2974
|
var import_react_query3 = require("@tanstack/react-query");
|
|
@@ -5342,6 +5343,144 @@ var getPartnerTitlesSupabaseService = () => {
|
|
|
5342
5343
|
};
|
|
5343
5344
|
};
|
|
5344
5345
|
|
|
5346
|
+
// src/services/pos-service/supabase/get-supa-current-user.ts
|
|
5347
|
+
var import_react66 = require("react");
|
|
5348
|
+
var getSupaCurrentUser = (env) => {
|
|
5349
|
+
const getSupaCurrentUser2 = (0, import_react66.useCallback)(
|
|
5350
|
+
({ tenantId }) => {
|
|
5351
|
+
return env?.requests.get("/api/v2/auth/me" /* SUPABASE_CURRENT_USER */, {
|
|
5352
|
+
headers: {
|
|
5353
|
+
"Content-Type": "application/json",
|
|
5354
|
+
"x-tenant-id": tenantId
|
|
5355
|
+
}
|
|
5356
|
+
});
|
|
5357
|
+
},
|
|
5358
|
+
[env]
|
|
5359
|
+
);
|
|
5360
|
+
return {
|
|
5361
|
+
getSupaCurrentUser: getSupaCurrentUser2
|
|
5362
|
+
};
|
|
5363
|
+
};
|
|
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
|
+
|
|
5345
5484
|
// src/services/pos-service/index.ts
|
|
5346
5485
|
var serviceFactories = [
|
|
5347
5486
|
addEntityService,
|
|
@@ -5402,7 +5541,12 @@ var serviceFactories = [
|
|
|
5402
5541
|
assignRoleService,
|
|
5403
5542
|
getStatesSupabaseService,
|
|
5404
5543
|
getWardsSupabaseService,
|
|
5405
|
-
getPartnerTitlesSupabaseService
|
|
5544
|
+
getPartnerTitlesSupabaseService,
|
|
5545
|
+
getSupaCurrentUser,
|
|
5546
|
+
updateCategorySupabaseService,
|
|
5547
|
+
deleteCategorySupabaseService,
|
|
5548
|
+
updateProductSupabaseService,
|
|
5549
|
+
deleteProductSupabaseService
|
|
5406
5550
|
];
|
|
5407
5551
|
var usePosService = () => {
|
|
5408
5552
|
const { env } = useEnv();
|
|
@@ -5600,18 +5744,33 @@ var import_react_query140 = require("@tanstack/react-query");
|
|
|
5600
5744
|
// src/hooks/pos/supabase/use-assign-role.ts
|
|
5601
5745
|
var import_react_query141 = require("@tanstack/react-query");
|
|
5602
5746
|
|
|
5747
|
+
// src/hooks/pos/supabase/use-get-supa-current-user.ts
|
|
5748
|
+
var import_react_query142 = require("@tanstack/react-query");
|
|
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
|
+
|
|
5603
5762
|
// src/provider/service-provider.tsx
|
|
5604
5763
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
5605
|
-
var ServiceContext = (0,
|
|
5764
|
+
var ServiceContext = (0, import_react71.createContext)(null);
|
|
5606
5765
|
|
|
5607
5766
|
// src/provider/meta-provider.tsx
|
|
5608
|
-
var
|
|
5767
|
+
var import_react72 = require("react");
|
|
5609
5768
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
5610
5769
|
|
|
5611
5770
|
// src/services/action-service/index.ts
|
|
5612
5771
|
function useActionService() {
|
|
5613
5772
|
const { env } = useEnv();
|
|
5614
|
-
const loadAction = (0,
|
|
5773
|
+
const loadAction = (0, import_react73.useCallback)(
|
|
5615
5774
|
async ({
|
|
5616
5775
|
idAction,
|
|
5617
5776
|
context,
|
|
@@ -5635,7 +5794,7 @@ function useActionService() {
|
|
|
5635
5794
|
},
|
|
5636
5795
|
[env]
|
|
5637
5796
|
);
|
|
5638
|
-
const callButton = (0,
|
|
5797
|
+
const callButton = (0, import_react73.useCallback)(
|
|
5639
5798
|
async ({
|
|
5640
5799
|
model,
|
|
5641
5800
|
ids = [],
|
|
@@ -5669,7 +5828,7 @@ function useActionService() {
|
|
|
5669
5828
|
},
|
|
5670
5829
|
[env]
|
|
5671
5830
|
);
|
|
5672
|
-
const removeRows = (0,
|
|
5831
|
+
const removeRows = (0, import_react73.useCallback)(
|
|
5673
5832
|
async ({
|
|
5674
5833
|
model,
|
|
5675
5834
|
ids,
|
|
@@ -5695,7 +5854,7 @@ function useActionService() {
|
|
|
5695
5854
|
},
|
|
5696
5855
|
[env]
|
|
5697
5856
|
);
|
|
5698
|
-
const duplicateRecord = (0,
|
|
5857
|
+
const duplicateRecord = (0, import_react73.useCallback)(
|
|
5699
5858
|
async ({
|
|
5700
5859
|
model,
|
|
5701
5860
|
id,
|
|
@@ -5721,7 +5880,7 @@ function useActionService() {
|
|
|
5721
5880
|
},
|
|
5722
5881
|
[env]
|
|
5723
5882
|
);
|
|
5724
|
-
const getPrintReportName = (0,
|
|
5883
|
+
const getPrintReportName = (0, import_react73.useCallback)(
|
|
5725
5884
|
async ({ id }) => {
|
|
5726
5885
|
const jsonData = {
|
|
5727
5886
|
model: "ir.actions.report",
|
|
@@ -5739,7 +5898,7 @@ function useActionService() {
|
|
|
5739
5898
|
},
|
|
5740
5899
|
[env]
|
|
5741
5900
|
);
|
|
5742
|
-
const print = (0,
|
|
5901
|
+
const print = (0, import_react73.useCallback)(
|
|
5743
5902
|
async ({ id, report, db }) => {
|
|
5744
5903
|
const jsonData = {
|
|
5745
5904
|
report,
|
|
@@ -5757,7 +5916,7 @@ function useActionService() {
|
|
|
5757
5916
|
},
|
|
5758
5917
|
[env]
|
|
5759
5918
|
);
|
|
5760
|
-
const runAction = (0,
|
|
5919
|
+
const runAction = (0, import_react73.useCallback)(
|
|
5761
5920
|
async ({
|
|
5762
5921
|
idAction,
|
|
5763
5922
|
context,
|
|
@@ -5784,7 +5943,7 @@ function useActionService() {
|
|
|
5784
5943
|
},
|
|
5785
5944
|
[env]
|
|
5786
5945
|
);
|
|
5787
|
-
const generateSerialNumber = (0,
|
|
5946
|
+
const generateSerialNumber = (0, import_react73.useCallback)(
|
|
5788
5947
|
async ({
|
|
5789
5948
|
kwargs,
|
|
5790
5949
|
context,
|
|
@@ -5809,7 +5968,7 @@ function useActionService() {
|
|
|
5809
5968
|
},
|
|
5810
5969
|
[env]
|
|
5811
5970
|
);
|
|
5812
|
-
const actionServerHome = (0,
|
|
5971
|
+
const actionServerHome = (0, import_react73.useCallback)(async () => {
|
|
5813
5972
|
return env?.requests?.get("/action_server_home" /* ACTION_SERVER_HOME */);
|
|
5814
5973
|
}, [env]);
|
|
5815
5974
|
return {
|
|
@@ -5826,11 +5985,11 @@ function useActionService() {
|
|
|
5826
5985
|
}
|
|
5827
5986
|
|
|
5828
5987
|
// src/services/auth-service/index.ts
|
|
5829
|
-
var
|
|
5988
|
+
var import_react74 = require("react");
|
|
5830
5989
|
function useAuthService() {
|
|
5831
5990
|
const { env } = useEnv();
|
|
5832
5991
|
const supabase = useSupabaseOptional();
|
|
5833
|
-
const login = (0,
|
|
5992
|
+
const login = (0, import_react74.useCallback)(
|
|
5834
5993
|
async (body) => {
|
|
5835
5994
|
const payload = Object.fromEntries(
|
|
5836
5995
|
Object.entries({
|
|
@@ -5855,7 +6014,7 @@ function useAuthService() {
|
|
|
5855
6014
|
},
|
|
5856
6015
|
[env]
|
|
5857
6016
|
);
|
|
5858
|
-
const loginTenantUser = (0,
|
|
6017
|
+
const loginTenantUser = (0, import_react74.useCallback)(
|
|
5859
6018
|
async (body) => {
|
|
5860
6019
|
const payload = {
|
|
5861
6020
|
email: body.email,
|
|
@@ -5870,7 +6029,7 @@ function useAuthService() {
|
|
|
5870
6029
|
},
|
|
5871
6030
|
[env]
|
|
5872
6031
|
);
|
|
5873
|
-
const forgotPassword = (0,
|
|
6032
|
+
const forgotPassword = (0, import_react74.useCallback)(
|
|
5874
6033
|
async (email) => {
|
|
5875
6034
|
const bodyData = {
|
|
5876
6035
|
login: email,
|
|
@@ -5884,7 +6043,7 @@ function useAuthService() {
|
|
|
5884
6043
|
},
|
|
5885
6044
|
[env]
|
|
5886
6045
|
);
|
|
5887
|
-
const forgotPasswordSSO = (0,
|
|
6046
|
+
const forgotPasswordSSO = (0, import_react74.useCallback)(
|
|
5888
6047
|
async ({
|
|
5889
6048
|
email,
|
|
5890
6049
|
with_context,
|
|
@@ -5907,7 +6066,7 @@ function useAuthService() {
|
|
|
5907
6066
|
},
|
|
5908
6067
|
[env]
|
|
5909
6068
|
);
|
|
5910
|
-
const resetPassword = (0,
|
|
6069
|
+
const resetPassword = (0, import_react74.useCallback)(
|
|
5911
6070
|
async (data, token) => {
|
|
5912
6071
|
const bodyData = {
|
|
5913
6072
|
token,
|
|
@@ -5922,7 +6081,7 @@ function useAuthService() {
|
|
|
5922
6081
|
},
|
|
5923
6082
|
[env]
|
|
5924
6083
|
);
|
|
5925
|
-
const resetPasswordSSO = (0,
|
|
6084
|
+
const resetPasswordSSO = (0, import_react74.useCallback)(
|
|
5926
6085
|
async ({
|
|
5927
6086
|
method,
|
|
5928
6087
|
password,
|
|
@@ -5945,7 +6104,7 @@ function useAuthService() {
|
|
|
5945
6104
|
},
|
|
5946
6105
|
[env]
|
|
5947
6106
|
);
|
|
5948
|
-
const updatePassword = (0,
|
|
6107
|
+
const updatePassword = (0, import_react74.useCallback)(
|
|
5949
6108
|
async (data, token) => {
|
|
5950
6109
|
const bodyData = {
|
|
5951
6110
|
token,
|
|
@@ -5960,7 +6119,7 @@ function useAuthService() {
|
|
|
5960
6119
|
},
|
|
5961
6120
|
[env]
|
|
5962
6121
|
);
|
|
5963
|
-
const isValidToken = (0,
|
|
6122
|
+
const isValidToken = (0, import_react74.useCallback)(
|
|
5964
6123
|
async (token) => {
|
|
5965
6124
|
const bodyData = {
|
|
5966
6125
|
token
|
|
@@ -5973,7 +6132,7 @@ function useAuthService() {
|
|
|
5973
6132
|
},
|
|
5974
6133
|
[env]
|
|
5975
6134
|
);
|
|
5976
|
-
const isValidActionToken = (0,
|
|
6135
|
+
const isValidActionToken = (0, import_react74.useCallback)(
|
|
5977
6136
|
async (actionToken) => {
|
|
5978
6137
|
const bodyData = {};
|
|
5979
6138
|
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
@@ -5986,7 +6145,7 @@ function useAuthService() {
|
|
|
5986
6145
|
},
|
|
5987
6146
|
[env]
|
|
5988
6147
|
);
|
|
5989
|
-
const loginSocial = (0,
|
|
6148
|
+
const loginSocial = (0, import_react74.useCallback)(
|
|
5990
6149
|
async ({
|
|
5991
6150
|
db,
|
|
5992
6151
|
state,
|
|
@@ -6004,13 +6163,13 @@ function useAuthService() {
|
|
|
6004
6163
|
},
|
|
6005
6164
|
[env]
|
|
6006
6165
|
);
|
|
6007
|
-
const getProviders = (0,
|
|
6166
|
+
const getProviders = (0, import_react74.useCallback)(
|
|
6008
6167
|
async (db) => {
|
|
6009
6168
|
return env?.requests?.get("/oauth/providers", { params: { db } });
|
|
6010
6169
|
},
|
|
6011
6170
|
[env]
|
|
6012
6171
|
);
|
|
6013
|
-
const getAccessByCode = (0,
|
|
6172
|
+
const getAccessByCode = (0, import_react74.useCallback)(
|
|
6014
6173
|
async (code) => {
|
|
6015
6174
|
const data = new URLSearchParams();
|
|
6016
6175
|
data.append("code", code);
|
|
@@ -6030,7 +6189,7 @@ function useAuthService() {
|
|
|
6030
6189
|
},
|
|
6031
6190
|
[env]
|
|
6032
6191
|
);
|
|
6033
|
-
const logout = (0,
|
|
6192
|
+
const logout = (0, import_react74.useCallback)(
|
|
6034
6193
|
async (service) => {
|
|
6035
6194
|
return env?.requests?.post(
|
|
6036
6195
|
"/logout" /* LOGOUT */,
|
|
@@ -6047,7 +6206,7 @@ function useAuthService() {
|
|
|
6047
6206
|
},
|
|
6048
6207
|
[env]
|
|
6049
6208
|
);
|
|
6050
|
-
const getTenantMapping = (0,
|
|
6209
|
+
const getTenantMapping = (0, import_react74.useCallback)(
|
|
6051
6210
|
async ({ shortName, service }) => {
|
|
6052
6211
|
const bodyData = {
|
|
6053
6212
|
short_name: shortName
|
|
@@ -6065,7 +6224,7 @@ function useAuthService() {
|
|
|
6065
6224
|
},
|
|
6066
6225
|
[env]
|
|
6067
6226
|
);
|
|
6068
|
-
const getToken = (0,
|
|
6227
|
+
const getToken = (0, import_react74.useCallback)(
|
|
6069
6228
|
async ({
|
|
6070
6229
|
phone,
|
|
6071
6230
|
name,
|
|
@@ -6110,10 +6269,10 @@ function useAuthService() {
|
|
|
6110
6269
|
}
|
|
6111
6270
|
|
|
6112
6271
|
// src/services/company-service/index.ts
|
|
6113
|
-
var
|
|
6272
|
+
var import_react75 = require("react");
|
|
6114
6273
|
function useCompanyService() {
|
|
6115
6274
|
const { env } = useEnv();
|
|
6116
|
-
const getCurrentCompany = (0,
|
|
6275
|
+
const getCurrentCompany = (0, import_react75.useCallback)(
|
|
6117
6276
|
async (service, extraHeaders) => {
|
|
6118
6277
|
return await env.requests.get(
|
|
6119
6278
|
"/company" /* COMPANY_PATH */,
|
|
@@ -6130,7 +6289,7 @@ function useCompanyService() {
|
|
|
6130
6289
|
},
|
|
6131
6290
|
[env]
|
|
6132
6291
|
);
|
|
6133
|
-
const getInfoCompany = (0,
|
|
6292
|
+
const getInfoCompany = (0, import_react75.useCallback)(
|
|
6134
6293
|
async (id, service) => {
|
|
6135
6294
|
const jsonData = {
|
|
6136
6295
|
ids: [id],
|
|
@@ -6166,10 +6325,10 @@ function useCompanyService() {
|
|
|
6166
6325
|
}
|
|
6167
6326
|
|
|
6168
6327
|
// src/services/excel-service/index.ts
|
|
6169
|
-
var
|
|
6328
|
+
var import_react76 = require("react");
|
|
6170
6329
|
function useExcelService() {
|
|
6171
6330
|
const { env } = useEnv();
|
|
6172
|
-
const uploadFileExcel = (0,
|
|
6331
|
+
const uploadFileExcel = (0, import_react76.useCallback)(
|
|
6173
6332
|
async ({
|
|
6174
6333
|
formData,
|
|
6175
6334
|
service,
|
|
@@ -6186,7 +6345,7 @@ function useExcelService() {
|
|
|
6186
6345
|
},
|
|
6187
6346
|
[env]
|
|
6188
6347
|
);
|
|
6189
|
-
const uploadIdFile = (0,
|
|
6348
|
+
const uploadIdFile = (0, import_react76.useCallback)(
|
|
6190
6349
|
async ({
|
|
6191
6350
|
formData,
|
|
6192
6351
|
service,
|
|
@@ -6203,7 +6362,7 @@ function useExcelService() {
|
|
|
6203
6362
|
},
|
|
6204
6363
|
[env]
|
|
6205
6364
|
);
|
|
6206
|
-
const parsePreview = (0,
|
|
6365
|
+
const parsePreview = (0, import_react76.useCallback)(
|
|
6207
6366
|
async ({
|
|
6208
6367
|
id,
|
|
6209
6368
|
selectedSheet,
|
|
@@ -6252,7 +6411,7 @@ function useExcelService() {
|
|
|
6252
6411
|
},
|
|
6253
6412
|
[env]
|
|
6254
6413
|
);
|
|
6255
|
-
const executeImport = (0,
|
|
6414
|
+
const executeImport = (0, import_react76.useCallback)(
|
|
6256
6415
|
async ({
|
|
6257
6416
|
columns,
|
|
6258
6417
|
fields,
|
|
@@ -6286,7 +6445,7 @@ function useExcelService() {
|
|
|
6286
6445
|
},
|
|
6287
6446
|
[env]
|
|
6288
6447
|
);
|
|
6289
|
-
const getFileExcel = (0,
|
|
6448
|
+
const getFileExcel = (0, import_react76.useCallback)(
|
|
6290
6449
|
async ({
|
|
6291
6450
|
model,
|
|
6292
6451
|
service,
|
|
@@ -6310,7 +6469,7 @@ function useExcelService() {
|
|
|
6310
6469
|
},
|
|
6311
6470
|
[env]
|
|
6312
6471
|
);
|
|
6313
|
-
const getFieldExport = (0,
|
|
6472
|
+
const getFieldExport = (0, import_react76.useCallback)(
|
|
6314
6473
|
async ({
|
|
6315
6474
|
ids,
|
|
6316
6475
|
model,
|
|
@@ -6350,7 +6509,7 @@ function useExcelService() {
|
|
|
6350
6509
|
},
|
|
6351
6510
|
[env]
|
|
6352
6511
|
);
|
|
6353
|
-
const exportExcel = (0,
|
|
6512
|
+
const exportExcel = (0, import_react76.useCallback)(
|
|
6354
6513
|
async ({
|
|
6355
6514
|
model,
|
|
6356
6515
|
domain,
|
|
@@ -6398,10 +6557,10 @@ function useExcelService() {
|
|
|
6398
6557
|
}
|
|
6399
6558
|
|
|
6400
6559
|
// src/services/form-service/index.ts
|
|
6401
|
-
var
|
|
6560
|
+
var import_react77 = require("react");
|
|
6402
6561
|
function useFormService() {
|
|
6403
6562
|
const { env } = useEnv();
|
|
6404
|
-
const getComment = (0,
|
|
6563
|
+
const getComment = (0, import_react77.useCallback)(
|
|
6405
6564
|
async ({ data }) => {
|
|
6406
6565
|
const jsonData = {
|
|
6407
6566
|
thread_id: data.thread_id,
|
|
@@ -6419,7 +6578,7 @@ function useFormService() {
|
|
|
6419
6578
|
},
|
|
6420
6579
|
[env]
|
|
6421
6580
|
);
|
|
6422
|
-
const getThreadData = (0,
|
|
6581
|
+
const getThreadData = (0, import_react77.useCallback)(
|
|
6423
6582
|
async ({
|
|
6424
6583
|
data,
|
|
6425
6584
|
xNode,
|
|
@@ -6446,7 +6605,7 @@ function useFormService() {
|
|
|
6446
6605
|
},
|
|
6447
6606
|
[env]
|
|
6448
6607
|
);
|
|
6449
|
-
const getThreadMessages = (0,
|
|
6608
|
+
const getThreadMessages = (0, import_react77.useCallback)(
|
|
6450
6609
|
async ({
|
|
6451
6610
|
data,
|
|
6452
6611
|
xNode,
|
|
@@ -6472,7 +6631,7 @@ function useFormService() {
|
|
|
6472
6631
|
},
|
|
6473
6632
|
[env]
|
|
6474
6633
|
);
|
|
6475
|
-
const sentComment = (0,
|
|
6634
|
+
const sentComment = (0, import_react77.useCallback)(
|
|
6476
6635
|
async ({ data }) => {
|
|
6477
6636
|
const jsonData = {
|
|
6478
6637
|
context: {
|
|
@@ -6500,7 +6659,7 @@ function useFormService() {
|
|
|
6500
6659
|
},
|
|
6501
6660
|
[env]
|
|
6502
6661
|
);
|
|
6503
|
-
const deleteComment = (0,
|
|
6662
|
+
const deleteComment = (0, import_react77.useCallback)(
|
|
6504
6663
|
async ({ data }) => {
|
|
6505
6664
|
const jsonData = {
|
|
6506
6665
|
attachment_ids: [],
|
|
@@ -6516,7 +6675,7 @@ function useFormService() {
|
|
|
6516
6675
|
},
|
|
6517
6676
|
[env]
|
|
6518
6677
|
);
|
|
6519
|
-
const getImage = (0,
|
|
6678
|
+
const getImage = (0, import_react77.useCallback)(
|
|
6520
6679
|
async ({ data }) => {
|
|
6521
6680
|
return env.requests.get(
|
|
6522
6681
|
`${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
|
|
@@ -6529,7 +6688,7 @@ function useFormService() {
|
|
|
6529
6688
|
},
|
|
6530
6689
|
[env]
|
|
6531
6690
|
);
|
|
6532
|
-
const uploadImage = (0,
|
|
6691
|
+
const uploadImage = (0, import_react77.useCallback)(
|
|
6533
6692
|
async ({
|
|
6534
6693
|
formData,
|
|
6535
6694
|
service,
|
|
@@ -6548,7 +6707,7 @@ function useFormService() {
|
|
|
6548
6707
|
},
|
|
6549
6708
|
[env]
|
|
6550
6709
|
);
|
|
6551
|
-
const uploadFile = (0,
|
|
6710
|
+
const uploadFile = (0, import_react77.useCallback)(
|
|
6552
6711
|
async ({
|
|
6553
6712
|
formData,
|
|
6554
6713
|
service,
|
|
@@ -6568,7 +6727,7 @@ function useFormService() {
|
|
|
6568
6727
|
},
|
|
6569
6728
|
[env]
|
|
6570
6729
|
);
|
|
6571
|
-
const getFormView = (0,
|
|
6730
|
+
const getFormView = (0, import_react77.useCallback)(
|
|
6572
6731
|
async ({ data }) => {
|
|
6573
6732
|
const jsonData = {
|
|
6574
6733
|
model: data.model,
|
|
@@ -6584,7 +6743,7 @@ function useFormService() {
|
|
|
6584
6743
|
},
|
|
6585
6744
|
[env]
|
|
6586
6745
|
);
|
|
6587
|
-
const changeStatus = (0,
|
|
6746
|
+
const changeStatus = (0, import_react77.useCallback)(
|
|
6588
6747
|
async ({ data }) => {
|
|
6589
6748
|
const vals = {
|
|
6590
6749
|
[data.name]: data.stage_id
|
|
@@ -6613,7 +6772,7 @@ function useFormService() {
|
|
|
6613
6772
|
},
|
|
6614
6773
|
[env]
|
|
6615
6774
|
);
|
|
6616
|
-
const getExternalTab = (0,
|
|
6775
|
+
const getExternalTab = (0, import_react77.useCallback)(
|
|
6617
6776
|
async ({ method, context, service, xNode }) => {
|
|
6618
6777
|
return env?.requests?.post(
|
|
6619
6778
|
"/call" /* CALL_PATH */,
|
|
@@ -6648,10 +6807,10 @@ function useFormService() {
|
|
|
6648
6807
|
}
|
|
6649
6808
|
|
|
6650
6809
|
// src/services/kanban-service/index.ts
|
|
6651
|
-
var
|
|
6810
|
+
var import_react78 = require("react");
|
|
6652
6811
|
function useKanbanService() {
|
|
6653
6812
|
const { env } = useEnv();
|
|
6654
|
-
const getGroups = (0,
|
|
6813
|
+
const getGroups = (0, import_react78.useCallback)(
|
|
6655
6814
|
async ({ model, width_context }) => {
|
|
6656
6815
|
const jsonData = {
|
|
6657
6816
|
model,
|
|
@@ -6671,7 +6830,7 @@ function useKanbanService() {
|
|
|
6671
6830
|
},
|
|
6672
6831
|
[env]
|
|
6673
6832
|
);
|
|
6674
|
-
const getProgressBar = (0,
|
|
6833
|
+
const getProgressBar = (0, import_react78.useCallback)(
|
|
6675
6834
|
async ({ field, color, model, width_context }) => {
|
|
6676
6835
|
const jsonData = {
|
|
6677
6836
|
model,
|
|
@@ -6701,10 +6860,10 @@ function useKanbanService() {
|
|
|
6701
6860
|
}
|
|
6702
6861
|
|
|
6703
6862
|
// src/services/model-service/index.ts
|
|
6704
|
-
var
|
|
6863
|
+
var import_react79 = require("react");
|
|
6705
6864
|
function useModelService() {
|
|
6706
6865
|
const { env } = useEnv();
|
|
6707
|
-
const getListMyBankAccount = (0,
|
|
6866
|
+
const getListMyBankAccount = (0, import_react79.useCallback)(
|
|
6708
6867
|
async ({
|
|
6709
6868
|
domain,
|
|
6710
6869
|
spectification,
|
|
@@ -6728,7 +6887,7 @@ function useModelService() {
|
|
|
6728
6887
|
},
|
|
6729
6888
|
[env]
|
|
6730
6889
|
);
|
|
6731
|
-
const getCurrency = (0,
|
|
6890
|
+
const getCurrency = (0, import_react79.useCallback)(async () => {
|
|
6732
6891
|
const jsonData = {
|
|
6733
6892
|
model: "res.currency",
|
|
6734
6893
|
method: "web_search_read",
|
|
@@ -6748,7 +6907,7 @@ function useModelService() {
|
|
|
6748
6907
|
}
|
|
6749
6908
|
});
|
|
6750
6909
|
}, [env]);
|
|
6751
|
-
const getConversionRate = (0,
|
|
6910
|
+
const getConversionRate = (0, import_react79.useCallback)(async () => {
|
|
6752
6911
|
const jsonData = {
|
|
6753
6912
|
model: "res.currency",
|
|
6754
6913
|
method: "web_search_read",
|
|
@@ -6774,7 +6933,7 @@ function useModelService() {
|
|
|
6774
6933
|
}
|
|
6775
6934
|
});
|
|
6776
6935
|
}, [env]);
|
|
6777
|
-
const getAll = (0,
|
|
6936
|
+
const getAll = (0, import_react79.useCallback)(
|
|
6778
6937
|
async ({
|
|
6779
6938
|
data,
|
|
6780
6939
|
service,
|
|
@@ -6816,7 +6975,7 @@ function useModelService() {
|
|
|
6816
6975
|
},
|
|
6817
6976
|
[env]
|
|
6818
6977
|
);
|
|
6819
|
-
const getListCalendar = (0,
|
|
6978
|
+
const getListCalendar = (0, import_react79.useCallback)(
|
|
6820
6979
|
async ({ data }) => {
|
|
6821
6980
|
const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
6822
6981
|
fields: data.fields,
|
|
@@ -6847,7 +7006,7 @@ function useModelService() {
|
|
|
6847
7006
|
},
|
|
6848
7007
|
[env]
|
|
6849
7008
|
);
|
|
6850
|
-
const getList = (0,
|
|
7009
|
+
const getList = (0, import_react79.useCallback)(
|
|
6851
7010
|
async ({
|
|
6852
7011
|
model,
|
|
6853
7012
|
ids = [],
|
|
@@ -6879,7 +7038,7 @@ function useModelService() {
|
|
|
6879
7038
|
},
|
|
6880
7039
|
[env]
|
|
6881
7040
|
);
|
|
6882
|
-
const getDetail = (0,
|
|
7041
|
+
const getDetail = (0, import_react79.useCallback)(
|
|
6883
7042
|
async ({
|
|
6884
7043
|
ids = [],
|
|
6885
7044
|
model,
|
|
@@ -6911,7 +7070,7 @@ function useModelService() {
|
|
|
6911
7070
|
},
|
|
6912
7071
|
[env]
|
|
6913
7072
|
);
|
|
6914
|
-
const save = (0,
|
|
7073
|
+
const save = (0, import_react79.useCallback)(
|
|
6915
7074
|
async ({
|
|
6916
7075
|
model,
|
|
6917
7076
|
ids = [],
|
|
@@ -6946,7 +7105,7 @@ function useModelService() {
|
|
|
6946
7105
|
},
|
|
6947
7106
|
[env]
|
|
6948
7107
|
);
|
|
6949
|
-
const deleteApi = (0,
|
|
7108
|
+
const deleteApi = (0, import_react79.useCallback)(
|
|
6950
7109
|
async ({ ids = [], model, service }) => {
|
|
6951
7110
|
const jsonData = {
|
|
6952
7111
|
model,
|
|
@@ -6966,7 +7125,7 @@ function useModelService() {
|
|
|
6966
7125
|
},
|
|
6967
7126
|
[env]
|
|
6968
7127
|
);
|
|
6969
|
-
const onChange = (0,
|
|
7128
|
+
const onChange = (0, import_react79.useCallback)(
|
|
6970
7129
|
async ({
|
|
6971
7130
|
ids = [],
|
|
6972
7131
|
model,
|
|
@@ -7002,7 +7161,7 @@ function useModelService() {
|
|
|
7002
7161
|
},
|
|
7003
7162
|
[env]
|
|
7004
7163
|
);
|
|
7005
|
-
const getListFieldsOnchange = (0,
|
|
7164
|
+
const getListFieldsOnchange = (0, import_react79.useCallback)(
|
|
7006
7165
|
async ({
|
|
7007
7166
|
model,
|
|
7008
7167
|
service,
|
|
@@ -7026,7 +7185,7 @@ function useModelService() {
|
|
|
7026
7185
|
},
|
|
7027
7186
|
[env]
|
|
7028
7187
|
);
|
|
7029
|
-
const parseORMOdoo = (0,
|
|
7188
|
+
const parseORMOdoo = (0, import_react79.useCallback)((data) => {
|
|
7030
7189
|
for (const key in data) {
|
|
7031
7190
|
if (key === "display_name") {
|
|
7032
7191
|
delete data[key];
|
|
@@ -7037,7 +7196,7 @@ function useModelService() {
|
|
|
7037
7196
|
}
|
|
7038
7197
|
return { ...data };
|
|
7039
7198
|
}, []);
|
|
7040
|
-
const toDataJS = (0,
|
|
7199
|
+
const toDataJS = (0, import_react79.useCallback)(
|
|
7041
7200
|
(data, viewData, model) => {
|
|
7042
7201
|
for (const key in data) {
|
|
7043
7202
|
if (data[key] === false) {
|
|
@@ -7095,10 +7254,10 @@ function useModelService() {
|
|
|
7095
7254
|
}
|
|
7096
7255
|
|
|
7097
7256
|
// src/services/user-service/index.ts
|
|
7098
|
-
var
|
|
7257
|
+
var import_react80 = require("react");
|
|
7099
7258
|
function useUserService() {
|
|
7100
7259
|
const { env } = useEnv();
|
|
7101
|
-
const getProfile = (0,
|
|
7260
|
+
const getProfile = (0, import_react80.useCallback)(
|
|
7102
7261
|
async (service, path, extraHeaders) => {
|
|
7103
7262
|
return env?.requests?.get(
|
|
7104
7263
|
path || "/userinfo" /* PROFILE_PATH */,
|
|
@@ -7115,7 +7274,7 @@ function useUserService() {
|
|
|
7115
7274
|
},
|
|
7116
7275
|
[env]
|
|
7117
7276
|
);
|
|
7118
|
-
const getUser = (0,
|
|
7277
|
+
const getUser = (0, import_react80.useCallback)(
|
|
7119
7278
|
async ({ context, id }) => {
|
|
7120
7279
|
const jsonData = {
|
|
7121
7280
|
model: "res.users",
|
|
@@ -7153,7 +7312,7 @@ function useUserService() {
|
|
|
7153
7312
|
},
|
|
7154
7313
|
[env]
|
|
7155
7314
|
);
|
|
7156
|
-
const switchUserLocale = (0,
|
|
7315
|
+
const switchUserLocale = (0, import_react80.useCallback)(
|
|
7157
7316
|
async ({ id, values, service }) => {
|
|
7158
7317
|
const jsonData = {
|
|
7159
7318
|
model: "res.users",
|
|
@@ -7181,10 +7340,10 @@ function useUserService() {
|
|
|
7181
7340
|
}
|
|
7182
7341
|
|
|
7183
7342
|
// src/services/view-service/index.ts
|
|
7184
|
-
var
|
|
7343
|
+
var import_react81 = require("react");
|
|
7185
7344
|
function useViewService() {
|
|
7186
7345
|
const { env } = useEnv();
|
|
7187
|
-
const getView = (0,
|
|
7346
|
+
const getView = (0, import_react81.useCallback)(
|
|
7188
7347
|
async ({
|
|
7189
7348
|
model,
|
|
7190
7349
|
views,
|
|
@@ -7224,7 +7383,7 @@ function useViewService() {
|
|
|
7224
7383
|
},
|
|
7225
7384
|
[env]
|
|
7226
7385
|
);
|
|
7227
|
-
const getMenu = (0,
|
|
7386
|
+
const getMenu = (0, import_react81.useCallback)(
|
|
7228
7387
|
async (context, specification, domain, service) => {
|
|
7229
7388
|
const jsonData = {
|
|
7230
7389
|
model: "ir.ui.menu" /* MENU */,
|
|
@@ -7255,7 +7414,7 @@ function useViewService() {
|
|
|
7255
7414
|
},
|
|
7256
7415
|
[env]
|
|
7257
7416
|
);
|
|
7258
|
-
const getActionDetail = (0,
|
|
7417
|
+
const getActionDetail = (0, import_react81.useCallback)(
|
|
7259
7418
|
async (aid, context) => {
|
|
7260
7419
|
const jsonData = {
|
|
7261
7420
|
model: "ir.actions.act_window" /* WINDOW_ACTION */,
|
|
@@ -7285,7 +7444,7 @@ function useViewService() {
|
|
|
7285
7444
|
},
|
|
7286
7445
|
[env]
|
|
7287
7446
|
);
|
|
7288
|
-
const getResequence = (0,
|
|
7447
|
+
const getResequence = (0, import_react81.useCallback)(
|
|
7289
7448
|
async ({
|
|
7290
7449
|
model,
|
|
7291
7450
|
ids,
|
|
@@ -7315,7 +7474,7 @@ function useViewService() {
|
|
|
7315
7474
|
},
|
|
7316
7475
|
[env]
|
|
7317
7476
|
);
|
|
7318
|
-
const getSelectionItem = (0,
|
|
7477
|
+
const getSelectionItem = (0, import_react81.useCallback)(
|
|
7319
7478
|
async ({
|
|
7320
7479
|
data,
|
|
7321
7480
|
service,
|
|
@@ -7352,7 +7511,7 @@ function useViewService() {
|
|
|
7352
7511
|
},
|
|
7353
7512
|
[env]
|
|
7354
7513
|
);
|
|
7355
|
-
const loadMessages = (0,
|
|
7514
|
+
const loadMessages = (0, import_react81.useCallback)(async () => {
|
|
7356
7515
|
return env.requests.post(
|
|
7357
7516
|
"/load_message_failures" /* LOAD_MESSAGE */,
|
|
7358
7517
|
{},
|
|
@@ -7363,14 +7522,14 @@ function useViewService() {
|
|
|
7363
7522
|
}
|
|
7364
7523
|
);
|
|
7365
7524
|
}, [env]);
|
|
7366
|
-
const getVersion = (0,
|
|
7525
|
+
const getVersion = (0, import_react81.useCallback)(async () => {
|
|
7367
7526
|
return env?.requests?.get("", {
|
|
7368
7527
|
headers: {
|
|
7369
7528
|
"Content-Type": "application/json"
|
|
7370
7529
|
}
|
|
7371
7530
|
});
|
|
7372
7531
|
}, [env]);
|
|
7373
|
-
const grantAccess = (0,
|
|
7532
|
+
const grantAccess = (0, import_react81.useCallback)(
|
|
7374
7533
|
async ({
|
|
7375
7534
|
redirect_uri,
|
|
7376
7535
|
state,
|
|
@@ -7397,7 +7556,7 @@ function useViewService() {
|
|
|
7397
7556
|
},
|
|
7398
7557
|
[env]
|
|
7399
7558
|
);
|
|
7400
|
-
const removeTotpSetUp = (0,
|
|
7559
|
+
const removeTotpSetUp = (0, import_react81.useCallback)(
|
|
7401
7560
|
async ({ method, token }) => {
|
|
7402
7561
|
const jsonData = {
|
|
7403
7562
|
method,
|
|
@@ -7418,7 +7577,7 @@ function useViewService() {
|
|
|
7418
7577
|
},
|
|
7419
7578
|
[env]
|
|
7420
7579
|
);
|
|
7421
|
-
const requestSetupTotp = (0,
|
|
7580
|
+
const requestSetupTotp = (0, import_react81.useCallback)(
|
|
7422
7581
|
async ({ method, token }) => {
|
|
7423
7582
|
const jsonData = {
|
|
7424
7583
|
method,
|
|
@@ -7437,7 +7596,7 @@ function useViewService() {
|
|
|
7437
7596
|
},
|
|
7438
7597
|
[env]
|
|
7439
7598
|
);
|
|
7440
|
-
const settingsWebRead2fa = (0,
|
|
7599
|
+
const settingsWebRead2fa = (0, import_react81.useCallback)(
|
|
7441
7600
|
async ({
|
|
7442
7601
|
method,
|
|
7443
7602
|
model,
|
|
@@ -7465,7 +7624,7 @@ function useViewService() {
|
|
|
7465
7624
|
},
|
|
7466
7625
|
[env]
|
|
7467
7626
|
);
|
|
7468
|
-
const signInSSO = (0,
|
|
7627
|
+
const signInSSO = (0, import_react81.useCallback)(
|
|
7469
7628
|
async ({
|
|
7470
7629
|
redirect_uri,
|
|
7471
7630
|
state,
|
|
@@ -7497,7 +7656,7 @@ function useViewService() {
|
|
|
7497
7656
|
},
|
|
7498
7657
|
[env]
|
|
7499
7658
|
);
|
|
7500
|
-
const verify2FA = (0,
|
|
7659
|
+
const verify2FA = (0, import_react81.useCallback)(
|
|
7501
7660
|
({
|
|
7502
7661
|
method,
|
|
7503
7662
|
with_context,
|
|
@@ -7530,7 +7689,7 @@ function useViewService() {
|
|
|
7530
7689
|
},
|
|
7531
7690
|
[env]
|
|
7532
7691
|
);
|
|
7533
|
-
const get2FAMethods = (0,
|
|
7692
|
+
const get2FAMethods = (0, import_react81.useCallback)(
|
|
7534
7693
|
({ method, with_context }) => {
|
|
7535
7694
|
const jsonData = {
|
|
7536
7695
|
method,
|
|
@@ -7549,7 +7708,7 @@ function useViewService() {
|
|
|
7549
7708
|
},
|
|
7550
7709
|
[env]
|
|
7551
7710
|
);
|
|
7552
|
-
const verifyTotp = (0,
|
|
7711
|
+
const verifyTotp = (0, import_react81.useCallback)(
|
|
7553
7712
|
({
|
|
7554
7713
|
method,
|
|
7555
7714
|
action_token,
|
|
@@ -7574,7 +7733,7 @@ function useViewService() {
|
|
|
7574
7733
|
},
|
|
7575
7734
|
[env]
|
|
7576
7735
|
);
|
|
7577
|
-
const getNotifications = (0,
|
|
7736
|
+
const getNotifications = (0, import_react81.useCallback)(
|
|
7578
7737
|
async ({
|
|
7579
7738
|
service,
|
|
7580
7739
|
xNode,
|
|
@@ -7594,7 +7753,7 @@ function useViewService() {
|
|
|
7594
7753
|
},
|
|
7595
7754
|
[env]
|
|
7596
7755
|
);
|
|
7597
|
-
const getCountry = (0,
|
|
7756
|
+
const getCountry = (0, import_react81.useCallback)(
|
|
7598
7757
|
async ({
|
|
7599
7758
|
service,
|
|
7600
7759
|
xNode,
|
|
@@ -7621,7 +7780,7 @@ function useViewService() {
|
|
|
7621
7780
|
},
|
|
7622
7781
|
[env]
|
|
7623
7782
|
);
|
|
7624
|
-
const getCity = (0,
|
|
7783
|
+
const getCity = (0, import_react81.useCallback)(
|
|
7625
7784
|
async ({
|
|
7626
7785
|
service,
|
|
7627
7786
|
xNode,
|
|
@@ -7648,7 +7807,7 @@ function useViewService() {
|
|
|
7648
7807
|
},
|
|
7649
7808
|
[env]
|
|
7650
7809
|
);
|
|
7651
|
-
const getWard = (0,
|
|
7810
|
+
const getWard = (0, import_react81.useCallback)(
|
|
7652
7811
|
async ({
|
|
7653
7812
|
service,
|
|
7654
7813
|
xNode,
|
|
@@ -7673,7 +7832,7 @@ function useViewService() {
|
|
|
7673
7832
|
},
|
|
7674
7833
|
[env]
|
|
7675
7834
|
);
|
|
7676
|
-
const getPartnerTitle = (0,
|
|
7835
|
+
const getPartnerTitle = (0, import_react81.useCallback)(
|
|
7677
7836
|
async ({
|
|
7678
7837
|
service,
|
|
7679
7838
|
xNode,
|
|
@@ -7725,10 +7884,10 @@ function useViewService() {
|
|
|
7725
7884
|
}
|
|
7726
7885
|
|
|
7727
7886
|
// src/services/dashboard-service/index.ts
|
|
7728
|
-
var
|
|
7887
|
+
var import_react82 = require("react");
|
|
7729
7888
|
function useDashboardService() {
|
|
7730
7889
|
const { env } = useEnv();
|
|
7731
|
-
const readGroup = (0,
|
|
7890
|
+
const readGroup = (0, import_react82.useCallback)(
|
|
7732
7891
|
async ({
|
|
7733
7892
|
service,
|
|
7734
7893
|
xNode,
|
|
@@ -7745,7 +7904,7 @@ function useDashboardService() {
|
|
|
7745
7904
|
},
|
|
7746
7905
|
[env]
|
|
7747
7906
|
);
|
|
7748
|
-
const getDataChart = (0,
|
|
7907
|
+
const getDataChart = (0, import_react82.useCallback)(
|
|
7749
7908
|
async ({
|
|
7750
7909
|
service,
|
|
7751
7910
|
xNode,
|