ggez-banking-sdk 0.1.182 → 0.1.183
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/constants/enum.d.ts
CHANGED
|
@@ -179,7 +179,22 @@ declare enum BusinessType {
|
|
|
179
179
|
Cooperative = 6,
|
|
180
180
|
Partnerships = 7,
|
|
181
181
|
Individual_Group = 8,
|
|
182
|
-
Other = 9
|
|
182
|
+
Other = 9,
|
|
183
|
+
Personal = 10,
|
|
184
|
+
Association = 11,
|
|
185
|
+
Private_Limited_Company = 12,
|
|
186
|
+
Public_Limited_Company = 13,
|
|
187
|
+
Special_Purpose_Vehicle = 14,
|
|
188
|
+
Holding_Company = 15,
|
|
189
|
+
Subsidiary_Company = 16,
|
|
190
|
+
Real_Estate_Investment_Trust = 17,
|
|
191
|
+
Family_Office = 18,
|
|
192
|
+
Trusts = 19,
|
|
193
|
+
Foundation = 20,
|
|
194
|
+
Branch_Office = 21,
|
|
195
|
+
Offshore_Company = 22,
|
|
196
|
+
Protected_Cell_Company = 23,
|
|
197
|
+
Corporate = 24
|
|
183
198
|
}
|
|
184
199
|
declare enum ChainRequestType {
|
|
185
200
|
Create_Trade = 0,
|
package/dist/constants/enum.js
CHANGED
|
@@ -188,6 +188,21 @@ var BusinessType;
|
|
|
188
188
|
BusinessType[BusinessType["Partnerships"] = 7] = "Partnerships";
|
|
189
189
|
BusinessType[BusinessType["Individual_Group"] = 8] = "Individual_Group";
|
|
190
190
|
BusinessType[BusinessType["Other"] = 9] = "Other";
|
|
191
|
+
BusinessType[BusinessType["Personal"] = 10] = "Personal";
|
|
192
|
+
BusinessType[BusinessType["Association"] = 11] = "Association";
|
|
193
|
+
BusinessType[BusinessType["Private_Limited_Company"] = 12] = "Private_Limited_Company";
|
|
194
|
+
BusinessType[BusinessType["Public_Limited_Company"] = 13] = "Public_Limited_Company";
|
|
195
|
+
BusinessType[BusinessType["Special_Purpose_Vehicle"] = 14] = "Special_Purpose_Vehicle";
|
|
196
|
+
BusinessType[BusinessType["Holding_Company"] = 15] = "Holding_Company";
|
|
197
|
+
BusinessType[BusinessType["Subsidiary_Company"] = 16] = "Subsidiary_Company";
|
|
198
|
+
BusinessType[BusinessType["Real_Estate_Investment_Trust"] = 17] = "Real_Estate_Investment_Trust";
|
|
199
|
+
BusinessType[BusinessType["Family_Office"] = 18] = "Family_Office";
|
|
200
|
+
BusinessType[BusinessType["Trusts"] = 19] = "Trusts";
|
|
201
|
+
BusinessType[BusinessType["Foundation"] = 20] = "Foundation";
|
|
202
|
+
BusinessType[BusinessType["Branch_Office"] = 21] = "Branch_Office";
|
|
203
|
+
BusinessType[BusinessType["Offshore_Company"] = 22] = "Offshore_Company";
|
|
204
|
+
BusinessType[BusinessType["Protected_Cell_Company"] = 23] = "Protected_Cell_Company";
|
|
205
|
+
BusinessType[BusinessType["Corporate"] = 24] = "Corporate";
|
|
191
206
|
})(BusinessType || (BusinessType = {}));
|
|
192
207
|
var ChainRequestType;
|
|
193
208
|
(function (ChainRequestType) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { TModifyListByEntity, TModifyByDocumentData, TSortByID, TSortByIsPrimary, TSortByVerificationStatus, TSortEntity, TModifyOrganizationByDocumentData, TModifyProfilePicture, TModifySecurityResetUserSecurity, VerifySecurityData, UserData, ICreateUserData } from "../types";
|
|
1
|
+
import type { TModifyListByEntity, TModifyByDocumentData, TSortByID, TSortByIsPrimary, TSortByVerificationStatus, TSortEntity, TModifyOrganizationByDocumentData, TModifyOrganizationList, TModifyProfilePicture, TModifySecurityResetUserSecurity, VerifySecurityData, UserData, ICreateUserData } from "../types";
|
|
2
2
|
declare class UserHelper {
|
|
3
3
|
static ModifyListByEntity: TModifyListByEntity;
|
|
4
4
|
static ModifyByDocumentData: TModifyByDocumentData;
|
|
5
5
|
static ModifyOrganizationByDocumentData: TModifyOrganizationByDocumentData;
|
|
6
|
+
static ModifyOrganizationList: TModifyOrganizationList;
|
|
6
7
|
static ModifyProfilePicture: TModifyProfilePicture;
|
|
7
8
|
static ModifySecurityByResetUserSecurity: TModifySecurityResetUserSecurity;
|
|
8
9
|
static SortEntity: TSortEntity;
|
|
@@ -47,6 +47,22 @@ class UserHelper {
|
|
|
47
47
|
});
|
|
48
48
|
return modifiedList;
|
|
49
49
|
};
|
|
50
|
+
static ModifyOrganizationList = (organizationList, organization) => {
|
|
51
|
+
if (!organization?.info?.id)
|
|
52
|
+
return organizationList;
|
|
53
|
+
return organizationList.map((org) => {
|
|
54
|
+
if (org?.info?.id === organization.info.id) {
|
|
55
|
+
return {
|
|
56
|
+
...org,
|
|
57
|
+
...organization,
|
|
58
|
+
info: { ...org.info, ...organization.info },
|
|
59
|
+
details: { ...org.details, ...organization.details },
|
|
60
|
+
address: organization.address || org.address,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
return org;
|
|
64
|
+
});
|
|
65
|
+
};
|
|
50
66
|
static ModifyProfilePicture = (personal_info, documentData) => {
|
|
51
67
|
if (!documentData)
|
|
52
68
|
return personal_info;
|
|
@@ -3,10 +3,11 @@ type TEntity = UserData[keyof Pick<UserData, "addresses" | "bank_account" | "ema
|
|
|
3
3
|
type TModifyListByEntity = <K extends TEntity>(entityList: K[], entity: K) => K[];
|
|
4
4
|
type TModifyByDocumentData = <K extends TEntity>(entityList: K[], entity: DocumentData) => K[];
|
|
5
5
|
type TModifyOrganizationByDocumentData = (organizationList: OrganizationData[], documentData: DocumentData) => OrganizationData[];
|
|
6
|
+
type TModifyOrganizationList = (organizationList: OrganizationData[], organization: OrganizationData) => OrganizationData[];
|
|
6
7
|
type TModifyProfilePicture = (personal_info: PersonalInfo, documentData: DocumentData) => PersonalInfo;
|
|
7
8
|
type TModifySecurity = <K extends UserSecurity>(userSecurity: K, newUserSecurity: K) => UserSecurity;
|
|
8
9
|
type TModifySecurityResetUserSecurity = (userSecurity: UserSecurity, resetUserSecurity: ResetUserSecurity) => UserSecurity;
|
|
9
|
-
export { TEntity, TModifyListByEntity, TModifyByDocumentData, TModifyOrganizationByDocumentData, TModifyProfilePicture, TModifySecurityResetUserSecurity, TModifySecurity, };
|
|
10
|
+
export { TEntity, TModifyListByEntity, TModifyByDocumentData, TModifyOrganizationByDocumentData, TModifyOrganizationList, TModifyProfilePicture, TModifySecurityResetUserSecurity, TModifySecurity, };
|
|
10
11
|
type BaseEntity = {
|
|
11
12
|
id: number;
|
|
12
13
|
is_primary: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ggez-banking-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.183",
|
|
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",
|