@fctc/interface-logic 3.3.7 → 3.3.8
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 +4 -1
- package/dist/hooks.d.ts +4 -1
- package/dist/hooks.js +9 -6
- package/dist/hooks.mjs +9 -6
- package/dist/provider.js +9 -6
- package/dist/provider.mjs +9 -6
- package/dist/services.d.mts +1 -1
- package/dist/services.d.ts +1 -1
- package/dist/services.js +2 -3
- package/dist/services.mjs +2 -3
- package/package.json +1 -1
package/dist/hooks.d.mts
CHANGED
|
@@ -270,7 +270,10 @@ type SwitchUserLocaleParams = {
|
|
|
270
270
|
values: any;
|
|
271
271
|
};
|
|
272
272
|
};
|
|
273
|
-
declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error,
|
|
273
|
+
declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
274
|
+
data: SwitchUserLocaleParams;
|
|
275
|
+
service: string;
|
|
276
|
+
}, unknown>;
|
|
274
277
|
|
|
275
278
|
declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
276
279
|
model: string;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -270,7 +270,10 @@ type SwitchUserLocaleParams = {
|
|
|
270
270
|
values: any;
|
|
271
271
|
};
|
|
272
272
|
};
|
|
273
|
-
declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error,
|
|
273
|
+
declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
274
|
+
data: SwitchUserLocaleParams;
|
|
275
|
+
service: string;
|
|
276
|
+
}, unknown>;
|
|
274
277
|
|
|
275
278
|
declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
276
279
|
model: string;
|
package/dist/hooks.js
CHANGED
|
@@ -4439,7 +4439,7 @@ function useUserService() {
|
|
|
4439
4439
|
[env]
|
|
4440
4440
|
);
|
|
4441
4441
|
const switchUserLocale = (0, import_react13.useCallback)(
|
|
4442
|
-
async ({ id, values, service
|
|
4442
|
+
async ({ id, values, service }) => {
|
|
4443
4443
|
const jsonData = {
|
|
4444
4444
|
model: "res.users",
|
|
4445
4445
|
domain: [["id", "=", id]],
|
|
@@ -4450,8 +4450,7 @@ function useUserService() {
|
|
|
4450
4450
|
jsonData,
|
|
4451
4451
|
{
|
|
4452
4452
|
headers: {
|
|
4453
|
-
"Content-Type": "application/json"
|
|
4454
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
4453
|
+
"Content-Type": "application/json"
|
|
4455
4454
|
}
|
|
4456
4455
|
},
|
|
4457
4456
|
service
|
|
@@ -6544,10 +6543,14 @@ var import_react_query48 = require("@tanstack/react-query");
|
|
|
6544
6543
|
var useSwitchLocale = () => {
|
|
6545
6544
|
const { switchUserLocale } = useUserService();
|
|
6546
6545
|
return (0, import_react_query48.useMutation)({
|
|
6547
|
-
mutationFn: ({
|
|
6546
|
+
mutationFn: ({
|
|
6547
|
+
data,
|
|
6548
|
+
service
|
|
6549
|
+
}) => {
|
|
6548
6550
|
return switchUserLocale({
|
|
6549
|
-
id: data.id,
|
|
6550
|
-
values: data.values
|
|
6551
|
+
id: data.data.id,
|
|
6552
|
+
values: data.data.values,
|
|
6553
|
+
service
|
|
6551
6554
|
});
|
|
6552
6555
|
}
|
|
6553
6556
|
});
|
package/dist/hooks.mjs
CHANGED
|
@@ -4306,7 +4306,7 @@ function useUserService() {
|
|
|
4306
4306
|
[env]
|
|
4307
4307
|
);
|
|
4308
4308
|
const switchUserLocale = useCallback9(
|
|
4309
|
-
async ({ id, values, service
|
|
4309
|
+
async ({ id, values, service }) => {
|
|
4310
4310
|
const jsonData = {
|
|
4311
4311
|
model: "res.users",
|
|
4312
4312
|
domain: [["id", "=", id]],
|
|
@@ -4317,8 +4317,7 @@ function useUserService() {
|
|
|
4317
4317
|
jsonData,
|
|
4318
4318
|
{
|
|
4319
4319
|
headers: {
|
|
4320
|
-
"Content-Type": "application/json"
|
|
4321
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
4320
|
+
"Content-Type": "application/json"
|
|
4322
4321
|
}
|
|
4323
4322
|
},
|
|
4324
4323
|
service
|
|
@@ -6411,10 +6410,14 @@ import { useMutation as useMutation34 } from "@tanstack/react-query";
|
|
|
6411
6410
|
var useSwitchLocale = () => {
|
|
6412
6411
|
const { switchUserLocale } = useUserService();
|
|
6413
6412
|
return useMutation34({
|
|
6414
|
-
mutationFn: ({
|
|
6413
|
+
mutationFn: ({
|
|
6414
|
+
data,
|
|
6415
|
+
service
|
|
6416
|
+
}) => {
|
|
6415
6417
|
return switchUserLocale({
|
|
6416
|
-
id: data.id,
|
|
6417
|
-
values: data.values
|
|
6418
|
+
id: data.data.id,
|
|
6419
|
+
values: data.data.values,
|
|
6420
|
+
service
|
|
6418
6421
|
});
|
|
6419
6422
|
}
|
|
6420
6423
|
});
|
package/dist/provider.js
CHANGED
|
@@ -4435,7 +4435,7 @@ function useUserService() {
|
|
|
4435
4435
|
[env]
|
|
4436
4436
|
);
|
|
4437
4437
|
const switchUserLocale = (0, import_react9.useCallback)(
|
|
4438
|
-
async ({ id, values, service
|
|
4438
|
+
async ({ id, values, service }) => {
|
|
4439
4439
|
const jsonData = {
|
|
4440
4440
|
model: "res.users",
|
|
4441
4441
|
domain: [["id", "=", id]],
|
|
@@ -4446,8 +4446,7 @@ function useUserService() {
|
|
|
4446
4446
|
jsonData,
|
|
4447
4447
|
{
|
|
4448
4448
|
headers: {
|
|
4449
|
-
"Content-Type": "application/json"
|
|
4450
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
4449
|
+
"Content-Type": "application/json"
|
|
4451
4450
|
}
|
|
4452
4451
|
},
|
|
4453
4452
|
service
|
|
@@ -6923,10 +6922,14 @@ var import_react_query48 = require("@tanstack/react-query");
|
|
|
6923
6922
|
var useSwitchLocale = () => {
|
|
6924
6923
|
const { switchUserLocale } = useUserService();
|
|
6925
6924
|
return (0, import_react_query48.useMutation)({
|
|
6926
|
-
mutationFn: ({
|
|
6925
|
+
mutationFn: ({
|
|
6926
|
+
data,
|
|
6927
|
+
service
|
|
6928
|
+
}) => {
|
|
6927
6929
|
return switchUserLocale({
|
|
6928
|
-
id: data.id,
|
|
6929
|
-
values: data.values
|
|
6930
|
+
id: data.data.id,
|
|
6931
|
+
values: data.data.values,
|
|
6932
|
+
service
|
|
6930
6933
|
});
|
|
6931
6934
|
}
|
|
6932
6935
|
});
|
package/dist/provider.mjs
CHANGED
|
@@ -4392,7 +4392,7 @@ function useUserService() {
|
|
|
4392
4392
|
[env]
|
|
4393
4393
|
);
|
|
4394
4394
|
const switchUserLocale = useCallback8(
|
|
4395
|
-
async ({ id, values, service
|
|
4395
|
+
async ({ id, values, service }) => {
|
|
4396
4396
|
const jsonData = {
|
|
4397
4397
|
model: "res.users",
|
|
4398
4398
|
domain: [["id", "=", id]],
|
|
@@ -4403,8 +4403,7 @@ function useUserService() {
|
|
|
4403
4403
|
jsonData,
|
|
4404
4404
|
{
|
|
4405
4405
|
headers: {
|
|
4406
|
-
"Content-Type": "application/json"
|
|
4407
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
4406
|
+
"Content-Type": "application/json"
|
|
4408
4407
|
}
|
|
4409
4408
|
},
|
|
4410
4409
|
service
|
|
@@ -6880,10 +6879,14 @@ import { useMutation as useMutation34 } from "@tanstack/react-query";
|
|
|
6880
6879
|
var useSwitchLocale = () => {
|
|
6881
6880
|
const { switchUserLocale } = useUserService();
|
|
6882
6881
|
return useMutation34({
|
|
6883
|
-
mutationFn: ({
|
|
6882
|
+
mutationFn: ({
|
|
6883
|
+
data,
|
|
6884
|
+
service
|
|
6885
|
+
}) => {
|
|
6884
6886
|
return switchUserLocale({
|
|
6885
|
-
id: data.id,
|
|
6886
|
-
values: data.values
|
|
6887
|
+
id: data.data.id,
|
|
6888
|
+
values: data.data.values,
|
|
6889
|
+
service
|
|
6887
6890
|
});
|
|
6888
6891
|
}
|
|
6889
6892
|
});
|
package/dist/services.d.mts
CHANGED
|
@@ -248,7 +248,7 @@ declare function useUserService(): {
|
|
|
248
248
|
context: any;
|
|
249
249
|
id: any;
|
|
250
250
|
}) => Promise<any>;
|
|
251
|
-
switchUserLocale: ({ id, values, service
|
|
251
|
+
switchUserLocale: ({ id, values, service }: any) => Promise<any>;
|
|
252
252
|
};
|
|
253
253
|
|
|
254
254
|
declare function useViewService(): {
|
package/dist/services.d.ts
CHANGED
|
@@ -248,7 +248,7 @@ declare function useUserService(): {
|
|
|
248
248
|
context: any;
|
|
249
249
|
id: any;
|
|
250
250
|
}) => Promise<any>;
|
|
251
|
-
switchUserLocale: ({ id, values, service
|
|
251
|
+
switchUserLocale: ({ id, values, service }: any) => Promise<any>;
|
|
252
252
|
};
|
|
253
253
|
|
|
254
254
|
declare function useViewService(): {
|
package/dist/services.js
CHANGED
|
@@ -4615,7 +4615,7 @@ function useUserService() {
|
|
|
4615
4615
|
[env]
|
|
4616
4616
|
);
|
|
4617
4617
|
const switchUserLocale = (0, import_react13.useCallback)(
|
|
4618
|
-
async ({ id, values, service
|
|
4618
|
+
async ({ id, values, service }) => {
|
|
4619
4619
|
const jsonData = {
|
|
4620
4620
|
model: "res.users",
|
|
4621
4621
|
domain: [["id", "=", id]],
|
|
@@ -4626,8 +4626,7 @@ function useUserService() {
|
|
|
4626
4626
|
jsonData,
|
|
4627
4627
|
{
|
|
4628
4628
|
headers: {
|
|
4629
|
-
"Content-Type": "application/json"
|
|
4630
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
4629
|
+
"Content-Type": "application/json"
|
|
4631
4630
|
}
|
|
4632
4631
|
},
|
|
4633
4632
|
service
|
package/dist/services.mjs
CHANGED
|
@@ -4571,7 +4571,7 @@ function useUserService() {
|
|
|
4571
4571
|
[env]
|
|
4572
4572
|
);
|
|
4573
4573
|
const switchUserLocale = useCallback9(
|
|
4574
|
-
async ({ id, values, service
|
|
4574
|
+
async ({ id, values, service }) => {
|
|
4575
4575
|
const jsonData = {
|
|
4576
4576
|
model: "res.users",
|
|
4577
4577
|
domain: [["id", "=", id]],
|
|
@@ -4582,8 +4582,7 @@ function useUserService() {
|
|
|
4582
4582
|
jsonData,
|
|
4583
4583
|
{
|
|
4584
4584
|
headers: {
|
|
4585
|
-
"Content-Type": "application/json"
|
|
4586
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
4585
|
+
"Content-Type": "application/json"
|
|
4587
4586
|
}
|
|
4588
4587
|
},
|
|
4589
4588
|
service
|