ggez-banking-sdk 0.3.26 → 0.3.27
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/clients/account.d.ts +12 -2
- package/dist/api/clients/auth.d.ts +24 -9
- package/dist/api/clients/blockchain.d.ts +28 -8
- package/dist/api/clients/ipAddressAndLocation.d.ts +2 -2
- package/dist/api/clients/limited.d.ts +63 -18
- package/dist/api/clients/order.d.ts +7 -2
- package/dist/api/clients/organization.d.ts +35 -10
- package/dist/api/clients/program.d.ts +18 -3
- package/dist/api/clients/promotion.d.ts +8 -8
- package/dist/api/clients/promotion.js +4 -1
- package/dist/api/clients/transaction.d.ts +28 -8
- package/dist/api/clients/user.d.ts +469 -89
- package/dist/api/data/blockchain.js +8 -12
- package/dist/api/data/result.d.ts +1 -3
- package/dist/api/data/result.js +1 -10
- package/dist/api/data/user/activity.js +1 -0
- package/dist/api/data/user/address.d.ts +4 -4
- package/dist/api/data/user/auth.d.ts +4 -4
- package/dist/api/data/user/bankAccount.d.ts +4 -4
- package/dist/api/data/user/device.d.ts +4 -4
- package/dist/api/data/user/email.d.ts +4 -4
- package/dist/api/data/user/identification.d.ts +3 -3
- package/dist/api/data/user/personalInfo.d.ts +1 -1
- package/dist/api/data/user/phone.d.ts +4 -4
- package/dist/api/data/user/preferences.d.ts +1 -1
- package/dist/api/data/user/ticket.d.ts +1 -1
- package/dist/api/data/user/type.d.ts +1 -1
- package/dist/content/countries.d.ts +7 -2
- package/dist/helper/api/axiosHelper.js +3 -3
- package/dist/helper/api/responseHelper.d.ts +1 -1
- package/dist/helper/clientHelper.d.ts +3 -3
- package/dist/helper/deviceHelper.js +1 -0
- package/dist/helper/storage/cookiesHelper.d.ts +1 -6
- package/dist/helper/storage/cookiesHelper.js +0 -9
- package/dist/helper/storage/localStorageHelper.d.ts +5 -5
- package/dist/helper/userHelper.d.ts +2 -2
- package/dist/helper/userHelper.js +1 -0
- package/dist/types/banking/entities/identification.d.ts +1 -1
- package/dist/utils/data/generation.d.ts +5 -5
- package/dist/utils/data/generation.js +5 -5
- package/dist/utils/data/manipulation.d.ts +1 -1
- package/package.json +2 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -8,13 +8,23 @@ declare class AccountClient extends BaseClient {
|
|
|
8
8
|
data: import("../..").AccountData;
|
|
9
9
|
success: boolean;
|
|
10
10
|
message: string;
|
|
11
|
-
error:
|
|
11
|
+
error: null;
|
|
12
|
+
} | {
|
|
13
|
+
data: import("../..").AccountData;
|
|
14
|
+
success: boolean;
|
|
15
|
+
message: string;
|
|
16
|
+
error: string;
|
|
12
17
|
}>;
|
|
13
18
|
getLimits: (accountId: number, options?: RequestOptions) => Promise<{
|
|
14
19
|
data: import("../..").AccountData;
|
|
15
20
|
success: boolean;
|
|
16
21
|
message: string;
|
|
17
|
-
error:
|
|
22
|
+
error: null;
|
|
23
|
+
} | {
|
|
24
|
+
data: import("../..").AccountData;
|
|
25
|
+
success: boolean;
|
|
26
|
+
message: string;
|
|
27
|
+
error: string;
|
|
18
28
|
}>;
|
|
19
29
|
}
|
|
20
30
|
export { AccountClient };
|
|
@@ -5,33 +5,48 @@ declare class AuthClient extends BaseClient {
|
|
|
5
5
|
private authService;
|
|
6
6
|
constructor(clientData: AuthClientData, errorHandler: ErrorHandler);
|
|
7
7
|
loginUserCredentials: (data: ILoginUserCredentialsData, options?: RequestOptions) => Promise<{
|
|
8
|
-
data: import("
|
|
8
|
+
data: import("../..").TokenData;
|
|
9
9
|
success: boolean;
|
|
10
10
|
message: string;
|
|
11
|
-
error:
|
|
11
|
+
error: null;
|
|
12
|
+
} | {
|
|
13
|
+
data: import("../..").TokenData;
|
|
14
|
+
success: boolean;
|
|
15
|
+
message: string;
|
|
16
|
+
error: string;
|
|
12
17
|
}>;
|
|
13
18
|
loginDeviceCredentials: (data: ILoginDeviceCredentialsData, options?: RequestOptions) => Promise<{
|
|
14
|
-
data: import("
|
|
19
|
+
data: import("../..").TokenData;
|
|
20
|
+
success: boolean;
|
|
21
|
+
message: string;
|
|
22
|
+
error: null;
|
|
23
|
+
} | {
|
|
24
|
+
data: import("../..").TokenData;
|
|
15
25
|
success: boolean;
|
|
16
26
|
message: string;
|
|
17
|
-
error:
|
|
27
|
+
error: string;
|
|
18
28
|
}>;
|
|
19
29
|
loginGoogleCredentials: (data: ILoginGoogleCredentialsData, options?: RequestOptions) => Promise<{
|
|
20
|
-
data: import("
|
|
30
|
+
data: import("../..").TokenData;
|
|
31
|
+
success: boolean;
|
|
32
|
+
message: string;
|
|
33
|
+
error: null;
|
|
34
|
+
} | {
|
|
35
|
+
data: import("../..").TokenData;
|
|
21
36
|
success: boolean;
|
|
22
37
|
message: string;
|
|
23
|
-
error:
|
|
38
|
+
error: string;
|
|
24
39
|
}>;
|
|
25
40
|
generateLimitedToken: (data: IGenerateLimitedTokenData, options?: RequestOptions) => Promise<{
|
|
26
|
-
data: import("
|
|
41
|
+
data: import("../..").TokenData;
|
|
27
42
|
success: boolean;
|
|
28
43
|
message: string;
|
|
29
44
|
error: string;
|
|
30
45
|
} | {
|
|
31
|
-
data: import("
|
|
46
|
+
data: import("../..").NodeTokenData;
|
|
32
47
|
success: boolean;
|
|
33
48
|
message: string;
|
|
34
|
-
error:
|
|
49
|
+
error: null;
|
|
35
50
|
}>;
|
|
36
51
|
}
|
|
37
52
|
export { AuthClient };
|
|
@@ -4,28 +4,48 @@ declare class BlockchainClient extends BaseClient {
|
|
|
4
4
|
private blockchainService;
|
|
5
5
|
constructor(clientData: BlockchainClientData, errorHandler: ErrorHandler);
|
|
6
6
|
send: (data: IBlockchainSendRequestData, options?: RequestOptions) => Promise<{
|
|
7
|
-
data: import("
|
|
7
|
+
data: import("../..").BlockchainData;
|
|
8
8
|
success: boolean;
|
|
9
9
|
message: string;
|
|
10
|
-
error:
|
|
10
|
+
error: null;
|
|
11
|
+
} | {
|
|
12
|
+
data: import("../..").BlockchainData;
|
|
13
|
+
success: boolean;
|
|
14
|
+
message: string;
|
|
15
|
+
error: string;
|
|
11
16
|
}>;
|
|
12
17
|
multiSend: (data: IBlockchainMultiSendRequestData, options?: RequestOptions) => Promise<{
|
|
13
|
-
data: import("
|
|
18
|
+
data: import("../..").BlockchainData;
|
|
19
|
+
success: boolean;
|
|
20
|
+
message: string;
|
|
21
|
+
error: null;
|
|
22
|
+
} | {
|
|
23
|
+
data: import("../..").BlockchainData;
|
|
14
24
|
success: boolean;
|
|
15
25
|
message: string;
|
|
16
|
-
error:
|
|
26
|
+
error: string;
|
|
17
27
|
}>;
|
|
18
28
|
delegate: (data: IBlockchainDelegateRequestData, options?: RequestOptions) => Promise<{
|
|
19
|
-
data: import("
|
|
29
|
+
data: import("../..").BlockchainData;
|
|
20
30
|
success: boolean;
|
|
21
31
|
message: string;
|
|
22
|
-
error:
|
|
32
|
+
error: null;
|
|
33
|
+
} | {
|
|
34
|
+
data: import("../..").BlockchainData;
|
|
35
|
+
success: boolean;
|
|
36
|
+
message: string;
|
|
37
|
+
error: string;
|
|
23
38
|
}>;
|
|
24
39
|
undelegate: (data: IBlockchainUndelegateRequestData, options?: RequestOptions) => Promise<{
|
|
25
|
-
data: import("
|
|
40
|
+
data: import("../..").BlockchainData;
|
|
41
|
+
success: boolean;
|
|
42
|
+
message: string;
|
|
43
|
+
error: null;
|
|
44
|
+
} | {
|
|
45
|
+
data: import("../..").BlockchainData;
|
|
26
46
|
success: boolean;
|
|
27
47
|
message: string;
|
|
28
|
-
error:
|
|
48
|
+
error: string;
|
|
29
49
|
}>;
|
|
30
50
|
}
|
|
31
51
|
export { BlockchainClient };
|
|
@@ -3,14 +3,14 @@ import { BaseClient } from "./base";
|
|
|
3
3
|
declare class IPAddressAndLocationClient extends BaseClient {
|
|
4
4
|
private ipAddressAndLocationService;
|
|
5
5
|
constructor(clientData: IPAddressAndLocationClientData, errorHandler: ErrorHandler);
|
|
6
|
-
getGeoCoordinates: () => Promise<import("
|
|
6
|
+
getGeoCoordinates: () => Promise<import("../..").GeoCoordinates> | {
|
|
7
7
|
latitude: number;
|
|
8
8
|
longitude: number;
|
|
9
9
|
position_description: string;
|
|
10
10
|
};
|
|
11
11
|
getIPAddress: () => Promise<string> | "";
|
|
12
12
|
getGeoCoordinatesAndIPAddress: () => Promise<{
|
|
13
|
-
geo_coordinates: import("
|
|
13
|
+
geo_coordinates: import("../..").GeoCoordinates;
|
|
14
14
|
ip_address: string;
|
|
15
15
|
}> | {
|
|
16
16
|
geo_coordinates: {
|
|
@@ -4,58 +4,103 @@ declare class LimitedClient extends BaseClient {
|
|
|
4
4
|
private limitedService;
|
|
5
5
|
constructor(clientData: LimitedClientData, errorHandler: ErrorHandler);
|
|
6
6
|
checkForgetPassword: (data: ICheckForgetPasswordData, options?: RequestOptions) => Promise<{
|
|
7
|
-
data: import("
|
|
7
|
+
data: import("../..").ForgetSecurityData;
|
|
8
8
|
success: boolean;
|
|
9
9
|
message: string;
|
|
10
|
-
error:
|
|
10
|
+
error: null;
|
|
11
|
+
} | {
|
|
12
|
+
data: import("../..").ForgetSecurityData;
|
|
13
|
+
success: boolean;
|
|
14
|
+
message: string;
|
|
15
|
+
error: string;
|
|
11
16
|
}>;
|
|
12
17
|
validateForgetPassword: (data: IValidateForgetPasswordData, options?: RequestOptions) => Promise<{
|
|
13
|
-
data: import("
|
|
18
|
+
data: import("../..").ForgetSecurityData;
|
|
14
19
|
success: boolean;
|
|
15
20
|
message: string;
|
|
16
|
-
error:
|
|
21
|
+
error: null;
|
|
22
|
+
} | {
|
|
23
|
+
data: import("../..").ForgetSecurityData;
|
|
24
|
+
success: boolean;
|
|
25
|
+
message: string;
|
|
26
|
+
error: string;
|
|
17
27
|
}>;
|
|
18
28
|
confirmForgetPassword: (data: IConfirmForgetPasswordData, options?: RequestOptions) => Promise<{
|
|
19
|
-
data: import("
|
|
29
|
+
data: import("../..").ForgetSecurityData;
|
|
20
30
|
success: boolean;
|
|
21
31
|
message: string;
|
|
22
|
-
error:
|
|
32
|
+
error: null;
|
|
33
|
+
} | {
|
|
34
|
+
data: import("../..").ForgetSecurityData;
|
|
35
|
+
success: boolean;
|
|
36
|
+
message: string;
|
|
37
|
+
error: string;
|
|
23
38
|
}>;
|
|
24
39
|
validateEmail: (data: IValidateEmailData, options?: RequestOptions) => Promise<{
|
|
25
|
-
data: import("
|
|
40
|
+
data: import("../..").ValidateLimitedSecurity;
|
|
41
|
+
success: boolean;
|
|
42
|
+
message: string;
|
|
43
|
+
error: null;
|
|
44
|
+
} | {
|
|
45
|
+
data: import("../..").ValidateLimitedSecurity;
|
|
26
46
|
success: boolean;
|
|
27
47
|
message: string;
|
|
28
|
-
error:
|
|
48
|
+
error: string;
|
|
29
49
|
}>;
|
|
30
50
|
validatePhone: (data: IValidatePhoneData, options?: RequestOptions) => Promise<{
|
|
31
|
-
data: import("
|
|
51
|
+
data: import("../..").ValidateLimitedSecurity;
|
|
52
|
+
success: boolean;
|
|
53
|
+
message: string;
|
|
54
|
+
error: null;
|
|
55
|
+
} | {
|
|
56
|
+
data: import("../..").ValidateLimitedSecurity;
|
|
32
57
|
success: boolean;
|
|
33
58
|
message: string;
|
|
34
|
-
error:
|
|
59
|
+
error: string;
|
|
35
60
|
}>;
|
|
36
61
|
verifyEmail: (data: IVerifyEmailData, options?: RequestOptions) => Promise<{
|
|
37
|
-
data: import("
|
|
62
|
+
data: import("../..").VerifyUserSecurity;
|
|
63
|
+
success: boolean;
|
|
64
|
+
message: string;
|
|
65
|
+
error: null;
|
|
66
|
+
} | {
|
|
67
|
+
data: import("../..").VerifyUserSecurity;
|
|
38
68
|
success: boolean;
|
|
39
69
|
message: string;
|
|
40
|
-
error:
|
|
70
|
+
error: string;
|
|
41
71
|
}>;
|
|
42
72
|
verifyPhone: (data: IVerifyPhoneData, options?: RequestOptions) => Promise<{
|
|
43
|
-
data: import("
|
|
73
|
+
data: import("../..").VerifyUserSecurity;
|
|
74
|
+
success: boolean;
|
|
75
|
+
message: string;
|
|
76
|
+
error: null;
|
|
77
|
+
} | {
|
|
78
|
+
data: import("../..").VerifyUserSecurity;
|
|
44
79
|
success: boolean;
|
|
45
80
|
message: string;
|
|
46
|
-
error:
|
|
81
|
+
error: string;
|
|
47
82
|
}>;
|
|
48
83
|
confirmEmail: (data: IConfirmEmailData, options?: RequestOptions) => Promise<{
|
|
49
|
-
data: import("
|
|
84
|
+
data: import("../..").ConfirmUserSecurity;
|
|
50
85
|
success: boolean;
|
|
51
86
|
message: string;
|
|
52
|
-
error:
|
|
87
|
+
error: null;
|
|
88
|
+
} | {
|
|
89
|
+
data: import("../..").ConfirmUserSecurity;
|
|
90
|
+
success: boolean;
|
|
91
|
+
message: string;
|
|
92
|
+
error: string;
|
|
53
93
|
}>;
|
|
54
94
|
confirmPhone: (data: IConfirmPhoneData, options?: RequestOptions) => Promise<{
|
|
55
|
-
data: import("
|
|
95
|
+
data: import("../..").ConfirmUserSecurity;
|
|
96
|
+
success: boolean;
|
|
97
|
+
message: string;
|
|
98
|
+
error: null;
|
|
99
|
+
} | {
|
|
100
|
+
data: import("../..").ConfirmUserSecurity;
|
|
56
101
|
success: boolean;
|
|
57
102
|
message: string;
|
|
58
|
-
error:
|
|
103
|
+
error: string;
|
|
59
104
|
}>;
|
|
60
105
|
}
|
|
61
106
|
export { LimitedClient };
|
|
@@ -4,10 +4,15 @@ declare class OrderClient extends BaseClient {
|
|
|
4
4
|
private orderService;
|
|
5
5
|
constructor(clientData: OrderClientData, errorHandler: ErrorHandler);
|
|
6
6
|
createOrder: (data: ICreateOrderData, options?: RequestOptions) => Promise<{
|
|
7
|
-
data: import("
|
|
7
|
+
data: import("../..").OrderData;
|
|
8
8
|
success: boolean;
|
|
9
9
|
message: string;
|
|
10
|
-
error:
|
|
10
|
+
error: null;
|
|
11
|
+
} | {
|
|
12
|
+
data: import("../..").OrderData;
|
|
13
|
+
success: boolean;
|
|
14
|
+
message: string;
|
|
15
|
+
error: string;
|
|
11
16
|
}>;
|
|
12
17
|
}
|
|
13
18
|
export { OrderClient };
|
|
@@ -6,34 +6,59 @@ declare class OrganizationClient extends BaseClient {
|
|
|
6
6
|
private userId;
|
|
7
7
|
constructor(clientData: OrganizationClientData, errorHandler: ErrorHandler);
|
|
8
8
|
getOrganization: (id: number, options?: RequestOptions) => Promise<{
|
|
9
|
-
data: import("
|
|
9
|
+
data: import("../..").OrganizationData;
|
|
10
10
|
success: boolean;
|
|
11
11
|
message: string;
|
|
12
|
-
error:
|
|
12
|
+
error: null;
|
|
13
|
+
} | {
|
|
14
|
+
data: import("../..").OrganizationData;
|
|
15
|
+
success: boolean;
|
|
16
|
+
message: string;
|
|
17
|
+
error: string;
|
|
13
18
|
}>;
|
|
14
19
|
createOrganization: (data: ICreateOrganizationData, options?: RequestOptions) => Promise<{
|
|
15
|
-
data: import("
|
|
20
|
+
data: import("../..").OrganizationData;
|
|
16
21
|
success: boolean;
|
|
17
22
|
message: string;
|
|
18
|
-
error:
|
|
23
|
+
error: null;
|
|
24
|
+
} | {
|
|
25
|
+
data: import("../..").OrganizationData;
|
|
26
|
+
success: boolean;
|
|
27
|
+
message: string;
|
|
28
|
+
error: string;
|
|
19
29
|
}>;
|
|
20
30
|
uploadDocument: (data: IUploadOrganizationDocumentData, options?: RequestOptions) => Promise<{
|
|
21
|
-
data: import("
|
|
31
|
+
data: import("../..").DocumentData;
|
|
32
|
+
success: boolean;
|
|
33
|
+
message: string;
|
|
34
|
+
error: null;
|
|
35
|
+
} | {
|
|
36
|
+
data: import("../..").DocumentData;
|
|
22
37
|
success: boolean;
|
|
23
38
|
message: string;
|
|
24
|
-
error:
|
|
39
|
+
error: string;
|
|
25
40
|
}>;
|
|
26
41
|
updateOrganization: (data: IUpdateOrganizationData, options?: RequestOptions) => Promise<{
|
|
27
|
-
data: import("
|
|
42
|
+
data: import("../..").OrganizationData;
|
|
43
|
+
success: boolean;
|
|
44
|
+
message: string;
|
|
45
|
+
error: null;
|
|
46
|
+
} | {
|
|
47
|
+
data: import("../..").OrganizationData;
|
|
28
48
|
success: boolean;
|
|
29
49
|
message: string;
|
|
30
|
-
error:
|
|
50
|
+
error: string;
|
|
31
51
|
}>;
|
|
32
52
|
deleteOrganization: (id: number, options?: RequestOptions) => Promise<{
|
|
33
|
-
data: import("
|
|
53
|
+
data: import("../..").OrganizationData;
|
|
54
|
+
success: boolean;
|
|
55
|
+
message: string;
|
|
56
|
+
error: null;
|
|
57
|
+
} | {
|
|
58
|
+
data: import("../..").OrganizationData;
|
|
34
59
|
success: boolean;
|
|
35
60
|
message: string;
|
|
36
|
-
error:
|
|
61
|
+
error: string;
|
|
37
62
|
}>;
|
|
38
63
|
}
|
|
39
64
|
export { OrganizationClient };
|
|
@@ -7,19 +7,34 @@ declare class ProgramClient extends BaseClient {
|
|
|
7
7
|
data: import("../../types/banking/program").ProgramData;
|
|
8
8
|
success: boolean;
|
|
9
9
|
message: string;
|
|
10
|
-
error:
|
|
10
|
+
error: null;
|
|
11
|
+
} | {
|
|
12
|
+
data: import("../../types/banking/program").ProgramData;
|
|
13
|
+
success: boolean;
|
|
14
|
+
message: string;
|
|
15
|
+
error: string;
|
|
11
16
|
}>;
|
|
12
17
|
getBin: (options?: RequestOptions) => Promise<{
|
|
13
18
|
data: import("../../types/banking/program").ProgramData;
|
|
14
19
|
success: boolean;
|
|
15
20
|
message: string;
|
|
16
|
-
error:
|
|
21
|
+
error: null;
|
|
22
|
+
} | {
|
|
23
|
+
data: import("../../types/banking/program").ProgramData;
|
|
24
|
+
success: boolean;
|
|
25
|
+
message: string;
|
|
26
|
+
error: string;
|
|
17
27
|
}>;
|
|
18
28
|
getSignUp: (options?: RequestOptions) => Promise<{
|
|
19
29
|
data: import("../../types/banking/program").ProgramData;
|
|
20
30
|
success: boolean;
|
|
21
31
|
message: string;
|
|
22
|
-
error:
|
|
32
|
+
error: null;
|
|
33
|
+
} | {
|
|
34
|
+
data: import("../../types/banking/program").ProgramData;
|
|
35
|
+
success: boolean;
|
|
36
|
+
message: string;
|
|
37
|
+
error: string;
|
|
23
38
|
}>;
|
|
24
39
|
}
|
|
25
40
|
export { ProgramClient };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { BaseResult, ErrorHandler, GGEZGiftRewards, PromotionClientData,
|
|
1
|
+
import type { BaseResult, ErrorHandler, GGEZGiftRewards, PromotionClientData, RequestOptions } from "../../types";
|
|
2
2
|
import { BaseClient } from "./base";
|
|
3
3
|
declare class PromotionClient extends BaseClient {
|
|
4
4
|
private promotionService;
|
|
5
5
|
constructor(clientData: PromotionClientData, errorHandler: ErrorHandler);
|
|
6
6
|
getPromotionByCode: (code: string, options?: RequestOptions) => Promise<{
|
|
7
|
-
data: PromotionDetails;
|
|
7
|
+
data: import("../..").PromotionDetails;
|
|
8
8
|
success: boolean;
|
|
9
9
|
message: string;
|
|
10
|
-
error:
|
|
10
|
+
error: null;
|
|
11
11
|
} | {
|
|
12
|
-
data:
|
|
12
|
+
data: null;
|
|
13
13
|
success: boolean;
|
|
14
14
|
message: string;
|
|
15
15
|
error: string;
|
|
@@ -18,9 +18,9 @@ declare class PromotionClient extends BaseClient {
|
|
|
18
18
|
data: BaseResult;
|
|
19
19
|
success: boolean;
|
|
20
20
|
message: string;
|
|
21
|
-
error:
|
|
21
|
+
error: null;
|
|
22
22
|
} | {
|
|
23
|
-
data:
|
|
23
|
+
data: BaseResult;
|
|
24
24
|
success: boolean;
|
|
25
25
|
message: string;
|
|
26
26
|
error: string;
|
|
@@ -31,9 +31,9 @@ declare class PromotionClient extends BaseClient {
|
|
|
31
31
|
};
|
|
32
32
|
success: boolean;
|
|
33
33
|
message: string;
|
|
34
|
-
error:
|
|
34
|
+
error: null;
|
|
35
35
|
} | {
|
|
36
|
-
data:
|
|
36
|
+
data: null;
|
|
37
37
|
success: boolean;
|
|
38
38
|
message: string;
|
|
39
39
|
error: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AxiosHelper } from "../../helper/api/axiosHelper";
|
|
2
2
|
import { PromotionService } from "../services";
|
|
3
3
|
import { BaseClient } from "./base";
|
|
4
|
+
import { createDefaultBaseResult, fillResultByError } from "../data";
|
|
4
5
|
class PromotionClient extends BaseClient {
|
|
5
6
|
promotionService;
|
|
6
7
|
constructor(clientData, errorHandler) {
|
|
@@ -31,7 +32,9 @@ class PromotionClient extends BaseClient {
|
|
|
31
32
|
return this.responseHelper.getResponse(response);
|
|
32
33
|
}
|
|
33
34
|
catch (error) {
|
|
34
|
-
|
|
35
|
+
const result = fillResultByError(error);
|
|
36
|
+
const data = createDefaultBaseResult({ result });
|
|
37
|
+
return this.responseHelper.getErrorResponse(data, "getTwitterSpotlightPostIds");
|
|
35
38
|
}
|
|
36
39
|
};
|
|
37
40
|
// #endregion
|
|
@@ -4,28 +4,48 @@ declare class TransactionClient extends BaseClient {
|
|
|
4
4
|
private transactionService;
|
|
5
5
|
constructor(clientData: TransactionClientData, errorHandler: ErrorHandler);
|
|
6
6
|
inquiryTransaction: (params: IInquiryTransactionData, options?: RequestOptions) => Promise<{
|
|
7
|
-
data: import("
|
|
7
|
+
data: import("../..").TransactionResultInquiry;
|
|
8
8
|
success: boolean;
|
|
9
9
|
message: string;
|
|
10
|
-
error:
|
|
10
|
+
error: null;
|
|
11
|
+
} | {
|
|
12
|
+
data: import("../..").TransactionResultInquiry;
|
|
13
|
+
success: boolean;
|
|
14
|
+
message: string;
|
|
15
|
+
error: string;
|
|
11
16
|
}>;
|
|
12
17
|
createSystemTransaction: (data: ICreateSystemTransactionData, options?: RequestOptions) => Promise<{
|
|
13
|
-
data: import("
|
|
18
|
+
data: import("../..").TransactionData;
|
|
19
|
+
success: boolean;
|
|
20
|
+
message: string;
|
|
21
|
+
error: null;
|
|
22
|
+
} | {
|
|
23
|
+
data: import("../..").TransactionData;
|
|
14
24
|
success: boolean;
|
|
15
25
|
message: string;
|
|
16
|
-
error:
|
|
26
|
+
error: string;
|
|
17
27
|
}>;
|
|
18
28
|
createBlockchainTransaction: (data: ICreateBlockchainTransactionData, options?: RequestOptions) => Promise<{
|
|
19
|
-
data: import("
|
|
29
|
+
data: import("../..").TransactionData;
|
|
20
30
|
success: boolean;
|
|
21
31
|
message: string;
|
|
22
|
-
error:
|
|
32
|
+
error: null;
|
|
33
|
+
} | {
|
|
34
|
+
data: import("../..").TransactionData;
|
|
35
|
+
success: boolean;
|
|
36
|
+
message: string;
|
|
37
|
+
error: string;
|
|
23
38
|
}>;
|
|
24
39
|
createGatewayCryptoTransaction: (data: ICreateGatewayCryptoTransactionData, options?: RequestOptions) => Promise<{
|
|
25
|
-
data: import("
|
|
40
|
+
data: import("../..").TransactionData;
|
|
41
|
+
success: boolean;
|
|
42
|
+
message: string;
|
|
43
|
+
error: null;
|
|
44
|
+
} | {
|
|
45
|
+
data: import("../..").TransactionData;
|
|
26
46
|
success: boolean;
|
|
27
47
|
message: string;
|
|
28
|
-
error:
|
|
48
|
+
error: string;
|
|
29
49
|
}>;
|
|
30
50
|
}
|
|
31
51
|
export { TransactionClient };
|