@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.mjs
CHANGED
|
@@ -3619,7 +3619,11 @@ function useFormService() {
|
|
|
3619
3619
|
[env]
|
|
3620
3620
|
);
|
|
3621
3621
|
const getThreadData = useCallback6(
|
|
3622
|
-
async ({
|
|
3622
|
+
async ({
|
|
3623
|
+
data,
|
|
3624
|
+
xNode,
|
|
3625
|
+
service
|
|
3626
|
+
}) => {
|
|
3623
3627
|
const jsonData = {
|
|
3624
3628
|
thread_id: data?.thread_id,
|
|
3625
3629
|
thread_model: data?.thread_model,
|
|
@@ -3627,27 +3631,43 @@ function useFormService() {
|
|
|
3627
3631
|
with_context: data?.with_context,
|
|
3628
3632
|
request_list: data?.request_list
|
|
3629
3633
|
};
|
|
3630
|
-
return env.requests.post(
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3634
|
+
return env.requests.post(
|
|
3635
|
+
"/mail/thread/data" /* GET_THREAD_DATA */,
|
|
3636
|
+
jsonData,
|
|
3637
|
+
{
|
|
3638
|
+
headers: {
|
|
3639
|
+
"Content-Type": "application/json",
|
|
3640
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3641
|
+
}
|
|
3642
|
+
},
|
|
3643
|
+
service
|
|
3644
|
+
);
|
|
3635
3645
|
},
|
|
3636
3646
|
[env]
|
|
3637
3647
|
);
|
|
3638
3648
|
const getThreadMessages = useCallback6(
|
|
3639
|
-
async ({
|
|
3649
|
+
async ({
|
|
3650
|
+
data,
|
|
3651
|
+
xNode,
|
|
3652
|
+
service
|
|
3653
|
+
}) => {
|
|
3640
3654
|
const jsonData = {
|
|
3641
3655
|
thread_id: data?.thread_id,
|
|
3642
3656
|
thread_model: data?.thread_model,
|
|
3643
3657
|
limit: data?.limit,
|
|
3644
3658
|
with_context: data?.with_context
|
|
3645
3659
|
};
|
|
3646
|
-
return env.requests.post(
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3660
|
+
return env.requests.post(
|
|
3661
|
+
"/mail/thread/messages" /* GET_THREAD_MESSAGES */,
|
|
3662
|
+
jsonData,
|
|
3663
|
+
{
|
|
3664
|
+
headers: {
|
|
3665
|
+
"Content-Type": "application/json",
|
|
3666
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3667
|
+
}
|
|
3668
|
+
},
|
|
3669
|
+
service
|
|
3670
|
+
);
|
|
3651
3671
|
},
|
|
3652
3672
|
[env]
|
|
3653
3673
|
);
|
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 } from './local-storage-BPvoMGYJ.mjs';
|
|
4
|
-
import {
|
|
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, useGenSerialNumber, useGetOrderLine, useGetProductImage, useAddEntity, useCheckPayment, useHandleCloseSession, useHandleClosingDetailSession, useCreatePosConfig, useSearchJournal, useGetTenantMapping, useGetToken, useGetPreparationDisplayData, useChangeOrderPreparaionState as useChangeOrderPreparationState, useUpdateOrderStatus, useGetThreadData, useGetThreadMessages } from './hooks.mjs';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-LCI2KPYD.mjs';
|
|
7
7
|
import './base-model-type-DD8uZnDP.mjs';
|
|
@@ -160,6 +160,8 @@ interface ServiceContextType {
|
|
|
160
160
|
useGetPreparationDisplayData: typeof useGetPreparationDisplayData;
|
|
161
161
|
useChangeOrderPreparaionState: typeof useChangeOrderPreparationState;
|
|
162
162
|
useUpdateOrderStatus: typeof useUpdateOrderStatus;
|
|
163
|
+
useGetThreadData: typeof useGetThreadData;
|
|
164
|
+
useGetThreadMessages: typeof useGetThreadMessages;
|
|
163
165
|
}
|
|
164
166
|
declare const ServiceProvider: ({ children, }: {
|
|
165
167
|
children: React.ReactNode;
|
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 } from './local-storage-BPvoMGYJ.js';
|
|
4
|
-
import {
|
|
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, useGenSerialNumber, useGetOrderLine, useGetProductImage, useAddEntity, useCheckPayment, useHandleCloseSession, useHandleClosingDetailSession, useCreatePosConfig, useSearchJournal, useGetTenantMapping, useGetToken, useGetPreparationDisplayData, useChangeOrderPreparaionState as useChangeOrderPreparationState, useUpdateOrderStatus, useGetThreadData, useGetThreadMessages } from './hooks.js';
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import './view-type-LCI2KPYD.js';
|
|
7
7
|
import './base-model-type-DD8uZnDP.js';
|
|
@@ -160,6 +160,8 @@ interface ServiceContextType {
|
|
|
160
160
|
useGetPreparationDisplayData: typeof useGetPreparationDisplayData;
|
|
161
161
|
useChangeOrderPreparaionState: typeof useChangeOrderPreparationState;
|
|
162
162
|
useUpdateOrderStatus: typeof useUpdateOrderStatus;
|
|
163
|
+
useGetThreadData: typeof useGetThreadData;
|
|
164
|
+
useGetThreadMessages: typeof useGetThreadMessages;
|
|
163
165
|
}
|
|
164
166
|
declare const ServiceProvider: ({ children, }: {
|
|
165
167
|
children: React.ReactNode;
|
package/dist/provider.js
CHANGED
|
@@ -3748,7 +3748,11 @@ function useFormService() {
|
|
|
3748
3748
|
[env]
|
|
3749
3749
|
);
|
|
3750
3750
|
const getThreadData = (0, import_react6.useCallback)(
|
|
3751
|
-
async ({
|
|
3751
|
+
async ({
|
|
3752
|
+
data,
|
|
3753
|
+
xNode,
|
|
3754
|
+
service
|
|
3755
|
+
}) => {
|
|
3752
3756
|
const jsonData = {
|
|
3753
3757
|
thread_id: data?.thread_id,
|
|
3754
3758
|
thread_model: data?.thread_model,
|
|
@@ -3756,27 +3760,43 @@ function useFormService() {
|
|
|
3756
3760
|
with_context: data?.with_context,
|
|
3757
3761
|
request_list: data?.request_list
|
|
3758
3762
|
};
|
|
3759
|
-
return env.requests.post(
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3763
|
+
return env.requests.post(
|
|
3764
|
+
"/mail/thread/data" /* GET_THREAD_DATA */,
|
|
3765
|
+
jsonData,
|
|
3766
|
+
{
|
|
3767
|
+
headers: {
|
|
3768
|
+
"Content-Type": "application/json",
|
|
3769
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3770
|
+
}
|
|
3771
|
+
},
|
|
3772
|
+
service
|
|
3773
|
+
);
|
|
3764
3774
|
},
|
|
3765
3775
|
[env]
|
|
3766
3776
|
);
|
|
3767
3777
|
const getThreadMessages = (0, import_react6.useCallback)(
|
|
3768
|
-
async ({
|
|
3778
|
+
async ({
|
|
3779
|
+
data,
|
|
3780
|
+
xNode,
|
|
3781
|
+
service
|
|
3782
|
+
}) => {
|
|
3769
3783
|
const jsonData = {
|
|
3770
3784
|
thread_id: data?.thread_id,
|
|
3771
3785
|
thread_model: data?.thread_model,
|
|
3772
3786
|
limit: data?.limit,
|
|
3773
3787
|
with_context: data?.with_context
|
|
3774
3788
|
};
|
|
3775
|
-
return env.requests.post(
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3789
|
+
return env.requests.post(
|
|
3790
|
+
"/mail/thread/messages" /* GET_THREAD_MESSAGES */,
|
|
3791
|
+
jsonData,
|
|
3792
|
+
{
|
|
3793
|
+
headers: {
|
|
3794
|
+
"Content-Type": "application/json",
|
|
3795
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3796
|
+
}
|
|
3797
|
+
},
|
|
3798
|
+
service
|
|
3799
|
+
);
|
|
3780
3800
|
},
|
|
3781
3801
|
[env]
|
|
3782
3802
|
);
|
|
@@ -6484,9 +6504,45 @@ var use_upload_file_default = useUploadFile;
|
|
|
6484
6504
|
|
|
6485
6505
|
// src/hooks/form/use-get-thread-data.ts
|
|
6486
6506
|
var import_react_query35 = require("@tanstack/react-query");
|
|
6507
|
+
var useGetThreadData = ({
|
|
6508
|
+
data,
|
|
6509
|
+
queryKey,
|
|
6510
|
+
enabled
|
|
6511
|
+
}) => {
|
|
6512
|
+
const { getThreadData } = useFormService();
|
|
6513
|
+
return (0, import_react_query35.useQuery)({
|
|
6514
|
+
queryKey,
|
|
6515
|
+
queryFn: () => getThreadData({ data }).then((res) => {
|
|
6516
|
+
if (res) {
|
|
6517
|
+
return res;
|
|
6518
|
+
}
|
|
6519
|
+
}),
|
|
6520
|
+
enabled,
|
|
6521
|
+
refetchOnWindowFocus: false
|
|
6522
|
+
});
|
|
6523
|
+
};
|
|
6524
|
+
var use_get_thread_data_default = useGetThreadData;
|
|
6487
6525
|
|
|
6488
6526
|
// src/hooks/form/use-get-thread-messages.ts
|
|
6489
6527
|
var import_react_query36 = require("@tanstack/react-query");
|
|
6528
|
+
var useGetThreadMessages = ({
|
|
6529
|
+
data,
|
|
6530
|
+
queryKey,
|
|
6531
|
+
enabled
|
|
6532
|
+
}) => {
|
|
6533
|
+
const { getThreadMessages } = useFormService();
|
|
6534
|
+
return (0, import_react_query36.useQuery)({
|
|
6535
|
+
queryKey,
|
|
6536
|
+
queryFn: () => getThreadMessages({ data }).then((res) => {
|
|
6537
|
+
if (res) {
|
|
6538
|
+
return res;
|
|
6539
|
+
}
|
|
6540
|
+
}),
|
|
6541
|
+
enabled,
|
|
6542
|
+
refetchOnWindowFocus: false
|
|
6543
|
+
});
|
|
6544
|
+
};
|
|
6545
|
+
var use_get_thread_messages_default = useGetThreadMessages;
|
|
6490
6546
|
|
|
6491
6547
|
// src/hooks/model/use-delete.ts
|
|
6492
6548
|
var import_react_query37 = require("@tanstack/react-query");
|
|
@@ -8030,7 +8086,9 @@ var ServiceProvider = ({
|
|
|
8030
8086
|
useGetToken: use_get_token_default,
|
|
8031
8087
|
useGetPreparationDisplayData: useGetPreparaionDisplayData_default,
|
|
8032
8088
|
useChangeOrderPreparaionState: useChangeOrderPreparaionState_default,
|
|
8033
|
-
useUpdateOrderStatus: use_update_order_status_default
|
|
8089
|
+
useUpdateOrderStatus: use_update_order_status_default,
|
|
8090
|
+
useGetThreadData: use_get_thread_data_default,
|
|
8091
|
+
useGetThreadMessages: use_get_thread_messages_default
|
|
8034
8092
|
};
|
|
8035
8093
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ServiceContext.Provider, { value: services, children });
|
|
8036
8094
|
};
|
package/dist/provider.mjs
CHANGED
|
@@ -3705,7 +3705,11 @@ function useFormService() {
|
|
|
3705
3705
|
[env]
|
|
3706
3706
|
);
|
|
3707
3707
|
const getThreadData = useCallback5(
|
|
3708
|
-
async ({
|
|
3708
|
+
async ({
|
|
3709
|
+
data,
|
|
3710
|
+
xNode,
|
|
3711
|
+
service
|
|
3712
|
+
}) => {
|
|
3709
3713
|
const jsonData = {
|
|
3710
3714
|
thread_id: data?.thread_id,
|
|
3711
3715
|
thread_model: data?.thread_model,
|
|
@@ -3713,27 +3717,43 @@ function useFormService() {
|
|
|
3713
3717
|
with_context: data?.with_context,
|
|
3714
3718
|
request_list: data?.request_list
|
|
3715
3719
|
};
|
|
3716
|
-
return env.requests.post(
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3720
|
+
return env.requests.post(
|
|
3721
|
+
"/mail/thread/data" /* GET_THREAD_DATA */,
|
|
3722
|
+
jsonData,
|
|
3723
|
+
{
|
|
3724
|
+
headers: {
|
|
3725
|
+
"Content-Type": "application/json",
|
|
3726
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3727
|
+
}
|
|
3728
|
+
},
|
|
3729
|
+
service
|
|
3730
|
+
);
|
|
3721
3731
|
},
|
|
3722
3732
|
[env]
|
|
3723
3733
|
);
|
|
3724
3734
|
const getThreadMessages = useCallback5(
|
|
3725
|
-
async ({
|
|
3735
|
+
async ({
|
|
3736
|
+
data,
|
|
3737
|
+
xNode,
|
|
3738
|
+
service
|
|
3739
|
+
}) => {
|
|
3726
3740
|
const jsonData = {
|
|
3727
3741
|
thread_id: data?.thread_id,
|
|
3728
3742
|
thread_model: data?.thread_model,
|
|
3729
3743
|
limit: data?.limit,
|
|
3730
3744
|
with_context: data?.with_context
|
|
3731
3745
|
};
|
|
3732
|
-
return env.requests.post(
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3746
|
+
return env.requests.post(
|
|
3747
|
+
"/mail/thread/messages" /* GET_THREAD_MESSAGES */,
|
|
3748
|
+
jsonData,
|
|
3749
|
+
{
|
|
3750
|
+
headers: {
|
|
3751
|
+
"Content-Type": "application/json",
|
|
3752
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3753
|
+
}
|
|
3754
|
+
},
|
|
3755
|
+
service
|
|
3756
|
+
);
|
|
3737
3757
|
},
|
|
3738
3758
|
[env]
|
|
3739
3759
|
);
|
|
@@ -6441,9 +6461,45 @@ var use_upload_file_default = useUploadFile;
|
|
|
6441
6461
|
|
|
6442
6462
|
// src/hooks/form/use-get-thread-data.ts
|
|
6443
6463
|
import { useQuery as useQuery6 } from "@tanstack/react-query";
|
|
6464
|
+
var useGetThreadData = ({
|
|
6465
|
+
data,
|
|
6466
|
+
queryKey,
|
|
6467
|
+
enabled
|
|
6468
|
+
}) => {
|
|
6469
|
+
const { getThreadData } = useFormService();
|
|
6470
|
+
return useQuery6({
|
|
6471
|
+
queryKey,
|
|
6472
|
+
queryFn: () => getThreadData({ data }).then((res) => {
|
|
6473
|
+
if (res) {
|
|
6474
|
+
return res;
|
|
6475
|
+
}
|
|
6476
|
+
}),
|
|
6477
|
+
enabled,
|
|
6478
|
+
refetchOnWindowFocus: false
|
|
6479
|
+
});
|
|
6480
|
+
};
|
|
6481
|
+
var use_get_thread_data_default = useGetThreadData;
|
|
6444
6482
|
|
|
6445
6483
|
// src/hooks/form/use-get-thread-messages.ts
|
|
6446
6484
|
import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
6485
|
+
var useGetThreadMessages = ({
|
|
6486
|
+
data,
|
|
6487
|
+
queryKey,
|
|
6488
|
+
enabled
|
|
6489
|
+
}) => {
|
|
6490
|
+
const { getThreadMessages } = useFormService();
|
|
6491
|
+
return useQuery7({
|
|
6492
|
+
queryKey,
|
|
6493
|
+
queryFn: () => getThreadMessages({ data }).then((res) => {
|
|
6494
|
+
if (res) {
|
|
6495
|
+
return res;
|
|
6496
|
+
}
|
|
6497
|
+
}),
|
|
6498
|
+
enabled,
|
|
6499
|
+
refetchOnWindowFocus: false
|
|
6500
|
+
});
|
|
6501
|
+
};
|
|
6502
|
+
var use_get_thread_messages_default = useGetThreadMessages;
|
|
6447
6503
|
|
|
6448
6504
|
// src/hooks/model/use-delete.ts
|
|
6449
6505
|
import { useMutation as useMutation28 } from "@tanstack/react-query";
|
|
@@ -7987,7 +8043,9 @@ var ServiceProvider = ({
|
|
|
7987
8043
|
useGetToken: use_get_token_default,
|
|
7988
8044
|
useGetPreparationDisplayData: useGetPreparaionDisplayData_default,
|
|
7989
8045
|
useChangeOrderPreparaionState: useChangeOrderPreparaionState_default,
|
|
7990
|
-
useUpdateOrderStatus: use_update_order_status_default
|
|
8046
|
+
useUpdateOrderStatus: use_update_order_status_default,
|
|
8047
|
+
useGetThreadData: use_get_thread_data_default,
|
|
8048
|
+
useGetThreadMessages: use_get_thread_messages_default
|
|
7991
8049
|
};
|
|
7992
8050
|
return /* @__PURE__ */ jsx6(ServiceContext.Provider, { value: services, children });
|
|
7993
8051
|
};
|
package/dist/services.d.mts
CHANGED
|
@@ -181,11 +181,15 @@ declare function useFormService(): {
|
|
|
181
181
|
uploadFile: ({ formData }: {
|
|
182
182
|
formData: any;
|
|
183
183
|
}) => Promise<any>;
|
|
184
|
-
getThreadMessages: ({ data }: {
|
|
184
|
+
getThreadMessages: ({ data, xNode, service, }: {
|
|
185
185
|
data: TThreadData;
|
|
186
|
+
xNode?: string;
|
|
187
|
+
service?: string;
|
|
186
188
|
}) => Promise<any>;
|
|
187
|
-
getThreadData: ({ data }: {
|
|
189
|
+
getThreadData: ({ data, xNode, service, }: {
|
|
188
190
|
data: TThreadData;
|
|
191
|
+
xNode?: string;
|
|
192
|
+
service?: string;
|
|
189
193
|
}) => Promise<any>;
|
|
190
194
|
};
|
|
191
195
|
|
package/dist/services.d.ts
CHANGED
|
@@ -181,11 +181,15 @@ declare function useFormService(): {
|
|
|
181
181
|
uploadFile: ({ formData }: {
|
|
182
182
|
formData: any;
|
|
183
183
|
}) => Promise<any>;
|
|
184
|
-
getThreadMessages: ({ data }: {
|
|
184
|
+
getThreadMessages: ({ data, xNode, service, }: {
|
|
185
185
|
data: TThreadData;
|
|
186
|
+
xNode?: string;
|
|
187
|
+
service?: string;
|
|
186
188
|
}) => Promise<any>;
|
|
187
|
-
getThreadData: ({ data }: {
|
|
189
|
+
getThreadData: ({ data, xNode, service, }: {
|
|
188
190
|
data: TThreadData;
|
|
191
|
+
xNode?: string;
|
|
192
|
+
service?: string;
|
|
189
193
|
}) => Promise<any>;
|
|
190
194
|
};
|
|
191
195
|
|
package/dist/services.js
CHANGED
|
@@ -3925,7 +3925,11 @@ function useFormService() {
|
|
|
3925
3925
|
[env]
|
|
3926
3926
|
);
|
|
3927
3927
|
const getThreadData = (0, import_react10.useCallback)(
|
|
3928
|
-
async ({
|
|
3928
|
+
async ({
|
|
3929
|
+
data,
|
|
3930
|
+
xNode,
|
|
3931
|
+
service
|
|
3932
|
+
}) => {
|
|
3929
3933
|
const jsonData = {
|
|
3930
3934
|
thread_id: data?.thread_id,
|
|
3931
3935
|
thread_model: data?.thread_model,
|
|
@@ -3933,27 +3937,43 @@ function useFormService() {
|
|
|
3933
3937
|
with_context: data?.with_context,
|
|
3934
3938
|
request_list: data?.request_list
|
|
3935
3939
|
};
|
|
3936
|
-
return env.requests.post(
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3940
|
+
return env.requests.post(
|
|
3941
|
+
"/mail/thread/data" /* GET_THREAD_DATA */,
|
|
3942
|
+
jsonData,
|
|
3943
|
+
{
|
|
3944
|
+
headers: {
|
|
3945
|
+
"Content-Type": "application/json",
|
|
3946
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3947
|
+
}
|
|
3948
|
+
},
|
|
3949
|
+
service
|
|
3950
|
+
);
|
|
3941
3951
|
},
|
|
3942
3952
|
[env]
|
|
3943
3953
|
);
|
|
3944
3954
|
const getThreadMessages = (0, import_react10.useCallback)(
|
|
3945
|
-
async ({
|
|
3955
|
+
async ({
|
|
3956
|
+
data,
|
|
3957
|
+
xNode,
|
|
3958
|
+
service
|
|
3959
|
+
}) => {
|
|
3946
3960
|
const jsonData = {
|
|
3947
3961
|
thread_id: data?.thread_id,
|
|
3948
3962
|
thread_model: data?.thread_model,
|
|
3949
3963
|
limit: data?.limit,
|
|
3950
3964
|
with_context: data?.with_context
|
|
3951
3965
|
};
|
|
3952
|
-
return env.requests.post(
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3966
|
+
return env.requests.post(
|
|
3967
|
+
"/mail/thread/messages" /* GET_THREAD_MESSAGES */,
|
|
3968
|
+
jsonData,
|
|
3969
|
+
{
|
|
3970
|
+
headers: {
|
|
3971
|
+
"Content-Type": "application/json",
|
|
3972
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3973
|
+
}
|
|
3974
|
+
},
|
|
3975
|
+
service
|
|
3976
|
+
);
|
|
3957
3977
|
},
|
|
3958
3978
|
[env]
|
|
3959
3979
|
);
|
package/dist/services.mjs
CHANGED
|
@@ -3881,7 +3881,11 @@ function useFormService() {
|
|
|
3881
3881
|
[env]
|
|
3882
3882
|
);
|
|
3883
3883
|
const getThreadData = useCallback6(
|
|
3884
|
-
async ({
|
|
3884
|
+
async ({
|
|
3885
|
+
data,
|
|
3886
|
+
xNode,
|
|
3887
|
+
service
|
|
3888
|
+
}) => {
|
|
3885
3889
|
const jsonData = {
|
|
3886
3890
|
thread_id: data?.thread_id,
|
|
3887
3891
|
thread_model: data?.thread_model,
|
|
@@ -3889,27 +3893,43 @@ function useFormService() {
|
|
|
3889
3893
|
with_context: data?.with_context,
|
|
3890
3894
|
request_list: data?.request_list
|
|
3891
3895
|
};
|
|
3892
|
-
return env.requests.post(
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3896
|
+
return env.requests.post(
|
|
3897
|
+
"/mail/thread/data" /* GET_THREAD_DATA */,
|
|
3898
|
+
jsonData,
|
|
3899
|
+
{
|
|
3900
|
+
headers: {
|
|
3901
|
+
"Content-Type": "application/json",
|
|
3902
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3903
|
+
}
|
|
3904
|
+
},
|
|
3905
|
+
service
|
|
3906
|
+
);
|
|
3897
3907
|
},
|
|
3898
3908
|
[env]
|
|
3899
3909
|
);
|
|
3900
3910
|
const getThreadMessages = useCallback6(
|
|
3901
|
-
async ({
|
|
3911
|
+
async ({
|
|
3912
|
+
data,
|
|
3913
|
+
xNode,
|
|
3914
|
+
service
|
|
3915
|
+
}) => {
|
|
3902
3916
|
const jsonData = {
|
|
3903
3917
|
thread_id: data?.thread_id,
|
|
3904
3918
|
thread_model: data?.thread_model,
|
|
3905
3919
|
limit: data?.limit,
|
|
3906
3920
|
with_context: data?.with_context
|
|
3907
3921
|
};
|
|
3908
|
-
return env.requests.post(
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3922
|
+
return env.requests.post(
|
|
3923
|
+
"/mail/thread/messages" /* GET_THREAD_MESSAGES */,
|
|
3924
|
+
jsonData,
|
|
3925
|
+
{
|
|
3926
|
+
headers: {
|
|
3927
|
+
"Content-Type": "application/json",
|
|
3928
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
3929
|
+
}
|
|
3930
|
+
},
|
|
3931
|
+
service
|
|
3932
|
+
);
|
|
3913
3933
|
},
|
|
3914
3934
|
[env]
|
|
3915
3935
|
);
|