@fctc/interface-logic 3.3.0 → 3.3.1
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/constants.d.mts +2 -0
- package/dist/constants.d.ts +2 -0
- package/dist/constants.js +2 -0
- package/dist/constants.mjs +2 -0
- package/dist/hooks.d.mts +10 -590
- package/dist/hooks.d.ts +10 -590
- package/dist/hooks.js +206 -123
- package/dist/hooks.mjs +112 -31
- package/dist/provider.d.mts +2 -2
- package/dist/provider.d.ts +2 -2
- package/dist/provider.js +166 -123
- package/dist/provider.mjs +74 -31
- package/dist/services.d.mts +7 -1
- package/dist/services.d.ts +7 -1
- package/dist/services.js +105 -62
- package/dist/services.mjs +59 -16
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/use-update-order-status-CSc8DlPR.d.mts +599 -0
- package/dist/use-update-order-status-CwYVNouf.d.ts +599 -0
- package/dist/{view-type-xxw9OeSR.d.mts → view-type-LCI2KPYD.d.mts} +8 -1
- package/dist/{view-type-xxw9OeSR.d.ts → view-type-LCI2KPYD.d.ts} +8 -1
- package/package.json +90 -90
package/dist/services.mjs
CHANGED
|
@@ -17,6 +17,8 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
17
17
|
UriConstants2["UPLOAD_FILE_EXCEL_PATH"] = `/upload/file`;
|
|
18
18
|
UriConstants2["UPLOAD_FILE_PATH"] = `/web/binary/upload_attachment`;
|
|
19
19
|
UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
|
|
20
|
+
UriConstants2["GET_THREAD_DATA"] = `/mail/thread/data`;
|
|
21
|
+
UriConstants2["GET_THREAD_MESSAGES"] = `/mail/thread/messages`;
|
|
20
22
|
UriConstants2["SENT_MESSAGE"] = `/chatter/message/post`;
|
|
21
23
|
UriConstants2["UPLOAD_IMAGE"] = `/mail/attachment/upload`;
|
|
22
24
|
UriConstants2["DELETE_MESSAGE"] = `/chatter/message/update_content`;
|
|
@@ -2912,26 +2914,32 @@ import { useMutation as useMutation26 } from "@tanstack/react-query";
|
|
|
2912
2914
|
// src/hooks/form/use-upload-file.ts
|
|
2913
2915
|
import { useMutation as useMutation27 } from "@tanstack/react-query";
|
|
2914
2916
|
|
|
2917
|
+
// src/hooks/form/use-get-thread-data.ts
|
|
2918
|
+
import { useQuery as useQuery6 } from "@tanstack/react-query";
|
|
2919
|
+
|
|
2920
|
+
// src/hooks/form/use-get-thread-messages.ts
|
|
2921
|
+
import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
2922
|
+
|
|
2915
2923
|
// src/hooks/model/use-delete.ts
|
|
2916
2924
|
import { useMutation as useMutation28 } from "@tanstack/react-query";
|
|
2917
2925
|
|
|
2918
2926
|
// src/hooks/model/use-get-all.ts
|
|
2919
|
-
import { useQuery as
|
|
2927
|
+
import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
2920
2928
|
|
|
2921
2929
|
// src/hooks/model/use-get-conversion-rate.ts
|
|
2922
|
-
import { useQuery as
|
|
2930
|
+
import { useQuery as useQuery9 } from "@tanstack/react-query";
|
|
2923
2931
|
|
|
2924
2932
|
// src/hooks/model/use-get-currency.ts
|
|
2925
|
-
import { useQuery as
|
|
2933
|
+
import { useQuery as useQuery10 } from "@tanstack/react-query";
|
|
2926
2934
|
|
|
2927
2935
|
// src/hooks/model/use-get-detail.ts
|
|
2928
2936
|
import { useMutation as useMutation29 } from "@tanstack/react-query";
|
|
2929
2937
|
|
|
2930
2938
|
// src/hooks/model/use-get-field-onchange.ts
|
|
2931
|
-
import { useQuery as
|
|
2939
|
+
import { useQuery as useQuery11 } from "@tanstack/react-query";
|
|
2932
2940
|
|
|
2933
2941
|
// src/hooks/model/use-get-list-my-bank-account.ts
|
|
2934
|
-
import { useQuery as
|
|
2942
|
+
import { useQuery as useQuery12 } from "@tanstack/react-query";
|
|
2935
2943
|
|
|
2936
2944
|
// src/hooks/model/use-onchange-form.ts
|
|
2937
2945
|
import { useMutation as useMutation30 } from "@tanstack/react-query";
|
|
@@ -2955,37 +2963,37 @@ import { useMutation as useMutation35 } from "@tanstack/react-query";
|
|
|
2955
2963
|
import { useMutation as useMutation36 } from "@tanstack/react-query";
|
|
2956
2964
|
|
|
2957
2965
|
// src/hooks/view/use-get-action-detail.ts
|
|
2958
|
-
import { useQuery as
|
|
2966
|
+
import { useQuery as useQuery13 } from "@tanstack/react-query";
|
|
2959
2967
|
|
|
2960
2968
|
// src/hooks/view/use-get-calendar.ts
|
|
2961
|
-
import { useQuery as
|
|
2969
|
+
import { useQuery as useQuery14 } from "@tanstack/react-query";
|
|
2962
2970
|
|
|
2963
2971
|
// src/hooks/view/use-get-groups.ts
|
|
2964
|
-
import { useQuery as
|
|
2972
|
+
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
|
2965
2973
|
|
|
2966
2974
|
// src/hooks/view/use-get-list-data.ts
|
|
2967
|
-
import { useQuery as
|
|
2975
|
+
import { useQuery as useQuery16 } from "@tanstack/react-query";
|
|
2968
2976
|
|
|
2969
2977
|
// src/hooks/view/use-get-menu.ts
|
|
2970
|
-
import { useQuery as
|
|
2978
|
+
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
|
2971
2979
|
|
|
2972
2980
|
// src/hooks/view/use-get-print-report.ts
|
|
2973
2981
|
import { useMutation as useMutation37 } from "@tanstack/react-query";
|
|
2974
2982
|
|
|
2975
2983
|
// src/hooks/view/use-get-progress-bar.ts
|
|
2976
|
-
import { useQuery as
|
|
2984
|
+
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
|
2977
2985
|
|
|
2978
2986
|
// src/hooks/view/use-get-selection.ts
|
|
2979
|
-
import { useQuery as
|
|
2987
|
+
import { useQuery as useQuery19 } from "@tanstack/react-query";
|
|
2980
2988
|
|
|
2981
2989
|
// src/hooks/view/use-get-view.ts
|
|
2982
|
-
import { useQuery as
|
|
2990
|
+
import { useQuery as useQuery20 } from "@tanstack/react-query";
|
|
2983
2991
|
|
|
2984
2992
|
// src/hooks/view/use-load-action.ts
|
|
2985
2993
|
import { useMutation as useMutation38 } from "@tanstack/react-query";
|
|
2986
2994
|
|
|
2987
2995
|
// src/hooks/view/use-load-message.ts
|
|
2988
|
-
import { useQuery as
|
|
2996
|
+
import { useQuery as useQuery21 } from "@tanstack/react-query";
|
|
2989
2997
|
|
|
2990
2998
|
// src/hooks/view/use-print.ts
|
|
2991
2999
|
import { useMutation as useMutation39 } from "@tanstack/react-query";
|
|
@@ -2994,7 +3002,7 @@ import { useMutation as useMutation39 } from "@tanstack/react-query";
|
|
|
2994
3002
|
import { useMutation as useMutation40 } from "@tanstack/react-query";
|
|
2995
3003
|
|
|
2996
3004
|
// src/hooks/view/use-resequence.ts
|
|
2997
|
-
import { useQuery as
|
|
3005
|
+
import { useQuery as useQuery22 } from "@tanstack/react-query";
|
|
2998
3006
|
|
|
2999
3007
|
// src/hooks/view/use-run-action.ts
|
|
3000
3008
|
import { useMutation as useMutation41 } from "@tanstack/react-query";
|
|
@@ -3872,6 +3880,39 @@ function useFormService() {
|
|
|
3872
3880
|
},
|
|
3873
3881
|
[env]
|
|
3874
3882
|
);
|
|
3883
|
+
const getThreadData = useCallback6(
|
|
3884
|
+
async ({ data }) => {
|
|
3885
|
+
const jsonData = {
|
|
3886
|
+
thread_id: data?.thread_id,
|
|
3887
|
+
thread_model: data?.thread_model,
|
|
3888
|
+
limit: data?.limit,
|
|
3889
|
+
with_context: data?.with_context,
|
|
3890
|
+
request_list: data?.request_list
|
|
3891
|
+
};
|
|
3892
|
+
return env.requests.post("/mail/thread/data" /* GET_THREAD_DATA */, jsonData, {
|
|
3893
|
+
headers: {
|
|
3894
|
+
"Content-Type": "application/json"
|
|
3895
|
+
}
|
|
3896
|
+
});
|
|
3897
|
+
},
|
|
3898
|
+
[env]
|
|
3899
|
+
);
|
|
3900
|
+
const getThreadMessages = useCallback6(
|
|
3901
|
+
async ({ data }) => {
|
|
3902
|
+
const jsonData = {
|
|
3903
|
+
thread_id: data?.thread_id,
|
|
3904
|
+
thread_model: data?.thread_model,
|
|
3905
|
+
limit: data?.limit,
|
|
3906
|
+
with_context: data?.with_context
|
|
3907
|
+
};
|
|
3908
|
+
return env.requests.post("/mail/thread/messages" /* GET_THREAD_MESSAGES */, jsonData, {
|
|
3909
|
+
headers: {
|
|
3910
|
+
"Content-Type": "application/json"
|
|
3911
|
+
}
|
|
3912
|
+
});
|
|
3913
|
+
},
|
|
3914
|
+
[env]
|
|
3915
|
+
);
|
|
3875
3916
|
const sentComment = useCallback6(
|
|
3876
3917
|
async ({ data }) => {
|
|
3877
3918
|
const jsonData = {
|
|
@@ -3994,7 +4035,9 @@ function useFormService() {
|
|
|
3994
4035
|
uploadImage,
|
|
3995
4036
|
getFormView,
|
|
3996
4037
|
changeStatus,
|
|
3997
|
-
uploadFile
|
|
4038
|
+
uploadFile,
|
|
4039
|
+
getThreadMessages,
|
|
4040
|
+
getThreadData
|
|
3998
4041
|
};
|
|
3999
4042
|
}
|
|
4000
4043
|
|
package/dist/types.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-
|
|
1
|
+
export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-LCI2KPYD.mjs';
|
|
2
2
|
export { B as BaseModelInit } from './base-model-type-DD8uZnDP.mjs';
|
|
3
3
|
|
|
4
4
|
interface Config {
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-
|
|
1
|
+
export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-LCI2KPYD.js';
|
|
2
2
|
export { B as BaseModelInit } from './base-model-type-DD8uZnDP.js';
|
|
3
3
|
|
|
4
4
|
interface Config {
|