@crvouga/mockingbird-service-junction 3.10.11 → 3.11.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 +14 -1
- package/README.md +3 -1
- package/dist/{chunk-OWKW44HP.js → chunk-O3ORF7KA.js} +3 -3
- package/dist/{chunk-6LQTNRTP.js → chunk-WCWZAPES.js} +23 -4
- package/dist/{chunk-6LQTNRTP.js.map → chunk-WCWZAPES.js.map} +2 -2
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +11 -1
- package/dist/index.js +5 -1
- package/dist/server.d.ts +7 -0
- package/dist/server.js +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-OWKW44HP.js.map → chunk-O3ORF7KA.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
runCli,
|
|
5
5
|
serveCommand,
|
|
6
6
|
serveTarget
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-O3ORF7KA.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_JUNCTION_BASE_URL,
|
|
10
10
|
createRuntime,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
isSandboxKey,
|
|
13
13
|
pullCorpus,
|
|
14
14
|
verifyAgainstReal
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WCWZAPES.js";
|
|
16
16
|
import {
|
|
17
17
|
defaultCorpus
|
|
18
18
|
} from "./chunk-2FZJPMTR.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -1287,6 +1287,9 @@ declare const sandboxUserQuotaBody: (max: number) => {
|
|
|
1287
1287
|
};
|
|
1288
1288
|
};
|
|
1289
1289
|
|
|
1290
|
+
/** Junction answers availability with about two weeks of days from `start_date`. */
|
|
1291
|
+
declare const DEFAULT_AVAILABILITY_WINDOW_DAYS = 14;
|
|
1292
|
+
declare const MAX_AVAILABILITY_WINDOW_DAYS = 60;
|
|
1290
1293
|
type GetCacheEntry = {
|
|
1291
1294
|
status: number;
|
|
1292
1295
|
headers: Record<string, string>;
|
|
@@ -2042,6 +2045,8 @@ type JunctionRuntimeOptions = {
|
|
|
2042
2045
|
teamId?: string;
|
|
2043
2046
|
/** Sandbox-only restrictions, every one off by default; per namespace via `PUT /__admin/limits`. */
|
|
2044
2047
|
limits?: JunctionLimitsInput;
|
|
2048
|
+
/** Days of availability per call; see {@link JunctionAPIOptions.availabilityWindowDays}. */
|
|
2049
|
+
availabilityWindowDays?: number;
|
|
2045
2050
|
/** `adopt-users` creates unknown user ids on first use. Default `strict`. */
|
|
2046
2051
|
identity?: IdentityMode;
|
|
2047
2052
|
/**
|
|
@@ -2209,6 +2214,11 @@ type JunctionAPIOptions = APIOptions & {
|
|
|
2209
2214
|
teamId?: string;
|
|
2210
2215
|
/** Sandbox-only restrictions to enforce. Every one is off unless set here. */
|
|
2211
2216
|
limits?: JunctionLimitsInput;
|
|
2217
|
+
/**
|
|
2218
|
+
* Days from `start_date` that phlebotomy and PSC availability return, 1 to 60.
|
|
2219
|
+
* Default 14, the window Junction answers with.
|
|
2220
|
+
*/
|
|
2221
|
+
availabilityWindowDays?: number;
|
|
2212
2222
|
/** `adopt-users` creates an unknown (well-formed) `user_id` on first use. Default `strict`. */
|
|
2213
2223
|
identity?: IdentityMode;
|
|
2214
2224
|
/**
|
|
@@ -2366,5 +2376,5 @@ declare class LabAccountConflict extends Error {
|
|
|
2366
2376
|
constructor(id: string);
|
|
2367
2377
|
}
|
|
2368
2378
|
|
|
2369
|
-
export { AVAILABILITY_ADDRESS, AVAILABILITY_START_DATE, BILLING_TYPES, COVERAGE_ZIPS, DEFAULT_JUNCTION_BASE_URL, DEFAULT_LIMITS, DELEGATED_ACCOUNT_STATES, FAULT_PRESETS, FixtureError, IDENTITY_MODES, JUNCTION_NAMESPACE, JunctionAPI, KNOWN_HEADER, LAB_ACCOUNT_PRESETS, LAB_ACCOUNT_PRESET_ALIASES, LabAccountConflict, MISS_HEADER, MOCK_TEAM_ID, ORDER_NOT_FOUND, ORDER_STATUSES_BY_METHOD, OTHER_TEAM_ID, PHLEBOTOMY_AVAILABILITY_ZIPS, PLATFORM_ACCOUNT_STATES, PSC_AVAILABILITY_ZIPS, PSC_LAB_IDS, RESULT_FIXTURES, SANDBOX_KEY_PREFIXES, SEALED_CORPUS_VERSION, SUPPORTED_SEALED_CORPUS_VERSIONS, SYNTHETIC_LAB_ACCOUNT_PRESETS, TEAM_LAB_ACCOUNTS, TRANSITION_ALIASES, UNKNOWN_ZIP_ERROR_TYPE, UNKNOWN_ZIP_STATUS, US_STATES, corpusLabel, createRuntime, createWebhookDispatcher, diffCorpus, document, fingerprintCorpus, isLinkedToTeam, isSandboxKey, labAccountFromInput, observationCacheKey, operationIds, parseSealedCorpus, prefetchCoverageObservations, presetAccountId, pullCorpus, reshapeCoverageGeoCommand, resolveTransition, sandboxUserQuotaBody, signSvix, supportedOperationIds, verifyAgainstReal, verifySvix };
|
|
2379
|
+
export { AVAILABILITY_ADDRESS, AVAILABILITY_START_DATE, BILLING_TYPES, COVERAGE_ZIPS, DEFAULT_AVAILABILITY_WINDOW_DAYS, DEFAULT_JUNCTION_BASE_URL, DEFAULT_LIMITS, DELEGATED_ACCOUNT_STATES, FAULT_PRESETS, FixtureError, IDENTITY_MODES, JUNCTION_NAMESPACE, JunctionAPI, KNOWN_HEADER, LAB_ACCOUNT_PRESETS, LAB_ACCOUNT_PRESET_ALIASES, LabAccountConflict, MAX_AVAILABILITY_WINDOW_DAYS, MISS_HEADER, MOCK_TEAM_ID, ORDER_NOT_FOUND, ORDER_STATUSES_BY_METHOD, OTHER_TEAM_ID, PHLEBOTOMY_AVAILABILITY_ZIPS, PLATFORM_ACCOUNT_STATES, PSC_AVAILABILITY_ZIPS, PSC_LAB_IDS, RESULT_FIXTURES, SANDBOX_KEY_PREFIXES, SEALED_CORPUS_VERSION, SUPPORTED_SEALED_CORPUS_VERSIONS, SYNTHETIC_LAB_ACCOUNT_PRESETS, TEAM_LAB_ACCOUNTS, TRANSITION_ALIASES, UNKNOWN_ZIP_ERROR_TYPE, UNKNOWN_ZIP_STATUS, US_STATES, corpusLabel, createRuntime, createWebhookDispatcher, diffCorpus, document, fingerprintCorpus, isLinkedToTeam, isSandboxKey, labAccountFromInput, observationCacheKey, operationIds, parseSealedCorpus, prefetchCoverageObservations, presetAccountId, pullCorpus, reshapeCoverageGeoCommand, resolveTransition, sandboxUserQuotaBody, signSvix, supportedOperationIds, verifyAgainstReal, verifySvix };
|
|
2370
2380
|
export type { BillingType, CatalogOverlay, CorpusDiff, CorpusInfo, Divergence, FetchAPI, GeoMode, GetCacheEntry, IdentityMode, InsertOptions, JunctionAPIOptions, JunctionAdminOptions, JunctionFixtures, JunctionLimits, JunctionLimitsInput, JunctionQuirks, JunctionRuntime, JunctionRuntimeOptions, JunctionWebhookEvent, JunctionWebhookOptions, LabAccountBehavior, LabAccountDelegatedFlow, LabAccountInput, LabAccountLayout, LabAccountOmissionPolicy, LabAccountOracle, LabAccountProfile, LabAccountRecord, LabAccountSandboxPolicy, LabAccountStatus, MarkerCatalogEntry, MarkerPricing, OmittedAccountBilling, OperationId, OrderFixture, OrderRecord, PullCorpusOptions, ResultFixture, SealedCorpus, SeedObservations, SeedReport, SeedSource, SetDiff, SqliteClient, StoredLabAccount, SupportedOperationId, UserFixture, UserRecord, VerifyOptions, VerifyReport, WebhookAttempt, WebhookDelivery, WebhookDispatcher, WebhookEndpoint, WebhookPublisher, ZipOverlays, ZipOverride };
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
AVAILABILITY_START_DATE,
|
|
4
4
|
BILLING_TYPES,
|
|
5
5
|
COVERAGE_ZIPS,
|
|
6
|
+
DEFAULT_AVAILABILITY_WINDOW_DAYS,
|
|
6
7
|
DEFAULT_JUNCTION_BASE_URL,
|
|
7
8
|
DEFAULT_LIMITS,
|
|
8
9
|
DELEGATED_ACCOUNT_STATES,
|
|
@@ -15,6 +16,7 @@ import {
|
|
|
15
16
|
LAB_ACCOUNT_PRESETS,
|
|
16
17
|
LAB_ACCOUNT_PRESET_ALIASES,
|
|
17
18
|
LabAccountConflict,
|
|
19
|
+
MAX_AVAILABILITY_WINDOW_DAYS,
|
|
18
20
|
MISS_HEADER,
|
|
19
21
|
MOCK_TEAM_ID,
|
|
20
22
|
ORDER_NOT_FOUND,
|
|
@@ -53,7 +55,7 @@ import {
|
|
|
53
55
|
supportedOperationIds,
|
|
54
56
|
verifyAgainstReal,
|
|
55
57
|
verifySvix
|
|
56
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-WCWZAPES.js";
|
|
57
59
|
import {
|
|
58
60
|
SEALED_CORPUS_VERSION,
|
|
59
61
|
SUPPORTED_SEALED_CORPUS_VERSIONS,
|
|
@@ -64,6 +66,7 @@ export {
|
|
|
64
66
|
AVAILABILITY_START_DATE,
|
|
65
67
|
BILLING_TYPES,
|
|
66
68
|
COVERAGE_ZIPS,
|
|
69
|
+
DEFAULT_AVAILABILITY_WINDOW_DAYS,
|
|
67
70
|
DEFAULT_JUNCTION_BASE_URL,
|
|
68
71
|
DEFAULT_LIMITS,
|
|
69
72
|
DELEGATED_ACCOUNT_STATES,
|
|
@@ -76,6 +79,7 @@ export {
|
|
|
76
79
|
LAB_ACCOUNT_PRESETS,
|
|
77
80
|
LAB_ACCOUNT_PRESET_ALIASES,
|
|
78
81
|
LabAccountConflict,
|
|
82
|
+
MAX_AVAILABILITY_WINDOW_DAYS,
|
|
79
83
|
MISS_HEADER,
|
|
80
84
|
MOCK_TEAM_ID,
|
|
81
85
|
ORDER_NOT_FOUND,
|
package/dist/server.d.ts
CHANGED
|
@@ -2601,6 +2601,11 @@ type JunctionAPIOptions = APIOptions & {
|
|
|
2601
2601
|
teamId?: string;
|
|
2602
2602
|
/** Sandbox-only restrictions to enforce. Every one is off unless set here. */
|
|
2603
2603
|
limits?: JunctionLimitsInput;
|
|
2604
|
+
/**
|
|
2605
|
+
* Days from `start_date` that phlebotomy and PSC availability return, 1 to 60.
|
|
2606
|
+
* Default 14, the window Junction answers with.
|
|
2607
|
+
*/
|
|
2608
|
+
availabilityWindowDays?: number;
|
|
2604
2609
|
/** `adopt-users` creates an unknown (well-formed) `user_id` on first use. Default `strict`. */
|
|
2605
2610
|
identity?: IdentityMode;
|
|
2606
2611
|
/**
|
|
@@ -2778,6 +2783,8 @@ type JunctionRuntimeOptions = {
|
|
|
2778
2783
|
teamId?: string;
|
|
2779
2784
|
/** Sandbox-only restrictions, every one off by default; per namespace via `PUT /__admin/limits`. */
|
|
2780
2785
|
limits?: JunctionLimitsInput;
|
|
2786
|
+
/** Days of availability per call; see {@link JunctionAPIOptions.availabilityWindowDays}. */
|
|
2787
|
+
availabilityWindowDays?: number;
|
|
2781
2788
|
/** `adopt-users` creates unknown user ids on first use. Default `strict`. */
|
|
2782
2789
|
identity?: IdentityMode;
|
|
2783
2790
|
/**
|
package/dist/server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/mockingbird-service-junction",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.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",
|
|
File without changes
|