@fctc/interface-logic 4.7.0 → 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 useCallback46 } 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) => {
@@ -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,27 +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
- // src/services/pos-service/supabase/update-order-line.ts
4697
- import { useCallback as useCallback42 } from "react";
4698
-
4699
- // src/services/pos-service/supabase/update-order.ts
4700
- import { useCallback as useCallback43 } from "react";
4701
-
4702
- // src/services/pos-service/supabase/delete-order.ts
4703
- import { useCallback as useCallback44 } from "react";
4704
-
4705
- // src/services/pos-service/supabase/delete-order-line.ts
4706
- import { useCallback as useCallback45 } from "react";
4707
-
4708
4741
  // src/hooks/pos/supabase/use-add-table.ts
4709
4742
  import { useMutation as useMutation89 } from "@tanstack/react-query";
4710
4743
 
@@ -4723,6 +4756,9 @@ import { useMutation as useMutation93 } from "@tanstack/react-query";
4723
4756
  // src/hooks/pos/supabase/use-create-order.ts
4724
4757
  import { useMutation as useMutation94 } from "@tanstack/react-query";
4725
4758
 
4759
+ // src/hooks/pos/supabase/use-add-category.ts
4760
+ import { useMutation as useMutation95 } from "@tanstack/react-query";
4761
+
4726
4762
  // src/provider/service-provider.tsx
4727
4763
  import { jsx as jsx7 } from "react/jsx-runtime";
4728
4764
  var ServiceContext = createContext3(null);
@@ -4734,7 +4770,7 @@ import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
4734
4770
  // src/services/action-service/index.ts
4735
4771
  function useActionService() {
4736
4772
  const { env } = useEnv();
4737
- const loadAction = useCallback46(
4773
+ const loadAction = useCallback47(
4738
4774
  async ({
4739
4775
  idAction,
4740
4776
  context,
@@ -4758,7 +4794,7 @@ function useActionService() {
4758
4794
  },
4759
4795
  [env]
4760
4796
  );
4761
- const callButton = useCallback46(
4797
+ const callButton = useCallback47(
4762
4798
  async ({
4763
4799
  model,
4764
4800
  ids = [],
@@ -4792,7 +4828,7 @@ function useActionService() {
4792
4828
  },
4793
4829
  [env]
4794
4830
  );
4795
- const removeRows = useCallback46(
4831
+ const removeRows = useCallback47(
4796
4832
  async ({
4797
4833
  model,
4798
4834
  ids,
@@ -4818,7 +4854,7 @@ function useActionService() {
4818
4854
  },
4819
4855
  [env]
4820
4856
  );
4821
- const duplicateRecord = useCallback46(
4857
+ const duplicateRecord = useCallback47(
4822
4858
  async ({
4823
4859
  model,
4824
4860
  id,
@@ -4844,7 +4880,7 @@ function useActionService() {
4844
4880
  },
4845
4881
  [env]
4846
4882
  );
4847
- const getPrintReportName = useCallback46(
4883
+ const getPrintReportName = useCallback47(
4848
4884
  async ({ id }) => {
4849
4885
  const jsonData = {
4850
4886
  model: "ir.actions.report",
@@ -4862,7 +4898,7 @@ function useActionService() {
4862
4898
  },
4863
4899
  [env]
4864
4900
  );
4865
- const print = useCallback46(
4901
+ const print = useCallback47(
4866
4902
  async ({ id, report, db }) => {
4867
4903
  const jsonData = {
4868
4904
  report,
@@ -4880,7 +4916,7 @@ function useActionService() {
4880
4916
  },
4881
4917
  [env]
4882
4918
  );
4883
- const runAction = useCallback46(
4919
+ const runAction = useCallback47(
4884
4920
  async ({
4885
4921
  idAction,
4886
4922
  context,
@@ -4907,7 +4943,7 @@ function useActionService() {
4907
4943
  },
4908
4944
  [env]
4909
4945
  );
4910
- const generateSerialNumber = useCallback46(
4946
+ const generateSerialNumber = useCallback47(
4911
4947
  async ({
4912
4948
  kwargs,
4913
4949
  context,
@@ -4945,11 +4981,11 @@ function useActionService() {
4945
4981
  }
4946
4982
 
4947
4983
  // src/services/auth-service/index.ts
4948
- import { useCallback as useCallback47 } from "react";
4984
+ import { useCallback as useCallback48 } from "react";
4949
4985
  function useAuthService() {
4950
4986
  const { env } = useEnv();
4951
4987
  const supabase = useSupabaseOptional();
4952
- const login = useCallback47(
4988
+ const login = useCallback48(
4953
4989
  async (body) => {
4954
4990
  const payload = Object.fromEntries(
4955
4991
  Object.entries({
@@ -4974,7 +5010,7 @@ function useAuthService() {
4974
5010
  },
4975
5011
  [env]
4976
5012
  );
4977
- const loginSupabase = useCallback47(
5013
+ const loginSupabase = useCallback48(
4978
5014
  async (body) => {
4979
5015
  if (!supabase) {
4980
5016
  return {
@@ -4990,7 +5026,7 @@ function useAuthService() {
4990
5026
  },
4991
5027
  [supabase]
4992
5028
  );
4993
- const forgotPassword = useCallback47(
5029
+ const forgotPassword = useCallback48(
4994
5030
  async (email) => {
4995
5031
  const bodyData = {
4996
5032
  login: email,
@@ -5004,7 +5040,7 @@ function useAuthService() {
5004
5040
  },
5005
5041
  [env]
5006
5042
  );
5007
- const forgotPasswordSSO = useCallback47(
5043
+ const forgotPasswordSSO = useCallback48(
5008
5044
  async ({
5009
5045
  email,
5010
5046
  with_context,
@@ -5027,7 +5063,7 @@ function useAuthService() {
5027
5063
  },
5028
5064
  [env]
5029
5065
  );
5030
- const resetPassword = useCallback47(
5066
+ const resetPassword = useCallback48(
5031
5067
  async (data, token) => {
5032
5068
  const bodyData = {
5033
5069
  token,
@@ -5042,7 +5078,7 @@ function useAuthService() {
5042
5078
  },
5043
5079
  [env]
5044
5080
  );
5045
- const resetPasswordSSO = useCallback47(
5081
+ const resetPasswordSSO = useCallback48(
5046
5082
  async ({
5047
5083
  method,
5048
5084
  password,
@@ -5065,7 +5101,7 @@ function useAuthService() {
5065
5101
  },
5066
5102
  [env]
5067
5103
  );
5068
- const updatePassword = useCallback47(
5104
+ const updatePassword = useCallback48(
5069
5105
  async (data, token) => {
5070
5106
  const bodyData = {
5071
5107
  token,
@@ -5080,7 +5116,7 @@ function useAuthService() {
5080
5116
  },
5081
5117
  [env]
5082
5118
  );
5083
- const isValidToken = useCallback47(
5119
+ const isValidToken = useCallback48(
5084
5120
  async (token) => {
5085
5121
  const bodyData = {
5086
5122
  token
@@ -5093,7 +5129,7 @@ function useAuthService() {
5093
5129
  },
5094
5130
  [env]
5095
5131
  );
5096
- const isValidActionToken = useCallback47(
5132
+ const isValidActionToken = useCallback48(
5097
5133
  async (actionToken) => {
5098
5134
  const bodyData = {};
5099
5135
  return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
@@ -5106,7 +5142,7 @@ function useAuthService() {
5106
5142
  },
5107
5143
  [env]
5108
5144
  );
5109
- const loginSocial = useCallback47(
5145
+ const loginSocial = useCallback48(
5110
5146
  async ({
5111
5147
  db,
5112
5148
  state,
@@ -5124,13 +5160,13 @@ function useAuthService() {
5124
5160
  },
5125
5161
  [env]
5126
5162
  );
5127
- const getProviders = useCallback47(
5163
+ const getProviders = useCallback48(
5128
5164
  async (db) => {
5129
5165
  return env?.requests?.get("/oauth/providers", { params: { db } });
5130
5166
  },
5131
5167
  [env]
5132
5168
  );
5133
- const getAccessByCode = useCallback47(
5169
+ const getAccessByCode = useCallback48(
5134
5170
  async (code) => {
5135
5171
  const data = new URLSearchParams();
5136
5172
  data.append("code", code);
@@ -5150,7 +5186,7 @@ function useAuthService() {
5150
5186
  },
5151
5187
  [env]
5152
5188
  );
5153
- const logout = useCallback47(
5189
+ const logout = useCallback48(
5154
5190
  async (service) => {
5155
5191
  return env?.requests?.post(
5156
5192
  "/logout" /* LOGOUT */,
@@ -5167,7 +5203,7 @@ function useAuthService() {
5167
5203
  },
5168
5204
  [env]
5169
5205
  );
5170
- const getTenantMapping = useCallback47(
5206
+ const getTenantMapping = useCallback48(
5171
5207
  async ({ shortName, service }) => {
5172
5208
  const bodyData = {
5173
5209
  short_name: shortName
@@ -5185,7 +5221,7 @@ function useAuthService() {
5185
5221
  },
5186
5222
  [env]
5187
5223
  );
5188
- const getToken = useCallback47(
5224
+ const getToken = useCallback48(
5189
5225
  async ({
5190
5226
  phone,
5191
5227
  name,
@@ -5230,10 +5266,10 @@ function useAuthService() {
5230
5266
  }
5231
5267
 
5232
5268
  // src/services/company-service/index.ts
5233
- import { useCallback as useCallback48 } from "react";
5269
+ import { useCallback as useCallback49 } from "react";
5234
5270
  function useCompanyService() {
5235
5271
  const { env } = useEnv();
5236
- const getCurrentCompany = useCallback48(
5272
+ const getCurrentCompany = useCallback49(
5237
5273
  async (service, extraHeaders) => {
5238
5274
  return await env.requests.get(
5239
5275
  "/company" /* COMPANY_PATH */,
@@ -5250,7 +5286,7 @@ function useCompanyService() {
5250
5286
  },
5251
5287
  [env]
5252
5288
  );
5253
- const getInfoCompany = useCallback48(
5289
+ const getInfoCompany = useCallback49(
5254
5290
  async (id, service) => {
5255
5291
  const jsonData = {
5256
5292
  ids: [id],
@@ -5286,10 +5322,10 @@ function useCompanyService() {
5286
5322
  }
5287
5323
 
5288
5324
  // src/services/excel-service/index.ts
5289
- import { useCallback as useCallback49 } from "react";
5325
+ import { useCallback as useCallback50 } from "react";
5290
5326
  function useExcelService() {
5291
5327
  const { env } = useEnv();
5292
- const uploadFileExcel = useCallback49(
5328
+ const uploadFileExcel = useCallback50(
5293
5329
  async ({
5294
5330
  formData,
5295
5331
  service,
@@ -5306,7 +5342,7 @@ function useExcelService() {
5306
5342
  },
5307
5343
  [env]
5308
5344
  );
5309
- const uploadIdFile = useCallback49(
5345
+ const uploadIdFile = useCallback50(
5310
5346
  async ({
5311
5347
  formData,
5312
5348
  service,
@@ -5323,7 +5359,7 @@ function useExcelService() {
5323
5359
  },
5324
5360
  [env]
5325
5361
  );
5326
- const parsePreview = useCallback49(
5362
+ const parsePreview = useCallback50(
5327
5363
  async ({
5328
5364
  id,
5329
5365
  selectedSheet,
@@ -5372,7 +5408,7 @@ function useExcelService() {
5372
5408
  },
5373
5409
  [env]
5374
5410
  );
5375
- const executeImport = useCallback49(
5411
+ const executeImport = useCallback50(
5376
5412
  async ({
5377
5413
  columns,
5378
5414
  fields,
@@ -5406,7 +5442,7 @@ function useExcelService() {
5406
5442
  },
5407
5443
  [env]
5408
5444
  );
5409
- const getFileExcel = useCallback49(
5445
+ const getFileExcel = useCallback50(
5410
5446
  async ({
5411
5447
  model,
5412
5448
  service,
@@ -5430,7 +5466,7 @@ function useExcelService() {
5430
5466
  },
5431
5467
  [env]
5432
5468
  );
5433
- const getFieldExport = useCallback49(
5469
+ const getFieldExport = useCallback50(
5434
5470
  async ({
5435
5471
  ids,
5436
5472
  model,
@@ -5470,7 +5506,7 @@ function useExcelService() {
5470
5506
  },
5471
5507
  [env]
5472
5508
  );
5473
- const exportExcel = useCallback49(
5509
+ const exportExcel = useCallback50(
5474
5510
  async ({
5475
5511
  model,
5476
5512
  domain,
@@ -5518,10 +5554,10 @@ function useExcelService() {
5518
5554
  }
5519
5555
 
5520
5556
  // src/services/form-service/index.ts
5521
- import { useCallback as useCallback50 } from "react";
5557
+ import { useCallback as useCallback51 } from "react";
5522
5558
  function useFormService() {
5523
5559
  const { env } = useEnv();
5524
- const getComment = useCallback50(
5560
+ const getComment = useCallback51(
5525
5561
  async ({ data }) => {
5526
5562
  const jsonData = {
5527
5563
  thread_id: data.thread_id,
@@ -5539,7 +5575,7 @@ function useFormService() {
5539
5575
  },
5540
5576
  [env]
5541
5577
  );
5542
- const getThreadData = useCallback50(
5578
+ const getThreadData = useCallback51(
5543
5579
  async ({
5544
5580
  data,
5545
5581
  xNode,
@@ -5566,7 +5602,7 @@ function useFormService() {
5566
5602
  },
5567
5603
  [env]
5568
5604
  );
5569
- const getThreadMessages = useCallback50(
5605
+ const getThreadMessages = useCallback51(
5570
5606
  async ({
5571
5607
  data,
5572
5608
  xNode,
@@ -5592,7 +5628,7 @@ function useFormService() {
5592
5628
  },
5593
5629
  [env]
5594
5630
  );
5595
- const sentComment = useCallback50(
5631
+ const sentComment = useCallback51(
5596
5632
  async ({ data }) => {
5597
5633
  const jsonData = {
5598
5634
  context: {
@@ -5620,7 +5656,7 @@ function useFormService() {
5620
5656
  },
5621
5657
  [env]
5622
5658
  );
5623
- const deleteComment = useCallback50(
5659
+ const deleteComment = useCallback51(
5624
5660
  async ({ data }) => {
5625
5661
  const jsonData = {
5626
5662
  attachment_ids: [],
@@ -5636,7 +5672,7 @@ function useFormService() {
5636
5672
  },
5637
5673
  [env]
5638
5674
  );
5639
- const getImage = useCallback50(
5675
+ const getImage = useCallback51(
5640
5676
  async ({ data }) => {
5641
5677
  return env.requests.get(
5642
5678
  `${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
@@ -5649,7 +5685,7 @@ function useFormService() {
5649
5685
  },
5650
5686
  [env]
5651
5687
  );
5652
- const uploadImage = useCallback50(
5688
+ const uploadImage = useCallback51(
5653
5689
  async ({
5654
5690
  formData,
5655
5691
  service,
@@ -5668,7 +5704,7 @@ function useFormService() {
5668
5704
  },
5669
5705
  [env]
5670
5706
  );
5671
- const uploadFile = useCallback50(
5707
+ const uploadFile = useCallback51(
5672
5708
  async ({
5673
5709
  formData,
5674
5710
  service,
@@ -5688,7 +5724,7 @@ function useFormService() {
5688
5724
  },
5689
5725
  [env]
5690
5726
  );
5691
- const getFormView = useCallback50(
5727
+ const getFormView = useCallback51(
5692
5728
  async ({ data }) => {
5693
5729
  const jsonData = {
5694
5730
  model: data.model,
@@ -5704,7 +5740,7 @@ function useFormService() {
5704
5740
  },
5705
5741
  [env]
5706
5742
  );
5707
- const changeStatus = useCallback50(
5743
+ const changeStatus = useCallback51(
5708
5744
  async ({ data }) => {
5709
5745
  const vals = {
5710
5746
  [data.name]: data.stage_id
@@ -5733,7 +5769,7 @@ function useFormService() {
5733
5769
  },
5734
5770
  [env]
5735
5771
  );
5736
- const getExternalTab = useCallback50(
5772
+ const getExternalTab = useCallback51(
5737
5773
  async ({ method, context, service, xNode }) => {
5738
5774
  return env?.requests?.post(
5739
5775
  "/call" /* CALL_PATH */,
@@ -5768,10 +5804,10 @@ function useFormService() {
5768
5804
  }
5769
5805
 
5770
5806
  // src/services/kanban-service/index.ts
5771
- import { useCallback as useCallback51 } from "react";
5807
+ import { useCallback as useCallback52 } from "react";
5772
5808
  function useKanbanService() {
5773
5809
  const { env } = useEnv();
5774
- const getGroups = useCallback51(
5810
+ const getGroups = useCallback52(
5775
5811
  async ({ model, width_context }) => {
5776
5812
  const jsonData = {
5777
5813
  model,
@@ -5791,7 +5827,7 @@ function useKanbanService() {
5791
5827
  },
5792
5828
  [env]
5793
5829
  );
5794
- const getProgressBar = useCallback51(
5830
+ const getProgressBar = useCallback52(
5795
5831
  async ({ field, color, model, width_context }) => {
5796
5832
  const jsonData = {
5797
5833
  model,
@@ -5821,10 +5857,10 @@ function useKanbanService() {
5821
5857
  }
5822
5858
 
5823
5859
  // src/services/model-service/index.ts
5824
- import { useCallback as useCallback52 } from "react";
5860
+ import { useCallback as useCallback53 } from "react";
5825
5861
  function useModelService() {
5826
5862
  const { env } = useEnv();
5827
- const getListMyBankAccount = useCallback52(
5863
+ const getListMyBankAccount = useCallback53(
5828
5864
  async ({
5829
5865
  domain,
5830
5866
  spectification,
@@ -5848,7 +5884,7 @@ function useModelService() {
5848
5884
  },
5849
5885
  [env]
5850
5886
  );
5851
- const getCurrency = useCallback52(async () => {
5887
+ const getCurrency = useCallback53(async () => {
5852
5888
  const jsonData = {
5853
5889
  model: "res.currency",
5854
5890
  method: "web_search_read",
@@ -5868,7 +5904,7 @@ function useModelService() {
5868
5904
  }
5869
5905
  });
5870
5906
  }, [env]);
5871
- const getConversionRate = useCallback52(async () => {
5907
+ const getConversionRate = useCallback53(async () => {
5872
5908
  const jsonData = {
5873
5909
  model: "res.currency",
5874
5910
  method: "web_search_read",
@@ -5894,7 +5930,7 @@ function useModelService() {
5894
5930
  }
5895
5931
  });
5896
5932
  }, [env]);
5897
- const getAll = useCallback52(
5933
+ const getAll = useCallback53(
5898
5934
  async ({
5899
5935
  data,
5900
5936
  service,
@@ -5936,7 +5972,7 @@ function useModelService() {
5936
5972
  },
5937
5973
  [env]
5938
5974
  );
5939
- const getListCalendar = useCallback52(
5975
+ const getListCalendar = useCallback53(
5940
5976
  async ({ data }) => {
5941
5977
  const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
5942
5978
  fields: data.fields,
@@ -5967,7 +6003,7 @@ function useModelService() {
5967
6003
  },
5968
6004
  [env]
5969
6005
  );
5970
- const getList = useCallback52(
6006
+ const getList = useCallback53(
5971
6007
  async ({
5972
6008
  model,
5973
6009
  ids = [],
@@ -5999,7 +6035,7 @@ function useModelService() {
5999
6035
  },
6000
6036
  [env]
6001
6037
  );
6002
- const getDetail = useCallback52(
6038
+ const getDetail = useCallback53(
6003
6039
  async ({
6004
6040
  ids = [],
6005
6041
  model,
@@ -6031,7 +6067,7 @@ function useModelService() {
6031
6067
  },
6032
6068
  [env]
6033
6069
  );
6034
- const save = useCallback52(
6070
+ const save = useCallback53(
6035
6071
  async ({
6036
6072
  model,
6037
6073
  ids = [],
@@ -6066,7 +6102,7 @@ function useModelService() {
6066
6102
  },
6067
6103
  [env]
6068
6104
  );
6069
- const deleteApi = useCallback52(
6105
+ const deleteApi = useCallback53(
6070
6106
  async ({ ids = [], model, service }) => {
6071
6107
  const jsonData = {
6072
6108
  model,
@@ -6086,7 +6122,7 @@ function useModelService() {
6086
6122
  },
6087
6123
  [env]
6088
6124
  );
6089
- const onChange = useCallback52(
6125
+ const onChange = useCallback53(
6090
6126
  async ({
6091
6127
  ids = [],
6092
6128
  model,
@@ -6122,7 +6158,7 @@ function useModelService() {
6122
6158
  },
6123
6159
  [env]
6124
6160
  );
6125
- const getListFieldsOnchange = useCallback52(
6161
+ const getListFieldsOnchange = useCallback53(
6126
6162
  async ({
6127
6163
  model,
6128
6164
  service,
@@ -6146,7 +6182,7 @@ function useModelService() {
6146
6182
  },
6147
6183
  [env]
6148
6184
  );
6149
- const parseORMOdoo = useCallback52((data) => {
6185
+ const parseORMOdoo = useCallback53((data) => {
6150
6186
  for (const key in data) {
6151
6187
  if (key === "display_name") {
6152
6188
  delete data[key];
@@ -6157,7 +6193,7 @@ function useModelService() {
6157
6193
  }
6158
6194
  return { ...data };
6159
6195
  }, []);
6160
- const toDataJS = useCallback52(
6196
+ const toDataJS = useCallback53(
6161
6197
  (data, viewData, model) => {
6162
6198
  for (const key in data) {
6163
6199
  if (data[key] === false) {
@@ -6215,10 +6251,10 @@ function useModelService() {
6215
6251
  }
6216
6252
 
6217
6253
  // src/services/user-service/index.ts
6218
- import { useCallback as useCallback53 } from "react";
6254
+ import { useCallback as useCallback54 } from "react";
6219
6255
  function useUserService() {
6220
6256
  const { env } = useEnv();
6221
- const getProfile = useCallback53(
6257
+ const getProfile = useCallback54(
6222
6258
  async (service, path, extraHeaders) => {
6223
6259
  return env?.requests?.get(
6224
6260
  path || "/userinfo" /* PROFILE_PATH */,
@@ -6235,7 +6271,7 @@ function useUserService() {
6235
6271
  },
6236
6272
  [env]
6237
6273
  );
6238
- const getUser = useCallback53(
6274
+ const getUser = useCallback54(
6239
6275
  async ({ context, id }) => {
6240
6276
  const jsonData = {
6241
6277
  model: "res.users",
@@ -6273,7 +6309,7 @@ function useUserService() {
6273
6309
  },
6274
6310
  [env]
6275
6311
  );
6276
- const switchUserLocale = useCallback53(
6312
+ const switchUserLocale = useCallback54(
6277
6313
  async ({ id, values, service }) => {
6278
6314
  const jsonData = {
6279
6315
  model: "res.users",
@@ -6301,10 +6337,10 @@ function useUserService() {
6301
6337
  }
6302
6338
 
6303
6339
  // src/services/view-service/index.ts
6304
- import { useCallback as useCallback54 } from "react";
6340
+ import { useCallback as useCallback55 } from "react";
6305
6341
  function useViewService() {
6306
6342
  const { env } = useEnv();
6307
- const getView = useCallback54(
6343
+ const getView = useCallback55(
6308
6344
  async ({
6309
6345
  model,
6310
6346
  views,
@@ -6344,7 +6380,7 @@ function useViewService() {
6344
6380
  },
6345
6381
  [env]
6346
6382
  );
6347
- const getMenu = useCallback54(
6383
+ const getMenu = useCallback55(
6348
6384
  async (context, specification, domain, service) => {
6349
6385
  const jsonData = {
6350
6386
  model: "ir.ui.menu" /* MENU */,
@@ -6375,7 +6411,7 @@ function useViewService() {
6375
6411
  },
6376
6412
  [env]
6377
6413
  );
6378
- const getActionDetail = useCallback54(
6414
+ const getActionDetail = useCallback55(
6379
6415
  async (aid, context) => {
6380
6416
  const jsonData = {
6381
6417
  model: "ir.actions.act_window" /* WINDOW_ACTION */,
@@ -6405,7 +6441,7 @@ function useViewService() {
6405
6441
  },
6406
6442
  [env]
6407
6443
  );
6408
- const getResequence = useCallback54(
6444
+ const getResequence = useCallback55(
6409
6445
  async ({
6410
6446
  model,
6411
6447
  ids,
@@ -6435,7 +6471,7 @@ function useViewService() {
6435
6471
  },
6436
6472
  [env]
6437
6473
  );
6438
- const getSelectionItem = useCallback54(
6474
+ const getSelectionItem = useCallback55(
6439
6475
  async ({
6440
6476
  data,
6441
6477
  service,
@@ -6472,7 +6508,7 @@ function useViewService() {
6472
6508
  },
6473
6509
  [env]
6474
6510
  );
6475
- const loadMessages = useCallback54(async () => {
6511
+ const loadMessages = useCallback55(async () => {
6476
6512
  return env.requests.post(
6477
6513
  "/load_message_failures" /* LOAD_MESSAGE */,
6478
6514
  {},
@@ -6483,14 +6519,14 @@ function useViewService() {
6483
6519
  }
6484
6520
  );
6485
6521
  }, [env]);
6486
- const getVersion = useCallback54(async () => {
6522
+ const getVersion = useCallback55(async () => {
6487
6523
  return env?.requests?.get("", {
6488
6524
  headers: {
6489
6525
  "Content-Type": "application/json"
6490
6526
  }
6491
6527
  });
6492
6528
  }, [env]);
6493
- const grantAccess = useCallback54(
6529
+ const grantAccess = useCallback55(
6494
6530
  async ({
6495
6531
  redirect_uri,
6496
6532
  state,
@@ -6517,7 +6553,7 @@ function useViewService() {
6517
6553
  },
6518
6554
  [env]
6519
6555
  );
6520
- const removeTotpSetUp = useCallback54(
6556
+ const removeTotpSetUp = useCallback55(
6521
6557
  async ({ method, token }) => {
6522
6558
  const jsonData = {
6523
6559
  method,
@@ -6538,7 +6574,7 @@ function useViewService() {
6538
6574
  },
6539
6575
  [env]
6540
6576
  );
6541
- const requestSetupTotp = useCallback54(
6577
+ const requestSetupTotp = useCallback55(
6542
6578
  async ({ method, token }) => {
6543
6579
  const jsonData = {
6544
6580
  method,
@@ -6557,7 +6593,7 @@ function useViewService() {
6557
6593
  },
6558
6594
  [env]
6559
6595
  );
6560
- const settingsWebRead2fa = useCallback54(
6596
+ const settingsWebRead2fa = useCallback55(
6561
6597
  async ({
6562
6598
  method,
6563
6599
  model,
@@ -6585,7 +6621,7 @@ function useViewService() {
6585
6621
  },
6586
6622
  [env]
6587
6623
  );
6588
- const signInSSO = useCallback54(
6624
+ const signInSSO = useCallback55(
6589
6625
  async ({
6590
6626
  redirect_uri,
6591
6627
  state,
@@ -6617,7 +6653,7 @@ function useViewService() {
6617
6653
  },
6618
6654
  [env]
6619
6655
  );
6620
- const verify2FA = useCallback54(
6656
+ const verify2FA = useCallback55(
6621
6657
  ({
6622
6658
  method,
6623
6659
  with_context,
@@ -6650,7 +6686,7 @@ function useViewService() {
6650
6686
  },
6651
6687
  [env]
6652
6688
  );
6653
- const get2FAMethods = useCallback54(
6689
+ const get2FAMethods = useCallback55(
6654
6690
  ({ method, with_context }) => {
6655
6691
  const jsonData = {
6656
6692
  method,
@@ -6669,7 +6705,7 @@ function useViewService() {
6669
6705
  },
6670
6706
  [env]
6671
6707
  );
6672
- const verifyTotp = useCallback54(
6708
+ const verifyTotp = useCallback55(
6673
6709
  ({
6674
6710
  method,
6675
6711
  action_token,
@@ -6694,7 +6730,7 @@ function useViewService() {
6694
6730
  },
6695
6731
  [env]
6696
6732
  );
6697
- const getNotifications = useCallback54(
6733
+ const getNotifications = useCallback55(
6698
6734
  async ({
6699
6735
  service,
6700
6736
  xNode,
@@ -6714,7 +6750,7 @@ function useViewService() {
6714
6750
  },
6715
6751
  [env]
6716
6752
  );
6717
- const getCountry = useCallback54(
6753
+ const getCountry = useCallback55(
6718
6754
  async ({
6719
6755
  service,
6720
6756
  xNode,
@@ -6741,7 +6777,7 @@ function useViewService() {
6741
6777
  },
6742
6778
  [env]
6743
6779
  );
6744
- const getCity = useCallback54(
6780
+ const getCity = useCallback55(
6745
6781
  async ({
6746
6782
  service,
6747
6783
  xNode,
@@ -6768,7 +6804,7 @@ function useViewService() {
6768
6804
  },
6769
6805
  [env]
6770
6806
  );
6771
- const getWard = useCallback54(
6807
+ const getWard = useCallback55(
6772
6808
  async ({
6773
6809
  service,
6774
6810
  xNode,
@@ -6793,7 +6829,7 @@ function useViewService() {
6793
6829
  },
6794
6830
  [env]
6795
6831
  );
6796
- const getPartnerTitle = useCallback54(
6832
+ const getPartnerTitle = useCallback55(
6797
6833
  async ({
6798
6834
  service,
6799
6835
  xNode,
@@ -6845,10 +6881,10 @@ function useViewService() {
6845
6881
  }
6846
6882
 
6847
6883
  // src/services/dashboard-service/index.ts
6848
- import { useCallback as useCallback55 } from "react";
6884
+ import { useCallback as useCallback56 } from "react";
6849
6885
  function useDashboardService() {
6850
6886
  const { env } = useEnv();
6851
- const readGroup = useCallback55(
6887
+ const readGroup = useCallback56(
6852
6888
  async ({
6853
6889
  service,
6854
6890
  xNode,
@@ -6865,7 +6901,7 @@ function useDashboardService() {
6865
6901
  },
6866
6902
  [env]
6867
6903
  );
6868
- const getDataChart = useCallback55(
6904
+ const getDataChart = useCallback56(
6869
6905
  async ({
6870
6906
  service,
6871
6907
  xNode,