@crvouga/mockingbird-service-junction 0.1.1 → 0.1.2
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/README.md +23 -11
- package/dist/index.d.ts +492 -21
- package/dist/index.js +6086 -107
- package/dist/index.js.map +7 -1
- package/package.json +11 -10
- package/dist/catalog.d.ts +0 -63
- package/dist/catalog.d.ts.map +0 -1
- package/dist/catalog.js +0 -736
- package/dist/catalog.js.map +0 -1
- package/dist/coverage-corpus.d.ts +0 -76
- package/dist/coverage-corpus.d.ts.map +0 -1
- package/dist/coverage-corpus.js +0 -166
- package/dist/coverage-corpus.js.map +0 -1
- package/dist/generated/openapi.d.ts +0 -7
- package/dist/generated/openapi.d.ts.map +0 -1
- package/dist/generated/openapi.js +0 -5
- package/dist/generated/openapi.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lab-accounts.d.ts +0 -38
- package/dist/lab-accounts.d.ts.map +0 -1
- package/dist/lab-accounts.js +0 -213
- package/dist/lab-accounts.js.map +0 -1
- package/dist/orders.d.ts +0 -18
- package/dist/orders.d.ts.map +0 -1
- package/dist/orders.js +0 -1247
- package/dist/orders.js.map +0 -1
- package/dist/prefetch.d.ts +0 -43
- package/dist/prefetch.d.ts.map +0 -1
- package/dist/prefetch.js +0 -131
- package/dist/prefetch.js.map +0 -1
- package/dist/reshape.d.ts +0 -22
- package/dist/reshape.d.ts.map +0 -1
- package/dist/reshape.js +0 -190
- package/dist/reshape.js.map +0 -1
- package/dist/results.d.ts +0 -19
- package/dist/results.d.ts.map +0 -1
- package/dist/results.js +0 -221
- package/dist/results.js.map +0 -1
- package/dist/scheduling.d.ts +0 -113
- package/dist/scheduling.d.ts.map +0 -1
- package/dist/scheduling.js +0 -1508
- package/dist/scheduling.js.map +0 -1
- package/dist/sealed-corpus.d.ts +0 -28
- package/dist/sealed-corpus.d.ts.map +0 -1
- package/dist/sealed-corpus.js +0 -17
- package/dist/sealed-corpus.js.map +0 -1
- package/dist/seed-from.d.ts +0 -27
- package/dist/seed-from.d.ts.map +0 -1
- package/dist/seed-from.js +0 -523
- package/dist/seed-from.js.map +0 -1
- package/dist/seeds.d.ts +0 -9
- package/dist/seeds.d.ts.map +0 -1
- package/dist/seeds.js +0 -9
- package/dist/seeds.js.map +0 -1
- package/dist/state.d.ts +0 -270
- package/dist/state.d.ts.map +0 -1
- package/dist/state.js +0 -448
- package/dist/state.js.map +0 -1
- package/dist/users.d.ts +0 -13
- package/dist/users.d.ts.map +0 -1
- package/dist/users.js +0 -669
- package/dist/users.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/mockingbird-service-junction",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Stateful mock 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",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"generate": "bun ../../openapi/codegen/dist/cli.js",
|
|
40
40
|
"generate:check": "bun ../../openapi/codegen/dist/cli.js --check",
|
|
41
41
|
"openapi:check": "bun ../../openapi/codegen/dist/cli.js --validate",
|
|
42
|
-
"build": "
|
|
42
|
+
"build": "bun ../../../scripts/bundle-service.ts",
|
|
43
43
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
44
44
|
"lint": "biome check .",
|
|
45
45
|
"test": "bun test",
|
|
@@ -56,13 +56,7 @@
|
|
|
56
56
|
"pack:check": "bun ../../../scripts/pack-check.ts"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@crvouga/mockingbird-
|
|
60
|
-
"@crvouga/mockingbird-sqlite": "0.0.0-development",
|
|
61
|
-
"@crvouga/mockingbird-openapi": "0.0.0-development",
|
|
62
|
-
"@crvouga/mockingbird-service": "0.0.0-development",
|
|
63
|
-
"@crvouga/mockingbird-http-codec": "0.0.0-development",
|
|
64
|
-
"@crvouga/mockingbird-commands": "0.0.0-development",
|
|
65
|
-
"@crvouga/mockingbird-parity": "0.0.0-development",
|
|
59
|
+
"@crvouga/mockingbird-service-sqlite": "0.0.0-development",
|
|
66
60
|
"hono": "4.11.9"
|
|
67
61
|
},
|
|
68
62
|
"devDependencies": {
|
|
@@ -75,6 +69,13 @@
|
|
|
75
69
|
"@crvouga/mockingbird-service-sqlite": "0.0.0-development",
|
|
76
70
|
"@tryvital/vital-node": "3.1.511",
|
|
77
71
|
"fast-check": "4.9.0",
|
|
78
|
-
"wrangler": "^4.129.1"
|
|
72
|
+
"wrangler": "^4.129.1",
|
|
73
|
+
"@crvouga/mockingbird-core": "0.0.0-development",
|
|
74
|
+
"@crvouga/mockingbird-sqlite": "0.0.0-development",
|
|
75
|
+
"@crvouga/mockingbird-openapi": "0.0.0-development",
|
|
76
|
+
"@crvouga/mockingbird-service": "0.0.0-development",
|
|
77
|
+
"@crvouga/mockingbird-http-codec": "0.0.0-development",
|
|
78
|
+
"@crvouga/mockingbird-commands": "0.0.0-development",
|
|
79
|
+
"@crvouga/mockingbird-parity": "0.0.0-development"
|
|
79
80
|
}
|
|
80
81
|
}
|
package/dist/catalog.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/** Lab-test catalog mirrored from the Junction sandbox (`GET /v3/lab_test`). */
|
|
2
|
-
export type CatalogMarker = {
|
|
3
|
-
id: number;
|
|
4
|
-
name: string;
|
|
5
|
-
slug: string;
|
|
6
|
-
description: string | null;
|
|
7
|
-
lab_id: number | null;
|
|
8
|
-
provider_id: string | null;
|
|
9
|
-
type: string | null;
|
|
10
|
-
unit: string | null;
|
|
11
|
-
price: string | null;
|
|
12
|
-
aoe: unknown;
|
|
13
|
-
a_la_carte_enabled: boolean;
|
|
14
|
-
common_tat_days: number | null;
|
|
15
|
-
worst_case_tat_days: number | null;
|
|
16
|
-
is_orderable: boolean | null;
|
|
17
|
-
};
|
|
18
|
-
export type ExpectedResultLoinc = {
|
|
19
|
-
id: number;
|
|
20
|
-
name: string;
|
|
21
|
-
slug: string;
|
|
22
|
-
code: string;
|
|
23
|
-
unit: string | null;
|
|
24
|
-
};
|
|
25
|
-
export type ExpectedResult = {
|
|
26
|
-
id: number;
|
|
27
|
-
name: string;
|
|
28
|
-
slug: string;
|
|
29
|
-
lab_id: number | null;
|
|
30
|
-
provider_id: string | null;
|
|
31
|
-
required: boolean;
|
|
32
|
-
loinc: ExpectedResultLoinc | null;
|
|
33
|
-
};
|
|
34
|
-
export type LabTestRecord = {
|
|
35
|
-
id: string;
|
|
36
|
-
slug: string;
|
|
37
|
-
name: string;
|
|
38
|
-
sample_type: string;
|
|
39
|
-
method: string;
|
|
40
|
-
price: number;
|
|
41
|
-
is_active: boolean;
|
|
42
|
-
status: string;
|
|
43
|
-
fasting: boolean;
|
|
44
|
-
lab: Record<string, unknown>;
|
|
45
|
-
markers: CatalogMarker[] | null;
|
|
46
|
-
is_delegated: boolean;
|
|
47
|
-
auto_generated: boolean;
|
|
48
|
-
has_collection_instructions: boolean | null;
|
|
49
|
-
common_tat_days: number | null;
|
|
50
|
-
worst_case_tat_days: number | null;
|
|
51
|
-
};
|
|
52
|
-
export declare const LAB_TEST_CATALOG: readonly LabTestRecord[];
|
|
53
|
-
export declare const labTestById: (id: string) => LabTestRecord | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* Team lab inventory mirrored from the sandbox (`GET /v3/lab_tests/labs`). The endpoint
|
|
56
|
-
* returns the team's full lab list — not just the labs referenced by catalog tests — in
|
|
57
|
-
* this exact order.
|
|
58
|
-
*/
|
|
59
|
-
export declare const TEAM_LABS: readonly Record<string, unknown>[];
|
|
60
|
-
/** Panel constituents mirrored from the sandbox (`GET /v3/lab_tests/{id}/markers`). */
|
|
61
|
-
export declare const EXPECTED_RESULTS: Readonly<Record<string, readonly ExpectedResult[]>>;
|
|
62
|
-
export declare const expectedResultsFor: (labTestId: string) => readonly ExpectedResult[];
|
|
63
|
-
//# sourceMappingURL=catalog.d.ts.map
|
package/dist/catalog.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,GAAG,EAAE,OAAO,CAAA;IACZ,kBAAkB,EAAE,OAAO,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,YAAY,EAAE,OAAO,GAAG,IAAI,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE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