@arrowsphere/api-client 3.50.0-rc.bdj.3 → 3.50.0-rc.bdj.4
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.
|
@@ -84,6 +84,6 @@ export declare class CustomersClient extends AbstractRestfulClient {
|
|
|
84
84
|
getCustomerContact(customerReference: string, contactReference: string, parameters?: Parameters): Promise<GetResult<CustomerContact>>;
|
|
85
85
|
deleteCustomerContact(customerReference: string, contactReference: string, parameters?: Parameters): Promise<void>;
|
|
86
86
|
patchCustomerContact(customerReference: string, contactReference: string, payload: PatchCustomerContactPayload, parameters?: Parameters): Promise<GetResult<CustomerContact>>;
|
|
87
|
-
createCustomer(payload: PostCustomerPayload, parameters?: Parameters): Promise<APIResponseResourceCreated | APIResponseError>;
|
|
88
|
-
updateCustomer(customerReference: string, payload: Partial<PostCustomerPayload>, parameters?: Parameters): Promise<APIResponseCustomerUpdated | APIResponseError>;
|
|
87
|
+
createCustomer(payload: PostCustomerPayload, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseResourceCreated | APIResponseError>;
|
|
88
|
+
updateCustomer(customerReference: string, payload: Partial<PostCustomerPayload>, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseCustomerUpdated | APIResponseError>;
|
|
89
89
|
}
|
|
@@ -61,13 +61,13 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
61
61
|
this.path = `/${customerReference}/contacts/${contactReference}`;
|
|
62
62
|
return new getResult_1.GetResult(customerContact_1.CustomerContact, await this.patch(payload, parameters));
|
|
63
63
|
}
|
|
64
|
-
async createCustomer(payload, parameters = {}) {
|
|
64
|
+
async createCustomer(payload, parameters = {}, returnAxiosData = false) {
|
|
65
65
|
this.path = '';
|
|
66
|
-
return await this.post(payload, parameters, {}, { returnAxiosData
|
|
66
|
+
return await this.post(payload, parameters, {}, { returnAxiosData });
|
|
67
67
|
}
|
|
68
|
-
async updateCustomer(customerReference, payload, parameters = {}) {
|
|
68
|
+
async updateCustomer(customerReference, payload, parameters = {}, returnAxiosData = false) {
|
|
69
69
|
this.path = `/${customerReference}`;
|
|
70
|
-
return await this.patch(payload, parameters, {}, { returnAxiosData
|
|
70
|
+
return await this.patch(payload, parameters, {}, { returnAxiosData });
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
exports.CustomersClient = CustomersClient;
|
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.50.0-rc.bdj.
|
|
7
|
+
"version": "3.50.0-rc.bdj.4",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|