@fctc/interface-logic 4.5.1 → 4.5.3

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 useCallback39 } from "react";
2
+ import { useCallback as useCallback40 } from "react";
3
3
 
4
4
  // src/constants/api/uri-constant.ts
5
5
  var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
@@ -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,
@@ -4684,6 +4694,9 @@ import { useMutation as useMutation87 } from "@tanstack/react-query";
4684
4694
  // src/hooks/pos/supabase/use-add-floor.ts
4685
4695
  import { useMutation as useMutation88 } from "@tanstack/react-query";
4686
4696
 
4697
+ // src/services/pos-service/supabase/create-order.ts
4698
+ import { useCallback as useCallback39 } from "react";
4699
+
4687
4700
  // src/hooks/pos/supabase/use-add-table.ts
4688
4701
  import { useMutation as useMutation89 } from "@tanstack/react-query";
4689
4702
 
@@ -4699,6 +4712,9 @@ import { useMutation as useMutation92 } from "@tanstack/react-query";
4699
4712
  // src/hooks/pos/supabase/use-delete-table.ts
4700
4713
  import { useMutation as useMutation93 } from "@tanstack/react-query";
4701
4714
 
4715
+ // src/hooks/pos/supabase/use-create-order.ts
4716
+ import { useMutation as useMutation94 } from "@tanstack/react-query";
4717
+
4702
4718
  // src/provider/service-provider.tsx
4703
4719
  import { jsx as jsx7 } from "react/jsx-runtime";
4704
4720
  var ServiceContext = createContext3(null);
@@ -4710,7 +4726,7 @@ import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
4710
4726
  // src/services/action-service/index.ts
4711
4727
  function useActionService() {
4712
4728
  const { env } = useEnv();
4713
- const loadAction = useCallback39(
4729
+ const loadAction = useCallback40(
4714
4730
  async ({
4715
4731
  idAction,
4716
4732
  context,
@@ -4734,7 +4750,7 @@ function useActionService() {
4734
4750
  },
4735
4751
  [env]
4736
4752
  );
4737
- const callButton = useCallback39(
4753
+ const callButton = useCallback40(
4738
4754
  async ({
4739
4755
  model,
4740
4756
  ids = [],
@@ -4768,7 +4784,7 @@ function useActionService() {
4768
4784
  },
4769
4785
  [env]
4770
4786
  );
4771
- const removeRows = useCallback39(
4787
+ const removeRows = useCallback40(
4772
4788
  async ({
4773
4789
  model,
4774
4790
  ids,
@@ -4794,7 +4810,7 @@ function useActionService() {
4794
4810
  },
4795
4811
  [env]
4796
4812
  );
4797
- const duplicateRecord = useCallback39(
4813
+ const duplicateRecord = useCallback40(
4798
4814
  async ({
4799
4815
  model,
4800
4816
  id,
@@ -4820,7 +4836,7 @@ function useActionService() {
4820
4836
  },
4821
4837
  [env]
4822
4838
  );
4823
- const getPrintReportName = useCallback39(
4839
+ const getPrintReportName = useCallback40(
4824
4840
  async ({ id }) => {
4825
4841
  const jsonData = {
4826
4842
  model: "ir.actions.report",
@@ -4838,7 +4854,7 @@ function useActionService() {
4838
4854
  },
4839
4855
  [env]
4840
4856
  );
4841
- const print = useCallback39(
4857
+ const print = useCallback40(
4842
4858
  async ({ id, report, db }) => {
4843
4859
  const jsonData = {
4844
4860
  report,
@@ -4856,7 +4872,7 @@ function useActionService() {
4856
4872
  },
4857
4873
  [env]
4858
4874
  );
4859
- const runAction = useCallback39(
4875
+ const runAction = useCallback40(
4860
4876
  async ({
4861
4877
  idAction,
4862
4878
  context,
@@ -4883,7 +4899,7 @@ function useActionService() {
4883
4899
  },
4884
4900
  [env]
4885
4901
  );
4886
- const generateSerialNumber = useCallback39(
4902
+ const generateSerialNumber = useCallback40(
4887
4903
  async ({
4888
4904
  kwargs,
4889
4905
  context,
@@ -4921,11 +4937,11 @@ function useActionService() {
4921
4937
  }
4922
4938
 
4923
4939
  // src/services/auth-service/index.ts
4924
- import { useCallback as useCallback40 } from "react";
4940
+ import { useCallback as useCallback41 } from "react";
4925
4941
  function useAuthService() {
4926
4942
  const { env } = useEnv();
4927
4943
  const supabase = useSupabaseOptional();
4928
- const login = useCallback40(
4944
+ const login = useCallback41(
4929
4945
  async (body) => {
4930
4946
  const payload = Object.fromEntries(
4931
4947
  Object.entries({
@@ -4950,7 +4966,7 @@ function useAuthService() {
4950
4966
  },
4951
4967
  [env]
4952
4968
  );
4953
- const loginSupabase = useCallback40(
4969
+ const loginSupabase = useCallback41(
4954
4970
  async (body) => {
4955
4971
  if (!supabase) {
4956
4972
  return {
@@ -4966,7 +4982,7 @@ function useAuthService() {
4966
4982
  },
4967
4983
  [supabase]
4968
4984
  );
4969
- const forgotPassword = useCallback40(
4985
+ const forgotPassword = useCallback41(
4970
4986
  async (email) => {
4971
4987
  const bodyData = {
4972
4988
  login: email,
@@ -4980,7 +4996,7 @@ function useAuthService() {
4980
4996
  },
4981
4997
  [env]
4982
4998
  );
4983
- const forgotPasswordSSO = useCallback40(
4999
+ const forgotPasswordSSO = useCallback41(
4984
5000
  async ({
4985
5001
  email,
4986
5002
  with_context,
@@ -5003,7 +5019,7 @@ function useAuthService() {
5003
5019
  },
5004
5020
  [env]
5005
5021
  );
5006
- const resetPassword = useCallback40(
5022
+ const resetPassword = useCallback41(
5007
5023
  async (data, token) => {
5008
5024
  const bodyData = {
5009
5025
  token,
@@ -5018,7 +5034,7 @@ function useAuthService() {
5018
5034
  },
5019
5035
  [env]
5020
5036
  );
5021
- const resetPasswordSSO = useCallback40(
5037
+ const resetPasswordSSO = useCallback41(
5022
5038
  async ({
5023
5039
  method,
5024
5040
  password,
@@ -5041,7 +5057,7 @@ function useAuthService() {
5041
5057
  },
5042
5058
  [env]
5043
5059
  );
5044
- const updatePassword = useCallback40(
5060
+ const updatePassword = useCallback41(
5045
5061
  async (data, token) => {
5046
5062
  const bodyData = {
5047
5063
  token,
@@ -5056,7 +5072,7 @@ function useAuthService() {
5056
5072
  },
5057
5073
  [env]
5058
5074
  );
5059
- const isValidToken = useCallback40(
5075
+ const isValidToken = useCallback41(
5060
5076
  async (token) => {
5061
5077
  const bodyData = {
5062
5078
  token
@@ -5069,7 +5085,7 @@ function useAuthService() {
5069
5085
  },
5070
5086
  [env]
5071
5087
  );
5072
- const isValidActionToken = useCallback40(
5088
+ const isValidActionToken = useCallback41(
5073
5089
  async (actionToken) => {
5074
5090
  const bodyData = {};
5075
5091
  return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
@@ -5082,7 +5098,7 @@ function useAuthService() {
5082
5098
  },
5083
5099
  [env]
5084
5100
  );
5085
- const loginSocial = useCallback40(
5101
+ const loginSocial = useCallback41(
5086
5102
  async ({
5087
5103
  db,
5088
5104
  state,
@@ -5100,13 +5116,13 @@ function useAuthService() {
5100
5116
  },
5101
5117
  [env]
5102
5118
  );
5103
- const getProviders = useCallback40(
5119
+ const getProviders = useCallback41(
5104
5120
  async (db) => {
5105
5121
  return env?.requests?.get("/oauth/providers", { params: { db } });
5106
5122
  },
5107
5123
  [env]
5108
5124
  );
5109
- const getAccessByCode = useCallback40(
5125
+ const getAccessByCode = useCallback41(
5110
5126
  async (code) => {
5111
5127
  const data = new URLSearchParams();
5112
5128
  data.append("code", code);
@@ -5126,7 +5142,7 @@ function useAuthService() {
5126
5142
  },
5127
5143
  [env]
5128
5144
  );
5129
- const logout = useCallback40(
5145
+ const logout = useCallback41(
5130
5146
  async (service) => {
5131
5147
  return env?.requests?.post(
5132
5148
  "/logout" /* LOGOUT */,
@@ -5143,7 +5159,7 @@ function useAuthService() {
5143
5159
  },
5144
5160
  [env]
5145
5161
  );
5146
- const getTenantMapping = useCallback40(
5162
+ const getTenantMapping = useCallback41(
5147
5163
  async ({ shortName, service }) => {
5148
5164
  const bodyData = {
5149
5165
  short_name: shortName
@@ -5161,7 +5177,7 @@ function useAuthService() {
5161
5177
  },
5162
5178
  [env]
5163
5179
  );
5164
- const getToken = useCallback40(
5180
+ const getToken = useCallback41(
5165
5181
  async ({
5166
5182
  phone,
5167
5183
  name,
@@ -5206,10 +5222,10 @@ function useAuthService() {
5206
5222
  }
5207
5223
 
5208
5224
  // src/services/company-service/index.ts
5209
- import { useCallback as useCallback41 } from "react";
5225
+ import { useCallback as useCallback42 } from "react";
5210
5226
  function useCompanyService() {
5211
5227
  const { env } = useEnv();
5212
- const getCurrentCompany = useCallback41(
5228
+ const getCurrentCompany = useCallback42(
5213
5229
  async (service, extraHeaders) => {
5214
5230
  return await env.requests.get(
5215
5231
  "/company" /* COMPANY_PATH */,
@@ -5226,7 +5242,7 @@ function useCompanyService() {
5226
5242
  },
5227
5243
  [env]
5228
5244
  );
5229
- const getInfoCompany = useCallback41(
5245
+ const getInfoCompany = useCallback42(
5230
5246
  async (id, service) => {
5231
5247
  const jsonData = {
5232
5248
  ids: [id],
@@ -5262,10 +5278,10 @@ function useCompanyService() {
5262
5278
  }
5263
5279
 
5264
5280
  // src/services/excel-service/index.ts
5265
- import { useCallback as useCallback42 } from "react";
5281
+ import { useCallback as useCallback43 } from "react";
5266
5282
  function useExcelService() {
5267
5283
  const { env } = useEnv();
5268
- const uploadFileExcel = useCallback42(
5284
+ const uploadFileExcel = useCallback43(
5269
5285
  async ({
5270
5286
  formData,
5271
5287
  service,
@@ -5282,7 +5298,7 @@ function useExcelService() {
5282
5298
  },
5283
5299
  [env]
5284
5300
  );
5285
- const uploadIdFile = useCallback42(
5301
+ const uploadIdFile = useCallback43(
5286
5302
  async ({
5287
5303
  formData,
5288
5304
  service,
@@ -5299,7 +5315,7 @@ function useExcelService() {
5299
5315
  },
5300
5316
  [env]
5301
5317
  );
5302
- const parsePreview = useCallback42(
5318
+ const parsePreview = useCallback43(
5303
5319
  async ({
5304
5320
  id,
5305
5321
  selectedSheet,
@@ -5348,7 +5364,7 @@ function useExcelService() {
5348
5364
  },
5349
5365
  [env]
5350
5366
  );
5351
- const executeImport = useCallback42(
5367
+ const executeImport = useCallback43(
5352
5368
  async ({
5353
5369
  columns,
5354
5370
  fields,
@@ -5382,7 +5398,7 @@ function useExcelService() {
5382
5398
  },
5383
5399
  [env]
5384
5400
  );
5385
- const getFileExcel = useCallback42(
5401
+ const getFileExcel = useCallback43(
5386
5402
  async ({
5387
5403
  model,
5388
5404
  service,
@@ -5406,7 +5422,7 @@ function useExcelService() {
5406
5422
  },
5407
5423
  [env]
5408
5424
  );
5409
- const getFieldExport = useCallback42(
5425
+ const getFieldExport = useCallback43(
5410
5426
  async ({
5411
5427
  ids,
5412
5428
  model,
@@ -5446,7 +5462,7 @@ function useExcelService() {
5446
5462
  },
5447
5463
  [env]
5448
5464
  );
5449
- const exportExcel = useCallback42(
5465
+ const exportExcel = useCallback43(
5450
5466
  async ({
5451
5467
  model,
5452
5468
  domain,
@@ -5494,10 +5510,10 @@ function useExcelService() {
5494
5510
  }
5495
5511
 
5496
5512
  // src/services/form-service/index.ts
5497
- import { useCallback as useCallback43 } from "react";
5513
+ import { useCallback as useCallback44 } from "react";
5498
5514
  function useFormService() {
5499
5515
  const { env } = useEnv();
5500
- const getComment = useCallback43(
5516
+ const getComment = useCallback44(
5501
5517
  async ({ data }) => {
5502
5518
  const jsonData = {
5503
5519
  thread_id: data.thread_id,
@@ -5515,7 +5531,7 @@ function useFormService() {
5515
5531
  },
5516
5532
  [env]
5517
5533
  );
5518
- const getThreadData = useCallback43(
5534
+ const getThreadData = useCallback44(
5519
5535
  async ({
5520
5536
  data,
5521
5537
  xNode,
@@ -5542,7 +5558,7 @@ function useFormService() {
5542
5558
  },
5543
5559
  [env]
5544
5560
  );
5545
- const getThreadMessages = useCallback43(
5561
+ const getThreadMessages = useCallback44(
5546
5562
  async ({
5547
5563
  data,
5548
5564
  xNode,
@@ -5568,7 +5584,7 @@ function useFormService() {
5568
5584
  },
5569
5585
  [env]
5570
5586
  );
5571
- const sentComment = useCallback43(
5587
+ const sentComment = useCallback44(
5572
5588
  async ({ data }) => {
5573
5589
  const jsonData = {
5574
5590
  context: {
@@ -5596,7 +5612,7 @@ function useFormService() {
5596
5612
  },
5597
5613
  [env]
5598
5614
  );
5599
- const deleteComment = useCallback43(
5615
+ const deleteComment = useCallback44(
5600
5616
  async ({ data }) => {
5601
5617
  const jsonData = {
5602
5618
  attachment_ids: [],
@@ -5612,7 +5628,7 @@ function useFormService() {
5612
5628
  },
5613
5629
  [env]
5614
5630
  );
5615
- const getImage = useCallback43(
5631
+ const getImage = useCallback44(
5616
5632
  async ({ data }) => {
5617
5633
  return env.requests.get(
5618
5634
  `${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
@@ -5625,7 +5641,7 @@ function useFormService() {
5625
5641
  },
5626
5642
  [env]
5627
5643
  );
5628
- const uploadImage = useCallback43(
5644
+ const uploadImage = useCallback44(
5629
5645
  async ({
5630
5646
  formData,
5631
5647
  service,
@@ -5644,7 +5660,7 @@ function useFormService() {
5644
5660
  },
5645
5661
  [env]
5646
5662
  );
5647
- const uploadFile = useCallback43(
5663
+ const uploadFile = useCallback44(
5648
5664
  async ({
5649
5665
  formData,
5650
5666
  service,
@@ -5664,7 +5680,7 @@ function useFormService() {
5664
5680
  },
5665
5681
  [env]
5666
5682
  );
5667
- const getFormView = useCallback43(
5683
+ const getFormView = useCallback44(
5668
5684
  async ({ data }) => {
5669
5685
  const jsonData = {
5670
5686
  model: data.model,
@@ -5680,7 +5696,7 @@ function useFormService() {
5680
5696
  },
5681
5697
  [env]
5682
5698
  );
5683
- const changeStatus = useCallback43(
5699
+ const changeStatus = useCallback44(
5684
5700
  async ({ data }) => {
5685
5701
  const vals = {
5686
5702
  [data.name]: data.stage_id
@@ -5709,7 +5725,7 @@ function useFormService() {
5709
5725
  },
5710
5726
  [env]
5711
5727
  );
5712
- const getExternalTab = useCallback43(
5728
+ const getExternalTab = useCallback44(
5713
5729
  async ({ method, context, service, xNode }) => {
5714
5730
  return env?.requests?.post(
5715
5731
  "/call" /* CALL_PATH */,
@@ -5744,10 +5760,10 @@ function useFormService() {
5744
5760
  }
5745
5761
 
5746
5762
  // src/services/kanban-service/index.ts
5747
- import { useCallback as useCallback44 } from "react";
5763
+ import { useCallback as useCallback45 } from "react";
5748
5764
  function useKanbanService() {
5749
5765
  const { env } = useEnv();
5750
- const getGroups = useCallback44(
5766
+ const getGroups = useCallback45(
5751
5767
  async ({ model, width_context }) => {
5752
5768
  const jsonData = {
5753
5769
  model,
@@ -5767,7 +5783,7 @@ function useKanbanService() {
5767
5783
  },
5768
5784
  [env]
5769
5785
  );
5770
- const getProgressBar = useCallback44(
5786
+ const getProgressBar = useCallback45(
5771
5787
  async ({ field, color, model, width_context }) => {
5772
5788
  const jsonData = {
5773
5789
  model,
@@ -5797,10 +5813,10 @@ function useKanbanService() {
5797
5813
  }
5798
5814
 
5799
5815
  // src/services/model-service/index.ts
5800
- import { useCallback as useCallback45 } from "react";
5816
+ import { useCallback as useCallback46 } from "react";
5801
5817
  function useModelService() {
5802
5818
  const { env } = useEnv();
5803
- const getListMyBankAccount = useCallback45(
5819
+ const getListMyBankAccount = useCallback46(
5804
5820
  async ({
5805
5821
  domain,
5806
5822
  spectification,
@@ -5824,7 +5840,7 @@ function useModelService() {
5824
5840
  },
5825
5841
  [env]
5826
5842
  );
5827
- const getCurrency = useCallback45(async () => {
5843
+ const getCurrency = useCallback46(async () => {
5828
5844
  const jsonData = {
5829
5845
  model: "res.currency",
5830
5846
  method: "web_search_read",
@@ -5844,7 +5860,7 @@ function useModelService() {
5844
5860
  }
5845
5861
  });
5846
5862
  }, [env]);
5847
- const getConversionRate = useCallback45(async () => {
5863
+ const getConversionRate = useCallback46(async () => {
5848
5864
  const jsonData = {
5849
5865
  model: "res.currency",
5850
5866
  method: "web_search_read",
@@ -5870,7 +5886,7 @@ function useModelService() {
5870
5886
  }
5871
5887
  });
5872
5888
  }, [env]);
5873
- const getAll = useCallback45(
5889
+ const getAll = useCallback46(
5874
5890
  async ({
5875
5891
  data,
5876
5892
  service,
@@ -5912,7 +5928,7 @@ function useModelService() {
5912
5928
  },
5913
5929
  [env]
5914
5930
  );
5915
- const getListCalendar = useCallback45(
5931
+ const getListCalendar = useCallback46(
5916
5932
  async ({ data }) => {
5917
5933
  const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
5918
5934
  fields: data.fields,
@@ -5943,7 +5959,7 @@ function useModelService() {
5943
5959
  },
5944
5960
  [env]
5945
5961
  );
5946
- const getList = useCallback45(
5962
+ const getList = useCallback46(
5947
5963
  async ({
5948
5964
  model,
5949
5965
  ids = [],
@@ -5975,7 +5991,7 @@ function useModelService() {
5975
5991
  },
5976
5992
  [env]
5977
5993
  );
5978
- const getDetail = useCallback45(
5994
+ const getDetail = useCallback46(
5979
5995
  async ({
5980
5996
  ids = [],
5981
5997
  model,
@@ -6007,7 +6023,7 @@ function useModelService() {
6007
6023
  },
6008
6024
  [env]
6009
6025
  );
6010
- const save = useCallback45(
6026
+ const save = useCallback46(
6011
6027
  async ({
6012
6028
  model,
6013
6029
  ids = [],
@@ -6042,7 +6058,7 @@ function useModelService() {
6042
6058
  },
6043
6059
  [env]
6044
6060
  );
6045
- const deleteApi = useCallback45(
6061
+ const deleteApi = useCallback46(
6046
6062
  async ({ ids = [], model, service }) => {
6047
6063
  const jsonData = {
6048
6064
  model,
@@ -6062,7 +6078,7 @@ function useModelService() {
6062
6078
  },
6063
6079
  [env]
6064
6080
  );
6065
- const onChange = useCallback45(
6081
+ const onChange = useCallback46(
6066
6082
  async ({
6067
6083
  ids = [],
6068
6084
  model,
@@ -6098,7 +6114,7 @@ function useModelService() {
6098
6114
  },
6099
6115
  [env]
6100
6116
  );
6101
- const getListFieldsOnchange = useCallback45(
6117
+ const getListFieldsOnchange = useCallback46(
6102
6118
  async ({
6103
6119
  model,
6104
6120
  service,
@@ -6122,7 +6138,7 @@ function useModelService() {
6122
6138
  },
6123
6139
  [env]
6124
6140
  );
6125
- const parseORMOdoo = useCallback45((data) => {
6141
+ const parseORMOdoo = useCallback46((data) => {
6126
6142
  for (const key in data) {
6127
6143
  if (key === "display_name") {
6128
6144
  delete data[key];
@@ -6133,7 +6149,7 @@ function useModelService() {
6133
6149
  }
6134
6150
  return { ...data };
6135
6151
  }, []);
6136
- const toDataJS = useCallback45(
6152
+ const toDataJS = useCallback46(
6137
6153
  (data, viewData, model) => {
6138
6154
  for (const key in data) {
6139
6155
  if (data[key] === false) {
@@ -6191,10 +6207,10 @@ function useModelService() {
6191
6207
  }
6192
6208
 
6193
6209
  // src/services/user-service/index.ts
6194
- import { useCallback as useCallback46 } from "react";
6210
+ import { useCallback as useCallback47 } from "react";
6195
6211
  function useUserService() {
6196
6212
  const { env } = useEnv();
6197
- const getProfile = useCallback46(
6213
+ const getProfile = useCallback47(
6198
6214
  async (service, path, extraHeaders) => {
6199
6215
  return env?.requests?.get(
6200
6216
  path || "/userinfo" /* PROFILE_PATH */,
@@ -6211,7 +6227,7 @@ function useUserService() {
6211
6227
  },
6212
6228
  [env]
6213
6229
  );
6214
- const getUser = useCallback46(
6230
+ const getUser = useCallback47(
6215
6231
  async ({ context, id }) => {
6216
6232
  const jsonData = {
6217
6233
  model: "res.users",
@@ -6249,7 +6265,7 @@ function useUserService() {
6249
6265
  },
6250
6266
  [env]
6251
6267
  );
6252
- const switchUserLocale = useCallback46(
6268
+ const switchUserLocale = useCallback47(
6253
6269
  async ({ id, values, service }) => {
6254
6270
  const jsonData = {
6255
6271
  model: "res.users",
@@ -6277,10 +6293,10 @@ function useUserService() {
6277
6293
  }
6278
6294
 
6279
6295
  // src/services/view-service/index.ts
6280
- import { useCallback as useCallback47 } from "react";
6296
+ import { useCallback as useCallback48 } from "react";
6281
6297
  function useViewService() {
6282
6298
  const { env } = useEnv();
6283
- const getView = useCallback47(
6299
+ const getView = useCallback48(
6284
6300
  async ({
6285
6301
  model,
6286
6302
  views,
@@ -6320,7 +6336,7 @@ function useViewService() {
6320
6336
  },
6321
6337
  [env]
6322
6338
  );
6323
- const getMenu = useCallback47(
6339
+ const getMenu = useCallback48(
6324
6340
  async (context, specification, domain, service) => {
6325
6341
  const jsonData = {
6326
6342
  model: "ir.ui.menu" /* MENU */,
@@ -6351,7 +6367,7 @@ function useViewService() {
6351
6367
  },
6352
6368
  [env]
6353
6369
  );
6354
- const getActionDetail = useCallback47(
6370
+ const getActionDetail = useCallback48(
6355
6371
  async (aid, context) => {
6356
6372
  const jsonData = {
6357
6373
  model: "ir.actions.act_window" /* WINDOW_ACTION */,
@@ -6381,7 +6397,7 @@ function useViewService() {
6381
6397
  },
6382
6398
  [env]
6383
6399
  );
6384
- const getResequence = useCallback47(
6400
+ const getResequence = useCallback48(
6385
6401
  async ({
6386
6402
  model,
6387
6403
  ids,
@@ -6411,7 +6427,7 @@ function useViewService() {
6411
6427
  },
6412
6428
  [env]
6413
6429
  );
6414
- const getSelectionItem = useCallback47(
6430
+ const getSelectionItem = useCallback48(
6415
6431
  async ({
6416
6432
  data,
6417
6433
  service,
@@ -6448,7 +6464,7 @@ function useViewService() {
6448
6464
  },
6449
6465
  [env]
6450
6466
  );
6451
- const loadMessages = useCallback47(async () => {
6467
+ const loadMessages = useCallback48(async () => {
6452
6468
  return env.requests.post(
6453
6469
  "/load_message_failures" /* LOAD_MESSAGE */,
6454
6470
  {},
@@ -6459,14 +6475,14 @@ function useViewService() {
6459
6475
  }
6460
6476
  );
6461
6477
  }, [env]);
6462
- const getVersion = useCallback47(async () => {
6478
+ const getVersion = useCallback48(async () => {
6463
6479
  return env?.requests?.get("", {
6464
6480
  headers: {
6465
6481
  "Content-Type": "application/json"
6466
6482
  }
6467
6483
  });
6468
6484
  }, [env]);
6469
- const grantAccess = useCallback47(
6485
+ const grantAccess = useCallback48(
6470
6486
  async ({
6471
6487
  redirect_uri,
6472
6488
  state,
@@ -6493,7 +6509,7 @@ function useViewService() {
6493
6509
  },
6494
6510
  [env]
6495
6511
  );
6496
- const removeTotpSetUp = useCallback47(
6512
+ const removeTotpSetUp = useCallback48(
6497
6513
  async ({ method, token }) => {
6498
6514
  const jsonData = {
6499
6515
  method,
@@ -6514,7 +6530,7 @@ function useViewService() {
6514
6530
  },
6515
6531
  [env]
6516
6532
  );
6517
- const requestSetupTotp = useCallback47(
6533
+ const requestSetupTotp = useCallback48(
6518
6534
  async ({ method, token }) => {
6519
6535
  const jsonData = {
6520
6536
  method,
@@ -6533,7 +6549,7 @@ function useViewService() {
6533
6549
  },
6534
6550
  [env]
6535
6551
  );
6536
- const settingsWebRead2fa = useCallback47(
6552
+ const settingsWebRead2fa = useCallback48(
6537
6553
  async ({
6538
6554
  method,
6539
6555
  model,
@@ -6561,7 +6577,7 @@ function useViewService() {
6561
6577
  },
6562
6578
  [env]
6563
6579
  );
6564
- const signInSSO = useCallback47(
6580
+ const signInSSO = useCallback48(
6565
6581
  async ({
6566
6582
  redirect_uri,
6567
6583
  state,
@@ -6593,7 +6609,7 @@ function useViewService() {
6593
6609
  },
6594
6610
  [env]
6595
6611
  );
6596
- const verify2FA = useCallback47(
6612
+ const verify2FA = useCallback48(
6597
6613
  ({
6598
6614
  method,
6599
6615
  with_context,
@@ -6626,7 +6642,7 @@ function useViewService() {
6626
6642
  },
6627
6643
  [env]
6628
6644
  );
6629
- const get2FAMethods = useCallback47(
6645
+ const get2FAMethods = useCallback48(
6630
6646
  ({ method, with_context }) => {
6631
6647
  const jsonData = {
6632
6648
  method,
@@ -6645,7 +6661,7 @@ function useViewService() {
6645
6661
  },
6646
6662
  [env]
6647
6663
  );
6648
- const verifyTotp = useCallback47(
6664
+ const verifyTotp = useCallback48(
6649
6665
  ({
6650
6666
  method,
6651
6667
  action_token,
@@ -6670,7 +6686,7 @@ function useViewService() {
6670
6686
  },
6671
6687
  [env]
6672
6688
  );
6673
- const getNotifications = useCallback47(
6689
+ const getNotifications = useCallback48(
6674
6690
  async ({
6675
6691
  service,
6676
6692
  xNode,
@@ -6690,7 +6706,7 @@ function useViewService() {
6690
6706
  },
6691
6707
  [env]
6692
6708
  );
6693
- const getCountry = useCallback47(
6709
+ const getCountry = useCallback48(
6694
6710
  async ({
6695
6711
  service,
6696
6712
  xNode,
@@ -6717,7 +6733,7 @@ function useViewService() {
6717
6733
  },
6718
6734
  [env]
6719
6735
  );
6720
- const getCity = useCallback47(
6736
+ const getCity = useCallback48(
6721
6737
  async ({
6722
6738
  service,
6723
6739
  xNode,
@@ -6744,7 +6760,7 @@ function useViewService() {
6744
6760
  },
6745
6761
  [env]
6746
6762
  );
6747
- const getWard = useCallback47(
6763
+ const getWard = useCallback48(
6748
6764
  async ({
6749
6765
  service,
6750
6766
  xNode,
@@ -6769,7 +6785,7 @@ function useViewService() {
6769
6785
  },
6770
6786
  [env]
6771
6787
  );
6772
- const getPartnerTitle = useCallback47(
6788
+ const getPartnerTitle = useCallback48(
6773
6789
  async ({
6774
6790
  service,
6775
6791
  xNode,
@@ -6821,10 +6837,10 @@ function useViewService() {
6821
6837
  }
6822
6838
 
6823
6839
  // src/services/dashboard-service/index.ts
6824
- import { useCallback as useCallback48 } from "react";
6840
+ import { useCallback as useCallback49 } from "react";
6825
6841
  function useDashboardService() {
6826
6842
  const { env } = useEnv();
6827
- const readGroup = useCallback48(
6843
+ const readGroup = useCallback49(
6828
6844
  async ({
6829
6845
  service,
6830
6846
  xNode,
@@ -6841,7 +6857,7 @@ function useDashboardService() {
6841
6857
  },
6842
6858
  [env]
6843
6859
  );
6844
- const getDataChart = useCallback48(
6860
+ const getDataChart = useCallback49(
6845
6861
  async ({
6846
6862
  service,
6847
6863
  xNode,