@fctc/interface-logic 4.5.1 → 4.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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) => {
@@ -4684,6 +4684,9 @@ import { useMutation as useMutation87 } from "@tanstack/react-query";
4684
4684
  // src/hooks/pos/supabase/use-add-floor.ts
4685
4685
  import { useMutation as useMutation88 } from "@tanstack/react-query";
4686
4686
 
4687
+ // src/services/pos-service/supabase/create-order.ts
4688
+ import { useCallback as useCallback39 } from "react";
4689
+
4687
4690
  // src/hooks/pos/supabase/use-add-table.ts
4688
4691
  import { useMutation as useMutation89 } from "@tanstack/react-query";
4689
4692
 
@@ -4699,6 +4702,9 @@ import { useMutation as useMutation92 } from "@tanstack/react-query";
4699
4702
  // src/hooks/pos/supabase/use-delete-table.ts
4700
4703
  import { useMutation as useMutation93 } from "@tanstack/react-query";
4701
4704
 
4705
+ // src/hooks/pos/supabase/use-create-order.ts
4706
+ import { useMutation as useMutation94 } from "@tanstack/react-query";
4707
+
4702
4708
  // src/provider/service-provider.tsx
4703
4709
  import { jsx as jsx7 } from "react/jsx-runtime";
4704
4710
  var ServiceContext = createContext3(null);
@@ -4710,7 +4716,7 @@ import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
4710
4716
  // src/services/action-service/index.ts
4711
4717
  function useActionService() {
4712
4718
  const { env } = useEnv();
4713
- const loadAction = useCallback39(
4719
+ const loadAction = useCallback40(
4714
4720
  async ({
4715
4721
  idAction,
4716
4722
  context,
@@ -4734,7 +4740,7 @@ function useActionService() {
4734
4740
  },
4735
4741
  [env]
4736
4742
  );
4737
- const callButton = useCallback39(
4743
+ const callButton = useCallback40(
4738
4744
  async ({
4739
4745
  model,
4740
4746
  ids = [],
@@ -4768,7 +4774,7 @@ function useActionService() {
4768
4774
  },
4769
4775
  [env]
4770
4776
  );
4771
- const removeRows = useCallback39(
4777
+ const removeRows = useCallback40(
4772
4778
  async ({
4773
4779
  model,
4774
4780
  ids,
@@ -4794,7 +4800,7 @@ function useActionService() {
4794
4800
  },
4795
4801
  [env]
4796
4802
  );
4797
- const duplicateRecord = useCallback39(
4803
+ const duplicateRecord = useCallback40(
4798
4804
  async ({
4799
4805
  model,
4800
4806
  id,
@@ -4820,7 +4826,7 @@ function useActionService() {
4820
4826
  },
4821
4827
  [env]
4822
4828
  );
4823
- const getPrintReportName = useCallback39(
4829
+ const getPrintReportName = useCallback40(
4824
4830
  async ({ id }) => {
4825
4831
  const jsonData = {
4826
4832
  model: "ir.actions.report",
@@ -4838,7 +4844,7 @@ function useActionService() {
4838
4844
  },
4839
4845
  [env]
4840
4846
  );
4841
- const print = useCallback39(
4847
+ const print = useCallback40(
4842
4848
  async ({ id, report, db }) => {
4843
4849
  const jsonData = {
4844
4850
  report,
@@ -4856,7 +4862,7 @@ function useActionService() {
4856
4862
  },
4857
4863
  [env]
4858
4864
  );
4859
- const runAction = useCallback39(
4865
+ const runAction = useCallback40(
4860
4866
  async ({
4861
4867
  idAction,
4862
4868
  context,
@@ -4883,7 +4889,7 @@ function useActionService() {
4883
4889
  },
4884
4890
  [env]
4885
4891
  );
4886
- const generateSerialNumber = useCallback39(
4892
+ const generateSerialNumber = useCallback40(
4887
4893
  async ({
4888
4894
  kwargs,
4889
4895
  context,
@@ -4921,11 +4927,11 @@ function useActionService() {
4921
4927
  }
4922
4928
 
4923
4929
  // src/services/auth-service/index.ts
4924
- import { useCallback as useCallback40 } from "react";
4930
+ import { useCallback as useCallback41 } from "react";
4925
4931
  function useAuthService() {
4926
4932
  const { env } = useEnv();
4927
4933
  const supabase = useSupabaseOptional();
4928
- const login = useCallback40(
4934
+ const login = useCallback41(
4929
4935
  async (body) => {
4930
4936
  const payload = Object.fromEntries(
4931
4937
  Object.entries({
@@ -4950,7 +4956,7 @@ function useAuthService() {
4950
4956
  },
4951
4957
  [env]
4952
4958
  );
4953
- const loginSupabase = useCallback40(
4959
+ const loginSupabase = useCallback41(
4954
4960
  async (body) => {
4955
4961
  if (!supabase) {
4956
4962
  return {
@@ -4966,7 +4972,7 @@ function useAuthService() {
4966
4972
  },
4967
4973
  [supabase]
4968
4974
  );
4969
- const forgotPassword = useCallback40(
4975
+ const forgotPassword = useCallback41(
4970
4976
  async (email) => {
4971
4977
  const bodyData = {
4972
4978
  login: email,
@@ -4980,7 +4986,7 @@ function useAuthService() {
4980
4986
  },
4981
4987
  [env]
4982
4988
  );
4983
- const forgotPasswordSSO = useCallback40(
4989
+ const forgotPasswordSSO = useCallback41(
4984
4990
  async ({
4985
4991
  email,
4986
4992
  with_context,
@@ -5003,7 +5009,7 @@ function useAuthService() {
5003
5009
  },
5004
5010
  [env]
5005
5011
  );
5006
- const resetPassword = useCallback40(
5012
+ const resetPassword = useCallback41(
5007
5013
  async (data, token) => {
5008
5014
  const bodyData = {
5009
5015
  token,
@@ -5018,7 +5024,7 @@ function useAuthService() {
5018
5024
  },
5019
5025
  [env]
5020
5026
  );
5021
- const resetPasswordSSO = useCallback40(
5027
+ const resetPasswordSSO = useCallback41(
5022
5028
  async ({
5023
5029
  method,
5024
5030
  password,
@@ -5041,7 +5047,7 @@ function useAuthService() {
5041
5047
  },
5042
5048
  [env]
5043
5049
  );
5044
- const updatePassword = useCallback40(
5050
+ const updatePassword = useCallback41(
5045
5051
  async (data, token) => {
5046
5052
  const bodyData = {
5047
5053
  token,
@@ -5056,7 +5062,7 @@ function useAuthService() {
5056
5062
  },
5057
5063
  [env]
5058
5064
  );
5059
- const isValidToken = useCallback40(
5065
+ const isValidToken = useCallback41(
5060
5066
  async (token) => {
5061
5067
  const bodyData = {
5062
5068
  token
@@ -5069,7 +5075,7 @@ function useAuthService() {
5069
5075
  },
5070
5076
  [env]
5071
5077
  );
5072
- const isValidActionToken = useCallback40(
5078
+ const isValidActionToken = useCallback41(
5073
5079
  async (actionToken) => {
5074
5080
  const bodyData = {};
5075
5081
  return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
@@ -5082,7 +5088,7 @@ function useAuthService() {
5082
5088
  },
5083
5089
  [env]
5084
5090
  );
5085
- const loginSocial = useCallback40(
5091
+ const loginSocial = useCallback41(
5086
5092
  async ({
5087
5093
  db,
5088
5094
  state,
@@ -5100,13 +5106,13 @@ function useAuthService() {
5100
5106
  },
5101
5107
  [env]
5102
5108
  );
5103
- const getProviders = useCallback40(
5109
+ const getProviders = useCallback41(
5104
5110
  async (db) => {
5105
5111
  return env?.requests?.get("/oauth/providers", { params: { db } });
5106
5112
  },
5107
5113
  [env]
5108
5114
  );
5109
- const getAccessByCode = useCallback40(
5115
+ const getAccessByCode = useCallback41(
5110
5116
  async (code) => {
5111
5117
  const data = new URLSearchParams();
5112
5118
  data.append("code", code);
@@ -5126,7 +5132,7 @@ function useAuthService() {
5126
5132
  },
5127
5133
  [env]
5128
5134
  );
5129
- const logout = useCallback40(
5135
+ const logout = useCallback41(
5130
5136
  async (service) => {
5131
5137
  return env?.requests?.post(
5132
5138
  "/logout" /* LOGOUT */,
@@ -5143,7 +5149,7 @@ function useAuthService() {
5143
5149
  },
5144
5150
  [env]
5145
5151
  );
5146
- const getTenantMapping = useCallback40(
5152
+ const getTenantMapping = useCallback41(
5147
5153
  async ({ shortName, service }) => {
5148
5154
  const bodyData = {
5149
5155
  short_name: shortName
@@ -5161,7 +5167,7 @@ function useAuthService() {
5161
5167
  },
5162
5168
  [env]
5163
5169
  );
5164
- const getToken = useCallback40(
5170
+ const getToken = useCallback41(
5165
5171
  async ({
5166
5172
  phone,
5167
5173
  name,
@@ -5206,10 +5212,10 @@ function useAuthService() {
5206
5212
  }
5207
5213
 
5208
5214
  // src/services/company-service/index.ts
5209
- import { useCallback as useCallback41 } from "react";
5215
+ import { useCallback as useCallback42 } from "react";
5210
5216
  function useCompanyService() {
5211
5217
  const { env } = useEnv();
5212
- const getCurrentCompany = useCallback41(
5218
+ const getCurrentCompany = useCallback42(
5213
5219
  async (service, extraHeaders) => {
5214
5220
  return await env.requests.get(
5215
5221
  "/company" /* COMPANY_PATH */,
@@ -5226,7 +5232,7 @@ function useCompanyService() {
5226
5232
  },
5227
5233
  [env]
5228
5234
  );
5229
- const getInfoCompany = useCallback41(
5235
+ const getInfoCompany = useCallback42(
5230
5236
  async (id, service) => {
5231
5237
  const jsonData = {
5232
5238
  ids: [id],
@@ -5262,10 +5268,10 @@ function useCompanyService() {
5262
5268
  }
5263
5269
 
5264
5270
  // src/services/excel-service/index.ts
5265
- import { useCallback as useCallback42 } from "react";
5271
+ import { useCallback as useCallback43 } from "react";
5266
5272
  function useExcelService() {
5267
5273
  const { env } = useEnv();
5268
- const uploadFileExcel = useCallback42(
5274
+ const uploadFileExcel = useCallback43(
5269
5275
  async ({
5270
5276
  formData,
5271
5277
  service,
@@ -5282,7 +5288,7 @@ function useExcelService() {
5282
5288
  },
5283
5289
  [env]
5284
5290
  );
5285
- const uploadIdFile = useCallback42(
5291
+ const uploadIdFile = useCallback43(
5286
5292
  async ({
5287
5293
  formData,
5288
5294
  service,
@@ -5299,7 +5305,7 @@ function useExcelService() {
5299
5305
  },
5300
5306
  [env]
5301
5307
  );
5302
- const parsePreview = useCallback42(
5308
+ const parsePreview = useCallback43(
5303
5309
  async ({
5304
5310
  id,
5305
5311
  selectedSheet,
@@ -5348,7 +5354,7 @@ function useExcelService() {
5348
5354
  },
5349
5355
  [env]
5350
5356
  );
5351
- const executeImport = useCallback42(
5357
+ const executeImport = useCallback43(
5352
5358
  async ({
5353
5359
  columns,
5354
5360
  fields,
@@ -5382,7 +5388,7 @@ function useExcelService() {
5382
5388
  },
5383
5389
  [env]
5384
5390
  );
5385
- const getFileExcel = useCallback42(
5391
+ const getFileExcel = useCallback43(
5386
5392
  async ({
5387
5393
  model,
5388
5394
  service,
@@ -5406,7 +5412,7 @@ function useExcelService() {
5406
5412
  },
5407
5413
  [env]
5408
5414
  );
5409
- const getFieldExport = useCallback42(
5415
+ const getFieldExport = useCallback43(
5410
5416
  async ({
5411
5417
  ids,
5412
5418
  model,
@@ -5446,7 +5452,7 @@ function useExcelService() {
5446
5452
  },
5447
5453
  [env]
5448
5454
  );
5449
- const exportExcel = useCallback42(
5455
+ const exportExcel = useCallback43(
5450
5456
  async ({
5451
5457
  model,
5452
5458
  domain,
@@ -5494,10 +5500,10 @@ function useExcelService() {
5494
5500
  }
5495
5501
 
5496
5502
  // src/services/form-service/index.ts
5497
- import { useCallback as useCallback43 } from "react";
5503
+ import { useCallback as useCallback44 } from "react";
5498
5504
  function useFormService() {
5499
5505
  const { env } = useEnv();
5500
- const getComment = useCallback43(
5506
+ const getComment = useCallback44(
5501
5507
  async ({ data }) => {
5502
5508
  const jsonData = {
5503
5509
  thread_id: data.thread_id,
@@ -5515,7 +5521,7 @@ function useFormService() {
5515
5521
  },
5516
5522
  [env]
5517
5523
  );
5518
- const getThreadData = useCallback43(
5524
+ const getThreadData = useCallback44(
5519
5525
  async ({
5520
5526
  data,
5521
5527
  xNode,
@@ -5542,7 +5548,7 @@ function useFormService() {
5542
5548
  },
5543
5549
  [env]
5544
5550
  );
5545
- const getThreadMessages = useCallback43(
5551
+ const getThreadMessages = useCallback44(
5546
5552
  async ({
5547
5553
  data,
5548
5554
  xNode,
@@ -5568,7 +5574,7 @@ function useFormService() {
5568
5574
  },
5569
5575
  [env]
5570
5576
  );
5571
- const sentComment = useCallback43(
5577
+ const sentComment = useCallback44(
5572
5578
  async ({ data }) => {
5573
5579
  const jsonData = {
5574
5580
  context: {
@@ -5596,7 +5602,7 @@ function useFormService() {
5596
5602
  },
5597
5603
  [env]
5598
5604
  );
5599
- const deleteComment = useCallback43(
5605
+ const deleteComment = useCallback44(
5600
5606
  async ({ data }) => {
5601
5607
  const jsonData = {
5602
5608
  attachment_ids: [],
@@ -5612,7 +5618,7 @@ function useFormService() {
5612
5618
  },
5613
5619
  [env]
5614
5620
  );
5615
- const getImage = useCallback43(
5621
+ const getImage = useCallback44(
5616
5622
  async ({ data }) => {
5617
5623
  return env.requests.get(
5618
5624
  `${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
@@ -5625,7 +5631,7 @@ function useFormService() {
5625
5631
  },
5626
5632
  [env]
5627
5633
  );
5628
- const uploadImage = useCallback43(
5634
+ const uploadImage = useCallback44(
5629
5635
  async ({
5630
5636
  formData,
5631
5637
  service,
@@ -5644,7 +5650,7 @@ function useFormService() {
5644
5650
  },
5645
5651
  [env]
5646
5652
  );
5647
- const uploadFile = useCallback43(
5653
+ const uploadFile = useCallback44(
5648
5654
  async ({
5649
5655
  formData,
5650
5656
  service,
@@ -5664,7 +5670,7 @@ function useFormService() {
5664
5670
  },
5665
5671
  [env]
5666
5672
  );
5667
- const getFormView = useCallback43(
5673
+ const getFormView = useCallback44(
5668
5674
  async ({ data }) => {
5669
5675
  const jsonData = {
5670
5676
  model: data.model,
@@ -5680,7 +5686,7 @@ function useFormService() {
5680
5686
  },
5681
5687
  [env]
5682
5688
  );
5683
- const changeStatus = useCallback43(
5689
+ const changeStatus = useCallback44(
5684
5690
  async ({ data }) => {
5685
5691
  const vals = {
5686
5692
  [data.name]: data.stage_id
@@ -5709,7 +5715,7 @@ function useFormService() {
5709
5715
  },
5710
5716
  [env]
5711
5717
  );
5712
- const getExternalTab = useCallback43(
5718
+ const getExternalTab = useCallback44(
5713
5719
  async ({ method, context, service, xNode }) => {
5714
5720
  return env?.requests?.post(
5715
5721
  "/call" /* CALL_PATH */,
@@ -5744,10 +5750,10 @@ function useFormService() {
5744
5750
  }
5745
5751
 
5746
5752
  // src/services/kanban-service/index.ts
5747
- import { useCallback as useCallback44 } from "react";
5753
+ import { useCallback as useCallback45 } from "react";
5748
5754
  function useKanbanService() {
5749
5755
  const { env } = useEnv();
5750
- const getGroups = useCallback44(
5756
+ const getGroups = useCallback45(
5751
5757
  async ({ model, width_context }) => {
5752
5758
  const jsonData = {
5753
5759
  model,
@@ -5767,7 +5773,7 @@ function useKanbanService() {
5767
5773
  },
5768
5774
  [env]
5769
5775
  );
5770
- const getProgressBar = useCallback44(
5776
+ const getProgressBar = useCallback45(
5771
5777
  async ({ field, color, model, width_context }) => {
5772
5778
  const jsonData = {
5773
5779
  model,
@@ -5797,10 +5803,10 @@ function useKanbanService() {
5797
5803
  }
5798
5804
 
5799
5805
  // src/services/model-service/index.ts
5800
- import { useCallback as useCallback45 } from "react";
5806
+ import { useCallback as useCallback46 } from "react";
5801
5807
  function useModelService() {
5802
5808
  const { env } = useEnv();
5803
- const getListMyBankAccount = useCallback45(
5809
+ const getListMyBankAccount = useCallback46(
5804
5810
  async ({
5805
5811
  domain,
5806
5812
  spectification,
@@ -5824,7 +5830,7 @@ function useModelService() {
5824
5830
  },
5825
5831
  [env]
5826
5832
  );
5827
- const getCurrency = useCallback45(async () => {
5833
+ const getCurrency = useCallback46(async () => {
5828
5834
  const jsonData = {
5829
5835
  model: "res.currency",
5830
5836
  method: "web_search_read",
@@ -5844,7 +5850,7 @@ function useModelService() {
5844
5850
  }
5845
5851
  });
5846
5852
  }, [env]);
5847
- const getConversionRate = useCallback45(async () => {
5853
+ const getConversionRate = useCallback46(async () => {
5848
5854
  const jsonData = {
5849
5855
  model: "res.currency",
5850
5856
  method: "web_search_read",
@@ -5870,7 +5876,7 @@ function useModelService() {
5870
5876
  }
5871
5877
  });
5872
5878
  }, [env]);
5873
- const getAll = useCallback45(
5879
+ const getAll = useCallback46(
5874
5880
  async ({
5875
5881
  data,
5876
5882
  service,
@@ -5912,7 +5918,7 @@ function useModelService() {
5912
5918
  },
5913
5919
  [env]
5914
5920
  );
5915
- const getListCalendar = useCallback45(
5921
+ const getListCalendar = useCallback46(
5916
5922
  async ({ data }) => {
5917
5923
  const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
5918
5924
  fields: data.fields,
@@ -5943,7 +5949,7 @@ function useModelService() {
5943
5949
  },
5944
5950
  [env]
5945
5951
  );
5946
- const getList = useCallback45(
5952
+ const getList = useCallback46(
5947
5953
  async ({
5948
5954
  model,
5949
5955
  ids = [],
@@ -5975,7 +5981,7 @@ function useModelService() {
5975
5981
  },
5976
5982
  [env]
5977
5983
  );
5978
- const getDetail = useCallback45(
5984
+ const getDetail = useCallback46(
5979
5985
  async ({
5980
5986
  ids = [],
5981
5987
  model,
@@ -6007,7 +6013,7 @@ function useModelService() {
6007
6013
  },
6008
6014
  [env]
6009
6015
  );
6010
- const save = useCallback45(
6016
+ const save = useCallback46(
6011
6017
  async ({
6012
6018
  model,
6013
6019
  ids = [],
@@ -6042,7 +6048,7 @@ function useModelService() {
6042
6048
  },
6043
6049
  [env]
6044
6050
  );
6045
- const deleteApi = useCallback45(
6051
+ const deleteApi = useCallback46(
6046
6052
  async ({ ids = [], model, service }) => {
6047
6053
  const jsonData = {
6048
6054
  model,
@@ -6062,7 +6068,7 @@ function useModelService() {
6062
6068
  },
6063
6069
  [env]
6064
6070
  );
6065
- const onChange = useCallback45(
6071
+ const onChange = useCallback46(
6066
6072
  async ({
6067
6073
  ids = [],
6068
6074
  model,
@@ -6098,7 +6104,7 @@ function useModelService() {
6098
6104
  },
6099
6105
  [env]
6100
6106
  );
6101
- const getListFieldsOnchange = useCallback45(
6107
+ const getListFieldsOnchange = useCallback46(
6102
6108
  async ({
6103
6109
  model,
6104
6110
  service,
@@ -6122,7 +6128,7 @@ function useModelService() {
6122
6128
  },
6123
6129
  [env]
6124
6130
  );
6125
- const parseORMOdoo = useCallback45((data) => {
6131
+ const parseORMOdoo = useCallback46((data) => {
6126
6132
  for (const key in data) {
6127
6133
  if (key === "display_name") {
6128
6134
  delete data[key];
@@ -6133,7 +6139,7 @@ function useModelService() {
6133
6139
  }
6134
6140
  return { ...data };
6135
6141
  }, []);
6136
- const toDataJS = useCallback45(
6142
+ const toDataJS = useCallback46(
6137
6143
  (data, viewData, model) => {
6138
6144
  for (const key in data) {
6139
6145
  if (data[key] === false) {
@@ -6191,10 +6197,10 @@ function useModelService() {
6191
6197
  }
6192
6198
 
6193
6199
  // src/services/user-service/index.ts
6194
- import { useCallback as useCallback46 } from "react";
6200
+ import { useCallback as useCallback47 } from "react";
6195
6201
  function useUserService() {
6196
6202
  const { env } = useEnv();
6197
- const getProfile = useCallback46(
6203
+ const getProfile = useCallback47(
6198
6204
  async (service, path, extraHeaders) => {
6199
6205
  return env?.requests?.get(
6200
6206
  path || "/userinfo" /* PROFILE_PATH */,
@@ -6211,7 +6217,7 @@ function useUserService() {
6211
6217
  },
6212
6218
  [env]
6213
6219
  );
6214
- const getUser = useCallback46(
6220
+ const getUser = useCallback47(
6215
6221
  async ({ context, id }) => {
6216
6222
  const jsonData = {
6217
6223
  model: "res.users",
@@ -6249,7 +6255,7 @@ function useUserService() {
6249
6255
  },
6250
6256
  [env]
6251
6257
  );
6252
- const switchUserLocale = useCallback46(
6258
+ const switchUserLocale = useCallback47(
6253
6259
  async ({ id, values, service }) => {
6254
6260
  const jsonData = {
6255
6261
  model: "res.users",
@@ -6277,10 +6283,10 @@ function useUserService() {
6277
6283
  }
6278
6284
 
6279
6285
  // src/services/view-service/index.ts
6280
- import { useCallback as useCallback47 } from "react";
6286
+ import { useCallback as useCallback48 } from "react";
6281
6287
  function useViewService() {
6282
6288
  const { env } = useEnv();
6283
- const getView = useCallback47(
6289
+ const getView = useCallback48(
6284
6290
  async ({
6285
6291
  model,
6286
6292
  views,
@@ -6320,7 +6326,7 @@ function useViewService() {
6320
6326
  },
6321
6327
  [env]
6322
6328
  );
6323
- const getMenu = useCallback47(
6329
+ const getMenu = useCallback48(
6324
6330
  async (context, specification, domain, service) => {
6325
6331
  const jsonData = {
6326
6332
  model: "ir.ui.menu" /* MENU */,
@@ -6351,7 +6357,7 @@ function useViewService() {
6351
6357
  },
6352
6358
  [env]
6353
6359
  );
6354
- const getActionDetail = useCallback47(
6360
+ const getActionDetail = useCallback48(
6355
6361
  async (aid, context) => {
6356
6362
  const jsonData = {
6357
6363
  model: "ir.actions.act_window" /* WINDOW_ACTION */,
@@ -6381,7 +6387,7 @@ function useViewService() {
6381
6387
  },
6382
6388
  [env]
6383
6389
  );
6384
- const getResequence = useCallback47(
6390
+ const getResequence = useCallback48(
6385
6391
  async ({
6386
6392
  model,
6387
6393
  ids,
@@ -6411,7 +6417,7 @@ function useViewService() {
6411
6417
  },
6412
6418
  [env]
6413
6419
  );
6414
- const getSelectionItem = useCallback47(
6420
+ const getSelectionItem = useCallback48(
6415
6421
  async ({
6416
6422
  data,
6417
6423
  service,
@@ -6448,7 +6454,7 @@ function useViewService() {
6448
6454
  },
6449
6455
  [env]
6450
6456
  );
6451
- const loadMessages = useCallback47(async () => {
6457
+ const loadMessages = useCallback48(async () => {
6452
6458
  return env.requests.post(
6453
6459
  "/load_message_failures" /* LOAD_MESSAGE */,
6454
6460
  {},
@@ -6459,14 +6465,14 @@ function useViewService() {
6459
6465
  }
6460
6466
  );
6461
6467
  }, [env]);
6462
- const getVersion = useCallback47(async () => {
6468
+ const getVersion = useCallback48(async () => {
6463
6469
  return env?.requests?.get("", {
6464
6470
  headers: {
6465
6471
  "Content-Type": "application/json"
6466
6472
  }
6467
6473
  });
6468
6474
  }, [env]);
6469
- const grantAccess = useCallback47(
6475
+ const grantAccess = useCallback48(
6470
6476
  async ({
6471
6477
  redirect_uri,
6472
6478
  state,
@@ -6493,7 +6499,7 @@ function useViewService() {
6493
6499
  },
6494
6500
  [env]
6495
6501
  );
6496
- const removeTotpSetUp = useCallback47(
6502
+ const removeTotpSetUp = useCallback48(
6497
6503
  async ({ method, token }) => {
6498
6504
  const jsonData = {
6499
6505
  method,
@@ -6514,7 +6520,7 @@ function useViewService() {
6514
6520
  },
6515
6521
  [env]
6516
6522
  );
6517
- const requestSetupTotp = useCallback47(
6523
+ const requestSetupTotp = useCallback48(
6518
6524
  async ({ method, token }) => {
6519
6525
  const jsonData = {
6520
6526
  method,
@@ -6533,7 +6539,7 @@ function useViewService() {
6533
6539
  },
6534
6540
  [env]
6535
6541
  );
6536
- const settingsWebRead2fa = useCallback47(
6542
+ const settingsWebRead2fa = useCallback48(
6537
6543
  async ({
6538
6544
  method,
6539
6545
  model,
@@ -6561,7 +6567,7 @@ function useViewService() {
6561
6567
  },
6562
6568
  [env]
6563
6569
  );
6564
- const signInSSO = useCallback47(
6570
+ const signInSSO = useCallback48(
6565
6571
  async ({
6566
6572
  redirect_uri,
6567
6573
  state,
@@ -6593,7 +6599,7 @@ function useViewService() {
6593
6599
  },
6594
6600
  [env]
6595
6601
  );
6596
- const verify2FA = useCallback47(
6602
+ const verify2FA = useCallback48(
6597
6603
  ({
6598
6604
  method,
6599
6605
  with_context,
@@ -6626,7 +6632,7 @@ function useViewService() {
6626
6632
  },
6627
6633
  [env]
6628
6634
  );
6629
- const get2FAMethods = useCallback47(
6635
+ const get2FAMethods = useCallback48(
6630
6636
  ({ method, with_context }) => {
6631
6637
  const jsonData = {
6632
6638
  method,
@@ -6645,7 +6651,7 @@ function useViewService() {
6645
6651
  },
6646
6652
  [env]
6647
6653
  );
6648
- const verifyTotp = useCallback47(
6654
+ const verifyTotp = useCallback48(
6649
6655
  ({
6650
6656
  method,
6651
6657
  action_token,
@@ -6670,7 +6676,7 @@ function useViewService() {
6670
6676
  },
6671
6677
  [env]
6672
6678
  );
6673
- const getNotifications = useCallback47(
6679
+ const getNotifications = useCallback48(
6674
6680
  async ({
6675
6681
  service,
6676
6682
  xNode,
@@ -6690,7 +6696,7 @@ function useViewService() {
6690
6696
  },
6691
6697
  [env]
6692
6698
  );
6693
- const getCountry = useCallback47(
6699
+ const getCountry = useCallback48(
6694
6700
  async ({
6695
6701
  service,
6696
6702
  xNode,
@@ -6717,7 +6723,7 @@ function useViewService() {
6717
6723
  },
6718
6724
  [env]
6719
6725
  );
6720
- const getCity = useCallback47(
6726
+ const getCity = useCallback48(
6721
6727
  async ({
6722
6728
  service,
6723
6729
  xNode,
@@ -6744,7 +6750,7 @@ function useViewService() {
6744
6750
  },
6745
6751
  [env]
6746
6752
  );
6747
- const getWard = useCallback47(
6753
+ const getWard = useCallback48(
6748
6754
  async ({
6749
6755
  service,
6750
6756
  xNode,
@@ -6769,7 +6775,7 @@ function useViewService() {
6769
6775
  },
6770
6776
  [env]
6771
6777
  );
6772
- const getPartnerTitle = useCallback47(
6778
+ const getPartnerTitle = useCallback48(
6773
6779
  async ({
6774
6780
  service,
6775
6781
  xNode,
@@ -6821,10 +6827,10 @@ function useViewService() {
6821
6827
  }
6822
6828
 
6823
6829
  // src/services/dashboard-service/index.ts
6824
- import { useCallback as useCallback48 } from "react";
6830
+ import { useCallback as useCallback49 } from "react";
6825
6831
  function useDashboardService() {
6826
6832
  const { env } = useEnv();
6827
- const readGroup = useCallback48(
6833
+ const readGroup = useCallback49(
6828
6834
  async ({
6829
6835
  service,
6830
6836
  xNode,
@@ -6841,7 +6847,7 @@ function useDashboardService() {
6841
6847
  },
6842
6848
  [env]
6843
6849
  );
6844
- const getDataChart = useCallback48(
6850
+ const getDataChart = useCallback49(
6845
6851
  async ({
6846
6852
  service,
6847
6853
  xNode,