@fctc/interface-logic 4.5.2 → 4.5.4

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 useCallback40 } from "react";
2
+ import { useCallback as useCallback42 } from "react";
3
3
 
4
4
  // src/constants/api/uri-constant.ts
5
5
  var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
@@ -112,7 +112,7 @@ var MODEL_TO_TABLE = {
112
112
  ["loyalty.reward" /* LOYALTY_REWARD */]: "loyalty_rewards" /* LOYALTY_REWARDS */,
113
113
  ["pos.config" /* POS_CONFIG */]: "pos_configs" /* POS_CONFIGS */,
114
114
  ["pos.session" /* POS_SESSION */]: "pos_sessions" /* POS_SESSIONS */,
115
- ["pos.order.line" /* POS_ORDER_LINE */]: "order_lines" /* ORDER_LINES */,
115
+ ["pos.order.line" /* POS_ORDER_LINE */]: "order_line" /* ORDER_LINE */,
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 */,
@@ -3488,8 +3488,13 @@ var deleteEntityService = (env) => {
3488
3488
  ids,
3489
3489
  xNode,
3490
3490
  service,
3491
- method
3491
+ method,
3492
+ isSupa = false,
3493
+ supaCallback
3492
3494
  }) => {
3495
+ if (isSupa && supaCallback) {
3496
+ return supaCallback(ids);
3497
+ }
3493
3498
  const jsonData = {
3494
3499
  model,
3495
3500
  ids,
@@ -4258,8 +4263,13 @@ var updateEntityService = (env) => {
4258
4263
  values,
4259
4264
  isCreateEndpoint = true,
4260
4265
  xNode,
4261
- service
4266
+ service,
4267
+ isSupa = false,
4268
+ supaCallback
4262
4269
  }) => {
4270
+ if (isSupa && supaCallback) {
4271
+ return supaCallback(values);
4272
+ }
4263
4273
  const jsonData = {
4264
4274
  model,
4265
4275
  domain,
@@ -4687,6 +4697,12 @@ import { useMutation as useMutation88 } from "@tanstack/react-query";
4687
4697
  // src/services/pos-service/supabase/create-order.ts
4688
4698
  import { useCallback as useCallback39 } from "react";
4689
4699
 
4700
+ // src/services/pos-service/supabase/add-product-to-order.ts
4701
+ import { useCallback as useCallback40 } from "react";
4702
+
4703
+ // src/services/pos-service/supabase/update-order-total-amount.ts
4704
+ import { useCallback as useCallback41 } from "react";
4705
+
4690
4706
  // src/hooks/pos/supabase/use-add-table.ts
4691
4707
  import { useMutation as useMutation89 } from "@tanstack/react-query";
4692
4708
 
@@ -4716,7 +4732,7 @@ import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
4716
4732
  // src/services/action-service/index.ts
4717
4733
  function useActionService() {
4718
4734
  const { env } = useEnv();
4719
- const loadAction = useCallback40(
4735
+ const loadAction = useCallback42(
4720
4736
  async ({
4721
4737
  idAction,
4722
4738
  context,
@@ -4740,7 +4756,7 @@ function useActionService() {
4740
4756
  },
4741
4757
  [env]
4742
4758
  );
4743
- const callButton = useCallback40(
4759
+ const callButton = useCallback42(
4744
4760
  async ({
4745
4761
  model,
4746
4762
  ids = [],
@@ -4774,7 +4790,7 @@ function useActionService() {
4774
4790
  },
4775
4791
  [env]
4776
4792
  );
4777
- const removeRows = useCallback40(
4793
+ const removeRows = useCallback42(
4778
4794
  async ({
4779
4795
  model,
4780
4796
  ids,
@@ -4800,7 +4816,7 @@ function useActionService() {
4800
4816
  },
4801
4817
  [env]
4802
4818
  );
4803
- const duplicateRecord = useCallback40(
4819
+ const duplicateRecord = useCallback42(
4804
4820
  async ({
4805
4821
  model,
4806
4822
  id,
@@ -4826,7 +4842,7 @@ function useActionService() {
4826
4842
  },
4827
4843
  [env]
4828
4844
  );
4829
- const getPrintReportName = useCallback40(
4845
+ const getPrintReportName = useCallback42(
4830
4846
  async ({ id }) => {
4831
4847
  const jsonData = {
4832
4848
  model: "ir.actions.report",
@@ -4844,7 +4860,7 @@ function useActionService() {
4844
4860
  },
4845
4861
  [env]
4846
4862
  );
4847
- const print = useCallback40(
4863
+ const print = useCallback42(
4848
4864
  async ({ id, report, db }) => {
4849
4865
  const jsonData = {
4850
4866
  report,
@@ -4862,7 +4878,7 @@ function useActionService() {
4862
4878
  },
4863
4879
  [env]
4864
4880
  );
4865
- const runAction = useCallback40(
4881
+ const runAction = useCallback42(
4866
4882
  async ({
4867
4883
  idAction,
4868
4884
  context,
@@ -4889,7 +4905,7 @@ function useActionService() {
4889
4905
  },
4890
4906
  [env]
4891
4907
  );
4892
- const generateSerialNumber = useCallback40(
4908
+ const generateSerialNumber = useCallback42(
4893
4909
  async ({
4894
4910
  kwargs,
4895
4911
  context,
@@ -4927,11 +4943,11 @@ function useActionService() {
4927
4943
  }
4928
4944
 
4929
4945
  // src/services/auth-service/index.ts
4930
- import { useCallback as useCallback41 } from "react";
4946
+ import { useCallback as useCallback43 } from "react";
4931
4947
  function useAuthService() {
4932
4948
  const { env } = useEnv();
4933
4949
  const supabase = useSupabaseOptional();
4934
- const login = useCallback41(
4950
+ const login = useCallback43(
4935
4951
  async (body) => {
4936
4952
  const payload = Object.fromEntries(
4937
4953
  Object.entries({
@@ -4956,7 +4972,7 @@ function useAuthService() {
4956
4972
  },
4957
4973
  [env]
4958
4974
  );
4959
- const loginSupabase = useCallback41(
4975
+ const loginSupabase = useCallback43(
4960
4976
  async (body) => {
4961
4977
  if (!supabase) {
4962
4978
  return {
@@ -4972,7 +4988,7 @@ function useAuthService() {
4972
4988
  },
4973
4989
  [supabase]
4974
4990
  );
4975
- const forgotPassword = useCallback41(
4991
+ const forgotPassword = useCallback43(
4976
4992
  async (email) => {
4977
4993
  const bodyData = {
4978
4994
  login: email,
@@ -4986,7 +5002,7 @@ function useAuthService() {
4986
5002
  },
4987
5003
  [env]
4988
5004
  );
4989
- const forgotPasswordSSO = useCallback41(
5005
+ const forgotPasswordSSO = useCallback43(
4990
5006
  async ({
4991
5007
  email,
4992
5008
  with_context,
@@ -5009,7 +5025,7 @@ function useAuthService() {
5009
5025
  },
5010
5026
  [env]
5011
5027
  );
5012
- const resetPassword = useCallback41(
5028
+ const resetPassword = useCallback43(
5013
5029
  async (data, token) => {
5014
5030
  const bodyData = {
5015
5031
  token,
@@ -5024,7 +5040,7 @@ function useAuthService() {
5024
5040
  },
5025
5041
  [env]
5026
5042
  );
5027
- const resetPasswordSSO = useCallback41(
5043
+ const resetPasswordSSO = useCallback43(
5028
5044
  async ({
5029
5045
  method,
5030
5046
  password,
@@ -5047,7 +5063,7 @@ function useAuthService() {
5047
5063
  },
5048
5064
  [env]
5049
5065
  );
5050
- const updatePassword = useCallback41(
5066
+ const updatePassword = useCallback43(
5051
5067
  async (data, token) => {
5052
5068
  const bodyData = {
5053
5069
  token,
@@ -5062,7 +5078,7 @@ function useAuthService() {
5062
5078
  },
5063
5079
  [env]
5064
5080
  );
5065
- const isValidToken = useCallback41(
5081
+ const isValidToken = useCallback43(
5066
5082
  async (token) => {
5067
5083
  const bodyData = {
5068
5084
  token
@@ -5075,7 +5091,7 @@ function useAuthService() {
5075
5091
  },
5076
5092
  [env]
5077
5093
  );
5078
- const isValidActionToken = useCallback41(
5094
+ const isValidActionToken = useCallback43(
5079
5095
  async (actionToken) => {
5080
5096
  const bodyData = {};
5081
5097
  return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
@@ -5088,7 +5104,7 @@ function useAuthService() {
5088
5104
  },
5089
5105
  [env]
5090
5106
  );
5091
- const loginSocial = useCallback41(
5107
+ const loginSocial = useCallback43(
5092
5108
  async ({
5093
5109
  db,
5094
5110
  state,
@@ -5106,13 +5122,13 @@ function useAuthService() {
5106
5122
  },
5107
5123
  [env]
5108
5124
  );
5109
- const getProviders = useCallback41(
5125
+ const getProviders = useCallback43(
5110
5126
  async (db) => {
5111
5127
  return env?.requests?.get("/oauth/providers", { params: { db } });
5112
5128
  },
5113
5129
  [env]
5114
5130
  );
5115
- const getAccessByCode = useCallback41(
5131
+ const getAccessByCode = useCallback43(
5116
5132
  async (code) => {
5117
5133
  const data = new URLSearchParams();
5118
5134
  data.append("code", code);
@@ -5132,7 +5148,7 @@ function useAuthService() {
5132
5148
  },
5133
5149
  [env]
5134
5150
  );
5135
- const logout = useCallback41(
5151
+ const logout = useCallback43(
5136
5152
  async (service) => {
5137
5153
  return env?.requests?.post(
5138
5154
  "/logout" /* LOGOUT */,
@@ -5149,7 +5165,7 @@ function useAuthService() {
5149
5165
  },
5150
5166
  [env]
5151
5167
  );
5152
- const getTenantMapping = useCallback41(
5168
+ const getTenantMapping = useCallback43(
5153
5169
  async ({ shortName, service }) => {
5154
5170
  const bodyData = {
5155
5171
  short_name: shortName
@@ -5167,7 +5183,7 @@ function useAuthService() {
5167
5183
  },
5168
5184
  [env]
5169
5185
  );
5170
- const getToken = useCallback41(
5186
+ const getToken = useCallback43(
5171
5187
  async ({
5172
5188
  phone,
5173
5189
  name,
@@ -5212,10 +5228,10 @@ function useAuthService() {
5212
5228
  }
5213
5229
 
5214
5230
  // src/services/company-service/index.ts
5215
- import { useCallback as useCallback42 } from "react";
5231
+ import { useCallback as useCallback44 } from "react";
5216
5232
  function useCompanyService() {
5217
5233
  const { env } = useEnv();
5218
- const getCurrentCompany = useCallback42(
5234
+ const getCurrentCompany = useCallback44(
5219
5235
  async (service, extraHeaders) => {
5220
5236
  return await env.requests.get(
5221
5237
  "/company" /* COMPANY_PATH */,
@@ -5232,7 +5248,7 @@ function useCompanyService() {
5232
5248
  },
5233
5249
  [env]
5234
5250
  );
5235
- const getInfoCompany = useCallback42(
5251
+ const getInfoCompany = useCallback44(
5236
5252
  async (id, service) => {
5237
5253
  const jsonData = {
5238
5254
  ids: [id],
@@ -5268,10 +5284,10 @@ function useCompanyService() {
5268
5284
  }
5269
5285
 
5270
5286
  // src/services/excel-service/index.ts
5271
- import { useCallback as useCallback43 } from "react";
5287
+ import { useCallback as useCallback45 } from "react";
5272
5288
  function useExcelService() {
5273
5289
  const { env } = useEnv();
5274
- const uploadFileExcel = useCallback43(
5290
+ const uploadFileExcel = useCallback45(
5275
5291
  async ({
5276
5292
  formData,
5277
5293
  service,
@@ -5288,7 +5304,7 @@ function useExcelService() {
5288
5304
  },
5289
5305
  [env]
5290
5306
  );
5291
- const uploadIdFile = useCallback43(
5307
+ const uploadIdFile = useCallback45(
5292
5308
  async ({
5293
5309
  formData,
5294
5310
  service,
@@ -5305,7 +5321,7 @@ function useExcelService() {
5305
5321
  },
5306
5322
  [env]
5307
5323
  );
5308
- const parsePreview = useCallback43(
5324
+ const parsePreview = useCallback45(
5309
5325
  async ({
5310
5326
  id,
5311
5327
  selectedSheet,
@@ -5354,7 +5370,7 @@ function useExcelService() {
5354
5370
  },
5355
5371
  [env]
5356
5372
  );
5357
- const executeImport = useCallback43(
5373
+ const executeImport = useCallback45(
5358
5374
  async ({
5359
5375
  columns,
5360
5376
  fields,
@@ -5388,7 +5404,7 @@ function useExcelService() {
5388
5404
  },
5389
5405
  [env]
5390
5406
  );
5391
- const getFileExcel = useCallback43(
5407
+ const getFileExcel = useCallback45(
5392
5408
  async ({
5393
5409
  model,
5394
5410
  service,
@@ -5412,7 +5428,7 @@ function useExcelService() {
5412
5428
  },
5413
5429
  [env]
5414
5430
  );
5415
- const getFieldExport = useCallback43(
5431
+ const getFieldExport = useCallback45(
5416
5432
  async ({
5417
5433
  ids,
5418
5434
  model,
@@ -5452,7 +5468,7 @@ function useExcelService() {
5452
5468
  },
5453
5469
  [env]
5454
5470
  );
5455
- const exportExcel = useCallback43(
5471
+ const exportExcel = useCallback45(
5456
5472
  async ({
5457
5473
  model,
5458
5474
  domain,
@@ -5500,10 +5516,10 @@ function useExcelService() {
5500
5516
  }
5501
5517
 
5502
5518
  // src/services/form-service/index.ts
5503
- import { useCallback as useCallback44 } from "react";
5519
+ import { useCallback as useCallback46 } from "react";
5504
5520
  function useFormService() {
5505
5521
  const { env } = useEnv();
5506
- const getComment = useCallback44(
5522
+ const getComment = useCallback46(
5507
5523
  async ({ data }) => {
5508
5524
  const jsonData = {
5509
5525
  thread_id: data.thread_id,
@@ -5521,7 +5537,7 @@ function useFormService() {
5521
5537
  },
5522
5538
  [env]
5523
5539
  );
5524
- const getThreadData = useCallback44(
5540
+ const getThreadData = useCallback46(
5525
5541
  async ({
5526
5542
  data,
5527
5543
  xNode,
@@ -5548,7 +5564,7 @@ function useFormService() {
5548
5564
  },
5549
5565
  [env]
5550
5566
  );
5551
- const getThreadMessages = useCallback44(
5567
+ const getThreadMessages = useCallback46(
5552
5568
  async ({
5553
5569
  data,
5554
5570
  xNode,
@@ -5574,7 +5590,7 @@ function useFormService() {
5574
5590
  },
5575
5591
  [env]
5576
5592
  );
5577
- const sentComment = useCallback44(
5593
+ const sentComment = useCallback46(
5578
5594
  async ({ data }) => {
5579
5595
  const jsonData = {
5580
5596
  context: {
@@ -5602,7 +5618,7 @@ function useFormService() {
5602
5618
  },
5603
5619
  [env]
5604
5620
  );
5605
- const deleteComment = useCallback44(
5621
+ const deleteComment = useCallback46(
5606
5622
  async ({ data }) => {
5607
5623
  const jsonData = {
5608
5624
  attachment_ids: [],
@@ -5618,7 +5634,7 @@ function useFormService() {
5618
5634
  },
5619
5635
  [env]
5620
5636
  );
5621
- const getImage = useCallback44(
5637
+ const getImage = useCallback46(
5622
5638
  async ({ data }) => {
5623
5639
  return env.requests.get(
5624
5640
  `${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
@@ -5631,7 +5647,7 @@ function useFormService() {
5631
5647
  },
5632
5648
  [env]
5633
5649
  );
5634
- const uploadImage = useCallback44(
5650
+ const uploadImage = useCallback46(
5635
5651
  async ({
5636
5652
  formData,
5637
5653
  service,
@@ -5650,7 +5666,7 @@ function useFormService() {
5650
5666
  },
5651
5667
  [env]
5652
5668
  );
5653
- const uploadFile = useCallback44(
5669
+ const uploadFile = useCallback46(
5654
5670
  async ({
5655
5671
  formData,
5656
5672
  service,
@@ -5670,7 +5686,7 @@ function useFormService() {
5670
5686
  },
5671
5687
  [env]
5672
5688
  );
5673
- const getFormView = useCallback44(
5689
+ const getFormView = useCallback46(
5674
5690
  async ({ data }) => {
5675
5691
  const jsonData = {
5676
5692
  model: data.model,
@@ -5686,7 +5702,7 @@ function useFormService() {
5686
5702
  },
5687
5703
  [env]
5688
5704
  );
5689
- const changeStatus = useCallback44(
5705
+ const changeStatus = useCallback46(
5690
5706
  async ({ data }) => {
5691
5707
  const vals = {
5692
5708
  [data.name]: data.stage_id
@@ -5715,7 +5731,7 @@ function useFormService() {
5715
5731
  },
5716
5732
  [env]
5717
5733
  );
5718
- const getExternalTab = useCallback44(
5734
+ const getExternalTab = useCallback46(
5719
5735
  async ({ method, context, service, xNode }) => {
5720
5736
  return env?.requests?.post(
5721
5737
  "/call" /* CALL_PATH */,
@@ -5750,10 +5766,10 @@ function useFormService() {
5750
5766
  }
5751
5767
 
5752
5768
  // src/services/kanban-service/index.ts
5753
- import { useCallback as useCallback45 } from "react";
5769
+ import { useCallback as useCallback47 } from "react";
5754
5770
  function useKanbanService() {
5755
5771
  const { env } = useEnv();
5756
- const getGroups = useCallback45(
5772
+ const getGroups = useCallback47(
5757
5773
  async ({ model, width_context }) => {
5758
5774
  const jsonData = {
5759
5775
  model,
@@ -5773,7 +5789,7 @@ function useKanbanService() {
5773
5789
  },
5774
5790
  [env]
5775
5791
  );
5776
- const getProgressBar = useCallback45(
5792
+ const getProgressBar = useCallback47(
5777
5793
  async ({ field, color, model, width_context }) => {
5778
5794
  const jsonData = {
5779
5795
  model,
@@ -5803,10 +5819,10 @@ function useKanbanService() {
5803
5819
  }
5804
5820
 
5805
5821
  // src/services/model-service/index.ts
5806
- import { useCallback as useCallback46 } from "react";
5822
+ import { useCallback as useCallback48 } from "react";
5807
5823
  function useModelService() {
5808
5824
  const { env } = useEnv();
5809
- const getListMyBankAccount = useCallback46(
5825
+ const getListMyBankAccount = useCallback48(
5810
5826
  async ({
5811
5827
  domain,
5812
5828
  spectification,
@@ -5830,7 +5846,7 @@ function useModelService() {
5830
5846
  },
5831
5847
  [env]
5832
5848
  );
5833
- const getCurrency = useCallback46(async () => {
5849
+ const getCurrency = useCallback48(async () => {
5834
5850
  const jsonData = {
5835
5851
  model: "res.currency",
5836
5852
  method: "web_search_read",
@@ -5850,7 +5866,7 @@ function useModelService() {
5850
5866
  }
5851
5867
  });
5852
5868
  }, [env]);
5853
- const getConversionRate = useCallback46(async () => {
5869
+ const getConversionRate = useCallback48(async () => {
5854
5870
  const jsonData = {
5855
5871
  model: "res.currency",
5856
5872
  method: "web_search_read",
@@ -5876,7 +5892,7 @@ function useModelService() {
5876
5892
  }
5877
5893
  });
5878
5894
  }, [env]);
5879
- const getAll = useCallback46(
5895
+ const getAll = useCallback48(
5880
5896
  async ({
5881
5897
  data,
5882
5898
  service,
@@ -5918,7 +5934,7 @@ function useModelService() {
5918
5934
  },
5919
5935
  [env]
5920
5936
  );
5921
- const getListCalendar = useCallback46(
5937
+ const getListCalendar = useCallback48(
5922
5938
  async ({ data }) => {
5923
5939
  const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
5924
5940
  fields: data.fields,
@@ -5949,7 +5965,7 @@ function useModelService() {
5949
5965
  },
5950
5966
  [env]
5951
5967
  );
5952
- const getList = useCallback46(
5968
+ const getList = useCallback48(
5953
5969
  async ({
5954
5970
  model,
5955
5971
  ids = [],
@@ -5981,7 +5997,7 @@ function useModelService() {
5981
5997
  },
5982
5998
  [env]
5983
5999
  );
5984
- const getDetail = useCallback46(
6000
+ const getDetail = useCallback48(
5985
6001
  async ({
5986
6002
  ids = [],
5987
6003
  model,
@@ -6013,7 +6029,7 @@ function useModelService() {
6013
6029
  },
6014
6030
  [env]
6015
6031
  );
6016
- const save = useCallback46(
6032
+ const save = useCallback48(
6017
6033
  async ({
6018
6034
  model,
6019
6035
  ids = [],
@@ -6048,7 +6064,7 @@ function useModelService() {
6048
6064
  },
6049
6065
  [env]
6050
6066
  );
6051
- const deleteApi = useCallback46(
6067
+ const deleteApi = useCallback48(
6052
6068
  async ({ ids = [], model, service }) => {
6053
6069
  const jsonData = {
6054
6070
  model,
@@ -6068,7 +6084,7 @@ function useModelService() {
6068
6084
  },
6069
6085
  [env]
6070
6086
  );
6071
- const onChange = useCallback46(
6087
+ const onChange = useCallback48(
6072
6088
  async ({
6073
6089
  ids = [],
6074
6090
  model,
@@ -6104,7 +6120,7 @@ function useModelService() {
6104
6120
  },
6105
6121
  [env]
6106
6122
  );
6107
- const getListFieldsOnchange = useCallback46(
6123
+ const getListFieldsOnchange = useCallback48(
6108
6124
  async ({
6109
6125
  model,
6110
6126
  service,
@@ -6128,7 +6144,7 @@ function useModelService() {
6128
6144
  },
6129
6145
  [env]
6130
6146
  );
6131
- const parseORMOdoo = useCallback46((data) => {
6147
+ const parseORMOdoo = useCallback48((data) => {
6132
6148
  for (const key in data) {
6133
6149
  if (key === "display_name") {
6134
6150
  delete data[key];
@@ -6139,7 +6155,7 @@ function useModelService() {
6139
6155
  }
6140
6156
  return { ...data };
6141
6157
  }, []);
6142
- const toDataJS = useCallback46(
6158
+ const toDataJS = useCallback48(
6143
6159
  (data, viewData, model) => {
6144
6160
  for (const key in data) {
6145
6161
  if (data[key] === false) {
@@ -6197,10 +6213,10 @@ function useModelService() {
6197
6213
  }
6198
6214
 
6199
6215
  // src/services/user-service/index.ts
6200
- import { useCallback as useCallback47 } from "react";
6216
+ import { useCallback as useCallback49 } from "react";
6201
6217
  function useUserService() {
6202
6218
  const { env } = useEnv();
6203
- const getProfile = useCallback47(
6219
+ const getProfile = useCallback49(
6204
6220
  async (service, path, extraHeaders) => {
6205
6221
  return env?.requests?.get(
6206
6222
  path || "/userinfo" /* PROFILE_PATH */,
@@ -6217,7 +6233,7 @@ function useUserService() {
6217
6233
  },
6218
6234
  [env]
6219
6235
  );
6220
- const getUser = useCallback47(
6236
+ const getUser = useCallback49(
6221
6237
  async ({ context, id }) => {
6222
6238
  const jsonData = {
6223
6239
  model: "res.users",
@@ -6255,7 +6271,7 @@ function useUserService() {
6255
6271
  },
6256
6272
  [env]
6257
6273
  );
6258
- const switchUserLocale = useCallback47(
6274
+ const switchUserLocale = useCallback49(
6259
6275
  async ({ id, values, service }) => {
6260
6276
  const jsonData = {
6261
6277
  model: "res.users",
@@ -6283,10 +6299,10 @@ function useUserService() {
6283
6299
  }
6284
6300
 
6285
6301
  // src/services/view-service/index.ts
6286
- import { useCallback as useCallback48 } from "react";
6302
+ import { useCallback as useCallback50 } from "react";
6287
6303
  function useViewService() {
6288
6304
  const { env } = useEnv();
6289
- const getView = useCallback48(
6305
+ const getView = useCallback50(
6290
6306
  async ({
6291
6307
  model,
6292
6308
  views,
@@ -6326,7 +6342,7 @@ function useViewService() {
6326
6342
  },
6327
6343
  [env]
6328
6344
  );
6329
- const getMenu = useCallback48(
6345
+ const getMenu = useCallback50(
6330
6346
  async (context, specification, domain, service) => {
6331
6347
  const jsonData = {
6332
6348
  model: "ir.ui.menu" /* MENU */,
@@ -6357,7 +6373,7 @@ function useViewService() {
6357
6373
  },
6358
6374
  [env]
6359
6375
  );
6360
- const getActionDetail = useCallback48(
6376
+ const getActionDetail = useCallback50(
6361
6377
  async (aid, context) => {
6362
6378
  const jsonData = {
6363
6379
  model: "ir.actions.act_window" /* WINDOW_ACTION */,
@@ -6387,7 +6403,7 @@ function useViewService() {
6387
6403
  },
6388
6404
  [env]
6389
6405
  );
6390
- const getResequence = useCallback48(
6406
+ const getResequence = useCallback50(
6391
6407
  async ({
6392
6408
  model,
6393
6409
  ids,
@@ -6417,7 +6433,7 @@ function useViewService() {
6417
6433
  },
6418
6434
  [env]
6419
6435
  );
6420
- const getSelectionItem = useCallback48(
6436
+ const getSelectionItem = useCallback50(
6421
6437
  async ({
6422
6438
  data,
6423
6439
  service,
@@ -6454,7 +6470,7 @@ function useViewService() {
6454
6470
  },
6455
6471
  [env]
6456
6472
  );
6457
- const loadMessages = useCallback48(async () => {
6473
+ const loadMessages = useCallback50(async () => {
6458
6474
  return env.requests.post(
6459
6475
  "/load_message_failures" /* LOAD_MESSAGE */,
6460
6476
  {},
@@ -6465,14 +6481,14 @@ function useViewService() {
6465
6481
  }
6466
6482
  );
6467
6483
  }, [env]);
6468
- const getVersion = useCallback48(async () => {
6484
+ const getVersion = useCallback50(async () => {
6469
6485
  return env?.requests?.get("", {
6470
6486
  headers: {
6471
6487
  "Content-Type": "application/json"
6472
6488
  }
6473
6489
  });
6474
6490
  }, [env]);
6475
- const grantAccess = useCallback48(
6491
+ const grantAccess = useCallback50(
6476
6492
  async ({
6477
6493
  redirect_uri,
6478
6494
  state,
@@ -6499,7 +6515,7 @@ function useViewService() {
6499
6515
  },
6500
6516
  [env]
6501
6517
  );
6502
- const removeTotpSetUp = useCallback48(
6518
+ const removeTotpSetUp = useCallback50(
6503
6519
  async ({ method, token }) => {
6504
6520
  const jsonData = {
6505
6521
  method,
@@ -6520,7 +6536,7 @@ function useViewService() {
6520
6536
  },
6521
6537
  [env]
6522
6538
  );
6523
- const requestSetupTotp = useCallback48(
6539
+ const requestSetupTotp = useCallback50(
6524
6540
  async ({ method, token }) => {
6525
6541
  const jsonData = {
6526
6542
  method,
@@ -6539,7 +6555,7 @@ function useViewService() {
6539
6555
  },
6540
6556
  [env]
6541
6557
  );
6542
- const settingsWebRead2fa = useCallback48(
6558
+ const settingsWebRead2fa = useCallback50(
6543
6559
  async ({
6544
6560
  method,
6545
6561
  model,
@@ -6567,7 +6583,7 @@ function useViewService() {
6567
6583
  },
6568
6584
  [env]
6569
6585
  );
6570
- const signInSSO = useCallback48(
6586
+ const signInSSO = useCallback50(
6571
6587
  async ({
6572
6588
  redirect_uri,
6573
6589
  state,
@@ -6599,7 +6615,7 @@ function useViewService() {
6599
6615
  },
6600
6616
  [env]
6601
6617
  );
6602
- const verify2FA = useCallback48(
6618
+ const verify2FA = useCallback50(
6603
6619
  ({
6604
6620
  method,
6605
6621
  with_context,
@@ -6632,7 +6648,7 @@ function useViewService() {
6632
6648
  },
6633
6649
  [env]
6634
6650
  );
6635
- const get2FAMethods = useCallback48(
6651
+ const get2FAMethods = useCallback50(
6636
6652
  ({ method, with_context }) => {
6637
6653
  const jsonData = {
6638
6654
  method,
@@ -6651,7 +6667,7 @@ function useViewService() {
6651
6667
  },
6652
6668
  [env]
6653
6669
  );
6654
- const verifyTotp = useCallback48(
6670
+ const verifyTotp = useCallback50(
6655
6671
  ({
6656
6672
  method,
6657
6673
  action_token,
@@ -6676,7 +6692,7 @@ function useViewService() {
6676
6692
  },
6677
6693
  [env]
6678
6694
  );
6679
- const getNotifications = useCallback48(
6695
+ const getNotifications = useCallback50(
6680
6696
  async ({
6681
6697
  service,
6682
6698
  xNode,
@@ -6696,7 +6712,7 @@ function useViewService() {
6696
6712
  },
6697
6713
  [env]
6698
6714
  );
6699
- const getCountry = useCallback48(
6715
+ const getCountry = useCallback50(
6700
6716
  async ({
6701
6717
  service,
6702
6718
  xNode,
@@ -6723,7 +6739,7 @@ function useViewService() {
6723
6739
  },
6724
6740
  [env]
6725
6741
  );
6726
- const getCity = useCallback48(
6742
+ const getCity = useCallback50(
6727
6743
  async ({
6728
6744
  service,
6729
6745
  xNode,
@@ -6750,7 +6766,7 @@ function useViewService() {
6750
6766
  },
6751
6767
  [env]
6752
6768
  );
6753
- const getWard = useCallback48(
6769
+ const getWard = useCallback50(
6754
6770
  async ({
6755
6771
  service,
6756
6772
  xNode,
@@ -6775,7 +6791,7 @@ function useViewService() {
6775
6791
  },
6776
6792
  [env]
6777
6793
  );
6778
- const getPartnerTitle = useCallback48(
6794
+ const getPartnerTitle = useCallback50(
6779
6795
  async ({
6780
6796
  service,
6781
6797
  xNode,
@@ -6827,10 +6843,10 @@ function useViewService() {
6827
6843
  }
6828
6844
 
6829
6845
  // src/services/dashboard-service/index.ts
6830
- import { useCallback as useCallback49 } from "react";
6846
+ import { useCallback as useCallback51 } from "react";
6831
6847
  function useDashboardService() {
6832
6848
  const { env } = useEnv();
6833
- const readGroup = useCallback49(
6849
+ const readGroup = useCallback51(
6834
6850
  async ({
6835
6851
  service,
6836
6852
  xNode,
@@ -6847,7 +6863,7 @@ function useDashboardService() {
6847
6863
  },
6848
6864
  [env]
6849
6865
  );
6850
- const getDataChart = useCallback49(
6866
+ const getDataChart = useCallback51(
6851
6867
  async ({
6852
6868
  service,
6853
6869
  xNode,