@easybits.cloud/mailmask 0.4.8 → 0.4.9

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.js CHANGED
@@ -125,6 +125,14 @@ var DnsResource = class {
125
125
  preset(domainId, preset, target, subdomain) {
126
126
  return this.req(`/api/domains/${domainId}/dns/preset`, { method: "POST", body: JSON.stringify({ preset, target, subdomain }) });
127
127
  }
128
+ /** Vista previa de una plantilla: lo que escribiría y lo que hay hoy, sin tocar nada. */
129
+ presetPreview(domainId, preset, target, subdomain) {
130
+ return this.req(`/api/domains/${domainId}/dns/preset`, { method: "POST", body: JSON.stringify({ preset, target, subdomain, dryRun: true }) });
131
+ }
132
+ /** A dónde apunta el sitio (raíz, www y subdominios), qué plataforma es, qué está mal y si responde por HTTPS. */
133
+ website(domainId) {
134
+ return this.req(`/api/domains/${domainId}/website`);
135
+ }
128
136
  };
129
137
  var AliasesResource = class {
130
138
  constructor(req, raw) {