@fctc/interface-logic 2.1.4 → 2.1.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.
@@ -43,6 +43,7 @@ declare enum UriConstants {
43
43
  IMAGE_PATH = "/web/image",
44
44
  LOAD_MESSAGE = "/load_message_failures",
45
45
  TOKEN = "/check_token",
46
+ VALIDATE_ACTION_TOKEN = "/action-token/validate",
46
47
  CREATE_UPDATE_PATH = "/create_update",
47
48
  TWOFA_METHOD_PATH = "/id/api/v2/call",
48
49
  SIGNIN_SSO = "/signin-sso/oauth",
@@ -43,6 +43,7 @@ declare enum UriConstants {
43
43
  IMAGE_PATH = "/web/image",
44
44
  LOAD_MESSAGE = "/load_message_failures",
45
45
  TOKEN = "/check_token",
46
+ VALIDATE_ACTION_TOKEN = "/action-token/validate",
46
47
  CREATE_UPDATE_PATH = "/create_update",
47
48
  TWOFA_METHOD_PATH = "/id/api/v2/call",
48
49
  SIGNIN_SSO = "/signin-sso/oauth",
package/dist/constants.js CHANGED
@@ -86,6 +86,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
86
86
  UriConstants2["IMAGE_PATH"] = `/web/image`;
87
87
  UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
88
88
  UriConstants2["TOKEN"] = `/check_token`;
89
+ UriConstants2["VALIDATE_ACTION_TOKEN"] = "/action-token/validate";
89
90
  UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
90
91
  UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
91
92
  UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
@@ -48,6 +48,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
48
48
  UriConstants2["IMAGE_PATH"] = `/web/image`;
49
49
  UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
50
50
  UriConstants2["TOKEN"] = `/check_token`;
51
+ UriConstants2["VALIDATE_ACTION_TOKEN"] = "/action-token/validate";
51
52
  UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
52
53
  UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
53
54
  UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
package/dist/hooks.d.mts CHANGED
@@ -38,7 +38,6 @@ declare const useGetAccessByCode: () => _tanstack_react_query.UseMutationResult<
38
38
 
39
39
  declare const useValidateActionToken: () => _tanstack_react_query.UseMutationResult<any, Error, {
40
40
  actionToken: string;
41
- path: string;
42
41
  }, unknown>;
43
42
 
44
43
  declare const useGetCompanyInfo: () => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
package/dist/hooks.d.ts CHANGED
@@ -38,7 +38,6 @@ declare const useGetAccessByCode: () => _tanstack_react_query.UseMutationResult<
38
38
 
39
39
  declare const useValidateActionToken: () => _tanstack_react_query.UseMutationResult<any, Error, {
40
40
  actionToken: string;
41
- path: string;
42
41
  }, unknown>;
43
42
 
44
43
  declare const useGetCompanyInfo: () => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
package/dist/hooks.js CHANGED
@@ -128,6 +128,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
128
128
  UriConstants2["IMAGE_PATH"] = `/web/image`;
129
129
  UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
130
130
  UriConstants2["TOKEN"] = `/check_token`;
131
+ UriConstants2["VALIDATE_ACTION_TOKEN"] = "/action-token/validate";
131
132
  UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
132
133
  UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
133
134
  UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
@@ -3204,9 +3205,9 @@ function useAuthService() {
3204
3205
  [env]
3205
3206
  );
3206
3207
  const isValidActionToken = (0, import_react7.useCallback)(
3207
- async (actionToken, path) => {
3208
+ async (actionToken) => {
3208
3209
  return env?.requests?.post(
3209
- path,
3210
+ "/action-token/validate" /* VALIDATE_ACTION_TOKEN */,
3210
3211
  {},
3211
3212
  {
3212
3213
  headers: {
@@ -4611,11 +4612,8 @@ var import_react_query14 = require("@tanstack/react-query");
4611
4612
  var useValidateActionToken = () => {
4612
4613
  const { isValidActionToken } = useAuthService();
4613
4614
  return (0, import_react_query14.useMutation)({
4614
- mutationFn: ({
4615
- actionToken,
4616
- path
4617
- }) => {
4618
- return isValidActionToken(actionToken, path);
4615
+ mutationFn: ({ actionToken }) => {
4616
+ return isValidActionToken(actionToken);
4619
4617
  }
4620
4618
  });
4621
4619
  };
package/dist/hooks.mjs CHANGED
@@ -25,6 +25,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
25
25
  UriConstants2["IMAGE_PATH"] = `/web/image`;
26
26
  UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
27
27
  UriConstants2["TOKEN"] = `/check_token`;
28
+ UriConstants2["VALIDATE_ACTION_TOKEN"] = "/action-token/validate";
28
29
  UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
29
30
  UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
30
31
  UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
@@ -3101,9 +3102,9 @@ function useAuthService() {
3101
3102
  [env]
3102
3103
  );
3103
3104
  const isValidActionToken = useCallback3(
3104
- async (actionToken, path) => {
3105
+ async (actionToken) => {
3105
3106
  return env?.requests?.post(
3106
- path,
3107
+ "/action-token/validate" /* VALIDATE_ACTION_TOKEN */,
3107
3108
  {},
3108
3109
  {
3109
3110
  headers: {
@@ -4508,11 +4509,8 @@ import { useMutation as useMutation12 } from "@tanstack/react-query";
4508
4509
  var useValidateActionToken = () => {
4509
4510
  const { isValidActionToken } = useAuthService();
4510
4511
  return useMutation12({
4511
- mutationFn: ({
4512
- actionToken,
4513
- path
4514
- }) => {
4515
- return isValidActionToken(actionToken, path);
4512
+ mutationFn: ({ actionToken }) => {
4513
+ return isValidActionToken(actionToken);
4516
4514
  }
4517
4515
  });
4518
4516
  };
package/dist/provider.js CHANGED
@@ -718,6 +718,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
718
718
  UriConstants2["IMAGE_PATH"] = `/web/image`;
719
719
  UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
720
720
  UriConstants2["TOKEN"] = `/check_token`;
721
+ UriConstants2["VALIDATE_ACTION_TOKEN"] = "/action-token/validate";
721
722
  UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
722
723
  UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
723
724
  UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
@@ -3153,9 +3154,9 @@ function useAuthService() {
3153
3154
  [env]
3154
3155
  );
3155
3156
  const isValidActionToken = (0, import_react3.useCallback)(
3156
- async (actionToken, path) => {
3157
+ async (actionToken) => {
3157
3158
  return env?.requests?.post(
3158
- path,
3159
+ "/action-token/validate" /* VALIDATE_ACTION_TOKEN */,
3159
3160
  {},
3160
3161
  {
3161
3162
  headers: {
@@ -4951,11 +4952,8 @@ var import_react_query14 = require("@tanstack/react-query");
4951
4952
  var useValidateActionToken = () => {
4952
4953
  const { isValidActionToken } = useAuthService();
4953
4954
  return (0, import_react_query14.useMutation)({
4954
- mutationFn: ({
4955
- actionToken,
4956
- path
4957
- }) => {
4958
- return isValidActionToken(actionToken, path);
4955
+ mutationFn: ({ actionToken }) => {
4956
+ return isValidActionToken(actionToken);
4959
4957
  }
4960
4958
  });
4961
4959
  };
package/dist/provider.mjs CHANGED
@@ -675,6 +675,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
675
675
  UriConstants2["IMAGE_PATH"] = `/web/image`;
676
676
  UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
677
677
  UriConstants2["TOKEN"] = `/check_token`;
678
+ UriConstants2["VALIDATE_ACTION_TOKEN"] = "/action-token/validate";
678
679
  UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
679
680
  UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
680
681
  UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
@@ -3110,9 +3111,9 @@ function useAuthService() {
3110
3111
  [env]
3111
3112
  );
3112
3113
  const isValidActionToken = useCallback2(
3113
- async (actionToken, path) => {
3114
+ async (actionToken) => {
3114
3115
  return env?.requests?.post(
3115
- path,
3116
+ "/action-token/validate" /* VALIDATE_ACTION_TOKEN */,
3116
3117
  {},
3117
3118
  {
3118
3119
  headers: {
@@ -4908,11 +4909,8 @@ import { useMutation as useMutation12 } from "@tanstack/react-query";
4908
4909
  var useValidateActionToken = () => {
4909
4910
  const { isValidActionToken } = useAuthService();
4910
4911
  return useMutation12({
4911
- mutationFn: ({
4912
- actionToken,
4913
- path
4914
- }) => {
4915
- return isValidActionToken(actionToken, path);
4912
+ mutationFn: ({ actionToken }) => {
4913
+ return isValidActionToken(actionToken);
4916
4914
  }
4917
4915
  });
4918
4916
  };
@@ -51,7 +51,7 @@ declare function useAuthService(): {
51
51
  }) => Promise<any>;
52
52
  updatePassword: (data: UpdatePasswordRequest, token: string | null) => Promise<any>;
53
53
  isValidToken: (token: string | null) => Promise<any>;
54
- isValidActionToken: (actionToken: string | null, path: string) => Promise<any>;
54
+ isValidActionToken: (actionToken: string | null) => Promise<any>;
55
55
  loginSocial: ({ db, state, access_token, }: {
56
56
  db: string;
57
57
  state: object;
@@ -51,7 +51,7 @@ declare function useAuthService(): {
51
51
  }) => Promise<any>;
52
52
  updatePassword: (data: UpdatePasswordRequest, token: string | null) => Promise<any>;
53
53
  isValidToken: (token: string | null) => Promise<any>;
54
- isValidActionToken: (actionToken: string | null, path: string) => Promise<any>;
54
+ isValidActionToken: (actionToken: string | null) => Promise<any>;
55
55
  loginSocial: ({ db, state, access_token, }: {
56
56
  db: string;
57
57
  state: object;
package/dist/services.js CHANGED
@@ -66,6 +66,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
66
66
  UriConstants2["IMAGE_PATH"] = `/web/image`;
67
67
  UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
68
68
  UriConstants2["TOKEN"] = `/check_token`;
69
+ UriConstants2["VALIDATE_ACTION_TOKEN"] = "/action-token/validate";
69
70
  UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
70
71
  UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
71
72
  UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
@@ -3320,9 +3321,9 @@ function useAuthService() {
3320
3321
  [env]
3321
3322
  );
3322
3323
  const isValidActionToken = (0, import_react7.useCallback)(
3323
- async (actionToken, path) => {
3324
+ async (actionToken) => {
3324
3325
  return env?.requests?.post(
3325
- path,
3326
+ "/action-token/validate" /* VALIDATE_ACTION_TOKEN */,
3326
3327
  {},
3327
3328
  {
3328
3329
  headers: {
package/dist/services.mjs CHANGED
@@ -22,6 +22,7 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
22
22
  UriConstants2["IMAGE_PATH"] = `/web/image`;
23
23
  UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
24
24
  UriConstants2["TOKEN"] = `/check_token`;
25
+ UriConstants2["VALIDATE_ACTION_TOKEN"] = "/action-token/validate";
25
26
  UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
26
27
  UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
27
28
  UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
@@ -3276,9 +3277,9 @@ function useAuthService() {
3276
3277
  [env]
3277
3278
  );
3278
3279
  const isValidActionToken = useCallback3(
3279
- async (actionToken, path) => {
3280
+ async (actionToken) => {
3280
3281
  return env?.requests?.post(
3281
- path,
3282
+ "/action-token/validate" /* VALIDATE_ACTION_TOKEN */,
3282
3283
  {},
3283
3284
  {
3284
3285
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",