@crvouga/mockingbird-service-wholescripts 0.2.0 → 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/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # Changelog — @crvouga/mockingbird-service-wholescripts
2
2
 
3
- ## 0.2.0 (2026-09-24)
3
+ ## 1.0.0 (2026-09-24)
4
+
5
+ ### ⚠️ Breaking changes
6
+
7
+ - vendor branding for every service; purge internal mocks and consumer names ([f689534](https://github.com/crvouga/mockingbird/commit/f6895343543550dafcb7d76b426cae7635e03226))
8
+
9
+ ### Dependencies
10
+
11
+ - `@crvouga/mockingbird-service-sqlite`
12
+
13
+ ## 0.2.0 (2026-09-23)
4
14
 
5
15
  ### Features
6
16
 
package/README.md CHANGED
@@ -7,7 +7,7 @@ Wholescripts sends no webhooks, so the app sees each change on its next status p
7
7
 
8
8
  - Operation coverage: [SUPPORT.md](https://github.com/crvouga/mockingbird/blob/main/packages/service/wholescripts/SUPPORT.md)
9
9
  - The vendor publishes no spec. The contract (`openapi.yaml`) is hand-authored from our
10
- consumers' zod schemas (backend and EMR `wholescripts.types.ts`) and the Makor Python client.
10
+ consumers' zod schemas (backend and EMR `wholescripts.types.ts`) and the supplement scheduler's Python client.
11
11
 
12
12
  ## Install
13
13
 
@@ -22,7 +22,7 @@ with any Fetch server.
22
22
  ## Usage
23
23
 
24
24
  Point `WHOLESCRIPTS_API_URL` at the mock. It is read by the backend
25
- (`global-services/services/wholescripts`), the EMR (`services/wholescripts`) and Makor
25
+ (`global-services/services/wholescripts`), the EMR (`services/wholescripts`) and the supplement scheduler
26
26
  (`supplement_management`). Any non-empty `WHOLESCRIPTS_USERNAME` / `WHOLESCRIPTS_PASSWORD`
27
27
  pair is accepted unless you pin one with `--username/--password`.
28
28
 
@@ -34,7 +34,7 @@ npx mockingbird-wholescripts serve --port 8803 --auto-advance "2000:Processing,C
34
34
  import { createRuntime } from "@crvouga/mockingbird-service-wholescripts"
35
35
 
36
36
  const ws = createRuntime()
37
- const auth = { authorization: `Basic ${btoa("geviti:secret")}`, "content-type": "application/json" }
37
+ const auth = { authorization: `Basic ${btoa("acme:secret")}`, "content-type": "application/json" }
38
38
 
39
39
  const submitted = (await (
40
40
  await ws.fetch(
@@ -65,7 +65,7 @@ await ws.fetch(
65
65
  | Route | Behaviour |
66
66
  | --- | --- |
67
67
  | `GET /api/Orders/PrivateLabelProductList` | `{privateLabelProducts: [], medPaxPills: [{sku, genericName, privateLabelName, quantity}], privateLabelCartons: [{sku, name, cartonImage, quantity}]}`. |
68
- | `GET /api/Orders/ProductList` | Product rows (`productName`, `sku`, `medPaxSku`, `categories`, prices, `quantity`, `defaultDosing`, optional `medPaxDetails`). `instockonly=true` keeps `quantity > 0` (the EMR), `search` matches name/SKU/brand/categories (Makor), `limit` caps. |
68
+ | `GET /api/Orders/ProductList` | Product rows (`productName`, `sku`, `medPaxSku`, `categories`, prices, `quantity`, `defaultDosing`, optional `medPaxDetails`). `instockonly=true` keeps `quantity > 0` (the EMR), `search` matches name/SKU/brand/categories (the supplement scheduler), `limit` caps. |
69
69
  | `POST /api/Orders/Submit` | `{ShippingAddress, Notes?, Items: [{Sku, Quantity, MedPaxName?, MedPaxPills?: [{Sku, Quantity, ItemTime}]}], ShippingMethod}` → `{orderNumber, success: true, msg}`. A contract violation or an unknown SKU (product, MedPax, pill or carton SKU) is still **200** with `success: false` and the reason in `msg`, which is what both consumers read. |
70
70
  | `GET /api/Orders/Status?ordernum=` | `[{orderNumber, orderDate, salesOrder, status, tracking: [{trackingNumber, carrier, trackingUrl}], message, subTotal, shipMethod, shipCharge, discount, tax, serviceFee, orderTotal}]`; `[]` for an unknown order. Totals are priced from the catalog (MedPax SKUs at their `medPaxDetails` price) plus 9.95 shipping (0 for "free" methods). |
71
71
  | `POST /api/Orders/Cancel` | `{OrderNumber}` → `{success, msg}`. Succeeds while `Pending`/`Processing` with no tracking; otherwise `success: false`. Unknown order: 404. |
@@ -73,7 +73,7 @@ await ws.fetch(
73
73
  Missing or wrong Basic credentials answer 401 `{"Message": "Authorization has been denied for this request."}`.
74
74
 
75
75
  Statuses are `Pending` (new), `Processing`, `Complete`, `Cancelled`, `Error`, or any string a
76
- test sets. How our consumers read them: Makor maps `Pending`/`Processing` to `placed` (or
76
+ test sets. How our consumers read them: the scheduler maps `Pending`/`Processing` to `placed` (or
77
77
  `shipped` once tracking exists), `Complete` to `shipped` (carrier hand-off, not delivery),
78
78
  anything containing `cancel`/`error` to `cancelled`/`failed`, and everything else to `unknown`.
79
79
  The backend and EMR do not map statuses.
@@ -90,9 +90,9 @@ The backend and EMR do not map statuses.
90
90
 
91
91
  Fault presets (`POST /__admin/faults {"preset": "<name>", "count"?: n}`; `GET /__admin/faults/presets`):
92
92
  `submit_rejected` (200 `success: false`), `submit_timeout` (the order is placed, then the
93
- connection drops: Makor's "order may have been placed" branch), `status_empty` (`[]`),
93
+ connection drops: the scheduler's "order may have been placed" branch), `status_empty` (`[]`),
94
94
  `status_schema_drift` (rows the backend's zod rejects, so it returns `null`), `server_error`
95
- (500, which Makor retries), `unauthorized` (401).
95
+ (500, which the scheduler retries), `unauthorized` (401).
96
96
 
97
97
  ### Namespaces
98
98
 
@@ -102,9 +102,9 @@ username: `PUT /__admin/credentials {"credentials": {"<WHOLESCRIPTS_USERNAME>":
102
102
  ### Corpus and seed data
103
103
 
104
104
  The default catalog is the rows our consumers' own tests use
105
- (`geviti-emr-backend/tests/unit/services/wholescripts-service.test.ts`), with their repeated
106
- `medPaxSku`s made unique, plus the Makor MedPax box `000000000200095263` and `medPaxDetails`
107
- rows the Makor catalog sync reads. `Protein Powder` (`PP001`) is out of stock. No sandbox
105
+ (the consumer app's `wholescripts-service.test.ts`), with their repeated
106
+ `medPaxSku`s made unique, plus the scheduler's MedPax box `000000000200095263` and `medPaxDetails`
107
+ rows the scheduler's catalog sync reads. `Protein Powder` (`PP001`) is out of stock. No sandbox
108
108
  recording exists; pass `catalog` (or `PUT /__admin/catalog`) to load recorded rows.
109
109
 
110
110
  ### Deliberately not modelled
@@ -128,7 +128,7 @@ recording exists; pass `catalog` (or `PUT /__admin/catalog`) to load recorded ro
128
128
  | `basicUsername` | function | The Basic username a request carries (how credentials map to namespaces). |
129
129
  | `canonicalStatus` | function | The canonical casing of a transition target (`complete` → `Complete`). |
130
130
  | `DEFAULT_CATALOG` | object | The default `{products, medPaxPills, privateLabelCartons}`. |
131
- | `MEDPAX_BOX_SKU` | string | The Makor MedPax box SKU, `000000000200095263`. |
131
+ | `MEDPAX_BOX_SKU` | string | The supplement scheduler's MedPax box SKU, `000000000200095263`. |
132
132
  | `document`, `operationIds`, `supportedOperationIds` | values | The vendored OpenAPI contract and its operation ids. |
133
133
  | `createServer`, `serveTarget`, `DEFAULT_PORT` (`./server`) | Node | Serve over `node:http` (auto-advance ticks every 100 ms); the `serve` CLI target; port 8803. |
134
134
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createRuntime
3
- } from "./chunk-ARWCVRNR.js";
3
+ } from "./chunk-WGRFFBW4.js";
4
4
 
5
5
  // ../../adapters/node/dist/cli.js
6
6
  import { readFile } from "node:fs/promises";
@@ -373,4 +373,4 @@ export {
373
373
  createServer2 as createServer,
374
374
  serveTarget
375
375
  };
376
- //# sourceMappingURL=chunk-XXM4NA4F.js.map
376
+ //# sourceMappingURL=chunk-DXX432IY.js.map
@@ -1482,7 +1482,7 @@ var restoreNamespace = (sqlite, namespace, snapshot) => {
1482
1482
  };
1483
1483
 
1484
1484
  // ../core/dist/version.js
1485
- var PACKAGE_VERSION = true ? "0.2.0" : UNRELEASED_VERSION;
1485
+ var PACKAGE_VERSION = true ? "1.0.0" : UNRELEASED_VERSION;
1486
1486
 
1487
1487
  // ../core/dist/webhooks.js
1488
1488
  var json2 = (status, body) => new Response(JSON.stringify(body), { status, headers: { "content-type": "application/json" } });
@@ -2263,7 +2263,7 @@ var DEFAULT_CATALOG = {
2263
2263
  defaultDosing: [{ time: "AM", qty: 1 }]
2264
2264
  }),
2265
2265
  product({
2266
- productName: "Longeviti Blend MedPax Box",
2266
+ productName: "Acme Longevity Blend MedPax Box",
2267
2267
  sku: MEDPAX_BOX_SKU,
2268
2268
  medPaxSku: "",
2269
2269
  categories: "MedPax",
@@ -2324,7 +2324,7 @@ var unitPrice = (catalog, sku) => {
2324
2324
  };
2325
2325
 
2326
2326
  // src/generated/openapi.ts
2327
- var document = JSON.parse(`{"openapi":"3.1.0","info":{"title":"Wholescripts supplement fulfilment API (Mockingbird subset)","description":"Stateful mock subset of the Wholescripts ordering API: the product and private-label\\n(MedPax) catalogs, order submit, status polling and cancel. Hand-authored from the\\nconsumers' zod schemas and clients (the vendor publishes no spec).\\n","version":"1","x-mockingbird-upstream":{"note":"Hand-authored from the wire shapes our consumers read and write (backend and EMR wholescripts.types.ts zod schemas, the Makor wholescripts client, adapter and mappers)."}},"servers":[{"url":"https://api.wholescripts.com"}],"security":[{"basicAuth":[]}],"paths":{"/api/Orders/PrivateLabelProductList":{"get":{"operationId":"GetPrivateLabelProductList","x-mockingbird":{"supported":true,"parity":{"enabled":true,"safe":true}},"responses":{"200":{"description":"Private-label (MedPax) catalog","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateLabelProductList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/Orders/ProductList":{"get":{"operationId":"GetProductList","x-mockingbird":{"supported":true,"parity":{"enabled":true,"safe":true}},"parameters":[{"name":"instockonly","in":"query","required":false,"description":"\`true\` keeps only rows with quantity > 0 (the EMR sends it).","schema":{"type":"string","enum":["true","false"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"search","in":"query","required":false,"description":"Case-insensitive match on name, SKU, MedPax SKU, brand or categories (Makor).","schema":{"type":"string","maxLength":40}}],"responses":{"200":{"description":"Products","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Product"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/Orders/Submit":{"post":{"operationId":"SubmitOrder","x-mockingbird":{"supported":true,"parity":{"enabled":true,"safe":false}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderSubmitRequest"}}}},"responses":{"200":{"description":"Submit outcome. A rejected order (bad body, unknown SKU, payment failure) is still 200, with success false and the reason in msg.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderSubmitResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/Orders/Status":{"get":{"operationId":"GetOrderStatus","x-mockingbird":{"supported":true,"parity":{"enabled":true,"safe":true}},"parameters":[{"name":"ordernum","in":"query","required":true,"schema":{"type":"string","x-mockingbird-resource-ref":{"type":"order","missing":"000000"}}}],"responses":{"200":{"description":"The order's status rows (empty for an unknown order number)","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrderStatus"}}}}},"400":{"description":"Missing ordernum","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AspNetError"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/Orders/Cancel":{"post":{"operationId":"CancelOrder","x-mockingbird":{"supported":true,"parity":{"enabled":true,"safe":false}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["OrderNumber"],"properties":{"OrderNumber":{"type":"string","x-mockingbird-resource-ref":{"type":"order","missing":"000000"}}}}}}},"responses":{"200":{"description":"Cancel outcome; success false when the order has progressed too far","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelResponse"}}}},"400":{"description":"Missing OrderNumber","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"Unknown order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelResponse"}}}}}}}},"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}},"responses":{"Unauthorized":{"description":"Missing or wrong Basic credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AspNetError"}}}}},"schemas":{"AspNetError":{"type":"object","required":["Message"],"properties":{"Message":{"type":"string"}}},"DefaultDosing":{"type":"object","required":["time","qty"],"properties":{"time":{"type":"string"},"qty":{"type":"number"}}},"MedPaxDetails":{"type":"object","required":["name","genericName","quantity","wholesalePrice","retailPrice"],"properties":{"name":{"type":"string"},"genericName":{"type":"string"},"quantity":{"type":"number"},"wholesalePrice":{"type":"number"},"retailPrice":{"type":"number"}}},"Product":{"type":"object","required":["productName","sku","medPaxSku","categories","retailPrice","upc","descriptionShort","brand","productImage","quantity","countUnit","wholesalePrice","supplementFactsHTML","defaultDosing"],"properties":{"productName":{"type":"string"},"sku":{"type":"string","x-mockingbird-resource":{"type":"sku","identity":true}},"medPaxSku":{"type":"string"},"categories":{"type":"string"},"retailPrice":{"type":"number"},"upc":{"type":"string"},"descriptionShort":{"type":"string"},"descriptionFull":{"type":"string"},"brand":{"type":"string"},"productImage":{"type":"string"},"quantity":{"type":"number"},"countUnit":{"type":"string"},"wholesalePrice":{"type":"number"},"supplementFactsHTML":{"type":"string"},"defaultDosing":{"type":"array","items":{"$ref":"#/components/schemas/DefaultDosing"}},"medPaxDetails":{"oneOf":[{"$ref":"#/components/schemas/MedPaxDetails"},{"type":"null"}]}}},"PrivateLabelProductList":{"type":"object","required":["privateLabelProducts","medPaxPills","privateLabelCartons"],"properties":{"privateLabelProducts":{"type":"array","items":{}},"medPaxPills":{"type":"array","items":{"type":"object","required":["sku","genericName","privateLabelName","quantity"],"properties":{"sku":{"type":"string","x-mockingbird-resource":{"type":"sku","identity":true}},"genericName":{"type":"string"},"privateLabelName":{"type":"string"},"quantity":{"type":"number"}}}},"privateLabelCartons":{"type":"array","items":{"type":"object","required":["sku","name","cartonImage","quantity"],"properties":{"sku":{"type":"string","x-mockingbird-resource":{"type":"sku","identity":true}},"name":{"type":"string"},"cartonImage":{"type":"string"},"quantity":{"type":"number"}}}}}},"MedPaxPill":{"type":"object","required":["Sku","Quantity","ItemTime"],"properties":{"productId":{"type":"string","maxLength":64},"Sku":{"type":"string","x-mockingbird-resource-ref":{"type":"sku","missing":"000000000000000000"}},"Quantity":{"type":"integer","minimum":1,"maximum":1000},"ItemTime":{"type":"string","enum":["AM","PM","AM with food","PM with food"]}}},"OrderItem":{"type":"object","required":["Sku","Quantity"],"properties":{"Sku":{"type":"string","x-mockingbird-resource-ref":{"type":"sku","missing":"000000000000000000"}},"Quantity":{"type":"integer","minimum":1,"maximum":1000},"MedPaxName":{"type":["string","null"],"maxLength":60},"MedPaxPills":{"type":["array","null"],"maxItems":4,"items":{"$ref":"#/components/schemas/MedPaxPill"}}}},"OrderSubmitRequest":{"type":"object","required":["ShippingAddress","Items","ShippingMethod"],"properties":{"ShippingAddress":{"type":"object","required":["FName","LName","Address1","City","State","Zip"],"properties":{"FName":{"type":"string","minLength":1,"maxLength":40},"LName":{"type":"string","minLength":1,"maxLength":40},"Address1":{"type":"string","minLength":1,"maxLength":80},"Address2":{"type":["string","null"],"maxLength":80},"City":{"type":"string","minLength":1,"maxLength":40},"State":{"type":"string","pattern":"^[A-Z]{2}$"},"Zip":{"type":"string","pattern":"^[0-9]{5}(-[0-9]{4})?$"},"Email":{"type":"string","format":"email","maxLength":120}}},"Notes":{"type":["string","null"],"maxLength":500},"Items":{"type":"array","minItems":1,"maxItems":4,"items":{"$ref":"#/components/schemas/OrderItem"}},"ShippingMethod":{"type":"string","minLength":1,"maxLength":40}}},"OrderSubmitResponse":{"type":"object","required":["orderNumber","success","msg"],"properties":{"orderNumber":{"type":"string","x-mockingbird-resource":{"type":"order","identity":true}},"success":{"type":"boolean"},"msg":{"type":"string"}}},"Tracking":{"type":"object","required":["trackingNumber","carrier"],"properties":{"trackingNumber":{"type":"string"},"carrier":{"type":"string"},"trackingUrl":{"type":"string"}}},"OrderStatus":{"type":"object","required":["orderNumber","orderDate","salesOrder","status","tracking","message","subTotal","shipMethod","shipCharge","discount","tax","serviceFee","orderTotal"],"properties":{"orderNumber":{"type":"string"},"orderDate":{"type":"string","x-mockingbird-volatile":{"kind":"timestamp"}},"salesOrder":{"type":"string"},"status":{"type":"string"},"tracking":{"type":"array","items":{"$ref":"#/components/schemas/Tracking"}},"message":{"type":"string"},"subTotal":{"type":"number"},"shipMethod":{"type":"string"},"shipCharge":{"type":"number"},"discount":{"type":"number"},"tax":{"type":"number"},"serviceFee":{"type":"number"},"orderTotal":{"type":"number"}}},"CancelResponse":{"type":"object","required":["success","msg"],"properties":{"success":{"type":"boolean"},"msg":{"type":"string"}}}}}}`);
2327
+ var document = JSON.parse(`{"openapi":"3.1.0","info":{"title":"Wholescripts supplement fulfilment API (Mockingbird subset)","description":"Stateful mock subset of the Wholescripts ordering API: the product and private-label\\n(MedPax) catalogs, order submit, status polling and cancel. Hand-authored from the\\nconsumers' zod schemas and clients (the vendor publishes no spec).\\n","version":"1","x-mockingbird-upstream":{"note":"Hand-authored from the wire shapes our consumers read and write (backend and EMR wholescripts.types.ts zod schemas, the supplement scheduler's Python client, adapter and mappers)."}},"servers":[{"url":"https://api.wholescripts.com"}],"security":[{"basicAuth":[]}],"paths":{"/api/Orders/PrivateLabelProductList":{"get":{"operationId":"GetPrivateLabelProductList","x-mockingbird":{"supported":true,"parity":{"enabled":true,"safe":true}},"responses":{"200":{"description":"Private-label (MedPax) catalog","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateLabelProductList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/Orders/ProductList":{"get":{"operationId":"GetProductList","x-mockingbird":{"supported":true,"parity":{"enabled":true,"safe":true}},"parameters":[{"name":"instockonly","in":"query","required":false,"description":"\`true\` keeps only rows with quantity > 0 (the EMR sends it).","schema":{"type":"string","enum":["true","false"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"search","in":"query","required":false,"description":"Case-insensitive match on name, SKU, MedPax SKU, brand or categories (the supplement scheduler).","schema":{"type":"string","maxLength":40}}],"responses":{"200":{"description":"Products","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Product"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/Orders/Submit":{"post":{"operationId":"SubmitOrder","x-mockingbird":{"supported":true,"parity":{"enabled":true,"safe":false}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderSubmitRequest"}}}},"responses":{"200":{"description":"Submit outcome. A rejected order (bad body, unknown SKU, payment failure) is still 200, with success false and the reason in msg.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderSubmitResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/Orders/Status":{"get":{"operationId":"GetOrderStatus","x-mockingbird":{"supported":true,"parity":{"enabled":true,"safe":true}},"parameters":[{"name":"ordernum","in":"query","required":true,"schema":{"type":"string","x-mockingbird-resource-ref":{"type":"order","missing":"000000"}}}],"responses":{"200":{"description":"The order's status rows (empty for an unknown order number)","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrderStatus"}}}}},"400":{"description":"Missing ordernum","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AspNetError"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/Orders/Cancel":{"post":{"operationId":"CancelOrder","x-mockingbird":{"supported":true,"parity":{"enabled":true,"safe":false}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["OrderNumber"],"properties":{"OrderNumber":{"type":"string","x-mockingbird-resource-ref":{"type":"order","missing":"000000"}}}}}}},"responses":{"200":{"description":"Cancel outcome; success false when the order has progressed too far","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelResponse"}}}},"400":{"description":"Missing OrderNumber","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"Unknown order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelResponse"}}}}}}}},"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}},"responses":{"Unauthorized":{"description":"Missing or wrong Basic credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AspNetError"}}}}},"schemas":{"AspNetError":{"type":"object","required":["Message"],"properties":{"Message":{"type":"string"}}},"DefaultDosing":{"type":"object","required":["time","qty"],"properties":{"time":{"type":"string"},"qty":{"type":"number"}}},"MedPaxDetails":{"type":"object","required":["name","genericName","quantity","wholesalePrice","retailPrice"],"properties":{"name":{"type":"string"},"genericName":{"type":"string"},"quantity":{"type":"number"},"wholesalePrice":{"type":"number"},"retailPrice":{"type":"number"}}},"Product":{"type":"object","required":["productName","sku","medPaxSku","categories","retailPrice","upc","descriptionShort","brand","productImage","quantity","countUnit","wholesalePrice","supplementFactsHTML","defaultDosing"],"properties":{"productName":{"type":"string"},"sku":{"type":"string","x-mockingbird-resource":{"type":"sku","identity":true}},"medPaxSku":{"type":"string"},"categories":{"type":"string"},"retailPrice":{"type":"number"},"upc":{"type":"string"},"descriptionShort":{"type":"string"},"descriptionFull":{"type":"string"},"brand":{"type":"string"},"productImage":{"type":"string"},"quantity":{"type":"number"},"countUnit":{"type":"string"},"wholesalePrice":{"type":"number"},"supplementFactsHTML":{"type":"string"},"defaultDosing":{"type":"array","items":{"$ref":"#/components/schemas/DefaultDosing"}},"medPaxDetails":{"oneOf":[{"$ref":"#/components/schemas/MedPaxDetails"},{"type":"null"}]}}},"PrivateLabelProductList":{"type":"object","required":["privateLabelProducts","medPaxPills","privateLabelCartons"],"properties":{"privateLabelProducts":{"type":"array","items":{}},"medPaxPills":{"type":"array","items":{"type":"object","required":["sku","genericName","privateLabelName","quantity"],"properties":{"sku":{"type":"string","x-mockingbird-resource":{"type":"sku","identity":true}},"genericName":{"type":"string"},"privateLabelName":{"type":"string"},"quantity":{"type":"number"}}}},"privateLabelCartons":{"type":"array","items":{"type":"object","required":["sku","name","cartonImage","quantity"],"properties":{"sku":{"type":"string","x-mockingbird-resource":{"type":"sku","identity":true}},"name":{"type":"string"},"cartonImage":{"type":"string"},"quantity":{"type":"number"}}}}}},"MedPaxPill":{"type":"object","required":["Sku","Quantity","ItemTime"],"properties":{"productId":{"type":"string","maxLength":64},"Sku":{"type":"string","x-mockingbird-resource-ref":{"type":"sku","missing":"000000000000000000"}},"Quantity":{"type":"integer","minimum":1,"maximum":1000},"ItemTime":{"type":"string","enum":["AM","PM","AM with food","PM with food"]}}},"OrderItem":{"type":"object","required":["Sku","Quantity"],"properties":{"Sku":{"type":"string","x-mockingbird-resource-ref":{"type":"sku","missing":"000000000000000000"}},"Quantity":{"type":"integer","minimum":1,"maximum":1000},"MedPaxName":{"type":["string","null"],"maxLength":60},"MedPaxPills":{"type":["array","null"],"maxItems":4,"items":{"$ref":"#/components/schemas/MedPaxPill"}}}},"OrderSubmitRequest":{"type":"object","required":["ShippingAddress","Items","ShippingMethod"],"properties":{"ShippingAddress":{"type":"object","required":["FName","LName","Address1","City","State","Zip"],"properties":{"FName":{"type":"string","minLength":1,"maxLength":40},"LName":{"type":"string","minLength":1,"maxLength":40},"Address1":{"type":"string","minLength":1,"maxLength":80},"Address2":{"type":["string","null"],"maxLength":80},"City":{"type":"string","minLength":1,"maxLength":40},"State":{"type":"string","pattern":"^[A-Z]{2}$"},"Zip":{"type":"string","pattern":"^[0-9]{5}(-[0-9]{4})?$"},"Email":{"type":"string","format":"email","maxLength":120}}},"Notes":{"type":["string","null"],"maxLength":500},"Items":{"type":"array","minItems":1,"maxItems":4,"items":{"$ref":"#/components/schemas/OrderItem"}},"ShippingMethod":{"type":"string","minLength":1,"maxLength":40}}},"OrderSubmitResponse":{"type":"object","required":["orderNumber","success","msg"],"properties":{"orderNumber":{"type":"string","x-mockingbird-resource":{"type":"order","identity":true}},"success":{"type":"boolean"},"msg":{"type":"string"}}},"Tracking":{"type":"object","required":["trackingNumber","carrier"],"properties":{"trackingNumber":{"type":"string"},"carrier":{"type":"string"},"trackingUrl":{"type":"string"}}},"OrderStatus":{"type":"object","required":["orderNumber","orderDate","salesOrder","status","tracking","message","subTotal","shipMethod","shipCharge","discount","tax","serviceFee","orderTotal"],"properties":{"orderNumber":{"type":"string"},"orderDate":{"type":"string","x-mockingbird-volatile":{"kind":"timestamp"}},"salesOrder":{"type":"string"},"status":{"type":"string"},"tracking":{"type":"array","items":{"$ref":"#/components/schemas/Tracking"}},"message":{"type":"string"},"subTotal":{"type":"number"},"shipMethod":{"type":"string"},"shipCharge":{"type":"number"},"discount":{"type":"number"},"tax":{"type":"number"},"serviceFee":{"type":"number"},"orderTotal":{"type":"number"}}},"CancelResponse":{"type":"object","required":["success","msg"],"properties":{"success":{"type":"boolean"},"msg":{"type":"string"}}}}}}`);
2328
2328
  var operationIds = ["GetPrivateLabelProductList", "GetProductList", "SubmitOrder", "GetOrderStatus", "CancelOrder"];
2329
2329
  var supportedOperationIds = ["GetPrivateLabelProductList", "GetProductList", "SubmitOrder", "GetOrderStatus", "CancelOrder"];
2330
2330
 
@@ -2375,15 +2375,15 @@ var WholescriptsState = class {
2375
2375
  // src/runtime.ts
2376
2376
  var WHOLESCRIPTS_PRESETS = {
2377
2377
  submit_rejected: {
2378
- description: "Submit answers 200 {success: false, msg} (the backend and Makor both reject it)",
2378
+ description: "Submit answers 200 {success: false, msg} (the backend and the scheduler both reject it)",
2379
2379
  rules: [{ operationId: "SubmitOrder", effect: "submit_rejected" }]
2380
2380
  },
2381
2381
  submit_timeout: {
2382
- description: "Submit places the order, then drops the connection (Makor's 'order may have been placed')",
2382
+ description: "Submit places the order, then drops the connection (the scheduler's 'order may have been placed')",
2383
2383
  rules: [{ operationId: "SubmitOrder", effect: "submit_timeout" }]
2384
2384
  },
2385
2385
  status_empty: {
2386
- description: "Status answers [] even for a known order (backend returns null, Makor 'unknown')",
2386
+ description: "Status answers [] even for a known order (backend returns null, the scheduler 'unknown')",
2387
2387
  rules: [{ operationId: "GetOrderStatus", effect: "status_empty" }]
2388
2388
  },
2389
2389
  status_schema_drift: {
@@ -2391,7 +2391,7 @@ var WHOLESCRIPTS_PRESETS = {
2391
2391
  rules: [{ operationId: "GetOrderStatus", effect: "status_schema_drift" }]
2392
2392
  },
2393
2393
  server_error: {
2394
- description: "Every call answers 500 (Makor retries 5xx; the backend throws)",
2394
+ description: "Every call answers 500 (the scheduler retries 5xx; the backend throws)",
2395
2395
  rules: [{ status: 500, body: { Message: "An error has occurred." } }]
2396
2396
  },
2397
2397
  unauthorized: {
@@ -2782,4 +2782,4 @@ export {
2782
2782
  canonicalStatus,
2783
2783
  WholescriptsAPI
2784
2784
  };
2785
- //# sourceMappingURL=chunk-ARWCVRNR.js.map
2785
+ //# sourceMappingURL=chunk-WGRFFBW4.js.map