@fctc/interface-logic 2.4.3 → 2.4.5

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/configs.js CHANGED
@@ -2378,7 +2378,7 @@ var axiosClient = {
2378
2378
  formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2379
2379
  headers
2380
2380
  ).then(responseBody),
2381
- post: (url, body, headers, serviceName) => instance.post(
2381
+ post: async (url, body, headers, serviceName) => instance.post(
2382
2382
  formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2383
2383
  body,
2384
2384
  headers
package/dist/configs.mjs CHANGED
@@ -2342,7 +2342,7 @@ var axiosClient = {
2342
2342
  formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2343
2343
  headers
2344
2344
  ).then(responseBody),
2345
- post: (url, body, headers, serviceName) => instance.post(
2345
+ post: async (url, body, headers, serviceName) => instance.post(
2346
2346
  formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2347
2347
  body,
2348
2348
  headers
@@ -2380,7 +2380,7 @@ var axiosClient = {
2380
2380
  formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2381
2381
  headers
2382
2382
  ).then(responseBody),
2383
- post: (url, body, headers, serviceName) => instance.post(
2383
+ post: async (url, body, headers, serviceName) => instance.post(
2384
2384
  formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2385
2385
  body,
2386
2386
  headers
@@ -2342,7 +2342,7 @@ var axiosClient = {
2342
2342
  formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2343
2343
  headers
2344
2344
  ).then(responseBody),
2345
- post: (url, body, headers, serviceName) => instance.post(
2345
+ post: async (url, body, headers, serviceName) => instance.post(
2346
2346
  formatUrl(getBaseUrl(config?.baseUrl, serviceName) + url, db),
2347
2347
  body,
2348
2348
  headers
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, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-p4JdAOsz.mjs';
2
+ import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-xxw9OeSR.mjs';
3
3
 
4
4
  declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
5
5
 
@@ -30,7 +30,7 @@ declare const useResetPasswordSSO: () => _tanstack_react_query.UseMutationResult
30
30
 
31
31
  declare const useUpdatePassword: () => _tanstack_react_query.UseMutationResult<any, Error, updatePasswordBody, unknown>;
32
32
 
33
- declare const useLogout: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
33
+ declare const useLogout: () => _tanstack_react_query.UseMutationResult<any, Error, string | undefined, unknown>;
34
34
 
35
35
  declare const useGetAccessByCode: () => _tanstack_react_query.UseMutationResult<any, Error, {
36
36
  code: string;
@@ -158,11 +158,13 @@ declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, E
158
158
  specification?: any;
159
159
  context?: any;
160
160
  service?: string;
161
+ xNode?: string;
161
162
  }, unknown>;
162
163
 
163
- declare const useGetFieldOnChange: ({ model, service, }: {
164
+ declare const useGetFieldOnChange: ({ model, service, xNode, }: {
164
165
  model: string;
165
166
  service?: string;
167
+ xNode?: string;
166
168
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
167
169
 
168
170
  declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
@@ -181,7 +183,6 @@ interface BaseModelInit {
181
183
  declare class BaseModel {
182
184
  name: string;
183
185
  view: Record<string, any>;
184
- actContext?: Record<string, any>;
185
186
  fields?: any;
186
187
  constructor(init: BaseModelInit);
187
188
  private getSpecificationByFields;
@@ -211,6 +212,7 @@ declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any
211
212
  object: any;
212
213
  fieldChange?: any;
213
214
  service?: string;
215
+ xNode?: string;
214
216
  }, unknown>;
215
217
 
216
218
  declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
@@ -221,6 +223,7 @@ declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error,
221
223
  context: any;
222
224
  path?: string;
223
225
  service?: string;
226
+ xNode?: string;
224
227
  }, unknown>;
225
228
 
226
229
  declare const useGetProfile: (path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
@@ -244,6 +247,7 @@ declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Erro
244
247
  context: ContextApi;
245
248
  method: any;
246
249
  service?: string;
250
+ xNode?: string;
247
251
  }, unknown>;
248
252
 
249
253
  declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
@@ -251,6 +255,7 @@ declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<
251
255
  model: string;
252
256
  context: ContextApi;
253
257
  service?: string;
258
+ xNode?: string;
254
259
  }, unknown>;
255
260
 
256
261
  declare const useGetActionDetail: ({ aid, context, enabled, id, model, queryKey, }: {
@@ -269,7 +274,7 @@ declare const useGetGroups: ({ model, width_context, }: {
269
274
  width_context: any;
270
275
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
271
276
 
272
- declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
277
+ declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string, xNode?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
273
278
 
274
279
  declare const useGetMenu: (context: any, specification: any, enabled?: boolean, domain?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
275
280
 
@@ -284,11 +289,12 @@ declare const useGetProGressBar: ({ field, color, model, width_context, }: {
284
289
  width_context: string;
285
290
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
286
291
 
287
- declare const useGetSelection: ({ data, queryKey, enabled, service }: {
292
+ declare const useGetSelection: ({ data, queryKey, enabled, service, xNode, }: {
288
293
  data: GetSelectionType;
289
294
  queryKey: any[];
290
295
  enabled?: boolean;
291
296
  service?: string;
297
+ xNode?: string;
292
298
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
293
299
 
294
300
  declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -297,6 +303,7 @@ declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any,
297
303
  idAction: any;
298
304
  context: ContextApi;
299
305
  service?: string;
306
+ xNode?: string;
300
307
  }, unknown>;
301
308
 
302
309
  declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -312,6 +319,7 @@ declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, E
312
319
  ids: Record<string, any>[] | any;
313
320
  context: ContextApi;
314
321
  service?: string;
322
+ xNode?: string;
315
323
  }, unknown>;
316
324
 
317
325
  declare const useGetResequence: (model: string, resIds: any, context: any, offset: any) => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -320,6 +328,7 @@ declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, E
320
328
  idAction: any;
321
329
  context: ContextApi;
322
330
  service?: string;
331
+ xNode?: string;
323
332
  }, unknown>;
324
333
 
325
334
  declare const useSignInSSO: () => _tanstack_react_query.UseMutationResult<any, 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, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-p4JdAOsz.js';
2
+ import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-xxw9OeSR.js';
3
3
 
4
4
  declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
5
5
 
@@ -30,7 +30,7 @@ declare const useResetPasswordSSO: () => _tanstack_react_query.UseMutationResult
30
30
 
31
31
  declare const useUpdatePassword: () => _tanstack_react_query.UseMutationResult<any, Error, updatePasswordBody, unknown>;
32
32
 
33
- declare const useLogout: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
33
+ declare const useLogout: () => _tanstack_react_query.UseMutationResult<any, Error, string | undefined, unknown>;
34
34
 
35
35
  declare const useGetAccessByCode: () => _tanstack_react_query.UseMutationResult<any, Error, {
36
36
  code: string;
@@ -158,11 +158,13 @@ declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, E
158
158
  specification?: any;
159
159
  context?: any;
160
160
  service?: string;
161
+ xNode?: string;
161
162
  }, unknown>;
162
163
 
163
- declare const useGetFieldOnChange: ({ model, service, }: {
164
+ declare const useGetFieldOnChange: ({ model, service, xNode, }: {
164
165
  model: string;
165
166
  service?: string;
167
+ xNode?: string;
166
168
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
167
169
 
168
170
  declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
@@ -181,7 +183,6 @@ interface BaseModelInit {
181
183
  declare class BaseModel {
182
184
  name: string;
183
185
  view: Record<string, any>;
184
- actContext?: Record<string, any>;
185
186
  fields?: any;
186
187
  constructor(init: BaseModelInit);
187
188
  private getSpecificationByFields;
@@ -211,6 +212,7 @@ declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any
211
212
  object: any;
212
213
  fieldChange?: any;
213
214
  service?: string;
215
+ xNode?: string;
214
216
  }, unknown>;
215
217
 
216
218
  declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
@@ -221,6 +223,7 @@ declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error,
221
223
  context: any;
222
224
  path?: string;
223
225
  service?: string;
226
+ xNode?: string;
224
227
  }, unknown>;
225
228
 
226
229
  declare const useGetProfile: (path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
@@ -244,6 +247,7 @@ declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Erro
244
247
  context: ContextApi;
245
248
  method: any;
246
249
  service?: string;
250
+ xNode?: string;
247
251
  }, unknown>;
248
252
 
249
253
  declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
@@ -251,6 +255,7 @@ declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<
251
255
  model: string;
252
256
  context: ContextApi;
253
257
  service?: string;
258
+ xNode?: string;
254
259
  }, unknown>;
255
260
 
256
261
  declare const useGetActionDetail: ({ aid, context, enabled, id, model, queryKey, }: {
@@ -269,7 +274,7 @@ declare const useGetGroups: ({ model, width_context, }: {
269
274
  width_context: any;
270
275
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
271
276
 
272
- declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
277
+ declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string, xNode?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
273
278
 
274
279
  declare const useGetMenu: (context: any, specification: any, enabled?: boolean, domain?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
275
280
 
@@ -284,11 +289,12 @@ declare const useGetProGressBar: ({ field, color, model, width_context, }: {
284
289
  width_context: string;
285
290
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
286
291
 
287
- declare const useGetSelection: ({ data, queryKey, enabled, service }: {
292
+ declare const useGetSelection: ({ data, queryKey, enabled, service, xNode, }: {
288
293
  data: GetSelectionType;
289
294
  queryKey: any[];
290
295
  enabled?: boolean;
291
296
  service?: string;
297
+ xNode?: string;
292
298
  }) => _tanstack_react_query.UseQueryResult<any, Error>;
293
299
 
294
300
  declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -297,6 +303,7 @@ declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any,
297
303
  idAction: any;
298
304
  context: ContextApi;
299
305
  service?: string;
306
+ xNode?: string;
300
307
  }, unknown>;
301
308
 
302
309
  declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -312,6 +319,7 @@ declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, E
312
319
  ids: Record<string, any>[] | any;
313
320
  context: ContextApi;
314
321
  service?: string;
322
+ xNode?: string;
315
323
  }, unknown>;
316
324
 
317
325
  declare const useGetResequence: (model: string, resIds: any, context: any, offset: any) => _tanstack_react_query.UseQueryResult<any, Error>;
@@ -320,6 +328,7 @@ declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, E
320
328
  idAction: any;
321
329
  context: ContextApi;
322
330
  service?: string;
331
+ xNode?: string;
323
332
  }, unknown>;
324
333
 
325
334
  declare const useSignInSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {