@fctc/interface-logic 3.2.4 → 3.2.5

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 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({ cif, shortName, service, xNode });
5612
+ return getTenantMapping({ shortName, service });
5622
5613
  }
5623
5614
  });
5624
5615
  };
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({ cif, shortName, service, xNode });
5485
+ return getTenantMapping({ shortName, service });
5495
5486
  }
5496
5487
  });
5497
5488
  };
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({ cif, shortName, service, xNode });
5997
+ return getTenantMapping({ shortName, service });
6007
5998
  }
6008
5999
  });
6009
6000
  };
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({ cif, shortName, service, xNode });
5954
+ return getTenantMapping({ shortName, service });
5964
5955
  }
5965
5956
  });
5966
5957
  };
@@ -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: ({ cif, shortName, service, xNode, }: {
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;
@@ -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: ({ cif, shortName, service, xNode, }: {
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
package/package.json CHANGED
@@ -1,90 +1,90 @@
1
- {
2
- "name": "@fctc/interface-logic",
3
- "version": "3.2.4",
4
- "types": "dist/index.d.ts",
5
- "main": "dist/index.cjs",
6
- "module": "dist/index.mjs",
7
- "exports": {
8
- ".": {
9
- "types": "./dist/index.d.ts",
10
- "import": "./dist/index.mjs",
11
- "require": "./dist/index.cjs"
12
- },
13
- "./configs": {
14
- "types": "./dist/configs.d.ts",
15
- "import": "./dist/configs.mjs",
16
- "require": "./dist/configs.cjs"
17
- },
18
- "./constants": {
19
- "types": "./dist/constants.d.ts",
20
- "import": "./dist/constants.mjs",
21
- "require": "./dist/constants.cjs"
22
- },
23
- "./environment": {
24
- "types": "./dist/environment.d.ts",
25
- "import": "./dist/environment.mjs",
26
- "require": "./dist/environment.cjs"
27
- },
28
- "./hooks": {
29
- "types": "./dist/hooks.d.ts",
30
- "import": "./dist/hooks.mjs",
31
- "require": "./dist/hooks.cjs"
32
- },
33
- "./provider": {
34
- "types": "./dist/provider.d.ts",
35
- "import": "./dist/provider.mjs",
36
- "require": "./dist/provider.cjs"
37
- },
38
- "./services": {
39
- "types": "./dist/services.d.ts",
40
- "import": "./dist/services.mjs",
41
- "require": "./dist/services.cjs"
42
- },
43
- "./store": {
44
- "types": "./dist/store.d.ts",
45
- "import": "./dist/store.mjs",
46
- "require": "./dist/store.cjs"
47
- },
48
- "./utils": {
49
- "types": "./dist/utils.d.ts",
50
- "import": "./dist/utils.mjs",
51
- "require": "./dist/utils.cjs"
52
- },
53
- "./types": {
54
- "types": "./dist/types.d.ts",
55
- "import": "./dist/types.mjs",
56
- "require": "./dist/types.cjs"
57
- },
58
- "./models": {
59
- "types": "./dist/models.d.ts",
60
- "import": "./dist/models.mjs",
61
- "require": "./dist/models.cjs"
62
- }
63
- },
64
- "files": [
65
- "dist"
66
- ],
67
- "scripts": {
68
- "build": "tsup",
69
- "test": "jest"
70
- },
71
- "peerDependencies": {
72
- "react": "18.0.0",
73
- "@tanstack/react-query": "^5.83.0"
74
- },
75
- "dependencies": {
76
- "@reduxjs/toolkit": "^2.8.2",
77
- "@tanstack/react-query": "^5.83.0",
78
- "axios": "^1.11.0",
79
- "moment": "^2.30.1",
80
- "react-redux": "^9.2.0"
81
- },
82
- "devDependencies": {
83
- "@types/react": "^18.3.1",
84
- "react": "18.0.0",
85
- "jest": "^29.7.0",
86
- "tsup": "^8.0.0",
87
- "typescript": "^5.8.2"
88
- },
89
- "packageManager": "yarn@1.22.0"
90
- }
1
+ {
2
+ "name": "@fctc/interface-logic",
3
+ "version": "3.2.5",
4
+ "types": "dist/index.d.ts",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.mjs",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.cjs"
12
+ },
13
+ "./configs": {
14
+ "types": "./dist/configs.d.ts",
15
+ "import": "./dist/configs.mjs",
16
+ "require": "./dist/configs.cjs"
17
+ },
18
+ "./constants": {
19
+ "types": "./dist/constants.d.ts",
20
+ "import": "./dist/constants.mjs",
21
+ "require": "./dist/constants.cjs"
22
+ },
23
+ "./environment": {
24
+ "types": "./dist/environment.d.ts",
25
+ "import": "./dist/environment.mjs",
26
+ "require": "./dist/environment.cjs"
27
+ },
28
+ "./hooks": {
29
+ "types": "./dist/hooks.d.ts",
30
+ "import": "./dist/hooks.mjs",
31
+ "require": "./dist/hooks.cjs"
32
+ },
33
+ "./provider": {
34
+ "types": "./dist/provider.d.ts",
35
+ "import": "./dist/provider.mjs",
36
+ "require": "./dist/provider.cjs"
37
+ },
38
+ "./services": {
39
+ "types": "./dist/services.d.ts",
40
+ "import": "./dist/services.mjs",
41
+ "require": "./dist/services.cjs"
42
+ },
43
+ "./store": {
44
+ "types": "./dist/store.d.ts",
45
+ "import": "./dist/store.mjs",
46
+ "require": "./dist/store.cjs"
47
+ },
48
+ "./utils": {
49
+ "types": "./dist/utils.d.ts",
50
+ "import": "./dist/utils.mjs",
51
+ "require": "./dist/utils.cjs"
52
+ },
53
+ "./types": {
54
+ "types": "./dist/types.d.ts",
55
+ "import": "./dist/types.mjs",
56
+ "require": "./dist/types.cjs"
57
+ },
58
+ "./models": {
59
+ "types": "./dist/models.d.ts",
60
+ "import": "./dist/models.mjs",
61
+ "require": "./dist/models.cjs"
62
+ }
63
+ },
64
+ "files": [
65
+ "dist"
66
+ ],
67
+ "scripts": {
68
+ "build": "tsup",
69
+ "test": "jest"
70
+ },
71
+ "peerDependencies": {
72
+ "react": "18.0.0",
73
+ "@tanstack/react-query": "^5.83.0"
74
+ },
75
+ "dependencies": {
76
+ "@reduxjs/toolkit": "^2.8.2",
77
+ "@tanstack/react-query": "^5.83.0",
78
+ "axios": "^1.11.0",
79
+ "moment": "^2.30.1",
80
+ "react-redux": "^9.2.0"
81
+ },
82
+ "devDependencies": {
83
+ "@types/react": "^18.3.1",
84
+ "react": "18.0.0",
85
+ "jest": "^29.7.0",
86
+ "tsup": "^8.0.0",
87
+ "typescript": "^5.8.2"
88
+ },
89
+ "packageManager": "yarn@1.22.0"
90
+ }