@fctc/widget-logic 5.3.7-beta.14 → 5.3.7-beta.16
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/package.json +1 -1
- package/dist/config.d.mts +0 -5
- package/dist/config.d.ts +0 -5
- package/dist/config.js +0 -24
- package/dist/config.mjs +0 -2
- package/dist/constants.d.mts +0 -1
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +0 -24
- package/dist/constants.mjs +0 -2
- package/dist/environment.d.mts +0 -1
- package/dist/environment.d.ts +0 -1
- package/dist/environment.js +0 -24
- package/dist/environment.mjs +0 -2
- package/dist/hooks.d.mts +0 -1179
- package/dist/hooks.d.ts +0 -1179
- package/dist/hooks.js +0 -1273
- package/dist/hooks.mjs +0 -1247
- package/dist/index.d.mts +0 -15
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -3009
- package/dist/index.mjs +0 -3089
- package/dist/provider.d.mts +0 -1
- package/dist/provider.d.ts +0 -1
- package/dist/provider.js +0 -24
- package/dist/provider.mjs +0 -2
- package/dist/services.d.mts +0 -1
- package/dist/services.d.ts +0 -1
- package/dist/services.js +0 -24
- package/dist/services.mjs +0 -2
- package/dist/types.d.mts +0 -36
- package/dist/types.d.ts +0 -36
- package/dist/types.js +0 -24
- package/dist/types.mjs +0 -2
- package/dist/utils.d.mts +0 -23
- package/dist/utils.d.ts +0 -23
- package/dist/utils.js +0 -436
- package/dist/utils.mjs +0 -389
- package/dist/widget.d.mts +0 -328
- package/dist/widget.d.ts +0 -328
- package/dist/widget.js +0 -2379
- package/dist/widget.mjs +0 -2432
package/dist/hooks.d.ts
DELETED
|
@@ -1,1179 +0,0 @@
|
|
|
1
|
-
export { useAddEntity, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetOrderLine, useGetPinCode, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp } from '@fctc/interface-logic/hooks';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
4
|
-
import * as react from 'react';
|
|
5
|
-
import react__default from 'react';
|
|
6
|
-
|
|
7
|
-
declare const useCallAction: () => readonly [ActionResult | undefined, ({ aid, service, xNode, context, }: {
|
|
8
|
-
aid: any;
|
|
9
|
-
service: string;
|
|
10
|
-
xNode?: string;
|
|
11
|
-
context?: any;
|
|
12
|
-
}) => Promise<ActionResult | undefined>];
|
|
13
|
-
type useCallActionType = ReturnType<typeof useCallAction>;
|
|
14
|
-
type ActionResultType = useCallActionType[0];
|
|
15
|
-
interface ActionResult {
|
|
16
|
-
id?: number;
|
|
17
|
-
name?: string;
|
|
18
|
-
type?: 'ir.actions.act_window' | string;
|
|
19
|
-
xml_id?: string;
|
|
20
|
-
path?: false | string;
|
|
21
|
-
help?: string;
|
|
22
|
-
binding_model_id?: false | number;
|
|
23
|
-
binding_type?: 'action' | string;
|
|
24
|
-
binding_view_types?: string;
|
|
25
|
-
display_name?: string;
|
|
26
|
-
view_id?: false | number;
|
|
27
|
-
domain?: false | any[];
|
|
28
|
-
context?: string;
|
|
29
|
-
res_id?: number;
|
|
30
|
-
res_model?: string;
|
|
31
|
-
target?: 'current' | 'new' | string;
|
|
32
|
-
view_mode?: string;
|
|
33
|
-
mobile_view_mode?: string;
|
|
34
|
-
views?: [number, string][];
|
|
35
|
-
limit?: number;
|
|
36
|
-
groups_id?: number[];
|
|
37
|
-
search_view_id?: [number, string];
|
|
38
|
-
embedded_action_ids?: number[];
|
|
39
|
-
filter?: false | any;
|
|
40
|
-
url?: string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
declare const useMenu: ({ context, specification, domain, defaultService, }: {
|
|
44
|
-
context?: any;
|
|
45
|
-
specification?: any;
|
|
46
|
-
defaultService?: any;
|
|
47
|
-
domain?: any;
|
|
48
|
-
}) => UseMenuReturn;
|
|
49
|
-
type useMenuType = ReturnType<typeof useMenu>;
|
|
50
|
-
interface RecordMenu {
|
|
51
|
-
action: {
|
|
52
|
-
binding_view_types: string;
|
|
53
|
-
display_name: string;
|
|
54
|
-
id: {
|
|
55
|
-
id: number;
|
|
56
|
-
model: string;
|
|
57
|
-
};
|
|
58
|
-
res_model: string;
|
|
59
|
-
type: string;
|
|
60
|
-
context: string;
|
|
61
|
-
external_xml_id?: string;
|
|
62
|
-
};
|
|
63
|
-
active: boolean;
|
|
64
|
-
child_id?: RecordMenu[];
|
|
65
|
-
complete_name: string;
|
|
66
|
-
display_name: string;
|
|
67
|
-
groups_id: any[];
|
|
68
|
-
id: number;
|
|
69
|
-
is_display: boolean;
|
|
70
|
-
is_mobile: boolean;
|
|
71
|
-
name: string;
|
|
72
|
-
sequence: number;
|
|
73
|
-
url_icon: boolean | string | null;
|
|
74
|
-
web_icon: boolean | string | null;
|
|
75
|
-
web_icon_data: boolean | string | null;
|
|
76
|
-
}
|
|
77
|
-
interface UseMenuReturn {
|
|
78
|
-
data: RecordMenu[] | undefined;
|
|
79
|
-
action: {
|
|
80
|
-
handleChangeMenu: ({ menu, service, xNode, context, }: {
|
|
81
|
-
menu?: RecordMenu;
|
|
82
|
-
service?: string;
|
|
83
|
-
xNode?: string;
|
|
84
|
-
context?: any;
|
|
85
|
-
}) => Promise<any>;
|
|
86
|
-
};
|
|
87
|
-
state: {
|
|
88
|
-
menuId?: string;
|
|
89
|
-
action: any;
|
|
90
|
-
};
|
|
91
|
-
context?: any;
|
|
92
|
-
isLoading: boolean;
|
|
93
|
-
isError: boolean;
|
|
94
|
-
error: unknown;
|
|
95
|
-
refetch: () => void;
|
|
96
|
-
service?: string;
|
|
97
|
-
xNode?: string;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
declare const useUser: ({ service, i18n }: {
|
|
101
|
-
service?: string;
|
|
102
|
-
i18n: any;
|
|
103
|
-
}) => any;
|
|
104
|
-
type useUserType = ReturnType<typeof useUser>;
|
|
105
|
-
|
|
106
|
-
declare const useViewV2: ({ action, context, aid, service, xNode, }: {
|
|
107
|
-
action: ActionResultType;
|
|
108
|
-
context: any;
|
|
109
|
-
aid?: any;
|
|
110
|
-
service?: string;
|
|
111
|
-
xNode?: string;
|
|
112
|
-
}) => {
|
|
113
|
-
context: any;
|
|
114
|
-
data: ViewResponse;
|
|
115
|
-
error: Error;
|
|
116
|
-
isError: true;
|
|
117
|
-
isPending: false;
|
|
118
|
-
isLoading: false;
|
|
119
|
-
isLoadingError: false;
|
|
120
|
-
isRefetchError: true;
|
|
121
|
-
isSuccess: false;
|
|
122
|
-
isPlaceholderData: false;
|
|
123
|
-
status: "error";
|
|
124
|
-
dataUpdatedAt: number;
|
|
125
|
-
errorUpdatedAt: number;
|
|
126
|
-
failureCount: number;
|
|
127
|
-
failureReason: Error | null;
|
|
128
|
-
errorUpdateCount: number;
|
|
129
|
-
isFetched: boolean;
|
|
130
|
-
isFetchedAfterMount: boolean;
|
|
131
|
-
isFetching: boolean;
|
|
132
|
-
isInitialLoading: boolean;
|
|
133
|
-
isPaused: boolean;
|
|
134
|
-
isRefetching: boolean;
|
|
135
|
-
isStale: boolean;
|
|
136
|
-
isEnabled: boolean;
|
|
137
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
|
|
138
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
139
|
-
promise: Promise<ViewResponse>;
|
|
140
|
-
} | {
|
|
141
|
-
context: any;
|
|
142
|
-
data: ViewResponse;
|
|
143
|
-
error: null;
|
|
144
|
-
isError: false;
|
|
145
|
-
isPending: false;
|
|
146
|
-
isLoading: false;
|
|
147
|
-
isLoadingError: false;
|
|
148
|
-
isRefetchError: false;
|
|
149
|
-
isSuccess: true;
|
|
150
|
-
isPlaceholderData: false;
|
|
151
|
-
status: "success";
|
|
152
|
-
dataUpdatedAt: number;
|
|
153
|
-
errorUpdatedAt: number;
|
|
154
|
-
failureCount: number;
|
|
155
|
-
failureReason: Error | null;
|
|
156
|
-
errorUpdateCount: number;
|
|
157
|
-
isFetched: boolean;
|
|
158
|
-
isFetchedAfterMount: boolean;
|
|
159
|
-
isFetching: boolean;
|
|
160
|
-
isInitialLoading: boolean;
|
|
161
|
-
isPaused: boolean;
|
|
162
|
-
isRefetching: boolean;
|
|
163
|
-
isStale: boolean;
|
|
164
|
-
isEnabled: boolean;
|
|
165
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
|
|
166
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
167
|
-
promise: Promise<ViewResponse>;
|
|
168
|
-
} | {
|
|
169
|
-
context: any;
|
|
170
|
-
data: undefined;
|
|
171
|
-
error: Error;
|
|
172
|
-
isError: true;
|
|
173
|
-
isPending: false;
|
|
174
|
-
isLoading: false;
|
|
175
|
-
isLoadingError: true;
|
|
176
|
-
isRefetchError: false;
|
|
177
|
-
isSuccess: false;
|
|
178
|
-
isPlaceholderData: false;
|
|
179
|
-
status: "error";
|
|
180
|
-
dataUpdatedAt: number;
|
|
181
|
-
errorUpdatedAt: number;
|
|
182
|
-
failureCount: number;
|
|
183
|
-
failureReason: Error | null;
|
|
184
|
-
errorUpdateCount: number;
|
|
185
|
-
isFetched: boolean;
|
|
186
|
-
isFetchedAfterMount: boolean;
|
|
187
|
-
isFetching: boolean;
|
|
188
|
-
isInitialLoading: boolean;
|
|
189
|
-
isPaused: boolean;
|
|
190
|
-
isRefetching: boolean;
|
|
191
|
-
isStale: boolean;
|
|
192
|
-
isEnabled: boolean;
|
|
193
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
|
|
194
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
195
|
-
promise: Promise<ViewResponse>;
|
|
196
|
-
} | {
|
|
197
|
-
context: any;
|
|
198
|
-
data: undefined;
|
|
199
|
-
error: null;
|
|
200
|
-
isError: false;
|
|
201
|
-
isPending: true;
|
|
202
|
-
isLoading: true;
|
|
203
|
-
isLoadingError: false;
|
|
204
|
-
isRefetchError: false;
|
|
205
|
-
isSuccess: false;
|
|
206
|
-
isPlaceholderData: false;
|
|
207
|
-
status: "pending";
|
|
208
|
-
dataUpdatedAt: number;
|
|
209
|
-
errorUpdatedAt: number;
|
|
210
|
-
failureCount: number;
|
|
211
|
-
failureReason: Error | null;
|
|
212
|
-
errorUpdateCount: number;
|
|
213
|
-
isFetched: boolean;
|
|
214
|
-
isFetchedAfterMount: boolean;
|
|
215
|
-
isFetching: boolean;
|
|
216
|
-
isInitialLoading: boolean;
|
|
217
|
-
isPaused: boolean;
|
|
218
|
-
isRefetching: boolean;
|
|
219
|
-
isStale: boolean;
|
|
220
|
-
isEnabled: boolean;
|
|
221
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
|
|
222
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
223
|
-
promise: Promise<ViewResponse>;
|
|
224
|
-
} | {
|
|
225
|
-
context: any;
|
|
226
|
-
data: undefined;
|
|
227
|
-
error: null;
|
|
228
|
-
isError: false;
|
|
229
|
-
isPending: true;
|
|
230
|
-
isLoadingError: false;
|
|
231
|
-
isRefetchError: false;
|
|
232
|
-
isSuccess: false;
|
|
233
|
-
isPlaceholderData: false;
|
|
234
|
-
status: "pending";
|
|
235
|
-
dataUpdatedAt: number;
|
|
236
|
-
errorUpdatedAt: number;
|
|
237
|
-
failureCount: number;
|
|
238
|
-
failureReason: Error | null;
|
|
239
|
-
errorUpdateCount: number;
|
|
240
|
-
isFetched: boolean;
|
|
241
|
-
isFetchedAfterMount: boolean;
|
|
242
|
-
isFetching: boolean;
|
|
243
|
-
isLoading: boolean;
|
|
244
|
-
isInitialLoading: boolean;
|
|
245
|
-
isPaused: boolean;
|
|
246
|
-
isRefetching: boolean;
|
|
247
|
-
isStale: boolean;
|
|
248
|
-
isEnabled: boolean;
|
|
249
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
|
|
250
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
251
|
-
promise: Promise<ViewResponse>;
|
|
252
|
-
} | {
|
|
253
|
-
context: any;
|
|
254
|
-
data: ViewResponse;
|
|
255
|
-
isError: false;
|
|
256
|
-
error: null;
|
|
257
|
-
isPending: false;
|
|
258
|
-
isLoading: false;
|
|
259
|
-
isLoadingError: false;
|
|
260
|
-
isRefetchError: false;
|
|
261
|
-
isSuccess: true;
|
|
262
|
-
isPlaceholderData: true;
|
|
263
|
-
status: "success";
|
|
264
|
-
dataUpdatedAt: number;
|
|
265
|
-
errorUpdatedAt: number;
|
|
266
|
-
failureCount: number;
|
|
267
|
-
failureReason: Error | null;
|
|
268
|
-
errorUpdateCount: number;
|
|
269
|
-
isFetched: boolean;
|
|
270
|
-
isFetchedAfterMount: boolean;
|
|
271
|
-
isFetching: boolean;
|
|
272
|
-
isInitialLoading: boolean;
|
|
273
|
-
isPaused: boolean;
|
|
274
|
-
isRefetching: boolean;
|
|
275
|
-
isStale: boolean;
|
|
276
|
-
isEnabled: boolean;
|
|
277
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ViewResponse, Error>>;
|
|
278
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
279
|
-
promise: Promise<ViewResponse>;
|
|
280
|
-
};
|
|
281
|
-
type useViewV2Type = ReturnType<typeof useViewV2>;
|
|
282
|
-
type ViewResponse = {
|
|
283
|
-
models: {
|
|
284
|
-
[key: string]: any;
|
|
285
|
-
};
|
|
286
|
-
views: {
|
|
287
|
-
[key: string]: any;
|
|
288
|
-
};
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
declare const useCompany: ({ service }: {
|
|
292
|
-
service?: string;
|
|
293
|
-
}) => {
|
|
294
|
-
currentCompany: {
|
|
295
|
-
data: CurrentCompany | undefined;
|
|
296
|
-
error: Error;
|
|
297
|
-
isError: true;
|
|
298
|
-
isPending: false;
|
|
299
|
-
isLoading: false;
|
|
300
|
-
isLoadingError: false;
|
|
301
|
-
isRefetchError: true;
|
|
302
|
-
isSuccess: false;
|
|
303
|
-
isPlaceholderData: false;
|
|
304
|
-
status: "error";
|
|
305
|
-
dataUpdatedAt: number;
|
|
306
|
-
errorUpdatedAt: number;
|
|
307
|
-
failureCount: number;
|
|
308
|
-
failureReason: Error | null;
|
|
309
|
-
errorUpdateCount: number;
|
|
310
|
-
isFetched: boolean;
|
|
311
|
-
isFetchedAfterMount: boolean;
|
|
312
|
-
isFetching: boolean;
|
|
313
|
-
isInitialLoading: boolean;
|
|
314
|
-
isPaused: boolean;
|
|
315
|
-
isRefetching: boolean;
|
|
316
|
-
isStale: boolean;
|
|
317
|
-
isEnabled: boolean;
|
|
318
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<CurrentCompany | undefined, Error>>;
|
|
319
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
320
|
-
promise: Promise<CurrentCompany | undefined>;
|
|
321
|
-
} | {
|
|
322
|
-
data: CurrentCompany | undefined;
|
|
323
|
-
error: null;
|
|
324
|
-
isError: false;
|
|
325
|
-
isPending: false;
|
|
326
|
-
isLoading: false;
|
|
327
|
-
isLoadingError: false;
|
|
328
|
-
isRefetchError: false;
|
|
329
|
-
isSuccess: true;
|
|
330
|
-
isPlaceholderData: false;
|
|
331
|
-
status: "success";
|
|
332
|
-
dataUpdatedAt: number;
|
|
333
|
-
errorUpdatedAt: number;
|
|
334
|
-
failureCount: number;
|
|
335
|
-
failureReason: Error | null;
|
|
336
|
-
errorUpdateCount: number;
|
|
337
|
-
isFetched: boolean;
|
|
338
|
-
isFetchedAfterMount: boolean;
|
|
339
|
-
isFetching: boolean;
|
|
340
|
-
isInitialLoading: boolean;
|
|
341
|
-
isPaused: boolean;
|
|
342
|
-
isRefetching: boolean;
|
|
343
|
-
isStale: boolean;
|
|
344
|
-
isEnabled: boolean;
|
|
345
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<CurrentCompany | undefined, Error>>;
|
|
346
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
347
|
-
promise: Promise<CurrentCompany | undefined>;
|
|
348
|
-
} | {
|
|
349
|
-
data: CurrentCompany | undefined;
|
|
350
|
-
isError: false;
|
|
351
|
-
error: null;
|
|
352
|
-
isPending: false;
|
|
353
|
-
isLoading: false;
|
|
354
|
-
isLoadingError: false;
|
|
355
|
-
isRefetchError: false;
|
|
356
|
-
isSuccess: true;
|
|
357
|
-
isPlaceholderData: true;
|
|
358
|
-
status: "success";
|
|
359
|
-
dataUpdatedAt: number;
|
|
360
|
-
errorUpdatedAt: number;
|
|
361
|
-
failureCount: number;
|
|
362
|
-
failureReason: Error | null;
|
|
363
|
-
errorUpdateCount: number;
|
|
364
|
-
isFetched: boolean;
|
|
365
|
-
isFetchedAfterMount: boolean;
|
|
366
|
-
isFetching: boolean;
|
|
367
|
-
isInitialLoading: boolean;
|
|
368
|
-
isPaused: boolean;
|
|
369
|
-
isRefetching: boolean;
|
|
370
|
-
isStale: boolean;
|
|
371
|
-
isEnabled: boolean;
|
|
372
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<CurrentCompany | undefined, Error>>;
|
|
373
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
374
|
-
promise: Promise<CurrentCompany | undefined>;
|
|
375
|
-
};
|
|
376
|
-
companyInfo: {
|
|
377
|
-
data: any;
|
|
378
|
-
error: Error;
|
|
379
|
-
isError: true;
|
|
380
|
-
isPending: false;
|
|
381
|
-
isLoading: false;
|
|
382
|
-
isLoadingError: false;
|
|
383
|
-
isRefetchError: true;
|
|
384
|
-
isSuccess: false;
|
|
385
|
-
isPlaceholderData: false;
|
|
386
|
-
status: "error";
|
|
387
|
-
dataUpdatedAt: number;
|
|
388
|
-
errorUpdatedAt: number;
|
|
389
|
-
failureCount: number;
|
|
390
|
-
failureReason: Error | null;
|
|
391
|
-
errorUpdateCount: number;
|
|
392
|
-
isFetched: boolean;
|
|
393
|
-
isFetchedAfterMount: boolean;
|
|
394
|
-
isFetching: boolean;
|
|
395
|
-
isInitialLoading: boolean;
|
|
396
|
-
isPaused: boolean;
|
|
397
|
-
isRefetching: boolean;
|
|
398
|
-
isStale: boolean;
|
|
399
|
-
isEnabled: boolean;
|
|
400
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
401
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
402
|
-
promise: Promise<any>;
|
|
403
|
-
} | {
|
|
404
|
-
data: any;
|
|
405
|
-
error: null;
|
|
406
|
-
isError: false;
|
|
407
|
-
isPending: false;
|
|
408
|
-
isLoading: false;
|
|
409
|
-
isLoadingError: false;
|
|
410
|
-
isRefetchError: false;
|
|
411
|
-
isSuccess: true;
|
|
412
|
-
isPlaceholderData: false;
|
|
413
|
-
status: "success";
|
|
414
|
-
dataUpdatedAt: number;
|
|
415
|
-
errorUpdatedAt: number;
|
|
416
|
-
failureCount: number;
|
|
417
|
-
failureReason: Error | null;
|
|
418
|
-
errorUpdateCount: number;
|
|
419
|
-
isFetched: boolean;
|
|
420
|
-
isFetchedAfterMount: boolean;
|
|
421
|
-
isFetching: boolean;
|
|
422
|
-
isInitialLoading: boolean;
|
|
423
|
-
isPaused: boolean;
|
|
424
|
-
isRefetching: boolean;
|
|
425
|
-
isStale: boolean;
|
|
426
|
-
isEnabled: boolean;
|
|
427
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
428
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
429
|
-
promise: Promise<any>;
|
|
430
|
-
} | {
|
|
431
|
-
data: undefined;
|
|
432
|
-
error: Error;
|
|
433
|
-
isError: true;
|
|
434
|
-
isPending: false;
|
|
435
|
-
isLoading: false;
|
|
436
|
-
isLoadingError: true;
|
|
437
|
-
isRefetchError: false;
|
|
438
|
-
isSuccess: false;
|
|
439
|
-
isPlaceholderData: false;
|
|
440
|
-
status: "error";
|
|
441
|
-
dataUpdatedAt: number;
|
|
442
|
-
errorUpdatedAt: number;
|
|
443
|
-
failureCount: number;
|
|
444
|
-
failureReason: Error | null;
|
|
445
|
-
errorUpdateCount: number;
|
|
446
|
-
isFetched: boolean;
|
|
447
|
-
isFetchedAfterMount: boolean;
|
|
448
|
-
isFetching: boolean;
|
|
449
|
-
isInitialLoading: boolean;
|
|
450
|
-
isPaused: boolean;
|
|
451
|
-
isRefetching: boolean;
|
|
452
|
-
isStale: boolean;
|
|
453
|
-
isEnabled: boolean;
|
|
454
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
455
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
456
|
-
promise: Promise<any>;
|
|
457
|
-
} | {
|
|
458
|
-
data: undefined;
|
|
459
|
-
error: null;
|
|
460
|
-
isError: false;
|
|
461
|
-
isPending: true;
|
|
462
|
-
isLoading: true;
|
|
463
|
-
isLoadingError: false;
|
|
464
|
-
isRefetchError: false;
|
|
465
|
-
isSuccess: false;
|
|
466
|
-
isPlaceholderData: false;
|
|
467
|
-
status: "pending";
|
|
468
|
-
dataUpdatedAt: number;
|
|
469
|
-
errorUpdatedAt: number;
|
|
470
|
-
failureCount: number;
|
|
471
|
-
failureReason: Error | null;
|
|
472
|
-
errorUpdateCount: number;
|
|
473
|
-
isFetched: boolean;
|
|
474
|
-
isFetchedAfterMount: boolean;
|
|
475
|
-
isFetching: boolean;
|
|
476
|
-
isInitialLoading: boolean;
|
|
477
|
-
isPaused: boolean;
|
|
478
|
-
isRefetching: boolean;
|
|
479
|
-
isStale: boolean;
|
|
480
|
-
isEnabled: boolean;
|
|
481
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
482
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
483
|
-
promise: Promise<any>;
|
|
484
|
-
} | {
|
|
485
|
-
data: undefined;
|
|
486
|
-
error: null;
|
|
487
|
-
isError: false;
|
|
488
|
-
isPending: true;
|
|
489
|
-
isLoadingError: false;
|
|
490
|
-
isRefetchError: false;
|
|
491
|
-
isSuccess: false;
|
|
492
|
-
isPlaceholderData: false;
|
|
493
|
-
status: "pending";
|
|
494
|
-
dataUpdatedAt: number;
|
|
495
|
-
errorUpdatedAt: number;
|
|
496
|
-
failureCount: number;
|
|
497
|
-
failureReason: Error | null;
|
|
498
|
-
errorUpdateCount: number;
|
|
499
|
-
isFetched: boolean;
|
|
500
|
-
isFetchedAfterMount: boolean;
|
|
501
|
-
isFetching: boolean;
|
|
502
|
-
isLoading: boolean;
|
|
503
|
-
isInitialLoading: boolean;
|
|
504
|
-
isPaused: boolean;
|
|
505
|
-
isRefetching: boolean;
|
|
506
|
-
isStale: boolean;
|
|
507
|
-
isEnabled: boolean;
|
|
508
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
509
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
510
|
-
promise: Promise<any>;
|
|
511
|
-
} | {
|
|
512
|
-
data: any;
|
|
513
|
-
isError: false;
|
|
514
|
-
error: null;
|
|
515
|
-
isPending: false;
|
|
516
|
-
isLoading: false;
|
|
517
|
-
isLoadingError: false;
|
|
518
|
-
isRefetchError: false;
|
|
519
|
-
isSuccess: true;
|
|
520
|
-
isPlaceholderData: true;
|
|
521
|
-
status: "success";
|
|
522
|
-
dataUpdatedAt: number;
|
|
523
|
-
errorUpdatedAt: number;
|
|
524
|
-
failureCount: number;
|
|
525
|
-
failureReason: Error | null;
|
|
526
|
-
errorUpdateCount: number;
|
|
527
|
-
isFetched: boolean;
|
|
528
|
-
isFetchedAfterMount: boolean;
|
|
529
|
-
isFetching: boolean;
|
|
530
|
-
isInitialLoading: boolean;
|
|
531
|
-
isPaused: boolean;
|
|
532
|
-
isRefetching: boolean;
|
|
533
|
-
isStale: boolean;
|
|
534
|
-
isEnabled: boolean;
|
|
535
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
536
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
537
|
-
promise: Promise<any>;
|
|
538
|
-
};
|
|
539
|
-
} | undefined;
|
|
540
|
-
interface CompanyTuple extends Array<number | string> {
|
|
541
|
-
0: number;
|
|
542
|
-
1: string;
|
|
543
|
-
}
|
|
544
|
-
interface CurrentCompany {
|
|
545
|
-
allowed_companies: CompanyTuple[];
|
|
546
|
-
current_company: CompanyTuple;
|
|
547
|
-
current_company_id: number;
|
|
548
|
-
is_allowed: boolean;
|
|
549
|
-
}
|
|
550
|
-
type useCompanyType = ReturnType<typeof useCompany>;
|
|
551
|
-
|
|
552
|
-
type AppProviderType = {
|
|
553
|
-
user: useUserType;
|
|
554
|
-
company: useCompanyType;
|
|
555
|
-
action: ActionResultType;
|
|
556
|
-
menu: useMenuType;
|
|
557
|
-
view: useViewV2Type;
|
|
558
|
-
};
|
|
559
|
-
declare const AppProvider: ({ children, menuParams, aid, i18n, }: {
|
|
560
|
-
children: React.ReactNode;
|
|
561
|
-
} & {
|
|
562
|
-
menuParams: {
|
|
563
|
-
specification: any;
|
|
564
|
-
domain?: any;
|
|
565
|
-
context?: any;
|
|
566
|
-
};
|
|
567
|
-
aid?: any;
|
|
568
|
-
i18n?: any;
|
|
569
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
570
|
-
declare const useAppProvider: () => AppProviderType;
|
|
571
|
-
|
|
572
|
-
type EnvData = {
|
|
573
|
-
mode: string;
|
|
574
|
-
baseUrl: string;
|
|
575
|
-
config: {
|
|
576
|
-
grantType: string;
|
|
577
|
-
clientId: string;
|
|
578
|
-
clientSecret: string;
|
|
579
|
-
};
|
|
580
|
-
};
|
|
581
|
-
type ConfigType = {
|
|
582
|
-
VITE_SIDEBAR_TYPE: string;
|
|
583
|
-
VITE_APP_DOMAIN: string;
|
|
584
|
-
VITE_IS_EDU: boolean;
|
|
585
|
-
VITE_LOGO_WHITE_LOGIN: string;
|
|
586
|
-
VITE_LOGO_BLACK_LOGIN: string;
|
|
587
|
-
VITE_BACKGROUND_SIDEBAR: string;
|
|
588
|
-
VITE_BANNER: string;
|
|
589
|
-
VITE_BG_BUTTON: string;
|
|
590
|
-
VITE_BACKGROUND_PAGE: string;
|
|
591
|
-
VITE_BANK: string;
|
|
592
|
-
VITE_BANK_COLLECTOR: string;
|
|
593
|
-
VITE_EDU_FIELD: string;
|
|
594
|
-
[key: string]: any;
|
|
595
|
-
};
|
|
596
|
-
type AppConfig = {
|
|
597
|
-
envConfig: EnvData;
|
|
598
|
-
config: ConfigType;
|
|
599
|
-
sessionStorageUtils?: any;
|
|
600
|
-
localStorageUtils?: any;
|
|
601
|
-
};
|
|
602
|
-
declare const useConfig: ({ envConfig, config, localStorageUtils, sessionStorageUtils, }: AppConfig) => {
|
|
603
|
-
envConfig: EnvData;
|
|
604
|
-
config: ConfigType;
|
|
605
|
-
};
|
|
606
|
-
type useConfigType = ReturnType<typeof useConfig>;
|
|
607
|
-
|
|
608
|
-
declare const useDetail: (sub?: number) => {
|
|
609
|
-
data: any;
|
|
610
|
-
error: Error;
|
|
611
|
-
isError: true;
|
|
612
|
-
isPending: false;
|
|
613
|
-
isLoading: false;
|
|
614
|
-
isLoadingError: false;
|
|
615
|
-
isRefetchError: true;
|
|
616
|
-
isSuccess: false;
|
|
617
|
-
isPlaceholderData: false;
|
|
618
|
-
status: "error";
|
|
619
|
-
dataUpdatedAt: number;
|
|
620
|
-
errorUpdatedAt: number;
|
|
621
|
-
failureCount: number;
|
|
622
|
-
failureReason: Error | null;
|
|
623
|
-
errorUpdateCount: number;
|
|
624
|
-
isFetched: boolean;
|
|
625
|
-
isFetchedAfterMount: boolean;
|
|
626
|
-
isFetching: boolean;
|
|
627
|
-
isInitialLoading: boolean;
|
|
628
|
-
isPaused: boolean;
|
|
629
|
-
isRefetching: boolean;
|
|
630
|
-
isStale: boolean;
|
|
631
|
-
isEnabled: boolean;
|
|
632
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
633
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
634
|
-
promise: Promise<any>;
|
|
635
|
-
} | {
|
|
636
|
-
data: any;
|
|
637
|
-
error: null;
|
|
638
|
-
isError: false;
|
|
639
|
-
isPending: false;
|
|
640
|
-
isLoading: false;
|
|
641
|
-
isLoadingError: false;
|
|
642
|
-
isRefetchError: false;
|
|
643
|
-
isSuccess: true;
|
|
644
|
-
isPlaceholderData: false;
|
|
645
|
-
status: "success";
|
|
646
|
-
dataUpdatedAt: number;
|
|
647
|
-
errorUpdatedAt: number;
|
|
648
|
-
failureCount: number;
|
|
649
|
-
failureReason: Error | null;
|
|
650
|
-
errorUpdateCount: number;
|
|
651
|
-
isFetched: boolean;
|
|
652
|
-
isFetchedAfterMount: boolean;
|
|
653
|
-
isFetching: boolean;
|
|
654
|
-
isInitialLoading: boolean;
|
|
655
|
-
isPaused: boolean;
|
|
656
|
-
isRefetching: boolean;
|
|
657
|
-
isStale: boolean;
|
|
658
|
-
isEnabled: boolean;
|
|
659
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
660
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
661
|
-
promise: Promise<any>;
|
|
662
|
-
} | {
|
|
663
|
-
data: undefined;
|
|
664
|
-
error: Error;
|
|
665
|
-
isError: true;
|
|
666
|
-
isPending: false;
|
|
667
|
-
isLoading: false;
|
|
668
|
-
isLoadingError: true;
|
|
669
|
-
isRefetchError: false;
|
|
670
|
-
isSuccess: false;
|
|
671
|
-
isPlaceholderData: false;
|
|
672
|
-
status: "error";
|
|
673
|
-
dataUpdatedAt: number;
|
|
674
|
-
errorUpdatedAt: number;
|
|
675
|
-
failureCount: number;
|
|
676
|
-
failureReason: Error | null;
|
|
677
|
-
errorUpdateCount: number;
|
|
678
|
-
isFetched: boolean;
|
|
679
|
-
isFetchedAfterMount: boolean;
|
|
680
|
-
isFetching: boolean;
|
|
681
|
-
isInitialLoading: boolean;
|
|
682
|
-
isPaused: boolean;
|
|
683
|
-
isRefetching: boolean;
|
|
684
|
-
isStale: boolean;
|
|
685
|
-
isEnabled: boolean;
|
|
686
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
687
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
688
|
-
promise: Promise<any>;
|
|
689
|
-
} | {
|
|
690
|
-
data: undefined;
|
|
691
|
-
error: null;
|
|
692
|
-
isError: false;
|
|
693
|
-
isPending: true;
|
|
694
|
-
isLoading: true;
|
|
695
|
-
isLoadingError: false;
|
|
696
|
-
isRefetchError: false;
|
|
697
|
-
isSuccess: false;
|
|
698
|
-
isPlaceholderData: false;
|
|
699
|
-
status: "pending";
|
|
700
|
-
dataUpdatedAt: number;
|
|
701
|
-
errorUpdatedAt: number;
|
|
702
|
-
failureCount: number;
|
|
703
|
-
failureReason: Error | null;
|
|
704
|
-
errorUpdateCount: number;
|
|
705
|
-
isFetched: boolean;
|
|
706
|
-
isFetchedAfterMount: boolean;
|
|
707
|
-
isFetching: boolean;
|
|
708
|
-
isInitialLoading: boolean;
|
|
709
|
-
isPaused: boolean;
|
|
710
|
-
isRefetching: boolean;
|
|
711
|
-
isStale: boolean;
|
|
712
|
-
isEnabled: boolean;
|
|
713
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
714
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
715
|
-
promise: Promise<any>;
|
|
716
|
-
} | {
|
|
717
|
-
data: undefined;
|
|
718
|
-
error: null;
|
|
719
|
-
isError: false;
|
|
720
|
-
isPending: true;
|
|
721
|
-
isLoadingError: false;
|
|
722
|
-
isRefetchError: false;
|
|
723
|
-
isSuccess: false;
|
|
724
|
-
isPlaceholderData: false;
|
|
725
|
-
status: "pending";
|
|
726
|
-
dataUpdatedAt: number;
|
|
727
|
-
errorUpdatedAt: number;
|
|
728
|
-
failureCount: number;
|
|
729
|
-
failureReason: Error | null;
|
|
730
|
-
errorUpdateCount: number;
|
|
731
|
-
isFetched: boolean;
|
|
732
|
-
isFetchedAfterMount: boolean;
|
|
733
|
-
isFetching: boolean;
|
|
734
|
-
isLoading: boolean;
|
|
735
|
-
isInitialLoading: boolean;
|
|
736
|
-
isPaused: boolean;
|
|
737
|
-
isRefetching: boolean;
|
|
738
|
-
isStale: boolean;
|
|
739
|
-
isEnabled: boolean;
|
|
740
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
741
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
742
|
-
promise: Promise<any>;
|
|
743
|
-
} | {
|
|
744
|
-
data: any;
|
|
745
|
-
isError: false;
|
|
746
|
-
error: null;
|
|
747
|
-
isPending: false;
|
|
748
|
-
isLoading: false;
|
|
749
|
-
isLoadingError: false;
|
|
750
|
-
isRefetchError: false;
|
|
751
|
-
isSuccess: true;
|
|
752
|
-
isPlaceholderData: true;
|
|
753
|
-
status: "success";
|
|
754
|
-
dataUpdatedAt: number;
|
|
755
|
-
errorUpdatedAt: number;
|
|
756
|
-
failureCount: number;
|
|
757
|
-
failureReason: Error | null;
|
|
758
|
-
errorUpdateCount: number;
|
|
759
|
-
isFetched: boolean;
|
|
760
|
-
isFetchedAfterMount: boolean;
|
|
761
|
-
isFetching: boolean;
|
|
762
|
-
isInitialLoading: boolean;
|
|
763
|
-
isPaused: boolean;
|
|
764
|
-
isRefetching: boolean;
|
|
765
|
-
isStale: boolean;
|
|
766
|
-
isEnabled: boolean;
|
|
767
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
768
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
769
|
-
promise: Promise<any>;
|
|
770
|
-
};
|
|
771
|
-
|
|
772
|
-
declare const useGetAction: ({ aid, context, }: {
|
|
773
|
-
aid: any;
|
|
774
|
-
context: any;
|
|
775
|
-
}) => {
|
|
776
|
-
onLoadAction: () => void;
|
|
777
|
-
};
|
|
778
|
-
|
|
779
|
-
declare const useGetSpecification: ({ model, viewData, fields, }: {
|
|
780
|
-
model: string;
|
|
781
|
-
viewData: any;
|
|
782
|
-
fields: any;
|
|
783
|
-
}) => {
|
|
784
|
-
specification: Record<string, any> | null;
|
|
785
|
-
};
|
|
786
|
-
|
|
787
|
-
declare const useListData: ({ action, context, viewData, model, service, xNode, mode, limit, }: {
|
|
788
|
-
action: ActionResultType;
|
|
789
|
-
context: any;
|
|
790
|
-
viewData?: ViewResponse;
|
|
791
|
-
model: string;
|
|
792
|
-
service?: string;
|
|
793
|
-
xNode?: string;
|
|
794
|
-
mode?: string;
|
|
795
|
-
limit?: number;
|
|
796
|
-
}) => {
|
|
797
|
-
state: {
|
|
798
|
-
specification: Record<string, any> | null;
|
|
799
|
-
page: number;
|
|
800
|
-
order: any;
|
|
801
|
-
domain: any;
|
|
802
|
-
pageLimit: number;
|
|
803
|
-
groupByList: any;
|
|
804
|
-
selectedRowKeys: number[];
|
|
805
|
-
setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
806
|
-
setOrder: react.Dispatch<any>;
|
|
807
|
-
setDomain: react.Dispatch<any>;
|
|
808
|
-
setPageLimit: react.Dispatch<react.SetStateAction<number>>;
|
|
809
|
-
setGroupByList: react.Dispatch<any>;
|
|
810
|
-
setSelectedRowKeys: react.Dispatch<react.SetStateAction<number[]>>;
|
|
811
|
-
};
|
|
812
|
-
data: any;
|
|
813
|
-
error: Error;
|
|
814
|
-
isError: true;
|
|
815
|
-
isPending: false;
|
|
816
|
-
isLoading: false;
|
|
817
|
-
isLoadingError: false;
|
|
818
|
-
isRefetchError: true;
|
|
819
|
-
isSuccess: false;
|
|
820
|
-
isPlaceholderData: false;
|
|
821
|
-
status: "error";
|
|
822
|
-
dataUpdatedAt: number;
|
|
823
|
-
errorUpdatedAt: number;
|
|
824
|
-
failureCount: number;
|
|
825
|
-
failureReason: Error | null;
|
|
826
|
-
errorUpdateCount: number;
|
|
827
|
-
isFetched: boolean;
|
|
828
|
-
isFetchedAfterMount: boolean;
|
|
829
|
-
isFetching: boolean;
|
|
830
|
-
isInitialLoading: boolean;
|
|
831
|
-
isPaused: boolean;
|
|
832
|
-
isRefetching: boolean;
|
|
833
|
-
isStale: boolean;
|
|
834
|
-
isEnabled: boolean;
|
|
835
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
836
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
837
|
-
promise: Promise<any>;
|
|
838
|
-
} | {
|
|
839
|
-
state: {
|
|
840
|
-
specification: Record<string, any> | null;
|
|
841
|
-
page: number;
|
|
842
|
-
order: any;
|
|
843
|
-
domain: any;
|
|
844
|
-
pageLimit: number;
|
|
845
|
-
groupByList: any;
|
|
846
|
-
selectedRowKeys: number[];
|
|
847
|
-
setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
848
|
-
setOrder: react.Dispatch<any>;
|
|
849
|
-
setDomain: react.Dispatch<any>;
|
|
850
|
-
setPageLimit: react.Dispatch<react.SetStateAction<number>>;
|
|
851
|
-
setGroupByList: react.Dispatch<any>;
|
|
852
|
-
setSelectedRowKeys: react.Dispatch<react.SetStateAction<number[]>>;
|
|
853
|
-
};
|
|
854
|
-
data: any;
|
|
855
|
-
error: null;
|
|
856
|
-
isError: false;
|
|
857
|
-
isPending: false;
|
|
858
|
-
isLoading: false;
|
|
859
|
-
isLoadingError: false;
|
|
860
|
-
isRefetchError: false;
|
|
861
|
-
isSuccess: true;
|
|
862
|
-
isPlaceholderData: false;
|
|
863
|
-
status: "success";
|
|
864
|
-
dataUpdatedAt: number;
|
|
865
|
-
errorUpdatedAt: number;
|
|
866
|
-
failureCount: number;
|
|
867
|
-
failureReason: Error | null;
|
|
868
|
-
errorUpdateCount: number;
|
|
869
|
-
isFetched: boolean;
|
|
870
|
-
isFetchedAfterMount: boolean;
|
|
871
|
-
isFetching: boolean;
|
|
872
|
-
isInitialLoading: boolean;
|
|
873
|
-
isPaused: boolean;
|
|
874
|
-
isRefetching: boolean;
|
|
875
|
-
isStale: boolean;
|
|
876
|
-
isEnabled: boolean;
|
|
877
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
878
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
879
|
-
promise: Promise<any>;
|
|
880
|
-
} | {
|
|
881
|
-
state: {
|
|
882
|
-
specification: Record<string, any> | null;
|
|
883
|
-
page: number;
|
|
884
|
-
order: any;
|
|
885
|
-
domain: any;
|
|
886
|
-
pageLimit: number;
|
|
887
|
-
groupByList: any;
|
|
888
|
-
selectedRowKeys: number[];
|
|
889
|
-
setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
890
|
-
setOrder: react.Dispatch<any>;
|
|
891
|
-
setDomain: react.Dispatch<any>;
|
|
892
|
-
setPageLimit: react.Dispatch<react.SetStateAction<number>>;
|
|
893
|
-
setGroupByList: react.Dispatch<any>;
|
|
894
|
-
setSelectedRowKeys: react.Dispatch<react.SetStateAction<number[]>>;
|
|
895
|
-
};
|
|
896
|
-
data: undefined;
|
|
897
|
-
error: Error;
|
|
898
|
-
isError: true;
|
|
899
|
-
isPending: false;
|
|
900
|
-
isLoading: false;
|
|
901
|
-
isLoadingError: true;
|
|
902
|
-
isRefetchError: false;
|
|
903
|
-
isSuccess: false;
|
|
904
|
-
isPlaceholderData: false;
|
|
905
|
-
status: "error";
|
|
906
|
-
dataUpdatedAt: number;
|
|
907
|
-
errorUpdatedAt: number;
|
|
908
|
-
failureCount: number;
|
|
909
|
-
failureReason: Error | null;
|
|
910
|
-
errorUpdateCount: number;
|
|
911
|
-
isFetched: boolean;
|
|
912
|
-
isFetchedAfterMount: boolean;
|
|
913
|
-
isFetching: boolean;
|
|
914
|
-
isInitialLoading: boolean;
|
|
915
|
-
isPaused: boolean;
|
|
916
|
-
isRefetching: boolean;
|
|
917
|
-
isStale: boolean;
|
|
918
|
-
isEnabled: boolean;
|
|
919
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
920
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
921
|
-
promise: Promise<any>;
|
|
922
|
-
} | {
|
|
923
|
-
state: {
|
|
924
|
-
specification: Record<string, any> | null;
|
|
925
|
-
page: number;
|
|
926
|
-
order: any;
|
|
927
|
-
domain: any;
|
|
928
|
-
pageLimit: number;
|
|
929
|
-
groupByList: any;
|
|
930
|
-
selectedRowKeys: number[];
|
|
931
|
-
setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
932
|
-
setOrder: react.Dispatch<any>;
|
|
933
|
-
setDomain: react.Dispatch<any>;
|
|
934
|
-
setPageLimit: react.Dispatch<react.SetStateAction<number>>;
|
|
935
|
-
setGroupByList: react.Dispatch<any>;
|
|
936
|
-
setSelectedRowKeys: react.Dispatch<react.SetStateAction<number[]>>;
|
|
937
|
-
};
|
|
938
|
-
data: undefined;
|
|
939
|
-
error: null;
|
|
940
|
-
isError: false;
|
|
941
|
-
isPending: true;
|
|
942
|
-
isLoading: true;
|
|
943
|
-
isLoadingError: false;
|
|
944
|
-
isRefetchError: false;
|
|
945
|
-
isSuccess: false;
|
|
946
|
-
isPlaceholderData: false;
|
|
947
|
-
status: "pending";
|
|
948
|
-
dataUpdatedAt: number;
|
|
949
|
-
errorUpdatedAt: number;
|
|
950
|
-
failureCount: number;
|
|
951
|
-
failureReason: Error | null;
|
|
952
|
-
errorUpdateCount: number;
|
|
953
|
-
isFetched: boolean;
|
|
954
|
-
isFetchedAfterMount: boolean;
|
|
955
|
-
isFetching: boolean;
|
|
956
|
-
isInitialLoading: boolean;
|
|
957
|
-
isPaused: boolean;
|
|
958
|
-
isRefetching: boolean;
|
|
959
|
-
isStale: boolean;
|
|
960
|
-
isEnabled: boolean;
|
|
961
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
962
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
963
|
-
promise: Promise<any>;
|
|
964
|
-
} | {
|
|
965
|
-
state: {
|
|
966
|
-
specification: Record<string, any> | null;
|
|
967
|
-
page: number;
|
|
968
|
-
order: any;
|
|
969
|
-
domain: any;
|
|
970
|
-
pageLimit: number;
|
|
971
|
-
groupByList: any;
|
|
972
|
-
selectedRowKeys: number[];
|
|
973
|
-
setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
974
|
-
setOrder: react.Dispatch<any>;
|
|
975
|
-
setDomain: react.Dispatch<any>;
|
|
976
|
-
setPageLimit: react.Dispatch<react.SetStateAction<number>>;
|
|
977
|
-
setGroupByList: react.Dispatch<any>;
|
|
978
|
-
setSelectedRowKeys: react.Dispatch<react.SetStateAction<number[]>>;
|
|
979
|
-
};
|
|
980
|
-
data: undefined;
|
|
981
|
-
error: null;
|
|
982
|
-
isError: false;
|
|
983
|
-
isPending: true;
|
|
984
|
-
isLoadingError: false;
|
|
985
|
-
isRefetchError: false;
|
|
986
|
-
isSuccess: false;
|
|
987
|
-
isPlaceholderData: false;
|
|
988
|
-
status: "pending";
|
|
989
|
-
dataUpdatedAt: number;
|
|
990
|
-
errorUpdatedAt: number;
|
|
991
|
-
failureCount: number;
|
|
992
|
-
failureReason: Error | null;
|
|
993
|
-
errorUpdateCount: number;
|
|
994
|
-
isFetched: boolean;
|
|
995
|
-
isFetchedAfterMount: boolean;
|
|
996
|
-
isFetching: boolean;
|
|
997
|
-
isLoading: boolean;
|
|
998
|
-
isInitialLoading: boolean;
|
|
999
|
-
isPaused: boolean;
|
|
1000
|
-
isRefetching: boolean;
|
|
1001
|
-
isStale: boolean;
|
|
1002
|
-
isEnabled: boolean;
|
|
1003
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
1004
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1005
|
-
promise: Promise<any>;
|
|
1006
|
-
} | {
|
|
1007
|
-
state: {
|
|
1008
|
-
specification: Record<string, any> | null;
|
|
1009
|
-
page: number;
|
|
1010
|
-
order: any;
|
|
1011
|
-
domain: any;
|
|
1012
|
-
pageLimit: number;
|
|
1013
|
-
groupByList: any;
|
|
1014
|
-
selectedRowKeys: number[];
|
|
1015
|
-
setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
1016
|
-
setOrder: react.Dispatch<any>;
|
|
1017
|
-
setDomain: react.Dispatch<any>;
|
|
1018
|
-
setPageLimit: react.Dispatch<react.SetStateAction<number>>;
|
|
1019
|
-
setGroupByList: react.Dispatch<any>;
|
|
1020
|
-
setSelectedRowKeys: react.Dispatch<react.SetStateAction<number[]>>;
|
|
1021
|
-
};
|
|
1022
|
-
data: any;
|
|
1023
|
-
isError: false;
|
|
1024
|
-
error: null;
|
|
1025
|
-
isPending: false;
|
|
1026
|
-
isLoading: false;
|
|
1027
|
-
isLoadingError: false;
|
|
1028
|
-
isRefetchError: false;
|
|
1029
|
-
isSuccess: true;
|
|
1030
|
-
isPlaceholderData: true;
|
|
1031
|
-
status: "success";
|
|
1032
|
-
dataUpdatedAt: number;
|
|
1033
|
-
errorUpdatedAt: number;
|
|
1034
|
-
failureCount: number;
|
|
1035
|
-
failureReason: Error | null;
|
|
1036
|
-
errorUpdateCount: number;
|
|
1037
|
-
isFetched: boolean;
|
|
1038
|
-
isFetchedAfterMount: boolean;
|
|
1039
|
-
isFetching: boolean;
|
|
1040
|
-
isInitialLoading: boolean;
|
|
1041
|
-
isPaused: boolean;
|
|
1042
|
-
isRefetching: boolean;
|
|
1043
|
-
isStale: boolean;
|
|
1044
|
-
isEnabled: boolean;
|
|
1045
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<any, Error>>;
|
|
1046
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1047
|
-
promise: Promise<any>;
|
|
1048
|
-
};
|
|
1049
|
-
type useListDataType = ReturnType<typeof useListData>;
|
|
1050
|
-
|
|
1051
|
-
declare const useProfile: ({ service, i18n, }: {
|
|
1052
|
-
service?: string;
|
|
1053
|
-
i18n?: any;
|
|
1054
|
-
}) => {
|
|
1055
|
-
context: ContextProfile | undefined;
|
|
1056
|
-
data: UserInfo | undefined;
|
|
1057
|
-
error: Error;
|
|
1058
|
-
isError: true;
|
|
1059
|
-
isPending: false;
|
|
1060
|
-
isLoading: false;
|
|
1061
|
-
isLoadingError: false;
|
|
1062
|
-
isRefetchError: true;
|
|
1063
|
-
isSuccess: false;
|
|
1064
|
-
isPlaceholderData: false;
|
|
1065
|
-
status: "error";
|
|
1066
|
-
dataUpdatedAt: number;
|
|
1067
|
-
errorUpdatedAt: number;
|
|
1068
|
-
failureCount: number;
|
|
1069
|
-
failureReason: Error | null;
|
|
1070
|
-
errorUpdateCount: number;
|
|
1071
|
-
isFetched: boolean;
|
|
1072
|
-
isFetchedAfterMount: boolean;
|
|
1073
|
-
isFetching: boolean;
|
|
1074
|
-
isInitialLoading: boolean;
|
|
1075
|
-
isPaused: boolean;
|
|
1076
|
-
isRefetching: boolean;
|
|
1077
|
-
isStale: boolean;
|
|
1078
|
-
isEnabled: boolean;
|
|
1079
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
|
|
1080
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1081
|
-
promise: Promise<UserInfo | undefined>;
|
|
1082
|
-
} | {
|
|
1083
|
-
context: ContextProfile | undefined;
|
|
1084
|
-
data: UserInfo | undefined;
|
|
1085
|
-
error: null;
|
|
1086
|
-
isError: false;
|
|
1087
|
-
isPending: false;
|
|
1088
|
-
isLoading: false;
|
|
1089
|
-
isLoadingError: false;
|
|
1090
|
-
isRefetchError: false;
|
|
1091
|
-
isSuccess: true;
|
|
1092
|
-
isPlaceholderData: false;
|
|
1093
|
-
status: "success";
|
|
1094
|
-
dataUpdatedAt: number;
|
|
1095
|
-
errorUpdatedAt: number;
|
|
1096
|
-
failureCount: number;
|
|
1097
|
-
failureReason: Error | null;
|
|
1098
|
-
errorUpdateCount: number;
|
|
1099
|
-
isFetched: boolean;
|
|
1100
|
-
isFetchedAfterMount: boolean;
|
|
1101
|
-
isFetching: boolean;
|
|
1102
|
-
isInitialLoading: boolean;
|
|
1103
|
-
isPaused: boolean;
|
|
1104
|
-
isRefetching: boolean;
|
|
1105
|
-
isStale: boolean;
|
|
1106
|
-
isEnabled: boolean;
|
|
1107
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
|
|
1108
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1109
|
-
promise: Promise<UserInfo | undefined>;
|
|
1110
|
-
} | {
|
|
1111
|
-
context: ContextProfile | undefined;
|
|
1112
|
-
data: UserInfo | undefined;
|
|
1113
|
-
isError: false;
|
|
1114
|
-
error: null;
|
|
1115
|
-
isPending: false;
|
|
1116
|
-
isLoading: false;
|
|
1117
|
-
isLoadingError: false;
|
|
1118
|
-
isRefetchError: false;
|
|
1119
|
-
isSuccess: true;
|
|
1120
|
-
isPlaceholderData: true;
|
|
1121
|
-
status: "success";
|
|
1122
|
-
dataUpdatedAt: number;
|
|
1123
|
-
errorUpdatedAt: number;
|
|
1124
|
-
failureCount: number;
|
|
1125
|
-
failureReason: Error | null;
|
|
1126
|
-
errorUpdateCount: number;
|
|
1127
|
-
isFetched: boolean;
|
|
1128
|
-
isFetchedAfterMount: boolean;
|
|
1129
|
-
isFetching: boolean;
|
|
1130
|
-
isInitialLoading: boolean;
|
|
1131
|
-
isPaused: boolean;
|
|
1132
|
-
isRefetching: boolean;
|
|
1133
|
-
isStale: boolean;
|
|
1134
|
-
isEnabled: boolean;
|
|
1135
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<UserInfo | undefined, Error>>;
|
|
1136
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
1137
|
-
promise: Promise<UserInfo | undefined>;
|
|
1138
|
-
} | null;
|
|
1139
|
-
interface UserInfo {
|
|
1140
|
-
address: Address;
|
|
1141
|
-
email: string;
|
|
1142
|
-
locale: string;
|
|
1143
|
-
name: string;
|
|
1144
|
-
partner_id: PartnerID;
|
|
1145
|
-
phone_number: boolean;
|
|
1146
|
-
sub: number;
|
|
1147
|
-
updated_at: Date;
|
|
1148
|
-
username: string;
|
|
1149
|
-
website: boolean;
|
|
1150
|
-
zoneinfo: string;
|
|
1151
|
-
x_node: string;
|
|
1152
|
-
}
|
|
1153
|
-
interface Address {
|
|
1154
|
-
country: boolean;
|
|
1155
|
-
formatted: string;
|
|
1156
|
-
locality: boolean;
|
|
1157
|
-
postal_code: boolean;
|
|
1158
|
-
region: boolean;
|
|
1159
|
-
street_address: boolean;
|
|
1160
|
-
}
|
|
1161
|
-
interface PartnerID {
|
|
1162
|
-
id: number;
|
|
1163
|
-
stud_id: boolean;
|
|
1164
|
-
}
|
|
1165
|
-
type ContextProfile = {
|
|
1166
|
-
uid: number;
|
|
1167
|
-
lang: string;
|
|
1168
|
-
allowed_company_ids?: number[];
|
|
1169
|
-
[key: string]: any;
|
|
1170
|
-
};
|
|
1171
|
-
|
|
1172
|
-
declare function useDebounce<T>(value: T, delay: number): [T];
|
|
1173
|
-
|
|
1174
|
-
declare const useGetRowIds: (tableRef: react__default.RefObject<HTMLTableElement | null>) => {
|
|
1175
|
-
rowIds: string[];
|
|
1176
|
-
refresh: () => void;
|
|
1177
|
-
};
|
|
1178
|
-
|
|
1179
|
-
export { type ActionResultType, AppProvider, type CompanyTuple, type ContextProfile, type CurrentCompany, type RecordMenu, type UseMenuReturn, type ViewResponse, useAppProvider, useCallAction, type useCallActionType, useCompany, type useCompanyType, useConfig, type useConfigType, useDebounce, useDetail, useGetAction, useGetRowIds, useGetSpecification, useListData, type useListDataType, useMenu, type useMenuType, useProfile, useUser, type useUserType, useViewV2, type useViewV2Type };
|