@fctc/interface-logic 2.7.8 → 2.8.0
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 +7 -464
- package/dist/hooks.d.ts +7 -464
- package/dist/hooks.js +51 -1
- package/dist/hooks.mjs +50 -1
- package/dist/provider.d.mts +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +30 -1
- package/dist/provider.mjs +30 -1
- package/dist/services.d.mts +6 -0
- package/dist/services.d.ts +6 -0
- package/dist/services.js +30 -1
- package/dist/services.mjs +30 -1
- package/dist/use-manage-on-change-DALJEilG.d.ts +471 -0
- package/dist/use-manage-on-change-jhpd7MY8.d.mts +471 -0
- package/package.json +90 -90
package/dist/hooks.d.ts
CHANGED
|
@@ -1,471 +1,14 @@
|
|
|
1
|
+
export { u as useButton, a as useChangeStatus, al as useCreateEntity, aj as useCreateSession, b as useDelete, c as useDeleteComment, ao as useDeleteEntity, d as useDuplicateRecord, e as useExecuteImport, f as useExportExcel, g as useForgotPassword, h as useForgotPasswordSSO, i as useGet2FAMethods, af as useGetASession, a6 as useGetAccessByCode, j as useGetActionDetail, k as useGetAll, l as useGetCalendar, m as useGetComment, n as useGetCompanyInfo, o as useGetConversionRate, p as useGetCurrency, q as useGetCurrentCompany, r as useGetDetail, s as useGetFieldExport, t as useGetFieldOnChange, v as useGetFileExcel, w as useGetFormView, x as useGetGroups, y as useGetImage, am as useGetList, z as useGetListCompany, A as useGetListData, B as useGetListMyBankAccount, C as useGetMenu, ak as useGetPos, D as useGetPrintReport, F as useGetProGressBar, E as useGetProfile, G as useGetProvider, H as useGetResequence, I as useGetSelection, J as useGetUser, K as useGetView, a8 as useGrantAccess, ai as useHandleClosingSession, L as useIsValidToken, M as useLoadAction, ap as useLoadDataPosSession, N as useLoadMessage, O as useLoginCredential, P as useLoginSocial, a7 as useLogout, aq as useManageOnChange, ah as useManageSession, Q as useModel, R as useOdooDataTransform, S as useOnChangeForm, T as useParsePreview, U as usePrint, V as useRemoveRow, a9 as useRemoveTotpSetup, aa as useRequestSetupTotp, W as useResetPassword, X as useResetPasswordSSO, Y as useRunAction, Z as useSave, _ as useSendComment, ab as useSettingsWebRead2fa, $ as useSignInSSO, a0 as useSwitchLocale, ag as useUpdateClosedSession, an as useUpdateEntity, a1 as useUpdatePassword, ae as useUploadFile, a2 as useUploadFileExcel, a3 as useUploadIdFile, a4 as useUploadImage, ad as useValidateActionToken, a5 as useVerify2FA, ac as useVerifyTotp } from './use-manage-on-change-DALJEilG.js';
|
|
1
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { C as ContextApi } from './view-type-xxw9OeSR.js';
|
|
4
|
+
import './base-model-type-DD8uZnDP.js';
|
|
5
|
+
import './models.js';
|
|
5
6
|
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
declare const useForgotPasswordSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
9
|
-
email: string;
|
|
10
|
-
with_context: any;
|
|
11
|
-
method: string;
|
|
12
|
-
}, unknown>;
|
|
13
|
-
|
|
14
|
-
type ProviderPropsType = {
|
|
15
|
-
db: string;
|
|
16
|
-
};
|
|
17
|
-
declare const useGetProvider: () => _tanstack_react_query.UseMutationResult<any, Error, ProviderPropsType, unknown>;
|
|
18
|
-
|
|
19
|
-
declare const useIsValidToken: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
20
|
-
|
|
21
|
-
declare const useLoginCredential: () => _tanstack_react_query.UseMutationResult<any, Error, LoginCredentialBody, unknown>;
|
|
22
|
-
|
|
23
|
-
declare const useLoginSocial: () => _tanstack_react_query.UseMutationResult<any, Error, SocialTokenBody, unknown>;
|
|
24
|
-
|
|
25
|
-
declare const useResetPassword: () => _tanstack_react_query.UseMutationResult<any, Error, ForgotPasswordBody, unknown>;
|
|
26
|
-
|
|
27
|
-
declare const useResetPasswordSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
28
|
-
method: any;
|
|
29
|
-
password: string;
|
|
30
|
-
with_context: any;
|
|
31
|
-
}, unknown>;
|
|
32
|
-
|
|
33
|
-
declare const useUpdatePassword: () => _tanstack_react_query.UseMutationResult<any, Error, updatePasswordBody, unknown>;
|
|
34
|
-
|
|
35
|
-
declare const useLogout: () => _tanstack_react_query.UseMutationResult<any, Error, string | undefined, unknown>;
|
|
36
|
-
|
|
37
|
-
declare const useGetAccessByCode: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
38
|
-
code: string;
|
|
39
|
-
}, unknown>;
|
|
40
|
-
|
|
41
|
-
declare const useValidateActionToken: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
42
|
-
actionToken: string;
|
|
43
|
-
}, unknown>;
|
|
44
|
-
|
|
45
|
-
declare const useGetCompanyInfo: () => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
|
|
46
|
-
|
|
47
|
-
declare const useGetCurrentCompany: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
48
|
-
|
|
49
|
-
declare const useGetListCompany: (companyIDs?: number[]) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
50
|
-
|
|
51
|
-
declare const useExportExcel: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
52
|
-
model: string;
|
|
53
|
-
domain: any;
|
|
54
|
-
ids: any;
|
|
55
|
-
fields: any;
|
|
56
|
-
type: any;
|
|
57
|
-
importCompat: any;
|
|
58
|
-
context: any;
|
|
59
|
-
groupby: any;
|
|
60
|
-
}, unknown>;
|
|
61
|
-
|
|
62
|
-
declare const useGetFieldExport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
63
|
-
ids: any;
|
|
64
|
-
model: string;
|
|
65
|
-
isShow?: boolean;
|
|
66
|
-
parentField?: any;
|
|
67
|
-
fieldType?: any;
|
|
68
|
-
parentName?: any;
|
|
69
|
-
prefix?: any;
|
|
70
|
-
name?: any;
|
|
71
|
-
context: any;
|
|
72
|
-
importCompat?: any;
|
|
73
|
-
}, unknown>;
|
|
74
|
-
|
|
75
|
-
declare const useGetFileExcel: ({ model }: {
|
|
76
|
-
model: string;
|
|
77
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
78
|
-
|
|
79
|
-
declare const useParsePreview: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
80
|
-
id: any;
|
|
81
|
-
selectedSheet: any;
|
|
82
|
-
isHeader: boolean;
|
|
83
|
-
context: any;
|
|
84
|
-
}, unknown>;
|
|
85
|
-
|
|
86
|
-
declare const useUploadFileExcel: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
87
|
-
formData: any;
|
|
88
|
-
}, unknown>;
|
|
89
|
-
|
|
90
|
-
declare const useUploadIdFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
91
|
-
formData: any;
|
|
92
|
-
}, unknown>;
|
|
93
|
-
|
|
94
|
-
declare const useExecuteImport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
95
|
-
fields: any;
|
|
96
|
-
columns: any;
|
|
97
|
-
idFile: any;
|
|
98
|
-
options: any;
|
|
99
|
-
dryrun: any;
|
|
100
|
-
context: any;
|
|
101
|
-
}, unknown>;
|
|
102
|
-
|
|
103
|
-
declare const useChangeStatus: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
104
|
-
data: any;
|
|
105
|
-
}, unknown>;
|
|
106
|
-
|
|
107
|
-
declare const useDeleteComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
108
|
-
data: any;
|
|
109
|
-
}, unknown>;
|
|
110
|
-
|
|
111
|
-
declare const useGetComment: ({ data, queryKey }: {
|
|
112
|
-
data: any;
|
|
113
|
-
queryKey: any;
|
|
114
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
115
|
-
|
|
116
|
-
type TFormView = {
|
|
117
|
-
model: string;
|
|
118
|
-
id?: number | null;
|
|
119
|
-
context?: any;
|
|
120
|
-
};
|
|
121
|
-
declare const useGetFormView: ({ data, queryKey, enabled, }: {
|
|
122
|
-
data: TFormView;
|
|
123
|
-
queryKey?: any;
|
|
124
|
-
enabled?: any;
|
|
125
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
126
|
-
|
|
127
|
-
declare const useGetImage: ({ data, queryKey, src, }: {
|
|
128
|
-
data: any;
|
|
129
|
-
queryKey: any;
|
|
130
|
-
src: any;
|
|
131
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
132
|
-
|
|
133
|
-
declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
134
|
-
data: any;
|
|
135
|
-
}, unknown>;
|
|
136
|
-
|
|
137
|
-
declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
138
|
-
formData: any;
|
|
139
|
-
}, unknown>;
|
|
140
|
-
|
|
141
|
-
declare const useUploadFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
142
|
-
formData: any;
|
|
143
|
-
}, unknown>;
|
|
144
|
-
|
|
145
|
-
declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
146
|
-
ids: any;
|
|
147
|
-
model: string;
|
|
148
|
-
service?: string;
|
|
149
|
-
}, unknown>;
|
|
150
|
-
|
|
151
|
-
declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
152
|
-
|
|
153
|
-
declare const useGetConversionRate: () => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
154
|
-
|
|
155
|
-
declare const useGetCurrency: () => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
156
|
-
|
|
157
|
-
declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
158
|
-
model?: string;
|
|
159
|
-
ids: any;
|
|
160
|
-
specification?: any;
|
|
161
|
-
context?: any;
|
|
162
|
-
service?: string;
|
|
163
|
-
xNode?: string;
|
|
164
|
-
}, unknown>;
|
|
165
|
-
|
|
166
|
-
declare const useGetFieldOnChange: ({ model, service, xNode, }: {
|
|
167
|
-
model: string;
|
|
168
|
-
service?: string;
|
|
169
|
-
xNode?: string;
|
|
170
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
171
|
-
|
|
172
|
-
declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
|
|
173
|
-
domain: any;
|
|
174
|
-
spectification: any;
|
|
175
|
-
model: string;
|
|
176
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
177
|
-
|
|
178
|
-
declare const useModel: () => {
|
|
179
|
-
initModel: (modelData: BaseModelInit) => BaseModel;
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
declare const useOdooDataTransform: () => {
|
|
183
|
-
toDataJS: (data: Record<string, any>, viewData?: ViewData, model?: string) => {
|
|
184
|
-
[x: string]: any;
|
|
185
|
-
};
|
|
186
|
-
parseORM: (data: Record<string, any>) => {
|
|
187
|
-
[x: string]: any;
|
|
188
|
-
};
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
192
|
-
ids: any;
|
|
193
|
-
model: string;
|
|
194
|
-
specification: any;
|
|
195
|
-
context: any;
|
|
196
|
-
object: any;
|
|
197
|
-
fieldChange?: any;
|
|
198
|
-
service?: string;
|
|
199
|
-
xNode?: string;
|
|
200
|
-
}, unknown>;
|
|
201
|
-
|
|
202
|
-
declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
203
|
-
ids: any;
|
|
204
|
-
model: string;
|
|
205
|
-
data: any;
|
|
206
|
-
specification?: any;
|
|
207
|
-
context: any;
|
|
208
|
-
path?: string;
|
|
209
|
-
service?: string;
|
|
210
|
-
xNode?: string;
|
|
211
|
-
}, unknown>;
|
|
212
|
-
|
|
213
|
-
declare const useGetProfile: (path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
214
|
-
|
|
215
|
-
declare const useGetUser: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
216
|
-
id: any;
|
|
217
|
-
context: ContextApi;
|
|
218
|
-
}, unknown>;
|
|
219
|
-
|
|
220
|
-
type SwitchUserLocaleParams = {
|
|
221
|
-
data: {
|
|
222
|
-
id: number;
|
|
223
|
-
values: any;
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error, SwitchUserLocaleParams, unknown>;
|
|
227
|
-
|
|
228
|
-
declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
229
|
-
model: string;
|
|
230
|
-
ids: Record<string, any>[] | any;
|
|
231
|
-
context: ContextApi;
|
|
232
|
-
method: any;
|
|
233
|
-
service?: string;
|
|
234
|
-
xNode?: string;
|
|
235
|
-
}, unknown>;
|
|
236
|
-
|
|
237
|
-
declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
238
|
-
id: any;
|
|
239
|
-
model: string;
|
|
240
|
-
context: ContextApi;
|
|
241
|
-
service?: string;
|
|
242
|
-
xNode?: string;
|
|
243
|
-
}, unknown>;
|
|
244
|
-
|
|
245
|
-
declare const useGetActionDetail: ({ aid, context, enabled, id, model, queryKey, }: {
|
|
246
|
-
aid: number;
|
|
247
|
-
context: any;
|
|
248
|
-
enabled: boolean;
|
|
249
|
-
id?: number;
|
|
250
|
-
model?: string;
|
|
251
|
-
queryKey?: any;
|
|
252
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
253
|
-
|
|
254
|
-
declare const useGetCalendar: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
255
|
-
|
|
256
|
-
declare const useGetGroups: ({ model, width_context, }: {
|
|
257
|
-
model: string;
|
|
258
|
-
width_context: any;
|
|
259
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
260
|
-
|
|
261
|
-
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string, xNode?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
262
|
-
|
|
263
|
-
declare const useGetMenu: (context: any, specification: any, enabled?: boolean, domain?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
264
|
-
|
|
265
|
-
declare const useGetPrintReport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
266
|
-
id: number;
|
|
267
|
-
}, unknown>;
|
|
268
|
-
|
|
269
|
-
declare const useGetProGressBar: ({ field, color, model, width_context, }: {
|
|
270
|
-
field: any;
|
|
271
|
-
color: any;
|
|
272
|
-
model: string;
|
|
273
|
-
width_context: string;
|
|
274
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
275
|
-
|
|
276
|
-
declare const useGetSelection: ({ data, queryKey, enabled, service, xNode, }: {
|
|
277
|
-
data: GetSelectionType;
|
|
278
|
-
queryKey: any[];
|
|
279
|
-
enabled?: boolean;
|
|
280
|
-
service?: string;
|
|
281
|
-
xNode?: string;
|
|
282
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
283
|
-
|
|
284
|
-
type UseGetViewProps = {
|
|
285
|
-
viewParams: GetViewParams;
|
|
286
|
-
enabled?: boolean;
|
|
287
|
-
};
|
|
288
|
-
declare const useGetView: ({ viewParams, enabled }: UseGetViewProps) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
289
|
-
|
|
290
|
-
declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
291
|
-
idAction: any;
|
|
292
|
-
context: ContextApi;
|
|
293
|
-
service?: string;
|
|
294
|
-
xNode?: string;
|
|
295
|
-
}, unknown>;
|
|
296
|
-
|
|
297
|
-
declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
298
|
-
|
|
299
|
-
declare const usePrint: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
300
|
-
id: number;
|
|
301
|
-
report: any;
|
|
302
|
-
db: any;
|
|
303
|
-
}, unknown>;
|
|
304
|
-
|
|
305
|
-
declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
306
|
-
model: string;
|
|
307
|
-
ids: Record<string, any>[] | any;
|
|
308
|
-
context: ContextApi;
|
|
309
|
-
service?: string;
|
|
310
|
-
xNode?: string;
|
|
311
|
-
}, unknown>;
|
|
312
|
-
|
|
313
|
-
declare const useGetResequence: (model: string, resIds: any, context: any, offset: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
314
|
-
|
|
315
|
-
declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
316
|
-
idAction: any;
|
|
7
|
+
declare const useGenSerialNumber: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
8
|
+
kwargs: any;
|
|
317
9
|
context: ContextApi;
|
|
318
10
|
service?: string;
|
|
319
11
|
xNode?: string;
|
|
320
12
|
}, unknown>;
|
|
321
13
|
|
|
322
|
-
|
|
323
|
-
redirect_uri: string;
|
|
324
|
-
state: string;
|
|
325
|
-
client_id: string;
|
|
326
|
-
response_type: string;
|
|
327
|
-
path: string;
|
|
328
|
-
scope: string;
|
|
329
|
-
}, unknown>;
|
|
330
|
-
|
|
331
|
-
declare const useVerify2FA: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
332
|
-
method: string;
|
|
333
|
-
with_context: any;
|
|
334
|
-
code: string;
|
|
335
|
-
device: string;
|
|
336
|
-
location: string;
|
|
337
|
-
}, unknown>;
|
|
338
|
-
|
|
339
|
-
declare const useGet2FAMethods: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
340
|
-
method: string;
|
|
341
|
-
with_context: any;
|
|
342
|
-
}, unknown>;
|
|
343
|
-
|
|
344
|
-
declare const useGrantAccess: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
345
|
-
redirect_uri: string;
|
|
346
|
-
state: string;
|
|
347
|
-
client_id: string;
|
|
348
|
-
scopes: string[];
|
|
349
|
-
}, unknown>;
|
|
350
|
-
|
|
351
|
-
declare const useRemoveTotpSetup: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
352
|
-
method: string;
|
|
353
|
-
token: string;
|
|
354
|
-
}, unknown>;
|
|
355
|
-
|
|
356
|
-
declare const useRequestSetupTotp: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
357
|
-
method: string;
|
|
358
|
-
token: string;
|
|
359
|
-
}, unknown>;
|
|
360
|
-
|
|
361
|
-
declare const useSettingsWebRead2fa: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
362
|
-
method: string;
|
|
363
|
-
model: string;
|
|
364
|
-
kwargs: any;
|
|
365
|
-
token: string;
|
|
366
|
-
}, unknown>;
|
|
367
|
-
|
|
368
|
-
declare const useVerifyTotp: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
369
|
-
method: string;
|
|
370
|
-
action_token: string;
|
|
371
|
-
code: string;
|
|
372
|
-
}, unknown>;
|
|
373
|
-
|
|
374
|
-
declare const useGetASession: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
375
|
-
model: string;
|
|
376
|
-
args: [];
|
|
377
|
-
domain: [];
|
|
378
|
-
service: string;
|
|
379
|
-
xNode: string;
|
|
380
|
-
}, unknown>;
|
|
381
|
-
|
|
382
|
-
declare const useUpdateClosedSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
383
|
-
model: string;
|
|
384
|
-
domain: [];
|
|
385
|
-
values: {};
|
|
386
|
-
service: string;
|
|
387
|
-
xNode: string;
|
|
388
|
-
}, unknown>;
|
|
389
|
-
|
|
390
|
-
declare const useManageSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
391
|
-
model: string;
|
|
392
|
-
ids: any;
|
|
393
|
-
args: any;
|
|
394
|
-
kwargs: any;
|
|
395
|
-
service: string;
|
|
396
|
-
xNode: string;
|
|
397
|
-
method: string;
|
|
398
|
-
}, unknown>;
|
|
399
|
-
|
|
400
|
-
declare const useHandleClosingSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
401
|
-
model: string;
|
|
402
|
-
method: string;
|
|
403
|
-
ids: any;
|
|
404
|
-
kwargs: any;
|
|
405
|
-
service: string;
|
|
406
|
-
xNode: string;
|
|
407
|
-
}, unknown>;
|
|
408
|
-
|
|
409
|
-
declare const useCreateSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
410
|
-
model: string;
|
|
411
|
-
configId: number;
|
|
412
|
-
service: string;
|
|
413
|
-
xNode: string;
|
|
414
|
-
}, unknown>;
|
|
415
|
-
|
|
416
|
-
declare const useGetPos: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
417
|
-
model: string;
|
|
418
|
-
args: any;
|
|
419
|
-
domain: any;
|
|
420
|
-
service: string;
|
|
421
|
-
xNode: string;
|
|
422
|
-
}, unknown>;
|
|
423
|
-
|
|
424
|
-
declare const useCreateEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
425
|
-
model: string;
|
|
426
|
-
args: any;
|
|
427
|
-
service: string;
|
|
428
|
-
xNode: string;
|
|
429
|
-
}, unknown>;
|
|
430
|
-
|
|
431
|
-
declare const useGetList: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
432
|
-
model: string;
|
|
433
|
-
domain: any;
|
|
434
|
-
service: string;
|
|
435
|
-
xNode: string;
|
|
436
|
-
specification: any;
|
|
437
|
-
offset: number;
|
|
438
|
-
limit: number;
|
|
439
|
-
}, unknown>;
|
|
440
|
-
|
|
441
|
-
declare const useUpdateEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
442
|
-
model: string;
|
|
443
|
-
domain: any;
|
|
444
|
-
values: any;
|
|
445
|
-
service: string;
|
|
446
|
-
xNode: string;
|
|
447
|
-
}, unknown>;
|
|
448
|
-
|
|
449
|
-
declare const useDeleteEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
450
|
-
model: string;
|
|
451
|
-
ids: any;
|
|
452
|
-
service: string;
|
|
453
|
-
xNode: string;
|
|
454
|
-
}, unknown>;
|
|
455
|
-
|
|
456
|
-
declare const useLoadDataPosSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
457
|
-
model: string;
|
|
458
|
-
ids: any;
|
|
459
|
-
service: string;
|
|
460
|
-
xNode: string;
|
|
461
|
-
}, unknown>;
|
|
462
|
-
|
|
463
|
-
declare const useManageOnChange: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
464
|
-
model: string;
|
|
465
|
-
ids: any;
|
|
466
|
-
args: any;
|
|
467
|
-
service: string;
|
|
468
|
-
xNode: string;
|
|
469
|
-
}, unknown>;
|
|
470
|
-
|
|
471
|
-
export { useButton, useChangeStatus, useCreateEntity, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetPos, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useGrantAccess, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
|
|
14
|
+
export { useGenSerialNumber };
|
package/dist/hooks.js
CHANGED
|
@@ -42,6 +42,7 @@ __export(hooks_exports, {
|
|
|
42
42
|
useExportExcel: () => use_export_excel_default,
|
|
43
43
|
useForgotPassword: () => use_forgot_password_default,
|
|
44
44
|
useForgotPasswordSSO: () => use_forgotpassword_sso_default,
|
|
45
|
+
useGenSerialNumber: () => use_gen_serial_number_default,
|
|
45
46
|
useGet2FAMethods: () => uset_get_2FA_method_default,
|
|
46
47
|
useGetASession: () => use_get_a_session_default,
|
|
47
48
|
useGetAccessByCode: () => use_get_access_by_code_default,
|
|
@@ -3122,6 +3123,31 @@ function useActionService() {
|
|
|
3122
3123
|
},
|
|
3123
3124
|
[env]
|
|
3124
3125
|
);
|
|
3126
|
+
const generateSerialNumber = (0, import_react6.useCallback)(
|
|
3127
|
+
async ({
|
|
3128
|
+
kwargs,
|
|
3129
|
+
context,
|
|
3130
|
+
service,
|
|
3131
|
+
xNode
|
|
3132
|
+
}) => {
|
|
3133
|
+
const jsonData = {
|
|
3134
|
+
model: "stok.move",
|
|
3135
|
+
method: "action_generate_lot_line_vals",
|
|
3136
|
+
with_context: { ...context },
|
|
3137
|
+
kwargs
|
|
3138
|
+
};
|
|
3139
|
+
return env.requests.post(
|
|
3140
|
+
"/call" /* CALL_PATH */,
|
|
3141
|
+
jsonData,
|
|
3142
|
+
{
|
|
3143
|
+
headers: { "Content-Type": "application/json" },
|
|
3144
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3145
|
+
},
|
|
3146
|
+
service
|
|
3147
|
+
);
|
|
3148
|
+
},
|
|
3149
|
+
[env]
|
|
3150
|
+
);
|
|
3125
3151
|
return {
|
|
3126
3152
|
loadAction,
|
|
3127
3153
|
callButton,
|
|
@@ -3129,7 +3155,8 @@ function useActionService() {
|
|
|
3129
3155
|
duplicateRecord,
|
|
3130
3156
|
getPrintReportName,
|
|
3131
3157
|
print,
|
|
3132
|
-
runAction
|
|
3158
|
+
runAction,
|
|
3159
|
+
generateSerialNumber
|
|
3133
3160
|
};
|
|
3134
3161
|
}
|
|
3135
3162
|
|
|
@@ -6651,6 +6678,28 @@ var useManageOnChange = () => {
|
|
|
6651
6678
|
});
|
|
6652
6679
|
};
|
|
6653
6680
|
var use_manage_on_change_default = useManageOnChange;
|
|
6681
|
+
|
|
6682
|
+
// src/hooks/view/use-gen-serial-number.ts
|
|
6683
|
+
var import_react_query82 = require("@tanstack/react-query");
|
|
6684
|
+
var useGenSerialNumber = () => {
|
|
6685
|
+
const { generateSerialNumber } = useActionService();
|
|
6686
|
+
return (0, import_react_query82.useMutation)({
|
|
6687
|
+
mutationFn: ({
|
|
6688
|
+
kwargs,
|
|
6689
|
+
context,
|
|
6690
|
+
service,
|
|
6691
|
+
xNode
|
|
6692
|
+
}) => {
|
|
6693
|
+
return generateSerialNumber({
|
|
6694
|
+
kwargs,
|
|
6695
|
+
context,
|
|
6696
|
+
service,
|
|
6697
|
+
xNode
|
|
6698
|
+
});
|
|
6699
|
+
}
|
|
6700
|
+
});
|
|
6701
|
+
};
|
|
6702
|
+
var use_gen_serial_number_default = useGenSerialNumber;
|
|
6654
6703
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6655
6704
|
0 && (module.exports = {
|
|
6656
6705
|
useButton,
|
|
@@ -6665,6 +6714,7 @@ var use_manage_on_change_default = useManageOnChange;
|
|
|
6665
6714
|
useExportExcel,
|
|
6666
6715
|
useForgotPassword,
|
|
6667
6716
|
useForgotPasswordSSO,
|
|
6717
|
+
useGenSerialNumber,
|
|
6668
6718
|
useGet2FAMethods,
|
|
6669
6719
|
useGetASession,
|
|
6670
6720
|
useGetAccessByCode,
|
package/dist/hooks.mjs
CHANGED
|
@@ -3006,6 +3006,31 @@ function useActionService() {
|
|
|
3006
3006
|
},
|
|
3007
3007
|
[env]
|
|
3008
3008
|
);
|
|
3009
|
+
const generateSerialNumber = useCallback2(
|
|
3010
|
+
async ({
|
|
3011
|
+
kwargs,
|
|
3012
|
+
context,
|
|
3013
|
+
service,
|
|
3014
|
+
xNode
|
|
3015
|
+
}) => {
|
|
3016
|
+
const jsonData = {
|
|
3017
|
+
model: "stok.move",
|
|
3018
|
+
method: "action_generate_lot_line_vals",
|
|
3019
|
+
with_context: { ...context },
|
|
3020
|
+
kwargs
|
|
3021
|
+
};
|
|
3022
|
+
return env.requests.post(
|
|
3023
|
+
"/call" /* CALL_PATH */,
|
|
3024
|
+
jsonData,
|
|
3025
|
+
{
|
|
3026
|
+
headers: { "Content-Type": "application/json" },
|
|
3027
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3028
|
+
},
|
|
3029
|
+
service
|
|
3030
|
+
);
|
|
3031
|
+
},
|
|
3032
|
+
[env]
|
|
3033
|
+
);
|
|
3009
3034
|
return {
|
|
3010
3035
|
loadAction,
|
|
3011
3036
|
callButton,
|
|
@@ -3013,7 +3038,8 @@ function useActionService() {
|
|
|
3013
3038
|
duplicateRecord,
|
|
3014
3039
|
getPrintReportName,
|
|
3015
3040
|
print,
|
|
3016
|
-
runAction
|
|
3041
|
+
runAction,
|
|
3042
|
+
generateSerialNumber
|
|
3017
3043
|
};
|
|
3018
3044
|
}
|
|
3019
3045
|
|
|
@@ -6535,6 +6561,28 @@ var useManageOnChange = () => {
|
|
|
6535
6561
|
});
|
|
6536
6562
|
};
|
|
6537
6563
|
var use_manage_on_change_default = useManageOnChange;
|
|
6564
|
+
|
|
6565
|
+
// src/hooks/view/use-gen-serial-number.ts
|
|
6566
|
+
import { useMutation as useMutation60 } from "@tanstack/react-query";
|
|
6567
|
+
var useGenSerialNumber = () => {
|
|
6568
|
+
const { generateSerialNumber } = useActionService();
|
|
6569
|
+
return useMutation60({
|
|
6570
|
+
mutationFn: ({
|
|
6571
|
+
kwargs,
|
|
6572
|
+
context,
|
|
6573
|
+
service,
|
|
6574
|
+
xNode
|
|
6575
|
+
}) => {
|
|
6576
|
+
return generateSerialNumber({
|
|
6577
|
+
kwargs,
|
|
6578
|
+
context,
|
|
6579
|
+
service,
|
|
6580
|
+
xNode
|
|
6581
|
+
});
|
|
6582
|
+
}
|
|
6583
|
+
});
|
|
6584
|
+
};
|
|
6585
|
+
var use_gen_serial_number_default = useGenSerialNumber;
|
|
6538
6586
|
export {
|
|
6539
6587
|
use_button_default as useButton,
|
|
6540
6588
|
use_change_status_default as useChangeStatus,
|
|
@@ -6548,6 +6596,7 @@ export {
|
|
|
6548
6596
|
use_export_excel_default as useExportExcel,
|
|
6549
6597
|
use_forgot_password_default as useForgotPassword,
|
|
6550
6598
|
use_forgotpassword_sso_default as useForgotPasswordSSO,
|
|
6599
|
+
use_gen_serial_number_default as useGenSerialNumber,
|
|
6551
6600
|
uset_get_2FA_method_default as useGet2FAMethods,
|
|
6552
6601
|
use_get_a_session_default as useGetASession,
|
|
6553
6602
|
use_get_access_by_code_default as useGetAccessByCode,
|
package/dist/provider.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-ARp_lhTD.mjs';
|
|
4
|
-
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange } from './
|
|
4
|
+
import { g as useForgotPassword, h as useForgotPasswordSSO, G as useGetProvider, L as useIsValidToken, O as useLoginCredential, P as useLoginSocial, W as useResetPassword, X as useResetPasswordSSO, a1 as useUpdatePassword, a7 as useLogout, a6 as useGetAccessByCode, ad as useValidateActionToken, n as useGetCompanyInfo, q as useGetCurrentCompany, z as useGetListCompany, e as useExecuteImport, f as useExportExcel, s as useGetFieldExport, v as useGetFileExcel, T as useParsePreview, a2 as useUploadFileExcel, a3 as useUploadIdFile, a as useChangeStatus, c as useDeleteComment, m as useGetComment, w as useGetFormView, y as useGetImage, _ as useSendComment, a4 as useUploadImage, b as useDelete, k as useGetAll, o as useGetConversionRate, p as useGetCurrency, r as useGetDetail, t as useGetFieldOnChange, B as useGetListMyBankAccount, Q as useModel, R as useOdooDataTransform, S as useOnChangeForm, Z as useSave, E as useGetProfile, J as useGetUser, a0 as useSwitchLocale, u as useButton, d as useDuplicateRecord, i as useGet2FAMethods, j as useGetActionDetail, l as useGetCalendar, x as useGetGroups, A as useGetListData, C as useGetMenu, D as useGetPrintReport, F as useGetProGressBar, H as useGetResequence, I as useGetSelection, K as useGetView, M as useLoadAction, N as useLoadMessage, U as usePrint, V as useRemoveRow, Y as useRunAction, $ as useSignInSSO, a5 as useVerify2FA, a8 as useGrantAccess, a9 as useRemoveTotpSetup, aa as useRequestSetupTotp, ab as useSettingsWebRead2fa, ac as useVerifyTotp, ae as useUploadFile, al as useCreateEntity, af as useGetASession, aj as useCreateSession, ao as useDeleteEntity, am as useGetList, ak as useGetPos, ai as useHandleClosingSession, ah as useManageSession, ag as useUpdateClosedSession, an as useUpdateEntity, ap as useLoadDataPosSession, aq as useManageOnChange } from './use-manage-on-change-jhpd7MY8.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-xxw9OeSR.mjs';
|
|
7
7
|
import './base-model-type-DD8uZnDP.mjs';
|
package/dist/provider.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-ARp_lhTD.js';
|
|
4
|
-
import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange } from './
|
|
4
|
+
import { g as useForgotPassword, h as useForgotPasswordSSO, G as useGetProvider, L as useIsValidToken, O as useLoginCredential, P as useLoginSocial, W as useResetPassword, X as useResetPasswordSSO, a1 as useUpdatePassword, a7 as useLogout, a6 as useGetAccessByCode, ad as useValidateActionToken, n as useGetCompanyInfo, q as useGetCurrentCompany, z as useGetListCompany, e as useExecuteImport, f as useExportExcel, s as useGetFieldExport, v as useGetFileExcel, T as useParsePreview, a2 as useUploadFileExcel, a3 as useUploadIdFile, a as useChangeStatus, c as useDeleteComment, m as useGetComment, w as useGetFormView, y as useGetImage, _ as useSendComment, a4 as useUploadImage, b as useDelete, k as useGetAll, o as useGetConversionRate, p as useGetCurrency, r as useGetDetail, t as useGetFieldOnChange, B as useGetListMyBankAccount, Q as useModel, R as useOdooDataTransform, S as useOnChangeForm, Z as useSave, E as useGetProfile, J as useGetUser, a0 as useSwitchLocale, u as useButton, d as useDuplicateRecord, i as useGet2FAMethods, j as useGetActionDetail, l as useGetCalendar, x as useGetGroups, A as useGetListData, C as useGetMenu, D as useGetPrintReport, F as useGetProGressBar, H as useGetResequence, I as useGetSelection, K as useGetView, M as useLoadAction, N as useLoadMessage, U as usePrint, V as useRemoveRow, Y as useRunAction, $ as useSignInSSO, a5 as useVerify2FA, a8 as useGrantAccess, a9 as useRemoveTotpSetup, aa as useRequestSetupTotp, ab as useSettingsWebRead2fa, ac as useVerifyTotp, ae as useUploadFile, al as useCreateEntity, af as useGetASession, aj as useCreateSession, ao as useDeleteEntity, am as useGetList, ak as useGetPos, ai as useHandleClosingSession, ah as useManageSession, ag as useUpdateClosedSession, an as useUpdateEntity, ap as useLoadDataPosSession, aq as useManageOnChange } from './use-manage-on-change-DALJEilG.js';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-xxw9OeSR.js';
|
|
7
7
|
import './base-model-type-DD8uZnDP.js';
|