@fctc/interface-logic 4.9.7 → 4.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants.d.mts +5 -1
- package/dist/constants.d.ts +5 -1
- package/dist/constants.js +11 -1
- package/dist/constants.mjs +11 -1
- package/dist/hooks.d.mts +15 -1
- package/dist/hooks.d.ts +15 -1
- package/dist/hooks.js +128 -4
- package/dist/hooks.mjs +125 -4
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +134 -4
- package/dist/index.mjs +131 -4
- package/dist/provider.d.mts +4 -1
- package/dist/provider.d.ts +4 -1
- package/dist/provider.js +146 -25
- package/dist/provider.mjs +135 -14
- package/dist/services.d.mts +14 -0
- package/dist/services.d.ts +14 -0
- package/dist/services.js +196 -99
- package/dist/services.mjs +193 -96
- package/package.json +1 -1
package/dist/services.js
CHANGED
|
@@ -45,13 +45,14 @@ __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_react65 = require("react");
|
|
49
49
|
|
|
50
50
|
// src/constants/api/uri-constant.ts
|
|
51
51
|
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
52
52
|
UriConstants2["AUTH_TOKEN_PATH"] = "/authentication/oauth2/token";
|
|
53
53
|
UriConstants2["GENTOKEN_SOCIAL"] = "/token/generate";
|
|
54
54
|
UriConstants2["CALL_PATH"] = "/call";
|
|
55
|
+
UriConstants2["SUPABASE_CALL_PATH"] = "/api/v2/call";
|
|
55
56
|
UriConstants2["COMPANY_PATH"] = "/company";
|
|
56
57
|
UriConstants2["PROFILE_PATH"] = "/userinfo";
|
|
57
58
|
UriConstants2["RESET_PASSWORD_PATH"] = "/reset_password";
|
|
@@ -166,9 +167,15 @@ var MODEL_TO_TABLE = {
|
|
|
166
167
|
["pos.payment.method" /* POS_PAYMENT_METHOD */]: "payment_methods" /* PAYMENT_METHODS */,
|
|
167
168
|
["pos.payment" /* POS_PAYMENT */]: "payments" /* PAYMENTS */,
|
|
168
169
|
["pos.category" /* POS_CATEGORY */]: "pos_categories" /* POS_CATEGORIES */,
|
|
170
|
+
["product.attribute" /* PRODUCT_ATTRIBUTE */]: "product_attributes" /* PRODUCT_ATTRIBUTES */,
|
|
171
|
+
["product.template.attribute.line" /* PRODUCT_TEMPLATE_ATTRIBUTE_LINE */]: "product_template_attribute_lines" /* PRODUCT_TEMPLATE_ATTRIBUTE_LINES */,
|
|
172
|
+
["product.template.attribute.value" /* PRODUCT_TEMPLATE_ATTRIBUTE_VALUE */]: "product_template_attribute_values" /* PRODUCT_TEMPLATE_ATTRIBUTE_VALUES */,
|
|
169
173
|
["product.product" /* PRODUCT_PRODUCT */]: "products" /* PRODUCTS */,
|
|
170
174
|
["restaurant.floor" /* RESTAURANT_FLOOR */]: "restaurant_floors" /* RESTAURANT_FLOORS */,
|
|
171
|
-
["restaurant.table" /* RESTAURANT_TABLE */]: "restaurant_tables" /* RESTAURANT_TABLES
|
|
175
|
+
["restaurant.table" /* RESTAURANT_TABLE */]: "restaurant_tables" /* RESTAURANT_TABLES */,
|
|
176
|
+
["res.country.state" /* RES_COUNTRY_STATE */]: "states" /* STATES */,
|
|
177
|
+
["res.country.ward" /* COUNTRY_WARD */]: "wards" /* WARDS */,
|
|
178
|
+
["res.partner.title" /* RES_PARTNER_TITLE */]: "partner_titles" /* PARTNER_TITLES */
|
|
172
179
|
};
|
|
173
180
|
|
|
174
181
|
// src/utils/domain/py_tokenizer.ts
|
|
@@ -2958,7 +2965,7 @@ function useEnv() {
|
|
|
2958
2965
|
}
|
|
2959
2966
|
|
|
2960
2967
|
// src/provider/service-provider.tsx
|
|
2961
|
-
var
|
|
2968
|
+
var import_react63 = require("react");
|
|
2962
2969
|
|
|
2963
2970
|
// src/hooks/auth/use-forgot-password.ts
|
|
2964
2971
|
var import_react_query3 = require("@tanstack/react-query");
|
|
@@ -5175,6 +5182,7 @@ var uploadImageSupabaseService = () => {
|
|
|
5175
5182
|
return { url: null, error: uploadError };
|
|
5176
5183
|
}
|
|
5177
5184
|
const { data: urlData } = supabase.storage.from(bucketName).getPublicUrl(fileName);
|
|
5185
|
+
console.log("urlData", urlData);
|
|
5178
5186
|
return { url: urlData.publicUrl, error: null };
|
|
5179
5187
|
} catch (error) {
|
|
5180
5188
|
console.error("Error uploading image:", error);
|
|
@@ -5188,6 +5196,83 @@ var uploadImageSupabaseService = () => {
|
|
|
5188
5196
|
};
|
|
5189
5197
|
};
|
|
5190
5198
|
|
|
5199
|
+
// src/services/pos-service/supabase/get-list-users.ts
|
|
5200
|
+
var import_react60 = require("react");
|
|
5201
|
+
var getListUsersService = (env) => {
|
|
5202
|
+
const getListUsers = (0, import_react60.useCallback)(
|
|
5203
|
+
({ tenantId }) => {
|
|
5204
|
+
const jsonData = {
|
|
5205
|
+
model: "tenant.users",
|
|
5206
|
+
method: "search_read"
|
|
5207
|
+
};
|
|
5208
|
+
return env?.requests.post("/api/v2/call" /* SUPABASE_CALL_PATH */, jsonData, {
|
|
5209
|
+
headers: {
|
|
5210
|
+
"Content-Type": "application/json",
|
|
5211
|
+
"x-tenant-id": tenantId
|
|
5212
|
+
}
|
|
5213
|
+
});
|
|
5214
|
+
},
|
|
5215
|
+
[env]
|
|
5216
|
+
);
|
|
5217
|
+
return {
|
|
5218
|
+
getListUsers
|
|
5219
|
+
};
|
|
5220
|
+
};
|
|
5221
|
+
|
|
5222
|
+
// src/services/pos-service/supabase/get-list-roles.ts
|
|
5223
|
+
var import_react61 = require("react");
|
|
5224
|
+
var getListRolesService = (env) => {
|
|
5225
|
+
const getListRoles = (0, import_react61.useCallback)(
|
|
5226
|
+
({ tenantId }) => {
|
|
5227
|
+
const jsonData = {
|
|
5228
|
+
model: "tenant.roles",
|
|
5229
|
+
method: "search_read"
|
|
5230
|
+
};
|
|
5231
|
+
return env?.requests.post("/api/v2/call" /* SUPABASE_CALL_PATH */, jsonData, {
|
|
5232
|
+
headers: {
|
|
5233
|
+
"Content-Type": "application/json",
|
|
5234
|
+
"x-tenant-id": tenantId
|
|
5235
|
+
}
|
|
5236
|
+
});
|
|
5237
|
+
},
|
|
5238
|
+
[env]
|
|
5239
|
+
);
|
|
5240
|
+
return {
|
|
5241
|
+
getListRoles
|
|
5242
|
+
};
|
|
5243
|
+
};
|
|
5244
|
+
|
|
5245
|
+
// src/services/pos-service/supabase/assign-role.ts
|
|
5246
|
+
var import_react62 = require("react");
|
|
5247
|
+
var assignRoleService = (env) => {
|
|
5248
|
+
const assignRole = (0, import_react62.useCallback)(
|
|
5249
|
+
({
|
|
5250
|
+
tenantId,
|
|
5251
|
+
userId,
|
|
5252
|
+
roleId
|
|
5253
|
+
}) => {
|
|
5254
|
+
const jsonData = {
|
|
5255
|
+
model: "tenant.user_roles",
|
|
5256
|
+
method: "assign",
|
|
5257
|
+
kwargs: {
|
|
5258
|
+
user_id: userId,
|
|
5259
|
+
role_id: roleId
|
|
5260
|
+
}
|
|
5261
|
+
};
|
|
5262
|
+
return env?.requests.post("/api/v2/call" /* SUPABASE_CALL_PATH */, jsonData, {
|
|
5263
|
+
headers: {
|
|
5264
|
+
"Content-Type": "application/json",
|
|
5265
|
+
"x-tenant-id": tenantId
|
|
5266
|
+
}
|
|
5267
|
+
});
|
|
5268
|
+
},
|
|
5269
|
+
[env]
|
|
5270
|
+
);
|
|
5271
|
+
return {
|
|
5272
|
+
assignRole
|
|
5273
|
+
};
|
|
5274
|
+
};
|
|
5275
|
+
|
|
5191
5276
|
// src/services/pos-service/index.ts
|
|
5192
5277
|
var serviceFactories = [
|
|
5193
5278
|
addEntityService,
|
|
@@ -5242,7 +5327,10 @@ var serviceFactories = [
|
|
|
5242
5327
|
createCustomerSupabaseService,
|
|
5243
5328
|
updateCustomerSupabaseService,
|
|
5244
5329
|
deleteCustomerSupabaseService,
|
|
5245
|
-
uploadImageSupabaseService
|
|
5330
|
+
uploadImageSupabaseService,
|
|
5331
|
+
getListUsersService,
|
|
5332
|
+
getListRolesService,
|
|
5333
|
+
assignRoleService
|
|
5246
5334
|
];
|
|
5247
5335
|
var usePosService = () => {
|
|
5248
5336
|
const { env } = useEnv();
|
|
@@ -5410,18 +5498,27 @@ var import_react_query137 = require("@tanstack/react-query");
|
|
|
5410
5498
|
// src/hooks/pos/supabase/use-supa-upload-image.ts
|
|
5411
5499
|
var import_react_query138 = require("@tanstack/react-query");
|
|
5412
5500
|
|
|
5501
|
+
// src/hooks/pos/supabase/use-get-list-users.ts
|
|
5502
|
+
var import_react_query139 = require("@tanstack/react-query");
|
|
5503
|
+
|
|
5504
|
+
// src/hooks/pos/supabase/use-get-list-roles.ts
|
|
5505
|
+
var import_react_query140 = require("@tanstack/react-query");
|
|
5506
|
+
|
|
5507
|
+
// src/hooks/pos/supabase/use-assign-role.ts
|
|
5508
|
+
var import_react_query141 = require("@tanstack/react-query");
|
|
5509
|
+
|
|
5413
5510
|
// src/provider/service-provider.tsx
|
|
5414
5511
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
5415
|
-
var ServiceContext = (0,
|
|
5512
|
+
var ServiceContext = (0, import_react63.createContext)(null);
|
|
5416
5513
|
|
|
5417
5514
|
// src/provider/meta-provider.tsx
|
|
5418
|
-
var
|
|
5515
|
+
var import_react64 = require("react");
|
|
5419
5516
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
5420
5517
|
|
|
5421
5518
|
// src/services/action-service/index.ts
|
|
5422
5519
|
function useActionService() {
|
|
5423
5520
|
const { env } = useEnv();
|
|
5424
|
-
const loadAction = (0,
|
|
5521
|
+
const loadAction = (0, import_react65.useCallback)(
|
|
5425
5522
|
async ({
|
|
5426
5523
|
idAction,
|
|
5427
5524
|
context,
|
|
@@ -5445,7 +5542,7 @@ function useActionService() {
|
|
|
5445
5542
|
},
|
|
5446
5543
|
[env]
|
|
5447
5544
|
);
|
|
5448
|
-
const callButton = (0,
|
|
5545
|
+
const callButton = (0, import_react65.useCallback)(
|
|
5449
5546
|
async ({
|
|
5450
5547
|
model,
|
|
5451
5548
|
ids = [],
|
|
@@ -5479,7 +5576,7 @@ function useActionService() {
|
|
|
5479
5576
|
},
|
|
5480
5577
|
[env]
|
|
5481
5578
|
);
|
|
5482
|
-
const removeRows = (0,
|
|
5579
|
+
const removeRows = (0, import_react65.useCallback)(
|
|
5483
5580
|
async ({
|
|
5484
5581
|
model,
|
|
5485
5582
|
ids,
|
|
@@ -5505,7 +5602,7 @@ function useActionService() {
|
|
|
5505
5602
|
},
|
|
5506
5603
|
[env]
|
|
5507
5604
|
);
|
|
5508
|
-
const duplicateRecord = (0,
|
|
5605
|
+
const duplicateRecord = (0, import_react65.useCallback)(
|
|
5509
5606
|
async ({
|
|
5510
5607
|
model,
|
|
5511
5608
|
id,
|
|
@@ -5531,7 +5628,7 @@ function useActionService() {
|
|
|
5531
5628
|
},
|
|
5532
5629
|
[env]
|
|
5533
5630
|
);
|
|
5534
|
-
const getPrintReportName = (0,
|
|
5631
|
+
const getPrintReportName = (0, import_react65.useCallback)(
|
|
5535
5632
|
async ({ id }) => {
|
|
5536
5633
|
const jsonData = {
|
|
5537
5634
|
model: "ir.actions.report",
|
|
@@ -5549,7 +5646,7 @@ function useActionService() {
|
|
|
5549
5646
|
},
|
|
5550
5647
|
[env]
|
|
5551
5648
|
);
|
|
5552
|
-
const print = (0,
|
|
5649
|
+
const print = (0, import_react65.useCallback)(
|
|
5553
5650
|
async ({ id, report, db }) => {
|
|
5554
5651
|
const jsonData = {
|
|
5555
5652
|
report,
|
|
@@ -5567,7 +5664,7 @@ function useActionService() {
|
|
|
5567
5664
|
},
|
|
5568
5665
|
[env]
|
|
5569
5666
|
);
|
|
5570
|
-
const runAction = (0,
|
|
5667
|
+
const runAction = (0, import_react65.useCallback)(
|
|
5571
5668
|
async ({
|
|
5572
5669
|
idAction,
|
|
5573
5670
|
context,
|
|
@@ -5594,7 +5691,7 @@ function useActionService() {
|
|
|
5594
5691
|
},
|
|
5595
5692
|
[env]
|
|
5596
5693
|
);
|
|
5597
|
-
const generateSerialNumber = (0,
|
|
5694
|
+
const generateSerialNumber = (0, import_react65.useCallback)(
|
|
5598
5695
|
async ({
|
|
5599
5696
|
kwargs,
|
|
5600
5697
|
context,
|
|
@@ -5619,7 +5716,7 @@ function useActionService() {
|
|
|
5619
5716
|
},
|
|
5620
5717
|
[env]
|
|
5621
5718
|
);
|
|
5622
|
-
const actionServerHome = (0,
|
|
5719
|
+
const actionServerHome = (0, import_react65.useCallback)(async () => {
|
|
5623
5720
|
return env?.requests?.get("/action_server_home" /* ACTION_SERVER_HOME */);
|
|
5624
5721
|
}, [env]);
|
|
5625
5722
|
return {
|
|
@@ -5636,11 +5733,11 @@ function useActionService() {
|
|
|
5636
5733
|
}
|
|
5637
5734
|
|
|
5638
5735
|
// src/services/auth-service/index.ts
|
|
5639
|
-
var
|
|
5736
|
+
var import_react66 = require("react");
|
|
5640
5737
|
function useAuthService() {
|
|
5641
5738
|
const { env } = useEnv();
|
|
5642
5739
|
const supabase = useSupabaseOptional();
|
|
5643
|
-
const login = (0,
|
|
5740
|
+
const login = (0, import_react66.useCallback)(
|
|
5644
5741
|
async (body) => {
|
|
5645
5742
|
const payload = Object.fromEntries(
|
|
5646
5743
|
Object.entries({
|
|
@@ -5665,7 +5762,7 @@ function useAuthService() {
|
|
|
5665
5762
|
},
|
|
5666
5763
|
[env]
|
|
5667
5764
|
);
|
|
5668
|
-
const loginTenantUser = (0,
|
|
5765
|
+
const loginTenantUser = (0, import_react66.useCallback)(
|
|
5669
5766
|
async (body) => {
|
|
5670
5767
|
const payload = {
|
|
5671
5768
|
email: body.email,
|
|
@@ -5680,7 +5777,7 @@ function useAuthService() {
|
|
|
5680
5777
|
},
|
|
5681
5778
|
[env]
|
|
5682
5779
|
);
|
|
5683
|
-
const forgotPassword = (0,
|
|
5780
|
+
const forgotPassword = (0, import_react66.useCallback)(
|
|
5684
5781
|
async (email) => {
|
|
5685
5782
|
const bodyData = {
|
|
5686
5783
|
login: email,
|
|
@@ -5694,7 +5791,7 @@ function useAuthService() {
|
|
|
5694
5791
|
},
|
|
5695
5792
|
[env]
|
|
5696
5793
|
);
|
|
5697
|
-
const forgotPasswordSSO = (0,
|
|
5794
|
+
const forgotPasswordSSO = (0, import_react66.useCallback)(
|
|
5698
5795
|
async ({
|
|
5699
5796
|
email,
|
|
5700
5797
|
with_context,
|
|
@@ -5717,7 +5814,7 @@ function useAuthService() {
|
|
|
5717
5814
|
},
|
|
5718
5815
|
[env]
|
|
5719
5816
|
);
|
|
5720
|
-
const resetPassword = (0,
|
|
5817
|
+
const resetPassword = (0, import_react66.useCallback)(
|
|
5721
5818
|
async (data, token) => {
|
|
5722
5819
|
const bodyData = {
|
|
5723
5820
|
token,
|
|
@@ -5732,7 +5829,7 @@ function useAuthService() {
|
|
|
5732
5829
|
},
|
|
5733
5830
|
[env]
|
|
5734
5831
|
);
|
|
5735
|
-
const resetPasswordSSO = (0,
|
|
5832
|
+
const resetPasswordSSO = (0, import_react66.useCallback)(
|
|
5736
5833
|
async ({
|
|
5737
5834
|
method,
|
|
5738
5835
|
password,
|
|
@@ -5755,7 +5852,7 @@ function useAuthService() {
|
|
|
5755
5852
|
},
|
|
5756
5853
|
[env]
|
|
5757
5854
|
);
|
|
5758
|
-
const updatePassword = (0,
|
|
5855
|
+
const updatePassword = (0, import_react66.useCallback)(
|
|
5759
5856
|
async (data, token) => {
|
|
5760
5857
|
const bodyData = {
|
|
5761
5858
|
token,
|
|
@@ -5770,7 +5867,7 @@ function useAuthService() {
|
|
|
5770
5867
|
},
|
|
5771
5868
|
[env]
|
|
5772
5869
|
);
|
|
5773
|
-
const isValidToken = (0,
|
|
5870
|
+
const isValidToken = (0, import_react66.useCallback)(
|
|
5774
5871
|
async (token) => {
|
|
5775
5872
|
const bodyData = {
|
|
5776
5873
|
token
|
|
@@ -5783,7 +5880,7 @@ function useAuthService() {
|
|
|
5783
5880
|
},
|
|
5784
5881
|
[env]
|
|
5785
5882
|
);
|
|
5786
|
-
const isValidActionToken = (0,
|
|
5883
|
+
const isValidActionToken = (0, import_react66.useCallback)(
|
|
5787
5884
|
async (actionToken) => {
|
|
5788
5885
|
const bodyData = {};
|
|
5789
5886
|
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
@@ -5796,7 +5893,7 @@ function useAuthService() {
|
|
|
5796
5893
|
},
|
|
5797
5894
|
[env]
|
|
5798
5895
|
);
|
|
5799
|
-
const loginSocial = (0,
|
|
5896
|
+
const loginSocial = (0, import_react66.useCallback)(
|
|
5800
5897
|
async ({
|
|
5801
5898
|
db,
|
|
5802
5899
|
state,
|
|
@@ -5814,13 +5911,13 @@ function useAuthService() {
|
|
|
5814
5911
|
},
|
|
5815
5912
|
[env]
|
|
5816
5913
|
);
|
|
5817
|
-
const getProviders = (0,
|
|
5914
|
+
const getProviders = (0, import_react66.useCallback)(
|
|
5818
5915
|
async (db) => {
|
|
5819
5916
|
return env?.requests?.get("/oauth/providers", { params: { db } });
|
|
5820
5917
|
},
|
|
5821
5918
|
[env]
|
|
5822
5919
|
);
|
|
5823
|
-
const getAccessByCode = (0,
|
|
5920
|
+
const getAccessByCode = (0, import_react66.useCallback)(
|
|
5824
5921
|
async (code) => {
|
|
5825
5922
|
const data = new URLSearchParams();
|
|
5826
5923
|
data.append("code", code);
|
|
@@ -5840,7 +5937,7 @@ function useAuthService() {
|
|
|
5840
5937
|
},
|
|
5841
5938
|
[env]
|
|
5842
5939
|
);
|
|
5843
|
-
const logout = (0,
|
|
5940
|
+
const logout = (0, import_react66.useCallback)(
|
|
5844
5941
|
async (service) => {
|
|
5845
5942
|
return env?.requests?.post(
|
|
5846
5943
|
"/logout" /* LOGOUT */,
|
|
@@ -5857,7 +5954,7 @@ function useAuthService() {
|
|
|
5857
5954
|
},
|
|
5858
5955
|
[env]
|
|
5859
5956
|
);
|
|
5860
|
-
const getTenantMapping = (0,
|
|
5957
|
+
const getTenantMapping = (0, import_react66.useCallback)(
|
|
5861
5958
|
async ({ shortName, service }) => {
|
|
5862
5959
|
const bodyData = {
|
|
5863
5960
|
short_name: shortName
|
|
@@ -5875,7 +5972,7 @@ function useAuthService() {
|
|
|
5875
5972
|
},
|
|
5876
5973
|
[env]
|
|
5877
5974
|
);
|
|
5878
|
-
const getToken = (0,
|
|
5975
|
+
const getToken = (0, import_react66.useCallback)(
|
|
5879
5976
|
async ({
|
|
5880
5977
|
phone,
|
|
5881
5978
|
name,
|
|
@@ -5920,10 +6017,10 @@ function useAuthService() {
|
|
|
5920
6017
|
}
|
|
5921
6018
|
|
|
5922
6019
|
// src/services/company-service/index.ts
|
|
5923
|
-
var
|
|
6020
|
+
var import_react67 = require("react");
|
|
5924
6021
|
function useCompanyService() {
|
|
5925
6022
|
const { env } = useEnv();
|
|
5926
|
-
const getCurrentCompany = (0,
|
|
6023
|
+
const getCurrentCompany = (0, import_react67.useCallback)(
|
|
5927
6024
|
async (service, extraHeaders) => {
|
|
5928
6025
|
return await env.requests.get(
|
|
5929
6026
|
"/company" /* COMPANY_PATH */,
|
|
@@ -5940,7 +6037,7 @@ function useCompanyService() {
|
|
|
5940
6037
|
},
|
|
5941
6038
|
[env]
|
|
5942
6039
|
);
|
|
5943
|
-
const getInfoCompany = (0,
|
|
6040
|
+
const getInfoCompany = (0, import_react67.useCallback)(
|
|
5944
6041
|
async (id, service) => {
|
|
5945
6042
|
const jsonData = {
|
|
5946
6043
|
ids: [id],
|
|
@@ -5976,10 +6073,10 @@ function useCompanyService() {
|
|
|
5976
6073
|
}
|
|
5977
6074
|
|
|
5978
6075
|
// src/services/excel-service/index.ts
|
|
5979
|
-
var
|
|
6076
|
+
var import_react68 = require("react");
|
|
5980
6077
|
function useExcelService() {
|
|
5981
6078
|
const { env } = useEnv();
|
|
5982
|
-
const uploadFileExcel = (0,
|
|
6079
|
+
const uploadFileExcel = (0, import_react68.useCallback)(
|
|
5983
6080
|
async ({
|
|
5984
6081
|
formData,
|
|
5985
6082
|
service,
|
|
@@ -5996,7 +6093,7 @@ function useExcelService() {
|
|
|
5996
6093
|
},
|
|
5997
6094
|
[env]
|
|
5998
6095
|
);
|
|
5999
|
-
const uploadIdFile = (0,
|
|
6096
|
+
const uploadIdFile = (0, import_react68.useCallback)(
|
|
6000
6097
|
async ({
|
|
6001
6098
|
formData,
|
|
6002
6099
|
service,
|
|
@@ -6013,7 +6110,7 @@ function useExcelService() {
|
|
|
6013
6110
|
},
|
|
6014
6111
|
[env]
|
|
6015
6112
|
);
|
|
6016
|
-
const parsePreview = (0,
|
|
6113
|
+
const parsePreview = (0, import_react68.useCallback)(
|
|
6017
6114
|
async ({
|
|
6018
6115
|
id,
|
|
6019
6116
|
selectedSheet,
|
|
@@ -6062,7 +6159,7 @@ function useExcelService() {
|
|
|
6062
6159
|
},
|
|
6063
6160
|
[env]
|
|
6064
6161
|
);
|
|
6065
|
-
const executeImport = (0,
|
|
6162
|
+
const executeImport = (0, import_react68.useCallback)(
|
|
6066
6163
|
async ({
|
|
6067
6164
|
columns,
|
|
6068
6165
|
fields,
|
|
@@ -6096,7 +6193,7 @@ function useExcelService() {
|
|
|
6096
6193
|
},
|
|
6097
6194
|
[env]
|
|
6098
6195
|
);
|
|
6099
|
-
const getFileExcel = (0,
|
|
6196
|
+
const getFileExcel = (0, import_react68.useCallback)(
|
|
6100
6197
|
async ({
|
|
6101
6198
|
model,
|
|
6102
6199
|
service,
|
|
@@ -6120,7 +6217,7 @@ function useExcelService() {
|
|
|
6120
6217
|
},
|
|
6121
6218
|
[env]
|
|
6122
6219
|
);
|
|
6123
|
-
const getFieldExport = (0,
|
|
6220
|
+
const getFieldExport = (0, import_react68.useCallback)(
|
|
6124
6221
|
async ({
|
|
6125
6222
|
ids,
|
|
6126
6223
|
model,
|
|
@@ -6160,7 +6257,7 @@ function useExcelService() {
|
|
|
6160
6257
|
},
|
|
6161
6258
|
[env]
|
|
6162
6259
|
);
|
|
6163
|
-
const exportExcel = (0,
|
|
6260
|
+
const exportExcel = (0, import_react68.useCallback)(
|
|
6164
6261
|
async ({
|
|
6165
6262
|
model,
|
|
6166
6263
|
domain,
|
|
@@ -6208,10 +6305,10 @@ function useExcelService() {
|
|
|
6208
6305
|
}
|
|
6209
6306
|
|
|
6210
6307
|
// src/services/form-service/index.ts
|
|
6211
|
-
var
|
|
6308
|
+
var import_react69 = require("react");
|
|
6212
6309
|
function useFormService() {
|
|
6213
6310
|
const { env } = useEnv();
|
|
6214
|
-
const getComment = (0,
|
|
6311
|
+
const getComment = (0, import_react69.useCallback)(
|
|
6215
6312
|
async ({ data }) => {
|
|
6216
6313
|
const jsonData = {
|
|
6217
6314
|
thread_id: data.thread_id,
|
|
@@ -6229,7 +6326,7 @@ function useFormService() {
|
|
|
6229
6326
|
},
|
|
6230
6327
|
[env]
|
|
6231
6328
|
);
|
|
6232
|
-
const getThreadData = (0,
|
|
6329
|
+
const getThreadData = (0, import_react69.useCallback)(
|
|
6233
6330
|
async ({
|
|
6234
6331
|
data,
|
|
6235
6332
|
xNode,
|
|
@@ -6256,7 +6353,7 @@ function useFormService() {
|
|
|
6256
6353
|
},
|
|
6257
6354
|
[env]
|
|
6258
6355
|
);
|
|
6259
|
-
const getThreadMessages = (0,
|
|
6356
|
+
const getThreadMessages = (0, import_react69.useCallback)(
|
|
6260
6357
|
async ({
|
|
6261
6358
|
data,
|
|
6262
6359
|
xNode,
|
|
@@ -6282,7 +6379,7 @@ function useFormService() {
|
|
|
6282
6379
|
},
|
|
6283
6380
|
[env]
|
|
6284
6381
|
);
|
|
6285
|
-
const sentComment = (0,
|
|
6382
|
+
const sentComment = (0, import_react69.useCallback)(
|
|
6286
6383
|
async ({ data }) => {
|
|
6287
6384
|
const jsonData = {
|
|
6288
6385
|
context: {
|
|
@@ -6310,7 +6407,7 @@ function useFormService() {
|
|
|
6310
6407
|
},
|
|
6311
6408
|
[env]
|
|
6312
6409
|
);
|
|
6313
|
-
const deleteComment = (0,
|
|
6410
|
+
const deleteComment = (0, import_react69.useCallback)(
|
|
6314
6411
|
async ({ data }) => {
|
|
6315
6412
|
const jsonData = {
|
|
6316
6413
|
attachment_ids: [],
|
|
@@ -6326,7 +6423,7 @@ function useFormService() {
|
|
|
6326
6423
|
},
|
|
6327
6424
|
[env]
|
|
6328
6425
|
);
|
|
6329
|
-
const getImage = (0,
|
|
6426
|
+
const getImage = (0, import_react69.useCallback)(
|
|
6330
6427
|
async ({ data }) => {
|
|
6331
6428
|
return env.requests.get(
|
|
6332
6429
|
`${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
|
|
@@ -6339,7 +6436,7 @@ function useFormService() {
|
|
|
6339
6436
|
},
|
|
6340
6437
|
[env]
|
|
6341
6438
|
);
|
|
6342
|
-
const uploadImage = (0,
|
|
6439
|
+
const uploadImage = (0, import_react69.useCallback)(
|
|
6343
6440
|
async ({
|
|
6344
6441
|
formData,
|
|
6345
6442
|
service,
|
|
@@ -6358,7 +6455,7 @@ function useFormService() {
|
|
|
6358
6455
|
},
|
|
6359
6456
|
[env]
|
|
6360
6457
|
);
|
|
6361
|
-
const uploadFile = (0,
|
|
6458
|
+
const uploadFile = (0, import_react69.useCallback)(
|
|
6362
6459
|
async ({
|
|
6363
6460
|
formData,
|
|
6364
6461
|
service,
|
|
@@ -6378,7 +6475,7 @@ function useFormService() {
|
|
|
6378
6475
|
},
|
|
6379
6476
|
[env]
|
|
6380
6477
|
);
|
|
6381
|
-
const getFormView = (0,
|
|
6478
|
+
const getFormView = (0, import_react69.useCallback)(
|
|
6382
6479
|
async ({ data }) => {
|
|
6383
6480
|
const jsonData = {
|
|
6384
6481
|
model: data.model,
|
|
@@ -6394,7 +6491,7 @@ function useFormService() {
|
|
|
6394
6491
|
},
|
|
6395
6492
|
[env]
|
|
6396
6493
|
);
|
|
6397
|
-
const changeStatus = (0,
|
|
6494
|
+
const changeStatus = (0, import_react69.useCallback)(
|
|
6398
6495
|
async ({ data }) => {
|
|
6399
6496
|
const vals = {
|
|
6400
6497
|
[data.name]: data.stage_id
|
|
@@ -6423,7 +6520,7 @@ function useFormService() {
|
|
|
6423
6520
|
},
|
|
6424
6521
|
[env]
|
|
6425
6522
|
);
|
|
6426
|
-
const getExternalTab = (0,
|
|
6523
|
+
const getExternalTab = (0, import_react69.useCallback)(
|
|
6427
6524
|
async ({ method, context, service, xNode }) => {
|
|
6428
6525
|
return env?.requests?.post(
|
|
6429
6526
|
"/call" /* CALL_PATH */,
|
|
@@ -6458,10 +6555,10 @@ function useFormService() {
|
|
|
6458
6555
|
}
|
|
6459
6556
|
|
|
6460
6557
|
// src/services/kanban-service/index.ts
|
|
6461
|
-
var
|
|
6558
|
+
var import_react70 = require("react");
|
|
6462
6559
|
function useKanbanService() {
|
|
6463
6560
|
const { env } = useEnv();
|
|
6464
|
-
const getGroups = (0,
|
|
6561
|
+
const getGroups = (0, import_react70.useCallback)(
|
|
6465
6562
|
async ({ model, width_context }) => {
|
|
6466
6563
|
const jsonData = {
|
|
6467
6564
|
model,
|
|
@@ -6481,7 +6578,7 @@ function useKanbanService() {
|
|
|
6481
6578
|
},
|
|
6482
6579
|
[env]
|
|
6483
6580
|
);
|
|
6484
|
-
const getProgressBar = (0,
|
|
6581
|
+
const getProgressBar = (0, import_react70.useCallback)(
|
|
6485
6582
|
async ({ field, color, model, width_context }) => {
|
|
6486
6583
|
const jsonData = {
|
|
6487
6584
|
model,
|
|
@@ -6511,10 +6608,10 @@ function useKanbanService() {
|
|
|
6511
6608
|
}
|
|
6512
6609
|
|
|
6513
6610
|
// src/services/model-service/index.ts
|
|
6514
|
-
var
|
|
6611
|
+
var import_react71 = require("react");
|
|
6515
6612
|
function useModelService() {
|
|
6516
6613
|
const { env } = useEnv();
|
|
6517
|
-
const getListMyBankAccount = (0,
|
|
6614
|
+
const getListMyBankAccount = (0, import_react71.useCallback)(
|
|
6518
6615
|
async ({
|
|
6519
6616
|
domain,
|
|
6520
6617
|
spectification,
|
|
@@ -6538,7 +6635,7 @@ function useModelService() {
|
|
|
6538
6635
|
},
|
|
6539
6636
|
[env]
|
|
6540
6637
|
);
|
|
6541
|
-
const getCurrency = (0,
|
|
6638
|
+
const getCurrency = (0, import_react71.useCallback)(async () => {
|
|
6542
6639
|
const jsonData = {
|
|
6543
6640
|
model: "res.currency",
|
|
6544
6641
|
method: "web_search_read",
|
|
@@ -6558,7 +6655,7 @@ function useModelService() {
|
|
|
6558
6655
|
}
|
|
6559
6656
|
});
|
|
6560
6657
|
}, [env]);
|
|
6561
|
-
const getConversionRate = (0,
|
|
6658
|
+
const getConversionRate = (0, import_react71.useCallback)(async () => {
|
|
6562
6659
|
const jsonData = {
|
|
6563
6660
|
model: "res.currency",
|
|
6564
6661
|
method: "web_search_read",
|
|
@@ -6584,7 +6681,7 @@ function useModelService() {
|
|
|
6584
6681
|
}
|
|
6585
6682
|
});
|
|
6586
6683
|
}, [env]);
|
|
6587
|
-
const getAll = (0,
|
|
6684
|
+
const getAll = (0, import_react71.useCallback)(
|
|
6588
6685
|
async ({
|
|
6589
6686
|
data,
|
|
6590
6687
|
service,
|
|
@@ -6626,7 +6723,7 @@ function useModelService() {
|
|
|
6626
6723
|
},
|
|
6627
6724
|
[env]
|
|
6628
6725
|
);
|
|
6629
|
-
const getListCalendar = (0,
|
|
6726
|
+
const getListCalendar = (0, import_react71.useCallback)(
|
|
6630
6727
|
async ({ data }) => {
|
|
6631
6728
|
const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
6632
6729
|
fields: data.fields,
|
|
@@ -6657,7 +6754,7 @@ function useModelService() {
|
|
|
6657
6754
|
},
|
|
6658
6755
|
[env]
|
|
6659
6756
|
);
|
|
6660
|
-
const getList = (0,
|
|
6757
|
+
const getList = (0, import_react71.useCallback)(
|
|
6661
6758
|
async ({
|
|
6662
6759
|
model,
|
|
6663
6760
|
ids = [],
|
|
@@ -6689,7 +6786,7 @@ function useModelService() {
|
|
|
6689
6786
|
},
|
|
6690
6787
|
[env]
|
|
6691
6788
|
);
|
|
6692
|
-
const getDetail = (0,
|
|
6789
|
+
const getDetail = (0, import_react71.useCallback)(
|
|
6693
6790
|
async ({
|
|
6694
6791
|
ids = [],
|
|
6695
6792
|
model,
|
|
@@ -6721,7 +6818,7 @@ function useModelService() {
|
|
|
6721
6818
|
},
|
|
6722
6819
|
[env]
|
|
6723
6820
|
);
|
|
6724
|
-
const save = (0,
|
|
6821
|
+
const save = (0, import_react71.useCallback)(
|
|
6725
6822
|
async ({
|
|
6726
6823
|
model,
|
|
6727
6824
|
ids = [],
|
|
@@ -6756,7 +6853,7 @@ function useModelService() {
|
|
|
6756
6853
|
},
|
|
6757
6854
|
[env]
|
|
6758
6855
|
);
|
|
6759
|
-
const deleteApi = (0,
|
|
6856
|
+
const deleteApi = (0, import_react71.useCallback)(
|
|
6760
6857
|
async ({ ids = [], model, service }) => {
|
|
6761
6858
|
const jsonData = {
|
|
6762
6859
|
model,
|
|
@@ -6776,7 +6873,7 @@ function useModelService() {
|
|
|
6776
6873
|
},
|
|
6777
6874
|
[env]
|
|
6778
6875
|
);
|
|
6779
|
-
const onChange = (0,
|
|
6876
|
+
const onChange = (0, import_react71.useCallback)(
|
|
6780
6877
|
async ({
|
|
6781
6878
|
ids = [],
|
|
6782
6879
|
model,
|
|
@@ -6812,7 +6909,7 @@ function useModelService() {
|
|
|
6812
6909
|
},
|
|
6813
6910
|
[env]
|
|
6814
6911
|
);
|
|
6815
|
-
const getListFieldsOnchange = (0,
|
|
6912
|
+
const getListFieldsOnchange = (0, import_react71.useCallback)(
|
|
6816
6913
|
async ({
|
|
6817
6914
|
model,
|
|
6818
6915
|
service,
|
|
@@ -6836,7 +6933,7 @@ function useModelService() {
|
|
|
6836
6933
|
},
|
|
6837
6934
|
[env]
|
|
6838
6935
|
);
|
|
6839
|
-
const parseORMOdoo = (0,
|
|
6936
|
+
const parseORMOdoo = (0, import_react71.useCallback)((data) => {
|
|
6840
6937
|
for (const key in data) {
|
|
6841
6938
|
if (key === "display_name") {
|
|
6842
6939
|
delete data[key];
|
|
@@ -6847,7 +6944,7 @@ function useModelService() {
|
|
|
6847
6944
|
}
|
|
6848
6945
|
return { ...data };
|
|
6849
6946
|
}, []);
|
|
6850
|
-
const toDataJS = (0,
|
|
6947
|
+
const toDataJS = (0, import_react71.useCallback)(
|
|
6851
6948
|
(data, viewData, model) => {
|
|
6852
6949
|
for (const key in data) {
|
|
6853
6950
|
if (data[key] === false) {
|
|
@@ -6905,10 +7002,10 @@ function useModelService() {
|
|
|
6905
7002
|
}
|
|
6906
7003
|
|
|
6907
7004
|
// src/services/user-service/index.ts
|
|
6908
|
-
var
|
|
7005
|
+
var import_react72 = require("react");
|
|
6909
7006
|
function useUserService() {
|
|
6910
7007
|
const { env } = useEnv();
|
|
6911
|
-
const getProfile = (0,
|
|
7008
|
+
const getProfile = (0, import_react72.useCallback)(
|
|
6912
7009
|
async (service, path, extraHeaders) => {
|
|
6913
7010
|
return env?.requests?.get(
|
|
6914
7011
|
path || "/userinfo" /* PROFILE_PATH */,
|
|
@@ -6925,7 +7022,7 @@ function useUserService() {
|
|
|
6925
7022
|
},
|
|
6926
7023
|
[env]
|
|
6927
7024
|
);
|
|
6928
|
-
const getUser = (0,
|
|
7025
|
+
const getUser = (0, import_react72.useCallback)(
|
|
6929
7026
|
async ({ context, id }) => {
|
|
6930
7027
|
const jsonData = {
|
|
6931
7028
|
model: "res.users",
|
|
@@ -6963,7 +7060,7 @@ function useUserService() {
|
|
|
6963
7060
|
},
|
|
6964
7061
|
[env]
|
|
6965
7062
|
);
|
|
6966
|
-
const switchUserLocale = (0,
|
|
7063
|
+
const switchUserLocale = (0, import_react72.useCallback)(
|
|
6967
7064
|
async ({ id, values, service }) => {
|
|
6968
7065
|
const jsonData = {
|
|
6969
7066
|
model: "res.users",
|
|
@@ -6991,10 +7088,10 @@ function useUserService() {
|
|
|
6991
7088
|
}
|
|
6992
7089
|
|
|
6993
7090
|
// src/services/view-service/index.ts
|
|
6994
|
-
var
|
|
7091
|
+
var import_react73 = require("react");
|
|
6995
7092
|
function useViewService() {
|
|
6996
7093
|
const { env } = useEnv();
|
|
6997
|
-
const getView = (0,
|
|
7094
|
+
const getView = (0, import_react73.useCallback)(
|
|
6998
7095
|
async ({
|
|
6999
7096
|
model,
|
|
7000
7097
|
views,
|
|
@@ -7034,7 +7131,7 @@ function useViewService() {
|
|
|
7034
7131
|
},
|
|
7035
7132
|
[env]
|
|
7036
7133
|
);
|
|
7037
|
-
const getMenu = (0,
|
|
7134
|
+
const getMenu = (0, import_react73.useCallback)(
|
|
7038
7135
|
async (context, specification, domain, service) => {
|
|
7039
7136
|
const jsonData = {
|
|
7040
7137
|
model: "ir.ui.menu" /* MENU */,
|
|
@@ -7065,7 +7162,7 @@ function useViewService() {
|
|
|
7065
7162
|
},
|
|
7066
7163
|
[env]
|
|
7067
7164
|
);
|
|
7068
|
-
const getActionDetail = (0,
|
|
7165
|
+
const getActionDetail = (0, import_react73.useCallback)(
|
|
7069
7166
|
async (aid, context) => {
|
|
7070
7167
|
const jsonData = {
|
|
7071
7168
|
model: "ir.actions.act_window" /* WINDOW_ACTION */,
|
|
@@ -7095,7 +7192,7 @@ function useViewService() {
|
|
|
7095
7192
|
},
|
|
7096
7193
|
[env]
|
|
7097
7194
|
);
|
|
7098
|
-
const getResequence = (0,
|
|
7195
|
+
const getResequence = (0, import_react73.useCallback)(
|
|
7099
7196
|
async ({
|
|
7100
7197
|
model,
|
|
7101
7198
|
ids,
|
|
@@ -7125,7 +7222,7 @@ function useViewService() {
|
|
|
7125
7222
|
},
|
|
7126
7223
|
[env]
|
|
7127
7224
|
);
|
|
7128
|
-
const getSelectionItem = (0,
|
|
7225
|
+
const getSelectionItem = (0, import_react73.useCallback)(
|
|
7129
7226
|
async ({
|
|
7130
7227
|
data,
|
|
7131
7228
|
service,
|
|
@@ -7162,7 +7259,7 @@ function useViewService() {
|
|
|
7162
7259
|
},
|
|
7163
7260
|
[env]
|
|
7164
7261
|
);
|
|
7165
|
-
const loadMessages = (0,
|
|
7262
|
+
const loadMessages = (0, import_react73.useCallback)(async () => {
|
|
7166
7263
|
return env.requests.post(
|
|
7167
7264
|
"/load_message_failures" /* LOAD_MESSAGE */,
|
|
7168
7265
|
{},
|
|
@@ -7173,14 +7270,14 @@ function useViewService() {
|
|
|
7173
7270
|
}
|
|
7174
7271
|
);
|
|
7175
7272
|
}, [env]);
|
|
7176
|
-
const getVersion = (0,
|
|
7273
|
+
const getVersion = (0, import_react73.useCallback)(async () => {
|
|
7177
7274
|
return env?.requests?.get("", {
|
|
7178
7275
|
headers: {
|
|
7179
7276
|
"Content-Type": "application/json"
|
|
7180
7277
|
}
|
|
7181
7278
|
});
|
|
7182
7279
|
}, [env]);
|
|
7183
|
-
const grantAccess = (0,
|
|
7280
|
+
const grantAccess = (0, import_react73.useCallback)(
|
|
7184
7281
|
async ({
|
|
7185
7282
|
redirect_uri,
|
|
7186
7283
|
state,
|
|
@@ -7207,7 +7304,7 @@ function useViewService() {
|
|
|
7207
7304
|
},
|
|
7208
7305
|
[env]
|
|
7209
7306
|
);
|
|
7210
|
-
const removeTotpSetUp = (0,
|
|
7307
|
+
const removeTotpSetUp = (0, import_react73.useCallback)(
|
|
7211
7308
|
async ({ method, token }) => {
|
|
7212
7309
|
const jsonData = {
|
|
7213
7310
|
method,
|
|
@@ -7228,7 +7325,7 @@ function useViewService() {
|
|
|
7228
7325
|
},
|
|
7229
7326
|
[env]
|
|
7230
7327
|
);
|
|
7231
|
-
const requestSetupTotp = (0,
|
|
7328
|
+
const requestSetupTotp = (0, import_react73.useCallback)(
|
|
7232
7329
|
async ({ method, token }) => {
|
|
7233
7330
|
const jsonData = {
|
|
7234
7331
|
method,
|
|
@@ -7247,7 +7344,7 @@ function useViewService() {
|
|
|
7247
7344
|
},
|
|
7248
7345
|
[env]
|
|
7249
7346
|
);
|
|
7250
|
-
const settingsWebRead2fa = (0,
|
|
7347
|
+
const settingsWebRead2fa = (0, import_react73.useCallback)(
|
|
7251
7348
|
async ({
|
|
7252
7349
|
method,
|
|
7253
7350
|
model,
|
|
@@ -7275,7 +7372,7 @@ function useViewService() {
|
|
|
7275
7372
|
},
|
|
7276
7373
|
[env]
|
|
7277
7374
|
);
|
|
7278
|
-
const signInSSO = (0,
|
|
7375
|
+
const signInSSO = (0, import_react73.useCallback)(
|
|
7279
7376
|
async ({
|
|
7280
7377
|
redirect_uri,
|
|
7281
7378
|
state,
|
|
@@ -7307,7 +7404,7 @@ function useViewService() {
|
|
|
7307
7404
|
},
|
|
7308
7405
|
[env]
|
|
7309
7406
|
);
|
|
7310
|
-
const verify2FA = (0,
|
|
7407
|
+
const verify2FA = (0, import_react73.useCallback)(
|
|
7311
7408
|
({
|
|
7312
7409
|
method,
|
|
7313
7410
|
with_context,
|
|
@@ -7340,7 +7437,7 @@ function useViewService() {
|
|
|
7340
7437
|
},
|
|
7341
7438
|
[env]
|
|
7342
7439
|
);
|
|
7343
|
-
const get2FAMethods = (0,
|
|
7440
|
+
const get2FAMethods = (0, import_react73.useCallback)(
|
|
7344
7441
|
({ method, with_context }) => {
|
|
7345
7442
|
const jsonData = {
|
|
7346
7443
|
method,
|
|
@@ -7359,7 +7456,7 @@ function useViewService() {
|
|
|
7359
7456
|
},
|
|
7360
7457
|
[env]
|
|
7361
7458
|
);
|
|
7362
|
-
const verifyTotp = (0,
|
|
7459
|
+
const verifyTotp = (0, import_react73.useCallback)(
|
|
7363
7460
|
({
|
|
7364
7461
|
method,
|
|
7365
7462
|
action_token,
|
|
@@ -7384,7 +7481,7 @@ function useViewService() {
|
|
|
7384
7481
|
},
|
|
7385
7482
|
[env]
|
|
7386
7483
|
);
|
|
7387
|
-
const getNotifications = (0,
|
|
7484
|
+
const getNotifications = (0, import_react73.useCallback)(
|
|
7388
7485
|
async ({
|
|
7389
7486
|
service,
|
|
7390
7487
|
xNode,
|
|
@@ -7404,7 +7501,7 @@ function useViewService() {
|
|
|
7404
7501
|
},
|
|
7405
7502
|
[env]
|
|
7406
7503
|
);
|
|
7407
|
-
const getCountry = (0,
|
|
7504
|
+
const getCountry = (0, import_react73.useCallback)(
|
|
7408
7505
|
async ({
|
|
7409
7506
|
service,
|
|
7410
7507
|
xNode,
|
|
@@ -7431,7 +7528,7 @@ function useViewService() {
|
|
|
7431
7528
|
},
|
|
7432
7529
|
[env]
|
|
7433
7530
|
);
|
|
7434
|
-
const getCity = (0,
|
|
7531
|
+
const getCity = (0, import_react73.useCallback)(
|
|
7435
7532
|
async ({
|
|
7436
7533
|
service,
|
|
7437
7534
|
xNode,
|
|
@@ -7458,7 +7555,7 @@ function useViewService() {
|
|
|
7458
7555
|
},
|
|
7459
7556
|
[env]
|
|
7460
7557
|
);
|
|
7461
|
-
const getWard = (0,
|
|
7558
|
+
const getWard = (0, import_react73.useCallback)(
|
|
7462
7559
|
async ({
|
|
7463
7560
|
service,
|
|
7464
7561
|
xNode,
|
|
@@ -7483,7 +7580,7 @@ function useViewService() {
|
|
|
7483
7580
|
},
|
|
7484
7581
|
[env]
|
|
7485
7582
|
);
|
|
7486
|
-
const getPartnerTitle = (0,
|
|
7583
|
+
const getPartnerTitle = (0, import_react73.useCallback)(
|
|
7487
7584
|
async ({
|
|
7488
7585
|
service,
|
|
7489
7586
|
xNode,
|
|
@@ -7535,10 +7632,10 @@ function useViewService() {
|
|
|
7535
7632
|
}
|
|
7536
7633
|
|
|
7537
7634
|
// src/services/dashboard-service/index.ts
|
|
7538
|
-
var
|
|
7635
|
+
var import_react74 = require("react");
|
|
7539
7636
|
function useDashboardService() {
|
|
7540
7637
|
const { env } = useEnv();
|
|
7541
|
-
const readGroup = (0,
|
|
7638
|
+
const readGroup = (0, import_react74.useCallback)(
|
|
7542
7639
|
async ({
|
|
7543
7640
|
service,
|
|
7544
7641
|
xNode,
|
|
@@ -7555,7 +7652,7 @@ function useDashboardService() {
|
|
|
7555
7652
|
},
|
|
7556
7653
|
[env]
|
|
7557
7654
|
);
|
|
7558
|
-
const getDataChart = (0,
|
|
7655
|
+
const getDataChart = (0, import_react74.useCallback)(
|
|
7559
7656
|
async ({
|
|
7560
7657
|
service,
|
|
7561
7658
|
xNode,
|