@fctc/interface-logic 3.2.4 → 3.2.6
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 +0 -2
- package/dist/hooks.d.ts +0 -2
- package/dist/hooks.js +5 -14
- package/dist/hooks.mjs +5 -14
- package/dist/models.js +1 -1
- package/dist/models.mjs +1 -1
- package/dist/provider.js +5 -14
- package/dist/provider.mjs +5 -14
- package/dist/services.d.mts +1 -3
- package/dist/services.d.ts +1 -3
- package/dist/services.js +2 -9
- package/dist/services.mjs +2 -9
- package/package.json +1 -1
package/dist/hooks.d.mts
CHANGED
|
@@ -43,10 +43,8 @@ declare const useValidateActionToken: () => _tanstack_react_query.UseMutationRes
|
|
|
43
43
|
}, unknown>;
|
|
44
44
|
|
|
45
45
|
declare const useGetTenantMapping: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
46
|
-
cif: string;
|
|
47
46
|
shortName: string;
|
|
48
47
|
service: string;
|
|
49
|
-
xNode: string;
|
|
50
48
|
}, unknown>;
|
|
51
49
|
|
|
52
50
|
declare const useGetToken: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
package/dist/hooks.d.ts
CHANGED
|
@@ -43,10 +43,8 @@ declare const useValidateActionToken: () => _tanstack_react_query.UseMutationRes
|
|
|
43
43
|
}, unknown>;
|
|
44
44
|
|
|
45
45
|
declare const useGetTenantMapping: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
46
|
-
cif: string;
|
|
47
46
|
shortName: string;
|
|
48
47
|
service: string;
|
|
49
|
-
xNode: string;
|
|
50
48
|
}, unknown>;
|
|
51
49
|
|
|
52
50
|
declare const useGetToken: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
package/dist/hooks.js
CHANGED
|
@@ -3380,14 +3380,8 @@ function useAuthService() {
|
|
|
3380
3380
|
[env]
|
|
3381
3381
|
);
|
|
3382
3382
|
const getTenantMapping = (0, import_react7.useCallback)(
|
|
3383
|
-
async ({
|
|
3384
|
-
cif,
|
|
3385
|
-
shortName,
|
|
3386
|
-
service,
|
|
3387
|
-
xNode
|
|
3388
|
-
}) => {
|
|
3383
|
+
async ({ shortName, service }) => {
|
|
3389
3384
|
const bodyData = {
|
|
3390
|
-
cif,
|
|
3391
3385
|
short_name: shortName
|
|
3392
3386
|
};
|
|
3393
3387
|
return env?.requests.post(
|
|
@@ -3395,8 +3389,7 @@ function useAuthService() {
|
|
|
3395
3389
|
bodyData,
|
|
3396
3390
|
{
|
|
3397
3391
|
headers: {
|
|
3398
|
-
"Content-Type": "application/json"
|
|
3399
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
3392
|
+
"Content-Type": "application/json"
|
|
3400
3393
|
}
|
|
3401
3394
|
},
|
|
3402
3395
|
service
|
|
@@ -5613,12 +5606,10 @@ var useGetTenantMapping = () => {
|
|
|
5613
5606
|
const { getTenantMapping } = useAuthService();
|
|
5614
5607
|
return (0, import_react_query15.useMutation)({
|
|
5615
5608
|
mutationFn: ({
|
|
5616
|
-
cif,
|
|
5617
5609
|
shortName,
|
|
5618
|
-
service
|
|
5619
|
-
xNode
|
|
5610
|
+
service
|
|
5620
5611
|
}) => {
|
|
5621
|
-
return getTenantMapping({
|
|
5612
|
+
return getTenantMapping({ shortName, service });
|
|
5622
5613
|
}
|
|
5623
5614
|
});
|
|
5624
5615
|
};
|
|
@@ -6150,7 +6141,7 @@ var BaseModel = class {
|
|
|
6150
6141
|
} else {
|
|
6151
6142
|
spec[field?.name].fields = this.getSpecificationByFields({
|
|
6152
6143
|
fields: Object.values(modelRelation),
|
|
6153
|
-
specification: {},
|
|
6144
|
+
specification: { id: {}, display_name: {} },
|
|
6154
6145
|
modelsData,
|
|
6155
6146
|
model: relation,
|
|
6156
6147
|
modelRoot: model
|
package/dist/hooks.mjs
CHANGED
|
@@ -3253,14 +3253,8 @@ function useAuthService() {
|
|
|
3253
3253
|
[env]
|
|
3254
3254
|
);
|
|
3255
3255
|
const getTenantMapping = useCallback3(
|
|
3256
|
-
async ({
|
|
3257
|
-
cif,
|
|
3258
|
-
shortName,
|
|
3259
|
-
service,
|
|
3260
|
-
xNode
|
|
3261
|
-
}) => {
|
|
3256
|
+
async ({ shortName, service }) => {
|
|
3262
3257
|
const bodyData = {
|
|
3263
|
-
cif,
|
|
3264
3258
|
short_name: shortName
|
|
3265
3259
|
};
|
|
3266
3260
|
return env?.requests.post(
|
|
@@ -3268,8 +3262,7 @@ function useAuthService() {
|
|
|
3268
3262
|
bodyData,
|
|
3269
3263
|
{
|
|
3270
3264
|
headers: {
|
|
3271
|
-
"Content-Type": "application/json"
|
|
3272
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
3265
|
+
"Content-Type": "application/json"
|
|
3273
3266
|
}
|
|
3274
3267
|
},
|
|
3275
3268
|
service
|
|
@@ -5486,12 +5479,10 @@ var useGetTenantMapping = () => {
|
|
|
5486
5479
|
const { getTenantMapping } = useAuthService();
|
|
5487
5480
|
return useMutation13({
|
|
5488
5481
|
mutationFn: ({
|
|
5489
|
-
cif,
|
|
5490
5482
|
shortName,
|
|
5491
|
-
service
|
|
5492
|
-
xNode
|
|
5483
|
+
service
|
|
5493
5484
|
}) => {
|
|
5494
|
-
return getTenantMapping({
|
|
5485
|
+
return getTenantMapping({ shortName, service });
|
|
5495
5486
|
}
|
|
5496
5487
|
});
|
|
5497
5488
|
};
|
|
@@ -6023,7 +6014,7 @@ var BaseModel = class {
|
|
|
6023
6014
|
} else {
|
|
6024
6015
|
spec[field?.name].fields = this.getSpecificationByFields({
|
|
6025
6016
|
fields: Object.values(modelRelation),
|
|
6026
|
-
specification: {},
|
|
6017
|
+
specification: { id: {}, display_name: {} },
|
|
6027
6018
|
modelsData,
|
|
6028
6019
|
model: relation,
|
|
6029
6020
|
modelRoot: model
|
package/dist/models.js
CHANGED
|
@@ -65,7 +65,7 @@ var BaseModel = class {
|
|
|
65
65
|
} else {
|
|
66
66
|
spec[field?.name].fields = this.getSpecificationByFields({
|
|
67
67
|
fields: Object.values(modelRelation),
|
|
68
|
-
specification: {},
|
|
68
|
+
specification: { id: {}, display_name: {} },
|
|
69
69
|
modelsData,
|
|
70
70
|
model: relation,
|
|
71
71
|
modelRoot: model
|
package/dist/models.mjs
CHANGED
|
@@ -39,7 +39,7 @@ var BaseModel = class {
|
|
|
39
39
|
} else {
|
|
40
40
|
spec[field?.name].fields = this.getSpecificationByFields({
|
|
41
41
|
fields: Object.values(modelRelation),
|
|
42
|
-
specification: {},
|
|
42
|
+
specification: { id: {}, display_name: {} },
|
|
43
43
|
modelsData,
|
|
44
44
|
model: relation,
|
|
45
45
|
modelRoot: model
|
package/dist/provider.js
CHANGED
|
@@ -3382,14 +3382,8 @@ function useAuthService() {
|
|
|
3382
3382
|
[env]
|
|
3383
3383
|
);
|
|
3384
3384
|
const getTenantMapping = (0, import_react3.useCallback)(
|
|
3385
|
-
async ({
|
|
3386
|
-
cif,
|
|
3387
|
-
shortName,
|
|
3388
|
-
service,
|
|
3389
|
-
xNode
|
|
3390
|
-
}) => {
|
|
3385
|
+
async ({ shortName, service }) => {
|
|
3391
3386
|
const bodyData = {
|
|
3392
|
-
cif,
|
|
3393
3387
|
short_name: shortName
|
|
3394
3388
|
};
|
|
3395
3389
|
return env?.requests.post(
|
|
@@ -3397,8 +3391,7 @@ function useAuthService() {
|
|
|
3397
3391
|
bodyData,
|
|
3398
3392
|
{
|
|
3399
3393
|
headers: {
|
|
3400
|
-
"Content-Type": "application/json"
|
|
3401
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
3394
|
+
"Content-Type": "application/json"
|
|
3402
3395
|
}
|
|
3403
3396
|
},
|
|
3404
3397
|
service
|
|
@@ -5998,12 +5991,10 @@ var useGetTenantMapping = () => {
|
|
|
5998
5991
|
const { getTenantMapping } = useAuthService();
|
|
5999
5992
|
return (0, import_react_query15.useMutation)({
|
|
6000
5993
|
mutationFn: ({
|
|
6001
|
-
cif,
|
|
6002
5994
|
shortName,
|
|
6003
|
-
service
|
|
6004
|
-
xNode
|
|
5995
|
+
service
|
|
6005
5996
|
}) => {
|
|
6006
|
-
return getTenantMapping({
|
|
5997
|
+
return getTenantMapping({ shortName, service });
|
|
6007
5998
|
}
|
|
6008
5999
|
});
|
|
6009
6000
|
};
|
|
@@ -6535,7 +6526,7 @@ var BaseModel = class {
|
|
|
6535
6526
|
} else {
|
|
6536
6527
|
spec[field?.name].fields = this.getSpecificationByFields({
|
|
6537
6528
|
fields: Object.values(modelRelation),
|
|
6538
|
-
specification: {},
|
|
6529
|
+
specification: { id: {}, display_name: {} },
|
|
6539
6530
|
modelsData,
|
|
6540
6531
|
model: relation,
|
|
6541
6532
|
modelRoot: model
|
package/dist/provider.mjs
CHANGED
|
@@ -3339,14 +3339,8 @@ function useAuthService() {
|
|
|
3339
3339
|
[env]
|
|
3340
3340
|
);
|
|
3341
3341
|
const getTenantMapping = useCallback2(
|
|
3342
|
-
async ({
|
|
3343
|
-
cif,
|
|
3344
|
-
shortName,
|
|
3345
|
-
service,
|
|
3346
|
-
xNode
|
|
3347
|
-
}) => {
|
|
3342
|
+
async ({ shortName, service }) => {
|
|
3348
3343
|
const bodyData = {
|
|
3349
|
-
cif,
|
|
3350
3344
|
short_name: shortName
|
|
3351
3345
|
};
|
|
3352
3346
|
return env?.requests.post(
|
|
@@ -3354,8 +3348,7 @@ function useAuthService() {
|
|
|
3354
3348
|
bodyData,
|
|
3355
3349
|
{
|
|
3356
3350
|
headers: {
|
|
3357
|
-
"Content-Type": "application/json"
|
|
3358
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
3351
|
+
"Content-Type": "application/json"
|
|
3359
3352
|
}
|
|
3360
3353
|
},
|
|
3361
3354
|
service
|
|
@@ -5955,12 +5948,10 @@ var useGetTenantMapping = () => {
|
|
|
5955
5948
|
const { getTenantMapping } = useAuthService();
|
|
5956
5949
|
return useMutation13({
|
|
5957
5950
|
mutationFn: ({
|
|
5958
|
-
cif,
|
|
5959
5951
|
shortName,
|
|
5960
|
-
service
|
|
5961
|
-
xNode
|
|
5952
|
+
service
|
|
5962
5953
|
}) => {
|
|
5963
|
-
return getTenantMapping({
|
|
5954
|
+
return getTenantMapping({ shortName, service });
|
|
5964
5955
|
}
|
|
5965
5956
|
});
|
|
5966
5957
|
};
|
|
@@ -6492,7 +6483,7 @@ var BaseModel = class {
|
|
|
6492
6483
|
} else {
|
|
6493
6484
|
spec[field?.name].fields = this.getSpecificationByFields({
|
|
6494
6485
|
fields: Object.values(modelRelation),
|
|
6495
|
-
specification: {},
|
|
6486
|
+
specification: { id: {}, display_name: {} },
|
|
6496
6487
|
modelsData,
|
|
6497
6488
|
model: relation,
|
|
6498
6489
|
modelRoot: model
|
package/dist/services.d.mts
CHANGED
|
@@ -76,11 +76,9 @@ declare function useAuthService(): {
|
|
|
76
76
|
getProviders: (db?: string) => Promise<any>;
|
|
77
77
|
getAccessByCode: (code: string) => Promise<any>;
|
|
78
78
|
logout: (service?: string) => Promise<any>;
|
|
79
|
-
getTenantMapping: ({
|
|
80
|
-
cif: string;
|
|
79
|
+
getTenantMapping: ({ shortName, service }: {
|
|
81
80
|
shortName: string;
|
|
82
81
|
service: string;
|
|
83
|
-
xNode: string;
|
|
84
82
|
}) => Promise<any>;
|
|
85
83
|
getToken: ({ phone, name, service, xNode, }: {
|
|
86
84
|
phone: string;
|
package/dist/services.d.ts
CHANGED
|
@@ -76,11 +76,9 @@ declare function useAuthService(): {
|
|
|
76
76
|
getProviders: (db?: string) => Promise<any>;
|
|
77
77
|
getAccessByCode: (code: string) => Promise<any>;
|
|
78
78
|
logout: (service?: string) => Promise<any>;
|
|
79
|
-
getTenantMapping: ({
|
|
80
|
-
cif: string;
|
|
79
|
+
getTenantMapping: ({ shortName, service }: {
|
|
81
80
|
shortName: string;
|
|
82
81
|
service: string;
|
|
83
|
-
xNode: string;
|
|
84
82
|
}) => Promise<any>;
|
|
85
83
|
getToken: ({ phone, name, service, xNode, }: {
|
|
86
84
|
phone: string;
|
package/dist/services.js
CHANGED
|
@@ -3544,14 +3544,8 @@ function useAuthService() {
|
|
|
3544
3544
|
[env]
|
|
3545
3545
|
);
|
|
3546
3546
|
const getTenantMapping = (0, import_react7.useCallback)(
|
|
3547
|
-
async ({
|
|
3548
|
-
cif,
|
|
3549
|
-
shortName,
|
|
3550
|
-
service,
|
|
3551
|
-
xNode
|
|
3552
|
-
}) => {
|
|
3547
|
+
async ({ shortName, service }) => {
|
|
3553
3548
|
const bodyData = {
|
|
3554
|
-
cif,
|
|
3555
3549
|
short_name: shortName
|
|
3556
3550
|
};
|
|
3557
3551
|
return env?.requests.post(
|
|
@@ -3559,8 +3553,7 @@ function useAuthService() {
|
|
|
3559
3553
|
bodyData,
|
|
3560
3554
|
{
|
|
3561
3555
|
headers: {
|
|
3562
|
-
"Content-Type": "application/json"
|
|
3563
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
3556
|
+
"Content-Type": "application/json"
|
|
3564
3557
|
}
|
|
3565
3558
|
},
|
|
3566
3559
|
service
|
package/dist/services.mjs
CHANGED
|
@@ -3500,14 +3500,8 @@ function useAuthService() {
|
|
|
3500
3500
|
[env]
|
|
3501
3501
|
);
|
|
3502
3502
|
const getTenantMapping = useCallback3(
|
|
3503
|
-
async ({
|
|
3504
|
-
cif,
|
|
3505
|
-
shortName,
|
|
3506
|
-
service,
|
|
3507
|
-
xNode
|
|
3508
|
-
}) => {
|
|
3503
|
+
async ({ shortName, service }) => {
|
|
3509
3504
|
const bodyData = {
|
|
3510
|
-
cif,
|
|
3511
3505
|
short_name: shortName
|
|
3512
3506
|
};
|
|
3513
3507
|
return env?.requests.post(
|
|
@@ -3515,8 +3509,7 @@ function useAuthService() {
|
|
|
3515
3509
|
bodyData,
|
|
3516
3510
|
{
|
|
3517
3511
|
headers: {
|
|
3518
|
-
"Content-Type": "application/json"
|
|
3519
|
-
...xNode ? { "X-Node": xNode } : {}
|
|
3512
|
+
"Content-Type": "application/json"
|
|
3520
3513
|
}
|
|
3521
3514
|
},
|
|
3522
3515
|
service
|