mailgun.js 11.0.0 → 12.0.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.
- package/AMD/definitions.amd.js +48 -0
- package/AMD/mailgun.amd.js +2 -0
- package/CHANGELOG.md +39 -0
- package/CJS/definitions.cjs +46 -0
- package/CJS/mailgun.node.cjs +2 -0
- package/ESM/definitions.browser.js +44 -0
- package/ESM/definitions.node.js +44 -0
- package/ESM/mailgun.browser.js +2 -0
- package/ESM/mailgun.node.js +2 -0
- package/README.md +296 -148
- package/{Classes → Types/Classes}/Domains/domain.d.ts +1 -1
- package/{Classes → Types/Classes}/Domains/domainsClient.d.ts +15 -12
- package/{Classes → Types/Classes}/Domains/domainsCredentials.d.ts +3 -3
- package/{Classes → Types/Classes}/Domains/domainsTags.d.ts +5 -5
- package/{Classes → Types/Classes}/Domains/domainsTemplates.d.ts +4 -4
- package/Types/Classes/Domains/domainsTracking.d.ts +15 -0
- package/{Classes → Types/Classes}/Events.d.ts +4 -4
- package/{Classes → Types/Classes}/IPPools.d.ts +3 -3
- package/{Classes → Types/Classes}/IPs.d.ts +3 -3
- package/{Classes → Types/Classes}/InboxPlacements/AttributesClient.d.ts +3 -3
- package/{Classes → Types/Classes}/InboxPlacements/FiltersClient.d.ts +3 -3
- package/{Classes → Types/Classes}/InboxPlacements/Results/InboxPlacementsResultsClient.d.ts +4 -4
- package/{Classes → Types/Classes}/InboxPlacements/Results/InboxPlacementsResultsSharingClient.d.ts +3 -3
- package/{Classes → Types/Classes}/InboxPlacements/SeedsLists/SeedsListsClient.d.ts +4 -4
- package/{Classes → Types/Classes}/InboxPlacements/inboxPlacements.d.ts +3 -5
- package/{Classes → Types/Classes}/InboxPlacements/providers/InboxPlacementsProviders.d.ts +3 -3
- package/{Classes → Types/Classes}/MailgunClient.d.ts +4 -4
- package/{Classes → Types/Classes}/MailingLists/mailListMembers.d.ts +4 -4
- package/{Classes → Types/Classes}/MailingLists/mailingLists.d.ts +5 -5
- package/{Classes → Types/Classes}/Messages.d.ts +3 -3
- package/{Classes → Types/Classes}/Metrics/MetricsClient.d.ts +3 -4
- package/{Classes → Types/Classes}/Routes.d.ts +3 -3
- package/{Classes → Types/Classes}/Stats/StatsClient.d.ts +3 -4
- package/{Classes → Types/Classes}/Stats/StatsContainer.d.ts +2 -2
- package/{Classes → Types/Classes}/Subaccounts.d.ts +3 -3
- package/{Classes → Types/Classes}/Suppressions/Bounce.d.ts +3 -3
- package/Types/Classes/Suppressions/Complaint.d.ts +8 -0
- package/{Classes → Types/Classes}/Suppressions/Suppression.d.ts +1 -1
- package/{Classes → Types/Classes}/Suppressions/SuppressionsClient.d.ts +5 -5
- package/{Classes → Types/Classes}/Suppressions/Unsubscribe.d.ts +3 -3
- package/Types/Classes/Suppressions/WhiteList.d.ts +9 -0
- package/{Classes → Types/Classes}/Validations/multipleValidation.d.ts +4 -4
- package/{Classes → Types/Classes}/Validations/validate.d.ts +3 -3
- package/{Classes → Types/Classes}/Webhooks.d.ts +4 -4
- package/{Classes → Types/Classes}/common/AttachmentsHandler.d.ts +2 -2
- package/{Classes → Types/Classes}/common/Error.d.ts +1 -1
- package/{Classes → Types/Classes}/common/FormDataBuilder.d.ts +2 -2
- package/{Classes → Types/Classes}/common/NavigationThruPages.d.ts +4 -4
- package/{Classes → Types/Classes}/common/Request.d.ts +1 -1
- package/Types/Interfaces/Common/index.d.ts +1 -0
- package/{Interfaces → Types/Interfaces}/Domains/DomainCredentials.d.ts +1 -1
- package/{Interfaces → Types/Interfaces}/Domains/DomainTags.d.ts +2 -2
- package/{Interfaces → Types/Interfaces}/Domains/DomainTemplates.d.ts +1 -1
- package/Types/Interfaces/Domains/DomainTracking.d.ts +8 -0
- package/{Interfaces → Types/Interfaces}/Domains/DomainsClient.d.ts +7 -5
- package/Types/Interfaces/Domains/index.d.ts +5 -0
- package/{Interfaces → Types/Interfaces}/EventClient/IEventClient.d.ts +1 -1
- package/Types/Interfaces/EventClient/index.d.ts +1 -0
- package/{Interfaces → Types/Interfaces}/IPPools/IIPPoolsClient.d.ts +1 -1
- package/Types/Interfaces/IPPools/index.d.ts +1 -0
- package/{Interfaces → Types/Interfaces}/IPs/IIPsClient.d.ts +1 -1
- package/Types/Interfaces/IPs/index.d.ts +1 -0
- package/{Interfaces → Types/Interfaces}/InboxPlacements/AttributesClient.d.ts +1 -1
- package/{Interfaces → Types/Interfaces}/InboxPlacements/FiltersClient.d.ts +1 -1
- package/{Interfaces → Types/Interfaces}/InboxPlacements/InboxPlacementsClient.d.ts +4 -4
- package/{Interfaces → Types/Interfaces}/InboxPlacements/Results/InboxPlacementsResults.d.ts +4 -4
- package/{Interfaces → Types/Interfaces}/InboxPlacements/Results/InboxPlacementsResultsSharing.d.ts +1 -1
- package/{Interfaces → Types/Interfaces}/InboxPlacements/SeedsLists/SeedsListsClient.d.ts +3 -3
- package/Types/Interfaces/InboxPlacements/index.d.ts +7 -0
- package/{Interfaces → Types/Interfaces}/InboxPlacements/providers/InboxPlacementsProviders.d.ts +1 -1
- package/Types/Interfaces/MailgunClient/IMailgunClient.d.ts +34 -0
- package/Types/Interfaces/MailgunClient/index.d.ts +1 -0
- package/{Interfaces → Types/Interfaces}/MailingLists/MailingListMembers.d.ts +1 -1
- package/{Interfaces → Types/Interfaces}/MailingLists/MailingListsClient.d.ts +2 -2
- package/Types/Interfaces/MailingLists/index.d.ts +2 -0
- package/{Interfaces → Types/Interfaces}/Messages/IMessagesClient.d.ts +1 -1
- package/Types/Interfaces/Messages/index.d.ts +1 -0
- package/{Interfaces → Types/Interfaces}/Metrics/MetricsClient.d.ts +1 -1
- package/{Interfaces → Types/Interfaces}/Routes/IRoutesClient.d.ts +1 -1
- package/Types/Interfaces/Routes/index.d.ts +1 -0
- package/{Interfaces → Types/Interfaces}/Stats/StatsClient.d.ts +2 -2
- package/{Interfaces → Types/Interfaces}/Stats/StatsContainer.d.ts +1 -1
- package/Types/Interfaces/Stats/index.d.ts +2 -0
- package/{Interfaces → Types/Interfaces}/Subaccounts/ISubaccountsClient.d.ts +1 -1
- package/Types/Interfaces/Subaccounts/index.d.ts +1 -0
- package/{Interfaces → Types/Interfaces}/Suppressions/ISuppressionsClient.d.ts +5 -5
- package/Types/Interfaces/Suppressions/index.d.ts +5 -0
- package/{Interfaces → Types/Interfaces}/Validations/MultipleValidation.d.ts +1 -1
- package/{Interfaces → Types/Interfaces}/Validations/Validation.d.ts +2 -2
- package/Types/Interfaces/Validations/index.d.ts +2 -0
- package/{Interfaces → Types/Interfaces}/Webhooks/IWebHooksClient.d.ts +2 -2
- package/Types/Interfaces/Webhooks/index.d.ts +1 -0
- package/Types/Interfaces/index.d.ts +16 -0
- package/Types/{Common → Types/Common}/FormData.d.ts +1 -1
- package/Types/{Common → Types/Common}/RequestOptions.d.ts +1 -1
- package/Types/Types/Common/index.d.ts +6 -0
- package/Types/{Domains → Types/Domains}/DomainTags.d.ts +2 -2
- package/Types/{Domains → Types/Domains}/DomainTemplates.d.ts +3 -3
- package/Types/{Domains → Types/Domains}/DomainTracking.d.ts +16 -0
- package/Types/Types/Domains/index.d.ts +5 -0
- package/Types/{Events → Types/Events}/Events.d.ts +1 -1
- package/Types/Types/Events/index.d.ts +1 -0
- package/Types/Types/IPPools/index.d.ts +1 -0
- package/Types/Types/IPs/index.d.ts +1 -0
- package/Types/{InboxPlacements → Types/InboxPlacements}/Results/InboxPlacementsResults.d.ts +1 -1
- package/Types/{InboxPlacements → Types/InboxPlacements}/SeedsLists/SeedsLists.d.ts +1 -1
- package/Types/Types/InboxPlacements/index.d.ts +7 -0
- package/Types/Types/MailgunClient/index.d.ts +1 -0
- package/Types/{MailingLists → Types/MailingLists}/MailingListMembers.d.ts +2 -2
- package/Types/{MailingLists → Types/MailingLists}/MailingLists.d.ts +1 -1
- package/Types/Types/MailingLists/index.d.ts +2 -0
- package/Types/Types/Messages/index.d.ts +1 -0
- package/Types/{Metrics → Types/Metrics}/Metrics.d.ts +1 -1
- package/Types/{Metrics → Types/Metrics}/MetricsAPI.d.ts +1 -1
- package/Types/Types/Metrics/index.d.ts +2 -0
- package/Types/Types/Routes/index.d.ts +1 -0
- package/Types/Types/Stats/index.d.ts +1 -0
- package/Types/Types/Subaccounts/index.d.ts +1 -0
- package/Types/{Suppressions → Types/Suppressions}/Suppressions.d.ts +3 -3
- package/Types/Types/Suppressions/index.d.ts +5 -0
- package/Types/{Validations → Types/Validations}/MultipleValidation.d.ts +2 -2
- package/Types/Types/Validations/index.d.ts +2 -0
- package/Types/Types/Webhooks/index.d.ts +1 -0
- package/Types/Types/index.d.ts +15 -0
- package/Types/definitions.d.ts +3 -0
- package/Types/index.d.ts +8 -14
- package/Types/index.js +6578 -0
- package/package.json +38 -6
- package/version.md +1 -1
- package/Classes/Domains/domains.d.ts +0 -51
- package/Classes/InboxPlacements/Results/InboxPlacementsResultsClient.ts +0 -18
- package/Classes/InboxPlacements/Results/InboxPlacementsResultsSharing.ts +0 -10
- package/Classes/InboxPlacements/SeedsLists/AttributesClient.d.ts +0 -10
- package/Classes/InboxPlacements/SeedsLists/FiltersClient.d.ts +0 -8
- package/Classes/Suppressions/Complaint.d.ts +0 -8
- package/Classes/Suppressions/WhiteList.d.ts +0 -9
- package/Interfaces/Common/index.d.ts +0 -1
- package/Interfaces/Domains/index.d.ts +0 -4
- package/Interfaces/EventClient/index.d.ts +0 -1
- package/Interfaces/IPPools/index.d.ts +0 -1
- package/Interfaces/IPs/index.d.ts +0 -1
- package/Interfaces/InboxPlacements/Results/InboxPlacementsResultsClient.d.ts +0 -8
- package/Interfaces/InboxPlacements/SeedsLists/AttributesClient.d.ts +0 -5
- package/Interfaces/InboxPlacements/SeedsLists/FiltersClient.d.ts +0 -4
- package/Interfaces/InboxPlacements/index.d.ts +0 -6
- package/Interfaces/MailgunClient/IMailgunClient.d.ts +0 -32
- package/Interfaces/MailgunClient/index.d.ts +0 -1
- package/Interfaces/MailingLists/index.d.ts +0 -2
- package/Interfaces/Messages/index.d.ts +0 -1
- package/Interfaces/Routes/index.d.ts +0 -1
- package/Interfaces/Stats/index.d.ts +0 -2
- package/Interfaces/Subaccounts/index.d.ts +0 -1
- package/Interfaces/Suppressions/index.d.ts +0 -5
- package/Interfaces/Validations/index.d.ts +0 -2
- package/Interfaces/Webhooks/index.d.ts +0 -1
- package/Interfaces/index.d.ts +0 -15
- package/Types/Common/index.d.ts +0 -5
- package/Types/Domains/index.d.ts +0 -5
- package/Types/Events/index.d.ts +0 -1
- package/Types/IPPools/index.d.ts +0 -1
- package/Types/IPs/index.d.ts +0 -1
- package/Types/InboxPlacements/InboxPlacementsClient.d.ts +0 -0
- package/Types/InboxPlacements/index.d.ts +0 -7
- package/Types/MailgunClient/index.d.ts +0 -1
- package/Types/MailingLists/index.d.ts +0 -2
- package/Types/Messages/index.d.ts +0 -1
- package/Types/Metrics/index.d.ts +0 -2
- package/Types/Routes/index.d.ts +0 -1
- package/Types/Stats/index.d.ts +0 -1
- package/Types/Subaccounts/index.d.ts +0 -1
- package/Types/Suppressions/index.d.ts +0 -5
- package/Types/Validations/index.d.ts +0 -2
- package/Types/Webhooks/index.d.ts +0 -1
- package/index.d.ts +0 -11
- package/mailgun.node.js +0 -3
- package/mailgun.node.js.LICENSE.txt +0 -17
- package/mailgun.web.js +0 -3
- package/mailgun.web.js.LICENSE.txt +0 -3
- /package/{Enums → Types/Enums}/index.d.ts +0 -0
- /package/{Interfaces → Types/Interfaces}/Common/Logger.d.ts +0 -0
- /package/{Interfaces → Types/Interfaces}/Suppressions/Bounce.d.ts +0 -0
- /package/{Interfaces → Types/Interfaces}/Suppressions/Complaint.d.ts +0 -0
- /package/{Interfaces → Types/Interfaces}/Suppressions/Unsubscribe.d.ts +0 -0
- /package/{Interfaces → Types/Interfaces}/Suppressions/WhiteList.d.ts +0 -0
- /package/Types/{Common → Types/Common}/ApiResponse.d.ts +0 -0
- /package/Types/{Common → Types/Common}/Attachments.d.ts +0 -0
- /package/Types/{Common → Types/Common}/Error.d.ts +0 -0
- /package/Types/{Common → Types/Common}/NavigationThruPages.d.ts +0 -0
- /package/Types/{Domains → Types/Domains}/DomainCredentials.d.ts +0 -0
- /package/Types/{Domains → Types/Domains}/Domains.d.ts +0 -0
- /package/Types/{IPPools → Types/IPPools}/IpPools.d.ts +0 -0
- /package/Types/{IPs → Types/IPs}/IPs.d.ts +0 -0
- /package/Types/{InboxPlacements → Types/InboxPlacements}/Attributes.d.ts +0 -0
- /package/Types/{InboxPlacements → Types/InboxPlacements}/Filters.d.ts +0 -0
- /package/Types/{InboxPlacements → Types/InboxPlacements}/InboxPlacements.d.ts +0 -0
- /package/Types/{InboxPlacements → Types/InboxPlacements}/Results/InboxPlacementsResultsSharing.d.ts +0 -0
- /package/Types/{InboxPlacements → Types/InboxPlacements}/providers/InboxPlacementsProviders.d.ts +0 -0
- /package/Types/{MailgunClient → Types/MailgunClient}/MailgunClientOptions.d.ts +0 -0
- /package/Types/{Messages → Types/Messages}/Messages.d.ts +0 -0
- /package/Types/{Routes → Types/Routes}/Routes.d.ts +0 -0
- /package/Types/{Stats → Types/Stats}/Stats.d.ts +0 -0
- /package/Types/{Subaccounts → Types/Subaccounts}/Subaccounts.d.ts +0 -0
- /package/Types/{Suppressions → Types/Suppressions}/Bounce.d.ts +0 -0
- /package/Types/{Suppressions → Types/Suppressions}/Complaint.d.ts +0 -0
- /package/Types/{Suppressions → Types/Suppressions}/Unsubscribe.d.ts +0 -0
- /package/Types/{Suppressions → Types/Suppressions}/WhiteList.d.ts +0 -0
- /package/Types/{Validations → Types/Validations}/Validation.d.ts +0 -0
- /package/Types/{Webhooks → Types/Webhooks}/Webhooks.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mailgun.js",
|
|
3
|
-
"version": "
|
|
4
|
-
"main": "./mailgun.node.js",
|
|
5
|
-
"browser": "./mailgun.web.js",
|
|
6
|
-
"types": "./index.d.ts",
|
|
3
|
+
"version": "12.0.0",
|
|
7
4
|
"author": "Mailgun",
|
|
8
5
|
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
9
7
|
"keywords": [
|
|
10
8
|
"mailgun",
|
|
11
9
|
"email"
|
|
@@ -19,8 +17,42 @@
|
|
|
19
17
|
"url": "https://github.com/mailgun/mailgun.js/issues"
|
|
20
18
|
},
|
|
21
19
|
"homepage": "https://github.com/mailgun/mailgun.js#readme",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"node": {
|
|
23
|
+
"import": "./ESM/mailgun.node.js",
|
|
24
|
+
"require": "./CJS/mailgun.node.cjs",
|
|
25
|
+
"types": "./Types/index.d.ts",
|
|
26
|
+
"default": "./CJS/mailgun.node.js"
|
|
27
|
+
},
|
|
28
|
+
"browser": {
|
|
29
|
+
"import": "./ESM/mailgun.browser.js",
|
|
30
|
+
"require": "./AMD/mailgun.amd.js",
|
|
31
|
+
"types": "./Types/index.d.ts",
|
|
32
|
+
"default": "./AMD/mailgun.amd.js"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"./definitions": {
|
|
36
|
+
"node": {
|
|
37
|
+
"import": "./ESM/definitions.node.js",
|
|
38
|
+
"require": "./CJS/definitions.cjs",
|
|
39
|
+
"types": "./Types/definitions.d.ts",
|
|
40
|
+
"default": "./CJS/definitions.js"
|
|
41
|
+
},
|
|
42
|
+
"browser": {
|
|
43
|
+
"import": "./ESM/definitions.browser.js",
|
|
44
|
+
"require": "./AMD/definitions.js",
|
|
45
|
+
"types": "./Types/definitions.d.ts",
|
|
46
|
+
"default": "./AMD/definitions.js"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"typesVersions": {
|
|
51
|
+
"*": {
|
|
52
|
+
"*": [
|
|
53
|
+
"Types/*"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
24
56
|
},
|
|
25
57
|
"dependencies": {
|
|
26
58
|
"axios": "^1.7.4",
|
package/version.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
12.0.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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IComplaint } from '../../Interfaces/Suppressions';
|
|
2
|
-
import { ComplaintData } from '../../Types/Suppressions';
|
|
3
|
-
import Suppression from './Suppression';
|
|
4
|
-
export default class Complaint extends Suppression implements IComplaint {
|
|
5
|
-
address: string;
|
|
6
|
-
created_at: Date;
|
|
7
|
-
constructor(data: ComplaintData);
|
|
8
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IWhiteList } from '../../Interfaces/Suppressions';
|
|
2
|
-
import { WhiteListData } from '../../Types/Suppressions';
|
|
3
|
-
import Suppression from './Suppression';
|
|
4
|
-
export default class WhiteList extends Suppression implements IWhiteList {
|
|
5
|
-
value: string;
|
|
6
|
-
reason: string;
|
|
7
|
-
createdAt: Date;
|
|
8
|
-
constructor(data: WhiteListData);
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Logger';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IEventClient';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IIPPoolsClient';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IIPsClient';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { InboxPlacementsResultsListResult, InboxPlacementsResultsQuery } from '../../../Types/InboxPlacements';
|
|
2
|
-
import { ISeedsListsAttributesClient } from '../SeedsLists/AttributesClient';
|
|
3
|
-
import { ISeedsListsFiltersClient } from '../SeedsLists/FiltersClient';
|
|
4
|
-
export interface IInboxPlacementsResultsClient {
|
|
5
|
-
attributes: ISeedsListsAttributesClient;
|
|
6
|
-
filters: ISeedsListsFiltersClient;
|
|
7
|
-
list(query: InboxPlacementsResultsQuery): Promise<InboxPlacementsResultsListResult>;
|
|
8
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { InboxPlacementsAttributesResult, InboxPlacementsValuesResult } from '../../../Types/InboxPlacements';
|
|
2
|
-
export interface IInboxPlacementsAttributesClient {
|
|
3
|
-
list(): Promise<InboxPlacementsAttributesResult>;
|
|
4
|
-
get(attributeName: string): Promise<InboxPlacementsValuesResult>;
|
|
5
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './InboxPlacementsClient';
|
|
2
|
-
export * from './AttributesClient';
|
|
3
|
-
export * from './FiltersClient';
|
|
4
|
-
export * from './SeedsLists/SeedsListsClient';
|
|
5
|
-
export * from './Results/InboxPlacementsResults';
|
|
6
|
-
export * from './Results/InboxPlacementsResultsSharing';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { IWebHooksClient } from '../Webhooks';
|
|
2
|
-
import { IDomainsClient } from '../Domains';
|
|
3
|
-
import { IEventClient } from '../EventClient';
|
|
4
|
-
import { IStatsClient } from '../Stats';
|
|
5
|
-
import { IMessagesClient } from '../Messages';
|
|
6
|
-
import { ISuppressionClient } from '../Suppressions';
|
|
7
|
-
import { IRoutesClient } from '../Routes';
|
|
8
|
-
import { IValidationClient } from '../Validations';
|
|
9
|
-
import { IIPsClient } from '../IPs';
|
|
10
|
-
import { IIPPoolsClient } from '../IPPools';
|
|
11
|
-
import { IMailingListsClient } from '../MailingLists';
|
|
12
|
-
import { ISubaccountsClient } from '../Subaccounts';
|
|
13
|
-
import { IInboxPlacementsClient } from '../InboxPlacements';
|
|
14
|
-
import { IMetricsClient } from '../Metrics/MetricsClient';
|
|
15
|
-
export interface IMailgunClient {
|
|
16
|
-
domains: IDomainsClient;
|
|
17
|
-
webhooks: IWebHooksClient;
|
|
18
|
-
events: IEventClient;
|
|
19
|
-
stats: IStatsClient;
|
|
20
|
-
metrics: IMetricsClient;
|
|
21
|
-
suppressions: ISuppressionClient;
|
|
22
|
-
messages: IMessagesClient;
|
|
23
|
-
routes: IRoutesClient;
|
|
24
|
-
validate: IValidationClient;
|
|
25
|
-
ips: IIPsClient;
|
|
26
|
-
ip_pools: IIPPoolsClient;
|
|
27
|
-
lists: IMailingListsClient;
|
|
28
|
-
subaccounts: ISubaccountsClient;
|
|
29
|
-
inboxPlacements: IInboxPlacementsClient;
|
|
30
|
-
setSubaccount(subaccountId: string): void;
|
|
31
|
-
resetSubaccount(): void;
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IMailgunClient';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IMessagesClient';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IRoutesClient';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ISubaccountsClient';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IWebHooksClient';
|
package/Interfaces/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from './Common';
|
|
2
|
-
export * from './Domains';
|
|
3
|
-
export * from './MailgunClient';
|
|
4
|
-
export * from './MailingLists';
|
|
5
|
-
export * from './Stats';
|
|
6
|
-
export * from './Suppressions';
|
|
7
|
-
export * from './Validations';
|
|
8
|
-
export * from './EventClient';
|
|
9
|
-
export * from './Webhooks';
|
|
10
|
-
export * from './Messages';
|
|
11
|
-
export * from './Routes';
|
|
12
|
-
export * from './IPs';
|
|
13
|
-
export * from './IPPools';
|
|
14
|
-
export * from './Subaccounts';
|
|
15
|
-
export * from './InboxPlacements';
|
package/Types/Common/index.d.ts
DELETED
package/Types/Domains/index.d.ts
DELETED
package/Types/Events/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Events';
|
package/Types/IPPools/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IpPools';
|
package/Types/IPs/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IPs';
|
|
File without changes
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './InboxPlacements';
|
|
2
|
-
export * from './Attributes';
|
|
3
|
-
export * from './Filters';
|
|
4
|
-
export * from './SeedsLists/SeedsLists';
|
|
5
|
-
export * from './Results/InboxPlacementsResults';
|
|
6
|
-
export * from './Results/InboxPlacementsResultsSharing';
|
|
7
|
-
export * from './providers/InboxPlacementsProviders';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MailgunClientOptions';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Messages';
|
package/Types/Metrics/index.d.ts
DELETED
package/Types/Routes/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Routes';
|
package/Types/Stats/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Stats';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Subaccounts';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Webhooks';
|
package/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IMailgunClient } from './Interfaces';
|
|
2
|
-
import { InputFormData, MailgunClientOptions } from './Types';
|
|
3
|
-
export * as Enums from './Enums';
|
|
4
|
-
export * from './Types';
|
|
5
|
-
export * as Interfaces from './Interfaces';
|
|
6
|
-
export default class Mailgun {
|
|
7
|
-
static get default(): typeof Mailgun;
|
|
8
|
-
private formData;
|
|
9
|
-
constructor(FormData: InputFormData);
|
|
10
|
-
client(options: MailgunClientOptions): IMailgunClient;
|
|
11
|
-
}
|