@crvouga/mockingbird-service-fullscript 1.8.0 → 2.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/cli.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  runCli,
4
4
  serveCommand,
5
5
  serveTarget
6
- } from "./chunk-VH7HDXIA.js";
7
- import "./chunk-L5A2NSLT.js";
6
+ } from "./chunk-EZGGE5JC.js";
7
+ import "./chunk-R7LD4QOX.js";
8
8
 
9
9
  // src/cli.ts
10
10
  var code = await runCli(
package/dist/index.d.ts CHANGED
@@ -976,6 +976,7 @@ type FullscriptRuntimeOptions = {
976
976
  sqlite?: SqliteClient;
977
977
  clock?: Clock;
978
978
  seed?: number | string;
979
+ adminPrefix?: string;
979
980
  adminKey?: string;
980
981
  onLog?: (entry: RequestLog) => void;
981
982
  settings?: Partial<Settings>;
@@ -995,8 +996,8 @@ type FullscriptRuntime = ServiceRuntime<FullscriptAPI> & {
995
996
  readonly webhooks: WebhookHub;
996
997
  };
997
998
  /**
998
- * The Fullscript mock with Mockingbird's full service contract: `/health`, `/__admin/*`,
999
- * namespaces by header, by `/ns/<name>` path prefix on FULLSCRIPT_API_URL, or by OAuth client
999
+ * The Fullscript mock with Mockingbird's full service contract: `/__admin/health`, `/__admin/*`,
1000
+ * namespaces by header, by `/__admin/ns/<name>` path prefix on FULLSCRIPT_API_URL, or by OAuth client
1000
1001
  * (for API calls), clock control, fault presets, signed webhooks and a request journal.
1001
1002
  */
1002
1003
  declare const createRuntime: (options?: FullscriptRuntimeOptions) => FullscriptRuntime;
@@ -1030,7 +1031,8 @@ type SeedOrder = {
1030
1031
  type FullscriptAPIOptions = APIOptions & {
1031
1032
  settings?: Partial<Settings>;
1032
1033
  orders?: readonly SeedOrder[];
1033
- /** The public namespace, so result PDF URLs carry a `/ns/<name>` prefix. */
1034
+ /** The public namespace, so result PDF URLs carry a `/__admin/ns/<name>` prefix. */
1035
+ adminPrefix?: string;
1034
1036
  publicNamespace?: string;
1035
1037
  /** Called for every event; the runtime signs and delivers it. */
1036
1038
  onEvent?: (event: EventRecord) => void;
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  publicEvent,
19
19
  supportedOperationIds,
20
20
  tokenCredential
21
- } from "./chunk-L5A2NSLT.js";
21
+ } from "./chunk-R7LD4QOX.js";
22
22
  export {
23
23
  DEFAULT_CLINIC,
24
24
  DEFAULT_PRACTITIONER,
package/dist/server.d.ts CHANGED
@@ -593,6 +593,7 @@ type CliOption = {
593
593
  };
594
594
  type CliValues = Record<string, string | boolean | undefined>;
595
595
  type CommonServeOptions = {
596
+ adminPrefix?: string;
596
597
  adminKey: string | undefined;
597
598
  seed: string | undefined;
598
599
  onLog: ((entry: RequestLog$1) => void) | undefined;
@@ -1403,7 +1404,8 @@ type SeedOrder = {
1403
1404
  type FullscriptAPIOptions = APIOptions & {
1404
1405
  settings?: Partial<Settings>;
1405
1406
  orders?: readonly SeedOrder[];
1406
- /** The public namespace, so result PDF URLs carry a `/ns/<name>` prefix. */
1407
+ /** The public namespace, so result PDF URLs carry a `/__admin/ns/<name>` prefix. */
1408
+ adminPrefix?: string;
1407
1409
  publicNamespace?: string;
1408
1410
  /** Called for every event; the runtime signs and delivers it. */
1409
1411
  onEvent?: (event: EventRecord) => void;
@@ -1460,6 +1462,7 @@ type FullscriptRuntimeOptions = {
1460
1462
  sqlite?: SqliteClient;
1461
1463
  clock?: Clock;
1462
1464
  seed?: number | string;
1465
+ adminPrefix?: string;
1463
1466
  adminKey?: string;
1464
1467
  onLog?: (entry: RequestLog) => void;
1465
1468
  settings?: Partial<Settings>;
package/dist/server.js CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  DEFAULT_PORT,
3
3
  createServer,
4
4
  serveTarget
5
- } from "./chunk-VH7HDXIA.js";
6
- import "./chunk-L5A2NSLT.js";
5
+ } from "./chunk-EZGGE5JC.js";
6
+ import "./chunk-R7LD4QOX.js";
7
7
  export {
8
8
  DEFAULT_PORT,
9
9
  createServer,