supersendtx 0.2.0 → 0.3.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/dist/index.d.ts CHANGED
@@ -129,6 +129,13 @@ declare class DomainsResource {
129
129
  delete(idOrName: string): Promise<{
130
130
  ok: boolean;
131
131
  }>;
132
+ /**
133
+ * Apply DNS using a Cloudflare token stored in the SuperSend TX dashboard
134
+ * (Settings → Integrations).
135
+ */
136
+ apply(idOrName: string, options?: {
137
+ provider?: 'cloudflare';
138
+ }): Promise<ApplyDnsResult$1>;
132
139
  /**
133
140
  * Fetch SuperSend TX DNS records, then write them at Cloudflare or GoDaddy
134
141
  * using the caller's provider credentials (never sent to SuperSend TX).
package/dist/index.js CHANGED
@@ -360,6 +360,19 @@ var DomainsResource = class {
360
360
  method: "DELETE"
361
361
  });
362
362
  }
363
+ /**
364
+ * Apply DNS using a Cloudflare token stored in the SuperSend TX dashboard
365
+ * (Settings → Integrations).
366
+ */
367
+ async apply(idOrName, options = {}) {
368
+ return this.client.request(`/domains/${encodeURIComponent(idOrName)}`, {
369
+ method: "POST",
370
+ body: JSON.stringify({
371
+ action: "apply",
372
+ provider: options.provider || "cloudflare"
373
+ })
374
+ });
375
+ }
363
376
  /**
364
377
  * Fetch SuperSend TX DNS records, then write them at Cloudflare or GoDaddy
365
378
  * using the caller's provider credentials (never sent to SuperSend TX).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supersendtx",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "SuperSend TX transactional email API client",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -12,7 +12,9 @@
12
12
  "import": "./dist/index.js"
13
13
  }
14
14
  },
15
- "files": ["dist"],
15
+ "files": [
16
+ "dist"
17
+ ],
16
18
  "repository": {
17
19
  "type": "git",
18
20
  "url": "git+https://github.com/Super-Send/superTX-app.git",