@fctc/interface-logic 4.6.9 → 4.7.1

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/services.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/services/action-service/index.ts
2
- import { useCallback as useCallback42 } from "react";
2
+ import { useCallback as useCallback47 } from "react";
3
3
 
4
4
  // src/constants/api/uri-constant.ts
5
5
  var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
@@ -116,7 +116,7 @@ var MODEL_TO_TABLE = {
116
116
  ["pos.order" /* POS_ORDER */]: "orders" /* ORDERS */,
117
117
  ["pos.payment.method" /* POS_PAYMENT_METHOD */]: "payment_methods" /* PAYMENT_METHODS */,
118
118
  ["pos.payment" /* POS_PAYMENT */]: "payments" /* PAYMENTS */,
119
- ["pos.category" /* POS_CATEGORY */]: "product_categories" /* PRODUCT_CATEGORIES */,
119
+ ["pos.category" /* POS_CATEGORY */]: "pos_categories" /* POS_CATEGORIES */,
120
120
  ["product.product" /* PRODUCT_PRODUCT */]: "products" /* PRODUCTS */,
121
121
  ["restaurant.floor" /* RESTAURANT_FLOOR */]: "restaurant_floors" /* RESTAURANT_FLOORS */,
122
122
  ["restaurant.table" /* RESTAURANT_TABLE */]: "restaurant_tables" /* RESTAURANT_TABLES */
@@ -4545,6 +4545,59 @@ var deleteTableSupabaseService = () => {
4545
4545
  };
4546
4546
  };
4547
4547
 
4548
+ // src/services/pos-service/supabase/create-order.ts
4549
+ import { useCallback as useCallback39 } from "react";
4550
+
4551
+ // src/services/pos-service/supabase/add-product-to-order.ts
4552
+ import { useCallback as useCallback40 } from "react";
4553
+
4554
+ // src/services/pos-service/supabase/update-order-total-amount.ts
4555
+ import { useCallback as useCallback41 } from "react";
4556
+
4557
+ // src/services/pos-service/supabase/update-order-line.ts
4558
+ import { useCallback as useCallback42 } from "react";
4559
+
4560
+ // src/services/pos-service/supabase/update-order.ts
4561
+ import { useCallback as useCallback43 } from "react";
4562
+
4563
+ // src/services/pos-service/supabase/delete-order.ts
4564
+ import { useCallback as useCallback44 } from "react";
4565
+
4566
+ // src/services/pos-service/supabase/delete-order-line.ts
4567
+ import { useCallback as useCallback45 } from "react";
4568
+
4569
+ // src/services/pos-service/supabase/add-category.ts
4570
+ import { useCallback as useCallback46 } from "react";
4571
+ var addCategorySupabaseService = () => {
4572
+ const supabase = useSupabaseOptional();
4573
+ const addCategorySupabase = useCallback46(
4574
+ async (values) => {
4575
+ if (!supabase) {
4576
+ console.error("Supabase client not initialized");
4577
+ return null;
4578
+ }
4579
+ try {
4580
+ const { data, error } = await supabase.from("pos_categories" /* POS_CATEGORIES */).insert({
4581
+ name: values.name,
4582
+ id: values.id
4583
+ }).select("id, name").single();
4584
+ if (error) {
4585
+ console.error("Error adding Category:", error);
4586
+ return null;
4587
+ }
4588
+ return [[data.id, data.name]];
4589
+ } catch (error) {
4590
+ console.error("Error adding Category:", error);
4591
+ return null;
4592
+ }
4593
+ },
4594
+ [supabase]
4595
+ );
4596
+ return {
4597
+ addCategorySupabase
4598
+ };
4599
+ };
4600
+
4548
4601
  // src/services/pos-service/index.ts
4549
4602
  var serviceFactories = [
4550
4603
  addEntityService,
@@ -4582,7 +4635,8 @@ var serviceFactories = [
4582
4635
  updateFloorSupabaseService,
4583
4636
  updateTableSupabaseService,
4584
4637
  deleteFloorSupabaseService,
4585
- deleteTableSupabaseService
4638
+ deleteTableSupabaseService,
4639
+ addCategorySupabaseService
4586
4640
  ];
4587
4641
  var usePosService = () => {
4588
4642
  const { env } = useEnv();
@@ -4684,15 +4738,6 @@ import { useMutation as useMutation87 } from "@tanstack/react-query";
4684
4738
  // src/hooks/pos/supabase/use-add-floor.ts
4685
4739
  import { useMutation as useMutation88 } from "@tanstack/react-query";
4686
4740
 
4687
- // src/services/pos-service/supabase/create-order.ts
4688
- import { useCallback as useCallback39 } from "react";
4689
-
4690
- // src/services/pos-service/supabase/add-product-to-order.ts
4691
- import { useCallback as useCallback40 } from "react";
4692
-
4693
- // src/services/pos-service/supabase/update-order-total-amount.ts
4694
- import { useCallback as useCallback41 } from "react";
4695
-
4696
4741
  // src/hooks/pos/supabase/use-add-table.ts
4697
4742
  import { useMutation as useMutation89 } from "@tanstack/react-query";
4698
4743
 
@@ -4711,6 +4756,9 @@ import { useMutation as useMutation93 } from "@tanstack/react-query";
4711
4756
  // src/hooks/pos/supabase/use-create-order.ts
4712
4757
  import { useMutation as useMutation94 } from "@tanstack/react-query";
4713
4758
 
4759
+ // src/hooks/pos/supabase/use-add-category.ts
4760
+ import { useMutation as useMutation95 } from "@tanstack/react-query";
4761
+
4714
4762
  // src/provider/service-provider.tsx
4715
4763
  import { jsx as jsx7 } from "react/jsx-runtime";
4716
4764
  var ServiceContext = createContext3(null);
@@ -4722,7 +4770,7 @@ import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
4722
4770
  // src/services/action-service/index.ts
4723
4771
  function useActionService() {
4724
4772
  const { env } = useEnv();
4725
- const loadAction = useCallback42(
4773
+ const loadAction = useCallback47(
4726
4774
  async ({
4727
4775
  idAction,
4728
4776
  context,
@@ -4746,7 +4794,7 @@ function useActionService() {
4746
4794
  },
4747
4795
  [env]
4748
4796
  );
4749
- const callButton = useCallback42(
4797
+ const callButton = useCallback47(
4750
4798
  async ({
4751
4799
  model,
4752
4800
  ids = [],
@@ -4780,7 +4828,7 @@ function useActionService() {
4780
4828
  },
4781
4829
  [env]
4782
4830
  );
4783
- const removeRows = useCallback42(
4831
+ const removeRows = useCallback47(
4784
4832
  async ({
4785
4833
  model,
4786
4834
  ids,
@@ -4806,7 +4854,7 @@ function useActionService() {
4806
4854
  },
4807
4855
  [env]
4808
4856
  );
4809
- const duplicateRecord = useCallback42(
4857
+ const duplicateRecord = useCallback47(
4810
4858
  async ({
4811
4859
  model,
4812
4860
  id,
@@ -4832,7 +4880,7 @@ function useActionService() {
4832
4880
  },
4833
4881
  [env]
4834
4882
  );
4835
- const getPrintReportName = useCallback42(
4883
+ const getPrintReportName = useCallback47(
4836
4884
  async ({ id }) => {
4837
4885
  const jsonData = {
4838
4886
  model: "ir.actions.report",
@@ -4850,7 +4898,7 @@ function useActionService() {
4850
4898
  },
4851
4899
  [env]
4852
4900
  );
4853
- const print = useCallback42(
4901
+ const print = useCallback47(
4854
4902
  async ({ id, report, db }) => {
4855
4903
  const jsonData = {
4856
4904
  report,
@@ -4868,7 +4916,7 @@ function useActionService() {
4868
4916
  },
4869
4917
  [env]
4870
4918
  );
4871
- const runAction = useCallback42(
4919
+ const runAction = useCallback47(
4872
4920
  async ({
4873
4921
  idAction,
4874
4922
  context,
@@ -4895,7 +4943,7 @@ function useActionService() {
4895
4943
  },
4896
4944
  [env]
4897
4945
  );
4898
- const generateSerialNumber = useCallback42(
4946
+ const generateSerialNumber = useCallback47(
4899
4947
  async ({
4900
4948
  kwargs,
4901
4949
  context,
@@ -4933,11 +4981,11 @@ function useActionService() {
4933
4981
  }
4934
4982
 
4935
4983
  // src/services/auth-service/index.ts
4936
- import { useCallback as useCallback43 } from "react";
4984
+ import { useCallback as useCallback48 } from "react";
4937
4985
  function useAuthService() {
4938
4986
  const { env } = useEnv();
4939
4987
  const supabase = useSupabaseOptional();
4940
- const login = useCallback43(
4988
+ const login = useCallback48(
4941
4989
  async (body) => {
4942
4990
  const payload = Object.fromEntries(
4943
4991
  Object.entries({
@@ -4962,7 +5010,7 @@ function useAuthService() {
4962
5010
  },
4963
5011
  [env]
4964
5012
  );
4965
- const loginSupabase = useCallback43(
5013
+ const loginSupabase = useCallback48(
4966
5014
  async (body) => {
4967
5015
  if (!supabase) {
4968
5016
  return {
@@ -4978,7 +5026,7 @@ function useAuthService() {
4978
5026
  },
4979
5027
  [supabase]
4980
5028
  );
4981
- const forgotPassword = useCallback43(
5029
+ const forgotPassword = useCallback48(
4982
5030
  async (email) => {
4983
5031
  const bodyData = {
4984
5032
  login: email,
@@ -4992,7 +5040,7 @@ function useAuthService() {
4992
5040
  },
4993
5041
  [env]
4994
5042
  );
4995
- const forgotPasswordSSO = useCallback43(
5043
+ const forgotPasswordSSO = useCallback48(
4996
5044
  async ({
4997
5045
  email,
4998
5046
  with_context,
@@ -5015,7 +5063,7 @@ function useAuthService() {
5015
5063
  },
5016
5064
  [env]
5017
5065
  );
5018
- const resetPassword = useCallback43(
5066
+ const resetPassword = useCallback48(
5019
5067
  async (data, token) => {
5020
5068
  const bodyData = {
5021
5069
  token,
@@ -5030,7 +5078,7 @@ function useAuthService() {
5030
5078
  },
5031
5079
  [env]
5032
5080
  );
5033
- const resetPasswordSSO = useCallback43(
5081
+ const resetPasswordSSO = useCallback48(
5034
5082
  async ({
5035
5083
  method,
5036
5084
  password,
@@ -5053,7 +5101,7 @@ function useAuthService() {
5053
5101
  },
5054
5102
  [env]
5055
5103
  );
5056
- const updatePassword = useCallback43(
5104
+ const updatePassword = useCallback48(
5057
5105
  async (data, token) => {
5058
5106
  const bodyData = {
5059
5107
  token,
@@ -5068,7 +5116,7 @@ function useAuthService() {
5068
5116
  },
5069
5117
  [env]
5070
5118
  );
5071
- const isValidToken = useCallback43(
5119
+ const isValidToken = useCallback48(
5072
5120
  async (token) => {
5073
5121
  const bodyData = {
5074
5122
  token
@@ -5081,7 +5129,7 @@ function useAuthService() {
5081
5129
  },
5082
5130
  [env]
5083
5131
  );
5084
- const isValidActionToken = useCallback43(
5132
+ const isValidActionToken = useCallback48(
5085
5133
  async (actionToken) => {
5086
5134
  const bodyData = {};
5087
5135
  return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
@@ -5094,7 +5142,7 @@ function useAuthService() {
5094
5142
  },
5095
5143
  [env]
5096
5144
  );
5097
- const loginSocial = useCallback43(
5145
+ const loginSocial = useCallback48(
5098
5146
  async ({
5099
5147
  db,
5100
5148
  state,
@@ -5112,13 +5160,13 @@ function useAuthService() {
5112
5160
  },
5113
5161
  [env]
5114
5162
  );
5115
- const getProviders = useCallback43(
5163
+ const getProviders = useCallback48(
5116
5164
  async (db) => {
5117
5165
  return env?.requests?.get("/oauth/providers", { params: { db } });
5118
5166
  },
5119
5167
  [env]
5120
5168
  );
5121
- const getAccessByCode = useCallback43(
5169
+ const getAccessByCode = useCallback48(
5122
5170
  async (code) => {
5123
5171
  const data = new URLSearchParams();
5124
5172
  data.append("code", code);
@@ -5138,7 +5186,7 @@ function useAuthService() {
5138
5186
  },
5139
5187
  [env]
5140
5188
  );
5141
- const logout = useCallback43(
5189
+ const logout = useCallback48(
5142
5190
  async (service) => {
5143
5191
  return env?.requests?.post(
5144
5192
  "/logout" /* LOGOUT */,
@@ -5155,7 +5203,7 @@ function useAuthService() {
5155
5203
  },
5156
5204
  [env]
5157
5205
  );
5158
- const getTenantMapping = useCallback43(
5206
+ const getTenantMapping = useCallback48(
5159
5207
  async ({ shortName, service }) => {
5160
5208
  const bodyData = {
5161
5209
  short_name: shortName
@@ -5173,7 +5221,7 @@ function useAuthService() {
5173
5221
  },
5174
5222
  [env]
5175
5223
  );
5176
- const getToken = useCallback43(
5224
+ const getToken = useCallback48(
5177
5225
  async ({
5178
5226
  phone,
5179
5227
  name,
@@ -5218,10 +5266,10 @@ function useAuthService() {
5218
5266
  }
5219
5267
 
5220
5268
  // src/services/company-service/index.ts
5221
- import { useCallback as useCallback44 } from "react";
5269
+ import { useCallback as useCallback49 } from "react";
5222
5270
  function useCompanyService() {
5223
5271
  const { env } = useEnv();
5224
- const getCurrentCompany = useCallback44(
5272
+ const getCurrentCompany = useCallback49(
5225
5273
  async (service, extraHeaders) => {
5226
5274
  return await env.requests.get(
5227
5275
  "/company" /* COMPANY_PATH */,
@@ -5238,7 +5286,7 @@ function useCompanyService() {
5238
5286
  },
5239
5287
  [env]
5240
5288
  );
5241
- const getInfoCompany = useCallback44(
5289
+ const getInfoCompany = useCallback49(
5242
5290
  async (id, service) => {
5243
5291
  const jsonData = {
5244
5292
  ids: [id],
@@ -5274,10 +5322,10 @@ function useCompanyService() {
5274
5322
  }
5275
5323
 
5276
5324
  // src/services/excel-service/index.ts
5277
- import { useCallback as useCallback45 } from "react";
5325
+ import { useCallback as useCallback50 } from "react";
5278
5326
  function useExcelService() {
5279
5327
  const { env } = useEnv();
5280
- const uploadFileExcel = useCallback45(
5328
+ const uploadFileExcel = useCallback50(
5281
5329
  async ({
5282
5330
  formData,
5283
5331
  service,
@@ -5294,7 +5342,7 @@ function useExcelService() {
5294
5342
  },
5295
5343
  [env]
5296
5344
  );
5297
- const uploadIdFile = useCallback45(
5345
+ const uploadIdFile = useCallback50(
5298
5346
  async ({
5299
5347
  formData,
5300
5348
  service,
@@ -5311,7 +5359,7 @@ function useExcelService() {
5311
5359
  },
5312
5360
  [env]
5313
5361
  );
5314
- const parsePreview = useCallback45(
5362
+ const parsePreview = useCallback50(
5315
5363
  async ({
5316
5364
  id,
5317
5365
  selectedSheet,
@@ -5360,7 +5408,7 @@ function useExcelService() {
5360
5408
  },
5361
5409
  [env]
5362
5410
  );
5363
- const executeImport = useCallback45(
5411
+ const executeImport = useCallback50(
5364
5412
  async ({
5365
5413
  columns,
5366
5414
  fields,
@@ -5394,7 +5442,7 @@ function useExcelService() {
5394
5442
  },
5395
5443
  [env]
5396
5444
  );
5397
- const getFileExcel = useCallback45(
5445
+ const getFileExcel = useCallback50(
5398
5446
  async ({
5399
5447
  model,
5400
5448
  service,
@@ -5418,7 +5466,7 @@ function useExcelService() {
5418
5466
  },
5419
5467
  [env]
5420
5468
  );
5421
- const getFieldExport = useCallback45(
5469
+ const getFieldExport = useCallback50(
5422
5470
  async ({
5423
5471
  ids,
5424
5472
  model,
@@ -5458,7 +5506,7 @@ function useExcelService() {
5458
5506
  },
5459
5507
  [env]
5460
5508
  );
5461
- const exportExcel = useCallback45(
5509
+ const exportExcel = useCallback50(
5462
5510
  async ({
5463
5511
  model,
5464
5512
  domain,
@@ -5506,10 +5554,10 @@ function useExcelService() {
5506
5554
  }
5507
5555
 
5508
5556
  // src/services/form-service/index.ts
5509
- import { useCallback as useCallback46 } from "react";
5557
+ import { useCallback as useCallback51 } from "react";
5510
5558
  function useFormService() {
5511
5559
  const { env } = useEnv();
5512
- const getComment = useCallback46(
5560
+ const getComment = useCallback51(
5513
5561
  async ({ data }) => {
5514
5562
  const jsonData = {
5515
5563
  thread_id: data.thread_id,
@@ -5527,7 +5575,7 @@ function useFormService() {
5527
5575
  },
5528
5576
  [env]
5529
5577
  );
5530
- const getThreadData = useCallback46(
5578
+ const getThreadData = useCallback51(
5531
5579
  async ({
5532
5580
  data,
5533
5581
  xNode,
@@ -5554,7 +5602,7 @@ function useFormService() {
5554
5602
  },
5555
5603
  [env]
5556
5604
  );
5557
- const getThreadMessages = useCallback46(
5605
+ const getThreadMessages = useCallback51(
5558
5606
  async ({
5559
5607
  data,
5560
5608
  xNode,
@@ -5580,7 +5628,7 @@ function useFormService() {
5580
5628
  },
5581
5629
  [env]
5582
5630
  );
5583
- const sentComment = useCallback46(
5631
+ const sentComment = useCallback51(
5584
5632
  async ({ data }) => {
5585
5633
  const jsonData = {
5586
5634
  context: {
@@ -5608,7 +5656,7 @@ function useFormService() {
5608
5656
  },
5609
5657
  [env]
5610
5658
  );
5611
- const deleteComment = useCallback46(
5659
+ const deleteComment = useCallback51(
5612
5660
  async ({ data }) => {
5613
5661
  const jsonData = {
5614
5662
  attachment_ids: [],
@@ -5624,7 +5672,7 @@ function useFormService() {
5624
5672
  },
5625
5673
  [env]
5626
5674
  );
5627
- const getImage = useCallback46(
5675
+ const getImage = useCallback51(
5628
5676
  async ({ data }) => {
5629
5677
  return env.requests.get(
5630
5678
  `${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
@@ -5637,7 +5685,7 @@ function useFormService() {
5637
5685
  },
5638
5686
  [env]
5639
5687
  );
5640
- const uploadImage = useCallback46(
5688
+ const uploadImage = useCallback51(
5641
5689
  async ({
5642
5690
  formData,
5643
5691
  service,
@@ -5656,7 +5704,7 @@ function useFormService() {
5656
5704
  },
5657
5705
  [env]
5658
5706
  );
5659
- const uploadFile = useCallback46(
5707
+ const uploadFile = useCallback51(
5660
5708
  async ({
5661
5709
  formData,
5662
5710
  service,
@@ -5676,7 +5724,7 @@ function useFormService() {
5676
5724
  },
5677
5725
  [env]
5678
5726
  );
5679
- const getFormView = useCallback46(
5727
+ const getFormView = useCallback51(
5680
5728
  async ({ data }) => {
5681
5729
  const jsonData = {
5682
5730
  model: data.model,
@@ -5692,7 +5740,7 @@ function useFormService() {
5692
5740
  },
5693
5741
  [env]
5694
5742
  );
5695
- const changeStatus = useCallback46(
5743
+ const changeStatus = useCallback51(
5696
5744
  async ({ data }) => {
5697
5745
  const vals = {
5698
5746
  [data.name]: data.stage_id
@@ -5721,7 +5769,7 @@ function useFormService() {
5721
5769
  },
5722
5770
  [env]
5723
5771
  );
5724
- const getExternalTab = useCallback46(
5772
+ const getExternalTab = useCallback51(
5725
5773
  async ({ method, context, service, xNode }) => {
5726
5774
  return env?.requests?.post(
5727
5775
  "/call" /* CALL_PATH */,
@@ -5756,10 +5804,10 @@ function useFormService() {
5756
5804
  }
5757
5805
 
5758
5806
  // src/services/kanban-service/index.ts
5759
- import { useCallback as useCallback47 } from "react";
5807
+ import { useCallback as useCallback52 } from "react";
5760
5808
  function useKanbanService() {
5761
5809
  const { env } = useEnv();
5762
- const getGroups = useCallback47(
5810
+ const getGroups = useCallback52(
5763
5811
  async ({ model, width_context }) => {
5764
5812
  const jsonData = {
5765
5813
  model,
@@ -5779,7 +5827,7 @@ function useKanbanService() {
5779
5827
  },
5780
5828
  [env]
5781
5829
  );
5782
- const getProgressBar = useCallback47(
5830
+ const getProgressBar = useCallback52(
5783
5831
  async ({ field, color, model, width_context }) => {
5784
5832
  const jsonData = {
5785
5833
  model,
@@ -5809,10 +5857,10 @@ function useKanbanService() {
5809
5857
  }
5810
5858
 
5811
5859
  // src/services/model-service/index.ts
5812
- import { useCallback as useCallback48 } from "react";
5860
+ import { useCallback as useCallback53 } from "react";
5813
5861
  function useModelService() {
5814
5862
  const { env } = useEnv();
5815
- const getListMyBankAccount = useCallback48(
5863
+ const getListMyBankAccount = useCallback53(
5816
5864
  async ({
5817
5865
  domain,
5818
5866
  spectification,
@@ -5836,7 +5884,7 @@ function useModelService() {
5836
5884
  },
5837
5885
  [env]
5838
5886
  );
5839
- const getCurrency = useCallback48(async () => {
5887
+ const getCurrency = useCallback53(async () => {
5840
5888
  const jsonData = {
5841
5889
  model: "res.currency",
5842
5890
  method: "web_search_read",
@@ -5856,7 +5904,7 @@ function useModelService() {
5856
5904
  }
5857
5905
  });
5858
5906
  }, [env]);
5859
- const getConversionRate = useCallback48(async () => {
5907
+ const getConversionRate = useCallback53(async () => {
5860
5908
  const jsonData = {
5861
5909
  model: "res.currency",
5862
5910
  method: "web_search_read",
@@ -5882,7 +5930,7 @@ function useModelService() {
5882
5930
  }
5883
5931
  });
5884
5932
  }, [env]);
5885
- const getAll = useCallback48(
5933
+ const getAll = useCallback53(
5886
5934
  async ({
5887
5935
  data,
5888
5936
  service,
@@ -5924,7 +5972,7 @@ function useModelService() {
5924
5972
  },
5925
5973
  [env]
5926
5974
  );
5927
- const getListCalendar = useCallback48(
5975
+ const getListCalendar = useCallback53(
5928
5976
  async ({ data }) => {
5929
5977
  const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
5930
5978
  fields: data.fields,
@@ -5955,7 +6003,7 @@ function useModelService() {
5955
6003
  },
5956
6004
  [env]
5957
6005
  );
5958
- const getList = useCallback48(
6006
+ const getList = useCallback53(
5959
6007
  async ({
5960
6008
  model,
5961
6009
  ids = [],
@@ -5987,7 +6035,7 @@ function useModelService() {
5987
6035
  },
5988
6036
  [env]
5989
6037
  );
5990
- const getDetail = useCallback48(
6038
+ const getDetail = useCallback53(
5991
6039
  async ({
5992
6040
  ids = [],
5993
6041
  model,
@@ -6019,7 +6067,7 @@ function useModelService() {
6019
6067
  },
6020
6068
  [env]
6021
6069
  );
6022
- const save = useCallback48(
6070
+ const save = useCallback53(
6023
6071
  async ({
6024
6072
  model,
6025
6073
  ids = [],
@@ -6054,7 +6102,7 @@ function useModelService() {
6054
6102
  },
6055
6103
  [env]
6056
6104
  );
6057
- const deleteApi = useCallback48(
6105
+ const deleteApi = useCallback53(
6058
6106
  async ({ ids = [], model, service }) => {
6059
6107
  const jsonData = {
6060
6108
  model,
@@ -6074,7 +6122,7 @@ function useModelService() {
6074
6122
  },
6075
6123
  [env]
6076
6124
  );
6077
- const onChange = useCallback48(
6125
+ const onChange = useCallback53(
6078
6126
  async ({
6079
6127
  ids = [],
6080
6128
  model,
@@ -6110,7 +6158,7 @@ function useModelService() {
6110
6158
  },
6111
6159
  [env]
6112
6160
  );
6113
- const getListFieldsOnchange = useCallback48(
6161
+ const getListFieldsOnchange = useCallback53(
6114
6162
  async ({
6115
6163
  model,
6116
6164
  service,
@@ -6134,7 +6182,7 @@ function useModelService() {
6134
6182
  },
6135
6183
  [env]
6136
6184
  );
6137
- const parseORMOdoo = useCallback48((data) => {
6185
+ const parseORMOdoo = useCallback53((data) => {
6138
6186
  for (const key in data) {
6139
6187
  if (key === "display_name") {
6140
6188
  delete data[key];
@@ -6145,7 +6193,7 @@ function useModelService() {
6145
6193
  }
6146
6194
  return { ...data };
6147
6195
  }, []);
6148
- const toDataJS = useCallback48(
6196
+ const toDataJS = useCallback53(
6149
6197
  (data, viewData, model) => {
6150
6198
  for (const key in data) {
6151
6199
  if (data[key] === false) {
@@ -6203,10 +6251,10 @@ function useModelService() {
6203
6251
  }
6204
6252
 
6205
6253
  // src/services/user-service/index.ts
6206
- import { useCallback as useCallback49 } from "react";
6254
+ import { useCallback as useCallback54 } from "react";
6207
6255
  function useUserService() {
6208
6256
  const { env } = useEnv();
6209
- const getProfile = useCallback49(
6257
+ const getProfile = useCallback54(
6210
6258
  async (service, path, extraHeaders) => {
6211
6259
  return env?.requests?.get(
6212
6260
  path || "/userinfo" /* PROFILE_PATH */,
@@ -6223,7 +6271,7 @@ function useUserService() {
6223
6271
  },
6224
6272
  [env]
6225
6273
  );
6226
- const getUser = useCallback49(
6274
+ const getUser = useCallback54(
6227
6275
  async ({ context, id }) => {
6228
6276
  const jsonData = {
6229
6277
  model: "res.users",
@@ -6261,7 +6309,7 @@ function useUserService() {
6261
6309
  },
6262
6310
  [env]
6263
6311
  );
6264
- const switchUserLocale = useCallback49(
6312
+ const switchUserLocale = useCallback54(
6265
6313
  async ({ id, values, service }) => {
6266
6314
  const jsonData = {
6267
6315
  model: "res.users",
@@ -6289,10 +6337,10 @@ function useUserService() {
6289
6337
  }
6290
6338
 
6291
6339
  // src/services/view-service/index.ts
6292
- import { useCallback as useCallback50 } from "react";
6340
+ import { useCallback as useCallback55 } from "react";
6293
6341
  function useViewService() {
6294
6342
  const { env } = useEnv();
6295
- const getView = useCallback50(
6343
+ const getView = useCallback55(
6296
6344
  async ({
6297
6345
  model,
6298
6346
  views,
@@ -6332,7 +6380,7 @@ function useViewService() {
6332
6380
  },
6333
6381
  [env]
6334
6382
  );
6335
- const getMenu = useCallback50(
6383
+ const getMenu = useCallback55(
6336
6384
  async (context, specification, domain, service) => {
6337
6385
  const jsonData = {
6338
6386
  model: "ir.ui.menu" /* MENU */,
@@ -6363,7 +6411,7 @@ function useViewService() {
6363
6411
  },
6364
6412
  [env]
6365
6413
  );
6366
- const getActionDetail = useCallback50(
6414
+ const getActionDetail = useCallback55(
6367
6415
  async (aid, context) => {
6368
6416
  const jsonData = {
6369
6417
  model: "ir.actions.act_window" /* WINDOW_ACTION */,
@@ -6393,7 +6441,7 @@ function useViewService() {
6393
6441
  },
6394
6442
  [env]
6395
6443
  );
6396
- const getResequence = useCallback50(
6444
+ const getResequence = useCallback55(
6397
6445
  async ({
6398
6446
  model,
6399
6447
  ids,
@@ -6423,7 +6471,7 @@ function useViewService() {
6423
6471
  },
6424
6472
  [env]
6425
6473
  );
6426
- const getSelectionItem = useCallback50(
6474
+ const getSelectionItem = useCallback55(
6427
6475
  async ({
6428
6476
  data,
6429
6477
  service,
@@ -6460,7 +6508,7 @@ function useViewService() {
6460
6508
  },
6461
6509
  [env]
6462
6510
  );
6463
- const loadMessages = useCallback50(async () => {
6511
+ const loadMessages = useCallback55(async () => {
6464
6512
  return env.requests.post(
6465
6513
  "/load_message_failures" /* LOAD_MESSAGE */,
6466
6514
  {},
@@ -6471,14 +6519,14 @@ function useViewService() {
6471
6519
  }
6472
6520
  );
6473
6521
  }, [env]);
6474
- const getVersion = useCallback50(async () => {
6522
+ const getVersion = useCallback55(async () => {
6475
6523
  return env?.requests?.get("", {
6476
6524
  headers: {
6477
6525
  "Content-Type": "application/json"
6478
6526
  }
6479
6527
  });
6480
6528
  }, [env]);
6481
- const grantAccess = useCallback50(
6529
+ const grantAccess = useCallback55(
6482
6530
  async ({
6483
6531
  redirect_uri,
6484
6532
  state,
@@ -6505,7 +6553,7 @@ function useViewService() {
6505
6553
  },
6506
6554
  [env]
6507
6555
  );
6508
- const removeTotpSetUp = useCallback50(
6556
+ const removeTotpSetUp = useCallback55(
6509
6557
  async ({ method, token }) => {
6510
6558
  const jsonData = {
6511
6559
  method,
@@ -6526,7 +6574,7 @@ function useViewService() {
6526
6574
  },
6527
6575
  [env]
6528
6576
  );
6529
- const requestSetupTotp = useCallback50(
6577
+ const requestSetupTotp = useCallback55(
6530
6578
  async ({ method, token }) => {
6531
6579
  const jsonData = {
6532
6580
  method,
@@ -6545,7 +6593,7 @@ function useViewService() {
6545
6593
  },
6546
6594
  [env]
6547
6595
  );
6548
- const settingsWebRead2fa = useCallback50(
6596
+ const settingsWebRead2fa = useCallback55(
6549
6597
  async ({
6550
6598
  method,
6551
6599
  model,
@@ -6573,7 +6621,7 @@ function useViewService() {
6573
6621
  },
6574
6622
  [env]
6575
6623
  );
6576
- const signInSSO = useCallback50(
6624
+ const signInSSO = useCallback55(
6577
6625
  async ({
6578
6626
  redirect_uri,
6579
6627
  state,
@@ -6605,7 +6653,7 @@ function useViewService() {
6605
6653
  },
6606
6654
  [env]
6607
6655
  );
6608
- const verify2FA = useCallback50(
6656
+ const verify2FA = useCallback55(
6609
6657
  ({
6610
6658
  method,
6611
6659
  with_context,
@@ -6638,7 +6686,7 @@ function useViewService() {
6638
6686
  },
6639
6687
  [env]
6640
6688
  );
6641
- const get2FAMethods = useCallback50(
6689
+ const get2FAMethods = useCallback55(
6642
6690
  ({ method, with_context }) => {
6643
6691
  const jsonData = {
6644
6692
  method,
@@ -6657,7 +6705,7 @@ function useViewService() {
6657
6705
  },
6658
6706
  [env]
6659
6707
  );
6660
- const verifyTotp = useCallback50(
6708
+ const verifyTotp = useCallback55(
6661
6709
  ({
6662
6710
  method,
6663
6711
  action_token,
@@ -6682,7 +6730,7 @@ function useViewService() {
6682
6730
  },
6683
6731
  [env]
6684
6732
  );
6685
- const getNotifications = useCallback50(
6733
+ const getNotifications = useCallback55(
6686
6734
  async ({
6687
6735
  service,
6688
6736
  xNode,
@@ -6702,7 +6750,7 @@ function useViewService() {
6702
6750
  },
6703
6751
  [env]
6704
6752
  );
6705
- const getCountry = useCallback50(
6753
+ const getCountry = useCallback55(
6706
6754
  async ({
6707
6755
  service,
6708
6756
  xNode,
@@ -6729,7 +6777,7 @@ function useViewService() {
6729
6777
  },
6730
6778
  [env]
6731
6779
  );
6732
- const getCity = useCallback50(
6780
+ const getCity = useCallback55(
6733
6781
  async ({
6734
6782
  service,
6735
6783
  xNode,
@@ -6756,7 +6804,7 @@ function useViewService() {
6756
6804
  },
6757
6805
  [env]
6758
6806
  );
6759
- const getWard = useCallback50(
6807
+ const getWard = useCallback55(
6760
6808
  async ({
6761
6809
  service,
6762
6810
  xNode,
@@ -6781,7 +6829,7 @@ function useViewService() {
6781
6829
  },
6782
6830
  [env]
6783
6831
  );
6784
- const getPartnerTitle = useCallback50(
6832
+ const getPartnerTitle = useCallback55(
6785
6833
  async ({
6786
6834
  service,
6787
6835
  xNode,
@@ -6833,10 +6881,10 @@ function useViewService() {
6833
6881
  }
6834
6882
 
6835
6883
  // src/services/dashboard-service/index.ts
6836
- import { useCallback as useCallback51 } from "react";
6884
+ import { useCallback as useCallback56 } from "react";
6837
6885
  function useDashboardService() {
6838
6886
  const { env } = useEnv();
6839
- const readGroup = useCallback51(
6887
+ const readGroup = useCallback56(
6840
6888
  async ({
6841
6889
  service,
6842
6890
  xNode,
@@ -6853,7 +6901,7 @@ function useDashboardService() {
6853
6901
  },
6854
6902
  [env]
6855
6903
  );
6856
- const getDataChart = useCallback51(
6904
+ const getDataChart = useCallback56(
6857
6905
  async ({
6858
6906
  service,
6859
6907
  xNode,