@fctc/interface-logic 4.0.7 → 4.0.9

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.js CHANGED
@@ -2337,6 +2337,15 @@ var isBase64File = (str) => {
2337
2337
  return false;
2338
2338
  }
2339
2339
  };
2340
+ function cleanObject(obj) {
2341
+ const result = {};
2342
+ for (const [k, v] of Object.entries(obj)) {
2343
+ if (v !== null && v !== void 0) {
2344
+ result[k] = v;
2345
+ }
2346
+ }
2347
+ return result;
2348
+ }
2340
2349
 
2341
2350
  // src/provider/react-query-provider.tsx
2342
2351
  var import_react2 = require("react");
@@ -5234,12 +5243,12 @@ function useViewService() {
5234
5243
  const jsonData = {
5235
5244
  model,
5236
5245
  method: "web_search_read" /* WEB_SEARCH_READ */,
5237
- kwargs: {
5246
+ kwargs: cleanObject({
5238
5247
  domain,
5239
5248
  offset,
5240
5249
  limit,
5241
5250
  specification
5242
- }
5251
+ })
5243
5252
  };
5244
5253
  return env?.requests.post(
5245
5254
  "/call" /* CALL_PATH */,
package/dist/hooks.mjs CHANGED
@@ -2194,6 +2194,15 @@ var isBase64File = (str) => {
2194
2194
  return false;
2195
2195
  }
2196
2196
  };
2197
+ function cleanObject(obj) {
2198
+ const result = {};
2199
+ for (const [k, v] of Object.entries(obj)) {
2200
+ if (v !== null && v !== void 0) {
2201
+ result[k] = v;
2202
+ }
2203
+ }
2204
+ return result;
2205
+ }
2197
2206
 
2198
2207
  // src/provider/react-query-provider.tsx
2199
2208
  import { useState as useState2 } from "react";
@@ -5091,12 +5100,12 @@ function useViewService() {
5091
5100
  const jsonData = {
5092
5101
  model,
5093
5102
  method: "web_search_read" /* WEB_SEARCH_READ */,
5094
- kwargs: {
5103
+ kwargs: cleanObject({
5095
5104
  domain,
5096
5105
  offset,
5097
5106
  limit,
5098
5107
  specification
5099
- }
5108
+ })
5100
5109
  };
5101
5110
  return env?.requests.post(
5102
5111
  "/call" /* CALL_PATH */,
package/dist/provider.js CHANGED
@@ -2912,6 +2912,15 @@ var updateTokenParamInOriginalRequest = (originalRequest, newAccessToken) => {
2912
2912
  }
2913
2913
  return originalRequest.data;
2914
2914
  };
2915
+ function cleanObject(obj) {
2916
+ const result = {};
2917
+ for (const [k, v] of Object.entries(obj)) {
2918
+ if (v !== null && v !== void 0) {
2919
+ result[k] = v;
2920
+ }
2921
+ }
2922
+ return result;
2923
+ }
2915
2924
 
2916
2925
  // src/utils/storage/local-storage.ts
2917
2926
  var localStorageUtils = () => {
@@ -5221,12 +5230,12 @@ function useViewService() {
5221
5230
  const jsonData = {
5222
5231
  model,
5223
5232
  method: "web_search_read" /* WEB_SEARCH_READ */,
5224
- kwargs: {
5233
+ kwargs: cleanObject({
5225
5234
  domain,
5226
5235
  offset,
5227
5236
  limit,
5228
5237
  specification
5229
- }
5238
+ })
5230
5239
  };
5231
5240
  return env?.requests.post(
5232
5241
  "/call" /* CALL_PATH */,
package/dist/provider.mjs CHANGED
@@ -2869,6 +2869,15 @@ var updateTokenParamInOriginalRequest = (originalRequest, newAccessToken) => {
2869
2869
  }
2870
2870
  return originalRequest.data;
2871
2871
  };
2872
+ function cleanObject(obj) {
2873
+ const result = {};
2874
+ for (const [k, v] of Object.entries(obj)) {
2875
+ if (v !== null && v !== void 0) {
2876
+ result[k] = v;
2877
+ }
2878
+ }
2879
+ return result;
2880
+ }
2872
2881
 
2873
2882
  // src/utils/storage/local-storage.ts
2874
2883
  var localStorageUtils = () => {
@@ -5178,12 +5187,12 @@ function useViewService() {
5178
5187
  const jsonData = {
5179
5188
  model,
5180
5189
  method: "web_search_read" /* WEB_SEARCH_READ */,
5181
- kwargs: {
5190
+ kwargs: cleanObject({
5182
5191
  domain,
5183
5192
  offset,
5184
5193
  limit,
5185
5194
  specification
5186
- }
5195
+ })
5187
5196
  };
5188
5197
  return env?.requests.post(
5189
5198
  "/call" /* CALL_PATH */,
@@ -2,7 +2,7 @@ import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U
2
2
 
3
3
  declare function useActionService(): {
4
4
  loadAction: ({ idAction, context, service, xNode, searchParams, }: {
5
- idAction: number;
5
+ idAction: any;
6
6
  context: ContextApi;
7
7
  service?: string;
8
8
  xNode?: string;
@@ -39,7 +39,7 @@ declare function useActionService(): {
39
39
  db: any;
40
40
  }) => Promise<any>;
41
41
  runAction: ({ idAction, context, service, xNode, searchParams, }: {
42
- idAction: number;
42
+ idAction: any;
43
43
  context: ContextApi;
44
44
  service?: string;
45
45
  xNode?: string;
@@ -379,8 +379,8 @@ declare function useViewService(): {
379
379
  service?: string;
380
380
  xNode?: string;
381
381
  specification: any;
382
- offset: number;
383
- limit: number;
382
+ offset?: number;
383
+ limit?: number;
384
384
  }) => any;
385
385
  updateEntity: ({ model, domain, values, isCreateEndpoint, xNode, service, }: {
386
386
  model: string;
@@ -2,7 +2,7 @@ import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U
2
2
 
3
3
  declare function useActionService(): {
4
4
  loadAction: ({ idAction, context, service, xNode, searchParams, }: {
5
- idAction: number;
5
+ idAction: any;
6
6
  context: ContextApi;
7
7
  service?: string;
8
8
  xNode?: string;
@@ -39,7 +39,7 @@ declare function useActionService(): {
39
39
  db: any;
40
40
  }) => Promise<any>;
41
41
  runAction: ({ idAction, context, service, xNode, searchParams, }: {
42
- idAction: number;
42
+ idAction: any;
43
43
  context: ContextApi;
44
44
  service?: string;
45
45
  xNode?: string;
@@ -379,8 +379,8 @@ declare function useViewService(): {
379
379
  service?: string;
380
380
  xNode?: string;
381
381
  specification: any;
382
- offset: number;
383
- limit: number;
382
+ offset?: number;
383
+ limit?: number;
384
384
  }) => any;
385
385
  updateEntity: ({ model, domain, values, isCreateEndpoint, xNode, service, }: {
386
386
  model: string;
package/dist/services.js CHANGED
@@ -2214,6 +2214,15 @@ var toQueryString = (params) => {
2214
2214
  (key) => encodeURIComponent(key) + "=" + encodeURIComponent(params[key].toString())
2215
2215
  ).join("&");
2216
2216
  };
2217
+ function cleanObject(obj) {
2218
+ const result = {};
2219
+ for (const [k, v] of Object.entries(obj)) {
2220
+ if (v !== null && v !== void 0) {
2221
+ result[k] = v;
2222
+ }
2223
+ }
2224
+ return result;
2225
+ }
2217
2226
 
2218
2227
  // src/provider/react-query-provider.tsx
2219
2228
  var import_react2 = require("react");
@@ -5434,12 +5443,12 @@ function useViewService() {
5434
5443
  const jsonData = {
5435
5444
  model,
5436
5445
  method: "web_search_read" /* WEB_SEARCH_READ */,
5437
- kwargs: {
5446
+ kwargs: cleanObject({
5438
5447
  domain,
5439
5448
  offset,
5440
5449
  limit,
5441
5450
  specification
5442
- }
5451
+ })
5443
5452
  };
5444
5453
  return env?.requests.post(
5445
5454
  "/call" /* CALL_PATH */,
package/dist/services.mjs CHANGED
@@ -2169,6 +2169,15 @@ var toQueryString = (params) => {
2169
2169
  (key) => encodeURIComponent(key) + "=" + encodeURIComponent(params[key].toString())
2170
2170
  ).join("&");
2171
2171
  };
2172
+ function cleanObject(obj) {
2173
+ const result = {};
2174
+ for (const [k, v] of Object.entries(obj)) {
2175
+ if (v !== null && v !== void 0) {
2176
+ result[k] = v;
2177
+ }
2178
+ }
2179
+ return result;
2180
+ }
2172
2181
 
2173
2182
  // src/provider/react-query-provider.tsx
2174
2183
  import { useState as useState2 } from "react";
@@ -5389,12 +5398,12 @@ function useViewService() {
5389
5398
  const jsonData = {
5390
5399
  model,
5391
5400
  method: "web_search_read" /* WEB_SEARCH_READ */,
5392
- kwargs: {
5401
+ kwargs: cleanObject({
5393
5402
  domain,
5394
5403
  offset,
5395
5404
  limit,
5396
5405
  specification
5397
- }
5406
+ })
5398
5407
  };
5399
5408
  return env?.requests.post(
5400
5409
  "/call" /* CALL_PATH */,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "4.0.7",
3
+ "version": "4.0.9",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",