@fctc/interface-logic 4.5.0 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks.d.mts +38 -1
- package/dist/hooks.d.ts +38 -1
- package/dist/hooks.js +274 -50
- package/dist/hooks.mjs +269 -50
- package/dist/provider.d.mts +6 -1
- package/dist/provider.d.ts +6 -1
- package/dist/provider.js +291 -72
- package/dist/provider.mjs +280 -61
- package/dist/services.d.mts +42 -0
- package/dist/services.d.ts +42 -0
- package/dist/services.js +305 -102
- package/dist/services.mjs +302 -99
- 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_react46 = require("react");
|
|
49
49
|
|
|
50
50
|
// src/constants/api/uri-constant.ts
|
|
51
51
|
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
@@ -2955,7 +2955,7 @@ function useEnv() {
|
|
|
2955
2955
|
}
|
|
2956
2956
|
|
|
2957
2957
|
// src/provider/service-provider.tsx
|
|
2958
|
-
var
|
|
2958
|
+
var import_react44 = require("react");
|
|
2959
2959
|
|
|
2960
2960
|
// src/hooks/auth/use-forgot-password.ts
|
|
2961
2961
|
var import_react_query3 = require("@tanstack/react-query");
|
|
@@ -4406,6 +4406,191 @@ var completeCurrentStageService = (env) => {
|
|
|
4406
4406
|
};
|
|
4407
4407
|
};
|
|
4408
4408
|
|
|
4409
|
+
// src/services/pos-service/supabase/add-floor.ts
|
|
4410
|
+
var import_react37 = require("react");
|
|
4411
|
+
var addFloorSupabaseService = () => {
|
|
4412
|
+
const supabase = useSupabaseOptional();
|
|
4413
|
+
const addFloorSupabase = (0, import_react37.useCallback)(
|
|
4414
|
+
async (values) => {
|
|
4415
|
+
if (!supabase) {
|
|
4416
|
+
console.error("Supabase client not initialized");
|
|
4417
|
+
return null;
|
|
4418
|
+
}
|
|
4419
|
+
try {
|
|
4420
|
+
const { data, error } = await supabase.from("restaurant_floors" /* RESTAURANT_FLOORS */).insert({
|
|
4421
|
+
name: values.name,
|
|
4422
|
+
sequence: values.sequence ?? 1,
|
|
4423
|
+
pos_config_ids: values.pos_config_ids ?? [],
|
|
4424
|
+
table_ids: values.table_ids ?? []
|
|
4425
|
+
}).select("id, name").single();
|
|
4426
|
+
if (error) {
|
|
4427
|
+
console.error("Error adding floor:", error);
|
|
4428
|
+
return null;
|
|
4429
|
+
}
|
|
4430
|
+
return [[data.id, data.name]];
|
|
4431
|
+
} catch (error) {
|
|
4432
|
+
console.error("Error adding floor:", error);
|
|
4433
|
+
return null;
|
|
4434
|
+
}
|
|
4435
|
+
},
|
|
4436
|
+
[supabase]
|
|
4437
|
+
);
|
|
4438
|
+
return {
|
|
4439
|
+
addFloorSupabase
|
|
4440
|
+
};
|
|
4441
|
+
};
|
|
4442
|
+
|
|
4443
|
+
// src/services/pos-service/supabase/add-table.ts
|
|
4444
|
+
var import_react38 = require("react");
|
|
4445
|
+
var addTableSupabaseService = () => {
|
|
4446
|
+
const supabase = useSupabaseOptional();
|
|
4447
|
+
const addTableSupabase = (0, import_react38.useCallback)(
|
|
4448
|
+
async (values) => {
|
|
4449
|
+
if (!supabase) {
|
|
4450
|
+
console.error("Supabase client not initialized");
|
|
4451
|
+
return null;
|
|
4452
|
+
}
|
|
4453
|
+
try {
|
|
4454
|
+
const { data, error } = await supabase.from("restaurant_tables" /* RESTAURANT_TABLES */).insert({
|
|
4455
|
+
floor_id: values.floor_id,
|
|
4456
|
+
table_number: values.table_number ?? 0,
|
|
4457
|
+
seats: values.seats ?? 1
|
|
4458
|
+
}).select("id, table_number").single();
|
|
4459
|
+
if (error) {
|
|
4460
|
+
console.error("Error adding table:", error);
|
|
4461
|
+
return null;
|
|
4462
|
+
}
|
|
4463
|
+
return [[data.id, data.table_number]];
|
|
4464
|
+
} catch (error) {
|
|
4465
|
+
console.error("Error adding table:", error);
|
|
4466
|
+
return null;
|
|
4467
|
+
}
|
|
4468
|
+
},
|
|
4469
|
+
[supabase]
|
|
4470
|
+
);
|
|
4471
|
+
return {
|
|
4472
|
+
addTableSupabase
|
|
4473
|
+
};
|
|
4474
|
+
};
|
|
4475
|
+
|
|
4476
|
+
// src/services/pos-service/supabase/update-floor.ts
|
|
4477
|
+
var import_react39 = require("react");
|
|
4478
|
+
var updateFloorSupabaseService = () => {
|
|
4479
|
+
const supabase = useSupabaseOptional();
|
|
4480
|
+
const updateFloorSupabase = (0, import_react39.useCallback)(
|
|
4481
|
+
async (values) => {
|
|
4482
|
+
if (!supabase) {
|
|
4483
|
+
console.error("Supabase client not initialized");
|
|
4484
|
+
return false;
|
|
4485
|
+
}
|
|
4486
|
+
try {
|
|
4487
|
+
const { id, ...updateData } = values;
|
|
4488
|
+
const { error } = await supabase.from("restaurant_floors" /* RESTAURANT_FLOORS */).update(updateData).eq("id", id);
|
|
4489
|
+
if (error) {
|
|
4490
|
+
console.error("Error updating floor:", error);
|
|
4491
|
+
return false;
|
|
4492
|
+
}
|
|
4493
|
+
return true;
|
|
4494
|
+
} catch (error) {
|
|
4495
|
+
console.error("Error updating floor:", error);
|
|
4496
|
+
return false;
|
|
4497
|
+
}
|
|
4498
|
+
},
|
|
4499
|
+
[supabase]
|
|
4500
|
+
);
|
|
4501
|
+
return {
|
|
4502
|
+
updateFloorSupabase
|
|
4503
|
+
};
|
|
4504
|
+
};
|
|
4505
|
+
|
|
4506
|
+
// src/services/pos-service/supabase/update-table.ts
|
|
4507
|
+
var import_react40 = require("react");
|
|
4508
|
+
var updateTableSupabaseService = () => {
|
|
4509
|
+
const supabase = useSupabaseOptional();
|
|
4510
|
+
const updateTableSupabase = (0, import_react40.useCallback)(
|
|
4511
|
+
async (values) => {
|
|
4512
|
+
if (!supabase) {
|
|
4513
|
+
console.error("Supabase client not initialized");
|
|
4514
|
+
return false;
|
|
4515
|
+
}
|
|
4516
|
+
try {
|
|
4517
|
+
const { id, ...updateData } = values;
|
|
4518
|
+
const { error } = await supabase.from("restaurant_tables" /* RESTAURANT_TABLES */).update(updateData).eq("id", id);
|
|
4519
|
+
if (error) {
|
|
4520
|
+
console.error("Error updating table:", error);
|
|
4521
|
+
return false;
|
|
4522
|
+
}
|
|
4523
|
+
return true;
|
|
4524
|
+
} catch (error) {
|
|
4525
|
+
console.error("Error updating table:", error);
|
|
4526
|
+
return false;
|
|
4527
|
+
}
|
|
4528
|
+
},
|
|
4529
|
+
[supabase]
|
|
4530
|
+
);
|
|
4531
|
+
return {
|
|
4532
|
+
updateTableSupabase
|
|
4533
|
+
};
|
|
4534
|
+
};
|
|
4535
|
+
|
|
4536
|
+
// src/services/pos-service/supabase/delete-floor.ts
|
|
4537
|
+
var import_react41 = require("react");
|
|
4538
|
+
var deleteFloorSupabaseService = () => {
|
|
4539
|
+
const supabase = useSupabaseOptional();
|
|
4540
|
+
const deleteFloorSupabase = (0, import_react41.useCallback)(
|
|
4541
|
+
async (values) => {
|
|
4542
|
+
if (!supabase) {
|
|
4543
|
+
console.error("Supabase client not initialized");
|
|
4544
|
+
return false;
|
|
4545
|
+
}
|
|
4546
|
+
try {
|
|
4547
|
+
const { error } = await supabase.from("restaurant_floors" /* RESTAURANT_FLOORS */).delete().eq("id", values.id);
|
|
4548
|
+
if (error) {
|
|
4549
|
+
console.error("Error deleting floor:", error);
|
|
4550
|
+
return false;
|
|
4551
|
+
}
|
|
4552
|
+
return true;
|
|
4553
|
+
} catch (error) {
|
|
4554
|
+
console.error("Error deleting floor:", error);
|
|
4555
|
+
return false;
|
|
4556
|
+
}
|
|
4557
|
+
},
|
|
4558
|
+
[supabase]
|
|
4559
|
+
);
|
|
4560
|
+
return {
|
|
4561
|
+
deleteFloorSupabase
|
|
4562
|
+
};
|
|
4563
|
+
};
|
|
4564
|
+
|
|
4565
|
+
// src/services/pos-service/supabase/delete-table.ts
|
|
4566
|
+
var import_react42 = require("react");
|
|
4567
|
+
var deleteTableSupabaseService = () => {
|
|
4568
|
+
const supabase = useSupabaseOptional();
|
|
4569
|
+
const deleteTableSupabase = (0, import_react42.useCallback)(
|
|
4570
|
+
async (values) => {
|
|
4571
|
+
if (!supabase) {
|
|
4572
|
+
console.error("Supabase client not initialized");
|
|
4573
|
+
return false;
|
|
4574
|
+
}
|
|
4575
|
+
try {
|
|
4576
|
+
const { error } = await supabase.from("restaurant_tables" /* RESTAURANT_TABLES */).delete().eq("id", values.id);
|
|
4577
|
+
if (error) {
|
|
4578
|
+
console.error("Error deleting table:", error);
|
|
4579
|
+
return false;
|
|
4580
|
+
}
|
|
4581
|
+
return true;
|
|
4582
|
+
} catch (error) {
|
|
4583
|
+
console.error("Error deleting table:", error);
|
|
4584
|
+
return false;
|
|
4585
|
+
}
|
|
4586
|
+
},
|
|
4587
|
+
[supabase]
|
|
4588
|
+
);
|
|
4589
|
+
return {
|
|
4590
|
+
deleteTableSupabase
|
|
4591
|
+
};
|
|
4592
|
+
};
|
|
4593
|
+
|
|
4409
4594
|
// src/services/pos-service/index.ts
|
|
4410
4595
|
var serviceFactories = [
|
|
4411
4596
|
addEntityService,
|
|
@@ -4437,7 +4622,13 @@ var serviceFactories = [
|
|
|
4437
4622
|
updateClosedSessionService,
|
|
4438
4623
|
updateEntityService,
|
|
4439
4624
|
updateOrderStatusService,
|
|
4440
|
-
completeCurrentStageService
|
|
4625
|
+
completeCurrentStageService,
|
|
4626
|
+
addFloorSupabaseService,
|
|
4627
|
+
addTableSupabaseService,
|
|
4628
|
+
updateFloorSupabaseService,
|
|
4629
|
+
updateTableSupabaseService,
|
|
4630
|
+
deleteFloorSupabaseService,
|
|
4631
|
+
deleteTableSupabaseService
|
|
4441
4632
|
];
|
|
4442
4633
|
var usePosService = () => {
|
|
4443
4634
|
const { env } = useEnv();
|
|
@@ -4539,27 +4730,39 @@ var import_react_query114 = require("@tanstack/react-query");
|
|
|
4539
4730
|
// src/hooks/pos/supabase/use-add-floor.ts
|
|
4540
4731
|
var import_react_query115 = require("@tanstack/react-query");
|
|
4541
4732
|
|
|
4542
|
-
// src/services/pos-service/supabase/
|
|
4543
|
-
var
|
|
4544
|
-
|
|
4545
|
-
// src/services/pos-service/supabase/add-table.ts
|
|
4546
|
-
var import_react38 = require("react");
|
|
4733
|
+
// src/services/pos-service/supabase/create-order.ts
|
|
4734
|
+
var import_react43 = require("react");
|
|
4547
4735
|
|
|
4548
4736
|
// src/hooks/pos/supabase/use-add-table.ts
|
|
4549
4737
|
var import_react_query116 = require("@tanstack/react-query");
|
|
4550
4738
|
|
|
4739
|
+
// src/hooks/pos/supabase/use-update-floor.ts
|
|
4740
|
+
var import_react_query117 = require("@tanstack/react-query");
|
|
4741
|
+
|
|
4742
|
+
// src/hooks/pos/supabase/use-update-table.ts
|
|
4743
|
+
var import_react_query118 = require("@tanstack/react-query");
|
|
4744
|
+
|
|
4745
|
+
// src/hooks/pos/supabase/use-delete-floor.ts
|
|
4746
|
+
var import_react_query119 = require("@tanstack/react-query");
|
|
4747
|
+
|
|
4748
|
+
// src/hooks/pos/supabase/use-delete-table.ts
|
|
4749
|
+
var import_react_query120 = require("@tanstack/react-query");
|
|
4750
|
+
|
|
4751
|
+
// src/hooks/pos/supabase/use-create-order.ts
|
|
4752
|
+
var import_react_query121 = require("@tanstack/react-query");
|
|
4753
|
+
|
|
4551
4754
|
// src/provider/service-provider.tsx
|
|
4552
4755
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
4553
|
-
var ServiceContext = (0,
|
|
4756
|
+
var ServiceContext = (0, import_react44.createContext)(null);
|
|
4554
4757
|
|
|
4555
4758
|
// src/provider/meta-provider.tsx
|
|
4556
|
-
var
|
|
4759
|
+
var import_react45 = require("react");
|
|
4557
4760
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
4558
4761
|
|
|
4559
4762
|
// src/services/action-service/index.ts
|
|
4560
4763
|
function useActionService() {
|
|
4561
4764
|
const { env } = useEnv();
|
|
4562
|
-
const loadAction = (0,
|
|
4765
|
+
const loadAction = (0, import_react46.useCallback)(
|
|
4563
4766
|
async ({
|
|
4564
4767
|
idAction,
|
|
4565
4768
|
context,
|
|
@@ -4583,7 +4786,7 @@ function useActionService() {
|
|
|
4583
4786
|
},
|
|
4584
4787
|
[env]
|
|
4585
4788
|
);
|
|
4586
|
-
const callButton = (0,
|
|
4789
|
+
const callButton = (0, import_react46.useCallback)(
|
|
4587
4790
|
async ({
|
|
4588
4791
|
model,
|
|
4589
4792
|
ids = [],
|
|
@@ -4617,7 +4820,7 @@ function useActionService() {
|
|
|
4617
4820
|
},
|
|
4618
4821
|
[env]
|
|
4619
4822
|
);
|
|
4620
|
-
const removeRows = (0,
|
|
4823
|
+
const removeRows = (0, import_react46.useCallback)(
|
|
4621
4824
|
async ({
|
|
4622
4825
|
model,
|
|
4623
4826
|
ids,
|
|
@@ -4643,7 +4846,7 @@ function useActionService() {
|
|
|
4643
4846
|
},
|
|
4644
4847
|
[env]
|
|
4645
4848
|
);
|
|
4646
|
-
const duplicateRecord = (0,
|
|
4849
|
+
const duplicateRecord = (0, import_react46.useCallback)(
|
|
4647
4850
|
async ({
|
|
4648
4851
|
model,
|
|
4649
4852
|
id,
|
|
@@ -4669,7 +4872,7 @@ function useActionService() {
|
|
|
4669
4872
|
},
|
|
4670
4873
|
[env]
|
|
4671
4874
|
);
|
|
4672
|
-
const getPrintReportName = (0,
|
|
4875
|
+
const getPrintReportName = (0, import_react46.useCallback)(
|
|
4673
4876
|
async ({ id }) => {
|
|
4674
4877
|
const jsonData = {
|
|
4675
4878
|
model: "ir.actions.report",
|
|
@@ -4687,7 +4890,7 @@ function useActionService() {
|
|
|
4687
4890
|
},
|
|
4688
4891
|
[env]
|
|
4689
4892
|
);
|
|
4690
|
-
const print = (0,
|
|
4893
|
+
const print = (0, import_react46.useCallback)(
|
|
4691
4894
|
async ({ id, report, db }) => {
|
|
4692
4895
|
const jsonData = {
|
|
4693
4896
|
report,
|
|
@@ -4705,7 +4908,7 @@ function useActionService() {
|
|
|
4705
4908
|
},
|
|
4706
4909
|
[env]
|
|
4707
4910
|
);
|
|
4708
|
-
const runAction = (0,
|
|
4911
|
+
const runAction = (0, import_react46.useCallback)(
|
|
4709
4912
|
async ({
|
|
4710
4913
|
idAction,
|
|
4711
4914
|
context,
|
|
@@ -4732,7 +4935,7 @@ function useActionService() {
|
|
|
4732
4935
|
},
|
|
4733
4936
|
[env]
|
|
4734
4937
|
);
|
|
4735
|
-
const generateSerialNumber = (0,
|
|
4938
|
+
const generateSerialNumber = (0, import_react46.useCallback)(
|
|
4736
4939
|
async ({
|
|
4737
4940
|
kwargs,
|
|
4738
4941
|
context,
|
|
@@ -4770,11 +4973,11 @@ function useActionService() {
|
|
|
4770
4973
|
}
|
|
4771
4974
|
|
|
4772
4975
|
// src/services/auth-service/index.ts
|
|
4773
|
-
var
|
|
4976
|
+
var import_react47 = require("react");
|
|
4774
4977
|
function useAuthService() {
|
|
4775
4978
|
const { env } = useEnv();
|
|
4776
4979
|
const supabase = useSupabaseOptional();
|
|
4777
|
-
const login = (0,
|
|
4980
|
+
const login = (0, import_react47.useCallback)(
|
|
4778
4981
|
async (body) => {
|
|
4779
4982
|
const payload = Object.fromEntries(
|
|
4780
4983
|
Object.entries({
|
|
@@ -4799,7 +5002,7 @@ function useAuthService() {
|
|
|
4799
5002
|
},
|
|
4800
5003
|
[env]
|
|
4801
5004
|
);
|
|
4802
|
-
const loginSupabase = (0,
|
|
5005
|
+
const loginSupabase = (0, import_react47.useCallback)(
|
|
4803
5006
|
async (body) => {
|
|
4804
5007
|
if (!supabase) {
|
|
4805
5008
|
return {
|
|
@@ -4815,7 +5018,7 @@ function useAuthService() {
|
|
|
4815
5018
|
},
|
|
4816
5019
|
[supabase]
|
|
4817
5020
|
);
|
|
4818
|
-
const forgotPassword = (0,
|
|
5021
|
+
const forgotPassword = (0, import_react47.useCallback)(
|
|
4819
5022
|
async (email) => {
|
|
4820
5023
|
const bodyData = {
|
|
4821
5024
|
login: email,
|
|
@@ -4829,7 +5032,7 @@ function useAuthService() {
|
|
|
4829
5032
|
},
|
|
4830
5033
|
[env]
|
|
4831
5034
|
);
|
|
4832
|
-
const forgotPasswordSSO = (0,
|
|
5035
|
+
const forgotPasswordSSO = (0, import_react47.useCallback)(
|
|
4833
5036
|
async ({
|
|
4834
5037
|
email,
|
|
4835
5038
|
with_context,
|
|
@@ -4852,7 +5055,7 @@ function useAuthService() {
|
|
|
4852
5055
|
},
|
|
4853
5056
|
[env]
|
|
4854
5057
|
);
|
|
4855
|
-
const resetPassword = (0,
|
|
5058
|
+
const resetPassword = (0, import_react47.useCallback)(
|
|
4856
5059
|
async (data, token) => {
|
|
4857
5060
|
const bodyData = {
|
|
4858
5061
|
token,
|
|
@@ -4867,7 +5070,7 @@ function useAuthService() {
|
|
|
4867
5070
|
},
|
|
4868
5071
|
[env]
|
|
4869
5072
|
);
|
|
4870
|
-
const resetPasswordSSO = (0,
|
|
5073
|
+
const resetPasswordSSO = (0, import_react47.useCallback)(
|
|
4871
5074
|
async ({
|
|
4872
5075
|
method,
|
|
4873
5076
|
password,
|
|
@@ -4890,7 +5093,7 @@ function useAuthService() {
|
|
|
4890
5093
|
},
|
|
4891
5094
|
[env]
|
|
4892
5095
|
);
|
|
4893
|
-
const updatePassword = (0,
|
|
5096
|
+
const updatePassword = (0, import_react47.useCallback)(
|
|
4894
5097
|
async (data, token) => {
|
|
4895
5098
|
const bodyData = {
|
|
4896
5099
|
token,
|
|
@@ -4905,7 +5108,7 @@ function useAuthService() {
|
|
|
4905
5108
|
},
|
|
4906
5109
|
[env]
|
|
4907
5110
|
);
|
|
4908
|
-
const isValidToken = (0,
|
|
5111
|
+
const isValidToken = (0, import_react47.useCallback)(
|
|
4909
5112
|
async (token) => {
|
|
4910
5113
|
const bodyData = {
|
|
4911
5114
|
token
|
|
@@ -4918,7 +5121,7 @@ function useAuthService() {
|
|
|
4918
5121
|
},
|
|
4919
5122
|
[env]
|
|
4920
5123
|
);
|
|
4921
|
-
const isValidActionToken = (0,
|
|
5124
|
+
const isValidActionToken = (0, import_react47.useCallback)(
|
|
4922
5125
|
async (actionToken) => {
|
|
4923
5126
|
const bodyData = {};
|
|
4924
5127
|
return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
|
|
@@ -4931,7 +5134,7 @@ function useAuthService() {
|
|
|
4931
5134
|
},
|
|
4932
5135
|
[env]
|
|
4933
5136
|
);
|
|
4934
|
-
const loginSocial = (0,
|
|
5137
|
+
const loginSocial = (0, import_react47.useCallback)(
|
|
4935
5138
|
async ({
|
|
4936
5139
|
db,
|
|
4937
5140
|
state,
|
|
@@ -4949,13 +5152,13 @@ function useAuthService() {
|
|
|
4949
5152
|
},
|
|
4950
5153
|
[env]
|
|
4951
5154
|
);
|
|
4952
|
-
const getProviders = (0,
|
|
5155
|
+
const getProviders = (0, import_react47.useCallback)(
|
|
4953
5156
|
async (db) => {
|
|
4954
5157
|
return env?.requests?.get("/oauth/providers", { params: { db } });
|
|
4955
5158
|
},
|
|
4956
5159
|
[env]
|
|
4957
5160
|
);
|
|
4958
|
-
const getAccessByCode = (0,
|
|
5161
|
+
const getAccessByCode = (0, import_react47.useCallback)(
|
|
4959
5162
|
async (code) => {
|
|
4960
5163
|
const data = new URLSearchParams();
|
|
4961
5164
|
data.append("code", code);
|
|
@@ -4975,7 +5178,7 @@ function useAuthService() {
|
|
|
4975
5178
|
},
|
|
4976
5179
|
[env]
|
|
4977
5180
|
);
|
|
4978
|
-
const logout = (0,
|
|
5181
|
+
const logout = (0, import_react47.useCallback)(
|
|
4979
5182
|
async (service) => {
|
|
4980
5183
|
return env?.requests?.post(
|
|
4981
5184
|
"/logout" /* LOGOUT */,
|
|
@@ -4992,7 +5195,7 @@ function useAuthService() {
|
|
|
4992
5195
|
},
|
|
4993
5196
|
[env]
|
|
4994
5197
|
);
|
|
4995
|
-
const getTenantMapping = (0,
|
|
5198
|
+
const getTenantMapping = (0, import_react47.useCallback)(
|
|
4996
5199
|
async ({ shortName, service }) => {
|
|
4997
5200
|
const bodyData = {
|
|
4998
5201
|
short_name: shortName
|
|
@@ -5010,7 +5213,7 @@ function useAuthService() {
|
|
|
5010
5213
|
},
|
|
5011
5214
|
[env]
|
|
5012
5215
|
);
|
|
5013
|
-
const getToken = (0,
|
|
5216
|
+
const getToken = (0, import_react47.useCallback)(
|
|
5014
5217
|
async ({
|
|
5015
5218
|
phone,
|
|
5016
5219
|
name,
|
|
@@ -5055,10 +5258,10 @@ function useAuthService() {
|
|
|
5055
5258
|
}
|
|
5056
5259
|
|
|
5057
5260
|
// src/services/company-service/index.ts
|
|
5058
|
-
var
|
|
5261
|
+
var import_react48 = require("react");
|
|
5059
5262
|
function useCompanyService() {
|
|
5060
5263
|
const { env } = useEnv();
|
|
5061
|
-
const getCurrentCompany = (0,
|
|
5264
|
+
const getCurrentCompany = (0, import_react48.useCallback)(
|
|
5062
5265
|
async (service, extraHeaders) => {
|
|
5063
5266
|
return await env.requests.get(
|
|
5064
5267
|
"/company" /* COMPANY_PATH */,
|
|
@@ -5075,7 +5278,7 @@ function useCompanyService() {
|
|
|
5075
5278
|
},
|
|
5076
5279
|
[env]
|
|
5077
5280
|
);
|
|
5078
|
-
const getInfoCompany = (0,
|
|
5281
|
+
const getInfoCompany = (0, import_react48.useCallback)(
|
|
5079
5282
|
async (id, service) => {
|
|
5080
5283
|
const jsonData = {
|
|
5081
5284
|
ids: [id],
|
|
@@ -5111,10 +5314,10 @@ function useCompanyService() {
|
|
|
5111
5314
|
}
|
|
5112
5315
|
|
|
5113
5316
|
// src/services/excel-service/index.ts
|
|
5114
|
-
var
|
|
5317
|
+
var import_react49 = require("react");
|
|
5115
5318
|
function useExcelService() {
|
|
5116
5319
|
const { env } = useEnv();
|
|
5117
|
-
const uploadFileExcel = (0,
|
|
5320
|
+
const uploadFileExcel = (0, import_react49.useCallback)(
|
|
5118
5321
|
async ({
|
|
5119
5322
|
formData,
|
|
5120
5323
|
service,
|
|
@@ -5131,7 +5334,7 @@ function useExcelService() {
|
|
|
5131
5334
|
},
|
|
5132
5335
|
[env]
|
|
5133
5336
|
);
|
|
5134
|
-
const uploadIdFile = (0,
|
|
5337
|
+
const uploadIdFile = (0, import_react49.useCallback)(
|
|
5135
5338
|
async ({
|
|
5136
5339
|
formData,
|
|
5137
5340
|
service,
|
|
@@ -5148,7 +5351,7 @@ function useExcelService() {
|
|
|
5148
5351
|
},
|
|
5149
5352
|
[env]
|
|
5150
5353
|
);
|
|
5151
|
-
const parsePreview = (0,
|
|
5354
|
+
const parsePreview = (0, import_react49.useCallback)(
|
|
5152
5355
|
async ({
|
|
5153
5356
|
id,
|
|
5154
5357
|
selectedSheet,
|
|
@@ -5197,7 +5400,7 @@ function useExcelService() {
|
|
|
5197
5400
|
},
|
|
5198
5401
|
[env]
|
|
5199
5402
|
);
|
|
5200
|
-
const executeImport = (0,
|
|
5403
|
+
const executeImport = (0, import_react49.useCallback)(
|
|
5201
5404
|
async ({
|
|
5202
5405
|
columns,
|
|
5203
5406
|
fields,
|
|
@@ -5231,7 +5434,7 @@ function useExcelService() {
|
|
|
5231
5434
|
},
|
|
5232
5435
|
[env]
|
|
5233
5436
|
);
|
|
5234
|
-
const getFileExcel = (0,
|
|
5437
|
+
const getFileExcel = (0, import_react49.useCallback)(
|
|
5235
5438
|
async ({
|
|
5236
5439
|
model,
|
|
5237
5440
|
service,
|
|
@@ -5255,7 +5458,7 @@ function useExcelService() {
|
|
|
5255
5458
|
},
|
|
5256
5459
|
[env]
|
|
5257
5460
|
);
|
|
5258
|
-
const getFieldExport = (0,
|
|
5461
|
+
const getFieldExport = (0, import_react49.useCallback)(
|
|
5259
5462
|
async ({
|
|
5260
5463
|
ids,
|
|
5261
5464
|
model,
|
|
@@ -5295,7 +5498,7 @@ function useExcelService() {
|
|
|
5295
5498
|
},
|
|
5296
5499
|
[env]
|
|
5297
5500
|
);
|
|
5298
|
-
const exportExcel = (0,
|
|
5501
|
+
const exportExcel = (0, import_react49.useCallback)(
|
|
5299
5502
|
async ({
|
|
5300
5503
|
model,
|
|
5301
5504
|
domain,
|
|
@@ -5343,10 +5546,10 @@ function useExcelService() {
|
|
|
5343
5546
|
}
|
|
5344
5547
|
|
|
5345
5548
|
// src/services/form-service/index.ts
|
|
5346
|
-
var
|
|
5549
|
+
var import_react50 = require("react");
|
|
5347
5550
|
function useFormService() {
|
|
5348
5551
|
const { env } = useEnv();
|
|
5349
|
-
const getComment = (0,
|
|
5552
|
+
const getComment = (0, import_react50.useCallback)(
|
|
5350
5553
|
async ({ data }) => {
|
|
5351
5554
|
const jsonData = {
|
|
5352
5555
|
thread_id: data.thread_id,
|
|
@@ -5364,7 +5567,7 @@ function useFormService() {
|
|
|
5364
5567
|
},
|
|
5365
5568
|
[env]
|
|
5366
5569
|
);
|
|
5367
|
-
const getThreadData = (0,
|
|
5570
|
+
const getThreadData = (0, import_react50.useCallback)(
|
|
5368
5571
|
async ({
|
|
5369
5572
|
data,
|
|
5370
5573
|
xNode,
|
|
@@ -5391,7 +5594,7 @@ function useFormService() {
|
|
|
5391
5594
|
},
|
|
5392
5595
|
[env]
|
|
5393
5596
|
);
|
|
5394
|
-
const getThreadMessages = (0,
|
|
5597
|
+
const getThreadMessages = (0, import_react50.useCallback)(
|
|
5395
5598
|
async ({
|
|
5396
5599
|
data,
|
|
5397
5600
|
xNode,
|
|
@@ -5417,7 +5620,7 @@ function useFormService() {
|
|
|
5417
5620
|
},
|
|
5418
5621
|
[env]
|
|
5419
5622
|
);
|
|
5420
|
-
const sentComment = (0,
|
|
5623
|
+
const sentComment = (0, import_react50.useCallback)(
|
|
5421
5624
|
async ({ data }) => {
|
|
5422
5625
|
const jsonData = {
|
|
5423
5626
|
context: {
|
|
@@ -5445,7 +5648,7 @@ function useFormService() {
|
|
|
5445
5648
|
},
|
|
5446
5649
|
[env]
|
|
5447
5650
|
);
|
|
5448
|
-
const deleteComment = (0,
|
|
5651
|
+
const deleteComment = (0, import_react50.useCallback)(
|
|
5449
5652
|
async ({ data }) => {
|
|
5450
5653
|
const jsonData = {
|
|
5451
5654
|
attachment_ids: [],
|
|
@@ -5461,7 +5664,7 @@ function useFormService() {
|
|
|
5461
5664
|
},
|
|
5462
5665
|
[env]
|
|
5463
5666
|
);
|
|
5464
|
-
const getImage = (0,
|
|
5667
|
+
const getImage = (0, import_react50.useCallback)(
|
|
5465
5668
|
async ({ data }) => {
|
|
5466
5669
|
return env.requests.get(
|
|
5467
5670
|
`${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
|
|
@@ -5474,7 +5677,7 @@ function useFormService() {
|
|
|
5474
5677
|
},
|
|
5475
5678
|
[env]
|
|
5476
5679
|
);
|
|
5477
|
-
const uploadImage = (0,
|
|
5680
|
+
const uploadImage = (0, import_react50.useCallback)(
|
|
5478
5681
|
async ({
|
|
5479
5682
|
formData,
|
|
5480
5683
|
service,
|
|
@@ -5493,7 +5696,7 @@ function useFormService() {
|
|
|
5493
5696
|
},
|
|
5494
5697
|
[env]
|
|
5495
5698
|
);
|
|
5496
|
-
const uploadFile = (0,
|
|
5699
|
+
const uploadFile = (0, import_react50.useCallback)(
|
|
5497
5700
|
async ({
|
|
5498
5701
|
formData,
|
|
5499
5702
|
service,
|
|
@@ -5513,7 +5716,7 @@ function useFormService() {
|
|
|
5513
5716
|
},
|
|
5514
5717
|
[env]
|
|
5515
5718
|
);
|
|
5516
|
-
const getFormView = (0,
|
|
5719
|
+
const getFormView = (0, import_react50.useCallback)(
|
|
5517
5720
|
async ({ data }) => {
|
|
5518
5721
|
const jsonData = {
|
|
5519
5722
|
model: data.model,
|
|
@@ -5529,7 +5732,7 @@ function useFormService() {
|
|
|
5529
5732
|
},
|
|
5530
5733
|
[env]
|
|
5531
5734
|
);
|
|
5532
|
-
const changeStatus = (0,
|
|
5735
|
+
const changeStatus = (0, import_react50.useCallback)(
|
|
5533
5736
|
async ({ data }) => {
|
|
5534
5737
|
const vals = {
|
|
5535
5738
|
[data.name]: data.stage_id
|
|
@@ -5558,7 +5761,7 @@ function useFormService() {
|
|
|
5558
5761
|
},
|
|
5559
5762
|
[env]
|
|
5560
5763
|
);
|
|
5561
|
-
const getExternalTab = (0,
|
|
5764
|
+
const getExternalTab = (0, import_react50.useCallback)(
|
|
5562
5765
|
async ({ method, context, service, xNode }) => {
|
|
5563
5766
|
return env?.requests?.post(
|
|
5564
5767
|
"/call" /* CALL_PATH */,
|
|
@@ -5593,10 +5796,10 @@ function useFormService() {
|
|
|
5593
5796
|
}
|
|
5594
5797
|
|
|
5595
5798
|
// src/services/kanban-service/index.ts
|
|
5596
|
-
var
|
|
5799
|
+
var import_react51 = require("react");
|
|
5597
5800
|
function useKanbanService() {
|
|
5598
5801
|
const { env } = useEnv();
|
|
5599
|
-
const getGroups = (0,
|
|
5802
|
+
const getGroups = (0, import_react51.useCallback)(
|
|
5600
5803
|
async ({ model, width_context }) => {
|
|
5601
5804
|
const jsonData = {
|
|
5602
5805
|
model,
|
|
@@ -5616,7 +5819,7 @@ function useKanbanService() {
|
|
|
5616
5819
|
},
|
|
5617
5820
|
[env]
|
|
5618
5821
|
);
|
|
5619
|
-
const getProgressBar = (0,
|
|
5822
|
+
const getProgressBar = (0, import_react51.useCallback)(
|
|
5620
5823
|
async ({ field, color, model, width_context }) => {
|
|
5621
5824
|
const jsonData = {
|
|
5622
5825
|
model,
|
|
@@ -5646,10 +5849,10 @@ function useKanbanService() {
|
|
|
5646
5849
|
}
|
|
5647
5850
|
|
|
5648
5851
|
// src/services/model-service/index.ts
|
|
5649
|
-
var
|
|
5852
|
+
var import_react52 = require("react");
|
|
5650
5853
|
function useModelService() {
|
|
5651
5854
|
const { env } = useEnv();
|
|
5652
|
-
const getListMyBankAccount = (0,
|
|
5855
|
+
const getListMyBankAccount = (0, import_react52.useCallback)(
|
|
5653
5856
|
async ({
|
|
5654
5857
|
domain,
|
|
5655
5858
|
spectification,
|
|
@@ -5673,7 +5876,7 @@ function useModelService() {
|
|
|
5673
5876
|
},
|
|
5674
5877
|
[env]
|
|
5675
5878
|
);
|
|
5676
|
-
const getCurrency = (0,
|
|
5879
|
+
const getCurrency = (0, import_react52.useCallback)(async () => {
|
|
5677
5880
|
const jsonData = {
|
|
5678
5881
|
model: "res.currency",
|
|
5679
5882
|
method: "web_search_read",
|
|
@@ -5693,7 +5896,7 @@ function useModelService() {
|
|
|
5693
5896
|
}
|
|
5694
5897
|
});
|
|
5695
5898
|
}, [env]);
|
|
5696
|
-
const getConversionRate = (0,
|
|
5899
|
+
const getConversionRate = (0, import_react52.useCallback)(async () => {
|
|
5697
5900
|
const jsonData = {
|
|
5698
5901
|
model: "res.currency",
|
|
5699
5902
|
method: "web_search_read",
|
|
@@ -5719,7 +5922,7 @@ function useModelService() {
|
|
|
5719
5922
|
}
|
|
5720
5923
|
});
|
|
5721
5924
|
}, [env]);
|
|
5722
|
-
const getAll = (0,
|
|
5925
|
+
const getAll = (0, import_react52.useCallback)(
|
|
5723
5926
|
async ({
|
|
5724
5927
|
data,
|
|
5725
5928
|
service,
|
|
@@ -5761,7 +5964,7 @@ function useModelService() {
|
|
|
5761
5964
|
},
|
|
5762
5965
|
[env]
|
|
5763
5966
|
);
|
|
5764
|
-
const getListCalendar = (0,
|
|
5967
|
+
const getListCalendar = (0, import_react52.useCallback)(
|
|
5765
5968
|
async ({ data }) => {
|
|
5766
5969
|
const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
|
|
5767
5970
|
fields: data.fields,
|
|
@@ -5792,7 +5995,7 @@ function useModelService() {
|
|
|
5792
5995
|
},
|
|
5793
5996
|
[env]
|
|
5794
5997
|
);
|
|
5795
|
-
const getList = (0,
|
|
5998
|
+
const getList = (0, import_react52.useCallback)(
|
|
5796
5999
|
async ({
|
|
5797
6000
|
model,
|
|
5798
6001
|
ids = [],
|
|
@@ -5824,7 +6027,7 @@ function useModelService() {
|
|
|
5824
6027
|
},
|
|
5825
6028
|
[env]
|
|
5826
6029
|
);
|
|
5827
|
-
const getDetail = (0,
|
|
6030
|
+
const getDetail = (0, import_react52.useCallback)(
|
|
5828
6031
|
async ({
|
|
5829
6032
|
ids = [],
|
|
5830
6033
|
model,
|
|
@@ -5856,7 +6059,7 @@ function useModelService() {
|
|
|
5856
6059
|
},
|
|
5857
6060
|
[env]
|
|
5858
6061
|
);
|
|
5859
|
-
const save = (0,
|
|
6062
|
+
const save = (0, import_react52.useCallback)(
|
|
5860
6063
|
async ({
|
|
5861
6064
|
model,
|
|
5862
6065
|
ids = [],
|
|
@@ -5891,7 +6094,7 @@ function useModelService() {
|
|
|
5891
6094
|
},
|
|
5892
6095
|
[env]
|
|
5893
6096
|
);
|
|
5894
|
-
const deleteApi = (0,
|
|
6097
|
+
const deleteApi = (0, import_react52.useCallback)(
|
|
5895
6098
|
async ({ ids = [], model, service }) => {
|
|
5896
6099
|
const jsonData = {
|
|
5897
6100
|
model,
|
|
@@ -5911,7 +6114,7 @@ function useModelService() {
|
|
|
5911
6114
|
},
|
|
5912
6115
|
[env]
|
|
5913
6116
|
);
|
|
5914
|
-
const onChange = (0,
|
|
6117
|
+
const onChange = (0, import_react52.useCallback)(
|
|
5915
6118
|
async ({
|
|
5916
6119
|
ids = [],
|
|
5917
6120
|
model,
|
|
@@ -5947,7 +6150,7 @@ function useModelService() {
|
|
|
5947
6150
|
},
|
|
5948
6151
|
[env]
|
|
5949
6152
|
);
|
|
5950
|
-
const getListFieldsOnchange = (0,
|
|
6153
|
+
const getListFieldsOnchange = (0, import_react52.useCallback)(
|
|
5951
6154
|
async ({
|
|
5952
6155
|
model,
|
|
5953
6156
|
service,
|
|
@@ -5971,7 +6174,7 @@ function useModelService() {
|
|
|
5971
6174
|
},
|
|
5972
6175
|
[env]
|
|
5973
6176
|
);
|
|
5974
|
-
const parseORMOdoo = (0,
|
|
6177
|
+
const parseORMOdoo = (0, import_react52.useCallback)((data) => {
|
|
5975
6178
|
for (const key in data) {
|
|
5976
6179
|
if (key === "display_name") {
|
|
5977
6180
|
delete data[key];
|
|
@@ -5982,7 +6185,7 @@ function useModelService() {
|
|
|
5982
6185
|
}
|
|
5983
6186
|
return { ...data };
|
|
5984
6187
|
}, []);
|
|
5985
|
-
const toDataJS = (0,
|
|
6188
|
+
const toDataJS = (0, import_react52.useCallback)(
|
|
5986
6189
|
(data, viewData, model) => {
|
|
5987
6190
|
for (const key in data) {
|
|
5988
6191
|
if (data[key] === false) {
|
|
@@ -6040,10 +6243,10 @@ function useModelService() {
|
|
|
6040
6243
|
}
|
|
6041
6244
|
|
|
6042
6245
|
// src/services/user-service/index.ts
|
|
6043
|
-
var
|
|
6246
|
+
var import_react53 = require("react");
|
|
6044
6247
|
function useUserService() {
|
|
6045
6248
|
const { env } = useEnv();
|
|
6046
|
-
const getProfile = (0,
|
|
6249
|
+
const getProfile = (0, import_react53.useCallback)(
|
|
6047
6250
|
async (service, path, extraHeaders) => {
|
|
6048
6251
|
return env?.requests?.get(
|
|
6049
6252
|
path || "/userinfo" /* PROFILE_PATH */,
|
|
@@ -6060,7 +6263,7 @@ function useUserService() {
|
|
|
6060
6263
|
},
|
|
6061
6264
|
[env]
|
|
6062
6265
|
);
|
|
6063
|
-
const getUser = (0,
|
|
6266
|
+
const getUser = (0, import_react53.useCallback)(
|
|
6064
6267
|
async ({ context, id }) => {
|
|
6065
6268
|
const jsonData = {
|
|
6066
6269
|
model: "res.users",
|
|
@@ -6098,7 +6301,7 @@ function useUserService() {
|
|
|
6098
6301
|
},
|
|
6099
6302
|
[env]
|
|
6100
6303
|
);
|
|
6101
|
-
const switchUserLocale = (0,
|
|
6304
|
+
const switchUserLocale = (0, import_react53.useCallback)(
|
|
6102
6305
|
async ({ id, values, service }) => {
|
|
6103
6306
|
const jsonData = {
|
|
6104
6307
|
model: "res.users",
|
|
@@ -6126,10 +6329,10 @@ function useUserService() {
|
|
|
6126
6329
|
}
|
|
6127
6330
|
|
|
6128
6331
|
// src/services/view-service/index.ts
|
|
6129
|
-
var
|
|
6332
|
+
var import_react54 = require("react");
|
|
6130
6333
|
function useViewService() {
|
|
6131
6334
|
const { env } = useEnv();
|
|
6132
|
-
const getView = (0,
|
|
6335
|
+
const getView = (0, import_react54.useCallback)(
|
|
6133
6336
|
async ({
|
|
6134
6337
|
model,
|
|
6135
6338
|
views,
|
|
@@ -6169,7 +6372,7 @@ function useViewService() {
|
|
|
6169
6372
|
},
|
|
6170
6373
|
[env]
|
|
6171
6374
|
);
|
|
6172
|
-
const getMenu = (0,
|
|
6375
|
+
const getMenu = (0, import_react54.useCallback)(
|
|
6173
6376
|
async (context, specification, domain, service) => {
|
|
6174
6377
|
const jsonData = {
|
|
6175
6378
|
model: "ir.ui.menu" /* MENU */,
|
|
@@ -6200,7 +6403,7 @@ function useViewService() {
|
|
|
6200
6403
|
},
|
|
6201
6404
|
[env]
|
|
6202
6405
|
);
|
|
6203
|
-
const getActionDetail = (0,
|
|
6406
|
+
const getActionDetail = (0, import_react54.useCallback)(
|
|
6204
6407
|
async (aid, context) => {
|
|
6205
6408
|
const jsonData = {
|
|
6206
6409
|
model: "ir.actions.act_window" /* WINDOW_ACTION */,
|
|
@@ -6230,7 +6433,7 @@ function useViewService() {
|
|
|
6230
6433
|
},
|
|
6231
6434
|
[env]
|
|
6232
6435
|
);
|
|
6233
|
-
const getResequence = (0,
|
|
6436
|
+
const getResequence = (0, import_react54.useCallback)(
|
|
6234
6437
|
async ({
|
|
6235
6438
|
model,
|
|
6236
6439
|
ids,
|
|
@@ -6260,7 +6463,7 @@ function useViewService() {
|
|
|
6260
6463
|
},
|
|
6261
6464
|
[env]
|
|
6262
6465
|
);
|
|
6263
|
-
const getSelectionItem = (0,
|
|
6466
|
+
const getSelectionItem = (0, import_react54.useCallback)(
|
|
6264
6467
|
async ({
|
|
6265
6468
|
data,
|
|
6266
6469
|
service,
|
|
@@ -6297,7 +6500,7 @@ function useViewService() {
|
|
|
6297
6500
|
},
|
|
6298
6501
|
[env]
|
|
6299
6502
|
);
|
|
6300
|
-
const loadMessages = (0,
|
|
6503
|
+
const loadMessages = (0, import_react54.useCallback)(async () => {
|
|
6301
6504
|
return env.requests.post(
|
|
6302
6505
|
"/load_message_failures" /* LOAD_MESSAGE */,
|
|
6303
6506
|
{},
|
|
@@ -6308,14 +6511,14 @@ function useViewService() {
|
|
|
6308
6511
|
}
|
|
6309
6512
|
);
|
|
6310
6513
|
}, [env]);
|
|
6311
|
-
const getVersion = (0,
|
|
6514
|
+
const getVersion = (0, import_react54.useCallback)(async () => {
|
|
6312
6515
|
return env?.requests?.get("", {
|
|
6313
6516
|
headers: {
|
|
6314
6517
|
"Content-Type": "application/json"
|
|
6315
6518
|
}
|
|
6316
6519
|
});
|
|
6317
6520
|
}, [env]);
|
|
6318
|
-
const grantAccess = (0,
|
|
6521
|
+
const grantAccess = (0, import_react54.useCallback)(
|
|
6319
6522
|
async ({
|
|
6320
6523
|
redirect_uri,
|
|
6321
6524
|
state,
|
|
@@ -6342,7 +6545,7 @@ function useViewService() {
|
|
|
6342
6545
|
},
|
|
6343
6546
|
[env]
|
|
6344
6547
|
);
|
|
6345
|
-
const removeTotpSetUp = (0,
|
|
6548
|
+
const removeTotpSetUp = (0, import_react54.useCallback)(
|
|
6346
6549
|
async ({ method, token }) => {
|
|
6347
6550
|
const jsonData = {
|
|
6348
6551
|
method,
|
|
@@ -6363,7 +6566,7 @@ function useViewService() {
|
|
|
6363
6566
|
},
|
|
6364
6567
|
[env]
|
|
6365
6568
|
);
|
|
6366
|
-
const requestSetupTotp = (0,
|
|
6569
|
+
const requestSetupTotp = (0, import_react54.useCallback)(
|
|
6367
6570
|
async ({ method, token }) => {
|
|
6368
6571
|
const jsonData = {
|
|
6369
6572
|
method,
|
|
@@ -6382,7 +6585,7 @@ function useViewService() {
|
|
|
6382
6585
|
},
|
|
6383
6586
|
[env]
|
|
6384
6587
|
);
|
|
6385
|
-
const settingsWebRead2fa = (0,
|
|
6588
|
+
const settingsWebRead2fa = (0, import_react54.useCallback)(
|
|
6386
6589
|
async ({
|
|
6387
6590
|
method,
|
|
6388
6591
|
model,
|
|
@@ -6410,7 +6613,7 @@ function useViewService() {
|
|
|
6410
6613
|
},
|
|
6411
6614
|
[env]
|
|
6412
6615
|
);
|
|
6413
|
-
const signInSSO = (0,
|
|
6616
|
+
const signInSSO = (0, import_react54.useCallback)(
|
|
6414
6617
|
async ({
|
|
6415
6618
|
redirect_uri,
|
|
6416
6619
|
state,
|
|
@@ -6442,7 +6645,7 @@ function useViewService() {
|
|
|
6442
6645
|
},
|
|
6443
6646
|
[env]
|
|
6444
6647
|
);
|
|
6445
|
-
const verify2FA = (0,
|
|
6648
|
+
const verify2FA = (0, import_react54.useCallback)(
|
|
6446
6649
|
({
|
|
6447
6650
|
method,
|
|
6448
6651
|
with_context,
|
|
@@ -6475,7 +6678,7 @@ function useViewService() {
|
|
|
6475
6678
|
},
|
|
6476
6679
|
[env]
|
|
6477
6680
|
);
|
|
6478
|
-
const get2FAMethods = (0,
|
|
6681
|
+
const get2FAMethods = (0, import_react54.useCallback)(
|
|
6479
6682
|
({ method, with_context }) => {
|
|
6480
6683
|
const jsonData = {
|
|
6481
6684
|
method,
|
|
@@ -6494,7 +6697,7 @@ function useViewService() {
|
|
|
6494
6697
|
},
|
|
6495
6698
|
[env]
|
|
6496
6699
|
);
|
|
6497
|
-
const verifyTotp = (0,
|
|
6700
|
+
const verifyTotp = (0, import_react54.useCallback)(
|
|
6498
6701
|
({
|
|
6499
6702
|
method,
|
|
6500
6703
|
action_token,
|
|
@@ -6519,7 +6722,7 @@ function useViewService() {
|
|
|
6519
6722
|
},
|
|
6520
6723
|
[env]
|
|
6521
6724
|
);
|
|
6522
|
-
const getNotifications = (0,
|
|
6725
|
+
const getNotifications = (0, import_react54.useCallback)(
|
|
6523
6726
|
async ({
|
|
6524
6727
|
service,
|
|
6525
6728
|
xNode,
|
|
@@ -6539,7 +6742,7 @@ function useViewService() {
|
|
|
6539
6742
|
},
|
|
6540
6743
|
[env]
|
|
6541
6744
|
);
|
|
6542
|
-
const getCountry = (0,
|
|
6745
|
+
const getCountry = (0, import_react54.useCallback)(
|
|
6543
6746
|
async ({
|
|
6544
6747
|
service,
|
|
6545
6748
|
xNode,
|
|
@@ -6566,7 +6769,7 @@ function useViewService() {
|
|
|
6566
6769
|
},
|
|
6567
6770
|
[env]
|
|
6568
6771
|
);
|
|
6569
|
-
const getCity = (0,
|
|
6772
|
+
const getCity = (0, import_react54.useCallback)(
|
|
6570
6773
|
async ({
|
|
6571
6774
|
service,
|
|
6572
6775
|
xNode,
|
|
@@ -6593,7 +6796,7 @@ function useViewService() {
|
|
|
6593
6796
|
},
|
|
6594
6797
|
[env]
|
|
6595
6798
|
);
|
|
6596
|
-
const getWard = (0,
|
|
6799
|
+
const getWard = (0, import_react54.useCallback)(
|
|
6597
6800
|
async ({
|
|
6598
6801
|
service,
|
|
6599
6802
|
xNode,
|
|
@@ -6618,7 +6821,7 @@ function useViewService() {
|
|
|
6618
6821
|
},
|
|
6619
6822
|
[env]
|
|
6620
6823
|
);
|
|
6621
|
-
const getPartnerTitle = (0,
|
|
6824
|
+
const getPartnerTitle = (0, import_react54.useCallback)(
|
|
6622
6825
|
async ({
|
|
6623
6826
|
service,
|
|
6624
6827
|
xNode,
|
|
@@ -6670,10 +6873,10 @@ function useViewService() {
|
|
|
6670
6873
|
}
|
|
6671
6874
|
|
|
6672
6875
|
// src/services/dashboard-service/index.ts
|
|
6673
|
-
var
|
|
6876
|
+
var import_react55 = require("react");
|
|
6674
6877
|
function useDashboardService() {
|
|
6675
6878
|
const { env } = useEnv();
|
|
6676
|
-
const readGroup = (0,
|
|
6879
|
+
const readGroup = (0, import_react55.useCallback)(
|
|
6677
6880
|
async ({
|
|
6678
6881
|
service,
|
|
6679
6882
|
xNode,
|
|
@@ -6690,7 +6893,7 @@ function useDashboardService() {
|
|
|
6690
6893
|
},
|
|
6691
6894
|
[env]
|
|
6692
6895
|
);
|
|
6693
|
-
const getDataChart = (0,
|
|
6896
|
+
const getDataChart = (0, import_react55.useCallback)(
|
|
6694
6897
|
async ({
|
|
6695
6898
|
service,
|
|
6696
6899
|
xNode,
|