@fctc/interface-logic 3.9.1 → 3.9.3

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/hooks.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, T as TThreadData, C as ContextApi, V as ViewData, c as GetSelectionType, f as GetViewParams } from './view-type-CRNLhTVq.mjs';
2
+ import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, T as TThreadData, C as ContextApi, V as ViewData, c as GetSelectionType, f as GetViewParams } from './view-type-CfcWWR0w.mjs';
3
3
  import { B as BaseModelInit } from './base-model-type-DD8uZnDP.mjs';
4
4
  import { BaseModel } from './models.mjs';
5
5
 
@@ -325,7 +325,7 @@ declare const useGetGroups: ({ model, width_context, }: {
325
325
  width_context: any;
326
326
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
327
327
 
328
- declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string, xNode?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
328
+ declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string, xNode?: string, searchParams?: Record<string, string | number | boolean>) => _tanstack_react_query.UseQueryResult<any, Error>;
329
329
 
330
330
  declare const useGetMenu: (context: any, specification: any, enabled?: boolean, domain?: any, service?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
331
331
 
@@ -359,6 +359,7 @@ declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any,
359
359
  context: ContextApi;
360
360
  service?: string;
361
361
  xNode?: string;
362
+ searchParams?: Record<string, string | number | boolean>;
362
363
  }, unknown>;
363
364
 
364
365
  declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -536,6 +537,7 @@ declare const useLoadDataPosSession: () => _tanstack_react_query.UseMutationResu
536
537
  xNode?: string;
537
538
  withContext?: any;
538
539
  modelsToLoad?: any;
540
+ searchParams?: Record<string, string | number | boolean>;
539
541
  }, unknown>;
540
542
 
541
543
  declare const useManageOnChange: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
@@ -569,6 +571,7 @@ declare const useGetProductImage: () => _tanstack_react_query.UseMutationResult<
569
571
  domain: any;
570
572
  service?: string;
571
573
  xNode?: string;
574
+ searchParams?: Record<string, string | number | boolean>;
572
575
  }, unknown>;
573
576
 
574
577
  declare const useAddEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
package/dist/hooks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, T as TThreadData, C as ContextApi, V as ViewData, c as GetSelectionType, f as GetViewParams } from './view-type-CRNLhTVq.js';
2
+ import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, T as TThreadData, C as ContextApi, V as ViewData, c as GetSelectionType, f as GetViewParams } from './view-type-CfcWWR0w.js';
3
3
  import { B as BaseModelInit } from './base-model-type-DD8uZnDP.js';
4
4
  import { BaseModel } from './models.js';
5
5
 
@@ -325,7 +325,7 @@ declare const useGetGroups: ({ model, width_context, }: {
325
325
  width_context: any;
326
326
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
327
327
 
328
- declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string, xNode?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
328
+ declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string, xNode?: string, searchParams?: Record<string, string | number | boolean>) => _tanstack_react_query.UseQueryResult<any, Error>;
329
329
 
330
330
  declare const useGetMenu: (context: any, specification: any, enabled?: boolean, domain?: any, service?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
331
331
 
@@ -359,6 +359,7 @@ declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any,
359
359
  context: ContextApi;
360
360
  service?: string;
361
361
  xNode?: string;
362
+ searchParams?: Record<string, string | number | boolean>;
362
363
  }, unknown>;
363
364
 
364
365
  declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -536,6 +537,7 @@ declare const useLoadDataPosSession: () => _tanstack_react_query.UseMutationResu
536
537
  xNode?: string;
537
538
  withContext?: any;
538
539
  modelsToLoad?: any;
540
+ searchParams?: Record<string, string | number | boolean>;
539
541
  }, unknown>;
540
542
 
541
543
  declare const useManageOnChange: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
@@ -569,6 +571,7 @@ declare const useGetProductImage: () => _tanstack_react_query.UseMutationResult<
569
571
  domain: any;
570
572
  service?: string;
571
573
  xNode?: string;
574
+ searchParams?: Record<string, string | number | boolean>;
572
575
  }, unknown>;
573
576
 
574
577
  declare const useAddEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
package/dist/hooks.js CHANGED
@@ -3007,14 +3007,18 @@ function useActionService() {
3007
3007
  idAction,
3008
3008
  context,
3009
3009
  service,
3010
- xNode
3010
+ xNode,
3011
+ searchParams
3011
3012
  }) => {
3012
3013
  const jsonData = {
3013
3014
  action_id: idAction,
3014
3015
  with_context: { ...context }
3015
3016
  };
3017
+ const url = searchParams ? new URL(
3018
+ `${"/load_action" /* LOAD_ACTION */}?${toQueryString(searchParams)}`
3019
+ ).toString() : "/load_action" /* LOAD_ACTION */;
3016
3020
  return env.requests.post(
3017
- "/load_action" /* LOAD_ACTION */,
3021
+ url,
3018
3022
  jsonData,
3019
3023
  {
3020
3024
  headers: { "Content-Type": "application/json", "X-Node": xNode }
@@ -4137,7 +4141,8 @@ function useModelService() {
4137
4141
  async ({
4138
4142
  data,
4139
4143
  service,
4140
- xNode
4144
+ xNode,
4145
+ searchParams
4141
4146
  }) => {
4142
4147
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
4143
4148
  fields: data.fields,
@@ -4159,8 +4164,11 @@ function useModelService() {
4159
4164
  ...jsonReadGroup
4160
4165
  }
4161
4166
  };
4167
+ const url = searchParams ? new URL(
4168
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
4169
+ ).toString() : "/call" /* CALL_PATH */;
4162
4170
  return env.requests.post(
4163
- "/call" /* CALL_PATH */,
4171
+ url,
4164
4172
  jsonData,
4165
4173
  {
4166
4174
  headers: {
@@ -4550,7 +4558,8 @@ function useViewService() {
4550
4558
  options = {},
4551
4559
  aid,
4552
4560
  service,
4553
- xNode
4561
+ xNode,
4562
+ searchParams
4554
4563
  }) => {
4555
4564
  const defaultOptions = {
4556
4565
  load_filters: true,
@@ -4566,8 +4575,11 @@ function useViewService() {
4566
4575
  },
4567
4576
  with_context: context
4568
4577
  };
4578
+ const url = searchParams ? new URL(
4579
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
4580
+ ).toString() : "/call" /* CALL_PATH */;
4569
4581
  return env?.requests?.post(
4570
- "/call" /* CALL_PATH */,
4582
+ url,
4571
4583
  jsonDataView,
4572
4584
  {
4573
4585
  headers: {
@@ -5296,7 +5308,8 @@ function useViewService() {
5296
5308
  xNode,
5297
5309
  service,
5298
5310
  withContext,
5299
- modelsToLoad = []
5311
+ modelsToLoad = [],
5312
+ searchParams
5300
5313
  }) => {
5301
5314
  const jsonData = {
5302
5315
  model,
@@ -5311,8 +5324,11 @@ function useViewService() {
5311
5324
  models_to_load: modelsToLoad
5312
5325
  }
5313
5326
  };
5327
+ const url = searchParams ? new URL(
5328
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
5329
+ ).toString() : "/call" /* CALL_PATH */;
5314
5330
  return env?.requests.post(
5315
- "/call" /* CALL_PATH */,
5331
+ url,
5316
5332
  jsonData,
5317
5333
  {
5318
5334
  headers: {
@@ -5416,7 +5432,8 @@ function useViewService() {
5416
5432
  offset,
5417
5433
  domain,
5418
5434
  xNode,
5419
- service
5435
+ service,
5436
+ searchParams
5420
5437
  }) => {
5421
5438
  const jsonData = {
5422
5439
  model,
@@ -5425,8 +5442,11 @@ function useViewService() {
5425
5442
  offset,
5426
5443
  domain
5427
5444
  };
5445
+ const url = searchParams ? new URL(
5446
+ `${"/search_read" /* SEARCH_READ */}?${toQueryString(searchParams)}`
5447
+ ).toString() : "/search_read" /* SEARCH_READ */;
5428
5448
  return env?.requests.post(
5429
- "/search_read" /* SEARCH_READ */,
5449
+ url,
5430
5450
  jsonData,
5431
5451
  {
5432
5452
  headers: {
@@ -6963,11 +6983,16 @@ var use_get_groups_default = useGetGroups;
6963
6983
 
6964
6984
  // src/hooks/view/use-get-list-data.ts
6965
6985
  var import_react_query55 = require("@tanstack/react-query");
6966
- var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
6986
+ var useGetListData = (listDataProps, queryKey, enabled, service, xNode, searchParams) => {
6967
6987
  const { getAll } = useModelService();
6968
6988
  return (0, import_react_query55.useQuery)({
6969
6989
  queryKey,
6970
- queryFn: () => getAll({ data: listDataProps, service, xNode }).then((res) => {
6990
+ queryFn: () => getAll({
6991
+ data: listDataProps,
6992
+ service,
6993
+ xNode,
6994
+ searchParams
6995
+ }).then((res) => {
6971
6996
  if (res) {
6972
6997
  return res;
6973
6998
  }
@@ -7086,13 +7111,15 @@ var useLoadAction = () => {
7086
7111
  idAction,
7087
7112
  context,
7088
7113
  service,
7089
- xNode
7114
+ xNode,
7115
+ searchParams
7090
7116
  }) => {
7091
7117
  return loadAction({
7092
7118
  idAction,
7093
7119
  context,
7094
7120
  service,
7095
- xNode
7121
+ xNode,
7122
+ searchParams
7096
7123
  });
7097
7124
  }
7098
7125
  });
@@ -7610,7 +7637,8 @@ var useLoadDataPosSession = () => {
7610
7637
  xNode,
7611
7638
  service,
7612
7639
  withContext,
7613
- modelsToLoad
7640
+ modelsToLoad,
7641
+ searchParams
7614
7642
  }) => {
7615
7643
  return loadDataPosSession({
7616
7644
  model,
@@ -7618,7 +7646,8 @@ var useLoadDataPosSession = () => {
7618
7646
  xNode,
7619
7647
  service,
7620
7648
  withContext,
7621
- modelsToLoad
7649
+ modelsToLoad,
7650
+ searchParams
7622
7651
  });
7623
7652
  }
7624
7653
  });
@@ -7707,7 +7736,8 @@ var useGetProductImage = () => {
7707
7736
  offset,
7708
7737
  domain,
7709
7738
  xNode,
7710
- service
7739
+ service,
7740
+ searchParams
7711
7741
  }) => {
7712
7742
  return getProductImage({
7713
7743
  model,
@@ -7716,7 +7746,8 @@ var useGetProductImage = () => {
7716
7746
  offset,
7717
7747
  domain,
7718
7748
  xNode,
7719
- service
7749
+ service,
7750
+ searchParams
7720
7751
  });
7721
7752
  }
7722
7753
  });
package/dist/hooks.mjs CHANGED
@@ -2866,14 +2866,18 @@ function useActionService() {
2866
2866
  idAction,
2867
2867
  context,
2868
2868
  service,
2869
- xNode
2869
+ xNode,
2870
+ searchParams
2870
2871
  }) => {
2871
2872
  const jsonData = {
2872
2873
  action_id: idAction,
2873
2874
  with_context: { ...context }
2874
2875
  };
2876
+ const url = searchParams ? new URL(
2877
+ `${"/load_action" /* LOAD_ACTION */}?${toQueryString(searchParams)}`
2878
+ ).toString() : "/load_action" /* LOAD_ACTION */;
2875
2879
  return env.requests.post(
2876
- "/load_action" /* LOAD_ACTION */,
2880
+ url,
2877
2881
  jsonData,
2878
2882
  {
2879
2883
  headers: { "Content-Type": "application/json", "X-Node": xNode }
@@ -3996,7 +4000,8 @@ function useModelService() {
3996
4000
  async ({
3997
4001
  data,
3998
4002
  service,
3999
- xNode
4003
+ xNode,
4004
+ searchParams
4000
4005
  }) => {
4001
4006
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
4002
4007
  fields: data.fields,
@@ -4018,8 +4023,11 @@ function useModelService() {
4018
4023
  ...jsonReadGroup
4019
4024
  }
4020
4025
  };
4026
+ const url = searchParams ? new URL(
4027
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
4028
+ ).toString() : "/call" /* CALL_PATH */;
4021
4029
  return env.requests.post(
4022
- "/call" /* CALL_PATH */,
4030
+ url,
4023
4031
  jsonData,
4024
4032
  {
4025
4033
  headers: {
@@ -4409,7 +4417,8 @@ function useViewService() {
4409
4417
  options = {},
4410
4418
  aid,
4411
4419
  service,
4412
- xNode
4420
+ xNode,
4421
+ searchParams
4413
4422
  }) => {
4414
4423
  const defaultOptions = {
4415
4424
  load_filters: true,
@@ -4425,8 +4434,11 @@ function useViewService() {
4425
4434
  },
4426
4435
  with_context: context
4427
4436
  };
4437
+ const url = searchParams ? new URL(
4438
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
4439
+ ).toString() : "/call" /* CALL_PATH */;
4428
4440
  return env?.requests?.post(
4429
- "/call" /* CALL_PATH */,
4441
+ url,
4430
4442
  jsonDataView,
4431
4443
  {
4432
4444
  headers: {
@@ -5155,7 +5167,8 @@ function useViewService() {
5155
5167
  xNode,
5156
5168
  service,
5157
5169
  withContext,
5158
- modelsToLoad = []
5170
+ modelsToLoad = [],
5171
+ searchParams
5159
5172
  }) => {
5160
5173
  const jsonData = {
5161
5174
  model,
@@ -5170,8 +5183,11 @@ function useViewService() {
5170
5183
  models_to_load: modelsToLoad
5171
5184
  }
5172
5185
  };
5186
+ const url = searchParams ? new URL(
5187
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
5188
+ ).toString() : "/call" /* CALL_PATH */;
5173
5189
  return env?.requests.post(
5174
- "/call" /* CALL_PATH */,
5190
+ url,
5175
5191
  jsonData,
5176
5192
  {
5177
5193
  headers: {
@@ -5275,7 +5291,8 @@ function useViewService() {
5275
5291
  offset,
5276
5292
  domain,
5277
5293
  xNode,
5278
- service
5294
+ service,
5295
+ searchParams
5279
5296
  }) => {
5280
5297
  const jsonData = {
5281
5298
  model,
@@ -5284,8 +5301,11 @@ function useViewService() {
5284
5301
  offset,
5285
5302
  domain
5286
5303
  };
5304
+ const url = searchParams ? new URL(
5305
+ `${"/search_read" /* SEARCH_READ */}?${toQueryString(searchParams)}`
5306
+ ).toString() : "/search_read" /* SEARCH_READ */;
5287
5307
  return env?.requests.post(
5288
- "/search_read" /* SEARCH_READ */,
5308
+ url,
5289
5309
  jsonData,
5290
5310
  {
5291
5311
  headers: {
@@ -6822,11 +6842,16 @@ var use_get_groups_default = useGetGroups;
6822
6842
 
6823
6843
  // src/hooks/view/use-get-list-data.ts
6824
6844
  import { useQuery as useQuery17 } from "@tanstack/react-query";
6825
- var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
6845
+ var useGetListData = (listDataProps, queryKey, enabled, service, xNode, searchParams) => {
6826
6846
  const { getAll } = useModelService();
6827
6847
  return useQuery17({
6828
6848
  queryKey,
6829
- queryFn: () => getAll({ data: listDataProps, service, xNode }).then((res) => {
6849
+ queryFn: () => getAll({
6850
+ data: listDataProps,
6851
+ service,
6852
+ xNode,
6853
+ searchParams
6854
+ }).then((res) => {
6830
6855
  if (res) {
6831
6856
  return res;
6832
6857
  }
@@ -6945,13 +6970,15 @@ var useLoadAction = () => {
6945
6970
  idAction,
6946
6971
  context,
6947
6972
  service,
6948
- xNode
6973
+ xNode,
6974
+ searchParams
6949
6975
  }) => {
6950
6976
  return loadAction({
6951
6977
  idAction,
6952
6978
  context,
6953
6979
  service,
6954
- xNode
6980
+ xNode,
6981
+ searchParams
6955
6982
  });
6956
6983
  }
6957
6984
  });
@@ -7469,7 +7496,8 @@ var useLoadDataPosSession = () => {
7469
7496
  xNode,
7470
7497
  service,
7471
7498
  withContext,
7472
- modelsToLoad
7499
+ modelsToLoad,
7500
+ searchParams
7473
7501
  }) => {
7474
7502
  return loadDataPosSession({
7475
7503
  model,
@@ -7477,7 +7505,8 @@ var useLoadDataPosSession = () => {
7477
7505
  xNode,
7478
7506
  service,
7479
7507
  withContext,
7480
- modelsToLoad
7508
+ modelsToLoad,
7509
+ searchParams
7481
7510
  });
7482
7511
  }
7483
7512
  });
@@ -7566,7 +7595,8 @@ var useGetProductImage = () => {
7566
7595
  offset,
7567
7596
  domain,
7568
7597
  xNode,
7569
- service
7598
+ service,
7599
+ searchParams
7570
7600
  }) => {
7571
7601
  return getProductImage({
7572
7602
  model,
@@ -7575,7 +7605,8 @@ var useGetProductImage = () => {
7575
7605
  offset,
7576
7606
  domain,
7577
7607
  xNode,
7578
- service
7608
+ service,
7609
+ searchParams
7579
7610
  });
7580
7611
  }
7581
7612
  });
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import { L as LocalStorageUtilsType } from './local-storage-BPvoMGYJ.mjs';
4
4
  import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine, useGetProductImage, useAddEntity, useCheckPayment, useHandleCloseSession, useHandleClosingDetailSession, useCreatePosConfig, useSearchJournal, useGetTenantMapping, useGetToken, useGetPreparationDisplayData, useChangeOrderPreparaionState as useChangeOrderPreparationState, useUpdateOrderStatus, useGetThreadData, useGetThreadMessages, useGetExternalTabs, useProcessOrder, useGeneratePaymentQrInfo, useSavePinCode, useGetPinCode, useReadGroup, useGetNotifications, useGetDataChart, useGetVersion } from './hooks.mjs';
5
5
  import '@tanstack/react-query';
6
- import './view-type-CRNLhTVq.mjs';
6
+ import './view-type-CfcWWR0w.mjs';
7
7
  import './base-model-type-DD8uZnDP.mjs';
8
8
  import './models.mjs';
9
9
 
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import { L as LocalStorageUtilsType } from './local-storage-BPvoMGYJ.js';
4
4
  import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine, useGetProductImage, useAddEntity, useCheckPayment, useHandleCloseSession, useHandleClosingDetailSession, useCreatePosConfig, useSearchJournal, useGetTenantMapping, useGetToken, useGetPreparationDisplayData, useChangeOrderPreparaionState as useChangeOrderPreparationState, useUpdateOrderStatus, useGetThreadData, useGetThreadMessages, useGetExternalTabs, useProcessOrder, useGeneratePaymentQrInfo, useSavePinCode, useGetPinCode, useReadGroup, useGetNotifications, useGetDataChart, useGetVersion } from './hooks.js';
5
5
  import '@tanstack/react-query';
6
- import './view-type-CRNLhTVq.js';
6
+ import './view-type-CfcWWR0w.js';
7
7
  import './base-model-type-DD8uZnDP.js';
8
8
  import './models.js';
9
9
 
package/dist/provider.js CHANGED
@@ -2995,14 +2995,18 @@ function useActionService() {
2995
2995
  idAction,
2996
2996
  context,
2997
2997
  service,
2998
- xNode
2998
+ xNode,
2999
+ searchParams
2999
3000
  }) => {
3000
3001
  const jsonData = {
3001
3002
  action_id: idAction,
3002
3003
  with_context: { ...context }
3003
3004
  };
3005
+ const url = searchParams ? new URL(
3006
+ `${"/load_action" /* LOAD_ACTION */}?${toQueryString(searchParams)}`
3007
+ ).toString() : "/load_action" /* LOAD_ACTION */;
3004
3008
  return env.requests.post(
3005
- "/load_action" /* LOAD_ACTION */,
3009
+ url,
3006
3010
  jsonData,
3007
3011
  {
3008
3012
  headers: { "Content-Type": "application/json", "X-Node": xNode }
@@ -4125,7 +4129,8 @@ function useModelService() {
4125
4129
  async ({
4126
4130
  data,
4127
4131
  service,
4128
- xNode
4132
+ xNode,
4133
+ searchParams
4129
4134
  }) => {
4130
4135
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
4131
4136
  fields: data.fields,
@@ -4147,8 +4152,11 @@ function useModelService() {
4147
4152
  ...jsonReadGroup
4148
4153
  }
4149
4154
  };
4155
+ const url = searchParams ? new URL(
4156
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
4157
+ ).toString() : "/call" /* CALL_PATH */;
4150
4158
  return env.requests.post(
4151
- "/call" /* CALL_PATH */,
4159
+ url,
4152
4160
  jsonData,
4153
4161
  {
4154
4162
  headers: {
@@ -4538,7 +4546,8 @@ function useViewService() {
4538
4546
  options = {},
4539
4547
  aid,
4540
4548
  service,
4541
- xNode
4549
+ xNode,
4550
+ searchParams
4542
4551
  }) => {
4543
4552
  const defaultOptions = {
4544
4553
  load_filters: true,
@@ -4554,8 +4563,11 @@ function useViewService() {
4554
4563
  },
4555
4564
  with_context: context
4556
4565
  };
4566
+ const url = searchParams ? new URL(
4567
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
4568
+ ).toString() : "/call" /* CALL_PATH */;
4557
4569
  return env?.requests?.post(
4558
- "/call" /* CALL_PATH */,
4570
+ url,
4559
4571
  jsonDataView,
4560
4572
  {
4561
4573
  headers: {
@@ -5284,7 +5296,8 @@ function useViewService() {
5284
5296
  xNode,
5285
5297
  service,
5286
5298
  withContext,
5287
- modelsToLoad = []
5299
+ modelsToLoad = [],
5300
+ searchParams
5288
5301
  }) => {
5289
5302
  const jsonData = {
5290
5303
  model,
@@ -5299,8 +5312,11 @@ function useViewService() {
5299
5312
  models_to_load: modelsToLoad
5300
5313
  }
5301
5314
  };
5315
+ const url = searchParams ? new URL(
5316
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
5317
+ ).toString() : "/call" /* CALL_PATH */;
5302
5318
  return env?.requests.post(
5303
- "/call" /* CALL_PATH */,
5319
+ url,
5304
5320
  jsonData,
5305
5321
  {
5306
5322
  headers: {
@@ -5404,7 +5420,8 @@ function useViewService() {
5404
5420
  offset,
5405
5421
  domain,
5406
5422
  xNode,
5407
- service
5423
+ service,
5424
+ searchParams
5408
5425
  }) => {
5409
5426
  const jsonData = {
5410
5427
  model,
@@ -5413,8 +5430,11 @@ function useViewService() {
5413
5430
  offset,
5414
5431
  domain
5415
5432
  };
5433
+ const url = searchParams ? new URL(
5434
+ `${"/search_read" /* SEARCH_READ */}?${toQueryString(searchParams)}`
5435
+ ).toString() : "/search_read" /* SEARCH_READ */;
5416
5436
  return env?.requests.post(
5417
- "/search_read" /* SEARCH_READ */,
5437
+ url,
5418
5438
  jsonData,
5419
5439
  {
5420
5440
  headers: {
@@ -7440,11 +7460,16 @@ var use_get_groups_default = useGetGroups;
7440
7460
 
7441
7461
  // src/hooks/view/use-get-list-data.ts
7442
7462
  var import_react_query55 = require("@tanstack/react-query");
7443
- var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
7463
+ var useGetListData = (listDataProps, queryKey, enabled, service, xNode, searchParams) => {
7444
7464
  const { getAll } = useModelService();
7445
7465
  return (0, import_react_query55.useQuery)({
7446
7466
  queryKey,
7447
- queryFn: () => getAll({ data: listDataProps, service, xNode }).then((res) => {
7467
+ queryFn: () => getAll({
7468
+ data: listDataProps,
7469
+ service,
7470
+ xNode,
7471
+ searchParams
7472
+ }).then((res) => {
7448
7473
  if (res) {
7449
7474
  return res;
7450
7475
  }
@@ -7563,13 +7588,15 @@ var useLoadAction = () => {
7563
7588
  idAction,
7564
7589
  context,
7565
7590
  service,
7566
- xNode
7591
+ xNode,
7592
+ searchParams
7567
7593
  }) => {
7568
7594
  return loadAction({
7569
7595
  idAction,
7570
7596
  context,
7571
7597
  service,
7572
- xNode
7598
+ xNode,
7599
+ searchParams
7573
7600
  });
7574
7601
  }
7575
7602
  });
@@ -8087,7 +8114,8 @@ var useLoadDataPosSession = () => {
8087
8114
  xNode,
8088
8115
  service,
8089
8116
  withContext,
8090
- modelsToLoad
8117
+ modelsToLoad,
8118
+ searchParams
8091
8119
  }) => {
8092
8120
  return loadDataPosSession({
8093
8121
  model,
@@ -8095,7 +8123,8 @@ var useLoadDataPosSession = () => {
8095
8123
  xNode,
8096
8124
  service,
8097
8125
  withContext,
8098
- modelsToLoad
8126
+ modelsToLoad,
8127
+ searchParams
8099
8128
  });
8100
8129
  }
8101
8130
  });
@@ -8184,7 +8213,8 @@ var useGetProductImage = () => {
8184
8213
  offset,
8185
8214
  domain,
8186
8215
  xNode,
8187
- service
8216
+ service,
8217
+ searchParams
8188
8218
  }) => {
8189
8219
  return getProductImage({
8190
8220
  model,
@@ -8193,7 +8223,8 @@ var useGetProductImage = () => {
8193
8223
  offset,
8194
8224
  domain,
8195
8225
  xNode,
8196
- service
8226
+ service,
8227
+ searchParams
8197
8228
  });
8198
8229
  }
8199
8230
  });
package/dist/provider.mjs CHANGED
@@ -2952,14 +2952,18 @@ function useActionService() {
2952
2952
  idAction,
2953
2953
  context,
2954
2954
  service,
2955
- xNode
2955
+ xNode,
2956
+ searchParams
2956
2957
  }) => {
2957
2958
  const jsonData = {
2958
2959
  action_id: idAction,
2959
2960
  with_context: { ...context }
2960
2961
  };
2962
+ const url = searchParams ? new URL(
2963
+ `${"/load_action" /* LOAD_ACTION */}?${toQueryString(searchParams)}`
2964
+ ).toString() : "/load_action" /* LOAD_ACTION */;
2961
2965
  return env.requests.post(
2962
- "/load_action" /* LOAD_ACTION */,
2966
+ url,
2963
2967
  jsonData,
2964
2968
  {
2965
2969
  headers: { "Content-Type": "application/json", "X-Node": xNode }
@@ -4082,7 +4086,8 @@ function useModelService() {
4082
4086
  async ({
4083
4087
  data,
4084
4088
  service,
4085
- xNode
4089
+ xNode,
4090
+ searchParams
4086
4091
  }) => {
4087
4092
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
4088
4093
  fields: data.fields,
@@ -4104,8 +4109,11 @@ function useModelService() {
4104
4109
  ...jsonReadGroup
4105
4110
  }
4106
4111
  };
4112
+ const url = searchParams ? new URL(
4113
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
4114
+ ).toString() : "/call" /* CALL_PATH */;
4107
4115
  return env.requests.post(
4108
- "/call" /* CALL_PATH */,
4116
+ url,
4109
4117
  jsonData,
4110
4118
  {
4111
4119
  headers: {
@@ -4495,7 +4503,8 @@ function useViewService() {
4495
4503
  options = {},
4496
4504
  aid,
4497
4505
  service,
4498
- xNode
4506
+ xNode,
4507
+ searchParams
4499
4508
  }) => {
4500
4509
  const defaultOptions = {
4501
4510
  load_filters: true,
@@ -4511,8 +4520,11 @@ function useViewService() {
4511
4520
  },
4512
4521
  with_context: context
4513
4522
  };
4523
+ const url = searchParams ? new URL(
4524
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
4525
+ ).toString() : "/call" /* CALL_PATH */;
4514
4526
  return env?.requests?.post(
4515
- "/call" /* CALL_PATH */,
4527
+ url,
4516
4528
  jsonDataView,
4517
4529
  {
4518
4530
  headers: {
@@ -5241,7 +5253,8 @@ function useViewService() {
5241
5253
  xNode,
5242
5254
  service,
5243
5255
  withContext,
5244
- modelsToLoad = []
5256
+ modelsToLoad = [],
5257
+ searchParams
5245
5258
  }) => {
5246
5259
  const jsonData = {
5247
5260
  model,
@@ -5256,8 +5269,11 @@ function useViewService() {
5256
5269
  models_to_load: modelsToLoad
5257
5270
  }
5258
5271
  };
5272
+ const url = searchParams ? new URL(
5273
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
5274
+ ).toString() : "/call" /* CALL_PATH */;
5259
5275
  return env?.requests.post(
5260
- "/call" /* CALL_PATH */,
5276
+ url,
5261
5277
  jsonData,
5262
5278
  {
5263
5279
  headers: {
@@ -5361,7 +5377,8 @@ function useViewService() {
5361
5377
  offset,
5362
5378
  domain,
5363
5379
  xNode,
5364
- service
5380
+ service,
5381
+ searchParams
5365
5382
  }) => {
5366
5383
  const jsonData = {
5367
5384
  model,
@@ -5370,8 +5387,11 @@ function useViewService() {
5370
5387
  offset,
5371
5388
  domain
5372
5389
  };
5390
+ const url = searchParams ? new URL(
5391
+ `${"/search_read" /* SEARCH_READ */}?${toQueryString(searchParams)}`
5392
+ ).toString() : "/search_read" /* SEARCH_READ */;
5373
5393
  return env?.requests.post(
5374
- "/search_read" /* SEARCH_READ */,
5394
+ url,
5375
5395
  jsonData,
5376
5396
  {
5377
5397
  headers: {
@@ -7397,11 +7417,16 @@ var use_get_groups_default = useGetGroups;
7397
7417
 
7398
7418
  // src/hooks/view/use-get-list-data.ts
7399
7419
  import { useQuery as useQuery17 } from "@tanstack/react-query";
7400
- var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
7420
+ var useGetListData = (listDataProps, queryKey, enabled, service, xNode, searchParams) => {
7401
7421
  const { getAll } = useModelService();
7402
7422
  return useQuery17({
7403
7423
  queryKey,
7404
- queryFn: () => getAll({ data: listDataProps, service, xNode }).then((res) => {
7424
+ queryFn: () => getAll({
7425
+ data: listDataProps,
7426
+ service,
7427
+ xNode,
7428
+ searchParams
7429
+ }).then((res) => {
7405
7430
  if (res) {
7406
7431
  return res;
7407
7432
  }
@@ -7520,13 +7545,15 @@ var useLoadAction = () => {
7520
7545
  idAction,
7521
7546
  context,
7522
7547
  service,
7523
- xNode
7548
+ xNode,
7549
+ searchParams
7524
7550
  }) => {
7525
7551
  return loadAction({
7526
7552
  idAction,
7527
7553
  context,
7528
7554
  service,
7529
- xNode
7555
+ xNode,
7556
+ searchParams
7530
7557
  });
7531
7558
  }
7532
7559
  });
@@ -8044,7 +8071,8 @@ var useLoadDataPosSession = () => {
8044
8071
  xNode,
8045
8072
  service,
8046
8073
  withContext,
8047
- modelsToLoad
8074
+ modelsToLoad,
8075
+ searchParams
8048
8076
  }) => {
8049
8077
  return loadDataPosSession({
8050
8078
  model,
@@ -8052,7 +8080,8 @@ var useLoadDataPosSession = () => {
8052
8080
  xNode,
8053
8081
  service,
8054
8082
  withContext,
8055
- modelsToLoad
8083
+ modelsToLoad,
8084
+ searchParams
8056
8085
  });
8057
8086
  }
8058
8087
  });
@@ -8141,7 +8170,8 @@ var useGetProductImage = () => {
8141
8170
  offset,
8142
8171
  domain,
8143
8172
  xNode,
8144
- service
8173
+ service,
8174
+ searchParams
8145
8175
  }) => {
8146
8176
  return getProductImage({
8147
8177
  model,
@@ -8150,7 +8180,8 @@ var useGetProductImage = () => {
8150
8180
  offset,
8151
8181
  domain,
8152
8182
  xNode,
8153
- service
8183
+ service,
8184
+ searchParams
8154
8185
  });
8155
8186
  }
8156
8187
  });
@@ -1,11 +1,12 @@
1
- import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, T as TThreadData, h as GetExternalTab, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-CRNLhTVq.mjs';
1
+ import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, T as TThreadData, h as GetExternalTab, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-CfcWWR0w.mjs';
2
2
 
3
3
  declare function useActionService(): {
4
- loadAction: ({ idAction, context, service, xNode, }: {
4
+ loadAction: ({ idAction, context, service, xNode, searchParams, }: {
5
5
  idAction: number;
6
6
  context: ContextApi;
7
7
  service?: string;
8
8
  xNode?: string;
9
+ searchParams?: Record<string, string | number | boolean>;
9
10
  }) => Promise<any>;
10
11
  callButton: ({ model, ids, context, method, service, xNode, }: {
11
12
  model: string;
@@ -222,10 +223,11 @@ declare function useModelService(): {
222
223
  }) => Promise<any>;
223
224
  getCurrency: () => Promise<any>;
224
225
  getConversionRate: () => Promise<any>;
225
- getAll: ({ data, service, xNode, }: {
226
+ getAll: ({ data, service, xNode, searchParams, }: {
226
227
  data: any;
227
228
  service?: string;
228
229
  xNode?: string;
230
+ searchParams?: Record<string, string | number | boolean>;
229
231
  }) => Promise<any>;
230
232
  getListCalendar: ({ data }: {
231
233
  data: any;
@@ -258,7 +260,7 @@ declare function useUserService(): {
258
260
  };
259
261
 
260
262
  declare function useViewService(): {
261
- getView: ({ model, views, context, options, aid, service, xNode, }: GetViewParams) => Promise<any>;
263
+ getView: ({ model, views, context, options, aid, service, xNode, searchParams, }: GetViewParams) => Promise<any>;
262
264
  getMenu: (context: any, specification: any, domain: any, service?: string) => Promise<any>;
263
265
  getActionDetail: (aid: number, context: any) => Promise<any>;
264
266
  getResequence: ({ model, ids, context, offset, service, xNode, }: {
@@ -394,13 +396,14 @@ declare function useViewService(): {
394
396
  xNode?: string;
395
397
  method: string;
396
398
  }) => any;
397
- loadDataPosSession: ({ model, ids, xNode, service, withContext, modelsToLoad, }: {
399
+ loadDataPosSession: ({ model, ids, xNode, service, withContext, modelsToLoad, searchParams, }: {
398
400
  model: string;
399
401
  ids: any;
400
402
  service?: string;
401
403
  xNode?: string;
402
404
  withContext?: any;
403
405
  modelsToLoad?: any;
406
+ searchParams?: Record<string, string | number | boolean>;
404
407
  }) => any;
405
408
  manageOnChange: ({ model, ids, args, xNode, service, }: {
406
409
  model: string;
@@ -416,7 +419,7 @@ declare function useViewService(): {
416
419
  service?: string;
417
420
  xNode?: string;
418
421
  }) => any;
419
- getProductImage: ({ model, fields, limit, offset, domain, xNode, service, }: {
422
+ getProductImage: ({ model, fields, limit, offset, domain, xNode, service, searchParams, }: {
420
423
  model: string;
421
424
  fields: any;
422
425
  limit: number;
@@ -424,6 +427,7 @@ declare function useViewService(): {
424
427
  domain: any;
425
428
  service?: string;
426
429
  xNode?: string;
430
+ searchParams?: Record<string, string | number | boolean>;
427
431
  }) => any;
428
432
  addEntity: ({ model, values, xNode, service, isCreateEndpoint, }: {
429
433
  model: string;
@@ -1,11 +1,12 @@
1
- import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, T as TThreadData, h as GetExternalTab, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-CRNLhTVq.js';
1
+ import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, T as TThreadData, h as GetExternalTab, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-CfcWWR0w.js';
2
2
 
3
3
  declare function useActionService(): {
4
- loadAction: ({ idAction, context, service, xNode, }: {
4
+ loadAction: ({ idAction, context, service, xNode, searchParams, }: {
5
5
  idAction: number;
6
6
  context: ContextApi;
7
7
  service?: string;
8
8
  xNode?: string;
9
+ searchParams?: Record<string, string | number | boolean>;
9
10
  }) => Promise<any>;
10
11
  callButton: ({ model, ids, context, method, service, xNode, }: {
11
12
  model: string;
@@ -222,10 +223,11 @@ declare function useModelService(): {
222
223
  }) => Promise<any>;
223
224
  getCurrency: () => Promise<any>;
224
225
  getConversionRate: () => Promise<any>;
225
- getAll: ({ data, service, xNode, }: {
226
+ getAll: ({ data, service, xNode, searchParams, }: {
226
227
  data: any;
227
228
  service?: string;
228
229
  xNode?: string;
230
+ searchParams?: Record<string, string | number | boolean>;
229
231
  }) => Promise<any>;
230
232
  getListCalendar: ({ data }: {
231
233
  data: any;
@@ -258,7 +260,7 @@ declare function useUserService(): {
258
260
  };
259
261
 
260
262
  declare function useViewService(): {
261
- getView: ({ model, views, context, options, aid, service, xNode, }: GetViewParams) => Promise<any>;
263
+ getView: ({ model, views, context, options, aid, service, xNode, searchParams, }: GetViewParams) => Promise<any>;
262
264
  getMenu: (context: any, specification: any, domain: any, service?: string) => Promise<any>;
263
265
  getActionDetail: (aid: number, context: any) => Promise<any>;
264
266
  getResequence: ({ model, ids, context, offset, service, xNode, }: {
@@ -394,13 +396,14 @@ declare function useViewService(): {
394
396
  xNode?: string;
395
397
  method: string;
396
398
  }) => any;
397
- loadDataPosSession: ({ model, ids, xNode, service, withContext, modelsToLoad, }: {
399
+ loadDataPosSession: ({ model, ids, xNode, service, withContext, modelsToLoad, searchParams, }: {
398
400
  model: string;
399
401
  ids: any;
400
402
  service?: string;
401
403
  xNode?: string;
402
404
  withContext?: any;
403
405
  modelsToLoad?: any;
406
+ searchParams?: Record<string, string | number | boolean>;
404
407
  }) => any;
405
408
  manageOnChange: ({ model, ids, args, xNode, service, }: {
406
409
  model: string;
@@ -416,7 +419,7 @@ declare function useViewService(): {
416
419
  service?: string;
417
420
  xNode?: string;
418
421
  }) => any;
419
- getProductImage: ({ model, fields, limit, offset, domain, xNode, service, }: {
422
+ getProductImage: ({ model, fields, limit, offset, domain, xNode, service, searchParams, }: {
420
423
  model: string;
421
424
  fields: any;
422
425
  limit: number;
@@ -424,6 +427,7 @@ declare function useViewService(): {
424
427
  domain: any;
425
428
  service?: string;
426
429
  xNode?: string;
430
+ searchParams?: Record<string, string | number | boolean>;
427
431
  }) => any;
428
432
  addEntity: ({ model, values, xNode, service, isCreateEndpoint, }: {
429
433
  model: string;
package/dist/services.js CHANGED
@@ -3200,14 +3200,18 @@ function useActionService() {
3200
3200
  idAction,
3201
3201
  context,
3202
3202
  service,
3203
- xNode
3203
+ xNode,
3204
+ searchParams
3204
3205
  }) => {
3205
3206
  const jsonData = {
3206
3207
  action_id: idAction,
3207
3208
  with_context: { ...context }
3208
3209
  };
3210
+ const url = searchParams ? new URL(
3211
+ `${"/load_action" /* LOAD_ACTION */}?${toQueryString(searchParams)}`
3212
+ ).toString() : "/load_action" /* LOAD_ACTION */;
3209
3213
  return env.requests.post(
3210
- "/load_action" /* LOAD_ACTION */,
3214
+ url,
3211
3215
  jsonData,
3212
3216
  {
3213
3217
  headers: { "Content-Type": "application/json", "X-Node": xNode }
@@ -4330,7 +4334,8 @@ function useModelService() {
4330
4334
  async ({
4331
4335
  data,
4332
4336
  service,
4333
- xNode
4337
+ xNode,
4338
+ searchParams
4334
4339
  }) => {
4335
4340
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
4336
4341
  fields: data.fields,
@@ -4352,8 +4357,11 @@ function useModelService() {
4352
4357
  ...jsonReadGroup
4353
4358
  }
4354
4359
  };
4360
+ const url = searchParams ? new URL(
4361
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
4362
+ ).toString() : "/call" /* CALL_PATH */;
4355
4363
  return env.requests.post(
4356
- "/call" /* CALL_PATH */,
4364
+ url,
4357
4365
  jsonData,
4358
4366
  {
4359
4367
  headers: {
@@ -4743,7 +4751,8 @@ function useViewService() {
4743
4751
  options = {},
4744
4752
  aid,
4745
4753
  service,
4746
- xNode
4754
+ xNode,
4755
+ searchParams
4747
4756
  }) => {
4748
4757
  const defaultOptions = {
4749
4758
  load_filters: true,
@@ -4759,8 +4768,11 @@ function useViewService() {
4759
4768
  },
4760
4769
  with_context: context
4761
4770
  };
4771
+ const url = searchParams ? new URL(
4772
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
4773
+ ).toString() : "/call" /* CALL_PATH */;
4762
4774
  return env?.requests?.post(
4763
- "/call" /* CALL_PATH */,
4775
+ url,
4764
4776
  jsonDataView,
4765
4777
  {
4766
4778
  headers: {
@@ -5489,7 +5501,8 @@ function useViewService() {
5489
5501
  xNode,
5490
5502
  service,
5491
5503
  withContext,
5492
- modelsToLoad = []
5504
+ modelsToLoad = [],
5505
+ searchParams
5493
5506
  }) => {
5494
5507
  const jsonData = {
5495
5508
  model,
@@ -5504,8 +5517,11 @@ function useViewService() {
5504
5517
  models_to_load: modelsToLoad
5505
5518
  }
5506
5519
  };
5520
+ const url = searchParams ? new URL(
5521
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
5522
+ ).toString() : "/call" /* CALL_PATH */;
5507
5523
  return env?.requests.post(
5508
- "/call" /* CALL_PATH */,
5524
+ url,
5509
5525
  jsonData,
5510
5526
  {
5511
5527
  headers: {
@@ -5609,7 +5625,8 @@ function useViewService() {
5609
5625
  offset,
5610
5626
  domain,
5611
5627
  xNode,
5612
- service
5628
+ service,
5629
+ searchParams
5613
5630
  }) => {
5614
5631
  const jsonData = {
5615
5632
  model,
@@ -5618,8 +5635,11 @@ function useViewService() {
5618
5635
  offset,
5619
5636
  domain
5620
5637
  };
5638
+ const url = searchParams ? new URL(
5639
+ `${"/search_read" /* SEARCH_READ */}?${toQueryString(searchParams)}`
5640
+ ).toString() : "/search_read" /* SEARCH_READ */;
5621
5641
  return env?.requests.post(
5622
- "/search_read" /* SEARCH_READ */,
5642
+ url,
5623
5643
  jsonData,
5624
5644
  {
5625
5645
  headers: {
package/dist/services.mjs CHANGED
@@ -3155,14 +3155,18 @@ function useActionService() {
3155
3155
  idAction,
3156
3156
  context,
3157
3157
  service,
3158
- xNode
3158
+ xNode,
3159
+ searchParams
3159
3160
  }) => {
3160
3161
  const jsonData = {
3161
3162
  action_id: idAction,
3162
3163
  with_context: { ...context }
3163
3164
  };
3165
+ const url = searchParams ? new URL(
3166
+ `${"/load_action" /* LOAD_ACTION */}?${toQueryString(searchParams)}`
3167
+ ).toString() : "/load_action" /* LOAD_ACTION */;
3164
3168
  return env.requests.post(
3165
- "/load_action" /* LOAD_ACTION */,
3169
+ url,
3166
3170
  jsonData,
3167
3171
  {
3168
3172
  headers: { "Content-Type": "application/json", "X-Node": xNode }
@@ -4285,7 +4289,8 @@ function useModelService() {
4285
4289
  async ({
4286
4290
  data,
4287
4291
  service,
4288
- xNode
4292
+ xNode,
4293
+ searchParams
4289
4294
  }) => {
4290
4295
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
4291
4296
  fields: data.fields,
@@ -4307,8 +4312,11 @@ function useModelService() {
4307
4312
  ...jsonReadGroup
4308
4313
  }
4309
4314
  };
4315
+ const url = searchParams ? new URL(
4316
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
4317
+ ).toString() : "/call" /* CALL_PATH */;
4310
4318
  return env.requests.post(
4311
- "/call" /* CALL_PATH */,
4319
+ url,
4312
4320
  jsonData,
4313
4321
  {
4314
4322
  headers: {
@@ -4698,7 +4706,8 @@ function useViewService() {
4698
4706
  options = {},
4699
4707
  aid,
4700
4708
  service,
4701
- xNode
4709
+ xNode,
4710
+ searchParams
4702
4711
  }) => {
4703
4712
  const defaultOptions = {
4704
4713
  load_filters: true,
@@ -4714,8 +4723,11 @@ function useViewService() {
4714
4723
  },
4715
4724
  with_context: context
4716
4725
  };
4726
+ const url = searchParams ? new URL(
4727
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
4728
+ ).toString() : "/call" /* CALL_PATH */;
4717
4729
  return env?.requests?.post(
4718
- "/call" /* CALL_PATH */,
4730
+ url,
4719
4731
  jsonDataView,
4720
4732
  {
4721
4733
  headers: {
@@ -5444,7 +5456,8 @@ function useViewService() {
5444
5456
  xNode,
5445
5457
  service,
5446
5458
  withContext,
5447
- modelsToLoad = []
5459
+ modelsToLoad = [],
5460
+ searchParams
5448
5461
  }) => {
5449
5462
  const jsonData = {
5450
5463
  model,
@@ -5459,8 +5472,11 @@ function useViewService() {
5459
5472
  models_to_load: modelsToLoad
5460
5473
  }
5461
5474
  };
5475
+ const url = searchParams ? new URL(
5476
+ `${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`
5477
+ ).toString() : "/call" /* CALL_PATH */;
5462
5478
  return env?.requests.post(
5463
- "/call" /* CALL_PATH */,
5479
+ url,
5464
5480
  jsonData,
5465
5481
  {
5466
5482
  headers: {
@@ -5564,7 +5580,8 @@ function useViewService() {
5564
5580
  offset,
5565
5581
  domain,
5566
5582
  xNode,
5567
- service
5583
+ service,
5584
+ searchParams
5568
5585
  }) => {
5569
5586
  const jsonData = {
5570
5587
  model,
@@ -5573,8 +5590,11 @@ function useViewService() {
5573
5590
  offset,
5574
5591
  domain
5575
5592
  };
5593
+ const url = searchParams ? new URL(
5594
+ `${"/search_read" /* SEARCH_READ */}?${toQueryString(searchParams)}`
5595
+ ).toString() : "/search_read" /* SEARCH_READ */;
5576
5596
  return env?.requests.post(
5577
- "/search_read" /* SEARCH_READ */,
5597
+ url,
5578
5598
  jsonData,
5579
5599
  {
5580
5600
  headers: {
package/dist/types.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-CRNLhTVq.mjs';
1
+ export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-CfcWWR0w.mjs';
2
2
  export { B as BaseModelInit } from './base-model-type-DD8uZnDP.mjs';
3
3
 
4
4
  interface Config {
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-CRNLhTVq.js';
1
+ export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-CfcWWR0w.js';
2
2
  export { B as BaseModelInit } from './base-model-type-DD8uZnDP.js';
3
3
 
4
4
  interface Config {
@@ -131,6 +131,7 @@ interface GetViewParams {
131
131
  aid?: number | string | null | boolean;
132
132
  service?: string;
133
133
  xNode?: string;
134
+ searchParams?: Record<string, string | number | boolean>;
134
135
  }
135
136
 
136
137
  export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, TThreadData as T, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, GetExternalTab as h, updatePasswordBody as u };
@@ -131,6 +131,7 @@ interface GetViewParams {
131
131
  aid?: number | string | null | boolean;
132
132
  service?: string;
133
133
  xNode?: string;
134
+ searchParams?: Record<string, string | number | boolean>;
134
135
  }
135
136
 
136
137
  export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, TThreadData as T, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, GetExternalTab as h, updatePasswordBody as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "3.9.1",
3
+ "version": "3.9.3",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",