Comparing version 3.1.0 to 3.1.1
# Changelog | ||
## 3.1.1 | ||
* small naming update for data removal endpoints | ||
## 3.1.0 | ||
@@ -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, CreateDataRemovalRequest, DataRemovalStatus } from "./models"; | ||
import { CreateDomainRequest, CreateServerRequest, CreateSignatureRequest, DomainDetails, Domains, Server, ServerFilteringParameters, Servers, SignatureDetails, Signatures, TemplatesPush, TemplatesPushRequest, UpdateDomainRequest, UpdateServerRequest, UpdateSignatureRequest, DataRemovalRequest, DataRemovalStatus } from "./models"; | ||
export default class AccountClient extends BaseClient { | ||
@@ -207,3 +207,3 @@ /** | ||
*/ | ||
createDataRemoval(options: CreateDataRemovalRequest, callback?: Callback<DataRemovalStatus>): Promise<DataRemovalStatus>; | ||
requestDataRemoval(options: DataRemovalRequest, callback?: Callback<DataRemovalStatus>): Promise<DataRemovalStatus>; | ||
/** | ||
@@ -216,3 +216,3 @@ * Retrieve a single data removal status by ID. | ||
*/ | ||
getDataRemoval(id: number, callback?: Callback<DataRemovalStatus>): Promise<DataRemovalStatus>; | ||
getDataRemovalStatus(id: number, callback?: Callback<DataRemovalStatus>): Promise<DataRemovalStatus>; | ||
} |
@@ -279,3 +279,3 @@ "use strict"; | ||
*/ | ||
AccountClient.prototype.createDataRemoval = function (options, callback) { | ||
AccountClient.prototype.requestDataRemoval = function (options, callback) { | ||
return this.processRequestWithBody(models_1.ClientOptions.HttpMethod.POST, "/data-removals", options, callback); | ||
@@ -290,3 +290,3 @@ }; | ||
*/ | ||
AccountClient.prototype.getDataRemoval = function (id, callback) { | ||
AccountClient.prototype.getDataRemovalStatus = function (id, callback) { | ||
return this.processRequestWithoutBody(models_1.ClientOptions.HttpMethod.GET, "/data-removals/".concat(id), {}, callback); | ||
@@ -293,0 +293,0 @@ }; |
@@ -9,3 +9,3 @@ export declare enum DataRemovalStatusTypes { | ||
} | ||
export declare class CreateDataRemovalRequest { | ||
export declare class DataRemovalRequest { | ||
RequestedBy: string; | ||
@@ -12,0 +12,0 @@ RequestedFor: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CreateDataRemovalRequest = exports.DataRemovalStatusTypes = void 0; | ||
exports.DataRemovalRequest = exports.DataRemovalStatusTypes = void 0; | ||
var DataRemovalStatusTypes; | ||
@@ -9,4 +9,4 @@ (function (DataRemovalStatusTypes) { | ||
})(DataRemovalStatusTypes = exports.DataRemovalStatusTypes || (exports.DataRemovalStatusTypes = {})); | ||
var CreateDataRemovalRequest = /** @class */ (function () { | ||
function CreateDataRemovalRequest(requestedBy, requestedFor, notifyWhenCompleted) { | ||
var DataRemovalRequest = /** @class */ (function () { | ||
function DataRemovalRequest(requestedBy, requestedFor, notifyWhenCompleted) { | ||
this.RequestedBy = requestedBy; | ||
@@ -16,5 +16,5 @@ this.RequestedFor = requestedFor; | ||
} | ||
return CreateDataRemovalRequest; | ||
return DataRemovalRequest; | ||
}()); | ||
exports.CreateDataRemovalRequest = CreateDataRemovalRequest; | ||
exports.DataRemovalRequest = DataRemovalRequest; | ||
//# sourceMappingURL=DataRemovals.js.map |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"author": "Igor Balos", | ||
@@ -15,0 +15,0 @@ "contributors": [ |
@@ -16,3 +16,3 @@ import {expect} from "chai"; | ||
it("createDataRemoval", async () => { | ||
const dataRemovalStatus:DataRemovalStatus = await client.createDataRemoval({ | ||
const dataRemovalStatus:DataRemovalStatus = await client.requestDataRemoval({ | ||
RequestedBy: fromAddress.toString(), | ||
@@ -27,3 +27,3 @@ RequestedFor: 'test@example.com', | ||
it("getDataRemoval", async () => { | ||
let dataRemovalStatus: DataRemovalStatus = await client.createDataRemoval({ | ||
let dataRemovalStatus: DataRemovalStatus = await client.requestDataRemoval({ | ||
RequestedBy: fromAddress.toString(), | ||
@@ -34,5 +34,5 @@ RequestedFor: 'test@example.com', | ||
const dataRemovalStatusId:number = dataRemovalStatus.ID; | ||
dataRemovalStatus = await client.getDataRemoval(dataRemovalStatusId); | ||
dataRemovalStatus = await client.getDataRemovalStatus(dataRemovalStatusId); | ||
expect(dataRemovalStatus.ID).to.eq(dataRemovalStatusId) | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
323294
225854
0