Comparing version 3.0.20 to 3.1.0
# Changelog | ||
## 3.1.0 | ||
* added data removal endpoints | ||
## 3.0.20 | ||
@@ -4,0 +8,0 @@ |
import BaseClient from "./BaseClient"; | ||
import { Callback, ClientOptions, DefaultResponse, FilteringParameters } from "./models"; | ||
import { CreateDomainRequest, CreateServerRequest, CreateSignatureRequest, DomainDetails, Domains, Server, ServerFilteringParameters, Servers, SignatureDetails, Signatures, TemplatesPush, TemplatesPushRequest, UpdateDomainRequest, UpdateServerRequest, UpdateSignatureRequest } from "./models"; | ||
import { CreateDomainRequest, CreateServerRequest, CreateSignatureRequest, DomainDetails, Domains, Server, ServerFilteringParameters, Servers, SignatureDetails, Signatures, TemplatesPush, TemplatesPushRequest, UpdateDomainRequest, UpdateServerRequest, UpdateSignatureRequest, CreateDataRemovalRequest, DataRemovalStatus } from "./models"; | ||
export default class AccountClient extends BaseClient { | ||
@@ -200,2 +200,18 @@ /** | ||
pushTemplates(options: TemplatesPushRequest, callback?: Callback<TemplatesPush>): Promise<TemplatesPush>; | ||
/** | ||
* Request a data removal. | ||
* | ||
* @param options - details for creating data removal request | ||
* @param callback - If the callback is provided, it will be passed to the resulting promise as a continuation. | ||
* @returns A promise that will complete when the API responds (or an error occurs). | ||
*/ | ||
createDataRemoval(options: CreateDataRemovalRequest, callback?: Callback<DataRemovalStatus>): Promise<DataRemovalStatus>; | ||
/** | ||
* Retrieve a single data removal status by ID. | ||
* | ||
* @param id - The ID of the DataRemoval for which you wish to retrieve details. | ||
* @param callback - If the callback is provided, it will be passed to the resulting promise as a continuation. | ||
* @returns A promise that will complete when the API responds (or an error occurs). | ||
*/ | ||
getDataRemoval(id: number, callback?: Callback<DataRemovalStatus>): Promise<DataRemovalStatus>; | ||
} |
@@ -272,2 +272,22 @@ "use strict"; | ||
}; | ||
/** | ||
* Request a data removal. | ||
* | ||
* @param options - details for creating data removal request | ||
* @param callback - If the callback is provided, it will be passed to the resulting promise as a continuation. | ||
* @returns A promise that will complete when the API responds (or an error occurs). | ||
*/ | ||
AccountClient.prototype.createDataRemoval = function (options, callback) { | ||
return this.processRequestWithBody(models_1.ClientOptions.HttpMethod.POST, "/data-removals", options, callback); | ||
}; | ||
/** | ||
* Retrieve a single data removal status by ID. | ||
* | ||
* @param id - The ID of the DataRemoval for which you wish to retrieve details. | ||
* @param callback - If the callback is provided, it will be passed to the resulting promise as a continuation. | ||
* @returns A promise that will complete when the API responds (or an error occurs). | ||
*/ | ||
AccountClient.prototype.getDataRemoval = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.GET, "/data-removals/".concat(id), {}, callback); | ||
}; | ||
return AccountClient; | ||
@@ -274,0 +294,0 @@ }(BaseClient_1.default)); |
@@ -38,1 +38,2 @@ export * from "./client/ClientOptions"; | ||
export * from "./streams/MessageStreamsFilteringParameters"; | ||
export * from "./data_removal/DataRemovals"; |
@@ -50,2 +50,3 @@ "use strict"; | ||
__exportStar(require("./streams/MessageStreamsFilteringParameters"), exports); | ||
__exportStar(require("./data_removal/DataRemovals"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "3.0.20", | ||
"version": "3.1.0", | ||
"author": "Igor Balos", | ||
@@ -15,0 +15,0 @@ "contributors": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
323265
171
5628
1