ggez-banking-sdk 0.1.27 → 0.1.29
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/bank-system/constants/constants.d.ts +15 -0
- package/dist/bank-system/constants/constants.js +21 -0
- package/dist/bank-system/constants/index.d.ts +2 -0
- package/dist/bank-system/constants/index.js +2 -0
- package/dist/bank-system/helper/dataStructure.d.ts +5 -2
- package/dist/bank-system/helper/dataStructure.js +32 -0
- package/dist/bank-system/interfaces/blockchain.d.ts +49 -0
- package/dist/bank-system/interfaces/blockchain.js +3 -0
- package/dist/bank-system/services/blockchain.d.ts +28 -0
- package/dist/bank-system/services/blockchain.js +109 -0
- package/dist/bank-system/services/index.d.ts +2 -1
- package/dist/bank-system/services/index.js +3 -1
- package/dist/bank-system/utils/blockchainHelper.d.ts +5 -0
- package/dist/bank-system/utils/blockchainHelper.js +19 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare enum HTTPMethod {
|
2
|
+
POST = "POST",
|
3
|
+
GET = "GET",
|
4
|
+
PUT = "PUT",
|
5
|
+
DELETE = "DELETE"
|
6
|
+
}
|
7
|
+
export declare enum Endpoints {
|
8
|
+
Blockchain = "v1/blockchain"
|
9
|
+
}
|
10
|
+
export declare enum BlockchainRequestType {
|
11
|
+
Send = 1,
|
12
|
+
Multi_Send = 2,
|
13
|
+
Delegate = 3,
|
14
|
+
UnDelegate = 4
|
15
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BlockchainRequestType = exports.Endpoints = exports.HTTPMethod = void 0;
|
4
|
+
var HTTPMethod;
|
5
|
+
(function (HTTPMethod) {
|
6
|
+
HTTPMethod["POST"] = "POST";
|
7
|
+
HTTPMethod["GET"] = "GET";
|
8
|
+
HTTPMethod["PUT"] = "PUT";
|
9
|
+
HTTPMethod["DELETE"] = "DELETE";
|
10
|
+
})(HTTPMethod || (exports.HTTPMethod = HTTPMethod = {}));
|
11
|
+
var Endpoints;
|
12
|
+
(function (Endpoints) {
|
13
|
+
Endpoints["Blockchain"] = "v1/blockchain";
|
14
|
+
})(Endpoints || (exports.Endpoints = Endpoints = {}));
|
15
|
+
var BlockchainRequestType;
|
16
|
+
(function (BlockchainRequestType) {
|
17
|
+
BlockchainRequestType[BlockchainRequestType["Send"] = 1] = "Send";
|
18
|
+
BlockchainRequestType[BlockchainRequestType["Multi_Send"] = 2] = "Multi_Send";
|
19
|
+
BlockchainRequestType[BlockchainRequestType["Delegate"] = 3] = "Delegate";
|
20
|
+
BlockchainRequestType[BlockchainRequestType["UnDelegate"] = 4] = "UnDelegate";
|
21
|
+
})(BlockchainRequestType || (exports.BlockchainRequestType = BlockchainRequestType = {}));
|
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./enum"), exports);
|
18
|
+
__exportStar(require("./constants"), exports);
|
19
|
+
__exportStar(require("./structure"), exports);
|
@@ -5,6 +5,8 @@ import { DoTransactionInterface, GetTransactionInterface } from "../interfaces/a
|
|
5
5
|
import { CreateAddressInterface, DeleteUserAddressInterface, MakeAddressPrimaryInterface, UpdateAddressInterface, CreateUserEmailInterface, DeleteUserEmailInterface, UpdateUserEmailInterface, ConfirmLimitedEmailInterface, MakePrimaryUserEmailInterface, VerifyLimitedEmailInterface, ConfirmLimitedPhoneInterface, CreateUserPhoneInterface, DeleteUserPhoneInterface, MakeUserPhonePrimaryInterface, UpdateUserPhoneInterface, VerifyLimitedPhoneInterface, CreateBankAccountInterFace, UpdateBankAccountInterFace, DeleteBankAccountInterFace, MakeBankAccountPrimaryInterFace, CreateIdentificationInterface, DeleteIdentificationInterface, UpdateIdentificationInterface, UpdatePersonalInfoInterface, UpdateProfilePictureInterface, ChangeUserSecurityCodeInterface, ResetPasswordInterface, ResetSecurityQuestionsInterface, UpdateUserPreferencesInterface, ValidateSecurityCodeInterface, ActivateGoogleAuthInterface, ValidateLimitedPhoneInterface, IsEmailPresentAndValidInterface, IsPhonePresentAndValidInterface, SendOTPPhoneInterface, SendOTPEmailInterface, CreateDocumentInterface, ForgetPasswordConfirmInterface, ForgetPasswordValidateInterface, DeleteGoogleAuthInterface, CreateTicketInterface } from "../interfaces/bankingSystemInterface";
|
6
6
|
import { IOrderInterface } from "../interfaces/transactionInterface";
|
7
7
|
import { CreateDocumentOrganizationInterface, CreateOrganizationInterface, UpdateOrganizationInterface } from "../interfaces/organizationInterface";
|
8
|
+
import { IBlockchainData, IDelegationData, ITransferData } from "../interfaces/blockchain";
|
9
|
+
import { BlockchainRequestType } from "../constants";
|
8
10
|
declare const Data: () => {
|
9
11
|
dataSignUpApi: (values: SignUpInterface) => {
|
10
12
|
info: {
|
@@ -3043,7 +3045,7 @@ declare const Data: () => {
|
|
3043
3045
|
};
|
3044
3046
|
items: {
|
3045
3047
|
variant: {
|
3046
|
-
id: import("../constants
|
3048
|
+
id: import("../constants").VariantType;
|
3047
3049
|
type: CommerceProductSourceType;
|
3048
3050
|
};
|
3049
3051
|
custom_form_data: {
|
@@ -3054,7 +3056,7 @@ declare const Data: () => {
|
|
3054
3056
|
};
|
3055
3057
|
}[];
|
3056
3058
|
payment_method: {
|
3057
|
-
type: import("../constants
|
3059
|
+
type: import("../constants").PaymentMethodType;
|
3058
3060
|
account: {
|
3059
3061
|
info: {
|
3060
3062
|
id: number;
|
@@ -3268,5 +3270,6 @@ declare const Data: () => {
|
|
3268
3270
|
time_zone_name: string;
|
3269
3271
|
};
|
3270
3272
|
};
|
3273
|
+
GetBlockchainRequestData: (values: ITransferData | IDelegationData, blockchainRequestType: BlockchainRequestType) => IBlockchainData;
|
3271
3274
|
};
|
3272
3275
|
export default Data;
|
@@ -11,6 +11,7 @@ const utc_1 = __importDefault(require("dayjs/plugin/utc"));
|
|
11
11
|
const timezone_1 = __importDefault(require("dayjs/plugin/timezone"));
|
12
12
|
const utils_1 = require("../utils");
|
13
13
|
const structure_1 = require("../constants/structure");
|
14
|
+
const constants_1 = require("../constants");
|
14
15
|
dayjs_1.default.extend(utc_1.default);
|
15
16
|
dayjs_1.default.extend(timezone_1.default);
|
16
17
|
const Data = () => {
|
@@ -67,6 +68,36 @@ const Data = () => {
|
|
67
68
|
dataOrderRequest,
|
68
69
|
};
|
69
70
|
};
|
71
|
+
const GetBlockchainRequestData = (values, blockchainRequestType) => {
|
72
|
+
const GetTransferRequestData = (values) => {
|
73
|
+
const { transfer_data, info, authentication } = values;
|
74
|
+
const data = {
|
75
|
+
info: info,
|
76
|
+
transfer_data: transfer_data,
|
77
|
+
authentication: authentication,
|
78
|
+
};
|
79
|
+
return data;
|
80
|
+
};
|
81
|
+
const GetDelegationRequestData = (values) => {
|
82
|
+
const { delegation_data, info, authentication } = values;
|
83
|
+
const data = {
|
84
|
+
info: info,
|
85
|
+
delegation_data: delegation_data,
|
86
|
+
authentication: authentication,
|
87
|
+
};
|
88
|
+
return data;
|
89
|
+
};
|
90
|
+
switch (blockchainRequestType) {
|
91
|
+
case constants_1.BlockchainRequestType.Send:
|
92
|
+
case constants_1.BlockchainRequestType.Multi_Send:
|
93
|
+
return GetTransferRequestData(values);
|
94
|
+
case constants_1.BlockchainRequestType.Delegate:
|
95
|
+
case constants_1.BlockchainRequestType.UnDelegate:
|
96
|
+
return GetDelegationRequestData(values);
|
97
|
+
default:
|
98
|
+
return null;
|
99
|
+
}
|
100
|
+
};
|
70
101
|
const dataSignUpApi = (values) => {
|
71
102
|
const client = new clientjs_1.ClientJS();
|
72
103
|
let customField = null;
|
@@ -1401,6 +1432,7 @@ const Data = () => {
|
|
1401
1432
|
dataDevice,
|
1402
1433
|
dataOrder,
|
1403
1434
|
dataOrganization,
|
1435
|
+
GetBlockchainRequestData,
|
1404
1436
|
};
|
1405
1437
|
};
|
1406
1438
|
exports.default = Data;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
interface ICoin {
|
2
|
+
amount: string;
|
3
|
+
denom: string;
|
4
|
+
}
|
5
|
+
interface IAuthentication {
|
6
|
+
type: number;
|
7
|
+
code: string;
|
8
|
+
}
|
9
|
+
interface IBase {
|
10
|
+
info: {
|
11
|
+
account_id: number;
|
12
|
+
};
|
13
|
+
authentication: IAuthentication[];
|
14
|
+
}
|
15
|
+
interface IEntry {
|
16
|
+
recipient_address: string;
|
17
|
+
coin: ICoin;
|
18
|
+
}
|
19
|
+
export interface ITransferData extends IBase {
|
20
|
+
transfer_data: {
|
21
|
+
entries: IEntry[];
|
22
|
+
total_coins?: ICoin[];
|
23
|
+
};
|
24
|
+
}
|
25
|
+
export interface ISendData extends ITransferData {
|
26
|
+
}
|
27
|
+
export interface IMultiSend extends ITransferData {
|
28
|
+
}
|
29
|
+
export interface IDelegationData extends IBase {
|
30
|
+
delegation_data: {
|
31
|
+
validator_address: string;
|
32
|
+
coin: ICoin;
|
33
|
+
};
|
34
|
+
}
|
35
|
+
export interface IDelegateData extends IDelegationData {
|
36
|
+
}
|
37
|
+
export interface IUnDelegateData extends IDelegationData {
|
38
|
+
}
|
39
|
+
export interface IBlockchainData extends IBase {
|
40
|
+
transfer_data?: {
|
41
|
+
entries: IEntry[];
|
42
|
+
total_coins?: ICoin[];
|
43
|
+
};
|
44
|
+
delegation_data?: {
|
45
|
+
validator_address: string;
|
46
|
+
coin: ICoin;
|
47
|
+
};
|
48
|
+
}
|
49
|
+
export {};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { IDelegateData, IMultiSend, ISendData, IUnDelegateData } from "./../interfaces/blockchain";
|
2
|
+
import { UserInfo } from "../interfaces/interface";
|
3
|
+
export declare const useBlockchain: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, lang?: string) => {
|
4
|
+
SendRequest: (values: ISendData) => Promise<{
|
5
|
+
response: any;
|
6
|
+
newUser: any;
|
7
|
+
message: any;
|
8
|
+
status: string;
|
9
|
+
}>;
|
10
|
+
MultiSendRequest: (values: IMultiSend) => Promise<{
|
11
|
+
response: any;
|
12
|
+
newUser: any;
|
13
|
+
message: any;
|
14
|
+
status: string;
|
15
|
+
}>;
|
16
|
+
DelegateRequest: (values: IDelegateData) => Promise<{
|
17
|
+
response: any;
|
18
|
+
newUser: any;
|
19
|
+
message: any;
|
20
|
+
status: string;
|
21
|
+
}>;
|
22
|
+
UnDelegateRequest: (values: IUnDelegateData) => Promise<{
|
23
|
+
response: any;
|
24
|
+
newUser: any;
|
25
|
+
message: any;
|
26
|
+
status: string;
|
27
|
+
}>;
|
28
|
+
};
|
@@ -0,0 +1,109 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.useBlockchain = void 0;
|
7
|
+
const restApi_1 = __importDefault(require("../restApi"));
|
8
|
+
const helper_1 = __importDefault(require("../helper"));
|
9
|
+
const dataStructure_1 = __importDefault(require("../helper/dataStructure"));
|
10
|
+
const constants_1 = require("../constants");
|
11
|
+
const blockchainHelper_1 = require("../utils/blockchainHelper");
|
12
|
+
const useBlockchain = (token, userInfo, userId, baseUrl, lang) => {
|
13
|
+
const { checkResponse, headerConfig } = (0, helper_1.default)(userInfo);
|
14
|
+
const { checkGlobalResponse } = checkResponse();
|
15
|
+
const { GetBlockchainRequestData } = (0, dataStructure_1.default)();
|
16
|
+
const GetHeadersConfig = () => {
|
17
|
+
return headerConfig({
|
18
|
+
header: true,
|
19
|
+
isUrlEncoded: false,
|
20
|
+
token,
|
21
|
+
lang,
|
22
|
+
});
|
23
|
+
};
|
24
|
+
const RequestHandler = async (data, requestType) => {
|
25
|
+
try {
|
26
|
+
const response = await restApi_1.default.restApi(baseUrl, constants_1.HTTPMethod.POST, constants_1.Endpoints.Blockchain, GetHeadersConfig(), data);
|
27
|
+
const { key, functionName } = (0, blockchainHelper_1.GetKeyAndFunctionNameByRequestType)(requestType);
|
28
|
+
const { newUserInfo } = checkGlobalResponse(key, response, functionName, key);
|
29
|
+
return {
|
30
|
+
response: response?.data,
|
31
|
+
newUser: newUserInfo,
|
32
|
+
message: response?.data?.result?.friendly_message ??
|
33
|
+
"Operation Completed Successfully",
|
34
|
+
status: "success",
|
35
|
+
};
|
36
|
+
}
|
37
|
+
catch (error) {
|
38
|
+
return {
|
39
|
+
response: error.response,
|
40
|
+
newUser: null,
|
41
|
+
message: error.message,
|
42
|
+
status: "failed",
|
43
|
+
};
|
44
|
+
}
|
45
|
+
};
|
46
|
+
const SendRequest = async (values) => {
|
47
|
+
try {
|
48
|
+
const data = GetBlockchainRequestData(values, constants_1.BlockchainRequestType.Send);
|
49
|
+
return await RequestHandler(data, constants_1.BlockchainRequestType.Send);
|
50
|
+
}
|
51
|
+
catch (error) {
|
52
|
+
return {
|
53
|
+
response: error.response,
|
54
|
+
newUser: null,
|
55
|
+
message: error.message,
|
56
|
+
status: "failed",
|
57
|
+
};
|
58
|
+
}
|
59
|
+
};
|
60
|
+
const MultiSendRequest = async (values) => {
|
61
|
+
try {
|
62
|
+
const data = GetBlockchainRequestData(values, constants_1.BlockchainRequestType.Multi_Send);
|
63
|
+
return await RequestHandler(data, constants_1.BlockchainRequestType.Multi_Send);
|
64
|
+
}
|
65
|
+
catch (error) {
|
66
|
+
return {
|
67
|
+
response: error.response,
|
68
|
+
newUser: null,
|
69
|
+
message: error.message,
|
70
|
+
status: "failed",
|
71
|
+
};
|
72
|
+
}
|
73
|
+
};
|
74
|
+
const DelegateRequest = async (values) => {
|
75
|
+
try {
|
76
|
+
const data = GetBlockchainRequestData(values, constants_1.BlockchainRequestType.Delegate);
|
77
|
+
return await RequestHandler(data, constants_1.BlockchainRequestType.Delegate);
|
78
|
+
}
|
79
|
+
catch (error) {
|
80
|
+
return {
|
81
|
+
response: error.response,
|
82
|
+
newUser: null,
|
83
|
+
message: error.message,
|
84
|
+
status: "failed",
|
85
|
+
};
|
86
|
+
}
|
87
|
+
};
|
88
|
+
const UnDelegateRequest = async (values) => {
|
89
|
+
try {
|
90
|
+
const data = GetBlockchainRequestData(values, constants_1.BlockchainRequestType.UnDelegate);
|
91
|
+
return await RequestHandler(data, constants_1.BlockchainRequestType.UnDelegate);
|
92
|
+
}
|
93
|
+
catch (error) {
|
94
|
+
return {
|
95
|
+
response: error.response,
|
96
|
+
newUser: null,
|
97
|
+
message: error.message,
|
98
|
+
status: "failed",
|
99
|
+
};
|
100
|
+
}
|
101
|
+
};
|
102
|
+
return {
|
103
|
+
SendRequest,
|
104
|
+
MultiSendRequest,
|
105
|
+
DelegateRequest,
|
106
|
+
UnDelegateRequest,
|
107
|
+
};
|
108
|
+
};
|
109
|
+
exports.useBlockchain = useBlockchain;
|
@@ -15,4 +15,5 @@ import { useDevice } from "./device";
|
|
15
15
|
import { useTransaction } from "./transaction";
|
16
16
|
import { useOrganization } from "./organization";
|
17
17
|
import { useTicket } from "./ticket";
|
18
|
-
|
18
|
+
import { useBlockchain } from "./blockchain";
|
19
|
+
export { useAuth, useAddresses, useBankAccount, useDocument, useEmail, useIdentification, usePersonalInfo, usePhone, useSecurity, useToken, useVerifyAndConfirm, useAccount, useGetUserLatest, useDevice, useTransaction, useOrganization, useTicket, useBlockchain, };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.useTicket = exports.useOrganization = exports.useTransaction = exports.useDevice = exports.useGetUserLatest = exports.useAccount = exports.useVerifyAndConfirm = exports.useToken = exports.useSecurity = exports.usePhone = exports.usePersonalInfo = exports.useIdentification = exports.useEmail = exports.useDocument = exports.useBankAccount = exports.useAddresses = exports.useAuth = void 0;
|
3
|
+
exports.useBlockchain = exports.useTicket = exports.useOrganization = exports.useTransaction = exports.useDevice = exports.useGetUserLatest = exports.useAccount = exports.useVerifyAndConfirm = exports.useToken = exports.useSecurity = exports.usePhone = exports.usePersonalInfo = exports.useIdentification = exports.useEmail = exports.useDocument = exports.useBankAccount = exports.useAddresses = exports.useAuth = void 0;
|
4
4
|
const auth_1 = require("./auth");
|
5
5
|
Object.defineProperty(exports, "useAuth", { enumerable: true, get: function () { return auth_1.useAuth; } });
|
6
6
|
const addresses_1 = require("./addresses");
|
@@ -35,3 +35,5 @@ const organization_1 = require("./organization");
|
|
35
35
|
Object.defineProperty(exports, "useOrganization", { enumerable: true, get: function () { return organization_1.useOrganization; } });
|
36
36
|
const ticket_1 = require("./ticket");
|
37
37
|
Object.defineProperty(exports, "useTicket", { enumerable: true, get: function () { return ticket_1.useTicket; } });
|
38
|
+
const blockchain_1 = require("./blockchain");
|
39
|
+
Object.defineProperty(exports, "useBlockchain", { enumerable: true, get: function () { return blockchain_1.useBlockchain; } });
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetKeyAndFunctionNameByRequestType = void 0;
|
4
|
+
const constants_1 = require("../constants");
|
5
|
+
const GetKeyAndFunctionNameByRequestType = (requestType) => {
|
6
|
+
switch (requestType) {
|
7
|
+
case constants_1.BlockchainRequestType.Send:
|
8
|
+
return { key: "send", functionName: "SendRequest" };
|
9
|
+
case constants_1.BlockchainRequestType.Multi_Send:
|
10
|
+
return { key: "multiSend", functionName: "MultiSendRequest" };
|
11
|
+
case constants_1.BlockchainRequestType.Delegate:
|
12
|
+
return { key: "delegate", functionName: "DelegateRequest" };
|
13
|
+
case constants_1.BlockchainRequestType.UnDelegate:
|
14
|
+
return { key: "unDelegate", functionName: "UnDelegateRequest" };
|
15
|
+
default:
|
16
|
+
return { key: "", functionName: "" };
|
17
|
+
}
|
18
|
+
};
|
19
|
+
exports.GetKeyAndFunctionNameByRequestType = GetKeyAndFunctionNameByRequestType;
|
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { useEmail, useAddresses, useAuth, useBankAccount, useDocument, useIdentification, usePersonalInfo, usePhone, useSecurity, useToken, useVerifyAndConfirm, useAccount, useDevice, useTransaction, useOrganization, useTicket, } from "./bank-system/services";
|
1
|
+
export { useEmail, useAddresses, useAuth, useBankAccount, useDocument, useIdentification, usePersonalInfo, usePhone, useSecurity, useToken, useVerifyAndConfirm, useAccount, useDevice, useTransaction, useOrganization, useTicket, useBlockchain, } from "./bank-system/services";
|
2
2
|
import * as Constants from "./bank-system/constants";
|
3
3
|
import * as Content from "./bank-system/content";
|
4
4
|
import * as Interfaces from "./bank-system/interfaces";
|
package/dist/index.js
CHANGED
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
33
33
|
};
|
34
34
|
})();
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
36
|
-
exports.Content = exports.chainInfo = exports.RestApiService = exports.Utils = exports.Interfaces = exports.Constants = exports.useTicket = exports.useOrganization = exports.useTransaction = exports.useDevice = exports.useAccount = exports.useVerifyAndConfirm = exports.useToken = exports.useSecurity = exports.usePhone = exports.usePersonalInfo = exports.useIdentification = exports.useDocument = exports.useBankAccount = exports.useAuth = exports.useAddresses = exports.useEmail = void 0;
|
36
|
+
exports.Content = exports.chainInfo = exports.RestApiService = exports.Utils = exports.Interfaces = exports.Constants = exports.useBlockchain = exports.useTicket = exports.useOrganization = exports.useTransaction = exports.useDevice = exports.useAccount = exports.useVerifyAndConfirm = exports.useToken = exports.useSecurity = exports.usePhone = exports.usePersonalInfo = exports.useIdentification = exports.useDocument = exports.useBankAccount = exports.useAuth = exports.useAddresses = exports.useEmail = void 0;
|
37
37
|
var services_1 = require("./bank-system/services");
|
38
38
|
Object.defineProperty(exports, "useEmail", { enumerable: true, get: function () { return services_1.useEmail; } });
|
39
39
|
Object.defineProperty(exports, "useAddresses", { enumerable: true, get: function () { return services_1.useAddresses; } });
|
@@ -51,6 +51,7 @@ Object.defineProperty(exports, "useDevice", { enumerable: true, get: function ()
|
|
51
51
|
Object.defineProperty(exports, "useTransaction", { enumerable: true, get: function () { return services_1.useTransaction; } });
|
52
52
|
Object.defineProperty(exports, "useOrganization", { enumerable: true, get: function () { return services_1.useOrganization; } });
|
53
53
|
Object.defineProperty(exports, "useTicket", { enumerable: true, get: function () { return services_1.useTicket; } });
|
54
|
+
Object.defineProperty(exports, "useBlockchain", { enumerable: true, get: function () { return services_1.useBlockchain; } });
|
54
55
|
const Constants = __importStar(require("./bank-system/constants"));
|
55
56
|
exports.Constants = Constants;
|
56
57
|
const Content = __importStar(require("./bank-system/content"));
|
@@ -1 +1 @@
|
|
1
|
-
{"root":["../src/index.ts","../src/bank-system/constants/enum.ts","../src/bank-system/constants/index.ts","../src/bank-system/constants/structure.ts","../src/bank-system/content/accountCurrencies.ts","../src/bank-system/content/countries.ts","../src/bank-system/content/currencies.ts","../src/bank-system/content/index.ts","../src/bank-system/content/state.ts","../src/bank-system/helper/data.tsx","../src/bank-system/helper/dataStructure.tsx","../src/bank-system/helper/index.tsx","../src/bank-system/interfaces/accountInterface.ts","../src/bank-system/interfaces/bankingSystemInterface.ts","../src/bank-system/interfaces/deviceInterface.ts","../src/bank-system/interfaces/index.ts","../src/bank-system/interfaces/interface.ts","../src/bank-system/interfaces/organizationInterface.ts","../src/bank-system/interfaces/promotion.ts","../src/bank-system/interfaces/signInterface.ts","../src/bank-system/interfaces/transactionInterface.ts","../src/bank-system/restApi/index.tsx","../src/bank-system/services/account.ts","../src/bank-system/services/addresses.ts","../src/bank-system/services/auth.ts","../src/bank-system/services/bankAccount.ts","../src/bank-system/services/device.ts","../src/bank-system/services/document.ts","../src/bank-system/services/email.ts","../src/bank-system/services/history.ts","../src/bank-system/services/identification.ts","../src/bank-system/services/index.ts","../src/bank-system/services/organization.ts","../src/bank-system/services/personalInfo.ts","../src/bank-system/services/phone.ts","../src/bank-system/services/security.ts","../src/bank-system/services/ticket.ts","../src/bank-system/services/token.ts","../src/bank-system/services/transaction.ts","../src/bank-system/services/verifyAndConfirm.ts","../src/bank-system/utils/chainAddressMasking.ts","../src/bank-system/utils/copyText.ts","../src/bank-system/utils/countryAndCurrencyData.ts","../src/bank-system/utils/enumToOption.ts","../src/bank-system/utils/fillDeviceDetails.ts","../src/bank-system/utils/generateOneLiner.ts","../src/bank-system/utils/generateSourceId.ts","../src/bank-system/utils/getCountryName.ts","../src/bank-system/utils/getEnumName.ts","../src/bank-system/utils/getStateByCountryCode.ts","../src/bank-system/utils/index.ts","../src/bank-system/utils/info.ts","../src/bank-system/utils/maskingFunction.ts","../src/bank-system/utils/regex.ts","../src/bank-system/utils/sortUserInfo.ts","../src/bank-system/utils/handleEncryption/decryptData.tsx","../src/bank-system/utils/handleEncryption/encryptData.tsx","../src/bank-system/utils/handleEncryption/index.ts","../src/bank-system/utils/handleEncryption/key.ts","../src/keplr-config/chainInfo.ts"],"version":"5.
|
1
|
+
{"root":["../src/index.ts","../src/bank-system/constants/constants.ts","../src/bank-system/constants/enum.ts","../src/bank-system/constants/index.ts","../src/bank-system/constants/structure.ts","../src/bank-system/content/accountCurrencies.ts","../src/bank-system/content/countries.ts","../src/bank-system/content/currencies.ts","../src/bank-system/content/index.ts","../src/bank-system/content/state.ts","../src/bank-system/helper/data.tsx","../src/bank-system/helper/dataStructure.tsx","../src/bank-system/helper/index.tsx","../src/bank-system/interfaces/accountInterface.ts","../src/bank-system/interfaces/bankingSystemInterface.ts","../src/bank-system/interfaces/blockchain.ts","../src/bank-system/interfaces/deviceInterface.ts","../src/bank-system/interfaces/index.ts","../src/bank-system/interfaces/interface.ts","../src/bank-system/interfaces/organizationInterface.ts","../src/bank-system/interfaces/promotion.ts","../src/bank-system/interfaces/signInterface.ts","../src/bank-system/interfaces/transactionInterface.ts","../src/bank-system/restApi/index.tsx","../src/bank-system/services/account.ts","../src/bank-system/services/addresses.ts","../src/bank-system/services/auth.ts","../src/bank-system/services/bankAccount.ts","../src/bank-system/services/blockchain.ts","../src/bank-system/services/device.ts","../src/bank-system/services/document.ts","../src/bank-system/services/email.ts","../src/bank-system/services/history.ts","../src/bank-system/services/identification.ts","../src/bank-system/services/index.ts","../src/bank-system/services/organization.ts","../src/bank-system/services/personalInfo.ts","../src/bank-system/services/phone.ts","../src/bank-system/services/security.ts","../src/bank-system/services/ticket.ts","../src/bank-system/services/token.ts","../src/bank-system/services/transaction.ts","../src/bank-system/services/verifyAndConfirm.ts","../src/bank-system/utils/blockchainHelper.ts","../src/bank-system/utils/chainAddressMasking.ts","../src/bank-system/utils/copyText.ts","../src/bank-system/utils/countryAndCurrencyData.ts","../src/bank-system/utils/enumToOption.ts","../src/bank-system/utils/fillDeviceDetails.ts","../src/bank-system/utils/generateOneLiner.ts","../src/bank-system/utils/generateSourceId.ts","../src/bank-system/utils/getCountryName.ts","../src/bank-system/utils/getEnumName.ts","../src/bank-system/utils/getStateByCountryCode.ts","../src/bank-system/utils/index.ts","../src/bank-system/utils/info.ts","../src/bank-system/utils/maskingFunction.ts","../src/bank-system/utils/regex.ts","../src/bank-system/utils/sortUserInfo.ts","../src/bank-system/utils/handleEncryption/decryptData.tsx","../src/bank-system/utils/handleEncryption/encryptData.tsx","../src/bank-system/utils/handleEncryption/index.ts","../src/bank-system/utils/handleEncryption/key.ts","../src/keplr-config/chainInfo.ts"],"version":"5.8.3"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ggez-banking-sdk",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.29",
|
4
4
|
"description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|