@fctc/interface-logic 3.3.2 → 3.3.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/hooks.d.mts +6 -2
- package/dist/hooks.d.ts +6 -2
- package/dist/hooks.js +40 -16
- package/dist/hooks.mjs +40 -16
- package/dist/provider.js +40 -16
- package/dist/provider.mjs +40 -16
- 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/hooks.d.mts
CHANGED
|
@@ -173,16 +173,20 @@ declare const useUploadFile: () => _tanstack_react_query.UseMutationResult<any,
|
|
|
173
173
|
formData: any;
|
|
174
174
|
}, unknown>;
|
|
175
175
|
|
|
176
|
-
declare const useGetThreadData: ({ data, queryKey, enabled, }: {
|
|
176
|
+
declare const useGetThreadData: ({ data, queryKey, enabled, service, xNode, }: {
|
|
177
177
|
data: TThreadData;
|
|
178
178
|
queryKey: any;
|
|
179
179
|
enabled?: boolean;
|
|
180
|
+
service?: string;
|
|
181
|
+
xNode?: string;
|
|
180
182
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
181
183
|
|
|
182
|
-
declare const useGetThreadMessages: ({ data, queryKey, enabled, }: {
|
|
184
|
+
declare const useGetThreadMessages: ({ data, queryKey, enabled, service, xNode, }: {
|
|
183
185
|
data: TThreadData;
|
|
184
186
|
queryKey: any;
|
|
185
187
|
enabled?: boolean;
|
|
188
|
+
service?: string;
|
|
189
|
+
xNode?: string;
|
|
186
190
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
187
191
|
|
|
188
192
|
declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
package/dist/hooks.d.ts
CHANGED
|
@@ -173,16 +173,20 @@ declare const useUploadFile: () => _tanstack_react_query.UseMutationResult<any,
|
|
|
173
173
|
formData: any;
|
|
174
174
|
}, unknown>;
|
|
175
175
|
|
|
176
|
-
declare const useGetThreadData: ({ data, queryKey, enabled, }: {
|
|
176
|
+
declare const useGetThreadData: ({ data, queryKey, enabled, service, xNode, }: {
|
|
177
177
|
data: TThreadData;
|
|
178
178
|
queryKey: any;
|
|
179
179
|
enabled?: boolean;
|
|
180
|
+
service?: string;
|
|
181
|
+
xNode?: string;
|
|
180
182
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
181
183
|
|
|
182
|
-
declare const useGetThreadMessages: ({ data, queryKey, enabled, }: {
|
|
184
|
+
declare const useGetThreadMessages: ({ data, queryKey, enabled, service, xNode, }: {
|
|
183
185
|
data: TThreadData;
|
|
184
186
|
queryKey: any;
|
|
185
187
|
enabled?: boolean;
|
|
188
|
+
service?: string;
|
|
189
|
+
xNode?: string;
|
|
186
190
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
187
191
|
|
|
188
192
|
declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
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
|
);
|
|
@@ -6107,12 +6127,14 @@ var import_react_query35 = require("@tanstack/react-query");
|
|
|
6107
6127
|
var useGetThreadData = ({
|
|
6108
6128
|
data,
|
|
6109
6129
|
queryKey,
|
|
6110
|
-
enabled
|
|
6130
|
+
enabled,
|
|
6131
|
+
service,
|
|
6132
|
+
xNode
|
|
6111
6133
|
}) => {
|
|
6112
6134
|
const { getThreadData } = useFormService();
|
|
6113
6135
|
return (0, import_react_query35.useQuery)({
|
|
6114
6136
|
queryKey,
|
|
6115
|
-
queryFn: () => getThreadData({ data }).then((res) => {
|
|
6137
|
+
queryFn: () => getThreadData({ data, service, xNode }).then((res) => {
|
|
6116
6138
|
if (res) {
|
|
6117
6139
|
return res;
|
|
6118
6140
|
}
|
|
@@ -6128,12 +6150,14 @@ var import_react_query36 = require("@tanstack/react-query");
|
|
|
6128
6150
|
var useGetThreadMessages = ({
|
|
6129
6151
|
data,
|
|
6130
6152
|
queryKey,
|
|
6131
|
-
enabled
|
|
6153
|
+
enabled,
|
|
6154
|
+
service,
|
|
6155
|
+
xNode
|
|
6132
6156
|
}) => {
|
|
6133
6157
|
const { getThreadMessages } = useFormService();
|
|
6134
6158
|
return (0, import_react_query36.useQuery)({
|
|
6135
6159
|
queryKey,
|
|
6136
|
-
queryFn: () => getThreadMessages({ data }).then((res) => {
|
|
6160
|
+
queryFn: () => getThreadMessages({ data, service, xNode }).then((res) => {
|
|
6137
6161
|
if (res) {
|
|
6138
6162
|
return res;
|
|
6139
6163
|
}
|
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
|
);
|
|
@@ -5975,12 +5995,14 @@ import { useQuery as useQuery6 } from "@tanstack/react-query";
|
|
|
5975
5995
|
var useGetThreadData = ({
|
|
5976
5996
|
data,
|
|
5977
5997
|
queryKey,
|
|
5978
|
-
enabled
|
|
5998
|
+
enabled,
|
|
5999
|
+
service,
|
|
6000
|
+
xNode
|
|
5979
6001
|
}) => {
|
|
5980
6002
|
const { getThreadData } = useFormService();
|
|
5981
6003
|
return useQuery6({
|
|
5982
6004
|
queryKey,
|
|
5983
|
-
queryFn: () => getThreadData({ data }).then((res) => {
|
|
6005
|
+
queryFn: () => getThreadData({ data, service, xNode }).then((res) => {
|
|
5984
6006
|
if (res) {
|
|
5985
6007
|
return res;
|
|
5986
6008
|
}
|
|
@@ -5996,12 +6018,14 @@ import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
|
5996
6018
|
var useGetThreadMessages = ({
|
|
5997
6019
|
data,
|
|
5998
6020
|
queryKey,
|
|
5999
|
-
enabled
|
|
6021
|
+
enabled,
|
|
6022
|
+
service,
|
|
6023
|
+
xNode
|
|
6000
6024
|
}) => {
|
|
6001
6025
|
const { getThreadMessages } = useFormService();
|
|
6002
6026
|
return useQuery7({
|
|
6003
6027
|
queryKey,
|
|
6004
|
-
queryFn: () => getThreadMessages({ data }).then((res) => {
|
|
6028
|
+
queryFn: () => getThreadMessages({ data, service, xNode }).then((res) => {
|
|
6005
6029
|
if (res) {
|
|
6006
6030
|
return res;
|
|
6007
6031
|
}
|
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
|
);
|
|
@@ -6487,12 +6507,14 @@ var import_react_query35 = require("@tanstack/react-query");
|
|
|
6487
6507
|
var useGetThreadData = ({
|
|
6488
6508
|
data,
|
|
6489
6509
|
queryKey,
|
|
6490
|
-
enabled
|
|
6510
|
+
enabled,
|
|
6511
|
+
service,
|
|
6512
|
+
xNode
|
|
6491
6513
|
}) => {
|
|
6492
6514
|
const { getThreadData } = useFormService();
|
|
6493
6515
|
return (0, import_react_query35.useQuery)({
|
|
6494
6516
|
queryKey,
|
|
6495
|
-
queryFn: () => getThreadData({ data }).then((res) => {
|
|
6517
|
+
queryFn: () => getThreadData({ data, service, xNode }).then((res) => {
|
|
6496
6518
|
if (res) {
|
|
6497
6519
|
return res;
|
|
6498
6520
|
}
|
|
@@ -6508,12 +6530,14 @@ var import_react_query36 = require("@tanstack/react-query");
|
|
|
6508
6530
|
var useGetThreadMessages = ({
|
|
6509
6531
|
data,
|
|
6510
6532
|
queryKey,
|
|
6511
|
-
enabled
|
|
6533
|
+
enabled,
|
|
6534
|
+
service,
|
|
6535
|
+
xNode
|
|
6512
6536
|
}) => {
|
|
6513
6537
|
const { getThreadMessages } = useFormService();
|
|
6514
6538
|
return (0, import_react_query36.useQuery)({
|
|
6515
6539
|
queryKey,
|
|
6516
|
-
queryFn: () => getThreadMessages({ data }).then((res) => {
|
|
6540
|
+
queryFn: () => getThreadMessages({ data, service, xNode }).then((res) => {
|
|
6517
6541
|
if (res) {
|
|
6518
6542
|
return res;
|
|
6519
6543
|
}
|
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
|
);
|
|
@@ -6444,12 +6464,14 @@ import { useQuery as useQuery6 } from "@tanstack/react-query";
|
|
|
6444
6464
|
var useGetThreadData = ({
|
|
6445
6465
|
data,
|
|
6446
6466
|
queryKey,
|
|
6447
|
-
enabled
|
|
6467
|
+
enabled,
|
|
6468
|
+
service,
|
|
6469
|
+
xNode
|
|
6448
6470
|
}) => {
|
|
6449
6471
|
const { getThreadData } = useFormService();
|
|
6450
6472
|
return useQuery6({
|
|
6451
6473
|
queryKey,
|
|
6452
|
-
queryFn: () => getThreadData({ data }).then((res) => {
|
|
6474
|
+
queryFn: () => getThreadData({ data, service, xNode }).then((res) => {
|
|
6453
6475
|
if (res) {
|
|
6454
6476
|
return res;
|
|
6455
6477
|
}
|
|
@@ -6465,12 +6487,14 @@ import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
|
6465
6487
|
var useGetThreadMessages = ({
|
|
6466
6488
|
data,
|
|
6467
6489
|
queryKey,
|
|
6468
|
-
enabled
|
|
6490
|
+
enabled,
|
|
6491
|
+
service,
|
|
6492
|
+
xNode
|
|
6469
6493
|
}) => {
|
|
6470
6494
|
const { getThreadMessages } = useFormService();
|
|
6471
6495
|
return useQuery7({
|
|
6472
6496
|
queryKey,
|
|
6473
|
-
queryFn: () => getThreadMessages({ data }).then((res) => {
|
|
6497
|
+
queryFn: () => getThreadMessages({ data, service, xNode }).then((res) => {
|
|
6474
6498
|
if (res) {
|
|
6475
6499
|
return res;
|
|
6476
6500
|
}
|
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
|
);
|