@fctc/interface-logic 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/services.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/services/action-service/index.ts
2
- import { useCallback as useCallback59 } from "react";
2
+ import { useCallback as useCallback62 } from "react";
3
3
 
4
4
  // src/constants/api/uri-constant.ts
5
5
  var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
@@ -3157,27 +3157,6 @@ import { useMutation as useMutation53 } from "@tanstack/react-query";
3157
3157
  // src/hooks/view/use-get-ward.ts
3158
3158
  import { useMutation as useMutation54 } from "@tanstack/react-query";
3159
3159
 
3160
- // src/hooks/view/use-get-city.ts
3161
- import { useMutation as useMutation55 } from "@tanstack/react-query";
3162
-
3163
- // src/hooks/view/use-get-country.ts
3164
- import { useMutation as useMutation56 } from "@tanstack/react-query";
3165
-
3166
- // src/hooks/view/use-get-partner-title.ts
3167
- import { useMutation as useMutation57 } from "@tanstack/react-query";
3168
-
3169
- // src/hooks/view/use-action-server-home.ts
3170
- import { useMutation as useMutation58 } from "@tanstack/react-query";
3171
-
3172
- // src/hooks/chart/use-read-group.ts
3173
- import { useQuery as useQuery24 } from "@tanstack/react-query";
3174
-
3175
- // src/hooks/chart/use-get-data-chart.ts
3176
- import { useQuery as useQuery25 } from "@tanstack/react-query";
3177
-
3178
- // src/hooks/pos/use-add-entity.ts
3179
- import { useMutation as useMutation59 } from "@tanstack/react-query";
3180
-
3181
3160
  // src/services/pos-service/get-a-session.ts
3182
3161
  import { useCallback as useCallback3 } from "react";
3183
3162
  var getASessionService = (env) => {
@@ -5229,6 +5208,60 @@ var assignRoleService = (env) => {
5229
5208
  };
5230
5209
  };
5231
5210
 
5211
+ // src/services/pos-service/supabase/get-states.ts
5212
+ import { useCallback as useCallback59 } from "react";
5213
+ var getStatesSupabaseService = () => {
5214
+ const supabase = useSupabaseOptional();
5215
+ const getStatesSupabase = useCallback59(async () => {
5216
+ if (!supabase) return { data: [], fields: {}, relations: {} };
5217
+ const { data, error } = await supabase.from("states" /* STATES */).select("*");
5218
+ if (error) {
5219
+ console.error("Error fetching states:", error);
5220
+ return { data: [], fields: {}, relations: {} };
5221
+ }
5222
+ return { data: data || [], fields: {}, relations: {} };
5223
+ }, [supabase]);
5224
+ return {
5225
+ getStatesSupabase
5226
+ };
5227
+ };
5228
+
5229
+ // src/services/pos-service/supabase/get-wards.ts
5230
+ import { useCallback as useCallback60 } from "react";
5231
+ var getWardsSupabaseService = () => {
5232
+ const supabase = useSupabaseOptional();
5233
+ const getWardsSupabase = useCallback60(async () => {
5234
+ if (!supabase) return { data: [], fields: {}, relations: {} };
5235
+ const { data, error } = await supabase.from("wards" /* WARDS */).select("*");
5236
+ if (error) {
5237
+ console.error("Error fetching wards:", error);
5238
+ return { data: [], fields: {}, relations: {} };
5239
+ }
5240
+ return { data: data || [], fields: {}, relations: {} };
5241
+ }, [supabase]);
5242
+ return {
5243
+ getWardsSupabase
5244
+ };
5245
+ };
5246
+
5247
+ // src/services/pos-service/supabase/get-partner-titles.ts
5248
+ import { useCallback as useCallback61 } from "react";
5249
+ var getPartnerTitlesSupabaseService = () => {
5250
+ const supabase = useSupabaseOptional();
5251
+ const getPartnerTitlesSupabase = useCallback61(async () => {
5252
+ if (!supabase) return { data: [], fields: {}, relations: {} };
5253
+ const { data, error } = await supabase.from("partner_titles" /* PARTNER_TITLES */).select("*");
5254
+ if (error) {
5255
+ console.error("Error fetching partner titles:", error);
5256
+ return { data: [], fields: {}, relations: {} };
5257
+ }
5258
+ return { data: data || [], fields: {}, relations: {} };
5259
+ }, [supabase]);
5260
+ return {
5261
+ getPartnerTitlesSupabase
5262
+ };
5263
+ };
5264
+
5232
5265
  // src/services/pos-service/index.ts
5233
5266
  var serviceFactories = [
5234
5267
  addEntityService,
@@ -5286,7 +5319,10 @@ var serviceFactories = [
5286
5319
  uploadImageSupabaseService,
5287
5320
  getListUsersService,
5288
5321
  getListRolesService,
5289
- assignRoleService
5322
+ assignRoleService,
5323
+ getStatesSupabaseService,
5324
+ getWardsSupabaseService,
5325
+ getPartnerTitlesSupabaseService
5290
5326
  ];
5291
5327
  var usePosService = () => {
5292
5328
  const { env } = useEnv();
@@ -5298,6 +5334,27 @@ var usePosService = () => {
5298
5334
  return service;
5299
5335
  };
5300
5336
 
5337
+ // src/hooks/view/use-get-city.ts
5338
+ import { useMutation as useMutation55 } from "@tanstack/react-query";
5339
+
5340
+ // src/hooks/view/use-get-country.ts
5341
+ import { useMutation as useMutation56 } from "@tanstack/react-query";
5342
+
5343
+ // src/hooks/view/use-get-partner-title.ts
5344
+ import { useMutation as useMutation57 } from "@tanstack/react-query";
5345
+
5346
+ // src/hooks/view/use-action-server-home.ts
5347
+ import { useMutation as useMutation58 } from "@tanstack/react-query";
5348
+
5349
+ // src/hooks/chart/use-read-group.ts
5350
+ import { useQuery as useQuery24 } from "@tanstack/react-query";
5351
+
5352
+ // src/hooks/chart/use-get-data-chart.ts
5353
+ import { useQuery as useQuery25 } from "@tanstack/react-query";
5354
+
5355
+ // src/hooks/pos/use-add-entity.ts
5356
+ import { useMutation as useMutation59 } from "@tanstack/react-query";
5357
+
5301
5358
  // src/hooks/pos/use-get-a-session.ts
5302
5359
  import { useMutation as useMutation60 } from "@tanstack/react-query";
5303
5360
 
@@ -5474,7 +5531,7 @@ import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
5474
5531
  // src/services/action-service/index.ts
5475
5532
  function useActionService() {
5476
5533
  const { env } = useEnv();
5477
- const loadAction = useCallback59(
5534
+ const loadAction = useCallback62(
5478
5535
  async ({
5479
5536
  idAction,
5480
5537
  context,
@@ -5498,7 +5555,7 @@ function useActionService() {
5498
5555
  },
5499
5556
  [env]
5500
5557
  );
5501
- const callButton = useCallback59(
5558
+ const callButton = useCallback62(
5502
5559
  async ({
5503
5560
  model,
5504
5561
  ids = [],
@@ -5532,7 +5589,7 @@ function useActionService() {
5532
5589
  },
5533
5590
  [env]
5534
5591
  );
5535
- const removeRows = useCallback59(
5592
+ const removeRows = useCallback62(
5536
5593
  async ({
5537
5594
  model,
5538
5595
  ids,
@@ -5558,7 +5615,7 @@ function useActionService() {
5558
5615
  },
5559
5616
  [env]
5560
5617
  );
5561
- const duplicateRecord = useCallback59(
5618
+ const duplicateRecord = useCallback62(
5562
5619
  async ({
5563
5620
  model,
5564
5621
  id,
@@ -5584,7 +5641,7 @@ function useActionService() {
5584
5641
  },
5585
5642
  [env]
5586
5643
  );
5587
- const getPrintReportName = useCallback59(
5644
+ const getPrintReportName = useCallback62(
5588
5645
  async ({ id }) => {
5589
5646
  const jsonData = {
5590
5647
  model: "ir.actions.report",
@@ -5602,7 +5659,7 @@ function useActionService() {
5602
5659
  },
5603
5660
  [env]
5604
5661
  );
5605
- const print = useCallback59(
5662
+ const print = useCallback62(
5606
5663
  async ({ id, report, db }) => {
5607
5664
  const jsonData = {
5608
5665
  report,
@@ -5620,7 +5677,7 @@ function useActionService() {
5620
5677
  },
5621
5678
  [env]
5622
5679
  );
5623
- const runAction = useCallback59(
5680
+ const runAction = useCallback62(
5624
5681
  async ({
5625
5682
  idAction,
5626
5683
  context,
@@ -5647,7 +5704,7 @@ function useActionService() {
5647
5704
  },
5648
5705
  [env]
5649
5706
  );
5650
- const generateSerialNumber = useCallback59(
5707
+ const generateSerialNumber = useCallback62(
5651
5708
  async ({
5652
5709
  kwargs,
5653
5710
  context,
@@ -5672,7 +5729,7 @@ function useActionService() {
5672
5729
  },
5673
5730
  [env]
5674
5731
  );
5675
- const actionServerHome = useCallback59(async () => {
5732
+ const actionServerHome = useCallback62(async () => {
5676
5733
  return env?.requests?.get("/action_server_home" /* ACTION_SERVER_HOME */);
5677
5734
  }, [env]);
5678
5735
  return {
@@ -5689,11 +5746,11 @@ function useActionService() {
5689
5746
  }
5690
5747
 
5691
5748
  // src/services/auth-service/index.ts
5692
- import { useCallback as useCallback60 } from "react";
5749
+ import { useCallback as useCallback63 } from "react";
5693
5750
  function useAuthService() {
5694
5751
  const { env } = useEnv();
5695
5752
  const supabase = useSupabaseOptional();
5696
- const login = useCallback60(
5753
+ const login = useCallback63(
5697
5754
  async (body) => {
5698
5755
  const payload = Object.fromEntries(
5699
5756
  Object.entries({
@@ -5718,7 +5775,7 @@ function useAuthService() {
5718
5775
  },
5719
5776
  [env]
5720
5777
  );
5721
- const loginTenantUser = useCallback60(
5778
+ const loginTenantUser = useCallback63(
5722
5779
  async (body) => {
5723
5780
  const payload = {
5724
5781
  email: body.email,
@@ -5733,7 +5790,7 @@ function useAuthService() {
5733
5790
  },
5734
5791
  [env]
5735
5792
  );
5736
- const forgotPassword = useCallback60(
5793
+ const forgotPassword = useCallback63(
5737
5794
  async (email) => {
5738
5795
  const bodyData = {
5739
5796
  login: email,
@@ -5747,7 +5804,7 @@ function useAuthService() {
5747
5804
  },
5748
5805
  [env]
5749
5806
  );
5750
- const forgotPasswordSSO = useCallback60(
5807
+ const forgotPasswordSSO = useCallback63(
5751
5808
  async ({
5752
5809
  email,
5753
5810
  with_context,
@@ -5770,7 +5827,7 @@ function useAuthService() {
5770
5827
  },
5771
5828
  [env]
5772
5829
  );
5773
- const resetPassword = useCallback60(
5830
+ const resetPassword = useCallback63(
5774
5831
  async (data, token) => {
5775
5832
  const bodyData = {
5776
5833
  token,
@@ -5785,7 +5842,7 @@ function useAuthService() {
5785
5842
  },
5786
5843
  [env]
5787
5844
  );
5788
- const resetPasswordSSO = useCallback60(
5845
+ const resetPasswordSSO = useCallback63(
5789
5846
  async ({
5790
5847
  method,
5791
5848
  password,
@@ -5808,7 +5865,7 @@ function useAuthService() {
5808
5865
  },
5809
5866
  [env]
5810
5867
  );
5811
- const updatePassword = useCallback60(
5868
+ const updatePassword = useCallback63(
5812
5869
  async (data, token) => {
5813
5870
  const bodyData = {
5814
5871
  token,
@@ -5823,7 +5880,7 @@ function useAuthService() {
5823
5880
  },
5824
5881
  [env]
5825
5882
  );
5826
- const isValidToken = useCallback60(
5883
+ const isValidToken = useCallback63(
5827
5884
  async (token) => {
5828
5885
  const bodyData = {
5829
5886
  token
@@ -5836,7 +5893,7 @@ function useAuthService() {
5836
5893
  },
5837
5894
  [env]
5838
5895
  );
5839
- const isValidActionToken = useCallback60(
5896
+ const isValidActionToken = useCallback63(
5840
5897
  async (actionToken) => {
5841
5898
  const bodyData = {};
5842
5899
  return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
@@ -5849,7 +5906,7 @@ function useAuthService() {
5849
5906
  },
5850
5907
  [env]
5851
5908
  );
5852
- const loginSocial = useCallback60(
5909
+ const loginSocial = useCallback63(
5853
5910
  async ({
5854
5911
  db,
5855
5912
  state,
@@ -5867,13 +5924,13 @@ function useAuthService() {
5867
5924
  },
5868
5925
  [env]
5869
5926
  );
5870
- const getProviders = useCallback60(
5927
+ const getProviders = useCallback63(
5871
5928
  async (db) => {
5872
5929
  return env?.requests?.get("/oauth/providers", { params: { db } });
5873
5930
  },
5874
5931
  [env]
5875
5932
  );
5876
- const getAccessByCode = useCallback60(
5933
+ const getAccessByCode = useCallback63(
5877
5934
  async (code) => {
5878
5935
  const data = new URLSearchParams();
5879
5936
  data.append("code", code);
@@ -5893,7 +5950,7 @@ function useAuthService() {
5893
5950
  },
5894
5951
  [env]
5895
5952
  );
5896
- const logout = useCallback60(
5953
+ const logout = useCallback63(
5897
5954
  async (service) => {
5898
5955
  return env?.requests?.post(
5899
5956
  "/logout" /* LOGOUT */,
@@ -5910,7 +5967,7 @@ function useAuthService() {
5910
5967
  },
5911
5968
  [env]
5912
5969
  );
5913
- const getTenantMapping = useCallback60(
5970
+ const getTenantMapping = useCallback63(
5914
5971
  async ({ shortName, service }) => {
5915
5972
  const bodyData = {
5916
5973
  short_name: shortName
@@ -5928,7 +5985,7 @@ function useAuthService() {
5928
5985
  },
5929
5986
  [env]
5930
5987
  );
5931
- const getToken = useCallback60(
5988
+ const getToken = useCallback63(
5932
5989
  async ({
5933
5990
  phone,
5934
5991
  name,
@@ -5973,10 +6030,10 @@ function useAuthService() {
5973
6030
  }
5974
6031
 
5975
6032
  // src/services/company-service/index.ts
5976
- import { useCallback as useCallback61 } from "react";
6033
+ import { useCallback as useCallback64 } from "react";
5977
6034
  function useCompanyService() {
5978
6035
  const { env } = useEnv();
5979
- const getCurrentCompany = useCallback61(
6036
+ const getCurrentCompany = useCallback64(
5980
6037
  async (service, extraHeaders) => {
5981
6038
  return await env.requests.get(
5982
6039
  "/company" /* COMPANY_PATH */,
@@ -5993,7 +6050,7 @@ function useCompanyService() {
5993
6050
  },
5994
6051
  [env]
5995
6052
  );
5996
- const getInfoCompany = useCallback61(
6053
+ const getInfoCompany = useCallback64(
5997
6054
  async (id, service) => {
5998
6055
  const jsonData = {
5999
6056
  ids: [id],
@@ -6029,10 +6086,10 @@ function useCompanyService() {
6029
6086
  }
6030
6087
 
6031
6088
  // src/services/excel-service/index.ts
6032
- import { useCallback as useCallback62 } from "react";
6089
+ import { useCallback as useCallback65 } from "react";
6033
6090
  function useExcelService() {
6034
6091
  const { env } = useEnv();
6035
- const uploadFileExcel = useCallback62(
6092
+ const uploadFileExcel = useCallback65(
6036
6093
  async ({
6037
6094
  formData,
6038
6095
  service,
@@ -6049,7 +6106,7 @@ function useExcelService() {
6049
6106
  },
6050
6107
  [env]
6051
6108
  );
6052
- const uploadIdFile = useCallback62(
6109
+ const uploadIdFile = useCallback65(
6053
6110
  async ({
6054
6111
  formData,
6055
6112
  service,
@@ -6066,7 +6123,7 @@ function useExcelService() {
6066
6123
  },
6067
6124
  [env]
6068
6125
  );
6069
- const parsePreview = useCallback62(
6126
+ const parsePreview = useCallback65(
6070
6127
  async ({
6071
6128
  id,
6072
6129
  selectedSheet,
@@ -6115,7 +6172,7 @@ function useExcelService() {
6115
6172
  },
6116
6173
  [env]
6117
6174
  );
6118
- const executeImport = useCallback62(
6175
+ const executeImport = useCallback65(
6119
6176
  async ({
6120
6177
  columns,
6121
6178
  fields,
@@ -6149,7 +6206,7 @@ function useExcelService() {
6149
6206
  },
6150
6207
  [env]
6151
6208
  );
6152
- const getFileExcel = useCallback62(
6209
+ const getFileExcel = useCallback65(
6153
6210
  async ({
6154
6211
  model,
6155
6212
  service,
@@ -6173,7 +6230,7 @@ function useExcelService() {
6173
6230
  },
6174
6231
  [env]
6175
6232
  );
6176
- const getFieldExport = useCallback62(
6233
+ const getFieldExport = useCallback65(
6177
6234
  async ({
6178
6235
  ids,
6179
6236
  model,
@@ -6213,7 +6270,7 @@ function useExcelService() {
6213
6270
  },
6214
6271
  [env]
6215
6272
  );
6216
- const exportExcel = useCallback62(
6273
+ const exportExcel = useCallback65(
6217
6274
  async ({
6218
6275
  model,
6219
6276
  domain,
@@ -6261,10 +6318,10 @@ function useExcelService() {
6261
6318
  }
6262
6319
 
6263
6320
  // src/services/form-service/index.ts
6264
- import { useCallback as useCallback63 } from "react";
6321
+ import { useCallback as useCallback66 } from "react";
6265
6322
  function useFormService() {
6266
6323
  const { env } = useEnv();
6267
- const getComment = useCallback63(
6324
+ const getComment = useCallback66(
6268
6325
  async ({ data }) => {
6269
6326
  const jsonData = {
6270
6327
  thread_id: data.thread_id,
@@ -6282,7 +6339,7 @@ function useFormService() {
6282
6339
  },
6283
6340
  [env]
6284
6341
  );
6285
- const getThreadData = useCallback63(
6342
+ const getThreadData = useCallback66(
6286
6343
  async ({
6287
6344
  data,
6288
6345
  xNode,
@@ -6309,7 +6366,7 @@ function useFormService() {
6309
6366
  },
6310
6367
  [env]
6311
6368
  );
6312
- const getThreadMessages = useCallback63(
6369
+ const getThreadMessages = useCallback66(
6313
6370
  async ({
6314
6371
  data,
6315
6372
  xNode,
@@ -6335,7 +6392,7 @@ function useFormService() {
6335
6392
  },
6336
6393
  [env]
6337
6394
  );
6338
- const sentComment = useCallback63(
6395
+ const sentComment = useCallback66(
6339
6396
  async ({ data }) => {
6340
6397
  const jsonData = {
6341
6398
  context: {
@@ -6363,7 +6420,7 @@ function useFormService() {
6363
6420
  },
6364
6421
  [env]
6365
6422
  );
6366
- const deleteComment = useCallback63(
6423
+ const deleteComment = useCallback66(
6367
6424
  async ({ data }) => {
6368
6425
  const jsonData = {
6369
6426
  attachment_ids: [],
@@ -6379,7 +6436,7 @@ function useFormService() {
6379
6436
  },
6380
6437
  [env]
6381
6438
  );
6382
- const getImage = useCallback63(
6439
+ const getImage = useCallback66(
6383
6440
  async ({ data }) => {
6384
6441
  return env.requests.get(
6385
6442
  `${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
@@ -6392,7 +6449,7 @@ function useFormService() {
6392
6449
  },
6393
6450
  [env]
6394
6451
  );
6395
- const uploadImage = useCallback63(
6452
+ const uploadImage = useCallback66(
6396
6453
  async ({
6397
6454
  formData,
6398
6455
  service,
@@ -6411,7 +6468,7 @@ function useFormService() {
6411
6468
  },
6412
6469
  [env]
6413
6470
  );
6414
- const uploadFile = useCallback63(
6471
+ const uploadFile = useCallback66(
6415
6472
  async ({
6416
6473
  formData,
6417
6474
  service,
@@ -6431,7 +6488,7 @@ function useFormService() {
6431
6488
  },
6432
6489
  [env]
6433
6490
  );
6434
- const getFormView = useCallback63(
6491
+ const getFormView = useCallback66(
6435
6492
  async ({ data }) => {
6436
6493
  const jsonData = {
6437
6494
  model: data.model,
@@ -6447,7 +6504,7 @@ function useFormService() {
6447
6504
  },
6448
6505
  [env]
6449
6506
  );
6450
- const changeStatus = useCallback63(
6507
+ const changeStatus = useCallback66(
6451
6508
  async ({ data }) => {
6452
6509
  const vals = {
6453
6510
  [data.name]: data.stage_id
@@ -6476,7 +6533,7 @@ function useFormService() {
6476
6533
  },
6477
6534
  [env]
6478
6535
  );
6479
- const getExternalTab = useCallback63(
6536
+ const getExternalTab = useCallback66(
6480
6537
  async ({ method, context, service, xNode }) => {
6481
6538
  return env?.requests?.post(
6482
6539
  "/call" /* CALL_PATH */,
@@ -6511,10 +6568,10 @@ function useFormService() {
6511
6568
  }
6512
6569
 
6513
6570
  // src/services/kanban-service/index.ts
6514
- import { useCallback as useCallback64 } from "react";
6571
+ import { useCallback as useCallback67 } from "react";
6515
6572
  function useKanbanService() {
6516
6573
  const { env } = useEnv();
6517
- const getGroups = useCallback64(
6574
+ const getGroups = useCallback67(
6518
6575
  async ({ model, width_context }) => {
6519
6576
  const jsonData = {
6520
6577
  model,
@@ -6534,7 +6591,7 @@ function useKanbanService() {
6534
6591
  },
6535
6592
  [env]
6536
6593
  );
6537
- const getProgressBar = useCallback64(
6594
+ const getProgressBar = useCallback67(
6538
6595
  async ({ field, color, model, width_context }) => {
6539
6596
  const jsonData = {
6540
6597
  model,
@@ -6564,10 +6621,10 @@ function useKanbanService() {
6564
6621
  }
6565
6622
 
6566
6623
  // src/services/model-service/index.ts
6567
- import { useCallback as useCallback65 } from "react";
6624
+ import { useCallback as useCallback68 } from "react";
6568
6625
  function useModelService() {
6569
6626
  const { env } = useEnv();
6570
- const getListMyBankAccount = useCallback65(
6627
+ const getListMyBankAccount = useCallback68(
6571
6628
  async ({
6572
6629
  domain,
6573
6630
  spectification,
@@ -6591,7 +6648,7 @@ function useModelService() {
6591
6648
  },
6592
6649
  [env]
6593
6650
  );
6594
- const getCurrency = useCallback65(async () => {
6651
+ const getCurrency = useCallback68(async () => {
6595
6652
  const jsonData = {
6596
6653
  model: "res.currency",
6597
6654
  method: "web_search_read",
@@ -6611,7 +6668,7 @@ function useModelService() {
6611
6668
  }
6612
6669
  });
6613
6670
  }, [env]);
6614
- const getConversionRate = useCallback65(async () => {
6671
+ const getConversionRate = useCallback68(async () => {
6615
6672
  const jsonData = {
6616
6673
  model: "res.currency",
6617
6674
  method: "web_search_read",
@@ -6637,7 +6694,7 @@ function useModelService() {
6637
6694
  }
6638
6695
  });
6639
6696
  }, [env]);
6640
- const getAll = useCallback65(
6697
+ const getAll = useCallback68(
6641
6698
  async ({
6642
6699
  data,
6643
6700
  service,
@@ -6679,7 +6736,7 @@ function useModelService() {
6679
6736
  },
6680
6737
  [env]
6681
6738
  );
6682
- const getListCalendar = useCallback65(
6739
+ const getListCalendar = useCallback68(
6683
6740
  async ({ data }) => {
6684
6741
  const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
6685
6742
  fields: data.fields,
@@ -6710,7 +6767,7 @@ function useModelService() {
6710
6767
  },
6711
6768
  [env]
6712
6769
  );
6713
- const getList = useCallback65(
6770
+ const getList = useCallback68(
6714
6771
  async ({
6715
6772
  model,
6716
6773
  ids = [],
@@ -6742,7 +6799,7 @@ function useModelService() {
6742
6799
  },
6743
6800
  [env]
6744
6801
  );
6745
- const getDetail = useCallback65(
6802
+ const getDetail = useCallback68(
6746
6803
  async ({
6747
6804
  ids = [],
6748
6805
  model,
@@ -6774,7 +6831,7 @@ function useModelService() {
6774
6831
  },
6775
6832
  [env]
6776
6833
  );
6777
- const save = useCallback65(
6834
+ const save = useCallback68(
6778
6835
  async ({
6779
6836
  model,
6780
6837
  ids = [],
@@ -6809,7 +6866,7 @@ function useModelService() {
6809
6866
  },
6810
6867
  [env]
6811
6868
  );
6812
- const deleteApi = useCallback65(
6869
+ const deleteApi = useCallback68(
6813
6870
  async ({ ids = [], model, service }) => {
6814
6871
  const jsonData = {
6815
6872
  model,
@@ -6829,7 +6886,7 @@ function useModelService() {
6829
6886
  },
6830
6887
  [env]
6831
6888
  );
6832
- const onChange = useCallback65(
6889
+ const onChange = useCallback68(
6833
6890
  async ({
6834
6891
  ids = [],
6835
6892
  model,
@@ -6865,7 +6922,7 @@ function useModelService() {
6865
6922
  },
6866
6923
  [env]
6867
6924
  );
6868
- const getListFieldsOnchange = useCallback65(
6925
+ const getListFieldsOnchange = useCallback68(
6869
6926
  async ({
6870
6927
  model,
6871
6928
  service,
@@ -6889,7 +6946,7 @@ function useModelService() {
6889
6946
  },
6890
6947
  [env]
6891
6948
  );
6892
- const parseORMOdoo = useCallback65((data) => {
6949
+ const parseORMOdoo = useCallback68((data) => {
6893
6950
  for (const key in data) {
6894
6951
  if (key === "display_name") {
6895
6952
  delete data[key];
@@ -6900,7 +6957,7 @@ function useModelService() {
6900
6957
  }
6901
6958
  return { ...data };
6902
6959
  }, []);
6903
- const toDataJS = useCallback65(
6960
+ const toDataJS = useCallback68(
6904
6961
  (data, viewData, model) => {
6905
6962
  for (const key in data) {
6906
6963
  if (data[key] === false) {
@@ -6958,10 +7015,10 @@ function useModelService() {
6958
7015
  }
6959
7016
 
6960
7017
  // src/services/user-service/index.ts
6961
- import { useCallback as useCallback66 } from "react";
7018
+ import { useCallback as useCallback69 } from "react";
6962
7019
  function useUserService() {
6963
7020
  const { env } = useEnv();
6964
- const getProfile = useCallback66(
7021
+ const getProfile = useCallback69(
6965
7022
  async (service, path, extraHeaders) => {
6966
7023
  return env?.requests?.get(
6967
7024
  path || "/userinfo" /* PROFILE_PATH */,
@@ -6978,7 +7035,7 @@ function useUserService() {
6978
7035
  },
6979
7036
  [env]
6980
7037
  );
6981
- const getUser = useCallback66(
7038
+ const getUser = useCallback69(
6982
7039
  async ({ context, id }) => {
6983
7040
  const jsonData = {
6984
7041
  model: "res.users",
@@ -7016,7 +7073,7 @@ function useUserService() {
7016
7073
  },
7017
7074
  [env]
7018
7075
  );
7019
- const switchUserLocale = useCallback66(
7076
+ const switchUserLocale = useCallback69(
7020
7077
  async ({ id, values, service }) => {
7021
7078
  const jsonData = {
7022
7079
  model: "res.users",
@@ -7044,10 +7101,10 @@ function useUserService() {
7044
7101
  }
7045
7102
 
7046
7103
  // src/services/view-service/index.ts
7047
- import { useCallback as useCallback67 } from "react";
7104
+ import { useCallback as useCallback70 } from "react";
7048
7105
  function useViewService() {
7049
7106
  const { env } = useEnv();
7050
- const getView = useCallback67(
7107
+ const getView = useCallback70(
7051
7108
  async ({
7052
7109
  model,
7053
7110
  views,
@@ -7087,7 +7144,7 @@ function useViewService() {
7087
7144
  },
7088
7145
  [env]
7089
7146
  );
7090
- const getMenu = useCallback67(
7147
+ const getMenu = useCallback70(
7091
7148
  async (context, specification, domain, service) => {
7092
7149
  const jsonData = {
7093
7150
  model: "ir.ui.menu" /* MENU */,
@@ -7118,7 +7175,7 @@ function useViewService() {
7118
7175
  },
7119
7176
  [env]
7120
7177
  );
7121
- const getActionDetail = useCallback67(
7178
+ const getActionDetail = useCallback70(
7122
7179
  async (aid, context) => {
7123
7180
  const jsonData = {
7124
7181
  model: "ir.actions.act_window" /* WINDOW_ACTION */,
@@ -7148,7 +7205,7 @@ function useViewService() {
7148
7205
  },
7149
7206
  [env]
7150
7207
  );
7151
- const getResequence = useCallback67(
7208
+ const getResequence = useCallback70(
7152
7209
  async ({
7153
7210
  model,
7154
7211
  ids,
@@ -7178,7 +7235,7 @@ function useViewService() {
7178
7235
  },
7179
7236
  [env]
7180
7237
  );
7181
- const getSelectionItem = useCallback67(
7238
+ const getSelectionItem = useCallback70(
7182
7239
  async ({
7183
7240
  data,
7184
7241
  service,
@@ -7215,7 +7272,7 @@ function useViewService() {
7215
7272
  },
7216
7273
  [env]
7217
7274
  );
7218
- const loadMessages = useCallback67(async () => {
7275
+ const loadMessages = useCallback70(async () => {
7219
7276
  return env.requests.post(
7220
7277
  "/load_message_failures" /* LOAD_MESSAGE */,
7221
7278
  {},
@@ -7226,14 +7283,14 @@ function useViewService() {
7226
7283
  }
7227
7284
  );
7228
7285
  }, [env]);
7229
- const getVersion = useCallback67(async () => {
7286
+ const getVersion = useCallback70(async () => {
7230
7287
  return env?.requests?.get("", {
7231
7288
  headers: {
7232
7289
  "Content-Type": "application/json"
7233
7290
  }
7234
7291
  });
7235
7292
  }, [env]);
7236
- const grantAccess = useCallback67(
7293
+ const grantAccess = useCallback70(
7237
7294
  async ({
7238
7295
  redirect_uri,
7239
7296
  state,
@@ -7260,7 +7317,7 @@ function useViewService() {
7260
7317
  },
7261
7318
  [env]
7262
7319
  );
7263
- const removeTotpSetUp = useCallback67(
7320
+ const removeTotpSetUp = useCallback70(
7264
7321
  async ({ method, token }) => {
7265
7322
  const jsonData = {
7266
7323
  method,
@@ -7281,7 +7338,7 @@ function useViewService() {
7281
7338
  },
7282
7339
  [env]
7283
7340
  );
7284
- const requestSetupTotp = useCallback67(
7341
+ const requestSetupTotp = useCallback70(
7285
7342
  async ({ method, token }) => {
7286
7343
  const jsonData = {
7287
7344
  method,
@@ -7300,7 +7357,7 @@ function useViewService() {
7300
7357
  },
7301
7358
  [env]
7302
7359
  );
7303
- const settingsWebRead2fa = useCallback67(
7360
+ const settingsWebRead2fa = useCallback70(
7304
7361
  async ({
7305
7362
  method,
7306
7363
  model,
@@ -7328,7 +7385,7 @@ function useViewService() {
7328
7385
  },
7329
7386
  [env]
7330
7387
  );
7331
- const signInSSO = useCallback67(
7388
+ const signInSSO = useCallback70(
7332
7389
  async ({
7333
7390
  redirect_uri,
7334
7391
  state,
@@ -7360,7 +7417,7 @@ function useViewService() {
7360
7417
  },
7361
7418
  [env]
7362
7419
  );
7363
- const verify2FA = useCallback67(
7420
+ const verify2FA = useCallback70(
7364
7421
  ({
7365
7422
  method,
7366
7423
  with_context,
@@ -7393,7 +7450,7 @@ function useViewService() {
7393
7450
  },
7394
7451
  [env]
7395
7452
  );
7396
- const get2FAMethods = useCallback67(
7453
+ const get2FAMethods = useCallback70(
7397
7454
  ({ method, with_context }) => {
7398
7455
  const jsonData = {
7399
7456
  method,
@@ -7412,7 +7469,7 @@ function useViewService() {
7412
7469
  },
7413
7470
  [env]
7414
7471
  );
7415
- const verifyTotp = useCallback67(
7472
+ const verifyTotp = useCallback70(
7416
7473
  ({
7417
7474
  method,
7418
7475
  action_token,
@@ -7437,7 +7494,7 @@ function useViewService() {
7437
7494
  },
7438
7495
  [env]
7439
7496
  );
7440
- const getNotifications = useCallback67(
7497
+ const getNotifications = useCallback70(
7441
7498
  async ({
7442
7499
  service,
7443
7500
  xNode,
@@ -7457,7 +7514,7 @@ function useViewService() {
7457
7514
  },
7458
7515
  [env]
7459
7516
  );
7460
- const getCountry = useCallback67(
7517
+ const getCountry = useCallback70(
7461
7518
  async ({
7462
7519
  service,
7463
7520
  xNode,
@@ -7484,7 +7541,7 @@ function useViewService() {
7484
7541
  },
7485
7542
  [env]
7486
7543
  );
7487
- const getCity = useCallback67(
7544
+ const getCity = useCallback70(
7488
7545
  async ({
7489
7546
  service,
7490
7547
  xNode,
@@ -7511,7 +7568,7 @@ function useViewService() {
7511
7568
  },
7512
7569
  [env]
7513
7570
  );
7514
- const getWard = useCallback67(
7571
+ const getWard = useCallback70(
7515
7572
  async ({
7516
7573
  service,
7517
7574
  xNode,
@@ -7536,7 +7593,7 @@ function useViewService() {
7536
7593
  },
7537
7594
  [env]
7538
7595
  );
7539
- const getPartnerTitle = useCallback67(
7596
+ const getPartnerTitle = useCallback70(
7540
7597
  async ({
7541
7598
  service,
7542
7599
  xNode,
@@ -7588,10 +7645,10 @@ function useViewService() {
7588
7645
  }
7589
7646
 
7590
7647
  // src/services/dashboard-service/index.ts
7591
- import { useCallback as useCallback68 } from "react";
7648
+ import { useCallback as useCallback71 } from "react";
7592
7649
  function useDashboardService() {
7593
7650
  const { env } = useEnv();
7594
- const readGroup = useCallback68(
7651
+ const readGroup = useCallback71(
7595
7652
  async ({
7596
7653
  service,
7597
7654
  xNode,
@@ -7608,7 +7665,7 @@ function useDashboardService() {
7608
7665
  },
7609
7666
  [env]
7610
7667
  );
7611
- const getDataChart = useCallback68(
7668
+ const getDataChart = useCallback71(
7612
7669
  async ({
7613
7670
  service,
7614
7671
  xNode,