@serve.zone/dcrouter 13.11.0 → 13.12.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.
@@ -2422,6 +2422,7 @@ export const fetchEmailDomainsAction = emailDomainsStatePart.createAction(
2422
2422
 
2423
2423
  export const createEmailDomainAction = emailDomainsStatePart.createAction<{
2424
2424
  linkedDomainId: string;
2425
+ subdomain?: string;
2425
2426
  dkimSelector?: string;
2426
2427
  dkimKeySize?: number;
2427
2428
  rotateKeys?: boolean;
@@ -276,6 +276,11 @@ export class OpsViewEmailDomains extends DeesElement {
276
276
  .options=${domainOptions}
277
277
  .required=${true}
278
278
  ></dees-input-dropdown>
279
+ <dees-input-text
280
+ .key=${'subdomain'}
281
+ .label=${'Subdomain'}
282
+ .description=${'Leave empty for bare domain, e.g. "mail" for mail.example.com'}
283
+ ></dees-input-text>
279
284
  <dees-input-text
280
285
  .key=${'dkimSelector'}
281
286
  .label=${'DKIM Selector'}
@@ -316,10 +321,12 @@ export class OpsViewEmailDomains extends DeesElement {
316
321
  ? parseInt(data.dkimKeySize.key, 10)
317
322
  : parseInt(data.dkimKeySize || '2048', 10);
318
323
 
324
+ const subdomain = data.subdomain?.trim() || undefined;
319
325
  await appstate.emailDomainsStatePart.dispatchAction(
320
326
  appstate.createEmailDomainAction,
321
327
  {
322
328
  linkedDomainId,
329
+ subdomain,
323
330
  dkimSelector: data.dkimSelector || 'default',
324
331
  dkimKeySize: keySize,
325
332
  rotateKeys: Boolean(data.rotateKeys),