npm mailgun.js 9.0.0
v9.0.0

latest releases: 10.2.3, 10.2.2, 10.2.1...
17 months ago

What's Changed

This release brings a lot of changes in interfaces and types in addition it adds named exports for them. (see readme for examples).
In addition to that it reorganizes the structure of folders which may influent your import statements if they include paths to internal folders.

Changes are listed below:

Added new Interfaces:
IDomainCredentials
IDomainTagStatisticResult
IDomainTagsClient
IDomainTemplate
IDomainTemplatesClient
IMailgunClient
IMailListsMembers
IBounce
IComplaint
IUnsubscribe
IWhiteList
IMultipleValidationClient
IValidateClient
ILogger
IStatsClient
IStatsContainer
IDomainsClient
IEventClient
IIPPoolsClient
IIPsClient
IMailingListsClient
IMessagesClient
IRoutesClient
ISuppressionClient
IWebHooksClient

The WebhookClient class was renamed to WebhooksClient
The IValidateClient interface was renamed to IValidationClient
The Client class was renamed to MailgunClient

The options interface was renamed to MailgunClientOptions and updated to be the Type

The next Interfaces changed to types and moved to Types/Domains/ folder:
DomainInfo
DomainShortData
DomainData
DomainListResponseData
MessageResponse
DestroyedDomainResponse
ConnectionSettingsResponse
UpdatedConnectionSettings
UpdatedConnectionSettingsRes
DKIMAuthorityInfo
UpdatedDKIMAuthority
UpdatedDKIMAuthorityResponse
DKIMSelectorInfo
UpdatedDKIMSelectorResponse
WebPrefixInfo
UpdatedWebPrefix
UpdatedWebPrefixResponse
ReplacementForPool

DomainCredentials
DomainCredentialsItem
DomainCredentialsResponseData
DomainCredentialsList
DomainCredentialsResult
CreatedUpdatedDomainCredentialsResponse
DeletedDomainCredentialsResponse
UpdateDomainCredentialsData

DomainTagsQuery
DomainTagsStatisticQuery
DomainTagsItemInfo
DomainTagsItem
DomainTagsResponseData
DomainTagsList
DomainTagsMessageRes
DomainTagAPIResponseStatsItem
DomainTagStatAPIResponse
DomainTagStatisticItem
DomainTagStatisticResult
DomainTagCountriesAPIResponse
DomainTagCountriesAggregation
DomainTagProvidersAPIResponse
DomainTagProvidersAggregation
DeviceStatistic
DevicesTypes
DomainTagDevicesAPIResponse
DomainTagDevicesAggregation

ShortTemplateVersion
TemplateVersion
DomainTemplate
DomainTemplate
CreateDomainTemplateAPIResponse
ListDomainTemplatesAPIResponse
ListDomainTemplatesResult
GetDomainTemplateAPIResponse
UpdateOrDeleteDomainTemplateAPIResponse
UpdateOrDeleteDomainTemplateResult
NotificationAPIResponse
NotificationResult
CreateDomainTemplateVersionAPIResponse
CreateDomainTemplateVersionResult
MutateDomainTemplateVersionAPIResponse
MutateDomainTemplateVersionResult
ListDomainTemplateVersionsAPIResponse
ListDomainTemplateVersionsResult

DomainTrackingData
DomainTrackingResponse
UpdatedOpenTracking
UpdateDomainTrackingResponse

The next Interfaces changed to types and moved to the Types/MailingLists/ folder:

MailListMember
CreateUpdateMailListMembers
DeletedMember
NewMultipleMembersResponse
MailListMembersResponse
MailListMembersResult

DestroyedList
StartValidationResult
ValidationResponse
ValidationApiResponse
ValidationResultData
ValidationResult
CancelValidationResult
MailingList
MailingList
MailingListResult
MailingListApiResponse

The next Interfaces changed to types and moved to the Types/Suppressions/ folder:
BounceData
ComplaintData
UnsubscribeData
WhiteListData

SuppressionList
SuppressionListResponse
SuppressionResponse
SuppressionDestroyResponse
SuppressionDestroyResult
SuppressionCreationResponse
SuppressionCreationResult

The next Interfaces changed to types and moved to the Types/Validations/ folder:
ValidationResult
MultipleValidationJobData
MultipleValidationJobResult
ValidationResponse
CreatedMultipleValidationJob
MultipleValidationCreationData
MultipleValidationCreationDataUpdated
MultipleValidationJobsListResult
MultipleValidationJobsListQuery
MultipleValidationJobsListResponse
CanceledMultipleValidationJob

The next Interfaces changed to types and moved to the Types/Common/ folder:
APIResponse
FormDataOptions
InputFormData
APIErrorOptions

PagesList
ParsedPage
ParsedPagesList
PagesListAccumulator
ResponseWithPaging
QueryWithPage
UpdatedUrlAndQuery

OnCallEmptyHeaders
RequestOptions
OnCallRequestOptions

The next Interfaces changed to Types and moved to Types/Events/ folder:
EventsPage
FilterField
EventsQuery
EventsResponse
DomainEvent
EventsList

The next Interfaces changed to Types and moved to Types/IPPools/ folder:
IpPool
IpPoolListResponse
IpPoolListResult

The next Interfaces changed to Types and moved to Types/IPs/ folder:
IpsListResponseBody
IpData

The next Interfaces changed to Types and moved to Types/MailgunClient/ folder:
MailgunClientOptions

The next Interfaces changed to Types and moved to Types/Messages/ folder:
MessagesSendAPIResponse
MessagesSendResult

The next Interfaces changed to Types and moved to Types/Route/ folder:
Route
UpdateRouteResponse
DestroyRouteResponse

The next Interfaces changed to Types and moved to Types/Stats/ folder:
Stat
StatsOptions
StatsQuery
The next Interfaces changed to Types and moved to Types/Webhooks folder:

APIWebhook
WebhookResponseBody
WebhookResponse
WebhookList
ValidationResponse

Full Changelog: v8.2.2...v9.0.0

Don't miss a new mailgun.js release

NewReleases is sending notifications on new releases.