@fctc/interface-logic 1.10.9 → 2.0.0

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.js CHANGED
@@ -43,7 +43,7 @@ __export(services_exports, {
43
43
  module.exports = __toCommonJS(services_exports);
44
44
 
45
45
  // src/services/action-service/index.ts
46
- var import_react5 = require("react");
46
+ var import_react6 = require("react");
47
47
 
48
48
  // src/constants/api/uri-constant.ts
49
49
  var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
@@ -3048,10 +3048,14 @@ var import_react_query68 = require("@tanstack/react-query");
3048
3048
  var import_jsx_runtime6 = require("react/jsx-runtime");
3049
3049
  var ServiceContext = (0, import_react4.createContext)(null);
3050
3050
 
3051
+ // src/provider/meta-provider.tsx
3052
+ var import_react5 = require("react");
3053
+ var import_jsx_runtime7 = require("react/jsx-runtime");
3054
+
3051
3055
  // src/services/action-service/index.ts
3052
3056
  function useActionService() {
3053
3057
  const { env } = useEnv();
3054
- const loadAction = (0, import_react5.useCallback)(
3058
+ const loadAction = (0, import_react6.useCallback)(
3055
3059
  async ({
3056
3060
  idAction,
3057
3061
  context
@@ -3066,7 +3070,7 @@ function useActionService() {
3066
3070
  },
3067
3071
  [env]
3068
3072
  );
3069
- const callButton = (0, import_react5.useCallback)(
3073
+ const callButton = (0, import_react6.useCallback)(
3070
3074
  async ({
3071
3075
  model,
3072
3076
  ids = [],
@@ -3090,7 +3094,7 @@ function useActionService() {
3090
3094
  },
3091
3095
  [env]
3092
3096
  );
3093
- const removeRows = (0, import_react5.useCallback)(
3097
+ const removeRows = (0, import_react6.useCallback)(
3094
3098
  async ({
3095
3099
  model,
3096
3100
  ids,
@@ -3108,7 +3112,7 @@ function useActionService() {
3108
3112
  },
3109
3113
  [env]
3110
3114
  );
3111
- const duplicateRecord = (0, import_react5.useCallback)(
3115
+ const duplicateRecord = (0, import_react6.useCallback)(
3112
3116
  async ({
3113
3117
  model,
3114
3118
  id,
@@ -3126,7 +3130,7 @@ function useActionService() {
3126
3130
  },
3127
3131
  [env]
3128
3132
  );
3129
- const getPrintReportName = (0, import_react5.useCallback)(
3133
+ const getPrintReportName = (0, import_react6.useCallback)(
3130
3134
  async ({ id }) => {
3131
3135
  const jsonData = {
3132
3136
  model: "ir.actions.report",
@@ -3144,7 +3148,7 @@ function useActionService() {
3144
3148
  },
3145
3149
  [env]
3146
3150
  );
3147
- const print = (0, import_react5.useCallback)(
3151
+ const print = (0, import_react6.useCallback)(
3148
3152
  async ({ id, report, db }) => {
3149
3153
  const jsonData = {
3150
3154
  report,
@@ -3162,7 +3166,7 @@ function useActionService() {
3162
3166
  },
3163
3167
  [env]
3164
3168
  );
3165
- const runAction = (0, import_react5.useCallback)(
3169
+ const runAction = (0, import_react6.useCallback)(
3166
3170
  async ({
3167
3171
  idAction,
3168
3172
  context
@@ -3189,10 +3193,10 @@ function useActionService() {
3189
3193
  }
3190
3194
 
3191
3195
  // src/services/auth-service/index.ts
3192
- var import_react6 = require("react");
3196
+ var import_react7 = require("react");
3193
3197
  function useAuthService() {
3194
3198
  const { env } = useEnv();
3195
- const login = (0, import_react6.useCallback)(
3199
+ const login = (0, import_react7.useCallback)(
3196
3200
  async (body) => {
3197
3201
  const payload = Object.fromEntries(
3198
3202
  Object.entries({
@@ -3212,7 +3216,7 @@ function useAuthService() {
3212
3216
  },
3213
3217
  [env]
3214
3218
  );
3215
- const forgotPassword = (0, import_react6.useCallback)(
3219
+ const forgotPassword = (0, import_react7.useCallback)(
3216
3220
  async (email) => {
3217
3221
  const bodyData = {
3218
3222
  login: email,
@@ -3226,7 +3230,7 @@ function useAuthService() {
3226
3230
  },
3227
3231
  [env]
3228
3232
  );
3229
- const forgotPasswordSSO = (0, import_react6.useCallback)(
3233
+ const forgotPasswordSSO = (0, import_react7.useCallback)(
3230
3234
  async ({
3231
3235
  email,
3232
3236
  with_context,
@@ -3249,7 +3253,7 @@ function useAuthService() {
3249
3253
  },
3250
3254
  [env]
3251
3255
  );
3252
- const resetPassword = (0, import_react6.useCallback)(
3256
+ const resetPassword = (0, import_react7.useCallback)(
3253
3257
  async (data, token) => {
3254
3258
  const bodyData = {
3255
3259
  token,
@@ -3264,7 +3268,7 @@ function useAuthService() {
3264
3268
  },
3265
3269
  [env]
3266
3270
  );
3267
- const resetPasswordSSO = (0, import_react6.useCallback)(
3271
+ const resetPasswordSSO = (0, import_react7.useCallback)(
3268
3272
  async ({
3269
3273
  method,
3270
3274
  password,
@@ -3287,7 +3291,7 @@ function useAuthService() {
3287
3291
  },
3288
3292
  [env]
3289
3293
  );
3290
- const updatePassword = (0, import_react6.useCallback)(
3294
+ const updatePassword = (0, import_react7.useCallback)(
3291
3295
  async (data, token) => {
3292
3296
  const bodyData = {
3293
3297
  token,
@@ -3302,7 +3306,7 @@ function useAuthService() {
3302
3306
  },
3303
3307
  [env]
3304
3308
  );
3305
- const isValidToken = (0, import_react6.useCallback)(
3309
+ const isValidToken = (0, import_react7.useCallback)(
3306
3310
  async (token) => {
3307
3311
  const bodyData = {
3308
3312
  token
@@ -3315,7 +3319,7 @@ function useAuthService() {
3315
3319
  },
3316
3320
  [env]
3317
3321
  );
3318
- const isValidActionToken = (0, import_react6.useCallback)(
3322
+ const isValidActionToken = (0, import_react7.useCallback)(
3319
3323
  async (actionToken, path) => {
3320
3324
  return env?.requests?.post(
3321
3325
  path,
@@ -3331,7 +3335,7 @@ function useAuthService() {
3331
3335
  },
3332
3336
  [env]
3333
3337
  );
3334
- const loginSocial = (0, import_react6.useCallback)(
3338
+ const loginSocial = (0, import_react7.useCallback)(
3335
3339
  async ({
3336
3340
  db,
3337
3341
  state,
@@ -3349,13 +3353,13 @@ function useAuthService() {
3349
3353
  },
3350
3354
  [env]
3351
3355
  );
3352
- const getProviders = (0, import_react6.useCallback)(
3356
+ const getProviders = (0, import_react7.useCallback)(
3353
3357
  async (db) => {
3354
3358
  return env?.requests?.get("/oauth/providers", { params: { db } });
3355
3359
  },
3356
3360
  [env]
3357
3361
  );
3358
- const getAccessByCode = (0, import_react6.useCallback)(
3362
+ const getAccessByCode = (0, import_react7.useCallback)(
3359
3363
  async (code) => {
3360
3364
  const data = new URLSearchParams();
3361
3365
  data.append("code", code);
@@ -3374,7 +3378,7 @@ function useAuthService() {
3374
3378
  },
3375
3379
  [env]
3376
3380
  );
3377
- const logout = (0, import_react6.useCallback)(
3381
+ const logout = (0, import_react7.useCallback)(
3378
3382
  async (data) => {
3379
3383
  console.log(data);
3380
3384
  return env?.requests?.post(
@@ -3408,17 +3412,17 @@ function useAuthService() {
3408
3412
  }
3409
3413
 
3410
3414
  // src/services/company-service/index.ts
3411
- var import_react7 = require("react");
3415
+ var import_react8 = require("react");
3412
3416
  function useCompanyService() {
3413
3417
  const { env } = useEnv();
3414
- const getCurrentCompany = (0, import_react7.useCallback)(async () => {
3418
+ const getCurrentCompany = (0, import_react8.useCallback)(async () => {
3415
3419
  return await env.requests.get("/company" /* COMPANY_PATH */, {
3416
3420
  headers: {
3417
3421
  "Content-Type": "application/json"
3418
3422
  }
3419
3423
  });
3420
3424
  }, [env]);
3421
- const getInfoCompany = (0, import_react7.useCallback)(
3425
+ const getInfoCompany = (0, import_react8.useCallback)(
3422
3426
  async (id) => {
3423
3427
  const jsonData = {
3424
3428
  ids: [id],
@@ -3449,10 +3453,10 @@ function useCompanyService() {
3449
3453
  }
3450
3454
 
3451
3455
  // src/services/excel-service/index.ts
3452
- var import_react8 = require("react");
3456
+ var import_react9 = require("react");
3453
3457
  function useExcelService() {
3454
3458
  const { env } = useEnv();
3455
- const uploadFile = (0, import_react8.useCallback)(
3459
+ const uploadFile = (0, import_react9.useCallback)(
3456
3460
  async ({ formData }) => {
3457
3461
  return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData, {
3458
3462
  headers: {
@@ -3462,7 +3466,7 @@ function useExcelService() {
3462
3466
  },
3463
3467
  [env]
3464
3468
  );
3465
- const uploadIdFile = (0, import_react8.useCallback)(
3469
+ const uploadIdFile = (0, import_react9.useCallback)(
3466
3470
  async ({ formData }) => {
3467
3471
  return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData, {
3468
3472
  headers: {
@@ -3472,7 +3476,7 @@ function useExcelService() {
3472
3476
  },
3473
3477
  [env]
3474
3478
  );
3475
- const parsePreview = (0, import_react8.useCallback)(
3479
+ const parsePreview = (0, import_react9.useCallback)(
3476
3480
  async ({
3477
3481
  id,
3478
3482
  selectedSheet,
@@ -3516,7 +3520,7 @@ function useExcelService() {
3516
3520
  },
3517
3521
  [env]
3518
3522
  );
3519
- const executeImport = (0, import_react8.useCallback)(
3523
+ const executeImport = (0, import_react9.useCallback)(
3520
3524
  async ({
3521
3525
  columns,
3522
3526
  fields,
@@ -3545,7 +3549,7 @@ function useExcelService() {
3545
3549
  },
3546
3550
  [env]
3547
3551
  );
3548
- const getFileExcel = (0, import_react8.useCallback)(
3552
+ const getFileExcel = (0, import_react9.useCallback)(
3549
3553
  async ({ model }) => {
3550
3554
  const jsonData = {
3551
3555
  model,
@@ -3556,7 +3560,7 @@ function useExcelService() {
3556
3560
  },
3557
3561
  [env]
3558
3562
  );
3559
- const getFieldExport = (0, import_react8.useCallback)(
3563
+ const getFieldExport = (0, import_react9.useCallback)(
3560
3564
  async ({
3561
3565
  ids,
3562
3566
  model,
@@ -3587,7 +3591,7 @@ function useExcelService() {
3587
3591
  },
3588
3592
  [env]
3589
3593
  );
3590
- const exportExcel = (0, import_react8.useCallback)(
3594
+ const exportExcel = (0, import_react9.useCallback)(
3591
3595
  async ({
3592
3596
  model,
3593
3597
  domain,
@@ -3623,10 +3627,10 @@ function useExcelService() {
3623
3627
  }
3624
3628
 
3625
3629
  // src/services/form-service/index.ts
3626
- var import_react9 = require("react");
3630
+ var import_react10 = require("react");
3627
3631
  function useFormService() {
3628
3632
  const { env } = useEnv();
3629
- const getComment = (0, import_react9.useCallback)(
3633
+ const getComment = (0, import_react10.useCallback)(
3630
3634
  async ({ data }) => {
3631
3635
  const jsonData = {
3632
3636
  thread_id: data.thread_id,
@@ -3644,7 +3648,7 @@ function useFormService() {
3644
3648
  },
3645
3649
  [env]
3646
3650
  );
3647
- const sentComment = (0, import_react9.useCallback)(
3651
+ const sentComment = (0, import_react10.useCallback)(
3648
3652
  async ({ data }) => {
3649
3653
  const jsonData = {
3650
3654
  context: {
@@ -3672,7 +3676,7 @@ function useFormService() {
3672
3676
  },
3673
3677
  [env]
3674
3678
  );
3675
- const deleteComment = (0, import_react9.useCallback)(
3679
+ const deleteComment = (0, import_react10.useCallback)(
3676
3680
  async ({ data }) => {
3677
3681
  const jsonData = {
3678
3682
  attachment_ids: [],
@@ -3688,7 +3692,7 @@ function useFormService() {
3688
3692
  },
3689
3693
  [env]
3690
3694
  );
3691
- const getImage = (0, import_react9.useCallback)(
3695
+ const getImage = (0, import_react10.useCallback)(
3692
3696
  async ({ data }) => {
3693
3697
  return env.requests.get(
3694
3698
  `${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
@@ -3701,7 +3705,7 @@ function useFormService() {
3701
3705
  },
3702
3706
  [env]
3703
3707
  );
3704
- const uploadImage = (0, import_react9.useCallback)(
3708
+ const uploadImage = (0, import_react10.useCallback)(
3705
3709
  async ({ data }) => {
3706
3710
  return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, data, {
3707
3711
  headers: {
@@ -3711,7 +3715,7 @@ function useFormService() {
3711
3715
  },
3712
3716
  [env]
3713
3717
  );
3714
- const getFormView = (0, import_react9.useCallback)(
3718
+ const getFormView = (0, import_react10.useCallback)(
3715
3719
  async ({ data }) => {
3716
3720
  const jsonData = {
3717
3721
  model: data.model,
@@ -3727,7 +3731,7 @@ function useFormService() {
3727
3731
  },
3728
3732
  [env]
3729
3733
  );
3730
- const changeStatus = (0, import_react9.useCallback)(
3734
+ const changeStatus = (0, import_react10.useCallback)(
3731
3735
  async ({ data }) => {
3732
3736
  const vals = {
3733
3737
  [data.name]: data.stage_id
@@ -3768,10 +3772,10 @@ function useFormService() {
3768
3772
  }
3769
3773
 
3770
3774
  // src/services/kanban-service/index.ts
3771
- var import_react10 = require("react");
3775
+ var import_react11 = require("react");
3772
3776
  function useKanbanService() {
3773
3777
  const { env } = useEnv();
3774
- const getGroups = (0, import_react10.useCallback)(
3778
+ const getGroups = (0, import_react11.useCallback)(
3775
3779
  async ({ model, width_context }) => {
3776
3780
  const jsonData = {
3777
3781
  model,
@@ -3791,7 +3795,7 @@ function useKanbanService() {
3791
3795
  },
3792
3796
  [env]
3793
3797
  );
3794
- const getProgressBar = (0, import_react10.useCallback)(
3798
+ const getProgressBar = (0, import_react11.useCallback)(
3795
3799
  async ({ field, color, model, width_context }) => {
3796
3800
  const jsonData = {
3797
3801
  model,
@@ -3821,11 +3825,11 @@ function useKanbanService() {
3821
3825
  }
3822
3826
 
3823
3827
  // src/services/model-service/index.ts
3824
- var import_react11 = require("react");
3828
+ var import_react12 = require("react");
3825
3829
  var OBJECT_POSITION = 2;
3826
3830
  function useModelService() {
3827
3831
  const { env } = useEnv();
3828
- const getListMyBankAccount = (0, import_react11.useCallback)(
3832
+ const getListMyBankAccount = (0, import_react12.useCallback)(
3829
3833
  async ({
3830
3834
  domain,
3831
3835
  spectification,
@@ -3849,7 +3853,7 @@ function useModelService() {
3849
3853
  },
3850
3854
  [env]
3851
3855
  );
3852
- const getCurrency = (0, import_react11.useCallback)(async () => {
3856
+ const getCurrency = (0, import_react12.useCallback)(async () => {
3853
3857
  const jsonData = {
3854
3858
  model: "res.currency",
3855
3859
  method: "web_search_read",
@@ -3869,7 +3873,7 @@ function useModelService() {
3869
3873
  }
3870
3874
  });
3871
3875
  }, [env]);
3872
- const getConversionRate = (0, import_react11.useCallback)(async () => {
3876
+ const getConversionRate = (0, import_react12.useCallback)(async () => {
3873
3877
  const jsonData = {
3874
3878
  model: "res.currency",
3875
3879
  method: "web_search_read",
@@ -3895,7 +3899,7 @@ function useModelService() {
3895
3899
  }
3896
3900
  });
3897
3901
  }, [env]);
3898
- const getAll = (0, import_react11.useCallback)(
3902
+ const getAll = (0, import_react12.useCallback)(
3899
3903
  async ({ data }) => {
3900
3904
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
3901
3905
  fields: data.fields,
@@ -3925,7 +3929,7 @@ function useModelService() {
3925
3929
  },
3926
3930
  [env]
3927
3931
  );
3928
- const getListCalendar = (0, import_react11.useCallback)(
3932
+ const getListCalendar = (0, import_react12.useCallback)(
3929
3933
  async ({ data }) => {
3930
3934
  const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
3931
3935
  fields: data.fields,
@@ -3956,7 +3960,7 @@ function useModelService() {
3956
3960
  },
3957
3961
  [env]
3958
3962
  );
3959
- const getList = (0, import_react11.useCallback)(
3963
+ const getList = (0, import_react12.useCallback)(
3960
3964
  async ({
3961
3965
  model,
3962
3966
  ids = [],
@@ -3988,7 +3992,7 @@ function useModelService() {
3988
3992
  },
3989
3993
  [env]
3990
3994
  );
3991
- const getDetail = (0, import_react11.useCallback)(
3995
+ const getDetail = (0, import_react12.useCallback)(
3992
3996
  async ({ ids = [], model, specification, context }) => {
3993
3997
  const jsonData = {
3994
3998
  model,
@@ -4007,7 +4011,7 @@ function useModelService() {
4007
4011
  },
4008
4012
  [env]
4009
4013
  );
4010
- const save = (0, import_react11.useCallback)(
4014
+ const save = (0, import_react12.useCallback)(
4011
4015
  async ({
4012
4016
  model,
4013
4017
  ids = [],
@@ -4034,7 +4038,7 @@ function useModelService() {
4034
4038
  },
4035
4039
  [env]
4036
4040
  );
4037
- const deleteApi = (0, import_react11.useCallback)(
4041
+ const deleteApi = (0, import_react12.useCallback)(
4038
4042
  async ({ ids = [], model }) => {
4039
4043
  const jsonData = {
4040
4044
  model,
@@ -4049,7 +4053,7 @@ function useModelService() {
4049
4053
  },
4050
4054
  [env]
4051
4055
  );
4052
- const onChange = (0, import_react11.useCallback)(
4056
+ const onChange = (0, import_react12.useCallback)(
4053
4057
  async ({
4054
4058
  ids = [],
4055
4059
  model,
@@ -4077,7 +4081,7 @@ function useModelService() {
4077
4081
  },
4078
4082
  [env]
4079
4083
  );
4080
- const getListFieldsOnchange = (0, import_react11.useCallback)(
4084
+ const getListFieldsOnchange = (0, import_react12.useCallback)(
4081
4085
  async ({ model }) => {
4082
4086
  const jsonData = {
4083
4087
  model,
@@ -4091,7 +4095,7 @@ function useModelService() {
4091
4095
  },
4092
4096
  [env]
4093
4097
  );
4094
- const parseORMOdoo = (0, import_react11.useCallback)((data) => {
4098
+ const parseORMOdoo = (0, import_react12.useCallback)((data) => {
4095
4099
  for (const key in data) {
4096
4100
  if (key === "display_name") {
4097
4101
  delete data[key];
@@ -4104,7 +4108,7 @@ function useModelService() {
4104
4108
  }
4105
4109
  return { ...data };
4106
4110
  }, []);
4107
- const toDataJS = (0, import_react11.useCallback)(
4111
+ const toDataJS = (0, import_react12.useCallback)(
4108
4112
  (data, viewData, model) => {
4109
4113
  for (const key in data) {
4110
4114
  if (data[key] === false) {
@@ -4164,10 +4168,10 @@ function useModelService() {
4164
4168
  }
4165
4169
 
4166
4170
  // src/services/user-service/index.ts
4167
- var import_react12 = require("react");
4171
+ var import_react13 = require("react");
4168
4172
  function useUserService() {
4169
4173
  const { env } = useEnv();
4170
- const getProfile = (0, import_react12.useCallback)(
4174
+ const getProfile = (0, import_react13.useCallback)(
4171
4175
  async (path) => {
4172
4176
  return env?.requests?.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4173
4177
  headers: {
@@ -4177,7 +4181,7 @@ function useUserService() {
4177
4181
  },
4178
4182
  [env]
4179
4183
  );
4180
- const getUser = (0, import_react12.useCallback)(
4184
+ const getUser = (0, import_react13.useCallback)(
4181
4185
  async ({ context, id }) => {
4182
4186
  const jsonData = {
4183
4187
  model: "res.users",
@@ -4215,7 +4219,7 @@ function useUserService() {
4215
4219
  },
4216
4220
  [env]
4217
4221
  );
4218
- const switchUserLocale = (0, import_react12.useCallback)(
4222
+ const switchUserLocale = (0, import_react13.useCallback)(
4219
4223
  async ({ id, values }) => {
4220
4224
  const jsonData = {
4221
4225
  model: "res.users",
@@ -4238,10 +4242,10 @@ function useUserService() {
4238
4242
  }
4239
4243
 
4240
4244
  // src/services/view-service/index.ts
4241
- var import_react13 = require("react");
4245
+ var import_react14 = require("react");
4242
4246
  function useViewService() {
4243
4247
  const { env } = useEnv();
4244
- const getView = (0, import_react13.useCallback)(
4248
+ const getView = (0, import_react14.useCallback)(
4245
4249
  async ({
4246
4250
  model,
4247
4251
  views,
@@ -4271,7 +4275,7 @@ function useViewService() {
4271
4275
  },
4272
4276
  [env]
4273
4277
  );
4274
- const getMenu = (0, import_react13.useCallback)(
4278
+ const getMenu = (0, import_react14.useCallback)(
4275
4279
  async (context) => {
4276
4280
  const jsonData = {
4277
4281
  model: "ir.ui.menu" /* MENU */,
@@ -4384,7 +4388,7 @@ function useViewService() {
4384
4388
  },
4385
4389
  [env]
4386
4390
  );
4387
- const getActionDetail = (0, import_react13.useCallback)(
4391
+ const getActionDetail = (0, import_react14.useCallback)(
4388
4392
  async (aid, context) => {
4389
4393
  const jsonData = {
4390
4394
  model: "ir.actions.act_window" /* WINDOW_ACTION */,
@@ -4414,7 +4418,7 @@ function useViewService() {
4414
4418
  },
4415
4419
  [env]
4416
4420
  );
4417
- const getResequence = (0, import_react13.useCallback)(
4421
+ const getResequence = (0, import_react14.useCallback)(
4418
4422
  async ({
4419
4423
  model,
4420
4424
  ids,
@@ -4436,7 +4440,7 @@ function useViewService() {
4436
4440
  },
4437
4441
  [env]
4438
4442
  );
4439
- const getSelectionItem = (0, import_react13.useCallback)(
4443
+ const getSelectionItem = (0, import_react14.useCallback)(
4440
4444
  async ({ data }) => {
4441
4445
  const jsonData = {
4442
4446
  model: data.model,
@@ -4463,7 +4467,7 @@ function useViewService() {
4463
4467
  },
4464
4468
  [env]
4465
4469
  );
4466
- const loadMessages = (0, import_react13.useCallback)(async () => {
4470
+ const loadMessages = (0, import_react14.useCallback)(async () => {
4467
4471
  return env.requests.post(
4468
4472
  "/load_message_failures" /* LOAD_MESSAGE */,
4469
4473
  {},
@@ -4474,14 +4478,14 @@ function useViewService() {
4474
4478
  }
4475
4479
  );
4476
4480
  }, [env]);
4477
- const getVersion = (0, import_react13.useCallback)(async () => {
4481
+ const getVersion = (0, import_react14.useCallback)(async () => {
4478
4482
  return env?.requests?.get("", {
4479
4483
  headers: {
4480
4484
  "Content-Type": "application/json"
4481
4485
  }
4482
4486
  });
4483
4487
  }, [env]);
4484
- const grantAccess = (0, import_react13.useCallback)(
4488
+ const grantAccess = (0, import_react14.useCallback)(
4485
4489
  async ({
4486
4490
  redirect_uri,
4487
4491
  state,
@@ -4503,7 +4507,7 @@ function useViewService() {
4503
4507
  },
4504
4508
  [env]
4505
4509
  );
4506
- const removeTotpSetUp = (0, import_react13.useCallback)(
4510
+ const removeTotpSetUp = (0, import_react14.useCallback)(
4507
4511
  async ({ method, token }) => {
4508
4512
  const jsonData = {
4509
4513
  method,
@@ -4519,7 +4523,7 @@ function useViewService() {
4519
4523
  },
4520
4524
  [env]
4521
4525
  );
4522
- const requestSetupTotp = (0, import_react13.useCallback)(
4526
+ const requestSetupTotp = (0, import_react14.useCallback)(
4523
4527
  async ({ method, token }) => {
4524
4528
  const jsonData = {
4525
4529
  method,
@@ -4533,7 +4537,7 @@ function useViewService() {
4533
4537
  },
4534
4538
  [env]
4535
4539
  );
4536
- const settingsWebRead2fa = (0, import_react13.useCallback)(
4540
+ const settingsWebRead2fa = (0, import_react14.useCallback)(
4537
4541
  async ({
4538
4542
  method,
4539
4543
  model,
@@ -4556,7 +4560,7 @@ function useViewService() {
4556
4560
  },
4557
4561
  [env]
4558
4562
  );
4559
- const signInSSO = (0, import_react13.useCallback)(
4563
+ const signInSSO = (0, import_react14.useCallback)(
4560
4564
  async ({
4561
4565
  redirect_uri,
4562
4566
  state,
@@ -4577,7 +4581,7 @@ function useViewService() {
4577
4581
  },
4578
4582
  [env]
4579
4583
  );
4580
- const verify2FA = (0, import_react13.useCallback)(
4584
+ const verify2FA = (0, import_react14.useCallback)(
4581
4585
  ({
4582
4586
  method,
4583
4587
  with_context,
@@ -4605,7 +4609,7 @@ function useViewService() {
4605
4609
  },
4606
4610
  [env]
4607
4611
  );
4608
- const get2FAMethods = (0, import_react13.useCallback)(
4612
+ const get2FAMethods = (0, import_react14.useCallback)(
4609
4613
  ({ method, with_context }) => {
4610
4614
  const jsonData = {
4611
4615
  method,
@@ -4619,7 +4623,7 @@ function useViewService() {
4619
4623
  },
4620
4624
  [env]
4621
4625
  );
4622
- const verifyTotp = (0, import_react13.useCallback)(
4626
+ const verifyTotp = (0, import_react14.useCallback)(
4623
4627
  ({
4624
4628
  method,
4625
4629
  action_token,
package/dist/services.mjs CHANGED
@@ -3004,6 +3004,10 @@ import { useMutation as useMutation46 } from "@tanstack/react-query";
3004
3004
  import { jsx as jsx6 } from "react/jsx-runtime";
3005
3005
  var ServiceContext = createContext2(null);
3006
3006
 
3007
+ // src/provider/meta-provider.tsx
3008
+ import { useEffect as useEffect3 } from "react";
3009
+ import { Fragment as Fragment2, jsx as jsx7 } from "react/jsx-runtime";
3010
+
3007
3011
  // src/services/action-service/index.ts
3008
3012
  function useActionService() {
3009
3013
  const { env } = useEnv();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "1.10.9",
3
+ "version": "2.0.0",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",