ggez-banking-sdk 0.1.132 → 0.1.133

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,6 +1,6 @@
1
- import type { IActivateGoogleAuthData, IConfirmDeviceData, IConfirmEmailData, IConfirmPhoneData, ICreateAddressData, ICreateBankAccountData, ICreateDeviceData, ICreateEmailData, ICreateIdentificationData, ICreatePhoneData, ICreateTicketData, ICreateUserData, ICreateUserWithGoogleData, IDeactivateGoogleAuthData, IDeleteAddressData, IDeleteBankAccountData, IDeleteDeviceData, IDeleteEmailData, IDeleteIdentificationData, IDeletePhoneData, ILogoutDeviceData, IMakeAddressPrimaryData, IMakeBankAccountPrimaryData, IMakeEmailPrimaryData, IMakePhonePrimaryData, IResetPasswordData, IResetSecurityCodeData, IResetSecurityQuestionsData, ISendEmailOTPData, ISendPhoneOTPData, IUpdateAddressData, IUpdateBankAccountData, IUpdateDeviceData, IUpdateEmailData, IUpdateIdentificationData, IUpdatePersonalInfoData, IUpdatePhoneData, IUpdatePreferencesData, IValidateSecurityCodeData, IVerifyDeviceData, IVerifyEmailData, IVerifyPhoneData, ResetUserSecurity } from "../../types";
2
- import type { IUploadDocumentData, IUploadProfilePictureData, UserClientData } from "../../types";
3
- import type { UserData } from "../../types";
1
+ import type { IActivateGoogleAuthData, IConfirmDeviceData, IConfirmEmailData, IConfirmPhoneData, ICreateAddressData, ICreateBankAccountData, ICreateDeviceData, ICreateEmailData, ICreateIdentificationData, ICreatePhoneData, ICreateTicketData, ICreateUserData, ICreateUserWithGoogleData, IDeactivateGoogleAuthData, IDeleteAddressData, IDeleteBankAccountData, IDeleteDeviceData, IDeleteEmailData, IDeleteIdentificationData, IDeletePhoneData, ILogoutDeviceData, IMakeAddressPrimaryData, IMakeBankAccountPrimaryData, IMakeEmailPrimaryData, IMakePhonePrimaryData, IResetPasswordData, IResetSecurityCodeData, IResetSecurityQuestionsData, ISendEmailOTPData, ISendPhoneOTPData, IUpdateAddressData, IUpdateBankAccountData, IUpdateDeviceData, IUpdateEmailData, IUpdateIdentificationData, IUpdatePersonalInfoData, IUpdatePhoneData, IUpdatePreferencesData, IUploadDocumentData, IUploadProfilePictureData, IValidateSecurityCodeData, IVerifyDeviceData, IVerifyEmailData, IVerifyPhoneData } from "../../types";
2
+ import type { UserClientData } from "../../types";
3
+ import type { ResetUserSecurity, UserData } from "../../types";
4
4
  declare class UserClient {
5
5
  private readonly clientData;
6
6
  private userService;
@@ -1,5 +1,4 @@
1
- import { AxiosHelper } from "../../helper";
2
- import { ResponseHelper } from "../../helper";
1
+ import { AxiosHelper, ResponseHelper } from "../../helper";
3
2
  import { FillActivateGoogleAuthData, FillConfirmDeviceData, FillConfirmEmailData, FillConfirmPhoneData, FillConfirmUserSecurityData, FillCreateAddressData, FillCreateBankAccountData, FillCreateDeviceData, FillCreateEmailData, FillCreateIdentificationData, FillCreatePhoneData, FillCreateTicketData, FillCreateUserData, FillCreateUserWithGoogleData, FillDeactivateGoogleAuthData, FillDeleteAddressData, FillDeleteBankAccountData, FillDeleteDeviceData, FillDeleteEmailData, FillDeleteIdentificationData, FillDeletePhoneData, FillDocumentData, FillEnrollGoogleAuthData, FillLogoutDeviceData, FillMakeAddressPrimaryData, FillMakeBankAccountPrimaryData, FillMakeEmailPrimaryData, FillMakePhonePrimaryData, FillResetPasswordData, FillResetSecurityCodeData, FillResetSecurityQuestionsData, FillResetUserSecurityData, FillResultByError, FillSendEmailOTPData, FillSendPhoneOTPData, FillUpdateAddressData, FillUpdateBankAccountData, FillUpdateDeviceData, FillUpdateEmailData, FillUpdateIdentificationData, FillUpdatePersonalInfoData, FillUpdatePhoneData, FillUpdatePreferencesData, FillUploadDocumentData, FillUploadProfilePictureData, FillUserData, FillValidateSecurityCodeData, FillValidateSecurityData, FillVerifyDeviceData, FillVerifyEmailData, FillVerifyPhoneData, FillVerifyUserSecurityData, } from "../data";
4
3
  import { AuthService, UserService } from "../services";
5
4
  class UserClient {
@@ -243,7 +242,7 @@ class UserClient {
243
242
  installationId: data.installationID,
244
243
  });
245
244
  const config = {
246
- headers: { Authorization: `Bearer ${tokenData?.access_token}` },
245
+ headers: { Authorization: `Bearer ${tokenData.access_token}` },
247
246
  };
248
247
  const response = await this.userService.createUser(userData, config);
249
248
  return ResponseHelper.GetResponse(response.data);
@@ -261,7 +260,7 @@ class UserClient {
261
260
  installationId: data.installationID,
262
261
  });
263
262
  const config = {
264
- headers: { Authorization: `Bearer ${tokenData?.access_token}` },
263
+ headers: { Authorization: `Bearer ${tokenData.access_token}` },
265
264
  };
266
265
  const response = await this.userService.createUser(userData, config);
267
266
  return ResponseHelper.GetResponse(response.data);
@@ -1,3 +1,4 @@
1
+ import { CustomField } from "../../../banking";
1
2
  interface ICreateUserData {
2
3
  firstName: string;
3
4
  lastName: string;
@@ -20,7 +21,7 @@ interface ICreateUserData {
20
21
  referralCodeType: string;
21
22
  mobileNumberCountry: string;
22
23
  preferredLanguageCode: string;
23
- customField: any;
24
+ customField: CustomField;
24
25
  }
25
26
  interface ICreateUserWithGoogleData extends ICreateUserData {
26
27
  loginId: string;
@@ -1,2 +1,8 @@
1
+ import { PromotionData, UserAccessControl } from "..";
1
2
  export type * from "./promotionData";
2
3
  export type * from "./userAccessControl";
4
+ type CustomField = {
5
+ promotion_data: PromotionData;
6
+ user_access_control: UserAccessControl;
7
+ };
8
+ export type { CustomField };
@@ -1,8 +1,4 @@
1
- import type { AccountData, Activity, Address, BankAccount, BaseResult, CreditCard, CryptoAddress, Currency, Device, DeviceHistory, DocumentData, Email, History, ExternalAuthentication, GeneralRequirements, GeoCoordinates, GroupData, Identification, OrganizationData, PersonalInfo, Phone, Preferences, Relationship, UserSecurity, SimplifiedAccessRule, TermsConditions, TicketData, UserAuthenticationData, UserCreditLimit, UserInfo, Commerce, ValidationData, PromotionData, UserAccessControl } from "..";
2
- type CustomField = {
3
- promotion_data: PromotionData;
4
- user_access_control: UserAccessControl;
5
- };
1
+ import type { AccountData, Activity, Address, BankAccount, BaseResult, CreditCard, CryptoAddress, Currency, Device, DeviceHistory, DocumentData, Email, History, ExternalAuthentication, GeneralRequirements, GeoCoordinates, GroupData, Identification, OrganizationData, PersonalInfo, Phone, Preferences, Relationship, UserSecurity, SimplifiedAccessRule, TermsConditions, TicketData, UserAuthenticationData, UserCreditLimit, UserInfo, Commerce, ValidationData, CustomField } from "..";
6
2
  type UserData = BaseResult & {
7
3
  info: UserInfo;
8
4
  personal_info: PersonalInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.1.132",
3
+ "version": "0.1.133",
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",