ggez-banking-sdk 0.1.173 → 0.1.174
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TModifyListByEntity, TModifyByDocumentData, TSortByID, TSortByIsPrimary, TSortByVerificationStatus, TSortEntity, TModifyOrganizationByDocumentData, TModifyProfilePicture, TModifySecurityResetUserSecurity } from "../types";
|
|
1
|
+
import type { TModifyListByEntity, TModifyByDocumentData, TSortByID, TSortByIsPrimary, TSortByVerificationStatus, TSortEntity, TModifyOrganizationByDocumentData, TModifyProfilePicture, TModifySecurityResetUserSecurity, VerifySecurityData, UserData } from "../types";
|
|
2
2
|
declare class UserHelper {
|
|
3
3
|
static ModifyListByEntity: TModifyListByEntity;
|
|
4
4
|
static ModifyByDocumentData: TModifyByDocumentData;
|
|
@@ -9,5 +9,6 @@ declare class UserHelper {
|
|
|
9
9
|
static SortByIsPrimary: TSortByIsPrimary;
|
|
10
10
|
static SortByVerificationStatus: TSortByVerificationStatus;
|
|
11
11
|
static SortById: TSortByID;
|
|
12
|
+
static ExtractDeviceData: (data: UserData | VerifySecurityData) => import("../types").Device;
|
|
12
13
|
}
|
|
13
14
|
export { UserHelper };
|
|
@@ -124,5 +124,13 @@ class UserHelper {
|
|
|
124
124
|
}
|
|
125
125
|
return 0;
|
|
126
126
|
};
|
|
127
|
+
// #endregion
|
|
128
|
+
// #region "Utils"
|
|
129
|
+
static ExtractDeviceData = (data) => {
|
|
130
|
+
if (Array.isArray(data.device)) {
|
|
131
|
+
return data.device[0];
|
|
132
|
+
}
|
|
133
|
+
return data.device;
|
|
134
|
+
};
|
|
127
135
|
}
|
|
128
136
|
export { UserHelper };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ggez-banking-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.174",
|
|
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
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|