@fctc/interface-logic 5.0.0 → 5.0.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 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,63 @@ 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 { length: 0, records: [] };
5217
+ const { data, error } = await supabase.from("states" /* STATES */).select("*");
5218
+ if (error) {
5219
+ console.error("Error fetching states:", error);
5220
+ return { length: 0, records: [] };
5221
+ }
5222
+ const records = data || [];
5223
+ return { length: records.length, records };
5224
+ }, [supabase]);
5225
+ return {
5226
+ getStatesSupabase
5227
+ };
5228
+ };
5229
+
5230
+ // src/services/pos-service/supabase/get-wards.ts
5231
+ import { useCallback as useCallback60 } from "react";
5232
+ var getWardsSupabaseService = () => {
5233
+ const supabase = useSupabaseOptional();
5234
+ const getWardsSupabase = useCallback60(async () => {
5235
+ if (!supabase) return { length: 0, records: [] };
5236
+ const { data, error } = await supabase.from("wards" /* WARDS */).select("*");
5237
+ if (error) {
5238
+ console.error("Error fetching wards:", error);
5239
+ return { length: 0, records: [] };
5240
+ }
5241
+ const records = data || [];
5242
+ return { length: records.length, records };
5243
+ }, [supabase]);
5244
+ return {
5245
+ getWardsSupabase
5246
+ };
5247
+ };
5248
+
5249
+ // src/services/pos-service/supabase/get-partner-titles.ts
5250
+ import { useCallback as useCallback61 } from "react";
5251
+ var getPartnerTitlesSupabaseService = () => {
5252
+ const supabase = useSupabaseOptional();
5253
+ const getPartnerTitlesSupabase = useCallback61(async () => {
5254
+ if (!supabase) return { length: 0, records: [] };
5255
+ const { data, error } = await supabase.from("partner_titles" /* PARTNER_TITLES */).select("*");
5256
+ if (error) {
5257
+ console.error("Error fetching partner titles:", error);
5258
+ return { length: 0, records: [] };
5259
+ }
5260
+ const records = data || [];
5261
+ return { length: records.length, records };
5262
+ }, [supabase]);
5263
+ return {
5264
+ getPartnerTitlesSupabase
5265
+ };
5266
+ };
5267
+
5232
5268
  // src/services/pos-service/index.ts
5233
5269
  var serviceFactories = [
5234
5270
  addEntityService,
@@ -5286,7 +5322,10 @@ var serviceFactories = [
5286
5322
  uploadImageSupabaseService,
5287
5323
  getListUsersService,
5288
5324
  getListRolesService,
5289
- assignRoleService
5325
+ assignRoleService,
5326
+ getStatesSupabaseService,
5327
+ getWardsSupabaseService,
5328
+ getPartnerTitlesSupabaseService
5290
5329
  ];
5291
5330
  var usePosService = () => {
5292
5331
  const { env } = useEnv();
@@ -5298,6 +5337,27 @@ var usePosService = () => {
5298
5337
  return service;
5299
5338
  };
5300
5339
 
5340
+ // src/hooks/view/use-get-city.ts
5341
+ import { useMutation as useMutation55 } from "@tanstack/react-query";
5342
+
5343
+ // src/hooks/view/use-get-country.ts
5344
+ import { useMutation as useMutation56 } from "@tanstack/react-query";
5345
+
5346
+ // src/hooks/view/use-get-partner-title.ts
5347
+ import { useMutation as useMutation57 } from "@tanstack/react-query";
5348
+
5349
+ // src/hooks/view/use-action-server-home.ts
5350
+ import { useMutation as useMutation58 } from "@tanstack/react-query";
5351
+
5352
+ // src/hooks/chart/use-read-group.ts
5353
+ import { useQuery as useQuery24 } from "@tanstack/react-query";
5354
+
5355
+ // src/hooks/chart/use-get-data-chart.ts
5356
+ import { useQuery as useQuery25 } from "@tanstack/react-query";
5357
+
5358
+ // src/hooks/pos/use-add-entity.ts
5359
+ import { useMutation as useMutation59 } from "@tanstack/react-query";
5360
+
5301
5361
  // src/hooks/pos/use-get-a-session.ts
5302
5362
  import { useMutation as useMutation60 } from "@tanstack/react-query";
5303
5363
 
@@ -5474,7 +5534,7 @@ import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
5474
5534
  // src/services/action-service/index.ts
5475
5535
  function useActionService() {
5476
5536
  const { env } = useEnv();
5477
- const loadAction = useCallback59(
5537
+ const loadAction = useCallback62(
5478
5538
  async ({
5479
5539
  idAction,
5480
5540
  context,
@@ -5498,7 +5558,7 @@ function useActionService() {
5498
5558
  },
5499
5559
  [env]
5500
5560
  );
5501
- const callButton = useCallback59(
5561
+ const callButton = useCallback62(
5502
5562
  async ({
5503
5563
  model,
5504
5564
  ids = [],
@@ -5532,7 +5592,7 @@ function useActionService() {
5532
5592
  },
5533
5593
  [env]
5534
5594
  );
5535
- const removeRows = useCallback59(
5595
+ const removeRows = useCallback62(
5536
5596
  async ({
5537
5597
  model,
5538
5598
  ids,
@@ -5558,7 +5618,7 @@ function useActionService() {
5558
5618
  },
5559
5619
  [env]
5560
5620
  );
5561
- const duplicateRecord = useCallback59(
5621
+ const duplicateRecord = useCallback62(
5562
5622
  async ({
5563
5623
  model,
5564
5624
  id,
@@ -5584,7 +5644,7 @@ function useActionService() {
5584
5644
  },
5585
5645
  [env]
5586
5646
  );
5587
- const getPrintReportName = useCallback59(
5647
+ const getPrintReportName = useCallback62(
5588
5648
  async ({ id }) => {
5589
5649
  const jsonData = {
5590
5650
  model: "ir.actions.report",
@@ -5602,7 +5662,7 @@ function useActionService() {
5602
5662
  },
5603
5663
  [env]
5604
5664
  );
5605
- const print = useCallback59(
5665
+ const print = useCallback62(
5606
5666
  async ({ id, report, db }) => {
5607
5667
  const jsonData = {
5608
5668
  report,
@@ -5620,7 +5680,7 @@ function useActionService() {
5620
5680
  },
5621
5681
  [env]
5622
5682
  );
5623
- const runAction = useCallback59(
5683
+ const runAction = useCallback62(
5624
5684
  async ({
5625
5685
  idAction,
5626
5686
  context,
@@ -5647,7 +5707,7 @@ function useActionService() {
5647
5707
  },
5648
5708
  [env]
5649
5709
  );
5650
- const generateSerialNumber = useCallback59(
5710
+ const generateSerialNumber = useCallback62(
5651
5711
  async ({
5652
5712
  kwargs,
5653
5713
  context,
@@ -5672,7 +5732,7 @@ function useActionService() {
5672
5732
  },
5673
5733
  [env]
5674
5734
  );
5675
- const actionServerHome = useCallback59(async () => {
5735
+ const actionServerHome = useCallback62(async () => {
5676
5736
  return env?.requests?.get("/action_server_home" /* ACTION_SERVER_HOME */);
5677
5737
  }, [env]);
5678
5738
  return {
@@ -5689,11 +5749,11 @@ function useActionService() {
5689
5749
  }
5690
5750
 
5691
5751
  // src/services/auth-service/index.ts
5692
- import { useCallback as useCallback60 } from "react";
5752
+ import { useCallback as useCallback63 } from "react";
5693
5753
  function useAuthService() {
5694
5754
  const { env } = useEnv();
5695
5755
  const supabase = useSupabaseOptional();
5696
- const login = useCallback60(
5756
+ const login = useCallback63(
5697
5757
  async (body) => {
5698
5758
  const payload = Object.fromEntries(
5699
5759
  Object.entries({
@@ -5718,7 +5778,7 @@ function useAuthService() {
5718
5778
  },
5719
5779
  [env]
5720
5780
  );
5721
- const loginTenantUser = useCallback60(
5781
+ const loginTenantUser = useCallback63(
5722
5782
  async (body) => {
5723
5783
  const payload = {
5724
5784
  email: body.email,
@@ -5733,7 +5793,7 @@ function useAuthService() {
5733
5793
  },
5734
5794
  [env]
5735
5795
  );
5736
- const forgotPassword = useCallback60(
5796
+ const forgotPassword = useCallback63(
5737
5797
  async (email) => {
5738
5798
  const bodyData = {
5739
5799
  login: email,
@@ -5747,7 +5807,7 @@ function useAuthService() {
5747
5807
  },
5748
5808
  [env]
5749
5809
  );
5750
- const forgotPasswordSSO = useCallback60(
5810
+ const forgotPasswordSSO = useCallback63(
5751
5811
  async ({
5752
5812
  email,
5753
5813
  with_context,
@@ -5770,7 +5830,7 @@ function useAuthService() {
5770
5830
  },
5771
5831
  [env]
5772
5832
  );
5773
- const resetPassword = useCallback60(
5833
+ const resetPassword = useCallback63(
5774
5834
  async (data, token) => {
5775
5835
  const bodyData = {
5776
5836
  token,
@@ -5785,7 +5845,7 @@ function useAuthService() {
5785
5845
  },
5786
5846
  [env]
5787
5847
  );
5788
- const resetPasswordSSO = useCallback60(
5848
+ const resetPasswordSSO = useCallback63(
5789
5849
  async ({
5790
5850
  method,
5791
5851
  password,
@@ -5808,7 +5868,7 @@ function useAuthService() {
5808
5868
  },
5809
5869
  [env]
5810
5870
  );
5811
- const updatePassword = useCallback60(
5871
+ const updatePassword = useCallback63(
5812
5872
  async (data, token) => {
5813
5873
  const bodyData = {
5814
5874
  token,
@@ -5823,7 +5883,7 @@ function useAuthService() {
5823
5883
  },
5824
5884
  [env]
5825
5885
  );
5826
- const isValidToken = useCallback60(
5886
+ const isValidToken = useCallback63(
5827
5887
  async (token) => {
5828
5888
  const bodyData = {
5829
5889
  token
@@ -5836,7 +5896,7 @@ function useAuthService() {
5836
5896
  },
5837
5897
  [env]
5838
5898
  );
5839
- const isValidActionToken = useCallback60(
5899
+ const isValidActionToken = useCallback63(
5840
5900
  async (actionToken) => {
5841
5901
  const bodyData = {};
5842
5902
  return env?.requests?.post("/action-token/validate" /* VALIDATE_ACTION_TOKEN */, bodyData, {
@@ -5849,7 +5909,7 @@ function useAuthService() {
5849
5909
  },
5850
5910
  [env]
5851
5911
  );
5852
- const loginSocial = useCallback60(
5912
+ const loginSocial = useCallback63(
5853
5913
  async ({
5854
5914
  db,
5855
5915
  state,
@@ -5867,13 +5927,13 @@ function useAuthService() {
5867
5927
  },
5868
5928
  [env]
5869
5929
  );
5870
- const getProviders = useCallback60(
5930
+ const getProviders = useCallback63(
5871
5931
  async (db) => {
5872
5932
  return env?.requests?.get("/oauth/providers", { params: { db } });
5873
5933
  },
5874
5934
  [env]
5875
5935
  );
5876
- const getAccessByCode = useCallback60(
5936
+ const getAccessByCode = useCallback63(
5877
5937
  async (code) => {
5878
5938
  const data = new URLSearchParams();
5879
5939
  data.append("code", code);
@@ -5893,7 +5953,7 @@ function useAuthService() {
5893
5953
  },
5894
5954
  [env]
5895
5955
  );
5896
- const logout = useCallback60(
5956
+ const logout = useCallback63(
5897
5957
  async (service) => {
5898
5958
  return env?.requests?.post(
5899
5959
  "/logout" /* LOGOUT */,
@@ -5910,7 +5970,7 @@ function useAuthService() {
5910
5970
  },
5911
5971
  [env]
5912
5972
  );
5913
- const getTenantMapping = useCallback60(
5973
+ const getTenantMapping = useCallback63(
5914
5974
  async ({ shortName, service }) => {
5915
5975
  const bodyData = {
5916
5976
  short_name: shortName
@@ -5928,7 +5988,7 @@ function useAuthService() {
5928
5988
  },
5929
5989
  [env]
5930
5990
  );
5931
- const getToken = useCallback60(
5991
+ const getToken = useCallback63(
5932
5992
  async ({
5933
5993
  phone,
5934
5994
  name,
@@ -5973,10 +6033,10 @@ function useAuthService() {
5973
6033
  }
5974
6034
 
5975
6035
  // src/services/company-service/index.ts
5976
- import { useCallback as useCallback61 } from "react";
6036
+ import { useCallback as useCallback64 } from "react";
5977
6037
  function useCompanyService() {
5978
6038
  const { env } = useEnv();
5979
- const getCurrentCompany = useCallback61(
6039
+ const getCurrentCompany = useCallback64(
5980
6040
  async (service, extraHeaders) => {
5981
6041
  return await env.requests.get(
5982
6042
  "/company" /* COMPANY_PATH */,
@@ -5993,7 +6053,7 @@ function useCompanyService() {
5993
6053
  },
5994
6054
  [env]
5995
6055
  );
5996
- const getInfoCompany = useCallback61(
6056
+ const getInfoCompany = useCallback64(
5997
6057
  async (id, service) => {
5998
6058
  const jsonData = {
5999
6059
  ids: [id],
@@ -6029,10 +6089,10 @@ function useCompanyService() {
6029
6089
  }
6030
6090
 
6031
6091
  // src/services/excel-service/index.ts
6032
- import { useCallback as useCallback62 } from "react";
6092
+ import { useCallback as useCallback65 } from "react";
6033
6093
  function useExcelService() {
6034
6094
  const { env } = useEnv();
6035
- const uploadFileExcel = useCallback62(
6095
+ const uploadFileExcel = useCallback65(
6036
6096
  async ({
6037
6097
  formData,
6038
6098
  service,
@@ -6049,7 +6109,7 @@ function useExcelService() {
6049
6109
  },
6050
6110
  [env]
6051
6111
  );
6052
- const uploadIdFile = useCallback62(
6112
+ const uploadIdFile = useCallback65(
6053
6113
  async ({
6054
6114
  formData,
6055
6115
  service,
@@ -6066,7 +6126,7 @@ function useExcelService() {
6066
6126
  },
6067
6127
  [env]
6068
6128
  );
6069
- const parsePreview = useCallback62(
6129
+ const parsePreview = useCallback65(
6070
6130
  async ({
6071
6131
  id,
6072
6132
  selectedSheet,
@@ -6115,7 +6175,7 @@ function useExcelService() {
6115
6175
  },
6116
6176
  [env]
6117
6177
  );
6118
- const executeImport = useCallback62(
6178
+ const executeImport = useCallback65(
6119
6179
  async ({
6120
6180
  columns,
6121
6181
  fields,
@@ -6149,7 +6209,7 @@ function useExcelService() {
6149
6209
  },
6150
6210
  [env]
6151
6211
  );
6152
- const getFileExcel = useCallback62(
6212
+ const getFileExcel = useCallback65(
6153
6213
  async ({
6154
6214
  model,
6155
6215
  service,
@@ -6173,7 +6233,7 @@ function useExcelService() {
6173
6233
  },
6174
6234
  [env]
6175
6235
  );
6176
- const getFieldExport = useCallback62(
6236
+ const getFieldExport = useCallback65(
6177
6237
  async ({
6178
6238
  ids,
6179
6239
  model,
@@ -6213,7 +6273,7 @@ function useExcelService() {
6213
6273
  },
6214
6274
  [env]
6215
6275
  );
6216
- const exportExcel = useCallback62(
6276
+ const exportExcel = useCallback65(
6217
6277
  async ({
6218
6278
  model,
6219
6279
  domain,
@@ -6261,10 +6321,10 @@ function useExcelService() {
6261
6321
  }
6262
6322
 
6263
6323
  // src/services/form-service/index.ts
6264
- import { useCallback as useCallback63 } from "react";
6324
+ import { useCallback as useCallback66 } from "react";
6265
6325
  function useFormService() {
6266
6326
  const { env } = useEnv();
6267
- const getComment = useCallback63(
6327
+ const getComment = useCallback66(
6268
6328
  async ({ data }) => {
6269
6329
  const jsonData = {
6270
6330
  thread_id: data.thread_id,
@@ -6282,7 +6342,7 @@ function useFormService() {
6282
6342
  },
6283
6343
  [env]
6284
6344
  );
6285
- const getThreadData = useCallback63(
6345
+ const getThreadData = useCallback66(
6286
6346
  async ({
6287
6347
  data,
6288
6348
  xNode,
@@ -6309,7 +6369,7 @@ function useFormService() {
6309
6369
  },
6310
6370
  [env]
6311
6371
  );
6312
- const getThreadMessages = useCallback63(
6372
+ const getThreadMessages = useCallback66(
6313
6373
  async ({
6314
6374
  data,
6315
6375
  xNode,
@@ -6335,7 +6395,7 @@ function useFormService() {
6335
6395
  },
6336
6396
  [env]
6337
6397
  );
6338
- const sentComment = useCallback63(
6398
+ const sentComment = useCallback66(
6339
6399
  async ({ data }) => {
6340
6400
  const jsonData = {
6341
6401
  context: {
@@ -6363,7 +6423,7 @@ function useFormService() {
6363
6423
  },
6364
6424
  [env]
6365
6425
  );
6366
- const deleteComment = useCallback63(
6426
+ const deleteComment = useCallback66(
6367
6427
  async ({ data }) => {
6368
6428
  const jsonData = {
6369
6429
  attachment_ids: [],
@@ -6379,7 +6439,7 @@ function useFormService() {
6379
6439
  },
6380
6440
  [env]
6381
6441
  );
6382
- const getImage = useCallback63(
6442
+ const getImage = useCallback66(
6383
6443
  async ({ data }) => {
6384
6444
  return env.requests.get(
6385
6445
  `${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
@@ -6392,7 +6452,7 @@ function useFormService() {
6392
6452
  },
6393
6453
  [env]
6394
6454
  );
6395
- const uploadImage = useCallback63(
6455
+ const uploadImage = useCallback66(
6396
6456
  async ({
6397
6457
  formData,
6398
6458
  service,
@@ -6411,7 +6471,7 @@ function useFormService() {
6411
6471
  },
6412
6472
  [env]
6413
6473
  );
6414
- const uploadFile = useCallback63(
6474
+ const uploadFile = useCallback66(
6415
6475
  async ({
6416
6476
  formData,
6417
6477
  service,
@@ -6431,7 +6491,7 @@ function useFormService() {
6431
6491
  },
6432
6492
  [env]
6433
6493
  );
6434
- const getFormView = useCallback63(
6494
+ const getFormView = useCallback66(
6435
6495
  async ({ data }) => {
6436
6496
  const jsonData = {
6437
6497
  model: data.model,
@@ -6447,7 +6507,7 @@ function useFormService() {
6447
6507
  },
6448
6508
  [env]
6449
6509
  );
6450
- const changeStatus = useCallback63(
6510
+ const changeStatus = useCallback66(
6451
6511
  async ({ data }) => {
6452
6512
  const vals = {
6453
6513
  [data.name]: data.stage_id
@@ -6476,7 +6536,7 @@ function useFormService() {
6476
6536
  },
6477
6537
  [env]
6478
6538
  );
6479
- const getExternalTab = useCallback63(
6539
+ const getExternalTab = useCallback66(
6480
6540
  async ({ method, context, service, xNode }) => {
6481
6541
  return env?.requests?.post(
6482
6542
  "/call" /* CALL_PATH */,
@@ -6511,10 +6571,10 @@ function useFormService() {
6511
6571
  }
6512
6572
 
6513
6573
  // src/services/kanban-service/index.ts
6514
- import { useCallback as useCallback64 } from "react";
6574
+ import { useCallback as useCallback67 } from "react";
6515
6575
  function useKanbanService() {
6516
6576
  const { env } = useEnv();
6517
- const getGroups = useCallback64(
6577
+ const getGroups = useCallback67(
6518
6578
  async ({ model, width_context }) => {
6519
6579
  const jsonData = {
6520
6580
  model,
@@ -6534,7 +6594,7 @@ function useKanbanService() {
6534
6594
  },
6535
6595
  [env]
6536
6596
  );
6537
- const getProgressBar = useCallback64(
6597
+ const getProgressBar = useCallback67(
6538
6598
  async ({ field, color, model, width_context }) => {
6539
6599
  const jsonData = {
6540
6600
  model,
@@ -6564,10 +6624,10 @@ function useKanbanService() {
6564
6624
  }
6565
6625
 
6566
6626
  // src/services/model-service/index.ts
6567
- import { useCallback as useCallback65 } from "react";
6627
+ import { useCallback as useCallback68 } from "react";
6568
6628
  function useModelService() {
6569
6629
  const { env } = useEnv();
6570
- const getListMyBankAccount = useCallback65(
6630
+ const getListMyBankAccount = useCallback68(
6571
6631
  async ({
6572
6632
  domain,
6573
6633
  spectification,
@@ -6591,7 +6651,7 @@ function useModelService() {
6591
6651
  },
6592
6652
  [env]
6593
6653
  );
6594
- const getCurrency = useCallback65(async () => {
6654
+ const getCurrency = useCallback68(async () => {
6595
6655
  const jsonData = {
6596
6656
  model: "res.currency",
6597
6657
  method: "web_search_read",
@@ -6611,7 +6671,7 @@ function useModelService() {
6611
6671
  }
6612
6672
  });
6613
6673
  }, [env]);
6614
- const getConversionRate = useCallback65(async () => {
6674
+ const getConversionRate = useCallback68(async () => {
6615
6675
  const jsonData = {
6616
6676
  model: "res.currency",
6617
6677
  method: "web_search_read",
@@ -6637,7 +6697,7 @@ function useModelService() {
6637
6697
  }
6638
6698
  });
6639
6699
  }, [env]);
6640
- const getAll = useCallback65(
6700
+ const getAll = useCallback68(
6641
6701
  async ({
6642
6702
  data,
6643
6703
  service,
@@ -6679,7 +6739,7 @@ function useModelService() {
6679
6739
  },
6680
6740
  [env]
6681
6741
  );
6682
- const getListCalendar = useCallback65(
6742
+ const getListCalendar = useCallback68(
6683
6743
  async ({ data }) => {
6684
6744
  const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
6685
6745
  fields: data.fields,
@@ -6710,7 +6770,7 @@ function useModelService() {
6710
6770
  },
6711
6771
  [env]
6712
6772
  );
6713
- const getList = useCallback65(
6773
+ const getList = useCallback68(
6714
6774
  async ({
6715
6775
  model,
6716
6776
  ids = [],
@@ -6742,7 +6802,7 @@ function useModelService() {
6742
6802
  },
6743
6803
  [env]
6744
6804
  );
6745
- const getDetail = useCallback65(
6805
+ const getDetail = useCallback68(
6746
6806
  async ({
6747
6807
  ids = [],
6748
6808
  model,
@@ -6774,7 +6834,7 @@ function useModelService() {
6774
6834
  },
6775
6835
  [env]
6776
6836
  );
6777
- const save = useCallback65(
6837
+ const save = useCallback68(
6778
6838
  async ({
6779
6839
  model,
6780
6840
  ids = [],
@@ -6809,7 +6869,7 @@ function useModelService() {
6809
6869
  },
6810
6870
  [env]
6811
6871
  );
6812
- const deleteApi = useCallback65(
6872
+ const deleteApi = useCallback68(
6813
6873
  async ({ ids = [], model, service }) => {
6814
6874
  const jsonData = {
6815
6875
  model,
@@ -6829,7 +6889,7 @@ function useModelService() {
6829
6889
  },
6830
6890
  [env]
6831
6891
  );
6832
- const onChange = useCallback65(
6892
+ const onChange = useCallback68(
6833
6893
  async ({
6834
6894
  ids = [],
6835
6895
  model,
@@ -6865,7 +6925,7 @@ function useModelService() {
6865
6925
  },
6866
6926
  [env]
6867
6927
  );
6868
- const getListFieldsOnchange = useCallback65(
6928
+ const getListFieldsOnchange = useCallback68(
6869
6929
  async ({
6870
6930
  model,
6871
6931
  service,
@@ -6889,7 +6949,7 @@ function useModelService() {
6889
6949
  },
6890
6950
  [env]
6891
6951
  );
6892
- const parseORMOdoo = useCallback65((data) => {
6952
+ const parseORMOdoo = useCallback68((data) => {
6893
6953
  for (const key in data) {
6894
6954
  if (key === "display_name") {
6895
6955
  delete data[key];
@@ -6900,7 +6960,7 @@ function useModelService() {
6900
6960
  }
6901
6961
  return { ...data };
6902
6962
  }, []);
6903
- const toDataJS = useCallback65(
6963
+ const toDataJS = useCallback68(
6904
6964
  (data, viewData, model) => {
6905
6965
  for (const key in data) {
6906
6966
  if (data[key] === false) {
@@ -6958,10 +7018,10 @@ function useModelService() {
6958
7018
  }
6959
7019
 
6960
7020
  // src/services/user-service/index.ts
6961
- import { useCallback as useCallback66 } from "react";
7021
+ import { useCallback as useCallback69 } from "react";
6962
7022
  function useUserService() {
6963
7023
  const { env } = useEnv();
6964
- const getProfile = useCallback66(
7024
+ const getProfile = useCallback69(
6965
7025
  async (service, path, extraHeaders) => {
6966
7026
  return env?.requests?.get(
6967
7027
  path || "/userinfo" /* PROFILE_PATH */,
@@ -6978,7 +7038,7 @@ function useUserService() {
6978
7038
  },
6979
7039
  [env]
6980
7040
  );
6981
- const getUser = useCallback66(
7041
+ const getUser = useCallback69(
6982
7042
  async ({ context, id }) => {
6983
7043
  const jsonData = {
6984
7044
  model: "res.users",
@@ -7016,7 +7076,7 @@ function useUserService() {
7016
7076
  },
7017
7077
  [env]
7018
7078
  );
7019
- const switchUserLocale = useCallback66(
7079
+ const switchUserLocale = useCallback69(
7020
7080
  async ({ id, values, service }) => {
7021
7081
  const jsonData = {
7022
7082
  model: "res.users",
@@ -7044,10 +7104,10 @@ function useUserService() {
7044
7104
  }
7045
7105
 
7046
7106
  // src/services/view-service/index.ts
7047
- import { useCallback as useCallback67 } from "react";
7107
+ import { useCallback as useCallback70 } from "react";
7048
7108
  function useViewService() {
7049
7109
  const { env } = useEnv();
7050
- const getView = useCallback67(
7110
+ const getView = useCallback70(
7051
7111
  async ({
7052
7112
  model,
7053
7113
  views,
@@ -7087,7 +7147,7 @@ function useViewService() {
7087
7147
  },
7088
7148
  [env]
7089
7149
  );
7090
- const getMenu = useCallback67(
7150
+ const getMenu = useCallback70(
7091
7151
  async (context, specification, domain, service) => {
7092
7152
  const jsonData = {
7093
7153
  model: "ir.ui.menu" /* MENU */,
@@ -7118,7 +7178,7 @@ function useViewService() {
7118
7178
  },
7119
7179
  [env]
7120
7180
  );
7121
- const getActionDetail = useCallback67(
7181
+ const getActionDetail = useCallback70(
7122
7182
  async (aid, context) => {
7123
7183
  const jsonData = {
7124
7184
  model: "ir.actions.act_window" /* WINDOW_ACTION */,
@@ -7148,7 +7208,7 @@ function useViewService() {
7148
7208
  },
7149
7209
  [env]
7150
7210
  );
7151
- const getResequence = useCallback67(
7211
+ const getResequence = useCallback70(
7152
7212
  async ({
7153
7213
  model,
7154
7214
  ids,
@@ -7178,7 +7238,7 @@ function useViewService() {
7178
7238
  },
7179
7239
  [env]
7180
7240
  );
7181
- const getSelectionItem = useCallback67(
7241
+ const getSelectionItem = useCallback70(
7182
7242
  async ({
7183
7243
  data,
7184
7244
  service,
@@ -7215,7 +7275,7 @@ function useViewService() {
7215
7275
  },
7216
7276
  [env]
7217
7277
  );
7218
- const loadMessages = useCallback67(async () => {
7278
+ const loadMessages = useCallback70(async () => {
7219
7279
  return env.requests.post(
7220
7280
  "/load_message_failures" /* LOAD_MESSAGE */,
7221
7281
  {},
@@ -7226,14 +7286,14 @@ function useViewService() {
7226
7286
  }
7227
7287
  );
7228
7288
  }, [env]);
7229
- const getVersion = useCallback67(async () => {
7289
+ const getVersion = useCallback70(async () => {
7230
7290
  return env?.requests?.get("", {
7231
7291
  headers: {
7232
7292
  "Content-Type": "application/json"
7233
7293
  }
7234
7294
  });
7235
7295
  }, [env]);
7236
- const grantAccess = useCallback67(
7296
+ const grantAccess = useCallback70(
7237
7297
  async ({
7238
7298
  redirect_uri,
7239
7299
  state,
@@ -7260,7 +7320,7 @@ function useViewService() {
7260
7320
  },
7261
7321
  [env]
7262
7322
  );
7263
- const removeTotpSetUp = useCallback67(
7323
+ const removeTotpSetUp = useCallback70(
7264
7324
  async ({ method, token }) => {
7265
7325
  const jsonData = {
7266
7326
  method,
@@ -7281,7 +7341,7 @@ function useViewService() {
7281
7341
  },
7282
7342
  [env]
7283
7343
  );
7284
- const requestSetupTotp = useCallback67(
7344
+ const requestSetupTotp = useCallback70(
7285
7345
  async ({ method, token }) => {
7286
7346
  const jsonData = {
7287
7347
  method,
@@ -7300,7 +7360,7 @@ function useViewService() {
7300
7360
  },
7301
7361
  [env]
7302
7362
  );
7303
- const settingsWebRead2fa = useCallback67(
7363
+ const settingsWebRead2fa = useCallback70(
7304
7364
  async ({
7305
7365
  method,
7306
7366
  model,
@@ -7328,7 +7388,7 @@ function useViewService() {
7328
7388
  },
7329
7389
  [env]
7330
7390
  );
7331
- const signInSSO = useCallback67(
7391
+ const signInSSO = useCallback70(
7332
7392
  async ({
7333
7393
  redirect_uri,
7334
7394
  state,
@@ -7360,7 +7420,7 @@ function useViewService() {
7360
7420
  },
7361
7421
  [env]
7362
7422
  );
7363
- const verify2FA = useCallback67(
7423
+ const verify2FA = useCallback70(
7364
7424
  ({
7365
7425
  method,
7366
7426
  with_context,
@@ -7393,7 +7453,7 @@ function useViewService() {
7393
7453
  },
7394
7454
  [env]
7395
7455
  );
7396
- const get2FAMethods = useCallback67(
7456
+ const get2FAMethods = useCallback70(
7397
7457
  ({ method, with_context }) => {
7398
7458
  const jsonData = {
7399
7459
  method,
@@ -7412,7 +7472,7 @@ function useViewService() {
7412
7472
  },
7413
7473
  [env]
7414
7474
  );
7415
- const verifyTotp = useCallback67(
7475
+ const verifyTotp = useCallback70(
7416
7476
  ({
7417
7477
  method,
7418
7478
  action_token,
@@ -7437,7 +7497,7 @@ function useViewService() {
7437
7497
  },
7438
7498
  [env]
7439
7499
  );
7440
- const getNotifications = useCallback67(
7500
+ const getNotifications = useCallback70(
7441
7501
  async ({
7442
7502
  service,
7443
7503
  xNode,
@@ -7457,7 +7517,7 @@ function useViewService() {
7457
7517
  },
7458
7518
  [env]
7459
7519
  );
7460
- const getCountry = useCallback67(
7520
+ const getCountry = useCallback70(
7461
7521
  async ({
7462
7522
  service,
7463
7523
  xNode,
@@ -7484,7 +7544,7 @@ function useViewService() {
7484
7544
  },
7485
7545
  [env]
7486
7546
  );
7487
- const getCity = useCallback67(
7547
+ const getCity = useCallback70(
7488
7548
  async ({
7489
7549
  service,
7490
7550
  xNode,
@@ -7511,7 +7571,7 @@ function useViewService() {
7511
7571
  },
7512
7572
  [env]
7513
7573
  );
7514
- const getWard = useCallback67(
7574
+ const getWard = useCallback70(
7515
7575
  async ({
7516
7576
  service,
7517
7577
  xNode,
@@ -7536,7 +7596,7 @@ function useViewService() {
7536
7596
  },
7537
7597
  [env]
7538
7598
  );
7539
- const getPartnerTitle = useCallback67(
7599
+ const getPartnerTitle = useCallback70(
7540
7600
  async ({
7541
7601
  service,
7542
7602
  xNode,
@@ -7588,10 +7648,10 @@ function useViewService() {
7588
7648
  }
7589
7649
 
7590
7650
  // src/services/dashboard-service/index.ts
7591
- import { useCallback as useCallback68 } from "react";
7651
+ import { useCallback as useCallback71 } from "react";
7592
7652
  function useDashboardService() {
7593
7653
  const { env } = useEnv();
7594
- const readGroup = useCallback68(
7654
+ const readGroup = useCallback71(
7595
7655
  async ({
7596
7656
  service,
7597
7657
  xNode,
@@ -7608,7 +7668,7 @@ function useDashboardService() {
7608
7668
  },
7609
7669
  [env]
7610
7670
  );
7611
- const getDataChart = useCallback68(
7671
+ const getDataChart = useCallback71(
7612
7672
  async ({
7613
7673
  service,
7614
7674
  xNode,