ggez-banking-sdk 0.4.5 → 0.4.7
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/api/api.js +5 -3
- package/dist/api/context/defaultClientContextProvider.js +1 -1
- package/dist/api/data/result.d.ts +2 -6
- package/dist/api/data/result.js +3 -15
- package/dist/api/proxy/account.d.ts +2 -2
- package/dist/api/proxy/auth.d.ts +4 -4
- package/dist/api/proxy/blockchain.d.ts +4 -4
- package/dist/api/proxy/blockchain.js +8 -4
- package/dist/api/proxy/limited.d.ts +9 -9
- package/dist/api/proxy/limited.js +18 -9
- package/dist/api/proxy/order.d.ts +1 -1
- package/dist/api/proxy/order.js +2 -1
- package/dist/api/proxy/organization.d.ts +5 -5
- package/dist/api/proxy/organization.js +10 -4
- package/dist/api/proxy/program.d.ts +3 -3
- package/dist/api/proxy/promotion.d.ts +3 -5
- package/dist/api/proxy/promotion.js +2 -1
- package/dist/api/proxy/transaction.d.ts +5 -5
- package/dist/api/proxy/transaction.js +10 -5
- package/dist/api/proxy/user.d.ts +76 -76
- package/dist/api/proxy/user.js +188 -47
- package/dist/api/service/account.d.ts +2 -2
- package/dist/api/service/auth.d.ts +2 -2
- package/dist/api/service/base.d.ts +8 -7
- package/dist/api/service/base.js +18 -14
- package/dist/api/service/blockchain.d.ts +4 -4
- package/dist/api/service/ipAddressAndLocation.d.ts +2 -2
- package/dist/api/service/limited.d.ts +6 -6
- package/dist/api/service/order.d.ts +1 -1
- package/dist/api/service/organization.d.ts +5 -5
- package/dist/api/service/program.d.ts +3 -3
- package/dist/api/service/promotion.d.ts +4 -6
- package/dist/api/service/transaction.d.ts +2 -2
- package/dist/api/service/user.d.ts +64 -64
- package/dist/auth.d.ts +0 -1
- package/dist/helper/api/responseHelper.d.ts +5 -12
- package/dist/helper/api/responseHelper.js +29 -12
- package/dist/helper/geoHelper.js +6 -6
- package/dist/types/api/api.d.ts +8 -0
- package/dist/types/api/context/clientContext.d.ts +1 -1
- package/dist/types/api/index.d.ts +1 -1
- package/dist/types/api/service/base.d.ts +8 -0
- package/dist/types/api/service/ipAddressAndLocation.d.ts +5 -0
- package/dist/types/api/service/promotion.d.ts +8 -0
- package/dist/types/helper/geoHelper.d.ts +3 -2
- package/dist/types/node/promotionDetails.d.ts +2 -1
- package/package.json +1 -1
- package/dist/types/api/client/auth.d.ts +0 -17
- package/dist/types/api/client/clientData.d.ts +0 -22
- package/dist/types/api/client/clientData.js +0 -1
- package/dist/types/api/client/index.d.ts +0 -3
- package/dist/types/api/client/index.js +0 -1
- package/dist/types/api/client/openPayd.d.ts +0 -9
- package/dist/types/api/client/openPayd.js +0 -1
- /package/dist/types/api/{client/auth.js → api.js} +0 -0
package/dist/api/api.js
CHANGED
|
@@ -22,10 +22,12 @@ class API {
|
|
|
22
22
|
nodeUrl: clientData.nodeUrl,
|
|
23
23
|
programId: clientData.programId,
|
|
24
24
|
lang: clientData.lang,
|
|
25
|
-
installationId: clientData.installationId,
|
|
26
25
|
});
|
|
27
|
-
this.cookiesHelper = new CookiesHelper(
|
|
28
|
-
const authService = new AuthService({
|
|
26
|
+
this.cookiesHelper = new CookiesHelper(clientData.programId, clientData.domain, errorHandler);
|
|
27
|
+
const authService = new AuthService({
|
|
28
|
+
context: this.context,
|
|
29
|
+
errorHandler,
|
|
30
|
+
});
|
|
29
31
|
this.auth = new AuthProxy(this.context, authService, this.cookiesHelper);
|
|
30
32
|
this.account = new AccountProxy(this.context, errorHandler);
|
|
31
33
|
this.blockchain = new BlockchainProxy(this.context, errorHandler);
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import type { BaseResult } from "../../types/banking/common/baseresult";
|
|
2
|
-
import type { Result } from "../../types/banking/common/result";
|
|
3
2
|
declare const createDefaultBaseResult: (overrides?: Partial<BaseResult>) => BaseResult;
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
}>(responseData: K) => Result;
|
|
7
|
-
declare const fillResultByError: (error: any) => Result;
|
|
8
|
-
export { createDefaultBaseResult, fillResult, fillResultByError };
|
|
3
|
+
declare const fillResultByError: (error: any) => BaseResult;
|
|
4
|
+
export { createDefaultBaseResult, fillResultByError };
|
package/dist/api/data/result.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HttpStatusCode } from "axios";
|
|
2
|
-
import { SystemResponses } from "../../constant";
|
|
3
2
|
const createDefaultBaseResult = (overrides) => ({
|
|
4
3
|
result: null,
|
|
5
4
|
notes: null,
|
|
@@ -12,18 +11,6 @@ const createDefaultBaseResult = (overrides) => ({
|
|
|
12
11
|
time_zone_name: null,
|
|
13
12
|
...overrides,
|
|
14
13
|
});
|
|
15
|
-
const fillResult = (responseData) => {
|
|
16
|
-
if (responseData.error) {
|
|
17
|
-
const result = fillResultByError(responseData.error);
|
|
18
|
-
responseData.result = result;
|
|
19
|
-
}
|
|
20
|
-
return {
|
|
21
|
-
code: SystemResponses.Approved,
|
|
22
|
-
message: "Operation Completed Successfully",
|
|
23
|
-
friendly_message: "Operation Completed Successfully",
|
|
24
|
-
description: "Operation Completed Successfully",
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
14
|
const fillResultByError = (error) => {
|
|
28
15
|
const result = {
|
|
29
16
|
code: HttpStatusCode.BadRequest.toString(),
|
|
@@ -31,6 +18,7 @@ const fillResultByError = (error) => {
|
|
|
31
18
|
friendly_message: error.data?.error || error.message || error.toString(),
|
|
32
19
|
description: error.data?.error || error.message || error.toString(),
|
|
33
20
|
};
|
|
34
|
-
|
|
21
|
+
const baseResult = createDefaultBaseResult({ result });
|
|
22
|
+
return baseResult;
|
|
35
23
|
};
|
|
36
|
-
export { createDefaultBaseResult,
|
|
24
|
+
export { createDefaultBaseResult, fillResultByError };
|
|
@@ -4,7 +4,7 @@ import { BaseProxy } from "./base";
|
|
|
4
4
|
declare class AccountProxy extends BaseProxy {
|
|
5
5
|
private accountService;
|
|
6
6
|
constructor(context: ClientContextProvider, errorHandler: ErrorHandler);
|
|
7
|
-
get: (accountId: number) => Promise<import("
|
|
8
|
-
getLimits: (accountId: number) => Promise<import("
|
|
7
|
+
get: (accountId: number) => Promise<import("../..").ApiResponse<import("../..").AccountData>>;
|
|
8
|
+
getLimits: (accountId: number) => Promise<import("../..").ApiResponse<import("../..").AccountData>>;
|
|
9
9
|
}
|
|
10
10
|
export { AccountProxy };
|
package/dist/api/proxy/auth.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ declare class AuthProxy {
|
|
|
9
9
|
private cookiesHelper;
|
|
10
10
|
constructor(context: ClientContextProvider, authService: AuthService, cookiesHelper: CookiesHelper);
|
|
11
11
|
private login;
|
|
12
|
-
loginUserCredentials(data: ILoginUserCredentialsData): Promise<import("
|
|
13
|
-
loginDeviceCredentials(data: ILoginDeviceCredentialsData): Promise<import("
|
|
14
|
-
loginGoogleCredentials(data: ILoginGoogleCredentialsData): Promise<import("
|
|
15
|
-
generateLimitedToken(data: IGenerateLimitedTokenData): Promise<import("
|
|
12
|
+
loginUserCredentials(data: ILoginUserCredentialsData): Promise<import("../..").ApiResponse<import("../..").TokenData>>;
|
|
13
|
+
loginDeviceCredentials(data: ILoginDeviceCredentialsData): Promise<import("../..").ApiResponse<import("../..").TokenData>>;
|
|
14
|
+
loginGoogleCredentials(data: ILoginGoogleCredentialsData): Promise<import("../..").ApiResponse<import("../..").TokenData>>;
|
|
15
|
+
generateLimitedToken(data: IGenerateLimitedTokenData): Promise<import("../..").ApiResponse<import("../..").NodeTokenData>>;
|
|
16
16
|
}
|
|
17
17
|
export { AuthProxy };
|
|
@@ -4,9 +4,9 @@ import { BaseProxy } from "./base";
|
|
|
4
4
|
declare class BlockchainProxy extends BaseProxy {
|
|
5
5
|
private blockchainService;
|
|
6
6
|
constructor(context: ClientContextProvider, errorHandler: ErrorHandler);
|
|
7
|
-
send: (data: IBlockchainSendRequestData) => Promise<import("
|
|
8
|
-
multiSend: (data: IBlockchainMultiSendRequestData) => Promise<import("
|
|
9
|
-
delegate: (data: IBlockchainDelegateRequestData) => Promise<import("
|
|
10
|
-
undelegate: (data: IBlockchainUndelegateRequestData) => Promise<import("
|
|
7
|
+
send: (data: IBlockchainSendRequestData) => Promise<import("../..").ApiResponse<import("../..").BlockchainData>>;
|
|
8
|
+
multiSend: (data: IBlockchainMultiSendRequestData) => Promise<import("../..").ApiResponse<import("../..").BlockchainData>>;
|
|
9
|
+
delegate: (data: IBlockchainDelegateRequestData) => Promise<import("../..").ApiResponse<import("../..").BlockchainData>>;
|
|
10
|
+
undelegate: (data: IBlockchainUndelegateRequestData) => Promise<import("../..").ApiResponse<import("../..").BlockchainData>>;
|
|
11
11
|
}
|
|
12
12
|
export { BlockchainProxy };
|
|
@@ -9,16 +9,20 @@ class BlockchainProxy extends BaseProxy {
|
|
|
9
9
|
}
|
|
10
10
|
// #region "POST"
|
|
11
11
|
send = async (data) => {
|
|
12
|
-
|
|
12
|
+
const blockchainData = fillBlockchainSendData(data);
|
|
13
|
+
return this.blockchainService.send(blockchainData);
|
|
13
14
|
};
|
|
14
15
|
multiSend = async (data) => {
|
|
15
|
-
|
|
16
|
+
const blockchainData = fillBlockchainMultiSendData(data);
|
|
17
|
+
return this.blockchainService.multiSend(blockchainData);
|
|
16
18
|
};
|
|
17
19
|
delegate = async (data) => {
|
|
18
|
-
|
|
20
|
+
const blockchainData = fillBlockchainDelegateData(data);
|
|
21
|
+
return this.blockchainService.delegate(blockchainData);
|
|
19
22
|
};
|
|
20
23
|
undelegate = async (data) => {
|
|
21
|
-
|
|
24
|
+
const blockchainData = fillBlockchainUndelegateData(data);
|
|
25
|
+
return this.blockchainService.undelegate(blockchainData);
|
|
22
26
|
};
|
|
23
27
|
}
|
|
24
28
|
export { BlockchainProxy };
|
|
@@ -4,14 +4,14 @@ import { BaseProxy } from "./base";
|
|
|
4
4
|
declare class LimitedProxy extends BaseProxy {
|
|
5
5
|
private limitedService;
|
|
6
6
|
constructor(context: ClientContextProvider, errorHandler: ErrorHandler);
|
|
7
|
-
checkForgetPassword: (data: ICheckForgetPasswordData) => Promise<import("
|
|
8
|
-
validateForgetPassword: (data: IValidateForgetPasswordData) => Promise<import("
|
|
9
|
-
confirmForgetPassword: (data: IConfirmForgetPasswordData) => Promise<import("
|
|
10
|
-
validateEmail: (data: IValidateEmailData) => Promise<import("
|
|
11
|
-
validatePhone: (data: IValidatePhoneData) => Promise<import("
|
|
12
|
-
verifyEmail: (data: IVerifyEmailData) => Promise<import("
|
|
13
|
-
verifyPhone: (data: IVerifyPhoneData) => Promise<import("
|
|
14
|
-
confirmEmail: (data: IConfirmEmailData) => Promise<import("
|
|
15
|
-
confirmPhone: (data: IConfirmPhoneData) => Promise<import("
|
|
7
|
+
checkForgetPassword: (data: ICheckForgetPasswordData) => Promise<import("../..").ApiResponse<import("../..").ForgetSecurityData>>;
|
|
8
|
+
validateForgetPassword: (data: IValidateForgetPasswordData) => Promise<import("../..").ApiResponse<import("../..").ForgetSecurityData>>;
|
|
9
|
+
confirmForgetPassword: (data: IConfirmForgetPasswordData) => Promise<import("../..").ApiResponse<import("../..").ForgetSecurityData>>;
|
|
10
|
+
validateEmail: (data: IValidateEmailData) => Promise<import("../..").ApiResponse<import("../..").ValidateLimitedSecurity>>;
|
|
11
|
+
validatePhone: (data: IValidatePhoneData) => Promise<import("../..").ApiResponse<import("../..").ValidateLimitedSecurity>>;
|
|
12
|
+
verifyEmail: (data: IVerifyEmailData) => Promise<import("../..").ApiResponse<import("../..").VerifyUserSecurity>>;
|
|
13
|
+
verifyPhone: (data: IVerifyPhoneData) => Promise<import("../..").ApiResponse<import("../..").VerifyUserSecurity>>;
|
|
14
|
+
confirmEmail: (data: IConfirmEmailData) => Promise<import("../..").ApiResponse<import("../..").ConfirmUserSecurity>>;
|
|
15
|
+
confirmPhone: (data: IConfirmPhoneData) => Promise<import("../..").ApiResponse<import("../..").ConfirmUserSecurity>>;
|
|
16
16
|
}
|
|
17
17
|
export { LimitedProxy };
|
|
@@ -9,31 +9,40 @@ class LimitedProxy extends BaseProxy {
|
|
|
9
9
|
}
|
|
10
10
|
// #region "POST"
|
|
11
11
|
checkForgetPassword = async (data) => {
|
|
12
|
-
|
|
12
|
+
const forgetSecurityData = fillCheckForgetPasswordData(data);
|
|
13
|
+
return this.limitedService.checkForgetSecurityData(forgetSecurityData);
|
|
13
14
|
};
|
|
14
15
|
validateForgetPassword = async (data) => {
|
|
15
|
-
|
|
16
|
+
const forgetSecurityData = fillValidateForgetPasswordData(data);
|
|
17
|
+
return this.limitedService.validateForgetSecurityData(forgetSecurityData);
|
|
16
18
|
};
|
|
17
19
|
confirmForgetPassword = async (data) => {
|
|
18
|
-
|
|
20
|
+
const forgetSecurityData = fillConfirmForgetPasswordData(data);
|
|
21
|
+
return this.limitedService.confirmForgetSecurityData(forgetSecurityData);
|
|
19
22
|
};
|
|
20
23
|
validateEmail = async (data) => {
|
|
21
|
-
|
|
24
|
+
const validateSecurityData = fillValidateEmailData(data);
|
|
25
|
+
return this.limitedService.validateSecurityData(validateSecurityData);
|
|
22
26
|
};
|
|
23
27
|
validatePhone = async (data) => {
|
|
24
|
-
|
|
28
|
+
const validateSecurityData = fillValidatePhoneData(data);
|
|
29
|
+
return this.limitedService.validateSecurityData(validateSecurityData);
|
|
25
30
|
};
|
|
26
31
|
verifyEmail = async (data) => {
|
|
27
|
-
|
|
32
|
+
const verifySecurityData = fillVerifyEmailData(data);
|
|
33
|
+
return this.limitedService.verifySecurityData(verifySecurityData);
|
|
28
34
|
};
|
|
29
35
|
verifyPhone = async (data) => {
|
|
30
|
-
|
|
36
|
+
const verifySecurityData = fillVerifyPhoneData(data);
|
|
37
|
+
return this.limitedService.verifySecurityData(verifySecurityData);
|
|
31
38
|
};
|
|
32
39
|
confirmEmail = async (data) => {
|
|
33
|
-
|
|
40
|
+
const confirmSecurityData = fillConfirmEmailData(data);
|
|
41
|
+
return this.limitedService.confirmSecurityData(confirmSecurityData);
|
|
34
42
|
};
|
|
35
43
|
confirmPhone = async (data) => {
|
|
36
|
-
|
|
44
|
+
const confirmSecurityData = fillConfirmPhoneData(data);
|
|
45
|
+
return this.limitedService.confirmSecurityData(confirmSecurityData);
|
|
37
46
|
};
|
|
38
47
|
}
|
|
39
48
|
export { LimitedProxy };
|
|
@@ -4,6 +4,6 @@ import { BaseProxy } from "./base";
|
|
|
4
4
|
declare class OrderProxy extends BaseProxy {
|
|
5
5
|
private orderService;
|
|
6
6
|
constructor(context: ClientContextProvider, errorHandler: ErrorHandler);
|
|
7
|
-
createOrder: (data: ICreateOrderData) => Promise<import("
|
|
7
|
+
createOrder: (data: ICreateOrderData) => Promise<import("../..").ApiResponse<import("../..").OrderData>>;
|
|
8
8
|
}
|
|
9
9
|
export { OrderProxy };
|
package/dist/api/proxy/order.js
CHANGED
|
@@ -9,7 +9,8 @@ class OrderProxy extends BaseProxy {
|
|
|
9
9
|
}
|
|
10
10
|
// #region "POST"
|
|
11
11
|
createOrder = async (data) => {
|
|
12
|
-
|
|
12
|
+
const orderData = fillCreateOrderData(data);
|
|
13
|
+
return this.orderService.create(orderData);
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
16
|
export { OrderProxy };
|
|
@@ -6,10 +6,10 @@ declare class OrganizationProxy extends BaseProxy {
|
|
|
6
6
|
private context;
|
|
7
7
|
private organizationService;
|
|
8
8
|
constructor(context: ClientContextProvider, errorHandler: ErrorHandler);
|
|
9
|
-
getOrganization: (id: number) => Promise<import("
|
|
10
|
-
createOrganization: (data: ICreateOrganizationData) => Promise<import("
|
|
11
|
-
uploadDocument: (data: IUploadOrganizationDocumentData) => Promise<import("
|
|
12
|
-
updateOrganization: (data: IUpdateOrganizationData) => Promise<import("
|
|
13
|
-
deleteOrganization: (id: number) => Promise<import("
|
|
9
|
+
getOrganization: (id: number) => Promise<import("../..").ApiResponse<import("../..").OrganizationData>>;
|
|
10
|
+
createOrganization: (data: ICreateOrganizationData) => Promise<import("../..").ApiResponse<import("../..").OrganizationData>>;
|
|
11
|
+
uploadDocument: (data: IUploadOrganizationDocumentData) => Promise<import("../..").ApiResponse<import("../..").DocumentData>>;
|
|
12
|
+
updateOrganization: (data: IUpdateOrganizationData) => Promise<import("../..").ApiResponse<import("../..").OrganizationData>>;
|
|
13
|
+
deleteOrganization: (id: number) => Promise<import("../..").ApiResponse<import("../..").OrganizationData>>;
|
|
14
14
|
}
|
|
15
15
|
export { OrganizationProxy };
|
|
@@ -7,7 +7,10 @@ class OrganizationProxy extends BaseProxy {
|
|
|
7
7
|
constructor(context, errorHandler) {
|
|
8
8
|
super(errorHandler);
|
|
9
9
|
this.context = context;
|
|
10
|
-
this.organizationService = new OrganizationService({
|
|
10
|
+
this.organizationService = new OrganizationService({
|
|
11
|
+
context,
|
|
12
|
+
errorHandler,
|
|
13
|
+
});
|
|
11
14
|
}
|
|
12
15
|
// #region "GET"
|
|
13
16
|
getOrganization = async (id) => {
|
|
@@ -16,15 +19,18 @@ class OrganizationProxy extends BaseProxy {
|
|
|
16
19
|
// #endregion
|
|
17
20
|
// #region "POST"
|
|
18
21
|
createOrganization = async (data) => {
|
|
19
|
-
|
|
22
|
+
const organizationData = fillCreateOrganizationData(data, this.context.getUserId());
|
|
23
|
+
return this.organizationService.create(organizationData);
|
|
20
24
|
};
|
|
21
25
|
uploadDocument = async (data) => {
|
|
22
|
-
|
|
26
|
+
const documentData = fillCreateOrganizationDocumentData(data);
|
|
27
|
+
return this.organizationService.createDocument(data.id, documentData);
|
|
23
28
|
};
|
|
24
29
|
// #endregion
|
|
25
30
|
// #region "PUT"
|
|
26
31
|
updateOrganization = async (data) => {
|
|
27
|
-
|
|
32
|
+
const organizationData = fillUpdateOrganizationData(data, this.context.getUserId());
|
|
33
|
+
return this.organizationService.update(data.id, organizationData);
|
|
28
34
|
};
|
|
29
35
|
// #endregion
|
|
30
36
|
// #region "DELETE"
|
|
@@ -4,8 +4,8 @@ import { BaseProxy } from "./base";
|
|
|
4
4
|
declare class ProgramProxy extends BaseProxy {
|
|
5
5
|
private programService;
|
|
6
6
|
constructor(context: ClientContextProvider, errorHandler: ErrorHandler);
|
|
7
|
-
getSystemFeatures: () => Promise<import("
|
|
8
|
-
getBin: () => Promise<import("
|
|
9
|
-
getSignUp: () => Promise<import("
|
|
7
|
+
getSystemFeatures: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").ProgramData>>;
|
|
8
|
+
getBin: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").ProgramData>>;
|
|
9
|
+
getSignUp: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").ProgramData>>;
|
|
10
10
|
}
|
|
11
11
|
export { ProgramProxy };
|
|
@@ -4,10 +4,8 @@ import { BaseProxy } from "./base";
|
|
|
4
4
|
declare class PromotionProxy extends BaseProxy {
|
|
5
5
|
private promotionService;
|
|
6
6
|
constructor(context: ClientContextProvider, errorHandler: ErrorHandler);
|
|
7
|
-
getPromotionByCode: (code: string) => Promise<import("
|
|
8
|
-
getTwitterSpotlightPostIds: () => Promise<import("
|
|
9
|
-
incrementPromotionParticipants: (data: GGEZGiftRewards) => Promise<import("
|
|
10
|
-
message: string;
|
|
11
|
-
}, any, {}>>;
|
|
7
|
+
getPromotionByCode: (code: string) => Promise<import("../..").ApiResponse<import("../..").PromotionDetails>>;
|
|
8
|
+
getTwitterSpotlightPostIds: () => Promise<import("../..").ApiResponse<import("../..").TwitterSpotlightPostIdsResult>>;
|
|
9
|
+
incrementPromotionParticipants: (data: GGEZGiftRewards) => Promise<import("../..").ApiResponse<import("../..").PromotionIncrementResult>>;
|
|
12
10
|
}
|
|
13
11
|
export { PromotionProxy };
|
|
@@ -16,7 +16,8 @@ class PromotionProxy extends BaseProxy {
|
|
|
16
16
|
// #endregion
|
|
17
17
|
// #region "PUT"
|
|
18
18
|
incrementPromotionParticipants = async (data) => {
|
|
19
|
-
|
|
19
|
+
const giftRewards = data;
|
|
20
|
+
return this.promotionService.incrementPromotionParticipants(giftRewards);
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
23
|
export { PromotionProxy };
|
|
@@ -4,10 +4,10 @@ import { BaseProxy } from "./base";
|
|
|
4
4
|
declare class TransactionProxy extends BaseProxy {
|
|
5
5
|
private transactionService;
|
|
6
6
|
constructor(context: ClientContextProvider, errorHandler: ErrorHandler);
|
|
7
|
-
inquiryTransaction: (params: IInquiryTransactionData) => Promise<import("
|
|
8
|
-
createSystemTransaction: (data: ICreateSystemTransactionData) => Promise<import("
|
|
9
|
-
createBlockchainTransaction: (data: ICreateBlockchainTransactionData) => Promise<import("
|
|
10
|
-
createBlockchainTransferTransaction: (data: ICreateBlockchainTransferTransactionData) => Promise<import("
|
|
11
|
-
createGatewayCryptoTransaction: (data: ICreateGatewayCryptoTransactionData) => Promise<import("
|
|
7
|
+
inquiryTransaction: (params: IInquiryTransactionData) => Promise<import("../..").ApiResponse<import("../..").TransactionResultInquiry>>;
|
|
8
|
+
createSystemTransaction: (data: ICreateSystemTransactionData) => Promise<import("../..").ApiResponse<import("../..").TransactionData>>;
|
|
9
|
+
createBlockchainTransaction: (data: ICreateBlockchainTransactionData) => Promise<import("../..").ApiResponse<import("../..").TransactionData>>;
|
|
10
|
+
createBlockchainTransferTransaction: (data: ICreateBlockchainTransferTransactionData) => Promise<import("../..").ApiResponse<import("../..").TransactionData>>;
|
|
11
|
+
createGatewayCryptoTransaction: (data: ICreateGatewayCryptoTransactionData) => Promise<import("../..").ApiResponse<import("../..").TransactionData>>;
|
|
12
12
|
}
|
|
13
13
|
export { TransactionProxy };
|
|
@@ -9,21 +9,26 @@ class TransactionProxy extends BaseProxy {
|
|
|
9
9
|
}
|
|
10
10
|
// #region "GET"
|
|
11
11
|
inquiryTransaction = async (params) => {
|
|
12
|
-
|
|
12
|
+
const transactionInquiry = fillTransactionInquiryData(params);
|
|
13
|
+
return this.transactionService.inquiry(transactionInquiry);
|
|
13
14
|
};
|
|
14
15
|
// #endregion
|
|
15
16
|
// #region "POST"
|
|
16
17
|
createSystemTransaction = async (data) => {
|
|
17
|
-
|
|
18
|
+
const transactionData = fillCreateSystemTransactionData(data);
|
|
19
|
+
return this.transactionService.create(transactionData);
|
|
18
20
|
};
|
|
19
21
|
createBlockchainTransaction = async (data) => {
|
|
20
|
-
|
|
22
|
+
const transactionData = fillCreateBlockchainTransactionData(data);
|
|
23
|
+
return this.transactionService.create(transactionData);
|
|
21
24
|
};
|
|
22
25
|
createBlockchainTransferTransaction = async (data) => {
|
|
23
|
-
|
|
26
|
+
const transactionData = fillCreateBlockchainTransferTransactionData(data);
|
|
27
|
+
return this.transactionService.create(transactionData);
|
|
24
28
|
};
|
|
25
29
|
createGatewayCryptoTransaction = async (data) => {
|
|
26
|
-
|
|
30
|
+
const transactionData = fillCreateGatewayCryptoTransactionData(data);
|
|
31
|
+
return this.transactionService.create(transactionData);
|
|
27
32
|
};
|
|
28
33
|
}
|
|
29
34
|
export { TransactionProxy };
|
package/dist/api/proxy/user.d.ts
CHANGED
|
@@ -6,81 +6,81 @@ import { BaseProxy } from "./base";
|
|
|
6
6
|
declare class UserProxy extends BaseProxy {
|
|
7
7
|
private userService;
|
|
8
8
|
constructor(context: ClientContextProvider, errorHandler: ErrorHandler);
|
|
9
|
-
getUser: () => Promise<import("
|
|
10
|
-
getTermsAndConditions: () => Promise<import("
|
|
11
|
-
getSecurity: () => Promise<import("
|
|
12
|
-
getPhone: () => Promise<import("
|
|
13
|
-
getPreferences: () => Promise<import("
|
|
14
|
-
getPersonalInfo: () => Promise<import("
|
|
15
|
-
getLatestHistory: () => Promise<import("
|
|
16
|
-
getIdentification: () => Promise<import("
|
|
17
|
-
getHistory: () => Promise<import("
|
|
18
|
-
getGroup: () => Promise<import("
|
|
19
|
-
getExternalAuth: () => Promise<import("
|
|
20
|
-
getEmail: () => Promise<import("
|
|
21
|
-
getDocuments: () => Promise<import("
|
|
22
|
-
getCurrency: () => Promise<import("
|
|
23
|
-
getCreditCard: () => Promise<import("
|
|
24
|
-
getBankAccount: () => Promise<import("
|
|
25
|
-
getAddress: () => Promise<import("
|
|
26
|
-
getAccount: () => Promise<import("
|
|
27
|
-
getSecurityOperations: () => Promise<import("
|
|
28
|
-
getDeviceHistory: () => Promise<import("
|
|
29
|
-
createUser: (data: ICreateUserData) => Promise<import("
|
|
30
|
-
createUserWithGoogle: (data: ICreateUserWithGoogleData) => Promise<import("
|
|
31
|
-
createPhone: (data: ICreatePhoneData) => Promise<import("
|
|
32
|
-
createIdentification: (data: ICreateIdentificationData) => Promise<import("
|
|
33
|
-
createExternalAuth: (data: any) => Promise<import("
|
|
34
|
-
createEmail: (data: ICreateEmailData) => Promise<import("
|
|
35
|
-
createCurrency: (data: any) => Promise<import("
|
|
36
|
-
createCreditCard: (data: any) => Promise<import("
|
|
37
|
-
createTicket: (data: ICreateTicketData) => Promise<import("
|
|
38
|
-
createBankAccount: (data: ICreateBankAccountData) => Promise<import("
|
|
39
|
-
createAddress: (data: ICreateAddressData) => Promise<import("
|
|
40
|
-
createDevice: (data: ICreateDeviceData) => Promise<import("
|
|
41
|
-
securityAccess: (data: any) => Promise<import("
|
|
42
|
-
uploadDocument: (data: IUploadDocumentData) => Promise<import("
|
|
43
|
-
updateProfilePicture: (data: IUploadProfilePictureData) => Promise<import("
|
|
44
|
-
verifySecurityData: (data: any) => Promise<import("
|
|
45
|
-
verifyEmail: (data: IVerifyEmailData) => Promise<import("
|
|
46
|
-
sendEmailOTP: (data: ISendEmailOTPData) => Promise<import("
|
|
47
|
-
verifyPhone: (data: IVerifyPhoneData) => Promise<import("
|
|
48
|
-
sendPhoneOTP: (data: ISendPhoneOTPData) => Promise<import("
|
|
49
|
-
verifyDevice: (data: IVerifyDeviceData) => Promise<import("
|
|
50
|
-
confirmSecurityData: (data: any) => Promise<import("
|
|
51
|
-
confirmEmail: (data: IConfirmEmailData) => Promise<import("
|
|
52
|
-
confirmPhone: (data: IConfirmPhoneData) => Promise<import("
|
|
53
|
-
confirmDevice: (data: IConfirmDeviceData) => Promise<import("
|
|
54
|
-
resetSecurityData: (data: ResetUserSecurity) => Promise<import("
|
|
55
|
-
enrollGoogleAuth: () => Promise<import("
|
|
56
|
-
activateGoogleAuth: (data: IActivateGoogleAuthData) => Promise<import("
|
|
57
|
-
deleteGoogleAuth: (data: IDeleteGoogleAuthData) => Promise<import("
|
|
58
|
-
deactivateGoogleAuth: (data: IDeactivateGoogleAuthData) => Promise<import("
|
|
59
|
-
updateUser: (data: any) => Promise<import("
|
|
60
|
-
resetPassword: (data: IResetPasswordData) => Promise<import("
|
|
61
|
-
resetSecurityCode: (data: IResetSecurityCodeData) => Promise<import("
|
|
62
|
-
resetSecurityQuestions: (data: IResetSecurityQuestionsData) => Promise<import("
|
|
63
|
-
validateSecurityCode: (data: IValidateSecurityCodeData) => Promise<import("
|
|
64
|
-
updatePreferences: (data: IUpdatePreferencesData) => Promise<import("
|
|
65
|
-
updatePhone: (data: IUpdatePhoneData) => Promise<import("
|
|
66
|
-
makePhonePrimary: (data: IMakePhonePrimaryData) => Promise<import("
|
|
67
|
-
updatePersonalInfo: (data: IUpdatePersonalInfoData) => Promise<import("
|
|
68
|
-
updateIdentification: (data: IUpdateIdentificationData) => Promise<import("
|
|
69
|
-
updateExternalAuth: (data: any) => Promise<import("
|
|
70
|
-
updateEmail: (data: IUpdateEmailData) => Promise<import("
|
|
71
|
-
makeEmailPrimary: (data: IMakeEmailPrimaryData) => Promise<import("
|
|
72
|
-
updateBankAccount: (data: IUpdateBankAccountData) => Promise<import("
|
|
73
|
-
makeBankAccountPrimary: (data: IMakeBankAccountPrimaryData) => Promise<import("
|
|
74
|
-
updateAddress: (data: IUpdateAddressData) => Promise<import("
|
|
75
|
-
makeAddressPrimary: (data: IMakeAddressPrimaryData) => Promise<import("
|
|
76
|
-
updateDevice: (data: IUpdateDeviceData) => Promise<import("
|
|
77
|
-
logoutDevice: (data: ILogoutDeviceData) => Promise<import("
|
|
78
|
-
updateUserType: (data: IUpdateUserTypeData) => Promise<import("
|
|
79
|
-
deleteAddress: (data: IDeleteAddressData) => Promise<import("
|
|
80
|
-
deleteBankAccount: (data: IDeleteBankAccountData) => Promise<import("
|
|
81
|
-
deleteDevice: (data: IDeleteDeviceData) => Promise<import("
|
|
82
|
-
deleteEmail: (data: IDeleteEmailData) => Promise<import("
|
|
83
|
-
deleteIdentification: (data: IDeleteIdentificationData) => Promise<import("
|
|
84
|
-
deletePhone: (data: IDeletePhoneData) => Promise<import("
|
|
9
|
+
getUser: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
10
|
+
getTermsAndConditions: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
11
|
+
getSecurity: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
12
|
+
getPhone: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
13
|
+
getPreferences: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
14
|
+
getPersonalInfo: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
15
|
+
getLatestHistory: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
16
|
+
getIdentification: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
17
|
+
getHistory: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
18
|
+
getGroup: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
19
|
+
getExternalAuth: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
20
|
+
getEmail: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
21
|
+
getDocuments: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
22
|
+
getCurrency: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
23
|
+
getCreditCard: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
24
|
+
getBankAccount: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
25
|
+
getAddress: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
26
|
+
getAccount: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
27
|
+
getSecurityOperations: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
28
|
+
getDeviceHistory: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
29
|
+
createUser: (data: ICreateUserData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
30
|
+
createUserWithGoogle: (data: ICreateUserWithGoogleData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
31
|
+
createPhone: (data: ICreatePhoneData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
32
|
+
createIdentification: (data: ICreateIdentificationData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
33
|
+
createExternalAuth: (data: any) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
34
|
+
createEmail: (data: ICreateEmailData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
35
|
+
createCurrency: (data: any) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
36
|
+
createCreditCard: (data: any) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
37
|
+
createTicket: (data: ICreateTicketData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
38
|
+
createBankAccount: (data: ICreateBankAccountData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
39
|
+
createAddress: (data: ICreateAddressData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
40
|
+
createDevice: (data: ICreateDeviceData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
41
|
+
securityAccess: (data: any) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
42
|
+
uploadDocument: (data: IUploadDocumentData) => Promise<import("../..").ApiResponse<import("../..").DocumentData>>;
|
|
43
|
+
updateProfilePicture: (data: IUploadProfilePictureData) => Promise<import("../..").ApiResponse<import("../..").DocumentData>>;
|
|
44
|
+
verifySecurityData: (data: any) => Promise<import("../..").ApiResponse<import("../..").VerifyUserSecurity>>;
|
|
45
|
+
verifyEmail: (data: IVerifyEmailData) => Promise<import("../..").ApiResponse<import("../..").VerifyUserSecurity>>;
|
|
46
|
+
sendEmailOTP: (data: ISendEmailOTPData) => Promise<import("../..").ApiResponse<import("../..").VerifyUserSecurity>>;
|
|
47
|
+
verifyPhone: (data: IVerifyPhoneData) => Promise<import("../..").ApiResponse<import("../..").VerifyUserSecurity>>;
|
|
48
|
+
sendPhoneOTP: (data: ISendPhoneOTPData) => Promise<import("../..").ApiResponse<import("../..").VerifyUserSecurity>>;
|
|
49
|
+
verifyDevice: (data: IVerifyDeviceData) => Promise<import("../..").ApiResponse<import("../..").VerifyUserSecurity>>;
|
|
50
|
+
confirmSecurityData: (data: any) => Promise<import("../..").ApiResponse<import("../..").ConfirmUserSecurity>>;
|
|
51
|
+
confirmEmail: (data: IConfirmEmailData) => Promise<import("../..").ApiResponse<import("../..").ConfirmUserSecurity>>;
|
|
52
|
+
confirmPhone: (data: IConfirmPhoneData) => Promise<import("../..").ApiResponse<import("../..").ConfirmUserSecurity>>;
|
|
53
|
+
confirmDevice: (data: IConfirmDeviceData) => Promise<import("../..").ApiResponse<import("../..").ConfirmUserSecurity>>;
|
|
54
|
+
resetSecurityData: (data: ResetUserSecurity) => Promise<import("../..").ApiResponse<ResetUserSecurity>>;
|
|
55
|
+
enrollGoogleAuth: () => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
56
|
+
activateGoogleAuth: (data: IActivateGoogleAuthData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
57
|
+
deleteGoogleAuth: (data: IDeleteGoogleAuthData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
58
|
+
deactivateGoogleAuth: (data: IDeactivateGoogleAuthData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
59
|
+
updateUser: (data: any) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
60
|
+
resetPassword: (data: IResetPasswordData) => Promise<import("../..").ApiResponse<ResetUserSecurity>>;
|
|
61
|
+
resetSecurityCode: (data: IResetSecurityCodeData) => Promise<import("../..").ApiResponse<ResetUserSecurity>>;
|
|
62
|
+
resetSecurityQuestions: (data: IResetSecurityQuestionsData) => Promise<import("../..").ApiResponse<ResetUserSecurity>>;
|
|
63
|
+
validateSecurityCode: (data: IValidateSecurityCodeData) => Promise<import("../..").ApiResponse<import("../..").ValidateUserSecurity>>;
|
|
64
|
+
updatePreferences: (data: IUpdatePreferencesData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
65
|
+
updatePhone: (data: IUpdatePhoneData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
66
|
+
makePhonePrimary: (data: IMakePhonePrimaryData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
67
|
+
updatePersonalInfo: (data: IUpdatePersonalInfoData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
68
|
+
updateIdentification: (data: IUpdateIdentificationData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
69
|
+
updateExternalAuth: (data: any) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
70
|
+
updateEmail: (data: IUpdateEmailData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
71
|
+
makeEmailPrimary: (data: IMakeEmailPrimaryData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
72
|
+
updateBankAccount: (data: IUpdateBankAccountData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
73
|
+
makeBankAccountPrimary: (data: IMakeBankAccountPrimaryData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
74
|
+
updateAddress: (data: IUpdateAddressData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
75
|
+
makeAddressPrimary: (data: IMakeAddressPrimaryData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
76
|
+
updateDevice: (data: IUpdateDeviceData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
77
|
+
logoutDevice: (data: ILogoutDeviceData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
78
|
+
updateUserType: (data: IUpdateUserTypeData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
79
|
+
deleteAddress: (data: IDeleteAddressData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
80
|
+
deleteBankAccount: (data: IDeleteBankAccountData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
81
|
+
deleteDevice: (data: IDeleteDeviceData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
82
|
+
deleteEmail: (data: IDeleteEmailData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
83
|
+
deleteIdentification: (data: IDeleteIdentificationData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
84
|
+
deletePhone: (data: IDeletePhoneData) => Promise<import("../..").ApiResponse<import("../..").UserData>>;
|
|
85
85
|
}
|
|
86
86
|
export { UserProxy };
|