@fctc/widget-logic 1.3.1 → 1.3.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,4 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
+ import * as _tanstack_query_core from '@tanstack/query-core';
2
3
  import * as react from 'react';
3
4
  import { RefObject } from 'react';
4
5
  import { Context } from '@fctc/interface-logic';
@@ -96,8 +97,8 @@ declare const useViewV2: ({ action, context, }: {
96
97
  isRefetching: boolean;
97
98
  isStale: boolean;
98
99
  isEnabled: boolean;
99
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<ViewResponse, Error>>;
100
- fetchStatus: _tanstack_react_query.FetchStatus;
100
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
101
+ fetchStatus: _tanstack_query_core.FetchStatus;
101
102
  promise: Promise<ViewResponse>;
102
103
  } | {
103
104
  context: any;
@@ -124,8 +125,8 @@ declare const useViewV2: ({ action, context, }: {
124
125
  isRefetching: boolean;
125
126
  isStale: boolean;
126
127
  isEnabled: boolean;
127
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<ViewResponse, Error>>;
128
- fetchStatus: _tanstack_react_query.FetchStatus;
128
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
129
+ fetchStatus: _tanstack_query_core.FetchStatus;
129
130
  promise: Promise<ViewResponse>;
130
131
  } | {
131
132
  context: any;
@@ -152,8 +153,8 @@ declare const useViewV2: ({ action, context, }: {
152
153
  isRefetching: boolean;
153
154
  isStale: boolean;
154
155
  isEnabled: boolean;
155
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<ViewResponse, Error>>;
156
- fetchStatus: _tanstack_react_query.FetchStatus;
156
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
157
+ fetchStatus: _tanstack_query_core.FetchStatus;
157
158
  promise: Promise<ViewResponse>;
158
159
  } | {
159
160
  context: any;
@@ -180,8 +181,8 @@ declare const useViewV2: ({ action, context, }: {
180
181
  isRefetching: boolean;
181
182
  isStale: boolean;
182
183
  isEnabled: boolean;
183
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<ViewResponse, Error>>;
184
- fetchStatus: _tanstack_react_query.FetchStatus;
184
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
185
+ fetchStatus: _tanstack_query_core.FetchStatus;
185
186
  promise: Promise<ViewResponse>;
186
187
  } | {
187
188
  context: any;
@@ -208,8 +209,8 @@ declare const useViewV2: ({ action, context, }: {
208
209
  isRefetching: boolean;
209
210
  isStale: boolean;
210
211
  isEnabled: boolean;
211
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<ViewResponse, Error>>;
212
- fetchStatus: _tanstack_react_query.FetchStatus;
212
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
213
+ fetchStatus: _tanstack_query_core.FetchStatus;
213
214
  promise: Promise<ViewResponse>;
214
215
  } | {
215
216
  context: any;
@@ -236,8 +237,8 @@ declare const useViewV2: ({ action, context, }: {
236
237
  isRefetching: boolean;
237
238
  isStale: boolean;
238
239
  isEnabled: boolean;
239
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<ViewResponse, Error>>;
240
- fetchStatus: _tanstack_react_query.FetchStatus;
240
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
241
+ fetchStatus: _tanstack_query_core.FetchStatus;
241
242
  promise: Promise<ViewResponse>;
242
243
  };
243
244
  type useViewV2Type = ReturnType<typeof useViewV2>;
@@ -286,8 +287,8 @@ declare const useListData: ({ action, context, viewResponse, }: {
286
287
  isRefetching: boolean;
287
288
  isStale: boolean;
288
289
  isEnabled: boolean;
289
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
290
- fetchStatus: _tanstack_react_query.FetchStatus;
290
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
291
+ fetchStatus: _tanstack_query_core.FetchStatus;
291
292
  promise: Promise<any>;
292
293
  } | {
293
294
  state: {
@@ -321,8 +322,8 @@ declare const useListData: ({ action, context, viewResponse, }: {
321
322
  isRefetching: boolean;
322
323
  isStale: boolean;
323
324
  isEnabled: boolean;
324
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
325
- fetchStatus: _tanstack_react_query.FetchStatus;
325
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
326
+ fetchStatus: _tanstack_query_core.FetchStatus;
326
327
  promise: Promise<any>;
327
328
  } | {
328
329
  state: {
@@ -356,8 +357,8 @@ declare const useListData: ({ action, context, viewResponse, }: {
356
357
  isRefetching: boolean;
357
358
  isStale: boolean;
358
359
  isEnabled: boolean;
359
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
360
- fetchStatus: _tanstack_react_query.FetchStatus;
360
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
361
+ fetchStatus: _tanstack_query_core.FetchStatus;
361
362
  promise: Promise<any>;
362
363
  } | {
363
364
  state: {
@@ -391,8 +392,8 @@ declare const useListData: ({ action, context, viewResponse, }: {
391
392
  isRefetching: boolean;
392
393
  isStale: boolean;
393
394
  isEnabled: boolean;
394
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
395
- fetchStatus: _tanstack_react_query.FetchStatus;
395
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
396
+ fetchStatus: _tanstack_query_core.FetchStatus;
396
397
  promise: Promise<any>;
397
398
  } | {
398
399
  state: {
@@ -426,8 +427,8 @@ declare const useListData: ({ action, context, viewResponse, }: {
426
427
  isRefetching: boolean;
427
428
  isStale: boolean;
428
429
  isEnabled: boolean;
429
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
430
- fetchStatus: _tanstack_react_query.FetchStatus;
430
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
431
+ fetchStatus: _tanstack_query_core.FetchStatus;
431
432
  promise: Promise<any>;
432
433
  } | {
433
434
  state: {
@@ -461,8 +462,8 @@ declare const useListData: ({ action, context, viewResponse, }: {
461
462
  isRefetching: boolean;
462
463
  isStale: boolean;
463
464
  isEnabled: boolean;
464
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
465
- fetchStatus: _tanstack_react_query.FetchStatus;
465
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
466
+ fetchStatus: _tanstack_query_core.FetchStatus;
466
467
  promise: Promise<any>;
467
468
  };
468
469
  type useListDataType = ReturnType<typeof useListData>;
@@ -501,8 +502,8 @@ declare const useMenu: ({ context }: {
501
502
  isRefetching: boolean;
502
503
  isStale: boolean;
503
504
  isEnabled: boolean;
504
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record[] | undefined, Error>>;
505
- fetchStatus: _tanstack_react_query.FetchStatus;
505
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<Record[] | undefined, Error>>;
506
+ fetchStatus: _tanstack_query_core.FetchStatus;
506
507
  promise: Promise<Record[] | undefined>;
507
508
  } | {
508
509
  data: Record[] | undefined;
@@ -536,8 +537,8 @@ declare const useMenu: ({ context }: {
536
537
  isRefetching: boolean;
537
538
  isStale: boolean;
538
539
  isEnabled: boolean;
539
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record[] | undefined, Error>>;
540
- fetchStatus: _tanstack_react_query.FetchStatus;
540
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<Record[] | undefined, Error>>;
541
+ fetchStatus: _tanstack_query_core.FetchStatus;
541
542
  promise: Promise<Record[] | undefined>;
542
543
  } | {
543
544
  data: Record[] | undefined;
@@ -571,8 +572,8 @@ declare const useMenu: ({ context }: {
571
572
  isRefetching: boolean;
572
573
  isStale: boolean;
573
574
  isEnabled: boolean;
574
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record[] | undefined, Error>>;
575
- fetchStatus: _tanstack_react_query.FetchStatus;
575
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<Record[] | undefined, Error>>;
576
+ fetchStatus: _tanstack_query_core.FetchStatus;
576
577
  promise: Promise<Record[] | undefined>;
577
578
  } | {
578
579
  data: Record[] | undefined;
@@ -606,8 +607,8 @@ declare const useMenu: ({ context }: {
606
607
  isRefetching: boolean;
607
608
  isStale: boolean;
608
609
  isEnabled: boolean;
609
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record[] | undefined, Error>>;
610
- fetchStatus: _tanstack_react_query.FetchStatus;
610
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<Record[] | undefined, Error>>;
611
+ fetchStatus: _tanstack_query_core.FetchStatus;
611
612
  promise: Promise<Record[] | undefined>;
612
613
  } | {
613
614
  data: Record[] | undefined;
@@ -641,8 +642,8 @@ declare const useMenu: ({ context }: {
641
642
  isRefetching: boolean;
642
643
  isStale: boolean;
643
644
  isEnabled: boolean;
644
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record[] | undefined, Error>>;
645
- fetchStatus: _tanstack_react_query.FetchStatus;
645
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<Record[] | undefined, Error>>;
646
+ fetchStatus: _tanstack_query_core.FetchStatus;
646
647
  promise: Promise<Record[] | undefined>;
647
648
  } | {
648
649
  data: Record[] | undefined;
@@ -676,8 +677,8 @@ declare const useMenu: ({ context }: {
676
677
  isRefetching: boolean;
677
678
  isStale: boolean;
678
679
  isEnabled: boolean;
679
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record[] | undefined, Error>>;
680
- fetchStatus: _tanstack_react_query.FetchStatus;
680
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<Record[] | undefined, Error>>;
681
+ fetchStatus: _tanstack_query_core.FetchStatus;
681
682
  promise: Promise<Record[] | undefined>;
682
683
  };
683
684
  type useMenuType = ReturnType<typeof useMenu>;
@@ -732,8 +733,8 @@ declare const useProfile: (accessToken: string | null) => {
732
733
  isRefetching: boolean;
733
734
  isStale: boolean;
734
735
  isEnabled: boolean;
735
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<UserInfo | undefined, Error>>;
736
- fetchStatus: _tanstack_react_query.FetchStatus;
736
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
737
+ fetchStatus: _tanstack_query_core.FetchStatus;
737
738
  promise: Promise<UserInfo | undefined>;
738
739
  } | {
739
740
  context: ContextProfile | undefined;
@@ -760,8 +761,8 @@ declare const useProfile: (accessToken: string | null) => {
760
761
  isRefetching: boolean;
761
762
  isStale: boolean;
762
763
  isEnabled: boolean;
763
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<UserInfo | undefined, Error>>;
764
- fetchStatus: _tanstack_react_query.FetchStatus;
764
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
765
+ fetchStatus: _tanstack_query_core.FetchStatus;
765
766
  promise: Promise<UserInfo | undefined>;
766
767
  } | {
767
768
  context: ContextProfile | undefined;
@@ -788,8 +789,8 @@ declare const useProfile: (accessToken: string | null) => {
788
789
  isRefetching: boolean;
789
790
  isStale: boolean;
790
791
  isEnabled: boolean;
791
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<UserInfo | undefined, Error>>;
792
- fetchStatus: _tanstack_react_query.FetchStatus;
792
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
793
+ fetchStatus: _tanstack_query_core.FetchStatus;
793
794
  promise: Promise<UserInfo | undefined>;
794
795
  } | {
795
796
  context: ContextProfile | undefined;
@@ -816,8 +817,8 @@ declare const useProfile: (accessToken: string | null) => {
816
817
  isRefetching: boolean;
817
818
  isStale: boolean;
818
819
  isEnabled: boolean;
819
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<UserInfo | undefined, Error>>;
820
- fetchStatus: _tanstack_react_query.FetchStatus;
820
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
821
+ fetchStatus: _tanstack_query_core.FetchStatus;
821
822
  promise: Promise<UserInfo | undefined>;
822
823
  } | {
823
824
  context: ContextProfile | undefined;
@@ -844,8 +845,8 @@ declare const useProfile: (accessToken: string | null) => {
844
845
  isRefetching: boolean;
845
846
  isStale: boolean;
846
847
  isEnabled: boolean;
847
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<UserInfo | undefined, Error>>;
848
- fetchStatus: _tanstack_react_query.FetchStatus;
848
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
849
+ fetchStatus: _tanstack_query_core.FetchStatus;
849
850
  promise: Promise<UserInfo | undefined>;
850
851
  } | {
851
852
  context: ContextProfile | undefined;
@@ -872,8 +873,8 @@ declare const useProfile: (accessToken: string | null) => {
872
873
  isRefetching: boolean;
873
874
  isStale: boolean;
874
875
  isEnabled: boolean;
875
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<UserInfo | undefined, Error>>;
876
- fetchStatus: _tanstack_react_query.FetchStatus;
876
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
877
+ fetchStatus: _tanstack_query_core.FetchStatus;
877
878
  promise: Promise<UserInfo | undefined>;
878
879
  };
879
880
  interface UserInfo {
package/dist/hooks.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
+ import * as _tanstack_query_core from '@tanstack/query-core';
2
3
  import * as react from 'react';
3
4
  import { RefObject } from 'react';
4
5
  import { Context } from '@fctc/interface-logic';
@@ -96,8 +97,8 @@ declare const useViewV2: ({ action, context, }: {
96
97
  isRefetching: boolean;
97
98
  isStale: boolean;
98
99
  isEnabled: boolean;
99
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<ViewResponse, Error>>;
100
- fetchStatus: _tanstack_react_query.FetchStatus;
100
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
101
+ fetchStatus: _tanstack_query_core.FetchStatus;
101
102
  promise: Promise<ViewResponse>;
102
103
  } | {
103
104
  context: any;
@@ -124,8 +125,8 @@ declare const useViewV2: ({ action, context, }: {
124
125
  isRefetching: boolean;
125
126
  isStale: boolean;
126
127
  isEnabled: boolean;
127
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<ViewResponse, Error>>;
128
- fetchStatus: _tanstack_react_query.FetchStatus;
128
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
129
+ fetchStatus: _tanstack_query_core.FetchStatus;
129
130
  promise: Promise<ViewResponse>;
130
131
  } | {
131
132
  context: any;
@@ -152,8 +153,8 @@ declare const useViewV2: ({ action, context, }: {
152
153
  isRefetching: boolean;
153
154
  isStale: boolean;
154
155
  isEnabled: boolean;
155
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<ViewResponse, Error>>;
156
- fetchStatus: _tanstack_react_query.FetchStatus;
156
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
157
+ fetchStatus: _tanstack_query_core.FetchStatus;
157
158
  promise: Promise<ViewResponse>;
158
159
  } | {
159
160
  context: any;
@@ -180,8 +181,8 @@ declare const useViewV2: ({ action, context, }: {
180
181
  isRefetching: boolean;
181
182
  isStale: boolean;
182
183
  isEnabled: boolean;
183
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<ViewResponse, Error>>;
184
- fetchStatus: _tanstack_react_query.FetchStatus;
184
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
185
+ fetchStatus: _tanstack_query_core.FetchStatus;
185
186
  promise: Promise<ViewResponse>;
186
187
  } | {
187
188
  context: any;
@@ -208,8 +209,8 @@ declare const useViewV2: ({ action, context, }: {
208
209
  isRefetching: boolean;
209
210
  isStale: boolean;
210
211
  isEnabled: boolean;
211
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<ViewResponse, Error>>;
212
- fetchStatus: _tanstack_react_query.FetchStatus;
212
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
213
+ fetchStatus: _tanstack_query_core.FetchStatus;
213
214
  promise: Promise<ViewResponse>;
214
215
  } | {
215
216
  context: any;
@@ -236,8 +237,8 @@ declare const useViewV2: ({ action, context, }: {
236
237
  isRefetching: boolean;
237
238
  isStale: boolean;
238
239
  isEnabled: boolean;
239
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<ViewResponse, Error>>;
240
- fetchStatus: _tanstack_react_query.FetchStatus;
240
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
241
+ fetchStatus: _tanstack_query_core.FetchStatus;
241
242
  promise: Promise<ViewResponse>;
242
243
  };
243
244
  type useViewV2Type = ReturnType<typeof useViewV2>;
@@ -286,8 +287,8 @@ declare const useListData: ({ action, context, viewResponse, }: {
286
287
  isRefetching: boolean;
287
288
  isStale: boolean;
288
289
  isEnabled: boolean;
289
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
290
- fetchStatus: _tanstack_react_query.FetchStatus;
290
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
291
+ fetchStatus: _tanstack_query_core.FetchStatus;
291
292
  promise: Promise<any>;
292
293
  } | {
293
294
  state: {
@@ -321,8 +322,8 @@ declare const useListData: ({ action, context, viewResponse, }: {
321
322
  isRefetching: boolean;
322
323
  isStale: boolean;
323
324
  isEnabled: boolean;
324
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
325
- fetchStatus: _tanstack_react_query.FetchStatus;
325
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
326
+ fetchStatus: _tanstack_query_core.FetchStatus;
326
327
  promise: Promise<any>;
327
328
  } | {
328
329
  state: {
@@ -356,8 +357,8 @@ declare const useListData: ({ action, context, viewResponse, }: {
356
357
  isRefetching: boolean;
357
358
  isStale: boolean;
358
359
  isEnabled: boolean;
359
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
360
- fetchStatus: _tanstack_react_query.FetchStatus;
360
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
361
+ fetchStatus: _tanstack_query_core.FetchStatus;
361
362
  promise: Promise<any>;
362
363
  } | {
363
364
  state: {
@@ -391,8 +392,8 @@ declare const useListData: ({ action, context, viewResponse, }: {
391
392
  isRefetching: boolean;
392
393
  isStale: boolean;
393
394
  isEnabled: boolean;
394
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
395
- fetchStatus: _tanstack_react_query.FetchStatus;
395
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
396
+ fetchStatus: _tanstack_query_core.FetchStatus;
396
397
  promise: Promise<any>;
397
398
  } | {
398
399
  state: {
@@ -426,8 +427,8 @@ declare const useListData: ({ action, context, viewResponse, }: {
426
427
  isRefetching: boolean;
427
428
  isStale: boolean;
428
429
  isEnabled: boolean;
429
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
430
- fetchStatus: _tanstack_react_query.FetchStatus;
430
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
431
+ fetchStatus: _tanstack_query_core.FetchStatus;
431
432
  promise: Promise<any>;
432
433
  } | {
433
434
  state: {
@@ -461,8 +462,8 @@ declare const useListData: ({ action, context, viewResponse, }: {
461
462
  isRefetching: boolean;
462
463
  isStale: boolean;
463
464
  isEnabled: boolean;
464
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
465
- fetchStatus: _tanstack_react_query.FetchStatus;
465
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
466
+ fetchStatus: _tanstack_query_core.FetchStatus;
466
467
  promise: Promise<any>;
467
468
  };
468
469
  type useListDataType = ReturnType<typeof useListData>;
@@ -501,8 +502,8 @@ declare const useMenu: ({ context }: {
501
502
  isRefetching: boolean;
502
503
  isStale: boolean;
503
504
  isEnabled: boolean;
504
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record[] | undefined, Error>>;
505
- fetchStatus: _tanstack_react_query.FetchStatus;
505
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<Record[] | undefined, Error>>;
506
+ fetchStatus: _tanstack_query_core.FetchStatus;
506
507
  promise: Promise<Record[] | undefined>;
507
508
  } | {
508
509
  data: Record[] | undefined;
@@ -536,8 +537,8 @@ declare const useMenu: ({ context }: {
536
537
  isRefetching: boolean;
537
538
  isStale: boolean;
538
539
  isEnabled: boolean;
539
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record[] | undefined, Error>>;
540
- fetchStatus: _tanstack_react_query.FetchStatus;
540
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<Record[] | undefined, Error>>;
541
+ fetchStatus: _tanstack_query_core.FetchStatus;
541
542
  promise: Promise<Record[] | undefined>;
542
543
  } | {
543
544
  data: Record[] | undefined;
@@ -571,8 +572,8 @@ declare const useMenu: ({ context }: {
571
572
  isRefetching: boolean;
572
573
  isStale: boolean;
573
574
  isEnabled: boolean;
574
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record[] | undefined, Error>>;
575
- fetchStatus: _tanstack_react_query.FetchStatus;
575
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<Record[] | undefined, Error>>;
576
+ fetchStatus: _tanstack_query_core.FetchStatus;
576
577
  promise: Promise<Record[] | undefined>;
577
578
  } | {
578
579
  data: Record[] | undefined;
@@ -606,8 +607,8 @@ declare const useMenu: ({ context }: {
606
607
  isRefetching: boolean;
607
608
  isStale: boolean;
608
609
  isEnabled: boolean;
609
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record[] | undefined, Error>>;
610
- fetchStatus: _tanstack_react_query.FetchStatus;
610
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<Record[] | undefined, Error>>;
611
+ fetchStatus: _tanstack_query_core.FetchStatus;
611
612
  promise: Promise<Record[] | undefined>;
612
613
  } | {
613
614
  data: Record[] | undefined;
@@ -641,8 +642,8 @@ declare const useMenu: ({ context }: {
641
642
  isRefetching: boolean;
642
643
  isStale: boolean;
643
644
  isEnabled: boolean;
644
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record[] | undefined, Error>>;
645
- fetchStatus: _tanstack_react_query.FetchStatus;
645
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<Record[] | undefined, Error>>;
646
+ fetchStatus: _tanstack_query_core.FetchStatus;
646
647
  promise: Promise<Record[] | undefined>;
647
648
  } | {
648
649
  data: Record[] | undefined;
@@ -676,8 +677,8 @@ declare const useMenu: ({ context }: {
676
677
  isRefetching: boolean;
677
678
  isStale: boolean;
678
679
  isEnabled: boolean;
679
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record[] | undefined, Error>>;
680
- fetchStatus: _tanstack_react_query.FetchStatus;
680
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<Record[] | undefined, Error>>;
681
+ fetchStatus: _tanstack_query_core.FetchStatus;
681
682
  promise: Promise<Record[] | undefined>;
682
683
  };
683
684
  type useMenuType = ReturnType<typeof useMenu>;
@@ -732,8 +733,8 @@ declare const useProfile: (accessToken: string | null) => {
732
733
  isRefetching: boolean;
733
734
  isStale: boolean;
734
735
  isEnabled: boolean;
735
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<UserInfo | undefined, Error>>;
736
- fetchStatus: _tanstack_react_query.FetchStatus;
736
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
737
+ fetchStatus: _tanstack_query_core.FetchStatus;
737
738
  promise: Promise<UserInfo | undefined>;
738
739
  } | {
739
740
  context: ContextProfile | undefined;
@@ -760,8 +761,8 @@ declare const useProfile: (accessToken: string | null) => {
760
761
  isRefetching: boolean;
761
762
  isStale: boolean;
762
763
  isEnabled: boolean;
763
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<UserInfo | undefined, Error>>;
764
- fetchStatus: _tanstack_react_query.FetchStatus;
764
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
765
+ fetchStatus: _tanstack_query_core.FetchStatus;
765
766
  promise: Promise<UserInfo | undefined>;
766
767
  } | {
767
768
  context: ContextProfile | undefined;
@@ -788,8 +789,8 @@ declare const useProfile: (accessToken: string | null) => {
788
789
  isRefetching: boolean;
789
790
  isStale: boolean;
790
791
  isEnabled: boolean;
791
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<UserInfo | undefined, Error>>;
792
- fetchStatus: _tanstack_react_query.FetchStatus;
792
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
793
+ fetchStatus: _tanstack_query_core.FetchStatus;
793
794
  promise: Promise<UserInfo | undefined>;
794
795
  } | {
795
796
  context: ContextProfile | undefined;
@@ -816,8 +817,8 @@ declare const useProfile: (accessToken: string | null) => {
816
817
  isRefetching: boolean;
817
818
  isStale: boolean;
818
819
  isEnabled: boolean;
819
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<UserInfo | undefined, Error>>;
820
- fetchStatus: _tanstack_react_query.FetchStatus;
820
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
821
+ fetchStatus: _tanstack_query_core.FetchStatus;
821
822
  promise: Promise<UserInfo | undefined>;
822
823
  } | {
823
824
  context: ContextProfile | undefined;
@@ -844,8 +845,8 @@ declare const useProfile: (accessToken: string | null) => {
844
845
  isRefetching: boolean;
845
846
  isStale: boolean;
846
847
  isEnabled: boolean;
847
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<UserInfo | undefined, Error>>;
848
- fetchStatus: _tanstack_react_query.FetchStatus;
848
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
849
+ fetchStatus: _tanstack_query_core.FetchStatus;
849
850
  promise: Promise<UserInfo | undefined>;
850
851
  } | {
851
852
  context: ContextProfile | undefined;
@@ -872,8 +873,8 @@ declare const useProfile: (accessToken: string | null) => {
872
873
  isRefetching: boolean;
873
874
  isStale: boolean;
874
875
  isEnabled: boolean;
875
- refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<UserInfo | undefined, Error>>;
876
- fetchStatus: _tanstack_react_query.FetchStatus;
876
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
877
+ fetchStatus: _tanstack_query_core.FetchStatus;
877
878
  promise: Promise<UserInfo | undefined>;
878
879
  };
879
880
  interface UserInfo {
package/dist/index.d.mts CHANGED
@@ -16,6 +16,7 @@ export * from '@fctc/interface-logic/model';
16
16
  export * from '@fctc/interface-logic/provider';
17
17
  export * from '@fctc/interface-logic/services';
18
18
  import '@tanstack/react-query';
19
+ import '@tanstack/query-core';
19
20
  import '@fctc/interface-logic';
20
21
 
21
22
  type TStatus = 'normal' | 'done' | 'blocked';
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export * from '@fctc/interface-logic/model';
16
16
  export * from '@fctc/interface-logic/provider';
17
17
  export * from '@fctc/interface-logic/services';
18
18
  import '@tanstack/react-query';
19
+ import '@tanstack/query-core';
19
20
  import '@fctc/interface-logic';
20
21
 
21
22
  type TStatus = 'normal' | 'done' | 'blocked';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/widget-logic",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",