@fctc/interface-logic 3.3.1 → 3.3.3
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 +597 -5
- package/dist/hooks.d.ts +597 -5
- package/dist/hooks.js +32 -12
- package/dist/hooks.mjs +32 -12
- package/dist/provider.d.mts +3 -1
- package/dist/provider.d.ts +3 -1
- package/dist/provider.js +71 -13
- package/dist/provider.mjs +71 -13
- package/dist/services.d.mts +6 -2
- package/dist/services.d.ts +6 -2
- package/dist/services.js +32 -12
- package/dist/services.mjs +32 -12
- package/package.json +1 -1
- package/dist/use-update-order-status-CSc8DlPR.d.mts +0 -599
- package/dist/use-update-order-status-CwYVNouf.d.ts +0 -599
package/dist/hooks.d.ts
CHANGED
|
@@ -1,8 +1,177 @@
|
|
|
1
|
-
export { au as useAddEntity, u as useButton, aD as useChangeOrderPreparaionState, a as useChangeStatus, av as useCheckPayment, al as useCreateEntity, ay as useCreatePosConfig, 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, ar as useGenSerialNumber, 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, as as useGetOrderLine, ak as useGetPos, aC as useGetPreparationDisplayData, D as useGetPrintReport, F as useGetProGressBar, at as useGetProductImage, E as useGetProfile, G as useGetProvider, H as useGetResequence, I as useGetSelection, aA as useGetTenantMapping, aB as useGetToken, J as useGetUser, K as useGetView, a8 as useGrantAccess, aw as useHandleCloseSession, ax as useHandleClosingDetailSession, 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, az as useSearchJournal, _ as useSendComment, ab as useSettingsWebRead2fa, $ as useSignInSSO, a0 as useSwitchLocale, ag as useUpdateClosedSession, an as useUpdateEntity, aE as useUpdateOrderStatus, 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-update-order-status-CwYVNouf.js';
|
|
2
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
|
-
import { T as TThreadData } from './view-type-LCI2KPYD.js';
|
|
4
|
-
import './base-model-type-DD8uZnDP.js';
|
|
5
|
-
import './models.js';
|
|
2
|
+
import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, T as TThreadData, V as ViewData, C as ContextApi, c as GetSelectionType, f as GetViewParams } from './view-type-LCI2KPYD.js';
|
|
3
|
+
import { B as BaseModelInit } from './base-model-type-DD8uZnDP.js';
|
|
4
|
+
import { BaseModel } from './models.js';
|
|
5
|
+
|
|
6
|
+
declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
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 useGetTenantMapping: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
46
|
+
shortName: string;
|
|
47
|
+
service: string;
|
|
48
|
+
}, unknown>;
|
|
49
|
+
|
|
50
|
+
declare const useGetToken: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
51
|
+
phone: string;
|
|
52
|
+
name: string;
|
|
53
|
+
service: string;
|
|
54
|
+
xNode: string;
|
|
55
|
+
}, unknown>;
|
|
56
|
+
|
|
57
|
+
declare const useGetCompanyInfo: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
58
|
+
service?: string;
|
|
59
|
+
id: number;
|
|
60
|
+
}, unknown>;
|
|
61
|
+
|
|
62
|
+
declare const useGetCurrentCompany: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
63
|
+
service?: string;
|
|
64
|
+
}, unknown>;
|
|
65
|
+
|
|
66
|
+
declare const useGetListCompany: (companyIDs?: number[]) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
67
|
+
|
|
68
|
+
declare const useExportExcel: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
69
|
+
model: string;
|
|
70
|
+
domain: any;
|
|
71
|
+
ids: any;
|
|
72
|
+
fields: any;
|
|
73
|
+
type: any;
|
|
74
|
+
importCompat: any;
|
|
75
|
+
context: any;
|
|
76
|
+
groupby: any;
|
|
77
|
+
service?: string;
|
|
78
|
+
xNode?: string;
|
|
79
|
+
}, unknown>;
|
|
80
|
+
|
|
81
|
+
declare const useGetFieldExport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
82
|
+
ids: any;
|
|
83
|
+
model: string;
|
|
84
|
+
isShow?: boolean;
|
|
85
|
+
parentField?: any;
|
|
86
|
+
fieldType?: any;
|
|
87
|
+
parentName?: any;
|
|
88
|
+
prefix?: any;
|
|
89
|
+
name?: any;
|
|
90
|
+
context: any;
|
|
91
|
+
importCompat?: any;
|
|
92
|
+
service?: string;
|
|
93
|
+
xNode?: string;
|
|
94
|
+
}, unknown>;
|
|
95
|
+
|
|
96
|
+
declare const useGetFileExcel: ({ model, service, xNode, }: {
|
|
97
|
+
model: string;
|
|
98
|
+
service?: string;
|
|
99
|
+
xNode?: string;
|
|
100
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
101
|
+
|
|
102
|
+
declare const useParsePreview: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
103
|
+
id: any;
|
|
104
|
+
selectedSheet: any;
|
|
105
|
+
isHeader: boolean;
|
|
106
|
+
context: any;
|
|
107
|
+
service?: string;
|
|
108
|
+
xNode?: string;
|
|
109
|
+
}, unknown>;
|
|
110
|
+
|
|
111
|
+
declare const useUploadFileExcel: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
112
|
+
formData: any;
|
|
113
|
+
service?: string;
|
|
114
|
+
xNode?: string;
|
|
115
|
+
}, unknown>;
|
|
116
|
+
|
|
117
|
+
declare const useUploadIdFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
118
|
+
formData: any;
|
|
119
|
+
service?: string;
|
|
120
|
+
xNode?: string;
|
|
121
|
+
}, unknown>;
|
|
122
|
+
|
|
123
|
+
declare const useExecuteImport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
124
|
+
fields: any;
|
|
125
|
+
columns: any;
|
|
126
|
+
idFile: any;
|
|
127
|
+
options: any;
|
|
128
|
+
dryrun: any;
|
|
129
|
+
context: any;
|
|
130
|
+
service?: string;
|
|
131
|
+
xNode?: string;
|
|
132
|
+
}, unknown>;
|
|
133
|
+
|
|
134
|
+
declare const useChangeStatus: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
135
|
+
data: any;
|
|
136
|
+
}, unknown>;
|
|
137
|
+
|
|
138
|
+
declare const useDeleteComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
139
|
+
data: any;
|
|
140
|
+
}, unknown>;
|
|
141
|
+
|
|
142
|
+
declare const useGetComment: ({ data, queryKey }: {
|
|
143
|
+
data: any;
|
|
144
|
+
queryKey: any;
|
|
145
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
146
|
+
|
|
147
|
+
type TFormView = {
|
|
148
|
+
model: string;
|
|
149
|
+
id?: number | null;
|
|
150
|
+
context?: any;
|
|
151
|
+
};
|
|
152
|
+
declare const useGetFormView: ({ data, queryKey, enabled, }: {
|
|
153
|
+
data: TFormView;
|
|
154
|
+
queryKey?: any;
|
|
155
|
+
enabled?: any;
|
|
156
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
157
|
+
|
|
158
|
+
declare const useGetImage: ({ data, queryKey, src, }: {
|
|
159
|
+
data: any;
|
|
160
|
+
queryKey: any;
|
|
161
|
+
src: any;
|
|
162
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
163
|
+
|
|
164
|
+
declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
165
|
+
data: any;
|
|
166
|
+
}, unknown>;
|
|
167
|
+
|
|
168
|
+
declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
169
|
+
formData: any;
|
|
170
|
+
}, unknown>;
|
|
171
|
+
|
|
172
|
+
declare const useUploadFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
173
|
+
formData: any;
|
|
174
|
+
}, unknown>;
|
|
6
175
|
|
|
7
176
|
declare const useGetThreadData: ({ data, queryKey, enabled, }: {
|
|
8
177
|
data: TThreadData;
|
|
@@ -16,4 +185,427 @@ declare const useGetThreadMessages: ({ data, queryKey, enabled, }: {
|
|
|
16
185
|
enabled?: boolean;
|
|
17
186
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
18
187
|
|
|
19
|
-
|
|
188
|
+
declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
189
|
+
ids: any;
|
|
190
|
+
model: string;
|
|
191
|
+
service?: string;
|
|
192
|
+
}, unknown>;
|
|
193
|
+
|
|
194
|
+
declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
195
|
+
|
|
196
|
+
declare const useGetConversionRate: () => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
197
|
+
|
|
198
|
+
declare const useGetCurrency: () => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
199
|
+
|
|
200
|
+
declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
201
|
+
model?: string;
|
|
202
|
+
ids: any;
|
|
203
|
+
specification?: any;
|
|
204
|
+
context?: any;
|
|
205
|
+
service?: string;
|
|
206
|
+
xNode?: string;
|
|
207
|
+
}, unknown>;
|
|
208
|
+
|
|
209
|
+
declare const useGetFieldOnChange: ({ model, service, xNode, }: {
|
|
210
|
+
model: string;
|
|
211
|
+
service?: string;
|
|
212
|
+
xNode?: string;
|
|
213
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
214
|
+
|
|
215
|
+
declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
|
|
216
|
+
domain: any;
|
|
217
|
+
spectification: any;
|
|
218
|
+
model: string;
|
|
219
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
220
|
+
|
|
221
|
+
declare const useModel: () => {
|
|
222
|
+
initModel: (modelData: BaseModelInit) => BaseModel;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
declare const useOdooDataTransform: () => {
|
|
226
|
+
toDataJS: (data: Record<string, any>, viewData?: ViewData, model?: string) => {
|
|
227
|
+
[x: string]: any;
|
|
228
|
+
};
|
|
229
|
+
parseORM: (data: Record<string, any>) => {
|
|
230
|
+
[x: string]: any;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
235
|
+
ids: any;
|
|
236
|
+
model: string;
|
|
237
|
+
specification: any;
|
|
238
|
+
context: any;
|
|
239
|
+
object: any;
|
|
240
|
+
fieldChange?: any;
|
|
241
|
+
service?: string;
|
|
242
|
+
xNode?: string;
|
|
243
|
+
}, unknown>;
|
|
244
|
+
|
|
245
|
+
declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
246
|
+
ids: any;
|
|
247
|
+
model: string;
|
|
248
|
+
data: any;
|
|
249
|
+
specification?: any;
|
|
250
|
+
context: any;
|
|
251
|
+
path?: string;
|
|
252
|
+
service?: string;
|
|
253
|
+
xNode?: string;
|
|
254
|
+
}, unknown>;
|
|
255
|
+
|
|
256
|
+
declare const useGetProfile: (service?: string, path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
257
|
+
|
|
258
|
+
declare const useGetUser: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
259
|
+
id: any;
|
|
260
|
+
context: ContextApi;
|
|
261
|
+
}, unknown>;
|
|
262
|
+
|
|
263
|
+
type SwitchUserLocaleParams = {
|
|
264
|
+
data: {
|
|
265
|
+
id: number;
|
|
266
|
+
values: any;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error, SwitchUserLocaleParams, unknown>;
|
|
270
|
+
|
|
271
|
+
declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
272
|
+
model: string;
|
|
273
|
+
ids: Record<string, any>[] | any;
|
|
274
|
+
context: ContextApi;
|
|
275
|
+
method: any;
|
|
276
|
+
service?: string;
|
|
277
|
+
xNode?: string;
|
|
278
|
+
}, unknown>;
|
|
279
|
+
|
|
280
|
+
declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
281
|
+
id: any;
|
|
282
|
+
model: string;
|
|
283
|
+
context: ContextApi;
|
|
284
|
+
service?: string;
|
|
285
|
+
xNode?: string;
|
|
286
|
+
}, unknown>;
|
|
287
|
+
|
|
288
|
+
declare const useGetActionDetail: ({ aid, context, enabled, id, model, queryKey, }: {
|
|
289
|
+
aid: number;
|
|
290
|
+
context: any;
|
|
291
|
+
enabled: boolean;
|
|
292
|
+
id?: number;
|
|
293
|
+
model?: string;
|
|
294
|
+
queryKey?: any;
|
|
295
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
296
|
+
|
|
297
|
+
declare const useGetCalendar: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
298
|
+
|
|
299
|
+
declare const useGetGroups: ({ model, width_context, }: {
|
|
300
|
+
model: string;
|
|
301
|
+
width_context: any;
|
|
302
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
303
|
+
|
|
304
|
+
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any, service?: string, xNode?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
305
|
+
|
|
306
|
+
declare const useGetMenu: (context: any, specification: any, enabled?: boolean, domain?: any, service?: string) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
307
|
+
|
|
308
|
+
declare const useGetPrintReport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
309
|
+
id: number;
|
|
310
|
+
}, unknown>;
|
|
311
|
+
|
|
312
|
+
declare const useGetProGressBar: ({ field, color, model, width_context, }: {
|
|
313
|
+
field: any;
|
|
314
|
+
color: any;
|
|
315
|
+
model: string;
|
|
316
|
+
width_context: string;
|
|
317
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
318
|
+
|
|
319
|
+
declare const useGetSelection: ({ data, queryKey, enabled, service, xNode, }: {
|
|
320
|
+
data: GetSelectionType;
|
|
321
|
+
queryKey: any[];
|
|
322
|
+
enabled?: boolean;
|
|
323
|
+
service?: string;
|
|
324
|
+
xNode?: string;
|
|
325
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
326
|
+
|
|
327
|
+
type UseGetViewProps = {
|
|
328
|
+
viewParams: GetViewParams;
|
|
329
|
+
enabled?: boolean;
|
|
330
|
+
};
|
|
331
|
+
declare const useGetView: ({ viewParams, enabled }: UseGetViewProps) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
332
|
+
|
|
333
|
+
declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
334
|
+
idAction: any;
|
|
335
|
+
context: ContextApi;
|
|
336
|
+
service?: string;
|
|
337
|
+
xNode?: string;
|
|
338
|
+
}, unknown>;
|
|
339
|
+
|
|
340
|
+
declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
341
|
+
|
|
342
|
+
declare const usePrint: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
343
|
+
id: number;
|
|
344
|
+
report: any;
|
|
345
|
+
db: any;
|
|
346
|
+
}, unknown>;
|
|
347
|
+
|
|
348
|
+
declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
349
|
+
model: string;
|
|
350
|
+
ids: Record<string, any>[] | any;
|
|
351
|
+
context: ContextApi;
|
|
352
|
+
service?: string;
|
|
353
|
+
xNode?: string;
|
|
354
|
+
}, unknown>;
|
|
355
|
+
|
|
356
|
+
declare const useGetResequence: (model: string, resIds: any, context: any, offset: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
357
|
+
|
|
358
|
+
declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
359
|
+
idAction: any;
|
|
360
|
+
context: ContextApi;
|
|
361
|
+
service?: string;
|
|
362
|
+
xNode?: string;
|
|
363
|
+
}, unknown>;
|
|
364
|
+
|
|
365
|
+
declare const useSignInSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
366
|
+
redirect_uri: string;
|
|
367
|
+
state: string;
|
|
368
|
+
client_id: string;
|
|
369
|
+
response_type: string;
|
|
370
|
+
path: string;
|
|
371
|
+
scope: string;
|
|
372
|
+
}, unknown>;
|
|
373
|
+
|
|
374
|
+
declare const useVerify2FA: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
375
|
+
method: string;
|
|
376
|
+
with_context: any;
|
|
377
|
+
code: string;
|
|
378
|
+
device: string;
|
|
379
|
+
location: string;
|
|
380
|
+
}, unknown>;
|
|
381
|
+
|
|
382
|
+
declare const useGet2FAMethods: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
383
|
+
method: string;
|
|
384
|
+
with_context: any;
|
|
385
|
+
}, unknown>;
|
|
386
|
+
|
|
387
|
+
declare const useGrantAccess: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
388
|
+
redirect_uri: string;
|
|
389
|
+
state: string;
|
|
390
|
+
client_id: string;
|
|
391
|
+
scopes: string[];
|
|
392
|
+
}, unknown>;
|
|
393
|
+
|
|
394
|
+
declare const useRemoveTotpSetup: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
395
|
+
method: string;
|
|
396
|
+
token: string;
|
|
397
|
+
}, unknown>;
|
|
398
|
+
|
|
399
|
+
declare const useRequestSetupTotp: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
400
|
+
method: string;
|
|
401
|
+
token: string;
|
|
402
|
+
}, unknown>;
|
|
403
|
+
|
|
404
|
+
declare const useSettingsWebRead2fa: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
405
|
+
method: string;
|
|
406
|
+
model: string;
|
|
407
|
+
kwargs: any;
|
|
408
|
+
token: string;
|
|
409
|
+
}, unknown>;
|
|
410
|
+
|
|
411
|
+
declare const useVerifyTotp: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
412
|
+
method: string;
|
|
413
|
+
action_token: string;
|
|
414
|
+
code: string;
|
|
415
|
+
}, unknown>;
|
|
416
|
+
|
|
417
|
+
declare const useGetASession: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
418
|
+
model: string;
|
|
419
|
+
args: [];
|
|
420
|
+
domain: [];
|
|
421
|
+
service?: string;
|
|
422
|
+
xNode?: string;
|
|
423
|
+
}, unknown>;
|
|
424
|
+
|
|
425
|
+
declare const useUpdateClosedSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
426
|
+
model: string;
|
|
427
|
+
domain: [];
|
|
428
|
+
values: {};
|
|
429
|
+
service?: string;
|
|
430
|
+
xNode?: string;
|
|
431
|
+
}, unknown>;
|
|
432
|
+
|
|
433
|
+
declare const useManageSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
434
|
+
model: string;
|
|
435
|
+
ids: any;
|
|
436
|
+
args: any;
|
|
437
|
+
kwargs: any;
|
|
438
|
+
service?: string;
|
|
439
|
+
xNode?: string;
|
|
440
|
+
method: string;
|
|
441
|
+
}, unknown>;
|
|
442
|
+
|
|
443
|
+
declare const useHandleClosingSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
444
|
+
model: string;
|
|
445
|
+
method: string;
|
|
446
|
+
ids: any;
|
|
447
|
+
kwargs: any;
|
|
448
|
+
service?: string;
|
|
449
|
+
xNode?: string;
|
|
450
|
+
}, unknown>;
|
|
451
|
+
|
|
452
|
+
declare const useCreateSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
453
|
+
model: string;
|
|
454
|
+
configId: number;
|
|
455
|
+
service?: string;
|
|
456
|
+
xNode?: string;
|
|
457
|
+
}, unknown>;
|
|
458
|
+
|
|
459
|
+
declare const useGetPos: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
460
|
+
model: string;
|
|
461
|
+
args: any;
|
|
462
|
+
domain: any;
|
|
463
|
+
service?: string;
|
|
464
|
+
xNode?: string;
|
|
465
|
+
}, unknown>;
|
|
466
|
+
|
|
467
|
+
declare const useCreateEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
468
|
+
model: string;
|
|
469
|
+
args: any;
|
|
470
|
+
service?: string;
|
|
471
|
+
xNode?: string;
|
|
472
|
+
}, unknown>;
|
|
473
|
+
|
|
474
|
+
declare const useGetList: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
475
|
+
model: string;
|
|
476
|
+
domain: any;
|
|
477
|
+
service?: string;
|
|
478
|
+
xNode?: string;
|
|
479
|
+
specification: any;
|
|
480
|
+
offset: number;
|
|
481
|
+
limit: number;
|
|
482
|
+
}, unknown>;
|
|
483
|
+
|
|
484
|
+
declare const useUpdateEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
485
|
+
model: string;
|
|
486
|
+
domain: any;
|
|
487
|
+
values: any;
|
|
488
|
+
service?: string;
|
|
489
|
+
xNode?: string;
|
|
490
|
+
}, unknown>;
|
|
491
|
+
|
|
492
|
+
declare const useDeleteEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
493
|
+
model: string;
|
|
494
|
+
ids: any;
|
|
495
|
+
service?: string;
|
|
496
|
+
xNode?: string;
|
|
497
|
+
method: string;
|
|
498
|
+
}, unknown>;
|
|
499
|
+
|
|
500
|
+
declare const useLoadDataPosSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
501
|
+
model: string;
|
|
502
|
+
ids: any;
|
|
503
|
+
service?: string;
|
|
504
|
+
xNode?: string;
|
|
505
|
+
}, unknown>;
|
|
506
|
+
|
|
507
|
+
declare const useManageOnChange: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
508
|
+
model: string;
|
|
509
|
+
ids: any;
|
|
510
|
+
args: any;
|
|
511
|
+
service?: string;
|
|
512
|
+
xNode?: string;
|
|
513
|
+
}, unknown>;
|
|
514
|
+
|
|
515
|
+
declare const useGenSerialNumber: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
516
|
+
kwargs: any;
|
|
517
|
+
context: ContextApi;
|
|
518
|
+
service?: string;
|
|
519
|
+
xNode?: string;
|
|
520
|
+
}, unknown>;
|
|
521
|
+
|
|
522
|
+
declare const useGetOrderLine: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
523
|
+
model: string;
|
|
524
|
+
ids: any;
|
|
525
|
+
specification: any;
|
|
526
|
+
service?: string;
|
|
527
|
+
xNode?: string;
|
|
528
|
+
}, unknown>;
|
|
529
|
+
|
|
530
|
+
declare const useGetProductImage: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
531
|
+
model: string;
|
|
532
|
+
fields: any;
|
|
533
|
+
limit: number;
|
|
534
|
+
offset: number;
|
|
535
|
+
domain: any;
|
|
536
|
+
service?: string;
|
|
537
|
+
xNode?: string;
|
|
538
|
+
}, unknown>;
|
|
539
|
+
|
|
540
|
+
declare const useAddEntity: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
541
|
+
model: string;
|
|
542
|
+
values: any;
|
|
543
|
+
service?: string;
|
|
544
|
+
xNode?: string;
|
|
545
|
+
isCreateEndpoint?: boolean;
|
|
546
|
+
}, unknown>;
|
|
547
|
+
|
|
548
|
+
declare const useCheckPayment: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
549
|
+
model: string;
|
|
550
|
+
ids: any;
|
|
551
|
+
withContext: any;
|
|
552
|
+
service?: string;
|
|
553
|
+
xNode?: string;
|
|
554
|
+
}, unknown>;
|
|
555
|
+
|
|
556
|
+
declare const useHandleCloseSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
557
|
+
model: string;
|
|
558
|
+
ids: any;
|
|
559
|
+
service?: string;
|
|
560
|
+
xNode?: string;
|
|
561
|
+
method: string;
|
|
562
|
+
}, unknown>;
|
|
563
|
+
|
|
564
|
+
declare const useHandleClosingDetailSession: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
565
|
+
model: string;
|
|
566
|
+
ids: any;
|
|
567
|
+
method: string;
|
|
568
|
+
service?: string;
|
|
569
|
+
xNode?: string;
|
|
570
|
+
kwargs: any;
|
|
571
|
+
}, unknown>;
|
|
572
|
+
|
|
573
|
+
declare const useCreatePosConfig: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
574
|
+
model: string;
|
|
575
|
+
name: string;
|
|
576
|
+
modulePosRestaurant: string;
|
|
577
|
+
service?: string;
|
|
578
|
+
xNode?: string;
|
|
579
|
+
}, unknown>;
|
|
580
|
+
|
|
581
|
+
declare const useSearchJournal: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
582
|
+
model: string;
|
|
583
|
+
method: string;
|
|
584
|
+
args: any;
|
|
585
|
+
kwargs: any;
|
|
586
|
+
service?: string;
|
|
587
|
+
xNode?: string;
|
|
588
|
+
}, unknown>;
|
|
589
|
+
|
|
590
|
+
declare const useGetPreparationDisplayData: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
591
|
+
ids: any;
|
|
592
|
+
service?: string;
|
|
593
|
+
xNode?: string;
|
|
594
|
+
}, unknown>;
|
|
595
|
+
|
|
596
|
+
declare const useChangeOrderPreparationState: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
597
|
+
orderId: number;
|
|
598
|
+
stageId: number;
|
|
599
|
+
preparationDisplayId: number;
|
|
600
|
+
service?: string;
|
|
601
|
+
xNode?: string;
|
|
602
|
+
}, unknown>;
|
|
603
|
+
|
|
604
|
+
declare const useUpdateOrderStatus: () => _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
605
|
+
orderId: number;
|
|
606
|
+
state: string;
|
|
607
|
+
service?: string;
|
|
608
|
+
xNode?: string;
|
|
609
|
+
}, unknown>;
|
|
610
|
+
|
|
611
|
+
export { useAddEntity, useButton, useChangeOrderPreparationState as useChangeOrderPreparaionState, useChangeStatus, useCheckPayment, useCreateEntity, useCreatePosConfig, useCreateSession, useDelete, useDeleteComment, useDeleteEntity, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetOrderLine, useGetPos, useGetPreparationDisplayData, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetTenantMapping, useGetThreadData, useGetThreadMessages, useGetToken, useGetUser, useGetView, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSearchJournal, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdateClosedSession, useUpdateEntity, useUpdateOrderStatus, useUpdatePassword, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
|
package/dist/hooks.js
CHANGED
|
@@ -3751,7 +3751,11 @@ function useFormService() {
|
|
|
3751
3751
|
[env]
|
|
3752
3752
|
);
|
|
3753
3753
|
const getThreadData = (0, import_react10.useCallback)(
|
|
3754
|
-
async ({
|
|
3754
|
+
async ({
|
|
3755
|
+
data,
|
|
3756
|
+
xNode,
|
|
3757
|
+
service
|
|
3758
|
+
}) => {
|
|
3755
3759
|
const jsonData = {
|
|
3756
3760
|
thread_id: data?.thread_id,
|
|
3757
3761
|
thread_model: data?.thread_model,
|
|
@@ -3759,27 +3763,43 @@ function useFormService() {
|
|
|
3759
3763
|
with_context: data?.with_context,
|
|
3760
3764
|
request_list: data?.request_list
|
|
3761
3765
|
};
|
|
3762
|
-
return env.requests.post(
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3766
|
+
return env.requests.post(
|
|
3767
|
+
"/mail/thread/data" /* GET_THREAD_DATA */,
|
|
3768
|
+
jsonData,
|
|
3769
|
+
{
|
|
3770
|
+
headers: {
|
|
3771
|
+
"Content-Type": "application/json",
|
|
3772
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3773
|
+
}
|
|
3774
|
+
},
|
|
3775
|
+
service
|
|
3776
|
+
);
|
|
3767
3777
|
},
|
|
3768
3778
|
[env]
|
|
3769
3779
|
);
|
|
3770
3780
|
const getThreadMessages = (0, import_react10.useCallback)(
|
|
3771
|
-
async ({
|
|
3781
|
+
async ({
|
|
3782
|
+
data,
|
|
3783
|
+
xNode,
|
|
3784
|
+
service
|
|
3785
|
+
}) => {
|
|
3772
3786
|
const jsonData = {
|
|
3773
3787
|
thread_id: data?.thread_id,
|
|
3774
3788
|
thread_model: data?.thread_model,
|
|
3775
3789
|
limit: data?.limit,
|
|
3776
3790
|
with_context: data?.with_context
|
|
3777
3791
|
};
|
|
3778
|
-
return env.requests.post(
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3792
|
+
return env.requests.post(
|
|
3793
|
+
"/mail/thread/messages" /* GET_THREAD_MESSAGES */,
|
|
3794
|
+
jsonData,
|
|
3795
|
+
{
|
|
3796
|
+
headers: {
|
|
3797
|
+
"Content-Type": "application/json",
|
|
3798
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3799
|
+
}
|
|
3800
|
+
},
|
|
3801
|
+
service
|
|
3802
|
+
);
|
|
3783
3803
|
},
|
|
3784
3804
|
[env]
|
|
3785
3805
|
);
|