ggez-banking-sdk 0.1.106 → 0.1.107

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.
Files changed (89) hide show
  1. package/dist/api/clients/account.d.ts +8 -8
  2. package/dist/api/clients/account.js +26 -19
  3. package/dist/api/clients/auth.d.ts +22 -17
  4. package/dist/api/clients/auth.js +57 -42
  5. package/dist/api/clients/blockchain.d.ts +16 -16
  6. package/dist/api/clients/blockchain.js +52 -42
  7. package/dist/api/clients/ipAddressAndLocation.js +15 -13
  8. package/dist/api/clients/limited.d.ts +42 -32
  9. package/dist/api/clients/limited.js +100 -82
  10. package/dist/api/clients/order.d.ts +4 -4
  11. package/dist/api/clients/order.js +16 -12
  12. package/dist/api/clients/organization.d.ts +23 -18
  13. package/dist/api/clients/organization.js +57 -45
  14. package/dist/api/clients/promotion.d.ts +28 -13
  15. package/dist/api/clients/promotion.js +32 -30
  16. package/dist/api/clients/transaction.d.ts +9 -9
  17. package/dist/api/clients/transaction.js +30 -24
  18. package/dist/api/clients/user.d.ts +387 -301
  19. package/dist/api/clients/user.js +886 -735
  20. package/dist/api/data/account.d.ts +3 -0
  21. package/dist/api/data/account.js +8 -0
  22. package/dist/api/data/blockchain.d.ts +2 -1
  23. package/dist/api/data/blockchain.js +11 -1
  24. package/dist/api/data/index.d.ts +2 -0
  25. package/dist/api/data/index.js +2 -0
  26. package/dist/api/data/order.d.ts +2 -1
  27. package/dist/api/data/order.js +15 -1
  28. package/dist/api/data/organization.d.ts +2 -1
  29. package/dist/api/data/organization.js +26 -1
  30. package/dist/api/data/result.d.ts +9 -0
  31. package/dist/api/data/result.js +48 -0
  32. package/dist/api/data/transaction.d.ts +4 -2
  33. package/dist/api/data/transaction.js +24 -1
  34. package/dist/api/data/user/confirmUserSecurity.d.ts +3 -0
  35. package/dist/api/data/user/confirmUserSecurity.js +12 -0
  36. package/dist/api/data/user/forgetSecurityData.d.ts +3 -0
  37. package/dist/api/data/user/forgetSecurityData.js +10 -0
  38. package/dist/api/data/user/index.d.ts +8 -8
  39. package/dist/api/data/user/index.js +8 -161
  40. package/dist/api/data/user/user.d.ts +6 -0
  41. package/dist/api/data/user/user.js +159 -0
  42. package/dist/api/data/user/validateLimitedSecurity.d.ts +3 -0
  43. package/dist/api/data/user/validateLimitedSecurity.js +10 -0
  44. package/dist/api/data/user/validateSecurityData.d.ts +3 -0
  45. package/dist/api/data/user/validateSecurityData.js +11 -0
  46. package/dist/api/data/user/verifyUserSecurity.d.ts +3 -0
  47. package/dist/api/data/user/verifyUserSecurity.js +11 -0
  48. package/dist/api/services/account.js +1 -1
  49. package/dist/api/services/auth.js +4 -5
  50. package/dist/api/services/base.d.ts +1 -1
  51. package/dist/api/services/base.js +1 -0
  52. package/dist/api/services/blockchain.js +5 -9
  53. package/dist/api/services/ipAddressAndLocation.js +10 -10
  54. package/dist/api/services/limited.js +2 -1
  55. package/dist/api/services/order.js +2 -3
  56. package/dist/api/services/organization.d.ts +2 -2
  57. package/dist/api/services/organization.js +7 -10
  58. package/dist/api/services/promotion.js +1 -1
  59. package/dist/api/services/transaction.d.ts +2 -2
  60. package/dist/api/services/transaction.js +3 -5
  61. package/dist/api/services/user.js +65 -127
  62. package/dist/constants/structure.d.ts +1 -0
  63. package/dist/constants/structure.js +1 -0
  64. package/dist/helper/api/axiosHelper.js +71 -71
  65. package/dist/helper/api/responseHelper.d.ts +12 -11
  66. package/dist/helper/api/responseHelper.js +24 -25
  67. package/dist/helper/cipherHelper.js +95 -97
  68. package/dist/helper/clientHelper.js +1 -0
  69. package/dist/helper/cookiesHelper.d.ts +5 -0
  70. package/dist/helper/cookiesHelper.js +169 -126
  71. package/dist/helper/deviceHelper.js +31 -31
  72. package/dist/helper/userHelper.d.ts +12 -2
  73. package/dist/helper/userHelper.js +69 -2
  74. package/dist/index.d.ts +1 -1
  75. package/dist/index.js +1 -1
  76. package/dist/tsconfig.tsbuildinfo +1 -1
  77. package/dist/types/banking/common/ResultSet.d.ts +10 -0
  78. package/dist/types/banking/common/ResultSet.js +1 -0
  79. package/dist/types/banking/common/index.d.ts +1 -0
  80. package/dist/types/banking/entities/address.d.ts +1 -0
  81. package/dist/types/banking/oauth/tokenData.d.ts +3 -1
  82. package/dist/types/banking/transaction/index.d.ts +1 -0
  83. package/dist/types/banking/transaction/transactionResultInquiry.d.ts +9 -0
  84. package/dist/types/banking/transaction/transactionResultInquiry.js +1 -0
  85. package/dist/types/helper/index.d.ts +4 -3
  86. package/dist/types/helper/index.js +1 -3
  87. package/dist/types/helper/userHelper.d.ts +17 -0
  88. package/dist/types/helper/userHelper.js +2 -0
  89. package/package.json +2 -2
@@ -4,16 +4,16 @@ declare class AccountClient {
4
4
  private accountService;
5
5
  constructor(clientData: AccountClientData);
6
6
  Get: (accountId: number) => Promise<{
7
- response: any;
8
- status: string;
9
- newUser: any;
10
- message: any;
7
+ data: import("../../types").AccountData;
8
+ success: boolean;
9
+ message: string;
10
+ error: any;
11
11
  }>;
12
12
  GetLimits: (accountId: number) => Promise<{
13
- response: any;
14
- status: string;
15
- newUser: any;
16
- message: any;
13
+ data: import("../../types").AccountData;
14
+ success: boolean;
15
+ message: string;
16
+ error: any;
17
17
  }>;
18
18
  }
19
19
  export { AccountClient };
@@ -1,31 +1,38 @@
1
1
  import { AxiosHelper } from "../../helper";
2
2
  import { ResponseHelper } from "../../helper";
3
+ import { FillAccountData, FillResultByError } from "../data";
3
4
  import { AccountService } from "../services";
4
5
  class AccountClient {
6
+ clientData;
7
+ accountService;
5
8
  constructor(clientData) {
6
9
  this.clientData = clientData;
7
- // #region "GET"
8
- this.Get = async (accountId) => {
9
- try {
10
- const response = await this.accountService.get(accountId);
11
- return ResponseHelper.GetSuccessResponse(response, this.clientData.userInfo, "account", "getAccount", "getAccount");
12
- }
13
- catch (error) {
14
- return ResponseHelper.GetErrorResponse(error);
15
- }
16
- };
17
- this.GetLimits = async (accountId) => {
18
- try {
19
- const response = await this.accountService.getLimits(accountId);
20
- return ResponseHelper.GetSuccessResponse(response, this.clientData.userInfo, "account", "getAccountLimit", "getAccountLimit");
21
- }
22
- catch (error) {
23
- return ResponseHelper.GetErrorResponse(error);
24
- }
25
- };
26
10
  const { token, baseUrl, lang, installationId } = clientData;
27
11
  const config = AxiosHelper.GetAxiosConfig(token, baseUrl, lang, installationId);
28
12
  this.accountService = new AccountService(config);
29
13
  }
14
+ // #region "GET"
15
+ Get = async (accountId) => {
16
+ try {
17
+ const response = await this.accountService.get(accountId);
18
+ return ResponseHelper.GetResponse(response.data);
19
+ }
20
+ catch (error) {
21
+ const result = FillResultByError(error);
22
+ const accountData = FillAccountData("result", result);
23
+ return ResponseHelper.GetErrorResponse(accountData, "Get");
24
+ }
25
+ };
26
+ GetLimits = async (accountId) => {
27
+ try {
28
+ const response = await this.accountService.getLimits(accountId);
29
+ return ResponseHelper.GetResponse(response.data);
30
+ }
31
+ catch (error) {
32
+ const result = FillResultByError(error);
33
+ const accountData = FillAccountData("result", result);
34
+ return ResponseHelper.GetErrorResponse(accountData, "GetLimits");
35
+ }
36
+ };
30
37
  }
31
38
  export { AccountClient };
@@ -1,32 +1,37 @@
1
- import type { AuthClientData, IGenerateLimitedTokenData, ILoginDeviceCredentialsData, ILoginGoogleCredentialsData, ILoginUserCredentialsData } from "../../types";
1
+ import type { AuthClientData, BaseResult, IGenerateLimitedTokenData, ILoginDeviceCredentialsData, ILoginGoogleCredentialsData, ILoginUserCredentialsData } from "../../types";
2
2
  declare class AuthClient {
3
3
  private readonly clientData;
4
4
  private programId;
5
5
  private authService;
6
6
  constructor(clientData: AuthClientData);
7
7
  LoginUserCredentials: (data: ILoginUserCredentialsData) => Promise<{
8
- response: any;
9
- status: string;
10
- newUser: any;
11
- message: any;
8
+ data: import("../../types").TokenData;
9
+ success: boolean;
10
+ message: string;
11
+ error: any;
12
+ } | {
13
+ data: BaseResult;
14
+ success: boolean;
15
+ message: string;
16
+ error: string;
12
17
  }>;
13
18
  LoginDeviceCredentials: (data: ILoginDeviceCredentialsData) => Promise<{
14
- response: any;
15
- status: string;
16
- newUser: any;
17
- message: any;
19
+ data: BaseResult;
20
+ success: boolean;
21
+ message: string;
22
+ error: any;
18
23
  }>;
19
24
  LoginGoogleCredentials: (data: ILoginGoogleCredentialsData) => Promise<{
20
- response: any;
21
- status: string;
22
- newUser: any;
23
- message: any;
25
+ data: BaseResult;
26
+ success: boolean;
27
+ message: string;
28
+ error: any;
24
29
  }>;
25
30
  GenerateLimitedToken: (data: IGenerateLimitedTokenData) => Promise<{
26
- response: any;
27
- status: string;
28
- newUser: any;
29
- message: any;
31
+ data: BaseResult;
32
+ success: boolean;
33
+ message: string;
34
+ error: any;
30
35
  }>;
31
36
  }
32
37
  export { AuthClient };
@@ -1,55 +1,70 @@
1
1
  import { AxiosHelper } from "../../helper";
2
2
  import { ResponseHelper } from "../../helper";
3
- import { FillGenerateLimitedTokenData, FillLoginDeviceCredentialsData, FillLoginGoogleCredentialsData, FillLoginUserCredentialsData, } from "../data";
3
+ import { FillBaseResult, FillGenerateLimitedTokenData, FillLoginDeviceCredentialsData, FillLoginGoogleCredentialsData, FillLoginUserCredentialsData, FillResult, FillResultByError, } from "../data";
4
4
  import { AuthService } from "../services";
5
5
  class AuthClient {
6
+ clientData;
7
+ programId;
8
+ authService;
6
9
  constructor(clientData) {
7
10
  this.clientData = clientData;
8
- // #region "POST"
9
- this.LoginUserCredentials = async (data) => {
10
- try {
11
- const credentialsData = FillLoginUserCredentialsData(this.programId, data);
12
- const response = await this.authService.login(credentialsData);
13
- return ResponseHelper.GetSuccessResponse(response, {}, "security", "loginUserCredentials");
14
- }
15
- catch (error) {
16
- return ResponseHelper.GetErrorResponse(error);
17
- }
18
- };
19
- this.LoginDeviceCredentials = async (data) => {
20
- try {
21
- const credentialsData = FillLoginDeviceCredentialsData(this.programId, data);
22
- const response = await this.authService.login(credentialsData);
23
- return ResponseHelper.GetSuccessResponse(response, {}, "security", "loginDeviceCredentials");
24
- }
25
- catch (error) {
26
- return ResponseHelper.GetErrorResponse(error);
27
- }
28
- };
29
- this.LoginGoogleCredentials = async (data) => {
30
- try {
31
- const credentialsData = FillLoginGoogleCredentialsData(this.programId, data);
32
- const response = await this.authService.login(credentialsData);
33
- return ResponseHelper.GetSuccessResponse(response, {}, "security", "loginGoogleCredentials");
34
- }
35
- catch (error) {
36
- return ResponseHelper.GetErrorResponse(error);
37
- }
38
- };
39
- this.GenerateLimitedToken = async (data) => {
40
- try {
41
- const tokenData = FillGenerateLimitedTokenData(data);
42
- const response = await this.authService.generateLimitedToken(tokenData);
43
- return ResponseHelper.GetSuccessResponse(response, {}, "security", "generateLimitedToken");
44
- }
45
- catch (error) {
46
- return ResponseHelper.GetErrorResponse(error);
47
- }
48
- };
49
11
  const { baseUrl, nodeUrl, lang, programId } = this.clientData;
50
12
  const config = AxiosHelper.GetAuthAxiosConfig(baseUrl, lang, "");
51
13
  this.authService = new AuthService(config, nodeUrl);
52
14
  this.programId = programId;
53
15
  }
16
+ // #region "POST"
17
+ LoginUserCredentials = async (data) => {
18
+ try {
19
+ const credentialsData = FillLoginUserCredentialsData(this.programId, data);
20
+ const response = await this.authService.login(credentialsData);
21
+ response.data.result = FillResult(response.data);
22
+ return ResponseHelper.GetResponse(response.data);
23
+ }
24
+ catch (error) {
25
+ const result = FillResultByError(error);
26
+ const baseResult = FillBaseResult("result", result);
27
+ return ResponseHelper.GetErrorResponse(baseResult, "LoginUserCredentials");
28
+ }
29
+ };
30
+ LoginDeviceCredentials = async (data) => {
31
+ try {
32
+ const credentialsData = FillLoginDeviceCredentialsData(this.programId, data);
33
+ const response = await this.authService.login(credentialsData);
34
+ response.data.result = FillResult(response.data);
35
+ return ResponseHelper.GetResponse(response.data);
36
+ }
37
+ catch (error) {
38
+ const result = FillResultByError(error);
39
+ const baseResult = FillBaseResult("result", result);
40
+ return ResponseHelper.GetErrorResponse(baseResult, "LoginDeviceCredentials");
41
+ }
42
+ };
43
+ LoginGoogleCredentials = async (data) => {
44
+ try {
45
+ const credentialsData = FillLoginGoogleCredentialsData(this.programId, data);
46
+ const response = await this.authService.login(credentialsData);
47
+ response.data.result = FillResult(response.data);
48
+ return ResponseHelper.GetResponse(response.data);
49
+ }
50
+ catch (error) {
51
+ const result = FillResultByError(error);
52
+ const baseResult = FillBaseResult("result", result);
53
+ return ResponseHelper.GetErrorResponse(baseResult, "LoginGoogleCredentials");
54
+ }
55
+ };
56
+ GenerateLimitedToken = async (data) => {
57
+ try {
58
+ const tokenData = FillGenerateLimitedTokenData(data);
59
+ const response = await this.authService.generateLimitedToken(tokenData);
60
+ response.data.result = FillResult(response.data);
61
+ return ResponseHelper.GetResponse(response.data);
62
+ }
63
+ catch (error) {
64
+ const result = FillResultByError(error);
65
+ const baseResult = FillBaseResult("result", result);
66
+ return ResponseHelper.GetErrorResponse(baseResult, "GenerateLimitedToken");
67
+ }
68
+ };
54
69
  }
55
70
  export { AuthClient };
@@ -4,28 +4,28 @@ declare class BlockchainClient {
4
4
  private blockchainService;
5
5
  constructor(clientData: BlockchainClientData);
6
6
  Send: (data: IBlockchainSendRequestData) => Promise<{
7
- response: any;
8
- status: string;
9
- newUser: any;
10
- message: any;
7
+ data: import("../..").BlockchainData;
8
+ success: boolean;
9
+ message: string;
10
+ error: any;
11
11
  }>;
12
12
  MultiSend: (data: IBlockchainMultiSendRequestData) => Promise<{
13
- response: any;
14
- status: string;
15
- newUser: any;
16
- message: any;
13
+ data: import("../..").BlockchainData;
14
+ success: boolean;
15
+ message: string;
16
+ error: any;
17
17
  }>;
18
18
  Delegate: (data: IBlockchainDelegateRequestData) => Promise<{
19
- response: any;
20
- status: string;
21
- newUser: any;
22
- message: any;
19
+ data: import("../..").BlockchainData;
20
+ success: boolean;
21
+ message: string;
22
+ error: any;
23
23
  }>;
24
24
  Undelegate: (data: IBlockchainUndelegateRequestData) => Promise<{
25
- response: any;
26
- status: string;
27
- newUser: any;
28
- message: any;
25
+ data: import("../..").BlockchainData;
26
+ success: boolean;
27
+ message: string;
28
+ error: any;
29
29
  }>;
30
30
  }
31
31
  export { BlockchainClient };
@@ -1,54 +1,64 @@
1
1
  import { AxiosHelper } from "../../helper";
2
2
  import { ResponseHelper } from "../../helper";
3
- import { FillBlockchainDelegateData, FillBlockchainMultiSendData, FillBlockchainSendData, FillBlockchainUndelegateData, } from "../data/blockchain";
3
+ import { FillBlockchainData, FillBlockchainDelegateData, FillBlockchainMultiSendData, FillBlockchainSendData, FillBlockchainUndelegateData, FillResultByError, } from "../data";
4
4
  import { BlockchainService } from "../services/blockchain";
5
5
  class BlockchainClient {
6
+ clientData;
7
+ blockchainService;
6
8
  constructor(clientData) {
7
9
  this.clientData = clientData;
8
- // #region "POST"
9
- this.Send = async (data) => {
10
- try {
11
- const blockchainSendData = FillBlockchainSendData(data);
12
- const response = await this.blockchainService.send(blockchainSendData);
13
- return ResponseHelper.GetSuccessResponse(response, this.clientData.userInfo, "send", "SendRequest", "send");
14
- }
15
- catch (error) {
16
- return ResponseHelper.GetErrorResponse(error);
17
- }
18
- };
19
- this.MultiSend = async (data) => {
20
- try {
21
- const blockchainMultiSendData = FillBlockchainMultiSendData(data);
22
- const response = await this.blockchainService.multiSend(blockchainMultiSendData);
23
- return ResponseHelper.GetSuccessResponse(response, this.clientData.userInfo, "multiSend", "MultiSendRequest", "multiSend");
24
- }
25
- catch (error) {
26
- return ResponseHelper.GetErrorResponse(error);
27
- }
28
- };
29
- this.Delegate = async (data) => {
30
- try {
31
- const blockchainDelegateData = FillBlockchainDelegateData(data);
32
- const response = await this.blockchainService.delegate(blockchainDelegateData);
33
- return ResponseHelper.GetSuccessResponse(response, this.clientData.userInfo, "delegate", "DelegateRequest", "delegate");
34
- }
35
- catch (error) {
36
- return ResponseHelper.GetErrorResponse(error);
37
- }
38
- };
39
- this.Undelegate = async (data) => {
40
- try {
41
- const blockchainUndelegateData = FillBlockchainUndelegateData(data);
42
- const response = await this.blockchainService.undelegate(blockchainUndelegateData);
43
- return ResponseHelper.GetSuccessResponse(response, this.clientData.userInfo, "undelegate", "UndelegateRequest", "undelegate");
44
- }
45
- catch (error) {
46
- return ResponseHelper.GetErrorResponse(error);
47
- }
48
- };
49
10
  const { token, baseUrl, lang, installationId } = clientData;
50
11
  const config = AxiosHelper.GetAxiosConfig(token, baseUrl, lang, installationId);
51
12
  this.blockchainService = new BlockchainService(config);
52
13
  }
14
+ // #region "POST"
15
+ Send = async (data) => {
16
+ try {
17
+ const blockchainSendData = FillBlockchainSendData(data);
18
+ const response = await this.blockchainService.send(blockchainSendData);
19
+ return ResponseHelper.GetResponse(response.data);
20
+ }
21
+ catch (error) {
22
+ const result = FillResultByError(error);
23
+ const blockchainData = FillBlockchainData("result", result);
24
+ return ResponseHelper.GetErrorResponse(blockchainData, "Send");
25
+ }
26
+ };
27
+ MultiSend = async (data) => {
28
+ try {
29
+ const blockchainMultiSendData = FillBlockchainMultiSendData(data);
30
+ const response = await this.blockchainService.multiSend(blockchainMultiSendData);
31
+ return ResponseHelper.GetResponse(response.data);
32
+ }
33
+ catch (error) {
34
+ const result = FillResultByError(error);
35
+ const blockchainData = FillBlockchainData("result", result);
36
+ return ResponseHelper.GetErrorResponse(blockchainData, "MultiSend");
37
+ }
38
+ };
39
+ Delegate = async (data) => {
40
+ try {
41
+ const blockchainDelegateData = FillBlockchainDelegateData(data);
42
+ const response = await this.blockchainService.delegate(blockchainDelegateData);
43
+ return ResponseHelper.GetResponse(response.data);
44
+ }
45
+ catch (error) {
46
+ const result = FillResultByError(error);
47
+ const blockchainData = FillBlockchainData("result", result);
48
+ return ResponseHelper.GetErrorResponse(blockchainData, "Delegate");
49
+ }
50
+ };
51
+ Undelegate = async (data) => {
52
+ try {
53
+ const blockchainUndelegateData = FillBlockchainUndelegateData(data);
54
+ const response = await this.blockchainService.undelegate(blockchainUndelegateData);
55
+ return ResponseHelper.GetResponse(response.data);
56
+ }
57
+ catch (error) {
58
+ const result = FillResultByError(error);
59
+ const blockchainData = FillBlockchainData("result", result);
60
+ return ResponseHelper.GetErrorResponse(blockchainData, "Undelegate");
61
+ }
62
+ };
53
63
  }
54
64
  export { BlockchainClient };
@@ -1,24 +1,26 @@
1
1
  import { IPAddressAndLocationService } from "../services";
2
2
  import { AxiosHelper, GeoHelper } from "../../helper";
3
3
  class IPAddressAndLocationClient {
4
+ clientData;
5
+ ipAddressAndLocationService;
4
6
  constructor(clientData) {
5
7
  this.clientData = clientData;
6
- // #region "GET"
7
- this.GetGeoCoordinates = async () => {
8
- const data = await GeoHelper.GetGeoCoordinates(this.ipAddressAndLocationService);
9
- return data;
10
- };
11
- this.GetIPAddress = async () => {
12
- const data = await GeoHelper.GetIPAddress(this.ipAddressAndLocationService);
13
- return data;
14
- };
15
- this.GetGeoCoordinatesAndIPAddress = async () => {
16
- const data = await GeoHelper.GetGeoCoordinatesAndIPAddress(this.ipAddressAndLocationService);
17
- return data;
18
- };
19
8
  const { token, baseUrl, lang, installationId } = clientData;
20
9
  const config = AxiosHelper.GetAxiosConfig(token, baseUrl, lang, installationId);
21
10
  this.ipAddressAndLocationService = new IPAddressAndLocationService(config);
22
11
  }
12
+ // #region "GET"
13
+ GetGeoCoordinates = async () => {
14
+ const data = await GeoHelper.GetGeoCoordinates(this.ipAddressAndLocationService);
15
+ return data;
16
+ };
17
+ GetIPAddress = async () => {
18
+ const data = await GeoHelper.GetIPAddress(this.ipAddressAndLocationService);
19
+ return data;
20
+ };
21
+ GetGeoCoordinatesAndIPAddress = async () => {
22
+ const data = await GeoHelper.GetGeoCoordinatesAndIPAddress(this.ipAddressAndLocationService);
23
+ return data;
24
+ };
23
25
  }
24
26
  export { IPAddressAndLocationClient };
@@ -4,52 +4,62 @@ declare class LimitedClient {
4
4
  private limitedService;
5
5
  constructor(clientData: LimitedClientData);
6
6
  ValidateForgetPassword: (data: IValidateForgetPasswordData) => Promise<{
7
- response: any;
8
- status: string;
9
- newUser: any;
10
- message: any;
7
+ data: import("../../types").ForgetSecurityData;
8
+ success: boolean;
9
+ message: string;
10
+ error: any;
11
11
  }>;
12
12
  ConfirmForgetPassword: (data: IConfirmForgetPasswordData) => Promise<{
13
- response: any;
14
- status: string;
15
- newUser: any;
16
- message: any;
13
+ data: import("../../types").ForgetSecurityData;
14
+ success: boolean;
15
+ message: string;
16
+ error: any;
17
17
  }>;
18
18
  ValidateEmail: (data: IValidateEmailData) => Promise<{
19
- response: any;
20
- status: string;
21
- newUser: any;
22
- message: any;
19
+ data: import("../../types").ValidateLimitedSecurity;
20
+ success: boolean;
21
+ message: string;
22
+ error: any;
23
23
  }>;
24
24
  ValidatePhone: (data: IValidatePhoneData) => Promise<{
25
- response: any;
26
- status: string;
27
- newUser: any;
28
- message: any;
25
+ data: import("../../types").ValidateLimitedSecurity;
26
+ success: boolean;
27
+ message: string;
28
+ error: any;
29
29
  }>;
30
30
  VerifyEmail: (data: IVerifyEmailData) => Promise<{
31
- response: any;
32
- status: string;
33
- newUser: any;
34
- message: any;
31
+ data: import("../../types").ValidateLimitedSecurity;
32
+ success: boolean;
33
+ message: string;
34
+ error: string;
35
+ } | {
36
+ data: import("../../types").VerifyUserSecurity;
37
+ success: boolean;
38
+ message: string;
39
+ error: any;
35
40
  }>;
36
41
  VerifyPhone: (data: IVerifyPhoneData) => Promise<{
37
- response: any;
38
- status: string;
39
- newUser: any;
40
- message: any;
42
+ data: import("../../types").ValidateLimitedSecurity;
43
+ success: boolean;
44
+ message: string;
45
+ error: string;
46
+ } | {
47
+ data: import("../../types").VerifyUserSecurity;
48
+ success: boolean;
49
+ message: string;
50
+ error: any;
41
51
  }>;
42
52
  ConfirmEmail: (data: IConfirmEmailData) => Promise<{
43
- response: any;
44
- status: string;
45
- newUser: any;
46
- message: any;
53
+ data: import("../../types").ConfirmUserSecurity;
54
+ success: boolean;
55
+ message: string;
56
+ error: any;
47
57
  }>;
48
58
  ConfirmPhone: (data: IConfirmPhoneData) => Promise<{
49
- response: any;
50
- status: string;
51
- newUser: any;
52
- message: any;
59
+ data: import("../../types").ConfirmUserSecurity;
60
+ success: boolean;
61
+ message: string;
62
+ error: any;
53
63
  }>;
54
64
  }
55
65
  export { LimitedClient };