ggez-banking-sdk 0.0.8 → 0.0.10

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,7 +1,7 @@
1
1
  import { AddressType, AuthorizationOperationRequestType, BankAccountTypes, BankBeneficiaryType, DeviceType, DocumentType, Entity, EntityStatus } from "../constants/enum";
2
2
  import { CreateDeviceInterface, UpdateDeviceInterface, DeleteDeviceInterface, VerifyDeviceInterface, ConfirmDeviceInterface, LogoutDeviceInterface } from "../interfaces/deviceInterface";
3
3
  import { SignUpInterface, SignUpWithGoogleInterface } from "../interfaces/signInterface";
4
- import { doTransactionInterface, GetTransactionInterface } from "../interfaces/accountInterface";
4
+ import { DoTransactionInterface, GetTransactionInterface } from "../interfaces/accountInterface";
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 } from "../interfaces/bankingSystemInterface";
6
6
  import { orderInterface } from "../interfaces/transactionInterface";
7
7
  import { CreateDocumentOrganizationInterface, CreateOrganizationInterface, UpdateOrganizationInterface } from "../interfaces/organizationInterface";
@@ -2586,12 +2586,13 @@ declare const Data: () => {
2586
2586
  };
2587
2587
  };
2588
2588
  dataAccount: () => {
2589
- dataDoTransaction: (values: doTransactionInterface) => {
2589
+ dataDoTransaction: (values: DoTransactionInterface) => {
2590
2590
  info: {
2591
2591
  type: string | number;
2592
2592
  amount: string;
2593
2593
  currency: string;
2594
2594
  notes: string;
2595
+ wire_transfer_type: number;
2595
2596
  };
2596
2597
  account: {
2597
2598
  info: {
@@ -1007,6 +1007,7 @@ const Data = () => {
1007
1007
  amount: values.amount,
1008
1008
  currency: values.currency,
1009
1009
  notes: values.note,
1010
+ wire_transfer_type: values.wireTransferType,
1010
1011
  }, account: {
1011
1012
  info: {
1012
1013
  id: values.accountId,
@@ -1,5 +1,5 @@
1
1
  import { IGeoCoordinates } from "./interface";
2
- export interface doTransactionInterface {
2
+ export interface DoTransactionInterface {
3
3
  type: number | string;
4
4
  amount: string;
5
5
  currency: string;
@@ -7,6 +7,7 @@ export interface doTransactionInterface {
7
7
  accountId: number;
8
8
  validate: string;
9
9
  bankId?: number | string;
10
+ wireTransferType?: number;
10
11
  geoCoordinates?: IGeoCoordinates;
11
12
  }
12
13
  export interface GetTransactionInterface {
@@ -1,4 +1,4 @@
1
- import { doTransactionInterface, GetTransactionInterface, GetAccountLimit } from "../interfaces/accountInterface";
1
+ import { DoTransactionInterface, GetTransactionInterface, GetAccountLimit } from "../interfaces/accountInterface";
2
2
  import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
3
3
  export declare const useAccount: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates: IGeoCoordinates, lang?: string) => {
4
4
  GetTransactionByUserId: (values: GetTransactionInterface) => Promise<{
@@ -18,7 +18,7 @@ export declare const useAccount: (token: string, userInfo: UserInfo, userId: str
18
18
  message: any;
19
19
  status: string;
20
20
  }>;
21
- DoTransaction: (values: doTransactionInterface) => Promise<{
21
+ DoTransaction: (values: DoTransactionInterface) => Promise<{
22
22
  response: any;
23
23
  newUser: any;
24
24
  message: any;
@@ -5,7 +5,7 @@ const useRegExp = () => {
5
5
  return {
6
6
  checkEmptyPattern: { required: true },
7
7
  GeoCoordinatesPattern: /^(-?(?:1[0-7]|[1-9])?\d(?:\.\d{1,24})?|180(?:\.0{1,24})?)$/,
8
- GGEZAddressRegexPattern: /^ggez[A-Za-z0-9]{30,80}$/,
8
+ GGEZAddressRegexPattern: /^ggez1[A-Za-z0-9]{30,80}$/,
9
9
  NameRegexPattern: /^(?!.*--)[\p{L}\p{N}][^\\\/*$%^+=<>|\n\r\b\t]{0,49}$/u,
10
10
  EmailRegexPattern: /^([\w-+\.]{1,80})@([\w-+\.]{1,80})\.([a-zA-Z]{1,20})$/,
11
11
  MoneyRegexPattern: /^(?!0(\.0{1,2})?$)(?!0\d)\d{1,7}(?:\.\d{1,2})?$/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
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",