@fctc/interface-logic 4.8.4 → 4.8.6
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 -0
- package/dist/constants.d.ts +5 -0
- package/dist/constants.js +5 -0
- package/dist/constants.mjs +5 -0
- package/dist/hooks.d.mts +0 -5
- package/dist/hooks.d.ts +0 -5
- package/dist/hooks.js +126 -36
- package/dist/hooks.mjs +126 -36
- package/dist/provider.js +147 -57
- package/dist/provider.mjs +136 -46
- package/dist/services.d.mts +31 -5
- package/dist/services.d.ts +31 -5
- package/dist/services.js +220 -130
- package/dist/services.mjs +217 -127
- 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_react61 = require("react");
|
|
49
49
|
|
|
50
50
|
// src/constants/api/uri-constant.ts
|
|
51
51
|
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
@@ -2956,7 +2956,7 @@ function useEnv() {
|
|
|
2956
2956
|
}
|
|
2957
2957
|
|
|
2958
2958
|
// src/provider/service-provider.tsx
|
|
2959
|
-
var
|
|
2959
|
+
var import_react59 = require("react");
|
|
2960
2960
|
|
|
2961
2961
|
// src/hooks/auth/use-forgot-password.ts
|
|
2962
2962
|
var import_react_query3 = require("@tanstack/react-query");
|
|
@@ -5016,42 +5016,16 @@ var createPaymentSupabaseService = () => {
|
|
|
5016
5016
|
console.error("Error creating payment:", paymentError);
|
|
5017
5017
|
return null;
|
|
5018
5018
|
}
|
|
5019
|
-
const {
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
const isComplete = amountPaid >= values.order_total;
|
|
5026
|
-
const amountReturn = isComplete ? amountPaid - values.order_total : 0;
|
|
5027
|
-
let orderState = orderData.state;
|
|
5028
|
-
if (isComplete) {
|
|
5029
|
-
const { error: updateError } = await supabase.from("orders" /* ORDERS */).update({
|
|
5030
|
-
state: "paid",
|
|
5031
|
-
amount_return: amountReturn,
|
|
5032
|
-
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
5033
|
-
}).eq("id", values.pos_order_id);
|
|
5034
|
-
if (updateError) {
|
|
5035
|
-
console.error("Error updating order state:", updateError);
|
|
5036
|
-
} else {
|
|
5037
|
-
orderState = "paid";
|
|
5038
|
-
}
|
|
5039
|
-
} else if (orderData.state === "new") {
|
|
5040
|
-
const { error: updateError } = await supabase.from("orders" /* ORDERS */).update({
|
|
5041
|
-
state: "in_paid",
|
|
5042
|
-
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
5043
|
-
}).eq("id", values.pos_order_id);
|
|
5044
|
-
if (!updateError) {
|
|
5045
|
-
orderState = "in_paid";
|
|
5046
|
-
}
|
|
5019
|
+
const { error: updateError } = await supabase.from("orders" /* ORDERS */).update({
|
|
5020
|
+
state: "paid",
|
|
5021
|
+
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
5022
|
+
}).eq("id", values.pos_order_id);
|
|
5023
|
+
if (updateError) {
|
|
5024
|
+
console.error("Error updating order state:", updateError);
|
|
5047
5025
|
}
|
|
5048
5026
|
return {
|
|
5049
5027
|
id: paymentData.id,
|
|
5050
|
-
amount: paymentData.amount
|
|
5051
|
-
amount_paid: amountPaid,
|
|
5052
|
-
amount_return: amountReturn,
|
|
5053
|
-
is_complete: isComplete,
|
|
5054
|
-
order_state: orderState
|
|
5028
|
+
amount: paymentData.amount
|
|
5055
5029
|
};
|
|
5056
5030
|
} catch (error) {
|
|
5057
5031
|
console.error("Error creating payment:", error);
|
|
@@ -5065,6 +5039,110 @@ var createPaymentSupabaseService = () => {
|
|
|
5065
5039
|
};
|
|
5066
5040
|
};
|
|
5067
5041
|
|
|
5042
|
+
// src/services/pos-service/supabase/create-customer.ts
|
|
5043
|
+
var import_react56 = require("react");
|
|
5044
|
+
var createCustomerSupabaseService = () => {
|
|
5045
|
+
const supabase = useSupabaseOptional();
|
|
5046
|
+
const createCustomerSupabase = (0, import_react56.useCallback)(
|
|
5047
|
+
async (values) => {
|
|
5048
|
+
if (!supabase) {
|
|
5049
|
+
console.error("Supabase client not initialized");
|
|
5050
|
+
return null;
|
|
5051
|
+
}
|
|
5052
|
+
try {
|
|
5053
|
+
const insertData = cleanObject({
|
|
5054
|
+
name: values.name,
|
|
5055
|
+
phone: values.phone,
|
|
5056
|
+
email: values.email,
|
|
5057
|
+
address: values.address,
|
|
5058
|
+
street2: values.street2,
|
|
5059
|
+
city: values.city,
|
|
5060
|
+
birth_date: values.birth_date,
|
|
5061
|
+
country_id: values.country_id,
|
|
5062
|
+
state_id: values.state_id,
|
|
5063
|
+
ward_id: values.ward_id
|
|
5064
|
+
});
|
|
5065
|
+
const { data, error } = await supabase.from("customers" /* CUSTOMERS */).insert(insertData).select("id, name").single();
|
|
5066
|
+
if (error) {
|
|
5067
|
+
console.error("Error creating customer:", error);
|
|
5068
|
+
return null;
|
|
5069
|
+
}
|
|
5070
|
+
return [[data.id, data.name]];
|
|
5071
|
+
} catch (error) {
|
|
5072
|
+
console.error("Error creating customer:", error);
|
|
5073
|
+
return null;
|
|
5074
|
+
}
|
|
5075
|
+
},
|
|
5076
|
+
[supabase]
|
|
5077
|
+
);
|
|
5078
|
+
return {
|
|
5079
|
+
createCustomerSupabase
|
|
5080
|
+
};
|
|
5081
|
+
};
|
|
5082
|
+
|
|
5083
|
+
// src/services/pos-service/supabase/update-customer.ts
|
|
5084
|
+
var import_react57 = require("react");
|
|
5085
|
+
var updateCustomerSupabaseService = () => {
|
|
5086
|
+
const supabase = useSupabaseOptional();
|
|
5087
|
+
const updateCustomerSupabase = (0, import_react57.useCallback)(
|
|
5088
|
+
async (values) => {
|
|
5089
|
+
if (!supabase) {
|
|
5090
|
+
console.error("Supabase client not initialized");
|
|
5091
|
+
return null;
|
|
5092
|
+
}
|
|
5093
|
+
try {
|
|
5094
|
+
const { customer_id, ...rest } = values;
|
|
5095
|
+
const updateData = cleanObject({
|
|
5096
|
+
...rest,
|
|
5097
|
+
write_date: (/* @__PURE__ */ new Date()).toISOString()
|
|
5098
|
+
});
|
|
5099
|
+
const { data, error } = await supabase.from("customers" /* CUSTOMERS */).update(updateData).eq("id", customer_id).select("id").single();
|
|
5100
|
+
if (error) {
|
|
5101
|
+
console.error("Error updating customer:", error);
|
|
5102
|
+
return null;
|
|
5103
|
+
}
|
|
5104
|
+
return [data.id];
|
|
5105
|
+
} catch (error) {
|
|
5106
|
+
console.error("Error updating customer:", error);
|
|
5107
|
+
return null;
|
|
5108
|
+
}
|
|
5109
|
+
},
|
|
5110
|
+
[supabase]
|
|
5111
|
+
);
|
|
5112
|
+
return {
|
|
5113
|
+
updateCustomerSupabase
|
|
5114
|
+
};
|
|
5115
|
+
};
|
|
5116
|
+
|
|
5117
|
+
// src/services/pos-service/supabase/delete-customer.ts
|
|
5118
|
+
var import_react58 = require("react");
|
|
5119
|
+
var deleteCustomerSupabaseService = () => {
|
|
5120
|
+
const supabase = useSupabaseOptional();
|
|
5121
|
+
const deleteCustomerSupabase = (0, import_react58.useCallback)(
|
|
5122
|
+
async (values) => {
|
|
5123
|
+
if (!supabase) {
|
|
5124
|
+
console.error("Supabase client not initialized");
|
|
5125
|
+
return null;
|
|
5126
|
+
}
|
|
5127
|
+
try {
|
|
5128
|
+
const { error } = await supabase.from("customers" /* CUSTOMERS */).delete().eq("id", values.customer_id);
|
|
5129
|
+
if (error) {
|
|
5130
|
+
console.error("Error deleting customer:", error);
|
|
5131
|
+
return null;
|
|
5132
|
+
}
|
|
5133
|
+
return [values.customer_id];
|
|
5134
|
+
} catch (error) {
|
|
5135
|
+
console.error("Error deleting customer:", error);
|
|
5136
|
+
return null;
|
|
5137
|
+
}
|
|
5138
|
+
},
|
|
5139
|
+
[supabase]
|
|
5140
|
+
);
|
|
5141
|
+
return {
|
|
5142
|
+
deleteCustomerSupabase
|
|
5143
|
+
};
|
|
5144
|
+
};
|
|
5145
|
+
|
|
5068
5146
|
// src/services/pos-service/index.ts
|
|
5069
5147
|
var serviceFactories = [
|
|
5070
5148
|
addEntityService,
|
|
@@ -5115,7 +5193,10 @@ var serviceFactories = [
|
|
|
5115
5193
|
getFunctionalModulesService,
|
|
5116
5194
|
addPaymentMethodSupabaseService,
|
|
5117
5195
|
updateSessionPaymentMethodsSupabaseService,
|
|
5118
|
-
createPaymentSupabaseService
|
|
5196
|
+
createPaymentSupabaseService,
|
|
5197
|
+
createCustomerSupabaseService,
|
|
5198
|
+
updateCustomerSupabaseService,
|
|
5199
|
+
deleteCustomerSupabaseService
|
|
5119
5200
|
];
|
|
5120
5201
|
var usePosService = () => {
|
|
5121
5202
|
const { env } = useEnv();
|
|
@@ -5271,18 +5352,27 @@ var import_react_query132 = require("@tanstack/react-query");
|
|
|
5271
5352
|
// src/hooks/pos/supabase/use-create-payment.ts
|
|
5272
5353
|
var import_react_query133 = require("@tanstack/react-query");
|
|
5273
5354
|
|
|
5355
|
+
// src/hooks/pos/supabase/use-create-customer.ts
|
|
5356
|
+
var import_react_query134 = require("@tanstack/react-query");
|
|
5357
|
+
|
|
5358
|
+
// src/hooks/pos/supabase/use-update-customer.ts
|
|
5359
|
+
var import_react_query135 = require("@tanstack/react-query");
|
|
5360
|
+
|
|
5361
|
+
// src/hooks/pos/supabase/use-delete-customer.ts
|
|
5362
|
+
var import_react_query136 = require("@tanstack/react-query");
|
|
5363
|
+
|
|
5274
5364
|
// src/provider/service-provider.tsx
|
|
5275
5365
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
5276
|
-
var ServiceContext = (0,
|
|
5366
|
+
var ServiceContext = (0, import_react59.createContext)(null);
|
|
5277
5367
|
|
|
5278
5368
|
// src/provider/meta-provider.tsx
|
|
5279
|
-
var
|
|
5369
|
+
var import_react60 = require("react");
|
|
5280
5370
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
5281
5371
|
|
|
5282
5372
|
// src/services/action-service/index.ts
|
|
5283
5373
|
function useActionService() {
|
|
5284
5374
|
const { env } = useEnv();
|
|
5285
|
-
const loadAction = (0,
|
|
5375
|
+
const loadAction = (0, import_react61.useCallback)(
|
|
5286
5376
|
async ({
|
|
5287
5377
|
idAction,
|
|
5288
5378
|
context,
|
|
@@ -5306,7 +5396,7 @@ function useActionService() {
|
|
|
5306
5396
|
},
|
|
5307
5397
|
[env]
|
|
5308
5398
|
);
|
|
5309
|
-
const callButton = (0,
|
|
5399
|
+
const callButton = (0, import_react61.useCallback)(
|
|
5310
5400
|
async ({
|
|
5311
5401
|
model,
|
|
5312
5402
|
ids = [],
|
|
@@ -5340,7 +5430,7 @@ function useActionService() {
|
|
|
5340
5430
|
},
|
|
5341
5431
|
[env]
|
|
5342
5432
|
);
|
|
5343
|
-
const removeRows = (0,
|
|
5433
|
+
const removeRows = (0, import_react61.useCallback)(
|
|
5344
5434
|
async ({
|
|
5345
5435
|
model,
|
|
5346
5436
|
ids,
|
|
@@ -5366,7 +5456,7 @@ function useActionService() {
|
|
|
5366
5456
|
},
|
|
5367
5457
|
[env]
|
|
5368
5458
|
);
|
|
5369
|
-
const duplicateRecord = (0,
|
|
5459
|
+
const duplicateRecord = (0, import_react61.useCallback)(
|
|
5370
5460
|
async ({
|
|
5371
5461
|
model,
|
|
5372
5462
|
id,
|
|
@@ -5392,7 +5482,7 @@ function useActionService() {
|
|
|
5392
5482
|
},
|
|
5393
5483
|
[env]
|
|
5394
5484
|
);
|
|
5395
|
-
const getPrintReportName = (0,
|
|
5485
|
+
const getPrintReportName = (0, import_react61.useCallback)(
|
|
5396
5486
|
async ({ id }) => {
|
|
5397
5487
|
const jsonData = {
|
|
5398
5488
|
model: "ir.actions.report",
|
|
@@ -5410,7 +5500,7 @@ function useActionService() {
|
|
|
5410
5500
|
},
|
|
5411
5501
|
[env]
|
|
5412
5502
|
);
|
|
5413
|
-
const print = (0,
|
|
5503
|
+
const print = (0, import_react61.useCallback)(
|
|
5414
5504
|
async ({ id, report, db }) => {
|
|
5415
5505
|
const jsonData = {
|
|
5416
5506
|
report,
|
|
@@ -5428,7 +5518,7 @@ function useActionService() {
|
|
|
5428
5518
|
},
|
|
5429
5519
|
[env]
|
|
5430
5520
|
);
|
|
5431
|
-
const runAction = (0,
|
|
5521
|
+
const runAction = (0, import_react61.useCallback)(
|
|
5432
5522
|
async ({
|
|
5433
5523
|
idAction,
|
|
5434
5524
|
context,
|
|
@@ -5455,7 +5545,7 @@ function useActionService() {
|
|
|
5455
5545
|
},
|
|
5456
5546
|
[env]
|
|
5457
5547
|
);
|
|
5458
|
-
const generateSerialNumber = (0,
|
|
5548
|
+
const generateSerialNumber = (0, import_react61.useCallback)(
|
|
5459
5549
|
async ({
|
|
5460
5550
|
kwargs,
|
|
5461
5551
|
context,
|
|
@@ -5493,11 +5583,11 @@ function useActionService() {
|
|
|
5493
5583
|
}
|
|
5494
5584
|
|
|
5495
5585
|
// src/services/auth-service/index.ts
|
|
5496
|
-
var
|
|
5586
|
+
var import_react62 = require("react");
|
|
5497
5587
|
function useAuthService() {
|
|
5498
5588
|
const { env } = useEnv();
|
|
5499
5589
|
const supabase = useSupabaseOptional();
|
|
5500
|
-
const login = (0,
|
|
5590
|
+
const login = (0, import_react62.useCallback)(
|
|
5501
5591
|
async (body) => {
|
|
5502
5592
|
const payload = Object.fromEntries(
|
|
5503
5593
|
Object.entries({
|
|
@@ -5522,7 +5612,7 @@ function useAuthService() {
|
|
|
5522
5612
|
},
|
|
5523
5613
|
[env]
|
|
5524
5614
|
);
|
|
5525
|
-
const loginSupabase = (0,
|
|
5615
|
+
const loginSupabase = (0, import_react62.useCallback)(
|
|
5526
5616
|
async (body) => {
|
|
5527
5617
|
if (!supabase) {
|
|
5528
5618
|
return {
|
|
@@ -5538,7 +5628,7 @@ function useAuthService() {
|
|
|
5538
5628
|
},
|
|
5539
5629
|
[supabase]
|
|
5540
5630
|
);
|
|
5541
|
-
const forgotPassword = (0,
|
|
5631
|
+
const forgotPassword = (0, import_react62.useCallback)(
|
|
5542
5632
|
async (email) => {
|
|
5543
5633
|
const bodyData = {
|
|
5544
5634
|
login: email,
|
|
@@ -5552,7 +5642,7 @@ function useAuthService() {
|
|
|
5552
5642
|
},
|
|
5553
5643
|
[env]
|
|
5554
5644
|
);
|
|
5555
|
-
const forgotPasswordSSO = (0,
|
|
5645
|
+
const forgotPasswordSSO = (0, import_react62.useCallback)(
|
|
5556
5646
|
async ({
|
|
5557
5647
|
email,
|
|
5558
5648
|
with_context,
|
|
@@ -5575,7 +5665,7 @@ function useAuthService() {
|
|
|
5575
5665
|
},
|
|
5576
5666
|
[env]
|
|
5577
5667
|
);
|
|
5578
|
-
const resetPassword = (0,
|
|
5668
|
+
const resetPassword = (0, import_react62.useCallback)(
|
|
5579
5669
|
async (data, token) => {
|
|
5580
5670
|
const bodyData = {
|
|
5581
5671
|
token,
|
|
@@ -5590,7 +5680,7 @@ function useAuthService() {
|
|
|
5590
5680
|
},
|
|
5591
5681
|
[env]
|
|
5592
5682
|
);
|
|
5593
|
-
const resetPasswordSSO = (0,
|
|
5683
|
+
const resetPasswordSSO = (0, import_react62.useCallback)(
|
|
5594
5684
|
async ({
|
|
5595
5685
|
method,
|
|
5596
5686
|
password,
|
|
@@ -5613,7 +5703,7 @@ function useAuthService() {
|
|
|
5613
5703
|
},
|
|
5614
5704
|
[env]
|
|
5615
5705
|
);
|
|
5616
|
-
const updatePassword = (0,
|
|
5706
|
+
const updatePassword = (0, import_react62.useCallback)(
|
|
5617
5707
|
async (data, token) => {
|
|
5618
5708
|
const bodyData = {
|
|
5619
5709
|
token,
|
|
@@ -5628,7 +5718,7 @@ function useAuthService() {
|
|
|
5628
5718
|
},
|
|
5629
5719
|
[env]
|
|
5630
5720
|
);
|
|
5631
|
-
const isValidToken = (0,
|
|
5721
|
+
const isValidToken = (0, import_react62.useCallback)(
|
|
5632
5722
|
async (token) => {
|
|
5633
5723
|
const bodyData = {
|
|
5634
5724
|
token
|
|
@@ -5641,7 +5731,7 @@ function useAuthService() {
|
|
|
5641
5731
|
},
|
|
5642
5732
|
[env]
|
|
5643
5733
|
);
|
|
5644
|
-
const isValidActionToken = (0,
|
|
5734
|
+
const isValidActionToken = (0, import_react62.useCallback)(
|
|
5645
5735
|
async (actionToken) => {
|
|
5646
5736
|
const bodyData = {};
|
|
5647
5737
|
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
@@ -5654,7 +5744,7 @@ function useAuthService() {
|
|
|
5654
5744
|
},
|
|
5655
5745
|
[env]
|
|
5656
5746
|
);
|
|
5657
|
-
const loginSocial = (0,
|
|
5747
|
+
const loginSocial = (0, import_react62.useCallback)(
|
|
5658
5748
|
async ({
|
|
5659
5749
|
db,
|
|
5660
5750
|
state,
|
|
@@ -5672,13 +5762,13 @@ function useAuthService() {
|
|
|
5672
5762
|
},
|
|
5673
5763
|
[env]
|
|
5674
5764
|
);
|
|
5675
|
-
const getProviders = (0,
|
|
5765
|
+
const getProviders = (0, import_react62.useCallback)(
|
|
5676
5766
|
async (db) => {
|
|
5677
5767
|
return env?.requests?.get("/oauth/providers", { params: { db } });
|
|
5678
5768
|
},
|
|
5679
5769
|
[env]
|
|
5680
5770
|
);
|
|
5681
|
-
const getAccessByCode = (0,
|
|
5771
|
+
const getAccessByCode = (0, import_react62.useCallback)(
|
|
5682
5772
|
async (code) => {
|
|
5683
5773
|
const data = new URLSearchParams();
|
|
5684
5774
|
data.append("code", code);
|
|
@@ -5698,7 +5788,7 @@ function useAuthService() {
|
|
|
5698
5788
|
},
|
|
5699
5789
|
[env]
|
|
5700
5790
|
);
|
|
5701
|
-
const logout = (0,
|
|
5791
|
+
const logout = (0, import_react62.useCallback)(
|
|
5702
5792
|
async (service) => {
|
|
5703
5793
|
return env?.requests?.post(
|
|
5704
5794
|
"/logout" /* LOGOUT */,
|
|
@@ -5715,7 +5805,7 @@ function useAuthService() {
|
|
|
5715
5805
|
},
|
|
5716
5806
|
[env]
|
|
5717
5807
|
);
|
|
5718
|
-
const getTenantMapping = (0,
|
|
5808
|
+
const getTenantMapping = (0, import_react62.useCallback)(
|
|
5719
5809
|
async ({ shortName, service }) => {
|
|
5720
5810
|
const bodyData = {
|
|
5721
5811
|
short_name: shortName
|
|
@@ -5733,7 +5823,7 @@ function useAuthService() {
|
|
|
5733
5823
|
},
|
|
5734
5824
|
[env]
|
|
5735
5825
|
);
|
|
5736
|
-
const getToken = (0,
|
|
5826
|
+
const getToken = (0, import_react62.useCallback)(
|
|
5737
5827
|
async ({
|
|
5738
5828
|
phone,
|
|
5739
5829
|
name,
|
|
@@ -5778,10 +5868,10 @@ function useAuthService() {
|
|
|
5778
5868
|
}
|
|
5779
5869
|
|
|
5780
5870
|
// src/services/company-service/index.ts
|
|
5781
|
-
var
|
|
5871
|
+
var import_react63 = require("react");
|
|
5782
5872
|
function useCompanyService() {
|
|
5783
5873
|
const { env } = useEnv();
|
|
5784
|
-
const getCurrentCompany = (0,
|
|
5874
|
+
const getCurrentCompany = (0, import_react63.useCallback)(
|
|
5785
5875
|
async (service, extraHeaders) => {
|
|
5786
5876
|
return await env.requests.get(
|
|
5787
5877
|
"/company" /* COMPANY_PATH */,
|
|
@@ -5798,7 +5888,7 @@ function useCompanyService() {
|
|
|
5798
5888
|
},
|
|
5799
5889
|
[env]
|
|
5800
5890
|
);
|
|
5801
|
-
const getInfoCompany = (0,
|
|
5891
|
+
const getInfoCompany = (0, import_react63.useCallback)(
|
|
5802
5892
|
async (id, service) => {
|
|
5803
5893
|
const jsonData = {
|
|
5804
5894
|
ids: [id],
|
|
@@ -5834,10 +5924,10 @@ function useCompanyService() {
|
|
|
5834
5924
|
}
|
|
5835
5925
|
|
|
5836
5926
|
// src/services/excel-service/index.ts
|
|
5837
|
-
var
|
|
5927
|
+
var import_react64 = require("react");
|
|
5838
5928
|
function useExcelService() {
|
|
5839
5929
|
const { env } = useEnv();
|
|
5840
|
-
const uploadFileExcel = (0,
|
|
5930
|
+
const uploadFileExcel = (0, import_react64.useCallback)(
|
|
5841
5931
|
async ({
|
|
5842
5932
|
formData,
|
|
5843
5933
|
service,
|
|
@@ -5854,7 +5944,7 @@ function useExcelService() {
|
|
|
5854
5944
|
},
|
|
5855
5945
|
[env]
|
|
5856
5946
|
);
|
|
5857
|
-
const uploadIdFile = (0,
|
|
5947
|
+
const uploadIdFile = (0, import_react64.useCallback)(
|
|
5858
5948
|
async ({
|
|
5859
5949
|
formData,
|
|
5860
5950
|
service,
|
|
@@ -5871,7 +5961,7 @@ function useExcelService() {
|
|
|
5871
5961
|
},
|
|
5872
5962
|
[env]
|
|
5873
5963
|
);
|
|
5874
|
-
const parsePreview = (0,
|
|
5964
|
+
const parsePreview = (0, import_react64.useCallback)(
|
|
5875
5965
|
async ({
|
|
5876
5966
|
id,
|
|
5877
5967
|
selectedSheet,
|
|
@@ -5920,7 +6010,7 @@ function useExcelService() {
|
|
|
5920
6010
|
},
|
|
5921
6011
|
[env]
|
|
5922
6012
|
);
|
|
5923
|
-
const executeImport = (0,
|
|
6013
|
+
const executeImport = (0, import_react64.useCallback)(
|
|
5924
6014
|
async ({
|
|
5925
6015
|
columns,
|
|
5926
6016
|
fields,
|
|
@@ -5954,7 +6044,7 @@ function useExcelService() {
|
|
|
5954
6044
|
},
|
|
5955
6045
|
[env]
|
|
5956
6046
|
);
|
|
5957
|
-
const getFileExcel = (0,
|
|
6047
|
+
const getFileExcel = (0, import_react64.useCallback)(
|
|
5958
6048
|
async ({
|
|
5959
6049
|
model,
|
|
5960
6050
|
service,
|
|
@@ -5978,7 +6068,7 @@ function useExcelService() {
|
|
|
5978
6068
|
},
|
|
5979
6069
|
[env]
|
|
5980
6070
|
);
|
|
5981
|
-
const getFieldExport = (0,
|
|
6071
|
+
const getFieldExport = (0, import_react64.useCallback)(
|
|
5982
6072
|
async ({
|
|
5983
6073
|
ids,
|
|
5984
6074
|
model,
|
|
@@ -6018,7 +6108,7 @@ function useExcelService() {
|
|
|
6018
6108
|
},
|
|
6019
6109
|
[env]
|
|
6020
6110
|
);
|
|
6021
|
-
const exportExcel = (0,
|
|
6111
|
+
const exportExcel = (0, import_react64.useCallback)(
|
|
6022
6112
|
async ({
|
|
6023
6113
|
model,
|
|
6024
6114
|
domain,
|
|
@@ -6066,10 +6156,10 @@ function useExcelService() {
|
|
|
6066
6156
|
}
|
|
6067
6157
|
|
|
6068
6158
|
// src/services/form-service/index.ts
|
|
6069
|
-
var
|
|
6159
|
+
var import_react65 = require("react");
|
|
6070
6160
|
function useFormService() {
|
|
6071
6161
|
const { env } = useEnv();
|
|
6072
|
-
const getComment = (0,
|
|
6162
|
+
const getComment = (0, import_react65.useCallback)(
|
|
6073
6163
|
async ({ data }) => {
|
|
6074
6164
|
const jsonData = {
|
|
6075
6165
|
thread_id: data.thread_id,
|
|
@@ -6087,7 +6177,7 @@ function useFormService() {
|
|
|
6087
6177
|
},
|
|
6088
6178
|
[env]
|
|
6089
6179
|
);
|
|
6090
|
-
const getThreadData = (0,
|
|
6180
|
+
const getThreadData = (0, import_react65.useCallback)(
|
|
6091
6181
|
async ({
|
|
6092
6182
|
data,
|
|
6093
6183
|
xNode,
|
|
@@ -6114,7 +6204,7 @@ function useFormService() {
|
|
|
6114
6204
|
},
|
|
6115
6205
|
[env]
|
|
6116
6206
|
);
|
|
6117
|
-
const getThreadMessages = (0,
|
|
6207
|
+
const getThreadMessages = (0, import_react65.useCallback)(
|
|
6118
6208
|
async ({
|
|
6119
6209
|
data,
|
|
6120
6210
|
xNode,
|
|
@@ -6140,7 +6230,7 @@ function useFormService() {
|
|
|
6140
6230
|
},
|
|
6141
6231
|
[env]
|
|
6142
6232
|
);
|
|
6143
|
-
const sentComment = (0,
|
|
6233
|
+
const sentComment = (0, import_react65.useCallback)(
|
|
6144
6234
|
async ({ data }) => {
|
|
6145
6235
|
const jsonData = {
|
|
6146
6236
|
context: {
|
|
@@ -6168,7 +6258,7 @@ function useFormService() {
|
|
|
6168
6258
|
},
|
|
6169
6259
|
[env]
|
|
6170
6260
|
);
|
|
6171
|
-
const deleteComment = (0,
|
|
6261
|
+
const deleteComment = (0, import_react65.useCallback)(
|
|
6172
6262
|
async ({ data }) => {
|
|
6173
6263
|
const jsonData = {
|
|
6174
6264
|
attachment_ids: [],
|
|
@@ -6184,7 +6274,7 @@ function useFormService() {
|
|
|
6184
6274
|
},
|
|
6185
6275
|
[env]
|
|
6186
6276
|
);
|
|
6187
|
-
const getImage = (0,
|
|
6277
|
+
const getImage = (0, import_react65.useCallback)(
|
|
6188
6278
|
async ({ data }) => {
|
|
6189
6279
|
return env.requests.get(
|
|
6190
6280
|
`${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
|
|
@@ -6197,7 +6287,7 @@ function useFormService() {
|
|
|
6197
6287
|
},
|
|
6198
6288
|
[env]
|
|
6199
6289
|
);
|
|
6200
|
-
const uploadImage = (0,
|
|
6290
|
+
const uploadImage = (0, import_react65.useCallback)(
|
|
6201
6291
|
async ({
|
|
6202
6292
|
formData,
|
|
6203
6293
|
service,
|
|
@@ -6216,7 +6306,7 @@ function useFormService() {
|
|
|
6216
6306
|
},
|
|
6217
6307
|
[env]
|
|
6218
6308
|
);
|
|
6219
|
-
const uploadFile = (0,
|
|
6309
|
+
const uploadFile = (0, import_react65.useCallback)(
|
|
6220
6310
|
async ({
|
|
6221
6311
|
formData,
|
|
6222
6312
|
service,
|
|
@@ -6236,7 +6326,7 @@ function useFormService() {
|
|
|
6236
6326
|
},
|
|
6237
6327
|
[env]
|
|
6238
6328
|
);
|
|
6239
|
-
const getFormView = (0,
|
|
6329
|
+
const getFormView = (0, import_react65.useCallback)(
|
|
6240
6330
|
async ({ data }) => {
|
|
6241
6331
|
const jsonData = {
|
|
6242
6332
|
model: data.model,
|
|
@@ -6252,7 +6342,7 @@ function useFormService() {
|
|
|
6252
6342
|
},
|
|
6253
6343
|
[env]
|
|
6254
6344
|
);
|
|
6255
|
-
const changeStatus = (0,
|
|
6345
|
+
const changeStatus = (0, import_react65.useCallback)(
|
|
6256
6346
|
async ({ data }) => {
|
|
6257
6347
|
const vals = {
|
|
6258
6348
|
[data.name]: data.stage_id
|
|
@@ -6281,7 +6371,7 @@ function useFormService() {
|
|
|
6281
6371
|
},
|
|
6282
6372
|
[env]
|
|
6283
6373
|
);
|
|
6284
|
-
const getExternalTab = (0,
|
|
6374
|
+
const getExternalTab = (0, import_react65.useCallback)(
|
|
6285
6375
|
async ({ method, context, service, xNode }) => {
|
|
6286
6376
|
return env?.requests?.post(
|
|
6287
6377
|
"/call" /* CALL_PATH */,
|
|
@@ -6316,10 +6406,10 @@ function useFormService() {
|
|
|
6316
6406
|
}
|
|
6317
6407
|
|
|
6318
6408
|
// src/services/kanban-service/index.ts
|
|
6319
|
-
var
|
|
6409
|
+
var import_react66 = require("react");
|
|
6320
6410
|
function useKanbanService() {
|
|
6321
6411
|
const { env } = useEnv();
|
|
6322
|
-
const getGroups = (0,
|
|
6412
|
+
const getGroups = (0, import_react66.useCallback)(
|
|
6323
6413
|
async ({ model, width_context }) => {
|
|
6324
6414
|
const jsonData = {
|
|
6325
6415
|
model,
|
|
@@ -6339,7 +6429,7 @@ function useKanbanService() {
|
|
|
6339
6429
|
},
|
|
6340
6430
|
[env]
|
|
6341
6431
|
);
|
|
6342
|
-
const getProgressBar = (0,
|
|
6432
|
+
const getProgressBar = (0, import_react66.useCallback)(
|
|
6343
6433
|
async ({ field, color, model, width_context }) => {
|
|
6344
6434
|
const jsonData = {
|
|
6345
6435
|
model,
|
|
@@ -6369,10 +6459,10 @@ function useKanbanService() {
|
|
|
6369
6459
|
}
|
|
6370
6460
|
|
|
6371
6461
|
// src/services/model-service/index.ts
|
|
6372
|
-
var
|
|
6462
|
+
var import_react67 = require("react");
|
|
6373
6463
|
function useModelService() {
|
|
6374
6464
|
const { env } = useEnv();
|
|
6375
|
-
const getListMyBankAccount = (0,
|
|
6465
|
+
const getListMyBankAccount = (0, import_react67.useCallback)(
|
|
6376
6466
|
async ({
|
|
6377
6467
|
domain,
|
|
6378
6468
|
spectification,
|
|
@@ -6396,7 +6486,7 @@ function useModelService() {
|
|
|
6396
6486
|
},
|
|
6397
6487
|
[env]
|
|
6398
6488
|
);
|
|
6399
|
-
const getCurrency = (0,
|
|
6489
|
+
const getCurrency = (0, import_react67.useCallback)(async () => {
|
|
6400
6490
|
const jsonData = {
|
|
6401
6491
|
model: "res.currency",
|
|
6402
6492
|
method: "web_search_read",
|
|
@@ -6416,7 +6506,7 @@ function useModelService() {
|
|
|
6416
6506
|
}
|
|
6417
6507
|
});
|
|
6418
6508
|
}, [env]);
|
|
6419
|
-
const getConversionRate = (0,
|
|
6509
|
+
const getConversionRate = (0, import_react67.useCallback)(async () => {
|
|
6420
6510
|
const jsonData = {
|
|
6421
6511
|
model: "res.currency",
|
|
6422
6512
|
method: "web_search_read",
|
|
@@ -6442,7 +6532,7 @@ function useModelService() {
|
|
|
6442
6532
|
}
|
|
6443
6533
|
});
|
|
6444
6534
|
}, [env]);
|
|
6445
|
-
const getAll = (0,
|
|
6535
|
+
const getAll = (0, import_react67.useCallback)(
|
|
6446
6536
|
async ({
|
|
6447
6537
|
data,
|
|
6448
6538
|
service,
|
|
@@ -6484,7 +6574,7 @@ function useModelService() {
|
|
|
6484
6574
|
},
|
|
6485
6575
|
[env]
|
|
6486
6576
|
);
|
|
6487
|
-
const getListCalendar = (0,
|
|
6577
|
+
const getListCalendar = (0, import_react67.useCallback)(
|
|
6488
6578
|
async ({ data }) => {
|
|
6489
6579
|
const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
6490
6580
|
fields: data.fields,
|
|
@@ -6515,7 +6605,7 @@ function useModelService() {
|
|
|
6515
6605
|
},
|
|
6516
6606
|
[env]
|
|
6517
6607
|
);
|
|
6518
|
-
const getList = (0,
|
|
6608
|
+
const getList = (0, import_react67.useCallback)(
|
|
6519
6609
|
async ({
|
|
6520
6610
|
model,
|
|
6521
6611
|
ids = [],
|
|
@@ -6547,7 +6637,7 @@ function useModelService() {
|
|
|
6547
6637
|
},
|
|
6548
6638
|
[env]
|
|
6549
6639
|
);
|
|
6550
|
-
const getDetail = (0,
|
|
6640
|
+
const getDetail = (0, import_react67.useCallback)(
|
|
6551
6641
|
async ({
|
|
6552
6642
|
ids = [],
|
|
6553
6643
|
model,
|
|
@@ -6579,7 +6669,7 @@ function useModelService() {
|
|
|
6579
6669
|
},
|
|
6580
6670
|
[env]
|
|
6581
6671
|
);
|
|
6582
|
-
const save = (0,
|
|
6672
|
+
const save = (0, import_react67.useCallback)(
|
|
6583
6673
|
async ({
|
|
6584
6674
|
model,
|
|
6585
6675
|
ids = [],
|
|
@@ -6614,7 +6704,7 @@ function useModelService() {
|
|
|
6614
6704
|
},
|
|
6615
6705
|
[env]
|
|
6616
6706
|
);
|
|
6617
|
-
const deleteApi = (0,
|
|
6707
|
+
const deleteApi = (0, import_react67.useCallback)(
|
|
6618
6708
|
async ({ ids = [], model, service }) => {
|
|
6619
6709
|
const jsonData = {
|
|
6620
6710
|
model,
|
|
@@ -6634,7 +6724,7 @@ function useModelService() {
|
|
|
6634
6724
|
},
|
|
6635
6725
|
[env]
|
|
6636
6726
|
);
|
|
6637
|
-
const onChange = (0,
|
|
6727
|
+
const onChange = (0, import_react67.useCallback)(
|
|
6638
6728
|
async ({
|
|
6639
6729
|
ids = [],
|
|
6640
6730
|
model,
|
|
@@ -6670,7 +6760,7 @@ function useModelService() {
|
|
|
6670
6760
|
},
|
|
6671
6761
|
[env]
|
|
6672
6762
|
);
|
|
6673
|
-
const getListFieldsOnchange = (0,
|
|
6763
|
+
const getListFieldsOnchange = (0, import_react67.useCallback)(
|
|
6674
6764
|
async ({
|
|
6675
6765
|
model,
|
|
6676
6766
|
service,
|
|
@@ -6694,7 +6784,7 @@ function useModelService() {
|
|
|
6694
6784
|
},
|
|
6695
6785
|
[env]
|
|
6696
6786
|
);
|
|
6697
|
-
const parseORMOdoo = (0,
|
|
6787
|
+
const parseORMOdoo = (0, import_react67.useCallback)((data) => {
|
|
6698
6788
|
for (const key in data) {
|
|
6699
6789
|
if (key === "display_name") {
|
|
6700
6790
|
delete data[key];
|
|
@@ -6705,7 +6795,7 @@ function useModelService() {
|
|
|
6705
6795
|
}
|
|
6706
6796
|
return { ...data };
|
|
6707
6797
|
}, []);
|
|
6708
|
-
const toDataJS = (0,
|
|
6798
|
+
const toDataJS = (0, import_react67.useCallback)(
|
|
6709
6799
|
(data, viewData, model) => {
|
|
6710
6800
|
for (const key in data) {
|
|
6711
6801
|
if (data[key] === false) {
|
|
@@ -6763,10 +6853,10 @@ function useModelService() {
|
|
|
6763
6853
|
}
|
|
6764
6854
|
|
|
6765
6855
|
// src/services/user-service/index.ts
|
|
6766
|
-
var
|
|
6856
|
+
var import_react68 = require("react");
|
|
6767
6857
|
function useUserService() {
|
|
6768
6858
|
const { env } = useEnv();
|
|
6769
|
-
const getProfile = (0,
|
|
6859
|
+
const getProfile = (0, import_react68.useCallback)(
|
|
6770
6860
|
async (service, path, extraHeaders) => {
|
|
6771
6861
|
return env?.requests?.get(
|
|
6772
6862
|
path || "/userinfo" /* PROFILE_PATH */,
|
|
@@ -6783,7 +6873,7 @@ function useUserService() {
|
|
|
6783
6873
|
},
|
|
6784
6874
|
[env]
|
|
6785
6875
|
);
|
|
6786
|
-
const getUser = (0,
|
|
6876
|
+
const getUser = (0, import_react68.useCallback)(
|
|
6787
6877
|
async ({ context, id }) => {
|
|
6788
6878
|
const jsonData = {
|
|
6789
6879
|
model: "res.users",
|
|
@@ -6821,7 +6911,7 @@ function useUserService() {
|
|
|
6821
6911
|
},
|
|
6822
6912
|
[env]
|
|
6823
6913
|
);
|
|
6824
|
-
const switchUserLocale = (0,
|
|
6914
|
+
const switchUserLocale = (0, import_react68.useCallback)(
|
|
6825
6915
|
async ({ id, values, service }) => {
|
|
6826
6916
|
const jsonData = {
|
|
6827
6917
|
model: "res.users",
|
|
@@ -6849,10 +6939,10 @@ function useUserService() {
|
|
|
6849
6939
|
}
|
|
6850
6940
|
|
|
6851
6941
|
// src/services/view-service/index.ts
|
|
6852
|
-
var
|
|
6942
|
+
var import_react69 = require("react");
|
|
6853
6943
|
function useViewService() {
|
|
6854
6944
|
const { env } = useEnv();
|
|
6855
|
-
const getView = (0,
|
|
6945
|
+
const getView = (0, import_react69.useCallback)(
|
|
6856
6946
|
async ({
|
|
6857
6947
|
model,
|
|
6858
6948
|
views,
|
|
@@ -6892,7 +6982,7 @@ function useViewService() {
|
|
|
6892
6982
|
},
|
|
6893
6983
|
[env]
|
|
6894
6984
|
);
|
|
6895
|
-
const getMenu = (0,
|
|
6985
|
+
const getMenu = (0, import_react69.useCallback)(
|
|
6896
6986
|
async (context, specification, domain, service) => {
|
|
6897
6987
|
const jsonData = {
|
|
6898
6988
|
model: "ir.ui.menu" /* MENU */,
|
|
@@ -6923,7 +7013,7 @@ function useViewService() {
|
|
|
6923
7013
|
},
|
|
6924
7014
|
[env]
|
|
6925
7015
|
);
|
|
6926
|
-
const getActionDetail = (0,
|
|
7016
|
+
const getActionDetail = (0, import_react69.useCallback)(
|
|
6927
7017
|
async (aid, context) => {
|
|
6928
7018
|
const jsonData = {
|
|
6929
7019
|
model: "ir.actions.act_window" /* WINDOW_ACTION */,
|
|
@@ -6953,7 +7043,7 @@ function useViewService() {
|
|
|
6953
7043
|
},
|
|
6954
7044
|
[env]
|
|
6955
7045
|
);
|
|
6956
|
-
const getResequence = (0,
|
|
7046
|
+
const getResequence = (0, import_react69.useCallback)(
|
|
6957
7047
|
async ({
|
|
6958
7048
|
model,
|
|
6959
7049
|
ids,
|
|
@@ -6983,7 +7073,7 @@ function useViewService() {
|
|
|
6983
7073
|
},
|
|
6984
7074
|
[env]
|
|
6985
7075
|
);
|
|
6986
|
-
const getSelectionItem = (0,
|
|
7076
|
+
const getSelectionItem = (0, import_react69.useCallback)(
|
|
6987
7077
|
async ({
|
|
6988
7078
|
data,
|
|
6989
7079
|
service,
|
|
@@ -7020,7 +7110,7 @@ function useViewService() {
|
|
|
7020
7110
|
},
|
|
7021
7111
|
[env]
|
|
7022
7112
|
);
|
|
7023
|
-
const loadMessages = (0,
|
|
7113
|
+
const loadMessages = (0, import_react69.useCallback)(async () => {
|
|
7024
7114
|
return env.requests.post(
|
|
7025
7115
|
"/load_message_failures" /* LOAD_MESSAGE */,
|
|
7026
7116
|
{},
|
|
@@ -7031,14 +7121,14 @@ function useViewService() {
|
|
|
7031
7121
|
}
|
|
7032
7122
|
);
|
|
7033
7123
|
}, [env]);
|
|
7034
|
-
const getVersion = (0,
|
|
7124
|
+
const getVersion = (0, import_react69.useCallback)(async () => {
|
|
7035
7125
|
return env?.requests?.get("", {
|
|
7036
7126
|
headers: {
|
|
7037
7127
|
"Content-Type": "application/json"
|
|
7038
7128
|
}
|
|
7039
7129
|
});
|
|
7040
7130
|
}, [env]);
|
|
7041
|
-
const grantAccess = (0,
|
|
7131
|
+
const grantAccess = (0, import_react69.useCallback)(
|
|
7042
7132
|
async ({
|
|
7043
7133
|
redirect_uri,
|
|
7044
7134
|
state,
|
|
@@ -7065,7 +7155,7 @@ function useViewService() {
|
|
|
7065
7155
|
},
|
|
7066
7156
|
[env]
|
|
7067
7157
|
);
|
|
7068
|
-
const removeTotpSetUp = (0,
|
|
7158
|
+
const removeTotpSetUp = (0, import_react69.useCallback)(
|
|
7069
7159
|
async ({ method, token }) => {
|
|
7070
7160
|
const jsonData = {
|
|
7071
7161
|
method,
|
|
@@ -7086,7 +7176,7 @@ function useViewService() {
|
|
|
7086
7176
|
},
|
|
7087
7177
|
[env]
|
|
7088
7178
|
);
|
|
7089
|
-
const requestSetupTotp = (0,
|
|
7179
|
+
const requestSetupTotp = (0, import_react69.useCallback)(
|
|
7090
7180
|
async ({ method, token }) => {
|
|
7091
7181
|
const jsonData = {
|
|
7092
7182
|
method,
|
|
@@ -7105,7 +7195,7 @@ function useViewService() {
|
|
|
7105
7195
|
},
|
|
7106
7196
|
[env]
|
|
7107
7197
|
);
|
|
7108
|
-
const settingsWebRead2fa = (0,
|
|
7198
|
+
const settingsWebRead2fa = (0, import_react69.useCallback)(
|
|
7109
7199
|
async ({
|
|
7110
7200
|
method,
|
|
7111
7201
|
model,
|
|
@@ -7133,7 +7223,7 @@ function useViewService() {
|
|
|
7133
7223
|
},
|
|
7134
7224
|
[env]
|
|
7135
7225
|
);
|
|
7136
|
-
const signInSSO = (0,
|
|
7226
|
+
const signInSSO = (0, import_react69.useCallback)(
|
|
7137
7227
|
async ({
|
|
7138
7228
|
redirect_uri,
|
|
7139
7229
|
state,
|
|
@@ -7165,7 +7255,7 @@ function useViewService() {
|
|
|
7165
7255
|
},
|
|
7166
7256
|
[env]
|
|
7167
7257
|
);
|
|
7168
|
-
const verify2FA = (0,
|
|
7258
|
+
const verify2FA = (0, import_react69.useCallback)(
|
|
7169
7259
|
({
|
|
7170
7260
|
method,
|
|
7171
7261
|
with_context,
|
|
@@ -7198,7 +7288,7 @@ function useViewService() {
|
|
|
7198
7288
|
},
|
|
7199
7289
|
[env]
|
|
7200
7290
|
);
|
|
7201
|
-
const get2FAMethods = (0,
|
|
7291
|
+
const get2FAMethods = (0, import_react69.useCallback)(
|
|
7202
7292
|
({ method, with_context }) => {
|
|
7203
7293
|
const jsonData = {
|
|
7204
7294
|
method,
|
|
@@ -7217,7 +7307,7 @@ function useViewService() {
|
|
|
7217
7307
|
},
|
|
7218
7308
|
[env]
|
|
7219
7309
|
);
|
|
7220
|
-
const verifyTotp = (0,
|
|
7310
|
+
const verifyTotp = (0, import_react69.useCallback)(
|
|
7221
7311
|
({
|
|
7222
7312
|
method,
|
|
7223
7313
|
action_token,
|
|
@@ -7242,7 +7332,7 @@ function useViewService() {
|
|
|
7242
7332
|
},
|
|
7243
7333
|
[env]
|
|
7244
7334
|
);
|
|
7245
|
-
const getNotifications = (0,
|
|
7335
|
+
const getNotifications = (0, import_react69.useCallback)(
|
|
7246
7336
|
async ({
|
|
7247
7337
|
service,
|
|
7248
7338
|
xNode,
|
|
@@ -7262,7 +7352,7 @@ function useViewService() {
|
|
|
7262
7352
|
},
|
|
7263
7353
|
[env]
|
|
7264
7354
|
);
|
|
7265
|
-
const getCountry = (0,
|
|
7355
|
+
const getCountry = (0, import_react69.useCallback)(
|
|
7266
7356
|
async ({
|
|
7267
7357
|
service,
|
|
7268
7358
|
xNode,
|
|
@@ -7289,7 +7379,7 @@ function useViewService() {
|
|
|
7289
7379
|
},
|
|
7290
7380
|
[env]
|
|
7291
7381
|
);
|
|
7292
|
-
const getCity = (0,
|
|
7382
|
+
const getCity = (0, import_react69.useCallback)(
|
|
7293
7383
|
async ({
|
|
7294
7384
|
service,
|
|
7295
7385
|
xNode,
|
|
@@ -7316,7 +7406,7 @@ function useViewService() {
|
|
|
7316
7406
|
},
|
|
7317
7407
|
[env]
|
|
7318
7408
|
);
|
|
7319
|
-
const getWard = (0,
|
|
7409
|
+
const getWard = (0, import_react69.useCallback)(
|
|
7320
7410
|
async ({
|
|
7321
7411
|
service,
|
|
7322
7412
|
xNode,
|
|
@@ -7341,7 +7431,7 @@ function useViewService() {
|
|
|
7341
7431
|
},
|
|
7342
7432
|
[env]
|
|
7343
7433
|
);
|
|
7344
|
-
const getPartnerTitle = (0,
|
|
7434
|
+
const getPartnerTitle = (0, import_react69.useCallback)(
|
|
7345
7435
|
async ({
|
|
7346
7436
|
service,
|
|
7347
7437
|
xNode,
|
|
@@ -7393,10 +7483,10 @@ function useViewService() {
|
|
|
7393
7483
|
}
|
|
7394
7484
|
|
|
7395
7485
|
// src/services/dashboard-service/index.ts
|
|
7396
|
-
var
|
|
7486
|
+
var import_react70 = require("react");
|
|
7397
7487
|
function useDashboardService() {
|
|
7398
7488
|
const { env } = useEnv();
|
|
7399
|
-
const readGroup = (0,
|
|
7489
|
+
const readGroup = (0, import_react70.useCallback)(
|
|
7400
7490
|
async ({
|
|
7401
7491
|
service,
|
|
7402
7492
|
xNode,
|
|
@@ -7413,7 +7503,7 @@ function useDashboardService() {
|
|
|
7413
7503
|
},
|
|
7414
7504
|
[env]
|
|
7415
7505
|
);
|
|
7416
|
-
const getDataChart = (0,
|
|
7506
|
+
const getDataChart = (0, import_react70.useCallback)(
|
|
7417
7507
|
async ({
|
|
7418
7508
|
service,
|
|
7419
7509
|
xNode,
|