@arrowsphere/api-client 3.174.0 → 3.175.0-rc-bdj-2
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.
|
@@ -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>;
|
|
@@ -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);
|
|
@@ -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
|
+
orderCount?: CountableType;
|
|
44
|
+
organizationUnit?: OrganizationUnitsType;
|
|
42
45
|
partner?: PartnerType;
|
|
46
|
+
reportCount?: CountableType;
|
|
43
47
|
};
|
|
44
48
|
export declare type CompanyExtraInformation = {
|
|
45
49
|
id?: number;
|
package/package.json
CHANGED