mailgun.js 12.1.0 → 12.1.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.
@@ -1,4 +1,4 @@
1
- // mailgun.js v12.0.3 Copyright (c) 2025 Mailgun and contributors
1
+ // mailgun.js v12.1.0 Copyright (c) 2025 Mailgun and contributors
2
2
  define(['exports'], (function (exports) { 'use strict';
3
3
 
4
4
  var Resolution;
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [12.1.1](https://github.com/mailgun/mailgun.js/compare/v12.1.0...v12.1.1) (2025-10-10)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Domain template types are missing headers field ([bb84b3f](https://github.com/mailgun/mailgun.js/commits/bb84b3fb49acd60e31c22924d70930e3208e5d62))
11
+
5
12
  ## [12.1.0](https://github.com/mailgun/mailgun.js/compare/v12.0.3...v12.1.0) (2025-09-25)
6
13
 
7
14
 
@@ -1,4 +1,4 @@
1
- // mailgun.js v12.0.3 Copyright (c) 2025 Mailgun and contributors
1
+ // mailgun.js v12.1.0 Copyright (c) 2025 Mailgun and contributors
2
2
  'use strict';
3
3
 
4
4
  var Resolution;
@@ -1,4 +1,4 @@
1
- // mailgun.js v12.0.3 Copyright (c) 2025 Mailgun and contributors
1
+ // mailgun.js v12.1.0 Copyright (c) 2025 Mailgun and contributors
2
2
  var Resolution;
3
3
  (function (Resolution) {
4
4
  Resolution["HOUR"] = "hour";
@@ -1,4 +1,4 @@
1
- // mailgun.js v12.0.3 Copyright (c) 2025 Mailgun and contributors
1
+ // mailgun.js v12.1.0 Copyright (c) 2025 Mailgun and contributors
2
2
  var Resolution;
3
3
  (function (Resolution) {
4
4
  Resolution["HOUR"] = "hour";
@@ -1,6 +1,11 @@
1
1
  import { YesNo } from '../../Enums/index.js';
2
2
  import { IDomainTemplate } from '../../Interfaces/Domains/index.js';
3
3
  import { PagesList, ParsedPagesList } from '../Common/index.js';
4
+ export type DomainTemplateAllowedHeaders = {
5
+ From?: string;
6
+ 'Reply-To'?: string;
7
+ Subject?: string;
8
+ };
4
9
  export type DomainTemplateData = {
5
10
  name: string;
6
11
  description: string;
@@ -8,6 +13,8 @@ export type DomainTemplateData = {
8
13
  tag?: string;
9
14
  engine?: string;
10
15
  comment?: string;
16
+ createdBy?: string;
17
+ headers?: DomainTemplateAllowedHeaders;
11
18
  };
12
19
  export type DomainTemplateVersionData = {
13
20
  template: string;
@@ -15,6 +22,7 @@ export type DomainTemplateVersionData = {
15
22
  engine?: string;
16
23
  comment?: string;
17
24
  active?: YesNo;
25
+ headers?: DomainTemplateAllowedHeaders;
18
26
  };
19
27
  export type DomainTemplateUpdateData = {
20
28
  description: string;
@@ -23,6 +31,7 @@ export type DomainTemplateUpdateVersionData = {
23
31
  template?: string;
24
32
  comment?: string;
25
33
  active?: YesNo;
34
+ headers?: DomainTemplateAllowedHeaders;
26
35
  };
27
36
  export type DomainTemplatesQuery = {
28
37
  /** 'page' (optionally 'p') params from previous response's 'paging' object.
@@ -46,6 +55,7 @@ export type ShortTemplateVersion = {
46
55
  };
47
56
  export type TemplateVersion = ShortTemplateVersion & {
48
57
  template: string;
58
+ headers?: DomainTemplateAllowedHeaders;
49
59
  };
50
60
  export type CreateDomainTemplateAPIResponse = {
51
61
  status: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailgun.js",
3
- "version": "12.1.0",
3
+ "version": "12.1.1",
4
4
  "author": "Mailgun",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/version.md CHANGED
@@ -1 +1 @@
1
- 12.1.0
1
+ 12.1.1