@rapidmx/autodiscover-plugin 1.0.0-beta.2 → 1.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.
package/dist/lib/index.js CHANGED
@@ -10,18 +10,15 @@
10
10
  * exported from this package's `./mongo`/`./sql` subpaths instead, alongside every other entity/route/job this
11
11
  * library defines - see `src/eas/index.ts`'s identical doc comment for the same convention.
12
12
  *
13
- * A deployment mounts Autodiscover with a trivial subclass supplying its own EAS URL:
14
- * ```ts
15
- * import { AutodiscoverRouteMongo } from "@rapidrest/mail/mongo";
16
- * import { RouteDecorators } from "@rapidrest/service-core";
17
- * const { Route } = RouteDecorators;
18
- *
19
- * @Route("/autodiscover")
20
- * export class MyAutodiscoverRoute extends AutodiscoverRouteMongo {
21
- * protected readonly easUrl = "https://mail.example.com/Microsoft-Server-ActiveSync";
22
- * protected readonly mapiUrl = "https://mail.example.com/mapi/emsmdb";
23
- * }
24
- * ```
13
+ * A deployment mounts Autodiscover by loading the ready-to-mount `AutodiscoverRouteMongo`/`AutodiscoverRouteSQL`
14
+ * class from this plugin's `./mongo`/`./sql` entry point directly - no subclass or URLs to supply, since
15
+ * `BaseAutodiscoverRoute` builds the EAS (`easUrl`) and MAPI (`mapiUrl`) endpoint URLs itself from the
16
+ * `mail:autodiscover:public_url` config setting (also exposed as this plugin's own "Public server URL"
17
+ * admin-console setting - see `package.json`'s `rapidmx.plugin.settings`), and only advertises each protocol
18
+ * while its own plugin (`@rapidmx/activesync-plugin`, `@rapidmx/mapi-plugin`) is loaded. Set
19
+ * `mail:autodiscover:public_url` to this deployment's externally-reachable `https://` base URL (e.g.
20
+ * `https://mail.example.com`) for either endpoint to be advertised at all - see `BaseAutodiscoverRoute`'s own
21
+ * doc comment for the exact validation rules.
25
22
  */
26
23
  export * from "./AutodiscoverXml.js";
27
24
  export * from "./BaseAutodiscoverRoute.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,mCAAmC;AACnC,+EAA+E;AAE/E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,mCAAmC;AACnC,+EAA+E;AAE/E;;;;;;;;;;;;;;;;;GAiBG;AACH,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC"}
@@ -6,18 +6,15 @@
6
6
  * exported from this package's `./mongo`/`./sql` subpaths instead, alongside every other entity/route/job this
7
7
  * library defines - see `src/eas/index.ts`'s identical doc comment for the same convention.
8
8
  *
9
- * A deployment mounts Autodiscover with a trivial subclass supplying its own EAS URL:
10
- * ```ts
11
- * import { AutodiscoverRouteMongo } from "@rapidrest/mail/mongo";
12
- * import { RouteDecorators } from "@rapidrest/service-core";
13
- * const { Route } = RouteDecorators;
14
- *
15
- * @Route("/autodiscover")
16
- * export class MyAutodiscoverRoute extends AutodiscoverRouteMongo {
17
- * protected readonly easUrl = "https://mail.example.com/Microsoft-Server-ActiveSync";
18
- * protected readonly mapiUrl = "https://mail.example.com/mapi/emsmdb";
19
- * }
20
- * ```
9
+ * A deployment mounts Autodiscover by loading the ready-to-mount `AutodiscoverRouteMongo`/`AutodiscoverRouteSQL`
10
+ * class from this plugin's `./mongo`/`./sql` entry point directly - no subclass or URLs to supply, since
11
+ * `BaseAutodiscoverRoute` builds the EAS (`easUrl`) and MAPI (`mapiUrl`) endpoint URLs itself from the
12
+ * `mail:autodiscover:public_url` config setting (also exposed as this plugin's own "Public server URL"
13
+ * admin-console setting - see `package.json`'s `rapidmx.plugin.settings`), and only advertises each protocol
14
+ * while its own plugin (`@rapidmx/activesync-plugin`, `@rapidmx/mapi-plugin`) is loaded. Set
15
+ * `mail:autodiscover:public_url` to this deployment's externally-reachable `https://` base URL (e.g.
16
+ * `https://mail.example.com`) for either endpoint to be advertised at all - see `BaseAutodiscoverRoute`'s own
17
+ * doc comment for the exact validation rules.
21
18
  */
22
19
  export * from "./AutodiscoverXml.js";
23
20
  export * from "./BaseAutodiscoverRoute.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rapidmx/autodiscover-plugin",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0",
4
4
  "description": "A RapidMX plugin that provides Autodiscover protocol support.",
5
5
  "repository": "https://github.com/RapidMX/autodiscover.git",
6
6
  "author": "RapidREST <rapidrests@gmail.com>",
@@ -97,7 +97,8 @@
97
97
  "key": "mail:autodiscover:public_url",
98
98
  "label": "Public server URL",
99
99
  "type": "string",
100
- "help": "The address clients reach this server at, for example https://mail.example.com. Nothing is advertised until this is set."
100
+ "default": "",
101
+ "help": "The address clients reach this server at, for example https://mail.example.com - the same host your DNS/MX setup already points at. Nothing is advertised until this is set. Also add a CNAME (autodiscover.<domain> -> this host) or, to avoid needing a second TLS certificate, a DNS SRV record (_autodiscover._tcp.<domain> -> this host) so mail clients can find this server automatically - see this deployment's Domain DNS setup checklist."
101
102
  }
102
103
  ],
103
104
  "requires": {