mailgun.js 10.4.0 → 11.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  /*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */
2
2
 
3
- /*! mailgun.js v10.3.0 */
3
+ /*! mailgun.js v11.0.0 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailgun.js",
3
- "version": "10.4.0",
3
+ "version": "11.1.0",
4
4
  "main": "./mailgun.node.js",
5
5
  "browser": "./mailgun.web.js",
6
6
  "types": "./index.d.ts",
package/version.md CHANGED
@@ -1 +1 @@
1
- 10.4.0
1
+ 11.1.0
@@ -1,51 +0,0 @@
1
- import { IDomainTemplatesClient, IDomainTagsClient, IDomainCredentials, IDomainClient } from '../../Interfaces/Domains';
2
- import { APIResponse } from '../../Types/Common/ApiResponse';
3
- import Request from '../common/Request';
4
- import DomainCredentialsClient from './domainsCredentials';
5
- import DomainTemplatesClient from './domainsTemplates';
6
- import DomainTagsClient from './domainsTags';
7
- import { DNSRecord, DomainShortData, MessageResponse, DomainTrackingData, UpdatedOpenTracking, DomainsQuery, DomainInfo, ConnectionSettings, UpdatedConnectionSettings, OpenTrackingInfo, ClickTrackingInfo, UnsubscribeTrackingInfo, ReplacementForPool, DKIMAuthorityInfo, UpdatedDKIMAuthority, DKIMSelectorInfo, UpdatedDKIMSelectorResponse, WebPrefixInfo, UpdatedWebPrefixResponse } from '../../Types/Domains';
8
- export declare class Domain {
9
- name: string;
10
- require_tls: boolean;
11
- skip_verification: boolean;
12
- state: string;
13
- wildcard: boolean;
14
- spam_action: string;
15
- created_at: string;
16
- smtp_password: string;
17
- smtp_login: string;
18
- type: string;
19
- receiving_dns_records: DNSRecord[] | null;
20
- sending_dns_records: DNSRecord[] | null;
21
- constructor(data: DomainShortData, receiving?: DNSRecord[] | null, sending?: DNSRecord[] | null);
22
- }
23
- export default class DomainClient implements IDomainClient {
24
- request: Request;
25
- domainCredentials: IDomainCredentials;
26
- domainTemplates: IDomainTemplatesClient;
27
- domainTags: IDomainTagsClient;
28
- constructor(request: Request, domainCredentialsClient: DomainCredentialsClient, domainTemplatesClient: DomainTemplatesClient, domainTagsClient: DomainTagsClient);
29
- private _parseMessage;
30
- private parseDomainList;
31
- private _parseDomain;
32
- private _parseTrackingSettings;
33
- private _parseTrackingUpdate;
34
- list(query?: DomainsQuery): Promise<Domain[]>;
35
- get(domain: string): Promise<Domain>;
36
- create(data: DomainInfo): Promise<Domain>;
37
- verify(domain: string): Promise<Domain>;
38
- destroy(domain: string): Promise<MessageResponse>;
39
- getConnection(domain: string): Promise<ConnectionSettings>;
40
- updateConnection(domain: string, data: ConnectionSettings): Promise<UpdatedConnectionSettings>;
41
- getTracking(domain: string): Promise<DomainTrackingData>;
42
- updateTracking(domain: string, type: string, data: OpenTrackingInfo | ClickTrackingInfo | UnsubscribeTrackingInfo): Promise<UpdatedOpenTracking>;
43
- getIps(domain: string): Promise<string[]>;
44
- assignIp(domain: string, ip: string): Promise<APIResponse>;
45
- deleteIp(domain: string, ip: string): Promise<APIResponse>;
46
- linkIpPool(domain: string, pool_id: string): Promise<APIResponse>;
47
- unlinkIpPoll(domain: string, replacement: ReplacementForPool): Promise<APIResponse>;
48
- updateDKIMAuthority(domain: string, data: DKIMAuthorityInfo): Promise<UpdatedDKIMAuthority>;
49
- updateDKIMSelector(domain: string, data: DKIMSelectorInfo): Promise<UpdatedDKIMSelectorResponse>;
50
- updateWebPrefix(domain: string, data: WebPrefixInfo): Promise<UpdatedWebPrefixResponse>;
51
- }
@@ -1,18 +0,0 @@
1
- import { IInboxPlacementsAttributesClient, IInboxPlacementsFiltersClient, IInboxPlacementsResultsClient, ILogger } from '../../../Interfaces';
2
- import { InboxPlacementsDestroyResult, InboxPlacementsResultWithStatus, InboxPlacementsResultsList, InboxPlacementsResultsListAPIResponse, InboxPlacementsResultsQuery } from '../../../Types/InboxPlacements';
3
- import NavigationThruPages from '../../common/NavigationThruPages';
4
- import Request from '../../common/Request';
5
- export default class InboxPlacementsResultsClient extends NavigationThruPages<InboxPlacementsResultsList> implements IInboxPlacementsResultsClient {
6
- request: Request;
7
- attributes: IInboxPlacementsAttributesClient;
8
- filters: IInboxPlacementsFiltersClient;
9
- private logger;
10
- constructor(request: Request, attributes: IInboxPlacementsAttributesClient, filters: IInboxPlacementsFiltersClient, logger?: ILogger);
11
- private convertDateToUTC;
12
- private prepareQueryData;
13
- private prepareInboxPlacementsResult;
14
- protected parseList(response: InboxPlacementsResultsListAPIResponse): InboxPlacementsResultsList;
15
- list(query: InboxPlacementsResultsQuery): Promise<InboxPlacementsResultsList>;
16
- get(id: string): Promise<InboxPlacementsResultWithStatus>;
17
- destroy(id: string): Promise<InboxPlacementsDestroyResult>;
18
- }
@@ -1,10 +0,0 @@
1
- import {
2
- IPRSharingResult,
3
- IPRSharingUpdateData,
4
- IPRSharingUpdateResult
5
- } from '../../../Types/InboxPlacements';
6
-
7
- export interface IIPRSharingClient {
8
- get(id: string): Promise<IPRSharingResult>;
9
- update(id: string, data: IPRSharingUpdateData): Promise<IPRSharingUpdateResult>;
10
- }
@@ -1,10 +0,0 @@
1
- import { IInboxPlacementsAttributesClient } from '../../../Interfaces';
2
- import { InboxPlacementsAttributesResult, InboxPlacementsValuesResult } from '../../../Types/InboxPlacements';
3
- import Request from '../../common/Request';
4
- export default class InboxPlacementsAttributesClient implements IInboxPlacementsAttributesClient {
5
- request: Request;
6
- path: string;
7
- constructor(request: Request, path: string);
8
- list(): Promise<InboxPlacementsAttributesResult>;
9
- get(attributeName: string): Promise<InboxPlacementsValuesResult>;
10
- }
@@ -1,8 +0,0 @@
1
- import { SeedsListsFiltersResult } from '../../../Types/InboxPlacements';
2
- import Request from '../../common/Request';
3
- import { ISeedsListsFiltersClient } from '../../../Interfaces';
4
- export default class SeedsListsFiltersClient implements ISeedsListsFiltersClient {
5
- request: Request;
6
- constructor(request: Request);
7
- list(): Promise<SeedsListsFiltersResult>;
8
- }