@arrowsphere/api-client 3.223.0-rc-cpe-2 → 3.223.0-rc-cpe-3
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.
|
@@ -193,12 +193,12 @@ export declare abstract class AbstractRestfulClient extends AbstractHttpClient {
|
|
|
193
193
|
/**
|
|
194
194
|
* Sends a DELETE request
|
|
195
195
|
* @param parameters - Query parameters to be sent in the request
|
|
196
|
-
* @param payload - Payload to be sent in the POST body
|
|
197
196
|
* @param headers - Headers to be sent in the request
|
|
198
197
|
* @param options - Options to send
|
|
198
|
+
* @param payload - Payload to be sent in the POST body
|
|
199
199
|
* @returns Promise\<T\>
|
|
200
200
|
*/
|
|
201
|
-
protected delete(parameters?: Parameters,
|
|
201
|
+
protected delete(parameters?: Parameters, headers?: Headers, options?: Options, payload?: Payload): Promise<void>;
|
|
202
202
|
/**
|
|
203
203
|
* Generates the full url for request
|
|
204
204
|
* @param parameters - Parameters to serialize
|
|
@@ -308,12 +308,12 @@ class AbstractRestfulClient extends AbstractHttpClient_1.AbstractHttpClient {
|
|
|
308
308
|
/**
|
|
309
309
|
* Sends a DELETE request
|
|
310
310
|
* @param parameters - Query parameters to be sent in the request
|
|
311
|
-
* @param payload - Payload to be sent in the POST body
|
|
312
311
|
* @param headers - Headers to be sent in the request
|
|
313
312
|
* @param options - Options to send
|
|
313
|
+
* @param payload - Payload to be sent in the POST body
|
|
314
314
|
* @returns Promise\<T\>
|
|
315
315
|
*/
|
|
316
|
-
async delete(parameters = {},
|
|
316
|
+
async delete(parameters = {}, headers = {}, options = {}, payload = {}) {
|
|
317
317
|
const url = this.generateUrl(parameters, options);
|
|
318
318
|
const config = {
|
|
319
319
|
data: payload,
|
|
@@ -328,6 +328,7 @@ class AbstractRestfulClient extends AbstractHttpClient_1.AbstractHttpClient {
|
|
|
328
328
|
const { mustRetry } = await this.handleError(error);
|
|
329
329
|
if (mustRetry) {
|
|
330
330
|
const config = {
|
|
331
|
+
data: payload,
|
|
331
332
|
headers: this.prepareHeaders(headers),
|
|
332
333
|
};
|
|
333
334
|
const response = await this.client.delete(url, config);
|
|
@@ -489,7 +489,7 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
489
489
|
}
|
|
490
490
|
async deleteScheduledTask(licenseReference, scheduledTaskId, parameters = {}, payload = {}) {
|
|
491
491
|
this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}/${scheduledTaskId}`;
|
|
492
|
-
return this.delete(parameters, payload);
|
|
492
|
+
return this.delete(parameters, {}, {}, payload);
|
|
493
493
|
}
|
|
494
494
|
async getLicenseDailyPredictions(licenseReference, parameters = {}) {
|
|
495
495
|
this.path = `/${licenseReference}/predictions/daily`;
|
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.223.0-rc-cpe-
|
|
7
|
+
"version": "3.223.0-rc-cpe-3",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|