unisender-api
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -13,3 +13,4 @@ import { CreateListOptions, ResultResponse, List, EmptyObject } from './interfaces/types'; | ||
updateList(id: number, title: string, options?: CreateListOptions): Promise<ResultResponse<EmptyObject>>; | ||
deleteList(id: number): Promise<ResultResponse<EmptyObject>>; | ||
} | ||
export default Unisender; |
@@ -131,2 +131,19 @@ "use strict"; | ||
}; | ||
Unisender.prototype.deleteList = function (id) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var params, paramsString, request; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
params = []; | ||
params.push({ list_id: id }); | ||
paramsString = this.parameterСollection(params); | ||
return [4, this.sendRequest(methods_1.methods.contactLists.deleteList, paramsString)]; | ||
case 1: | ||
request = _a.sent(); | ||
return [2, request]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return Unisender; | ||
@@ -133,0 +150,0 @@ }()); |
{ | ||
"author": "Andrey Chmerev <andrey@chmerev.com> (https://github.com/chmerev/)", | ||
"name": "unisender-api", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Package for working with the unisender.com API for sending emails.", | ||
"main": "index.js", | ||
"main": "./lib/index.js", | ||
"scripts": { | ||
@@ -25,3 +25,7 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"typings": ".lib/index.d.ts" | ||
"typings": ".lib/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/chmerev/unisender-api.git" | ||
} | ||
} |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
0
34744
14
320