@fctc/interface-logic 2.4.6 → 2.4.7
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 +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +5 -6
- package/dist/hooks.mjs +5 -6
- package/dist/provider.js +5 -6
- package/dist/provider.mjs +5 -6
- package/dist/services.d.mts +1 -1
- package/dist/services.d.ts +1 -1
- package/dist/services.js +3 -4
- package/dist/services.mjs +3 -4
- package/package.json +1 -1
package/dist/hooks.d.mts
CHANGED
|
@@ -32,7 +32,7 @@ declare const useResetPasswordSSO: () => _tanstack_react_query.UseMutationResult
|
|
|
32
32
|
|
|
33
33
|
declare const useUpdatePassword: () => _tanstack_react_query.UseMutationResult<any, Error, updatePasswordBody, unknown>;
|
|
34
34
|
|
|
35
|
-
declare const useLogout: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
35
|
+
declare const useLogout: () => _tanstack_react_query.UseMutationResult<any, Error, string | undefined, unknown>;
|
|
36
36
|
|
|
37
37
|
declare const useGetAccessByCode: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
38
38
|
code: string;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ declare const useResetPasswordSSO: () => _tanstack_react_query.UseMutationResult
|
|
|
32
32
|
|
|
33
33
|
declare const useUpdatePassword: () => _tanstack_react_query.UseMutationResult<any, Error, updatePasswordBody, unknown>;
|
|
34
34
|
|
|
35
|
-
declare const useLogout: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
35
|
+
declare const useLogout: () => _tanstack_react_query.UseMutationResult<any, Error, string | undefined, unknown>;
|
|
36
36
|
|
|
37
37
|
declare const useGetAccessByCode: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
38
38
|
code: string;
|
package/dist/hooks.js
CHANGED
|
@@ -3303,8 +3303,7 @@ function useAuthService() {
|
|
|
3303
3303
|
[env]
|
|
3304
3304
|
);
|
|
3305
3305
|
const logout = (0, import_react7.useCallback)(
|
|
3306
|
-
async (
|
|
3307
|
-
console.log(data);
|
|
3306
|
+
async (service) => {
|
|
3308
3307
|
return env?.requests?.post(
|
|
3309
3308
|
"/logout" /* LOGOUT */,
|
|
3310
3309
|
{},
|
|
@@ -3314,7 +3313,8 @@ function useAuthService() {
|
|
|
3314
3313
|
},
|
|
3315
3314
|
withCredentials: true,
|
|
3316
3315
|
useRefreshToken: true
|
|
3317
|
-
}
|
|
3316
|
+
},
|
|
3317
|
+
service
|
|
3318
3318
|
);
|
|
3319
3319
|
},
|
|
3320
3320
|
[env]
|
|
@@ -4262,7 +4262,6 @@ function useViewService() {
|
|
|
4262
4262
|
);
|
|
4263
4263
|
const getMenu = (0, import_react14.useCallback)(
|
|
4264
4264
|
async (context, specification, domain) => {
|
|
4265
|
-
console.log("domain", domain);
|
|
4266
4265
|
const jsonData = {
|
|
4267
4266
|
model: "ir.ui.menu" /* MENU */,
|
|
4268
4267
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4707,8 +4706,8 @@ var import_react_query12 = require("@tanstack/react-query");
|
|
|
4707
4706
|
var useLogout = () => {
|
|
4708
4707
|
const { logout } = useAuthService();
|
|
4709
4708
|
return (0, import_react_query12.useMutation)({
|
|
4710
|
-
mutationFn: (
|
|
4711
|
-
return logout(
|
|
4709
|
+
mutationFn: (service) => {
|
|
4710
|
+
return logout(service);
|
|
4712
4711
|
}
|
|
4713
4712
|
});
|
|
4714
4713
|
};
|
package/dist/hooks.mjs
CHANGED
|
@@ -3199,8 +3199,7 @@ function useAuthService() {
|
|
|
3199
3199
|
[env]
|
|
3200
3200
|
);
|
|
3201
3201
|
const logout = useCallback3(
|
|
3202
|
-
async (
|
|
3203
|
-
console.log(data);
|
|
3202
|
+
async (service) => {
|
|
3204
3203
|
return env?.requests?.post(
|
|
3205
3204
|
"/logout" /* LOGOUT */,
|
|
3206
3205
|
{},
|
|
@@ -3210,7 +3209,8 @@ function useAuthService() {
|
|
|
3210
3209
|
},
|
|
3211
3210
|
withCredentials: true,
|
|
3212
3211
|
useRefreshToken: true
|
|
3213
|
-
}
|
|
3212
|
+
},
|
|
3213
|
+
service
|
|
3214
3214
|
);
|
|
3215
3215
|
},
|
|
3216
3216
|
[env]
|
|
@@ -4158,7 +4158,6 @@ function useViewService() {
|
|
|
4158
4158
|
);
|
|
4159
4159
|
const getMenu = useCallback10(
|
|
4160
4160
|
async (context, specification, domain) => {
|
|
4161
|
-
console.log("domain", domain);
|
|
4162
4161
|
const jsonData = {
|
|
4163
4162
|
model: "ir.ui.menu" /* MENU */,
|
|
4164
4163
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -4603,8 +4602,8 @@ import { useMutation as useMutation10 } from "@tanstack/react-query";
|
|
|
4603
4602
|
var useLogout = () => {
|
|
4604
4603
|
const { logout } = useAuthService();
|
|
4605
4604
|
return useMutation10({
|
|
4606
|
-
mutationFn: (
|
|
4607
|
-
return logout(
|
|
4605
|
+
mutationFn: (service) => {
|
|
4606
|
+
return logout(service);
|
|
4608
4607
|
}
|
|
4609
4608
|
});
|
|
4610
4609
|
};
|
package/dist/provider.js
CHANGED
|
@@ -3251,8 +3251,7 @@ function useAuthService() {
|
|
|
3251
3251
|
[env]
|
|
3252
3252
|
);
|
|
3253
3253
|
const logout = (0, import_react3.useCallback)(
|
|
3254
|
-
async (
|
|
3255
|
-
console.log(data);
|
|
3254
|
+
async (service) => {
|
|
3256
3255
|
return env?.requests?.post(
|
|
3257
3256
|
"/logout" /* LOGOUT */,
|
|
3258
3257
|
{},
|
|
@@ -3262,7 +3261,8 @@ function useAuthService() {
|
|
|
3262
3261
|
},
|
|
3263
3262
|
withCredentials: true,
|
|
3264
3263
|
useRefreshToken: true
|
|
3265
|
-
}
|
|
3264
|
+
},
|
|
3265
|
+
service
|
|
3266
3266
|
);
|
|
3267
3267
|
},
|
|
3268
3268
|
[env]
|
|
@@ -4210,7 +4210,6 @@ function useViewService() {
|
|
|
4210
4210
|
);
|
|
4211
4211
|
const getMenu = (0, import_react10.useCallback)(
|
|
4212
4212
|
async (context, specification, domain) => {
|
|
4213
|
-
console.log("domain", domain);
|
|
4214
4213
|
const jsonData = {
|
|
4215
4214
|
model: "ir.ui.menu" /* MENU */,
|
|
4216
4215
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -5073,8 +5072,8 @@ var import_react_query12 = require("@tanstack/react-query");
|
|
|
5073
5072
|
var useLogout = () => {
|
|
5074
5073
|
const { logout } = useAuthService();
|
|
5075
5074
|
return (0, import_react_query12.useMutation)({
|
|
5076
|
-
mutationFn: (
|
|
5077
|
-
return logout(
|
|
5075
|
+
mutationFn: (service) => {
|
|
5076
|
+
return logout(service);
|
|
5078
5077
|
}
|
|
5079
5078
|
});
|
|
5080
5079
|
};
|
package/dist/provider.mjs
CHANGED
|
@@ -3208,8 +3208,7 @@ function useAuthService() {
|
|
|
3208
3208
|
[env]
|
|
3209
3209
|
);
|
|
3210
3210
|
const logout = useCallback2(
|
|
3211
|
-
async (
|
|
3212
|
-
console.log(data);
|
|
3211
|
+
async (service) => {
|
|
3213
3212
|
return env?.requests?.post(
|
|
3214
3213
|
"/logout" /* LOGOUT */,
|
|
3215
3214
|
{},
|
|
@@ -3219,7 +3218,8 @@ function useAuthService() {
|
|
|
3219
3218
|
},
|
|
3220
3219
|
withCredentials: true,
|
|
3221
3220
|
useRefreshToken: true
|
|
3222
|
-
}
|
|
3221
|
+
},
|
|
3222
|
+
service
|
|
3223
3223
|
);
|
|
3224
3224
|
},
|
|
3225
3225
|
[env]
|
|
@@ -4167,7 +4167,6 @@ function useViewService() {
|
|
|
4167
4167
|
);
|
|
4168
4168
|
const getMenu = useCallback9(
|
|
4169
4169
|
async (context, specification, domain) => {
|
|
4170
|
-
console.log("domain", domain);
|
|
4171
4170
|
const jsonData = {
|
|
4172
4171
|
model: "ir.ui.menu" /* MENU */,
|
|
4173
4172
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
|
@@ -5030,8 +5029,8 @@ import { useMutation as useMutation10 } from "@tanstack/react-query";
|
|
|
5030
5029
|
var useLogout = () => {
|
|
5031
5030
|
const { logout } = useAuthService();
|
|
5032
5031
|
return useMutation10({
|
|
5033
|
-
mutationFn: (
|
|
5034
|
-
return logout(
|
|
5032
|
+
mutationFn: (service) => {
|
|
5033
|
+
return logout(service);
|
|
5035
5034
|
}
|
|
5036
5035
|
});
|
|
5037
5036
|
};
|
package/dist/services.d.mts
CHANGED
|
@@ -69,7 +69,7 @@ declare function useAuthService(): {
|
|
|
69
69
|
}) => Promise<any>;
|
|
70
70
|
getProviders: (db?: string) => Promise<any>;
|
|
71
71
|
getAccessByCode: (code: string) => Promise<any>;
|
|
72
|
-
logout: (
|
|
72
|
+
logout: (service?: string) => Promise<any>;
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
declare function useCompanyService(): {
|
package/dist/services.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ declare function useAuthService(): {
|
|
|
69
69
|
}) => Promise<any>;
|
|
70
70
|
getProviders: (db?: string) => Promise<any>;
|
|
71
71
|
getAccessByCode: (code: string) => Promise<any>;
|
|
72
|
-
logout: (
|
|
72
|
+
logout: (service?: string) => Promise<any>;
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
declare function useCompanyService(): {
|
package/dist/services.js
CHANGED
|
@@ -3421,8 +3421,7 @@ function useAuthService() {
|
|
|
3421
3421
|
[env]
|
|
3422
3422
|
);
|
|
3423
3423
|
const logout = (0, import_react7.useCallback)(
|
|
3424
|
-
async (
|
|
3425
|
-
console.log(data);
|
|
3424
|
+
async (service) => {
|
|
3426
3425
|
return env?.requests?.post(
|
|
3427
3426
|
"/logout" /* LOGOUT */,
|
|
3428
3427
|
{},
|
|
@@ -3432,7 +3431,8 @@ function useAuthService() {
|
|
|
3432
3431
|
},
|
|
3433
3432
|
withCredentials: true,
|
|
3434
3433
|
useRefreshToken: true
|
|
3435
|
-
}
|
|
3434
|
+
},
|
|
3435
|
+
service
|
|
3436
3436
|
);
|
|
3437
3437
|
},
|
|
3438
3438
|
[env]
|
|
@@ -4380,7 +4380,6 @@ function useViewService() {
|
|
|
4380
4380
|
);
|
|
4381
4381
|
const getMenu = (0, import_react14.useCallback)(
|
|
4382
4382
|
async (context, specification, domain) => {
|
|
4383
|
-
console.log("domain", domain);
|
|
4384
4383
|
const jsonData = {
|
|
4385
4384
|
model: "ir.ui.menu" /* MENU */,
|
|
4386
4385
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|
package/dist/services.mjs
CHANGED
|
@@ -3377,8 +3377,7 @@ function useAuthService() {
|
|
|
3377
3377
|
[env]
|
|
3378
3378
|
);
|
|
3379
3379
|
const logout = useCallback3(
|
|
3380
|
-
async (
|
|
3381
|
-
console.log(data);
|
|
3380
|
+
async (service) => {
|
|
3382
3381
|
return env?.requests?.post(
|
|
3383
3382
|
"/logout" /* LOGOUT */,
|
|
3384
3383
|
{},
|
|
@@ -3388,7 +3387,8 @@ function useAuthService() {
|
|
|
3388
3387
|
},
|
|
3389
3388
|
withCredentials: true,
|
|
3390
3389
|
useRefreshToken: true
|
|
3391
|
-
}
|
|
3390
|
+
},
|
|
3391
|
+
service
|
|
3392
3392
|
);
|
|
3393
3393
|
},
|
|
3394
3394
|
[env]
|
|
@@ -4336,7 +4336,6 @@ function useViewService() {
|
|
|
4336
4336
|
);
|
|
4337
4337
|
const getMenu = useCallback10(
|
|
4338
4338
|
async (context, specification, domain) => {
|
|
4339
|
-
console.log("domain", domain);
|
|
4340
4339
|
const jsonData = {
|
|
4341
4340
|
model: "ir.ui.menu" /* MENU */,
|
|
4342
4341
|
method: "web_search_read" /* WEB_SEARCH_READ */,
|