mailgun.js
Advanced tools
Comparing version 5.1.0 to 5.2.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [5.2.0](https://github.com/mailgun/mailgun.js/compare/v5.1.0...v5.2.0) (2022-04-11) | ||
### Features | ||
* Add validation methods to mailing list client ([224790c](https://github.com/mailgun/mailgun.js/commits/224790c4c20466a2203856d703b51e7d4a03a195)) | ||
## [5.1.0](https://github.com/mailgun/mailgun.js/compare/v5.0.5...v5.1.0) (2022-04-08) | ||
@@ -7,0 +14,0 @@ |
@@ -17,2 +17,46 @@ export interface ListsQuery { | ||
} | ||
export interface StartValidationResult { | ||
status: number; | ||
id: string; | ||
message: string; | ||
} | ||
export interface ValidationResponse { | ||
status: string; | ||
download_url: { | ||
csv: string; | ||
json: string; | ||
}; | ||
id: string; | ||
quantity: number; | ||
records_processed: number; | ||
summary: { | ||
result: { | ||
catch_all: number; | ||
deliverable: number; | ||
do_not_send: number; | ||
undeliverable: number; | ||
unknown: number; | ||
}; | ||
risk: { | ||
high: number; | ||
low: number; | ||
medium: number; | ||
unknown: number; | ||
}; | ||
}; | ||
} | ||
export interface ValidationApiResponse extends ValidationResponse { | ||
created_at: number; | ||
} | ||
export interface ValidationResultData extends ValidationResponse { | ||
created_at: Date; | ||
} | ||
export interface ValidationResult { | ||
status: number; | ||
validationResult: ValidationResultData; | ||
} | ||
export interface CancelValidationResult { | ||
status: number; | ||
message: string; | ||
} | ||
export interface MailingList { | ||
@@ -19,0 +63,0 @@ access_level: string; |
import Request from './request'; | ||
import { ListsQuery, CreateUpdateList, DestroyedList, MailingList } from './interfaces/lists'; | ||
import { ListsQuery, CreateUpdateList, DestroyedList, MailingList, StartValidationResult, ValidationResult, CancelValidationResult } from './interfaces/lists'; | ||
import { IMailListsMembers } from './interfaces/mailListMembers'; | ||
@@ -9,2 +9,3 @@ export default class ListsClient { | ||
constructor(request: Request, members: IMailListsMembers); | ||
private parseValidationResult; | ||
list(query?: ListsQuery): Promise<MailingList[]>; | ||
@@ -15,2 +16,5 @@ get(mailListAddress: string): Promise<MailingList>; | ||
destroy(mailListAddress: string): Promise<DestroyedList>; | ||
validate(mailListAddress: string): Promise<StartValidationResult>; | ||
validationResult(mailListAddress: string): Promise<ValidationResult>; | ||
cancelValidation(mailListAddress: string): Promise<CancelValidationResult>; | ||
} |
@@ -5,2 +5,2 @@ /*! MIT License © Sindre Sorhus */ | ||
/*! mailgun.js v5.0.5 */ | ||
/*! mailgun.js v5.1.0 */ |
@@ -5,2 +5,2 @@ /*! MIT License © Sindre Sorhus */ | ||
/*! mailgun.js v5.0.5 */ | ||
/*! mailgun.js v5.1.0 */ |
{ | ||
"name": "mailgun.js", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"main": "./mailgun.node.js", | ||
@@ -5,0 +5,0 @@ "browser": "./mailgun.web.js", |
@@ -1,1 +0,1 @@ | ||
5.1.0 | ||
5.2.0 |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1138984
2464