@fctc/interface-logic 4.7.6 → 4.7.8

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) => {
@@ -4565,7 +4565,8 @@ var createOrderSupabaseService = () => {
4565
4565
  amount_paid: values.amount_paid,
4566
4566
  amount_return: values.amount_return,
4567
4567
  table_id: values.table_id,
4568
- partner_id: values.partner_id
4568
+ partner_id: values.partner_id,
4569
+ date_order: (/* @__PURE__ */ new Date()).toISOString()
4569
4570
  }).select("id, pos_reference").single();
4570
4571
  if (error) {
4571
4572
  console.error("Error creating order:", error);
@@ -4786,6 +4787,37 @@ var deleteOrderLineSupabaseService = () => {
4786
4787
  };
4787
4788
  };
4788
4789
 
4790
+ // src/services/pos-service/supabase/add-category.ts
4791
+ import { useCallback as useCallback46 } from "react";
4792
+ var addCategorySupabaseService = () => {
4793
+ const supabase = useSupabaseOptional();
4794
+ const addCategorySupabase = useCallback46(
4795
+ async (values) => {
4796
+ if (!supabase) {
4797
+ console.error("Supabase client not initialized");
4798
+ return null;
4799
+ }
4800
+ try {
4801
+ const { data, error } = await supabase.from("pos_categories" /* POS_CATEGORIES */).insert({
4802
+ name: values.name
4803
+ }).select("id, name").single();
4804
+ if (error) {
4805
+ console.error("Error adding Category:", error);
4806
+ return null;
4807
+ }
4808
+ return [[data.id, data.name]];
4809
+ } catch (error) {
4810
+ console.error("Error adding Category:", error);
4811
+ return null;
4812
+ }
4813
+ },
4814
+ [supabase]
4815
+ );
4816
+ return {
4817
+ addCategorySupabase
4818
+ };
4819
+ };
4820
+
4789
4821
  // src/services/pos-service/index.ts
4790
4822
  var serviceFactories = [
4791
4823
  addEntityService,
@@ -4824,6 +4856,7 @@ var serviceFactories = [
4824
4856
  updateTableSupabaseService,
4825
4857
  deleteFloorSupabaseService,
4826
4858
  deleteTableSupabaseService,
4859
+ addCategorySupabaseService,
4827
4860
  createOrderSupabaseService,
4828
4861
  addProductToOrderSupabaseService,
4829
4862
  updateOrderTotalAmountSupabaseService,
@@ -4950,24 +4983,27 @@ import { useMutation as useMutation93 } from "@tanstack/react-query";
4950
4983
  // src/hooks/pos/supabase/use-create-order.ts
4951
4984
  import { useMutation as useMutation94 } from "@tanstack/react-query";
4952
4985
 
4953
- // src/hooks/pos/supabase/use-add-product-to-order.ts
4986
+ // src/hooks/pos/supabase/use-add-category.ts
4954
4987
  import { useMutation as useMutation95 } from "@tanstack/react-query";
4955
4988
 
4956
- // src/hooks/pos/supabase/use-update-order-total-amount.ts
4989
+ // src/hooks/pos/supabase/use-add-product-to-order.ts
4957
4990
  import { useMutation as useMutation96 } from "@tanstack/react-query";
4958
4991
 
4959
- // src/hooks/pos/supabase/use-update-order-line.ts
4992
+ // src/hooks/pos/supabase/use-update-order-total-amount.ts
4960
4993
  import { useMutation as useMutation97 } from "@tanstack/react-query";
4961
4994
 
4962
- // src/hooks/pos/supabase/use-update-order.ts
4995
+ // src/hooks/pos/supabase/use-update-order-line.ts
4963
4996
  import { useMutation as useMutation98 } from "@tanstack/react-query";
4964
4997
 
4965
- // src/hooks/pos/supabase/use-delete-order.ts
4998
+ // src/hooks/pos/supabase/use-update-order.ts
4966
4999
  import { useMutation as useMutation99 } from "@tanstack/react-query";
4967
5000
 
4968
- // src/hooks/pos/supabase/use-delete-order-line.ts
5001
+ // src/hooks/pos/supabase/use-delete-order.ts
4969
5002
  import { useMutation as useMutation100 } from "@tanstack/react-query";
4970
5003
 
5004
+ // src/hooks/pos/supabase/use-delete-order-line.ts
5005
+ import { useMutation as useMutation101 } from "@tanstack/react-query";
5006
+
4971
5007
  // src/provider/service-provider.tsx
4972
5008
  import { jsx as jsx7 } from "react/jsx-runtime";
4973
5009
  var ServiceContext = createContext3(null);
@@ -4979,7 +5015,7 @@ import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
4979
5015
  // src/services/action-service/index.ts
4980
5016
  function useActionService() {
4981
5017
  const { env } = useEnv();
4982
- const loadAction = useCallback46(
5018
+ const loadAction = useCallback47(
4983
5019
  async ({
4984
5020
  idAction,
4985
5021
  context,
@@ -5003,7 +5039,7 @@ function useActionService() {
5003
5039
  },
5004
5040
  [env]
5005
5041
  );
5006
- const callButton = useCallback46(
5042
+ const callButton = useCallback47(
5007
5043
  async ({
5008
5044
  model,
5009
5045
  ids = [],
@@ -5037,7 +5073,7 @@ function useActionService() {
5037
5073
  },
5038
5074
  [env]
5039
5075
  );
5040
- const removeRows = useCallback46(
5076
+ const removeRows = useCallback47(
5041
5077
  async ({
5042
5078
  model,
5043
5079
  ids,
@@ -5063,7 +5099,7 @@ function useActionService() {
5063
5099
  },
5064
5100
  [env]
5065
5101
  );
5066
- const duplicateRecord = useCallback46(
5102
+ const duplicateRecord = useCallback47(
5067
5103
  async ({
5068
5104
  model,
5069
5105
  id,
@@ -5089,7 +5125,7 @@ function useActionService() {
5089
5125
  },
5090
5126
  [env]
5091
5127
  );
5092
- const getPrintReportName = useCallback46(
5128
+ const getPrintReportName = useCallback47(
5093
5129
  async ({ id }) => {
5094
5130
  const jsonData = {
5095
5131
  model: "ir.actions.report",
@@ -5107,7 +5143,7 @@ function useActionService() {
5107
5143
  },
5108
5144
  [env]
5109
5145
  );
5110
- const print = useCallback46(
5146
+ const print = useCallback47(
5111
5147
  async ({ id, report, db }) => {
5112
5148
  const jsonData = {
5113
5149
  report,
@@ -5125,7 +5161,7 @@ function useActionService() {
5125
5161
  },
5126
5162
  [env]
5127
5163
  );
5128
- const runAction = useCallback46(
5164
+ const runAction = useCallback47(
5129
5165
  async ({
5130
5166
  idAction,
5131
5167
  context,
@@ -5152,7 +5188,7 @@ function useActionService() {
5152
5188
  },
5153
5189
  [env]
5154
5190
  );
5155
- const generateSerialNumber = useCallback46(
5191
+ const generateSerialNumber = useCallback47(
5156
5192
  async ({
5157
5193
  kwargs,
5158
5194
  context,
@@ -5190,11 +5226,11 @@ function useActionService() {
5190
5226
  }
5191
5227
 
5192
5228
  // src/services/auth-service/index.ts
5193
- import { useCallback as useCallback47 } from "react";
5229
+ import { useCallback as useCallback48 } from "react";
5194
5230
  function useAuthService() {
5195
5231
  const { env } = useEnv();
5196
5232
  const supabase = useSupabaseOptional();
5197
- const login = useCallback47(
5233
+ const login = useCallback48(
5198
5234
  async (body) => {
5199
5235
  const payload = Object.fromEntries(
5200
5236
  Object.entries({
@@ -5219,7 +5255,7 @@ function useAuthService() {
5219
5255
  },
5220
5256
  [env]
5221
5257
  );
5222
- const loginSupabase = useCallback47(
5258
+ const loginSupabase = useCallback48(
5223
5259
  async (body) => {
5224
5260
  if (!supabase) {
5225
5261
  return {
@@ -5235,7 +5271,7 @@ function useAuthService() {
5235
5271
  },
5236
5272
  [supabase]
5237
5273
  );
5238
- const forgotPassword = useCallback47(
5274
+ const forgotPassword = useCallback48(
5239
5275
  async (email) => {
5240
5276
  const bodyData = {
5241
5277
  login: email,
@@ -5249,7 +5285,7 @@ function useAuthService() {
5249
5285
  },
5250
5286
  [env]
5251
5287
  );
5252
- const forgotPasswordSSO = useCallback47(
5288
+ const forgotPasswordSSO = useCallback48(
5253
5289
  async ({
5254
5290
  email,
5255
5291
  with_context,
@@ -5272,7 +5308,7 @@ function useAuthService() {
5272
5308
  },
5273
5309
  [env]
5274
5310
  );
5275
- const resetPassword = useCallback47(
5311
+ const resetPassword = useCallback48(
5276
5312
  async (data, token) => {
5277
5313
  const bodyData = {
5278
5314
  token,
@@ -5287,7 +5323,7 @@ function useAuthService() {
5287
5323
  },
5288
5324
  [env]
5289
5325
  );
5290
- const resetPasswordSSO = useCallback47(
5326
+ const resetPasswordSSO = useCallback48(
5291
5327
  async ({
5292
5328
  method,
5293
5329
  password,
@@ -5310,7 +5346,7 @@ function useAuthService() {
5310
5346
  },
5311
5347
  [env]
5312
5348
  );
5313
- const updatePassword = useCallback47(
5349
+ const updatePassword = useCallback48(
5314
5350
  async (data, token) => {
5315
5351
  const bodyData = {
5316
5352
  token,
@@ -5325,7 +5361,7 @@ function useAuthService() {
5325
5361
  },
5326
5362
  [env]
5327
5363
  );
5328
- const isValidToken = useCallback47(
5364
+ const isValidToken = useCallback48(
5329
5365
  async (token) => {
5330
5366
  const bodyData = {
5331
5367
  token
@@ -5338,7 +5374,7 @@ function useAuthService() {
5338
5374
  },
5339
5375
  [env]
5340
5376
  );
5341
- const isValidActionToken = useCallback47(
5377
+ const isValidActionToken = useCallback48(
5342
5378
  async (actionToken) => {
5343
5379
  const bodyData = {};
5344
5380
  return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
@@ -5351,7 +5387,7 @@ function useAuthService() {
5351
5387
  },
5352
5388
  [env]
5353
5389
  );
5354
- const loginSocial = useCallback47(
5390
+ const loginSocial = useCallback48(
5355
5391
  async ({
5356
5392
  db,
5357
5393
  state,
@@ -5369,13 +5405,13 @@ function useAuthService() {
5369
5405
  },
5370
5406
  [env]
5371
5407
  );
5372
- const getProviders = useCallback47(
5408
+ const getProviders = useCallback48(
5373
5409
  async (db) => {
5374
5410
  return env?.requests?.get("/oauth/providers", { params: { db } });
5375
5411
  },
5376
5412
  [env]
5377
5413
  );
5378
- const getAccessByCode = useCallback47(
5414
+ const getAccessByCode = useCallback48(
5379
5415
  async (code) => {
5380
5416
  const data = new URLSearchParams();
5381
5417
  data.append("code", code);
@@ -5395,7 +5431,7 @@ function useAuthService() {
5395
5431
  },
5396
5432
  [env]
5397
5433
  );
5398
- const logout = useCallback47(
5434
+ const logout = useCallback48(
5399
5435
  async (service) => {
5400
5436
  return env?.requests?.post(
5401
5437
  "/logout" /* LOGOUT */,
@@ -5412,7 +5448,7 @@ function useAuthService() {
5412
5448
  },
5413
5449
  [env]
5414
5450
  );
5415
- const getTenantMapping = useCallback47(
5451
+ const getTenantMapping = useCallback48(
5416
5452
  async ({ shortName, service }) => {
5417
5453
  const bodyData = {
5418
5454
  short_name: shortName
@@ -5430,7 +5466,7 @@ function useAuthService() {
5430
5466
  },
5431
5467
  [env]
5432
5468
  );
5433
- const getToken = useCallback47(
5469
+ const getToken = useCallback48(
5434
5470
  async ({
5435
5471
  phone,
5436
5472
  name,
@@ -5475,10 +5511,10 @@ function useAuthService() {
5475
5511
  }
5476
5512
 
5477
5513
  // src/services/company-service/index.ts
5478
- import { useCallback as useCallback48 } from "react";
5514
+ import { useCallback as useCallback49 } from "react";
5479
5515
  function useCompanyService() {
5480
5516
  const { env } = useEnv();
5481
- const getCurrentCompany = useCallback48(
5517
+ const getCurrentCompany = useCallback49(
5482
5518
  async (service, extraHeaders) => {
5483
5519
  return await env.requests.get(
5484
5520
  "/company" /* COMPANY_PATH */,
@@ -5495,7 +5531,7 @@ function useCompanyService() {
5495
5531
  },
5496
5532
  [env]
5497
5533
  );
5498
- const getInfoCompany = useCallback48(
5534
+ const getInfoCompany = useCallback49(
5499
5535
  async (id, service) => {
5500
5536
  const jsonData = {
5501
5537
  ids: [id],
@@ -5531,10 +5567,10 @@ function useCompanyService() {
5531
5567
  }
5532
5568
 
5533
5569
  // src/services/excel-service/index.ts
5534
- import { useCallback as useCallback49 } from "react";
5570
+ import { useCallback as useCallback50 } from "react";
5535
5571
  function useExcelService() {
5536
5572
  const { env } = useEnv();
5537
- const uploadFileExcel = useCallback49(
5573
+ const uploadFileExcel = useCallback50(
5538
5574
  async ({
5539
5575
  formData,
5540
5576
  service,
@@ -5551,7 +5587,7 @@ function useExcelService() {
5551
5587
  },
5552
5588
  [env]
5553
5589
  );
5554
- const uploadIdFile = useCallback49(
5590
+ const uploadIdFile = useCallback50(
5555
5591
  async ({
5556
5592
  formData,
5557
5593
  service,
@@ -5568,7 +5604,7 @@ function useExcelService() {
5568
5604
  },
5569
5605
  [env]
5570
5606
  );
5571
- const parsePreview = useCallback49(
5607
+ const parsePreview = useCallback50(
5572
5608
  async ({
5573
5609
  id,
5574
5610
  selectedSheet,
@@ -5617,7 +5653,7 @@ function useExcelService() {
5617
5653
  },
5618
5654
  [env]
5619
5655
  );
5620
- const executeImport = useCallback49(
5656
+ const executeImport = useCallback50(
5621
5657
  async ({
5622
5658
  columns,
5623
5659
  fields,
@@ -5651,7 +5687,7 @@ function useExcelService() {
5651
5687
  },
5652
5688
  [env]
5653
5689
  );
5654
- const getFileExcel = useCallback49(
5690
+ const getFileExcel = useCallback50(
5655
5691
  async ({
5656
5692
  model,
5657
5693
  service,
@@ -5675,7 +5711,7 @@ function useExcelService() {
5675
5711
  },
5676
5712
  [env]
5677
5713
  );
5678
- const getFieldExport = useCallback49(
5714
+ const getFieldExport = useCallback50(
5679
5715
  async ({
5680
5716
  ids,
5681
5717
  model,
@@ -5715,7 +5751,7 @@ function useExcelService() {
5715
5751
  },
5716
5752
  [env]
5717
5753
  );
5718
- const exportExcel = useCallback49(
5754
+ const exportExcel = useCallback50(
5719
5755
  async ({
5720
5756
  model,
5721
5757
  domain,
@@ -5763,10 +5799,10 @@ function useExcelService() {
5763
5799
  }
5764
5800
 
5765
5801
  // src/services/form-service/index.ts
5766
- import { useCallback as useCallback50 } from "react";
5802
+ import { useCallback as useCallback51 } from "react";
5767
5803
  function useFormService() {
5768
5804
  const { env } = useEnv();
5769
- const getComment = useCallback50(
5805
+ const getComment = useCallback51(
5770
5806
  async ({ data }) => {
5771
5807
  const jsonData = {
5772
5808
  thread_id: data.thread_id,
@@ -5784,7 +5820,7 @@ function useFormService() {
5784
5820
  },
5785
5821
  [env]
5786
5822
  );
5787
- const getThreadData = useCallback50(
5823
+ const getThreadData = useCallback51(
5788
5824
  async ({
5789
5825
  data,
5790
5826
  xNode,
@@ -5811,7 +5847,7 @@ function useFormService() {
5811
5847
  },
5812
5848
  [env]
5813
5849
  );
5814
- const getThreadMessages = useCallback50(
5850
+ const getThreadMessages = useCallback51(
5815
5851
  async ({
5816
5852
  data,
5817
5853
  xNode,
@@ -5837,7 +5873,7 @@ function useFormService() {
5837
5873
  },
5838
5874
  [env]
5839
5875
  );
5840
- const sentComment = useCallback50(
5876
+ const sentComment = useCallback51(
5841
5877
  async ({ data }) => {
5842
5878
  const jsonData = {
5843
5879
  context: {
@@ -5865,7 +5901,7 @@ function useFormService() {
5865
5901
  },
5866
5902
  [env]
5867
5903
  );
5868
- const deleteComment = useCallback50(
5904
+ const deleteComment = useCallback51(
5869
5905
  async ({ data }) => {
5870
5906
  const jsonData = {
5871
5907
  attachment_ids: [],
@@ -5881,7 +5917,7 @@ function useFormService() {
5881
5917
  },
5882
5918
  [env]
5883
5919
  );
5884
- const getImage = useCallback50(
5920
+ const getImage = useCallback51(
5885
5921
  async ({ data }) => {
5886
5922
  return env.requests.get(
5887
5923
  `${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
@@ -5894,7 +5930,7 @@ function useFormService() {
5894
5930
  },
5895
5931
  [env]
5896
5932
  );
5897
- const uploadImage = useCallback50(
5933
+ const uploadImage = useCallback51(
5898
5934
  async ({
5899
5935
  formData,
5900
5936
  service,
@@ -5913,7 +5949,7 @@ function useFormService() {
5913
5949
  },
5914
5950
  [env]
5915
5951
  );
5916
- const uploadFile = useCallback50(
5952
+ const uploadFile = useCallback51(
5917
5953
  async ({
5918
5954
  formData,
5919
5955
  service,
@@ -5933,7 +5969,7 @@ function useFormService() {
5933
5969
  },
5934
5970
  [env]
5935
5971
  );
5936
- const getFormView = useCallback50(
5972
+ const getFormView = useCallback51(
5937
5973
  async ({ data }) => {
5938
5974
  const jsonData = {
5939
5975
  model: data.model,
@@ -5949,7 +5985,7 @@ function useFormService() {
5949
5985
  },
5950
5986
  [env]
5951
5987
  );
5952
- const changeStatus = useCallback50(
5988
+ const changeStatus = useCallback51(
5953
5989
  async ({ data }) => {
5954
5990
  const vals = {
5955
5991
  [data.name]: data.stage_id
@@ -5978,7 +6014,7 @@ function useFormService() {
5978
6014
  },
5979
6015
  [env]
5980
6016
  );
5981
- const getExternalTab = useCallback50(
6017
+ const getExternalTab = useCallback51(
5982
6018
  async ({ method, context, service, xNode }) => {
5983
6019
  return env?.requests?.post(
5984
6020
  "/call" /* CALL_PATH */,
@@ -6013,10 +6049,10 @@ function useFormService() {
6013
6049
  }
6014
6050
 
6015
6051
  // src/services/kanban-service/index.ts
6016
- import { useCallback as useCallback51 } from "react";
6052
+ import { useCallback as useCallback52 } from "react";
6017
6053
  function useKanbanService() {
6018
6054
  const { env } = useEnv();
6019
- const getGroups = useCallback51(
6055
+ const getGroups = useCallback52(
6020
6056
  async ({ model, width_context }) => {
6021
6057
  const jsonData = {
6022
6058
  model,
@@ -6036,7 +6072,7 @@ function useKanbanService() {
6036
6072
  },
6037
6073
  [env]
6038
6074
  );
6039
- const getProgressBar = useCallback51(
6075
+ const getProgressBar = useCallback52(
6040
6076
  async ({ field, color, model, width_context }) => {
6041
6077
  const jsonData = {
6042
6078
  model,
@@ -6066,10 +6102,10 @@ function useKanbanService() {
6066
6102
  }
6067
6103
 
6068
6104
  // src/services/model-service/index.ts
6069
- import { useCallback as useCallback52 } from "react";
6105
+ import { useCallback as useCallback53 } from "react";
6070
6106
  function useModelService() {
6071
6107
  const { env } = useEnv();
6072
- const getListMyBankAccount = useCallback52(
6108
+ const getListMyBankAccount = useCallback53(
6073
6109
  async ({
6074
6110
  domain,
6075
6111
  spectification,
@@ -6093,7 +6129,7 @@ function useModelService() {
6093
6129
  },
6094
6130
  [env]
6095
6131
  );
6096
- const getCurrency = useCallback52(async () => {
6132
+ const getCurrency = useCallback53(async () => {
6097
6133
  const jsonData = {
6098
6134
  model: "res.currency",
6099
6135
  method: "web_search_read",
@@ -6113,7 +6149,7 @@ function useModelService() {
6113
6149
  }
6114
6150
  });
6115
6151
  }, [env]);
6116
- const getConversionRate = useCallback52(async () => {
6152
+ const getConversionRate = useCallback53(async () => {
6117
6153
  const jsonData = {
6118
6154
  model: "res.currency",
6119
6155
  method: "web_search_read",
@@ -6139,7 +6175,7 @@ function useModelService() {
6139
6175
  }
6140
6176
  });
6141
6177
  }, [env]);
6142
- const getAll = useCallback52(
6178
+ const getAll = useCallback53(
6143
6179
  async ({
6144
6180
  data,
6145
6181
  service,
@@ -6181,7 +6217,7 @@ function useModelService() {
6181
6217
  },
6182
6218
  [env]
6183
6219
  );
6184
- const getListCalendar = useCallback52(
6220
+ const getListCalendar = useCallback53(
6185
6221
  async ({ data }) => {
6186
6222
  const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
6187
6223
  fields: data.fields,
@@ -6212,7 +6248,7 @@ function useModelService() {
6212
6248
  },
6213
6249
  [env]
6214
6250
  );
6215
- const getList = useCallback52(
6251
+ const getList = useCallback53(
6216
6252
  async ({
6217
6253
  model,
6218
6254
  ids = [],
@@ -6244,7 +6280,7 @@ function useModelService() {
6244
6280
  },
6245
6281
  [env]
6246
6282
  );
6247
- const getDetail = useCallback52(
6283
+ const getDetail = useCallback53(
6248
6284
  async ({
6249
6285
  ids = [],
6250
6286
  model,
@@ -6276,7 +6312,7 @@ function useModelService() {
6276
6312
  },
6277
6313
  [env]
6278
6314
  );
6279
- const save = useCallback52(
6315
+ const save = useCallback53(
6280
6316
  async ({
6281
6317
  model,
6282
6318
  ids = [],
@@ -6311,7 +6347,7 @@ function useModelService() {
6311
6347
  },
6312
6348
  [env]
6313
6349
  );
6314
- const deleteApi = useCallback52(
6350
+ const deleteApi = useCallback53(
6315
6351
  async ({ ids = [], model, service }) => {
6316
6352
  const jsonData = {
6317
6353
  model,
@@ -6331,7 +6367,7 @@ function useModelService() {
6331
6367
  },
6332
6368
  [env]
6333
6369
  );
6334
- const onChange = useCallback52(
6370
+ const onChange = useCallback53(
6335
6371
  async ({
6336
6372
  ids = [],
6337
6373
  model,
@@ -6367,7 +6403,7 @@ function useModelService() {
6367
6403
  },
6368
6404
  [env]
6369
6405
  );
6370
- const getListFieldsOnchange = useCallback52(
6406
+ const getListFieldsOnchange = useCallback53(
6371
6407
  async ({
6372
6408
  model,
6373
6409
  service,
@@ -6391,7 +6427,7 @@ function useModelService() {
6391
6427
  },
6392
6428
  [env]
6393
6429
  );
6394
- const parseORMOdoo = useCallback52((data) => {
6430
+ const parseORMOdoo = useCallback53((data) => {
6395
6431
  for (const key in data) {
6396
6432
  if (key === "display_name") {
6397
6433
  delete data[key];
@@ -6402,7 +6438,7 @@ function useModelService() {
6402
6438
  }
6403
6439
  return { ...data };
6404
6440
  }, []);
6405
- const toDataJS = useCallback52(
6441
+ const toDataJS = useCallback53(
6406
6442
  (data, viewData, model) => {
6407
6443
  for (const key in data) {
6408
6444
  if (data[key] === false) {
@@ -6460,10 +6496,10 @@ function useModelService() {
6460
6496
  }
6461
6497
 
6462
6498
  // src/services/user-service/index.ts
6463
- import { useCallback as useCallback53 } from "react";
6499
+ import { useCallback as useCallback54 } from "react";
6464
6500
  function useUserService() {
6465
6501
  const { env } = useEnv();
6466
- const getProfile = useCallback53(
6502
+ const getProfile = useCallback54(
6467
6503
  async (service, path, extraHeaders) => {
6468
6504
  return env?.requests?.get(
6469
6505
  path || "/userinfo" /* PROFILE_PATH */,
@@ -6480,7 +6516,7 @@ function useUserService() {
6480
6516
  },
6481
6517
  [env]
6482
6518
  );
6483
- const getUser = useCallback53(
6519
+ const getUser = useCallback54(
6484
6520
  async ({ context, id }) => {
6485
6521
  const jsonData = {
6486
6522
  model: "res.users",
@@ -6518,7 +6554,7 @@ function useUserService() {
6518
6554
  },
6519
6555
  [env]
6520
6556
  );
6521
- const switchUserLocale = useCallback53(
6557
+ const switchUserLocale = useCallback54(
6522
6558
  async ({ id, values, service }) => {
6523
6559
  const jsonData = {
6524
6560
  model: "res.users",
@@ -6546,10 +6582,10 @@ function useUserService() {
6546
6582
  }
6547
6583
 
6548
6584
  // src/services/view-service/index.ts
6549
- import { useCallback as useCallback54 } from "react";
6585
+ import { useCallback as useCallback55 } from "react";
6550
6586
  function useViewService() {
6551
6587
  const { env } = useEnv();
6552
- const getView = useCallback54(
6588
+ const getView = useCallback55(
6553
6589
  async ({
6554
6590
  model,
6555
6591
  views,
@@ -6589,7 +6625,7 @@ function useViewService() {
6589
6625
  },
6590
6626
  [env]
6591
6627
  );
6592
- const getMenu = useCallback54(
6628
+ const getMenu = useCallback55(
6593
6629
  async (context, specification, domain, service) => {
6594
6630
  const jsonData = {
6595
6631
  model: "ir.ui.menu" /* MENU */,
@@ -6620,7 +6656,7 @@ function useViewService() {
6620
6656
  },
6621
6657
  [env]
6622
6658
  );
6623
- const getActionDetail = useCallback54(
6659
+ const getActionDetail = useCallback55(
6624
6660
  async (aid, context) => {
6625
6661
  const jsonData = {
6626
6662
  model: "ir.actions.act_window" /* WINDOW_ACTION */,
@@ -6650,7 +6686,7 @@ function useViewService() {
6650
6686
  },
6651
6687
  [env]
6652
6688
  );
6653
- const getResequence = useCallback54(
6689
+ const getResequence = useCallback55(
6654
6690
  async ({
6655
6691
  model,
6656
6692
  ids,
@@ -6680,7 +6716,7 @@ function useViewService() {
6680
6716
  },
6681
6717
  [env]
6682
6718
  );
6683
- const getSelectionItem = useCallback54(
6719
+ const getSelectionItem = useCallback55(
6684
6720
  async ({
6685
6721
  data,
6686
6722
  service,
@@ -6717,7 +6753,7 @@ function useViewService() {
6717
6753
  },
6718
6754
  [env]
6719
6755
  );
6720
- const loadMessages = useCallback54(async () => {
6756
+ const loadMessages = useCallback55(async () => {
6721
6757
  return env.requests.post(
6722
6758
  "/load_message_failures" /* LOAD_MESSAGE */,
6723
6759
  {},
@@ -6728,14 +6764,14 @@ function useViewService() {
6728
6764
  }
6729
6765
  );
6730
6766
  }, [env]);
6731
- const getVersion = useCallback54(async () => {
6767
+ const getVersion = useCallback55(async () => {
6732
6768
  return env?.requests?.get("", {
6733
6769
  headers: {
6734
6770
  "Content-Type": "application/json"
6735
6771
  }
6736
6772
  });
6737
6773
  }, [env]);
6738
- const grantAccess = useCallback54(
6774
+ const grantAccess = useCallback55(
6739
6775
  async ({
6740
6776
  redirect_uri,
6741
6777
  state,
@@ -6762,7 +6798,7 @@ function useViewService() {
6762
6798
  },
6763
6799
  [env]
6764
6800
  );
6765
- const removeTotpSetUp = useCallback54(
6801
+ const removeTotpSetUp = useCallback55(
6766
6802
  async ({ method, token }) => {
6767
6803
  const jsonData = {
6768
6804
  method,
@@ -6783,7 +6819,7 @@ function useViewService() {
6783
6819
  },
6784
6820
  [env]
6785
6821
  );
6786
- const requestSetupTotp = useCallback54(
6822
+ const requestSetupTotp = useCallback55(
6787
6823
  async ({ method, token }) => {
6788
6824
  const jsonData = {
6789
6825
  method,
@@ -6802,7 +6838,7 @@ function useViewService() {
6802
6838
  },
6803
6839
  [env]
6804
6840
  );
6805
- const settingsWebRead2fa = useCallback54(
6841
+ const settingsWebRead2fa = useCallback55(
6806
6842
  async ({
6807
6843
  method,
6808
6844
  model,
@@ -6830,7 +6866,7 @@ function useViewService() {
6830
6866
  },
6831
6867
  [env]
6832
6868
  );
6833
- const signInSSO = useCallback54(
6869
+ const signInSSO = useCallback55(
6834
6870
  async ({
6835
6871
  redirect_uri,
6836
6872
  state,
@@ -6862,7 +6898,7 @@ function useViewService() {
6862
6898
  },
6863
6899
  [env]
6864
6900
  );
6865
- const verify2FA = useCallback54(
6901
+ const verify2FA = useCallback55(
6866
6902
  ({
6867
6903
  method,
6868
6904
  with_context,
@@ -6895,7 +6931,7 @@ function useViewService() {
6895
6931
  },
6896
6932
  [env]
6897
6933
  );
6898
- const get2FAMethods = useCallback54(
6934
+ const get2FAMethods = useCallback55(
6899
6935
  ({ method, with_context }) => {
6900
6936
  const jsonData = {
6901
6937
  method,
@@ -6914,7 +6950,7 @@ function useViewService() {
6914
6950
  },
6915
6951
  [env]
6916
6952
  );
6917
- const verifyTotp = useCallback54(
6953
+ const verifyTotp = useCallback55(
6918
6954
  ({
6919
6955
  method,
6920
6956
  action_token,
@@ -6939,7 +6975,7 @@ function useViewService() {
6939
6975
  },
6940
6976
  [env]
6941
6977
  );
6942
- const getNotifications = useCallback54(
6978
+ const getNotifications = useCallback55(
6943
6979
  async ({
6944
6980
  service,
6945
6981
  xNode,
@@ -6959,7 +6995,7 @@ function useViewService() {
6959
6995
  },
6960
6996
  [env]
6961
6997
  );
6962
- const getCountry = useCallback54(
6998
+ const getCountry = useCallback55(
6963
6999
  async ({
6964
7000
  service,
6965
7001
  xNode,
@@ -6986,7 +7022,7 @@ function useViewService() {
6986
7022
  },
6987
7023
  [env]
6988
7024
  );
6989
- const getCity = useCallback54(
7025
+ const getCity = useCallback55(
6990
7026
  async ({
6991
7027
  service,
6992
7028
  xNode,
@@ -7013,7 +7049,7 @@ function useViewService() {
7013
7049
  },
7014
7050
  [env]
7015
7051
  );
7016
- const getWard = useCallback54(
7052
+ const getWard = useCallback55(
7017
7053
  async ({
7018
7054
  service,
7019
7055
  xNode,
@@ -7038,7 +7074,7 @@ function useViewService() {
7038
7074
  },
7039
7075
  [env]
7040
7076
  );
7041
- const getPartnerTitle = useCallback54(
7077
+ const getPartnerTitle = useCallback55(
7042
7078
  async ({
7043
7079
  service,
7044
7080
  xNode,
@@ -7090,10 +7126,10 @@ function useViewService() {
7090
7126
  }
7091
7127
 
7092
7128
  // src/services/dashboard-service/index.ts
7093
- import { useCallback as useCallback55 } from "react";
7129
+ import { useCallback as useCallback56 } from "react";
7094
7130
  function useDashboardService() {
7095
7131
  const { env } = useEnv();
7096
- const readGroup = useCallback55(
7132
+ const readGroup = useCallback56(
7097
7133
  async ({
7098
7134
  service,
7099
7135
  xNode,
@@ -7110,7 +7146,7 @@ function useDashboardService() {
7110
7146
  },
7111
7147
  [env]
7112
7148
  );
7113
- const getDataChart = useCallback55(
7149
+ const getDataChart = useCallback56(
7114
7150
  async ({
7115
7151
  service,
7116
7152
  xNode,