ggez-banking-sdk 0.1.41 → 0.1.42

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.
@@ -11,5 +11,5 @@ export declare enum BlockchainRequestType {
11
11
  Send = 1,
12
12
  Multi_Send = 2,
13
13
  Delegate = 3,
14
- UnDelegate = 4
14
+ Undelegate = 4
15
15
  }
@@ -17,5 +17,5 @@ var BlockchainRequestType;
17
17
  BlockchainRequestType[BlockchainRequestType["Send"] = 1] = "Send";
18
18
  BlockchainRequestType[BlockchainRequestType["Multi_Send"] = 2] = "Multi_Send";
19
19
  BlockchainRequestType[BlockchainRequestType["Delegate"] = 3] = "Delegate";
20
- BlockchainRequestType[BlockchainRequestType["UnDelegate"] = 4] = "UnDelegate";
20
+ BlockchainRequestType[BlockchainRequestType["Undelegate"] = 4] = "Undelegate";
21
21
  })(BlockchainRequestType || (exports.BlockchainRequestType = BlockchainRequestType = {}));
@@ -116,7 +116,7 @@ const Data = () => {
116
116
  return GetMultiSendRequestData(values);
117
117
  case constants_1.BlockchainRequestType.Delegate:
118
118
  return GetDelegateRequestData(values);
119
- case constants_1.BlockchainRequestType.UnDelegate:
119
+ case constants_1.BlockchainRequestType.Undelegate:
120
120
  return GetUndelegateRequestData(values);
121
121
  default:
122
122
  return null;
@@ -19,7 +19,7 @@ export declare const useBlockchain: (token: string, userInfo: UserInfo, userId:
19
19
  message: any;
20
20
  status: string;
21
21
  }>;
22
- UnDelegateRequest: (values: IUndelegateData) => Promise<{
22
+ UndelegateRequest: (values: IUndelegateData) => Promise<{
23
23
  response: any;
24
24
  newUser: any;
25
25
  message: any;
@@ -86,10 +86,10 @@ const useBlockchain = (token, userInfo, userId, baseUrl, lang) => {
86
86
  };
87
87
  }
88
88
  };
89
- const UnDelegateRequest = async (values) => {
89
+ const UndelegateRequest = async (values) => {
90
90
  try {
91
- const data = GetBlockchainRequestData(values, constants_1.BlockchainRequestType.UnDelegate);
92
- return await RequestHandler(data, constants_1.BlockchainRequestType.UnDelegate);
91
+ const data = GetBlockchainRequestData(values, constants_1.BlockchainRequestType.Undelegate);
92
+ return await RequestHandler(data, constants_1.BlockchainRequestType.Undelegate);
93
93
  }
94
94
  catch (error) {
95
95
  return {
@@ -104,7 +104,7 @@ const useBlockchain = (token, userInfo, userId, baseUrl, lang) => {
104
104
  SendRequest,
105
105
  MultiSendRequest,
106
106
  DelegateRequest,
107
- UnDelegateRequest,
107
+ UndelegateRequest,
108
108
  };
109
109
  };
110
110
  exports.useBlockchain = useBlockchain;
@@ -10,8 +10,8 @@ const GetKeyAndFunctionNameByRequestType = (requestType) => {
10
10
  return { key: "multiSend", functionName: "MultiSendRequest" };
11
11
  case constants_1.BlockchainRequestType.Delegate:
12
12
  return { key: "delegate", functionName: "DelegateRequest" };
13
- case constants_1.BlockchainRequestType.UnDelegate:
14
- return { key: "unDelegate", functionName: "UnDelegateRequest" };
13
+ case constants_1.BlockchainRequestType.Undelegate:
14
+ return { key: "undelegate", functionName: "UndelegateRequest" };
15
15
  default:
16
16
  return { key: "", functionName: "" };
17
17
  }
@@ -29,7 +29,7 @@ const GetEndpointByRequestType = (requestType) => {
29
29
  case constants_1.BlockchainRequestType.Delegate:
30
30
  action = constants_1.BlockchainActions.Delegate;
31
31
  break;
32
- case constants_1.BlockchainRequestType.UnDelegate:
32
+ case constants_1.BlockchainRequestType.Undelegate:
33
33
  action = constants_1.BlockchainActions.Undelegate;
34
34
  break;
35
35
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
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",