@fctc/edu-logic-lib 1.1.2 → 1.1.4
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/{view-type-BTzRpkT7.d.mts → api-type-dNqOR_Yp.d.mts} +1 -42
- package/dist/{view-type-BTzRpkT7.d.ts → api-type-dNqOR_Yp.d.ts} +1 -42
- package/dist/hooks.d.mts +5 -208
- package/dist/hooks.d.ts +5 -208
- package/dist/hooks.js +10 -1782
- package/dist/hooks.mjs +11 -1738
- package/dist/index.d.mts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +4714 -0
- package/dist/index.mjs +4601 -0
- package/dist/models.d.mts +21 -4
- package/dist/models.d.ts +21 -4
- package/dist/services.d.mts +15 -3
- package/dist/services.d.ts +15 -3
- package/dist/types.d.mts +2 -1
- package/dist/types.d.ts +2 -1
- package/dist/view-type-BOk5F1Fj.d.mts +42 -0
- package/dist/view-type-BOk5F1Fj.d.ts +42 -0
- package/package.json +89 -128
- package/dist/index-C_nK1Mii.d.mts +0 -19
- package/dist/index-C_nK1Mii.d.ts +0 -19
- package/dist/use-get-selection-DFh6sc49.d.mts +0 -26
- package/dist/use-get-selection-DFh6sc49.d.ts +0 -26
|
@@ -62,45 +62,4 @@ interface ViewData {
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
email: string;
|
|
67
|
-
password: string;
|
|
68
|
-
path?: string;
|
|
69
|
-
}
|
|
70
|
-
interface ResetPasswordRequest {
|
|
71
|
-
password: string;
|
|
72
|
-
confirmPassword: string;
|
|
73
|
-
}
|
|
74
|
-
interface UpdatePasswordRequest {
|
|
75
|
-
newPassword: string;
|
|
76
|
-
oldPassword: string;
|
|
77
|
-
}
|
|
78
|
-
interface ForgotPasswordBody {
|
|
79
|
-
data: ResetPasswordRequest;
|
|
80
|
-
token: string | null;
|
|
81
|
-
}
|
|
82
|
-
interface updatePasswordBody {
|
|
83
|
-
data: UpdatePasswordRequest;
|
|
84
|
-
token: string | null;
|
|
85
|
-
}
|
|
86
|
-
interface SocialTokenBody {
|
|
87
|
-
state: object;
|
|
88
|
-
access_token: string;
|
|
89
|
-
db: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
type View = [number | boolean, string];
|
|
93
|
-
type Option = {
|
|
94
|
-
action_id?: number;
|
|
95
|
-
load_filters?: boolean;
|
|
96
|
-
toolbar?: boolean;
|
|
97
|
-
};
|
|
98
|
-
interface GetViewParams {
|
|
99
|
-
model?: string;
|
|
100
|
-
views?: View[];
|
|
101
|
-
context?: Record<string, any>;
|
|
102
|
-
options?: Option;
|
|
103
|
-
aid?: number | string | null | boolean;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, SocialTokenBody as c, Specification as d, GetViewParams as e, View as f, updatePasswordBody as u };
|
|
65
|
+
export type { ContextApi as C, DeleteParams as D, GetAllParams as G, OnChangeParams as O, SaveParams as S, ViewData as V, GetDetailParams as a, GetListParams as b, Specification as c };
|
|
@@ -62,45 +62,4 @@ interface ViewData {
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
email: string;
|
|
67
|
-
password: string;
|
|
68
|
-
path?: string;
|
|
69
|
-
}
|
|
70
|
-
interface ResetPasswordRequest {
|
|
71
|
-
password: string;
|
|
72
|
-
confirmPassword: string;
|
|
73
|
-
}
|
|
74
|
-
interface UpdatePasswordRequest {
|
|
75
|
-
newPassword: string;
|
|
76
|
-
oldPassword: string;
|
|
77
|
-
}
|
|
78
|
-
interface ForgotPasswordBody {
|
|
79
|
-
data: ResetPasswordRequest;
|
|
80
|
-
token: string | null;
|
|
81
|
-
}
|
|
82
|
-
interface updatePasswordBody {
|
|
83
|
-
data: UpdatePasswordRequest;
|
|
84
|
-
token: string | null;
|
|
85
|
-
}
|
|
86
|
-
interface SocialTokenBody {
|
|
87
|
-
state: object;
|
|
88
|
-
access_token: string;
|
|
89
|
-
db: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
type View = [number | boolean, string];
|
|
93
|
-
type Option = {
|
|
94
|
-
action_id?: number;
|
|
95
|
-
load_filters?: boolean;
|
|
96
|
-
toolbar?: boolean;
|
|
97
|
-
};
|
|
98
|
-
interface GetViewParams {
|
|
99
|
-
model?: string;
|
|
100
|
-
views?: View[];
|
|
101
|
-
context?: Record<string, any>;
|
|
102
|
-
options?: Option;
|
|
103
|
-
aid?: number | string | null | boolean;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, SocialTokenBody as c, Specification as d, GetViewParams as e, View as f, updatePasswordBody as u };
|
|
65
|
+
export type { ContextApi as C, DeleteParams as D, GetAllParams as G, OnChangeParams as O, SaveParams as S, ViewData as V, GetDetailParams as a, GetListParams as b, Specification as c };
|
package/dist/hooks.d.mts
CHANGED
|
@@ -1,216 +1,13 @@
|
|
|
1
|
+
import './environment.mjs';
|
|
1
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { a as BaseModelInit, B as BaseModel } from './index-C_nK1Mii.mjs';
|
|
3
|
+
import { C as ContextApi } from './api-type-dNqOR_Yp.mjs';
|
|
4
|
+
import '@reduxjs/toolkit';
|
|
5
5
|
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
type ProviderPropsType = {
|
|
9
|
-
db: string;
|
|
10
|
-
};
|
|
11
|
-
declare const useGetProvider: () => _tanstack_react_query.UseMutationResult<any, Error, ProviderPropsType, unknown>;
|
|
12
|
-
|
|
13
|
-
declare const useIsValidToken: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
14
|
-
|
|
15
|
-
declare const useLoginCredential: () => _tanstack_react_query.UseMutationResult<any, Error, LoginCredentialBody, unknown>;
|
|
16
|
-
|
|
17
|
-
declare const useLoginSocial: () => _tanstack_react_query.UseMutationResult<any, Error, SocialTokenBody, unknown>;
|
|
18
|
-
|
|
19
|
-
declare const useResetPassword: () => _tanstack_react_query.UseMutationResult<any, Error, ForgotPasswordBody, unknown>;
|
|
20
|
-
|
|
21
|
-
declare const useUpdatePassword: () => _tanstack_react_query.UseMutationResult<any, Error, updatePasswordBody, unknown>;
|
|
22
|
-
|
|
23
|
-
declare const useField: (props: any) => {
|
|
24
|
-
invisible: boolean;
|
|
25
|
-
required: boolean;
|
|
26
|
-
readonly: boolean;
|
|
27
|
-
nameField: string | null;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
declare const useGetCompanyInfo: () => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
|
|
31
|
-
|
|
32
|
-
declare const useGetCurrentCompany: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
33
|
-
|
|
34
|
-
declare const useChangeStatus: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
35
|
-
data: any;
|
|
36
|
-
}, unknown>;
|
|
37
|
-
|
|
38
|
-
declare const useDeleteComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
39
|
-
data: any;
|
|
40
|
-
}, unknown>;
|
|
41
|
-
|
|
42
|
-
declare const useGetComment: ({ data, queryKey }: {
|
|
43
|
-
data: any;
|
|
44
|
-
queryKey: any;
|
|
45
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
46
|
-
|
|
47
|
-
declare const useGetImage: ({ data, queryKey, src, }: {
|
|
48
|
-
data: any;
|
|
49
|
-
queryKey: any;
|
|
50
|
-
src: any;
|
|
51
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
52
|
-
|
|
53
|
-
declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
54
|
-
data: any;
|
|
55
|
-
}, unknown>;
|
|
56
|
-
|
|
57
|
-
declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
58
|
-
data: any;
|
|
59
|
-
}, unknown>;
|
|
60
|
-
|
|
61
|
-
declare const useExportExcel: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
62
|
-
model: string;
|
|
63
|
-
domain: any;
|
|
64
|
-
ids: any;
|
|
65
|
-
fields: any;
|
|
66
|
-
type: any;
|
|
67
|
-
importCompat: any;
|
|
68
|
-
context: any;
|
|
69
|
-
groupby: any;
|
|
70
|
-
}, unknown>;
|
|
71
|
-
|
|
72
|
-
declare const useGetFieldExport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
73
|
-
ids: any;
|
|
74
|
-
model: string;
|
|
75
|
-
isShow?: boolean;
|
|
76
|
-
parentField?: any;
|
|
77
|
-
fieldType?: any;
|
|
78
|
-
parentName?: any;
|
|
79
|
-
prefix?: any;
|
|
80
|
-
name?: any;
|
|
81
|
-
context: any;
|
|
82
|
-
importCompat?: any;
|
|
83
|
-
}, unknown>;
|
|
84
|
-
|
|
85
|
-
declare const useGetFileExcel: ({ model, context, }: {
|
|
86
|
-
model: string;
|
|
87
|
-
context: any;
|
|
88
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
89
|
-
|
|
90
|
-
declare const useParsePreview: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
91
|
-
id: any;
|
|
92
|
-
selectedSheet: any;
|
|
93
|
-
isHeader: boolean;
|
|
94
|
-
context: any;
|
|
95
|
-
}, unknown>;
|
|
96
|
-
|
|
97
|
-
declare const useUploadFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
98
|
-
formData: any;
|
|
99
|
-
}, unknown>;
|
|
100
|
-
|
|
101
|
-
declare const useUploadIdFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
102
|
-
formData: any;
|
|
103
|
-
}, unknown>;
|
|
104
|
-
|
|
105
|
-
declare const useExecuteImport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
106
|
-
fields: any;
|
|
107
|
-
columns: any;
|
|
108
|
-
idFile: any;
|
|
109
|
-
options: any;
|
|
110
|
-
dryrun: any;
|
|
111
|
-
context: any;
|
|
112
|
-
}, unknown>;
|
|
113
|
-
|
|
114
|
-
declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
115
|
-
ids: any;
|
|
116
|
-
model: string;
|
|
117
|
-
}, unknown>;
|
|
118
|
-
|
|
119
|
-
declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
120
|
-
|
|
121
|
-
declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
122
|
-
model?: string;
|
|
123
|
-
ids: any;
|
|
124
|
-
specification?: any;
|
|
125
|
-
context?: any;
|
|
126
|
-
}, unknown>;
|
|
127
|
-
|
|
128
|
-
declare const useGetFieldOnChange: ({ model }: {
|
|
129
|
-
model: string;
|
|
130
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
131
|
-
|
|
132
|
-
declare const useModel: () => {
|
|
133
|
-
initModel: (modelData: BaseModelInit) => BaseModel;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
declare const useOdooDataTransform: () => {
|
|
137
|
-
toDataJS: (data: Record<string, any>, viewData?: ViewData, model?: string) => Record<string, any>;
|
|
138
|
-
parseORM: (data: Record<string, any>) => Record<string, any>;
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
142
|
-
ids: any;
|
|
143
|
-
model: string;
|
|
144
|
-
specification: any;
|
|
145
|
-
context: any;
|
|
146
|
-
object: any;
|
|
147
|
-
fieldChange?: any;
|
|
148
|
-
}, unknown>;
|
|
149
|
-
|
|
150
|
-
declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
151
|
-
ids: any;
|
|
152
|
-
model: string;
|
|
153
|
-
data: any;
|
|
154
|
-
specification?: any;
|
|
155
|
-
context: any;
|
|
156
|
-
}, unknown>;
|
|
157
|
-
|
|
158
|
-
declare const useGetProfile: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
159
|
-
|
|
160
|
-
declare const useGetUser: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
161
|
-
id: any;
|
|
162
|
-
context: ContextApi;
|
|
163
|
-
}, unknown>;
|
|
164
|
-
|
|
165
|
-
type SwitchUserLocaleParams = {
|
|
166
|
-
data: {
|
|
167
|
-
id: number;
|
|
168
|
-
values: any;
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error, SwitchUserLocaleParams, unknown>;
|
|
172
|
-
|
|
173
|
-
declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
6
|
+
declare function useButton(): _tanstack_react_query.UseMutationResult<any, Error, {
|
|
174
7
|
model: string;
|
|
175
8
|
ids: Record<string, any>[] | any;
|
|
176
9
|
context: ContextApi;
|
|
177
10
|
method: any;
|
|
178
11
|
}, unknown>;
|
|
179
12
|
|
|
180
|
-
|
|
181
|
-
id: any;
|
|
182
|
-
model: string;
|
|
183
|
-
context: ContextApi;
|
|
184
|
-
}, unknown>;
|
|
185
|
-
|
|
186
|
-
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
187
|
-
|
|
188
|
-
interface UseGetMenuParams {
|
|
189
|
-
context: any;
|
|
190
|
-
enabled?: boolean;
|
|
191
|
-
queryKey?: any;
|
|
192
|
-
}
|
|
193
|
-
declare const useGetMenu: ({ context, enabled, queryKey }: UseGetMenuParams) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
194
|
-
|
|
195
|
-
declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
196
|
-
|
|
197
|
-
declare const useLoadAction: ({ idAction, context, }: {
|
|
198
|
-
idAction: any;
|
|
199
|
-
context: ContextApi;
|
|
200
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
201
|
-
|
|
202
|
-
declare const usePrint: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
203
|
-
id: number;
|
|
204
|
-
report: any;
|
|
205
|
-
db: any;
|
|
206
|
-
}, unknown>;
|
|
207
|
-
|
|
208
|
-
declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
209
|
-
model: string;
|
|
210
|
-
ids: Record<string, any>[] | any;
|
|
211
|
-
context: ContextApi;
|
|
212
|
-
}, unknown>;
|
|
213
|
-
|
|
214
|
-
declare const useRunAction: ({ idAction, context }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
215
|
-
|
|
216
|
-
export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useField, useForgotPassword, useGetAll, useGetComment, useGetCompanyInfo, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetImage, useGetListData, useGetMenu, useGetProfile, useGetProvider, useGetUser, useGetView, useIsValidToken, useLoadAction, useLoginCredential, useLoginSocial, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useResetPassword, useRunAction, useSave, useSendComment, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage };
|
|
13
|
+
export { useButton };
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,216 +1,13 @@
|
|
|
1
|
+
import './environment.js';
|
|
1
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { a as BaseModelInit, B as BaseModel } from './index-C_nK1Mii.js';
|
|
3
|
+
import { C as ContextApi } from './api-type-dNqOR_Yp.js';
|
|
4
|
+
import '@reduxjs/toolkit';
|
|
5
5
|
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
type ProviderPropsType = {
|
|
9
|
-
db: string;
|
|
10
|
-
};
|
|
11
|
-
declare const useGetProvider: () => _tanstack_react_query.UseMutationResult<any, Error, ProviderPropsType, unknown>;
|
|
12
|
-
|
|
13
|
-
declare const useIsValidToken: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
14
|
-
|
|
15
|
-
declare const useLoginCredential: () => _tanstack_react_query.UseMutationResult<any, Error, LoginCredentialBody, unknown>;
|
|
16
|
-
|
|
17
|
-
declare const useLoginSocial: () => _tanstack_react_query.UseMutationResult<any, Error, SocialTokenBody, unknown>;
|
|
18
|
-
|
|
19
|
-
declare const useResetPassword: () => _tanstack_react_query.UseMutationResult<any, Error, ForgotPasswordBody, unknown>;
|
|
20
|
-
|
|
21
|
-
declare const useUpdatePassword: () => _tanstack_react_query.UseMutationResult<any, Error, updatePasswordBody, unknown>;
|
|
22
|
-
|
|
23
|
-
declare const useField: (props: any) => {
|
|
24
|
-
invisible: boolean;
|
|
25
|
-
required: boolean;
|
|
26
|
-
readonly: boolean;
|
|
27
|
-
nameField: string | null;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
declare const useGetCompanyInfo: () => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
|
|
31
|
-
|
|
32
|
-
declare const useGetCurrentCompany: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
33
|
-
|
|
34
|
-
declare const useChangeStatus: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
35
|
-
data: any;
|
|
36
|
-
}, unknown>;
|
|
37
|
-
|
|
38
|
-
declare const useDeleteComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
39
|
-
data: any;
|
|
40
|
-
}, unknown>;
|
|
41
|
-
|
|
42
|
-
declare const useGetComment: ({ data, queryKey }: {
|
|
43
|
-
data: any;
|
|
44
|
-
queryKey: any;
|
|
45
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
46
|
-
|
|
47
|
-
declare const useGetImage: ({ data, queryKey, src, }: {
|
|
48
|
-
data: any;
|
|
49
|
-
queryKey: any;
|
|
50
|
-
src: any;
|
|
51
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
52
|
-
|
|
53
|
-
declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
54
|
-
data: any;
|
|
55
|
-
}, unknown>;
|
|
56
|
-
|
|
57
|
-
declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
58
|
-
data: any;
|
|
59
|
-
}, unknown>;
|
|
60
|
-
|
|
61
|
-
declare const useExportExcel: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
62
|
-
model: string;
|
|
63
|
-
domain: any;
|
|
64
|
-
ids: any;
|
|
65
|
-
fields: any;
|
|
66
|
-
type: any;
|
|
67
|
-
importCompat: any;
|
|
68
|
-
context: any;
|
|
69
|
-
groupby: any;
|
|
70
|
-
}, unknown>;
|
|
71
|
-
|
|
72
|
-
declare const useGetFieldExport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
73
|
-
ids: any;
|
|
74
|
-
model: string;
|
|
75
|
-
isShow?: boolean;
|
|
76
|
-
parentField?: any;
|
|
77
|
-
fieldType?: any;
|
|
78
|
-
parentName?: any;
|
|
79
|
-
prefix?: any;
|
|
80
|
-
name?: any;
|
|
81
|
-
context: any;
|
|
82
|
-
importCompat?: any;
|
|
83
|
-
}, unknown>;
|
|
84
|
-
|
|
85
|
-
declare const useGetFileExcel: ({ model, context, }: {
|
|
86
|
-
model: string;
|
|
87
|
-
context: any;
|
|
88
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
89
|
-
|
|
90
|
-
declare const useParsePreview: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
91
|
-
id: any;
|
|
92
|
-
selectedSheet: any;
|
|
93
|
-
isHeader: boolean;
|
|
94
|
-
context: any;
|
|
95
|
-
}, unknown>;
|
|
96
|
-
|
|
97
|
-
declare const useUploadFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
98
|
-
formData: any;
|
|
99
|
-
}, unknown>;
|
|
100
|
-
|
|
101
|
-
declare const useUploadIdFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
102
|
-
formData: any;
|
|
103
|
-
}, unknown>;
|
|
104
|
-
|
|
105
|
-
declare const useExecuteImport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
106
|
-
fields: any;
|
|
107
|
-
columns: any;
|
|
108
|
-
idFile: any;
|
|
109
|
-
options: any;
|
|
110
|
-
dryrun: any;
|
|
111
|
-
context: any;
|
|
112
|
-
}, unknown>;
|
|
113
|
-
|
|
114
|
-
declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
115
|
-
ids: any;
|
|
116
|
-
model: string;
|
|
117
|
-
}, unknown>;
|
|
118
|
-
|
|
119
|
-
declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
120
|
-
|
|
121
|
-
declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
122
|
-
model?: string;
|
|
123
|
-
ids: any;
|
|
124
|
-
specification?: any;
|
|
125
|
-
context?: any;
|
|
126
|
-
}, unknown>;
|
|
127
|
-
|
|
128
|
-
declare const useGetFieldOnChange: ({ model }: {
|
|
129
|
-
model: string;
|
|
130
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
131
|
-
|
|
132
|
-
declare const useModel: () => {
|
|
133
|
-
initModel: (modelData: BaseModelInit) => BaseModel;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
declare const useOdooDataTransform: () => {
|
|
137
|
-
toDataJS: (data: Record<string, any>, viewData?: ViewData, model?: string) => Record<string, any>;
|
|
138
|
-
parseORM: (data: Record<string, any>) => Record<string, any>;
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
142
|
-
ids: any;
|
|
143
|
-
model: string;
|
|
144
|
-
specification: any;
|
|
145
|
-
context: any;
|
|
146
|
-
object: any;
|
|
147
|
-
fieldChange?: any;
|
|
148
|
-
}, unknown>;
|
|
149
|
-
|
|
150
|
-
declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
151
|
-
ids: any;
|
|
152
|
-
model: string;
|
|
153
|
-
data: any;
|
|
154
|
-
specification?: any;
|
|
155
|
-
context: any;
|
|
156
|
-
}, unknown>;
|
|
157
|
-
|
|
158
|
-
declare const useGetProfile: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
159
|
-
|
|
160
|
-
declare const useGetUser: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
161
|
-
id: any;
|
|
162
|
-
context: ContextApi;
|
|
163
|
-
}, unknown>;
|
|
164
|
-
|
|
165
|
-
type SwitchUserLocaleParams = {
|
|
166
|
-
data: {
|
|
167
|
-
id: number;
|
|
168
|
-
values: any;
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error, SwitchUserLocaleParams, unknown>;
|
|
172
|
-
|
|
173
|
-
declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
6
|
+
declare function useButton(): _tanstack_react_query.UseMutationResult<any, Error, {
|
|
174
7
|
model: string;
|
|
175
8
|
ids: Record<string, any>[] | any;
|
|
176
9
|
context: ContextApi;
|
|
177
10
|
method: any;
|
|
178
11
|
}, unknown>;
|
|
179
12
|
|
|
180
|
-
|
|
181
|
-
id: any;
|
|
182
|
-
model: string;
|
|
183
|
-
context: ContextApi;
|
|
184
|
-
}, unknown>;
|
|
185
|
-
|
|
186
|
-
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
187
|
-
|
|
188
|
-
interface UseGetMenuParams {
|
|
189
|
-
context: any;
|
|
190
|
-
enabled?: boolean;
|
|
191
|
-
queryKey?: any;
|
|
192
|
-
}
|
|
193
|
-
declare const useGetMenu: ({ context, enabled, queryKey }: UseGetMenuParams) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
194
|
-
|
|
195
|
-
declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
196
|
-
|
|
197
|
-
declare const useLoadAction: ({ idAction, context, }: {
|
|
198
|
-
idAction: any;
|
|
199
|
-
context: ContextApi;
|
|
200
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
201
|
-
|
|
202
|
-
declare const usePrint: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
203
|
-
id: number;
|
|
204
|
-
report: any;
|
|
205
|
-
db: any;
|
|
206
|
-
}, unknown>;
|
|
207
|
-
|
|
208
|
-
declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
209
|
-
model: string;
|
|
210
|
-
ids: Record<string, any>[] | any;
|
|
211
|
-
context: ContextApi;
|
|
212
|
-
}, unknown>;
|
|
213
|
-
|
|
214
|
-
declare const useRunAction: ({ idAction, context }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
215
|
-
|
|
216
|
-
export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useField, useForgotPassword, useGetAll, useGetComment, useGetCompanyInfo, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetImage, useGetListData, useGetMenu, useGetProfile, useGetProvider, useGetUser, useGetView, useIsValidToken, useLoadAction, useLoginCredential, useLoginSocial, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useResetPassword, useRunAction, useSave, useSendComment, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage };
|
|
13
|
+
export { useButton };
|