mailgun.js 5.2.2 → 7.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/CHANGELOG.md +57 -0
- package/README.md +3 -2
- package/formDataBuilder.d.ts +14 -0
- package/interfaces/DomainCredentials.d.ts +6 -6
- package/interfaces/DomainTags.d.ts +4 -4
- package/interfaces/DomainTemplates.d.ts +12 -12
- package/interfaces/DomainTracking.d.ts +6 -6
- package/interfaces/Domains.d.ts +6 -6
- package/interfaces/IpPools.d.ts +40 -4
- package/interfaces/MultipleValidation.d.ts +11 -1
- package/interfaces/RequestOptions.d.ts +12 -3
- package/interfaces/Supressions.d.ts +4 -4
- package/interfaces/Validate.d.ts +3 -0
- package/interfaces/Webhooks.d.ts +2 -2
- package/interfaces/lists.d.ts +4 -4
- package/interfaces/mailListMembers.d.ts +8 -8
- package/interfaces/routes.d.ts +4 -4
- package/ip-pools.d.ts +5 -15
- package/ips.d.ts +2 -2
- package/mailgun.node.js +2 -2
- package/mailgun.node.js.LICENSE.txt +14 -2
- package/mailgun.web.js +2 -2
- package/mailgun.web.js.LICENSE.txt +1 -3
- package/multipleValidation.d.ts +3 -2
- package/package.json +2 -5
- package/request.d.ts +13 -19
- package/version.md +1 -1
package/multipleValidation.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { CanceledMultipleValidationJob, CreatedMultipleValidationJob, IMultipleValidationClient, MultipleValidationJob, MultipleValidationJobsListResult } from './interfaces/MultipleValidation';
|
|
1
|
+
import { CanceledMultipleValidationJob, CreatedMultipleValidationJob, IMultipleValidationClient, MultipleValidationCreationData, MultipleValidationJob, MultipleValidationJobsListResult } from './interfaces/MultipleValidation';
|
|
2
2
|
import Request from './request';
|
|
3
3
|
export default class MultipleValidationClient implements IMultipleValidationClient {
|
|
4
4
|
request: Request;
|
|
5
5
|
constructor(request: Request);
|
|
6
|
+
private handleResponse;
|
|
6
7
|
list(): Promise<MultipleValidationJobsListResult>;
|
|
7
8
|
get(listId: string): Promise<MultipleValidationJob>;
|
|
8
|
-
create(listId: string,
|
|
9
|
+
create(listId: string, data: MultipleValidationCreationData): Promise<CreatedMultipleValidationJob>;
|
|
9
10
|
destroy(listId: string): Promise<CanceledMultipleValidationJob>;
|
|
10
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mailgun.js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"main": "./mailgun.node.js",
|
|
5
5
|
"browser": "./mailgun.web.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -23,12 +23,9 @@
|
|
|
23
23
|
"definition": "./index.d.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
+
"axios": "^0.27.2",
|
|
26
27
|
"base-64": "^1.0.0",
|
|
27
|
-
"bluebird": "^3.7.2",
|
|
28
|
-
"ky": "^0.25.1",
|
|
29
|
-
"ky-universal": "^0.8.2",
|
|
30
28
|
"url-join": "^4.0.1",
|
|
31
|
-
"web-streams-polyfill": "^3.0.1",
|
|
32
29
|
"webpack-merge": "^5.4.0"
|
|
33
30
|
},
|
|
34
31
|
"contributors": [
|
package/request.d.ts
CHANGED
|
@@ -1,32 +1,26 @@
|
|
|
1
1
|
import * as NodeFormData from 'form-data';
|
|
2
|
-
import RequestOptions from './interfaces/RequestOptions';
|
|
2
|
+
import { RequestOptions } from './interfaces/RequestOptions';
|
|
3
3
|
import { InputFormData } from './interfaces/IFormData';
|
|
4
4
|
import APIResponse from './interfaces/ApiResponse';
|
|
5
|
+
import { IpPoolDeleteData } from './interfaces/IpPools';
|
|
5
6
|
declare class Request {
|
|
6
7
|
private username;
|
|
7
8
|
private key;
|
|
8
9
|
private url;
|
|
9
10
|
private timeout;
|
|
10
11
|
private headers;
|
|
11
|
-
private
|
|
12
|
+
private formDataBuilder;
|
|
12
13
|
constructor(options: RequestOptions, formData: InputFormData);
|
|
13
|
-
request(method: string, url: string,
|
|
14
|
+
request(method: string, url: string, onCallOptions?: Record<string, unknown | Record<string, unknown>>): Promise<APIResponse>;
|
|
14
15
|
private getResponseBody;
|
|
15
|
-
query(method: string, url: string, query
|
|
16
|
-
command(method: string, url: string, data
|
|
17
|
-
get(url: string, query?:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
createFormData(data: any): NodeFormData | FormData;
|
|
25
|
-
private addMimeDataToFD;
|
|
26
|
-
private addFilesToFD;
|
|
27
|
-
private addCommonPropertyToFD;
|
|
28
|
-
put(url: string, data: any, options?: any): Promise<APIResponse>;
|
|
29
|
-
patch(url: string, data: any, options?: any): Promise<APIResponse>;
|
|
30
|
-
delete(url: string, data?: any, options?: any): Promise<APIResponse>;
|
|
16
|
+
query(method: string, url: string, query?: Record<string, unknown> | Array<Array<string>>, options?: Record<string, unknown>): Promise<APIResponse>;
|
|
17
|
+
command(method: string, url: string, data?: Record<string, unknown> | Record<string, unknown>[] | string | NodeFormData | FormData, options?: Record<string, unknown>, addDefaultHeaders?: boolean): Promise<APIResponse>;
|
|
18
|
+
get(url: string, query?: Record<string, unknown> | Array<Array<string>>, options?: Record<string, unknown>): Promise<APIResponse>;
|
|
19
|
+
post(url: string, data?: Record<string, unknown> | string, options?: Record<string, unknown>): Promise<APIResponse>;
|
|
20
|
+
postWithFD(url: string, data: Record<string, unknown> | Record<string, unknown>[]): Promise<APIResponse>;
|
|
21
|
+
putWithFD(url: string, data: Record<string, unknown>): Promise<APIResponse>;
|
|
22
|
+
patchWithFD(url: string, data: Record<string, unknown>): Promise<APIResponse>;
|
|
23
|
+
put(url: string, data?: Record<string, unknown> | string, options?: Record<string, unknown>): Promise<APIResponse>;
|
|
24
|
+
delete(url: string, data?: IpPoolDeleteData): Promise<APIResponse>;
|
|
31
25
|
}
|
|
32
26
|
export default Request;
|
package/version.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7.0.0
|