Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postmark

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postmark - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

4

CHANGELOG.md
# Changelog
## 3.1.1
* small naming update for data removal endpoints
## 3.1.0

@@ -4,0 +8,0 @@

6

dist/client/AccountClient.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc