@fctc/interface-logic 3.2.2 → 3.2.3

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
@@ -3376,14 +3376,8 @@ function useAuthService() {
3376
3376
  [env]
3377
3377
  );
3378
3378
  const getTenantMapping = (0, import_react7.useCallback)(
3379
- async ({
3380
- cif,
3381
- shortName,
3382
- service,
3383
- xNode
3384
- }) => {
3379
+ async ({ shortName, service }) => {
3385
3380
  const bodyData = {
3386
- cif,
3387
3381
  short_name: shortName
3388
3382
  };
3389
3383
  return env?.requests.post(
@@ -3391,8 +3385,7 @@ function useAuthService() {
3391
3385
  bodyData,
3392
3386
  {
3393
3387
  headers: {
3394
- "Content-Type": "application/json",
3395
- ...xNode ? { "X-Node": xNode } : {}
3388
+ "Content-Type": "application/json"
3396
3389
  }
3397
3390
  },
3398
3391
  service
@@ -5609,12 +5602,10 @@ var useGetTenantMapping = () => {
5609
5602
  const { getTenantMapping } = useAuthService();
5610
5603
  return (0, import_react_query15.useMutation)({
5611
5604
  mutationFn: ({
5612
- cif,
5613
5605
  shortName,
5614
- service,
5615
- xNode
5606
+ service
5616
5607
  }) => {
5617
- return getTenantMapping({ cif, shortName, service, xNode });
5608
+ return getTenantMapping({ shortName, service });
5618
5609
  }
5619
5610
  });
5620
5611
  };
package/dist/hooks.mjs CHANGED
@@ -3249,14 +3249,8 @@ function useAuthService() {
3249
3249
  [env]
3250
3250
  );
3251
3251
  const getTenantMapping = useCallback3(
3252
- async ({
3253
- cif,
3254
- shortName,
3255
- service,
3256
- xNode
3257
- }) => {
3252
+ async ({ shortName, service }) => {
3258
3253
  const bodyData = {
3259
- cif,
3260
3254
  short_name: shortName
3261
3255
  };
3262
3256
  return env?.requests.post(
@@ -3264,8 +3258,7 @@ function useAuthService() {
3264
3258
  bodyData,
3265
3259
  {
3266
3260
  headers: {
3267
- "Content-Type": "application/json",
3268
- ...xNode ? { "X-Node": xNode } : {}
3261
+ "Content-Type": "application/json"
3269
3262
  }
3270
3263
  },
3271
3264
  service
@@ -5482,12 +5475,10 @@ var useGetTenantMapping = () => {
5482
5475
  const { getTenantMapping } = useAuthService();
5483
5476
  return useMutation13({
5484
5477
  mutationFn: ({
5485
- cif,
5486
5478
  shortName,
5487
- service,
5488
- xNode
5479
+ service
5489
5480
  }) => {
5490
- return getTenantMapping({ cif, shortName, service, xNode });
5481
+ return getTenantMapping({ shortName, service });
5491
5482
  }
5492
5483
  });
5493
5484
  };
package/dist/provider.js CHANGED
@@ -3378,14 +3378,8 @@ function useAuthService() {
3378
3378
  [env]
3379
3379
  );
3380
3380
  const getTenantMapping = (0, import_react3.useCallback)(
3381
- async ({
3382
- cif,
3383
- shortName,
3384
- service,
3385
- xNode
3386
- }) => {
3381
+ async ({ shortName, service }) => {
3387
3382
  const bodyData = {
3388
- cif,
3389
3383
  short_name: shortName
3390
3384
  };
3391
3385
  return env?.requests.post(
@@ -3393,8 +3387,7 @@ function useAuthService() {
3393
3387
  bodyData,
3394
3388
  {
3395
3389
  headers: {
3396
- "Content-Type": "application/json",
3397
- ...xNode ? { "X-Node": xNode } : {}
3390
+ "Content-Type": "application/json"
3398
3391
  }
3399
3392
  },
3400
3393
  service
@@ -5994,12 +5987,10 @@ var useGetTenantMapping = () => {
5994
5987
  const { getTenantMapping } = useAuthService();
5995
5988
  return (0, import_react_query15.useMutation)({
5996
5989
  mutationFn: ({
5997
- cif,
5998
5990
  shortName,
5999
- service,
6000
- xNode
5991
+ service
6001
5992
  }) => {
6002
- return getTenantMapping({ cif, shortName, service, xNode });
5993
+ return getTenantMapping({ shortName, service });
6003
5994
  }
6004
5995
  });
6005
5996
  };
package/dist/provider.mjs CHANGED
@@ -3335,14 +3335,8 @@ function useAuthService() {
3335
3335
  [env]
3336
3336
  );
3337
3337
  const getTenantMapping = useCallback2(
3338
- async ({
3339
- cif,
3340
- shortName,
3341
- service,
3342
- xNode
3343
- }) => {
3338
+ async ({ shortName, service }) => {
3344
3339
  const bodyData = {
3345
- cif,
3346
3340
  short_name: shortName
3347
3341
  };
3348
3342
  return env?.requests.post(
@@ -3350,8 +3344,7 @@ function useAuthService() {
3350
3344
  bodyData,
3351
3345
  {
3352
3346
  headers: {
3353
- "Content-Type": "application/json",
3354
- ...xNode ? { "X-Node": xNode } : {}
3347
+ "Content-Type": "application/json"
3355
3348
  }
3356
3349
  },
3357
3350
  service
@@ -5951,12 +5944,10 @@ var useGetTenantMapping = () => {
5951
5944
  const { getTenantMapping } = useAuthService();
5952
5945
  return useMutation13({
5953
5946
  mutationFn: ({
5954
- cif,
5955
5947
  shortName,
5956
- service,
5957
- xNode
5948
+ service
5958
5949
  }) => {
5959
- return getTenantMapping({ cif, shortName, service, xNode });
5950
+ return getTenantMapping({ shortName, service });
5960
5951
  }
5961
5952
  });
5962
5953
  };
@@ -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
@@ -3540,14 +3540,8 @@ function useAuthService() {
3540
3540
  [env]
3541
3541
  );
3542
3542
  const getTenantMapping = (0, import_react7.useCallback)(
3543
- async ({
3544
- cif,
3545
- shortName,
3546
- service,
3547
- xNode
3548
- }) => {
3543
+ async ({ shortName, service }) => {
3549
3544
  const bodyData = {
3550
- cif,
3551
3545
  short_name: shortName
3552
3546
  };
3553
3547
  return env?.requests.post(
@@ -3555,8 +3549,7 @@ function useAuthService() {
3555
3549
  bodyData,
3556
3550
  {
3557
3551
  headers: {
3558
- "Content-Type": "application/json",
3559
- ...xNode ? { "X-Node": xNode } : {}
3552
+ "Content-Type": "application/json"
3560
3553
  }
3561
3554
  },
3562
3555
  service
package/dist/services.mjs CHANGED
@@ -3496,14 +3496,8 @@ function useAuthService() {
3496
3496
  [env]
3497
3497
  );
3498
3498
  const getTenantMapping = useCallback3(
3499
- async ({
3500
- cif,
3501
- shortName,
3502
- service,
3503
- xNode
3504
- }) => {
3499
+ async ({ shortName, service }) => {
3505
3500
  const bodyData = {
3506
- cif,
3507
3501
  short_name: shortName
3508
3502
  };
3509
3503
  return env?.requests.post(
@@ -3511,8 +3505,7 @@ function useAuthService() {
3511
3505
  bodyData,
3512
3506
  {
3513
3507
  headers: {
3514
- "Content-Type": "application/json",
3515
- ...xNode ? { "X-Node": xNode } : {}
3508
+ "Content-Type": "application/json"
3516
3509
  }
3517
3510
  },
3518
3511
  service
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",