mailgun.js 8.2.2 → 9.0.1
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/CHANGELOG.md +66 -0
- package/Classes/Domains/domain.d.ts +16 -0
- package/{domains.d.ts → Classes/Domains/domains.d.ts} +5 -8
- package/Classes/Domains/domainsClient.d.ts +36 -0
- package/{domainsCredentials.d.ts → Classes/Domains/domainsCredentials.d.ts} +3 -2
- package/{domainsTags.d.ts → Classes/Domains/domainsTags.d.ts} +6 -4
- package/{domainsTemplates.d.ts → Classes/Domains/domainsTemplates.d.ts} +9 -8
- package/{events.d.ts → Classes/Events.d.ts} +4 -3
- package/{ip-pools.d.ts → Classes/IPPools.d.ts} +4 -3
- package/Classes/IPs.d.ts +10 -0
- package/Classes/MailgunClient.d.ts +18 -0
- package/{mailListMembers.d.ts → Classes/MailingLists/mailListMembers.d.ts} +4 -3
- package/Classes/MailingLists/mailingLists.d.ts +21 -0
- package/{messages.d.ts → Classes/Messages.d.ts} +4 -3
- package/{routes.d.ts → Classes/Routes.d.ts} +4 -3
- package/Classes/Stats/StatsClient.d.ts +14 -0
- package/Classes/Stats/StatsContainer.d.ts +9 -0
- package/Classes/Suppressions/Bounce.d.ts +10 -0
- package/Classes/Suppressions/Complaint.d.ts +8 -0
- package/Classes/Suppressions/Suppression.d.ts +5 -0
- package/Classes/Suppressions/SuppressionsClient.d.ts +23 -0
- package/Classes/Suppressions/Unsubscribe.d.ts +9 -0
- package/Classes/Suppressions/WhiteList.d.ts +9 -0
- package/{multipleValidation.d.ts → Classes/Validations/multipleValidation.d.ts} +4 -3
- package/Classes/Validations/validate.d.ts +9 -0
- package/Classes/Webhooks.d.ts +21 -0
- package/Classes/common/Error.d.ts +8 -0
- package/{formDataBuilder.d.ts → Classes/common/FormDataBuilder.d.ts} +1 -1
- package/Classes/common/NavigationThruPages.d.ts +17 -0
- package/{request.d.ts → Classes/common/Request.d.ts} +2 -4
- package/Enums/index.d.ts +24 -0
- package/Interfaces/Common/Logger.d.ts +3 -0
- package/Interfaces/Common/index.d.ts +1 -0
- package/Interfaces/Domains/DomainCredentials.d.ts +7 -0
- package/Interfaces/Domains/DomainTags.d.ts +20 -0
- package/Interfaces/Domains/DomainTemplates.d.ts +23 -0
- package/Interfaces/Domains/DomainsClient.d.ts +27 -0
- package/Interfaces/Domains/index.d.ts +4 -0
- package/Interfaces/EventClient/IEventClient.d.ts +4 -0
- package/Interfaces/EventClient/index.d.ts +1 -0
- package/Interfaces/IPPools/IIPPoolsClient.d.ts +7 -0
- package/Interfaces/IPPools/index.d.ts +1 -0
- package/Interfaces/IPs/IIPsClient.d.ts +5 -0
- package/Interfaces/IPs/index.d.ts +1 -0
- package/Interfaces/MailgunClient/IMailgunClient.d.ts +24 -0
- package/Interfaces/MailgunClient/index.d.ts +1 -0
- package/Interfaces/MailingLists/MailingListMembers.d.ts +9 -0
- package/Interfaces/MailingLists/MailingListsClient.d.ts +13 -0
- package/Interfaces/MailingLists/index.d.ts +2 -0
- package/Interfaces/Messages/IMessagesClient.d.ts +4 -0
- package/Interfaces/Messages/index.d.ts +1 -0
- package/Interfaces/Routes/IRoutesClient.d.ts +8 -0
- package/Interfaces/Routes/index.d.ts +1 -0
- package/Interfaces/Stats/StatsClient.d.ts +6 -0
- package/Interfaces/Stats/StatsContainer.d.ts +7 -0
- package/Interfaces/Stats/index.d.ts +2 -0
- package/{interfaces → Interfaces}/Suppressions/Bounce.d.ts +0 -6
- package/{interfaces → Interfaces}/Suppressions/Complaint.d.ts +0 -4
- package/Interfaces/Suppressions/ISuppressionsClient.d.ts +11 -0
- package/{interfaces → Interfaces}/Suppressions/Unsubscribe.d.ts +0 -5
- package/Interfaces/Suppressions/WhiteList.d.ts +6 -0
- package/Interfaces/Suppressions/index.d.ts +5 -0
- package/Interfaces/Validations/MultipleValidation.d.ts +7 -0
- package/Interfaces/Validations/Validation.d.ts +6 -0
- package/Interfaces/Validations/index.d.ts +2 -0
- package/Interfaces/Webhooks/IWebHooksClient.d.ts +9 -0
- package/Interfaces/Webhooks/index.d.ts +1 -0
- package/Interfaces/index.d.ts +13 -0
- package/README.md +42 -13
- package/Types/Common/ApiResponse.d.ts +4 -0
- package/Types/Common/Error.d.ts +19 -0
- package/Types/Common/FormData.d.ts +7 -0
- package/{interfaces → Types/Common}/NavigationThruPages.d.ts +14 -14
- package/{interfaces → Types/Common}/RequestOptions.d.ts +7 -7
- package/Types/Common/index.d.ts +5 -0
- package/Types/Domains/DomainCredentials.d.ts +46 -0
- package/{interfaces → Types/Domains}/DomainTags.d.ts +34 -57
- package/Types/Domains/DomainTemplates.d.ts +153 -0
- package/{interfaces → Types/Domains}/DomainTracking.d.ts +8 -8
- package/{interfaces → Types/Domains}/Domains.d.ts +50 -36
- package/Types/Domains/index.d.ts +5 -0
- package/{interfaces → Types/Events}/Events.d.ts +15 -15
- package/Types/Events/index.d.ts +1 -0
- package/{interfaces → Types/IPPools}/IpPools.d.ts +6 -6
- package/Types/IPPools/index.d.ts +1 -0
- package/{interfaces/Ips.d.ts → Types/IPs/IPs.d.ts} +7 -4
- package/Types/IPs/index.d.ts +1 -0
- package/{interfaces/Options.d.ts → Types/MailgunClient/MailgunClientOptions.d.ts} +2 -3
- package/Types/MailgunClient/index.d.ts +1 -0
- package/Types/MailingLists/MailingListMembers.d.ts +60 -0
- package/{interfaces/lists.d.ts → Types/MailingLists/MailingLists.d.ts} +22 -22
- package/Types/MailingLists/index.d.ts +2 -0
- package/{interfaces → Types/Messages}/Messages.d.ts +5 -5
- package/Types/Messages/index.d.ts +1 -0
- package/{interfaces/routes.d.ts → Types/Routes/Routes.d.ts} +6 -6
- package/Types/Routes/index.d.ts +1 -0
- package/{interfaces/StatsOptions.d.ts → Types/Stats/Stats.d.ts} +6 -6
- package/Types/Stats/index.d.ts +1 -0
- package/Types/Suppressions/Bounce.d.ts +6 -0
- package/Types/Suppressions/Complaint.d.ts +4 -0
- package/{interfaces → Types}/Suppressions/Suppressions.d.ts +19 -28
- package/Types/Suppressions/Unsubscribe.d.ts +5 -0
- package/Types/Suppressions/WhiteList.d.ts +6 -0
- package/Types/Suppressions/index.d.ts +5 -0
- package/{interfaces → Types/Validations}/MultipleValidation.d.ts +20 -26
- package/{interfaces/Validate.d.ts → Types/Validations/Validation.d.ts} +4 -4
- package/Types/Validations/index.d.ts +2 -0
- package/Types/Webhooks/Webhooks.d.ts +29 -0
- package/Types/Webhooks/index.d.ts +1 -0
- package/Types/index.d.ts +13 -0
- package/index.d.ts +7 -4
- package/mailgun.node.js +2 -2
- package/mailgun.node.js.LICENSE.txt +1 -1
- package/mailgun.web.js +2 -2
- package/mailgun.web.js.LICENSE.txt +1 -1
- package/package.json +1 -1
- package/version.md +1 -1
- package/client.d.ts +0 -29
- package/common/NavigationThruPages.d.ts +0 -19
- package/error.d.ts +0 -8
- package/interfaces/APIErrorOptions.d.ts +0 -11
- package/interfaces/ApiResponse.d.ts +0 -5
- package/interfaces/DomainCredentials.d.ts +0 -52
- package/interfaces/DomainTemplates.d.ts +0 -178
- package/interfaces/IFormData.d.ts +0 -7
- package/interfaces/IMailgunClient.d.ts +0 -24
- package/interfaces/Suppressions/WhiteList.d.ts +0 -12
- package/interfaces/Supressions.d.ts +0 -103
- package/interfaces/Webhooks.d.ts +0 -34
- package/interfaces/mailListMembers.d.ts +0 -68
- package/ips.d.ts +0 -9
- package/lists.d.ts +0 -20
- package/stats.d.ts +0 -20
- package/suppressions.d.ts +0 -53
- package/validate.d.ts +0 -9
- package/webhooks.d.ts +0 -32
package/suppressions.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import Request from './request';
|
|
2
|
-
import { SuppressionCreationData, SuppressionCreationResult, SuppressionDataType, SuppressionDestroyResult, SuppressionList, SuppressionListQuery, SuppressionListResponse, SuppressionModels } from './interfaces/Suppressions/Suppressions';
|
|
3
|
-
import { IBounce, BounceData } from './interfaces/Suppressions/Bounce';
|
|
4
|
-
import { IComplaint, ComplaintData } from './interfaces/Suppressions/Complaint';
|
|
5
|
-
import { IUnsubscribe, UnsubscribeData } from './interfaces/Suppressions/Unsubscribe';
|
|
6
|
-
import { IWhiteList, WhiteListData } from './interfaces/Suppressions/WhiteList';
|
|
7
|
-
import NavigationThruPages from './common/NavigationThruPages';
|
|
8
|
-
export declare class Suppression {
|
|
9
|
-
type: string;
|
|
10
|
-
constructor(type: SuppressionModels);
|
|
11
|
-
}
|
|
12
|
-
export declare class Bounce extends Suppression implements IBounce {
|
|
13
|
-
address: string;
|
|
14
|
-
code: number;
|
|
15
|
-
error: string;
|
|
16
|
-
created_at: Date;
|
|
17
|
-
constructor(data: BounceData);
|
|
18
|
-
}
|
|
19
|
-
export declare class Complaint extends Suppression implements IComplaint {
|
|
20
|
-
address: string;
|
|
21
|
-
created_at: Date;
|
|
22
|
-
constructor(data: ComplaintData);
|
|
23
|
-
}
|
|
24
|
-
export declare class Unsubscribe extends Suppression implements IUnsubscribe {
|
|
25
|
-
address: string;
|
|
26
|
-
tags: string[];
|
|
27
|
-
created_at: Date;
|
|
28
|
-
constructor(data: UnsubscribeData);
|
|
29
|
-
}
|
|
30
|
-
export declare class WhiteList extends Suppression implements IWhiteList {
|
|
31
|
-
value: string;
|
|
32
|
-
reason: string;
|
|
33
|
-
createdAt: Date;
|
|
34
|
-
constructor(data: WhiteListData);
|
|
35
|
-
}
|
|
36
|
-
export default class SuppressionClient extends NavigationThruPages<SuppressionList> {
|
|
37
|
-
request: Request;
|
|
38
|
-
models: Map<string, any>;
|
|
39
|
-
constructor(request: Request);
|
|
40
|
-
protected parseList(response: SuppressionListResponse, Model: {
|
|
41
|
-
new (data: SuppressionDataType): IBounce | IComplaint | IUnsubscribe | IWhiteList;
|
|
42
|
-
}): SuppressionList;
|
|
43
|
-
_parseItem<T extends Suppression>(data: BounceData | ComplaintData | UnsubscribeData | WhiteListData, Model: {
|
|
44
|
-
new (data: BounceData | ComplaintData | UnsubscribeData | WhiteListData): T;
|
|
45
|
-
}): T;
|
|
46
|
-
private createWhiteList;
|
|
47
|
-
private checkType;
|
|
48
|
-
private prepareResponse;
|
|
49
|
-
list(domain: string, type: string, query?: SuppressionListQuery): Promise<SuppressionList>;
|
|
50
|
-
get(domain: string, type: string, address: string): Promise<Bounce | Complaint | Unsubscribe | WhiteList>;
|
|
51
|
-
create(domain: string, type: string, data: SuppressionCreationData | SuppressionCreationData[]): Promise<SuppressionCreationResult>;
|
|
52
|
-
destroy(domain: string, type: string, address: string): Promise<SuppressionDestroyResult>;
|
|
53
|
-
}
|
package/validate.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IMultipleValidationClient } from './interfaces/MultipleValidation';
|
|
2
|
-
import { ValidationResult } from './interfaces/Validate';
|
|
3
|
-
import Request from './request';
|
|
4
|
-
export default class ValidateClient {
|
|
5
|
-
multipleValidation: IMultipleValidationClient;
|
|
6
|
-
request: Request;
|
|
7
|
-
constructor(request: Request, multipleValidationClient: IMultipleValidationClient);
|
|
8
|
-
get(address: string): Promise<ValidationResult>;
|
|
9
|
-
}
|
package/webhooks.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ValidationResponse, WebhookList, WebhookResponse, WebhooksIds, WebhooksQuery } from './interfaces/Webhooks';
|
|
2
|
-
import Request from './request';
|
|
3
|
-
declare class Webhook {
|
|
4
|
-
id: string;
|
|
5
|
-
url: string | undefined;
|
|
6
|
-
constructor(id: string, url: string | undefined);
|
|
7
|
-
}
|
|
8
|
-
export default class WebhookClient {
|
|
9
|
-
request: Request;
|
|
10
|
-
constructor(request: Request);
|
|
11
|
-
_parseWebhookList(response: {
|
|
12
|
-
body: {
|
|
13
|
-
webhooks: WebhookList;
|
|
14
|
-
};
|
|
15
|
-
}): WebhookList;
|
|
16
|
-
_parseWebhookWithID(id: string): (response: WebhookResponse) => Webhook;
|
|
17
|
-
_parseWebhookTest(response: {
|
|
18
|
-
body: {
|
|
19
|
-
code: number;
|
|
20
|
-
message: string;
|
|
21
|
-
};
|
|
22
|
-
}): {
|
|
23
|
-
code: number;
|
|
24
|
-
message: string;
|
|
25
|
-
};
|
|
26
|
-
list(domain: string, query: WebhooksQuery): Promise<WebhookList>;
|
|
27
|
-
get(domain: string, id: WebhooksIds): Promise<Webhook>;
|
|
28
|
-
create(domain: string, id: string, url: string, test?: boolean): Promise<Webhook | ValidationResponse>;
|
|
29
|
-
update(domain: string, id: string, url: string): Promise<Webhook>;
|
|
30
|
-
destroy(domain: string, id: string): Promise<Webhook>;
|
|
31
|
-
}
|
|
32
|
-
export {};
|