@fctc/interface-logic 3.3.7 → 3.3.9
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 +17 -3
- package/dist/hooks.d.ts +17 -3
- package/dist/hooks.js +184 -131
- package/dist/hooks.mjs +89 -37
- package/dist/provider.d.mts +3 -2
- package/dist/provider.d.ts +3 -2
- package/dist/provider.js +183 -131
- package/dist/provider.mjs +89 -37
- package/dist/services.d.mts +3 -2
- package/dist/services.d.ts +3 -2
- package/dist/services.js +88 -66
- package/dist/services.mjs +41 -19
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{view-type-LCI2KPYD.d.mts → view-type-DUiFtWlQ.d.mts} +7 -1
- package/dist/{view-type-LCI2KPYD.d.ts → view-type-DUiFtWlQ.d.ts} +7 -1
- package/package.json +90 -90
package/dist/services.js
CHANGED
|
@@ -2964,192 +2964,195 @@ var import_react_query35 = require("@tanstack/react-query");
|
|
|
2964
2964
|
// src/hooks/form/use-get-thread-messages.ts
|
|
2965
2965
|
var import_react_query36 = require("@tanstack/react-query");
|
|
2966
2966
|
|
|
2967
|
-
// src/hooks/
|
|
2967
|
+
// src/hooks/form/use-get-external-tabs.ts
|
|
2968
2968
|
var import_react_query37 = require("@tanstack/react-query");
|
|
2969
2969
|
|
|
2970
|
-
// src/hooks/model/use-
|
|
2970
|
+
// src/hooks/model/use-delete.ts
|
|
2971
2971
|
var import_react_query38 = require("@tanstack/react-query");
|
|
2972
2972
|
|
|
2973
|
-
// src/hooks/model/use-get-
|
|
2973
|
+
// src/hooks/model/use-get-all.ts
|
|
2974
2974
|
var import_react_query39 = require("@tanstack/react-query");
|
|
2975
2975
|
|
|
2976
|
-
// src/hooks/model/use-get-
|
|
2976
|
+
// src/hooks/model/use-get-conversion-rate.ts
|
|
2977
2977
|
var import_react_query40 = require("@tanstack/react-query");
|
|
2978
2978
|
|
|
2979
|
-
// src/hooks/model/use-get-
|
|
2979
|
+
// src/hooks/model/use-get-currency.ts
|
|
2980
2980
|
var import_react_query41 = require("@tanstack/react-query");
|
|
2981
2981
|
|
|
2982
|
-
// src/hooks/model/use-get-
|
|
2982
|
+
// src/hooks/model/use-get-detail.ts
|
|
2983
2983
|
var import_react_query42 = require("@tanstack/react-query");
|
|
2984
2984
|
|
|
2985
|
-
// src/hooks/model/use-get-
|
|
2985
|
+
// src/hooks/model/use-get-field-onchange.ts
|
|
2986
2986
|
var import_react_query43 = require("@tanstack/react-query");
|
|
2987
2987
|
|
|
2988
|
-
// src/hooks/model/use-
|
|
2988
|
+
// src/hooks/model/use-get-list-my-bank-account.ts
|
|
2989
2989
|
var import_react_query44 = require("@tanstack/react-query");
|
|
2990
2990
|
|
|
2991
|
-
// src/hooks/model/use-
|
|
2991
|
+
// src/hooks/model/use-onchange-form.ts
|
|
2992
2992
|
var import_react_query45 = require("@tanstack/react-query");
|
|
2993
2993
|
|
|
2994
|
-
// src/hooks/
|
|
2994
|
+
// src/hooks/model/use-save.ts
|
|
2995
2995
|
var import_react_query46 = require("@tanstack/react-query");
|
|
2996
2996
|
|
|
2997
|
-
// src/hooks/user/use-get-
|
|
2997
|
+
// src/hooks/user/use-get-profile.ts
|
|
2998
2998
|
var import_react_query47 = require("@tanstack/react-query");
|
|
2999
2999
|
|
|
3000
|
-
// src/hooks/user/use-
|
|
3000
|
+
// src/hooks/user/use-get-user.ts
|
|
3001
3001
|
var import_react_query48 = require("@tanstack/react-query");
|
|
3002
3002
|
|
|
3003
|
-
// src/hooks/
|
|
3003
|
+
// src/hooks/user/use-switch-locale.ts
|
|
3004
3004
|
var import_react_query49 = require("@tanstack/react-query");
|
|
3005
3005
|
|
|
3006
|
-
// src/hooks/view/use-
|
|
3006
|
+
// src/hooks/view/use-button.ts
|
|
3007
3007
|
var import_react_query50 = require("@tanstack/react-query");
|
|
3008
3008
|
|
|
3009
|
-
// src/hooks/view/use-
|
|
3009
|
+
// src/hooks/view/use-duplicate-record.ts
|
|
3010
3010
|
var import_react_query51 = require("@tanstack/react-query");
|
|
3011
3011
|
|
|
3012
|
-
// src/hooks/view/use-get-
|
|
3012
|
+
// src/hooks/view/use-get-action-detail.ts
|
|
3013
3013
|
var import_react_query52 = require("@tanstack/react-query");
|
|
3014
3014
|
|
|
3015
|
-
// src/hooks/view/use-get-
|
|
3015
|
+
// src/hooks/view/use-get-calendar.ts
|
|
3016
3016
|
var import_react_query53 = require("@tanstack/react-query");
|
|
3017
3017
|
|
|
3018
|
-
// src/hooks/view/use-get-
|
|
3018
|
+
// src/hooks/view/use-get-groups.ts
|
|
3019
3019
|
var import_react_query54 = require("@tanstack/react-query");
|
|
3020
3020
|
|
|
3021
|
-
// src/hooks/view/use-get-
|
|
3021
|
+
// src/hooks/view/use-get-list-data.ts
|
|
3022
3022
|
var import_react_query55 = require("@tanstack/react-query");
|
|
3023
3023
|
|
|
3024
|
-
// src/hooks/view/use-get-
|
|
3024
|
+
// src/hooks/view/use-get-menu.ts
|
|
3025
3025
|
var import_react_query56 = require("@tanstack/react-query");
|
|
3026
3026
|
|
|
3027
|
-
// src/hooks/view/use-get-
|
|
3027
|
+
// src/hooks/view/use-get-print-report.ts
|
|
3028
3028
|
var import_react_query57 = require("@tanstack/react-query");
|
|
3029
3029
|
|
|
3030
|
-
// src/hooks/view/use-get-
|
|
3030
|
+
// src/hooks/view/use-get-progress-bar.ts
|
|
3031
3031
|
var import_react_query58 = require("@tanstack/react-query");
|
|
3032
3032
|
|
|
3033
|
-
// src/hooks/view/use-get-
|
|
3033
|
+
// src/hooks/view/use-get-selection.ts
|
|
3034
3034
|
var import_react_query59 = require("@tanstack/react-query");
|
|
3035
3035
|
|
|
3036
|
-
// src/hooks/view/use-
|
|
3036
|
+
// src/hooks/view/use-get-view.ts
|
|
3037
3037
|
var import_react_query60 = require("@tanstack/react-query");
|
|
3038
3038
|
|
|
3039
|
-
// src/hooks/view/use-load-
|
|
3039
|
+
// src/hooks/view/use-load-action.ts
|
|
3040
3040
|
var import_react_query61 = require("@tanstack/react-query");
|
|
3041
3041
|
|
|
3042
|
-
// src/hooks/view/use-
|
|
3042
|
+
// src/hooks/view/use-load-message.ts
|
|
3043
3043
|
var import_react_query62 = require("@tanstack/react-query");
|
|
3044
3044
|
|
|
3045
|
-
// src/hooks/view/use-
|
|
3045
|
+
// src/hooks/view/use-print.ts
|
|
3046
3046
|
var import_react_query63 = require("@tanstack/react-query");
|
|
3047
3047
|
|
|
3048
|
-
// src/hooks/view/use-
|
|
3048
|
+
// src/hooks/view/use-remove-row.ts
|
|
3049
3049
|
var import_react_query64 = require("@tanstack/react-query");
|
|
3050
3050
|
|
|
3051
|
-
// src/hooks/view/use-
|
|
3051
|
+
// src/hooks/view/use-resequence.ts
|
|
3052
3052
|
var import_react_query65 = require("@tanstack/react-query");
|
|
3053
3053
|
|
|
3054
|
-
// src/hooks/view/use-
|
|
3054
|
+
// src/hooks/view/use-run-action.ts
|
|
3055
3055
|
var import_react_query66 = require("@tanstack/react-query");
|
|
3056
3056
|
|
|
3057
|
-
// src/hooks/view/use-
|
|
3057
|
+
// src/hooks/view/use-signin-sso.ts
|
|
3058
3058
|
var import_react_query67 = require("@tanstack/react-query");
|
|
3059
3059
|
|
|
3060
|
-
// src/hooks/view/
|
|
3060
|
+
// src/hooks/view/use-verify-2FA.ts
|
|
3061
3061
|
var import_react_query68 = require("@tanstack/react-query");
|
|
3062
3062
|
|
|
3063
|
-
// src/hooks/view/
|
|
3063
|
+
// src/hooks/view/uset-get-2FA-method.ts
|
|
3064
3064
|
var import_react_query69 = require("@tanstack/react-query");
|
|
3065
3065
|
|
|
3066
|
-
// src/hooks/view/use-
|
|
3066
|
+
// src/hooks/view/use-grant-access.ts
|
|
3067
3067
|
var import_react_query70 = require("@tanstack/react-query");
|
|
3068
3068
|
|
|
3069
|
-
// src/hooks/view/use-
|
|
3069
|
+
// src/hooks/view/use-remove-totp-setup.ts
|
|
3070
3070
|
var import_react_query71 = require("@tanstack/react-query");
|
|
3071
3071
|
|
|
3072
|
-
// src/hooks/view/use-
|
|
3072
|
+
// src/hooks/view/use-request-setup-totp.ts
|
|
3073
3073
|
var import_react_query72 = require("@tanstack/react-query");
|
|
3074
3074
|
|
|
3075
|
-
// src/hooks/view/use-
|
|
3075
|
+
// src/hooks/view/use-settings-web-read-2fa.ts
|
|
3076
3076
|
var import_react_query73 = require("@tanstack/react-query");
|
|
3077
3077
|
|
|
3078
|
-
// src/hooks/view/use-
|
|
3078
|
+
// src/hooks/view/use-verify-totp.ts
|
|
3079
3079
|
var import_react_query74 = require("@tanstack/react-query");
|
|
3080
3080
|
|
|
3081
|
-
// src/hooks/view/use-
|
|
3081
|
+
// src/hooks/view/use-get-a-session.ts
|
|
3082
3082
|
var import_react_query75 = require("@tanstack/react-query");
|
|
3083
3083
|
|
|
3084
|
-
// src/hooks/view/use-
|
|
3084
|
+
// src/hooks/view/use-update-closed-session.ts
|
|
3085
3085
|
var import_react_query76 = require("@tanstack/react-query");
|
|
3086
3086
|
|
|
3087
|
-
// src/hooks/view/use-
|
|
3087
|
+
// src/hooks/view/use-manage-session.ts
|
|
3088
3088
|
var import_react_query77 = require("@tanstack/react-query");
|
|
3089
3089
|
|
|
3090
|
-
// src/hooks/view/use-
|
|
3090
|
+
// src/hooks/view/use-handle-closing-session.ts
|
|
3091
3091
|
var import_react_query78 = require("@tanstack/react-query");
|
|
3092
3092
|
|
|
3093
|
-
// src/hooks/view/use-
|
|
3093
|
+
// src/hooks/view/use-create-session.ts
|
|
3094
3094
|
var import_react_query79 = require("@tanstack/react-query");
|
|
3095
3095
|
|
|
3096
|
-
// src/hooks/view/use-
|
|
3096
|
+
// src/hooks/view/use-get-pos.ts
|
|
3097
3097
|
var import_react_query80 = require("@tanstack/react-query");
|
|
3098
3098
|
|
|
3099
|
-
// src/hooks/view/use-
|
|
3099
|
+
// src/hooks/view/use-create-entity.ts
|
|
3100
3100
|
var import_react_query81 = require("@tanstack/react-query");
|
|
3101
3101
|
|
|
3102
|
-
// src/hooks/view/use-
|
|
3102
|
+
// src/hooks/view/use-get-list.ts
|
|
3103
3103
|
var import_react_query82 = require("@tanstack/react-query");
|
|
3104
3104
|
|
|
3105
|
-
// src/hooks/view/use-
|
|
3105
|
+
// src/hooks/view/use-update-entity.ts
|
|
3106
3106
|
var import_react_query83 = require("@tanstack/react-query");
|
|
3107
3107
|
|
|
3108
|
-
// src/hooks/view/use-
|
|
3108
|
+
// src/hooks/view/use-delete-entity.ts
|
|
3109
3109
|
var import_react_query84 = require("@tanstack/react-query");
|
|
3110
3110
|
|
|
3111
|
-
// src/hooks/view/use-
|
|
3111
|
+
// src/hooks/view/use-load-data-pos-session.ts
|
|
3112
3112
|
var import_react_query85 = require("@tanstack/react-query");
|
|
3113
3113
|
|
|
3114
|
-
// src/hooks/view/use-
|
|
3114
|
+
// src/hooks/view/use-manage-on-change.ts
|
|
3115
3115
|
var import_react_query86 = require("@tanstack/react-query");
|
|
3116
3116
|
|
|
3117
|
-
// src/hooks/view/use-
|
|
3117
|
+
// src/hooks/view/use-gen-serial-number.ts
|
|
3118
3118
|
var import_react_query87 = require("@tanstack/react-query");
|
|
3119
3119
|
|
|
3120
|
-
// src/hooks/view/use-get-
|
|
3120
|
+
// src/hooks/view/use-get-order-line.ts
|
|
3121
3121
|
var import_react_query88 = require("@tanstack/react-query");
|
|
3122
3122
|
|
|
3123
|
-
// src/hooks/view/use-
|
|
3123
|
+
// src/hooks/view/use-get-product-image.ts
|
|
3124
3124
|
var import_react_query89 = require("@tanstack/react-query");
|
|
3125
3125
|
|
|
3126
|
-
// src/hooks/view/use-
|
|
3126
|
+
// src/hooks/view/use-add-entity.ts
|
|
3127
3127
|
var import_react_query90 = require("@tanstack/react-query");
|
|
3128
3128
|
|
|
3129
|
-
// src/hooks/view/use-
|
|
3129
|
+
// src/hooks/view/use-check-payment.ts
|
|
3130
3130
|
var import_react_query91 = require("@tanstack/react-query");
|
|
3131
3131
|
|
|
3132
|
-
// src/hooks/view/use-handle-
|
|
3132
|
+
// src/hooks/view/use-handle-close-session.ts
|
|
3133
3133
|
var import_react_query92 = require("@tanstack/react-query");
|
|
3134
3134
|
|
|
3135
|
-
// src/hooks/view/use-
|
|
3135
|
+
// src/hooks/view/use-handle-closing-detail-session.ts
|
|
3136
3136
|
var import_react_query93 = require("@tanstack/react-query");
|
|
3137
3137
|
|
|
3138
|
-
// src/hooks/view/use-
|
|
3138
|
+
// src/hooks/view/use-create-pos-config.ts
|
|
3139
3139
|
var import_react_query94 = require("@tanstack/react-query");
|
|
3140
3140
|
|
|
3141
|
-
// src/hooks/view/
|
|
3141
|
+
// src/hooks/view/use-search-journal.ts
|
|
3142
3142
|
var import_react_query95 = require("@tanstack/react-query");
|
|
3143
3143
|
|
|
3144
|
-
// src/hooks/view/
|
|
3144
|
+
// src/hooks/view/useGetPreparaionDisplayData.ts
|
|
3145
3145
|
var import_react_query96 = require("@tanstack/react-query");
|
|
3146
3146
|
|
|
3147
|
-
// src/hooks/view/
|
|
3147
|
+
// src/hooks/view/useChangeOrderPreparaionState.ts
|
|
3148
3148
|
var import_react_query97 = require("@tanstack/react-query");
|
|
3149
3149
|
|
|
3150
|
-
// src/hooks/view/use-
|
|
3150
|
+
// src/hooks/view/use-update-order-status.ts
|
|
3151
3151
|
var import_react_query98 = require("@tanstack/react-query");
|
|
3152
3152
|
|
|
3153
|
+
// src/hooks/view/use-process-order.ts
|
|
3154
|
+
var import_react_query99 = require("@tanstack/react-query");
|
|
3155
|
+
|
|
3153
3156
|
// src/provider/service-provider.tsx
|
|
3154
3157
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
3155
3158
|
var ServiceContext = (0, import_react4.createContext)(null);
|
|
@@ -4094,6 +4097,25 @@ function useFormService() {
|
|
|
4094
4097
|
},
|
|
4095
4098
|
[env]
|
|
4096
4099
|
);
|
|
4100
|
+
const getExternalTab = (0, import_react10.useCallback)(
|
|
4101
|
+
async ({ method, context, service, xNode }) => {
|
|
4102
|
+
return env?.requests?.post(
|
|
4103
|
+
"/call" /* CALL_PATH */,
|
|
4104
|
+
{
|
|
4105
|
+
method,
|
|
4106
|
+
with_context: context
|
|
4107
|
+
},
|
|
4108
|
+
{
|
|
4109
|
+
headers: {
|
|
4110
|
+
"Content-Type": "application/json",
|
|
4111
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4112
|
+
}
|
|
4113
|
+
},
|
|
4114
|
+
service
|
|
4115
|
+
);
|
|
4116
|
+
},
|
|
4117
|
+
[env]
|
|
4118
|
+
);
|
|
4097
4119
|
return {
|
|
4098
4120
|
getComment,
|
|
4099
4121
|
sentComment,
|
|
@@ -4104,7 +4126,8 @@ function useFormService() {
|
|
|
4104
4126
|
changeStatus,
|
|
4105
4127
|
uploadFile,
|
|
4106
4128
|
getThreadMessages,
|
|
4107
|
-
getThreadData
|
|
4129
|
+
getThreadData,
|
|
4130
|
+
getExternalTab
|
|
4108
4131
|
};
|
|
4109
4132
|
}
|
|
4110
4133
|
|
|
@@ -4615,7 +4638,7 @@ function useUserService() {
|
|
|
4615
4638
|
[env]
|
|
4616
4639
|
);
|
|
4617
4640
|
const switchUserLocale = (0, import_react13.useCallback)(
|
|
4618
|
-
async ({ id, values, service
|
|
4641
|
+
async ({ id, values, service }) => {
|
|
4619
4642
|
const jsonData = {
|
|
4620
4643
|
model: "res.users",
|
|
4621
4644
|
domain: [["id", "=", id]],
|
|
@@ -4626,8 +4649,7 @@ function useUserService() {
|
|
|
4626
4649
|
jsonData,
|
|
4627
4650
|
{
|
|
4628
4651
|
headers: {
|
|
4629
|
-
"Content-Type": "application/json"
|
|
4630
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
4652
|
+
"Content-Type": "application/json"
|
|
4631
4653
|
}
|
|
4632
4654
|
},
|
|
4633
4655
|
service
|
package/dist/services.mjs
CHANGED
|
@@ -2920,26 +2920,29 @@ import { useQuery as useQuery6 } from "@tanstack/react-query";
|
|
|
2920
2920
|
// src/hooks/form/use-get-thread-messages.ts
|
|
2921
2921
|
import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
2922
2922
|
|
|
2923
|
+
// src/hooks/form/use-get-external-tabs.ts
|
|
2924
|
+
import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
2925
|
+
|
|
2923
2926
|
// src/hooks/model/use-delete.ts
|
|
2924
2927
|
import { useMutation as useMutation28 } from "@tanstack/react-query";
|
|
2925
2928
|
|
|
2926
2929
|
// src/hooks/model/use-get-all.ts
|
|
2927
|
-
import { useQuery as
|
|
2930
|
+
import { useQuery as useQuery9 } from "@tanstack/react-query";
|
|
2928
2931
|
|
|
2929
2932
|
// src/hooks/model/use-get-conversion-rate.ts
|
|
2930
|
-
import { useQuery as
|
|
2933
|
+
import { useQuery as useQuery10 } from "@tanstack/react-query";
|
|
2931
2934
|
|
|
2932
2935
|
// src/hooks/model/use-get-currency.ts
|
|
2933
|
-
import { useQuery as
|
|
2936
|
+
import { useQuery as useQuery11 } from "@tanstack/react-query";
|
|
2934
2937
|
|
|
2935
2938
|
// src/hooks/model/use-get-detail.ts
|
|
2936
2939
|
import { useMutation as useMutation29 } from "@tanstack/react-query";
|
|
2937
2940
|
|
|
2938
2941
|
// src/hooks/model/use-get-field-onchange.ts
|
|
2939
|
-
import { useQuery as
|
|
2942
|
+
import { useQuery as useQuery12 } from "@tanstack/react-query";
|
|
2940
2943
|
|
|
2941
2944
|
// src/hooks/model/use-get-list-my-bank-account.ts
|
|
2942
|
-
import { useQuery as
|
|
2945
|
+
import { useQuery as useQuery13 } from "@tanstack/react-query";
|
|
2943
2946
|
|
|
2944
2947
|
// src/hooks/model/use-onchange-form.ts
|
|
2945
2948
|
import { useMutation as useMutation30 } from "@tanstack/react-query";
|
|
@@ -2963,37 +2966,37 @@ import { useMutation as useMutation35 } from "@tanstack/react-query";
|
|
|
2963
2966
|
import { useMutation as useMutation36 } from "@tanstack/react-query";
|
|
2964
2967
|
|
|
2965
2968
|
// src/hooks/view/use-get-action-detail.ts
|
|
2966
|
-
import { useQuery as
|
|
2969
|
+
import { useQuery as useQuery14 } from "@tanstack/react-query";
|
|
2967
2970
|
|
|
2968
2971
|
// src/hooks/view/use-get-calendar.ts
|
|
2969
|
-
import { useQuery as
|
|
2972
|
+
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
|
2970
2973
|
|
|
2971
2974
|
// src/hooks/view/use-get-groups.ts
|
|
2972
|
-
import { useQuery as
|
|
2975
|
+
import { useQuery as useQuery16 } from "@tanstack/react-query";
|
|
2973
2976
|
|
|
2974
2977
|
// src/hooks/view/use-get-list-data.ts
|
|
2975
|
-
import { useQuery as
|
|
2978
|
+
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
|
2976
2979
|
|
|
2977
2980
|
// src/hooks/view/use-get-menu.ts
|
|
2978
|
-
import { useQuery as
|
|
2981
|
+
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
|
2979
2982
|
|
|
2980
2983
|
// src/hooks/view/use-get-print-report.ts
|
|
2981
2984
|
import { useMutation as useMutation37 } from "@tanstack/react-query";
|
|
2982
2985
|
|
|
2983
2986
|
// src/hooks/view/use-get-progress-bar.ts
|
|
2984
|
-
import { useQuery as
|
|
2987
|
+
import { useQuery as useQuery19 } from "@tanstack/react-query";
|
|
2985
2988
|
|
|
2986
2989
|
// src/hooks/view/use-get-selection.ts
|
|
2987
|
-
import { useQuery as
|
|
2990
|
+
import { useQuery as useQuery20 } from "@tanstack/react-query";
|
|
2988
2991
|
|
|
2989
2992
|
// src/hooks/view/use-get-view.ts
|
|
2990
|
-
import { useQuery as
|
|
2993
|
+
import { useQuery as useQuery21 } from "@tanstack/react-query";
|
|
2991
2994
|
|
|
2992
2995
|
// src/hooks/view/use-load-action.ts
|
|
2993
2996
|
import { useMutation as useMutation38 } from "@tanstack/react-query";
|
|
2994
2997
|
|
|
2995
2998
|
// src/hooks/view/use-load-message.ts
|
|
2996
|
-
import { useQuery as
|
|
2999
|
+
import { useQuery as useQuery22 } from "@tanstack/react-query";
|
|
2997
3000
|
|
|
2998
3001
|
// src/hooks/view/use-print.ts
|
|
2999
3002
|
import { useMutation as useMutation39 } from "@tanstack/react-query";
|
|
@@ -3002,7 +3005,7 @@ import { useMutation as useMutation39 } from "@tanstack/react-query";
|
|
|
3002
3005
|
import { useMutation as useMutation40 } from "@tanstack/react-query";
|
|
3003
3006
|
|
|
3004
3007
|
// src/hooks/view/use-resequence.ts
|
|
3005
|
-
import { useQuery as
|
|
3008
|
+
import { useQuery as useQuery23 } from "@tanstack/react-query";
|
|
3006
3009
|
|
|
3007
3010
|
// src/hooks/view/use-run-action.ts
|
|
3008
3011
|
import { useMutation as useMutation41 } from "@tanstack/react-query";
|
|
@@ -4050,6 +4053,25 @@ function useFormService() {
|
|
|
4050
4053
|
},
|
|
4051
4054
|
[env]
|
|
4052
4055
|
);
|
|
4056
|
+
const getExternalTab = useCallback6(
|
|
4057
|
+
async ({ method, context, service, xNode }) => {
|
|
4058
|
+
return env?.requests?.post(
|
|
4059
|
+
"/call" /* CALL_PATH */,
|
|
4060
|
+
{
|
|
4061
|
+
method,
|
|
4062
|
+
with_context: context
|
|
4063
|
+
},
|
|
4064
|
+
{
|
|
4065
|
+
headers: {
|
|
4066
|
+
"Content-Type": "application/json",
|
|
4067
|
+
...xNode ? { "X-Node": xNode } : {}
|
|
4068
|
+
}
|
|
4069
|
+
},
|
|
4070
|
+
service
|
|
4071
|
+
);
|
|
4072
|
+
},
|
|
4073
|
+
[env]
|
|
4074
|
+
);
|
|
4053
4075
|
return {
|
|
4054
4076
|
getComment,
|
|
4055
4077
|
sentComment,
|
|
@@ -4060,7 +4082,8 @@ function useFormService() {
|
|
|
4060
4082
|
changeStatus,
|
|
4061
4083
|
uploadFile,
|
|
4062
4084
|
getThreadMessages,
|
|
4063
|
-
getThreadData
|
|
4085
|
+
getThreadData,
|
|
4086
|
+
getExternalTab
|
|
4064
4087
|
};
|
|
4065
4088
|
}
|
|
4066
4089
|
|
|
@@ -4571,7 +4594,7 @@ function useUserService() {
|
|
|
4571
4594
|
[env]
|
|
4572
4595
|
);
|
|
4573
4596
|
const switchUserLocale = useCallback9(
|
|
4574
|
-
async ({ id, values, service
|
|
4597
|
+
async ({ id, values, service }) => {
|
|
4575
4598
|
const jsonData = {
|
|
4576
4599
|
model: "res.users",
|
|
4577
4600
|
domain: [["id", "=", id]],
|
|
@@ -4582,8 +4605,7 @@ function useUserService() {
|
|
|
4582
4605
|
jsonData,
|
|
4583
4606
|
{
|
|
4584
4607
|
headers: {
|
|
4585
|
-
"Content-Type": "application/json"
|
|
4586
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
4608
|
+
"Content-Type": "application/json"
|
|
4587
4609
|
}
|
|
4588
4610
|
},
|
|
4589
4611
|
service
|
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-DUiFtWlQ.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-DUiFtWlQ.js';
|
|
2
2
|
export { B as BaseModelInit } from './base-model-type-DD8uZnDP.js';
|
|
3
3
|
|
|
4
4
|
interface Config {
|
|
@@ -109,6 +109,12 @@ interface TThreadData {
|
|
|
109
109
|
request_list?: string[];
|
|
110
110
|
with_context?: Record<string, any>;
|
|
111
111
|
}
|
|
112
|
+
interface GetExternalTab {
|
|
113
|
+
method?: string;
|
|
114
|
+
context?: ContextApi;
|
|
115
|
+
service?: string;
|
|
116
|
+
xNode?: string;
|
|
117
|
+
}
|
|
112
118
|
|
|
113
119
|
type View = [number | boolean, string];
|
|
114
120
|
type Option = {
|
|
@@ -126,4 +132,4 @@ interface GetViewParams {
|
|
|
126
132
|
xNode?: string;
|
|
127
133
|
}
|
|
128
134
|
|
|
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 };
|
|
135
|
+
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, GetExternalTab as h, updatePasswordBody as u };
|
|
@@ -109,6 +109,12 @@ interface TThreadData {
|
|
|
109
109
|
request_list?: string[];
|
|
110
110
|
with_context?: Record<string, any>;
|
|
111
111
|
}
|
|
112
|
+
interface GetExternalTab {
|
|
113
|
+
method?: string;
|
|
114
|
+
context?: ContextApi;
|
|
115
|
+
service?: string;
|
|
116
|
+
xNode?: string;
|
|
117
|
+
}
|
|
112
118
|
|
|
113
119
|
type View = [number | boolean, string];
|
|
114
120
|
type Option = {
|
|
@@ -126,4 +132,4 @@ interface GetViewParams {
|
|
|
126
132
|
xNode?: string;
|
|
127
133
|
}
|
|
128
134
|
|
|
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 };
|
|
135
|
+
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, GetExternalTab as h, updatePasswordBody as u };
|