@fctc/interface-logic 1.10.3 → 1.10.4

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.js CHANGED
@@ -103,7 +103,7 @@ __export(hooks_exports, {
103
103
  module.exports = __toCommonJS(hooks_exports);
104
104
 
105
105
  // src/hooks/auth/use-forgot-password.ts
106
- var import_react_query = require("@tanstack/react-query");
106
+ var import_react_query3 = require("@tanstack/react-query");
107
107
 
108
108
  // src/constants/api/uri-constant.ts
109
109
  var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
@@ -4174,61 +4174,11 @@ var ViewService = {
4174
4174
  };
4175
4175
  var view_service_default = ViewService;
4176
4176
 
4177
- // src/hooks/auth/use-forgot-password.ts
4178
- var useForgotPassword = () => {
4179
- return (0, import_react_query.useMutation)({
4180
- mutationFn: (email) => {
4181
- return auth_service_default.forgotPassword(email);
4182
- }
4183
- });
4184
- };
4185
- var use_forgot_password_default = useForgotPassword;
4186
-
4187
- // src/hooks/auth/use-forgotpassword-sso.ts
4188
- var import_react_query2 = require("@tanstack/react-query");
4189
- var useForgotPasswordSSO = () => {
4190
- return (0, import_react_query2.useMutation)({
4191
- mutationFn: ({
4192
- email,
4193
- with_context,
4194
- method
4195
- }) => {
4196
- return auth_service_default.forgotPasswordSSO({ email, with_context, method });
4197
- }
4198
- });
4199
- };
4200
- var use_forgotpassword_sso_default = useForgotPasswordSSO;
4201
-
4202
- // src/hooks/auth/use-get-provider.ts
4203
- var import_react_query3 = require("@tanstack/react-query");
4204
- var useGetProvider = () => {
4205
- return (0, import_react_query3.useMutation)({
4206
- mutationFn: (data) => {
4207
- return auth_service_default.getProviders(data?.db);
4208
- }
4209
- });
4210
- };
4211
- var use_get_provider_default = useGetProvider;
4212
-
4213
- // src/hooks/auth/use-isvalid-token.ts
4214
- var import_react_query4 = require("@tanstack/react-query");
4215
- var useIsValidToken = () => {
4216
- return (0, import_react_query4.useMutation)({
4217
- mutationFn: (token) => {
4218
- return auth_service_default.isValidToken(token);
4219
- }
4220
- });
4221
- };
4222
- var use_isvalid_token_default = useIsValidToken;
4223
-
4224
- // src/hooks/auth/use-login-credential.tsx
4225
- var import_react_query7 = require("@tanstack/react-query");
4226
-
4227
4177
  // src/services/auth-service/backup.ts
4228
4178
  var import_react6 = require("react");
4229
4179
 
4230
4180
  // src/provider/react-query-provider.tsx
4231
- var import_react_query5 = require("@tanstack/react-query");
4181
+ var import_react_query = require("@tanstack/react-query");
4232
4182
  var import_jsx_runtime = require("react/jsx-runtime");
4233
4183
 
4234
4184
  // src/provider/redux-provider.tsx
@@ -4858,7 +4808,7 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
4858
4808
 
4859
4809
  // src/provider/version-gate-provider.tsx
4860
4810
  var import_react3 = require("react");
4861
- var import_react_query6 = require("@tanstack/react-query");
4811
+ var import_react_query2 = require("@tanstack/react-query");
4862
4812
 
4863
4813
  // src/services/view-service/backup.ts
4864
4814
  var import_react2 = require("react");
@@ -5124,7 +5074,55 @@ function useAuthService() {
5124
5074
  };
5125
5075
  }
5126
5076
 
5077
+ // src/hooks/auth/use-forgot-password.ts
5078
+ var useForgotPassword = () => {
5079
+ return (0, import_react_query3.useMutation)({
5080
+ mutationFn: (email) => {
5081
+ return auth_service_default.forgotPassword(email);
5082
+ }
5083
+ });
5084
+ };
5085
+ var use_forgot_password_default = useForgotPassword;
5086
+
5087
+ // src/hooks/auth/use-forgotpassword-sso.ts
5088
+ var import_react_query4 = require("@tanstack/react-query");
5089
+ var useForgotPasswordSSO = () => {
5090
+ return (0, import_react_query4.useMutation)({
5091
+ mutationFn: ({
5092
+ email,
5093
+ with_context,
5094
+ method
5095
+ }) => {
5096
+ return auth_service_default.forgotPasswordSSO({ email, with_context, method });
5097
+ }
5098
+ });
5099
+ };
5100
+ var use_forgotpassword_sso_default = useForgotPasswordSSO;
5101
+
5102
+ // src/hooks/auth/use-get-provider.ts
5103
+ var import_react_query5 = require("@tanstack/react-query");
5104
+ var useGetProvider = () => {
5105
+ return (0, import_react_query5.useMutation)({
5106
+ mutationFn: (data) => {
5107
+ return auth_service_default.getProviders(data?.db);
5108
+ }
5109
+ });
5110
+ };
5111
+ var use_get_provider_default = useGetProvider;
5112
+
5113
+ // src/hooks/auth/use-isvalid-token.ts
5114
+ var import_react_query6 = require("@tanstack/react-query");
5115
+ var useIsValidToken = () => {
5116
+ return (0, import_react_query6.useMutation)({
5117
+ mutationFn: (token) => {
5118
+ return auth_service_default.isValidToken(token);
5119
+ }
5120
+ });
5121
+ };
5122
+ var use_isvalid_token_default = useIsValidToken;
5123
+
5127
5124
  // src/hooks/auth/use-login-credential.tsx
5125
+ var import_react_query7 = require("@tanstack/react-query");
5128
5126
  var useLoginCredential = () => {
5129
5127
  const { env: env2 } = useEnv();
5130
5128
  console.log("useLoginCredential called", env2, new Error().stack);
package/dist/hooks.mjs CHANGED
@@ -4070,56 +4070,6 @@ var ViewService = {
4070
4070
  };
4071
4071
  var view_service_default = ViewService;
4072
4072
 
4073
- // src/hooks/auth/use-forgot-password.ts
4074
- var useForgotPassword = () => {
4075
- return useMutation({
4076
- mutationFn: (email) => {
4077
- return auth_service_default.forgotPassword(email);
4078
- }
4079
- });
4080
- };
4081
- var use_forgot_password_default = useForgotPassword;
4082
-
4083
- // src/hooks/auth/use-forgotpassword-sso.ts
4084
- import { useMutation as useMutation2 } from "@tanstack/react-query";
4085
- var useForgotPasswordSSO = () => {
4086
- return useMutation2({
4087
- mutationFn: ({
4088
- email,
4089
- with_context,
4090
- method
4091
- }) => {
4092
- return auth_service_default.forgotPasswordSSO({ email, with_context, method });
4093
- }
4094
- });
4095
- };
4096
- var use_forgotpassword_sso_default = useForgotPasswordSSO;
4097
-
4098
- // src/hooks/auth/use-get-provider.ts
4099
- import { useMutation as useMutation3 } from "@tanstack/react-query";
4100
- var useGetProvider = () => {
4101
- return useMutation3({
4102
- mutationFn: (data) => {
4103
- return auth_service_default.getProviders(data?.db);
4104
- }
4105
- });
4106
- };
4107
- var use_get_provider_default = useGetProvider;
4108
-
4109
- // src/hooks/auth/use-isvalid-token.ts
4110
- import { useMutation as useMutation4 } from "@tanstack/react-query";
4111
- var useIsValidToken = () => {
4112
- return useMutation4({
4113
- mutationFn: (token) => {
4114
- return auth_service_default.isValidToken(token);
4115
- }
4116
- });
4117
- };
4118
- var use_isvalid_token_default = useIsValidToken;
4119
-
4120
- // src/hooks/auth/use-login-credential.tsx
4121
- import { useMutation as useMutation5 } from "@tanstack/react-query";
4122
-
4123
4073
  // src/services/auth-service/backup.ts
4124
4074
  import { useCallback as useCallback3 } from "react";
4125
4075
 
@@ -5020,7 +4970,55 @@ function useAuthService() {
5020
4970
  };
5021
4971
  }
5022
4972
 
4973
+ // src/hooks/auth/use-forgot-password.ts
4974
+ var useForgotPassword = () => {
4975
+ return useMutation({
4976
+ mutationFn: (email) => {
4977
+ return auth_service_default.forgotPassword(email);
4978
+ }
4979
+ });
4980
+ };
4981
+ var use_forgot_password_default = useForgotPassword;
4982
+
4983
+ // src/hooks/auth/use-forgotpassword-sso.ts
4984
+ import { useMutation as useMutation2 } from "@tanstack/react-query";
4985
+ var useForgotPasswordSSO = () => {
4986
+ return useMutation2({
4987
+ mutationFn: ({
4988
+ email,
4989
+ with_context,
4990
+ method
4991
+ }) => {
4992
+ return auth_service_default.forgotPasswordSSO({ email, with_context, method });
4993
+ }
4994
+ });
4995
+ };
4996
+ var use_forgotpassword_sso_default = useForgotPasswordSSO;
4997
+
4998
+ // src/hooks/auth/use-get-provider.ts
4999
+ import { useMutation as useMutation3 } from "@tanstack/react-query";
5000
+ var useGetProvider = () => {
5001
+ return useMutation3({
5002
+ mutationFn: (data) => {
5003
+ return auth_service_default.getProviders(data?.db);
5004
+ }
5005
+ });
5006
+ };
5007
+ var use_get_provider_default = useGetProvider;
5008
+
5009
+ // src/hooks/auth/use-isvalid-token.ts
5010
+ import { useMutation as useMutation4 } from "@tanstack/react-query";
5011
+ var useIsValidToken = () => {
5012
+ return useMutation4({
5013
+ mutationFn: (token) => {
5014
+ return auth_service_default.isValidToken(token);
5015
+ }
5016
+ });
5017
+ };
5018
+ var use_isvalid_token_default = useIsValidToken;
5019
+
5023
5020
  // src/hooks/auth/use-login-credential.tsx
5021
+ import { useMutation as useMutation5 } from "@tanstack/react-query";
5024
5022
  var useLoginCredential = () => {
5025
5023
  const { env: env2 } = useEnv();
5026
5024
  console.log("useLoginCredential called", env2, new Error().stack);
package/dist/provider.js CHANGED
@@ -3291,18 +3291,6 @@ var axiosClient = {
3291
3291
  }
3292
3292
  };
3293
3293
 
3294
- // src/hooks/auth/use-forgotpassword-sso.ts
3295
- var import_react_query3 = require("@tanstack/react-query");
3296
-
3297
- // src/hooks/auth/use-get-provider.ts
3298
- var import_react_query4 = require("@tanstack/react-query");
3299
-
3300
- // src/hooks/auth/use-isvalid-token.ts
3301
- var import_react_query5 = require("@tanstack/react-query");
3302
-
3303
- // src/hooks/auth/use-login-credential.tsx
3304
- var import_react_query6 = require("@tanstack/react-query");
3305
-
3306
3294
  // src/services/auth-service/backup.ts
3307
3295
  var import_react3 = require("react");
3308
3296
  function useAuthService() {
@@ -3523,6 +3511,18 @@ function useAuthService() {
3523
3511
  };
3524
3512
  }
3525
3513
 
3514
+ // src/hooks/auth/use-forgotpassword-sso.ts
3515
+ var import_react_query3 = require("@tanstack/react-query");
3516
+
3517
+ // src/hooks/auth/use-get-provider.ts
3518
+ var import_react_query4 = require("@tanstack/react-query");
3519
+
3520
+ // src/hooks/auth/use-isvalid-token.ts
3521
+ var import_react_query5 = require("@tanstack/react-query");
3522
+
3523
+ // src/hooks/auth/use-login-credential.tsx
3524
+ var import_react_query6 = require("@tanstack/react-query");
3525
+
3526
3526
  // src/provider/env-provider.tsx
3527
3527
  var import_react4 = require("react");
3528
3528
  var import_jsx_runtime4 = require("react/jsx-runtime");
package/dist/provider.mjs CHANGED
@@ -3249,18 +3249,6 @@ var axiosClient = {
3249
3249
  }
3250
3250
  };
3251
3251
 
3252
- // src/hooks/auth/use-forgotpassword-sso.ts
3253
- import { useMutation as useMutation2 } from "@tanstack/react-query";
3254
-
3255
- // src/hooks/auth/use-get-provider.ts
3256
- import { useMutation as useMutation3 } from "@tanstack/react-query";
3257
-
3258
- // src/hooks/auth/use-isvalid-token.ts
3259
- import { useMutation as useMutation4 } from "@tanstack/react-query";
3260
-
3261
- // src/hooks/auth/use-login-credential.tsx
3262
- import { useMutation as useMutation5 } from "@tanstack/react-query";
3263
-
3264
3252
  // src/services/auth-service/backup.ts
3265
3253
  import { useCallback as useCallback2 } from "react";
3266
3254
  function useAuthService() {
@@ -3481,6 +3469,18 @@ function useAuthService() {
3481
3469
  };
3482
3470
  }
3483
3471
 
3472
+ // src/hooks/auth/use-forgotpassword-sso.ts
3473
+ import { useMutation as useMutation2 } from "@tanstack/react-query";
3474
+
3475
+ // src/hooks/auth/use-get-provider.ts
3476
+ import { useMutation as useMutation3 } from "@tanstack/react-query";
3477
+
3478
+ // src/hooks/auth/use-isvalid-token.ts
3479
+ import { useMutation as useMutation4 } from "@tanstack/react-query";
3480
+
3481
+ // src/hooks/auth/use-login-credential.tsx
3482
+ import { useMutation as useMutation5 } from "@tanstack/react-query";
3483
+
3484
3484
  // src/provider/env-provider.tsx
3485
3485
  import { createContext, useContext, useState as useState2, useCallback as useCallback3 } from "react";
3486
3486
  import { jsx as jsx4 } from "react/jsx-runtime";
@@ -253,4 +253,31 @@ declare const ViewService: {
253
253
  }): Promise<any>;
254
254
  };
255
255
 
256
- export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanServices as KanbanService, ModelService, UserService, ViewService };
256
+ declare function useAuthService(): {
257
+ login: (body: LoginCredentialBody) => Promise<any>;
258
+ forgotPassword: (email: string) => Promise<any>;
259
+ forgotPasswordSSO: ({ email, with_context, method, }: {
260
+ email: string;
261
+ with_context: any;
262
+ method: string;
263
+ }) => Promise<any>;
264
+ resetPassword: (data: ResetPasswordRequest, token: string | null) => Promise<any>;
265
+ resetPasswordSSO: ({ method, password, with_context, }: {
266
+ method: any;
267
+ password: string;
268
+ with_context: any;
269
+ }) => Promise<any>;
270
+ updatePassword: (data: UpdatePasswordRequest, token: string | null) => Promise<any>;
271
+ isValidToken: (token: string | null) => Promise<any>;
272
+ isValidActionToken: (actionToken: string | null, path: string) => Promise<any>;
273
+ loginSocial: ({ db, state, access_token, }: {
274
+ db: string;
275
+ state: object;
276
+ access_token: string;
277
+ }) => Promise<any>;
278
+ getProviders: (db?: string) => Promise<any>;
279
+ getAccessByCode: (code: string) => Promise<any>;
280
+ logout: (data: string) => Promise<any>;
281
+ };
282
+
283
+ export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanServices as KanbanService, ModelService, UserService, ViewService, useAuthService };
@@ -253,4 +253,31 @@ declare const ViewService: {
253
253
  }): Promise<any>;
254
254
  };
255
255
 
256
- export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanServices as KanbanService, ModelService, UserService, ViewService };
256
+ declare function useAuthService(): {
257
+ login: (body: LoginCredentialBody) => Promise<any>;
258
+ forgotPassword: (email: string) => Promise<any>;
259
+ forgotPasswordSSO: ({ email, with_context, method, }: {
260
+ email: string;
261
+ with_context: any;
262
+ method: string;
263
+ }) => Promise<any>;
264
+ resetPassword: (data: ResetPasswordRequest, token: string | null) => Promise<any>;
265
+ resetPasswordSSO: ({ method, password, with_context, }: {
266
+ method: any;
267
+ password: string;
268
+ with_context: any;
269
+ }) => Promise<any>;
270
+ updatePassword: (data: UpdatePasswordRequest, token: string | null) => Promise<any>;
271
+ isValidToken: (token: string | null) => Promise<any>;
272
+ isValidActionToken: (actionToken: string | null, path: string) => Promise<any>;
273
+ loginSocial: ({ db, state, access_token, }: {
274
+ db: string;
275
+ state: object;
276
+ access_token: string;
277
+ }) => Promise<any>;
278
+ getProviders: (db?: string) => Promise<any>;
279
+ getAccessByCode: (code: string) => Promise<any>;
280
+ logout: (data: string) => Promise<any>;
281
+ };
282
+
283
+ export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanServices as KanbanService, ModelService, UserService, ViewService, useAuthService };