ggez-banking-sdk 0.2.29 → 0.2.31
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.
|
@@ -69,6 +69,7 @@ declare const StructTicketMessageDescriptionCodes: {
|
|
|
69
69
|
declare const SystemResponses: {
|
|
70
70
|
readonly Approved: "0000";
|
|
71
71
|
readonly Create_User_Completed_Partially: "0100";
|
|
72
|
+
readonly Pending_Transaction: "0400";
|
|
72
73
|
readonly Invalid_Verification_Code: "2053";
|
|
73
74
|
readonly Verification_Code_Is_Expired: "2054";
|
|
74
75
|
readonly Invalid_Email_Or_Phone: "2585";
|
|
@@ -70,6 +70,7 @@ const StructTicketMessageDescriptionCodes = {
|
|
|
70
70
|
const SystemResponses = {
|
|
71
71
|
Approved: "0000",
|
|
72
72
|
Create_User_Completed_Partially: "0100",
|
|
73
|
+
Pending_Transaction: "0400",
|
|
73
74
|
Invalid_Verification_Code: "2053",
|
|
74
75
|
Verification_Code_Is_Expired: "2054",
|
|
75
76
|
Invalid_Email_Or_Phone: "2585",
|
|
@@ -3,19 +3,25 @@ import { isNullOrUndefined } from "../utils";
|
|
|
3
3
|
class UserHelper {
|
|
4
4
|
// #region "Modify"
|
|
5
5
|
static ModifyListByEntity = (entityList, entity) => {
|
|
6
|
-
|
|
6
|
+
try {
|
|
7
|
+
if (!entity)
|
|
8
|
+
return entityList;
|
|
9
|
+
const modifiedList = entityList.map((e) => {
|
|
10
|
+
if (e.id == entity.id) {
|
|
11
|
+
return { ...e, ...entity };
|
|
12
|
+
}
|
|
13
|
+
if (entity.is_primary == 1) {
|
|
14
|
+
return { ...e, is_primary: 0 };
|
|
15
|
+
}
|
|
16
|
+
return e;
|
|
17
|
+
});
|
|
18
|
+
const sortedList = this.SortEntity(modifiedList);
|
|
19
|
+
return sortedList;
|
|
20
|
+
}
|
|
21
|
+
catch (error) {
|
|
22
|
+
console.error("Error in ModifyListByEntity:", error);
|
|
7
23
|
return entityList;
|
|
8
|
-
|
|
9
|
-
if (e.id == entity.id) {
|
|
10
|
-
return { ...e, ...entity };
|
|
11
|
-
}
|
|
12
|
-
if (entity.is_primary == 1) {
|
|
13
|
-
return { ...e, is_primary: 0 };
|
|
14
|
-
}
|
|
15
|
-
return e;
|
|
16
|
-
});
|
|
17
|
-
const sortedList = this.SortEntity(modifiedList);
|
|
18
|
-
return sortedList;
|
|
24
|
+
}
|
|
19
25
|
};
|
|
20
26
|
static ModifyByDocumentData = (entityList, documentData) => {
|
|
21
27
|
if (!documentData)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ggez-banking-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.31",
|
|
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",
|