@fctc/interface-logic 3.3.0 → 3.3.2
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 +14 -2
- package/dist/hooks.d.ts +14 -2
- package/dist/hooks.js +206 -123
- package/dist/hooks.mjs +112 -31
- package/dist/provider.d.mts +4 -2
- package/dist/provider.d.ts +4 -2
- package/dist/provider.js +205 -124
- package/dist/provider.mjs +113 -32
- 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/{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.js
CHANGED
|
@@ -61,6 +61,8 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
|
61
61
|
UriConstants2["UPLOAD_FILE_EXCEL_PATH"] = `/upload/file`;
|
|
62
62
|
UriConstants2["UPLOAD_FILE_PATH"] = `/web/binary/upload_attachment`;
|
|
63
63
|
UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
|
|
64
|
+
UriConstants2["GET_THREAD_DATA"] = `/mail/thread/data`;
|
|
65
|
+
UriConstants2["GET_THREAD_MESSAGES"] = `/mail/thread/messages`;
|
|
64
66
|
UriConstants2["SENT_MESSAGE"] = `/chatter/message/post`;
|
|
65
67
|
UriConstants2["UPLOAD_IMAGE"] = `/mail/attachment/upload`;
|
|
66
68
|
UriConstants2["DELETE_MESSAGE"] = `/chatter/message/update_content`;
|
|
@@ -2956,189 +2958,195 @@ var import_react_query33 = require("@tanstack/react-query");
|
|
|
2956
2958
|
// src/hooks/form/use-upload-file.ts
|
|
2957
2959
|
var import_react_query34 = require("@tanstack/react-query");
|
|
2958
2960
|
|
|
2959
|
-
// src/hooks/
|
|
2961
|
+
// src/hooks/form/use-get-thread-data.ts
|
|
2960
2962
|
var import_react_query35 = require("@tanstack/react-query");
|
|
2961
2963
|
|
|
2962
|
-
// src/hooks/
|
|
2964
|
+
// src/hooks/form/use-get-thread-messages.ts
|
|
2963
2965
|
var import_react_query36 = require("@tanstack/react-query");
|
|
2964
2966
|
|
|
2965
|
-
// src/hooks/model/use-
|
|
2967
|
+
// src/hooks/model/use-delete.ts
|
|
2966
2968
|
var import_react_query37 = require("@tanstack/react-query");
|
|
2967
2969
|
|
|
2968
|
-
// src/hooks/model/use-get-
|
|
2970
|
+
// src/hooks/model/use-get-all.ts
|
|
2969
2971
|
var import_react_query38 = require("@tanstack/react-query");
|
|
2970
2972
|
|
|
2971
|
-
// src/hooks/model/use-get-
|
|
2973
|
+
// src/hooks/model/use-get-conversion-rate.ts
|
|
2972
2974
|
var import_react_query39 = require("@tanstack/react-query");
|
|
2973
2975
|
|
|
2974
|
-
// src/hooks/model/use-get-
|
|
2976
|
+
// src/hooks/model/use-get-currency.ts
|
|
2975
2977
|
var import_react_query40 = require("@tanstack/react-query");
|
|
2976
2978
|
|
|
2977
|
-
// src/hooks/model/use-get-
|
|
2979
|
+
// src/hooks/model/use-get-detail.ts
|
|
2978
2980
|
var import_react_query41 = require("@tanstack/react-query");
|
|
2979
2981
|
|
|
2980
|
-
// src/hooks/model/use-onchange
|
|
2982
|
+
// src/hooks/model/use-get-field-onchange.ts
|
|
2981
2983
|
var import_react_query42 = require("@tanstack/react-query");
|
|
2982
2984
|
|
|
2983
|
-
// src/hooks/model/use-
|
|
2985
|
+
// src/hooks/model/use-get-list-my-bank-account.ts
|
|
2984
2986
|
var import_react_query43 = require("@tanstack/react-query");
|
|
2985
2987
|
|
|
2986
|
-
// src/hooks/
|
|
2988
|
+
// src/hooks/model/use-onchange-form.ts
|
|
2987
2989
|
var import_react_query44 = require("@tanstack/react-query");
|
|
2988
2990
|
|
|
2989
|
-
// src/hooks/
|
|
2991
|
+
// src/hooks/model/use-save.ts
|
|
2990
2992
|
var import_react_query45 = require("@tanstack/react-query");
|
|
2991
2993
|
|
|
2992
|
-
// src/hooks/user/use-
|
|
2994
|
+
// src/hooks/user/use-get-profile.ts
|
|
2993
2995
|
var import_react_query46 = require("@tanstack/react-query");
|
|
2994
2996
|
|
|
2995
|
-
// src/hooks/
|
|
2997
|
+
// src/hooks/user/use-get-user.ts
|
|
2996
2998
|
var import_react_query47 = require("@tanstack/react-query");
|
|
2997
2999
|
|
|
2998
|
-
// src/hooks/
|
|
3000
|
+
// src/hooks/user/use-switch-locale.ts
|
|
2999
3001
|
var import_react_query48 = require("@tanstack/react-query");
|
|
3000
3002
|
|
|
3001
|
-
// src/hooks/view/use-
|
|
3003
|
+
// src/hooks/view/use-button.ts
|
|
3002
3004
|
var import_react_query49 = require("@tanstack/react-query");
|
|
3003
3005
|
|
|
3004
|
-
// src/hooks/view/use-
|
|
3006
|
+
// src/hooks/view/use-duplicate-record.ts
|
|
3005
3007
|
var import_react_query50 = require("@tanstack/react-query");
|
|
3006
3008
|
|
|
3007
|
-
// src/hooks/view/use-get-
|
|
3009
|
+
// src/hooks/view/use-get-action-detail.ts
|
|
3008
3010
|
var import_react_query51 = require("@tanstack/react-query");
|
|
3009
3011
|
|
|
3010
|
-
// src/hooks/view/use-get-
|
|
3012
|
+
// src/hooks/view/use-get-calendar.ts
|
|
3011
3013
|
var import_react_query52 = require("@tanstack/react-query");
|
|
3012
3014
|
|
|
3013
|
-
// src/hooks/view/use-get-
|
|
3015
|
+
// src/hooks/view/use-get-groups.ts
|
|
3014
3016
|
var import_react_query53 = require("@tanstack/react-query");
|
|
3015
3017
|
|
|
3016
|
-
// src/hooks/view/use-get-
|
|
3018
|
+
// src/hooks/view/use-get-list-data.ts
|
|
3017
3019
|
var import_react_query54 = require("@tanstack/react-query");
|
|
3018
3020
|
|
|
3019
|
-
// src/hooks/view/use-get-
|
|
3021
|
+
// src/hooks/view/use-get-menu.ts
|
|
3020
3022
|
var import_react_query55 = require("@tanstack/react-query");
|
|
3021
3023
|
|
|
3022
|
-
// src/hooks/view/use-get-
|
|
3024
|
+
// src/hooks/view/use-get-print-report.ts
|
|
3023
3025
|
var import_react_query56 = require("@tanstack/react-query");
|
|
3024
3026
|
|
|
3025
|
-
// src/hooks/view/use-get-
|
|
3027
|
+
// src/hooks/view/use-get-progress-bar.ts
|
|
3026
3028
|
var import_react_query57 = require("@tanstack/react-query");
|
|
3027
3029
|
|
|
3028
|
-
// src/hooks/view/use-
|
|
3030
|
+
// src/hooks/view/use-get-selection.ts
|
|
3029
3031
|
var import_react_query58 = require("@tanstack/react-query");
|
|
3030
3032
|
|
|
3031
|
-
// src/hooks/view/use-
|
|
3033
|
+
// src/hooks/view/use-get-view.ts
|
|
3032
3034
|
var import_react_query59 = require("@tanstack/react-query");
|
|
3033
3035
|
|
|
3034
|
-
// src/hooks/view/use-
|
|
3036
|
+
// src/hooks/view/use-load-action.ts
|
|
3035
3037
|
var import_react_query60 = require("@tanstack/react-query");
|
|
3036
3038
|
|
|
3037
|
-
// src/hooks/view/use-
|
|
3039
|
+
// src/hooks/view/use-load-message.ts
|
|
3038
3040
|
var import_react_query61 = require("@tanstack/react-query");
|
|
3039
3041
|
|
|
3040
|
-
// src/hooks/view/use-
|
|
3042
|
+
// src/hooks/view/use-print.ts
|
|
3041
3043
|
var import_react_query62 = require("@tanstack/react-query");
|
|
3042
3044
|
|
|
3043
|
-
// src/hooks/view/use-
|
|
3045
|
+
// src/hooks/view/use-remove-row.ts
|
|
3044
3046
|
var import_react_query63 = require("@tanstack/react-query");
|
|
3045
3047
|
|
|
3046
|
-
// src/hooks/view/use-
|
|
3048
|
+
// src/hooks/view/use-resequence.ts
|
|
3047
3049
|
var import_react_query64 = require("@tanstack/react-query");
|
|
3048
3050
|
|
|
3049
|
-
// src/hooks/view/use-
|
|
3051
|
+
// src/hooks/view/use-run-action.ts
|
|
3050
3052
|
var import_react_query65 = require("@tanstack/react-query");
|
|
3051
3053
|
|
|
3052
|
-
// src/hooks/view/
|
|
3054
|
+
// src/hooks/view/use-signin-sso.ts
|
|
3053
3055
|
var import_react_query66 = require("@tanstack/react-query");
|
|
3054
3056
|
|
|
3055
|
-
// src/hooks/view/use-
|
|
3057
|
+
// src/hooks/view/use-verify-2FA.ts
|
|
3056
3058
|
var import_react_query67 = require("@tanstack/react-query");
|
|
3057
3059
|
|
|
3058
|
-
// src/hooks/view/
|
|
3060
|
+
// src/hooks/view/uset-get-2FA-method.ts
|
|
3059
3061
|
var import_react_query68 = require("@tanstack/react-query");
|
|
3060
3062
|
|
|
3061
|
-
// src/hooks/view/use-
|
|
3063
|
+
// src/hooks/view/use-grant-access.ts
|
|
3062
3064
|
var import_react_query69 = require("@tanstack/react-query");
|
|
3063
3065
|
|
|
3064
|
-
// src/hooks/view/use-
|
|
3066
|
+
// src/hooks/view/use-remove-totp-setup.ts
|
|
3065
3067
|
var import_react_query70 = require("@tanstack/react-query");
|
|
3066
3068
|
|
|
3067
|
-
// src/hooks/view/use-
|
|
3069
|
+
// src/hooks/view/use-request-setup-totp.ts
|
|
3068
3070
|
var import_react_query71 = require("@tanstack/react-query");
|
|
3069
3071
|
|
|
3070
|
-
// src/hooks/view/use-
|
|
3072
|
+
// src/hooks/view/use-settings-web-read-2fa.ts
|
|
3071
3073
|
var import_react_query72 = require("@tanstack/react-query");
|
|
3072
3074
|
|
|
3073
|
-
// src/hooks/view/use-
|
|
3075
|
+
// src/hooks/view/use-verify-totp.ts
|
|
3074
3076
|
var import_react_query73 = require("@tanstack/react-query");
|
|
3075
3077
|
|
|
3076
|
-
// src/hooks/view/use-
|
|
3078
|
+
// src/hooks/view/use-get-a-session.ts
|
|
3077
3079
|
var import_react_query74 = require("@tanstack/react-query");
|
|
3078
3080
|
|
|
3079
|
-
// src/hooks/view/use-
|
|
3081
|
+
// src/hooks/view/use-update-closed-session.ts
|
|
3080
3082
|
var import_react_query75 = require("@tanstack/react-query");
|
|
3081
3083
|
|
|
3082
|
-
// src/hooks/view/use-
|
|
3084
|
+
// src/hooks/view/use-manage-session.ts
|
|
3083
3085
|
var import_react_query76 = require("@tanstack/react-query");
|
|
3084
3086
|
|
|
3085
|
-
// src/hooks/view/use-
|
|
3087
|
+
// src/hooks/view/use-handle-closing-session.ts
|
|
3086
3088
|
var import_react_query77 = require("@tanstack/react-query");
|
|
3087
3089
|
|
|
3088
|
-
// src/hooks/view/use-create-
|
|
3090
|
+
// src/hooks/view/use-create-session.ts
|
|
3089
3091
|
var import_react_query78 = require("@tanstack/react-query");
|
|
3090
3092
|
|
|
3091
|
-
// src/hooks/view/use-get-
|
|
3093
|
+
// src/hooks/view/use-get-pos.ts
|
|
3092
3094
|
var import_react_query79 = require("@tanstack/react-query");
|
|
3093
3095
|
|
|
3094
|
-
// src/hooks/view/use-
|
|
3096
|
+
// src/hooks/view/use-create-entity.ts
|
|
3095
3097
|
var import_react_query80 = require("@tanstack/react-query");
|
|
3096
3098
|
|
|
3097
|
-
// src/hooks/view/use-
|
|
3099
|
+
// src/hooks/view/use-get-list.ts
|
|
3098
3100
|
var import_react_query81 = require("@tanstack/react-query");
|
|
3099
3101
|
|
|
3100
|
-
// src/hooks/view/use-
|
|
3102
|
+
// src/hooks/view/use-update-entity.ts
|
|
3101
3103
|
var import_react_query82 = require("@tanstack/react-query");
|
|
3102
3104
|
|
|
3103
|
-
// src/hooks/view/use-
|
|
3105
|
+
// src/hooks/view/use-delete-entity.ts
|
|
3104
3106
|
var import_react_query83 = require("@tanstack/react-query");
|
|
3105
3107
|
|
|
3106
|
-
// src/hooks/view/use-
|
|
3108
|
+
// src/hooks/view/use-load-data-pos-session.ts
|
|
3107
3109
|
var import_react_query84 = require("@tanstack/react-query");
|
|
3108
3110
|
|
|
3109
|
-
// src/hooks/view/use-
|
|
3111
|
+
// src/hooks/view/use-manage-on-change.ts
|
|
3110
3112
|
var import_react_query85 = require("@tanstack/react-query");
|
|
3111
3113
|
|
|
3112
|
-
// src/hooks/view/use-
|
|
3114
|
+
// src/hooks/view/use-gen-serial-number.ts
|
|
3113
3115
|
var import_react_query86 = require("@tanstack/react-query");
|
|
3114
3116
|
|
|
3115
|
-
// src/hooks/view/use-
|
|
3117
|
+
// src/hooks/view/use-get-order-line.ts
|
|
3116
3118
|
var import_react_query87 = require("@tanstack/react-query");
|
|
3117
3119
|
|
|
3118
|
-
// src/hooks/view/use-
|
|
3120
|
+
// src/hooks/view/use-get-product-image.ts
|
|
3119
3121
|
var import_react_query88 = require("@tanstack/react-query");
|
|
3120
3122
|
|
|
3121
|
-
// src/hooks/view/use-
|
|
3123
|
+
// src/hooks/view/use-add-entity.ts
|
|
3122
3124
|
var import_react_query89 = require("@tanstack/react-query");
|
|
3123
3125
|
|
|
3124
|
-
// src/hooks/view/use-
|
|
3126
|
+
// src/hooks/view/use-check-payment.ts
|
|
3125
3127
|
var import_react_query90 = require("@tanstack/react-query");
|
|
3126
3128
|
|
|
3127
|
-
// src/hooks/view/use-
|
|
3129
|
+
// src/hooks/view/use-handle-close-session.ts
|
|
3128
3130
|
var import_react_query91 = require("@tanstack/react-query");
|
|
3129
3131
|
|
|
3130
|
-
// src/hooks/view/use-
|
|
3132
|
+
// src/hooks/view/use-handle-closing-detail-session.ts
|
|
3131
3133
|
var import_react_query92 = require("@tanstack/react-query");
|
|
3132
3134
|
|
|
3133
|
-
// src/hooks/view/
|
|
3135
|
+
// src/hooks/view/use-create-pos-config.ts
|
|
3134
3136
|
var import_react_query93 = require("@tanstack/react-query");
|
|
3135
3137
|
|
|
3136
|
-
// src/hooks/view/
|
|
3138
|
+
// src/hooks/view/use-search-journal.ts
|
|
3137
3139
|
var import_react_query94 = require("@tanstack/react-query");
|
|
3138
3140
|
|
|
3139
|
-
// src/hooks/view/
|
|
3141
|
+
// src/hooks/view/useGetPreparaionDisplayData.ts
|
|
3140
3142
|
var import_react_query95 = require("@tanstack/react-query");
|
|
3141
3143
|
|
|
3144
|
+
// src/hooks/view/useChangeOrderPreparaionState.ts
|
|
3145
|
+
var import_react_query96 = require("@tanstack/react-query");
|
|
3146
|
+
|
|
3147
|
+
// src/hooks/view/use-update-order-status.ts
|
|
3148
|
+
var import_react_query97 = require("@tanstack/react-query");
|
|
3149
|
+
|
|
3142
3150
|
// src/provider/service-provider.tsx
|
|
3143
3151
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
3144
3152
|
var ServiceContext = (0, import_react4.createContext)(null);
|
|
@@ -3916,6 +3924,39 @@ function useFormService() {
|
|
|
3916
3924
|
},
|
|
3917
3925
|
[env]
|
|
3918
3926
|
);
|
|
3927
|
+
const getThreadData = (0, import_react10.useCallback)(
|
|
3928
|
+
async ({ data }) => {
|
|
3929
|
+
const jsonData = {
|
|
3930
|
+
thread_id: data?.thread_id,
|
|
3931
|
+
thread_model: data?.thread_model,
|
|
3932
|
+
limit: data?.limit,
|
|
3933
|
+
with_context: data?.with_context,
|
|
3934
|
+
request_list: data?.request_list
|
|
3935
|
+
};
|
|
3936
|
+
return env.requests.post("/mail/thread/data" /* GET_THREAD_DATA */, jsonData, {
|
|
3937
|
+
headers: {
|
|
3938
|
+
"Content-Type": "application/json"
|
|
3939
|
+
}
|
|
3940
|
+
});
|
|
3941
|
+
},
|
|
3942
|
+
[env]
|
|
3943
|
+
);
|
|
3944
|
+
const getThreadMessages = (0, import_react10.useCallback)(
|
|
3945
|
+
async ({ data }) => {
|
|
3946
|
+
const jsonData = {
|
|
3947
|
+
thread_id: data?.thread_id,
|
|
3948
|
+
thread_model: data?.thread_model,
|
|
3949
|
+
limit: data?.limit,
|
|
3950
|
+
with_context: data?.with_context
|
|
3951
|
+
};
|
|
3952
|
+
return env.requests.post("/mail/thread/messages" /* GET_THREAD_MESSAGES */, jsonData, {
|
|
3953
|
+
headers: {
|
|
3954
|
+
"Content-Type": "application/json"
|
|
3955
|
+
}
|
|
3956
|
+
});
|
|
3957
|
+
},
|
|
3958
|
+
[env]
|
|
3959
|
+
);
|
|
3919
3960
|
const sentComment = (0, import_react10.useCallback)(
|
|
3920
3961
|
async ({ data }) => {
|
|
3921
3962
|
const jsonData = {
|
|
@@ -4038,7 +4079,9 @@ function useFormService() {
|
|
|
4038
4079
|
uploadImage,
|
|
4039
4080
|
getFormView,
|
|
4040
4081
|
changeStatus,
|
|
4041
|
-
uploadFile
|
|
4082
|
+
uploadFile,
|
|
4083
|
+
getThreadMessages,
|
|
4084
|
+
getThreadData
|
|
4042
4085
|
};
|
|
4043
4086
|
}
|
|
4044
4087
|
|
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 {
|
|
@@ -102,6 +102,13 @@ type GetSelectionType = {
|
|
|
102
102
|
model: string;
|
|
103
103
|
specification?: any;
|
|
104
104
|
};
|
|
105
|
+
interface TThreadData {
|
|
106
|
+
thread_id?: number;
|
|
107
|
+
thread_model?: string;
|
|
108
|
+
limit?: number;
|
|
109
|
+
request_list?: string[];
|
|
110
|
+
with_context?: Record<string, any>;
|
|
111
|
+
}
|
|
105
112
|
|
|
106
113
|
type View = [number | boolean, string];
|
|
107
114
|
type Option = {
|
|
@@ -119,4 +126,4 @@ interface GetViewParams {
|
|
|
119
126
|
xNode?: string;
|
|
120
127
|
}
|
|
121
128
|
|
|
122
|
-
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, updatePasswordBody as u };
|
|
129
|
+
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, TThreadData as T, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, updatePasswordBody as u };
|
|
@@ -102,6 +102,13 @@ type GetSelectionType = {
|
|
|
102
102
|
model: string;
|
|
103
103
|
specification?: any;
|
|
104
104
|
};
|
|
105
|
+
interface TThreadData {
|
|
106
|
+
thread_id?: number;
|
|
107
|
+
thread_model?: string;
|
|
108
|
+
limit?: number;
|
|
109
|
+
request_list?: string[];
|
|
110
|
+
with_context?: Record<string, any>;
|
|
111
|
+
}
|
|
105
112
|
|
|
106
113
|
type View = [number | boolean, string];
|
|
107
114
|
type Option = {
|
|
@@ -119,4 +126,4 @@ interface GetViewParams {
|
|
|
119
126
|
xNode?: string;
|
|
120
127
|
}
|
|
121
128
|
|
|
122
|
-
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, updatePasswordBody as u };
|
|
129
|
+
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, TThreadData as T, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, updatePasswordBody as u };
|