mailgun.js 10.4.0 → 11.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.
@@ -36,13 +36,14 @@ export type UpdateDomainTrackingResponse = {
36
36
  body: UpdatedOpenTracking;
37
37
  };
38
38
  export type OpenTrackingInfo = {
39
- active: 'yes' | 'no' | 'true' | 'false';
39
+ place_at_the_top?: 'yes' | 'no' | 'true' | 'false' | boolean;
40
+ active: 'yes' | 'no' | 'true' | 'false' | boolean;
40
41
  };
41
42
  export type ClickTrackingInfo = {
42
- active: 'yes' | 'no' | 'true' | 'false' | 'htmlonly';
43
+ active?: 'yes' | 'no' | 'true' | 'false' | 'htmlonly' | boolean;
43
44
  };
44
45
  export type UnsubscribeTrackingInfo = {
45
- active: 'yes' | 'no' | 'true' | 'false';
46
- html_footer: string;
47
- text_footer: string;
46
+ active?: 'yes' | 'no' | 'true' | 'false' | boolean;
47
+ html_footer?: string;
48
+ text_footer?: string;
48
49
  };
@@ -1,33 +1,52 @@
1
1
  export type DomainsQuery = {
2
- authority?: string;
3
- state?: 'active' | 'unverified' | 'disabled';
4
2
  limit?: number;
5
3
  skip?: number;
4
+ state?: 'active' | 'unverified' | 'disabled';
5
+ sort?: 'name:asc' | 'name: desc';
6
+ authority?: string;
7
+ search?: string;
6
8
  };
7
9
  export type DomainUpdateInfo = {
8
10
  spam_action?: 'disabled' | 'block' | 'tag';
9
11
  web_scheme?: 'http' | 'https';
10
12
  wildcard?: boolean | 'true' | 'false';
13
+ mailfrom_host?: string;
14
+ message_ttl?: number;
15
+ smtp_password?: string;
16
+ use_automatic_sender_security?: boolean | 'true' | 'false';
17
+ web_prefix?: string;
11
18
  };
12
- export type DomainUpdateInfoReq = DomainUpdateInfo & {
19
+ export type DomainUpdateInfoReq = Omit<DomainUpdateInfo, 'message_ttl'> & {
13
20
  wildcard?: 'true' | 'false';
21
+ use_automatic_sender_security?: 'true' | 'false';
14
22
  };
15
23
  export type DomainInfo = DomainUpdateInfo & {
16
24
  name: string;
17
- smtp_password: string;
18
- force_dkim_authority?: boolean | 'true' | 'false';
25
+ dkim_host_name?: string;
19
26
  dkim_key_size?: 1024 | 2048;
20
- ips?: '';
27
+ dkim_selector?: string;
28
+ encrypt_incoming_message?: boolean | 'true' | 'false';
29
+ force_dkim_authority?: boolean | 'true' | 'false';
30
+ force_root_dkim_host?: boolean | 'true' | 'false';
21
31
  pool_id?: '';
32
+ ips?: '';
22
33
  };
23
34
  export type DomainInfoReq = DomainInfo & {
24
35
  force_dkim_authority?: 'true' | 'false';
25
36
  };
26
37
  export type BoolToString = {
27
- force_dkim_authority?: DomainInfo['force_dkim_authority'];
28
- wildcard?: DomainUpdateInfo['wildcard'];
38
+ encrypt_incoming_message: DomainInfo['encrypt_incoming_message'];
39
+ force_dkim_authority: DomainInfo['force_dkim_authority'];
40
+ force_root_dkim_host: DomainInfo['force_root_dkim_host'];
41
+ wildcard: DomainInfo['wildcard'];
42
+ use_automatic_sender_security: DomainInfo['use_automatic_sender_security'];
29
43
  };
30
- export type DomainShortData = {
44
+ export type DomainData = {
45
+ id: string;
46
+ is_disabled: boolean;
47
+ web_prefix: string;
48
+ web_scheme: string;
49
+ use_automatic_sender_security: boolean;
31
50
  name: string;
32
51
  require_tls: boolean;
33
52
  skip_verification: boolean;
@@ -38,14 +57,10 @@ export type DomainShortData = {
38
57
  smtp_password: string;
39
58
  smtp_login: string;
40
59
  type: string;
60
+ dkim_host?: string;
61
+ mailfrom_host?: string;
41
62
  };
42
- export type DomainData = DomainShortData & {
43
- id: string;
44
- is_disabled: boolean;
45
- web_prefix: string;
46
- web_scheme: string;
47
- };
48
- export interface DomainsListItem extends DomainShortData {
63
+ export interface DomainsListItem extends DomainData {
49
64
  receiving_dns_records: null;
50
65
  sending_dns_records: null;
51
66
  }
@@ -81,13 +96,11 @@ export type DestroyedDomainResponse = {
81
96
  body: MessageResponse;
82
97
  };
83
98
  export type ConnectionSettings = {
84
- require_tls: boolean;
85
- skip_verification: boolean;
99
+ require_tls?: boolean;
100
+ skip_verification?: boolean;
86
101
  };
87
102
  export type ConnectionSettingsResponse = {
88
- body: {
89
- connection: ConnectionSettings;
90
- };
103
+ body: ConnectionSettings;
91
104
  status: number;
92
105
  };
93
106
  export type UpdatedConnectionSettings = {
@@ -118,6 +131,9 @@ export type UpdatedDKIMSelectorResponse = {
118
131
  body: MessageResponse;
119
132
  status: number;
120
133
  };
134
+ export type UpdatedDKIMSelectorResult = MessageResponse & {
135
+ status: number;
136
+ };
121
137
  export type WebPrefixInfo = {
122
138
  webPrefix: string;
123
139
  };
@@ -139,14 +155,23 @@ export type TDomain = {
139
155
  state: string;
140
156
  wildcard: boolean;
141
157
  spam_action: string;
142
- created_at: string;
158
+ created_at: Date;
143
159
  smtp_password: string;
144
160
  smtp_login: string;
145
161
  type: string;
146
162
  receiving_dns_records: DNSRecord[] | null;
147
163
  sending_dns_records: DNSRecord[] | null;
148
- id?: string;
149
- is_disabled?: boolean;
150
- web_prefix?: string;
151
- web_scheme?: string;
164
+ id: string;
165
+ is_disabled: boolean;
166
+ web_prefix: string;
167
+ web_scheme: string;
168
+ use_automatic_sender_security: boolean;
169
+ message?: string;
170
+ dkim_host?: string;
171
+ mailfrom_host?: string;
172
+ };
173
+ export type DomainDynamicPropsType = Pick<DomainData, 'dkim_host' | 'mailfrom_host'>;
174
+ export type DomainGetQuery = {
175
+ extended?: boolean;
176
+ with_dns?: boolean;
152
177
  };