mailgun.js
Advanced tools
Comparing version 9.1.2 to 9.2.0
@@ -5,2 +5,14 @@ # Changelog | ||
## [9.2.0](https://github.com/mailgun/mailgun.js/compare/v9.1.2...v9.2.0) (2023-07-07) | ||
### Features | ||
* Add skiped domain update method ([cef4e3b](https://github.com/mailgun/mailgun.js/commits/cef4e3ba97e0003f27a5ef9a5d905b942838cb9d)) | ||
### Other changes | ||
* Move type from class file ([24c6002](https://github.com/mailgun/mailgun.js/commits/24c6002b64e0377fef8cdaf49591f3fb925a5821)) | ||
### [9.1.2](https://github.com/mailgun/mailgun.js/compare/v9.1.1...v9.1.2) (2023-06-30) | ||
@@ -7,0 +19,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { DNSRecord, DomainShortData, TDomain } from '../../Types/Domains'; | ||
import { DNSRecord, DomainData, DomainShortData, TDomain } from '../../Types/Domains'; | ||
export default class Domain implements TDomain { | ||
@@ -15,3 +15,7 @@ name: string; | ||
sending_dns_records: DNSRecord[] | null; | ||
constructor(data: DomainShortData, receiving?: DNSRecord[] | null, sending?: DNSRecord[] | null); | ||
id?: string; | ||
is_disabled?: boolean; | ||
web_prefix?: string; | ||
web_scheme?: string; | ||
constructor(data: DomainShortData | DomainData, receiving?: DNSRecord[] | null, sending?: DNSRecord[] | null); | ||
} |
@@ -7,3 +7,3 @@ import { IDomainTemplatesClient, IDomainTagsClient, IDomainCredentials, IDomainsClient } from '../../Interfaces/Domains'; | ||
import DomainTagsClient from './domainsTags'; | ||
import { MessageResponse, DomainTrackingData, UpdatedOpenTracking, DomainsQuery, DomainInfo, ConnectionSettings, UpdatedConnectionSettings, OpenTrackingInfo, ClickTrackingInfo, UnsubscribeTrackingInfo, ReplacementForPool, DKIMAuthorityInfo, UpdatedDKIMAuthority, DKIMSelectorInfo, UpdatedDKIMSelectorResponse, WebPrefixInfo, UpdatedWebPrefixResponse, TDomain } from '../../Types/Domains'; | ||
import { MessageResponse, DomainTrackingData, UpdatedOpenTracking, DomainsQuery, DomainInfo, ConnectionSettings, UpdatedConnectionSettings, OpenTrackingInfo, ClickTrackingInfo, UnsubscribeTrackingInfo, ReplacementForPool, DKIMAuthorityInfo, UpdatedDKIMAuthority, DKIMSelectorInfo, UpdatedDKIMSelectorResponse, WebPrefixInfo, UpdatedWebPrefixResponse, TDomain, DomainUpdateInfo } from '../../Types/Domains'; | ||
export default class DomainsClient implements IDomainsClient { | ||
@@ -15,2 +15,3 @@ request: Request; | ||
constructor(request: Request, domainCredentialsClient: DomainCredentialsClient, domainTemplatesClient: DomainTemplatesClient, domainTagsClient: DomainTagsClient); | ||
private _handleBoolValues; | ||
private _parseMessage; | ||
@@ -24,2 +25,3 @@ private parseDomainList; | ||
create(data: DomainInfo): Promise<TDomain>; | ||
update(domain: string, data: DomainUpdateInfo): Promise<TDomain>; | ||
verify(domain: string): Promise<TDomain>; | ||
@@ -26,0 +28,0 @@ destroy(domain: string): Promise<MessageResponse>; |
import { APIResponse } from '../../Types/Common'; | ||
import { ClickTrackingInfo, ConnectionSettings, DKIMAuthorityInfo, DKIMSelectorInfo, DomainInfo, DomainsQuery, DomainTrackingData, MessageResponse, OpenTrackingInfo, ReplacementForPool, TDomain, UnsubscribeTrackingInfo, UpdatedConnectionSettings, UpdatedDKIMAuthority, UpdatedDKIMSelectorResponse, UpdatedOpenTracking, UpdatedWebPrefixResponse, WebPrefixInfo } from '../../Types/Domains'; | ||
import { ClickTrackingInfo, ConnectionSettings, DKIMAuthorityInfo, DKIMSelectorInfo, DomainInfo, DomainsQuery, DomainTrackingData, DomainUpdateInfo, MessageResponse, OpenTrackingInfo, ReplacementForPool, TDomain, UnsubscribeTrackingInfo, UpdatedConnectionSettings, UpdatedDKIMAuthority, UpdatedDKIMSelectorResponse, UpdatedOpenTracking, UpdatedWebPrefixResponse, WebPrefixInfo } from '../../Types/Domains'; | ||
import { IDomainCredentials } from './DomainCredentials'; | ||
@@ -13,2 +13,3 @@ import { IDomainTagsClient } from './DomainTags'; | ||
create(data: DomainInfo): Promise<TDomain>; | ||
update(domain: string, data: DomainUpdateInfo): Promise<TDomain>; | ||
verify(domain: string): Promise<TDomain>; | ||
@@ -15,0 +16,0 @@ destroy(domain: string): Promise<MessageResponse>; |
@@ -17,2 +17,2 @@ /*! | ||
/*! mailgun.js v9.1.1 */ | ||
/*! mailgun.js v9.1.2 */ |
/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */ | ||
/*! mailgun.js v9.1.1 */ | ||
/*! mailgun.js v9.1.2 */ |
{ | ||
"name": "mailgun.js", | ||
"version": "9.1.2", | ||
"version": "9.2.0", | ||
"main": "./mailgun.node.js", | ||
@@ -5,0 +5,0 @@ "browser": "./mailgun.web.js", |
@@ -7,7 +7,13 @@ export type DomainsQuery = { | ||
}; | ||
export type DomainInfo = { | ||
export type DomainUpdateInfo = { | ||
spam_action?: 'disabled' | 'block' | 'tag'; | ||
web_scheme?: 'http' | 'https'; | ||
wildcard?: boolean | 'true' | 'false'; | ||
}; | ||
export type DomainUpdateInfoReq = DomainUpdateInfo & { | ||
wildcard?: 'true' | 'false'; | ||
}; | ||
export type DomainInfo = DomainUpdateInfo & { | ||
name: string; | ||
smtp_password: string; | ||
spam_action?: 'disabled' | 'block' | 'tag'; | ||
wildcard?: boolean; | ||
force_dkim_authority?: boolean | 'true' | 'false'; | ||
@@ -17,4 +23,10 @@ dkim_key_size?: 1024 | 2048; | ||
pool_id?: ''; | ||
web_scheme: 'http' | 'https'; | ||
}; | ||
export type DomainInfoReq = DomainInfo & { | ||
force_dkim_authority?: 'true' | 'false'; | ||
}; | ||
export type BoolToString = { | ||
force_dkim_authority?: DomainInfo['force_dkim_authority']; | ||
wildcard?: DomainUpdateInfo['wildcard']; | ||
}; | ||
export type DomainShortData = { | ||
@@ -138,2 +150,6 @@ name: string; | ||
sending_dns_records: DNSRecord[] | null; | ||
id?: string; | ||
is_disabled?: boolean; | ||
web_prefix?: string; | ||
web_scheme?: string; | ||
}; |
@@ -1,1 +0,1 @@ | ||
9.1.2 | ||
9.2.0 |
Sorry, the diff of this file is too big to display
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
1578108
3937
2266