@crvouga/mockingbird-service-wholescripts 3.0.0 → 3.1.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/CHANGELOG.md +10 -4
- package/DISCOVERY.md +2 -2
- package/README.md +7 -7
- package/SUPPORT.md +2 -2
- package/dist/{chunk-B2V6XKPF.js → chunk-52D7WKTY.js} +4 -4
- package/dist/{chunk-B2V6XKPF.js.map → chunk-52D7WKTY.js.map} +2 -2
- package/dist/{chunk-3BL3D427.js → chunk-PUDML545.js} +5 -5
- package/dist/chunk-PUDML545.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/server.js +2 -2
- package/openapi.yaml +1 -1
- package/package.json +3 -3
- package/dist/chunk-3BL3D427.js.map +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-wholescripts
|
|
2
2
|
|
|
3
|
+
## 3.1.0 (2026-10-08)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- redesign emulator experience ([d6038c2](https://github.com/crvouga/mockingbird/commit/d6038c27eebbaa1751f02bc9305002a5b1304779))
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
|
|
11
|
+
- `@crvouga/mockingbird-service-sqlite`
|
|
12
|
+
|
|
3
13
|
## 3.0.0 (2026-10-07)
|
|
4
14
|
|
|
5
15
|
### ⚠️ Breaking changes
|
|
@@ -14,10 +24,6 @@
|
|
|
14
24
|
- typecheck the brand gate before builds ([fc36095](https://github.com/crvouga/mockingbird/commit/fc3609514de70ffe3170a5d216fb8a49f9ce7cbb))
|
|
15
25
|
- format the emulates records query ([8698872](https://github.com/crvouga/mockingbird/commit/8698872509d06002be5a8fcdc85d79f8462320c3))
|
|
16
26
|
|
|
17
|
-
### Dependencies
|
|
18
|
-
|
|
19
|
-
- `@crvouga/mockingbird-service-sqlite`
|
|
20
|
-
|
|
21
27
|
## 2.3.0 (2026-10-04)
|
|
22
28
|
|
|
23
29
|
### Features
|
package/DISCOVERY.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @crvouga/mockingbird-service-wholescripts discovery
|
|
2
2
|
|
|
3
3
|
This is the installed-package index for coding agents and tooling. All relative links resolve
|
|
4
|
-
inside `node_modules/@crvouga/mockingbird-service-wholescripts/`; no repository checkout is needed to discover the
|
|
4
|
+
inside `node_modules/@crvouga/mockingbird-service-wholescripts/`; no repository checkout is needed to discover the emulator's
|
|
5
5
|
supported surface or documented behavior.
|
|
6
6
|
|
|
7
7
|
## Capability and behavior sources
|
|
@@ -48,7 +48,7 @@ designed for assertions and diagnosis by consuming test suites.
|
|
|
48
48
|
## Report a mismatch or missing capability
|
|
49
49
|
|
|
50
50
|
Follow the [agent reporting contract](https://github.com/crvouga/mockingbird/blob/main/docs/REPORTING_ISSUES.md). Include package version,
|
|
51
|
-
operation/command, a minimal redacted request, actual
|
|
51
|
+
operation/command, a minimal redacted request, actual emulator result, expected oracle result or vendor
|
|
52
52
|
documentation, and whether the mismatch appears in the matrix. Never include keys, tokens,
|
|
53
53
|
customer data, prompts, PHI, card data, or unredacted recordings.
|
|
54
54
|
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @crvouga/mockingbird-service-wholescripts
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Local emulators. Real API contracts. Part of [Mockingbird](https://github.com/crvouga/mockingbird).
|
|
4
4
|
|
|
5
|
-
Stateful
|
|
5
|
+
Stateful emulator of the **Wholescripts** supplement fulfilment API for test suites: the product
|
|
6
6
|
catalog, the private-label (MedPax) catalog, order submit, status polling and cancel. Orders
|
|
7
|
-
move only when a test says so (an admin transition or an auto-advance path on the
|
|
7
|
+
move only when a test says so (an admin transition or an auto-advance path on the emulator clock).
|
|
8
8
|
Wholescripts sends no webhooks, so the app sees each change on its next status poll.
|
|
9
9
|
|
|
10
10
|
- Operation coverage: [SUPPORT.md](https://github.com/crvouga/mockingbird/blob/main/packages/service/wholescripts/SUPPORT.md)
|
|
@@ -23,7 +23,7 @@ with any Fetch server.
|
|
|
23
23
|
|
|
24
24
|
## Usage
|
|
25
25
|
|
|
26
|
-
Point `WHOLESCRIPTS_API_URL` at the
|
|
26
|
+
Point `WHOLESCRIPTS_API_URL` at the emulator. It is read by the backend
|
|
27
27
|
(`global-services/services/wholescripts`), the EMR (`services/wholescripts`) and the supplement scheduler
|
|
28
28
|
(`supplement_management`). Any non-empty `WHOLESCRIPTS_USERNAME` / `WHOLESCRIPTS_PASSWORD`
|
|
29
29
|
pair is accepted unless you pin one with `--username/--password`.
|
|
@@ -88,7 +88,7 @@ The backend and EMR do not map statuses.
|
|
|
88
88
|
| `GET /__admin/orders` | The namespace's orders (SKUs and quantities only). |
|
|
89
89
|
| `GET`/`PUT /__admin/catalog` | Read or replace `{products, medPaxPills, privateLabelCartons}` for the namespace. |
|
|
90
90
|
| `GET`/`PUT /__admin/settings` | `{accounts?: [{username, password}], autoAdvance?: {afterMs, path} \| null}`. |
|
|
91
|
-
| `POST /__admin/tick` | Apply every auto-advance step that is due on the
|
|
91
|
+
| `POST /__admin/tick` | Apply every auto-advance step that is due on the emulator clock (the served emulator ticks every 100 ms). |
|
|
92
92
|
|
|
93
93
|
Fault presets (`POST /__admin/faults {"preset": "<name>", "count"?: n}`; `GET /__admin/faults/presets`):
|
|
94
94
|
`submit_rejected` (200 `success: false`), `submit_timeout` (the order is placed, then the
|
|
@@ -123,8 +123,8 @@ recording exists; pass `catalog` (or `PUT /__admin/catalog`) to load recorded ro
|
|
|
123
123
|
|
|
124
124
|
| Export | Kind | Description |
|
|
125
125
|
| --- | --- | --- |
|
|
126
|
-
| `WholescriptsAPI` | class | The in-process
|
|
127
|
-
| `createRuntime` | function | The
|
|
126
|
+
| `WholescriptsAPI` | class | The in-process emulator: `fetch(request)`, `reset()`, `transition(orderNumber, {to, …})`, `tick()`, `orders()`. Options: `sqlite`, `now`, `namespace`, `catalog`, `settings`. |
|
|
127
|
+
| `createRuntime` | function | The emulator with the full service contract (health, admin, namespaces, credentials, presets). Options: `catalog`, `settings`, `tickMs`, `clock`, `seed`, `adminKey`, `onLog`. |
|
|
128
128
|
| `WHOLESCRIPTS_PRESETS` | object | Every named fault preset. |
|
|
129
129
|
| `WHOLESCRIPTS_NAMESPACE` | string | The service name, `"wholescripts"`. |
|
|
130
130
|
| `basicUsername` | function | The Basic username a request carries (how credentials map to namespaces). |
|
package/SUPPORT.md
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Generated from `openapi.yaml`; do not edit by hand.
|
|
4
4
|
|
|
5
5
|
- operations in spec: **5**
|
|
6
|
-
- supported by the
|
|
6
|
+
- supported by the emulator: **5**
|
|
7
7
|
- parity enabled: **5**
|
|
8
8
|
|
|
9
|
-
| operationId | route |
|
|
9
|
+
| operationId | route | emulator | parity | notes |
|
|
10
10
|
| --- | --- | --- | --- | --- |
|
|
11
11
|
| `GetPrivateLabelProductList` | `GET /api/Orders/PrivateLabelProductList` | ✅ supported | ✅ | |
|
|
12
12
|
| `GetProductList` | `GET /api/Orders/ProductList` | ✅ supported | ✅ | |
|