@fctc/widget-logic 2.5.0 → 2.5.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.
@@ -1,222 +0,0 @@
1
- import * as _tanstack_query_core from '@tanstack/query-core';
2
-
3
- declare const useCallAction: () => readonly [ActionResult | undefined, ({ aid, }: {
4
- aid: number;
5
- actionType?: string;
6
- }) => Promise<ActionResult | undefined>];
7
- type useCallActionType = ReturnType<typeof useCallAction>;
8
- type ActionResultType = useCallActionType[0];
9
- interface ActionResult {
10
- id?: number;
11
- name?: string;
12
- type?: 'ir.actions.act_window' | string;
13
- xml_id?: string;
14
- path?: false | string;
15
- help?: string;
16
- binding_model_id?: false | number;
17
- binding_type?: 'action' | string;
18
- binding_view_types?: string;
19
- display_name?: string;
20
- view_id?: false | number;
21
- domain?: false | any[];
22
- context?: string;
23
- res_id?: number;
24
- res_model?: string;
25
- target?: 'current' | 'new' | string;
26
- view_mode?: string;
27
- mobile_view_mode?: string;
28
- views?: [number, string][];
29
- limit?: number;
30
- groups_id?: number[];
31
- search_view_id?: [number, string];
32
- embedded_action_ids?: number[];
33
- filter?: false | any;
34
- url?: string;
35
- }
36
-
37
- declare const useViewV2: ({ action, context, aid, views, model, }: {
38
- action?: ActionResultType;
39
- context: any;
40
- aid?: any;
41
- views?: any;
42
- model?: string;
43
- }) => {
44
- context: any;
45
- data: ViewResponse;
46
- error: Error;
47
- isError: true;
48
- isPending: false;
49
- isLoading: false;
50
- isLoadingError: false;
51
- isRefetchError: true;
52
- isSuccess: false;
53
- isPlaceholderData: false;
54
- status: "error";
55
- dataUpdatedAt: number;
56
- errorUpdatedAt: number;
57
- failureCount: number;
58
- failureReason: Error | null;
59
- errorUpdateCount: number;
60
- isFetched: boolean;
61
- isFetchedAfterMount: boolean;
62
- isFetching: boolean;
63
- isInitialLoading: boolean;
64
- isPaused: boolean;
65
- isRefetching: boolean;
66
- isStale: boolean;
67
- isEnabled: boolean;
68
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
69
- fetchStatus: _tanstack_query_core.FetchStatus;
70
- promise: Promise<ViewResponse>;
71
- } | {
72
- context: any;
73
- data: ViewResponse;
74
- error: null;
75
- isError: false;
76
- isPending: false;
77
- isLoading: false;
78
- isLoadingError: false;
79
- isRefetchError: false;
80
- isSuccess: true;
81
- isPlaceholderData: false;
82
- status: "success";
83
- dataUpdatedAt: number;
84
- errorUpdatedAt: number;
85
- failureCount: number;
86
- failureReason: Error | null;
87
- errorUpdateCount: number;
88
- isFetched: boolean;
89
- isFetchedAfterMount: boolean;
90
- isFetching: boolean;
91
- isInitialLoading: boolean;
92
- isPaused: boolean;
93
- isRefetching: boolean;
94
- isStale: boolean;
95
- isEnabled: boolean;
96
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
97
- fetchStatus: _tanstack_query_core.FetchStatus;
98
- promise: Promise<ViewResponse>;
99
- } | {
100
- context: any;
101
- data: undefined;
102
- error: Error;
103
- isError: true;
104
- isPending: false;
105
- isLoading: false;
106
- isLoadingError: true;
107
- isRefetchError: false;
108
- isSuccess: false;
109
- isPlaceholderData: false;
110
- status: "error";
111
- dataUpdatedAt: number;
112
- errorUpdatedAt: number;
113
- failureCount: number;
114
- failureReason: Error | null;
115
- errorUpdateCount: number;
116
- isFetched: boolean;
117
- isFetchedAfterMount: boolean;
118
- isFetching: boolean;
119
- isInitialLoading: boolean;
120
- isPaused: boolean;
121
- isRefetching: boolean;
122
- isStale: boolean;
123
- isEnabled: boolean;
124
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
125
- fetchStatus: _tanstack_query_core.FetchStatus;
126
- promise: Promise<ViewResponse>;
127
- } | {
128
- context: any;
129
- data: undefined;
130
- error: null;
131
- isError: false;
132
- isPending: true;
133
- isLoading: true;
134
- isLoadingError: false;
135
- isRefetchError: false;
136
- isSuccess: false;
137
- isPlaceholderData: false;
138
- status: "pending";
139
- dataUpdatedAt: number;
140
- errorUpdatedAt: number;
141
- failureCount: number;
142
- failureReason: Error | null;
143
- errorUpdateCount: number;
144
- isFetched: boolean;
145
- isFetchedAfterMount: boolean;
146
- isFetching: boolean;
147
- isInitialLoading: boolean;
148
- isPaused: boolean;
149
- isRefetching: boolean;
150
- isStale: boolean;
151
- isEnabled: boolean;
152
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
153
- fetchStatus: _tanstack_query_core.FetchStatus;
154
- promise: Promise<ViewResponse>;
155
- } | {
156
- context: any;
157
- data: undefined;
158
- error: null;
159
- isError: false;
160
- isPending: true;
161
- isLoadingError: false;
162
- isRefetchError: false;
163
- isSuccess: false;
164
- isPlaceholderData: false;
165
- status: "pending";
166
- dataUpdatedAt: number;
167
- errorUpdatedAt: number;
168
- failureCount: number;
169
- failureReason: Error | null;
170
- errorUpdateCount: number;
171
- isFetched: boolean;
172
- isFetchedAfterMount: boolean;
173
- isFetching: boolean;
174
- isLoading: boolean;
175
- isInitialLoading: boolean;
176
- isPaused: boolean;
177
- isRefetching: boolean;
178
- isStale: boolean;
179
- isEnabled: boolean;
180
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
181
- fetchStatus: _tanstack_query_core.FetchStatus;
182
- promise: Promise<ViewResponse>;
183
- } | {
184
- context: any;
185
- data: ViewResponse;
186
- isError: false;
187
- error: null;
188
- isPending: false;
189
- isLoading: false;
190
- isLoadingError: false;
191
- isRefetchError: false;
192
- isSuccess: true;
193
- isPlaceholderData: true;
194
- status: "success";
195
- dataUpdatedAt: number;
196
- errorUpdatedAt: number;
197
- failureCount: number;
198
- failureReason: Error | null;
199
- errorUpdateCount: number;
200
- isFetched: boolean;
201
- isFetchedAfterMount: boolean;
202
- isFetching: boolean;
203
- isInitialLoading: boolean;
204
- isPaused: boolean;
205
- isRefetching: boolean;
206
- isStale: boolean;
207
- isEnabled: boolean;
208
- refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
209
- fetchStatus: _tanstack_query_core.FetchStatus;
210
- promise: Promise<ViewResponse>;
211
- };
212
- type useViewV2Type = ReturnType<typeof useViewV2>;
213
- type ViewResponse = {
214
- models: {
215
- [key: string]: any;
216
- };
217
- views: {
218
- [key: string]: any;
219
- };
220
- };
221
-
222
- export { type ActionResultType as A, type ViewResponse as V, type useCallActionType as a, useViewV2 as b, type useViewV2Type as c, useCallAction as u };