@arrowsphere/api-client 3.176.0 → 3.177.0

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [3.177.0] - 2025.02.25
7
+
8
+ ### Addes
9
+ - [customers] add endpoint to delete customer
10
+ - [customers] add endpoint to reconciliate customers
11
+ - [graphql-api] add fields ordersCount, organizationUnit, reportsCount to EndCustomerType
12
+
6
13
  ## [3.176.0] - 2025.02.25
7
14
 
8
15
  ### Updated
@@ -121,6 +121,7 @@ export declare class CustomersClient extends AbstractRestfulClient {
121
121
  getCustomerContactList(customerReference: string, parameters?: Parameters): Promise<GetResult<CustomerContactList>>;
122
122
  postCustomerContact(customerReference: string, payload: PostCustomerContactPayload, parameters?: Parameters): Promise<GetResult<CustomerContact>>;
123
123
  getCustomerContact(customerReference: string, contactReference: string, parameters?: Parameters): Promise<GetResult<CustomerContact>>;
124
+ deleteCustomer(customerReference: string, parameters?: Parameters): Promise<void>;
124
125
  deleteCustomerContact(customerReference: string, contactReference: string, parameters?: Parameters): Promise<void>;
125
126
  patchCustomerContact(customerReference: string, contactReference: string, payload: PatchCustomerContactPayload, parameters?: Parameters): Promise<GetResult<CustomerContact>>;
126
127
  createCustomer(payload: PostCustomerPayload, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseResourceCreated | APIResponseError>;
@@ -128,4 +129,5 @@ export declare class CustomersClient extends AbstractRestfulClient {
128
129
  reactivateCustomer(customerRef: string, parameters?: Parameters): Promise<void>;
129
130
  postCustomerInvitation(payload: PostCustomerInvitation, parameters?: Parameters): Promise<GetResult<DataInvitation>>;
130
131
  postCustomerMigration(customerReference: string, payload: PostCustomerMigrationPayload, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseCustomerMigration | APIResponseError>;
132
+ postReconciliationCustomers(program: string, parameters?: Parameters): Promise<void>;
131
133
  }
@@ -74,6 +74,10 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
74
74
  this.path = `/${customerReference}/contacts/${contactReference}`;
75
75
  return new getResult_1.GetResult(customerContact_1.CustomerContact, await this.get(parameters));
76
76
  }
77
+ async deleteCustomer(customerReference, parameters = {}) {
78
+ this.path = `/${customerReference}`;
79
+ return await this.delete(parameters);
80
+ }
77
81
  async deleteCustomerContact(customerReference, contactReference, parameters = {}) {
78
82
  this.path = `/${customerReference}/contacts/${contactReference}`;
79
83
  return await this.delete(parameters);
@@ -102,6 +106,10 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
102
106
  this.path = `/${customerReference}/migration`;
103
107
  return await this.post(payload, parameters, {}, { returnAxiosData });
104
108
  }
109
+ async postReconciliationCustomers(program, parameters = {}) {
110
+ this.path = '/reconciliation';
111
+ await this.post({ program }, parameters);
112
+ }
105
113
  }
106
114
  exports.CustomersClient = CustomersClient;
107
115
  //# sourceMappingURL=customersClient.js.map
@@ -1,3 +1,4 @@
1
+ import { OrganizationUnitsType } from './organizationUnit';
1
2
  import { ContactsType } from './contact';
2
3
  import { CountableType } from './counting';
3
4
  import { CountryType } from './country';
@@ -39,7 +40,10 @@ declare type BaseCompanyType = {
39
40
  };
40
41
  export declare type EndCustomerType = BaseCompanyType & {
41
42
  country?: CountryType;
43
+ ordersCount?: number;
44
+ organizationUnit?: OrganizationUnitsType;
42
45
  partner?: PartnerType;
46
+ reportsCount?: number;
43
47
  };
44
48
  export declare type CompanyExtraInformation = {
45
49
  id?: number;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.176.0",
7
+ "version": "3.177.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",