ggez-banking-sdk 0.0.15 → 0.0.17

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.
@@ -22,7 +22,6 @@ declare const Helper: (userInfo: any) => {
22
22
  dataSignInUrlEncodedWithGoogle: (values: LoginWithGoogleInterface, programId: string) => string;
23
23
  dataTokenUrlEncoded: (values: LimitedTokenInterface) => {
24
24
  installation_id: string;
25
- generate_jwt: boolean;
26
25
  };
27
26
  };
28
27
  };
@@ -244,8 +244,8 @@ const Helper = (userInfo) => {
244
244
  const dataTokenUrlEncoded = (values) => {
245
245
  const data = {
246
246
  installation_id: values.installationId,
247
- generate_jwt: true,
248
247
  };
248
+ console.log("🚀 ~ dataTokenUrlEncoded ~ data:", data);
249
249
  return data;
250
250
  };
251
251
  return {
@@ -1,6 +1,6 @@
1
1
  import { DoTransactionInterface, GetTransactionInterface, GetAccountLimit } from "../interfaces/accountInterface";
2
2
  import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
3
- export declare const useAccount: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates: IGeoCoordinates, lang?: string) => {
3
+ export declare const useAccount: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates?: IGeoCoordinates, lang?: string) => {
4
4
  GetTransactionByUserId: (values: GetTransactionInterface) => Promise<{
5
5
  response: import("axios").AxiosResponse<any, any>;
6
6
  newUser: any;
@@ -1,6 +1,6 @@
1
1
  import { CreateAddressInterface, DeleteUserAddressInterface, MakeAddressPrimaryInterface, UpdateAddressInterface } from "../interfaces/bankingSystemInterface";
2
2
  import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
3
- export declare const useAddresses: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates: IGeoCoordinates, lang?: string) => {
3
+ export declare const useAddresses: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates?: IGeoCoordinates, lang?: string) => {
4
4
  CreateAddress: (values: CreateAddressInterface) => Promise<{
5
5
  response: import("axios").AxiosResponse<any, any>;
6
6
  newUser: any;
@@ -1,6 +1,6 @@
1
1
  import { CreateBankAccountInterFace, UpdateBankAccountInterFace, DeleteBankAccountInterFace, MakeBankAccountPrimaryInterFace } from "../interfaces/bankingSystemInterface";
2
2
  import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
3
- export declare const useBankAccount: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates: IGeoCoordinates, lang?: string) => {
3
+ export declare const useBankAccount: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates?: IGeoCoordinates, lang?: string) => {
4
4
  CreateBankAccount: (values: CreateBankAccountInterFace) => Promise<{
5
5
  response: import("axios").AxiosResponse<any, any>;
6
6
  newUser: any;
@@ -1,6 +1,6 @@
1
1
  import { CreateUserEmailInterface, DeleteUserEmailInterface, UpdateUserEmailInterface, ConfirmLimitedEmailInterface, MakePrimaryUserEmailInterface, VerifyLimitedEmailInterface } from "../interfaces/bankingSystemInterface";
2
2
  import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
3
- export declare const useEmail: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates: IGeoCoordinates, lang?: string) => {
3
+ export declare const useEmail: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates?: IGeoCoordinates, lang?: string) => {
4
4
  CreateUserEmail: (values: CreateUserEmailInterface) => Promise<{
5
5
  response: import("axios").AxiosResponse<any, any>;
6
6
  newUser: any;
@@ -1,6 +1,6 @@
1
1
  import { CreateIdentificationInterface, DeleteIdentificationInterface, UpdateIdentificationInterface } from "../interfaces/bankingSystemInterface";
2
2
  import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
3
- export declare const useIdentification: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates: IGeoCoordinates, lang?: string) => {
3
+ export declare const useIdentification: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates?: IGeoCoordinates, lang?: string) => {
4
4
  CreateIdentification: (values: CreateIdentificationInterface) => Promise<{
5
5
  response: import("axios").AxiosResponse<any, any>;
6
6
  newUser: any;
@@ -1,6 +1,6 @@
1
1
  import { CreateDocumentOrganizationInterface, CreateOrganizationInterface, UpdateOrganizationInterface } from "../interfaces/organizationInterface";
2
2
  import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
3
- export declare const useOrganization: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates: IGeoCoordinates, lang?: string) => {
3
+ export declare const useOrganization: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates?: IGeoCoordinates, lang?: string) => {
4
4
  CreateOrganization: (values: CreateOrganizationInterface) => Promise<{
5
5
  response: any;
6
6
  newUser: any;
@@ -1,6 +1,6 @@
1
1
  import { UpdatePersonalInfoInterface, UpdateProfilePictureInterface } from "../interfaces/bankingSystemInterface";
2
2
  import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
3
- export declare const usePersonalInfo: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates: IGeoCoordinates, lang?: string) => {
3
+ export declare const usePersonalInfo: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates?: IGeoCoordinates, lang?: string) => {
4
4
  UpdatePersonalInfo: (values: UpdatePersonalInfoInterface) => Promise<{
5
5
  response: import("axios").AxiosResponse<any, any>;
6
6
  newUser: any;
@@ -1,6 +1,6 @@
1
1
  import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
2
2
  import { ConfirmLimitedPhoneInterface, CreateUserPhoneInterface, DeleteUserPhoneInterface, MakeUserPhonePrimaryInterface, UpdateUserPhoneInterface, VerifyLimitedPhoneInterface } from "../interfaces/bankingSystemInterface";
3
- export declare const usePhone: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates: IGeoCoordinates, lang?: string) => {
3
+ export declare const usePhone: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates?: IGeoCoordinates, lang?: string) => {
4
4
  CreateUserPhone: (values: CreateUserPhoneInterface) => Promise<{
5
5
  response: import("axios").AxiosResponse<any, any>;
6
6
  newUser: any;
@@ -1,6 +1,6 @@
1
1
  import { ChangeUserSecurityCodeInterface, ResetPasswordInterface, ResetSecurityQuestionsInterface, UpdateUserPreferencesInterface, ValidateSecurityCodeInterface, ActivateGoogleAuthInterface, DeleteGoogleAuthInterface } from "../interfaces/bankingSystemInterface";
2
2
  import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
3
- export declare const useSecurity: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates: IGeoCoordinates, lang?: string) => {
3
+ export declare const useSecurity: (token: string, userInfo: UserInfo, userId: string, baseUrl: string, geoCoordinates?: IGeoCoordinates, lang?: string) => {
4
4
  ResetPassword: (values: ResetPasswordInterface) => Promise<{
5
5
  response: import("axios").AxiosResponse<any, any>;
6
6
  newUser: any;
@@ -31,7 +31,9 @@ const useToken = (userInfo, nodeUrl, programId, lang, geoCoordinates) => {
31
31
  };
32
32
  const CreateLimitedToken = (values) => __awaiter(void 0, void 0, void 0, function* () {
33
33
  var _a, _b, _c, _d;
34
+ console.log("🚀 ~ CreateLimitedToken ~ values:", values);
34
35
  let data = dataTokenUrlEncoded(Object.assign(Object.assign({}, values), { geoCoordinates: geoCoordinates }));
36
+ console.log("🚀 ~ CreateLimitedToken ~ data:", data);
35
37
  try {
36
38
  const response = yield restApi_1.default.restApi(nodeUrl, "POST", "v1/limited-token", headerConfigToken(), data);
37
39
  if ((_a = response.data) === null || _a === void 0 ? void 0 : _a.access_token) {
@@ -1,7 +1,7 @@
1
1
  import { ValidateLimitedPhoneInterface, VerifyLimitedEmailInterface, VerifyLimitedPhoneInterface, ConfirmLimitedEmailInterface, ConfirmLimitedPhoneInterface, IsEmailPresentAndValidInterface, IsPhonePresentAndValidInterface, SendOTPPhoneInterface, SendOTPEmailInterface, ForgetPasswordValidateInterface, ForgetPasswordConfirmInterface } from "../interfaces/bankingSystemInterface";
2
2
  import { LimitedTokenInterface } from "../interfaces/signInterface";
3
3
  import { IGeoCoordinates, UserInfo } from "../interfaces/interface";
4
- export declare const useVerifyAndConfirm: (userInfo: UserInfo, tokenData: LimitedTokenInterface, baseUrl: string, nodeUrl: string, programId: string, geoCoordinates: IGeoCoordinates, token?: string, userId?: string, lang?: string) => {
4
+ export declare const useVerifyAndConfirm: (userInfo: UserInfo, tokenData: LimitedTokenInterface, baseUrl: string, nodeUrl: string, programId: string, geoCoordinates?: IGeoCoordinates, token?: string, userId?: string, lang?: string) => {
5
5
  ValidateLimitedPhone: (values: ValidateLimitedPhoneInterface) => Promise<{
6
6
  response: import("axios").AxiosResponse<any, any>;
7
7
  newUser: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
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",