@crvouga/mockingbird-service-junction 3.6.0 → 3.7.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 +17 -1
- package/README.md +214 -7
- package/SUPPORT.md +4 -2
- package/dist/{chunk-ZRF3DDJ4.js → chunk-27N4VA23.js} +1042 -275
- package/dist/chunk-27N4VA23.js.map +7 -0
- package/dist/{chunk-WMJJYHRV.js → chunk-NTGGNJKR.js} +137 -17
- package/dist/chunk-NTGGNJKR.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +317 -107
- package/dist/index.js +1 -1
- package/dist/server.d.ts +347 -96
- package/dist/server.js +2 -2
- package/openapi.yaml +207 -0
- package/package.json +1 -1
- package/dist/chunk-WMJJYHRV.js.map +0 -7
- package/dist/chunk-ZRF3DDJ4.js.map +0 -7
package/openapi.yaml
CHANGED
|
@@ -343,6 +343,42 @@ paths:
|
|
|
343
343
|
application/json:
|
|
344
344
|
schema:
|
|
345
345
|
$ref: "#/components/schemas/LabTestResourcesResponse"
|
|
346
|
+
/v3/lab_test/estimate_order_set_pricing:
|
|
347
|
+
post:
|
|
348
|
+
operationId: estimate_order_set_pricing_v3_lab_test_estimate_order_set_pricing_post
|
|
349
|
+
x-mockingbird:
|
|
350
|
+
supported: true
|
|
351
|
+
parity:
|
|
352
|
+
enabled: false
|
|
353
|
+
safe: true
|
|
354
|
+
reason: >-
|
|
355
|
+
prices are contract-owned; the emulator prices from the configured catalog
|
|
356
|
+
(lab test price, marker price) and models the documented shape only
|
|
357
|
+
requestBody:
|
|
358
|
+
required: true
|
|
359
|
+
content:
|
|
360
|
+
application/json:
|
|
361
|
+
schema:
|
|
362
|
+
$ref: "#/components/schemas/EstimateOrderSetPricingBody"
|
|
363
|
+
responses:
|
|
364
|
+
"200":
|
|
365
|
+
description: Successful Response
|
|
366
|
+
content:
|
|
367
|
+
application/json:
|
|
368
|
+
schema:
|
|
369
|
+
$ref: "#/components/schemas/EstimateOrderSetPricingResponse"
|
|
370
|
+
"400":
|
|
371
|
+
description: Bad Request
|
|
372
|
+
content:
|
|
373
|
+
application/json:
|
|
374
|
+
schema:
|
|
375
|
+
$ref: "#/components/schemas/HTTPValidationError"
|
|
376
|
+
"422":
|
|
377
|
+
description: Validation Error
|
|
378
|
+
content:
|
|
379
|
+
application/json:
|
|
380
|
+
schema:
|
|
381
|
+
$ref: "#/components/schemas/HTTPValidationError"
|
|
346
382
|
/v3/lab_test/lab_account:
|
|
347
383
|
get:
|
|
348
384
|
operationId: get_team_lab_accounts_v3_lab_test_lab_account_get
|
|
@@ -553,6 +589,82 @@ paths:
|
|
|
553
589
|
type: array
|
|
554
590
|
items:
|
|
555
591
|
$ref: "#/components/schemas/ClientFacingLab"
|
|
592
|
+
/v3/lab_tests/markers:
|
|
593
|
+
get:
|
|
594
|
+
operationId: get_markers_v3_lab_tests_markers_get
|
|
595
|
+
x-mockingbird:
|
|
596
|
+
supported: true
|
|
597
|
+
parity:
|
|
598
|
+
enabled: false
|
|
599
|
+
safe: true
|
|
600
|
+
reason: >-
|
|
601
|
+
the marker inventory is the team's catalog (and any configured marker catalog);
|
|
602
|
+
prices and availability are account-owned, so the emulator models the documented
|
|
603
|
+
shape and filters, not a live inventory
|
|
604
|
+
parameters:
|
|
605
|
+
- name: lab_id
|
|
606
|
+
in: query
|
|
607
|
+
required: false
|
|
608
|
+
schema:
|
|
609
|
+
type: array
|
|
610
|
+
items:
|
|
611
|
+
type: integer
|
|
612
|
+
- name: lab_slug
|
|
613
|
+
in: query
|
|
614
|
+
required: false
|
|
615
|
+
schema:
|
|
616
|
+
type: ["string", "null"]
|
|
617
|
+
- name: name
|
|
618
|
+
in: query
|
|
619
|
+
required: false
|
|
620
|
+
schema:
|
|
621
|
+
type: string
|
|
622
|
+
default: ""
|
|
623
|
+
- name: a_la_carte_enabled
|
|
624
|
+
in: query
|
|
625
|
+
required: false
|
|
626
|
+
schema:
|
|
627
|
+
type: ["boolean", "null"]
|
|
628
|
+
- name: include_pricing
|
|
629
|
+
in: query
|
|
630
|
+
required: false
|
|
631
|
+
schema:
|
|
632
|
+
type: boolean
|
|
633
|
+
default: false
|
|
634
|
+
- name: lab_account_id
|
|
635
|
+
in: query
|
|
636
|
+
required: false
|
|
637
|
+
schema:
|
|
638
|
+
type: ["string", "null"]
|
|
639
|
+
format: uuid
|
|
640
|
+
- name: page
|
|
641
|
+
in: query
|
|
642
|
+
required: false
|
|
643
|
+
schema:
|
|
644
|
+
type: integer
|
|
645
|
+
minimum: 1
|
|
646
|
+
default: 1
|
|
647
|
+
- name: size
|
|
648
|
+
in: query
|
|
649
|
+
required: false
|
|
650
|
+
schema:
|
|
651
|
+
type: integer
|
|
652
|
+
minimum: 1
|
|
653
|
+
maximum: 100
|
|
654
|
+
default: 50
|
|
655
|
+
responses:
|
|
656
|
+
"200":
|
|
657
|
+
description: Successful Response
|
|
658
|
+
content:
|
|
659
|
+
application/json:
|
|
660
|
+
schema:
|
|
661
|
+
$ref: "#/components/schemas/GetMarkersResponse"
|
|
662
|
+
"422":
|
|
663
|
+
description: Validation Error
|
|
664
|
+
content:
|
|
665
|
+
application/json:
|
|
666
|
+
schema:
|
|
667
|
+
$ref: "#/components/schemas/HTTPValidationError"
|
|
556
668
|
/v3/lab_tests/{lab_test_id}/markers:
|
|
557
669
|
parameters:
|
|
558
670
|
- name: lab_test_id
|
|
@@ -2282,6 +2394,101 @@ components:
|
|
|
2282
2394
|
type: ["integer", "null"]
|
|
2283
2395
|
pages:
|
|
2284
2396
|
type: ["integer", "null"]
|
|
2397
|
+
pricing:
|
|
2398
|
+
anyOf:
|
|
2399
|
+
- $ref: "#/components/schemas/MarkerPricingResponse"
|
|
2400
|
+
- type: "null"
|
|
2401
|
+
MarkerPricingResponse:
|
|
2402
|
+
type: object
|
|
2403
|
+
required: [data]
|
|
2404
|
+
properties:
|
|
2405
|
+
currency:
|
|
2406
|
+
type: string
|
|
2407
|
+
default: USD
|
|
2408
|
+
data:
|
|
2409
|
+
type: object
|
|
2410
|
+
additionalProperties:
|
|
2411
|
+
$ref: "#/components/schemas/Pricing"
|
|
2412
|
+
Pricing:
|
|
2413
|
+
type: object
|
|
2414
|
+
additionalProperties: true
|
|
2415
|
+
properties:
|
|
2416
|
+
base_amount_minor:
|
|
2417
|
+
type: integer
|
|
2418
|
+
modifiers:
|
|
2419
|
+
type: ["array", "null"]
|
|
2420
|
+
items:
|
|
2421
|
+
type: object
|
|
2422
|
+
additionalProperties: true
|
|
2423
|
+
unspecified:
|
|
2424
|
+
type: string
|
|
2425
|
+
EstimateOrderSetPricingBody:
|
|
2426
|
+
type: object
|
|
2427
|
+
required: [order_sets, modality, us_state]
|
|
2428
|
+
properties:
|
|
2429
|
+
order_sets:
|
|
2430
|
+
type: array
|
|
2431
|
+
minItems: 1
|
|
2432
|
+
items:
|
|
2433
|
+
type: object
|
|
2434
|
+
additionalProperties: true
|
|
2435
|
+
properties:
|
|
2436
|
+
lab_test_ids:
|
|
2437
|
+
type: ["array", "null"]
|
|
2438
|
+
items:
|
|
2439
|
+
type: string
|
|
2440
|
+
add_on:
|
|
2441
|
+
type: ["object", "null"]
|
|
2442
|
+
additionalProperties: true
|
|
2443
|
+
properties:
|
|
2444
|
+
marker_ids:
|
|
2445
|
+
type: ["array", "null"]
|
|
2446
|
+
items:
|
|
2447
|
+
type: integer
|
|
2448
|
+
provider_ids:
|
|
2449
|
+
type: ["array", "null"]
|
|
2450
|
+
items:
|
|
2451
|
+
type: string
|
|
2452
|
+
lab_account_id:
|
|
2453
|
+
type: ["string", "null"]
|
|
2454
|
+
parameters:
|
|
2455
|
+
type: ["object", "null"]
|
|
2456
|
+
additionalProperties: true
|
|
2457
|
+
modality:
|
|
2458
|
+
type: string
|
|
2459
|
+
us_state:
|
|
2460
|
+
type: string
|
|
2461
|
+
billing:
|
|
2462
|
+
type: string
|
|
2463
|
+
default: client_bill
|
|
2464
|
+
EstimateOrderSetPricingResponse:
|
|
2465
|
+
type: object
|
|
2466
|
+
required: [currency, data]
|
|
2467
|
+
properties:
|
|
2468
|
+
currency:
|
|
2469
|
+
type: string
|
|
2470
|
+
data:
|
|
2471
|
+
type: array
|
|
2472
|
+
items:
|
|
2473
|
+
type: object
|
|
2474
|
+
required: [aggregate_pricing, components]
|
|
2475
|
+
properties:
|
|
2476
|
+
aggregate_pricing:
|
|
2477
|
+
$ref: "#/components/schemas/Pricing"
|
|
2478
|
+
components:
|
|
2479
|
+
type: array
|
|
2480
|
+
items:
|
|
2481
|
+
type: object
|
|
2482
|
+
required: [id, pricing]
|
|
2483
|
+
properties:
|
|
2484
|
+
id:
|
|
2485
|
+
type: string
|
|
2486
|
+
pricing:
|
|
2487
|
+
$ref: "#/components/schemas/Pricing"
|
|
2488
|
+
marker_breakdown:
|
|
2489
|
+
type: ["object", "null"]
|
|
2490
|
+
additionalProperties:
|
|
2491
|
+
$ref: "#/components/schemas/Pricing"
|
|
2285
2492
|
ClientFacingExpectedResult:
|
|
2286
2493
|
type: object
|
|
2287
2494
|
required: [id, name, slug, required]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/mockingbird-service-junction",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Stateful emulator of the Junction (Vital) user API driven by its OpenAPI contract and verified by differential property tests against the Junction sandbox.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|