ggez-banking-sdk 0.1.153 → 0.1.154

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.
@@ -11,19 +11,13 @@ declare class OrganizationClient {
11
11
  message: string;
12
12
  error: any;
13
13
  }>;
14
- CreateOrganizationDocument: ({ id, data, }: {
15
- id: number;
16
- data: ICreateOrganizationDocumentData;
17
- }) => Promise<{
14
+ CreateOrganizationDocument: (data: ICreateOrganizationDocumentData) => Promise<{
18
15
  data: import("../../types").DocumentData;
19
16
  success: boolean;
20
17
  message: string;
21
18
  error: any;
22
19
  }>;
23
- UpdateOrganization: ({ id, data, }: {
24
- id: number;
25
- data: IUpdateOrganizationData;
26
- }) => Promise<{
20
+ UpdateOrganization: (data: IUpdateOrganizationData) => Promise<{
27
21
  data: import("../../types").OrganizationData;
28
22
  success: boolean;
29
23
  message: string;
@@ -27,10 +27,10 @@ class OrganizationClient {
27
27
  return ResponseHelper.GetErrorResponse(organization, "CreateOrganization");
28
28
  }
29
29
  };
30
- CreateOrganizationDocument = async ({ id, data, }) => {
30
+ CreateOrganizationDocument = async (data) => {
31
31
  try {
32
32
  const documentData = FillCreateOrganizationDocumentData(data);
33
- const response = await this.organizationService.createDocument(id, documentData);
33
+ const response = await this.organizationService.createDocument(data.id, documentData);
34
34
  return ResponseHelper.GetResponse(response.data);
35
35
  }
36
36
  catch (error) {
@@ -41,10 +41,10 @@ class OrganizationClient {
41
41
  };
42
42
  // #endregion
43
43
  // #region "PUT"
44
- UpdateOrganization = async ({ id, data, }) => {
44
+ UpdateOrganization = async (data) => {
45
45
  try {
46
46
  const organizationData = FillUpdateOrganizationData(data, this.userId);
47
- const response = await this.organizationService.update(id, organizationData);
47
+ const response = await this.organizationService.update(data.id, organizationData);
48
48
  return ResponseHelper.GetResponse(response.data);
49
49
  }
50
50
  catch (error) {
@@ -15,6 +15,7 @@ interface ICreateOrganizationData {
15
15
  cityTown: string;
16
16
  }
17
17
  interface IUpdateOrganizationData {
18
+ id: number;
18
19
  name: string;
19
20
  localName: string;
20
21
  organizationType: number;
@@ -32,6 +33,7 @@ interface IUpdateOrganizationData {
32
33
  cityTown: string;
33
34
  }
34
35
  interface ICreateOrganizationDocumentData {
36
+ id: number;
35
37
  subject: string;
36
38
  attachment: Attachment[];
37
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.1.153",
3
+ "version": "0.1.154",
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",