@fctc/interface-logic 3.9.1 → 3.9.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/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,16 @@ 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(`${"/load_action" /* LOAD_ACTION */}?${toQueryString(searchParams)}`) : "/load_action" /* LOAD_ACTION */;
3016
3018
  return env.requests.post(
3017
- "/load_action" /* LOAD_ACTION */,
3019
+ url,
3018
3020
  jsonData,
3019
3021
  {
3020
3022
  headers: { "Content-Type": "application/json", "X-Node": xNode }
@@ -4137,7 +4139,8 @@ function useModelService() {
4137
4139
  async ({
4138
4140
  data,
4139
4141
  service,
4140
- xNode
4142
+ xNode,
4143
+ searchParams
4141
4144
  }) => {
4142
4145
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
4143
4146
  fields: data.fields,
@@ -4159,8 +4162,9 @@ function useModelService() {
4159
4162
  ...jsonReadGroup
4160
4163
  }
4161
4164
  };
4165
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
4162
4166
  return env.requests.post(
4163
- "/call" /* CALL_PATH */,
4167
+ url,
4164
4168
  jsonData,
4165
4169
  {
4166
4170
  headers: {
@@ -4550,7 +4554,8 @@ function useViewService() {
4550
4554
  options = {},
4551
4555
  aid,
4552
4556
  service,
4553
- xNode
4557
+ xNode,
4558
+ searchParams
4554
4559
  }) => {
4555
4560
  const defaultOptions = {
4556
4561
  load_filters: true,
@@ -4566,8 +4571,9 @@ function useViewService() {
4566
4571
  },
4567
4572
  with_context: context
4568
4573
  };
4574
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
4569
4575
  return env?.requests?.post(
4570
- "/call" /* CALL_PATH */,
4576
+ url,
4571
4577
  jsonDataView,
4572
4578
  {
4573
4579
  headers: {
@@ -5296,7 +5302,8 @@ function useViewService() {
5296
5302
  xNode,
5297
5303
  service,
5298
5304
  withContext,
5299
- modelsToLoad = []
5305
+ modelsToLoad = [],
5306
+ searchParams
5300
5307
  }) => {
5301
5308
  const jsonData = {
5302
5309
  model,
@@ -5311,8 +5318,9 @@ function useViewService() {
5311
5318
  models_to_load: modelsToLoad
5312
5319
  }
5313
5320
  };
5321
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
5314
5322
  return env?.requests.post(
5315
- "/call" /* CALL_PATH */,
5323
+ url,
5316
5324
  jsonData,
5317
5325
  {
5318
5326
  headers: {
@@ -5416,7 +5424,8 @@ function useViewService() {
5416
5424
  offset,
5417
5425
  domain,
5418
5426
  xNode,
5419
- service
5427
+ service,
5428
+ searchParams
5420
5429
  }) => {
5421
5430
  const jsonData = {
5422
5431
  model,
@@ -5425,8 +5434,9 @@ function useViewService() {
5425
5434
  offset,
5426
5435
  domain
5427
5436
  };
5437
+ const url = searchParams ? new URL(`${"/search_read" /* SEARCH_READ */}?${toQueryString(searchParams)}`) : "/search_read" /* SEARCH_READ */;
5428
5438
  return env?.requests.post(
5429
- "/search_read" /* SEARCH_READ */,
5439
+ url,
5430
5440
  jsonData,
5431
5441
  {
5432
5442
  headers: {
@@ -6963,11 +6973,16 @@ var use_get_groups_default = useGetGroups;
6963
6973
 
6964
6974
  // src/hooks/view/use-get-list-data.ts
6965
6975
  var import_react_query55 = require("@tanstack/react-query");
6966
- var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
6976
+ var useGetListData = (listDataProps, queryKey, enabled, service, xNode, searchParams) => {
6967
6977
  const { getAll } = useModelService();
6968
6978
  return (0, import_react_query55.useQuery)({
6969
6979
  queryKey,
6970
- queryFn: () => getAll({ data: listDataProps, service, xNode }).then((res) => {
6980
+ queryFn: () => getAll({
6981
+ data: listDataProps,
6982
+ service,
6983
+ xNode,
6984
+ searchParams
6985
+ }).then((res) => {
6971
6986
  if (res) {
6972
6987
  return res;
6973
6988
  }
@@ -7086,13 +7101,15 @@ var useLoadAction = () => {
7086
7101
  idAction,
7087
7102
  context,
7088
7103
  service,
7089
- xNode
7104
+ xNode,
7105
+ searchParams
7090
7106
  }) => {
7091
7107
  return loadAction({
7092
7108
  idAction,
7093
7109
  context,
7094
7110
  service,
7095
- xNode
7111
+ xNode,
7112
+ searchParams
7096
7113
  });
7097
7114
  }
7098
7115
  });
@@ -7610,7 +7627,8 @@ var useLoadDataPosSession = () => {
7610
7627
  xNode,
7611
7628
  service,
7612
7629
  withContext,
7613
- modelsToLoad
7630
+ modelsToLoad,
7631
+ searchParams
7614
7632
  }) => {
7615
7633
  return loadDataPosSession({
7616
7634
  model,
@@ -7618,7 +7636,8 @@ var useLoadDataPosSession = () => {
7618
7636
  xNode,
7619
7637
  service,
7620
7638
  withContext,
7621
- modelsToLoad
7639
+ modelsToLoad,
7640
+ searchParams
7622
7641
  });
7623
7642
  }
7624
7643
  });
@@ -7707,7 +7726,8 @@ var useGetProductImage = () => {
7707
7726
  offset,
7708
7727
  domain,
7709
7728
  xNode,
7710
- service
7729
+ service,
7730
+ searchParams
7711
7731
  }) => {
7712
7732
  return getProductImage({
7713
7733
  model,
@@ -7716,7 +7736,8 @@ var useGetProductImage = () => {
7716
7736
  offset,
7717
7737
  domain,
7718
7738
  xNode,
7719
- service
7739
+ service,
7740
+ searchParams
7720
7741
  });
7721
7742
  }
7722
7743
  });
package/dist/hooks.mjs CHANGED
@@ -2866,14 +2866,16 @@ 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(`${"/load_action" /* LOAD_ACTION */}?${toQueryString(searchParams)}`) : "/load_action" /* LOAD_ACTION */;
2875
2877
  return env.requests.post(
2876
- "/load_action" /* LOAD_ACTION */,
2878
+ url,
2877
2879
  jsonData,
2878
2880
  {
2879
2881
  headers: { "Content-Type": "application/json", "X-Node": xNode }
@@ -3996,7 +3998,8 @@ function useModelService() {
3996
3998
  async ({
3997
3999
  data,
3998
4000
  service,
3999
- xNode
4001
+ xNode,
4002
+ searchParams
4000
4003
  }) => {
4001
4004
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
4002
4005
  fields: data.fields,
@@ -4018,8 +4021,9 @@ function useModelService() {
4018
4021
  ...jsonReadGroup
4019
4022
  }
4020
4023
  };
4024
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
4021
4025
  return env.requests.post(
4022
- "/call" /* CALL_PATH */,
4026
+ url,
4023
4027
  jsonData,
4024
4028
  {
4025
4029
  headers: {
@@ -4409,7 +4413,8 @@ function useViewService() {
4409
4413
  options = {},
4410
4414
  aid,
4411
4415
  service,
4412
- xNode
4416
+ xNode,
4417
+ searchParams
4413
4418
  }) => {
4414
4419
  const defaultOptions = {
4415
4420
  load_filters: true,
@@ -4425,8 +4430,9 @@ function useViewService() {
4425
4430
  },
4426
4431
  with_context: context
4427
4432
  };
4433
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
4428
4434
  return env?.requests?.post(
4429
- "/call" /* CALL_PATH */,
4435
+ url,
4430
4436
  jsonDataView,
4431
4437
  {
4432
4438
  headers: {
@@ -5155,7 +5161,8 @@ function useViewService() {
5155
5161
  xNode,
5156
5162
  service,
5157
5163
  withContext,
5158
- modelsToLoad = []
5164
+ modelsToLoad = [],
5165
+ searchParams
5159
5166
  }) => {
5160
5167
  const jsonData = {
5161
5168
  model,
@@ -5170,8 +5177,9 @@ function useViewService() {
5170
5177
  models_to_load: modelsToLoad
5171
5178
  }
5172
5179
  };
5180
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
5173
5181
  return env?.requests.post(
5174
- "/call" /* CALL_PATH */,
5182
+ url,
5175
5183
  jsonData,
5176
5184
  {
5177
5185
  headers: {
@@ -5275,7 +5283,8 @@ function useViewService() {
5275
5283
  offset,
5276
5284
  domain,
5277
5285
  xNode,
5278
- service
5286
+ service,
5287
+ searchParams
5279
5288
  }) => {
5280
5289
  const jsonData = {
5281
5290
  model,
@@ -5284,8 +5293,9 @@ function useViewService() {
5284
5293
  offset,
5285
5294
  domain
5286
5295
  };
5296
+ const url = searchParams ? new URL(`${"/search_read" /* SEARCH_READ */}?${toQueryString(searchParams)}`) : "/search_read" /* SEARCH_READ */;
5287
5297
  return env?.requests.post(
5288
- "/search_read" /* SEARCH_READ */,
5298
+ url,
5289
5299
  jsonData,
5290
5300
  {
5291
5301
  headers: {
@@ -6822,11 +6832,16 @@ var use_get_groups_default = useGetGroups;
6822
6832
 
6823
6833
  // src/hooks/view/use-get-list-data.ts
6824
6834
  import { useQuery as useQuery17 } from "@tanstack/react-query";
6825
- var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
6835
+ var useGetListData = (listDataProps, queryKey, enabled, service, xNode, searchParams) => {
6826
6836
  const { getAll } = useModelService();
6827
6837
  return useQuery17({
6828
6838
  queryKey,
6829
- queryFn: () => getAll({ data: listDataProps, service, xNode }).then((res) => {
6839
+ queryFn: () => getAll({
6840
+ data: listDataProps,
6841
+ service,
6842
+ xNode,
6843
+ searchParams
6844
+ }).then((res) => {
6830
6845
  if (res) {
6831
6846
  return res;
6832
6847
  }
@@ -6945,13 +6960,15 @@ var useLoadAction = () => {
6945
6960
  idAction,
6946
6961
  context,
6947
6962
  service,
6948
- xNode
6963
+ xNode,
6964
+ searchParams
6949
6965
  }) => {
6950
6966
  return loadAction({
6951
6967
  idAction,
6952
6968
  context,
6953
6969
  service,
6954
- xNode
6970
+ xNode,
6971
+ searchParams
6955
6972
  });
6956
6973
  }
6957
6974
  });
@@ -7469,7 +7486,8 @@ var useLoadDataPosSession = () => {
7469
7486
  xNode,
7470
7487
  service,
7471
7488
  withContext,
7472
- modelsToLoad
7489
+ modelsToLoad,
7490
+ searchParams
7473
7491
  }) => {
7474
7492
  return loadDataPosSession({
7475
7493
  model,
@@ -7477,7 +7495,8 @@ var useLoadDataPosSession = () => {
7477
7495
  xNode,
7478
7496
  service,
7479
7497
  withContext,
7480
- modelsToLoad
7498
+ modelsToLoad,
7499
+ searchParams
7481
7500
  });
7482
7501
  }
7483
7502
  });
@@ -7566,7 +7585,8 @@ var useGetProductImage = () => {
7566
7585
  offset,
7567
7586
  domain,
7568
7587
  xNode,
7569
- service
7588
+ service,
7589
+ searchParams
7570
7590
  }) => {
7571
7591
  return getProductImage({
7572
7592
  model,
@@ -7575,7 +7595,8 @@ var useGetProductImage = () => {
7575
7595
  offset,
7576
7596
  domain,
7577
7597
  xNode,
7578
- service
7598
+ service,
7599
+ searchParams
7579
7600
  });
7580
7601
  }
7581
7602
  });
@@ -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,16 @@ 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(`${"/load_action" /* LOAD_ACTION */}?${toQueryString(searchParams)}`) : "/load_action" /* LOAD_ACTION */;
3004
3006
  return env.requests.post(
3005
- "/load_action" /* LOAD_ACTION */,
3007
+ url,
3006
3008
  jsonData,
3007
3009
  {
3008
3010
  headers: { "Content-Type": "application/json", "X-Node": xNode }
@@ -4125,7 +4127,8 @@ function useModelService() {
4125
4127
  async ({
4126
4128
  data,
4127
4129
  service,
4128
- xNode
4130
+ xNode,
4131
+ searchParams
4129
4132
  }) => {
4130
4133
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
4131
4134
  fields: data.fields,
@@ -4147,8 +4150,9 @@ function useModelService() {
4147
4150
  ...jsonReadGroup
4148
4151
  }
4149
4152
  };
4153
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
4150
4154
  return env.requests.post(
4151
- "/call" /* CALL_PATH */,
4155
+ url,
4152
4156
  jsonData,
4153
4157
  {
4154
4158
  headers: {
@@ -4538,7 +4542,8 @@ function useViewService() {
4538
4542
  options = {},
4539
4543
  aid,
4540
4544
  service,
4541
- xNode
4545
+ xNode,
4546
+ searchParams
4542
4547
  }) => {
4543
4548
  const defaultOptions = {
4544
4549
  load_filters: true,
@@ -4554,8 +4559,9 @@ function useViewService() {
4554
4559
  },
4555
4560
  with_context: context
4556
4561
  };
4562
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
4557
4563
  return env?.requests?.post(
4558
- "/call" /* CALL_PATH */,
4564
+ url,
4559
4565
  jsonDataView,
4560
4566
  {
4561
4567
  headers: {
@@ -5284,7 +5290,8 @@ function useViewService() {
5284
5290
  xNode,
5285
5291
  service,
5286
5292
  withContext,
5287
- modelsToLoad = []
5293
+ modelsToLoad = [],
5294
+ searchParams
5288
5295
  }) => {
5289
5296
  const jsonData = {
5290
5297
  model,
@@ -5299,8 +5306,9 @@ function useViewService() {
5299
5306
  models_to_load: modelsToLoad
5300
5307
  }
5301
5308
  };
5309
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
5302
5310
  return env?.requests.post(
5303
- "/call" /* CALL_PATH */,
5311
+ url,
5304
5312
  jsonData,
5305
5313
  {
5306
5314
  headers: {
@@ -5404,7 +5412,8 @@ function useViewService() {
5404
5412
  offset,
5405
5413
  domain,
5406
5414
  xNode,
5407
- service
5415
+ service,
5416
+ searchParams
5408
5417
  }) => {
5409
5418
  const jsonData = {
5410
5419
  model,
@@ -5413,8 +5422,9 @@ function useViewService() {
5413
5422
  offset,
5414
5423
  domain
5415
5424
  };
5425
+ const url = searchParams ? new URL(`${"/search_read" /* SEARCH_READ */}?${toQueryString(searchParams)}`) : "/search_read" /* SEARCH_READ */;
5416
5426
  return env?.requests.post(
5417
- "/search_read" /* SEARCH_READ */,
5427
+ url,
5418
5428
  jsonData,
5419
5429
  {
5420
5430
  headers: {
@@ -7440,11 +7450,16 @@ var use_get_groups_default = useGetGroups;
7440
7450
 
7441
7451
  // src/hooks/view/use-get-list-data.ts
7442
7452
  var import_react_query55 = require("@tanstack/react-query");
7443
- var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
7453
+ var useGetListData = (listDataProps, queryKey, enabled, service, xNode, searchParams) => {
7444
7454
  const { getAll } = useModelService();
7445
7455
  return (0, import_react_query55.useQuery)({
7446
7456
  queryKey,
7447
- queryFn: () => getAll({ data: listDataProps, service, xNode }).then((res) => {
7457
+ queryFn: () => getAll({
7458
+ data: listDataProps,
7459
+ service,
7460
+ xNode,
7461
+ searchParams
7462
+ }).then((res) => {
7448
7463
  if (res) {
7449
7464
  return res;
7450
7465
  }
@@ -7563,13 +7578,15 @@ var useLoadAction = () => {
7563
7578
  idAction,
7564
7579
  context,
7565
7580
  service,
7566
- xNode
7581
+ xNode,
7582
+ searchParams
7567
7583
  }) => {
7568
7584
  return loadAction({
7569
7585
  idAction,
7570
7586
  context,
7571
7587
  service,
7572
- xNode
7588
+ xNode,
7589
+ searchParams
7573
7590
  });
7574
7591
  }
7575
7592
  });
@@ -8087,7 +8104,8 @@ var useLoadDataPosSession = () => {
8087
8104
  xNode,
8088
8105
  service,
8089
8106
  withContext,
8090
- modelsToLoad
8107
+ modelsToLoad,
8108
+ searchParams
8091
8109
  }) => {
8092
8110
  return loadDataPosSession({
8093
8111
  model,
@@ -8095,7 +8113,8 @@ var useLoadDataPosSession = () => {
8095
8113
  xNode,
8096
8114
  service,
8097
8115
  withContext,
8098
- modelsToLoad
8116
+ modelsToLoad,
8117
+ searchParams
8099
8118
  });
8100
8119
  }
8101
8120
  });
@@ -8184,7 +8203,8 @@ var useGetProductImage = () => {
8184
8203
  offset,
8185
8204
  domain,
8186
8205
  xNode,
8187
- service
8206
+ service,
8207
+ searchParams
8188
8208
  }) => {
8189
8209
  return getProductImage({
8190
8210
  model,
@@ -8193,7 +8213,8 @@ var useGetProductImage = () => {
8193
8213
  offset,
8194
8214
  domain,
8195
8215
  xNode,
8196
- service
8216
+ service,
8217
+ searchParams
8197
8218
  });
8198
8219
  }
8199
8220
  });
package/dist/provider.mjs CHANGED
@@ -2952,14 +2952,16 @@ 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(`${"/load_action" /* LOAD_ACTION */}?${toQueryString(searchParams)}`) : "/load_action" /* LOAD_ACTION */;
2961
2963
  return env.requests.post(
2962
- "/load_action" /* LOAD_ACTION */,
2964
+ url,
2963
2965
  jsonData,
2964
2966
  {
2965
2967
  headers: { "Content-Type": "application/json", "X-Node": xNode }
@@ -4082,7 +4084,8 @@ function useModelService() {
4082
4084
  async ({
4083
4085
  data,
4084
4086
  service,
4085
- xNode
4087
+ xNode,
4088
+ searchParams
4086
4089
  }) => {
4087
4090
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
4088
4091
  fields: data.fields,
@@ -4104,8 +4107,9 @@ function useModelService() {
4104
4107
  ...jsonReadGroup
4105
4108
  }
4106
4109
  };
4110
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
4107
4111
  return env.requests.post(
4108
- "/call" /* CALL_PATH */,
4112
+ url,
4109
4113
  jsonData,
4110
4114
  {
4111
4115
  headers: {
@@ -4495,7 +4499,8 @@ function useViewService() {
4495
4499
  options = {},
4496
4500
  aid,
4497
4501
  service,
4498
- xNode
4502
+ xNode,
4503
+ searchParams
4499
4504
  }) => {
4500
4505
  const defaultOptions = {
4501
4506
  load_filters: true,
@@ -4511,8 +4516,9 @@ function useViewService() {
4511
4516
  },
4512
4517
  with_context: context
4513
4518
  };
4519
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
4514
4520
  return env?.requests?.post(
4515
- "/call" /* CALL_PATH */,
4521
+ url,
4516
4522
  jsonDataView,
4517
4523
  {
4518
4524
  headers: {
@@ -5241,7 +5247,8 @@ function useViewService() {
5241
5247
  xNode,
5242
5248
  service,
5243
5249
  withContext,
5244
- modelsToLoad = []
5250
+ modelsToLoad = [],
5251
+ searchParams
5245
5252
  }) => {
5246
5253
  const jsonData = {
5247
5254
  model,
@@ -5256,8 +5263,9 @@ function useViewService() {
5256
5263
  models_to_load: modelsToLoad
5257
5264
  }
5258
5265
  };
5266
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
5259
5267
  return env?.requests.post(
5260
- "/call" /* CALL_PATH */,
5268
+ url,
5261
5269
  jsonData,
5262
5270
  {
5263
5271
  headers: {
@@ -5361,7 +5369,8 @@ function useViewService() {
5361
5369
  offset,
5362
5370
  domain,
5363
5371
  xNode,
5364
- service
5372
+ service,
5373
+ searchParams
5365
5374
  }) => {
5366
5375
  const jsonData = {
5367
5376
  model,
@@ -5370,8 +5379,9 @@ function useViewService() {
5370
5379
  offset,
5371
5380
  domain
5372
5381
  };
5382
+ const url = searchParams ? new URL(`${"/search_read" /* SEARCH_READ */}?${toQueryString(searchParams)}`) : "/search_read" /* SEARCH_READ */;
5373
5383
  return env?.requests.post(
5374
- "/search_read" /* SEARCH_READ */,
5384
+ url,
5375
5385
  jsonData,
5376
5386
  {
5377
5387
  headers: {
@@ -7397,11 +7407,16 @@ var use_get_groups_default = useGetGroups;
7397
7407
 
7398
7408
  // src/hooks/view/use-get-list-data.ts
7399
7409
  import { useQuery as useQuery17 } from "@tanstack/react-query";
7400
- var useGetListData = (listDataProps, queryKey, enabled, service, xNode) => {
7410
+ var useGetListData = (listDataProps, queryKey, enabled, service, xNode, searchParams) => {
7401
7411
  const { getAll } = useModelService();
7402
7412
  return useQuery17({
7403
7413
  queryKey,
7404
- queryFn: () => getAll({ data: listDataProps, service, xNode }).then((res) => {
7414
+ queryFn: () => getAll({
7415
+ data: listDataProps,
7416
+ service,
7417
+ xNode,
7418
+ searchParams
7419
+ }).then((res) => {
7405
7420
  if (res) {
7406
7421
  return res;
7407
7422
  }
@@ -7520,13 +7535,15 @@ var useLoadAction = () => {
7520
7535
  idAction,
7521
7536
  context,
7522
7537
  service,
7523
- xNode
7538
+ xNode,
7539
+ searchParams
7524
7540
  }) => {
7525
7541
  return loadAction({
7526
7542
  idAction,
7527
7543
  context,
7528
7544
  service,
7529
- xNode
7545
+ xNode,
7546
+ searchParams
7530
7547
  });
7531
7548
  }
7532
7549
  });
@@ -8044,7 +8061,8 @@ var useLoadDataPosSession = () => {
8044
8061
  xNode,
8045
8062
  service,
8046
8063
  withContext,
8047
- modelsToLoad
8064
+ modelsToLoad,
8065
+ searchParams
8048
8066
  }) => {
8049
8067
  return loadDataPosSession({
8050
8068
  model,
@@ -8052,7 +8070,8 @@ var useLoadDataPosSession = () => {
8052
8070
  xNode,
8053
8071
  service,
8054
8072
  withContext,
8055
- modelsToLoad
8073
+ modelsToLoad,
8074
+ searchParams
8056
8075
  });
8057
8076
  }
8058
8077
  });
@@ -8141,7 +8160,8 @@ var useGetProductImage = () => {
8141
8160
  offset,
8142
8161
  domain,
8143
8162
  xNode,
8144
- service
8163
+ service,
8164
+ searchParams
8145
8165
  }) => {
8146
8166
  return getProductImage({
8147
8167
  model,
@@ -8150,7 +8170,8 @@ var useGetProductImage = () => {
8150
8170
  offset,
8151
8171
  domain,
8152
8172
  xNode,
8153
- service
8173
+ service,
8174
+ searchParams
8154
8175
  });
8155
8176
  }
8156
8177
  });
@@ -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,16 @@ 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(`${"/load_action" /* LOAD_ACTION */}?${toQueryString(searchParams)}`) : "/load_action" /* LOAD_ACTION */;
3209
3211
  return env.requests.post(
3210
- "/load_action" /* LOAD_ACTION */,
3212
+ url,
3211
3213
  jsonData,
3212
3214
  {
3213
3215
  headers: { "Content-Type": "application/json", "X-Node": xNode }
@@ -4330,7 +4332,8 @@ function useModelService() {
4330
4332
  async ({
4331
4333
  data,
4332
4334
  service,
4333
- xNode
4335
+ xNode,
4336
+ searchParams
4334
4337
  }) => {
4335
4338
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
4336
4339
  fields: data.fields,
@@ -4352,8 +4355,9 @@ function useModelService() {
4352
4355
  ...jsonReadGroup
4353
4356
  }
4354
4357
  };
4358
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
4355
4359
  return env.requests.post(
4356
- "/call" /* CALL_PATH */,
4360
+ url,
4357
4361
  jsonData,
4358
4362
  {
4359
4363
  headers: {
@@ -4743,7 +4747,8 @@ function useViewService() {
4743
4747
  options = {},
4744
4748
  aid,
4745
4749
  service,
4746
- xNode
4750
+ xNode,
4751
+ searchParams
4747
4752
  }) => {
4748
4753
  const defaultOptions = {
4749
4754
  load_filters: true,
@@ -4759,8 +4764,9 @@ function useViewService() {
4759
4764
  },
4760
4765
  with_context: context
4761
4766
  };
4767
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
4762
4768
  return env?.requests?.post(
4763
- "/call" /* CALL_PATH */,
4769
+ url,
4764
4770
  jsonDataView,
4765
4771
  {
4766
4772
  headers: {
@@ -5489,7 +5495,8 @@ function useViewService() {
5489
5495
  xNode,
5490
5496
  service,
5491
5497
  withContext,
5492
- modelsToLoad = []
5498
+ modelsToLoad = [],
5499
+ searchParams
5493
5500
  }) => {
5494
5501
  const jsonData = {
5495
5502
  model,
@@ -5504,8 +5511,9 @@ function useViewService() {
5504
5511
  models_to_load: modelsToLoad
5505
5512
  }
5506
5513
  };
5514
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
5507
5515
  return env?.requests.post(
5508
- "/call" /* CALL_PATH */,
5516
+ url,
5509
5517
  jsonData,
5510
5518
  {
5511
5519
  headers: {
@@ -5609,7 +5617,8 @@ function useViewService() {
5609
5617
  offset,
5610
5618
  domain,
5611
5619
  xNode,
5612
- service
5620
+ service,
5621
+ searchParams
5613
5622
  }) => {
5614
5623
  const jsonData = {
5615
5624
  model,
@@ -5618,8 +5627,9 @@ function useViewService() {
5618
5627
  offset,
5619
5628
  domain
5620
5629
  };
5630
+ const url = searchParams ? new URL(`${"/search_read" /* SEARCH_READ */}?${toQueryString(searchParams)}`) : "/search_read" /* SEARCH_READ */;
5621
5631
  return env?.requests.post(
5622
- "/search_read" /* SEARCH_READ */,
5632
+ url,
5623
5633
  jsonData,
5624
5634
  {
5625
5635
  headers: {
package/dist/services.mjs CHANGED
@@ -3155,14 +3155,16 @@ 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(`${"/load_action" /* LOAD_ACTION */}?${toQueryString(searchParams)}`) : "/load_action" /* LOAD_ACTION */;
3164
3166
  return env.requests.post(
3165
- "/load_action" /* LOAD_ACTION */,
3167
+ url,
3166
3168
  jsonData,
3167
3169
  {
3168
3170
  headers: { "Content-Type": "application/json", "X-Node": xNode }
@@ -4285,7 +4287,8 @@ function useModelService() {
4285
4287
  async ({
4286
4288
  data,
4287
4289
  service,
4288
- xNode
4290
+ xNode,
4291
+ searchParams
4289
4292
  }) => {
4290
4293
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
4291
4294
  fields: data.fields,
@@ -4307,8 +4310,9 @@ function useModelService() {
4307
4310
  ...jsonReadGroup
4308
4311
  }
4309
4312
  };
4313
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
4310
4314
  return env.requests.post(
4311
- "/call" /* CALL_PATH */,
4315
+ url,
4312
4316
  jsonData,
4313
4317
  {
4314
4318
  headers: {
@@ -4698,7 +4702,8 @@ function useViewService() {
4698
4702
  options = {},
4699
4703
  aid,
4700
4704
  service,
4701
- xNode
4705
+ xNode,
4706
+ searchParams
4702
4707
  }) => {
4703
4708
  const defaultOptions = {
4704
4709
  load_filters: true,
@@ -4714,8 +4719,9 @@ function useViewService() {
4714
4719
  },
4715
4720
  with_context: context
4716
4721
  };
4722
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
4717
4723
  return env?.requests?.post(
4718
- "/call" /* CALL_PATH */,
4724
+ url,
4719
4725
  jsonDataView,
4720
4726
  {
4721
4727
  headers: {
@@ -5444,7 +5450,8 @@ function useViewService() {
5444
5450
  xNode,
5445
5451
  service,
5446
5452
  withContext,
5447
- modelsToLoad = []
5453
+ modelsToLoad = [],
5454
+ searchParams
5448
5455
  }) => {
5449
5456
  const jsonData = {
5450
5457
  model,
@@ -5459,8 +5466,9 @@ function useViewService() {
5459
5466
  models_to_load: modelsToLoad
5460
5467
  }
5461
5468
  };
5469
+ const url = searchParams ? new URL(`${"/call" /* CALL_PATH */}?${toQueryString(searchParams)}`) : "/call" /* CALL_PATH */;
5462
5470
  return env?.requests.post(
5463
- "/call" /* CALL_PATH */,
5471
+ url,
5464
5472
  jsonData,
5465
5473
  {
5466
5474
  headers: {
@@ -5564,7 +5572,8 @@ function useViewService() {
5564
5572
  offset,
5565
5573
  domain,
5566
5574
  xNode,
5567
- service
5575
+ service,
5576
+ searchParams
5568
5577
  }) => {
5569
5578
  const jsonData = {
5570
5579
  model,
@@ -5573,8 +5582,9 @@ function useViewService() {
5573
5582
  offset,
5574
5583
  domain
5575
5584
  };
5585
+ const url = searchParams ? new URL(`${"/search_read" /* SEARCH_READ */}?${toQueryString(searchParams)}`) : "/search_read" /* SEARCH_READ */;
5576
5586
  return env?.requests.post(
5577
- "/search_read" /* SEARCH_READ */,
5587
+ url,
5578
5588
  jsonData,
5579
5589
  {
5580
5590
  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.2",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",