ggez-banking-sdk 0.1.111 → 0.1.113

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.
@@ -3,11 +3,11 @@ declare class TransactionClient {
3
3
  private readonly clientData;
4
4
  private transactionService;
5
5
  constructor(clientData: TransactionClientData);
6
- InquiryTransaction: (params: IInquiryTransactionData) => Promise<import("../../types").TransactionResultInquiry | {
6
+ InquiryTransaction: (params: IInquiryTransactionData) => Promise<{
7
7
  data: import("../../types").TransactionResultInquiry;
8
8
  success: boolean;
9
9
  message: string;
10
- error: string;
10
+ error: any;
11
11
  }>;
12
12
  CreateTransaction: (data: ICreateTransactionData) => Promise<{
13
13
  data: import("../../types").TransactionData;
@@ -15,7 +15,7 @@ class TransactionClient {
15
15
  try {
16
16
  const transactionInquiryData = FillTransactionInquiryData(params);
17
17
  const response = await this.transactionService.inquiry(transactionInquiryData);
18
- return response.data;
18
+ return ResponseHelper.GetResponse(response.data);
19
19
  }
20
20
  catch (error) {
21
21
  const result = FillResultByError(error);
@@ -1,6 +1,6 @@
1
1
  import type { Authentication, LastActivity, Notes, Result } from "..";
2
2
  type BaseResult = {
3
- result: Result | null;
3
+ result: Result;
4
4
  notes: Notes | null;
5
5
  last_activity: LastActivity;
6
6
  authentication: Authentication[] | null;
@@ -1,7 +1,7 @@
1
1
  import type { IdentificationExtraData, Result } from "..";
2
2
  import { TicketData } from "../ticket";
3
3
  type Identification = {
4
- result: Result | null;
4
+ result: Result;
5
5
  id: number;
6
6
  type: number;
7
7
  country_of_issue: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.1.111",
3
+ "version": "0.1.113",
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",